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 I rowsort label-0
SELECT ALL + MAX( ALL - - 61 )
----
61

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1
SELECT + 98 DIV + 45
----
2

skipif mysql # not compatible
query I rowsort label-1
SELECT + 98 / + 45
----
2

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

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

query I rowsort
SELECT + 74 * ( - 41 )
----
-3034

onlyif mysql # aggregate syntax: 
query I rowsort label-4
SELECT ALL + 50 * 0 - + MIN( + 40 ) AS col0
----
-40

skipif mysql # not compatible
query I rowsort label-4
SELECT ALL + 50 * 0 - + MIN ( + 40 ) AS col0
----
-40

query I rowsort
SELECT + NULLIF ( - 32, - 58 ) col1
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-6
SELECT DISTINCT - - ( - COUNT( ALL - 20 ) ) * + 17 AS col1
----
-17

skipif mysql # not compatible
query I rowsort label-6
SELECT DISTINCT - - ( - COUNT ( ALL - 20 ) ) * + 17 AS col1
----
-17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7
SELECT ALL 79 * - - NULLIF ( + - 80, + 36 * + - 22 ) * 34 * 84 + - 34 - - CASE 23 WHEN - 17 + - + CASE + 52 WHEN - 57 / - + 41 + 84 THEN + 34 WHEN ( + + COALESCE ( + + NULLIF ( + 76, - COALESCE ( 54, 15 * - - 54 ) + + + 24 ), + 11, 32, ( 62 ) - - + 81 + - + COUNT( * ) ) ) THEN - 3 * CASE WHEN - 45 IS NULL THEN NULL ELSE - COALESCE ( + 41, - + NULLIF ( + 94, + COUNT( * ) / + 36 ), - COUNT( * ) * - 34 - 7 * 72, + 15 ) / CASE + 37 / + 39 + - CAST( NULL AS SIGNED ) WHEN - ( CAST( 29 AS SIGNED ) ) THEN NULL WHEN 66 + - 42 * 20 THEN - 45 / 52 - 8 * + 24 ELSE + 29 * MIN( ALL - 31 ) END END + 24 END THEN - COUNT( * ) WHEN + 23 + + ( - COUNT( * ) ) THEN NULL WHEN 0 THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7
SELECT ALL 79 * - - NULLIF ( + - 80, + 36 * + - 22 ) * 34 * 84 + - 34 - - CASE 23 WHEN - 17 + - + CASE + 52 WHEN - 57 / - + 41 + 84 THEN + 34 WHEN ( + + COALESCE ( + + NULLIF ( + 76, - COALESCE ( 54, 15 * - - 54 ) + + + 24 ), + 11, 32, ( 62 ) - - + 81 + - + COUNT ( * ) ) ) THEN - 3 * CASE WHEN - 45 IS NULL THEN NULL ELSE - COALESCE ( + 41, - + NULLIF ( + 94, + COUNT ( * ) / + 36 ), - COUNT ( * ) * - 34 - 7 * 72, + 15 ) / CASE + 37 / + 39 + - CAST ( NULL AS INTEGER ) WHEN - ( CAST ( 29 AS INTEGER ) ) THEN NULL WHEN 66 + - 42 * 20 THEN - 45 / 52 - 8 * + 24 ELSE + 29 * MIN ( ALL - 31 ) END END + 24 END THEN - COUNT ( * ) WHEN + 23 + + ( - COUNT ( * ) ) THEN NULL WHEN 0 THEN NULL END AS col1
----
NULL

query I rowsort
SELECT - + 44 * + 69
----
-3036

query I rowsort
SELECT DISTINCT 50 * - 26 col1
----
-1300

query I rowsort
SELECT - 8 * + 72
----
-576

query II rowsort
SELECT + 47 + 42 * - 62, 90 col0
----
-2557
90

query I rowsort
SELECT ALL - - 74 * - - ( + + 29 )
----
2146

onlyif mysql # aggregate syntax: 
query II rowsort label-13
SELECT ALL + ( + COUNT( * ) ) AS col1, + 39 * - 88 * - 87 * + 42 AS col2
----
1
12540528

skipif mysql # not compatible
query II rowsort label-13
SELECT ALL + ( + COUNT ( * ) ) AS col1, + 39 * - 88 * - 87 * + 42 AS col2
----
1
12540528

onlyif mysql # aggregate syntax: 
query I rowsort label-14
SELECT ALL + + MAX( 83 ) * - - 84 - + 29
----
6943

skipif mysql # not compatible
query I rowsort label-14
SELECT ALL + + MAX ( 83 ) * - - 84 - + 29
----
6943

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

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

query II rowsort
SELECT - 24 + - + 45 AS col1, - 7 + 45 AS col2
----
-69
38

query I rowsort
SELECT ALL + 67 + - - 51 col0
----
118

query I rowsort
SELECT ALL - NULLIF ( 55, + + 24 ) + - 54
----
-109

query I rowsort
SELECT DISTINCT + 49 + 35
----
84

query I rowsort
SELECT DISTINCT + 49 + 41 col2
----
90

onlyif mysql # aggregate syntax: 
query II rowsort label-21
SELECT 23, + COUNT( * ) * - COUNT( * ) * - + 72 - - + 23 + + MAX( DISTINCT + ( 63 ) ) col2
----
23
158

skipif mysql # not compatible
query II rowsort label-21
SELECT 23, + COUNT ( * ) * - COUNT ( * ) * - + 72 - - + 23 + + MAX ( DISTINCT + ( 63 ) ) col2
----
23
158

onlyif mysql # aggregate syntax: 
query I rowsort label-22
SELECT DISTINCT - CASE COUNT( * ) WHEN - ( - + 33 ) THEN NULL WHEN - 41 + COUNT( * ) * - - 84 / + 9 THEN - 16 ELSE NULL END + COUNT( * ) * - 23
----
NULL

skipif mysql # not compatible
query I rowsort label-22
SELECT DISTINCT - CASE COUNT ( * ) WHEN - ( - + 33 ) THEN NULL WHEN - 41 + COUNT ( * ) * - - 84 / + 9 THEN - 16 ELSE NULL END + COUNT ( * ) * - 23
----
NULL

query I rowsort
SELECT ALL + 31 + - 55
----
-24

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-26
SELECT CAST( - ( - - 11 ) AS SIGNED ) AS col2
----
-11

skipif mysql # not compatible
query I rowsort label-26
SELECT CAST ( - ( - - 11 ) AS INTEGER ) AS col2
----
-11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-27
SELECT ALL - 56 DIV + + 81 - - COUNT( * ) + - 69 * - 33
----
2278

skipif mysql # not compatible
query I rowsort label-27
SELECT ALL - 56 / + + 81 - - COUNT ( * ) + - 69 * - 33
----
2278

onlyif mysql # aggregate syntax: 
query I rowsort label-28
SELECT + CASE - - 19 WHEN - 70 * 71 + + 19 THEN + MAX( DISTINCT + 98 ) WHEN + - 5 * - 44 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-28
SELECT + CASE - - 19 WHEN - 70 * 71 + + 19 THEN + MAX ( DISTINCT + 98 ) WHEN + - 5 * - 44 THEN NULL END
----
NULL

query I rowsort
SELECT ALL 86 * 34 AS col1
----
2924

query I rowsort
SELECT + 92 * + 30 AS col2
----
2760

onlyif mysql # aggregate syntax: 
query I rowsort label-31
SELECT ALL + ( 14 ) * SUM( ALL + 94 ) AS col2
----
1316

skipif mysql # not compatible
query I rowsort label-31
SELECT ALL + ( 14 ) * SUM ( ALL + 94 ) AS col2
----
1316

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-33
SELECT - SUM( + 23 ) * - - 52 AS col2
----
-1196

skipif mysql # not compatible
query I rowsort label-33
SELECT - SUM ( + 23 ) * - - 52 AS col2
----
-1196

onlyif mysql # aggregate syntax: 
query I rowsort label-34
SELECT + COUNT( * ) * + - 49 + - 45 col0
----
-94

skipif mysql # not compatible
query I rowsort label-34
SELECT + COUNT ( * ) * + - 49 + - 45 col0
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-35
SELECT DISTINCT + MAX( ALL 88 ) AS col0
----
88

skipif mysql # not compatible
query I rowsort label-35
SELECT DISTINCT + MAX ( ALL 88 ) AS col0
----
88

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-38
SELECT + 92 DIV 9 * + 89 * 43
----
38270

skipif mysql # not compatible
query I rowsort label-38
SELECT + 92 / 9 * + 89 * 43
----
38270

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-39
SELECT ALL + COUNT( * ) DIV 86 - + 58 AS col1, 39 AS col2
----
-58
39

skipif mysql # not compatible
query II rowsort label-39
SELECT ALL + COUNT ( * ) / 86 - + 58 AS col1, 39 AS col2
----
-58
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-40
SELECT + + MAX( - 9 ) * + 91 / CAST( NULL AS SIGNED ) + - - 63 * + 1 * + - COUNT( * ) + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-40
SELECT + + MAX ( - 9 ) * + 91 / CAST ( NULL AS INTEGER ) + - - 63 * + 1 * + - COUNT ( * ) + COUNT ( * )
----
NULL

query I rowsort
SELECT DISTINCT 80 * + 32
----
2560

query I rowsort
SELECT + 49 + + 94 * + ( + 54 )
----
5125

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-43
SELECT ALL + 40 DIV - 46 + 66 + + + NULLIF ( COUNT( * ), 27 - - MIN( DISTINCT + COALESCE ( + + 17, - - 66 ) ) ) + ( - COUNT( * ) ) AS col2
----
66

skipif mysql # not compatible
query I rowsort label-43
SELECT ALL + 40 / - 46 + 66 + + + NULLIF ( COUNT ( * ), 27 - - MIN ( DISTINCT + COALESCE ( + + 17, - - 66 ) ) ) + ( - COUNT ( * ) ) AS col2
----
66

query II rowsort
SELECT ALL - 77 * + - NULLIF ( + - 41, 38 + - 72 / 58 - - - ( - + 59 ) * + 36 ) AS col2, 81
----
-3157
81

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-45
SELECT + + CAST( NULL AS DECIMAL ) * CAST( NULL AS SIGNED ) * + 37 + + - CAST( NULL AS SIGNED ) * + + 71 - CAST( 85 AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-45
SELECT + + CAST ( NULL AS REAL ) * CAST ( NULL AS INTEGER ) * + 37 + + - CAST ( NULL AS INTEGER ) * + + 71 - CAST ( 85 AS INTEGER ) AS col0
----
NULL

query II rowsort
SELECT - 9 AS col1, 9 col2
----
-9
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-47
SELECT DISTINCT + CASE - 27 WHEN - 80 THEN + - 85 * 16 * COUNT( * ) * + 12 + MIN( DISTINCT + 59 ) + + ( - 79 ) WHEN - 6 THEN - CAST( NULL AS SIGNED ) * + 3 * - ( - - 49 ) * + COUNT( * ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-47
SELECT DISTINCT + CASE - 27 WHEN - 80 THEN + - 85 * 16 * COUNT ( * ) * + 12 + MIN ( DISTINCT + 59 ) + + ( - 79 ) WHEN - 6 THEN - CAST ( NULL AS INTEGER ) * + 3 * - ( - - 49 ) * + COUNT ( * ) END AS col2
----
NULL

query I rowsort
SELECT + + 94 - - 93
----
187

query I rowsort
SELECT DISTINCT + + 70 * - + 39 * 68 + - 70 + - ( + 44 ) * 41 AS col2
----
-187514

query I rowsort
SELECT ALL 77 * + 11 AS col1
----
847

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-51
SELECT ALL 70 + + - ( - 3 ) * - - 89 + - 88 + 34 * 95 AS col1, CASE + CAST( NULL AS DECIMAL ) WHEN - 93 THEN NULL WHEN + + 5 THEN - 4 / + 1 * - COUNT( DISTINCT 65 ) * + NULLIF ( + - 77, - 76 ) + - CASE - 91 WHEN - 41 * + + ( - 95 ) THEN NULL WHEN + - COUNT( * ) * - COUNT( * ) * 22 / - COUNT( * ) - 93 + 23 THEN + - 12 + 85 END + + 65 * CAST( NULL AS DECIMAL ) ELSE NULL END AS col1
----
3479
NULL

skipif mysql # not compatible
query II rowsort label-51
SELECT ALL 70 + + - ( - 3 ) * - - 89 + - 88 + 34 * 95 AS col1, CASE + CAST ( NULL AS REAL ) WHEN - 93 THEN NULL WHEN + + 5 THEN - 4 / + 1 * - COUNT ( DISTINCT 65 ) * + NULLIF ( + - 77, - 76 ) + - CASE - 91 WHEN - 41 * + + ( - 95 ) THEN NULL WHEN + - COUNT ( * ) * - COUNT ( * ) * 22 / - COUNT ( * ) - 93 + 23 THEN + - 12 + 85 END + + 65 * CAST ( NULL AS REAL ) ELSE NULL END AS col1
----
3479
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-52
SELECT 11 - 26 + - COUNT( * ) * + ( 19 )
----
-34

skipif mysql # not compatible
query I rowsort label-52
SELECT 11 - 26 + - COUNT ( * ) * + ( 19 )
----
-34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-53
SELECT 21 - - + 24 + SUM( ALL - 32 ) + + NULLIF ( + + 85, - CAST( + 70 AS SIGNED ) ) DIV 28 * + - COALESCE ( - 41, - - 85 ) + + - 94 AS col1
----
42

skipif mysql # not compatible
query I rowsort label-53
SELECT 21 - - + 24 + SUM ( ALL - 32 ) + + NULLIF ( + + 85, - CAST ( + 70 AS INTEGER ) ) / 28 * + - COALESCE ( - 41, - - 85 ) + + - 94 AS col1
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-54
SELECT 95 + COALESCE ( - + MAX( + 84 ), - 42 ) + + 7 * + 81
----
578

skipif mysql # not compatible
query I rowsort label-54
SELECT 95 + COALESCE ( - + MAX ( + 84 ), - 42 ) + + 7 * + 81
----
578

query I rowsort
SELECT DISTINCT + ( 57 ) * - - 4 - + + 0 + - - 30 AS col2
----
258

query I rowsort
SELECT 11 + + + 1 AS col1
----
12

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

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

query I rowsort
SELECT ALL - 0 - + 89
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-59
SELECT DISTINCT + COUNT( * ) * 5 * - CASE ( + + 40 ) WHEN - COUNT( * ) / + COUNT( * ) THEN COUNT( * ) * + 17 * 64 WHEN - + 47 THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-59
SELECT DISTINCT + COUNT ( * ) * 5 * - CASE ( + + 40 ) WHEN - COUNT ( * ) / + COUNT ( * ) THEN COUNT ( * ) * + 17 * 64 WHEN - + 47 THEN NULL END AS col1
----
NULL

query I rowsort
SELECT 30 + - 3 * + + 48
----
-114

onlyif mysql # DIV for integer division: 
query I rowsort label-61
SELECT ALL + 0 - + 31 DIV + + ( - - 74 ) * + 52 * + + 8 * - + 99
----
0

skipif mysql # not compatible
query I rowsort label-61
SELECT ALL + 0 - + 31 / + + ( - - 74 ) * + 52 * + + 8 * - + 99
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-62
SELECT DISTINCT - ( + - 72 ) AS col1, 43 DIV - 67 AS col2
----
72
0

skipif mysql # not compatible
query II rowsort label-62
SELECT DISTINCT - ( + - 72 ) AS col1, 43 / - 67 AS col2
----
72
0

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-65
SELECT COUNT( - 5 ) * - + 72
----
-72

skipif mysql # not compatible
query I rowsort label-65
SELECT COUNT ( - 5 ) * - + 72
----
-72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-66
SELECT + 63 * - 53 - + 61 * COALESCE ( - + CAST( + + 3 AS SIGNED ), + 63 * - 34 - - - AVG ( + 61 ) + - 58 ) * - CAST( NULL AS SIGNED ) * COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-66
SELECT + 63 * - 53 - + 61 * COALESCE ( - + CAST ( + + 3 AS INTEGER ), + 63 * - 34 - - - AVG ( + 61 ) + - 58 ) * - CAST ( NULL AS INTEGER ) * COUNT ( * ) AS col1
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-68
SELECT + + MAX( ALL + 42 ) AS col0
----
42

skipif mysql # not compatible
query I rowsort label-68
SELECT + + MAX ( ALL + 42 ) AS col0
----
42

query I rowsort
SELECT ALL - COALESCE ( - 47, ( + 31 ) ) AS col2
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-70
SELECT - 29 * + 58 * - 59 - + - COALESCE ( 89, + - 42 * - + 68, - COUNT( * ) ) + - SUM( DISTINCT 98 )
----
99229

skipif mysql # not compatible
query I rowsort label-70
SELECT - 29 * + 58 * - 59 - + - COALESCE ( 89, + - 42 * - + 68, - COUNT ( * ) ) + - SUM ( DISTINCT 98 )
----
99229

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

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

query I rowsort
SELECT ALL 96 + 58
----
154

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-73
SELECT + CASE WHEN ( - AVG ( DISTINCT + + 81 ) ) IS NOT NULL THEN NULL WHEN NOT 87 IN ( 7 / + + COUNT( * ) + - COUNT( * ), + 56 ) THEN NULL ELSE - 34 + - 84 - + 40 + + 98 * + 19 END * - 52 * - CAST( 45 AS DECIMAL ) + + MAX( + + 46 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-73
SELECT + CASE WHEN ( - AVG ( DISTINCT + + 81 ) ) IS NOT NULL THEN NULL WHEN NOT 87 IN ( 7 / + + COUNT ( * ) + - COUNT ( * ), + 56 ) THEN NULL ELSE - 34 + - 84 - + 40 + + 98 * + 19 END * - 52 * - CAST ( 45 AS REAL ) + + MAX ( + + 46 ) AS col0
----
NULL

query I rowsort
SELECT 89 * + COALESCE ( + - 79, - 80 * + 13 ) AS col1
----
-7031

query I rowsort
SELECT ALL 53 + + 4 AS col2
----
57

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

skipif mysql # not compatible
query I rowsort label-76
SELECT + 7 * - 47 * ( - 42 ) + - - COUNT ( * ) AS col2
----
13819

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

skipif mysql # not compatible
query I rowsort label-77
SELECT + SUM ( - - 75 )
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-78
SELECT + NULLIF ( 9, - 29 + - 61 ) + COUNT( * ) + + - 60 AS col0
----
-50

skipif mysql # not compatible
query I rowsort label-78
SELECT + NULLIF ( 9, - 29 + - 61 ) + COUNT ( * ) + + - 60 AS col0
----
-50

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

skipif mysql # not compatible
query I rowsort label-79
SELECT 68 * + COUNT ( DISTINCT - - 18 ) AS col0
----
68

query I rowsort
SELECT ALL ( + COALESCE ( - 12, + 74 ) ) + - + 18 + - + 85
----
-115

query II rowsort
SELECT 14 * - 95 * + + 16, 9 + - NULLIF ( + 5, + 61 ) AS col2
----
-21280
4

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

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

query I rowsort
SELECT ALL 64 - + 98
----
-34

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-85
SELECT ( - COUNT( * ) ) + - 6
----
-7

skipif mysql # not compatible
query I rowsort label-85
SELECT ( - COUNT ( * ) ) + - 6
----
-7

query II rowsort
SELECT ALL 24 AS col2, + 80 + - - NULLIF ( 29, + 75 * - 53 + + 47 * + 35 ) col0
----
24
109

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-87
SELECT ( 54 ) * 66 * + 37 * + 80 * - - 74 - COALESCE ( + - 20, ( - + 4 ) ) + - 58 DIV - SUM( - + 50 )
----
780658579

skipif mysql # not compatible
query I rowsort label-87
SELECT ( 54 ) * 66 * + 37 * + 80 * - - 74 - COALESCE ( + - 20, ( - + 4 ) ) + - 58 / - SUM ( - + 50 )
----
780658579

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-88
SELECT ALL - 68 - - CAST( - + 37 AS SIGNED ) + - 11
----
-116

skipif mysql # not compatible
query I rowsort label-88
SELECT ALL - 68 - - CAST ( - + 37 AS INTEGER ) + - 11
----
-116

query I rowsort
SELECT 39 * + 3 AS col1
----
117

query II rowsort
SELECT ALL 90 AS col0, 5 * - 1
----
90
-5

query II rowsort
SELECT DISTINCT 41 AS col2, - 54 AS col1
----
41
-54

onlyif mysql # aggregate syntax: 
query II rowsort label-92
SELECT DISTINCT + 96 * - 46 * COUNT( * ), - 53 AS col2
----
-4416
-53

skipif mysql # not compatible
query II rowsort label-92
SELECT DISTINCT + 96 * - 46 * COUNT ( * ), - 53 AS col2
----
-4416
-53

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-93
SELECT DISTINCT + 14 DIV + CASE 88 WHEN + 94 DIV - + COUNT( * ) * 42 * 99 * 39 + - + 89 THEN NULL ELSE 55 END DIV + COUNT( * ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-93
SELECT DISTINCT + 14 / + CASE 88 WHEN + 94 / - + COUNT ( * ) * 42 * 99 * 39 + - + 89 THEN NULL ELSE 55 END / + COUNT ( * ) AS col1
----
0

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-95
SELECT 71 DIV 45
----
1

skipif mysql # not compatible
query I rowsort label-95
SELECT 71 / 45
----
1

query I rowsort
SELECT DISTINCT - 97 * 68 AS col2
----
-6596

onlyif mysql # aggregate syntax: 
query I rowsort label-97
SELECT ALL - MAX( DISTINCT 34 ) col0
----
-34

skipif mysql # not compatible
query I rowsort label-97
SELECT ALL - MAX ( DISTINCT 34 ) col0
----
-34

query II rowsort
SELECT ALL - 44 * + 23 + - 62 AS col0, 12 * - 8
----
-1074
-96

query I rowsort
SELECT 42 * - 43 - + 65 * + - 18
----
-636

query I rowsort
SELECT ALL - - 44 col0
----
44

onlyif mysql # DIV for integer division: 
query I rowsort label-101
SELECT 73 DIV - 30 + + 74 + + 61 AS col2
----
133

skipif mysql # not compatible
query I rowsort label-101
SELECT 73 / - 30 + + 74 + + 61 AS col2
----
133

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-102
SELECT DISTINCT - + COUNT( * ) * 59 + + - 37 * 29 - - - COUNT( * ) - - COUNT( * ) + - + MAX( DISTINCT - 26 ) + + 33 DIV + 64 * - 23 col1
----
-1106

skipif mysql # not compatible
query I rowsort label-102
SELECT DISTINCT - + COUNT ( * ) * 59 + + - 37 * 29 - - - COUNT ( * ) - - COUNT ( * ) + - + MAX ( DISTINCT - 26 ) + + 33 / + 64 * - 23 col1
----
-1106

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-103
SELECT DISTINCT ( + 23 ) * - 3 - + + 56 + + + 37 + COUNT( * ) DIV - - 44 col2
----
-88

skipif mysql # not compatible
query I rowsort label-103
SELECT DISTINCT ( + 23 ) * - 3 - + + 56 + + + 37 + COUNT ( * ) / - - 44 col2
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-104
SELECT - COALESCE ( + MIN( 23 ), - COUNT( * ) )
----
-23

skipif mysql # not compatible
query I rowsort label-104
SELECT - COALESCE ( + MIN ( 23 ), - COUNT ( * ) )
----
-23

query I rowsort
SELECT 42 * - ( - 70 ) * - 72 AS col0
----
-211680

onlyif mysql # aggregate syntax: 
query I rowsort label-106
SELECT - COALESCE ( + + 22, + COUNT( * ), - 87 )
----
-22

skipif mysql # not compatible
query I rowsort label-106
SELECT - COALESCE ( + + 22, + COUNT ( * ), - 87 )
----
-22

query II rowsort
SELECT ALL - - 76 + + - 47 + - 64 * + 30 * - - 67 AS col2, 10 AS col0
----
-128611
10

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-109
SELECT + - 65 * - MIN( + 13 ) + 59 * CAST( NULL AS SIGNED ) / + + COALESCE ( NULLIF ( ( + - COUNT( * ) ), 93 + + 9 ), ( + 38 ), + 84 / + + 84 / + MAX( DISTINCT - 48 ) * + - 84 - + 24 ) + - 49 + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-109
SELECT + - 65 * - MIN ( + 13 ) + 59 * CAST ( NULL AS INTEGER ) / + + COALESCE ( NULLIF ( ( + - COUNT ( * ) ), 93 + + 9 ), ( + 38 ), + 84 / + + 84 / + MAX ( DISTINCT - 48 ) * + - 84 - + 24 ) + - 49 + - COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-110
SELECT 21 * 88 + 2 - + + COALESCE ( - + ( - CAST( - AVG ( + ( 5 ) ) AS SIGNED ) ), + 94 + - COUNT( * ), - COUNT( * ) ) * - 47 AS col0
----
1615

skipif mysql # not compatible
query I rowsort label-110
SELECT 21 * 88 + 2 - + + COALESCE ( - + ( - CAST ( - AVG ( + ( 5 ) ) AS INTEGER ) ), + 94 + - COUNT ( * ), - COUNT ( * ) ) * - 47 AS col0
----
1615

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

query I rowsort
SELECT ALL - 97 + + 1 + 37
----
-59

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

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

query II rowsort
SELECT 60 AS col1, 90 + - + 84 AS col2
----
60
6

query II rowsort
SELECT 77 AS col0, 55 * - COALESCE ( + 86, 91 * 94, + 56 ) AS col1
----
77
-4730

query I rowsort
SELECT - 23 - + 70 + + ( 53 ) AS col1
----
-40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-117
SELECT - CASE + COUNT( * ) WHEN - - COUNT( * ) THEN - CAST( NULL AS SIGNED ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-117
SELECT - CASE + COUNT ( * ) WHEN - - COUNT ( * ) THEN - CAST ( NULL AS INTEGER ) ELSE NULL END
----
NULL

query I rowsort
SELECT + 87 * 45
----
3915

onlyif mysql # DIV for integer division: 
query I rowsort label-119
SELECT ALL 11 DIV + 94 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-119
SELECT ALL 11 / + 94 AS col2
----
0

query I rowsort
SELECT DISTINCT COALESCE ( 0, 32 ) AS col2
----
0

query I rowsort
SELECT + 51 * - 66 AS col1
----
-3366

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-122
SELECT DISTINCT 85 AS col0, + CAST( CAST( NULL AS SIGNED ) AS DECIMAL ) + + + COUNT( * ) * + - CAST( - - 96 AS SIGNED )
----
85
NULL

skipif mysql # not compatible
query II rowsort label-122
SELECT DISTINCT 85 AS col0, + CAST ( CAST ( NULL AS INTEGER ) AS REAL ) + + + COUNT ( * ) * + - CAST ( - - 96 AS INTEGER )
----
85
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-123
SELECT ALL AVG ( DISTINCT - CAST( NULL AS SIGNED ) ) / - - 43
----
NULL

skipif mysql # not compatible
query I rowsort label-123
SELECT ALL AVG ( DISTINCT - CAST ( NULL AS INTEGER ) ) / - - 43
----
NULL

query I rowsort
SELECT - 39 + - 18
----
-57

query I rowsort
SELECT + 15 + + + 40 * + 71
----
2855

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-126
SELECT - CAST( 3 AS SIGNED ) * + 99 - - COUNT( DISTINCT 24 ) AS col0
----
-296

skipif mysql # not compatible
query I rowsort label-126
SELECT - CAST ( 3 AS INTEGER ) * + 99 - - COUNT ( DISTINCT 24 ) AS col0
----
-296

query I rowsort
SELECT ALL 3 + + 24 AS col0
----
27

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-128
SELECT + 9 + 33 + CASE + COUNT( * ) WHEN + - 97 THEN NULL WHEN + + MIN( ALL + 60 ) + COALESCE ( - + 99, + 4 ) THEN NULL ELSE + + 54 - + - AVG ( + 99 ) END + - + ( CAST( NULL AS DECIMAL ) ) * 44 * - MIN( ALL 29 )
----
NULL

skipif mysql # not compatible
query I rowsort label-128
SELECT + 9 + 33 + CASE + COUNT ( * ) WHEN + - 97 THEN NULL WHEN + + MIN ( ALL + 60 ) + COALESCE ( - + 99, + 4 ) THEN NULL ELSE + + 54 - + - AVG ( + 99 ) END + - + ( CAST ( NULL AS REAL ) ) * 44 * - MIN ( ALL 29 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-129
SELECT ALL - 55 + - MAX( + - 41 ) * + MAX( ALL + 49 ) col0
----
1954

skipif mysql # not compatible
query I rowsort label-129
SELECT ALL - 55 + - MAX ( + - 41 ) * + MAX ( ALL + 49 ) col0
----
1954

query II rowsort
SELECT + 2 + + 87, 46 AS col0
----
89
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-131
SELECT ALL 72 + + CASE - 85 WHEN + COUNT( * ) THEN 20 + SUM( ALL - - 13 ) + + CASE - 20 WHEN + - 8 + - 73 THEN - 1 / - 67 END WHEN COALESCE ( 4, 83, - 40, + 58 + CAST( NULL AS SIGNED ) ) THEN NULL ELSE NULL END + - - 58 * - CAST( NULL AS DECIMAL ) + + 64 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-131
SELECT ALL 72 + + CASE - 85 WHEN + COUNT ( * ) THEN 20 + SUM ( ALL - - 13 ) + + CASE - 20 WHEN + - 8 + - 73 THEN - 1 / - 67 END WHEN COALESCE ( 4, 83, - 40, + 58 + CAST ( NULL AS INTEGER ) ) THEN NULL ELSE NULL END + - - 58 * - CAST ( NULL AS REAL ) + + 64 AS col2
----
NULL

query I rowsort
SELECT + 16 + ( + 8 ) * - 25 * + 18 AS col1
----
-3584

query I rowsort
SELECT - - 59 + ( - 98 ) AS col1
----
-39

onlyif mysql # aggregate syntax: 
query II rowsort label-134
SELECT ALL + 77 AS col2, COALESCE ( + + 66, - + ( + NULLIF ( SUM( ALL + 39 ), + 10 ) ) + - 75 - - COUNT( * ) * + + COUNT( * ) * + 23 * - + 27 )
----
77
66

skipif mysql # not compatible
query II rowsort label-134
SELECT ALL + 77 AS col2, COALESCE ( + + 66, - + ( + NULLIF ( SUM ( ALL + 39 ), + 10 ) ) + - 75 - - COUNT ( * ) * + + COUNT ( * ) * + 23 * - + 27 )
----
77
66

query I rowsort
SELECT + - 89 * + 48 + - 77 col0
----
-4349

onlyif mysql # aggregate syntax: 
query I rowsort label-136
SELECT DISTINCT - 11 * - COUNT( * ) + - 91 AS col0
----
-80

skipif mysql # not compatible
query I rowsort label-136
SELECT DISTINCT - 11 * - COUNT ( * ) + - 91 AS col0
----
-80

onlyif mysql # DIV for integer division: 
query I rowsort label-137
SELECT - + COALESCE ( + 53, 26 ) + ( + 0 ) DIV 83 + COALESCE ( + 12, - 55 ) - - 92 AS col1
----
51

skipif mysql # not compatible
query I rowsort label-137
SELECT - + COALESCE ( + 53, 26 ) + ( + 0 ) / 83 + COALESCE ( + 12, - 55 ) - - 92 AS col1
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-138
SELECT ALL 73 * - 57 + 8 * - COUNT( * ) AS col1
----
-4169

skipif mysql # not compatible
query I rowsort label-138
SELECT ALL 73 * - 57 + 8 * - COUNT ( * ) AS col1
----
-4169

query I rowsort
SELECT - 74 * - 82
----
6068

query I rowsort
SELECT - - 7 + + ( 28 )
----
35

query I rowsort
SELECT ALL + CASE - + 30 WHEN - - 92 THEN NULL ELSE + 76 END AS col1
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-142
SELECT ALL - NULLIF ( COUNT( * ), - 37 ) * - + 4 - + - COUNT( * ) + - + COALESCE ( - 73, + MAX( 21 ) )
----
78

skipif mysql # not compatible
query I rowsort label-142
SELECT ALL - NULLIF ( COUNT ( * ), - 37 ) * - + 4 - + - COUNT ( * ) + - + COALESCE ( - 73, + MAX ( 21 ) )
----
78

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-144
SELECT - - COALESCE ( - MAX( + 96 ), + 65, + CAST( - + 53 AS SIGNED ), 85 ) DIV - - 47
----
-2

skipif mysql # not compatible
query I rowsort label-144
SELECT - - COALESCE ( - MAX ( + 96 ), + 65, + CAST ( - + 53 AS INTEGER ), 85 ) / - - 47
----
-2

query I rowsort
SELECT - 35 + ( + 49 ) AS col2
----
14

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-147
SELECT - 6 * CAST( - - 32 AS SIGNED ) AS col2
----
-192

skipif mysql # not compatible
query I rowsort label-147
SELECT - 6 * CAST ( - - 32 AS INTEGER ) AS col2
----
-192

query I rowsort
SELECT 4 * - 97 + + 95 AS col1
----
-293

onlyif mysql # aggregate syntax: 
query I rowsort label-149
SELECT COALESCE ( - NULLIF ( ( 29 ), + MIN( ALL 84 ) * + - 46 ), 79 ) AS col0
----
-29

skipif mysql # not compatible
query I rowsort label-149
SELECT COALESCE ( - NULLIF ( ( 29 ), + MIN ( ALL 84 ) * + - 46 ), 79 ) AS col0
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-150
SELECT - 99 + + MAX( ALL - 10 )
----
-109

skipif mysql # not compatible
query I rowsort label-150
SELECT - 99 + + MAX ( ALL - 10 )
----
-109

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-151
SELECT DISTINCT CAST( + - 37 AS SIGNED ) AS col0
----
-37

skipif mysql # not compatible
query I rowsort label-151
SELECT DISTINCT CAST ( + - 37 AS INTEGER ) AS col0
----
-37

query I rowsort
SELECT ALL - ( + 69 ) * 13 col0
----
-897

query II rowsort
SELECT - 75 * + - 67, 68 AS col2
----
5025
68

query I rowsort
SELECT - 40 * + + 98
----
-3920

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

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

query II rowsort
SELECT ALL + 42 + 74 AS col1, + 92 * - 80 * - - 92 + - 29
----
116
-677149

onlyif mysql # aggregate syntax: 
query I rowsort label-157
SELECT - MAX( + 26 ) AS col1
----
-26

skipif mysql # not compatible
query I rowsort label-157
SELECT - MAX ( + 26 ) AS col1
----
-26

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-158
SELECT - 92 DIV - 91 AS col1, - 59 DIV - SUM( - 54 ), - 42 - + 17 * CASE + - 63 WHEN + - 45 THEN NULL WHEN + 71 THEN + 3 END AS col0
----
1
-1
NULL

skipif mysql # not compatible
query III rowsort label-158
SELECT - 92 / - 91 AS col1, - 59 / - SUM ( - 54 ), - 42 - + 17 * CASE + - 63 WHEN + - 45 THEN NULL WHEN + 71 THEN + 3 END AS col0
----
1
-1
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-159
SELECT - 9 * CAST( 90 AS SIGNED )
----
-810

skipif mysql # not compatible
query I rowsort label-159
SELECT - 9 * CAST ( 90 AS INTEGER )
----
-810

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-161
SELECT ALL 56 DIV - 33 AS col0, 70
----
-1
70

skipif mysql # not compatible
query II rowsort label-161
SELECT ALL 56 / - 33 AS col0, 70
----
-1
70

onlyif mysql # aggregate syntax: 
query I rowsort label-162
SELECT ALL + 79 + - 92 * CASE + 38 WHEN - 44 / + + COUNT( + 75 ) THEN - COALESCE ( - 1, 8 ) ELSE + 77 END AS col0
----
-7005

skipif mysql # not compatible
query I rowsort label-162
SELECT ALL + 79 + - 92 * CASE + 38 WHEN - 44 / + + COUNT ( + 75 ) THEN - COALESCE ( - 1, 8 ) ELSE + 77 END AS col0
----
-7005

query I rowsort
SELECT DISTINCT - NULLIF ( - - ( 54 ), - 99 * - + 60 * - + 65 + - 30 ) + 42 AS col2
----
-12

query I rowsort
SELECT DISTINCT 35 + + 40 * + - 77
----
-3045

query I rowsort
SELECT ALL - 93 + - + 13 + + 42
----
-64

query I rowsort
SELECT ALL + NULLIF ( + - 21, + + 89 ) * 36 col1
----
-756

onlyif mysql # DIV for integer division: 
query I rowsort label-167
SELECT - + 18 DIV + 82 + 50 * - + 17 AS col1
----
-850

skipif mysql # not compatible
query I rowsort label-167
SELECT - + 18 / + 82 + 50 * - + 17 AS col1
----
-850

onlyif mysql # DIV for integer division: 
query II rowsort label-168
SELECT + 23 DIV - 93 AS col2, + 71 + + 36 + 40 - - 56 * ( - + 81 )
----
0
-4389

skipif mysql # not compatible
query II rowsort label-168
SELECT + 23 / - 93 AS col2, + 71 + + 36 + 40 - - 56 * ( - + 81 )
----
0
-4389

query I rowsort
SELECT - 62 * - 30
----
1860

query I rowsort
SELECT + ( - 85 ) * - - 60
----
-5100

query I rowsort
SELECT ALL 6 + + 93 + - - 93 + + - ( 60 ) * + - 10 AS col2
----
792

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-172
SELECT + COALESCE ( + 84, - - 38 * COUNT( * ) + - 16 + - 52 * - - 78 * + 18 ) DIV + 52 * + - 42 DIV + NULLIF ( + + 25, + 49 * - 91 + - 78 ) * + 78 DIV + 76 - + 30
----
-31

skipif mysql # not compatible
query I rowsort label-172
SELECT + COALESCE ( + 84, - - 38 * COUNT ( * ) + - 16 + - 52 * - - 78 * + 18 ) / + 52 * + - 42 / + NULLIF ( + + 25, + 49 * - 91 + - 78 ) * + 78 / + 76 - + 30
----
-31

query I rowsort
SELECT + ( - + COALESCE ( 70, - 95 * - 59 * - + 17 ) ) - 38
----
-108

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-176
SELECT + 39 * - 97, COUNT( * ) AS col0
----
-3783
1

skipif mysql # not compatible
query II rowsort label-176
SELECT + 39 * - 97, COUNT ( * ) AS col0
----
-3783
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-177
SELECT - COALESCE ( + 29, COUNT( * ) ) * + COUNT( * ) + - 74 * - CAST( NULL AS SIGNED ) - - ( + - 64 )
----
NULL

skipif mysql # not compatible
query I rowsort label-177
SELECT - COALESCE ( + 29, COUNT ( * ) ) * + COUNT ( * ) + - 74 * - CAST ( NULL AS INTEGER ) - - ( + - 64 )
----
NULL

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-179
SELECT 85 AS col2, 53 * COUNT( * ) DIV ( + + 33 )
----
85
1

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

query I rowsort
SELECT 18 * - 82 + + - ( - + 94 ) AS col1
----
-1382

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-181
SELECT DISTINCT COUNT( * ) DIV 7 DIV 63 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-181
SELECT DISTINCT COUNT ( * ) / 7 / 63 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-182
SELECT 30 * - 58 * COUNT( * )
----
-1740

skipif mysql # not compatible
query I rowsort label-182
SELECT 30 * - 58 * COUNT ( * )
----
-1740

onlyif mysql # aggregate syntax: 
query II rowsort label-183
SELECT ALL - COALESCE ( - CASE NULLIF ( NULLIF ( 31, - CASE 97 WHEN - 40 + - 35 * + + 71 THEN + ( - 68 ) * + 82 WHEN 11 / - + 59 + - 99 + + COUNT( * ) THEN NULL WHEN + + 93 THEN + COUNT( * ) ELSE NULL END / + + COUNT( * ) ), - - 16 ) WHEN + + COUNT( * ) * 80 + + 17 + + 54 THEN NULL WHEN - 43 - - 44 THEN + 96 * + 45 END, + 44 * - + 85 ), + 53 AS col2
----
3740
53

skipif mysql # not compatible
query II rowsort label-183
SELECT ALL - COALESCE ( - CASE NULLIF ( NULLIF ( 31, - CASE 97 WHEN - 40 + - 35 * + + 71 THEN + ( - 68 ) * + 82 WHEN 11 / - + 59 + - 99 + + COUNT ( * ) THEN NULL WHEN + + 93 THEN + COUNT ( * ) ELSE NULL END / + + COUNT ( * ) ), - - 16 ) WHEN + + COUNT ( * ) * 80 + + 17 + + 54 THEN NULL WHEN - 43 - - 44 THEN + 96 * + 45 END, + 44 * - + 85 ), + 53 AS col2
----
3740
53

onlyif mysql # DIV for integer division: 
query I rowsort label-184
SELECT ALL + 55 DIV + + ( - 59 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-184
SELECT ALL + 55 / + + ( - 59 ) AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-185
SELECT - 20 * + + 29 + + - 97 + + 95 + - + ( 22 ) DIV - 44
----
-582

skipif mysql # not compatible
query I rowsort label-185
SELECT - 20 * + + 29 + + - 97 + + 95 + - + ( 22 ) / - 44
----
-582

query I rowsort
SELECT 55 * - 39
----
-2145

onlyif mysql # aggregate syntax: 
query I rowsort label-187
SELECT ALL - 10 + COUNT( * ) + + 91 * 30 - + + 63 AS col0
----
2658

skipif mysql # not compatible
query I rowsort label-187
SELECT ALL - 10 + COUNT ( * ) + + 91 * 30 - + + 63 AS col0
----
2658

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

query I rowsort
SELECT 45 + - 49
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-190
SELECT 55 + COUNT( * ) + + + COUNT( * ) * + 62
----
118

skipif mysql # not compatible
query I rowsort label-190
SELECT 55 + COUNT ( * ) + + + COUNT ( * ) * + 62
----
118

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

skipif mysql # not compatible
query I rowsort label-191
SELECT ALL - CAST ( NULL AS REAL ) + + + 46 AS col2
----
NULL

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

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

query I rowsort
SELECT ALL + 11 + - 41 + 46
----
16

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-194
SELECT 34 AS col0, - CAST( NULL AS DECIMAL )
----
34
NULL

skipif mysql # not compatible
query II rowsort label-194
SELECT 34 AS col0, - CAST ( NULL AS REAL )
----
34
NULL

query I rowsort
SELECT ALL 50 + - 89
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-196
SELECT 71 - - ( + + ( + 56 ) ) - 79 * 12 + 5 - 57 * + COUNT( * ) col1
----
-873

skipif mysql # not compatible
query I rowsort label-196
SELECT 71 - - ( + + ( + 56 ) ) - 79 * 12 + 5 - 57 * + COUNT ( * ) col1
----
-873

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-197
SELECT - CASE COUNT( * ) WHEN - 12 * + 80 THEN NULL ELSE 47 * + 33 + - COALESCE ( + 44, 88 - 96 * + 58 DIV + 17 * + - COUNT( * ) * + COALESCE ( - 65, + ( + 70 ), - COUNT( * ) ) DIV - 62 ) - + 37 - + 96 * - 83 END
----
-9438

skipif mysql # not compatible
query I rowsort label-197
SELECT - CASE COUNT ( * ) WHEN - 12 * + 80 THEN NULL ELSE 47 * + 33 + - COALESCE ( + 44, 88 - 96 * + 58 / + 17 * + - COUNT ( * ) * + COALESCE ( - 65, + ( + 70 ), - COUNT ( * ) ) / - 62 ) - + 37 - + 96 * - 83 END
----
-9438

query II rowsort
SELECT - 5, + 3 * - 91 AS col0
----
-5
-273

query II rowsort
SELECT - 20 + + NULLIF ( 9, + - 84 + 34 ) * 21, 73 * 61 * + - ( - - 12 ) col0
----
169
-53436

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-200
SELECT ALL + 62 - + 43 + + COUNT( * ) * 67 / + - COUNT( * ) * - + 44 - + 14 + + 35 - - CAST( CAST( NULL AS SIGNED ) AS SIGNED ) + - - 23
----
NULL

skipif mysql # not compatible
query I rowsort label-200
SELECT ALL + 62 - + 43 + + COUNT ( * ) * 67 / + - COUNT ( * ) * - + 44 - + 14 + + 35 - - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) + - - 23
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-201
SELECT 50 + - 93 * - MAX( DISTINCT 55 )
----
5165

skipif mysql # not compatible
query I rowsort label-201
SELECT 50 + - 93 * - MAX ( DISTINCT 55 )
----
5165

query II rowsort
SELECT ( - 0 ) + 54, + 86 * 28 AS col0
----
54
2408

query I rowsort
SELECT + 87 + + 2 + + 16 + - + 23 AS col0
----
82

query I rowsort
SELECT ALL + + 90 - ( - - COALESCE ( + - 39, 49 * - 34 + + 72 ) ) AS col0
----
129

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-205
SELECT CAST( - 89 AS SIGNED ) + CAST( NULL AS SIGNED ) * - 62 / - 66 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-205
SELECT CAST ( - 89 AS INTEGER ) + CAST ( NULL AS INTEGER ) * - 62 / - 66 col1
----
NULL

query I rowsort
SELECT ALL 40 - + 48
----
-8

query II rowsort
SELECT ALL - - 79, - 21 col2
----
79
-21

query I rowsort
SELECT ALL 53 * + 31 * + 35
----
57505

query I rowsort
SELECT 65 + - 93
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-210
SELECT + + 94 * + NULLIF ( 83, + - COUNT( * ) * + + 94 - + 90 ) + + 37
----
7839

skipif mysql # not compatible
query I rowsort label-210
SELECT + + 94 * + NULLIF ( 83, + - COUNT ( * ) * + + 94 - + 90 ) + + 37
----
7839

query I rowsort
SELECT DISTINCT - 18 * + + 56
----
-1008

query I rowsort
SELECT DISTINCT 24 * + 38 col1
----
912

query I rowsort
SELECT DISTINCT ( - 94 ) + + 87
----
-7

onlyif mysql # DIV for integer division: 
query II rowsort label-214
SELECT 65 + - 94 AS col1, 95 DIV 50
----
-29
1

skipif mysql # not compatible
query II rowsort label-214
SELECT 65 + - 94 AS col1, 95 / 50
----
-29
1

query I rowsort
SELECT ALL 87 + - 27 + + - 49 col0
----
11

query I rowsort
SELECT DISTINCT 45 * - + 14 AS col0
----
-630

onlyif mysql # aggregate syntax: 
query II rowsort label-217
SELECT 78 * + - 33 + - - SUM( ( - 60 ) ) AS col1, - 22 * + + 89
----
-2634
-1958

skipif mysql # not compatible
query II rowsort label-217
SELECT 78 * + - 33 + - - SUM ( ( - 60 ) ) AS col1, - 22 * + + 89
----
-2634
-1958

query I rowsort
SELECT ( - - 12 ) - - 31 AS col0
----
43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-219
SELECT CAST( - CAST( - 60 AS SIGNED ) AS SIGNED ) + - COUNT( ALL - - 15 )
----
59

skipif mysql # not compatible
query I rowsort label-219
SELECT CAST ( - CAST ( - 60 AS INTEGER ) AS INTEGER ) + - COUNT ( ALL - - 15 )
----
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-220
SELECT ALL CAST( + 71 AS SIGNED ) + - COUNT( * ) + - 41 * 74 / + + CAST( NULL AS SIGNED ) * 10 + + 31 * + 41
----
NULL

skipif mysql # not compatible
query I rowsort label-220
SELECT ALL CAST ( + 71 AS INTEGER ) + - COUNT ( * ) + - 41 * 74 / + + CAST ( NULL AS INTEGER ) * 10 + + 31 * + 41
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-221
SELECT ALL - 79 + + + SUM( 4 ) AS col0
----
-75

skipif mysql # not compatible
query I rowsort label-221
SELECT ALL - 79 + + + SUM ( 4 ) AS col0
----
-75

query I rowsort
SELECT 71 + + - 18 * + 16 + + 23 AS col1
----
-194

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

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

query I rowsort
SELECT 80 + + 73 + 81 * + 52 * + 78 AS col0
----
328689

query I rowsort
SELECT 90 + - + 38 - + 46
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-226
SELECT ALL + 79 - SUM( DISTINCT + - 11 ) + + 64 - + 19 + + 94 AS col2
----
229

skipif mysql # not compatible
query I rowsort label-226
SELECT ALL + 79 - SUM ( DISTINCT + - 11 ) + + 64 - + 19 + + 94 AS col2
----
229

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-227
SELECT + 44 / - CASE - - 55 WHEN 31 + CAST( - MIN( ALL - + ( - + 22 ) ) AS SIGNED ) THEN - 57 + COUNT( * ) WHEN + - 40 THEN + + NULLIF ( 82, + 77 ) END + + 4 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-227
SELECT + 44 / - CASE - - 55 WHEN 31 + CAST ( - MIN ( ALL - + ( - + 22 ) ) AS INTEGER ) THEN - 57 + COUNT ( * ) WHEN + - 40 THEN + + NULLIF ( 82, + 77 ) END + + 4 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-228
SELECT 62 * + ( COUNT( * ) ) DIV 97 + - + 15
----
-15

skipif mysql # not compatible
query I rowsort label-228
SELECT 62 * + ( COUNT ( * ) ) / 97 + - + 15
----
-15

query I rowsort
SELECT CASE + 91 WHEN 40 THEN 3 * - + ( + 21 ) END * 62
----
NULL

query II rowsort
SELECT ALL 41 - + + 98, 42 col1
----
-57
42

query I rowsort
SELECT - ( - 40 ) * - 59 + - - 11 * 45
----
-1865

onlyif mysql # aggregate syntax: 
query I rowsort label-232
SELECT ALL - COALESCE ( + + 55, CASE - 34 WHEN 19 + + - MAX( ALL - 97 ) THEN + 23 - - + 58 + + 3 END, COUNT( * ) ) AS col1
----
-55

skipif mysql # not compatible
query I rowsort label-232
SELECT ALL - COALESCE ( + + 55, CASE - 34 WHEN 19 + + - MAX ( ALL - 97 ) THEN + 23 - - + 58 + + 3 END, COUNT ( * ) ) AS col1
----
-55

query I rowsort
SELECT - 51 + 74 + - 20
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-234
SELECT - 1 - - + ( + + COUNT( * ) ) * + 81 * - - 50 + + + 89
----
4138

skipif mysql # not compatible
query I rowsort label-234
SELECT - 1 - - + ( + + COUNT ( * ) ) * + 81 * - - 50 + + + 89
----
4138

onlyif mysql # aggregate syntax: 
query I rowsort label-235
SELECT ALL + - MIN( DISTINCT - 14 ) AS col1
----
14

skipif mysql # not compatible
query I rowsort label-235
SELECT ALL + - MIN ( DISTINCT - 14 ) AS col1
----
14

query I rowsort
SELECT - 35 * - 78
----
2730

query II rowsort
SELECT ALL 47 * - 75 * + + 68 AS col1, 7 * + ( + 91 ) + 79 AS col2
----
-239700
716

query I rowsort
SELECT ALL - 65 * 27 + ( + 25 )
----
-1730

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-239
SELECT - 23 + + - 87 - + COUNT( DISTINCT + 47 ) DIV + 22 * + - 79 * + 60 AS col2
----
-110

skipif mysql # not compatible
query I rowsort label-239
SELECT - 23 + + - 87 - + COUNT ( DISTINCT + 47 ) / + 22 * + - 79 * + 60 AS col2
----
-110

query I rowsort
SELECT - 40 * + - 56 * + 78 AS col2
----
174720

onlyif mysql # aggregate syntax: 
query I rowsort label-241
SELECT + MIN( + 0 )
----
0

skipif mysql # not compatible
query I rowsort label-241
SELECT + MIN ( + 0 )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-242
SELECT DISTINCT + 32 * 38 * + 4 + + COALESCE ( - + 86, + 21 * + - 18 * - COUNT( * ) * 18 * 0 DIV 95, + + COUNT( DISTINCT - 98 ) ) col1
----
4778

skipif mysql # not compatible
query I rowsort label-242
SELECT DISTINCT + 32 * 38 * + 4 + + COALESCE ( - + 86, + 21 * + - 18 * - COUNT ( * ) * 18 * 0 / 95, + + COUNT ( DISTINCT - 98 ) ) col1
----
4778

query I rowsort
SELECT ALL - 55 * - - 81 AS col0
----
-4455

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-244
SELECT ALL 12 * + 35 + + - 94 - - - 10 - - 10 / - ( - COUNT( * ) ) * + 2 / CASE 0 WHEN CASE + - 51 WHEN + + 7 THEN 22 * + 79 WHEN - 33 / + 85 - + 41 / - CAST( - CASE + 11 WHEN - 80 THEN + 14 WHEN + + 53 THEN NULL END AS SIGNED ) + - - COALESCE ( + 24, + 57 - 54 ) THEN NULL WHEN 84 + + + 24 THEN NULL WHEN SUM( - + 0 ) THEN NULL END - COUNT( * ) + - + COUNT( * ) * + - 34 + COUNT( * ) * COUNT( * ) - 29 * + 18 THEN CASE 84 WHEN + 59 * 24 THEN - 62 * - CASE + 64 WHEN 21 * + + 35 THEN - 17 END WHEN 54 THEN NULL END WHEN 25 * - 16 - 3 * + MIN( DISTINCT 30 ) THEN - 0 * - ( 3 ) WHEN - ( + 23 ) * + 92 THEN NULL END / - COUNT( * ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-244
SELECT ALL 12 * + 35 + + - 94 - - - 10 - - 10 / - ( - COUNT ( * ) ) * + 2 / CASE 0 WHEN CASE + - 51 WHEN + + 7 THEN 22 * + 79 WHEN - 33 / + 85 - + 41 / - CAST ( - CASE + 11 WHEN - 80 THEN + 14 WHEN + + 53 THEN NULL END AS INTEGER ) + - - COALESCE ( + 24, + 57 - 54 ) THEN NULL WHEN 84 + + + 24 THEN NULL WHEN SUM ( - + 0 ) THEN NULL END - COUNT ( * ) + - + COUNT ( * ) * + - 34 + COUNT ( * ) * COUNT ( * ) - 29 * + 18 THEN CASE 84 WHEN + 59 * 24 THEN - 62 * - CASE + 64 WHEN 21 * + + 35 THEN - 17 END WHEN 54 THEN NULL END WHEN 25 * - 16 - 3 * + MIN ( DISTINCT 30 ) THEN - 0 * - ( 3 ) WHEN - ( + 23 ) * + 92 THEN NULL END / - COUNT ( * ) col0
----
NULL

query I rowsort
SELECT DISTINCT - 55 * + 20 * + 14 + + 40
----
-15360

onlyif mysql # aggregate syntax: 
query I rowsort label-246
SELECT DISTINCT 24 * 11 - + + COUNT( * )
----
263

skipif mysql # not compatible
query I rowsort label-246
SELECT DISTINCT 24 * 11 - + + COUNT ( * )
----
263

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

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

query I rowsort
SELECT + 74 * - 47 + + + 91 + - 34
----
-3421

query II rowsort
SELECT ALL 49, 86 AS col0
----
49
86

onlyif mysql # aggregate syntax: 
query I rowsort label-250
SELECT MIN( ALL 31 ) AS col2
----
31

skipif mysql # not compatible
query I rowsort label-250
SELECT MIN ( ALL 31 ) AS col2
----
31

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

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

query I rowsort
SELECT + 79 * + 33 AS col1
----
2607

query I rowsort
SELECT ALL 91 * 90 AS col1
----
8190

query I rowsort
SELECT + 97 + 40
----
137

query I rowsort
SELECT ALL 2 - 34 AS col1
----
-32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-256
SELECT + CASE - CAST( NULL AS SIGNED ) WHEN - 40 + 60 THEN 17 * COUNT( * ) WHEN 75 THEN NULL END + 50 * - 93 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-256
SELECT + CASE - CAST ( NULL AS INTEGER ) WHEN - 40 + 60 THEN 17 * COUNT ( * ) WHEN 75 THEN NULL END + 50 * - 93 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-257
SELECT ALL + COALESCE ( + 7, ( 18 ) * 5 ) - + COALESCE ( - 25 + + 32, - 32 * CAST( 10 AS SIGNED ) ) * + COALESCE ( 35 * 93, 38 DIV 67 - 90 )
----
-22778

skipif mysql # not compatible
query I rowsort label-257
SELECT ALL + COALESCE ( + 7, ( 18 ) * 5 ) - + COALESCE ( - 25 + + 32, - 32 * CAST ( 10 AS INTEGER ) ) * + COALESCE ( 35 * 93, 38 / 67 - 90 )
----
-22778

query I rowsort
SELECT + 49 + 90
----
139

onlyif mysql # DIV for integer division: 
query I rowsort label-259
SELECT + 67 DIV 57 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-259
SELECT + 67 / 57 AS col0
----
1

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-261
SELECT - 43 - + 88 DIV 46
----
-44

skipif mysql # not compatible
query I rowsort label-261
SELECT - 43 - + 88 / 46
----
-44

query I rowsort
SELECT - 19 + 24
----
5

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

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

query I rowsort
SELECT - 95 + 86 * - 95
----
-8265

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-265
SELECT + 7 + NULLIF ( CAST( + 92 AS SIGNED ), - 24 * CASE 7 WHEN 77 * ( CASE WHEN NULL BETWEEN + 88 AND ( NULL ) THEN + 49 * + CASE 9 / - 39 WHEN + 45 THEN NULL WHEN 17 THEN 22 + 11 END + 5 ELSE + 73 END ) THEN + NULLIF ( 15, 86 ) END ) AS col2
----
99

skipif mysql # not compatible
query I rowsort label-265
SELECT + 7 + NULLIF ( CAST ( + 92 AS INTEGER ), - 24 * CASE 7 WHEN 77 * ( CASE WHEN NULL BETWEEN + 88 AND ( NULL ) THEN + 49 * + CASE 9 / - 39 WHEN + 45 THEN NULL WHEN 17 THEN 22 + 11 END + 5 ELSE + 73 END ) THEN + NULLIF ( 15, 86 ) END ) AS col2
----
99

query I rowsort
SELECT ALL - ( - 81 ) + 46
----
127

onlyif mysql # aggregate syntax: 
query I rowsort label-267
SELECT + 83 + - COALESCE ( COALESCE ( + 29, COUNT( * ) * MIN( + 95 ), 79 ), - 57 ) AS col2
----
54

skipif mysql # not compatible
query I rowsort label-267
SELECT + 83 + - COALESCE ( COALESCE ( + 29, COUNT ( * ) * MIN ( + 95 ), 79 ), - 57 ) AS col2
----
54

query I rowsort
SELECT - 59 + ( 5 ) AS col2
----
-54

query I rowsort
SELECT ALL ( + 27 ) + 29 AS col1
----
56

query I rowsort
SELECT DISTINCT - 68 * 42
----
-2856

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-271
SELECT ALL 96 DIV 86 + ( COALESCE ( - 2, COUNT( * ) * 38 ) + 8 )
----
7

skipif mysql # not compatible
query I rowsort label-271
SELECT ALL 96 / 86 + ( COALESCE ( - 2, COUNT ( * ) * 38 ) + 8 )
----
7

query I rowsort
SELECT + 23 * + 51
----
1173

query I rowsort
SELECT - 29 + 22 AS col1
----
-7

query I rowsort
SELECT - 47 * 28
----
-1316

query I rowsort
SELECT + 84 * - 63 + + ( 38 + 31 ) AS col1
----
-5223

query I rowsort
SELECT DISTINCT - ( + NULLIF ( ( + 75 ), + 41 ) ) * 63
----
-4725

query I rowsort
SELECT + COALESCE ( + COALESCE ( - 61, + 38 ), + 47 * 32, 38 ) AS col1
----
-61

onlyif mysql # DIV for integer division: 
query I rowsort label-278
SELECT 15 DIV + 45 + - 52
----
-52

skipif mysql # not compatible
query I rowsort label-278
SELECT 15 / + 45 + - 52
----
-52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-279
SELECT DISTINCT - COALESCE ( + 65, + 12 ) DIV - 10 + COUNT( * ) AS col2
----
7

skipif mysql # not compatible
query I rowsort label-279
SELECT DISTINCT - COALESCE ( + 65, + 12 ) / - 10 + COUNT ( * ) AS col2
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-280
SELECT - MIN( DISTINCT - 27 ) + + 8
----
35

skipif mysql # not compatible
query I rowsort label-280
SELECT - MIN ( DISTINCT - 27 ) + + 8
----
35

onlyif mysql # DIV for integer division: 
query I rowsort label-281
SELECT - 46 DIV - NULLIF ( 42, 29 DIV 25 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-281
SELECT - 46 / - NULLIF ( 42, 29 / 25 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-282
SELECT DISTINCT + CASE 81 WHEN + 30 - + 57 / 30 THEN NULL ELSE + COUNT( * ) END
----
1

skipif mysql # not compatible
query I rowsort label-282
SELECT DISTINCT + CASE 81 WHEN + 30 - + 57 / 30 THEN NULL ELSE + COUNT ( * ) END
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-283
SELECT DISTINCT - 34 DIV + 57
----
0

skipif mysql # not compatible
query I rowsort label-283
SELECT DISTINCT - 34 / + 57
----
0

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

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

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

skipif mysql # not compatible
query I rowsort label-285
SELECT + COUNT ( * ) + 29 AS col0
----
30

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

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

query I rowsort
SELECT + 45 * 44 + ( 22 )
----
2002

query I rowsort
SELECT + 85 * 15 col1
----
1275

query I rowsort
SELECT ALL 91 * - 56 col1
----
-5096

query I rowsort
SELECT + CASE + 22 WHEN 6 * + 82 THEN NULL ELSE - 9 END * ( - 80 * 50 ) + 58
----
36058

onlyif mysql # aggregate syntax: 
query I rowsort label-291
SELECT 83 - 4 * CASE + 90 WHEN + 81 THEN 0 * - COUNT( * ) + 14 * + 33 WHEN 59 + 76 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-291
SELECT 83 - 4 * CASE + 90 WHEN + 81 THEN 0 * - COUNT ( * ) + 14 * + 33 WHEN 59 + 76 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-292
SELECT ALL - - NULLIF ( 64, MIN( ALL - NULLIF ( 70, - 75 ) ) * + 92 ) AS col2
----
64

skipif mysql # not compatible
query I rowsort label-292
SELECT ALL - - NULLIF ( 64, MIN ( ALL - NULLIF ( 70, - 75 ) ) * + 92 ) AS col2
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-293
SELECT + NULLIF ( + 82, - MIN( DISTINCT + 13 ) )
----
82

skipif mysql # not compatible
query I rowsort label-293
SELECT + NULLIF ( + 82, - MIN ( DISTINCT + 13 ) )
----
82

query I rowsort
SELECT 25 + + 43 AS col1
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-295
SELECT - MAX( ALL - 93 ) + COUNT( * ) * 95
----
188

skipif mysql # not compatible
query I rowsort label-295
SELECT - MAX ( ALL - 93 ) + COUNT ( * ) * 95
----
188

query I rowsort
SELECT - 89 + - ( - 35 ) * + 73 col2
----
2466

query I rowsort
SELECT - 33 * - 21 AS col2
----
693

query I rowsort
SELECT 64 * 32
----
2048

query I rowsort
SELECT ALL 86 + - 74 col1
----
12

query I rowsort
SELECT - + 97 col0
----
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-301
SELECT ALL + 7 * + CASE 46 * + 89 WHEN - 82 + CAST( 60 + 91 * - ( - 85 ) AS SIGNED ) THEN COUNT( * ) WHEN - CAST( + 59 AS SIGNED ) * ( - 99 * ( - 17 ) ) THEN - 33 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-301
SELECT ALL + 7 * + CASE 46 * + 89 WHEN - 82 + CAST ( 60 + 91 * - ( - 85 ) AS INTEGER ) THEN COUNT ( * ) WHEN - CAST ( + 59 AS INTEGER ) * ( - 99 * ( - 17 ) ) THEN - 33 ELSE NULL END
----
NULL

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

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

query I rowsort
SELECT DISTINCT + - 82 + + 45 AS col0
----
-37

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-305
SELECT - ( MIN( - 34 ) ) * 39 col1
----
1326

skipif mysql # not compatible
query I rowsort label-305
SELECT - ( MIN ( - 34 ) ) * 39 col1
----
1326

onlyif mysql # aggregate syntax: 
query I rowsort label-306
SELECT + 49 + + SUM( DISTINCT 90 )
----
139

skipif mysql # not compatible
query I rowsort label-306
SELECT + 49 + + SUM ( DISTINCT 90 )
----
139

onlyif mysql # DIV for integer division: 
query I rowsort label-307
SELECT 68 DIV + 65
----
1

skipif mysql # not compatible
query I rowsort label-307
SELECT 68 / + 65
----
1

query I rowsort
SELECT COALESCE ( - 8, 65, - 73 ) - 87 AS col1
----
-95

query I rowsort
SELECT 75 * + 50 * NULLIF ( 73, + 80 + + 19 / + 19 )
----
273750

onlyif mysql # aggregate syntax: 
query I rowsort label-310
SELECT ALL - 65 + - ( - COUNT( * ) )
----
-64

skipif mysql # not compatible
query I rowsort label-310
SELECT ALL - 65 + - ( - COUNT ( * ) )
----
-64

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

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

query I rowsort
SELECT ALL - COALESCE ( - 10, 2 ) AS col0
----
10

query I rowsort
SELECT DISTINCT - 38 * - 46 col1
----
1748

query I rowsort
SELECT ALL 28 - + 29 * + 2 col0
----
-30

query I rowsort
SELECT ( 51 ) + + ( 10 )
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-316
SELECT + 4 * + + 93 * 5 - + NULLIF ( - 68, CASE + 8 WHEN - 65 THEN NULL ELSE - 99 END * COUNT( ALL - ( + 71 ) * - 24 + + 68 ) ) col1
----
1928

skipif mysql # not compatible
query I rowsort label-316
SELECT + 4 * + + 93 * 5 - + NULLIF ( - 68, CASE + 8 WHEN - 65 THEN NULL ELSE - 99 END * COUNT ( ALL - ( + 71 ) * - 24 + + 68 ) ) col1
----
1928

query I rowsort
SELECT ALL - NULLIF ( - + 53, - 39 )
----
53

query I rowsort
SELECT 93 - 4 * + 46
----
-91

query I rowsort
SELECT ALL - 20 * + + NULLIF ( NULLIF ( + 53, ( 52 ) ), 85 ) AS col2
----
-1060

onlyif mysql # aggregate syntax: 
query I rowsort label-320
SELECT CASE - - ( COUNT( * ) ) WHEN MIN( 78 ) THEN - 52 WHEN 25 THEN NULL END * 55 + 81 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-320
SELECT CASE - - ( COUNT ( * ) ) WHEN MIN ( 78 ) THEN - 52 WHEN 25 THEN NULL END * 55 + 81 AS col0
----
NULL

query I rowsort
SELECT DISTINCT - NULLIF ( + - 46, + ( - 8 ) + - 44 * - 71 )
----
46

onlyif mysql # DIV for integer division: 
query I rowsort label-322
SELECT DISTINCT + 96 DIV + 55 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-322
SELECT DISTINCT + 96 / + 55 AS col1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-323
SELECT ( + + 81 ) DIV 67 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-323
SELECT ( + + 81 ) / 67 AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-324
SELECT + + COUNT( * ) * CASE - 90 WHEN COUNT( * ) + - 47 * 94 THEN 55 ELSE NULL END - - 77 * - 29 + 93
----
NULL

skipif mysql # not compatible
query I rowsort label-324
SELECT + + COUNT ( * ) * CASE - 90 WHEN COUNT ( * ) + - 47 * 94 THEN 55 ELSE NULL END - - 77 * - 29 + 93
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-325
SELECT ALL + 51 DIV 70 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-325
SELECT ALL + 51 / 70 AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-326
SELECT - CASE + 36 WHEN - 45 - + CAST( 27 AS SIGNED ) THEN + 97 WHEN ( - 21 ) THEN NULL ELSE 96 + + 81 END
----
-177

skipif mysql # not compatible
query I rowsort label-326
SELECT - CASE + 36 WHEN - 45 - + CAST ( 27 AS INTEGER ) THEN + 97 WHEN ( - 21 ) THEN NULL ELSE 96 + + 81 END
----
-177

query I rowsort
SELECT 19 + 53 col2
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-328
SELECT ALL - 33 + + MAX( ALL - 32 ) * 42
----
-1377

skipif mysql # not compatible
query I rowsort label-328
SELECT ALL - 33 + + MAX ( ALL - 32 ) * 42
----
-1377

onlyif mysql # aggregate syntax: 
query I rowsort label-329
SELECT + NULLIF ( - + COUNT( * ), 85 + 52 * 65 ) + - 3
----
-4

skipif mysql # not compatible
query I rowsort label-329
SELECT + NULLIF ( - + COUNT ( * ), 85 + 52 * 65 ) + - 3
----
-4

query I rowsort
SELECT DISTINCT - 99 + + 31 + - 75 AS col1
----
-143

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-331
SELECT ( - 73 ) + CAST( NULL AS DECIMAL ) * 29
----
NULL

skipif mysql # not compatible
query I rowsort label-331
SELECT ( - 73 ) + CAST ( NULL AS REAL ) * 29
----
NULL

query I rowsort
SELECT ALL - - 76 + - 65 col1
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-333
SELECT DISTINCT + - 13 + - COUNT( * ) col0
----
-14

skipif mysql # not compatible
query I rowsort label-333
SELECT DISTINCT + - 13 + - COUNT ( * ) col0
----
-14

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

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

query I rowsort
SELECT - 90 + ( 95 ) * 3 AS col1
----
195

onlyif mysql # aggregate syntax: 
query I rowsort label-336
SELECT - CASE AVG ( DISTINCT - 73 ) WHEN - ( + 66 ) THEN + COUNT( * ) ELSE 41 - 99 END
----
58

skipif mysql # not compatible
query I rowsort label-336
SELECT - CASE AVG ( DISTINCT - 73 ) WHEN - ( + 66 ) THEN + COUNT ( * ) ELSE 41 - 99 END
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-337
SELECT - 3 + + - MIN( ALL + 61 )
----
-64

skipif mysql # not compatible
query I rowsort label-337
SELECT - 3 + + - MIN ( ALL + 61 )
----
-64

query I rowsort
SELECT NULLIF ( + - 34, - 23 + - 24 ) AS col2
----
-34

query I rowsort
SELECT 27 + - - 42 AS col2
----
69

query I rowsort
SELECT ALL 88 + - 77 - - 32 + 30 * + 69
----
2113

query I rowsort
SELECT 39 + + 97 * - 0 * 74
----
39

onlyif mysql # aggregate syntax: 
query II rowsort label-342
SELECT - COUNT( * ) AS col2, - 98 + - 89
----
-1
-187

skipif mysql # not compatible
query II rowsort label-342
SELECT - COUNT ( * ) AS col2, - 98 + - 89
----
-1
-187

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-343
SELECT ALL 52 - + 96 + - 36 / AVG ( DISTINCT CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-343
SELECT ALL 52 - + 96 + - 36 / AVG ( DISTINCT CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT 17 * 80
----
1360

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-346
SELECT DISTINCT 87 - - + COALESCE ( - - COALESCE ( + CAST( NULL AS SIGNED ), COUNT( * ) DIV + 62 ), - 67 ) * + COUNT( * )
----
87

skipif mysql # not compatible
query I rowsort label-346
SELECT DISTINCT 87 - - + COALESCE ( - - COALESCE ( + CAST ( NULL AS INTEGER ), COUNT ( * ) / + 62 ), - 67 ) * + COUNT ( * )
----
87

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-347
SELECT COUNT( * ) + - 78 + - - 45 + - 25 DIV - 61 * 80
----
-32

skipif mysql # not compatible
query I rowsort label-347
SELECT COUNT ( * ) + - 78 + - - 45 + - 25 / - 61 * 80
----
-32

query I rowsort
SELECT 84 + 80
----
164

query II rowsort
SELECT DISTINCT - 22 AS col1, 69
----
-22
69

onlyif mysql # aggregate syntax: 
query I rowsort label-350
SELECT + COUNT( * ) * + 7 + + 67 - 45 AS col1
----
29

skipif mysql # not compatible
query I rowsort label-350
SELECT + COUNT ( * ) * + 7 + + 67 - 45 AS col1
----
29

query I rowsort
SELECT 0 * 53
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-352
SELECT ALL - COUNT( * ), 53 DIV - + 50 AS col2
----
-1
-1

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

query I rowsort
SELECT + 80 * + 61 * 97
----
473360

query I rowsort
SELECT - 86 * + 89
----
-7654

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-355
SELECT ALL + COUNT( + ( 65 ) ) DIV - NULLIF ( COUNT( DISTINCT 3 ) + 78, 16 )
----
0

skipif mysql # not compatible
query I rowsort label-355
SELECT ALL + COUNT ( + ( 65 ) ) / - NULLIF ( COUNT ( DISTINCT 3 ) + 78, 16 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-356
SELECT + CAST( + 62 AS SIGNED ) + 78
----
140

skipif mysql # not compatible
query I rowsort label-356
SELECT + CAST ( + 62 AS INTEGER ) + 78
----
140

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-357
SELECT + CASE + COUNT( + - 71 ) WHEN - CAST( + 46 AS SIGNED ) + - SUM( 41 - 38 ) / 3 THEN NULL WHEN 35 THEN - COUNT( * ) END * 74
----
NULL

skipif mysql # not compatible
query I rowsort label-357
SELECT + CASE + COUNT ( + - 71 ) WHEN - CAST ( + 46 AS INTEGER ) + - SUM ( 41 - 38 ) / 3 THEN NULL WHEN 35 THEN - COUNT ( * ) END * 74
----
NULL

query II rowsort
SELECT - 42 col0, 29 * + ( 36 ) * 0 AS col0
----
-42
0

onlyif mysql # aggregate syntax: 
query I rowsort label-359
SELECT - MAX( ALL + COALESCE ( 36, + 88 * 45, - 16 + 40, + 12 ) ) * - 84 + 32
----
3056

skipif mysql # not compatible
query I rowsort label-359
SELECT - MAX ( ALL + COALESCE ( 36, + 88 * 45, - 16 + 40, + 12 ) ) * - 84 + 32
----
3056

onlyif mysql # aggregate syntax: 
query I rowsort label-360
SELECT + + 17 * 11 * + COUNT( * ) + 55 * COUNT( * ) AS col0
----
242

skipif mysql # not compatible
query I rowsort label-360
SELECT + + 17 * 11 * + COUNT ( * ) + 55 * COUNT ( * ) AS col0
----
242

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

skipif mysql # not compatible
query I rowsort label-361
SELECT - - COUNT ( * ) + - + 98 - - + 87 AS col1
----
-10

query I rowsort
SELECT - + 36 + - 74
----
-110

onlyif mysql # aggregate syntax: 
query I rowsort label-363
SELECT ALL - 66 * 42 + - 77 + CASE + 48 - - 36 WHEN COUNT( - 75 ) THEN NULL WHEN 92 THEN - 90 * 43 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-363
SELECT ALL - 66 * 42 + - 77 + CASE + 48 - - 36 WHEN COUNT ( - 75 ) THEN NULL WHEN 92 THEN - 90 * 43 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-364
SELECT DISTINCT + COUNT( * ) * - - CASE - 42 WHEN 34 THEN - 15 * 66 WHEN 79 THEN - 8 ELSE NULL END + ( 44 ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-364
SELECT DISTINCT + COUNT ( * ) * - - CASE - 42 WHEN 34 THEN - 15 * 66 WHEN 79 THEN - 8 ELSE NULL END + ( 44 ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-365
SELECT ALL - MAX( - 69 ) * + 57
----
3933

skipif mysql # not compatible
query I rowsort label-365
SELECT ALL - MAX ( - 69 ) * + 57
----
3933

onlyif mysql # aggregate syntax: 
query I rowsort label-366
SELECT DISTINCT + 80 * + + 55 + - + COUNT( * ) + + 84 AS col1
----
4483

skipif mysql # not compatible
query I rowsort label-366
SELECT DISTINCT + 80 * + + 55 + - + COUNT ( * ) + + 84 AS col1
----
4483

query I rowsort
SELECT ALL + ( - 44 ) col0
----
-44

query I rowsort
SELECT ALL 7 + 59 AS col1
----
66

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-369
SELECT DISTINCT ( CAST( CAST( NULL AS SIGNED ) AS DECIMAL ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-369
SELECT DISTINCT ( CAST ( CAST ( NULL AS INTEGER ) AS REAL ) ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT + NULLIF ( 16, - AVG ( DISTINCT 63 ) )
----
16

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-372
SELECT - + 24 * 99 DIV 89 * - 2 - - 45 AS col2
----
97

skipif mysql # not compatible
query I rowsort label-372
SELECT - + 24 * 99 / 89 * - 2 - - 45 AS col2
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-373
SELECT - - COUNT( * ) * ( 52 ) - - COALESCE ( - 79, 3 ) * - 40 AS col1
----
3212

skipif mysql # not compatible
query I rowsort label-373
SELECT - - COUNT ( * ) * ( 52 ) - - COALESCE ( - 79, 3 ) * - 40 AS col1
----
3212

onlyif mysql # DIV for integer division: 
query I rowsort label-374
SELECT ALL + - 69 DIV - - 4 AS col1
----
-17

skipif mysql # not compatible
query I rowsort label-374
SELECT ALL + - 69 / - - 4 AS col1
----
-17

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

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

query I rowsort
SELECT ALL 41 * 2 AS col1
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-377
SELECT DISTINCT COALESCE ( 62, - 35, - ( + COUNT( * ) ) + 80 * + ( + COALESCE ( 57, 38, 6, - 74 * 17 ) ) ) AS col0
----
62

skipif mysql # not compatible
query I rowsort label-377
SELECT DISTINCT COALESCE ( 62, - 35, - ( + COUNT ( * ) ) + 80 * + ( + COALESCE ( 57, 38, 6, - 74 * 17 ) ) ) AS col0
----
62

query I rowsort
SELECT DISTINCT + 47 - + NULLIF ( 71, + - ( 52 ) * + 0 + 96 / - 53 )
----
-24

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-381
SELECT DISTINCT CAST( + MIN( - + 14 ) AS SIGNED )
----
-14

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

query I rowsort
SELECT - ( + + 56 ) - + 13 AS col1
----
-69

query I rowsort
SELECT ALL ( - ( + 9 ) )
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-384
SELECT + COALESCE ( + 55, - MAX( - - 79 ) * + 71 ) AS col0
----
55

skipif mysql # not compatible
query I rowsort label-384
SELECT + COALESCE ( + 55, - MAX ( - - 79 ) * + 71 ) AS col0
----
55

onlyif mysql # DIV for integer division: 
query I rowsort label-385
SELECT ALL + 3 DIV + 64 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-385
SELECT ALL + 3 / + 64 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-386
SELECT ALL + COUNT( * ) DIV - + 31 * - + COUNT( * ) * + CAST( ( 91 ) AS SIGNED ) + COALESCE ( 78, 57 )
----
78

skipif mysql # not compatible
query I rowsort label-386
SELECT ALL + COUNT ( * ) / - + 31 * - + COUNT ( * ) * + CAST ( ( 91 ) AS INTEGER ) + COALESCE ( 78, 57 )
----
78

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-388
SELECT - 57 DIV CAST( COUNT( * ) AS SIGNED ) * - NULLIF ( + 1, 68 * ( - 83 ) ) * + 8 - 5 AS col2
----
451

skipif mysql # not compatible
query I rowsort label-388
SELECT - 57 / CAST ( COUNT ( * ) AS INTEGER ) * - NULLIF ( + 1, 68 * ( - 83 ) ) * + 8 - 5 AS col2
----
451

onlyif mysql # DIV for integer division: 
query I rowsort label-389
SELECT + + 40 DIV + - 46 * ( - 92 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-389
SELECT + + 40 / + - 46 * ( - 92 ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-390
SELECT ALL - 19 * + CASE + + 92 WHEN + 54 THEN + 58 ELSE NULL END + + COUNT( * ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-390
SELECT ALL - 19 * + CASE + + 92 WHEN + 54 THEN + 58 ELSE NULL END + + COUNT ( * ) col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-391
SELECT + - CAST( + - CASE - 7 WHEN - 55 THEN NULL ELSE 22 END AS SIGNED ) * COUNT( * ) AS col1
----
22

skipif mysql # not compatible
query I rowsort label-391
SELECT + - CAST ( + - CASE - 7 WHEN - 55 THEN NULL ELSE 22 END AS INTEGER ) * COUNT ( * ) AS col1
----
22

query I rowsort
SELECT DISTINCT 34 * 76 + - + 91 col2
----
2493

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-393
SELECT DISTINCT - + 6 * + COUNT( * ) DIV + + 9 + + 48 + 97 + - ( - CAST( - 9 AS SIGNED ) ) * - 35
----
460

skipif mysql # not compatible
query I rowsort label-393
SELECT DISTINCT - + 6 * + COUNT ( * ) / + + 9 + + 48 + 97 + - ( - CAST ( - 9 AS INTEGER ) ) * - 35
----
460

onlyif mysql # aggregate syntax: 
query I rowsort label-394
SELECT ALL - - 84 * 79 * + NULLIF ( MIN( 22 ), + ( 99 ) ) * + 94 + + ( 11 ) col0
----
13723259

skipif mysql # not compatible
query I rowsort label-394
SELECT ALL - - 84 * 79 * + NULLIF ( MIN ( 22 ), + ( 99 ) ) * + 94 + + ( 11 ) col0
----
13723259

query I rowsort
SELECT ALL + 19 * ( + 61 ) + 37 AS col2
----
1196

onlyif mysql # aggregate syntax: 
query I rowsort label-396
SELECT + - 14 - + 23 + + 74 * - COUNT( * ) + - 89
----
-200

skipif mysql # not compatible
query I rowsort label-396
SELECT + - 14 - + 23 + + 74 * - COUNT ( * ) + - 89
----
-200

onlyif mysql # aggregate syntax: 
query I rowsort label-397
SELECT - COUNT( * ) * - SUM( 90 ) + - COALESCE ( + 51, 99 ) AS col2
----
39

skipif mysql # not compatible
query I rowsort label-397
SELECT - COUNT ( * ) * - SUM ( 90 ) + - COALESCE ( + 51, 99 ) AS col2
----
39

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

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

query I rowsort
SELECT ALL + 60 * - NULLIF ( 98, + - 53 ) - - 82
----
-5798

onlyif mysql # aggregate syntax: 
query I rowsort label-400
SELECT + 25 * - MIN( DISTINCT 92 ) * 78 + + 71
----
-179329

skipif mysql # not compatible
query I rowsort label-400
SELECT + 25 * - MIN ( DISTINCT 92 ) * 78 + + 71
----
-179329

query I rowsort
SELECT ALL 21 * + 84 AS col2
----
1764

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

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

query I rowsort
SELECT DISTINCT NULLIF ( + 16, 6 + - 56 * 66 )
----
16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-404
SELECT - COUNT( * ) + - 51 DIV + 70 * - 23 * + 24
----
-1

skipif mysql # not compatible
query I rowsort label-404
SELECT - COUNT ( * ) + - 51 / + 70 * - 23 * + 24
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-405
SELECT + 28 DIV - 72 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-405
SELECT + 28 / - 72 AS col1
----
0

query II rowsort
SELECT 0 col0, 66 * + - ( + 79 ) + + 10 * ( 92 * 95 ) AS col2
----
0
82186

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

onlyif mysql # aggregate syntax: 
query I rowsort label-408
SELECT 3 + - SUM( ALL - + 54 ) AS col1
----
57

skipif mysql # not compatible
query I rowsort label-408
SELECT 3 + - SUM ( ALL - + 54 ) AS col1
----
57

query I rowsort
SELECT 74 + ( - + 81 ) AS col2
----
-7

query I rowsort
SELECT 90 * + 32 AS col1
----
2880

query I rowsort
SELECT 93 + + ( + ( + 8 ) ) AS col0
----
101

query I rowsort
SELECT ALL - 71 + + + ( + 26 )
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-413
SELECT DISTINCT + COUNT( * ) * + 77 * 19 * 93
----
136059

skipif mysql # not compatible
query I rowsort label-413
SELECT DISTINCT + COUNT ( * ) * + 77 * 19 * 93
----
136059

query I rowsort
SELECT ALL ( 21 ) + + 2 AS col2
----
23

query I rowsort
SELECT ALL + 98 * - 29
----
-2842

query I rowsort
SELECT 80 + 28 AS col2
----
108

onlyif mysql # aggregate syntax: 
query I rowsort label-417
SELECT DISTINCT - 26 + 90 + + SUM( - + 16 ) - + 4 AS col2
----
44

skipif mysql # not compatible
query I rowsort label-417
SELECT DISTINCT - 26 + 90 + + SUM ( - + 16 ) - + 4 AS col2
----
44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-418
SELECT ALL + CASE + 29 WHEN MAX( ALL 82 ) THEN + 80 + 28 * 65 WHEN 62 THEN NULL ELSE NULL END + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-418
SELECT ALL + CASE + 29 WHEN MAX ( ALL 82 ) THEN + 80 + 28 * 65 WHEN 62 THEN NULL ELSE NULL END + + CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT + 99 AS col0, - ( + + 96 ) + + 9 AS col0
----
99
-87

query I rowsort
SELECT NULLIF ( + 92, - + 1 - - 73 - + 35 ) AS col2
----
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-421
SELECT DISTINCT - - SUM( DISTINCT - - ( - CAST( - 29 AS SIGNED ) ) )
----
29

skipif mysql # not compatible
query I rowsort label-421
SELECT DISTINCT - - SUM ( DISTINCT - - ( - CAST ( - 29 AS INTEGER ) ) )
----
29

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

skipif mysql # not compatible
query I rowsort label-422
SELECT DISTINCT + 3 + - COUNT ( * ) AS col2
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-423
SELECT - 53 * + NULLIF ( - - COUNT( * ), - + 79 - COUNT( * ) ) + NULLIF ( + 65 + COUNT( * ) * 79, + SUM( 44 ) ) + - 39 / CASE + 38 + - 67 WHEN COUNT( ALL + 18 ) - - 93 THEN + NULLIF ( CASE 46 WHEN 55 THEN + MIN( + 8 ) + + 13 * - 77 ELSE NULL END, + 83 * AVG ( ALL 89 ) + - 68 ) END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-423
SELECT - 53 * + NULLIF ( - - COUNT ( * ), - + 79 - COUNT ( * ) ) + NULLIF ( + 65 + COUNT ( * ) * 79, + SUM ( 44 ) ) + - 39 / CASE + 38 + - 67 WHEN COUNT ( ALL + 18 ) - - 93 THEN + NULLIF ( CASE 46 WHEN 55 THEN + MIN ( + 8 ) + + 13 * - 77 ELSE NULL END, + 83 * AVG ( ALL 89 ) + - 68 ) END col2
----
NULL

query I rowsort
SELECT DISTINCT - 23 + + 84 AS col1
----
61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-425
SELECT DISTINCT - CAST( NULL AS SIGNED ) / + 98 AS col0
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-426
SELECT 68 * - 61 + - 68 + + - 22 * 24 * CASE - COUNT( * ) WHEN 70 THEN NULL WHEN ( CASE ( 34 ) WHEN + COUNT( * ) THEN 73 / 26 WHEN 47 THEN - MIN( + 40 ) + 64 END ) THEN - 54 END
----
NULL

skipif mysql # not compatible
query I rowsort label-426
SELECT 68 * - 61 + - 68 + + - 22 * 24 * CASE - COUNT ( * ) WHEN 70 THEN NULL WHEN ( CASE ( 34 ) WHEN + COUNT ( * ) THEN 73 / 26 WHEN 47 THEN - MIN ( + 40 ) + 64 END ) THEN - 54 END
----
NULL

query II rowsort
SELECT + 39 AS col2, - 15 * + 54
----
39
-810

query II rowsort
SELECT + 62, - 27 + + 12 col1
----
62
-15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-429
SELECT - 0 * + 14 * - - CAST( NULL AS SIGNED ) * 85 + - 91 * COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-429
SELECT - 0 * + 14 * - - CAST ( NULL AS INTEGER ) * 85 + - 91 * COUNT ( * ) AS col2
----
NULL

query II rowsort
SELECT DISTINCT - 94 AS col1, - 2
----
-94
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-431
SELECT ALL + CAST( NULL AS SIGNED ) / + 61 * - + 43
----
NULL

skipif mysql # not compatible
query I rowsort label-431
SELECT ALL + CAST ( NULL AS INTEGER ) / + 61 * - + 43
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-432
SELECT 43 DIV 20
----
2

skipif mysql # not compatible
query I rowsort label-432
SELECT 43 / 20
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-433
SELECT - 0 AS col0, - 21 + + ( - CAST( + 58 AS SIGNED ) ) + 67
----
0
-12

skipif mysql # not compatible
query II rowsort label-433
SELECT - 0 AS col0, - 21 + + ( - CAST ( + 58 AS INTEGER ) ) + 67
----
0
-12

query II rowsort
SELECT 91 col0, 86 AS col1
----
91
86

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-435
SELECT - 55 AS col0, + 4 + - COALESCE ( - - 71, - COALESCE ( 94, 9 ) ) + CAST( NULL AS DECIMAL ) AS col2
----
-55
NULL

skipif mysql # not compatible
query II rowsort label-435
SELECT - 55 AS col0, + 4 + - COALESCE ( - - 71, - COALESCE ( 94, 9 ) ) + CAST ( NULL AS REAL ) AS col2
----
-55
NULL

query I rowsort
SELECT 58 * + 18 AS col2
----
1044

query I rowsort
SELECT ALL 99 * 96 AS col0
----
9504

query III rowsort
SELECT DISTINCT 62, - 67 AS col2, + 73 * + - ( - 39 ) AS col1
----
62
-67
2847

onlyif mysql # aggregate syntax: 
query I rowsort label-439
SELECT ALL - 75 + - MIN( + - 8 ) + + 41 AS col0
----
-26

skipif mysql # not compatible
query I rowsort label-439
SELECT ALL - 75 + - MIN ( + - 8 ) + + 41 AS col0
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-440
SELECT 83 * - - MAX( - 74 ) AS col2
----
-6142

skipif mysql # not compatible
query I rowsort label-440
SELECT 83 * - - MAX ( - 74 ) AS col2
----
-6142

query I rowsort
SELECT ALL 63 * + ( 24 ) AS col2
----
1512

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-442
SELECT DISTINCT - CASE COUNT( * ) WHEN + - 45 + + 46 * ( - - 39 ) THEN CAST( 46 AS SIGNED ) * + 75 END + + 34
----
NULL

skipif mysql # not compatible
query I rowsort label-442
SELECT DISTINCT - CASE COUNT ( * ) WHEN + - 45 + + 46 * ( - - 39 ) THEN CAST ( 46 AS INTEGER ) * + 75 END + + 34
----
NULL

query I rowsort
SELECT ALL 57 + 33 + - - 82
----
172

onlyif mysql # aggregate syntax: 
query I rowsort label-444
SELECT ALL 15 + 24 * + 63 * CASE - COUNT( * ) WHEN - 67 THEN NULLIF ( 75, - 26 * 2 ) END * + 46 + - 20 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-444
SELECT ALL 15 + 24 * + 63 * CASE - COUNT ( * ) WHEN - 67 THEN NULLIF ( 75, - 26 * 2 ) END * + 46 + - 20 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-445
SELECT 73 + + 60, 40 * - COUNT( ALL 26 ) AS col1
----
133
-40

skipif mysql # not compatible
query II rowsort label-445
SELECT 73 + + 60, 40 * - COUNT ( ALL 26 ) AS col1
----
133
-40

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-446
SELECT CAST( MAX( DISTINCT - + 70 ) AS DECIMAL ) + + CASE - 30 WHEN + 28 THEN - 1 * MAX( ALL + 10 ) + 17 END
----
NULL

skipif mysql # not compatible
query I rowsort label-446
SELECT CAST ( MAX ( DISTINCT - + 70 ) AS REAL ) + + CASE - 30 WHEN + 28 THEN - 1 * MAX ( ALL + 10 ) + 17 END
----
NULL

query I rowsort
SELECT 28 * + 59 AS col2
----
1652

query I rowsort
SELECT ALL - NULLIF ( - 92, + - 62 + - + 40 ) + - + 22 AS col2
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-449
SELECT CASE 21 WHEN + COUNT( * ) + + - 36 THEN NULL WHEN + - 80 THEN NULL WHEN + COUNT( * ) THEN 22 END * - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-449
SELECT CASE 21 WHEN + COUNT ( * ) + + - 36 THEN NULL WHEN + - 80 THEN NULL WHEN + COUNT ( * ) THEN 22 END * - COUNT ( * )
----
NULL

query II rowsort
SELECT 34, 81 AS col2
----
34
81

onlyif mysql # aggregate syntax: 
query II rowsort label-451
SELECT COUNT( * ) * - - 82, - 39 - ( + 36 ) + - 13 * MAX( DISTINCT - 90 ) AS col1
----
82
1095

skipif mysql # not compatible
query II rowsort label-451
SELECT COUNT ( * ) * - - 82, - 39 - ( + 36 ) + - 13 * MAX ( DISTINCT - 90 ) AS col1
----
82
1095

query I rowsort
SELECT DISTINCT 14 + - 57 * + 28
----
-1582

query II rowsort
SELECT ALL 99 col2, + 41 AS col2
----
99
41

onlyif mysql # aggregate syntax: 
query I rowsort label-454
SELECT ALL - MIN( DISTINCT + - 60 ) * 49 + - 81
----
2859

skipif mysql # not compatible
query I rowsort label-454
SELECT ALL - MIN ( DISTINCT + - 60 ) * 49 + - 81
----
2859

query I rowsort
SELECT + 81 + + 42
----
123

onlyif mysql # aggregate syntax: 
query I rowsort label-456
SELECT + + COUNT( ALL COALESCE ( + 78, + 58 + + 2 * + 76 * 55 ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-456
SELECT + + COUNT ( ALL COALESCE ( + 78, + 58 + + 2 * + 76 * 55 ) ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-457
SELECT DISTINCT + COALESCE ( + - 93, MAX( DISTINCT 46 ), + NULLIF ( + COUNT( * ), COUNT( * ) ) ) * + 9 - 58 AS col0
----
-895

skipif mysql # not compatible
query I rowsort label-457
SELECT DISTINCT + COALESCE ( + - 93, MAX ( DISTINCT 46 ), + NULLIF ( + COUNT ( * ), COUNT ( * ) ) ) * + 9 - 58 AS col0
----
-895

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-458
SELECT ALL - CASE - 28 WHEN 42 THEN NULL ELSE - 46 END * MIN( ALL + - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-458
SELECT ALL - CASE - 28 WHEN 42 THEN NULL ELSE - 46 END * MIN ( ALL + - CAST ( NULL AS INTEGER ) )
----
NULL

query II rowsort
SELECT DISTINCT - 91 AS col0, - 37 AS col2
----
-91
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-460
SELECT - 46 / - SUM( - - CASE + - 95 WHEN - 76 THEN - 78 * - 0 + ( + 52 ) END ) + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-460
SELECT - 46 / - SUM ( - - CASE + - 95 WHEN - 76 THEN - 78 * - 0 + ( + 52 ) END ) + COUNT ( * ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-461
SELECT DISTINCT - - CASE + - 44 WHEN CASE 73 WHEN - - 79 / + + COUNT( * ) THEN CAST( NULL AS SIGNED ) * + CASE - 8 WHEN 30 THEN ( + 69 ) + - CAST( NULL AS SIGNED ) * 24 END + + ( - 98 - + 68 / NULLIF ( 21 + + 92 * 33, 57 + + 82 ) ) END THEN 76 / - ( 2 ) ELSE NULL END * + 17
----
NULL

skipif mysql # not compatible
query I rowsort label-461
SELECT DISTINCT - - CASE + - 44 WHEN CASE 73 WHEN - - 79 / + + COUNT ( * ) THEN CAST ( NULL AS INTEGER ) * + CASE - 8 WHEN 30 THEN ( + 69 ) + - CAST ( NULL AS INTEGER ) * 24 END + + ( - 98 - + 68 / NULLIF ( 21 + + 92 * 33, 57 + + 82 ) ) END THEN 76 / - ( 2 ) ELSE NULL END * + 17
----
NULL

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

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

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

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

query II rowsort
SELECT + 79, 13 AS col0
----
79
13

query I rowsort
SELECT DISTINCT + 31 - 38 col1
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-466
SELECT ALL - MAX( ALL - CASE + 85 WHEN - 71 THEN 93 * - + 8 + 55 ELSE + 59 END )
----
59

skipif mysql # not compatible
query I rowsort label-466
SELECT ALL - MAX ( ALL - CASE + 85 WHEN - 71 THEN 93 * - + 8 + 55 ELSE + 59 END )
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-467
SELECT + + NULLIF ( - 49, ( + 27 ) * + + COUNT( + 32 ) ) AS col1
----
-49

skipif mysql # not compatible
query I rowsort label-467
SELECT + + NULLIF ( - 49, ( + 27 ) * + + COUNT ( + 32 ) ) AS col1
----
-49

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-469
SELECT ALL - + CAST( + 29 AS SIGNED )
----
-29

skipif mysql # not compatible
query I rowsort label-469
SELECT ALL - + CAST ( + 29 AS INTEGER )
----
-29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-470
SELECT ALL - COALESCE ( - CAST( NULL AS SIGNED ), + 3 + + - 7 * + 26, - - 45 ) * 46
----
8234

skipif mysql # not compatible
query I rowsort label-470
SELECT ALL - COALESCE ( - CAST ( NULL AS INTEGER ), + 3 + + - 7 * + 26, - - 45 ) * 46
----
8234

query I rowsort
SELECT NULLIF ( 26, + 14 / + 57 ) * - 46 + + 7 AS col1
----
-1189

onlyif mysql # DIV for integer division: 
query I rowsort label-472
SELECT ALL - + 49 DIV 42 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-472
SELECT ALL - + 49 / 42 AS col2
----
-1

query I rowsort
SELECT DISTINCT - + ( + 96 ) AS col1
----
-96

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

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

query I rowsort
SELECT - 64 * - + 44 AS col2
----
2816

query I rowsort
SELECT DISTINCT + 88 + - 73
----
15

query I rowsort
SELECT ALL - 34 * + 64 AS col2
----
-2176

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

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

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

skipif mysql # not compatible
query I rowsort label-479
SELECT DISTINCT NULLIF ( COUNT ( * ), + - 36 )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-480
SELECT DISTINCT 81 + - - 22 AS col2, - COUNT( * ) + COUNT( * )
----
103
0

skipif mysql # not compatible
query II rowsort label-480
SELECT DISTINCT 81 + - - 22 AS col2, - COUNT ( * ) + COUNT ( * )
----
103
0

onlyif mysql # DIV for integer division: 
query I rowsort label-481
SELECT DISTINCT 74 + 79 DIV - - 81
----
74

skipif mysql # not compatible
query I rowsort label-481
SELECT DISTINCT 74 + 79 / - - 81
----
74

query I rowsort
SELECT + 4 + + + 33 + + 74
----
111

onlyif mysql # aggregate syntax: 
query I rowsort label-483
SELECT + 80 + + 68 + SUM( ALL + 74 ) + + ( 84 ) * - + 53
----
-4230

skipif mysql # not compatible
query I rowsort label-483
SELECT + 80 + + 68 + SUM ( ALL + 74 ) + + ( 84 ) * - + 53
----
-4230

query I rowsort
SELECT DISTINCT 44 * - 26 AS col2
----
-1144

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-485
SELECT - 56 + - COUNT( * ) * + + 44 * + CAST( - 34 AS SIGNED ) AS col2, CAST( 49 AS SIGNED ) * + ( 53 * 18 + ( - 4 ) ) AS col2
----
1440
46550

skipif mysql # not compatible
query II rowsort label-485
SELECT - 56 + - COUNT ( * ) * + + 44 * + CAST ( - 34 AS INTEGER ) AS col2, CAST ( 49 AS INTEGER ) * + ( 53 * 18 + ( - 4 ) ) AS col2
----
1440
46550

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-488
SELECT ALL COUNT( - 99 ) AS col2, 71 * - 62 col2
----
1
-4402

skipif mysql # not compatible
query II rowsort label-488
SELECT ALL COUNT ( - 99 ) AS col2, 71 * - 62 col2
----
1
-4402

onlyif mysql # aggregate syntax: 
query I rowsort label-489
SELECT - CASE - 17 WHEN - COUNT( * ) THEN + 12 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-489
SELECT - CASE - 17 WHEN - COUNT ( * ) THEN + 12 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-490
SELECT ALL CASE + - 24 WHEN + - 12 THEN + - 44 WHEN CASE - 13 WHEN - ( CASE WHEN COUNT( * ) IS NULL THEN NULL ELSE 67 + 82 END ) * 59 THEN + 70 WHEN + 0 THEN COUNT( * ) ELSE NULL END THEN - 53 END - + 83 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-490
SELECT ALL CASE + - 24 WHEN + - 12 THEN + - 44 WHEN CASE - 13 WHEN - ( CASE WHEN COUNT ( * ) IS NULL THEN NULL ELSE 67 + 82 END ) * 59 THEN + 70 WHEN + 0 THEN COUNT ( * ) ELSE NULL END THEN - 53 END - + 83 AS col2
----
NULL

query I rowsort
SELECT DISTINCT 8 * + CASE - 15 WHEN + + 66 THEN + 28 WHEN 86 * - - 86 THEN NULL ELSE - ( - 98 ) END
----
784

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-492
SELECT - COALESCE ( + ( + + NULLIF ( - CASE + 34 WHEN + 99 THEN - 61 ELSE CAST( NULL AS SIGNED ) END, COALESCE ( 22, + 90, 17 * + 27 ) + 90 ) ), + 43 + SUM( 13 ), 32 ) DIV 91
----
0

skipif mysql # not compatible
query I rowsort label-492
SELECT - COALESCE ( + ( + + NULLIF ( - CASE + 34 WHEN + 99 THEN - 61 ELSE CAST ( NULL AS INTEGER ) END, COALESCE ( 22, + 90, 17 * + 27 ) + 90 ) ), + 43 + SUM ( 13 ), 32 ) / 91
----
0

query I rowsort
SELECT + + CASE + 48 WHEN + - ( - 99 ) THEN 14 * + 97 + 86 END * 12 AS col0
----
NULL

query I rowsort
SELECT - + 51 * + NULLIF ( + + 58, - 0 ) col1
----
-2958

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-495
SELECT 93 / - 17 + + + 36 * 56 + - 30 * - + 43 + - - COUNT( * ) + - CAST( NULL AS SIGNED ) * + 27
----
NULL

skipif mysql # not compatible
query I rowsort label-495
SELECT 93 / - 17 + + + 36 * 56 + - 30 * - + 43 + - - COUNT ( * ) + - CAST ( NULL AS INTEGER ) * + 27
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-496
SELECT DISTINCT + 29 DIV + + 92 * + - CASE 18 WHEN + + 22 THEN NULL ELSE + 6 END + + - 52 + 50
----
-2

skipif mysql # not compatible
query I rowsort label-496
SELECT DISTINCT + 29 / + + 92 * + - CASE 18 WHEN + + 22 THEN NULL ELSE + 6 END + + - 52 + 50
----
-2

query I rowsort
SELECT ALL + NULLIF ( 83, 52 )
----
83

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-498
SELECT - + ( - NULLIF ( + + 83, 35 ) ) - - ( + CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-498
SELECT - + ( - NULLIF ( + + 83, 35 ) ) - - ( + CAST ( NULL AS REAL ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-499
SELECT DISTINCT + 80 * - 69 + + COUNT( ALL 56 ) * - 72 * - COUNT( * ) col1
----
-5448

skipif mysql # not compatible
query I rowsort label-499
SELECT DISTINCT + 80 * - 69 + + COUNT ( ALL 56 ) * - 72 * - COUNT ( * ) col1
----
-5448

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-500
SELECT - 18 DIV 4 * COUNT( * ) AS col2
----
-4

skipif mysql # not compatible
query I rowsort label-500
SELECT - 18 / 4 * COUNT ( * ) AS col2
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-501
SELECT ALL + COUNT( * ) * + 25 + - ( - 99 ) col2
----
124

skipif mysql # not compatible
query I rowsort label-501
SELECT ALL + COUNT ( * ) * + 25 + - ( - 99 ) col2
----
124

query I rowsort
SELECT + 57 * - 77 AS col2
----
-4389

onlyif mysql # aggregate syntax: 
query II rowsort label-503
SELECT - + 55 * - COUNT( * ) AS col1, - 21 * + 13 * + 92 col2
----
55
-25116

skipif mysql # not compatible
query II rowsort label-503
SELECT - + 55 * - COUNT ( * ) AS col1, - 21 * + 13 * + 92 col2
----
55
-25116

onlyif mysql # aggregate syntax: 
query I rowsort label-504
SELECT COALESCE ( - 84, - COUNT( * ), + 53 ) AS col1
----
-84

skipif mysql # not compatible
query I rowsort label-504
SELECT COALESCE ( - 84, - COUNT ( * ), + 53 ) AS col1
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-505
SELECT ALL ( - 61 ) * - 68 + - - MAX( ALL + - 23 ) + - 36
----
4089

skipif mysql # not compatible
query I rowsort label-505
SELECT ALL ( - 61 ) * - 68 + - - MAX ( ALL + - 23 ) + - 36
----
4089

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-506
SELECT - MAX( + CAST( NULL AS SIGNED ) ) * - + 13 AS col2
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-507
SELECT ALL 17 * - CASE - + 16 WHEN + COUNT( * ) THEN + + 74 * - - COUNT( * ) * + + 38 WHEN - 75 THEN NULL END + 80 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-507
SELECT ALL 17 * - CASE - + 16 WHEN + COUNT ( * ) THEN + + 74 * - - COUNT ( * ) * + + 38 WHEN - 75 THEN NULL END + 80 AS col1
----
NULL

query II rowsort
SELECT ALL + 12, + 20 AS col0
----
12
20

onlyif mysql # aggregate syntax: 
query II rowsort label-509
SELECT DISTINCT + 25 AS col0, COUNT( * ) - - ( + COUNT( * ) ) + 72 AS col2
----
25
74

skipif mysql # not compatible
query II rowsort label-509
SELECT DISTINCT + 25 AS col0, COUNT ( * ) - - ( + COUNT ( * ) ) + 72 AS col2
----
25
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-510
SELECT ALL COUNT( * ) * - 81 + - COALESCE ( - + 74, - + 29, + - 12 ) / + ( ( CAST( NULL AS SIGNED ) ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-510
SELECT ALL COUNT ( * ) * - 81 + - COALESCE ( - + 74, - + 29, + - 12 ) / + ( ( CAST ( NULL AS INTEGER ) ) ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT CASE AVG ( DISTINCT - 0 ) WHEN + 80 THEN ( + 91 ) END * 49 * - + 2 * - 26 + - 19 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-512
SELECT - ( - CAST( NULL AS SIGNED ) ) / 45
----
NULL

skipif mysql # not compatible
query I rowsort label-512
SELECT - ( - CAST ( NULL AS INTEGER ) ) / 45
----
NULL

query II rowsort
SELECT - ( - ( - 51 ) ) * 38 AS col1, 17
----
-1938
17

query II rowsort
SELECT - 27 AS col1, - 92 + - 18
----
-27
-110

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

skipif mysql # not compatible
query I rowsort label-515
SELECT MAX ( + 26 )
----
26

query II rowsort
SELECT DISTINCT 32 AS col0, - 20 AS col1
----
32
-20

query I rowsort
SELECT DISTINCT - 94 - - 89 AS col2
----
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-518
SELECT DISTINCT - 86 * - 71 * - 71 * - 69 * + 32 / + + CASE - COUNT( * ) WHEN COUNT( * ) THEN + CAST( 43 AS SIGNED ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-518
SELECT DISTINCT - 86 * - 71 * - 71 * - 69 * + 32 / + + CASE - COUNT ( * ) WHEN COUNT ( * ) THEN + CAST ( 43 AS INTEGER ) END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-519
SELECT DISTINCT CAST( - - MIN( DISTINCT + - ( - + 88 ) ) AS SIGNED ) - - 48 AS col1
----
136

skipif mysql # not compatible
query I rowsort label-519
SELECT DISTINCT CAST ( - - MIN ( DISTINCT + - ( - + 88 ) ) AS INTEGER ) - - 48 AS col1
----
136

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-521
SELECT + + 72 * - - COUNT( * ) + + 65
----
137

skipif mysql # not compatible
query I rowsort label-521
SELECT + + 72 * - - COUNT ( * ) + + 65
----
137

onlyif mysql # aggregate syntax: 
query I rowsort label-522
SELECT ALL MIN( DISTINCT + 46 ) AS col2
----
46

skipif mysql # not compatible
query I rowsort label-522
SELECT ALL MIN ( DISTINCT + 46 ) AS col2
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-523
SELECT - + 3 + - COUNT( * ) * - + 78 * 50
----
3897

skipif mysql # not compatible
query I rowsort label-523
SELECT - + 3 + - COUNT ( * ) * - + 78 * 50
----
3897

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

query II rowsort
SELECT DISTINCT - 21 AS col0, - 3 * + 19
----
-21
-57

query II rowsort
SELECT DISTINCT 52, 44 AS col0
----
52
44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-527
SELECT + + COALESCE ( + + 15, - - 36, - - 85 * + - 63 + COUNT( * ) - 67 - + + 55 DIV + NULLIF ( 64 * - 62, - 32 ) + 20 ) * 39 AS col1
----
585

skipif mysql # not compatible
query I rowsort label-527
SELECT + + COALESCE ( + + 15, - - 36, - - 85 * + - 63 + COUNT ( * ) - 67 - + + 55 / + NULLIF ( 64 * - 62, - 32 ) + 20 ) * 39 AS col1
----
585

query I rowsort
SELECT ALL 92 * 5
----
460

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-529
SELECT ALL COALESCE ( - MIN( + + 15 ), - 99, + 76 DIV + 15 ), + COUNT( - 25 ) + - 52 AS col2
----
-15
-51

skipif mysql # not compatible
query II rowsort label-529
SELECT ALL COALESCE ( - MIN ( + + 15 ), - 99, + 76 / + 15 ), + COUNT ( - 25 ) + - 52 AS col2
----
-15
-51

query I rowsort
SELECT + 66 + - 51
----
15

query I rowsort
SELECT DISTINCT + 73 * ( 51 ) + + ( 35 )
----
3758

query I rowsort
SELECT + ( 25 ) + + + 60 + + ( + + ( + + 6 ) ) AS col0
----
91

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-533
SELECT ALL + - 19 AS col0, CAST( NULL AS SIGNED ) col2
----
-19
NULL

skipif mysql # not compatible
query II rowsort label-533
SELECT ALL + - 19 AS col0, CAST ( NULL AS INTEGER ) col2
----
-19
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-534
SELECT ALL + - 94 DIV + 35 + + MAX( DISTINCT + 46 ) + 7 + 13 * - 86 + + - COUNT( * ) + 68 AS col2
----
-1000

skipif mysql # not compatible
query I rowsort label-534
SELECT ALL + - 94 / + 35 + + MAX ( DISTINCT + 46 ) + 7 + 13 * - 86 + + - COUNT ( * ) + 68 AS col2
----
-1000

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

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

query II rowsort
SELECT + 86 AS col1, - 32
----
86
-32

query I rowsort
SELECT NULLIF ( 69, + 79 )
----
69

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

query I rowsort
SELECT DISTINCT 3 + - ( + + 36 ) AS col1
----
-33

onlyif mysql # DIV for integer division: 
query I rowsort label-540
SELECT ALL 8 + COALESCE ( + - 67, - ( + 61 ) ) DIV - + 54 AS col2
----
9

skipif mysql # not compatible
query I rowsort label-540
SELECT ALL 8 + COALESCE ( + - 67, - ( + 61 ) ) / - + 54 AS col2
----
9

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

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

query I rowsort
SELECT NULLIF ( + - ( 22 ), + 91 ) AS col1
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-543
SELECT ALL + + 82 + + 98 + + 59 * - + MAX( DISTINCT + 21 ) * + 1 * + + 94
----
-116286

skipif mysql # not compatible
query I rowsort label-543
SELECT ALL + + 82 + + 98 + + 59 * - + MAX ( DISTINCT + 21 ) * + 1 * + + 94
----
-116286

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

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

query I rowsort
SELECT DISTINCT 5 + + ( 28 ) * - 31
----
-863

onlyif mysql # aggregate syntax: 
query I rowsort label-546
SELECT ALL + SUM( 97 ) + + 4 - + 69
----
32

skipif mysql # not compatible
query I rowsort label-546
SELECT ALL + SUM ( 97 ) + + 4 - + 69
----
32

query I rowsort
SELECT DISTINCT 99 + + + 32
----
131

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-548
SELECT + 75 * 76 DIV + 27 + + 62 * + SUM( DISTINCT 7 )
----
645

skipif mysql # not compatible
query I rowsort label-548
SELECT + 75 * 76 / + 27 + + 62 * + SUM ( DISTINCT 7 )
----
645

onlyif mysql # aggregate syntax: 
query I rowsort label-549
SELECT 9 - + 37 + - MAX( ALL 0 ) + + + 26 + + + 97 col1
----
95

skipif mysql # not compatible
query I rowsort label-549
SELECT 9 - + 37 + - MAX ( ALL 0 ) + + + 26 + + + 97 col1
----
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-550
SELECT CAST( + CAST( 87 AS SIGNED ) AS SIGNED ) * + 5 + NULLIF ( - 98, - 95 ) + + 8 * COUNT( * ) * + 23
----
521

skipif mysql # not compatible
query I rowsort label-550
SELECT CAST ( + CAST ( 87 AS INTEGER ) AS INTEGER ) * + 5 + NULLIF ( - 98, - 95 ) + + 8 * COUNT ( * ) * + 23
----
521

query I rowsort
SELECT 18 - - - 90
----
-72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-552
SELECT 99 + NULLIF ( + ( + COALESCE ( 58, - 76 * 6 ) ), + + 96 ) + - + CAST( - AVG ( 44 ) AS SIGNED ) AS col2
----
201

skipif mysql # not compatible
query I rowsort label-552
SELECT 99 + NULLIF ( + ( + COALESCE ( 58, - 76 * 6 ) ), + + 96 ) + - + CAST ( - AVG ( 44 ) AS INTEGER ) AS col2
----
201

query I rowsort
SELECT 8 + 53 col2
----
61

query I rowsort
SELECT 18 + - + 52 * + - 83
----
4334

onlyif mysql # aggregate syntax: 
query I rowsort label-555
SELECT 24 * + + MIN( - 12 ) * + - 71 AS col0
----
20448

skipif mysql # not compatible
query I rowsort label-555
SELECT 24 * + + MIN ( - 12 ) * + - 71 AS col0
----
20448

query I rowsort
SELECT 27 + 60
----
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-557
SELECT ALL + 9 * - + 56 AS col2, COALESCE ( + + ( - 61 ), - - MAX( ALL - - CAST( + + 75 AS SIGNED ) ) ) AS col1
----
-504
-61

skipif mysql # not compatible
query II rowsort label-557
SELECT ALL + 9 * - + 56 AS col2, COALESCE ( + + ( - 61 ), - - MAX ( ALL - - CAST ( + + 75 AS INTEGER ) ) ) AS col1
----
-504
-61

query I rowsort
SELECT 14 * 41 AS col1
----
574

query I rowsort
SELECT + 84 + - 16 + + 28 * + - 82
----
-2228

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-560
SELECT + 28 * + - CAST( NULL AS SIGNED ) * - - ( - - ( + + ( + + 13 ) ) ) - + 76
----
NULL

skipif mysql # not compatible
query I rowsort label-560
SELECT + 28 * + - CAST ( NULL AS INTEGER ) * - - ( - - ( + + ( + + 13 ) ) ) - + 76
----
NULL

query I rowsort
SELECT 76 + + 34 + 96 + + 56 * 13 * 95 + + - 73
----
69293

onlyif mysql # aggregate syntax: 
query II rowsort label-562
SELECT ALL - 46 * 11 * + 97 + - 79, - 78 * + CASE + CASE - 84 WHEN + 62 THEN 95 * 66 WHEN - AVG ( 50 ) + + 78 THEN NULL END WHEN COUNT( * ) THEN 85 + MAX( + 39 ) END AS col1
----
-49161
NULL

skipif mysql # not compatible
query II rowsort label-562
SELECT ALL - 46 * 11 * + 97 + - 79, - 78 * + CASE + CASE - 84 WHEN + 62 THEN 95 * 66 WHEN - AVG ( 50 ) + + 78 THEN NULL END WHEN COUNT ( * ) THEN 85 + MAX ( + 39 ) END AS col1
----
-49161
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-563
SELECT COALESCE ( - - COALESCE ( + - 97, + CAST( NULL AS SIGNED ), - COUNT( * ) ), + - 63 * NULLIF ( + CAST( - COUNT( * ) AS SIGNED ), 24 ) + CAST( NULL AS SIGNED ) ) col0
----
-97

skipif mysql # not compatible
query I rowsort label-563
SELECT COALESCE ( - - COALESCE ( + - 97, + CAST ( NULL AS INTEGER ), - COUNT ( * ) ), + - 63 * NULLIF ( + CAST ( - COUNT ( * ) AS INTEGER ), 24 ) + CAST ( NULL AS INTEGER ) ) col0
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-564
SELECT DISTINCT + 44 + - COUNT( * ) + + - 21 AS col2
----
22

skipif mysql # not compatible
query I rowsort label-564
SELECT DISTINCT + 44 + - COUNT ( * ) + + - 21 AS col2
----
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-565
SELECT ALL - - COUNT( * ) + - - 8 + + CAST( + 55 AS SIGNED )
----
64

skipif mysql # not compatible
query I rowsort label-565
SELECT ALL - - COUNT ( * ) + - - 8 + + CAST ( + 55 AS INTEGER )
----
64

query I rowsort
SELECT ALL + - 55 + - 88
----
-143

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-567
SELECT - 26 + - 77 AS col2, + CAST( NULL AS SIGNED )
----
-103
NULL

skipif mysql # not compatible
query II rowsort label-567
SELECT - 26 + - 77 AS col2, + CAST ( NULL AS INTEGER )
----
-103
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-568
SELECT NULLIF ( + CAST( + + 31 AS SIGNED ), 60 * + 60 ) * + - CAST( - + 74 AS SIGNED ) + + 14 + - 63 AS col1
----
2245

skipif mysql # not compatible
query I rowsort label-568
SELECT NULLIF ( + CAST ( + + 31 AS INTEGER ), 60 * + 60 ) * + - CAST ( - + 74 AS INTEGER ) + + 14 + - 63 AS col1
----
2245

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

onlyif mysql # DIV for integer division: 
query I rowsort label-570
SELECT ALL + 19 DIV - 96 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-570
SELECT ALL + 19 / - 96 AS col1
----
0

query I rowsort
SELECT DISTINCT + 61 + + 36 AS col2
----
97

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

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

query I rowsort
SELECT ALL ( 77 ) + 79 - 9 AS col2
----
147

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

skipif mysql # not compatible
query I rowsort label-574
SELECT ( + 35 ) / - 48 + - + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-575
SELECT + CAST( + - 76 AS SIGNED ) * + 67 - + + COUNT( * ) * - 86 - - - 33 AS col2
----
-5039

skipif mysql # not compatible
query I rowsort label-575
SELECT + CAST ( + - 76 AS INTEGER ) * + 67 - + + COUNT ( * ) * - 86 - - - 33 AS col2
----
-5039

query I rowsort
SELECT ALL 40 + + 86
----
126

query I rowsort
SELECT DISTINCT 99 + - 37 col1
----
62

query I rowsort
SELECT 76 * 85 + 4
----
6464

query II rowsort
SELECT ALL - 37 AS col1, - 43
----
-37
-43

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-581
SELECT DISTINCT - ( - - 27 ) * CAST( NULL AS SIGNED ) + - CAST( - 23 AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-581
SELECT DISTINCT - ( - - 27 ) * CAST ( NULL AS INTEGER ) + - CAST ( - 23 AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-582
SELECT DISTINCT 86 * + COALESCE ( + - 63, + COUNT( * ) * COUNT( * ) DIV + 21 )
----
-5418

skipif mysql # not compatible
query I rowsort label-582
SELECT DISTINCT 86 * + COALESCE ( + - 63, + COUNT ( * ) * COUNT ( * ) / + 21 )
----
-5418

query I rowsort
SELECT 37 * - 33
----
-1221

onlyif mysql # aggregate syntax: 
query I rowsort label-584
SELECT COUNT( * ) - + 83 col0
----
-82

skipif mysql # not compatible
query I rowsort label-584
SELECT COUNT ( * ) - + 83 col0
----
-82

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-586
SELECT ALL + ( - 75 ) * - 31 AS col0, - MIN( + 99 ) AS col1
----
2325
-99

skipif mysql # not compatible
query II rowsort label-586
SELECT ALL + ( - 75 ) * - 31 AS col0, - MIN ( + 99 ) AS col1
----
2325
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-587
SELECT ALL + MIN( DISTINCT - 30 ) AS col1
----
-30

skipif mysql # not compatible
query I rowsort label-587
SELECT ALL + MIN ( DISTINCT - 30 ) AS col1
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-588
SELECT NULLIF ( COUNT( * ), + - 93 / - + CASE - 6 WHEN + 72 THEN + 52 END ) - 52 - - 27 AS col2
----
-24

skipif mysql # not compatible
query I rowsort label-588
SELECT NULLIF ( COUNT ( * ), + - 93 / - + CASE - 6 WHEN + 72 THEN + 52 END ) - 52 - - 27 AS col2
----
-24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-589
SELECT ALL 95 + - + 34 + - - CAST( - 7 AS SIGNED ) AS col1
----
54

skipif mysql # not compatible
query I rowsort label-589
SELECT ALL 95 + - + 34 + - - CAST ( - 7 AS INTEGER ) AS col1
----
54

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

skipif mysql # not compatible
query I rowsort label-590
SELECT + COUNT ( * ) - - 33 / - 99
----
1

query I rowsort
SELECT DISTINCT - 51 + - + 98 AS col1
----
-149

query I rowsort
SELECT ALL - - 16 + + 25 / AVG ( ALL - CASE - 68 WHEN 50 + - + 2 THEN - 80 + - ( 82 ) * 49 ELSE NULL END ) col0
----
NULL

query I rowsort
SELECT - 15 + ( + 23 ) col1
----
8

query I rowsort
SELECT - 84 - + - 77
----
-7

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

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

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

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

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

query I rowsort
SELECT DISTINCT - + 49 + - ( - 27 ) col2
----
-22

query I rowsort
SELECT DISTINCT + 55 * - 80 AS col1
----
-4400

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-600
SELECT DISTINCT + 74 DIV + 66 + - 86 * - - ( - + 61 ) + COUNT( * )
----
5248

skipif mysql # not compatible
query I rowsort label-600
SELECT DISTINCT + 74 / + 66 + - 86 * - - ( - + 61 ) + COUNT ( * )
----
5248

query I rowsort
SELECT ALL - 41 * + + 24 - + + ( 33 )
----
-1017

query I rowsort
SELECT + 11 * - 61 AS col0
----
-671

query I rowsort
SELECT 80 * 96 + 77
----
7757

onlyif mysql # DIV for integer division: 
query II rowsort label-604
SELECT + 29 DIV 71 AS col1, 40 * - - 97 * + 24 AS col0
----
0
93120

skipif mysql # not compatible
query II rowsort label-604
SELECT + 29 / 71 AS col1, 40 * - - 97 * + 24 AS col0
----
0
93120

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-605
SELECT ALL + 48 AS col2, - 58 - CAST( ( ( 11 ) ) AS SIGNED ) AS col2
----
48
-69

skipif mysql # not compatible
query II rowsort label-605
SELECT ALL + 48 AS col2, - 58 - CAST ( ( ( 11 ) ) AS INTEGER ) AS col2
----
48
-69

onlyif mysql # DIV for integer division: 
query I rowsort label-606
SELECT DISTINCT + 98 DIV - 62
----
-1

skipif mysql # not compatible
query I rowsort label-606
SELECT DISTINCT + 98 / - 62
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-607
SELECT ALL - 28 * - COALESCE ( + 37, 95 * + - COUNT( * ) + + + 20 ) - + - 79 * 77
----
7119

skipif mysql # not compatible
query I rowsort label-607
SELECT ALL - 28 * - COALESCE ( + 37, 95 * + - COUNT ( * ) + + + 20 ) - + - 79 * 77
----
7119

onlyif mysql # aggregate syntax: 
query I rowsort label-608
SELECT COALESCE ( + SUM( + - 5 ), + + ( COALESCE ( 25, - + 71 + ( + - 92 ), + 14 ) ) * - + 92 + 19, - 57, - 76 * + 8, 81 + - 63 ) AS col0
----
-5

skipif mysql # not compatible
query I rowsort label-608
SELECT COALESCE ( + SUM ( + - 5 ), + + ( COALESCE ( 25, - + 71 + ( + - 92 ), + 14 ) ) * - + 92 + 19, - 57, - 76 * + 8, 81 + - 63 ) AS col0
----
-5

query I rowsort
SELECT - ( + - 76 ) - - 49
----
125

query I rowsort
SELECT - 51 * - - 67
----
-3417

onlyif mysql # aggregate syntax: 
query II rowsort label-611
SELECT ALL + 37 AS col0, - 84 + - - COUNT( * ) AS col0
----
37
-83

skipif mysql # not compatible
query II rowsort label-611
SELECT ALL + 37 AS col0, - 84 + - - COUNT ( * ) AS col0
----
37
-83

query I rowsort
SELECT DISTINCT + NULLIF ( + + 28, + 30 )
----
28

onlyif mysql # aggregate syntax: 
query II rowsort label-613
SELECT ALL + 82, 43 * NULLIF ( + 26, - 46 * + - ( + 59 ) * + 49 * + CASE + 3 WHEN - - 30 THEN - MAX( 75 ) END ) * - COALESCE ( 77, + 51 * COALESCE ( - 77, 61, 58 ) ) AS col2
----
82
-86086

skipif mysql # not compatible
query II rowsort label-613
SELECT ALL + 82, 43 * NULLIF ( + 26, - 46 * + - ( + 59 ) * + 49 * + CASE + 3 WHEN - - 30 THEN - MAX ( 75 ) END ) * - COALESCE ( 77, + 51 * COALESCE ( - 77, 61, 58 ) ) AS col2
----
82
-86086

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-615
SELECT ALL - 27 * - + 78 * + + NULLIF ( - + MAX( + 87 ), + - MIN( CAST( 25 AS DECIMAL ) ) * - - COALESCE ( - 44, + 85 ) / - CAST( - COUNT( * ) AS SIGNED ) )
----
-183222

skipif mysql # not compatible
query I rowsort label-615
SELECT ALL - 27 * - + 78 * + + NULLIF ( - + MAX ( + 87 ), + - MIN ( CAST ( 25 AS REAL ) ) * - - COALESCE ( - 44, + 85 ) / - CAST ( - COUNT ( * ) AS INTEGER ) )
----
-183222

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

query I rowsort
SELECT + NULLIF ( 42, CASE - COALESCE ( 85, - 42, 63, 28 * + + 75 ) WHEN + - ( + - 4 ) + 53 THEN - 10 WHEN - 48 THEN 92 END * ( + 2 ) )
----
42

query I rowsort
SELECT DISTINCT 45 * 11 AS col0
----
495

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-619
SELECT 54 * COUNT( * ) DIV COUNT( * ) + - 51 AS col0
----
3

skipif mysql # not compatible
query I rowsort label-619
SELECT 54 * COUNT ( * ) / COUNT ( * ) + - 51 AS col0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-620
SELECT NULLIF ( - 21, - 73 ) * - 57 * COUNT( * ) * - 94 - + - 29 AS col2
----
-112489

skipif mysql # not compatible
query I rowsort label-620
SELECT NULLIF ( - 21, - 73 ) * - 57 * COUNT ( * ) * - 94 - + - 29 AS col2
----
-112489

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-622
SELECT ALL + 36 * - - 5 + + 85 + 20 + NULLIF ( + + 75, - 89 + - 90 + - + CASE 4 WHEN + AVG ( ALL COALESCE ( - 37, - 49 + 41 ) ) * 28 THEN - 43 WHEN + 48 THEN + 60 / - CAST( + 57 AS SIGNED ) END * ( 97 ) )
----
360

skipif mysql # not compatible
query I rowsort label-622
SELECT ALL + 36 * - - 5 + + 85 + 20 + NULLIF ( + + 75, - 89 + - 90 + - + CASE 4 WHEN + AVG ( ALL COALESCE ( - 37, - 49 + 41 ) ) * 28 THEN - 43 WHEN + 48 THEN + 60 / - CAST ( + 57 AS INTEGER ) END * ( 97 ) )
----
360

onlyif mysql # aggregate syntax: 
query I rowsort label-623
SELECT + COUNT( ALL 74 ) + - COUNT( + - 47 )
----
0

skipif mysql # not compatible
query I rowsort label-623
SELECT + COUNT ( ALL 74 ) + - COUNT ( + - 47 )
----
0

query II rowsort
SELECT ALL + 69 AS col1, + ( - 59 ) * - 92 + + 77 + 90 + 68 AS col0
----
69
5663

onlyif mysql # aggregate syntax: 
query I rowsort label-625
SELECT ALL - COUNT( ALL 62 ) + - 20
----
-21

skipif mysql # not compatible
query I rowsort label-625
SELECT ALL - COUNT ( ALL 62 ) + - 20
----
-21

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

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

query I rowsort
SELECT ALL 2 + 85 + - 12
----
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-628
SELECT DISTINCT + 85 / CASE - + 49 WHEN - 43 THEN + 9 WHEN + 69 * CAST( NULL AS SIGNED ) * + 13 * 21 * + 58 THEN + + COUNT( * ) + - ( - 15 ) ELSE - 88 * - CASE + 27 * 52 WHEN 70 THEN 95 END + + 24 / + 62 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-628
SELECT DISTINCT + 85 / CASE - + 49 WHEN - 43 THEN + 9 WHEN + 69 * CAST ( NULL AS INTEGER ) * + 13 * 21 * + 58 THEN + + COUNT ( * ) + - ( - 15 ) ELSE - 88 * - CASE + 27 * 52 WHEN 70 THEN 95 END + + 24 / + 62 END AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-629
SELECT + + 74 + - 81 DIV - 72 AS col2
----
75

skipif mysql # not compatible
query I rowsort label-629
SELECT + + 74 + - 81 / - 72 AS col2
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-630
SELECT ALL + 63 + - - COUNT( * ) * + 8
----
71

skipif mysql # not compatible
query I rowsort label-630
SELECT ALL + 63 + - - COUNT ( * ) * + 8
----
71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-631
SELECT ALL 25 * + CAST( + COUNT( * ) AS SIGNED ) + + MIN( 52 ) AS col1
----
77

skipif mysql # not compatible
query I rowsort label-631
SELECT ALL 25 * + CAST ( + COUNT ( * ) AS INTEGER ) + + MIN ( 52 ) AS col1
----
77

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-632
SELECT ALL 29 + CAST( - 95 AS SIGNED ) DIV - 96 AS col0, 67 AS col1
----
29
67

skipif mysql # not compatible
query II rowsort label-632
SELECT ALL 29 + CAST ( - 95 AS INTEGER ) / - 96 AS col0, 67 AS col1
----
29
67

query I rowsort
SELECT - + 72 col2
----
-72

onlyif mysql # DIV for integer division: 
query I rowsort label-634
SELECT + 12 DIV + 57 + - - 3 AS col2
----
3

skipif mysql # not compatible
query I rowsort label-634
SELECT + 12 / + 57 + - - 3 AS col2
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-635
SELECT - 82 + 18 - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-635
SELECT - 82 + 18 - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-636
SELECT ALL + 3 + - SUM( + - 73 ) * MIN( ALL 10 ) col1
----
733

skipif mysql # not compatible
query I rowsort label-636
SELECT ALL + 3 + - SUM ( + - 73 ) * MIN ( ALL 10 ) col1
----
733

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

query I rowsort
SELECT ALL - + 88 + + - 93 - - - 36 AS col2
----
-217

query II rowsort
SELECT + 5 AS col2, 33 * - - 30 + 19 AS col0
----
5
1009

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-640
SELECT ALL - 17 * - + CAST( NULL AS SIGNED ) + + MAX( - + 52 ) + + 63 * 1 AS col0, CAST( NULL AS SIGNED )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-640
SELECT ALL - 17 * - + CAST ( NULL AS INTEGER ) + + MAX ( - + 52 ) + + 63 * 1 AS col0, CAST ( NULL AS INTEGER )
----
NULL
NULL

query II rowsort
SELECT DISTINCT 33 AS col0, 62 + 18 AS col1
----
33
80

onlyif mysql # aggregate syntax: 
query I rowsort label-642
SELECT DISTINCT COUNT( * ) + - 35 col2
----
-34

skipif mysql # not compatible
query I rowsort label-642
SELECT DISTINCT COUNT ( * ) + - 35 col2
----
-34

query I rowsort
SELECT - - CASE 28 WHEN + - 49 * + 37 - + 14 THEN - 51 WHEN 33 * 36 THEN NULL END * + 50 / - 96 col2
----
NULL

query I rowsort
SELECT + 15 - - 13 AS col0
----
28

query II rowsort
SELECT - 89 col2, + 98
----
-89
98

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-647
SELECT + - 70 + + 82 * - + 70 + + NULLIF ( - COALESCE ( - 82, + + 81, + COUNT( * ) DIV - 36 + - 22 * + 3 ), 35 * - 56 ) - COUNT( * ) * 67 col0
----
-5795

skipif mysql # not compatible
query I rowsort label-647
SELECT + - 70 + + 82 * - + 70 + + NULLIF ( - COALESCE ( - 82, + + 81, + COUNT ( * ) / - 36 + - 22 * + 3 ), 35 * - 56 ) - COUNT ( * ) * 67 col0
----
-5795

query I rowsort
SELECT + 28 - + 95 col2
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-649
SELECT ALL + SUM( ALL 5 ) * + CASE - ( + 59 ) WHEN 95 + - - ( + 70 ) - 97 / + - 3 THEN + 18 / + 69 WHEN 47 THEN NULL END / COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-649
SELECT ALL + SUM ( ALL 5 ) * + CASE - ( + 59 ) WHEN 95 + - - ( + 70 ) - 97 / + - 3 THEN + 18 / + 69 WHEN 47 THEN NULL END / COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-650
SELECT - 52 * + 86 AS col2, - 11 - CAST( NULL AS SIGNED ) * + 39 AS col2
----
-4472
NULL

skipif mysql # not compatible
query II rowsort label-650
SELECT - 52 * + 86 AS col2, - 11 - CAST ( NULL AS INTEGER ) * + 39 AS col2
----
-4472
NULL

query I rowsort
SELECT - 69 + - + 74 col2
----
-143

query I rowsort
SELECT - 45 + - 25 + 7 * + + 61
----
357

onlyif mysql # aggregate syntax: 
query I rowsort label-653
SELECT ALL - 49 * - MIN( - 69 ) AS col2
----
-3381

skipif mysql # not compatible
query I rowsort label-653
SELECT ALL - 49 * - MIN ( - 69 ) AS col2
----
-3381

onlyif mysql # aggregate syntax: 
query I rowsort label-654
SELECT ALL + 95 * + 1 * + COALESCE ( + COUNT( * ), - + COUNT( * ) + 68 )
----
95

skipif mysql # not compatible
query I rowsort label-654
SELECT ALL + 95 * + 1 * + COALESCE ( + COUNT ( * ), - + COUNT ( * ) + 68 )
----
95

onlyif mysql # DIV for integer division: 
query I rowsort label-655
SELECT ALL ( 45 ) DIV 18
----
2

skipif mysql # not compatible
query I rowsort label-655
SELECT ALL ( 45 ) / 18
----
2

query I rowsort
SELECT - 62 * - 58 * - 56 + + 67 AS col2
----
-201309

query II rowsort
SELECT ( + + 63 ), - NULLIF ( - 99, - 15 * - 12 ) AS col0
----
63
99

query I rowsort
SELECT ( COALESCE ( 79, 28 ) )
----
79

onlyif mysql # DIV for integer division: 
query I rowsort label-659
SELECT - 86 DIV 49 * + 70 * + 60 * + 31 * - 26 AS col1
----
3385200

skipif mysql # not compatible
query I rowsort label-659
SELECT - 86 / 49 * + 70 * + 60 * + 31 * - 26 AS col1
----
3385200

onlyif mysql # aggregate syntax: 
query II rowsort label-660
SELECT ALL + MIN( DISTINCT + - 22 ) AS col1, COUNT( * ) * 20
----
-22
20

skipif mysql # not compatible
query II rowsort label-660
SELECT ALL + MIN ( DISTINCT + - 22 ) AS col1, COUNT ( * ) * 20
----
-22
20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-661
SELECT - 62 * + - 68 * - COALESCE ( - CAST( COUNT( * ) AS SIGNED ), - - 87 ) * - 53 AS col1
----
-223448

skipif mysql # not compatible
query I rowsort label-661
SELECT - 62 * + - 68 * - COALESCE ( - CAST ( COUNT ( * ) AS INTEGER ), - - 87 ) * - 53 AS col1
----
-223448

query I rowsort
SELECT + 68 + + 69
----
137

query II rowsort
SELECT + 32 * - 52 AS col0, - 55 + + - 45 + + 86 col0
----
-1664
-14

query I rowsort
SELECT ALL - + 17 * - 81 + - 84 + + 83 AS col2
----
1376

onlyif mysql # aggregate syntax: 
query I rowsort label-665
SELECT DISTINCT - COUNT( 81 ) * 53 AS col0
----
-53

skipif mysql # not compatible
query I rowsort label-665
SELECT DISTINCT - COUNT ( 81 ) * 53 AS col0
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-666
SELECT ALL + 27 * 76 + - + 75 + 66 - + - ( - 92 ) - - COUNT( * ) + + - 14
----
1938

skipif mysql # not compatible
query I rowsort label-666
SELECT ALL + 27 * 76 + - + 75 + 66 - + - ( - 92 ) - - COUNT ( * ) + + - 14
----
1938

query I rowsort
SELECT ALL 13 + - - 32 AS col2
----
45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-668
SELECT + COALESCE ( - COUNT( * ), + + COUNT( * ) DIV ( COALESCE ( + 20, 59 * COALESCE ( + - 66, - - 73 DIV + - 16 + 10 * + 25 ) - 87 + + 62 * 61, COUNT( * ) DIV - 52 ) ) + 16 )
----
-1

skipif mysql # not compatible
query I rowsort label-668
SELECT + COALESCE ( - COUNT ( * ), + + COUNT ( * ) / ( COALESCE ( + 20, 59 * COALESCE ( + - 66, - - 73 / + - 16 + 10 * + 25 ) - 87 + + 62 * 61, COUNT ( * ) / - 52 ) ) + 16 )
----
-1

query I rowsort
SELECT ALL CASE + 34 WHEN - 97 THEN - - 3 WHEN 58 THEN + 15 END / + 96 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-670
SELECT DISTINCT - COUNT( * ) - + COALESCE ( 65, + - 94 - - ( - COUNT( * ) ) DIV 81, - 1 )
----
-66

skipif mysql # not compatible
query I rowsort label-670
SELECT DISTINCT - COUNT ( * ) - + COALESCE ( 65, + - 94 - - ( - COUNT ( * ) ) / 81, - 1 )
----
-66

query I rowsort
SELECT ALL 77 * + 10 + 79
----
849

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

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

query I rowsort
SELECT ALL 16 - + + 87 * 50
----
-4334

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-674
SELECT + CAST( SUM( DISTINCT + 80 ) AS SIGNED ) * 4 * + 3 + - 6 AS col0
----
954

skipif mysql # not compatible
query I rowsort label-674
SELECT + CAST ( SUM ( DISTINCT + 80 ) AS INTEGER ) * 4 * + 3 + - 6 AS col0
----
954

onlyif mysql # aggregate syntax: 
query I rowsort label-675
SELECT 90 + + ( - SUM( ALL 40 ) ) AS col0
----
50

skipif mysql # not compatible
query I rowsort label-675
SELECT 90 + + ( - SUM ( ALL 40 ) ) AS col0
----
50

query I rowsort
SELECT - NULLIF ( + 47, + - 85 ) AS col0
----
-47

query I rowsort
SELECT ALL ( + 17 ) * + 85
----
1445

onlyif mysql # aggregate syntax: 
query I rowsort label-678
SELECT + COUNT( * ) + + 26 + 49 AS col0
----
76

skipif mysql # not compatible
query I rowsort label-678
SELECT + COUNT ( * ) + + 26 + 49 AS col0
----
76

query II rowsort
SELECT + 22 * - 0, + 45 AS col1
----
0
45

query II rowsort
SELECT 10 * - 54, - 95 AS col1
----
-540
-95

query I rowsort
SELECT + 35 * + + 90 * - 60 AS col1
----
-189000

query I rowsort
SELECT DISTINCT 17 * 53
----
901

query II rowsort
SELECT DISTINCT 53 AS col2, + 49 + + - ( + 45 )
----
53
4

onlyif mysql # aggregate syntax: 
query I rowsort label-684
SELECT NULLIF ( 10, + - NULLIF ( + 16, - + COUNT( DISTINCT - 44 ) ) ) + + 40 - 54
----
-4

skipif mysql # not compatible
query I rowsort label-684
SELECT NULLIF ( 10, + - NULLIF ( + 16, - + COUNT ( DISTINCT - 44 ) ) ) + + 40 - 54
----
-4

query I rowsort
SELECT ALL 34 * + 36 col1
----
1224

query I rowsort
SELECT 18 * + 99 AS col0
----
1782

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-688
SELECT ALL 28 + - 65 + - CASE + + COALESCE ( MIN( ALL 56 ), + 22 * + NULLIF ( AVG ( - 0 ), 6 ), 77 ) WHEN - - 28 * COALESCE ( - 4 * 96 + - 33, - CAST( NULL AS SIGNED ), - 60 * 2 ) THEN 91 END * + 19
----
NULL

skipif mysql # not compatible
query I rowsort label-688
SELECT ALL 28 + - 65 + - CASE + + COALESCE ( MIN ( ALL 56 ), + 22 * + NULLIF ( AVG ( - 0 ), 6 ), 77 ) WHEN - - 28 * COALESCE ( - 4 * 96 + - 33, - CAST ( NULL AS INTEGER ), - 60 * 2 ) THEN 91 END * + 19
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-689
SELECT - 83 DIV + 66 + + 13 * 70 DIV - - 22
----
40

skipif mysql # not compatible
query I rowsort label-689
SELECT - 83 / + 66 + + 13 * 70 / - - 22
----
40

onlyif mysql # aggregate syntax: 
query II rowsort label-690
SELECT 21 AS col0, + MAX( - - 23 ) AS col0
----
21
23

skipif mysql # not compatible
query II rowsort label-690
SELECT 21 AS col0, + MAX ( - - 23 ) AS col0
----
21
23

onlyif mysql # DIV for integer division: 
query I rowsort label-691
SELECT DISTINCT + 82 DIV + 14 AS col1
----
5

skipif mysql # not compatible
query I rowsort label-691
SELECT DISTINCT + 82 / + 14 AS col1
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-692
SELECT ALL + CASE + - 92 WHEN - 28 THEN - - 36 - - 42 ELSE NULL END * - COALESCE ( + + COUNT( * ), COUNT( * ) + + + COUNT( * ) ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-692
SELECT ALL + CASE + - 92 WHEN - 28 THEN - - 36 - - 42 ELSE NULL END * - COALESCE ( + + COUNT ( * ), COUNT ( * ) + + + COUNT ( * ) ) col2
----
NULL

query I rowsort
SELECT DISTINCT - 9 + - + 33 AS col2
----
-42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-694
SELECT DISTINCT 27 + + COALESCE ( + - 31, + CAST( COALESCE ( - + 34, - COUNT( * ), + 38 ) AS SIGNED ) - + 14 * + + 93, + + 54 - - - 90 * CAST( NULL AS SIGNED ) )
----
-4

skipif mysql # not compatible
query I rowsort label-694
SELECT DISTINCT 27 + + COALESCE ( + - 31, + CAST ( COALESCE ( - + 34, - COUNT ( * ), + 38 ) AS INTEGER ) - + 14 * + + 93, + + 54 - - - 90 * CAST ( NULL AS INTEGER ) )
----
-4

query I rowsort
SELECT ALL - 91 + + 29 col1
----
-62

query I rowsort
SELECT ALL - COALESCE ( - 12, - 15 ) + - 1
----
11

query I rowsort
SELECT ALL + 64 * 96
----
6144

query II rowsort
SELECT ALL + 19 + + + 42 * - 90, - ( - - ( - ( + 20 ) ) ) AS col0
----
-3761
20

query I rowsort
SELECT ALL - 92 + 31 AS col2
----
-61

query I rowsort
SELECT + 54 + - - 17
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-701
SELECT + MAX( + - 26 ) AS col1
----
-26

skipif mysql # not compatible
query I rowsort label-701
SELECT + MAX ( + - 26 ) AS col1
----
-26

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-703
SELECT ALL - 36 DIV + 37 * 46 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-703
SELECT ALL - 36 / + 37 * 46 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-704
SELECT + + 1 * 13 + 41 / - CAST( - - COUNT( * ) AS SIGNED ) + - COUNT( * ) + - + NULLIF ( 98, + 70 - - + 40 + - - 50 * 63 ) - - + ( + CAST( NULL AS SIGNED ) ) * + 77 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-704
SELECT + + 1 * 13 + 41 / - CAST ( - - COUNT ( * ) AS INTEGER ) + - COUNT ( * ) + - + NULLIF ( 98, + 70 - - + 40 + - - 50 * 63 ) - - + ( + CAST ( NULL AS INTEGER ) ) * + 77 AS col2
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-706
SELECT DISTINCT - + 34 DIV 79 * - 47
----
0

skipif mysql # not compatible
query I rowsort label-706
SELECT DISTINCT - + 34 / 79 * - 47
----
0

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-709
SELECT ALL 47 * SUM( - COALESCE ( 49, + - 40 ) ) AS col0
----
-2303

skipif mysql # not compatible
query I rowsort label-709
SELECT ALL 47 * SUM ( - COALESCE ( 49, + - 40 ) ) AS col0
----
-2303

query I rowsort
SELECT ALL + - 4 - + - ( - + 17 ) AS col2
----
-21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-711
SELECT 31 * 30 * + COUNT( * ) + + 37 + + CAST( NULL AS SIGNED ) - AVG ( + + 45 ) + + 30, 6 AS col0
----
NULL
6

skipif mysql # not compatible
query II rowsort label-711
SELECT 31 * 30 * + COUNT ( * ) + + 37 + + CAST ( NULL AS INTEGER ) - AVG ( + + 45 ) + + 30, 6 AS col0
----
NULL
6

query I rowsort
SELECT DISTINCT 74 * - 39 AS col1
----
-2886

query I rowsort
SELECT - 92 + + 38
----
-54

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-714
SELECT DISTINCT COUNT( * ) * ( + 18 ) + + + CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-714
SELECT DISTINCT COUNT ( * ) * ( + 18 ) + + + CAST ( NULL AS REAL ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-715
SELECT ALL + 38 AS col0, + 56 DIV 97
----
38
0

skipif mysql # not compatible
query II rowsort label-715
SELECT ALL + 38 AS col0, + 56 / 97
----
38
0

query I rowsort
SELECT - 19 * - - 99
----
-1881

query I rowsort
SELECT 25 * + + 32
----
800

query I rowsort
SELECT - 94 + + + 16
----
-78

query I rowsort
SELECT 18 + + - 63 AS col1
----
-45

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-720
SELECT DISTINCT 69 DIV - - 34 AS col0, + SUM( DISTINCT - + 98 )
----
2
-98

skipif mysql # not compatible
query II rowsort label-720
SELECT DISTINCT 69 / - - 34 AS col0, + SUM ( DISTINCT - + 98 )
----
2
-98

query II rowsort
SELECT 98 + 88 AS col1, 14
----
186
14

onlyif mysql # aggregate syntax: 
query I rowsort label-722
SELECT 2 - - SUM( ALL + 32 ) AS col2
----
34

skipif mysql # not compatible
query I rowsort label-722
SELECT 2 - - SUM ( ALL + 32 ) AS col2
----
34

onlyif mysql # DIV for integer division: 
query I rowsort label-723
SELECT 8 DIV 92 DIV + 96
----
0

skipif mysql # not compatible
query I rowsort label-723
SELECT 8 / 92 / + 96
----
0

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

skipif mysql # not compatible
query I rowsort label-724
SELECT 43 + CAST ( - + 83 AS INTEGER ) AS col0
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-725
SELECT DISTINCT 22 + 69 + 39 + + COALESCE ( 47, + 67 + - COUNT( * ), + 12 - 43 * 88 ) * 55 + - MIN( DISTINCT + 11 )
----
2704

skipif mysql # not compatible
query I rowsort label-725
SELECT DISTINCT 22 + 69 + 39 + + COALESCE ( 47, + 67 + - COUNT ( * ), + 12 - 43 * 88 ) * 55 + - MIN ( DISTINCT + 11 )
----
2704

onlyif mysql # aggregate syntax: 
query I rowsort label-726
SELECT ( - + 94 ) + - NULLIF ( - SUM( ALL 71 ), 23 ) + 73 * + + 55 * 13 AS col2
----
52172

skipif mysql # not compatible
query I rowsort label-726
SELECT ( - + 94 ) + - NULLIF ( - SUM ( ALL 71 ), 23 ) + 73 * + + 55 * 13 AS col2
----
52172

onlyif mysql # aggregate syntax: 
query II rowsort label-727
SELECT 56 * + COUNT( * ) AS col2, - 3
----
56
-3

skipif mysql # not compatible
query II rowsort label-727
SELECT 56 * + COUNT ( * ) AS col2, - 3
----
56
-3

query I rowsort
SELECT ALL + 4 * + ( - + 23 ) + + + 82
----
-10

onlyif mysql # DIV for integer division: 
query I rowsort label-729
SELECT 86 DIV - + 76 + - + 75
----
-76

skipif mysql # not compatible
query I rowsort label-729
SELECT 86 / - + 76 + - + 75
----
-76

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-730
SELECT 69 * 79 * + 54 DIV - COUNT( * ) - + 44 AS col2
----
-294398

skipif mysql # not compatible
query I rowsort label-730
SELECT 69 * 79 * + 54 / - COUNT ( * ) - + 44 AS col2
----
-294398

onlyif mysql # aggregate syntax: 
query I rowsort label-731
SELECT ALL MAX( ALL 42 ) * 34 + + + 80 + + MAX( + + 23 )
----
1531

skipif mysql # not compatible
query I rowsort label-731
SELECT ALL MAX ( ALL 42 ) * 34 + + + 80 + + MAX ( + + 23 )
----
1531

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

skipif mysql # not compatible
query I rowsort label-732
SELECT MIN ( 16 )
----
16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-733
SELECT 24 DIV + 36 + - COUNT( 97 ) * - - 40
----
-40

skipif mysql # not compatible
query I rowsort label-733
SELECT 24 / + 36 + - COUNT ( 97 ) * - - 40
----
-40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-734
SELECT ALL + MAX( DISTINCT + - ( + ( - 54 ) ) ) * + 63 + - - COUNT( * ) + - CAST( NULL AS SIGNED ) - + + 84
----
NULL

skipif mysql # not compatible
query I rowsort label-734
SELECT ALL + MAX ( DISTINCT + - ( + ( - 54 ) ) ) * + 63 + - - COUNT ( * ) + - CAST ( NULL AS INTEGER ) - + + 84
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-735
SELECT ALL + + 82 * + 94 + + COUNT( * ) AS col0
----
7709

skipif mysql # not compatible
query I rowsort label-735
SELECT ALL + + 82 * + 94 + + COUNT ( * ) AS col0
----
7709

query I rowsort
SELECT - 35 + 21 * 0
----
-35

onlyif mysql # aggregate syntax: 
query II rowsort label-737
SELECT + - MIN( 74 ) * - ( - 88 ) AS col0, 26
----
-6512
26

skipif mysql # not compatible
query II rowsort label-737
SELECT + - MIN ( 74 ) * - ( - 88 ) AS col0, 26
----
-6512
26

onlyif mysql # aggregate syntax: 
query I rowsort label-738
SELECT DISTINCT - 73 * + 49 * + 70 * + COUNT( * )
----
-250390

skipif mysql # not compatible
query I rowsort label-738
SELECT DISTINCT - 73 * + 49 * + 70 * + COUNT ( * )
----
-250390

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-739
SELECT DISTINCT COUNT( * ) * 78 - - CAST( - 93 AS SIGNED ) * + 21
----
-1875

skipif mysql # not compatible
query I rowsort label-739
SELECT DISTINCT COUNT ( * ) * 78 - - CAST ( - 93 AS INTEGER ) * + 21
----
-1875

onlyif mysql # aggregate syntax: 
query I rowsort label-740
SELECT DISTINCT 80 * - 34 * + - 71 * + 81 + - COUNT( * ) - + COUNT( * )
----
15642718

skipif mysql # not compatible
query I rowsort label-740
SELECT DISTINCT 80 * - 34 * + - 71 * + 81 + - COUNT ( * ) - + COUNT ( * )
----
15642718

query I rowsort
SELECT ALL + + 69 - 68
----
1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-743
SELECT - ( 81 ) + COUNT( * ) * + 15 col2
----
-66

skipif mysql # not compatible
query I rowsort label-743
SELECT - ( 81 ) + COUNT ( * ) * + 15 col2
----
-66

query I rowsort
SELECT - 90 * + 62
----
-5580

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-745
SELECT - 95 * + 90, - 1 * - 78 - + + 87 * - 96 + + + COUNT( * ) + + - 57 DIV 47 col1
----
-8550
8430

skipif mysql # not compatible
query II rowsort label-745
SELECT - 95 * + 90, - 1 * - 78 - + + 87 * - 96 + + + COUNT ( * ) + + - 57 / 47 col1
----
-8550
8430

onlyif mysql # DIV for integer division: 
query II rowsort label-746
SELECT - + 8 DIV - 90, - 55 AS col2
----
0
-55

skipif mysql # not compatible
query II rowsort label-746
SELECT - + 8 / - 90, - 55 AS col2
----
0
-55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-747
SELECT + + ( + 10 ) / - NULLIF ( + + CAST( NULL AS SIGNED ), - 30 ) * COUNT( * ) + 36 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-747
SELECT + + ( + 10 ) / - NULLIF ( + + CAST ( NULL AS INTEGER ), - 30 ) * COUNT ( * ) + 36 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-748
SELECT ALL COALESCE ( + 69, - 93, - - CAST( 99 AS SIGNED ) + + 31 DIV + 29, - 6 )
----
69

skipif mysql # not compatible
query I rowsort label-748
SELECT ALL COALESCE ( + 69, - 93, - - CAST ( 99 AS INTEGER ) + + 31 / + 29, - 6 )
----
69

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

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

query II rowsort
SELECT - + 58 - - 71 AS col2, 12
----
13
12

onlyif mysql # aggregate syntax: 
query II rowsort label-751
SELECT DISTINCT 50 AS col1, 83 * - COUNT( * ) AS col0
----
50
-83

skipif mysql # not compatible
query II rowsort label-751
SELECT DISTINCT 50 AS col1, 83 * - COUNT ( * ) AS col0
----
50
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-752
SELECT - 93 + + MAX( ALL - 12 )
----
-105

skipif mysql # not compatible
query I rowsort label-752
SELECT - 93 + + MAX ( ALL - 12 )
----
-105

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

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

query I rowsort
SELECT - 69 + + + 2 AS col0
----
-67

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-757
SELECT DISTINCT NULLIF ( - NULLIF ( 64, COUNT( * ) ), + 40 ) + - COUNT( * )
----
-65

skipif mysql # not compatible
query I rowsort label-757
SELECT DISTINCT NULLIF ( - NULLIF ( 64, COUNT ( * ) ), + 40 ) + - COUNT ( * )
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-758
SELECT + MAX( - ( + + 72 ) ) - + 37
----
-109

skipif mysql # not compatible
query I rowsort label-758
SELECT + MAX ( - ( + + 72 ) ) - + 37
----
-109

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-759
SELECT ALL 33 + - - 95 + - 84 * 10 - - + 80 AS col1, ( - + 18 ) + - CAST( NULL AS SIGNED ) + + CAST( - 51 AS SIGNED ) / - SUM( ALL 40 ) * - 13 * COUNT( * ) - + 90 AS col2
----
-632
NULL

skipif mysql # not compatible
query II rowsort label-759
SELECT ALL 33 + - - 95 + - 84 * 10 - - + 80 AS col1, ( - + 18 ) + - CAST ( NULL AS INTEGER ) + + CAST ( - 51 AS INTEGER ) / - SUM ( ALL 40 ) * - 13 * COUNT ( * ) - + 90 AS col2
----
-632
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-760
SELECT - 39 * - CAST( NULL AS SIGNED ) * - 41 * 49
----
NULL

skipif mysql # not compatible
query I rowsort label-760
SELECT - 39 * - CAST ( NULL AS INTEGER ) * - 41 * 49
----
NULL

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

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

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

query I rowsort
SELECT ALL 3 * - 24
----
-72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-764
SELECT CAST( + COALESCE ( - COALESCE ( - - NULLIF ( + + 56, + 11 ), 80, + + 25 * 83 + + COUNT( * ) - - 50, ( COALESCE ( + + 37, - 69 + 56 * + NULLIF ( - COUNT( * ), - CASE - 10 WHEN - ( 36 ) + 97 THEN SUM( 97 ) + + 64 END * + 76 ) ) ) ), - 20 + 37, 31 ) AS SIGNED ) AS col1
----
-56

skipif mysql # not compatible
query I rowsort label-764
SELECT CAST ( + COALESCE ( - COALESCE ( - - NULLIF ( + + 56, + 11 ), 80, + + 25 * 83 + + COUNT ( * ) - - 50, ( COALESCE ( + + 37, - 69 + 56 * + NULLIF ( - COUNT ( * ), - CASE - 10 WHEN - ( 36 ) + 97 THEN SUM ( 97 ) + + 64 END * + 76 ) ) ) ), - 20 + 37, 31 ) AS INTEGER ) AS col1
----
-56

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

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

query I rowsort
SELECT 92 * NULLIF ( - 88, ( + 67 ) ) + - - 50 col2
----
-8046

onlyif mysql # aggregate syntax: 
query I rowsort label-767
SELECT DISTINCT 32 * + NULLIF ( + COUNT( * ), COUNT( * ) ) * 98 - 7 * - 12 + 24 + + 24 / + 37 + 62 * + 86 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-767
SELECT DISTINCT 32 * + NULLIF ( + COUNT ( * ), COUNT ( * ) ) * 98 - 7 * - 12 + 24 + + 24 / + 37 + 62 * + 86 AS col1
----
NULL

query I rowsort
SELECT + ( - 73 ) * - 87 AS col2
----
6351

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-769
SELECT ALL 61 DIV COUNT( DISTINCT - - 16 ) - - + ( + COUNT( * ) )
----
62

skipif mysql # not compatible
query I rowsort label-769
SELECT ALL 61 / COUNT ( DISTINCT - - 16 ) - - + ( + COUNT ( * ) )
----
62

query I rowsort
SELECT ALL 67 * ( - 77 ) * 31 AS col1
----
-159929

onlyif mysql # aggregate syntax: 
query I rowsort label-771
SELECT + 73 + COUNT( * ) + + ( - - 87 )
----
161

skipif mysql # not compatible
query I rowsort label-771
SELECT + 73 + COUNT ( * ) + + ( - - 87 )
----
161

query II rowsort
SELECT DISTINCT + - 98, 83 AS col0
----
-98
83

onlyif mysql # aggregate syntax: 
query II rowsort label-773
SELECT + - NULLIF ( - COALESCE ( 58, COALESCE ( - COUNT( * ), + - 24 ) ), - + COUNT( * ) + - MAX( + - 95 ) ) + 75, + 13 + + 81 AS col1
----
133
94

skipif mysql # not compatible
query II rowsort label-773
SELECT + - NULLIF ( - COALESCE ( 58, COALESCE ( - COUNT ( * ), + - 24 ) ), - + COUNT ( * ) + - MAX ( + - 95 ) ) + 75, + 13 + + 81 AS col1
----
133
94

query I rowsort
SELECT ALL - 33 * + ( - 48 ) AS col1
----
1584

query I rowsort
SELECT - 22 - - + 66
----
44

query I rowsort
SELECT DISTINCT - 1 * 30 AS col1
----
-30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-777
SELECT + + COUNT( * ) AS col1, 9 / - CAST( NULL AS DECIMAL ) * - + COUNT( * ) * - + CAST( NULL AS SIGNED ) + - 71
----
1
NULL

skipif mysql # not compatible
query II rowsort label-777
SELECT + + COUNT ( * ) AS col1, 9 / - CAST ( NULL AS REAL ) * - + COUNT ( * ) * - + CAST ( NULL AS INTEGER ) + - 71
----
1
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-778
SELECT + + CASE - - 21 WHEN CASE + COUNT( + 53 ) WHEN + + 87 * 36 * + 46 - 11 THEN NULL WHEN - + 30 THEN 7 * COUNT( * ) ELSE NULL END * 74 * - - 53 THEN - CAST( 81 AS SIGNED ) ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-778
SELECT + + CASE - - 21 WHEN CASE + COUNT ( + 53 ) WHEN + + 87 * 36 * + 46 - 11 THEN NULL WHEN - + 30 THEN 7 * COUNT ( * ) ELSE NULL END * 74 * - - 53 THEN - CAST ( 81 AS INTEGER ) ELSE NULL END AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-779
SELECT ALL + 57 DIV ( - 52 ) - + 38 DIV - 77 * 53 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-779
SELECT ALL + 57 / ( - 52 ) - + 38 / - 77 * 53 AS col0
----
-1

query I rowsort
SELECT - - 88 + - 5 AS col2
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-781
SELECT COUNT( - ( + - 71 ) )
----
1

skipif mysql # not compatible
query I rowsort label-781
SELECT COUNT ( - ( + - 71 ) )
----
1

query I rowsort
SELECT + 69 * + 26 * - + 50 AS col2
----
-89700

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-784
SELECT ALL CAST( NULL AS DECIMAL ) AS col0, + 96 * - ( - - 23 )
----
NULL
-2208

skipif mysql # not compatible
query II rowsort label-784
SELECT ALL CAST ( NULL AS REAL ) AS col0, + 96 * - ( - - 23 )
----
NULL
-2208

onlyif mysql # aggregate syntax: 
query I rowsort label-785
SELECT ALL + 5 + - COUNT( * ) + + 53 * - 90 - - - NULLIF ( - COUNT( * ), + ( - 42 ) ) AS col2
----
-4765

skipif mysql # not compatible
query I rowsort label-785
SELECT ALL + 5 + - COUNT ( * ) + + 53 * - 90 - - - NULLIF ( - COUNT ( * ), + ( - 42 ) ) AS col2
----
-4765

onlyif mysql # aggregate syntax: 
query I rowsort label-786
SELECT - 39 * + - MAX( ALL + 68 )
----
2652

skipif mysql # not compatible
query I rowsort label-786
SELECT - 39 * + - MAX ( ALL + 68 )
----
2652

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

skipif mysql # not compatible
query I rowsort label-787
SELECT ALL + COUNT ( * ) / + 59 * + 5 * 56 AS col2
----
0

query I rowsort
SELECT - 15 * 52 col2
----
-780

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

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

query I rowsort
SELECT - 33 + 57 AS col2
----
24

query II rowsort
SELECT - 74 AS col1, 97 AS col0
----
-74
97

query I rowsort
SELECT DISTINCT - 42 - 90 AS col1
----
-132

query I rowsort
SELECT 36 - 6 AS col1
----
30

query I rowsort
SELECT 72 * + 21 AS col0
----
1512

query II rowsort
SELECT 18, - 87 AS col2
----
18
-87

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-797
SELECT 56 col0, - COUNT( * )
----
56
-1

skipif mysql # not compatible
query II rowsort label-797
SELECT 56 col0, - COUNT ( * )
----
56
-1

query I rowsort
SELECT 62 * 89
----
5518

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-799
SELECT ALL - 32 AS col2, + COUNT( * ) DIV + 59 + 18 AS col0
----
-32
18

skipif mysql # not compatible
query II rowsort label-799
SELECT ALL - 32 AS col2, + COUNT ( * ) / + 59 + 18 AS col0
----
-32
18

query II rowsort
SELECT DISTINCT - 72, - 60 + - 63 AS col0
----
-72
-123

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-801
SELECT ALL ( + + 47 ) DIV - + CAST( 81 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-801
SELECT ALL ( + + 47 ) / - + CAST ( 81 AS INTEGER )
----
0

query I rowsort
SELECT 31 * - 19 AS col0
----
-589

query II rowsort
SELECT DISTINCT - 90 AS col0, 19
----
-90
19

onlyif mysql # aggregate syntax: 
query I rowsort label-804
SELECT DISTINCT - ( - CASE - + 8 WHEN + 93 * + 70 * + 16 * 79 THEN COUNT( * ) END )
----
NULL

skipif mysql # not compatible
query I rowsort label-804
SELECT DISTINCT - ( - CASE - + 8 WHEN + 93 * + 70 * + 16 * 79 THEN COUNT ( * ) END )
----
NULL

query I rowsort
SELECT ALL + CASE + + 47 WHEN + - ( + 38 ) THEN - + 22 + - 90 ELSE NULL END * + - 18 - + + COALESCE ( + - 47, - - 40 + - 66, + + 64 )
----
NULL

query I rowsort
SELECT 10 * + + 71 * - 77
----
-54670

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

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

query I rowsort
SELECT NULLIF ( + 6, + 9 ) + - 20
----
-14

onlyif mysql # DIV for integer division: 
query I rowsort label-809
SELECT 2 DIV - 66 * - 57
----
0

skipif mysql # not compatible
query I rowsort label-809
SELECT 2 / - 66 * - 57
----
0

query I rowsort
SELECT - 86 * - 89 AS col0
----
7654

onlyif mysql # aggregate syntax: 
query I rowsort label-811
SELECT DISTINCT + 69 + - COUNT( * ) * 95 * - + 71
----
6814

skipif mysql # not compatible
query I rowsort label-811
SELECT DISTINCT + 69 + - COUNT ( * ) * 95 * - + 71
----
6814

onlyif mysql # aggregate syntax: 
query I rowsort label-812
SELECT ALL MAX( 86 ) + 93 AS col1
----
179

skipif mysql # not compatible
query I rowsort label-812
SELECT ALL MAX ( 86 ) + 93 AS col1
----
179

query I rowsort
SELECT DISTINCT - - ( - 74 ) AS col1
----
-74

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

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

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

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

query II rowsort
SELECT + 49 AS col0, 32
----
49
32

onlyif mysql # aggregate syntax: 
query I rowsort label-817
SELECT ( 28 ) + - + MAX( ALL - 50 ) - 71
----
7

skipif mysql # not compatible
query I rowsort label-817
SELECT ( 28 ) + - + MAX ( ALL - 50 ) - 71
----
7

query I rowsort
SELECT + 11 * ( - 73 ) + 95 AS col1
----
-708

onlyif mysql # DIV for integer division: 
query I rowsort label-819
SELECT ALL - 73 + 38 DIV + + ( 42 )
----
-73

skipif mysql # not compatible
query I rowsort label-819
SELECT ALL - 73 + 38 / + + ( 42 )
----
-73

onlyif mysql # aggregate syntax: 
query II rowsort label-820
SELECT 37 - COUNT( * ) AS col1, 50 - + + 88
----
36
-38

skipif mysql # not compatible
query II rowsort label-820
SELECT 37 - COUNT ( * ) AS col1, 50 - + + 88
----
36
-38

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-821
SELECT DISTINCT NULLIF ( + 4, - COUNT( DISTINCT 54 ) DIV + 17 ) DIV - 88
----
0

skipif mysql # not compatible
query I rowsort label-821
SELECT DISTINCT NULLIF ( + 4, - COUNT ( DISTINCT 54 ) / + 17 ) / - 88
----
0

query I rowsort
SELECT DISTINCT 63 - + - 48 * + 12 AS col2
----
639

query I rowsort
SELECT ALL 98 - + 41 AS col2
----
57

query I rowsort
SELECT DISTINCT ( ( - + 24 ) ) * - + 7 AS col2
----
168

query I rowsort
SELECT ( + + 91 ) + + 37 + + 52 * - 98 * - 21
----
107144

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

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

query II rowsort
SELECT 91 - + + 35 - + 87 + - 9 * 5, + 28 AS col0
----
-76
28

onlyif mysql # DIV for integer division: 
query I rowsort label-828
SELECT DISTINCT 90 DIV + 67 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-828
SELECT DISTINCT 90 / + 67 AS col1
----
1

query I rowsort
SELECT 81 + - 19
----
62

query I rowsort
SELECT DISTINCT - 95 * - 42
----
3990

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

onlyif mysql # aggregate syntax: 
query I rowsort label-832
SELECT + 62 * 78 * - - COUNT( * ) + - + COUNT( + + 27 ) + + - 29
----
4806

skipif mysql # not compatible
query I rowsort label-832
SELECT + 62 * 78 * - - COUNT ( * ) + - + COUNT ( + + 27 ) + + - 29
----
4806

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-834
SELECT ALL + 1 + + - 77 DIV + 15
----
-4

skipif mysql # not compatible
query I rowsort label-834
SELECT ALL + 1 + + - 77 / + 15
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-835
SELECT 56 + - SUM( - + 86 ) * + 10
----
916

skipif mysql # not compatible
query I rowsort label-835
SELECT 56 + - SUM ( - + 86 ) * + 10
----
916

query II rowsort
SELECT DISTINCT + + 53 * - - 18 * - 11 AS col1, - 0 AS col2
----
-10494
0

onlyif mysql # aggregate syntax: 
query I rowsort label-837
SELECT ALL - - 91 + + COUNT( * )
----
92

skipif mysql # not compatible
query I rowsort label-837
SELECT ALL - - 91 + + COUNT ( * )
----
92

query II rowsort
SELECT - 70 + - 27 col1, - 46 AS col0
----
-97
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-839
SELECT - MAX( - ( - 32 ) ) * 69 + ( + - 69 ) * + 99 * + COUNT( + - 82 )
----
-9039

skipif mysql # not compatible
query I rowsort label-839
SELECT - MAX ( - ( - 32 ) ) * 69 + ( + - 69 ) * + 99 * + COUNT ( + - 82 )
----
-9039

query I rowsort
SELECT ALL + + 78 + COALESCE ( - 4, + - 14 )
----
74

query I rowsort
SELECT ALL - - COALESCE ( 25, 51 )
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-842
SELECT ALL - COUNT( 14 ) + - COUNT( * ) * - COALESCE ( + + 94, - 1 * + - 2 + 76 * + - 15 ) + MAX( DISTINCT 93 )
----
186

skipif mysql # not compatible
query I rowsort label-842
SELECT ALL - COUNT ( 14 ) + - COUNT ( * ) * - COALESCE ( + + 94, - 1 * + - 2 + 76 * + - 15 ) + MAX ( DISTINCT 93 )
----
186

query I rowsort
SELECT NULLIF ( - 65, 22 ) * 98 + - - 28 + 69
----
-6273

onlyif mysql # aggregate syntax: 
query II rowsort label-844
SELECT 17 + - + 12 AS col0, 51 * - COUNT( * ) col2
----
5
-51

skipif mysql # not compatible
query II rowsort label-844
SELECT 17 + - + 12 AS col0, 51 * - COUNT ( * ) col2
----
5
-51

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-846
SELECT ALL - MAX( ALL COALESCE ( + 39, + - 75, - 75 ) ) AS col0
----
-39

skipif mysql # not compatible
query I rowsort label-846
SELECT ALL - MAX ( ALL COALESCE ( + 39, + - 75, - 75 ) ) AS col0
----
-39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-847
SELECT COUNT( * ) + - 25 + - + 40 AS col1, COALESCE ( + 84, - + 67 + 39 - + + 99 + + + 22 * - 77 DIV + CAST( NULL AS SIGNED ), 24 ) + - ( - 90 ) * + 89 * COUNT( * )
----
-64
8094

skipif mysql # not compatible
query II rowsort label-847
SELECT COUNT ( * ) + - 25 + - + 40 AS col1, COALESCE ( + 84, - + 67 + 39 - + + 99 + + + 22 * - 77 / + CAST ( NULL AS INTEGER ), 24 ) + - ( - 90 ) * + 89 * COUNT ( * )
----
-64
8094

onlyif mysql # aggregate syntax: 
query I rowsort label-848
SELECT DISTINCT + CASE + + 52 WHEN + + 97 + + 90 THEN - - 70 WHEN - ( - + 74 ) THEN CASE + 20 WHEN + 58 THEN - - 64 ELSE - - 88 - + + 34 END + + 69 + NULLIF ( + 12, - COUNT( * ) * 90 ) * + 81 WHEN CASE + 43 WHEN - 17 THEN + 24 + - 83 * 61 WHEN 80 THEN NULL WHEN 9 THEN - ( COUNT( * ) ) END + - ( - 56 ) THEN NULL WHEN NULLIF ( - 19, + 46 * 32 ) THEN NULL ELSE NULL END * - 76 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-848
SELECT DISTINCT + CASE + + 52 WHEN + + 97 + + 90 THEN - - 70 WHEN - ( - + 74 ) THEN CASE + 20 WHEN + 58 THEN - - 64 ELSE - - 88 - + + 34 END + + 69 + NULLIF ( + 12, - COUNT ( * ) * 90 ) * + 81 WHEN CASE + 43 WHEN - 17 THEN + 24 + - 83 * 61 WHEN 80 THEN NULL WHEN 9 THEN - ( COUNT ( * ) ) END + - ( - 56 ) THEN NULL WHEN NULLIF ( - 19, + 46 * 32 ) THEN NULL ELSE NULL END * - 76 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-849
SELECT + SUM( DISTINCT - - 93 ) + COUNT( ALL 80 ) * CAST( + 69 AS SIGNED ) * + ( 68 ) + CAST( COUNT( * ) AS SIGNED ) * 5 AS col2
----
4790

skipif mysql # not compatible
query I rowsort label-849
SELECT + SUM ( DISTINCT - - 93 ) + COUNT ( ALL 80 ) * CAST ( + 69 AS INTEGER ) * + ( 68 ) + CAST ( COUNT ( * ) AS INTEGER ) * 5 AS col2
----
4790

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-851
SELECT - MIN( DISTINCT 72 ) AS col2
----
-72

skipif mysql # not compatible
query I rowsort label-851
SELECT - MIN ( DISTINCT 72 ) AS col2
----
-72

query I rowsort
SELECT + ( - + 90 ) + + - 24
----
-114

onlyif mysql # aggregate syntax: 
query II rowsort label-853
SELECT + SUM( - - 1 ) * 33 AS col2, + 79 + + - 74
----
33
5

skipif mysql # not compatible
query II rowsort label-853
SELECT + SUM ( - - 1 ) * 33 AS col2, + 79 + + - 74
----
33
5

query I rowsort
SELECT - ( - + 45 ) * + - 21 AS col0
----
-945

query I rowsort
SELECT DISTINCT 85 * - + 13 AS col1
----
-1105

query I rowsort
SELECT DISTINCT 3 * + - 33 * 5 AS col1
----
-495

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

query I rowsort
SELECT DISTINCT 50 * + 47
----
2350

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-859
SELECT + COUNT( * ) + + - 29 * - 50 * 3 * - 73 - - 66 DIV + 90
----
-317549

skipif mysql # not compatible
query I rowsort label-859
SELECT + COUNT ( * ) + + - 29 * - 50 * 3 * - 73 - - 66 / + 90
----
-317549

query I rowsort
SELECT ALL + 96 + 74 col0
----
170

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-861
SELECT - COUNT( + 92 ) + 94 - + - 66 DIV - 15 AS col0
----
89

skipif mysql # not compatible
query I rowsort label-861
SELECT - COUNT ( + 92 ) + 94 - + - 66 / - 15 AS col0
----
89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-862
SELECT DISTINCT - 63 + + + 88 / - ( - - CAST( NULL AS SIGNED ) ) + - 90
----
NULL

skipif mysql # not compatible
query I rowsort label-862
SELECT DISTINCT - 63 + + + 88 / - ( - - CAST ( NULL AS INTEGER ) ) + - 90
----
NULL

query I rowsort
SELECT ALL + 5 + + - 0
----
5

query I rowsort
SELECT ALL - + 30 + - ( 6 ) * + + 71 AS col0
----
-456

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

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

query II rowsort
SELECT + 55 AS col1, - 53
----
55
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-867
SELECT ALL - MIN( ALL - ( 51 ) ) * + - AVG ( ALL - - 24 ) + CASE - + COUNT( * ) WHEN 73 THEN 73 - ( - 40 ) WHEN + 85 THEN 33 * + 61 - 94 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-867
SELECT ALL - MIN ( ALL - ( 51 ) ) * + - AVG ( ALL - - 24 ) + CASE - + COUNT ( * ) WHEN 73 THEN 73 - ( - 40 ) WHEN + 85 THEN 33 * + 61 - 94 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-868
SELECT DISTINCT + - SUM( 95 ) col2
----
-95

skipif mysql # not compatible
query I rowsort label-868
SELECT DISTINCT + - SUM ( 95 ) col2
----
-95

query II rowsort
SELECT ALL + - 28 * + 63 - - 96 AS col2, - 98
----
-1668
-98

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

skipif mysql # not compatible
query I rowsort label-870
SELECT - - COUNT ( * ) * + 13 / - 25
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-871
SELECT ALL + + SUM( - COALESCE ( 46, COALESCE ( 57, + 96 + + 22, - 60 + - 30 ) * + 11 + - + 61, + 38 * 60 - - 85 + - + 54 * - 85 * - 53 ) ) * + + 70 AS col1
----
-3220

skipif mysql # not compatible
query I rowsort label-871
SELECT ALL + + SUM ( - COALESCE ( 46, COALESCE ( 57, + 96 + + 22, - 60 + - 30 ) * + 11 + - + 61, + 38 * 60 - - 85 + - + 54 * - 85 * - 53 ) ) * + + 70 AS col1
----
-3220

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-872
SELECT - COUNT( * ) * + COALESCE ( 86, - 43 DIV + COUNT( * ) * 97 + - 30 + + 31, 86 * + - 86 ) * + - 60 * - - 78
----
402480

skipif mysql # not compatible
query I rowsort label-872
SELECT - COUNT ( * ) * + COALESCE ( 86, - 43 / + COUNT ( * ) * 97 + - 30 + + 31, 86 * + - 86 ) * + - 60 * - - 78
----
402480

onlyif mysql # aggregate syntax: 
query I rowsort label-873
SELECT ALL + NULLIF ( 13, + MAX( 19 ) ) AS col2
----
13

skipif mysql # not compatible
query I rowsort label-873
SELECT ALL + NULLIF ( 13, + MAX ( 19 ) ) AS col2
----
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-874
SELECT ALL - ( - - MIN( + + 19 ) ) * - COUNT( ALL 84 ) - - - ( + - CAST( - 13 AS SIGNED ) )
----
6

skipif mysql # not compatible
query I rowsort label-874
SELECT ALL - ( - - MIN ( + + 19 ) ) * - COUNT ( ALL 84 ) - - - ( + - CAST ( - 13 AS INTEGER ) )
----
6

query I rowsort
SELECT ALL - 74 * + ( 52 ) AS col2
----
-3848

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-876
SELECT - 74 DIV COUNT( * ) * + 22 AS col1
----
-1628

skipif mysql # not compatible
query I rowsort label-876
SELECT - 74 / COUNT ( * ) * + 22 AS col1
----
-1628

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-877
SELECT ( + SUM( + 29 ) ) * + 45 + + 16 * CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-877
SELECT ( + SUM ( + 29 ) ) * + 45 + + 16 * CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-878
SELECT SUM( ALL - 4 ) AS col0
----
-4

skipif mysql # not compatible
query I rowsort label-878
SELECT SUM ( ALL - 4 ) AS col0
----
-4

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-880
SELECT - SUM( DISTINCT - + 21 )
----
21

skipif mysql # not compatible
query I rowsort label-880
SELECT - SUM ( DISTINCT - + 21 )
----
21

query II rowsort
SELECT ALL 62 * + 87 AS col1, 56
----
5394
56

query I rowsort
SELECT + 44 * + 58
----
2552

query I rowsort
SELECT ALL + 11 * - + 12 AS col0
----
-132

onlyif mysql # aggregate syntax: 
query I rowsort label-884
SELECT DISTINCT COALESCE ( - COUNT( * ), 30 ) + - + 41
----
-42

skipif mysql # not compatible
query I rowsort label-884
SELECT DISTINCT COALESCE ( - COUNT ( * ), 30 ) + - + 41
----
-42

query II rowsort
SELECT ALL 2 + - 66, 48 AS col1
----
-64
48

onlyif mysql # aggregate syntax: 
query I rowsort label-886
SELECT DISTINCT COUNT( ALL - + 78 ) + - 7
----
-6

skipif mysql # not compatible
query I rowsort label-886
SELECT DISTINCT COUNT ( ALL - + 78 ) + - 7
----
-6

onlyif mysql # aggregate syntax: 
query II rowsort label-887
SELECT - ( + 88 ) + - 17 - 84 + + - COUNT( * ) AS col2, + 2
----
-190
2

skipif mysql # not compatible
query II rowsort label-887
SELECT - ( + 88 ) + - 17 - 84 + + - COUNT ( * ) AS col2, + 2
----
-190
2

query I rowsort
SELECT + 2 * 61 col1
----
122

onlyif mysql # DIV for integer division: 
query I rowsort label-889
SELECT DISTINCT + 34 + - 43 DIV - + 14 AS col0
----
37

skipif mysql # not compatible
query I rowsort label-889
SELECT DISTINCT + 34 + - 43 / - + 14 AS col0
----
37

query I rowsort
SELECT ALL + ( - 70 ) + - 73
----
-143

onlyif mysql # aggregate syntax: 
query I rowsort label-891
SELECT + - 79 * - COALESCE ( + - COUNT( - 36 ), - - SUM( - + 91 ) )
----
-79

skipif mysql # not compatible
query I rowsort label-891
SELECT + - 79 * - COALESCE ( + - COUNT ( - 36 ), - - SUM ( - + 91 ) )
----
-79

query I rowsort
SELECT DISTINCT 8 + - + 54 * 97 * 64 + 54 * - 24
----
-336520

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-893
SELECT ALL ( - - CAST( - + 64 AS SIGNED ) )
----
-64

skipif mysql # not compatible
query I rowsort label-893
SELECT ALL ( - - CAST ( - + 64 AS INTEGER ) )
----
-64

query I rowsort
SELECT - + 38 - - + 95
----
57

query I rowsort
SELECT - 93 * - 57 * 56 * 58 * 21 - - 10
----
361570618

onlyif mysql # aggregate syntax: 
query I rowsort label-896
SELECT 69 / 98 + CASE - AVG ( DISTINCT - + 2 ) WHEN + 85 / - - 33 + 10 + + + 36 + 80 THEN + - COUNT( * ) + + + CASE + 45 WHEN + 41 THEN NULL WHEN + 68 THEN CASE - MAX( 92 ) WHEN + 77 + - 50 * - 25 THEN - ( + 6 ) WHEN ( 83 ) * + 81 - - NULLIF ( + ( - 16 ), - 49 * COALESCE ( - 14 * 70, + 60 / 75 ) ) THEN 17 END + - 92 ELSE NULL END + MAX( DISTINCT 23 + - NULLIF ( 34, 2 ) ) END * + 75 + - 39 * NULLIF ( 90 + + 95 * 9, 92 + 82 )
----
NULL

skipif mysql # not compatible
query I rowsort label-896
SELECT 69 / 98 + CASE - AVG ( DISTINCT - + 2 ) WHEN + 85 / - - 33 + 10 + + + 36 + 80 THEN + - COUNT ( * ) + + + CASE + 45 WHEN + 41 THEN NULL WHEN + 68 THEN CASE - MAX ( 92 ) WHEN + 77 + - 50 * - 25 THEN - ( + 6 ) WHEN ( 83 ) * + 81 - - NULLIF ( + ( - 16 ), - 49 * COALESCE ( - 14 * 70, + 60 / 75 ) ) THEN 17 END + - 92 ELSE NULL END + MAX ( DISTINCT 23 + - NULLIF ( 34, 2 ) ) END * + 75 + - 39 * NULLIF ( 90 + + 95 * 9, 92 + 82 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-897
SELECT ALL + + 50 / - + CAST( NULL AS DECIMAL ) / + COUNT( * ) - 97 + + 46 + - ( 26 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-897
SELECT ALL + + 50 / - + CAST ( NULL AS REAL ) / + COUNT ( * ) - 97 + + 46 + - ( 26 ) AS col2
----
NULL

query I rowsort
SELECT + - 19 * + + 82 * + - 89 + + 29 AS col1
----
138691

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

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

query I rowsort
SELECT - + 88 * + 66 + + + 77 * - 14 AS col2
----
-6886

onlyif mysql # aggregate syntax: 
query I rowsort label-901
SELECT DISTINCT - MIN( + 52 )
----
-52

skipif mysql # not compatible
query I rowsort label-901
SELECT DISTINCT - MIN ( + 52 )
----
-52

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-903
SELECT 72 + CAST( NULL AS DECIMAL ) * + 78 * - + 0
----
NULL

skipif mysql # not compatible
query I rowsort label-903
SELECT 72 + CAST ( NULL AS REAL ) * + 78 * - + 0
----
NULL

query I rowsort
SELECT DISTINCT - 87 * - 99
----
8613

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-905
SELECT COUNT( * ) * + - NULLIF ( + 25, CAST( NULL AS SIGNED ) ) + + - ( - COALESCE ( + COALESCE ( + + COUNT( * ), + + 39 * 15, 78 ), - 73, - COUNT( * ) + + + COUNT( * ) ) ) + - + 33 AS col2
----
-57

skipif mysql # not compatible
query I rowsort label-905
SELECT COUNT ( * ) * + - NULLIF ( + 25, CAST ( NULL AS INTEGER ) ) + + - ( - COALESCE ( + COALESCE ( + + COUNT ( * ), + + 39 * 15, 78 ), - 73, - COUNT ( * ) + + + COUNT ( * ) ) ) + - + 33 AS col2
----
-57

query I rowsort
SELECT DISTINCT - NULLIF ( + 80, + + 86 * - - 34 + + 0 / + + 91 ) AS col0
----
-80

query I rowsort
SELECT ALL + 15 + - + 92
----
-77

query I rowsort
SELECT 71 + - + 62
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-909
SELECT 15 * + 79 * - CAST( 88 AS SIGNED ) + + 20 * + + 6 * 26 AS col2
----
-101160

skipif mysql # not compatible
query I rowsort label-909
SELECT 15 * + 79 * - CAST ( 88 AS INTEGER ) + + 20 * + + 6 * 26 AS col2
----
-101160

query II rowsort
SELECT ALL 25 AS col0, 22 * - 52
----
25
-1144

onlyif mysql # DIV for integer division: 
query I rowsort label-911
SELECT 87 DIV 86 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-911
SELECT 87 / 86 AS col0
----
1

query I rowsort
SELECT ALL - 70 + - 23 AS col1
----
-93

query I rowsort
SELECT 68 + + - 70 AS col2
----
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-914
SELECT 13 DIV + - 50
----
0

skipif mysql # not compatible
query I rowsort label-914
SELECT 13 / + - 50
----
0

query II rowsort
SELECT ALL 90 AS col1, + 57
----
90
57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-916
SELECT - - ( + CASE - COUNT( * ) WHEN + CASE + ( + 96 ) WHEN COUNT( * ) THEN NULLIF ( 90, - + COUNT( * ) ) DIV + - 6 DIV MAX( - 55 ) * + 52 ELSE + + 94 * 43 * + SUM( + 52 ) + - + ( - + COUNT( * ) ) + + AVG ( DISTINCT 31 ) * 0 END THEN - COUNT( 36 ) DIV COALESCE ( - 55, - CASE - COUNT( * ) WHEN MIN( DISTINCT 9 ) THEN NULL ELSE 4 END ) ELSE - 20 END ) AS col2
----
-20

skipif mysql # not compatible
query I rowsort label-916
SELECT - - ( + CASE - COUNT ( * ) WHEN + CASE + ( + 96 ) WHEN COUNT ( * ) THEN NULLIF ( 90, - + COUNT ( * ) ) / + - 6 / MAX ( - 55 ) * + 52 ELSE + + 94 * 43 * + SUM ( + 52 ) + - + ( - + COUNT ( * ) ) + + AVG ( DISTINCT 31 ) * 0 END THEN - COUNT ( 36 ) / COALESCE ( - 55, - CASE - COUNT ( * ) WHEN MIN ( DISTINCT 9 ) THEN NULL ELSE 4 END ) ELSE - 20 END ) AS col2
----
-20

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

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

query I rowsort
SELECT + 14 * - 77 + - 88
----
-1166

query I rowsort
SELECT - 23 + - 35 - + 95 - - 38 AS col1
----
-115

query I rowsort
SELECT DISTINCT + + 46 + - 44 AS col0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-921
SELECT 54 + + ( - SUM( DISTINCT ( 59 ) ) )
----
-5

skipif mysql # not compatible
query I rowsort label-921
SELECT 54 + + ( - SUM ( DISTINCT ( 59 ) ) )
----
-5

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-923
SELECT + 6, COUNT( * ) / + + 6 * + CASE + 51 WHEN 77 THEN + ( + CAST( NULL AS SIGNED ) ) + + ( + 97 ) + 30 - 16 * - + 45 * - 49 WHEN + 5 * - - MIN( - 26 ) / - - 82 - + 25 - ( - CAST( NULL AS SIGNED ) ) THEN NULL END AS col0
----
6
NULL

skipif mysql # not compatible
query II rowsort label-923
SELECT + 6, COUNT ( * ) / + + 6 * + CASE + 51 WHEN 77 THEN + ( + CAST ( NULL AS INTEGER ) ) + + ( + 97 ) + 30 - 16 * - + 45 * - 49 WHEN + 5 * - - MIN ( - 26 ) / - - 82 - + 25 - ( - CAST ( NULL AS INTEGER ) ) THEN NULL END AS col0
----
6
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-924
SELECT + SUM( DISTINCT - - 99 ) + + 54 * + 39 * + 16
----
33795

skipif mysql # not compatible
query I rowsort label-924
SELECT + SUM ( DISTINCT - - 99 ) + + 54 * + 39 * + 16
----
33795

onlyif mysql # aggregate syntax: 
query I rowsort label-925
SELECT DISTINCT MAX( - 56 )
----
-56

skipif mysql # not compatible
query I rowsort label-925
SELECT DISTINCT MAX ( - 56 )
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-926
SELECT COUNT( ALL - 36 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-926
SELECT COUNT ( ALL - 36 ) AS col2
----
1

query I rowsort
SELECT + 91 * + 24
----
2184

onlyif mysql # aggregate syntax: 
query I rowsort label-928
SELECT - ( + NULLIF ( - 87, ( + - 99 ) / - 82 + 60 + 74 * MAX( + - 63 ) + + 84 ) )
----
87

skipif mysql # not compatible
query I rowsort label-928
SELECT - ( + NULLIF ( - 87, ( + - 99 ) / - 82 + 60 + 74 * MAX ( + - 63 ) + + 84 ) )
----
87

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-929
SELECT DISTINCT COUNT( ALL + + 15 ) * - 64 col2, 16 DIV 78
----
-64
0

skipif mysql # not compatible
query II rowsort label-929
SELECT DISTINCT COUNT ( ALL + + 15 ) * - 64 col2, 16 / 78
----
-64
0

query I rowsort
SELECT + 57 * - - 40 AS col0
----
2280

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-931
SELECT DISTINCT - ( CAST( 44 AS SIGNED ) ) AS col0
----
-44

skipif mysql # not compatible
query I rowsort label-931
SELECT DISTINCT - ( CAST ( 44 AS INTEGER ) ) AS col0
----
-44

query I rowsort
SELECT DISTINCT - 35 * - 43 AS col2
----
1505

onlyif mysql # aggregate syntax: 
query II rowsort label-933
SELECT 86 AS col2, - ( + MIN( DISTINCT 21 ) ) * + - 17 + - 35
----
86
322

skipif mysql # not compatible
query II rowsort label-933
SELECT 86 AS col2, - ( + MIN ( DISTINCT 21 ) ) * + - 17 + - 35
----
86
322

query I rowsort
SELECT ALL 93 * + 6 * + + 80
----
44640

query II rowsort
SELECT 2, 70 col0
----
2
70

query II rowsort
SELECT 73, - 24 AS col0
----
73
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-937
SELECT MAX( 47 ) / ( - CASE + - ( - + 93 ) WHEN - 83 THEN - COUNT( * ) END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-937
SELECT MAX ( 47 ) / ( - CASE + - ( - + 93 ) WHEN - 83 THEN - COUNT ( * ) END ) AS col0
----
NULL

query I rowsort
SELECT 91 * 33
----
3003

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

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

query II rowsort
SELECT DISTINCT - 10 AS col0, 30 AS col0
----
-10
30

query I rowsort
SELECT ( 17 ) * 63 AS col1
----
1071

query I rowsort
SELECT ALL + 11 * + + 18 AS col0
----
198

query II rowsort
SELECT 2 AS col2, 26
----
2
26

query I rowsort
SELECT DISTINCT 27 + - 32 + + 25
----
20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-945
SELECT ALL 85 + - + 68 * - - CASE - - 82 WHEN + 46 + - 1 / - 46 * 24 THEN NULL WHEN ( - CASE - - 85 WHEN + + CAST( 2 AS SIGNED ) THEN + 59 ELSE NULL END ) THEN + + 8 - 11 + - + 99 * + - 37 ELSE NULL END + + SUM( + - 25 )
----
NULL

skipif mysql # not compatible
query I rowsort label-945
SELECT ALL 85 + - + 68 * - - CASE - - 82 WHEN + 46 + - 1 / - 46 * 24 THEN NULL WHEN ( - CASE - - 85 WHEN + + CAST ( 2 AS INTEGER ) THEN + 59 ELSE NULL END ) THEN + + 8 - 11 + - + 99 * + - 37 ELSE NULL END + + SUM ( + - 25 )
----
NULL

query II rowsort
SELECT 10, 22 AS col2
----
10
22

query I rowsort
SELECT ( + 14 ) + + 78
----
92

query I rowsort
SELECT ALL - COALESCE ( - 5, + 94 ) AS col2
----
5

query II rowsort
SELECT 89 col2, - 76
----
89
-76

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

query II rowsort
SELECT - 36, 16 AS col0
----
-36
16

onlyif mysql # aggregate syntax: 
query I rowsort label-952
SELECT DISTINCT 84 + - 58 + COUNT( * ) * - 7 * + 86 + - 52 - - + ( + - 22 ) * - COUNT( ALL 84 ) AS col2
----
-606

skipif mysql # not compatible
query I rowsort label-952
SELECT DISTINCT 84 + - 58 + COUNT ( * ) * - 7 * + 86 + - 52 - - + ( + - 22 ) * - COUNT ( ALL 84 ) AS col2
----
-606

query I rowsort
SELECT ALL - 84 + - + 16
----
-100

onlyif mysql # aggregate syntax: 
query I rowsort label-954
SELECT 79 * + - COUNT( * ) + + + 25 - + + 41 * - - 32 + 91 + + MIN( ALL 8 )
----
-1267

skipif mysql # not compatible
query I rowsort label-954
SELECT 79 * + - COUNT ( * ) + + + 25 - + + 41 * - - 32 + 91 + + MIN ( ALL 8 )
----
-1267

query I rowsort
SELECT ALL 81 * - + 97 * CASE + 94 WHEN - 29 THEN - 79 WHEN + 29 THEN - 28 + - 31 END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-956
SELECT 38 + + + COUNT( * ) + + ( + 94 ) * - 69 + - 90 - 60 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-956
SELECT 38 + + + COUNT ( * ) + + ( + 94 ) * - 69 + - 90 - 60 + - CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT ALL 11, ( - - 15 ) AS col2
----
11
15

onlyif mysql # aggregate syntax: 
query II rowsort label-958
SELECT NULLIF ( - 25, - 71 ) * SUM( + 91 ) * ( + 25 ), + 44 AS col0
----
-56875
44

skipif mysql # not compatible
query II rowsort label-958
SELECT NULLIF ( - 25, - 71 ) * SUM ( + 91 ) * ( + 25 ), + 44 AS col0
----
-56875
44

query I rowsort
SELECT 17 + - - 1 * - + 89 AS col1
----
-72

query II rowsort
SELECT - + 61 AS col2, - 15 AS col0
----
-61
-15

query I rowsort
SELECT ( + 37 ) + - + 59 * 37 * + 96
----
-209531

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

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

query I rowsort
SELECT 25 - - 22 - 65 AS col2
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-964
SELECT - SUM( 25 ) AS col0
----
-25

skipif mysql # not compatible
query I rowsort label-964
SELECT - SUM ( 25 ) AS col0
----
-25

query I rowsort
SELECT 86 + + - 16 col0
----
70

query I rowsort
SELECT - - 86 * + - 71
----
-6106

onlyif mysql # aggregate syntax: 
query I rowsort label-967
SELECT + SUM( ALL - 4 ) AS col2
----
-4

skipif mysql # not compatible
query I rowsort label-967
SELECT + SUM ( ALL - 4 ) AS col2
----
-4

query I rowsort
SELECT ALL - - 64 * + 39 AS col0
----
2496

query I rowsort
SELECT - - 0 + + 55
----
55

query I rowsort
SELECT + ( + ( - - 39 ) ) col2
----
39

onlyif mysql # DIV for integer division: 
query I rowsort label-971
SELECT - - 50 DIV + 61 + - 25
----
-25

skipif mysql # not compatible
query I rowsort label-971
SELECT - - 50 / + 61 + - 25
----
-25

query I rowsort
SELECT + ( - - 32 ) - - ( + 27 ) * 59 * + 43 AS col0
----
68531

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-973
SELECT COALESCE ( - - 99, MIN( + - 55 ) + + + 35 DIV MIN( - + 53 ) ) AS col0, 70 + - 20 AS col1
----
99
50

skipif mysql # not compatible
query II rowsort label-973
SELECT COALESCE ( - - 99, MIN ( + - 55 ) + + + 35 / MIN ( - + 53 ) ) AS col0, 70 + - 20 AS col1
----
99
50

query I rowsort
SELECT + 51 + - 15 AS col2
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-975
SELECT DISTINCT COUNT( - - 84 ) * 24 + 69 AS col0
----
93

skipif mysql # not compatible
query I rowsort label-975
SELECT DISTINCT COUNT ( - - 84 ) * 24 + 69 AS col0
----
93

query I rowsort
SELECT + COALESCE ( + - ( + + 93 ), - 0 )
----
-93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-977
SELECT CASE 56 WHEN 58 + - 51 / 83 THEN + 91 + - + 13 WHEN CAST( NULL AS SIGNED ) THEN NULL WHEN + - CAST( + - ( - 62 ) AS SIGNED ) * - - 72 THEN + ( + 77 ) * + 80 / ( - MIN( + 5 ) ) END, + 31 AS col0
----
NULL
31

skipif mysql # not compatible
query II rowsort label-977
SELECT CASE 56 WHEN 58 + - 51 / 83 THEN + 91 + - + 13 WHEN CAST ( NULL AS INTEGER ) THEN NULL WHEN + - CAST ( + - ( - 62 ) AS INTEGER ) * - - 72 THEN + ( + 77 ) * + 80 / ( - MIN ( + 5 ) ) END, + 31 AS col0
----
NULL
31

query I rowsort
SELECT + 74 + - 27
----
47

onlyif mysql # DIV for integer division: 
query I rowsort label-979
SELECT + ( + + 82 ) DIV ( + + 84 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-979
SELECT + ( + + 82 ) / ( + + 84 ) AS col2
----
0

query I rowsort
SELECT - 8 * + 79 + - ( + - NULLIF ( + + 85, 4 ) ) - + 39
----
-586

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-981
SELECT + ( + + COUNT( * ) ) * + CASE COALESCE ( - 73, - + 86 + + + 29 * CAST( + - 25 AS SIGNED ) ) WHEN - + 2 THEN - COUNT( * ) - - ( - 32 ) + - 38 / - + 74 + 40 + - 78 / - - CAST( NULL AS SIGNED ) END + 35 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-981
SELECT + ( + + COUNT ( * ) ) * + CASE COALESCE ( - 73, - + 86 + + + 29 * CAST ( + - 25 AS INTEGER ) ) WHEN - + 2 THEN - COUNT ( * ) - - ( - 32 ) + - 38 / - + 74 + 40 + - 78 / - - CAST ( NULL AS INTEGER ) END + 35 AS col0
----
NULL

query I rowsort
SELECT ALL - 33 * - - 29 - - + 56 AS col2
----
-901

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-983
SELECT ALL + 80 / - - 63 / CAST( NULL AS SIGNED ) * + 12 * - - 52, + 36 * - 20 + - COUNT( * ) AS col0
----
NULL
-721

skipif mysql # not compatible
query II rowsort label-983
SELECT ALL + 80 / - - 63 / CAST ( NULL AS INTEGER ) * + 12 * - - 52, + 36 * - 20 + - COUNT ( * ) AS col0
----
NULL
-721

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-984
SELECT + - 47 - + - COUNT( * ) - + - COALESCE ( + COUNT( 41 ), NULLIF ( + SUM( + + 71 ), + 93 ) ) + - 4 DIV + 81 * + - ( - 74 )
----
-45

skipif mysql # not compatible
query I rowsort label-984
SELECT + - 47 - + - COUNT ( * ) - + - COALESCE ( + COUNT ( 41 ), NULLIF ( + SUM ( + + 71 ), + 93 ) ) + - 4 / + 81 * + - ( - 74 )
----
-45

onlyif mysql # DIV for integer division: 
query II rowsort label-985
SELECT - - 42 DIV - 43 AS col1, 96 + + 76
----
0
172

skipif mysql # not compatible
query II rowsort label-985
SELECT - - 42 / - 43 AS col1, 96 + + 76
----
0
172

query I rowsort
SELECT ALL ( 22 ) * - 37 AS col0
----
-814

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-987
SELECT DISTINCT COALESCE ( - 7, 71, - 36, 23 + - 18 + - 40 - + 58 * - CAST( - 29 AS SIGNED ) ) AS col0
----
-7

skipif mysql # not compatible
query I rowsort label-987
SELECT DISTINCT COALESCE ( - 7, 71, - 36, 23 + - 18 + - 40 - + 58 * - CAST ( - 29 AS INTEGER ) ) AS col0
----
-7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-988
SELECT ALL + + 41 * + COUNT( * ) + + 78 + + 63 + + COALESCE ( 60, - + COUNT( * ), - 14 + + 91 * 2 ) DIV + ( 64 )
----
182

skipif mysql # not compatible
query I rowsort label-988
SELECT ALL + + 41 * + COUNT ( * ) + + 78 + + 63 + + COALESCE ( 60, - + COUNT ( * ), - 14 + + 91 * 2 ) / + ( 64 )
----
182

onlyif mysql # aggregate syntax: 
query II rowsort label-989
SELECT + 12 * COUNT( * ), + 40 * + 79 AS col1
----
12
3160

skipif mysql # not compatible
query II rowsort label-989
SELECT + 12 * COUNT ( * ), + 40 * + 79 AS col1
----
12
3160

query I rowsort
SELECT - - 90 + 24 AS col2
----
114

query I rowsort
SELECT DISTINCT 0 * + + 46 col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-992
SELECT - - 40 * + 91 AS col1, + CAST( NULL AS SIGNED )
----
3640
NULL

skipif mysql # not compatible
query II rowsort label-992
SELECT - - 40 * + 91 AS col1, + CAST ( NULL AS INTEGER )
----
3640
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-994
SELECT + CASE - + 46 WHEN - + 14 + - COALESCE ( 26, + COUNT( * ) ) THEN NULL WHEN MIN( ALL - 51 ) THEN 32 + + + 82 + - 71 ELSE - - CASE - 71 WHEN - 85 * - 84 THEN ( + MIN( 31 ) ) ELSE - 86 * 64 * MAX( - - 50 ) + SUM( ALL 56 + 30 ) END END
----
-275114

skipif mysql # not compatible
query I rowsort label-994
SELECT + CASE - + 46 WHEN - + 14 + - COALESCE ( 26, + COUNT ( * ) ) THEN NULL WHEN MIN ( ALL - 51 ) THEN 32 + + + 82 + - 71 ELSE - - CASE - 71 WHEN - 85 * - 84 THEN ( + MIN ( 31 ) ) ELSE - 86 * 64 * MAX ( - - 50 ) + SUM ( ALL 56 + 30 ) END END
----
-275114

onlyif mysql # aggregate syntax: 
query I rowsort label-995
SELECT - 71 + + COUNT( * ) AS col2
----
-70

skipif mysql # not compatible
query I rowsort label-995
SELECT - 71 + + COUNT ( * ) AS col2
----
-70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-996
SELECT ALL + MIN( - - 13 ) DIV - 16 * - - 64 - 7 * + COUNT( + 40 ) + COUNT( * ) DIV - + 62
----
-7

skipif mysql # not compatible
query I rowsort label-996
SELECT ALL + MIN ( - - 13 ) / - 16 * - - 64 - 7 * + COUNT ( + 40 ) + COUNT ( * ) / - + 62
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-997
SELECT - SUM( - 76 ) + - 37
----
39

skipif mysql # not compatible
query I rowsort label-997
SELECT - SUM ( - 76 ) + - 37
----
39

query I rowsort
SELECT ALL - 83 + - 46 + - 0 * - 51 AS col2
----
-129

query II rowsort
SELECT - 45 AS col2, 77 * + 15 AS col2
----
-45
1155

onlyif mysql # aggregate syntax: 
query I rowsort label-1000
SELECT DISTINCT COALESCE ( 82, ( - COUNT( * ) ) ) col0
----
82

skipif mysql # not compatible
query I rowsort label-1000
SELECT DISTINCT COALESCE ( 82, ( - COUNT ( * ) ) ) col0
----
82

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1001
SELECT ALL + 56 DIV - COUNT( * ) AS col0
----
-56

skipif mysql # not compatible
query I rowsort label-1001
SELECT ALL + 56 / - COUNT ( * ) AS col0
----
-56

query I rowsort
SELECT - 28 * + 69 col2
----
-1932

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1003
SELECT - NULLIF ( + + 27, + - CASE 82 WHEN - + 42 + 6 THEN NULL WHEN - - NULLIF ( - - 1, NULLIF ( - 29, 76 ) + 39 ) * - 17 THEN + 78 * + 8 - + 29 + + 99 * - + 21 + - CASE COALESCE ( CASE 86 WHEN - 16 * AVG ( DISTINCT 79 ) THEN NULL WHEN - 67 THEN 53 END, 86, CAST( NULL AS DECIMAL ), 2 ) WHEN 35 THEN NULL WHEN + 85 + ( 0 + 33 ) THEN 98 * ( 46 ) ELSE CASE COUNT( * ) WHEN 84 - + 54 THEN - 81 ELSE + 53 END END END ) * - ( - 7 ) AS col2
----
-189

skipif mysql # not compatible
query I rowsort label-1003
SELECT - NULLIF ( + + 27, + - CASE 82 WHEN - + 42 + 6 THEN NULL WHEN - - NULLIF ( - - 1, NULLIF ( - 29, 76 ) + 39 ) * - 17 THEN + 78 * + 8 - + 29 + + 99 * - + 21 + - CASE COALESCE ( CASE 86 WHEN - 16 * AVG ( DISTINCT 79 ) THEN NULL WHEN - 67 THEN 53 END, 86, CAST ( NULL AS REAL ), 2 ) WHEN 35 THEN NULL WHEN + 85 + ( 0 + 33 ) THEN 98 * ( 46 ) ELSE CASE COUNT ( * ) WHEN 84 - + 54 THEN - 81 ELSE + 53 END END END ) * - ( - 7 ) AS col2
----
-189

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1004
SELECT CASE - ( - + 9 ) WHEN + - 34 THEN NULL ELSE - + 85 END DIV + - COUNT( * ) - COUNT( * )
----
84

skipif mysql # not compatible
query I rowsort label-1004
SELECT CASE - ( - + 9 ) WHEN + - 34 THEN NULL ELSE - + 85 END / + - COUNT ( * ) - COUNT ( * )
----
84

query II rowsort
SELECT - 98 * 36 * - - 97, - 45 AS col0
----
-342216
-45

query I rowsort
SELECT + 74 * - - 22
----
1628

query I rowsort
SELECT ALL - 89 * 35 - 66 - + + 33 + 87 AS col1
----
-3127

onlyif mysql # DIV for integer division: 
query II rowsort label-1008
SELECT ALL + 35, + 96 DIV - 48 AS col2
----
35
-2

skipif mysql # not compatible
query II rowsort label-1008
SELECT ALL + 35, + 96 / - 48 AS col2
----
35
-2

query I rowsort
SELECT + 14 - - 88
----
102

query I rowsort
SELECT + NULLIF ( - 45, - - 38 )
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-1011
SELECT ALL + 12 * 41 - - COUNT( * ) + - 77 * - 94 * - 2 + - ( - 70 ) - - + 1 * + 67 + - 74
----
-13920

skipif mysql # not compatible
query I rowsort label-1011
SELECT ALL + 12 * 41 - - COUNT ( * ) + - 77 * - 94 * - 2 + - ( - 70 ) - - + 1 * + 67 + - 74
----
-13920

query I rowsort
SELECT + 8 * ( - ( + - 85 ) ) AS col0
----
680

onlyif mysql # DIV for integer division: 
query II rowsort label-1013
SELECT + - 39 AS col2, + 53 DIV + - 89 AS col1
----
-39
0

skipif mysql # not compatible
query II rowsort label-1013
SELECT + - 39 AS col2, + 53 / + - 89 AS col1
----
-39
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1014
SELECT - 60 + CAST( NULL AS SIGNED ) - + - 23 * - 11 * - 83
----
NULL

skipif mysql # not compatible
query I rowsort label-1014
SELECT - 60 + CAST ( NULL AS INTEGER ) - + - 23 * - 11 * - 83
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1015
SELECT - - CAST( + COUNT( * ) AS SIGNED ) * + - 53 - + 90 + - 5
----
-148

skipif mysql # not compatible
query I rowsort label-1015
SELECT - - CAST ( + COUNT ( * ) AS INTEGER ) * + - 53 - + 90 + - 5
----
-148

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1016
SELECT + + ( - 45 ) * + COUNT( * ), - CAST( NULL AS SIGNED ) * + COUNT( * ) col1
----
-45
NULL

skipif mysql # not compatible
query II rowsort label-1016
SELECT + + ( - 45 ) * + COUNT ( * ), - CAST ( NULL AS INTEGER ) * + COUNT ( * ) col1
----
-45
NULL

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1018
SELECT + 10 + 32 + - - 51 col0, 23 DIV - 8
----
93
-2

skipif mysql # not compatible
query II rowsort label-1018
SELECT + 10 + 32 + - - 51 col0, 23 / - 8
----
93
-2

query I rowsort
SELECT DISTINCT - 91 + - + ( + 38 ) AS col2
----
-129

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1020
SELECT 87 + MAX( DISTINCT - CAST( - - 99 AS SIGNED ) ) * + - 53
----
5334

skipif mysql # not compatible
query I rowsort label-1020
SELECT 87 + MAX ( DISTINCT - CAST ( - - 99 AS INTEGER ) ) * + - 53
----
5334

onlyif mysql # aggregate syntax: 
query I rowsort label-1021
SELECT ALL COALESCE ( + 44, + SUM( - 59 ) ) + + + 53
----
97

skipif mysql # not compatible
query I rowsort label-1021
SELECT ALL COALESCE ( + 44, + SUM ( - 59 ) ) + + + 53
----
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1022
SELECT - 85 * + CASE - 60 WHEN 46 THEN - CAST( - 29 AS SIGNED ) ELSE - 61 END AS col2
----
5185

skipif mysql # not compatible
query I rowsort label-1022
SELECT - 85 * + CASE - 60 WHEN 46 THEN - CAST ( - 29 AS INTEGER ) ELSE - 61 END AS col2
----
5185

onlyif mysql # aggregate syntax: 
query I rowsort label-1023
SELECT ALL - 98 + + MAX( ALL - + 61 ) + SUM( ALL - 94 ) AS col0
----
-253

skipif mysql # not compatible
query I rowsort label-1023
SELECT ALL - 98 + + MAX ( ALL - + 61 ) + SUM ( ALL - 94 ) AS col0
----
-253

query I rowsort
SELECT DISTINCT 75 + 1
----
76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1025
SELECT 81 * MIN( CAST( NULL AS SIGNED ) ) * + 76 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1025
SELECT 81 * MIN ( CAST ( NULL AS INTEGER ) ) * + 76 AS col1
----
NULL

query II rowsort
SELECT ALL 10 + + 26 AS col1, - 34
----
36
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-1027
SELECT CASE - 68 WHEN + COUNT( * ) THEN - 12 END + + 33 * - 66 + - 69 / + 51 * 57
----
NULL

skipif mysql # not compatible
query I rowsort label-1027
SELECT CASE - 68 WHEN + COUNT ( * ) THEN - 12 END + + 33 * - 66 + - 69 / + 51 * 57
----
NULL

query I rowsort
SELECT 97 - + + 80 AS col2
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-1029
SELECT 52 * - + 32 - + + COUNT( * ) AS col2
----
-1665

skipif mysql # not compatible
query I rowsort label-1029
SELECT 52 * - + 32 - + + COUNT ( * ) AS col2
----
-1665

onlyif mysql # aggregate syntax: 
query I rowsort label-1030
SELECT ( - + ( 9 ) ) + - COUNT( DISTINCT 72 ) AS col1
----
-10

skipif mysql # not compatible
query I rowsort label-1030
SELECT ( - + ( 9 ) ) + - COUNT ( DISTINCT 72 ) AS col1
----
-10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1031
SELECT 90 * 98 AS col1, + CAST( 88 AS SIGNED ) + CAST( COUNT( * ) AS SIGNED ) * - 73
----
8820
15

skipif mysql # not compatible
query II rowsort label-1031
SELECT 90 * 98 AS col1, + CAST ( 88 AS INTEGER ) + CAST ( COUNT ( * ) AS INTEGER ) * - 73
----
8820
15

query I rowsort
SELECT 96 + + 43
----
139

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1033
SELECT DISTINCT - 7 DIV + ( - ( + SUM( - COALESCE ( - - 31, - 48 ) ) ) ), - 81 * + 61 AS col2
----
0
-4941

skipif mysql # not compatible
query II rowsort label-1033
SELECT DISTINCT - 7 / + ( - ( + SUM ( - COALESCE ( - - 31, - 48 ) ) ) ), - 81 * + 61 AS col2
----
0
-4941

onlyif mysql # aggregate syntax: 
query I rowsort label-1034
SELECT DISTINCT + COUNT( * ) * + COALESCE ( + 69, CASE - + ( + - COUNT( 7 ) ) WHEN + MIN( - - 30 ) THEN NULL WHEN - 14 * - 69 THEN - + ( COUNT( * ) ) * - 96 END )
----
69

skipif mysql # not compatible
query I rowsort label-1034
SELECT DISTINCT + COUNT ( * ) * + COALESCE ( + 69, CASE - + ( + - COUNT ( 7 ) ) WHEN + MIN ( - - 30 ) THEN NULL WHEN - 14 * - 69 THEN - + ( COUNT ( * ) ) * - 96 END )
----
69

query I rowsort
SELECT ALL + ( - - 54 ) * 94 AS col2
----
5076

onlyif mysql # aggregate syntax: 
query I rowsort label-1036
SELECT ALL - - CASE - - COUNT( * ) WHEN - 79 THEN NULL WHEN - + 90 THEN - - 93 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1036
SELECT ALL - - CASE - - COUNT ( * ) WHEN - 79 THEN NULL WHEN - + 90 THEN - - 93 ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1037
SELECT + ( - 89 ) + + MAX( ALL + 19 ) + 21 DIV - + 85 * - 69 AS col1
----
-70

skipif mysql # not compatible
query I rowsort label-1037
SELECT + ( - 89 ) + + MAX ( ALL + 19 ) + 21 / - + 85 * - 69 AS col1
----
-70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1038
SELECT + 58 * - MIN( DISTINCT 72 ) + - 4 + 97 DIV 22 * - - 40
----
-4020

skipif mysql # not compatible
query I rowsort label-1038
SELECT + 58 * - MIN ( DISTINCT 72 ) + - 4 + 97 / 22 * - - 40
----
-4020

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

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

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

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

query I rowsort
SELECT DISTINCT - 1 + - 53 AS col1
----
-54

query I rowsort
SELECT DISTINCT - 62 + 47 AS col0
----
-15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1043
SELECT ALL - 18 * - - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1043
SELECT ALL - 18 * - - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT 2 + 6
----
8

query I rowsort
SELECT - + COALESCE ( + + 99, - + 5 ) AS col0
----
-99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1046
SELECT CAST( - 76 AS SIGNED ) + + ( + - ( + COUNT( * ) ) ) - - 54 + + - 29
----
-52

skipif mysql # not compatible
query I rowsort label-1046
SELECT CAST ( - 76 AS INTEGER ) + + ( + - ( + COUNT ( * ) ) ) - - 54 + + - 29
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-1047
SELECT DISTINCT COUNT( * ) + - - COUNT( - 5 ) col1
----
2

skipif mysql # not compatible
query I rowsort label-1047
SELECT DISTINCT COUNT ( * ) + - - COUNT ( - 5 ) col1
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1048
SELECT DISTINCT 28 DIV - COUNT( * ) AS col1
----
-28

skipif mysql # not compatible
query I rowsort label-1048
SELECT DISTINCT 28 / - COUNT ( * ) AS col1
----
-28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1049
SELECT CASE + + 50 WHEN 80 * 3 - + + 71 THEN NULL WHEN - 31 * 71 * + MIN( + 51 ) - - + COUNT( * ) + - CASE + 63 WHEN - CAST( NULL AS SIGNED ) + - + CASE - COUNT( + 35 ) WHEN - 12 * 79 + + + 90 + COALESCE ( - - 40, 94 + 55 * 86 / + 19, 45 ) + 86 THEN NULL WHEN + COUNT( * ) + - 56 THEN - 17 WHEN - 22 THEN NULL END THEN - 79 / 13 END * - NULLIF ( CAST( NULL AS SIGNED ), 75 + 15 * + 87 ) THEN - 18 END * 36
----
NULL

skipif mysql # not compatible
query I rowsort label-1049
SELECT CASE + + 50 WHEN 80 * 3 - + + 71 THEN NULL WHEN - 31 * 71 * + MIN ( + 51 ) - - + COUNT ( * ) + - CASE + 63 WHEN - CAST ( NULL AS INTEGER ) + - + CASE - COUNT ( + 35 ) WHEN - 12 * 79 + + + 90 + COALESCE ( - - 40, 94 + 55 * 86 / + 19, 45 ) + 86 THEN NULL WHEN + COUNT ( * ) + - 56 THEN - 17 WHEN - 22 THEN NULL END THEN - 79 / 13 END * - NULLIF ( CAST ( NULL AS INTEGER ), 75 + 15 * + 87 ) THEN - 18 END * 36
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1050
SELECT COALESCE ( 85, - 27, + 89 - - - ( - 93 ) + + - 79 * CAST( - 7 AS SIGNED ) + - 3 + - 92 * - MAX( DISTINCT - 30 ) + 47 ) * + + 23 AS col2
----
1955

skipif mysql # not compatible
query I rowsort label-1050
SELECT COALESCE ( 85, - 27, + 89 - - - ( - 93 ) + + - 79 * CAST ( - 7 AS INTEGER ) + - 3 + - 92 * - MAX ( DISTINCT - 30 ) + 47 ) * + + 23 AS col2
----
1955

onlyif mysql # DIV for integer division: 
query I rowsort label-1051
SELECT ALL 63 DIV + - 42
----
-1

skipif mysql # not compatible
query I rowsort label-1051
SELECT ALL 63 / + - 42
----
-1

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

skipif mysql # not compatible
query I rowsort label-1052
SELECT 16 + - CAST ( NULL AS INTEGER ) - - - 9 AS col0
----
NULL

query I rowsort
SELECT ALL 56 - - - 65
----
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1054
SELECT 87 * + CASE + - 54 WHEN + 90 * + + NULLIF ( + COUNT( DISTINCT + 94 ), - MIN( 27 ) * + + COUNT( - CAST( NULL AS SIGNED ) ) + 80 ) THEN - + 65 * + + COUNT( + 0 ) - - + 47 + + - COUNT( + CASE - + 30 WHEN - + ( 42 ) THEN + 95 ELSE NULL END ) ELSE - + ( + 21 ) END col2
----
-1827

skipif mysql # not compatible
query I rowsort label-1054
SELECT 87 * + CASE + - 54 WHEN + 90 * + + NULLIF ( + COUNT ( DISTINCT + 94 ), - MIN ( 27 ) * + + COUNT ( - CAST ( NULL AS INTEGER ) ) + 80 ) THEN - + 65 * + + COUNT ( + 0 ) - - + 47 + + - COUNT ( + CASE - + 30 WHEN - + ( 42 ) THEN + 95 ELSE NULL END ) ELSE - + ( + 21 ) END col2
----
-1827

onlyif mysql # aggregate syntax: 
query I rowsort label-1055
SELECT - COUNT( - 57 )
----
-1

skipif mysql # not compatible
query I rowsort label-1055
SELECT - COUNT ( - 57 )
----
-1

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

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

query I rowsort
SELECT 0 * + 92 AS col2
----
0

query I rowsort
SELECT ALL 20 * + 54
----
1080

query I rowsort
SELECT ALL - CASE - + 88 WHEN 28 THEN - 21 * + 11 / + + 25 * + 47 WHEN + 44 * + + 46 * 78 THEN 51 END
----
NULL

query I rowsort
SELECT 89 * + - 26 col2
----
-2314

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1061
SELECT 25 * - + CAST( - 94 AS SIGNED ) * - 97
----
-227950

skipif mysql # not compatible
query I rowsort label-1061
SELECT 25 * - + CAST ( - 94 AS INTEGER ) * - 97
----
-227950

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

skipif mysql # not compatible
query I rowsort label-1062
SELECT 96 - 0 * + COUNT ( * ) + + 82 AS col1
----
178

onlyif mysql # aggregate syntax: 
query I rowsort label-1063
SELECT COUNT( 4 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-1063
SELECT COUNT ( 4 ) AS col0
----
1

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1065
SELECT ALL - 74 DIV 6 * - ( + + 95 )
----
1140

skipif mysql # not compatible
query I rowsort label-1065
SELECT ALL - 74 / 6 * - ( + + 95 )
----
1140

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1066
SELECT + COALESCE ( 24, + CAST( 57 AS SIGNED ), + - 26 + - - 64 )
----
24

skipif mysql # not compatible
query I rowsort label-1066
SELECT + COALESCE ( 24, + CAST ( 57 AS INTEGER ), + - 26 + - - 64 )
----
24

query I rowsort
SELECT - ( + - NULLIF ( - 43, - 32 * 99 * - + 27 ) ) * 40 + + - 7 - + - 51 AS col2
----
-1676

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1068
SELECT - 78 - CASE - - COUNT( * ) WHEN + 95 + 59 * CAST( - 3 AS SIGNED ) THEN + 69 - + - 99 WHEN - 42 THEN NULL ELSE + + 36 END AS col2
----
-114

skipif mysql # not compatible
query I rowsort label-1068
SELECT - 78 - CASE - - COUNT ( * ) WHEN + 95 + 59 * CAST ( - 3 AS INTEGER ) THEN + 69 - + - 99 WHEN - 42 THEN NULL ELSE + + 36 END AS col2
----
-114

query I rowsort
SELECT ALL 48 * 93 AS col1
----
4464

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1070
SELECT - + CAST( NULL AS SIGNED ) / - 72
----
NULL

skipif mysql # not compatible
query I rowsort label-1070
SELECT - + CAST ( NULL AS INTEGER ) / - 72
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1071
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - 38 * - 52 + + ( - - COUNT( * ) ) / + 91 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1071
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - 38 * - 52 + + ( - - COUNT ( * ) ) / + 91 AS col1
----
NULL

query I rowsort
SELECT ALL - ( + - 59 ) + 52
----
111

onlyif mysql # aggregate syntax: 
query I rowsort label-1073
SELECT - 34 * - 90 * + 34 * + 46 - + MAX( + 61 ) + - 53 + - + 75 - + - SUM( + 19 )
----
4785670

skipif mysql # not compatible
query I rowsort label-1073
SELECT - 34 * - 90 * + 34 * + 46 - + MAX ( + 61 ) + - 53 + - + 75 - + - SUM ( + 19 )
----
4785670

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1074
SELECT 78 * 60 + - 25 / 28 - + - 42 - + ( - - CAST( NULL AS SIGNED ) ) * 8 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1074
SELECT 78 * 60 + - 25 / 28 - + - 42 - + ( - - CAST ( NULL AS INTEGER ) ) * 8 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1075
SELECT - 37 * - - 62 + - + ( + 4 ) + - + 77 col2, COALESCE ( - - 75, + - 56, 64 + + - 88 ) * + CAST( - 69 AS SIGNED )
----
-2375
-5175

skipif mysql # not compatible
query II rowsort label-1075
SELECT - 37 * - - 62 + - + ( + 4 ) + - + 77 col2, COALESCE ( - - 75, + - 56, 64 + + - 88 ) * + CAST ( - 69 AS INTEGER )
----
-2375
-5175

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1077
SELECT DISTINCT + 70 + + 89 + - 24 DIV + 99 col1
----
159

skipif mysql # not compatible
query I rowsort label-1077
SELECT DISTINCT + 70 + + 89 + - 24 / + 99 col1
----
159

onlyif mysql # aggregate syntax: 
query I rowsort label-1078
SELECT ALL + SUM( + 66 ) col1
----
66

skipif mysql # not compatible
query I rowsort label-1078
SELECT ALL + SUM ( + 66 ) col1
----
66

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1080
SELECT - 75 * + SUM( DISTINCT 60 ) * 95 col1
----
-427500

skipif mysql # not compatible
query I rowsort label-1080
SELECT - 75 * + SUM ( DISTINCT 60 ) * 95 col1
----
-427500

onlyif mysql # aggregate syntax: 
query I rowsort label-1081
SELECT - ( + - COUNT( * ) ) + 81
----
82

skipif mysql # not compatible
query I rowsort label-1081
SELECT - ( + - COUNT ( * ) ) + 81
----
82

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1082
SELECT - COUNT( * ) * - 90 DIV ( 62 )
----
1

skipif mysql # not compatible
query I rowsort label-1082
SELECT - COUNT ( * ) * - 90 / ( 62 )
----
1

query I rowsort
SELECT ALL NULLIF ( - - 6, + - 31 ) AS col0
----
6

query I rowsort
SELECT + 15 + COALESCE ( - 12, + 94, - 8 )
----
3

query I rowsort
SELECT - NULLIF ( + 5, + + 45 )
----
-5

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1086
SELECT - ( + 40 ) DIV + COUNT( * ) + 45 AS col2, + 83 * - + 9
----
5
-747

skipif mysql # not compatible
query II rowsort label-1086
SELECT - ( + 40 ) / + COUNT ( * ) + 45 AS col2, + 83 * - + 9
----
5
-747

onlyif mysql # aggregate syntax: 
query I rowsort label-1087
SELECT + 67 * + + 88 * + NULLIF ( ( + - MAX( + + 69 ) ), 61 )
----
-406824

skipif mysql # not compatible
query I rowsort label-1087
SELECT + 67 * + + 88 * + NULLIF ( ( + - MAX ( + + 69 ) ), 61 )
----
-406824

onlyif mysql # aggregate syntax: 
query II rowsort label-1088
SELECT ALL CASE 50 WHEN 92 * - 99 - - + AVG ( + 28 ) * - 6 * + 91 + - 31 + - 85 THEN - + COUNT( * ) END / 44 * - 74 * - 77 AS col1, - 93 AS col2
----
NULL
-93

skipif mysql # not compatible
query II rowsort label-1088
SELECT ALL CASE 50 WHEN 92 * - 99 - - + AVG ( + 28 ) * - 6 * + 91 + - 31 + - 85 THEN - + COUNT ( * ) END / 44 * - 74 * - 77 AS col1, - 93 AS col2
----
NULL
-93

query I rowsort
SELECT - ( + 13 ) + + 23
----
10

query I rowsort
SELECT + 85 - + - 45 + + - 36
----
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-1091
SELECT ALL + 76 AS col0, 59 * + - MAX( DISTINCT 91 ) col1, CASE - - COALESCE ( 18, + COUNT( * ) ) WHEN CASE + 26 WHEN - COUNT( + + 32 ) + 23 + + CAST( - - 75 AS SIGNED ) * + + 50 THEN - COUNT( * ) * + CAST( NULL AS SIGNED ) - - 47 END / + + COUNT( * ) THEN - 26 END AS col1
----
76
-5369
NULL

skipif mysql # not compatible
query III rowsort label-1091
SELECT ALL + 76 AS col0, 59 * + - MAX ( DISTINCT 91 ) col1, CASE - - COALESCE ( 18, + COUNT ( * ) ) WHEN CASE + 26 WHEN - COUNT ( + + 32 ) + 23 + + CAST ( - - 75 AS INTEGER ) * + + 50 THEN - COUNT ( * ) * + CAST ( NULL AS INTEGER ) - - 47 END / + + COUNT ( * ) THEN - 26 END AS col1
----
76
-5369
NULL

query I rowsort
SELECT + 31 + + 8 AS col1
----
39

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1094
SELECT ALL - 3 DIV - - ( 95 ) + + 3 * 34
----
102

skipif mysql # not compatible
query I rowsort label-1094
SELECT ALL - 3 / - - ( 95 ) + + 3 * 34
----
102

query I rowsort
SELECT ALL - 17 * - + 94 AS col2
----
1598

query I rowsort
SELECT ALL + NULLIF ( + 20, 96 - - 41 - + 64 ) * 22 + 88 + - 60 * + 99 * - 50
----
297528

onlyif mysql # aggregate syntax: 
query I rowsort label-1097
SELECT ALL - COUNT( * ) * - 92 + + 76
----
168

skipif mysql # not compatible
query I rowsort label-1097
SELECT ALL - COUNT ( * ) * - 92 + + 76
----
168

onlyif mysql # aggregate syntax: 
query I rowsort label-1098
SELECT DISTINCT 37 * - 4 + COUNT( * ) AS col0
----
-147

skipif mysql # not compatible
query I rowsort label-1098
SELECT DISTINCT 37 * - 4 + COUNT ( * ) AS col0
----
-147

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1100
SELECT ALL + - MIN( ALL + - 43 ) col0
----
43

skipif mysql # not compatible
query I rowsort label-1100
SELECT ALL + - MIN ( ALL + - 43 ) col0
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-1101
SELECT ALL + + 26 * + 1 + - COUNT( * ) * 55 * COUNT( * ) AS col2
----
-29

skipif mysql # not compatible
query I rowsort label-1101
SELECT ALL + + 26 * + 1 + - COUNT ( * ) * 55 * COUNT ( * ) AS col2
----
-29

query I rowsort
SELECT + - 13 * + 68 * - + 84 col0
----
74256

onlyif mysql # aggregate syntax: 
query I rowsort label-1103
SELECT - ( 25 ) + ( + - 91 ) + 90 + + CASE 75 WHEN 28 * + 80 + 39 + - - 84 + 32 + 54 THEN 5 WHEN - + AVG ( ALL - 47 ) + 2 + COUNT( * ) THEN - 60 / + - 1 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1103
SELECT - ( 25 ) + ( + - 91 ) + 90 + + CASE 75 WHEN 28 * + 80 + 39 + - - 84 + 32 + 54 THEN 5 WHEN - + AVG ( ALL - 47 ) + 2 + COUNT ( * ) THEN - 60 / + - 1 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1104
SELECT + + 86 col2, ( + COUNT( * ) ) * - 46 + + - 87
----
86
-133

skipif mysql # not compatible
query II rowsort label-1104
SELECT + + 86 col2, ( + COUNT ( * ) ) * - 46 + + - 87
----
86
-133

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1105
SELECT 32 * 96 + - - MAX( + - 77 ) + + 36 + + 62 * - 28 * + + 94 + - 81 DIV - 44 AS col2
----
-160152

skipif mysql # not compatible
query I rowsort label-1105
SELECT 32 * 96 + - - MAX ( + - 77 ) + + 36 + + 62 * - 28 * + + 94 + - 81 / - 44 AS col2
----
-160152

query I rowsort
SELECT DISTINCT + 69 * - 20 AS col1
----
-1380

query II rowsort
SELECT DISTINCT + ( - 67 ) * 2 - + 9 + + + 8 * - 51, 11 col2
----
-551
11

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

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

query I rowsort
SELECT + - 86 * - 55 col0
----
4730

onlyif mysql # aggregate syntax: 
query I rowsort label-1110
SELECT + + 11 - - - COUNT( ALL - 80 )
----
10

skipif mysql # not compatible
query I rowsort label-1110
SELECT + + 11 - - - COUNT ( ALL - 80 )
----
10

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

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

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

skipif mysql # not compatible
query I rowsort label-1112
SELECT - CAST ( NULL AS INTEGER ) * 38 AS col1
----
NULL

query II rowsort
SELECT - 51 + - + 55 * - 80, + 9 AS col0
----
4349
9

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1115
SELECT - COALESCE ( COUNT( * ), + 99 - - 82 ) * + 55 DIV 98 + + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-1115
SELECT - COALESCE ( COUNT ( * ), + 99 - - 82 ) * + 55 / 98 + + COUNT ( * )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1116
SELECT ALL NULLIF ( + CAST( + COUNT( + + 85 ) AS SIGNED ), - ( + 2 ) )
----
1

skipif mysql # not compatible
query I rowsort label-1116
SELECT ALL NULLIF ( + CAST ( + COUNT ( + + 85 ) AS INTEGER ), - ( + 2 ) )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-1117
SELECT - 15 + 3 DIV - 27
----
-15

skipif mysql # not compatible
query I rowsort label-1117
SELECT - 15 + 3 / - 27
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-1118
SELECT - 74 - - COUNT( DISTINCT 62 ) AS col1
----
-73

skipif mysql # not compatible
query I rowsort label-1118
SELECT - 74 - - COUNT ( DISTINCT 62 ) AS col1
----
-73

query I rowsort
SELECT - 91 * - 47 AS col1
----
4277

onlyif mysql # aggregate syntax: 
query I rowsort label-1120
SELECT - NULLIF ( + 22, + - 57 * + + 47 + - + 47 * - - 38 + + 42 - - + SUM( ALL 66 ) ) AS col2
----
-22

skipif mysql # not compatible
query I rowsort label-1120
SELECT - NULLIF ( + 22, + - 57 * + + 47 + - + 47 * - - 38 + + 42 - - + SUM ( ALL 66 ) ) AS col2
----
-22

query II rowsort
SELECT DISTINCT + 76 * - 95 AS col2, 12 * - 12 AS col2
----
-7220
-144

query I rowsort
SELECT - 56 * 87 AS col1
----
-4872

query II rowsort
SELECT + 38 + + 12 AS col1, + 13 - - 30 AS col0
----
50
43

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

skipif mysql # not compatible
query I rowsort label-1124
SELECT ALL CAST ( NULL AS INTEGER ) + + 70 + - + 37
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1125
SELECT COUNT( * ) * 0 * + - 95 * - 27
----
0

skipif mysql # not compatible
query I rowsort label-1125
SELECT COUNT ( * ) * 0 * + - 95 * - 27
----
0

query II rowsort
SELECT ALL + 59 * + - 66, 80 AS col2
----
-3894
80

onlyif mysql # aggregate syntax: 
query II rowsort label-1127
SELECT ALL - COUNT( - 21 ) AS col2, COUNT( * ) * - COALESCE ( - 8, + 28 * + 5 + + 42 + 29 + + 77 ) + + - 88 + + 59 AS col0
----
-1
-21

skipif mysql # not compatible
query II rowsort label-1127
SELECT ALL - COUNT ( - 21 ) AS col2, COUNT ( * ) * - COALESCE ( - 8, + 28 * + 5 + + 42 + 29 + + 77 ) + + - 88 + + 59 AS col0
----
-1
-21

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1129
SELECT - 43 DIV + 80 - 59 * + MAX( 63 )
----
-3717

skipif mysql # not compatible
query I rowsort label-1129
SELECT - 43 / + 80 - 59 * + MAX ( 63 )
----
-3717

onlyif mysql # aggregate syntax: 
query II rowsort label-1130
SELECT + - SUM( + 37 ) col0, + 37
----
-37
37

skipif mysql # not compatible
query II rowsort label-1130
SELECT + - SUM ( + 37 ) col0, + 37
----
-37
37

query I rowsort
SELECT ALL 44 + - + 99 + - 44 AS col0
----
-99

query I rowsort
SELECT 77 - + 99 AS col2
----
-22

query I rowsort
SELECT ALL + - 71 + 66
----
-5

query II rowsort
SELECT ALL - + COALESCE ( + 81, + 28 ) AS col0, 67 * 13
----
-81
871

query I rowsort
SELECT DISTINCT 55 * - - 21 + + 0 + - + 61 * - 30
----
2985

onlyif mysql # aggregate syntax: 
query I rowsort label-1136
SELECT - 43 + 20 * - 13 + COUNT( * ) + + 0
----
-302

skipif mysql # not compatible
query I rowsort label-1136
SELECT - 43 + 20 * - 13 + COUNT ( * ) + + 0
----
-302

onlyif mysql # aggregate syntax: 
query II rowsort label-1137
SELECT 16 * + 58, COUNT( * ) * + MAX( 82 ) AS col2
----
928
82

skipif mysql # not compatible
query II rowsort label-1137
SELECT 16 * + 58, COUNT ( * ) * + MAX ( 82 ) AS col2
----
928
82

onlyif mysql # aggregate syntax: 
query II rowsort label-1138
SELECT + 52 * - 38 + 29 AS col0, - COUNT( * ) col1
----
-1947
-1

skipif mysql # not compatible
query II rowsort label-1138
SELECT + 52 * - 38 + 29 AS col0, - COUNT ( * ) col1
----
-1947
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1139
SELECT 76, SUM( ALL + 60 ) DIV + - 52 - 82 + + + 31 * ( + ( + + ( - 80 ) ) ) + + 31 AS col1
----
76
-2532

skipif mysql # not compatible
query II rowsort label-1139
SELECT 76, SUM ( ALL + 60 ) / + - 52 - 82 + + + 31 * ( + ( + + ( - 80 ) ) ) + + 31 AS col1
----
76
-2532

query I rowsort
SELECT ALL + 62 * + + 76 * - 22 AS col1
----
-103664

query II rowsort
SELECT ALL 45 AS col1, 26 * + 6
----
45
156

query I rowsort
SELECT 9 + - + 54 AS col1
----
-45

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

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

query I rowsort
SELECT ALL 98 + + 56
----
154

query I rowsort
SELECT 86 + + 35 AS col0
----
121

query II rowsort
SELECT 19 AS col0, 98 AS col1
----
19
98

query I rowsort
SELECT 44 + 37
----
81

query I rowsort
SELECT 15 * + 10 AS col2
----
150

query I rowsort
SELECT DISTINCT 97 + - 65
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-1150
SELECT DISTINCT COUNT( 39 ) * - 0
----
0

skipif mysql # not compatible
query I rowsort label-1150
SELECT DISTINCT COUNT ( 39 ) * - 0
----
0

query I rowsort
SELECT ALL - 99 + - 83 AS col2
----
-182

query I rowsort
SELECT 31 - + ( + 7 ) AS col0
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-1153
SELECT ALL 32 + ( + - 48 ) + + ( - - 93 ) + + COUNT( * ) * - 22 AS col1
----
55

skipif mysql # not compatible
query I rowsort label-1153
SELECT ALL 32 + ( + - 48 ) + + ( - - 93 ) + + COUNT ( * ) * - 22 AS col1
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-1154
SELECT 50 + CASE - ( 33 ) WHEN - COUNT( * ) * 2 THEN + + 28 * + - 8 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1154
SELECT 50 + CASE - ( 33 ) WHEN - COUNT ( * ) * 2 THEN + + 28 * + - 8 END AS col0
----
NULL

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

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

query I rowsort
SELECT - 84 + + + 24 col1
----
-60

onlyif mysql # aggregate syntax: 
query II rowsort label-1157
SELECT - - COUNT( * ) AS col2, + 72 + 92
----
1
164

skipif mysql # not compatible
query II rowsort label-1157
SELECT - - COUNT ( * ) AS col2, + 72 + 92
----
1
164

query II rowsort
SELECT + 88 AS col0, 46
----
88
46

onlyif mysql # aggregate syntax: 
query I rowsort label-1159
SELECT 46 + - + MAX( 5 ) * - SUM( DISTINCT + + 83 ) + - 41 - 96 * + 65 + + - 38 * + 43
----
-7454

skipif mysql # not compatible
query I rowsort label-1159
SELECT 46 + - + MAX ( 5 ) * - SUM ( DISTINCT + + 83 ) + - 41 - 96 * + 65 + + - 38 * + 43
----
-7454

query I rowsort
SELECT + 67 - - 83 AS col1
----
150

query I rowsort
SELECT ALL + 35 * - 48 AS col0
----
-1680

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1162
SELECT - COALESCE ( + - 98, - 38, 0 / + COUNT( * ), + + 78 / + AVG ( DISTINCT - 91 ) ) * - 33 / + MIN( DISTINCT + 16 ) * + 96 - ( 64 ) * + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1162
SELECT - COALESCE ( + - 98, - 38, 0 / + COUNT ( * ), + + 78 / + AVG ( DISTINCT - 91 ) ) * - 33 / + MIN ( DISTINCT + 16 ) * + 96 - ( 64 ) * + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1163
SELECT ALL - NULLIF ( - COUNT( - 53 ), - 81 - ( - + CAST( + 71 AS SIGNED ) ) + 16 ) * 28
----
28

skipif mysql # not compatible
query I rowsort label-1163
SELECT ALL - NULLIF ( - COUNT ( - 53 ), - 81 - ( - + CAST ( + 71 AS INTEGER ) ) + 16 ) * 28
----
28

onlyif mysql # aggregate syntax: 
query II rowsort label-1164
SELECT DISTINCT - - 59, 50 * - - COUNT( * ) * - + 45 AS col0
----
59
-2250

skipif mysql # not compatible
query II rowsort label-1164
SELECT DISTINCT - - 59, 50 * - - COUNT ( * ) * - + 45 AS col0
----
59
-2250

query I rowsort
SELECT ALL - - 7 * - 3 AS col0
----
-21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1166
SELECT ALL - CAST( + - 2 AS SIGNED )
----
2

skipif mysql # not compatible
query I rowsort label-1166
SELECT ALL - CAST ( + - 2 AS INTEGER )
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1167
SELECT ALL COUNT( * ) DIV - ( 97 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1167
SELECT ALL COUNT ( * ) / - ( 97 ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1168
SELECT SUM( ( 36 ) ) * - 27 + - 26
----
-998

skipif mysql # not compatible
query I rowsort label-1168
SELECT SUM ( ( 36 ) ) * - 27 + - 26
----
-998

onlyif mysql # aggregate syntax: 
query II rowsort label-1169
SELECT - 74 + SUM( - + 87 ) AS col2, CASE + 86 WHEN - + 31 / - ( + + 47 ) THEN 36 END AS col0
----
-161
NULL

skipif mysql # not compatible
query II rowsort label-1169
SELECT - 74 + SUM ( - + 87 ) AS col2, CASE + 86 WHEN - + 31 / - ( + + 47 ) THEN 36 END AS col0
----
-161
NULL

query I rowsort
SELECT 53 * + - 24 AS col0
----
-1272

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1171
SELECT ALL + 58 DIV CAST( 4 AS SIGNED ) - CAST( + - 60 AS SIGNED )
----
74

skipif mysql # not compatible
query I rowsort label-1171
SELECT ALL + 58 / CAST ( 4 AS INTEGER ) - CAST ( + - 60 AS INTEGER )
----
74

query I rowsort
SELECT 53 * - 25 + - - 22 + - 30 col1
----
-1333

onlyif mysql # aggregate syntax: 
query I rowsort label-1173
SELECT - 52 * - 20 * 98 + - + COUNT( * ) AS col0
----
101919

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

query I rowsort
SELECT + 50 * - + 86 AS col0
----
-4300

onlyif mysql # DIV for integer division: 
query I rowsort label-1175
SELECT ALL - + 64 DIV - 69
----
0

skipif mysql # not compatible
query I rowsort label-1175
SELECT ALL - + 64 / - 69
----
0

query I rowsort
SELECT ALL ( 86 ) * 79 AS col2
----
6794

query I rowsort
SELECT ( - 30 ) + - 68 AS col0
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-1178
SELECT DISTINCT COUNT( * ) + - 42 * - CASE + 22 WHEN + 93 THEN + 38 ELSE NULL END + 63 + 58 * - + 59
----
NULL

skipif mysql # not compatible
query I rowsort label-1178
SELECT DISTINCT COUNT ( * ) + - 42 * - CASE + 22 WHEN + 93 THEN + 38 ELSE NULL END + 63 + 58 * - + 59
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1179
SELECT COUNT( * ) + + COUNT( * ) * - + MIN( DISTINCT + + 60 ) AS col0
----
-59

skipif mysql # not compatible
query I rowsort label-1179
SELECT COUNT ( * ) + + COUNT ( * ) * - + MIN ( DISTINCT + + 60 ) AS col0
----
-59

query I rowsort
SELECT ALL 98 + - ( + 54 ) AS col0
----
44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1181
SELECT ALL 57 + - - NULLIF ( - - 49, + 49 * - COUNT( * ) + + + 43 * + ( ( - - CAST( - 88 AS SIGNED ) ) ) * + + 42 + - + 93 ) + - 72 * 7 * + + CASE + 70 WHEN - - 20 THEN NULL WHEN - 26 + - 6 + 29 THEN - + 1 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1181
SELECT ALL 57 + - - NULLIF ( - - 49, + 49 * - COUNT ( * ) + + + 43 * + ( ( - - CAST ( - 88 AS INTEGER ) ) ) * + + 42 + - + 93 ) + - 72 * 7 * + + CASE + 70 WHEN - - 20 THEN NULL WHEN - 26 + - 6 + 29 THEN - + 1 END AS col2
----
NULL

query I rowsort
SELECT 96 * - - 43
----
4128

onlyif mysql # aggregate syntax: 
query I rowsort label-1183
SELECT MAX( ALL + - 77 ) - + 21
----
-98

skipif mysql # not compatible
query I rowsort label-1183
SELECT MAX ( ALL + - 77 ) - + 21
----
-98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1184
SELECT ( 65 ) + + COUNT( + 5 ) + - - COUNT( * ) - - 83 + + 30 * + CAST( NULL AS SIGNED ) * + 52 * + + 27 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1184
SELECT ( 65 ) + + COUNT ( + 5 ) + - - COUNT ( * ) - - 83 + + 30 * + CAST ( NULL AS INTEGER ) * + 52 * + + 27 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1185
SELECT DISTINCT CASE + CAST( NULL AS SIGNED ) WHEN - - 53 + - 65 + + CAST( - NULLIF ( + + 46, + CASE - NULLIF ( + + 68, - 96 - + - MAX( ALL 98 ) ) WHEN + - 85 / + 98 THEN - + 36 - + CAST( NULL AS SIGNED ) WHEN - 55 / + COUNT( * ) + + COUNT( * ) * CAST( NULL AS SIGNED ) + - - 66 * - ( + 59 ) + ( - 64 ) THEN NULL WHEN - + 35 * 75 + COUNT( * ) THEN NULL ELSE COUNT( * ) END + + 72 ) AS SIGNED ) THEN - 93 * 98 END + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1185
SELECT DISTINCT CASE + CAST ( NULL AS INTEGER ) WHEN - - 53 + - 65 + + CAST ( - NULLIF ( + + 46, + CASE - NULLIF ( + + 68, - 96 - + - MAX ( ALL 98 ) ) WHEN + - 85 / + 98 THEN - + 36 - + CAST ( NULL AS INTEGER ) WHEN - 55 / + COUNT ( * ) + + COUNT ( * ) * CAST ( NULL AS INTEGER ) + - - 66 * - ( + 59 ) + ( - 64 ) THEN NULL WHEN - + 35 * 75 + COUNT ( * ) THEN NULL ELSE COUNT ( * ) END + + 72 ) AS INTEGER ) THEN - 93 * 98 END + CAST ( NULL AS INTEGER )
----
NULL

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

skipif mysql # not compatible
query I rowsort label-1186
SELECT ALL 44 + - COUNT ( * ) AS col2
----
43

query I rowsort
SELECT + 85 * + + 52
----
4420

query I rowsort
SELECT ALL 8 + + - 43
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-1189
SELECT - CASE + + COALESCE ( 69, + 63 ) WHEN + + COUNT( * ) + + + 19 THEN ( - 90 ) + - 44 ELSE 29 * + + 70 * - 74 - + ( - 17 ) END
----
150203

skipif mysql # not compatible
query I rowsort label-1189
SELECT - CASE + + COALESCE ( 69, + 63 ) WHEN + + COUNT ( * ) + + + 19 THEN ( - 90 ) + - 44 ELSE 29 * + + 70 * - 74 - + ( - 17 ) END
----
150203

onlyif mysql # aggregate syntax: 
query I rowsort label-1190
SELECT ALL ( + + 5 ) + + 41 * + 1 + - - MIN( - ( - 43 ) ) AS col2
----
89

skipif mysql # not compatible
query I rowsort label-1190
SELECT ALL ( + + 5 ) + + 41 * + 1 + - - MIN ( - ( - 43 ) ) AS col2
----
89

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

skipif mysql # not compatible
query I rowsort label-1191
SELECT - MAX ( ALL + - 50 ) AS col2
----
50

query II rowsort
SELECT DISTINCT + 64 * + - 3 AS col1, - 68 AS col0
----
-192
-68

query I rowsort
SELECT ALL + 6 * - - 67 + - + 8 AS col1
----
394

query I rowsort
SELECT - - 95 + + 19 - - 22
----
136

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

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

query I rowsort
SELECT + 89 * - 16 * + 53 col0
----
-75472

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1197
SELECT - + 68 * - COUNT( * ) DIV - 94 col1
----
0

skipif mysql # not compatible
query I rowsort label-1197
SELECT - + 68 * - COUNT ( * ) / - 94 col1
----
0

query I rowsort
SELECT ALL + + COALESCE ( + + 67, + ( + - 79 ) + - + 49 + - - ( - ( ( + + 63 ) ) ), - 72 * - 86 )
----
67

query I rowsort
SELECT - - 99 - + 88 AS col2
----
11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1200
SELECT ALL + CASE 88 WHEN + CAST( + ( + 76 ) AS SIGNED ) + - 33 THEN - + 95 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1200
SELECT ALL + CASE 88 WHEN + CAST ( + ( + 76 ) AS INTEGER ) + - 33 THEN - + 95 END
----
NULL

query I rowsort
SELECT + 21 * - ( - 38 ) + - 63 + + 69 * 46 + + 71 * - + 58 + - 58 * - ( + 49 )
----
2633

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1203
SELECT ALL - 80 * + ( - 67 ) + - 3 + + + 35 AS col0, COUNT( * )
----
5392
1

skipif mysql # not compatible
query II rowsort label-1203
SELECT ALL - 80 * + ( - 67 ) + - 3 + + + 35 AS col0, COUNT ( * )
----
5392
1

query II rowsort
SELECT DISTINCT 7 * 64 * + 92 * - 18 + - ( 57 ) col2, + 77 AS col1
----
-741945
77

query I rowsort
SELECT ALL + ( - ( ( + - 91 ) ) ) col2
----
91

onlyif mysql # aggregate syntax: 
query II rowsort label-1206
SELECT 80 * 84 + - - 59 + - 14 - + COUNT( * ) * + 96 - - 72 * COUNT( * ), + 54 AS col1
----
6741
54

skipif mysql # not compatible
query II rowsort label-1206
SELECT 80 * 84 + - - 59 + - 14 - + COUNT ( * ) * + 96 - - 72 * COUNT ( * ), + 54 AS col1
----
6741
54

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1207
SELECT ALL + 20 * - 77 * + 54 + - - 11 DIV + COUNT( * ) + + 31
----
-83118

skipif mysql # not compatible
query I rowsort label-1207
SELECT ALL + 20 * - 77 * + 54 + - - 11 / + COUNT ( * ) + + 31
----
-83118

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1208
SELECT DISTINCT + CAST( - + 4 AS SIGNED ) col2
----
-4

skipif mysql # not compatible
query I rowsort label-1208
SELECT DISTINCT + CAST ( - + 4 AS INTEGER ) col2
----
-4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1209
SELECT - CASE + 47 WHEN - 2 THEN - CAST( + COALESCE ( SUM( ALL + 63 ), - 51 + - 56 ) AS SIGNED ) * - - 41 END / + 87 AS col0, ( 70 ) - + 21 * + + COUNT( * ) * + - 46 * - NULLIF ( - ( + 89 ), - MIN( DISTINCT - 30 ) ) AS col2
----
NULL
86044

skipif mysql # not compatible
query II rowsort label-1209
SELECT - CASE + 47 WHEN - 2 THEN - CAST ( + COALESCE ( SUM ( ALL + 63 ), - 51 + - 56 ) AS INTEGER ) * - - 41 END / + 87 AS col0, ( 70 ) - + 21 * + + COUNT ( * ) * + - 46 * - NULLIF ( - ( + 89 ), - MIN ( DISTINCT - 30 ) ) AS col2
----
NULL
86044

onlyif mysql # aggregate syntax: 
query I rowsort label-1210
SELECT + NULLIF ( - 55, COUNT( * ) + 49 ) AS col0
----
-55

skipif mysql # not compatible
query I rowsort label-1210
SELECT + NULLIF ( - 55, COUNT ( * ) + 49 ) AS col0
----
-55

query II rowsort
SELECT ALL + 70 col0, + 96
----
70
96

query I rowsort
SELECT + 21 - - 15 * - 30 AS col0
----
-429

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1213
SELECT ALL - SUM( + 69 ) * - 10 + + + COALESCE ( + 38, + + 53 DIV 98 - 45 - - + 3 * - + 32, - COUNT( * ) ) + + - 9 col0
----
719

skipif mysql # not compatible
query I rowsort label-1213
SELECT ALL - SUM ( + 69 ) * - 10 + + + COALESCE ( + 38, + + 53 / 98 - 45 - - + 3 * - + 32, - COUNT ( * ) ) + + - 9 col0
----
719

onlyif mysql # aggregate syntax: 
query I rowsort label-1214
SELECT ALL - 5 * - - 0 + - 69 + - - 16 * - COUNT( * ) + - + ( - 43 ) + - 35 + - - 82 col1
----
5

skipif mysql # not compatible
query I rowsort label-1214
SELECT ALL - 5 * - - 0 + - 69 + - - 16 * - COUNT ( * ) + - + ( - 43 ) + - 35 + - - 82 col1
----
5

query I rowsort
SELECT DISTINCT + 44 * + 43 * 26 + + 35
----
49227

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

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

query I rowsort
SELECT - CASE - 35 WHEN ( - 4 ) * + ( 50 ) THEN - - 62 WHEN - CASE + 29 WHEN - - 13 THEN + 95 END + 53 * - 20 + 51 + 86 + - 30 THEN - - 67 ELSE NULL END AS col0
----
NULL

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

skipif mysql # not compatible
query I rowsort label-1218
SELECT MAX ( DISTINCT - - 34 )
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-1219
SELECT - MAX( - 81 ) AS col2
----
81

skipif mysql # not compatible
query I rowsort label-1219
SELECT - MAX ( - 81 ) AS col2
----
81

query I rowsort
SELECT - 67 + - - 36 * + + 96 AS col2
----
3389

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

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

query I rowsort
SELECT + 31 * 29 col2
----
899

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

skipif mysql # not compatible
query I rowsort label-1223
SELECT + 43 + - COUNT ( ALL + - 56 ) AS col2
----
42

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

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

query II rowsort
SELECT ALL 84 col1, 84 AS col1
----
84
84

query I rowsort
SELECT + - 63 + + 89
----
26

query I rowsort
SELECT DISTINCT - 52 * - 59
----
3068

query I rowsort
SELECT ALL - COALESCE ( 96, - - CASE + 4 WHEN + 96 * 83 THEN NULL ELSE + ( + 67 ) * 54 END * - 92 + + 19, 69 )
----
-96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1229
SELECT + - 2 + - 77 + - CAST( - COUNT( * ) AS SIGNED ) + + ( - - 57 ) + + + 5 * 29 * - COALESCE ( + + 92, - + ( - 76 ) + + - 98 + ( - 40 ) ) + 22 DIV + - 68 + + 72 AS col1, COALESCE ( - 47, 54 * + - MIN( DISTINCT + 42 ) + - - NULLIF ( + 27, - 55 + 6 * 70 + + + 77 DIV + 63 + - CAST( COUNT( * ) + + 73 AS SIGNED ) ) ) + 16 AS col1
----
-13289
-31

skipif mysql # not compatible
query II rowsort label-1229
SELECT + - 2 + - 77 + - CAST ( - COUNT ( * ) AS INTEGER ) + + ( - - 57 ) + + + 5 * 29 * - COALESCE ( + + 92, - + ( - 76 ) + + - 98 + ( - 40 ) ) + 22 / + - 68 + + 72 AS col1, COALESCE ( - 47, 54 * + - MIN ( DISTINCT + 42 ) + - - NULLIF ( + 27, - 55 + 6 * 70 + + + 77 / + 63 + - CAST ( COUNT ( * ) + + 73 AS INTEGER ) ) ) + 16 AS col1
----
-13289
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-1230
SELECT DISTINCT 21 * - + ( - 98 ) + + + 86 + + - 21 * + COUNT( * )
----
2123

skipif mysql # not compatible
query I rowsort label-1230
SELECT DISTINCT 21 * - + ( - 98 ) + + + 86 + + - 21 * + COUNT ( * )
----
2123

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

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

query I rowsort
SELECT - 65 - 30 col0
----
-95

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

skipif mysql # not compatible
query I rowsort label-1233
SELECT ALL - COUNT ( DISTINCT + + 92 ) * - 58 AS col0
----
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1234
SELECT ALL - + ( - + CASE + 54 WHEN ( 73 ) THEN - COUNT( DISTINCT NULLIF ( + 97, + - ( 96 ) * - 19 ) ) END ) / - MIN( - COALESCE ( 4, - 10 * + 62 ) ) + 10 + - 52 - - + CAST( NULL AS SIGNED ) * - CAST( + - COUNT( * ) AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1234
SELECT ALL - + ( - + CASE + 54 WHEN ( 73 ) THEN - COUNT ( DISTINCT NULLIF ( + 97, + - ( 96 ) * - 19 ) ) END ) / - MIN ( - COALESCE ( 4, - 10 * + 62 ) ) + 10 + - 52 - - + CAST ( NULL AS INTEGER ) * - CAST ( + - COUNT ( * ) AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1235
SELECT DISTINCT + NULLIF ( - COUNT( * ), + AVG ( ALL 8 ) ) DIV + 81 + - - 76 + ( ( + 79 ) ) * - 57 col1, 53 - 32 AS col0
----
-4427
21

skipif mysql # not compatible
query II rowsort label-1235
SELECT DISTINCT + NULLIF ( - COUNT ( * ), + AVG ( ALL 8 ) ) / + 81 + - - 76 + ( ( + 79 ) ) * - 57 col1, 53 - 32 AS col0
----
-4427
21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1236
SELECT DISTINCT - 90 DIV - 11 * + COUNT( * ) + 44 col2
----
52

skipif mysql # not compatible
query I rowsort label-1236
SELECT DISTINCT - 90 / - 11 * + COUNT ( * ) + 44 col2
----
52

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1237
SELECT ALL + - 41 / - + 73 / 18 + + CASE - + 19 WHEN - + 30 + - 88 + 38 * + MAX( + - 90 ) THEN - MIN( 25 ) / + COUNT( * ) WHEN - 12 * - COALESCE ( + 34, - + COUNT( * ) ) / COUNT( ALL 90 ) + + 73 THEN NULL ELSE ( - 14 ) * + NULLIF ( - + 86, - 37 * + 34 ) END + + ( + CASE 52 WHEN + 83 THEN NULL WHEN AVG ( CASE + 67 WHEN - 45 THEN 28 WHEN + ( CAST( NULL AS DECIMAL ) ) THEN NULL ELSE NULL END ) THEN ( 42 ) * - COUNT( * ) WHEN 91 THEN NULL WHEN + 5 / 62 THEN 94 - - 25 END ) * 96 + 27 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1237
SELECT ALL + - 41 / - + 73 / 18 + + CASE - + 19 WHEN - + 30 + - 88 + 38 * + MAX ( + - 90 ) THEN - MIN ( 25 ) / + COUNT ( * ) WHEN - 12 * - COALESCE ( + 34, - + COUNT ( * ) ) / COUNT ( ALL 90 ) + + 73 THEN NULL ELSE ( - 14 ) * + NULLIF ( - + 86, - 37 * + 34 ) END + + ( + CASE 52 WHEN + 83 THEN NULL WHEN AVG ( CASE + 67 WHEN - 45 THEN 28 WHEN + ( CAST ( NULL AS REAL ) ) THEN NULL ELSE NULL END ) THEN ( 42 ) * - COUNT ( * ) WHEN 91 THEN NULL WHEN + 5 / 62 THEN 94 - - 25 END ) * 96 + 27 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1238
SELECT COALESCE ( MAX( ( + - 74 ) ), ( 80 ), - 27 ) DIV + NULLIF ( 39, + 27 ) + 74
----
73

skipif mysql # not compatible
query I rowsort label-1238
SELECT COALESCE ( MAX ( ( + - 74 ) ), ( 80 ), - 27 ) / + NULLIF ( 39, + 27 ) + 74
----
73

query I rowsort
SELECT + - COALESCE ( - ( + - 0 ), 95 + - 74 ) col1
----
0

query II rowsort
SELECT DISTINCT + 57, + ( + 44 ) + - 80 AS col2
----
57
-36

onlyif mysql # aggregate syntax: 
query II rowsort label-1241
SELECT - 45 + ( + ( - - 57 ) ) AS col1, MIN( 60 )
----
12
60

skipif mysql # not compatible
query II rowsort label-1241
SELECT - 45 + ( + ( - - 57 ) ) AS col1, MIN ( 60 )
----
12
60

query I rowsort
SELECT 3 * - 77 + + + 99
----
-132

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1243
SELECT DISTINCT - COALESCE ( + 35, - - 10 + + + 61 ) + 8 / + + CAST( - 74 AS SIGNED ) + 82 + - - 58 * CASE - - 6 WHEN 47 + - + MAX( - ( 66 ) ) / + - MIN( 85 ) THEN + + 99 ELSE NULL END + + - 6
----
NULL

skipif mysql # not compatible
query I rowsort label-1243
SELECT DISTINCT - COALESCE ( + 35, - - 10 + + + 61 ) + 8 / + + CAST ( - 74 AS INTEGER ) + 82 + - - 58 * CASE - - 6 WHEN 47 + - + MAX ( - ( 66 ) ) / + - MIN ( 85 ) THEN + + 99 ELSE NULL END + + - 6
----
NULL

query I rowsort
SELECT ALL + 13 + + 91 AS col1
----
104

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1245
SELECT 25 * CAST( NULL AS SIGNED ) / + ( - ( COALESCE ( - - 2, + NULLIF ( + + 47, + 82 ), - + 13 ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1245
SELECT 25 * CAST ( NULL AS INTEGER ) / + ( - ( COALESCE ( - - 2, + NULLIF ( + + 47, + 82 ), - + 13 ) ) )
----
NULL

query I rowsort
SELECT 41 + + 10 + + 49
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-1247
SELECT DISTINCT - 68 - - 84 + - MIN( - 1 ) + 3 * - 1 * - + 99 + + - 75 AS col1
----
239

skipif mysql # not compatible
query I rowsort label-1247
SELECT DISTINCT - 68 - - 84 + - MIN ( - 1 ) + 3 * - 1 * - + 99 + + - 75 AS col1
----
239

onlyif mysql # aggregate syntax: 
query I rowsort label-1248
SELECT ALL + COALESCE ( - 80, 81 - + - 8 ) - - 80 + + + 0 + NULLIF ( + 67, 44 ) * - MIN( DISTINCT 55 ) * + 86 * 5 - + COUNT( * )
----
-1584551

skipif mysql # not compatible
query I rowsort label-1248
SELECT ALL + COALESCE ( - 80, 81 - + - 8 ) - - 80 + + + 0 + NULLIF ( + 67, 44 ) * - MIN ( DISTINCT 55 ) * + 86 * 5 - + COUNT ( * )
----
-1584551

query I rowsort
SELECT 15 * + 60 col0
----
900

query I rowsort
SELECT 40 * + 30 AS col1
----
1200

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1251
SELECT DISTINCT 81 col2, 68 * + - 89 + 36 + 83 * CAST( + + 22 AS SIGNED )
----
81
-4190

skipif mysql # not compatible
query II rowsort label-1251
SELECT DISTINCT 81 col2, 68 * + - 89 + 36 + 83 * CAST ( + + 22 AS INTEGER )
----
81
-4190

query II rowsort
SELECT ALL 33 AS col1, - 50 AS col0
----
33
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-1253
SELECT ALL 21 - SUM( DISTINCT + 50 ) AS col1
----
-29

skipif mysql # not compatible
query I rowsort label-1253
SELECT ALL 21 - SUM ( DISTINCT + 50 ) AS col1
----
-29

onlyif mysql # DIV for integer division: 
query I rowsort label-1254
SELECT 90 DIV - 63
----
-1

skipif mysql # not compatible
query I rowsort label-1254
SELECT 90 / - 63
----
-1

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

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

query I rowsort
SELECT ALL - 23 * 34
----
-782

query I rowsort
SELECT 90 + + 14 + + 86 AS col2
----
190

query II rowsort
SELECT - 86 col1, - ( 87 ) AS col0
----
-86
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-1259
SELECT COALESCE ( 99, - 94 + + - 74 ) + - 8 * + COUNT( DISTINCT 1 ) AS col2
----
91

skipif mysql # not compatible
query I rowsort label-1259
SELECT COALESCE ( 99, - 94 + + - 74 ) + - 8 * + COUNT ( DISTINCT 1 ) AS col2
----
91

query I rowsort
SELECT - NULLIF ( + 16, + 24 / - 24 + 35 * - - 80 ) AS col2
----
-16

query II rowsort
SELECT DISTINCT - 67 AS col0, 8
----
-67
8

query I rowsort
SELECT ALL + ( + 96 ) + - 16 AS col2
----
80

query II rowsort
SELECT - 70 AS col0, 57 + - 34 AS col1
----
-70
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1264
SELECT DISTINCT CASE - COALESCE ( - 93, + 38 ) WHEN 99 * + CASE - + 60 WHEN 66 THEN + + 99 * + 87 END + + 24 + - CAST( - - 44 AS SIGNED ) - - 78 * - - 13 THEN - COUNT( * ) * + ( + - 28 ) + - - 69 WHEN + 27 + 21 * 25 THEN 7 ELSE NULL END + + 53
----
NULL

skipif mysql # not compatible
query I rowsort label-1264
SELECT DISTINCT CASE - COALESCE ( - 93, + 38 ) WHEN 99 * + CASE - + 60 WHEN 66 THEN + + 99 * + 87 END + + 24 + - CAST ( - - 44 AS INTEGER ) - - 78 * - - 13 THEN - COUNT ( * ) * + ( + - 28 ) + - - 69 WHEN + 27 + 21 * 25 THEN 7 ELSE NULL END + + 53
----
NULL

query I rowsort
SELECT ALL + 47 + + 96 AS col0
----
143

query II rowsort
SELECT + NULLIF ( - + 12, - 76 ) * 57, 6 AS col2
----
-684
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1267
SELECT ALL + 36 + + - CAST( + + 1 AS SIGNED ) * - + ( + 52 )
----
88

skipif mysql # not compatible
query I rowsort label-1267
SELECT ALL + 36 + + - CAST ( + + 1 AS INTEGER ) * - + ( + 52 )
----
88

query I rowsort
SELECT ( + CASE + 48 WHEN + 34 / - + 92 * + ( 74 ) + - 43 + - 80 * - ( - 73 ) THEN NULL WHEN 37 THEN NULL WHEN + 82 + - - 0 THEN 21 ELSE NULL END ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1269
SELECT ALL - - NULLIF ( CAST( NULL AS SIGNED ), + COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1269
SELECT ALL - - NULLIF ( CAST ( NULL AS INTEGER ), + COUNT ( * ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1270
SELECT ALL CASE + 95 WHEN - 53 * + - 61 * COUNT( * ) THEN CASE - - COUNT( * ) WHEN - - CAST( NULL AS SIGNED ) * + 89 THEN + + 91 ELSE - - 97 + + + SUM( + - 98 ) / - 90 * - ( NULLIF ( - COUNT( * ), - - 38 ) ) END / + + 69 END + 25
----
NULL

skipif mysql # not compatible
query I rowsort label-1270
SELECT ALL CASE + 95 WHEN - 53 * + - 61 * COUNT ( * ) THEN CASE - - COUNT ( * ) WHEN - - CAST ( NULL AS INTEGER ) * + 89 THEN + + 91 ELSE - - 97 + + + SUM ( + - 98 ) / - 90 * - ( NULLIF ( - COUNT ( * ), - - 38 ) ) END / + + 69 END + 25
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1271
SELECT CAST( NULL AS SIGNED ) * - 37 AS col1, 3 AS col0
----
NULL
3

skipif mysql # not compatible
query II rowsort label-1271
SELECT CAST ( NULL AS INTEGER ) * - 37 AS col1, 3 AS col0
----
NULL
3

onlyif mysql # DIV for integer division: 
query I rowsort label-1272
SELECT ALL - 72 DIV + 98 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1272
SELECT ALL - 72 / + 98 AS col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-1273
SELECT 34 + + COUNT( * ) AS col0, 81 AS col2
----
35
81

skipif mysql # not compatible
query II rowsort label-1273
SELECT 34 + + COUNT ( * ) AS col0, 81 AS col2
----
35
81

query I rowsort
SELECT 79 - - 54
----
133

onlyif mysql # aggregate syntax: 
query I rowsort label-1275
SELECT ALL + 82 * - + ( MIN( 65 ) )
----
-5330

skipif mysql # not compatible
query I rowsort label-1275
SELECT ALL + 82 * - + ( MIN ( 65 ) )
----
-5330

query I rowsort
SELECT 50 * - 53
----
-2650

query II rowsort
SELECT DISTINCT + 64 * 83 AS col2, 29 + + 87 + + 5 * - 66 + - 46 AS col2
----
5312
-260

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1278
SELECT DISTINCT CAST( - 91 AS SIGNED ) * + + 55 + + 61 + COUNT( * ) + 37 + + + 51 * - 66 AS col1, - 2 AS col0
----
-8272
-2

skipif mysql # not compatible
query II rowsort label-1278
SELECT DISTINCT CAST ( - 91 AS INTEGER ) * + + 55 + + 61 + COUNT ( * ) + 37 + + + 51 * - 66 AS col1, - 2 AS col0
----
-8272
-2

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

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

query I rowsort
SELECT 36 * - + 83 AS col1
----
-2988

onlyif mysql # aggregate syntax: 
query I rowsort label-1281
SELECT ALL - 66 + - - 23 * + 50 + + COUNT( 10 ) * + 56 + 99 * MIN( ALL - 35 )
----
-2325

skipif mysql # not compatible
query I rowsort label-1281
SELECT ALL - 66 + - - 23 * + 50 + + COUNT ( 10 ) * + 56 + 99 * MIN ( ALL - 35 )
----
-2325

onlyif mysql # aggregate syntax: 
query I rowsort label-1282
SELECT - SUM( ALL - 2 ) + + + 37 AS col2
----
39

skipif mysql # not compatible
query I rowsort label-1282
SELECT - SUM ( ALL - 2 ) + + + 37 AS col2
----
39

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

query I rowsort
SELECT ALL + - 85 + 60 * + + 43
----
2495

onlyif mysql # DIV for integer division: 
query II rowsort label-1285
SELECT ALL - + 22 DIV - 39, 23 AS col1
----
0
23

skipif mysql # not compatible
query II rowsort label-1285
SELECT ALL - + 22 / - 39, 23 AS col1
----
0
23

onlyif mysql # DIV for integer division: 
query I rowsort label-1286
SELECT + 91 DIV + 49
----
1

skipif mysql # not compatible
query I rowsort label-1286
SELECT + 91 / + 49
----
1

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

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

query II rowsort
SELECT ALL + 50 + - + 8 AS col1, 40
----
42
40

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1289
SELECT 84 + 86, + ( - MIN( 80 ) ) DIV - 41 col2
----
170
1

skipif mysql # not compatible
query II rowsort label-1289
SELECT 84 + 86, + ( - MIN ( 80 ) ) / - 41 col2
----
170
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1290
SELECT ALL + - MIN( DISTINCT 48 ) + - + 98
----
-146

skipif mysql # not compatible
query I rowsort label-1290
SELECT ALL + - MIN ( DISTINCT 48 ) + - + 98
----
-146

onlyif mysql # aggregate syntax: 
query I rowsort label-1291
SELECT ALL - MAX( - - 31 ) * - - COUNT( * ) col2
----
-31

skipif mysql # not compatible
query I rowsort label-1291
SELECT ALL - MAX ( - - 31 ) * - - COUNT ( * ) col2
----
-31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1292
SELECT 30 + ( + NULLIF ( CAST( - 16 AS SIGNED ), CASE + + 62 WHEN - - ( 14 ) THEN - MAX( DISTINCT + 78 ) * 67 END ) ) - - - 38 AS col2
----
-24

skipif mysql # not compatible
query I rowsort label-1292
SELECT 30 + ( + NULLIF ( CAST ( - 16 AS INTEGER ), CASE + + 62 WHEN - - ( 14 ) THEN - MAX ( DISTINCT + 78 ) * 67 END ) ) - - - 38 AS col2
----
-24

query I rowsort
SELECT DISTINCT + + 43 * 80 - - - COALESCE ( - - 8, - + 67 ) - + ( + 12 ) AS col1
----
3420

query I rowsort
SELECT ALL + - 18 + + 98 AS col2
----
80

query I rowsort
SELECT 10 + 80 + + 42 col2
----
132

onlyif mysql # aggregate syntax: 
query I rowsort label-1296
SELECT SUM( - - 5 ) + - 0 AS col0
----
5

skipif mysql # not compatible
query I rowsort label-1296
SELECT SUM ( - - 5 ) + - 0 AS col0
----
5

onlyif mysql # aggregate syntax: 
query II rowsort label-1297
SELECT COALESCE ( - + 64, - + COALESCE ( 39, 9 + + 88 ) ) AS col1, COUNT( * ) + + COUNT( * ) AS col1
----
-64
2

skipif mysql # not compatible
query II rowsort label-1297
SELECT COALESCE ( - + 64, - + COALESCE ( 39, 9 + + 88 ) ) AS col1, COUNT ( * ) + + COUNT ( * ) AS col1
----
-64
2

query I rowsort
SELECT ALL - 22 * 28 - + + 58
----
-674

query I rowsort
SELECT - 34 * + 64
----
-2176

query I rowsort
SELECT ALL + 40 * 32 AS col1
----
1280

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

skipif mysql # not compatible
query I rowsort label-1301
SELECT ALL + COUNT ( DISTINCT - 30 ) col0
----
1

query I rowsort
SELECT DISTINCT + 78 * + 81 * + - 32 - + 63
----
-202239

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1303
SELECT - NULLIF ( + COUNT( * ), - 49 DIV + - CAST( NULL AS SIGNED ) + ( CAST( NULL AS SIGNED ) ) + + COALESCE ( - - 10, 30, 36 * + + 70 ) ) * NULLIF ( + 48, + 55 ) + + + 96 * + COALESCE ( + 14, - 27 + + - 88 DIV + - 16 + 20 ) + 30 + - NULLIF ( 67, + + 24 * - 71 ) DIV + ( - 8 ) DIV - 1 + NULLIF ( COUNT( * ), + 5 ) + - 0
----
1319

skipif mysql # not compatible
query I rowsort label-1303
SELECT - NULLIF ( + COUNT ( * ), - 49 / + - CAST ( NULL AS INTEGER ) + ( CAST ( NULL AS INTEGER ) ) + + COALESCE ( - - 10, 30, 36 * + + 70 ) ) * NULLIF ( + 48, + 55 ) + + + 96 * + COALESCE ( + 14, - 27 + + - 88 / + - 16 + 20 ) + 30 + - NULLIF ( 67, + + 24 * - 71 ) / + ( - 8 ) / - 1 + NULLIF ( COUNT ( * ), + 5 ) + - 0
----
1319

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1304
SELECT COALESCE ( 87, + CAST( + 50 AS SIGNED ) )
----
87

skipif mysql # not compatible
query I rowsort label-1304
SELECT COALESCE ( 87, + CAST ( + 50 AS INTEGER ) )
----
87

query II rowsort
SELECT ALL + 86 AS col0, + 37
----
86
37

query I rowsort
SELECT ALL 44 * - - 14
----
616

onlyif mysql # DIV for integer division: 
query I rowsort label-1307
SELECT + 50 DIV - 14
----
-3

skipif mysql # not compatible
query I rowsort label-1307
SELECT + 50 / - 14
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-1308
SELECT + MAX( 86 ) AS col1
----
86

skipif mysql # not compatible
query I rowsort label-1308
SELECT + MAX ( 86 ) AS col1
----
86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1309
SELECT + MIN( CAST( - - ( + - 34 ) AS SIGNED ) ), 59 AS col1
----
-34
59

skipif mysql # not compatible
query II rowsort label-1309
SELECT + MIN ( CAST ( - - ( + - 34 ) AS INTEGER ) ), 59 AS col1
----
-34
59

onlyif mysql # DIV for integer division: 
query I rowsort label-1310
SELECT + 20 DIV + 46 * - - 26
----
0

skipif mysql # not compatible
query I rowsort label-1310
SELECT + 20 / + 46 * - - 26
----
0

query I rowsort
SELECT ALL 26 * - 92
----
-2392

query I rowsort
SELECT ALL ( - 30 ) * 96 col1
----
-2880

query I rowsort
SELECT DISTINCT 43 * - 94
----
-4042

query I rowsort
SELECT DISTINCT 19 * 34 AS col2
----
646

query II rowsort
SELECT DISTINCT + 7, 50 * 48 AS col0
----
7
2400

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1317
SELECT ALL + NULLIF ( - 88, - 79 * + 56 ) * 99 + - - 86 + - 18 + - - CAST( NULL AS SIGNED ) / - + 66 + - 85 - - 2
----
NULL

skipif mysql # not compatible
query I rowsort label-1317
SELECT ALL + NULLIF ( - 88, - 79 * + 56 ) * 99 + - - 86 + - 18 + - - CAST ( NULL AS INTEGER ) / - + 66 + - 85 - - 2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1318
SELECT ALL 83 * + - MAX( ALL + - 80 ) + - 16 * 75
----
5440

skipif mysql # not compatible
query I rowsort label-1318
SELECT ALL 83 * + - MAX ( ALL + - 80 ) + - 16 * 75
----
5440

query II rowsort
SELECT 61 AS col1, + 28
----
61
28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1320
SELECT ALL + + CASE - 84 WHEN + 76 * + - 49 THEN - 67 END * 10 + - 91 * - 3 - CAST( NULL AS SIGNED ) * - 97 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1320
SELECT ALL + + CASE - 84 WHEN + 76 * + - 49 THEN - 67 END * 10 + - 91 * - 3 - CAST ( NULL AS INTEGER ) * - 97 col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1321
SELECT + + 40 * - SUM( CAST( NULL AS SIGNED ) ) AS col2
----
NULL

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

query I rowsort
SELECT - - 35 + + NULLIF ( + - 61, + - 99 ) * - 26
----
1621

query I rowsort
SELECT ALL ( - + 81 )
----
-81

query II rowsort
SELECT - COALESCE ( + 31, - 77 ), 91 + - 18 AS col1
----
-31
73

query I rowsort
SELECT ALL 45 + + - 75 + 30 * + - 65 col2
----
-1980

query I rowsort
SELECT ALL + + 57 + 52
----
109

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1327
SELECT DISTINCT 93 AS col1, + 26 + - 34 + + - COUNT( * ) DIV - + 20
----
93
-8

skipif mysql # not compatible
query II rowsort label-1327
SELECT DISTINCT 93 AS col1, + 26 + - 34 + + - COUNT ( * ) / - + 20
----
93
-8

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

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

query I rowsort
SELECT - 98 * + 97 + - 28
----
-9534

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1330
SELECT ALL SUM( DISTINCT - 58 ) + + CAST( 8 AS SIGNED ) * - - 74 AS col1
----
534

skipif mysql # not compatible
query I rowsort label-1330
SELECT ALL SUM ( DISTINCT - 58 ) + + CAST ( 8 AS INTEGER ) * - - 74 AS col1
----
534

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1331
SELECT + - CASE AVG ( DISTINCT 57 ) WHEN - + 37 * ( + COALESCE ( + MAX( - - 59 ), - - 81 * - COALESCE ( - COUNT( * ), + + 42 / + 82, 9 ) + CAST( NULL AS SIGNED ) + - COUNT( * ), + 30 + 51 ) ) + 59 + ( + 13 ) - SUM( ALL + + 87 ) THEN 9 / 27 END - - CAST( - 75 AS SIGNED ) + - - 30 * COUNT( ALL + 75 ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1331
SELECT + - CASE AVG ( DISTINCT 57 ) WHEN - + 37 * ( + COALESCE ( + MAX ( - - 59 ), - - 81 * - COALESCE ( - COUNT ( * ), + + 42 / + 82, 9 ) + CAST ( NULL AS INTEGER ) + - COUNT ( * ), + 30 + 51 ) ) + 59 + ( + 13 ) - SUM ( ALL + + 87 ) THEN 9 / 27 END - - CAST ( - 75 AS INTEGER ) + - - 30 * COUNT ( ALL + 75 ) col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1332
SELECT DISTINCT + 73 AS col0, - 68 - - CAST( NULL AS SIGNED ) + - - 93 * 16 * + 48 * + + 94
----
73
NULL

skipif mysql # not compatible
query II rowsort label-1332
SELECT DISTINCT + 73 AS col0, - 68 - - CAST ( NULL AS INTEGER ) + - - 93 * 16 * + 48 * + + 94
----
73
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1333
SELECT ALL - CAST( NULL AS DECIMAL ) + + 53 * + AVG ( CAST( + + 80 AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1333
SELECT ALL - CAST ( NULL AS REAL ) + + 53 * + AVG ( CAST ( + + 80 AS INTEGER ) )
----
NULL

query I rowsort
SELECT + + 13 * - 22
----
-286

query I rowsort
SELECT - + 8 * + - 18 AS col1
----
144

query I rowsort
SELECT DISTINCT - 86 - 58
----
-144

query II rowsort
SELECT ALL 67 AS col2, 15
----
67
15

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

query I rowsort
SELECT ALL ( + ( + + 60 ) )
----
60

query I rowsort
SELECT - 10 * - - 18 AS col0
----
-180

onlyif mysql # aggregate syntax: 
query I rowsort label-1341
SELECT ALL CASE + - MAX( ALL 47 ) WHEN + - 41 THEN + 11 * - 48 * - MIN( ALL 62 ) + - + 49 ELSE + 10 * 57 * - 67 * + 8 END AS col1
----
-305520

skipif mysql # not compatible
query I rowsort label-1341
SELECT ALL CASE + - MAX ( ALL 47 ) WHEN + - 41 THEN + 11 * - 48 * - MIN ( ALL 62 ) + - + 49 ELSE + 10 * 57 * - 67 * + 8 END AS col1
----
-305520

onlyif mysql # aggregate syntax: 
query I rowsort label-1342
SELECT DISTINCT - 72 * - 62 * 83 * + 10 * - COUNT( * )
----
-3705120

skipif mysql # not compatible
query I rowsort label-1342
SELECT DISTINCT - 72 * - 62 * 83 * + 10 * - COUNT ( * )
----
-3705120

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1343
SELECT - 74 * + + 49 AS col0, CAST( 47 AS SIGNED ) AS col2
----
-3626
47

skipif mysql # not compatible
query II rowsort label-1343
SELECT - 74 * + + 49 AS col0, CAST ( 47 AS INTEGER ) AS col2
----
-3626
47

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1344
SELECT DISTINCT + CAST( NULL AS DECIMAL ) * - 36 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1344
SELECT DISTINCT + CAST ( NULL AS REAL ) * - 36 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1345
SELECT + COALESCE ( + 68, + 79, 73 * + 0 + 20 - + SUM( ALL + - 22 ) * + 56 * COALESCE ( + 56, - 59 + + 98 ) ) AS col1
----
68

skipif mysql # not compatible
query I rowsort label-1345
SELECT + COALESCE ( + 68, + 79, 73 * + 0 + 20 - + SUM ( ALL + - 22 ) * + 56 * COALESCE ( + 56, - 59 + + 98 ) ) AS col1
----
68

query I rowsort
SELECT - 44 * 98 AS col1
----
-4312

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1347
SELECT - 83 * - 47 + - CASE - 50 WHEN CAST( - + 65 AS SIGNED ) * + 8 THEN + 64 + + 92 WHEN 39 THEN NULL WHEN 93 THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1347
SELECT - 83 * - 47 + - CASE - 50 WHEN CAST ( - + 65 AS INTEGER ) * + 8 THEN + 64 + + 92 WHEN 39 THEN NULL WHEN 93 THEN NULL END AS col2
----
NULL

query I rowsort
SELECT ALL + CASE 88 WHEN + 46 - - 65 THEN 16 ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1349
SELECT DISTINCT + CASE + + 14 WHEN - + 70 * + 93 * - + 56 * - 1 * COUNT( * ) + - 46 * 30 THEN - - 97 * - COUNT( * ) * + 4 * 46 * + - COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1349
SELECT DISTINCT + CASE + + 14 WHEN - + 70 * + 93 * - + 56 * - 1 * COUNT ( * ) + - 46 * 30 THEN - - 97 * - COUNT ( * ) * + 4 * 46 * + - COUNT ( * ) END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1350
SELECT ALL ( - COALESCE ( + + COUNT( * ), - 93 + 90 * 34 ) ) * 93 * - 96 + + 70 - 77 + CASE + - MAX( DISTINCT ( + ( - 72 ) ) ) WHEN + NULLIF ( AVG ( ALL - 58 ), CAST( NULL AS SIGNED ) ) * + + 19 THEN + 56 WHEN - MIN( - 29 ) THEN NULL WHEN - 64 THEN + COUNT( DISTINCT - 11 ) * + ( - + 45 ) + - COUNT( * ) * - + 76 END + 84 * COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1350
SELECT ALL ( - COALESCE ( + + COUNT ( * ), - 93 + 90 * 34 ) ) * 93 * - 96 + + 70 - 77 + CASE + - MAX ( DISTINCT ( + ( - 72 ) ) ) WHEN + NULLIF ( AVG ( ALL - 58 ), CAST ( NULL AS INTEGER ) ) * + + 19 THEN + 56 WHEN - MIN ( - 29 ) THEN NULL WHEN - 64 THEN + COUNT ( DISTINCT - 11 ) * + ( - + 45 ) + - COUNT ( * ) * - + 76 END + 84 * COUNT ( * ) AS col1
----
NULL

query I rowsort
SELECT ALL + ( - + 21 )
----
-21

query I rowsort
SELECT DISTINCT 83 * - + 63 * + - 36 + + 31 * + 5 AS col2
----
188399

onlyif mysql # DIV for integer division: 
query I rowsort label-1353
SELECT + 66 DIV + 17
----
3

skipif mysql # not compatible
query I rowsort label-1353
SELECT + 66 / + 17
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1354
SELECT + 70 * - + ( + 78 ) + - COUNT( * ) + - 73
----
-5534

skipif mysql # not compatible
query I rowsort label-1354
SELECT + 70 * - + ( + 78 ) + - COUNT ( * ) + - 73
----
-5534

onlyif mysql # aggregate syntax: 
query I rowsort label-1355
SELECT + - 86 + + + COALESCE ( SUM( - + 88 ), MAX( DISTINCT 42 ) + - 96 - + 95, - 20 ) AS col0
----
-174

skipif mysql # not compatible
query I rowsort label-1355
SELECT + - 86 + + + COALESCE ( SUM ( - + 88 ), MAX ( DISTINCT 42 ) + - 96 - + 95, - 20 ) AS col0
----
-174

onlyif mysql # aggregate syntax: 
query I rowsort label-1356
SELECT + NULLIF ( + 54, - COUNT( * ) + - - COALESCE ( - 6, + 48 ) ) AS col1
----
54

skipif mysql # not compatible
query I rowsort label-1356
SELECT + NULLIF ( + 54, - COUNT ( * ) + - - COALESCE ( - 6, + 48 ) ) AS col1
----
54

query I rowsort
SELECT ALL 76 * - - 9 * + - 2 AS col1
----
-1368

query I rowsort
SELECT DISTINCT + 3 * + 45 + - 50 AS col2
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-1359
SELECT ALL - + 29 * - - 3 * + 41 * CASE 10 WHEN + 52 THEN NULL WHEN + - 50 THEN + 6 * + 5 END + - 5 + - 62 + + 69 * - - 83 * 12 * 86 - - 89 * + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-1359
SELECT ALL - + 29 * - - 3 * + 41 * CASE 10 WHEN + 52 THEN NULL WHEN + - 50 THEN + 6 * + 5 END + - 5 + - 62 + + 69 * - - 83 * 12 * 86 - - 89 * + COUNT ( * )
----
NULL

query I rowsort
SELECT ALL 43 * - 12
----
-516

onlyif mysql # DIV for integer division: 
query II rowsort label-1361
SELECT + + 3 DIV 48 AS col2, 75 * - 9 AS col1
----
0
-675

skipif mysql # not compatible
query II rowsort label-1361
SELECT + + 3 / 48 AS col2, 75 * - 9 AS col1
----
0
-675

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1362
SELECT + + 17 + - + CAST( - + 95 AS SIGNED ) + + 42 * + 65 AS col1
----
2842

skipif mysql # not compatible
query I rowsort label-1362
SELECT + + 17 + - + CAST ( - + 95 AS INTEGER ) + + 42 * + 65 AS col1
----
2842

onlyif mysql # aggregate syntax: 
query I rowsort label-1363
SELECT - SUM( - 87 ) col1
----
87

skipif mysql # not compatible
query I rowsort label-1363
SELECT - SUM ( - 87 ) col1
----
87

query I rowsort
SELECT + 49 + - + 77 AS col0
----
-28

query I rowsort
SELECT + 18 - - 68 - - COALESCE ( - 5, 75 + - 33 + - + 51, - 67 )
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-1366
SELECT - COALESCE ( + NULLIF ( - + 37, - 25 + COUNT( * ) ), - 78 ) AS col0
----
37

skipif mysql # not compatible
query I rowsort label-1366
SELECT - COALESCE ( + NULLIF ( - + 37, - 25 + COUNT ( * ) ), - 78 ) AS col0
----
37

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1368
SELECT ALL COUNT( * ) - + 63 + + 14 col1
----
-48

skipif mysql # not compatible
query I rowsort label-1368
SELECT ALL COUNT ( * ) - + 63 + + 14 col1
----
-48

onlyif mysql # DIV for integer division: 
query I rowsort label-1369
SELECT 93 + - 90 DIV 25
----
90

skipif mysql # not compatible
query I rowsort label-1369
SELECT 93 + - 90 / 25
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-1370
SELECT DISTINCT - 29 - + 70 * + - COUNT( * ) AS col2
----
41

skipif mysql # not compatible
query I rowsort label-1370
SELECT DISTINCT - 29 - + 70 * + - COUNT ( * ) AS col2
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-1371
SELECT COALESCE ( COALESCE ( + - ( - + 24 ), - + 88, - 56 * COUNT( * ) + - NULLIF ( 2, - 21 ) * - - MIN( 67 ) ), - 40 )
----
24

skipif mysql # not compatible
query I rowsort label-1371
SELECT COALESCE ( COALESCE ( + - ( - + 24 ), - + 88, - 56 * COUNT ( * ) + - NULLIF ( 2, - 21 ) * - - MIN ( 67 ) ), - 40 )
----
24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1372
SELECT CASE - - 5 WHEN - 10 * + 11 THEN + - 74 - - 68 DIV - 38 WHEN - + COUNT( * ) * + 33 * - 41 + 64 THEN NULL ELSE 94 * - + 7 - + 33 END + - 75
----
-766

skipif mysql # not compatible
query I rowsort label-1372
SELECT CASE - - 5 WHEN - 10 * + 11 THEN + - 74 - - 68 / - 38 WHEN - + COUNT ( * ) * + 33 * - 41 + 64 THEN NULL ELSE 94 * - + 7 - + 33 END + - 75
----
-766

onlyif mysql # aggregate syntax: 
query I rowsort label-1373
SELECT ALL - 96 * CASE - 89 WHEN 91 THEN NULL WHEN + - 12 + - CASE 49 WHEN 61 THEN 98 END THEN SUM( - 96 ) END * + 62 * - CASE - 91 WHEN COUNT( * ) * 54 + - MIN( ALL - 43 ) THEN NULL ELSE - 0 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1373
SELECT ALL - 96 * CASE - 89 WHEN 91 THEN NULL WHEN + - 12 + - CASE 49 WHEN 61 THEN 98 END THEN SUM ( - 96 ) END * + 62 * - CASE - 91 WHEN COUNT ( * ) * 54 + - MIN ( ALL - 43 ) THEN NULL ELSE - 0 END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1374
SELECT 34 + - SUM( + - 73 ) DIV + NULLIF ( - 75, - + NULLIF ( - 39, + 29 + - COUNT( * ) + + + 39 ) )
----
34

skipif mysql # not compatible
query I rowsort label-1374
SELECT 34 + - SUM ( + - 73 ) / + NULLIF ( - 75, - + NULLIF ( - 39, + 29 + - COUNT ( * ) + + + 39 ) )
----
34

onlyif mysql # aggregate syntax: 
query II rowsort label-1375
SELECT ALL 51 * - + 34 * + - COUNT( * ), 79 AS col1
----
1734
79

skipif mysql # not compatible
query II rowsort label-1375
SELECT ALL 51 * - + 34 * + - COUNT ( * ), 79 AS col1
----
1734
79

query II rowsort
SELECT DISTINCT 87 AS col0, 70
----
87
70

query I rowsort
SELECT 53 + - + 44
----
9

query II rowsort
SELECT DISTINCT 45 AS col1, + 45
----
45
45

query II rowsort
SELECT ALL 96 AS col0, - ( - 73 ) AS col1
----
96
73

query I rowsort
SELECT 69 + + 40 AS col1
----
109

onlyif mysql # DIV for integer division: 
query I rowsort label-1381
SELECT DISTINCT + 41 DIV + 60
----
0

skipif mysql # not compatible
query I rowsort label-1381
SELECT DISTINCT + 41 / + 60
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1382
SELECT 53 DIV + 55 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1382
SELECT 53 / + 55 AS col2
----
0

query I rowsort
SELECT ALL + 23 + 4 AS col1
----
27

onlyif mysql # DIV for integer division: 
query I rowsort label-1384
SELECT ALL + 51 DIV + - 5
----
-10

skipif mysql # not compatible
query I rowsort label-1384
SELECT ALL + 51 / + - 5
----
-10

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1386
SELECT COALESCE ( 51, - 51 ) * - 23 + + 80 - ( + ( + ( - 29 ) ) ) - + + 66 + CAST( - 22 AS SIGNED ) AS col1
----
-1152

skipif mysql # not compatible
query I rowsort label-1386
SELECT COALESCE ( 51, - 51 ) * - 23 + + 80 - ( + ( + ( - 29 ) ) ) - + + 66 + CAST ( - 22 AS INTEGER ) AS col1
----
-1152

onlyif mysql # aggregate syntax: 
query I rowsort label-1387
SELECT ALL - COUNT( 44 ) * COUNT( - 59 )
----
-1

skipif mysql # not compatible
query I rowsort label-1387
SELECT ALL - COUNT ( 44 ) * COUNT ( - 59 )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1388
SELECT ALL + 24 + + 21 * - COUNT( DISTINCT + 94 ) + + - 78 AS col0, - CAST( NULL AS SIGNED )
----
-75
NULL

skipif mysql # not compatible
query II rowsort label-1388
SELECT ALL + 24 + + 21 * - COUNT ( DISTINCT + 94 ) + + - 78 AS col0, - CAST ( NULL AS INTEGER )
----
-75
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1389
SELECT 4 AS col2, 40 + + COALESCE ( - 34, - 52 ) - + COUNT( * ) + + MAX( + 87 ) + + 78 - + + 51 * - + COUNT( * )
----
4
221

skipif mysql # not compatible
query II rowsort label-1389
SELECT 4 AS col2, 40 + + COALESCE ( - 34, - 52 ) - + COUNT ( * ) + + MAX ( + 87 ) + + 78 - + + 51 * - + COUNT ( * )
----
4
221

onlyif mysql # aggregate syntax: 
query I rowsort label-1390
SELECT ALL - 60 + + NULLIF ( - 24, + - 12 ) + NULLIF ( 53, - - 90 ) - + - COUNT( * ) * COUNT( * )
----
-30

skipif mysql # not compatible
query I rowsort label-1390
SELECT ALL - 60 + + NULLIF ( - 24, + - 12 ) + NULLIF ( 53, - - 90 ) - + - COUNT ( * ) * COUNT ( * )
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-1391
SELECT ALL - 51 * + COUNT( * ) * + 23
----
-1173

skipif mysql # not compatible
query I rowsort label-1391
SELECT ALL - 51 * + COUNT ( * ) * + 23
----
-1173

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1393
SELECT ALL + 93 + - 77 * 1, - 56 + + + 57 * - COUNT( * ) + CAST( NULL AS SIGNED ) AS col1
----
16
NULL

skipif mysql # not compatible
query II rowsort label-1393
SELECT ALL + 93 + - 77 * 1, - 56 + + + 57 * - COUNT ( * ) + CAST ( NULL AS INTEGER ) AS col1
----
16
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1394
SELECT DISTINCT + SUM( 65 ) + - 4 col0, 8 AS col1
----
61
8

skipif mysql # not compatible
query II rowsort label-1394
SELECT DISTINCT + SUM ( 65 ) + - 4 col0, 8 AS col1
----
61
8

query I rowsort
SELECT ALL + 13 + + + 0
----
13

query I rowsort
SELECT ALL 88 + + - 56 AS col2
----
32

query II rowsort
SELECT ALL - + 27, 70 AS col1
----
-27
70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1398
SELECT SUM( + CAST( 54 AS SIGNED ) ) + + 97
----
151

skipif mysql # not compatible
query I rowsort label-1398
SELECT SUM ( + CAST ( 54 AS INTEGER ) ) + + 97
----
151

query I rowsort
SELECT + 71 * - + 79 AS col2
----
-5609

query I rowsort
SELECT ALL + 63 * - 34 + + 1 * 59
----
-2083

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1402
SELECT DISTINCT + 19 - - + COUNT( * ) AS col1
----
20

skipif mysql # not compatible
query I rowsort label-1402
SELECT DISTINCT + 19 - - + COUNT ( * ) AS col1
----
20

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

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

query I rowsort
SELECT ALL 77 * ( + - 34 )
----
-2618

onlyif mysql # aggregate syntax: 
query I rowsort label-1405
SELECT - SUM( ALL - 7 ) AS col1
----
7

skipif mysql # not compatible
query I rowsort label-1405
SELECT - SUM ( ALL - 7 ) AS col1
----
7

query II rowsort
SELECT DISTINCT + + 94 * + - ( - 30 ) AS col1, - 81
----
2820
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-1407
SELECT DISTINCT 61 * MIN( + 75 ) + ( - 38 )
----
4537

skipif mysql # not compatible
query I rowsort label-1407
SELECT DISTINCT 61 * MIN ( + 75 ) + ( - 38 )
----
4537

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1408
SELECT ALL - MAX( ALL 5 ) DIV + ( + MAX( + + 86 ) ) * + COUNT( * ) + + 16 DIV - + NULLIF ( 40, 12 * + 57 ) + + + 50 AS col1
----
50

skipif mysql # not compatible
query I rowsort label-1408
SELECT ALL - MAX ( ALL 5 ) / + ( + MAX ( + + 86 ) ) * + COUNT ( * ) + + 16 / - + NULLIF ( 40, 12 * + 57 ) + + + 50 AS col1
----
50

onlyif mysql # DIV for integer division: 
query II rowsort label-1409
SELECT ALL 83 AS col0, - 56 DIV + - 37 AS col1
----
83
1

skipif mysql # not compatible
query II rowsort label-1409
SELECT ALL 83 AS col0, - 56 / + - 37 AS col1
----
83
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1410
SELECT COUNT( * ) - ( + 34 )
----
-33

skipif mysql # not compatible
query I rowsort label-1410
SELECT COUNT ( * ) - ( + 34 )
----
-33

query I rowsort
SELECT 18 * - 7
----
-126

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1412
SELECT ALL 92 AS col0, 85 / - CAST( NULL AS SIGNED )
----
92
NULL

skipif mysql # not compatible
query II rowsort label-1412
SELECT ALL 92 AS col0, 85 / - CAST ( NULL AS INTEGER )
----
92
NULL

query II rowsort
SELECT - 93 AS col1, 83 AS col2
----
-93
83

onlyif mysql # aggregate syntax: 
query I rowsort label-1414
SELECT COUNT( * ) * - MIN( DISTINCT + 18 )
----
-18

skipif mysql # not compatible
query I rowsort label-1414
SELECT COUNT ( * ) * - MIN ( DISTINCT + 18 )
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-1415
SELECT ALL COUNT( * ) + - 43 * - 33 AS col0
----
1420

skipif mysql # not compatible
query I rowsort label-1415
SELECT ALL COUNT ( * ) + - 43 * - 33 AS col0
----
1420

onlyif mysql # aggregate syntax: 
query I rowsort label-1416
SELECT ALL 15 * + MIN( DISTINCT + 90 ) AS col2
----
1350

skipif mysql # not compatible
query I rowsort label-1416
SELECT ALL 15 * + MIN ( DISTINCT + 90 ) AS col2
----
1350

onlyif mysql # DIV for integer division: 
query I rowsort label-1417
SELECT ALL - 91 + - 51 DIV + 39 AS col2
----
-92

skipif mysql # not compatible
query I rowsort label-1417
SELECT ALL - 91 + - 51 / + 39 AS col2
----
-92

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1418
SELECT 59 - COUNT( * ) * 75 + + 61, - 1 DIV - 44 AS col1
----
45
0

skipif mysql # not compatible
query II rowsort label-1418
SELECT 59 - COUNT ( * ) * 75 + + 61, - 1 / - 44 AS col1
----
45
0

query I rowsort
SELECT DISTINCT 20 + - 10 AS col2
----
10

onlyif mysql # aggregate syntax: 
query II rowsort label-1420
SELECT + COUNT( * ), 94 * 87 col0
----
1
8178

skipif mysql # not compatible
query II rowsort label-1420
SELECT + COUNT ( * ), 94 * 87 col0
----
1
8178

query I rowsort
SELECT ( + CASE + + ( + + 68 ) WHEN 69 + + 22 THEN + - 54 END ) + 81
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1422
SELECT + SUM( DISTINCT + 49 )
----
49

skipif mysql # not compatible
query I rowsort label-1422
SELECT + SUM ( DISTINCT + 49 )
----
49

query I rowsort
SELECT 68 + - 62
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1424
SELECT DISTINCT - COALESCE ( + + CAST( 85 AS SIGNED ), - 7 + - 92, - + CAST( + + 41 AS SIGNED ) )
----
-85

skipif mysql # not compatible
query I rowsort label-1424
SELECT DISTINCT - COALESCE ( + + CAST ( 85 AS INTEGER ), - 7 + - 92, - + CAST ( + + 41 AS INTEGER ) )
----
-85

query I rowsort
SELECT + ( - 23 ) * 24 + + + ( + COALESCE ( - 28, + - 16, + 57 + 96 ) ) + + ( + 72 ) AS col0
----
-508

onlyif mysql # aggregate syntax: 
query I rowsort label-1426
SELECT ALL 62 * - COUNT( * ) * + 51 + - - 27 + NULLIF ( - 98, 30 ) AS col1
----
-3233

skipif mysql # not compatible
query I rowsort label-1426
SELECT ALL 62 * - COUNT ( * ) * + 51 + - - 27 + NULLIF ( - 98, 30 ) AS col1
----
-3233

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1427
SELECT ALL + + 8 * + + CAST( - - 94 AS SIGNED ) - + 0 + + COALESCE ( - + 97, - 24 + - 17 )
----
655

skipif mysql # not compatible
query I rowsort label-1427
SELECT ALL + + 8 * + + CAST ( - - 94 AS INTEGER ) - + 0 + + COALESCE ( - + 97, - 24 + - 17 )
----
655

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1428
SELECT + + NULLIF ( - NULLIF ( - CASE - - 44 WHEN - 59 * + 64 + - AVG ( - 49 ) + CASE 42 WHEN - + 45 THEN NULL WHEN + SUM( ALL 59 ) * - - ( + 56 ) - - + 65 - - CAST( NULL AS SIGNED ) + COUNT( * ) * - - SUM( + + 6 ) + - 27 THEN NULL WHEN - 9 THEN NULL ELSE - 98 END * - 97 / + + 36 / - 33 THEN - - COUNT( * ) WHEN - 77 + + CASE 48 WHEN COUNT( * ) * + COUNT( * ) THEN + 96 WHEN - 45 THEN NULL ELSE NULL END THEN NULL END, 28 + + COUNT( * ) ), + COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1428
SELECT + + NULLIF ( - NULLIF ( - CASE - - 44 WHEN - 59 * + 64 + - AVG ( - 49 ) + CASE 42 WHEN - + 45 THEN NULL WHEN + SUM ( ALL 59 ) * - - ( + 56 ) - - + 65 - - CAST ( NULL AS INTEGER ) + COUNT ( * ) * - - SUM ( + + 6 ) + - 27 THEN NULL WHEN - 9 THEN NULL ELSE - 98 END * - 97 / + + 36 / - 33 THEN - - COUNT ( * ) WHEN - 77 + + CASE 48 WHEN COUNT ( * ) * + COUNT ( * ) THEN + 96 WHEN - 45 THEN NULL ELSE NULL END THEN NULL END, 28 + + COUNT ( * ) ), + COUNT ( * ) )
----
NULL

query II rowsort
SELECT ALL - 15 AS col1, 8 - - - ( 94 )
----
-15
-86

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

query I rowsort
SELECT ALL + ( + 95 ) * + - 43
----
-4085

query I rowsort
SELECT ALL - 87 * + - COALESCE ( - + NULLIF ( + 15, + - 46 ), ( COALESCE ( - 94, + 53 ) ), - - 14 ) * 18 - 96 + 42 col2
----
-23544

query I rowsort
SELECT DISTINCT + + 21 * - - 55 * + 41
----
47355

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1435
SELECT - 22 + - + ( + 21 ) * - - 45 * + COUNT( * ) + 3 col1
----
-964

skipif mysql # not compatible
query I rowsort label-1435
SELECT - 22 + - + ( + 21 ) * - - 45 * + COUNT ( * ) + 3 col1
----
-964

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

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

query I rowsort
SELECT DISTINCT + + COALESCE ( - - 1, - 37 + + - 28 * 0, + ( 61 ) ) * 10 * + + 29
----
290

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1439
SELECT DISTINCT + - 42 * CASE - 53 WHEN 45 THEN NULL WHEN + + 40 - + 69 + - 20 / - 71 THEN - 7 * - 55 + - 18 WHEN - - COUNT( ( - - 26 ) ) + - 95 / + 80 THEN + 21 WHEN 71 THEN 36 - - + 85 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1439
SELECT DISTINCT + - 42 * CASE - 53 WHEN 45 THEN NULL WHEN + + 40 - + 69 + - 20 / - 71 THEN - 7 * - 55 + - 18 WHEN - - COUNT ( ( - - 26 ) ) + - 95 / + 80 THEN + 21 WHEN 71 THEN 36 - - + 85 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1440
SELECT - - 2 * 69 DIV + 71 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1440
SELECT - - 2 * 69 / + 71 AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1441
SELECT ALL + MIN( DISTINCT - + 92 ) AS col2
----
-92

skipif mysql # not compatible
query I rowsort label-1441
SELECT ALL + MIN ( DISTINCT - + 92 ) AS col2
----
-92

query I rowsort
SELECT - - 53 col1
----
53

onlyif mysql # DIV for integer division: 
query I rowsort label-1443
SELECT - + ( + + 62 ) + + 53 DIV + - 77
----
-62

skipif mysql # not compatible
query I rowsort label-1443
SELECT - + ( + + 62 ) + + 53 / + - 77
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-1444
SELECT COALESCE ( COUNT( * ), + 77 * + 59 + - 48 )
----
1

skipif mysql # not compatible
query I rowsort label-1444
SELECT COALESCE ( COUNT ( * ), + 77 * + 59 + - 48 )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-1445
SELECT COUNT( * ), ( 21 ) * - MIN( - 11 ) AS col2
----
1
231

skipif mysql # not compatible
query II rowsort label-1445
SELECT COUNT ( * ), ( 21 ) * - MIN ( - 11 ) AS col2
----
1
231

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1446
SELECT - 33 + COUNT( + 99 ) DIV ( + + 72 )
----
-33

skipif mysql # not compatible
query I rowsort label-1446
SELECT - 33 + COUNT ( + 99 ) / ( + + 72 )
----
-33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1447
SELECT - + 24 + - - SUM( DISTINCT - CAST( + - 51 AS SIGNED ) ) AS col0
----
27

skipif mysql # not compatible
query I rowsort label-1447
SELECT - + 24 + - - SUM ( DISTINCT - CAST ( + - 51 AS INTEGER ) ) AS col0
----
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1448
SELECT DISTINCT + ( + 34 ) * - - CASE + + COUNT( 70 ) WHEN - - 6 + - 48 THEN + - COUNT( * ) + - ( + COUNT( * ) ) WHEN 8 - 48 + + MIN( + 42 ) THEN CASE 37 WHEN + ( - + 41 ) + - + SUM( DISTINCT - - 89 ) + CAST( + - 2 AS SIGNED ) * - AVG ( + 85 ) * + + 90 + - 12 THEN NULL ELSE COALESCE ( - + 32, - - 74, + 27 ) * - 2 + + COUNT( * ) END * + - 24 ELSE - 89 END - + - 48 + + CAST( NULLIF ( - 53, 18 - + 35 ) AS SIGNED ) * - 13
----
-2289

skipif mysql # not compatible
query I rowsort label-1448
SELECT DISTINCT + ( + 34 ) * - - CASE + + COUNT ( 70 ) WHEN - - 6 + - 48 THEN + - COUNT ( * ) + - ( + COUNT ( * ) ) WHEN 8 - 48 + + MIN ( + 42 ) THEN CASE 37 WHEN + ( - + 41 ) + - + SUM ( DISTINCT - - 89 ) + CAST ( + - 2 AS INTEGER ) * - AVG ( + 85 ) * + + 90 + - 12 THEN NULL ELSE COALESCE ( - + 32, - - 74, + 27 ) * - 2 + + COUNT ( * ) END * + - 24 ELSE - 89 END - + - 48 + + CAST ( NULLIF ( - 53, 18 - + 35 ) AS INTEGER ) * - 13
----
-2289

query I rowsort
SELECT - 27 + + - 80 * NULLIF ( 40, - 42 / - + 58 ) AS col1
----
-3227

onlyif mysql # aggregate syntax: 
query I rowsort label-1450
SELECT - COUNT( * ) + + + 62 * - + 17 + 12 - - 76 * - COUNT( * ) AS col0
----
-1119

skipif mysql # not compatible
query I rowsort label-1450
SELECT - COUNT ( * ) + + + 62 * - + 17 + 12 - - 76 * - COUNT ( * ) AS col0
----
-1119

onlyif mysql # aggregate syntax: 
query II rowsort label-1451
SELECT ALL 15 + + 57 AS col1, COUNT( * ) * + 7 * + 4 AS col1
----
72
28

skipif mysql # not compatible
query II rowsort label-1451
SELECT ALL 15 + + 57 AS col1, COUNT ( * ) * + 7 * + 4 AS col1
----
72
28

query I rowsort
SELECT DISTINCT + 50 * + 96 col1
----
4800

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1453
SELECT ALL - CAST( COUNT( ALL + - CAST( NULL AS SIGNED ) ) AS SIGNED ) + + COALESCE ( - 82, + 70 + - COALESCE ( 69, 74 ) ) * + - 9 + - 67
----
671

skipif mysql # not compatible
query I rowsort label-1453
SELECT ALL - CAST ( COUNT ( ALL + - CAST ( NULL AS INTEGER ) ) AS INTEGER ) + + COALESCE ( - 82, + 70 + - COALESCE ( 69, 74 ) ) * + - 9 + - 67
----
671

onlyif mysql # aggregate syntax: 
query I rowsort label-1454
SELECT + MAX( - 62 ) + - - 96 + - 15 * + - ( - - 31 ) * - 73 AS col2
----
-33911

skipif mysql # not compatible
query I rowsort label-1454
SELECT + MAX ( - 62 ) + - - 96 + - 15 * + - ( - - 31 ) * - 73 AS col2
----
-33911

query I rowsort
SELECT ALL - ( + 46 ) * + + 15 col1
----
-690

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

skipif mysql # not compatible
query I rowsort label-1456
SELECT ALL - 23 + + COUNT ( * ) AS col0
----
-22

query I rowsort
SELECT ALL 56 + - - 96 AS col0
----
152

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1459
SELECT + COALESCE ( 66, - - 56, - 60 + + NULLIF ( + + 28, + - COUNT( 91 ) * 13 ) + - CAST( NULL AS SIGNED ) - COUNT( * ) + + 30 * - 26 DIV - 21 ) * 56 AS col0
----
3696

skipif mysql # not compatible
query I rowsort label-1459
SELECT + COALESCE ( 66, - - 56, - 60 + + NULLIF ( + + 28, + - COUNT ( 91 ) * 13 ) + - CAST ( NULL AS INTEGER ) - COUNT ( * ) + + 30 * - 26 / - 21 ) * 56 AS col0
----
3696

onlyif mysql # aggregate syntax: 
query I rowsort label-1460
SELECT - CASE - ( + COUNT( * ) ) WHEN - - 0 THEN 22 ELSE - 77 END col2
----
77

skipif mysql # not compatible
query I rowsort label-1460
SELECT - CASE - ( + COUNT ( * ) ) WHEN - - 0 THEN 22 ELSE - 77 END col2
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-1461
SELECT ALL 44 * 72 - COUNT( * ) AS col2
----
3167

skipif mysql # not compatible
query I rowsort label-1461
SELECT ALL 44 * 72 - COUNT ( * ) AS col2
----
3167

onlyif mysql # aggregate syntax: 
query I rowsort label-1462
SELECT + MIN( 28 ) * - - 64 AS col1
----
1792

skipif mysql # not compatible
query I rowsort label-1462
SELECT + MIN ( 28 ) * - - 64 AS col1
----
1792

query I rowsort
SELECT - + 41 * ( - 40 )
----
1640

query I rowsort
SELECT ALL + 36 * 88 + + 55
----
3223

query I rowsort
SELECT + CASE - 59 WHEN - 12 THEN - AVG ( DISTINCT + 43 ) WHEN + + 54 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1466
SELECT 55 * + 35 * - 79 - + 94 + - COUNT( * ) * 61 - + 29 + + 4 * 25 * - 50 * + 50 * - 96 * + MAX( DISTINCT - + CAST( NULL AS SIGNED ) ) * 57 + + 90 * + MIN( + - NULLIF ( + - 13, + 51 * - ( + NULLIF ( + 71, COALESCE ( - + 4, 28 * + + 11 ) + - 99 + + 50 * - 30 * + + 64 + - - 1 ) ) + - 36 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1466
SELECT 55 * + 35 * - 79 - + 94 + - COUNT ( * ) * 61 - + 29 + + 4 * 25 * - 50 * + 50 * - 96 * + MAX ( DISTINCT - + CAST ( NULL AS INTEGER ) ) * 57 + + 90 * + MIN ( + - NULLIF ( + - 13, + 51 * - ( + NULLIF ( + 71, COALESCE ( - + 4, 28 * + + 11 ) + - 99 + + 50 * - 30 * + + 64 + - - 1 ) ) + - 36 ) )
----
NULL

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1469
SELECT - 65 + - 59 AS col0, 24 * - + 69 * - COUNT( * ) AS col0
----
-124
1656

skipif mysql # not compatible
query II rowsort label-1469
SELECT - 65 + - 59 AS col0, 24 * - + 69 * - COUNT ( * ) AS col0
----
-124
1656

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

skipif mysql # not compatible
query I rowsort label-1470
SELECT ALL - 9 / 45
----
0

onlyif mysql # CAST syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-1471
SELECT - - 65 DIV + ( NULLIF ( + - 66, + 74 DIV - + 72 * - 83 DIV + CAST( - 35 AS DECIMAL ) ) ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1471
SELECT - - 65 / + ( NULLIF ( + - 66, + 74 / - + 72 * - 83 / + CAST ( - 35 AS REAL ) ) ) AS col0
----
0

query II rowsort
SELECT + - 54 * - 16 AS col0, - 75
----
864
-75

query I rowsort
SELECT 48 * - 45 + + ( 77 ) * 10 + + - ( + 73 ) AS col1
----
-1463

query I rowsort
SELECT - + 79 * + 96 AS col2
----
-7584

onlyif mysql # aggregate syntax: 
query II rowsort label-1475
SELECT - + 73 + - 66 AS col0, + 91 * - CASE - + 48 WHEN + COUNT( * ) THEN + + 35 + - 28 ELSE NULL END
----
-139
NULL

skipif mysql # not compatible
query II rowsort label-1475
SELECT - + 73 + - 66 AS col0, + 91 * - CASE - + 48 WHEN + COUNT ( * ) THEN + + 35 + - 28 ELSE NULL END
----
-139
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-1476
SELECT ALL 12 * - 8 + - 54, 77 + - 75 DIV 43 + - 45 AS col2
----
-150
31

skipif mysql # not compatible
query II rowsort label-1476
SELECT ALL 12 * - 8 + - 54, 77 + - 75 / 43 + - 45 AS col2
----
-150
31

onlyif mysql # aggregate syntax: 
query II rowsort label-1477
SELECT DISTINCT ( - 72 ) * - + 17 col0, 30 * - - COUNT( * )
----
1224
30

skipif mysql # not compatible
query II rowsort label-1477
SELECT DISTINCT ( - 72 ) * - + 17 col0, 30 * - - COUNT ( * )
----
1224
30

query I rowsort
SELECT ALL 18 * + 60 + 4
----
1084

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1480
SELECT DISTINCT - 15 * - + 5 + - ( COUNT( * ) ) col2
----
74

skipif mysql # not compatible
query I rowsort label-1480
SELECT DISTINCT - 15 * - + 5 + - ( COUNT ( * ) ) col2
----
74

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-1481
SELECT COUNT( * ), 64 * SUM( CAST( NULL AS DECIMAL ) ) AS col2
----
1
NULL

skipif mysql # not compatible
query II rowsort label-1481
SELECT COUNT ( * ), 64 * SUM ( CAST ( NULL AS REAL ) ) AS col2
----
1
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1482
SELECT COUNT( * ), - 25 * - 83 AS col0
----
1
2075

skipif mysql # not compatible
query II rowsort label-1482
SELECT COUNT ( * ), - 25 * - 83 AS col0
----
1
2075

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1483
SELECT ALL - 92 + + COALESCE ( ( 6 ), - 73 * ( + - 61 ) * 63 + - + MIN( 78 ) ) * - COALESCE ( + 99, + + CAST( NULL AS SIGNED ) )
----
-686

skipif mysql # not compatible
query I rowsort label-1483
SELECT ALL - 92 + + COALESCE ( ( 6 ), - 73 * ( + - 61 ) * 63 + - + MIN ( 78 ) ) * - COALESCE ( + 99, + + CAST ( NULL AS INTEGER ) )
----
-686

onlyif mysql # DIV for integer division: 
query I rowsort label-1484
SELECT - 50 DIV - + 12
----
4

skipif mysql # not compatible
query I rowsort label-1484
SELECT - 50 / - + 12
----
4

onlyif mysql # DIV for integer division: 
query I rowsort label-1485
SELECT - 62 - 32 + 2 - - 41 DIV - 6
----
-98

skipif mysql # not compatible
query I rowsort label-1485
SELECT - 62 - 32 + 2 - - 41 / - 6
----
-98

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1486
SELECT DISTINCT CAST( NULL AS SIGNED ), - 85 AS col1
----
NULL
-85

skipif mysql # not compatible
query II rowsort label-1486
SELECT DISTINCT CAST ( NULL AS INTEGER ), - 85 AS col1
----
NULL
-85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1487
SELECT ALL CAST( + - 72 AS SIGNED )
----
-72

skipif mysql # not compatible
query I rowsort label-1487
SELECT ALL CAST ( + - 72 AS INTEGER )
----
-72

query I rowsort
SELECT - CASE + + 73 WHEN 87 + 49 THEN + 20 END
----
NULL

query I rowsort
SELECT ALL - 1 * - + 24
----
24

query I rowsort
SELECT DISTINCT + 47 - 75
----
-28

query I rowsort
SELECT ALL - 92 * - 3
----
276

onlyif mysql # DIV for integer division: 
query I rowsort label-1492
SELECT DISTINCT - 20 DIV 27 * + ( + - 45 )
----
0

skipif mysql # not compatible
query I rowsort label-1492
SELECT DISTINCT - 20 / 27 * + ( + - 45 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1493
SELECT ALL COUNT( * ) - 88 AS col0
----
-87

skipif mysql # not compatible
query I rowsort label-1493
SELECT ALL COUNT ( * ) - 88 AS col0
----
-87

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

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

query I rowsort
SELECT - 67 * - 78
----
5226

query I rowsort
SELECT ALL - 2 * - 80 * 56 AS col0
----
8960

query I rowsort
SELECT DISTINCT + 47 - - + 8 * - 59 * - + 75 AS col0
----
35447

query I rowsort
SELECT DISTINCT - 84 * - 24
----
2016

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query II rowsort label-1499
SELECT 28 col2, + 11 + + + NULLIF ( - 19, + 64 + + 58 + - + CAST( NULL AS DECIMAL ) + COALESCE ( + 30, + - 16, 20 DIV + - 0 * COUNT( * ) + + CAST( NULL AS SIGNED ), - CAST( + 77 AS SIGNED ) * 71 + + 99 + + - 60 + + 1 ) ) + - ( 79 ) * - 50 + - + 70 DIV SUM( + - 35 ) * 94 + + 85 AS col0
----
28
4215

skipif mysql # not compatible
query II rowsort label-1499
SELECT 28 col2, + 11 + + + NULLIF ( - 19, + 64 + + 58 + - + CAST ( NULL AS REAL ) + COALESCE ( + 30, + - 16, 20 / + - 0 * COUNT ( * ) + + CAST ( NULL AS INTEGER ), - CAST ( + 77 AS INTEGER ) * 71 + + 99 + + - 60 + + 1 ) ) + - ( 79 ) * - 50 + - + 70 / SUM ( + - 35 ) * 94 + + 85 AS col0
----
28
4215

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1500
SELECT 63 AS col1, + 94 DIV + + ( + - 36 ) * + COUNT( * ) + + + COUNT( DISTINCT + COALESCE ( + 25, - NULLIF ( 79, - 25 ) ) ) + - + COUNT( * ) + MAX( - 90 ) DIV - - MIN( + 7 ) + - 75 * - 57
----
63
4261

skipif mysql # not compatible
query II rowsort label-1500
SELECT 63 AS col1, + 94 / + + ( + - 36 ) * + COUNT ( * ) + + + COUNT ( DISTINCT + COALESCE ( + 25, - NULLIF ( 79, - 25 ) ) ) + - + COUNT ( * ) + MAX ( - 90 ) / - - MIN ( + 7 ) + - 75 * - 57
----
63
4261

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1501
SELECT - - COUNT( 41 ) DIV + ( + + CAST( - 66 AS SIGNED ) ) + - - 61
----
61

skipif mysql # not compatible
query I rowsort label-1501
SELECT - - COUNT ( 41 ) / + ( + + CAST ( - 66 AS INTEGER ) ) + - - 61
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-1502
SELECT + CASE - ( COUNT( * ) ) WHEN - 77 THEN NULLIF ( 90, - 39 ) + - 7 ELSE NULL END + - 89 / + ( + - 37 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1502
SELECT + CASE - ( COUNT ( * ) ) WHEN - 77 THEN NULLIF ( 90, - 39 ) + - 7 ELSE NULL END + - 89 / + ( + - 37 ) AS col0
----
NULL

query I rowsort
SELECT ( 21 ) * 36 AS col2
----
756

query II rowsort
SELECT 26 * 83 + - - 17, 23 AS col0
----
2175
23

query I rowsort
SELECT + 73 - + 4
----
69

query II rowsort
SELECT DISTINCT - 96 AS col0, - 81 + + 91
----
-96
10

query II rowsort
SELECT ALL - - 82, + NULLIF ( 28, - 91 ) AS col2
----
82
28

query I rowsort
SELECT ALL - 24 * - + 42 + + 18 * + 19
----
1350

query II rowsort
SELECT DISTINCT - + 5, - ( - 70 ) AS col1
----
-5
70

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

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

query II rowsort
SELECT 64, 92 - 22 col1
----
64
70

query I rowsort
SELECT + 62 * - 40 AS col0
----
-2480

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1513
SELECT + CASE + + 15 WHEN + - 17 - - 97 * + 45 + 13 + 64 THEN + 54 ELSE NULL END AS col1, 12 - - - COUNT( * ) DIV - 39 + - 99 DIV - + 59 AS col2
----
NULL
13

skipif mysql # not compatible
query II rowsort label-1513
SELECT + CASE + + 15 WHEN + - 17 - - 97 * + 45 + 13 + 64 THEN + 54 ELSE NULL END AS col1, 12 - - - COUNT ( * ) / - 39 + - 99 / - + 59 AS col2
----
NULL
13

query I rowsort
SELECT DISTINCT + 86 * + 4 AS col2
----
344

query I rowsort
SELECT ALL 12 + 97 AS col2
----
109

onlyif mysql # DIV for integer division: 
query I rowsort label-1516
SELECT ALL - 5 DIV - 70 * - 87 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1516
SELECT ALL - 5 / - 70 * - 87 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1517
SELECT DISTINCT - NULLIF ( COUNT( * ), 56 )
----
-1

skipif mysql # not compatible
query I rowsort label-1517
SELECT DISTINCT - NULLIF ( COUNT ( * ), 56 )
----
-1

query I rowsort
SELECT ALL - 96 + 1 * 71 AS col0
----
-25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1519
SELECT + CAST( + 15 AS SIGNED ) * - - 70 * + + 86 + 25 AS col0
----
90325

skipif mysql # not compatible
query I rowsort label-1519
SELECT + CAST ( + 15 AS INTEGER ) * - - 70 * + + 86 + 25 AS col0
----
90325

onlyif mysql # aggregate syntax: 
query I rowsort label-1520
SELECT ALL 80 + - COUNT( * ) * - 14 AS col1
----
94

skipif mysql # not compatible
query I rowsort label-1520
SELECT ALL 80 + - COUNT ( * ) * - 14 AS col1
----
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1521
SELECT COUNT( * ) + - 85 * + - 27 + + + CAST( NULL AS SIGNED ), COUNT( * ) + - 43 + 76 * 94 AS col0
----
NULL
7102

skipif mysql # not compatible
query II rowsort label-1521
SELECT COUNT ( * ) + - 85 * + - 27 + + + CAST ( NULL AS INTEGER ), COUNT ( * ) + - 43 + 76 * 94 AS col0
----
NULL
7102

query I rowsort
SELECT DISTINCT - 87 * + 7 * 27 AS col1
----
-16443

onlyif mysql # aggregate syntax: 
query I rowsort label-1523
SELECT 59 + - MIN( - 15 ) * ( + + COUNT( * ) ) + - COUNT( * ) AS col2
----
73

skipif mysql # not compatible
query I rowsort label-1523
SELECT 59 + - MIN ( - 15 ) * ( + + COUNT ( * ) ) + - COUNT ( * ) AS col2
----
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1524
SELECT 94 - 13 AS col2, AVG ( 43 ) - AVG ( DISTINCT + + 47 ) + CAST( NULL AS SIGNED ) * + 46 + - 99 + + + 69 + ( + - 54 ) + - 27 / + + COUNT( * ) AS col1
----
81
NULL

skipif mysql # not compatible
query II rowsort label-1524
SELECT 94 - 13 AS col2, AVG ( 43 ) - AVG ( DISTINCT + + 47 ) + CAST ( NULL AS INTEGER ) * + 46 + - 99 + + + 69 + ( + - 54 ) + - 27 / + + COUNT ( * ) AS col1
----
81
NULL

query I rowsort
SELECT 98 * 97
----
9506

query I rowsort
SELECT + 13 * + 27 + - 13 AS col1
----
338

query I rowsort
SELECT 4 - 17 AS col1
----
-13

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1528
SELECT ALL + 61 - + + 62 AS col2, 70 * + CAST( NULL AS SIGNED ) * - CAST( + - 21 AS SIGNED ) AS col1
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-1528
SELECT ALL + 61 - + + 62 AS col2, 70 * + CAST ( NULL AS INTEGER ) * - CAST ( + - 21 AS INTEGER ) AS col1
----
-1
NULL

query I rowsort
SELECT 78 + + - 96 + - - 62 + - 62 * - 36 AS col2
----
2276

query I rowsort
SELECT DISTINCT - 16 * 25
----
-400

query I rowsort
SELECT 10 * - - 65 AS col1
----
650

query I rowsort
SELECT 13 + - + NULLIF ( + - 33, - 31 * 26 ) AS col0
----
46

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

query I rowsort
SELECT DISTINCT - + 27 * + - 69 AS col0
----
1863

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1536
SELECT ALL - ( - 50 ) DIV - 34 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-1536
SELECT ALL - ( - 50 ) / - 34 AS col1
----
-1

query I rowsort
SELECT ALL ( - + 6 ) + + + 32
----
26

query I rowsort
SELECT 59 + + CASE 43 WHEN - + 41 THEN + - 21 WHEN + + ( - 0 ) * 74 THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT ALL + - 85 * + 42
----
-3570

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

skipif mysql # not compatible
query I rowsort label-1540
SELECT ( - NULLIF ( + ( + COUNT ( * ) ), ( 90 ) ) )
----
-1

query I rowsort
SELECT ALL + - 60 + + + 29 AS col0
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-1542
SELECT ALL COUNT( * ) + + 46 - + + 15 AS col1
----
32

skipif mysql # not compatible
query I rowsort label-1542
SELECT ALL COUNT ( * ) + + 46 - + + 15 AS col1
----
32

query I rowsort
SELECT 28 + - 8
----
20

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1545
SELECT ALL + + 18 + + 0 + 61 * - COUNT( * )
----
-43

skipif mysql # not compatible
query I rowsort label-1545
SELECT ALL + + 18 + + 0 + 61 * - COUNT ( * )
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-1546
SELECT COUNT( * ) + + 62 * 12
----
745

skipif mysql # not compatible
query I rowsort label-1546
SELECT COUNT ( * ) + + 62 * 12
----
745

query I rowsort
SELECT DISTINCT + 65 + 52
----
117

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1548
SELECT 69 + + + COUNT( * ) - ( + - 35 ) * - - 84 * + COUNT( * ) * - - 94 DIV + COUNT( * ) col0, 35 AS col2
----
276430
35

skipif mysql # not compatible
query II rowsort label-1548
SELECT 69 + + + COUNT ( * ) - ( + - 35 ) * - - 84 * + COUNT ( * ) * - - 94 / + COUNT ( * ) col0, 35 AS col2
----
276430
35

query II rowsort
SELECT ALL - 8, + 5 AS col1
----
-8
5

query I rowsort
SELECT 53 * 7 AS col2
----
371

query I rowsort
SELECT ALL 33 * - 77 * + 44
----
-111804

query II rowsort
SELECT DISTINCT 91 - + 74 * + ( + ( - - 9 ) ) col2, 69 * + 26 AS col1
----
-575
1794

query I rowsort
SELECT 4 + + - COALESCE ( - 20, - + NULLIF ( - - 36, - 57 ) * - - 64 * - 76, - 23 )
----
24

query II rowsort
SELECT ALL 26 - + - 95 + - 28 AS col0, 11 AS col0
----
93
11

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

skipif mysql # not compatible
query I rowsort label-1555
SELECT COUNT ( + 88 ) * - + ( 16 ) + + COUNT ( * ) / - 33
----
-16

query I rowsort
SELECT ALL 97 * - 99
----
-9603

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1557
SELECT 88, - COUNT( * ) DIV + - 81 AS col1
----
88
0

skipif mysql # not compatible
query II rowsort label-1557
SELECT 88, - COUNT ( * ) / + - 81 AS col1
----
88
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1558
SELECT CASE - CAST( 97 AS SIGNED ) WHEN - 14 + 88 / - - 34 + + - 56 THEN + - 75 WHEN 34 THEN + + 63 END / + - NULLIF ( COUNT( * ), + 16 * 65 * 14 + 5 / NULLIF ( 88, 90 ) + + 39 ) AS col0, - 96 AS col2
----
NULL
-96

skipif mysql # not compatible
query II rowsort label-1558
SELECT CASE - CAST ( 97 AS INTEGER ) WHEN - 14 + 88 / - - 34 + + - 56 THEN + - 75 WHEN 34 THEN + + 63 END / + - NULLIF ( COUNT ( * ), + 16 * 65 * 14 + 5 / NULLIF ( 88, 90 ) + + 39 ) AS col0, - 96 AS col2
----
NULL
-96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1559
SELECT DISTINCT MIN( 52 ) DIV COUNT( * )
----
52

skipif mysql # not compatible
query I rowsort label-1559
SELECT DISTINCT MIN ( 52 ) / COUNT ( * )
----
52

query I rowsort
SELECT - 13 * - 49
----
637

query I rowsort
SELECT ALL + 30 * + - 97 AS col0
----
-2910

query II rowsort
SELECT - 14 col1, 67
----
-14
67

onlyif mysql # aggregate syntax: 
query I rowsort label-1563
SELECT ALL + COUNT( * ) + + 88 col1
----
89

skipif mysql # not compatible
query I rowsort label-1563
SELECT ALL + COUNT ( * ) + + 88 col1
----
89

query I rowsort
SELECT DISTINCT + 82 + 97
----
179

onlyif mysql # aggregate syntax: 
query I rowsort label-1565
SELECT ALL - 24 + - COUNT( * ) * - 17
----
-7

skipif mysql # not compatible
query I rowsort label-1565
SELECT ALL - 24 + - COUNT ( * ) * - 17
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-1566
SELECT DISTINCT + + CASE ( - COUNT( * ) ) WHEN - 44 + MIN( - 1 ) THEN - - 17 END + - - 65 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1566
SELECT DISTINCT + + CASE ( - COUNT ( * ) ) WHEN - 44 + MIN ( - 1 ) THEN - - 17 END + - - 65 AS col1
----
NULL

query I rowsort
SELECT DISTINCT - 21 + + 43 AS col2
----
22

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1568
SELECT ALL + - 57 + - - COUNT( * ) + 44, 81 DIV 19 * + + 43 * 15 * - 82 AS col0
----
-12
-211560

skipif mysql # not compatible
query II rowsort label-1568
SELECT ALL + - 57 + - - COUNT ( * ) + 44, 81 / 19 * + + 43 * 15 * - 82 AS col0
----
-12
-211560

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1569
SELECT - + MAX( + 41 ) DIV - ( 86 ) + - MAX( DISTINCT - 12 ) AS col1, CAST( + ( 50 ) AS SIGNED )
----
12
50

skipif mysql # not compatible
query II rowsort label-1569
SELECT - + MAX ( + 41 ) / - ( 86 ) + - MAX ( DISTINCT - 12 ) AS col1, CAST ( + ( 50 ) AS INTEGER )
----
12
50

onlyif mysql # aggregate syntax: 
query I rowsort label-1570
SELECT - 88 + 41 * - 13 * MIN( DISTINCT 84 )
----
-44860

skipif mysql # not compatible
query I rowsort label-1570
SELECT - 88 + 41 * - 13 * MIN ( DISTINCT 84 )
----
-44860

onlyif mysql # aggregate syntax: 
query II rowsort label-1571
SELECT ALL + + MIN( - 56 ) * - + 72 * - ( + 62 ), + 94 AS col0
----
-249984
94

skipif mysql # not compatible
query II rowsort label-1571
SELECT ALL + + MIN ( - 56 ) * - + 72 * - ( + 62 ), + 94 AS col0
----
-249984
94

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1575
SELECT - 63 + - 9 * + COUNT( * ) AS col1
----
-72

skipif mysql # not compatible
query I rowsort label-1575
SELECT - 63 + - 9 * + COUNT ( * ) AS col1
----
-72

query I rowsort
SELECT NULLIF ( 33, 90 ) AS col0
----
33

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

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

query II rowsort
SELECT ALL + 49, + 9 * - 8 AS col0
----
49
-72

query I rowsort
SELECT - 9 - - + 27 + - 20 AS col2
----
-2

query I rowsort
SELECT + COALESCE ( + + 37, 2 ) AS col2
----
37

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1581
SELECT ALL + 33, COUNT( * ) DIV + - 67 AS col0
----
33
0

skipif mysql # not compatible
query II rowsort label-1581
SELECT ALL + 33, COUNT ( * ) / + - 67 AS col0
----
33
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1582
SELECT DISTINCT CAST( + COUNT( * ) AS SIGNED ) AS col1, - ( 93 ) * + 2 AS col2
----
1
-186

skipif mysql # not compatible
query II rowsort label-1582
SELECT DISTINCT CAST ( + COUNT ( * ) AS INTEGER ) AS col1, - ( 93 ) * + 2 AS col2
----
1
-186

query I rowsort
SELECT + 37 * - 45 * 46
----
-76590

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1584
SELECT - COUNT( * ) AS col0, CASE ( + 59 ) WHEN + - 7 THEN NULL ELSE 74 DIV + COUNT( * ) END
----
-1
74

skipif mysql # not compatible
query II rowsort label-1584
SELECT - COUNT ( * ) AS col0, CASE ( + 59 ) WHEN + - 7 THEN NULL ELSE 74 / + COUNT ( * ) END
----
-1
74

onlyif mysql # aggregate syntax: 
query I rowsort label-1585
SELECT + 25 + - NULLIF ( 53, + 85 ) - - + 52 * - COUNT( * ) * - 42
----
2156

skipif mysql # not compatible
query I rowsort label-1585
SELECT + 25 + - NULLIF ( 53, + 85 ) - - + 52 * - COUNT ( * ) * - 42
----
2156

query I rowsort
SELECT + 31 - + 99
----
-68

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1587
SELECT ALL 22 AS col2, + 12 DIV - 49 * - 40 DIV + + COUNT( * ) AS col1
----
22
0

skipif mysql # not compatible
query II rowsort label-1587
SELECT ALL 22 AS col2, + 12 / - 49 * - 40 / + + COUNT ( * ) AS col1
----
22
0

query II rowsort
SELECT ALL 73 AS col1, 86 AS col0
----
73
86

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

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

query I rowsort
SELECT ALL + 71 + - NULLIF ( - 19, - 13 ) - + 4 * - - 7 + + 28
----
90

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

skipif mysql # not compatible
query I rowsort label-1591
SELECT DISTINCT ( 18 ) + - + COUNT ( * ) AS col0
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-1592
SELECT ALL - 28 + - + ( + COUNT( * ) )
----
-29

skipif mysql # not compatible
query I rowsort label-1592
SELECT ALL - 28 + - + ( + COUNT ( * ) )
----
-29

onlyif mysql # DIV for integer division: 
query I rowsort label-1593
SELECT + 79 + + + 6 + + 64 DIV - 66
----
85

skipif mysql # not compatible
query I rowsort label-1593
SELECT + 79 + + + 6 + + 64 / - 66
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-1594
SELECT ALL 23 + + COUNT( DISTINCT 47 )
----
24

skipif mysql # not compatible
query I rowsort label-1594
SELECT ALL 23 + + COUNT ( DISTINCT 47 )
----
24

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

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

query I rowsort
SELECT ALL + 36 * - 57 * - 18
----
36936

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

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

query II rowsort
SELECT 46 AS col1, 63 AS col0
----
46
63

query I rowsort
SELECT - + NULLIF ( 4, - - NULLIF ( 79, - 6 ) * + - 62 + 46 ) AS col0
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-1600
SELECT + 20 + - 66 + COUNT( * ) + 23 + + - 31 * + 69 AS col2
----
-2161

skipif mysql # not compatible
query I rowsort label-1600
SELECT + 20 + - 66 + COUNT ( * ) + 23 + + - 31 * + 69 AS col2
----
-2161

query I rowsort
SELECT + - 87 * - ( + 68 )
----
5916

onlyif mysql # aggregate syntax: 
query I rowsort label-1602
SELECT DISTINCT COALESCE ( - - 4, - 68 * + - 25 * COUNT( * ) + COALESCE ( - 25, - 64 + + - 84 + - 97 + 89 * 49 ) ) + 94 AS col2
----
98

skipif mysql # not compatible
query I rowsort label-1602
SELECT DISTINCT COALESCE ( - - 4, - 68 * + - 25 * COUNT ( * ) + COALESCE ( - 25, - 64 + + - 84 + - 97 + 89 * 49 ) ) + 94 AS col2
----
98

query I rowsort
SELECT ALL + 1 * 16
----
16

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

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

query I rowsort
SELECT DISTINCT + - 55 * + 35 + + 68
----
-1857

onlyif mysql # aggregate syntax: 
query II rowsort label-1606
SELECT DISTINCT 83 AS col2, + SUM( + 19 ) + + 77 col1
----
83
96

skipif mysql # not compatible
query II rowsort label-1606
SELECT DISTINCT 83 AS col2, + SUM ( + 19 ) + + 77 col1
----
83
96

query I rowsort
SELECT ALL 78 * 50
----
3900

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1609
SELECT + 9 * + - SUM( ALL NULLIF ( 4, 3 ) ) + + 30 + 26
----
20

skipif mysql # not compatible
query I rowsort label-1609
SELECT + 9 * + - SUM ( ALL NULLIF ( 4, 3 ) ) + + 30 + 26
----
20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1610
SELECT - 36 * - COALESCE ( - - 12, - 3 ) * ( - 28 ) + - CAST( + - 27 AS SIGNED )
----
-12069

skipif mysql # not compatible
query I rowsort label-1610
SELECT - 36 * - COALESCE ( - - 12, - 3 ) * ( - 28 ) + - CAST ( + - 27 AS INTEGER )
----
-12069

onlyif mysql # aggregate syntax: 
query I rowsort label-1611
SELECT + COUNT( + + 46 ) * - + COUNT( DISTINCT + 5 ) * 11 + COALESCE ( + ( - 46 ), - + 92 )
----
-57

skipif mysql # not compatible
query I rowsort label-1611
SELECT + COUNT ( + + 46 ) * - + COUNT ( DISTINCT + 5 ) * 11 + COALESCE ( + ( - 46 ), - + 92 )
----
-57

query I rowsort
SELECT DISTINCT + COALESCE ( + 92, - 66, - 9 )
----
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1613
SELECT + 39 + - NULLIF ( + 67, - COALESCE ( + CAST( NULL AS SIGNED ), - - 1 * 57 + 88 ) ) - - COUNT( * ) * COUNT( * ) - 57
----
-84

skipif mysql # not compatible
query I rowsort label-1613
SELECT + 39 + - NULLIF ( + 67, - COALESCE ( + CAST ( NULL AS INTEGER ), - - 1 * 57 + 88 ) ) - - COUNT ( * ) * COUNT ( * ) - 57
----
-84

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1615
SELECT ALL + 74 DIV + + 35 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-1615
SELECT ALL + 74 / + + 35 AS col1
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-1616
SELECT - ( - 87 ) * AVG ( - 61 ) * 13 / + 25 * - CASE - + COUNT( DISTINCT + + 30 ) WHEN - ( + 9 ) + - - 59 * - - 57 THEN - 77 + - - COUNT( * ) ELSE NULL END + - COUNT( * ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1616
SELECT - ( - 87 ) * AVG ( - 61 ) * 13 / + 25 * - CASE - + COUNT ( DISTINCT + + 30 ) WHEN - ( + 9 ) + - - 59 * - - 57 THEN - 77 + - - COUNT ( * ) ELSE NULL END + - COUNT ( * ) col2
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1618
SELECT - CAST( + 85 AS SIGNED ) / - - CASE - MAX( 45 ) WHEN - 13 - - 9 + + 12 + - 24 * - 13 * COUNT( + 39 ) / 40 / - NULLIF ( - 37, + 4 ) - - 73 + - ( + 38 ) THEN NULL WHEN CASE - 49 WHEN CASE - - 95 WHEN 6 + - - COUNT( * ) + - 62 * - COUNT( * ) THEN NULL WHEN - 41 THEN NULL WHEN + 36 + + + MIN( + 15 ) + + 8 THEN - 11 END * 21 THEN - 36 / 10 / + 81 * 2 / 56 * - + 73 WHEN 96 THEN NULL END / + 32 * - COUNT( * ) - 95 THEN 66 / MAX( DISTINCT 31 ) + + 21 END - + 65 * + 24
----
NULL

skipif mysql # not compatible
query I rowsort label-1618
SELECT - CAST ( + 85 AS INTEGER ) / - - CASE - MAX ( 45 ) WHEN - 13 - - 9 + + 12 + - 24 * - 13 * COUNT ( + 39 ) / 40 / - NULLIF ( - 37, + 4 ) - - 73 + - ( + 38 ) THEN NULL WHEN CASE - 49 WHEN CASE - - 95 WHEN 6 + - - COUNT ( * ) + - 62 * - COUNT ( * ) THEN NULL WHEN - 41 THEN NULL WHEN + 36 + + + MIN ( + 15 ) + + 8 THEN - 11 END * 21 THEN - 36 / 10 / + 81 * 2 / 56 * - + 73 WHEN 96 THEN NULL END / + 32 * - COUNT ( * ) - 95 THEN 66 / MAX ( DISTINCT 31 ) + + 21 END - + 65 * + 24
----
NULL

query I rowsort
SELECT ALL + 74 * 60
----
4440

query I rowsort
SELECT DISTINCT - 57 * - ( + 81 )
----
4617

query I rowsort
SELECT 13 * - 36
----
-468

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1623
SELECT ALL - ( 44 ) DIV + + 5 AS col2
----
-8

skipif mysql # not compatible
query I rowsort label-1623
SELECT ALL - ( 44 ) / + + 5 AS col2
----
-8

onlyif mysql # DIV for integer division: 
query II rowsort label-1624
SELECT 3 DIV 90, - 57 AS col1
----
0
-57

skipif mysql # not compatible
query II rowsort label-1624
SELECT 3 / 90, - 57 AS col1
----
0
-57

onlyif mysql # aggregate syntax: 
query II rowsort label-1625
SELECT 13 * - + 48 AS col0, COUNT( * ) AS col2
----
-624
1

skipif mysql # not compatible
query II rowsort label-1625
SELECT 13 * - + 48 AS col0, COUNT ( * ) AS col2
----
-624
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1626
SELECT ALL ( + 77 ) + MAX( ALL COALESCE ( + - 67, ( 8 ) ) ) AS col1
----
10

skipif mysql # not compatible
query I rowsort label-1626
SELECT ALL ( + 77 ) + MAX ( ALL COALESCE ( + - 67, ( 8 ) ) ) AS col1
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-1627
SELECT DISTINCT + 24 + 72 - COUNT( * )
----
95

skipif mysql # not compatible
query I rowsort label-1627
SELECT DISTINCT + 24 + 72 - COUNT ( * )
----
95

query I rowsort
SELECT DISTINCT - 54 + - 5 col2
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-1629
SELECT ( + 4 ) - + MAX( 18 )
----
-14

skipif mysql # not compatible
query I rowsort label-1629
SELECT ( + 4 ) - + MAX ( 18 )
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-1630
SELECT + 57 - ( COUNT( * ) ) * + 22 * 46 AS col0
----
-955

skipif mysql # not compatible
query I rowsort label-1630
SELECT + 57 - ( COUNT ( * ) ) * + 22 * 46 AS col0
----
-955

onlyif mysql # aggregate syntax: 
query II rowsort label-1631
SELECT NULLIF ( - + 27, + + 35 + COUNT( * ) * + + ( + 68 ) ) * COUNT( * ) * - 15 * 97 * 92 AS col0, COUNT( * ) * 76
----
3614220
76

skipif mysql # not compatible
query II rowsort label-1631
SELECT NULLIF ( - + 27, + + 35 + COUNT ( * ) * + + ( + 68 ) ) * COUNT ( * ) * - 15 * 97 * 92 AS col0, COUNT ( * ) * 76
----
3614220
76

query I rowsort
SELECT ALL 96 * - 68 + - 98 AS col1
----
-6626

query I rowsort
SELECT ALL + ( - - ( - NULLIF ( - - ( + 86 ), - + 64 ) ) )
----
-86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-1634
SELECT CAST( NULL AS SIGNED ) + 83 * + 95 * AVG ( + 50 ), ( - + 61 ) + 39 - - 68 + CASE - MAX( - CAST( + - 30 AS DECIMAL ) ) WHEN - 59 + - 5 THEN AVG ( ( 5 ) ) ELSE NULL END
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-1634
SELECT CAST ( NULL AS INTEGER ) + 83 * + 95 * AVG ( + 50 ), ( - + 61 ) + 39 - - 68 + CASE - MAX ( - CAST ( + - 30 AS REAL ) ) WHEN - 59 + - 5 THEN AVG ( ( 5 ) ) ELSE NULL END
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1635
SELECT ALL + - 86 - + + COUNT( * ) + + ( - 77 ) - 29 AS col0, 25 * + 88 + - - 73
----
-193
2273

skipif mysql # not compatible
query II rowsort label-1635
SELECT ALL + - 86 - + + COUNT ( * ) + + ( - 77 ) - 29 AS col0, 25 * + 88 + - - 73
----
-193
2273

onlyif mysql # aggregate syntax: 
query I rowsort label-1636
SELECT DISTINCT - COUNT( * ) * - ( + 68 ) + - CASE 41 WHEN 35 THEN 84 * - - ( - + 61 ) + - 62 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1636
SELECT DISTINCT - COUNT ( * ) * - ( + 68 ) + - CASE 41 WHEN 35 THEN 84 * - - ( - + 61 ) + - 62 ELSE NULL END
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1638
SELECT ALL 23 - 37 DIV + 80 + + - 16 + - 47 * 39 AS col0
----
-1826

skipif mysql # not compatible
query I rowsort label-1638
SELECT ALL 23 - 37 / + 80 + + - 16 + - 47 * 39 AS col0
----
-1826

query II rowsort
SELECT DISTINCT - ( + - 14 ), - COALESCE ( + + 79, + 55, + 44 ) * - - 4 * + CASE - 35 WHEN + 77 THEN + - 8 WHEN - + 90 THEN NULL END AS col0
----
14
NULL

query II rowsort
SELECT 6 * 18 AS col1, - 16
----
108
-16

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

skipif mysql # not compatible
query I rowsort label-1641
SELECT + COUNT ( * ) / 14 + + 12
----
12

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1643
SELECT + 56 DIV - ( - 64 )
----
0

skipif mysql # not compatible
query I rowsort label-1643
SELECT + 56 / - ( - 64 )
----
0

query I rowsort
SELECT ALL 10 * + 96 AS col0
----
960

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

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

query I rowsort
SELECT DISTINCT 39 * + - 15
----
-585

onlyif mysql # aggregate syntax: 
query I rowsort label-1647
SELECT ALL + 70 * + MIN( ALL + 57 ) * 45 AS col1
----
179550

skipif mysql # not compatible
query I rowsort label-1647
SELECT ALL + 70 * + MIN ( ALL + 57 ) * 45 AS col1
----
179550

onlyif mysql # aggregate syntax: 
query I rowsort label-1648
SELECT DISTINCT - CASE + - 81 WHEN 32 + + 15 THEN + - 11 + + - NULLIF ( 82, 11 ) - 5 WHEN - 82 * - 50 THEN + COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1648
SELECT DISTINCT - CASE + - 81 WHEN 32 + + 15 THEN + - 11 + + - NULLIF ( 82, 11 ) - 5 WHEN - 82 * - 50 THEN + COUNT ( * ) END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1649
SELECT ( - 34 ) * - - 59 * - + 89 * - 83 * CAST( NULL AS SIGNED ) - + ( - - 39 ), 78 + ( - + 16 ) col1
----
NULL
62

skipif mysql # not compatible
query II rowsort label-1649
SELECT ( - 34 ) * - - 59 * - + 89 * - 83 * CAST ( NULL AS INTEGER ) - + ( - - 39 ), 78 + ( - + 16 ) col1
----
NULL
62

query I rowsort
SELECT 4 * - 58 AS col2
----
-232

onlyif mysql # aggregate syntax: 
query I rowsort label-1651
SELECT ALL SUM( ALL 62 ) + - 53 * - 45 AS col1
----
2447

skipif mysql # not compatible
query I rowsort label-1651
SELECT ALL SUM ( ALL 62 ) + - 53 * - 45 AS col1
----
2447

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1652
SELECT 12 AS col1, + 90 * - CAST( + AVG ( - 66 ) AS SIGNED )
----
12
5940

skipif mysql # not compatible
query II rowsort label-1652
SELECT 12 AS col1, + 90 * - CAST ( + AVG ( - 66 ) AS INTEGER )
----
12
5940

onlyif mysql # aggregate syntax: 
query I rowsort label-1653
SELECT + COUNT( * ) * + + 73 * ( 92 ) + - - 31
----
6747

skipif mysql # not compatible
query I rowsort label-1653
SELECT + COUNT ( * ) * + + 73 * ( 92 ) + - - 31
----
6747

onlyif mysql # aggregate syntax: 
query I rowsort label-1654
SELECT DISTINCT - SUM( ALL 6 ) AS col2
----
-6

skipif mysql # not compatible
query I rowsort label-1654
SELECT DISTINCT - SUM ( ALL 6 ) AS col2
----
-6

query I rowsort
SELECT ALL - 43 + - - 42
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1656
SELECT 7 * 19 + + + CAST( + 2 AS SIGNED )
----
135

skipif mysql # not compatible
query I rowsort label-1656
SELECT 7 * 19 + + + CAST ( + 2 AS INTEGER )
----
135

query I rowsort
SELECT 29 * - 27 AS col0
----
-783

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

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1661
SELECT 19 - - 98 DIV + - 16 AS col2
----
13

skipif mysql # not compatible
query I rowsort label-1661
SELECT 19 - - 98 / + - 16 AS col2
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-1662
SELECT DISTINCT - 99 * + + 8 * + COUNT( * ) AS col1
----
-792

skipif mysql # not compatible
query I rowsort label-1662
SELECT DISTINCT - 99 * + + 8 * + COUNT ( * ) AS col1
----
-792

query I rowsort
SELECT DISTINCT - 26 + + 42 AS col2
----
16

query I rowsort
SELECT DISTINCT - ( - + ( - + 85 ) ) col0
----
-85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1665
SELECT - COUNT( * ) + + 48 + 56 DIV - + 72
----
47

skipif mysql # not compatible
query I rowsort label-1665
SELECT - COUNT ( * ) + + 48 + 56 / - + 72
----
47

query II rowsort
SELECT 82, 80 * 0 AS col2
----
82
0

onlyif mysql # aggregate syntax: 
query II rowsort label-1667
SELECT - 50, - COUNT( * ) + + 42 col0
----
-50
41

skipif mysql # not compatible
query II rowsort label-1667
SELECT - 50, - COUNT ( * ) + + 42 col0
----
-50
41

onlyif mysql # aggregate syntax: 
query I rowsort label-1668
SELECT 72 - + 1 + + MAX( - + 90 ) AS col0
----
-19

skipif mysql # not compatible
query I rowsort label-1668
SELECT 72 - + 1 + + MAX ( - + 90 ) AS col0
----
-19

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1669
SELECT ALL + + CAST( NULL AS DECIMAL ) - - + ( - COUNT( * ) ) + + - 95 / + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1669
SELECT ALL + + CAST ( NULL AS REAL ) - - + ( - COUNT ( * ) ) + + - 95 / + COUNT ( * ) AS col1
----
NULL

query I rowsort
SELECT 21 * - + 98 - - + ( - ( + ( - - 28 ) ) ) * - 35
----
-1078

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1671
SELECT ALL - 10 DIV + - SUM( - 71 )
----
0

skipif mysql # not compatible
query I rowsort label-1671
SELECT ALL - 10 / + - SUM ( - 71 )
----
0

query I rowsort
SELECT 51 + 61
----
112

query II rowsort
SELECT DISTINCT 67, - 93 AS col0
----
67
-93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1674
SELECT DISTINCT - - CAST( + - 42 AS SIGNED ) * + 57 * - 90 AS col0
----
215460

skipif mysql # not compatible
query I rowsort label-1674
SELECT DISTINCT - - CAST ( + - 42 AS INTEGER ) * + 57 * - 90 AS col0
----
215460

query I rowsort
SELECT ALL 97 * - COALESCE ( 58, + 69, + 6, - 95 ) * + 46 AS col2
----
-258796

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

skipif mysql # not compatible
query I rowsort label-1676
SELECT - MIN ( DISTINCT 34 )
----
-34

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

query I rowsort
SELECT ALL - 74 * - 88 * + - 49 AS col2
----
-319088

onlyif mysql # aggregate syntax: 
query I rowsort label-1679
SELECT DISTINCT 43 * 81 + + ( + 17 ) * + - COALESCE ( + 89, - - 29 + 38 + + - 46 * + 97 + + COUNT( * ) )
----
1970

skipif mysql # not compatible
query I rowsort label-1679
SELECT DISTINCT 43 * 81 + + ( + 17 ) * + - COALESCE ( + 89, - - 29 + 38 + + - 46 * + 97 + + COUNT ( * ) )
----
1970

query I rowsort
SELECT 75 * - NULLIF ( 94, 17 ) + + 91
----
-6959

query I rowsort
SELECT + 38 * + 59
----
2242

onlyif mysql # aggregate syntax: 
query I rowsort label-1682
SELECT ALL - 76 * - ( - COUNT( * ) ) * - - ( + + ( - + NULLIF ( - COUNT( * ), + 3 ) ) ) + + ( + + 31 ) + - - 80 * + 41 + - 47 col0
----
3188

skipif mysql # not compatible
query I rowsort label-1682
SELECT ALL - 76 * - ( - COUNT ( * ) ) * - - ( + + ( - + NULLIF ( - COUNT ( * ), + 3 ) ) ) + + ( + + 31 ) + - - 80 * + 41 + - 47 col0
----
3188

onlyif mysql # DIV for integer division: 
query I rowsort label-1683
SELECT - 54 DIV - + 91 + - 61
----
-61

skipif mysql # not compatible
query I rowsort label-1683
SELECT - 54 / - + 91 + - 61
----
-61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1684
SELECT CASE - + COUNT( * ) WHEN + + 9 + + 90 THEN + 79 + + 94 WHEN - - NULLIF ( - 95, 36 ) / - 25 THEN CASE + - COUNT( * ) WHEN 70 * 45 + + COUNT( * ) THEN NULL ELSE + ( 43 ) + COUNT( * ) + 80 + 14 - + COUNT( * ) + + ( + + COUNT( * ) ) * MIN( ALL 55 ) + + CASE + + 40 WHEN + + 54 / + - 63 / 24 * + 74 THEN NULL ELSE + CAST( NULL AS SIGNED ) END END WHEN + - 15 THEN MAX( - - 68 ) * 54 * + 21 + - - 33 + - CAST( NULL AS DECIMAL ) + 88 + + + 55 * + COUNT( * ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1684
SELECT CASE - + COUNT ( * ) WHEN + + 9 + + 90 THEN + 79 + + 94 WHEN - - NULLIF ( - 95, 36 ) / - 25 THEN CASE + - COUNT ( * ) WHEN 70 * 45 + + COUNT ( * ) THEN NULL ELSE + ( 43 ) + COUNT ( * ) + 80 + 14 - + COUNT ( * ) + + ( + + COUNT ( * ) ) * MIN ( ALL 55 ) + + CASE + + 40 WHEN + + 54 / + - 63 / 24 * + 74 THEN NULL ELSE + CAST ( NULL AS INTEGER ) END END WHEN + - 15 THEN MAX ( - - 68 ) * 54 * + 21 + - - 33 + - CAST ( NULL AS REAL ) + 88 + + + 55 * + COUNT ( * ) END AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1685
SELECT ALL - MAX( - ( - 61 ) ) * 68 + - + 22 DIV 59 * 64 + + 22 AS col2
----
-4126

skipif mysql # not compatible
query I rowsort label-1685
SELECT ALL - MAX ( - ( - 61 ) ) * 68 + - + 22 / 59 * 64 + + 22 AS col2
----
-4126

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1686
SELECT ALL + 83 * COUNT( - CAST( NULL AS SIGNED ) ) + - MIN( + 36 ) AS col2
----
-36

skipif mysql # not compatible
query I rowsort label-1686
SELECT ALL + 83 * COUNT ( - CAST ( NULL AS INTEGER ) ) + - MIN ( + 36 ) AS col2
----
-36

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

skipif mysql # not compatible
query I rowsort label-1687
SELECT SUM ( + - 71 )
----
-71

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1689
SELECT DISTINCT + + MIN( - CASE - 29 WHEN 4 + + + 11 + - 68 THEN CAST( NULL AS SIGNED ) END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1689
SELECT DISTINCT + + MIN ( - CASE - 29 WHEN 4 + + + 11 + - 68 THEN CAST ( NULL AS INTEGER ) END ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1690
SELECT - COUNT( * ) * 16, - ( + 40 ) * 44 col1
----
-16
-1760

skipif mysql # not compatible
query II rowsort label-1690
SELECT - COUNT ( * ) * 16, - ( + 40 ) * 44 col1
----
-16
-1760

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

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

query I rowsort
SELECT - + 75 * - 98 * - 6 AS col1
----
-44100

query I rowsort
SELECT ALL - 64 * - 48 AS col0
----
3072

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1694
SELECT ALL 45 - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1694
SELECT ALL 45 - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1695
SELECT - 2 * COUNT( * ) DIV - 74 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1695
SELECT - 2 * COUNT ( * ) / - 74 AS col0
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1697
SELECT - COUNT( NULLIF ( - 52, - + 12 * + + 4 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-1697
SELECT - COUNT ( NULLIF ( - 52, - + 12 * + + 4 ) )
----
-1

query II rowsort
SELECT - 68 + 57 AS col1, 61
----
-11
61

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1700
SELECT ALL - 68 + + ( + 59 ) + - CASE + 52 WHEN - CASE + COALESCE ( - - 7, - CAST( NULL AS SIGNED ) ) WHEN - CAST( + 95 AS SIGNED ) * - - 5 THEN + 49 WHEN 81 THEN NULL ELSE NULL END + - 26 THEN ( - + COUNT( - COALESCE ( + 84, + 97 ) ) ) * + COUNT( * ) - NULLIF ( + MIN( DISTINCT - ( - - NULLIF ( + - 11, + 98 * 74 ) ) ), + 35 ) + - 95 ELSE 68 END
----
-77

skipif mysql # not compatible
query I rowsort label-1700
SELECT ALL - 68 + + ( + 59 ) + - CASE + 52 WHEN - CASE + COALESCE ( - - 7, - CAST ( NULL AS INTEGER ) ) WHEN - CAST ( + 95 AS INTEGER ) * - - 5 THEN + 49 WHEN 81 THEN NULL ELSE NULL END + - 26 THEN ( - + COUNT ( - COALESCE ( + 84, + 97 ) ) ) * + COUNT ( * ) - NULLIF ( + MIN ( DISTINCT - ( - - NULLIF ( + - 11, + 98 * 74 ) ) ), + 35 ) + - 95 ELSE 68 END
----
-77

query I rowsort
SELECT ALL 80 + - 51 AS col2
----
29

query I rowsort
SELECT - 21 + 17 AS col1
----
-4

query II rowsort
SELECT - 37 AS col0, + 80
----
-37
80

query I rowsort
SELECT ALL - 43 + - + 2 * - 29
----
15

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1706
SELECT DISTINCT + 49 / 44 * + CAST( NULL AS SIGNED ) * + COALESCE ( + 93, COUNT( * ) + + 43 * + 64 ) * 19 + 16 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1706
SELECT DISTINCT + 49 / 44 * + CAST ( NULL AS INTEGER ) * + COALESCE ( + 93, COUNT ( * ) + + 43 * + 64 ) * 19 + 16 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1707
SELECT MIN( ALL - CAST( + + 44 AS SIGNED ) ) DIV + 57 - - 59
----
59

skipif mysql # not compatible
query I rowsort label-1707
SELECT MIN ( ALL - CAST ( + + 44 AS INTEGER ) ) / + 57 - - 59
----
59

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

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

query II rowsort
SELECT ALL + 93 AS col0, 0 + 6 AS col1
----
93
6

onlyif mysql # DIV for integer division: 
query I rowsort label-1710
SELECT + 72 DIV - 90 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1710
SELECT + 72 / - 90 AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1711
SELECT DISTINCT + 38 DIV + + 69 * - - 81 - + COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-1711
SELECT DISTINCT + 38 / + + 69 * - - 81 - + COUNT ( * )
----
-1

query I rowsort
SELECT - 19 * - + 38 AS col1
----
722

onlyif mysql # aggregate syntax: 
query I rowsort label-1713
SELECT ( - CASE - - 28 WHEN - COUNT( * ) + + COUNT( DISTINCT + + 0 ) + + - ( 62 ) THEN + - ( - MIN( ALL 71 ) ) END )
----
NULL

skipif mysql # not compatible
query I rowsort label-1713
SELECT ( - CASE - - 28 WHEN - COUNT ( * ) + + COUNT ( DISTINCT + + 0 ) + + - ( 62 ) THEN + - ( - MIN ( ALL 71 ) ) END )
----
NULL

query I rowsort
SELECT - 62 * - 75 + 41 AS col2
----
4691

query I rowsort
SELECT 81 * - 14 + - + 31
----
-1165

onlyif mysql # DIV for integer division: 
query II rowsort label-1716
SELECT DISTINCT - 91 * + 73 + 14 DIV + 31 - + 71 * - 52 AS col2, 21
----
-2951
21

skipif mysql # not compatible
query II rowsort label-1716
SELECT DISTINCT - 91 * + 73 + 14 / + 31 - + 71 * - 52 AS col2, 21
----
-2951
21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1717
SELECT + + 54 + + - COUNT( * ) DIV + 29 - - 49
----
103

skipif mysql # not compatible
query I rowsort label-1717
SELECT + + 54 + + - COUNT ( * ) / + 29 - - 49
----
103

query II rowsort
SELECT ALL + 1, 53 AS col2
----
1
53

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

skipif mysql # not compatible
query I rowsort label-1719
SELECT + COUNT ( * ) + 97 * + - ( 65 ) AS col2
----
-6304

query I rowsort
SELECT ALL 33 * - 51 AS col0
----
-1683

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1721
SELECT + + 2 + 64 * CAST( NULL AS SIGNED ) col1, + 39
----
NULL
39

skipif mysql # not compatible
query II rowsort label-1721
SELECT + + 2 + 64 * CAST ( NULL AS INTEGER ) col1, + 39
----
NULL
39

query I rowsort
SELECT DISTINCT + ( - + 80 ) AS col1
----
-80

onlyif mysql # DIV for integer division: 
query I rowsort label-1723
SELECT + - 27 + + 67 DIV 75 * - 56
----
-27

skipif mysql # not compatible
query I rowsort label-1723
SELECT + - 27 + + 67 / 75 * - 56
----
-27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1724
SELECT - 0 * - CAST( 26 AS SIGNED ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1724
SELECT - 0 * - CAST ( 26 AS INTEGER ) AS col1
----
0

query I rowsort
SELECT - + 47 - + 93
----
-140

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1726
SELECT + CAST( NULL AS SIGNED ) * COALESCE ( 78, - + 4, - 76 ) + + - 86 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1726
SELECT + CAST ( NULL AS INTEGER ) * COALESCE ( 78, - + 4, - 76 ) + + - 86 col1
----
NULL

query I rowsort
SELECT DISTINCT + 8 * + 0
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1729
SELECT ALL - 17 + - + COUNT( * )
----
-18

skipif mysql # not compatible
query I rowsort label-1729
SELECT ALL - 17 + - + COUNT ( * )
----
-18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1730
SELECT DISTINCT ( - 94 ) * - 96 - + COUNT( * ) + - 36 DIV - - 15
----
9021

skipif mysql # not compatible
query I rowsort label-1730
SELECT DISTINCT ( - 94 ) * - 96 - + COUNT ( * ) + - 36 / - - 15
----
9021

onlyif mysql # aggregate syntax: 
query I rowsort label-1731
SELECT 7 + - 78 - MIN( DISTINCT + - ( + COALESCE ( + + 50, - + 14 * 83 ) ) ) * + - COUNT( * ) * 12 col2
----
-671

skipif mysql # not compatible
query I rowsort label-1731
SELECT 7 + - 78 - MIN ( DISTINCT + - ( + COALESCE ( + + 50, - + 14 * 83 ) ) ) * + - COUNT ( * ) * 12 col2
----
-671

query I rowsort
SELECT ALL + 11 * - 27 AS col1
----
-297

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1734
SELECT MAX( + - 17 ) + + - 28
----
-45

skipif mysql # not compatible
query I rowsort label-1734
SELECT MAX ( + - 17 ) + + - 28
----
-45

query I rowsort
SELECT DISTINCT 50 * - + 63
----
-3150

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

skipif mysql # not compatible
query I rowsort label-1736
SELECT ALL COUNT ( * ) * + 26 col0
----
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1737
SELECT DISTINCT + 66 DIV - + CAST( + COUNT( * ) AS SIGNED )
----
-66

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

query I rowsort
SELECT ALL + 94 + + 59 col2
----
153

onlyif mysql # DIV for integer division: 
query I rowsort label-1739
SELECT DISTINCT + 39 - 57 + - 96 DIV + 90 DIV - 1
----
-17

skipif mysql # not compatible
query I rowsort label-1739
SELECT DISTINCT + 39 - 57 + - 96 / + 90 / - 1
----
-17

query I rowsort
SELECT ALL - ( - - 2 ) * 31 AS col1
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-1741
SELECT ALL - MAX( 96 ) AS col2
----
-96

skipif mysql # not compatible
query I rowsort label-1741
SELECT ALL - MAX ( 96 ) AS col2
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-1742
SELECT - 58 * + NULLIF ( 35, + 47 / - - 43 + - 45 - COUNT( ALL - 37 ) + - + 70 * - 91 / + 62 * - 51 ) + 19
----
-2011

skipif mysql # not compatible
query I rowsort label-1742
SELECT - 58 * + NULLIF ( 35, + 47 / - - 43 + - 45 - COUNT ( ALL - 37 ) + - + 70 * - 91 / + 62 * - 51 ) + 19
----
-2011

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1743
SELECT ALL + CAST( + - 98 AS SIGNED ) * - 81 * + ( - 24 ) - CASE + 14 WHEN 71 THEN + + 50 + - + 56 * 86 * + - 43 - 2 + - - 15 END, 73 AS col1
----
NULL
73

skipif mysql # not compatible
query II rowsort label-1743
SELECT ALL + CAST ( + - 98 AS INTEGER ) * - 81 * + ( - 24 ) - CASE + 14 WHEN 71 THEN + + 50 + - + 56 * 86 * + - 43 - 2 + - - 15 END, 73 AS col1
----
NULL
73

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1745
SELECT DISTINCT + 77 - COUNT( * )
----
76

skipif mysql # not compatible
query I rowsort label-1745
SELECT DISTINCT + 77 - COUNT ( * )
----
76

query I rowsort
SELECT DISTINCT + 4 * - 25
----
-100

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1747
SELECT DISTINCT - CAST( - 46 AS SIGNED ) AS col2
----
46

skipif mysql # not compatible
query I rowsort label-1747
SELECT DISTINCT - CAST ( - 46 AS INTEGER ) AS col2
----
46

onlyif mysql # DIV for integer division: 
query I rowsort label-1748
SELECT DISTINCT + 86 * 44 DIV - + 27
----
-140

skipif mysql # not compatible
query I rowsort label-1748
SELECT DISTINCT + 86 * 44 / - + 27
----
-140

onlyif mysql # aggregate syntax: 
query II rowsort label-1749
SELECT DISTINCT - 75 col2, - MAX( DISTINCT + 72 ) AS col2
----
-75
-72

skipif mysql # not compatible
query II rowsort label-1749
SELECT DISTINCT - 75 col2, - MAX ( DISTINCT + 72 ) AS col2
----
-75
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-1750
SELECT ALL + 61 + + - 90 * - COALESCE ( - 93, - 21 ) + + - CASE - 0 WHEN - 43 * - 23 THEN COALESCE ( ( + - COUNT( * ) ), + COALESCE ( + CASE COUNT( - 11 ) WHEN 84 + - 79 * + COUNT( * ) THEN NULL WHEN + 83 THEN 30 + - 75 * + - ( 39 ) + 4 * + - SUM( DISTINCT + - 22 ) - NULLIF ( + 70, - - 22 * 73 ) ELSE NULL END, COUNT( * ), + NULLIF ( + 1, - - 94 + + - COUNT( * ) ) ) ) END * - + COUNT( ALL + 89 ) * COUNT( + 83 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1750
SELECT ALL + 61 + + - 90 * - COALESCE ( - 93, - 21 ) + + - CASE - 0 WHEN - 43 * - 23 THEN COALESCE ( ( + - COUNT ( * ) ), + COALESCE ( + CASE COUNT ( - 11 ) WHEN 84 + - 79 * + COUNT ( * ) THEN NULL WHEN + 83 THEN 30 + - 75 * + - ( 39 ) + 4 * + - SUM ( DISTINCT + - 22 ) - NULLIF ( + 70, - - 22 * 73 ) ELSE NULL END, COUNT ( * ), + NULLIF ( + 1, - - 94 + + - COUNT ( * ) ) ) ) END * - + COUNT ( ALL + 89 ) * COUNT ( + 83 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1751
SELECT - CASE + + 2 WHEN - 6 THEN + - 79 - + + 87 / + COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1751
SELECT - CASE + + 2 WHEN - 6 THEN + - 79 - + + 87 / + COUNT ( * ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1752
SELECT + COUNT( ALL + - 91 ) DIV + ( NULLIF ( - - 96, + COALESCE ( - + 94, - SUM( - 38 ), NULLIF ( - - 60, - 83 ) ) ) )
----
0

skipif mysql # not compatible
query I rowsort label-1752
SELECT + COUNT ( ALL + - 91 ) / + ( NULLIF ( - - 96, + COALESCE ( - + 94, - SUM ( - 38 ), NULLIF ( - - 60, - 83 ) ) ) )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1753
SELECT ALL 63 * - + COUNT( * ), 76 DIV - - CAST( 94 AS SIGNED ) + - 32 AS col1
----
-63
-32

skipif mysql # not compatible
query II rowsort label-1753
SELECT ALL 63 * - + COUNT ( * ), 76 / - - CAST ( 94 AS INTEGER ) + - 32 AS col1
----
-63
-32

query I rowsort
SELECT ALL + - 60 + 34 AS col1
----
-26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1755
SELECT DISTINCT - CAST( + CAST( - 77 AS SIGNED ) AS SIGNED ) + - 18 AS col0
----
59

skipif mysql # not compatible
query I rowsort label-1755
SELECT DISTINCT - CAST ( + CAST ( - 77 AS INTEGER ) AS INTEGER ) + - 18 AS col0
----
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1756
SELECT ALL 90 + + - CAST( - 12 AS SIGNED ) AS col2
----
102

skipif mysql # not compatible
query I rowsort label-1756
SELECT ALL 90 + + - CAST ( - 12 AS INTEGER ) AS col2
----
102

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1757
SELECT ALL NULLIF ( - 53, + 12 ) + + CAST( - 36 AS SIGNED )
----
-89

skipif mysql # not compatible
query I rowsort label-1757
SELECT ALL NULLIF ( - 53, + 12 ) + + CAST ( - 36 AS INTEGER )
----
-89

onlyif mysql # aggregate syntax: 
query II rowsort label-1758
SELECT 93 col1, + ( + 71 ) * - - 19 + - COUNT( + + 49 ) AS col2
----
93
1348

skipif mysql # not compatible
query II rowsort label-1758
SELECT 93 col1, + ( + 71 ) * - - 19 + - COUNT ( + + 49 ) AS col2
----
93
1348

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

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

query I rowsort
SELECT 97 + + + 66
----
163

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1761
SELECT ( + 87 ) + 51 * CAST( NULL AS SIGNED ) * + 54 * + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-1761
SELECT ( + 87 ) + 51 * CAST ( NULL AS INTEGER ) * + 54 * + COUNT ( * )
----
NULL

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

skipif mysql # not compatible
query I rowsort label-1762
SELECT ALL MAX ( 97 ) - + COUNT ( * )
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-1763
SELECT ALL - NULLIF ( - - 21, + 50 ) - COUNT( * ) AS col0
----
-22

skipif mysql # not compatible
query I rowsort label-1763
SELECT ALL - NULLIF ( - - 21, + 50 ) - COUNT ( * ) AS col0
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-1764
SELECT COUNT( * ) - + COUNT( * ) + - 81 * + 59
----
-4779

skipif mysql # not compatible
query I rowsort label-1764
SELECT COUNT ( * ) - + COUNT ( * ) + - 81 * + 59
----
-4779

query I rowsort
SELECT ALL + 62 * 81
----
5022

onlyif mysql # aggregate syntax: 
query II rowsort label-1766
SELECT 32 - COUNT( * ) + + 73, - COUNT( * ) * 52 AS col0
----
104
-52

skipif mysql # not compatible
query II rowsort label-1766
SELECT 32 - COUNT ( * ) + + 73, - COUNT ( * ) * 52 AS col0
----
104
-52

query I rowsort
SELECT 3 * + 34 * NULLIF ( - 68, - AVG ( DISTINCT + 79 ) ) * 99 AS col0
----
-686664

query I rowsort
SELECT DISTINCT 55 * + - 63 * 74 AS col0
----
-256410

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1770
SELECT 57 DIV 11
----
5

skipif mysql # not compatible
query I rowsort label-1770
SELECT 57 / 11
----
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1771
SELECT 28 * + CAST( - 44 AS SIGNED )
----
-1232

skipif mysql # not compatible
query I rowsort label-1771
SELECT 28 * + CAST ( - 44 AS INTEGER )
----
-1232

onlyif mysql # aggregate syntax: 
query I rowsort label-1772
SELECT ALL CASE COUNT( * ) WHEN 99 THEN NULL WHEN 13 * - - COUNT( * ) THEN NULL ELSE - - 68 END * ( 64 )
----
4352

skipif mysql # not compatible
query I rowsort label-1772
SELECT ALL CASE COUNT ( * ) WHEN 99 THEN NULL WHEN 13 * - - COUNT ( * ) THEN NULL ELSE - - 68 END * ( 64 )
----
4352

onlyif mysql # DIV for integer division: 
query II rowsort label-1773
SELECT 47 DIV + 83, + 24 * - - 11 AS col2
----
0
264

skipif mysql # not compatible
query II rowsort label-1773
SELECT 47 / + 83, + 24 * - - 11 AS col2
----
0
264

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1774
SELECT ALL - 18 DIV - + 40, - SUM( DISTINCT CAST( - 19 AS SIGNED ) ) * - + 52 AS col0
----
0
-988

skipif mysql # not compatible
query II rowsort label-1774
SELECT ALL - 18 / - + 40, - SUM ( DISTINCT CAST ( - 19 AS INTEGER ) ) * - + 52 AS col0
----
0
-988

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1775
SELECT ALL - + ( + - NULLIF ( 26, + 64 * 88 + - 97 + - - 50 * + - 19 / - - ( - CAST( + 43 AS SIGNED ) ) ) )
----
26

skipif mysql # not compatible
query I rowsort label-1775
SELECT ALL - + ( + - NULLIF ( 26, + 64 * 88 + - 97 + - - 50 * + - 19 / - - ( - CAST ( + 43 AS INTEGER ) ) ) )
----
26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1776
SELECT + - CAST( + NULLIF ( - 44, + 95 * - 71 ) AS SIGNED )
----
44

skipif mysql # not compatible
query I rowsort label-1776
SELECT + - CAST ( + NULLIF ( - 44, + 95 * - 71 ) AS INTEGER )
----
44

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1778
SELECT - 81 + 75 + - - CAST( NULL AS DECIMAL ) * - 73 / - - 10 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1778
SELECT - 81 + 75 + - - CAST ( NULL AS REAL ) * - 73 / - - 10 col0
----
NULL

query I rowsort
SELECT + ( 85 ) * + 55
----
4675

onlyif mysql # aggregate syntax: 
query I rowsort label-1780
SELECT - COUNT( ALL 89 ) - 57 + - 14
----
-72

skipif mysql # not compatible
query I rowsort label-1780
SELECT - COUNT ( ALL 89 ) - 57 + - 14
----
-72

query I rowsort
SELECT DISTINCT + 74 * + - 82
----
-6068

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1782
SELECT ALL - CAST( NULL AS SIGNED ) + - + NULLIF ( - - 85, 71 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1782
SELECT ALL - CAST ( NULL AS INTEGER ) + - + NULLIF ( - - 85, 71 )
----
NULL

query I rowsort
SELECT ALL + ( + 14 ) + - 51 + 43 col0
----
6

onlyif mysql # aggregate syntax: 
query II rowsort label-1784
SELECT - - 44 + + 89 AS col2, + 34 + - ( - ( - + COUNT( * ) ) ) AS col2
----
133
33

skipif mysql # not compatible
query II rowsort label-1784
SELECT - - 44 + + 89 AS col2, + 34 + - ( - ( - + COUNT ( * ) ) ) AS col2
----
133
33

query I rowsort
SELECT ALL - 80 * 17
----
-1360

query I rowsort
SELECT + - 95 + + 33 + 11
----
-51

onlyif mysql # aggregate syntax: 
query II rowsort label-1787
SELECT + + COALESCE ( - + 56, + MAX( - 95 ) ) + - 84 + 61 * + 4 + - 40 * 59 * - - 41, 22 * + 91 AS col1
----
-96656
2002

skipif mysql # not compatible
query II rowsort label-1787
SELECT + + COALESCE ( - + 56, + MAX ( - 95 ) ) + - 84 + 61 * + 4 + - 40 * 59 * - - 41, 22 * + 91 AS col1
----
-96656
2002

onlyif mysql # aggregate syntax: 
query I rowsort label-1788
SELECT - COUNT( * ) + CASE + 19 WHEN + - COUNT( * ) * - 99 + - 61 THEN + 89 * + 94 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1788
SELECT - COUNT ( * ) + CASE + 19 WHEN + - COUNT ( * ) * - 99 + - 61 THEN + 89 * + 94 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1789
SELECT ALL 63 DIV - NULLIF ( + 71, + 70 ) * - 95 * + - COUNT( * ) - + - 8 - - + COUNT( ALL 35 ) * COUNT( * )
----
9

skipif mysql # not compatible
query I rowsort label-1789
SELECT ALL 63 / - NULLIF ( + 71, + 70 ) * - 95 * + - COUNT ( * ) - + - 8 - - + COUNT ( ALL 35 ) * COUNT ( * )
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-1790
SELECT ALL + MAX( + - 62 ) - + 25
----
-87

skipif mysql # not compatible
query I rowsort label-1790
SELECT ALL + MAX ( + - 62 ) - + 25
----
-87

query I rowsort
SELECT DISTINCT + 39 - - - 82 - - ( - 48 )
----
-91

query I rowsort
SELECT + 56 + + + 57 * + 85 col1
----
4901

query I rowsort
SELECT DISTINCT - 67 * + + 27 AS col1
----
-1809

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1794
SELECT + 32 + + - CAST( NULL AS SIGNED ) / + MAX( ALL ( 68 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1794
SELECT + 32 + + - CAST ( NULL AS INTEGER ) / + MAX ( ALL ( 68 ) )
----
NULL

query I rowsort
SELECT - 20 * - - 10 AS col1
----
-200

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

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

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

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

query I rowsort
SELECT + 14 + - - 96 * + 19 * + ( 53 )
----
96686

query I rowsort
SELECT + 90 * 5 col0
----
450

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1800
SELECT ALL 64 AS col1, 15 * 88 DIV + 18 + - + COUNT( * ) * + 49 AS col1
----
64
24

skipif mysql # not compatible
query II rowsort label-1800
SELECT ALL 64 AS col1, 15 * 88 / + 18 + - + COUNT ( * ) * + 49 AS col1
----
64
24

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1802
SELECT DISTINCT - 47 DIV + + 27 + + 13 DIV 79 + + - 44 AS col2
----
-45

skipif mysql # not compatible
query I rowsort label-1802
SELECT DISTINCT - 47 / + + 27 + + 13 / 79 + + - 44 AS col2
----
-45

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

query I rowsort
SELECT + - 42 * + - 27 + + + 88 AS col2
----
1222

query I rowsort
SELECT + 78 * - 99 AS col0
----
-7722

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1806
SELECT + COALESCE ( + 1, - COUNT( * ), - - 92 ) * + ( + 75 ) - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1806
SELECT + COALESCE ( + 1, - COUNT ( * ), - - 92 ) * + ( + 75 ) - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1807
SELECT ALL - - COUNT( * ) * + - 31 + COUNT( * ) col2
----
-30

skipif mysql # not compatible
query I rowsort label-1807
SELECT ALL - - COUNT ( * ) * + - 31 + COUNT ( * ) col2
----
-30

query I rowsort
SELECT ALL 66 * - 28 AS col2
----
-1848

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1809
SELECT ALL - MAX( DISTINCT + + CAST( NULL AS SIGNED ) ) * - 45 / COUNT( * ) / - 70 + - 86 + + - 75 + + + COUNT( 81 ) + + - 84 + + ( - CASE + - 15 WHEN 72 THEN 19 END ) * - - AVG ( DISTINCT - - ( + 21 ) ) + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-1809
SELECT ALL - MAX ( DISTINCT + + CAST ( NULL AS INTEGER ) ) * - 45 / COUNT ( * ) / - 70 + - 86 + + - 75 + + + COUNT ( 81 ) + + - 84 + + ( - CASE + - 15 WHEN 72 THEN 19 END ) * - - AVG ( DISTINCT - - ( + 21 ) ) + - COUNT ( * )
----
NULL

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

query I rowsort
SELECT - + 15 * - ( + 89 ) + - 38
----
1297

onlyif mysql # aggregate syntax: 
query I rowsort label-1812
SELECT DISTINCT - 98 * - - NULLIF ( - COALESCE ( - 22, - 20 + + COUNT( - - 2 ) ), 17 + - 73 ) + + + 48 * - 1
----
-2204

skipif mysql # not compatible
query I rowsort label-1812
SELECT DISTINCT - 98 * - - NULLIF ( - COALESCE ( - 22, - 20 + + COUNT ( - - 2 ) ), 17 + - 73 ) + + + 48 * - 1
----
-2204

query I rowsort
SELECT ALL 93 * - + 93 + 18 * - 29 - + 57
----
-9228

onlyif mysql # aggregate syntax: 
query I rowsort label-1814
SELECT + COALESCE ( + 1, SUM( DISTINCT - ( + 84 ) ) * - COALESCE ( - 90, 78 * 48 ) * + - 12 - + 1 )
----
1

skipif mysql # not compatible
query I rowsort label-1814
SELECT + COALESCE ( + 1, SUM ( DISTINCT - ( + 84 ) ) * - COALESCE ( - 90, 78 * 48 ) * + - 12 - + 1 )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-1815
SELECT ALL + + 47, 0 DIV + MIN( - 27 ) col1, - - COUNT( - 14 ) AS col1
----
47
0
1

skipif mysql # not compatible
query III rowsort label-1815
SELECT ALL + + 47, 0 / + MIN ( - 27 ) col1, - - COUNT ( - 14 ) AS col1
----
47
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1816
SELECT + SUM( + CASE - + 2 WHEN + 71 THEN 67 ELSE - + 0 * - 52 END )
----
0

skipif mysql # not compatible
query I rowsort label-1816
SELECT + SUM ( + CASE - + 2 WHEN + 71 THEN 67 ELSE - + 0 * - 52 END )
----
0

query I rowsort
SELECT DISTINCT - 80 * + 59 AS col1
----
-4720

onlyif mysql # aggregate syntax: 
query I rowsort label-1818
SELECT ALL + 56 * + 87 * NULLIF ( ( 52 ), + 2 ) - - ( 95 ) * + 74 * - COUNT( * ) AS col1
----
246314

skipif mysql # not compatible
query I rowsort label-1818
SELECT ALL + 56 * + 87 * NULLIF ( ( 52 ), + 2 ) - - ( 95 ) * + 74 * - COUNT ( * ) AS col1
----
246314

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

skipif mysql # not compatible
query I rowsort label-1819
SELECT - 56 / + 79 * + + COUNT ( * )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1820
SELECT - CAST( NULL AS DECIMAL ) + COUNT( DISTINCT - ( 78 ) ) + - - CASE 58 WHEN - 29 * COUNT( * ) * + 53 * - - 49 THEN - CAST( + 73 AS SIGNED ) END - - COUNT( * ) * + + 40 * - - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-1820
SELECT - CAST ( NULL AS REAL ) + COUNT ( DISTINCT - ( 78 ) ) + - - CASE 58 WHEN - 29 * COUNT ( * ) * + 53 * - - 49 THEN - CAST ( + 73 AS INTEGER ) END - - COUNT ( * ) * + + 40 * - - COUNT ( * )
----
NULL

query I rowsort
SELECT + 26 * - 11
----
-286

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1823
SELECT ALL CAST( + - 70 AS SIGNED ) col1
----
-70

skipif mysql # not compatible
query I rowsort label-1823
SELECT ALL CAST ( + - 70 AS INTEGER ) col1
----
-70

onlyif mysql # DIV for integer division: 
query I rowsort label-1824
SELECT ALL + ( + - 69 ) DIV - 22
----
3

skipif mysql # not compatible
query I rowsort label-1824
SELECT ALL + ( + - 69 ) / - 22
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1825
SELECT - 73 + + + CAST( COUNT( * ) AS SIGNED ) * - COUNT( * ) * - ( - - 62 ) + - 92 + + 59 AS col0
----
-44

skipif mysql # not compatible
query I rowsort label-1825
SELECT - 73 + + + CAST ( COUNT ( * ) AS INTEGER ) * - COUNT ( * ) * - ( - - 62 ) + - 92 + + 59 AS col0
----
-44

query I rowsort
SELECT - 49 + - + 66
----
-115

onlyif mysql # DIV for integer division: 
query I rowsort label-1827
SELECT DISTINCT + 45 DIV + 81 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1827
SELECT DISTINCT + 45 / + 81 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1828
SELECT + COUNT( * ) - - 74 * - 66 + COUNT( * ) + - 20
----
-4902

skipif mysql # not compatible
query I rowsort label-1828
SELECT + COUNT ( * ) - - 74 * - 66 + COUNT ( * ) + - 20
----
-4902

onlyif mysql # aggregate syntax: 
query I rowsort label-1829
SELECT - 13 + MIN( - 68 )
----
-81

skipif mysql # not compatible
query I rowsort label-1829
SELECT - 13 + MIN ( - 68 )
----
-81

query II rowsort
SELECT + 19 + - 49 AS col0, 22 + - 78 + - 29
----
-30
-85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1831
SELECT + CASE - - 82 WHEN - + 30 + + 10 + COUNT( * ) / + 10 THEN - ( - 42 ) + NULLIF ( + - 73, - ( - - 38 ) / - + 27 ) WHEN 72 THEN NULL ELSE NULL END + + CAST( NULL AS SIGNED ) * - 9 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1831
SELECT + CASE - - 82 WHEN - + 30 + + 10 + COUNT ( * ) / + 10 THEN - ( - 42 ) + NULLIF ( + - 73, - ( - - 38 ) / - + 27 ) WHEN 72 THEN NULL ELSE NULL END + + CAST ( NULL AS INTEGER ) * - 9 AS col0
----
NULL

query I rowsort
SELECT DISTINCT - 7 * + 30 col0
----
-210

onlyif mysql # aggregate syntax: 
query I rowsort label-1833
SELECT - 67 + - 19 * + + COUNT( * ) * 18 * 34 AS col1
----
-11695

skipif mysql # not compatible
query I rowsort label-1833
SELECT - 67 + - 19 * + + COUNT ( * ) * 18 * 34 AS col1
----
-11695

query I rowsort
SELECT + + 69 * - 74 + - 62
----
-5168

query II rowsort
SELECT ALL + CASE - 16 WHEN + - NULLIF ( - + 51, + 60 ) THEN NULL WHEN + 13 + + 90 THEN 96 WHEN - + 58 THEN 80 END AS col1, - 45 AS col1
----
NULL
-45

query I rowsort
SELECT - 12 * + ( + 13 ) AS col0
----
-156

query I rowsort
SELECT DISTINCT - 91 * - 39 AS col1
----
3549

query II rowsort
SELECT + 79 + - 20 AS col0, 25 * - - 66 AS col1
----
59
1650

query I rowsort
SELECT + 62 - - 88
----
150

onlyif mysql # aggregate syntax: 
query I rowsort label-1840
SELECT DISTINCT 85 * - - MAX( + NULLIF ( 53, 40 ) )
----
4505

skipif mysql # not compatible
query I rowsort label-1840
SELECT DISTINCT 85 * - - MAX ( + NULLIF ( 53, 40 ) )
----
4505

query I rowsort
SELECT - 28 + - 18 + - 82 + - 5 + + 63 * + 76 AS col1
----
4655

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1842
SELECT COUNT( * ) * + 10 * - - COUNT( * ) * + - MIN( - + 54 ) * + + COUNT( * ) + + CAST( NULL AS SIGNED ) / + + 86 + + 28 + + 14 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1842
SELECT COUNT ( * ) * + 10 * - - COUNT ( * ) * + - MIN ( - + 54 ) * + + COUNT ( * ) + + CAST ( NULL AS INTEGER ) / + + 86 + + 28 + + 14 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1843
SELECT 3 * - 5 * - 50 AS col2, COUNT( * ) AS col0
----
750
1

skipif mysql # not compatible
query II rowsort label-1843
SELECT 3 * - 5 * - 50 AS col2, COUNT ( * ) AS col0
----
750
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1844
SELECT 41 + 87 + + + 28 + + - COUNT( * ) * COUNT( * ) AS col2
----
155

skipif mysql # not compatible
query I rowsort label-1844
SELECT 41 + 87 + + + 28 + + - COUNT ( * ) * COUNT ( * ) AS col2
----
155

onlyif mysql # aggregate syntax: 
query II rowsort label-1845
SELECT 86 AS col2, - 29 + - + CASE - 98 WHEN 7 * 34 * - 24 + - 32 * + 84 THEN - + COUNT( ( 35 ) ) ELSE NULL END
----
86
NULL

skipif mysql # not compatible
query II rowsort label-1845
SELECT 86 AS col2, - 29 + - + CASE - 98 WHEN 7 * 34 * - 24 + - 32 * + 84 THEN - + COUNT ( ( 35 ) ) ELSE NULL END
----
86
NULL

query I rowsort
SELECT 51 + 91
----
142

query I rowsort
SELECT 57 + + ( - 45 )
----
12

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1849
SELECT - 98, NULLIF ( 97, + MAX( DISTINCT - - 45 ) ) DIV + - 93 AS col1
----
-98
-1

skipif mysql # not compatible
query II rowsort label-1849
SELECT - 98, NULLIF ( 97, + MAX ( DISTINCT - - 45 ) ) / + - 93 AS col1
----
-98
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1850
SELECT ALL + ( - CAST( NULL AS SIGNED ) ) * + ( - - NULLIF ( - - 31, - COUNT( * ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1850
SELECT ALL + ( - CAST ( NULL AS INTEGER ) ) * + ( - - NULLIF ( - - 31, - COUNT ( * ) ) )
----
NULL

query I rowsort
SELECT ALL - 4 + - ( + + 29 )
----
-33

query I rowsort
SELECT ( - + 67 ) * + 1
----
-67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1853
SELECT 66 * 44 DIV 26 DIV + 56 * - + COUNT( * ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-1853
SELECT 66 * 44 / 26 / + 56 * - + COUNT ( * ) AS col1
----
-1

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

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

query II rowsort
SELECT 40, COALESCE ( - 63, - + 8 ) AS col2
----
40
-63

query I rowsort
SELECT 63 + 61 AS col0
----
124

query I rowsort
SELECT DISTINCT + 87 + - ( ( 38 ) ) AS col1
----
49

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

skipif mysql # not compatible
query I rowsort label-1858
SELECT MIN ( 96 ) * + COUNT ( * ) AS col1
----
96

onlyif mysql # DIV for integer division: 
query I rowsort label-1859
SELECT ALL + 97 DIV 57
----
1

skipif mysql # not compatible
query I rowsort label-1859
SELECT ALL + 97 / 57
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1860
SELECT SUM( - ( - ( 98 ) ) ) + 43 AS col1
----
141

skipif mysql # not compatible
query I rowsort label-1860
SELECT SUM ( - ( - ( 98 ) ) ) + 43 AS col1
----
141

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1861
SELECT CASE - 22 WHEN AVG ( - 89 ) * + SUM( ALL + 10 ) THEN 44 + COALESCE ( 83, - COUNT( * ) ) * + 41 ELSE NULL END * 99 + + ( + 24 + 38 ) * + CAST( + 82 - 9 AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1861
SELECT CASE - 22 WHEN AVG ( - 89 ) * + SUM ( ALL + 10 ) THEN 44 + COALESCE ( 83, - COUNT ( * ) ) * + 41 ELSE NULL END * 99 + + ( + 24 + 38 ) * + CAST ( + 82 - 9 AS INTEGER ) AS col0
----
NULL

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

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

query I rowsort
SELECT ALL + 70 * 84 AS col2
----
5880

query I rowsort
SELECT 72 * 61 AS col0
----
4392

onlyif mysql # aggregate syntax: 
query I rowsort label-1865
SELECT - 65 * - 21 + CASE - CASE + COUNT( * ) WHEN + 48 THEN NULL ELSE 55 END WHEN 5 * ( - COUNT( DISTINCT 17 ) / - 96 ) THEN + 14 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1865
SELECT - 65 * - 21 + CASE - CASE + COUNT ( * ) WHEN + 48 THEN NULL ELSE 55 END WHEN 5 * ( - COUNT ( DISTINCT 17 ) / - 96 ) THEN + 14 END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1866
SELECT MAX( NULLIF ( - 90, 45 ) ) DIV 58 col1
----
-1

skipif mysql # not compatible
query I rowsort label-1866
SELECT MAX ( NULLIF ( - 90, 45 ) ) / 58 col1
----
-1

query I rowsort
SELECT 81 * + 21 AS col1
----
1701

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1868
SELECT - 8 DIV + COUNT( * ) + 54 AS col0
----
46

skipif mysql # not compatible
query I rowsort label-1868
SELECT - 8 / + COUNT ( * ) + 54 AS col0
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-1869
SELECT ALL + 7 - + SUM( - 32 )
----
39

skipif mysql # not compatible
query I rowsort label-1869
SELECT ALL + 7 - + SUM ( - 32 )
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-1870
SELECT DISTINCT CASE - 33 WHEN - 14 THEN + 33 * - 53 + 23 WHEN + ( - COUNT( ALL + 64 ) ) THEN - 26 + 27 / - 26 WHEN - 1 + SUM( ALL + 29 ) THEN 73 - 84 END * + 26 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1870
SELECT DISTINCT CASE - 33 WHEN - 14 THEN + 33 * - 53 + 23 WHEN + ( - COUNT ( ALL + 64 ) ) THEN - 26 + 27 / - 26 WHEN - 1 + SUM ( ALL + 29 ) THEN 73 - 84 END * + 26 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1871
SELECT ALL COALESCE ( 30, 50 + - CASE - 52 WHEN COUNT( * ) * - SUM( 19 ) + 7 * COUNT( * ) THEN ( 27 ) * - 60 + 25 WHEN 97 + 68 DIV - COUNT( * ) THEN NULLIF ( - 64, + 79 DIV - COUNT( * ) ) DIV - ( + ( - 78 ) * 91 + - 80 ) ELSE NULL END ) DIV + 80
----
0

skipif mysql # not compatible
query I rowsort label-1871
SELECT ALL COALESCE ( 30, 50 + - CASE - 52 WHEN COUNT ( * ) * - SUM ( 19 ) + 7 * COUNT ( * ) THEN ( 27 ) * - 60 + 25 WHEN 97 + 68 / - COUNT ( * ) THEN NULLIF ( - 64, + 79 / - COUNT ( * ) ) / - ( + ( - 78 ) * 91 + - 80 ) ELSE NULL END ) / + 80
----
0

query I rowsort
SELECT 62 * + 95 - 91 AS col0
----
5799

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1873
SELECT COALESCE ( 37, + 46 + - 54 * + 41, + ( ( + COUNT( DISTINCT + 49 ) ) ) ) DIV + 92
----
0

skipif mysql # not compatible
query I rowsort label-1873
SELECT COALESCE ( 37, + 46 + - 54 * + 41, + ( ( + COUNT ( DISTINCT + 49 ) ) ) ) / + 92
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1874
SELECT CAST( - COALESCE ( MIN( + 32 ), CAST( + 40 AS SIGNED ), + COALESCE ( + NULLIF ( 70, 41 ), 40 ), 36 + - 12 ) AS SIGNED ) * - 80 AS col1
----
2560

skipif mysql # not compatible
query I rowsort label-1874
SELECT CAST ( - COALESCE ( MIN ( + 32 ), CAST ( + 40 AS INTEGER ), + COALESCE ( + NULLIF ( 70, 41 ), 40 ), 36 + - 12 ) AS INTEGER ) * - 80 AS col1
----
2560

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1875
SELECT ALL CAST( 16 AS SIGNED ) + + 38 * 51 AS col0
----
1954

skipif mysql # not compatible
query I rowsort label-1875
SELECT ALL CAST ( 16 AS INTEGER ) + + 38 * 51 AS col0
----
1954

onlyif mysql # DIV for integer division: 
query I rowsort label-1876
SELECT COALESCE ( 5, - 48 ) * ( + 42 DIV + 64 )
----
0

skipif mysql # not compatible
query I rowsort label-1876
SELECT COALESCE ( 5, - 48 ) * ( + 42 / + 64 )
----
0

query I rowsort
SELECT DISTINCT ( + COALESCE ( 66, - 93 ) ) * - 64 AS col0
----
-4224

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1878
SELECT CAST( NULL AS SIGNED ) / 33 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1878
SELECT CAST ( NULL AS INTEGER ) / 33 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1879
SELECT ALL CAST( + CAST( - 49 AS SIGNED ) AS SIGNED ) + ( - ( 24 ) + + 36 ) AS col2
----
-37

skipif mysql # not compatible
query I rowsort label-1879
SELECT ALL CAST ( + CAST ( - 49 AS INTEGER ) AS INTEGER ) + ( - ( 24 ) + + 36 ) AS col2
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-1880
SELECT - MIN( DISTINCT NULLIF ( - 99, 12 + + 37 ) ) col0
----
99

skipif mysql # not compatible
query I rowsort label-1880
SELECT - MIN ( DISTINCT NULLIF ( - 99, 12 + + 37 ) ) col0
----
99

query I rowsort
SELECT DISTINCT + 91 + 53 * + CASE - 41 WHEN 56 THEN 89 ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT DISTINCT 90 + - 16
----
74

query I rowsort
SELECT 31 + 0
----
31

query I rowsort
SELECT 66 * 37 AS col2
----
2442

query I rowsort
SELECT ALL 25 + 98 col2
----
123

query I rowsort
SELECT 56 + + 43 AS col1
----
99

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

query I rowsort
SELECT ALL COALESCE ( - 19, 76 - 45 ) - 23 AS col2
----
-42

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

skipif mysql # not compatible
query I rowsort label-1889
SELECT - - SUM ( DISTINCT 77 )
----
77

query I rowsort
SELECT DISTINCT 46 * 49
----
2254

query I rowsort
SELECT DISTINCT - 55 - - 73
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-1892
SELECT - CASE 20 WHEN - 43 + COUNT( * ) * + 39 THEN NULL ELSE + 54 END AS col0
----
-54

skipif mysql # not compatible
query I rowsort label-1892
SELECT - CASE 20 WHEN - 43 + COUNT ( * ) * + 39 THEN NULL ELSE + 54 END AS col0
----
-54

query I rowsort
SELECT - + NULLIF ( - 65, 71 ) + 56
----
121

query I rowsort
SELECT - + NULLIF ( - 18, - 88 / 39 ) * + 33 AS col1
----
594

query I rowsort
SELECT - - 67 + 79
----
146

query I rowsort
SELECT DISTINCT + + NULLIF ( 52, + ( 22 ) )
----
52

query I rowsort
SELECT ALL - + 11 * + 33
----
-363

query I rowsort
SELECT - 88 * - 31 AS col0
----
2728

query I rowsort
SELECT ALL + - 58 col2
----
-58

query I rowsort
SELECT DISTINCT + 48 * - 15
----
-720

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

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

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

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

query I rowsort
SELECT - - NULLIF ( - 74, 20 ) + 51 * + 64
----
3190

query I rowsort
SELECT - - 9 * 41
----
369

query I rowsort
SELECT ALL + + NULLIF ( 71, 82 ) * - 6
----
-426

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

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

query I rowsort
SELECT - 16 * 71 + 12 AS col2
----
-1124

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

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

query I rowsort
SELECT ALL + 47 * - 48 + - 74
----
-2330

query I rowsort
SELECT + 3 - + COALESCE ( 97, ( - 4 ) ) AS col0
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-1911
SELECT DISTINCT - 3 * + NULLIF ( 73, + 68 - NULLIF ( - COUNT( * ), - 24 * + SUM( + 14 ) ) ) * 47 + + MAX( - 29 ) * - 42
----
-9075

skipif mysql # not compatible
query I rowsort label-1911
SELECT DISTINCT - 3 * + NULLIF ( 73, + 68 - NULLIF ( - COUNT ( * ), - 24 * + SUM ( + 14 ) ) ) * 47 + + MAX ( - 29 ) * - 42
----
-9075

query I rowsort
SELECT ALL 53 * - 0 + - 38
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-1913
SELECT + MAX( DISTINCT - - 32 ) AS col0
----
32

skipif mysql # not compatible
query I rowsort label-1913
SELECT + MAX ( DISTINCT - - 32 ) AS col0
----
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1914
SELECT DISTINCT + CAST( + 88 AS SIGNED ) * + 9 AS col2
----
792

skipif mysql # not compatible
query I rowsort label-1914
SELECT DISTINCT + CAST ( + 88 AS INTEGER ) * + 9 AS col2
----
792

query I rowsort
SELECT DISTINCT - 87 * + 75 * + ( 98 * + 44 ) + - 69 AS col0
----
-28135869

query I rowsort
SELECT ALL 65 * - 5 + 16
----
-309

onlyif mysql # aggregate syntax: 
query I rowsort label-1917
SELECT + MIN( ALL ( 26 ) ) * 53 + + 84
----
1462

skipif mysql # not compatible
query I rowsort label-1917
SELECT + MIN ( ALL ( 26 ) ) * 53 + + 84
----
1462

query I rowsort
SELECT 5 * + + 58 + 79
----
369

onlyif mysql # DIV for integer division: 
query I rowsort label-1919
SELECT DISTINCT 84 DIV + 69
----
1

skipif mysql # not compatible
query I rowsort label-1919
SELECT DISTINCT 84 / + 69
----
1

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

skipif mysql # not compatible
query I rowsort label-1920
SELECT - 7 * - ( - COUNT ( * ) )
----
-7

query I rowsort
SELECT + 13 * 68
----
884

onlyif mysql # aggregate syntax: 
query I rowsort label-1922
SELECT DISTINCT - NULLIF ( - + 98, 82 + + ( COALESCE ( 29, + 8 * - COUNT( * ) ) ) * CASE + 33 / + 99 WHEN AVG ( + 12 ) THEN + 1 / + 74 END ) * + 18 col1
----
1764

skipif mysql # not compatible
query I rowsort label-1922
SELECT DISTINCT - NULLIF ( - + 98, 82 + + ( COALESCE ( 29, + 8 * - COUNT ( * ) ) ) * CASE + 33 / + 99 WHEN AVG ( + 12 ) THEN + 1 / + 74 END ) * + 18 col1
----
1764

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1924
SELECT + 77 * - NULLIF ( 12, - 40 * + CAST( NULL AS SIGNED ) - 55 ) * - 53
----
48972

skipif mysql # not compatible
query I rowsort label-1924
SELECT + 77 * - NULLIF ( 12, - 40 * + CAST ( NULL AS INTEGER ) - 55 ) * - 53
----
48972

query I rowsort
SELECT ALL 83 * + 17
----
1411

query I rowsort
SELECT DISTINCT 1 - - 21 AS col0
----
22

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1927
SELECT ALL - - 63 DIV 39 + - COUNT( * ) * + 45
----
-44

skipif mysql # not compatible
query I rowsort label-1927
SELECT ALL - - 63 / 39 + - COUNT ( * ) * + 45
----
-44

query I rowsort
SELECT + 9 * 77 AS col0
----
693

query I rowsort
SELECT - COALESCE ( - 62, - ( 65 ) )
----
62

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1932
SELECT - 6 DIV + 73 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1932
SELECT - 6 / + 73 AS col2
----
0

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

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

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

skipif mysql # not compatible
query I rowsort label-1934
SELECT - + SUM ( - ( + 68 ) )
----
68

query I rowsort
SELECT - - 30 * + + 59 * + ( - 45 ) AS col0
----
-79650

query I rowsort
SELECT - 95 + + 11 AS col0
----
-84

query I rowsort
SELECT DISTINCT 64 * - 96 * 38 AS col2
----
-233472

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1938
SELECT - 22 * + CAST( CASE 9 WHEN 81 THEN AVG ( 35 ) / - 35 END AS SIGNED ) / 5 + + ( ( 13 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1938
SELECT - 22 * + CAST ( CASE 9 WHEN 81 THEN AVG ( 35 ) / - 35 END AS INTEGER ) / 5 + + ( ( 13 ) )
----
NULL

query I rowsort
SELECT + 61 * + - 10 * - 86 AS col0
----
52460

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1940
SELECT DISTINCT + CASE - - 99 WHEN COUNT( * ) THEN 64 / COUNT( * ) ELSE CASE - SUM( + 53 ) WHEN - 11 THEN NULL WHEN CAST( NULL AS SIGNED ) THEN COUNT( ALL - 40 ) END * 21 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1940
SELECT DISTINCT + CASE - - 99 WHEN COUNT ( * ) THEN 64 / COUNT ( * ) ELSE CASE - SUM ( + 53 ) WHEN - 11 THEN NULL WHEN CAST ( NULL AS INTEGER ) THEN COUNT ( ALL - 40 ) END * 21 END AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1941
SELECT ALL + 76 DIV + 8 + + - 99 + + 12 * + 54 AS col0
----
558

skipif mysql # not compatible
query I rowsort label-1941
SELECT ALL + 76 / + 8 + + - 99 + + 12 * + 54 AS col0
----
558

query I rowsort
SELECT ALL + ( - CASE + 56 WHEN - 94 THEN ( ( - ( + 7 ) ) ) / - 91 ELSE NULL END ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1943
SELECT DISTINCT 18 / + 4 + - CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1943
SELECT DISTINCT 18 / + 4 + - CAST ( NULL AS INTEGER ) col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1944
SELECT DISTINCT - 43 DIV - 74 + - - COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-1944
SELECT DISTINCT - 43 / - 74 + - - COUNT ( * )
----
1

query I rowsort
SELECT ALL 92 / - 8 + + CASE 17 WHEN 33 THEN - 34 + - ( - 48 ) WHEN 49 / - 25 THEN NULL END AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1946
SELECT ALL + 10 DIV + 40 + 83
----
83

skipif mysql # not compatible
query I rowsort label-1946
SELECT ALL + 10 / + 40 + 83
----
83

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1948
SELECT DISTINCT + 27 * + SUM( DISTINCT - CASE ( + 23 ) WHEN + 43 THEN - 62 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-1948
SELECT DISTINCT + 27 * + SUM ( DISTINCT - CASE ( + 23 ) WHEN + 43 THEN - 62 END )
----
NULL

query I rowsort
SELECT - 8 - 23
----
-31

query I rowsort
SELECT - 84 * - 22
----
1848

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

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

query I rowsort
SELECT ALL + 73 - + - 18 AS col0
----
91

query II rowsort
SELECT 40 col0, 82 AS col2
----
40
82

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

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

query I rowsort
SELECT DISTINCT + 56 - 23
----
33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1956
SELECT MAX( ALL CAST( NULL AS SIGNED ) ) - + 5 + 48
----
NULL

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

query I rowsort
SELECT 81 * - 79 * - 11
----
70389

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

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

query I rowsort
SELECT + 23 * + - 73 * + 34 - 41 + - ( 90 ) AS col0
----
-57217

query I rowsort
SELECT 73 + 71 + 14 * + 21 col1
----
438

query I rowsort
SELECT NULLIF ( + 60, + - 29 ) * - NULLIF ( 15 * + 96, ( 82 ) - 53 ) AS col2
----
-86400

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1962
SELECT DISTINCT - - 2 * - - 52 + + - CASE - 61 WHEN - SUM( ALL + 23 ) * - 4 THEN - 87 WHEN 11 THEN - 61 - 15 * - 16 ELSE 47 END * - SUM( 98 * + 33 - CAST( - 72 + - 97 / + 66 AS SIGNED ) )
----
155533

skipif mysql # not compatible
query I rowsort label-1962
SELECT DISTINCT - - 2 * - - 52 + + - CASE - 61 WHEN - SUM ( ALL + 23 ) * - 4 THEN - 87 WHEN 11 THEN - 61 - 15 * - 16 ELSE 47 END * - SUM ( 98 * + 33 - CAST ( - 72 + - 97 / + 66 AS INTEGER ) )
----
155533

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1964
SELECT ALL - 70 * - - 69 * CAST( NULL AS SIGNED ) / 54
----
NULL

skipif mysql # not compatible
query I rowsort label-1964
SELECT ALL - 70 * - - 69 * CAST ( NULL AS INTEGER ) / 54
----
NULL

query I rowsort
SELECT DISTINCT 35 * - 49 - + 67 AS col0
----
-1782

onlyif mysql # aggregate syntax: 
query I rowsort label-1966
SELECT ALL COUNT( * ) * - 77 * + 59
----
-4543

skipif mysql # not compatible
query I rowsort label-1966
SELECT ALL COUNT ( * ) * - 77 * + 59
----
-4543

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

skipif mysql # not compatible
query I rowsort label-1967
SELECT - 79 * + COUNT ( * ) / 91 AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1968
SELECT DISTINCT - 20 + 61 + + - COUNT( DISTINCT - 28 ) DIV 20
----
41

skipif mysql # not compatible
query I rowsort label-1968
SELECT DISTINCT - 20 + 61 + + - COUNT ( DISTINCT - 28 ) / 20
----
41

query I rowsort
SELECT ALL + 62 + + 81
----
143

onlyif mysql # aggregate syntax: 
query I rowsort label-1970
SELECT ALL - CASE + 0 WHEN - 51 THEN NULL ELSE - CASE 0 WHEN MIN( + 18 ) + 27 THEN NULL WHEN ( + CASE - ( COUNT( * ) ) WHEN 68 THEN + 84 ELSE NULL END ) THEN + 15 ELSE NULL END END + 44 * - 20
----
NULL

skipif mysql # not compatible
query I rowsort label-1970
SELECT ALL - CASE + 0 WHEN - 51 THEN NULL ELSE - CASE 0 WHEN MIN ( + 18 ) + 27 THEN NULL WHEN ( + CASE - ( COUNT ( * ) ) WHEN 68 THEN + 84 ELSE NULL END ) THEN + 15 ELSE NULL END END + 44 * - 20
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1972
SELECT CASE - + 96 WHEN + 12 - 95 THEN 5 ELSE NULL END + MAX( CAST( NULL AS DECIMAL ) ) * + 1 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1972
SELECT CASE - + 96 WHEN + 12 - 95 THEN 5 ELSE NULL END + MAX ( CAST ( NULL AS REAL ) ) * + 1 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1973
SELECT SUM( + 24 ) * 5 AS col1
----
120

skipif mysql # not compatible
query I rowsort label-1973
SELECT SUM ( + 24 ) * 5 AS col1
----
120

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

query I rowsort
SELECT ALL 39 + + 56 AS col2
----
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1976
SELECT ALL - 4 + + COUNT( * ) AS col0, CAST( NULL AS SIGNED ) col1
----
-3
NULL

skipif mysql # not compatible
query II rowsort label-1976
SELECT ALL - 4 + + COUNT ( * ) AS col0, CAST ( NULL AS INTEGER ) col1
----
-3
NULL

query I rowsort
SELECT DISTINCT 74 * 32
----
2368

query I rowsort
SELECT 60 * 60 AS col1
----
3600

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

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

query I rowsort
SELECT ALL 26 - 99 AS col0
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-1981
SELECT COUNT( * ) + - - 71 + - 92 + - 61
----
-81

skipif mysql # not compatible
query I rowsort label-1981
SELECT COUNT ( * ) + - - 71 + - 92 + - 61
----
-81

query I rowsort
SELECT ALL - NULLIF ( - 12, COALESCE ( 44, + 9 * 73 ) ) AS col2
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-1983
SELECT - 69 * - 31 * - COUNT( * ) * 64 + + 79 AS col0
----
-136817

skipif mysql # not compatible
query I rowsort label-1983
SELECT - 69 * - 31 * - COUNT ( * ) * 64 + + 79 AS col0
----
-136817

onlyif mysql # aggregate syntax: 
query I rowsort label-1984
SELECT SUM( ALL 16 ) * 89 AS col2
----
1424

skipif mysql # not compatible
query I rowsort label-1984
SELECT SUM ( ALL 16 ) * 89 AS col2
----
1424

onlyif mysql # aggregate syntax: 
query I rowsort label-1985
SELECT 66 + - COUNT( DISTINCT - 10 ) + 30 + COUNT( * ) * + 57 * 57 AS col2
----
3344

skipif mysql # not compatible
query I rowsort label-1985
SELECT 66 + - COUNT ( DISTINCT - 10 ) + 30 + COUNT ( * ) * + 57 * 57 AS col2
----
3344

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1986
SELECT 76 * CAST( NULL AS SIGNED ) AS col0, + 66 AS col2
----
NULL
66

skipif mysql # not compatible
query II rowsort label-1986
SELECT 76 * CAST ( NULL AS INTEGER ) AS col0, + 66 AS col2
----
NULL
66

onlyif mysql # aggregate syntax: 
query I rowsort label-1987
SELECT ALL + 42 * 76 * + MIN( ALL - 9 ) AS col2
----
-28728

skipif mysql # not compatible
query I rowsort label-1987
SELECT ALL + 42 * 76 * + MIN ( ALL - 9 ) AS col2
----
-28728

onlyif mysql # aggregate syntax: 
query I rowsort label-1988
SELECT 82 + - COALESCE ( + 13, - 64 * COUNT( * ), 52 ) + 10
----
79

skipif mysql # not compatible
query I rowsort label-1988
SELECT 82 + - COALESCE ( + 13, - 64 * COUNT ( * ), 52 ) + 10
----
79

query I rowsort
SELECT 42 * - 94 * 98 * - 22 + 50
----
8511938

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1990
SELECT ( 81 ) * 7 + - + SUM( DISTINCT - CAST( NULL AS SIGNED ) ) + - 16 * 43 / 73
----
NULL

skipif mysql # not compatible
query I rowsort label-1990
SELECT ( 81 ) * 7 + - + SUM ( DISTINCT - CAST ( NULL AS INTEGER ) ) + - 16 * 43 / 73
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1991
SELECT - 37 * + COALESCE ( - + 85, + 80 + 96 * + 6 ) * - 2 + + COALESCE ( 67 + - ( - 80 + - 98 ), 34 + - COALESCE ( - 29 + 93 * 44, + MAX( DISTINCT - ( + 79 ) ) + MAX( - 65 - COALESCE ( ( - 4 ), - 64 ) ), + COUNT( * ) + - ( + 67 ) ), - ( 61 ) ) AS col0
----
-6045

skipif mysql # not compatible
query I rowsort label-1991
SELECT - 37 * + COALESCE ( - + 85, + 80 + 96 * + 6 ) * - 2 + + COALESCE ( 67 + - ( - 80 + - 98 ), 34 + - COALESCE ( - 29 + 93 * 44, + MAX ( DISTINCT - ( + 79 ) ) + MAX ( - 65 - COALESCE ( ( - 4 ), - 64 ) ), + COUNT ( * ) + - ( + 67 ) ), - ( 61 ) ) AS col0
----
-6045

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

skipif mysql # not compatible
query I rowsort label-1992
SELECT 7 / + 20 / + COUNT ( * ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1993
SELECT COUNT( * ) * - 79 + - 40
----
-119

skipif mysql # not compatible
query I rowsort label-1993
SELECT COUNT ( * ) * - 79 + - 40
----
-119

onlyif mysql # aggregate syntax: 
query I rowsort label-1994
SELECT + COUNT( * ) * + + 98 * - 6
----
-588

skipif mysql # not compatible
query I rowsort label-1994
SELECT + COUNT ( * ) * + + 98 * - 6
----
-588

query I rowsort
SELECT 67 * - - 82
----
5494

onlyif mysql # aggregate syntax: 
query I rowsort label-1996
SELECT ALL + MAX( ALL + COALESCE ( - 60, + 60 * - 19 ) ) + + 84
----
24

skipif mysql # not compatible
query I rowsort label-1996
SELECT ALL + MAX ( ALL + COALESCE ( - 60, + 60 * - 19 ) ) + + 84
----
24

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

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

query I rowsort
SELECT - 43 + + 14 * + - 58 * - 72 - 73 * + 69 AS col0
----
53384

query II rowsort
SELECT ALL - ( 97 ), 28 AS col1
----
-97
28

onlyif mysql # aggregate syntax: 
query I rowsort label-2000
SELECT DISTINCT + COUNT( * ) * - 70 * - COALESCE ( 68, 49 * COUNT( * ), - 7 * 27 ) AS col1
----
4760

skipif mysql # not compatible
query I rowsort label-2000
SELECT DISTINCT + COUNT ( * ) * - 70 * - COALESCE ( 68, 49 * COUNT ( * ), - 7 * 27 ) AS col1
----
4760

onlyif mysql # DIV for integer division: 
query I rowsort label-2001
SELECT ALL 10 + + 29 + + 17 DIV + + 31
----
39

skipif mysql # not compatible
query I rowsort label-2001
SELECT ALL 10 + + 29 + + 17 / + + 31
----
39

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

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

query I rowsort
SELECT CASE + 88 WHEN 38 / - - 42 + + + 78 + - ( - 10 ) / NULLIF ( 66 * - 28, 25 * 10 ) THEN + 24 WHEN 61 THEN NULL END - + 13 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2004
SELECT ALL 78 * + - ( 33 ) - + 52 DIV + ( - 60 ) + 67
----
-2507

skipif mysql # not compatible
query I rowsort label-2004
SELECT ALL 78 * + - ( 33 ) - + 52 / + ( - 60 ) + 67
----
-2507

query I rowsort
SELECT 47 * - 47 AS col2
----
-2209

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2006
SELECT CASE + ( - 50 ) WHEN 23 + 95 THEN NULL WHEN + NULLIF ( 90, 29 ) * CAST( NULL AS SIGNED ) THEN 7 + - 76 END / 33
----
NULL

skipif mysql # not compatible
query I rowsort label-2006
SELECT CASE + ( - 50 ) WHEN 23 + 95 THEN NULL WHEN + NULLIF ( 90, 29 ) * CAST ( NULL AS INTEGER ) THEN 7 + - 76 END / 33
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2007
SELECT CAST( 30 AS SIGNED ) * 2 * + + ( + - 1 ) + - 51 * 66 AS col2
----
-3426

skipif mysql # not compatible
query I rowsort label-2007
SELECT CAST ( 30 AS INTEGER ) * 2 * + + ( + - 1 ) + - 51 * 66 AS col2
----
-3426

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2009
SELECT DISTINCT 90 * - + 79 - - ( - SUM( ALL + + 95 ) ) AS col0
----
-7205

skipif mysql # not compatible
query I rowsort label-2009
SELECT DISTINCT 90 * - + 79 - - ( - SUM ( ALL + + 95 ) ) AS col0
----
-7205

query II rowsort
SELECT ALL + 17 AS col0, + 49 * - 42 AS col0
----
17
-2058

query I rowsort
SELECT ALL 19 * - - 75
----
1425

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

skipif mysql # not compatible
query I rowsort label-2012
SELECT MIN ( ALL 2 )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-2013
SELECT + COUNT( * ) * + 33 * + + 6
----
198

skipif mysql # not compatible
query I rowsort label-2013
SELECT + COUNT ( * ) * + 33 * + + 6
----
198

onlyif mysql # aggregate syntax: 
query I rowsort label-2014
SELECT DISTINCT 54 * - ( + COALESCE ( - - 77, - - NULLIF ( COUNT( DISTINCT + 10 ), - 56 ) ) )
----
-4158

skipif mysql # not compatible
query I rowsort label-2014
SELECT DISTINCT 54 * - ( + COALESCE ( - - 77, - - NULLIF ( COUNT ( DISTINCT + 10 ), - 56 ) ) )
----
-4158

query I rowsort
SELECT 74 * - + 86 - + + 79
----
-6443

onlyif mysql # aggregate syntax: 
query I rowsort label-2016
SELECT + CASE - + 55 WHEN - + COUNT( * ) THEN + + 4 ELSE NULL END * 47
----
NULL

skipif mysql # not compatible
query I rowsort label-2016
SELECT + CASE - + 55 WHEN - + COUNT ( * ) THEN + + 4 ELSE NULL END * 47
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2017
SELECT + CASE + - 25 WHEN - 98 THEN + + COUNT( * ) ELSE - COUNT( * ) + - COUNT( * ) END - 50 AS col2
----
-52

skipif mysql # not compatible
query I rowsort label-2017
SELECT + CASE + - 25 WHEN - 98 THEN + + COUNT ( * ) ELSE - COUNT ( * ) + - COUNT ( * ) END - 50 AS col2
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-2018
SELECT + 2 - 57 + + - ( - + 81 ) * + COUNT( * ) + 80
----
106

skipif mysql # not compatible
query I rowsort label-2018
SELECT + 2 - 57 + + - ( - + 81 ) * + COUNT ( * ) + 80
----
106

query I rowsort
SELECT ALL 86 + 32
----
118

onlyif mysql # aggregate syntax: 
query II rowsort label-2020
SELECT DISTINCT + + 90, COUNT( * ) + - + MIN( ALL - + 69 ) - 93 AS col1
----
90
-23

skipif mysql # not compatible
query II rowsort label-2020
SELECT DISTINCT + + 90, COUNT ( * ) + - + MIN ( ALL - + 69 ) - 93 AS col1
----
90
-23

onlyif mysql # DIV for integer division: 
query I rowsort label-2021
SELECT - 56 * + + 60 * 63 - + 87 DIV - 31
----
-211678

skipif mysql # not compatible
query I rowsort label-2021
SELECT - 56 * + + 60 * 63 - + 87 / - 31
----
-211678

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2022
SELECT ALL CASE - MIN( + - 5 ) WHEN CAST( NULL AS SIGNED ) * + + 93 + - 38 * + 46 THEN CASE + 53 WHEN 57 THEN 7 END + CAST( - COALESCE ( 97, 73 ) AS SIGNED ) * + 54 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2022
SELECT ALL CASE - MIN ( + - 5 ) WHEN CAST ( NULL AS INTEGER ) * + + 93 + - 38 * + 46 THEN CASE + 53 WHEN 57 THEN 7 END + CAST ( - COALESCE ( 97, 73 ) AS INTEGER ) * + 54 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2023
SELECT ALL 13 + + 9 * + 31 * 57 * - - COUNT( * ) * COUNT( * ) AS col0
----
15916

skipif mysql # not compatible
query I rowsort label-2023
SELECT ALL 13 + + 9 * + 31 * 57 * - - COUNT ( * ) * COUNT ( * ) AS col0
----
15916

onlyif mysql # aggregate syntax: 
query I rowsort label-2024
SELECT + 82 + + COUNT( * ) * + CASE - 91 WHEN + + 52 THEN NULL WHEN 45 THEN + 99 + 44 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2024
SELECT + 82 + + COUNT ( * ) * + CASE - 91 WHEN + + 52 THEN NULL WHEN 45 THEN + 99 + 44 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2025
SELECT - + 26 / + 93 * + CASE - 86 WHEN - 18 THEN - CAST( NULL AS SIGNED ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2025
SELECT - + 26 / + 93 * + CASE - 86 WHEN - 18 THEN - CAST ( NULL AS INTEGER ) END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2026
SELECT DISTINCT + + 35 + ( + 70 ) AS col0, 70 + 62 - - CAST( CASE AVG ( 56 ) WHEN 32 THEN - 84 + - 45 WHEN COUNT( * ) * - 43 + 25 THEN 23 * - 86 + - 71 END + CASE + 64 WHEN 56 + 27 * + 54 THEN - AVG ( + 54 ) + 23 ELSE 33 + - 12 * - 64 END AS SIGNED )
----
105
NULL

skipif mysql # not compatible
query II rowsort label-2026
SELECT DISTINCT + + 35 + ( + 70 ) AS col0, 70 + 62 - - CAST ( CASE AVG ( 56 ) WHEN 32 THEN - 84 + - 45 WHEN COUNT ( * ) * - 43 + 25 THEN 23 * - 86 + - 71 END + CASE + 64 WHEN 56 + 27 * + 54 THEN - AVG ( + 54 ) + 23 ELSE 33 + - 12 * - 64 END AS INTEGER )
----
105
NULL

query I rowsort
SELECT ALL - + 72 + 85
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-2028
SELECT DISTINCT + COUNT( * ) * + 21 - + ( + NULLIF ( + 9, 76 + + 24 ) ) * - 6 AS col1
----
75

skipif mysql # not compatible
query I rowsort label-2028
SELECT DISTINCT + COUNT ( * ) * + 21 - + ( + NULLIF ( + 9, 76 + + 24 ) ) * - 6 AS col1
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-2029
SELECT - - 82 + 39 + + + CASE + 80 WHEN - + 78 THEN NULL WHEN 6 * 91 THEN - 86 WHEN 10 * + 44 THEN NULL WHEN + COUNT( * ) THEN NULL ELSE + 58 * 7 END * 94 AS col0
----
38285

skipif mysql # not compatible
query I rowsort label-2029
SELECT - - 82 + 39 + + + CASE + 80 WHEN - + 78 THEN NULL WHEN 6 * 91 THEN - 86 WHEN 10 * + 44 THEN NULL WHEN + COUNT ( * ) THEN NULL ELSE + 58 * 7 END * 94 AS col0
----
38285

query I rowsort
SELECT - 88 * + + ( - + 1 ) + + 47
----
135

query I rowsort
SELECT ALL 2 + - 47
----
-45

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

query I rowsort
SELECT - 46 + ( + + 24 ) AS col2
----
-22

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2036
SELECT - MIN( ALL 77 ) col1
----
-77

skipif mysql # not compatible
query I rowsort label-2036
SELECT - MIN ( ALL 77 ) col1
----
-77

query I rowsort
SELECT DISTINCT + - 55 - + 34 AS col0
----
-89

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2039
SELECT ALL + 86 - - COALESCE ( CAST( NULL AS SIGNED ), - + 7 ) * - 2
----
100

skipif mysql # not compatible
query I rowsort label-2039
SELECT ALL + 86 - - COALESCE ( CAST ( NULL AS INTEGER ), - + 7 ) * - 2
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-2040
SELECT - MIN( DISTINCT - 66 ) * - + 8
----
-528

skipif mysql # not compatible
query I rowsort label-2040
SELECT - MIN ( DISTINCT - 66 ) * - + 8
----
-528

query II rowsort
SELECT 56 col0, 55 + 61
----
56
116

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

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

query II rowsort
SELECT 29, 55 AS col1
----
29
55

onlyif mysql # aggregate syntax: 
query I rowsort label-2044
SELECT - COALESCE ( 94, + MAX( 54 ) * - 50 * + 97 - 44 ) AS col1
----
-94

skipif mysql # not compatible
query I rowsort label-2044
SELECT - COALESCE ( 94, + MAX ( 54 ) * - 50 * + 97 - 44 ) AS col1
----
-94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2045
SELECT DISTINCT 38 * + COUNT( * ) * CAST( NULL AS SIGNED ) * + MIN( + ( - 22 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2045
SELECT DISTINCT 38 * + COUNT ( * ) * CAST ( NULL AS INTEGER ) * + MIN ( + ( - 22 ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2046
SELECT DISTINCT + 69 * - 34 * - + SUM( + 62 )
----
145452

skipif mysql # not compatible
query I rowsort label-2046
SELECT DISTINCT + 69 * - 34 * - + SUM ( + 62 )
----
145452

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

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

query I rowsort
SELECT ALL + 51 * - + 34
----
-1734

query I rowsort
SELECT - 25 + 96
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-2050
SELECT COUNT( + 33 ) * - SUM( DISTINCT + 88 ) + - + 14 + + NULLIF ( - MAX( ALL + COALESCE ( 34, ( - 6 ), 9 + + 50 ) ), - 54 + - 78 ) * 74
----
-2618

skipif mysql # not compatible
query I rowsort label-2050
SELECT COUNT ( + 33 ) * - SUM ( DISTINCT + 88 ) + - + 14 + + NULLIF ( - MAX ( ALL + COALESCE ( 34, ( - 6 ), 9 + + 50 ) ), - 54 + - 78 ) * 74
----
-2618

query II rowsort
SELECT ALL + 27, 35 col1
----
27
35

query I rowsort
SELECT + 7 + + 87 AS col2
----
94

onlyif mysql # DIV for integer division: 
query I rowsort label-2053
SELECT - 78 DIV + 11 AS col1
----
-7

skipif mysql # not compatible
query I rowsort label-2053
SELECT - 78 / + 11 AS col1
----
-7

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2054
SELECT + 83 / + CAST( NULL AS DECIMAL ) * CAST( NULL AS SIGNED ) AS col0
----
NULL

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2055
SELECT CAST( 78 AS SIGNED ) * + + 4 * - 27 + + + COALESCE ( - - COUNT( * ), + 21 * - COUNT( * ), 23 ) AS col1
----
-8423

skipif mysql # not compatible
query I rowsort label-2055
SELECT CAST ( 78 AS INTEGER ) * + + 4 * - 27 + + + COALESCE ( - - COUNT ( * ), + 21 * - COUNT ( * ), 23 ) AS col1
----
-8423

onlyif mysql # aggregate syntax: 
query II rowsort label-2056
SELECT + 1 - + - SUM( ALL + 88 ) + - - 75 AS col0, 44
----
164
44

skipif mysql # not compatible
query II rowsort label-2056
SELECT + 1 - + - SUM ( ALL + 88 ) + - - 75 AS col0, 44
----
164
44

onlyif mysql # DIV for integer division: 
query I rowsort label-2057
SELECT DISTINCT 7 DIV + 48
----
0

skipif mysql # not compatible
query I rowsort label-2057
SELECT DISTINCT 7 / + 48
----
0

query II rowsort
SELECT ALL + 86 * 93 + 61 - - - 64, 18 AS col1
----
7995
18

onlyif mysql # aggregate syntax: 
query I rowsort label-2059
SELECT + 29 / + 94 + + - CASE + + 79 WHEN + 81 THEN - 87 - 53 END + ( + 95 - COUNT( 92 + 19 * 1 ) * 33 ) * COALESCE ( 97, - 22 + - 64 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2059
SELECT + 29 / + 94 + + - CASE + + 79 WHEN + 81 THEN - 87 - 53 END + ( + 95 - COUNT ( 92 + 19 * 1 ) * 33 ) * COALESCE ( 97, - 22 + - 64 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2060
SELECT DISTINCT - 25 DIV 86 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2060
SELECT DISTINCT - 25 / 86 AS col2
----
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2062
SELECT + ( MIN( - 10 ) ) * SUM( ( + 49 ) ) col2
----
-490

skipif mysql # not compatible
query I rowsort label-2062
SELECT + ( MIN ( - 10 ) ) * SUM ( ( + 49 ) ) col2
----
-490

onlyif mysql # DIV for integer division: 
query I rowsort label-2063
SELECT ALL COALESCE ( 57, - 13 * - 94 DIV + 34 + ( 20 ) * 68 + + 67, COALESCE ( + 30, - 21 ) ) * ( - 18 DIV + 21 ) + ( - NULLIF ( 47, + 56 + 6 ) ) * + 66
----
-3102

skipif mysql # not compatible
query I rowsort label-2063
SELECT ALL COALESCE ( 57, - 13 * - 94 / + 34 + ( 20 ) * 68 + + 67, COALESCE ( + 30, - 21 ) ) * ( - 18 / + 21 ) + ( - NULLIF ( 47, + 56 + 6 ) ) * + 66
----
-3102

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2064
SELECT + - 46 + - + CASE - 87 WHEN 80 + MAX( - 95 ) + + 26 THEN NULL WHEN + COUNT( * ) - 29 * - 55 THEN COALESCE ( CAST( - 60 AS SIGNED ), - COUNT( * ) * CASE 89 * 21 WHEN CASE - 61 WHEN 20 * + 52 - 67 THEN - 10 END THEN 39 ELSE NULL END ) ELSE 27 + + 26 END AS col0
----
-99

skipif mysql # not compatible
query I rowsort label-2064
SELECT + - 46 + - + CASE - 87 WHEN 80 + MAX ( - 95 ) + + 26 THEN NULL WHEN + COUNT ( * ) - 29 * - 55 THEN COALESCE ( CAST ( - 60 AS INTEGER ), - COUNT ( * ) * CASE 89 * 21 WHEN CASE - 61 WHEN 20 * + 52 - 67 THEN - 10 END THEN 39 ELSE NULL END ) ELSE 27 + + 26 END AS col0
----
-99

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2066
SELECT + - CASE 76 WHEN - 83 * - 64 THEN - MAX( + 98 ) WHEN - COUNT( * ) THEN 70 ELSE NULL END + + 25 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2066
SELECT + - CASE 76 WHEN - 83 * - 64 THEN - MAX ( + 98 ) WHEN - COUNT ( * ) THEN 70 ELSE NULL END + + 25 AS col1
----
NULL

query II rowsort
SELECT + 16 AS col0, - 63
----
16
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-2068
SELECT DISTINCT - + 30 * COALESCE ( + 32, - COUNT( * ) + COUNT( * ), - ( + 2 ), + 11 * ( - COALESCE ( 27, 61 * MAX( DISTINCT 29 * + 45 ) ) * 67 ) ) + MIN( DISTINCT 41 )
----
-919

skipif mysql # not compatible
query I rowsort label-2068
SELECT DISTINCT - + 30 * COALESCE ( + 32, - COUNT ( * ) + COUNT ( * ), - ( + 2 ), + 11 * ( - COALESCE ( 27, 61 * MAX ( DISTINCT 29 * + 45 ) ) * 67 ) ) + MIN ( DISTINCT 41 )
----
-919

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2070
SELECT MAX( ALL + 74 ) AS col1
----
74

skipif mysql # not compatible
query I rowsort label-2070
SELECT MAX ( ALL + 74 ) AS col1
----
74

query I rowsort
SELECT - 61 + 77 AS col0
----
16

onlyif mysql # DIV for integer division: 
query I rowsort label-2072
SELECT DISTINCT 31 DIV - ( 11 ) AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-2072
SELECT DISTINCT 31 / - ( 11 ) AS col1
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2073
SELECT ALL - 15 - + 57 + 44 + + CAST( - AVG ( DISTINCT + - 86 ) AS SIGNED )
----
58

skipif mysql # not compatible
query I rowsort label-2073
SELECT ALL - 15 - + 57 + 44 + + CAST ( - AVG ( DISTINCT + - 86 ) AS INTEGER )
----
58

onlyif mysql # DIV for integer division: 
query I rowsort label-2074
SELECT + 92 DIV NULLIF ( - ( 44 ), - + 22 )
----
-2

skipif mysql # not compatible
query I rowsort label-2074
SELECT + 92 / NULLIF ( - ( 44 ), - + 22 )
----
-2

query I rowsort
SELECT - 97 * - 97
----
9409

onlyif mysql # aggregate syntax: 
query I rowsort label-2076
SELECT ALL - 45 * COUNT( * ) * 95 AS col2
----
-4275

skipif mysql # not compatible
query I rowsort label-2076
SELECT ALL - 45 * COUNT ( * ) * 95 AS col2
----
-4275

onlyif mysql # aggregate syntax: 
query I rowsort label-2077
SELECT + 9 + MAX( + 71 )
----
80

skipif mysql # not compatible
query I rowsort label-2077
SELECT + 9 + MAX ( + 71 )
----
80

query I rowsort
SELECT - ( 57 ) * 74
----
-4218

query I rowsort
SELECT ALL + 82 * + 40 AS col2
----
3280

onlyif mysql # aggregate syntax: 
query I rowsort label-2080
SELECT 60 - - COUNT( * ) + NULLIF ( 18, 88 ) - - COUNT( * ) + SUM( 81 ) + + 73 * - 96
----
-6847

skipif mysql # not compatible
query I rowsort label-2080
SELECT 60 - - COUNT ( * ) + NULLIF ( 18, 88 ) - - COUNT ( * ) + SUM ( 81 ) + + 73 * - 96
----
-6847

onlyif mysql # aggregate syntax: 
query I rowsort label-2081
SELECT 76 * + COUNT( * ) * - - 93
----
7068

skipif mysql # not compatible
query I rowsort label-2081
SELECT 76 * + COUNT ( * ) * - - 93
----
7068

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

skipif mysql # not compatible
query I rowsort label-2082
SELECT ALL + 83 * - ( + COUNT ( * ) ) * + 83 * - COUNT ( * ) AS col1
----
6889

query I rowsort
SELECT 82 + 46
----
128

query II rowsort
SELECT 66 * 54 col2, 11
----
3564
11

onlyif mysql # aggregate syntax: 
query II rowsort label-2085
SELECT COUNT( * ) * 97 AS col2, + 57 + + + 18 + COUNT( * ) + - COALESCE ( ( 88 ), - CASE WHEN ( - 15 ) < 81 + 90 THEN - NULLIF ( - 5, - 74 * + 81 ) + 67 END * + COUNT( * ), 64 + 61 ) AS col0
----
97
-12

skipif mysql # not compatible
query II rowsort label-2085
SELECT COUNT ( * ) * 97 AS col2, + 57 + + + 18 + COUNT ( * ) + - COALESCE ( ( 88 ), - CASE WHEN ( - 15 ) < 81 + 90 THEN - NULLIF ( - 5, - 74 * + 81 ) + 67 END * + COUNT ( * ), 64 + 61 ) AS col0
----
97
-12

onlyif mysql # DIV for integer division: 
query II rowsort label-2086
SELECT - 62 DIV 77 + 21 col1, - ( 70 )
----
21
-70

skipif mysql # not compatible
query II rowsort label-2086
SELECT - 62 / 77 + 21 col1, - ( 70 )
----
21
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-2087
SELECT ALL - COALESCE ( - - NULLIF ( - - 79, NULLIF ( 22, + - COUNT( * ) + COUNT( * ) ) * - 60 ), 42 ) + + 45
----
-34

skipif mysql # not compatible
query I rowsort label-2087
SELECT ALL - COALESCE ( - - NULLIF ( - - 79, NULLIF ( 22, + - COUNT ( * ) + COUNT ( * ) ) * - 60 ), 42 ) + + 45
----
-34

onlyif mysql # aggregate syntax: 
query II rowsort label-2088
SELECT DISTINCT - COUNT( * ) + SUM( - 81 ) AS col1, - 53 + 74
----
-82
21

skipif mysql # not compatible
query II rowsort label-2088
SELECT DISTINCT - COUNT ( * ) + SUM ( - 81 ) AS col1, - 53 + 74
----
-82
21

query I rowsort
SELECT ALL 18 * + 36 AS col1
----
648

query I rowsort
SELECT + + 31 * 70 * - 3 + - ( + + 83 )
----
-6593

onlyif mysql # DIV for integer division: 
query II rowsort label-2091
SELECT 63 DIV 12 AS col2, 4 * 19 + - 38
----
5
38

skipif mysql # not compatible
query II rowsort label-2091
SELECT 63 / 12 AS col2, 4 * 19 + - 38
----
5
38

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2093
SELECT ALL 17 + COUNT( * ) AS col0, 61 * - - 79 * + + CAST( ( - + 57 ) AS SIGNED ) AS col1
----
18
-274683

skipif mysql # not compatible
query II rowsort label-2093
SELECT ALL 17 + COUNT ( * ) AS col0, 61 * - - 79 * + + CAST ( ( - + 57 ) AS INTEGER ) AS col1
----
18
-274683

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2094
SELECT - ( - + 7 ) - COUNT( * ) + SUM( + - 96 ) + - 49 + + + 42 DIV CASE COUNT( * ) + 23 DIV - 92 WHEN + COUNT( ALL 91 ) THEN + 90 END
----
-139

skipif mysql # not compatible
query I rowsort label-2094
SELECT - ( - + 7 ) - COUNT ( * ) + SUM ( + - 96 ) + - 49 + + + 42 / CASE COUNT ( * ) + 23 / - 92 WHEN + COUNT ( ALL 91 ) THEN + 90 END
----
-139

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2095
SELECT + - COALESCE ( - ( 51 ), 32, 91, - 31 * COUNT( * ) DIV - ( - 77 ) + + NULLIF ( 20 + - CASE 44 WHEN 66 THEN - 54 * 52 + - 35 ELSE - 56 END * - 91, + COUNT( * ) ) DIV COUNT( * ) ) col2
----
51

skipif mysql # not compatible
query I rowsort label-2095
SELECT + - COALESCE ( - ( 51 ), 32, 91, - 31 * COUNT ( * ) / - ( - 77 ) + + NULLIF ( 20 + - CASE 44 WHEN 66 THEN - 54 * 52 + - 35 ELSE - 56 END * - 91, + COUNT ( * ) ) / COUNT ( * ) ) col2
----
51

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2096
SELECT ALL 31 DIV - 48 * - - 99 AS col2, - COUNT( * ) * - + ( 58 ) DIV - SUM( 28 )
----
0
-2

skipif mysql # not compatible
query II rowsort label-2096
SELECT ALL 31 / - 48 * - - 99 AS col2, - COUNT ( * ) * - + ( 58 ) / - SUM ( 28 )
----
0
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-2097
SELECT 42 + 33 + + - 34 + + 67 + - COUNT( * )
----
107

skipif mysql # not compatible
query I rowsort label-2097
SELECT 42 + 33 + + - 34 + + 67 + - COUNT ( * )
----
107

onlyif mysql # aggregate syntax: 
query I rowsort label-2098
SELECT DISTINCT COUNT( * ) - 78 + + 92 * - 71 AS col2
----
-6609

skipif mysql # not compatible
query I rowsort label-2098
SELECT DISTINCT COUNT ( * ) - 78 + + 92 * - 71 AS col2
----
-6609

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

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

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

skipif mysql # not compatible
query I rowsort label-2100
SELECT 11 - + ( + - CAST ( NULL AS REAL ) ) col1
----
NULL

query II rowsort
SELECT ALL 20 * + 98 AS col1, 36
----
1960
36

query I rowsort
SELECT - 89 * 29
----
-2581

onlyif mysql # aggregate syntax: 
query I rowsort label-2103
SELECT - 64 + - 28 + COUNT( * ) + - - 78
----
-13

skipif mysql # not compatible
query I rowsort label-2103
SELECT - 64 + - 28 + COUNT ( * ) + - - 78
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-2104
SELECT 91 + + SUM( + 62 )
----
153

skipif mysql # not compatible
query I rowsort label-2104
SELECT 91 + + SUM ( + 62 )
----
153

query I rowsort
SELECT 57 * - 16
----
-912

onlyif mysql # aggregate syntax: 
query I rowsort label-2106
SELECT CASE 63 WHEN - + 60 * + 20 THEN - - COUNT( * ) END + + 42
----
NULL

skipif mysql # not compatible
query I rowsort label-2106
SELECT CASE 63 WHEN - + 60 * + 20 THEN - - COUNT ( * ) END + + 42
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2107
SELECT ALL 74 AS col1, - COUNT( + + 56 ) AS col0
----
74
-1

skipif mysql # not compatible
query II rowsort label-2107
SELECT ALL 74 AS col1, - COUNT ( + + 56 ) AS col0
----
74
-1

query II rowsort
SELECT ALL 75, - 33 AS col0
----
75
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-2109
SELECT ( + MIN( - ( + 24 ) ) ) + - - 89 * - 45 + + - 30 AS col2
----
-4059

skipif mysql # not compatible
query I rowsort label-2109
SELECT ( + MIN ( - ( + 24 ) ) ) + - - 89 * - 45 + + - 30 AS col2
----
-4059

onlyif mysql # aggregate syntax: 
query I rowsort label-2110
SELECT DISTINCT 37 + - 99 * - ( + + COUNT( * ) ) * 86
----
8551

skipif mysql # not compatible
query I rowsort label-2110
SELECT DISTINCT 37 + - 99 * - ( + + COUNT ( * ) ) * 86
----
8551

onlyif mysql # DIV for integer division: 
query I rowsort label-2111
SELECT ALL 96 DIV 10 AS col0
----
9

skipif mysql # not compatible
query I rowsort label-2111
SELECT ALL 96 / 10 AS col0
----
9

query I rowsort
SELECT 1 * - 88
----
-88

query I rowsort
SELECT DISTINCT - 6 * - 12 AS col2
----
72

onlyif mysql # aggregate syntax: 
query II rowsort label-2114
SELECT 91 AS col1, - 9 + + CASE - 0 WHEN + + COUNT( * ) THEN - 79 * - - 36 + + SUM( 39 ) + + 68 END * - 41 AS col0
----
91
NULL

skipif mysql # not compatible
query II rowsort label-2114
SELECT 91 AS col1, - 9 + + CASE - 0 WHEN + + COUNT ( * ) THEN - 79 * - - 36 + + SUM ( 39 ) + + 68 END * - 41 AS col0
----
91
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2115
SELECT ALL 60 DIV + 39 col1
----
1

skipif mysql # not compatible
query I rowsort label-2115
SELECT ALL 60 / + 39 col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-2116
SELECT CASE + 96 WHEN - CAST( - 57 AS DECIMAL ) DIV 81 + - 39 + 16 + + + CAST( NULL AS SIGNED ) THEN NULL ELSE - NULLIF ( - 62, - NULLIF ( + 93, + 65 + COALESCE ( + COUNT( * ), + 26 - - 58 ) * COUNT( * ) ) DIV AVG ( + ( + 47 ) ) - 6 ) END + + 82 DIV CAST( 35 AS SIGNED )
----
64

skipif mysql # not compatible
query I rowsort label-2116
SELECT CASE + 96 WHEN - CAST ( - 57 AS REAL ) / 81 + - 39 + 16 + + + CAST ( NULL AS INTEGER ) THEN NULL ELSE - NULLIF ( - 62, - NULLIF ( + 93, + 65 + COALESCE ( + COUNT ( * ), + 26 - - 58 ) * COUNT ( * ) ) / AVG ( + ( + 47 ) ) - 6 ) END + + 82 / CAST ( 35 AS INTEGER )
----
64

query I rowsort
SELECT DISTINCT 95 * 25
----
2375

onlyif mysql # DIV for integer division: 
query I rowsort label-2118
SELECT ALL + 61 DIV + + 4 col0
----
15

skipif mysql # not compatible
query I rowsort label-2118
SELECT ALL + 61 / + + 4 col0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-2119
SELECT DISTINCT MAX( DISTINCT - 72 ) * + + 46 + 65 + - 34
----
-3281

skipif mysql # not compatible
query I rowsort label-2119
SELECT DISTINCT MAX ( DISTINCT - 72 ) * + + 46 + 65 + - 34
----
-3281

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2120
SELECT + 49 / 25 + + + 61 + 1 + + CASE + ( + + 6 ) WHEN + 86 / 8 - - CAST( + 29 AS SIGNED ) THEN NULL WHEN 82 * - 32 THEN ( ( 25 ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-2120
SELECT + 49 / 25 + + + 61 + 1 + + CASE + ( + + 6 ) WHEN + 86 / 8 - - CAST ( + 29 AS INTEGER ) THEN NULL WHEN 82 * - 32 THEN ( ( 25 ) ) END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2121
SELECT ALL - - 28 * + - 66 + + - 51 * NULLIF ( 25, + + CASE - - 23 WHEN - 87 + - CASE + 44 WHEN + 47 * + 53 + - 33 THEN - COUNT( * ) + 8 END THEN - 55 WHEN + ( 73 ) + NULLIF ( + 7, + 16 ) THEN - 63 * + CAST( NULL AS SIGNED ) ELSE NULL END + + 30 / 21 ) + + ( + ( 89 ) ) AS col2
----
-3034

skipif mysql # not compatible
query I rowsort label-2121
SELECT ALL - - 28 * + - 66 + + - 51 * NULLIF ( 25, + + CASE - - 23 WHEN - 87 + - CASE + 44 WHEN + 47 * + 53 + - 33 THEN - COUNT ( * ) + 8 END THEN - 55 WHEN + ( 73 ) + NULLIF ( + 7, + 16 ) THEN - 63 * + CAST ( NULL AS INTEGER ) ELSE NULL END + + 30 / 21 ) + + ( + ( 89 ) ) AS col2
----
-3034

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2122
SELECT - COALESCE ( + 21, - 87, 86 DIV NULLIF ( 3, - COUNT( * ) ) - - 41, - 19 + SUM( 69 ) * 76 ) AS col0
----
-21

skipif mysql # not compatible
query I rowsort label-2122
SELECT - COALESCE ( + 21, - 87, 86 / NULLIF ( 3, - COUNT ( * ) ) - - 41, - 19 + SUM ( 69 ) * 76 ) AS col0
----
-21

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2124
SELECT COALESCE ( - 79, + MAX( ALL - + 14 ) + + 40 - + 86 DIV - + 51 - CAST( NULL AS SIGNED ) + 4 * MIN( ALL + 63 ) ) + ( 8 )
----
-71

skipif mysql # not compatible
query I rowsort label-2124
SELECT COALESCE ( - 79, + MAX ( ALL - + 14 ) + + 40 - + 86 / - + 51 - CAST ( NULL AS INTEGER ) + 4 * MIN ( ALL + 63 ) ) + ( 8 )
----
-71

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

query II rowsort
SELECT ALL - + 2 AS col0, + NULLIF ( + 3, - 87 )
----
-2
3

query I rowsort
SELECT 8 - - 73 AS col1
----
81

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

skipif mysql # not compatible
query II rowsort label-2128
SELECT ALL - 98, COUNT ( * ) col2
----
-98
1

query I rowsort
SELECT ALL - 25 * - - CASE + 19 WHEN - 65 THEN + 22 * - 9 ELSE - 98 END
----
2450

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

skipif mysql # not compatible
query II rowsort label-2130
SELECT 88, - COUNT ( * ) AS col2
----
88
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-2131
SELECT ALL - 14 DIV - + 36
----
0

skipif mysql # not compatible
query I rowsort label-2131
SELECT ALL - 14 / - + 36
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2132
SELECT 88 * NULLIF ( + 33, - 56 * - 9 / CASE + - COUNT( DISTINCT + + 89 ) WHEN - 76 - 3 THEN NULL ELSE - COUNT( * ) END ) AS col0
----
2904

skipif mysql # not compatible
query I rowsort label-2132
SELECT 88 * NULLIF ( + 33, - 56 * - 9 / CASE + - COUNT ( DISTINCT + + 89 ) WHEN - 76 - 3 THEN NULL ELSE - COUNT ( * ) END ) AS col0
----
2904

query II rowsort
SELECT + ( - ( 18 ) ) AS col2, 54
----
-18
54

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2136
SELECT + - CASE + + 86 WHEN - 96 / + 72 THEN NULL WHEN - 14 THEN NULL WHEN - CAST( + 99 AS SIGNED ) * - 19 * 28 THEN 96 / 87 END * AVG ( ALL - 2 ) + 51 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2136
SELECT + - CASE + + 86 WHEN - 96 / + 72 THEN NULL WHEN - 14 THEN NULL WHEN - CAST ( + 99 AS INTEGER ) * - 19 * 28 THEN 96 / 87 END * AVG ( ALL - 2 ) + 51 AS col1
----
NULL

query I rowsort
SELECT ALL + - 73 - - CASE + 6 WHEN + 54 THEN 89 ELSE NULL END + 84
----
NULL

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

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

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

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

query I rowsort
SELECT + 87 * + 24 + - 24 * - - NULLIF ( + 66, - 28 * - 80 / 17 ) AS col0
----
504

onlyif mysql # aggregate syntax: 
query I rowsort label-2141
SELECT + - MIN( DISTINCT 54 ) AS col0
----
-54

skipif mysql # not compatible
query I rowsort label-2141
SELECT + - MIN ( DISTINCT 54 ) AS col0
----
-54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2142
SELECT + + CASE - + CAST( - 76 AS SIGNED ) WHEN + - 15 + + - 98 * 70 THEN COUNT( * ) * 15 - 6 + 99 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2142
SELECT + + CASE - + CAST ( - 76 AS INTEGER ) WHEN + - 15 + + - 98 * 70 THEN COUNT ( * ) * 15 - 6 + 99 ELSE NULL END
----
NULL

query II rowsort
SELECT ALL + + 70 AS col1, COALESCE ( 36, 73 ) AS col0
----
70
36

onlyif mysql # aggregate syntax: 
query I rowsort label-2144
SELECT - 10 + + + MAX( + 49 ) * - ( 57 ) AS col2
----
-2803

skipif mysql # not compatible
query I rowsort label-2144
SELECT - 10 + + + MAX ( + 49 ) * - ( 57 ) AS col2
----
-2803

onlyif mysql # DIV for integer division: 
query I rowsort label-2145
SELECT DISTINCT 49 DIV - - 17
----
2

skipif mysql # not compatible
query I rowsort label-2145
SELECT DISTINCT 49 / - - 17
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-2146
SELECT DISTINCT CASE - + AVG ( ALL - 90 ) WHEN + 70 THEN - 26 / - 52 * - 91 / - MAX( DISTINCT + 12 ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2146
SELECT DISTINCT CASE - + AVG ( ALL - 90 ) WHEN + 70 THEN - 26 / - 52 * - 91 / - MAX ( DISTINCT + 12 ) END AS col1
----
NULL

query I rowsort
SELECT DISTINCT 15 * 85
----
1275

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2148
SELECT ALL + 28 DIV + + MAX( DISTINCT + 49 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2148
SELECT ALL + 28 / + + MAX ( DISTINCT + 49 ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2149
SELECT ALL 9 + MAX( DISTINCT - 82 ) - - 11 * - - 39 AS col0
----
356

skipif mysql # not compatible
query I rowsort label-2149
SELECT ALL 9 + MAX ( DISTINCT - 82 ) - - 11 * - - 39 AS col0
----
356

onlyif mysql # aggregate syntax: 
query III rowsort label-2150
SELECT + COUNT( * ) + - 88 - - - 76 * 72 AS col0, 61 AS col0, - 39 col0
----
-5559
61
-39

skipif mysql # not compatible
query III rowsort label-2150
SELECT + COUNT ( * ) + - 88 - - - 76 * 72 AS col0, 61 AS col0, - 39 col0
----
-5559
61
-39

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2152
SELECT DISTINCT 55 * SUM( 79 ) AS col1
----
4345

skipif mysql # not compatible
query I rowsort label-2152
SELECT DISTINCT 55 * SUM ( 79 ) AS col1
----
4345

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

skipif mysql # not compatible
query I rowsort label-2153
SELECT - NULLIF ( + - COUNT ( * ), + 51 )
----
1

query I rowsort
SELECT ALL 90 + + 77 + - 84 * - 47
----
4115

onlyif mysql # aggregate syntax: 
query I rowsort label-2155
SELECT + COUNT( + 0 ) * + SUM( 84 )
----
84

skipif mysql # not compatible
query I rowsort label-2155
SELECT + COUNT ( + 0 ) * + SUM ( 84 )
----
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2156
SELECT + CAST( 88 AS SIGNED ) - 84 AS col2
----
4

skipif mysql # not compatible
query I rowsort label-2156
SELECT + CAST ( 88 AS INTEGER ) - 84 AS col2
----
4

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2157
SELECT ALL CASE - 16 WHEN + 97 THEN - CASE + 58 WHEN COUNT( * ) - - + CAST( NULL AS DECIMAL ) + - - COALESCE ( - MIN( ALL - 42 ), 59 ) / - 37 THEN 76 END * + 13 WHEN 26 * - COUNT( * ) THEN ( 4 ) ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2157
SELECT ALL CASE - 16 WHEN + 97 THEN - CASE + 58 WHEN COUNT ( * ) - - + CAST ( NULL AS REAL ) + - - COALESCE ( - MIN ( ALL - 42 ), 59 ) / - 37 THEN 76 END * + 13 WHEN 26 * - COUNT ( * ) THEN ( 4 ) ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT DISTINCT - 38 * + 48 AS col1
----
-1824

onlyif mysql # aggregate syntax: 
query I rowsort label-2159
SELECT ALL - COUNT( * ) + 30 * - - CASE + - 68 WHEN - - 91 * + COUNT( * ) THEN + ( 80 ) WHEN + 53 THEN 79 - 83 ELSE 16 END
----
479

skipif mysql # not compatible
query I rowsort label-2159
SELECT ALL - COUNT ( * ) + 30 * - - CASE + - 68 WHEN - - 91 * + COUNT ( * ) THEN + ( 80 ) WHEN + 53 THEN 79 - 83 ELSE 16 END
----
479

query I rowsort
SELECT + 42 + - + 3 - - 45 - - 22 * 62 AS col2
----
1448

onlyif mysql # DIV for integer division: 
query I rowsort label-2161
SELECT DISTINCT 48 + 52 * + - 83 + + 50 DIV 42 + + - 83 + - - 29 * - - 69 AS col1
----
-2349

skipif mysql # not compatible
query I rowsort label-2161
SELECT DISTINCT 48 + 52 * + - 83 + + 50 / 42 + + - 83 + - - 29 * - - 69 AS col1
----
-2349

onlyif mysql # aggregate syntax: 
query I rowsort label-2162
SELECT + 18 + + COUNT( * ) + + COUNT( * ) AS col0
----
20

skipif mysql # not compatible
query I rowsort label-2162
SELECT + 18 + + COUNT ( * ) + + COUNT ( * ) AS col0
----
20

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2163
SELECT DISTINCT COALESCE ( - 32, - + CASE - COUNT( ALL 49 ) WHEN - - 28 * 5 THEN 18 * - COUNT( * ) END + 70, + 91, 63 ) / CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-2163
SELECT DISTINCT COALESCE ( - 32, - + CASE - COUNT ( ALL 49 ) WHEN - - 28 * 5 THEN 18 * - COUNT ( * ) END + 70, + 91, 63 ) / CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT + - 15 * + 48 AS col0
----
-720

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2165
SELECT ALL + CAST( NULL AS SIGNED ) * - 87 + - 97 - + 34
----
NULL

skipif mysql # not compatible
query I rowsort label-2165
SELECT ALL + CAST ( NULL AS INTEGER ) * - 87 + - 97 - + 34
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2166
SELECT DISTINCT + - CAST( NULL AS SIGNED ) * 59 / - + 57 * - + 21 * - 65 + - ( - 24 ) + + COUNT( * ) + + 79 + CAST( NULL AS SIGNED ) * 8 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2166
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) * 59 / - + 57 * - + 21 * - 65 + - ( - 24 ) + + COUNT ( * ) + + 79 + CAST ( NULL AS INTEGER ) * 8 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2167
SELECT DISTINCT - 76 * - - 32 * + 78 * + 61 * + CASE + 71 WHEN + - 67 THEN - CAST( NULL AS SIGNED ) + + 22 ELSE NULL END - 10 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2167
SELECT DISTINCT - 76 * - - 32 * + 78 * + 61 * + CASE + 71 WHEN + - 67 THEN - CAST ( NULL AS INTEGER ) + + 22 ELSE NULL END - 10 col0
----
NULL

query I rowsort
SELECT ALL + 15 * + NULLIF ( 94, + - 82 * - 62 / - + 25 ) - - 42
----
1452

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2171
SELECT DISTINCT + 21 DIV + 41
----
0

skipif mysql # not compatible
query I rowsort label-2171
SELECT DISTINCT + 21 / + 41
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2172
SELECT ALL + MAX( ALL + 64 ) * + ( + + CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2172
SELECT ALL + MAX ( ALL + 64 ) * + ( + + CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

query I rowsort
SELECT - CASE 75 WHEN - 5 THEN ( + 37 ) + 20 ELSE - 19 END * + - 47 + 21 + 88 AS col1
----
-784

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

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

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

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

query I rowsort
SELECT - 41 * - 44 + 56
----
1860

query I rowsort
SELECT - 85 - 9 + + - 94
----
-188

onlyif mysql # DIV for integer division: 
query I rowsort label-2178
SELECT DISTINCT + - 51 * - 34 + + 16 + + 44 DIV - 46 AS col1
----
1750

skipif mysql # not compatible
query I rowsort label-2178
SELECT DISTINCT + - 51 * - 34 + + 16 + + 44 / - 46 AS col1
----
1750

onlyif mysql # aggregate syntax: 
query II rowsort label-2179
SELECT ALL + 36 * 88 * + + 6 + 54 AS col2, - 3 + - - COUNT( * ) + - 45 AS col1
----
19062
-47

skipif mysql # not compatible
query II rowsort label-2179
SELECT ALL + 36 * 88 * + + 6 + 54 AS col2, - 3 + - - COUNT ( * ) + - 45 AS col1
----
19062
-47

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2180
SELECT - 8 * CAST( NULL AS DECIMAL ) * + + 65
----
NULL

skipif mysql # not compatible
query I rowsort label-2180
SELECT - 8 * CAST ( NULL AS REAL ) * + + 65
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2181
SELECT DISTINCT 29 * + ( - + 99 ) + - 22 - + NULLIF ( - 40, + - AVG ( ALL + 13 ) + + - COUNT( * ) / COUNT( * ) ) AS col1
----
-2853

skipif mysql # not compatible
query I rowsort label-2181
SELECT DISTINCT 29 * + ( - + 99 ) + - 22 - + NULLIF ( - 40, + - AVG ( ALL + 13 ) + + - COUNT ( * ) / COUNT ( * ) ) AS col1
----
-2853

query I rowsort
SELECT DISTINCT - 14 * 49 + + 95
----
-591

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2183
SELECT DISTINCT + + 4 * - 29 * + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2183
SELECT DISTINCT + + 4 * - 29 * + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT 76 * - 93 + + - 49
----
-7117

onlyif mysql # aggregate syntax: 
query I rowsort label-2185
SELECT ALL - COALESCE ( COUNT( * ), + COALESCE ( 58, - - 19, + 23, + 0 ), - - 37 ) * - 8 + - + CASE - 70 WHEN 10 * - COUNT( DISTINCT 52 ) - + COUNT( DISTINCT + 74 - - 63 ) THEN - 22 * - 80 WHEN 91 * + COUNT( * ) THEN NULL ELSE ( + MAX( - 68 ) ) * + 70 END
----
4768

skipif mysql # not compatible
query I rowsort label-2185
SELECT ALL - COALESCE ( COUNT ( * ), + COALESCE ( 58, - - 19, + 23, + 0 ), - - 37 ) * - 8 + - + CASE - 70 WHEN 10 * - COUNT ( DISTINCT 52 ) - + COUNT ( DISTINCT + 74 - - 63 ) THEN - 22 * - 80 WHEN 91 * + COUNT ( * ) THEN NULL ELSE ( + MAX ( - 68 ) ) * + 70 END
----
4768

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2186
SELECT ALL + 24 * - - 42 * - - MIN( - 12 ) * SUM( DISTINCT + CAST( NULL AS SIGNED ) ), + CAST( 50 AS SIGNED ) AS col1
----
NULL
50

skipif mysql # not compatible
query II rowsort label-2186
SELECT ALL + 24 * - - 42 * - - MIN ( - 12 ) * SUM ( DISTINCT + CAST ( NULL AS INTEGER ) ), + CAST ( 50 AS INTEGER ) AS col1
----
NULL
50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2187
SELECT DISTINCT NULLIF ( + - COALESCE ( - 15, - 42 * 84 * 37 * - 59 + + - 53 + - 76 * - 55, MIN( DISTINCT + 65 ), 10 DIV + COUNT( * ) ), CAST( NULL AS SIGNED ) * ( - 35 DIV 33 ) + AVG ( ALL 89 ) ) * + 42 + 48 AS col0
----
678

skipif mysql # not compatible
query I rowsort label-2187
SELECT DISTINCT NULLIF ( + - COALESCE ( - 15, - 42 * 84 * 37 * - 59 + + - 53 + - 76 * - 55, MIN ( DISTINCT + 65 ), 10 / + COUNT ( * ) ), CAST ( NULL AS INTEGER ) * ( - 35 / 33 ) + AVG ( ALL 89 ) ) * + 42 + 48 AS col0
----
678

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2188
SELECT COALESCE ( + - 49, - - 17 ) * - 70 * - + 19 + + COUNT( * ) + - + 39 * - COUNT( + 84 ) + + CAST( + 71 AS SIGNED ) AS col1
----
-65059

skipif mysql # not compatible
query I rowsort label-2188
SELECT COALESCE ( + - 49, - - 17 ) * - 70 * - + 19 + + COUNT ( * ) + - + 39 * - COUNT ( + 84 ) + + CAST ( + 71 AS INTEGER ) AS col1
----
-65059

onlyif mysql # aggregate syntax: 
query I rowsort label-2189
SELECT - 91 - + ( + COUNT( * ) ) * 41 - + 40 AS col2
----
-172

skipif mysql # not compatible
query I rowsort label-2189
SELECT - 91 - + ( + COUNT ( * ) ) * 41 - + 40 AS col2
----
-172

query I rowsort
SELECT DISTINCT ( - + 21 ) col1
----
-21

query I rowsort
SELECT ALL 13 * - 75 * NULLIF ( + 35, - 62 + - 13 ) + - 26 col1
----
-34151

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2193
SELECT DISTINCT 46 AS col0, COUNT( * ) * - 61 DIV - 85
----
46
0

skipif mysql # not compatible
query II rowsort label-2193
SELECT DISTINCT 46 AS col0, COUNT ( * ) * - 61 / - 85
----
46
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2194
SELECT ALL ( - 28 ) + - SUM( + 4 ) + 12 * + CASE - - 63 WHEN + 61 * + 46 THEN + + 65 - - 67 * + 67 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2194
SELECT ALL ( - 28 ) + - SUM ( + 4 ) + 12 * + CASE - - 63 WHEN + 61 * + 46 THEN + + 65 - - 67 * + 67 END AS col2
----
NULL

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

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

query I rowsort
SELECT + 42 * + - 54 * + 81 * 18 AS col0
----
-3306744

query I rowsort
SELECT DISTINCT + 16 - - 15
----
31

query I rowsort
SELECT - 13 + + + 68
----
55

query I rowsort
SELECT + 77 + - 15
----
62

onlyif mysql # DIV for integer division: 
query I rowsort label-2200
SELECT ALL COALESCE ( - + 88, - 95 ) * 13 DIV + NULLIF ( - - 38, 72 ) - + 75
----
-105

skipif mysql # not compatible
query I rowsort label-2200
SELECT ALL COALESCE ( - + 88, - 95 ) * 13 / + NULLIF ( - - 38, 72 ) - + 75
----
-105

query I rowsort
SELECT - 6 + + + 25 AS col2
----
19

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

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

query II rowsort
SELECT + 83 + + ( - - 49 ) col0, - 35
----
132
-35

onlyif mysql # aggregate syntax: 
query II rowsort label-2204
SELECT + - 69 * 83 + - ( - + ( + COUNT( * ) ) ), - ( NULLIF ( - + 76, - 39 / + ( + NULLIF ( 56, 84 * - 70 ) ) + CASE 27 WHEN + 35 * 80 - - 86 THEN + ( + CASE 47 WHEN 83 + + 32 * + 24 THEN CASE + 73 WHEN + 26 * + 87 THEN - 88 + - 86 * + 32 ELSE NULL END ELSE - 31 + + 97 END ) ELSE NULL END ) ) * - 86 AS col0
----
-5726
-6536

skipif mysql # not compatible
query II rowsort label-2204
SELECT + - 69 * 83 + - ( - + ( + COUNT ( * ) ) ), - ( NULLIF ( - + 76, - 39 / + ( + NULLIF ( 56, 84 * - 70 ) ) + CASE 27 WHEN + 35 * 80 - - 86 THEN + ( + CASE 47 WHEN 83 + + 32 * + 24 THEN CASE + 73 WHEN + 26 * + 87 THEN - 88 + - 86 * + 32 ELSE NULL END ELSE - 31 + + 97 END ) ELSE NULL END ) ) * - 86 AS col0
----
-5726
-6536

query I rowsort
SELECT ALL + + 82 * 36
----
2952

query I rowsort
SELECT + 67 + + - 42 + - ( 10 ) col0
----
15

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2208
SELECT ALL - 92 DIV - COALESCE ( + + ( - - 9 ), - - 80 )
----
10

skipif mysql # not compatible
query I rowsort label-2208
SELECT ALL - 92 / - COALESCE ( + + ( - - 9 ), - - 80 )
----
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2209
SELECT + + CAST( + + 16 AS SIGNED ) * - + COUNT( * ) + + - 53 + - - COUNT( * ) * - 98 - - 70 + 34 + 39 + - - ( 45 ) + - 27
----
-6

skipif mysql # not compatible
query I rowsort label-2209
SELECT + + CAST ( + + 16 AS INTEGER ) * - + COUNT ( * ) + + - 53 + - - COUNT ( * ) * - 98 - - 70 + 34 + 39 + - - ( 45 ) + - 27
----
-6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2210
SELECT DISTINCT + 45 AS col1, COUNT( * ) * + + 58 * NULLIF ( 97, - - 43 * + + 16 + + CAST( - 22 AS SIGNED ) + + + 27 ) * 60 + 57 col0
----
45
337617

skipif mysql # not compatible
query II rowsort label-2210
SELECT DISTINCT + 45 AS col1, COUNT ( * ) * + + 58 * NULLIF ( 97, - - 43 * + + 16 + + CAST ( - 22 AS INTEGER ) + + + 27 ) * 60 + 57 col0
----
45
337617

query II rowsort
SELECT 17 AS col0, 29 + 0 + 40 AS col1
----
17
69

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

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

query I rowsort
SELECT + - 37 + 24
----
-13

onlyif mysql # DIV for integer division: 
query I rowsort label-2214
SELECT ALL 86 DIV 38 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-2214
SELECT ALL 86 / 38 AS col2
----
2

query I rowsort
SELECT - + 60 * + ( + 59 ) + + ( 28 ) AS col2
----
-3512

onlyif mysql # aggregate syntax: 
query I rowsort label-2216
SELECT + - CASE + + 5 WHEN 69 + - 16 THEN + 72 WHEN - - COUNT( * ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2216
SELECT + - CASE + + 5 WHEN 69 + - 16 THEN + 72 WHEN - - COUNT ( * ) THEN NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2217
SELECT - 27 * - - 30 + + 2 DIV + COALESCE ( + 7, 29 ) AS col1
----
-810

skipif mysql # not compatible
query I rowsort label-2217
SELECT - 27 * - - 30 + + 2 / + COALESCE ( + 7, 29 ) AS col1
----
-810

query I rowsort
SELECT ALL 13 + + 74 AS col0
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-2219
SELECT COUNT( - + ( 57 ) ) * 9 col0
----
9

skipif mysql # not compatible
query I rowsort label-2219
SELECT COUNT ( - + ( 57 ) ) * 9 col0
----
9

query I rowsort
SELECT ALL + 96 + + 13 col2
----
109

query I rowsort
SELECT ALL + 91 + + 68 - + - 75 - + 89 * + + 45
----
-3771

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2222
SELECT + 22 * + 76 * + NULLIF ( SUM( 24 ), - 50 * - COALESCE ( + ( - CAST( NULL AS SIGNED ) ), + 36 ) + 42 + COUNT( * ) ) * - 37 + MIN( ALL 30 ) * ( 65 ) + - 58
----
-1482844

skipif mysql # not compatible
query I rowsort label-2222
SELECT + 22 * + 76 * + NULLIF ( SUM ( 24 ), - 50 * - COALESCE ( + ( - CAST ( NULL AS INTEGER ) ), + 36 ) + 42 + COUNT ( * ) ) * - 37 + MIN ( ALL 30 ) * ( 65 ) + - 58
----
-1482844

onlyif mysql # aggregate syntax: 
query II rowsort label-2223
SELECT + 18 AS col0, - 50 * + COUNT( * )
----
18
-50

skipif mysql # not compatible
query II rowsort label-2223
SELECT + 18 AS col0, - 50 * + COUNT ( * )
----
18
-50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2224
SELECT 4 + + ( + COALESCE ( + - CASE 33 WHEN + 37 + 97 * CAST( + 6 AS SIGNED ) THEN + - ( 47 ) WHEN COUNT( DISTINCT 55 ) THEN + 92 END, 91 * 16 ) )
----
1460

skipif mysql # not compatible
query I rowsort label-2224
SELECT 4 + + ( + COALESCE ( + - CASE 33 WHEN + 37 + 97 * CAST ( + 6 AS INTEGER ) THEN + - ( 47 ) WHEN COUNT ( DISTINCT 55 ) THEN + 92 END, 91 * 16 ) )
----
1460

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2225
SELECT 91, - 29 + + - CAST( + - CAST( NULL AS SIGNED ) AS SIGNED ) * 54 / + 2 AS col1
----
91
NULL

skipif mysql # not compatible
query II rowsort label-2225
SELECT 91, - 29 + + - CAST ( + - CAST ( NULL AS INTEGER ) AS INTEGER ) * 54 / + 2 AS col1
----
91
NULL

query I rowsort
SELECT 91 + 8 * + + 30 AS col0
----
331

query I rowsort
SELECT DISTINCT 79 + + 1 + + 36 * 33 * - 17 * + 2 AS col0
----
-40312

query II rowsort
SELECT - 39, 79 AS col2
----
-39
79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2229
SELECT DISTINCT 41 AS col2, CASE 23 WHEN - - 19 * - 16 + CAST( - 59 AS SIGNED ) THEN - - 31 / COUNT( * ) + - 89 - + + 73 - + ( 41 ) WHEN 79 * 42 + 24 THEN NULL ELSE - 12 END AS col2
----
41
-12

skipif mysql # not compatible
query II rowsort label-2229
SELECT DISTINCT 41 AS col2, CASE 23 WHEN - - 19 * - 16 + CAST ( - 59 AS INTEGER ) THEN - - 31 / COUNT ( * ) + - 89 - + + 73 - + ( 41 ) WHEN 79 * 42 + 24 THEN NULL ELSE - 12 END AS col2
----
41
-12

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2230
SELECT ALL + 66 - + 33 + + 53 * + 74 + - 78 * - - 75 * + SUM( - CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2230
SELECT ALL + 66 - + 33 + + 53 * + 74 + - 78 * - - 75 * + SUM ( - CAST ( NULL AS REAL ) )
----
NULL

query I rowsort
SELECT 10 * 36
----
360

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2232
SELECT ALL + 93 * + - CAST( NULL AS SIGNED ) AS col0, 83 AS col1
----
NULL
83

skipif mysql # not compatible
query II rowsort label-2232
SELECT ALL + 93 * + - CAST ( NULL AS INTEGER ) AS col0, 83 AS col1
----
NULL
83

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2234
SELECT 36 + 20 DIV + - 58 - - + 69
----
105

skipif mysql # not compatible
query I rowsort label-2234
SELECT 36 + 20 / + - 58 - - + 69
----
105

query I rowsort
SELECT ALL + NULLIF ( - 51, - 88 / + - 35 + 73 * - 19 ) - 96
----
-147

query I rowsort
SELECT 19 - + 65
----
-46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2237
SELECT ALL - COALESCE ( - ( + 64 ), + 81 ) DIV MIN( + 16 ) AS col2
----
4

skipif mysql # not compatible
query I rowsort label-2237
SELECT ALL - COALESCE ( - ( + 64 ), + 81 ) / MIN ( + 16 ) AS col2
----
4

query I rowsort
SELECT 26 * + + 70 AS col1
----
1820

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2239
SELECT ALL 17 AS col2, - CAST( NULL AS SIGNED )
----
17
NULL

skipif mysql # not compatible
query II rowsort label-2239
SELECT ALL 17 AS col2, - CAST ( NULL AS INTEGER )
----
17
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2240
SELECT DISTINCT MIN( 73 ) DIV + + NULLIF ( - 8, - 64 + 20 ) AS col2, 18 * - 72 AS col1
----
-9
-1296

skipif mysql # not compatible
query II rowsort label-2240
SELECT DISTINCT MIN ( 73 ) / + + NULLIF ( - 8, - 64 + 20 ) AS col2, 18 * - 72 AS col1
----
-9
-1296

query I rowsort
SELECT ALL COALESCE ( 81, - 11 )
----
81

query I rowsort
SELECT ALL - ( - - 10 ) * + ( - ( + 95 ) )
----
950

onlyif mysql # DIV for integer division: 
query I rowsort label-2243
SELECT ALL - 27 DIV - + 43 + - - COALESCE ( 0, ( + - 1 ) - + 74 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2243
SELECT ALL - 27 / - + 43 + - - COALESCE ( 0, ( + - 1 ) - + 74 ) AS col2
----
0

query I rowsort
SELECT COALESCE ( - + 26, - + 79 + ( + 4 ) )
----
-26

query II rowsort
SELECT ALL ( - 42 ) + - 67 - + - 64 AS col0, + ( + 73 ) AS col2
----
-45
73

query I rowsort
SELECT DISTINCT - 33 + + + ( - ( 25 ) )
----
-58

onlyif mysql # aggregate syntax: 
query II rowsort label-2247
SELECT + 81 * + 77 - CASE - COUNT( * ) WHEN 54 THEN NULL ELSE 34 END - MIN( + - 45 ) * - COUNT( * ) AS col0, + COUNT( * ) AS col1
----
6158
1

skipif mysql # not compatible
query II rowsort label-2247
SELECT + 81 * + 77 - CASE - COUNT ( * ) WHEN 54 THEN NULL ELSE 34 END - MIN ( + - 45 ) * - COUNT ( * ) AS col0, + COUNT ( * ) AS col1
----
6158
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2248
SELECT ALL + 20 + + 65 + COUNT( * ) * - 24 DIV ( 18 ) * + 63
----
22

skipif mysql # not compatible
query I rowsort label-2248
SELECT ALL + 20 + + 65 + COUNT ( * ) * - 24 / ( 18 ) * + 63
----
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2249
SELECT DISTINCT - CASE - CAST( NULL AS SIGNED ) WHEN - NULLIF ( + + COUNT( + 80 ), + COUNT( * ) + - 72 ) * + AVG ( DISTINCT 91 ) THEN NULL WHEN - - 77 THEN + + ( 85 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-2249
SELECT DISTINCT - CASE - CAST ( NULL AS INTEGER ) WHEN - NULLIF ( + + COUNT ( + 80 ), + COUNT ( * ) + - 72 ) * + AVG ( DISTINCT 91 ) THEN NULL WHEN - - 77 THEN + + ( 85 ) END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2250
SELECT + 93, + ( + 64 ) * COUNT( * ) + + 11 * - 31 - + 97 AS col0
----
93
-374

skipif mysql # not compatible
query II rowsort label-2250
SELECT + 93, + ( + 64 ) * COUNT ( * ) + + 11 * - 31 - + 97 AS col0
----
93
-374

onlyif mysql # aggregate syntax: 
query I rowsort label-2251
SELECT - COUNT( * ) * - + 17 + - 30
----
-13

skipif mysql # not compatible
query I rowsort label-2251
SELECT - COUNT ( * ) * - + 17 + - 30
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-2252
SELECT - ( - ( - MIN( 1 ) ) ) * - + 60
----
60

skipif mysql # not compatible
query I rowsort label-2252
SELECT - ( - ( - MIN ( 1 ) ) ) * - + 60
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-2253
SELECT SUM( - 7 ) + + 92 + + - ( + COUNT( * ) ) + - 13 AS col2
----
71

skipif mysql # not compatible
query I rowsort label-2253
SELECT SUM ( - 7 ) + + 92 + + - ( + COUNT ( * ) ) + - 13 AS col2
----
71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2254
SELECT ALL 74 + 79 AS col2, - CAST( + CASE + - 75 WHEN - 1 - COUNT( * ) + 89 * 85 / + ( + + 10 ) THEN - 81 ELSE 43 * + COALESCE ( + 65, - COUNT( * ) * 67 - 93 ) END AS SIGNED ) - - 42
----
153
-2753

skipif mysql # not compatible
query II rowsort label-2254
SELECT ALL 74 + 79 AS col2, - CAST ( + CASE + - 75 WHEN - 1 - COUNT ( * ) + 89 * 85 / + ( + + 10 ) THEN - 81 ELSE 43 * + COALESCE ( + 65, - COUNT ( * ) * 67 - 93 ) END AS INTEGER ) - - 42
----
153
-2753

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2255
SELECT + CAST( NULL AS SIGNED ) / + - 50 / - - AVG ( 59 ) - - + 81 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2255
SELECT + CAST ( NULL AS INTEGER ) / + - 50 / - - AVG ( 59 ) - - + 81 AS col1
----
NULL

query I rowsort
SELECT DISTINCT 3 + - 99 * - + 3 AS col1
----
300

query I rowsort
SELECT ALL 67 * + + 54
----
3618

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2258
SELECT ALL NULLIF ( + NULLIF ( - 50, + + NULLIF ( 10, + COUNT( * ) + - + CAST( - 74 AS DECIMAL ) ) + + 36 - + 59 ), + 7 ) * 18 col1
----
-900

skipif mysql # not compatible
query I rowsort label-2258
SELECT ALL NULLIF ( + NULLIF ( - 50, + + NULLIF ( 10, + COUNT ( * ) + - + CAST ( - 74 AS REAL ) ) + + 36 - + 59 ), + 7 ) * 18 col1
----
-900

query I rowsort
SELECT + 61 * - + NULLIF ( - - 26, 43 ) + 40
----
-1546

query II rowsort
SELECT ALL 38 - - + 2, + 54 - + + 28 AS col1
----
40
26

query I rowsort
SELECT DISTINCT 96 * - 13 * - + 82
----
102336

query I rowsort
SELECT 6 * - + ( - 59 ) + + + 91 AS col0
----
445

onlyif mysql # aggregate syntax: 
query II rowsort label-2263
SELECT COUNT( * ) * 82 col0, 69 + 11 + + SUM( ALL 56 ) + - 69 AS col0
----
82
67

skipif mysql # not compatible
query II rowsort label-2263
SELECT COUNT ( * ) * 82 col0, 69 + 11 + + SUM ( ALL 56 ) + - 69 AS col0
----
82
67

onlyif mysql # aggregate syntax: 
query I rowsort label-2264
SELECT ALL CASE + + SUM( 85 ) WHEN - COUNT( * ) THEN + + 73 * - 61 WHEN MIN( ALL + 96 ) THEN NULL ELSE - ( + 74 ) END * + NULLIF ( - 81, 72 * SUM( DISTINCT 62 ) ) - - 71 AS col1
----
6065

skipif mysql # not compatible
query I rowsort label-2264
SELECT ALL CASE + + SUM ( 85 ) WHEN - COUNT ( * ) THEN + + 73 * - 61 WHEN MIN ( ALL + 96 ) THEN NULL ELSE - ( + 74 ) END * + NULLIF ( - 81, 72 * SUM ( DISTINCT 62 ) ) - - 71 AS col1
----
6065

onlyif mysql # DIV for integer division: 
query I rowsort label-2265
SELECT ( + 12 ) + 31 DIV 2 AS col0
----
27

skipif mysql # not compatible
query I rowsort label-2265
SELECT ( + 12 ) + 31 / 2 AS col0
----
27

query II rowsort
SELECT 10 * - 43, - 55 AS col2
----
-430
-55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2267
SELECT NULLIF ( - 77, - 79 * NULLIF ( + 78, - CAST( + 86 AS DECIMAL ) * + COUNT( * ) * CAST( + + COUNT( * ) AS SIGNED ) ) ) + + - 84
----
-161

skipif mysql # not compatible
query I rowsort label-2267
SELECT NULLIF ( - 77, - 79 * NULLIF ( + 78, - CAST ( + 86 AS REAL ) * + COUNT ( * ) * CAST ( + + COUNT ( * ) AS INTEGER ) ) ) + + - 84
----
-161

query I rowsort
SELECT DISTINCT - 44 * + 32 * - 79 AS col0
----
111232

query II rowsort
SELECT 29 + - 41 AS col1, - 84
----
-12
-84

query I rowsort
SELECT 35 * 60
----
2100

onlyif mysql # aggregate syntax: 
query I rowsort label-2271
SELECT ALL - 26 * COUNT( DISTINCT + - 94 )
----
-26

skipif mysql # not compatible
query I rowsort label-2271
SELECT ALL - 26 * COUNT ( DISTINCT + - 94 )
----
-26

query II rowsort
SELECT DISTINCT - - 81 * + 16 - + 41 AS col2, 82 AS col0
----
1255
82

query I rowsort
SELECT - 2 + 29 - - 57
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-2274
SELECT - SUM( + 19 ) * 67 col1
----
-1273

skipif mysql # not compatible
query I rowsort label-2274
SELECT - SUM ( + 19 ) * 67 col1
----
-1273

query I rowsort
SELECT - - 84 + - + 77 col0
----
7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2276
SELECT - - COALESCE ( + + 16, - 89 DIV COUNT( * ) - 24, + 92 ) AS col1
----
16

skipif mysql # not compatible
query I rowsort label-2276
SELECT - - COALESCE ( + + 16, - 89 / COUNT ( * ) - 24, + 92 ) AS col1
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-2277
SELECT ALL - + 39 + + 28 - MAX( DISTINCT - 67 ) - - NULLIF ( 43, - COUNT( * ) - - NULLIF ( - - 15, + - COALESCE ( - 68, + 17 + + COUNT( * ) ) * 3 - 52 ) * + COUNT( * ) ) + - 63
----
36

skipif mysql # not compatible
query I rowsort label-2277
SELECT ALL - + 39 + + 28 - MAX ( DISTINCT - 67 ) - - NULLIF ( 43, - COUNT ( * ) - - NULLIF ( - - 15, + - COALESCE ( - 68, + 17 + + COUNT ( * ) ) * 3 - 52 ) * + COUNT ( * ) ) + - 63
----
36

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2278
SELECT - + 9 + - 12 AS col1, - CAST( NULL AS SIGNED ) col1
----
-21
NULL

skipif mysql # not compatible
query II rowsort label-2278
SELECT - + 9 + - 12 AS col1, - CAST ( NULL AS INTEGER ) col1
----
-21
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2279
SELECT ALL - 4 + + COALESCE ( - 76, - 33 * - CASE - 63 WHEN + 44 THEN 0 WHEN 58 - - 67 * + 30 * 94 THEN NULL ELSE MIN( + 18 ) * - 44 END - - 96 + 13, 68 ) + 50
----
-30

skipif mysql # not compatible
query I rowsort label-2279
SELECT ALL - 4 + + COALESCE ( - 76, - 33 * - CASE - 63 WHEN + 44 THEN 0 WHEN 58 - - 67 * + 30 * 94 THEN NULL ELSE MIN ( + 18 ) * - 44 END - - 96 + 13, 68 ) + 50
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-2280
SELECT - - COUNT( * ) + - 19 col0
----
-18

skipif mysql # not compatible
query I rowsort label-2280
SELECT - - COUNT ( * ) + - 19 col0
----
-18

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2282
SELECT ALL 39 * - 82 + CAST( NULL AS SIGNED ) + - COUNT( * ) + MAX( - 14 ) - + + 47 * - 40 * + 64 * - CAST( NULL AS SIGNED ) * - 63 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2282
SELECT ALL 39 * - 82 + CAST ( NULL AS INTEGER ) + - COUNT ( * ) + MAX ( - 14 ) - + + 47 * - 40 * + 64 * - CAST ( NULL AS INTEGER ) * - 63 col2
----
NULL

query I rowsort
SELECT DISTINCT + 32 * 92
----
2944

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2285
SELECT ALL + MAX( DISTINCT - ( + ( + 28 ) ) ) * + + 72 + + ( - + 67 ) col0
----
-2083

skipif mysql # not compatible
query I rowsort label-2285
SELECT ALL + MAX ( DISTINCT - ( + ( + 28 ) ) ) * + + 72 + + ( - + 67 ) col0
----
-2083

onlyif mysql # aggregate syntax: 
query I rowsort label-2286
SELECT + + MIN( + - 83 )
----
-83

skipif mysql # not compatible
query I rowsort label-2286
SELECT + + MIN ( + - 83 )
----
-83

query I rowsort
SELECT + + 19 + 15
----
34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2288
SELECT DISTINCT 93 * - MIN( DISTINCT - 68 ) * + - 65 * - + 11 * CAST( NULL AS SIGNED ) / + 47 + - 45 * + 40
----
NULL

skipif mysql # not compatible
query I rowsort label-2288
SELECT DISTINCT 93 * - MIN ( DISTINCT - 68 ) * + - 65 * - + 11 * CAST ( NULL AS INTEGER ) / + 47 + - 45 * + 40
----
NULL

query I rowsort
SELECT NULLIF ( + + 79, 33 )
----
79

query I rowsort
SELECT + 50 * 83 AS col2
----
4150

query I rowsort
SELECT ALL - 78 * 87 * + 52 - - 25 AS col0
----
-352847

query I rowsort
SELECT 2 * - ( + + 1 ) + + 95 AS col2
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-2293
SELECT - COUNT( * ) * 90 * + 75 AS col0
----
-6750

skipif mysql # not compatible
query I rowsort label-2293
SELECT - COUNT ( * ) * 90 * + 75 AS col0
----
-6750

onlyif mysql # aggregate syntax: 
query II rowsort label-2294
SELECT DISTINCT + 62, + CASE NULLIF ( + + 74, + + 94 * + COUNT( - + 9 ) + - 8 + - COUNT( * ) ) WHEN 37 * + 69 THEN - 43 WHEN - 31 + COUNT( * ) THEN - 71 ELSE NULL END - COALESCE ( + 88 - 8, ( - 15 ) ) AS col1
----
62
NULL

skipif mysql # not compatible
query II rowsort label-2294
SELECT DISTINCT + 62, + CASE NULLIF ( + + 74, + + 94 * + COUNT ( - + 9 ) + - 8 + - COUNT ( * ) ) WHEN 37 * + 69 THEN - 43 WHEN - 31 + COUNT ( * ) THEN - 71 ELSE NULL END - COALESCE ( + 88 - 8, ( - 15 ) ) AS col1
----
62
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2295
SELECT MIN( - ( + - 23 ) )
----
23

skipif mysql # not compatible
query I rowsort label-2295
SELECT MIN ( - ( + - 23 ) )
----
23

query I rowsort
SELECT + 84 + - 79 AS col0
----
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2297
SELECT + 18 * + NULLIF ( + 68, + CASE 44 WHEN + 27 THEN NULL WHEN 26 THEN - 80 ELSE NULL END + - - COUNT( * ) * 42 * CAST( NULL AS SIGNED ) )
----
1224

skipif mysql # not compatible
query I rowsort label-2297
SELECT + 18 * + NULLIF ( + 68, + CASE 44 WHEN + 27 THEN NULL WHEN 26 THEN - 80 ELSE NULL END + - - COUNT ( * ) * 42 * CAST ( NULL AS INTEGER ) )
----
1224

onlyif mysql # DIV for integer division: 
query I rowsort label-2298
SELECT + 36 DIV - - 22 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2298
SELECT + 36 / - - 22 AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2299
SELECT ALL COUNT( * ) * 52 * - - 91 AS col2
----
4732

skipif mysql # not compatible
query I rowsort label-2299
SELECT ALL COUNT ( * ) * 52 * - - 91 AS col2
----
4732

onlyif mysql # aggregate syntax: 
query I rowsort label-2300
SELECT DISTINCT CASE - NULLIF ( COUNT( * ), 70 ) WHEN + 71 THEN 46 * - 75 + + 17 + + 81 + 85 + - 50 * COUNT( * ) ELSE NULL END + - 62 - + SUM( - 85 + 1 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2300
SELECT DISTINCT CASE - NULLIF ( COUNT ( * ), 70 ) WHEN + 71 THEN 46 * - 75 + + 17 + + 81 + 85 + - 50 * COUNT ( * ) ELSE NULL END + - 62 - + SUM ( - 85 + 1 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2301
SELECT - ( - 94 ) * SUM( DISTINCT - 62 ) * - - 40 + + 18 + + 13 + 68 AS col2
----
-233021

skipif mysql # not compatible
query I rowsort label-2301
SELECT - ( - 94 ) * SUM ( DISTINCT - 62 ) * - - 40 + + 18 + + 13 + 68 AS col2
----
-233021

onlyif mysql # aggregate syntax: 
query I rowsort label-2302
SELECT - - MIN( + ( 87 ) )
----
87

skipif mysql # not compatible
query I rowsort label-2302
SELECT - - MIN ( + ( 87 ) )
----
87

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2303
SELECT + - ( + + ( SUM( - 30 ) ) ) DIV 3
----
10

skipif mysql # not compatible
query I rowsort label-2303
SELECT + - ( + + ( SUM ( - 30 ) ) ) / 3
----
10

query I rowsort
SELECT + - 99 + 0 + + + 0 * + 77
----
-99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2305
SELECT ALL - 94 + 8 * 80 * + 44 DIV COUNT( * ) AS col1
----
28066

skipif mysql # not compatible
query I rowsort label-2305
SELECT ALL - 94 + 8 * 80 * + 44 / COUNT ( * ) AS col1
----
28066

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

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

query I rowsort
SELECT + + 80 - + 82 AS col1
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-2308
SELECT ALL SUM( DISTINCT - 58 )
----
-58

skipif mysql # not compatible
query I rowsort label-2308
SELECT ALL SUM ( DISTINCT - 58 )
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-2309
SELECT ALL - 53 + + ( - + 88 ) * - COUNT( * ) + - 51
----
-16

skipif mysql # not compatible
query I rowsort label-2309
SELECT ALL - 53 + + ( - + 88 ) * - COUNT ( * ) + - 51
----
-16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2310
SELECT ALL 19 + 16 + - ( + - 52 ) + + COUNT( ALL 13 ) DIV 30 * - - COUNT( * ) * 11
----
87

skipif mysql # not compatible
query I rowsort label-2310
SELECT ALL 19 + 16 + - ( + - 52 ) + + COUNT ( ALL 13 ) / 30 * - - COUNT ( * ) * 11
----
87

onlyif mysql # aggregate syntax: 
query II rowsort label-2311
SELECT - ( + ( COUNT( * ) ) ) AS col2, CASE - 6 WHEN + 94 / - COUNT( * ) THEN NULL WHEN + 23 THEN 38 + - COUNT( - 33 ) - + + 34 + + 57 * - 98 ELSE 45 END AS col1
----
-1
45

skipif mysql # not compatible
query II rowsort label-2311
SELECT - ( + ( COUNT ( * ) ) ) AS col2, CASE - 6 WHEN + 94 / - COUNT ( * ) THEN NULL WHEN + 23 THEN 38 + - COUNT ( - 33 ) - + + 34 + + 57 * - 98 ELSE 45 END AS col1
----
-1
45

query I rowsort
SELECT DISTINCT 37 + - - 35 + - 41
----
31

query I rowsort
SELECT ALL - 92 + + + 46 * + + 27
----
1150

query I rowsort
SELECT ALL - + 7 - + + 87
----
-94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2315
SELECT + - 12 - - CASE - + 3 WHEN + - 26 + 34 + 87 + - - NULLIF ( - 58, + 79 + + - CAST( 40 AS SIGNED ) ) * 57 + - 61 THEN - 18 + + 57 END / 9
----
NULL

skipif mysql # not compatible
query I rowsort label-2315
SELECT + - 12 - - CASE - + 3 WHEN + - 26 + 34 + 87 + - - NULLIF ( - 58, + 79 + + - CAST ( 40 AS INTEGER ) ) * 57 + - 61 THEN - 18 + + 57 END / 9
----
NULL

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

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

query I rowsort
SELECT - ( - 74 ) * - 63 * - 52
----
242424

query II rowsort
SELECT ALL + 53 AS col0, 14
----
53
14

onlyif mysql # DIV for integer division: 
query I rowsort label-2319
SELECT DISTINCT - - ( 42 ) DIV + 85 - 60 AS col2
----
-60

skipif mysql # not compatible
query I rowsort label-2319
SELECT DISTINCT - - ( 42 ) / + 85 - 60 AS col2
----
-60

onlyif mysql # DIV for integer division: 
query I rowsort label-2320
SELECT ALL - 84 DIV 69 - + - 46 DIV - NULLIF ( + - ( + 29 ), - + 73 * + 6 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2320
SELECT ALL - 84 / 69 - + - 46 / - NULLIF ( + - ( + 29 ), - + 73 * + 6 ) AS col2
----
0

query I rowsort
SELECT - 50 * + 69 * - - 79 AS col1
----
-272550

onlyif mysql # DIV for integer division: 
query I rowsort label-2322
SELECT 34 DIV - - 22 - - - 83
----
-82

skipif mysql # not compatible
query I rowsort label-2322
SELECT 34 / - - 22 - - - 83
----
-82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2323
SELECT + 53 * - CAST( 64 AS SIGNED ) + 67 + + - COUNT( * ) + + 50 * 42 DIV 42 + - - 88 + 98
----
-3090

skipif mysql # not compatible
query I rowsort label-2323
SELECT + 53 * - CAST ( 64 AS INTEGER ) + 67 + + - COUNT ( * ) + + 50 * 42 / 42 + - - 88 + 98
----
-3090

onlyif mysql # DIV for integer division: 
query I rowsort label-2324
SELECT ALL + 34 DIV - 51 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2324
SELECT ALL + 34 / - 51 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2325
SELECT ( + 19 ) * + 43 + + 80 + + 89 + 28 + - 56 + 1 DIV - + 48 - - 30 AS col1
----
988

skipif mysql # not compatible
query I rowsort label-2325
SELECT ( + 19 ) * + 43 + + 80 + + 89 + 28 + - 56 + 1 / - + 48 - - 30 AS col1
----
988

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2326
SELECT ( - - 27 ) AS col1, CASE 94 WHEN - CAST( NULL AS SIGNED ) + - 86 + - 25 * - 88 * + - 27 + - SUM( + 36 ) THEN NULL WHEN 24 / + 24 + 82 * + 33 THEN NULL ELSE 66 END + + 26 AS col2
----
27
92

skipif mysql # not compatible
query II rowsort label-2326
SELECT ( - - 27 ) AS col1, CASE 94 WHEN - CAST ( NULL AS INTEGER ) + - 86 + - 25 * - 88 * + - 27 + - SUM ( + 36 ) THEN NULL WHEN 24 / + 24 + 82 * + 33 THEN NULL ELSE 66 END + + 26 AS col2
----
27
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2327
SELECT - 90 * CAST( + 39 AS SIGNED ) * - 91 * + + ( - 76 ) * + ( - + 34 )
----
825355440

skipif mysql # not compatible
query I rowsort label-2327
SELECT - 90 * CAST ( + 39 AS INTEGER ) * - 91 * + + ( - 76 ) * + ( - + 34 )
----
825355440

query I rowsort
SELECT + 96 * - ( + 75 )
----
-7200

query I rowsort
SELECT DISTINCT - 62 * 30
----
-1860

onlyif mysql # aggregate syntax: 
query I rowsort label-2330
SELECT + CASE - - 34 WHEN COUNT( - ( + + 19 ) ) + + + 96 * + 24 THEN - - 3 WHEN + - 26 * - - 92 * - COUNT( * ) + + 99 * + COUNT( - 65 ) + 54 THEN - 56 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2330
SELECT + CASE - - 34 WHEN COUNT ( - ( + + 19 ) ) + + + 96 * + 24 THEN - - 3 WHEN + - 26 * - - 92 * - COUNT ( * ) + + 99 * + COUNT ( - 65 ) + 54 THEN - 56 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2331
SELECT ALL - COUNT( * ) * + 85 * 89
----
-7565

skipif mysql # not compatible
query I rowsort label-2331
SELECT ALL - COUNT ( * ) * + 85 * 89
----
-7565

query I rowsort
SELECT ALL - 71 * + 7 * + 91 col1
----
-45227

query I rowsort
SELECT - 15 * 22 + 48 AS col1
----
-282

onlyif mysql # aggregate syntax: 
query I rowsort label-2334
SELECT + NULLIF ( 4, COALESCE ( 69, - + 44, - COUNT( * ) ) + + 70 - - - 69 + 19 * - + 44 * - + 14 )
----
4

skipif mysql # not compatible
query I rowsort label-2334
SELECT + NULLIF ( 4, COALESCE ( 69, - + 44, - COUNT ( * ) ) + + 70 - - - 69 + 19 * - + 44 * - + 14 )
----
4

query II rowsort
SELECT - 24 * + 48 AS col0, + 94 AS col1
----
-1152
94

query I rowsort
SELECT DISTINCT - 48 * + - 49 + - 23
----
2329

query I rowsort
SELECT NULLIF ( 93, + + 92 + + ( 87 ) )
----
93

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2339
SELECT ALL + 4 DIV - + 30 col1
----
0

skipif mysql # not compatible
query I rowsort label-2339
SELECT ALL + 4 / - + 30 col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2340
SELECT DISTINCT + COALESCE ( 49, - COUNT( * ) )
----
49

skipif mysql # not compatible
query I rowsort label-2340
SELECT DISTINCT + COALESCE ( 49, - COUNT ( * ) )
----
49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2341
SELECT DISTINCT + 82 + - COUNT( * ), + 29 + 7 + + - CAST( NULL AS SIGNED ) + ( - + AVG ( ALL + + 14 ) ) + + - COUNT( DISTINCT + 3 ) + - + MAX( DISTINCT - 47 ) + + 61 - 10 + 24 * + 47 * - COALESCE ( + 50, 75 + - 55, + 31 ) AS col1
----
81
NULL

skipif mysql # not compatible
query II rowsort label-2341
SELECT DISTINCT + 82 + - COUNT ( * ), + 29 + 7 + + - CAST ( NULL AS INTEGER ) + ( - + AVG ( ALL + + 14 ) ) + + - COUNT ( DISTINCT + 3 ) + - + MAX ( DISTINCT - 47 ) + + 61 - 10 + 24 * + 47 * - COALESCE ( + 50, 75 + - 55, + 31 ) AS col1
----
81
NULL

query I rowsort
SELECT ALL 64 * - 97 - - 68
----
-6140

query I rowsort
SELECT ( - - 94 ) + + 20
----
114

query I rowsort
SELECT DISTINCT 26 - + - 59 + 56
----
141

onlyif mysql # aggregate syntax: 
query II rowsort label-2345
SELECT ALL - COUNT( ALL 47 ) * - 90 * + - 95, 1 AS col0
----
-8550
1

skipif mysql # not compatible
query II rowsort label-2345
SELECT ALL - COUNT ( ALL 47 ) * - 90 * + - 95, 1 AS col0
----
-8550
1

query II rowsort
SELECT ALL - ( - 70 ) AS col2, + 82
----
70
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2347
SELECT CAST( 27 AS SIGNED ) * + COALESCE ( + - 87, + + 67 * + 28 * - 80 + COUNT( * ), + + 6 ) AS col1, MAX( ALL 14 ) AS col1
----
-2349
14

skipif mysql # not compatible
query II rowsort label-2347
SELECT CAST ( 27 AS INTEGER ) * + COALESCE ( + - 87, + + 67 * + 28 * - 80 + COUNT ( * ), + + 6 ) AS col1, MAX ( ALL 14 ) AS col1
----
-2349
14

query I rowsort
SELECT 19 + - + 56 col1
----
-37

query I rowsort
SELECT 66 + - - 79 * - 28
----
-2146

query I rowsort
SELECT - 50 + + + 11 AS col2
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-2351
SELECT MIN( 81 ) AS col0
----
81

skipif mysql # not compatible
query I rowsort label-2351
SELECT MIN ( 81 ) AS col0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-2352
SELECT SUM( 69 ) * + 42 AS col2
----
2898

skipif mysql # not compatible
query I rowsort label-2352
SELECT SUM ( 69 ) * + 42 AS col2
----
2898

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2353
SELECT - 87 * 26 + - ( - - CAST( - COUNT( * ) AS SIGNED ) )
----
-2261

skipif mysql # not compatible
query I rowsort label-2353
SELECT - 87 * 26 + - ( - - CAST ( - COUNT ( * ) AS INTEGER ) )
----
-2261

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2354
SELECT 39 DIV + 65 * + + NULLIF ( - - 55, 10 ) * SUM( DISTINCT + 92 ) + - COUNT( * ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-2354
SELECT 39 / + 65 * + + NULLIF ( - - 55, 10 ) * SUM ( DISTINCT + 92 ) + - COUNT ( * ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2355
SELECT 29 + + COUNT( * ) * - ( - COUNT( * ) ) * 14 + - 67 + 43 * - + 4 * + + 16 + - MIN( DISTINCT - 19 ) + + 23 * 2
----
-2711

skipif mysql # not compatible
query I rowsort label-2355
SELECT 29 + + COUNT ( * ) * - ( - COUNT ( * ) ) * 14 + - 67 + 43 * - + 4 * + + 16 + - MIN ( DISTINCT - 19 ) + + 23 * 2
----
-2711

query II rowsort
SELECT DISTINCT - 68, - 92 AS col1
----
-68
-92

query I rowsort
SELECT DISTINCT + 30 * - 83 * - 9
----
22410

query II rowsort
SELECT ALL - 74 AS col1, + 67 AS col0
----
-74
67

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

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

query I rowsort
SELECT 19 * - 12 AS col0
----
-228

onlyif mysql # DIV for integer division: 
query I rowsort label-2361
SELECT DISTINCT + 85 DIV - 67
----
-1

skipif mysql # not compatible
query I rowsort label-2361
SELECT DISTINCT + 85 / - 67
----
-1

query I rowsort
SELECT ALL + 12 + + - 60 AS col2
----
-48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-2363
SELECT 95 AS col0, + 76 * + 38, 96 + + 31 * + COUNT( * ) / - + 48 * - 83 + 66 - 40 + + 19 + - MAX( 20 ) * - 68 * - CAST( NULL AS SIGNED ) AS col2
----
95
2888
NULL

skipif mysql # not compatible
query III rowsort label-2363
SELECT 95 AS col0, + 76 * + 38, 96 + + 31 * + COUNT ( * ) / - + 48 * - 83 + 66 - 40 + + 19 + - MAX ( 20 ) * - 68 * - CAST ( NULL AS INTEGER ) AS col2
----
95
2888
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2365
SELECT 28 DIV - 95
----
0

skipif mysql # not compatible
query I rowsort label-2365
SELECT 28 / - 95
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2366
SELECT 64 DIV - - ( + - CAST( + + 29 AS SIGNED ) ) AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-2366
SELECT 64 / - - ( + - CAST ( + + 29 AS INTEGER ) ) AS col1
----
-2

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

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

query I rowsort
SELECT ALL - 68 + - + 26
----
-94

query I rowsort
SELECT ALL + 13 + - + 13 AS col2
----
0

query I rowsort
SELECT 44 - - 87 * + 64 * - + 74
----
-411988

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2371
SELECT + 91 + - 43 + 51 + - + 11 + - CAST( + COUNT( * ) AS SIGNED ) * + 2 AS col0
----
86

skipif mysql # not compatible
query I rowsort label-2371
SELECT + 91 + - 43 + 51 + - + 11 + - CAST ( + COUNT ( * ) AS INTEGER ) * + 2 AS col0
----
86

query I rowsort
SELECT DISTINCT + - 95 + + - 21
----
-116

query I rowsort
SELECT DISTINCT + 75 * + 27 AS col0
----
2025

onlyif mysql # aggregate syntax: 
query I rowsort label-2374
SELECT - MAX( - 64 )
----
64

skipif mysql # not compatible
query I rowsort label-2374
SELECT - MAX ( - 64 )
----
64

query I rowsort
SELECT - 40 + - - 5
----
-35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2376
SELECT ( + 41 ) * + CASE + ( - 10 ) WHEN NULLIF ( + 42, - - 55 ) * + ( 5 ) THEN + 88 END * ( + CASE 94 WHEN - - 41 THEN + 45 WHEN - CAST( NULL AS SIGNED ) THEN NULL WHEN COUNT( * ) * - 75 + 7 THEN - ( - COUNT( * ) ) + + CAST( NULL AS SIGNED ) ELSE + 99 END ) + + 59 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2376
SELECT ( + 41 ) * + CASE + ( - 10 ) WHEN NULLIF ( + 42, - - 55 ) * + ( 5 ) THEN + 88 END * ( + CASE 94 WHEN - - 41 THEN + 45 WHEN - CAST ( NULL AS INTEGER ) THEN NULL WHEN COUNT ( * ) * - 75 + 7 THEN - ( - COUNT ( * ) ) + + CAST ( NULL AS INTEGER ) ELSE + 99 END ) + + 59 col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2377
SELECT DISTINCT NULLIF ( - COUNT( * ), + CAST( + 30 AS SIGNED ) * CAST( - 45 AS SIGNED ) * - - COALESCE ( + 68, - 71 ) * + 34 )
----
-1

skipif mysql # not compatible
query I rowsort label-2377
SELECT DISTINCT NULLIF ( - COUNT ( * ), + CAST ( + 30 AS INTEGER ) * CAST ( - 45 AS INTEGER ) * - - COALESCE ( + 68, - 71 ) * + 34 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2378
SELECT + COUNT( + - 43 )
----
1

skipif mysql # not compatible
query I rowsort label-2378
SELECT + COUNT ( + - 43 )
----
1

query I rowsort
SELECT 3 * + 19 AS col2
----
57

query I rowsort
SELECT DISTINCT - 9 - - + 22 AS col0
----
13

query I rowsort
SELECT ALL - ( - + 0 ) * + 48
----
0

query I rowsort
SELECT + 47 * + 79
----
3713

query II rowsort
SELECT ALL 46, + 9 col1
----
46
9

query I rowsort
SELECT DISTINCT 26 * 10 AS col2
----
260

onlyif mysql # aggregate syntax: 
query II rowsort label-2385
SELECT - - 60, ( - COUNT( - - 29 ) ) + 96 AS col2
----
60
95

skipif mysql # not compatible
query II rowsort label-2385
SELECT - - 60, ( - COUNT ( - - 29 ) ) + 96 AS col2
----
60
95

query I rowsort
SELECT 30 * - + 33 * 63
----
-62370

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

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

query I rowsort
SELECT ( + ( + 82 ) ) * - 15 + + - 86
----
-1316

onlyif mysql # aggregate syntax: 
query I rowsort label-2389
SELECT DISTINCT COALESCE ( - + 97, - + 90 * + 27 ) * + 16 * - - ( + 50 ) * 28 + 51 * 67 + 41 + COALESCE ( - + 88, - CASE + - 70 WHEN - 64 THEN + 90 ELSE NULL END ) + 2 * + MAX( DISTINCT 83 )
----
-2169264

skipif mysql # not compatible
query I rowsort label-2389
SELECT DISTINCT COALESCE ( - + 97, - + 90 * + 27 ) * + 16 * - - ( + 50 ) * 28 + 51 * 67 + 41 + COALESCE ( - + 88, - CASE + - 70 WHEN - 64 THEN + 90 ELSE NULL END ) + 2 * + MAX ( DISTINCT 83 )
----
-2169264

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2390
SELECT 8 DIV NULLIF ( - - 58, - 30 - + + 50 * - ( + + CASE + 84 WHEN ( 47 ) THEN + - 67 ELSE NULL END ) - + COALESCE ( + 46, + 69 + + - 44, - CASE - COALESCE ( COUNT( - ( - 80 ) ), 27 ) WHEN + 62 - + COUNT( * ) THEN - 80 WHEN + NULLIF ( 38, - 46 ) THEN + 65 - - 50 END - CAST( NULL AS SIGNED ) ) * 87 ) DIV - 42 - COALESCE ( + COUNT( * ), - 9 ) * 7 AS col0
----
-7

skipif mysql # not compatible
query I rowsort label-2390
SELECT 8 / NULLIF ( - - 58, - 30 - + + 50 * - ( + + CASE + 84 WHEN ( 47 ) THEN + - 67 ELSE NULL END ) - + COALESCE ( + 46, + 69 + + - 44, - CASE - COALESCE ( COUNT ( - ( - 80 ) ), 27 ) WHEN + 62 - + COUNT ( * ) THEN - 80 WHEN + NULLIF ( 38, - 46 ) THEN + 65 - - 50 END - CAST ( NULL AS INTEGER ) ) * 87 ) / - 42 - COALESCE ( + COUNT ( * ), - 9 ) * 7 AS col0
----
-7

query II rowsort
SELECT DISTINCT + 93 AS col2, 10 * + 64
----
93
640

onlyif mysql # aggregate syntax: 
query II rowsort label-2392
SELECT + MAX( ALL - - 50 ) AS col2, + 36 AS col0
----
50
36

skipif mysql # not compatible
query II rowsort label-2392
SELECT + MAX ( ALL - - 50 ) AS col2, + 36 AS col0
----
50
36

onlyif mysql # aggregate syntax: 
query II rowsort label-2393
SELECT COUNT( * ) col2, - 64 * - 83 AS col2
----
1
5312

skipif mysql # not compatible
query II rowsort label-2393
SELECT COUNT ( * ) col2, - 64 * - 83 AS col2
----
1
5312

query II rowsort
SELECT + 6 AS col0, 46 AS col1
----
6
46

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

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

query I rowsort
SELECT + 53 + + - 51 AS col0
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2397
SELECT - CAST( - ( 3 ) AS SIGNED ) col2
----
3

skipif mysql # not compatible
query I rowsort label-2397
SELECT - CAST ( - ( 3 ) AS INTEGER ) col2
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2398
SELECT ALL - + 77 * + 72 * + CAST( NULL AS SIGNED ) - - - 2, + 10 AS col1
----
NULL
10

skipif mysql # not compatible
query II rowsort label-2398
SELECT ALL - + 77 * + 72 * + CAST ( NULL AS INTEGER ) - - - 2, + 10 AS col1
----
NULL
10

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2400
SELECT DISTINCT + ( - + COALESCE ( + - COUNT( * ), - 9 * + 55 ) ) - + ( + MIN( ALL - 74 ) ) + CAST( 4 AS SIGNED ) + - + COALESCE ( 69, + COUNT( * ) * - 25 + + - NULLIF ( - - 58, - CASE 44 WHEN - 31 + 76 THEN 89 * + 47 WHEN 46 THEN NULL ELSE NULL END ) - ( 28 ) * MIN( ALL 90 ) ) + 25 * + 29 * - CAST( NULL AS SIGNED ) / - 29
----
NULL

skipif mysql # not compatible
query I rowsort label-2400
SELECT DISTINCT + ( - + COALESCE ( + - COUNT ( * ), - 9 * + 55 ) ) - + ( + MIN ( ALL - 74 ) ) + CAST ( 4 AS INTEGER ) + - + COALESCE ( 69, + COUNT ( * ) * - 25 + + - NULLIF ( - - 58, - CASE 44 WHEN - 31 + 76 THEN 89 * + 47 WHEN 46 THEN NULL ELSE NULL END ) - ( 28 ) * MIN ( ALL 90 ) ) + 25 * + 29 * - CAST ( NULL AS INTEGER ) / - 29
----
NULL

query II rowsort
SELECT ALL + 90 AS col1, 56 AS col0
----
90
56

query II rowsort
SELECT - 95, + 6 AS col2
----
-95
6

onlyif mysql # aggregate syntax: 
query II rowsort label-2403
SELECT + - 49 AS col1, COUNT( * ) + 41 * - 6
----
-49
-245

skipif mysql # not compatible
query II rowsort label-2403
SELECT + - 49 AS col1, COUNT ( * ) + 41 * - 6
----
-49
-245

query I rowsort
SELECT - 29 + + 18 AS col0
----
-11

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2407
SELECT - 82 * + 8 col0, + 44 * + NULLIF ( - COUNT( * ), - 2 * + - 36 + - 23 * AVG ( ALL - ( 61 ) ) - - ( - + 57 ) + CAST( NULL AS SIGNED ) ) * + ( - - MAX( + 14 ) ) - - 34
----
-656
-582

skipif mysql # not compatible
query II rowsort label-2407
SELECT - 82 * + 8 col0, + 44 * + NULLIF ( - COUNT ( * ), - 2 * + - 36 + - 23 * AVG ( ALL - ( 61 ) ) - - ( - + 57 ) + CAST ( NULL AS INTEGER ) ) * + ( - - MAX ( + 14 ) ) - - 34
----
-656
-582

query II rowsort
SELECT 61, + 92 AS col2
----
61
92

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2409
SELECT - - COALESCE ( - 98, - 2, - 94 + + 60 ) - - - CAST( NULL AS DECIMAL ) AS col2, - 97 AS col1
----
NULL
-97

skipif mysql # not compatible
query II rowsort label-2409
SELECT - - COALESCE ( - 98, - 2, - 94 + + 60 ) - - - CAST ( NULL AS REAL ) AS col2, - 97 AS col1
----
NULL
-97

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2411
SELECT DISTINCT MAX( ALL + + 32 ) AS col0, COALESCE ( - 4, - 42, + 34 )
----
32
-4

skipif mysql # not compatible
query II rowsort label-2411
SELECT DISTINCT MAX ( ALL + + 32 ) AS col0, COALESCE ( - 4, - 42, + 34 )
----
32
-4

query I rowsort
SELECT - + 91 + 36
----
-55

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

query I rowsort
SELECT - - 75 * + 11 AS col2
----
825

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2416
SELECT DISTINCT - CASE + + 67 WHEN CAST( - 61 AS SIGNED ) THEN - NULLIF ( - - 86, - MAX( - 8 ) ) * - + 71 WHEN + + 47 + + - CAST( NULL AS DECIMAL ) THEN NULL ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2416
SELECT DISTINCT - CASE + + 67 WHEN CAST ( - 61 AS INTEGER ) THEN - NULLIF ( - - 86, - MAX ( - 8 ) ) * - + 71 WHEN + + 47 + + - CAST ( NULL AS REAL ) THEN NULL ELSE NULL END AS col2
----
NULL

query II rowsort
SELECT ALL 2 col0, - 26
----
2
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-2418
SELECT - 41 - + 31 - - COUNT( * ) AS col2
----
-71

skipif mysql # not compatible
query I rowsort label-2418
SELECT - 41 - + 31 - - COUNT ( * ) AS col2
----
-71

query II rowsort
SELECT DISTINCT 24 AS col2, 48 * + + 9 AS col1
----
24
432

query I rowsort
SELECT ALL - 20 * + 1
----
-20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2421
SELECT - CASE - CAST( + + 11 AS SIGNED ) WHEN + - 15 THEN - 62 + + CAST( 47 AS SIGNED ) ELSE + 65 END - + + 67 + + 90 - - COUNT( * ) AS col1
----
-41

skipif mysql # not compatible
query I rowsort label-2421
SELECT - CASE - CAST ( + + 11 AS INTEGER ) WHEN + - 15 THEN - 62 + + CAST ( 47 AS INTEGER ) ELSE + 65 END - + + 67 + + 90 - - COUNT ( * ) AS col1
----
-41

query II rowsort
SELECT + 2 AS col1, 96 AS col1
----
2
96

query II rowsort
SELECT - 91 + + 37 AS col2, 81 * + 1 - 87
----
-54
-6

query I rowsort
SELECT - 67 + 63 * - + ( - 18 ) + 86
----
1153

onlyif mysql # DIV for integer division: 
query I rowsort label-2425
SELECT DISTINCT 79 DIV 35 col2
----
2

skipif mysql # not compatible
query I rowsort label-2425
SELECT DISTINCT 79 / 35 col2
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-2426
SELECT DISTINCT - NULLIF ( 95, + AVG ( + 38 ) * 85 - - COALESCE ( + 96, + 11 * + ( - 3 ) + + COUNT( * ), + 20 * + 62 + + 18 + + COUNT( * ) * + - NULLIF ( - 3, NULLIF ( 18, ( + COUNT( * ) ) ) ) ) ) + 58
----
-37

skipif mysql # not compatible
query I rowsort label-2426
SELECT DISTINCT - NULLIF ( 95, + AVG ( + 38 ) * 85 - - COALESCE ( + 96, + 11 * + ( - 3 ) + + COUNT ( * ), + 20 * + 62 + + 18 + + COUNT ( * ) * + - NULLIF ( - 3, NULLIF ( 18, ( + COUNT ( * ) ) ) ) ) ) + 58
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-2427
SELECT - 20 + - 40 + - 80 * - + COUNT( * ) AS col2
----
20

skipif mysql # not compatible
query I rowsort label-2427
SELECT - 20 + - 40 + - 80 * - + COUNT ( * ) AS col2
----
20

onlyif mysql # aggregate syntax: 
query II rowsort label-2428
SELECT - MAX( DISTINCT + + 95 ), - NULLIF ( + 19, 12 * - 68 - - 7 ) AS col0
----
-95
-19

skipif mysql # not compatible
query II rowsort label-2428
SELECT - MAX ( DISTINCT + + 95 ), - NULLIF ( + 19, 12 * - 68 - - 7 ) AS col0
----
-95
-19

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2430
SELECT - 84 DIV 39 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-2430
SELECT - 84 / 39 AS col2
----
-2

query I rowsort
SELECT - 1 * 7 AS col1
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-2432
SELECT + ( + 44 ) + - COUNT( * ) + 75
----
118

skipif mysql # not compatible
query I rowsort label-2432
SELECT + ( + 44 ) + - COUNT ( * ) + 75
----
118

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2433
SELECT ALL + 82 DIV + SUM( + 4 ) + 48 AS col2
----
68

skipif mysql # not compatible
query I rowsort label-2433
SELECT ALL + 82 / + SUM ( + 4 ) + 48 AS col2
----
68

onlyif mysql # DIV for integer division: 
query I rowsort label-2434
SELECT + 54 DIV + 94 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2434
SELECT + 54 / + 94 AS col1
----
0

query I rowsort
SELECT DISTINCT - 22 * + - 58 col0
----
1276

query II rowsort
SELECT ( - 55 ), 47 AS col0
----
-55
47

query I rowsort
SELECT + 0 * 35 + - 81
----
-81

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2439
SELECT + NULLIF ( COUNT( * ), 87 * + 72 * + 45 + - CAST( NULL AS SIGNED ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2439
SELECT + NULLIF ( COUNT ( * ), 87 * + 72 * + 45 + - CAST ( NULL AS INTEGER ) ) AS col2
----
1

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

skipif mysql # not compatible
query I rowsort label-2440
SELECT + + ( + 11 ) * - + 0 * + 6 / COUNT ( * ) * - 90 AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2441
SELECT + CAST( - 14 AS SIGNED ) * + CAST( NULL AS SIGNED ) * + 1 - 74 / - 56 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2441
SELECT + CAST ( - 14 AS INTEGER ) * + CAST ( NULL AS INTEGER ) * + 1 - 74 / - 56 AS col1
----
NULL

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

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

query I rowsort
SELECT + 2 * 67 AS col0
----
134

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2444
SELECT ALL - - 9 * + COUNT( * ) * - CAST( NULL AS SIGNED ) * MIN( DISTINCT + 20 ) / + 6 + + 30 * - COALESCE ( - 49, 26 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2444
SELECT ALL - - 9 * + COUNT ( * ) * - CAST ( NULL AS INTEGER ) * MIN ( DISTINCT + 20 ) / + 6 + + 30 * - COALESCE ( - 49, 26 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2445
SELECT + COUNT( * ) * - - 69 + 73 AS col0
----
142

skipif mysql # not compatible
query I rowsort label-2445
SELECT + COUNT ( * ) * - - 69 + 73 AS col0
----
142

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2446
SELECT COALESCE ( - ( NULLIF ( - + CAST( + 60 AS SIGNED ), + 80 + 77 * CAST( NULL AS SIGNED ) ) ), + 26 * - 19 * + COUNT( * ) * - COUNT( * ) ) col1
----
60

skipif mysql # not compatible
query I rowsort label-2446
SELECT COALESCE ( - ( NULLIF ( - + CAST ( + 60 AS INTEGER ), + 80 + 77 * CAST ( NULL AS INTEGER ) ) ), + 26 * - 19 * + COUNT ( * ) * - COUNT ( * ) ) col1
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-2447
SELECT ALL - CASE - - 76 WHEN - ( 37 ) THEN + 63 * + + 65 / + + ( - - COUNT( + 18 ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-2447
SELECT ALL - CASE - - 76 WHEN - ( 37 ) THEN + 63 * + + 65 / + + ( - - COUNT ( + 18 ) ) END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2448
SELECT - - 38 + + 43 + - 90 DIV ( 19 ) * + 56 * COUNT( * ) AS col0
----
-143

skipif mysql # not compatible
query I rowsort label-2448
SELECT - - 38 + + 43 + - 90 / ( 19 ) * + 56 * COUNT ( * ) AS col0
----
-143

onlyif mysql # aggregate syntax: 
query I rowsort label-2449
SELECT - + CASE 18 WHEN + 95 - + ( + 24 ) THEN NULL WHEN COUNT( * ) THEN - 36 ELSE NULL END + + 44 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2449
SELECT - + CASE 18 WHEN + 95 - + ( + 24 ) THEN NULL WHEN COUNT ( * ) THEN - 36 ELSE NULL END + + 44 AS col2
----
NULL

query I rowsort
SELECT ALL + - 18 * - - 61 + + 13
----
-1085

query I rowsort
SELECT - 68 * + 13
----
-884

query I rowsort
SELECT DISTINCT + ( + - 28 ) * - - ( + 8 ) AS col2
----
-224

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

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

query I rowsort
SELECT - 44 * - - 98
----
-4312

query I rowsort
SELECT ALL 50 + + 45 AS col2
----
95

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2457
SELECT DISTINCT - ( + 54 ) + - + AVG ( DISTINCT - ( + + 45 ) ) + + 71 / CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2457
SELECT DISTINCT - ( + 54 ) + - + AVG ( DISTINCT - ( + + 45 ) ) + + 71 / CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 35 - - + 51 * - + 52
----
-2617

query I rowsort
SELECT 70 * - + 37
----
-2590

query I rowsort
SELECT ALL - 54 * 9
----
-486

onlyif mysql # aggregate syntax: 
query II rowsort label-2461
SELECT ALL + MAX( ALL - 93 ) - + 46 AS col0, 92
----
-139
92

skipif mysql # not compatible
query II rowsort label-2461
SELECT ALL + MAX ( ALL - 93 ) - + 46 AS col0, 92
----
-139
92

onlyif mysql # DIV for integer division: 
query I rowsort label-2462
SELECT 60 * 79 DIV + 9
----
526

skipif mysql # not compatible
query I rowsort label-2462
SELECT 60 * 79 / + 9
----
526

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2463
SELECT DISTINCT 59 * + 65 DIV + COUNT( * ) col1
----
3835

skipif mysql # not compatible
query I rowsort label-2463
SELECT DISTINCT 59 * + 65 / + COUNT ( * ) col1
----
3835

onlyif mysql # aggregate syntax: 
query I rowsort label-2464
SELECT COUNT( ALL - - 66 ) * + ( - SUM( 2 ) ) * + CASE - COUNT( * ) WHEN - + 14 THEN 99 * + 87 * + ( - + 45 ) * + 94 END + 51 + 67 * - 23
----
NULL

skipif mysql # not compatible
query I rowsort label-2464
SELECT COUNT ( ALL - - 66 ) * + ( - SUM ( 2 ) ) * + CASE - COUNT ( * ) WHEN - + 14 THEN 99 * + 87 * + ( - + 45 ) * + 94 END + 51 + 67 * - 23
----
NULL

query I rowsort
SELECT 44 + + - 68
----
-24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2466
SELECT + 66 DIV + 69 - COUNT( * ) * - - 6 + + 38 * + 70 AS col0
----
2654

skipif mysql # not compatible
query I rowsort label-2466
SELECT + 66 / + 69 - COUNT ( * ) * - - 6 + + 38 * + 70 AS col0
----
2654

onlyif mysql # aggregate syntax: 
query I rowsort label-2467
SELECT 90 * - + 3 + - 78 + COUNT( * ) * 82
----
-266

skipif mysql # not compatible
query I rowsort label-2467
SELECT 90 * - + 3 + - 78 + COUNT ( * ) * 82
----
-266

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2468
SELECT 30 - 88 DIV COALESCE ( ( + 79 ), ( + COUNT( * ) ) ) DIV 33 AS col0, 72 * + + 16 AS col1
----
30
1152

skipif mysql # not compatible
query II rowsort label-2468
SELECT 30 - 88 / COALESCE ( ( + 79 ), ( + COUNT ( * ) ) ) / 33 AS col0, 72 * + + 16 AS col1
----
30
1152

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2469
SELECT + - NULLIF ( - + CAST( NULL AS SIGNED ), - 70 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2469
SELECT + - NULLIF ( - + CAST ( NULL AS INTEGER ), - 70 ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2470
SELECT 7 DIV + 57 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2470
SELECT 7 / + 57 AS col0
----
0

query II rowsort
SELECT 9 + + NULLIF ( - + 92, + 28 ) AS col1, 12 * CASE - + 58 WHEN 88 / + - 1 + - 86 THEN + - 69 ELSE NULL END AS col0
----
-83
NULL

query I rowsort
SELECT - 78 + + - 77
----
-155

query I rowsort
SELECT - ( + 32 ) * - 81 + 95 AS col2
----
2687

onlyif mysql # aggregate syntax: 
query I rowsort label-2474
SELECT ALL - MAX( DISTINCT + 24 ) AS col0
----
-24

skipif mysql # not compatible
query I rowsort label-2474
SELECT ALL - MAX ( DISTINCT + 24 ) AS col0
----
-24

onlyif mysql # aggregate syntax: 
query II rowsort label-2475
SELECT + CASE - COUNT( * ) WHEN 56 THEN NULL ELSE + + 43 * - 62 + + - 30 - - + 26 * - 77 END AS col0, + 3 * + 27
----
-4698
81

skipif mysql # not compatible
query II rowsort label-2475
SELECT + CASE - COUNT ( * ) WHEN 56 THEN NULL ELSE + + 43 * - 62 + + - 30 - - + 26 * - 77 END AS col0, + 3 * + 27
----
-4698
81

onlyif mysql # aggregate syntax: 
query II rowsort label-2476
SELECT + COUNT( * ), 4 + + 72 AS col1
----
1
76

skipif mysql # not compatible
query II rowsort label-2476
SELECT + COUNT ( * ), 4 + + 72 AS col1
----
1
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2477
SELECT + CASE CAST( + + 47 AS SIGNED ) WHEN + - 32 THEN + 48 ELSE - + 49 * - 68 END
----
3332

skipif mysql # not compatible
query I rowsort label-2477
SELECT + CASE CAST ( + + 47 AS INTEGER ) WHEN + - 32 THEN + 48 ELSE - + 49 * - 68 END
----
3332

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2478
SELECT + ( - 25 ) * - COUNT( * ) * - 67 + - COALESCE ( + + 4, - 3 + - + 79 ) DIV - + 16
----
-1675

skipif mysql # not compatible
query I rowsort label-2478
SELECT + ( - 25 ) * - COUNT ( * ) * - 67 + - COALESCE ( + + 4, - 3 + - + 79 ) / - + 16
----
-1675

onlyif mysql # aggregate syntax: 
query I rowsort label-2479
SELECT + 27 + + 33 + + 42 * - - 22 * 68 + - MIN( DISTINCT - + 61 ) AS col0
----
62953

skipif mysql # not compatible
query I rowsort label-2479
SELECT + 27 + + 33 + + 42 * - - 22 * 68 + - MIN ( DISTINCT - + 61 ) AS col0
----
62953

query I rowsort
SELECT + + 12 col1
----
12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2481
SELECT 55 * CAST( + 46 AS SIGNED ) + - 43
----
2487

skipif mysql # not compatible
query I rowsort label-2481
SELECT 55 * CAST ( + 46 AS INTEGER ) + - 43
----
2487

onlyif mysql # aggregate syntax: 
query I rowsort label-2482
SELECT + COUNT( * ) + + - 73
----
-72

skipif mysql # not compatible
query I rowsort label-2482
SELECT + COUNT ( * ) + + - 73
----
-72

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

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

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

skipif mysql # not compatible
query I rowsort label-2484
SELECT CAST ( NULL AS INTEGER ) - + 20 + COUNT ( * ) / - - 19 * COUNT ( * ) + - + MAX ( 46 ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2485
SELECT CAST( NULL AS SIGNED ) + - CASE - 42 WHEN AVG ( DISTINCT + 65 ) + + 28 THEN NULL WHEN CAST( 1 AS SIGNED ) THEN NULL WHEN - - 0 THEN NULL ELSE COUNT( * ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2485
SELECT CAST ( NULL AS INTEGER ) + - CASE - 42 WHEN AVG ( DISTINCT + 65 ) + + 28 THEN NULL WHEN CAST ( 1 AS INTEGER ) THEN NULL WHEN - - 0 THEN NULL ELSE COUNT ( * ) END AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2486
SELECT DISTINCT ( + 6 ) DIV - + 54 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2486
SELECT DISTINCT ( + 6 ) / - + 54 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2487
SELECT ALL + 22 * + 56 * COUNT( * )
----
1232

skipif mysql # not compatible
query I rowsort label-2487
SELECT ALL + 22 * + 56 * COUNT ( * )
----
1232

onlyif mysql # aggregate syntax: 
query I rowsort label-2488
SELECT 54 + - SUM( 74 )
----
-20

skipif mysql # not compatible
query I rowsort label-2488
SELECT 54 + - SUM ( 74 )
----
-20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2489
SELECT 64 + + - 88 + - CASE + CAST( NULL AS SIGNED ) WHEN - - 18 THEN NULL WHEN COUNT( * ) THEN + 51 ELSE 68 END - + + 50 + + 53 AS col2
----
-89

skipif mysql # not compatible
query I rowsort label-2489
SELECT 64 + + - 88 + - CASE + CAST ( NULL AS INTEGER ) WHEN - - 18 THEN NULL WHEN COUNT ( * ) THEN + 51 ELSE 68 END - + + 50 + + 53 AS col2
----
-89

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

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

query I rowsort
SELECT DISTINCT + 77 * + 56
----
4312

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2492
SELECT 79 + - - COUNT( * ) + CAST( 45 AS SIGNED ) AS col1
----
125

skipif mysql # not compatible
query I rowsort label-2492
SELECT 79 + - - COUNT ( * ) + CAST ( 45 AS INTEGER ) AS col1
----
125

query I rowsort
SELECT 60 * - 4
----
-240

query I rowsort
SELECT + NULLIF ( 28, - ( - 10 ) )
----
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2495
SELECT ALL - + CAST( NULL AS SIGNED ) + - - 13 + - 13 * + 16 * + 71 + - + MAX( + 61 ) + + 5 + SUM( ALL 42 ) * - - ( - + 44 ) * 19 + - 93 * - 39 / + 58 * 80 * + + ( 48 ) * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2495
SELECT ALL - + CAST ( NULL AS INTEGER ) + - - 13 + - 13 * + 16 * + 71 + - + MAX ( + 61 ) + + 5 + SUM ( ALL 42 ) * - - ( - + 44 ) * 19 + - 93 * - 39 / + 58 * 80 * + + ( 48 ) * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2496
SELECT DISTINCT + + 69 * + CASE + + 5 WHEN - + ( 64 ) THEN + 82 WHEN - 14 - - 51 THEN NULL WHEN - 14 THEN + + 27 + - SUM( ALL + 18 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-2496
SELECT DISTINCT + + 69 * + CASE + + 5 WHEN - + ( 64 ) THEN + 82 WHEN - 14 - - 51 THEN NULL WHEN - 14 THEN + + 27 + - SUM ( ALL + 18 ) END
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2498
SELECT ALL - 93 * MAX( DISTINCT - 61 ) - - + 77 * - 21 + + 39 AS col1
----
4095

skipif mysql # not compatible
query I rowsort label-2498
SELECT ALL - 93 * MAX ( DISTINCT - 61 ) - - + 77 * - 21 + + 39 AS col1
----
4095

onlyif mysql # aggregate syntax: 
query I rowsort label-2499
SELECT - 31 * + MAX( DISTINCT - + 53 ) * 44 - - 94 AS col0
----
72386

skipif mysql # not compatible
query I rowsort label-2499
SELECT - 31 * + MAX ( DISTINCT - + 53 ) * 44 - - 94 AS col0
----
72386

query I rowsort
SELECT 34 * - 4 * ( + 57 ) * - 37
----
286824

onlyif mysql # DIV for integer division: 
query I rowsort label-2501
SELECT - 7 + ( + - 91 ) + ( - 36 ) DIV - 86
----
-98

skipif mysql # not compatible
query I rowsort label-2501
SELECT - 7 + ( + - 91 ) + ( - 36 ) / - 86
----
-98

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

skipif mysql # not compatible
query I rowsort label-2502
SELECT COUNT ( * ) / 58
----
0

onlyif mysql # aggregate syntax: 
query III rowsort label-2503
SELECT DISTINCT - SUM( DISTINCT 70 ) + + - 57 - - 94 col2, 9, + 60 * - 62 + + 4 col2
----
-33
9
-3716

skipif mysql # not compatible
query III rowsort label-2503
SELECT DISTINCT - SUM ( DISTINCT 70 ) + + - 57 - - 94 col2, 9, + 60 * - 62 + + 4 col2
----
-33
9
-3716

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2505
SELECT DISTINCT 22 + + SUM( 97 )
----
119

skipif mysql # not compatible
query I rowsort label-2505
SELECT DISTINCT 22 + + SUM ( 97 )
----
119

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2506
SELECT - COALESCE ( - 17, 33 DIV + 70 + - COUNT( * ) )
----
17

skipif mysql # not compatible
query I rowsort label-2506
SELECT - COALESCE ( - 17, 33 / + 70 + - COUNT ( * ) )
----
17

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2508
SELECT ALL 49 * + MAX( - 58 ) AS col0
----
-2842

skipif mysql # not compatible
query I rowsort label-2508
SELECT ALL 49 * + MAX ( - 58 ) AS col0
----
-2842

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2509
SELECT ALL 42 - + 35 DIV + COUNT( * )
----
7

skipif mysql # not compatible
query I rowsort label-2509
SELECT ALL 42 - + 35 / + COUNT ( * )
----
7

onlyif mysql # DIV for integer division: 
query I rowsort label-2510
SELECT + ( 38 ) DIV 18
----
2

skipif mysql # not compatible
query I rowsort label-2510
SELECT + ( 38 ) / 18
----
2

query II rowsort
SELECT ALL 47, 41 AS col2
----
47
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2512
SELECT - COALESCE ( - 88, + COUNT( * ) * - + 9 * + 38 * + - CAST( - MAX( ALL - ( - 18 ) ) AS SIGNED ) )
----
88

skipif mysql # not compatible
query I rowsort label-2512
SELECT - COALESCE ( - 88, + COUNT ( * ) * - + 9 * + 38 * + - CAST ( - MAX ( ALL - ( - 18 ) ) AS INTEGER ) )
----
88

onlyif mysql # aggregate syntax: 
query II rowsort label-2513
SELECT - 61, + MIN( DISTINCT - + 0 ) + - - 37 AS col2
----
-61
37

skipif mysql # not compatible
query II rowsort label-2513
SELECT - 61, + MIN ( DISTINCT - + 0 ) + - - 37 AS col2
----
-61
37

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

skipif mysql # not compatible
query I rowsort label-2514
SELECT DISTINCT MIN ( ALL - ( + 56 ) ) AS col2
----
-56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2515
SELECT ALL - - CASE + - COUNT( * ) WHEN + 39 * COUNT( * ) + - 85 - + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) * ( + 76 ) THEN NULL ELSE 20 END + - 58
----
-38

skipif mysql # not compatible
query I rowsort label-2515
SELECT ALL - - CASE + - COUNT ( * ) WHEN + 39 * COUNT ( * ) + - 85 - + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) * ( + 76 ) THEN NULL ELSE 20 END + - 58
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-2516
SELECT + + 83 - COUNT( * ) * + + 7 + + - 81
----
-5

skipif mysql # not compatible
query I rowsort label-2516
SELECT + + 83 - COUNT ( * ) * + + 7 + + - 81
----
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-2517
SELECT ALL + 77 DIV + 38 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-2517
SELECT ALL + 77 / + 38 AS col2
----
2

query I rowsort
SELECT + - 46 * + ( + ( + 95 ) ) + + 16
----
-4354

query II rowsort
SELECT - 53, + 25 - + 88 + + 33 AS col1
----
-53
-30

query II rowsort
SELECT + 3 AS col2, 41 + + 56 AS col1
----
3
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2521
SELECT ALL 0 * - - 66 * + + 59 + - CAST( NULL AS SIGNED ) - + + 13 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2521
SELECT ALL 0 * - - 66 * + + 59 + - CAST ( NULL AS INTEGER ) - + + 13 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2522
SELECT - 82 - - CASE - + 85 WHEN + 5 * + 61 + + AVG ( - 84 ) + + + 59 * 79 * - 91 * - 14 * + 11 THEN NULL WHEN + 34 * - 26 - + 6 + + 54 / - CAST( - + 39 AS SIGNED ) * - + 35 + 96 * COUNT( * ) THEN 32 + COUNT( * ) END + 14 * - 16 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2522
SELECT - 82 - - CASE - + 85 WHEN + 5 * + 61 + + AVG ( - 84 ) + + + 59 * 79 * - 91 * - 14 * + 11 THEN NULL WHEN + 34 * - 26 - + 6 + + 54 / - CAST ( - + 39 AS INTEGER ) * - + 35 + 96 * COUNT ( * ) THEN 32 + COUNT ( * ) END + 14 * - 16 col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2523
SELECT - 4 * + CAST( ( 69 ) AS SIGNED ) + - CAST( - 12 AS SIGNED ) * + 14 * 16
----
2412

skipif mysql # not compatible
query I rowsort label-2523
SELECT - 4 * + CAST ( ( 69 ) AS INTEGER ) + - CAST ( - 12 AS INTEGER ) * + 14 * 16
----
2412

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2524
SELECT ALL + + CAST( 88 AS SIGNED ) * + + 21 / 24 + + - COUNT( * ) * - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2524
SELECT ALL + + CAST ( 88 AS INTEGER ) * + + 21 / 24 + + - COUNT ( * ) * - - CAST ( NULL AS INTEGER )
----
NULL

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

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

skipif mysql # not compatible
query I rowsort label-2526
SELECT ALL + + CAST ( - 45 AS INTEGER ) AS col2
----
-45

query I rowsort
SELECT ALL - - 92 * - 79 * - + 80 + - 28
----
581412

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2528
SELECT - - 6 + + COALESCE ( - - 45, - - 31, - 99 * - 89 + + ( - 26 ) + 90 + + + 79 ) + 27 + - 62 DIV + + COALESCE ( - 11, - + 44 ) + + NULLIF ( + 56, + CAST( + + COUNT( * ) AS SIGNED ) + - 30 ) + + ( - 64 ) * - 77
----
5067

skipif mysql # not compatible
query I rowsort label-2528
SELECT - - 6 + + COALESCE ( - - 45, - - 31, - 99 * - 89 + + ( - 26 ) + 90 + + + 79 ) + 27 + - 62 / + + COALESCE ( - 11, - + 44 ) + + NULLIF ( + 56, + CAST ( + + COUNT ( * ) AS INTEGER ) + - 30 ) + + ( - 64 ) * - 77
----
5067

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2530
SELECT + 16 * + NULLIF ( + + 24, 63 + CASE + COALESCE ( 54, 9 * - 73 + 30, + + 17 ) WHEN + 62 * - - 46 * COUNT( - - 2 ) * - 72 - 42 + CAST( NULL AS SIGNED ) THEN - ( + + 31 ) WHEN - ( - 10 ) * CAST( NULL AS SIGNED ) - 51 * 25 THEN NULL ELSE + COUNT( * ) END / ( + COUNT( * ) + - 43 * + CAST( 35 + 53 AS SIGNED ) ) ) * 46 + 77 + - 41 AS col1
----
17700

skipif mysql # not compatible
query I rowsort label-2530
SELECT + 16 * + NULLIF ( + + 24, 63 + CASE + COALESCE ( 54, 9 * - 73 + 30, + + 17 ) WHEN + 62 * - - 46 * COUNT ( - - 2 ) * - 72 - 42 + CAST ( NULL AS INTEGER ) THEN - ( + + 31 ) WHEN - ( - 10 ) * CAST ( NULL AS INTEGER ) - 51 * 25 THEN NULL ELSE + COUNT ( * ) END / ( + COUNT ( * ) + - 43 * + CAST ( 35 + 53 AS INTEGER ) ) ) * 46 + 77 + - 41 AS col1
----
17700

onlyif mysql # aggregate syntax: 
query II rowsort label-2531
SELECT ALL + - 54, - MIN( DISTINCT + 3 ) AS col2
----
-54
-3

skipif mysql # not compatible
query II rowsort label-2531
SELECT ALL + - 54, - MIN ( DISTINCT + 3 ) AS col2
----
-54
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2532
SELECT - - 23 * 91 * + COUNT( * ) * - 72 + 20 AS col2
----
-150676

skipif mysql # not compatible
query I rowsort label-2532
SELECT - - 23 * 91 * + COUNT ( * ) * - 72 + 20 AS col2
----
-150676

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2533
SELECT - 42 DIV - COUNT( * ) + - - 80 + - ( - COUNT( * ) ) * + 10 - + + COUNT( * ) + - + 20 * - 62 AS col1
----
1371

skipif mysql # not compatible
query I rowsort label-2533
SELECT - 42 / - COUNT ( * ) + - - 80 + - ( - COUNT ( * ) ) * + 10 - + + COUNT ( * ) + - + 20 * - 62 AS col1
----
1371

query I rowsort
SELECT - 73 * - 63
----
4599

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2537
SELECT - 37 DIV + 6 AS col0
----
-6

skipif mysql # not compatible
query I rowsort label-2537
SELECT - 37 / + 6 AS col0
----
-6

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2538
SELECT ALL CAST( NULL AS SIGNED ), 9 AS col0
----
NULL
9

skipif mysql # not compatible
query II rowsort label-2538
SELECT ALL CAST ( NULL AS INTEGER ), 9 AS col0
----
NULL
9

query I rowsort
SELECT ALL + 95 * + 71 AS col0
----
6745

onlyif mysql # DIV for integer division: 
query I rowsort label-2540
SELECT ALL 1 DIV + 48 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2540
SELECT ALL 1 / + 48 AS col2
----
0

query I rowsort
SELECT ALL ( + + 80 )
----
80

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2543
SELECT + CAST( NULL AS SIGNED ) - + 1 * - ( 46 ) * - 37 * - 63 * 58 / + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-2543
SELECT + CAST ( NULL AS INTEGER ) - + 1 * - ( 46 ) * - 37 * - 63 * 58 / + COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2544
SELECT + MAX( ALL - CAST( NULL AS SIGNED ) ) + 92 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2544
SELECT + MAX ( ALL - CAST ( NULL AS INTEGER ) ) + 92 AS col0
----
NULL

query I rowsort
SELECT - 47 * - ( + 27 ) AS col0
----
1269

onlyif mysql # aggregate syntax: 
query I rowsort label-2546
SELECT + 53 * + - COALESCE ( + COUNT( * ), + 37 ) * 80 * 1 * + + 97 AS col2
----
-411280

skipif mysql # not compatible
query I rowsort label-2546
SELECT + 53 * + - COALESCE ( + COUNT ( * ), + 37 ) * 80 * 1 * + + 97 AS col2
----
-411280

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

skipif mysql # not compatible
query I rowsort label-2547
SELECT - 65 + - COUNT ( * ) / - 93 AS col1
----
-65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2548
SELECT - CASE 92 WHEN 22 THEN NULL WHEN - CAST( 69 AS SIGNED ) * - - 68 THEN + 36 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2548
SELECT - CASE 92 WHEN 22 THEN NULL WHEN - CAST ( 69 AS INTEGER ) * - - 68 THEN + 36 END AS col1
----
NULL

query I rowsort
SELECT ALL 35 + 61 * 95 AS col2
----
5830

query I rowsort
SELECT ALL - 33 * + 33 col2
----
-1089

query I rowsort
SELECT + + 37 + + 83 * 84 AS col1
----
7009

query I rowsort
SELECT DISTINCT 9 + - 52
----
-43

query I rowsort
SELECT ALL 14 + 90 AS col1
----
104

query II rowsort
SELECT - - 54 col2, 6 * + 83 AS col2
----
54
498

query I rowsort
SELECT + 66 + 29
----
95

query II rowsort
SELECT ALL + + 36 AS col0, 96
----
36
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2557
SELECT - CAST( - 32 AS SIGNED ) DIV 34 * ( + + 29 ) + - - NULLIF ( - COUNT( * ), + 21 ) + 32 - - ( + - COALESCE ( - 76, + COALESCE ( - 21, + ( - - COALESCE ( 31, - 24 + + 44 * 99, + 76 ) ), - NULLIF ( COUNT( * ), COUNT( * ) ) * NULLIF ( - ( - 76 ) + 40, - 81 ) - + ( COUNT( * ) ), + 65 ) ) )
----
107

skipif mysql # not compatible
query I rowsort label-2557
SELECT - CAST ( - 32 AS INTEGER ) / 34 * ( + + 29 ) + - - NULLIF ( - COUNT ( * ), + 21 ) + 32 - - ( + - COALESCE ( - 76, + COALESCE ( - 21, + ( - - COALESCE ( 31, - 24 + + 44 * 99, + 76 ) ), - NULLIF ( COUNT ( * ), COUNT ( * ) ) * NULLIF ( - ( - 76 ) + 40, - 81 ) - + ( COUNT ( * ) ), + 65 ) ) )
----
107

onlyif mysql # aggregate syntax: 
query II rowsort label-2558
SELECT + - 10 * + + 68 AS col0, + COUNT( * )
----
-680
1

skipif mysql # not compatible
query II rowsort label-2558
SELECT + - 10 * + + 68 AS col0, + COUNT ( * )
----
-680
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2559
SELECT ALL - - 15 / - 94 + ( - + 53 ) - COUNT( * ) * + CASE - MIN( ALL - + 36 ) WHEN 18 / - 48 + - + 4 * 47 THEN + + 29 + - 51 * - 22 + 59 + + 69 WHEN - 73 THEN SUM( DISTINCT - 67 ) / - + 40 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2559
SELECT ALL - - 15 / - 94 + ( - + 53 ) - COUNT ( * ) * + CASE - MIN ( ALL - + 36 ) WHEN 18 / - 48 + - + 4 * 47 THEN + + 29 + - 51 * - 22 + 59 + + 69 WHEN - 73 THEN SUM ( DISTINCT - 67 ) / - + 40 END
----
NULL

query I rowsort
SELECT + + 35 * + 97 * ( 19 )
----
64505

onlyif mysql # aggregate syntax: 
query I rowsort label-2561
SELECT ALL - - CASE + + COALESCE ( ( - COUNT( * ) ), 76 - 67 + + 83, ( + - 73 ) * + - 55, + 71 ) WHEN NULLIF ( - 12, + 91 * + + 52 - NULLIF ( + - 28, 17 ) ) THEN + 35 * 4 * - - 61 + - ( 65 ) WHEN + 75 + COUNT( * ) THEN + 59 + + ( + 51 ) WHEN + 54 THEN NULL WHEN MIN( DISTINCT - 12 ) THEN 85 END * - 65
----
NULL

skipif mysql # not compatible
query I rowsort label-2561
SELECT ALL - - CASE + + COALESCE ( ( - COUNT ( * ) ), 76 - 67 + + 83, ( + - 73 ) * + - 55, + 71 ) WHEN NULLIF ( - 12, + 91 * + + 52 - NULLIF ( + - 28, 17 ) ) THEN + 35 * 4 * - - 61 + - ( 65 ) WHEN + 75 + COUNT ( * ) THEN + 59 + + ( + 51 ) WHEN + 54 THEN NULL WHEN MIN ( DISTINCT - 12 ) THEN 85 END * - 65
----
NULL

query I rowsort
SELECT ALL 39 * - 86
----
-3354

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

query I rowsort
SELECT 45 + + 36
----
81

query I rowsort
SELECT 99 * - - 28 * 3 - + - 52 AS col1
----
8368

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

query I rowsort
SELECT DISTINCT - 9 * - + 77
----
693

onlyif mysql # DIV for integer division: 
query I rowsort label-2568
SELECT 73 DIV + + 98 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2568
SELECT 73 / + + 98 AS col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2569
SELECT COUNT( * ) * + + 33 col2, 52 * + 59 - + COUNT( * )
----
33
3067

skipif mysql # not compatible
query II rowsort label-2569
SELECT COUNT ( * ) * + + 33 col2, 52 * + 59 - + COUNT ( * )
----
33
3067

onlyif mysql # aggregate syntax: 
query I rowsort label-2570
SELECT DISTINCT - 18 * - - 19 * + COUNT( * )
----
-342

skipif mysql # not compatible
query I rowsort label-2570
SELECT DISTINCT - 18 * - - 19 * + COUNT ( * )
----
-342

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2571
SELECT SUM( DISTINCT + + 81 ) + 82 * - 35 * CAST( NULL AS SIGNED ) + - 44 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2571
SELECT SUM ( DISTINCT + + 81 ) + 82 * - 35 * CAST ( NULL AS INTEGER ) + - 44 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2572
SELECT 63 DIV - 6
----
-10

skipif mysql # not compatible
query I rowsort label-2572
SELECT 63 / - 6
----
-10

onlyif mysql # DIV for integer division: 
query II rowsort label-2573
SELECT 99 DIV - ( - 73 ) col1, + 71 * 3 col2
----
1
213

skipif mysql # not compatible
query II rowsort label-2573
SELECT 99 / - ( - 73 ) col1, + 71 * 3 col2
----
1
213

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2575
SELECT ALL + 1 * - 38 * MAX( ALL + 99 ) AS col0
----
-3762

skipif mysql # not compatible
query I rowsort label-2575
SELECT ALL + 1 * - 38 * MAX ( ALL + 99 ) AS col0
----
-3762

query I rowsort
SELECT DISTINCT - 47 + + 29
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-2577
SELECT DISTINCT + COUNT( * ) + 72 col2
----
73

skipif mysql # not compatible
query I rowsort label-2577
SELECT DISTINCT + COUNT ( * ) + 72 col2
----
73

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2580
SELECT CAST( - + 98 AS SIGNED ) AS col1, - 66 * + 22 AS col2
----
-98
-1452

skipif mysql # not compatible
query II rowsort label-2580
SELECT CAST ( - + 98 AS INTEGER ) AS col1, - 66 * + 22 AS col2
----
-98
-1452

onlyif mysql # aggregate syntax: 
query II rowsort label-2581
SELECT 99 * - COUNT( * ) AS col0, + 54
----
-99
54

skipif mysql # not compatible
query II rowsort label-2581
SELECT 99 * - COUNT ( * ) AS col0, + 54
----
-99
54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2582
SELECT DISTINCT NULLIF ( - MIN( ALL + CAST( NULL AS SIGNED ) ), - + CAST( + 60 AS SIGNED ) * + 2 + - 8 + 38 / - 97 - + 49 + - 30 ) * 70, - 77 * - 21 + + - 48 * + + 78 + 87 AS col2
----
NULL
-2040

skipif mysql # not compatible
query II rowsort label-2582
SELECT DISTINCT NULLIF ( - MIN ( ALL + CAST ( NULL AS INTEGER ) ), - + CAST ( + 60 AS INTEGER ) * + 2 + - 8 + 38 / - 97 - + 49 + - 30 ) * 70, - 77 * - 21 + + - 48 * + + 78 + 87 AS col2
----
NULL
-2040

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2583
SELECT ALL MIN( + CAST( NULL AS SIGNED ) ) * + + CASE + 87 WHEN + AVG ( + 97 ) THEN NULL WHEN + COALESCE ( + - SUM( - 27 ), + - 14 * + COUNT( * ) ) + MAX( ALL - 45 ) THEN + CASE - - 28 WHEN SUM( DISTINCT + 81 ) THEN + - ( 0 ) ELSE NULL END / + + 61 WHEN + 10 THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2583
SELECT ALL MIN ( + CAST ( NULL AS INTEGER ) ) * + + CASE + 87 WHEN + AVG ( + 97 ) THEN NULL WHEN + COALESCE ( + - SUM ( - 27 ), + - 14 * + COUNT ( * ) ) + MAX ( ALL - 45 ) THEN + CASE - - 28 WHEN SUM ( DISTINCT + 81 ) THEN + - ( 0 ) ELSE NULL END / + + 61 WHEN + 10 THEN NULL END AS col2
----
NULL

query I rowsort
SELECT DISTINCT - + 90 * + 62 + + + 72
----
-5508

query I rowsort
SELECT ALL 27 * + 45
----
1215

onlyif mysql # aggregate syntax: 
query I rowsort label-2586
SELECT DISTINCT 32 - + 73 * MAX( + - ( + 25 ) ) AS col0
----
1857

skipif mysql # not compatible
query I rowsort label-2586
SELECT DISTINCT 32 - + 73 * MAX ( + - ( + 25 ) ) AS col0
----
1857

query I rowsort
SELECT 48 - 64
----
-16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2588
SELECT - CAST( NULL AS SIGNED ) / + 18 + + COUNT( * ) + + 2 + - + 43 + - ( 36 ) * MIN( + - 81 ) * 55 + + 7 * + COUNT( ALL + CAST( NULL AS SIGNED ) ) + + + 11 / - AVG ( ALL + - 83 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2588
SELECT - CAST ( NULL AS INTEGER ) / + 18 + + COUNT ( * ) + + 2 + - + 43 + - ( 36 ) * MIN ( + - 81 ) * 55 + + 7 * + COUNT ( ALL + CAST ( NULL AS INTEGER ) ) + + + 11 / - AVG ( ALL + - 83 ) AS col0
----
NULL

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

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

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

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

query II rowsort
SELECT 64 * 73 * - 77 AS col2, 56 AS col0
----
-359744
56

query I rowsort
SELECT ALL - 23 + 30 AS col2
----
7

query I rowsort
SELECT 83 + + 95 * + 47 + + 67 * + ( + 97 ) AS col0
----
11047

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2594
SELECT ALL 66 * 98 / - CAST( + CAST( NULL AS SIGNED ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2594
SELECT ALL 66 * 98 / - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER )
----
NULL

query I rowsort
SELECT 89 * + 17 AS col2
----
1513

query I rowsort
SELECT ALL + 60 + - + 96
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-2597
SELECT DISTINCT 71 + - COUNT( * ) * 98 col2
----
-27

skipif mysql # not compatible
query I rowsort label-2597
SELECT DISTINCT 71 + - COUNT ( * ) * 98 col2
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-2598
SELECT DISTINCT 89 + - 19 / - - COALESCE ( COALESCE ( + 62, - 50 ), - 10 ) + - CASE + 10 WHEN + 90 THEN NULL WHEN 52 * - 31 THEN + COUNT( * ) - + MAX( - 96 ) - - + SUM( + + 50 ) END * COUNT( * ) + - 12 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2598
SELECT DISTINCT 89 + - 19 / - - COALESCE ( COALESCE ( + 62, - 50 ), - 10 ) + - CASE + 10 WHEN + 90 THEN NULL WHEN 52 * - 31 THEN + COUNT ( * ) - + MAX ( - 96 ) - - + SUM ( + + 50 ) END * COUNT ( * ) + - 12 AS col0
----
NULL

query II rowsort
SELECT ALL 99 AS col1, ( + + 8 )
----
99
8

onlyif mysql # aggregate syntax: 
query I rowsort label-2600
SELECT 89 + + ( 82 ) - CASE WHEN ( NULL ) IS NULL THEN - CASE + 3 WHEN - 69 THEN NULL WHEN + CASE 45 WHEN 48 THEN NULL WHEN + - 74 + 50 THEN - 29 * 57 * + - SUM( ALL + - ( 39 ) ) + - - 48 END * 33 * + MIN( DISTINCT 71 ) / + 98 THEN 99 END ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2600
SELECT 89 + + ( 82 ) - CASE WHEN ( NULL ) IS NULL THEN - CASE + 3 WHEN - 69 THEN NULL WHEN + CASE 45 WHEN 48 THEN NULL WHEN + - 74 + 50 THEN - 29 * 57 * + - SUM ( ALL + - ( 39 ) ) + - - 48 END * 33 * + MIN ( DISTINCT 71 ) / + 98 THEN 99 END ELSE NULL END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2601
SELECT ALL 24 + + CAST( CASE - 97 WHEN - ( - 83 ) * 23 THEN + 64 - - 16 ELSE NULL END AS SIGNED ) * COUNT( * ) * 38 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2601
SELECT ALL 24 + + CAST ( CASE - 97 WHEN - ( - 83 ) * 23 THEN + 64 - - 16 ELSE NULL END AS INTEGER ) * COUNT ( * ) * 38 col0
----
NULL

query I rowsort
SELECT 4 - + 49
----
-45

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

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

query I rowsort
SELECT - 35 + + 3
----
-32

query I rowsort
SELECT 37 * 47
----
1739

query I rowsort
SELECT ALL + 65 * - 34
----
-2210

query I rowsort
SELECT ALL - 74 * - + 53
----
3922

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2608
SELECT - 1 + + 68 * + + CAST( - CASE + 16 WHEN + 62 * - MIN( DISTINCT 8 ) + - - 35 + - 69 * + + 72 THEN NULL WHEN 53 THEN + 32 + - 77 END AS SIGNED ) * - + 74 + + - COUNT( * ) * - CASE - 86 WHEN - COUNT( * ) THEN - 40 WHEN - 35 THEN + + 65 / + 94 * - 78 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2608
SELECT - 1 + + 68 * + + CAST ( - CASE + 16 WHEN + 62 * - MIN ( DISTINCT 8 ) + - - 35 + - 69 * + + 72 THEN NULL WHEN 53 THEN + 32 + - 77 END AS INTEGER ) * - + 74 + + - COUNT ( * ) * - CASE - 86 WHEN - COUNT ( * ) THEN - 40 WHEN - 35 THEN + + 65 / + 94 * - 78 END
----
NULL

query I rowsort
SELECT 16 * + 89
----
1424

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

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

query II rowsort
SELECT ALL 17, 69 col0
----
17
69

query I rowsort
SELECT DISTINCT + 72 * - - ( 76 ) * - 17 col1
----
-93024

query I rowsort
SELECT ALL - - 88 * - COALESCE ( - + 54, + - ( + 86 ) ) * 31 + - 53 * + + 25 col1
----
145987

query II rowsort
SELECT 88 AS col0, - COALESCE ( 85, - 54 * - 75 + + 83 * 31 + 5 + - + 51 * + 64, 51 ) * + - 13
----
88
1105

query I rowsort
SELECT - 65 + + 41 * + 83 AS col1
----
3338

query I rowsort
SELECT - 4 * 98 + + 59 * - + 26 + - 6 + + 6 * 30 AS col1
----
-1752

onlyif mysql # DIV for integer division: 
query I rowsort label-2617
SELECT + + 60 DIV 28 * - - 16 + + 58 - - ( + 97 ) * + - 1
----
-7

skipif mysql # not compatible
query I rowsort label-2617
SELECT + + 60 / 28 * - - 16 + + 58 - - ( + 97 ) * + - 1
----
-7

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

skipif mysql # not compatible
query II rowsort label-2618
SELECT COUNT ( * ) AS col2, ( 52 ) AS col0
----
1
52

query I rowsort
SELECT + 92 + - 89 AS col2
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-2620
SELECT ALL CASE 82 WHEN - 10 + 75 * + 8 * COUNT( * ) THEN 38 ELSE NULL END * - 18, - 31 + + CASE + 63 WHEN 86 / 83 THEN - 29 * 31 - - + AVG ( DISTINCT - 72 ) * - COUNT( * ) * + + 83 + 39 + - COUNT( * ) + COUNT( * ) * - 41 * - 24 + 62 / 83 ELSE NULL END * 45 AS col2
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-2620
SELECT ALL CASE 82 WHEN - 10 + 75 * + 8 * COUNT ( * ) THEN 38 ELSE NULL END * - 18, - 31 + + CASE + 63 WHEN 86 / 83 THEN - 29 * 31 - - + AVG ( DISTINCT - 72 ) * - COUNT ( * ) * + + 83 + 39 + - COUNT ( * ) + COUNT ( * ) * - 41 * - 24 + 62 / 83 ELSE NULL END * 45 AS col2
----
NULL
NULL

query I rowsort
SELECT ALL + + 1 col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2622
SELECT 27 * + + 80 + + COUNT( * )
----
2161

skipif mysql # not compatible
query I rowsort label-2622
SELECT 27 * + + 80 + + COUNT ( * )
----
2161

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2623
SELECT DISTINCT - CAST( - + 51 AS SIGNED ) * 58 + + + 17 AS col2, - CAST( NULL AS SIGNED ) + - 87 * COUNT( * ) * + - 60 AS col1
----
2975
NULL

skipif mysql # not compatible
query II rowsort label-2623
SELECT DISTINCT - CAST ( - + 51 AS INTEGER ) * 58 + + + 17 AS col2, - CAST ( NULL AS INTEGER ) + - 87 * COUNT ( * ) * + - 60 AS col1
----
2975
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2624
SELECT COUNT( * ) * + CAST( NULL AS SIGNED ) - + CAST( COUNT( * ) AS SIGNED ), - COALESCE ( + COUNT( * ), + 80 DIV - COUNT( * ) ) AS col1
----
NULL
-1

skipif mysql # not compatible
query II rowsort label-2624
SELECT COUNT ( * ) * + CAST ( NULL AS INTEGER ) - + CAST ( COUNT ( * ) AS INTEGER ), - COALESCE ( + COUNT ( * ), + 80 / - COUNT ( * ) ) AS col1
----
NULL
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2625
SELECT - SUM( ALL + - 95 ) - - - MIN( + 85 )
----
10

skipif mysql # not compatible
query I rowsort label-2625
SELECT - SUM ( ALL + - 95 ) - - - MIN ( + 85 )
----
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2626
SELECT DISTINCT 80 * + - CAST( NULL AS SIGNED ) + 1 - - 73 * + 85 * - 5 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2626
SELECT DISTINCT 80 * + - CAST ( NULL AS INTEGER ) + 1 - - 73 * + 85 * - 5 AS col1
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2627
SELECT DISTINCT CAST( NULL AS DECIMAL ) * + - 54 + 53 / AVG ( DISTINCT 9 ) + - - 60 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2627
SELECT DISTINCT CAST ( NULL AS REAL ) * + - 54 + 53 / AVG ( DISTINCT 9 ) + - - 60 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2628
SELECT MAX( ALL - + 7 ) AS col2
----
-7

skipif mysql # not compatible
query I rowsort label-2628
SELECT MAX ( ALL - + 7 ) AS col2
----
-7

query I rowsort
SELECT CASE 82 WHEN 20 THEN NULL ELSE - 35 END * + 41 * 97 + + 9
----
-139186

onlyif mysql # aggregate syntax: 
query I rowsort label-2630
SELECT + ( - - 82 ) * + - ( + + COUNT( * ) ) * 74 + - 75 * - 51 AS col1
----
-2243

skipif mysql # not compatible
query I rowsort label-2630
SELECT + ( - - 82 ) * + - ( + + COUNT ( * ) ) * 74 + - 75 * - 51 AS col1
----
-2243

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2631
SELECT DISTINCT COUNT( * ) * - + 82 + 32 - CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2631
SELECT DISTINCT COUNT ( * ) * - + 82 + 32 - CAST ( NULL AS REAL ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2632
SELECT DISTINCT CASE - 27 WHEN + 69 / + 92 THEN - 47 + MIN( ALL - 19 ) WHEN - - 12 THEN NULL ELSE + 24 END * - - 90 + + 98
----
2258

skipif mysql # not compatible
query I rowsort label-2632
SELECT DISTINCT CASE - 27 WHEN + 69 / + 92 THEN - 47 + MIN ( ALL - 19 ) WHEN - - 12 THEN NULL ELSE + 24 END * - - 90 + + 98
----
2258

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

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

query I rowsort
SELECT ALL 76 * - 82 AS col1
----
-6232

query I rowsort
SELECT + 88 + + - 19 AS col1
----
69

onlyif mysql # aggregate syntax: 
query II rowsort label-2636
SELECT - ( - 55 ), - MIN( - 97 ) * - 47 + - 25 AS col1
----
55
-4584

skipif mysql # not compatible
query II rowsort label-2636
SELECT - ( - 55 ), - MIN ( - 97 ) * - 47 + - 25 AS col1
----
55
-4584

query I rowsort
SELECT - COALESCE ( + + 4, + 79 * - - 50 + + - 71 + + 81 ) AS col2
----
-4

query I rowsort
SELECT + - ( - + 78 ) * - 50 AS col1
----
-3900

query I rowsort
SELECT DISTINCT 64 * + 14
----
896

onlyif mysql # aggregate syntax: 
query I rowsort label-2640
SELECT ALL + COUNT( * ) - - CASE 39 WHEN + - 89 * + + 20 + - + COUNT( - 14 ) THEN - + 23 + - 88 ELSE - + 97 END + - COUNT( * )
----
-97

skipif mysql # not compatible
query I rowsort label-2640
SELECT ALL + COUNT ( * ) - - CASE 39 WHEN + - 89 * + + 20 + - + COUNT ( - 14 ) THEN - + 23 + - 88 ELSE - + 97 END + - COUNT ( * )
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-2641
SELECT - COUNT( * ) * 53 col2
----
-53

skipif mysql # not compatible
query I rowsort label-2641
SELECT - COUNT ( * ) * 53 col2
----
-53

query I rowsort
SELECT + ( 26 ) + - 79 * - 6
----
500

onlyif mysql # DIV for integer division: 
query I rowsort label-2643
SELECT ALL 9 DIV + 89 col1
----
0

skipif mysql # not compatible
query I rowsort label-2643
SELECT ALL 9 / + 89 col1
----
0

query II rowsort
SELECT + 79 + 33 * - 68 * - 27, 91 + - - 81 AS col2
----
60667
172

query I rowsort
SELECT NULLIF ( - 90, + 60 ) AS col0
----
-90

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

query I rowsort
SELECT + ( 99 ) col2
----
99

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

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

query I rowsort
SELECT - + 21 - + 47 * - - 22
----
-1055

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2650
SELECT ALL + CAST( + 74 AS SIGNED ) AS col2, + 78 AS col2
----
74
78

skipif mysql # not compatible
query II rowsort label-2650
SELECT ALL + CAST ( + 74 AS INTEGER ) AS col2, + 78 AS col2
----
74
78

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2652
SELECT - 38 * + CAST( - 73 AS SIGNED ) AS col2
----
2774

skipif mysql # not compatible
query I rowsort label-2652
SELECT - 38 * + CAST ( - 73 AS INTEGER ) AS col2
----
2774

query I rowsort
SELECT DISTINCT + - 19 * - 2 * - 40 AS col2
----
-1520

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2654
SELECT + 79 + - CAST( 10 AS SIGNED ) - + 7
----
62

skipif mysql # not compatible
query I rowsort label-2654
SELECT + 79 + - CAST ( 10 AS INTEGER ) - + 7
----
62

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2656
SELECT ALL + COALESCE ( + - 8, 15 DIV + ( - + 32 ) - - 65, COUNT( * ), + + 45 ) col2
----
-8

skipif mysql # not compatible
query I rowsort label-2656
SELECT ALL + COALESCE ( + - 8, 15 / + ( - + 32 ) - - 65, COUNT ( * ), + + 45 ) col2
----
-8

query I rowsort
SELECT 41 * - 18 + 90 AS col0
----
-648

query I rowsort
SELECT - 61 - + - 23 AS col2
----
-38

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2659
SELECT + 20 DIV 4 + + COALESCE ( - - 98, + MIN( 66 ) DIV 1 + 60, - COUNT( 0 ) * MIN( DISTINCT + 12 ) + + 93 DIV - 38 - - - 51 ) + + 51 * - 33 * 3 AS col0
----
-4946

skipif mysql # not compatible
query I rowsort label-2659
SELECT + 20 / 4 + + COALESCE ( - - 98, + MIN ( 66 ) / 1 + 60, - COUNT ( 0 ) * MIN ( DISTINCT + 12 ) + + 93 / - 38 - - - 51 ) + + 51 * - 33 * 3 AS col0
----
-4946

query I rowsort
SELECT + 32 * + 93 + - 44 AS col2
----
2932

onlyif mysql # DIV for integer division: 
query I rowsort label-2661
SELECT ALL 45 DIV + - ( - + COALESCE ( ( - 98 ), - 15 ) ) + - 92
----
-92

skipif mysql # not compatible
query I rowsort label-2661
SELECT ALL 45 / + - ( - + COALESCE ( ( - 98 ), - 15 ) ) + - 92
----
-92

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2663
SELECT - 25 + + ( + 40 ) col2, + MIN( + 69 )
----
15
69

skipif mysql # not compatible
query II rowsort label-2663
SELECT - 25 + + ( + 40 ) col2, + MIN ( + 69 )
----
15
69

onlyif mysql # aggregate syntax: 
query II rowsort label-2664
SELECT DISTINCT + COALESCE ( - - 1, - COUNT( * ) ) col2, + 17 + + COALESCE ( + - 63, - 59 )
----
1
-46

skipif mysql # not compatible
query II rowsort label-2664
SELECT DISTINCT + COALESCE ( - - 1, - COUNT ( * ) ) col2, + 17 + + COALESCE ( + - 63, - 59 )
----
1
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-2665
SELECT DISTINCT COUNT( * ) * - NULLIF ( + 68, + 62 / 30 * - COALESCE ( - + COUNT( * ), 61 ) ) + - 79 + 92 AS col1
----
-55

skipif mysql # not compatible
query I rowsort label-2665
SELECT DISTINCT COUNT ( * ) * - NULLIF ( + 68, + 62 / 30 * - COALESCE ( - + COUNT ( * ), 61 ) ) + - 79 + 92 AS col1
----
-55

query I rowsort
SELECT DISTINCT - 21 * 5 * - COALESCE ( + - 44, + + 23 ) + + - 77 AS col2
----
-4697

query I rowsort
SELECT DISTINCT + 88 * - 75
----
-6600

query I rowsort
SELECT 97 * + 0 + + + CASE WHEN NULL IS NULL THEN - 68 END AS col1
----
-68

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

skipif mysql # not compatible
query I rowsort label-2669
SELECT - ( 39 ) * + - COUNT ( * ) / - 45
----
0

query I rowsort
SELECT + 71 * 46 AS col0
----
3266

query I rowsort
SELECT + 47 + + 58 AS col2
----
105

onlyif mysql # aggregate syntax: 
query I rowsort label-2672
SELECT - CASE + 71 WHEN - ( - 5 ) THEN 24 + + 32 ELSE COUNT( * ) + + 32 * - 9 - - COUNT( * ) + 97 + - 74 END + - - 81 + 0 * + - 54 AS col2
----
344

skipif mysql # not compatible
query I rowsort label-2672
SELECT - CASE + 71 WHEN - ( - 5 ) THEN 24 + + 32 ELSE COUNT ( * ) + + 32 * - 9 - - COUNT ( * ) + 97 + - 74 END + - - 81 + 0 * + - 54 AS col2
----
344

query I rowsort
SELECT - 35 * 26
----
-910

query I rowsort
SELECT + 41 * + 3 AS col2
----
123

onlyif mysql # DIV for integer division: 
query I rowsort label-2675
SELECT DISTINCT 9 DIV + 78 + + 36
----
36

skipif mysql # not compatible
query I rowsort label-2675
SELECT DISTINCT 9 / + 78 + + 36
----
36

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2677
SELECT - + 53 * - + COUNT( * ) + 91
----
144

skipif mysql # not compatible
query I rowsort label-2677
SELECT - + 53 * - + COUNT ( * ) + 91
----
144

query I rowsort
SELECT ALL 36 * - + 54 * - 16 AS col0
----
31104

onlyif mysql # DIV for integer division: 
query I rowsort label-2679
SELECT DISTINCT - 55 DIV - 90
----
0

skipif mysql # not compatible
query I rowsort label-2679
SELECT DISTINCT - 55 / - 90
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2680
SELECT 64 + + ( 91 ) + MIN( - 74 ) * - - COUNT( * ) * + 68
----
-4877

skipif mysql # not compatible
query I rowsort label-2680
SELECT 64 + + ( 91 ) + MIN ( - 74 ) * - - COUNT ( * ) * + 68
----
-4877

query I rowsort
SELECT - 19 + + 7 + - 35
----
-47

onlyif mysql # DIV for integer division: 
query I rowsort label-2682
SELECT 23 DIV + 57
----
0

skipif mysql # not compatible
query I rowsort label-2682
SELECT 23 / + 57
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2683
SELECT ( - MIN( - - 3 ) ) col0
----
-3

skipif mysql # not compatible
query I rowsort label-2683
SELECT ( - MIN ( - - 3 ) ) col0
----
-3

query I rowsort
SELECT ALL + 81 + + 54 * - ( - 5 ) AS col2
----
351

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2685
SELECT + COALESCE ( + + 87, + - ( - + CAST( NULL AS SIGNED ) ) ) + 54 col2
----
141

skipif mysql # not compatible
query I rowsort label-2685
SELECT + COALESCE ( + + 87, + - ( - + CAST ( NULL AS INTEGER ) ) ) + 54 col2
----
141

onlyif mysql # aggregate syntax: 
query I rowsort label-2686
SELECT DISTINCT - ( - 6 ) + + NULLIF ( + 64, 64 ) + + - 7 + + COUNT( * ) + 96 * + 47 * + ( + 37 ) * - 89 * - 2 * - 36
----
NULL

skipif mysql # not compatible
query I rowsort label-2686
SELECT DISTINCT - ( - 6 ) + + NULLIF ( + 64, 64 ) + + - 7 + + COUNT ( * ) + 96 * + 47 * + ( + 37 ) * - 89 * - 2 * - 36
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2687
SELECT ALL + 90 + + SUM( ALL - - 19 )
----
109

skipif mysql # not compatible
query I rowsort label-2687
SELECT ALL + 90 + + SUM ( ALL - - 19 )
----
109

query II rowsort
SELECT ALL 10 + - 53 - 10 AS col0, + 57 * - 76 AS col0
----
-53
-4332

onlyif mysql # aggregate syntax: 
query I rowsort label-2689
SELECT ALL 49 + MIN( DISTINCT 55 ) AS col0
----
104

skipif mysql # not compatible
query I rowsort label-2689
SELECT ALL 49 + MIN ( DISTINCT 55 ) AS col0
----
104

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2690
SELECT - 64 AS col2, COALESCE ( - 41, CASE + 97 WHEN - + 69 THEN - 73 END * + COUNT( * ), MAX( ALL - 69 ) ) * 2 DIV + 71 AS col0
----
-64
-1

skipif mysql # not compatible
query II rowsort label-2690
SELECT - 64 AS col2, COALESCE ( - 41, CASE + 97 WHEN - + 69 THEN - 73 END * + COUNT ( * ), MAX ( ALL - 69 ) ) * 2 / + 71 AS col0
----
-64
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2691
SELECT 92 + + 61 - + COUNT( * ) + 2 + - CAST( + + COALESCE ( + 20, + 38 / + 7 ) AS SIGNED )
----
134

skipif mysql # not compatible
query I rowsort label-2691
SELECT 92 + + 61 - + COUNT ( * ) + 2 + - CAST ( + + COALESCE ( + 20, + 38 / + 7 ) AS INTEGER )
----
134

query I rowsort
SELECT 63 * 7 AS col2
----
441

onlyif mysql # aggregate syntax: 
query I rowsort label-2693
SELECT ALL 14 + 35 + + 15 + + COUNT( * ) * 79 AS col1
----
143

skipif mysql # not compatible
query I rowsort label-2693
SELECT ALL 14 + 35 + + 15 + + COUNT ( * ) * 79 AS col1
----
143

query I rowsort
SELECT DISTINCT 72 + + - 27
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-2695
SELECT ALL - NULLIF ( - + 28, COALESCE ( COUNT( * ), - + 37 + + + 46 ) * - COUNT( * ) + 89 )
----
28

skipif mysql # not compatible
query I rowsort label-2695
SELECT ALL - NULLIF ( - + 28, COALESCE ( COUNT ( * ), - + 37 + + + 46 ) * - COUNT ( * ) + 89 )
----
28

query I rowsort
SELECT DISTINCT 48 + + 51
----
99

query I rowsort
SELECT DISTINCT 66 * 22
----
1452

query I rowsort
SELECT DISTINCT - 28 - - 18 * + 33 + - 65 * + - 24 AS col2
----
2126

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2699
SELECT ALL - CAST( - 49 AS SIGNED ) AS col1
----
49

skipif mysql # not compatible
query I rowsort label-2699
SELECT ALL - CAST ( - 49 AS INTEGER ) AS col1
----
49

query II rowsort
SELECT + 42 AS col2, + COALESCE ( - 45, ( - - 11 ) * + + 60, + 0 ) + - 72 AS col2
----
42
-117

onlyif mysql # aggregate syntax: 
query I rowsort label-2701
SELECT 14 + 10 * COUNT( * )
----
24

skipif mysql # not compatible
query I rowsort label-2701
SELECT 14 + 10 * COUNT ( * )
----
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2702
SELECT DISTINCT - COALESCE ( - 93, - - COALESCE ( + 70, + - 28 ), NULLIF ( + - NULLIF ( - 11, - COALESCE ( - 99, - - 58, 72 ) ), - CAST( - 64 AS SIGNED ) + - 14 + + 26 * - - 7 * + CASE 84 WHEN + 58 / - SUM( + 45 ) + 25 THEN + 9 END + + ( + - 68 ) ) ) - 84 AS col1
----
9

skipif mysql # not compatible
query I rowsort label-2702
SELECT DISTINCT - COALESCE ( - 93, - - COALESCE ( + 70, + - 28 ), NULLIF ( + - NULLIF ( - 11, - COALESCE ( - 99, - - 58, 72 ) ), - CAST ( - 64 AS INTEGER ) + - 14 + + 26 * - - 7 * + CASE 84 WHEN + 58 / - SUM ( + 45 ) + 25 THEN + 9 END + + ( + - 68 ) ) ) - 84 AS col1
----
9

query II rowsort
SELECT 14 AS col2, 48 + - 73
----
14
-25

query I rowsort
SELECT 7 * + ( - + 72 ) AS col2
----
-504

query I rowsort
SELECT ALL - 39 * CASE - 78 WHEN - 81 THEN - 19 END / + ( - 7 ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2706
SELECT - + 63 * - COUNT( * ) - - 63
----
126

skipif mysql # not compatible
query I rowsort label-2706
SELECT - + 63 * - COUNT ( * ) - - 63
----
126

query I rowsort
SELECT DISTINCT - 59 * 66 + - 81 * - 97 * - 45
----
-357459

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-2708
SELECT ALL - + COUNT( * ) AS col2, - CAST( NULL AS DECIMAL )
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-2708
SELECT ALL - + COUNT ( * ) AS col2, - CAST ( NULL AS REAL )
----
-1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2709
SELECT ALL - + 81 * CASE - 89 WHEN 83 * + COUNT( * ) * - 17 THEN - 81 + 10 * + - 49 WHEN + 29 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2709
SELECT ALL - + 81 * CASE - 89 WHEN 83 * + COUNT ( * ) * - 17 THEN - 81 + 10 * + - 49 WHEN + 29 THEN NULL END
----
NULL

query II rowsort
SELECT 64 AS col0, + 44 + - 15 AS col1
----
64
29

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

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

query I rowsort
SELECT + 61 * + - 65
----
-3965

onlyif mysql # aggregate syntax: 
query I rowsort label-2713
SELECT SUM( DISTINCT + 4 ) * - 21 - - SUM( ALL 63 ) col0
----
-21

skipif mysql # not compatible
query I rowsort label-2713
SELECT SUM ( DISTINCT + 4 ) * - 21 - - SUM ( ALL 63 ) col0
----
-21

query I rowsort
SELECT ALL + 90 + - + ( 15 )
----
75

query I rowsort
SELECT DISTINCT - - 39 + + 56
----
95

query I rowsort
SELECT ALL - ( 5 ) + - 0
----
-5

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2718
SELECT DISTINCT - - ( + 58 ) + - 40 + CAST( NULL AS SIGNED ) + ( - COUNT( * ) )
----
NULL

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

query I rowsort
SELECT - NULLIF ( + + 22, 94 )
----
-22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2720
SELECT ALL - CAST( + + 13 AS SIGNED ) + ( - - COUNT( * ) ) * - 96
----
-109

skipif mysql # not compatible
query I rowsort label-2720
SELECT ALL - CAST ( + + 13 AS INTEGER ) + ( - - COUNT ( * ) ) * - 96
----
-109

query I rowsort
SELECT 27 + - ( - 31 ) AS col2
----
58

query I rowsort
SELECT + ( - 75 ) + - CASE + ( + 21 ) WHEN - 4 THEN + + COALESCE ( + 20, + - 20 + - 36 + + 75, + + AVG ( ALL 81 ), + 16 ) END
----
NULL

query I rowsort
SELECT 17 * - 70 AS col2
----
-1190

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2724
SELECT ALL - 58 + - COUNT( * ) + + + CAST( + 9 AS SIGNED ) AS col0
----
-50

skipif mysql # not compatible
query I rowsort label-2724
SELECT ALL - 58 + - COUNT ( * ) + + + CAST ( + 9 AS INTEGER ) AS col0
----
-50

onlyif mysql # aggregate syntax: 
query II rowsort label-2725
SELECT - COUNT( - - 22 ), 89 col0
----
-1
89

skipif mysql # not compatible
query II rowsort label-2725
SELECT - COUNT ( - - 22 ), 89 col0
----
-1
89

query I rowsort
SELECT ALL - 14 * - - 51 AS col0
----
-714

query I rowsort
SELECT ALL 31 * - 53 * + + 73 * + COALESCE ( + 68, + 10 )
----
-8155852

query II rowsort
SELECT ALL 8 - + 5 AS col2, - 69 col0
----
3
-69

query II rowsort
SELECT DISTINCT 66 * - - 70 AS col0, + 47 * + - 40
----
4620
-1880

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2730
SELECT CAST( NULL AS SIGNED ) / - 70 + - 32
----
NULL

skipif mysql # not compatible
query I rowsort label-2730
SELECT CAST ( NULL AS INTEGER ) / - 70 + - 32
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2731
SELECT ALL + 50 * + + COALESCE ( + 59, COUNT( * ) * 16 * + 35 * - - SUM( DISTINCT + + 80 ), - - 52 * + 28 + ( - 17 ) * + - CASE - - 77 WHEN 93 * ( + CAST( NULL AS SIGNED ) ) * - + 87 + 61 - CAST( NULL AS SIGNED ) + + + COALESCE ( - + 12, + + 70 ) + + 1 * + 44 * 34 + + 73 THEN ( + 19 ) END ) - - 33
----
2983

skipif mysql # not compatible
query I rowsort label-2731
SELECT ALL + 50 * + + COALESCE ( + 59, COUNT ( * ) * 16 * + 35 * - - SUM ( DISTINCT + + 80 ), - - 52 * + 28 + ( - 17 ) * + - CASE - - 77 WHEN 93 * ( + CAST ( NULL AS INTEGER ) ) * - + 87 + 61 - CAST ( NULL AS INTEGER ) + + + COALESCE ( - + 12, + + 70 ) + + 1 * + 44 * 34 + + 73 THEN ( + 19 ) END ) - - 33
----
2983

query I rowsort
SELECT 98 * - 90
----
-8820

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2734
SELECT COUNT( * ) * + + 27 * - 17 + 97 AS col0
----
-362

skipif mysql # not compatible
query I rowsort label-2734
SELECT COUNT ( * ) * + + 27 * - 17 + 97 AS col0
----
-362

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2735
SELECT - 86 * CASE 23 WHEN - - SUM( - + ( - CAST( NULL AS SIGNED ) ) ) * + + 59 + - 0 * + 40 * - 67 THEN + COUNT( * ) ELSE 28 END + - + 56 - + COUNT( * )
----
-2465

skipif mysql # not compatible
query I rowsort label-2735
SELECT - 86 * CASE 23 WHEN - - SUM ( - + ( - CAST ( NULL AS INTEGER ) ) ) * + + 59 + - 0 * + 40 * - 67 THEN + COUNT ( * ) ELSE 28 END + - + 56 - + COUNT ( * )
----
-2465

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

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

query I rowsort
SELECT ALL - CASE 15 WHEN - 46 THEN + 69 * - 79 WHEN - + 71 THEN NULL END
----
NULL

query II rowsort
SELECT ALL 18 * 62 AS col1, 65 + 88 col1
----
1116
153

query I rowsort
SELECT 16 * - 7 + - 93 + - - 0 AS col2
----
-205

query I rowsort
SELECT ALL 11 * + 70
----
770

query I rowsort
SELECT ALL + + 9 col1
----
9

query I rowsort
SELECT + + 75 + 79
----
154

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2744
SELECT DISTINCT - NULLIF ( 49, - CAST( + 80 AS SIGNED ) ) + 29 - + 4 DIV - + 99 col1
----
-20

skipif mysql # not compatible
query I rowsort label-2744
SELECT DISTINCT - NULLIF ( 49, - CAST ( + 80 AS INTEGER ) ) + 29 - + 4 / - + 99 col1
----
-20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2745
SELECT ALL - 14 + - 10 + - + 36 * CAST( + 24 AS SIGNED ) AS col0
----
-888

skipif mysql # not compatible
query I rowsort label-2745
SELECT ALL - 14 + - 10 + - + 36 * CAST ( + 24 AS INTEGER ) AS col0
----
-888

onlyif mysql # aggregate syntax: 
query I rowsort label-2746
SELECT - - ( - - 50 ) + + ( - COUNT( * ) ) * - 8 + + 73
----
131

skipif mysql # not compatible
query I rowsort label-2746
SELECT - - ( - - 50 ) + + ( - COUNT ( * ) ) * - 8 + + 73
----
131

query I rowsort
SELECT ALL - 53 + - + 63 + + 84
----
-32

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

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

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

skipif mysql # not compatible
query I rowsort label-2749
SELECT - + NULLIF ( - COUNT ( * ), 18 )
----
1

query I rowsort
SELECT ALL + + ( - - 4 ) + - + 68 - - 72 * - 20
----
-1504

onlyif mysql # aggregate syntax: 
query I rowsort label-2751
SELECT - ( NULLIF ( 24, + ( + ( - MAX( - 95 ) ) ) * - - 75 + + 85 ) ) * 0
----
0

skipif mysql # not compatible
query I rowsort label-2751
SELECT - ( NULLIF ( 24, + ( + ( - MAX ( - 95 ) ) ) * - - 75 + + 85 ) ) * 0
----
0

query I rowsort
SELECT + 45 + - 96 + 77
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-2753
SELECT ALL CASE + 24 WHEN - COUNT( * ) THEN + 85 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2753
SELECT ALL CASE + 24 WHEN - COUNT ( * ) THEN + 85 END AS col1
----
NULL

query I rowsort
SELECT ALL NULLIF ( + - 52, + - 76 * + 51 ) AS col0
----
-52

query I rowsort
SELECT DISTINCT ( + NULLIF ( + 47, 38 ) ) AS col0
----
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2756
SELECT + CAST( + - 0 AS SIGNED ) * + - ( + 28 ) + + 27 + 30 AS col1
----
57

skipif mysql # not compatible
query I rowsort label-2756
SELECT + CAST ( + - 0 AS INTEGER ) * + - ( + 28 ) + + 27 + 30 AS col1
----
57

query II rowsort
SELECT - 26 AS col2, 52 + + 79 AS col1
----
-26
131

query I rowsort
SELECT + 72 * + 29 AS col1
----
2088

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

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

query I rowsort
SELECT + 24 + - 19
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-2761
SELECT ALL 48 * CASE 50 WHEN - + 81 - - NULLIF ( - COALESCE ( + + COUNT( + + 49 ), - 97 ), - - 92 ) - - 52 + - 94 THEN COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-2761
SELECT ALL 48 * CASE 50 WHEN - + 81 - - NULLIF ( - COALESCE ( + + COUNT ( + + 49 ), - 97 ), - - 92 ) - - 52 + - 94 THEN COUNT ( * ) END
----
NULL

query I rowsort
SELECT DISTINCT - 66 * - 47
----
3102

onlyif mysql # aggregate syntax: 
query I rowsort label-2763
SELECT DISTINCT - MAX( ALL 59 ) * 74 * + - 1 AS col2
----
4366

skipif mysql # not compatible
query I rowsort label-2763
SELECT DISTINCT - MAX ( ALL 59 ) * 74 * + - 1 AS col2
----
4366

onlyif mysql # aggregate syntax: 
query I rowsort label-2764
SELECT DISTINCT + MIN( ALL - 66 ) AS col0
----
-66

skipif mysql # not compatible
query I rowsort label-2764
SELECT DISTINCT + MIN ( ALL - 66 ) AS col0
----
-66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2765
SELECT DISTINCT - 3 * + COUNT( * ) + NULLIF ( + CAST( NULL AS SIGNED ), 76 * - 41 ) * + - 83
----
NULL

skipif mysql # not compatible
query I rowsort label-2765
SELECT DISTINCT - 3 * + COUNT ( * ) + NULLIF ( + CAST ( NULL AS INTEGER ), 76 * - 41 ) * + - 83
----
NULL

query I rowsort
SELECT + 16 * 79
----
1264

onlyif mysql # DIV for integer division: 
query II rowsort label-2767
SELECT + 75 AS col1, - 91 DIV - 93
----
75
0

skipif mysql # not compatible
query II rowsort label-2767
SELECT + 75 AS col1, - 91 / - 93
----
75
0

query II rowsort
SELECT ALL + 18 AS col0, 60
----
18
60

query I rowsort
SELECT ALL + - 24 * + + 25 + 53 + - - 17
----
-530

onlyif mysql # aggregate syntax: 
query I rowsort label-2770
SELECT ALL + 25 * 50 + + CASE - - 11 WHEN - 51 - - 89 - + COUNT( * ) + + + 74 THEN 19 END * - COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2770
SELECT ALL + 25 * 50 + + CASE - - 11 WHEN - 51 - - 89 - + COUNT ( * ) + + + 74 THEN 19 END * - COUNT ( * ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2771
SELECT DISTINCT - COUNT( * ) * + 11 + - CAST( - - MIN( ALL - 37 ) AS SIGNED ) * + COUNT( - 40 )
----
26

skipif mysql # not compatible
query I rowsort label-2771
SELECT DISTINCT - COUNT ( * ) * + 11 + - CAST ( - - MIN ( ALL - 37 ) AS INTEGER ) * + COUNT ( - 40 )
----
26

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2772
SELECT ALL + CASE 26 WHEN - + 99 THEN COUNT( * ) ELSE + + 20 * - 53 * + 63 + 46 * + 34 - - - MAX( ALL + 22 ) DIV - 74 END AS col0
----
-65216

skipif mysql # not compatible
query I rowsort label-2772
SELECT ALL + CASE 26 WHEN - + 99 THEN COUNT ( * ) ELSE + + 20 * - 53 * + 63 + 46 * + 34 - - - MAX ( ALL + 22 ) / - 74 END AS col0
----
-65216

query I rowsort
SELECT ALL + 96 * 85 + 9
----
8169

query I rowsort
SELECT + COALESCE ( + ( 8 ), 24 )
----
8

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2776
SELECT - 15 DIV + 20 * - NULLIF ( + + 42, + NULLIF ( + 24, - NULLIF ( - + COUNT( * ), 20 * + + ( 74 ) * + COUNT( * ) ) * + + 70 DIV - + 45 - 20 + + + COUNT( * ) ) ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2776
SELECT - 15 / + 20 * - NULLIF ( + + 42, + NULLIF ( + 24, - NULLIF ( - + COUNT ( * ), 20 * + + ( 74 ) * + COUNT ( * ) ) * + + 70 / - + 45 - 20 + + + COUNT ( * ) ) ) AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2777
SELECT DISTINCT + - 97 DIV 41 col2
----
-2

skipif mysql # not compatible
query I rowsort label-2777
SELECT DISTINCT + - 97 / 41 col2
----
-2

query II rowsort
SELECT ALL 28 AS col1, 12 + - - 47 AS col0
----
28
59

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

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

query I rowsort
SELECT DISTINCT CASE - 92 WHEN + - 57 THEN 22 + + 85 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2781
SELECT ALL NULLIF ( - MAX( - 32 ), 96 ) AS col0
----
32

skipif mysql # not compatible
query I rowsort label-2781
SELECT ALL NULLIF ( - MAX ( - 32 ), 96 ) AS col0
----
32

query I rowsort
SELECT - 55 * + - 96
----
5280

query I rowsort
SELECT - 72 - 87
----
-159

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2784
SELECT - CAST( NULL AS SIGNED ) + + 4 - - - COUNT( DISTINCT + 43 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2784
SELECT - CAST ( NULL AS INTEGER ) + + 4 - - - COUNT ( DISTINCT + 43 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2785
SELECT ALL CAST( CAST( NULL AS SIGNED ) AS SIGNED ), - 81 - + - 9 AS col1
----
NULL
-72

skipif mysql # not compatible
query II rowsort label-2785
SELECT ALL CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ), - 81 - + - 9 AS col1
----
NULL
-72

query I rowsort
SELECT - 12 + - 76
----
-88

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2787
SELECT ALL ( - 76 ) AS col0, ( + 78 ) * + 40 + - - 92 + - + 60 DIV - COUNT( * ) AS col1
----
-76
3272

skipif mysql # not compatible
query II rowsort label-2787
SELECT ALL ( - 76 ) AS col0, ( + 78 ) * + 40 + - - 92 + - + 60 / - COUNT ( * ) AS col1
----
-76
3272

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2788
SELECT DISTINCT - 70 + COUNT( * ) + 98 DIV 64 AS col0
----
-68

skipif mysql # not compatible
query I rowsort label-2788
SELECT DISTINCT - 70 + COUNT ( * ) + 98 / 64 AS col0
----
-68

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2790
SELECT COUNT( * ) DIV COALESCE ( - COUNT( * ), COUNT( * ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-2790
SELECT COUNT ( * ) / COALESCE ( - COUNT ( * ), COUNT ( * ) ) AS col2
----
-1

query I rowsort
SELECT ALL + 7 + - 19 col2
----
-12

onlyif mysql # DIV for integer division: 
query I rowsort label-2792
SELECT DISTINCT + 98 DIV - 98
----
-1

skipif mysql # not compatible
query I rowsort label-2792
SELECT DISTINCT + 98 / - 98
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2793
SELECT 53 * 34 * 86 DIV 81 + - - 53 AS col0, COUNT( * ) * + 57
----
1966
57

skipif mysql # not compatible
query II rowsort label-2793
SELECT 53 * 34 * 86 / 81 + - - 53 AS col0, COUNT ( * ) * + 57
----
1966
57

onlyif mysql # DIV for integer division: 
query I rowsort label-2794
SELECT 13 DIV - 67
----
0

skipif mysql # not compatible
query I rowsort label-2794
SELECT 13 / - 67
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2795
SELECT CASE + + 33 WHEN + - 62 - 10 THEN NULL ELSE + - COUNT( * ) * - 10 END * 89 AS col0
----
890

skipif mysql # not compatible
query I rowsort label-2795
SELECT CASE + + 33 WHEN + - 62 - 10 THEN NULL ELSE + - COUNT ( * ) * - 10 END * 89 AS col0
----
890

query I rowsort
SELECT ALL + 47 + + 72 * + 24 AS col1
----
1775

onlyif mysql # aggregate syntax: 
query I rowsort label-2797
SELECT ALL - NULLIF ( + 18, - + COUNT( * ) ) + + 21 + - 7 AS col2
----
-4

skipif mysql # not compatible
query I rowsort label-2797
SELECT ALL - NULLIF ( + 18, - + COUNT ( * ) ) + + 21 + - 7 AS col2
----
-4

query II rowsort
SELECT DISTINCT - + ( + 22 ) AS col0, + 36 AS col1
----
-22
36

query I rowsort
SELECT ALL + + 70 + + + ( + 20 ) - 85
----
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2800
SELECT DISTINCT - + SUM( - 69 ) col1, COUNT( * ) * + MIN( CAST( 96 AS SIGNED ) ) + + 18
----
69
114

skipif mysql # not compatible
query II rowsort label-2800
SELECT DISTINCT - + SUM ( - 69 ) col1, COUNT ( * ) * + MIN ( CAST ( 96 AS INTEGER ) ) + + 18
----
69
114

onlyif mysql # aggregate syntax: 
query I rowsort label-2801
SELECT ALL + 53 + + COUNT( * ) + ( - SUM( - 75 ) ) AS col0
----
129

skipif mysql # not compatible
query I rowsort label-2801
SELECT ALL + 53 + + COUNT ( * ) + ( - SUM ( - 75 ) ) AS col0
----
129

query I rowsort
SELECT - 7 * - 10
----
70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2803
SELECT - 87 * - 3 * - - 30 * 29 * + - 50 + - 46 + CAST( - COALESCE ( + 21, - - CAST( NULL AS SIGNED ) + 6, + - COUNT( * ) * 15 * 56 * + 20 * 55 - - 77 + - 5 + SUM( 64 ) * - 37 ) AS SIGNED ) - 19 AS col2, 40 DIV 44
----
-11353586
0

skipif mysql # not compatible
query II rowsort label-2803
SELECT - 87 * - 3 * - - 30 * 29 * + - 50 + - 46 + CAST ( - COALESCE ( + 21, - - CAST ( NULL AS INTEGER ) + 6, + - COUNT ( * ) * 15 * 56 * + 20 * 55 - - 77 + - 5 + SUM ( 64 ) * - 37 ) AS INTEGER ) - 19 AS col2, 40 / 44
----
-11353586
0

query I rowsort
SELECT + + 20 * + 78 - + + CASE - + 40 WHEN + 25 THEN + + ( 57 ) END / ( - 50 )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2805
SELECT DISTINCT - 20 - + MAX( + 54 ) * 55, - 14 AS col0
----
-2990
-14

skipif mysql # not compatible
query II rowsort label-2805
SELECT DISTINCT - 20 - + MAX ( + 54 ) * 55, - 14 AS col0
----
-2990
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-2806
SELECT - COUNT( * ) + - 83
----
-84

skipif mysql # not compatible
query I rowsort label-2806
SELECT - COUNT ( * ) + - 83
----
-84

query I rowsort
SELECT ALL - 71 * - - 23
----
-1633

onlyif mysql # aggregate syntax: 
query I rowsort label-2808
SELECT MIN( DISTINCT 54 ) + - COUNT( * ) * + - 78
----
132

skipif mysql # not compatible
query I rowsort label-2808
SELECT MIN ( DISTINCT 54 ) + - COUNT ( * ) * + - 78
----
132

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2809
SELECT DISTINCT - - COALESCE ( + CAST( + 73 AS SIGNED ), 69, MIN( DISTINCT 31 ) + 77 )
----
73

skipif mysql # not compatible
query I rowsort label-2809
SELECT DISTINCT - - COALESCE ( + CAST ( + 73 AS INTEGER ), 69, MIN ( DISTINCT 31 ) + 77 )
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-2810
SELECT - ( - COUNT( * ) ) * 80 + 56 AS col1
----
136

skipif mysql # not compatible
query I rowsort label-2810
SELECT - ( - COUNT ( * ) ) * 80 + 56 AS col1
----
136

query I rowsort
SELECT + 71 * 98 AS col1
----
6958

onlyif mysql # DIV for integer division: 
query I rowsort label-2812
SELECT ALL - 27 DIV 13 AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-2812
SELECT ALL - 27 / 13 AS col0
----
-2

query I rowsort
SELECT - 80 + + + 18
----
-62

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2815
SELECT DISTINCT 43 * - 17 * CAST( CASE + 57 WHEN 36 + - + COUNT( * ) THEN - CAST( NULL AS SIGNED ) - + - NULLIF ( - - 66, - + 64 + + 84 ) * + 13 WHEN 46 * + 91 * + ( - 78 ) * + CASE - 89 WHEN + - 33 * + 41 THEN - 5 WHEN + 46 THEN - MAX( DISTINCT + - 42 ) / + 4 WHEN 13 THEN NULL ELSE NULL END * ( + ( 26 ) ) + - 66 THEN + 44 * + 91 END AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2815
SELECT DISTINCT 43 * - 17 * CAST ( CASE + 57 WHEN 36 + - + COUNT ( * ) THEN - CAST ( NULL AS INTEGER ) - + - NULLIF ( - - 66, - + 64 + + 84 ) * + 13 WHEN 46 * + 91 * + ( - 78 ) * + CASE - 89 WHEN + - 33 * + 41 THEN - 5 WHEN + 46 THEN - MAX ( DISTINCT + - 42 ) / + 4 WHEN 13 THEN NULL ELSE NULL END * ( + ( 26 ) ) + - 66 THEN + 44 * + 91 END AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2816
SELECT 66 DIV 16 * - CASE + 76 WHEN + + 50 THEN CAST( + 35 AS SIGNED ) ELSE 1 END * 98
----
-392

skipif mysql # not compatible
query I rowsort label-2816
SELECT 66 / 16 * - CASE + 76 WHEN + + 50 THEN CAST ( + 35 AS INTEGER ) ELSE 1 END * 98
----
-392

query I rowsort
SELECT 2 * + - ( + ( + + 49 ) )
----
-98

query I rowsort
SELECT 8 + - + 65 * + 44 AS col0
----
-2852

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2820
SELECT 92 DIV - 73
----
-1

skipif mysql # not compatible
query I rowsort label-2820
SELECT 92 / - 73
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2821
SELECT ALL - 84 DIV + MAX( - 73 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2821
SELECT ALL - 84 / + MAX ( - 73 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-2822
SELECT ALL 82 AS col0, + MAX( ALL + 0 ) AS col2
----
82
0

skipif mysql # not compatible
query II rowsort label-2822
SELECT ALL 82 AS col0, + MAX ( ALL + 0 ) AS col2
----
82
0

query I rowsort
SELECT ALL 95 + 0 - - 57 + 19 * 96 col1
----
1976

query I rowsort
SELECT 26 * + + 40 AS col0
----
1040

query II rowsort
SELECT - 46, - 38 AS col2
----
-46
-38

query I rowsort
SELECT DISTINCT + 94 + 89
----
183

onlyif mysql # aggregate syntax: 
query I rowsort label-2827
SELECT 16 * - 94 * + + MIN( 33 )
----
-49632

skipif mysql # not compatible
query I rowsort label-2827
SELECT 16 * - 94 * + + MIN ( 33 )
----
-49632

onlyif mysql # aggregate syntax: 
query I rowsort label-2828
SELECT ALL + 21 + + COUNT( DISTINCT - NULLIF ( - + 31, - - 32 / - 53 ) ) + + ( 48 ) - - COUNT( * ) * 24 * COUNT( * ) col1
----
94

skipif mysql # not compatible
query I rowsort label-2828
SELECT ALL + 21 + + COUNT ( DISTINCT - NULLIF ( - + 31, - - 32 / - 53 ) ) + + ( 48 ) - - COUNT ( * ) * 24 * COUNT ( * ) col1
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-2829
SELECT DISTINCT - - MAX( + 51 ) * 95 + 26 + - 51 * COUNT( * ) AS col1
----
4820

skipif mysql # not compatible
query I rowsort label-2829
SELECT DISTINCT - - MAX ( + 51 ) * 95 + 26 + - 51 * COUNT ( * ) AS col1
----
4820

query I rowsort
SELECT 91 * + 75
----
6825

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2831
SELECT 21 * CAST( - + 64 AS SIGNED ) * 33 - CASE - 57 WHEN COUNT( * ) * + - 49 * 22 + 45 THEN NULL WHEN + 56 THEN 2 ELSE NULL END + - 19 + - - 74 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2831
SELECT 21 * CAST ( - + 64 AS INTEGER ) * 33 - CASE - 57 WHEN COUNT ( * ) * + - 49 * 22 + 45 THEN NULL WHEN + 56 THEN 2 ELSE NULL END + - 19 + - - 74 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2832
SELECT DISTINCT - + 30 + + - 26 * + CASE - 44 WHEN - - 16 THEN - 76 ELSE NULL END - COUNT( * ) + + CASE - 15 WHEN - - MAX( - + 13 ) + - 80 + + + MIN( ALL + - CAST( NULL AS SIGNED ) ) / 61 * COUNT( * ) THEN + + 57 WHEN + - CASE WHEN NULL < 26 THEN 46 * + ( 95 ) ELSE NULL END + - - 19 THEN - CAST( NULL AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-2832
SELECT DISTINCT - + 30 + + - 26 * + CASE - 44 WHEN - - 16 THEN - 76 ELSE NULL END - COUNT ( * ) + + CASE - 15 WHEN - - MAX ( - + 13 ) + - 80 + + + MIN ( ALL + - CAST ( NULL AS INTEGER ) ) / 61 * COUNT ( * ) THEN + + 57 WHEN + - CASE WHEN NULL < 26 THEN 46 * + ( 95 ) ELSE NULL END + - - 19 THEN - CAST ( NULL AS INTEGER ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2833
SELECT ALL + + 68 + + 82 * - SUM( - 19 ) + 71
----
1697

skipif mysql # not compatible
query I rowsort label-2833
SELECT ALL + + 68 + + 82 * - SUM ( - 19 ) + 71
----
1697

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

skipif mysql # not compatible
query I rowsort label-2834
SELECT + - MIN ( + CAST ( NULL AS INTEGER ) ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2835
SELECT DISTINCT - NULLIF ( + 85, + + COUNT( * ) * SUM( DISTINCT + 1 ) / - 70 + 73 + - 48 * - 69 * + ( - 42 ) ) - 74 + + 21
----
-138

skipif mysql # not compatible
query I rowsort label-2835
SELECT DISTINCT - NULLIF ( + 85, + + COUNT ( * ) * SUM ( DISTINCT + 1 ) / - 70 + 73 + - 48 * - 69 * + ( - 42 ) ) - 74 + + 21
----
-138

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2836
SELECT - 61 * + MIN( ALL + 0 ) AS col0, + CAST( NULL AS SIGNED ) * - 86 / - 64
----
0
NULL

skipif mysql # not compatible
query II rowsort label-2836
SELECT - 61 * + MIN ( ALL + 0 ) AS col0, + CAST ( NULL AS INTEGER ) * - 86 / - 64
----
0
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2837
SELECT ALL - + 55 DIV + + 99 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2837
SELECT ALL - + 55 / + + 99 AS col2
----
0

query II rowsort
SELECT + + 47, + 62 AS col1
----
47
62

onlyif mysql # DIV for integer division: 
query I rowsort label-2839
SELECT 91 + 91 DIV 3 - 90 AS col2
----
31

skipif mysql # not compatible
query I rowsort label-2839
SELECT 91 + 91 / 3 - 90 AS col2
----
31

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

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

query I rowsort
SELECT - 63 * - + ( + - 14 ) + - 73 + + 63
----
-892

query I rowsort
SELECT ALL - ( 46 ) - 86 AS col2
----
-132

query I rowsort
SELECT 40 * 93 AS col2
----
3720

onlyif mysql # aggregate syntax: 
query I rowsort label-2844
SELECT - SUM( ALL + 93 ) * 87 AS col0
----
-8091

skipif mysql # not compatible
query I rowsort label-2844
SELECT - SUM ( ALL + 93 ) * 87 AS col0
----
-8091

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2846
SELECT 74 AS col0, 29 * COUNT( * ) + + SUM( ALL + 92 ) AS col1
----
74
121

skipif mysql # not compatible
query II rowsort label-2846
SELECT 74 AS col0, 29 * COUNT ( * ) + + SUM ( ALL + 92 ) AS col1
----
74
121

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

query II rowsort
SELECT 82 * 86 AS col2, 44 AS col1
----
7052
44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2849
SELECT ALL 13 AS col0, ( + 30 ) * CAST( - - COUNT( * ) AS SIGNED ) * - + MIN( DISTINCT + 88 ) + + COUNT( * ) DIV - 8 AS col2
----
13
-2640

skipif mysql # not compatible
query II rowsort label-2849
SELECT ALL 13 AS col0, ( + 30 ) * CAST ( - - COUNT ( * ) AS INTEGER ) * - + MIN ( DISTINCT + 88 ) + + COUNT ( * ) / - 8 AS col2
----
13
-2640

onlyif mysql # aggregate syntax: 
query II rowsort label-2850
SELECT - CASE 42 WHEN + - 30 THEN + 76 ELSE NULL END, - COUNT( * ) col0
----
NULL
-1

skipif mysql # not compatible
query II rowsort label-2850
SELECT - CASE 42 WHEN + - 30 THEN + 76 ELSE NULL END, - COUNT ( * ) col0
----
NULL
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2851
SELECT + 20 * - - COUNT( - 26 ) - + COUNT( ALL 53 )
----
19

skipif mysql # not compatible
query I rowsort label-2851
SELECT + 20 * - - COUNT ( - 26 ) - + COUNT ( ALL 53 )
----
19

query I rowsort
SELECT ALL 25 * + + 43 AS col0
----
1075

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2853
SELECT ALL ( 42 ) + CAST( NULL AS SIGNED ) * - 98 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2853
SELECT ALL ( 42 ) + CAST ( NULL AS INTEGER ) * - 98 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2854
SELECT ALL MIN( - NULLIF ( 16, 30 + 47 / 66 ) ) + - 18 * - 35
----
614

skipif mysql # not compatible
query I rowsort label-2854
SELECT ALL MIN ( - NULLIF ( 16, 30 + 47 / 66 ) ) + - 18 * - 35
----
614

onlyif mysql # DIV for integer division: 
query I rowsort label-2855
SELECT + 65 DIV - COALESCE ( + 76, - ( 76 ), + 7 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2855
SELECT + 65 / - COALESCE ( + 76, - ( 76 ), + 7 ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2856
SELECT + MIN( ALL ( 19 ) ) + - + 81
----
-62

skipif mysql # not compatible
query I rowsort label-2856
SELECT + MIN ( ALL ( 19 ) ) + - + 81
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-2857
SELECT - NULLIF ( MIN( - ( - 11 ) ), + + 61 )
----
-11

skipif mysql # not compatible
query I rowsort label-2857
SELECT - NULLIF ( MIN ( - ( - 11 ) ), + + 61 )
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-2858
SELECT ALL 89 * + ( - - COUNT( * ) ) * + 14
----
1246

skipif mysql # not compatible
query I rowsort label-2858
SELECT ALL 89 * + ( - - COUNT ( * ) ) * + 14
----
1246

query I rowsort
SELECT ALL ( - - 50 ) + 44 AS col2
----
94

onlyif mysql # DIV for integer division: 
query I rowsort label-2860
SELECT + 53 + - - ( COALESCE ( - ( - 98 ), 14 DIV - 8 ) ) * 69 AS col0
----
6815

skipif mysql # not compatible
query I rowsort label-2860
SELECT + 53 + - - ( COALESCE ( - ( - 98 ), 14 / - 8 ) ) * 69 AS col0
----
6815

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

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

query II rowsort
SELECT 11, - 5 AS col0
----
11
-5

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

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

query I rowsort
SELECT - NULLIF ( - - 88, + 74 - + + 32 )
----
-88

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

skipif mysql # not compatible
query I rowsort label-2865
SELECT DISTINCT 46 - + - COUNT ( * ) AS col0
----
47

query II rowsort
SELECT 62 AS col1, 63
----
62
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2867
SELECT DISTINCT + COALESCE ( + COUNT( * ), - 79 * + 94 - - 9 DIV 9 * - MIN( ALL - - COALESCE ( - + 3, + 53 ) ) - + CAST( NULL AS SIGNED ) DIV 73 + 33 * + CASE WHEN + CAST( NULL AS SIGNED ) <= + 88 + MIN( + 6 ) * 67 THEN COUNT( DISTINCT - 9 ) + + 83 + - - 22 WHEN NOT COUNT( * ) + + 22 <= 46 THEN NULL ELSE NULL END + - COUNT( * ) * + 37, + - COUNT( * ) * - 2, 12 - 29 * - ( - 76 ) ) - 64 AS col2
----
-63

skipif mysql # not compatible
query I rowsort label-2867
SELECT DISTINCT + COALESCE ( + COUNT ( * ), - 79 * + 94 - - 9 / 9 * - MIN ( ALL - - COALESCE ( - + 3, + 53 ) ) - + CAST ( NULL AS INTEGER ) / 73 + 33 * + CASE WHEN + CAST ( NULL AS INTEGER ) <= + 88 + MIN ( + 6 ) * 67 THEN COUNT ( DISTINCT - 9 ) + + 83 + - - 22 WHEN NOT COUNT ( * ) + + 22 <= 46 THEN NULL ELSE NULL END + - COUNT ( * ) * + 37, + - COUNT ( * ) * - 2, 12 - 29 * - ( - 76 ) ) - 64 AS col2
----
-63

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2869
SELECT + - 55 DIV - 5 + + 4
----
15

skipif mysql # not compatible
query I rowsort label-2869
SELECT + - 55 / - 5 + + 4
----
15

query II rowsort
SELECT ( 27 ) col0, + 32 col2
----
27
32

onlyif mysql # aggregate syntax: 
query II rowsort label-2871
SELECT 68, - COUNT( + 66 ) AS col0
----
68
-1

skipif mysql # not compatible
query II rowsort label-2871
SELECT 68, - COUNT ( + 66 ) AS col0
----
68
-1

query I rowsort
SELECT DISTINCT + CASE + 37 WHEN - 79 THEN 27 ELSE NULL END
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-2874
SELECT + 23 AS col0, 87 DIV 44 AS col0
----
23
1

skipif mysql # not compatible
query II rowsort label-2874
SELECT + 23 AS col0, 87 / 44 AS col0
----
23
1

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

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

query I rowsort
SELECT DISTINCT - 43 * - 37 * 99 AS col1
----
157509

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2877
SELECT DISTINCT - + 77 DIV + + COUNT( * ) + + 61 AS col1
----
-16

skipif mysql # not compatible
query I rowsort label-2877
SELECT DISTINCT - + 77 / + + COUNT ( * ) + + 61 AS col1
----
-16

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

skipif mysql # not compatible
query I rowsort label-2878
SELECT DISTINCT - - COUNT ( * ) / SUM ( - + 30 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2879
SELECT ALL + + 45, + CASE - - MAX( + + CAST( + 6 AS SIGNED ) ) WHEN - - SUM( + 40 ) THEN + 99 + - + 26 END AS col2
----
45
NULL

skipif mysql # not compatible
query II rowsort label-2879
SELECT ALL + + 45, + CASE - - MAX ( + + CAST ( + 6 AS INTEGER ) ) WHEN - - SUM ( + 40 ) THEN + 99 + - + 26 END AS col2
----
45
NULL

query I rowsort
SELECT - + 13 + - 13 AS col0
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-2881
SELECT - 31 * - - COUNT( 12 ) - + COUNT( 96 ) + - COUNT( DISTINCT - 34 ) + + 92
----
59

skipif mysql # not compatible
query I rowsort label-2881
SELECT - 31 * - - COUNT ( 12 ) - + COUNT ( 96 ) + - COUNT ( DISTINCT - 34 ) + + 92
----
59

query I rowsort
SELECT ALL + 53 * + ( + ( 0 ) ) + - + 22 AS col0
----
-22

query I rowsort
SELECT + 26 * - + 28
----
-728

onlyif mysql # DIV for integer division: 
query I rowsort label-2884
SELECT DISTINCT 49 * 48 DIV - 52 AS col1
----
-45

skipif mysql # not compatible
query I rowsort label-2884
SELECT DISTINCT 49 * 48 / - 52 AS col1
----
-45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2885
SELECT ALL - CAST( NULL AS SIGNED ) * - 35 + + CAST( NULL AS SIGNED ) AS col0
----
NULL

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2887
SELECT DISTINCT CAST( CASE - - 43 WHEN 18 THEN + 62 ELSE NULL END AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2887
SELECT DISTINCT CAST ( CASE - - 43 WHEN 18 THEN + 62 ELSE NULL END AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT - 54 * + - 89
----
4806

onlyif mysql # aggregate syntax: 
query I rowsort label-2889
SELECT DISTINCT SUM( DISTINCT + 21 ) + 20
----
41

skipif mysql # not compatible
query I rowsort label-2889
SELECT DISTINCT SUM ( DISTINCT + 21 ) + 20
----
41

onlyif mysql # aggregate syntax: 
query II rowsort label-2890
SELECT ALL ( 90 ), COUNT( * ) AS col2
----
90
1

skipif mysql # not compatible
query II rowsort label-2890
SELECT ALL ( 90 ), COUNT ( * ) AS col2
----
90
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2891
SELECT + 23 * 50 DIV + 28 AS col2
----
41

skipif mysql # not compatible
query I rowsort label-2891
SELECT + 23 * 50 / + 28 AS col2
----
41

query II rowsort
SELECT DISTINCT 35 * + 80, - 61 + 55 * - - 66 + - 25 AS col1
----
2800
3544

query I rowsort
SELECT ALL 70 * 51 AS col1
----
3570

onlyif mysql # aggregate syntax: 
query I rowsort label-2894
SELECT ALL CASE - - ( + COUNT( * ) ) WHEN 54 * - 19 + - 16 THEN NULL ELSE - - 44 END - 61 AS col1
----
-17

skipif mysql # not compatible
query I rowsort label-2894
SELECT ALL CASE - - ( + COUNT ( * ) ) WHEN 54 * - 19 + - 16 THEN NULL ELSE - - 44 END - 61 AS col1
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-2895
SELECT ALL MAX( ALL + 13 ) AS col2
----
13

skipif mysql # not compatible
query I rowsort label-2895
SELECT ALL MAX ( ALL + 13 ) AS col2
----
13

query I rowsort
SELECT + - 5 * - 42
----
210

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2897
SELECT ALL 86 * + - COUNT( ALL 92 ) * COUNT( * ) + 37 * + 83 - + 42 + 11 DIV + - 59 + + - 89 AS col2, 22 AS col0
----
2854
22

skipif mysql # not compatible
query II rowsort label-2897
SELECT ALL 86 * + - COUNT ( ALL 92 ) * COUNT ( * ) + 37 * + 83 - + 42 + 11 / + - 59 + + - 89 AS col2, 22 AS col0
----
2854
22

query I rowsort
SELECT ALL ( 67 ) * + 67
----
4489

query I rowsort
SELECT ALL + 66 * - ( + + 26 ) AS col2
----
-1716

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

skipif mysql # not compatible
query I rowsort label-2900
SELECT COUNT ( DISTINCT + 98 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2901
SELECT + 52 + + + MAX( + 60 ) + + 53
----
165

skipif mysql # not compatible
query I rowsort label-2901
SELECT + 52 + + + MAX ( + 60 ) + + 53
----
165

query I rowsort
SELECT + 96 * + 23
----
2208

onlyif mysql # DIV for integer division: 
query I rowsort label-2903
SELECT + 10 DIV - 41 - 69
----
-69

skipif mysql # not compatible
query I rowsort label-2903
SELECT + 10 / - 41 - 69
----
-69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2904
SELECT + 79 * COALESCE ( + 78, + 19 ) + - MIN( ALL - - 13 ) - - CAST( NULL AS SIGNED ) - + 49 * + - 78 * + 34 - - 48
----
NULL

skipif mysql # not compatible
query I rowsort label-2904
SELECT + 79 * COALESCE ( + 78, + 19 ) + - MIN ( ALL - - 13 ) - - CAST ( NULL AS INTEGER ) - + 49 * + - 78 * + 34 - - 48
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2905
SELECT ALL + + MAX( + - ( + 24 ) ) col1
----
-24

skipif mysql # not compatible
query I rowsort label-2905
SELECT ALL + + MAX ( + - ( + 24 ) ) col1
----
-24

query I rowsort
SELECT + 99 * 13
----
1287

onlyif mysql # DIV for integer division: 
query I rowsort label-2907
SELECT DISTINCT + - ( - + 32 ) DIV + 22 + ( + - 56 ) + 25 AS col1
----
-30

skipif mysql # not compatible
query I rowsort label-2907
SELECT DISTINCT + - ( - + 32 ) / + 22 + ( + - 56 ) + 25 AS col1
----
-30

onlyif mysql # aggregate syntax: 
query II rowsort label-2908
SELECT ALL - 25 + + MIN( - + 66 ) AS col0, - 54 AS col2
----
-91
-54

skipif mysql # not compatible
query II rowsort label-2908
SELECT ALL - 25 + + MIN ( - + 66 ) AS col0, - 54 AS col2
----
-91
-54

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2910
SELECT ALL COUNT( ALL + 30 ) * + 80 * 63 AS col1
----
5040

skipif mysql # not compatible
query I rowsort label-2910
SELECT ALL COUNT ( ALL + 30 ) * + 80 * 63 AS col1
----
5040

onlyif mysql # DIV for integer division: 
query I rowsort label-2911
SELECT 17 DIV - 11 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-2911
SELECT 17 / - 11 AS col0
----
-1

query I rowsort
SELECT ALL + 52 + - 52 col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2913
SELECT 31 AS col2, SUM( DISTINCT + 25 ) + 81 - + + 64 AS col0
----
31
42

skipif mysql # not compatible
query II rowsort label-2913
SELECT 31 AS col2, SUM ( DISTINCT + 25 ) + 81 - + + 64 AS col0
----
31
42

onlyif mysql # aggregate syntax: 
query I rowsort label-2914
SELECT 52 * COUNT( DISTINCT 39 )
----
52

skipif mysql # not compatible
query I rowsort label-2914
SELECT 52 * COUNT ( DISTINCT 39 )
----
52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2915
SELECT ALL - MIN( DISTINCT - + ( + ( + 58 ) ) ) - - 16 + 73 + + + 98 + - 44 * CAST( NULL AS SIGNED ) * + - 7 - 60 + 16
----
NULL

skipif mysql # not compatible
query I rowsort label-2915
SELECT ALL - MIN ( DISTINCT - + ( + ( + 58 ) ) ) - - 16 + 73 + + + 98 + - 44 * CAST ( NULL AS INTEGER ) * + - 7 - 60 + 16
----
NULL

query I rowsort
SELECT DISTINCT + 35 * + 20 col2
----
700

query II rowsort
SELECT 17 AS col2, + 98 * 22
----
17
2156

onlyif mysql # DIV for integer division: 
query I rowsort label-2918
SELECT ALL + 62 DIV ( 30 )
----
2

skipif mysql # not compatible
query I rowsort label-2918
SELECT ALL + 62 / ( 30 )
----
2

query I rowsort
SELECT DISTINCT - NULLIF ( 20, + 67 ) - + 58 + - + 92
----
-170

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2920
SELECT ALL - 62 * + CASE CAST( 31 AS SIGNED ) WHEN 47 * + NULLIF ( - + 88, AVG ( ALL + - 23 ) ) / + + 19 - + - ( + - COUNT( * ) ) + - - 33 - + MIN( DISTINCT + - NULLIF ( - 72, + 69 ) ) * + 39 THEN NULLIF ( - 4, - 69 ) WHEN COUNT( + + NULLIF ( + - 85, + 5 ) ) THEN NULL WHEN + ( + - COUNT( * ) ) THEN NULL ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2920
SELECT ALL - 62 * + CASE CAST ( 31 AS INTEGER ) WHEN 47 * + NULLIF ( - + 88, AVG ( ALL + - 23 ) ) / + + 19 - + - ( + - COUNT ( * ) ) + - - 33 - + MIN ( DISTINCT + - NULLIF ( - 72, + 69 ) ) * + 39 THEN NULLIF ( - 4, - 69 ) WHEN COUNT ( + + NULLIF ( + - 85, + 5 ) ) THEN NULL WHEN + ( + - COUNT ( * ) ) THEN NULL ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT 42 - + 7 - - + ( + - 78 ) + 19 col2
----
-24

query I rowsort
SELECT ALL - 90 - - CASE 74 WHEN - + 43 THEN + 56 + - 17 + - 23 ELSE NULL END / - + AVG ( ALL + 45 )
----
NULL

query II rowsort
SELECT ALL 99, 71 AS col1
----
99
71

onlyif mysql # aggregate syntax: 
query II rowsort label-2924
SELECT - 0 col0, SUM( - ( 83 ) )
----
0
-83

skipif mysql # not compatible
query II rowsort label-2924
SELECT - 0 col0, SUM ( - ( 83 ) )
----
0
-83

onlyif mysql # aggregate syntax: 
query II rowsort label-2925
SELECT - 51 col2, - MAX( + 52 ) AS col0
----
-51
-52

skipif mysql # not compatible
query II rowsort label-2925
SELECT - 51 col2, - MAX ( + 52 ) AS col0
----
-51
-52

query I rowsort
SELECT - 58 + - - 60 + 14 + + - 73 * + 44 AS col2
----
-3196

query I rowsort
SELECT 66 - + 94
----
-28

query I rowsort
SELECT - 41 - - - 57
----
-98

query I rowsort
SELECT + 50 * - 72 AS col1
----
-3600

onlyif mysql # DIV for integer division: 
query I rowsort label-2930
SELECT DISTINCT + 87 DIV 90 col1
----
0

skipif mysql # not compatible
query I rowsort label-2930
SELECT DISTINCT + 87 / 90 col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2931
SELECT DISTINCT - 74 AS col0, CAST( NULL AS SIGNED ) AS col2
----
-74
NULL

skipif mysql # not compatible
query II rowsort label-2931
SELECT DISTINCT - 74 AS col0, CAST ( NULL AS INTEGER ) AS col2
----
-74
NULL

query I rowsort
SELECT ALL - 54 * + - 74
----
3996

onlyif mysql # aggregate syntax: 
query II rowsort label-2933
SELECT + COUNT( * ) + + + 1 * - + 28 col0, 44
----
-27
44

skipif mysql # not compatible
query II rowsort label-2933
SELECT + COUNT ( * ) + + + 1 * - + 28 col0, 44
----
-27
44

onlyif mysql # DIV for integer division: 
query I rowsort label-2934
SELECT ALL + 43 DIV + 23
----
1

skipif mysql # not compatible
query I rowsort label-2934
SELECT ALL + 43 / + 23
----
1

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

skipif mysql # not compatible
query I rowsort label-2935
SELECT DISTINCT + COUNT ( ALL + 46 ) AS col1
----
1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2937
SELECT ALL 0 + + + 32 + + + COUNT( * ) * - 37 col2
----
-5

skipif mysql # not compatible
query I rowsort label-2937
SELECT ALL 0 + + + 32 + + + COUNT ( * ) * - 37 col2
----
-5

query II rowsort
SELECT 71 col2, - 30
----
71
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-2939
SELECT ALL - COUNT( * ) + 85
----
84

skipif mysql # not compatible
query I rowsort label-2939
SELECT ALL - COUNT ( * ) + 85
----
84

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

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

query II rowsort
SELECT ALL - + 63, + 13 AS col0
----
-63
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2942
SELECT - - 37 DIV 52 + + 74 + + - CAST( - COUNT( - + 82 ) AS SIGNED )
----
75

skipif mysql # not compatible
query I rowsort label-2942
SELECT - - 37 / 52 + + 74 + + - CAST ( - COUNT ( - + 82 ) AS INTEGER )
----
75

query I rowsort
SELECT DISTINCT 20 + - 91 AS col1
----
-71

onlyif mysql # DIV for integer division: 
query I rowsort label-2944
SELECT ALL 79 DIV + 15 AS col1
----
5

skipif mysql # not compatible
query I rowsort label-2944
SELECT ALL 79 / + 15 AS col1
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-2945
SELECT DISTINCT - 20 + 33 + - 1 * + COUNT( * ) * + - ( 79 )
----
92

skipif mysql # not compatible
query I rowsort label-2945
SELECT DISTINCT - 20 + 33 + - 1 * + COUNT ( * ) * + - ( 79 )
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-2946
SELECT ALL + CASE 33 WHEN + 46 * - MAX( 46 ) THEN 65 + + 29 / - 0 END * ( + 6 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2946
SELECT ALL + CASE 33 WHEN + 46 * - MAX ( 46 ) THEN 65 + + 29 / - 0 END * ( + 6 ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2947
SELECT 7 + - MAX( ALL + NULLIF ( + 3, CAST( NULL AS SIGNED ) + - 29 ) ) - - + ( 65 ) + + - 57 * MAX( 51 )
----
-2838

skipif mysql # not compatible
query I rowsort label-2947
SELECT 7 + - MAX ( ALL + NULLIF ( + 3, CAST ( NULL AS INTEGER ) + - 29 ) ) - - + ( 65 ) + + - 57 * MAX ( 51 )
----
-2838

onlyif mysql # aggregate syntax: 
query II rowsort label-2948
SELECT ALL 66 - + COALESCE ( - - 87, + - COUNT( * ), 70 + + - 18 ) + - 35 AS col0, 46 * 70
----
-56
3220

skipif mysql # not compatible
query II rowsort label-2948
SELECT ALL 66 - + COALESCE ( - - 87, + - COUNT ( * ), 70 + + - 18 ) + - 35 AS col0, 46 * 70
----
-56
3220

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2949
SELECT ALL ( - 88 ) * + NULLIF ( 16, - 49 ) + + CAST( + 1 AS SIGNED ) AS col0
----
-1407

skipif mysql # not compatible
query I rowsort label-2949
SELECT ALL ( - 88 ) * + NULLIF ( 16, - 49 ) + + CAST ( + 1 AS INTEGER ) AS col0
----
-1407

query I rowsort
SELECT ( - - 86 ) * + 92 AS col1
----
7912

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2951
SELECT DISTINCT + NULLIF ( 54, - 0 * + 26 + + NULLIF ( + CASE + + 16 WHEN 15 THEN + 8 * + 44 + 92 + - 85 + - - COALESCE ( + CASE 26 WHEN 88 + 25 + ( + 37 ) * + 72 + - 57 THEN + + 40 ELSE MIN( ( ( - 0 ) ) ) * + 0 END, - 30 ) * 26 + + 41 * ( + 50 ) WHEN - 62 THEN NULL END, + + 94 + 91 DIV 15 ) + - 42 * 83 ) * ( + 19 DIV - 51 - + MAX( DISTINCT + 18 ) DIV - 71 ) col0
----
0

skipif mysql # not compatible
query I rowsort label-2951
SELECT DISTINCT + NULLIF ( 54, - 0 * + 26 + + NULLIF ( + CASE + + 16 WHEN 15 THEN + 8 * + 44 + 92 + - 85 + - - COALESCE ( + CASE 26 WHEN 88 + 25 + ( + 37 ) * + 72 + - 57 THEN + + 40 ELSE MIN ( ( ( - 0 ) ) ) * + 0 END, - 30 ) * 26 + + 41 * ( + 50 ) WHEN - 62 THEN NULL END, + + 94 + 91 / 15 ) + - 42 * 83 ) * ( + 19 / - 51 - + MAX ( DISTINCT + 18 ) / - 71 ) col0
----
0

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

skipif mysql # not compatible
query I rowsort label-2952
SELECT CAST ( NULL AS INTEGER ) * - - 6 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2953
SELECT ALL - COALESCE ( - 45, + 84, + 19 * - + CASE + 95 WHEN - - 6 * 80 THEN 68 WHEN + 17 THEN ( - COUNT( * ) ) END ) AS col2, NULLIF ( 64, + - 80 )
----
45
64

skipif mysql # not compatible
query II rowsort label-2953
SELECT ALL - COALESCE ( - 45, + 84, + 19 * - + CASE + 95 WHEN - - 6 * 80 THEN 68 WHEN + 17 THEN ( - COUNT ( * ) ) END ) AS col2, NULLIF ( 64, + - 80 )
----
45
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2954
SELECT - 7 * 16 + + COALESCE ( COUNT( * ), + CAST( NULL AS SIGNED ), - 39 ) + 21 * + - 11 AS col1
----
-342

skipif mysql # not compatible
query I rowsort label-2954
SELECT - 7 * 16 + + COALESCE ( COUNT ( * ), + CAST ( NULL AS INTEGER ), - 39 ) + 21 * + - 11 AS col1
----
-342

onlyif mysql # DIV for integer division: 
query I rowsort label-2955
SELECT ALL ( - 30 ) - + COALESCE ( + 54, + 18 ) DIV + 79
----
-30

skipif mysql # not compatible
query I rowsort label-2955
SELECT ALL ( - 30 ) - + COALESCE ( + 54, + 18 ) / + 79
----
-30

query I rowsort
SELECT 52 + 10
----
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2957
SELECT CAST( NULL AS SIGNED ) * COALESCE ( + - NULLIF ( - + 64, 48 ), - SUM( DISTINCT 80 ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2957
SELECT CAST ( NULL AS INTEGER ) * COALESCE ( + - NULLIF ( - + 64, 48 ), - SUM ( DISTINCT 80 ) ) AS col2
----
NULL

query I rowsort
SELECT 61 * + + 13 * 69
----
54717

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2959
SELECT 67 + + 3 * + + 93 * + - COUNT( * ) AS col1, + 65 DIV - 37 AS col0
----
-212
-1

skipif mysql # not compatible
query II rowsort label-2959
SELECT 67 + + 3 * + + 93 * + - COUNT ( * ) AS col1, + 65 / - 37 AS col0
----
-212
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2960
SELECT DISTINCT - 13 / CAST( NULL AS SIGNED ) * - + 24
----
NULL

skipif mysql # not compatible
query I rowsort label-2960
SELECT DISTINCT - 13 / CAST ( NULL AS INTEGER ) * - + 24
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2961
SELECT ALL - CAST( NULL AS SIGNED ) / + 78, + CAST( NULL AS SIGNED )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-2961
SELECT ALL - CAST ( NULL AS INTEGER ) / + 78, + CAST ( NULL AS INTEGER )
----
NULL
NULL

query I rowsort
SELECT + 56 * + 74 * 19
----
78736

onlyif mysql # aggregate syntax: 
query II rowsort label-2963
SELECT DISTINCT - 16 * + - 99, - ( - 13 ) + + COUNT( * ) * + - 63 AS col0
----
1584
-50

skipif mysql # not compatible
query II rowsort label-2963
SELECT DISTINCT - 16 * + - 99, - ( - 13 ) + + COUNT ( * ) * + - 63 AS col0
----
1584
-50

query I rowsort
SELECT ALL - - 46 + - - 45
----
91

query I rowsort
SELECT 60 * + - 50 AS col1
----
-3000

query I rowsort
SELECT DISTINCT + 14 * + + 7
----
98

onlyif mysql # aggregate syntax: 
query II rowsort label-2967
SELECT DISTINCT - 56 + - 46 AS col1, NULLIF ( + 3, + 51 ) + COUNT( * ) AS col2
----
-102
4

skipif mysql # not compatible
query II rowsort label-2967
SELECT DISTINCT - 56 + - 46 AS col1, NULLIF ( + 3, + 51 ) + COUNT ( * ) AS col2
----
-102
4

onlyif mysql # aggregate syntax: 
query I rowsort label-2968
SELECT - - SUM( - 33 ) AS col2
----
-33

skipif mysql # not compatible
query I rowsort label-2968
SELECT - - SUM ( - 33 ) AS col2
----
-33

query I rowsort
SELECT - CASE - 23 WHEN + 84 + + ( 89 ) THEN NULL WHEN - - 36 THEN - - 38 END - + 95 + + 32 + - 53 + 79 * 76 * - ( + - 21 ) + - + ( - - 18 ) * + 25 / 71
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2970
SELECT ALL CAST( - - COALESCE ( - - 56, - 19 ) AS SIGNED )
----
56

skipif mysql # not compatible
query I rowsort label-2970
SELECT ALL CAST ( - - COALESCE ( - - 56, - 19 ) AS INTEGER )
----
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2971
SELECT - CASE + - CASE - - 29 WHEN + MAX( - 15 ) * ( - SUM( DISTINCT - - 51 ) ) + - 80 * + - NULLIF ( - 50, + 70 ) + 57 THEN 40 * - + CASE 11 WHEN 83 THEN + - 63 - + 88 - + 34 / + - CAST( NULL AS SIGNED ) / - 42 * 53 WHEN SUM( - 28 ) THEN NULL END * + - COUNT( * ) ELSE NULL END WHEN - 98 THEN - 25 + + COALESCE ( + 83, 40 + 53 + + + 10 + 21 * + SUM( DISTINCT 87 ) * + 86, - 27 ) WHEN COUNT( * ) + CAST( + 51 AS SIGNED ) THEN + COUNT( * ) ELSE 86 END
----
-86

skipif mysql # not compatible
query I rowsort label-2971
SELECT - CASE + - CASE - - 29 WHEN + MAX ( - 15 ) * ( - SUM ( DISTINCT - - 51 ) ) + - 80 * + - NULLIF ( - 50, + 70 ) + 57 THEN 40 * - + CASE 11 WHEN 83 THEN + - 63 - + 88 - + 34 / + - CAST ( NULL AS INTEGER ) / - 42 * 53 WHEN SUM ( - 28 ) THEN NULL END * + - COUNT ( * ) ELSE NULL END WHEN - 98 THEN - 25 + + COALESCE ( + 83, 40 + 53 + + + 10 + 21 * + SUM ( DISTINCT 87 ) * + 86, - 27 ) WHEN COUNT ( * ) + CAST ( + 51 AS INTEGER ) THEN + COUNT ( * ) ELSE 86 END
----
-86

query I rowsort
SELECT 60 + - 1 AS col2
----
59

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2974
SELECT ALL + COALESCE ( AVG ( + 38 ), - COUNT( * ) ) * - CAST( NULL AS SIGNED ) * + CAST( - ( - 67 ) AS SIGNED ) + 91 - - ( 49 ) * - 58 AS col2, COUNT( * )
----
NULL
1

skipif mysql # not compatible
query II rowsort label-2974
SELECT ALL + COALESCE ( AVG ( + 38 ), - COUNT ( * ) ) * - CAST ( NULL AS INTEGER ) * + CAST ( - ( - 67 ) AS INTEGER ) + 91 - - ( 49 ) * - 58 AS col2, COUNT ( * )
----
NULL
1

query I rowsort
SELECT - + 76 * + - 23 * 58
----
101384

onlyif mysql # DIV for integer division: 
query I rowsort label-2976
SELECT 1 DIV - + 15 - + + 13 AS col0
----
-13

skipif mysql # not compatible
query I rowsort label-2976
SELECT 1 / - + 15 - + + 13 AS col0
----
-13

onlyif mysql # aggregate syntax: 
query II rowsort label-2977
SELECT ALL + COUNT( * ) * COUNT( * ) + - 62 + + 69 AS col2, + 18
----
8
18

skipif mysql # not compatible
query II rowsort label-2977
SELECT ALL + COUNT ( * ) * COUNT ( * ) + - 62 + + 69 AS col2, + 18
----
8
18

onlyif mysql # DIV for integer division: 
query I rowsort label-2978
SELECT - 78 DIV - 67 col1
----
1

skipif mysql # not compatible
query I rowsort label-2978
SELECT - 78 / - 67 col1
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-2979
SELECT CASE - 62 WHEN 47 THEN NULL WHEN - 86 * ( + 63 ) + - 81 * - + COUNT( 78 ) THEN - 96 ELSE - - 30 END AS col2, - 8 + - 1
----
30
-9

skipif mysql # not compatible
query II rowsort label-2979
SELECT CASE - 62 WHEN 47 THEN NULL WHEN - 86 * ( + 63 ) + - 81 * - + COUNT ( 78 ) THEN - 96 ELSE - - 30 END AS col2, - 8 + - 1
----
30
-9

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2980
SELECT + 60 + - COUNT( - 67 ) AS col1, + MIN( - + 10 ) DIV + - ( + 37 )
----
59
0

skipif mysql # not compatible
query II rowsort label-2980
SELECT + 60 + - COUNT ( - 67 ) AS col1, + MIN ( - + 10 ) / + - ( + 37 )
----
59
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2981
SELECT DISTINCT + 28 * - 50 - + CAST( NULL AS SIGNED ), 97 AS col1
----
NULL
97

skipif mysql # not compatible
query II rowsort label-2981
SELECT DISTINCT + 28 * - 50 - + CAST ( NULL AS INTEGER ), 97 AS col1
----
NULL
97

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2983
SELECT 62 * + - COUNT( * ) + - + ( COUNT( * ) ) * + 21
----
-83

skipif mysql # not compatible
query I rowsort label-2983
SELECT 62 * + - COUNT ( * ) + - + ( COUNT ( * ) ) * + 21
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-2984
SELECT DISTINCT 84 * + 9 - - 13 + + COUNT( * ) * 38 + COUNT( * ) * + 29
----
836

skipif mysql # not compatible
query I rowsort label-2984
SELECT DISTINCT 84 * + 9 - - 13 + + COUNT ( * ) * 38 + COUNT ( * ) * + 29
----
836

onlyif mysql # aggregate syntax: 
query I rowsort label-2985
SELECT MAX( - 63 ) AS col0
----
-63

skipif mysql # not compatible
query I rowsort label-2985
SELECT MAX ( - 63 ) AS col0
----
-63

onlyif mysql # DIV for integer division: 
query I rowsort label-2986
SELECT DISTINCT 12 DIV + - 57 * - 17 * + 53 * - - NULLIF ( - 21, - - NULLIF ( + - ( + + 29 ), - 21 DIV - 47 * - 66 + - - 97 ) ) * - 7
----
0

skipif mysql # not compatible
query I rowsort label-2986
SELECT DISTINCT 12 / + - 57 * - 17 * + 53 * - - NULLIF ( - 21, - - NULLIF ( + - ( + + 29 ), - 21 / - 47 * - 66 + - - 97 ) ) * - 7
----
0

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

skipif mysql # not compatible
query I rowsort label-2987
SELECT DISTINCT COUNT ( * ) / - 55
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2988
SELECT MAX( 23 ) AS col2
----
23

skipif mysql # not compatible
query I rowsort label-2988
SELECT MAX ( 23 ) AS col2
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-2989
SELECT - SUM( ALL 87 ) * 95 + 49
----
-8216

skipif mysql # not compatible
query I rowsort label-2989
SELECT - SUM ( ALL 87 ) * 95 + 49
----
-8216

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

skipif mysql # not compatible
query I rowsort label-2990
SELECT COUNT ( ALL + 97 ) AS col2
----
1

query I rowsort
SELECT ALL 53 * 67 col0
----
3551

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2992
SELECT - COALESCE ( 55, + - CAST( NULL AS SIGNED ) * + - MAX( 96 ) ) AS col0
----
-55

skipif mysql # not compatible
query I rowsort label-2992
SELECT - COALESCE ( 55, + - CAST ( NULL AS INTEGER ) * + - MAX ( 96 ) ) AS col0
----
-55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2993
SELECT + + 98 * 92 * + - CASE COUNT( ALL + CAST( NULL AS SIGNED ) ) WHEN 50 THEN 11 - 24 + + + 24 - - - 97 * 37 + + 62 END / - + 35
----
NULL

skipif mysql # not compatible
query I rowsort label-2993
SELECT + + 98 * 92 * + - CASE COUNT ( ALL + CAST ( NULL AS INTEGER ) ) WHEN 50 THEN 11 - 24 + + + 24 - - - 97 * 37 + + 62 END / - + 35
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-2994
SELECT ALL - - CAST( + - COALESCE ( - - COALESCE ( + 12, + 68 ), - + 18 + + - 46, - ( - 45 ) + 21 ) AS SIGNED ) + 21, + CAST( NULL AS DECIMAL ) * + 40 AS col0
----
9
NULL

skipif mysql # not compatible
query II rowsort label-2994
SELECT ALL - - CAST ( + - COALESCE ( - - COALESCE ( + 12, + 68 ), - + 18 + + - 46, - ( - 45 ) + 21 ) AS INTEGER ) + 21, + CAST ( NULL AS REAL ) * + 40 AS col0
----
9
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2995
SELECT + CAST( + COUNT( * ) AS SIGNED ) - + 98 AS col2
----
-97

skipif mysql # not compatible
query I rowsort label-2995
SELECT + CAST ( + COUNT ( * ) AS INTEGER ) - + 98 AS col2
----
-97

query I rowsort
SELECT + 76 - - ( - 8 ) AS col2
----
68

onlyif mysql # aggregate syntax: 
query III rowsort label-2997
SELECT ALL - COUNT( * ), - COUNT( DISTINCT - + 34 ) AS col0, - - 0 AS col2
----
-1
-1
0

skipif mysql # not compatible
query III rowsort label-2997
SELECT ALL - COUNT ( * ), - COUNT ( DISTINCT - + 34 ) AS col0, - - 0 AS col2
----
-1
-1
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2998
SELECT ALL - - 19 + - 86 + - + 91 * - 17 * CAST( NULL AS SIGNED ) AS col2, + 4 - - 86 + - COUNT( * ) DIV SUM( ALL + - ( - 49 ) ) + + + 24 + + - 49
----
NULL
65

skipif mysql # not compatible
query II rowsort label-2998
SELECT ALL - - 19 + - 86 + - + 91 * - 17 * CAST ( NULL AS INTEGER ) AS col2, + 4 - - 86 + - COUNT ( * ) / SUM ( ALL + - ( - 49 ) ) + + + 24 + + - 49
----
NULL
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2999
SELECT - CAST( + COUNT( * ) AS SIGNED ) * 14 * + 59 AS col1
----
-826

skipif mysql # not compatible
query I rowsort label-2999
SELECT - CAST ( + COUNT ( * ) AS INTEGER ) * 14 * + 59 AS col1
----
-826

query II rowsort
SELECT ALL - 27 + ( - + 89 ), - 26 + ( + 1 ) AS col2
----
-116
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-3001
SELECT ALL + CASE + + COUNT( * ) WHEN + 4 * - 65 * - COUNT( * ) * 94 - - 43 THEN ( + 70 ) END + MIN( + 89 ) + + - 30 * + - MAX( 90 ) + - + COUNT( * ) + - - 14 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3001
SELECT ALL + CASE + + COUNT ( * ) WHEN + 4 * - 65 * - COUNT ( * ) * 94 - - 43 THEN ( + 70 ) END + MIN ( + 89 ) + + - 30 * + - MAX ( 90 ) + - + COUNT ( * ) + - - 14 AS col2
----
NULL

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

query I rowsort
SELECT - - 66 - + 43 AS col2
----
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3004
SELECT + + 97 + - COUNT( * ) + + - CASE - COUNT( * ) WHEN - 40 THEN + + CASE + 29 WHEN + 5 * - - 42 - - 97 * - COUNT( * ) THEN + 61 / 94 + - 2 + + 38 WHEN + 1 * - - 38 + - - 63 THEN NULL ELSE NULL END + + + 59 WHEN 45 THEN + 19 * + 69 * - - CAST( 82 AS SIGNED ) + + - 70 - - MIN( ALL + CAST( NULL AS SIGNED ) ) END / + 11 * - 0 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3004
SELECT + + 97 + - COUNT ( * ) + + - CASE - COUNT ( * ) WHEN - 40 THEN + + CASE + 29 WHEN + 5 * - - 42 - - 97 * - COUNT ( * ) THEN + 61 / 94 + - 2 + + 38 WHEN + 1 * - - 38 + - - 63 THEN NULL ELSE NULL END + + + 59 WHEN 45 THEN + 19 * + 69 * - - CAST ( 82 AS INTEGER ) + + - 70 - - MIN ( ALL + CAST ( NULL AS INTEGER ) ) END / + 11 * - 0 AS col2
----
NULL

query I rowsort
SELECT - + 91 - + 49
----
-140

query II rowsort
SELECT - 4, - 85 col0
----
-4
-85

query I rowsort
SELECT - 6 + - 50 AS col1
----
-56

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

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

query I rowsort
SELECT ALL - - NULLIF ( 51, - + 29 ) - ( - - 59 ) AS col1
----
-8

query II rowsort
SELECT - + ( - ( - - 31 ) ) AS col0, - 96 + + 82
----
31
-14

onlyif mysql # DIV for integer division: 
query I rowsort label-3011
SELECT + + 0 DIV - 67 + + 7 AS col1
----
7

skipif mysql # not compatible
query I rowsort label-3011
SELECT + + 0 / - 67 + + 7 AS col1
----
7

query I rowsort
SELECT - 37 * - ( - - 47 ) AS col2
----
1739

query I rowsort
SELECT - 43 * - 15 AS col0
----
645

query I rowsort
SELECT - 55 + - + ( 43 ) + 89 AS col1
----
-9

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

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

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

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

query I rowsort
SELECT DISTINCT 36 * + 94 AS col0
----
3384

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3019
SELECT ALL 71 * 42 AS col0, COUNT( * )
----
2982
1

skipif mysql # not compatible
query II rowsort label-3019
SELECT ALL 71 * 42 AS col0, COUNT ( * )
----
2982
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3020
SELECT ALL - CAST( NULL AS SIGNED ) / - 34
----
NULL

skipif mysql # not compatible
query I rowsort label-3020
SELECT ALL - CAST ( NULL AS INTEGER ) / - 34
----
NULL

query II rowsort
SELECT ALL + ( - 26 ) AS col1, 24 AS col0
----
-26
24

query I rowsort
SELECT - 99 * + 20 + + 22 * - 59 - - + 80 + + - 77 * + 96
----
-10590

query I rowsort
SELECT + ( 45 ) * + + 8 * - 76 - 42 AS col1
----
-27402

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3024
SELECT DISTINCT + CAST( NULL AS SIGNED ), - 49 * - 89 AS col1
----
NULL
4361

skipif mysql # not compatible
query II rowsort label-3024
SELECT DISTINCT + CAST ( NULL AS INTEGER ), - 49 * - 89 AS col1
----
NULL
4361

onlyif mysql # aggregate syntax: 
query I rowsort label-3025
SELECT ALL - 4 * - ( 84 ) * CASE - + COUNT( * ) WHEN - - COUNT( ALL 18 ) * + ( + ( 50 ) ) * - + 6 - - ( + SUM( - 30 ) ) THEN + 99 + - 39 * COUNT( DISTINCT - ( 10 ) ) * - 6 + + 58 * + 80 - + 62 END * - 60 - + - ( - 32 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3025
SELECT ALL - 4 * - ( 84 ) * CASE - + COUNT ( * ) WHEN - - COUNT ( ALL 18 ) * + ( + ( 50 ) ) * - + 6 - - ( + SUM ( - 30 ) ) THEN + 99 + - 39 * COUNT ( DISTINCT - ( 10 ) ) * - 6 + + 58 * + 80 - + 62 END * - 60 - + - ( - 32 ) AS col0
----
NULL

query I rowsort
SELECT - 41 + - 72
----
-113

onlyif mysql # aggregate syntax: 
query II rowsort label-3027
SELECT ( - - COUNT( * ) ) AS col1, + 47 * - + 28
----
1
-1316

skipif mysql # not compatible
query II rowsort label-3027
SELECT ( - - COUNT ( * ) ) AS col1, + 47 * - + 28
----
1
-1316

onlyif mysql # aggregate syntax: 
query II rowsort label-3028
SELECT ALL + 16, COUNT( * ) col2
----
16
1

skipif mysql # not compatible
query II rowsort label-3028
SELECT ALL + 16, COUNT ( * ) col2
----
16
1

query I rowsort
SELECT DISTINCT ( - 84 ) * + 54 * + - 6 + - - 74 AS col1
----
27290

query I rowsort
SELECT ALL 36 * + - 40 + - + 59 AS col0
----
-1499

onlyif mysql # aggregate syntax: 
query I rowsort label-3031
SELECT DISTINCT + SUM( + - 34 ) * - + 35 AS col1
----
1190

skipif mysql # not compatible
query I rowsort label-3031
SELECT DISTINCT + SUM ( + - 34 ) * - + 35 AS col1
----
1190

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3032
SELECT ALL 42 * COALESCE ( + 44, + + 4 + 15, - 83 + - 1 * - - ( + 68 ) - - + NULLIF ( - + ( + 8 ), - CAST( NULL AS SIGNED ) ) ) + 13 + 85 * SUM( + - 31 ) AS col2
----
-774

skipif mysql # not compatible
query I rowsort label-3032
SELECT ALL 42 * COALESCE ( + 44, + + 4 + 15, - 83 + - 1 * - - ( + 68 ) - - + NULLIF ( - + ( + 8 ), - CAST ( NULL AS INTEGER ) ) ) + 13 + 85 * SUM ( + - 31 ) AS col2
----
-774

onlyif mysql # aggregate syntax: 
query II rowsort label-3033
SELECT + 54 * + + COUNT( * ) * + 63 * + 82 + - 12 + - - 27, COUNT( * ) AS col1
----
278979
1

skipif mysql # not compatible
query II rowsort label-3033
SELECT + 54 * + + COUNT ( * ) * + 63 * + 82 + - 12 + - - 27, COUNT ( * ) AS col1
----
278979
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3034
SELECT DISTINCT 12 * 9 + COUNT( * ) + + 77
----
186

skipif mysql # not compatible
query I rowsort label-3034
SELECT DISTINCT 12 * 9 + COUNT ( * ) + + 77
----
186

query II rowsort
SELECT ALL - 67 * - - 78 + + NULLIF ( + 77, - 21 ) * - 93, 2 + + + 46 + 1 * 79 AS col1
----
-12387
127

onlyif mysql # aggregate syntax: 
query I rowsort label-3036
SELECT + + SUM( DISTINCT - + 64 ) + - - 55 AS col0
----
-9

skipif mysql # not compatible
query I rowsort label-3036
SELECT + + SUM ( DISTINCT - + 64 ) + - - 55 AS col0
----
-9

query I rowsort
SELECT - + 50 * - 8 + + 26
----
426

query II rowsort
SELECT + 87 AS col1, 11
----
87
11

onlyif mysql # aggregate syntax: 
query II rowsort label-3039
SELECT - COUNT( * ) col2, 42 + + 7 * - ( 22 ) * - + 25 + 49
----
-1
3941

skipif mysql # not compatible
query II rowsort label-3039
SELECT - COUNT ( * ) col2, 42 + + 7 * - ( 22 ) * - + 25 + 49
----
-1
3941

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

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

query I rowsort
SELECT + 97 + 71 * - 39 AS col1
----
-2672

onlyif mysql # aggregate syntax: 
query I rowsort label-3042
SELECT + ( ( + + 53 ) ) + 32 + - MIN( - - 51 )
----
34

skipif mysql # not compatible
query I rowsort label-3042
SELECT + ( ( + + 53 ) ) + 32 + - MIN ( - - 51 )
----
34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3043
SELECT DISTINCT + + 9 * - 18 + + + SUM( DISTINCT - - ( 3 ) ) * 33 DIV + NULLIF ( COUNT( * ), - 3 * + 69 + + 69 ) + 61
----
-2

skipif mysql # not compatible
query I rowsort label-3043
SELECT DISTINCT + + 9 * - 18 + + + SUM ( DISTINCT - - ( 3 ) ) * 33 / + NULLIF ( COUNT ( * ), - 3 * + 69 + + 69 ) + 61
----
-2

query I rowsort
SELECT ALL 93 + - 35
----
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3045
SELECT COUNT( * ) * - + 20 + + 9 DIV + 60
----
-20

skipif mysql # not compatible
query I rowsort label-3045
SELECT COUNT ( * ) * - + 20 + + 9 / + 60
----
-20

query I rowsort
SELECT ALL + 4 * + + 97 * + 60
----
23280

query I rowsort
SELECT ALL 7 - + 67 * + 48 col0
----
-3209

query II rowsort
SELECT - + 46 AS col1, 87 AS col2
----
-46
87

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

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

query I rowsort
SELECT - 65 * + + 2 AS col1
----
-130

query I rowsort
SELECT 18 - 81 AS col1
----
-63

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3052
SELECT DISTINCT + CAST( NULL AS DECIMAL ) / ( + 63 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3052
SELECT DISTINCT + CAST ( NULL AS REAL ) / ( + 63 )
----
NULL

query I rowsort
SELECT ALL + 7 - - + 21
----
28

onlyif mysql # DIV for integer division: 
query I rowsort label-3054
SELECT NULLIF ( 46, - + 13 ) DIV - + 56
----
0

skipif mysql # not compatible
query I rowsort label-3054
SELECT NULLIF ( 46, - + 13 ) / - + 56
----
0

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

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

query I rowsort
SELECT DISTINCT + 89 * - 62 AS col0
----
-5518

onlyif mysql # aggregate syntax: 
query I rowsort label-3057
SELECT - 58 / SUM( DISTINCT - CASE 62 WHEN + - COALESCE ( - - 69, - 73 ) THEN + 16 WHEN ( - + 18 ) THEN NULL END ) - + + 72 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3057
SELECT - 58 / SUM ( DISTINCT - CASE 62 WHEN + - COALESCE ( - - 69, - 73 ) THEN + 16 WHEN ( - + 18 ) THEN NULL END ) - + + 72 col0
----
NULL

query I rowsort
SELECT 52 * - + 45 AS col1
----
-2340

query I rowsort
SELECT DISTINCT + 90 * - 93 AS col0
----
-8370

onlyif mysql # DIV for integer division: 
query I rowsort label-3060
SELECT - 95 DIV + 74 + - + 7
----
-8

skipif mysql # not compatible
query I rowsort label-3060
SELECT - 95 / + 74 + - + 7
----
-8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3061
SELECT DISTINCT - 18 + + 49 / - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3061
SELECT DISTINCT - 18 + + 49 / - - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 45 * 57 - - 99 + - 49 col0
----
2615

query I rowsort
SELECT 36 * - 19 + - ( - 30 )
----
-654

query I rowsort
SELECT ALL - 0 + 29
----
29

query I rowsort
SELECT ALL + 73 + - - 20 * + 87
----
1813

onlyif mysql # aggregate syntax: 
query I rowsort label-3066
SELECT ALL - SUM( 15 ) + - - 72 AS col0
----
57

skipif mysql # not compatible
query I rowsort label-3066
SELECT ALL - SUM ( 15 ) + - - 72 AS col0
----
57

query I rowsort
SELECT 77 * - - 2
----
154

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3068
SELECT 99 - - - 96 - 52 DIV - 35 + 54 + COUNT( * ) AS col2
----
59

skipif mysql # not compatible
query I rowsort label-3068
SELECT 99 - - - 96 - 52 / - 35 + 54 + COUNT ( * ) AS col2
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-3069
SELECT 46 + COUNT( * ) - + - 6 AS col2
----
53

skipif mysql # not compatible
query I rowsort label-3069
SELECT 46 + COUNT ( * ) - + - 6 AS col2
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-3070
SELECT COUNT( ALL 65 ) * 67 * 79 * 52
----
275236

skipif mysql # not compatible
query I rowsort label-3070
SELECT COUNT ( ALL 65 ) * 67 * 79 * 52
----
275236

query I rowsort
SELECT ALL + 94 * + 62 + + + 20
----
5848

query I rowsort
SELECT 30 * - 20 * - CASE + 64 WHEN + 24 THEN + ( - 16 ) END - - + 8 + + 18 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3073
SELECT + CASE + - 47 WHEN + - 0 THEN + COUNT( ALL - + 68 ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3073
SELECT + CASE + - 47 WHEN + - 0 THEN + COUNT ( ALL - + 68 ) END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3074
SELECT - COUNT( - - CAST( - 73 AS SIGNED ) )
----
-1

skipif mysql # not compatible
query I rowsort label-3074
SELECT - COUNT ( - - CAST ( - 73 AS INTEGER ) )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3075
SELECT ALL - 44 - + ( + - COUNT( DISTINCT - - 98 ) )
----
-43

skipif mysql # not compatible
query I rowsort label-3075
SELECT ALL - 44 - + ( + - COUNT ( DISTINCT - - 98 ) )
----
-43

query I rowsort
SELECT 69 * - 22 AS col0
----
-1518

onlyif mysql # aggregate syntax: 
query I rowsort label-3077
SELECT ALL + 33 * MIN( 16 ) AS col2
----
528

skipif mysql # not compatible
query I rowsort label-3077
SELECT ALL + 33 * MIN ( 16 ) AS col2
----
528

onlyif mysql # aggregate syntax: 
query I rowsort label-3078
SELECT ALL - 75 * - COUNT( * ) * - 97 * 14
----
-101850

skipif mysql # not compatible
query I rowsort label-3078
SELECT ALL - 75 * - COUNT ( * ) * - 97 * 14
----
-101850

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

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

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

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

query I rowsort
SELECT 38 * + - 66 AS col0
----
-2508

query II rowsort
SELECT - 41 + - 56 col1, + 77 AS col2
----
-97
77

query I rowsort
SELECT - COALESCE ( - 99, + - 24 * + 96, 30 ) col0
----
99

query I rowsort
SELECT DISTINCT - 26 * - 63 + + 73
----
1711

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3085
SELECT ALL MIN( ALL CAST( - + 51 AS SIGNED ) ) * + + 14 + 90
----
-624

skipif mysql # not compatible
query I rowsort label-3085
SELECT ALL MIN ( ALL CAST ( - + 51 AS INTEGER ) ) * + + 14 + 90
----
-624

query II rowsort
SELECT NULLIF ( - 87, + 54 * + 16 * 19 ) * + - 77, - 23 AS col2
----
6699
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-3087
SELECT DISTINCT NULLIF ( COALESCE ( 5, - 76 ), + 89 ) * + MAX( DISTINCT - + 31 )
----
-155

skipif mysql # not compatible
query I rowsort label-3087
SELECT DISTINCT NULLIF ( COALESCE ( 5, - 76 ), + 89 ) * + MAX ( DISTINCT - + 31 )
----
-155

onlyif mysql # aggregate syntax: 
query II rowsort label-3088
SELECT ALL 13 col2, - 26 - + COUNT( * ) AS col2
----
13
-27

skipif mysql # not compatible
query II rowsort label-3088
SELECT ALL 13 col2, - 26 - + COUNT ( * ) AS col2
----
13
-27

query II rowsort
SELECT 85, + 63 AS col2
----
85
63

query I rowsort
SELECT DISTINCT 84 * + 79 + - 78
----
6558

query I rowsort
SELECT ALL 90 * 39 + + - 92 + + + 47 AS col0
----
3465

query II rowsort
SELECT ALL 59 * + 83 + + 47 * - 75 AS col2, - 79 AS col2
----
1372
-79

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

query I rowsort
SELECT 77 + + 40
----
117

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3095
SELECT 86 + 90 + - 91 * CAST( 2 AS SIGNED )
----
-6

skipif mysql # not compatible
query I rowsort label-3095
SELECT 86 + 90 + - 91 * CAST ( 2 AS INTEGER )
----
-6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3096
SELECT CASE CAST( - + COALESCE ( + 41, + 20, + 37, + 10 ) AS DECIMAL ) WHEN + 48 * CASE - 53 WHEN - 75 * 54 + + + 39 THEN NULL ELSE COALESCE ( - 43, - - MIN( 13 ) ) END THEN + 31 ELSE + CASE + + 96 WHEN + + ( + 30 ) * + 65 THEN NULL WHEN - 87 * CAST( + - 52 AS DECIMAL ) * + 44 THEN + + 18 ELSE NULL END * + COUNT( * ) * + 93 * - SUM( DISTINCT 38 ) * - 20 END * 25 + NULLIF ( CAST( NULL AS SIGNED ), 44 * 29 * - 59 ) * + 10 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3096
SELECT CASE CAST ( - + COALESCE ( + 41, + 20, + 37, + 10 ) AS REAL ) WHEN + 48 * CASE - 53 WHEN - 75 * 54 + + + 39 THEN NULL ELSE COALESCE ( - 43, - - MIN ( 13 ) ) END THEN + 31 ELSE + CASE + + 96 WHEN + + ( + 30 ) * + 65 THEN NULL WHEN - 87 * CAST ( + - 52 AS REAL ) * + 44 THEN + + 18 ELSE NULL END * + COUNT ( * ) * + 93 * - SUM ( DISTINCT 38 ) * - 20 END * 25 + NULLIF ( CAST ( NULL AS INTEGER ), 44 * 29 * - 59 ) * + 10 AS col1
----
NULL

query I rowsort
SELECT 60 * + 40
----
2400

onlyif mysql # aggregate syntax: 
query I rowsort label-3098
SELECT 34 / - ( - 23 ) + CASE 59 WHEN + 23 THEN + 2 * ( ( + COUNT( * ) ) ) + - + 52 END - + - 36 * + COALESCE ( - 38, + NULLIF ( 18, - + 36 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3098
SELECT 34 / - ( - 23 ) + CASE 59 WHEN + 23 THEN + 2 * ( ( + COUNT ( * ) ) ) + - + 52 END - + - 36 * + COALESCE ( - 38, + NULLIF ( 18, - + 36 ) )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3099
SELECT COUNT( * ) * + + 51 - + 5 + COUNT( * ) * 67 + 66 DIV + + 8
----
121

skipif mysql # not compatible
query I rowsort label-3099
SELECT COUNT ( * ) * + + 51 - + 5 + COUNT ( * ) * 67 + 66 / + + 8
----
121

query I rowsort
SELECT ALL + 48 - + - 46
----
94

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3101
SELECT + NULLIF ( 95, - 80 * - CAST( NULL AS DECIMAL ) + COUNT( * ) )
----
95

skipif mysql # not compatible
query I rowsort label-3101
SELECT + NULLIF ( 95, - 80 * - CAST ( NULL AS REAL ) + COUNT ( * ) )
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-3102
SELECT ALL - + CASE + - 19 WHEN - 24 + 70 - + 67 * + 98 * + 50 THEN + COUNT( * ) END - - 13 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3102
SELECT ALL - + CASE + - 19 WHEN - 24 + 70 - + 67 * + 98 * + 50 THEN + COUNT ( * ) END - - 13 AS col2
----
NULL

query II rowsort
SELECT DISTINCT + - 71 AS col1, - 55 * - 16
----
-71
880

onlyif mysql # aggregate syntax: 
query I rowsort label-3104
SELECT DISTINCT + ( - COUNT( * ) ) * + 71 * CASE + 79 WHEN - COUNT( * ) THEN + 47 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3104
SELECT DISTINCT + ( - COUNT ( * ) ) * + 71 * CASE + 79 WHEN - COUNT ( * ) THEN + 47 ELSE NULL END AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3105
SELECT - 59 + ( 19 ) AS col1, CAST( - - 15 AS SIGNED )
----
-40
15

skipif mysql # not compatible
query II rowsort label-3105
SELECT - 59 + ( 19 ) AS col1, CAST ( - - 15 AS INTEGER )
----
-40
15

onlyif mysql # aggregate syntax: 
query I rowsort label-3106
SELECT ALL - + 3 - + 14 * SUM( DISTINCT - 30 ) AS col0
----
417

skipif mysql # not compatible
query I rowsort label-3106
SELECT ALL - + 3 - + 14 * SUM ( DISTINCT - 30 ) AS col0
----
417

query I rowsort
SELECT - 72 + 85 + - 46
----
-33

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-3108
SELECT - COUNT( * ) DIV 17 * - 10 * + COUNT( * ) * - + CASE - 92 WHEN - COUNT( * ) THEN + 93 - ( - 36 ) + MAX( - + 57 ) ELSE - NULLIF ( + + 74, CAST( NULL AS DECIMAL ) ) END
----
0

skipif mysql # not compatible
query I rowsort label-3108
SELECT - COUNT ( * ) / 17 * - 10 * + COUNT ( * ) * - + CASE - 92 WHEN - COUNT ( * ) THEN + 93 - ( - 36 ) + MAX ( - + 57 ) ELSE - NULLIF ( + + 74, CAST ( NULL AS REAL ) ) END
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3109
SELECT - + 27 * + - CASE + 13 WHEN 1 THEN - ( - + 98 ) * + - 83 + ( 99 ) WHEN + 9 THEN + ( + + COUNT( * ) ) * 61 - + 2 END AS col2, 98 AS col2
----
NULL
98

skipif mysql # not compatible
query II rowsort label-3109
SELECT - + 27 * + - CASE + 13 WHEN 1 THEN - ( - + 98 ) * + - 83 + ( 99 ) WHEN + 9 THEN + ( + + COUNT ( * ) ) * 61 - + 2 END AS col2, 98 AS col2
----
NULL
98

query I rowsort
SELECT DISTINCT + + 90 * - - ( + 0 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3111
SELECT + + 77 + + - COUNT( * ) AS col2
----
76

skipif mysql # not compatible
query I rowsort label-3111
SELECT + + 77 + + - COUNT ( * ) AS col2
----
76

query I rowsort
SELECT ALL + - COALESCE ( + - 5, - 80 * 14 ) * ( - 29 ) + - + 8 AS col0
----
-153

query I rowsort
SELECT + 17 * + 16 AS col0
----
272

query I rowsort
SELECT ALL + + 48 * + 24 AS col0
----
1152

query II rowsort
SELECT DISTINCT + - 86 * + + 4 * 24 AS col1, 57
----
-8256
57

onlyif mysql # DIV for integer division: 
query I rowsort label-3116
SELECT ALL 96 DIV - 31
----
-3

skipif mysql # not compatible
query I rowsort label-3116
SELECT ALL 96 / - 31
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-3117
SELECT DISTINCT 13 DIV + - 28
----
0

skipif mysql # not compatible
query I rowsort label-3117
SELECT DISTINCT 13 / + - 28
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3118
SELECT DISTINCT COALESCE ( + - MAX( DISTINCT - ( - 56 ) ), 14 ) AS col1
----
-56

skipif mysql # not compatible
query I rowsort label-3118
SELECT DISTINCT COALESCE ( + - MAX ( DISTINCT - ( - 56 ) ), 14 ) AS col1
----
-56

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

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

query I rowsort
SELECT - 48 - - 27 col1
----
-21

query I rowsort
SELECT - 25 - + + 12 + - - NULLIF ( - 62, - 32 ) * - 1 * - 96
----
-5989

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3123
SELECT + NULLIF ( + 42, 1 * + - COUNT( * ) ) + + 77 * - - 15
----
1197

skipif mysql # not compatible
query I rowsort label-3123
SELECT + NULLIF ( + 42, 1 * + - COUNT ( * ) ) + + 77 * - - 15
----
1197

onlyif mysql # aggregate syntax: 
query I rowsort label-3124
SELECT DISTINCT 54 + + MIN( ALL - 19 )
----
35

skipif mysql # not compatible
query I rowsort label-3124
SELECT DISTINCT 54 + + MIN ( ALL - 19 )
----
35

query I rowsort
SELECT + 24 + 99
----
123

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3127
SELECT + NULLIF ( + 61, - 77 - 51 ) * 29 * + ( + 72 ) * - - 25 + + 94 + + NULLIF ( - 76, - NULLIF ( + 13, - 53 * - 43 * MIN( + 25 ) ) ) AS col1, 58 AS col2
----
3184218
58

skipif mysql # not compatible
query II rowsort label-3127
SELECT + NULLIF ( + 61, - 77 - 51 ) * 29 * + ( + 72 ) * - - 25 + + 94 + + NULLIF ( - 76, - NULLIF ( + 13, - 53 * - 43 * MIN ( + 25 ) ) ) AS col1, 58 AS col2
----
3184218
58

onlyif mysql # DIV for integer division: 
query I rowsort label-3128
SELECT DISTINCT 49 DIV - 88 + + ( 65 ) + 22 AS col2
----
87

skipif mysql # not compatible
query I rowsort label-3128
SELECT DISTINCT 49 / - 88 + + ( 65 ) + 22 AS col2
----
87

query I rowsort
SELECT + COALESCE ( - 76, - - 68 * - 41 - + - 2, - ( - 61 ) ) AS col2
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-3130
SELECT + ( - MAX( ( + - 44 ) ) ) - 30 + - MIN( ALL 96 )
----
-82

skipif mysql # not compatible
query I rowsort label-3130
SELECT + ( - MAX ( ( + - 44 ) ) ) - 30 + - MIN ( ALL 96 )
----
-82

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3132
SELECT DISTINCT 35 * + COUNT( * ) DIV 74 - - CAST( + COUNT( * ) AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-3132
SELECT DISTINCT 35 * + COUNT ( * ) / 74 - - CAST ( + COUNT ( * ) AS INTEGER )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-3133
SELECT + 48 DIV 56 + 28
----
28

skipif mysql # not compatible
query I rowsort label-3133
SELECT + 48 / 56 + 28
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-3134
SELECT ALL 43 * - - ( - 88 ) - + ( + CASE + AVG ( + 63 ) WHEN - - 98 * 4 THEN - COALESCE ( + 2, + MAX( - + 43 ) ) * ( 22 ) ELSE - 29 END ) - + - ( 66 )
----
-3689

skipif mysql # not compatible
query I rowsort label-3134
SELECT ALL 43 * - - ( - 88 ) - + ( + CASE + AVG ( + 63 ) WHEN - - 98 * 4 THEN - COALESCE ( + 2, + MAX ( - + 43 ) ) * ( 22 ) ELSE - 29 END ) - + - ( 66 )
----
-3689

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3135
SELECT - CASE 43 WHEN + - 0 THEN + - 4 * MAX( 91 ) * + - 79 + - CAST( - - 94 AS SIGNED ) * 89 - - 24 * 74 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3135
SELECT - CASE 43 WHEN + - 0 THEN + - 4 * MAX ( 91 ) * + - 79 + - CAST ( - - 94 AS INTEGER ) * 89 - - 24 * 74 END AS col2
----
NULL

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

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

query I rowsort
SELECT + - 38 * + 2 AS col0
----
-76

query I rowsort
SELECT ALL - - 68 * + COALESCE ( - 89, 11, - ( + + 76 ) ) col1
----
-6052

onlyif mysql # aggregate syntax: 
query I rowsort label-3139
SELECT + - SUM( DISTINCT ( - - 62 ) ) + + MAX( DISTINCT 5 )
----
-57

skipif mysql # not compatible
query I rowsort label-3139
SELECT + - SUM ( DISTINCT ( - - 62 ) ) + + MAX ( DISTINCT 5 )
----
-57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3140
SELECT + + 86 + 26 + COUNT( * ) * + 91 * - + CAST( - - 62 AS SIGNED ) * - 33 AS col2
----
186298

skipif mysql # not compatible
query I rowsort label-3140
SELECT + + 86 + 26 + COUNT ( * ) * + 91 * - + CAST ( - - 62 AS INTEGER ) * - 33 AS col2
----
186298

query I rowsort
SELECT ALL 6 * + ( 60 ) - + 17 AS col1
----
343

onlyif mysql # aggregate syntax: 
query I rowsort label-3142
SELECT - 59 - + 17 * - MAX( 75 )
----
1216

skipif mysql # not compatible
query I rowsort label-3142
SELECT - 59 - + 17 * - MAX ( 75 )
----
1216

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3143
SELECT ALL 12 * - COUNT( * ) + 88 DIV + + MAX( DISTINCT 13 ) + 55 AS col2
----
49

skipif mysql # not compatible
query I rowsort label-3143
SELECT ALL 12 * - COUNT ( * ) + 88 / + + MAX ( DISTINCT 13 ) + 55 AS col2
----
49

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3145
SELECT DISTINCT - CAST( NULL AS SIGNED ) + - 52 * - COUNT( * ) * - 66
----
NULL

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3147
SELECT - 25 + ( + COUNT( * ) ) * - 43 col2
----
-68

skipif mysql # not compatible
query I rowsort label-3147
SELECT - 25 + ( + COUNT ( * ) ) * - 43 col2
----
-68

query I rowsort
SELECT - 31 - - 83 AS col1
----
52

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

skipif mysql # not compatible
query I rowsort label-3149
SELECT - COUNT ( * ) + - - ( + 51 ) / + 61
----
-1

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

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

query I rowsort
SELECT DISTINCT - 59 * + - 87
----
5133

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3152
SELECT ALL - CAST( - COUNT( * ) AS SIGNED ) + + 51 AS col2
----
52

skipif mysql # not compatible
query I rowsort label-3152
SELECT ALL - CAST ( - COUNT ( * ) AS INTEGER ) + + 51 AS col2
----
52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3153
SELECT - 95 * 45 DIV - SUM( 62 ) * - 1 + 42 AS col1
----
-26

skipif mysql # not compatible
query I rowsort label-3153
SELECT - 95 * 45 / - SUM ( 62 ) * - 1 + 42 AS col1
----
-26

query I rowsort
SELECT ALL + 86 + - - 36 AS col2
----
122

query I rowsort
SELECT ALL + 14 * - 83 * + - 80 AS col2
----
92960

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

skipif mysql # not compatible
query I rowsort label-3156
SELECT DISTINCT 41 / COUNT ( * ) col1
----
41

onlyif mysql # DIV for integer division: 
query I rowsort label-3157
SELECT ALL 59 DIV - 73 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3157
SELECT ALL 59 / - 73 AS col2
----
0

query I rowsort
SELECT - ( + - 36 ) + + - 80
----
-44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3159
SELECT - COUNT( * ) DIV + CAST( 79 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-3159
SELECT - COUNT ( * ) / + CAST ( 79 AS INTEGER )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3160
SELECT + 17 DIV + 48 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3160
SELECT + 17 / + 48 AS col0
----
0

query I rowsort
SELECT 76 + 83
----
159

onlyif mysql # aggregate syntax: 
query I rowsort label-3162
SELECT + 7 * COALESCE ( - ( ( + + 16 ) ), 74 ) + + + SUM( ALL - 4 )
----
-116

skipif mysql # not compatible
query I rowsort label-3162
SELECT + 7 * COALESCE ( - ( ( + + 16 ) ), 74 ) + + + SUM ( ALL - 4 )
----
-116

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3164
SELECT DISTINCT 6 * + CAST( - 49 AS SIGNED ) - 29 col1
----
-323

skipif mysql # not compatible
query I rowsort label-3164
SELECT DISTINCT 6 * + CAST ( - 49 AS INTEGER ) - 29 col1
----
-323

query II rowsort
SELECT DISTINCT - + 28 AS col1, - 7
----
-28
-7

query II rowsort
SELECT - 44 * + 29 + + - 15, + 8 AS col1
----
-1291
8

onlyif mysql # aggregate syntax: 
query I rowsort label-3167
SELECT - 21 * + COUNT( * ) * - - 94 col1
----
-1974

skipif mysql # not compatible
query I rowsort label-3167
SELECT - 21 * + COUNT ( * ) * - - 94 col1
----
-1974

query I rowsort
SELECT ALL 90 + 44 * 3 col0
----
222

query I rowsort
SELECT ALL ( - + 80 ) + - 35 AS col0
----
-115

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3170
SELECT - AVG ( DISTINCT 69 ) * - CAST( NULL AS SIGNED ) + + - CAST( NULL AS SIGNED ) + + - 9 AS col0, MAX( ALL + 48 ) * + - 36 col1
----
NULL
-1728

skipif mysql # not compatible
query II rowsort label-3170
SELECT - AVG ( DISTINCT 69 ) * - CAST ( NULL AS INTEGER ) + + - CAST ( NULL AS INTEGER ) + + - 9 AS col0, MAX ( ALL + 48 ) * + - 36 col1
----
NULL
-1728

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3171
SELECT ALL 17 DIV + MAX( DISTINCT 35 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3171
SELECT ALL 17 / + MAX ( DISTINCT 35 ) AS col2
----
0

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

skipif mysql # not compatible
query I rowsort label-3172
SELECT COUNT ( * ) / MIN ( DISTINCT + - 19 )
----
0

query I rowsort
SELECT 71 + 86 + + ( 44 ) * + - 70
----
-2923

query I rowsort
SELECT 45 * CASE + 71 WHEN + 11 THEN - + 78 END AS col1
----
NULL

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

skipif mysql # not compatible
query I rowsort label-3175
SELECT ALL ( + CAST ( NULL AS REAL ) ) + - 1 col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3176
SELECT DISTINCT 42 + + + COUNT( + 22 )
----
43

skipif mysql # not compatible
query I rowsort label-3176
SELECT DISTINCT 42 + + + COUNT ( + 22 )
----
43

query I rowsort
SELECT 70 * - + 13
----
-910

query I rowsort
SELECT 77 + + 69 + - 45 + + 69 * + 78
----
5483

onlyif mysql # aggregate syntax: 
query II rowsort label-3179
SELECT DISTINCT - 36 - + MIN( - ( 76 ) ) AS col0, - COUNT( * ) * COUNT( * )
----
40
-1

skipif mysql # not compatible
query II rowsort label-3179
SELECT DISTINCT - 36 - + MIN ( - ( 76 ) ) AS col0, - COUNT ( * ) * COUNT ( * )
----
40
-1

query I rowsort
SELECT 96 * 84 AS col1
----
8064

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3181
SELECT CAST( + 47 AS SIGNED ) - + 73 AS col0
----
-26

skipif mysql # not compatible
query I rowsort label-3181
SELECT CAST ( + 47 AS INTEGER ) - + 73 AS col0
----
-26

query III rowsort
SELECT - 88 AS col1, 24 + + 80 + + + 33 + - 74 * 72 * 93 AS col1, - 14 * - - 60 - - + 52 + + 89 * + 60 col0
----
-88
-495367
4552

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3184
SELECT ALL - 10 * - COUNT( * ) * 3 AS col2
----
30

skipif mysql # not compatible
query I rowsort label-3184
SELECT ALL - 10 * - COUNT ( * ) * 3 AS col2
----
30

query I rowsort
SELECT DISTINCT - 38 * + 32 AS col0
----
-1216

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3186
SELECT ALL 99 AS col2, - CAST( + - ( - - 39 ) AS SIGNED ) AS col1
----
99
39

skipif mysql # not compatible
query II rowsort label-3186
SELECT ALL 99 AS col2, - CAST ( + - ( - - 39 ) AS INTEGER ) AS col1
----
99
39

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3188
SELECT - 17 / 55 * 65 * + + 0 + + - COALESCE ( - 13, + 42, - 17 * + CASE - - COUNT( * ) WHEN + 94 THEN + 17 END * + - COUNT( * ) + - + COUNT( * ) + - 47 / + + CAST( NULL AS SIGNED ) * + - MIN( ALL + 80 ) * + + 96 + - 67, - 41 ) + + - 58 + 33 * + - 69 - 55 + + - 45 * + - CAST( NULL AS SIGNED ) + - COUNT( * ) + + + 43 * - + 65 * - COUNT( * ) - 80 + + 12 / + 88
----
NULL

skipif mysql # not compatible
query I rowsort label-3188
SELECT - 17 / 55 * 65 * + + 0 + + - COALESCE ( - 13, + 42, - 17 * + CASE - - COUNT ( * ) WHEN + 94 THEN + 17 END * + - COUNT ( * ) + - + COUNT ( * ) + - 47 / + + CAST ( NULL AS INTEGER ) * + - MIN ( ALL + 80 ) * + + 96 + - 67, - 41 ) + + - 58 + 33 * + - 69 - 55 + + - 45 * + - CAST ( NULL AS INTEGER ) + - COUNT ( * ) + + + 43 * - + 65 * - COUNT ( * ) - 80 + + 12 / + 88
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3189
SELECT ALL + COUNT( * ) * + NULLIF ( - + 58, - CAST( NULL AS SIGNED ) ) * ( - ( - 53 ) ) DIV - 86 - + + 29 + - - COUNT( * ) AS col0
----
7

skipif mysql # not compatible
query I rowsort label-3189
SELECT ALL + COUNT ( * ) * + NULLIF ( - + 58, - CAST ( NULL AS INTEGER ) ) * ( - ( - 53 ) ) / - 86 - + + 29 + - - COUNT ( * ) AS col0
----
7

onlyif mysql # DIV for integer division: 
query I rowsort label-3190
SELECT DISTINCT 51 DIV + - 10
----
-5

skipif mysql # not compatible
query I rowsort label-3190
SELECT DISTINCT 51 / + - 10
----
-5

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3192
SELECT + COALESCE ( + 60, 2 * 41 * 36 * COUNT( * ) )
----
60

skipif mysql # not compatible
query I rowsort label-3192
SELECT + COALESCE ( + 60, 2 * 41 * 36 * COUNT ( * ) )
----
60

query I rowsort
SELECT 15 * - ( - + 91 ) AS col0
----
1365

query I rowsort
SELECT - 91 * - 36 AS col2
----
3276

query II rowsort
SELECT DISTINCT - + 84 col2, 11 * ( - - 20 ) + - 23
----
-84
197

query I rowsort
SELECT ALL - 9 + - 42 AS col1
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-3197
SELECT MAX( ( + 22 ) ) * + 5 AS col0
----
110

skipif mysql # not compatible
query I rowsort label-3197
SELECT MAX ( ( + 22 ) ) * + 5 AS col0
----
110

query I rowsort
SELECT DISTINCT - + 79 + 27
----
-52

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3199
SELECT ALL 80 + - 74 + 67 * 17 AS col2, + CAST( NULL AS SIGNED ) * - 7 AS col1
----
1145
NULL

skipif mysql # not compatible
query II rowsort label-3199
SELECT ALL 80 + - 74 + 67 * 17 AS col2, + CAST ( NULL AS INTEGER ) * - 7 AS col1
----
1145
NULL

query II rowsort
SELECT 88, - 55 * 65 AS col1
----
88
-3575

query I rowsort
SELECT 76 * + 14
----
1064

onlyif mysql # aggregate syntax: 
query I rowsort label-3202
SELECT ALL 24 + + SUM( ALL + 98 ) AS col0
----
122

skipif mysql # not compatible
query I rowsort label-3202
SELECT ALL 24 + + SUM ( ALL + 98 ) AS col0
----
122

query I rowsort
SELECT 63 + + - 61 * 79 AS col0
----
-4756

onlyif mysql # aggregate syntax: 
query II rowsort label-3204
SELECT + - COUNT( * ) AS col1, - 33 * + 16 AS col0
----
-1
-528

skipif mysql # not compatible
query II rowsort label-3204
SELECT + - COUNT ( * ) AS col1, - 33 * + 16 AS col0
----
-1
-528

query II rowsort
SELECT - 32 AS col0, 56 AS col1
----
-32
56

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3206
SELECT CASE 40 WHEN - + 1 * - 16 THEN - + CAST( NULL AS DECIMAL ) * - - 82 / + + MIN( - + 62 ) END * - + 81 * + - ( + 83 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3206
SELECT CASE 40 WHEN - + 1 * - 16 THEN - + CAST ( NULL AS REAL ) * - - 82 / + + MIN ( - + 62 ) END * - + 81 * + - ( + 83 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3207
SELECT 55 + + MIN( 7 ) * - 20 - 14 * - ( + + 45 )
----
545

skipif mysql # not compatible
query I rowsort label-3207
SELECT 55 + + MIN ( 7 ) * - 20 - 14 * - ( + + 45 )
----
545

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3208
SELECT 61 + + 75 * COALESCE ( + 69, + ( + CAST( + 17 AS SIGNED ) ) )
----
5236

skipif mysql # not compatible
query I rowsort label-3208
SELECT 61 + + 75 * COALESCE ( + 69, + ( + CAST ( + 17 AS INTEGER ) ) )
----
5236

onlyif mysql # aggregate syntax: 
query I rowsort label-3209
SELECT ALL 66 * MAX( ALL - - 98 ) AS col2
----
6468

skipif mysql # not compatible
query I rowsort label-3209
SELECT ALL 66 * MAX ( ALL - - 98 ) AS col2
----
6468

onlyif mysql # DIV for integer division: 
query I rowsort label-3210
SELECT DISTINCT 95 DIV 7 AS col2
----
13

skipif mysql # not compatible
query I rowsort label-3210
SELECT DISTINCT 95 / 7 AS col2
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-3211
SELECT + 99 * + CASE - - COUNT( * ) WHEN - 95 * - - NULLIF ( 71, - 58 ) THEN - 76 + 6 END * + 35 + - ( + 43 ) + ( - - 54 ) / - 36 - + ( + 31 ) + + + 51 + - 15 / + 6
----
NULL

skipif mysql # not compatible
query I rowsort label-3211
SELECT + 99 * + CASE - - COUNT ( * ) WHEN - 95 * - - NULLIF ( 71, - 58 ) THEN - 76 + 6 END * + 35 + - ( + 43 ) + ( - - 54 ) / - 36 - + ( + 31 ) + + + 51 + - 15 / + 6
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3212
SELECT ALL 30 * + 67, - COUNT( - + 36 ) AS col1
----
2010
-1

skipif mysql # not compatible
query II rowsort label-3212
SELECT ALL 30 * + 67, - COUNT ( - + 36 ) AS col1
----
2010
-1

query I rowsort
SELECT + 12 + - 4 + 53 AS col1
----
61

query I rowsort
SELECT ALL 24 * + ( + 90 ) * - ( - 18 ) + + - 87
----
38793

query I rowsort
SELECT - 94 + 42 AS col0
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-3216
SELECT + COUNT( ALL - NULLIF ( - + 12, - 83 ) ) * + 68 + - - 28
----
96

skipif mysql # not compatible
query I rowsort label-3216
SELECT + COUNT ( ALL - NULLIF ( - + 12, - 83 ) ) * + 68 + - - 28
----
96

query I rowsort
SELECT ALL 88 * + - 18
----
-1584

query I rowsort
SELECT - NULLIF ( - - 0, + + ( + 34 ) ) AS col0
----
0

query I rowsort
SELECT + 58 + + + 28 + + 50 - + + 80 AS col2
----
56

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3221
SELECT - COUNT( 95 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-3221
SELECT - COUNT ( 95 ) AS col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3222
SELECT - CAST( COUNT( * ) AS SIGNED ) * - 13 + 96
----
109

skipif mysql # not compatible
query I rowsort label-3222
SELECT - CAST ( COUNT ( * ) AS INTEGER ) * - 13 + 96
----
109

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3223
SELECT + 2 * + - COUNT( * ) * - - 28 * CAST( NULL AS SIGNED ) + + + 47 * CAST( - 99 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3223
SELECT + 2 * + - COUNT ( * ) * - - 28 * CAST ( NULL AS INTEGER ) + + + 47 * CAST ( - 99 AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3224
SELECT DISTINCT - - 78 * + NULLIF ( + MIN( ALL + 15 ), + + 4 / ( - COUNT( * ) ) * + 14 ) + + 69 AS col0
----
1239

skipif mysql # not compatible
query I rowsort label-3224
SELECT DISTINCT - - 78 * + NULLIF ( + MIN ( ALL + 15 ), + + 4 / ( - COUNT ( * ) ) * + 14 ) + + 69 AS col0
----
1239

onlyif mysql # DIV for integer division: 
query I rowsort label-3225
SELECT ALL + + 12 * + + 85 - - 88 + - + 86 DIV - ( - 40 ) + + 79 * + + 93
----
8453

skipif mysql # not compatible
query I rowsort label-3225
SELECT ALL + + 12 * + + 85 - - 88 + - + 86 / - ( - 40 ) + + 79 * + + 93
----
8453

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3226
SELECT + SUM( + ( - 99 ) ) * + ( + 58 ) * + 83 + - + 97 * + - 10 / 16 * - 12 + 82 * + 93 + - - NULLIF ( + 54, 16 ) - 16 * - NULLIF ( CASE - - 74 WHEN ( + COALESCE ( COALESCE ( 74, - 91 / + 11 + + 72 * 60 ), 62 ) ) + - ( COUNT( * ) ) + 52 * + 8 THEN - 8 END, - 42 * + CAST( NULL AS SIGNED ) * - + CASE - 21 WHEN + - CASE - CASE COUNT( * ) WHEN COUNT( * ) THEN 59 WHEN - 90 - - 37 * CAST( NULL AS SIGNED ) THEN 63 + 95 END WHEN COUNT( * ) THEN NULL WHEN 80 * 47 + 74 THEN NULL WHEN + 33 THEN 97 ELSE 94 END + MIN( - 95 ) THEN 74 ELSE NULL END + + 17 + CAST( + COUNT( * ) AS SIGNED ) * CAST( + 30 AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3226
SELECT + SUM ( + ( - 99 ) ) * + ( + 58 ) * + 83 + - + 97 * + - 10 / 16 * - 12 + 82 * + 93 + - - NULLIF ( + 54, 16 ) - 16 * - NULLIF ( CASE - - 74 WHEN ( + COALESCE ( COALESCE ( 74, - 91 / + 11 + + 72 * 60 ), 62 ) ) + - ( COUNT ( * ) ) + 52 * + 8 THEN - 8 END, - 42 * + CAST ( NULL AS INTEGER ) * - + CASE - 21 WHEN + - CASE - CASE COUNT ( * ) WHEN COUNT ( * ) THEN 59 WHEN - 90 - - 37 * CAST ( NULL AS INTEGER ) THEN 63 + 95 END WHEN COUNT ( * ) THEN NULL WHEN 80 * 47 + 74 THEN NULL WHEN + 33 THEN 97 ELSE 94 END + MIN ( - 95 ) THEN 74 ELSE NULL END + + 17 + CAST ( + COUNT ( * ) AS INTEGER ) * CAST ( + 30 AS INTEGER ) )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3227
SELECT - - 72 DIV + 10 col1
----
7

skipif mysql # not compatible
query I rowsort label-3227
SELECT - - 72 / + 10 col1
----
7

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

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

query II rowsort
SELECT + 50 AS col2, NULLIF ( + + 38, 55 )
----
50
38

query I rowsort
SELECT ALL 42 * 57 * - 35 AS col1
----
-83790

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3232
SELECT - COALESCE ( - + COUNT( * ), - + 0 ), - 95 col0
----
1
-95

skipif mysql # not compatible
query II rowsort label-3232
SELECT - COALESCE ( - + COUNT ( * ), - + 0 ), - 95 col0
----
1
-95

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3233
SELECT ALL CAST( NULL AS SIGNED ) AS col0, ( + 72 ) * ( - 1 ) AS col2
----
NULL
-72

skipif mysql # not compatible
query II rowsort label-3233
SELECT ALL CAST ( NULL AS INTEGER ) AS col0, ( + 72 ) * ( - 1 ) AS col2
----
NULL
-72

onlyif mysql # aggregate syntax: 
query II rowsort label-3234
SELECT - ( 42 ) * - 50 AS col1, - 49 - + 42 + + COUNT( * ) * 83 - - + 50 * - + NULLIF ( + - ( COUNT( * ) ), - COUNT( * ) + COALESCE ( + 60, + 19 + + 17 - + 41 * - 66 ) )
----
2100
42

skipif mysql # not compatible
query II rowsort label-3234
SELECT - ( 42 ) * - 50 AS col1, - 49 - + 42 + + COUNT ( * ) * 83 - - + 50 * - + NULLIF ( + - ( COUNT ( * ) ), - COUNT ( * ) + COALESCE ( + 60, + 19 + + 17 - + 41 * - 66 ) )
----
2100
42

onlyif mysql # DIV for integer division: 
query I rowsort label-3235
SELECT + 94 + - ( 4 ) DIV 15 AS col1
----
94

skipif mysql # not compatible
query I rowsort label-3235
SELECT + 94 + - ( 4 ) / 15 AS col1
----
94

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

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

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

query I rowsort
SELECT DISTINCT 82 + - - ( 68 ) col2
----
150

query II rowsort
SELECT 45 AS col1, - 24 AS col0
----
45
-24

onlyif mysql # aggregate syntax: 
query II rowsort label-3240
SELECT + + COUNT( * ) + - - 87 * + - 45 AS col0, 50 * - 14
----
-3914
-700

skipif mysql # not compatible
query II rowsort label-3240
SELECT + + COUNT ( * ) + - - 87 * + - 45 AS col0, 50 * - 14
----
-3914
-700

query I rowsort
SELECT - ( + CASE - 30 WHEN 82 THEN - + 61 + - 50 - + 1 END ) col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3242
SELECT DISTINCT NULLIF ( - 75, - 5 * - MAX( + 75 ) * - - CAST( + 2 AS SIGNED ) * 27 + - 97 - + 2 ) * + 98
----
-7350

skipif mysql # not compatible
query I rowsort label-3242
SELECT DISTINCT NULLIF ( - 75, - 5 * - MAX ( + 75 ) * - - CAST ( + 2 AS INTEGER ) * 27 + - 97 - + 2 ) * + 98
----
-7350

onlyif mysql # aggregate syntax: 
query I rowsort label-3243
SELECT ALL - 84 + - COUNT( * ) * + 74 + ( - 90 )
----
-248

skipif mysql # not compatible
query I rowsort label-3243
SELECT ALL - 84 + - COUNT ( * ) * + 74 + ( - 90 )
----
-248

query II rowsort
SELECT - + 90 AS col0, - 96 * + 73
----
-90
-7008

query II rowsort
SELECT ALL + 34 AS col1, 97 AS col2
----
34
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3246
SELECT - - 16 / 23 - CAST( + MIN( + 60 ) AS SIGNED ) + + CAST( NULL AS SIGNED ) + - 96 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3246
SELECT - - 16 / 23 - CAST ( + MIN ( + 60 ) AS INTEGER ) + + CAST ( NULL AS INTEGER ) + - 96 AS col2
----
NULL

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

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT 19 * + 3 * 71
----
4047

query I rowsort
SELECT DISTINCT + NULLIF ( - + 56, - 51 )
----
-56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3253
SELECT SUM( ALL - 89 ) * + - 58 + 8 + + + CAST( NULL AS SIGNED ) + + 25 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3253
SELECT SUM ( ALL - 89 ) * + - 58 + 8 + + + CAST ( NULL AS INTEGER ) + + 25 AS col1
----
NULL

query I rowsort
SELECT - 66 * + + 35 * + 84 AS col1
----
-194040

query I rowsort
SELECT 96 * - 66 AS col0
----
-6336

query I rowsort
SELECT ALL - NULLIF ( + 42, - 26 ) AS col1
----
-42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3257
SELECT 60 * + - 20 * - 16 * - 59 + - 28 + + CAST( - + 85 AS SIGNED )
----
-1132913

skipif mysql # not compatible
query I rowsort label-3257
SELECT 60 * + - 20 * - 16 * - 59 + - 28 + + CAST ( - + 85 AS INTEGER )
----
-1132913

onlyif mysql # DIV for integer division: 
query I rowsort label-3258
SELECT DISTINCT - 5 DIV + - 16 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3258
SELECT DISTINCT - 5 / + - 16 AS col0
----
0

query I rowsort
SELECT 89 + + + 17 AS col2
----
106

query I rowsort
SELECT 95 + + 68
----
163

query I rowsort
SELECT ALL + 33 + + ( 15 ) AS col2
----
48

query I rowsort
SELECT DISTINCT - 79 + + 81 * + - ( - - 53 ) + + + 91
----
-4281

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

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

query I rowsort
SELECT 14 + + 4 * 37 col2
----
162

onlyif mysql # aggregate syntax: 
query II rowsort label-3265
SELECT DISTINCT + NULLIF ( + 7, - - COUNT( * ) ) * 68 * 86 AS col0, + 48 * + + COUNT( * ) * 99 AS col0
----
40936
4752

skipif mysql # not compatible
query II rowsort label-3265
SELECT DISTINCT + NULLIF ( + 7, - - COUNT ( * ) ) * 68 * 86 AS col0, + 48 * + + COUNT ( * ) * 99 AS col0
----
40936
4752

query I rowsort
SELECT ALL + 88 * - 44 AS col0
----
-3872

query I rowsort
SELECT 1 * 77 AS col2
----
77

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3269
SELECT + COALESCE ( 30, COUNT( * ) ) + 61 - - 56 - - - COALESCE ( + + 69, + - 12 * - 62 ), 24 AS col1
----
78
24

skipif mysql # not compatible
query II rowsort label-3269
SELECT + COALESCE ( 30, COUNT ( * ) ) + 61 - - 56 - - - COALESCE ( + + 69, + - 12 * - 62 ), 24 AS col1
----
78
24

query I rowsort
SELECT DISTINCT 83 + - + 98 * 46 AS col0
----
-4425

onlyif mysql # aggregate syntax: 
query I rowsort label-3271
SELECT COALESCE ( + NULLIF ( + COUNT( ALL + + 96 ), NULLIF ( + + 48, - - 86 / + COALESCE ( + - 67, - 79, - MIN( + 19 ) + - - 12 + + 94 + - + 41 - + + ( - 79 ) / + 39 * 50 * + 78 + 44 * - NULLIF ( + 23, + - 44 / ( 11 ) + + 62 ) * - - SUM( + + COALESCE ( + 93, 74 * + 4, - 81 + ( - - 40 ) ) ) ) ) ), + 54 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3271
SELECT COALESCE ( + NULLIF ( + COUNT ( ALL + + 96 ), NULLIF ( + + 48, - - 86 / + COALESCE ( + - 67, - 79, - MIN ( + 19 ) + - - 12 + + 94 + - + 41 - + + ( - 79 ) / + 39 * 50 * + 78 + 44 * - NULLIF ( + 23, + - 44 / ( 11 ) + + 62 ) * - - SUM ( + + COALESCE ( + 93, 74 * + 4, - 81 + ( - - 40 ) ) ) ) ) ), + 54 ) AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3272
SELECT DISTINCT + 86 + - - CASE + 43 WHEN + 15 - 19 + + - 10 - COUNT( * ) + + CAST( NULL AS SIGNED ) * + COUNT( * ) * 15 * + 10 THEN NULL WHEN - + COUNT( DISTINCT 99 ) - - - 5 THEN + - CAST( NULL AS SIGNED ) ELSE 44 END
----
130

skipif mysql # not compatible
query I rowsort label-3272
SELECT DISTINCT + 86 + - - CASE + 43 WHEN + 15 - 19 + + - 10 - COUNT ( * ) + + CAST ( NULL AS INTEGER ) * + COUNT ( * ) * 15 * + 10 THEN NULL WHEN - + COUNT ( DISTINCT 99 ) - - - 5 THEN + - CAST ( NULL AS INTEGER ) ELSE 44 END
----
130

query I rowsort
SELECT CASE - + 80 WHEN 6 THEN 34 ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3274
SELECT ALL + ( - 60 ) + 59 * - 97 + 8 - - COUNT( * ) DIV - 74 + + - 14 AS col2
----
-5789

skipif mysql # not compatible
query I rowsort label-3274
SELECT ALL + ( - 60 ) + 59 * - 97 + 8 - - COUNT ( * ) / - 74 + + - 14 AS col2
----
-5789

query I rowsort
SELECT - 47 + - NULLIF ( - 64, - - 62 )
----
17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3276
SELECT + CASE - 52 WHEN - 12 THEN + CAST( + AVG ( + + 68 ) AS SIGNED ) WHEN - - 88 THEN - 53 + - 30 WHEN + - 59 THEN NULL END * + + 8 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3276
SELECT + CASE - 52 WHEN - 12 THEN + CAST ( + AVG ( + + 68 ) AS INTEGER ) WHEN - - 88 THEN - 53 + - 30 WHEN + - 59 THEN NULL END * + + 8 AS col1
----
NULL

query I rowsort
SELECT + 21 * - 53 + + 49
----
-1064

onlyif mysql # aggregate syntax: 
query I rowsort label-3278
SELECT ALL CASE + 19 WHEN AVG ( - - 52 ) + - AVG ( DISTINCT - 22 ) - - COUNT( * ) * COUNT( * ) THEN NULL WHEN 44 + - + MIN( 9 ) + + - 98 + + 42 + - - 86 * - 96 THEN + + 7 * + - 1 + - 30 ELSE NULL END * + + 90
----
NULL

skipif mysql # not compatible
query I rowsort label-3278
SELECT ALL CASE + 19 WHEN AVG ( - - 52 ) + - AVG ( DISTINCT - 22 ) - - COUNT ( * ) * COUNT ( * ) THEN NULL WHEN 44 + - + MIN ( 9 ) + + - 98 + + 42 + - - 86 * - 96 THEN + + 7 * + - 1 + - 30 ELSE NULL END * + + 90
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3279
SELECT - 60 + MAX( - NULLIF ( + 75, + - 89 ) ) AS col2
----
-135

skipif mysql # not compatible
query I rowsort label-3279
SELECT - 60 + MAX ( - NULLIF ( + 75, + - 89 ) ) AS col2
----
-135

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3280
SELECT - 30 - - 35 + - COUNT( * ) + + - 0 + + 21 * - COUNT( * ) / + CAST( NULL AS SIGNED ) * 68
----
NULL

skipif mysql # not compatible
query I rowsort label-3280
SELECT - 30 - - 35 + - COUNT ( * ) + + - 0 + + 21 * - COUNT ( * ) / + CAST ( NULL AS INTEGER ) * 68
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3281
SELECT ALL COUNT( * ) * - 76 * - 94 AS col2
----
7144

skipif mysql # not compatible
query I rowsort label-3281
SELECT ALL COUNT ( * ) * - 76 * - 94 AS col2
----
7144

query I rowsort
SELECT - 87 * 16 AS col1
----
-1392

query I rowsort
SELECT ALL 57 * 64 * - 9 AS col1
----
-32832

onlyif mysql # DIV for integer division: 
query I rowsort label-3284
SELECT + - 54 DIV 26 + + + 7 AS col2
----
5

skipif mysql # not compatible
query I rowsort label-3284
SELECT + - 54 / 26 + + + 7 AS col2
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-3285
SELECT CASE 17 WHEN + 93 THEN - 74 WHEN COUNT( ALL 43 ) - + COALESCE ( COUNT( * ), 99, + - MAX( - 30 ), + 71 * + + COUNT( * ) + - 27 + - COUNT( * ) ) THEN + - 39 + - MIN( - + 85 ) / + COUNT( * ) * + COUNT( * ) ELSE NULL END + + - 77 + 83 / - AVG ( - ( + 98 ) ) * 31 + ( - 89 ) - + - 91 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3285
SELECT CASE 17 WHEN + 93 THEN - 74 WHEN COUNT ( ALL 43 ) - + COALESCE ( COUNT ( * ), 99, + - MAX ( - 30 ), + 71 * + + COUNT ( * ) + - 27 + - COUNT ( * ) ) THEN + - 39 + - MIN ( - + 85 ) / + COUNT ( * ) * + COUNT ( * ) ELSE NULL END + + - 77 + 83 / - AVG ( - ( + 98 ) ) * 31 + ( - 89 ) - + - 91 AS col2
----
NULL

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

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

query II rowsort
SELECT + 5 AS col0, 18
----
5
18

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

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

query I rowsort
SELECT 80 * + 2 col1
----
160

onlyif mysql # aggregate syntax: 
query I rowsort label-3290
SELECT DISTINCT - MIN( + + 24 )
----
-24

skipif mysql # not compatible
query I rowsort label-3290
SELECT DISTINCT - MIN ( + + 24 )
----
-24

query I rowsort
SELECT ALL 71 + - - 97
----
168

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

skipif mysql # not compatible
query I rowsort label-3292
SELECT + COUNT ( DISTINCT 38 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3293
SELECT DISTINCT - CASE 75 WHEN + COUNT( * ) THEN NULL ELSE 76 * - + 50 END
----
3800

skipif mysql # not compatible
query I rowsort label-3293
SELECT DISTINCT - CASE 75 WHEN + COUNT ( * ) THEN NULL ELSE 76 * - + 50 END
----
3800

onlyif mysql # aggregate syntax: 
query I rowsort label-3294
SELECT ALL - MIN( - 91 ) + + 8 + 10
----
109

skipif mysql # not compatible
query I rowsort label-3294
SELECT ALL - MIN ( - 91 ) + + 8 + 10
----
109

query I rowsort
SELECT 5 * - 71 AS col2
----
-355

onlyif mysql # aggregate syntax: 
query I rowsort label-3296
SELECT ALL 65 * + + SUM( DISTINCT + - 0 )
----
0

skipif mysql # not compatible
query I rowsort label-3296
SELECT ALL 65 * + + SUM ( DISTINCT + - 0 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3297
SELECT 11 DIV - 39 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3297
SELECT 11 / - 39 AS col2
----
0

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3299
SELECT MAX( + + 82 ) * + 96 AS col0, ( COUNT( * ) ) AS col1
----
7872
1

skipif mysql # not compatible
query II rowsort label-3299
SELECT MAX ( + + 82 ) * + 96 AS col0, ( COUNT ( * ) ) AS col1
----
7872
1

onlyif mysql # aggregate syntax: 
query II rowsort label-3300
SELECT DISTINCT - COUNT( * ) + + - ( 91 ) AS col0, - MIN( DISTINCT + + 52 ) + COUNT( * )
----
-92
-51

skipif mysql # not compatible
query II rowsort label-3300
SELECT DISTINCT - COUNT ( * ) + + - ( 91 ) AS col0, - MIN ( DISTINCT + + 52 ) + COUNT ( * )
----
-92
-51

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3301
SELECT 14 DIV - CAST( - 23 AS SIGNED ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3301
SELECT 14 / - CAST ( - 23 AS INTEGER ) AS col1
----
0

query I rowsort
SELECT ALL - - 74 + - - 22
----
96

onlyif mysql # DIV for integer division: 
query I rowsort label-3303
SELECT ALL + 6 DIV + - 72 * 65 * - 11 col2
----
0

skipif mysql # not compatible
query I rowsort label-3303
SELECT ALL + 6 / + - 72 * 65 * - 11 col2
----
0

query I rowsort
SELECT ALL - 48 + 15 AS col2
----
-33

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

skipif mysql # not compatible
query I rowsort label-3305
SELECT DISTINCT - - 45 - CAST ( NULL AS INTEGER ) * + - ( - 0 )
----
NULL

query I rowsort
SELECT 20 * + - 89
----
-1780

onlyif mysql # aggregate syntax: 
query I rowsort label-3307
SELECT ALL - + MIN( ALL + 30 ) * + + 31 AS col0
----
-930

skipif mysql # not compatible
query I rowsort label-3307
SELECT ALL - + MIN ( ALL + 30 ) * + + 31 AS col0
----
-930

query I rowsort
SELECT - 35 + - - 98
----
63

query III rowsort
SELECT - 45 AS col2, + 93 * + 95 AS col2, 21
----
-45
8835
21

onlyif mysql # aggregate syntax: 
query I rowsort label-3310
SELECT COUNT( * ) + - + 61 + - 64 col1
----
-124

skipif mysql # not compatible
query I rowsort label-3310
SELECT COUNT ( * ) + - + 61 + - 64 col1
----
-124

query II rowsort
SELECT 47 AS col0, 76
----
47
76

query I rowsort
SELECT ALL - 5 * - + 48 + - - 87 + - + 22
----
305

query II rowsort
SELECT + 45 AS col2, 27 AS col1
----
45
27

query I rowsort
SELECT + 85 * - 6 + 63
----
-447

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3315
SELECT ALL - 49 DIV + SUM( 81 )
----
0

skipif mysql # not compatible
query I rowsort label-3315
SELECT ALL - 49 / + SUM ( 81 )
----
0

query II rowsort
SELECT ALL - + 68 AS col1, - ( + 68 )
----
-68
-68

query I rowsort
SELECT 86 - + 32
----
54

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3319
SELECT + 21 * - - 22 * - + 74 * 28 * 48 + - CASE + - COUNT( * ) WHEN AVG ( ALL 90 ) * - 93 THEN + NULLIF ( - 56, - 11 ) END / 79 + + + 1 + 98
----
NULL

skipif mysql # not compatible
query I rowsort label-3319
SELECT + 21 * - - 22 * - + 74 * 28 * 48 + - CASE + - COUNT ( * ) WHEN AVG ( ALL 90 ) * - 93 THEN + NULLIF ( - 56, - 11 ) END / 79 + + + 1 + 98
----
NULL

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

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

query I rowsort
SELECT DISTINCT 66 * + + ( - 37 )
----
-2442

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

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

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

query I rowsort
SELECT + 65 * + 59 AS col1
----
3835

query I rowsort
SELECT ALL 89 * 79 * 51 * - 68
----
-24383508

onlyif mysql # aggregate syntax: 
query I rowsort label-3326
SELECT ALL + 75 * 76 + - + 11 + - NULLIF ( + 44, 83 * + - MAX( ALL + - 80 ) + - 16 * 75 ) + + - 13 * + - 40 col0
----
6165

skipif mysql # not compatible
query I rowsort label-3326
SELECT ALL + 75 * 76 + - + 11 + - NULLIF ( + 44, 83 * + - MAX ( ALL + - 80 ) + - 16 * 75 ) + + - 13 * + - 40 col0
----
6165

query I rowsort
SELECT + 35 * + 29 * + 19 AS col0
----
19285

query I rowsort
SELECT + NULLIF ( - 21, - 89 ) AS col0
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-3329
SELECT SUM( - 8 )
----
-8

skipif mysql # not compatible
query I rowsort label-3329
SELECT SUM ( - 8 )
----
-8

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

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

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

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

query I rowsort
SELECT 34 * 12 + 44
----
452

onlyif mysql # aggregate syntax: 
query I rowsort label-3333
SELECT - 5 - - - 54 * + CASE + 71 WHEN + 92 THEN NULL ELSE COUNT( * ) END + + 29 + - - 51
----
21

skipif mysql # not compatible
query I rowsort label-3333
SELECT - 5 - - - 54 * + CASE + 71 WHEN + 92 THEN NULL ELSE COUNT ( * ) END + + 29 + - - 51
----
21

query I rowsort
SELECT ALL 11 * + 47
----
517

onlyif mysql # aggregate syntax: 
query I rowsort label-3335
SELECT + NULLIF ( 85, + 17 * COUNT( * ) * - 29 ) AS col1
----
85

skipif mysql # not compatible
query I rowsort label-3335
SELECT + NULLIF ( 85, + 17 * COUNT ( * ) * - 29 ) AS col1
----
85

query I rowsort
SELECT DISTINCT ( - 48 ) - - 45 AS col2
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3337
SELECT ALL 9 * - CAST( NULL AS SIGNED ) * 46 * 78
----
NULL

skipif mysql # not compatible
query I rowsort label-3337
SELECT ALL 9 * - CAST ( NULL AS INTEGER ) * 46 * 78
----
NULL

query I rowsort
SELECT + - 91 + - 6 AS col0
----
-97

query II rowsort
SELECT ALL + 86, + CASE WHEN NOT NULL IS NULL THEN 26 ELSE NULL END / - 75 AS col2
----
86
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3340
SELECT DISTINCT + 27 * - COUNT( 81 ) * 81 * - + 85 + ( + 10 ) AS col2
----
185905

skipif mysql # not compatible
query I rowsort label-3340
SELECT DISTINCT + 27 * - COUNT ( 81 ) * 81 * - + 85 + ( + 10 ) AS col2
----
185905

query I rowsort
SELECT + 6 * 78 AS col0
----
468

query I rowsort
SELECT - 76 * - 75
----
5700

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

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

query I rowsort
SELECT + 20 * 38
----
760

query I rowsort
SELECT - 3 + 79
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-3346
SELECT ALL + COUNT( * ) / + - CASE - 20 WHEN + SUM( DISTINCT - + 42 ) * ( + 69 ) + - + 25 + 74 THEN + + 24 - + AVG ( 21 ) * - 56 * + + 2 + - 6 + 19 WHEN 1 THEN NULL END * 99 - - 89 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3346
SELECT ALL + COUNT ( * ) / + - CASE - 20 WHEN + SUM ( DISTINCT - + 42 ) * ( + 69 ) + - + 25 + 74 THEN + + 24 - + AVG ( 21 ) * - 56 * + + 2 + - 6 + 19 WHEN 1 THEN NULL END * 99 - - 89 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3347
SELECT + + COUNT( * ) * - COALESCE ( - 56, 53 ), - 36 AS col0
----
56
-36

skipif mysql # not compatible
query II rowsort label-3347
SELECT + + COUNT ( * ) * - COALESCE ( - 56, 53 ), - 36 AS col0
----
56
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-3348
SELECT - - 64 * - - 54 - + + 87 * + COUNT( * )
----
3369

skipif mysql # not compatible
query I rowsort label-3348
SELECT - - 64 * - - 54 - + + 87 * + COUNT ( * )
----
3369

onlyif mysql # DIV for integer division: 
query I rowsort label-3349
SELECT DISTINCT - 1 DIV - - 71
----
0

skipif mysql # not compatible
query I rowsort label-3349
SELECT DISTINCT - 1 / - - 71
----
0

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

skipif mysql # not compatible
query I rowsort label-3350
SELECT - + ( + 55 ) / - COUNT ( * ) col0
----
55

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3352
SELECT - 78 + + + 62 + + - ( - 21 ) / + + CAST( NULL AS DECIMAL ) * 18 + 59 * 27 + NULLIF ( + CASE COUNT( * ) WHEN + 54 THEN 55 END, 56 ) + - 23 * + 69 * + + CAST( - 62 AS SIGNED ) * - 32
----
NULL

skipif mysql # not compatible
query I rowsort label-3352
SELECT - 78 + + + 62 + + - ( - 21 ) / + + CAST ( NULL AS REAL ) * 18 + 59 * 27 + NULLIF ( + CASE COUNT ( * ) WHEN + 54 THEN 55 END, 56 ) + - 23 * + 69 * + + CAST ( - 62 AS INTEGER ) * - 32
----
NULL

query II rowsort
SELECT ALL 13 AS col2, 36
----
13
36

query I rowsort
SELECT + + 87 + - 14 AS col0
----
73

query II rowsort
SELECT - 74 AS col2, - 30 + - + 54 col1
----
-74
-84

query I rowsort
SELECT - - 12 + 32
----
44

query I rowsort
SELECT - - 7 - - 77 AS col1
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-3358
SELECT - COUNT( * ) + - - 80 * - - 16 AS col1
----
1279

skipif mysql # not compatible
query I rowsort label-3358
SELECT - COUNT ( * ) + - - 80 * - - 16 AS col1
----
1279

query II rowsort
SELECT - 19 - + 21 AS col0, - 26 * - - 37
----
-40
-962

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3360
SELECT ALL ( - + CAST( - 43 AS SIGNED ) ) DIV + - 43 + - 5 + 47 * ( + ( 54 ) ) * + - 12 * 80 + + 28 * + 62
----
-2434750

skipif mysql # not compatible
query I rowsort label-3360
SELECT ALL ( - + CAST ( - 43 AS INTEGER ) ) / + - 43 + - 5 + 47 * ( + ( 54 ) ) * + - 12 * 80 + + 28 * + 62
----
-2434750

onlyif mysql # DIV for integer division: 
query I rowsort label-3361
SELECT DISTINCT 54 DIV 89 + - 27
----
-27

skipif mysql # not compatible
query I rowsort label-3361
SELECT DISTINCT 54 / 89 + - 27
----
-27

onlyif mysql # DIV for integer division: 
query I rowsort label-3362
SELECT DISTINCT - 64 DIV + 94 + - 32 * + - 55
----
1760

skipif mysql # not compatible
query I rowsort label-3362
SELECT DISTINCT - 64 / + 94 + - 32 * + - 55
----
1760

query I rowsort
SELECT ALL + COALESCE ( + 18, + COALESCE ( - 2, + 25 ) * - 89, + NULLIF ( + 68, - 11 ) * - 78 ) AS col0
----
18

query I rowsort
SELECT - 59 + 25 AS col2
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-3365
SELECT ALL + NULLIF ( - COUNT( * ), + + 17 * + 35 * + 4 / + 75 )
----
-1

skipif mysql # not compatible
query I rowsort label-3365
SELECT ALL + NULLIF ( - COUNT ( * ), + + 17 * + 35 * + 4 / + 75 )
----
-1

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3368
SELECT ( - NULLIF ( - COUNT( * ), - CAST( - + 76 AS DECIMAL ) ) ) col2
----
1

skipif mysql # not compatible
query I rowsort label-3368
SELECT ( - NULLIF ( - COUNT ( * ), - CAST ( - + 76 AS REAL ) ) ) col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3369
SELECT + NULLIF ( + ( 34 ), - - 46 * - SUM( + + ( + 42 ) ) * - + 41 - 31 * + NULLIF ( + + 78, + COUNT( * ) + - + 25 ) )
----
34

skipif mysql # not compatible
query I rowsort label-3369
SELECT + NULLIF ( + ( 34 ), - - 46 * - SUM ( + + ( + 42 ) ) * - + 41 - 31 * + NULLIF ( + + 78, + COUNT ( * ) + - + 25 ) )
----
34

query I rowsort
SELECT ALL - 54 * - 30 + - + 61 + - 42 * + + 10 * + - 47 * 53 + + 44 * 16
----
1048483

onlyif mysql # DIV for integer division: 
query I rowsort label-3371
SELECT DISTINCT + 71 * - 22 + 75 + 20 DIV + 7 AS col0
----
-1485

skipif mysql # not compatible
query I rowsort label-3371
SELECT DISTINCT + 71 * - 22 + 75 + 20 / + 7 AS col0
----
-1485

onlyif mysql # aggregate syntax: 
query I rowsort label-3372
SELECT + ( + NULLIF ( + 27, + NULLIF ( + 5, CASE - - 77 WHEN - CASE + 57 WHEN - COUNT( 94 ) THEN - 71 WHEN + 17 / - 81 THEN 99 - + 64 + - ( + ( + + COUNT( * ) ) ) WHEN + 65 THEN NULL END THEN - + 85 * 68 WHEN - 79 THEN NULL END ) ) )
----
27

skipif mysql # not compatible
query I rowsort label-3372
SELECT + ( + NULLIF ( + 27, + NULLIF ( + 5, CASE - - 77 WHEN - CASE + 57 WHEN - COUNT ( 94 ) THEN - 71 WHEN + 17 / - 81 THEN 99 - + 64 + - ( + ( + + COUNT ( * ) ) ) WHEN + 65 THEN NULL END THEN - + 85 * 68 WHEN - 79 THEN NULL END ) ) )
----
27

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

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

query I rowsort
SELECT ALL ( 88 ) * 95 col0
----
8360

query I rowsort
SELECT - 17 * - + 49 * 79
----
65807

query I rowsort
SELECT ALL + 77 * + COALESCE ( + ( + 61 ), + + 99 ) + + + 91
----
4788

onlyif mysql # aggregate syntax: 
query I rowsort label-3377
SELECT DISTINCT - 94 * COUNT( * ) - 64 * 95 * - - 95 AS col0
----
-577694

skipif mysql # not compatible
query I rowsort label-3377
SELECT DISTINCT - 94 * COUNT ( * ) - 64 * 95 * - - 95 AS col0
----
-577694

query I rowsort
SELECT ALL + NULLIF ( + 40, - + 97 ) * + 14 AS col0
----
560

query I rowsort
SELECT ALL - 75 * + ( + 26 )
----
-1950

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3380
SELECT CASE CAST( - 32 AS SIGNED ) WHEN + - COUNT( * ) * - 42 * - 52 THEN - MAX( DISTINCT + + 20 ) * - 24 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3380
SELECT CASE CAST ( - 32 AS INTEGER ) WHEN + - COUNT ( * ) * - 42 * - 52 THEN - MAX ( DISTINCT + + 20 ) * - 24 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3381
SELECT - + COUNT( * ) - ( - 91 ) AS col2
----
90

skipif mysql # not compatible
query I rowsort label-3381
SELECT - + COUNT ( * ) - ( - 91 ) AS col2
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-3382
SELECT DISTINCT - 16 * + NULLIF ( - MIN( ALL - - 3 ), - - 80 ) + + - 1 * - 6 + + 20
----
74

skipif mysql # not compatible
query I rowsort label-3382
SELECT DISTINCT - 16 * + NULLIF ( - MIN ( ALL - - 3 ), - - 80 ) + + - 1 * - 6 + + 20
----
74

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3383
SELECT DISTINCT CASE COUNT( * ) WHEN - - 54 THEN COUNT( * ) WHEN - + 91 + + + NULLIF ( + 10, COUNT( * ) * SUM( DISTINCT + 57 ) + + CAST( + SUM( DISTINCT + 96 ) AS DECIMAL ) + + - COUNT( * ) * - COUNT( * ) + + - 32 * + 33 + + - 96 + - COUNT( * ) ) THEN + - 90 * - - ( 93 ) + + 40 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3383
SELECT DISTINCT CASE COUNT ( * ) WHEN - - 54 THEN COUNT ( * ) WHEN - + 91 + + + NULLIF ( + 10, COUNT ( * ) * SUM ( DISTINCT + 57 ) + + CAST ( + SUM ( DISTINCT + 96 ) AS REAL ) + + - COUNT ( * ) * - COUNT ( * ) + + - 32 * + 33 + + - 96 + - COUNT ( * ) ) THEN + - 90 * - - ( 93 ) + + 40 ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT DISTINCT - 55 * + 12 AS col2
----
-660

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3385
SELECT + CAST( NULL AS SIGNED ) / - 70 - 19 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3385
SELECT + CAST ( NULL AS INTEGER ) / - 70 - 19 AS col0
----
NULL

query I rowsort
SELECT + + 27 * - 34 - - 22
----
-896

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3387
SELECT - COALESCE ( - COUNT( - CAST( - + 44 AS SIGNED ) ), - 21 * - + 2 + + CAST( NULL AS SIGNED ), - - 41 )
----
1

skipif mysql # not compatible
query I rowsort label-3387
SELECT - COALESCE ( - COUNT ( - CAST ( - + 44 AS INTEGER ) ), - 21 * - + 2 + + CAST ( NULL AS INTEGER ), - - 41 )
----
1

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3389
SELECT - 12 + + 77 - - COALESCE ( - + ( 39 ), CAST( + CASE - + 17 WHEN - - COALESCE ( + + 21, + 89, + 20 / + 56 ) + - 51 THEN NULL ELSE + 35 * + 64 + - 93 END AS SIGNED ) * + 57 + NULLIF ( CAST( + - 4 AS SIGNED ), + 93 ) )
----
26

skipif mysql # not compatible
query I rowsort label-3389
SELECT - 12 + + 77 - - COALESCE ( - + ( 39 ), CAST ( + CASE - + 17 WHEN - - COALESCE ( + + 21, + 89, + 20 / + 56 ) + - 51 THEN NULL ELSE + 35 * + 64 + - 93 END AS INTEGER ) * + 57 + NULLIF ( CAST ( + - 4 AS INTEGER ), + 93 ) )
----
26

query I rowsort
SELECT ALL - COALESCE ( 48, CASE + + 47 WHEN + 0 THEN + + 78 + 50 END )
----
-48

query I rowsort
SELECT DISTINCT 54 + + 22 * 48 + + 49 AS col2
----
1159

onlyif mysql # aggregate syntax: 
query I rowsort label-3392
SELECT ALL - NULLIF ( 95, + COUNT( * ) * - 72 / - 21 + + 74 ) + + - 46 AS col0
----
-141

skipif mysql # not compatible
query I rowsort label-3392
SELECT ALL - NULLIF ( 95, + COUNT ( * ) * - 72 / - 21 + + 74 ) + + - 46 AS col0
----
-141

query I rowsort
SELECT 96 * + 38
----
3648

query I rowsort
SELECT DISTINCT 89 + + 68 * 35
----
2469

onlyif mysql # aggregate syntax: 
query I rowsort label-3395
SELECT DISTINCT 7 + + - 10 + 42 * 85 * + - 46 - - - 40 + - - ( + 85 ) * + COUNT( * ) + 39
----
-164139

skipif mysql # not compatible
query I rowsort label-3395
SELECT DISTINCT 7 + + - 10 + 42 * 85 * + - 46 - - - 40 + - - ( + 85 ) * + COUNT ( * ) + 39
----
-164139

onlyif mysql # aggregate syntax: 
query II rowsort label-3396
SELECT DISTINCT - COUNT( * ) col1, 92 * + + 84
----
-1
7728

skipif mysql # not compatible
query II rowsort label-3396
SELECT DISTINCT - COUNT ( * ) col1, 92 * + + 84
----
-1
7728

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3397
SELECT ALL - 33 + 14 + + + 91 - + 11 * - + CAST( NULL AS SIGNED ) + 4 + + 79
----
NULL

skipif mysql # not compatible
query I rowsort label-3397
SELECT ALL - 33 + 14 + + + 91 - + 11 * - + CAST ( NULL AS INTEGER ) + 4 + + 79
----
NULL

query II rowsort
SELECT 29 AS col0, - 65 + 22 AS col1
----
29
-43

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3401
SELECT DISTINCT - 16 - - 25 * + 78 + + + 69 + + NULLIF ( - 66, + COUNT( * ) ) * - 48 * + 17
----
55859

skipif mysql # not compatible
query I rowsort label-3401
SELECT DISTINCT - 16 - - 25 * + 78 + + + 69 + + NULLIF ( - 66, + COUNT ( * ) ) * - 48 * + 17
----
55859

onlyif mysql # aggregate syntax: 
query I rowsort label-3402
SELECT DISTINCT + 61 * - COUNT( * ) * + 4 col0
----
-244

skipif mysql # not compatible
query I rowsort label-3402
SELECT DISTINCT + 61 * - COUNT ( * ) * + 4 col0
----
-244

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

skipif mysql # not compatible
query I rowsort label-3403
SELECT ALL - SUM ( ALL - 6 )
----
6

onlyif mysql # aggregate syntax: 
query II rowsort label-3404
SELECT ALL - 65 col0, - ( COUNT( * ) ) + - 48 AS col2
----
-65
-49

skipif mysql # not compatible
query II rowsort label-3404
SELECT ALL - 65 col0, - ( COUNT ( * ) ) + - 48 AS col2
----
-65
-49

query I rowsort
SELECT ALL 58 * + - 37
----
-2146

onlyif mysql # aggregate syntax: 
query I rowsort label-3406
SELECT ALL - MAX( DISTINCT + - 38 )
----
38

skipif mysql # not compatible
query I rowsort label-3406
SELECT ALL - MAX ( DISTINCT + - 38 )
----
38

query I rowsort
SELECT 20 + - 22 AS col0
----
-2

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

query I rowsort
SELECT - 97 * + 56
----
-5432

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3411
SELECT ALL - + MAX( ALL + 31 ) * + 10 AS col0
----
-310

skipif mysql # not compatible
query I rowsort label-3411
SELECT ALL - + MAX ( ALL + 31 ) * + 10 AS col0
----
-310

query I rowsort
SELECT ALL - 17 * + 29
----
-493

query II rowsort
SELECT ALL - 84 AS col1, - 68 + 5
----
-84
-63

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

skipif mysql # not compatible
query I rowsort label-3414
SELECT + ( + COUNT ( * ) ) * 77 / - 89 AS col1
----
0

query I rowsort
SELECT DISTINCT + 26 + + - 18 * + 39 * + + 43
----
-30160

query II rowsort
SELECT + 47, - 49 AS col1
----
47
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-3417
SELECT ALL + 51 + - 58 * - COUNT( * )
----
109

skipif mysql # not compatible
query I rowsort label-3417
SELECT ALL + 51 + - 58 * - COUNT ( * )
----
109

query I rowsort
SELECT ALL + 93 + + CASE + 15 WHEN + 66 THEN NULL ELSE - ( - 36 ) * + 80 END
----
2973

onlyif mysql # aggregate syntax: 
query I rowsort label-3419
SELECT - MIN( DISTINCT - + 96 )
----
96

skipif mysql # not compatible
query I rowsort label-3419
SELECT - MIN ( DISTINCT - + 96 )
----
96

query I rowsort
SELECT + 75 * + 8 - + - 77 + - - 37 AS col0
----
714

query I rowsort
SELECT 43 + + 90 col1
----
133

onlyif mysql # aggregate syntax: 
query I rowsort label-3422
SELECT ALL - 10 + 99 * - COUNT( * ) - + - CASE - 21 WHEN 14 / ( CASE 36 WHEN 9 THEN NULL ELSE + + 50 END ) THEN NULL WHEN - 56 - - - 87 THEN + 22 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3422
SELECT ALL - 10 + 99 * - COUNT ( * ) - + - CASE - 21 WHEN 14 / ( CASE 36 WHEN 9 THEN NULL ELSE + + 50 END ) THEN NULL WHEN - 56 - - - 87 THEN + 22 ELSE NULL END
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3424
SELECT CAST( + CASE + NULLIF ( COALESCE ( + - 11, 41 ), - 52 ) WHEN COUNT( * ) * - + 75 THEN NULL ELSE + - 90 + + - 23 END AS SIGNED ) * - + 22 AS col0
----
2486

skipif mysql # not compatible
query I rowsort label-3424
SELECT CAST ( + CASE + NULLIF ( COALESCE ( + - 11, 41 ), - 52 ) WHEN COUNT ( * ) * - + 75 THEN NULL ELSE + - 90 + + - 23 END AS INTEGER ) * - + 22 AS col0
----
2486

query I rowsort
SELECT 5 + + 48 + + 40 - + - 39 + - 69 * - ( + 64 ) AS col0
----
4548

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3426
SELECT ALL 66 + - COALESCE ( COUNT( * ), + - 94 + 90 * - 85 * - + CAST( + ( + 80 ) AS SIGNED ) * + + COALESCE ( + COALESCE ( + 33, - 32 ), 30 * - 70 - - NULLIF ( 24, - 56 * - 3 + + CASE + 51 WHEN 0 THEN - 27 END ) ) ) + - - ( - 62 ) * 95
----
-5825

skipif mysql # not compatible
query I rowsort label-3426
SELECT ALL 66 + - COALESCE ( COUNT ( * ), + - 94 + 90 * - 85 * - + CAST ( + ( + 80 ) AS INTEGER ) * + + COALESCE ( + COALESCE ( + 33, - 32 ), 30 * - 70 - - NULLIF ( 24, - 56 * - 3 + + CASE + 51 WHEN 0 THEN - 27 END ) ) ) + - - ( - 62 ) * 95
----
-5825

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3427
SELECT ALL COUNT( * ) + COUNT( * ), NULLIF ( MAX( + 91 ), + + 81 ) DIV 2 AS col1
----
2
45

skipif mysql # not compatible
query II rowsort label-3427
SELECT ALL COUNT ( * ) + COUNT ( * ), NULLIF ( MAX ( + 91 ), + + 81 ) / 2 AS col1
----
2
45

onlyif mysql # aggregate syntax: 
query I rowsort label-3428
SELECT MIN( ALL - + 6 ) + - - CASE - - 80 WHEN + 26 - + - COALESCE ( - ( - - ( + - 35 ) ), + - 92, + - COUNT( * ) ) + 79 THEN - 76 * - 5 + - 13 WHEN + - 84 THEN NULL ELSE NULL END / 47 + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3428
SELECT MIN ( ALL - + 6 ) + - - CASE - - 80 WHEN + 26 - + - COALESCE ( - ( - - ( + - 35 ) ), + - 92, + - COUNT ( * ) ) + 79 THEN - 76 * - 5 + - 13 WHEN + - 84 THEN NULL ELSE NULL END / 47 + COUNT ( * )
----
NULL

query I rowsort
SELECT 89 * 50 AS col2
----
4450

onlyif mysql # aggregate syntax: 
query I rowsort label-3430
SELECT 31 - 92 - ( + + 27 ) + - MAX( DISTINCT 74 ) + COALESCE ( + 99, 91 ) * + + 23 * - - COUNT( * )
----
2115

skipif mysql # not compatible
query I rowsort label-3430
SELECT 31 - 92 - ( + + 27 ) + - MAX ( DISTINCT 74 ) + COALESCE ( + 99, 91 ) * + + 23 * - - COUNT ( * )
----
2115

onlyif mysql # aggregate syntax: 
query I rowsort label-3431
SELECT NULLIF ( MAX( ALL 59 ), + CASE 65 WHEN + 32 THEN + 18 ELSE NULL END ) + 79 * ( + + 9 ) * ( - ( + 1 ) ) + 26
----
-626

skipif mysql # not compatible
query I rowsort label-3431
SELECT NULLIF ( MAX ( ALL 59 ), + CASE 65 WHEN + 32 THEN + 18 ELSE NULL END ) + 79 * ( + + 9 ) * ( - ( + 1 ) ) + 26
----
-626

query I rowsort
SELECT 40 + 15 AS col0
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-3433
SELECT 43 * - - NULLIF ( COUNT( * ), 28 ) AS col2
----
43

skipif mysql # not compatible
query I rowsort label-3433
SELECT 43 * - - NULLIF ( COUNT ( * ), 28 ) AS col2
----
43

query I rowsort
SELECT 14 * + 45 AS col2
----
630

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3436
SELECT + MAX( ALL 93 ) AS col0
----
93

skipif mysql # not compatible
query I rowsort label-3436
SELECT + MAX ( ALL 93 ) AS col0
----
93

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3437
SELECT - 70 DIV - CASE + COUNT( DISTINCT 82 ) WHEN + 77 THEN + - SUM( + + 6 ) * COUNT( * ) WHEN + - 92 + + - ( + 79 ) THEN NULL WHEN AVG ( ALL - 19 ) THEN 54 ELSE + + COUNT( * ) END + COUNT( * ) AS col2
----
71

skipif mysql # not compatible
query I rowsort label-3437
SELECT - 70 / - CASE + COUNT ( DISTINCT 82 ) WHEN + 77 THEN + - SUM ( + + 6 ) * COUNT ( * ) WHEN + - 92 + + - ( + 79 ) THEN NULL WHEN AVG ( ALL - 19 ) THEN 54 ELSE + + COUNT ( * ) END + COUNT ( * ) AS col2
----
71

query I rowsort
SELECT DISTINCT - COALESCE ( 32, + 10, 15 - + 77 ) AS col1
----
-32

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

skipif mysql # not compatible
query I rowsort label-3439
SELECT ALL 52 / 97 / + COUNT ( * ) col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3440
SELECT MAX( - 92 ) col0, ( - 42 ) * + + 87 col0
----
-92
-3654

skipif mysql # not compatible
query II rowsort label-3440
SELECT MAX ( - 92 ) col0, ( - 42 ) * + + 87 col0
----
-92
-3654

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3442
SELECT 55 * 99 AS col1, - 87 + 17 * - COUNT( * ) + - 93 col0
----
5445
-197

skipif mysql # not compatible
query II rowsort label-3442
SELECT 55 * 99 AS col1, - 87 + 17 * - COUNT ( * ) + - 93 col0
----
5445
-197

query I rowsort
SELECT ALL + - 61 * - - 68 * + - 18 * - + 95 * 34 AS col1
----
-241164720

query I rowsort
SELECT + 44 * + - 99 + + 55 AS col1
----
-4301

query I rowsort
SELECT + 95 * + 69
----
6555

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3446
SELECT ALL - - CAST( - 18 AS SIGNED ) + - MIN( - 10 ) AS col2
----
-8

skipif mysql # not compatible
query I rowsort label-3446
SELECT ALL - - CAST ( - 18 AS INTEGER ) + - MIN ( - 10 ) AS col2
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-3447
SELECT DISTINCT - + 19 + + + COUNT( * )
----
-18

skipif mysql # not compatible
query I rowsort label-3447
SELECT DISTINCT - + 19 + + + COUNT ( * )
----
-18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3448
SELECT ALL - 22 + - ( - 59 ) + - 19 * - 70 + + COUNT( * ) * + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3448
SELECT ALL - 22 + - ( - 59 ) + - 19 * - 70 + + COUNT ( * ) * + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT ( + + 92 ) * - 43 - + 41 AS col1
----
-3997

query I rowsort
SELECT + 85 * + + 81
----
6885

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3451
SELECT DISTINCT - - 2 + - 30 + + COUNT( * ) DIV 47, + SUM( CASE - 95 WHEN - 93 THEN + 60 END ) * + - NULLIF ( - + 30, - 69 * - COUNT( * ) + 45 + 14 ) AS col1
----
-28
NULL

skipif mysql # not compatible
query II rowsort label-3451
SELECT DISTINCT - - 2 + - 30 + + COUNT ( * ) / 47, + SUM ( CASE - 95 WHEN - 93 THEN + 60 END ) * + - NULLIF ( - + 30, - 69 * - COUNT ( * ) + 45 + 14 ) AS col1
----
-28
NULL

query I rowsort
SELECT - + COALESCE ( 55, + - 76 ) - 40 * - 5
----
145

onlyif mysql # aggregate syntax: 
query I rowsort label-3453
SELECT DISTINCT - 33 + - + COUNT( * ) + 47
----
13

skipif mysql # not compatible
query I rowsort label-3453
SELECT DISTINCT - 33 + - + COUNT ( * ) + 47
----
13

query I rowsort
SELECT ALL + 78 * - - 40 AS col0
----
3120

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3455
SELECT + 89 * - - CAST( - + 83 AS SIGNED ) AS col2
----
-7387

skipif mysql # not compatible
query I rowsort label-3455
SELECT + 89 * - - CAST ( - + 83 AS INTEGER ) AS col2
----
-7387

query I rowsort
SELECT + 6 + - 72 * - + 40 * - + 28 AS col2
----
-80634

onlyif mysql # aggregate syntax: 
query I rowsort label-3457
SELECT DISTINCT NULLIF ( - 45, COUNT( * ) )
----
-45

skipif mysql # not compatible
query I rowsort label-3457
SELECT DISTINCT NULLIF ( - 45, COUNT ( * ) )
----
-45

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

query I rowsort
SELECT DISTINCT 94 * - 6 AS col1
----
-564

query I rowsort
SELECT - 58 - - 7 AS col2
----
-51

query I rowsort
SELECT + 23 * 38
----
874

query I rowsort
SELECT + 35 - 3 AS col2
----
32

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

skipif mysql # not compatible
query I rowsort label-3463
SELECT - 40 * + CAST ( NULL AS INTEGER ) + + 64
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3464
SELECT - 75 DIV - 51
----
1

skipif mysql # not compatible
query I rowsort label-3464
SELECT - 75 / - 51
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3465
SELECT + NULLIF ( + + 0, - ( CAST( NULL AS SIGNED ) ) * + 79 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3465
SELECT + NULLIF ( + + 0, - ( CAST ( NULL AS INTEGER ) ) * + 79 ) AS col0
----
0

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

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

query I rowsort
SELECT ALL 77 * 86 + - 5
----
6617

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

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

query I rowsort
SELECT ALL - ( 74 ) * - 5 + 9
----
379

onlyif mysql # aggregate syntax: 
query I rowsort label-3470
SELECT DISTINCT - 69 * + MIN( DISTINCT - 64 * 44 ) + - 10
----
194294

skipif mysql # not compatible
query I rowsort label-3470
SELECT DISTINCT - 69 * + MIN ( DISTINCT - 64 * 44 ) + - 10
----
194294

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

skipif mysql # not compatible
query I rowsort label-3471
SELECT ALL 89 * COUNT ( * ) + COUNT ( * ) AS col0
----
90

query I rowsort
SELECT 45 * 20 + + 24
----
924

onlyif mysql # aggregate syntax: 
query I rowsort label-3473
SELECT ALL 14 * NULLIF ( - CASE 76 WHEN 85 - 67 THEN NULL ELSE 70 * 76 END, + COUNT( * ) ) + - 20 * 72 AS col0
----
-75920

skipif mysql # not compatible
query I rowsort label-3473
SELECT ALL 14 * NULLIF ( - CASE 76 WHEN 85 - 67 THEN NULL ELSE 70 * 76 END, + COUNT ( * ) ) + - 20 * 72 AS col0
----
-75920

query I rowsort
SELECT + NULLIF ( - 68, - 49 )
----
-68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3475
SELECT NULLIF ( SUM( ALL 7 ), CAST( 58 AS SIGNED ) * + MAX( ALL 16 * 99 ) )
----
7

skipif mysql # not compatible
query I rowsort label-3475
SELECT NULLIF ( SUM ( ALL 7 ), CAST ( 58 AS INTEGER ) * + MAX ( ALL 16 * 99 ) )
----
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3476
SELECT ALL CAST( NULL AS SIGNED ) * COUNT( * ) + 34 * 82
----
NULL

skipif mysql # not compatible
query I rowsort label-3476
SELECT ALL CAST ( NULL AS INTEGER ) * COUNT ( * ) + 34 * 82
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3477
SELECT + 97 + CAST( - 93 + 87 AS SIGNED )
----
91

skipif mysql # not compatible
query I rowsort label-3477
SELECT + 97 + CAST ( - 93 + 87 AS INTEGER )
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-3478
SELECT + ( COUNT( * ) ) * NULLIF ( - 41, - 78 ) + 66 AS col2
----
25

skipif mysql # not compatible
query I rowsort label-3478
SELECT + ( COUNT ( * ) ) * NULLIF ( - 41, - 78 ) + 66 AS col2
----
25

query I rowsort
SELECT DISTINCT 38 * - 74
----
-2812

query I rowsort
SELECT - 50 + 21 AS col1
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-3481
SELECT ALL + SUM( ALL 50 ) * - 85 + 72 * - 27
----
-6194

skipif mysql # not compatible
query I rowsort label-3481
SELECT ALL + SUM ( ALL 50 ) * - 85 + 72 * - 27
----
-6194

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

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

query I rowsort
SELECT DISTINCT ( - 31 ) * 42 - 35
----
-1337

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3485
SELECT DISTINCT CASE 97 WHEN 8 THEN - COUNT( * ) * 25 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3485
SELECT DISTINCT CASE 97 WHEN 8 THEN - COUNT ( * ) * 25 END
----
NULL

query I rowsort
SELECT ALL 13 * + 49 - 28 AS col2
----
609

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3488
SELECT DISTINCT - NULLIF ( - COUNT( * ), + 59 ) DIV + 33 col2
----
0

skipif mysql # not compatible
query I rowsort label-3488
SELECT DISTINCT - NULLIF ( - COUNT ( * ), + 59 ) / + 33 col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3489
SELECT - CASE 12 WHEN - 6 THEN SUM( ALL + 91 ) / - 62 + - 99 * 7 END / + 3
----
NULL

skipif mysql # not compatible
query I rowsort label-3489
SELECT - CASE 12 WHEN - 6 THEN SUM ( ALL + 91 ) / - 62 + - 99 * 7 END / + 3
----
NULL

query I rowsort
SELECT - 89 * 29 col2
----
-2581

onlyif mysql # aggregate syntax: 
query I rowsort label-3491
SELECT - 1 + COUNT( + 91 ) * + 86 AS col1
----
85

skipif mysql # not compatible
query I rowsort label-3491
SELECT - 1 + COUNT ( + 91 ) * + 86 AS col1
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-3492
SELECT - CASE - 72 WHEN 86 THEN ( COUNT( * ) ) * + 33 + COUNT( ALL + 0 - 34 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-3492
SELECT - CASE - 72 WHEN 86 THEN ( COUNT ( * ) ) * + 33 + COUNT ( ALL + 0 - 34 ) END
----
NULL

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

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

skipif mysql # not compatible
query I rowsort label-3494
SELECT DISTINCT + 29 / CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3495
SELECT - 53 DIV COUNT( * ) AS col1
----
-53

skipif mysql # not compatible
query I rowsort label-3495
SELECT - 53 / COUNT ( * ) AS col1
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-3496
SELECT ALL + COUNT( * ) * + 23 col2
----
23

skipif mysql # not compatible
query I rowsort label-3496
SELECT ALL + COUNT ( * ) * + 23 col2
----
23

query I rowsort
SELECT - 71 + - 40 AS col1
----
-111

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3499
SELECT - 17 DIV 88
----
0

skipif mysql # not compatible
query I rowsort label-3499
SELECT - 17 / 88
----
0

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

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

query I rowsort
SELECT - 35 + - 48
----
-83

query I rowsort
SELECT + 99 * 78
----
7722

query I rowsort
SELECT - 11 + NULLIF ( - 87, 84 ) * 43
----
-3752

query I rowsort
SELECT + 17 - - 52 AS col0
----
69

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3506
SELECT - 63 * SUM( CASE 68 WHEN 92 + + 93 THEN NULL WHEN + 42 * 77 THEN + ( 14 ) + CAST( NULL AS DECIMAL ) WHEN - 27 + - 10 THEN - 48 ELSE NULL END * - 32 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3506
SELECT - 63 * SUM ( CASE 68 WHEN 92 + + 93 THEN NULL WHEN + 42 * 77 THEN + ( 14 ) + CAST ( NULL AS REAL ) WHEN - 27 + - 10 THEN - 48 ELSE NULL END * - 32 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3507
SELECT ALL + 58 DIV 77 + 8 AS col1
----
8

skipif mysql # not compatible
query I rowsort label-3507
SELECT ALL + 58 / 77 + 8 AS col1
----
8

onlyif mysql # DIV for integer division: 
query I rowsort label-3508
SELECT DISTINCT - + 66 DIV 74 + + 39
----
39

skipif mysql # not compatible
query I rowsort label-3508
SELECT DISTINCT - + 66 / 74 + + 39
----
39

onlyif mysql # DIV for integer division: 
query I rowsort label-3509
SELECT ALL + 89 DIV 75 + 51 AS col1
----
52

skipif mysql # not compatible
query I rowsort label-3509
SELECT ALL + 89 / 75 + 51 AS col1
----
52

query I rowsort
SELECT ALL 34 + 18 * 15
----
304

query I rowsort
SELECT 80 + - 10
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-3512
SELECT - MIN( + 16 )
----
-16

skipif mysql # not compatible
query I rowsort label-3512
SELECT - MIN ( + 16 )
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-3513
SELECT + + MAX( 43 ) AS col1
----
43

skipif mysql # not compatible
query I rowsort label-3513
SELECT + + MAX ( 43 ) AS col1
----
43

query I rowsort
SELECT ALL + 5 + 33 col0
----
38

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3516
SELECT ALL + 14 + + 99 DIV + 57
----
15

skipif mysql # not compatible
query I rowsort label-3516
SELECT ALL + 14 + + 99 / + 57
----
15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3517
SELECT ALL COUNT( * ) DIV 40 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3517
SELECT ALL COUNT ( * ) / 40 AS col0
----
0

query I rowsort
SELECT ALL - - 90 col1
----
90

query I rowsort
SELECT ALL 3 - + 45 AS col2
----
-42

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3520
SELECT + SUM( + 91 ) DIV 8 col2
----
11

skipif mysql # not compatible
query I rowsort label-3520
SELECT + SUM ( + 91 ) / 8 col2
----
11

query I rowsort
SELECT + 56 * - 44
----
-2464

query I rowsort
SELECT ALL - 87 * + 77
----
-6699

query I rowsort
SELECT 40 + + 23 AS col1
----
63

query I rowsort
SELECT ALL + ( 99 ) * - 16 AS col0
----
-1584

query I rowsort
SELECT COALESCE ( - 3, + 82 ) * - 74
----
222

onlyif mysql # DIV for integer division: 
query I rowsort label-3526
SELECT ALL 83 * 8 DIV 21 col0
----
31

skipif mysql # not compatible
query I rowsort label-3526
SELECT ALL 83 * 8 / 21 col0
----
31

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

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

query I rowsort
SELECT 33 - 94
----
-61

query I rowsort
SELECT 40 * 97 * 16
----
62080

query I rowsort
SELECT ALL - 44 + + 24 + - 21
----
-41

onlyif mysql # DIV for integer division: 
query I rowsort label-3531
SELECT 59 DIV 4 * 36 AS col0
----
504

skipif mysql # not compatible
query I rowsort label-3531
SELECT 59 / 4 * 36 AS col0
----
504

query I rowsort
SELECT 30 * 86 AS col0
----
2580

query I rowsort
SELECT 65 + 7 AS col0
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-3534
SELECT ALL - 8 + + - MIN( ALL + 40 ) AS col1
----
-48

skipif mysql # not compatible
query I rowsort label-3534
SELECT ALL - 8 + + - MIN ( ALL + 40 ) AS col1
----
-48

query I rowsort
SELECT ALL + 53 * + - 80 * - 79
----
334960

query I rowsort
SELECT ALL + ( - 8 ) + 29
----
21

query I rowsort
SELECT DISTINCT - 26 + - + 1 - - 21 AS col1
----
-6

query I rowsort
SELECT ALL - 81 + - + 13
----
-94

query I rowsort
SELECT ALL - 8 + - - 75 * 63
----
4717

query I rowsort
SELECT ALL + 54 * - 40
----
-2160

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

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

query I rowsort
SELECT ALL + - 50 + 99 AS col2
----
49

query I rowsort
SELECT 82 - - 65 col2
----
147

onlyif mysql # aggregate syntax: 
query I rowsort label-3544
SELECT - 54 * - - SUM( 67 ) + + COUNT( - 24 )
----
-3617

skipif mysql # not compatible
query I rowsort label-3544
SELECT - 54 * - - SUM ( 67 ) + + COUNT ( - 24 )
----
-3617

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

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

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

skipif mysql # not compatible
query I rowsort label-3546
SELECT DISTINCT + + 7 - - COUNT ( * ) AS col0
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-3547
SELECT - 78 * + + SUM( + ( 28 ) ) * COALESCE ( - 19 * MIN( DISTINCT + 43 ), - 70 ) + MIN( ALL 39 + + 89 )
----
1784456

skipif mysql # not compatible
query I rowsort label-3547
SELECT - 78 * + + SUM ( + ( 28 ) ) * COALESCE ( - 19 * MIN ( DISTINCT + 43 ), - 70 ) + MIN ( ALL 39 + + 89 )
----
1784456

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3548
SELECT DISTINCT 92 * + COALESCE ( CASE + 12 WHEN 30 THEN + 52 * + CASE + ( CAST( 14 AS DECIMAL ) ) WHEN 34 THEN 76 END WHEN - 90 / 63 THEN NULL ELSE NULL END, - 25 ) AS col0
----
-2300

skipif mysql # not compatible
query I rowsort label-3548
SELECT DISTINCT 92 * + COALESCE ( CASE + 12 WHEN 30 THEN + 52 * + CASE + ( CAST ( 14 AS REAL ) ) WHEN 34 THEN 76 END WHEN - 90 / 63 THEN NULL ELSE NULL END, - 25 ) AS col0
----
-2300

onlyif mysql # aggregate syntax: 
query I rowsort label-3549
SELECT + COUNT( * ) + - 36 * 6
----
-215

skipif mysql # not compatible
query I rowsort label-3549
SELECT + COUNT ( * ) + - 36 * 6
----
-215

query I rowsort
SELECT ALL + 33 * + + 44 - - NULLIF ( 70, - 59 )
----
1522

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3552
SELECT 53 * - + CAST( NULL AS SIGNED ) + - 26 + - 55
----
NULL

skipif mysql # not compatible
query I rowsort label-3552
SELECT 53 * - + CAST ( NULL AS INTEGER ) + - 26 + - 55
----
NULL

query I rowsort
SELECT - 54 - 42 * 8
----
-390

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3555
SELECT ( NULLIF ( - ( + 3 ), SUM( + CAST( + 49 AS SIGNED ) ) ) ) DIV 46
----
0

skipif mysql # not compatible
query I rowsort label-3555
SELECT ( NULLIF ( - ( + 3 ), SUM ( + CAST ( + 49 AS INTEGER ) ) ) ) / 46
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3556
SELECT ALL 24 DIV - NULLIF ( 66, CAST( ( 81 ) AS SIGNED ) ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3556
SELECT ALL 24 / - NULLIF ( 66, CAST ( ( 81 ) AS INTEGER ) ) AS col0
----
0

query I rowsort
SELECT 33 + - 39
----
-6

onlyif mysql # DIV for integer division: 
query I rowsort label-3558
SELECT 40 DIV ( + 53 )
----
0

skipif mysql # not compatible
query I rowsort label-3558
SELECT 40 / ( + 53 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3559
SELECT NULLIF ( COUNT( DISTINCT - + 76 ), - CASE + 47 WHEN - 39 + - 94 THEN 75 WHEN - 32 THEN NULL ELSE CASE 43 WHEN 91 * - COUNT( * ) THEN NULL ELSE - ( + CASE 45 WHEN 95 * + 53 THEN NULL WHEN 27 + CAST( NULL AS SIGNED ) * - 90 THEN NULL ELSE 48 * + 7 END ) END END * - 35 + 39 ) + - ( 46 ) AS col2
----
-45

skipif mysql # not compatible
query I rowsort label-3559
SELECT NULLIF ( COUNT ( DISTINCT - + 76 ), - CASE + 47 WHEN - 39 + - 94 THEN 75 WHEN - 32 THEN NULL ELSE CASE 43 WHEN 91 * - COUNT ( * ) THEN NULL ELSE - ( + CASE 45 WHEN 95 * + 53 THEN NULL WHEN 27 + CAST ( NULL AS INTEGER ) * - 90 THEN NULL ELSE 48 * + 7 END ) END END * - 35 + 39 ) + - ( 46 ) AS col2
----
-45

onlyif mysql # DIV for integer division: 
query I rowsort label-3560
SELECT DISTINCT 71 DIV - 45
----
-1

skipif mysql # not compatible
query I rowsort label-3560
SELECT DISTINCT 71 / - 45
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3561
SELECT ALL NULLIF ( + + NULLIF ( 35, + 64 * ( - MAX( ALL 34 ) ) ), 98 ) + + COUNT( * )
----
36

skipif mysql # not compatible
query I rowsort label-3561
SELECT ALL NULLIF ( + + NULLIF ( 35, + 64 * ( - MAX ( ALL 34 ) ) ), 98 ) + + COUNT ( * )
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-3562
SELECT ALL 88 + 82 * 23 - COUNT( * )
----
1973

skipif mysql # not compatible
query I rowsort label-3562
SELECT ALL 88 + 82 * 23 - COUNT ( * )
----
1973

query I rowsort
SELECT 30 + - 60
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-3564
SELECT - MAX( DISTINCT - 2 )
----
2

skipif mysql # not compatible
query I rowsort label-3564
SELECT - MAX ( DISTINCT - 2 )
----
2

query I rowsort
SELECT ALL 82 * - + 39 * - 38
----
121524

onlyif mysql # aggregate syntax: 
query I rowsort label-3566
SELECT COALESCE ( + - 89, + 43, 35 ) + + COUNT( * )
----
-88

skipif mysql # not compatible
query I rowsort label-3566
SELECT COALESCE ( + - 89, + 43, 35 ) + + COUNT ( * )
----
-88

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

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

query I rowsort
SELECT ALL 70 + - + 36 AS col1
----
34

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3569
SELECT ALL - 13 + + 57 * CASE + CAST( 44 AS DECIMAL ) WHEN 27 THEN - COUNT( * ) * + 72 + 11 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3569
SELECT ALL - 13 + + 57 * CASE + CAST ( 44 AS REAL ) WHEN 27 THEN - COUNT ( * ) * + 72 + 11 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3570
SELECT ALL + 49 + + NULLIF ( + 87, + 90 ) - + MIN( - 44 )
----
180

skipif mysql # not compatible
query I rowsort label-3570
SELECT ALL + 49 + + NULLIF ( + 87, + 90 ) - + MIN ( - 44 )
----
180

onlyif mysql # DIV for integer division: 
query I rowsort label-3571
SELECT ALL 64 + + 66 - 36 DIV + 50 AS col2
----
130

skipif mysql # not compatible
query I rowsort label-3571
SELECT ALL 64 + + 66 - 36 / + 50 AS col2
----
130

onlyif mysql # aggregate syntax: 
query II rowsort label-3572
SELECT DISTINCT 88, 76 * - - ( - COALESCE ( + 31, COUNT( * ) + + 33 ) ) * - 36 col0
----
88
84816

skipif mysql # not compatible
query II rowsort label-3572
SELECT DISTINCT 88, 76 * - - ( - COALESCE ( + 31, COUNT ( * ) + + 33 ) ) * - 36 col0
----
88
84816

query I rowsort
SELECT + 46 + 51
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3574
SELECT + COUNT( * ) + MAX( ALL - 48 ) col2
----
-47

skipif mysql # not compatible
query I rowsort label-3574
SELECT + COUNT ( * ) + MAX ( ALL - 48 ) col2
----
-47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3575
SELECT - CAST( + 10 AS SIGNED ) - - ( - 30 )
----
-40

skipif mysql # not compatible
query I rowsort label-3575
SELECT - CAST ( + 10 AS INTEGER ) - - ( - 30 )
----
-40

query I rowsort
SELECT + 39 + - 5 AS col2
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-3577
SELECT - 9 + COUNT( ALL - 6 )
----
-8

skipif mysql # not compatible
query I rowsort label-3577
SELECT - 9 + COUNT ( ALL - 6 )
----
-8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3578
SELECT ALL - + CAST( NULL AS SIGNED ) * MAX( + 81 ) - + 37 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3578
SELECT ALL - + CAST ( NULL AS INTEGER ) * MAX ( + 81 ) - + 37 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3579
SELECT ALL + MAX( ALL + 3 ) AS col1
----
3

skipif mysql # not compatible
query I rowsort label-3579
SELECT ALL + MAX ( ALL + 3 ) AS col1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3580
SELECT - - CASE + ( - 78 ) WHEN 84 THEN NULL WHEN + COUNT( * ) THEN NULLIF ( - 57, - 5 ) + - 49 ELSE NULL END * - 92 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3580
SELECT - - CASE + ( - 78 ) WHEN 84 THEN NULL WHEN + COUNT ( * ) THEN NULLIF ( - 57, - 5 ) + - 49 ELSE NULL END * - 92 AS col2
----
NULL

query II rowsort
SELECT + - 89 AS col2, - 4 AS col2
----
-89
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-3582
SELECT ALL + 97 * COALESCE ( - 79, + 60, 64 * + SUM( 32 ) ) AS col0
----
-7663

skipif mysql # not compatible
query I rowsort label-3582
SELECT ALL + 97 * COALESCE ( - 79, + 60, 64 * + SUM ( 32 ) ) AS col0
----
-7663

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3583
SELECT + ( 85 ) * - CAST( MAX( ( - 62 ) ) AS SIGNED ) * + MAX( 56 * + NULLIF ( 78 * 11, 97 ) ) + + 97
----
253213057

skipif mysql # not compatible
query I rowsort label-3583
SELECT + ( 85 ) * - CAST ( MAX ( ( - 62 ) ) AS INTEGER ) * + MAX ( 56 * + NULLIF ( 78 * 11, 97 ) ) + + 97
----
253213057

onlyif mysql # aggregate syntax: 
query I rowsort label-3584
SELECT ALL 18 * + + COUNT( * ) + 95 - - 70
----
183

skipif mysql # not compatible
query I rowsort label-3584
SELECT ALL 18 * + + COUNT ( * ) + 95 - - 70
----
183

query I rowsort
SELECT ALL + 53 * - + 59 * - 22 * - ( 89 ) AS col1
----
-6122666

onlyif mysql # aggregate syntax: 
query I rowsort label-3586
SELECT DISTINCT - 95 * + COUNT( * ) + + MIN( ALL 54 )
----
-41

skipif mysql # not compatible
query I rowsort label-3586
SELECT DISTINCT - 95 * + COUNT ( * ) + + MIN ( ALL 54 )
----
-41

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3588
SELECT - COUNT( * ) * 33 DIV 65 DIV + 52
----
0

skipif mysql # not compatible
query I rowsort label-3588
SELECT - COUNT ( * ) * 33 / 65 / + 52
----
0

query I rowsort
SELECT DISTINCT + + 5 * + 5 * + 29 + 55 AS col2
----
780

query II rowsort
SELECT ALL + - 85 AS col0, + 56 col0
----
-85
56

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3592
SELECT - + 93 * + COALESCE ( + - 98, - 12 DIV + CAST( NULL AS SIGNED ), - ( - COUNT( DISTINCT + 9 ) ) )
----
9114

skipif mysql # not compatible
query I rowsort label-3592
SELECT - + 93 * + COALESCE ( + - 98, - 12 / + CAST ( NULL AS INTEGER ), - ( - COUNT ( DISTINCT + 9 ) ) )
----
9114

query II rowsort
SELECT + 74 col1, - 23 AS col2
----
74
-23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3594
SELECT - COUNT( * ) * - COALESCE ( SUM( 43 ), - COUNT( * ) DIV ( 94 * 89 ), - 13 ) + - COUNT( * )
----
42

skipif mysql # not compatible
query I rowsort label-3594
SELECT - COUNT ( * ) * - COALESCE ( SUM ( 43 ), - COUNT ( * ) / ( 94 * 89 ), - 13 ) + - COUNT ( * )
----
42

query I rowsort
SELECT - - 65 * - ( + 49 )
----
-3185

onlyif mysql # aggregate syntax: 
query I rowsort label-3596
SELECT - ( - COUNT( * ) ) * - + 24 + - 87 AS col2
----
-111

skipif mysql # not compatible
query I rowsort label-3596
SELECT - ( - COUNT ( * ) ) * - + 24 + - 87 AS col2
----
-111

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3597
SELECT ALL + 21 * - COALESCE ( + 92, - 45 DIV - 86, + 33, - SUM( ALL + ( + 73 ) ) ) + 41
----
-1891

skipif mysql # not compatible
query I rowsort label-3597
SELECT ALL + 21 * - COALESCE ( + 92, - 45 / - 86, + 33, - SUM ( ALL + ( + 73 ) ) ) + 41
----
-1891

query I rowsort
SELECT ALL - 47 * + 75 + - 88 AS col0
----
-3613

onlyif mysql # aggregate syntax: 
query I rowsort label-3599
SELECT DISTINCT + 3 * 18 + - + 75 + - + MIN( + 72 ) * 52 col0
----
-3765

skipif mysql # not compatible
query I rowsort label-3599
SELECT DISTINCT + 3 * 18 + - + 75 + - + MIN ( + 72 ) * 52 col0
----
-3765

query I rowsort
SELECT ALL - 53 * - 54 + + 40 AS col2
----
2902

query I rowsort
SELECT ALL + 70 * - 46 + + 32
----
-3188

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3602
SELECT - CAST( NULL AS SIGNED ) * + 12 * - + 36 - - 19 + 34 / - 82
----
NULL

skipif mysql # not compatible
query I rowsort label-3602
SELECT - CAST ( NULL AS INTEGER ) * + 12 * - + 36 - - 19 + 34 / - 82
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3603
SELECT - 71 - - ( 21 ) - - 11 - 47 * - COUNT( * ) AS col1
----
8

skipif mysql # not compatible
query I rowsort label-3603
SELECT - 71 - - ( 21 ) - - 11 - 47 * - COUNT ( * ) AS col1
----
8

query I rowsort
SELECT - COALESCE ( - + 32, + 96 ) AS col1
----
32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3605
SELECT DISTINCT ( - + 33 ) AS col1, CAST( + 46 AS SIGNED ) - - MIN( ALL 26 )
----
-33
72

skipif mysql # not compatible
query II rowsort label-3605
SELECT DISTINCT ( - + 33 ) AS col1, CAST ( + 46 AS INTEGER ) - - MIN ( ALL 26 )
----
-33
72

onlyif mysql # aggregate syntax: 
query I rowsort label-3606
SELECT DISTINCT COUNT( * ) * + - 94 + 47 + 84 - - 78
----
115

skipif mysql # not compatible
query I rowsort label-3606
SELECT DISTINCT COUNT ( * ) * + - 94 + 47 + 84 - - 78
----
115

onlyif mysql # aggregate syntax: 
query I rowsort label-3607
SELECT ALL + COUNT( * ) + 3 + COUNT( * ) * - + 84 * - NULLIF ( + 46, - 15 ) AS col0
----
3868

skipif mysql # not compatible
query I rowsort label-3607
SELECT ALL + COUNT ( * ) + 3 + COUNT ( * ) * - + 84 * - NULLIF ( + 46, - 15 ) AS col0
----
3868

onlyif mysql # aggregate syntax: 
query I rowsort label-3608
SELECT ALL 35 + + MIN( ALL 62 ) AS col2
----
97

skipif mysql # not compatible
query I rowsort label-3608
SELECT ALL 35 + + MIN ( ALL 62 ) AS col2
----
97

query I rowsort
SELECT + 41 * + + 6 AS col1
----
246

onlyif mysql # DIV for integer division: 
query I rowsort label-3610
SELECT + 58 DIV - + 96 col2
----
0

skipif mysql # not compatible
query I rowsort label-3610
SELECT + 58 / - + 96 col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3611
SELECT + NULLIF ( - - 50, - - 71 ) - - + 67 + COUNT( * ) / CAST( NULL AS SIGNED ) * COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3611
SELECT + NULLIF ( - - 50, - - 71 ) - - + 67 + COUNT ( * ) / CAST ( NULL AS INTEGER ) * COUNT ( * ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3612
SELECT DISTINCT 81 DIV 36 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-3612
SELECT DISTINCT 81 / 36 AS col1
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3613
SELECT + 5 * - - COALESCE ( - CASE 48 WHEN - 42 THEN COALESCE ( 79, + 55 + 25 ) * - CASE WHEN ( COUNT( * ) - 29 ) NOT BETWEEN ( - 52 + + CAST( NULL AS SIGNED ) * 92 ) AND ( 8 * - 98 ) THEN + COUNT( * ) + 33 ELSE + 93 END + - COALESCE ( + 1, + COALESCE ( - 54, 69 * - 33 + CASE + 54 WHEN - 40 * MIN( ALL 85 ) THEN NULL ELSE 36 + - 30 END DIV 79, 94 DIV 56 ) * - COALESCE ( - 39, + 89, - 94 + + SUM( ALL ( 0 ) ) ), + 79 + + 79 DIV 2 ) WHEN - COALESCE ( ( CAST( - 16 AS SIGNED ) ), AVG ( ALL 61 ) * 52, - 95 ) THEN - 65 + - 75 END, - 70 )
----
-350

skipif mysql # not compatible
query I rowsort label-3613
SELECT + 5 * - - COALESCE ( - CASE 48 WHEN - 42 THEN COALESCE ( 79, + 55 + 25 ) * - CASE WHEN ( COUNT ( * ) - 29 ) NOT BETWEEN ( - 52 + + CAST ( NULL AS INTEGER ) * 92 ) AND ( 8 * - 98 ) THEN + COUNT ( * ) + 33 ELSE + 93 END + - COALESCE ( + 1, + COALESCE ( - 54, 69 * - 33 + CASE + 54 WHEN - 40 * MIN ( ALL 85 ) THEN NULL ELSE 36 + - 30 END / 79, 94 / 56 ) * - COALESCE ( - 39, + 89, - 94 + + SUM ( ALL ( 0 ) ) ), + 79 + + 79 / 2 ) WHEN - COALESCE ( ( CAST ( - 16 AS INTEGER ) ), AVG ( ALL 61 ) * 52, - 95 ) THEN - 65 + - 75 END, - 70 )
----
-350

onlyif mysql # DIV for integer division: 
query I rowsort label-3614
SELECT ALL 16 DIV + 85 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3614
SELECT ALL 16 / + 85 AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3615
SELECT + 22 DIV - + COUNT( * ) AS col2
----
-22

skipif mysql # not compatible
query I rowsort label-3615
SELECT + 22 / - + COUNT ( * ) AS col2
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-3616
SELECT - CASE 8 WHEN + COUNT( * ) THEN NULL WHEN 64 THEN 78 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3616
SELECT - CASE 8 WHEN + COUNT ( * ) THEN NULL WHEN 64 THEN 78 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3617
SELECT - - MAX( DISTINCT 77 )
----
77

skipif mysql # not compatible
query I rowsort label-3617
SELECT - - MAX ( DISTINCT 77 )
----
77

query I rowsort
SELECT + + 82 * + 57
----
4674

query I rowsort
SELECT DISTINCT + ( 82 ) - - 95 AS col2
----
177

onlyif mysql # aggregate syntax: 
query I rowsort label-3620
SELECT ALL + CASE + 7 WHEN + 10 + + 91 + + COALESCE ( + 73, - 79 + + MIN( DISTINCT - 69 ), + 80 / - 53 ) THEN + COUNT( * ) END * + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3620
SELECT ALL + CASE + 7 WHEN + 10 + + 91 + + COALESCE ( + 73, - 79 + + MIN ( DISTINCT - 69 ), + 80 / - 53 ) THEN + COUNT ( * ) END * + COUNT ( * )
----
NULL

query I rowsort
SELECT + + 77 + - 70 AS col0
----
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3622
SELECT ALL + - CASE + - 16 WHEN - + 77 * + CAST( NULL AS SIGNED ) + - 92 / 39 THEN + 64 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3622
SELECT ALL + - CASE + - 16 WHEN - + 77 * + CAST ( NULL AS INTEGER ) + - 92 / 39 THEN + 64 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3623
SELECT + MAX( + 29 ) * + 75 + 92 AS col2
----
2267

skipif mysql # not compatible
query I rowsort label-3623
SELECT + MAX ( + 29 ) * + 75 + 92 AS col2
----
2267

onlyif mysql # aggregate syntax: 
query I rowsort label-3624
SELECT + CASE 13 WHEN + 67 + COALESCE ( + 10, + 51 / + 53, 73 ) + - CASE - 74 WHEN 38 THEN NULL ELSE - NULLIF ( + 83, 60 + - ( 30 + - 28 ) ) / + 97 END THEN 6 + + 61 ELSE + COUNT( * ) END AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3624
SELECT + CASE 13 WHEN + 67 + COALESCE ( + 10, + 51 / + 53, 73 ) + - CASE - 74 WHEN 38 THEN NULL ELSE - NULLIF ( + 83, 60 + - ( 30 + - 28 ) ) / + 97 END THEN 6 + + 61 ELSE + COUNT ( * ) END AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3625
SELECT COUNT( * ) * + SUM( DISTINCT - 95 ) + + 81
----
-14

skipif mysql # not compatible
query I rowsort label-3625
SELECT COUNT ( * ) * + SUM ( DISTINCT - 95 ) + + 81
----
-14

onlyif mysql # DIV for integer division: 
query I rowsort label-3626
SELECT ALL - - 90 DIV - 8 + - + 70 - 3
----
-84

skipif mysql # not compatible
query I rowsort label-3626
SELECT ALL - - 90 / - 8 + - + 70 - 3
----
-84

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3627
SELECT - 19 DIV - 44 + + 25 * - COUNT( * ) AS col1
----
-25

skipif mysql # not compatible
query I rowsort label-3627
SELECT - 19 / - 44 + + 25 * - COUNT ( * ) AS col1
----
-25

query I rowsort
SELECT ALL + + NULLIF ( 15, + 67 * - 62 )
----
15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3629
SELECT - - MAX( - + 72 ) DIV 10 + + COUNT( * ) + 93
----
87

skipif mysql # not compatible
query I rowsort label-3629
SELECT - - MAX ( - + 72 ) / 10 + + COUNT ( * ) + 93
----
87

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3630
SELECT ALL - 89 DIV + + CAST( - 10 AS SIGNED ) + 63 * 68 AS col1
----
4292

skipif mysql # not compatible
query I rowsort label-3630
SELECT ALL - 89 / + + CAST ( - 10 AS INTEGER ) + 63 * 68 AS col1
----
4292

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3631
SELECT - + CAST( NULL AS SIGNED ) - SUM( + 52 ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3631
SELECT - + CAST ( NULL AS INTEGER ) - SUM ( + 52 ) col2
----
NULL

query I rowsort
SELECT ALL 59 * - ( - + 85 ) * 22 - - ( + 2 ) * - 62 AS col0
----
110206

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3633
SELECT ALL - + 5 DIV + MIN( ALL + - 82 ) + - 81
----
-81

skipif mysql # not compatible
query I rowsort label-3633
SELECT ALL - + 5 / + MIN ( ALL + - 82 ) + - 81
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-3634
SELECT - 19 * - CASE - MAX( + - 77 ) WHEN + 92 THEN NULL WHEN MAX( 48 ) THEN - SUM( DISTINCT - ( 75 ) ) * - 69 - + 41 ELSE NULL END + 40 / + 35
----
NULL

skipif mysql # not compatible
query I rowsort label-3634
SELECT - 19 * - CASE - MAX ( + - 77 ) WHEN + 92 THEN NULL WHEN MAX ( 48 ) THEN - SUM ( DISTINCT - ( 75 ) ) * - 69 - + 41 ELSE NULL END + 40 / + 35
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3635
SELECT DISTINCT - ( COUNT( * ) ) * 1
----
-1

skipif mysql # not compatible
query I rowsort label-3635
SELECT DISTINCT - ( COUNT ( * ) ) * 1
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3636
SELECT + 1 DIV SUM( DISTINCT + + 3 ) AS col1, - 43 * COALESCE ( 66, - 15, - 15 + 54 ) AS col0
----
0
-2838

skipif mysql # not compatible
query II rowsort label-3636
SELECT + 1 / SUM ( DISTINCT + + 3 ) AS col1, - 43 * COALESCE ( 66, - 15, - 15 + 54 ) AS col0
----
0
-2838

query I rowsort
SELECT 93 * 33 + + + 57
----
3126

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3638
SELECT ALL - 75 DIV - 35 + - CAST( 33 AS SIGNED ) AS col0
----
-31

skipif mysql # not compatible
query I rowsort label-3638
SELECT ALL - 75 / - 35 + - CAST ( 33 AS INTEGER ) AS col0
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-3639
SELECT - 83 + MAX( + + 19 ) AS col2
----
-64

skipif mysql # not compatible
query I rowsort label-3639
SELECT - 83 + MAX ( + + 19 ) AS col2
----
-64

query I rowsort
SELECT ALL + 26 * + 44 * - 54 + - 80 AS col1
----
-61856

onlyif mysql # aggregate syntax: 
query I rowsort label-3641
SELECT - 95 + + COUNT( * ) col0
----
-94

skipif mysql # not compatible
query I rowsort label-3641
SELECT - 95 + + COUNT ( * ) col0
----
-94

query II rowsort
SELECT ALL + 94, 26 AS col1
----
94
26

query I rowsort
SELECT - 12 * - 75
----
900

query I rowsort
SELECT - ( - 84 ) * + 15 * - 38 + ( + 99 ) AS col0
----
-47781

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3645
SELECT - MIN( DISTINCT - - 63 ) - - - COUNT( * ) DIV 98
----
-63

skipif mysql # not compatible
query I rowsort label-3645
SELECT - MIN ( DISTINCT - - 63 ) - - - COUNT ( * ) / 98
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-3646
SELECT ALL + NULLIF ( 5, - + 54 ) * + + COUNT( + 71 ) * + 37 + - 14 col0
----
171

skipif mysql # not compatible
query I rowsort label-3646
SELECT ALL + NULLIF ( 5, - + 54 ) * + + COUNT ( + 71 ) * + 37 + - 14 col0
----
171

onlyif mysql # aggregate syntax: 
query I rowsort label-3647
SELECT DISTINCT 8 * 86 + 15 * COUNT( ALL - - 33 ) * - COUNT( * ) AS col2
----
673

skipif mysql # not compatible
query I rowsort label-3647
SELECT DISTINCT 8 * 86 + 15 * COUNT ( ALL - - 33 ) * - COUNT ( * ) AS col2
----
673

query I rowsort
SELECT DISTINCT 94 * 79
----
7426

query I rowsort
SELECT ALL - 49 * - + 39 AS col0
----
1911

query I rowsort
SELECT ALL + 95 - ( - + 26 ) AS col0
----
121

query I rowsort
SELECT ALL - 23 * - + NULLIF ( + 56, - 43 * + 9 / 10 + - 69 )
----
1288

onlyif mysql # aggregate syntax: 
query I rowsort label-3652
SELECT ALL - SUM( ALL + 6 ) * - 35 * 66 AS col1
----
13860

skipif mysql # not compatible
query I rowsort label-3652
SELECT ALL - SUM ( ALL + 6 ) * - 35 * 66 AS col1
----
13860

onlyif mysql # aggregate syntax: 
query I rowsort label-3653
SELECT + 35 * + + MAX( DISTINCT - - 78 ) - 44 AS col0
----
2686

skipif mysql # not compatible
query I rowsort label-3653
SELECT + 35 * + + MAX ( DISTINCT - - 78 ) - 44 AS col0
----
2686

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3654
SELECT - 1 * 99 + CASE 11 WHEN + 68 * CAST( NULL AS SIGNED ) + 49 THEN NULL ELSE NULLIF ( 77, MIN( 93 ) ) END
----
-22

skipif mysql # not compatible
query I rowsort label-3654
SELECT - 1 * 99 + CASE 11 WHEN + 68 * CAST ( NULL AS INTEGER ) + 49 THEN NULL ELSE NULLIF ( 77, MIN ( 93 ) ) END
----
-22

query I rowsort
SELECT 49 + + + 61 AS col0
----
110

query I rowsort
SELECT - 84 + + 44 AS col2
----
-40

onlyif mysql # DIV for integer division: 
query I rowsort label-3657
SELECT - 98 DIV + + 74 + 25 AS col1
----
24

skipif mysql # not compatible
query I rowsort label-3657
SELECT - 98 / + + 74 + 25 AS col1
----
24

query I rowsort
SELECT ALL + ( 10 ) * 87
----
870

onlyif mysql # aggregate syntax: 
query I rowsort label-3659
SELECT ( CASE - 13 WHEN + ( 10 ) THEN NULL WHEN + 57 / 69 THEN + 99 END ) * + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3659
SELECT ( CASE - 13 WHEN + ( 10 ) THEN NULL WHEN + 57 / 69 THEN + 99 END ) * + COUNT ( * )
----
NULL

query I rowsort
SELECT + ( + + 87 ) + + 50 * + 10 + - 33 col1
----
554

onlyif mysql # aggregate syntax: 
query I rowsort label-3661
SELECT + 51 * + + 95 * ( + SUM( + 20 ) ) AS col1
----
96900

skipif mysql # not compatible
query I rowsort label-3661
SELECT + 51 * + + 95 * ( + SUM ( + 20 ) ) AS col1
----
96900

onlyif mysql # aggregate syntax: 
query I rowsort label-3662
SELECT ALL MIN( ALL 40 ) * - + 71 + - - 22 + + + 61 * 83
----
2245

skipif mysql # not compatible
query I rowsort label-3662
SELECT ALL MIN ( ALL 40 ) * - + 71 + - - 22 + + + 61 * 83
----
2245

query I rowsort
SELECT ALL 47 + - 87 + - + 10 * 87 AS col2
----
-910

query I rowsort
SELECT DISTINCT + 52 + + - 50 AS col1
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3665
SELECT DISTINCT - CASE + 84 WHEN CAST( - 22 AS SIGNED ) THEN NULLIF ( + CASE WHEN 11 IS NOT NULL THEN - 43 WHEN ( + 67 ) < NULL THEN NULL END, CASE 97 WHEN - 65 THEN NULL WHEN + 75 THEN 14 + 55 WHEN + MIN( ALL - 74 ) / 43 THEN NULL ELSE NULL END + + COUNT( - 53 + + 37 ) * 95 ) ELSE NULL END + + 49 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3665
SELECT DISTINCT - CASE + 84 WHEN CAST ( - 22 AS INTEGER ) THEN NULLIF ( + CASE WHEN 11 IS NOT NULL THEN - 43 WHEN ( + 67 ) < NULL THEN NULL END, CASE 97 WHEN - 65 THEN NULL WHEN + 75 THEN 14 + 55 WHEN + MIN ( ALL - 74 ) / 43 THEN NULL ELSE NULL END + + COUNT ( - 53 + + 37 ) * 95 ) ELSE NULL END + + 49 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3666
SELECT ALL 70 + + 99 - COUNT( * ), + 14 AS col1
----
168
14

skipif mysql # not compatible
query II rowsort label-3666
SELECT ALL 70 + + 99 - COUNT ( * ), + 14 AS col1
----
168
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3667
SELECT + NULLIF ( 99, + 2 ) AS col0, + 17 + + NULLIF ( ( - 19 ), COUNT( * ) + 81 ) * CASE 34 / + 84 WHEN CAST( 85 AS SIGNED ) THEN COALESCE ( + 43, + CAST( NULL AS SIGNED ) - + 92 / 94 ) - + 87 * ( CASE + 2 WHEN CASE + 17 WHEN - 33 THEN NULL WHEN 57 - - 72 THEN NULL WHEN 87 THEN NULL ELSE - 6 END + 97 THEN - 16 ELSE 56 + 97 END + + 77 ) ELSE NULL END AS col0
----
99
NULL

skipif mysql # not compatible
query II rowsort label-3667
SELECT + NULLIF ( 99, + 2 ) AS col0, + 17 + + NULLIF ( ( - 19 ), COUNT ( * ) + 81 ) * CASE 34 / + 84 WHEN CAST ( 85 AS INTEGER ) THEN COALESCE ( + 43, + CAST ( NULL AS INTEGER ) - + 92 / 94 ) - + 87 * ( CASE + 2 WHEN CASE + 17 WHEN - 33 THEN NULL WHEN 57 - - 72 THEN NULL WHEN 87 THEN NULL ELSE - 6 END + 97 THEN - 16 ELSE 56 + 97 END + + 77 ) ELSE NULL END AS col0
----
99
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-3668
SELECT 0 AS col1, - 44 DIV 88 AS col0
----
0
0

skipif mysql # not compatible
query II rowsort label-3668
SELECT 0 AS col1, - 44 / 88 AS col0
----
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3669
SELECT 53 DIV + 8
----
6

skipif mysql # not compatible
query I rowsort label-3669
SELECT 53 / + 8
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-3670
SELECT COUNT( * ) * - NULLIF ( + COUNT( * ), - - 86 ) * - - 18 * - MIN( ALL + 21 ) * + 73
----
27594

skipif mysql # not compatible
query I rowsort label-3670
SELECT COUNT ( * ) * - NULLIF ( + COUNT ( * ), - - 86 ) * - - 18 * - MIN ( ALL + 21 ) * + 73
----
27594

query II rowsort
SELECT ALL - 94, + 56 AS col0
----
-94
56

query II rowsort
SELECT 89 AS col2, - 62 AS col0
----
89
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-3673
SELECT COALESCE ( + 13, MIN( ALL 10 ) - 28 + - 5 ) * 56
----
728

skipif mysql # not compatible
query I rowsort label-3673
SELECT COALESCE ( + 13, MIN ( ALL 10 ) - 28 + - 5 ) * 56
----
728

onlyif mysql # aggregate syntax: 
query I rowsort label-3674
SELECT ALL CASE - - COUNT( * ) WHEN - COUNT( * ) * 31 + 1 + 2 * + 3 THEN NULL WHEN 14 THEN + COUNT( * ) END / COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3674
SELECT ALL CASE - - COUNT ( * ) WHEN - COUNT ( * ) * 31 + 1 + 2 * + 3 THEN NULL WHEN 14 THEN + COUNT ( * ) END / COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3675
SELECT DISTINCT ( - COUNT( * ) ) * - COUNT( * ) * + 46 * - - 12
----
552

skipif mysql # not compatible
query I rowsort label-3675
SELECT DISTINCT ( - COUNT ( * ) ) * - COUNT ( * ) * + 46 * - - 12
----
552

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3676
SELECT DISTINCT 64 - + CAST( + 76 AS SIGNED ) * + 7
----
-468

skipif mysql # not compatible
query I rowsort label-3676
SELECT DISTINCT 64 - + CAST ( + 76 AS INTEGER ) * + 7
----
-468

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3677
SELECT NULLIF ( 4, + - 69 / - CASE - ( + + COALESCE ( - ( + 85 ), 8 ) ) WHEN AVG ( CAST( NULL AS SIGNED ) ) THEN NULL WHEN + 66 THEN - 93 * + 13 WHEN + 34 THEN NULL END * COUNT( * ) + + 81 ) * - COUNT( ALL 85 * 76 )
----
-4

skipif mysql # not compatible
query I rowsort label-3677
SELECT NULLIF ( 4, + - 69 / - CASE - ( + + COALESCE ( - ( + 85 ), 8 ) ) WHEN AVG ( CAST ( NULL AS INTEGER ) ) THEN NULL WHEN + 66 THEN - 93 * + 13 WHEN + 34 THEN NULL END * COUNT ( * ) + + 81 ) * - COUNT ( ALL 85 * 76 )
----
-4

onlyif mysql # DIV for integer division: 
query I rowsort label-3678
SELECT + 66 * - - 33 * + + 34 + + 84 * + 27 DIV 1 * + 52 AS col0
----
191988

skipif mysql # not compatible
query I rowsort label-3678
SELECT + 66 * - - 33 * + + 34 + + 84 * + 27 / 1 * + 52 AS col0
----
191988

query I rowsort
SELECT DISTINCT + 18 * + 92
----
1656

query I rowsort
SELECT ALL - 63 - + 78 * 92 + - + 73
----
-7312

onlyif mysql # aggregate syntax: 
query I rowsort label-3681
SELECT DISTINCT + 9 * - MIN( 42 ) AS col0
----
-378

skipif mysql # not compatible
query I rowsort label-3681
SELECT DISTINCT + 9 * - MIN ( 42 ) AS col0
----
-378

onlyif mysql # DIV for integer division: 
query I rowsort label-3682
SELECT 93 DIV - - 78
----
1

skipif mysql # not compatible
query I rowsort label-3682
SELECT 93 / - - 78
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3683
SELECT ALL - COALESCE ( - 16, + 85 - - - 56 + + - 83 + - 7 - ( 48 - - 71 DIV - 30 ) * - CASE 65 + - COALESCE ( - 76 + - MIN( 1 ), - 98 ) * 36 WHEN - 54 THEN - SUM( DISTINCT - 60 ) DIV COUNT( * ) + 19 * MIN( - 18 * 89 ) WHEN 94 THEN + NULLIF ( + 8, - CASE - COALESCE ( - 34, - 84 * NULLIF ( + 45, - 26 ) ) WHEN 58 DIV 77 THEN - 38 ELSE + 39 END ) WHEN - ( ( 46 ) ) THEN NULL WHEN - 39 - 43 * - 3 THEN NULL END )
----
16

skipif mysql # not compatible
query I rowsort label-3683
SELECT ALL - COALESCE ( - 16, + 85 - - - 56 + + - 83 + - 7 - ( 48 - - 71 / - 30 ) * - CASE 65 + - COALESCE ( - 76 + - MIN ( 1 ), - 98 ) * 36 WHEN - 54 THEN - SUM ( DISTINCT - 60 ) / COUNT ( * ) + 19 * MIN ( - 18 * 89 ) WHEN 94 THEN + NULLIF ( + 8, - CASE - COALESCE ( - 34, - 84 * NULLIF ( + 45, - 26 ) ) WHEN 58 / 77 THEN - 38 ELSE + 39 END ) WHEN - ( ( 46 ) ) THEN NULL WHEN - 39 - 43 * - 3 THEN NULL END )
----
16

query I rowsort
SELECT 67 + - 88 col1
----
-21

query I rowsort
SELECT ALL 63 - + 8 * - NULLIF ( ( - + 42 ), - 43 * - 1 ) * 30
----
-10017

query II rowsort
SELECT 10, 17 AS col1
----
10
17

query II rowsort
SELECT ALL 88, - 52 col1
----
88
-52

query I rowsort
SELECT - 32 * 77 AS col0
----
-2464

onlyif mysql # aggregate syntax: 
query II rowsort label-3689
SELECT ALL 46 AS col0, - MAX( 39 )
----
46
-39

skipif mysql # not compatible
query II rowsort label-3689
SELECT ALL 46 AS col0, - MAX ( 39 )
----
46
-39

query I rowsort
SELECT ALL - - 15 * 32 + + 76 * - 96 + - 82 AS col0
----
-6898

onlyif mysql # aggregate syntax: 
query I rowsort label-3691
SELECT - SUM( 67 ) col0
----
-67

skipif mysql # not compatible
query I rowsort label-3691
SELECT - SUM ( 67 ) col0
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-3692
SELECT COUNT( * ) - + SUM( + + 91 )
----
-90

skipif mysql # not compatible
query I rowsort label-3692
SELECT COUNT ( * ) - + SUM ( + + 91 )
----
-90

onlyif mysql # aggregate syntax: 
query II rowsort label-3693
SELECT - + COUNT( * ) AS col2, CASE - 97 WHEN - 98 * + 83 THEN - 63 END * 76
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-3693
SELECT - + COUNT ( * ) AS col2, CASE - 97 WHEN - 98 * + 83 THEN - 63 END * 76
----
-1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3694
SELECT CASE - MIN( ALL - 70 ) WHEN 83 + + + ( 76 ) THEN + MIN( DISTINCT - 87 ) / 3 + + 34 ELSE NULL END * 77
----
NULL

skipif mysql # not compatible
query I rowsort label-3694
SELECT CASE - MIN ( ALL - 70 ) WHEN 83 + + + ( 76 ) THEN + MIN ( DISTINCT - 87 ) / 3 + + 34 ELSE NULL END * 77
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3695
SELECT - CASE - 68 WHEN - 37 THEN - NULLIF ( + COUNT( * ), + 87 * 85 ) * COUNT( * ) + - CASE CAST( 17 AS SIGNED ) WHEN - 83 + 94 THEN + 14 END WHEN - 9 * 99 THEN 25 + 32 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3695
SELECT - CASE - 68 WHEN - 37 THEN - NULLIF ( + COUNT ( * ), + 87 * 85 ) * COUNT ( * ) + - CASE CAST ( 17 AS INTEGER ) WHEN - 83 + 94 THEN + 14 END WHEN - 9 * 99 THEN 25 + 32 END
----
NULL

query I rowsort
SELECT DISTINCT + 33 * - + 19
----
-627

onlyif mysql # aggregate syntax: 
query I rowsort label-3697
SELECT DISTINCT + COUNT( * ) + 74
----
75

skipif mysql # not compatible
query I rowsort label-3697
SELECT DISTINCT + COUNT ( * ) + 74
----
75

onlyif mysql # DIV for integer division: 
query I rowsort label-3698
SELECT ALL + + 56 * 11 * + 50 + - 52 * - 11 - - + 55 DIV 45 AS col1
----
31373

skipif mysql # not compatible
query I rowsort label-3698
SELECT ALL + + 56 * 11 * + 50 + - 52 * - 11 - - + 55 / 45 AS col1
----
31373

onlyif mysql # aggregate syntax: 
query I rowsort label-3699
SELECT 43 * COUNT( * ) + - 65 AS col0
----
-22

skipif mysql # not compatible
query I rowsort label-3699
SELECT 43 * COUNT ( * ) + - 65 AS col0
----
-22

query I rowsort
SELECT ALL 74 + - - ( COALESCE ( - 68, - ( - 5 ) * - 14, + 25 ) ) AS col2
----
6

query I rowsort
SELECT DISTINCT + 72 * 76
----
5472

query I rowsort
SELECT ALL - - 44 + + 75 + - 87
----
32

onlyif mysql # aggregate syntax: 
query II rowsort label-3703
SELECT SUM( - + 35 ), 39 AS col2
----
-35
39

skipif mysql # not compatible
query II rowsort label-3703
SELECT SUM ( - + 35 ), 39 AS col2
----
-35
39

query II rowsort
SELECT ALL - + 43 + - - 26 + - 15 + - 74 AS col0, 31
----
-106
31

onlyif mysql # DIV for integer division: 
query I rowsort label-3705
SELECT DISTINCT 59 DIV + 51 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3705
SELECT DISTINCT 59 / + 51 AS col2
----
1

query II rowsort
SELECT - - 15, ( 13 ) AS col0
----
15
13

query I rowsort
SELECT - 47 * - 70 + 21 - - - 20
----
3291

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3708
SELECT 30 DIV 83 * + MIN( DISTINCT - - 80 ) + - MIN( ALL - 45 ) AS col2
----
45

skipif mysql # not compatible
query I rowsort label-3708
SELECT 30 / 83 * + MIN ( DISTINCT - - 80 ) + - MIN ( ALL - 45 ) AS col2
----
45

onlyif mysql # aggregate syntax: 
query II rowsort label-3709
SELECT SUM( ALL 96 ) * ( 45 ) * + 66 AS col1, 43
----
285120
43

skipif mysql # not compatible
query II rowsort label-3709
SELECT SUM ( ALL 96 ) * ( 45 ) * + 66 AS col1, 43
----
285120
43

query I rowsort
SELECT ( 36 ) + - 1
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-3711
SELECT ALL COALESCE ( + 66, - COUNT( * ), - 64 + - SUM( + 38 ) * 84 ) * - 86 - + 47 col2
----
-5723

skipif mysql # not compatible
query I rowsort label-3711
SELECT ALL COALESCE ( + 66, - COUNT ( * ), - 64 + - SUM ( + 38 ) * 84 ) * - 86 - + 47 col2
----
-5723

query II rowsort
SELECT DISTINCT 18 * 23 col1, ( - ( 45 ) ) AS col1
----
414
-45

query II rowsort
SELECT + 24 + + + 71 + + 55 AS col1, 96
----
150
96

query II rowsort
SELECT DISTINCT 65 * - 92 * - 97 AS col1, - 28 + + 19
----
580060
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-3715
SELECT ALL 68 * - - COUNT( * ) - 93 + 55
----
30

skipif mysql # not compatible
query I rowsort label-3715
SELECT ALL 68 * - - COUNT ( * ) - 93 + 55
----
30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3716
SELECT + ( + + ( + 71 ) ) * + 42 DIV - COUNT( * ) + + 33 * - 80 AS col2
----
-5622

skipif mysql # not compatible
query I rowsort label-3716
SELECT + ( + + ( + 71 ) ) * + 42 / - COUNT ( * ) + + 33 * - 80 AS col2
----
-5622

onlyif mysql # aggregate syntax: 
query I rowsort label-3717
SELECT + COUNT( * ) * + + 75 * + MAX( DISTINCT + 74 )
----
5550

skipif mysql # not compatible
query I rowsort label-3717
SELECT + COUNT ( * ) * + + 75 * + MAX ( DISTINCT + 74 )
----
5550

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3718
SELECT + ( - COUNT( * ) ) * - 96 * + + 52 * - 8 + + + 73 DIV - - 76 * + 1 AS col1
----
-39936

skipif mysql # not compatible
query I rowsort label-3718
SELECT + ( - COUNT ( * ) ) * - 96 * + + 52 * - 8 + + + 73 / - - 76 * + 1 AS col1
----
-39936

onlyif mysql # aggregate syntax: 
query I rowsort label-3719
SELECT + MIN( DISTINCT - + 53 ) * - ( + - 38 ) + - 13 + - - 67
----
-1960

skipif mysql # not compatible
query I rowsort label-3719
SELECT + MIN ( DISTINCT - + 53 ) * - ( + - 38 ) + - 13 + - - 67
----
-1960

onlyif mysql # DIV for integer division: 
query I rowsort label-3720
SELECT + ( - - 47 ) * - + 32 + - 23 + 17 DIV - ( - 3 )
----
-1522

skipif mysql # not compatible
query I rowsort label-3720
SELECT + ( - - 47 ) * - + 32 + - 23 + 17 / - ( - 3 )
----
-1522

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3721
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + + 2 AS col2, - 92
----
NULL
-92

skipif mysql # not compatible
query II rowsort label-3721
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + + 2 AS col2, - 92
----
NULL
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-3722
SELECT + + COUNT( + ( 65 ) ) * + + MAX( - + 42 ) * + 69 + 99 AS col2
----
-2799

skipif mysql # not compatible
query I rowsort label-3722
SELECT + + COUNT ( + ( 65 ) ) * + + MAX ( - + 42 ) * + 69 + 99 AS col2
----
-2799

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3723
SELECT + ( - SUM( - 36 ) ) + - 13 * 43 * 26 + - ( + 72 ) + 63 DIV - 90 AS col0
----
-14570

skipif mysql # not compatible
query I rowsort label-3723
SELECT + ( - SUM ( - 36 ) ) + - 13 * 43 * 26 + - ( + 72 ) + 63 / - 90 AS col0
----
-14570

query I rowsort
SELECT DISTINCT + 87 + + + 88 AS col1
----
175

query I rowsort
SELECT ALL - + 83 + + - ( - ( 35 ) )
----
-48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3726
SELECT DISTINCT 7 + - 16 * + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3726
SELECT DISTINCT 7 + - 16 * + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT ALL ( 30 ) AS col1
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-3728
SELECT - + 57 + + + MAX( + 59 )
----
2

skipif mysql # not compatible
query I rowsort label-3728
SELECT - + 57 + + + MAX ( + 59 )
----
2

query I rowsort
SELECT ALL - + 91 + + 65
----
-26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3730
SELECT - COUNT( * ) * + + CAST( 76 AS SIGNED ) AS col2
----
-76

skipif mysql # not compatible
query I rowsort label-3730
SELECT - COUNT ( * ) * + + CAST ( 76 AS INTEGER ) AS col2
----
-76

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3731
SELECT - 91 + + 55 DIV ( 7 ) + + 41 * - COUNT( * ) * - COUNT( * ) col0
----
-43

skipif mysql # not compatible
query I rowsort label-3731
SELECT - 91 + + 55 / ( 7 ) + + 41 * - COUNT ( * ) * - COUNT ( * ) col0
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-3732
SELECT ALL + 27 * 26 * - COUNT( DISTINCT + 26 ) + + ( + 50 ) * + MIN( 86 ) AS col2
----
3598

skipif mysql # not compatible
query I rowsort label-3732
SELECT ALL + 27 * 26 * - COUNT ( DISTINCT + 26 ) + + ( + 50 ) * + MIN ( 86 ) AS col2
----
3598

query I rowsort
SELECT ALL - 62 - + + 27 AS col0
----
-89

query I rowsort
SELECT ALL + 35 * + - 92
----
-3220

onlyif mysql # aggregate syntax: 
query I rowsort label-3735
SELECT DISTINCT + COUNT( ALL 42 ) col0
----
1

skipif mysql # not compatible
query I rowsort label-3735
SELECT DISTINCT + COUNT ( ALL 42 ) col0
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3736
SELECT ALL 95 DIV + + COUNT( * ) - - 4 * + 74 * - 76 AS col0
----
-22401

skipif mysql # not compatible
query I rowsort label-3736
SELECT ALL 95 / + + COUNT ( * ) - - 4 * + 74 * - 76 AS col0
----
-22401

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3737
SELECT DISTINCT + 7 AS col2, + 63 DIV + - MIN( + - 48 )
----
7
1

skipif mysql # not compatible
query II rowsort label-3737
SELECT DISTINCT + 7 AS col2, + 63 / + - MIN ( + - 48 )
----
7
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3738
SELECT + 12 DIV - COUNT( * )
----
-12

skipif mysql # not compatible
query I rowsort label-3738
SELECT + 12 / - COUNT ( * )
----
-12

query II rowsort
SELECT ALL + 23 AS col1, 41 + + + 26 AS col0
----
23
67

onlyif mysql # aggregate syntax: 
query I rowsort label-3740
SELECT + MIN( ALL - 6 )
----
-6

skipif mysql # not compatible
query I rowsort label-3740
SELECT + MIN ( ALL - 6 )
----
-6

query I rowsort
SELECT + ( 74 ) * + + 30
----
2220

onlyif mysql # aggregate syntax: 
query I rowsort label-3742
SELECT + SUM( + 96 ) col1
----
96

skipif mysql # not compatible
query I rowsort label-3742
SELECT + SUM ( + 96 ) col1
----
96

query II rowsort
SELECT ( + ( - 29 ) ) col1, ( 8 ) col2
----
-29
8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3744
SELECT ALL - 91 DIV + - COUNT( * )
----
91

skipif mysql # not compatible
query I rowsort label-3744
SELECT ALL - 91 / + - COUNT ( * )
----
91

query I rowsort
SELECT DISTINCT + 19 * 48 col0
----
912

query I rowsort
SELECT + 22 * - 88
----
-1936

onlyif mysql # aggregate syntax: 
query I rowsort label-3747
SELECT CASE - 12 WHEN + + 82 THEN + 85 WHEN COUNT( * ) + + 81 THEN + ( COUNT( * ) ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3747
SELECT CASE - 12 WHEN + + 82 THEN + 85 WHEN COUNT ( * ) + + 81 THEN + ( COUNT ( * ) ) ELSE NULL END
----
NULL

query I rowsort
SELECT ALL - 66 * 34 + 83
----
-2161

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3749
SELECT + + COUNT( * ) * - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3749
SELECT + + COUNT ( * ) * - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3750
SELECT + SUM( DISTINCT - - CAST( - ( 71 ) AS SIGNED ) ) + + - 57 * ( - 23 ) + - - 10 + 60 AS col0
----
1310

skipif mysql # not compatible
query I rowsort label-3750
SELECT + SUM ( DISTINCT - - CAST ( - ( 71 ) AS INTEGER ) ) + + - 57 * ( - 23 ) + - - 10 + 60 AS col0
----
1310

onlyif mysql # aggregate syntax: 
query I rowsort label-3751
SELECT ALL MAX( ALL - 47 ) * + 66 + + 91 * + 14
----
-1828

skipif mysql # not compatible
query I rowsort label-3751
SELECT ALL MAX ( ALL - 47 ) * + 66 + + 91 * + 14
----
-1828

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3752
SELECT 68 AS col2, COALESCE ( + 6, - - 6, - 35 + + 16 - - - 68 + - + 78 + MAX( 62 ) DIV + COUNT( * ) )
----
68
6

skipif mysql # not compatible
query II rowsort label-3752
SELECT 68 AS col2, COALESCE ( + 6, - - 6, - 35 + + 16 - - - 68 + - + 78 + MAX ( 62 ) / + COUNT ( * ) )
----
68
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3753
SELECT ALL + + SUM( DISTINCT 47 ) * - + 78 + + CASE - 69 WHEN NULLIF ( - 75, + COUNT( DISTINCT 34 ) * 64 + 1 ) THEN + COALESCE ( 0, 34, - 29 - 10 ) * 84 ELSE NULL END + - 44 * + 90 / CAST( 99 + + 68 * - CAST( NULL AS SIGNED ) AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3753
SELECT ALL + + SUM ( DISTINCT 47 ) * - + 78 + + CASE - 69 WHEN NULLIF ( - 75, + COUNT ( DISTINCT 34 ) * 64 + 1 ) THEN + COALESCE ( 0, 34, - 29 - 10 ) * 84 ELSE NULL END + - 44 * + 90 / CAST ( 99 + + 68 * - CAST ( NULL AS INTEGER ) AS REAL ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3754
SELECT DISTINCT + + 62 * 32 + + CASE - COUNT( * ) WHEN - COALESCE ( + - CASE + CAST( 27 AS DECIMAL ) WHEN + 38 THEN + NULLIF ( - 89, 17 * 24 - 17 ) WHEN - 19 THEN NULL WHEN 70 + COUNT( ALL 1 ) THEN - 92 ELSE NULL END, - 83 + - 10 * + 32, 52 / + 76 ) + + 77 * - 71 THEN + COUNT( * ) WHEN - 83 * 98 THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3754
SELECT DISTINCT + + 62 * 32 + + CASE - COUNT ( * ) WHEN - COALESCE ( + - CASE + CAST ( 27 AS REAL ) WHEN + 38 THEN + NULLIF ( - 89, 17 * 24 - 17 ) WHEN - 19 THEN NULL WHEN 70 + COUNT ( ALL 1 ) THEN - 92 ELSE NULL END, - 83 + - 10 * + 32, 52 / + 76 ) + + 77 * - 71 THEN + COUNT ( * ) WHEN - 83 * 98 THEN NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3755
SELECT - 38, - COUNT( * ) col0
----
-38
-1

skipif mysql # not compatible
query II rowsort label-3755
SELECT - 38, - COUNT ( * ) col0
----
-38
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3756
SELECT ALL - SUM( + 86 ) * 77 + + 83 AS col1
----
-6539

skipif mysql # not compatible
query I rowsort label-3756
SELECT ALL - SUM ( + 86 ) * 77 + + 83 AS col1
----
-6539

query I rowsort
SELECT ALL + 23 * - 72
----
-1656

query II rowsort
SELECT - - 52 AS col1, - 29
----
52
-29

query I rowsort
SELECT ALL 36 * - ( + 10 ) AS col0
----
-360

onlyif mysql # aggregate syntax: 
query I rowsort label-3760
SELECT + NULLIF ( 82, + - COUNT( * ) ) * + 5 AS col2
----
410

skipif mysql # not compatible
query I rowsort label-3760
SELECT + NULLIF ( 82, + - COUNT ( * ) ) * + 5 AS col2
----
410

query I rowsort
SELECT - + 20 * - - 25 col2
----
-500

onlyif mysql # aggregate syntax: 
query I rowsort label-3762
SELECT - SUM( DISTINCT ( ( 64 ) ) ) * - 53 - 2 + + 62 * - + 62
----
-454

skipif mysql # not compatible
query I rowsort label-3762
SELECT - SUM ( DISTINCT ( ( 64 ) ) ) * - 53 - 2 + + 62 * - + 62
----
-454

onlyif mysql # aggregate syntax: 
query I rowsort label-3763
SELECT ALL - 40 - + - 48 * CASE + + 20 WHEN - - COUNT( * ) + 76 THEN + 75 END / - - 84 / ( ( 74 ) * 1 ) + COUNT( * ) / 58 + 51 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3763
SELECT ALL - 40 - + - 48 * CASE + + 20 WHEN - - COUNT ( * ) + 76 THEN + 75 END / - - 84 / ( ( 74 ) * 1 ) + COUNT ( * ) / 58 + 51 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3764
SELECT ALL + 71 * - COUNT( DISTINCT + + 66 )
----
-71

skipif mysql # not compatible
query I rowsort label-3764
SELECT ALL + 71 * - COUNT ( DISTINCT + + 66 )
----
-71

onlyif mysql # aggregate syntax: 
query II rowsort label-3765
SELECT 59 - + 58 AS col2, + 53 + - AVG ( - 57 ) + - 95 * - ( - COUNT( ALL + 66 ) ) * CASE 10 * - 97 WHEN COUNT( * ) + ( 38 ) * - 69 THEN 33 + 71 WHEN + 38 THEN NULL ELSE NULL END + - 13 AS col2
----
1
NULL

skipif mysql # not compatible
query II rowsort label-3765
SELECT 59 - + 58 AS col2, + 53 + - AVG ( - 57 ) + - 95 * - ( - COUNT ( ALL + 66 ) ) * CASE 10 * - 97 WHEN COUNT ( * ) + ( 38 ) * - 69 THEN 33 + 71 WHEN + 38 THEN NULL ELSE NULL END + - 13 AS col2
----
1
NULL

query I rowsort
SELECT ALL + 4 * + 13
----
52

query I rowsort
SELECT 93 - - + 55
----
148

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3768
SELECT + 53 DIV - COUNT( * ) + + 29 AS col1
----
-24

skipif mysql # not compatible
query I rowsort label-3768
SELECT + 53 / - COUNT ( * ) + + 29 AS col1
----
-24

query I rowsort
SELECT 77 + - - 17 + - 90 AS col2
----
4

query I rowsort
SELECT ALL - 5 * - + 60 AS col2
----
300

query I rowsort
SELECT DISTINCT - ( - + 52 )
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-3772
SELECT DISTINCT - MAX( DISTINCT + 51 ) + 28 + - - 65 * - - 61 AS col1
----
3942

skipif mysql # not compatible
query I rowsort label-3772
SELECT DISTINCT - MAX ( DISTINCT + 51 ) + 28 + - - 65 * - - 61 AS col1
----
3942

query I rowsort
SELECT 67 * - 90 AS col2
----
-6030

query II rowsort
SELECT 5 * + 58 * 93 + - 56 AS col1, + 75 col0
----
26914
75

onlyif mysql # DIV for integer division: 
query II rowsort label-3775
SELECT 9 DIV 77, - 43 AS col1
----
0
-43

skipif mysql # not compatible
query II rowsort label-3775
SELECT 9 / 77, - 43 AS col1
----
0
-43

query I rowsort
SELECT DISTINCT - 60 + 8 * 96 AS col1
----
708

query I rowsort
SELECT ALL + 96 + 68 + + 9
----
173

onlyif mysql # aggregate syntax: 
query II rowsort label-3778
SELECT DISTINCT COUNT( * ) + 24 + COUNT( * ) * 10, 30 AS col1
----
35
30

skipif mysql # not compatible
query II rowsort label-3778
SELECT DISTINCT COUNT ( * ) + 24 + COUNT ( * ) * 10, 30 AS col1
----
35
30

onlyif mysql # aggregate syntax: 
query III rowsort label-3779
SELECT + - COALESCE ( - 4, + 50 + + 38 + - COUNT( * ) ) col0, ( - - 85 ), 88 AS col0
----
4
85
88

skipif mysql # not compatible
query III rowsort label-3779
SELECT + - COALESCE ( - 4, + 50 + + 38 + - COUNT ( * ) ) col0, ( - - 85 ), 88 AS col0
----
4
85
88

onlyif mysql # aggregate syntax: 
query II rowsort label-3780
SELECT ALL + - 50 + - 81 AS col2, MAX( + + 47 ) AS col2
----
-131
47

skipif mysql # not compatible
query II rowsort label-3780
SELECT ALL + - 50 + - 81 AS col2, MAX ( + + 47 ) AS col2
----
-131
47

onlyif mysql # aggregate syntax: 
query I rowsort label-3781
SELECT + ( + ( MIN( - 97 ) ) ) AS col0
----
-97

skipif mysql # not compatible
query I rowsort label-3781
SELECT + ( + ( MIN ( - 97 ) ) ) AS col0
----
-97

query II rowsort
SELECT ALL - COALESCE ( - - 25, - 87 ) + 6, - 80 + 93 AS col1
----
-19
13

onlyif mysql # aggregate syntax: 
query I rowsort label-3783
SELECT ALL - + 37 * - + ( - - COUNT( * ) ) AS col2
----
37

skipif mysql # not compatible
query I rowsort label-3783
SELECT ALL - + 37 * - + ( - - COUNT ( * ) ) AS col2
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-3784
SELECT 87 + - COUNT( * ) AS col2
----
86

skipif mysql # not compatible
query I rowsort label-3784
SELECT 87 + - COUNT ( * ) AS col2
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-3785
SELECT DISTINCT - 93 * - + COUNT( * ) + - 42 - 77 * - 34 * 23
----
60265

skipif mysql # not compatible
query I rowsort label-3785
SELECT DISTINCT - 93 * - + COUNT ( * ) + - 42 - 77 * - 34 * 23
----
60265

onlyif mysql # aggregate syntax: 
query I rowsort label-3786
SELECT COUNT( * ) * + 73 + - - 49 AS col2
----
122

skipif mysql # not compatible
query I rowsort label-3786
SELECT COUNT ( * ) * + 73 + - - 49 AS col2
----
122

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3787
SELECT + 60 - + - CASE NULLIF ( 70, - CAST( NULL AS DECIMAL ) ) WHEN + 56 THEN - - CAST( NULL AS SIGNED ) * - - 91 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3787
SELECT + 60 - + - CASE NULLIF ( 70, - CAST ( NULL AS REAL ) ) WHEN + 56 THEN - - CAST ( NULL AS INTEGER ) * - - 91 ELSE NULL END AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3788
SELECT ALL CAST( NULL AS SIGNED ) - 65 + - 73 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3788
SELECT ALL CAST ( NULL AS INTEGER ) - 65 + - 73 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3789
SELECT + 17 * CAST( NULL AS SIGNED ) * - 52
----
NULL

skipif mysql # not compatible
query I rowsort label-3789
SELECT + 17 * CAST ( NULL AS INTEGER ) * - 52
----
NULL

query I rowsort
SELECT DISTINCT NULLIF ( 48, + + 57 ) AS col2
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-3791
SELECT - 40 + ( ( - COALESCE ( - 76, 95 + - 87 ) ) ) + + CASE - - 31 WHEN 55 + + NULLIF ( 29, 49 + - 90 ) * - 98 THEN 93 * SUM( - 39 * - 53 ) WHEN 70 + 88 THEN 17 * + COUNT( * ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3791
SELECT - 40 + ( ( - COALESCE ( - 76, 95 + - 87 ) ) ) + + CASE - - 31 WHEN 55 + + NULLIF ( 29, 49 + - 90 ) * - 98 THEN 93 * SUM ( - 39 * - 53 ) WHEN 70 + 88 THEN 17 * + COUNT ( * ) END AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3792
SELECT ALL 14 DIV + 91 * + 80 * + 22 * 7
----
0

skipif mysql # not compatible
query I rowsort label-3792
SELECT ALL 14 / + 91 * + 80 * + 22 * 7
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3793
SELECT 39 DIV 17 * + NULLIF ( - - 49, - 6 ) AS col1
----
98

skipif mysql # not compatible
query I rowsort label-3793
SELECT 39 / 17 * + NULLIF ( - - 49, - 6 ) AS col1
----
98

query I rowsort
SELECT DISTINCT 42 * + 52 AS col2
----
2184

onlyif mysql # aggregate syntax: 
query I rowsort label-3795
SELECT 87 * - COALESCE ( - - 48, - 24, COUNT( * ) + 11 ) * - 86
----
359136

skipif mysql # not compatible
query I rowsort label-3795
SELECT 87 * - COALESCE ( - - 48, - 24, COUNT ( * ) + 11 ) * - 86
----
359136

query I rowsort
SELECT ALL 77 * + 57 * - + 11
----
-48279

query I rowsort
SELECT 94 + + + 79 - - - ( - 96 ) + - - 87 AS col0
----
356

query II rowsort
SELECT ALL 54, - 58 AS col1
----
54
-58

query II rowsort
SELECT 87, - 98 * - - 1 AS col2
----
87
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-3800
SELECT CASE + + SUM( + 21 ) WHEN - + 28 THEN + 93 ELSE NULL END / - 5 - - 49 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3800
SELECT CASE + + SUM ( + 21 ) WHEN - + 28 THEN + 93 ELSE NULL END / - 5 - - 49 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3801
SELECT 87 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3801
SELECT 87 * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3802
SELECT ALL - 47 * - + 83 + 62 DIV + 97
----
3901

skipif mysql # not compatible
query I rowsort label-3802
SELECT ALL - 47 * - + 83 + 62 / + 97
----
3901

onlyif mysql # aggregate syntax: 
query I rowsort label-3803
SELECT SUM( ALL + - 56 ) AS col2
----
-56

skipif mysql # not compatible
query I rowsort label-3803
SELECT SUM ( ALL + - 56 ) AS col2
----
-56

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3804
SELECT CAST( NULL AS DECIMAL ) * - 6 * - 56 - - + 37 * COUNT( * ) + - 99 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3804
SELECT CAST ( NULL AS REAL ) * - 6 * - 56 - - + 37 * COUNT ( * ) + - 99 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3805
SELECT ALL + 20 * + CAST( NULL AS SIGNED ) + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3805
SELECT ALL + 20 * + CAST ( NULL AS INTEGER ) + COUNT ( * ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3806
SELECT COUNT( DISTINCT ( - 31 ) ) AS col1, COUNT( * ) AS col2
----
1
1

skipif mysql # not compatible
query II rowsort label-3806
SELECT COUNT ( DISTINCT ( - 31 ) ) AS col1, COUNT ( * ) AS col2
----
1
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3807
SELECT ALL - ( - ( + 12 ) ) col1, + ( 63 ) DIV + NULLIF ( 72, COUNT( 72 ) * 57 - 27 ) AS col1
----
12
0

skipif mysql # not compatible
query II rowsort label-3807
SELECT ALL - ( - ( + 12 ) ) col1, + ( 63 ) / + NULLIF ( 72, COUNT ( 72 ) * 57 - 27 ) AS col1
----
12
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3808
SELECT DISTINCT MAX( 33 ) + + 35
----
68

skipif mysql # not compatible
query I rowsort label-3808
SELECT DISTINCT MAX ( 33 ) + + 35
----
68

query I rowsort
SELECT ALL - 16 * - - 70
----
-1120

query I rowsort
SELECT ALL - - NULLIF ( - - 72, + 92 ) col0
----
72

query I rowsort
SELECT ALL - 67 - - - 3 AS col1
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-3812
SELECT ALL + COUNT( CASE - 74 WHEN + 46 * 48 THEN NULL WHEN - + 20 THEN 25 * 2 ELSE NULL END ) * - - 68
----
0

skipif mysql # not compatible
query I rowsort label-3812
SELECT ALL + COUNT ( CASE - 74 WHEN + 46 * 48 THEN NULL WHEN - + 20 THEN 25 * 2 ELSE NULL END ) * - - 68
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3813
SELECT DISTINCT - - COUNT( - - CAST( 14 AS SIGNED ) )
----
1

skipif mysql # not compatible
query I rowsort label-3813
SELECT DISTINCT - - COUNT ( - - CAST ( 14 AS INTEGER ) )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-3814
SELECT ALL - + 91 AS col0, COUNT( 60 ) AS col2
----
-91
1

skipif mysql # not compatible
query II rowsort label-3814
SELECT ALL - + 91 AS col0, COUNT ( 60 ) AS col2
----
-91
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3815
SELECT ALL + NULLIF ( CAST( - - 47 AS SIGNED ), + 58 ) - + - COUNT( * )
----
48

skipif mysql # not compatible
query I rowsort label-3815
SELECT ALL + NULLIF ( CAST ( - - 47 AS INTEGER ), + 58 ) - + - COUNT ( * )
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-3816
SELECT COUNT( * ) * 31 AS col1
----
31

skipif mysql # not compatible
query I rowsort label-3816
SELECT COUNT ( * ) * 31 AS col1
----
31

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3817
SELECT ( COUNT( * ) ) + + 1 + - 77 DIV + + 60 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3817
SELECT ( COUNT ( * ) ) + + 1 + - 77 / + + 60 AS col2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3818
SELECT ALL NULLIF ( - CAST( NULL AS SIGNED ), - 73 ) * 31 / + 24 * - 41 * + CAST( - + 49 AS SIGNED ) + + 4 / + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3818
SELECT ALL NULLIF ( - CAST ( NULL AS INTEGER ), - 73 ) * 31 / + 24 * - 41 * + CAST ( - + 49 AS INTEGER ) + + 4 / + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - 2 * - 12
----
24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3820
SELECT DISTINCT + ( + 49 ) DIV MAX( + - 53 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3820
SELECT DISTINCT + ( + 49 ) / MAX ( + - 53 ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3821
SELECT - COUNT( - 20 )
----
-1

skipif mysql # not compatible
query I rowsort label-3821
SELECT - COUNT ( - 20 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3822
SELECT DISTINCT + ( COUNT( + 39 ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3822
SELECT DISTINCT + ( COUNT ( + 39 ) ) AS col0
----
1

query I rowsort
SELECT DISTINCT - 21 * - 96 AS col2
----
2016

query I rowsort
SELECT ALL 1 * - 32
----
-32

query I rowsort
SELECT - 7 - + - 51 * - 40
----
-2047

query II rowsort
SELECT - 93 AS col1, + 79 AS col1
----
-93
79

onlyif mysql # aggregate syntax: 
query II rowsort label-3827
SELECT DISTINCT 46, 43 * - 67 * - CASE + + SUM( DISTINCT + COALESCE ( - 49, + 79 * - 94 ) ) WHEN + 19 THEN + 70 WHEN - 48 THEN NULL END * - 25 + 78 AS col1
----
46
NULL

skipif mysql # not compatible
query II rowsort label-3827
SELECT DISTINCT 46, 43 * - 67 * - CASE + + SUM ( DISTINCT + COALESCE ( - 49, + 79 * - 94 ) ) WHEN + 19 THEN + 70 WHEN - 48 THEN NULL END * - 25 + 78 AS col1
----
46
NULL

query II rowsort
SELECT DISTINCT 97, 14 AS col2
----
97
14

onlyif mysql # aggregate syntax: 
query I rowsort label-3829
SELECT + MIN( + 14 ) * + 61 + + COUNT( DISTINCT - 77 )
----
855

skipif mysql # not compatible
query I rowsort label-3829
SELECT + MIN ( + 14 ) * + 61 + + COUNT ( DISTINCT - 77 )
----
855

onlyif mysql # aggregate syntax: 
query I rowsort label-3830
SELECT ALL + 4 + NULLIF ( + + ( - - 49 ), 44 / 69 * + + 66 * ( - - COUNT( * ) ) ) AS col2
----
53

skipif mysql # not compatible
query I rowsort label-3830
SELECT ALL + 4 + NULLIF ( + + ( - - 49 ), 44 / 69 * + + 66 * ( - - COUNT ( * ) ) ) AS col2
----
53

query I rowsort
SELECT ALL 47 + + + ( - 9 ) + - + 97 AS col2
----
-59

query I rowsort
SELECT + 53 - 37 * - 56 * - 54
----
-111835

onlyif mysql # aggregate syntax: 
query I rowsort label-3833
SELECT ALL COUNT( * ) + 50 + + 38 AS col0
----
89

skipif mysql # not compatible
query I rowsort label-3833
SELECT ALL COUNT ( * ) + 50 + + 38 AS col0
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-3834
SELECT + ( + 66 ) - MAX( + 8 ) - + COUNT( 19 )
----
57

skipif mysql # not compatible
query I rowsort label-3834
SELECT + ( + 66 ) - MAX ( + 8 ) - + COUNT ( 19 )
----
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3835
SELECT DISTINCT COUNT( * ) * 60 DIV - CASE + ( + 51 ) WHEN - + 72 * + + ( COUNT( * ) ) * + + 57 * - 21 + + 14 + 37 + - 41 + COUNT( * ) THEN 49 ELSE - 58 * 41 END * - ( - CAST( 79 AS SIGNED ) + - SUM( + 44 ) )
----
0

skipif mysql # not compatible
query I rowsort label-3835
SELECT DISTINCT COUNT ( * ) * 60 / - CASE + ( + 51 ) WHEN - + 72 * + + ( COUNT ( * ) ) * + + 57 * - 21 + + 14 + 37 + - 41 + COUNT ( * ) THEN 49 ELSE - 58 * 41 END * - ( - CAST ( 79 AS INTEGER ) + - SUM ( + 44 ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3836
SELECT - 99 + + 60 + - NULLIF ( 57, - 91 / MIN( DISTINCT - 39 ) ) - - 67 - - 18 * + 20
----
331

skipif mysql # not compatible
query I rowsort label-3836
SELECT - 99 + + 60 + - NULLIF ( 57, - 91 / MIN ( DISTINCT - 39 ) ) - - 67 - - 18 * + 20
----
331

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3837
SELECT - NULLIF ( + + 18, + NULLIF ( - 8, - CAST( + COUNT( * ) AS SIGNED ) ) )
----
-18

skipif mysql # not compatible
query I rowsort label-3837
SELECT - NULLIF ( + + 18, + NULLIF ( - 8, - CAST ( + COUNT ( * ) AS INTEGER ) ) )
----
-18

query I rowsort
SELECT - NULLIF ( + + ( + 4 ), + 62 )
----
-4

onlyif mysql # DIV for integer division: 
query II rowsort label-3839
SELECT + 81 DIV + - 71, - 40 * 78 AS col0
----
-1
-3120

skipif mysql # not compatible
query II rowsort label-3839
SELECT + 81 / + - 71, - 40 * 78 AS col0
----
-1
-3120

onlyif mysql # aggregate syntax: 
query I rowsort label-3840
SELECT + ( - 34 ) + - - NULLIF ( - - 68, - SUM( + 43 ) ) + - ( 53 )
----
-19

skipif mysql # not compatible
query I rowsort label-3840
SELECT + ( - 34 ) + - - NULLIF ( - - 68, - SUM ( + 43 ) ) + - ( 53 )
----
-19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3841
SELECT + 99 * - ( + - CASE 30 WHEN - 61 * + 97 * - ( - 36 ) - + - CAST( NULL AS SIGNED ) * - + 42 THEN - + 10 WHEN 60 + 4 * - 45 THEN NULL ELSE 51 * 43 END ) AS col2
----
217107

skipif mysql # not compatible
query I rowsort label-3841
SELECT + 99 * - ( + - CASE 30 WHEN - 61 * + 97 * - ( - 36 ) - + - CAST ( NULL AS INTEGER ) * - + 42 THEN - + 10 WHEN 60 + 4 * - 45 THEN NULL ELSE 51 * 43 END ) AS col2
----
217107

onlyif mysql # aggregate syntax: 
query I rowsort label-3842
SELECT ( CASE + 18 WHEN - CASE ( + COALESCE ( + - 62, 36 ) ) WHEN 50 THEN NULL ELSE + 83 - + 78 * - 94 END THEN - 31 + 41 WHEN ( ( COUNT( * ) ) ) * 1 + COUNT( * ) * - 7 THEN 93 * - 36 END ) * + 38 + 1 / 2
----
NULL

skipif mysql # not compatible
query I rowsort label-3842
SELECT ( CASE + 18 WHEN - CASE ( + COALESCE ( + - 62, 36 ) ) WHEN 50 THEN NULL ELSE + 83 - + 78 * - 94 END THEN - 31 + 41 WHEN ( ( COUNT ( * ) ) ) * 1 + COUNT ( * ) * - 7 THEN 93 * - 36 END ) * + 38 + 1 / 2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3843
SELECT - 75 - + - COUNT( * )
----
-74

skipif mysql # not compatible
query I rowsort label-3843
SELECT - 75 - + - COUNT ( * )
----
-74

onlyif mysql # aggregate syntax: 
query II rowsort label-3844
SELECT ALL + 63 AS col0, - 20 * + MIN( ALL + 4 ) - 39 + - 64 * 35 * - 31 * ( COUNT( * ) ) AS col0
----
63
69321

skipif mysql # not compatible
query II rowsort label-3844
SELECT ALL + 63 AS col0, - 20 * + MIN ( ALL + 4 ) - 39 + - 64 * 35 * - 31 * ( COUNT ( * ) ) AS col0
----
63
69321

onlyif mysql # aggregate syntax: 
query I rowsort label-3845
SELECT ALL 19 * COUNT( * ) + - - 61
----
80

skipif mysql # not compatible
query I rowsort label-3845
SELECT ALL 19 * COUNT ( * ) + - - 61
----
80

query I rowsort
SELECT + 63 * - 69 AS col0
----
-4347

query I rowsort
SELECT + 22 + - + 85 + 30
----
-33

query I rowsort
SELECT + + ( - - 48 ) + + - 80
----
-32

query I rowsort
SELECT + ( + NULLIF ( + - 56, 78 ) )
----
-56

onlyif mysql # aggregate syntax: 
query II rowsort label-3850
SELECT DISTINCT + - 62 AS col0, + 87 + + + MAX( + - 45 ) - - - 18 AS col1
----
-62
24

skipif mysql # not compatible
query II rowsort label-3850
SELECT DISTINCT + - 62 AS col0, + 87 + + + MAX ( + - 45 ) - - - 18 AS col1
----
-62
24

onlyif mysql # aggregate syntax: 
query I rowsort label-3851
SELECT + - 4 * + + COUNT( * )
----
-4

skipif mysql # not compatible
query I rowsort label-3851
SELECT + - 4 * + + COUNT ( * )
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-3852
SELECT COUNT( DISTINCT - - 86 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3852
SELECT COUNT ( DISTINCT - - 86 ) AS col0
----
1

query I rowsort
SELECT + 59 + ( - 9 ) AS col0
----
50

query I rowsort
SELECT + + COALESCE ( + - 42, 88 )
----
-42

query I rowsort
SELECT - 33 * - 58 * + 87
----
166518

onlyif mysql # aggregate syntax: 
query I rowsort label-3856
SELECT ALL + + 70 * - COUNT( * ) AS col2
----
-70

skipif mysql # not compatible
query I rowsort label-3856
SELECT ALL + + 70 * - COUNT ( * ) AS col2
----
-70

query II rowsort
SELECT ALL + - 46 AS col1, 11
----
-46
11

query I rowsort
SELECT DISTINCT + 11 * ( - 25 ) AS col0
----
-275

onlyif mysql # aggregate syntax: 
query I rowsort label-3859
SELECT ALL + MAX( DISTINCT + 59 )
----
59

skipif mysql # not compatible
query I rowsort label-3859
SELECT ALL + MAX ( DISTINCT + 59 )
----
59

query I rowsort
SELECT ALL + - ( - - 89 ) col0
----
-89

onlyif mysql # aggregate syntax: 
query II rowsort label-3861
SELECT - 99 * + 26 AS col0, - 69 * - + 6 * + COUNT( DISTINCT + 70 ) * + + 79 AS col0
----
-2574
32706

skipif mysql # not compatible
query II rowsort label-3861
SELECT - 99 * + 26 AS col0, - 69 * - + 6 * + COUNT ( DISTINCT + 70 ) * + + 79 AS col0
----
-2574
32706

query I rowsort
SELECT + - COALESCE ( + 47, - + 62 ) * 98 + 93 + COALESCE ( + ( + 98 ), - + ( + 53 ) )
----
-4415

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3863
SELECT - COALESCE ( NULLIF ( + MIN( ALL + 64 ), + CAST( NULL AS DECIMAL ) ), + 44 + + - 18 + - 10 ) col0
----
-64

skipif mysql # not compatible
query I rowsort label-3863
SELECT - COALESCE ( NULLIF ( + MIN ( ALL + 64 ), + CAST ( NULL AS REAL ) ), + 44 + + - 18 + - 10 ) col0
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-3864
SELECT + - NULLIF ( 87, - - 1 * - 54 * - SUM( - + 61 ) + - - COUNT( * ) * - 10 ) AS col2
----
-87

skipif mysql # not compatible
query I rowsort label-3864
SELECT + - NULLIF ( 87, - - 1 * - 54 * - SUM ( - + 61 ) + - - COUNT ( * ) * - 10 ) AS col2
----
-87

onlyif mysql # DIV for integer division: 
query I rowsort label-3865
SELECT + - 28 DIV + 4
----
-7

skipif mysql # not compatible
query I rowsort label-3865
SELECT + - 28 / + 4
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-3866
SELECT - - 23 * - 84 * - COUNT( * ) + COUNT( * )
----
1933

skipif mysql # not compatible
query I rowsort label-3866
SELECT - - 23 * - 84 * - COUNT ( * ) + COUNT ( * )
----
1933

query I rowsort
SELECT - ( 20 ) * - 94 * - 15
----
-28200

onlyif mysql # aggregate syntax: 
query I rowsort label-3868
SELECT - 83 + + + SUM( DISTINCT 0 )
----
-83

skipif mysql # not compatible
query I rowsort label-3868
SELECT - 83 + + + SUM ( DISTINCT 0 )
----
-83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3869
SELECT - MAX( CAST( NULL AS SIGNED ) ) - 54 + - ( + CAST( NULL AS SIGNED ) ) / + 57
----
NULL

skipif mysql # not compatible
query I rowsort label-3869
SELECT - MAX ( CAST ( NULL AS INTEGER ) ) - 54 + - ( + CAST ( NULL AS INTEGER ) ) / + 57
----
NULL

query I rowsort
SELECT DISTINCT ( + 64 ) AS col0
----
64

query I rowsort
SELECT - ( - 30 ) + - 24
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-3872
SELECT ALL + 72 + + 65 + - COUNT( * ) - + + CASE - 89 WHEN - 32 THEN + 37 - + 43 + - 37 WHEN - 82 + + 56 THEN - 7 * + ( COALESCE ( 52, + 78 ) ) - - COUNT( * ) * - 62 WHEN 40 / CASE 75 WHEN - 80 * - SUM( DISTINCT - ( + ( 64 ) ) ) + + 86 THEN NULL ELSE + COUNT( * ) END + + 19 THEN NULL ELSE NULL END + 47
----
NULL

skipif mysql # not compatible
query I rowsort label-3872
SELECT ALL + 72 + + 65 + - COUNT ( * ) - + + CASE - 89 WHEN - 32 THEN + 37 - + 43 + - 37 WHEN - 82 + + 56 THEN - 7 * + ( COALESCE ( 52, + 78 ) ) - - COUNT ( * ) * - 62 WHEN 40 / CASE 75 WHEN - 80 * - SUM ( DISTINCT - ( + ( 64 ) ) ) + + 86 THEN NULL ELSE + COUNT ( * ) END + + 19 THEN NULL ELSE NULL END + 47
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3873
SELECT DISTINCT + COUNT( * ) + 97 + COUNT( * ) / - 18 * CAST( NULL AS SIGNED ) AS col1, 38
----
NULL
38

skipif mysql # not compatible
query II rowsort label-3873
SELECT DISTINCT + COUNT ( * ) + 97 + COUNT ( * ) / - 18 * CAST ( NULL AS INTEGER ) AS col1, 38
----
NULL
38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3874
SELECT ALL + 73 + + - 90 - CAST( + 77 AS SIGNED )
----
-94

skipif mysql # not compatible
query I rowsort label-3874
SELECT ALL + 73 + + - 90 - CAST ( + 77 AS INTEGER )
----
-94

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3875
SELECT DISTINCT ( 36 ) col0, COUNT( * ) DIV + 25
----
36
0

skipif mysql # not compatible
query II rowsort label-3875
SELECT DISTINCT ( 36 ) col0, COUNT ( * ) / + 25
----
36
0

onlyif mysql # aggregate syntax: 
query III rowsort label-3876
SELECT ALL - 46 * - COUNT( * ), 0 AS col1, - 42 * + + 88 AS col2
----
46
0
-3696

skipif mysql # not compatible
query III rowsort label-3876
SELECT ALL - 46 * - COUNT ( * ), 0 AS col1, - 42 * + + 88 AS col2
----
46
0
-3696

query I rowsort
SELECT DISTINCT - 28 + 25
----
-3

query I rowsort
SELECT ALL + 73 + 75
----
148

query I rowsort
SELECT + 82 + - - 32 * - 9 AS col1
----
-206

onlyif mysql # aggregate syntax: 
query I rowsort label-3880
SELECT - ( 20 ) * + - CASE NULLIF ( - 6, + MIN( + 74 ) ) WHEN + - ( + 9 ) THEN + 22 * - 45 END - + COALESCE ( 8, + 70 - + COALESCE ( - 68, + 62 ), - 60 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3880
SELECT - ( 20 ) * + - CASE NULLIF ( - 6, + MIN ( + 74 ) ) WHEN + - ( + 9 ) THEN + 22 * - 45 END - + COALESCE ( 8, + 70 - + COALESCE ( - 68, + 62 ), - 60 ) AS col1
----
NULL

query I rowsort
SELECT ALL - 10 - - 56
----
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3882
SELECT ALL ( - CAST( NULL AS SIGNED ) ) - + 25 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3882
SELECT ALL ( - CAST ( NULL AS INTEGER ) ) - + 25 AS col2
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3883
SELECT + 40 * + + ( - 77 ) * ( CAST( NULL AS DECIMAL ) ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3883
SELECT + 40 * + + ( - 77 ) * ( CAST ( NULL AS REAL ) ) col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3884
SELECT ALL + - MAX( DISTINCT COALESCE ( + 50, 67 ) ) DIV 55 - + 75
----
-75

skipif mysql # not compatible
query I rowsort label-3884
SELECT ALL + - MAX ( DISTINCT COALESCE ( + 50, 67 ) ) / 55 - + 75
----
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-3885
SELECT - 20 * 67 DIV 60
----
-22

skipif mysql # not compatible
query I rowsort label-3885
SELECT - 20 * 67 / 60
----
-22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3886
SELECT - 34 DIV SUM( DISTINCT - + CAST( 54 AS SIGNED ) ) DIV + NULLIF ( - MIN( - 49 ), - + NULLIF ( - + 19, + + 61 - - - COUNT( * ) ) ) - - ( ( - 48 ) ) + - 68 - + 45
----
-161

skipif mysql # not compatible
query I rowsort label-3886
SELECT - 34 / SUM ( DISTINCT - + CAST ( 54 AS INTEGER ) ) / + NULLIF ( - MIN ( - 49 ), - + NULLIF ( - + 19, + + 61 - - - COUNT ( * ) ) ) - - ( ( - 48 ) ) + - 68 - + 45
----
-161

onlyif mysql # aggregate syntax: 
query I rowsort label-3887
SELECT + 48 - COUNT( * ) - ( - CASE - ( - + 4 ) WHEN + 62 THEN + 63 * - COUNT( * ) + + - 85 / + 78 + - + 82 WHEN + 12 THEN - 51 END ) * - 36 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3887
SELECT + 48 - COUNT ( * ) - ( - CASE - ( - + 4 ) WHEN + 62 THEN + 63 * - COUNT ( * ) + + - 85 / + 78 + - + 82 WHEN + 12 THEN - 51 END ) * - 36 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3888
SELECT DISTINCT ( + 99 ) * - + COUNT( * )
----
-99

skipif mysql # not compatible
query I rowsort label-3888
SELECT DISTINCT ( + 99 ) * - + COUNT ( * )
----
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-3889
SELECT ALL - 23 DIV + 47
----
0

skipif mysql # not compatible
query I rowsort label-3889
SELECT ALL - 23 / + 47
----
0

query I rowsort
SELECT DISTINCT - - 18 col2
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-3891
SELECT DISTINCT - MIN( DISTINCT - 68 )
----
68

skipif mysql # not compatible
query I rowsort label-3891
SELECT DISTINCT - MIN ( DISTINCT - 68 )
----
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3892
SELECT + MAX( ALL - 31 ) * + ( + 51 ) + - 85 - CASE - COUNT( * ) WHEN + 88 THEN - - 64 WHEN + 70 + 15 THEN + CASE - COUNT( ALL CAST( NULL AS SIGNED ) ) WHEN 95 + 53 THEN + 8 + 67 * - COUNT( * ) WHEN - 18 - 22 THEN NULL END * + 9 + - 31 WHEN 2 * 62 THEN 92 * - 71 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3892
SELECT + MAX ( ALL - 31 ) * + ( + 51 ) + - 85 - CASE - COUNT ( * ) WHEN + 88 THEN - - 64 WHEN + 70 + 15 THEN + CASE - COUNT ( ALL CAST ( NULL AS INTEGER ) ) WHEN 95 + 53 THEN + 8 + 67 * - COUNT ( * ) WHEN - 18 - 22 THEN NULL END * + 9 + - 31 WHEN 2 * 62 THEN 92 * - 71 ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT + - 62 * 52 * + - 86 + - - 52 AS col1
----
277316

query II rowsort
SELECT DISTINCT 76 + 72 col1, 57 * - 73
----
148
-4161

query I rowsort
SELECT 52 * + 62 * 60
----
193440

onlyif mysql # aggregate syntax: 
query I rowsort label-3896
SELECT MIN( ALL + + 90 ) + 11 * - - NULLIF ( + 75, 59 ) AS col0
----
915

skipif mysql # not compatible
query I rowsort label-3896
SELECT MIN ( ALL + + 90 ) + 11 * - - NULLIF ( + 75, 59 ) AS col0
----
915

query I rowsort
SELECT ALL - 4 + - + 37
----
-41

query I rowsort
SELECT ALL + 41 + + 97 * - 41 * - 68 * + 26
----
7031377

query I rowsort
SELECT 84 * - 67 col1
----
-5628

query II rowsort
SELECT - 46 AS col2, - 43
----
-46
-43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3901
SELECT DISTINCT 77 + + 19 * - CAST( + - 35 AS SIGNED ) + - - 46 + + 46 + + COUNT( * ) + - 72 * 77 * + ( COUNT( * ) ) * - - 39 + + COUNT( * ) * + 16 * 71 * - SUM( 89 ) col2
----
-316485

skipif mysql # not compatible
query I rowsort label-3901
SELECT DISTINCT 77 + + 19 * - CAST ( + - 35 AS INTEGER ) + - - 46 + + 46 + + COUNT ( * ) + - 72 * 77 * + ( COUNT ( * ) ) * - - 39 + + COUNT ( * ) * + 16 * 71 * - SUM ( 89 ) col2
----
-316485

query I rowsort
SELECT 96 * + + 75 AS col2
----
7200

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3903
SELECT ALL - 41 + - CAST( NULLIF ( - - 63, + + COUNT( * ) ) AS SIGNED )
----
-104

skipif mysql # not compatible
query I rowsort label-3903
SELECT ALL - 41 + - CAST ( NULLIF ( - - 63, + + COUNT ( * ) ) AS INTEGER )
----
-104

query I rowsort
SELECT 74 - 79 + + 75
----
70

query I rowsort
SELECT ( 31 ) - - 68 + 60
----
159

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3906
SELECT 86 * + CAST( 72 AS SIGNED ), 42 + 37 col1
----
6192
79

skipif mysql # not compatible
query II rowsort label-3906
SELECT 86 * + CAST ( 72 AS INTEGER ), 42 + 37 col1
----
6192
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3907
SELECT 93 + - CAST( + 68 AS SIGNED ) * + 64 col1
----
-4259

skipif mysql # not compatible
query I rowsort label-3907
SELECT 93 + - CAST ( + 68 AS INTEGER ) * + 64 col1
----
-4259

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3908
SELECT ALL + COALESCE ( - 76, - 39 ) - 25 AS col1, COALESCE ( + NULLIF ( 19, - + 60 ), - CAST( 57 AS SIGNED ) ) * + CAST( + COUNT( * ) AS SIGNED ) * - 47 + + 31 AS col1
----
-101
-862

skipif mysql # not compatible
query II rowsort label-3908
SELECT ALL + COALESCE ( - 76, - 39 ) - 25 AS col1, COALESCE ( + NULLIF ( 19, - + 60 ), - CAST ( 57 AS INTEGER ) ) * + CAST ( + COUNT ( * ) AS INTEGER ) * - 47 + + 31 AS col1
----
-101
-862

query II rowsort
SELECT DISTINCT 73, - 67 + + 11 AS col2
----
73
-56

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3910
SELECT ALL - COUNT( + 19 ) * - 39 + + CAST( NULL AS DECIMAL ) + + 12 * 59 / + + 97 * - - ( + 98 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3910
SELECT ALL - COUNT ( + 19 ) * - 39 + + CAST ( NULL AS REAL ) + + 12 * 59 / + + 97 * - - ( + 98 )
----
NULL

query I rowsort
SELECT 18 - - 58 AS col0
----
76

onlyif mysql # aggregate syntax: 
query II rowsort label-3912
SELECT - 78, 29 * - 30 + - 52 + 86 * + - COUNT( DISTINCT - 8 ) AS col2
----
-78
-1008

skipif mysql # not compatible
query II rowsort label-3912
SELECT - 78, 29 * - 30 + - 52 + 86 * + - COUNT ( DISTINCT - 8 ) AS col2
----
-78
-1008

onlyif mysql # aggregate syntax: 
query I rowsort label-3913
SELECT DISTINCT - MIN( ALL + 36 ) * - - 53 AS col1
----
-1908

skipif mysql # not compatible
query I rowsort label-3913
SELECT DISTINCT - MIN ( ALL + 36 ) * - - 53 AS col1
----
-1908

query II rowsort
SELECT 98 * - ( 21 ) AS col1, 1 * + - NULLIF ( 71, + 81 )
----
-2058
-71

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3915
SELECT 42 AS col1, - 1 - 12 DIV COUNT( * )
----
42
-13

skipif mysql # not compatible
query II rowsort label-3915
SELECT 42 AS col1, - 1 - 12 / COUNT ( * )
----
42
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-3916
SELECT - NULLIF ( 11, - - 14 ) * - + 93 * + SUM( ALL + 74 )
----
75702

skipif mysql # not compatible
query I rowsort label-3916
SELECT - NULLIF ( 11, - - 14 ) * - + 93 * + SUM ( ALL + 74 )
----
75702

query I rowsort
SELECT ALL - + ( - 76 )
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-3918
SELECT ALL - - MIN( - 40 )
----
-40

skipif mysql # not compatible
query I rowsort label-3918
SELECT ALL - - MIN ( - 40 )
----
-40

query II rowsort
SELECT DISTINCT - - 20 AS col0, - 20 + - 59 AS col1
----
20
-79

onlyif mysql # aggregate syntax: 
query II rowsort label-3920
SELECT DISTINCT - 83 + + COUNT( * ) * + 89, 16 AS col2
----
6
16

skipif mysql # not compatible
query II rowsort label-3920
SELECT DISTINCT - 83 + + COUNT ( * ) * + 89, 16 AS col2
----
6
16

query I rowsort
SELECT DISTINCT + 25 + - 21 * 75 * + 47 - - 20
----
-73980

onlyif mysql # aggregate syntax: 
query I rowsort label-3922
SELECT COUNT( * ) * + 35 * 13 * + 27
----
12285

skipif mysql # not compatible
query I rowsort label-3922
SELECT COUNT ( * ) * + 35 * 13 * + 27
----
12285

onlyif mysql # aggregate syntax: 
query I rowsort label-3923
SELECT ALL 65 + + 48 + + COUNT( * ) * - COUNT( * ) + - COUNT( * ) * + + 2 + + 70
----
180

skipif mysql # not compatible
query I rowsort label-3923
SELECT ALL 65 + + 48 + + COUNT ( * ) * - COUNT ( * ) + - COUNT ( * ) * + + 2 + + 70
----
180

query I rowsort
SELECT DISTINCT - 34 * + + 11 + + 90
----
-284

query I rowsort
SELECT + + NULLIF ( + + 71, - 70 / 63 )
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-3926
SELECT ALL + ( + - 84 ) * SUM( + 69 ) + - 44 AS col1
----
-5840

skipif mysql # not compatible
query I rowsort label-3926
SELECT ALL + ( + - 84 ) * SUM ( + 69 ) + - 44 AS col1
----
-5840

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3927
SELECT CAST( NULL AS DECIMAL ) + - 3 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3927
SELECT CAST ( NULL AS REAL ) + - 3 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3928
SELECT DISTINCT 5 + + + 63 * - 30 + + 18 col1, + 48 * MAX( - + 54 ) * - NULLIF ( 64, + + COUNT( * ) ) + - + ( + 61 ) + + 95 * - 1
----
-1867
165732

skipif mysql # not compatible
query II rowsort label-3928
SELECT DISTINCT 5 + + + 63 * - 30 + + 18 col1, + 48 * MAX ( - + 54 ) * - NULLIF ( 64, + + COUNT ( * ) ) + - + ( + 61 ) + + 95 * - 1
----
-1867
165732

onlyif mysql # aggregate syntax: 
query I rowsort label-3929
SELECT DISTINCT COUNT( * ) + - + 51 + + - 25
----
-75

skipif mysql # not compatible
query I rowsort label-3929
SELECT DISTINCT COUNT ( * ) + - + 51 + + - 25
----
-75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3930
SELECT ALL COALESCE ( 55, - - 82 ) + + COUNT( * ) * + + CASE - - 26 WHEN + CAST( + 37 AS SIGNED ) THEN NULL ELSE - 88 * - 76 END - + 54
----
6689

skipif mysql # not compatible
query I rowsort label-3930
SELECT ALL COALESCE ( 55, - - 82 ) + + COUNT ( * ) * + + CASE - - 26 WHEN + CAST ( + 37 AS INTEGER ) THEN NULL ELSE - 88 * - 76 END - + 54
----
6689

onlyif mysql # aggregate syntax: 
query II rowsort label-3931
SELECT ALL - MAX( 10 ) AS col1, - 30 AS col1
----
-10
-30

skipif mysql # not compatible
query II rowsort label-3931
SELECT ALL - MAX ( 10 ) AS col1, - 30 AS col1
----
-10
-30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3932
SELECT COUNT( * ) + CAST( - ( + - ( + 43 ) ) AS SIGNED ) AS col1, + 5
----
44
5

skipif mysql # not compatible
query II rowsort label-3932
SELECT COUNT ( * ) + CAST ( - ( + - ( + 43 ) ) AS INTEGER ) AS col1, + 5
----
44
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3933
SELECT CAST( NULL AS SIGNED ) * + 30 * - 41 * - 17 + + 52
----
NULL

skipif mysql # not compatible
query I rowsort label-3933
SELECT CAST ( NULL AS INTEGER ) * + 30 * - 41 * - 17 + + 52
----
NULL

query II rowsort
SELECT ALL 76 - + + 9 AS col1, 47
----
67
47

onlyif mysql # aggregate syntax: 
query I rowsort label-3935
SELECT ALL - NULLIF ( 21, + 63 / + + COUNT( * ) - 79 ) - - 63
----
42

skipif mysql # not compatible
query I rowsort label-3935
SELECT ALL - NULLIF ( 21, + 63 / + + COUNT ( * ) - 79 ) - - 63
----
42

query I rowsort
SELECT DISTINCT 70 * 30 AS col1
----
2100

query I rowsort
SELECT ( 93 ) + - 39 * + - 70 AS col1
----
2823

query I rowsort
SELECT 21 * + + 10
----
210

query I rowsort
SELECT 28 + 46 + 58 AS col1
----
132

onlyif mysql # aggregate syntax: 
query I rowsort label-3940
SELECT ALL 22 * - SUM( - 57 ) AS col0
----
1254

skipif mysql # not compatible
query I rowsort label-3940
SELECT ALL 22 * - SUM ( - 57 ) AS col0
----
1254

onlyif mysql # DIV for integer division: 
query III rowsort label-3941
SELECT 37 + 99 DIV + 35 - + 37 AS col0, - 20 * + - 48 * 54 col1, 32 AS col2
----
2
51840
32

skipif mysql # not compatible
query III rowsort label-3941
SELECT 37 + 99 / + 35 - + 37 AS col0, - 20 * + - 48 * 54 col1, 32 AS col2
----
2
51840
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3942
SELECT 11 * + CAST( - 27 AS SIGNED ) AS col1
----
-297

skipif mysql # not compatible
query I rowsort label-3942
SELECT 11 * + CAST ( - 27 AS INTEGER ) AS col1
----
-297

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3943
SELECT 47 + - 3 + - - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3943
SELECT 47 + - 3 + - - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT - NULLIF ( + 89, - 95 ) AS col0
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-3945
SELECT - MAX( DISTINCT 2 ) AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-3945
SELECT - MAX ( DISTINCT 2 ) AS col0
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-3946
SELECT CASE - COUNT( ALL - - 25 ) WHEN + 24 * + 31 THEN NULL ELSE - 35 END AS col1
----
-35

skipif mysql # not compatible
query I rowsort label-3946
SELECT CASE - COUNT ( ALL - - 25 ) WHEN + 24 * + 31 THEN NULL ELSE - 35 END AS col1
----
-35

onlyif mysql # aggregate syntax: 
query II rowsort label-3947
SELECT DISTINCT ( + 92 ), NULLIF ( - - 13, - CASE - 88 WHEN + - ( + 7 ) THEN COALESCE ( 42, 69, + - COUNT( - 9 ), - ( 97 ) - - 32 ) WHEN 42 * + 35 THEN 45 * 57 + COUNT( DISTINCT - 39 ) END ) * - 3 + - 30 AS col1
----
92
-69

skipif mysql # not compatible
query II rowsort label-3947
SELECT DISTINCT ( + 92 ), NULLIF ( - - 13, - CASE - 88 WHEN + - ( + 7 ) THEN COALESCE ( 42, 69, + - COUNT ( - 9 ), - ( 97 ) - - 32 ) WHEN 42 * + 35 THEN 45 * 57 + COUNT ( DISTINCT - 39 ) END ) * - 3 + - 30 AS col1
----
92
-69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3948
SELECT - + 67 * - - CAST( 40 AS SIGNED ) AS col0
----
-2680

skipif mysql # not compatible
query I rowsort label-3948
SELECT - + 67 * - - CAST ( 40 AS INTEGER ) AS col0
----
-2680

onlyif mysql # DIV for integer division: 
query I rowsort label-3949
SELECT ALL 8 DIV 7 + 93
----
94

skipif mysql # not compatible
query I rowsort label-3949
SELECT ALL 8 / 7 + 93
----
94

query I rowsort
SELECT ALL - 87 + - 5 * 38 + + 58
----
-219

query I rowsort
SELECT DISTINCT + - 13 * - 47 * + + 1 AS col2
----
611

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3952
SELECT ALL - - ( - 75 ) * 4 * + 86 AS col1, - CAST( NULL AS SIGNED ) col1
----
-25800
NULL

skipif mysql # not compatible
query II rowsort label-3952
SELECT ALL - - ( - 75 ) * 4 * + 86 AS col1, - CAST ( NULL AS INTEGER ) col1
----
-25800
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3953
SELECT - CAST( + - COUNT( * ) AS SIGNED ) * + 63
----
63

skipif mysql # not compatible
query I rowsort label-3953
SELECT - CAST ( + - COUNT ( * ) AS INTEGER ) * + 63
----
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3954
SELECT ALL + 96 * + CASE - CAST( COALESCE ( MAX( - 50 ), + 95 * - CASE - - 40 WHEN - CASE + - ( - ( + 54 ) ) WHEN - 80 THEN 28 WHEN NULLIF ( 15, 7 - + 32 * 99 ) THEN + 28 WHEN + 90 * NULLIF ( - 96 * - 96, MAX( ALL + 18 ) * 73 ) THEN NULL ELSE 33 + - SUM( - 42 ) * + 70 END THEN NULL ELSE 13 / - 30 END + + 65 ) AS SIGNED ) WHEN + 23 THEN CASE COUNT( * ) WHEN - COALESCE ( + MIN( DISTINCT - 26 ), 98 + ( - 4 ), - 12 + SUM( ALL - ( - 69 ) + 51 * + 12 ) / COUNT( * ) ) + - 57 THEN 36 ELSE NULL END WHEN 94 + CASE + 41 WHEN MIN( + 0 ) THEN NULL ELSE 8 + + 87 END THEN 48 / CAST( COUNT( 99 ) AS SIGNED ) WHEN + CASE 19 WHEN 38 * + 16 THEN - CAST( CAST( NULL AS SIGNED ) AS SIGNED ) WHEN 15 - - 34 THEN NULL ELSE + COUNT( * ) END THEN + ( + 62 ) END + 75 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3954
SELECT ALL + 96 * + CASE - CAST ( COALESCE ( MAX ( - 50 ), + 95 * - CASE - - 40 WHEN - CASE + - ( - ( + 54 ) ) WHEN - 80 THEN 28 WHEN NULLIF ( 15, 7 - + 32 * 99 ) THEN + 28 WHEN + 90 * NULLIF ( - 96 * - 96, MAX ( ALL + 18 ) * 73 ) THEN NULL ELSE 33 + - SUM ( - 42 ) * + 70 END THEN NULL ELSE 13 / - 30 END + + 65 ) AS INTEGER ) WHEN + 23 THEN CASE COUNT ( * ) WHEN - COALESCE ( + MIN ( DISTINCT - 26 ), 98 + ( - 4 ), - 12 + SUM ( ALL - ( - 69 ) + 51 * + 12 ) / COUNT ( * ) ) + - 57 THEN 36 ELSE NULL END WHEN 94 + CASE + 41 WHEN MIN ( + 0 ) THEN NULL ELSE 8 + + 87 END THEN 48 / CAST ( COUNT ( 99 ) AS INTEGER ) WHEN + CASE 19 WHEN 38 * + 16 THEN - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) WHEN 15 - - 34 THEN NULL ELSE + COUNT ( * ) END THEN + ( + 62 ) END + 75 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3955
SELECT + ( + 44 ) DIV - + 18 + - + 3 AS col1
----
-5

skipif mysql # not compatible
query I rowsort label-3955
SELECT + ( + 44 ) / - + 18 + - + 3 AS col1
----
-5

query I rowsort
SELECT ALL + 89 * - - 0 + ( + + 74 ) AS col1
----
74

query I rowsort
SELECT ALL + 46 * + - 49 + 4
----
-2250

query I rowsort
SELECT - + 66 - - - 57
----
-123

query I rowsort
SELECT DISTINCT + ( 12 ) AS col0
----
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3960
SELECT - COALESCE ( - ( + - CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) ), + - MIN( - 47 ) * - 7 ), COUNT( + 22 ) AS col1
----
329
1

skipif mysql # not compatible
query II rowsort label-3960
SELECT - COALESCE ( - ( + - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) ), + - MIN ( - 47 ) * - 7 ), COUNT ( + 22 ) AS col1
----
329
1

query I rowsort
SELECT ALL + - 99 col1
----
-99

query I rowsort
SELECT - 82 * - 4 AS col1
----
328

onlyif mysql # aggregate syntax: 
query II rowsort label-3963
SELECT ALL - 89 * + COUNT( * ) col0, COUNT( * ) AS col0
----
-89
1

skipif mysql # not compatible
query II rowsort label-3963
SELECT ALL - 89 * + COUNT ( * ) col0, COUNT ( * ) AS col0
----
-89
1

query I rowsort
SELECT COALESCE ( - - ( + 15 ), - - ( + 87 ) + 95 * + 87 )
----
15

query I rowsort
SELECT + 65 - - 34
----
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3966
SELECT - COALESCE ( 71, + + 57, - MAX( ALL + 90 ) * - COUNT( * ) * ( - 57 ) ) + + - 32 + - 68 + - 20 * - 83 + - 98 DIV - SUM( DISTINCT - 68 ) + 28 AS col2
----
1516

skipif mysql # not compatible
query I rowsort label-3966
SELECT - COALESCE ( 71, + + 57, - MAX ( ALL + 90 ) * - COUNT ( * ) * ( - 57 ) ) + + - 32 + - 68 + - 20 * - 83 + - 98 / - SUM ( DISTINCT - 68 ) + 28 AS col2
----
1516

query I rowsort
SELECT ALL + 24 * - 3
----
-72

query I rowsort
SELECT + 47 * - + 86 * - 64
----
258688

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3969
SELECT AVG ( + ( + CAST( NULL AS SIGNED ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3969
SELECT AVG ( + ( + CAST ( NULL AS INTEGER ) ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3970
SELECT ALL - 51 * + CAST( NULL AS SIGNED ) * - - AVG ( DISTINCT - 81 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3970
SELECT ALL - 51 * + CAST ( NULL AS INTEGER ) * - - AVG ( DISTINCT - 81 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3971
SELECT + 99 DIV 99 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3971
SELECT + 99 / 99 AS col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3972
SELECT ALL ( - - COUNT( * ) ) / - - 37 * + + CAST( NULL AS SIGNED ) * - 71 + 23 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3972
SELECT ALL ( - - COUNT ( * ) ) / - - 37 * + + CAST ( NULL AS INTEGER ) * - 71 + 23 AS col1
----
NULL

query I rowsort
SELECT - ( + 1 ) AS col2
----
-1

query II rowsort
SELECT 90 AS col2, + 63 * + + 97 AS col1
----
90
6111

query I rowsort
SELECT + 81 - - 55 AS col0
----
136

query I rowsort
SELECT + 45 * + 6 * - 63 AS col2
----
-17010

query I rowsort
SELECT + 57 + + 8 AS col0
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-3978
SELECT DISTINCT - COUNT( * ) + - - COALESCE ( - 12, - + 42, - + 44 * - + 97 ) * + - 34 * + - 76 AS col2
----
-31009

skipif mysql # not compatible
query I rowsort label-3978
SELECT DISTINCT - COUNT ( * ) + - - COALESCE ( - 12, - + 42, - + 44 * - + 97 ) * + - 34 * + - 76 AS col2
----
-31009

onlyif mysql # aggregate syntax: 
query I rowsort label-3979
SELECT + NULLIF ( + CASE WHEN ( + 34 ) NOT IN ( 93 + + COALESCE ( - 72, 47 ) / - 87 ) THEN NULL ELSE + ( + - CASE - - 79 WHEN + COALESCE ( 26, CASE + 45 WHEN + 12 THEN + 91 + 34 WHEN 66 * + 65 + - 31 THEN AVG ( ALL + 51 ) * 46 ELSE NULL END + 49 * 98 ) * ( 30 ) THEN + 3 WHEN + 1 THEN 40 + COUNT( * ) WHEN + 56 THEN + 12 + 19 END ) END, - 99 * SUM( + CASE 41 WHEN 50 THEN NULL WHEN 6 THEN + 88 * + 10 END ) ) * 52
----
NULL

skipif mysql # not compatible
query I rowsort label-3979
SELECT + NULLIF ( + CASE WHEN ( + 34 ) NOT IN ( 93 + + COALESCE ( - 72, 47 ) / - 87 ) THEN NULL ELSE + ( + - CASE - - 79 WHEN + COALESCE ( 26, CASE + 45 WHEN + 12 THEN + 91 + 34 WHEN 66 * + 65 + - 31 THEN AVG ( ALL + 51 ) * 46 ELSE NULL END + 49 * 98 ) * ( 30 ) THEN + 3 WHEN + 1 THEN 40 + COUNT ( * ) WHEN + 56 THEN + 12 + 19 END ) END, - 99 * SUM ( + CASE 41 WHEN 50 THEN NULL WHEN 6 THEN + 88 * + 10 END ) ) * 52
----
NULL

query II rowsort
SELECT ALL 97 + - - ( 28 ) AS col2, - 91 AS col2
----
125
-91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3981
SELECT DISTINCT COUNT( * ) + CAST( - SUM( - + 49 ) AS SIGNED ) * MAX( ( ( + 45 ) ) ) DIV + - MIN( - 67 )
----
33

skipif mysql # not compatible
query I rowsort label-3981
SELECT DISTINCT COUNT ( * ) + CAST ( - SUM ( - + 49 ) AS INTEGER ) * MAX ( ( ( + 45 ) ) ) / + - MIN ( - 67 )
----
33

onlyif mysql # aggregate syntax: 
query II rowsort label-3982
SELECT DISTINCT COUNT( * ) col0, - 99 * ( + - 34 )
----
1
3366

skipif mysql # not compatible
query II rowsort label-3982
SELECT DISTINCT COUNT ( * ) col0, - 99 * ( + - 34 )
----
1
3366

onlyif mysql # DIV for integer division: 
query I rowsort label-3983
SELECT + - 36 + 98 + - 62 DIV 89
----
62

skipif mysql # not compatible
query I rowsort label-3983
SELECT + - 36 + 98 + - 62 / 89
----
62

onlyif mysql # DIV for integer division: 
query I rowsort label-3984
SELECT + + 30 - 6 + + 88 DIV + 91
----
24

skipif mysql # not compatible
query I rowsort label-3984
SELECT + + 30 - 6 + + 88 / + 91
----
24

query I rowsort
SELECT ALL + 25 + + 31
----
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3986
SELECT - CAST( + + CAST( NULL AS SIGNED ) AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3986
SELECT - CAST ( + + CAST ( NULL AS INTEGER ) AS INTEGER ) col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3987
SELECT - + 25 AS col2, 34 DIV ( CAST( + MAX( 57 ) AS SIGNED ) ) * - 77 * + - 0 AS col2
----
-25
0

skipif mysql # not compatible
query II rowsort label-3987
SELECT - + 25 AS col2, 34 / ( CAST ( + MAX ( 57 ) AS INTEGER ) ) * - 77 * + - 0 AS col2
----
-25
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3988
SELECT ALL + MIN( ALL 73 ) + 38 AS col1, + 49 AS col2
----
111
49

skipif mysql # not compatible
query II rowsort label-3988
SELECT ALL + MIN ( ALL 73 ) + 38 AS col1, + 49 AS col2
----
111
49

query I rowsort
SELECT + 16 + - 96 * 47
----
-4496

query II rowsort
SELECT + 87 col1, - 92
----
87
-92

onlyif mysql # aggregate syntax: 
query II rowsort label-3991
SELECT + 30 + - 83 * + - NULLIF ( + + 96, + COUNT( * ) ), 30 AS col0
----
7998
30

skipif mysql # not compatible
query II rowsort label-3991
SELECT + 30 + - 83 * + - NULLIF ( + + 96, + COUNT ( * ) ), 30 AS col0
----
7998
30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3992
SELECT ALL + MIN( 69 ) DIV - - SUM( ALL + - NULLIF ( - 25, + 20 ) )
----
2

skipif mysql # not compatible
query I rowsort label-3992
SELECT ALL + MIN ( 69 ) / - - SUM ( ALL + - NULLIF ( - 25, + 20 ) )
----
2

query I rowsort
SELECT - 43 + - 18
----
-61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3994
SELECT DISTINCT + 51 * + CASE + ( 72 ) WHEN - + 89 - + - 14 / + - 96 + + + 21 THEN CAST( NULL AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-3994
SELECT DISTINCT + 51 * + CASE + ( 72 ) WHEN - + 89 - + - 14 / + - 96 + + + 21 THEN CAST ( NULL AS INTEGER ) END
----
NULL

query I rowsort
SELECT ALL + + 43 * - 25
----
-1075

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3996
SELECT + - CASE + 81 WHEN CAST( NULL AS SIGNED ) THEN NULL WHEN + ( + SUM( + - COALESCE ( + 33, - 63 ) ) ) THEN + - CASE 41 WHEN 99 - 95 THEN + + CAST( - 48 AS SIGNED ) + 90 ELSE NULL END * 61 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3996
SELECT + - CASE + 81 WHEN CAST ( NULL AS INTEGER ) THEN NULL WHEN + ( + SUM ( + - COALESCE ( + 33, - 63 ) ) ) THEN + - CASE 41 WHEN 99 - 95 THEN + + CAST ( - 48 AS INTEGER ) + 90 ELSE NULL END * 61 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3997
SELECT SUM( - CAST( - + 54 AS SIGNED ) ) * COUNT( * ) + 8 col2, - 21 + + 75 + COUNT( * ) * + 80 DIV - + 39
----
62
52

skipif mysql # not compatible
query II rowsort label-3997
SELECT SUM ( - CAST ( - + 54 AS INTEGER ) ) * COUNT ( * ) + 8 col2, - 21 + + 75 + COUNT ( * ) * + 80 / - + 39
----
62
52

query I rowsort
SELECT - 69 * + - 96 + + 11 AS col2
----
6635

query II rowsort
SELECT ALL + ( + + 98 ) AS col0, ( 9 ) * 22 col0
----
98
198

onlyif mysql # aggregate syntax: 
query I rowsort label-4000
SELECT - COUNT( - 73 ) * - 45 AS col0
----
45

skipif mysql # not compatible
query I rowsort label-4000
SELECT - COUNT ( - 73 ) * - 45 AS col0
----
45

query I rowsort
SELECT - 59 * - + 8 AS col1
----
472

query II rowsort
SELECT + 97 AS col0, - COALESCE ( - 94, 25 * - 65 )
----
97
94

query I rowsort
SELECT 19 * - 53 + + 5
----
-1002

query I rowsort
SELECT - 23 * + - 39 AS col1
----
897

onlyif mysql # aggregate syntax: 
query I rowsort label-4005
SELECT DISTINCT + MIN( 12 )
----
12

skipif mysql # not compatible
query I rowsort label-4005
SELECT DISTINCT + MIN ( 12 )
----
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4006
SELECT - 17 + - COALESCE ( - SUM( CAST( NULL AS SIGNED ) ), + 42 ) DIV + 46 AS col0, 14
----
-17
14

skipif mysql # not compatible
query II rowsort label-4006
SELECT - 17 + - COALESCE ( - SUM ( CAST ( NULL AS INTEGER ) ), + 42 ) / + 46 AS col0, 14
----
-17
14

query II rowsort
SELECT - 87 * + + 69, 93 col0
----
-6003
93

query I rowsort
SELECT - 5 + 59
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-4009
SELECT NULLIF ( + MAX( + + ( - 14 ) ), 44 ) col0
----
-14

skipif mysql # not compatible
query I rowsort label-4009
SELECT NULLIF ( + MAX ( + + ( - 14 ) ), 44 ) col0
----
-14

query I rowsort
SELECT - ( - + COALESCE ( ( - COALESCE ( - + 99, + 56 ) ), + - 20 ) )
----
99

query I rowsort
SELECT 84 * - 52 * + 48 + - + 37
----
-209701

onlyif mysql # aggregate syntax: 
query I rowsort label-4012
SELECT + 87 - - + NULLIF ( - - SUM( 17 ), COUNT( * ) ) AS col1
----
104

skipif mysql # not compatible
query I rowsort label-4012
SELECT + 87 - - + NULLIF ( - - SUM ( 17 ), COUNT ( * ) ) AS col1
----
104

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4013
SELECT + CAST( + 33 AS SIGNED ) * 16 AS col0
----
528

skipif mysql # not compatible
query I rowsort label-4013
SELECT + CAST ( + 33 AS INTEGER ) * 16 AS col0
----
528

query II rowsort
SELECT 16 + - 22 AS col0, 53
----
-6
53

onlyif mysql # aggregate syntax: 
query II rowsort label-4015
SELECT - + COUNT( * ) AS col2, + 22 AS col0
----
-1
22

skipif mysql # not compatible
query II rowsort label-4015
SELECT - + COUNT ( * ) AS col2, + 22 AS col0
----
-1
22

onlyif mysql # aggregate syntax: 
query I rowsort label-4016
SELECT ALL 31 + COUNT( * )
----
32

skipif mysql # not compatible
query I rowsort label-4016
SELECT ALL 31 + COUNT ( * )
----
32

query I rowsort
SELECT 96 * - 86 AS col1
----
-8256

query II rowsort
SELECT - 60 AS col1, - 16
----
-60
-16

query I rowsort
SELECT ALL 58 * - + 73 col2
----
-4234

onlyif mysql # aggregate syntax: 
query I rowsort label-4020
SELECT ALL - COUNT( * ) - 38
----
-39

skipif mysql # not compatible
query I rowsort label-4020
SELECT ALL - COUNT ( * ) - 38
----
-39

query I rowsort
SELECT ALL - 64 - 6 AS col0
----
-70

query II rowsort
SELECT - 16 AS col0, + 3
----
-16
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4023
SELECT ALL CAST( NULL AS SIGNED ) AS col2, - 33 + 37 + + ( CASE - - 43 WHEN + ( + CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) ) THEN - + 48 + - 4 WHEN - COUNT( * ) THEN SUM( DISTINCT + NULLIF ( - - 29, + 44 * 96 ) ) ELSE CASE 89 WHEN - 43 THEN + 86 WHEN - CAST( NULL AS SIGNED ) + + 72 THEN NULL END * 99 END ) / + CAST( + COUNT( * ) AS SIGNED ) col0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-4023
SELECT ALL CAST ( NULL AS INTEGER ) AS col2, - 33 + 37 + + ( CASE - - 43 WHEN + ( + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) ) THEN - + 48 + - 4 WHEN - COUNT ( * ) THEN SUM ( DISTINCT + NULLIF ( - - 29, + 44 * 96 ) ) ELSE CASE 89 WHEN - 43 THEN + 86 WHEN - CAST ( NULL AS INTEGER ) + + 72 THEN NULL END * 99 END ) / + CAST ( + COUNT ( * ) AS INTEGER ) col0
----
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4024
SELECT - NULLIF ( - 13, + + NULLIF ( + 74, + 13 ) * - 60 * + ( - 6 ) ) DIV - - 10 + + COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-4024
SELECT - NULLIF ( - 13, + + NULLIF ( + 74, + 13 ) * - 60 * + ( - 6 ) ) / - - 10 + + COUNT ( * )
----
2

query I rowsort
SELECT DISTINCT 42 * + - 59 * 1
----
-2478

query II rowsort
SELECT + - 44, - COALESCE ( + 98, + - 70 * - 19 ) * + 77 col1
----
-44
-7546

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4027
SELECT CAST( NULL AS SIGNED ) AS col0, 6 AS col1
----
NULL
6

skipif mysql # not compatible
query II rowsort label-4027
SELECT CAST ( NULL AS INTEGER ) AS col0, 6 AS col1
----
NULL
6

onlyif mysql # aggregate syntax: 
query II rowsort label-4028
SELECT ALL - - MAX( - + 9 ) AS col0, + 27 AS col1
----
-9
27

skipif mysql # not compatible
query II rowsort label-4028
SELECT ALL - - MAX ( - + 9 ) AS col0, + 27 AS col1
----
-9
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4029
SELECT + COUNT( * ) DIV + - ( + 33 ) - - 42 * - - 64 * + CAST( - ( 24 ) AS SIGNED )
----
-64512

skipif mysql # not compatible
query I rowsort label-4029
SELECT + COUNT ( * ) / + - ( + 33 ) - - 42 * - - 64 * + CAST ( - ( 24 ) AS INTEGER )
----
-64512

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4030
SELECT 31 - 5 DIV COUNT( * ) DIV + 88 AS col2
----
31

skipif mysql # not compatible
query I rowsort label-4030
SELECT 31 - 5 / COUNT ( * ) / + 88 AS col2
----
31

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4031
SELECT 37 DIV + - 52 AS col1, + ( 34 ) - - 12 + - 30 * - COUNT( * ) AS col2
----
0
76

skipif mysql # not compatible
query II rowsort label-4031
SELECT 37 / + - 52 AS col1, + ( 34 ) - - 12 + - 30 * - COUNT ( * ) AS col2
----
0
76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4032
SELECT ALL - CAST( ( - - COUNT( * ) ) AS SIGNED ) + + - 45 * - 32
----
1439

skipif mysql # not compatible
query I rowsort label-4032
SELECT ALL - CAST ( ( - - COUNT ( * ) ) AS INTEGER ) + + - 45 * - 32
----
1439

onlyif mysql # aggregate syntax: 
query I rowsort label-4033
SELECT 47 * - COUNT( * ) AS col2
----
-47

skipif mysql # not compatible
query I rowsort label-4033
SELECT 47 * - COUNT ( * ) AS col2
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-4034
SELECT DISTINCT - COUNT( * ) + 24 + - 92
----
-69

skipif mysql # not compatible
query I rowsort label-4034
SELECT DISTINCT - COUNT ( * ) + 24 + - 92
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-4035
SELECT 98 * - 30 + 95 + + 84 * - 30 * + COUNT( 63 ) AS col2
----
-5365

skipif mysql # not compatible
query I rowsort label-4035
SELECT 98 * - 30 + 95 + + 84 * - 30 * + COUNT ( 63 ) AS col2
----
-5365

query II rowsort
SELECT ALL - ( 65 ), 5 col0
----
-65
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4037
SELECT 37 * + COUNT( + 71 ) AS col0
----
37

skipif mysql # not compatible
query I rowsort label-4037
SELECT 37 * + COUNT ( + 71 ) AS col0
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-4038
SELECT ALL + COUNT( + + 68 ) + + 49 + + + 24 * + 64 + - 31
----
1555

skipif mysql # not compatible
query I rowsort label-4038
SELECT ALL + COUNT ( + + 68 ) + + 49 + + + 24 * + 64 + - 31
----
1555

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4039
SELECT DISTINCT - CAST( NULL AS SIGNED ) + + 19 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4039
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + + 19 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4040
SELECT ALL - 89 + - CASE + 42 WHEN - CAST( - 38 AS SIGNED ) + - 27 THEN NULL ELSE 31 END + - 34 AS col1, - COUNT( * ) AS col0
----
-154
-1

skipif mysql # not compatible
query II rowsort label-4040
SELECT ALL - 89 + - CASE + 42 WHEN - CAST ( - 38 AS INTEGER ) + - 27 THEN NULL ELSE 31 END + - 34 AS col1, - COUNT ( * ) AS col0
----
-154
-1

query I rowsort
SELECT DISTINCT + 35 + 70 AS col2
----
105

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4042
SELECT NULLIF ( - + CAST( NULL AS SIGNED ), - 87 + - 5 * - 40 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4042
SELECT NULLIF ( - + CAST ( NULL AS INTEGER ), - 87 + - 5 * - 40 ) AS col1
----
NULL

query I rowsort
SELECT + 71 - + 40 AS col1
----
31

query I rowsort
SELECT + ( + 49 ) + + 25 + + + 23 + 45 AS col2
----
142

onlyif mysql # aggregate syntax: 
query I rowsort label-4045
SELECT + 55 * 61 + + + COUNT( + 46 )
----
3356

skipif mysql # not compatible
query I rowsort label-4045
SELECT + 55 * 61 + + + COUNT ( + 46 )
----
3356

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4046
SELECT DISTINCT - 6 DIV - COUNT( * ) col1
----
6

skipif mysql # not compatible
query I rowsort label-4046
SELECT DISTINCT - 6 / - COUNT ( * ) col1
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4047
SELECT + COALESCE ( - - 60, - SUM( + + 45 ) - + 7, - - 38 ) + - - 96 AS col1, COUNT( * ) + + + COALESCE ( 92, - 96, + CAST( NULL AS SIGNED ) + COUNT( * ) )
----
156
93

skipif mysql # not compatible
query II rowsort label-4047
SELECT + COALESCE ( - - 60, - SUM ( + + 45 ) - + 7, - - 38 ) + - - 96 AS col1, COUNT ( * ) + + + COALESCE ( 92, - 96, + CAST ( NULL AS INTEGER ) + COUNT ( * ) )
----
156
93

query I rowsort
SELECT DISTINCT + 15 - - 74 AS col2
----
89

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4049
SELECT - 35 - - - 39 / + 29 + - CAST( NULL AS DECIMAL ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4049
SELECT - 35 - - - 39 / + 29 + - CAST ( NULL AS REAL ) col1
----
NULL

query I rowsort
SELECT ALL + + 72 * - 11
----
-792

query I rowsort
SELECT - 78 + - 23
----
-101

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4052
SELECT 80 + - NULLIF ( - + CAST( 53 AS SIGNED ), + 6 / - 42 * + - 57 ) AS col0
----
133

skipif mysql # not compatible
query I rowsort label-4052
SELECT 80 + - NULLIF ( - + CAST ( 53 AS INTEGER ), + 6 / - 42 * + - 57 ) AS col0
----
133

onlyif mysql # aggregate syntax: 
query I rowsort label-4053
SELECT COUNT( * ) * + 28 + + 28
----
56

skipif mysql # not compatible
query I rowsort label-4053
SELECT COUNT ( * ) * + 28 + + 28
----
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4054
SELECT 72 * + + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4054
SELECT 72 * + + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT 59 + - 60
----
-1

query I rowsort
SELECT + 28 + + + 99 AS col1
----
127

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4057
SELECT NULLIF ( + + 28, + - 53 * + 37 * - COUNT( - - 67 ) ) * - NULLIF ( 51, - - 55 * + ( - - 57 ) * - COUNT( * ) + - 70 / + ( - - 33 ) + + COUNT( * ) * + - 7 ) + - 46 + CAST( - COALESCE ( - 83, 27 * - 42, - 57 * CAST( 71 AS SIGNED ) ) + 47 AS SIGNED ) * 67 AS col2
----
7236

skipif mysql # not compatible
query I rowsort label-4057
SELECT NULLIF ( + + 28, + - 53 * + 37 * - COUNT ( - - 67 ) ) * - NULLIF ( 51, - - 55 * + ( - - 57 ) * - COUNT ( * ) + - 70 / + ( - - 33 ) + + COUNT ( * ) * + - 7 ) + - 46 + CAST ( - COALESCE ( - 83, 27 * - 42, - 57 * CAST ( 71 AS INTEGER ) ) + 47 AS INTEGER ) * 67 AS col2
----
7236

query I rowsort
SELECT 6 + - + 2 AS col0
----
4

onlyif mysql # aggregate syntax: 
query II rowsort label-4059
SELECT ALL - COUNT( * ), + 30 AS col2
----
-1
30

skipif mysql # not compatible
query II rowsort label-4059
SELECT ALL - COUNT ( * ), + 30 AS col2
----
-1
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4060
SELECT ALL CAST( + SUM( ALL - + 55 ) AS SIGNED ) * - - 87
----
-4785

skipif mysql # not compatible
query I rowsort label-4060
SELECT ALL CAST ( + SUM ( ALL - + 55 ) AS INTEGER ) * - - 87
----
-4785

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4061
SELECT CAST( NULL AS SIGNED ) + - 26 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4061
SELECT CAST ( NULL AS INTEGER ) + - 26 col1
----
NULL

query I rowsort
SELECT ALL COALESCE ( + 18, + 71 ) * + 29 * - 83
----
-43326

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4063
SELECT CAST( NULL AS SIGNED ) * 58 / - 9
----
NULL

skipif mysql # not compatible
query I rowsort label-4063
SELECT CAST ( NULL AS INTEGER ) * 58 / - 9
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4064
SELECT MIN( - - 21 ) col0
----
21

skipif mysql # not compatible
query I rowsort label-4064
SELECT MIN ( - - 21 ) col0
----
21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4065
SELECT ALL - 25 * 36 DIV 77 + ( - 20 ) + + 87 + + ( - 42 ) + + COUNT( * ) + 19 * ( - 83 )
----
-1562

skipif mysql # not compatible
query I rowsort label-4065
SELECT ALL - 25 * 36 / 77 + ( - 20 ) + + 87 + + ( - 42 ) + + COUNT ( * ) + 19 * ( - 83 )
----
-1562

onlyif mysql # aggregate syntax: 
query I rowsort label-4066
SELECT + NULLIF ( SUM( + - 2 ), + - 11 ) AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-4066
SELECT + NULLIF ( SUM ( + - 2 ), + - 11 ) AS col1
----
-2

query I rowsort
SELECT + 82 + - 64 AS col2
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-4068
SELECT SUM( - 6 ) col0
----
-6

skipif mysql # not compatible
query I rowsort label-4068
SELECT SUM ( - 6 ) col0
----
-6

query II rowsort
SELECT ALL + 92 col0, NULLIF ( - ( + - 41 ), 46 )
----
92
41

query II rowsort
SELECT + 58 + + 80 * 56 AS col2, 92 * + 54
----
4538
4968

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4071
SELECT ALL + 48 * 17 + CASE 86 WHEN - ( + CAST( NULL AS DECIMAL ) ) THEN NULL WHEN CAST( - + 81 AS SIGNED ) THEN + 38 ELSE ( - 38 ) END
----
778

skipif mysql # not compatible
query I rowsort label-4071
SELECT ALL + 48 * 17 + CASE 86 WHEN - ( + CAST ( NULL AS REAL ) ) THEN NULL WHEN CAST ( - + 81 AS INTEGER ) THEN + 38 ELSE ( - 38 ) END
----
778

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4072
SELECT 93 * + - CAST( + 69 AS SIGNED ) + + NULLIF ( - ( - - 86 ), 86 * + 26 ) * + 19 col2
----
-8051

skipif mysql # not compatible
query I rowsort label-4072
SELECT 93 * + - CAST ( + 69 AS INTEGER ) + + NULLIF ( - ( - - 86 ), 86 * + 26 ) * + 19 col2
----
-8051

onlyif mysql # aggregate syntax: 
query I rowsort label-4073
SELECT ALL 22 * + 70 + - 44 * - COUNT( + 66 )
----
1584

skipif mysql # not compatible
query I rowsort label-4073
SELECT ALL 22 * + 70 + - 44 * - COUNT ( + 66 )
----
1584

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4074
SELECT + CASE - 87 WHEN - - 70 + + + 37 + + - 94 THEN + COUNT( * ) ELSE - + 13 DIV + 12 END
----
-1

skipif mysql # not compatible
query I rowsort label-4074
SELECT + CASE - 87 WHEN - - 70 + + + 37 + + - 94 THEN + COUNT ( * ) ELSE - + 13 / + 12 END
----
-1

query I rowsort
SELECT + 40 * - + 86 + - 84
----
-3524

query I rowsort
SELECT - 86 * - 84 col1
----
7224

onlyif mysql # DIV for integer division: 
query II rowsort label-4077
SELECT ALL 92 DIV 97 * - + 14 AS col2, - 73 + + - 97 col1
----
0
-170

skipif mysql # not compatible
query II rowsort label-4077
SELECT ALL 92 / 97 * - + 14 AS col2, - 73 + + - 97 col1
----
0
-170

query I rowsort
SELECT - + 43 + + 83 AS col1
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-4079
SELECT ALL + COUNT( * ) + + 40 AS col1
----
41

skipif mysql # not compatible
query I rowsort label-4079
SELECT ALL + COUNT ( * ) + + 40 AS col1
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-4080
SELECT - + 87 * - COUNT( 10 ) + 87
----
174

skipif mysql # not compatible
query I rowsort label-4080
SELECT - + 87 * - COUNT ( 10 ) + 87
----
174

query I rowsort
SELECT + 60 * + - 36
----
-2160

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4082
SELECT 57 * 58 + 84 + + CAST( NULL AS SIGNED ) + 54
----
NULL

skipif mysql # not compatible
query I rowsort label-4082
SELECT 57 * 58 + 84 + + CAST ( NULL AS INTEGER ) + 54
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4083
SELECT ALL + - 49 * + COUNT( + - 42 ) + - + COUNT( * ) DIV 91 * - ( + 86 ) + + 11
----
-38

skipif mysql # not compatible
query I rowsort label-4083
SELECT ALL + - 49 * + COUNT ( + - 42 ) + - + COUNT ( * ) / 91 * - ( + 86 ) + + 11
----
-38

query I rowsort
SELECT ALL 52 - + 26 AS col1
----
26

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4085
SELECT - 78 AS col0, 60 * 75 + + CAST( NULL AS SIGNED ) + ( - ( + 54 ) ) * - 49 AS col2
----
-78
NULL

skipif mysql # not compatible
query II rowsort label-4085
SELECT - 78 AS col0, 60 * 75 + + CAST ( NULL AS INTEGER ) + ( - ( + 54 ) ) * - 49 AS col2
----
-78
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4086
SELECT DISTINCT COUNT( DISTINCT - 50 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-4086
SELECT DISTINCT COUNT ( DISTINCT - 50 ) col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4087
SELECT - 19 + - - SUM( DISTINCT 98 ) AS col1
----
79

skipif mysql # not compatible
query I rowsort label-4087
SELECT - 19 + - - SUM ( DISTINCT 98 ) AS col1
----
79

onlyif mysql # aggregate syntax: 
query II rowsort label-4088
SELECT DISTINCT 73 col0, COUNT( * ) + 61
----
73
62

skipif mysql # not compatible
query II rowsort label-4088
SELECT DISTINCT 73 col0, COUNT ( * ) + 61
----
73
62

onlyif mysql # aggregate syntax: 
query I rowsort label-4089
SELECT - 76 * + + COUNT( * ) * MIN( ALL 43 ) AS col1
----
-3268

skipif mysql # not compatible
query I rowsort label-4089
SELECT - 76 * + + COUNT ( * ) * MIN ( ALL 43 ) AS col1
----
-3268

query I rowsort
SELECT - + 50 * 81 * + + 49
----
-198450

onlyif mysql # aggregate syntax: 
query I rowsort label-4091
SELECT - MIN( DISTINCT + 64 )
----
-64

skipif mysql # not compatible
query I rowsort label-4091
SELECT - MIN ( DISTINCT + 64 )
----
-64

query I rowsort
SELECT ALL - 12 * + - 76 AS col0
----
912

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4093
SELECT DISTINCT - CASE + - CASE + 74 WHEN + 93 + + - 8 + - - 67 + + - ( COUNT( * ) ) THEN 14 - - - 51 WHEN 27 THEN - 26 ELSE NULL END WHEN - + COUNT( + - 72 ) / - 26 THEN - CASE COUNT( * ) WHEN - - 47 / - 63 THEN + 43 * - 80 WHEN 25 THEN NULL END / + COUNT( * ) ELSE NULL END + COUNT( * ) * CAST( + COUNT( DISTINCT + 43 ) AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4093
SELECT DISTINCT - CASE + - CASE + 74 WHEN + 93 + + - 8 + - - 67 + + - ( COUNT ( * ) ) THEN 14 - - - 51 WHEN 27 THEN - 26 ELSE NULL END WHEN - + COUNT ( + - 72 ) / - 26 THEN - CASE COUNT ( * ) WHEN - - 47 / - 63 THEN + 43 * - 80 WHEN 25 THEN NULL END / + COUNT ( * ) ELSE NULL END + COUNT ( * ) * CAST ( + COUNT ( DISTINCT + 43 ) AS INTEGER ) col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4094
SELECT DISTINCT - SUM( 57 ) * - 55 + CAST( NULL AS SIGNED ) + + 17 / - CAST( - COUNT( + CAST( NULL AS SIGNED ) ) AS SIGNED ) * + CASE + 99 WHEN - 21 THEN + CASE + 64 WHEN - + 54 + - 12 THEN NULL WHEN - 69 THEN - 3 * + 64 + - + 66 WHEN + 64 THEN - 63 * NULLIF ( - MAX( DISTINCT 39 ), + COUNT( ALL - 35 ) * - 69 ) END * - ( + 80 - NULLIF ( - 69, + 56 - + 84 ) ) + 53 * - COUNT( * ) WHEN + 84 * 4 THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4094
SELECT DISTINCT - SUM ( 57 ) * - 55 + CAST ( NULL AS INTEGER ) + + 17 / - CAST ( - COUNT ( + CAST ( NULL AS INTEGER ) ) AS INTEGER ) * + CASE + 99 WHEN - 21 THEN + CASE + 64 WHEN - + 54 + - 12 THEN NULL WHEN - 69 THEN - 3 * + 64 + - + 66 WHEN + 64 THEN - 63 * NULLIF ( - MAX ( DISTINCT 39 ), + COUNT ( ALL - 35 ) * - 69 ) END * - ( + 80 - NULLIF ( - 69, + 56 - + 84 ) ) + 53 * - COUNT ( * ) WHEN + 84 * 4 THEN NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4095
SELECT - COUNT( * ) DIV 55 DIV - 21
----
0

skipif mysql # not compatible
query I rowsort label-4095
SELECT - COUNT ( * ) / 55 / - 21
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4096
SELECT 34 DIV + COUNT( * ) - + + 9 AS col1
----
25

skipif mysql # not compatible
query I rowsort label-4096
SELECT 34 / + COUNT ( * ) - + + 9 AS col1
----
25

query I rowsort
SELECT - 58 * + 51
----
-2958

onlyif mysql # DIV for integer division: 
query I rowsort label-4098
SELECT DISTINCT + 4 DIV - 79 + - 90 * + - 62 col2
----
5580

skipif mysql # not compatible
query I rowsort label-4098
SELECT DISTINCT + 4 / - 79 + - 90 * + - 62 col2
----
5580

query I rowsort
SELECT ( - 86 ) col1
----
-86

query I rowsort
SELECT + 28 * + + 62
----
1736

onlyif mysql # aggregate syntax: 
query I rowsort label-4101
SELECT + CASE - - 8 WHEN + 97 + 13 + - + COUNT( ALL - 55 ) THEN + 7 - + + ( - 33 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4101
SELECT + CASE - - 8 WHEN + 97 + 13 + - + COUNT ( ALL - 55 ) THEN + 7 - + + ( - 33 ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4102
SELECT ( + 17 ) AS col1, MIN( 72 ) AS col1
----
17
72

skipif mysql # not compatible
query II rowsort label-4102
SELECT ( + 17 ) AS col1, MIN ( 72 ) AS col1
----
17
72

onlyif mysql # aggregate syntax: 
query I rowsort label-4103
SELECT + ( - MAX( DISTINCT 56 ) )
----
-56

skipif mysql # not compatible
query I rowsort label-4103
SELECT + ( - MAX ( DISTINCT 56 ) )
----
-56

query I rowsort
SELECT + 92 * - - 92
----
8464

query I rowsort
SELECT + CASE + 2 WHEN 96 + + NULLIF ( + + 40, 89 + + - 89 / 86 + - 53 ) THEN - 78 * 89 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4106
SELECT ALL NULLIF ( - 42, + COUNT( * ) * 78 * 78 ) * + 56 AS col1
----
-2352

skipif mysql # not compatible
query I rowsort label-4106
SELECT ALL NULLIF ( - 42, + COUNT ( * ) * 78 * 78 ) * + 56 AS col1
----
-2352

onlyif mysql # aggregate syntax: 
query I rowsort label-4107
SELECT + - MAX( DISTINCT - 91 ) + + - 51
----
40

skipif mysql # not compatible
query I rowsort label-4107
SELECT + - MAX ( DISTINCT - 91 ) + + - 51
----
40

query I rowsort
SELECT + + 1 + + ( - 93 ) AS col2
----
-92

query I rowsort
SELECT - + 96 * 24
----
-2304

onlyif mysql # aggregate syntax: 
query I rowsort label-4110
SELECT + 69 + + COUNT( * ) AS col0
----
70

skipif mysql # not compatible
query I rowsort label-4110
SELECT + 69 + + COUNT ( * ) AS col0
----
70

onlyif mysql # DIV for integer division: 
query I rowsort label-4111
SELECT - 39 DIV - - 91
----
0

skipif mysql # not compatible
query I rowsort label-4111
SELECT - 39 / - - 91
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-4112
SELECT DISTINCT 9 * + + COUNT( * ), 27 + + 1 DIV 21 AS col0, - 39 - + 13 AS col1
----
9
27
-52

skipif mysql # not compatible
query III rowsort label-4112
SELECT DISTINCT 9 * + + COUNT ( * ), 27 + + 1 / 21 AS col0, - 39 - + 13 AS col1
----
9
27
-52

onlyif mysql # aggregate syntax: 
query II rowsort label-4113
SELECT + 97 + - 97 AS col0, - 65 * COUNT( * ) + 91 AS col1
----
0
26

skipif mysql # not compatible
query II rowsort label-4113
SELECT + 97 + - 97 AS col0, - 65 * COUNT ( * ) + 91 AS col1
----
0
26

onlyif mysql # aggregate syntax: 
query I rowsort label-4114
SELECT DISTINCT - 71 * + - COUNT( * ) AS col1
----
71

skipif mysql # not compatible
query I rowsort label-4114
SELECT DISTINCT - 71 * + - COUNT ( * ) AS col1
----
71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4115
SELECT - COALESCE ( + 87, ( 88 ) * + SUM( ALL - - 37 ) - + 48 + 61 + - CAST( NULL AS SIGNED ), 59 + + NULLIF ( - + 4, + 52 ) ) + 66 AS col2, + 22 AS col0
----
-21
22

skipif mysql # not compatible
query II rowsort label-4115
SELECT - COALESCE ( + 87, ( 88 ) * + SUM ( ALL - - 37 ) - + 48 + 61 + - CAST ( NULL AS INTEGER ), 59 + + NULLIF ( - + 4, + 52 ) ) + 66 AS col2, + 22 AS col0
----
-21
22

onlyif mysql # aggregate syntax: 
query I rowsort label-4116
SELECT ALL - + 29 + MIN( ALL - 86 )
----
-115

skipif mysql # not compatible
query I rowsort label-4116
SELECT ALL - + 29 + MIN ( ALL - 86 )
----
-115

onlyif mysql # aggregate syntax: 
query I rowsort label-4117
SELECT ALL - NULLIF ( ( COUNT( * ) ), + 63 + - 76 ) * COALESCE ( - 91, - - ( - + 90 ) - + 79 )
----
91

skipif mysql # not compatible
query I rowsort label-4117
SELECT ALL - NULLIF ( ( COUNT ( * ) ), + 63 + - 76 ) * COALESCE ( - 91, - - ( - + 90 ) - + 79 )
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-4118
SELECT ALL 93 + 37 * + 51 * 84 + + - COUNT( * )
----
158600

skipif mysql # not compatible
query I rowsort label-4118
SELECT ALL 93 + 37 * + 51 * 84 + + - COUNT ( * )
----
158600

onlyif mysql # DIV for integer division: 
query I rowsort label-4119
SELECT - - 69 - - 52 - + + 32 * + 92 - - 80 + ( + 20 ) DIV 18
----
-2742

skipif mysql # not compatible
query I rowsort label-4119
SELECT - - 69 - - 52 - + + 32 * + 92 - - 80 + ( + 20 ) / 18
----
-2742

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4120
SELECT - CAST( + MIN( ALL 24 ) AS SIGNED )
----
-24

skipif mysql # not compatible
query I rowsort label-4120
SELECT - CAST ( + MIN ( ALL 24 ) AS INTEGER )
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-4121
SELECT + MAX( DISTINCT 15 ) * SUM( + 15 ) AS col2
----
225

skipif mysql # not compatible
query I rowsort label-4121
SELECT + MAX ( DISTINCT 15 ) * SUM ( + 15 ) AS col2
----
225

onlyif mysql # aggregate syntax: 
query I rowsort label-4122
SELECT - 77 + - - 27 + - COUNT( - 65 ) AS col0
----
-51

skipif mysql # not compatible
query I rowsort label-4122
SELECT - 77 + - - 27 + - COUNT ( - 65 ) AS col0
----
-51

onlyif mysql # aggregate syntax: 
query II rowsort label-4123
SELECT - COUNT( * ), ( + 43 ) AS col1
----
-1
43

skipif mysql # not compatible
query II rowsort label-4123
SELECT - COUNT ( * ), ( + 43 ) AS col1
----
-1
43

onlyif mysql # aggregate syntax: 
query I rowsort label-4124
SELECT 11 + - 25 * - - 30 + + + MAX( ALL - + ( 16 ) ) + - - 24 - 80 AS col1
----
-811

skipif mysql # not compatible
query I rowsort label-4124
SELECT 11 + - 25 * - - 30 + + + MAX ( ALL - + ( 16 ) ) + - - 24 - 80 AS col1
----
-811

query II rowsort
SELECT DISTINCT 2 AS col0, + 93
----
2
93

query I rowsort
SELECT ALL - 2 + + - 6
----
-8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4127
SELECT DISTINCT + ( + 57 ) DIV - 35 - - 45 * COUNT( * )
----
44

skipif mysql # not compatible
query I rowsort label-4127
SELECT DISTINCT + ( + 57 ) / - 35 - - 45 * COUNT ( * )
----
44

query II rowsort
SELECT ALL - 72, - 17 col1
----
-72
-17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4129
SELECT ALL + 3 + + ( 61 ) + CAST( - + 64 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-4129
SELECT ALL + 3 + + ( 61 ) + CAST ( - + 64 AS INTEGER )
----
0

query I rowsort
SELECT ALL + 30 * + 92
----
2760

onlyif mysql # aggregate syntax: 
query I rowsort label-4131
SELECT 56 + + COUNT( * ) + - 19
----
38

skipif mysql # not compatible
query I rowsort label-4131
SELECT 56 + + COUNT ( * ) + - 19
----
38

query I rowsort
SELECT DISTINCT - 58 - 82
----
-140

query I rowsort
SELECT ALL - CASE + 28 WHEN 10 + 90 - - + 51 THEN 22 END
----
NULL

query I rowsort
SELECT 16 + + CASE 53 WHEN 18 - - - 0 THEN + AVG ( 71 ) END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4135
SELECT DISTINCT - + NULLIF ( - 65, + COUNT( * ) ) AS col1
----
65

skipif mysql # not compatible
query I rowsort label-4135
SELECT DISTINCT - + NULLIF ( - 65, + COUNT ( * ) ) AS col1
----
65

query II rowsort
SELECT + 6, + 76 col0
----
6
76

query I rowsort
SELECT ALL - + 48 col0
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-4138
SELECT + ( 47 ) * + - MAX( DISTINCT + 1 ) * 32 + 45 + + 44 AS col0
----
-1415

skipif mysql # not compatible
query I rowsort label-4138
SELECT + ( 47 ) * + - MAX ( DISTINCT + 1 ) * 32 + 45 + + 44 AS col0
----
-1415

query I rowsort
SELECT 85 + + 15
----
100

query I rowsort
SELECT ALL 71 * + 91
----
6461

onlyif mysql # DIV for integer division: 
query I rowsort label-4141
SELECT DISTINCT - COALESCE ( 21, + - AVG ( ALL NULLIF ( + 47, - 88 ) ) DIV + + 84 * - 78, - + 8 ) AS col2
----
-21

skipif mysql # not compatible
query I rowsort label-4141
SELECT DISTINCT - COALESCE ( 21, + - AVG ( ALL NULLIF ( + 47, - 88 ) ) / + + 84 * - 78, - + 8 ) AS col2
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-4142
SELECT ALL 98 + - 83 * - COUNT( * ) * 61 + - 77 AS col2
----
5084

skipif mysql # not compatible
query I rowsort label-4142
SELECT ALL 98 + - 83 * - COUNT ( * ) * 61 + - 77 AS col2
----
5084

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4143
SELECT 65 * - CAST( NULL AS SIGNED ) + + + 62
----
NULL

skipif mysql # not compatible
query I rowsort label-4143
SELECT 65 * - CAST ( NULL AS INTEGER ) + + + 62
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4144
SELECT ALL + 34 * + - ( COUNT( * ) ) col0, 68
----
-34
68

skipif mysql # not compatible
query II rowsort label-4144
SELECT ALL + 34 * + - ( COUNT ( * ) ) col0, 68
----
-34
68

query I rowsort
SELECT DISTINCT ( 94 ) * - 59 * - + 70 AS col2
----
388220

onlyif mysql # aggregate syntax: 
query I rowsort label-4146
SELECT SUM( + + 13 )
----
13

skipif mysql # not compatible
query I rowsort label-4146
SELECT SUM ( + + 13 )
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-4147
SELECT ALL + COUNT( * ) + - 72 AS col1
----
-71

skipif mysql # not compatible
query I rowsort label-4147
SELECT ALL + COUNT ( * ) + - 72 AS col1
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-4148
SELECT DISTINCT ( + 23 ) + COUNT( * ) * + - 34 AS col2
----
-11

skipif mysql # not compatible
query I rowsort label-4148
SELECT DISTINCT ( + 23 ) + COUNT ( * ) * + - 34 AS col2
----
-11

query II rowsort
SELECT DISTINCT 34 AS col2, + 4 AS col1
----
34
4

query I rowsort
SELECT 41 * - 37 AS col2
----
-1517

query II rowsort
SELECT 6, + 37 AS col2
----
6
37

onlyif mysql # aggregate syntax: 
query I rowsort label-4152
SELECT ALL SUM( ALL - 26 ) * + 14 col0
----
-364

skipif mysql # not compatible
query I rowsort label-4152
SELECT ALL SUM ( ALL - 26 ) * + 14 col0
----
-364

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4153
SELECT ALL CAST( NULL AS SIGNED ) + 2 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4153
SELECT ALL CAST ( NULL AS INTEGER ) + 2 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4154
SELECT CAST( NULL AS SIGNED ) / 23 * + + 95
----
NULL

skipif mysql # not compatible
query I rowsort label-4154
SELECT CAST ( NULL AS INTEGER ) / 23 * + + 95
----
NULL

query I rowsort
SELECT ALL NULLIF ( 78, + 12 + - + 26 ) + + 35
----
113

query II rowsort
SELECT DISTINCT 99 AS col0, 51 AS col0
----
99
51

query I rowsort
SELECT DISTINCT 34 - - ( - 15 ) AS col2
----
19

query I rowsort
SELECT ALL - 71 - + 5
----
-76

query I rowsort
SELECT ( + ( - 11 ) ) * - + 31
----
341

onlyif mysql # aggregate syntax: 
query II rowsort label-4160
SELECT 81 * - 98 * - 92 * + - ( MAX( - ( + + 72 ) ) ) AS col0, - 89 AS col0
----
52581312
-89

skipif mysql # not compatible
query II rowsort label-4160
SELECT 81 * - 98 * - 92 * + - ( MAX ( - ( + + 72 ) ) ) AS col0, - 89 AS col0
----
52581312
-89

onlyif mysql # DIV for integer division: 
query I rowsort label-4161
SELECT ALL + 99 DIV - - 90 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4161
SELECT ALL + 99 / - - 90 AS col2
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-4162
SELECT DISTINCT - 88 AS col0, + COUNT( * )
----
-88
1

skipif mysql # not compatible
query II rowsort label-4162
SELECT DISTINCT - 88 AS col0, + COUNT ( * )
----
-88
1

query II rowsort
SELECT ALL - 91, - ( + - 24 ) - + 95 AS col0
----
-91
-71

onlyif mysql # aggregate syntax: 
query II rowsort label-4164
SELECT DISTINCT - COUNT( + + 4 ), 78 AS col1
----
-1
78

skipif mysql # not compatible
query II rowsort label-4164
SELECT DISTINCT - COUNT ( + + 4 ), 78 AS col1
----
-1
78

query I rowsort
SELECT ALL + 72 * - - 95
----
6840

onlyif mysql # DIV for integer division: 
query I rowsort label-4166
SELECT ALL + 99 DIV - 59 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4166
SELECT ALL + 99 / - 59 AS col0
----
-1

query I rowsort
SELECT 80 + - + 9 col1
----
71

query II rowsort
SELECT + - 23 AS col2, - 70 AS col2
----
-23
-70

query I rowsort
SELECT 10 * 43 col1
----
430

query I rowsort
SELECT 54 * - - 3
----
162

onlyif mysql # aggregate syntax: 
query I rowsort label-4171
SELECT ( - 38 ) - COUNT( DISTINCT + + 20 ) + 25 + 21 - 77
----
-70

skipif mysql # not compatible
query I rowsort label-4171
SELECT ( - 38 ) - COUNT ( DISTINCT + + 20 ) + 25 + 21 - 77
----
-70

onlyif mysql # aggregate syntax: 
query II rowsort label-4172
SELECT + COUNT( * ) AS col0, 31 col0
----
1
31

skipif mysql # not compatible
query II rowsort label-4172
SELECT + COUNT ( * ) AS col0, 31 col0
----
1
31

query II rowsort
SELECT + 36, + 29 col0
----
36
29

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4174
SELECT - 12 DIV + NULLIF ( - - 16, + COUNT( * ) ) * 10 * 73 * COUNT( DISTINCT - - 68 ) col2
----
0

skipif mysql # not compatible
query I rowsort label-4174
SELECT - 12 / + NULLIF ( - - 16, + COUNT ( * ) ) * 10 * 73 * COUNT ( DISTINCT - - 68 ) col2
----
0

query I rowsort
SELECT ALL - + ( + 33 ) + 71
----
38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4176
SELECT COALESCE ( 18, + + CAST( + 8 AS SIGNED ) ) * ( + - 51 ) AS col1
----
-918

skipif mysql # not compatible
query I rowsort label-4176
SELECT COALESCE ( 18, + + CAST ( + 8 AS INTEGER ) ) * ( + - 51 ) AS col1
----
-918

query I rowsort
SELECT ALL - + 34 + + + 50 AS col0
----
16

query I rowsort
SELECT ALL - 82 + + 5 + 68
----
-9

onlyif mysql # aggregate syntax: 
query II rowsort label-4179
SELECT DISTINCT - - COUNT( * ) AS col1, - CASE 43 WHEN + 52 THEN + 34 / - ( - - 74 ) WHEN 87 THEN - - NULLIF ( - COUNT( * ), - - 51 ) * + 29 * - 41 + 26 WHEN + 35 THEN + - 79 * - + 6 END
----
1
NULL

skipif mysql # not compatible
query II rowsort label-4179
SELECT DISTINCT - - COUNT ( * ) AS col1, - CASE 43 WHEN + 52 THEN + 34 / - ( - - 74 ) WHEN 87 THEN - - NULLIF ( - COUNT ( * ), - - 51 ) * + 29 * - 41 + 26 WHEN + 35 THEN + - 79 * - + 6 END
----
1
NULL

query I rowsort
SELECT ALL - + 58 + - 0 col0
----
-58

query I rowsort
SELECT ALL 31 + + + 63 AS col1
----
94

query I rowsort
SELECT 2 * + 54 * - 26 AS col1
----
-2808

query I rowsort
SELECT ALL + - 46 + + 66 + + 70
----
90

query II rowsort
SELECT - - 49, + 26 AS col2
----
49
26

query II rowsort
SELECT - + 36 AS col2, 72
----
-36
72

query II rowsort
SELECT 19, + 86 col1
----
19
86

onlyif mysql # aggregate syntax: 
query II rowsort label-4187
SELECT COUNT( * ) AS col2, - 77 AS col1
----
1
-77

skipif mysql # not compatible
query II rowsort label-4187
SELECT COUNT ( * ) AS col2, - 77 AS col1
----
1
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-4188
SELECT + SUM( DISTINCT 8 ) * 66
----
528

skipif mysql # not compatible
query I rowsort label-4188
SELECT + SUM ( DISTINCT 8 ) * 66
----
528

query II rowsort
SELECT - 42 + - ( 46 ), - 54 AS col0
----
-88
-54

query I rowsort
SELECT ALL 29 - + 80
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-4191
SELECT + COUNT( * ) * - + 58 col0
----
-58

skipif mysql # not compatible
query I rowsort label-4191
SELECT + COUNT ( * ) * - + 58 col0
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-4192
SELECT - 99 * - - COUNT( ALL + 48 ) AS col1
----
-99

skipif mysql # not compatible
query I rowsort label-4192
SELECT - 99 * - - COUNT ( ALL + 48 ) AS col1
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-4193
SELECT - MAX( ALL - 21 ) AS col0
----
21

skipif mysql # not compatible
query I rowsort label-4193
SELECT - MAX ( ALL - 21 ) AS col0
----
21

query II rowsort
SELECT ALL 22 * 2 AS col0, 89
----
44
89

onlyif mysql # aggregate syntax: 
query I rowsort label-4195
SELECT + COUNT( * ) + 78 * 92 + - 86
----
7091

skipif mysql # not compatible
query I rowsort label-4195
SELECT + COUNT ( * ) + 78 * 92 + - 86
----
7091

query I rowsort
SELECT DISTINCT 92 * - 95 * - 98
----
856520

onlyif mysql # aggregate syntax: 
query I rowsort label-4197
SELECT DISTINCT + 27 * - - COUNT( ALL + 47 )
----
27

skipif mysql # not compatible
query I rowsort label-4197
SELECT DISTINCT + 27 * - - COUNT ( ALL + 47 )
----
27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4198
SELECT + - AVG ( ALL - CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4198
SELECT + - AVG ( ALL - CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4199
SELECT - 32 * + 16 + - 71 + - + 74 DIV 56 + - - 73 + - 85 * + 17 * - NULLIF ( 59, + 12 ) AS col2
----
84744

skipif mysql # not compatible
query I rowsort label-4199
SELECT - 32 * + 16 + - 71 + - + 74 / 56 + - - 73 + - 85 * + 17 * - NULLIF ( 59, + 12 ) AS col2
----
84744

query I rowsort
SELECT - + ( + - 50 ) * - 25 AS col0
----
-1250

onlyif mysql # aggregate syntax: 
query I rowsort label-4201
SELECT - SUM( ( + COALESCE ( - COALESCE ( 21, 82 ), + 0 + 72 * - 67 * 18 ) ) ) AS col0
----
21

skipif mysql # not compatible
query I rowsort label-4201
SELECT - SUM ( ( + COALESCE ( - COALESCE ( 21, 82 ), + 0 + 72 * - 67 * 18 ) ) ) AS col0
----
21

query II rowsort
SELECT + - 97 + 20 AS col0, 33 + COALESCE ( ( + 35 ), + - 53 ) col2
----
-77
68

query I rowsort
SELECT DISTINCT - COALESCE ( + ( + - 88 ), + ( - + 26 ) + - - 81 * + 69 * 65 ) * 34 + - 18 + - 69 * 90 * - 50 * + 22 AS col2
----
6833974

onlyif mysql # aggregate syntax: 
query I rowsort label-4204
SELECT ALL - 69 * 39 * MIN( 26 ) + 82 * - - ( + 91 )
----
-62504

skipif mysql # not compatible
query I rowsort label-4204
SELECT ALL - 69 * 39 * MIN ( 26 ) + 82 * - - ( + 91 )
----
-62504

query I rowsort
SELECT DISTINCT - ( 72 ) * 52 * + 92 AS col2
----
-344448

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4206
SELECT DISTINCT - NULLIF ( CAST( NULL AS SIGNED ), CASE + ( - 36 ) WHEN - 18 THEN + + 23 WHEN 94 / + CAST( - 81 AS DECIMAL ) THEN - 82 ELSE NULL END ) * - 77 + - - NULLIF ( - 87, + CASE + 32 WHEN - - ( + - 94 ) THEN NULL WHEN + 58 THEN - - 96 * - 37 ELSE NULL END / 22 + - COALESCE ( - COUNT( * ) + - 43, + COUNT( * ) * - 66 + - CASE 64 WHEN 35 + - 63 THEN 16 WHEN 64 THEN NULL ELSE + 23 END * 32 ) ) * COUNT( + 27 * + 32 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4206
SELECT DISTINCT - NULLIF ( CAST ( NULL AS INTEGER ), CASE + ( - 36 ) WHEN - 18 THEN + + 23 WHEN 94 / + CAST ( - 81 AS REAL ) THEN - 82 ELSE NULL END ) * - 77 + - - NULLIF ( - 87, + CASE + 32 WHEN - - ( + - 94 ) THEN NULL WHEN + 58 THEN - - 96 * - 37 ELSE NULL END / 22 + - COALESCE ( - COUNT ( * ) + - 43, + COUNT ( * ) * - 66 + - CASE 64 WHEN 35 + - 63 THEN 16 WHEN 64 THEN NULL ELSE + 23 END * 32 ) ) * COUNT ( + 27 * + 32 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4207
SELECT DISTINCT - - 81 * SUM( 34 ) * - - COUNT( ALL - 95 ) + - + 69 AS col1
----
2685

skipif mysql # not compatible
query I rowsort label-4207
SELECT DISTINCT - - 81 * SUM ( 34 ) * - - COUNT ( ALL - 95 ) + - + 69 AS col1
----
2685

query I rowsort
SELECT + - ( + + NULLIF ( + ( + - 42 ), 27 ) )
----
42

query I rowsort
SELECT ALL + - 72 * + 64 + - 30 + - - 21 + 73 AS col1
----
-4544

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4210
SELECT - - 96 DIV 58 * - + 21 AS col0, + SUM( ALL - + 30 )
----
-21
-30

skipif mysql # not compatible
query II rowsort label-4210
SELECT - - 96 / 58 * - + 21 AS col0, + SUM ( ALL - + 30 )
----
-21
-30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4211
SELECT ALL COALESCE ( CAST( NULL AS SIGNED ), + 4, - + COUNT( 50 ), + 85 ) AS col1
----
4

skipif mysql # not compatible
query I rowsort label-4211
SELECT ALL COALESCE ( CAST ( NULL AS INTEGER ), + 4, - + COUNT ( 50 ), + 85 ) AS col1
----
4

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4212
SELECT ALL COALESCE ( CAST( NULL AS SIGNED ), - 76 ), + CASE - 86 WHEN + 33 THEN - ( - 44 ) END + 38 * - 91 AS col2
----
-76
NULL

skipif mysql # not compatible
query II rowsort label-4212
SELECT ALL COALESCE ( CAST ( NULL AS INTEGER ), - 76 ), + CASE - 86 WHEN + 33 THEN - ( - 44 ) END + 38 * - 91 AS col2
----
-76
NULL

query I rowsort
SELECT - 36 * 48 * - - 34 AS col2
----
-58752

query I rowsort
SELECT DISTINCT - CASE - 93 WHEN + 39 / + 83 - - - 72 THEN + 33 * 49 * - 6 ELSE NULL END - + 49 / 80 AS col2
----
NULL

query I rowsort
SELECT ALL ( - - 49 ) col1
----
49

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4216
SELECT - 99, COUNT( * ) + + MAX( ALL - + 36 ) + - SUM( DISTINCT 34 ) - MAX( DISTINCT ( 7 ) ) DIV 66 + + - 25 * - 81 DIV - COUNT( ALL - 20 ) AS col1
----
-99
-2094

skipif mysql # not compatible
query II rowsort label-4216
SELECT - 99, COUNT ( * ) + + MAX ( ALL - + 36 ) + - SUM ( DISTINCT 34 ) - MAX ( DISTINCT ( 7 ) ) / 66 + + - 25 * - 81 / - COUNT ( ALL - 20 ) AS col1
----
-99
-2094

query I rowsort
SELECT + 82 * - 82 AS col2
----
-6724

query I rowsort
SELECT - 52 - - 94 AS col2
----
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4219
SELECT ALL CAST( + + 61 AS SIGNED )
----
61

skipif mysql # not compatible
query I rowsort label-4219
SELECT ALL CAST ( + + 61 AS INTEGER )
----
61

query II rowsort
SELECT DISTINCT 19, 75 AS col1
----
19
75

onlyif mysql # aggregate syntax: 
query I rowsort label-4221
SELECT DISTINCT COUNT( * ) + - - 82 * + - 84 AS col0
----
-6887

skipif mysql # not compatible
query I rowsort label-4221
SELECT DISTINCT COUNT ( * ) + - - 82 * + - 84 AS col0
----
-6887

query I rowsort
SELECT DISTINCT 39 + - 57
----
-18

query I rowsort
SELECT DISTINCT + 82 + 4
----
86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4224
SELECT + - CAST( - 59 AS SIGNED )
----
59

skipif mysql # not compatible
query I rowsort label-4224
SELECT + - CAST ( - 59 AS INTEGER )
----
59

onlyif mysql # DIV for integer division: 
query I rowsort label-4225
SELECT + - 12 DIV - 78 * + + 30
----
0

skipif mysql # not compatible
query I rowsort label-4225
SELECT + - 12 / - 78 * + + 30
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4226
SELECT ALL - 44 DIV + 74 * - 20 * 6 + + 40 AS col2
----
40

skipif mysql # not compatible
query I rowsort label-4226
SELECT ALL - 44 / + 74 * - 20 * 6 + + 40 AS col2
----
40

onlyif mysql # DIV for integer division: 
query I rowsort label-4227
SELECT DISTINCT + 58 DIV - - 16 + - - 6
----
9

skipif mysql # not compatible
query I rowsort label-4227
SELECT DISTINCT + 58 / - - 16 + - - 6
----
9

query I rowsort
SELECT + + 68 + + - 36 + - 32 * - 55
----
1792

query I rowsort
SELECT ALL 64 * + - 59 AS col0
----
-3776

query II rowsort
SELECT 31 AS col2, 57 * - 18 AS col2
----
31
-1026

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4231
SELECT ALL - + COUNT( * ) DIV - 61 + - 28 AS col2
----
-28

skipif mysql # not compatible
query I rowsort label-4231
SELECT ALL - + COUNT ( * ) / - 61 + - 28 AS col2
----
-28

onlyif mysql # aggregate syntax: 
query II rowsort label-4232
SELECT 74 AS col2, + NULLIF ( + COALESCE ( + SUM( + 84 ), 6 ), - 63 ) + + + COUNT( * ) AS col0
----
74
85

skipif mysql # not compatible
query II rowsort label-4232
SELECT 74 AS col2, + NULLIF ( + COALESCE ( + SUM ( + 84 ), 6 ), - 63 ) + + + COUNT ( * ) AS col0
----
74
85

onlyif mysql # aggregate syntax: 
query II rowsort label-4233
SELECT DISTINCT - - 48 AS col1, + COUNT( * ) * 98 AS col0
----
48
98

skipif mysql # not compatible
query II rowsort label-4233
SELECT DISTINCT - - 48 AS col1, + COUNT ( * ) * 98 AS col0
----
48
98

query I rowsort
SELECT ALL - 5 - + - 51 col1
----
46

query II rowsort
SELECT 86 AS col1, 1
----
86
1

query I rowsort
SELECT ALL - + ( - 38 )
----
38

onlyif mysql # aggregate syntax: 
query II rowsort label-4237
SELECT - COALESCE ( 8, - + COUNT( * ) ) AS col2, 63 + + COALESCE ( + 3, 68 )
----
-8
66

skipif mysql # not compatible
query II rowsort label-4237
SELECT - COALESCE ( 8, - + COUNT ( * ) ) AS col2, 63 + + COALESCE ( + 3, 68 )
----
-8
66

query II rowsort
SELECT + 38 AS col2, 33 AS col0
----
38
33

query II rowsort
SELECT ALL - 68 AS col2, + 72 * + 50 + - 4 * + 54 + + + 73 col0
----
-68
3457

onlyif mysql # aggregate syntax: 
query I rowsort label-4240
SELECT DISTINCT 37 - - MAX( ALL + - 25 )
----
12

skipif mysql # not compatible
query I rowsort label-4240
SELECT DISTINCT 37 - - MAX ( ALL + - 25 )
----
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4241
SELECT 40 * - NULLIF ( - COUNT( * ), - + CASE - CASE + CAST( NULL AS SIGNED ) WHEN - 1 THEN - 92 END WHEN + 37 + - 82 THEN - 54 WHEN - + 98 * 2 THEN NULL END * - 8 + + 73 ) * 47 * 36 col1, COUNT( * ) + - 3
----
67680
-2

skipif mysql # not compatible
query II rowsort label-4241
SELECT 40 * - NULLIF ( - COUNT ( * ), - + CASE - CASE + CAST ( NULL AS INTEGER ) WHEN - 1 THEN - 92 END WHEN + 37 + - 82 THEN - 54 WHEN - + 98 * 2 THEN NULL END * - 8 + + 73 ) * 47 * 36 col1, COUNT ( * ) + - 3
----
67680
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-4242
SELECT DISTINCT COUNT( * ) * + 19 AS col2
----
19

skipif mysql # not compatible
query I rowsort label-4242
SELECT DISTINCT COUNT ( * ) * + 19 AS col2
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-4243
SELECT ALL - SUM( - 7 )
----
7

skipif mysql # not compatible
query I rowsort label-4243
SELECT ALL - SUM ( - 7 )
----
7

onlyif mysql # aggregate syntax: 
query II rowsort label-4244
SELECT - 61 * ( CASE - 40 WHEN - 61 THEN + 43 END ) + - - 46, - COUNT( * ) AS col0
----
NULL
-1

skipif mysql # not compatible
query II rowsort label-4244
SELECT - 61 * ( CASE - 40 WHEN - 61 THEN + 43 END ) + - - 46, - COUNT ( * ) AS col0
----
NULL
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4245
SELECT ALL - CASE - CAST( NULL AS SIGNED ) WHEN - AVG ( + 48 ) * - + ( - + 79 ) - - 12 + 78 * 34 * 96 THEN + 65 WHEN 80 THEN 67 ELSE NULL END * - CASE 49 WHEN - 46 THEN NULL WHEN - 32 THEN 41 END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4245
SELECT ALL - CASE - CAST ( NULL AS INTEGER ) WHEN - AVG ( + 48 ) * - + ( - + 79 ) - - 12 + 78 * 34 * 96 THEN + 65 WHEN 80 THEN 67 ELSE NULL END * - CASE 49 WHEN - 46 THEN NULL WHEN - 32 THEN 41 END col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4246
SELECT COUNT( * ) + + ( + MAX( + 31 ) ) AS col0
----
32

skipif mysql # not compatible
query I rowsort label-4246
SELECT COUNT ( * ) + + ( + MAX ( + 31 ) ) AS col0
----
32

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4247
SELECT 72 / - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-4247
SELECT 72 / - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4248
SELECT 46 + MAX( DISTINCT + - 95 ) * - 76
----
7266

skipif mysql # not compatible
query I rowsort label-4248
SELECT 46 + MAX ( DISTINCT + - 95 ) * - 76
----
7266

onlyif mysql # DIV for integer division: 
query I rowsort label-4249
SELECT ALL + 40 DIV 36 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4249
SELECT ALL + 40 / 36 AS col2
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4250
SELECT 62 DIV + 4
----
15

skipif mysql # not compatible
query I rowsort label-4250
SELECT 62 / + 4
----
15

query I rowsort
SELECT 65 + 5
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-4252
SELECT ALL + COUNT( * ) + 56 AS col2
----
57

skipif mysql # not compatible
query I rowsort label-4252
SELECT ALL + COUNT ( * ) + 56 AS col2
----
57

query I rowsort
SELECT ALL - 86 + 38 + - 67
----
-115

query I rowsort
SELECT 55 * + - 8 * + + 46 AS col1
----
-20240

query I rowsort
SELECT 90 + + 71
----
161

onlyif mysql # aggregate syntax: 
query I rowsort label-4256
SELECT DISTINCT - MAX( + 63 ) + + MIN( DISTINCT + 9 )
----
-54

skipif mysql # not compatible
query I rowsort label-4256
SELECT DISTINCT - MAX ( + 63 ) + + MIN ( DISTINCT + 9 )
----
-54

query I rowsort
SELECT 10 + + 41
----
51

onlyif mysql # aggregate syntax: 
query II rowsort label-4258
SELECT 39 * + 29 col0, 46 * - 24 * + COUNT( * ) + + COUNT( * ) * + 62 AS col1
----
1131
-1042

skipif mysql # not compatible
query II rowsort label-4258
SELECT 39 * + 29 col0, 46 * - 24 * + COUNT ( * ) + + COUNT ( * ) * + 62 AS col1
----
1131
-1042

onlyif mysql # aggregate syntax: 
query I rowsort label-4259
SELECT DISTINCT - ( ( - COUNT( - + CASE + - 81 WHEN - + 27 THEN NULL ELSE - ( 2 ) END ) ) ) + + 52
----
53

skipif mysql # not compatible
query I rowsort label-4259
SELECT DISTINCT - ( ( - COUNT ( - + CASE + - 81 WHEN - + 27 THEN NULL ELSE - ( 2 ) END ) ) ) + + 52
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-4260
SELECT ALL MIN( + ( + - 85 ) ) AS col2
----
-85

skipif mysql # not compatible
query I rowsort label-4260
SELECT ALL MIN ( + ( + - 85 ) ) AS col2
----
-85

onlyif mysql # aggregate syntax: 
query II rowsort label-4261
SELECT ALL - COUNT( * ) + - 32 AS col0, 10 col2
----
-33
10

skipif mysql # not compatible
query II rowsort label-4261
SELECT ALL - COUNT ( * ) + - 32 AS col0, 10 col2
----
-33
10

query II rowsort
SELECT ALL + 95 + + 59 AS col1, 61
----
154
61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4263
SELECT 8 + + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4263
SELECT 8 + + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT + 58 * + - 58 + + 61
----
-3303

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4265
SELECT + + ( CASE + + 90 WHEN + CAST( - COUNT( * ) AS SIGNED ) THEN + NULLIF ( - 41, 79 ) * - MAX( 75 ) * - CAST( NULL AS SIGNED ) ELSE NULL END ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4265
SELECT + + ( CASE + + 90 WHEN + CAST ( - COUNT ( * ) AS INTEGER ) THEN + NULLIF ( - 41, 79 ) * - MAX ( 75 ) * - CAST ( NULL AS INTEGER ) ELSE NULL END ) col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4266
SELECT ALL CAST( NULL AS SIGNED ) / - - 86 col1, 92 * - - 69 AS col0
----
NULL
6348

skipif mysql # not compatible
query II rowsort label-4266
SELECT ALL CAST ( NULL AS INTEGER ) / - - 86 col1, 92 * - - 69 AS col0
----
NULL
6348

onlyif mysql # CAST syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-4267
SELECT - 25 DIV + 28, + CAST( NULL AS DECIMAL ) * 50 AS col1
----
0
NULL

skipif mysql # not compatible
query II rowsort label-4267
SELECT - 25 / + 28, + CAST ( NULL AS REAL ) * 50 AS col1
----
0
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4268
SELECT ALL 78 * 79 + - 60 + - COUNT( * ) * - COUNT( * ) AS col1
----
6103

skipif mysql # not compatible
query I rowsort label-4268
SELECT ALL 78 * 79 + - 60 + - COUNT ( * ) * - COUNT ( * ) AS col1
----
6103

onlyif mysql # aggregate syntax: 
query I rowsort label-4269
SELECT COUNT( * ) * + - ( + + 74 ) * - 3 + - 77 + - + COUNT( * ) col2
----
144

skipif mysql # not compatible
query I rowsort label-4269
SELECT COUNT ( * ) * + - ( + + 74 ) * - 3 + - 77 + - + COUNT ( * ) col2
----
144

onlyif mysql # aggregate syntax: 
query I rowsort label-4270
SELECT DISTINCT COUNT( * ) - + 17 * + 57 * 7 + + 58
----
-6724

skipif mysql # not compatible
query I rowsort label-4270
SELECT DISTINCT COUNT ( * ) - + 17 * + 57 * 7 + + 58
----
-6724

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4271
SELECT COALESCE ( + 35, CAST( 61 AS SIGNED ) ) * + 63 col1
----
2205

skipif mysql # not compatible
query I rowsort label-4271
SELECT COALESCE ( + 35, CAST ( 61 AS INTEGER ) ) * + 63 col1
----
2205

query I rowsort
SELECT - + 9 * - 40 + + - 7 AS col0
----
353

query I rowsort
SELECT ALL 77 * 0 AS col0
----
0

query II rowsort
SELECT DISTINCT - 98, 96 AS col2
----
-98
96

onlyif mysql # aggregate syntax: 
query II rowsort label-4275
SELECT ALL - 1 AS col1, SUM( ALL - + 85 )
----
-1
-85

skipif mysql # not compatible
query II rowsort label-4275
SELECT ALL - 1 AS col1, SUM ( ALL - + 85 )
----
-1
-85

query II rowsort
SELECT DISTINCT - 4, 98 AS col1
----
-4
98

onlyif mysql # aggregate syntax: 
query II rowsort label-4277
SELECT COUNT( * ) * + COUNT( DISTINCT + 60 ) + 97 + - - 42 col0, + 9 AS col1
----
140
9

skipif mysql # not compatible
query II rowsort label-4277
SELECT COUNT ( * ) * + COUNT ( DISTINCT + 60 ) + 97 + - - 42 col0, + 9 AS col1
----
140
9

query II rowsort
SELECT DISTINCT - 17 AS col0, 24
----
-17
24

onlyif mysql # aggregate syntax: 
query I rowsort label-4279
SELECT ALL + MAX( ALL 29 ) * COUNT( * )
----
29

skipif mysql # not compatible
query I rowsort label-4279
SELECT ALL + MAX ( ALL 29 ) * COUNT ( * )
----
29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4280
SELECT CASE 52 WHEN + 55 THEN + COALESCE ( 71, 68 ) - + ( + - ( + + 73 ) ) ELSE NULL END * CAST( NULL AS SIGNED ) AS col2, COUNT( * ) * + 4 * 55 AS col2
----
NULL
220

skipif mysql # not compatible
query II rowsort label-4280
SELECT CASE 52 WHEN + 55 THEN + COALESCE ( 71, 68 ) - + ( + - ( + + 73 ) ) ELSE NULL END * CAST ( NULL AS INTEGER ) AS col2, COUNT ( * ) * + 4 * 55 AS col2
----
NULL
220

query I rowsort
SELECT DISTINCT + 27 * 23
----
621

query I rowsort
SELECT ALL 63 + + 96 * + 33 * 88 col2
----
278847

query I rowsort
SELECT 91 * + - 93 AS col1
----
-8463

query I rowsort
SELECT ALL - 82 + + + 29 AS col0
----
-53

onlyif mysql # DIV for integer division: 
query I rowsort label-4285
SELECT 10 DIV 1 * 82
----
820

skipif mysql # not compatible
query I rowsort label-4285
SELECT 10 / 1 * 82
----
820

query I rowsort
SELECT 16 * 85
----
1360

onlyif mysql # aggregate syntax: 
query I rowsort label-4287
SELECT ALL MIN( ALL - + 40 )
----
-40

skipif mysql # not compatible
query I rowsort label-4287
SELECT ALL MIN ( ALL - + 40 )
----
-40

query I rowsort
SELECT DISTINCT 62 + 12
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-4289
SELECT ALL - COUNT( * ) + + 59 AS col0
----
58

skipif mysql # not compatible
query I rowsort label-4289
SELECT ALL - COUNT ( * ) + + 59 AS col0
----
58

query II rowsort
SELECT - 43 AS col2, - 66
----
-43
-66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4291
SELECT - COUNT( * ) DIV - COUNT( * ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4291
SELECT - COUNT ( * ) / - COUNT ( * ) AS col2
----
1

query I rowsort
SELECT ALL + 46 + + 66 AS col2
----
112

query I rowsort
SELECT ALL - 66 - + - 76
----
10

query II rowsort
SELECT - - 33 AS col1, 77 AS col1
----
33
77

onlyif mysql # aggregate syntax: 
query I rowsort label-4295
SELECT - + MAX( + 10 ) - 44
----
-54

skipif mysql # not compatible
query I rowsort label-4295
SELECT - + MAX ( + 10 ) - 44
----
-54

query I rowsort
SELECT - 52 + + 11 AS col1
----
-41

query I rowsort
SELECT ALL + + 37 - + + 72 * + 1 * - 7
----
541

onlyif mysql # aggregate syntax: 
query I rowsort label-4298
SELECT - 96 * 51 * + COUNT( * ) AS col1
----
-4896

skipif mysql # not compatible
query I rowsort label-4298
SELECT - 96 * 51 * + COUNT ( * ) AS col1
----
-4896

query I rowsort
SELECT - 23 + 26 + 69 AS col2
----
72

query I rowsort
SELECT - - 34 * + 99
----
3366

onlyif mysql # aggregate syntax: 
query I rowsort label-4301
SELECT + + ( - - COUNT( * ) ) + + 69 AS col0
----
70

skipif mysql # not compatible
query I rowsort label-4301
SELECT + + ( - - COUNT ( * ) ) + + 69 AS col0
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-4302
SELECT NULLIF ( - 1, + + 22 * + COUNT( * ) * + - ( + 73 ) - + + 95 - - 65 + ( SUM( + - 99 ) ) * - + 23 / + 99 )
----
-1

skipif mysql # not compatible
query I rowsort label-4302
SELECT NULLIF ( - 1, + + 22 * + COUNT ( * ) * + - ( + 73 ) - + + 95 - - 65 + ( SUM ( + - 99 ) ) * - + 23 / + 99 )
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-4303
SELECT ALL + COUNT( * ) AS col2, 17 - + - 80 AS col0
----
1
97

skipif mysql # not compatible
query II rowsort label-4303
SELECT ALL + COUNT ( * ) AS col2, 17 - + - 80 AS col0
----
1
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4304
SELECT - 77 - - NULLIF ( - - COUNT( + CAST( NULL AS SIGNED ) ), + - COUNT( * ) ) * 19 AS col2
----
-77

skipif mysql # not compatible
query I rowsort label-4304
SELECT - 77 - - NULLIF ( - - COUNT ( + CAST ( NULL AS INTEGER ) ), + - COUNT ( * ) ) * 19 AS col2
----
-77

query I rowsort
SELECT + ( - - 81 ) * 60
----
4860

query I rowsort
SELECT DISTINCT 65 * - 89 AS col1
----
-5785

onlyif mysql # DIV for integer division: 
query I rowsort label-4307
SELECT + ( + - 83 ) DIV 66
----
-1

skipif mysql # not compatible
query I rowsort label-4307
SELECT + ( + - 83 ) / 66
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4308
SELECT ALL 2 * - - 19 * - + MIN( - ( + 20 ) ) + + 19 * - + COUNT( * ) * - 18 * - + 35 * + - 77
----
922450

skipif mysql # not compatible
query I rowsort label-4308
SELECT ALL 2 * - - 19 * - + MIN ( - ( + 20 ) ) + + 19 * - + COUNT ( * ) * - 18 * - + 35 * + - 77
----
922450

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4309
SELECT + SUM( - CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4309
SELECT + SUM ( - CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4310
SELECT DISTINCT - 40 * COUNT( * )
----
-40

skipif mysql # not compatible
query I rowsort label-4310
SELECT DISTINCT - 40 * COUNT ( * )
----
-40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4311
SELECT ALL CAST( CAST( NULL AS SIGNED ) AS SIGNED ) * - 72 - + 7 * MAX( ALL 2 ) + - MAX( - 99 ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4311
SELECT ALL CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) * - 72 - + 7 * MAX ( ALL 2 ) + - MAX ( - 99 ) col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4312
SELECT + CASE - 87 WHEN ( - + COALESCE ( - COUNT( * ), - 80 / 30 + - - COUNT( * ) * 0 + 88 ) ) THEN + 74 / 71 WHEN 10 / - 7 + + 86 * - CAST( COUNT( * ) AS SIGNED ) * - ( 71 ) + - CASE - 56 WHEN CAST( + 78 AS SIGNED ) + + 22 THEN 79 WHEN + + 77 THEN - 44 + ( COUNT( * ) ) END + - COUNT( 31 - 79 ) THEN NULL END - 73
----
NULL

skipif mysql # not compatible
query I rowsort label-4312
SELECT + CASE - 87 WHEN ( - + COALESCE ( - COUNT ( * ), - 80 / 30 + - - COUNT ( * ) * 0 + 88 ) ) THEN + 74 / 71 WHEN 10 / - 7 + + 86 * - CAST ( COUNT ( * ) AS INTEGER ) * - ( 71 ) + - CASE - 56 WHEN CAST ( + 78 AS INTEGER ) + + 22 THEN 79 WHEN + + 77 THEN - 44 + ( COUNT ( * ) ) END + - COUNT ( 31 - 79 ) THEN NULL END - 73
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4313
SELECT + COALESCE ( - - 48, + COUNT( * ) * - NULLIF ( + 57, MAX( ALL 23 ) ) )
----
48

skipif mysql # not compatible
query I rowsort label-4313
SELECT + COALESCE ( - - 48, + COUNT ( * ) * - NULLIF ( + 57, MAX ( ALL 23 ) ) )
----
48

query II rowsort
SELECT ALL + 20 AS col2, + 90 * 10
----
20
900

onlyif mysql # aggregate syntax: 
query I rowsort label-4315
SELECT ALL 81 + - COUNT( * )
----
80

skipif mysql # not compatible
query I rowsort label-4315
SELECT ALL 81 + - COUNT ( * )
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-4316
SELECT + COUNT( * ) + + 67 AS col0
----
68

skipif mysql # not compatible
query I rowsort label-4316
SELECT + COUNT ( * ) + + 67 AS col0
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-4317
SELECT + 51 * - - COUNT( * ) AS col2
----
51

skipif mysql # not compatible
query I rowsort label-4317
SELECT + 51 * - - COUNT ( * ) AS col2
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-4318
SELECT ALL 57 + + SUM( ALL + - 48 ) AS col1
----
9

skipif mysql # not compatible
query I rowsort label-4318
SELECT ALL 57 + + SUM ( ALL + - 48 ) AS col1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4319
SELECT SUM( DISTINCT + 22 )
----
22

skipif mysql # not compatible
query I rowsort label-4319
SELECT SUM ( DISTINCT + 22 )
----
22

query I rowsort
SELECT + 39 + - 21
----
18

query II rowsort
SELECT ALL 73 AS col1, 46 + 22 AS col0
----
73
68

onlyif mysql # aggregate syntax: 
query I rowsort label-4322
SELECT + 92 + 60 + + 75 - - + 50 * - + COUNT( * )
----
177

skipif mysql # not compatible
query I rowsort label-4322
SELECT + 92 + 60 + + 75 - - + 50 * - + COUNT ( * )
----
177

query I rowsort
SELECT ALL - 70 - 15 * + - 84 * + 94 + 8 AS col1
----
118378

query II rowsort
SELECT ALL 60, 71 - - 73 AS col1
----
60
144

onlyif mysql # DIV for integer division: 
query I rowsort label-4325
SELECT ALL + 0 DIV - + 94 * - 8
----
0

skipif mysql # not compatible
query I rowsort label-4325
SELECT ALL + 0 / - + 94 * - 8
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4326
SELECT + 13 + 21 DIV 68 AS col1
----
13

skipif mysql # not compatible
query I rowsort label-4326
SELECT + 13 + 21 / 68 AS col1
----
13

onlyif mysql # aggregate syntax: 
query II rowsort label-4327
SELECT - - COUNT( * ) AS col2, - 25 AS col0
----
1
-25

skipif mysql # not compatible
query II rowsort label-4327
SELECT - - COUNT ( * ) AS col2, - 25 AS col0
----
1
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-4328
SELECT - 40 + - + MIN( DISTINCT + 7 ) + 15 * - 93 AS col1
----
-1442

skipif mysql # not compatible
query I rowsort label-4328
SELECT - 40 + - + MIN ( DISTINCT + 7 ) + 15 * - 93 AS col1
----
-1442

onlyif mysql # aggregate syntax: 
query II rowsort label-4329
SELECT ALL 10 - - CASE - - 65 WHEN - 70 * + 65 THEN NULL WHEN + + 76 * - 27 THEN COUNT( * ) ELSE + 84 END * - - 36 + - + 65 * 60 AS col0, 73 * - COUNT( * )
----
-866
-73

skipif mysql # not compatible
query II rowsort label-4329
SELECT ALL 10 - - CASE - - 65 WHEN - 70 * + 65 THEN NULL WHEN + + 76 * - 27 THEN COUNT ( * ) ELSE + 84 END * - - 36 + - + 65 * 60 AS col0, 73 * - COUNT ( * )
----
-866
-73

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4330
SELECT + - CAST( NULL AS DECIMAL ) * + 40 + + MIN( 10 ) * 43 * 3 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4330
SELECT + - CAST ( NULL AS REAL ) * + 40 + + MIN ( 10 ) * 43 * 3 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4331
SELECT ALL CAST( NULL AS SIGNED ) AS col2, - 99 + + 17 + + COALESCE ( - COUNT( * ), 26 + + 74, - 16 DIV - 53 DIV + NULLIF ( + - CAST( NULL AS SIGNED ), - + 81 ) ) col0
----
NULL
-83

skipif mysql # not compatible
query II rowsort label-4331
SELECT ALL CAST ( NULL AS INTEGER ) AS col2, - 99 + + 17 + + COALESCE ( - COUNT ( * ), 26 + + 74, - 16 / - 53 / + NULLIF ( + - CAST ( NULL AS INTEGER ), - + 81 ) ) col0
----
NULL
-83

query I rowsort
SELECT - 16 * + - ( - + 90 ) + + 84 + 71
----
-1285

onlyif mysql # aggregate syntax: 
query II rowsort label-4333
SELECT + 96 * COUNT( * ), + 99 AS col0
----
96
99

skipif mysql # not compatible
query II rowsort label-4333
SELECT + 96 * COUNT ( * ), + 99 AS col0
----
96
99

query I rowsort
SELECT - - ( + - 40 ) * ( - + 19 )
----
760

onlyif mysql # aggregate syntax: 
query I rowsort label-4335
SELECT + MAX( ALL 74 ) AS col2
----
74

skipif mysql # not compatible
query I rowsort label-4335
SELECT + MAX ( ALL 74 ) AS col2
----
74

onlyif mysql # DIV for integer division: 
query I rowsort label-4336
SELECT ALL 80 DIV 81 + + 83
----
83

skipif mysql # not compatible
query I rowsort label-4336
SELECT ALL 80 / 81 + + 83
----
83

onlyif mysql # DIV for integer division: 
query I rowsort label-4337
SELECT DISTINCT + 25 DIV + 84 + + 57 * 49 AS col1
----
2793

skipif mysql # not compatible
query I rowsort label-4337
SELECT DISTINCT + 25 / + 84 + + 57 * 49 AS col1
----
2793

onlyif mysql # aggregate syntax: 
query I rowsort label-4338
SELECT ALL 86 / - CASE + 31 WHEN + + 18 THEN + - 46 WHEN + 72 + MIN( ALL + - NULLIF ( 52, - 44 * + 97 * + 63 + + - 66 ) ) * 35 THEN + - NULLIF ( + 99, MAX( - 42 ) * + - 59 + - COUNT( * ) * 57 ) * 31 - NULLIF ( 38, - 79 ) * - + 33 + - ( 54 ) ELSE NULL END + 86
----
NULL

skipif mysql # not compatible
query I rowsort label-4338
SELECT ALL 86 / - CASE + 31 WHEN + + 18 THEN + - 46 WHEN + 72 + MIN ( ALL + - NULLIF ( 52, - 44 * + 97 * + 63 + + - 66 ) ) * 35 THEN + - NULLIF ( + 99, MAX ( - 42 ) * + - 59 + - COUNT ( * ) * 57 ) * 31 - NULLIF ( 38, - 79 ) * - + 33 + - ( 54 ) ELSE NULL END + 86
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4339
SELECT ALL - 75 / - 58 + + CASE - 74 WHEN - - 61 THEN + COUNT( * ) + - 24 END, + 25 * + 59 * - + ( + 93 ) * - 21 AS col1
----
NULL
2880675

skipif mysql # not compatible
query II rowsort label-4339
SELECT ALL - 75 / - 58 + + CASE - 74 WHEN - - 61 THEN + COUNT ( * ) + - 24 END, + 25 * + 59 * - + ( + 93 ) * - 21 AS col1
----
NULL
2880675

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4340
SELECT DISTINCT 23 / + + 68 * + SUM( DISTINCT + CAST( NULL AS SIGNED ) ) + + 76 col1, 19 AS col2
----
NULL
19

skipif mysql # not compatible
query II rowsort label-4340
SELECT DISTINCT 23 / + + 68 * + SUM ( DISTINCT + CAST ( NULL AS INTEGER ) ) + + 76 col1, 19 AS col2
----
NULL
19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4341
SELECT ALL 29 * ( + - NULLIF ( + - ( 9 ), - + 24 * - 41 ) ) + + 10 / CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4341
SELECT ALL 29 * ( + - NULLIF ( + - ( 9 ), - + 24 * - 41 ) ) + + 10 / CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT ALL COALESCE ( - 18, 76 ) * 0 + - 34 + - 51 + - 73 AS col0
----
-158

onlyif mysql # aggregate syntax: 
query II rowsort label-4343
SELECT ( 48 ) AS col2, COALESCE ( - ( - + NULLIF ( + 56, - - 23 / + 35 ) ), 15 ) * - ( + MIN( DISTINCT + 72 ) ) AS col1
----
48
-4032

skipif mysql # not compatible
query II rowsort label-4343
SELECT ( 48 ) AS col2, COALESCE ( - ( - + NULLIF ( + 56, - - 23 / + 35 ) ), 15 ) * - ( + MIN ( DISTINCT + 72 ) ) AS col1
----
48
-4032

query I rowsort
SELECT - 63 * + 89 AS col2
----
-5607

query II rowsort
SELECT + 69 * 44 AS col1, 71
----
3036
71

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4346
SELECT DISTINCT - COUNT( * ) DIV 24
----
0

skipif mysql # not compatible
query I rowsort label-4346
SELECT DISTINCT - COUNT ( * ) / 24
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4347
SELECT + COUNT( - 35 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4347
SELECT + COUNT ( - 35 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4348
SELECT ALL + NULLIF ( - 53, - COUNT( * ) * - 4 )
----
-53

skipif mysql # not compatible
query I rowsort label-4348
SELECT ALL + NULLIF ( - 53, - COUNT ( * ) * - 4 )
----
-53

onlyif mysql # aggregate syntax: 
query II rowsort label-4349
SELECT ALL 27 * - 31, + 82 * + + COUNT( * ) AS col2
----
-837
82

skipif mysql # not compatible
query II rowsort label-4349
SELECT ALL 27 * - 31, + 82 * + + COUNT ( * ) AS col2
----
-837
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4350
SELECT - 33 * - CASE CAST( COUNT( * ) AS SIGNED ) WHEN 29 * 42 THEN - - 68 WHEN + 22 * + 19 + - 33 THEN + COALESCE ( - - 43, - 31 ) / - - 1 * 79 END * - + 50
----
NULL

skipif mysql # not compatible
query I rowsort label-4350
SELECT - 33 * - CASE CAST ( COUNT ( * ) AS INTEGER ) WHEN 29 * 42 THEN - - 68 WHEN + 22 * + 19 + - 33 THEN + COALESCE ( - - 43, - 31 ) / - - 1 * 79 END * - + 50
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-4351
SELECT DISTINCT - 10 DIV 66 col2, 88
----
0
88

skipif mysql # not compatible
query II rowsort label-4351
SELECT DISTINCT - 10 / 66 col2, 88
----
0
88

onlyif mysql # aggregate syntax: 
query I rowsort label-4352
SELECT ALL - MAX( 73 ) * COUNT( * )
----
-73

skipif mysql # not compatible
query I rowsort label-4352
SELECT ALL - MAX ( 73 ) * COUNT ( * )
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-4353
SELECT DISTINCT 90 * - + 50 - - NULLIF ( - COUNT( * ), 15 ) + 81 * + + 12 * - + 7 * + 92
----
-630469

skipif mysql # not compatible
query I rowsort label-4353
SELECT DISTINCT 90 * - + 50 - - NULLIF ( - COUNT ( * ), 15 ) + 81 * + + 12 * - + 7 * + 92
----
-630469

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4354
SELECT CASE - + 86 WHEN + 35 THEN NULL WHEN CASE - COUNT( * ) WHEN - 25 + - 66 * + + CAST( - COUNT( * ) AS SIGNED ) / 49 THEN NULL ELSE 64 * - - COUNT( * ) END * + 9 THEN NULL WHEN + + CAST( + + 33 AS SIGNED ) / - - 46 THEN 60 ELSE - + COUNT( * ) END * 45 AS col0
----
-45

skipif mysql # not compatible
query I rowsort label-4354
SELECT CASE - + 86 WHEN + 35 THEN NULL WHEN CASE - COUNT ( * ) WHEN - 25 + - 66 * + + CAST ( - COUNT ( * ) AS INTEGER ) / 49 THEN NULL ELSE 64 * - - COUNT ( * ) END * + 9 THEN NULL WHEN + + CAST ( + + 33 AS INTEGER ) / - - 46 THEN 60 ELSE - + COUNT ( * ) END * 45 AS col0
----
-45

onlyif mysql # aggregate syntax: 
query II rowsort label-4355
SELECT + COUNT( - 37 ) AS col1, - 13 AS col2
----
1
-13

skipif mysql # not compatible
query II rowsort label-4355
SELECT + COUNT ( - 37 ) AS col1, - 13 AS col2
----
1
-13

query I rowsort
SELECT ALL - ( 32 ) - - - 34
----
-66

query I rowsort
SELECT + 51 * - ( ( 27 ) )
----
-1377

onlyif mysql # aggregate syntax: 
query I rowsort label-4358
SELECT MIN( ALL + 93 )
----
93

skipif mysql # not compatible
query I rowsort label-4358
SELECT MIN ( ALL + 93 )
----
93

onlyif mysql # aggregate syntax: 
query II rowsort label-4359
SELECT - - ( - 82 ), - 75 * - + MIN( - 5 ) / + 39 + CASE + 66 WHEN COUNT( * ) * + - COUNT( * ) + 94 THEN NULL WHEN - - 37 * 4 THEN 78 - - + CASE - 50 WHEN - 4 THEN - - 5 * - 23 END / - + 23 WHEN - + 75 THEN + + NULLIF ( 87, COALESCE ( - 90, - + ( - COUNT( * ) ) ) ) / - 83 ELSE NULL END AS col1
----
-82
NULL

skipif mysql # not compatible
query II rowsort label-4359
SELECT - - ( - 82 ), - 75 * - + MIN ( - 5 ) / + 39 + CASE + 66 WHEN COUNT ( * ) * + - COUNT ( * ) + 94 THEN NULL WHEN - - 37 * 4 THEN 78 - - + CASE - 50 WHEN - 4 THEN - - 5 * - 23 END / - + 23 WHEN - + 75 THEN + + NULLIF ( 87, COALESCE ( - 90, - + ( - COUNT ( * ) ) ) ) / - 83 ELSE NULL END AS col1
----
-82
NULL

query I rowsort
SELECT ALL + 78 * - - 46
----
3588

onlyif mysql # aggregate syntax: 
query I rowsort label-4361
SELECT 40 * + ( + 53 ) * + - CASE - - 53 WHEN + COUNT( * ) + - 86 + 34 * + - COUNT( * ) * - MIN( DISTINCT + + 85 ) THEN NULL ELSE - + ( + + 82 ) * 61 * + 28 END AS col1
----
296918720

skipif mysql # not compatible
query I rowsort label-4361
SELECT 40 * + ( + 53 ) * + - CASE - - 53 WHEN + COUNT ( * ) + - 86 + 34 * + - COUNT ( * ) * - MIN ( DISTINCT + + 85 ) THEN NULL ELSE - + ( + + 82 ) * 61 * + 28 END AS col1
----
296918720

query I rowsort
SELECT DISTINCT + NULLIF ( - + 87, - 18 )
----
-87

query I rowsort
SELECT - 58 + + 92 * 8 AS col2
----
678

query I rowsort
SELECT ( + - 34 ) AS col1
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-4365
SELECT COUNT( * ) + 78
----
79

skipif mysql # not compatible
query I rowsort label-4365
SELECT COUNT ( * ) + 78
----
79

query I rowsort
SELECT ALL + 62 * - 42 * + + 20
----
-52080

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4367
SELECT ( - 98 ) DIV + CAST( + - 66 AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-4367
SELECT ( - 98 ) / + CAST ( + - 66 AS INTEGER )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4368
SELECT ALL 33 + - 7 * ( COUNT( * ) ) - - 22
----
48

skipif mysql # not compatible
query I rowsort label-4368
SELECT ALL 33 + - 7 * ( COUNT ( * ) ) - - 22
----
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4369
SELECT - 94 / + 77 * - MAX( ALL + CAST( NULL AS SIGNED ) ) + - 2 * + AVG ( - 99 ) AS col0, - 92 AS col1
----
NULL
-92

skipif mysql # not compatible
query II rowsort label-4369
SELECT - 94 / + 77 * - MAX ( ALL + CAST ( NULL AS INTEGER ) ) + - 2 * + AVG ( - 99 ) AS col0, - 92 AS col1
----
NULL
-92

query I rowsort
SELECT ALL CASE + 69 WHEN - 0 THEN 84 ELSE + - 8 END * 24 AS col2
----
-192

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4371
SELECT 56 DIV ( + COUNT( * ) ) AS col1
----
56

skipif mysql # not compatible
query I rowsort label-4371
SELECT 56 / ( + COUNT ( * ) ) AS col1
----
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4372
SELECT CAST( 52 AS SIGNED ) + 89
----
141

skipif mysql # not compatible
query I rowsort label-4372
SELECT CAST ( 52 AS INTEGER ) + 89
----
141

query I rowsort
SELECT ALL - NULLIF ( 1, + NULLIF ( + + 41, + 31 ) ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4374
SELECT ALL 12 + - 50 * - COUNT( * ) AS col0
----
62

skipif mysql # not compatible
query I rowsort label-4374
SELECT ALL 12 + - 50 * - COUNT ( * ) AS col0
----
62

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4375
SELECT ALL - MAX( - 38 ) DIV + + ( COUNT( 57 ) ) col1
----
38

skipif mysql # not compatible
query I rowsort label-4375
SELECT ALL - MAX ( - 38 ) / + + ( COUNT ( 57 ) ) col1
----
38

query II rowsort
SELECT 4, + 57 AS col0
----
4
57

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4377
SELECT DISTINCT 47 + + CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4377
SELECT DISTINCT 47 + + CAST ( NULL AS REAL ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4378
SELECT DISTINCT 5 DIV COUNT( DISTINCT 78 ) AS col2, ( + + 92 ) AS col1
----
5
92

skipif mysql # not compatible
query II rowsort label-4378
SELECT DISTINCT 5 / COUNT ( DISTINCT 78 ) AS col2, ( + + 92 ) AS col1
----
5
92

onlyif mysql # aggregate syntax: 
query II rowsort label-4379
SELECT 82 AS col0, 46 + COUNT( * )
----
82
47

skipif mysql # not compatible
query II rowsort label-4379
SELECT 82 AS col0, 46 + COUNT ( * )
----
82
47

query I rowsort
SELECT ALL + 50 + + 28
----
78

query II rowsort
SELECT + 4 AS col2, - 11 AS col1
----
4
-11

query I rowsort
SELECT ALL - 23 * - 77 * - COALESCE ( - 43, - - 16 )
----
76153

query I rowsort
SELECT ALL 46 - 93
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-4384
SELECT + 24 * - + COUNT( * ) + + ( 48 ) AS col1
----
24

skipif mysql # not compatible
query I rowsort label-4384
SELECT + 24 * - + COUNT ( * ) + + ( 48 ) AS col1
----
24

onlyif mysql # aggregate syntax: 
query II rowsort label-4385
SELECT DISTINCT - COUNT( * ), MIN( - + 46 ) AS col2
----
-1
-46

skipif mysql # not compatible
query II rowsort label-4385
SELECT DISTINCT - COUNT ( * ), MIN ( - + 46 ) AS col2
----
-1
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-4386
SELECT ALL - COUNT( * ) * 46 AS col0
----
-46

skipif mysql # not compatible
query I rowsort label-4386
SELECT ALL - COUNT ( * ) * 46 AS col0
----
-46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4387
SELECT 6 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4387
SELECT 6 * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4388
SELECT + 61 * 79 + + 97 DIV - 10 + 18 AS col0
----
4828

skipif mysql # not compatible
query I rowsort label-4388
SELECT + 61 * 79 + + 97 / - 10 + 18 AS col0
----
4828

query I rowsort
SELECT ALL - CASE - COALESCE ( ( - 18 ), 37 ) WHEN 70 THEN NULL ELSE - + 35 END AS col0
----
35

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4390
SELECT - CAST( NULL AS DECIMAL ) * - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4390
SELECT - CAST ( NULL AS REAL ) * - COUNT ( * )
----
NULL

query I rowsort
SELECT - 48 + - 14
----
-62

query I rowsort
SELECT 78 + ( - - 62 ) AS col0
----
140

onlyif mysql # aggregate syntax: 
query I rowsort label-4393
SELECT - 75 + - MAX( - + 6 )
----
-69

skipif mysql # not compatible
query I rowsort label-4393
SELECT - 75 + - MAX ( - + 6 )
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-4394
SELECT + MAX( 4 ) * 38 * + CASE + CASE 71 WHEN - + 26 * + 61 / 68 * + - 48 THEN COUNT( * ) END WHEN + NULLIF ( - 92, + 81 ) * + 71 / ( - 16 ) - + - 11 + - - ( - 8 ) * + 70 * + 11 - + 25 * 13 * - 3 THEN - 1 * - 50 WHEN + - 56 THEN + 41 WHEN - 44 * + MIN( ALL 86 ) THEN NULL WHEN + 20 * 67 THEN NULL END / + 67 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4394
SELECT + MAX ( 4 ) * 38 * + CASE + CASE 71 WHEN - + 26 * + 61 / 68 * + - 48 THEN COUNT ( * ) END WHEN + NULLIF ( - 92, + 81 ) * + 71 / ( - 16 ) - + - 11 + - - ( - 8 ) * + 70 * + 11 - + 25 * 13 * - 3 THEN - 1 * - 50 WHEN + - 56 THEN + 41 WHEN - 44 * + MIN ( ALL 86 ) THEN NULL WHEN + 20 * 67 THEN NULL END / + 67 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4395
SELECT ALL - - COUNT( * ) DIV - COUNT( * ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-4395
SELECT ALL - - COUNT ( * ) / - COUNT ( * ) AS col1
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-4396
SELECT DISTINCT 33 * + 59 + - 71 - + 3 DIV 61 * - 53 + + 62 AS col1
----
1938

skipif mysql # not compatible
query I rowsort label-4396
SELECT DISTINCT 33 * + 59 + - 71 - + 3 / 61 * - 53 + + 62 AS col1
----
1938

onlyif mysql # aggregate syntax: 
query I rowsort label-4397
SELECT DISTINCT - COUNT( * ) + + 20 col2
----
19

skipif mysql # not compatible
query I rowsort label-4397
SELECT DISTINCT - COUNT ( * ) + + 20 col2
----
19

query I rowsort
SELECT ALL - + COALESCE ( 65, 52 + - + 89, 44 + 79 - 52 - + 43 ) * 92 AS col2
----
-5980

query I rowsort
SELECT + 55 * 57
----
3135

query I rowsort
SELECT + 25 + 19 * - 5 AS col0
----
-70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4401
SELECT DISTINCT COALESCE ( - COUNT( * ), + 8 + - 63 + - COUNT( + + 72 ) * - 4 ) + - 43 + - CAST( - COUNT( * ) AS SIGNED ) + 24
----
-19

skipif mysql # not compatible
query I rowsort label-4401
SELECT DISTINCT COALESCE ( - COUNT ( * ), + 8 + - 63 + - COUNT ( + + 72 ) * - 4 ) + - 43 + - CAST ( - COUNT ( * ) AS INTEGER ) + 24
----
-19

query II rowsort
SELECT - 3 AS col1, - 46 AS col2
----
-3
-46

query I rowsort
SELECT ALL 17 + - 5 AS col2
----
12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4404
SELECT 57 + + COUNT( * ) DIV 67 * - MIN( ALL + 59 ) AS col0
----
57

skipif mysql # not compatible
query I rowsort label-4404
SELECT 57 + + COUNT ( * ) / 67 * - MIN ( ALL + 59 ) AS col0
----
57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4405
SELECT DISTINCT - 89 + - CASE - AVG ( DISTINCT 60 ) WHEN + 25 THEN NULL WHEN - 97 + 8 THEN + CAST( NULL AS SIGNED ) ELSE - NULLIF ( + 36, - COALESCE ( 23, + - 50 * + + ( + 89 ) * - 15 + 24 - + 0 ) + 84 ) + + 88 + 85 * + - ( - 87 ) + - 86 + + - 80 + + + ( 70 ) END AS col2
----
-7440

skipif mysql # not compatible
query I rowsort label-4405
SELECT DISTINCT - 89 + - CASE - AVG ( DISTINCT 60 ) WHEN + 25 THEN NULL WHEN - 97 + 8 THEN + CAST ( NULL AS INTEGER ) ELSE - NULLIF ( + 36, - COALESCE ( 23, + - 50 * + + ( + 89 ) * - 15 + 24 - + 0 ) + 84 ) + + 88 + 85 * + - ( - 87 ) + - 86 + + - 80 + + + ( 70 ) END AS col2
----
-7440

onlyif mysql # DIV for integer division: 
query II rowsort label-4406
SELECT - 5 * + 0 DIV + 28 AS col1, 68 DIV + 70 * 33 * - - 32 * 36 DIV 96 * - - 70 * - - 52 AS col1
----
0
0

skipif mysql # not compatible
query II rowsort label-4406
SELECT - 5 * + 0 / + 28 AS col1, 68 / + 70 * 33 * - - 32 * 36 / 96 * - - 70 * - - 52 AS col1
----
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4407
SELECT - NULLIF ( + 15, - + 77 * + ( - + 85 ) / + + 52 + MIN( DISTINCT - + COALESCE ( + 86, - 38 + + + 55 * + 9 ) ) )
----
-15

skipif mysql # not compatible
query I rowsort label-4407
SELECT - NULLIF ( + 15, - + 77 * + ( - + 85 ) / + + 52 + MIN ( DISTINCT - + COALESCE ( + 86, - 38 + + + 55 * + 9 ) ) )
----
-15

query I rowsort
SELECT ALL 12 + - - 94 * ( - 38 ) AS col0
----
-3560

onlyif mysql # DIV for integer division: 
query I rowsort label-4409
SELECT ALL 71 + + + 68 + 0 * + - 25 DIV NULLIF ( - 37, - 52 ) AS col0
----
139

skipif mysql # not compatible
query I rowsort label-4409
SELECT ALL 71 + + + 68 + 0 * + - 25 / NULLIF ( - 37, - 52 ) AS col0
----
139

onlyif mysql # DIV for integer division: 
query I rowsort label-4410
SELECT 99 * - + 21 - ( + 4 ) + 13 DIV + - 96 AS col1
----
-2083

skipif mysql # not compatible
query I rowsort label-4410
SELECT 99 * - + 21 - ( + 4 ) + 13 / + - 96 AS col1
----
-2083

onlyif mysql # aggregate syntax: 
query I rowsort label-4411
SELECT COUNT( - 36 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4411
SELECT COUNT ( - 36 ) AS col0
----
1

query I rowsort
SELECT ALL 34 * - + 23
----
-782

query I rowsort
SELECT ALL 58 * + - 63 - + 92
----
-3746

query I rowsort
SELECT DISTINCT 63 * - ( + ( + 93 ) )
----
-5859

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4415
SELECT ALL - 56 * + + CAST( - 95 AS SIGNED ) - 50
----
5270

skipif mysql # not compatible
query I rowsort label-4415
SELECT ALL - 56 * + + CAST ( - 95 AS INTEGER ) - 50
----
5270

onlyif mysql # aggregate syntax: 
query I rowsort label-4416
SELECT ALL - COUNT( ALL - 91 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-4416
SELECT ALL - COUNT ( ALL - 91 ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4417
SELECT - 95 * NULLIF ( 83, + ( + - 60 ) ) + - - 98 + + ( - 87 ) + + 94 * COALESCE ( + COUNT( * ), - 43 * - 67 * - 83 * 17 ) * + 94 + - 58 + - 89 + - - ( 48 )
----
863

skipif mysql # not compatible
query I rowsort label-4417
SELECT - 95 * NULLIF ( 83, + ( + - 60 ) ) + - - 98 + + ( - 87 ) + + 94 * COALESCE ( + COUNT ( * ), - 43 * - 67 * - 83 * 17 ) * + 94 + - 58 + - 89 + - - ( 48 )
----
863

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4418
SELECT ALL SUM( DISTINCT - 16 ) DIV - 1
----
16

skipif mysql # not compatible
query I rowsort label-4418
SELECT ALL SUM ( DISTINCT - 16 ) / - 1
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-4419
SELECT + ( 22 ) * - COUNT( * ) AS col2
----
-22

skipif mysql # not compatible
query I rowsort label-4419
SELECT + ( 22 ) * - COUNT ( * ) AS col2
----
-22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4420
SELECT - 62 + + COUNT( DISTINCT - - CAST( NULL AS SIGNED ) ) + - + 69 AS col1
----
-131

skipif mysql # not compatible
query I rowsort label-4420
SELECT - 62 + + COUNT ( DISTINCT - - CAST ( NULL AS INTEGER ) ) + - + 69 AS col1
----
-131

query I rowsort
SELECT + 33 * - + 40 col1
----
-1320

onlyif mysql # aggregate syntax: 
query I rowsort label-4422
SELECT + NULLIF ( SUM( - 17 ), + - COUNT( * ) )
----
-17

skipif mysql # not compatible
query I rowsort label-4422
SELECT + NULLIF ( SUM ( - 17 ), + - COUNT ( * ) )
----
-17

query I rowsort
SELECT - - 11 * - 7 * - + 25
----
1925

query I rowsort
SELECT ALL + COALESCE ( - ( - 6 ), - 53, - 51 - - 97 ) AS col2
----
6

query I rowsort
SELECT DISTINCT + 19 + 72 AS col1
----
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4426
SELECT ALL - CAST( + MAX( DISTINCT + 85 ) AS SIGNED ) * - 33, 47 + + - 56 AS col0
----
2805
-9

skipif mysql # not compatible
query II rowsort label-4426
SELECT ALL - CAST ( + MAX ( DISTINCT + 85 ) AS INTEGER ) * - 33, 47 + + - 56 AS col0
----
2805
-9

query I rowsort
SELECT - - 50 * - 65 AS col1
----
-3250

query II rowsort
SELECT DISTINCT - 39 + 39, 57 AS col1
----
0
57

query I rowsort
SELECT DISTINCT - + 36 * + + 62
----
-2232

query I rowsort
SELECT DISTINCT - + 23 + + 23 AS col0
----
0

query II rowsort
SELECT - 18 + 93 AS col0, - 46
----
75
-46

onlyif mysql # aggregate syntax: 
query II rowsort label-4432
SELECT - MAX( + 82 ) col2, - 0 * - COUNT( * )
----
-82
0

skipif mysql # not compatible
query II rowsort label-4432
SELECT - MAX ( + 82 ) col2, - 0 * - COUNT ( * )
----
-82
0

query I rowsort
SELECT ALL - + 23 + + 22 col1
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4434
SELECT ALL + 79 * NULLIF ( - 76, + COUNT( ALL - - CAST( + - COALESCE ( 33, 73 + + - 7 ) AS SIGNED ) ) ) + - + 28
----
-6032

skipif mysql # not compatible
query I rowsort label-4434
SELECT ALL + 79 * NULLIF ( - 76, + COUNT ( ALL - - CAST ( + - COALESCE ( 33, 73 + + - 7 ) AS INTEGER ) ) ) + - + 28
----
-6032

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4435
SELECT DISTINCT + CAST( ( + 23 ) AS SIGNED ) * 97 AS col1
----
2231

skipif mysql # not compatible
query I rowsort label-4435
SELECT DISTINCT + CAST ( ( + 23 ) AS INTEGER ) * 97 AS col1
----
2231

query I rowsort
SELECT - - 51 col1
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-4437
SELECT - SUM( DISTINCT - - 7 ) + - + 29
----
-36

skipif mysql # not compatible
query I rowsort label-4437
SELECT - SUM ( DISTINCT - - 7 ) + - + 29
----
-36

query I rowsort
SELECT ALL + 95 * 51 AS col2
----
4845

onlyif mysql # aggregate syntax: 
query I rowsort label-4439
SELECT + COUNT( * ) - + 77 AS col1
----
-76

skipif mysql # not compatible
query I rowsort label-4439
SELECT + COUNT ( * ) - + 77 AS col1
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-4440
SELECT ALL COUNT( * ) - - + 22
----
23

skipif mysql # not compatible
query I rowsort label-4440
SELECT ALL COUNT ( * ) - - + 22
----
23

query II rowsort
SELECT ALL + NULLIF ( - - 70, + - 1 ) col0, 66 * - - 80
----
70
5280

onlyif mysql # aggregate syntax: 
query II rowsort label-4442
SELECT ALL + 35 col1, COUNT( * ) AS col0
----
35
1

skipif mysql # not compatible
query II rowsort label-4442
SELECT ALL + 35 col1, COUNT ( * ) AS col0
----
35
1

query I rowsort
SELECT DISTINCT + COALESCE ( ( - + 39 ), 73 ) AS col0
----
-39

query I rowsort
SELECT + 69 * 28
----
1932

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4445
SELECT ( CAST( NULL AS DECIMAL ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4445
SELECT ( CAST ( NULL AS REAL ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4446
SELECT DISTINCT COUNT( * ) * + + 10 AS col0
----
10

skipif mysql # not compatible
query I rowsort label-4446
SELECT DISTINCT COUNT ( * ) * + + 10 AS col0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-4447
SELECT + ( - ( - - ( COUNT( * ) ) ) ) * - COUNT( * ) * - 56 AS col2
----
-56

skipif mysql # not compatible
query I rowsort label-4447
SELECT + ( - ( - - ( COUNT ( * ) ) ) ) * - COUNT ( * ) * - 56 AS col2
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-4448
SELECT + 39 * - - ( + + MIN( + 36 ) ) * + 87
----
122148

skipif mysql # not compatible
query I rowsort label-4448
SELECT + 39 * - - ( + + MIN ( + 36 ) ) * + 87
----
122148

query I rowsort
SELECT + 51 - ( 75 ) AS col0
----
-24

query I rowsort
SELECT + NULLIF ( - 11, - 52 ) AS col1
----
-11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4451
SELECT 61 * + ( + - 16 ) + + - ( - - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4451
SELECT 61 * + ( + - 16 ) + + - ( - - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4452
SELECT - - COALESCE ( + MAX( DISTINCT 92 ), + 42 ) * 67 DIV - - 47 + 80 + - - 77
----
288

skipif mysql # not compatible
query I rowsort label-4452
SELECT - - COALESCE ( + MAX ( DISTINCT 92 ), + 42 ) * 67 / - - 47 + 80 + - - 77
----
288

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4453
SELECT ALL + + CASE CASE + COUNT( * ) WHEN + NULLIF ( - 54, + CAST( - 70 AS SIGNED ) / + 43 + + 26 + - 47 * NULLIF ( - 56, - + 15 ) / + 92 + + 74 ) * COALESCE ( - COALESCE ( + 48, + + 91 * COUNT( * ) * - ( + ( + 95 ) ) ), 22 ) * + ( + + 98 ) + - - 2 + - 0 + - + CASE 79 WHEN - 53 + + 20 * 5 THEN NULL ELSE 66 END + 50 - 92 THEN AVG ( DISTINCT 89 ) + 99 * - 0 WHEN ( SUM( - 3 ) ) THEN NULL END WHEN - 15 THEN + 78 WHEN + 85 THEN 65 WHEN - 49 - CASE - 20 - 61 * 54 WHEN 52 THEN - ( + 20 ) END THEN + SUM( + 86 ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4453
SELECT ALL + + CASE CASE + COUNT ( * ) WHEN + NULLIF ( - 54, + CAST ( - 70 AS INTEGER ) / + 43 + + 26 + - 47 * NULLIF ( - 56, - + 15 ) / + 92 + + 74 ) * COALESCE ( - COALESCE ( + 48, + + 91 * COUNT ( * ) * - ( + ( + 95 ) ) ), 22 ) * + ( + + 98 ) + - - 2 + - 0 + - + CASE 79 WHEN - 53 + + 20 * 5 THEN NULL ELSE 66 END + 50 - 92 THEN AVG ( DISTINCT 89 ) + 99 * - 0 WHEN ( SUM ( - 3 ) ) THEN NULL END WHEN - 15 THEN + 78 WHEN + 85 THEN 65 WHEN - 49 - CASE - 20 - 61 * 54 WHEN 52 THEN - ( + 20 ) END THEN + SUM ( + 86 ) END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4454
SELECT ALL + - COUNT( * ) AS col1, MAX( DISTINCT + 5 ) * 77 * + + 73
----
-1
28105

skipif mysql # not compatible
query II rowsort label-4454
SELECT ALL + - COUNT ( * ) AS col1, MAX ( DISTINCT + 5 ) * 77 * + + 73
----
-1
28105

query II rowsort
SELECT + ( 81 ) - + 94 AS col0, 23 AS col1
----
-13
23

query II rowsort
SELECT ALL + - 54 AS col2, + 73 AS col2
----
-54
73

onlyif mysql # aggregate syntax: 
query I rowsort label-4457
SELECT ALL ( COUNT( * ) ) * - 31 + - 84 + 76 AS col0
----
-39

skipif mysql # not compatible
query I rowsort label-4457
SELECT ALL ( COUNT ( * ) ) * - 31 + - 84 + 76 AS col0
----
-39

query I rowsort
SELECT + + 94 + - 14 col1
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-4459
SELECT DISTINCT + 50 * + COUNT( * ) AS col0
----
50

skipif mysql # not compatible
query I rowsort label-4459
SELECT DISTINCT + 50 * + COUNT ( * ) AS col0
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-4460
SELECT - + 45 + + COUNT( * )
----
-44

skipif mysql # not compatible
query I rowsort label-4460
SELECT - + 45 + + COUNT ( * )
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-4461
SELECT ALL + 39 - + COUNT( * ) * - 17 - + + 35 AS col0
----
21

skipif mysql # not compatible
query I rowsort label-4461
SELECT ALL + 39 - + COUNT ( * ) * - 17 - + + 35 AS col0
----
21

query I rowsort
SELECT ALL + + 83 - + 47
----
36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4463
SELECT ALL CAST( + + NULLIF ( + 74, + 83 ) AS SIGNED ) * + - 13 + - + 5
----
-967

skipif mysql # not compatible
query I rowsort label-4463
SELECT ALL CAST ( + + NULLIF ( + 74, + 83 ) AS INTEGER ) * + - 13 + - + 5
----
-967

onlyif mysql # aggregate syntax: 
query I rowsort label-4464
SELECT - COUNT( * ) + - 42 * + 75 AS col1
----
-3151

skipif mysql # not compatible
query I rowsort label-4464
SELECT - COUNT ( * ) + - 42 * + 75 AS col1
----
-3151

onlyif mysql # aggregate syntax: 
query I rowsort label-4465
SELECT + + COUNT( * ) + + 18 AS col0
----
19

skipif mysql # not compatible
query I rowsort label-4465
SELECT + + COUNT ( * ) + + 18 AS col0
----
19

query I rowsort
SELECT + ( + 46 ) AS col0
----
46

query I rowsort
SELECT DISTINCT ( + - 20 )
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-4468
SELECT + COALESCE ( + - 43, - - COUNT( * ) + - + 24 + + COUNT( * ) * - + 95 ) * + 86
----
-3698

skipif mysql # not compatible
query I rowsort label-4468
SELECT + COALESCE ( + - 43, - - COUNT ( * ) + - + 24 + + COUNT ( * ) * - + 95 ) * + 86
----
-3698

query I rowsort
SELECT - 12 + 84
----
72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4470
SELECT DISTINCT CAST( 84 AS SIGNED )
----
84

skipif mysql # not compatible
query I rowsort label-4470
SELECT DISTINCT CAST ( 84 AS INTEGER )
----
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4471
SELECT - CAST( NULL AS SIGNED ) + - 20
----
NULL

skipif mysql # not compatible
query I rowsort label-4471
SELECT - CAST ( NULL AS INTEGER ) + - 20
----
NULL

query I rowsort
SELECT ALL - 91 * + 65
----
-5915

onlyif mysql # aggregate syntax: 
query I rowsort label-4473
SELECT ALL 64 * + COUNT( + 23 ) * - 56 AS col0
----
-3584

skipif mysql # not compatible
query I rowsort label-4473
SELECT ALL 64 * + COUNT ( + 23 ) * - 56 AS col0
----
-3584

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4474
SELECT 9 DIV - - COALESCE ( 72, 18 ) AS col2, - ( - COUNT( * ) ) col2
----
0
1

skipif mysql # not compatible
query II rowsort label-4474
SELECT 9 / - - COALESCE ( 72, 18 ) AS col2, - ( - COUNT ( * ) ) col2
----
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4475
SELECT ALL - MAX( DISTINCT - 26 ) * - 54 * - 96
----
134784

skipif mysql # not compatible
query I rowsort label-4475
SELECT ALL - MAX ( DISTINCT - 26 ) * - 54 * - 96
----
134784

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4476
SELECT 92 DIV + 80 + + + 70 + - COUNT( * ) * + - COUNT( * ) AS col1
----
72

skipif mysql # not compatible
query I rowsort label-4476
SELECT 92 / + 80 + + + 70 + - COUNT ( * ) * + - COUNT ( * ) AS col1
----
72

query I rowsort
SELECT ALL + 1 * 89
----
89

onlyif mysql # aggregate syntax: 
query II rowsort label-4478
SELECT ALL + SUM( + CASE - 25 WHEN - + 43 THEN NULL ELSE - 47 END ) * + 36 AS col1, - 11 + + 35 AS col0
----
-1692
24

skipif mysql # not compatible
query II rowsort label-4478
SELECT ALL + SUM ( + CASE - 25 WHEN - + 43 THEN NULL ELSE - 47 END ) * + 36 AS col1, - 11 + + 35 AS col0
----
-1692
24

onlyif mysql # DIV for integer division: 
query I rowsort label-4479
SELECT 99 DIV + 31 AS col0
----
3

skipif mysql # not compatible
query I rowsort label-4479
SELECT 99 / + 31 AS col0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4480
SELECT 65 * + 51 + COUNT( * ) AS col0
----
3316

skipif mysql # not compatible
query I rowsort label-4480
SELECT 65 * + 51 + COUNT ( * ) AS col0
----
3316

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4481
SELECT ALL - COUNT( * ) + + 44 DIV - 6
----
-8

skipif mysql # not compatible
query I rowsort label-4481
SELECT ALL - COUNT ( * ) + + 44 / - 6
----
-8

query I rowsort
SELECT ALL + 1 * - 36 col0
----
-36

query II rowsort
SELECT ALL 97 + + 5 AS col0, - 68 AS col0
----
102
-68

query I rowsort
SELECT 65 * 70 + - 53 AS col1
----
4497

query I rowsort
SELECT ALL - 29 + + 17
----
-12

query II rowsort
SELECT DISTINCT - ( - 8 ), 79 * - - 52 AS col2
----
8
4108

query I rowsort
SELECT 76 * + 61
----
4636

query I rowsort
SELECT DISTINCT - + NULLIF ( + - 63, 72 ) AS col0
----
63

query I rowsort
SELECT ALL - 70 + - 1 AS col2
----
-71

query I rowsort
SELECT NULLIF ( - 58, + 14 + + ( + 94 ) )
----
-58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4491
SELECT ALL 39 DIV - COUNT( * ) * + COUNT( DISTINCT - 59 ) col2
----
-39

skipif mysql # not compatible
query I rowsort label-4491
SELECT ALL 39 / - COUNT ( * ) * + COUNT ( DISTINCT - 59 ) col2
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-4492
SELECT ALL + 78 + + + 43 + + COUNT( * ) + - - 29 + - 69 + - - 37 * ( - 21 )
----
-695

skipif mysql # not compatible
query I rowsort label-4492
SELECT ALL + 78 + + + 43 + + COUNT ( * ) + - - 29 + - 69 + - - 37 * ( - 21 )
----
-695

onlyif mysql # aggregate syntax: 
query I rowsort label-4493
SELECT COUNT( * ) * 70 + + ( - 26 ) + 81 AS col0
----
125

skipif mysql # not compatible
query I rowsort label-4493
SELECT COUNT ( * ) * 70 + + ( - 26 ) + 81 AS col0
----
125

onlyif mysql # aggregate syntax: 
query I rowsort label-4494
SELECT ALL 11 - COUNT( * ) col1
----
10

skipif mysql # not compatible
query I rowsort label-4494
SELECT ALL 11 - COUNT ( * ) col1
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-4495
SELECT 1 * + COALESCE ( COUNT( * ), + SUM( ALL 43 ), + 72 * + 32, - 93 * - 74 )
----
1

skipif mysql # not compatible
query I rowsort label-4495
SELECT 1 * + COALESCE ( COUNT ( * ), + SUM ( ALL 43 ), + 72 * + 32, - 93 * - 74 )
----
1

query II rowsort
SELECT ALL 72 col1, + 9 AS col2
----
72
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4497
SELECT COUNT( * ) + - + 41 AS col1
----
-40

skipif mysql # not compatible
query I rowsort label-4497
SELECT COUNT ( * ) + - + 41 AS col1
----
-40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4498
SELECT + CASE ( - + 90 ) WHEN - + 10 * + 30 + - COUNT( * ) * - + 32 THEN - 14 + + 76 WHEN + + 24 * 92 + SUM( ALL CAST( NULL AS SIGNED ) ) THEN - 42 END * ( - - NULLIF ( COUNT( - 18 ), + 48 ) ) * + - CAST( CAST( NULL AS SIGNED ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4498
SELECT + CASE ( - + 90 ) WHEN - + 10 * + 30 + - COUNT ( * ) * - + 32 THEN - 14 + + 76 WHEN + + 24 * 92 + SUM ( ALL CAST ( NULL AS INTEGER ) ) THEN - 42 END * ( - - NULLIF ( COUNT ( - 18 ), + 48 ) ) * + - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4499
SELECT + CAST( NULL AS SIGNED ) AS col0, - CAST( NULL AS SIGNED ) / + 69
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-4499
SELECT + CAST ( NULL AS INTEGER ) AS col0, - CAST ( NULL AS INTEGER ) / + 69
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4500
SELECT CASE - + 70 WHEN + MAX( ( - - 57 ) ) THEN + - COUNT( * ) WHEN 53 + - AVG ( DISTINCT + 70 ) THEN NULL ELSE NULL END / - COALESCE ( + COALESCE ( - - 77, 20 * 95, 34, - 76 / + + MIN( DISTINCT - 77 ) + + + COUNT( * ) + - 68 * + - NULLIF ( + 59, 60 + + - NULLIF ( + - 72, - COUNT( * ) ) ) * - 84 / + + 88 * + - 4 ), + MIN( DISTINCT - 92 ), - 71 * 28 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4500
SELECT CASE - + 70 WHEN + MAX ( ( - - 57 ) ) THEN + - COUNT ( * ) WHEN 53 + - AVG ( DISTINCT + 70 ) THEN NULL ELSE NULL END / - COALESCE ( + COALESCE ( - - 77, 20 * 95, 34, - 76 / + + MIN ( DISTINCT - 77 ) + + + COUNT ( * ) + - 68 * + - NULLIF ( + 59, 60 + + - NULLIF ( + - 72, - COUNT ( * ) ) ) * - 84 / + + 88 * + - 4 ), + MIN ( DISTINCT - 92 ), - 71 * 28 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4501
SELECT ( COUNT( * ) ) * 27 * 21 AS col2
----
567

skipif mysql # not compatible
query I rowsort label-4501
SELECT ( COUNT ( * ) ) * 27 * 21 AS col2
----
567

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4502
SELECT 84 - + - CAST( NULL AS SIGNED ) + - 96 + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4502
SELECT 84 - + - CAST ( NULL AS INTEGER ) + - 96 + COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4503
SELECT CAST( + 64 AS SIGNED ) - 97 AS col2
----
-33

skipif mysql # not compatible
query I rowsort label-4503
SELECT CAST ( + 64 AS INTEGER ) - 97 AS col2
----
-33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4504
SELECT CAST( - 33 AS SIGNED ) + CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4504
SELECT CAST ( - 33 AS INTEGER ) + CAST ( NULL AS INTEGER ) col2
----
NULL

query I rowsort
SELECT 90 * - + 35
----
-3150

query II rowsort
SELECT 25 * + + 3 AS col0, - 81 AS col1
----
75
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-4507
SELECT ALL - 42 + + 97 + - 75 * - COUNT( * ) - + 25
----
105

skipif mysql # not compatible
query I rowsort label-4507
SELECT ALL - 42 + + 97 + - 75 * - COUNT ( * ) - + 25
----
105

onlyif mysql # aggregate syntax: 
query I rowsort label-4508
SELECT ALL 33 + 6 + + MIN( 10 )
----
49

skipif mysql # not compatible
query I rowsort label-4508
SELECT ALL 33 + 6 + + MIN ( 10 )
----
49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4509
SELECT ALL - 97 + 68 + SUM( + + 85 ) DIV + + 91 AS col0
----
-29

skipif mysql # not compatible
query I rowsort label-4509
SELECT ALL - 97 + 68 + SUM ( + + 85 ) / + + 91 AS col0
----
-29

onlyif mysql # DIV for integer division: 
query I rowsort label-4510
SELECT DISTINCT - 25 DIV + + 63
----
0

skipif mysql # not compatible
query I rowsort label-4510
SELECT DISTINCT - 25 / + + 63
----
0

query I rowsort
SELECT + 92 + - - 59 - - 66
----
217

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4512
SELECT SUM( - - 22 ) DIV + + 42 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4512
SELECT SUM ( - - 22 ) / + + 42 AS col0
----
0

query I rowsort
SELECT ALL - - 79 + + 29 * ( + 66 )
----
1993

onlyif mysql # aggregate syntax: 
query I rowsort label-4514
SELECT - COUNT( * ) * ( 80 ) / + - 49 + ( - - AVG ( - + CASE - + 13 WHEN + 40 * + + 9 THEN + 24 + 36 ELSE NULL END ) ) * + COUNT( * ) + - MIN( ALL - 60 ) - 27 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4514
SELECT - COUNT ( * ) * ( 80 ) / + - 49 + ( - - AVG ( - + CASE - + 13 WHEN + 40 * + + 9 THEN + 24 + 36 ELSE NULL END ) ) * + COUNT ( * ) + - MIN ( ALL - 60 ) - 27 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4515
SELECT DISTINCT + + 50 * - 55 + + COUNT( * )
----
-2749

skipif mysql # not compatible
query I rowsort label-4515
SELECT DISTINCT + + 50 * - 55 + + COUNT ( * )
----
-2749

query I rowsort
SELECT ALL - ( - 9 ) - + + 50 col2
----
-41

query I rowsort
SELECT + 51 * + 99 col0
----
5049

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4518
SELECT 17 * CASE + COUNT( * ) WHEN - 21 + - 48 * + 29 THEN NULL WHEN + COALESCE ( - 74, - - CAST( - 55 AS SIGNED ), - 8 ) THEN + + 94 ELSE NULL END + - COUNT( * ) + - - ( + 71 ) / + 20 + + 66, - 54 + - COUNT( * ) + 45 * ( - 79 ) AS col0
----
NULL
-3610

skipif mysql # not compatible
query II rowsort label-4518
SELECT 17 * CASE + COUNT ( * ) WHEN - 21 + - 48 * + 29 THEN NULL WHEN + COALESCE ( - 74, - - CAST ( - 55 AS INTEGER ), - 8 ) THEN + + 94 ELSE NULL END + - COUNT ( * ) + - - ( + 71 ) / + 20 + + 66, - 54 + - COUNT ( * ) + 45 * ( - 79 ) AS col0
----
NULL
-3610

onlyif mysql # aggregate syntax: 
query I rowsort label-4519
SELECT - 18 * 86 - COUNT( * ) AS col1
----
-1549

skipif mysql # not compatible
query I rowsort label-4519
SELECT - 18 * 86 - COUNT ( * ) AS col1
----
-1549

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4520
SELECT ( + COALESCE ( + NULLIF ( - 98, + + 32 * - - 45 + 58 ), + 25 ) ) + 48 + + 92 + - COUNT( * ) DIV + 71 AS col1, - COUNT( * ) AS col0
----
42
-1

skipif mysql # not compatible
query II rowsort label-4520
SELECT ( + COALESCE ( + NULLIF ( - 98, + + 32 * - - 45 + 58 ), + 25 ) ) + 48 + + 92 + - COUNT ( * ) / + 71 AS col1, - COUNT ( * ) AS col0
----
42
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4521
SELECT + + 3 * COUNT( + + 83 ) DIV + MAX( + 42 ) + + 25 + + ( - - COUNT( * ) ) col2, 10 col1
----
26
10

skipif mysql # not compatible
query II rowsort label-4521
SELECT + + 3 * COUNT ( + + 83 ) / + MAX ( + 42 ) + + 25 + + ( - - COUNT ( * ) ) col2, 10 col1
----
26
10

query I rowsort
SELECT 95 + 65
----
160

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4523
SELECT ALL CAST( - - 24 AS SIGNED ) * - MAX( - 60 ) * + - 82 AS col2
----
-118080

skipif mysql # not compatible
query I rowsort label-4523
SELECT ALL CAST ( - - 24 AS INTEGER ) * - MAX ( - 60 ) * + - 82 AS col2
----
-118080

query I rowsort
SELECT DISTINCT - 29 * + 63
----
-1827

onlyif mysql # aggregate syntax: 
query I rowsort label-4525
SELECT - COUNT( - - 14 )
----
-1

skipif mysql # not compatible
query I rowsort label-4525
SELECT - COUNT ( - - 14 )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4526
SELECT CAST( NULL AS SIGNED ) * + + 22 + - - 14 + 62 * - + CAST( 26 AS SIGNED ) + 95 * - 22 + - 29
----
NULL

skipif mysql # not compatible
query I rowsort label-4526
SELECT CAST ( NULL AS INTEGER ) * + + 22 + - - 14 + 62 * - + CAST ( 26 AS INTEGER ) + 95 * - 22 + - 29
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4527
SELECT ALL 33 AS col1, - SUM( - 53 ) col1
----
33
53

skipif mysql # not compatible
query II rowsort label-4527
SELECT ALL 33 AS col1, - SUM ( - 53 ) col1
----
33
53

query I rowsort
SELECT ALL 0 * + - 67 * - 31
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4529
SELECT - CAST( - 4 AS SIGNED ) + - - 82 - + MIN( DISTINCT - 37 ) + ( - 53 )
----
70

skipif mysql # not compatible
query I rowsort label-4529
SELECT - CAST ( - 4 AS INTEGER ) + - - 82 - + MIN ( DISTINCT - 37 ) + ( - 53 )
----
70

onlyif mysql # DIV for integer division: 
query I rowsort label-4530
SELECT + 64 DIV - 81
----
0

skipif mysql # not compatible
query I rowsort label-4530
SELECT + 64 / - 81
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4531
SELECT DISTINCT MAX( + 22 ) + + MAX( DISTINCT 9 ) AS col0
----
31

skipif mysql # not compatible
query I rowsort label-4531
SELECT DISTINCT MAX ( + 22 ) + + MAX ( DISTINCT 9 ) AS col0
----
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4532
SELECT + 10 * - - COALESCE ( - 59, 19 * + COUNT( * ) + 77 ) * + - ( + + COUNT( ALL CASE - 31 WHEN + + 17 THEN - 74 WHEN - 1 THEN NULL ELSE NULL END ) ) / - 63 + CASE + + SUM( - 42 ) WHEN 90 THEN + + 88 WHEN - 82 + + COUNT( * ) - + COUNT( ALL - 30 ) + - - ( + COUNT( * ) ) THEN NULL END + + CAST( - - 64 AS SIGNED ) * 75
----
NULL

skipif mysql # not compatible
query I rowsort label-4532
SELECT + 10 * - - COALESCE ( - 59, 19 * + COUNT ( * ) + 77 ) * + - ( + + COUNT ( ALL CASE - 31 WHEN + + 17 THEN - 74 WHEN - 1 THEN NULL ELSE NULL END ) ) / - 63 + CASE + + SUM ( - 42 ) WHEN 90 THEN + + 88 WHEN - 82 + + COUNT ( * ) - + COUNT ( ALL - 30 ) + - - ( + COUNT ( * ) ) THEN NULL END + + CAST ( - - 64 AS INTEGER ) * 75
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4533
SELECT ALL NULLIF ( - COUNT( * ), - COUNT( * ) ) + - + 21 + + - 7 * + - COUNT( * ) + 23 + + + 21 * + - 15 - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4533
SELECT ALL NULLIF ( - COUNT ( * ), - COUNT ( * ) ) + - + 21 + + - 7 * + - COUNT ( * ) + 23 + + + 21 * + - 15 - COUNT ( * )
----
NULL

query I rowsort
SELECT + 28 + + + 6 * + 77 - - - 13 AS col2
----
477

onlyif mysql # aggregate syntax: 
query I rowsort label-4535
SELECT DISTINCT COUNT( * ) + + 60 AS col2
----
61

skipif mysql # not compatible
query I rowsort label-4535
SELECT DISTINCT COUNT ( * ) + + 60 AS col2
----
61

query I rowsort
SELECT + 4 + 83 + - ( - 99 )
----
186

query I rowsort
SELECT DISTINCT - 29 + - - 66
----
37

query I rowsort
SELECT DISTINCT + 60 * 19 + 35
----
1175

onlyif mysql # aggregate syntax: 
query I rowsort label-4539
SELECT ALL + 21 * 53 * - + 12 - - - COUNT( * ) - 18 * - 45 * + 53
----
29573

skipif mysql # not compatible
query I rowsort label-4539
SELECT ALL + 21 * 53 * - + 12 - - - COUNT ( * ) - 18 * - 45 * + 53
----
29573

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4540
SELECT + COALESCE ( - COALESCE ( - + 16, + + COUNT( * ) + + 20 ), - MIN( 85 ), 26 * 71 ) DIV + 95 + 63 + - MIN( DISTINCT + - 69 ) + - 71
----
61

skipif mysql # not compatible
query I rowsort label-4540
SELECT + COALESCE ( - COALESCE ( - + 16, + + COUNT ( * ) + + 20 ), - MIN ( 85 ), 26 * 71 ) / + 95 + 63 + - MIN ( DISTINCT + - 69 ) + - 71
----
61

query I rowsort
SELECT DISTINCT + + NULLIF ( - 9, + 65 + 82 )
----
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4542
SELECT ALL + 72, COALESCE ( + 28, + 72 * - CAST( + 26 AS SIGNED ), + CAST( NULL AS SIGNED ), + - COUNT( * ) ) col0
----
72
28

skipif mysql # not compatible
query II rowsort label-4542
SELECT ALL + 72, COALESCE ( + 28, + 72 * - CAST ( + 26 AS INTEGER ), + CAST ( NULL AS INTEGER ), + - COUNT ( * ) ) col0
----
72
28

query I rowsort
SELECT + - 82 + + + 36 AS col1
----
-46

onlyif mysql # DIV for integer division: 
query II rowsort label-4544
SELECT + 72 AS col2, 96 DIV + 99
----
72
0

skipif mysql # not compatible
query II rowsort label-4544
SELECT + 72 AS col2, 96 / + 99
----
72
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4545
SELECT ALL ( 45 ) * - 9 - - ( + 13 ) - MAX( DISTINCT - 38 ) - - 53 * NULLIF ( + 15, + + 99 - - 69 )
----
441

skipif mysql # not compatible
query I rowsort label-4545
SELECT ALL ( 45 ) * - 9 - - ( + 13 ) - MAX ( DISTINCT - 38 ) - - 53 * NULLIF ( + 15, + + 99 - - 69 )
----
441

onlyif mysql # aggregate syntax: 
query I rowsort label-4546
SELECT - - MIN( DISTINCT 50 ) * 84
----
4200

skipif mysql # not compatible
query I rowsort label-4546
SELECT - - MIN ( DISTINCT 50 ) * 84
----
4200

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4547
SELECT DISTINCT 5 / - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4547
SELECT DISTINCT 5 / - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4548
SELECT - + COUNT( + 17 ) * + 58 col0
----
-58

skipif mysql # not compatible
query I rowsort label-4548
SELECT - + COUNT ( + 17 ) * + 58 col0
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-4549
SELECT ALL + 35 * + MAX( DISTINCT + 50 ) + - MAX( 84 ) + - 86
----
1580

skipif mysql # not compatible
query I rowsort label-4549
SELECT ALL + 35 * + MAX ( DISTINCT + 50 ) + - MAX ( 84 ) + - 86
----
1580

query I rowsort
SELECT - 76 + - 3 + + - 12 - 39 * - - 30 AS col2
----
-1261

query I rowsort
SELECT ALL - + 72 * + + 71
----
-5112

query I rowsort
SELECT - 15 * + + 58
----
-870

query I rowsort
SELECT - + COALESCE ( - 36, 79 ) * - 86 + - + 14 AS col2
----
-3110

query II rowsort
SELECT DISTINCT - 44 * 19 * 7 AS col0, + 82 * - + 74 col2
----
-5852
-6068

onlyif mysql # aggregate syntax: 
query I rowsort label-4555
SELECT ALL + SUM( DISTINCT - 95 ) AS col2
----
-95

skipif mysql # not compatible
query I rowsort label-4555
SELECT ALL + SUM ( DISTINCT - 95 ) AS col2
----
-95

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4556
SELECT DISTINCT + 82 AS col1, - 48 + + SUM( - 25 ) DIV + 90 AS col2
----
82
-48

skipif mysql # not compatible
query II rowsort label-4556
SELECT DISTINCT + 82 AS col1, - 48 + + SUM ( - 25 ) / + 90 AS col2
----
82
-48

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4557
SELECT - - 89 * - 11 DIV COUNT( * ) AS col1, 84 + ( - - 33 )
----
-979
117

skipif mysql # not compatible
query II rowsort label-4557
SELECT - - 89 * - 11 / COUNT ( * ) AS col1, 84 + ( - - 33 )
----
-979
117

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4558
SELECT ALL CASE 78 WHEN 71 * + - 21 THEN NULL ELSE + CAST( NULL AS SIGNED ) / 57 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4558
SELECT ALL CASE 78 WHEN 71 * + - 21 THEN NULL ELSE + CAST ( NULL AS INTEGER ) / 57 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4559
SELECT - 64 - CAST( - - 88 AS SIGNED ) + + 6 * - + 37, - 69 * + 81 col2
----
-374
-5589

skipif mysql # not compatible
query II rowsort label-4559
SELECT - 64 - CAST ( - - 88 AS INTEGER ) + + 6 * - + 37, - 69 * + 81 col2
----
-374
-5589

query I rowsort
SELECT - 82 * 97 AS col1
----
-7954

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4561
SELECT - CAST( NULL AS DECIMAL ) + - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4561
SELECT - CAST ( NULL AS REAL ) + - COUNT ( * ) AS col2
----
NULL

query I rowsort
SELECT ALL ( - 55 ) col2
----
-55

query I rowsort
SELECT + 64 + - + 2
----
62

query I rowsort
SELECT + 23 * - 61
----
-1403

onlyif mysql # aggregate syntax: 
query I rowsort label-4565
SELECT ALL COUNT( * ) + - - 37 + - 60 AS col1
----
-22

skipif mysql # not compatible
query I rowsort label-4565
SELECT ALL COUNT ( * ) + - - 37 + - 60 AS col1
----
-22

query II rowsort
SELECT - 87 - - - 65 * 37 * + 50 col0, + 36 * + + 72 AS col0
----
-120337
2592

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4567
SELECT ALL + COALESCE ( 76, + MAX( - + NULLIF ( - 27, 52 ) ) + + 48 + + - 22 DIV - + 19 * 60 ) * + - 79 - + + 27 AS col0, 39
----
-6031
39

skipif mysql # not compatible
query II rowsort label-4567
SELECT ALL + COALESCE ( 76, + MAX ( - + NULLIF ( - 27, 52 ) ) + + 48 + + - 22 / - + 19 * 60 ) * + - 79 - + + 27 AS col0, 39
----
-6031
39

query I rowsort
SELECT DISTINCT ( + ( + 96 ) )
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4569
SELECT ALL + COUNT( * ) + - COUNT( * ) * - 85 AS col2
----
86

skipif mysql # not compatible
query I rowsort label-4569
SELECT ALL + COUNT ( * ) + - COUNT ( * ) * - 85 AS col2
----
86

query I rowsort
SELECT + 57 * - 13
----
-741

onlyif mysql # aggregate syntax: 
query II rowsort label-4571
SELECT DISTINCT ( - 92 ) - + + 86 + COUNT( * ) * - - 40 + CASE + 6 WHEN - 30 THEN NULL WHEN + ( ( - + ( - 54 ) ) ) * + 14 * + NULLIF ( + ( + 23 ), - SUM( DISTINCT - 80 ) ) THEN + COUNT( * ) END + - 94, COUNT( * ) * - - 60 AS col1
----
NULL
60

skipif mysql # not compatible
query II rowsort label-4571
SELECT DISTINCT ( - 92 ) - + + 86 + COUNT ( * ) * - - 40 + CASE + 6 WHEN - 30 THEN NULL WHEN + ( ( - + ( - 54 ) ) ) * + 14 * + NULLIF ( + ( + 23 ), - SUM ( DISTINCT - 80 ) ) THEN + COUNT ( * ) END + - 94, COUNT ( * ) * - - 60 AS col1
----
NULL
60

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4572
SELECT + 21 * 51 AS col2, 91 DIV + COUNT( 10 ) + COUNT( * ) AS col2
----
1071
92

skipif mysql # not compatible
query II rowsort label-4572
SELECT + 21 * 51 AS col2, 91 / + COUNT ( 10 ) + COUNT ( * ) AS col2
----
1071
92

query I rowsort
SELECT + 44 * - 4
----
-176

onlyif mysql # DIV for integer division: 
query II rowsort label-4574
SELECT ALL - 91 DIV 23 col2, - 44 AS col2
----
-3
-44

skipif mysql # not compatible
query II rowsort label-4574
SELECT ALL - 91 / 23 col2, - 44 AS col2
----
-3
-44

query I rowsort
SELECT + ( - - 52 ) AS col0
----
52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4576
SELECT DISTINCT 36 * - ( + COUNT( * ) ) DIV 81 - 60 col2
----
-60

skipif mysql # not compatible
query I rowsort label-4576
SELECT DISTINCT 36 * - ( + COUNT ( * ) ) / 81 - 60 col2
----
-60

query I rowsort
SELECT ALL + 67 * - ( 74 ) AS col2
----
-4958

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4578
SELECT + + 61 * SUM( + 69 ) DIV ( 49 ) AS col0
----
85

skipif mysql # not compatible
query I rowsort label-4578
SELECT + + 61 * SUM ( + 69 ) / ( 49 ) AS col0
----
85

query I rowsort
SELECT ALL 94 * - - 72 AS col1
----
6768

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4580
SELECT - ( COUNT( * ) ) DIV + COUNT( - + 67 ) + + 87
----
86

skipif mysql # not compatible
query I rowsort label-4580
SELECT - ( COUNT ( * ) ) / + COUNT ( - + 67 ) + + 87
----
86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4581
SELECT ALL 21 * CAST( + - 12 AS SIGNED ) AS col0
----
-252

skipif mysql # not compatible
query I rowsort label-4581
SELECT ALL 21 * CAST ( + - 12 AS INTEGER ) AS col0
----
-252

query I rowsort
SELECT + + 9 + - 68
----
-59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4583
SELECT ALL + CAST( - + 4 AS SIGNED ) AS col1
----
-4

skipif mysql # not compatible
query I rowsort label-4583
SELECT ALL + CAST ( - + 4 AS INTEGER ) AS col1
----
-4

onlyif mysql # DIV for integer division: 
query I rowsort label-4584
SELECT ALL 57 DIV + 17 + + 63 + ( + 71 ) col0
----
137

skipif mysql # not compatible
query I rowsort label-4584
SELECT ALL 57 / + 17 + + 63 + ( + 71 ) col0
----
137

onlyif mysql # aggregate syntax: 
query I rowsort label-4585
SELECT DISTINCT + 90 * - 11 * 54 + + SUM( DISTINCT - + 99 )
----
-53559

skipif mysql # not compatible
query I rowsort label-4585
SELECT DISTINCT + 90 * - 11 * 54 + + SUM ( DISTINCT - + 99 )
----
-53559

query I rowsort
SELECT + 54 + + 99 * - 69 AS col1
----
-6777

query I rowsort
SELECT ALL 23 + + 7 * + 84 AS col2
----
611

onlyif mysql # aggregate syntax: 
query I rowsort label-4588
SELECT COUNT( * ) * - COUNT( * ) + 89
----
88

skipif mysql # not compatible
query I rowsort label-4588
SELECT COUNT ( * ) * - COUNT ( * ) + 89
----
88

query I rowsort
SELECT 19 + + 37 AS col0
----
56

query I rowsort
SELECT DISTINCT + 19 * + 62
----
1178

query I rowsort
SELECT ALL - 47 + + 92 AS col0
----
45

query I rowsort
SELECT 9 + - 67 col0
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-4593
SELECT ALL + ( + 77 ) + COALESCE ( + 36, - 55 - - 74 + - + NULLIF ( COUNT( * ), - 0 + + 41 ) - + + COUNT( * ) + - 17 )
----
113

skipif mysql # not compatible
query I rowsort label-4593
SELECT ALL + ( + 77 ) + COALESCE ( + 36, - 55 - - 74 + - + NULLIF ( COUNT ( * ), - 0 + + 41 ) - + + COUNT ( * ) + - 17 )
----
113

query I rowsort
SELECT 19 + + 96 + + 81 * - 46 AS col1
----
-3611

query I rowsort
SELECT DISTINCT + 29 - 72
----
-43

query I rowsort
SELECT 15 + - 73
----
-58

query I rowsort
SELECT 18 * 28 * + - ( 81 )
----
-40824

query I rowsort
SELECT 40 + - 34
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-4599
SELECT - + COUNT( ALL - + 64 )
----
-1

skipif mysql # not compatible
query I rowsort label-4599
SELECT - + COUNT ( ALL - + 64 )
----
-1

query II rowsort
SELECT ALL - 55, 67 + 35 AS col0
----
-55
102

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4601
SELECT 45 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4601
SELECT 45 * CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 22 + - - 66 AS col0
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-4603
SELECT COUNT( * ) * - 42
----
-42

skipif mysql # not compatible
query I rowsort label-4603
SELECT COUNT ( * ) * - 42
----
-42

onlyif mysql # DIV for integer division: 
query I rowsort label-4604
SELECT DISTINCT 23 DIV + 12 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4604
SELECT DISTINCT 23 / + 12 AS col2
----
1

query I rowsort
SELECT ALL - 44 + - 46 AS col0
----
-90

onlyif mysql # DIV for integer division: 
query I rowsort label-4606
SELECT DISTINCT - 85 DIV + 85
----
-1

skipif mysql # not compatible
query I rowsort label-4606
SELECT DISTINCT - 85 / + 85
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4607
SELECT ALL - + SUM( - 19 ) AS col1
----
19

skipif mysql # not compatible
query I rowsort label-4607
SELECT ALL - + SUM ( - 19 ) AS col1
----
19

onlyif mysql # aggregate syntax: 
query II rowsort label-4608
SELECT - COALESCE ( - 13, + 27 ) * - 44 * - 58 * - - 83, 49 * + ( + + 38 ) + 79 * - COUNT( * ) AS col1
----
2753608
1783

skipif mysql # not compatible
query II rowsort label-4608
SELECT - COALESCE ( - 13, + 27 ) * - 44 * - 58 * - - 83, 49 * + ( + + 38 ) + 79 * - COUNT ( * ) AS col1
----
2753608
1783

query I rowsort
SELECT ALL - 94 * + 53 AS col2
----
-4982

query I rowsort
SELECT ALL 94 + 72 + - 6 + - - 31
----
191

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4611
SELECT ALL - - CAST( COUNT( * ) AS SIGNED ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4611
SELECT ALL - - CAST ( COUNT ( * ) AS INTEGER ) AS col0
----
1

query I rowsort
SELECT DISTINCT + 61 + 92
----
153

onlyif mysql # aggregate syntax: 
query II rowsort label-4613
SELECT DISTINCT - 50 + + 19 + - COUNT( * ) AS col1, - 39 AS col0
----
-32
-39

skipif mysql # not compatible
query II rowsort label-4613
SELECT DISTINCT - 50 + + 19 + - COUNT ( * ) AS col1, - 39 AS col0
----
-32
-39

query I rowsort
SELECT + 61 * 88
----
5368

onlyif mysql # aggregate syntax: 
query II rowsort label-4615
SELECT + 82, ( 99 ) * + COUNT( - 72 ) AS col1
----
82
99

skipif mysql # not compatible
query II rowsort label-4615
SELECT + 82, ( 99 ) * + COUNT ( - 72 ) AS col1
----
82
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4616
SELECT ALL ( + COUNT( * ) ) + + 2 AS col2
----
3

skipif mysql # not compatible
query I rowsort label-4616
SELECT ALL ( + COUNT ( * ) ) + + 2 AS col2
----
3

query I rowsort
SELECT ( - + 57 ) * + ( + + 70 ) AS col0
----
-3990

onlyif mysql # aggregate syntax: 
query I rowsort label-4618
SELECT ALL COUNT( * ) * 88 * + - ( MIN( DISTINCT 54 ) )
----
-4752

skipif mysql # not compatible
query I rowsort label-4618
SELECT ALL COUNT ( * ) * 88 * + - ( MIN ( DISTINCT 54 ) )
----
-4752

onlyif mysql # aggregate syntax: 
query I rowsort label-4619
SELECT DISTINCT + SUM( ALL - - 49 ) - 43 + - ( - 92 ) AS col2
----
98

skipif mysql # not compatible
query I rowsort label-4619
SELECT DISTINCT + SUM ( ALL - - 49 ) - 43 + - ( - 92 ) AS col2
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-4620
SELECT + MAX( DISTINCT + + 88 )
----
88

skipif mysql # not compatible
query I rowsort label-4620
SELECT + MAX ( DISTINCT + + 88 )
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-4621
SELECT ALL ( COUNT( * ) ) - - 73 - + COUNT( * ) AS col1
----
73

skipif mysql # not compatible
query I rowsort label-4621
SELECT ALL ( COUNT ( * ) ) - - 73 - + COUNT ( * ) AS col1
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-4622
SELECT COUNT( * ) + 3 AS col2
----
4

skipif mysql # not compatible
query I rowsort label-4622
SELECT COUNT ( * ) + 3 AS col2
----
4

query I rowsort
SELECT 18 + - 59 AS col0
----
-41

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4624
SELECT 53 DIV - COALESCE ( - SUM( ALL 90 ), + - 11 )
----
0

skipif mysql # not compatible
query I rowsort label-4624
SELECT 53 / - COALESCE ( - SUM ( ALL 90 ), + - 11 )
----
0

query I rowsort
SELECT 24 * ( - 65 ) * + + 81
----
-126360

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4626
SELECT DISTINCT - CASE - MAX( DISTINCT - + 53 ) WHEN - 1 THEN NULL WHEN + CAST( NULL AS SIGNED ) THEN NULL ELSE - 76 + - + CAST( - - CAST( 53 AS SIGNED ) AS SIGNED ) END * - 16
----
-2064

skipif mysql # not compatible
query I rowsort label-4626
SELECT DISTINCT - CASE - MAX ( DISTINCT - + 53 ) WHEN - 1 THEN NULL WHEN + CAST ( NULL AS INTEGER ) THEN NULL ELSE - 76 + - + CAST ( - - CAST ( 53 AS INTEGER ) AS INTEGER ) END * - 16
----
-2064

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4627
SELECT - MAX( - CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4627
SELECT - MAX ( - CAST ( NULL AS REAL ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4628
SELECT ALL + 7 * - COUNT( * ) * 46
----
-322

skipif mysql # not compatible
query I rowsort label-4628
SELECT ALL + 7 * - COUNT ( * ) * 46
----
-322

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4629
SELECT ALL 15, CAST( NULL AS SIGNED ) + + 70 AS col0
----
15
NULL

skipif mysql # not compatible
query II rowsort label-4629
SELECT ALL 15, CAST ( NULL AS INTEGER ) + + 70 AS col0
----
15
NULL

query I rowsort
SELECT 43 - + 69 + - - 46 + + 63 * 72 AS col2
----
4556

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4631
SELECT ALL 3 * - - CAST( 34 AS SIGNED )
----
102

skipif mysql # not compatible
query I rowsort label-4631
SELECT ALL 3 * - - CAST ( 34 AS INTEGER )
----
102

onlyif mysql # aggregate syntax: 
query I rowsort label-4632
SELECT DISTINCT CASE - + 42 WHEN - ( + MIN( ( 78 ) ) ) THEN + 43 + CASE - 93 WHEN - - 79 / 50 THEN + 99 ELSE NULL END + 81 WHEN - 27 THEN NULL WHEN + 79 * COUNT( * ) - COUNT( * ) THEN NULL ELSE + + 79 END * - COUNT( * )
----
-79

skipif mysql # not compatible
query I rowsort label-4632
SELECT DISTINCT CASE - + 42 WHEN - ( + MIN ( ( 78 ) ) ) THEN + 43 + CASE - 93 WHEN - - 79 / 50 THEN + 99 ELSE NULL END + 81 WHEN - 27 THEN NULL WHEN + 79 * COUNT ( * ) - COUNT ( * ) THEN NULL ELSE + + 79 END * - COUNT ( * )
----
-79

onlyif mysql # aggregate syntax: 
query II rowsort label-4633
SELECT ALL MAX( DISTINCT - - 96 ) col1, + MAX( ALL + 26 ) * 62
----
96
1612

skipif mysql # not compatible
query II rowsort label-4633
SELECT ALL MAX ( DISTINCT - - 96 ) col1, + MAX ( ALL + 26 ) * 62
----
96
1612

query II rowsort
SELECT - 40 AS col2, 76 AS col1
----
-40
76

query I rowsort
SELECT DISTINCT + ( - 41 ) + 54
----
13

query I rowsort
SELECT - ( + 74 ) * + 25
----
-1850

onlyif mysql # aggregate syntax: 
query I rowsort label-4637
SELECT ALL + - 65 + + COUNT( + 8 ) AS col1
----
-64

skipif mysql # not compatible
query I rowsort label-4637
SELECT ALL + - 65 + + COUNT ( + 8 ) AS col1
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-4638
SELECT 70 * + - 91 * - + 38 * + 40 + + - SUM( DISTINCT - 11 ) + 18 - - - 66 - 93 * + 65 * ( 64 ) * 55
----
-11596037

skipif mysql # not compatible
query I rowsort label-4638
SELECT 70 * + - 91 * - + 38 * + 40 + + - SUM ( DISTINCT - 11 ) + 18 - - - 66 - 93 * + 65 * ( 64 ) * 55
----
-11596037

onlyif mysql # aggregate syntax: 
query I rowsort label-4639
SELECT DISTINCT - 45 + - - COALESCE ( - - 54, + CASE WHEN ( NULL ) IS NULL THEN + - ( ( COUNT( * ) ) ) ELSE NULL END )
----
9

skipif mysql # not compatible
query I rowsort label-4639
SELECT DISTINCT - 45 + - - COALESCE ( - - 54, + CASE WHEN ( NULL ) IS NULL THEN + - ( ( COUNT ( * ) ) ) ELSE NULL END )
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4640
SELECT DISTINCT - COALESCE ( 14, - ( - - CAST( NULL AS SIGNED ) ) + 46, 8 ) * - + 3 + 89 + + MAX( - COALESCE ( - - 8, 17 ) ) AS col0
----
123

skipif mysql # not compatible
query I rowsort label-4640
SELECT DISTINCT - COALESCE ( 14, - ( - - CAST ( NULL AS INTEGER ) ) + 46, 8 ) * - + 3 + 89 + + MAX ( - COALESCE ( - - 8, 17 ) ) AS col0
----
123

query I rowsort
SELECT ALL 39 * 29
----
1131

onlyif mysql # aggregate syntax: 
query I rowsort label-4642
SELECT DISTINCT COALESCE ( - + MAX( DISTINCT - 20 ), + COUNT( * ) ) * 79 + - + 89 + + 15 * - - 84
----
2751

skipif mysql # not compatible
query I rowsort label-4642
SELECT DISTINCT COALESCE ( - + MAX ( DISTINCT - 20 ), + COUNT ( * ) ) * 79 + - + 89 + + 15 * - - 84
----
2751

onlyif mysql # aggregate syntax: 
query I rowsort label-4643
SELECT + + 28 * - + COUNT( * ) * + 54 * + + 36 + 15 + - 80 col1
----
-54497

skipif mysql # not compatible
query I rowsort label-4643
SELECT + + 28 * - + COUNT ( * ) * + 54 * + + 36 + 15 + - 80 col1
----
-54497

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4644
SELECT ALL + + CAST( NULL AS SIGNED ), CAST( NULL AS SIGNED )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-4644
SELECT ALL + + CAST ( NULL AS INTEGER ), CAST ( NULL AS INTEGER )
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4645
SELECT ALL + 98, 81 * + COUNT( * ) + + 41 - - + 92 + - - 95 col0
----
98
309

skipif mysql # not compatible
query II rowsort label-4645
SELECT ALL + 98, 81 * + COUNT ( * ) + + 41 - - + 92 + - - 95 col0
----
98
309

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4646
SELECT COUNT( - ( + CAST( NULL AS SIGNED ) ) ) DIV + + 45 + + 53 + + COUNT( * ) AS col0
----
54

skipif mysql # not compatible
query I rowsort label-4646
SELECT COUNT ( - ( + CAST ( NULL AS INTEGER ) ) ) / + + 45 + + 53 + + COUNT ( * ) AS col0
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-4647
SELECT + - COUNT( DISTINCT - 98 ) * - CASE - 3 WHEN - 39 - - + 68 THEN COUNT( * ) END + COUNT( * ) * + MAX( - 29 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4647
SELECT + - COUNT ( DISTINCT - 98 ) * - CASE - 3 WHEN - 39 - - + 68 THEN COUNT ( * ) END + COUNT ( * ) * + MAX ( - 29 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4648
SELECT - MIN( ALL - - 8 ) * - + 16 AS col2
----
128

skipif mysql # not compatible
query I rowsort label-4648
SELECT - MIN ( ALL - - 8 ) * - + 16 AS col2
----
128

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4649
SELECT - + CAST( MIN( - 67 ) AS SIGNED ) + 6
----
73

skipif mysql # not compatible
query I rowsort label-4649
SELECT - + CAST ( MIN ( - 67 ) AS INTEGER ) + 6
----
73

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4650
SELECT ALL - ( + COALESCE ( 16, + + 68 DIV + - 80 DIV - CAST( NULL AS SIGNED ) ) ) * + ( + ( + + 34 ) ) * + 79 + + + 85 DIV + 59
----
-42975

skipif mysql # not compatible
query I rowsort label-4650
SELECT ALL - ( + COALESCE ( 16, + + 68 / + - 80 / - CAST ( NULL AS INTEGER ) ) ) * + ( + ( + + 34 ) ) * + 79 + + + 85 / + 59
----
-42975

onlyif mysql # aggregate syntax: 
query I rowsort label-4651
SELECT + MAX( + COALESCE ( - 89, + + 86 ) ) AS col2
----
-89

skipif mysql # not compatible
query I rowsort label-4651
SELECT + MAX ( + COALESCE ( - 89, + + 86 ) ) AS col2
----
-89

onlyif mysql # DIV for integer division: 
query I rowsort label-4652
SELECT ALL 23 DIV + 70 * + 40 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4652
SELECT ALL 23 / + 70 * + 40 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4653
SELECT + MAX( 48 )
----
48

skipif mysql # not compatible
query I rowsort label-4653
SELECT + MAX ( 48 )
----
48

query I rowsort
SELECT + 64 + + - 30
----
34

query I rowsort
SELECT 84 * + 79 + - 17 * + 12 + 13 col1
----
6445

onlyif mysql # aggregate syntax: 
query II rowsort label-4656
SELECT MIN( DISTINCT + - 37 ) AS col0, + SUM( - 79 ) AS col2
----
-37
-79

skipif mysql # not compatible
query II rowsort label-4656
SELECT MIN ( DISTINCT + - 37 ) AS col0, + SUM ( - 79 ) AS col2
----
-37
-79

query I rowsort
SELECT 20 * - 65 + - 39
----
-1339

query I rowsort
SELECT ALL 16 * - 34 * - 86 col0
----
46784

query I rowsort
SELECT + 22 * - 91
----
-2002

onlyif mysql # aggregate syntax: 
query I rowsort label-4660
SELECT + 27 * - COUNT( * ) * COUNT( * ) AS col2
----
-27

skipif mysql # not compatible
query I rowsort label-4660
SELECT + 27 * - COUNT ( * ) * COUNT ( * ) AS col2
----
-27

query II rowsort
SELECT + 98 + 10 AS col1, + ( + 42 ) AS col1
----
108
42

query I rowsort
SELECT DISTINCT 62 * - - 35
----
2170

onlyif mysql # DIV for integer division: 
query I rowsort label-4663
SELECT DISTINCT - 39 DIV - 45
----
0

skipif mysql # not compatible
query I rowsort label-4663
SELECT DISTINCT - 39 / - 45
----
0

query I rowsort
SELECT - ( 71 ) col2
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-4665
SELECT - ( COUNT( ALL + 43 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-4665
SELECT - ( COUNT ( ALL + 43 ) )
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4666
SELECT ALL - CASE + 10 WHEN NULLIF ( + COUNT( * ), - MIN( DISTINCT - 14 ) ) THEN NULL WHEN 34 * - - 1 + - + 18 THEN ( - ( + - 14 ) ) ELSE + 17 + + 24 + - 80 END DIV ( 34 ) AS col1, - 99 + + COUNT( * )
----
1
-98

skipif mysql # not compatible
query II rowsort label-4666
SELECT ALL - CASE + 10 WHEN NULLIF ( + COUNT ( * ), - MIN ( DISTINCT - 14 ) ) THEN NULL WHEN 34 * - - 1 + - + 18 THEN ( - ( + - 14 ) ) ELSE + 17 + + 24 + - 80 END / ( 34 ) AS col1, - 99 + + COUNT ( * )
----
1
-98

query I rowsort
SELECT - 99 * - 18 AS col0
----
1782

query I rowsort
SELECT + COALESCE ( 81, + 42 ) * + + 11 * - 58
----
-51678

onlyif mysql # aggregate syntax: 
query I rowsort label-4669
SELECT ALL 27 + - COUNT( * ) AS col0
----
26

skipif mysql # not compatible
query I rowsort label-4669
SELECT ALL 27 + - COUNT ( * ) AS col0
----
26

query I rowsort
SELECT ALL + NULLIF ( + 92, + 11 + - 75 - - 60 + + 63 ) AS col2
----
92

query III rowsort
SELECT ALL - 16 + - 35, - 23 * + 16 + - 88 AS col1, - + 59 AS col1
----
-51
-456
-59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4672
SELECT ALL + - 25 + - - 11 + + 98 + + 75 + + 49 + + 73 * + 78 * + COUNT( * ) + + CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4672
SELECT ALL + - 25 + - - 11 + + 98 + + 75 + + 49 + + 73 * + 78 * + COUNT ( * ) + + CAST ( NULL AS INTEGER ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4673
SELECT + - MAX( ALL - 1 ) * 79
----
79

skipif mysql # not compatible
query I rowsort label-4673
SELECT + - MAX ( ALL - 1 ) * 79
----
79

query I rowsort
SELECT - 16 + - 75 AS col1
----
-91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4675
SELECT ALL - 45 DIV - 31 - - + COALESCE ( 93, - MIN( - + 58 ) * + + SUM( 73 ) ) AS col0
----
94

skipif mysql # not compatible
query I rowsort label-4675
SELECT ALL - 45 / - 31 - - + COALESCE ( 93, - MIN ( - + 58 ) * + + SUM ( 73 ) ) AS col0
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-4676
SELECT ALL + - MAX( DISTINCT + 12 )
----
-12

skipif mysql # not compatible
query I rowsort label-4676
SELECT ALL + - MAX ( DISTINCT + 12 )
----
-12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4677
SELECT DISTINCT + ( - CAST( - NULLIF ( - + CAST( - 97 AS SIGNED ), + 57 * + 55 ) AS SIGNED ) ) AS col2
----
97

skipif mysql # not compatible
query I rowsort label-4677
SELECT DISTINCT + ( - CAST ( - NULLIF ( - + CAST ( - 97 AS INTEGER ), + 57 * + 55 ) AS INTEGER ) ) AS col2
----
97

query I rowsort
SELECT ALL - ( + 70 ) * + + 0
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4679
SELECT ALL + 72 DIV + 80 - 7 + 0 + + 62 * CAST( NULLIF ( + 23, + 68 ) AS SIGNED ) * - 20 AS col2
----
-28527

skipif mysql # not compatible
query I rowsort label-4679
SELECT ALL + 72 / + 80 - 7 + 0 + + 62 * CAST ( NULLIF ( + 23, + 68 ) AS INTEGER ) * - 20 AS col2
----
-28527

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4680
SELECT ALL + CAST( + + 53 AS SIGNED ) AS col0
----
53

skipif mysql # not compatible
query I rowsort label-4680
SELECT ALL + CAST ( + + 53 AS INTEGER ) AS col0
----
53

query II rowsort
SELECT + 80, 94 * + - 6 AS col1
----
80
-564

onlyif mysql # DIV for integer division: 
query II rowsort label-4682
SELECT ALL + 33 DIV + NULLIF ( + + 60, + + ( 28 ) + + 99 + + 4 ) - + - 50 AS col1, 86
----
50
86

skipif mysql # not compatible
query II rowsort label-4682
SELECT ALL + 33 / + NULLIF ( + + 60, + + ( 28 ) + + 99 + + 4 ) - + - 50 AS col1, 86
----
50
86

onlyif mysql # aggregate syntax: 
query I rowsort label-4683
SELECT + MAX( DISTINCT + 80 )
----
80

skipif mysql # not compatible
query I rowsort label-4683
SELECT + MAX ( DISTINCT + 80 )
----
80

query I rowsort
SELECT DISTINCT + ( + 37 ) AS col2
----
37

onlyif mysql # DIV for integer division: 
query I rowsort label-4685
SELECT - 58 DIV + COALESCE ( + 43, - COALESCE ( 70, + 78 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-4685
SELECT - 58 / + COALESCE ( + 43, - COALESCE ( 70, + 78 ) )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4686
SELECT ALL + CAST( - 37 AS SIGNED )
----
-37

skipif mysql # not compatible
query I rowsort label-4686
SELECT ALL + CAST ( - 37 AS INTEGER )
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-4687
SELECT DISTINCT + COUNT( DISTINCT - ( - 8 ) )
----
1

skipif mysql # not compatible
query I rowsort label-4687
SELECT DISTINCT + COUNT ( DISTINCT - ( - 8 ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4688
SELECT - 4 * SUM( - + 23 )
----
92

skipif mysql # not compatible
query I rowsort label-4688
SELECT - 4 * SUM ( - + 23 )
----
92

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4689
SELECT + COUNT( * ) DIV + - 45
----
0

skipif mysql # not compatible
query I rowsort label-4689
SELECT + COUNT ( * ) / + - 45
----
0

query II rowsort
SELECT ALL + 73 AS col1, 27 * - 55 + - + 91 AS col2
----
73
-1576

onlyif mysql # aggregate syntax: 
query I rowsort label-4691
SELECT NULLIF ( 90, - 85 + 22 - + + 97 + - 68 + - COUNT( * ) * + 22 + + + 42 ) AS col0
----
90

skipif mysql # not compatible
query I rowsort label-4691
SELECT NULLIF ( 90, - 85 + 22 - + + 97 + - 68 + - COUNT ( * ) * + 22 + + + 42 ) AS col0
----
90

query I rowsort
SELECT ALL 68 * - 10 AS col2
----
-680

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4693
SELECT ALL + CAST( + COUNT( ALL - 46 ) AS SIGNED ) DIV + 15 + + 68
----
68

skipif mysql # not compatible
query I rowsort label-4693
SELECT ALL + CAST ( + COUNT ( ALL - 46 ) AS INTEGER ) / + 15 + + 68
----
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4694
SELECT + COUNT( DISTINCT - 95 ) / - MIN( + 52 ) * + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4694
SELECT + COUNT ( DISTINCT - 95 ) / - MIN ( + 52 ) * + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4695
SELECT + COALESCE ( + + MAX( ALL - 34 ), + - 23 + - - 33 ) col1
----
-34

skipif mysql # not compatible
query I rowsort label-4695
SELECT + COALESCE ( + + MAX ( ALL - 34 ), + - 23 + - - 33 ) col1
----
-34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4696
SELECT + ( - CASE CAST( NULL AS SIGNED ) WHEN COUNT( * ) THEN NULL WHEN + + AVG ( - 46 ) THEN - ( + 53 ) * - CAST( - + 27 AS SIGNED ) END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4696
SELECT + ( - CASE CAST ( NULL AS INTEGER ) WHEN COUNT ( * ) THEN NULL WHEN + + AVG ( - 46 ) THEN - ( + 53 ) * - CAST ( - + 27 AS INTEGER ) END ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4697
SELECT - COUNT( * ) + 42 DIV + - COUNT( * ), MAX( DISTINCT - - 83 ) * - 82 col0
----
-43
-6806

skipif mysql # not compatible
query II rowsort label-4697
SELECT - COUNT ( * ) + 42 / + - COUNT ( * ), MAX ( DISTINCT - - 83 ) * - 82 col0
----
-43
-6806

onlyif mysql # aggregate syntax: 
query I rowsort label-4698
SELECT DISTINCT 88 * + COUNT( * ) + 93
----
181

skipif mysql # not compatible
query I rowsort label-4698
SELECT DISTINCT 88 * + COUNT ( * ) + 93
----
181

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4699
SELECT + - CAST( NULL AS DECIMAL ) + - 41 / - 94 + + ( + 1 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4699
SELECT + - CAST ( NULL AS REAL ) + - 41 / - 94 + + ( + 1 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4700
SELECT DISTINCT 31 * COUNT( * ) + + 83
----
114

skipif mysql # not compatible
query I rowsort label-4700
SELECT DISTINCT 31 * COUNT ( * ) + + 83
----
114

query I rowsort
SELECT + 55 + 88
----
143

onlyif mysql # aggregate syntax: 
query II rowsort label-4702
SELECT ALL - COUNT( * ) col0, 76 + 89 AS col2
----
-1
165

skipif mysql # not compatible
query II rowsort label-4702
SELECT ALL - COUNT ( * ) col0, 76 + 89 AS col2
----
-1
165

onlyif mysql # aggregate syntax: 
query I rowsort label-4703
SELECT + MIN( ALL 59 ) * - 1
----
-59

skipif mysql # not compatible
query I rowsort label-4703
SELECT + MIN ( ALL 59 ) * - 1
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-4704
SELECT ALL ( - NULLIF ( - - COUNT( * ), - - 1 ) ) + - + 4 / + 32
----
NULL

skipif mysql # not compatible
query I rowsort label-4704
SELECT ALL ( - NULLIF ( - - COUNT ( * ), - - 1 ) ) + - + 4 / + 32
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4705
SELECT ALL + 87 + - 0 + + 54 + NULLIF ( 24, + 34 ) - - COUNT( * ) * - 43 AS col2
----
122

skipif mysql # not compatible
query I rowsort label-4705
SELECT ALL + 87 + - 0 + + 54 + NULLIF ( 24, + 34 ) - - COUNT ( * ) * - 43 AS col2
----
122

onlyif mysql # DIV for integer division: 
query I rowsort label-4706
SELECT DISTINCT - 23 DIV 25
----
0

skipif mysql # not compatible
query I rowsort label-4706
SELECT DISTINCT - 23 / 25
----
0

query I rowsort
SELECT ALL - 7 * 70 - + 82 * - + 96
----
7382

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4708
SELECT - 30 DIV + - 39 * - CAST( COUNT( * ) AS SIGNED ) * - COUNT( * ) + + 96 AS col1
----
96

skipif mysql # not compatible
query I rowsort label-4708
SELECT - 30 / + - 39 * - CAST ( COUNT ( * ) AS INTEGER ) * - COUNT ( * ) + + 96 AS col1
----
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4709
SELECT ALL + COALESCE ( + ( + 30 ), + + COUNT( * ) * - 48, + + 32 ) - - 54 * CAST( NULL AS SIGNED ) / 38
----
NULL

skipif mysql # not compatible
query I rowsort label-4709
SELECT ALL + COALESCE ( + ( + 30 ), + + COUNT ( * ) * - 48, + + 32 ) - - 54 * CAST ( NULL AS INTEGER ) / 38
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4710
SELECT 55 - - COUNT( * )
----
56

skipif mysql # not compatible
query I rowsort label-4710
SELECT 55 - - COUNT ( * )
----
56

query II rowsort
SELECT - + 71 AS col2, + 77
----
-71
77

query I rowsort
SELECT DISTINCT 45 * + 86 * + + 14
----
54180

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4713
SELECT COUNT( * ) DIV + 16 + - 60 + - 80 * - + 89
----
7060

skipif mysql # not compatible
query I rowsort label-4713
SELECT COUNT ( * ) / + 16 + - 60 + - 80 * - + 89
----
7060

query I rowsort
SELECT ALL - 11 * - 26
----
286

onlyif mysql # DIV for integer division: 
query I rowsort label-4715
SELECT DISTINCT + 38 DIV - 64
----
0

skipif mysql # not compatible
query I rowsort label-4715
SELECT DISTINCT + 38 / - 64
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4716
SELECT DISTINCT 88 * + 82 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4716
SELECT DISTINCT 88 * + 82 * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4717
SELECT ALL - MIN( ALL - 61 ), 38 AS col2
----
61
38

skipif mysql # not compatible
query II rowsort label-4717
SELECT ALL - MIN ( ALL - 61 ), 38 AS col2
----
61
38

onlyif mysql # DIV for integer division: 
query I rowsort label-4718
SELECT - 23 DIV + 33 + - 71 AS col0
----
-71

skipif mysql # not compatible
query I rowsort label-4718
SELECT - 23 / + 33 + - 71 AS col0
----
-71

query I rowsort
SELECT 44 - - 15 * - - 26 AS col0
----
434

query I rowsort
SELECT 47 * + 70 * - + 58
----
-190820

onlyif mysql # aggregate syntax: 
query I rowsort label-4721
SELECT COUNT( * ) + - 28 + - 65 AS col2
----
-92

skipif mysql # not compatible
query I rowsort label-4721
SELECT COUNT ( * ) + - 28 + - 65 AS col2
----
-92

query I rowsort
SELECT 34 + + 86 + + 68 + - 11 AS col1
----
177

query I rowsort
SELECT 37 * - + ( + + 20 )
----
-740

onlyif mysql # aggregate syntax: 
query I rowsort label-4724
SELECT DISTINCT - MIN( + 87 )
----
-87

skipif mysql # not compatible
query I rowsort label-4724
SELECT DISTINCT - MIN ( + 87 )
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-4725
SELECT ALL - 94 + COUNT( * ) * - - 87 AS col1
----
-7

skipif mysql # not compatible
query I rowsort label-4725
SELECT ALL - 94 + COUNT ( * ) * - - 87 AS col1
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-4726
SELECT COUNT( ALL + 56 ) * + 72 + + + 72
----
144

skipif mysql # not compatible
query I rowsort label-4726
SELECT COUNT ( ALL + 56 ) * + 72 + + + 72
----
144

onlyif mysql # aggregate syntax: 
query I rowsort label-4727
SELECT DISTINCT + SUM( - + 27 ) * - COUNT( * ) * + 83
----
2241

skipif mysql # not compatible
query I rowsort label-4727
SELECT DISTINCT + SUM ( - + 27 ) * - COUNT ( * ) * + 83
----
2241

onlyif mysql # aggregate syntax: 
query I rowsort label-4728
SELECT 63 + - + 32 * - CASE CASE - 76 WHEN - 50 THEN + - 53 WHEN COUNT( * ) * - 85 THEN NULL WHEN 22 THEN NULL END WHEN 50 THEN + - 23 + - + 90 + - 75 + - + ( - 83 ) - 17 + + 11 * - 75 + 49 * - 36 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4728
SELECT 63 + - + 32 * - CASE CASE - 76 WHEN - 50 THEN + - 53 WHEN COUNT ( * ) * - 85 THEN NULL WHEN 22 THEN NULL END WHEN 50 THEN + - 23 + - + 90 + - 75 + - + ( - 83 ) - 17 + + 11 * - 75 + 49 * - 36 ELSE NULL END
----
NULL

query I rowsort
SELECT ALL + 49 * 30 AS col0
----
1470

onlyif mysql # aggregate syntax: 
query I rowsort label-4730
SELECT ALL - 94 + - COUNT( * )
----
-95

skipif mysql # not compatible
query I rowsort label-4730
SELECT ALL - 94 + - COUNT ( * )
----
-95

query II rowsort
SELECT 79 + - 37 AS col0, - 37 AS col1
----
42
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-4732
SELECT 53 * CASE + COALESCE ( + AVG ( - 56 ), 99 + 97 ) WHEN - COUNT( * ) - - + 54 * + ( + 50 ) THEN - ( - 6 ) WHEN - 53 * - COUNT( * ) - - COUNT( * ) * + 72 * - 54 THEN + - 90 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4732
SELECT 53 * CASE + COALESCE ( + AVG ( - 56 ), 99 + 97 ) WHEN - COUNT ( * ) - - + 54 * + ( + 50 ) THEN - ( - 6 ) WHEN - 53 * - COUNT ( * ) - - COUNT ( * ) * + 72 * - 54 THEN + - 90 ELSE NULL END
----
NULL

query I rowsort
SELECT ALL - NULLIF ( + 26, + + 97 ) AS col2
----
-26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4734
SELECT DISTINCT - CAST( NULL AS SIGNED ) + 11 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4734
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + 11 col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4735
SELECT DISTINCT + + 17 DIV - + ( 45 ) + - 13
----
-13

skipif mysql # not compatible
query I rowsort label-4735
SELECT DISTINCT + + 17 / - + ( 45 ) + - 13
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-4736
SELECT DISTINCT COALESCE ( + + 93, 6 ) + - 97 + - ( - 74 ) + + ( + COUNT( * ) )
----
71

skipif mysql # not compatible
query I rowsort label-4736
SELECT DISTINCT COALESCE ( + + 93, 6 ) + - 97 + - ( - 74 ) + + ( + COUNT ( * ) )
----
71

query I rowsort
SELECT ALL 5 + 2 + - + 72 AS col2
----
-65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4738
SELECT 14 * - 28 + - - 90 * 91 + - SUM( ALL - - 4 ) + - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4738
SELECT 14 * - 28 + - - 90 * 91 + - SUM ( ALL - - 4 ) + - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4739
SELECT + 14 + + + COUNT( DISTINCT 17 ) + - 15 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4739
SELECT + 14 + + + COUNT ( DISTINCT 17 ) + - 15 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4740
SELECT - 19 * + CAST( - 19 AS SIGNED ) * + - COUNT( * )
----
-361

skipif mysql # not compatible
query I rowsort label-4740
SELECT - 19 * + CAST ( - 19 AS INTEGER ) * + - COUNT ( * )
----
-361

query I rowsort
SELECT DISTINCT - 33 - 13 AS col2
----
-46

query I rowsort
SELECT - ( + - 43 )
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-4743
SELECT DISTINCT + 73 - COUNT( * )
----
72

skipif mysql # not compatible
query I rowsort label-4743
SELECT DISTINCT + 73 - COUNT ( * )
----
72

onlyif mysql # aggregate syntax: 
query II rowsort label-4744
SELECT - 78 + - COALESCE ( + 78, + - COUNT( * ) ) AS col1, - COUNT( * ) * + 1 + + + ( - 18 )
----
-156
-19

skipif mysql # not compatible
query II rowsort label-4744
SELECT - 78 + - COALESCE ( + 78, + - COUNT ( * ) ) AS col1, - COUNT ( * ) * + 1 + + + ( - 18 )
----
-156
-19

onlyif mysql # DIV for integer division: 
query I rowsort label-4745
SELECT 44 + - - COALESCE ( 47, 21 DIV + 10 ) AS col2
----
91

skipif mysql # not compatible
query I rowsort label-4745
SELECT 44 + - - COALESCE ( 47, 21 / + 10 ) AS col2
----
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4746
SELECT ( - + ( + - CAST( NULL AS SIGNED ) ) ) / - COUNT( * ) - - + COUNT( * ) AS col1, 16
----
NULL
16

skipif mysql # not compatible
query II rowsort label-4746
SELECT ( - + ( + - CAST ( NULL AS INTEGER ) ) ) / - COUNT ( * ) - - + COUNT ( * ) AS col1, 16
----
NULL
16

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4747
SELECT CAST( + COALESCE ( - 24, + 25 / - ( + 33 ) ) AS DECIMAL ) + - - 36 + ( + 92 ) + 42 + + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-4747
SELECT CAST ( + COALESCE ( - 24, + 25 / - ( + 33 ) ) AS REAL ) + - - 36 + ( + 92 ) + 42 + + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4748
SELECT ALL CAST( NULL AS SIGNED ) / - + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4748
SELECT ALL CAST ( NULL AS INTEGER ) / - + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4749
SELECT 25 * - - COUNT( * ) + 62
----
87

skipif mysql # not compatible
query I rowsort label-4749
SELECT 25 * - - COUNT ( * ) + 62
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-4750
SELECT ALL 94 * - SUM( + - 52 ) + + + 54 * + 92 AS col1
----
9856

skipif mysql # not compatible
query I rowsort label-4750
SELECT ALL 94 * - SUM ( + - 52 ) + + + 54 * + 92 AS col1
----
9856

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4751
SELECT CAST( NULL AS DECIMAL ) * COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4751
SELECT CAST ( NULL AS REAL ) * COUNT ( * ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4752
SELECT ALL CAST( NULL AS SIGNED ) * - CAST( - + 58 AS SIGNED ) DIV + 63 * 21 col2, 76 * 32 DIV COUNT( * )
----
NULL
2432

skipif mysql # not compatible
query II rowsort label-4752
SELECT ALL CAST ( NULL AS INTEGER ) * - CAST ( - + 58 AS INTEGER ) / + 63 * 21 col2, 76 * 32 / COUNT ( * )
----
NULL
2432

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4753
SELECT ALL NULLIF ( + + 86, 8 * - 85 / + COUNT( * ) * + - 26 * + 73 * - 87 ) * + + CAST( NULL AS SIGNED ) + - 36
----
NULL

skipif mysql # not compatible
query I rowsort label-4753
SELECT ALL NULLIF ( + + 86, 8 * - 85 / + COUNT ( * ) * + - 26 * + 73 * - 87 ) * + + CAST ( NULL AS INTEGER ) + - 36
----
NULL

query II rowsort
SELECT ALL 37 * + 53 + + 86 AS col1, - 39
----
2047
-39

query I rowsort
SELECT ALL 80 * + 8 + + + ( 19 ) col0
----
659

query I rowsort
SELECT 98 * + 62 col2
----
6076

onlyif mysql # aggregate syntax: 
query I rowsort label-4757
SELECT ALL + NULLIF ( - - COUNT( * ), + 20 ) col0
----
1

skipif mysql # not compatible
query I rowsort label-4757
SELECT ALL + NULLIF ( - - COUNT ( * ), + 20 ) col0
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4758
SELECT ALL - COUNT( - 53 ) + - 43, - COUNT( * ) * COUNT( * ) DIV 51 * 98 AS col2
----
-44
0

skipif mysql # not compatible
query II rowsort label-4758
SELECT ALL - COUNT ( - 53 ) + - 43, - COUNT ( * ) * COUNT ( * ) / 51 * 98 AS col2
----
-44
0

query I rowsort
SELECT - 37 * - + 51 AS col2
----
1887

onlyif mysql # aggregate syntax: 
query I rowsort label-4760
SELECT ALL + ( + - MAX( - 58 ) ) * + - 70 col1
----
-4060

skipif mysql # not compatible
query I rowsort label-4760
SELECT ALL + ( + - MAX ( - 58 ) ) * + - 70 col1
----
-4060

onlyif mysql # aggregate syntax: 
query I rowsort label-4761
SELECT ALL + 29 * - COUNT( * ) * - COUNT( * ) - - 16 AS col0
----
45

skipif mysql # not compatible
query I rowsort label-4761
SELECT ALL + 29 * - COUNT ( * ) * - COUNT ( * ) - - 16 AS col0
----
45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4762
SELECT - ( 27 ) * 69 + 55 * - + COALESCE ( + ( + - 98 ), + + COUNT( * ) DIV - 90 * - + SUM( 12 ) + 29 + + - MAX( DISTINCT - 88 ) * - - 32 )
----
3527

skipif mysql # not compatible
query I rowsort label-4762
SELECT - ( 27 ) * 69 + 55 * - + COALESCE ( + ( + - 98 ), + + COUNT ( * ) / - 90 * - + SUM ( 12 ) + 29 + + - MAX ( DISTINCT - 88 ) * - - 32 )
----
3527

onlyif mysql # aggregate syntax: 
query I rowsort label-4763
SELECT + + MIN( ALL + 93 ) AS col0
----
93

skipif mysql # not compatible
query I rowsort label-4763
SELECT + + MIN ( ALL + 93 ) AS col0
----
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4764
SELECT - - CAST( + 74 AS SIGNED ) AS col2
----
74

skipif mysql # not compatible
query I rowsort label-4764
SELECT - - CAST ( + 74 AS INTEGER ) AS col2
----
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4765
SELECT - NULLIF ( + 61, + 22 * + 71 * + CAST( NULL AS SIGNED ) )
----
-61

skipif mysql # not compatible
query I rowsort label-4765
SELECT - NULLIF ( + 61, + 22 * + 71 * + CAST ( NULL AS INTEGER ) )
----
-61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4766
SELECT - CAST( - - 48 AS SIGNED )
----
-48

skipif mysql # not compatible
query I rowsort label-4766
SELECT - CAST ( - - 48 AS INTEGER )
----
-48

query I rowsort
SELECT DISTINCT - 77 - 1
----
-78

onlyif mysql # aggregate syntax: 
query II rowsort label-4768
SELECT ALL 67 AS col1, MIN( DISTINCT + 49 ) + 37
----
67
86

skipif mysql # not compatible
query II rowsort label-4768
SELECT ALL 67 AS col1, MIN ( DISTINCT + 49 ) + 37
----
67
86

onlyif mysql # aggregate syntax: 
query I rowsort label-4769
SELECT ALL ( + COUNT( * ) ) * + 32
----
32

skipif mysql # not compatible
query I rowsort label-4769
SELECT ALL ( + COUNT ( * ) ) * + 32
----
32

query I rowsort
SELECT - - ( - 61 ) * + + 38 + + 49 AS col2
----
-2269

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4771
SELECT + COALESCE ( - - ( - 66 ), + 47 DIV + 83 + - 64, 33 * - 69 ) * COUNT( * ) DIV - 9 AS col0
----
7

skipif mysql # not compatible
query I rowsort label-4771
SELECT + COALESCE ( - - ( - 66 ), + 47 / + 83 + - 64, 33 * - 69 ) * COUNT ( * ) / - 9 AS col0
----
7

query I rowsort
SELECT - 23 - + 46
----
-69

query I rowsort
SELECT DISTINCT + 84 * 73
----
6132

query I rowsort
SELECT ALL 93 + 41 AS col2
----
134

query I rowsort
SELECT - 99 - - 98 AS col1
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4776
SELECT ALL + CASE 32 WHEN 88 THEN + CAST( NULL AS SIGNED ) ELSE + 9 END * + 54
----
486

skipif mysql # not compatible
query I rowsort label-4776
SELECT ALL + CASE 32 WHEN 88 THEN + CAST ( NULL AS INTEGER ) ELSE + 9 END * + 54
----
486

onlyif mysql # DIV for integer division: 
query I rowsort label-4777
SELECT ALL 65 DIV + 52 + + 17 + - 58 + + NULLIF ( + 95, - 93 - + ( + + 64 ) ) + + 50 col2
----
105

skipif mysql # not compatible
query I rowsort label-4777
SELECT ALL 65 / + 52 + + 17 + - 58 + + NULLIF ( + 95, - 93 - + ( + + 64 ) ) + + 50 col2
----
105

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4778
SELECT ALL + COALESCE ( + ( 82 ), + + 33 ) DIV + + 47 - - + COUNT( * ) * 34 - - + COUNT( * ) + + 25 DIV 99 AS col1
----
36

skipif mysql # not compatible
query I rowsort label-4778
SELECT ALL + COALESCE ( + ( 82 ), + + 33 ) / + + 47 - - + COUNT ( * ) * 34 - - + COUNT ( * ) + + 25 / 99 AS col1
----
36

query II rowsort
SELECT ALL + 14 AS col0, 7 * - + 72 * - + 93
----
14
46872

onlyif mysql # aggregate syntax: 
query I rowsort label-4780
SELECT + COUNT( * ) + - + 7
----
-6

skipif mysql # not compatible
query I rowsort label-4780
SELECT + COUNT ( * ) + - + 7
----
-6

query I rowsort
SELECT DISTINCT 86 * - 95
----
-8170

query I rowsort
SELECT ( - ( - + 77 ) ) AS col2
----
77

onlyif mysql # DIV for integer division: 
query I rowsort label-4783
SELECT ALL - 22 DIV - 78 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4783
SELECT ALL - 22 / - 78 AS col0
----
0

query I rowsort
SELECT ALL 80 * - 2
----
-160

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4785
SELECT + CAST( NULL AS SIGNED ) * 71 * - + 73 * + 98 + + 47 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4785
SELECT + CAST ( NULL AS INTEGER ) * 71 * - + 73 * + 98 + + 47 AS col2
----
NULL

query II rowsort
SELECT ALL + 14 AS col0, 89 AS col2
----
14
89

onlyif mysql # aggregate syntax: 
query I rowsort label-4787
SELECT ALL + + SUM( ALL - 61 )
----
-61

skipif mysql # not compatible
query I rowsort label-4787
SELECT ALL + + SUM ( ALL - 61 )
----
-61

query I rowsort
SELECT DISTINCT + 58 * - + 63 AS col2
----
-3654

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4789
SELECT ALL - 0 * + COALESCE ( - 28, - - 40 + 76 * - COUNT( ALL + CAST( NULL AS SIGNED ) ) + + - 81 + - 22 + + + 46 * + ( + + 17 ) ) + - 92 AS col1
----
-92

skipif mysql # not compatible
query I rowsort label-4789
SELECT ALL - 0 * + COALESCE ( - 28, - - 40 + 76 * - COUNT ( ALL + CAST ( NULL AS INTEGER ) ) + + - 81 + - 22 + + + 46 * + ( + + 17 ) ) + - 92 AS col1
----
-92

query I rowsort
SELECT + - 94 * 72 col2
----
-6768

onlyif mysql # aggregate syntax: 
query I rowsort label-4791
SELECT DISTINCT 62 * - 16 + 8 - - 97 + COUNT( * ) + 34 * - 29 * 30
----
-30466

skipif mysql # not compatible
query I rowsort label-4791
SELECT DISTINCT 62 * - 16 + 8 - - 97 + COUNT ( * ) + 34 * - 29 * 30
----
-30466

onlyif mysql # aggregate syntax: 
query I rowsort label-4792
SELECT - 20 * - - 83 + - - 61 + - COUNT( * ) + + 15 AS col2
----
-1585

skipif mysql # not compatible
query I rowsort label-4792
SELECT - 20 * - - 83 + - - 61 + - COUNT ( * ) + + 15 AS col2
----
-1585

query I rowsort
SELECT + 10 * 70 AS col1
----
700

query II rowsort
SELECT ALL + - 49, ( - 69 ) col1
----
-49
-69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4795
SELECT + - 37 + - 6 * - CAST( + 4 AS SIGNED ) AS col0
----
-13

skipif mysql # not compatible
query I rowsort label-4795
SELECT + - 37 + - 6 * - CAST ( + 4 AS INTEGER ) AS col0
----
-13

query II rowsort
SELECT DISTINCT 56 AS col2, 97 * + 36 AS col2
----
56
3492

onlyif mysql # aggregate syntax: 
query I rowsort label-4797
SELECT - + 62 * - 38 + + + COUNT( * ) * + 5 AS col0
----
2361

skipif mysql # not compatible
query I rowsort label-4797
SELECT - + 62 * - 38 + + + COUNT ( * ) * + 5 AS col0
----
2361

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4798
SELECT ALL + 56 AS col0, - ( - + CAST( NULL AS SIGNED ) ) - + AVG ( ALL - 85 )
----
56
NULL

skipif mysql # not compatible
query II rowsort label-4798
SELECT ALL + 56 AS col0, - ( - + CAST ( NULL AS INTEGER ) ) - + AVG ( ALL - 85 )
----
56
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4799
SELECT - + 0 AS col1, - ( - + 39 ) * - COUNT( DISTINCT 84 ) * COUNT( * ) AS col1
----
0
-39

skipif mysql # not compatible
query II rowsort label-4799
SELECT - + 0 AS col1, - ( - + 39 ) * - COUNT ( DISTINCT 84 ) * COUNT ( * ) AS col1
----
0
-39

query I rowsort
SELECT - 82 + + - 22 col0
----
-104

query I rowsort
SELECT DISTINCT - 90 * - + 22 col2
----
1980

query I rowsort
SELECT - 96 + + 19
----
-77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4803
SELECT - 11 DIV - COUNT( * ), NULLIF ( - COALESCE ( - + 25, - - CAST( NULL AS SIGNED ) + 16 ), 52 * + ( 12 ) + + COUNT( * ) + + COUNT( * ) + - 7 + - + 80 * + + 20 * - 19 ) AS col1
----
11
25

skipif mysql # not compatible
query II rowsort label-4803
SELECT - 11 / - COUNT ( * ), NULLIF ( - COALESCE ( - + 25, - - CAST ( NULL AS INTEGER ) + 16 ), 52 * + ( 12 ) + + COUNT ( * ) + + COUNT ( * ) + - 7 + - + 80 * + + 20 * - 19 ) AS col1
----
11
25

query I rowsort
SELECT ALL - 25 + 48
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-4805
SELECT - 23 + + COUNT( * ) * - 52 AS col2
----
-75

skipif mysql # not compatible
query I rowsort label-4805
SELECT - 23 + + COUNT ( * ) * - 52 AS col2
----
-75

query I rowsort
SELECT DISTINCT 29 * + 51
----
1479

query I rowsort
SELECT ALL CASE WHEN NOT - 90 IS NOT NULL THEN - 10 * + - 16 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4808
SELECT - MAX( DISTINCT - 55 ) + - 90 AS col1
----
-35

skipif mysql # not compatible
query I rowsort label-4808
SELECT - MAX ( DISTINCT - 55 ) + - 90 AS col1
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-4809
SELECT - 58 - + CASE + 34 WHEN - COUNT( * ) + - - 95 THEN NULL ELSE - + COUNT( * ) * + + 28 + 6 * + + 29 END AS col0
----
-204

skipif mysql # not compatible
query I rowsort label-4809
SELECT - 58 - + CASE + 34 WHEN - COUNT ( * ) + - - 95 THEN NULL ELSE - + COUNT ( * ) * + + 28 + 6 * + + 29 END AS col0
----
-204

query I rowsort
SELECT ALL COALESCE ( + 96, - 17 )
----
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4811
SELECT DISTINCT + 80 + - CAST( 21 AS SIGNED ) + - 50 AS col0
----
9

skipif mysql # not compatible
query I rowsort label-4811
SELECT DISTINCT + 80 + - CAST ( 21 AS INTEGER ) + - 50 AS col0
----
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4812
SELECT - SUM( DISTINCT 81 ) AS col0, 33 * 35 DIV - + 5
----
-81
-231

skipif mysql # not compatible
query II rowsort label-4812
SELECT - SUM ( DISTINCT 81 ) AS col0, 33 * 35 / - + 5
----
-81
-231

query I rowsort
SELECT ALL + ( - 99 ) + 45
----
-54

query I rowsort
SELECT DISTINCT - 7 + + + 9 + + 94 col2
----
96

query I rowsort
SELECT - 22 * + + 88 AS col1
----
-1936

onlyif mysql # DIV for integer division: 
query I rowsort label-4816
SELECT - 40 DIV - 34 col0
----
1

skipif mysql # not compatible
query I rowsort label-4816
SELECT - 40 / - 34 col0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4817
SELECT ALL CAST( 12 AS SIGNED ) col1
----
12

skipif mysql # not compatible
query I rowsort label-4817
SELECT ALL CAST ( 12 AS INTEGER ) col1
----
12

query I rowsort
SELECT ALL - 36 * 18 * - - 65 AS col2
----
-42120

query I rowsort
SELECT DISTINCT - 18 * 21 * 25
----
-9450

query I rowsort
SELECT 20 * + 59
----
1180

onlyif mysql # aggregate syntax: 
query I rowsort label-4821
SELECT 22 - + + 89 * + 22 + MIN( ALL 64 ) AS col1
----
-1872

skipif mysql # not compatible
query I rowsort label-4821
SELECT 22 - + + 89 * + 22 + MIN ( ALL 64 ) AS col1
----
-1872

onlyif mysql # aggregate syntax: 
query I rowsort label-4822
SELECT - MIN( ALL - - 18 )
----
-18

skipif mysql # not compatible
query I rowsort label-4822
SELECT - MIN ( ALL - - 18 )
----
-18

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4823
SELECT + 64 * + COUNT( * ) AS col0, 64 - 45 DIV + 65 AS col0
----
64
64

skipif mysql # not compatible
query II rowsort label-4823
SELECT + 64 * + COUNT ( * ) AS col0, 64 - 45 / + 65 AS col0
----
64
64

onlyif mysql # aggregate syntax: 
query II rowsort label-4824
SELECT DISTINCT - COUNT( * ) * 60 AS col0, + ( ( - 48 ) ) + + COUNT( * ) * ( - 73 ) AS col2
----
-60
-121

skipif mysql # not compatible
query II rowsort label-4824
SELECT DISTINCT - COUNT ( * ) * 60 AS col0, + ( ( - 48 ) ) + + COUNT ( * ) * ( - 73 ) AS col2
----
-60
-121

onlyif mysql # aggregate syntax: 
query I rowsort label-4825
SELECT DISTINCT - + MAX( - 27 ) AS col0
----
27

skipif mysql # not compatible
query I rowsort label-4825
SELECT DISTINCT - + MAX ( - 27 ) AS col0
----
27

onlyif mysql # DIV for integer division: 
query I rowsort label-4826
SELECT DISTINCT - - 5 DIV + + 88 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4826
SELECT DISTINCT - - 5 / + + 88 AS col2
----
0

query I rowsort
SELECT + 30 * + 43 AS col2
----
1290

onlyif mysql # aggregate syntax: 
query I rowsort label-4828
SELECT 68 * COALESCE ( + MIN( ALL 95 ), - ( + 20 ) + + 50 ) AS col0
----
6460

skipif mysql # not compatible
query I rowsort label-4828
SELECT 68 * COALESCE ( + MIN ( ALL 95 ), - ( + 20 ) + + 50 ) AS col0
----
6460

query I rowsort
SELECT + COALESCE ( + 76, + 3 ) * - 16 + - 18 - + + 97
----
-1331

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4830
SELECT 7 - + CAST( - ( 81 ) AS DECIMAL ) / + - 43 * + CASE 95 WHEN + COUNT( * ) THEN 88 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4830
SELECT 7 - + CAST ( - ( 81 ) AS REAL ) / + - 43 * + CASE 95 WHEN + COUNT ( * ) THEN 88 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4831
SELECT - COUNT( + - 65 ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-4831
SELECT - COUNT ( + - 65 ) col0
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4832
SELECT ALL 68 + - 50 AS col0, - 62 DIV + COUNT( * )
----
18
-62

skipif mysql # not compatible
query II rowsort label-4832
SELECT ALL 68 + - 50 AS col0, - 62 / + COUNT ( * )
----
18
-62

query I rowsort
SELECT ( + - 29 ) + 83
----
54

query II rowsort
SELECT ALL 75, 29 - + + 39 AS col2
----
75
-10

onlyif mysql # aggregate syntax: 
query II rowsort label-4835
SELECT 94 AS col0, + 97 * + + MIN( 60 ) AS col2
----
94
5820

skipif mysql # not compatible
query II rowsort label-4835
SELECT 94 AS col0, + 97 * + + MIN ( 60 ) AS col2
----
94
5820

query I rowsort
SELECT 34 + - 86 * + 75
----
-6416

onlyif mysql # aggregate syntax: 
query I rowsort label-4837
SELECT 82 * SUM( DISTINCT + 38 )
----
3116

skipif mysql # not compatible
query I rowsort label-4837
SELECT 82 * SUM ( DISTINCT + 38 )
----
3116

onlyif mysql # aggregate syntax: 
query I rowsort label-4838
SELECT ALL - 3 * - 74 * COUNT( DISTINCT ( 17 ) ) AS col2
----
222

skipif mysql # not compatible
query I rowsort label-4838
SELECT ALL - 3 * - 74 * COUNT ( DISTINCT ( 17 ) ) AS col2
----
222

query II rowsort
SELECT DISTINCT 92, + 65 AS col1
----
92
65

query I rowsort
SELECT 69 - + - 69 AS col1
----
138

query I rowsort
SELECT 72 * - 42
----
-3024

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4842
SELECT 78 + - 67 + + COALESCE ( 43, - 57 * - 69 * + 7 + + - 77 + + 36 + 8, - - 1 * - - COUNT( * ) DIV + ( + SUM( 71 ) ) * - + CAST( - + MAX( + 10 ) AS SIGNED ) * COUNT( * ) - 11 DIV CAST( - SUM( ALL + 39 ) AS SIGNED ) )
----
54

skipif mysql # not compatible
query I rowsort label-4842
SELECT 78 + - 67 + + COALESCE ( 43, - 57 * - 69 * + 7 + + - 77 + + 36 + 8, - - 1 * - - COUNT ( * ) / + ( + SUM ( 71 ) ) * - + CAST ( - + MAX ( + 10 ) AS INTEGER ) * COUNT ( * ) - 11 / CAST ( - SUM ( ALL + 39 ) AS INTEGER ) )
----
54

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4843
SELECT ALL + CASE + - 54 WHEN - 54 THEN COUNT( * ) * - 90 * - - 27 END DIV + - COUNT( * ) col1
----
2430

skipif mysql # not compatible
query I rowsort label-4843
SELECT ALL + CASE + - 54 WHEN - 54 THEN COUNT ( * ) * - 90 * - - 27 END / + - COUNT ( * ) col1
----
2430

onlyif mysql # aggregate syntax: 
query II rowsort label-4844
SELECT 18, MIN( ALL + 61 ) * 84 AS col2
----
18
5124

skipif mysql # not compatible
query II rowsort label-4844
SELECT 18, MIN ( ALL + 61 ) * 84 AS col2
----
18
5124

query II rowsort
SELECT + 10 AS col0, + 70
----
10
70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4846
SELECT 4 - - 99 * ( - COALESCE ( - 64, - 85, - - 86 ) ) + + COUNT( - 99 ) * + + COUNT( * ) DIV - 4 + + COUNT( * ) AS col1
----
6341

skipif mysql # not compatible
query I rowsort label-4846
SELECT 4 - - 99 * ( - COALESCE ( - 64, - 85, - - 86 ) ) + + COUNT ( - 99 ) * + + COUNT ( * ) / - 4 + + COUNT ( * ) AS col1
----
6341

query I rowsort
SELECT + 65 * - + 31 AS col2
----
-2015

query I rowsort
SELECT 37 + 99
----
136

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4849
SELECT - - COUNT( * ) DIV - NULLIF ( - 79, - - AVG ( - - 98 ) * - 29 + 12 + + 80 ) - - + 2, - 31 * 70 + + 61 * - 45 - + COUNT( * ) - 13 AS col0
----
2
-4929

skipif mysql # not compatible
query II rowsort label-4849
SELECT - - COUNT ( * ) / - NULLIF ( - 79, - - AVG ( - - 98 ) * - 29 + 12 + + 80 ) - - + 2, - 31 * 70 + + 61 * - 45 - + COUNT ( * ) - 13 AS col0
----
2
-4929

onlyif mysql # aggregate syntax: 
query I rowsort label-4850
SELECT + CASE COUNT( * ) WHEN + + 88 THEN NULL ELSE + - CASE + + 81 WHEN - 80 THEN NULL WHEN 10 THEN + 61 END + - 7 * + 2 / - COUNT( * ) * + 60 + - 56 END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4850
SELECT + CASE COUNT ( * ) WHEN + + 88 THEN NULL ELSE + - CASE + + 81 WHEN - 80 THEN NULL WHEN 10 THEN + 61 END + - 7 * + 2 / - COUNT ( * ) * + 60 + - 56 END col2
----
NULL

query I rowsort
SELECT 14 + - 92
----
-78

query II rowsort
SELECT ALL - 73 AS col1, + 0 + + - 53
----
-73
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-4853
SELECT DISTINCT - + ( + - MIN( - 67 ) ) * - 43 col2
----
2881

skipif mysql # not compatible
query I rowsort label-4853
SELECT DISTINCT - + ( + - MIN ( - 67 ) ) * - 43 col2
----
2881

query II rowsort
SELECT ALL - 63, 29 AS col0
----
-63
29

onlyif mysql # aggregate syntax: 
query I rowsort label-4855
SELECT ALL - CASE - COUNT( * ) WHEN + 20 THEN - - 71 END * - + ( 19 ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4855
SELECT ALL - CASE - COUNT ( * ) WHEN + 20 THEN - - 71 END * - + ( 19 ) col2
----
NULL

query II rowsort
SELECT + 86, + 67 col0
----
86
67

query II rowsort
SELECT ALL - - 11 AS col0, - 22
----
11
-22

query I rowsort
SELECT + 81 + - ( - 57 ) AS col1
----
138

query I rowsort
SELECT - 55 + 26 * - + 89 AS col2
----
-2369

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4860
SELECT + 73 * - 17 + - - MIN( ALL - 2 ) + - 43 / - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4860
SELECT + 73 * - 17 + - - MIN ( ALL - 2 ) + - 43 / - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4861
SELECT ALL + COUNT( * ) + + ( CAST( NULL AS SIGNED ) ) * + 87 + 54 + + + ( + 54 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4861
SELECT ALL + COUNT ( * ) + + ( CAST ( NULL AS INTEGER ) ) * + 87 + 54 + + + ( + 54 )
----
NULL

query I rowsort
SELECT + 22 * - 70 - 16 * - 54 + - - 26 col1
----
-650

onlyif mysql # DIV for integer division: 
query I rowsort label-4863
SELECT ALL + + 61 DIV + 55
----
1

skipif mysql # not compatible
query I rowsort label-4863
SELECT ALL + + 61 / + 55
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4864
SELECT DISTINCT - + ( - 39 ) + + + 9 * - ( 87 ) + - + 72 * - - ( 19 ) * - COUNT( * ) * + COUNT( * ) + - 96
----
528

skipif mysql # not compatible
query I rowsort label-4864
SELECT DISTINCT - + ( - 39 ) + + + 9 * - ( 87 ) + - + 72 * - - ( 19 ) * - COUNT ( * ) * + COUNT ( * ) + - 96
----
528

query I rowsort
SELECT DISTINCT + 13 + - - 10
----
23

onlyif mysql # DIV for integer division: 
query I rowsort label-4866
SELECT 53 + - 53 DIV + - 61 AS col0
----
53

skipif mysql # not compatible
query I rowsort label-4866
SELECT 53 + - 53 / + - 61 AS col0
----
53

query I rowsort
SELECT ALL ( 6 ) + 99 AS col0
----
105

onlyif mysql # aggregate syntax: 
query I rowsort label-4868
SELECT - SUM( ALL - 69 ) AS col1
----
69

skipif mysql # not compatible
query I rowsort label-4868
SELECT - SUM ( ALL - 69 ) AS col1
----
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4869
SELECT COUNT( * ) + - MAX( DISTINCT + 35 ) + - + 88 * + + NULLIF ( + CAST( + 90 AS SIGNED ), - 94 + 5 ), COALESCE ( 63, MAX( ALL - 13 ) ) AS col1
----
-7954
63

skipif mysql # not compatible
query II rowsort label-4869
SELECT COUNT ( * ) + - MAX ( DISTINCT + 35 ) + - + 88 * + + NULLIF ( + CAST ( + 90 AS INTEGER ), - 94 + 5 ), COALESCE ( 63, MAX ( ALL - 13 ) ) AS col1
----
-7954
63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4870
SELECT 37 - + CAST( + - 29 AS SIGNED )
----
66

skipif mysql # not compatible
query I rowsort label-4870
SELECT 37 - + CAST ( + - 29 AS INTEGER )
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-4871
SELECT 79 + + SUM( DISTINCT + 97 )
----
176

skipif mysql # not compatible
query I rowsort label-4871
SELECT 79 + + SUM ( DISTINCT + 97 )
----
176

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4872
SELECT CAST( - - COUNT( * ) AS SIGNED ) * 46 + + 83 * + - 68 AS col0
----
-5598

skipif mysql # not compatible
query I rowsort label-4872
SELECT CAST ( - - COUNT ( * ) AS INTEGER ) * 46 + + 83 * + - 68 AS col0
----
-5598

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4873
SELECT CAST( - - 62 AS SIGNED ) + - - 21 + - 45 + 1 DIV + 94
----
38

skipif mysql # not compatible
query I rowsort label-4873
SELECT CAST ( - - 62 AS INTEGER ) + - - 21 + - 45 + 1 / + 94
----
38

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4874
SELECT ALL 28 - + COUNT( * ) + 30 DIV - - 67 * - 62 + + + COALESCE ( - + 83, - 89 ) + + - ( + ( - 84 ) ) AS col0
----
28

skipif mysql # not compatible
query I rowsort label-4874
SELECT ALL 28 - + COUNT ( * ) + 30 / - - 67 * - 62 + + + COALESCE ( - + 83, - 89 ) + + - ( + ( - 84 ) ) AS col0
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-4875
SELECT + COUNT( * ) + 56 + + + 86
----
143

skipif mysql # not compatible
query I rowsort label-4875
SELECT + COUNT ( * ) + 56 + + + 86
----
143

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4876
SELECT + CAST( 82 AS SIGNED ) + + + 80
----
162

skipif mysql # not compatible
query I rowsort label-4876
SELECT + CAST ( 82 AS INTEGER ) + + + 80
----
162

query I rowsort
SELECT DISTINCT 27 - + 29 AS col1
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-4878
SELECT - COALESCE ( + - 28, + 63 * + COUNT( - + 87 ) + 18, - MAX( + 51 ) ) AS col0
----
28

skipif mysql # not compatible
query I rowsort label-4878
SELECT - COALESCE ( + - 28, + 63 * + COUNT ( - + 87 ) + 18, - MAX ( + 51 ) ) AS col0
----
28

onlyif mysql # aggregate syntax: 
query II rowsort label-4879
SELECT - 15 * 35, ( - 96 ) * + SUM( ALL - 20 ) AS col1
----
-525
1920

skipif mysql # not compatible
query II rowsort label-4879
SELECT - 15 * 35, ( - 96 ) * + SUM ( ALL - 20 ) AS col1
----
-525
1920

query I rowsort
SELECT ALL 21 * - 83 AS col2
----
-1743

query I rowsort
SELECT - 32 + 50 AS col1
----
18

onlyif mysql # DIV for integer division: 
query I rowsort label-4882
SELECT - COALESCE ( - 70, + + 59 DIV ( 43 ) * - 66 * 68 ) AS col2
----
70

skipif mysql # not compatible
query I rowsort label-4882
SELECT - COALESCE ( - 70, + + 59 / ( 43 ) * - 66 * 68 ) AS col2
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-4883
SELECT DISTINCT + 45 * 73 * - 3 + + SUM( ALL + 76 ) * COALESCE ( - 74, - + 91 * 68 + + COUNT( * ) + - + 20 * + 6 ) AS col0
----
-15479

skipif mysql # not compatible
query I rowsort label-4883
SELECT DISTINCT + 45 * 73 * - 3 + + SUM ( ALL + 76 ) * COALESCE ( - 74, - + 91 * 68 + + COUNT ( * ) + - + 20 * + 6 ) AS col0
----
-15479

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4884
SELECT DISTINCT + + 42 * - 55 - COUNT( DISTINCT ( + - 8 ) ) + 34 DIV - 4 * - COUNT( * ) AS col1
----
-2303

skipif mysql # not compatible
query I rowsort label-4884
SELECT DISTINCT + + 42 * - 55 - COUNT ( DISTINCT ( + - 8 ) ) + 34 / - 4 * - COUNT ( * ) AS col1
----
-2303

onlyif mysql # aggregate syntax: 
query I rowsort label-4885
SELECT + - 5 - - 13 + 10 * + 1 + - 3 - - COUNT( * ) AS col2
----
16

skipif mysql # not compatible
query I rowsort label-4885
SELECT + - 5 - - 13 + 10 * + 1 + - 3 - - COUNT ( * ) AS col2
----
16

query I rowsort
SELECT ALL + + ( - 34 ) AS col1
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-4887
SELECT + + COUNT( * ) + - NULLIF ( CASE - - MAX( DISTINCT + - 51 ) WHEN - 7 + + - 43 THEN 4 WHEN 29 * - COUNT( * ) + + + MIN( ALL 46 ) THEN - + 16 ELSE NULL END, 26 + + - 42 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4887
SELECT + + COUNT ( * ) + - NULLIF ( CASE - - MAX ( DISTINCT + - 51 ) WHEN - 7 + + - 43 THEN 4 WHEN 29 * - COUNT ( * ) + + + MIN ( ALL 46 ) THEN - + 16 ELSE NULL END, 26 + + - 42 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4888
SELECT - - COUNT( * ) * CASE 4 WHEN + 23 THEN 81 + - - 18 + MAX( DISTINCT + 92 ) END + - ( + COUNT( * ) ) / + + 24
----
NULL

skipif mysql # not compatible
query I rowsort label-4888
SELECT - - COUNT ( * ) * CASE 4 WHEN + 23 THEN 81 + - - 18 + MAX ( DISTINCT + 92 ) END + - ( + COUNT ( * ) ) / + + 24
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4889
SELECT - - 56 * - 44 AS col1, - COUNT( * ) * - 63
----
-2464
63

skipif mysql # not compatible
query II rowsort label-4889
SELECT - - 56 * - 44 AS col1, - COUNT ( * ) * - 63
----
-2464
63

query I rowsort
SELECT ALL - 8 * 37 + - 91 AS col2
----
-387

query I rowsort
SELECT ALL + + 57 * + - ( + - 32 ) + + + 15 + - 12
----
1827

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4892
SELECT ALL + + CAST( NULL AS SIGNED ) * + + 83 + ( ( 27 ) ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4892
SELECT ALL + + CAST ( NULL AS INTEGER ) * + + 83 + ( ( 27 ) ) col0
----
NULL

query I rowsort
SELECT - 33 - 73 AS col0
----
-106

onlyif mysql # aggregate syntax: 
query I rowsort label-4894
SELECT ALL - 72 * COUNT( NULLIF ( - 12, - 57 ) ) + + + COUNT( * ) - - 50 * 38 + 79 + 13 * + 51 * - 59
----
-37209

skipif mysql # not compatible
query I rowsort label-4894
SELECT ALL - 72 * COUNT ( NULLIF ( - 12, - 57 ) ) + + + COUNT ( * ) - - 50 * 38 + 79 + 13 * + 51 * - 59
----
-37209

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4895
SELECT DISTINCT + - 83 * + CAST( NULL AS SIGNED ) + - COUNT( * ) / + 93 * + 26
----
NULL

skipif mysql # not compatible
query I rowsort label-4895
SELECT DISTINCT + - 83 * + CAST ( NULL AS INTEGER ) + - COUNT ( * ) / + 93 * + 26
----
NULL

query I rowsort
SELECT - 23 + - + 37 * - 17 * 54 AS col2
----
33943

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4897
SELECT - NULLIF ( + 41, + CAST( - 37 AS SIGNED ) - - 33 ) * - ( + - 63 ) AS col0
----
-2583

skipif mysql # not compatible
query I rowsort label-4897
SELECT - NULLIF ( + 41, + CAST ( - 37 AS INTEGER ) - - 33 ) * - ( + - 63 ) AS col0
----
-2583

query I rowsort
SELECT ALL + ( - 27 ) col2
----
-27

query I rowsort
SELECT + ( - + 11 ) + 16 AS col1
----
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4900
SELECT + 5 - - - COUNT( * ) * 26 * - CAST( COALESCE ( - CAST( 45 AS SIGNED ), - 90, + - 54 ) AS SIGNED ) - CASE + COUNT( * ) WHEN + 52 THEN 65 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4900
SELECT + 5 - - - COUNT ( * ) * 26 * - CAST ( COALESCE ( - CAST ( 45 AS INTEGER ), - 90, + - 54 ) AS INTEGER ) - CASE + COUNT ( * ) WHEN + 52 THEN 65 ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4901
SELECT - COALESCE ( - - 93, + 24 ) AS col0, 68 + - 66 + - + COUNT( * ) AS col1
----
-93
1

skipif mysql # not compatible
query II rowsort label-4901
SELECT - COALESCE ( - - 93, + 24 ) AS col0, 68 + - 66 + - + COUNT ( * ) AS col1
----
-93
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4902
SELECT - COUNT( * ) col0, 40 DIV + 8
----
-1
5

skipif mysql # not compatible
query II rowsort label-4902
SELECT - COUNT ( * ) col0, 40 / + 8
----
-1
5

onlyif mysql # DIV for integer division: 
query I rowsort label-4903
SELECT DISTINCT + 86 DIV - 30 col2
----
-2

skipif mysql # not compatible
query I rowsort label-4903
SELECT DISTINCT + 86 / - 30 col2
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4904
SELECT + CAST( NULL AS SIGNED ) + + ( + + 22 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4904
SELECT + CAST ( NULL AS INTEGER ) + + ( + + 22 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4905
SELECT ALL + 77 DIV - COUNT( * ) AS col1
----
-77

skipif mysql # not compatible
query I rowsort label-4905
SELECT ALL + 77 / - COUNT ( * ) AS col1
----
-77

query I rowsort
SELECT DISTINCT + 59 * - 0 AS col1
----
0

query I rowsort
SELECT - 27 + - 86
----
-113

query I rowsort
SELECT + NULLIF ( + 7, - CASE + 11 WHEN + - 57 - - - 88 * 76 THEN NULL WHEN + 91 * 57 * + - 30 + 47 THEN 91 END ) * - - 96
----
672

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4909
SELECT - CAST( 39 AS SIGNED ) AS col2
----
-39

skipif mysql # not compatible
query I rowsort label-4909
SELECT - CAST ( 39 AS INTEGER ) AS col2
----
-39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4910
SELECT ALL - 41 + - + 17 + + + 27 + + + CAST( NULL AS SIGNED ) * + + COUNT( * ) * - 86 * - ( 3 ) / + 56 - NULLIF ( - 21, COALESCE ( COALESCE ( 46, COUNT( - 53 ) ), - + 32 ) / + 46 * - 5 ) * + + 33 + + + 38 * - 40 * - 33 / + 6
----
NULL

skipif mysql # not compatible
query I rowsort label-4910
SELECT ALL - 41 + - + 17 + + + 27 + + + CAST ( NULL AS INTEGER ) * + + COUNT ( * ) * - 86 * - ( 3 ) / + 56 - NULLIF ( - 21, COALESCE ( COALESCE ( 46, COUNT ( - 53 ) ), - + 32 ) / + 46 * - 5 ) * + + 33 + + + 38 * - 40 * - 33 / + 6
----
NULL

query I rowsort
SELECT DISTINCT + 87 + - 41 AS col2
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-4912
SELECT ALL COUNT( * ) + - + 48
----
-47

skipif mysql # not compatible
query I rowsort label-4912
SELECT ALL COUNT ( * ) + - + 48
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-4913
SELECT ALL + 89 + - + 47 * NULLIF ( - 27, COUNT( * ) / - NULLIF ( - COUNT( * ), 67 ) ) AS col1
----
1358

skipif mysql # not compatible
query I rowsort label-4913
SELECT ALL + 89 + - + 47 * NULLIF ( - 27, COUNT ( * ) / - NULLIF ( - COUNT ( * ), 67 ) ) AS col1
----
1358

onlyif mysql # aggregate syntax: 
query I rowsort label-4914
SELECT + 88 + COALESCE ( + ( - - COUNT( - 23 ) ), + - 9 ) AS col2
----
89

skipif mysql # not compatible
query I rowsort label-4914
SELECT + 88 + COALESCE ( + ( - - COUNT ( - 23 ) ), + - 9 ) AS col2
----
89

query I rowsort
SELECT + + 45 * + - 67
----
-3015

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4916
SELECT ALL - - AVG ( DISTINCT - + CASE - 9 WHEN - 9 THEN + + 47 * - 68 * 49 * + 54 / - CAST( NULL AS SIGNED ) ELSE NULL END ) / + + 75 + + 44 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4916
SELECT ALL - - AVG ( DISTINCT - + CASE - 9 WHEN - 9 THEN + + 47 * - 68 * 49 * + 54 / - CAST ( NULL AS INTEGER ) ELSE NULL END ) / + + 75 + + 44 AS col2
----
NULL

query I rowsort
SELECT + - 29 - + 88 AS col0
----
-117

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4918
SELECT ALL - + MAX( 37 ) DIV 28 + 69 + - 53
----
15

skipif mysql # not compatible
query I rowsort label-4918
SELECT ALL - + MAX ( 37 ) / 28 + 69 + - 53
----
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4919
SELECT 59 / + 13 * CAST( NULL AS SIGNED ) - + - 93 + - 16 * - COUNT( ALL + 7 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4919
SELECT 59 / + 13 * CAST ( NULL AS INTEGER ) - + - 93 + - 16 * - COUNT ( ALL + 7 )
----
NULL

query I rowsort
SELECT + + CASE ( - + ( + - 95 ) ) WHEN + 94 THEN - 68 END + + 98 / + + 77 * - 76
----
NULL

query II rowsort
SELECT + 77 * + - 15 + 75 col1, 32
----
-1080
32

query I rowsort
SELECT ALL 46 * + 43 * + + 44 AS col1
----
87032

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4923
SELECT DISTINCT - + COUNT( * ) DIV + COUNT( - 63 ) + - - 50 + + MIN( - 36 ) AS col2
----
13

skipif mysql # not compatible
query I rowsort label-4923
SELECT DISTINCT - + COUNT ( * ) / + COUNT ( - 63 ) + - - 50 + + MIN ( - 36 ) AS col2
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-4924
SELECT DISTINCT + - MIN( - + ( COALESCE ( - 21, - 99 + + + ( + 34 ), 88 ) ) ) AS col1
----
-21

skipif mysql # not compatible
query I rowsort label-4924
SELECT DISTINCT + - MIN ( - + ( COALESCE ( - 21, - 99 + + + ( + 34 ), 88 ) ) ) AS col1
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-4925
SELECT - COUNT( * ) + + - 34
----
-35

skipif mysql # not compatible
query I rowsort label-4925
SELECT - COUNT ( * ) + + - 34
----
-35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4926
SELECT - + 52 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4926
SELECT - + 52 * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4927
SELECT DISTINCT - 62 DIV + ( 91 ) col2
----
0

skipif mysql # not compatible
query I rowsort label-4927
SELECT DISTINCT - 62 / + ( 91 ) col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4928
SELECT CAST( + 93 AS SIGNED ) * - - 34 + ( - 36 ) + + - 43 + + 47 AS col1
----
3130

skipif mysql # not compatible
query I rowsort label-4928
SELECT CAST ( + 93 AS INTEGER ) * - - 34 + ( - 36 ) + + - 43 + + 47 AS col1
----
3130

onlyif mysql # aggregate syntax: 
query I rowsort label-4929
SELECT ALL - 44 - - + COUNT( * ) AS col2
----
-43

skipif mysql # not compatible
query I rowsort label-4929
SELECT ALL - 44 - - + COUNT ( * ) AS col2
----
-43

onlyif mysql # DIV for integer division: 
query I rowsort label-4930
SELECT 62 DIV - - 55
----
1

skipif mysql # not compatible
query I rowsort label-4930
SELECT 62 / - - 55
----
1

query II rowsort
SELECT ALL - 98 AS col0, + 80 AS col2
----
-98
80

onlyif mysql # aggregate syntax: 
query II rowsort label-4932
SELECT DISTINCT - COUNT( * ) AS col0, COUNT( * ) AS col2
----
-1
1

skipif mysql # not compatible
query II rowsort label-4932
SELECT DISTINCT - COUNT ( * ) AS col0, COUNT ( * ) AS col2
----
-1
1

query I rowsort
SELECT DISTINCT + 90 * + 5
----
450

onlyif mysql # aggregate syntax: 
query I rowsort label-4934
SELECT MAX( 90 ) * + - COUNT( * )
----
-90

skipif mysql # not compatible
query I rowsort label-4934
SELECT MAX ( 90 ) * + - COUNT ( * )
----
-90

query I rowsort
SELECT ALL + 72 * + 86
----
6192

query I rowsort
SELECT 71 - - 11 AS col1
----
82

onlyif mysql # DIV for integer division: 
query I rowsort label-4937
SELECT DISTINCT - 28 DIV + 83 * 25 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4937
SELECT DISTINCT - 28 / + 83 * 25 AS col2
----
0

query II rowsort
SELECT DISTINCT - 55 + + COALESCE ( + 24, - 30 ) AS col2, - 56
----
-31
-56

query I rowsort
SELECT ALL 67 + 17
----
84

query I rowsort
SELECT 13 + + 10 * - - 53
----
543

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4941
SELECT ALL - COUNT( * ) + - 30 * - 98 - + CAST( + 83 AS SIGNED ) + + 3
----
2859

skipif mysql # not compatible
query I rowsort label-4941
SELECT ALL - COUNT ( * ) + - 30 * - 98 - + CAST ( + 83 AS INTEGER ) + + 3
----
2859

onlyif mysql # aggregate syntax: 
query I rowsort label-4942
SELECT ALL MAX( - - 51 )
----
51

skipif mysql # not compatible
query I rowsort label-4942
SELECT ALL MAX ( - - 51 )
----
51

query I rowsort
SELECT DISTINCT - - 96 + + + 42 AS col2
----
138

query II rowsort
SELECT DISTINCT + 86 AS col0, + 26
----
86
26

onlyif mysql # aggregate syntax: 
query I rowsort label-4945
SELECT ALL - 69 + 62 * - COUNT( * ) AS col1
----
-131

skipif mysql # not compatible
query I rowsort label-4945
SELECT ALL - 69 + 62 * - COUNT ( * ) AS col1
----
-131

query I rowsort
SELECT - 25 * - 72 * + + 35 col0
----
63000

onlyif mysql # aggregate syntax: 
query I rowsort label-4947
SELECT 89 + - COALESCE ( - + 26, - COUNT( * ), + 49 * + 73 ) * + - ( + - MAX( DISTINCT + 10 ) ) + - + COUNT( * ) AS col0
----
348

skipif mysql # not compatible
query I rowsort label-4947
SELECT 89 + - COALESCE ( - + 26, - COUNT ( * ), + 49 * + 73 ) * + - ( + - MAX ( DISTINCT + 10 ) ) + - + COUNT ( * ) AS col0
----
348

query I rowsort
SELECT ALL 78 + + 25 AS col1
----
103

query I rowsort
SELECT NULLIF ( 20, - 87 ) AS col0
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-4950
SELECT ALL + 33 * + + COUNT( * )
----
33

skipif mysql # not compatible
query I rowsort label-4950
SELECT ALL + 33 * + + COUNT ( * )
----
33

query I rowsort
SELECT DISTINCT - 75 - 33 AS col1
----
-108

query I rowsort
SELECT ALL + 42 - 51 * - 94
----
4836

query II rowsort
SELECT + 22 AS col1, - 91 AS col2
----
22
-91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4954
SELECT + 58 DIV + 11 - 87 + - 35 * + - 20 * - - COUNT( * ) col2
----
618

skipif mysql # not compatible
query I rowsort label-4954
SELECT + 58 / + 11 - 87 + - 35 * + - 20 * - - COUNT ( * ) col2
----
618

query I rowsort
SELECT 37 * + 93
----
3441

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4956
SELECT 40 - - + CAST( NULL AS SIGNED ) * + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4956
SELECT 40 - - + CAST ( NULL AS INTEGER ) * + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4957
SELECT ALL ( + 37 ) * - + 16 * - COUNT( * ), + 19 col1
----
592
19

skipif mysql # not compatible
query II rowsort label-4957
SELECT ALL ( + 37 ) * - + 16 * - COUNT ( * ), + 19 col1
----
592
19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4958
SELECT COALESCE ( - MIN( 44 ), + + CAST( + - 92 AS SIGNED ) * + 29 + - 7 ) * + 5 AS col0
----
-220

skipif mysql # not compatible
query I rowsort label-4958
SELECT COALESCE ( - MIN ( 44 ), + + CAST ( + - 92 AS INTEGER ) * + 29 + - 7 ) * + 5 AS col0
----
-220

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4959
SELECT MIN( ALL + - 71 ) DIV - COUNT( * ) + COALESCE ( + - 55, + COUNT( * ) )
----
16

skipif mysql # not compatible
query I rowsort label-4959
SELECT MIN ( ALL + - 71 ) / - COUNT ( * ) + COALESCE ( + - 55, + COUNT ( * ) )
----
16

query I rowsort
SELECT DISTINCT 46 * - 68 AS col2
----
-3128

query I rowsort
SELECT ALL 58 * - - 17 * 11 AS col1
----
10846

query I rowsort
SELECT ALL 76 * + - 16
----
-1216

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4963
SELECT CAST( ( - - 61 ) AS SIGNED ) - - MIN( ALL - - ( 41 ) ) col1
----
102

skipif mysql # not compatible
query I rowsort label-4963
SELECT CAST ( ( - - 61 ) AS INTEGER ) - - MIN ( ALL - - ( 41 ) ) col1
----
102

onlyif mysql # DIV for integer division: 
query I rowsort label-4964
SELECT 97 DIV ( + 80 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-4964
SELECT 97 / ( + 80 ) col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4965
SELECT MIN( - - 87 ) * - + CASE WHEN 72 <= NULL THEN + - 89 + + 9 - - 76 * 48 * - 60 END + + 98
----
NULL

skipif mysql # not compatible
query I rowsort label-4965
SELECT MIN ( - - 87 ) * - + CASE WHEN 72 <= NULL THEN + - 89 + + 9 - - 76 * 48 * - 60 END + + 98
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4966
SELECT ( 90 ) + - + ( - + COUNT( * ) )
----
91

skipif mysql # not compatible
query I rowsort label-4966
SELECT ( 90 ) + - + ( - + COUNT ( * ) )
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-4967
SELECT DISTINCT + 68 + - + 68 + + 68 * - 16 + + + COUNT( * ) AS col1
----
-1087

skipif mysql # not compatible
query I rowsort label-4967
SELECT DISTINCT + 68 + - + 68 + + 68 * - 16 + + + COUNT ( * ) AS col1
----
-1087

query I rowsort
SELECT DISTINCT - 23 + 99 * - 87 AS col0
----
-8636

query I rowsort
SELECT 14 + + 57
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-4970
SELECT ALL + SUM( - + 87 ) AS col0
----
-87

skipif mysql # not compatible
query I rowsort label-4970
SELECT ALL + SUM ( - + 87 ) AS col0
----
-87

onlyif mysql # aggregate syntax: 
query II rowsort label-4971
SELECT 6 + + 18 AS col1, 21 * COUNT( * ) AS col1
----
24
21

skipif mysql # not compatible
query II rowsort label-4971
SELECT 6 + + 18 AS col1, 21 * COUNT ( * ) AS col1
----
24
21

query I rowsort
SELECT DISTINCT - 79 - - - 88 * - - 29 * + COALESCE ( 65, + CASE + 11 WHEN - 38 THEN NULL ELSE 61 * + 88 + - - 42 * + 26 * - 90 * 3 END ) * - 47 + - 75 AS col2
----
7796206

onlyif mysql # DIV for integer division: 
query I rowsort label-4973
SELECT ALL - - NULLIF ( + 61, - 66 * + 0 ) DIV - 82 + 29 AS col2
----
29

skipif mysql # not compatible
query I rowsort label-4973
SELECT ALL - - NULLIF ( + 61, - 66 * + 0 ) / - 82 + 29 AS col2
----
29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4974
SELECT CAST( - - CAST( + SUM( - 11 ) AS SIGNED ) AS SIGNED ) + + 6
----
-5

skipif mysql # not compatible
query I rowsort label-4974
SELECT CAST ( - - CAST ( + SUM ( - 11 ) AS INTEGER ) AS INTEGER ) + + 6
----
-5

query I rowsort
SELECT + 72 + - + ( + 75 ) + - - 97 AS col1
----
94

onlyif mysql # DIV for integer division: 
query I rowsort label-4976
SELECT DISTINCT - + 52 DIV - ( + - 62 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4976
SELECT DISTINCT - + 52 / - ( + - 62 ) AS col0
----
0

query I rowsort
SELECT 75 + 11
----
86

query I rowsort
SELECT ALL - 96 * 29 AS col1
----
-2784

query I rowsort
SELECT 62 + 46 + + 96
----
204

query I rowsort
SELECT 6 * + + 31 * + 14 AS col2
----
2604

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4981
SELECT - 31 DIV + 28 + - COUNT( * ) AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-4981
SELECT - 31 / + 28 + - COUNT ( * ) AS col0
----
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4982
SELECT - + NULLIF ( - - 32, - - 13 * COUNT( * ) + - + 1 DIV - 90 - + 68 ) DIV - + 77
----
0

skipif mysql # not compatible
query I rowsort label-4982
SELECT - + NULLIF ( - - 32, - - 13 * COUNT ( * ) + - + 1 / - 90 - + 68 ) / - + 77
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4983
SELECT DISTINCT + + 84 * - COUNT( * )
----
-84

skipif mysql # not compatible
query I rowsort label-4983
SELECT DISTINCT + + 84 * - COUNT ( * )
----
-84

onlyif mysql # DIV for integer division: 
query I rowsort label-4984
SELECT ALL 64 DIV + 49
----
1

skipif mysql # not compatible
query I rowsort label-4984
SELECT ALL 64 / + 49
----
1

query I rowsort
SELECT ALL + ( 35 ) AS col1
----
35

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4986
SELECT COUNT( * ) * - 61 + - 30 DIV + ( + 43 ) col2
----
-61

skipif mysql # not compatible
query I rowsort label-4986
SELECT COUNT ( * ) * - 61 + - 30 / + ( + 43 ) col2
----
-61

query I rowsort
SELECT + 64 * - 22 col2
----
-1408

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4988
SELECT ALL NULLIF ( + 48, + + COUNT( * ) + - - 96 * 38 ) * COUNT( * ) * + - 30 + 20 DIV + 66
----
-1440

skipif mysql # not compatible
query I rowsort label-4988
SELECT ALL NULLIF ( + 48, + + COUNT ( * ) + - - 96 * 38 ) * COUNT ( * ) * + - 30 + 20 / + 66
----
-1440

onlyif mysql # aggregate syntax: 
query I rowsort label-4989
SELECT COUNT( ALL 33 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4989
SELECT COUNT ( ALL 33 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4990
SELECT MAX( 9 ) AS col1
----
9

skipif mysql # not compatible
query I rowsort label-4990
SELECT MAX ( 9 ) AS col1
----
9

query I rowsort
SELECT ALL 22 * 15 AS col2
----
330

query I rowsort
SELECT 9 * + 82 + ( 79 )
----
817

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4993
SELECT + 34 * + CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4993
SELECT + 34 * + CAST ( NULL AS INTEGER ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4994
SELECT + COUNT( - 53 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4994
SELECT + COUNT ( - 53 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4995
SELECT + CASE - 72 WHEN COUNT( * ) * + - 96 * 62 - + - COUNT( * ) - + COUNT( * ) + + 45 THEN NULL ELSE - 78 END
----
-78

skipif mysql # not compatible
query I rowsort label-4995
SELECT + CASE - 72 WHEN COUNT ( * ) * + - 96 * 62 - + - COUNT ( * ) - + COUNT ( * ) + + 45 THEN NULL ELSE - 78 END
----
-78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4996
SELECT ALL - CAST( NULL AS SIGNED ) * 50 + - + MAX( ALL - + 82 ) + NULLIF ( - + 60, + 9 ) * - 82
----
NULL

skipif mysql # not compatible
query I rowsort label-4996
SELECT ALL - CAST ( NULL AS INTEGER ) * 50 + - + MAX ( ALL - + 82 ) + NULLIF ( - + 60, + 9 ) * - 82
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4997
SELECT MIN( DISTINCT + COALESCE ( + + 63, 11 ) )
----
63

skipif mysql # not compatible
query I rowsort label-4997
SELECT MIN ( DISTINCT + COALESCE ( + + 63, 11 ) )
----
63

query I rowsort
SELECT + 98 + + + 63
----
161

query I rowsort
SELECT DISTINCT 3 + 73
----
76

query I rowsort
SELECT DISTINCT 21 * 30
----
630

query I rowsort
SELECT + 33 * + - 23
----
-759

onlyif mysql # aggregate syntax: 
query I rowsort label-5002
SELECT ALL COUNT( - 37 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5002
SELECT ALL COUNT ( - 37 ) AS col0
----
1

query I rowsort
SELECT + 50 + - + 12 AS col2
----
38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5004
SELECT + CASE 68 WHEN + - CAST( 68 AS SIGNED ) - - 16 / + COUNT( * ) * + 72 THEN SUM( DISTINCT + 54 ) + ( - + ( COUNT( 31 ) ) ) * COUNT( * ) + 38 / 46 ELSE NULL END * CAST( - 73 AS DECIMAL ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5004
SELECT + CASE 68 WHEN + - CAST ( 68 AS INTEGER ) - - 16 / + COUNT ( * ) * + 72 THEN SUM ( DISTINCT + 54 ) + ( - + ( COUNT ( 31 ) ) ) * COUNT ( * ) + 38 / 46 ELSE NULL END * CAST ( - 73 AS REAL ) col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5005
SELECT 74 * + - CAST( - 82 AS SIGNED ) + - - 0 + - 12
----
6056

skipif mysql # not compatible
query I rowsort label-5005
SELECT 74 * + - CAST ( - 82 AS INTEGER ) + - - 0 + - 12
----
6056

query II rowsort
SELECT DISTINCT 16 AS col2, 12
----
16
12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5007
SELECT ALL - SUM( DISTINCT 67 ) DIV - - 82 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5007
SELECT ALL - SUM ( DISTINCT 67 ) / - - 82 AS col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5008
SELECT - - COALESCE ( - 69, + - 90, + COUNT( * ) + + 3, - COUNT( * ), - + 70 ) + + - 4 AS col1, - SUM( - - 26 )
----
-73
-26

skipif mysql # not compatible
query II rowsort label-5008
SELECT - - COALESCE ( - 69, + - 90, + COUNT ( * ) + + 3, - COUNT ( * ), - + 70 ) + + - 4 AS col1, - SUM ( - - 26 )
----
-73
-26

query II rowsort
SELECT - + 88 AS col0, 1
----
-88
1

onlyif mysql # aggregate syntax: 
query II rowsort label-5010
SELECT ALL - COUNT( * ) col1, + 92 + - - 52
----
-1
144

skipif mysql # not compatible
query II rowsort label-5010
SELECT ALL - COUNT ( * ) col1, + 92 + - - 52
----
-1
144

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5011
SELECT - + CASE + CAST( NULL AS SIGNED ) WHEN 75 THEN NULL WHEN + ( 35 ) + - - 68 / - 66 * - + 47 THEN + - 86 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5011
SELECT - + CASE + CAST ( NULL AS INTEGER ) WHEN 75 THEN NULL WHEN + ( 35 ) + - - 68 / - 66 * - + 47 THEN + - 86 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5012
SELECT - + 67 + + - 55 * - SUM( ALL - 61 ) * + + 54 * MAX( CASE 57 WHEN 91 THEN - CASE ( 84 ) WHEN COALESCE ( - - 72, + - 63 * - + 13 * + 88 ) THEN + + 45 ELSE NULL END * + + 53 * - + CAST( - + 25 AS SIGNED ) * 40 WHEN 70 THEN NULL ELSE + 91 END ) * + + 80 * + COUNT( * ) + - 60 + - 39 * - - 45 * + - 70 * - 93 + 59 + - CAST( NULL AS SIGNED ) * + 76 * + 46
----
NULL

skipif mysql # not compatible
query I rowsort label-5012
SELECT - + 67 + + - 55 * - SUM ( ALL - 61 ) * + + 54 * MAX ( CASE 57 WHEN 91 THEN - CASE ( 84 ) WHEN COALESCE ( - - 72, + - 63 * - + 13 * + 88 ) THEN + + 45 ELSE NULL END * + + 53 * - + CAST ( - + 25 AS INTEGER ) * 40 WHEN 70 THEN NULL ELSE + 91 END ) * + + 80 * + COUNT ( * ) + - 60 + - 39 * - - 45 * + - 70 * - 93 + 59 + - CAST ( NULL AS INTEGER ) * + 76 * + 46
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5013
SELECT ALL - + COUNT( + - ( - 21 ) ) - + 68, 65 AS col2
----
-69
65

skipif mysql # not compatible
query II rowsort label-5013
SELECT ALL - + COUNT ( + - ( - 21 ) ) - + 68, 65 AS col2
----
-69
65

query II rowsort
SELECT DISTINCT 10, 75 * + 81 AS col1
----
10
6075

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5015
SELECT ALL + 86 * + + SUM( 65 ), + ( CAST( NULL AS SIGNED ) ) AS col2
----
5590
NULL

skipif mysql # not compatible
query II rowsort label-5015
SELECT ALL + 86 * + + SUM ( 65 ), + ( CAST ( NULL AS INTEGER ) ) AS col2
----
5590
NULL

query I rowsort
SELECT + 43 + + 9 * NULLIF ( + 51, - 54 * - 30 * + - 57 + - ( 68 ) ) AS col0
----
502

query I rowsort
SELECT ALL ( - 17 ) - + 65
----
-82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5018
SELECT ALL - CAST( - 18 AS SIGNED ) * - 2 * + - 82
----
2952

skipif mysql # not compatible
query I rowsort label-5018
SELECT ALL - CAST ( - 18 AS INTEGER ) * - 2 * + - 82
----
2952

onlyif mysql # aggregate syntax: 
query I rowsort label-5019
SELECT DISTINCT - - COUNT( * ) - + 53
----
-52

skipif mysql # not compatible
query I rowsort label-5019
SELECT DISTINCT - - COUNT ( * ) - + 53
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-5020
SELECT + COUNT( * ) * - + 90
----
-90

skipif mysql # not compatible
query I rowsort label-5020
SELECT + COUNT ( * ) * - + 90
----
-90

query I rowsort
SELECT - 84 * - - 19 AS col0
----
-1596

query II rowsort
SELECT + 51, 99 AS col2
----
51
99

query I rowsort
SELECT - + 65 + + + 81 AS col0
----
16

query I rowsort
SELECT - - 90 + + 27 AS col0
----
117

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5025
SELECT DISTINCT + 52 * + CASE + 92 WHEN + - 20 THEN - 34 WHEN + COALESCE ( - - 81, + MIN( DISTINCT - - CAST( + + 2 AS SIGNED ) ) * + + 75 / 9 * - 99 * - - 33, 67 ) + 10 THEN - 34 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5025
SELECT DISTINCT + 52 * + CASE + 92 WHEN + - 20 THEN - 34 WHEN + COALESCE ( - - 81, + MIN ( DISTINCT - - CAST ( + + 2 AS INTEGER ) ) * + + 75 / 9 * - 99 * - - 33, 67 ) + 10 THEN - 34 END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5026
SELECT DISTINCT SUM( CAST( NULL AS SIGNED ) ) / + 67 + + 86 + - 48 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5026
SELECT DISTINCT SUM ( CAST ( NULL AS INTEGER ) ) / + 67 + + 86 + - 48 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5027
SELECT ALL + COUNT( * ) * + 12 AS col2
----
12

skipif mysql # not compatible
query I rowsort label-5027
SELECT ALL + COUNT ( * ) * + 12 AS col2
----
12

onlyif mysql # DIV for integer division: 
query I rowsort label-5028
SELECT - ( - 31 ) DIV 34 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5028
SELECT - ( - 31 ) / 34 AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5029
SELECT 49 DIV - + COUNT( * ) - - + 19
----
-30

skipif mysql # not compatible
query I rowsort label-5029
SELECT 49 / - + COUNT ( * ) - - + 19
----
-30

onlyif mysql # aggregate syntax: 
query II rowsort label-5030
SELECT ALL + 13 * - COUNT( * ) AS col2, ( - 19 )
----
-13
-19

skipif mysql # not compatible
query II rowsort label-5030
SELECT ALL + 13 * - COUNT ( * ) AS col2, ( - 19 )
----
-13
-19

query II rowsort
SELECT ( 47 ) AS col1, + 26 + 78 AS col1
----
47
104

query I rowsort
SELECT + 10 + + 51
----
61

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5033
SELECT ALL + 14 * 3 * COUNT( * ) DIV - 25
----
-1

skipif mysql # not compatible
query I rowsort label-5033
SELECT ALL + 14 * 3 * COUNT ( * ) / - 25
----
-1

query II rowsort
SELECT - 57 - - 55, 12 AS col1
----
-2
12

query I rowsort
SELECT + NULLIF ( - 52, + - 94 )
----
-52

onlyif mysql # aggregate syntax: 
query II rowsort label-5036
SELECT CASE - 12 WHEN - - 53 THEN NULL ELSE + 48 END AS col1, - 92 * NULLIF ( - NULLIF ( - SUM( DISTINCT + 2 ), + 30 * - 82 * - 42 ), - - 9 ) * - 86
----
48
15824

skipif mysql # not compatible
query II rowsort label-5036
SELECT CASE - 12 WHEN - - 53 THEN NULL ELSE + 48 END AS col1, - 92 * NULLIF ( - NULLIF ( - SUM ( DISTINCT + 2 ), + 30 * - 82 * - 42 ), - - 9 ) * - 86
----
48
15824

query I rowsort
SELECT ALL - 76 * + 28 + + ( + 10 )
----
-2118

onlyif mysql # aggregate syntax: 
query I rowsort label-5038
SELECT - COALESCE ( + 53, 53 ) * + - COUNT( * )
----
53

skipif mysql # not compatible
query I rowsort label-5038
SELECT - COALESCE ( + 53, 53 ) * + - COUNT ( * )
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-5039
SELECT + ( + ( MAX( - - 98 ) ) ) AS col2
----
98

skipif mysql # not compatible
query I rowsort label-5039
SELECT + ( + ( MAX ( - - 98 ) ) ) AS col2
----
98

query I rowsort
SELECT - 97 + 64 + 62
----
29

query I rowsort
SELECT + ( - NULLIF ( 98, + 68 + - - 17 * + 11 + + - 42 ) )
----
-98

query I rowsort
SELECT NULLIF ( + 47, + 88 * + 81 ) AS col1
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-5043
SELECT CASE - COUNT( * ) WHEN - 40 + - + 32 THEN - 14 END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5043
SELECT CASE - COUNT ( * ) WHEN - 40 + - + 32 THEN - 14 END col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5044
SELECT ALL 44 * - - 95 * + COUNT( * )
----
4180

skipif mysql # not compatible
query I rowsort label-5044
SELECT ALL 44 * - - 95 * + COUNT ( * )
----
4180

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5045
SELECT + 32 * + + 62, MIN( 18 ) * 82 + - 15 DIV + - ( - + COUNT( * ) ) col1
----
1984
1461

skipif mysql # not compatible
query II rowsort label-5045
SELECT + 32 * + + 62, MIN ( 18 ) * 82 + - 15 / + - ( - + COUNT ( * ) ) col1
----
1984
1461

onlyif mysql # aggregate syntax: 
query I rowsort label-5046
SELECT DISTINCT COUNT( - ( 20 ) )
----
1

skipif mysql # not compatible
query I rowsort label-5046
SELECT DISTINCT COUNT ( - ( 20 ) )
----
1

query I rowsort
SELECT ALL + 30 * - 78
----
-2340

query II rowsort
SELECT + - 49 + 16 AS col1, - 27 + + + 24
----
-33
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-5049
SELECT + 98 DIV + - 81
----
-1

skipif mysql # not compatible
query I rowsort label-5049
SELECT + 98 / + - 81
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5050
SELECT + + SUM( DISTINCT - - 90 ) * - 2
----
-180

skipif mysql # not compatible
query I rowsort label-5050
SELECT + + SUM ( DISTINCT - - 90 ) * - 2
----
-180

query I rowsort
SELECT + + 74 + ( - 14 ) AS col0
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-5052
SELECT + 21 + + COUNT( DISTINCT - 13 )
----
22

skipif mysql # not compatible
query I rowsort label-5052
SELECT + 21 + + COUNT ( DISTINCT - 13 )
----
22

query I rowsort
SELECT - 43 + - 11 + - 28
----
-82

onlyif mysql # DIV for integer division: 
query I rowsort label-5054
SELECT ALL 13 DIV 45 + - 91
----
-91

skipif mysql # not compatible
query I rowsort label-5054
SELECT ALL 13 / 45 + - 91
----
-91

query I rowsort
SELECT ALL + - 47 * - 72 AS col1
----
3384

onlyif mysql # aggregate syntax: 
query I rowsort label-5056
SELECT DISTINCT - COUNT( * ) + - 69 + + - MIN( - - 14 ) * + 79 AS col2
----
-1176

skipif mysql # not compatible
query I rowsort label-5056
SELECT DISTINCT - COUNT ( * ) + - 69 + + - MIN ( - - 14 ) * + 79 AS col2
----
-1176

onlyif mysql # aggregate syntax: 
query I rowsort label-5057
SELECT - - SUM( + - 77 ) AS col0
----
-77

skipif mysql # not compatible
query I rowsort label-5057
SELECT - - SUM ( + - 77 ) AS col0
----
-77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5058
SELECT + 84 + - + 3 + + - COUNT( * ) DIV 41 * + SUM( DISTINCT + 18 ) AS col2
----
81

skipif mysql # not compatible
query I rowsort label-5058
SELECT + 84 + - + 3 + + - COUNT ( * ) / 41 * + SUM ( DISTINCT + 18 ) AS col2
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-5059
SELECT ALL + 78 + - - COUNT( * ) + + - 94 * + COUNT( + 15 ) + - 58 AS col0
----
-73

skipif mysql # not compatible
query I rowsort label-5059
SELECT ALL + 78 + - - COUNT ( * ) + + - 94 * + COUNT ( + 15 ) + - 58 AS col0
----
-73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5060
SELECT CASE - 16 WHEN + 28 * + 18 / + 1 THEN + - 29 / 3 ELSE NULL END + - 80 * - CAST( NULL AS SIGNED ) * - 90 * 18 + + + 60 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5060
SELECT CASE - 16 WHEN + 28 * + 18 / + 1 THEN + - 29 / 3 ELSE NULL END + - 80 * - CAST ( NULL AS INTEGER ) * - 90 * 18 + + + 60 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5061
SELECT 12 AS col2, COUNT( * ) + + SUM( + 24 )
----
12
25

skipif mysql # not compatible
query II rowsort label-5061
SELECT 12 AS col2, COUNT ( * ) + + SUM ( + 24 )
----
12
25

onlyif mysql # aggregate syntax: 
query I rowsort label-5062
SELECT ALL 46 * COUNT( * ) * 96 AS col2
----
4416

skipif mysql # not compatible
query I rowsort label-5062
SELECT ALL 46 * COUNT ( * ) * 96 AS col2
----
4416

onlyif mysql # aggregate syntax: 
query II rowsort label-5063
SELECT + 24 AS col0, - COUNT( * ) col0
----
24
-1

skipif mysql # not compatible
query II rowsort label-5063
SELECT + 24 AS col0, - COUNT ( * ) col0
----
24
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5064
SELECT ALL - CASE + - 66 WHEN - 95 * + MAX( 81 ) THEN NULL WHEN - - COUNT( * ) THEN CAST( NULL AS SIGNED ) * + 2 ELSE NULL END + + 58
----
NULL

skipif mysql # not compatible
query I rowsort label-5064
SELECT ALL - CASE + - 66 WHEN - 95 * + MAX ( 81 ) THEN NULL WHEN - - COUNT ( * ) THEN CAST ( NULL AS INTEGER ) * + 2 ELSE NULL END + + 58
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5065
SELECT DISTINCT + COUNT( * ) + 41 + - + 52 + 16 * - - 11 DIV COUNT( * ) * - - 89 * + + 57 AS col0
----
892838

skipif mysql # not compatible
query I rowsort label-5065
SELECT DISTINCT + COUNT ( * ) + 41 + - + 52 + 16 * - - 11 / COUNT ( * ) * - - 89 * + + 57 AS col0
----
892838

onlyif mysql # aggregate syntax: 
query I rowsort label-5066
SELECT DISTINCT + 64 * MIN( DISTINCT + 96 ) AS col2
----
6144

skipif mysql # not compatible
query I rowsort label-5066
SELECT DISTINCT + 64 * MIN ( DISTINCT + 96 ) AS col2
----
6144

query I rowsort
SELECT ALL + 92 - 64 col0
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-5068
SELECT 96 * MIN( DISTINCT + + 95 ) * - 78 + - 67
----
-711427

skipif mysql # not compatible
query I rowsort label-5068
SELECT 96 * MIN ( DISTINCT + + 95 ) * - 78 + - 67
----
-711427

query I rowsort
SELECT 3 + - 39 AS col1
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-5070
SELECT - 20 * 25 + + MAX( - 79 )
----
-579

skipif mysql # not compatible
query I rowsort label-5070
SELECT - 20 * 25 + + MAX ( - 79 )
----
-579

query I rowsort
SELECT DISTINCT + 10 * + 85
----
850

query I rowsort
SELECT 22 * - 3 AS col2
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-5073
SELECT ALL + ( - MIN( DISTINCT - 36 ) ) - - - COUNT( * ) + - + 97 col2
----
-62

skipif mysql # not compatible
query I rowsort label-5073
SELECT ALL + ( - MIN ( DISTINCT - 36 ) ) - - - COUNT ( * ) + - + 97 col2
----
-62

query I rowsort
SELECT 31 * + - 89 AS col1
----
-2759

onlyif mysql # aggregate syntax: 
query I rowsort label-5075
SELECT 38 + - COUNT( * ) * + 42
----
-4

skipif mysql # not compatible
query I rowsort label-5075
SELECT 38 + - COUNT ( * ) * + 42
----
-4

onlyif mysql # DIV for integer division: 
query I rowsort label-5076
SELECT ALL 55 DIV 91 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5076
SELECT ALL 55 / 91 AS col2
----
0

query I rowsort
SELECT 47 + 3 * ( 48 ) AS col1
----
191

onlyif mysql # aggregate syntax: 
query I rowsort label-5078
SELECT + 82 * + COUNT( * ) + + 51
----
133

skipif mysql # not compatible
query I rowsort label-5078
SELECT + 82 * + COUNT ( * ) + + 51
----
133

query I rowsort
SELECT 48 * 61 + 31 AS col1
----
2959

query I rowsort
SELECT ALL 13 * 48
----
624

onlyif mysql # aggregate syntax: 
query I rowsort label-5081
SELECT DISTINCT COUNT( * ) * 9 AS col0
----
9

skipif mysql # not compatible
query I rowsort label-5081
SELECT DISTINCT COUNT ( * ) * 9 AS col0
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5082
SELECT ALL + 58 + - 17 * - CASE 84 * - NULLIF ( + CAST( NULL AS SIGNED ), CAST( 57 AS SIGNED ) ) WHEN - 66 THEN NULL WHEN 43 / MAX( 56 ) THEN COALESCE ( 63, - 83, - 43 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5082
SELECT ALL + 58 + - 17 * - CASE 84 * - NULLIF ( + CAST ( NULL AS INTEGER ), CAST ( 57 AS INTEGER ) ) WHEN - 66 THEN NULL WHEN 43 / MAX ( 56 ) THEN COALESCE ( 63, - 83, - 43 ) ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT - 3 + 78 AS col2
----
75

query I rowsort
SELECT ALL 41 + + 36 * - 48 AS col1
----
-1687

onlyif mysql # DIV for integer division: 
query I rowsort label-5085
SELECT ALL 53 + 24 DIV 96
----
53

skipif mysql # not compatible
query I rowsort label-5085
SELECT ALL 53 + 24 / 96
----
53

query I rowsort
SELECT DISTINCT 12 * CASE 53 WHEN - ( - 7 ) - - 71 THEN + 19 * 63 + - 58 WHEN + ( 53 ) * - 91 THEN NULL WHEN + 3 - 3 * 47 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5087
SELECT 91 DIV COALESCE ( - 33, + COUNT( * ) ) AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-5087
SELECT 91 / COALESCE ( - 33, + COUNT ( * ) ) AS col0
----
-2

query I rowsort
SELECT 62 * 42 AS col0
----
2604

query I rowsort
SELECT ALL 5 + - 16 * 78
----
-1243

onlyif mysql # DIV for integer division: 
query I rowsort label-5090
SELECT 17 DIV - 99
----
0

skipif mysql # not compatible
query I rowsort label-5090
SELECT 17 / - 99
----
0

query I rowsort
SELECT ALL 99 + - 84 * 36 AS col0
----
-2925

query I rowsort
SELECT 88 * 76 AS col0
----
6688

onlyif mysql # aggregate syntax: 
query I rowsort label-5093
SELECT ( COUNT( * ) ) - 29 * 0
----
1

skipif mysql # not compatible
query I rowsort label-5093
SELECT ( COUNT ( * ) ) - 29 * 0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5094
SELECT DISTINCT - COUNT( 43 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-5094
SELECT DISTINCT - COUNT ( 43 ) AS col2
----
-1

query I rowsort
SELECT DISTINCT 11 * - 10 - - 32
----
-78

query I rowsort
SELECT ALL + 96 * - 17 AS col1
----
-1632

onlyif mysql # DIV for integer division: 
query I rowsort label-5097
SELECT 24 DIV ( - 63 ) + + ( + 52 ) AS col1
----
52

skipif mysql # not compatible
query I rowsort label-5097
SELECT 24 / ( - 63 ) + + ( + 52 ) AS col1
----
52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5098
SELECT ALL ( + ( + CAST( NULL AS SIGNED ) ) ) * - 82
----
NULL

skipif mysql # not compatible
query I rowsort label-5098
SELECT ALL ( + ( + CAST ( NULL AS INTEGER ) ) ) * - 82
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5099
SELECT CAST( NULL AS DECIMAL ) + 77
----
NULL

skipif mysql # not compatible
query I rowsort label-5099
SELECT CAST ( NULL AS REAL ) + 77
----
NULL

query I rowsort
SELECT 42 * 61
----
2562

onlyif mysql # aggregate syntax: 
query I rowsort label-5101
SELECT COUNT( - 25 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5101
SELECT COUNT ( - 25 ) AS col2
----
1

query I rowsort
SELECT 15 * + 29 + 21 * - 97
----
-1602

query I rowsort
SELECT 41 - - 10 AS col2
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-5104
SELECT ALL - COALESCE ( + 6, + 53, ( CASE + AVG ( 57 ) WHEN + COUNT( * ) THEN 27 WHEN - 39 + 35 THEN NULL END ) )
----
-6

skipif mysql # not compatible
query I rowsort label-5104
SELECT ALL - COALESCE ( + 6, + 53, ( CASE + AVG ( 57 ) WHEN + COUNT ( * ) THEN 27 WHEN - 39 + 35 THEN NULL END ) )
----
-6

query I rowsort
SELECT DISTINCT - + 9 * - 31
----
279

query I rowsort
SELECT + 14 + 56
----
70

query I rowsort
SELECT ALL - + ( 33 ) col1
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-5108
SELECT - 23 * SUM( 60 )
----
-1380

skipif mysql # not compatible
query I rowsort label-5108
SELECT - 23 * SUM ( 60 )
----
-1380

query I rowsort
SELECT DISTINCT - - 43 * 66
----
2838

onlyif mysql # aggregate syntax: 
query I rowsort label-5110
SELECT DISTINCT - + 18 + + SUM( - 20 )
----
-38

skipif mysql # not compatible
query I rowsort label-5110
SELECT DISTINCT - + 18 + + SUM ( - 20 )
----
-38

query I rowsort
SELECT - 80 + - 38
----
-118

onlyif mysql # DIV for integer division: 
query I rowsort label-5112
SELECT - 89 DIV + 20 AS col2
----
-4

skipif mysql # not compatible
query I rowsort label-5112
SELECT - 89 / + 20 AS col2
----
-4

query I rowsort
SELECT ALL - - 67 + - 26 AS col2
----
41

query I rowsort
SELECT - + 83 * - 62 AS col0
----
5146

onlyif mysql # aggregate syntax: 
query I rowsort label-5115
SELECT ALL + 78 + + COUNT( * ) * 47
----
125

skipif mysql # not compatible
query I rowsort label-5115
SELECT ALL + 78 + + COUNT ( * ) * 47
----
125

query I rowsort
SELECT - - 67 - 94 AS col2
----
-27

query I rowsort
SELECT ALL - + 1 * ( 34 ) AS col2
----
-34

query I rowsort
SELECT - + 92 * - 37
----
3404

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5119
SELECT ALL - + CAST( ( 19 ) AS SIGNED ) + 73 * COUNT( * ) AS col0
----
54

skipif mysql # not compatible
query I rowsort label-5119
SELECT ALL - + CAST ( ( 19 ) AS INTEGER ) + 73 * COUNT ( * ) AS col0
----
54

query I rowsort
SELECT - ( + CASE 71 WHEN 37 THEN + 39 * 51 END ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5121
SELECT - MAX( ALL COALESCE ( + 51, - 66 * 99 ) ) + - NULLIF ( - 83 + + 77, + 0 ) AS col2
----
-45

skipif mysql # not compatible
query I rowsort label-5121
SELECT - MAX ( ALL COALESCE ( + 51, - 66 * 99 ) ) + - NULLIF ( - 83 + + 77, + 0 ) AS col2
----
-45

query I rowsort
SELECT + 61 - 98 col2
----
-37

query I rowsort
SELECT DISTINCT + - 50 + 34 AS col0
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-5124
SELECT - 19 + - SUM( ALL 40 + - 27 ) AS col0
----
-32

skipif mysql # not compatible
query I rowsort label-5124
SELECT - 19 + - SUM ( ALL 40 + - 27 ) AS col0
----
-32

query I rowsort
SELECT ALL - 70 + 58
----
-12

query I rowsort
SELECT ALL 58 * 41
----
2378

query I rowsort
SELECT - 64 + - 10 AS col1
----
-74

query I rowsort
SELECT - 81 + - 92 * - 27 AS col0
----
2403

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5129
SELECT DISTINCT 93 * - - 57 * CAST( - 81 * - 99 AS SIGNED )
----
42508719

skipif mysql # not compatible
query I rowsort label-5129
SELECT DISTINCT 93 * - - 57 * CAST ( - 81 * - 99 AS INTEGER )
----
42508719

onlyif mysql # aggregate syntax: 
query I rowsort label-5130
SELECT DISTINCT - 9 * + COUNT( * )
----
-9

skipif mysql # not compatible
query I rowsort label-5130
SELECT DISTINCT - 9 * + COUNT ( * )
----
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5131
SELECT ALL + 55 - - - CASE + ( + NULLIF ( 64, ( 78 ) ) ) WHEN + CAST( + 13 AS SIGNED ) - MAX( DISTINCT 80 ) THEN NULL ELSE 62 END AS col2
----
-7

skipif mysql # not compatible
query I rowsort label-5131
SELECT ALL + 55 - - - CASE + ( + NULLIF ( 64, ( 78 ) ) ) WHEN + CAST ( + 13 AS INTEGER ) - MAX ( DISTINCT 80 ) THEN NULL ELSE 62 END AS col2
----
-7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5132
SELECT + 34 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5132
SELECT + 34 + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL - 91 - + 45
----
-136

query I rowsort
SELECT DISTINCT ( 10 ) AS col2
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-5135
SELECT DISTINCT 57 * + + COUNT( * )
----
57

skipif mysql # not compatible
query I rowsort label-5135
SELECT DISTINCT 57 * + + COUNT ( * )
----
57

query I rowsort
SELECT 92 * - 45 + 96 col0
----
-4044

onlyif mysql # aggregate syntax: 
query I rowsort label-5137
SELECT ( NULLIF ( - COUNT( * ), + 65 * + 99 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-5137
SELECT ( NULLIF ( - COUNT ( * ), + 65 * + 99 ) )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5138
SELECT + 56 / + - 90 + CASE MAX( CAST( 61 AS SIGNED ) ) WHEN 74 THEN - 33 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5138
SELECT + 56 / + - 90 + CASE MAX ( CAST ( 61 AS INTEGER ) ) WHEN 74 THEN - 33 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5139
SELECT ALL + CASE + - 61 WHEN 84 THEN NULL ELSE CAST( - 87 AS SIGNED ) + + 51 END col0
----
-36

skipif mysql # not compatible
query I rowsort label-5139
SELECT ALL + CASE + - 61 WHEN 84 THEN NULL ELSE CAST ( - 87 AS INTEGER ) + + 51 END col0
----
-36

query I rowsort
SELECT ALL 79 * 28 AS col0
----
2212

onlyif mysql # aggregate syntax: 
query I rowsort label-5141
SELECT + COUNT( DISTINCT - 30 )
----
1

skipif mysql # not compatible
query I rowsort label-5141
SELECT + COUNT ( DISTINCT - 30 )
----
1

query I rowsort
SELECT DISTINCT - 53 * - COALESCE ( 35, + 26 ) + - 22
----
1833

onlyif mysql # aggregate syntax: 
query I rowsort label-5143
SELECT ALL + - 90 * + SUM( DISTINCT 61 ) + - 29 AS col2
----
-5519

skipif mysql # not compatible
query I rowsort label-5143
SELECT ALL + - 90 * + SUM ( DISTINCT 61 ) + - 29 AS col2
----
-5519

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5144
SELECT DISTINCT - - ( 7 ) * CAST( NULL AS SIGNED ) + + 74 * 96 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5144
SELECT DISTINCT - - ( 7 ) * CAST ( NULL AS INTEGER ) + + 74 * 96 col2
----
NULL

query I rowsort
SELECT ALL - 38 * - 18 + - 13 + + 15
----
686

query I rowsort
SELECT + 10 + + ( ( + 53 ) )
----
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5147
SELECT DISTINCT + 23 * + - 93 * 56 + + ( - ( CAST( 58 AS SIGNED ) ) + + COUNT( * ) ) AS col1
----
-119841

skipif mysql # not compatible
query I rowsort label-5147
SELECT DISTINCT + 23 * + - 93 * 56 + + ( - ( CAST ( 58 AS INTEGER ) ) + + COUNT ( * ) ) AS col1
----
-119841

onlyif mysql # aggregate syntax: 
query I rowsort label-5148
SELECT - NULLIF ( + NULLIF ( 58, - COUNT( + 94 ) - + AVG ( 82 ) ), 7 * 80 ) + 76 * - 12 col1
----
-970

skipif mysql # not compatible
query I rowsort label-5148
SELECT - NULLIF ( + NULLIF ( 58, - COUNT ( + 94 ) - + AVG ( 82 ) ), 7 * 80 ) + 76 * - 12 col1
----
-970

query I rowsort
SELECT + 80 * + 70 * 37 AS col2
----
207200

query I rowsort
SELECT ALL + - 73 * - 46 + + 96 * 36 AS col0
----
6814

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5151
SELECT + - SUM( + + 25 ) DIV - 40 col2
----
0

skipif mysql # not compatible
query I rowsort label-5151
SELECT + - SUM ( + + 25 ) / - 40 col2
----
0

query I rowsort
SELECT ALL 48 * - 95 + - ( - 44 + 57 * 32 )
----
-6340

query I rowsort
SELECT - + 5 + + + 44 * + 10
----
435

query I rowsort
SELECT ALL - + 60 - + 57 + + 66 AS col1
----
-51

query I rowsort
SELECT ALL + + 98 * + 20 - - 68 AS col2
----
2028

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5156
SELECT ALL - CAST( NULL AS DECIMAL ) * COUNT( 32 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5156
SELECT ALL - CAST ( NULL AS REAL ) * COUNT ( 32 ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5157
SELECT ALL CAST( NULL AS SIGNED ) AS col2, + 32 * + 22 AS col1
----
NULL
704

skipif mysql # not compatible
query II rowsort label-5157
SELECT ALL CAST ( NULL AS INTEGER ) AS col2, + 32 * + 22 AS col1
----
NULL
704

query I rowsort
SELECT DISTINCT + 41 - - + CASE - - 7 WHEN ( + 88 ) * 16 THEN - 47 ELSE NULL END + 7 / 81
----
NULL

query I rowsort
SELECT ALL CASE - 19 WHEN + 80 THEN 97 * 76 ELSE + 61 END AS col0
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-5160
SELECT ALL ( + 19 ) - 85 + NULLIF ( + COUNT( * ), 74 - 88 ) * 76
----
10

skipif mysql # not compatible
query I rowsort label-5160
SELECT ALL ( + 19 ) - 85 + NULLIF ( + COUNT ( * ), 74 - 88 ) * 76
----
10

query I rowsort
SELECT DISTINCT ( - - 92 ) AS col1
----
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5162
SELECT ALL ( - COUNT( DISTINCT - CAST( 72 AS SIGNED ) ) )
----
-1

skipif mysql # not compatible
query I rowsort label-5162
SELECT ALL ( - COUNT ( DISTINCT - CAST ( 72 AS INTEGER ) ) )
----
-1

query I rowsort
SELECT - 28 * + ( - 95 )
----
2660

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5164
SELECT ALL CAST( - 58 AS SIGNED ) col0
----
-58

skipif mysql # not compatible
query I rowsort label-5164
SELECT ALL CAST ( - 58 AS INTEGER ) col0
----
-58

query II rowsort
SELECT 16 AS col2, 19
----
16
19

onlyif mysql # aggregate syntax: 
query I rowsort label-5166
SELECT - 92 * MAX( DISTINCT 24 ) col0
----
-2208

skipif mysql # not compatible
query I rowsort label-5166
SELECT - 92 * MAX ( DISTINCT 24 ) col0
----
-2208

query II rowsort
SELECT 32 AS col2, 68 AS col0
----
32
68

query I rowsort
SELECT ALL ( + + 29 ) AS col2
----
29

query I rowsort
SELECT ALL 38 * + 84 * + + 42 * - 43
----
-5764752

onlyif mysql # aggregate syntax: 
query I rowsort label-5170
SELECT ALL + MAX( DISTINCT + - 84 ) * + - 40
----
3360

skipif mysql # not compatible
query I rowsort label-5170
SELECT ALL + MAX ( DISTINCT + - 84 ) * + - 40
----
3360

query I rowsort
SELECT + 62 * + 87 * 21
----
113274

onlyif mysql # aggregate syntax: 
query I rowsort label-5172
SELECT + COALESCE ( + 51, 24 + COUNT( * ) * - 89 )
----
51

skipif mysql # not compatible
query I rowsort label-5172
SELECT + COALESCE ( + 51, 24 + COUNT ( * ) * - 89 )
----
51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5173
SELECT ALL - ( - 72 ) DIV - + 2 + + SUM( 29 )
----
-7

skipif mysql # not compatible
query I rowsort label-5173
SELECT ALL - ( - 72 ) / - + 2 + + SUM ( 29 )
----
-7

query I rowsort
SELECT ALL + 34 + - NULLIF ( + 68, 88 )
----
-34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5175
SELECT 31 + + + ( + - CAST( + 27 AS SIGNED ) ) AS col0
----
4

skipif mysql # not compatible
query I rowsort label-5175
SELECT 31 + + + ( + - CAST ( + 27 AS INTEGER ) ) AS col0
----
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5176
SELECT 37 * CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5176
SELECT 37 * CAST ( NULL AS INTEGER ) col1
----
NULL

query I rowsort
SELECT 36 + 67 + - 99 * + 2 AS col2
----
-95

query I rowsort
SELECT + 18 - 56 AS col1
----
-38

query I rowsort
SELECT ( 35 ) * + 40 AS col2
----
1400

onlyif mysql # DIV for integer division: 
query I rowsort label-5180
SELECT ALL + 47 DIV + 65
----
0

skipif mysql # not compatible
query I rowsort label-5180
SELECT ALL + 47 / + 65
----
0

query I rowsort
SELECT ALL 11 + - 75 AS col2
----
-64

onlyif mysql # DIV for integer division: 
query I rowsort label-5182
SELECT DISTINCT + COALESCE ( + 23, + 71, 11, 41 ) + 61 DIV 54
----
24

skipif mysql # not compatible
query I rowsort label-5182
SELECT DISTINCT + COALESCE ( + 23, + 71, 11, 41 ) + 61 / 54
----
24

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5183
SELECT + CAST( - 46 AS SIGNED ) * + 71 + + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-5183
SELECT + CAST ( - 46 AS INTEGER ) * + 71 + + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5184
SELECT DISTINCT + 44 + - 38 DIV + 85 col0
----
44

skipif mysql # not compatible
query I rowsort label-5184
SELECT DISTINCT + 44 + - 38 / + 85 col0
----
44

onlyif mysql # DIV for integer division: 
query I rowsort label-5185
SELECT DISTINCT - 39 + - 30 + - 46 DIV - 25
----
-68

skipif mysql # not compatible
query I rowsort label-5185
SELECT DISTINCT - 39 + - 30 + - 46 / - 25
----
-68

query I rowsort
SELECT DISTINCT + 64 + - 40
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-5187
SELECT - COUNT( + 73 ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-5187
SELECT - COUNT ( + 73 ) col2
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5188
SELECT ALL + 95 * + CAST( 48 AS SIGNED ) * + 87 + - 92 AS col0
----
396628

skipif mysql # not compatible
query I rowsort label-5188
SELECT ALL + 95 * + CAST ( 48 AS INTEGER ) * + 87 + - 92 AS col0
----
396628

query I rowsort
SELECT 84 + + 75
----
159

onlyif mysql # aggregate syntax: 
query I rowsort label-5190
SELECT DISTINCT + 62 * - 31 * - ( MIN( - 94 ) ) * - COUNT( * ) AS col2
----
180668

skipif mysql # not compatible
query I rowsort label-5190
SELECT DISTINCT + 62 * - 31 * - ( MIN ( - 94 ) ) * - COUNT ( * ) AS col2
----
180668

onlyif mysql # aggregate syntax: 
query I rowsort label-5191
SELECT ALL - CASE 56 WHEN + + COUNT( - COALESCE ( 60, 39, + 95 * - 19 ) ) + + 15 THEN + 0 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5191
SELECT ALL - CASE 56 WHEN + + COUNT ( - COALESCE ( 60, 39, + 95 * - 19 ) ) + + 15 THEN + 0 ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5192
SELECT DISTINCT CASE + - 80 WHEN + 82 + 45 THEN + COUNT( * ) WHEN 9 - 57 THEN NULL WHEN - CASE 33 WHEN + COUNT( * ) THEN NULL WHEN 45 THEN + SUM( - 26 ) END - + 48 THEN - 10 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5192
SELECT DISTINCT CASE + - 80 WHEN + 82 + 45 THEN + COUNT ( * ) WHEN 9 - 57 THEN NULL WHEN - CASE 33 WHEN + COUNT ( * ) THEN NULL WHEN 45 THEN + SUM ( - 26 ) END - + 48 THEN - 10 END AS col2
----
NULL

query I rowsort
SELECT 53 * - 72 * - 77 + 30 * - 69
----
291762

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5194
SELECT ALL + 40 AS col1, - CAST( NULL AS SIGNED ) / - 10 + 67
----
40
NULL

skipif mysql # not compatible
query II rowsort label-5194
SELECT ALL + 40 AS col1, - CAST ( NULL AS INTEGER ) / - 10 + 67
----
40
NULL

query I rowsort
SELECT ALL + 68 - - 0 col2
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-5196
SELECT 87 + 76 - + MIN( + 31 ) + ( 36 ) * + 70
----
2652

skipif mysql # not compatible
query I rowsort label-5196
SELECT 87 + 76 - + MIN ( + 31 ) + ( 36 ) * + 70
----
2652

query I rowsort
SELECT 26 * + 51 * + - 39 AS col1
----
-51714

onlyif mysql # DIV for integer division: 
query I rowsort label-5198
SELECT ALL COALESCE ( - 80, + 52, - - 31 ) DIV 77 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-5198
SELECT ALL COALESCE ( - 80, + 52, - - 31 ) / 77 AS col1
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5199
SELECT CASE - 9 WHEN - 78 THEN - 89 WHEN CAST( + CASE - CAST( NULL AS SIGNED ) WHEN 55 * - 89 THEN 95 / ( 19 ) - - 70 * + 38 END AS SIGNED ) THEN NULL WHEN - 19 - - 47 THEN NULL END + 42 * - 34 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5199
SELECT CASE - 9 WHEN - 78 THEN - 89 WHEN CAST ( + CASE - CAST ( NULL AS INTEGER ) WHEN 55 * - 89 THEN 95 / ( 19 ) - - 70 * + 38 END AS INTEGER ) THEN NULL WHEN - 19 - - 47 THEN NULL END + 42 * - 34 AS col1
----
NULL

query I rowsort
SELECT 32 - + 41 AS col0
----
-9

query I rowsort
SELECT 42 - 61
----
-19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5202
SELECT CAST( NULL AS SIGNED ) + + + SUM( ALL CAST( NULL AS SIGNED ) ) / - - 82 * ( - 36 * + 99 ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5202
SELECT CAST ( NULL AS INTEGER ) + + + SUM ( ALL CAST ( NULL AS INTEGER ) ) / - - 82 * ( - 36 * + 99 ) col0
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5203
SELECT DISTINCT ( + CAST( NULL AS DECIMAL ) ) * + - 12 + + 8 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5203
SELECT DISTINCT ( + CAST ( NULL AS REAL ) ) * + - 12 + + 8 col0
----
NULL

query I rowsort
SELECT ALL + 2 + 87
----
89

query I rowsort
SELECT 41 + + 42 AS col2
----
83

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5206
SELECT ALL - 2 + + COUNT( ALL + - CAST( NULL AS DECIMAL ) ) AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-5206
SELECT ALL - 2 + + COUNT ( ALL + - CAST ( NULL AS REAL ) ) AS col2
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-5207
SELECT 31 * COUNT( * ) AS col2
----
31

skipif mysql # not compatible
query I rowsort label-5207
SELECT 31 * COUNT ( * ) AS col2
----
31

query I rowsort
SELECT 41 * - + 53 AS col2
----
-2173

query I rowsort
SELECT ALL - COALESCE ( + 10, - 71, 70 + 97 )
----
-10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5210
SELECT 81 / + - COALESCE ( - + NULLIF ( - 49, COUNT( * ) + - 74 * 2 ), + 12, - ( AVG ( ( - 70 ) ) ) ) / COUNT( * ) + - COALESCE ( CAST( NULL AS SIGNED ), + 98 / + 7 + 77 / + CAST( NULL AS SIGNED ) ) / + ( 37 * 61 + CAST( CAST( - COUNT( - 0 ) AS SIGNED ) AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5210
SELECT 81 / + - COALESCE ( - + NULLIF ( - 49, COUNT ( * ) + - 74 * 2 ), + 12, - ( AVG ( ( - 70 ) ) ) ) / COUNT ( * ) + - COALESCE ( CAST ( NULL AS INTEGER ), + 98 / + 7 + 77 / + CAST ( NULL AS INTEGER ) ) / + ( 37 * 61 + CAST ( CAST ( - COUNT ( - 0 ) AS INTEGER ) AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5211
SELECT DISTINCT + + 23 * + + COUNT( * ) - + + 93
----
-70

skipif mysql # not compatible
query I rowsort label-5211
SELECT DISTINCT + + 23 * + + COUNT ( * ) - + + 93
----
-70

query I rowsort
SELECT ALL + + 98 + + 97
----
195

query I rowsort
SELECT + 78 + - + 82 * - - 77 + 65 AS col2
----
-6171

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5214
SELECT + CAST( 60 AS SIGNED )
----
60

skipif mysql # not compatible
query I rowsort label-5214
SELECT + CAST ( 60 AS INTEGER )
----
60

query I rowsort
SELECT + 35 * 39 col0
----
1365

query I rowsort
SELECT ALL + + 81 * + 28
----
2268

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5217
SELECT + COUNT( * ) * CAST( - MAX( ALL + - 48 ) AS SIGNED ) - NULLIF ( - COUNT( * ), COUNT( * ) ) * 69 AS col0
----
117

skipif mysql # not compatible
query I rowsort label-5217
SELECT + COUNT ( * ) * CAST ( - MAX ( ALL + - 48 ) AS INTEGER ) - NULLIF ( - COUNT ( * ), COUNT ( * ) ) * 69 AS col0
----
117

onlyif mysql # aggregate syntax: 
query I rowsort label-5218
SELECT COALESCE ( + 1, - - 10, + COUNT( * ) ) * 51 + - 80 col0
----
-29

skipif mysql # not compatible
query I rowsort label-5218
SELECT COALESCE ( + 1, - - 10, + COUNT ( * ) ) * 51 + - 80 col0
----
-29

query I rowsort
SELECT DISTINCT 97 - - 24 + + - 15 AS col1
----
106

query I rowsort
SELECT ALL - - COALESCE ( - 90, - - 9 * ( + 6 ) )
----
-90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5221
SELECT 30 * + NULLIF ( ( COUNT( * ) ), 61 DIV + 43 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5221
SELECT 30 * + NULLIF ( ( COUNT ( * ) ), 61 / + 43 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5222
SELECT ALL - + 27 - - + NULLIF ( 61, - 55 * + COALESCE ( - 7 + + 35, 55 * - 5 - + 63 / - MIN( 76 ), - 75 + SUM( + 59 ) ) )
----
34

skipif mysql # not compatible
query I rowsort label-5222
SELECT ALL - + 27 - - + NULLIF ( 61, - 55 * + COALESCE ( - 7 + + 35, 55 * - 5 - + 63 / - MIN ( 76 ), - 75 + SUM ( + 59 ) ) )
----
34

onlyif mysql # DIV for integer division: 
query II rowsort label-5223
SELECT + 8 + 82 col0, 82 DIV + + NULLIF ( 57, 6 ) + + 96
----
90
97

skipif mysql # not compatible
query II rowsort label-5223
SELECT + 8 + 82 col0, 82 / + + NULLIF ( 57, 6 ) + + 96
----
90
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5224
SELECT DISTINCT 47 * + - COALESCE ( 65, + - MAX( 47 ) * 22, 39 )
----
-3055

skipif mysql # not compatible
query I rowsort label-5224
SELECT DISTINCT 47 * + - COALESCE ( 65, + - MAX ( 47 ) * 22, 39 )
----
-3055

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5225
SELECT ALL - COUNT( * ) * + COUNT( * ) - - + SUM( ALL + COALESCE ( - 82, 29 ) ) DIV 87
----
-1

skipif mysql # not compatible
query I rowsort label-5225
SELECT ALL - COUNT ( * ) * + COUNT ( * ) - - + SUM ( ALL + COALESCE ( - 82, 29 ) ) / 87
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5226
SELECT MAX( + ( 17 ) ) + + + 14 + COUNT( * ) AS col2
----
32

skipif mysql # not compatible
query I rowsort label-5226
SELECT MAX ( + ( 17 ) ) + + + 14 + COUNT ( * ) AS col2
----
32

onlyif mysql # DIV for integer division: 
query I rowsort label-5227
SELECT 90 DIV + 80 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5227
SELECT 90 / + 80 AS col2
----
1

query I rowsort
SELECT 26 * 28 AS col2
----
728

query I rowsort
SELECT ALL 17 * 58
----
986

onlyif mysql # aggregate syntax: 
query I rowsort label-5230
SELECT DISTINCT CASE WHEN ( - - 17 ) NOT BETWEEN NULL AND - CASE + 75 WHEN + MAX( 23 ) + - 62 THEN + 28 * 77 WHEN + 56 THEN NULL END THEN + NULLIF ( 12, ( ( 36 ) ) - AVG ( 99 ) ) END * - 5 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5230
SELECT DISTINCT CASE WHEN ( - - 17 ) NOT BETWEEN NULL AND - CASE + 75 WHEN + MAX ( 23 ) + - 62 THEN + 28 * 77 WHEN + 56 THEN NULL END THEN + NULLIF ( 12, ( ( 36 ) ) - AVG ( 99 ) ) END * - 5 AS col0
----
NULL

query I rowsort
SELECT ( - 24 ) * 91 * + - 76
----
165984

onlyif mysql # aggregate syntax: 
query II rowsort label-5232
SELECT - COUNT( * ), - CASE - 76 WHEN + - 93 * + - ( 85 ) * 74 THEN + 7 ELSE NULL END col0
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-5232
SELECT - COUNT ( * ), - CASE - 76 WHEN + - 93 * + - ( 85 ) * 74 THEN + 7 ELSE NULL END col0
----
-1
NULL

query I rowsort
SELECT 51 + 43
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-5234
SELECT ( - + COUNT( - 67 ) ) * 13 AS col2
----
-13

skipif mysql # not compatible
query I rowsort label-5234
SELECT ( - + COUNT ( - 67 ) ) * 13 AS col2
----
-13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5235
SELECT ALL CAST( 22 AS SIGNED ) + - 16 - - 64 - + 99 * COUNT( * ) AS col1
----
-29

skipif mysql # not compatible
query I rowsort label-5235
SELECT ALL CAST ( 22 AS INTEGER ) + - 16 - - 64 - + 99 * COUNT ( * ) AS col1
----
-29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5236
SELECT CAST( + 67 AS SIGNED ) * CASE - 6 WHEN + 99 - + 94 THEN NULL WHEN + 38 THEN - 73 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5236
SELECT CAST ( + 67 AS INTEGER ) * CASE - 6 WHEN + 99 - + 94 THEN NULL WHEN + 38 THEN - 73 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5237
SELECT ALL COALESCE ( + 0, - 93 - - 24 + - 52 + ( 40 ), ( + COUNT( * ) ) * CASE - 46 + 37 WHEN - 69 THEN - 14 ELSE NULL END ) + 10
----
10

skipif mysql # not compatible
query I rowsort label-5237
SELECT ALL COALESCE ( + 0, - 93 - - 24 + - 52 + ( 40 ), ( + COUNT ( * ) ) * CASE - 46 + 37 WHEN - 69 THEN - 14 ELSE NULL END ) + 10
----
10

query I rowsort
SELECT + 9 - - - ( - 27 ) AS col2
----
36

query I rowsort
SELECT + 85 * - + 48
----
-4080

query I rowsort
SELECT - 91 * - 99 AS col1
----
9009

query I rowsort
SELECT ALL 97 * - + 20 * - 49 col1
----
95060

onlyif mysql # DIV for integer division: 
query I rowsort label-5242
SELECT DISTINCT 26 DIV + 4 AS col0
----
6

skipif mysql # not compatible
query I rowsort label-5242
SELECT DISTINCT 26 / + 4 AS col0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-5243
SELECT DISTINCT MAX( ALL 79 )
----
79

skipif mysql # not compatible
query I rowsort label-5243
SELECT DISTINCT MAX ( ALL 79 )
----
79

query I rowsort
SELECT ALL - + 58 + + - CASE + 65 WHEN + 88 THEN + 27 + 49 END * 65 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5245
SELECT DISTINCT + CASE - 31 WHEN 72 / + - 1 * COUNT( * ) THEN NULL ELSE - CAST( NULL AS SIGNED ) * - 50 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5245
SELECT DISTINCT + CASE - 31 WHEN 72 / + - 1 * COUNT ( * ) THEN NULL ELSE - CAST ( NULL AS INTEGER ) * - 50 END
----
NULL

query I rowsort
SELECT - - 50 * + 38
----
1900

onlyif mysql # DIV for integer division: 
query I rowsort label-5247
SELECT DISTINCT - - 83 DIV + 97 - 3 + + 94 - + COALESCE ( - 22, - 70, + 58 ) AS col2
----
113

skipif mysql # not compatible
query I rowsort label-5247
SELECT DISTINCT - - 83 / + 97 - 3 + + 94 - + COALESCE ( - 22, - 70, + 58 ) AS col2
----
113

onlyif mysql # DIV for integer division: 
query II rowsort label-5248
SELECT + 66 col2, 13 + - NULLIF ( - 75, + NULLIF ( 29, + 56 ) ) + + 88 DIV - 15 AS col1
----
66
83

skipif mysql # not compatible
query II rowsort label-5248
SELECT + 66 col2, 13 + - NULLIF ( - 75, + NULLIF ( 29, + 56 ) ) + + 88 / - 15 AS col1
----
66
83

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5249
SELECT ALL AVG ( ALL 77 ) * + - ( 32 ) - - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-5249
SELECT ALL AVG ( ALL 77 ) * + - ( 32 ) - - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5250
SELECT + ( - + 54 ) * - COUNT( * ) AS col0
----
54

skipif mysql # not compatible
query I rowsort label-5250
SELECT + ( - + 54 ) * - COUNT ( * ) AS col0
----
54

query I rowsort
SELECT + 33 + - + 17 * - 32 + + 92 col1
----
669

onlyif mysql # aggregate syntax: 
query I rowsort label-5252
SELECT - COUNT( * ) * + - NULLIF ( - + 11, + CASE + 83 WHEN 58 THEN 58 WHEN 21 * 26 THEN NULL ELSE NULL END + 54 ) + - 19 AS col2
----
-30

skipif mysql # not compatible
query I rowsort label-5252
SELECT - COUNT ( * ) * + - NULLIF ( - + 11, + CASE + 83 WHEN 58 THEN 58 WHEN 21 * 26 THEN NULL ELSE NULL END + 54 ) + - 19 AS col2
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-5253
SELECT - MIN( 34 ) AS col1
----
-34

skipif mysql # not compatible
query I rowsort label-5253
SELECT - MIN ( 34 ) AS col1
----
-34

query I rowsort
SELECT - 16 - - 43
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-5255
SELECT DISTINCT + COUNT( ALL - 35 )
----
1

skipif mysql # not compatible
query I rowsort label-5255
SELECT DISTINCT + COUNT ( ALL - 35 )
----
1

query I rowsort
SELECT DISTINCT + - COALESCE ( + + 2, + + 71 ) col0
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-5257
SELECT ALL + - 53 * + + COUNT( * )
----
-53

skipif mysql # not compatible
query I rowsort label-5257
SELECT ALL + - 53 * + + COUNT ( * )
----
-53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5258
SELECT + COALESCE ( ( 65 ), - + 70, CAST( - 40 AS SIGNED ) + ( + 92 ) )
----
65

skipif mysql # not compatible
query I rowsort label-5258
SELECT + COALESCE ( ( 65 ), - + 70, CAST ( - 40 AS INTEGER ) + ( + 92 ) )
----
65

onlyif mysql # aggregate syntax: 
query II rowsort label-5259
SELECT DISTINCT + - 57 AS col1, COUNT( * )
----
-57
1

skipif mysql # not compatible
query II rowsort label-5259
SELECT DISTINCT + - 57 AS col1, COUNT ( * )
----
-57
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5260
SELECT - + COUNT( ALL + + 56 ) + - NULLIF ( - ( + COUNT( * ) ), CASE NULLIF ( - 46, 46 ) WHEN - 99 THEN NULL WHEN + MAX( ALL 41 ) + - COUNT( * ) THEN 64 END * + COUNT( * ) ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5260
SELECT - + COUNT ( ALL + + 56 ) + - NULLIF ( - ( + COUNT ( * ) ), CASE NULLIF ( - 46, 46 ) WHEN - 99 THEN NULL WHEN + MAX ( ALL 41 ) + - COUNT ( * ) THEN 64 END * + COUNT ( * ) ) AS col1
----
0

query I rowsort
SELECT ALL + 63 * - - 31 AS col2
----
1953

query I rowsort
SELECT ALL - 52 * - + 14 + + 33 + 71 col2
----
832

onlyif mysql # aggregate syntax: 
query II rowsort label-5263
SELECT 16 AS col2, COUNT( * ) AS col0
----
16
1

skipif mysql # not compatible
query II rowsort label-5263
SELECT 16 AS col2, COUNT ( * ) AS col0
----
16
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5264
SELECT + MIN( ALL + - 83 ) * - 49 + + 95
----
4162

skipif mysql # not compatible
query I rowsort label-5264
SELECT + MIN ( ALL + - 83 ) * - 49 + + 95
----
4162

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-5265
SELECT + 87 DIV - + 17, + COUNT( DISTINCT 68 ) * CASE - CASE - 13 WHEN + ( - COUNT( * ) ) THEN 58 WHEN + ( 89 ) THEN NULL END WHEN + 27 * + 86 THEN 49 * + CAST( NULL AS DECIMAL ) + 7 * 75 WHEN + 24 THEN 72 * 28 END col2
----
-5
NULL

skipif mysql # not compatible
query II rowsort label-5265
SELECT + 87 / - + 17, + COUNT ( DISTINCT 68 ) * CASE - CASE - 13 WHEN + ( - COUNT ( * ) ) THEN 58 WHEN + ( 89 ) THEN NULL END WHEN + 27 * + 86 THEN 49 * + CAST ( NULL AS REAL ) + 7 * 75 WHEN + 24 THEN 72 * 28 END col2
----
-5
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5266
SELECT - 99 * + COUNT( * ) * 40 * - NULLIF ( + 72, - - 72 ) * 29
----
NULL

skipif mysql # not compatible
query I rowsort label-5266
SELECT - 99 * + COUNT ( * ) * 40 * - NULLIF ( + 72, - - 72 ) * 29
----
NULL

query I rowsort
SELECT + 5 * + - 71 * 47 col1
----
-16685

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5268
SELECT COUNT( * ) AS col1, + CAST( + ( - - 35 ) AS SIGNED )
----
1
35

skipif mysql # not compatible
query II rowsort label-5268
SELECT COUNT ( * ) AS col1, + CAST ( + ( - - 35 ) AS INTEGER )
----
1
35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5269
SELECT ALL + COALESCE ( - 0, 41, + 31 * NULLIF ( - + NULLIF ( 53, + 30 ), COUNT( * ) ) ) * CAST( 86 AS SIGNED ) + + CAST( + ( COUNT( * ) ) AS SIGNED ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5269
SELECT ALL + COALESCE ( - 0, 41, + 31 * NULLIF ( - + NULLIF ( 53, + 30 ), COUNT ( * ) ) ) * CAST ( 86 AS INTEGER ) + + CAST ( + ( COUNT ( * ) ) AS INTEGER ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5270
SELECT - 93 - - SUM( - 90 ) AS col1
----
-183

skipif mysql # not compatible
query I rowsort label-5270
SELECT - 93 - - SUM ( - 90 ) AS col1
----
-183

query I rowsort
SELECT ALL + 52 * + 81 + + 3 * + - 25 * - 58
----
8562

onlyif mysql # aggregate syntax: 
query I rowsort label-5272
SELECT - 69 - - 5 * - + 22 * - COUNT( ALL + 74 ) AS col0
----
41

skipif mysql # not compatible
query I rowsort label-5272
SELECT - 69 - - 5 * - + 22 * - COUNT ( ALL + 74 ) AS col0
----
41

query I rowsort
SELECT ALL ( - - ( 47 ) ) AS col2
----
47

query I rowsort
SELECT DISTINCT - ( - 42 ) + - - 56 AS col1
----
98

onlyif mysql # aggregate syntax: 
query II rowsort label-5275
SELECT ALL 15 * + - COUNT( * ) * - 84 * + 17 AS col1, - 56 - + - CASE - 80 WHEN + 48 THEN NULL ELSE - 74 END + 50 AS col1
----
21420
-80

skipif mysql # not compatible
query II rowsort label-5275
SELECT ALL 15 * + - COUNT ( * ) * - 84 * + 17 AS col1, - 56 - + - CASE - 80 WHEN + 48 THEN NULL ELSE - 74 END + 50 AS col1
----
21420
-80

onlyif mysql # DIV for integer division: 
query I rowsort label-5276
SELECT + 21 DIV - 68
----
0

skipif mysql # not compatible
query I rowsort label-5276
SELECT + 21 / - 68
----
0

query I rowsort
SELECT ALL - 2 + 47 AS col0
----
45

query I rowsort
SELECT - 33 + - - 71 + + + 88 AS col1
----
126

onlyif mysql # aggregate syntax: 
query I rowsort label-5279
SELECT - COUNT( * ) + 87 - 90 + - 17 AS col2
----
-21

skipif mysql # not compatible
query I rowsort label-5279
SELECT - COUNT ( * ) + 87 - 90 + - 17 AS col2
----
-21

query I rowsort
SELECT + ( + - 71 ) - 33 + + - 85 + - - 62 * 46 * 17
----
48295

query I rowsort
SELECT ALL 21 * + 41
----
861

query I rowsort
SELECT - 85 + - 52 AS col0
----
-137

query I rowsort
SELECT ALL 56 * - 46 AS col0
----
-2576

query I rowsort
SELECT + 62 + 36 * - 85 * 9 + 10 AS col1
----
-27468

onlyif mysql # aggregate syntax: 
query I rowsort label-5285
SELECT DISTINCT + 85 + CASE 13 WHEN + COUNT( * ) THEN 59 * 16 WHEN + MAX( ALL - 73 ) THEN NULL END - + 1 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5285
SELECT DISTINCT + 85 + CASE 13 WHEN + COUNT ( * ) THEN 59 * 16 WHEN + MAX ( ALL - 73 ) THEN NULL END - + 1 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5286
SELECT ALL - CAST( NULL AS SIGNED ) * + COUNT( ALL + 6 ) / 73 + + + 29 - NULLIF ( 21, + 54 ) * NULLIF ( 12 + - COUNT( * ) * 75, MAX( ALL + ( 9 ) ) * + 84 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5286
SELECT ALL - CAST ( NULL AS INTEGER ) * + COUNT ( ALL + 6 ) / 73 + + + 29 - NULLIF ( 21, + 54 ) * NULLIF ( 12 + - COUNT ( * ) * 75, MAX ( ALL + ( 9 ) ) * + 84 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5287
SELECT ALL 49 - - MAX( ALL + 24 ) AS col2
----
73

skipif mysql # not compatible
query I rowsort label-5287
SELECT ALL 49 - - MAX ( ALL + 24 ) AS col2
----
73

query I rowsort
SELECT DISTINCT + NULLIF ( - + 30, - 7 + - + 90 ) col0
----
-30

query I rowsort
SELECT + 78 + 90
----
168

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5290
SELECT + CAST( NULL AS SIGNED ) / + 11 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5290
SELECT + CAST ( NULL AS INTEGER ) / + 11 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5291
SELECT ALL - NULLIF ( + - 58, 27 ) DIV MAX( + 31 ) + + COUNT( * ) AS col0
----
2

skipif mysql # not compatible
query I rowsort label-5291
SELECT ALL - NULLIF ( + - 58, 27 ) / MAX ( + 31 ) + + COUNT ( * ) AS col0
----
2

query I rowsort
SELECT + - 2 * 94
----
-188

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5293
SELECT DISTINCT SUM( ALL CAST( NULL AS SIGNED ) ) * - 76 * - - 14
----
NULL

skipif mysql # not compatible
query I rowsort label-5293
SELECT DISTINCT SUM ( ALL CAST ( NULL AS INTEGER ) ) * - 76 * - - 14
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5294
SELECT - 95 AS col1, CAST( NULL AS DECIMAL ) AS col1
----
-95
NULL

skipif mysql # not compatible
query II rowsort label-5294
SELECT - 95 AS col1, CAST ( NULL AS REAL ) AS col1
----
-95
NULL

query I rowsort
SELECT ALL - ( - 64 ) * 36 AS col2
----
2304

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5296
SELECT + - 52 DIV ( SUM( + - ( - 29 ) ) ) * - 28 AS col1
----
28

skipif mysql # not compatible
query I rowsort label-5296
SELECT + - 52 / ( SUM ( + - ( - 29 ) ) ) * - 28 AS col1
----
28

query I rowsort
SELECT ALL 23 * 32 AS col0
----
736

onlyif mysql # DIV for integer division: 
query I rowsort label-5298
SELECT DISTINCT - 14 * - ( + 64 ) DIV ( - + NULLIF ( + 1, - 80 ) ) + + 12
----
-884

skipif mysql # not compatible
query I rowsort label-5298
SELECT DISTINCT - 14 * - ( + 64 ) / ( - + NULLIF ( + 1, - 80 ) ) + + 12
----
-884

query I rowsort
SELECT DISTINCT 46 * - - COALESCE ( - 71, 25 + 65 + 42 * 20 ) * 22 AS col1
----
-71852

query I rowsort
SELECT - 90 * - 79
----
7110

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5301
SELECT DISTINCT + 10 col2, ( - + COUNT( ALL 74 ) ) DIV + 5 * + 31 + + 89 * + COUNT( * )
----
10
89

skipif mysql # not compatible
query II rowsort label-5301
SELECT DISTINCT + 10 col2, ( - + COUNT ( ALL 74 ) ) / + 5 * + 31 + + 89 * + COUNT ( * )
----
10
89

onlyif mysql # aggregate syntax: 
query I rowsort label-5302
SELECT + - COUNT( * ) + - 7 - + COUNT( * ) + 22 * 40 + + 94 * 84
----
8767

skipif mysql # not compatible
query I rowsort label-5302
SELECT + - COUNT ( * ) + - 7 - + COUNT ( * ) + 22 * 40 + + 94 * 84
----
8767

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5303
SELECT - - 69 * - 8 - - - 41 / - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5303
SELECT - - 69 * - 8 - - - 41 / - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5304
SELECT ALL + + 47 DIV - 2
----
-23

skipif mysql # not compatible
query I rowsort label-5304
SELECT ALL + + 47 / - 2
----
-23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5305
SELECT - 38 * + + CASE - 65 WHEN 19 + - - 53 / - ( - 52 ) THEN 14 * + 87 WHEN 10 THEN 68 * - CAST( CAST( + 85 AS DECIMAL ) AS SIGNED ) ELSE NULL END + MAX( ALL COALESCE ( 89, - 68 + - 84, 80 * 51 ) - + 26 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5305
SELECT - 38 * + + CASE - 65 WHEN 19 + - - 53 / - ( - 52 ) THEN 14 * + 87 WHEN 10 THEN 68 * - CAST ( CAST ( + 85 AS REAL ) AS INTEGER ) ELSE NULL END + MAX ( ALL COALESCE ( 89, - 68 + - 84, 80 * 51 ) - + 26 ) AS col0
----
NULL

query I rowsort
SELECT - + 20 + + - 32 + - 46
----
-98

onlyif mysql # DIV for integer division: 
query I rowsort label-5307
SELECT ALL + 58 * + 70 + - + 13 DIV + 54
----
4060

skipif mysql # not compatible
query I rowsort label-5307
SELECT ALL + 58 * + 70 + - + 13 / + 54
----
4060

query I rowsort
SELECT - 69 + 6 + + 46 AS col2
----
-17

query II rowsort
SELECT ( - + 95 ) AS col0, 8 - - 48 AS col2
----
-95
56

query I rowsort
SELECT ALL 17 * - + 64 * - 29 + + 61
----
31613

query II rowsort
SELECT - 45 + + - 80, 20 col0
----
-125
20

onlyif mysql # aggregate syntax: 
query I rowsort label-5312
SELECT ALL + 81 * - COUNT( * ) + 79
----
-2

skipif mysql # not compatible
query I rowsort label-5312
SELECT ALL + 81 * - COUNT ( * ) + 79
----
-2

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5313
SELECT + 36 * + COALESCE ( - ( + ( 6 ) ), + 8 + + - 7 + - CASE CAST( - 88 AS DECIMAL ) WHEN - 92 THEN - 89 * 71 ELSE NULL END, - 24 * + COUNT( * ) ) + + 25
----
-191

skipif mysql # not compatible
query I rowsort label-5313
SELECT + 36 * + COALESCE ( - ( + ( 6 ) ), + 8 + + - 7 + - CASE CAST ( - 88 AS REAL ) WHEN - 92 THEN - 89 * 71 ELSE NULL END, - 24 * + COUNT ( * ) ) + + 25
----
-191

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5314
SELECT DISTINCT - CAST( NULL AS SIGNED ) + 95 / + - 99 + + + 5
----
NULL

skipif mysql # not compatible
query I rowsort label-5314
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + 95 / + - 99 + + + 5
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5315
SELECT 34 * - 74 + COUNT( * ) col1
----
-2515

skipif mysql # not compatible
query I rowsort label-5315
SELECT 34 * - 74 + COUNT ( * ) col1
----
-2515

query I rowsort
SELECT DISTINCT - 98 * - - 4 AS col2
----
-392

onlyif mysql # aggregate syntax: 
query II rowsort label-5317
SELECT DISTINCT - 89 + - 56, - COUNT( - 13 ) AS col2
----
-145
-1

skipif mysql # not compatible
query II rowsort label-5317
SELECT DISTINCT - 89 + - 56, - COUNT ( - 13 ) AS col2
----
-145
-1

query I rowsort
SELECT 57 * - + 95
----
-5415

query I rowsort
SELECT DISTINCT 8 - - - 95 * - 15 * + 6 + 13 AS col0
----
8571

onlyif mysql # aggregate syntax: 
query I rowsort label-5320
SELECT ALL 26 * COUNT( * )
----
26

skipif mysql # not compatible
query I rowsort label-5320
SELECT ALL 26 * COUNT ( * )
----
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-5321
SELECT ALL + 71 - 15 AS col1, CAST( NULL AS SIGNED ) + - CAST( 45 AS DECIMAL ) * + 87 * - CASE 61 WHEN 55 + 42 THEN NULL WHEN MIN( DISTINCT - 74 ) THEN - 68 ELSE NULL END AS col1
----
56
NULL

skipif mysql # not compatible
query II rowsort label-5321
SELECT ALL + 71 - 15 AS col1, CAST ( NULL AS INTEGER ) + - CAST ( 45 AS REAL ) * + 87 * - CASE 61 WHEN 55 + 42 THEN NULL WHEN MIN ( DISTINCT - 74 ) THEN - 68 ELSE NULL END AS col1
----
56
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5322
SELECT + 88 - + CASE + COALESCE ( - ( + - 19 ), - 6 ) WHEN - - 26 + 54 THEN NULL WHEN 13 + 88 THEN + 18 ELSE 67 * CASE WHEN COUNT( * ) * 77 IN ( + CAST( NULL AS DECIMAL ) * 38 ) THEN + 27 + 26 * - COUNT( * ) END END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5322
SELECT + 88 - + CASE + COALESCE ( - ( + - 19 ), - 6 ) WHEN - - 26 + 54 THEN NULL WHEN 13 + 88 THEN + 18 ELSE 67 * CASE WHEN COUNT ( * ) * 77 IN ( + CAST ( NULL AS REAL ) * 38 ) THEN + 27 + 26 * - COUNT ( * ) END END col2
----
NULL

query I rowsort
SELECT - 62 * - 33 AS col1
----
2046

onlyif mysql # DIV for integer division: 
query I rowsort label-5324
SELECT + 71 DIV + ( 41 ) - - 12 + 84 * + 76
----
6397

skipif mysql # not compatible
query I rowsort label-5324
SELECT + 71 / + ( 41 ) - - 12 + 84 * + 76
----
6397

onlyif mysql # aggregate syntax: 
query I rowsort label-5325
SELECT ALL + 37 * - 33 + - + MAX( ALL 51 ) - - 83 * - - 30 + - 17 * COUNT( * )
----
1201

skipif mysql # not compatible
query I rowsort label-5325
SELECT ALL + 37 * - 33 + - + MAX ( ALL 51 ) - - 83 * - - 30 + - 17 * COUNT ( * )
----
1201

onlyif mysql # aggregate syntax: 
query I rowsort label-5326
SELECT ALL + 78 * COUNT( * ) * - + 6
----
-468

skipif mysql # not compatible
query I rowsort label-5326
SELECT ALL + 78 * COUNT ( * ) * - + 6
----
-468

query I rowsort
SELECT 35 * 84 * + 50 + + 49 + + 8
----
147057

query I rowsort
SELECT - ( + 11 )
----
-11

onlyif mysql # aggregate syntax: 
query II rowsort label-5329
SELECT DISTINCT MIN( ALL + - 67 ) AS col1, + COALESCE ( - + ( - 27 ), 1 ) + 99 AS col2
----
-67
126

skipif mysql # not compatible
query II rowsort label-5329
SELECT DISTINCT MIN ( ALL + - 67 ) AS col1, + COALESCE ( - + ( - 27 ), 1 ) + 99 AS col2
----
-67
126

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5330
SELECT ALL - 18 * CAST( NULL AS SIGNED ) / - 9 + - + 97 * + - 7 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5330
SELECT ALL - 18 * CAST ( NULL AS INTEGER ) / - 9 + - + 97 * + - 7 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5331
SELECT 28 - NULLIF ( 82, + COUNT( * ) * + 56 + + + 70 ) + - CASE ( + SUM( CASE - 64 WHEN 9 / CASE + ( + 56 ) WHEN - ( ( 59 ) ) THEN 94 ELSE NULL END THEN 65 ELSE NULL END ) ) WHEN + MIN( DISTINCT ( 35 ) ) THEN + 61 - - 77 WHEN 99 * - 17 THEN NULL ELSE + 70 - - CASE - NULLIF ( 46, - 90 ) WHEN 69 * 35 + + 75 THEN 80 * ( 0 * 19 ) END / + 86 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5331
SELECT 28 - NULLIF ( 82, + COUNT ( * ) * + 56 + + + 70 ) + - CASE ( + SUM ( CASE - 64 WHEN 9 / CASE + ( + 56 ) WHEN - ( ( 59 ) ) THEN 94 ELSE NULL END THEN 65 ELSE NULL END ) ) WHEN + MIN ( DISTINCT ( 35 ) ) THEN + 61 - - 77 WHEN 99 * - 17 THEN NULL ELSE + 70 - - CASE - NULLIF ( 46, - 90 ) WHEN 69 * 35 + + 75 THEN 80 * ( 0 * 19 ) END / + 86 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5332
SELECT 74 - CAST( 55 AS SIGNED )
----
19

skipif mysql # not compatible
query I rowsort label-5332
SELECT 74 - CAST ( 55 AS INTEGER )
----
19

query I rowsort
SELECT - 78 * - + 29
----
2262

onlyif mysql # aggregate syntax: 
query I rowsort label-5334
SELECT ALL + COALESCE ( + 87, + 24, COUNT( * ) + 25 ) + + + 97 + - 56 * + 14 AS col2
----
-600

skipif mysql # not compatible
query I rowsort label-5334
SELECT ALL + COALESCE ( + 87, + 24, COUNT ( * ) + 25 ) + + + 97 + - 56 * + 14 AS col2
----
-600

onlyif mysql # aggregate syntax: 
query I rowsort label-5335
SELECT 53 + SUM( ALL - 66 ) AS col0
----
-13

skipif mysql # not compatible
query I rowsort label-5335
SELECT 53 + SUM ( ALL - 66 ) AS col0
----
-13

query I rowsort
SELECT COALESCE ( + 19, + 92 )
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-5337
SELECT ALL 93 + ( - 11 ) * + 84 * + 55 * - + COUNT( * ) AS col0
----
50913

skipif mysql # not compatible
query I rowsort label-5337
SELECT ALL 93 + ( - 11 ) * + 84 * + 55 * - + COUNT ( * ) AS col0
----
50913

onlyif mysql # aggregate syntax: 
query I rowsort label-5338
SELECT ALL CASE + 10 WHEN COUNT( + - 92 ) THEN NULL WHEN 26 THEN - 35 + 19 * + ( 82 ) * - COUNT( * ) ELSE NULL END + + 23
----
NULL

skipif mysql # not compatible
query I rowsort label-5338
SELECT ALL CASE + 10 WHEN COUNT ( + - 92 ) THEN NULL WHEN 26 THEN - 35 + 19 * + ( 82 ) * - COUNT ( * ) ELSE NULL END + + 23
----
NULL

query I rowsort
SELECT 22 - + - 89 + - + 6
----
105

query I rowsort
SELECT COALESCE ( - 60, + 41 ) * - 53
----
3180

query I rowsort
SELECT - 94 * NULLIF ( - 91, 38 ) + CASE + + 4 WHEN 87 THEN NULL WHEN + 38 THEN + ( 35 ) END col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5342
SELECT 67 DIV COUNT( * ) * - SUM( - 35 )
----
2345

skipif mysql # not compatible
query I rowsort label-5342
SELECT 67 / COUNT ( * ) * - SUM ( - 35 )
----
2345

onlyif mysql # aggregate syntax: 
query II rowsort label-5343
SELECT + 31 AS col2, + MAX( ALL + 30 )
----
31
30

skipif mysql # not compatible
query II rowsort label-5343
SELECT + 31 AS col2, + MAX ( ALL + 30 )
----
31
30

onlyif mysql # aggregate syntax: 
query I rowsort label-5344
SELECT COUNT( * ) + + - COALESCE ( + 28, - 40 - 29 + 32, - 72 ) * - 27 * COUNT( * ) col1
----
757

skipif mysql # not compatible
query I rowsort label-5344
SELECT COUNT ( * ) + + - COALESCE ( + 28, - 40 - 29 + 32, - 72 ) * - 27 * COUNT ( * ) col1
----
757

onlyif mysql # aggregate syntax: 
query I rowsort label-5345
SELECT 76 * - - COUNT( * )
----
76

skipif mysql # not compatible
query I rowsort label-5345
SELECT 76 * - - COUNT ( * )
----
76

query I rowsort
SELECT ALL + 39 - 12 AS col0
----
27

onlyif mysql # aggregate syntax: 
query II rowsort label-5347
SELECT - 42 AS col0, - 86 * - 81 + - COUNT( * ) AS col1
----
-42
6965

skipif mysql # not compatible
query II rowsort label-5347
SELECT - 42 AS col0, - 86 * - 81 + - COUNT ( * ) AS col1
----
-42
6965

onlyif mysql # aggregate syntax: 
query I rowsort label-5348
SELECT 66 - - SUM( 3 )
----
69

skipif mysql # not compatible
query I rowsort label-5348
SELECT 66 - - SUM ( 3 )
----
69

query I rowsort
SELECT DISTINCT - 67 * + 40 AS col1
----
-2680

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5350
SELECT 76 * + AVG ( DISTINCT + CAST( NULL AS SIGNED ) ) + - + CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5350
SELECT 76 * + AVG ( DISTINCT + CAST ( NULL AS INTEGER ) ) + - + CAST ( NULL AS INTEGER ) col1
----
NULL

query I rowsort
SELECT 92 * 41
----
3772

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5352
SELECT DISTINCT + 67 * CAST( 62 AS SIGNED )
----
4154

skipif mysql # not compatible
query I rowsort label-5352
SELECT DISTINCT + 67 * CAST ( 62 AS INTEGER )
----
4154

onlyif mysql # aggregate syntax: 
query I rowsort label-5353
SELECT 71 - - COUNT( * ) * - 59 + - SUM( - 67 ) * + 30 * - + 90 * + 25
----
-4522488

skipif mysql # not compatible
query I rowsort label-5353
SELECT 71 - - COUNT ( * ) * - 59 + - SUM ( - 67 ) * + 30 * - + 90 * + 25
----
-4522488

onlyif mysql # aggregate syntax: 
query I rowsort label-5354
SELECT DISTINCT + MAX( DISTINCT - - 85 ) * 40 + - SUM( ALL 70 ) - 16 * - - 4 AS col0
----
3266

skipif mysql # not compatible
query I rowsort label-5354
SELECT DISTINCT + MAX ( DISTINCT - - 85 ) * 40 + - SUM ( ALL 70 ) - 16 * - - 4 AS col0
----
3266

onlyif mysql # aggregate syntax: 
query II rowsort label-5355
SELECT DISTINCT + COUNT( * ) AS col2, + 27 col1
----
1
27

skipif mysql # not compatible
query II rowsort label-5355
SELECT DISTINCT + COUNT ( * ) AS col2, + 27 col1
----
1
27

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5356
SELECT DISTINCT + CAST( NULL AS SIGNED ), - 96 AS col2
----
NULL
-96

skipif mysql # not compatible
query II rowsort label-5356
SELECT DISTINCT + CAST ( NULL AS INTEGER ), - 96 AS col2
----
NULL
-96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5357
SELECT ALL - ( SUM( DISTINCT - 94 ) ) DIV - 44
----
-2

skipif mysql # not compatible
query I rowsort label-5357
SELECT ALL - ( SUM ( DISTINCT - 94 ) ) / - 44
----
-2

onlyif mysql # aggregate syntax: 
query II rowsort label-5358
SELECT ALL SUM( ALL + 44 ) + + + COUNT( * ) AS col0, 64
----
45
64

skipif mysql # not compatible
query II rowsort label-5358
SELECT ALL SUM ( ALL + 44 ) + + + COUNT ( * ) AS col0, 64
----
45
64

onlyif mysql # aggregate syntax: 
query I rowsort label-5359
SELECT 42 + + - MIN( - 6 ) + MAX( - - 84 )
----
132

skipif mysql # not compatible
query I rowsort label-5359
SELECT 42 + + - MIN ( - 6 ) + MAX ( - - 84 )
----
132

onlyif mysql # aggregate syntax: 
query I rowsort label-5360
SELECT ALL CASE - - COUNT( * ) WHEN 29 THEN - 35 / 2 + - 40 + - 47 ELSE - 23 END
----
-23

skipif mysql # not compatible
query I rowsort label-5360
SELECT ALL CASE - - COUNT ( * ) WHEN 29 THEN - 35 / 2 + - 40 + - 47 ELSE - 23 END
----
-23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5361
SELECT DISTINCT + - 5 DIV - - NULLIF ( + 20, COUNT( * ) * + + ( - 37 ) ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5361
SELECT DISTINCT + - 5 / - - NULLIF ( + 20, COUNT ( * ) * + + ( - 37 ) ) AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5362
SELECT + CAST( 48 AS SIGNED ) + + ( + 29 ) * + 83 AS col0
----
2455

skipif mysql # not compatible
query I rowsort label-5362
SELECT + CAST ( 48 AS INTEGER ) + + ( + 29 ) * + 83 AS col0
----
2455

query I rowsort
SELECT - ( + - 70 ) AS col0
----
70

query I rowsort
SELECT ALL + 64 + 90 col0
----
154

query I rowsort
SELECT ALL - + 92 + - 43 AS col1
----
-135

query I rowsort
SELECT - - ( + + 51 ) AS col2
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-5367
SELECT ALL - - MAX( ALL + 10 ) * + 42 + + - 13 AS col1
----
407

skipif mysql # not compatible
query I rowsort label-5367
SELECT ALL - - MAX ( ALL + 10 ) * + 42 + + - 13 AS col1
----
407

onlyif mysql # aggregate syntax: 
query II rowsort label-5368
SELECT COUNT( * ) AS col1, 60 AS col2
----
1
60

skipif mysql # not compatible
query II rowsort label-5368
SELECT COUNT ( * ) AS col1, 60 AS col2
----
1
60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5369
SELECT DISTINCT - 82 * + 50 + - CAST( NULL AS SIGNED ) + 91 * - + SUM( - 8 ) + + 0 - - CASE 81 WHEN 79 / + 7 + + 7 THEN COUNT( * ) WHEN + SUM( ALL - 56 ) + 59 * + 61 THEN + 8 * - 52 ELSE + 30 END * 22
----
NULL

skipif mysql # not compatible
query I rowsort label-5369
SELECT DISTINCT - 82 * + 50 + - CAST ( NULL AS INTEGER ) + 91 * - + SUM ( - 8 ) + + 0 - - CASE 81 WHEN 79 / + 7 + + 7 THEN COUNT ( * ) WHEN + SUM ( ALL - 56 ) + 59 * + 61 THEN + 8 * - 52 ELSE + 30 END * 22
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5370
SELECT 6 * + - 2 + 67 + + 1 + - 38 - - 30 + + 60 * + MAX( DISTINCT CAST( NULL AS SIGNED ) ) + - ( 52 - + 0 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5370
SELECT 6 * + - 2 + 67 + + 1 + - 38 - - 30 + + 60 * + MAX ( DISTINCT CAST ( NULL AS INTEGER ) ) + - ( 52 - + 0 ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5371
SELECT - 10 + + 8 AS col2, CAST( - 2 AS SIGNED )
----
-2
-2

skipif mysql # not compatible
query II rowsort label-5371
SELECT - 10 + + 8 AS col2, CAST ( - 2 AS INTEGER )
----
-2
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-5372
SELECT - MAX( + 14 ) * 81 - - - COALESCE ( COUNT( * ), NULLIF ( - 68, - CASE + 60 WHEN + 83 - + 9 THEN ( - 80 ) END ) ) AS col0
----
-1135

skipif mysql # not compatible
query I rowsort label-5372
SELECT - MAX ( + 14 ) * 81 - - - COALESCE ( COUNT ( * ), NULLIF ( - 68, - CASE + 60 WHEN + 83 - + 9 THEN ( - 80 ) END ) ) AS col0
----
-1135

onlyif mysql # aggregate syntax: 
query I rowsort label-5373
SELECT + MIN( ALL + + 78 ) AS col2
----
78

skipif mysql # not compatible
query I rowsort label-5373
SELECT + MIN ( ALL + + 78 ) AS col2
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-5374
SELECT + ( 14 ) + + ( - - 31 ) + - + 46 * COUNT( * ) * + + COUNT( * ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-5374
SELECT + ( 14 ) + + ( - - 31 ) + - + 46 * COUNT ( * ) * + + COUNT ( * ) AS col2
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5375
SELECT DISTINCT + CAST( 97 AS SIGNED ) AS col2
----
97

skipif mysql # not compatible
query I rowsort label-5375
SELECT DISTINCT + CAST ( 97 AS INTEGER ) AS col2
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5376
SELECT ALL + SUM( + + 46 )
----
46

skipif mysql # not compatible
query I rowsort label-5376
SELECT ALL + SUM ( + + 46 )
----
46

query I rowsort
SELECT ALL 50 * 72 AS col0
----
3600

query I rowsort
SELECT ALL CASE + 45 WHEN 56 THEN - 38 + 55 * + + ( - - 53 ) WHEN + + 70 + 35 THEN NULL END * - 70 - ( ( - 8 ) + 66 * COALESCE ( ( 44 ), 96 ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5379
SELECT + COUNT( * ) + + 19 * + 0
----
1

skipif mysql # not compatible
query I rowsort label-5379
SELECT + COUNT ( * ) + + 19 * + 0
----
1

query II rowsort
SELECT ALL - 71 - 21 AS col1, + 43
----
-92
43

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5381
SELECT + CAST( NULL AS DECIMAL ) * + + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5381
SELECT + CAST ( NULL AS REAL ) * + + COUNT ( * ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5382
SELECT + 26 DIV - + 31 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5382
SELECT + 26 / - + 31 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5383
SELECT MIN( DISTINCT - 32 )
----
-32

skipif mysql # not compatible
query I rowsort label-5383
SELECT MIN ( DISTINCT - 32 )
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-5384
SELECT - 33 * - 27 + + + COUNT( * )
----
892

skipif mysql # not compatible
query I rowsort label-5384
SELECT - 33 * - 27 + + + COUNT ( * )
----
892

query I rowsort
SELECT + 73 * - 6 AS col1
----
-438

query I rowsort
SELECT - 78 + - CASE + 27 WHEN 87 THEN + 69 END + 19
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5387
SELECT + - ( + + 32 ) DIV 45 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5387
SELECT + - ( + + 32 ) / 45 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5388
SELECT DISTINCT - COALESCE ( + 93, - 63 * MIN( ALL + + 68 ) * - COUNT( * ) + 15 * - 26, + 64 ) col2
----
-93

skipif mysql # not compatible
query I rowsort label-5388
SELECT DISTINCT - COALESCE ( + 93, - 63 * MIN ( ALL + + 68 ) * - COUNT ( * ) + 15 * - 26, + 64 ) col2
----
-93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5389
SELECT - - ( + 71 ), 91 + - + ( CAST( COUNT( * ) AS SIGNED ) ) - 52 + + 91 + 47 + NULLIF ( - COUNT( * ), + ( - 84 ) * 39 ) * 0 * + 86 AS col1
----
71
176

skipif mysql # not compatible
query II rowsort label-5389
SELECT - - ( + 71 ), 91 + - + ( CAST ( COUNT ( * ) AS INTEGER ) ) - 52 + + 91 + 47 + NULLIF ( - COUNT ( * ), + ( - 84 ) * 39 ) * 0 * + 86 AS col1
----
71
176

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5390
SELECT ALL + + ( 0 ) + - 2 + - - COUNT( * ) DIV + - 54 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-5390
SELECT ALL + + ( 0 ) + - 2 + - - COUNT ( * ) / + - 54 AS col2
----
-2

query I rowsort
SELECT - + 90 * 16
----
-1440

query I rowsort
SELECT DISTINCT + 68 + + - 20 AS col0
----
48

query I rowsort
SELECT + 0 - 11 + 59 AS col0
----
48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5394
SELECT ALL - COALESCE ( + - COUNT( * ), 66 + 19 + + 34 + - + ( - 66 ) * - + ( + 91 ) - COUNT( * ) DIV 60 )
----
1

skipif mysql # not compatible
query I rowsort label-5394
SELECT ALL - COALESCE ( + - COUNT ( * ), 66 + 19 + + 34 + - + ( - 66 ) * - + ( + 91 ) - COUNT ( * ) / 60 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5395
SELECT ALL 97 + SUM( - ( - 55 ) ) * - 55 AS col2
----
-2928

skipif mysql # not compatible
query I rowsort label-5395
SELECT ALL 97 + SUM ( - ( - 55 ) ) * - 55 AS col2
----
-2928

query II rowsort
SELECT - + 63 * - 99 col0, 61
----
6237
61

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5397
SELECT - - MIN( + 81 ) - - CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5397
SELECT - - MIN ( + 81 ) - - CAST ( NULL AS REAL ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5398
SELECT - CAST( NULL AS SIGNED ) * - 66 * + 4
----
NULL

skipif mysql # not compatible
query I rowsort label-5398
SELECT - CAST ( NULL AS INTEGER ) * - 66 * + 4
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5399
SELECT ALL - 75 DIV 58 * COUNT( * ) * 4 AS col0
----
-4

skipif mysql # not compatible
query I rowsort label-5399
SELECT ALL - 75 / 58 * COUNT ( * ) * 4 AS col0
----
-4

query II rowsort
SELECT + 63, - 10 AS col2
----
63
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-5401
SELECT + SUM( ALL - 27 ) col2
----
-27

skipif mysql # not compatible
query I rowsort label-5401
SELECT + SUM ( ALL - 27 ) col2
----
-27

query I rowsort
SELECT DISTINCT - ( + + 50 ) * + + 76 AS col1
----
-3800

query I rowsort
SELECT - 69 + + 62
----
-7

query I rowsort
SELECT - 87 * 14
----
-1218

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5405
SELECT + COALESCE ( - COALESCE ( + + ( - + 66 ), - 40 DIV + 8 + - + 67 + COALESCE ( + CASE - 16 WHEN COALESCE ( - 89, 22 + - 79, 28 DIV - 68 ) * COALESCE ( + SUM( + 74 ) + - 15, 95 * 37, 18 * - COUNT( * ) ) THEN + 92 * - 2 + - 88 ELSE NULL END, + 61 ) ), + COUNT( * ) ) AS col0
----
66

skipif mysql # not compatible
query I rowsort label-5405
SELECT + COALESCE ( - COALESCE ( + + ( - + 66 ), - 40 / + 8 + - + 67 + COALESCE ( + CASE - 16 WHEN COALESCE ( - 89, 22 + - 79, 28 / - 68 ) * COALESCE ( + SUM ( + 74 ) + - 15, 95 * 37, 18 * - COUNT ( * ) ) THEN + 92 * - 2 + - 88 ELSE NULL END, + 61 ) ), + COUNT ( * ) ) AS col0
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-5406
SELECT ALL + 84 * COUNT( * ) * - 93 col2
----
-7812

skipif mysql # not compatible
query I rowsort label-5406
SELECT ALL + 84 * COUNT ( * ) * - 93 col2
----
-7812

query I rowsort
SELECT ( + - 16 ) AS col1
----
-16

query I rowsort
SELECT + ( - - 6 ) + - 7
----
-1

query I rowsort
SELECT ALL + 85 * + 86
----
7310

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5410
SELECT CASE 55 WHEN + + 28 * + + 66 THEN 9 - + 12 WHEN + 71 + - 41 + - CAST( + ( - 18 ) AS SIGNED ) + 57 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5410
SELECT CASE 55 WHEN + + 28 * + + 66 THEN 9 - + 12 WHEN + 71 + - 41 + - CAST ( + ( - 18 ) AS INTEGER ) + 57 THEN NULL END
----
NULL

query I rowsort
SELECT ALL 43 * - 20
----
-860

onlyif mysql # aggregate syntax: 
query I rowsort label-5412
SELECT ALL 72 * + 90 / 46 + + + CASE - 56 WHEN - 75 * + COUNT( * ) THEN + 58 WHEN + - 61 THEN + 74 END + - 8
----
NULL

skipif mysql # not compatible
query I rowsort label-5412
SELECT ALL 72 * + 90 / 46 + + + CASE - 56 WHEN - 75 * + COUNT ( * ) THEN + 58 WHEN + - 61 THEN + 74 END + - 8
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5413
SELECT ALL - 47 * COUNT( * ) * - - CAST( NULL AS SIGNED ) * - COUNT( * ) * + 38 * CASE + 63 WHEN 25 THEN + 69 WHEN 92 * 26 THEN NULL ELSE NULL END + 76 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5413
SELECT ALL - 47 * COUNT ( * ) * - - CAST ( NULL AS INTEGER ) * - COUNT ( * ) * + 38 * CASE + 63 WHEN 25 THEN + 69 WHEN 92 * 26 THEN NULL ELSE NULL END + 76 AS col2
----
NULL

query I rowsort
SELECT ALL - 18 * 5 + + ( + + 89 )
----
-1

query I rowsort
SELECT + 71 + - + NULLIF ( 72, + 15 )
----
-1

query I rowsort
SELECT ALL + ( + - 20 )
----
-20

query I rowsort
SELECT + - 84 + - 51 AS col1
----
-135

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5418
SELECT ALL + CAST( NULL AS SIGNED ) + 86 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5418
SELECT ALL + CAST ( NULL AS INTEGER ) + 86 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5419
SELECT DISTINCT 85 + COUNT( * ) AS col1
----
86

skipif mysql # not compatible
query I rowsort label-5419
SELECT DISTINCT 85 + COUNT ( * ) AS col1
----
86

query II rowsort
SELECT ALL - 69 col1, - 0
----
-69
0

query I rowsort
SELECT ALL + NULLIF ( + - 94, + 26 * - 44 ) + 72 + - 89 * - 84 + - 26 - + + 98
----
7330

onlyif mysql # aggregate syntax: 
query I rowsort label-5422
SELECT + 34 + + + COUNT( * ) + - ( - 84 )
----
119

skipif mysql # not compatible
query I rowsort label-5422
SELECT + 34 + + + COUNT ( * ) + - ( - 84 )
----
119

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5423
SELECT - 47 + + + COUNT( - 99 ) + - + SUM( - 91 ) AS col0, 4 - + CASE - + 16 WHEN + 83 * - 14 + - CASE 32 + + 86 * + NULLIF ( COUNT( * ) * + 93, + ( 7 ) ) WHEN COALESCE ( 31, - MAX( ALL - 10 ), 58 ) * + 27 THEN + 49 / - 93 END + + CAST( NULL AS SIGNED ) THEN NULL WHEN 85 * ( - 4 ) THEN 87 - 36 END AS col1
----
45
NULL

skipif mysql # not compatible
query II rowsort label-5423
SELECT - 47 + + + COUNT ( - 99 ) + - + SUM ( - 91 ) AS col0, 4 - + CASE - + 16 WHEN + 83 * - 14 + - CASE 32 + + 86 * + NULLIF ( COUNT ( * ) * + 93, + ( 7 ) ) WHEN COALESCE ( 31, - MAX ( ALL - 10 ), 58 ) * + 27 THEN + 49 / - 93 END + + CAST ( NULL AS INTEGER ) THEN NULL WHEN 85 * ( - 4 ) THEN 87 - 36 END AS col1
----
45
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5424
SELECT 20 + + 48 * - - 47 + 91 + SUM( + 88 ) + ( - 56 ) * - + COALESCE ( + + 30, + 96 )
----
4135

skipif mysql # not compatible
query I rowsort label-5424
SELECT 20 + + 48 * - - 47 + 91 + SUM ( + 88 ) + ( - 56 ) * - + COALESCE ( + + 30, + 96 )
----
4135

query I rowsort
SELECT - 0 * - 53 AS col2
----
0

query I rowsort
SELECT 31 + - - 14
----
45

query II rowsort
SELECT - 61, 0 AS col1
----
-61
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5428
SELECT 25 col1, + 99 * - + COUNT( * )
----
25
-99

skipif mysql # not compatible
query II rowsort label-5428
SELECT 25 col1, + 99 * - + COUNT ( * )
----
25
-99

query II rowsort
SELECT 30 col1, - 6
----
30
-6

query I rowsort
SELECT DISTINCT - NULLIF ( ( - 47 ), - 17 * - 7 ) AS col2
----
47

query I rowsort
SELECT DISTINCT 86 - - + 99
----
185

query II rowsort
SELECT ALL - ( + 51 ) col2, 19
----
-51
19

query I rowsort
SELECT 66 + 13 AS col2
----
79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5434
SELECT DISTINCT - COALESCE ( + + ( - CAST( NULL AS SIGNED ) ), ( - 75 ) * COUNT( ALL - 58 ) )
----
75

skipif mysql # not compatible
query I rowsort label-5434
SELECT DISTINCT - COALESCE ( + + ( - CAST ( NULL AS INTEGER ) ), ( - 75 ) * COUNT ( ALL - 58 ) )
----
75

onlyif mysql # aggregate syntax: 
query II rowsort label-5435
SELECT + 82 AS col0, ( - COUNT( * ) )
----
82
-1

skipif mysql # not compatible
query II rowsort label-5435
SELECT + 82 AS col0, ( - COUNT ( * ) )
----
82
-1

query II rowsort
SELECT 97 AS col1, + 70 AS col2
----
97
70

onlyif mysql # DIV for integer division: 
query I rowsort label-5437
SELECT + 44 * - 78 + 25 * - 53 + + 9 + - - 43 DIV - ( + + 97 ) AS col2
----
-4748

skipif mysql # not compatible
query I rowsort label-5437
SELECT + 44 * - 78 + 25 * - 53 + + 9 + - - 43 / - ( + + 97 ) AS col2
----
-4748

onlyif mysql # aggregate syntax: 
query II rowsort label-5438
SELECT ALL - ( + COUNT( * ) ), COUNT( * ) + - 2 * - 80 col1
----
-1
161

skipif mysql # not compatible
query II rowsort label-5438
SELECT ALL - ( + COUNT ( * ) ), COUNT ( * ) + - 2 * - 80 col1
----
-1
161

query I rowsort
SELECT 66 * + - 59 AS col0
----
-3894

onlyif mysql # DIV for integer division: 
query I rowsort label-5440
SELECT 44 DIV + + 33 + 36 AS col2
----
37

skipif mysql # not compatible
query I rowsort label-5440
SELECT 44 / + + 33 + 36 AS col2
----
37

query I rowsort
SELECT DISTINCT - 8 * + 80 * - + 36 * - - 11
----
253440

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5442
SELECT COALESCE ( - + CAST( NULL AS SIGNED ), + - 27 ) + + + 71 + - - 54 * - 41
----
-2170

skipif mysql # not compatible
query I rowsort label-5442
SELECT COALESCE ( - + CAST ( NULL AS INTEGER ), + - 27 ) + + + 71 + - - 54 * - 41
----
-2170

onlyif mysql # DIV for integer division: 
query I rowsort label-5443
SELECT 85 DIV - 90 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5443
SELECT 85 / - 90 AS col0
----
0

query I rowsort
SELECT ALL 37 + + 91
----
128

query I rowsort
SELECT 1 + + 64 * + 69
----
4417

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5446
SELECT DISTINCT - NULLIF ( + COALESCE ( - + 25, - 80 * + 2 * - 81 ), - CAST( NULL AS SIGNED ) ) + + + NULLIF ( + 4, 98 )
----
29

skipif mysql # not compatible
query I rowsort label-5446
SELECT DISTINCT - NULLIF ( + COALESCE ( - + 25, - 80 * + 2 * - 81 ), - CAST ( NULL AS INTEGER ) ) + + + NULLIF ( + 4, 98 )
----
29

onlyif mysql # aggregate syntax: 
query II rowsort label-5447
SELECT + 48 AS col2, 93 * + 18 + + COUNT( * )
----
48
1675

skipif mysql # not compatible
query II rowsort label-5447
SELECT + 48 AS col2, 93 * + 18 + + COUNT ( * )
----
48
1675

onlyif mysql # aggregate syntax: 
query II rowsort label-5448
SELECT ALL - - ( + 41 ) + + + 1 + + + 32 AS col0, CASE + 52 WHEN + 37 THEN NULL WHEN COUNT( * ) THEN COALESCE ( 22, - 40 + 32 ) ELSE NULL END * - 73
----
74
NULL

skipif mysql # not compatible
query II rowsort label-5448
SELECT ALL - - ( + 41 ) + + + 1 + + + 32 AS col0, CASE + 52 WHEN + 37 THEN NULL WHEN COUNT ( * ) THEN COALESCE ( 22, - 40 + 32 ) ELSE NULL END * - 73
----
74
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5449
SELECT + MAX( + 3 ) AS col2
----
3

skipif mysql # not compatible
query I rowsort label-5449
SELECT + MAX ( + 3 ) AS col2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5450
SELECT ( - - COUNT( * ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5450
SELECT ( - - COUNT ( * ) ) AS col2
----
1

query I rowsort
SELECT ALL + NULLIF ( - 47, - - 5 ) AS col1
----
-47

query I rowsort
SELECT - + ( 90 ) AS col2
----
-90

query I rowsort
SELECT 5 * + 18
----
90

onlyif mysql # aggregate syntax: 
query II rowsort label-5454
SELECT ALL 35 - - - 86 + + - COUNT( * ) * + 0 AS col2, 22 col2
----
-51
22

skipif mysql # not compatible
query II rowsort label-5454
SELECT ALL 35 - - - 86 + + - COUNT ( * ) * + 0 AS col2, 22 col2
----
-51
22

query II rowsort
SELECT ALL - 94 AS col1, 70 AS col2
----
-94
70

query I rowsort
SELECT ALL 48 * + 64
----
3072

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5457
SELECT 97 DIV 82 + - - COUNT( * ) col0
----
2

skipif mysql # not compatible
query I rowsort label-5457
SELECT 97 / 82 + - - COUNT ( * ) col0
----
2

query I rowsort
SELECT DISTINCT + ( - + 68 ) * + 47 AS col1
----
-3196

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5459
SELECT ALL - 92 * - CASE 96 WHEN - CAST( 55 AS DECIMAL ) THEN NULL ELSE 77 END, 36 * + + NULLIF ( - 57, + - 91 ) AS col0
----
7084
-2052

skipif mysql # not compatible
query II rowsort label-5459
SELECT ALL - 92 * - CASE 96 WHEN - CAST ( 55 AS REAL ) THEN NULL ELSE 77 END, 36 * + + NULLIF ( - 57, + - 91 ) AS col0
----
7084
-2052

query I rowsort
SELECT + 54 * + 2
----
108

query I rowsort
SELECT + 98 - + - 16 - - + 2 AS col0
----
116

onlyif mysql # aggregate syntax: 
query I rowsort label-5462
SELECT COUNT( * ) + - + 26 * + 93
----
-2417

skipif mysql # not compatible
query I rowsort label-5462
SELECT COUNT ( * ) + - + 26 * + 93
----
-2417

query I rowsort
SELECT ( - - 19 ) - + - ( 49 ) * - + 99 * 58 AS col0
----
-281339

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5464
SELECT CAST( - AVG ( DISTINCT - 46 ) AS SIGNED ) * 88 - 4 AS col1
----
4044

skipif mysql # not compatible
query I rowsort label-5464
SELECT CAST ( - AVG ( DISTINCT - 46 ) AS INTEGER ) * 88 - 4 AS col1
----
4044

onlyif mysql # aggregate syntax: 
query I rowsort label-5465
SELECT 85 * + COUNT( * ) * - 67 * - + 59
----
336005

skipif mysql # not compatible
query I rowsort label-5465
SELECT 85 * + COUNT ( * ) * - 67 * - + 59
----
336005

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5466
SELECT + SUM( ALL + 96 ), CASE - SUM( + 72 ) WHEN + 10 * COUNT( * ) * - 77 + - + ( - 72 ) - - + 58 + - 24 THEN NULL WHEN 86 * - 73 THEN 63 * - 49 ELSE NULL END * CAST( 35 * CASE + COUNT( * ) WHEN - 74 / 26 - CAST( NULL AS SIGNED ) * - 93 THEN 22 + - COALESCE ( + 1, - 33 ) ELSE NULL END AS SIGNED ) + 65 col0
----
96
NULL

skipif mysql # not compatible
query II rowsort label-5466
SELECT + SUM ( ALL + 96 ), CASE - SUM ( + 72 ) WHEN + 10 * COUNT ( * ) * - 77 + - + ( - 72 ) - - + 58 + - 24 THEN NULL WHEN 86 * - 73 THEN 63 * - 49 ELSE NULL END * CAST ( 35 * CASE + COUNT ( * ) WHEN - 74 / 26 - CAST ( NULL AS INTEGER ) * - 93 THEN 22 + - COALESCE ( + 1, - 33 ) ELSE NULL END AS INTEGER ) + 65 col0
----
96
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5467
SELECT MIN( DISTINCT 90 ) + + COUNT( * ) AS col1
----
91

skipif mysql # not compatible
query I rowsort label-5467
SELECT MIN ( DISTINCT 90 ) + + COUNT ( * ) AS col1
----
91

query I rowsort
SELECT ALL - 22 * + 13 AS col2
----
-286

onlyif mysql # aggregate syntax: 
query I rowsort label-5469
SELECT SUM( ALL - 5 ) * + - 89 * - - 17
----
7565

skipif mysql # not compatible
query I rowsort label-5469
SELECT SUM ( ALL - 5 ) * + - 89 * - - 17
----
7565

onlyif mysql # aggregate syntax: 
query I rowsort label-5470
SELECT + COUNT( ALL ( - 21 ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5470
SELECT + COUNT ( ALL ( - 21 ) ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5471
SELECT ALL + COUNT( * ) + + + COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-5471
SELECT ALL + COUNT ( * ) + + + COUNT ( * )
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5472
SELECT ALL - 95 + + + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5472
SELECT ALL - 95 + + + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT ALL 32 * - 16
----
-512

query I rowsort
SELECT 1 * + 81 AS col0
----
81

query I rowsort
SELECT 4 + 52 AS col0
----
56

query I rowsort
SELECT ALL - 50 + - ( + + 88 ) * - + 32
----
2766

query II rowsort
SELECT 81 + + + NULLIF ( + + ( 28 ), 5 ), 1 * + - 0 AS col2
----
109
0

query I rowsort
SELECT 94 * 47 * - - ( + 82 ) AS col1
----
362276

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5479
SELECT DISTINCT + - ( 31 ) DIV - + 73 + + SUM( + 20 ) + - MAX( ALL + + 70 ) * - COUNT( * )
----
90

skipif mysql # not compatible
query I rowsort label-5479
SELECT DISTINCT + - ( 31 ) / - + 73 + + SUM ( + 20 ) + - MAX ( ALL + + 70 ) * - COUNT ( * )
----
90

query I rowsort
SELECT 42 + 93
----
135

onlyif mysql # aggregate syntax: 
query I rowsort label-5481
SELECT ALL COUNT( * ) - + 10 AS col1
----
-9

skipif mysql # not compatible
query I rowsort label-5481
SELECT ALL COUNT ( * ) - + 10 AS col1
----
-9

query I rowsort
SELECT ALL - 56 * - 44 AS col0
----
2464

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5483
SELECT + 89 + - 63 AS col1, ( + 71 ) * + - SUM( 37 ) + + 95 + - AVG ( ALL + 68 ) + MIN( DISTINCT + CAST( NULL AS SIGNED ) ) AS col1
----
26
NULL

skipif mysql # not compatible
query II rowsort label-5483
SELECT + 89 + - 63 AS col1, ( + 71 ) * + - SUM ( 37 ) + + 95 + - AVG ( ALL + 68 ) + MIN ( DISTINCT + CAST ( NULL AS INTEGER ) ) AS col1
----
26
NULL

query I rowsort
SELECT - 93 * + 58 AS col0
----
-5394

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5485
SELECT ALL + CASE CAST( - - 65 AS SIGNED ) WHEN - - 44 THEN + 59 WHEN + 46 THEN - 59 + ( 58 ) + - + CASE COALESCE ( 44, - 39 * + 75, + 51 + + ( 36 ) * 44 ) WHEN 30 THEN COUNT( * ) WHEN - 61 THEN - 43 / - CASE + 53 WHEN + 19 THEN 46 WHEN + 58 + 25 THEN NULL ELSE NULL END END * - 91 END * + CASE 90 WHEN 26 / - 42 THEN + CASE + COALESCE ( + 56, 55 + 82, ( + COUNT( * ) ) - COUNT( * ) ) WHEN 21 * - 36 THEN ( 32 ) END * + 52 WHEN + 94 THEN NULL WHEN + 89 THEN NULL ELSE + 86 + - CAST( + 17 AS DECIMAL ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5485
SELECT ALL + CASE CAST ( - - 65 AS INTEGER ) WHEN - - 44 THEN + 59 WHEN + 46 THEN - 59 + ( 58 ) + - + CASE COALESCE ( 44, - 39 * + 75, + 51 + + ( 36 ) * 44 ) WHEN 30 THEN COUNT ( * ) WHEN - 61 THEN - 43 / - CASE + 53 WHEN + 19 THEN 46 WHEN + 58 + 25 THEN NULL ELSE NULL END END * - 91 END * + CASE 90 WHEN 26 / - 42 THEN + CASE + COALESCE ( + 56, 55 + 82, ( + COUNT ( * ) ) - COUNT ( * ) ) WHEN 21 * - 36 THEN ( 32 ) END * + 52 WHEN + 94 THEN NULL WHEN + 89 THEN NULL ELSE + 86 + - CAST ( + 17 AS REAL ) END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5486
SELECT - - MAX( - 69 ) * - 51 + + 45 AS col1
----
3564

skipif mysql # not compatible
query I rowsort label-5486
SELECT - - MAX ( - 69 ) * - 51 + + 45 AS col1
----
3564

onlyif mysql # aggregate syntax: 
query II rowsort label-5487
SELECT - - 1 + + 10, - MIN( + + 18 ) * 41 AS col2
----
11
-738

skipif mysql # not compatible
query II rowsort label-5487
SELECT - - 1 + + 10, - MIN ( + + 18 ) * 41 AS col2
----
11
-738

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5488
SELECT ALL - CASE - ( + NULLIF ( + 98, - - 32 ) ) WHEN - + CAST( NULL AS SIGNED ) / + 78 THEN NULL ELSE - 50 END * - 0 + MIN( 88 ) + - 64 - 93 AS col2
----
-69

skipif mysql # not compatible
query I rowsort label-5488
SELECT ALL - CASE - ( + NULLIF ( + 98, - - 32 ) ) WHEN - + CAST ( NULL AS INTEGER ) / + 78 THEN NULL ELSE - 50 END * - 0 + MIN ( 88 ) + - 64 - 93 AS col2
----
-69

query II rowsort
SELECT - 25 * - - 21 AS col0, 57
----
-525
57

query I rowsort
SELECT + + 26 + 11
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-5491
SELECT - + COUNT( * ) + + 89 + - 57 AS col0
----
31

skipif mysql # not compatible
query I rowsort label-5491
SELECT - + COUNT ( * ) + + 89 + - 57 AS col0
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-5492
SELECT + - 52 * - CASE 0 WHEN COUNT( * ) THEN - + COUNT( * ) - - 78 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5492
SELECT + - 52 * - CASE 0 WHEN COUNT ( * ) THEN - + COUNT ( * ) - - 78 END AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5493
SELECT - - CAST( NULL AS SIGNED ) + + - 98
----
NULL

skipif mysql # not compatible
query I rowsort label-5493
SELECT - - CAST ( NULL AS INTEGER ) + + - 98
----
NULL

query I rowsort
SELECT + 52 - - 49 AS col0
----
101

query I rowsort
SELECT ALL 34 * + 77 * + 58 * 15 AS col1
----
2277660

onlyif mysql # aggregate syntax: 
query I rowsort label-5496
SELECT + COUNT( * ) + + 1 + 86 * 55 AS col0
----
4732

skipif mysql # not compatible
query I rowsort label-5496
SELECT + COUNT ( * ) + + 1 + 86 * 55 AS col0
----
4732

query I rowsort
SELECT ALL CASE - - 30 WHEN - CASE 25 WHEN 14 THEN NULL WHEN 36 * - + 48 THEN + 20 + + 67 ELSE NULL END THEN + 38 WHEN - + 42 THEN NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5498
SELECT ALL COALESCE ( - - 62, - 43, + CAST( NULL AS SIGNED ) ) AS col0
----
62

skipif mysql # not compatible
query I rowsort label-5498
SELECT ALL COALESCE ( - - 62, - 43, + CAST ( NULL AS INTEGER ) ) AS col0
----
62

query I rowsort
SELECT + 16 + ( + ( - 22 ) ) AS col0
----
-6

onlyif mysql # aggregate syntax: 
query III rowsort label-5500
SELECT - COUNT( * ) AS col2, 68 * 28 * + + 13, - 47 AS col0
----
-1
24752
-47

skipif mysql # not compatible
query III rowsort label-5500
SELECT - COUNT ( * ) AS col2, 68 * 28 * + + 13, - 47 AS col0
----
-1
24752
-47

query I rowsort
SELECT DISTINCT - 80 + 32 col2
----
-48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5502
SELECT + ( - CAST( NULL AS SIGNED ) ) / + 21 * 23 * - 90
----
NULL

skipif mysql # not compatible
query I rowsort label-5502
SELECT + ( - CAST ( NULL AS INTEGER ) ) / + 21 * 23 * - 90
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5503
SELECT + 69 + + - CAST( 80 AS SIGNED ) DIV - 47 AS col2
----
70

skipif mysql # not compatible
query I rowsort label-5503
SELECT + 69 + + - CAST ( 80 AS INTEGER ) / - 47 AS col2
----
70

onlyif mysql # aggregate syntax: 
query II rowsort label-5504
SELECT 79, + SUM( - + 52 ) + + + 16 col1
----
79
-36

skipif mysql # not compatible
query II rowsort label-5504
SELECT 79, + SUM ( - + 52 ) + + + 16 col1
----
79
-36

query I rowsort
SELECT - 98 + + 38 AS col2
----
-60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5506
SELECT ALL + 30, ( + + 22 ) * - COALESCE ( + 91, + CASE - 33 WHEN + SUM( - CAST( + 54 AS SIGNED ) ) THEN 10 + - COUNT( * ) END ) + - SUM( ALL 91 ) * + ( 31 * - 30 ) AS col2
----
30
82628

skipif mysql # not compatible
query II rowsort label-5506
SELECT ALL + 30, ( + + 22 ) * - COALESCE ( + 91, + CASE - 33 WHEN + SUM ( - CAST ( + 54 AS INTEGER ) ) THEN 10 + - COUNT ( * ) END ) + - SUM ( ALL 91 ) * + ( 31 * - 30 ) AS col2
----
30
82628

onlyif mysql # aggregate syntax: 
query I rowsort label-5507
SELECT DISTINCT COUNT( * ) * + + 61 + - 55
----
6

skipif mysql # not compatible
query I rowsort label-5507
SELECT DISTINCT COUNT ( * ) * + + 61 + - 55
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-5508
SELECT ALL - 91 * - - COUNT( * )
----
-91

skipif mysql # not compatible
query I rowsort label-5508
SELECT ALL - 91 * - - COUNT ( * )
----
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5509
SELECT 54 * - 79 + - ( - ( CAST( NULL AS SIGNED ) ) ) * + 32
----
NULL

skipif mysql # not compatible
query I rowsort label-5509
SELECT 54 * - 79 + - ( - ( CAST ( NULL AS INTEGER ) ) ) * + 32
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5510
SELECT 91 DIV + 64 + - 3
----
-2

skipif mysql # not compatible
query I rowsort label-5510
SELECT 91 / + 64 + - 3
----
-2

query I rowsort
SELECT ALL 67 * + + ( + 43 ) * - - 14 + + 20
----
40354

query I rowsort
SELECT - 7 + - 63
----
-70

onlyif mysql # aggregate syntax: 
query II rowsort label-5513
SELECT + + COUNT( * ) col2, + 38
----
1
38

skipif mysql # not compatible
query II rowsort label-5513
SELECT + + COUNT ( * ) col2, + 38
----
1
38

onlyif mysql # aggregate syntax: 
query I rowsort label-5514
SELECT DISTINCT + MAX( 79 ) AS col1
----
79

skipif mysql # not compatible
query I rowsort label-5514
SELECT DISTINCT + MAX ( 79 ) AS col1
----
79

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5515
SELECT + + ( + - COUNT( * ) ) DIV + 75 AS col2, - 32 + 39 AS col0
----
0
7

skipif mysql # not compatible
query II rowsort label-5515
SELECT + + ( + - COUNT ( * ) ) / + 75 AS col2, - 32 + 39 AS col0
----
0
7

onlyif mysql # aggregate syntax: 
query II rowsort label-5516
SELECT DISTINCT + 75, MAX( ALL - 98 ) * 45 AS col2
----
75
-4410

skipif mysql # not compatible
query II rowsort label-5516
SELECT DISTINCT + 75, MAX ( ALL - 98 ) * 45 AS col2
----
75
-4410

query II rowsort
SELECT DISTINCT + - 52 AS col0, - 78
----
-52
-78

onlyif mysql # DIV for integer division: 
query I rowsort label-5518
SELECT ALL + - 18 DIV + 79 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5518
SELECT ALL + - 18 / + 79 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5519
SELECT - COUNT( * ) * 46 AS col0
----
-46

skipif mysql # not compatible
query I rowsort label-5519
SELECT - COUNT ( * ) * 46 AS col0
----
-46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5520
SELECT ALL + - CAST( NULL AS SIGNED ) / - 38 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5520
SELECT ALL + - CAST ( NULL AS INTEGER ) / - 38 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5521
SELECT - 36 + - MAX( DISTINCT + + 58 ) AS col1
----
-94

skipif mysql # not compatible
query I rowsort label-5521
SELECT - 36 + - MAX ( DISTINCT + + 58 ) AS col1
----
-94

query II rowsort
SELECT - 51, - 82 AS col1
----
-51
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-5523
SELECT ALL - + 14 * + COUNT( - ( + + ( + 62 ) ) ) AS col0
----
-14

skipif mysql # not compatible
query I rowsort label-5523
SELECT ALL - + 14 * + COUNT ( - ( + + ( + 62 ) ) ) AS col0
----
-14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5524
SELECT - 94 DIV COUNT( * ) AS col2
----
-94

skipif mysql # not compatible
query I rowsort label-5524
SELECT - 94 / COUNT ( * ) AS col2
----
-94

query I rowsort
SELECT - COALESCE ( 55, 42, 71 )
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-5526
SELECT ALL + - COUNT( * ) * - + 47
----
47

skipif mysql # not compatible
query I rowsort label-5526
SELECT ALL + - COUNT ( * ) * - + 47
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-5527
SELECT DISTINCT - 12 + + + 8 - + CASE + COUNT( * ) WHEN + + 50 * 36 - 44 + - 13 * 25 THEN NULL WHEN - COUNT( * ) THEN + 32 * 74 END * + 21 * - 58 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5527
SELECT DISTINCT - 12 + + + 8 - + CASE + COUNT ( * ) WHEN + + 50 * 36 - 44 + - 13 * 25 THEN NULL WHEN - COUNT ( * ) THEN + 32 * 74 END * + 21 * - 58 AS col2
----
NULL

query I rowsort
SELECT ALL - 94 + 19 + - + 63
----
-138

onlyif mysql # aggregate syntax: 
query I rowsort label-5529
SELECT - ( + 54 ) * - + 29 + 30 - - COUNT( * ) * 42 AS col1
----
1638

skipif mysql # not compatible
query I rowsort label-5529
SELECT - ( + 54 ) * - + 29 + 30 - - COUNT ( * ) * 42 AS col1
----
1638

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5530
SELECT ALL CAST( - 88 AS SIGNED ) AS col1
----
-88

skipif mysql # not compatible
query I rowsort label-5530
SELECT ALL CAST ( - 88 AS INTEGER ) AS col1
----
-88

query I rowsort
SELECT - ( - 23 ) + + 50 * + 11 - 73
----
500

onlyif mysql # aggregate syntax: 
query I rowsort label-5532
SELECT ALL COUNT( * ) + COUNT( * ) * - + 80
----
-79

skipif mysql # not compatible
query I rowsort label-5532
SELECT ALL COUNT ( * ) + COUNT ( * ) * - + 80
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-5533
SELECT DISTINCT CASE - MIN( ALL + + 90 ) WHEN + + 17 * + - COUNT( + 72 ) + - 38 + + 33 THEN - 28 WHEN - 55 * - + 56 * + 47 + + - 98 * - 9 * MIN( 41 ) THEN - 59 * 14 + + 1 ELSE NULL END * 37
----
NULL

skipif mysql # not compatible
query I rowsort label-5533
SELECT DISTINCT CASE - MIN ( ALL + + 90 ) WHEN + + 17 * + - COUNT ( + 72 ) + - 38 + + 33 THEN - 28 WHEN - 55 * - + 56 * + 47 + + - 98 * - 9 * MIN ( 41 ) THEN - 59 * 14 + + 1 ELSE NULL END * 37
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5534
SELECT DISTINCT + COUNT( * ) DIV - - 67 * - + 76 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5534
SELECT DISTINCT + COUNT ( * ) / - - 67 * - + 76 AS col1
----
0

query I rowsort
SELECT DISTINCT - 50 + - - 54
----
4

query I rowsort
SELECT DISTINCT + 77 * - ( - 31 )
----
2387

query I rowsort
SELECT - 67 + - 57
----
-124

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5538
SELECT + 73 * - 57 DIV - - COUNT( 44 ) col0
----
-4161

skipif mysql # not compatible
query I rowsort label-5538
SELECT + 73 * - 57 / - - COUNT ( 44 ) col0
----
-4161

onlyif mysql # aggregate syntax: 
query I rowsort label-5539
SELECT MIN( ALL - + NULLIF ( - 73, - 70 * 53 * 57 + - NULLIF ( + 52, + 20 + - 61 * + 99 * + 1 ) * 17 ) )
----
73

skipif mysql # not compatible
query I rowsort label-5539
SELECT MIN ( ALL - + NULLIF ( - 73, - 70 * 53 * 57 + - NULLIF ( + 52, + 20 + - 61 * + 99 * + 1 ) * 17 ) )
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-5540
SELECT + - 26 * - CASE - COUNT( * ) WHEN + ( + + COUNT( * ) ) + 40 THEN + - 55 END * + 13
----
NULL

skipif mysql # not compatible
query I rowsort label-5540
SELECT + - 26 * - CASE - COUNT ( * ) WHEN + ( + + COUNT ( * ) ) + 40 THEN + - 55 END * + 13
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5541
SELECT NULLIF ( + + 8, - + 6 * + + 38 * - 65 * 65 * + + 74 * - COUNT( * ) - + 31 ) AS col2, + 4 AS col0
----
8
4

skipif mysql # not compatible
query II rowsort label-5541
SELECT NULLIF ( + + 8, - + 6 * + + 38 * - 65 * 65 * + + 74 * - COUNT ( * ) - + 31 ) AS col2, + 4 AS col0
----
8
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5542
SELECT ALL - + NULLIF ( 58, CAST( NULL AS SIGNED ) )
----
-58

skipif mysql # not compatible
query I rowsort label-5542
SELECT ALL - + NULLIF ( 58, CAST ( NULL AS INTEGER ) )
----
-58

query I rowsort
SELECT ALL - - NULLIF ( 42, + 30 )
----
42

query I rowsort
SELECT - 24 + 74 col2
----
50

onlyif mysql # aggregate syntax: 
query II rowsort label-5545
SELECT 51 * 21 - + + 71 * + - COUNT( * ), + 42 AS col1
----
1142
42

skipif mysql # not compatible
query II rowsort label-5545
SELECT 51 * 21 - + + 71 * + - COUNT ( * ), + 42 AS col1
----
1142
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5546
SELECT - - COALESCE ( + 17, - COUNT( * ) * - 86 * - CAST( NULL AS SIGNED ) ) * + 38 - 15 + - - 71 * + - 86 AS col2
----
-5475

skipif mysql # not compatible
query I rowsort label-5546
SELECT - - COALESCE ( + 17, - COUNT ( * ) * - 86 * - CAST ( NULL AS INTEGER ) ) * + 38 - 15 + - - 71 * + - 86 AS col2
----
-5475

onlyif mysql # aggregate syntax: 
query I rowsort label-5547
SELECT - CASE - - 34 WHEN 35 + - 53 THEN COUNT( * ) + 99 * + - 80 * + 0 END * + + 38 + 80 + + ( - 67 ) + - + 34
----
NULL

skipif mysql # not compatible
query I rowsort label-5547
SELECT - CASE - - 34 WHEN 35 + - 53 THEN COUNT ( * ) + 99 * + - 80 * + 0 END * + + 38 + 80 + + ( - 67 ) + - + 34
----
NULL

query I rowsort
SELECT + 64 + + - 12 AS col2
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-5549
SELECT ALL - 13 * + COUNT( 92 ) AS col2
----
-13

skipif mysql # not compatible
query I rowsort label-5549
SELECT ALL - 13 * + COUNT ( 92 ) AS col2
----
-13

query I rowsort
SELECT DISTINCT 43 * + 57 + - 74 * 63 + - - 45
----
-2166

query I rowsort
SELECT 51 + - - ( + NULLIF ( + 84, + 76 ) )
----
135

onlyif mysql # DIV for integer division: 
query I rowsort label-5552
SELECT ALL - 63 + - + ( 87 ) - + ( - 55 ) DIV 41 AS col2
----
-149

skipif mysql # not compatible
query I rowsort label-5552
SELECT ALL - 63 + - + ( 87 ) - + ( - 55 ) / 41 AS col2
----
-149

onlyif mysql # aggregate syntax: 
query I rowsort label-5553
SELECT 58 * - + COUNT( * ) + + 58 + - + 4 * + - SUM( ALL - ( - + 90 ) ) AS col0
----
360

skipif mysql # not compatible
query I rowsort label-5553
SELECT 58 * - + COUNT ( * ) + + 58 + - + 4 * + - SUM ( ALL - ( - + 90 ) ) AS col0
----
360

onlyif mysql # aggregate syntax: 
query I rowsort label-5554
SELECT 89 + 41 + COUNT( * ) AS col0
----
131

skipif mysql # not compatible
query I rowsort label-5554
SELECT 89 + 41 + COUNT ( * ) AS col0
----
131

query II rowsort
SELECT 18, 42 * + 36 * + - 40 * + + 15 col1
----
18
-907200

onlyif mysql # aggregate syntax: 
query I rowsort label-5556
SELECT 5 + + CASE + + COUNT( * ) WHEN + ( + + COUNT( ALL + - 1 ) ) THEN NULL ELSE - 39 / 60 * + - 47 - + + COALESCE ( - 49, - 5 ) END * + NULLIF ( - - 81, + 12 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5556
SELECT 5 + + CASE + + COUNT ( * ) WHEN + ( + + COUNT ( ALL + - 1 ) ) THEN NULL ELSE - 39 / 60 * + - 47 - + + COALESCE ( - 49, - 5 ) END * + NULLIF ( - - 81, + 12 ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5557
SELECT 79 DIV 78 * 22
----
22

skipif mysql # not compatible
query I rowsort label-5557
SELECT 79 / 78 * 22
----
22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5558
SELECT ALL - 63 + - 64 / - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5558
SELECT ALL - 63 + - 64 / - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5559
SELECT ALL 56 DIV - - COUNT( * )
----
56

skipif mysql # not compatible
query I rowsort label-5559
SELECT ALL 56 / - - COUNT ( * )
----
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5560
SELECT ALL 15 + 14 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5560
SELECT ALL 15 + 14 + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL - 63 * 55
----
-3465

query II rowsort
SELECT 14 + ( - 86 ) AS col2, + 83 AS col0
----
-72
83

query I rowsort
SELECT DISTINCT + ( + + 56 ) - - + 75 - + 55
----
76

query II rowsort
SELECT ALL 3, 0 - 12 AS col0
----
3
-12

onlyif mysql # aggregate syntax: 
query II rowsort label-5565
SELECT 28 AS col1, COUNT( * )
----
28
1

skipif mysql # not compatible
query II rowsort label-5565
SELECT 28 AS col1, COUNT ( * )
----
28
1

query I rowsort
SELECT ALL 85 * - 87 AS col0
----
-7395

onlyif mysql # DIV for integer division: 
query I rowsort label-5567
SELECT DISTINCT - - 10 DIV 56
----
0

skipif mysql # not compatible
query I rowsort label-5567
SELECT DISTINCT - - 10 / 56
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5568
SELECT 20 DIV + 64 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5568
SELECT 20 / + 64 AS col1
----
0

query I rowsort
SELECT + 82 * 88 AS col0
----
7216

query I rowsort
SELECT ALL - - 34 * - 2 AS col2
----
-68

query II rowsort
SELECT DISTINCT 70 + + 53 * + - 11, 46 AS col2
----
-513
46

onlyif mysql # DIV for integer division: 
query I rowsort label-5572
SELECT + 49 DIV + + 46 + + 81 + + COALESCE ( - 29, + 89 + - 27 )
----
53

skipif mysql # not compatible
query I rowsort label-5572
SELECT + 49 / + + 46 + + 81 + + COALESCE ( - 29, + 89 + - 27 )
----
53

query II rowsort
SELECT + + 74 AS col2, 0
----
74
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5574
SELECT 89 * + COALESCE ( - - CAST( + - 38 AS SIGNED ), + NULLIF ( + + 86, - - 20 ) * 29 * + COUNT( * ) * 25 + + NULLIF ( - - CASE - - MIN( DISTINCT - - 65 ) WHEN CAST( NULL AS SIGNED ) + 18 THEN + 30 + - COUNT( * ) WHEN NULLIF ( + ( - 93 ), 30 * + ( 86 ) + 16 ) + + 76 THEN - 50 + + 48 * + COUNT( * ) ELSE NULL END, - 59 ) * + 58 )
----
-3382

skipif mysql # not compatible
query I rowsort label-5574
SELECT 89 * + COALESCE ( - - CAST ( + - 38 AS INTEGER ), + NULLIF ( + + 86, - - 20 ) * 29 * + COUNT ( * ) * 25 + + NULLIF ( - - CASE - - MIN ( DISTINCT - - 65 ) WHEN CAST ( NULL AS INTEGER ) + 18 THEN + 30 + - COUNT ( * ) WHEN NULLIF ( + ( - 93 ), 30 * + ( 86 ) + 16 ) + + 76 THEN - 50 + + 48 * + COUNT ( * ) ELSE NULL END, - 59 ) * + 58 )
----
-3382

query I rowsort
SELECT ALL + 73 + + 80 * - 88 col0
----
-6967

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5576
SELECT ALL - 25 AS col1, - CAST( 15 AS SIGNED ) + - 65 * + CAST( - COALESCE ( 28, + 60 ) AS SIGNED )
----
-25
1805

skipif mysql # not compatible
query II rowsort label-5576
SELECT ALL - 25 AS col1, - CAST ( 15 AS INTEGER ) + - 65 * + CAST ( - COALESCE ( 28, + 60 ) AS INTEGER )
----
-25
1805

query I rowsort
SELECT - 98 * + 74
----
-7252

query I rowsort
SELECT ALL - 32 + - 47 * - 85 AS col2
----
3963

onlyif mysql # aggregate syntax: 
query I rowsort label-5579
SELECT + COUNT( DISTINCT + - 93 )
----
1

skipif mysql # not compatible
query I rowsort label-5579
SELECT + COUNT ( DISTINCT + - 93 )
----
1

query II rowsort
SELECT 90, - 54 AS col1
----
90
-54

query I rowsort
SELECT ALL 69 * - - 74 AS col0
----
5106

onlyif mysql # aggregate syntax: 
query I rowsort label-5582
SELECT - COUNT( DISTINCT - 23 )
----
-1

skipif mysql # not compatible
query I rowsort label-5582
SELECT - COUNT ( DISTINCT - 23 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5583
SELECT DISTINCT 74 - - COUNT( * ) * - + 46 + COALESCE ( + 25, 26 ) AS col0
----
53

skipif mysql # not compatible
query I rowsort label-5583
SELECT DISTINCT 74 - - COUNT ( * ) * - + 46 + COALESCE ( + 25, 26 ) AS col0
----
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5584
SELECT DISTINCT - COUNT( ALL - 1 ) - - ( CAST( NULL AS SIGNED ) ) + - 39 * - 81 * + + 50 + - ( + - ( - + 51 ) ) * 76 col2, 59 DIV - - 64 * + COALESCE ( 71, + - 28 ) * + 81 AS col0
----
NULL
0

skipif mysql # not compatible
query II rowsort label-5584
SELECT DISTINCT - COUNT ( ALL - 1 ) - - ( CAST ( NULL AS INTEGER ) ) + - 39 * - 81 * + + 50 + - ( + - ( - + 51 ) ) * 76 col2, 59 / - - 64 * + COALESCE ( 71, + - 28 ) * + 81 AS col0
----
NULL
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5585
SELECT - 79 AS col1, CASE + COUNT( * ) WHEN - 5 - - COUNT( * ) THEN COALESCE ( 25, - - 94 ) WHEN + 57 THEN COALESCE ( - 44, - + 38 ) ELSE NULL END
----
-79
NULL

skipif mysql # not compatible
query II rowsort label-5585
SELECT - 79 AS col1, CASE + COUNT ( * ) WHEN - 5 - - COUNT ( * ) THEN COALESCE ( 25, - - 94 ) WHEN + 57 THEN COALESCE ( - 44, - + 38 ) ELSE NULL END
----
-79
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5586
SELECT 85 * - 5 * COUNT( * )
----
-425

skipif mysql # not compatible
query I rowsort label-5586
SELECT 85 * - 5 * COUNT ( * )
----
-425

query II rowsort
SELECT ALL 36 AS col2, + 16 + + - 83 * + 2
----
36
-150

query II rowsort
SELECT ALL 87 AS col1, + NULLIF ( + + ( + 77 ), - + 51 + 49 ) * + - 34 AS col1
----
87
-2618

onlyif mysql # aggregate syntax: 
query II rowsort label-5589
SELECT ( - ( - + COUNT( DISTINCT - 88 ) ) ) + + + 29 * 73 AS col0, - 44 AS col1
----
2118
-44

skipif mysql # not compatible
query II rowsort label-5589
SELECT ( - ( - + COUNT ( DISTINCT - 88 ) ) ) + + + 29 * 73 AS col0, - 44 AS col1
----
2118
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-5590
SELECT COUNT( * ) + - 20 - - - 97 * - 10 * - 94 AS col1
----
-91199

skipif mysql # not compatible
query I rowsort label-5590
SELECT COUNT ( * ) + - 20 - - - 97 * - 10 * - 94 AS col1
----
-91199

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5591
SELECT 39 DIV + COUNT( - + 52 ) AS col2
----
39

skipif mysql # not compatible
query I rowsort label-5591
SELECT 39 / + COUNT ( - + 52 ) AS col2
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-5592
SELECT COUNT( * ) * + + 15 AS col1
----
15

skipif mysql # not compatible
query I rowsort label-5592
SELECT COUNT ( * ) * + + 15 AS col1
----
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5593
SELECT ALL 67 / - CAST( NULL AS SIGNED ) * 61
----
NULL

skipif mysql # not compatible
query I rowsort label-5593
SELECT ALL 67 / - CAST ( NULL AS INTEGER ) * 61
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5594
SELECT ALL - CASE 19 WHEN - 50 THEN + + 11 - - NULLIF ( + + COUNT( + + 50 ), - 34 ) END * - + 32 + - 68 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5594
SELECT ALL - CASE 19 WHEN - 50 THEN + + 11 - - NULLIF ( + + COUNT ( + + 50 ), - 34 ) END * - + 32 + - 68 AS col0
----
NULL

query I rowsort
SELECT - + 92 * - 18 AS col0
----
1656

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5596
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col0, - 81 * + 51 * - - CASE + 52 WHEN + CAST( 75 AS SIGNED ) + - + COUNT( * ) THEN + 29 + 0 DIV 21 ELSE - 88 END + - 9 * + COUNT( + 82 ) * + + 27 + 67 * - COUNT( * ) + ( + 92 - SUM( ALL + NULLIF ( + 49, + 55 ) ) )
----
NULL
363261

skipif mysql # not compatible
query II rowsort label-5596
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col0, - 81 * + 51 * - - CASE + 52 WHEN + CAST ( 75 AS INTEGER ) + - + COUNT ( * ) THEN + 29 + 0 / 21 ELSE - 88 END + - 9 * + COUNT ( + 82 ) * + + 27 + 67 * - COUNT ( * ) + ( + 92 - SUM ( ALL + NULLIF ( + 49, + 55 ) ) )
----
NULL
363261

onlyif mysql # aggregate syntax: 
query I rowsort label-5597
SELECT + - COUNT( * ) * + ( - COUNT( * ) ) * 57 - ( - - 25 )
----
32

skipif mysql # not compatible
query I rowsort label-5597
SELECT + - COUNT ( * ) * + ( - COUNT ( * ) ) * 57 - ( - - 25 )
----
32

query II rowsort
SELECT + 96, - 52 AS col1
----
96
-52

query I rowsort
SELECT - - 74 + 1 + + COALESCE ( - 53, + + 35 + + + 6, 12 ) AS col2
----
22

onlyif mysql # aggregate syntax: 
query II rowsort label-5600
SELECT + + 9 AS col1, - SUM( + 55 ) AS col0
----
9
-55

skipif mysql # not compatible
query II rowsort label-5600
SELECT + + 9 AS col1, - SUM ( + 55 ) AS col0
----
9
-55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5601
SELECT DISTINCT - COUNT( * ) * + - 58 * + CAST( - 45 AS SIGNED ) * - 90 * - CAST( NULL AS SIGNED ) * - 94
----
NULL

skipif mysql # not compatible
query I rowsort label-5601
SELECT DISTINCT - COUNT ( * ) * + - 58 * + CAST ( - 45 AS INTEGER ) * - 90 * - CAST ( NULL AS INTEGER ) * - 94
----
NULL

query I rowsort
SELECT ALL + 34 * - 38 + 56
----
-1236

onlyif mysql # aggregate syntax: 
query I rowsort label-5603
SELECT DISTINCT - 98 * 0 + + 27 * + COUNT( * ) col1
----
27

skipif mysql # not compatible
query I rowsort label-5603
SELECT DISTINCT - 98 * 0 + + 27 * + COUNT ( * ) col1
----
27

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5604
SELECT ALL CAST( NULL AS DECIMAL ) * 8 + + 56 + - ( + 97 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5604
SELECT ALL CAST ( NULL AS REAL ) * 8 + + 56 + - ( + 97 ) AS col1
----
NULL

query I rowsort
SELECT + ( - 7 ) AS col1
----
-7

onlyif mysql # DIV for integer division: 
query I rowsort label-5606
SELECT ALL - + 40 DIV + 81 + 14 * + 38 + 0
----
532

skipif mysql # not compatible
query I rowsort label-5606
SELECT ALL - + 40 / + 81 + 14 * + 38 + 0
----
532

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5607
SELECT + + NULLIF ( - 35, - CAST( + 4 AS DECIMAL ) * + NULLIF ( - 56, 17 / - - COUNT( * ) * COALESCE ( - ( - MAX( ALL - - 2 ) ), - 70, - + 48 ) ) + + MAX( 99 ) + 51 ) AS col1
----
-35

skipif mysql # not compatible
query I rowsort label-5607
SELECT + + NULLIF ( - 35, - CAST ( + 4 AS REAL ) * + NULLIF ( - 56, 17 / - - COUNT ( * ) * COALESCE ( - ( - MAX ( ALL - - 2 ) ), - 70, - + 48 ) ) + + MAX ( 99 ) + 51 ) AS col1
----
-35

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5608
SELECT - - ( + + 4 ) DIV COUNT( * ) * - + 32
----
-128

skipif mysql # not compatible
query I rowsort label-5608
SELECT - - ( + + 4 ) / COUNT ( * ) * - + 32
----
-128

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5609
SELECT ALL + 33 * + - CAST( ( 59 ) AS SIGNED ) + - 3 + 32 + - 35 * + 90 + + + ( - ( + COUNT( * ) ) ) * + + 12 * + 99
----
-6256

skipif mysql # not compatible
query I rowsort label-5609
SELECT ALL + 33 * + - CAST ( ( 59 ) AS INTEGER ) + - 3 + 32 + - 35 * + 90 + + + ( - ( + COUNT ( * ) ) ) * + + 12 * + 99
----
-6256

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5610
SELECT + COALESCE ( 67, - - 86, - + 32 * 94 ) - + - CAST( NULL AS SIGNED ) + 44 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5610
SELECT + COALESCE ( 67, - - 86, - + 32 * 94 ) - + - CAST ( NULL AS INTEGER ) + 44 AS col0
----
NULL

query II rowsort
SELECT + 4 AS col1, + 92 * - 76 * - 97 col2
----
4
678224

onlyif mysql # aggregate syntax: 
query II rowsort label-5612
SELECT - 49 + + 25 AS col1, + COUNT( DISTINCT + 17 )
----
-24
1

skipif mysql # not compatible
query II rowsort label-5612
SELECT - 49 + + 25 AS col1, + COUNT ( DISTINCT + 17 )
----
-24
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5613
SELECT + 19 DIV - - 55 * - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-5613
SELECT + 19 / - - 55 * - COUNT ( * )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5614
SELECT ALL NULLIF ( - 12, - - 27 ) * - 45 + + CAST( CAST( - + COUNT( * ) AS DECIMAL ) AS SIGNED ) + + + COUNT( * )
----
540

skipif mysql # not compatible
query I rowsort label-5614
SELECT ALL NULLIF ( - 12, - - 27 ) * - 45 + + CAST ( CAST ( - + COUNT ( * ) AS REAL ) AS INTEGER ) + + + COUNT ( * )
----
540

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5615
SELECT ALL COUNT( * ) DIV 38 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5615
SELECT ALL COUNT ( * ) / 38 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5616
SELECT + ( - - 26 ) + COALESCE ( - - 93, 89, - + 44 + - 80, + COUNT( * ) ) + - 33 * + 96
----
-3049

skipif mysql # not compatible
query I rowsort label-5616
SELECT + ( - - 26 ) + COALESCE ( - - 93, 89, - + 44 + - 80, + COUNT ( * ) ) + - 33 * + 96
----
-3049

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5617
SELECT ALL ( - - NULLIF ( CAST( NULL AS SIGNED ), - 21 - - 27 * - COUNT( * ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5617
SELECT ALL ( - - NULLIF ( CAST ( NULL AS INTEGER ), - 21 - - 27 * - COUNT ( * ) ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5618
SELECT 36 * - - 59 + - 99 + - 94 * COUNT( * ) AS col0
----
1931

skipif mysql # not compatible
query I rowsort label-5618
SELECT 36 * - - 59 + - 99 + - 94 * COUNT ( * ) AS col0
----
1931

query I rowsort
SELECT + 56 + - 64 AS col1
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-5620
SELECT ALL ( MAX( - 80 ) )
----
-80

skipif mysql # not compatible
query I rowsort label-5620
SELECT ALL ( MAX ( - 80 ) )
----
-80

query I rowsort
SELECT ALL - 73 * + 82 AS col2
----
-5986

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5622
SELECT DISTINCT CAST( + + 89 AS SIGNED )
----
89

skipif mysql # not compatible
query I rowsort label-5622
SELECT DISTINCT CAST ( + + 89 AS INTEGER )
----
89

onlyif mysql # DIV for integer division: 
query I rowsort label-5623
SELECT + 2 DIV + 40 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5623
SELECT + 2 / + 40 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5624
SELECT + - 47 * + - COALESCE ( + + 46, - COUNT( * ) ) AS col2
----
2162

skipif mysql # not compatible
query I rowsort label-5624
SELECT + - 47 * + - COALESCE ( + + 46, - COUNT ( * ) ) AS col2
----
2162

query I rowsort
SELECT ALL 7 + COALESCE ( - 59, 26 * - 99 ) AS col0
----
-52

query I rowsort
SELECT + ( - 65 ) + - 82 * 99
----
-8183

onlyif mysql # aggregate syntax: 
query I rowsort label-5627
SELECT DISTINCT SUM( - 53 ) col1
----
-53

skipif mysql # not compatible
query I rowsort label-5627
SELECT DISTINCT SUM ( - 53 ) col1
----
-53

query I rowsort
SELECT + 4 + - 26 + + 65 - 66 * 18 + - 79 * - + 83
----
5412

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5629
SELECT DISTINCT + + COUNT( * ) + - + CAST( + + COALESCE ( 62, - 36 * - 57 * - 80, + - COUNT( * ) ) AS SIGNED ) * + 45 AS col0
----
-2789

skipif mysql # not compatible
query I rowsort label-5629
SELECT DISTINCT + + COUNT ( * ) + - + CAST ( + + COALESCE ( 62, - 36 * - 57 * - 80, + - COUNT ( * ) ) AS INTEGER ) * + 45 AS col0
----
-2789

query I rowsort
SELECT + + 20 + + + 77 * + 6
----
482

onlyif mysql # DIV for integer division: 
query II rowsort label-5631
SELECT DISTINCT - 1 DIV - + 58 + - + 74 AS col2, - 13 AS col0
----
-74
-13

skipif mysql # not compatible
query II rowsort label-5631
SELECT DISTINCT - 1 / - + 58 + - + 74 AS col2, - 13 AS col0
----
-74
-13

onlyif mysql # DIV for integer division: 
query I rowsort label-5632
SELECT DISTINCT 25 DIV 73 + - 9
----
-9

skipif mysql # not compatible
query I rowsort label-5632
SELECT DISTINCT 25 / 73 + - 9
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-5633
SELECT - - 87 * + 34 * + COUNT( * ) * - 51 * 9
----
-1357722

skipif mysql # not compatible
query I rowsort label-5633
SELECT - - 87 * + 34 * + COUNT ( * ) * - 51 * 9
----
-1357722

query I rowsort
SELECT + ( - - 55 )
----
55

query I rowsort
SELECT - ( - - 66 ) + - + 14
----
-80

query I rowsort
SELECT DISTINCT 33 * COALESCE ( + 61, 42 ) - - - 43
----
1970

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5637
SELECT + NULLIF ( - CAST( NULL AS SIGNED ), + 43 * - 73 + - 97 + + 8 ) * - - COUNT( ALL + 39 ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5637
SELECT + NULLIF ( - CAST ( NULL AS INTEGER ), + 43 * - 73 + - 97 + + 8 ) * - - COUNT ( ALL + 39 ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5638
SELECT NULLIF ( + 16, - - COUNT( * ) * 18 ) AS col1
----
16

skipif mysql # not compatible
query I rowsort label-5638
SELECT NULLIF ( + 16, - - COUNT ( * ) * 18 ) AS col1
----
16

onlyif mysql # aggregate syntax: 
query II rowsort label-5639
SELECT ALL + 49 AS col0, COUNT( * ) * + 3 * 86 AS col0
----
49
258

skipif mysql # not compatible
query II rowsort label-5639
SELECT ALL + 49 AS col0, COUNT ( * ) * + 3 * 86 AS col0
----
49
258

query I rowsort
SELECT - 56 * - 31
----
1736

onlyif mysql # aggregate syntax: 
query I rowsort label-5641
SELECT COALESCE ( - + NULLIF ( - 13, + 74 ), - COUNT( * ), 90 )
----
13

skipif mysql # not compatible
query I rowsort label-5641
SELECT COALESCE ( - + NULLIF ( - 13, + 74 ), - COUNT ( * ), 90 )
----
13

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5642
SELECT + CASE 40 WHEN - ( - - 39 ) * + 31 THEN + - 91 ELSE NULL END, CAST( NULL AS SIGNED ) * - + 93 / - 16 AS col1
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-5642
SELECT + CASE 40 WHEN - ( - - 39 ) * + 31 THEN + - 91 ELSE NULL END, CAST ( NULL AS INTEGER ) * - + 93 / - 16 AS col1
----
NULL
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5643
SELECT NULLIF ( + - 49, + + CAST( - 25 AS DECIMAL ) ) AS col1
----
-49

skipif mysql # not compatible
query I rowsort label-5643
SELECT NULLIF ( + - 49, + + CAST ( - 25 AS REAL ) ) AS col1
----
-49

query I rowsort
SELECT ALL + 41 * - 72 col0
----
-2952

onlyif mysql # aggregate syntax: 
query II rowsort label-5645
SELECT ALL + 33 * - SUM( ALL 1 ), + 5 AS col0
----
-33
5

skipif mysql # not compatible
query II rowsort label-5645
SELECT ALL + 33 * - SUM ( ALL 1 ), + 5 AS col0
----
-33
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5646
SELECT ALL 43 AS col2, ( - - 68 ) * ( + 26 ) * 95 DIV + + COUNT( * ) - - + 87 + 52 AS col2
----
43
168099

skipif mysql # not compatible
query II rowsort label-5646
SELECT ALL 43 AS col2, ( - - 68 ) * ( + 26 ) * 95 / + + COUNT ( * ) - - + 87 + 52 AS col2
----
43
168099

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5647
SELECT DISTINCT - 97 + + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5647
SELECT DISTINCT - 97 + + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5648
SELECT ALL + ( COUNT( * ) ) + - 31
----
-30

skipif mysql # not compatible
query I rowsort label-5648
SELECT ALL + ( COUNT ( * ) ) + - 31
----
-30

query II rowsort
SELECT 72 + - 72 + 27 * + + 2, - 44 + - - 86 AS col0
----
54
42

query I rowsort
SELECT - 92 + + - 78
----
-170

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5651
SELECT DISTINCT + 29 + 81 + CAST( NULL AS DECIMAL ) + + 70
----
NULL

skipif mysql # not compatible
query I rowsort label-5651
SELECT DISTINCT + 29 + 81 + CAST ( NULL AS REAL ) + + 70
----
NULL

query I rowsort
SELECT 41 + + 42
----
83

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5653
SELECT 72 DIV COUNT( * )
----
72

skipif mysql # not compatible
query I rowsort label-5653
SELECT 72 / COUNT ( * )
----
72

query I rowsort
SELECT DISTINCT 7 + - 63 AS col0
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-5655
SELECT ALL COUNT( * ) - - - 32
----
-31

skipif mysql # not compatible
query I rowsort label-5655
SELECT ALL COUNT ( * ) - - - 32
----
-31

query I rowsort
SELECT 20 * - 19
----
-380

onlyif mysql # aggregate syntax: 
query I rowsort label-5657
SELECT + - CASE + + 66 WHEN + MAX( 91 ) THEN + 89 WHEN 97 THEN NULL WHEN - + 20 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5657
SELECT + - CASE + + 66 WHEN + MAX ( 91 ) THEN + 89 WHEN 97 THEN NULL WHEN - + 20 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5658
SELECT + COALESCE ( + ( + COUNT( * ) ), - 98 * + - 87 + + - 87, - COUNT( * ) ) col2
----
1

skipif mysql # not compatible
query I rowsort label-5658
SELECT + COALESCE ( + ( + COUNT ( * ) ), - 98 * + - 87 + + - 87, - COUNT ( * ) ) col2
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-5659
SELECT ALL - COUNT( * ) AS col0, 25 * + 21
----
-1
525

skipif mysql # not compatible
query II rowsort label-5659
SELECT ALL - COUNT ( * ) AS col0, 25 * + 21
----
-1
525

query I rowsort
SELECT ( 78 ) * - + 66 + - 21 AS col1
----
-5169

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5661
SELECT ALL - 53 * + CASE + 33 WHEN + + CASE - CAST( NULL AS SIGNED ) WHEN + - 23 / 8 * ( - 59 ) THEN - 37 + + 93 WHEN - COUNT( * ) THEN NULL END THEN + - 4 WHEN - - 51 THEN + COALESCE ( MIN( + + NULLIF ( - 85, + 97 * + 32 ) ), - 46, CAST( + 19 AS DECIMAL ) * 47, AVG ( ALL - 60 ) ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5661
SELECT ALL - 53 * + CASE + 33 WHEN + + CASE - CAST ( NULL AS INTEGER ) WHEN + - 23 / 8 * ( - 59 ) THEN - 37 + + 93 WHEN - COUNT ( * ) THEN NULL END THEN + - 4 WHEN - - 51 THEN + COALESCE ( MIN ( + + NULLIF ( - 85, + 97 * + 32 ) ), - 46, CAST ( + 19 AS REAL ) * 47, AVG ( ALL - 60 ) ) ELSE NULL END
----
NULL

query I rowsort
SELECT - 40 - + - 50 + + ( - 34 ) AS col0
----
-24

onlyif mysql # DIV for integer division: 
query I rowsort label-5663
SELECT DISTINCT 10 DIV - 18 * 95 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5663
SELECT DISTINCT 10 / - 18 * 95 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5664
SELECT ALL - NULLIF ( - 30, 80 * - + ( + - COUNT( * ) ) + - 72 * COUNT( * ) )
----
30

skipif mysql # not compatible
query I rowsort label-5664
SELECT ALL - NULLIF ( - 30, 80 * - + ( + - COUNT ( * ) ) + - 72 * COUNT ( * ) )
----
30

query II rowsort
SELECT ALL 10 * + 69 AS col0, - 23
----
690
-23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5666
SELECT 75 DIV MIN( CAST( + 62 AS SIGNED ) )
----
1

skipif mysql # not compatible
query I rowsort label-5666
SELECT 75 / MIN ( CAST ( + 62 AS INTEGER ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5667
SELECT + COUNT( * ) * - - 62 + + - 94
----
-32

skipif mysql # not compatible
query I rowsort label-5667
SELECT + COUNT ( * ) * - - 62 + + - 94
----
-32

query I rowsort
SELECT 20 * - - 19 * 15
----
5700

onlyif mysql # DIV for integer division: 
query I rowsort label-5669
SELECT 23 DIV - + 70 * - 71 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5669
SELECT 23 / - + 70 * - 71 AS col1
----
0

query I rowsort
SELECT ( + 72 ) * - - 93 * + 36 + + 50
----
241106

query I rowsort
SELECT 30 - + - 72 col0
----
102

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5672
SELECT 33 * 45 AS col0, 83 * + 30 + + COUNT( * ) + 28 * ( + CAST( 21 AS SIGNED ) ) AS col2
----
1485
3079

skipif mysql # not compatible
query II rowsort label-5672
SELECT 33 * 45 AS col0, 83 * + 30 + + COUNT ( * ) + 28 * ( + CAST ( 21 AS INTEGER ) ) AS col2
----
1485
3079

query I rowsort
SELECT ( - 11 ) + - 96
----
-107

onlyif mysql # aggregate syntax: 
query I rowsort label-5674
SELECT ALL SUM( ALL + 46 ) * + 10
----
460

skipif mysql # not compatible
query I rowsort label-5674
SELECT ALL SUM ( ALL + 46 ) * + 10
----
460

onlyif mysql # aggregate syntax: 
query I rowsort label-5675
SELECT 23 * + COUNT( * ) * - ( + COUNT( * ) )
----
-23

skipif mysql # not compatible
query I rowsort label-5675
SELECT 23 * + COUNT ( * ) * - ( + COUNT ( * ) )
----
-23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5676
SELECT ALL NULLIF ( 38, + - 12 + - CASE + 19 WHEN - 9 THEN + CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) + + COALESCE ( - 95, COALESCE ( - ( + 55 ), 4 + - - ( + + 96 ) ) + + + 33 ) / 52 WHEN - - 41 / 78 THEN NULL ELSE NULL END * 71 ) + - COUNT( * ) * COUNT( * ) AS col1
----
37

skipif mysql # not compatible
query I rowsort label-5676
SELECT ALL NULLIF ( 38, + - 12 + - CASE + 19 WHEN - 9 THEN + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) + + COALESCE ( - 95, COALESCE ( - ( + 55 ), 4 + - - ( + + 96 ) ) + + + 33 ) / 52 WHEN - - 41 / 78 THEN NULL ELSE NULL END * 71 ) + - COUNT ( * ) * COUNT ( * ) AS col1
----
37

query I rowsort
SELECT 29 + - 8
----
21

query I rowsort
SELECT DISTINCT + 28 + + 47 * 0
----
28

query I rowsort
SELECT 48 + 66 AS col1
----
114

query I rowsort
SELECT ALL + ( 71 ) + + 56 + - 96 * + + 0 AS col2
----
127

onlyif mysql # aggregate syntax: 
query I rowsort label-5681
SELECT ALL - 84 + COUNT( * )
----
-83

skipif mysql # not compatible
query I rowsort label-5681
SELECT ALL - 84 + COUNT ( * )
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-5682
SELECT SUM( ALL - + 67 ) * - + 4 AS col0
----
268

skipif mysql # not compatible
query I rowsort label-5682
SELECT SUM ( ALL - + 67 ) * - + 4 AS col0
----
268

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5683
SELECT ALL - - COUNT( * ) + CASE 51 WHEN 56 + + + COUNT( * ) * - + ( + 38 ) - - 8 THEN NULL ELSE MAX( 30 ) END * + CAST( NULL AS SIGNED ) + + 26 + + 41 + + + 42 * + + 64 - - 93 * - 83 + - 37 * + - 17
----
NULL

skipif mysql # not compatible
query I rowsort label-5683
SELECT ALL - - COUNT ( * ) + CASE 51 WHEN 56 + + + COUNT ( * ) * - + ( + 38 ) - - 8 THEN NULL ELSE MAX ( 30 ) END * + CAST ( NULL AS INTEGER ) + + 26 + + 41 + + + 42 * + + 64 - - 93 * - 83 + - 37 * + - 17
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5684
SELECT ALL + 0 + - - MAX( + + ( + ( 83 ) ) ) + 52 AS col0
----
135

skipif mysql # not compatible
query I rowsort label-5684
SELECT ALL + 0 + - - MAX ( + + ( + ( 83 ) ) ) + 52 AS col0
----
135

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5685
SELECT ALL + COALESCE ( + COUNT( * ), 0 * - COALESCE ( 22, + MAX( DISTINCT - 34 ) ) DIV + 7 - - 76 ) AS col0, + 16 + + - SUM( DISTINCT - - 5 )
----
1
11

skipif mysql # not compatible
query II rowsort label-5685
SELECT ALL + COALESCE ( + COUNT ( * ), 0 * - COALESCE ( 22, + MAX ( DISTINCT - 34 ) ) / + 7 - - 76 ) AS col0, + 16 + + - SUM ( DISTINCT - - 5 )
----
1
11

onlyif mysql # DIV for integer division: 
query II rowsort label-5686
SELECT ALL 52 DIV 57 AS col0, 23 * - - 87
----
0
2001

skipif mysql # not compatible
query II rowsort label-5686
SELECT ALL 52 / 57 AS col0, 23 * - - 87
----
0
2001

onlyif mysql # aggregate syntax: 
query I rowsort label-5687
SELECT - - MAX( + 61 )
----
61

skipif mysql # not compatible
query I rowsort label-5687
SELECT - - MAX ( + 61 )
----
61

query I rowsort
SELECT ALL - - 33 - + 47
----
-14

query I rowsort
SELECT + 49 * - - 82 col2
----
4018

onlyif mysql # aggregate syntax: 
query I rowsort label-5690
SELECT COUNT( * ) * + 33 * - + 66 * + 13 * + + 36
----
-1019304

skipif mysql # not compatible
query I rowsort label-5690
SELECT COUNT ( * ) * + 33 * - + 66 * + 13 * + + 36
----
-1019304

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5691
SELECT CAST( + 67 AS SIGNED ) + + - 34 - - 64 AS col2, + ( - 86 )
----
97
-86

skipif mysql # not compatible
query II rowsort label-5691
SELECT CAST ( + 67 AS INTEGER ) + + - 34 - - 64 AS col2, + ( - 86 )
----
97
-86

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5692
SELECT ALL - 4 - 43 AS col0, 64 DIV 69 * + - COUNT( * )
----
-47
0

skipif mysql # not compatible
query II rowsort label-5692
SELECT ALL - 4 - 43 AS col0, 64 / 69 * + - COUNT ( * )
----
-47
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5693
SELECT ALL - - 39 * 56 - COUNT( * )
----
2183

skipif mysql # not compatible
query I rowsort label-5693
SELECT ALL - - 39 * 56 - COUNT ( * )
----
2183

query I rowsort
SELECT 58 * - 29 col0
----
-1682

query II rowsort
SELECT ALL + 13 * 82, 42 AS col1
----
1066
42

query I rowsort
SELECT 89 + 19 AS col1
----
108

onlyif mysql # aggregate syntax: 
query I rowsort label-5697
SELECT DISTINCT - SUM( DISTINCT + - 11 )
----
11

skipif mysql # not compatible
query I rowsort label-5697
SELECT DISTINCT - SUM ( DISTINCT + - 11 )
----
11

query I rowsort
SELECT ALL - - ( - 45 )
----
-45

query II rowsort
SELECT - 24 * 91 - + 17 + + NULLIF ( + 5, 83 ) - - - 38 AS col0, 37
----
-2234
37

query I rowsort
SELECT ALL 69 * - - 47
----
3243

query II rowsort
SELECT 78 * - - 20 * 50, 61 AS col1
----
78000
61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5702
SELECT 77 / - CAST( NULL AS SIGNED ) + + 74 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5702
SELECT 77 / - CAST ( NULL AS INTEGER ) + + 74 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5703
SELECT SUM( + + ( - 44 ) )
----
-44

skipif mysql # not compatible
query I rowsort label-5703
SELECT SUM ( + + ( - 44 ) )
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-5704
SELECT SUM( DISTINCT - - 68 ) AS col0
----
68

skipif mysql # not compatible
query I rowsort label-5704
SELECT SUM ( DISTINCT - - 68 ) AS col0
----
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5705
SELECT 33 DIV - COALESCE ( + 28, - - COUNT( * ) * + 2 - + 28, - COUNT( * ) DIV - 1 * + 77 * - 56 * - 19 + - - CAST( NULLIF ( 20, + + 47 DIV + + 56 ) AS SIGNED ) + + 45 * - + COUNT( * ) + ( + + 14 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-5705
SELECT 33 / - COALESCE ( + 28, - - COUNT ( * ) * + 2 - + 28, - COUNT ( * ) / - 1 * + 77 * - 56 * - 19 + - - CAST ( NULLIF ( 20, + + 47 / + + 56 ) AS INTEGER ) + + 45 * - + COUNT ( * ) + ( + + 14 ) )
----
-1

query II rowsort
SELECT DISTINCT + ( ( - + 32 ) ), 70 + - 26 AS col1
----
-32
44

query I rowsort
SELECT ALL - 24 * + + ( + 7 ) + 0 + - 90 col2
----
-258

onlyif mysql # aggregate syntax: 
query I rowsort label-5708
SELECT MAX( - 11 ) AS col1
----
-11

skipif mysql # not compatible
query I rowsort label-5708
SELECT MAX ( - 11 ) AS col1
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-5709
SELECT ALL - 63 * - 85 + SUM( - 23 ) AS col0
----
5332

skipif mysql # not compatible
query I rowsort label-5709
SELECT ALL - 63 * - 85 + SUM ( - 23 ) AS col0
----
5332

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5710
SELECT DISTINCT + CASE 75 WHEN - COALESCE ( + 9, + + CASE 53 WHEN + - 12 * COUNT( * ) + - + CASE 46 WHEN - 45 + + 16 THEN NULL WHEN - CAST( NULL AS SIGNED ) THEN - 56 ELSE NULL END - + 45 * - + 8 + + 77 THEN - - COUNT( * ) / + COALESCE ( 79, + 86 ) * + COUNT( * ) + 64 WHEN - 27 / + 76 THEN - 61 ELSE + 49 - 52 END ) * 53 THEN NULL ELSE + 8 END * NULLIF ( - 94, CAST( - 5 AS SIGNED ) / 43 ) + + 39
----
-713

skipif mysql # not compatible
query I rowsort label-5710
SELECT DISTINCT + CASE 75 WHEN - COALESCE ( + 9, + + CASE 53 WHEN + - 12 * COUNT ( * ) + - + CASE 46 WHEN - 45 + + 16 THEN NULL WHEN - CAST ( NULL AS INTEGER ) THEN - 56 ELSE NULL END - + 45 * - + 8 + + 77 THEN - - COUNT ( * ) / + COALESCE ( 79, + 86 ) * + COUNT ( * ) + 64 WHEN - 27 / + 76 THEN - 61 ELSE + 49 - 52 END ) * 53 THEN NULL ELSE + 8 END * NULLIF ( - 94, CAST ( - 5 AS INTEGER ) / 43 ) + + 39
----
-713

onlyif mysql # aggregate syntax: 
query I rowsort label-5711
SELECT DISTINCT - 69 * - - COUNT( * )
----
-69

skipif mysql # not compatible
query I rowsort label-5711
SELECT DISTINCT - 69 * - - COUNT ( * )
----
-69

query I rowsort
SELECT + 85 * + 73 AS col0
----
6205

query I rowsort
SELECT ALL + 47 * + 42 + 89
----
2063

query I rowsort
SELECT + 79 - - 40 AS col0
----
119

query I rowsort
SELECT + 55 - + 96 + 54 * + 63 * 6 * 16
----
326551

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5716
SELECT ALL COUNT( * ) + - COUNT( - 5 ) DIV - 22 + 89 + + 2 AS col1
----
92

skipif mysql # not compatible
query I rowsort label-5716
SELECT ALL COUNT ( * ) + - COUNT ( - 5 ) / - 22 + 89 + + 2 AS col1
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-5717
SELECT DISTINCT 96 * - MAX( DISTINCT - 35 ) AS col2
----
3360

skipif mysql # not compatible
query I rowsort label-5717
SELECT DISTINCT 96 * - MAX ( DISTINCT - 35 ) AS col2
----
3360

onlyif mysql # aggregate syntax: 
query I rowsort label-5718
SELECT ALL - + 73 + ( - COUNT( * ) ) + ( + - 78 ) - - - 16 + - COUNT( * )
----
-169

skipif mysql # not compatible
query I rowsort label-5718
SELECT ALL - + 73 + ( - COUNT ( * ) ) + ( + - 78 ) - - - 16 + - COUNT ( * )
----
-169

onlyif mysql # aggregate syntax: 
query I rowsort label-5719
SELECT + MAX( DISTINCT ( + 66 ) ) * - ( 4 ) + + - 45
----
-309

skipif mysql # not compatible
query I rowsort label-5719
SELECT + MAX ( DISTINCT ( + 66 ) ) * - ( 4 ) + + - 45
----
-309

query I rowsort
SELECT DISTINCT - 2 - + + 38
----
-40

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5721
SELECT - CASE + 8 WHEN CAST( + + COALESCE ( + + 38, 87, + 71 * NULLIF ( - 62, + 28 * + 9 * + - 49 ) ) AS SIGNED ) * - 27 + + - CAST( 22 AS DECIMAL ) THEN NULL ELSE - + 13 * + 60 END AS col1
----
780

skipif mysql # not compatible
query I rowsort label-5721
SELECT - CASE + 8 WHEN CAST ( + + COALESCE ( + + 38, 87, + 71 * NULLIF ( - 62, + 28 * + 9 * + - 49 ) ) AS INTEGER ) * - 27 + + - CAST ( 22 AS REAL ) THEN NULL ELSE - + 13 * + 60 END AS col1
----
780

onlyif mysql # aggregate syntax: 
query I rowsort label-5722
SELECT DISTINCT MIN( ALL - - 13 ) col1
----
13

skipif mysql # not compatible
query I rowsort label-5722
SELECT DISTINCT MIN ( ALL - - 13 ) col1
----
13

query I rowsort
SELECT + - 63 * - + 46 col1
----
2898

query II rowsort
SELECT + 27 AS col1, - 72
----
27
-72

query I rowsort
SELECT - - ( - 14 ) AS col2
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-5726
SELECT ALL - 19 * + 7 - - 41 + COUNT( * ) * 0
----
-92

skipif mysql # not compatible
query I rowsort label-5726
SELECT ALL - 19 * + 7 - - 41 + COUNT ( * ) * 0
----
-92

query I rowsort
SELECT - - 14 + - - 69
----
83

query I rowsort
SELECT - 86 * + ( + + NULLIF ( 63, - 23 ) )
----
-5418

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5729
SELECT - + NULLIF ( + + 3, + CAST( - 79 AS SIGNED ) / 20 ) + - + 52 + COUNT( * )
----
-54

skipif mysql # not compatible
query I rowsort label-5729
SELECT - + NULLIF ( + + 3, + CAST ( - 79 AS INTEGER ) / 20 ) + - + 52 + COUNT ( * )
----
-54

query I rowsort
SELECT DISTINCT + 75 * 3
----
225

onlyif mysql # aggregate syntax: 
query I rowsort label-5731
SELECT ALL - + COUNT( 40 ) * 1 + + + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-5731
SELECT ALL - + COUNT ( 40 ) * 1 + + + COUNT ( * )
----
0

query I rowsort
SELECT - CASE + 86 WHEN - - 52 / 4 THEN NULL ELSE - 74 END
----
74

onlyif mysql # aggregate syntax: 
query II rowsort label-5733
SELECT ALL ( - COUNT( ALL + + 31 ) ) AS col2, + ( 45 ) col2
----
-1
45

skipif mysql # not compatible
query II rowsort label-5733
SELECT ALL ( - COUNT ( ALL + + 31 ) ) AS col2, + ( 45 ) col2
----
-1
45

query I rowsort
SELECT - + 81 * + + 52
----
-4212

onlyif mysql # DIV for integer division: 
query I rowsort label-5735
SELECT DISTINCT + 0 DIV - 17
----
0

skipif mysql # not compatible
query I rowsort label-5735
SELECT DISTINCT + 0 / - 17
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5736
SELECT DISTINCT + 13 DIV SUM( 31 ) + + 4 AS col1
----
4

skipif mysql # not compatible
query I rowsort label-5736
SELECT DISTINCT + 13 / SUM ( 31 ) + + 4 AS col1
----
4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5737
SELECT ALL + COUNT( * ) DIV - 61 + + 11 * - 46
----
-506

skipif mysql # not compatible
query I rowsort label-5737
SELECT ALL + COUNT ( * ) / - 61 + + 11 * - 46
----
-506

query I rowsort
SELECT - 39 - 96 * + + 45
----
-4359

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5739
SELECT + MAX( ALL ( + - CAST( - + 58 AS SIGNED ) ) )
----
58

skipif mysql # not compatible
query I rowsort label-5739
SELECT + MAX ( ALL ( + - CAST ( - + 58 AS INTEGER ) ) )
----
58

query I rowsort
SELECT ALL + 3 * + 6 + + - CASE 85 WHEN + - 49 + + 32 + 84 - - - 71 THEN - ( + 34 ) END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5741
SELECT + ( + - MAX( ALL - CASE 46 WHEN 14 THEN - + 65 END ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5741
SELECT + ( + - MAX ( ALL - CASE 46 WHEN 14 THEN - + 65 END ) ) AS col0
----
NULL

query I rowsort
SELECT + 61 - 35 col1
----
26

query I rowsort
SELECT ALL 39 * - 49 + 5
----
-1906

query I rowsort
SELECT + 25 + 65
----
90

query I rowsort
SELECT DISTINCT 37 * 0
----
0

query I rowsort
SELECT + + 99 * - 71 + - + 72 AS col0
----
-7101

onlyif mysql # aggregate syntax: 
query I rowsort label-5747
SELECT ALL ( - 7 ) * - 46 * - + 14 * + + ( + - 51 ) - 96 + + COUNT( * ) + + - 40 + COUNT( * ) AS col1
----
229774

skipif mysql # not compatible
query I rowsort label-5747
SELECT ALL ( - 7 ) * - 46 * - + 14 * + + ( + - 51 ) - 96 + + COUNT ( * ) + + - 40 + COUNT ( * ) AS col1
----
229774

query I rowsort
SELECT + + 92 * 41 col0
----
3772

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5749
SELECT DISTINCT ( - NULLIF ( + 66, + - 9 / - CAST( NULL AS SIGNED ) + + 48 ) ) * 34 col1
----
-2244

skipif mysql # not compatible
query I rowsort label-5749
SELECT DISTINCT ( - NULLIF ( + 66, + - 9 / - CAST ( NULL AS INTEGER ) + + 48 ) ) * 34 col1
----
-2244

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5750
SELECT + 48 * 92 * 86 DIV + - 6 + - 20 - + MIN( - 47 ) * 38
----
-61530

skipif mysql # not compatible
query I rowsort label-5750
SELECT + 48 * 92 * 86 / + - 6 + - 20 - + MIN ( - 47 ) * 38
----
-61530

onlyif mysql # aggregate syntax: 
query I rowsort label-5751
SELECT ALL 87 * 93 * - COUNT( * ) AS col2
----
-8091

skipif mysql # not compatible
query I rowsort label-5751
SELECT ALL 87 * 93 * - COUNT ( * ) AS col2
----
-8091

query II rowsort
SELECT ALL 61, 87 AS col1
----
61
87

onlyif mysql # aggregate syntax: 
query I rowsort label-5753
SELECT DISTINCT + COALESCE ( + COUNT( * ), + + 23, 55 )
----
1

skipif mysql # not compatible
query I rowsort label-5753
SELECT DISTINCT + COALESCE ( + COUNT ( * ), + + 23, 55 )
----
1

query II rowsort
SELECT - 23, + 82 * ( - + 23 ) AS col1
----
-23
-1886

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5755
SELECT - 6 col1, + CAST( NULL AS DECIMAL ) col1
----
-6
NULL

skipif mysql # not compatible
query II rowsort label-5755
SELECT - 6 col1, + CAST ( NULL AS REAL ) col1
----
-6
NULL

query I rowsort
SELECT ALL ( + + 96 )
----
96

query I rowsort
SELECT + + 91 * + 93 * - 50 + - 9 * + + 19
----
-423321

onlyif mysql # aggregate syntax: 
query II rowsort label-5758
SELECT COUNT( * ) AS col1, + 91 + + + 54
----
1
145

skipif mysql # not compatible
query II rowsort label-5758
SELECT COUNT ( * ) AS col1, + 91 + + + 54
----
1
145

query I rowsort
SELECT ALL - 30 + 54
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-5760
SELECT + 86 + - COUNT( * ) col0
----
85

skipif mysql # not compatible
query I rowsort label-5760
SELECT + 86 + - COUNT ( * ) col0
----
85

onlyif mysql # DIV for integer division: 
query I rowsort label-5761
SELECT DISTINCT 93 DIV 79 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5761
SELECT DISTINCT 93 / 79 AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5762
SELECT ALL - COALESCE ( - + CAST( NULL AS SIGNED ), - COUNT( * ) ) + + 36
----
37

skipif mysql # not compatible
query I rowsort label-5762
SELECT ALL - COALESCE ( - + CAST ( NULL AS INTEGER ), - COUNT ( * ) ) + + 36
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-5763
SELECT ALL COUNT( * ) + - MIN( + 93 ) - 77 AS col2
----
-169

skipif mysql # not compatible
query I rowsort label-5763
SELECT ALL COUNT ( * ) + - MIN ( + 93 ) - 77 AS col2
----
-169

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5764
SELECT ALL - 14 + + COALESCE ( - CAST( - 19 AS SIGNED ), 82 * + 86 + SUM( ALL - 52 ) ) DIV - 36 AS col1
----
-14

skipif mysql # not compatible
query I rowsort label-5764
SELECT ALL - 14 + + COALESCE ( - CAST ( - 19 AS INTEGER ), 82 * + 86 + SUM ( ALL - 52 ) ) / - 36 AS col1
----
-14

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5765
SELECT 29 + + + CAST( NULL AS SIGNED ) AS col2, + 9 AS col2
----
NULL
9

skipif mysql # not compatible
query II rowsort label-5765
SELECT 29 + + + CAST ( NULL AS INTEGER ) AS col2, + 9 AS col2
----
NULL
9

query I rowsort
SELECT ALL - 42 + - 85 + + 25 + - 98 AS col0
----
-200

onlyif mysql # aggregate syntax: 
query I rowsort label-5767
SELECT ALL - COUNT( DISTINCT - 55 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-5767
SELECT ALL - COUNT ( DISTINCT - 55 ) AS col1
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5768
SELECT - 98 * + ( + COUNT( * ) ) + - 20 + + ( - - CAST( - 39 AS SIGNED ) ), 22 AS col1
----
-157
22

skipif mysql # not compatible
query II rowsort label-5768
SELECT - 98 * + ( + COUNT ( * ) ) + - 20 + + ( - - CAST ( - 39 AS INTEGER ) ), 22 AS col1
----
-157
22

query I rowsort
SELECT 10 * + 24 * - + 32
----
-7680

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5770
SELECT DISTINCT - CASE + 76 WHEN + 2 / 34 THEN + 92 ELSE - CAST( NULL AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-5770
SELECT DISTINCT - CASE + 76 WHEN + 2 / 34 THEN + 92 ELSE - CAST ( NULL AS INTEGER ) END
----
NULL

query I rowsort
SELECT 22 * 17
----
374

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5772
SELECT 29 DIV - MIN( DISTINCT + 81 ) col2, 53 + + - 32
----
0
21

skipif mysql # not compatible
query II rowsort label-5772
SELECT 29 / - MIN ( DISTINCT + 81 ) col2, 53 + + - 32
----
0
21

onlyif mysql # aggregate syntax: 
query I rowsort label-5773
SELECT SUM( ALL + + 66 ) + 4 + + 97
----
167

skipif mysql # not compatible
query I rowsort label-5773
SELECT SUM ( ALL + + 66 ) + 4 + + 97
----
167

onlyif mysql # aggregate syntax: 
query I rowsort label-5774
SELECT ALL + 42 * + COUNT( - 13 )
----
42

skipif mysql # not compatible
query I rowsort label-5774
SELECT ALL + 42 * + COUNT ( - 13 )
----
42

query I rowsort
SELECT ALL - 79 - + + 17 + + - 40
----
-136

query II rowsort
SELECT ALL - ( - 90 ) AS col0, + 2 AS col0
----
90
2

query I rowsort
SELECT ALL 96 * + 86
----
8256

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5778
SELECT 64 * - COALESCE ( 62, 80 * + CAST( NULL AS SIGNED ) + ( 90 ) ), 43 * + 2 * 64 AS col1
----
-3968
5504

skipif mysql # not compatible
query II rowsort label-5778
SELECT 64 * - COALESCE ( 62, 80 * + CAST ( NULL AS INTEGER ) + ( 90 ) ), 43 * + 2 * 64 AS col1
----
-3968
5504

onlyif mysql # aggregate syntax: 
query II rowsort label-5779
SELECT ALL - 80 - - COUNT( * ), 91 + + + 94 AS col0
----
-79
185

skipif mysql # not compatible
query II rowsort label-5779
SELECT ALL - 80 - - COUNT ( * ), 91 + + + 94 AS col0
----
-79
185

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5780
SELECT 35 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5780
SELECT 35 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5781
SELECT ALL - - MIN( - 96 )
----
-96

skipif mysql # not compatible
query I rowsort label-5781
SELECT ALL - - MIN ( - 96 )
----
-96

onlyif mysql # aggregate syntax: 
query II rowsort label-5782
SELECT 95 - + 26 AS col0, - MAX( DISTINCT + 87 )
----
69
-87

skipif mysql # not compatible
query II rowsort label-5782
SELECT 95 - + 26 AS col0, - MAX ( DISTINCT + 87 )
----
69
-87

query I rowsort
SELECT - 45 - 7 AS col2
----
-52

query I rowsort
SELECT DISTINCT + - 47 * - 92 + - + 48
----
4276

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5785
SELECT ALL - CAST( - - 98 AS SIGNED ) DIV ( - COALESCE ( - 25, + 50 * + ( - + 53 ) * - + 85 + + + 44 + 57 * COUNT( * ) ) )
----
-3

skipif mysql # not compatible
query I rowsort label-5785
SELECT ALL - CAST ( - - 98 AS INTEGER ) / ( - COALESCE ( - 25, + 50 * + ( - + 53 ) * - + 85 + + + 44 + 57 * COUNT ( * ) ) )
----
-3

query I rowsort
SELECT ALL COALESCE ( + - 98, - 0 )
----
-98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5787
SELECT - COUNT( * ) DIV - CAST( - ( - 80 ) AS SIGNED ) * - 57
----
0

skipif mysql # not compatible
query I rowsort label-5787
SELECT - COUNT ( * ) / - CAST ( - ( - 80 ) AS INTEGER ) * - 57
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5788
SELECT 41 * CAST( NULL AS SIGNED ), 20 * - 34 * - CAST( + 55 AS SIGNED ) * 44 * + 57 + CAST( NULL AS SIGNED )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-5788
SELECT 41 * CAST ( NULL AS INTEGER ), 20 * - 34 * - CAST ( + 55 AS INTEGER ) * 44 * + 57 + CAST ( NULL AS INTEGER )
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5789
SELECT + COUNT( * ) - 16 AS col0
----
-15

skipif mysql # not compatible
query I rowsort label-5789
SELECT + COUNT ( * ) - 16 AS col0
----
-15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5790
SELECT ALL 87 + + COUNT( * ) AS col0, CAST( NULL AS SIGNED ) + 43 AS col0
----
88
NULL

skipif mysql # not compatible
query II rowsort label-5790
SELECT ALL 87 + + COUNT ( * ) AS col0, CAST ( NULL AS INTEGER ) + 43 AS col0
----
88
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5791
SELECT COALESCE ( 22, - - 51, - MAX( + 64 ) * + CASE 78 WHEN 6 THEN - + 90 + - 95 WHEN - + AVG ( DISTINCT 98 ) + 7 * + - 69 THEN NULL ELSE NULL END + + 8 ) DIV - + 36 * 97
----
0

skipif mysql # not compatible
query I rowsort label-5791
SELECT COALESCE ( 22, - - 51, - MAX ( + 64 ) * + CASE 78 WHEN 6 THEN - + 90 + - 95 WHEN - + AVG ( DISTINCT 98 ) + 7 * + - 69 THEN NULL ELSE NULL END + + 8 ) / - + 36 * 97
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5792
SELECT - COUNT( DISTINCT - 53 ) + + NULLIF ( 14, 35 ) DIV - - 29 col0
----
-1

skipif mysql # not compatible
query I rowsort label-5792
SELECT - COUNT ( DISTINCT - 53 ) + + NULLIF ( 14, 35 ) / - - 29 col0
----
-1

query II rowsort
SELECT DISTINCT 53 AS col0, - ( - 74 ) col2
----
53
74

onlyif mysql # aggregate syntax: 
query I rowsort label-5794
SELECT DISTINCT MAX( DISTINCT - 26 ) + ( - COUNT( * ) ) AS col0
----
-27

skipif mysql # not compatible
query I rowsort label-5794
SELECT DISTINCT MAX ( DISTINCT - 26 ) + ( - COUNT ( * ) ) AS col0
----
-27

onlyif mysql # aggregate syntax: 
query II rowsort label-5795
SELECT ALL 12 AS col0, + COUNT( * ) AS col2
----
12
1

skipif mysql # not compatible
query II rowsort label-5795
SELECT ALL 12 AS col0, + COUNT ( * ) AS col2
----
12
1

onlyif mysql # aggregate syntax: 
query II rowsort label-5796
SELECT DISTINCT 64 AS col2, + 41 * + COUNT( * ) - 21 + + NULLIF ( 71, + 14 ) + + SUM( + 70 ) + 52 AS col2
----
64
213

skipif mysql # not compatible
query II rowsort label-5796
SELECT DISTINCT 64 AS col2, + 41 * + COUNT ( * ) - 21 + + NULLIF ( 71, + 14 ) + + SUM ( + 70 ) + 52 AS col2
----
64
213

onlyif mysql # aggregate syntax: 
query I rowsort label-5797
SELECT COALESCE ( - 99, + - 10 * + + 92 + - 41, + + COUNT( * ) ) + 12 * - 53 AS col0
----
-735

skipif mysql # not compatible
query I rowsort label-5797
SELECT COALESCE ( - 99, + - 10 * + + 92 + - 41, + + COUNT ( * ) ) + 12 * - 53 AS col0
----
-735

query I rowsort
SELECT ALL + 56 * + 40 AS col1
----
2240

onlyif mysql # aggregate syntax: 
query I rowsort label-5799
SELECT ALL ( + CASE WHEN ( NULL ) <= + - COUNT( * ) THEN + 95 * + COALESCE ( - 48, + 26 * COUNT( * ) ) WHEN + ( + 56 ) NOT IN ( 28 * - 92, COALESCE ( + 1, 28 / + 68 * - - 87 * - COUNT( * ) * 72 + + - 57 ) ) THEN 92 / CASE + COALESCE ( - 99, + COUNT( * ) ) WHEN COUNT( * ) * + 26 THEN + 3 * + COUNT( * ) WHEN 16 THEN NULL ELSE NULL END END ) * + 62 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5799
SELECT ALL ( + CASE WHEN ( NULL ) <= + - COUNT ( * ) THEN + 95 * + COALESCE ( - 48, + 26 * COUNT ( * ) ) WHEN + ( + 56 ) NOT IN ( 28 * - 92, COALESCE ( + 1, 28 / + 68 * - - 87 * - COUNT ( * ) * 72 + + - 57 ) ) THEN 92 / CASE + COALESCE ( - 99, + COUNT ( * ) ) WHEN COUNT ( * ) * + 26 THEN + 3 * + COUNT ( * ) WHEN 16 THEN NULL ELSE NULL END END ) * + 62 AS col2
----
NULL

query I rowsort
SELECT DISTINCT - ( + - 68 ) AS col1
----
68

query I rowsort
SELECT 57 * + + 30
----
1710

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5802
SELECT + 18 * + 60 - + + 81 + + 37 * - CAST( + + 67 AS SIGNED ) * COALESCE ( COUNT( * ), - - 45 DIV 99 * 91 + + 37, - 65, - 76 ) * 14 AS col0
----
-33707

skipif mysql # not compatible
query I rowsort label-5802
SELECT + 18 * + 60 - + + 81 + + 37 * - CAST ( + + 67 AS INTEGER ) * COALESCE ( COUNT ( * ), - - 45 / 99 * 91 + + 37, - 65, - 76 ) * 14 AS col0
----
-33707

onlyif mysql # aggregate syntax: 
query I rowsort label-5803
SELECT ALL + 48 - - COUNT( * ) AS col2
----
49

skipif mysql # not compatible
query I rowsort label-5803
SELECT ALL + 48 - - COUNT ( * ) AS col2
----
49

query I rowsort
SELECT 73 + + 16
----
89

query I rowsort
SELECT COALESCE ( + 3, + 24 + - 40 ) + - + 40 col2
----
-37

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5806
SELECT 47 * CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5806
SELECT 47 * CAST ( NULL AS REAL ) AS col1
----
NULL

query I rowsort
SELECT 83 * + + 65 * + 4
----
21580

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5808
SELECT COUNT( * ) DIV + + 4
----
0

skipif mysql # not compatible
query I rowsort label-5808
SELECT COUNT ( * ) / + + 4
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5809
SELECT + MAX( ALL 31 ) AS col0
----
31

skipif mysql # not compatible
query I rowsort label-5809
SELECT + MAX ( ALL 31 ) AS col0
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-5810
SELECT + 78 * + - 46 * - COUNT( * ) + + COUNT( ALL 58 ) + - 12 * + 12 + - 5 AS col1
----
3440

skipif mysql # not compatible
query I rowsort label-5810
SELECT + 78 * + - 46 * - COUNT ( * ) + + COUNT ( ALL 58 ) + - 12 * + 12 + - 5 AS col1
----
3440

query I rowsort
SELECT ALL - 32 * - 50
----
1600

onlyif mysql # aggregate syntax: 
query III rowsort label-5812
SELECT + 43 + + SUM( - 84 ) AS col0, 53 * - - 39 + - + 60, + COUNT( DISTINCT - + 8 ) + - 45 AS col1
----
-41
2007
-44

skipif mysql # not compatible
query III rowsort label-5812
SELECT + 43 + + SUM ( - 84 ) AS col0, 53 * - - 39 + - + 60, + COUNT ( DISTINCT - + 8 ) + - 45 AS col1
----
-41
2007
-44

onlyif mysql # DIV for integer division: 
query I rowsort label-5813
SELECT ALL - 21 DIV + - 43 * + ( ( - 85 ) ) col2
----
0

skipif mysql # not compatible
query I rowsort label-5813
SELECT ALL - 21 / + - 43 * + ( ( - 85 ) ) col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5814
SELECT DISTINCT + + NULLIF ( - - 64, + ( + - 46 ) * - 10 ) * - - COUNT( * ) AS col2
----
64

skipif mysql # not compatible
query I rowsort label-5814
SELECT DISTINCT + + NULLIF ( - - 64, + ( + - 46 ) * - 10 ) * - - COUNT ( * ) AS col2
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-5815
SELECT + 57 * - COUNT( * ) col0
----
-57

skipif mysql # not compatible
query I rowsort label-5815
SELECT + 57 * - COUNT ( * ) col0
----
-57

query I rowsort
SELECT ALL + - 95 + - 30 * + 19 * 59
----
-33725

query I rowsort
SELECT - 66 + - + 51
----
-117

onlyif mysql # aggregate syntax: 
query II rowsort label-5818
SELECT + 91 AS col2, + MAX( ALL + 46 ) col2
----
91
46

skipif mysql # not compatible
query II rowsort label-5818
SELECT + 91 AS col2, + MAX ( ALL + 46 ) col2
----
91
46

onlyif mysql # aggregate syntax: 
query I rowsort label-5819
SELECT DISTINCT - COUNT( * ) + + 85 AS col1
----
84

skipif mysql # not compatible
query I rowsort label-5819
SELECT DISTINCT - COUNT ( * ) + + 85 AS col1
----
84

query I rowsort
SELECT ALL - - 7 + + 16
----
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5821
SELECT CASE + 32 WHEN - 21 - - + 35 + + + CAST( MAX( DISTINCT ( - 26 ) ) AS SIGNED ) + - ( - 46 ) THEN NULL WHEN - NULLIF ( - 0, + ( ( + + 28 ) ) ) + - 77 THEN + CAST( + - 63 AS SIGNED ) * + COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-5821
SELECT CASE + 32 WHEN - 21 - - + 35 + + + CAST ( MAX ( DISTINCT ( - 26 ) ) AS INTEGER ) + - ( - 46 ) THEN NULL WHEN - NULLIF ( - 0, + ( ( + + 28 ) ) ) + - 77 THEN + CAST ( + - 63 AS INTEGER ) * + COUNT ( * ) END
----
NULL

query I rowsort
SELECT - - 25 * 54
----
1350

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5823
SELECT ALL CAST( + + 28 AS SIGNED ) AS col0
----
28

skipif mysql # not compatible
query I rowsort label-5823
SELECT ALL CAST ( + + 28 AS INTEGER ) AS col0
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-5824
SELECT ALL + + 78 + COUNT( * )
----
79

skipif mysql # not compatible
query I rowsort label-5824
SELECT ALL + + 78 + COUNT ( * )
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-5825
SELECT ALL - COUNT( * ) + - - 6
----
5

skipif mysql # not compatible
query I rowsort label-5825
SELECT ALL - COUNT ( * ) + - - 6
----
5

query I rowsort
SELECT ALL + 64 + + - 1 AS col0
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-5827
SELECT + 95 * - CASE + 26 WHEN + + 19 THEN NULL WHEN - COUNT( * ) THEN NULL WHEN - + AVG ( + 32 ) - + 61 THEN 80 END * + + 50 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5827
SELECT + 95 * - CASE + 26 WHEN + + 19 THEN NULL WHEN - COUNT ( * ) THEN NULL WHEN - + AVG ( + 32 ) - + 61 THEN 80 END * + + 50 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5828
SELECT + 16 + - COUNT( * ) AS col1
----
15

skipif mysql # not compatible
query I rowsort label-5828
SELECT + 16 + - COUNT ( * ) AS col1
----
15

onlyif mysql # DIV for integer division: 
query I rowsort label-5829
SELECT DISTINCT 39 DIV + - 80
----
0

skipif mysql # not compatible
query I rowsort label-5829
SELECT DISTINCT 39 / + - 80
----
0

query I rowsort
SELECT - NULLIF ( - 35, - 83 )
----
35

query I rowsort
SELECT ALL 74 * + 26 AS col1
----
1924

onlyif mysql # aggregate syntax: 
query II rowsort label-5832
SELECT - 80 + 90 AS col0, SUM( - 27 )
----
10
-27

skipif mysql # not compatible
query II rowsort label-5832
SELECT - 80 + 90 AS col0, SUM ( - 27 )
----
10
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-5833
SELECT - MAX( - 58 ) AS col2
----
58

skipif mysql # not compatible
query I rowsort label-5833
SELECT - MAX ( - 58 ) AS col2
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-5834
SELECT DISTINCT 68 - COUNT( * )
----
67

skipif mysql # not compatible
query I rowsort label-5834
SELECT DISTINCT 68 - COUNT ( * )
----
67

query I rowsort
SELECT DISTINCT + NULLIF ( - ( + 37 ), - 57 / - 82 ) * + + 34 AS col1
----
-1258

query I rowsort
SELECT ALL ( + - 41 ) - + NULLIF ( + + 21, + - 83 ) + 36 + - 78 * + 70 + + ( + 45 ) * 28 + 77 AS col2
----
-4149

query II rowsort
SELECT + 2 + + - 14 AS col1, - 25 * + 39
----
-12
-975

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5838
SELECT + ( - SUM( + + 54 ) ) DIV 79 - - 37 + - 8 * + 53 - + 3 + + 84 col1, COUNT( * ) * ( + + 81 ) * + + 75 col2
----
-306
6075

skipif mysql # not compatible
query II rowsort label-5838
SELECT + ( - SUM ( + + 54 ) ) / 79 - - 37 + - 8 * + 53 - + 3 + + 84 col1, COUNT ( * ) * ( + + 81 ) * + + 75 col2
----
-306
6075

onlyif mysql # aggregate syntax: 
query I rowsort label-5839
SELECT ( + SUM( DISTINCT - 94 ) )
----
-94

skipif mysql # not compatible
query I rowsort label-5839
SELECT ( + SUM ( DISTINCT - 94 ) )
----
-94

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5840
SELECT CASE - 25 WHEN 12 * + 9 + + 38 THEN - - 88 * + + 12 * + - 53 WHEN + - 66 + - COUNT( * ) + + 61 / - 55 * 15 / - 82 + CAST( 34 AS DECIMAL ) + + SUM( DISTINCT - 11 ) * - 71 THEN NULL WHEN - COUNT( - 97 ) / ( - 16 ) / - ( 25 ) * + 82 - + 14 THEN COUNT( * ) END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5840
SELECT CASE - 25 WHEN 12 * + 9 + + 38 THEN - - 88 * + + 12 * + - 53 WHEN + - 66 + - COUNT ( * ) + + 61 / - 55 * 15 / - 82 + CAST ( 34 AS REAL ) + + SUM ( DISTINCT - 11 ) * - 71 THEN NULL WHEN - COUNT ( - 97 ) / ( - 16 ) / - ( 25 ) * + 82 - + 14 THEN COUNT ( * ) END col2
----
NULL

query I rowsort
SELECT ALL + + ( + 53 )
----
53

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5842
SELECT DISTINCT + 21 * - 55 * - - 13 - - COUNT( * ) * - 7 + - 58 DIV - ( + - 56 )
----
-15023

skipif mysql # not compatible
query I rowsort label-5842
SELECT DISTINCT + 21 * - 55 * - - 13 - - COUNT ( * ) * - 7 + - 58 / - ( + - 56 )
----
-15023

query I rowsort
SELECT DISTINCT - 92 * - + 47
----
4324

onlyif mysql # aggregate syntax: 
query II rowsort label-5844
SELECT + COUNT( * ) * + COUNT( * ) - - 99 - 23, + COUNT( * ) AS col1
----
77
1

skipif mysql # not compatible
query II rowsort label-5844
SELECT + COUNT ( * ) * + COUNT ( * ) - - 99 - 23, + COUNT ( * ) AS col1
----
77
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5845
SELECT ALL - + COUNT( ALL 42 ) * + + COUNT( * ) + - + 44 + MIN( 14 ) * 47 * 14 * + 40 * + 34 AS col1
----
12528275

skipif mysql # not compatible
query I rowsort label-5845
SELECT ALL - + COUNT ( ALL 42 ) * + + COUNT ( * ) + - + 44 + MIN ( 14 ) * 47 * 14 * + 40 * + 34 AS col1
----
12528275

onlyif mysql # aggregate syntax: 
query I rowsort label-5846
SELECT ALL 55 * 55 * + + 42 + + + COUNT( * )
----
127051

skipif mysql # not compatible
query I rowsort label-5846
SELECT ALL 55 * 55 * + + 42 + + + COUNT ( * )
----
127051

onlyif mysql # aggregate syntax: 
query I rowsort label-5847
SELECT - - COUNT( * ) * + + 34 + + - 70 AS col0
----
-36

skipif mysql # not compatible
query I rowsort label-5847
SELECT - - COUNT ( * ) * + + 34 + + - 70 AS col0
----
-36

onlyif mysql # aggregate syntax: 
query II rowsort label-5848
SELECT + - 29 - 51 * - MAX( - - ( 68 ) ), + 27 AS col2
----
3439
27

skipif mysql # not compatible
query II rowsort label-5848
SELECT + - 29 - 51 * - MAX ( - - ( 68 ) ), + 27 AS col2
----
3439
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5849
SELECT ALL - COALESCE ( COUNT( * ), + 71, COALESCE ( + 71, 61 * 29 * - CAST( - 14 AS SIGNED ), + 10 + - - COUNT( * ), 13 ) ) DIV + 83 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5849
SELECT ALL - COALESCE ( COUNT ( * ), + 71, COALESCE ( + 71, 61 * 29 * - CAST ( - 14 AS INTEGER ), + 10 + - - COUNT ( * ), 13 ) ) / + 83 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5850
SELECT DISTINCT + COUNT( DISTINCT - 2 )
----
1

skipif mysql # not compatible
query I rowsort label-5850
SELECT DISTINCT + COUNT ( DISTINCT - 2 )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-5851
SELECT DISTINCT + 15 DIV - 23 + 35 * 21 AS col0
----
735

skipif mysql # not compatible
query I rowsort label-5851
SELECT DISTINCT + 15 / - 23 + 35 * 21 AS col0
----
735

onlyif mysql # DIV for integer division: 
query I rowsort label-5852
SELECT DISTINCT + 51 * 66 DIV + 84 + + 15 * 49 * - + 12
----
-8780

skipif mysql # not compatible
query I rowsort label-5852
SELECT DISTINCT + 51 * 66 / + 84 + + 15 * 49 * - + 12
----
-8780

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5853
SELECT ALL + CAST( NULL AS SIGNED ) * - 28 + - 29 * + 78 * - 60 + - 92 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5853
SELECT ALL + CAST ( NULL AS INTEGER ) * - 28 + - 29 * + 78 * - 60 + - 92 col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5854
SELECT DISTINCT + 35 * + 30, 33 + ( - 68 ) * - + COUNT( * ) col2
----
1050
101

skipif mysql # not compatible
query II rowsort label-5854
SELECT DISTINCT + 35 * + 30, 33 + ( - 68 ) * - + COUNT ( * ) col2
----
1050
101

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5855
SELECT - AVG ( DISTINCT + + CAST( NULL AS SIGNED ) ) - + 75 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5855
SELECT - AVG ( DISTINCT + + CAST ( NULL AS INTEGER ) ) - + 75 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5856
SELECT DISTINCT - CAST( + + COUNT( * ) AS SIGNED ) * 39 col0
----
-39

skipif mysql # not compatible
query I rowsort label-5856
SELECT DISTINCT - CAST ( + + COUNT ( * ) AS INTEGER ) * 39 col0
----
-39

query I rowsort
SELECT ALL + COALESCE ( - COALESCE ( 99, 27 ), - - 67 ) - 81
----
-180

query II rowsort
SELECT 45 AS col1, 75 AS col0
----
45
75

onlyif mysql # aggregate syntax: 
query I rowsort label-5859
SELECT ALL - SUM( DISTINCT - 5 ) * - + COUNT( * ) AS col1
----
-5

skipif mysql # not compatible
query I rowsort label-5859
SELECT ALL - SUM ( DISTINCT - 5 ) * - + COUNT ( * ) AS col1
----
-5

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5860
SELECT - 39 + + COALESCE ( 88, + + CAST( NULL AS SIGNED ) DIV + - 53 )
----
49

skipif mysql # not compatible
query I rowsort label-5860
SELECT - 39 + + COALESCE ( 88, + + CAST ( NULL AS INTEGER ) / + - 53 )
----
49

query I rowsort
SELECT + 45 * + + 6
----
270

onlyif mysql # aggregate syntax: 
query I rowsort label-5862
SELECT - 15 + + + CASE ( ( - SUM( 86 ) ) ) WHEN + 46 THEN NULL ELSE 68 * + 98 * - 56 END * + + 29 AS col2
----
-10822351

skipif mysql # not compatible
query I rowsort label-5862
SELECT - 15 + + + CASE ( ( - SUM ( 86 ) ) ) WHEN + 46 THEN NULL ELSE 68 * + 98 * - 56 END * + + 29 AS col2
----
-10822351

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5863
SELECT DISTINCT CAST( NULL AS SIGNED ), 35 DIV + - MIN( DISTINCT 13 ) col0
----
NULL
-2

skipif mysql # not compatible
query II rowsort label-5863
SELECT DISTINCT CAST ( NULL AS INTEGER ), 35 / + - MIN ( DISTINCT 13 ) col0
----
NULL
-2

query I rowsort
SELECT DISTINCT ( 72 ) col2
----
72

onlyif mysql # DIV for integer division: 
query I rowsort label-5865
SELECT ALL 21 DIV + 18 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5865
SELECT ALL 21 / + 18 AS col2
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5866
SELECT DISTINCT - COUNT( * ) - + 82 DIV + 91 + - ( + 61 ) DIV NULLIF ( + 39, - + 80 * - COUNT( * ) * 52 ) AS col1, 54
----
-2
54

skipif mysql # not compatible
query II rowsort label-5866
SELECT DISTINCT - COUNT ( * ) - + 82 / + 91 + - ( + 61 ) / NULLIF ( + 39, - + 80 * - COUNT ( * ) * 52 ) AS col1, 54
----
-2
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5867
SELECT DISTINCT 38 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5867
SELECT DISTINCT 38 * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5868
SELECT - CASE + + 81 WHEN - 50 THEN - COALESCE ( - + COUNT( * ), 72 ) + + ( + - MIN( + 22 ) ) ELSE + 95 END, + 19 AS col1
----
-95
19

skipif mysql # not compatible
query II rowsort label-5868
SELECT - CASE + + 81 WHEN - 50 THEN - COALESCE ( - + COUNT ( * ), 72 ) + + ( + - MIN ( + 22 ) ) ELSE + 95 END, + 19 AS col1
----
-95
19

query I rowsort
SELECT + 61 + - 17 AS col2
----
44

query I rowsort
SELECT - 73 * + - 67
----
4891

query I rowsort
SELECT + 79 * + + 97
----
7663

query I rowsort
SELECT ALL - 21 * + 27
----
-567

query I rowsort
SELECT - 90 + + - 74 AS col0
----
-164

onlyif mysql # aggregate syntax: 
query I rowsort label-5874
SELECT - COUNT( * ) * 52 * + + COUNT( * ) AS col2
----
-52

skipif mysql # not compatible
query I rowsort label-5874
SELECT - COUNT ( * ) * 52 * + + COUNT ( * ) AS col2
----
-52

query I rowsort
SELECT ALL 37 * - 68 AS col1
----
-2516

onlyif mysql # aggregate syntax: 
query I rowsort label-5876
SELECT - COUNT( * ) + - 83 + - - 50
----
-34

skipif mysql # not compatible
query I rowsort label-5876
SELECT - COUNT ( * ) + - 83 + - - 50
----
-34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5877
SELECT ALL 35 DIV - - SUM( 13 ) + 72
----
74

skipif mysql # not compatible
query I rowsort label-5877
SELECT ALL 35 / - - SUM ( 13 ) + 72
----
74

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5878
SELECT ALL 47 DIV + + ( - + COUNT( * ) ) + 93 col1
----
46

skipif mysql # not compatible
query I rowsort label-5878
SELECT ALL 47 / + + ( - + COUNT ( * ) ) + 93 col1
----
46

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-5879
SELECT DISTINCT - + ( - - 38 ) * + CAST( NULL AS DECIMAL ), 5 * - COUNT( - 64 ) + - 39 AS col0
----
NULL
-44

skipif mysql # not compatible
query II rowsort label-5879
SELECT DISTINCT - + ( - - 38 ) * + CAST ( NULL AS REAL ), 5 * - COUNT ( - 64 ) + - 39 AS col0
----
NULL
-44

onlyif mysql # DIV for integer division: 
query I rowsort label-5880
SELECT DISTINCT 65 DIV + 47 + + 21 AS col0
----
22

skipif mysql # not compatible
query I rowsort label-5880
SELECT DISTINCT 65 / + 47 + + 21 AS col0
----
22

query II rowsort
SELECT + - 18 AS col0, - 41 * + COALESCE ( + + 80, + NULLIF ( + 50, 52 ) * + 78 ) col1
----
-18
-3280

onlyif mysql # aggregate syntax: 
query I rowsort label-5882
SELECT + - COUNT( * ) + + ( + + 56 ) AS col1
----
55

skipif mysql # not compatible
query I rowsort label-5882
SELECT + - COUNT ( * ) + + ( + + 56 ) AS col1
----
55

query I rowsort
SELECT + 1 + - 90 + + 39
----
-50

query I rowsort
SELECT 58 * - 29 + + - 43
----
-1725

query I rowsort
SELECT ALL 54 * + 70 col2
----
3780

query I rowsort
SELECT - 28 + 59 + - - 44 - COALESCE ( 50, + 5 )
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-5887
SELECT 18 * + + SUM( - 73 ) AS col1
----
-1314

skipif mysql # not compatible
query I rowsort label-5887
SELECT 18 * + + SUM ( - 73 ) AS col1
----
-1314

query II rowsort
SELECT ALL - 86 * 30 * + - 6, 45 col1
----
15480
45

query I rowsort
SELECT ALL + - 40 - 86 AS col0
----
-126

query I rowsort
SELECT + ( 43 ) + ( + + 82 ) AS col0
----
125

onlyif mysql # aggregate syntax: 
query II rowsort label-5891
SELECT ALL 38 * + + COUNT( * ) * + 62, 13 AS col0
----
2356
13

skipif mysql # not compatible
query II rowsort label-5891
SELECT ALL 38 * + + COUNT ( * ) * + 62, 13 AS col0
----
2356
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5892
SELECT + CASE + 67 WHEN + + 90 THEN + COUNT( * ) - + COUNT( * ) * 8 * - 84 / + 1 + - 26 WHEN CAST( NULL AS SIGNED ) * - 29 + 83 THEN + + 87 ELSE NULL END AS col2, + MAX( + CAST( NULL AS SIGNED ) )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-5892
SELECT + CASE + 67 WHEN + + 90 THEN + COUNT ( * ) - + COUNT ( * ) * 8 * - 84 / + 1 + - 26 WHEN CAST ( NULL AS INTEGER ) * - 29 + 83 THEN + + 87 ELSE NULL END AS col2, + MAX ( + CAST ( NULL AS INTEGER ) )
----
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5893
SELECT ( - 55 ) + + COALESCE ( - MAX( DISTINCT + 37 ), + 79 ) + - COALESCE ( - 23, - CAST( NULL AS SIGNED ) * + 69 ) AS col0
----
-69

skipif mysql # not compatible
query I rowsort label-5893
SELECT ( - 55 ) + + COALESCE ( - MAX ( DISTINCT + 37 ), + 79 ) + - COALESCE ( - 23, - CAST ( NULL AS INTEGER ) * + 69 ) AS col0
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-5894
SELECT ALL + 62 - 45 + - ( - SUM( DISTINCT - 78 ) ) AS col1
----
-61

skipif mysql # not compatible
query I rowsort label-5894
SELECT ALL + 62 - 45 + - ( - SUM ( DISTINCT - 78 ) ) AS col1
----
-61

query I rowsort
SELECT 52 + - 6
----
46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5896
SELECT 58 DIV COUNT( * ) AS col0
----
58

skipif mysql # not compatible
query I rowsort label-5896
SELECT 58 / COUNT ( * ) AS col0
----
58

query I rowsort
SELECT ALL 21 - 82 col0
----
-61

query I rowsort
SELECT DISTINCT + 6 * - 7
----
-42

query I rowsort
SELECT ALL CASE - 96 WHEN + + ( 24 ) THEN - + COALESCE ( + 84, + - ( + COALESCE ( + - COALESCE ( + - 2, - 7 ), + 24 * 86 + - - 54 ) ), - 42 ) END / - 56 / + 68
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5900
SELECT ALL + 97 - 76 + COUNT( DISTINCT + 67 ) * 5 * - 49 AS col2
----
-224

skipif mysql # not compatible
query I rowsort label-5900
SELECT ALL + 97 - 76 + COUNT ( DISTINCT + 67 ) * 5 * - 49 AS col2
----
-224

onlyif mysql # DIV for integer division: 
query I rowsort label-5901
SELECT 48 DIV - 68 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5901
SELECT 48 / - 68 AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5902
SELECT ALL NULLIF ( 57, + 73 ) / - 66 * 16 * - 76 + 66 + - ( 21 ) + + NULLIF ( 62, - + 47 ) * - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5902
SELECT ALL NULLIF ( 57, + 73 ) / - 66 * 16 * - 76 + 66 + - ( 21 ) + + NULLIF ( 62, - + 47 ) * - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5903
SELECT 58 * + COALESCE ( - 88, - 53 * - 98 + - - SUM( DISTINCT - - 13 ) * COUNT( * ) ) * - 15
----
76560

skipif mysql # not compatible
query I rowsort label-5903
SELECT 58 * + COALESCE ( - 88, - 53 * - 98 + - - SUM ( DISTINCT - - 13 ) * COUNT ( * ) ) * - 15
----
76560

query I rowsort
SELECT ALL - 25 * + - 68 col1
----
1700

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5905
SELECT 64 + 69 - + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5905
SELECT 64 + 69 - + - CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT DISTINCT 24 AS col0, 36 AS col2
----
24
36

query I rowsort
SELECT 73 + - 88
----
-15

query I rowsort
SELECT 83 * + + 75 col0
----
6225

query I rowsort
SELECT 57 - + 28
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-5910
SELECT DISTINCT - COUNT( * ) + - ( MIN( + 76 ) )
----
-77

skipif mysql # not compatible
query I rowsort label-5910
SELECT DISTINCT - COUNT ( * ) + - ( MIN ( + 76 ) )
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-5911
SELECT ALL - 35 * - COUNT( * ) AS col0
----
35

skipif mysql # not compatible
query I rowsort label-5911
SELECT ALL - 35 * - COUNT ( * ) AS col0
----
35

query I rowsort
SELECT 73 * - ( 95 )
----
-6935

onlyif mysql # aggregate syntax: 
query II rowsort label-5913
SELECT 33 col2, COUNT( * ) AS col2
----
33
1

skipif mysql # not compatible
query II rowsort label-5913
SELECT 33 col2, COUNT ( * ) AS col2
----
33
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5914
SELECT ALL + 62 + MIN( DISTINCT - ( - 43 ) ) * 23
----
1051

skipif mysql # not compatible
query I rowsort label-5914
SELECT ALL + 62 + MIN ( DISTINCT - ( - 43 ) ) * 23
----
1051

query I rowsort
SELECT 89 + + 79
----
168

query II rowsort
SELECT DISTINCT - 26 AS col2, 89 + + - NULLIF ( + 69, - 38 + - 36 ) AS col2
----
-26
20

onlyif mysql # aggregate syntax: 
query I rowsort label-5917
SELECT ALL - 53 + - 98 * - 4 + + 71 * - - MAX( ALL - 8 ) AS col2
----
-229

skipif mysql # not compatible
query I rowsort label-5917
SELECT ALL - 53 + - 98 * - 4 + + 71 * - - MAX ( ALL - 8 ) AS col2
----
-229

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5918
SELECT + - COUNT( * ) * - 90 + - 91 DIV + 22 + + 23
----
109

skipif mysql # not compatible
query I rowsort label-5918
SELECT + - COUNT ( * ) * - 90 + - 91 / + 22 + + 23
----
109

query I rowsort
SELECT ALL - + 75 + + 8
----
-67

query II rowsort
SELECT + + 18 AS col2, + 50
----
18
50

query I rowsort
SELECT DISTINCT + 76 * + 1 * + 68 * 73
----
377264

onlyif mysql # aggregate syntax: 
query I rowsort label-5922
SELECT ALL ( COUNT( * ) ) * + 23 * + 58 AS col2
----
1334

skipif mysql # not compatible
query I rowsort label-5922
SELECT ALL ( COUNT ( * ) ) * + 23 * + 58 AS col2
----
1334

query I rowsort
SELECT - 12 * 93 * + - 30 + - 53
----
33427

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5924
SELECT + 60 AS col0, - CAST( NULL AS SIGNED )
----
60
NULL

skipif mysql # not compatible
query II rowsort label-5924
SELECT + 60 AS col0, - CAST ( NULL AS INTEGER )
----
60
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5925
SELECT ALL + COUNT( * ) - 45 + 22 * 29 + 45 * 67 AS col0
----
3609

skipif mysql # not compatible
query I rowsort label-5925
SELECT ALL + COUNT ( * ) - 45 + 22 * 29 + 45 * 67 AS col0
----
3609

query I rowsort
SELECT DISTINCT + 15 * - + 66
----
-990

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5927
SELECT ALL - 57 * - CAST( - + 4 AS SIGNED ) + 84
----
-144

skipif mysql # not compatible
query I rowsort label-5927
SELECT ALL - 57 * - CAST ( - + 4 AS INTEGER ) + 84
----
-144

query I rowsort
SELECT + ( - 58 ) * + 66 + - - 3 + 42 AS col2
----
-3783

query I rowsort
SELECT NULLIF ( 1, + - 30 )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-5930
SELECT + 94 AS col0, - CASE + COUNT( * ) WHEN 93 + - 78 THEN + 29 / - + 93 + - - 27 END AS col0
----
94
NULL

skipif mysql # not compatible
query II rowsort label-5930
SELECT + 94 AS col0, - CASE + COUNT ( * ) WHEN 93 + - 78 THEN + 29 / - + 93 + - - 27 END AS col0
----
94
NULL

query I rowsort
SELECT - 28 - 48 AS col1
----
-76

onlyif mysql # aggregate syntax: 
query II rowsort label-5932
SELECT COUNT( * ) + 34, COUNT( * ) AS col1
----
35
1

skipif mysql # not compatible
query II rowsort label-5932
SELECT COUNT ( * ) + 34, COUNT ( * ) AS col1
----
35
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5933
SELECT COUNT( * ) * - ( + - 34 )
----
34

skipif mysql # not compatible
query I rowsort label-5933
SELECT COUNT ( * ) * - ( + - 34 )
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-5934
SELECT COUNT( * ) * 16 * + 40 + - 55 AS col1
----
585

skipif mysql # not compatible
query I rowsort label-5934
SELECT COUNT ( * ) * 16 * + 40 + - 55 AS col1
----
585

query I rowsort
SELECT DISTINCT 62 * - ( 82 ) * - 81 AS col1
----
411804

query I rowsort
SELECT ( + ( + - 10 ) ) * 12 AS col0
----
-120

onlyif mysql # aggregate syntax: 
query I rowsort label-5937
SELECT DISTINCT ( - CASE + COUNT( * ) WHEN - 98 THEN - - 62 / - 28 + - COUNT( * ) END ) * + 95
----
NULL

skipif mysql # not compatible
query I rowsort label-5937
SELECT DISTINCT ( - CASE + COUNT ( * ) WHEN - 98 THEN - - 62 / - 28 + - COUNT ( * ) END ) * + 95
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5938
SELECT 77 + SUM( DISTINCT 47 ) AS col1
----
124

skipif mysql # not compatible
query I rowsort label-5938
SELECT 77 + SUM ( DISTINCT 47 ) AS col1
----
124

onlyif mysql # DIV for integer division: 
query II rowsort label-5939
SELECT 83 DIV - 61 AS col1, 71 * + 19 + - 60
----
-1
1289

skipif mysql # not compatible
query II rowsort label-5939
SELECT 83 / - 61 AS col1, 71 * + 19 + - 60
----
-1
1289

query I rowsort
SELECT 57 + + 67 + - + ( + - 44 ) AS col1
----
168

onlyif mysql # aggregate syntax: 
query I rowsort label-5941
SELECT DISTINCT + MAX( - 83 ) + + - 19 + - 50 AS col1
----
-152

skipif mysql # not compatible
query I rowsort label-5941
SELECT DISTINCT + MAX ( - 83 ) + + - 19 + - 50 AS col1
----
-152

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5942
SELECT CAST( + AVG ( DISTINCT 34 ) AS SIGNED ) + COUNT( - 9 )
----
35

skipif mysql # not compatible
query I rowsort label-5942
SELECT CAST ( + AVG ( DISTINCT 34 ) AS INTEGER ) + COUNT ( - 9 )
----
35

query I rowsort
SELECT ALL 8 + + 82
----
90

query I rowsort
SELECT ALL + 58 + 84
----
142

onlyif mysql # DIV for integer division: 
query I rowsort label-5945
SELECT DISTINCT 43 DIV - - ( + 25 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5945
SELECT DISTINCT 43 / - - ( + 25 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5946
SELECT DISTINCT 60 + - NULLIF ( + 35, 23 ) * - - COUNT( * )
----
25

skipif mysql # not compatible
query I rowsort label-5946
SELECT DISTINCT 60 + - NULLIF ( + 35, 23 ) * - - COUNT ( * )
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-5947
SELECT DISTINCT - 85 * COUNT( * )
----
-85

skipif mysql # not compatible
query I rowsort label-5947
SELECT DISTINCT - 85 * COUNT ( * )
----
-85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5948
SELECT CAST( 96 AS SIGNED ) + - 1 * NULLIF ( + ( + 58 ), - + CAST( 32 AS SIGNED ) )
----
38

skipif mysql # not compatible
query I rowsort label-5948
SELECT CAST ( 96 AS INTEGER ) + - 1 * NULLIF ( + ( + 58 ), - + CAST ( 32 AS INTEGER ) )
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-5949
SELECT ALL + MAX( - 51 ) + + - 20
----
-71

skipif mysql # not compatible
query I rowsort label-5949
SELECT ALL + MAX ( - 51 ) + + - 20
----
-71

onlyif mysql # aggregate syntax: 
query II rowsort label-5950
SELECT ALL + 13 * + 15 AS col0, 54 + NULLIF ( + - 30, + COUNT( * ) / 75 * 22 - + - 98 )
----
195
24

skipif mysql # not compatible
query II rowsort label-5950
SELECT ALL + 13 * + 15 AS col0, 54 + NULLIF ( + - 30, + COUNT ( * ) / 75 * 22 - + - 98 )
----
195
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5951
SELECT DISTINCT + + 11 * CAST( NULL AS SIGNED ) + - ( COUNT( * ) ) - + + 43 + 81 + + 52 * - - 37 * - COUNT( * ) * 98 + 5
----
NULL

skipif mysql # not compatible
query I rowsort label-5951
SELECT DISTINCT + + 11 * CAST ( NULL AS INTEGER ) + - ( COUNT ( * ) ) - + + 43 + 81 + + 52 * - - 37 * - COUNT ( * ) * 98 + 5
----
NULL

query I rowsort
SELECT - - 16 + - - 92 - - + 25
----
133

onlyif mysql # aggregate syntax: 
query I rowsort label-5953
SELECT MAX( DISTINCT ( + 52 ) ) AS col2
----
52

skipif mysql # not compatible
query I rowsort label-5953
SELECT MAX ( DISTINCT ( + 52 ) ) AS col2
----
52

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5954
SELECT ALL - 1 * + 41 - + + 15 AS col1, 70 * + 41 * + AVG ( CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) ) * + 45 * - 61 + + 48 + COALESCE ( - 57, - CAST( NULL AS SIGNED ) ) + + 99 * + 80 * - CAST( - 8 AS SIGNED ) AS col2
----
-56
NULL

skipif mysql # not compatible
query II rowsort label-5954
SELECT ALL - 1 * + 41 - + + 15 AS col1, 70 * + 41 * + AVG ( CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) ) * + 45 * - 61 + + 48 + COALESCE ( - 57, - CAST ( NULL AS INTEGER ) ) + + 99 * + 80 * - CAST ( - 8 AS INTEGER ) AS col2
----
-56
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5955
SELECT DISTINCT + COUNT( * ) * + 55 + - + COUNT( DISTINCT + 92 ) * - 5 + - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5955
SELECT DISTINCT + COUNT ( * ) * + 55 + - + COUNT ( DISTINCT + 92 ) * - 5 + - + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - + 92 * - 40 + - 69
----
3611

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5957
SELECT DISTINCT + ( ( 26 ) ) AS col0, + 31 + ( - CAST( NULL AS SIGNED ) ) AS col2
----
26
NULL

skipif mysql # not compatible
query II rowsort label-5957
SELECT DISTINCT + ( ( 26 ) ) AS col0, + 31 + ( - CAST ( NULL AS INTEGER ) ) AS col2
----
26
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5958
SELECT - 64 DIV - 2 + - ( + 64 ) * + + 66 + + ( + 71 ) * MIN( + + 72 ) col1
----
920

skipif mysql # not compatible
query I rowsort label-5958
SELECT - 64 / - 2 + - ( + 64 ) * + + 66 + + ( + 71 ) * MIN ( + + 72 ) col1
----
920

onlyif mysql # aggregate syntax: 
query I rowsort label-5959
SELECT CASE COUNT( * ) WHEN 93 THEN - 55 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5959
SELECT CASE COUNT ( * ) WHEN 93 THEN - 55 END AS col0
----
NULL

query I rowsort
SELECT - 59 + - 89 + 3 AS col1
----
-145

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5961
SELECT - + 0 * ( + 90 ) + + CAST( + 49 AS DECIMAL ) + + - 86 + COALESCE ( + + 40, - - 86, 31 ) + - CASE + + 80 WHEN + 70 THEN + - COUNT( * ) WHEN + 38 / - 90 THEN - COALESCE ( + CAST( NULL AS SIGNED ), - ( - + 91 ) - 7 + + + 29 * - 84 * CAST( - COALESCE ( - 58, 64 ) AS SIGNED ) * 4 - 81 * - NULLIF ( 31 - - 1, + 52 ), ( + 27 ) / + 52 ) ELSE NULL END * 23 * + ( + 89 ) * 88
----
NULL

skipif mysql # not compatible
query I rowsort label-5961
SELECT - + 0 * ( + 90 ) + + CAST ( + 49 AS REAL ) + + - 86 + COALESCE ( + + 40, - - 86, 31 ) + - CASE + + 80 WHEN + 70 THEN + - COUNT ( * ) WHEN + 38 / - 90 THEN - COALESCE ( + CAST ( NULL AS INTEGER ), - ( - + 91 ) - 7 + + + 29 * - 84 * CAST ( - COALESCE ( - 58, 64 ) AS INTEGER ) * 4 - 81 * - NULLIF ( 31 - - 1, + 52 ), ( + 27 ) / + 52 ) ELSE NULL END * 23 * + ( + 89 ) * 88
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5962
SELECT + - 9 DIV - 95 * CAST( + 99 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-5962
SELECT + - 9 / - 95 * CAST ( + 99 AS INTEGER )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5963
SELECT DISTINCT + 3 * - COUNT( * )
----
-3

skipif mysql # not compatible
query I rowsort label-5963
SELECT DISTINCT + 3 * - COUNT ( * )
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5964
SELECT ALL + + NULLIF ( CAST( - - COUNT( * ) AS SIGNED ), + MIN( DISTINCT - - 88 ) + + 23 )
----
1

skipif mysql # not compatible
query I rowsort label-5964
SELECT ALL + + NULLIF ( CAST ( - - COUNT ( * ) AS INTEGER ), + MIN ( DISTINCT - - 88 ) + + 23 )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5965
SELECT - CAST( ( + + ( + ( + 25 ) ) ) AS SIGNED )
----
-25

skipif mysql # not compatible
query I rowsort label-5965
SELECT - CAST ( ( + + ( + ( + 25 ) ) ) AS INTEGER )
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-5966
SELECT ALL + 70 * - - COUNT( * ) AS col1
----
70

skipif mysql # not compatible
query I rowsort label-5966
SELECT ALL + 70 * - - COUNT ( * ) AS col1
----
70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5967
SELECT - - 65 + + 55 + - 8 + - COUNT( * ) * + 12 DIV + 17 AS col0
----
112

skipif mysql # not compatible
query I rowsort label-5967
SELECT - - 65 + + 55 + - 8 + - COUNT ( * ) * + 12 / + 17 AS col0
----
112

onlyif mysql # DIV for integer division: 
query I rowsort label-5968
SELECT - 35 DIV 34
----
-1

skipif mysql # not compatible
query I rowsort label-5968
SELECT - 35 / 34
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5969
SELECT DISTINCT + - 51 * - COUNT( * ) + + - 10
----
41

skipif mysql # not compatible
query I rowsort label-5969
SELECT DISTINCT + - 51 * - COUNT ( * ) + + - 10
----
41

onlyif mysql # aggregate syntax: 
query II rowsort label-5970
SELECT ALL + 13, - MIN( DISTINCT 52 ) + + 66 AS col2
----
13
14

skipif mysql # not compatible
query II rowsort label-5970
SELECT ALL + 13, - MIN ( DISTINCT 52 ) + + 66 AS col2
----
13
14

onlyif mysql # aggregate syntax: 
query II rowsort label-5971
SELECT ALL + 35 * SUM( + - 62 ) + - + COUNT( * ) AS col0, 95 AS col1
----
-2171
95

skipif mysql # not compatible
query II rowsort label-5971
SELECT ALL + 35 * SUM ( + - 62 ) + - + COUNT ( * ) AS col0, 95 AS col1
----
-2171
95

query II rowsort
SELECT + 9, + 3 * 73 * - + ( - 98 ) col0
----
9
21462

query I rowsort
SELECT ALL + ( - - 39 ) col2
----
39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5974
SELECT + 38 + + + 48 + COUNT( * ) + - + 6 DIV COUNT( * ) + - - 11 AS col1
----
92

skipif mysql # not compatible
query I rowsort label-5974
SELECT + 38 + + + 48 + COUNT ( * ) + - + 6 / COUNT ( * ) + - - 11 AS col1
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-5975
SELECT ALL 20 + 70 + + COUNT( * ) AS col0
----
91

skipif mysql # not compatible
query I rowsort label-5975
SELECT ALL 20 + 70 + + COUNT ( * ) AS col0
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-5976
SELECT - MIN( - 67 ) AS col1
----
67

skipif mysql # not compatible
query I rowsort label-5976
SELECT - MIN ( - 67 ) AS col1
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-5977
SELECT SUM( ALL + 86 ) AS col1
----
86

skipif mysql # not compatible
query I rowsort label-5977
SELECT SUM ( ALL + 86 ) AS col1
----
86

query I rowsort
SELECT DISTINCT 55 + - 34
----
21

query I rowsort
SELECT DISTINCT ( - 35 ) col2
----
-35

query I rowsort
SELECT ALL - 62 + - 50
----
-112

onlyif mysql # aggregate syntax: 
query I rowsort label-5981
SELECT ALL 96 + + COUNT( + - 70 )
----
97

skipif mysql # not compatible
query I rowsort label-5981
SELECT ALL 96 + + COUNT ( + - 70 )
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5982
SELECT ALL SUM( - 8 ) * - 73 * - 80 * + - 59 AS col0
----
2756480

skipif mysql # not compatible
query I rowsort label-5982
SELECT ALL SUM ( - 8 ) * - 73 * - 80 * + - 59 AS col0
----
2756480

query II rowsort
SELECT 58 AS col1, 34
----
58
34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5984
SELECT + CAST( - 43 AS SIGNED ) * 48
----
-2064

skipif mysql # not compatible
query I rowsort label-5984
SELECT + CAST ( - 43 AS INTEGER ) * 48
----
-2064

onlyif mysql # aggregate syntax: 
query II rowsort label-5985
SELECT DISTINCT + 42 AS col1, + COUNT( * ) * 98 * NULLIF ( + - 11, COALESCE ( - 14, 45 * - - NULLIF ( + 9, - - 20 ), 75 ) ) AS col1
----
42
-1078

skipif mysql # not compatible
query II rowsort label-5985
SELECT DISTINCT + 42 AS col1, + COUNT ( * ) * 98 * NULLIF ( + - 11, COALESCE ( - 14, 45 * - - NULLIF ( + 9, - - 20 ), 75 ) ) AS col1
----
42
-1078

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5986
SELECT ALL CAST( - MIN( DISTINCT 75 ) AS SIGNED )
----
-75

skipif mysql # not compatible
query I rowsort label-5986
SELECT ALL CAST ( - MIN ( DISTINCT 75 ) AS INTEGER )
----
-75

query I rowsort
SELECT + ( - - 55 ) col2
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-5988
SELECT - COUNT( * ) + - COUNT( - - 80 ) + 58 * + - 0 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-5988
SELECT - COUNT ( * ) + - COUNT ( - - 80 ) + 58 * + - 0 AS col2
----
-2

query II rowsort
SELECT - + 81 * - ( + 55 ), 81 AS col1
----
4455
81

query II rowsort
SELECT - 21, - 13 AS col1
----
-21
-13

query II rowsort
SELECT ALL 83, 93 AS col2
----
83
93

query I rowsort
SELECT + 3 * - - 39 - - 83 * + - 42
----
-3369

query I rowsort
SELECT + 8 * 57 AS col2
----
456

onlyif mysql # DIV for integer division: 
query I rowsort label-5994
SELECT ALL + 99 DIV + 60
----
1

skipif mysql # not compatible
query I rowsort label-5994
SELECT ALL + 99 / + 60
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5995
SELECT + - SUM( 12 )
----
-12

skipif mysql # not compatible
query I rowsort label-5995
SELECT + - SUM ( 12 )
----
-12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5996
SELECT DISTINCT + + 91 * CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5996
SELECT DISTINCT + + 91 * CAST ( NULL AS INTEGER ) col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5997
SELECT - - 80 * CASE - 75 WHEN + 61 THEN NULL WHEN 19 * + NULLIF ( + CAST( NULL AS SIGNED ), 28 ) + + + 32 * + - COUNT( 39 ) THEN NULL WHEN + - COUNT( * ) + + 6 - - SUM( + + COALESCE ( 34, 97, - + 76 + ( 78 ) ) ) THEN 98 + - COUNT( * ) + - + 78 ELSE NULL END + + COUNT( * ) + + + ( - - 47 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5997
SELECT - - 80 * CASE - 75 WHEN + 61 THEN NULL WHEN 19 * + NULLIF ( + CAST ( NULL AS INTEGER ), 28 ) + + + 32 * + - COUNT ( 39 ) THEN NULL WHEN + - COUNT ( * ) + + 6 - - SUM ( + + COALESCE ( 34, 97, - + 76 + ( 78 ) ) ) THEN 98 + - COUNT ( * ) + - + 78 ELSE NULL END + + COUNT ( * ) + + + ( - - 47 )
----
NULL

query I rowsort
SELECT ALL + 74 * 66 - 86 + - + 64 AS col1
----
4734

onlyif mysql # aggregate syntax: 
query I rowsort label-5999
SELECT ALL + SUM( + + 79 )
----
79

skipif mysql # not compatible
query I rowsort label-5999
SELECT ALL + SUM ( + + 79 )
----
79

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6000
SELECT - 24 * + CAST( NULL AS DECIMAL ) * 71 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6000
SELECT - 24 * + CAST ( NULL AS REAL ) * 71 AS col1
----
NULL

query I rowsort
SELECT DISTINCT + ( - 41 ) AS col0
----
-41

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6002
SELECT ALL COUNT( * ) * 53 + + 10 DIV 86 AS col0, - 27 AS col0
----
53
-27

skipif mysql # not compatible
query II rowsort label-6002
SELECT ALL COUNT ( * ) * 53 + + 10 / 86 AS col0, - 27 AS col0
----
53
-27

query I rowsort
SELECT 75 * 27 * - + 28 + - - 77 AS col0
----
-56623

onlyif mysql # aggregate syntax: 
query II rowsort label-6004
SELECT - 63 * + 4 AS col2, COUNT( * ) * + 62 * + 60 + - 15 * - 88 AS col1
----
-252
5040

skipif mysql # not compatible
query II rowsort label-6004
SELECT - 63 * + 4 AS col2, COUNT ( * ) * + 62 * + 60 + - 15 * - 88 AS col1
----
-252
5040

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6005
SELECT ALL 64 * + - CAST( NULL AS SIGNED ) * - CAST( + - 1 AS SIGNED ) + - 67 / + 29 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6005
SELECT ALL 64 * + - CAST ( NULL AS INTEGER ) * - CAST ( + - 1 AS INTEGER ) + - 67 / + 29 AS col0
----
NULL

query I rowsort
SELECT - 33 + + 80
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-6007
SELECT + CASE - + 8 WHEN 56 THEN COUNT( + - 70 ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6007
SELECT + CASE - + 8 WHEN 56 THEN COUNT ( + - 70 ) END AS col0
----
NULL

query I rowsort
SELECT ALL 76 * - - 80 * 24 * - 58 + 16 col2
----
-8463344

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6009
SELECT - 27 + MIN( ALL - - 59 ) + 87 * + CAST( NULL AS SIGNED ) / + 89 * 60 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6009
SELECT - 27 + MIN ( ALL - - 59 ) + 87 * + CAST ( NULL AS INTEGER ) / + 89 * 60 AS col0
----
NULL

query I rowsort
SELECT + 32 * + 14
----
448

onlyif mysql # aggregate syntax: 
query I rowsort label-6011
SELECT DISTINCT + COUNT( - 82 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-6011
SELECT DISTINCT + COUNT ( - 82 ) col1
----
1

query II rowsort
SELECT + 94 * 85 + 45 * 94 col1, 63 AS col2
----
12220
63

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6013
SELECT ALL + 3 * + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-6013
SELECT ALL + 3 * + CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT - 96 * 88 AS col0
----
-8448

query I rowsort
SELECT ALL + 3 * + + 94 AS col0
----
282

onlyif mysql # aggregate syntax: 
query II rowsort label-6016
SELECT + 49 - + COUNT( DISTINCT + 57 ) * + 63 col2, - 91 AS col0
----
-14
-91

skipif mysql # not compatible
query II rowsort label-6016
SELECT + 49 - + COUNT ( DISTINCT + 57 ) * + 63 col2, - 91 AS col0
----
-14
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-6017
SELECT MAX( + + 11 ) * 70 AS col0
----
770

skipif mysql # not compatible
query I rowsort label-6017
SELECT MAX ( + + 11 ) * 70 AS col0
----
770

query I rowsort
SELECT DISTINCT 4 - - 86 * - - 84 col1
----
7228

query I rowsort
SELECT ALL 9 * 26 + 74
----
308

query I rowsort
SELECT 62 * - 55 - - 19 AS col0
----
-3391

query I rowsort
SELECT DISTINCT + 97 * - 87 * + 99
----
-835461

onlyif mysql # aggregate syntax: 
query I rowsort label-6022
SELECT DISTINCT 36 * - + 58 * COUNT( * )
----
-2088

skipif mysql # not compatible
query I rowsort label-6022
SELECT DISTINCT 36 * - + 58 * COUNT ( * )
----
-2088

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6023
SELECT ALL CASE NULLIF ( - SUM( DISTINCT 56 ), + - ( + 40 ) * - 51 / CASE 60 WHEN - 57 THEN - 95 WHEN - - COUNT( * ) + 93 * - 99 THEN + + 89 WHEN NULLIF ( - 81, + + 77 - + 42 ) THEN + CASE + 63 WHEN + - 66 * + 68 + 0 + + + 35 + AVG ( + 33 ) + + - 49 THEN 56 * - 62 ELSE - 92 + + 45 END * 7 ELSE 4 END ) WHEN - ( + 96 ) + - COUNT( * ) * 51 THEN - 22 * CASE - 24 * 76 WHEN ( 99 ) THEN + 9 WHEN COUNT( * ) * 27 THEN 28 * + ( 64 ) WHEN + 44 + 20 * - MIN( CAST( 77 AS SIGNED ) ) THEN NULL ELSE NULL END WHEN 47 THEN NULL WHEN - NULLIF ( 19, + 99 - 59 ) THEN 71 * 72 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6023
SELECT ALL CASE NULLIF ( - SUM ( DISTINCT 56 ), + - ( + 40 ) * - 51 / CASE 60 WHEN - 57 THEN - 95 WHEN - - COUNT ( * ) + 93 * - 99 THEN + + 89 WHEN NULLIF ( - 81, + + 77 - + 42 ) THEN + CASE + 63 WHEN + - 66 * + 68 + 0 + + + 35 + AVG ( + 33 ) + + - 49 THEN 56 * - 62 ELSE - 92 + + 45 END * 7 ELSE 4 END ) WHEN - ( + 96 ) + - COUNT ( * ) * 51 THEN - 22 * CASE - 24 * 76 WHEN ( 99 ) THEN + 9 WHEN COUNT ( * ) * 27 THEN 28 * + ( 64 ) WHEN + 44 + 20 * - MIN ( CAST ( 77 AS INTEGER ) ) THEN NULL ELSE NULL END WHEN 47 THEN NULL WHEN - NULLIF ( 19, + 99 - 59 ) THEN 71 * 72 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6024
SELECT 18 + + - 58 * - SUM( - + 87 ) - - 80 + 40 * - 98 AS col0
----
-8868

skipif mysql # not compatible
query I rowsort label-6024
SELECT 18 + + - 58 * - SUM ( - + 87 ) - - 80 + 40 * - 98 AS col0
----
-8868

onlyif mysql # DIV for integer division: 
query I rowsort label-6025
SELECT + 72 DIV 44 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6025
SELECT + 72 / 44 AS col1
----
1

query I rowsort
SELECT ( - 99 ) * + 0 * - 47 AS col0
----
0

query I rowsort
SELECT 11 + - 19 - - 69
----
61

onlyif mysql # CAST syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-6028
SELECT ALL 38 DIV - 89 AS col0, CAST( NULL AS DECIMAL ) + 22 * - 16 DIV - 11
----
0
NULL

skipif mysql # not compatible
query II rowsort label-6028
SELECT ALL 38 / - 89 AS col0, CAST ( NULL AS REAL ) + 22 * - 16 / - 11
----
0
NULL

query I rowsort
SELECT ALL 78 + 12
----
90

query I rowsort
SELECT 87 + + + 44 + - + 16
----
115

onlyif mysql # aggregate syntax: 
query I rowsort label-6031
SELECT ALL + + COUNT( * ) + + 60 * - 27
----
-1619

skipif mysql # not compatible
query I rowsort label-6031
SELECT ALL + + COUNT ( * ) + + 60 * - 27
----
-1619

query I rowsort
SELECT ALL - ( + ( - 31 ) )
----
31

onlyif mysql # DIV for integer division: 
query I rowsort label-6033
SELECT ALL + 93 DIV + 95 - + 60 AS col2
----
-60

skipif mysql # not compatible
query I rowsort label-6033
SELECT ALL + 93 / + 95 - + 60 AS col2
----
-60

onlyif mysql # DIV for integer division: 
query I rowsort label-6034
SELECT 36 DIV + 5
----
7

skipif mysql # not compatible
query I rowsort label-6034
SELECT 36 / + 5
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-6035
SELECT 77 + + + SUM( ALL + 28 )
----
105

skipif mysql # not compatible
query I rowsort label-6035
SELECT 77 + + + SUM ( ALL + 28 )
----
105

query I rowsort
SELECT ALL 45 + + + ( - 29 ) AS col0
----
16

query I rowsort
SELECT ALL + 43 + + 98 AS col0
----
141

onlyif mysql # DIV for integer division: 
query I rowsort label-6038
SELECT + 16 * - 37 + 48 * - - 47 - + 81 DIV + + 39 + - 2 AS col0
----
1660

skipif mysql # not compatible
query I rowsort label-6038
SELECT + 16 * - 37 + 48 * - - 47 - + 81 / + + 39 + - 2 AS col0
----
1660

query I rowsort
SELECT DISTINCT ( + 96 ) + - 8
----
88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6040
SELECT DISTINCT - 62 + 76 + 13 * COUNT( ALL + 64 ) * + 76 - - 73 * + 42 * + COUNT( * ) + CAST( 76 AS SIGNED ) AS col1
----
4144

skipif mysql # not compatible
query I rowsort label-6040
SELECT DISTINCT - 62 + 76 + 13 * COUNT ( ALL + 64 ) * + 76 - - 73 * + 42 * + COUNT ( * ) + CAST ( 76 AS INTEGER ) AS col1
----
4144

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6041
SELECT DISTINCT 44 + - - CAST( + + COUNT( * ) AS SIGNED )
----
45

skipif mysql # not compatible
query I rowsort label-6041
SELECT DISTINCT 44 + - - CAST ( + + COUNT ( * ) AS INTEGER )
----
45

query I rowsort
SELECT ALL - ( + - 40 ) col1
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-6043
SELECT ALL - COUNT( * ) - + - 50 + + + 63 AS col0
----
112

skipif mysql # not compatible
query I rowsort label-6043
SELECT ALL - COUNT ( * ) - + - 50 + + + 63 AS col0
----
112

query I rowsort
SELECT DISTINCT - NULLIF ( - 77, + 50 ) AS col2
----
77

query II rowsort
SELECT - 77 * + 49 + + 65 + + 54 + 3 AS col2, 18 AS col0
----
-3651
18

query I rowsort
SELECT 11 + - 6
----
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6047
SELECT ALL - 45 - + 61 + 22 DIV + ( 95 ) * - CASE - - 18 WHEN + 48 * + CASE 58 WHEN + - 39 THEN - COUNT( * ) ELSE 52 * - 19 - + 67 END + - - 51 + 5 THEN NULL ELSE - 27 END AS col2, - ( 35 ) * COUNT( * ) + 15 + 81 * + 22 AS col2
----
-106
1762

skipif mysql # not compatible
query II rowsort label-6047
SELECT ALL - 45 - + 61 + 22 / + ( 95 ) * - CASE - - 18 WHEN + 48 * + CASE 58 WHEN + - 39 THEN - COUNT ( * ) ELSE 52 * - 19 - + 67 END + - - 51 + 5 THEN NULL ELSE - 27 END AS col2, - ( 35 ) * COUNT ( * ) + 15 + 81 * + 22 AS col2
----
-106
1762

query I rowsort
SELECT 82 * 31 col0
----
2542

query I rowsort
SELECT 17 * - 82
----
-1394

onlyif mysql # aggregate syntax: 
query I rowsort label-6050
SELECT 88 + + 19 * + COUNT( ALL 24 )
----
107

skipif mysql # not compatible
query I rowsort label-6050
SELECT 88 + + 19 * + COUNT ( ALL 24 )
----
107

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6051
SELECT DISTINCT - COUNT( * ) - 42 - - CAST( + 90 AS SIGNED )
----
47

skipif mysql # not compatible
query I rowsort label-6051
SELECT DISTINCT - COUNT ( * ) - 42 - - CAST ( + 90 AS INTEGER )
----
47

query I rowsort
SELECT ALL - 9 * - 7 * - 54 * + - 19
----
64638

query I rowsort
SELECT + 63 * - 53
----
-3339

query II rowsort
SELECT ALL + 90, ( 16 ) AS col1
----
90
16

query I rowsort
SELECT DISTINCT + 32 * 26 AS col0
----
832

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query III rowsort label-6056
SELECT ALL - CASE + + 75 WHEN + + COUNT( * ) * COALESCE ( - + 81, + + 34 ) + - - ( 54 ) THEN + COUNT( * ) * + CAST( NULL AS DECIMAL ) WHEN - SUM( - 47 ) THEN 42 WHEN + CASE + + 8 WHEN - - 61 THEN NULL ELSE 2 END THEN - - 93 END AS col2, SUM( + 39 ) * - 48 + - CAST( + + 60 AS SIGNED ) AS col2, + COUNT( * )
----
NULL
-1932
1

skipif mysql # not compatible
query III rowsort label-6056
SELECT ALL - CASE + + 75 WHEN + + COUNT ( * ) * COALESCE ( - + 81, + + 34 ) + - - ( 54 ) THEN + COUNT ( * ) * + CAST ( NULL AS REAL ) WHEN - SUM ( - 47 ) THEN 42 WHEN + CASE + + 8 WHEN - - 61 THEN NULL ELSE 2 END THEN - - 93 END AS col2, SUM ( + 39 ) * - 48 + - CAST ( + + 60 AS INTEGER ) AS col2, + COUNT ( * )
----
NULL
-1932
1

query I rowsort
SELECT - - ( + 50 ) AS col2
----
50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6058
SELECT - 70 - 83 * 42 + - 76 + - 37 - + CAST( NULL AS SIGNED ) / + ( - + 98 ) * - + 10 + + 91 + 91 * 2 + + ( + 76 ) + AVG ( DISTINCT + + 84 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6058
SELECT - 70 - 83 * 42 + - 76 + - 37 - + CAST ( NULL AS INTEGER ) / + ( - + 98 ) * - + 10 + + 91 + 91 * 2 + + ( + 76 ) + AVG ( DISTINCT + + 84 ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT + - 20 + 75
----
55

query II rowsort
SELECT ALL - 47 + 67 * 63, 9 AS col1
----
4174
9

onlyif mysql # aggregate syntax: 
query I rowsort label-6061
SELECT + SUM( + + 20 ) AS col1
----
20

skipif mysql # not compatible
query I rowsort label-6061
SELECT + SUM ( + + 20 ) AS col1
----
20

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6062
SELECT ALL - 92 + COUNT( * ) DIV - 17 + - NULLIF ( + - 50, - 0 ) + - 51 + + 37 AS col1
----
-56

skipif mysql # not compatible
query I rowsort label-6062
SELECT ALL - 92 + COUNT ( * ) / - 17 + - NULLIF ( + - 50, - 0 ) + - 51 + + 37 AS col1
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-6063
SELECT 2 * COUNT( * ) * 59 + - + 99 AS col0
----
19

skipif mysql # not compatible
query I rowsort label-6063
SELECT 2 * COUNT ( * ) * 59 + - + 99 AS col0
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-6064
SELECT DISTINCT + 8 * SUM( ALL - 95 ) + 88 AS col0
----
-672

skipif mysql # not compatible
query I rowsort label-6064
SELECT DISTINCT + 8 * SUM ( ALL - 95 ) + 88 AS col0
----
-672

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6065
SELECT CASE + 90 WHEN 63 THEN NULL ELSE - + CAST( - - 37 AS SIGNED ) + 19 END * + - 83 - + COUNT( * ) AS col2
----
1493

skipif mysql # not compatible
query I rowsort label-6065
SELECT CASE + 90 WHEN 63 THEN NULL ELSE - + CAST ( - - 37 AS INTEGER ) + 19 END * + - 83 - + COUNT ( * ) AS col2
----
1493

onlyif mysql # aggregate syntax: 
query I rowsort label-6066
SELECT + SUM( + + 22 )
----
22

skipif mysql # not compatible
query I rowsort label-6066
SELECT + SUM ( + + 22 )
----
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6067
SELECT CASE - + 80 WHEN - 28 THEN + 6 * + COUNT( * ) - - + 86 + + 98 + + + COUNT( DISTINCT CAST( - + NULLIF ( + 30, + 97 * + + COALESCE ( - NULLIF ( - 76, - 17 ), - - 78, + NULLIF ( + - 2, + 50 ) + 81 ) ) AS SIGNED ) ) ELSE - + 27 END * + - 27 AS col0
----
729

skipif mysql # not compatible
query I rowsort label-6067
SELECT CASE - + 80 WHEN - 28 THEN + 6 * + COUNT ( * ) - - + 86 + + 98 + + + COUNT ( DISTINCT CAST ( - + NULLIF ( + 30, + 97 * + + COALESCE ( - NULLIF ( - 76, - 17 ), - - 78, + NULLIF ( + - 2, + 50 ) + 81 ) ) AS INTEGER ) ) ELSE - + 27 END * + - 27 AS col0
----
729

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6068
SELECT ALL ( + - COUNT( 64 ) ) * + ( - 79 ) DIV - - 16 + COUNT( * ) + + 50 + COUNT( * ) * + COUNT( * ) * - + 42 * + + 3 + - 48 - - 34 AS col0
----
-85

skipif mysql # not compatible
query I rowsort label-6068
SELECT ALL ( + - COUNT ( 64 ) ) * + ( - 79 ) / - - 16 + COUNT ( * ) + + 50 + COUNT ( * ) * + COUNT ( * ) * - + 42 * + + 3 + - 48 - - 34 AS col0
----
-85

onlyif mysql # DIV for integer division: 
query I rowsort label-6069
SELECT ( - 29 ) DIV - 87 + + 46 AS col1
----
46

skipif mysql # not compatible
query I rowsort label-6069
SELECT ( - 29 ) / - 87 + + 46 AS col1
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-6070
SELECT MAX( - 69 )
----
-69

skipif mysql # not compatible
query I rowsort label-6070
SELECT MAX ( - 69 )
----
-69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6071
SELECT + 61 * CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6071
SELECT + 61 * CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6072
SELECT DISTINCT 73 * + + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6072
SELECT DISTINCT 73 * + + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT + ( + 78 ) + 41 * - + 83 AS col0
----
-3325

query I rowsort
SELECT ALL - 40 * + + 59 col0
----
-2360

onlyif mysql # aggregate syntax: 
query I rowsort label-6075
SELECT MAX( ALL + + 57 )
----
57

skipif mysql # not compatible
query I rowsort label-6075
SELECT MAX ( ALL + + 57 )
----
57

query I rowsort
SELECT DISTINCT 37 * + - 62 AS col0
----
-2294

query I rowsort
SELECT + CASE - 83 WHEN + 22 THEN + + 62 * 76 + + - 92 * ( + 96 ) * + 10 + + 48 - - - 21 * + 32 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6078
SELECT - - ( - + SUM( + 50 ) ) - + ( 14 ) AS col1
----
-64

skipif mysql # not compatible
query I rowsort label-6078
SELECT - - ( - + SUM ( + 50 ) ) - + ( 14 ) AS col1
----
-64

query II rowsort
SELECT + 62 AS col0, - 41 * + - 48 col2
----
62
1968

onlyif mysql # aggregate syntax: 
query I rowsort label-6080
SELECT DISTINCT + MIN( 4 )
----
4

skipif mysql # not compatible
query I rowsort label-6080
SELECT DISTINCT + MIN ( 4 )
----
4

query I rowsort
SELECT + - 31 - - 75
----
44

query II rowsort
SELECT - 96, 5 col0
----
-96
5

onlyif mysql # aggregate syntax: 
query I rowsort label-6083
SELECT ALL + 87 * + COUNT( * ) * + + 92 * 84 AS col1
----
672336

skipif mysql # not compatible
query I rowsort label-6083
SELECT ALL + 87 * + COUNT ( * ) * + + 92 * 84 AS col1
----
672336

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6084
SELECT - - MAX( ALL + - 31 ) / + CAST( NULL AS SIGNED ) + - COUNT( - 77 ) * + + 9 / 33 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6084
SELECT - - MAX ( ALL + - 31 ) / + CAST ( NULL AS INTEGER ) + - COUNT ( - 77 ) * + + 9 / 33 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6085
SELECT - + CAST( + 72 AS SIGNED ) AS col0
----
-72

skipif mysql # not compatible
query I rowsort label-6085
SELECT - + CAST ( + 72 AS INTEGER ) AS col0
----
-72

query I rowsort
SELECT ALL - 96 + 92
----
-4

query I rowsort
SELECT - 86 - - 77 AS col2
----
-9

query II rowsort
SELECT DISTINCT 42 AS col0, + 18
----
42
18

onlyif mysql # aggregate syntax: 
query I rowsort label-6089
SELECT ALL + + 42 * - CASE - + 74 WHEN 52 THEN 0 * - 62 * - COUNT( ALL - 51 ) END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6089
SELECT ALL + + 42 * - CASE - + 74 WHEN 52 THEN 0 * - 62 * - COUNT ( ALL - 51 ) END col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6090
SELECT - 43 + - ( - COUNT( DISTINCT 29 ) )
----
-42

skipif mysql # not compatible
query I rowsort label-6090
SELECT - 43 + - ( - COUNT ( DISTINCT 29 ) )
----
-42

query I rowsort
SELECT - 13 * 45 AS col2
----
-585

query I rowsort
SELECT ALL - NULLIF ( + - 7, 44 + - 52 ) + - 68 + 82 + 87
----
108

query I rowsort
SELECT - + 29 + + 92 AS col1
----
63

onlyif mysql # aggregate syntax: 
query II rowsort label-6094
SELECT - 32, + COUNT( * ) AS col0
----
-32
1

skipif mysql # not compatible
query II rowsort label-6094
SELECT - 32, + COUNT ( * ) AS col0
----
-32
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6095
SELECT - + CAST( - COUNT( * ) AS SIGNED ) + 13 AS col1
----
14

skipif mysql # not compatible
query I rowsort label-6095
SELECT - + CAST ( - COUNT ( * ) AS INTEGER ) + 13 AS col1
----
14

query I rowsort
SELECT ALL ( + - 8 ) AS col1
----
-8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6097
SELECT ALL 89 DIV + 98 * - COUNT( * ) - + - 32 * - 65 AS col0
----
-2080

skipif mysql # not compatible
query I rowsort label-6097
SELECT ALL 89 / + 98 * - COUNT ( * ) - + - 32 * - 65 AS col0
----
-2080

onlyif mysql # aggregate syntax: 
query I rowsort label-6098
SELECT ( MIN( ALL - - 82 ) )
----
82

skipif mysql # not compatible
query I rowsort label-6098
SELECT ( MIN ( ALL - - 82 ) )
----
82

onlyif mysql # aggregate syntax: 
query II rowsort label-6099
SELECT + 82 * + + 35 + - - 57 AS col1, COUNT( * )
----
2927
1

skipif mysql # not compatible
query II rowsort label-6099
SELECT + 82 * + + 35 + - - 57 AS col1, COUNT ( * )
----
2927
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6100
SELECT ALL COUNT( * ) DIV + - 57 - 91 + - 5 - - + 24 * - - 82 DIV - 80 + + 59
----
-61

skipif mysql # not compatible
query I rowsort label-6100
SELECT ALL COUNT ( * ) / + - 57 - 91 + - 5 - - + 24 * - - 82 / - 80 + + 59
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-6101
SELECT + 20 * - + 18 + + - 67 + + ( + 92 ) * - COUNT( * ) AS col0
----
-519

skipif mysql # not compatible
query I rowsort label-6101
SELECT + 20 * - + 18 + + - 67 + + ( + 92 ) * - COUNT ( * ) AS col0
----
-519

onlyif mysql # aggregate syntax: 
query I rowsort label-6102
SELECT ALL + NULLIF ( + 29, - 10 + - 25 + + COUNT( * ) )
----
29

skipif mysql # not compatible
query I rowsort label-6102
SELECT ALL + NULLIF ( + 29, - 10 + - 25 + + COUNT ( * ) )
----
29

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6103
SELECT + 50 + - - 67, + CAST( NULL AS SIGNED ) col1
----
117
NULL

skipif mysql # not compatible
query II rowsort label-6103
SELECT + 50 + - - 67, + CAST ( NULL AS INTEGER ) col1
----
117
NULL

query II rowsort
SELECT + 26 + 87, - 63 col1
----
113
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-6105
SELECT - 44 * - - NULLIF ( 35, + COUNT( * ) / - + 56 ) + - ( - ( - 54 ) ) + + + 83 + + - 36 + 82 + - + 24 AS col2
----
-1489

skipif mysql # not compatible
query I rowsort label-6105
SELECT - 44 * - - NULLIF ( 35, + COUNT ( * ) / - + 56 ) + - ( - ( - 54 ) ) + + + 83 + + - 36 + 82 + - + 24 AS col2
----
-1489

onlyif mysql # aggregate syntax: 
query I rowsort label-6106
SELECT + COUNT( 95 ) col0
----
1

skipif mysql # not compatible
query I rowsort label-6106
SELECT + COUNT ( 95 ) col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6107
SELECT + CAST( NULL AS SIGNED ) * 21 * - COUNT( * ) * 34
----
NULL

skipif mysql # not compatible
query I rowsort label-6107
SELECT + CAST ( NULL AS INTEGER ) * 21 * - COUNT ( * ) * 34
----
NULL

query I rowsort
SELECT CASE 12 WHEN + 85 THEN - - 33 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6109
SELECT ALL CAST( + 78 AS SIGNED ) DIV - + 22 AS col0
----
-3

skipif mysql # not compatible
query I rowsort label-6109
SELECT ALL CAST ( + 78 AS INTEGER ) / - + 22 AS col0
----
-3

query I rowsort
SELECT DISTINCT + 94 * - 40 * - 30 + ( 44 )
----
112844

onlyif mysql # aggregate syntax: 
query I rowsort label-6111
SELECT ALL COUNT( * ) * + + 99 AS col0
----
99

skipif mysql # not compatible
query I rowsort label-6111
SELECT ALL COUNT ( * ) * + + 99 AS col0
----
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6112
SELECT - NULLIF ( - 0, + + 98 / CASE - 22 WHEN - 73 THEN NULL WHEN - COUNT( * ) THEN + COUNT( DISTINCT CAST( 48 AS SIGNED ) ) * - 0 END - + + 56 + + - 68 * - + 51 * 12 * + + 29 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6112
SELECT - NULLIF ( - 0, + + 98 / CASE - 22 WHEN - 73 THEN NULL WHEN - COUNT ( * ) THEN + COUNT ( DISTINCT CAST ( 48 AS INTEGER ) ) * - 0 END - + + 56 + + - 68 * - + 51 * 12 * + + 29 ) AS col1
----
0

query I rowsort
SELECT + 47 + + 75
----
122

onlyif mysql # aggregate syntax: 
query I rowsort label-6114
SELECT COALESCE ( - COUNT( * ), - - 57 - + 26 )
----
-1

skipif mysql # not compatible
query I rowsort label-6114
SELECT COALESCE ( - COUNT ( * ), - - 57 - + 26 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6115
SELECT ALL - + 19 + + + CASE + CASE 70 WHEN - 68 + - - MAX( + COALESCE ( 66, 81 ) ) * - 19 + + ( 5 ) + ( - + MAX( ALL - ( + 54 ) ) ) THEN NULL WHEN + MAX( ALL 31 ) THEN + 7 * 9 END WHEN + - 4 THEN - 22 ELSE - COUNT( * ) * 50 + + + 2 END * - COUNT( * ) AS col1
----
29

skipif mysql # not compatible
query I rowsort label-6115
SELECT ALL - + 19 + + + CASE + CASE 70 WHEN - 68 + - - MAX ( + COALESCE ( 66, 81 ) ) * - 19 + + ( 5 ) + ( - + MAX ( ALL - ( + 54 ) ) ) THEN NULL WHEN + MAX ( ALL 31 ) THEN + 7 * 9 END WHEN + - 4 THEN - 22 ELSE - COUNT ( * ) * 50 + + + 2 END * - COUNT ( * ) AS col1
----
29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6116
SELECT - COUNT( - - 36 ) * + + 38 * - CASE - + 21 WHEN + SUM( 45 ) - 93 * - + CAST( 65 AS DECIMAL ) THEN - - 34 ELSE - ( - + CAST( NULL AS SIGNED ) ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6116
SELECT - COUNT ( - - 36 ) * + + 38 * - CASE - + 21 WHEN + SUM ( 45 ) - 93 * - + CAST ( 65 AS REAL ) THEN - - 34 ELSE - ( - + CAST ( NULL AS INTEGER ) ) END AS col0
----
NULL

query I rowsort
SELECT ALL + 64 + - + 98 * - 63 + + - 81
----
6157

query I rowsort
SELECT - - 95 + - COALESCE ( + 36, 84 * + 27 * - + 47 * 25 + - 88 ) AS col2
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-6119
SELECT SUM( + 1 )
----
1

skipif mysql # not compatible
query I rowsort label-6119
SELECT SUM ( + 1 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6120
SELECT + + 25 * + 68 * - COUNT( * )
----
-1700

skipif mysql # not compatible
query I rowsort label-6120
SELECT + + 25 * + 68 * - COUNT ( * )
----
-1700

query I rowsort
SELECT ALL + - 15 * - 28 AS col0
----
420

onlyif mysql # aggregate syntax: 
query I rowsort label-6122
SELECT ALL 33 - COUNT( DISTINCT - 69 )
----
32

skipif mysql # not compatible
query I rowsort label-6122
SELECT ALL 33 - COUNT ( DISTINCT - 69 )
----
32

query I rowsort
SELECT ALL - 75 - - 46 AS col1
----
-29

onlyif mysql # DIV for integer division: 
query II rowsort label-6124
SELECT 26 col0, 24 DIV - + 99
----
26
0

skipif mysql # not compatible
query II rowsort label-6124
SELECT 26 col0, 24 / - + 99
----
26
0

query II rowsort
SELECT 7 AS col0, 70 * + - ( 18 ) AS col1
----
7
-1260

query I rowsort
SELECT 82 - - + 11
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-6127
SELECT ALL - ( NULLIF ( + - COUNT( - NULLIF ( - + 68, 44 ) ), 83 ) ) col0
----
1

skipif mysql # not compatible
query I rowsort label-6127
SELECT ALL - ( NULLIF ( + - COUNT ( - NULLIF ( - + 68, 44 ) ), 83 ) ) col0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6128
SELECT ALL - CAST( + 88 AS SIGNED )
----
-88

skipif mysql # not compatible
query I rowsort label-6128
SELECT ALL - CAST ( + 88 AS INTEGER )
----
-88

query II rowsort
SELECT + 77, + 16 AS col1
----
77
16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6130
SELECT ALL - CAST( + 62 AS SIGNED ) AS col2
----
-62

skipif mysql # not compatible
query I rowsort label-6130
SELECT ALL - CAST ( + 62 AS INTEGER ) AS col2
----
-62

query I rowsort
SELECT 8 * 83
----
664

query II rowsort
SELECT ALL - 88 AS col0, + ( 79 ) AS col0
----
-88
79

query II rowsort
SELECT COALESCE ( + 10, + - 45 ) - + 36 + - 49 * - 67 AS col1, - 80
----
3257
-80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6134
SELECT COALESCE ( - CAST( - - 12 AS SIGNED ), COUNT( * ), - - ( 23 ) ) * - NULLIF ( 25, - + ( 59 ) * + 46 * 66 - 86 + + 24 + - 15 ) AS col1
----
300

skipif mysql # not compatible
query I rowsort label-6134
SELECT COALESCE ( - CAST ( - - 12 AS INTEGER ), COUNT ( * ), - - ( 23 ) ) * - NULLIF ( 25, - + ( 59 ) * + 46 * 66 - 86 + + 24 + - 15 ) AS col1
----
300

onlyif mysql # aggregate syntax: 
query I rowsort label-6135
SELECT ALL - SUM( - 16 ) + - COUNT( * ) AS col2
----
15

skipif mysql # not compatible
query I rowsort label-6135
SELECT ALL - SUM ( - 16 ) + - COUNT ( * ) AS col2
----
15

query I rowsort
SELECT DISTINCT + 96 * + 79
----
7584

onlyif mysql # aggregate syntax: 
query I rowsort label-6137
SELECT COUNT( * ) * - - COUNT( * ) + COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-6137
SELECT COUNT ( * ) * - - COUNT ( * ) + COUNT ( * )
----
2

query I rowsort
SELECT + 9 + + 72 AS col2
----
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6139
SELECT DISTINCT - CAST( NULL AS SIGNED ) + 59 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6139
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + 59 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6140
SELECT DISTINCT + COUNT( ALL - - 72 ) + + - ( ( + 22 ) ) * 64
----
-1407

skipif mysql # not compatible
query I rowsort label-6140
SELECT DISTINCT + COUNT ( ALL - - 72 ) + + - ( ( + 22 ) ) * 64
----
-1407

query II rowsort
SELECT ALL - + 15 AS col2, 54 + + 52
----
-15
106

onlyif mysql # DIV for integer division: 
query I rowsort label-6142
SELECT ALL 89 + - 4 DIV + 14 AS col2
----
89

skipif mysql # not compatible
query I rowsort label-6142
SELECT ALL 89 + - 4 / + 14 AS col2
----
89

query II rowsort
SELECT - + 77 col1, + 78 AS col0
----
-77
78

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6144
SELECT CAST( NULL AS DECIMAL ) * 37 * - + 73 + - + 24 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6144
SELECT CAST ( NULL AS REAL ) * 37 * - + 73 + - + 24 AS col2
----
NULL

query I rowsort
SELECT DISTINCT - 68 + 45 + + ( 57 ) AS col2
----
34

query I rowsort
SELECT + ( + + 47 )
----
47

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6147
SELECT ALL + 35 - 3 - + - ( - CASE - - 74 WHEN + 2 * - - COUNT( - ( + 66 ) ) THEN + 35 * - NULLIF ( - - NULLIF ( 48, + 57 ), + 28 ) ELSE + 86 / 85 + - CAST( NULL AS DECIMAL ) + - 3 * - 88 / + SUM( 41 ) END ) * + COUNT( * ) * - + MAX( ALL + ( - + 59 ) ) - + - NULLIF ( 11, - 68 + + ( - 56 ) ) + 62 * + 58
----
NULL

skipif mysql # not compatible
query I rowsort label-6147
SELECT ALL + 35 - 3 - + - ( - CASE - - 74 WHEN + 2 * - - COUNT ( - ( + 66 ) ) THEN + 35 * - NULLIF ( - - NULLIF ( 48, + 57 ), + 28 ) ELSE + 86 / 85 + - CAST ( NULL AS REAL ) + - 3 * - 88 / + SUM ( 41 ) END ) * + COUNT ( * ) * - + MAX ( ALL + ( - + 59 ) ) - + - NULLIF ( 11, - 68 + + ( - 56 ) ) + 62 * + 58
----
NULL

query I rowsort
SELECT 87 - - COALESCE ( - 16, + 25, 6 * 83 + 98 )
----
71

query II rowsort
SELECT ALL 55 AS col2, + 45 AS col2
----
55
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6150
SELECT CAST( NULL AS SIGNED ) + - - 28 + 59
----
NULL

skipif mysql # not compatible
query I rowsort label-6150
SELECT CAST ( NULL AS INTEGER ) + - - 28 + 59
----
NULL

query I rowsort
SELECT DISTINCT + 41 * 8
----
328

onlyif mysql # aggregate syntax: 
query I rowsort label-6152
SELECT 92 - - 55 - + SUM( DISTINCT - - 82 ) * NULLIF ( + 43, + + COUNT( * ) / - NULLIF ( 10, 82 / 53 - + - 28 + + + 5 - COUNT( * ) * - 83 ) )
----
-3379

skipif mysql # not compatible
query I rowsort label-6152
SELECT 92 - - 55 - + SUM ( DISTINCT - - 82 ) * NULLIF ( + 43, + + COUNT ( * ) / - NULLIF ( 10, 82 / 53 - + - 28 + + + 5 - COUNT ( * ) * - 83 ) )
----
-3379

query I rowsort
SELECT 76 * + 16 AS col0
----
1216

query I rowsort
SELECT 82 + + 91 + + 5 - + + 93 AS col0
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-6155
SELECT ( + 65 ) + + CASE - - 82 WHEN - - 36 * - 39 * COUNT( * ) * + - 0 * + 64 THEN + 11 ELSE NULL END - + 26 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6155
SELECT ( + 65 ) + + CASE - - 82 WHEN - - 36 * - 39 * COUNT ( * ) * + - 0 * + 64 THEN + 11 ELSE NULL END - + 26 AS col2
----
NULL

query I rowsort
SELECT 91 * + 66
----
6006

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6157
SELECT 18 DIV - 59 + - 90 + - SUM( ALL 45 )
----
-135

skipif mysql # not compatible
query I rowsort label-6157
SELECT 18 / - 59 + - 90 + - SUM ( ALL 45 )
----
-135

onlyif mysql # aggregate syntax: 
query I rowsort label-6158
SELECT ALL - COUNT( + 44 ) * - + 50 AS col2
----
50

skipif mysql # not compatible
query I rowsort label-6158
SELECT ALL - COUNT ( + 44 ) * - + 50 AS col2
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-6159
SELECT MAX( DISTINCT 12 ) AS col0
----
12

skipif mysql # not compatible
query I rowsort label-6159
SELECT MAX ( DISTINCT 12 ) AS col0
----
12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6160
SELECT CAST( NULL AS SIGNED ) * - + 78 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6160
SELECT CAST ( NULL AS INTEGER ) * - + 78 AS col0
----
NULL

query I rowsort
SELECT 36 + + 44 AS col0
----
80

query I rowsort
SELECT DISTINCT + NULLIF ( - ( + 0 ), + AVG ( 19 ) * + + 2 ) + - 11
----
-11

query I rowsort
SELECT 17 * + 36 AS col1
----
612

query I rowsort
SELECT 52 * + 25
----
1300

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6165
SELECT ALL + + COUNT( * ) + - - 59 + + 95 + + 21, 70 + + 68 DIV + 37 AS col2
----
176
71

skipif mysql # not compatible
query II rowsort label-6165
SELECT ALL + + COUNT ( * ) + - - 59 + + 95 + + 21, 70 + + 68 / + 37 AS col2
----
176
71

query I rowsort
SELECT ALL ( 77 ) + - 51
----
26

onlyif mysql # DIV for integer division: 
query I rowsort label-6167
SELECT ALL + + ( 67 ) + - 61 DIV - 67 AS col1
----
67

skipif mysql # not compatible
query I rowsort label-6167
SELECT ALL + + ( 67 ) + - 61 / - 67 AS col1
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-6168
SELECT MIN( 53 )
----
53

skipif mysql # not compatible
query I rowsort label-6168
SELECT MIN ( 53 )
----
53

query I rowsort
SELECT ALL - ( - 67 )
----
67

onlyif mysql # DIV for integer division: 
query II rowsort label-6170
SELECT + 70 DIV + + 81 AS col1, 58 DIV + NULLIF ( 24, + ( + + AVG ( - 82 ) ) * + + 5 * 44 ) AS col2
----
0
2

skipif mysql # not compatible
query II rowsort label-6170
SELECT + 70 / + + 81 AS col1, 58 / + NULLIF ( 24, + ( + + AVG ( - 82 ) ) * + + 5 * 44 ) AS col2
----
0
2

query I rowsort
SELECT 25 * - 39 * - 51
----
49725

query I rowsort
SELECT ALL - - 23 * 97
----
2231

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6173
SELECT - ( 37 ) - - CASE + 77 WHEN + + 93 * COUNT( * ) - 3 + - CAST( + 52 AS DECIMAL ) - 57 THEN NULL WHEN + 66 THEN 1 WHEN + 89 THEN + - COALESCE ( - 83, 60 + + + 13 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6173
SELECT - ( 37 ) - - CASE + 77 WHEN + + 93 * COUNT ( * ) - 3 + - CAST ( + 52 AS REAL ) - 57 THEN NULL WHEN + 66 THEN 1 WHEN + 89 THEN + - COALESCE ( - 83, 60 + + + 13 ) ELSE NULL END
----
NULL

query I rowsort
SELECT 2 + + 8 + + + 71 col2
----
81

query I rowsort
SELECT DISTINCT - ( + 57 ) - - + 26
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-6176
SELECT + COUNT( * ) * - ( - 51 ) + + 33 col1
----
84

skipif mysql # not compatible
query I rowsort label-6176
SELECT + COUNT ( * ) * - ( - 51 ) + + 33 col1
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-6177
SELECT + 81 + - COUNT( - - 97 ) AS col0
----
80

skipif mysql # not compatible
query I rowsort label-6177
SELECT + 81 + - COUNT ( - - 97 ) AS col0
----
80

onlyif mysql # DIV for integer division: 
query I rowsort label-6178
SELECT + 27 DIV + 39 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6178
SELECT + 27 / + 39 AS col1
----
0

query I rowsort
SELECT ALL 33 * - 16 * + 2 AS col1
----
-1056

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6180
SELECT + NULLIF ( 87, + CAST( NULL AS SIGNED ) ) * - 44 AS col1
----
-3828

skipif mysql # not compatible
query I rowsort label-6180
SELECT + NULLIF ( 87, + CAST ( NULL AS INTEGER ) ) * - 44 AS col1
----
-3828

query I rowsort
SELECT + 3 * - + 43 AS col1
----
-129

onlyif mysql # aggregate syntax: 
query II rowsort label-6182
SELECT - COUNT( * ) AS col1, 68 AS col0
----
-1
68

skipif mysql # not compatible
query II rowsort label-6182
SELECT - COUNT ( * ) AS col1, 68 AS col0
----
-1
68

onlyif mysql # aggregate syntax: 
query I rowsort label-6183
SELECT ALL 26 * - COUNT( * ) AS col0
----
-26

skipif mysql # not compatible
query I rowsort label-6183
SELECT ALL 26 * - COUNT ( * ) AS col0
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-6184
SELECT + 67 * + ( - + COUNT( * ) ) * 17
----
-1139

skipif mysql # not compatible
query I rowsort label-6184
SELECT + 67 * + ( - + COUNT ( * ) ) * 17
----
-1139

query I rowsort
SELECT ALL 73 + - + 39
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-6186
SELECT DISTINCT COUNT( * ) + 99
----
100

skipif mysql # not compatible
query I rowsort label-6186
SELECT DISTINCT COUNT ( * ) + 99
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-6187
SELECT - COUNT( ALL - + 22 ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-6187
SELECT - COUNT ( ALL - + 22 ) col2
----
-1

query I rowsort
SELECT + 31 * - - 49 * - 94 * 30 col2
----
-4283580

onlyif mysql # aggregate syntax: 
query I rowsort label-6189
SELECT + 37 * + MAX( ALL - - 22 )
----
814

skipif mysql # not compatible
query I rowsort label-6189
SELECT + 37 * + MAX ( ALL - - 22 )
----
814

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6190
SELECT + 88 AS col1, - 28 + + - CAST( NULL AS SIGNED )
----
88
NULL

skipif mysql # not compatible
query II rowsort label-6190
SELECT + 88 AS col1, - 28 + + - CAST ( NULL AS INTEGER )
----
88
NULL

query I rowsort
SELECT ALL - 51 * + 25 AS col2
----
-1275

onlyif mysql # aggregate syntax: 
query II rowsort label-6192
SELECT DISTINCT + 68, + 29 + MIN( DISTINCT + + ( + 27 ) ) * + 70 AS col2
----
68
1919

skipif mysql # not compatible
query II rowsort label-6192
SELECT DISTINCT + 68, + 29 + MIN ( DISTINCT + + ( + 27 ) ) * + 70 AS col2
----
68
1919

onlyif mysql # aggregate syntax: 
query I rowsort label-6193
SELECT CASE 67 WHEN + - 27 * - 3 * - 69 + - + 41 * + + COUNT( - + ( - 18 ) ) + - - 65 + - 75 + COUNT( * ) + + 56 / COUNT( * ) + - 94 * 33 * - 6 THEN 26 WHEN - COUNT( ALL 2 ) * 40 THEN - 15 * - 10 WHEN - 35 + 19 + 83 THEN COUNT( * ) END AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6193
SELECT CASE 67 WHEN + - 27 * - 3 * - 69 + - + 41 * + + COUNT ( - + ( - 18 ) ) + - - 65 + - 75 + COUNT ( * ) + + 56 / COUNT ( * ) + - 94 * 33 * - 6 THEN 26 WHEN - COUNT ( ALL 2 ) * 40 THEN - 15 * - 10 WHEN - 35 + 19 + 83 THEN COUNT ( * ) END AS col0
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6194
SELECT DISTINCT - - 84 * 62 DIV 21 DIV - 46 - - ( + + COUNT( * ) ) * + - 36 AS col1
----
-41

skipif mysql # not compatible
query I rowsort label-6194
SELECT DISTINCT - - 84 * 62 / 21 / - 46 - - ( + + COUNT ( * ) ) * + - 36 AS col1
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-6195
SELECT 79 * - 87 + - - MAX( + 22 ) + - 35 AS col2
----
-6886

skipif mysql # not compatible
query I rowsort label-6195
SELECT 79 * - 87 + - - MAX ( + 22 ) + - 35 AS col2
----
-6886

query I rowsort
SELECT - 41 - - NULLIF ( - - 56, - 34 + 51 )
----
15

query I rowsort
SELECT ALL 10 * + 76
----
760

query I rowsort
SELECT DISTINCT + 10 * - 15
----
-150

onlyif mysql # aggregate syntax: 
query I rowsort label-6199
SELECT - 63 * + ( COUNT( * ) ) + + 91 AS col1
----
28

skipif mysql # not compatible
query I rowsort label-6199
SELECT - 63 * + ( COUNT ( * ) ) + + 91 AS col1
----
28

query I rowsort
SELECT + 7 + + 63 AS col1
----
70

query I rowsort
SELECT - NULLIF ( + 54, 20 / - + 89 )
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-6202
SELECT ALL - COUNT( * ) * - 69 * - 8 AS col0
----
-552

skipif mysql # not compatible
query I rowsort label-6202
SELECT ALL - COUNT ( * ) * - 69 * - 8 AS col0
----
-552

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6203
SELECT + 51 col0, - ( + - 6 ) DIV - COUNT( * ) col2
----
51
-6

skipif mysql # not compatible
query II rowsort label-6203
SELECT + 51 col0, - ( + - 6 ) / - COUNT ( * ) col2
----
51
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-6204
SELECT - 10 * - - 47 * + 23 * 88 + - MIN( ALL + COALESCE ( - 30, - 49, + + 83 ) ) + + - 64 - + 9 AS col0
----
-951323

skipif mysql # not compatible
query I rowsort label-6204
SELECT - 10 * - - 47 * + 23 * 88 + - MIN ( ALL + COALESCE ( - 30, - 49, + + 83 ) ) + + - 64 - + 9 AS col0
----
-951323

query II rowsort
SELECT - 95 AS col1, 93 AS col2
----
-95
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6206
SELECT ALL + 54 + - 0 * CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6206
SELECT ALL + 54 + - 0 * CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT ALL + 26 * - 34 col1
----
-884

onlyif mysql # aggregate syntax: 
query I rowsort label-6208
SELECT - COALESCE ( + 26, 93 + - + 32 ) + ( COUNT( * ) )
----
-25

skipif mysql # not compatible
query I rowsort label-6208
SELECT - COALESCE ( + 26, 93 + - + 32 ) + ( COUNT ( * ) )
----
-25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6209
SELECT DISTINCT CAST( + + 75 AS SIGNED )
----
75

skipif mysql # not compatible
query I rowsort label-6209
SELECT DISTINCT CAST ( + + 75 AS INTEGER )
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-6210
SELECT ALL - COUNT( DISTINCT 29 ) + - - 31
----
30

skipif mysql # not compatible
query I rowsort label-6210
SELECT ALL - COUNT ( DISTINCT 29 ) + - - 31
----
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6211
SELECT ALL CASE - - MAX( ALL - 80 ) WHEN - + COUNT( * ) * - + COUNT( * ) THEN - CAST( NULL AS SIGNED ) WHEN + - 26 * - 48 * NULLIF ( - COUNT( * ), + 63 ) + - 68 THEN NULL END + + 39
----
NULL

skipif mysql # not compatible
query I rowsort label-6211
SELECT ALL CASE - - MAX ( ALL - 80 ) WHEN - + COUNT ( * ) * - + COUNT ( * ) THEN - CAST ( NULL AS INTEGER ) WHEN + - 26 * - 48 * NULLIF ( - COUNT ( * ), + 63 ) + - 68 THEN NULL END + + 39
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6212
SELECT DISTINCT CAST( - ( 44 ) AS SIGNED ) AS col1
----
-44

skipif mysql # not compatible
query I rowsort label-6212
SELECT DISTINCT CAST ( - ( 44 ) AS INTEGER ) AS col1
----
-44

query I rowsort
SELECT - 55 + - 31
----
-86

onlyif mysql # DIV for integer division: 
query I rowsort label-6214
SELECT ALL + 64 DIV - 65 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6214
SELECT ALL + 64 / - 65 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6215
SELECT - 25 + - - COUNT( * ) * + 77
----
52

skipif mysql # not compatible
query I rowsort label-6215
SELECT - 25 + - - COUNT ( * ) * + 77
----
52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6216
SELECT DISTINCT CAST( ( + COUNT( * ) ) AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-6216
SELECT DISTINCT CAST ( ( + COUNT ( * ) ) AS INTEGER )
----
1

query I rowsort
SELECT + 95 * + 44 * - 50
----
-209000

onlyif mysql # aggregate syntax: 
query II rowsort label-6218
SELECT + + 60, COUNT( * ) AS col0
----
60
1

skipif mysql # not compatible
query II rowsort label-6218
SELECT + + 60, COUNT ( * ) AS col0
----
60
1

query II rowsort
SELECT DISTINCT + 4, - 26 * - ( - + 14 ) * + 8 AS col0
----
4
-2912

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6220
SELECT 63 AS col0, CAST( NULL AS SIGNED ) * - 54 AS col0
----
63
NULL

skipif mysql # not compatible
query II rowsort label-6220
SELECT 63 AS col0, CAST ( NULL AS INTEGER ) * - 54 AS col0
----
63
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6221
SELECT + 48 * - SUM( ALL - - 27 ) + - 42 + + - 73 + - 69 + - COALESCE ( - + 0, + 27 + - 88 + + + 46 * - 43 ) * 75 DIV 55 + 13 * 93 + - 89 AS col0
----
-360

skipif mysql # not compatible
query I rowsort label-6221
SELECT + 48 * - SUM ( ALL - - 27 ) + - 42 + + - 73 + - 69 + - COALESCE ( - + 0, + 27 + - 88 + + + 46 * - 43 ) * 75 / 55 + 13 * 93 + - 89 AS col0
----
-360

onlyif mysql # aggregate syntax: 
query I rowsort label-6222
SELECT DISTINCT + + COALESCE ( 89, + + 51 + - - COALESCE ( + - 8, - 38 ) * + 75, - ( 65 ) * - COUNT( * ) * - ( 51 ) * - + 2 + 47 + - 41 + 62 * 97 ) * - - 59 * + + 0
----
0

skipif mysql # not compatible
query I rowsort label-6222
SELECT DISTINCT + + COALESCE ( 89, + + 51 + - - COALESCE ( + - 8, - 38 ) * + 75, - ( 65 ) * - COUNT ( * ) * - ( 51 ) * - + 2 + 47 + - 41 + 62 * 97 ) * - - 59 * + + 0
----
0

query I rowsort
SELECT DISTINCT + 54 * + 67 AS col1
----
3618

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6224
SELECT + 50 + + AVG ( ALL CASE + 38 WHEN + - CAST( NULL AS SIGNED ) * 14 THEN 81 WHEN 75 THEN NULL END ) * 18 * 83 * + + 58 * - - MIN( 88 ) / - 4 AS col1, + 80 * - - 67 AS col0
----
NULL
5360

skipif mysql # not compatible
query II rowsort label-6224
SELECT + 50 + + AVG ( ALL CASE + 38 WHEN + - CAST ( NULL AS INTEGER ) * 14 THEN 81 WHEN 75 THEN NULL END ) * 18 * 83 * + + 58 * - - MIN ( 88 ) / - 4 AS col1, + 80 * - - 67 AS col0
----
NULL
5360

onlyif mysql # DIV for integer division: 
query I rowsort label-6225
SELECT + 94 DIV 91
----
1

skipif mysql # not compatible
query I rowsort label-6225
SELECT + 94 / 91
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6226
SELECT - + 74 * + CASE + 47 WHEN + 27 THEN + 18 WHEN + 59 + COUNT( * ) + - 38 * COUNT( * ) + + 43 + - + 9 + + 81 THEN NULL END + - - 49 + + - CAST( 45 AS SIGNED ) - 73 * 0 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6226
SELECT - + 74 * + CASE + 47 WHEN + 27 THEN + 18 WHEN + 59 + COUNT ( * ) + - 38 * COUNT ( * ) + + 43 + - + 9 + + 81 THEN NULL END + - - 49 + + - CAST ( 45 AS INTEGER ) - 73 * 0 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6227
SELECT - ( + NULLIF ( - CAST( NULL AS SIGNED ), + + 5 + - - 51 * + 56 + + + 28 * 26 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6227
SELECT - ( + NULLIF ( - CAST ( NULL AS INTEGER ), + + 5 + - - 51 * + 56 + + + 28 * 26 ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6228
SELECT - COUNT( * ) + + 92 AS col0
----
91

skipif mysql # not compatible
query I rowsort label-6228
SELECT - COUNT ( * ) + + 92 AS col0
----
91

query I rowsort
SELECT ALL 4 * + - 35 * 76
----
-10640

query I rowsort
SELECT DISTINCT 62 + + 25
----
87

query I rowsort
SELECT 95 - - 48 * + + 96
----
4703

query I rowsort
SELECT 1 * + 69 * - 25
----
-1725

query II rowsort
SELECT ALL 97 + - 28 AS col0, 0 AS col0
----
69
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6234
SELECT ALL 56 + CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) * + ( + MIN( ALL - - 85 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6234
SELECT ALL 56 + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) * + ( + MIN ( ALL - - 85 ) )
----
NULL

query I rowsort
SELECT ALL - ( + - 37 ) + 62
----
99

query II rowsort
SELECT 27 + + - 34 AS col1, + 43
----
-7
43

query I rowsort
SELECT DISTINCT + ( + 7 ) * - + 85
----
-595

onlyif mysql # DIV for integer division: 
query I rowsort label-6238
SELECT 17 * 91 DIV - 64
----
-24

skipif mysql # not compatible
query I rowsort label-6238
SELECT 17 * 91 / - 64
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-6239
SELECT DISTINCT - COUNT( * ) - MAX( + + 21 )
----
-22

skipif mysql # not compatible
query I rowsort label-6239
SELECT DISTINCT - COUNT ( * ) - MAX ( + + 21 )
----
-22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6240
SELECT DISTINCT + + 91 / - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6240
SELECT DISTINCT + + 91 / - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6241
SELECT ALL - + CAST( + 50 AS SIGNED ) col1, COUNT( * ) * - - ( - 4 ) * 96 AS col0
----
-50
-384

skipif mysql # not compatible
query II rowsort label-6241
SELECT ALL - + CAST ( + 50 AS INTEGER ) col1, COUNT ( * ) * - - ( - 4 ) * 96 AS col0
----
-50
-384

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6242
SELECT - COUNT( * ) DIV 13 - SUM( DISTINCT + 37 ) AS col0
----
-37

skipif mysql # not compatible
query I rowsort label-6242
SELECT - COUNT ( * ) / 13 - SUM ( DISTINCT + 37 ) AS col0
----
-37

onlyif mysql # aggregate syntax: 
query II rowsort label-6243
SELECT 90 * + COUNT( * ) + - COUNT( * ) + + SUM( - 40 ), 83 AS col0
----
49
83

skipif mysql # not compatible
query II rowsort label-6243
SELECT 90 * + COUNT ( * ) + - COUNT ( * ) + + SUM ( - 40 ), 83 AS col0
----
49
83

query I rowsort
SELECT + 25 - - 80 + - + 58 col2
----
47

query II rowsort
SELECT + 65 * 89 AS col1, 31
----
5785
31

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-6246
SELECT + CAST( NULL AS SIGNED ) - + 78 + NULLIF ( 71, 98 ) AS col0, - 92 * + - 67 * + - CAST( NULL AS DECIMAL ) + - 75 AS col2
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-6246
SELECT + CAST ( NULL AS INTEGER ) - + 78 + NULLIF ( 71, 98 ) AS col0, - 92 * + - 67 * + - CAST ( NULL AS REAL ) + - 75 AS col2
----
NULL
NULL

query I rowsort
SELECT DISTINCT 17 + + + 64
----
81

query II rowsort
SELECT ALL + 75 + - 0 AS col0, - 68 AS col2
----
75
-68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6249
SELECT + CASE - + ( - - CAST( NULL AS SIGNED ) ) WHEN + CASE - COUNT( * ) WHEN COUNT( * ) THEN + - 22 * ( + 68 ) WHEN COUNT( * ) + COUNT( * ) THEN + 41 WHEN - 17 THEN + - 84 * + NULLIF ( 13, - 71 ) END THEN NULL ELSE + 41 END
----
41

skipif mysql # not compatible
query I rowsort label-6249
SELECT + CASE - + ( - - CAST ( NULL AS INTEGER ) ) WHEN + CASE - COUNT ( * ) WHEN COUNT ( * ) THEN + - 22 * ( + 68 ) WHEN COUNT ( * ) + COUNT ( * ) THEN + 41 WHEN - 17 THEN + - 84 * + NULLIF ( 13, - 71 ) END THEN NULL ELSE + 41 END
----
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6250
SELECT + 5 + + 16 + - 69 * COALESCE ( + 27, 52 ) - - - 47 + COALESCE ( 82, + 72 ) + - MAX( DISTINCT - + 38 ) * - - COUNT( ALL - CAST( NULL AS SIGNED ) ) AS col2
----
-1807

skipif mysql # not compatible
query I rowsort label-6250
SELECT + 5 + + 16 + - 69 * COALESCE ( + 27, 52 ) - - - 47 + COALESCE ( 82, + 72 ) + - MAX ( DISTINCT - + 38 ) * - - COUNT ( ALL - CAST ( NULL AS INTEGER ) ) AS col2
----
-1807

onlyif mysql # aggregate syntax: 
query II rowsort label-6251
SELECT 75 AS col0, 45 * + COUNT( * ) AS col0
----
75
45

skipif mysql # not compatible
query II rowsort label-6251
SELECT 75 AS col0, 45 * + COUNT ( * ) AS col0
----
75
45

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6252
SELECT ALL ( + 50 ) + + 55 * + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-6252
SELECT ALL ( + 50 ) + + 55 * + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6253
SELECT 21 * + 30 * + 23 AS col2, 12 DIV - COUNT( * ) AS col1
----
14490
-12

skipif mysql # not compatible
query II rowsort label-6253
SELECT 21 * + 30 * + 23 AS col2, 12 / - COUNT ( * ) AS col1
----
14490
-12

query I rowsort
SELECT ALL 50 * + - ( - 86 )
----
4300

query I rowsort
SELECT 91 + - + COALESCE ( + - 97, - 70 ) AS col0
----
188

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6256
SELECT 27 DIV + - 37 * ( COUNT( * ) )
----
0

skipif mysql # not compatible
query I rowsort label-6256
SELECT 27 / + - 37 * ( COUNT ( * ) )
----
0

query II rowsort
SELECT 5 AS col0, - 18 + + - 29 AS col1
----
5
-47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6258
SELECT COALESCE ( - - 76, 98 * + 65, - + 43 - - 36 + - ( + COUNT( * ) ) DIV - 70 ) - + CAST( 4 AS SIGNED )
----
72

skipif mysql # not compatible
query I rowsort label-6258
SELECT COALESCE ( - - 76, 98 * + 65, - + 43 - - 36 + - ( + COUNT ( * ) ) / - 70 ) - + CAST ( 4 AS INTEGER )
----
72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6259
SELECT 10 * CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6259
SELECT 10 * CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT 17 + + 51
----
68

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6261
SELECT 86 AS col1, - CAST( - ( 8 ) AS SIGNED )
----
86
8

skipif mysql # not compatible
query II rowsort label-6261
SELECT 86 AS col1, - CAST ( - ( 8 ) AS INTEGER )
----
86
8

query II rowsort
SELECT ALL 71 col0, 99
----
71
99

query I rowsort
SELECT ( - - ( + 92 ) ) + - + 61 AS col1
----
31

onlyif mysql # aggregate syntax: 
query II rowsort label-6264
SELECT ALL COUNT( * ), 82 AS col2
----
1
82

skipif mysql # not compatible
query II rowsort label-6264
SELECT ALL COUNT ( * ), 82 AS col2
----
1
82

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6265
SELECT 42 - + - 56 * - - AVG ( DISTINCT - ( - CAST( NULL AS DECIMAL ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6265
SELECT 42 - + - 56 * - - AVG ( DISTINCT - ( - CAST ( NULL AS REAL ) ) )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6266
SELECT 52 - + 4 DIV 44 + - NULLIF ( COUNT( 67 ), 19 ) + - 33 AS col1
----
18

skipif mysql # not compatible
query I rowsort label-6266
SELECT 52 - + 4 / 44 + - NULLIF ( COUNT ( 67 ), 19 ) + - 33 AS col1
----
18

onlyif mysql # aggregate syntax: 
query II rowsort label-6267
SELECT ALL 36 AS col1, COUNT( * )
----
36
1

skipif mysql # not compatible
query II rowsort label-6267
SELECT ALL 36 AS col1, COUNT ( * )
----
36
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6268
SELECT COUNT( * ) + + 52 AS col0
----
53

skipif mysql # not compatible
query I rowsort label-6268
SELECT COUNT ( * ) + + 52 AS col0
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-6269
SELECT 71 + - + ( - COUNT( * ) )
----
72

skipif mysql # not compatible
query I rowsort label-6269
SELECT 71 + - + ( - COUNT ( * ) )
----
72

query I rowsort
SELECT - 46 + - ( + + 6 ) * 23 col2
----
-184

onlyif mysql # aggregate syntax: 
query I rowsort label-6271
SELECT - COUNT( * ) * + MAX( - 44 ) + COUNT( * )
----
45

skipif mysql # not compatible
query I rowsort label-6271
SELECT - COUNT ( * ) * + MAX ( - 44 ) + COUNT ( * )
----
45

query I rowsort
SELECT ALL - - 14 * + 0 + + 36 + - - 72 + 0 AS col1
----
108

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6273
SELECT ALL - - 97 * + NULLIF ( - 88, CAST( NULL AS SIGNED ) * - 9 ) AS col0
----
-8536

skipif mysql # not compatible
query I rowsort label-6273
SELECT ALL - - 97 * + NULLIF ( - 88, CAST ( NULL AS INTEGER ) * - 9 ) AS col0
----
-8536

onlyif mysql # DIV for integer division: 
query I rowsort label-6274
SELECT + 82 DIV ( - 17 ) + 91
----
87

skipif mysql # not compatible
query I rowsort label-6274
SELECT + 82 / ( - 17 ) + 91
----
87

query I rowsort
SELECT DISTINCT - ( - NULLIF ( + 5, - 48 * - 37 - + 47 + + 94 * - + 73 * 2 * + - 58 ) ) * + 3
----
15

onlyif mysql # DIV for integer division: 
query I rowsort label-6276
SELECT - 49 DIV 46 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-6276
SELECT - 49 / 46 AS col2
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-6277
SELECT - 69, - COUNT( * ) AS col2
----
-69
-1

skipif mysql # not compatible
query II rowsort label-6277
SELECT - 69, - COUNT ( * ) AS col2
----
-69
-1

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6278
SELECT + CAST( NULL AS DECIMAL ) * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6278
SELECT + CAST ( NULL AS REAL ) * - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + + 10 + + 77 AS col0
----
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6280
SELECT DISTINCT + ( + CAST( NULL AS SIGNED ) ) * - + CASE + 79 WHEN + + COUNT( * ) THEN + COUNT( * ) + 81 END + + + 97 + - COALESCE ( - 86, - - AVG ( DISTINCT - 63 ) ) * + - 32 * - 1
----
NULL

skipif mysql # not compatible
query I rowsort label-6280
SELECT DISTINCT + ( + CAST ( NULL AS INTEGER ) ) * - + CASE + 79 WHEN + + COUNT ( * ) THEN + COUNT ( * ) + 81 END + + + 97 + - COALESCE ( - 86, - - AVG ( DISTINCT - 63 ) ) * + - 32 * - 1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6281
SELECT ALL COUNT( * ) * 23 + - - 46 * - COUNT( * ) AS col2
----
-23

skipif mysql # not compatible
query I rowsort label-6281
SELECT ALL COUNT ( * ) * 23 + - - 46 * - COUNT ( * ) AS col2
----
-23

query II rowsort
SELECT DISTINCT + 46 col0, + 90 AS col1
----
46
90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6283
SELECT ALL + + 11 * 94 DIV COUNT( * ) + - - 59
----
1093

skipif mysql # not compatible
query I rowsort label-6283
SELECT ALL + + 11 * 94 / COUNT ( * ) + - - 59
----
1093

onlyif mysql # aggregate syntax: 
query I rowsort label-6284
SELECT COUNT( * ) * - COUNT( * ) * - + 16 - + + 84
----
-68

skipif mysql # not compatible
query I rowsort label-6284
SELECT COUNT ( * ) * - COUNT ( * ) * - + 16 - + + 84
----
-68

query I rowsort
SELECT DISTINCT - 77 * + 46 col2
----
-3542

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6286
SELECT DISTINCT + 99 * - COUNT( * ) * - + CAST( NULL AS SIGNED ) - + 8 * - - AVG ( DISTINCT 79 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6286
SELECT DISTINCT + 99 * - COUNT ( * ) * - + CAST ( NULL AS INTEGER ) - + 8 * - - AVG ( DISTINCT 79 )
----
NULL

query I rowsort
SELECT ALL - 66 * + 18 - 22 AS col0
----
-1210

query I rowsort
SELECT + 26 + 42
----
68

query I rowsort
SELECT ALL ( - 99 ) AS col1
----
-99

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6290
SELECT - CASE - - 9 WHEN 61 * - COUNT( DISTINCT - 39 ) - + - 21 + - 83 * - 13 + - - 6 THEN NULL ELSE - 5 - - - 14 * 75 DIV + - 8 + - 21 * + 64 END, - 88 + + + 61 * - 40 * 89 * - + ( 22 ) + + 11 * 61 col0
----
1218
4778103

skipif mysql # not compatible
query II rowsort label-6290
SELECT - CASE - - 9 WHEN 61 * - COUNT ( DISTINCT - 39 ) - + - 21 + - 83 * - 13 + - - 6 THEN NULL ELSE - 5 - - - 14 * 75 / + - 8 + - 21 * + 64 END, - 88 + + + 61 * - 40 * 89 * - + ( 22 ) + + 11 * 61 col0
----
1218
4778103

onlyif mysql # aggregate syntax: 
query I rowsort label-6291
SELECT ALL 49 * + SUM( - 87 ) AS col0
----
-4263

skipif mysql # not compatible
query I rowsort label-6291
SELECT ALL 49 * + SUM ( - 87 ) AS col0
----
-4263

query I rowsort
SELECT + 55 * + + 85 * 49
----
229075

onlyif mysql # DIV for integer division: 
query I rowsort label-6293
SELECT ALL 61 DIV + 27
----
2

skipif mysql # not compatible
query I rowsort label-6293
SELECT ALL 61 / + 27
----
2

onlyif mysql # aggregate syntax: 
query II rowsort label-6294
SELECT - MAX( + + 28 ) AS col2, 35
----
-28
35

skipif mysql # not compatible
query II rowsort label-6294
SELECT - MAX ( + + 28 ) AS col2, 35
----
-28
35

query II rowsort
SELECT + 19 * - + 28, + 18 AS col1
----
-532
18

onlyif mysql # DIV for integer division: 
query I rowsort label-6296
SELECT + 25 * 58 DIV + 5 AS col0
----
290

skipif mysql # not compatible
query I rowsort label-6296
SELECT + 25 * 58 / + 5 AS col0
----
290

onlyif mysql # DIV for integer division: 
query II rowsort label-6297
SELECT DISTINCT 32 * + - 79 AS col0, - 5 DIV 94
----
-2528
0

skipif mysql # not compatible
query II rowsort label-6297
SELECT DISTINCT 32 * + - 79 AS col0, - 5 / 94
----
-2528
0

query I rowsort
SELECT + + 80 * + 21 * - 89 * NULLIF ( + - 77, + + COALESCE ( - 98, + 97, 35 ) * - 55 )
----
11513040

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6299
SELECT + CAST( NULL AS SIGNED ) + - 90 + 99 * - 30 * 40 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6299
SELECT + CAST ( NULL AS INTEGER ) + - 90 + 99 * - 30 * 40 AS col2
----
NULL

query I rowsort
SELECT - 7 * - ( + 41 ) + 94 AS col1
----
381

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6301
SELECT DISTINCT 40 DIV 40 + - + 29 * CAST( + 33 AS SIGNED ) - 13 AS col1
----
-969

skipif mysql # not compatible
query I rowsort label-6301
SELECT DISTINCT 40 / 40 + - + 29 * CAST ( + 33 AS INTEGER ) - 13 AS col1
----
-969

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6302
SELECT + + CAST( NULL AS SIGNED ) * - + 51 * 8 + 62 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6302
SELECT + + CAST ( NULL AS INTEGER ) * - + 51 * 8 + 62 AS col1
----
NULL

query I rowsort
SELECT - 10 * + + ( + 88 ) AS col0
----
-880

query I rowsort
SELECT ALL - + ( + - 51 ) * + ( + 36 )
----
1836

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6305
SELECT ALL + CAST( COALESCE ( CAST( COUNT( - 82 ) AS SIGNED ), - ( + - 13 ), + 98 - - - 71 ) AS SIGNED ) AS col2, + 37
----
1
37

skipif mysql # not compatible
query II rowsort label-6305
SELECT ALL + CAST ( COALESCE ( CAST ( COUNT ( - 82 ) AS INTEGER ), - ( + - 13 ), + 98 - - - 71 ) AS INTEGER ) AS col2, + 37
----
1
37

onlyif mysql # DIV for integer division: 
query I rowsort label-6306
SELECT 9 * - 66 + - - 11 + + 40 DIV 60 + - CASE WHEN NOT 80 IS NULL THEN + + 57 + 29 ELSE NULL END
----
-669

skipif mysql # not compatible
query I rowsort label-6306
SELECT 9 * - 66 + - - 11 + + 40 / 60 + - CASE WHEN NOT 80 IS NULL THEN + + 57 + 29 ELSE NULL END
----
-669

onlyif mysql # DIV for integer division: 
query I rowsort label-6307
SELECT 73 * 85 - - - 12 DIV 45 + - + 84
----
6121

skipif mysql # not compatible
query I rowsort label-6307
SELECT 73 * 85 - - - 12 / 45 + - + 84
----
6121

onlyif mysql # aggregate syntax: 
query I rowsort label-6308
SELECT ALL + MAX( - 43 ) col1
----
-43

skipif mysql # not compatible
query I rowsort label-6308
SELECT ALL + MAX ( - 43 ) col1
----
-43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6309
SELECT ( + CAST( + + COUNT( * ) AS SIGNED ) )
----
1

skipif mysql # not compatible
query I rowsort label-6309
SELECT ( + CAST ( + + COUNT ( * ) AS INTEGER ) )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6310
SELECT ALL + COALESCE ( + + 12, - - 72 * - 32 * - + 0 + 4, CASE ( + + 94 ) WHEN 72 * + 56 + + 39 - + 59 + + + ( - + ( - CAST( NULL AS SIGNED ) ) ) THEN ( + - 77 ) * - - MIN( DISTINCT - 24 ) WHEN + - 29 * - - 68 * + + 97 THEN NULL ELSE NULL END ) DIV - 70 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6310
SELECT ALL + COALESCE ( + + 12, - - 72 * - 32 * - + 0 + 4, CASE ( + + 94 ) WHEN 72 * + 56 + + 39 - + 59 + + + ( - + ( - CAST ( NULL AS INTEGER ) ) ) THEN ( + - 77 ) * - - MIN ( DISTINCT - 24 ) WHEN + - 29 * - - 68 * + + 97 THEN NULL ELSE NULL END ) / - 70 AS col1
----
0

query I rowsort
SELECT - 3 * + + 17
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-6312
SELECT 10 * - 12 + 79 * COUNT( - ( - + 70 ) )
----
-41

skipif mysql # not compatible
query I rowsort label-6312
SELECT 10 * - 12 + 79 * COUNT ( - ( - + 70 ) )
----
-41

onlyif mysql # DIV for integer division: 
query I rowsort label-6313
SELECT DISTINCT + 19 DIV 4 * - 23
----
-92

skipif mysql # not compatible
query I rowsort label-6313
SELECT DISTINCT + 19 / 4 * - 23
----
-92

query I rowsort
SELECT DISTINCT - 47 * - 13 AS col0
----
611

query I rowsort
SELECT - 43 + + + 45 AS col0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-6316
SELECT CASE - + 12 WHEN - MIN( - ( - 95 ) ) THEN NULL WHEN NULLIF ( - 31, + 39 * + + 38 + - + 54 * ( + 95 ) ) + - 55 THEN 95 WHEN - 60 / ( - + 4 ) THEN NULL ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6316
SELECT CASE - + 12 WHEN - MIN ( - ( - 95 ) ) THEN NULL WHEN NULLIF ( - 31, + 39 * + + 38 + - + 54 * ( + 95 ) ) + - 55 THEN 95 WHEN - 60 / ( - + 4 ) THEN NULL ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6317
SELECT - MAX( - 77 )
----
77

skipif mysql # not compatible
query I rowsort label-6317
SELECT - MAX ( - 77 )
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-6318
SELECT COUNT( ALL 51 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6318
SELECT COUNT ( ALL 51 ) AS col0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-6319
SELECT + 1 * 34 DIV + 47
----
0

skipif mysql # not compatible
query I rowsort label-6319
SELECT + 1 * 34 / + 47
----
0

query I rowsort
SELECT ALL 66 * - 67 + - 12 + + - 98
----
-4532

query I rowsort
SELECT ALL - 29 * - - 68
----
-1972

query II rowsort
SELECT ALL 96, + 92 AS col1
----
96
92

query I rowsort
SELECT 75 + - ( - 7 )
----
82

query I rowsort
SELECT ALL - 3 + + 33 + + 96
----
126

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6325
SELECT - CAST( 87 AS SIGNED )
----
-87

skipif mysql # not compatible
query I rowsort label-6325
SELECT - CAST ( 87 AS INTEGER )
----
-87

query I rowsort
SELECT 9 + 98 AS col1
----
107

query I rowsort
SELECT - 78 + - 42
----
-120

query I rowsort
SELECT 44 + - 57
----
-13

query I rowsort
SELECT + 44 + + 78 AS col0
----
122

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6330
SELECT ALL + 77 + - 47 - - 8 * - + 26 DIV + COUNT( * ), 98 AS col2
----
-178
98

skipif mysql # not compatible
query II rowsort label-6330
SELECT ALL + 77 + - 47 - - 8 * - + 26 / + COUNT ( * ), 98 AS col2
----
-178
98

query I rowsort
SELECT DISTINCT - 18 * - + 73 AS col0
----
1314

onlyif mysql # aggregate syntax: 
query I rowsort label-6332
SELECT 24 + + + COUNT( * ) + 35
----
60

skipif mysql # not compatible
query I rowsort label-6332
SELECT 24 + + + COUNT ( * ) + 35
----
60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6333
SELECT - + CAST( - - 82 AS SIGNED )
----
-82

skipif mysql # not compatible
query I rowsort label-6333
SELECT - + CAST ( - - 82 AS INTEGER )
----
-82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6334
SELECT - 94 * NULLIF ( + NULLIF ( - NULLIF ( + 47, + 61 ), 40 / - 82 + - 54 ), + + CAST( NULL AS SIGNED ) )
----
4418

skipif mysql # not compatible
query I rowsort label-6334
SELECT - 94 * NULLIF ( + NULLIF ( - NULLIF ( + 47, + 61 ), 40 / - 82 + - 54 ), + + CAST ( NULL AS INTEGER ) )
----
4418

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6335
SELECT DISTINCT + CASE - ( - - CASE COUNT( * ) WHEN 99 THEN - 26 * - 18 + 31 END ) WHEN 34 THEN - - 96 ELSE NULL END - - - AVG ( 53 ) * COUNT( DISTINCT - + CAST( - 53 AS SIGNED ) ) + - 43 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6335
SELECT DISTINCT + CASE - ( - - CASE COUNT ( * ) WHEN 99 THEN - 26 * - 18 + 31 END ) WHEN 34 THEN - - 96 ELSE NULL END - - - AVG ( 53 ) * COUNT ( DISTINCT - + CAST ( - 53 AS INTEGER ) ) + - 43 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6336
SELECT 93 + - NULLIF ( - - 31, - COUNT( * ) * 63 ) AS col1, CASE + 29 WHEN 14 THEN 98 / - + 71 * + - CASE - 1 WHEN + 35 * 97 THEN + 37 * - 97 + - 99 * + + 6 + 57 WHEN + 90 THEN NULL END END AS col2
----
62
NULL

skipif mysql # not compatible
query II rowsort label-6336
SELECT 93 + - NULLIF ( - - 31, - COUNT ( * ) * 63 ) AS col1, CASE + 29 WHEN 14 THEN 98 / - + 71 * + - CASE - 1 WHEN + 35 * 97 THEN + 37 * - 97 + - 99 * + + 6 + 57 WHEN + 90 THEN NULL END END AS col2
----
62
NULL

query I rowsort
SELECT 46 * NULLIF ( 63, 65 + + 87 - 28 + + 74 )
----
2898

onlyif mysql # aggregate syntax: 
query I rowsort label-6338
SELECT ALL - 32 * - NULLIF ( + 69, 41 ) * - COUNT( * ) * - 49 AS col0
----
108192

skipif mysql # not compatible
query I rowsort label-6338
SELECT ALL - 32 * - NULLIF ( + 69, 41 ) * - COUNT ( * ) * - 49 AS col0
----
108192

query II rowsort
SELECT DISTINCT - 68, 27 * + - 87 + - 86 AS col0
----
-68
-2435

onlyif mysql # aggregate syntax: 
query I rowsort label-6340
SELECT ALL MAX( + 4 ) * - 15
----
-60

skipif mysql # not compatible
query I rowsort label-6340
SELECT ALL MAX ( + 4 ) * - 15
----
-60

onlyif mysql # DIV for integer division: 
query I rowsort label-6341
SELECT DISTINCT + 15 * 61 DIV - + 66
----
-13

skipif mysql # not compatible
query I rowsort label-6341
SELECT DISTINCT + 15 * 61 / - + 66
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-6342
SELECT ( + - 52 ) - - - COUNT( * ) + - COALESCE ( - 36, - - COUNT( * ) ) * 89 + + 40
----
3191

skipif mysql # not compatible
query I rowsort label-6342
SELECT ( + - 52 ) - - - COUNT ( * ) + - COALESCE ( - 36, - - COUNT ( * ) ) * 89 + + 40
----
3191

query I rowsort
SELECT ( + 9 ) * ( + - 81 ) * + + 42 AS col2
----
-30618

query I rowsort
SELECT DISTINCT - COALESCE ( + 17, + 15 * 80 + 61 ) col1
----
-17

query I rowsort
SELECT ALL + 70 + + + 30 * - 96 * - 44 + + + 40
----
126830

onlyif mysql # aggregate syntax: 
query I rowsort label-6346
SELECT 51 * + SUM( 32 ) * 51 * 69 * ( + CASE - 58 WHEN + AVG ( - 67 ) * + - 72 THEN 91 + 22 END ) + + 39 * 41 * 6
----
NULL

skipif mysql # not compatible
query I rowsort label-6346
SELECT 51 * + SUM ( 32 ) * 51 * 69 * ( + CASE - 58 WHEN + AVG ( - 67 ) * + - 72 THEN 91 + 22 END ) + + 39 * 41 * 6
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6347
SELECT ALL + 97 + + - 88 + - CASE + COUNT( * ) WHEN 85 THEN NULL ELSE - + 97 + 0 + - + 63 END AS col0
----
169

skipif mysql # not compatible
query I rowsort label-6347
SELECT ALL + 97 + + - 88 + - CASE + COUNT ( * ) WHEN 85 THEN NULL ELSE - + 97 + 0 + - + 63 END AS col0
----
169

onlyif mysql # aggregate syntax: 
query I rowsort label-6348
SELECT DISTINCT + MIN( 15 ) + 23
----
38

skipif mysql # not compatible
query I rowsort label-6348
SELECT DISTINCT + MIN ( 15 ) + 23
----
38

query I rowsort
SELECT ALL + 43 * 5
----
215

query I rowsort
SELECT ALL + 71 + - ( + 21 ) AS col0
----
50

query I rowsort
SELECT DISTINCT - 16 + - 42
----
-58

query I rowsort
SELECT ALL - + 78 + - 94
----
-172

query I rowsort
SELECT ALL + 8 * ( - 65 ) + 93
----
-427

query II rowsort
SELECT DISTINCT - 41 AS col1, 48 AS col2
----
-41
48

query II rowsort
SELECT - 98, + 15 * - - 57 - + 48 - 56 AS col1
----
-98
751

query I rowsort
SELECT DISTINCT - 58 - - 87 * + 41
----
3509

onlyif mysql # aggregate syntax: 
query I rowsort label-6357
SELECT ALL 95 - - 67 + + NULLIF ( - COUNT( * ), ( - 36 ) * + - 30 * + 16 ) AS col1
----
161

skipif mysql # not compatible
query I rowsort label-6357
SELECT ALL 95 - - 67 + + NULLIF ( - COUNT ( * ), ( - 36 ) * + - 30 * + 16 ) AS col1
----
161

query II rowsort
SELECT 17, - 48 AS col0
----
17
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-6359
SELECT COUNT( * ) * + 1 col0
----
1

skipif mysql # not compatible
query I rowsort label-6359
SELECT COUNT ( * ) * + 1 col0
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-6360
SELECT - 72 AS col0, + COUNT( * )
----
-72
1

skipif mysql # not compatible
query II rowsort label-6360
SELECT - 72 AS col0, + COUNT ( * )
----
-72
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6361
SELECT - MIN( + 5 )
----
-5

skipif mysql # not compatible
query I rowsort label-6361
SELECT - MIN ( + 5 )
----
-5

query I rowsort
SELECT 9 * 85 - 61
----
704

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6363
SELECT - COUNT( * ) * CASE + 23 WHEN COALESCE ( - - CAST( NULL AS SIGNED ), + 3, 10 ) THEN + 87 WHEN 7 - - - 54 * 46 THEN NULL ELSE - 68 END + + 73 col2
----
141

skipif mysql # not compatible
query I rowsort label-6363
SELECT - COUNT ( * ) * CASE + 23 WHEN COALESCE ( - - CAST ( NULL AS INTEGER ), + 3, 10 ) THEN + 87 WHEN 7 - - - 54 * 46 THEN NULL ELSE - 68 END + + 73 col2
----
141

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6364
SELECT ALL 74 DIV - COUNT( * ) AS col2
----
-74

skipif mysql # not compatible
query I rowsort label-6364
SELECT ALL 74 / - COUNT ( * ) AS col2
----
-74

onlyif mysql # DIV for integer division: 
query I rowsort label-6365
SELECT 36 DIV - 20 col0
----
-1

skipif mysql # not compatible
query I rowsort label-6365
SELECT 36 / - 20 col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6366
SELECT + MIN( DISTINCT COALESCE ( + 4, - 80, - 15 ) ) AS col2
----
4

skipif mysql # not compatible
query I rowsort label-6366
SELECT + MIN ( DISTINCT COALESCE ( + 4, - 80, - 15 ) ) AS col2
----
4

query I rowsort
SELECT 55 - + 54 AS col0
----
1

query I rowsort
SELECT AVG ( + CASE - + 45 WHEN - + 59 THEN + - 88 END ) AS col1
----
NULL

query I rowsort
SELECT + 65 * 39 - - - ( - 30 )
----
2565

onlyif mysql # aggregate syntax: 
query I rowsort label-6370
SELECT + MAX( - 38 ) AS col0
----
-38

skipif mysql # not compatible
query I rowsort label-6370
SELECT + MAX ( - 38 ) AS col0
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-6371
SELECT 71 * COUNT( * ) * - 24 * + - 72
----
122688

skipif mysql # not compatible
query I rowsort label-6371
SELECT 71 * COUNT ( * ) * - 24 * + - 72
----
122688

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6372
SELECT ALL 15 * - + 69 + 80 DIV COUNT( * )
----
-955

skipif mysql # not compatible
query I rowsort label-6372
SELECT ALL 15 * - + 69 + 80 / COUNT ( * )
----
-955

onlyif mysql # aggregate syntax: 
query I rowsort label-6373
SELECT MAX( - + 21 ) AS col0
----
-21

skipif mysql # not compatible
query I rowsort label-6373
SELECT MAX ( - + 21 ) AS col0
----
-21

query I rowsort
SELECT DISTINCT + 84 + + 85 * + 29 + + - 40 + - 5 * - + 95 * 29 * - 83 AS col0
----
-1140816

onlyif mysql # aggregate syntax: 
query I rowsort label-6375
SELECT ( COUNT( * ) ) + 48 + + + 60 * + 48
----
2929

skipif mysql # not compatible
query I rowsort label-6375
SELECT ( COUNT ( * ) ) + 48 + + + 60 * + 48
----
2929

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6376
SELECT ALL CAST( - 76 AS SIGNED ) + 16 AS col1
----
-60

skipif mysql # not compatible
query I rowsort label-6376
SELECT ALL CAST ( - 76 AS INTEGER ) + 16 AS col1
----
-60

query I rowsort
SELECT DISTINCT + ( + - 58 ) AS col0
----
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6378
SELECT - CAST( - 78 AS SIGNED ) * 54
----
4212

skipif mysql # not compatible
query I rowsort label-6378
SELECT - CAST ( - 78 AS INTEGER ) * 54
----
4212

onlyif mysql # aggregate syntax: 
query II rowsort label-6379
SELECT DISTINCT 65 + - 33 col0, - 48 * + COUNT( * ) * 87 AS col1
----
32
-4176

skipif mysql # not compatible
query II rowsort label-6379
SELECT DISTINCT 65 + - 33 col0, - 48 * + COUNT ( * ) * 87 AS col1
----
32
-4176

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6380
SELECT + + CAST( NULL AS DECIMAL ) + + 37 * 92 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6380
SELECT + + CAST ( NULL AS REAL ) + + 37 * 92 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6381
SELECT - MAX( ALL + 7 ), COUNT( * ) * 53 AS col2
----
-7
53

skipif mysql # not compatible
query II rowsort label-6381
SELECT - MAX ( ALL + 7 ), COUNT ( * ) * 53 AS col2
----
-7
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6382
SELECT - COUNT( * ) + + CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6382
SELECT - COUNT ( * ) + + CAST ( NULL AS INTEGER ) col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6383
SELECT + CASE + AVG ( DISTINCT + 54 ) WHEN 11 THEN 94 + SUM( ALL - 19 ) + - 86 WHEN - ( CAST( NULL AS SIGNED ) ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6383
SELECT + CASE + AVG ( DISTINCT + 54 ) WHEN 11 THEN 94 + SUM ( ALL - 19 ) + - 86 WHEN - ( CAST ( NULL AS INTEGER ) ) THEN NULL END
----
NULL

query I rowsort
SELECT - 40 + 41 * + - 32 AS col2
----
-1352

onlyif mysql # aggregate syntax: 
query I rowsort label-6385
SELECT DISTINCT + MAX( DISTINCT + 25 )
----
25

skipif mysql # not compatible
query I rowsort label-6385
SELECT DISTINCT + MAX ( DISTINCT + 25 )
----
25

query I rowsort
SELECT - + ( + 94 ) + - 4
----
-98

query I rowsort
SELECT ALL + 36 * 10
----
360

onlyif mysql # aggregate syntax: 
query I rowsort label-6388
SELECT - - 25 + - 57 / 82 + + AVG ( 80 ) + CASE 21 WHEN - 67 + + 94 + - COUNT( * ) THEN + + 32 * - 36 * 5 * + 81 * + 12 * - 0 END * + - COUNT( * ) + - 6 * + 30 / 35 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6388
SELECT - - 25 + - 57 / 82 + + AVG ( 80 ) + CASE 21 WHEN - 67 + + 94 + - COUNT ( * ) THEN + + 32 * - 36 * 5 * + 81 * + 12 * - 0 END * + - COUNT ( * ) + - 6 * + 30 / 35 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6389
SELECT - 29 * - MIN( ALL 74 ) + + 12 * - CAST( NULL AS DECIMAL ) / + 4
----
NULL

skipif mysql # not compatible
query I rowsort label-6389
SELECT - 29 * - MIN ( ALL 74 ) + + 12 * - CAST ( NULL AS REAL ) / + 4
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6390
SELECT ALL + 75 * - COUNT( * ) - ( + 1 ) + + 11 col0
----
-65

skipif mysql # not compatible
query I rowsort label-6390
SELECT ALL + 75 * - COUNT ( * ) - ( + 1 ) + + 11 col0
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-6391
SELECT - 56 + + SUM( + 81 ) * + + MIN( ALL - + 56 ) col2
----
-4592

skipif mysql # not compatible
query I rowsort label-6391
SELECT - 56 + + SUM ( + 81 ) * + + MIN ( ALL - + 56 ) col2
----
-4592

query II rowsort
SELECT - + 47 * + - 7, + 33 AS col2
----
329
33

query I rowsort
SELECT ALL COALESCE ( 44, 28, + 77 + + 39 + + + 28 * - + 44 )
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-6394
SELECT - COUNT( * ) * - SUM( - ( - 31 ) )
----
31

skipif mysql # not compatible
query I rowsort label-6394
SELECT - COUNT ( * ) * - SUM ( - ( - 31 ) )
----
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6395
SELECT ALL + COUNT( * ) + - 31 * - ( - CAST( NULL AS SIGNED ) ) * - 32 * COUNT( * ) + COUNT( * ) + ( + - 77 ) - + - ( - + 16 ) + - - SUM( DISTINCT - 45 ) * + 76, + 77 * - - 85 * - NULLIF ( - + COALESCE ( + - 59, - 59 ), + COUNT( * ) * NULLIF ( - 50, ( - AVG ( ALL - 14 ) ) ) ) AS col0
----
NULL
-386155

skipif mysql # not compatible
query II rowsort label-6395
SELECT ALL + COUNT ( * ) + - 31 * - ( - CAST ( NULL AS INTEGER ) ) * - 32 * COUNT ( * ) + COUNT ( * ) + ( + - 77 ) - + - ( - + 16 ) + - - SUM ( DISTINCT - 45 ) * + 76, + 77 * - - 85 * - NULLIF ( - + COALESCE ( + - 59, - 59 ), + COUNT ( * ) * NULLIF ( - 50, ( - AVG ( ALL - 14 ) ) ) ) AS col0
----
NULL
-386155

query II rowsort
SELECT ALL + 81 AS col2, + CASE 5 WHEN - AVG ( - 92 ) THEN NULL WHEN COALESCE ( 30, - ( 73 ) * - 74 + - - 88, - 96 * - COALESCE ( - 70, + 38 + - 21, - 15, + ( 51 ) + + - 45 ) * + 99 * + - 59 ) THEN NULL WHEN - 65 THEN - + 64 END * + 32
----
81
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6397
SELECT 69 DIV + 19 + - - 22 AS col0
----
25

skipif mysql # not compatible
query I rowsort label-6397
SELECT 69 / + 19 + - - 22 AS col0
----
25

query I rowsort
SELECT - 2 * + 13 AS col0
----
-26

query I rowsort
SELECT + 8 + - 20 AS col0
----
-12

query I rowsort
SELECT ALL 42 * 50 + + ( + + 4 ) AS col2
----
2104

query I rowsort
SELECT ALL 11 * - 74 + + 11 AS col2
----
-803

query II rowsort
SELECT DISTINCT + 86 * 25 + + 4 col1, + 69 AS col2
----
2154
69

query I rowsort
SELECT + 72 * - 23 AS col0
----
-1656

query I rowsort
SELECT DISTINCT + ( + + 31 ) AS col2
----
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6405
SELECT ALL CASE + + COUNT( * ) WHEN 35 THEN NULL WHEN - 42 / - COUNT( DISTINCT - + 39 ) THEN + CAST( 83 AS SIGNED ) ELSE NULL END * + CAST( NULL AS SIGNED ) - 52 + - + CAST( NULL AS SIGNED ) + - COUNT( * ) * + 48 * 43 * - - 87 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6405
SELECT ALL CASE + + COUNT ( * ) WHEN 35 THEN NULL WHEN - 42 / - COUNT ( DISTINCT - + 39 ) THEN + CAST ( 83 AS INTEGER ) ELSE NULL END * + CAST ( NULL AS INTEGER ) - 52 + - + CAST ( NULL AS INTEGER ) + - COUNT ( * ) * + 48 * 43 * - - 87 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6406
SELECT DISTINCT + 12 AS col1, - 86 * - COUNT( DISTINCT + + CAST( NULL AS SIGNED ) ) AS col2
----
12
0

skipif mysql # not compatible
query II rowsort label-6406
SELECT DISTINCT + 12 AS col1, - 86 * - COUNT ( DISTINCT + + CAST ( NULL AS INTEGER ) ) AS col2
----
12
0

query I rowsort
SELECT + ( + - 66 ) AS col2
----
-66

onlyif mysql # aggregate syntax: 
query II rowsort label-6408
SELECT ALL + 25, - COUNT( * ) col1
----
25
-1

skipif mysql # not compatible
query II rowsort label-6408
SELECT ALL + 25, - COUNT ( * ) col1
----
25
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-6409
SELECT + 23 * + MIN( + - 93 ) + - - 13 AS col2, + 84
----
-2126
84

skipif mysql # not compatible
query II rowsort label-6409
SELECT + 23 * + MIN ( + - 93 ) + - - 13 AS col2, + 84
----
-2126
84

query II rowsort
SELECT - 65, 24 * 63 * - 51 * + 32 + + CASE - 42 WHEN - 45 * + - 42 THEN 93 * 77 + 29 + + 58 WHEN - - ( + 55 ) THEN ( - 20 ) WHEN + + 48 * + 77 * - - 53 * - 54 - - 20 THEN NULL END AS col1
----
-65
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6411
SELECT - MAX( ALL + 74 ) AS col0
----
-74

skipif mysql # not compatible
query I rowsort label-6411
SELECT - MAX ( ALL + 74 ) AS col0
----
-74

query I rowsort
SELECT + 2 * + - 83
----
-166

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6413
SELECT ALL + + CAST( - - MAX( DISTINCT + + 9 ) AS SIGNED )
----
9

skipif mysql # not compatible
query I rowsort label-6413
SELECT ALL + + CAST ( - - MAX ( DISTINCT + + 9 ) AS INTEGER )
----
9

query I rowsort
SELECT DISTINCT + 38 * + + 19 + + 38 - - 54 * - - 19 * + 74 * - 1 AS col2
----
-75164

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6415
SELECT + + COUNT( * ) * - - 90 + + + COUNT( * ) + - + ( - 94 ) * - 14 * + + 70 + 44 + - 51 + - SUM( - 16 ) + - 43 * + 40 * + + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6415
SELECT + + COUNT ( * ) * - - 90 + + + COUNT ( * ) + - + ( - 94 ) * - 14 * + + 70 + 44 + - 51 + - SUM ( - 16 ) + - 43 * + 40 * + + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT COALESCE ( - 94, + 80 * + + 22 ) * + 66 * + 27
----
-167508

onlyif mysql # aggregate syntax: 
query I rowsort label-6417
SELECT DISTINCT + NULLIF ( + COUNT( - 89 ), - - 67 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6417
SELECT DISTINCT + NULLIF ( + COUNT ( - 89 ), - - 67 ) AS col0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-6418
SELECT DISTINCT - - 93 DIV 82
----
1

skipif mysql # not compatible
query I rowsort label-6418
SELECT DISTINCT - - 93 / 82
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6419
SELECT - - SUM( + 84 ) * - ( - 31 ) AS col1
----
2604

skipif mysql # not compatible
query I rowsort label-6419
SELECT - - SUM ( + 84 ) * - ( - 31 ) AS col1
----
2604

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6420
SELECT DISTINCT CAST( NULL AS SIGNED ) / + 82 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6420
SELECT DISTINCT CAST ( NULL AS INTEGER ) / + 82 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6421
SELECT - - COALESCE ( 45, 52 * - COUNT( * ) + - + ( 80 ) * - 82 ) DIV 94 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6421
SELECT - - COALESCE ( 45, 52 * - COUNT ( * ) + - + ( 80 ) * - 82 ) / 94 AS col0
----
0

query I rowsort
SELECT ALL - 46 + - - 65 AS col0
----
19

query I rowsort
SELECT ALL + 19 + + + 69 * + 41 + 58
----
2906

query II rowsort
SELECT + 27 + - + 17, - 47 + - 10 + + 85 AS col0
----
10
28

query I rowsort
SELECT DISTINCT ( 60 )
----
60

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-6426
SELECT - SUM( + 63 ), + COUNT( * ) * + 56 + + NULLIF ( 72, - CAST( NULL AS DECIMAL ) ) AS col2
----
-63
128

skipif mysql # not compatible
query II rowsort label-6426
SELECT - SUM ( + 63 ), + COUNT ( * ) * + 56 + + NULLIF ( 72, - CAST ( NULL AS REAL ) ) AS col2
----
-63
128

query I rowsort
SELECT ALL + 47 + - 82 + + 34
----
-1

query I rowsort
SELECT - 85 * 69 AS col0
----
-5865

query I rowsort
SELECT - 96 - - ( + 71 )
----
-25

query I rowsort
SELECT ALL - 11 * - + 42 * + 75 * - + ( 19 ) AS col1
----
-658350

onlyif mysql # aggregate syntax: 
query I rowsort label-6431
SELECT DISTINCT + SUM( ALL + 38 )
----
38

skipif mysql # not compatible
query I rowsort label-6431
SELECT DISTINCT + SUM ( ALL + 38 )
----
38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6432
SELECT DISTINCT - 59 / ( - + CAST( NULL AS SIGNED ) ) + + - SUM( ALL CASE 20 WHEN - - ( + 70 ) - + 20 THEN NULL WHEN + 71 THEN - + 6 END ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6432
SELECT DISTINCT - 59 / ( - + CAST ( NULL AS INTEGER ) ) + + - SUM ( ALL CASE 20 WHEN - - ( + 70 ) - + 20 THEN NULL WHEN + 71 THEN - + 6 END ) col2
----
NULL

query I rowsort
SELECT ALL - ( - 46 )
----
46

onlyif mysql # aggregate syntax: 
query II rowsort label-6434
SELECT 90 - 15 AS col0, COUNT( * )
----
75
1

skipif mysql # not compatible
query II rowsort label-6434
SELECT 90 - 15 AS col0, COUNT ( * )
----
75
1

query I rowsort
SELECT ALL - 39 * + - ( + + 2 ) * 39
----
3042

query II rowsort
SELECT ALL + 85 - 42 AS col1, - 75 AS col0
----
43
-75

query II rowsort
SELECT 80 * + 0 AS col0, - 78
----
0
-78

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6438
SELECT DISTINCT - - CAST( - - 10 AS SIGNED ) AS col2, + ( + 77 ) * - 82 * + + 66
----
10
-416724

skipif mysql # not compatible
query II rowsort label-6438
SELECT DISTINCT - - CAST ( - - 10 AS INTEGER ) AS col2, + ( + 77 ) * - 82 * + + 66
----
10
-416724

onlyif mysql # aggregate syntax: 
query I rowsort label-6439
SELECT DISTINCT - - COALESCE ( + + COALESCE ( 18, + 57 ), - COUNT( * ) - 97 + + 54 + + 54 ) col1
----
18

skipif mysql # not compatible
query I rowsort label-6439
SELECT DISTINCT - - COALESCE ( + + COALESCE ( 18, + 57 ), - COUNT ( * ) - 97 + + 54 + + 54 ) col1
----
18

onlyif mysql # DIV for integer division: 
query I rowsort label-6440
SELECT ALL + + COALESCE ( 6, - 98 ) * - - 61 DIV + + 55 + + 30 AS col0
----
36

skipif mysql # not compatible
query I rowsort label-6440
SELECT ALL + + COALESCE ( 6, - 98 ) * - - 61 / + + 55 + + 30 AS col0
----
36

query I rowsort
SELECT DISTINCT - ( - 31 ) * 38 * + 88 AS col2
----
103664

onlyif mysql # DIV for integer division: 
query I rowsort label-6442
SELECT ALL 61 DIV - 36 + - 18 col2
----
-19

skipif mysql # not compatible
query I rowsort label-6442
SELECT ALL 61 / - 36 + - 18 col2
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-6443
SELECT - COALESCE ( - 86, + 81 + + - COUNT( * ) * - + 79 + 83 + - 40, - 43 ) * 30 AS col2
----
2580

skipif mysql # not compatible
query I rowsort label-6443
SELECT - COALESCE ( - 86, + 81 + + - COUNT ( * ) * - + 79 + 83 + - 40, - 43 ) * 30 AS col2
----
2580

query I rowsort
SELECT 78 + 19 * + CASE - 12 WHEN - 65 * - 97 THEN + 65 ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6445
SELECT - 88 + NULLIF ( - + 3, 3 * - COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6445
SELECT - 88 + NULLIF ( - + 3, 3 * - COUNT ( * ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6446
SELECT ALL CASE - + 92 WHEN - 99 THEN - + 7 WHEN 29 * + ( COUNT( * ) ) THEN + 9 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6446
SELECT ALL CASE - + 92 WHEN - 99 THEN - + 7 WHEN 29 * + ( COUNT ( * ) ) THEN + 9 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6447
SELECT - NULLIF ( + 24, - - COUNT( * ) ) * - - 72
----
-1728

skipif mysql # not compatible
query I rowsort label-6447
SELECT - NULLIF ( + 24, - - COUNT ( * ) ) * - - 72
----
-1728

query I rowsort
SELECT + 72 * 45 AS col0
----
3240

query II rowsort
SELECT + 11 + - - 20, - COALESCE ( + 85, 22 * + 95 * + - 84 ) AS col0
----
31
-85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6450
SELECT ALL + CAST( - 14 AS SIGNED ) AS col1
----
-14

skipif mysql # not compatible
query I rowsort label-6450
SELECT ALL + CAST ( - 14 AS INTEGER ) AS col1
----
-14

query I rowsort
SELECT + 38 + 70
----
108

query I rowsort
SELECT ALL 8 + - + 96 - + 8 * - 61 + 52 AS col0
----
452

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6453
SELECT DISTINCT COUNT( * ) * - COALESCE ( 83, + + 87 ) DIV COUNT( * ) col2
----
-83

skipif mysql # not compatible
query I rowsort label-6453
SELECT DISTINCT COUNT ( * ) * - COALESCE ( 83, + + 87 ) / COUNT ( * ) col2
----
-83

query I rowsort
SELECT ALL + - NULLIF ( + 33, + 67 ) + - 31 * - 47
----
1424

query I rowsort
SELECT - ( 10 ) + + 67 AS col0
----
57

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6456
SELECT DISTINCT CAST( - 3 AS SIGNED ) + - 73 AS col1, 21 AS col1
----
-76
21

skipif mysql # not compatible
query II rowsort label-6456
SELECT DISTINCT CAST ( - 3 AS INTEGER ) + - 73 AS col1, 21 AS col1
----
-76
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6457
SELECT 74 + - CAST( - 56 AS SIGNED ) DIV - COUNT( * )
----
18

skipif mysql # not compatible
query I rowsort label-6457
SELECT 74 + - CAST ( - 56 AS INTEGER ) / - COUNT ( * )
----
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6458
SELECT COALESCE ( + 13, + ( 3 ) * MIN( ALL - 51 ) ) * + 0 + + 96 + + 52 * SUM( + ( + 90 ) ) - + CAST( COUNT( * ) AS SIGNED ) + + 5 + + SUM( - 61 ) / - - SUM( DISTINCT - - CAST( NULL AS SIGNED ) ) * 33 - + 88 * - + 57 - - + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-6458
SELECT COALESCE ( + 13, + ( 3 ) * MIN ( ALL - 51 ) ) * + 0 + + 96 + + 52 * SUM ( + ( + 90 ) ) - + CAST ( COUNT ( * ) AS INTEGER ) + + 5 + + SUM ( - 61 ) / - - SUM ( DISTINCT - - CAST ( NULL AS INTEGER ) ) * 33 - + 88 * - + 57 - - + COUNT ( * )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6459
SELECT ALL + 43 DIV 12
----
3

skipif mysql # not compatible
query I rowsort label-6459
SELECT ALL + 43 / 12
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-6460
SELECT 3 AS col2, + CAST( + 11 AS SIGNED ) + - ( + 42 ) + 29 - - 31 + + 75, - COUNT( * ) AS col1
----
3
104
-1

skipif mysql # not compatible
query III rowsort label-6460
SELECT 3 AS col2, + CAST ( + 11 AS INTEGER ) + - ( + 42 ) + 29 - - 31 + + 75, - COUNT ( * ) AS col1
----
3
104
-1

query I rowsort
SELECT ALL 55 + - + NULLIF ( + 46, - 19 )
----
9

query I rowsort
SELECT 71 * + - 86
----
-6106

onlyif mysql # DIV for integer division: 
query I rowsort label-6463
SELECT ALL 72 DIV 29 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-6463
SELECT ALL 72 / 29 AS col0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-6464
SELECT DISTINCT + 25 * - COUNT( * ) AS col1
----
-25

skipif mysql # not compatible
query I rowsort label-6464
SELECT DISTINCT + 25 * - COUNT ( * ) AS col1
----
-25

onlyif mysql # DIV for integer division: 
query I rowsort label-6465
SELECT DISTINCT - 71 - - 89 DIV - 22 AS col1
----
-75

skipif mysql # not compatible
query I rowsort label-6465
SELECT DISTINCT - 71 - - 89 / - 22 AS col1
----
-75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6466
SELECT CAST( NULLIF ( 55, + 57 / 52 ) AS SIGNED ) * COUNT( * )
----
55

skipif mysql # not compatible
query I rowsort label-6466
SELECT CAST ( NULLIF ( 55, + 57 / 52 ) AS INTEGER ) * COUNT ( * )
----
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6467
SELECT ALL - 53 - CAST( 85 AS SIGNED ) + COUNT( * ) - 69 * - - 34 - 3
----
-2486

skipif mysql # not compatible
query I rowsort label-6467
SELECT ALL - 53 - CAST ( 85 AS INTEGER ) + COUNT ( * ) - 69 * - - 34 - 3
----
-2486

onlyif mysql # aggregate syntax: 
query II rowsort label-6468
SELECT + 14 * - - 48 + - 48 col0, + MIN( DISTINCT CASE - + COALESCE ( + - ( 19 ), + - 87 * 61 * + 60 ) WHEN - 62 + - 1 THEN + 26 END ) * + 75 + - 77 + + + ( + 3 ) * 35 + + 87 + + 24 * - 9
----
624
NULL

skipif mysql # not compatible
query II rowsort label-6468
SELECT + 14 * - - 48 + - 48 col0, + MIN ( DISTINCT CASE - + COALESCE ( + - ( 19 ), + - 87 * 61 * + 60 ) WHEN - 62 + - 1 THEN + 26 END ) * + 75 + - 77 + + + ( + 3 ) * 35 + + 87 + + 24 * - 9
----
624
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6469
SELECT DISTINCT - NULLIF ( 55, - 94 / ( + CAST( - 89 AS SIGNED ) ) * - 40 / - 76 ) AS col0
----
-55

skipif mysql # not compatible
query I rowsort label-6469
SELECT DISTINCT - NULLIF ( 55, - 94 / ( + CAST ( - 89 AS INTEGER ) ) * - 40 / - 76 ) AS col0
----
-55

query I rowsort
SELECT ALL - 53 * + 0 * 21
----
0

query I rowsort
SELECT - 93 * + - 44 * + - 57 * 13 AS col2
----
-3032172

onlyif mysql # aggregate syntax: 
query I rowsort label-6472
SELECT ALL - - SUM( DISTINCT - - 59 ) col0
----
59

skipif mysql # not compatible
query I rowsort label-6472
SELECT ALL - - SUM ( DISTINCT - - 59 ) col0
----
59

query I rowsort
SELECT - 20 * - 84 * - + 92 AS col1
----
-154560

onlyif mysql # aggregate syntax: 
query II rowsort label-6474
SELECT - 84 AS col2, COUNT( * ) AS col0
----
-84
1

skipif mysql # not compatible
query II rowsort label-6474
SELECT - 84 AS col2, COUNT ( * ) AS col0
----
-84
1

onlyif mysql # DIV for integer division: 
query I rowsort label-6475
SELECT + 86 DIV 84 * + 79 * 23 - + 66 * - - 72 AS col2
----
-2935

skipif mysql # not compatible
query I rowsort label-6475
SELECT + 86 / 84 * + 79 * 23 - + 66 * - - 72 AS col2
----
-2935

onlyif mysql # aggregate syntax: 
query II rowsort label-6476
SELECT MIN( - 22 ) * - NULLIF ( - 53, + ( + 12 ) ) AS col2, + 29
----
-1166
29

skipif mysql # not compatible
query II rowsort label-6476
SELECT MIN ( - 22 ) * - NULLIF ( - 53, + ( + 12 ) ) AS col2, + 29
----
-1166
29

onlyif mysql # aggregate syntax: 
query II rowsort label-6477
SELECT 69 * - COUNT( * ) * + 97, + 83 AS col2
----
-6693
83

skipif mysql # not compatible
query II rowsort label-6477
SELECT 69 * - COUNT ( * ) * + 97, + 83 AS col2
----
-6693
83

query I rowsort
SELECT + + ( + + 7 )
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-6479
SELECT ALL 39 + COUNT( * ) * + 47 - + 31
----
55

skipif mysql # not compatible
query I rowsort label-6479
SELECT ALL 39 + COUNT ( * ) * + 47 - + 31
----
55

query I rowsort
SELECT ALL + ( + + 35 ) * - + 43 AS col0
----
-1505

onlyif mysql # DIV for integer division: 
query I rowsort label-6481
SELECT 62 DIV + 61 - 79
----
-78

skipif mysql # not compatible
query I rowsort label-6481
SELECT 62 / + 61 - 79
----
-78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6482
SELECT DISTINCT + 55 * + + CAST( 15 AS SIGNED ) * 55 - - 63
----
45438

skipif mysql # not compatible
query I rowsort label-6482
SELECT DISTINCT + 55 * + + CAST ( 15 AS INTEGER ) * 55 - - 63
----
45438

query I rowsort
SELECT ALL - 96 + - 96 + + 72
----
-120

onlyif mysql # aggregate syntax: 
query I rowsort label-6484
SELECT - MIN( 93 ) AS col1
----
-93

skipif mysql # not compatible
query I rowsort label-6484
SELECT - MIN ( 93 ) AS col1
----
-93

onlyif mysql # DIV for integer division: 
query I rowsort label-6485
SELECT + 58 DIV 65
----
0

skipif mysql # not compatible
query I rowsort label-6485
SELECT + 58 / 65
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6486
SELECT COUNT( * ) * - 25
----
-25

skipif mysql # not compatible
query I rowsort label-6486
SELECT COUNT ( * ) * - 25
----
-25

onlyif mysql # DIV for integer division: 
query I rowsort label-6487
SELECT ALL 15 + - 49 DIV + 83 AS col2
----
15

skipif mysql # not compatible
query I rowsort label-6487
SELECT ALL 15 + - 49 / + 83 AS col2
----
15

onlyif mysql # aggregate syntax: 
query II rowsort label-6488
SELECT - COUNT( * ) AS col0, - ( - 63 )
----
-1
63

skipif mysql # not compatible
query II rowsort label-6488
SELECT - COUNT ( * ) AS col0, - ( - 63 )
----
-1
63

onlyif mysql # aggregate syntax: 
query II rowsort label-6489
SELECT DISTINCT - COUNT( * ) + + 46 AS col1, - 27
----
45
-27

skipif mysql # not compatible
query II rowsort label-6489
SELECT DISTINCT - COUNT ( * ) + + 46 AS col1, - 27
----
45
-27

query I rowsort
SELECT ALL 67 * + 35 * + - ( + 90 )
----
-211050

query I rowsort
SELECT + 73 * - ( 61 )
----
-4453

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6492
SELECT DISTINCT 2 * ( CASE - 42 WHEN + - 71 THEN NULL ELSE - ( + CAST( + + 45 AS SIGNED ) ) + + 84 + - 60 + - - CASE 67 WHEN - COALESCE ( - 7, - 14 * + 52 - - 69 ) * - CASE COUNT( * ) WHEN 84 / + 91 THEN + MAX( DISTINCT + 69 ) WHEN ( - - COUNT( * ) ) THEN + + 52 ELSE NULL END THEN NULL ELSE + + ( - 26 ) END END )
----
-94

skipif mysql # not compatible
query I rowsort label-6492
SELECT DISTINCT 2 * ( CASE - 42 WHEN + - 71 THEN NULL ELSE - ( + CAST ( + + 45 AS INTEGER ) ) + + 84 + - 60 + - - CASE 67 WHEN - COALESCE ( - 7, - 14 * + 52 - - 69 ) * - CASE COUNT ( * ) WHEN 84 / + 91 THEN + MAX ( DISTINCT + 69 ) WHEN ( - - COUNT ( * ) ) THEN + + 52 ELSE NULL END THEN NULL ELSE + + ( - 26 ) END END )
----
-94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6493
SELECT ALL 61 - + + 46 * CAST( NULL AS SIGNED ) * + 2
----
NULL

skipif mysql # not compatible
query I rowsort label-6493
SELECT ALL 61 - + + 46 * CAST ( NULL AS INTEGER ) * + 2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6494
SELECT - COUNT( * ) AS col1, 76 * COUNT( * ) * - 48
----
-1
-3648

skipif mysql # not compatible
query II rowsort label-6494
SELECT - COUNT ( * ) AS col1, 76 * COUNT ( * ) * - 48
----
-1
-3648

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6495
SELECT ALL 32 * - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6495
SELECT ALL 32 * - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT + 37 + + - 22 AS col0
----
15

query II rowsort
SELECT 56 AS col0, 83 - - 64 col2
----
56
147

query I rowsort
SELECT + 14 + 47 AS col0
----
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6499
SELECT - COUNT( * ) AS col2, CAST( - - 43 AS SIGNED )
----
-1
43

skipif mysql # not compatible
query II rowsort label-6499
SELECT - COUNT ( * ) AS col2, CAST ( - - 43 AS INTEGER )
----
-1
43

query II rowsort
SELECT 99, 75 AS col0
----
99
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6501
SELECT + COALESCE ( COUNT( * ), 82 DIV - 52, + CASE - - COUNT( * ) WHEN 27 * CASE 34 WHEN + 83 THEN + + COUNT( * ) + CAST( - SUM( - 35 ) AS SIGNED ) ELSE + COUNT( * ) END THEN NULL WHEN - - 48 + + 78 THEN - - 70 WHEN 46 THEN NULL ELSE NULL END + + COUNT( * ) - - 59 ) * + 96 col1
----
96

skipif mysql # not compatible
query I rowsort label-6501
SELECT + COALESCE ( COUNT ( * ), 82 / - 52, + CASE - - COUNT ( * ) WHEN 27 * CASE 34 WHEN + 83 THEN + + COUNT ( * ) + CAST ( - SUM ( - 35 ) AS INTEGER ) ELSE + COUNT ( * ) END THEN NULL WHEN - - 48 + + 78 THEN - - 70 WHEN 46 THEN NULL ELSE NULL END + + COUNT ( * ) - - 59 ) * + 96 col1
----
96

query II rowsort
SELECT - 13 * 33 AS col0, - 52 + - 29 AS col2
----
-429
-81

query II rowsort
SELECT - 25, - 66 * + ( - 34 ) AS col1
----
-25
2244

query I rowsort
SELECT DISTINCT 30 * 1 AS col2
----
30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6505
SELECT ALL + COUNT( + - 49 ) DIV + + COUNT( * ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6505
SELECT ALL + COUNT ( + - 49 ) / + + COUNT ( * ) AS col1
----
1

query II rowsort
SELECT DISTINCT + 28, 86 * + 35 AS col1
----
28
3010

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6507
SELECT DISTINCT COUNT( * ) DIV + 91
----
0

skipif mysql # not compatible
query I rowsort label-6507
SELECT DISTINCT COUNT ( * ) / + 91
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6508
SELECT + - MAX( ALL + + 21 )
----
-21

skipif mysql # not compatible
query I rowsort label-6508
SELECT + - MAX ( ALL + + 21 )
----
-21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6509
SELECT + - 11 * - 70 * 28 + COUNT( * ) * 47 * ( CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6509
SELECT + - 11 * - 70 * 28 + COUNT ( * ) * 47 * ( CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT - 27 * 1 AS col2
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-6511
SELECT ALL - 10 * - + 63 + 89 + + COUNT( * )
----
720

skipif mysql # not compatible
query I rowsort label-6511
SELECT ALL - 10 * - + 63 + 89 + + COUNT ( * )
----
720

onlyif mysql # aggregate syntax: 
query I rowsort label-6512
SELECT MAX( DISTINCT + 30 ) * ( - 80 ) + - 16 - + CASE - - 95 WHEN - 61 THEN + 21 WHEN + - 14 THEN NULL WHEN 61 THEN NULL WHEN - 35 THEN NULL END / + - 61
----
NULL

skipif mysql # not compatible
query I rowsort label-6512
SELECT MAX ( DISTINCT + 30 ) * ( - 80 ) + - 16 - + CASE - - 95 WHEN - 61 THEN + 21 WHEN + - 14 THEN NULL WHEN 61 THEN NULL WHEN - 35 THEN NULL END / + - 61
----
NULL

query I rowsort
SELECT DISTINCT - 96 * - 46 + - 8 AS col0
----
4408

onlyif mysql # aggregate syntax: 
query I rowsort label-6514
SELECT ALL + COUNT( * ) * - - 50 + + COUNT( * )
----
51

skipif mysql # not compatible
query I rowsort label-6514
SELECT ALL + COUNT ( * ) * - - 50 + + COUNT ( * )
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-6515
SELECT ALL + + MIN( ALL + 1 ) * + 88 + COUNT( * ) + 42 + - - 92 + + 23 * + + NULLIF ( - COUNT( * ), COUNT( * ) + + 55 ) * + + 65 * - 46 + + + 2 + - 50 - - 28 AS col0
----
68973

skipif mysql # not compatible
query I rowsort label-6515
SELECT ALL + + MIN ( ALL + 1 ) * + 88 + COUNT ( * ) + 42 + - - 92 + + 23 * + + NULLIF ( - COUNT ( * ), COUNT ( * ) + + 55 ) * + + 65 * - 46 + + + 2 + - 50 - - 28 AS col0
----
68973

query I rowsort
SELECT DISTINCT + 32 * 62 + - 1 AS col0
----
1983

onlyif mysql # aggregate syntax: 
query I rowsort label-6517
SELECT - + 17 * ( - COUNT( * ) ) + ( 17 )
----
34

skipif mysql # not compatible
query I rowsort label-6517
SELECT - + 17 * ( - COUNT ( * ) ) + ( 17 )
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-6518
SELECT - 40 * - + 79 - + 89 + + + 85 - + + MAX( - 27 ) - - + 45 AS col2
----
3228

skipif mysql # not compatible
query I rowsort label-6518
SELECT - 40 * - + 79 - + 89 + + + 85 - + + MAX ( - 27 ) - - + 45 AS col2
----
3228

query I rowsort
SELECT ALL - 95 * 80 + - ( 50 ) + - 27
----
-7677

onlyif mysql # DIV for integer division: 
query I rowsort label-6520
SELECT ALL + - 82 DIV + 8 AS col0
----
-10

skipif mysql # not compatible
query I rowsort label-6520
SELECT ALL + - 82 / + 8 AS col0
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-6521
SELECT DISTINCT + MAX( + - 38 ) col1
----
-38

skipif mysql # not compatible
query I rowsort label-6521
SELECT DISTINCT + MAX ( + - 38 ) col1
----
-38

query II rowsort
SELECT - - 45 col1, + 9
----
45
9

onlyif mysql # aggregate syntax: 
query I rowsort label-6523
SELECT ALL - 15 + + - 49 * NULLIF ( - ( + - 93 ), - - 74 ) * - NULLIF ( + 15, + - COALESCE ( + COUNT( ALL - 46 ), - 94 * - COUNT( * ) * CASE + 48 WHEN 98 * + ( MIN( ALL 5 ) ) * - 19 + 77 + - 29 * + 48 THEN + 9 * - 30 / + AVG ( + 50 ) + 60 - - 51 WHEN + 65 THEN 97 * - + 75 END + MAX( DISTINCT - 91 ) ) ) + - 4
----
68336

skipif mysql # not compatible
query I rowsort label-6523
SELECT ALL - 15 + + - 49 * NULLIF ( - ( + - 93 ), - - 74 ) * - NULLIF ( + 15, + - COALESCE ( + COUNT ( ALL - 46 ), - 94 * - COUNT ( * ) * CASE + 48 WHEN 98 * + ( MIN ( ALL 5 ) ) * - 19 + 77 + - 29 * + 48 THEN + 9 * - 30 / + AVG ( + 50 ) + 60 - - 51 WHEN + 65 THEN 97 * - + 75 END + MAX ( DISTINCT - 91 ) ) ) + - 4
----
68336

query I rowsort
SELECT ALL + 24 * + 92
----
2208

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6525
SELECT - CASE COUNT( * ) WHEN 94 + + + 21 * + CAST( NULL AS SIGNED ) - + - 78 THEN 89 ELSE - 58 END + - 94 + - + ( + 94 ) + - 28 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6525
SELECT - CASE COUNT ( * ) WHEN 94 + + + 21 * + CAST ( NULL AS INTEGER ) - + - 78 THEN 89 ELSE - 58 END + - 94 + - + ( + 94 ) + - 28 * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6526
SELECT DISTINCT COALESCE ( - ( - MAX( + - 90 ) ), 29 + - 45 + + 88 ) AS col2, - 80 AS col1
----
-90
-80

skipif mysql # not compatible
query II rowsort label-6526
SELECT DISTINCT COALESCE ( - ( - MAX ( + - 90 ) ), 29 + - 45 + + 88 ) AS col2, - 80 AS col1
----
-90
-80

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6527
SELECT ALL 61 - - COALESCE ( + - 25, ( - + 33 ) DIV - 17 ) + + 3 * 48 - + + COUNT( * ) + - 89 + 5 * - 62 AS col1, COALESCE ( 58, + 65 * - 9 - 27 + + ( + - MAX( + 86 ) ) DIV - 79, 10 DIV - + 31 ) * - 29 - + 8 AS col2
----
-220
-1690

skipif mysql # not compatible
query II rowsort label-6527
SELECT ALL 61 - - COALESCE ( + - 25, ( - + 33 ) / - 17 ) + + 3 * 48 - + + COUNT ( * ) + - 89 + 5 * - 62 AS col1, COALESCE ( 58, + 65 * - 9 - 27 + + ( + - MAX ( + 86 ) ) / - 79, 10 / - + 31 ) * - 29 - + 8 AS col2
----
-220
-1690

query I rowsort
SELECT DISTINCT + 79 * - + 93
----
-7347

query I rowsort
SELECT + COALESCE ( - 29, + - ( + 78 ) ) + - + 99 * + 37 AS col2
----
-3692

query I rowsort
SELECT ALL + 53 - - + 58 + 18
----
129

onlyif mysql # aggregate syntax: 
query II rowsort label-6531
SELECT - COUNT( * ) * + 86, - COUNT( * ) - + - ( + 35 ) + 88 * + - 23 col0
----
-86
-1990

skipif mysql # not compatible
query II rowsort label-6531
SELECT - COUNT ( * ) * + 86, - COUNT ( * ) - + - ( + 35 ) + 88 * + - 23 col0
----
-86
-1990

query I rowsort
SELECT - 90 * + 87
----
-7830

query I rowsort
SELECT + 96 + + + ( + 67 ) - 56 + - 1 - - 12 * + 97
----
1270

onlyif mysql # aggregate syntax: 
query I rowsort label-6534
SELECT ALL ( NULLIF ( 71, - 71 + COUNT( * ) ) )
----
71

skipif mysql # not compatible
query I rowsort label-6534
SELECT ALL ( NULLIF ( 71, - 71 + COUNT ( * ) ) )
----
71

query I rowsort
SELECT DISTINCT ( - 53 ) AS col2
----
-53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6536
SELECT DISTINCT NULLIF ( - + CASE + + 37 WHEN 54 * + COUNT( * ) * + + CAST( NULL AS SIGNED ) * - NULLIF ( - 64, COUNT( * ) ) * + 32 * COUNT( * ) + - + 93 + ( 90 ) * - 24 THEN NULL WHEN - + 0 * + + COUNT( * ) * - ( - COUNT( * ) ) THEN + + 6 ELSE + 16 END, 62 * + 60 + - + COUNT( * ) + - - 87 * + CAST( - + 4 AS DECIMAL ) ) * 49 AS col2
----
-784

skipif mysql # not compatible
query I rowsort label-6536
SELECT DISTINCT NULLIF ( - + CASE + + 37 WHEN 54 * + COUNT ( * ) * + + CAST ( NULL AS INTEGER ) * - NULLIF ( - 64, COUNT ( * ) ) * + 32 * COUNT ( * ) + - + 93 + ( 90 ) * - 24 THEN NULL WHEN - + 0 * + + COUNT ( * ) * - ( - COUNT ( * ) ) THEN + + 6 ELSE + 16 END, 62 * + 60 + - + COUNT ( * ) + - - 87 * + CAST ( - + 4 AS REAL ) ) * 49 AS col2
----
-784

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6537
SELECT DISTINCT CAST( + 19 AS SIGNED ) AS col1
----
19

skipif mysql # not compatible
query I rowsort label-6537
SELECT DISTINCT CAST ( + 19 AS INTEGER ) AS col1
----
19

query I rowsort
SELECT + 54 * + - 59
----
-3186

onlyif mysql # aggregate syntax: 
query I rowsort label-6539
SELECT + + MAX( DISTINCT + 58 ) * SUM( ALL - 5 ) + + 26 + + 25 * COALESCE ( + - 2, - 1 ) AS col2
----
-314

skipif mysql # not compatible
query I rowsort label-6539
SELECT + + MAX ( DISTINCT + 58 ) * SUM ( ALL - 5 ) + + 26 + + 25 * COALESCE ( + - 2, - 1 ) AS col2
----
-314

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6540
SELECT ALL CAST( - ( + + 96 ) AS SIGNED ) * + 75
----
-7200

skipif mysql # not compatible
query I rowsort label-6540
SELECT ALL CAST ( - ( + + 96 ) AS INTEGER ) * + 75
----
-7200

onlyif mysql # DIV for integer division: 
query I rowsort label-6541
SELECT DISTINCT - ( - 74 ) DIV + 6 + - 57
----
-45

skipif mysql # not compatible
query I rowsort label-6541
SELECT DISTINCT - ( - 74 ) / + 6 + - 57
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-6542
SELECT COUNT( * ) * 27 - + COUNT( * ) + 6 + + - 68 * + 49
----
-3300

skipif mysql # not compatible
query I rowsort label-6542
SELECT COUNT ( * ) * 27 - + COUNT ( * ) + 6 + + - 68 * + 49
----
-3300

query I rowsort
SELECT + + ( + - 72 )
----
-72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6544
SELECT + 44 / + 63 / + CAST( NULL AS SIGNED ) * 93 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6544
SELECT + 44 / + 63 / + CAST ( NULL AS INTEGER ) * 93 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6545
SELECT - 27 + + - 16 - - MAX( + - 69 ) * 15 DIV - 67
----
-28

skipif mysql # not compatible
query I rowsort label-6545
SELECT - 27 + + - 16 - - MAX ( + - 69 ) * 15 / - 67
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-6546
SELECT ALL COUNT( * ) * MIN( + - 93 ) AS col0
----
-93

skipif mysql # not compatible
query I rowsort label-6546
SELECT ALL COUNT ( * ) * MIN ( + - 93 ) AS col0
----
-93

query I rowsort
SELECT DISTINCT + 47 * + + 70
----
3290

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6548
SELECT ALL + 14 * CAST( - - 35 AS SIGNED ) * 72
----
35280

skipif mysql # not compatible
query I rowsort label-6548
SELECT ALL + 14 * CAST ( - - 35 AS INTEGER ) * 72
----
35280

query I rowsort
SELECT 1 * - 49
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-6550
SELECT ALL - COUNT( * ) - 69 + 16
----
-54

skipif mysql # not compatible
query I rowsort label-6550
SELECT ALL - COUNT ( * ) - 69 + 16
----
-54

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6551
SELECT + + ( CAST( NULL AS SIGNED ) ) AS col1, 18 AS col1
----
NULL
18

skipif mysql # not compatible
query II rowsort label-6551
SELECT + + ( CAST ( NULL AS INTEGER ) ) AS col1, 18 AS col1
----
NULL
18

onlyif mysql # aggregate syntax: 
query I rowsort label-6552
SELECT ALL - 84 - COUNT( * )
----
-85

skipif mysql # not compatible
query I rowsort label-6552
SELECT ALL - 84 - COUNT ( * )
----
-85

query I rowsort
SELECT 71 * + 8
----
568

query II rowsort
SELECT DISTINCT 98, + 97 AS col2
----
98
97

query II rowsort
SELECT - 2 AS col0, 37 col2
----
-2
37

query I rowsort
SELECT 61 * + 89 AS col0
----
5429

onlyif mysql # DIV for integer division: 
query II rowsort label-6557
SELECT DISTINCT - 12 DIV - ( 77 ) AS col1, + 77
----
0
77

skipif mysql # not compatible
query II rowsort label-6557
SELECT DISTINCT - 12 / - ( 77 ) AS col1, + 77
----
0
77

query I rowsort
SELECT 70 - - ( - + 79 )
----
-9

query I rowsort
SELECT 73 * + 23 AS col2
----
1679

onlyif mysql # aggregate syntax: 
query I rowsort label-6560
SELECT ALL - MIN( DISTINCT - 15 ) * - 74 + - COUNT( * ) * - + ( + + 64 ) * 65
----
3050

skipif mysql # not compatible
query I rowsort label-6560
SELECT ALL - MIN ( DISTINCT - 15 ) * - 74 + - COUNT ( * ) * - + ( + + 64 ) * 65
----
3050

onlyif mysql # DIV for integer division: 
query I rowsort label-6561
SELECT 80 - - + 30 * - 44 + - 51 DIV + 94
----
-1240

skipif mysql # not compatible
query I rowsort label-6561
SELECT 80 - - + 30 * - 44 + - 51 / + 94
----
-1240

onlyif mysql # DIV for integer division: 
query I rowsort label-6562
SELECT ALL - 21 DIV - + 7
----
3

skipif mysql # not compatible
query I rowsort label-6562
SELECT ALL - 21 / - + 7
----
3

query I rowsort
SELECT DISTINCT - 76 * 9
----
-684

query I rowsort
SELECT DISTINCT - 3 * - 99
----
297

onlyif mysql # aggregate syntax: 
query II rowsort label-6565
SELECT ALL 22 AS col1, 71 - - + COUNT( * )
----
22
72

skipif mysql # not compatible
query II rowsort label-6565
SELECT ALL 22 AS col1, 71 - - + COUNT ( * )
----
22
72

query I rowsort
SELECT ALL - 94 + - 66 AS col1
----
-160

onlyif mysql # aggregate syntax: 
query II rowsort label-6567
SELECT 43 AS col2, - NULLIF ( + - COUNT( * ), 56 ) AS col1
----
43
1

skipif mysql # not compatible
query II rowsort label-6567
SELECT 43 AS col2, - NULLIF ( + - COUNT ( * ), 56 ) AS col1
----
43
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6568
SELECT ALL + 31 + 10 + + - CASE + 11 WHEN - + 6 THEN - COUNT( * ) WHEN + SUM( - 36 ) * - 90 THEN NULL WHEN - 17 / + 44 - + 32 / + 49 THEN - ( 48 ) END * - + CAST( NULL AS SIGNED ) + - 49 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6568
SELECT ALL + 31 + 10 + + - CASE + 11 WHEN - + 6 THEN - COUNT ( * ) WHEN + SUM ( - 36 ) * - 90 THEN NULL WHEN - 17 / + 44 - + 32 / + 49 THEN - ( 48 ) END * - + CAST ( NULL AS INTEGER ) + - 49 AS col2
----
NULL

query I rowsort
SELECT 89 + + 90
----
179

onlyif mysql # aggregate syntax: 
query I rowsort label-6570
SELECT 24 * - COUNT( + - 93 ) col2
----
-24

skipif mysql # not compatible
query I rowsort label-6570
SELECT 24 * - COUNT ( + - 93 ) col2
----
-24

query II rowsort
SELECT - 37 AS col1, - NULLIF ( + 3, - NULLIF ( - ( + 54 ), - 20 ) ) AS col2
----
-37
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-6572
SELECT + 95 DIV + 32
----
2

skipif mysql # not compatible
query I rowsort label-6572
SELECT + 95 / + 32
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-6573
SELECT DISTINCT - + ( 66 ) + + COUNT( * ) AS col2
----
-65

skipif mysql # not compatible
query I rowsort label-6573
SELECT DISTINCT - + ( 66 ) + + COUNT ( * ) AS col2
----
-65

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6574
SELECT CASE + 99 WHEN - COALESCE ( 13, + 93 * + - ( 43 ) ) + - - 45 + 52 + + COALESCE ( + 16, + + 31 ) * CAST( + + COUNT( 25 ) AS DECIMAL ) - - 30 THEN - 0 + - 40 * - COUNT( * ) END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6574
SELECT CASE + 99 WHEN - COALESCE ( 13, + 93 * + - ( 43 ) ) + - - 45 + 52 + + COALESCE ( + 16, + + 31 ) * CAST ( + + COUNT ( 25 ) AS REAL ) - - 30 THEN - 0 + - 40 * - COUNT ( * ) END col1
----
NULL

query I rowsort
SELECT ALL - 19 + 95
----
76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6576
SELECT ALL 83 + - 78 * - COALESCE ( + 82, + - CASE - 92 WHEN + COALESCE ( + 61, - + 47 + 20 + - 37 * - 86 * + 79, + - 46 * - 51 + - 70 ) * COUNT( * ) * + 83 + + 8 THEN - 20 WHEN - 14 / - 84 + + - AVG ( ALL - + 1 ) THEN NULL END, + CAST( NULL AS SIGNED ) ) * + - 41 AS col2
----
-262153

skipif mysql # not compatible
query I rowsort label-6576
SELECT ALL 83 + - 78 * - COALESCE ( + 82, + - CASE - 92 WHEN + COALESCE ( + 61, - + 47 + 20 + - 37 * - 86 * + 79, + - 46 * - 51 + - 70 ) * COUNT ( * ) * + 83 + + 8 THEN - 20 WHEN - 14 / - 84 + + - AVG ( ALL - + 1 ) THEN NULL END, + CAST ( NULL AS INTEGER ) ) * + - 41 AS col2
----
-262153

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6577
SELECT CAST( + 63 AS SIGNED ) AS col2
----
63

skipif mysql # not compatible
query I rowsort label-6577
SELECT CAST ( + 63 AS INTEGER ) AS col2
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-6578
SELECT 80 * - + COUNT( DISTINCT 29 ) + + 20
----
-60

skipif mysql # not compatible
query I rowsort label-6578
SELECT 80 * - + COUNT ( DISTINCT 29 ) + + 20
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-6579
SELECT ALL + - 3 + + MAX( + + 75 )
----
72

skipif mysql # not compatible
query I rowsort label-6579
SELECT ALL + - 3 + + MAX ( + + 75 )
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-6580
SELECT 16 * + COALESCE ( + MIN( + - 69 ), MIN( DISTINCT - + ( + 75 ) ) ) AS col0
----
-1104

skipif mysql # not compatible
query I rowsort label-6580
SELECT 16 * + COALESCE ( + MIN ( + - 69 ), MIN ( DISTINCT - + ( + 75 ) ) ) AS col0
----
-1104

query I rowsort
SELECT - 2 * + 81 AS col2
----
-162

query II rowsort
SELECT + 10 AS col2, 75
----
10
75

onlyif mysql # aggregate syntax: 
query II rowsort label-6583
SELECT ALL - + 94, COUNT( * ) AS col2
----
-94
1

skipif mysql # not compatible
query II rowsort label-6583
SELECT ALL - + 94, COUNT ( * ) AS col2
----
-94
1

query I rowsort
SELECT ALL - ( - 24 ) col2
----
24

query I rowsort
SELECT DISTINCT 47 - + 86
----
-39

query I rowsort
SELECT DISTINCT 31 - - 90 * 54 * + 19 - 74 AS col1
----
92297

query I rowsort
SELECT - ( + + ( - + 45 ) ) * - + 77 * + + 44 AS col2
----
-152460

query I rowsort
SELECT NULLIF ( 35, 2 ) + + - 6 AS col2
----
29

onlyif mysql # DIV for integer division: 
query II rowsort label-6589
SELECT ALL 9 DIV - 73 AS col2, + 38 AS col1
----
0
38

skipif mysql # not compatible
query II rowsort label-6589
SELECT ALL 9 / - 73 AS col2, + 38 AS col1
----
0
38

query I rowsort
SELECT 25 * 8 - + ( - 70 )
----
270

query I rowsort
SELECT DISTINCT 44 * + + ( 84 ) AS col0
----
3696

query I rowsort
SELECT ALL 2 * 23 AS col2
----
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6593
SELECT 70 + - - CASE - 35 WHEN + CAST( - 80 AS SIGNED ) + + + 24 THEN - COUNT( * ) - - - 23 + + - 2 WHEN - 91 THEN - - 12 ELSE + 40 END AS col0, + ( - 61 ) AS col2
----
110
-61

skipif mysql # not compatible
query II rowsort label-6593
SELECT 70 + - - CASE - 35 WHEN + CAST ( - 80 AS INTEGER ) + + + 24 THEN - COUNT ( * ) - - - 23 + + - 2 WHEN - 91 THEN - - 12 ELSE + 40 END AS col0, + ( - 61 ) AS col2
----
110
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-6594
SELECT + 86 * + COUNT( * ) + 53 AS col2
----
139

skipif mysql # not compatible
query I rowsort label-6594
SELECT + 86 * + COUNT ( * ) + 53 AS col2
----
139

onlyif mysql # DIV for integer division: 
query I rowsort label-6595
SELECT DISTINCT 84 * 84 DIV - 14
----
-504

skipif mysql # not compatible
query I rowsort label-6595
SELECT DISTINCT 84 * 84 / - 14
----
-504

query I rowsort
SELECT 8 * 63
----
504

query I rowsort
SELECT 79 * - 95 col1
----
-7505

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6598
SELECT 15 + CAST( - 66 AS SIGNED )
----
-51

skipif mysql # not compatible
query I rowsort label-6598
SELECT 15 + CAST ( - 66 AS INTEGER )
----
-51

query I rowsort
SELECT 24 + + 1 - + 44 AS col2
----
-19

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6600
SELECT SUM( - 91 ) DIV - 43
----
2

skipif mysql # not compatible
query I rowsort label-6600
SELECT SUM ( - 91 ) / - 43
----
2

query I rowsort
SELECT 34 + - + ( - + 66 ) AS col1
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-6602
SELECT ALL + - ( + 96 ) + + COUNT( * ) AS col1
----
-95

skipif mysql # not compatible
query I rowsort label-6602
SELECT ALL + - ( + 96 ) + + COUNT ( * ) AS col1
----
-95

onlyif mysql # DIV for integer division: 
query I rowsort label-6603
SELECT DISTINCT - 21 DIV + + 83 - 69 col2
----
-69

skipif mysql # not compatible
query I rowsort label-6603
SELECT DISTINCT - 21 / + + 83 - 69 col2
----
-69

query I rowsort
SELECT DISTINCT + - 13 + + + 13 AS col1
----
0

query I rowsort
SELECT DISTINCT - 82 + + 69 + 23 AS col2
----
10

query I rowsort
SELECT + NULLIF ( 32, + 91 ) + + + 89 AS col2
----
121

query I rowsort
SELECT DISTINCT - - 61 col1
----
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6608
SELECT + CAST( - CASE - MIN( DISTINCT + 72 ) WHEN ( - 31 ) THEN NULL WHEN + 28 THEN 21 / - - 12 * - - CAST( NULL AS SIGNED ) / - - 64 + + 31 END AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6608
SELECT + CAST ( - CASE - MIN ( DISTINCT + 72 ) WHEN ( - 31 ) THEN NULL WHEN + 28 THEN 21 / - - 12 * - - CAST ( NULL AS INTEGER ) / - - 64 + + 31 END AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6609
SELECT ALL + ( + - 88 ) * + - COALESCE ( COUNT( * ), + + 87, + 21 ) + 56 - 96
----
48

skipif mysql # not compatible
query I rowsort label-6609
SELECT ALL + ( + - 88 ) * + - COALESCE ( COUNT ( * ), + + 87, + 21 ) + 56 - 96
----
48

onlyif mysql # DIV for integer division: 
query II rowsort label-6610
SELECT - - 83 DIV - 7 AS col0, - 32
----
-11
-32

skipif mysql # not compatible
query II rowsort label-6610
SELECT - - 83 / - 7 AS col0, - 32
----
-11
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-6611
SELECT - COUNT( * ) * + + COUNT( * ) + - - 99 AS col2
----
98

skipif mysql # not compatible
query I rowsort label-6611
SELECT - COUNT ( * ) * + + COUNT ( * ) + - - 99 AS col2
----
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6612
SELECT ( - 62 ) * 59 + MIN( - + 64 ) + + CASE + + 19 WHEN + + 39 + + 34 THEN - CAST( NULL AS SIGNED ) / - 41 / 89 WHEN - 68 * + COUNT( * ) THEN + + ( CAST( NULL AS SIGNED ) ) ELSE NULL END + - 68 * - 77 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6612
SELECT ( - 62 ) * 59 + MIN ( - + 64 ) + + CASE + + 19 WHEN + + 39 + + 34 THEN - CAST ( NULL AS INTEGER ) / - 41 / 89 WHEN - 68 * + COUNT ( * ) THEN + + ( CAST ( NULL AS INTEGER ) ) ELSE NULL END + - 68 * - 77 AS col0
----
NULL

query I rowsort
SELECT DISTINCT + 64 * - 19
----
-1216

query I rowsort
SELECT + COALESCE ( + 91, + 46 * - 33 ) AS col0
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-6615
SELECT + - 25 + + 65 * - COUNT( * ) * - 55 col1
----
3550

skipif mysql # not compatible
query I rowsort label-6615
SELECT + - 25 + + 65 * - COUNT ( * ) * - 55 col1
----
3550

query I rowsort
SELECT DISTINCT - 20 * - 84 AS col2
----
1680

onlyif mysql # DIV for integer division: 
query II rowsort label-6617
SELECT DISTINCT 68 * 74 DIV + 49 AS col0, - 62 + + 14
----
102
-48

skipif mysql # not compatible
query II rowsort label-6617
SELECT DISTINCT 68 * 74 / + 49 AS col0, - 62 + + 14
----
102
-48

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6618
SELECT MIN( ALL + - ( CAST( NULL AS DECIMAL ) ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6618
SELECT MIN ( ALL + - ( CAST ( NULL AS REAL ) ) ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT - 21 * + 14 AS col2
----
-294

query I rowsort
SELECT ALL 67 + - 65
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-6621
SELECT SUM( 7 )
----
7

skipif mysql # not compatible
query I rowsort label-6621
SELECT SUM ( 7 )
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-6622
SELECT + NULLIF ( + COUNT( * ), 1 + + 75 ) - + 3 + - 84 AS col1
----
-86

skipif mysql # not compatible
query I rowsort label-6622
SELECT + NULLIF ( + COUNT ( * ), 1 + + 75 ) - + 3 + - 84 AS col1
----
-86

query I rowsort
SELECT + 31 * + - 15 col1
----
-465

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6624
SELECT ALL COUNT( * ) DIV + + 45 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6624
SELECT ALL COUNT ( * ) / + + 45 AS col2
----
0

query I rowsort
SELECT - COALESCE ( + - 75, + - 11 + + 48 ) AS col0
----
75

query II rowsort
SELECT 68 col0, + ( 35 ) AS col0
----
68
35

query II rowsort
SELECT - 83 / + CASE 72 WHEN - 76 + 94 THEN + 65 * - 82 + - 3 - + AVG ( ALL + 21 ) + + 33 / - 29 * + 14 END / + - 20 * 74 + - 14 AS col1, + 21 AS col1
----
NULL
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6628
SELECT + 95 - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6628
SELECT + 95 - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT + 71 - - + 35
----
106

onlyif mysql # aggregate syntax: 
query I rowsort label-6630
SELECT ALL COUNT( 0 )
----
1

skipif mysql # not compatible
query I rowsort label-6630
SELECT ALL COUNT ( 0 )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-6631
SELECT DISTINCT COALESCE ( + 1, 57 DIV NULLIF ( - 39, 77 ), - 11 )
----
1

skipif mysql # not compatible
query I rowsort label-6631
SELECT DISTINCT COALESCE ( + 1, 57 / NULLIF ( - 39, 77 ), - 11 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6632
SELECT ALL - 32 - - COALESCE ( 93, COUNT( * ), + ( MIN( - 71 ) ) * 40 - 55 * - 68 ) * 97
----
8989

skipif mysql # not compatible
query I rowsort label-6632
SELECT ALL - 32 - - COALESCE ( 93, COUNT ( * ), + ( MIN ( - 71 ) ) * 40 - 55 * - 68 ) * 97
----
8989

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6633
SELECT + 11 + 65 * - MIN( ( CAST( NULL AS SIGNED ) ) / 42 - 21 * 94 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6633
SELECT + 11 + 65 * - MIN ( ( CAST ( NULL AS INTEGER ) ) / 42 - 21 * 94 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6634
SELECT DISTINCT COUNT( ALL 71 )
----
1

skipif mysql # not compatible
query I rowsort label-6634
SELECT DISTINCT COUNT ( ALL 71 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6635
SELECT - SUM( DISTINCT - 16 ) - + 12 AS col2
----
4

skipif mysql # not compatible
query I rowsort label-6635
SELECT - SUM ( DISTINCT - 16 ) - + 12 AS col2
----
4

query I rowsort
SELECT + 5 * + 24 AS col1
----
120

query I rowsort
SELECT DISTINCT CASE + 76 WHEN + 68 * + 90 + - 83 THEN + 34 * 10 WHEN 15 / - 8 THEN 26 END AS col1
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6638
SELECT ALL NULLIF ( - 50, 67 - CAST( NULL AS DECIMAL ) ) AS col1
----
-50

skipif mysql # not compatible
query I rowsort label-6638
SELECT ALL NULLIF ( - 50, 67 - CAST ( NULL AS REAL ) ) AS col1
----
-50

query I rowsort
SELECT ALL + 97 * 90
----
8730

onlyif mysql # aggregate syntax: 
query I rowsort label-6640
SELECT - SUM( 83 ) * + ( 67 )
----
-5561

skipif mysql # not compatible
query I rowsort label-6640
SELECT - SUM ( 83 ) * + ( 67 )
----
-5561

onlyif mysql # DIV for integer division: 
query I rowsort label-6641
SELECT ALL ( 42 ) DIV - 31
----
-1

skipif mysql # not compatible
query I rowsort label-6641
SELECT ALL ( 42 ) / - 31
----
-1

query I rowsort
SELECT DISTINCT + ( - ( - 79 ) )
----
79

query I rowsort
SELECT ALL + 6 * 47 col0
----
282

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6644
SELECT CAST( 77 AS SIGNED )
----
77

skipif mysql # not compatible
query I rowsort label-6644
SELECT CAST ( 77 AS INTEGER )
----
77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6645
SELECT - ( + COUNT( * ) ) DIV + 2
----
0

skipif mysql # not compatible
query I rowsort label-6645
SELECT - ( + COUNT ( * ) ) / + 2
----
0

query I rowsort
SELECT ALL + 98 * + CASE - 18 * - 82 WHEN 33 + - 55 THEN - 47 ELSE - CASE - 45 WHEN 96 THEN 98 * + 89 ELSE NULL END END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6647
SELECT + COUNT( * ) + 71 * + 41 col2
----
2912

skipif mysql # not compatible
query I rowsort label-6647
SELECT + COUNT ( * ) + 71 * + 41 col2
----
2912

onlyif mysql # aggregate syntax: 
query I rowsort label-6648
SELECT ( - MAX( DISTINCT + ( 32 ) ) )
----
-32

skipif mysql # not compatible
query I rowsort label-6648
SELECT ( - MAX ( DISTINCT + ( 32 ) ) )
----
-32

query I rowsort
SELECT ( 9 ) AS col2
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-6650
SELECT + 73 * - 64 + - COUNT( * )
----
-4673

skipif mysql # not compatible
query I rowsort label-6650
SELECT + 73 * - 64 + - COUNT ( * )
----
-4673

query I rowsort
SELECT ALL 22 * 99 + - 12
----
2166

onlyif mysql # aggregate syntax: 
query I rowsort label-6652
SELECT + 35 * MAX( DISTINCT 66 ) - 35
----
2275

skipif mysql # not compatible
query I rowsort label-6652
SELECT + 35 * MAX ( DISTINCT 66 ) - 35
----
2275

onlyif mysql # DIV for integer division: 
query I rowsort label-6653
SELECT DISTINCT + 53 DIV - 83
----
0

skipif mysql # not compatible
query I rowsort label-6653
SELECT DISTINCT + 53 / - 83
----
0

query I rowsort
SELECT ALL + 2 * 55 + 61
----
171

query I rowsort
SELECT DISTINCT - 19 * 93 + 52
----
-1715

query I rowsort
SELECT - 55 - - 34 AS col0
----
-21

query I rowsort
SELECT DISTINCT + COALESCE ( 18, - 42, + ( 98 ) ) AS col0
----
18

onlyif mysql # DIV for integer division: 
query I rowsort label-6658
SELECT - 25 + + 41 DIV + ( + 68 )
----
-25

skipif mysql # not compatible
query I rowsort label-6658
SELECT - 25 + + 41 / + ( + 68 )
----
-25

query I rowsort
SELECT + 7 + - 59 AS col2
----
-52

query I rowsort
SELECT ALL + 59 * 63 + - COALESCE ( 43, 28 )
----
3674

query I rowsort
SELECT - 95 + + 55 AS col1
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-6662
SELECT COALESCE ( + NULLIF ( COUNT( * ), - 17 ), 26, + 85 + - 19 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6662
SELECT COALESCE ( + NULLIF ( COUNT ( * ), - 17 ), 26, + 85 + - 19 ) AS col2
----
1

query I rowsort
SELECT ALL + 72 * 66 col1
----
4752

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6664
SELECT DISTINCT 83 * 95 + - CASE - 34 WHEN ( + 24 ) THEN CAST( NULL AS SIGNED ) WHEN - 95 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6664
SELECT DISTINCT 83 * 95 + - CASE - 34 WHEN ( + 24 ) THEN CAST ( NULL AS INTEGER ) WHEN - 95 THEN NULL END
----
NULL

query I rowsort
SELECT + 47 + - 79
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-6666
SELECT ALL + 82 * + CASE + COUNT( * ) * - 69 WHEN 96 THEN NULL ELSE - 94 END - 18 col2
----
-7726

skipif mysql # not compatible
query I rowsort label-6666
SELECT ALL + 82 * + CASE + COUNT ( * ) * - 69 WHEN 96 THEN NULL ELSE - 94 END - 18 col2
----
-7726

onlyif mysql # aggregate syntax: 
query I rowsort label-6667
SELECT MAX( 68 ) col2
----
68

skipif mysql # not compatible
query I rowsort label-6667
SELECT MAX ( 68 ) col2
----
68

onlyif mysql # DIV for integer division: 
query I rowsort label-6668
SELECT + + 77 * + ( + 82 DIV - ( 94 * - 67 ) ) col0
----
0

skipif mysql # not compatible
query I rowsort label-6668
SELECT + + 77 * + ( + 82 / - ( 94 * - 67 ) ) col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6669
SELECT ALL CASE CAST( ( 92 ) AS SIGNED ) WHEN - 36 * 91 THEN NULL WHEN + 68 THEN CAST( - 16 AS SIGNED ) * - 40 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6669
SELECT ALL CASE CAST ( ( 92 ) AS INTEGER ) WHEN - 36 * 91 THEN NULL WHEN + 68 THEN CAST ( - 16 AS INTEGER ) * - 40 END AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6670
SELECT ALL - 38 DIV 50 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6670
SELECT ALL - 38 / 50 AS col1
----
0

query I rowsort
SELECT + 69 + ( - 34 + 40 ) AS col1
----
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6672
SELECT + CAST( NULL AS SIGNED ) / 13
----
NULL

skipif mysql # not compatible
query I rowsort label-6672
SELECT + CAST ( NULL AS INTEGER ) / 13
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6673
SELECT COUNT( * ) * - CASE + 10 * 32 + 54 WHEN 90 THEN 98 WHEN 18 THEN - 69 + - 83 WHEN 39 + - NULLIF ( - MAX( DISTINCT + 93 ), + 39 ) THEN NULL WHEN + 7 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6673
SELECT COUNT ( * ) * - CASE + 10 * 32 + 54 WHEN 90 THEN 98 WHEN 18 THEN - 69 + - 83 WHEN 39 + - NULLIF ( - MAX ( DISTINCT + 93 ), + 39 ) THEN NULL WHEN + 7 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6674
SELECT - 82 + CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6674
SELECT - 82 + CAST ( NULL AS REAL ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6675
SELECT 45 * COUNT( * ) AS col2
----
45

skipif mysql # not compatible
query I rowsort label-6675
SELECT 45 * COUNT ( * ) AS col2
----
45

query I rowsort
SELECT ALL + 30 * - 58 col0
----
-1740

query I rowsort
SELECT 22 + - 74 AS col0
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-6678
SELECT ALL - 86 * COUNT( - 12 ) AS col0
----
-86

skipif mysql # not compatible
query I rowsort label-6678
SELECT ALL - 86 * COUNT ( - 12 ) AS col0
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-6679
SELECT DISTINCT - COUNT( * ) + - 35 AS col2
----
-36

skipif mysql # not compatible
query I rowsort label-6679
SELECT DISTINCT - COUNT ( * ) + - 35 AS col2
----
-36

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6680
SELECT + 15 - - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-6680
SELECT + 15 - - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6681
SELECT - SUM( ALL 59 ) AS col0
----
-59

skipif mysql # not compatible
query I rowsort label-6681
SELECT - SUM ( ALL 59 ) AS col0
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-6682
SELECT DISTINCT + 62 + - COUNT( * )
----
61

skipif mysql # not compatible
query I rowsort label-6682
SELECT DISTINCT + 62 + - COUNT ( * )
----
61

query I rowsort
SELECT DISTINCT 63 + + 12
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-6684
SELECT ALL + MIN( - + 21 ) + 20
----
-1

skipif mysql # not compatible
query I rowsort label-6684
SELECT ALL + MIN ( - + 21 ) + 20
----
-1

query I rowsort
SELECT + 68 * + 61 * 7 + + ( + 73 ) AS col2
----
29109

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6686
SELECT ALL - MIN( - CAST( + CAST( 48 AS SIGNED ) AS SIGNED ) ) AS col2
----
48

skipif mysql # not compatible
query I rowsort label-6686
SELECT ALL - MIN ( - CAST ( + CAST ( 48 AS INTEGER ) AS INTEGER ) ) AS col2
----
48

query I rowsort
SELECT DISTINCT + 49 + - 16 AS col1
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-6688
SELECT ALL - COUNT( * ) + - 82
----
-83

skipif mysql # not compatible
query I rowsort label-6688
SELECT ALL - COUNT ( * ) + - 82
----
-83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6689
SELECT DISTINCT - COUNT( * ) + + COALESCE ( 34, 34, + CAST( NULL AS SIGNED ) ) DIV + 88 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-6689
SELECT DISTINCT - COUNT ( * ) + + COALESCE ( 34, 34, + CAST ( NULL AS INTEGER ) ) / + 88 AS col1
----
-1

query I rowsort
SELECT 18 * + AVG ( ALL CASE 51 WHEN - 67 THEN - 25 * 6 END )
----
NULL

query I rowsort
SELECT ALL - 31 + 30 AS col1
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6692
SELECT ALL - CASE WHEN NOT ( NULL ) < CAST( 54 AS SIGNED ) THEN NULLIF ( + 59, NULLIF ( + 72, 3 ) + 29 * 63 ) * + SUM( + 48 * 59 ) + 88 * + 89 END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6692
SELECT ALL - CASE WHEN NOT ( NULL ) < CAST ( 54 AS INTEGER ) THEN NULLIF ( + 59, NULLIF ( + 72, 3 ) + 29 * 63 ) * + SUM ( + 48 * 59 ) + 88 * + 89 END col2
----
NULL

query I rowsort
SELECT 5 * - 33
----
-165

onlyif mysql # aggregate syntax: 
query I rowsort label-6694
SELECT 8 * + + NULLIF ( + NULLIF ( + MIN( ALL - 22 ), 84 ), - COUNT( * ) + - 26 ) AS col1
----
-176

skipif mysql # not compatible
query I rowsort label-6694
SELECT 8 * + + NULLIF ( + NULLIF ( + MIN ( ALL - 22 ), 84 ), - COUNT ( * ) + - 26 ) AS col1
----
-176

onlyif mysql # DIV for integer division: 
query I rowsort label-6695
SELECT ALL - COALESCE ( - 63, 62 + 73 ) DIV + 14
----
4

skipif mysql # not compatible
query I rowsort label-6695
SELECT ALL - COALESCE ( - 63, 62 + 73 ) / + 14
----
4

onlyif mysql # DIV for integer division: 
query I rowsort label-6696
SELECT 14 DIV + - 36 * - 48
----
0

skipif mysql # not compatible
query I rowsort label-6696
SELECT 14 / + - 36 * - 48
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6697
SELECT ALL - COUNT( * ) - - 20 DIV - 46 col0
----
-1

skipif mysql # not compatible
query I rowsort label-6697
SELECT ALL - COUNT ( * ) - - 20 / - 46 col0
----
-1

query I rowsort
SELECT ALL - ( - + ( - 68 ) )
----
-68

query I rowsort
SELECT DISTINCT - 86 * - ( + 13 )
----
1118

onlyif mysql # aggregate syntax: 
query I rowsort label-6700
SELECT ALL + COALESCE ( - - 51, + 33 ) - - 58 * + MAX( - 97 )
----
-5575

skipif mysql # not compatible
query I rowsort label-6700
SELECT ALL + COALESCE ( - - 51, + 33 ) - - 58 * + MAX ( - 97 )
----
-5575

query I rowsort
SELECT 30 * + - 52 AS col2
----
-1560

query I rowsort
SELECT 91 + - ( + 75 )
----
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6703
SELECT DISTINCT + 9 * + CAST( NULL AS SIGNED ) + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-6703
SELECT DISTINCT + 9 * + CAST ( NULL AS INTEGER ) + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6704
SELECT DISTINCT + 92 * + COUNT( * ) DIV COUNT( * )
----
92

skipif mysql # not compatible
query I rowsort label-6704
SELECT DISTINCT + 92 * + COUNT ( * ) / COUNT ( * )
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-6705
SELECT - COUNT( ALL + + 2 ) * 85 col1
----
-85

skipif mysql # not compatible
query I rowsort label-6705
SELECT - COUNT ( ALL + + 2 ) * 85 col1
----
-85

query I rowsort
SELECT + 6 - ( 59 ) * - 14
----
832

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6707
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + 75
----
NULL

skipif mysql # not compatible
query I rowsort label-6707
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + 75
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6708
SELECT ALL CASE 34 WHEN 81 * SUM( - 66 ) THEN NULL ELSE 78 + + 58 END AS col1
----
136

skipif mysql # not compatible
query I rowsort label-6708
SELECT ALL CASE 34 WHEN 81 * SUM ( - 66 ) THEN NULL ELSE 78 + + 58 END AS col1
----
136

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6709
SELECT 37 DIV COUNT( * ) * 66
----
2442

skipif mysql # not compatible
query I rowsort label-6709
SELECT 37 / COUNT ( * ) * 66
----
2442

query I rowsort
SELECT - ( - 34 ) AS col2
----
34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6711
SELECT 39 + - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6711
SELECT 39 + - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6712
SELECT ALL + 66 + - 78 DIV + 18
----
62

skipif mysql # not compatible
query I rowsort label-6712
SELECT ALL + 66 + - 78 / + 18
----
62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6713
SELECT 85 + + + CAST( NULL AS SIGNED ) * ( NULLIF ( 73, + CAST( 0 AS SIGNED ) ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6713
SELECT 85 + + + CAST ( NULL AS INTEGER ) * ( NULLIF ( 73, + CAST ( 0 AS INTEGER ) ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6714
SELECT 29 - - + COUNT( * ) * + 24
----
53

skipif mysql # not compatible
query I rowsort label-6714
SELECT 29 - - + COUNT ( * ) * + 24
----
53

onlyif mysql # DIV for integer division: 
query I rowsort label-6715
SELECT 16 DIV + 26
----
0

skipif mysql # not compatible
query I rowsort label-6715
SELECT 16 / + 26
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6716
SELECT + MAX( 12 ) / - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6716
SELECT + MAX ( 12 ) / - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6717
SELECT DISTINCT + 32 + 73 + - COUNT( * )
----
104

skipif mysql # not compatible
query I rowsort label-6717
SELECT DISTINCT + 32 + 73 + - COUNT ( * )
----
104

query I rowsort
SELECT ALL 52 + - 44 + + 17 * - 70 * + 78
----
-92812

query I rowsort
SELECT - + CASE - - 64 WHEN 76 THEN + 82 WHEN 45 + + 57 THEN 42 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6720
SELECT 6 * + 21 * - COUNT( * ) + 82
----
-44

skipif mysql # not compatible
query I rowsort label-6720
SELECT 6 * + 21 * - COUNT ( * ) + 82
----
-44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6721
SELECT ALL - 5 + - CAST( + COUNT( * ) AS SIGNED ) - 4 * 0
----
-6

skipif mysql # not compatible
query I rowsort label-6721
SELECT ALL - 5 + - CAST ( + COUNT ( * ) AS INTEGER ) - 4 * 0
----
-6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6722
SELECT ALL + CAST( + 38 AS SIGNED ) * COUNT( * ) AS col0
----
38

skipif mysql # not compatible
query I rowsort label-6722
SELECT ALL + CAST ( + 38 AS INTEGER ) * COUNT ( * ) AS col0
----
38

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6723
SELECT + COUNT( * ) DIV + 47 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6723
SELECT + COUNT ( * ) / + 47 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6724
SELECT DISTINCT CAST( NULL AS SIGNED ) + - CASE - COUNT( - 34 ) WHEN 27 * - 99 - - 52 THEN NULL ELSE COUNT( * ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6724
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - CASE - COUNT ( - 34 ) WHEN 27 * - 99 - - 52 THEN NULL ELSE COUNT ( * ) END AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6725
SELECT 80 DIV - 21 + + + 97 + 68 AS col0
----
162

skipif mysql # not compatible
query I rowsort label-6725
SELECT 80 / - 21 + + + 97 + 68 AS col0
----
162

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6726
SELECT DISTINCT COUNT( DISTINCT - CAST( + + 62 AS SIGNED ) ) * + 38 col2
----
38

skipif mysql # not compatible
query I rowsort label-6726
SELECT DISTINCT COUNT ( DISTINCT - CAST ( + + 62 AS INTEGER ) ) * + 38 col2
----
38

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6727
SELECT MAX( ALL 68 ) DIV 95 + - 73 + - 72 AS col2
----
-145

skipif mysql # not compatible
query I rowsort label-6727
SELECT MAX ( ALL 68 ) / 95 + - 73 + - 72 AS col2
----
-145

onlyif mysql # aggregate syntax: 
query I rowsort label-6728
SELECT COUNT( ALL - - NULLIF ( + + 0, - 57 + 20 ) )
----
1

skipif mysql # not compatible
query I rowsort label-6728
SELECT COUNT ( ALL - - NULLIF ( + + 0, - 57 + 20 ) )
----
1

query I rowsort
SELECT ( - NULLIF ( + 12, - 66 ) ) + + 58 * - 24
----
-1404

onlyif mysql # aggregate syntax: 
query I rowsort label-6730
SELECT DISTINCT - MIN( ALL - - 52 ) * + 1 * 53 + 61 AS col2
----
-2695

skipif mysql # not compatible
query I rowsort label-6730
SELECT DISTINCT - MIN ( ALL - - 52 ) * + 1 * 53 + 61 AS col2
----
-2695

onlyif mysql # aggregate syntax: 
query I rowsort label-6731
SELECT SUM( - 27 ) AS col2
----
-27

skipif mysql # not compatible
query I rowsort label-6731
SELECT SUM ( - 27 ) AS col2
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-6732
SELECT ( - 26 ) + CASE - 57 WHEN COUNT( * ) THEN NULL WHEN 24 THEN 17 * + 88 WHEN COUNT( * ) THEN NULL ELSE NULL END + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6732
SELECT ( - 26 ) + CASE - 57 WHEN COUNT ( * ) THEN NULL WHEN 24 THEN 17 * + 88 WHEN COUNT ( * ) THEN NULL ELSE NULL END + COUNT ( * ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6733
SELECT 24 + + CAST( NULL AS SIGNED ) * 49 + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-6733
SELECT 24 + + CAST ( NULL AS INTEGER ) * 49 + COUNT ( * )
----
NULL

query I rowsort
SELECT ALL - ( 9 ) - 42 col1
----
-51

query I rowsort
SELECT ALL - CASE 79 WHEN 55 THEN NULL ELSE - 68 END col2
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-6736
SELECT ALL - MAX( ALL - 34 )
----
34

skipif mysql # not compatible
query I rowsort label-6736
SELECT ALL - MAX ( ALL - 34 )
----
34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6737
SELECT - 31 * - 45 + - 21 DIV COUNT( * )
----
1374

skipif mysql # not compatible
query I rowsort label-6737
SELECT - 31 * - 45 + - 21 / COUNT ( * )
----
1374

query I rowsort
SELECT 40 - 45 + - 24 * - 27
----
643

query I rowsort
SELECT 43 * 36 * + + 89 * 96
----
13226112

onlyif mysql # aggregate syntax: 
query I rowsort label-6740
SELECT ALL 6 * - COUNT( * ) AS col0
----
-6

skipif mysql # not compatible
query I rowsort label-6740
SELECT ALL 6 * - COUNT ( * ) AS col0
----
-6

query I rowsort
SELECT 14 + 71
----
85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6742
SELECT ALL - 1 - + CAST( - - 25 AS SIGNED ) + + 6
----
-20

skipif mysql # not compatible
query I rowsort label-6742
SELECT ALL - 1 - + CAST ( - - 25 AS INTEGER ) + + 6
----
-20

query I rowsort
SELECT - + 85 + 69 AS col0
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-6744
SELECT ALL + CASE + 28 WHEN 43 + + COUNT( * ) THEN 87 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6744
SELECT ALL + CASE + 28 WHEN 43 + + COUNT ( * ) THEN 87 END
----
NULL

query I rowsort
SELECT - - NULLIF ( + + ( - ( 65 ) ), 89 ) * 87
----
-5655

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6746
SELECT DISTINCT - + 91 DIV COALESCE ( 40, ( NULLIF ( - 32, + COUNT( * ) ) ), + ( 2 ) )
----
-2

skipif mysql # not compatible
query I rowsort label-6746
SELECT DISTINCT - + 91 / COALESCE ( 40, ( NULLIF ( - 32, + COUNT ( * ) ) ), + ( 2 ) )
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6747
SELECT - + 25 + - CAST( NULL AS SIGNED ) + + 4 + - 23
----
NULL

skipif mysql # not compatible
query I rowsort label-6747
SELECT - + 25 + - CAST ( NULL AS INTEGER ) + + 4 + - 23
----
NULL

query II rowsort
SELECT ALL - 72 AS col1, - 66
----
-72
-66

query I rowsort
SELECT DISTINCT ( ( - - 29 ) )
----
29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6750
SELECT - - 50 + CAST( + - 91 AS SIGNED ) + 15
----
-26

skipif mysql # not compatible
query I rowsort label-6750
SELECT - - 50 + CAST ( + - 91 AS INTEGER ) + 15
----
-26

query I rowsort
SELECT ALL + + 16 * + - COALESCE ( + 3, + 6 * 20 )
----
-48

query I rowsort
SELECT DISTINCT - - 87 + - - 71 + ( + 90 ) AS col1
----
248

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6753
SELECT - 97 * - 46 * - - NULLIF ( + MIN( DISTINCT 38 ), 51 ) + CASE 99 + 38 WHEN 29 + - 34 THEN + 19 * MAX( ALL CAST( + 0 AS SIGNED ) ) ELSE - 7 - 60 END
----
169489

skipif mysql # not compatible
query I rowsort label-6753
SELECT - 97 * - 46 * - - NULLIF ( + MIN ( DISTINCT 38 ), 51 ) + CASE 99 + 38 WHEN 29 + - 34 THEN + 19 * MAX ( ALL CAST ( + 0 AS INTEGER ) ) ELSE - 7 - 60 END
----
169489

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6754
SELECT + - COUNT( * ) + - + COUNT( * ) + - - 78 DIV 68 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-6754
SELECT + - COUNT ( * ) + - + COUNT ( * ) + - - 78 / 68 AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6755
SELECT ALL - COUNT( * ) + + ( 78 )
----
77

skipif mysql # not compatible
query I rowsort label-6755
SELECT ALL - COUNT ( * ) + + ( 78 )
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-6756
SELECT DISTINCT - - COUNT( * ) + - - 29 AS col2
----
30

skipif mysql # not compatible
query I rowsort label-6756
SELECT DISTINCT - - COUNT ( * ) + - - 29 AS col2
----
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6757
SELECT DISTINCT - - ( - 92 ) + + 54 - + COUNT( * ) * + 91 * - CASE + CAST( NULL AS SIGNED ) WHEN - NULLIF ( NULLIF ( 32, - MIN( - ( - 47 ) ) ), - SUM( DISTINCT 28 ) * + 17 ) / 90 + + ( + 25 ) THEN 56 / - 44 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6757
SELECT DISTINCT - - ( - 92 ) + + 54 - + COUNT ( * ) * + 91 * - CASE + CAST ( NULL AS INTEGER ) WHEN - NULLIF ( NULLIF ( 32, - MIN ( - ( - 47 ) ) ), - SUM ( DISTINCT 28 ) * + 17 ) / 90 + + ( + 25 ) THEN 56 / - 44 ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT - - 48 * + 81
----
3888

query I rowsort
SELECT ALL - + 44 * 68 * + 41 AS col2
----
-122672

query II rowsort
SELECT DISTINCT 75 AS col2, 86 * + 1 AS col2
----
75
86

onlyif mysql # DIV for integer division: 
query I rowsort label-6761
SELECT DISTINCT 91 DIV ( + 10 ) * 74 DIV - 37 AS col2
----
-18

skipif mysql # not compatible
query I rowsort label-6761
SELECT DISTINCT 91 / ( + 10 ) * 74 / - 37 AS col2
----
-18

onlyif mysql # DIV for integer division: 
query I rowsort label-6762
SELECT - 85 DIV - + 19 + + + 46 * 2 AS col2
----
96

skipif mysql # not compatible
query I rowsort label-6762
SELECT - 85 / - + 19 + + + 46 * 2 AS col2
----
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6763
SELECT DISTINCT 28 * COALESCE ( + 62, + ( + 91 ), - 82 - CASE 9 WHEN - AVG ( 55 ) + 15 THEN 98 - COALESCE ( + CAST( NULL AS SIGNED ) + 36, COUNT( * ), + 72 ) DIV - SUM( 6 * + 96 ) ELSE - 43 END * + 22, 68 * + 38, 18 ) - + 45 * 63
----
-1099

skipif mysql # not compatible
query I rowsort label-6763
SELECT DISTINCT 28 * COALESCE ( + 62, + ( + 91 ), - 82 - CASE 9 WHEN - AVG ( 55 ) + 15 THEN 98 - COALESCE ( + CAST ( NULL AS INTEGER ) + 36, COUNT ( * ), + 72 ) / - SUM ( 6 * + 96 ) ELSE - 43 END * + 22, 68 * + 38, 18 ) - + 45 * 63
----
-1099

query I rowsort
SELECT ALL + 13 * + 18 AS col0
----
234

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6765
SELECT + 48 * + 94 * - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6765
SELECT + 48 * + 94 * - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT ( - + 48 ) AS col1
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-6767
SELECT + COUNT( * ) + + - 97
----
-96

skipif mysql # not compatible
query I rowsort label-6767
SELECT + COUNT ( * ) + + - 97
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-6768
SELECT + 89 * + - MIN( + 1 ) AS col0
----
-89

skipif mysql # not compatible
query I rowsort label-6768
SELECT + 89 * + - MIN ( + 1 ) AS col0
----
-89

query I rowsort
SELECT COALESCE ( + - 95, + 31 ) * + 67 * 34 + 45
----
-216365

query I rowsort
SELECT + NULLIF ( - + 85, 24 ) AS col2
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-6771
SELECT DISTINCT + CASE - 76 WHEN + - 1 THEN - 78 * - 52 + COUNT( * ) / 7 ELSE NULL END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6771
SELECT DISTINCT + CASE - 76 WHEN + - 1 THEN - 78 * - 52 + COUNT ( * ) / 7 ELSE NULL END col2
----
NULL

query I rowsort
SELECT ALL - NULLIF ( - 73, + - 4 ) * - + 82 + - 71 * 99 AS col2
----
-13015

query I rowsort
SELECT ALL - + 64 * + 9
----
-576

onlyif mysql # aggregate syntax: 
query I rowsort label-6774
SELECT DISTINCT + - 88 * + 89 + - 72 * + 11 * 85 + ( COUNT( DISTINCT + 23 ) + COALESCE ( + MIN( ALL - 50 ), COUNT( * ) * 58 ) ) + - 23 AS col1
----
-75224

skipif mysql # not compatible
query I rowsort label-6774
SELECT DISTINCT + - 88 * + 89 + - 72 * + 11 * 85 + ( COUNT ( DISTINCT + 23 ) + COALESCE ( + MIN ( ALL - 50 ), COUNT ( * ) * 58 ) ) + - 23 AS col1
----
-75224

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6775
SELECT ALL - 10 * CAST( NULL AS DECIMAL ) + + 33 + - COALESCE ( 30, - 39 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6775
SELECT ALL - 10 * CAST ( NULL AS REAL ) + + 33 + - COALESCE ( 30, - 39 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6776
SELECT + COUNT( * ) DIV ( + + 95 )
----
0

skipif mysql # not compatible
query I rowsort label-6776
SELECT + COUNT ( * ) / ( + + 95 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6777
SELECT ALL CAST( + + COUNT( * ) AS DECIMAL ) * - + 81 + 55 - + CAST( NULL AS SIGNED ) / 28 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6777
SELECT ALL CAST ( + + COUNT ( * ) AS REAL ) * - + 81 + 55 - + CAST ( NULL AS INTEGER ) / 28 col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6778
SELECT 18 * ( + 42 ) + - ( - 72 ) * COUNT( * ) AS col0
----
828

skipif mysql # not compatible
query I rowsort label-6778
SELECT 18 * ( + 42 ) + - ( - 72 ) * COUNT ( * ) AS col0
----
828

query I rowsort
SELECT ALL - 58 + + ( + 3 ) AS col0
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-6780
SELECT + 4 - SUM( 60 ) AS col2
----
-56

skipif mysql # not compatible
query I rowsort label-6780
SELECT + 4 - SUM ( 60 ) AS col2
----
-56

query I rowsort
SELECT ALL ( + ( + 19 ) ) * + - 8 - 71
----
-223

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6782
SELECT ALL + - COUNT( * ) + - + 14 DIV - 60
----
-1

skipif mysql # not compatible
query I rowsort label-6782
SELECT ALL + - COUNT ( * ) + - + 14 / - 60
----
-1

query I rowsort
SELECT - 17 - - 60
----
43

query I rowsort
SELECT DISTINCT + - 46 * + 36 + + + 75 AS col1
----
-1581

onlyif mysql # aggregate syntax: 
query II rowsort label-6785
SELECT 99 AS col2, - COUNT( DISTINCT 97 )
----
99
-1

skipif mysql # not compatible
query II rowsort label-6785
SELECT 99 AS col2, - COUNT ( DISTINCT 97 )
----
99
-1

query I rowsort
SELECT - 91 - - - 38 * 70 * + 67 AS col2
----
-178311

onlyif mysql # aggregate syntax: 
query I rowsort label-6787
SELECT ALL - COALESCE ( - + 93, + 10 * 33 * - - 93 + COUNT( * ) ) * COUNT( * ) AS col0
----
93

skipif mysql # not compatible
query I rowsort label-6787
SELECT ALL - COALESCE ( - + 93, + 10 * 33 * - - 93 + COUNT ( * ) ) * COUNT ( * ) AS col0
----
93

query I rowsort
SELECT DISTINCT ( 87 ) AS col2
----
87

query I rowsort
SELECT - 67 - 48 AS col0
----
-115

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6790
SELECT ALL CAST( + ( + - 43 ) AS SIGNED ) AS col2, 77 AS col0
----
-43
77

skipif mysql # not compatible
query II rowsort label-6790
SELECT ALL CAST ( + ( + - 43 ) AS INTEGER ) AS col2, 77 AS col0
----
-43
77

onlyif mysql # aggregate syntax: 
query I rowsort label-6791
SELECT ALL - COUNT( * ) * - 10 * ( 32 ) AS col0
----
320

skipif mysql # not compatible
query I rowsort label-6791
SELECT ALL - COUNT ( * ) * - 10 * ( 32 ) AS col0
----
320

query I rowsort
SELECT - 55 + 93
----
38

query I rowsort
SELECT ALL - 45 * 46
----
-2070

query I rowsort
SELECT - 31 + + ( + 72 )
----
41

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6795
SELECT ALL 5 AS col1, ( - ( - CAST( - 14 AS SIGNED ) ) )
----
5
-14

skipif mysql # not compatible
query II rowsort label-6795
SELECT ALL 5 AS col1, ( - ( - CAST ( - 14 AS INTEGER ) ) )
----
5
-14

onlyif mysql # aggregate syntax: 
query II rowsort label-6796
SELECT - 25 * 54 * - COUNT( * ) AS col2, 69 * - 13 * 3 col0
----
1350
-2691

skipif mysql # not compatible
query II rowsort label-6796
SELECT - 25 * 54 * - COUNT ( * ) AS col2, 69 * - 13 * 3 col0
----
1350
-2691

onlyif mysql # DIV for integer division: 
query I rowsort label-6797
SELECT - 86 DIV + - 25 + + - 48 + + + 6 + + 43 DIV 85 DIV 42 AS col2
----
-39

skipif mysql # not compatible
query I rowsort label-6797
SELECT - 86 / + - 25 + + - 48 + + + 6 + + 43 / 85 / 42 AS col2
----
-39

query I rowsort
SELECT - 13 + + 3 AS col0
----
-10

query I rowsort
SELECT + ( ( 81 ) )
----
81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6800
SELECT SUM( - + 84 ) + NULLIF ( COALESCE ( 37, 68 - + 72 DIV + 96, + 24 + CASE - COUNT( * ) WHEN - 57 THEN NULL WHEN 50 * 28 THEN - 98 ELSE NULL END ), 81 * MIN( DISTINCT 39 * - 4 ) + + 14 )
----
-47

skipif mysql # not compatible
query I rowsort label-6800
SELECT SUM ( - + 84 ) + NULLIF ( COALESCE ( 37, 68 - + 72 / + 96, + 24 + CASE - COUNT ( * ) WHEN - 57 THEN NULL WHEN 50 * 28 THEN - 98 ELSE NULL END ), 81 * MIN ( DISTINCT 39 * - 4 ) + + 14 )
----
-47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6801
SELECT ALL + CAST( - SUM( 48 ) AS SIGNED ) DIV MIN( ALL + + ( 17 ) ) AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-6801
SELECT ALL + CAST ( - SUM ( 48 ) AS INTEGER ) / MIN ( ALL + + ( 17 ) ) AS col2
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6802
SELECT CASE - 16 WHEN - + 91 - - 80 THEN NULL WHEN + - ( + 66 ) * 5 THEN 8 * ( + CAST( 64 AS SIGNED ) ) END * 9 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6802
SELECT CASE - 16 WHEN - + 91 - - 80 THEN NULL WHEN + - ( + 66 ) * 5 THEN 8 * ( + CAST ( 64 AS INTEGER ) ) END * 9 col1
----
NULL

query I rowsort
SELECT 33 * + + 8 * - 91 AS col1
----
-24024

onlyif mysql # aggregate syntax: 
query I rowsort label-6804
SELECT ALL 77 + - 13 - COALESCE ( + + 10, 69 * + COUNT( * ), SUM( - 10 ) + + 43 ) + 61
----
115

skipif mysql # not compatible
query I rowsort label-6804
SELECT ALL 77 + - 13 - COALESCE ( + + 10, 69 * + COUNT ( * ), SUM ( - 10 ) + + 43 ) + 61
----
115

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6805
SELECT ALL + MAX( DISTINCT 43 ) DIV 84
----
0

skipif mysql # not compatible
query I rowsort label-6805
SELECT ALL + MAX ( DISTINCT 43 ) / 84
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6806
SELECT COALESCE ( - - CAST( NULL AS SIGNED ), + 69 ) + - 66 + + - ( - 31 ) + 81 AS col1
----
115

skipif mysql # not compatible
query I rowsort label-6806
SELECT COALESCE ( - - CAST ( NULL AS INTEGER ), + 69 ) + - 66 + + - ( - 31 ) + 81 AS col1
----
115

onlyif mysql # aggregate syntax: 
query I rowsort label-6807
SELECT ALL 16 * 86 * - - MIN( - + 64 ) AS col1
----
-88064

skipif mysql # not compatible
query I rowsort label-6807
SELECT ALL 16 * 86 * - - MIN ( - + 64 ) AS col1
----
-88064

query I rowsort
SELECT 12 + + + 57 AS col2
----
69

query I rowsort
SELECT ALL - + 45 + - 29 col1
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-6810
SELECT ALL - NULLIF ( + - 25, - - COUNT( * ) ) AS col2
----
25

skipif mysql # not compatible
query I rowsort label-6810
SELECT ALL - NULLIF ( + - 25, - - COUNT ( * ) ) AS col2
----
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6811
SELECT + - 14 * - CAST( NULL AS SIGNED ) - ( 23 ) - CASE AVG ( ALL + 6 ) WHEN + 66 THEN NULL WHEN + 66 THEN - ( 87 ) + + 23 ELSE NULL END * + 51 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6811
SELECT + - 14 * - CAST ( NULL AS INTEGER ) - ( 23 ) - CASE AVG ( ALL + 6 ) WHEN + 66 THEN NULL WHEN + 66 THEN - ( 87 ) + + 23 ELSE NULL END * + 51 AS col1
----
NULL

query I rowsort
SELECT ( 93 ) + - 11
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-6813
SELECT - 53 * SUM( 34 ) + + 18 + + 81
----
-1703

skipif mysql # not compatible
query I rowsort label-6813
SELECT - 53 * SUM ( 34 ) + + 18 + + 81
----
-1703

query I rowsort
SELECT DISTINCT - 20 + - + 52
----
-72

query I rowsort
SELECT ALL ( + 2 ) + - 92 * + 66 AS col0
----
-6070

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6816
SELECT + CAST( - ( - 78 ) AS SIGNED ) * - 54 + + 27
----
-4185

skipif mysql # not compatible
query I rowsort label-6816
SELECT + CAST ( - ( - 78 ) AS INTEGER ) * - 54 + + 27
----
-4185

query II rowsort
SELECT ALL + 58 AS col0, - 82 AS col0
----
58
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-6818
SELECT 60 + + + COUNT( ALL 51 ) AS col2
----
61

skipif mysql # not compatible
query I rowsort label-6818
SELECT 60 + + + COUNT ( ALL 51 ) AS col2
----
61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6819
SELECT - - CAST( 51 AS SIGNED ) AS col1
----
51

skipif mysql # not compatible
query I rowsort label-6819
SELECT - - CAST ( 51 AS INTEGER ) AS col1
----
51

query I rowsort
SELECT + 15 + - 78 AS col2
----
-63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6821
SELECT ALL - COALESCE ( + - NULLIF ( - + 86, - - 2 + + COUNT( * ) / 44 ), - 44 ) - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6821
SELECT ALL - COALESCE ( + - NULLIF ( - + 86, - - 2 + + COUNT ( * ) / 44 ), - 44 ) - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT + 24 * 31 + 69 col2
----
813

query I rowsort
SELECT 70 + + 69 AS col0
----
139

query I rowsort
SELECT 25 * - 43 * - 71
----
76325

onlyif mysql # aggregate syntax: 
query II rowsort label-6825
SELECT 84, + COUNT( ALL - CASE + ( 70 ) WHEN 26 THEN NULL WHEN + 80 * + 80 + - 27 THEN 80 + - 69 ELSE NULL END ) AS col1
----
84
0

skipif mysql # not compatible
query II rowsort label-6825
SELECT 84, + COUNT ( ALL - CASE + ( 70 ) WHEN 26 THEN NULL WHEN + 80 * + 80 + - 27 THEN 80 + - 69 ELSE NULL END ) AS col1
----
84
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6826
SELECT ALL 91 AS col0, + NULLIF ( + 30, - CAST( NULL AS SIGNED ) / 13 + 60 + CAST( + 43 AS SIGNED ) * - COUNT( * ) ) * + 3 AS col1
----
91
90

skipif mysql # not compatible
query II rowsort label-6826
SELECT ALL 91 AS col0, + NULLIF ( + 30, - CAST ( NULL AS INTEGER ) / 13 + 60 + CAST ( + 43 AS INTEGER ) * - COUNT ( * ) ) * + 3 AS col1
----
91
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6827
SELECT CAST( NULL AS SIGNED ) / - MIN( - + 72 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6827
SELECT CAST ( NULL AS INTEGER ) / - MIN ( - + 72 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6828
SELECT DISTINCT + CAST( + 56 AS SIGNED ) DIV - MIN( - 15 ) AS col0
----
3

skipif mysql # not compatible
query I rowsort label-6828
SELECT DISTINCT + CAST ( + 56 AS INTEGER ) / - MIN ( - 15 ) AS col0
----
3

query I rowsort
SELECT 24 + - + 34 * 90 * - + 98 + - - NULLIF ( + 30, + 15 )
----
299934

query I rowsort
SELECT 27 * 33 AS col1
----
891

query II rowsort
SELECT ALL 2 AS col1, + 54
----
2
54

onlyif mysql # DIV for integer division: 
query I rowsort label-6832
SELECT 34 DIV - ( + 86 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6832
SELECT 34 / - ( + 86 ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6833
SELECT NULLIF ( + 9, - 51 * + + 87 ) * - COUNT( * )
----
-9

skipif mysql # not compatible
query I rowsort label-6833
SELECT NULLIF ( + 9, - 51 * + + 87 ) * - COUNT ( * )
----
-9

query I rowsort
SELECT 49 + + ( 88 ) AS col2
----
137

onlyif mysql # aggregate syntax: 
query I rowsort label-6835
SELECT DISTINCT + COUNT( - 86 ) * 92 AS col1
----
92

skipif mysql # not compatible
query I rowsort label-6835
SELECT DISTINCT + COUNT ( - 86 ) * 92 AS col1
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-6836
SELECT ALL - 42 + + + 36 + - 97 + - COUNT( * ) AS col0
----
-104

skipif mysql # not compatible
query I rowsort label-6836
SELECT ALL - 42 + + + 36 + - 97 + - COUNT ( * ) AS col0
----
-104

query I rowsort
SELECT 39 * - + 13 * + + 3 AS col0
----
-1521

query II rowsort
SELECT + 24, 45 col1
----
24
45

query I rowsort
SELECT DISTINCT - 6 + + ( + ( ( + 4 ) ) )
----
-2

query I rowsort
SELECT 58 * - 78
----
-4524

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6841
SELECT DISTINCT - 73 + 18 + MIN( - + ( + 17 ) ) / + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6841
SELECT DISTINCT - 73 + 18 + MIN ( - + ( + 17 ) ) / + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 57 + 30 * + 37 AS col2
----
1167

onlyif mysql # aggregate syntax: 
query II rowsort label-6843
SELECT DISTINCT - 1 AS col0, - ( + - 57 ) + + - COUNT( * )
----
-1
56

skipif mysql # not compatible
query II rowsort label-6843
SELECT DISTINCT - 1 AS col0, - ( + - 57 ) + + - COUNT ( * )
----
-1
56

onlyif mysql # DIV for integer division: 
query I rowsort label-6844
SELECT 60 DIV + 84 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6844
SELECT 60 / + 84 AS col0
----
0

query II rowsort
SELECT - 6 + - 13 AS col0, 54
----
-19
54

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6846
SELECT DISTINCT + + MAX( + - 74 ) DIV MIN( - 29 ) AS col1
----
2

skipif mysql # not compatible
query I rowsort label-6846
SELECT DISTINCT + + MAX ( + - 74 ) / MIN ( - 29 ) AS col1
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6847
SELECT ALL - CAST( - 86 AS SIGNED ) + 22 * 29 * - ( 67 ) AS col2
----
-42660

skipif mysql # not compatible
query I rowsort label-6847
SELECT ALL - CAST ( - 86 AS INTEGER ) + 22 * 29 * - ( 67 ) AS col2
----
-42660

query II rowsort
SELECT + 32 AS col1, + 41
----
32
41

query I rowsort
SELECT ALL + 16 * CASE - 9 WHEN - - 84 + - 97 THEN - - 19 * + 13 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6850
SELECT + CASE 56 WHEN + CASE + - 39 WHEN + 58 - - 76 THEN 30 * - COUNT( * ) WHEN + 57 * - 9 THEN 97 * - 29 - - 86 WHEN 56 THEN 29 END THEN NULL WHEN CAST( + 65 AS SIGNED ) THEN NULL ELSE - 79 END DIV + 67
----
-1

skipif mysql # not compatible
query I rowsort label-6850
SELECT + CASE 56 WHEN + CASE + - 39 WHEN + 58 - - 76 THEN 30 * - COUNT ( * ) WHEN + 57 * - 9 THEN 97 * - 29 - - 86 WHEN 56 THEN 29 END THEN NULL WHEN CAST ( + 65 AS INTEGER ) THEN NULL ELSE - 79 END / + 67
----
-1

query I rowsort
SELECT DISTINCT + 99 * 52
----
5148

onlyif mysql # aggregate syntax: 
query I rowsort label-6852
SELECT DISTINCT - COUNT( DISTINCT + 77 ) / - NULLIF ( + + ( + + COUNT( * ) ), - - COALESCE ( COALESCE ( + COUNT( ALL + 42 ), 16, - 11 ), + 65 / - 25 ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6852
SELECT DISTINCT - COUNT ( DISTINCT + 77 ) / - NULLIF ( + + ( + + COUNT ( * ) ), - - COALESCE ( COALESCE ( + COUNT ( ALL + 42 ), 16, - 11 ), + 65 / - 25 ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6853
SELECT ALL - 25 * - COUNT( * )
----
25

skipif mysql # not compatible
query I rowsort label-6853
SELECT ALL - 25 * - COUNT ( * )
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-6854
SELECT ALL - - COUNT( * ) * - ( 81 )
----
-81

skipif mysql # not compatible
query I rowsort label-6854
SELECT ALL - - COUNT ( * ) * - ( 81 )
----
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6855
SELECT DISTINCT + - CAST( 0 AS SIGNED ) * + 94
----
0

skipif mysql # not compatible
query I rowsort label-6855
SELECT DISTINCT + - CAST ( 0 AS INTEGER ) * + 94
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6856
SELECT ALL ( + 30 ) * + + MIN( ALL + + 42 ) + - - 2 + + 71 * - 82 AS col0
----
-4560

skipif mysql # not compatible
query I rowsort label-6856
SELECT ALL ( + 30 ) * + + MIN ( ALL + + 42 ) + - - 2 + + 71 * - 82 AS col0
----
-4560

query I rowsort
SELECT + 54 * - + 47 + + 10 + - 67 AS col2
----
-2595

query I rowsort
SELECT - 79 + - 31 AS col1
----
-110

query I rowsort
SELECT + 88 * + 19
----
1672

query II rowsort
SELECT ALL + + 33 * - 71 AS col0, - 9 * - - 86 + + ( 11 )
----
-2343
-763

query I rowsort
SELECT 8 - - + 49 AS col0
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-6862
SELECT DISTINCT CASE + COUNT( * ) WHEN + - 85 / + + 32 THEN + 64 * 49 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6862
SELECT DISTINCT CASE + COUNT ( * ) WHEN + - 85 / + + 32 THEN + 64 * 49 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6863
SELECT ( - 73 ) + + - COUNT( * )
----
-74

skipif mysql # not compatible
query I rowsort label-6863
SELECT ( - 73 ) + + - COUNT ( * )
----
-74

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6864
SELECT ALL CAST( NULL AS DECIMAL ) * - 67 * 73 AS col1, ( + + 74 ) AS col0
----
NULL
74

skipif mysql # not compatible
query II rowsort label-6864
SELECT ALL CAST ( NULL AS REAL ) * - 67 * 73 AS col1, ( + + 74 ) AS col0
----
NULL
74

query I rowsort
SELECT ( - 56 ) * - + 33
----
1848

onlyif mysql # DIV for integer division: 
query I rowsort label-6866
SELECT DISTINCT ( 0 ) DIV - 18 + + ( - - 47 )
----
47

skipif mysql # not compatible
query I rowsort label-6866
SELECT DISTINCT ( 0 ) / - 18 + + ( - - 47 )
----
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6867
SELECT 8 + - AVG ( DISTINCT + CAST( NULL AS SIGNED ) ) - - + 45 * - 49 + - - 17 * COUNT( * ) - 80 * 71
----
NULL

skipif mysql # not compatible
query I rowsort label-6867
SELECT 8 + - AVG ( DISTINCT + CAST ( NULL AS INTEGER ) ) - - + 45 * - 49 + - - 17 * COUNT ( * ) - 80 * 71
----
NULL

query I rowsort
SELECT ALL 8 * - - 50
----
400

onlyif mysql # aggregate syntax: 
query II rowsort label-6869
SELECT + 13 * - 85 AS col1, COUNT( DISTINCT + 26 ) AS col0
----
-1105
1

skipif mysql # not compatible
query II rowsort label-6869
SELECT + 13 * - 85 AS col1, COUNT ( DISTINCT + 26 ) AS col0
----
-1105
1

query I rowsort
SELECT + 19 * 10 * 1
----
190

query I rowsort
SELECT ALL ( 23 ) + - 17 + + 19 * 3 col1
----
63

query I rowsort
SELECT ALL 60 + 15 + + - 69 + 86 * - 14
----
-1198

query I rowsort
SELECT ALL 72 * + - 80
----
-5760

query II rowsort
SELECT + 83 * 99 AS col1, 22 AS col1
----
8217
22

onlyif mysql # aggregate syntax: 
query I rowsort label-6875
SELECT + COUNT( * ) + + COUNT( * ) + - COUNT( * ) - 49 + + 87 * + COUNT( * ) + - 78 + 45 * + 53 * + 3
----
7116

skipif mysql # not compatible
query I rowsort label-6875
SELECT + COUNT ( * ) + + COUNT ( * ) + - COUNT ( * ) - 49 + + 87 * + COUNT ( * ) + - 78 + 45 * + 53 * + 3
----
7116

onlyif mysql # aggregate syntax: 
query I rowsort label-6876
SELECT + MIN( - 45 ) * + COUNT( * ) * + 99 + COUNT( * ) * + 74 - + 59 AS col0
----
-4440

skipif mysql # not compatible
query I rowsort label-6876
SELECT + MIN ( - 45 ) * + COUNT ( * ) * + 99 + COUNT ( * ) * + 74 - + 59 AS col0
----
-4440

query I rowsort
SELECT ALL ( + ( + + 82 ) ) + - - 74
----
156

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6878
SELECT ALL - 19 DIV + 47 * - MIN( ALL - 22 )
----
0

skipif mysql # not compatible
query I rowsort label-6878
SELECT ALL - 19 / + 47 * - MIN ( ALL - 22 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6879
SELECT CASE + 73 WHEN + + 55 THEN 79 * 27 * SUM( + - 63 ) WHEN - 14 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6879
SELECT CASE + 73 WHEN + + 55 THEN 79 * 27 * SUM ( + - 63 ) WHEN - 14 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6880
SELECT + COUNT( * ) + + 74, - 86 + 47 AS col1
----
75
-39

skipif mysql # not compatible
query II rowsort label-6880
SELECT + COUNT ( * ) + + 74, - 86 + 47 AS col1
----
75
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-6881
SELECT - ( + + 62 ) * + COUNT( * ) * - 15
----
930

skipif mysql # not compatible
query I rowsort label-6881
SELECT - ( + + 62 ) * + COUNT ( * ) * - 15
----
930

query I rowsort
SELECT + 20 + + 63 AS col2
----
83

query I rowsort
SELECT + NULLIF ( 22, - 47 ) AS col1
----
22

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6884
SELECT ALL + 34 * + CASE - 59 WHEN + 92 * - - 34 * - 40 THEN CAST( - COUNT( * ) AS DECIMAL ) + ( + 21 ) * 78 END - - 31 - + ( 96 ) * - 47
----
NULL

skipif mysql # not compatible
query I rowsort label-6884
SELECT ALL + 34 * + CASE - 59 WHEN + 92 * - - 34 * - 40 THEN CAST ( - COUNT ( * ) AS REAL ) + ( + 21 ) * 78 END - - 31 - + ( 96 ) * - 47
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6885
SELECT + 69 * + + 36 + - 12 DIV - - ( + + 60 ) + 51
----
2535

skipif mysql # not compatible
query I rowsort label-6885
SELECT + 69 * + + 36 + - 12 / - - ( + + 60 ) + 51
----
2535

onlyif mysql # aggregate syntax: 
query I rowsort label-6886
SELECT + + NULLIF ( - 78, + 70 / 94 - - COUNT( * ) + 28 - - COALESCE ( - 27, - 5 - - 85 * + MIN( DISTINCT 51 ) ) / + 83 * 7 * - 70 ) AS col2
----
-78

skipif mysql # not compatible
query I rowsort label-6886
SELECT + + NULLIF ( - 78, + 70 / 94 - - COUNT ( * ) + 28 - - COALESCE ( - 27, - 5 - - 85 * + MIN ( DISTINCT 51 ) ) / + 83 * 7 * - 70 ) AS col2
----
-78

query I rowsort
SELECT ALL - + 2 * 91 + + - 98 AS col0
----
-280

query I rowsort
SELECT ALL 86 * 75 - - 58 AS col2
----
6508

query I rowsort
SELECT - 84 + + 37 + - + 7 * + 46 AS col1
----
-369

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6890
SELECT ALL - CAST( NULL AS SIGNED ) * - SUM( + - 57 ) - + 28
----
NULL

skipif mysql # not compatible
query I rowsort label-6890
SELECT ALL - CAST ( NULL AS INTEGER ) * - SUM ( + - 57 ) - + 28
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6891
SELECT + 19 * - 24 + + CASE - 68 WHEN - 42 THEN NULL ELSE + - COUNT( * ) * 85 + + 91 DIV - 35 END + COUNT( * ) * 10
----
-533

skipif mysql # not compatible
query I rowsort label-6891
SELECT + 19 * - 24 + + CASE - 68 WHEN - 42 THEN NULL ELSE + - COUNT ( * ) * 85 + + 91 / - 35 END + COUNT ( * ) * 10
----
-533

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6892
SELECT - CAST( NULL AS SIGNED ) + 75
----
NULL

skipif mysql # not compatible
query I rowsort label-6892
SELECT - CAST ( NULL AS INTEGER ) + 75
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6893
SELECT 99 * + CAST( NULL AS SIGNED ) * - 13 * 25 / - - COUNT( * ) + - 18 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6893
SELECT 99 * + CAST ( NULL AS INTEGER ) * - 13 * 25 / - - COUNT ( * ) + - 18 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6894
SELECT - - 69 * + 84 * - 30 + COUNT( * )
----
-173879

skipif mysql # not compatible
query I rowsort label-6894
SELECT - - 69 * + 84 * - 30 + COUNT ( * )
----
-173879

query I rowsort
SELECT + - 49 + 51
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-6896
SELECT ALL - 43 DIV - 84
----
0

skipif mysql # not compatible
query I rowsort label-6896
SELECT ALL - 43 / - 84
----
0

query I rowsort
SELECT + NULLIF ( - NULLIF ( + 18, 45 + + 2 ), + ( - - 76 ) )
----
-18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6898
SELECT - NULLIF ( MAX( - 59 ), + 16 - - COUNT( * ) * + 13 * - 78 ) * + 68 + CASE 47 WHEN CASE - 26 WHEN 60 THEN ( CAST( + 89 AS SIGNED ) ) END THEN ( - 46 ) + - COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6898
SELECT - NULLIF ( MAX ( - 59 ), + 16 - - COUNT ( * ) * + 13 * - 78 ) * + 68 + CASE 47 WHEN CASE - 26 WHEN 60 THEN ( CAST ( + 89 AS INTEGER ) ) END THEN ( - 46 ) + - COUNT ( * ) ELSE NULL END
----
NULL

query I rowsort
SELECT ALL 26 * + 51
----
1326

query I rowsort
SELECT - 32 + 49
----
17

onlyif mysql # DIV for integer division: 
query I rowsort label-6901
SELECT ALL - 86 DIV + 98 * 27 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6901
SELECT ALL - 86 / + 98 * 27 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6902
SELECT - 50 DIV - NULLIF ( - 81, - 25 )
----
0

skipif mysql # not compatible
query I rowsort label-6902
SELECT - 50 / - NULLIF ( - 81, - 25 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6903
SELECT DISTINCT MIN( DISTINCT + 57 ) + + COUNT( * ) + - - COALESCE ( + + ( - CAST( NULL AS SIGNED ) ), + ( - 48 ) DIV 79, - 99 - 15 )
----
58

skipif mysql # not compatible
query I rowsort label-6903
SELECT DISTINCT MIN ( DISTINCT + 57 ) + + COUNT ( * ) + - - COALESCE ( + + ( - CAST ( NULL AS INTEGER ) ), + ( - 48 ) / 79, - 99 - 15 )
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-6904
SELECT DISTINCT - CASE SUM( ALL - + 80 ) WHEN - 61 * - ( + 69 ) + 66 * + COALESCE ( 63, + 13 ) THEN 78 * + 30 WHEN 2 THEN NULL WHEN 67 * 4 THEN NULL ELSE NULL END * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-6904
SELECT DISTINCT - CASE SUM ( ALL - + 80 ) WHEN - 61 * - ( + 69 ) + 66 * + COALESCE ( 63, + 13 ) THEN 78 * + 30 WHEN 2 THEN NULL WHEN 67 * 4 THEN NULL ELSE NULL END * COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6905
SELECT + 2 + 69 * - + NULLIF ( COALESCE ( - - 83, - - 42 DIV 50 + + 54 + COUNT( * ) ), 3 )
----
-5725

skipif mysql # not compatible
query I rowsort label-6905
SELECT + 2 + 69 * - + NULLIF ( COALESCE ( - - 83, - - 42 / 50 + + 54 + COUNT ( * ) ), 3 )
----
-5725

onlyif mysql # DIV for integer division: 
query I rowsort label-6906
SELECT - 14 DIV 52 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6906
SELECT - 14 / 52 AS col2
----
0

query I rowsort
SELECT + 78 + 95 AS col0
----
173

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6908
SELECT + 96 * - MAX( + CAST( - + 75 AS SIGNED ) ) * + - ( + ( - + 65 ) ) * COALESCE ( + 43, 71 * 81, 74 )
----
20124000

skipif mysql # not compatible
query I rowsort label-6908
SELECT + 96 * - MAX ( + CAST ( - + 75 AS INTEGER ) ) * + - ( + ( - + 65 ) ) * COALESCE ( + 43, 71 * 81, 74 )
----
20124000

onlyif mysql # aggregate syntax: 
query I rowsort label-6909
SELECT ALL CASE + 57 WHEN 44 + + 46 THEN + 96 END + + 37 + + 30 - MAX( DISTINCT 9 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6909
SELECT ALL CASE + 57 WHEN 44 + + 46 THEN + 96 END + + 37 + + 30 - MAX ( DISTINCT 9 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6910
SELECT - MAX( DISTINCT 36 )
----
-36

skipif mysql # not compatible
query I rowsort label-6910
SELECT - MAX ( DISTINCT 36 )
----
-36

onlyif mysql # aggregate syntax: 
query II rowsort label-6911
SELECT DISTINCT - 96 + + + MIN( DISTINCT 91 ) + + - 66, - COUNT( * ) AS col0
----
-71
-1

skipif mysql # not compatible
query II rowsort label-6911
SELECT DISTINCT - 96 + + + MIN ( DISTINCT 91 ) + + - 66, - COUNT ( * ) AS col0
----
-71
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6912
SELECT - NULLIF ( - 97, 52 / - ( + 85 ) + COUNT( * ) )
----
97

skipif mysql # not compatible
query I rowsort label-6912
SELECT - NULLIF ( - 97, 52 / - ( + 85 ) + COUNT ( * ) )
----
97

query I rowsort
SELECT + 60 + + 71 col0
----
131

query I rowsort
SELECT ALL + 24 + 22 AS col0
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-6915
SELECT DISTINCT 89 * + 74 * COUNT( * )
----
6586

skipif mysql # not compatible
query I rowsort label-6915
SELECT DISTINCT 89 * + 74 * COUNT ( * )
----
6586

onlyif mysql # aggregate syntax: 
query I rowsort label-6916
SELECT - 6 * NULLIF ( + MIN( - 64 ), 39 + - 43 )
----
384

skipif mysql # not compatible
query I rowsort label-6916
SELECT - 6 * NULLIF ( + MIN ( - 64 ), 39 + - 43 )
----
384

onlyif mysql # DIV for integer division: 
query I rowsort label-6917
SELECT ALL 18 DIV + 52
----
0

skipif mysql # not compatible
query I rowsort label-6917
SELECT ALL 18 / + 52
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6918
SELECT - SUM( - 43 ) - - 74
----
117

skipif mysql # not compatible
query I rowsort label-6918
SELECT - SUM ( - 43 ) - - 74
----
117

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6919
SELECT + ( - - 76 ) + + CAST( NULL AS SIGNED ) - + NULLIF ( COUNT( * ), - 3 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6919
SELECT + ( - - 76 ) + + CAST ( NULL AS INTEGER ) - + NULLIF ( COUNT ( * ), - 3 ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6920
SELECT DISTINCT 12 - + 48 DIV + 19
----
10

skipif mysql # not compatible
query I rowsort label-6920
SELECT DISTINCT 12 - + 48 / + 19
----
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6921
SELECT CAST( + + 44 AS SIGNED ) / ( + 5 ) - - 44 + + 59 + 58 * CAST( NULL AS SIGNED ) * - 55 + - 31 / 49
----
NULL

skipif mysql # not compatible
query I rowsort label-6921
SELECT CAST ( + + 44 AS INTEGER ) / ( + 5 ) - - 44 + + 59 + 58 * CAST ( NULL AS INTEGER ) * - 55 + - 31 / 49
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6922
SELECT ALL CASE MIN( - 77 ) WHEN ( + ( 51 ) ) THEN 35 WHEN + 69 THEN 42 * + 19 END / 28 - + COALESCE ( 23, - COUNT( * ) * + 49, + MAX( - 10 ) * + 44, - 96 * - 81 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6922
SELECT ALL CASE MIN ( - 77 ) WHEN ( + ( 51 ) ) THEN 35 WHEN + 69 THEN 42 * + 19 END / 28 - + COALESCE ( 23, - COUNT ( * ) * + 49, + MAX ( - 10 ) * + 44, - 96 * - 81 ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT + 21 * + 92 AS col2
----
1932

query II rowsort
SELECT ALL + 10, + ( 23 ) AS col2
----
10
23

onlyif mysql # aggregate syntax: 
query II rowsort label-6925
SELECT - 0 AS col1, 65 * COUNT( * )
----
0
65

skipif mysql # not compatible
query II rowsort label-6925
SELECT - 0 AS col1, 65 * COUNT ( * )
----
0
65

onlyif mysql # DIV for integer division: 
query I rowsort label-6926
SELECT + 12 DIV + + 88 * - 74 + - 16 + - + 66 * + 23 * + + 73 + - + 95 * - 6 AS col1
----
-110260

skipif mysql # not compatible
query I rowsort label-6926
SELECT + 12 / + + 88 * - 74 + - 16 + - + 66 * + 23 * + + 73 + - + 95 * - 6 AS col1
----
-110260

onlyif mysql # aggregate syntax: 
query I rowsort label-6927
SELECT - 95 * + - 44 * + ( - CASE + - MAX( + + 35 ) WHEN + 1 * - 2 * + COUNT( * ) THEN 83 ELSE COUNT( DISTINCT + 85 ) END ) - + 43 * COALESCE ( 93, COUNT( * ) + - 8 * 68, - 27 * 53 - 34 ) col2
----
-8179

skipif mysql # not compatible
query I rowsort label-6927
SELECT - 95 * + - 44 * + ( - CASE + - MAX ( + + 35 ) WHEN + 1 * - 2 * + COUNT ( * ) THEN 83 ELSE COUNT ( DISTINCT + 85 ) END ) - + 43 * COALESCE ( 93, COUNT ( * ) + - 8 * 68, - 27 * 53 - 34 ) col2
----
-8179

onlyif mysql # aggregate syntax: 
query II rowsort label-6928
SELECT + + 35, COUNT( * ) AS col2
----
35
1

skipif mysql # not compatible
query II rowsort label-6928
SELECT + + 35, COUNT ( * ) AS col2
----
35
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6929
SELECT DISTINCT 58 * - CAST( NULL AS SIGNED ) + ( + 98 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6929
SELECT DISTINCT 58 * - CAST ( NULL AS INTEGER ) + ( + 98 )
----
NULL

query I rowsort
SELECT - 9 * ( - - 29 ) AS col1
----
-261

onlyif mysql # aggregate syntax: 
query I rowsort label-6931
SELECT + COUNT( * ) + + COUNT( - 45 )
----
2

skipif mysql # not compatible
query I rowsort label-6931
SELECT + COUNT ( * ) + + COUNT ( - 45 )
----
2

query I rowsort
SELECT ALL - 82 * + ( - 54 )
----
4428

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6933
SELECT CAST( NULL AS DECIMAL ) + 13 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6933
SELECT CAST ( NULL AS REAL ) + 13 AS col2
----
NULL

query I rowsort
SELECT 28 * + 56 + - + 35
----
1533

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6935
SELECT ALL - CAST( - - 10 AS SIGNED ) + + 90 AS col2
----
80

skipif mysql # not compatible
query I rowsort label-6935
SELECT ALL - CAST ( - - 10 AS INTEGER ) + + 90 AS col2
----
80

query I rowsort
SELECT 27 + - 41
----
-14

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6937
SELECT DISTINCT + 37 DIV - - CAST( + + 77 AS SIGNED ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6937
SELECT DISTINCT + 37 / - - CAST ( + + 77 AS INTEGER ) AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6938
SELECT ALL + 64 + + 13 DIV + - ( - MIN( 65 ) ) AS col2, SUM( + - 52 )
----
64
-52

skipif mysql # not compatible
query II rowsort label-6938
SELECT ALL + 64 + + 13 / + - ( - MIN ( 65 ) ) AS col2, SUM ( + - 52 )
----
64
-52

query I rowsort
SELECT DISTINCT - ( + NULLIF ( + 60, + 61 ) ) + + + ( 59 ) AS col1
----
-1

query I rowsort
SELECT ALL - 92 + + 13
----
-79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6941
SELECT DISTINCT + CAST( NULL AS SIGNED ) * 76
----
NULL

skipif mysql # not compatible
query I rowsort label-6941
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * 76
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6942
SELECT 62 + + ( 10 ) * + - MIN( + + NULLIF ( - - 75, + 86 ) ) - - 66 / + - 78 * - CASE AVG ( - ( 3 ) ) * - 79 WHEN - COUNT( * ) THEN + 66 WHEN + 26 THEN NULL ELSE NULL END - + NULLIF ( + 77, SUM( DISTINCT 60 ) + 49 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6942
SELECT 62 + + ( 10 ) * + - MIN ( + + NULLIF ( - - 75, + 86 ) ) - - 66 / + - 78 * - CASE AVG ( - ( 3 ) ) * - 79 WHEN - COUNT ( * ) THEN + 66 WHEN + 26 THEN NULL ELSE NULL END - + NULLIF ( + 77, SUM ( DISTINCT 60 ) + 49 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6943
SELECT 33 + - - COUNT( * ) + + - 25
----
9

skipif mysql # not compatible
query I rowsort label-6943
SELECT 33 + - - COUNT ( * ) + + - 25
----
9

query I rowsort
SELECT ALL + 20 * - 71 * + + 13 AS col2
----
-18460

query I rowsort
SELECT 42 + + ( 50 ) AS col1
----
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6946
SELECT 52 + + 98 * - 57 * ( - NULLIF ( + 21, + 58 * - + COUNT( * ) * - 50 - ( CASE + ( 12 ) WHEN + 68 + 39 * 7 THEN AVG ( DISTINCT - ( 41 ) ) WHEN + 36 - + 24 THEN + 78 + MIN( DISTINCT - CAST( NULL AS SIGNED ) + + 62 ) * 7 END + 1 ) * 2 ) )
----
117358

skipif mysql # not compatible
query I rowsort label-6946
SELECT 52 + + 98 * - 57 * ( - NULLIF ( + 21, + 58 * - + COUNT ( * ) * - 50 - ( CASE + ( 12 ) WHEN + 68 + 39 * 7 THEN AVG ( DISTINCT - ( 41 ) ) WHEN + 36 - + 24 THEN + 78 + MIN ( DISTINCT - CAST ( NULL AS INTEGER ) + + 62 ) * 7 END + 1 ) * 2 ) )
----
117358

query I rowsort
SELECT 4 + - 41 AS col0
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-6948
SELECT - 43 + 53 * + - 73 * 43 - + - 11 * 49 * + 50 + - 14 + + - COUNT( * ) * 7
----
-139481

skipif mysql # not compatible
query I rowsort label-6948
SELECT - 43 + 53 * + - 73 * 43 - + - 11 * 49 * + 50 + - 14 + + - COUNT ( * ) * 7
----
-139481

query I rowsort
SELECT + 52 * - ( - + 31 ) AS col1
----
1612

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6950
SELECT + COUNT( * ) DIV ( 11 ) + + 47 + + 53 * 25 col2
----
1372

skipif mysql # not compatible
query I rowsort label-6950
SELECT + COUNT ( * ) / ( 11 ) + + 47 + + 53 * 25 col2
----
1372

query I rowsort
SELECT + + ( - + 76 )
----
-76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6952
SELECT ALL - + ( + CAST( + 1 AS SIGNED ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-6952
SELECT ALL - + ( + CAST ( + 1 AS INTEGER ) ) AS col0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6953
SELECT 14 + + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6953
SELECT 14 + + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6954
SELECT 73 DIV + 90, - MAX( ALL + 41 ) AS col2
----
0
-41

skipif mysql # not compatible
query II rowsort label-6954
SELECT 73 / + 90, - MAX ( ALL + 41 ) AS col2
----
0
-41

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6955
SELECT + - COUNT( * ) * + + CASE + 22 WHEN 38 THEN NULL WHEN - - 8 + + - 6 THEN - 58 * + + 40 END + + 24 * + 78 + AVG ( CAST( - ( 89 ) AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6955
SELECT + - COUNT ( * ) * + + CASE + 22 WHEN 38 THEN NULL WHEN - - 8 + + - 6 THEN - 58 * + + 40 END + + 24 * + 78 + AVG ( CAST ( - ( 89 ) AS REAL ) )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6956
SELECT ALL SUM( + - 36 ) * + COUNT( * ) DIV + - 60 * - 60 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6956
SELECT ALL SUM ( + - 36 ) * + COUNT ( * ) / + - 60 * - 60 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6957
SELECT 52 DIV + 58
----
0

skipif mysql # not compatible
query I rowsort label-6957
SELECT 52 / + 58
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6958
SELECT ALL MAX( + 66 ) + + 85 DIV 67 AS col2
----
67

skipif mysql # not compatible
query I rowsort label-6958
SELECT ALL MAX ( + 66 ) + + 85 / 67 AS col2
----
67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6959
SELECT - + 32 DIV + 67 * COUNT( * ) + 50 DIV - - 27 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6959
SELECT - + 32 / + 67 * COUNT ( * ) + 50 / - - 27 AS col2
----
1

query I rowsort
SELECT ALL - 16 * + 5 col1
----
-80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6961
SELECT DISTINCT 47 + - + CAST( 92 AS SIGNED )
----
-45

skipif mysql # not compatible
query I rowsort label-6961
SELECT DISTINCT 47 + - + CAST ( 92 AS INTEGER )
----
-45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6962
SELECT 63 * CASE + 28 WHEN + 28 THEN COALESCE ( - + 95, + + MIN( ALL - 54 ), 86 * 29, 46 DIV - ( 84 ) ) * 9 END AS col0
----
-53865

skipif mysql # not compatible
query I rowsort label-6962
SELECT 63 * CASE + 28 WHEN + 28 THEN COALESCE ( - + 95, + + MIN ( ALL - 54 ), 86 * 29, 46 / - ( 84 ) ) * 9 END AS col0
----
-53865

onlyif mysql # DIV for integer division: 
query I rowsort label-6963
SELECT ALL 91 + + - 7 + + 16 DIV - 55
----
84

skipif mysql # not compatible
query I rowsort label-6963
SELECT ALL 91 + + - 7 + + 16 / - 55
----
84

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6964
SELECT ( - COUNT( * ) ) DIV - COUNT( * ) + + 26 AS col2
----
27

skipif mysql # not compatible
query I rowsort label-6964
SELECT ( - COUNT ( * ) ) / - COUNT ( * ) + + 26 AS col2
----
27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6965
SELECT ALL CAST( 69 AS SIGNED ) + + 59 * + - 47 AS col2
----
-2704

skipif mysql # not compatible
query I rowsort label-6965
SELECT ALL CAST ( 69 AS INTEGER ) + + 59 * + - 47 AS col2
----
-2704

query I rowsort
SELECT ALL 55 + - ( - 75 ) col0
----
130

onlyif mysql # aggregate syntax: 
query I rowsort label-6967
SELECT DISTINCT - 78 - - + COUNT( * ) AS col1
----
-77

skipif mysql # not compatible
query I rowsort label-6967
SELECT DISTINCT - 78 - - + COUNT ( * ) AS col1
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-6968
SELECT DISTINCT COALESCE ( NULLIF ( - 11, ( - - AVG ( DISTINCT - 34 ) ) / 47 * + 73 * + - 64 + 53 ), - 11 - - 39 * - 89 ) * COUNT( * ) AS col2
----
-11

skipif mysql # not compatible
query I rowsort label-6968
SELECT DISTINCT COALESCE ( NULLIF ( - 11, ( - - AVG ( DISTINCT - 34 ) ) / 47 * + 73 * + - 64 + 53 ), - 11 - - 39 * - 89 ) * COUNT ( * ) AS col2
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-6969
SELECT - MIN( + 19 ) AS col1
----
-19

skipif mysql # not compatible
query I rowsort label-6969
SELECT - MIN ( + 19 ) AS col1
----
-19

onlyif mysql # aggregate syntax: 
query II rowsort label-6970
SELECT 87 + - COUNT( * ) * + ( 60 ) * 14, + COUNT( * ) + - + CASE 20 WHEN - 34 * 86 + ( - 40 ) THEN 8 * COUNT( * ) + 37 * + 97 ELSE NULL END * - 95 AS col0
----
-753
NULL

skipif mysql # not compatible
query II rowsort label-6970
SELECT 87 + - COUNT ( * ) * + ( 60 ) * 14, + COUNT ( * ) + - + CASE 20 WHEN - 34 * 86 + ( - 40 ) THEN 8 * COUNT ( * ) + 37 * + 97 ELSE NULL END * - 95 AS col0
----
-753
NULL

query I rowsort
SELECT 68 * + ( COALESCE ( - 24, - + 81 ) )
----
-1632

onlyif mysql # DIV for integer division: 
query I rowsort label-6972
SELECT ALL + 89 DIV + - 42
----
-2

skipif mysql # not compatible
query I rowsort label-6972
SELECT ALL + 89 / + - 42
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-6973
SELECT + 23 + + - 44 - 43 + 19 + + 66 * - 22 + + + 52 * + 16 * 81 - 19 - MIN( ALL - 83 )
----
65959

skipif mysql # not compatible
query I rowsort label-6973
SELECT + 23 + + - 44 - 43 + 19 + + 66 * - 22 + + + 52 * + 16 * 81 - 19 - MIN ( ALL - 83 )
----
65959

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6974
SELECT CAST( NULL AS SIGNED ) * + - 54 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6974
SELECT CAST ( NULL AS INTEGER ) * + - 54 AS col0
----
NULL

query II rowsort
SELECT - 12, + 24 AS col1
----
-12
24

query II rowsort
SELECT ( 34 ) + 69 AS col1, + 52
----
103
52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6977
SELECT 29 DIV COUNT( * ) AS col2
----
29

skipif mysql # not compatible
query I rowsort label-6977
SELECT 29 / COUNT ( * ) AS col2
----
29

query I rowsort
SELECT - 73 + - 74
----
-147

onlyif mysql # aggregate syntax: 
query I rowsort label-6979
SELECT - NULLIF ( + ( 96 ), - - 68 ) * - - 77 + + - COUNT( * ) * 61 + 43 * + 92
----
-3497

skipif mysql # not compatible
query I rowsort label-6979
SELECT - NULLIF ( + ( 96 ), - - 68 ) * - - 77 + + - COUNT ( * ) * 61 + 43 * + 92
----
-3497

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6980
SELECT ALL + - COUNT( ALL CAST( 72 AS SIGNED ) ) + 67 + - 53 * COALESCE ( NULLIF ( - + 4, 3 + + + 66 ), - 34, COUNT( * ) ) + 48 AS col1
----
326

skipif mysql # not compatible
query I rowsort label-6980
SELECT ALL + - COUNT ( ALL CAST ( 72 AS INTEGER ) ) + 67 + - 53 * COALESCE ( NULLIF ( - + 4, 3 + + + 66 ), - 34, COUNT ( * ) ) + 48 AS col1
----
326

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6981
SELECT DISTINCT CAST( NULL AS SIGNED ) * + 37 + + 4 - 28 + + 2
----
NULL

skipif mysql # not compatible
query I rowsort label-6981
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + 37 + + 4 - 28 + + 2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6982
SELECT ALL + + 82 * - 87 + + COUNT( - 29 ) + + 44 - - - 97 + + 96 + - 2 * + 25 * COUNT( * ) AS col0
----
-7140

skipif mysql # not compatible
query I rowsort label-6982
SELECT ALL + + 82 * - 87 + + COUNT ( - 29 ) + + 44 - - - 97 + + 96 + - 2 * + 25 * COUNT ( * ) AS col0
----
-7140

onlyif mysql # aggregate syntax: 
query I rowsort label-6983
SELECT ALL - COUNT( * ) * - 24 * - 66 + - COUNT( 0 ) + - 1
----
-1586

skipif mysql # not compatible
query I rowsort label-6983
SELECT ALL - COUNT ( * ) * - 24 * - 66 + - COUNT ( 0 ) + - 1
----
-1586

onlyif mysql # aggregate syntax: 
query II rowsort label-6984
SELECT ALL - 0 AS col0, - 80 + ( + COUNT( - + 65 ) )
----
0
-79

skipif mysql # not compatible
query II rowsort label-6984
SELECT ALL - 0 AS col0, - 80 + ( + COUNT ( - + 65 ) )
----
0
-79

query I rowsort
SELECT + 89 * - 27 AS col2
----
-2403

query I rowsort
SELECT ALL 58 * 67
----
3886

onlyif mysql # aggregate syntax: 
query II rowsort label-6987
SELECT + COUNT( * ) AS col1, + 10 col2
----
1
10

skipif mysql # not compatible
query II rowsort label-6987
SELECT + COUNT ( * ) AS col1, + 10 col2
----
1
10

query II rowsort
SELECT + 33, - 73 AS col1
----
33
-73

query II rowsort
SELECT DISTINCT + 95, + 83 * - 37 AS col2
----
95
-3071

onlyif mysql # aggregate syntax: 
query I rowsort label-6990
SELECT DISTINCT - 48 * + COUNT( * ) + - - 96 AS col2
----
48

skipif mysql # not compatible
query I rowsort label-6990
SELECT DISTINCT - 48 * + COUNT ( * ) + - - 96 AS col2
----
48

query II rowsort
SELECT ALL + 7, + 93 - 9 col0
----
7
84

onlyif mysql # aggregate syntax: 
query I rowsort label-6992
SELECT MIN( + + 11 ) AS col2
----
11

skipif mysql # not compatible
query I rowsort label-6992
SELECT MIN ( + + 11 ) AS col2
----
11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6993
SELECT ALL - CAST( NULL AS SIGNED ) * - + 25 - - - 13
----
NULL

skipif mysql # not compatible
query I rowsort label-6993
SELECT ALL - CAST ( NULL AS INTEGER ) * - + 25 - - - 13
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6994
SELECT ALL CAST( NULL AS SIGNED ) * - 29 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6994
SELECT ALL CAST ( NULL AS INTEGER ) * - 29 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6995
SELECT + MIN( - 93 ) AS col1
----
-93

skipif mysql # not compatible
query I rowsort label-6995
SELECT + MIN ( - 93 ) AS col1
----
-93

query I rowsort
SELECT - 7 + 28 AS col0
----
21

query I rowsort
SELECT + 83 + + 37 col2
----
120

query I rowsort
SELECT + 89 - - - 12
----
77

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6999
SELECT ALL 95 DIV - CAST( - - 21 AS SIGNED )
----
-4

skipif mysql # not compatible
query I rowsort label-6999
SELECT ALL 95 / - CAST ( - - 21 AS INTEGER )
----
-4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7000
SELECT + 24 * + 59 * + + 0 + - 7 + - 47 * + CASE + + 10 WHEN - 89 THEN + COUNT( * ) + + CASE - 29 WHEN - MIN( 72 ) * - 91 THEN - 11 - 20 * 41 ELSE CASE 77 WHEN + COUNT( * ) * 43 THEN 97 / CAST( 39 * CASE 66 WHEN 3 THEN 91 + 82 * + 27 END AS SIGNED ) END * - 79 END - 79 * + 51 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7000
SELECT + 24 * + 59 * + + 0 + - 7 + - 47 * + CASE + + 10 WHEN - 89 THEN + COUNT ( * ) + + CASE - 29 WHEN - MIN ( 72 ) * - 91 THEN - 11 - 20 * 41 ELSE CASE 77 WHEN + COUNT ( * ) * 43 THEN 97 / CAST ( 39 * CASE 66 WHEN 3 THEN 91 + 82 * + 27 END AS INTEGER ) END * - 79 END - 79 * + 51 ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7001
SELECT 79, + COUNT( - 32 ) * 50 AS col1
----
79
50

skipif mysql # not compatible
query II rowsort label-7001
SELECT 79, + COUNT ( - 32 ) * 50 AS col1
----
79
50

query I rowsort
SELECT ALL + 2 * + + 95 AS col2
----
190

onlyif mysql # aggregate syntax: 
query II rowsort label-7003
SELECT DISTINCT 26, MIN( 45 ) AS col1
----
26
45

skipif mysql # not compatible
query II rowsort label-7003
SELECT DISTINCT 26, MIN ( 45 ) AS col1
----
26
45

query I rowsort
SELECT + 6 + NULLIF ( - 83, 45 + 70 )
----
-77

query II rowsort
SELECT ALL 34 AS col1, - 33 AS col0
----
34
-33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7006
SELECT ALL + CAST( NULL AS SIGNED ) * - 5 * + 23 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7006
SELECT ALL + CAST ( NULL AS INTEGER ) * - 5 * + 23 AS col0
----
NULL

query I rowsort
SELECT + 74 * - 54
----
-3996

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7008
SELECT + 78 + - 97 + COUNT( * ) + 74 / + + 17 * - MAX( - 61 ) / + - CAST( + 31 AS SIGNED ) - - CASE - - 44 WHEN 75 THEN + CASE 2 WHEN + ( 83 ) + + MAX( 88 ) THEN 7 * 76 ELSE NULL END + ( + 9 ) END * 41 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7008
SELECT + 78 + - 97 + COUNT ( * ) + 74 / + + 17 * - MAX ( - 61 ) / + - CAST ( + 31 AS INTEGER ) - - CASE - - 44 WHEN 75 THEN + CASE 2 WHEN + ( 83 ) + + MAX ( 88 ) THEN 7 * 76 ELSE NULL END + ( + 9 ) END * 41 AS col2
----
NULL

query II rowsort
SELECT ALL - 54, 39 AS col0
----
-54
39

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7010
SELECT CASE + 41 WHEN + - 14 * - 0 + CAST( + 62 AS DECIMAL ) / - + ( - + 52 ) THEN + 51 * + + ( - COUNT( * ) ) / 64 + 12 * - 47 ELSE + CASE WHEN NOT COUNT( * ) <> 33 THEN NULL ELSE + 17 END END
----
17

skipif mysql # not compatible
query I rowsort label-7010
SELECT CASE + 41 WHEN + - 14 * - 0 + CAST ( + 62 AS REAL ) / - + ( - + 52 ) THEN + 51 * + + ( - COUNT ( * ) ) / 64 + 12 * - 47 ELSE + CASE WHEN NOT COUNT ( * ) <> 33 THEN NULL ELSE + 17 END END
----
17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7011
SELECT ALL + 60 + COUNT( * ) * - CASE + - 40 WHEN + 68 / - CAST( NULL AS SIGNED ) * - 22 + - 47 + MAX( ALL - 71 ) + - 77 * + ( + 81 ) THEN NULL WHEN + 27 THEN - 89 WHEN CAST( + ( COUNT( * ) ) AS SIGNED ) THEN 29 * - ( - 49 * 73 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7011
SELECT ALL + 60 + COUNT ( * ) * - CASE + - 40 WHEN + 68 / - CAST ( NULL AS INTEGER ) * - 22 + - 47 + MAX ( ALL - 71 ) + - 77 * + ( + 81 ) THEN NULL WHEN + 27 THEN - 89 WHEN CAST ( + ( COUNT ( * ) ) AS INTEGER ) THEN 29 * - ( - 49 * 73 ) ELSE NULL END
----
NULL

query II rowsort
SELECT DISTINCT + 18 AS col2, 67
----
18
67

query II rowsort
SELECT ALL 80, 89 * ( + 16 ) AS col0
----
80
1424

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7014
SELECT - - 21 + + COUNT( * ) DIV 59 col2
----
21

skipif mysql # not compatible
query I rowsort label-7014
SELECT - - 21 + + COUNT ( * ) / 59 col2
----
21

query I rowsort
SELECT ALL ( + 57 ) AS col0
----
57

query I rowsort
SELECT DISTINCT - 58 + + ( - 41 )
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-7017
SELECT ALL + + SUM( + 94 ) * - 50 AS col2
----
-4700

skipif mysql # not compatible
query I rowsort label-7017
SELECT ALL + + SUM ( + 94 ) * - 50 AS col2
----
-4700

onlyif mysql # aggregate syntax: 
query I rowsort label-7018
SELECT ALL + 25 + ( 84 ) * - - SUM( - 26 ) AS col0
----
-2159

skipif mysql # not compatible
query I rowsort label-7018
SELECT ALL + 25 + ( 84 ) * - - SUM ( - 26 ) AS col0
----
-2159

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7019
SELECT + 63 DIV + + 50 + MIN( DISTINCT 8 ) + + COALESCE ( + ( + + 64 ), - - 36 ) AS col0
----
73

skipif mysql # not compatible
query I rowsort label-7019
SELECT + 63 / + + 50 + MIN ( DISTINCT 8 ) + + COALESCE ( + ( + + 64 ), - - 36 ) AS col0
----
73

query II rowsort
SELECT + + 59 col0, - 55 col0
----
59
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-7021
SELECT - COUNT( * ) + - + 14 * - + 43 AS col2
----
601

skipif mysql # not compatible
query I rowsort label-7021
SELECT - COUNT ( * ) + - + 14 * - + 43 AS col2
----
601

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7022
SELECT - - ( CAST( NULL AS SIGNED ) ) * + - 3 + 2 - - 62 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7022
SELECT - - ( CAST ( NULL AS INTEGER ) ) * + - 3 + 2 - - 62 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7023
SELECT - - COUNT( - - CAST( NULL AS SIGNED ) ) * + - 64
----
0

skipif mysql # not compatible
query I rowsort label-7023
SELECT - - COUNT ( - - CAST ( NULL AS INTEGER ) ) * + - 64
----
0

query I rowsort
SELECT + + NULLIF ( 82, 65 - 69 / 94 ) AS col2
----
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7025
SELECT ( - + CAST( + - 90 AS SIGNED ) ) AS col1
----
90

skipif mysql # not compatible
query I rowsort label-7025
SELECT ( - + CAST ( + - 90 AS INTEGER ) ) AS col1
----
90

onlyif mysql # aggregate syntax: 
query II rowsort label-7026
SELECT ALL + 69 * - COUNT( * ) AS col0, - 16 + + 80 AS col1
----
-69
64

skipif mysql # not compatible
query II rowsort label-7026
SELECT ALL + 69 * - COUNT ( * ) AS col0, - 16 + + 80 AS col1
----
-69
64

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7027
SELECT - COUNT( * ) DIV - + 42 DIV + 81 DIV NULLIF ( + 34, - + 55 ) + ( - - 64 ) + + 47 + - ( + - COUNT( ALL - 3 ) ) AS col0
----
112

skipif mysql # not compatible
query I rowsort label-7027
SELECT - COUNT ( * ) / - + 42 / + 81 / NULLIF ( + 34, - + 55 ) + ( - - 64 ) + + 47 + - ( + - COUNT ( ALL - 3 ) ) AS col0
----
112

query I rowsort
SELECT DISTINCT + ( - - 26 )
----
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7029
SELECT + COALESCE ( + COUNT( * ), + 45 * - 82 + + 30, COUNT( * ) * 66 ), 59 + + CAST( NULL AS SIGNED ) AS col0
----
1
NULL

skipif mysql # not compatible
query II rowsort label-7029
SELECT + COALESCE ( + COUNT ( * ), + 45 * - 82 + + 30, COUNT ( * ) * 66 ), 59 + + CAST ( NULL AS INTEGER ) AS col0
----
1
NULL

query I rowsort
SELECT COALESCE ( 40, - 97 * + - 41 - 67 * + 60 - 90 ) AS col1
----
40

query I rowsort
SELECT + 66 + - 93 AS col2
----
-27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7032
SELECT - 77 * + - CAST( + 66 AS SIGNED ) * + 42 AS col2
----
213444

skipif mysql # not compatible
query I rowsort label-7032
SELECT - 77 * + - CAST ( + 66 AS INTEGER ) * + 42 AS col2
----
213444

onlyif mysql # aggregate syntax: 
query II rowsort label-7033
SELECT DISTINCT - 16 * - 99 AS col1, ( - + NULLIF ( - MAX( - NULLIF ( + 38, - 4 / + 67 + + - 55 ) ), + 1 ) )
----
1584
-38

skipif mysql # not compatible
query II rowsort label-7033
SELECT DISTINCT - 16 * - 99 AS col1, ( - + NULLIF ( - MAX ( - NULLIF ( + 38, - 4 / + 67 + + - 55 ) ), + 1 ) )
----
1584
-38

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7034
SELECT ALL + COALESCE ( - 64, - 94 DIV - ( + 44 ) + 67 + - COUNT( * ) - + + 36 ) AS col1
----
-64

skipif mysql # not compatible
query I rowsort label-7034
SELECT ALL + COALESCE ( - 64, - 94 / - ( + 44 ) + 67 + - COUNT ( * ) - + + 36 ) AS col1
----
-64

query I rowsort
SELECT ALL - 7 * + - 98 col1
----
686

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7036
SELECT DISTINCT CAST( + MAX( ALL + 55 ) AS SIGNED )
----
55

skipif mysql # not compatible
query I rowsort label-7036
SELECT DISTINCT CAST ( + MAX ( ALL + 55 ) AS INTEGER )
----
55

query I rowsort
SELECT DISTINCT - 89 * + 70
----
-6230

query I rowsort
SELECT + 82 * - 56
----
-4592

onlyif mysql # aggregate syntax: 
query I rowsort label-7039
SELECT ALL ( 11 ) * 30 + - - 56 + + + CASE - 99 WHEN 72 + ( + COUNT( * ) ) * - ( 96 ) THEN NULL WHEN + + COUNT( * ) - + 22 THEN NULL ELSE 67 END * + 36 AS col2
----
2798

skipif mysql # not compatible
query I rowsort label-7039
SELECT ALL ( 11 ) * 30 + - - 56 + + + CASE - 99 WHEN 72 + ( + COUNT ( * ) ) * - ( 96 ) THEN NULL WHEN + + COUNT ( * ) - + 22 THEN NULL ELSE 67 END * + 36 AS col2
----
2798

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7040
SELECT ( - CAST( NULL AS SIGNED ) ) * - CAST( NULL AS SIGNED ) / 84 * - 70 - - 78
----
NULL

skipif mysql # not compatible
query I rowsort label-7040
SELECT ( - CAST ( NULL AS INTEGER ) ) * - CAST ( NULL AS INTEGER ) / 84 * - 70 - - 78
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7041
SELECT MAX( - 3 )
----
-3

skipif mysql # not compatible
query I rowsort label-7041
SELECT MAX ( - 3 )
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7042
SELECT + MAX( DISTINCT + - CAST( CAST( + 51 AS SIGNED ) AS SIGNED ) ) AS col2
----
-51

skipif mysql # not compatible
query I rowsort label-7042
SELECT + MAX ( DISTINCT + - CAST ( CAST ( + 51 AS INTEGER ) AS INTEGER ) ) AS col2
----
-51

query II rowsort
SELECT + - 69 * 45 + - 91, 17 AS col0
----
-3196
17

onlyif mysql # aggregate syntax: 
query I rowsort label-7044
SELECT + + 11 * 72 + + + COUNT( ALL + 42 )
----
793

skipif mysql # not compatible
query I rowsort label-7044
SELECT + + 11 * 72 + + + COUNT ( ALL + 42 )
----
793

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7045
SELECT - CAST( - 72 AS SIGNED ) AS col1, ( - 95 )
----
72
-95

skipif mysql # not compatible
query II rowsort label-7045
SELECT - CAST ( - 72 AS INTEGER ) AS col1, ( - 95 )
----
72
-95

query I rowsort
SELECT + 21 + - + 43
----
-22

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7047
SELECT ALL 91 + CAST( + + 30 AS SIGNED ), 79 + - - 15 AS col1
----
121
94

skipif mysql # not compatible
query II rowsort label-7047
SELECT ALL 91 + CAST ( + + 30 AS INTEGER ), 79 + - - 15 AS col1
----
121
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7048
SELECT - CAST( - 74 AS SIGNED ) + 88 * + - 36 AS col1
----
-3094

skipif mysql # not compatible
query I rowsort label-7048
SELECT - CAST ( - 74 AS INTEGER ) + 88 * + - 36 AS col1
----
-3094

query I rowsort
SELECT + 71 + - 35 + - 78 * - - 68 AS col2
----
-5268

onlyif mysql # aggregate syntax: 
query I rowsort label-7050
SELECT DISTINCT - - SUM( 21 ) - - 92 - + 45
----
68

skipif mysql # not compatible
query I rowsort label-7050
SELECT DISTINCT - - SUM ( 21 ) - - 92 - + 45
----
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7051
SELECT + NULLIF ( + + 44, + - 44 * 43 + - 24 / + CAST( 41 AS SIGNED ) + + + 94 ) * 75 col2
----
3300

skipif mysql # not compatible
query I rowsort label-7051
SELECT + NULLIF ( + + 44, + - 44 * 43 + - 24 / + CAST ( 41 AS INTEGER ) + + + 94 ) * 75 col2
----
3300

query I rowsort
SELECT DISTINCT - 92 * - 38 AS col0
----
3496

query I rowsort
SELECT ALL - ( + 46 )
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-7054
SELECT ALL - MAX( ALL + + ( - - 60 ) )
----
-60

skipif mysql # not compatible
query I rowsort label-7054
SELECT ALL - MAX ( ALL + + ( - - 60 ) )
----
-60

query I rowsort
SELECT 65 * - 4 * + 40 - + + 67 col1
----
-10467

onlyif mysql # DIV for integer division: 
query I rowsort label-7056
SELECT 68 DIV + 38 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-7056
SELECT 68 / + 38 AS col1
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-7057
SELECT DISTINCT - 92 * + - MAX( + 32 ) col0, + COUNT( * )
----
2944
1

skipif mysql # not compatible
query II rowsort label-7057
SELECT DISTINCT - 92 * + - MAX ( + 32 ) col0, + COUNT ( * )
----
2944
1

query I rowsort
SELECT ALL - 74 * - + 94 AS col0
----
6956

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7059
SELECT 52 * - CAST( - ( 77 ) AS SIGNED )
----
4004

skipif mysql # not compatible
query I rowsort label-7059
SELECT 52 * - CAST ( - ( 77 ) AS INTEGER )
----
4004

query II rowsort
SELECT + 50 AS col2, ( ( - 29 ) ) * + 95
----
50
-2755

onlyif mysql # DIV for integer division: 
query I rowsort label-7061
SELECT 58 DIV - 69 * - - 16 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7061
SELECT 58 / - 69 * - - 16 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7062
SELECT DISTINCT CASE - - COUNT( * ) WHEN - CAST( NULL AS SIGNED ) THEN NULL ELSE ( + + 8 ) END * + - COUNT( * )
----
-8

skipif mysql # not compatible
query I rowsort label-7062
SELECT DISTINCT CASE - - COUNT ( * ) WHEN - CAST ( NULL AS INTEGER ) THEN NULL ELSE ( + + 8 ) END * + - COUNT ( * )
----
-8

query I rowsort
SELECT 68 - 49 * + 91
----
-4391

query I rowsort
SELECT ALL - 29 * + 85 AS col2
----
-2465

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7065
SELECT DISTINCT - 20 * + + ( - COALESCE ( 95, - 92 + + 20 + ( + 58 ) + + - 51, 62 DIV - ( - COUNT( - + 25 ) ), 54 * 74 ) ) AS col1
----
1900

skipif mysql # not compatible
query I rowsort label-7065
SELECT DISTINCT - 20 * + + ( - COALESCE ( 95, - 92 + + 20 + ( + 58 ) + + - 51, 62 / - ( - COUNT ( - + 25 ) ), 54 * 74 ) ) AS col1
----
1900

query I rowsort
SELECT ALL - ( - - 16 ) col2
----
-16

query I rowsort
SELECT DISTINCT + 57 + - + 65
----
-8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7068
SELECT 67 + + - COALESCE ( + CAST( - - 75 AS SIGNED ), + 56 ) AS col1
----
-8

skipif mysql # not compatible
query I rowsort label-7068
SELECT 67 + + - COALESCE ( + CAST ( - - 75 AS INTEGER ), + 56 ) AS col1
----
-8

query I rowsort
SELECT ALL - ( - 78 ) col0
----
78

onlyif mysql # DIV for integer division: 
query II rowsort label-7070
SELECT - - 35 AS col0, - 44 DIV 33
----
35
-1

skipif mysql # not compatible
query II rowsort label-7070
SELECT - - 35 AS col0, - 44 / 33
----
35
-1

query I rowsort
SELECT + CASE NULLIF ( 26, 23 ) WHEN + 76 THEN 89 WHEN + 49 * - 39 * + 56 * + + 80 - + - 61 THEN NULL ELSE NULL END + + 26
----
NULL

query I rowsort
SELECT DISTINCT NULLIF ( - 18, + 82 ) col0
----
-18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7073
SELECT ALL ( 43 ) + COUNT( 31 ) + - - CAST( NULL AS SIGNED ) / + 26 + CAST( - 55 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7073
SELECT ALL ( 43 ) + COUNT ( 31 ) + - - CAST ( NULL AS INTEGER ) / + 26 + CAST ( - 55 AS INTEGER )
----
NULL

query II rowsort
SELECT DISTINCT 8 col0, + 15 AS col1
----
8
15

query I rowsort
SELECT DISTINCT - 32 + - 3 * + - 63 AS col1
----
157

onlyif mysql # aggregate syntax: 
query I rowsort label-7076
SELECT ALL + - CASE - 69 WHEN + CASE 65 WHEN - + COUNT( * ) THEN + NULLIF ( - 80, - - 98 ) WHEN 34 THEN NULL ELSE NULL END + 47 THEN - 58 + - 10 + 93 + + 82 * + 15 ELSE NULL END + 33 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7076
SELECT ALL + - CASE - 69 WHEN + CASE 65 WHEN - + COUNT ( * ) THEN + NULLIF ( - 80, - - 98 ) WHEN 34 THEN NULL ELSE NULL END + 47 THEN - 58 + - 10 + 93 + + 82 * + 15 ELSE NULL END + 33 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7077
SELECT ALL - + CAST( NULL AS SIGNED ) + + - 98 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7077
SELECT ALL - + CAST ( NULL AS INTEGER ) + + - 98 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7078
SELECT 6 * COUNT( * ) AS col2
----
6

skipif mysql # not compatible
query I rowsort label-7078
SELECT 6 * COUNT ( * ) AS col2
----
6

onlyif mysql # aggregate syntax: 
query II rowsort label-7079
SELECT - COALESCE ( + ( + - COUNT( * ) ), + 87 ) AS col1, + 42 + - + 47 col1
----
1
-5

skipif mysql # not compatible
query II rowsort label-7079
SELECT - COALESCE ( + ( + - COUNT ( * ) ), + 87 ) AS col1, + 42 + - + 47 col1
----
1
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7080
SELECT + 58 + SUM( 99 ) * + - 42, CAST( - CASE 20 WHEN - 85 * + 27 * - + 4 THEN COUNT( DISTINCT + 1 ) WHEN - COALESCE ( 5, + ( 67 ) / NULLIF ( 88 * AVG ( ALL - 8 ), 64 ) ) * 84 THEN NULL ELSE ( CAST( COUNT( * ) AS SIGNED ) ) / + COUNT( * ) END AS SIGNED ) AS col2
----
-4100
-1

skipif mysql # not compatible
query II rowsort label-7080
SELECT + 58 + SUM ( 99 ) * + - 42, CAST ( - CASE 20 WHEN - 85 * + 27 * - + 4 THEN COUNT ( DISTINCT + 1 ) WHEN - COALESCE ( 5, + ( 67 ) / NULLIF ( 88 * AVG ( ALL - 8 ), 64 ) ) * 84 THEN NULL ELSE ( CAST ( COUNT ( * ) AS INTEGER ) ) / + COUNT ( * ) END AS INTEGER ) AS col2
----
-4100
-1

query I rowsort
SELECT ALL + ( + 47 ) AS col0
----
47

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7082
SELECT COUNT( * ) col0, 86 DIV - 61
----
1
-1

skipif mysql # not compatible
query II rowsort label-7082
SELECT COUNT ( * ) col0, 86 / - 61
----
1
-1

query I rowsort
SELECT - 41 * + 18 * + ( + + 13 ) * + 68 AS col1
----
-652392

onlyif mysql # aggregate syntax: 
query I rowsort label-7084
SELECT 42 + COUNT( * ) + + + 18 AS col1
----
61

skipif mysql # not compatible
query I rowsort label-7084
SELECT 42 + COUNT ( * ) + + + 18 AS col1
----
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7085
SELECT ALL 25 - - + 33 + + - COUNT( * ), + CAST( + - 22 AS SIGNED ) AS col1
----
57
-22

skipif mysql # not compatible
query II rowsort label-7085
SELECT ALL 25 - - + 33 + + - COUNT ( * ), + CAST ( + - 22 AS INTEGER ) AS col1
----
57
-22

query II rowsort
SELECT - COALESCE ( + 34, 6 * 7, - 26, - 59 + - ( 57 ) ), 4 * NULLIF ( - 46, - + 28 ) * - 67 * 47 + 25 AS col0
----
-34
579441

query I rowsort
SELECT ALL - 81 * 4 AS col1
----
-324

onlyif mysql # aggregate syntax: 
query I rowsort label-7088
SELECT - SUM( ALL - NULLIF ( - ( + 2 ), + 47 ) ) AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-7088
SELECT - SUM ( ALL - NULLIF ( - ( + 2 ), + 47 ) ) AS col1
----
-2

query I rowsort
SELECT + 6 * + 93 - - 91
----
649

onlyif mysql # aggregate syntax: 
query I rowsort label-7090
SELECT SUM( 51 ) * 73 AS col0
----
3723

skipif mysql # not compatible
query I rowsort label-7090
SELECT SUM ( 51 ) * 73 AS col0
----
3723

query I rowsort
SELECT ALL 79 * 84
----
6636

query I rowsort
SELECT 42 + - + 72 * + + 88
----
-6294

query I rowsort
SELECT + 6 * - + ( 79 ) + + 16 * + - 94 * + 2
----
-3482

onlyif mysql # aggregate syntax: 
query I rowsort label-7094
SELECT COUNT( DISTINCT - 25 )
----
1

skipif mysql # not compatible
query I rowsort label-7094
SELECT COUNT ( DISTINCT - 25 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7095
SELECT ALL NULLIF ( + 59, ( + CASE + MIN( + - 40 ) WHEN 4 THEN - 73 * 25 + - + 31 END ) * - MIN( - 24 ) ) * + 20
----
1180

skipif mysql # not compatible
query I rowsort label-7095
SELECT ALL NULLIF ( + 59, ( + CASE + MIN ( + - 40 ) WHEN 4 THEN - 73 * 25 + - + 31 END ) * - MIN ( - 24 ) ) * + 20
----
1180

onlyif mysql # aggregate syntax: 
query I rowsort label-7096
SELECT 87 + + 23 + + 4 + + COUNT( * ) * 87
----
201

skipif mysql # not compatible
query I rowsort label-7096
SELECT 87 + + 23 + + 4 + + COUNT ( * ) * 87
----
201

query I rowsort
SELECT ALL 12 + - COALESCE ( + 13, 71 ) * - 28 * - - 34 AS col1
----
12388

onlyif mysql # aggregate syntax: 
query I rowsort label-7098
SELECT + MIN( - - 36 )
----
36

skipif mysql # not compatible
query I rowsort label-7098
SELECT + MIN ( - - 36 )
----
36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7099
SELECT CAST( NULL AS SIGNED ) * 10 + 59 * - 47 * 34
----
NULL

skipif mysql # not compatible
query I rowsort label-7099
SELECT CAST ( NULL AS INTEGER ) * 10 + 59 * - 47 * 34
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7100
SELECT ( - - ( + 85 ) ) * - + 63 + COUNT( 38 ) + 97 * - 81 AS col1
----
-13211

skipif mysql # not compatible
query I rowsort label-7100
SELECT ( - - ( + 85 ) ) * - + 63 + COUNT ( 38 ) + 97 * - 81 AS col1
----
-13211

query I rowsort
SELECT 86 * NULLIF ( + 95, 52 + + + 91 - + 44 * 69 )
----
8170

query I rowsort
SELECT 22 + 16 + - 50 col0
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-7103
SELECT ALL - MAX( ALL + 91 ) + + - 36
----
-127

skipif mysql # not compatible
query I rowsort label-7103
SELECT ALL - MAX ( ALL + 91 ) + + - 36
----
-127

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7104
SELECT ALL 28 + + 69 DIV + 46 - SUM( ALL + + 76 ) AS col0
----
-47

skipif mysql # not compatible
query I rowsort label-7104
SELECT ALL 28 + + 69 / + 46 - SUM ( ALL + + 76 ) AS col0
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-7105
SELECT - COUNT( ALL + 37 ) * + 48 * + 69 + COUNT( * ) + + 85
----
-3226

skipif mysql # not compatible
query I rowsort label-7105
SELECT - COUNT ( ALL + 37 ) * + 48 * + 69 + COUNT ( * ) + + 85
----
-3226

onlyif mysql # aggregate syntax: 
query I rowsort label-7106
SELECT ALL - + 65 + + 74 * - SUM( ALL - 25 ) AS col1
----
1785

skipif mysql # not compatible
query I rowsort label-7106
SELECT ALL - + 65 + + 74 * - SUM ( ALL - 25 ) AS col1
----
1785

onlyif mysql # aggregate syntax: 
query I rowsort label-7107
SELECT MAX( DISTINCT + - ( + - 34 ) ) AS col2
----
34

skipif mysql # not compatible
query I rowsort label-7107
SELECT MAX ( DISTINCT + - ( + - 34 ) ) AS col2
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-7108
SELECT ALL + 28 - 68 * - + COALESCE ( + 3, + COUNT( * ) ) AS col0
----
232

skipif mysql # not compatible
query I rowsort label-7108
SELECT ALL + 28 - 68 * - + COALESCE ( + 3, + COUNT ( * ) ) AS col0
----
232

query I rowsort
SELECT - ( - ( - 78 ) ) AS col1
----
-78

query I rowsort
SELECT - 83 * + 97 AS col1
----
-8051

onlyif mysql # aggregate syntax: 
query I rowsort label-7111
SELECT ALL - MIN( DISTINCT + - 33 ) AS col0
----
33

skipif mysql # not compatible
query I rowsort label-7111
SELECT ALL - MIN ( DISTINCT + - 33 ) AS col0
----
33

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7112
SELECT DISTINCT + COUNT( * ) * 29 DIV - 35
----
0

skipif mysql # not compatible
query I rowsort label-7112
SELECT DISTINCT + COUNT ( * ) * 29 / - 35
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7113
SELECT ALL + + 98 * + 44 + + - COUNT( * ) + + + 84 - 72 * - 51
----
8067

skipif mysql # not compatible
query I rowsort label-7113
SELECT ALL + + 98 * + 44 + + - COUNT ( * ) + + + 84 - 72 * - 51
----
8067

query I rowsort
SELECT - + 16 * - 41 AS col1
----
656

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7115
SELECT DISTINCT + MIN( DISTINCT + + 45 ) * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7115
SELECT DISTINCT + MIN ( DISTINCT + + 45 ) * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7116
SELECT + ( 84 ) DIV + - 80
----
-1

skipif mysql # not compatible
query I rowsort label-7116
SELECT + ( 84 ) / + - 80
----
-1

query I rowsort
SELECT ALL ( - 48 )
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-7118
SELECT + MAX( 70 ) + + 51 AS col1
----
121

skipif mysql # not compatible
query I rowsort label-7118
SELECT + MAX ( 70 ) + + 51 AS col1
----
121

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7119
SELECT ALL 31 DIV 15 * + - COUNT( * ) * - - 26 DIV - - 89
----
0

skipif mysql # not compatible
query I rowsort label-7119
SELECT ALL 31 / 15 * + - COUNT ( * ) * - - 26 / - - 89
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7120
SELECT ALL + MIN( - 32 ) + - 97 AS col0, 98 + - 30 col0
----
-129
68

skipif mysql # not compatible
query II rowsort label-7120
SELECT ALL + MIN ( - 32 ) + - 97 AS col0, 98 + - 30 col0
----
-129
68

onlyif mysql # aggregate syntax: 
query II rowsort label-7121
SELECT DISTINCT 20 * - COUNT( * ) + + 24 AS col0, + 35 AS col0
----
4
35

skipif mysql # not compatible
query II rowsort label-7121
SELECT DISTINCT 20 * - COUNT ( * ) + + 24 AS col0, + 35 AS col0
----
4
35

query I rowsort
SELECT ALL 70 * + - 51 + - + 83
----
-3653

query II rowsort
SELECT ALL 95 * + - 39 * - 21 + + 66 * + 75, 65 AS col0
----
82755
65

query I rowsort
SELECT + COALESCE ( - NULLIF ( - 28, - ( 16 ) ), + 93, - 63 + - 88 + 87 * + ( - 91 ) )
----
28

query I rowsort
SELECT - 19 - - 61
----
42

query I rowsort
SELECT + COALESCE ( - + 58, + 51 + 14 + 33, + + 87 ) AS col0
----
-58

onlyif mysql # aggregate syntax: 
query II rowsort label-7127
SELECT ALL ( 4 ) * - + 47 * + 47 + - 33 AS col2, 2 * + + MAX( - + 29 )
----
-8869
-58

skipif mysql # not compatible
query II rowsort label-7127
SELECT ALL ( 4 ) * - + 47 * + 47 + - 33 AS col2, 2 * + + MAX ( - + 29 )
----
-8869
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-7128
SELECT DISTINCT 82 * - 74 * + COUNT( * ) * - SUM( + - 51 ) * - - COUNT( * ) + - 5 * - - COUNT( * ) * - - 66
----
-309798

skipif mysql # not compatible
query I rowsort label-7128
SELECT DISTINCT 82 * - 74 * + COUNT ( * ) * - SUM ( + - 51 ) * - - COUNT ( * ) + - 5 * - - COUNT ( * ) * - - 66
----
-309798

query I rowsort
SELECT ALL + 31 * + + 20 + - 60 col0
----
560

query I rowsort
SELECT + ( 15 ) * 70 AS col1
----
1050

query I rowsort
SELECT ALL 70 * + 4
----
280

query I rowsort
SELECT DISTINCT COALESCE ( - ( + - 60 ), 85 ) * - 59 + + + 26
----
-3514

onlyif mysql # DIV for integer division: 
query II rowsort label-7133
SELECT ALL + ( - 79 ) DIV - 53, 55 AS col1
----
1
55

skipif mysql # not compatible
query II rowsort label-7133
SELECT ALL + ( - 79 ) / - 53, 55 AS col1
----
1
55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7134
SELECT ALL - 14 * - NULLIF ( + + 99, - 0 / - CAST( NULL AS SIGNED ) + + - 6 ) - 23
----
1363

skipif mysql # not compatible
query I rowsort label-7134
SELECT ALL - 14 * - NULLIF ( + + 99, - 0 / - CAST ( NULL AS INTEGER ) + + - 6 ) - 23
----
1363

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7135
SELECT + - CAST( + CAST( 59 AS SIGNED ) AS SIGNED ) AS col0
----
-59

skipif mysql # not compatible
query I rowsort label-7135
SELECT + - CAST ( + CAST ( 59 AS INTEGER ) AS INTEGER ) AS col0
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-7136
SELECT MIN( + + ( - 66 ) ) col2
----
-66

skipif mysql # not compatible
query I rowsort label-7136
SELECT MIN ( + + ( - 66 ) ) col2
----
-66

onlyif mysql # DIV for integer division: 
query I rowsort label-7137
SELECT ALL 61 DIV + 90
----
0

skipif mysql # not compatible
query I rowsort label-7137
SELECT ALL 61 / + 90
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7138
SELECT + ( - 89 ) + - - COUNT( * ) DIV - - 48
----
-89

skipif mysql # not compatible
query I rowsort label-7138
SELECT + ( - 89 ) + - - COUNT ( * ) / - - 48
----
-89

onlyif mysql # DIV for integer division: 
query I rowsort label-7139
SELECT - 1 * - - 59 - 66 DIV - 57
----
-58

skipif mysql # not compatible
query I rowsort label-7139
SELECT - 1 * - - 59 - 66 / - 57
----
-58

query I rowsort
SELECT + + 61 * 3 + - - 12 - 62
----
133

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7141
SELECT - 14 - - + 99 + + + CAST( NULL AS SIGNED ) * + - COUNT( * ) * 67 / + COALESCE ( + 21, ( + AVG ( + 42 ) ) + + MAX( + 77 ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7141
SELECT - 14 - - + 99 + + + CAST ( NULL AS INTEGER ) * + - COUNT ( * ) * 67 / + COALESCE ( + 21, ( + AVG ( + 42 ) ) + + MAX ( + 77 ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7142
SELECT - - MIN( ALL + 66 )
----
66

skipif mysql # not compatible
query I rowsort label-7142
SELECT - - MIN ( ALL + 66 )
----
66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7143
SELECT + - 11 DIV 69 + + 63 DIV 13 - + 72 * - - 80 * - + 76 * 81 * + COUNT( * )
----
35458564

skipif mysql # not compatible
query I rowsort label-7143
SELECT + - 11 / 69 + + 63 / 13 - + 72 * - - 80 * - + 76 * 81 * + COUNT ( * )
----
35458564

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7144
SELECT ALL - 6 * - 43 + + - ( - + 80 ) DIV COUNT( * ) AS col0
----
338

skipif mysql # not compatible
query I rowsort label-7144
SELECT ALL - 6 * - 43 + + - ( - + 80 ) / COUNT ( * ) AS col0
----
338

query II rowsort
SELECT ALL 28 AS col2, ( - - 39 ) AS col0
----
28
39

onlyif mysql # DIV for integer division: 
query I rowsort label-7146
SELECT ALL - + 75 DIV + 49
----
-1

skipif mysql # not compatible
query I rowsort label-7146
SELECT ALL - + 75 / + 49
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7147
SELECT ALL CAST( NULL AS SIGNED ) AS col1, + 77
----
NULL
77

skipif mysql # not compatible
query II rowsort label-7147
SELECT ALL CAST ( NULL AS INTEGER ) AS col1, + 77
----
NULL
77

query II rowsort
SELECT DISTINCT - 64 col1, - CASE - ( 52 ) WHEN 35 * + 58 + - + 63 / + + 20 THEN NULL ELSE + 95 END * - 25 * - - 7 + - 8
----
-64
16617

query I rowsort
SELECT - + 87 + - - 49 AS col0
----
-38

query I rowsort
SELECT + 56 + - COALESCE ( 84, 59 ) AS col2
----
-28

query I rowsort
SELECT - + 84 + - 96 AS col1
----
-180

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7152
SELECT - + CASE - + COUNT( * ) WHEN - + CAST( - 91 AS DECIMAL ) * - 92 THEN NULL WHEN - COALESCE ( CAST( - - 2 AS SIGNED ), 13, - 50 ) + + 59 THEN NULL ELSE + CAST( NULL AS SIGNED ) * 86 / + + 80 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7152
SELECT - + CASE - + COUNT ( * ) WHEN - + CAST ( - 91 AS REAL ) * - 92 THEN NULL WHEN - COALESCE ( CAST ( - - 2 AS INTEGER ), 13, - 50 ) + + 59 THEN NULL ELSE + CAST ( NULL AS INTEGER ) * 86 / + + 80 END
----
NULL

query I rowsort
SELECT DISTINCT - ( + - 93 ) AS col1
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-7154
SELECT - MIN( ALL 7 ) * 54 + + 43 + + MAX( DISTINCT - - 84 ) * - 70
----
-6215

skipif mysql # not compatible
query I rowsort label-7154
SELECT - MIN ( ALL 7 ) * 54 + + 43 + + MAX ( DISTINCT - - 84 ) * - 70
----
-6215

onlyif mysql # aggregate syntax: 
query I rowsort label-7155
SELECT - ( - - 50 ) * + 30 + + + 59 + - COUNT( * )
----
-1442

skipif mysql # not compatible
query I rowsort label-7155
SELECT - ( - - 50 ) * + 30 + + + 59 + - COUNT ( * )
----
-1442

query I rowsort
SELECT DISTINCT + 88 + - 60 * - 73
----
4468

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7157
SELECT ALL + 43 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7157
SELECT ALL + 43 + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7158
SELECT - CAST( NULL AS SIGNED ) + - + 63 + 83 * + ( - 2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7158
SELECT - CAST ( NULL AS INTEGER ) + - + 63 + 83 * + ( - 2 )
----
NULL

query I rowsort
SELECT ALL + 70 + 65 + COALESCE ( + 24, - ( + - 99 ) * 69 ) AS col2
----
159

query I rowsort
SELECT - 19 + 56 AS col2
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-7161
SELECT ALL - COUNT( * ) + - 86 AS col2
----
-87

skipif mysql # not compatible
query I rowsort label-7161
SELECT ALL - COUNT ( * ) + - 86 AS col2
----
-87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7162
SELECT 71 * + + 34 * - + CAST( + + 67 AS SIGNED ) * - COUNT( * ) - - 0
----
161738

skipif mysql # not compatible
query I rowsort label-7162
SELECT 71 * + + 34 * - + CAST ( + + 67 AS INTEGER ) * - COUNT ( * ) - - 0
----
161738

onlyif mysql # aggregate syntax: 
query I rowsort label-7163
SELECT - CASE 80 WHEN + - 71 THEN NULL WHEN CASE - - 96 WHEN + COUNT( * ) / + + 46 THEN NULL WHEN SUM( DISTINCT + - 23 ) + 46 * - 76 THEN NULL ELSE 61 END THEN - + 66 ELSE NULL END + + 67 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7163
SELECT - CASE 80 WHEN + - 71 THEN NULL WHEN CASE - - 96 WHEN + COUNT ( * ) / + + 46 THEN NULL WHEN SUM ( DISTINCT + - 23 ) + 46 * - 76 THEN NULL ELSE 61 END THEN - + 66 ELSE NULL END + + 67 col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7164
SELECT ALL ( + 38 ) DIV 59 + + 60 - - - CASE + + 13 WHEN - 32 * + + 63 DIV + 46 + - + COALESCE ( + 6, 31 + 7, 52 ) + - + ( + 61 ) * ( + 14 ) THEN - 85 ELSE 36 * + MAX( ALL - 74 ) END + + 69 * + 91 AS col1
----
9003

skipif mysql # not compatible
query I rowsort label-7164
SELECT ALL ( + 38 ) / 59 + + 60 - - - CASE + + 13 WHEN - 32 * + + 63 / + 46 + - + COALESCE ( + 6, 31 + 7, 52 ) + - + ( + 61 ) * ( + 14 ) THEN - 85 ELSE 36 * + MAX ( ALL - 74 ) END + + 69 * + 91 AS col1
----
9003

onlyif mysql # aggregate syntax: 
query II rowsort label-7165
SELECT + COUNT( * ) AS col1, 29
----
1
29

skipif mysql # not compatible
query II rowsort label-7165
SELECT + COUNT ( * ) AS col1, 29
----
1
29

query I rowsort
SELECT + 53 + + + 57 AS col0
----
110

onlyif mysql # aggregate syntax: 
query I rowsort label-7167
SELECT ( 2 ) * - + 73 - 79 + - - 7 - + COUNT( * ) * - 31 col0
----
-187

skipif mysql # not compatible
query I rowsort label-7167
SELECT ( 2 ) * - + 73 - 79 + - - 7 - + COUNT ( * ) * - 31 col0
----
-187

query I rowsort
SELECT + CASE - + 41 WHEN - 70 THEN NULL ELSE - - 85 END
----
85

query I rowsort
SELECT ALL + NULLIF ( + - 70, + 25 )
----
-70

query I rowsort
SELECT ALL + ( - - 87 ) AS col1
----
87

query I rowsort
SELECT ALL 12 * + + 67 * - 17
----
-13668

query I rowsort
SELECT + 17 + + - 38 + ( - 37 )
----
-58

query I rowsort
SELECT ALL - 8 - 29 AS col1
----
-37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7174
SELECT DISTINCT - CAST( + ( + - CAST( - + 5 AS SIGNED ) ) AS SIGNED ) AS col1
----
-5

skipif mysql # not compatible
query I rowsort label-7174
SELECT DISTINCT - CAST ( + ( + - CAST ( - + 5 AS INTEGER ) ) AS INTEGER ) AS col1
----
-5

query II rowsort
SELECT DISTINCT - + 28, 38 col1
----
-28
38

onlyif mysql # aggregate syntax: 
query I rowsort label-7176
SELECT COUNT( * ) * - 47 - 66 AS col1
----
-113

skipif mysql # not compatible
query I rowsort label-7176
SELECT COUNT ( * ) * - 47 - 66 AS col1
----
-113

onlyif mysql # aggregate syntax: 
query I rowsort label-7177
SELECT DISTINCT + SUM( DISTINCT - 37 ) * 54 * + + 94
----
-187812

skipif mysql # not compatible
query I rowsort label-7177
SELECT DISTINCT + SUM ( DISTINCT - 37 ) * 54 * + + 94
----
-187812

query I rowsort
SELECT DISTINCT 50 - 15 + + + 47 AS col2
----
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7179
SELECT + 38 * - CAST( NULL AS SIGNED ) * + 72 / + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-7179
SELECT + 38 * - CAST ( NULL AS INTEGER ) * + 72 / + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7180
SELECT DISTINCT - + COUNT( - - 1 ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-7180
SELECT DISTINCT - + COUNT ( - - 1 ) col2
----
-1

query I rowsort
SELECT ALL + 76 * - 13 * - 96 * + - 80
----
-7587840

query I rowsort
SELECT ALL - NULLIF ( ( - + 15 ), + + 70 )
----
15

onlyif mysql # DIV for integer division: 
query I rowsort label-7183
SELECT DISTINCT + 38 DIV - 1
----
-38

skipif mysql # not compatible
query I rowsort label-7183
SELECT DISTINCT + 38 / - 1
----
-38

onlyif mysql # DIV for integer division: 
query I rowsort label-7184
SELECT 50 DIV - 37 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-7184
SELECT 50 / - 37 AS col0
----
-1

query I rowsort
SELECT 27 + + ( 10 )
----
37

query I rowsort
SELECT DISTINCT 93 + - - 45
----
138

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7187
SELECT ALL + CAST( NULL AS SIGNED ) * + + 54 * + ( - 94 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7187
SELECT ALL + CAST ( NULL AS INTEGER ) * + + 54 * + ( - 94 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7188
SELECT COALESCE ( 90, - - 4, - COUNT( * ) ) DIV - + ( - 47 ) * - COUNT( * ) * + COUNT( * ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-7188
SELECT COALESCE ( 90, - - 4, - COUNT ( * ) ) / - + ( - 47 ) * - COUNT ( * ) * + COUNT ( * ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7189
SELECT ALL + MIN( DISTINCT + 89 ) + 21 AS col0
----
110

skipif mysql # not compatible
query I rowsort label-7189
SELECT ALL + MIN ( DISTINCT + 89 ) + 21 AS col0
----
110

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7190
SELECT CAST( - COUNT( * ) AS SIGNED ) + + 3 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-7190
SELECT CAST ( - COUNT ( * ) AS INTEGER ) + + 3 AS col0
----
2

query I rowsort
SELECT DISTINCT 61 + + 61
----
122

query I rowsort
SELECT ALL 20 * 41 * - 92 AS col2
----
-75440

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7193
SELECT 77 + 13 + - - 26 * + CAST( CAST( NULL AS SIGNED ) AS SIGNED ) * + + ( - 1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7193
SELECT 77 + 13 + - - 26 * + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) * + + ( - 1 )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7194
SELECT 81 - + 96 AS col0, + SUM( DISTINCT + + 22 ) AS col1
----
-15
22

skipif mysql # not compatible
query II rowsort label-7194
SELECT 81 - + 96 AS col0, + SUM ( DISTINCT + + 22 ) AS col1
----
-15
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7195
SELECT CAST( + 7 AS SIGNED ) * - 69 * + 46 + - 44 col1, + MIN( - 55 ) * + 92 + - + 21
----
-22262
-5081

skipif mysql # not compatible
query II rowsort label-7195
SELECT CAST ( + 7 AS INTEGER ) * - 69 * + 46 + - 44 col1, + MIN ( - 55 ) * + 92 + - + 21
----
-22262
-5081

onlyif mysql # aggregate syntax: 
query II rowsort label-7196
SELECT 12 + + COUNT( * ) * + - 22 AS col2, - 3 AS col0
----
-10
-3

skipif mysql # not compatible
query II rowsort label-7196
SELECT 12 + + COUNT ( * ) * + - 22 AS col2, - 3 AS col0
----
-10
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7197
SELECT ALL - COUNT( * ) + - ( + + 75 )
----
-76

skipif mysql # not compatible
query I rowsort label-7197
SELECT ALL - COUNT ( * ) + - ( + + 75 )
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-7198
SELECT ALL - 12 * - COUNT( DISTINCT 26 ) * + ( - 34 ) AS col2
----
-408

skipif mysql # not compatible
query I rowsort label-7198
SELECT ALL - 12 * - COUNT ( DISTINCT 26 ) * + ( - 34 ) AS col2
----
-408

onlyif mysql # aggregate syntax: 
query I rowsort label-7199
SELECT 2 * SUM( DISTINCT 30 ) AS col1
----
60

skipif mysql # not compatible
query I rowsort label-7199
SELECT 2 * SUM ( DISTINCT 30 ) AS col1
----
60

query I rowsort
SELECT ALL - ( 32 )
----
-32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7201
SELECT DISTINCT - CASE 42 WHEN + 47 THEN NULL ELSE + 11 * + COUNT( * ) * - + 46 - 50 * - - 91 * - 27 - COUNT( ALL + COALESCE ( - 34, 16 ) ) DIV - 81 * + COUNT( * ) END AS col2
----
-122344

skipif mysql # not compatible
query I rowsort label-7201
SELECT DISTINCT - CASE 42 WHEN + 47 THEN NULL ELSE + 11 * + COUNT ( * ) * - + 46 - 50 * - - 91 * - 27 - COUNT ( ALL + COALESCE ( - 34, 16 ) ) / - 81 * + COUNT ( * ) END AS col2
----
-122344

query I rowsort
SELECT ALL - 13 * - + ( - ( + ( + + ( + 62 ) ) ) )
----
-806

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7203
SELECT 92 - - 88 - + CAST( + + 76 AS SIGNED ) DIV - MAX( + + 20 ) AS col0
----
183

skipif mysql # not compatible
query I rowsort label-7203
SELECT 92 - - 88 - + CAST ( + + 76 AS INTEGER ) / - MAX ( + + 20 ) AS col0
----
183

onlyif mysql # aggregate syntax: 
query II rowsort label-7204
SELECT 28 * - COUNT( * ), + 95 AS col2
----
-28
95

skipif mysql # not compatible
query II rowsort label-7204
SELECT 28 * - COUNT ( * ), + 95 AS col2
----
-28
95

query I rowsort
SELECT ALL - + NULLIF ( 63, - - 29 )
----
-63

query I rowsort
SELECT - 63 * - 42 * + 28 * 16 - - - 29
----
1185379

query I rowsort
SELECT ( + ( - + 46 ) )
----
-46

query I rowsort
SELECT 86 * + 42 + 86
----
3698

query I rowsort
SELECT ALL - + 58 - - - 65 + - 73 AS col2
----
-196

onlyif mysql # aggregate syntax: 
query I rowsort label-7210
SELECT SUM( + + 82 ) AS col2
----
82

skipif mysql # not compatible
query I rowsort label-7210
SELECT SUM ( + + 82 ) AS col2
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-7211
SELECT 96 - COUNT( * ) * - + MAX( - 58 )
----
38

skipif mysql # not compatible
query I rowsort label-7211
SELECT 96 - COUNT ( * ) * - + MAX ( - 58 )
----
38

onlyif mysql # DIV for integer division: 
query I rowsort label-7212
SELECT ALL - - 66 DIV - ( + 41 )
----
-1

skipif mysql # not compatible
query I rowsort label-7212
SELECT ALL - - 66 / - ( + 41 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7213
SELECT - 87 * COUNT( * ) - 36
----
-123

skipif mysql # not compatible
query I rowsort label-7213
SELECT - 87 * COUNT ( * ) - 36
----
-123

onlyif mysql # aggregate syntax: 
query I rowsort label-7214
SELECT ALL - CASE - 60 WHEN - 45 THEN NULL WHEN 77 THEN - CASE + - COUNT( * ) WHEN + MIN( 9 ) * 65 + 99 THEN - - 81 + + 10 END ELSE NULL END + 24
----
NULL

skipif mysql # not compatible
query I rowsort label-7214
SELECT ALL - CASE - 60 WHEN - 45 THEN NULL WHEN 77 THEN - CASE + - COUNT ( * ) WHEN + MIN ( 9 ) * 65 + 99 THEN - - 81 + + 10 END ELSE NULL END + 24
----
NULL

query I rowsort
SELECT 52 * 97
----
5044

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7216
SELECT + 12 - + - 51 DIV SUM( DISTINCT 80 )
----
12

skipif mysql # not compatible
query I rowsort label-7216
SELECT + 12 - + - 51 / SUM ( DISTINCT 80 )
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-7217
SELECT DISTINCT COALESCE ( 50, - - 33 * - - COUNT( * ) )
----
50

skipif mysql # not compatible
query I rowsort label-7217
SELECT DISTINCT COALESCE ( 50, - - 33 * - - COUNT ( * ) )
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-7218
SELECT ALL - 4 + + + 84 + - COUNT( * ) AS col2
----
79

skipif mysql # not compatible
query I rowsort label-7218
SELECT ALL - 4 + + + 84 + - COUNT ( * ) AS col2
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-7219
SELECT ALL COUNT( * ) + 83 + - 77 * 8
----
-532

skipif mysql # not compatible
query I rowsort label-7219
SELECT ALL COUNT ( * ) + 83 + - 77 * 8
----
-532

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7220
SELECT ALL 9 + + 83 + - NULLIF ( + CASE + 10 WHEN 37 - 52 + - 27 THEN - 7 WHEN + 29 THEN NULL ELSE - 11 * - - CAST( NULL AS SIGNED ) END, + + 17 ) * - 85 - + + AVG ( + + 49 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7220
SELECT ALL 9 + + 83 + - NULLIF ( + CASE + 10 WHEN 37 - 52 + - 27 THEN - 7 WHEN + 29 THEN NULL ELSE - 11 * - - CAST ( NULL AS INTEGER ) END, + + 17 ) * - 85 - + + AVG ( + + 49 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7221
SELECT - 79 + CASE - 49 WHEN - MIN( 68 ) THEN NULL WHEN 15 THEN + COALESCE ( - 67, 53 * - - 64 ) ELSE NULL END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7221
SELECT - 79 + CASE - 49 WHEN - MIN ( 68 ) THEN NULL WHEN 15 THEN + COALESCE ( - 67, 53 * - - 64 ) ELSE NULL END col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7222
SELECT DISTINCT 28, CAST( NULL AS SIGNED ) AS col1
----
28
NULL

skipif mysql # not compatible
query II rowsort label-7222
SELECT DISTINCT 28, CAST ( NULL AS INTEGER ) AS col1
----
28
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7223
SELECT 81 + + COUNT( * ) + + COUNT( * ) DIV - 24 * - 43 AS col1
----
82

skipif mysql # not compatible
query I rowsort label-7223
SELECT 81 + + COUNT ( * ) + + COUNT ( * ) / - 24 * - 43 AS col1
----
82

query I rowsort
SELECT ALL 2 * 47 AS col0
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-7225
SELECT COUNT( * ) * + - 31
----
-31

skipif mysql # not compatible
query I rowsort label-7225
SELECT COUNT ( * ) * + - 31
----
-31

query I rowsort
SELECT ALL 66 * - 98 col1
----
-6468

query I rowsort
SELECT 16 + + 33
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-7228
SELECT - COUNT( - 80 )
----
-1

skipif mysql # not compatible
query I rowsort label-7228
SELECT - COUNT ( - 80 )
----
-1

query I rowsort
SELECT DISTINCT 13 - 18 AS col0
----
-5

query I rowsort
SELECT NULLIF ( + ( - 25 ), - 68 * 73 ) + + + 80
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-7231
SELECT DISTINCT 48 - - + 35 - COUNT( * ) AS col1
----
82

skipif mysql # not compatible
query I rowsort label-7231
SELECT DISTINCT 48 - - + 35 - COUNT ( * ) AS col1
----
82

query I rowsort
SELECT ALL 6 * - 44 AS col2
----
-264

onlyif mysql # aggregate syntax: 
query I rowsort label-7233
SELECT DISTINCT 65 * - MAX( DISTINCT + 57 ) * ( 48 ) AS col2
----
-177840

skipif mysql # not compatible
query I rowsort label-7233
SELECT DISTINCT 65 * - MAX ( DISTINCT + 57 ) * ( 48 ) AS col2
----
-177840

query I rowsort
SELECT DISTINCT - 8 - - 77 AS col2
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-7235
SELECT - 94 + + + COUNT( * ) col0
----
-93

skipif mysql # not compatible
query I rowsort label-7235
SELECT - 94 + + + COUNT ( * ) col0
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-7236
SELECT + ( - + 19 ) + + ( + COUNT( * ) ) AS col1
----
-18

skipif mysql # not compatible
query I rowsort label-7236
SELECT + ( - + 19 ) + + ( + COUNT ( * ) ) AS col1
----
-18

query I rowsort
SELECT + 65 * + 38 * 5 AS col2
----
12350

onlyif mysql # aggregate syntax: 
query I rowsort label-7238
SELECT + 82 + COUNT( * ) - 88 AS col2
----
-5

skipif mysql # not compatible
query I rowsort label-7238
SELECT + 82 + COUNT ( * ) - 88 AS col2
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-7239
SELECT ALL + MIN( DISTINCT 62 ) AS col1
----
62

skipif mysql # not compatible
query I rowsort label-7239
SELECT ALL + MIN ( DISTINCT 62 ) AS col1
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-7240
SELECT + COUNT( * ) * - 66 AS col1
----
-66

skipif mysql # not compatible
query I rowsort label-7240
SELECT + COUNT ( * ) * - 66 AS col1
----
-66

onlyif mysql # aggregate syntax: 
query II rowsort label-7241
SELECT ALL + 31 AS col0, COUNT( * ) AS col1
----
31
1

skipif mysql # not compatible
query II rowsort label-7241
SELECT ALL + 31 AS col0, COUNT ( * ) AS col1
----
31
1

onlyif mysql # aggregate syntax: 
query II rowsort label-7242
SELECT ALL + 21 AS col1, - COUNT( * )
----
21
-1

skipif mysql # not compatible
query II rowsort label-7242
SELECT ALL + 21 AS col1, - COUNT ( * )
----
21
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7243
SELECT - - 86 DIV - 95 + + 94 - 40 AS col0, COUNT( * ) * 32 * 29
----
54
928

skipif mysql # not compatible
query II rowsort label-7243
SELECT - - 86 / - 95 + + 94 - 40 AS col0, COUNT ( * ) * 32 * 29
----
54
928

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7244
SELECT DISTINCT + 58 * - - 0 * - 40 * + CAST( + 65 AS SIGNED ) + + COUNT( * ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7244
SELECT DISTINCT + 58 * - - 0 * - 40 * + CAST ( + 65 AS INTEGER ) + + COUNT ( * ) AS col2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7245
SELECT ALL + CAST( + - 5 AS SIGNED ) AS col0
----
-5

skipif mysql # not compatible
query I rowsort label-7245
SELECT ALL + CAST ( + - 5 AS INTEGER ) AS col0
----
-5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7246
SELECT - - 32 DIV + COUNT( * ) AS col2
----
32

skipif mysql # not compatible
query I rowsort label-7246
SELECT - - 32 / + COUNT ( * ) AS col2
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-7247
SELECT ALL + COUNT( * ) * 7 + + - 65 col1
----
-58

skipif mysql # not compatible
query I rowsort label-7247
SELECT ALL + COUNT ( * ) * 7 + + - 65 col1
----
-58

query I rowsort
SELECT DISTINCT - 10 * + 23
----
-230

onlyif mysql # aggregate syntax: 
query I rowsort label-7249
SELECT + ( - - 69 ) * - 42 * - ( - COALESCE ( - + 15, - 93 * + COALESCE ( - ( + 97 ), - 83, - 18 ) * 6 + - 97 + - 35 + - 92 * - 38 * + 59, + 93 + + COUNT( * ) * 64 ) ) + - 6 AS col0
----
43464

skipif mysql # not compatible
query I rowsort label-7249
SELECT + ( - - 69 ) * - 42 * - ( - COALESCE ( - + 15, - 93 * + COALESCE ( - ( + 97 ), - 83, - 18 ) * 6 + - 97 + - 35 + - 92 * - 38 * + 59, + 93 + + COUNT ( * ) * 64 ) ) + - 6 AS col0
----
43464

query II rowsort
SELECT + 75 AS col1, 43 AS col1
----
75
43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7251
SELECT - CAST( NULL AS SIGNED ) / 0
----
NULL

skipif mysql # not compatible
query I rowsort label-7251
SELECT - CAST ( NULL AS INTEGER ) / 0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7252
SELECT ALL - 78 * 14 * + - SUM( DISTINCT ( - + 22 ) ) + NULLIF ( COUNT( * ), 82 + 91 ) AS col1
----
-24023

skipif mysql # not compatible
query I rowsort label-7252
SELECT ALL - 78 * 14 * + - SUM ( DISTINCT ( - + 22 ) ) + NULLIF ( COUNT ( * ), 82 + 91 ) AS col1
----
-24023

onlyif mysql # aggregate syntax: 
query II rowsort label-7253
SELECT ALL + 21 * + 55 + - COUNT( + 46 ) AS col0, + COUNT( * )
----
1154
1

skipif mysql # not compatible
query II rowsort label-7253
SELECT ALL + 21 * + 55 + - COUNT ( + 46 ) AS col0, + COUNT ( * )
----
1154
1

query I rowsort
SELECT - 50 * 87 + + 64 + 72 col1
----
-4214

query II rowsort
SELECT + 75 AS col2, 51 * + + 23 AS col2
----
75
1173

query II rowsort
SELECT ALL + + 33, ( - 80 ) AS col2
----
33
-80

onlyif mysql # DIV for integer division: 
query I rowsort label-7257
SELECT DISTINCT + 84 DIV + 90 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7257
SELECT DISTINCT + 84 / + 90 AS col2
----
0

query I rowsort
SELECT DISTINCT 34 * 83 + + 79
----
2901

onlyif mysql # aggregate syntax: 
query I rowsort label-7259
SELECT ALL COUNT( * ) * + - 37 AS col0
----
-37

skipif mysql # not compatible
query I rowsort label-7259
SELECT ALL COUNT ( * ) * + - 37 AS col0
----
-37

onlyif mysql # DIV for integer division: 
query I rowsort label-7260
SELECT ALL + 11 DIV 69 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7260
SELECT ALL + 11 / 69 AS col2
----
0

query I rowsort
SELECT DISTINCT ( 88 ) col0
----
88

query I rowsort
SELECT - ( 30 ) - + 69 + + 32 * - + 33
----
-1155

onlyif mysql # aggregate syntax: 
query I rowsort label-7263
SELECT ALL ( - 38 ) - + MIN( 36 ) + + COUNT( * ) * + 86 + 88 + + 69 AS col2
----
169

skipif mysql # not compatible
query I rowsort label-7263
SELECT ALL ( - 38 ) - + MIN ( 36 ) + + COUNT ( * ) * + 86 + 88 + + 69 AS col2
----
169

onlyif mysql # aggregate syntax: 
query I rowsort label-7264
SELECT + 42 + + COUNT( * ) + - MAX( DISTINCT - 38 ) AS col1
----
81

skipif mysql # not compatible
query I rowsort label-7264
SELECT + 42 + + COUNT ( * ) + - MAX ( DISTINCT - 38 ) AS col1
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-7265
SELECT ALL + 22 * - MIN( ALL + 75 ) * 16
----
-26400

skipif mysql # not compatible
query I rowsort label-7265
SELECT ALL + 22 * - MIN ( ALL + 75 ) * 16
----
-26400

query I rowsort
SELECT + 71 * 12 AS col2
----
852

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7267
SELECT - NULLIF ( - + 14, + - 24 / ( CAST( NULL AS DECIMAL ) ) * 76 / + 44 + + 29 * + CAST( - + 97 AS SIGNED ) + - 29 - ( - 12 ) - + COUNT( * ) * 21 )
----
14

skipif mysql # not compatible
query I rowsort label-7267
SELECT - NULLIF ( - + 14, + - 24 / ( CAST ( NULL AS REAL ) ) * 76 / + 44 + + 29 * + CAST ( - + 97 AS INTEGER ) + - 29 - ( - 12 ) - + COUNT ( * ) * 21 )
----
14

query I rowsort
SELECT ALL - 33 * + - 24 AS col2
----
792

query I rowsort
SELECT DISTINCT 39 * - 61
----
-2379

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7270
SELECT ALL - CAST( - COUNT( - 73 ) AS SIGNED ) * 32 AS col2
----
32

skipif mysql # not compatible
query I rowsort label-7270
SELECT ALL - CAST ( - COUNT ( - 73 ) AS INTEGER ) * 32 AS col2
----
32

onlyif mysql # DIV for integer division: 
query I rowsort label-7271
SELECT DISTINCT + - 17 DIV - 13 + COALESCE ( + 21, + - 75, 6 * + 43 - + 95 ) * 58 DIV - ( 63 ) AS col1
----
-18

skipif mysql # not compatible
query I rowsort label-7271
SELECT DISTINCT + - 17 / - 13 + COALESCE ( + 21, + - 75, 6 * + 43 - + 95 ) * 58 / - ( 63 ) AS col1
----
-18

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7272
SELECT ALL - CAST( - 90 AS SIGNED ) DIV - 38 + + 41 * + + 6 AS col1
----
244

skipif mysql # not compatible
query I rowsort label-7272
SELECT ALL - CAST ( - 90 AS INTEGER ) / - 38 + + 41 * + + 6 AS col1
----
244

query I rowsort
SELECT + + 3 * 99 AS col1
----
297

onlyif mysql # DIV for integer division: 
query I rowsort label-7274
SELECT ALL + 60 DIV + 99 + - 82 AS col1
----
-82

skipif mysql # not compatible
query I rowsort label-7274
SELECT ALL + 60 / + 99 + - 82 AS col1
----
-82

query I rowsort
SELECT + 84 - + 27 AS col2
----
57

query I rowsort
SELECT DISTINCT + - 24 col0
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-7277
SELECT - + 96 * 10 + + 79 * - MIN( DISTINCT 12 ) AS col1
----
-1908

skipif mysql # not compatible
query I rowsort label-7277
SELECT - + 96 * 10 + + 79 * - MIN ( DISTINCT 12 ) AS col1
----
-1908

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7278
SELECT - 28 / - 93 + COUNT( * ) + - NULLIF ( - CAST( NULL AS SIGNED ), ( - + CAST( 79 AS SIGNED ) ) + + - 84 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7278
SELECT - 28 / - 93 + COUNT ( * ) + - NULLIF ( - CAST ( NULL AS INTEGER ), ( - + CAST ( 79 AS INTEGER ) ) + + - 84 )
----
NULL

query I rowsort
SELECT - 81 * - 19
----
1539

onlyif mysql # DIV for integer division: 
query I rowsort label-7280
SELECT DISTINCT 86 DIV 56 + + 25 + 48 AS col1
----
74

skipif mysql # not compatible
query I rowsort label-7280
SELECT DISTINCT 86 / 56 + + 25 + 48 AS col1
----
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7281
SELECT ALL COUNT( * ) DIV - 45 + + + 37 + 13 + - 57 + - 26 + 86 * CAST( + 12 AS SIGNED ), - COUNT( * ) AS col1
----
999
-1

skipif mysql # not compatible
query II rowsort label-7281
SELECT ALL COUNT ( * ) / - 45 + + + 37 + 13 + - 57 + - 26 + 86 * CAST ( + 12 AS INTEGER ), - COUNT ( * ) AS col1
----
999
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7282
SELECT - COUNT( + 71 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-7282
SELECT - COUNT ( + 71 ) AS col0
----
-1

query I rowsort
SELECT - - 76 - - 35 + 98 + - 54 * + 81 - - 5 AS col0
----
-4160

onlyif mysql # aggregate syntax: 
query I rowsort label-7284
SELECT ALL + - ( + 62 ) * + 50 - + + 62 + + 64 * COUNT( * )
----
-3098

skipif mysql # not compatible
query I rowsort label-7284
SELECT ALL + - ( + 62 ) * + 50 - + + 62 + + 64 * COUNT ( * )
----
-3098

onlyif mysql # aggregate syntax: 
query I rowsort label-7285
SELECT - - 27 + - + 50 * + 34 + - 94 - + + COUNT( * ) - - 43
----
-1725

skipif mysql # not compatible
query I rowsort label-7285
SELECT - - 27 + - + 50 * + 34 + - 94 - + + COUNT ( * ) - - 43
----
-1725

onlyif mysql # aggregate syntax: 
query I rowsort label-7286
SELECT + 14 + + - MAX( + 40 )
----
-26

skipif mysql # not compatible
query I rowsort label-7286
SELECT + 14 + + - MAX ( + 40 )
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-7287
SELECT COUNT( * ) * ( 64 ) + - 32
----
32

skipif mysql # not compatible
query I rowsort label-7287
SELECT COUNT ( * ) * ( 64 ) + - 32
----
32

query I rowsort
SELECT NULLIF ( + - CASE 41 WHEN - 34 * + 99 THEN 74 WHEN + 75 THEN + - 7 / - - 21 + + + 45 * + + 3 END, 99 ) col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7289
SELECT NULLIF ( - CAST( + 60 AS SIGNED ), + - 75 )
----
-60

skipif mysql # not compatible
query I rowsort label-7289
SELECT NULLIF ( - CAST ( + 60 AS INTEGER ), + - 75 )
----
-60

query II rowsort
SELECT NULLIF ( + 37, - + 58 * + 94 + + ( - 28 ) ) AS col0, - 67 AS col1
----
37
-67

query II rowsort
SELECT DISTINCT + 48 AS col1, + COALESCE ( 41, 12 + 85 + ( - ( - 71 ) ), - - 35 * - 43 ) AS col1
----
48
41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7292
SELECT - CAST( NULL AS SIGNED ) * - - 51 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7292
SELECT - CAST ( NULL AS INTEGER ) * - - 51 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7293
SELECT ALL CAST( 34 AS SIGNED ) AS col2
----
34

skipif mysql # not compatible
query I rowsort label-7293
SELECT ALL CAST ( 34 AS INTEGER ) AS col2
----
34

query I rowsort
SELECT ALL - 27 * + 64 - + + 47
----
-1775

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7295
SELECT ALL NULLIF ( + CAST( NULL AS SIGNED ), - 84 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7295
SELECT ALL NULLIF ( + CAST ( NULL AS INTEGER ), - 84 ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7296
SELECT DISTINCT 93, + CAST( NULL AS SIGNED ) AS col1
----
93
NULL

skipif mysql # not compatible
query II rowsort label-7296
SELECT DISTINCT 93, + CAST ( NULL AS INTEGER ) AS col1
----
93
NULL

query I rowsort
SELECT 6 + + + 38
----
44

query I rowsort
SELECT ALL + 53 * 69
----
3657

onlyif mysql # DIV for integer division: 
query I rowsort label-7299
SELECT ALL + 81 DIV 40 * 88 AS col2
----
176

skipif mysql # not compatible
query I rowsort label-7299
SELECT ALL + 81 / 40 * 88 AS col2
----
176

onlyif mysql # aggregate syntax: 
query I rowsort label-7300
SELECT 86 * + COUNT( * ) col2
----
86

skipif mysql # not compatible
query I rowsort label-7300
SELECT 86 * + COUNT ( * ) col2
----
86

query II rowsort
SELECT - 52, - 92 AS col1
----
-52
-92

query I rowsort
SELECT 2 + - - COALESCE ( 3, 24 * + 49 + + 23 )
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-7303
SELECT ALL + MIN( ALL 23 ) * + 15
----
345

skipif mysql # not compatible
query I rowsort label-7303
SELECT ALL + MIN ( ALL 23 ) * + 15
----
345

onlyif mysql # aggregate syntax: 
query I rowsort label-7304
SELECT 11 + + + 82 + + 91 * - + COUNT( ALL + 89 ) * + 72 * 35 * + 8
----
-1834467

skipif mysql # not compatible
query I rowsort label-7304
SELECT 11 + + + 82 + + 91 * - + COUNT ( ALL + 89 ) * + 72 * 35 * + 8
----
-1834467

query I rowsort
SELECT ALL 47 + - - COALESCE ( + - 6, - - 48 + - - 2, + 12 )
----
41

query II rowsort
SELECT DISTINCT 22 AS col0, 70 * 49 * 34
----
22
116620

onlyif mysql # aggregate syntax: 
query I rowsort label-7307
SELECT DISTINCT - COALESCE ( - COUNT( ALL + 17 ), 6 ) + - 54 AS col0
----
-53

skipif mysql # not compatible
query I rowsort label-7307
SELECT DISTINCT - COALESCE ( - COUNT ( ALL + 17 ), 6 ) + - 54 AS col0
----
-53

query I rowsort
SELECT ALL 46 + - 25
----
21

query I rowsort
SELECT ALL - + 60 + - 90 + - 79 AS col1
----
-229

onlyif mysql # aggregate syntax: 
query I rowsort label-7310
SELECT 81 + - COUNT( * ) col1
----
80

skipif mysql # not compatible
query I rowsort label-7310
SELECT 81 + - COUNT ( * ) col1
----
80

query II rowsort
SELECT + CASE - 33 WHEN + ( + 53 ) + - 51 * + 38 / 63 THEN NULL ELSE + 81 END AS col2, 11
----
81
11

onlyif mysql # aggregate syntax: 
query I rowsort label-7312
SELECT DISTINCT SUM( - 24 ) AS col0
----
-24

skipif mysql # not compatible
query I rowsort label-7312
SELECT DISTINCT SUM ( - 24 ) AS col0
----
-24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7313
SELECT ALL CAST( NULL AS SIGNED ) + - 3 / + + 2 * - - 35
----
NULL

skipif mysql # not compatible
query I rowsort label-7313
SELECT ALL CAST ( NULL AS INTEGER ) + - 3 / + + 2 * - - 35
----
NULL

query I rowsort
SELECT + 82 + 97 * - + 27 col1
----
-2537

onlyif mysql # aggregate syntax: 
query I rowsort label-7315
SELECT 71 + + - COUNT( * ) col0
----
70

skipif mysql # not compatible
query I rowsort label-7315
SELECT 71 + + - COUNT ( * ) col0
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-7316
SELECT ALL 26 * + 43 - + COUNT( * )
----
1117

skipif mysql # not compatible
query I rowsort label-7316
SELECT ALL 26 * + 43 - + COUNT ( * )
----
1117

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7317
SELECT + SUM( ALL - + 13 ) DIV 8 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-7317
SELECT + SUM ( ALL - + 13 ) / 8 AS col1
----
-1

query I rowsort
SELECT + 65 + - 80 * + 59
----
-4655

query I rowsort
SELECT + 5 * + 86 col2
----
430

query I rowsort
SELECT ALL - 86 + 75 + - + 55 - + + 80
----
-146

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7321
SELECT + - ( + 69 ) * - CAST( COUNT( * ) AS SIGNED ) + - + 0 + + NULLIF ( - COUNT( * ), - - 72 ) + + - 9 * - + 42 + - 37 - - 23 AS col2
----
432

skipif mysql # not compatible
query I rowsort label-7321
SELECT + - ( + 69 ) * - CAST ( COUNT ( * ) AS INTEGER ) + - + 0 + + NULLIF ( - COUNT ( * ), - - 72 ) + + - 9 * - + 42 + - 37 - - 23 AS col2
----
432

query I rowsort
SELECT DISTINCT 58 * + 35 * + 73
----
148190

query I rowsort
SELECT DISTINCT + 58 - - 9
----
67

query I rowsort
SELECT DISTINCT - 84 * - + 88
----
7392

onlyif mysql # DIV for integer division: 
query I rowsort label-7325
SELECT - 98 DIV 25 col0
----
-3

skipif mysql # not compatible
query I rowsort label-7325
SELECT - 98 / 25 col0
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7326
SELECT 19 DIV - SUM( DISTINCT + 66 ) + 74 + + 3
----
77

skipif mysql # not compatible
query I rowsort label-7326
SELECT 19 / - SUM ( DISTINCT + 66 ) + 74 + + 3
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-7327
SELECT - + 55 * SUM( ALL - - ( - 0 ) ) + - - COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-7327
SELECT - + 55 * SUM ( ALL - - ( - 0 ) ) + - - COUNT ( * )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7328
SELECT 74 col2, - NULLIF ( + + CAST( + ( + - 71 ) AS SIGNED ), + 34 * - 93 / + + 49 / - + 85 / - 79 ) + NULLIF ( 62, 29 * AVG ( ALL CAST( NULL AS SIGNED ) ) * - 40 + + 86 )
----
74
133

skipif mysql # not compatible
query II rowsort label-7328
SELECT 74 col2, - NULLIF ( + + CAST ( + ( + - 71 ) AS INTEGER ), + 34 * - 93 / + + 49 / - + 85 / - 79 ) + NULLIF ( 62, 29 * AVG ( ALL CAST ( NULL AS INTEGER ) ) * - 40 + + 86 )
----
74
133

query II rowsort
SELECT 77, 2 AS col1
----
77
2

onlyif mysql # aggregate syntax: 
query II rowsort label-7330
SELECT 16 + MAX( ALL - 31 ) - - - NULLIF ( + - 45, 21 ) * + + 85 AS col1, + 50 * + 57
----
3810
2850

skipif mysql # not compatible
query II rowsort label-7330
SELECT 16 + MAX ( ALL - 31 ) - - - NULLIF ( + - 45, 21 ) * + + 85 AS col1, + 50 * + 57
----
3810
2850

onlyif mysql # aggregate syntax: 
query I rowsort label-7331
SELECT ALL 43 - + 94 * + + COUNT( * ) * - 31 * - ( + ( - COALESCE ( + 71, + 58 ) ) ) AS col2
----
206937

skipif mysql # not compatible
query I rowsort label-7331
SELECT ALL 43 - + 94 * + + COUNT ( * ) * - 31 * - ( + ( - COALESCE ( + 71, + 58 ) ) ) AS col2
----
206937

query II rowsort
SELECT 82, - 15 + 41 AS col2
----
82
26

onlyif mysql # aggregate syntax: 
query I rowsort label-7333
SELECT ALL - CASE - 69 WHEN + 66 THEN - NULLIF ( + + 88, + 35 ) WHEN - + COUNT( * ) / - 90 * - + 5 THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7333
SELECT ALL - CASE - 69 WHEN + 66 THEN - NULLIF ( + + 88, + 35 ) WHEN - + COUNT ( * ) / - 90 * - + 5 THEN NULL END AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7334
SELECT 85 * - 25 + + 94 + + - NULLIF ( - 40, - 14 ) DIV + 94 + + 12 AS col0
----
-2019

skipif mysql # not compatible
query I rowsort label-7334
SELECT 85 * - 25 + + 94 + + - NULLIF ( - 40, - 14 ) / + 94 + + 12 AS col0
----
-2019

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-7335
SELECT DISTINCT - 47, - 11 DIV - + 69 * + NULLIF ( - 4, + NULLIF ( + 49, + 79 * - 92 * 18 * - COUNT( * ) * CAST( NULL AS DECIMAL ) * - 89 ) ) * COUNT( * ) AS col0
----
-47
0

skipif mysql # not compatible
query II rowsort label-7335
SELECT DISTINCT - 47, - 11 / - + 69 * + NULLIF ( - 4, + NULLIF ( + 49, + 79 * - 92 * 18 * - COUNT ( * ) * CAST ( NULL AS REAL ) * - 89 ) ) * COUNT ( * ) AS col0
----
-47
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7336
SELECT CAST( + ( + 59 ) AS SIGNED ) DIV - ( - + 22 ) AS col2
----
2

skipif mysql # not compatible
query I rowsort label-7336
SELECT CAST ( + ( + 59 ) AS INTEGER ) / - ( - + 22 ) AS col2
----
2

query I rowsort
SELECT 22 * - 10 * - - 44 AS col1
----
-9680

onlyif mysql # aggregate syntax: 
query I rowsort label-7338
SELECT 5 - - + COUNT( * )
----
6

skipif mysql # not compatible
query I rowsort label-7338
SELECT 5 - - + COUNT ( * )
----
6

query I rowsort
SELECT 12 * - - 61
----
732

query I rowsort
SELECT 47 + - 53 * + + 11
----
-536

query I rowsort
SELECT DISTINCT - ( + 13 ) + 0
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-7342
SELECT ALL COUNT( * ) + 56 AS col2
----
57

skipif mysql # not compatible
query I rowsort label-7342
SELECT ALL COUNT ( * ) + 56 AS col2
----
57

query I rowsort
SELECT ALL - 32 + - 23 * - + 78 * + - 61
----
-109466

query II rowsort
SELECT ALL 17 AS col0, 84 col2
----
17
84

query I rowsort
SELECT ALL - 23 + 7 AS col2
----
-16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7346
SELECT 37 * 71 * ( CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7346
SELECT 37 * 71 * ( CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT DISTINCT - 50 + 57 * - 72
----
-4154

onlyif mysql # aggregate syntax: 
query II rowsort label-7348
SELECT 46 * 17, 45 - + + COUNT( * ) AS col1
----
782
44

skipif mysql # not compatible
query II rowsort label-7348
SELECT 46 * 17, 45 - + + COUNT ( * ) AS col1
----
782
44

onlyif mysql # aggregate syntax: 
query I rowsort label-7349
SELECT ALL + COUNT( * ) + - - 29
----
30

skipif mysql # not compatible
query I rowsort label-7349
SELECT ALL + COUNT ( * ) + - - 29
----
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7350
SELECT ALL - + CASE NULLIF ( - 69, - 70 + ( ( 27 ) ) ) WHEN 89 THEN - - 52 WHEN + 78 THEN + 5 - - 17 * - COALESCE ( - 85, + - CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) - + COUNT( * ) + + + 85 * - 36 ) ELSE - - 84 DIV + 94 END DIV + 19 col2
----
0

skipif mysql # not compatible
query I rowsort label-7350
SELECT ALL - + CASE NULLIF ( - 69, - 70 + ( ( 27 ) ) ) WHEN 89 THEN - - 52 WHEN + 78 THEN + 5 - - 17 * - COALESCE ( - 85, + - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) - + COUNT ( * ) + + + 85 * - 36 ) ELSE - - 84 / + 94 END / + 19 col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7351
SELECT CAST( NULL AS SIGNED ), 43 AS col0
----
NULL
43

skipif mysql # not compatible
query II rowsort label-7351
SELECT CAST ( NULL AS INTEGER ), 43 AS col0
----
NULL
43

onlyif mysql # aggregate syntax: 
query I rowsort label-7352
SELECT + SUM( - 93 )
----
-93

skipif mysql # not compatible
query I rowsort label-7352
SELECT + SUM ( - 93 )
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-7353
SELECT DISTINCT - COUNT( * ) * - ( - 47 ) + COUNT( * )
----
-46

skipif mysql # not compatible
query I rowsort label-7353
SELECT DISTINCT - COUNT ( * ) * - ( - 47 ) + COUNT ( * )
----
-46

query I rowsort
SELECT + 36 + - ( ( - - NULLIF ( - + 2, + 83 ) ) ) + - 98 AS col0
----
-60

query I rowsort
SELECT - NULLIF ( + 98, - 78 ) AS col1
----
-98

query II rowsort
SELECT - - 86 AS col0, 96 AS col2
----
86
96

query I rowsort
SELECT ALL - 90 + + + 14 AS col1
----
-76

query I rowsort
SELECT ALL + - 53 * - 93 - - 37 AS col2
----
4966

query I rowsort
SELECT - 2 * + 0 AS col0
----
0

query II rowsort
SELECT - - 34, 28 AS col2
----
34
28

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7361
SELECT DISTINCT - CAST( - 2 AS DECIMAL ) * + CASE - ( - COUNT( ALL - 10 ) ) WHEN - 16 THEN + 34 ELSE NULL END - - 45 * 74 * - - 39 / + 91 - + + COUNT( 16 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7361
SELECT DISTINCT - CAST ( - 2 AS REAL ) * + CASE - ( - COUNT ( ALL - 10 ) ) WHEN - 16 THEN + 34 ELSE NULL END - - 45 * 74 * - - 39 / + 91 - + + COUNT ( 16 )
----
NULL

query I rowsort
SELECT ALL + - 40 - + + 99
----
-139

query I rowsort
SELECT ALL - - CASE - + 11 WHEN - NULLIF ( + - ( + 47 ), 79 ) + - + ( + 25 ) THEN + + 38 WHEN + 80 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7364
SELECT ALL + COUNT( * ) * + 85 - + 48 * 8 DIV - - COUNT( * )
----
-299

skipif mysql # not compatible
query I rowsort label-7364
SELECT ALL + COUNT ( * ) * + 85 - + 48 * 8 / - - COUNT ( * )
----
-299

query I rowsort
SELECT + 69 * ( 31 )
----
2139

query I rowsort
SELECT + 39 * 47
----
1833

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7367
SELECT COALESCE ( - COUNT( * ), 19, - CAST( + 67 AS SIGNED ) * 98 + + - COUNT( * ) + - 93 + 8 ) + + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-7367
SELECT COALESCE ( - COUNT ( * ), 19, - CAST ( + 67 AS INTEGER ) * 98 + + - COUNT ( * ) + - 93 + 8 ) + + COUNT ( * )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7368
SELECT COALESCE ( - 98, + CAST( + 36 AS SIGNED ), 38 + + 27 ) * + + 12
----
-1176

skipif mysql # not compatible
query I rowsort label-7368
SELECT COALESCE ( - 98, + CAST ( + 36 AS INTEGER ), 38 + + 27 ) * + + 12
----
-1176

query I rowsort
SELECT - 5 * - 56 * 53 AS col2
----
14840

query I rowsort
SELECT DISTINCT - 55 * - 73 AS col0
----
4015

onlyif mysql # aggregate syntax: 
query I rowsort label-7371
SELECT + 26 - - MIN( + - 8 )
----
18

skipif mysql # not compatible
query I rowsort label-7371
SELECT + 26 - - MIN ( + - 8 )
----
18

query I rowsort
SELECT DISTINCT 49 * + 57 col1
----
2793

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-7373
SELECT ALL 84 * + + 40 col2, 7 * + 9 DIV - + CASE - - 45 WHEN + + 51 THEN + + MAX( DISTINCT 61 ) ELSE - 70 END AS col2, - - 67 * - ( + - 16 ) - NULLIF ( - + 38, 58 ) AS col0
----
3360
0
1110

skipif mysql # not compatible
query III rowsort label-7373
SELECT ALL 84 * + + 40 col2, 7 * + 9 / - + CASE - - 45 WHEN + + 51 THEN + + MAX ( DISTINCT 61 ) ELSE - 70 END AS col2, - - 67 * - ( + - 16 ) - NULLIF ( - + 38, 58 ) AS col0
----
3360
0
1110

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7374
SELECT + 83 * - + 46 AS col0, + 10 DIV + NULLIF ( - SUM( + 76 ), + SUM( - 66 ) + - 6 )
----
-3818
0

skipif mysql # not compatible
query II rowsort label-7374
SELECT + 83 * - + 46 AS col0, + 10 / + NULLIF ( - SUM ( + 76 ), + SUM ( - 66 ) + - 6 )
----
-3818
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7375
SELECT 0 * + COUNT( * ) + 97 + COUNT( * )
----
98

skipif mysql # not compatible
query I rowsort label-7375
SELECT 0 * + COUNT ( * ) + 97 + COUNT ( * )
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-7376
SELECT 36 * - COUNT( * ) + - + NULLIF ( - + 90, - 48 ) AS col1
----
54

skipif mysql # not compatible
query I rowsort label-7376
SELECT 36 * - COUNT ( * ) + - + NULLIF ( - + 90, - 48 ) AS col1
----
54

query I rowsort
SELECT + NULLIF ( 30, - 35 + - 25 )
----
30

query I rowsort
SELECT ALL 41 + - 57 AS col1
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-7379
SELECT ALL COUNT( * ) + - - 83 AS col2
----
84

skipif mysql # not compatible
query I rowsort label-7379
SELECT ALL COUNT ( * ) + - - 83 AS col2
----
84

query I rowsort
SELECT ALL + 91 + - 9 + + + ( + 26 )
----
108

onlyif mysql # aggregate syntax: 
query I rowsort label-7381
SELECT ALL - 37 + + COUNT( * ) AS col1
----
-36

skipif mysql # not compatible
query I rowsort label-7381
SELECT ALL - 37 + + COUNT ( * ) AS col1
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-7382
SELECT + 6 * + SUM( ALL + 69 ) * + 61 AS col0
----
25254

skipif mysql # not compatible
query I rowsort label-7382
SELECT + 6 * + SUM ( ALL + 69 ) * + 61 AS col0
----
25254

query I rowsort
SELECT ALL ( - 61 ) + - - 23 AS col2
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-7384
SELECT DISTINCT 29 * 97 * - + COUNT( ALL - 90 ) col2
----
-2813

skipif mysql # not compatible
query I rowsort label-7384
SELECT DISTINCT 29 * 97 * - + COUNT ( ALL - 90 ) col2
----
-2813

query I rowsort
SELECT + 93 + - 17 AS col0
----
76

query I rowsort
SELECT + 51 + 4
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-7387
SELECT - 78 * - + COUNT( ALL - 16 )
----
78

skipif mysql # not compatible
query I rowsort label-7387
SELECT - 78 * - + COUNT ( ALL - 16 )
----
78

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7388
SELECT ALL 47 * - - ( CAST( NULL AS SIGNED ) ) AS col0, - ( + - ( 10 ) ) * + - 5 + - 77 * 46 + + CASE 11 WHEN - 37 + 20 * + 60 THEN NULL WHEN 70 THEN 99 + - - 47 * - 44 ELSE 68 END
----
NULL
-3524

skipif mysql # not compatible
query II rowsort label-7388
SELECT ALL 47 * - - ( CAST ( NULL AS INTEGER ) ) AS col0, - ( + - ( 10 ) ) * + - 5 + - 77 * 46 + + CASE 11 WHEN - 37 + 20 * + 60 THEN NULL WHEN 70 THEN 99 + - - 47 * - 44 ELSE 68 END
----
NULL
-3524

query I rowsort
SELECT DISTINCT 52 - - + ( + 60 ) * + + 84 AS col2
----
5092

onlyif mysql # DIV for integer division: 
query I rowsort label-7390
SELECT DISTINCT - + 80 DIV + 6 AS col1
----
-13

skipif mysql # not compatible
query I rowsort label-7390
SELECT DISTINCT - + 80 / + 6 AS col1
----
-13

query I rowsort
SELECT - - 89 + - - 10
----
99

onlyif mysql # DIV for integer division: 
query I rowsort label-7392
SELECT DISTINCT + + ( + - 37 ) DIV + - 71 + + + 66
----
66

skipif mysql # not compatible
query I rowsort label-7392
SELECT DISTINCT + + ( + - 37 ) / + - 71 + + + 66
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-7393
SELECT - + COUNT( * ) * + SUM( DISTINCT + 9 )
----
-9

skipif mysql # not compatible
query I rowsort label-7393
SELECT - + COUNT ( * ) * + SUM ( DISTINCT + 9 )
----
-9

query I rowsort
SELECT ALL + - 38 * + 76 * + 3 + 70
----
-8594

query I rowsort
SELECT - 50 + 61
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-7396
SELECT DISTINCT - - 0 * + COUNT( * ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7396
SELECT DISTINCT - - 0 * + COUNT ( * ) AS col0
----
0

query I rowsort
SELECT DISTINCT - 15 * + - 14 AS col0
----
210

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7398
SELECT DISTINCT + CAST( + + 53 AS SIGNED ) AS col1
----
53

skipif mysql # not compatible
query I rowsort label-7398
SELECT DISTINCT + CAST ( + + 53 AS INTEGER ) AS col1
----
53

query II rowsort
SELECT ALL + 70 AS col1, 81
----
70
81

query I rowsort
SELECT - 2 + - 47 col1
----
-49

query I rowsort
SELECT ALL - 94 * + - 47 AS col2
----
4418

query I rowsort
SELECT - 78 + - ( - ( + 15 ) ) * + 72
----
1002

query II rowsort
SELECT DISTINCT - 52 * - 9 + + 9 AS col0, 64 AS col1
----
477
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7404
SELECT ALL + ( CAST( + 94 AS SIGNED ) ) * 90 DIV + COUNT( * ) + + + 41 AS col0
----
8501

skipif mysql # not compatible
query I rowsort label-7404
SELECT ALL + ( CAST ( + 94 AS INTEGER ) ) * 90 / + COUNT ( * ) + + + 41 AS col0
----
8501

query I rowsort
SELECT ALL - 19 * 5 + + - 11 + - 47 * - 65 * + 41 col2
----
125149

query I rowsort
SELECT - 18 * + 19
----
-342

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7407
SELECT ALL - 2 * + - 99 * COUNT( * ) + + - SUM( DISTINCT + + CAST( 60 AS SIGNED ) ) AS col1
----
138

skipif mysql # not compatible
query I rowsort label-7407
SELECT ALL - 2 * + - 99 * COUNT ( * ) + + - SUM ( DISTINCT + + CAST ( 60 AS INTEGER ) ) AS col1
----
138

query I rowsort
SELECT DISTINCT + CASE 7 WHEN 94 THEN + - 74 ELSE NULL END * - 23 / - 9 + + 70 + + 6 * + 49 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7409
SELECT 23 * + 82 + - 98 + + COUNT( * ) * COUNT( * ) AS col2
----
1789

skipif mysql # not compatible
query I rowsort label-7409
SELECT 23 * + 82 + - 98 + + COUNT ( * ) * COUNT ( * ) AS col2
----
1789

query I rowsort
SELECT DISTINCT - 9 * - - 72 + 93 AS col2
----
-555

onlyif mysql # aggregate syntax: 
query II rowsort label-7411
SELECT DISTINCT 17 * 42 + + 57, COUNT( * ) AS col1
----
771
1

skipif mysql # not compatible
query II rowsort label-7411
SELECT DISTINCT 17 * 42 + + 57, COUNT ( * ) AS col1
----
771
1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7412
SELECT + 65 * + 17 * MIN( DISTINCT CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7412
SELECT + 65 * + 17 * MIN ( DISTINCT CAST ( NULL AS REAL ) )
----
NULL

query I rowsort
SELECT ALL 88 * - - 83
----
7304

onlyif mysql # aggregate syntax: 
query I rowsort label-7414
SELECT - 94 * COUNT( * ) AS col0
----
-94

skipif mysql # not compatible
query I rowsort label-7414
SELECT - 94 * COUNT ( * ) AS col0
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-7415
SELECT - MAX( - 39 ) * 90 - - + 5
----
3515

skipif mysql # not compatible
query I rowsort label-7415
SELECT - MAX ( - 39 ) * 90 - - + 5
----
3515

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7416
SELECT - CASE + CAST( NULL AS SIGNED ) WHEN COUNT( * ) THEN + - COUNT( ALL - 52 ) + - CAST( 2 AS DECIMAL ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7416
SELECT - CASE + CAST ( NULL AS INTEGER ) WHEN COUNT ( * ) THEN + - COUNT ( ALL - 52 ) + - CAST ( 2 AS REAL ) ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7417
SELECT NULLIF ( 33, - COALESCE ( 61, 73 + - AVG ( CAST( NULL AS SIGNED ) ) ) + COUNT( * ) + - - 47 )
----
33

skipif mysql # not compatible
query I rowsort label-7417
SELECT NULLIF ( 33, - COALESCE ( 61, 73 + - AVG ( CAST ( NULL AS INTEGER ) ) ) + COUNT ( * ) + - - 47 )
----
33

query I rowsort
SELECT ALL - 54 * - 5
----
270

onlyif mysql # aggregate syntax: 
query I rowsort label-7419
SELECT + - COALESCE ( 42, - 3, COUNT( * ) + - 83 * - 19 ) * 69
----
-2898

skipif mysql # not compatible
query I rowsort label-7419
SELECT + - COALESCE ( 42, - 3, COUNT ( * ) + - 83 * - 19 ) * 69
----
-2898

query I rowsort
SELECT ALL - 98 * - 95 AS col2
----
9310

onlyif mysql # aggregate syntax: 
query I rowsort label-7421
SELECT - CASE COALESCE ( + ( + 96 ), + COUNT( * ), COUNT( * ) * + ( - 67 ) * - COUNT( * ) ) WHEN 86 THEN NULL ELSE 43 + + + 66 * 69 + + 13 + + - 2 * + NULLIF ( 60, + 38 ) * - + COUNT( * ) + - COUNT( * ) END
----
-4729

skipif mysql # not compatible
query I rowsort label-7421
SELECT - CASE COALESCE ( + ( + 96 ), + COUNT ( * ), COUNT ( * ) * + ( - 67 ) * - COUNT ( * ) ) WHEN 86 THEN NULL ELSE 43 + + + 66 * 69 + + 13 + + - 2 * + NULLIF ( 60, + 38 ) * - + COUNT ( * ) + - COUNT ( * ) END
----
-4729

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7422
SELECT ALL 66, 71 * - 18 + + + MIN( DISTINCT - 74 ) + 53 + + CASE 70 WHEN 28 THEN NULL ELSE CAST( NULL AS SIGNED ) * + 37 + + 64 END * + 53 AS col0
----
66
NULL

skipif mysql # not compatible
query II rowsort label-7422
SELECT ALL 66, 71 * - 18 + + + MIN ( DISTINCT - 74 ) + 53 + + CASE 70 WHEN 28 THEN NULL ELSE CAST ( NULL AS INTEGER ) * + 37 + + 64 END * + 53 AS col0
----
66
NULL

query I rowsort
SELECT DISTINCT - + 52 * + + 4 AS col2
----
-208

query II rowsort
SELECT DISTINCT 0 AS col1, 82
----
0
82

query I rowsort
SELECT + - 49 * 90 AS col0
----
-4410

query I rowsort
SELECT + NULLIF ( 6, + 41 / - ( 19 ) * + - 96 ) * - + 5
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-7427
SELECT ALL 81 * 14 * + COUNT( * ) AS col1
----
1134

skipif mysql # not compatible
query I rowsort label-7427
SELECT ALL 81 * 14 * + COUNT ( * ) AS col1
----
1134

query I rowsort
SELECT DISTINCT - 5 * 37 AS col2
----
-185

onlyif mysql # aggregate syntax: 
query II rowsort label-7429
SELECT ALL - COUNT( * ), - 38 * + 40 * 91 AS col2
----
-1
-138320

skipif mysql # not compatible
query II rowsort label-7429
SELECT ALL - COUNT ( * ), - 38 * + 40 * 91 AS col2
----
-1
-138320

query I rowsort
SELECT + ( 30 ) * ( - 5 ) * - 37 AS col0
----
5550

query I rowsort
SELECT ALL + 77 * + - 39 AS col1
----
-3003

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7432
SELECT DISTINCT + 92, 54 - - + 39 + 0 DIV - CASE + COUNT( * ) WHEN - + 6 THEN NULL WHEN + MAX( - + 28 ) * + 79 * 7 THEN + ( NULLIF ( - 86, CASE 47 WHEN + 9 - - 87 THEN - - 82 WHEN + 63 + NULLIF ( - 17, + COUNT( * ) * - MAX( DISTINCT + 99 ) ) * 4 THEN NULL WHEN - 97 THEN 34 DIV 86 END * + ( - 3 - 32 ) ) ) WHEN - ( 56 ) * 83 THEN NULL ELSE 8 * + 54 END + 38 AS col1
----
92
131

skipif mysql # not compatible
query II rowsort label-7432
SELECT DISTINCT + 92, 54 - - + 39 + 0 / - CASE + COUNT ( * ) WHEN - + 6 THEN NULL WHEN + MAX ( - + 28 ) * + 79 * 7 THEN + ( NULLIF ( - 86, CASE 47 WHEN + 9 - - 87 THEN - - 82 WHEN + 63 + NULLIF ( - 17, + COUNT ( * ) * - MAX ( DISTINCT + 99 ) ) * 4 THEN NULL WHEN - 97 THEN 34 / 86 END * + ( - 3 - 32 ) ) ) WHEN - ( 56 ) * 83 THEN NULL ELSE 8 * + 54 END + 38 AS col1
----
92
131

query I rowsort
SELECT DISTINCT CASE + + 50 WHEN CASE - + 2 WHEN + - 93 * + - NULLIF ( - + 45, + 1 ) * 30 - 5 THEN - 45 ELSE NULL END * + 58 + - 75 THEN - 42 ELSE NULL END * - 59 * + + 37 * - 24 AS col0
----
NULL

query I rowsort
SELECT ALL + 22 + + + 69 + - 67 + + 54 * - 71 + 64 AS col0
----
-3746

query I rowsort
SELECT + 14 * 11
----
154

onlyif mysql # aggregate syntax: 
query I rowsort label-7436
SELECT DISTINCT COUNT( * ) + + NULLIF ( + 17, - ( 14 ) + - 6 ) - COUNT( * )
----
17

skipif mysql # not compatible
query I rowsort label-7436
SELECT DISTINCT COUNT ( * ) + + NULLIF ( + 17, - ( 14 ) + - 6 ) - COUNT ( * )
----
17

onlyif mysql # aggregate syntax: 
query II rowsort label-7437
SELECT DISTINCT - 90 + 4 col1, COUNT( * ) AS col1
----
-86
1

skipif mysql # not compatible
query II rowsort label-7437
SELECT DISTINCT - 90 + 4 col1, COUNT ( * ) AS col1
----
-86
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7438
SELECT ALL + COUNT( * ) + 55 AS col1
----
56

skipif mysql # not compatible
query I rowsort label-7438
SELECT ALL + COUNT ( * ) + 55 AS col1
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-7439
SELECT DISTINCT + 9 * COUNT( * ) AS col2
----
9

skipif mysql # not compatible
query I rowsort label-7439
SELECT DISTINCT + 9 * COUNT ( * ) AS col2
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7440
SELECT DISTINCT - CAST( + + 88 AS SIGNED )
----
-88

skipif mysql # not compatible
query I rowsort label-7440
SELECT DISTINCT - CAST ( + + 88 AS INTEGER )
----
-88

query I rowsort
SELECT ALL - 36 + 14 AS col2
----
-22

query I rowsort
SELECT 31 + - 82
----
-51

query II rowsort
SELECT ALL - 64 * - + 16 AS col0, 67 AS col2
----
1024
67

onlyif mysql # aggregate syntax: 
query I rowsort label-7444
SELECT DISTINCT + COUNT( * ) * + + 3 * - COUNT( + 12 ) AS col1
----
-3

skipif mysql # not compatible
query I rowsort label-7444
SELECT DISTINCT + COUNT ( * ) * + + 3 * - COUNT ( + 12 ) AS col1
----
-3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7445
SELECT ALL - CASE + + 57 WHEN + 8 / CAST( NULL AS DECIMAL ) + - + 29 THEN - - 38 ELSE + - 85 END - + 26 - - 24 AS col0
----
83

skipif mysql # not compatible
query I rowsort label-7445
SELECT ALL - CASE + + 57 WHEN + 8 / CAST ( NULL AS REAL ) + - + 29 THEN - - 38 ELSE + - 85 END - + 26 - - 24 AS col0
----
83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7446
SELECT 30 + + CAST( + - 58 AS SIGNED ) - + 64
----
-92

skipif mysql # not compatible
query I rowsort label-7446
SELECT 30 + + CAST ( + - 58 AS INTEGER ) - + 64
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-7447
SELECT MAX( 18 ) - 94
----
-76

skipif mysql # not compatible
query I rowsort label-7447
SELECT MAX ( 18 ) - 94
----
-76

query I rowsort
SELECT DISTINCT 81 * + 47
----
3807

onlyif mysql # DIV for integer division: 
query I rowsort label-7449
SELECT ( + 53 ) DIV - - 56
----
0

skipif mysql # not compatible
query I rowsort label-7449
SELECT ( + 53 ) / - - 56
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7450
SELECT ALL + + 46 DIV 57
----
0

skipif mysql # not compatible
query I rowsort label-7450
SELECT ALL + + 46 / 57
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7451
SELECT DISTINCT + - 96 * COUNT( * )
----
-96

skipif mysql # not compatible
query I rowsort label-7451
SELECT DISTINCT + - 96 * COUNT ( * )
----
-96

onlyif mysql # aggregate syntax: 
query II rowsort label-7452
SELECT + - 3 * + 51 + + ( SUM( + + NULLIF ( + 19, 44 * 65 * - 64 * 36 + 96 * + + 26 ) ) ), - 66 * + MIN( + 19 ) AS col0
----
-134
-1254

skipif mysql # not compatible
query II rowsort label-7452
SELECT + - 3 * + 51 + + ( SUM ( + + NULLIF ( + 19, 44 * 65 * - 64 * 36 + 96 * + + 26 ) ) ), - 66 * + MIN ( + 19 ) AS col0
----
-134
-1254

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7453
SELECT DISTINCT + COALESCE ( + NULLIF ( + 52, COUNT( * ) ), + + 25, - 91 + + + 55 DIV 73 * - 4 ), 60 col0
----
52
60

skipif mysql # not compatible
query II rowsort label-7453
SELECT DISTINCT + COALESCE ( + NULLIF ( + 52, COUNT ( * ) ), + + 25, - 91 + + + 55 / 73 * - 4 ), 60 col0
----
52
60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7454
SELECT + CAST( NULL AS SIGNED ) + SUM( - 6 ) + 37 * - COUNT( * ) + - 41
----
NULL

skipif mysql # not compatible
query I rowsort label-7454
SELECT + CAST ( NULL AS INTEGER ) + SUM ( - 6 ) + 37 * - COUNT ( * ) + - 41
----
NULL

query I rowsort
SELECT - - ( + - 61 ) col2
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-7456
SELECT 43 + + + SUM( - + 98 ) AS col1
----
-55

skipif mysql # not compatible
query I rowsort label-7456
SELECT 43 + + + SUM ( - + 98 ) AS col1
----
-55

query I rowsort
SELECT ALL - 6 + + - 48
----
-54

query I rowsort
SELECT ( 72 ) * - - 12
----
864

query I rowsort
SELECT ALL - 26 + + 22 - + - 75 * + 24 * + 35
----
62996

query I rowsort
SELECT 19 + 78 AS col1
----
97

query I rowsort
SELECT 68 * 25 + - + 47 AS col2
----
1653

query I rowsort
SELECT 12 + + - 92 AS col0
----
-80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7463
SELECT ALL 82 + - + 12 * - CAST( + - 50 AS SIGNED ) + - 16
----
-534

skipif mysql # not compatible
query I rowsort label-7463
SELECT ALL 82 + - + 12 * - CAST ( + - 50 AS INTEGER ) + - 16
----
-534

query I rowsort
SELECT 58 + + + 75 AS col2
----
133

query I rowsort
SELECT ALL 61 + - + 44 - 81 AS col1
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-7466
SELECT DISTINCT NULLIF ( 71, + 30 + - + COALESCE ( - COUNT( 42 ), - COUNT( * ) ) + - - MIN( DISTINCT 7 ) ) + - 39 + + ( + 77 )
----
109

skipif mysql # not compatible
query I rowsort label-7466
SELECT DISTINCT NULLIF ( 71, + 30 + - + COALESCE ( - COUNT ( 42 ), - COUNT ( * ) ) + - - MIN ( DISTINCT 7 ) ) + - 39 + + ( + 77 )
----
109

query II rowsort
SELECT 41 + 12 * 74 col0, - 58 AS col1
----
929
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-7468
SELECT DISTINCT ( 69 ) + + + NULLIF ( - 80, COUNT( * ) + + COUNT( - 1 ) ) + + COALESCE ( - 56, 81, - 24 ) AS col1
----
-67

skipif mysql # not compatible
query I rowsort label-7468
SELECT DISTINCT ( 69 ) + + + NULLIF ( - 80, COUNT ( * ) + + COUNT ( - 1 ) ) + + COALESCE ( - 56, 81, - 24 ) AS col1
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-7469
SELECT + MAX( DISTINCT 10 )
----
10

skipif mysql # not compatible
query I rowsort label-7469
SELECT + MAX ( DISTINCT 10 )
----
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7470
SELECT CAST( NULL AS SIGNED ) * + 73
----
NULL

skipif mysql # not compatible
query I rowsort label-7470
SELECT CAST ( NULL AS INTEGER ) * + 73
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7471
SELECT ALL - 69 col0, AVG ( - 26 ) * - - 97 + + 61 * + COUNT( * ) + 9 / - CAST( NULL AS SIGNED )
----
-69
NULL

skipif mysql # not compatible
query II rowsort label-7471
SELECT ALL - 69 col0, AVG ( - 26 ) * - - 97 + + 61 * + COUNT ( * ) + 9 / - CAST ( NULL AS INTEGER )
----
-69
NULL

query I rowsort
SELECT DISTINCT + 87 - - 1
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-7473
SELECT DISTINCT - MIN( 93 ) AS col2
----
-93

skipif mysql # not compatible
query I rowsort label-7473
SELECT DISTINCT - MIN ( 93 ) AS col2
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-7474
SELECT ALL 71 - + COUNT( * )
----
70

skipif mysql # not compatible
query I rowsort label-7474
SELECT ALL 71 - + COUNT ( * )
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-7475
SELECT COALESCE ( + 48, 64, - - 94 ) * 69 * - COUNT( * ) * + 41 AS col1
----
-135792

skipif mysql # not compatible
query I rowsort label-7475
SELECT COALESCE ( + 48, 64, - - 94 ) * 69 * - COUNT ( * ) * + 41 AS col1
----
-135792

onlyif mysql # aggregate syntax: 
query II rowsort label-7476
SELECT + 57 AS col1, COUNT( * ) - + 24
----
57
-23

skipif mysql # not compatible
query II rowsort label-7476
SELECT + 57 AS col1, COUNT ( * ) - + 24
----
57
-23

query I rowsort
SELECT - ( + 78 ) * + 76 * + NULLIF ( ( + 84 ), - 29 ) + - 56
----
-498008

onlyif mysql # DIV for integer division: 
query I rowsort label-7478
SELECT 75 DIV - 1
----
-75

skipif mysql # not compatible
query I rowsort label-7478
SELECT 75 / - 1
----
-75

query I rowsort
SELECT ALL - 69 * - ( - 45 ) AS col2
----
-3105

query I rowsort
SELECT 46 * 64 AS col0
----
2944

onlyif mysql # aggregate syntax: 
query I rowsort label-7481
SELECT DISTINCT - 60 * - COUNT( * )
----
60

skipif mysql # not compatible
query I rowsort label-7481
SELECT DISTINCT - 60 * - COUNT ( * )
----
60

query II rowsort
SELECT DISTINCT - 88 AS col2, 59 AS col1
----
-88
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7483
SELECT DISTINCT + + 44 * - + MIN( ALL + - CAST( 4 AS SIGNED ) ) AS col1
----
176

skipif mysql # not compatible
query I rowsort label-7483
SELECT DISTINCT + + 44 * - + MIN ( ALL + - CAST ( 4 AS INTEGER ) ) AS col1
----
176

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7484
SELECT DISTINCT - ( - ( - 61 ) ) col1, CAST( NULL AS DECIMAL ) AS col1
----
-61
NULL

skipif mysql # not compatible
query II rowsort label-7484
SELECT DISTINCT - ( - ( - 61 ) ) col1, CAST ( NULL AS REAL ) AS col1
----
-61
NULL

query I rowsort
SELECT + + 70 * - + 89 + - + 3
----
-6233

onlyif mysql # aggregate syntax: 
query I rowsort label-7486
SELECT ALL + 71 * - 22 * - + COUNT( * )
----
1562

skipif mysql # not compatible
query I rowsort label-7486
SELECT ALL + 71 * - 22 * - + COUNT ( * )
----
1562

query I rowsort
SELECT + 35 * 21 + + 35 - 42 AS col2
----
728

onlyif mysql # aggregate syntax: 
query I rowsort label-7488
SELECT MAX( + + 95 ) * 90
----
8550

skipif mysql # not compatible
query I rowsort label-7488
SELECT MAX ( + + 95 ) * 90
----
8550

onlyif mysql # aggregate syntax: 
query I rowsort label-7489
SELECT - MAX( - + 77 )
----
77

skipif mysql # not compatible
query I rowsort label-7489
SELECT - MAX ( - + 77 )
----
77

query I rowsort
SELECT - ( - ( - 70 ) ) AS col1
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-7491
SELECT ALL 99 + COUNT( * ) AS col1
----
100

skipif mysql # not compatible
query I rowsort label-7491
SELECT ALL 99 + COUNT ( * ) AS col1
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-7492
SELECT - ( SUM( 91 ) ) * + COUNT( * ) + - - 51 - + - 15 + 88 AS col2
----
63

skipif mysql # not compatible
query I rowsort label-7492
SELECT - ( SUM ( 91 ) ) * + COUNT ( * ) + - - 51 - + - 15 + 88 AS col2
----
63

query I rowsort
SELECT DISTINCT + 39 * - 12
----
-468

onlyif mysql # aggregate syntax: 
query I rowsort label-7494
SELECT DISTINCT - COUNT( * ) + + + 11 AS col1
----
10

skipif mysql # not compatible
query I rowsort label-7494
SELECT DISTINCT - COUNT ( * ) + + + 11 AS col1
----
10

onlyif mysql # aggregate syntax: 
query II rowsort label-7495
SELECT DISTINCT NULLIF ( 96, SUM( + 83 ) + 85 ), - 53 AS col2
----
96
-53

skipif mysql # not compatible
query II rowsort label-7495
SELECT DISTINCT NULLIF ( 96, SUM ( + 83 ) + 85 ), - 53 AS col2
----
96
-53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7496
SELECT - + 89 - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7496
SELECT - + 89 - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7497
SELECT - 43 DIV + 51
----
0

skipif mysql # not compatible
query I rowsort label-7497
SELECT - 43 / + 51
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7498
SELECT + 49 DIV 72
----
0

skipif mysql # not compatible
query I rowsort label-7498
SELECT + 49 / 72
----
0

query II rowsort
SELECT 47 AS col0, 45 * 81 + 86 * - ( - - 76 ) - + 85 AS col1
----
47
-2976

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7500
SELECT ALL ( - 64 ) + - CAST( NULL AS SIGNED ) / - 28 * - 90 * - COUNT( * ), COUNT( * ) * - + 62 AS col2
----
NULL
-62

skipif mysql # not compatible
query II rowsort label-7500
SELECT ALL ( - 64 ) + - CAST ( NULL AS INTEGER ) / - 28 * - 90 * - COUNT ( * ), COUNT ( * ) * - + 62 AS col2
----
NULL
-62

query II rowsort
SELECT 53 AS col0, + ( - 8 ) AS col2
----
53
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-7502
SELECT ALL COUNT( * ) - + COUNT( * ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7502
SELECT ALL COUNT ( * ) - + COUNT ( * ) AS col1
----
0

query I rowsort
SELECT ALL ( - - ( - 33 ) )
----
-33

query II rowsort
SELECT DISTINCT 38 AS col2, - 69 AS col2
----
38
-69

query I rowsort
SELECT ALL 1 * - 0
----
0

query I rowsort
SELECT - 60 + + 25
----
-35

query I rowsort
SELECT - 77 + + 27
----
-50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7508
SELECT + COALESCE ( - 41, - MIN( ALL - 82 ) * - 9 + CASE - - 7 WHEN - COUNT( * ) THEN NULL WHEN 27 - - - CAST( NULL AS SIGNED ) THEN - 27 ELSE CASE CASE - ( + 95 ) WHEN 34 + + 27 THEN NULL WHEN + 54 THEN 83 WHEN + + 8 / - 10 - - 56 + + + 28 THEN NULL ELSE + + 89 * 57 * + - CASE 53 WHEN + 61 THEN 28 * 7 END + 68 * COALESCE ( + 53 / - 5 + AVG ( ALL 54 ), 50 ) END WHEN - 18 * 95 THEN NULL ELSE 37 * - 99 - CASE + 30 WHEN + 51 * 83 + 74 / NULLIF ( 65, - 13 * - 61 ) THEN + 57 ELSE NULL END END END - - CASE 55 WHEN CASE COALESCE ( - 20, ( 88 ) * 4 ) WHEN + COUNT( * ) THEN 99 WHEN 82 + 85 THEN NULL END / + 98 THEN - 20 * - CAST( NULL AS SIGNED ) + + 17 WHEN SUM( ( - ( 73 ) ) ) - 8 THEN NULL END * + 5, MIN( ALL 84 ) ) AS col0
----
-41

skipif mysql # not compatible
query I rowsort label-7508
SELECT + COALESCE ( - 41, - MIN ( ALL - 82 ) * - 9 + CASE - - 7 WHEN - COUNT ( * ) THEN NULL WHEN 27 - - - CAST ( NULL AS INTEGER ) THEN - 27 ELSE CASE CASE - ( + 95 ) WHEN 34 + + 27 THEN NULL WHEN + 54 THEN 83 WHEN + + 8 / - 10 - - 56 + + + 28 THEN NULL ELSE + + 89 * 57 * + - CASE 53 WHEN + 61 THEN 28 * 7 END + 68 * COALESCE ( + 53 / - 5 + AVG ( ALL 54 ), 50 ) END WHEN - 18 * 95 THEN NULL ELSE 37 * - 99 - CASE + 30 WHEN + 51 * 83 + 74 / NULLIF ( 65, - 13 * - 61 ) THEN + 57 ELSE NULL END END END - - CASE 55 WHEN CASE COALESCE ( - 20, ( 88 ) * 4 ) WHEN + COUNT ( * ) THEN 99 WHEN 82 + 85 THEN NULL END / + 98 THEN - 20 * - CAST ( NULL AS INTEGER ) + + 17 WHEN SUM ( ( - ( 73 ) ) ) - 8 THEN NULL END * + 5, MIN ( ALL 84 ) ) AS col0
----
-41

query I rowsort
SELECT + 59 * 23 AS col1
----
1357

onlyif mysql # aggregate syntax: 
query I rowsort label-7510
SELECT ALL 65 * COUNT( * )
----
65

skipif mysql # not compatible
query I rowsort label-7510
SELECT ALL 65 * COUNT ( * )
----
65

onlyif mysql # aggregate syntax: 
query II rowsort label-7511
SELECT + CASE - 17 WHEN - + COUNT( DISTINCT - 15 ) / + ( - + 38 ) THEN + - 41 * + 76 WHEN - + 41 + 37 * - NULLIF ( 33, + NULLIF ( 37, 15 ) * - 61 + 88 * + + 30 ) THEN + 40 + - 61 - + 41 ELSE NULL END AS col0, - 49 - - 9 AS col2
----
NULL
-40

skipif mysql # not compatible
query II rowsort label-7511
SELECT + CASE - 17 WHEN - + COUNT ( DISTINCT - 15 ) / + ( - + 38 ) THEN + - 41 * + 76 WHEN - + 41 + 37 * - NULLIF ( 33, + NULLIF ( 37, 15 ) * - 61 + 88 * + + 30 ) THEN + 40 + - 61 - + 41 ELSE NULL END AS col0, - 49 - - 9 AS col2
----
NULL
-40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7512
SELECT + 6 + + COALESCE ( 15, - 87, - CASE - + COUNT( * ) WHEN + MIN( ALL 89 ) * + 45 THEN - 59 DIV - + 64 + + ( - CASE 58 WHEN 67 + + 70 * COUNT( * ) DIV - + 61 THEN ( 31 ) END ) * - + ( + 11 ) + + + 41 + + 95 * + 91 ELSE + + 8 DIV - 43 END ) - + 97 * ( 89 ) col0
----
-8612

skipif mysql # not compatible
query I rowsort label-7512
SELECT + 6 + + COALESCE ( 15, - 87, - CASE - + COUNT ( * ) WHEN + MIN ( ALL 89 ) * + 45 THEN - 59 / - + 64 + + ( - CASE 58 WHEN 67 + + 70 * COUNT ( * ) / - + 61 THEN ( 31 ) END ) * - + ( + 11 ) + + + 41 + + 95 * + 91 ELSE + + 8 / - 43 END ) - + 97 * ( 89 ) col0
----
-8612

onlyif mysql # aggregate syntax: 
query I rowsort label-7513
SELECT CASE 94 WHEN - COUNT( * ) * + ( 66 ) + + ( + 40 ) + + 52 THEN - - 78 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7513
SELECT CASE 94 WHEN - COUNT ( * ) * + ( 66 ) + + ( + 40 ) + + 52 THEN - - 78 END AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7514
SELECT + + 11 DIV + 42 + + COUNT( * ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7514
SELECT + + 11 / + 42 + + COUNT ( * ) AS col0
----
1

query I rowsort
SELECT + + 6 * - + 42 AS col2
----
-252

onlyif mysql # aggregate syntax: 
query I rowsort label-7516
SELECT + + 80 * MAX( ALL + - 97 ) + - 61
----
-7821

skipif mysql # not compatible
query I rowsort label-7516
SELECT + + 80 * MAX ( ALL + - 97 ) + - 61
----
-7821

query II rowsort
SELECT ALL + 13, + 92 AS col2
----
13
92

query I rowsort
SELECT - - 31 * - 6 * 18 col1
----
-3348

query II rowsort
SELECT + 46 AS col1, 19 AS col0
----
46
19

onlyif mysql # aggregate syntax: 
query I rowsort label-7520
SELECT DISTINCT + - NULLIF ( - COUNT( * ), + 22 )
----
1

skipif mysql # not compatible
query I rowsort label-7520
SELECT DISTINCT + - NULLIF ( - COUNT ( * ), + 22 )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-7521
SELECT ALL - + 79 DIV - 92 col0
----
0

skipif mysql # not compatible
query I rowsort label-7521
SELECT ALL - + 79 / - 92 col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7522
SELECT + COUNT( * ) DIV 97 + - MAX( DISTINCT 50 ) AS col0, - 14 AS col0
----
-50
-14

skipif mysql # not compatible
query II rowsort label-7522
SELECT + COUNT ( * ) / 97 + - MAX ( DISTINCT 50 ) AS col0, - 14 AS col0
----
-50
-14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7523
SELECT ALL - + NULLIF ( 26, COUNT( * ) * - - 81 ) * COALESCE ( 40, - + COALESCE ( - 85, 61 + + 98 * 69 ) * 62 * + + 98, + + 66 + + COUNT( * ) ) * + + 55 + + ( - CAST( - - 47 AS SIGNED ) ) + - + CAST( + 44 AS SIGNED )
----
-57291

skipif mysql # not compatible
query I rowsort label-7523
SELECT ALL - + NULLIF ( 26, COUNT ( * ) * - - 81 ) * COALESCE ( 40, - + COALESCE ( - 85, 61 + + 98 * 69 ) * 62 * + + 98, + + 66 + + COUNT ( * ) ) * + + 55 + + ( - CAST ( - - 47 AS INTEGER ) ) + - + CAST ( + 44 AS INTEGER )
----
-57291

onlyif mysql # aggregate syntax: 
query I rowsort label-7524
SELECT ALL - - 66 * - CASE + COUNT( * ) WHEN - 76 THEN + 40 WHEN MIN( ALL + 21 ) THEN 24 ELSE NULL END + + 96
----
NULL

skipif mysql # not compatible
query I rowsort label-7524
SELECT ALL - - 66 * - CASE + COUNT ( * ) WHEN - 76 THEN + 40 WHEN MIN ( ALL + 21 ) THEN 24 ELSE NULL END + + 96
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7525
SELECT SUM( CASE + - 59 WHEN - 31 THEN + 1 ELSE NULL END ) * + 40 - + 36 * - 63 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7525
SELECT SUM ( CASE + - 59 WHEN - 31 THEN + 1 ELSE NULL END ) * + 40 - + 36 * - 63 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7526
SELECT ALL + - NULLIF ( + + 77, 84 ) * - - COUNT( * ) - 25 + - 72 + - + COUNT( * )
----
-175

skipif mysql # not compatible
query I rowsort label-7526
SELECT ALL + - NULLIF ( + + 77, 84 ) * - - COUNT ( * ) - 25 + - 72 + - + COUNT ( * )
----
-175

onlyif mysql # aggregate syntax: 
query I rowsort label-7527
SELECT - + 4 * + 16 * - NULLIF ( - SUM( + - 89 ), + + ( - - 50 ) / - 4 )
----
5696

skipif mysql # not compatible
query I rowsort label-7527
SELECT - + 4 * + 16 * - NULLIF ( - SUM ( + - 89 ), + + ( - - 50 ) / - 4 )
----
5696

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7528
SELECT ALL MAX( 41 ) * NULLIF ( + CASE - 66 WHEN + - ( + 17 ) DIV + AVG ( ALL 2 ) + + COUNT( * ) THEN - SUM( DISTINCT - - 49 ) * - + 35 * + - 94 - + + 64 * + 37 * 55 + - 33 DIV - 50 ELSE - 29 * 34 END, + + CAST( - 13 AS SIGNED ) ) + COUNT( * ) + + 97 * + 58
----
-34799

skipif mysql # not compatible
query I rowsort label-7528
SELECT ALL MAX ( 41 ) * NULLIF ( + CASE - 66 WHEN + - ( + 17 ) / + AVG ( ALL 2 ) + + COUNT ( * ) THEN - SUM ( DISTINCT - - 49 ) * - + 35 * + - 94 - + + 64 * + 37 * 55 + - 33 / - 50 ELSE - 29 * 34 END, + + CAST ( - 13 AS INTEGER ) ) + COUNT ( * ) + + 97 * + 58
----
-34799

onlyif mysql # aggregate syntax: 
query I rowsort label-7529
SELECT MAX( + 78 ) AS col1
----
78

skipif mysql # not compatible
query I rowsort label-7529
SELECT MAX ( + 78 ) AS col1
----
78

query I rowsort
SELECT + 20 + - - 37 AS col0
----
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7531
SELECT - + ( CAST( NULL AS SIGNED ) ) AS col1, - COALESCE ( COUNT( * ), 63 ) AS col0
----
NULL
-1

skipif mysql # not compatible
query II rowsort label-7531
SELECT - + ( CAST ( NULL AS INTEGER ) ) AS col1, - COALESCE ( COUNT ( * ), 63 ) AS col0
----
NULL
-1

query I rowsort
SELECT - 3 - 0 - + + 89 AS col2
----
-92

onlyif mysql # aggregate syntax: 
query III rowsort label-7533
SELECT DISTINCT - 69 AS col1, + 1, + MIN( DISTINCT + 97 ) AS col2
----
-69
1
97

skipif mysql # not compatible
query III rowsort label-7533
SELECT DISTINCT - 69 AS col1, + 1, + MIN ( DISTINCT + 97 ) AS col2
----
-69
1
97

query I rowsort
SELECT - 47 + - 98
----
-145

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7535
SELECT - COALESCE ( - CAST( NULL AS SIGNED ), - - 90 + COUNT( * ) ) - + - COUNT( ALL + 80 ) + + + 35 + - CASE 34 WHEN + + 28 THEN NULL WHEN + COALESCE ( + 56, + 63 ) * COUNT( * ) + 68 THEN + - CAST( 5 AS SIGNED ) * + 78 END * COUNT( * ) * 70 * - 4 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7535
SELECT - COALESCE ( - CAST ( NULL AS INTEGER ), - - 90 + COUNT ( * ) ) - + - COUNT ( ALL + 80 ) + + + 35 + - CASE 34 WHEN + + 28 THEN NULL WHEN + COALESCE ( + 56, + 63 ) * COUNT ( * ) + 68 THEN + - CAST ( 5 AS INTEGER ) * + 78 END * COUNT ( * ) * 70 * - 4 AS col2
----
NULL

query I rowsort
SELECT - + 5 * - 48
----
240

query II rowsort
SELECT - 60 + - + 56 col1, 84 AS col2
----
-116
84

query I rowsort
SELECT ALL - 4 - - + 64 - + 20 * - 8 + + 65 AS col1
----
285

onlyif mysql # aggregate syntax: 
query I rowsort label-7539
SELECT - 37 + + 93 - - CASE - ( + 24 ) WHEN 59 - + NULLIF ( + 69, 99 / 71 * - 2 ) + - 16 + - - 53 THEN + COUNT( * ) WHEN - + 58 THEN - COUNT( * ) * - + 55 + + 54 ELSE - - 25 + - + 83 END * + 45 * - + 82 * - 76 AS col2
----
-16265464

skipif mysql # not compatible
query I rowsort label-7539
SELECT - 37 + + 93 - - CASE - ( + 24 ) WHEN 59 - + NULLIF ( + 69, 99 / 71 * - 2 ) + - 16 + - - 53 THEN + COUNT ( * ) WHEN - + 58 THEN - COUNT ( * ) * - + 55 + + 54 ELSE - - 25 + - + 83 END * + 45 * - + 82 * - 76 AS col2
----
-16265464

query I rowsort
SELECT DISTINCT COALESCE ( ( + - 63 ), + 28 ) AS col0
----
-63

query I rowsort
SELECT - 13 + + - 23
----
-36

query II rowsort
SELECT - 72 * - 74 * - 85, 80 * 75 AS col2
----
-452880
6000

onlyif mysql # aggregate syntax: 
query I rowsort label-7543
SELECT - 90 + SUM( + 49 ) - + 65 AS col2
----
-106

skipif mysql # not compatible
query I rowsort label-7543
SELECT - 90 + SUM ( + 49 ) - + 65 AS col2
----
-106

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7544
SELECT ALL - CAST( NULL AS SIGNED ) - + COALESCE ( - 64, 53 + + ( + + CAST( NULL AS SIGNED ) ), AVG ( ALL - ( - 8 ) ) + + + COUNT( * ) + - 92 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7544
SELECT ALL - CAST ( NULL AS INTEGER ) - + COALESCE ( - 64, 53 + + ( + + CAST ( NULL AS INTEGER ) ), AVG ( ALL - ( - 8 ) ) + + + COUNT ( * ) + - 92 ) AS col2
----
NULL

query I rowsort
SELECT - 77 * 55 AS col2
----
-4235

query I rowsort
SELECT - 36 * + + ( - - 78 ) * - 87 + - 32 * - ( + - 59 ) + - 13 * - + NULLIF ( - - 8, CASE WHEN ( NOT - 24 IS NOT NULL ) THEN - - 28 + - 37 END ) - - + 88 AS col2
----
242600

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7547
SELECT + AVG ( - - 23 ) + + CASE WHEN + 10 >= + 83 * 90 THEN 77 / COALESCE ( - + 49, - + 1 * NULLIF ( - + NULLIF ( + 1, + 60 ), - + 39 ) - + 0 + - - CAST( NULL AS SIGNED ) + + SUM( - 7 ), - 41 ) * - - NULLIF ( + - 96, - AVG ( DISTINCT CAST( + NULLIF ( + CAST( - 41 AS SIGNED ), + CASE - 32 WHEN - 53 THEN 48 * 77 END * 19 + + 71 ) AS SIGNED ) ) - 70 ) * + 26 END * + 37
----
NULL

skipif mysql # not compatible
query I rowsort label-7547
SELECT + AVG ( - - 23 ) + + CASE WHEN + 10 >= + 83 * 90 THEN 77 / COALESCE ( - + 49, - + 1 * NULLIF ( - + NULLIF ( + 1, + 60 ), - + 39 ) - + 0 + - - CAST ( NULL AS INTEGER ) + + SUM ( - 7 ), - 41 ) * - - NULLIF ( + - 96, - AVG ( DISTINCT CAST ( + NULLIF ( + CAST ( - 41 AS INTEGER ), + CASE - 32 WHEN - 53 THEN 48 * 77 END * 19 + + 71 ) AS INTEGER ) ) - 70 ) * + 26 END * + 37
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7548
SELECT ALL 18 DIV 37
----
0

skipif mysql # not compatible
query I rowsort label-7548
SELECT ALL 18 / 37
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7549
SELECT - COUNT( * ) DIV 26 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7549
SELECT - COUNT ( * ) / 26 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7550
SELECT ALL + CASE + 50 WHEN + ( - 79 ) THEN NULL WHEN + + 4 + + + 72 THEN - - 91 WHEN - 28 + + + COALESCE ( - 11, ( - CAST( + 22 AS SIGNED ) ) + + 20 ) / 18 THEN 95 + + MIN( DISTINCT + 41 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-7550
SELECT ALL + CASE + 50 WHEN + ( - 79 ) THEN NULL WHEN + + 4 + + + 72 THEN - - 91 WHEN - 28 + + + COALESCE ( - 11, ( - CAST ( + 22 AS INTEGER ) ) + + 20 ) / 18 THEN 95 + + MIN ( DISTINCT + 41 ) END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7551
SELECT CAST( + 94 AS SIGNED ) AS col1
----
94

skipif mysql # not compatible
query I rowsort label-7551
SELECT CAST ( + 94 AS INTEGER ) AS col1
----
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-7552
SELECT CAST( + 96 AS SIGNED ) col1, COUNT( * ) + 56 * + 22 + + - CASE - + 79 WHEN + 46 THEN + ( 13 ) WHEN SUM( - - 90 ) THEN - + 98 WHEN 75 * + 87 THEN NULL END, + + 70 AS col0
----
96
NULL
70

skipif mysql # not compatible
query III rowsort label-7552
SELECT CAST ( + 96 AS INTEGER ) col1, COUNT ( * ) + 56 * + 22 + + - CASE - + 79 WHEN + 46 THEN + ( 13 ) WHEN SUM ( - - 90 ) THEN - + 98 WHEN 75 * + 87 THEN NULL END, + + 70 AS col0
----
96
NULL
70

onlyif mysql # aggregate syntax: 
query I rowsort label-7553
SELECT ALL 18 * - - COUNT( * ) * 71 * - 38 - - + 10 col2
----
-48554

skipif mysql # not compatible
query I rowsort label-7553
SELECT ALL 18 * - - COUNT ( * ) * 71 * - 38 - - + 10 col2
----
-48554

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7554
SELECT + 6 * + ( + 96 ) - + CAST( NULL AS SIGNED ) + - 7 * - + 64 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7554
SELECT + 6 * + ( + 96 ) - + CAST ( NULL AS INTEGER ) + - 7 * - + 64 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7555
SELECT DISTINCT - 88 + + + 99 + COUNT( * ) AS col0
----
12

skipif mysql # not compatible
query I rowsort label-7555
SELECT DISTINCT - 88 + + + 99 + COUNT ( * ) AS col0
----
12

query II rowsort
SELECT ALL 59 + + 98 + + 12 AS col2, - 67
----
169
-67

query I rowsort
SELECT ALL - COALESCE ( + 17, 73 ) AS col1
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-7558
SELECT DISTINCT COALESCE ( - + 37, + - 53, + + NULLIF ( + COUNT( * ), - 57 ) ) + 7
----
-30

skipif mysql # not compatible
query I rowsort label-7558
SELECT DISTINCT COALESCE ( - + 37, + - 53, + + NULLIF ( + COUNT ( * ), - 57 ) ) + 7
----
-30

query I rowsort
SELECT DISTINCT 21 + - + 8
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-7560
SELECT + SUM( DISTINCT 37 ) AS col2
----
37

skipif mysql # not compatible
query I rowsort label-7560
SELECT + SUM ( DISTINCT 37 ) AS col2
----
37

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7561
SELECT ALL 48 DIV + - COUNT( * ) AS col2, 54 AS col2
----
-48
54

skipif mysql # not compatible
query II rowsort label-7561
SELECT ALL 48 / + - COUNT ( * ) AS col2, 54 AS col2
----
-48
54

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7562
SELECT - COUNT( * ) DIV + + 36 AS col2, - 21 AS col2
----
0
-21

skipif mysql # not compatible
query II rowsort label-7562
SELECT - COUNT ( * ) / + + 36 AS col2, - 21 AS col2
----
0
-21

query I rowsort
SELECT DISTINCT - NULLIF ( - 91, - 73 + - - AVG ( COALESCE ( - 50, + + 63 * ( - + 98 ) + 11 + + 52 ) ) ) * + 20 * + + 37 * 0 * - - 52 AS col1
----
0

query I rowsort
SELECT ALL + - 59 * - + 87 * - 40 * + ( + - 23 ) * + 66
----
311675760

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7565
SELECT ALL - - CASE - 78 WHEN + - 54 / 3 + - 23 THEN CAST( NULL AS SIGNED ) * 38 + - MIN( + 99 ) WHEN ( 39 ) THEN NULL ELSE NULL END * 65 + 77 * + - 46 / - - COALESCE ( - ( + - ( - + 66 ) ), CASE + 0 WHEN COUNT( * ) THEN NULL WHEN - ( + - 26 ) THEN NULL ELSE + 66 + 90 END / + 91 + - + 93 - 10, ( - 49 ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7565
SELECT ALL - - CASE - 78 WHEN + - 54 / 3 + - 23 THEN CAST ( NULL AS INTEGER ) * 38 + - MIN ( + 99 ) WHEN ( 39 ) THEN NULL ELSE NULL END * 65 + 77 * + - 46 / - - COALESCE ( - ( + - ( - + 66 ) ), CASE + 0 WHEN COUNT ( * ) THEN NULL WHEN - ( + - 26 ) THEN NULL ELSE + 66 + 90 END / + 91 + - + 93 - 10, ( - 49 ) ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT - 0 * 53
----
0

query II rowsort
SELECT ALL 75, + 99 * 20 AS col0
----
75
1980

query I rowsort
SELECT ALL 54 * - 91 AS col1
----
-4914

query I rowsort
SELECT 14 * + + 58 AS col1
----
812

onlyif mysql # DIV for integer division: 
query II rowsort label-7570
SELECT 16, 32 DIV + ( - 11 ) AS col1
----
16
-2

skipif mysql # not compatible
query II rowsort label-7570
SELECT 16, 32 / + ( - 11 ) AS col1
----
16
-2

query I rowsort
SELECT 56 * - + 28
----
-1568

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7572
SELECT CAST( NULL AS SIGNED ) - + COUNT( * ) + CASE 53 WHEN + 47 THEN NULL WHEN + + 7 THEN + NULLIF ( 72, + + 2 + COUNT( * ) ) ELSE - + 93 END * + 52 - + + SUM( ALL - 1 ) - + - COUNT( * ) + + ( 25 ) + - 84
----
NULL

skipif mysql # not compatible
query I rowsort label-7572
SELECT CAST ( NULL AS INTEGER ) - + COUNT ( * ) + CASE 53 WHEN + 47 THEN NULL WHEN + + 7 THEN + NULLIF ( 72, + + 2 + COUNT ( * ) ) ELSE - + 93 END * + 52 - + + SUM ( ALL - 1 ) - + - COUNT ( * ) + + ( 25 ) + - 84
----
NULL

query I rowsort
SELECT 69 * 87
----
6003

onlyif mysql # aggregate syntax: 
query II rowsort label-7574
SELECT DISTINCT 93 col0, + SUM( DISTINCT 41 )
----
93
41

skipif mysql # not compatible
query II rowsort label-7574
SELECT DISTINCT 93 col0, + SUM ( DISTINCT 41 )
----
93
41

query II rowsort
SELECT DISTINCT 2 AS col1, 83
----
2
83

query I rowsort
SELECT ALL + 38 * + 66
----
2508

query I rowsort
SELECT ALL - 83 + - + 45 * - 58
----
2527

query I rowsort
SELECT DISTINCT + 29 + - 44 AS col0
----
-15

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7579
SELECT + 10 AS col1, + CAST( + 65 AS SIGNED ) AS col2
----
10
65

skipif mysql # not compatible
query II rowsort label-7579
SELECT + 10 AS col1, + CAST ( + 65 AS INTEGER ) AS col2
----
10
65

query I rowsort
SELECT 84 * + 52 AS col2
----
4368

query I rowsort
SELECT ALL - 84 + - + 49
----
-133

onlyif mysql # aggregate syntax: 
query I rowsort label-7582
SELECT 48 * 24 + + COUNT( * ) AS col2
----
1153

skipif mysql # not compatible
query I rowsort label-7582
SELECT 48 * 24 + + COUNT ( * ) AS col2
----
1153

onlyif mysql # aggregate syntax: 
query I rowsort label-7583
SELECT 0 - NULLIF ( + 92, + 74 ) - + - COUNT( * )
----
-91

skipif mysql # not compatible
query I rowsort label-7583
SELECT 0 - NULLIF ( + 92, + 74 ) - + - COUNT ( * )
----
-91

query I rowsort
SELECT 71 * - - ( - ( - + 52 ) ) - - 87
----
3779

onlyif mysql # DIV for integer division: 
query I rowsort label-7585
SELECT + + 43 DIV 75 + + 33 AS col1
----
33

skipif mysql # not compatible
query I rowsort label-7585
SELECT + + 43 / 75 + + 33 AS col1
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-7586
SELECT ALL - MAX( + 47 ) AS col1
----
-47

skipif mysql # not compatible
query I rowsort label-7586
SELECT ALL - MAX ( + 47 ) AS col1
----
-47

onlyif mysql # DIV for integer division: 
query I rowsort label-7587
SELECT DISTINCT 48 DIV 5 + + 85 + + 32 * - - ( 74 ) AS col2
----
2462

skipif mysql # not compatible
query I rowsort label-7587
SELECT DISTINCT 48 / 5 + + 85 + + 32 * - - ( 74 ) AS col2
----
2462

onlyif mysql # DIV for integer division: 
query II rowsort label-7588
SELECT ALL - 50 AS col1, 87 DIV - 71 AS col1
----
-50
-1

skipif mysql # not compatible
query II rowsort label-7588
SELECT ALL - 50 AS col1, 87 / - 71 AS col1
----
-50
-1

query I rowsort
SELECT ALL + 9 + + ( 63 )
----
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7590
SELECT 4 * NULLIF ( - 81, + COUNT( * ) + + 21 + + - 57 + + + 4 ) + - 70 + - + 63 + - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7590
SELECT 4 * NULLIF ( - 81, + COUNT ( * ) + + 21 + + - 57 + + + 4 ) + - 70 + - + 63 + - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT ALL - 98 + - 77
----
-175

query II rowsort
SELECT + - 43 AS col1, 73 AS col2
----
-43
73

onlyif mysql # aggregate syntax: 
query II rowsort label-7593
SELECT + - COUNT( * ) AS col2, 97 * + 0 AS col2
----
-1
0

skipif mysql # not compatible
query II rowsort label-7593
SELECT + - COUNT ( * ) AS col2, 97 * + 0 AS col2
----
-1
0

query II rowsort
SELECT 19 + - ( - 24 ) AS col2, 81 - + + 40 * + 16 AS col1
----
43
-559

onlyif mysql # DIV for integer division: 
query I rowsort label-7595
SELECT - 6 * 21 DIV - 6 AS col2
----
21

skipif mysql # not compatible
query I rowsort label-7595
SELECT - 6 * 21 / - 6 AS col2
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-7596
SELECT 78 * - + 98 * 24 * 30 * + COUNT( + + 49 )
----
-5503680

skipif mysql # not compatible
query I rowsort label-7596
SELECT 78 * - + 98 * 24 * 30 * + COUNT ( + + 49 )
----
-5503680

onlyif mysql # aggregate syntax: 
query I rowsort label-7597
SELECT SUM( ALL - - 4 )
----
4

skipif mysql # not compatible
query I rowsort label-7597
SELECT SUM ( ALL - - 4 )
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-7598
SELECT DISTINCT + COUNT( * ) - - 32
----
33

skipif mysql # not compatible
query I rowsort label-7598
SELECT DISTINCT + COUNT ( * ) - - 32
----
33

onlyif mysql # aggregate syntax: 
query II rowsort label-7599
SELECT + COUNT( * ) * - 34 * - 93 AS col2, - 78 AS col1
----
3162
-78

skipif mysql # not compatible
query II rowsort label-7599
SELECT + COUNT ( * ) * - 34 * - 93 AS col2, - 78 AS col1
----
3162
-78

query I rowsort
SELECT - + 63 * + 79 + - 58 - + + 15 AS col0
----
-5050

query I rowsort
SELECT DISTINCT 21 - 85 AS col2
----
-64

onlyif mysql # aggregate syntax: 
query II rowsort label-7602
SELECT ( - ( 38 ) ) AS col2, COUNT( * ) + + 34
----
-38
35

skipif mysql # not compatible
query II rowsort label-7602
SELECT ( - ( 38 ) ) AS col2, COUNT ( * ) + + 34
----
-38
35

query II rowsort
SELECT ( + 0 ) * - ( + - 24 ), 94 * 25 * - 59 col0
----
0
-138650

onlyif mysql # aggregate syntax: 
query I rowsort label-7604
SELECT COUNT( * ) + - 65
----
-64

skipif mysql # not compatible
query I rowsort label-7604
SELECT COUNT ( * ) + - 65
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-7605
SELECT SUM( + ( - - 41 ) ) - 12 AS col1
----
29

skipif mysql # not compatible
query I rowsort label-7605
SELECT SUM ( + ( - - 41 ) ) - 12 AS col1
----
29

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7606
SELECT 69 DIV NULLIF ( COUNT( ALL + + 36 ), 60 ) AS col1
----
69

skipif mysql # not compatible
query I rowsort label-7606
SELECT 69 / NULLIF ( COUNT ( ALL + + 36 ), 60 ) AS col1
----
69

query I rowsort
SELECT 75 - - + 41
----
116

query I rowsort
SELECT ALL 42 * ( + + 29 ) * + + 74 + + 79 * - 88 AS col1
----
83180

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7609
SELECT DISTINCT CAST( - 28 AS SIGNED ) DIV - 81 + + - 32 DIV - + 84
----
0

skipif mysql # not compatible
query I rowsort label-7609
SELECT DISTINCT CAST ( - 28 AS INTEGER ) / - 81 + + - 32 / - + 84
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7610
SELECT ALL COUNT( * ) + + - COALESCE ( + - 43, + + 71 ) AS col0
----
44

skipif mysql # not compatible
query I rowsort label-7610
SELECT ALL COUNT ( * ) + + - COALESCE ( + - 43, + + 71 ) AS col0
----
44

onlyif mysql # aggregate syntax: 
query II rowsort label-7611
SELECT ALL + COUNT( * ) + + COUNT( * ) AS col0, - COUNT( * )
----
2
-1

skipif mysql # not compatible
query II rowsort label-7611
SELECT ALL + COUNT ( * ) + + COUNT ( * ) AS col0, - COUNT ( * )
----
2
-1

query I rowsort
SELECT ALL + 51 + - + 38
----
13

query I rowsort
SELECT 75 + - CASE + - 19 WHEN 32 THEN 90 WHEN 46 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7614
SELECT DISTINCT 0 + + 81 + 16 * + - 90 + - + 28 DIV - MAX( - 64 )
----
-1359

skipif mysql # not compatible
query I rowsort label-7614
SELECT DISTINCT 0 + + 81 + 16 * + - 90 + - + 28 / - MAX ( - 64 )
----
-1359

query I rowsort
SELECT ALL + 52 + + 40 + + 29
----
121

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7616
SELECT 0 + - - 56 * - CAST( NULLIF ( + 31, 53 + 92 + + CAST( NULL AS SIGNED ) * + 9 * 3 + - 22 ) AS SIGNED ) * - + COUNT( * )
----
1736

skipif mysql # not compatible
query I rowsort label-7616
SELECT 0 + - - 56 * - CAST ( NULLIF ( + 31, 53 + 92 + + CAST ( NULL AS INTEGER ) * + 9 * 3 + - 22 ) AS INTEGER ) * - + COUNT ( * )
----
1736

onlyif mysql # aggregate syntax: 
query I rowsort label-7617
SELECT DISTINCT + COUNT( * ) + 9 AS col0
----
10

skipif mysql # not compatible
query I rowsort label-7617
SELECT DISTINCT + COUNT ( * ) + 9 AS col0
----
10

query I rowsort
SELECT ALL - 80 + 60
----
-20

query II rowsort
SELECT DISTINCT + - 59 * - - 56 AS col2, - 58 * - 59
----
-3304
3422

onlyif mysql # DIV for integer division: 
query I rowsort label-7620
SELECT - 24 DIV 44
----
0

skipif mysql # not compatible
query I rowsort label-7620
SELECT - 24 / 44
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7621
SELECT COUNT( ALL + 1 ) AS col1, - 2 AS col2
----
1
-2

skipif mysql # not compatible
query II rowsort label-7621
SELECT COUNT ( ALL + 1 ) AS col1, - 2 AS col2
----
1
-2

onlyif mysql # aggregate syntax: 
query II rowsort label-7622
SELECT + 71 * 46 + 92 + + COUNT( * ) - + + 38 AS col1, - COUNT( * ) AS col0
----
3321
-1

skipif mysql # not compatible
query II rowsort label-7622
SELECT + 71 * 46 + 92 + + COUNT ( * ) - + + 38 AS col1, - COUNT ( * ) AS col0
----
3321
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7623
SELECT - + 72 - COUNT( * ) + + + 5 + - + 59 + + - 20
----
-147

skipif mysql # not compatible
query I rowsort label-7623
SELECT - + 72 - COUNT ( * ) + + + 5 + - + 59 + + - 20
----
-147

onlyif mysql # aggregate syntax: 
query I rowsort label-7624
SELECT - + COUNT( * ) * - 9 + - 7
----
2

skipif mysql # not compatible
query I rowsort label-7624
SELECT - + COUNT ( * ) * - 9 + - 7
----
2

query I rowsort
SELECT ALL + NULLIF ( - 84, + 63 ) AS col2
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-7626
SELECT ALL + - ( - COUNT( + 6 ) ) * 93 AS col0
----
93

skipif mysql # not compatible
query I rowsort label-7626
SELECT ALL + - ( - COUNT ( + 6 ) ) * 93 AS col0
----
93

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7627
SELECT - 27 DIV 61 * + COUNT( * ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7627
SELECT - 27 / 61 * + COUNT ( * ) AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7628
SELECT ALL 66 DIV + - 79 + + 4 + + 90
----
94

skipif mysql # not compatible
query I rowsort label-7628
SELECT ALL 66 / + - 79 + + 4 + + 90
----
94

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7629
SELECT - COUNT( * ) + - 46 DIV - 90
----
-1

skipif mysql # not compatible
query I rowsort label-7629
SELECT - COUNT ( * ) + - 46 / - 90
----
-1

query I rowsort
SELECT DISTINCT + + 5 AS col0
----
5

query I rowsort
SELECT NULLIF ( + 78, + 9 ) AS col0
----
78

query I rowsort
SELECT + CASE - - 53 WHEN ( + 71 ) THEN NULL ELSE + + 15 END
----
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7633
SELECT ALL + CASE - 66 WHEN ( - CAST( - COUNT( * ) AS SIGNED ) ) THEN 84 - + COUNT( - + 70 ) WHEN - 83 THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7633
SELECT ALL + CASE - 66 WHEN ( - CAST ( - COUNT ( * ) AS INTEGER ) ) THEN 84 - + COUNT ( - + 70 ) WHEN - 83 THEN NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7634
SELECT + NULLIF ( - SUM( ALL - - 69 ), + 94 / - - 37 ) * - 2 + + 19 * + 82 * - COALESCE ( + 9, 64 * + + COALESCE ( - - 67, + 81 - - COUNT( * ) ) + + 51 ) * + 66 - + - 35 + - 83 - 76 + + CAST( 26 AS SIGNED )
----
-925412

skipif mysql # not compatible
query I rowsort label-7634
SELECT + NULLIF ( - SUM ( ALL - - 69 ), + 94 / - - 37 ) * - 2 + + 19 * + 82 * - COALESCE ( + 9, 64 * + + COALESCE ( - - 67, + 81 - - COUNT ( * ) ) + + 51 ) * + 66 - + - 35 + - 83 - 76 + + CAST ( 26 AS INTEGER )
----
-925412

query I rowsort
SELECT DISTINCT 66 * - + 1 AS col1
----
-66

query I rowsort
SELECT ALL 1 * + 61 AS col0
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-7637
SELECT DISTINCT 60 + + 90 + - 65 * - - ( + - ( - 60 ) ) - - + COUNT( * ) AS col1
----
-3749

skipif mysql # not compatible
query I rowsort label-7637
SELECT DISTINCT 60 + + 90 + - 65 * - - ( + - ( - 60 ) ) - - + COUNT ( * ) AS col1
----
-3749

onlyif mysql # aggregate syntax: 
query I rowsort label-7638
SELECT DISTINCT - ( COUNT( * ) ) + - 17 + - 88 AS col0
----
-106

skipif mysql # not compatible
query I rowsort label-7638
SELECT DISTINCT - ( COUNT ( * ) ) + - 17 + - 88 AS col0
----
-106

query I rowsort
SELECT ALL 95 + 56 AS col2
----
151

onlyif mysql # aggregate syntax: 
query I rowsort label-7640
SELECT DISTINCT MAX( - 87 ) + - + 81
----
-168

skipif mysql # not compatible
query I rowsort label-7640
SELECT DISTINCT MAX ( - 87 ) + - + 81
----
-168

query I rowsort
SELECT ALL 65 * - 4
----
-260

query II rowsort
SELECT 40 AS col0, NULLIF ( + 24, + 59 ) * + + 80 + + 69 + - - 2
----
40
1991

onlyif mysql # aggregate syntax: 
query I rowsort label-7643
SELECT ALL 59 + + + 88 * + COUNT( * ) * - + 5
----
-381

skipif mysql # not compatible
query I rowsort label-7643
SELECT ALL 59 + + + 88 * + COUNT ( * ) * - + 5
----
-381

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7644
SELECT + 41 - - 89 DIV + 31 + - + COUNT( * ) + + 98 DIV + - 49 + - - 80 AS col1
----
120

skipif mysql # not compatible
query I rowsort label-7644
SELECT + 41 - - 89 / + 31 + - + COUNT ( * ) + + 98 / + - 49 + - - 80 AS col1
----
120

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7645
SELECT + 47 * - NULLIF ( + 35, + 42 + - + CAST( NULL AS SIGNED ) )
----
-1645

skipif mysql # not compatible
query I rowsort label-7645
SELECT + 47 * - NULLIF ( + 35, + 42 + - + CAST ( NULL AS INTEGER ) )
----
-1645

onlyif mysql # DIV for integer division: 
query I rowsort label-7646
SELECT ALL 53 DIV 62 * 15 col1
----
0

skipif mysql # not compatible
query I rowsort label-7646
SELECT ALL 53 / 62 * 15 col1
----
0

query II rowsort
SELECT 73, + 61 + COALESCE ( + 6, 58 ) AS col1
----
73
67

query I rowsort
SELECT ALL 99 + - + 22
----
77

query I rowsort
SELECT DISTINCT - 1 * 45 AS col0
----
-45

query I rowsort
SELECT ALL + - 57 + + 64
----
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7651
SELECT + MAX( + CASE + 49 WHEN + + 90 THEN + 67 WHEN 74 + 43 + + 4 * + 29 THEN NULL END ) - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7651
SELECT + MAX ( + CASE + 49 WHEN + + 90 THEN + 67 WHEN 74 + 43 + + 4 * + 29 THEN NULL END ) - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7652
SELECT ALL - CASE + CAST( - - 51 AS SIGNED ) WHEN - 98 + - ( - COUNT( ALL ( - 35 ) ) ) THEN - 89 * - 72 + 26 - 66 WHEN CAST( 42 AS SIGNED ) THEN 68 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7652
SELECT ALL - CASE + CAST ( - - 51 AS INTEGER ) WHEN - 98 + - ( - COUNT ( ALL ( - 35 ) ) ) THEN - 89 * - 72 + 26 - 66 WHEN CAST ( 42 AS INTEGER ) THEN 68 END
----
NULL

query I rowsort
SELECT DISTINCT 69 * + - 75 + + 64 * + 75
----
-375

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7654
SELECT - - NULLIF ( - NULLIF ( + - 59, - - COUNT( ALL + 7 ) ), ( 71 ) * + MIN( + 43 ) * MIN( - 10 ) + COALESCE ( - - 22, + CAST( NULL AS DECIMAL ) / 85 / 73 * - + 5 + + 47 ) ) AS col0
----
59

skipif mysql # not compatible
query I rowsort label-7654
SELECT - - NULLIF ( - NULLIF ( + - 59, - - COUNT ( ALL + 7 ) ), ( 71 ) * + MIN ( + 43 ) * MIN ( - 10 ) + COALESCE ( - - 22, + CAST ( NULL AS REAL ) / 85 / 73 * - + 5 + + 47 ) ) AS col0
----
59

query I rowsort
SELECT + + 76 + 1
----
77

query I rowsort
SELECT - - 71 * + 52 AS col0
----
3692

onlyif mysql # aggregate syntax: 
query I rowsort label-7657
SELECT - + 96 - - + MIN( ALL - 11 ) * - 95 + + + 78
----
1027

skipif mysql # not compatible
query I rowsort label-7657
SELECT - + 96 - - + MIN ( ALL - 11 ) * - 95 + + + 78
----
1027

query I rowsort
SELECT + 97 * 71 * - 14 col2
----
-96418

onlyif mysql # aggregate syntax: 
query II rowsort label-7659
SELECT ALL + 82 AS col0, - COUNT( * )
----
82
-1

skipif mysql # not compatible
query II rowsort label-7659
SELECT ALL + 82 AS col0, - COUNT ( * )
----
82
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7660
SELECT 61 * - - 87 + - COUNT( * )
----
5306

skipif mysql # not compatible
query I rowsort label-7660
SELECT 61 * - - 87 + - COUNT ( * )
----
5306

onlyif mysql # aggregate syntax: 
query I rowsort label-7661
SELECT ALL + + MIN( DISTINCT 33 )
----
33

skipif mysql # not compatible
query I rowsort label-7661
SELECT ALL + + MIN ( DISTINCT 33 )
----
33

query I rowsort
SELECT ALL - 6 * - + 37 AS col2
----
222

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7663
SELECT DISTINCT - 41 * 35 AS col0, + CASE - 78 WHEN CAST( NULL AS SIGNED ) * 5 * 65 + + 71 / 63 THEN 71 WHEN - + 0 + - 98 + 51 * - 74 THEN + + ( 22 ) WHEN + 47 THEN NULL ELSE NULL END * - - 11 AS col1
----
-1435
NULL

skipif mysql # not compatible
query II rowsort label-7663
SELECT DISTINCT - 41 * 35 AS col0, + CASE - 78 WHEN CAST ( NULL AS INTEGER ) * 5 * 65 + + 71 / 63 THEN 71 WHEN - + 0 + - 98 + 51 * - 74 THEN + + ( 22 ) WHEN + 47 THEN NULL ELSE NULL END * - - 11 AS col1
----
-1435
NULL

query I rowsort
SELECT ALL - 46 * 50 * + 75 + - 42 * - - 43 AS col1
----
-174306

onlyif mysql # DIV for integer division: 
query I rowsort label-7665
SELECT - 7 DIV - - 1 col2
----
-7

skipif mysql # not compatible
query I rowsort label-7665
SELECT - 7 / - - 1 col2
----
-7

query I rowsort
SELECT ALL 54 * - 0 + 86 AS col0
----
86

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7667
SELECT ALL CASE COUNT( * ) WHEN - NULLIF ( + SUM( DISTINCT 59 ), - 54 * + COALESCE ( + 65, + COUNT( * ) + + - COALESCE ( - 87, + COALESCE ( - 37, + CAST( + 39 AS DECIMAL ) ) * 87 + 25, 62 ) ) * - 41 ) THEN + 18 WHEN + MIN( ALL 74 ) - + + CASE + COUNT( * ) WHEN - 5 THEN - NULLIF ( + CASE + CASE - ( - 9 ) WHEN + 65 THEN + 47 ELSE 10 + - 14 END WHEN MIN( DISTINCT 20 ) + - 23 THEN CASE + COUNT( * ) WHEN - 76 * 40 THEN - COUNT( * ) + - 46 * 87 END + 73 WHEN 83 THEN ( - 68 ) WHEN - ( + 70 ) + COUNT( 1 ) * + COUNT( * ) THEN NULL ELSE NULL END, MIN( DISTINCT 66 ) * 27 ) END * 2 THEN NULL END * 25 + + 2
----
NULL

skipif mysql # not compatible
query I rowsort label-7667
SELECT ALL CASE COUNT ( * ) WHEN - NULLIF ( + SUM ( DISTINCT 59 ), - 54 * + COALESCE ( + 65, + COUNT ( * ) + + - COALESCE ( - 87, + COALESCE ( - 37, + CAST ( + 39 AS REAL ) ) * 87 + 25, 62 ) ) * - 41 ) THEN + 18 WHEN + MIN ( ALL 74 ) - + + CASE + COUNT ( * ) WHEN - 5 THEN - NULLIF ( + CASE + CASE - ( - 9 ) WHEN + 65 THEN + 47 ELSE 10 + - 14 END WHEN MIN ( DISTINCT 20 ) + - 23 THEN CASE + COUNT ( * ) WHEN - 76 * 40 THEN - COUNT ( * ) + - 46 * 87 END + 73 WHEN 83 THEN ( - 68 ) WHEN - ( + 70 ) + COUNT ( 1 ) * + COUNT ( * ) THEN NULL ELSE NULL END, MIN ( DISTINCT 66 ) * 27 ) END * 2 THEN NULL END * 25 + + 2
----
NULL

query I rowsort
SELECT - 60 * - - 22 * + 82 AS col1
----
-108240

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7669
SELECT ALL ( + 4 ) AS col2, CASE - - 27 WHEN + CAST( - + CAST( + COUNT( * ) AS SIGNED ) AS SIGNED ) * + 93 THEN + AVG ( 53 ) WHEN COUNT( * ) + + COUNT( * ) THEN NULL WHEN - COUNT( * ) THEN + + 77 END AS col1
----
4
NULL

skipif mysql # not compatible
query II rowsort label-7669
SELECT ALL ( + 4 ) AS col2, CASE - - 27 WHEN + CAST ( - + CAST ( + COUNT ( * ) AS INTEGER ) AS INTEGER ) * + 93 THEN + AVG ( 53 ) WHEN COUNT ( * ) + + COUNT ( * ) THEN NULL WHEN - COUNT ( * ) THEN + + 77 END AS col1
----
4
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7670
SELECT DISTINCT 22 * + CAST( - 7 AS SIGNED ) + MIN( - 93 ) + - + 17 * - COUNT( * ) DIV - 61 col2
----
-247

skipif mysql # not compatible
query I rowsort label-7670
SELECT DISTINCT 22 * + CAST ( - 7 AS INTEGER ) + MIN ( - 93 ) + - + 17 * - COUNT ( * ) / - 61 col2
----
-247

onlyif mysql # aggregate syntax: 
query II rowsort label-7671
SELECT COUNT( * ) AS col0, - 14 col1
----
1
-14

skipif mysql # not compatible
query II rowsort label-7671
SELECT COUNT ( * ) AS col0, - 14 col1
----
1
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-7672
SELECT ALL COUNT( ALL + 11 ) * - SUM( DISTINCT + 99 ) + + 87
----
-12

skipif mysql # not compatible
query I rowsort label-7672
SELECT ALL COUNT ( ALL + 11 ) * - SUM ( DISTINCT + 99 ) + + 87
----
-12

onlyif mysql # DIV for integer division: 
query I rowsort label-7673
SELECT - COALESCE ( - 98, - 18 DIV - 90 + - + 75 * 11 + 64, 79 * + 24 * 19 + - 88 + + - ( + 84 ) ) AS col0
----
98

skipif mysql # not compatible
query I rowsort label-7673
SELECT - COALESCE ( - 98, - 18 / - 90 + - + 75 * 11 + 64, 79 * + 24 * 19 + - 88 + + - ( + 84 ) ) AS col0
----
98

query I rowsort
SELECT 65 + + 93
----
158

onlyif mysql # aggregate syntax: 
query I rowsort label-7675
SELECT COUNT( * ) - - 37 + + - COUNT( * )
----
37

skipif mysql # not compatible
query I rowsort label-7675
SELECT COUNT ( * ) - - 37 + + - COUNT ( * )
----
37

onlyif mysql # DIV for integer division: 
query II rowsort label-7676
SELECT ALL - 25 * 96, + 59 DIV - 15 col1
----
-2400
-3

skipif mysql # not compatible
query II rowsort label-7676
SELECT ALL - 25 * 96, + 59 / - 15 col1
----
-2400
-3

query I rowsort
SELECT ALL - 52 + - 11
----
-63

query I rowsort
SELECT 81 * - 68 AS col1
----
-5508

onlyif mysql # aggregate syntax: 
query I rowsort label-7679
SELECT DISTINCT 47 * ( MAX( DISTINCT - 8 ) ) AS col2
----
-376

skipif mysql # not compatible
query I rowsort label-7679
SELECT DISTINCT 47 * ( MAX ( DISTINCT - 8 ) ) AS col2
----
-376

onlyif mysql # aggregate syntax: 
query I rowsort label-7680
SELECT ALL COUNT( * ) - - 15 + MAX( - - 13 )
----
29

skipif mysql # not compatible
query I rowsort label-7680
SELECT ALL COUNT ( * ) - - 15 + MAX ( - - 13 )
----
29

query I rowsort
SELECT 0 + ( - - 20 ) + + 2 * 55 + ( - 13 ) AS col2
----
117

query II rowsort
SELECT ALL 68, 34 + + 50 col0
----
68
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7683
SELECT - - NULLIF ( - + 73, CAST( NULL AS SIGNED ) )
----
-73

skipif mysql # not compatible
query I rowsort label-7683
SELECT - - NULLIF ( - + 73, CAST ( NULL AS INTEGER ) )
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-7684
SELECT + CASE + + COUNT( + 93 ) WHEN 42 THEN + - 57 WHEN 84 THEN + 68 / + 40 + 3 - - 64 END + - + 76 + - - 13 - + 17 - - - 52 * - 33 * - 22
----
NULL

skipif mysql # not compatible
query I rowsort label-7684
SELECT + CASE + + COUNT ( + 93 ) WHEN 42 THEN + - 57 WHEN 84 THEN + 68 / + 40 + 3 - - 64 END + - + 76 + - - 13 - + 17 - - - 52 * - 33 * - 22
----
NULL

query I rowsort
SELECT + 37 * + ( - 40 ) AS col1
----
-1480

onlyif mysql # aggregate syntax: 
query I rowsort label-7686
SELECT MAX( DISTINCT + 84 ) AS col1
----
84

skipif mysql # not compatible
query I rowsort label-7686
SELECT MAX ( DISTINCT + 84 ) AS col1
----
84

query I rowsort
SELECT DISTINCT - 28 * 26 + 7 AS col1
----
-721

query II rowsort
SELECT ALL - + 26 AS col0, + 81 AS col1
----
-26
81

onlyif mysql # aggregate syntax: 
query I rowsort label-7689
SELECT ALL + 95 * - + COUNT( + 42 ) * 30
----
-2850

skipif mysql # not compatible
query I rowsort label-7689
SELECT ALL + 95 * - + COUNT ( + 42 ) * 30
----
-2850

query I rowsort
SELECT + + ( - 40 ) AS col1
----
-40

query I rowsort
SELECT DISTINCT 87 * - + ( + 39 )
----
-3393

onlyif mysql # DIV for integer division: 
query I rowsort label-7692
SELECT 87 * 46 DIV + - 85 AS col2
----
-47

skipif mysql # not compatible
query I rowsort label-7692
SELECT 87 * 46 / + - 85 AS col2
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-7693
SELECT + CASE + + 44 WHEN - COUNT( * ) THEN 82 + + COALESCE ( + AVG ( + 55 ), - - COUNT( * ) * + 40 * - - 45 ) WHEN 14 + - 96 THEN - SUM( DISTINCT - 48 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7693
SELECT + CASE + + 44 WHEN - COUNT ( * ) THEN 82 + + COALESCE ( + AVG ( + 55 ), - - COUNT ( * ) * + 40 * - - 45 ) WHEN 14 + - 96 THEN - SUM ( DISTINCT - 48 ) ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7694
SELECT ALL + 35 + SUM( + 29 ) + + COALESCE ( 77, - - 34 ) * - + 89, 11 + CASE + - ( + 96 ) WHEN + - NULLIF ( 8, - 51 * 99 ) + + 38 + CASE - CAST( 61 AS SIGNED ) WHEN + 7 * - + 31 THEN - 20 * 59 + + - 90 END THEN + CASE - + 13 WHEN 20 THEN + + 69 END + + 89 WHEN - 29 THEN NULL END AS col0
----
-6789
NULL

skipif mysql # not compatible
query II rowsort label-7694
SELECT ALL + 35 + SUM ( + 29 ) + + COALESCE ( 77, - - 34 ) * - + 89, 11 + CASE + - ( + 96 ) WHEN + - NULLIF ( 8, - 51 * 99 ) + + 38 + CASE - CAST ( 61 AS INTEGER ) WHEN + 7 * - + 31 THEN - 20 * 59 + + - 90 END THEN + CASE - + 13 WHEN 20 THEN + + 69 END + + 89 WHEN - 29 THEN NULL END AS col0
----
-6789
NULL

query I rowsort
SELECT 35 - 40 * - - 16 AS col1
----
-605

query II rowsort
SELECT + 68 AS col1, - 42
----
68
-42

onlyif mysql # DIV for integer division: 
query I rowsort label-7697
SELECT ALL 72 + - 34 * 54 DIV 35 - COALESCE ( ( + + 89 ), - 96 )
----
-69

skipif mysql # not compatible
query I rowsort label-7697
SELECT ALL 72 + - 34 * 54 / 35 - COALESCE ( ( + + 89 ), - 96 )
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-7698
SELECT ALL - 28 + + + COUNT( * ) - + 69 + - 93 * + - 8
----
648

skipif mysql # not compatible
query I rowsort label-7698
SELECT ALL - 28 + + + COUNT ( * ) - + 69 + - 93 * + - 8
----
648

onlyif mysql # aggregate syntax: 
query I rowsort label-7699
SELECT 83 * SUM( DISTINCT - 56 ) + + - 26 AS col1
----
-4674

skipif mysql # not compatible
query I rowsort label-7699
SELECT 83 * SUM ( DISTINCT - 56 ) + + - 26 AS col1
----
-4674

query I rowsort
SELECT + 68 * ( - 38 ) - + 45
----
-2629

query I rowsort
SELECT ALL 83 + + NULLIF ( + 73, + - 21 )
----
156

query I rowsort
SELECT DISTINCT - 11 * + 58 col0
----
-638

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7703
SELECT ALL 24 * + 9 col2, - 16 AS col1, + 12 * - 92 + + + CAST( NULL AS SIGNED ) + - 14 + - 54 * + - 94 * - - 96
----
216
-16
NULL

skipif mysql # not compatible
query III rowsort label-7703
SELECT ALL 24 * + 9 col2, - 16 AS col1, + 12 * - 92 + + + CAST ( NULL AS INTEGER ) + - 14 + - 54 * + - 94 * - - 96
----
216
-16
NULL

query I rowsort
SELECT DISTINCT 82 - - 19 col1
----
101

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7705
SELECT 94 * - 26, - CAST( + 35 AS SIGNED ) * 70 col2
----
-2444
-2450

skipif mysql # not compatible
query II rowsort label-7705
SELECT 94 * - 26, - CAST ( + 35 AS INTEGER ) * 70 col2
----
-2444
-2450

query I rowsort
SELECT DISTINCT - 3 - - 62 * + ( 57 )
----
3531

onlyif mysql # DIV for integer division: 
query II rowsort label-7707
SELECT DISTINCT + ( + + 45 ) DIV 74 AS col0, + 5 - 4 AS col0
----
0
1

skipif mysql # not compatible
query II rowsort label-7707
SELECT DISTINCT + ( + + 45 ) / 74 AS col0, + 5 - 4 AS col0
----
0
1

query I rowsort
SELECT 80 - + 42 * + 57
----
-2314

onlyif mysql # aggregate syntax: 
query I rowsort label-7709
SELECT NULLIF ( + - 24, + + 32 + SUM( ALL - 36 ) + - AVG ( DISTINCT - 91 ) / - ( + 76 ) )
----
-24

skipif mysql # not compatible
query I rowsort label-7709
SELECT NULLIF ( + - 24, + + 32 + SUM ( ALL - 36 ) + - AVG ( DISTINCT - 91 ) / - ( + 76 ) )
----
-24

query I rowsort
SELECT 22 * + 37
----
814

query II rowsort
SELECT - 43 + - + 44 * - NULLIF ( - + 40, 19 ) col0, + ( - - 19 ) * 3 col1
----
-1803
57

query I rowsort
SELECT DISTINCT - 32 * 79 * - - 63 * 86
----
-13696704

query I rowsort
SELECT - 7 + + 39 col2
----
32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7714
SELECT - 16 DIV - COUNT( DISTINCT 86 ) col1
----
16

skipif mysql # not compatible
query I rowsort label-7714
SELECT - 16 / - COUNT ( DISTINCT 86 ) col1
----
16

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7715
SELECT + COUNT( * ) * - 78 DIV - 35 + - + ( - COUNT( * ) ) AS col0, 48
----
3
48

skipif mysql # not compatible
query II rowsort label-7715
SELECT + COUNT ( * ) * - 78 / - 35 + - + ( - COUNT ( * ) ) AS col0, 48
----
3
48

onlyif mysql # aggregate syntax: 
query I rowsort label-7716
SELECT ALL - + MIN( DISTINCT + 33 )
----
-33

skipif mysql # not compatible
query I rowsort label-7716
SELECT ALL - + MIN ( DISTINCT + 33 )
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-7717
SELECT COUNT( - 67 ) + - 39 AS col0
----
-38

skipif mysql # not compatible
query I rowsort label-7717
SELECT COUNT ( - 67 ) + - 39 AS col0
----
-38

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7718
SELECT ALL + - 17 * COALESCE ( + 91, + - 51, - 2 ) * 26 DIV + 37 * COUNT( * ) - 50 + - 47
----
-1184

skipif mysql # not compatible
query I rowsort label-7718
SELECT ALL + - 17 * COALESCE ( + 91, + - 51, - 2 ) * 26 / + 37 * COUNT ( * ) - 50 + - 47
----
-1184

onlyif mysql # DIV for integer division: 
query II rowsort label-7719
SELECT ALL - 45 * 10 + - 18 AS col1, 97 + - + 44 DIV + - 74 + - 6 AS col0
----
-468
91

skipif mysql # not compatible
query II rowsort label-7719
SELECT ALL - 45 * 10 + - 18 AS col1, 97 + - + 44 / + - 74 + - 6 AS col0
----
-468
91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7720
SELECT ALL ( - + COUNT( ALL + - 58 ) ) DIV - - 13
----
0

skipif mysql # not compatible
query I rowsort label-7720
SELECT ALL ( - + COUNT ( ALL + - 58 ) ) / - - 13
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7721
SELECT SUM( + + 44 ) AS col1
----
44

skipif mysql # not compatible
query I rowsort label-7721
SELECT SUM ( + + 44 ) AS col1
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-7722
SELECT MAX( ALL - 45 ) col1
----
-45

skipif mysql # not compatible
query I rowsort label-7722
SELECT MAX ( ALL - 45 ) col1
----
-45

query I rowsort
SELECT ALL 36 * - 49
----
-1764

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7724
SELECT + 76 * - 70 + - - CAST( - AVG ( DISTINCT + + 96 ) AS SIGNED ) AS col0
----
-5416

skipif mysql # not compatible
query I rowsort label-7724
SELECT + 76 * - 70 + - - CAST ( - AVG ( DISTINCT + + 96 ) AS INTEGER ) AS col0
----
-5416

onlyif mysql # aggregate syntax: 
query I rowsort label-7725
SELECT ALL COUNT( * ) - - 71
----
72

skipif mysql # not compatible
query I rowsort label-7725
SELECT ALL COUNT ( * ) - - 71
----
72

query I rowsort
SELECT + 88 + - 77
----
11

query I rowsort
SELECT - 64 + + 29 col1
----
-35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7728
SELECT CASE + + 42 WHEN - 95 * 38 THEN NULL WHEN - 27 THEN 19 * - - 36 + 51 * + NULLIF ( + + 41, + 65 ) END * - 46 * + 26 + + AVG ( + - ( - 93 ) ) * + 57 + CASE - CASE - - 27 WHEN - + 9 + - 68 THEN - + 47 / + COUNT( * ) + - 8 + 41 WHEN 69 * - + 2 + + 66 + + COUNT( * ) + 52 THEN NULL ELSE CAST( MIN( ALL 21 ) AS SIGNED ) END WHEN NULLIF ( + COUNT( * ), 64 * - NULLIF ( + 62, + 39 * 8 ) ) THEN - COUNT( * ) * - 66 + 16 WHEN - NULLIF ( - 82, 39 / - 38 ) * 16 + + 67 THEN + 97 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7728
SELECT CASE + + 42 WHEN - 95 * 38 THEN NULL WHEN - 27 THEN 19 * - - 36 + 51 * + NULLIF ( + + 41, + 65 ) END * - 46 * + 26 + + AVG ( + - ( - 93 ) ) * + 57 + CASE - CASE - - 27 WHEN - + 9 + - 68 THEN - + 47 / + COUNT ( * ) + - 8 + 41 WHEN 69 * - + 2 + + 66 + + COUNT ( * ) + 52 THEN NULL ELSE CAST ( MIN ( ALL 21 ) AS INTEGER ) END WHEN NULLIF ( + COUNT ( * ), 64 * - NULLIF ( + 62, + 39 * 8 ) ) THEN - COUNT ( * ) * - 66 + 16 WHEN - NULLIF ( - 82, 39 / - 38 ) * 16 + + 67 THEN + 97 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7729
SELECT - 58 - + + 4 * - COUNT( * ) + 12
----
-42

skipif mysql # not compatible
query I rowsort label-7729
SELECT - 58 - + + 4 * - COUNT ( * ) + 12
----
-42

query I rowsort
SELECT - 16 * - + 75
----
1200

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7731
SELECT ALL + 62 * - 94 * CAST( - CAST( NULL AS SIGNED ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7731
SELECT ALL + 62 * - 94 * CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER )
----
NULL

query I rowsort
SELECT + - 89 + + + 29 AS col1
----
-60

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7733
SELECT - - COUNT( * ) DIV - 31 - + 92 AS col0, - 47 AS col2
----
-92
-47

skipif mysql # not compatible
query II rowsort label-7733
SELECT - - COUNT ( * ) / - 31 - + 92 AS col0, - 47 AS col2
----
-92
-47

query I rowsort
SELECT - 64 + + 27 - + 72 * + 56 AS col1
----
-4069

query I rowsort
SELECT DISTINCT + + 16 + - 60 col2
----
-44

onlyif mysql # DIV for integer division: 
query I rowsort label-7736
SELECT + 21 DIV + 34 col2
----
0

skipif mysql # not compatible
query I rowsort label-7736
SELECT + 21 / + 34 col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7737
SELECT ALL + - COUNT( DISTINCT + 16 ) + 42 AS col0
----
41

skipif mysql # not compatible
query I rowsort label-7737
SELECT ALL + - COUNT ( DISTINCT + 16 ) + 42 AS col0
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-7738
SELECT + MAX( - 86 ) AS col1
----
-86

skipif mysql # not compatible
query I rowsort label-7738
SELECT + MAX ( - 86 ) AS col1
----
-86

query I rowsort
SELECT - ( - + 93 )
----
93

query I rowsort
SELECT - + 7 + - 1 + - 23 * 86 AS col1
----
-1986

query I rowsort
SELECT DISTINCT + NULLIF ( 62, - 30 ) AS col2
----
62

onlyif mysql # aggregate syntax: 
query II rowsort label-7742
SELECT - - 38 * - + MIN( DISTINCT - 84 ) AS col1, - 39 * - COUNT( * ) AS col0
----
3192
39

skipif mysql # not compatible
query II rowsort label-7742
SELECT - - 38 * - + MIN ( DISTINCT - 84 ) AS col1, - 39 * - COUNT ( * ) AS col0
----
3192
39

query I rowsort
SELECT DISTINCT - 94 * + 4 + + - 73 + 98 AS col0
----
-351

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7744
SELECT ( - CAST( NULL AS SIGNED ) ), + COUNT( * ) * COUNT( * ) - - - 17 AS col2
----
NULL
-16

skipif mysql # not compatible
query II rowsort label-7744
SELECT ( - CAST ( NULL AS INTEGER ) ), + COUNT ( * ) * COUNT ( * ) - - - 17 AS col2
----
NULL
-16

query II rowsort
SELECT ( 54 ), + 32 AS col2
----
54
32

onlyif mysql # DIV for integer division: 
query I rowsort label-7746
SELECT + 60 DIV - ( 26 ) - + 29 - + - 78 AS col0
----
47

skipif mysql # not compatible
query I rowsort label-7746
SELECT + 60 / - ( 26 ) - + 29 - + - 78 AS col0
----
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7747
SELECT + CAST( NULL AS SIGNED ) * + 71 * + 90 / - - 51
----
NULL

skipif mysql # not compatible
query I rowsort label-7747
SELECT + CAST ( NULL AS INTEGER ) * + 71 * + 90 / - - 51
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7748
SELECT - 1 - + COUNT( * ) + 16 + - 93 + - 43 AS col0, 5
----
-122
5

skipif mysql # not compatible
query II rowsort label-7748
SELECT - 1 - + COUNT ( * ) + 16 + - 93 + - 43 AS col0, 5
----
-122
5

query I rowsort
SELECT DISTINCT + ( NULLIF ( + 95, 60 ) )
----
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7750
SELECT + CAST( 40 AS SIGNED ) * - COUNT( * ) AS col0
----
-40

skipif mysql # not compatible
query I rowsort label-7750
SELECT + CAST ( 40 AS INTEGER ) * - COUNT ( * ) AS col0
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-7751
SELECT + COALESCE ( 90, + + NULLIF ( 65, + COUNT( * ) ) * - 32, + 58 )
----
90

skipif mysql # not compatible
query I rowsort label-7751
SELECT + COALESCE ( 90, + + NULLIF ( 65, + COUNT ( * ) ) * - 32, + 58 )
----
90

query I rowsort
SELECT + NULLIF ( 73, - 45 )
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-7753
SELECT - 59 * - COUNT( * ) AS col0
----
59

skipif mysql # not compatible
query I rowsort label-7753
SELECT - 59 * - COUNT ( * ) AS col0
----
59

query I rowsort
SELECT ALL 29 * 62 AS col0
----
1798

query I rowsort
SELECT + 58 + 71 AS col1
----
129

query I rowsort
SELECT + COALESCE ( - 1, - 16 ) AS col2
----
-1

query I rowsort
SELECT + 34 + + 39 AS col2
----
73

onlyif mysql # aggregate syntax: 
query II rowsort label-7758
SELECT ALL + COUNT( * ) * + 51 AS col1, - 12 AS col1
----
51
-12

skipif mysql # not compatible
query II rowsort label-7758
SELECT ALL + COUNT ( * ) * + 51 AS col1, - 12 AS col1
----
51
-12

query II rowsort
SELECT + 5 * 21 AS col2, 26 col0
----
105
26

query I rowsort
SELECT COALESCE ( 89, - 66 - - + 74, + 28, + 0 )
----
89

onlyif mysql # aggregate syntax: 
query II rowsort label-7761
SELECT ( NULLIF ( COUNT( * ), + 83 ) ) AS col2, - COALESCE ( - 73, - COALESCE ( + 92, + ( + 98 ) ), + - COUNT( * ) )
----
1
73

skipif mysql # not compatible
query II rowsort label-7761
SELECT ( NULLIF ( COUNT ( * ), + 83 ) ) AS col2, - COALESCE ( - 73, - COALESCE ( + 92, + ( + 98 ) ), + - COUNT ( * ) )
----
1
73

onlyif mysql # aggregate syntax: 
query I rowsort label-7762
SELECT ALL + + 1 * ( - 97 ) * 26 + + COUNT( * ) + 56 + 16 + + 85
----
-2364

skipif mysql # not compatible
query I rowsort label-7762
SELECT ALL + + 1 * ( - 97 ) * 26 + + COUNT ( * ) + 56 + 16 + + 85
----
-2364

query I rowsort
SELECT + + 77 * - 43 * 5 AS col0
----
-16555

query I rowsort
SELECT ALL + 72 + - 0
----
72

query I rowsort
SELECT + + 17 - - 70
----
87

query I rowsort
SELECT ALL - ( + - 70 ) + + ( + - CASE - + ( - 22 ) WHEN 13 THEN NULL WHEN 10 THEN NULL WHEN + 50 THEN + + 87 / + 45 END ) AS col2
----
NULL

query I rowsort
SELECT + 64 * - 83 + + 22 + 92 + + 99 * + ( - - 36 )
----
-1634

onlyif mysql # aggregate syntax: 
query I rowsort label-7768
SELECT - SUM( - 10 ) - 35 AS col1
----
-25

skipif mysql # not compatible
query I rowsort label-7768
SELECT - SUM ( - 10 ) - 35 AS col1
----
-25

query II rowsort
SELECT ALL - ( 36 ) AS col1, + 69 + - + 49
----
-36
20

onlyif mysql # aggregate syntax: 
query I rowsort label-7770
SELECT + - MAX( ALL 2 ) * 7 AS col0
----
-14

skipif mysql # not compatible
query I rowsort label-7770
SELECT + - MAX ( ALL 2 ) * 7 AS col0
----
-14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7771
SELECT CASE + - 72 WHEN 90 + CAST( - - ( - 26 ) AS SIGNED ) THEN NULL WHEN 76 / - 82 + + 32 + 15 * 50 THEN + 16 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7771
SELECT CASE + - 72 WHEN 90 + CAST ( - - ( - 26 ) AS INTEGER ) THEN NULL WHEN 76 / - 82 + + 32 + 15 * 50 THEN + 16 END
----
NULL

query II rowsort
SELECT - 67 AS col2, 93 + - + 17 * 81 AS col1
----
-67
-1284

query I rowsort
SELECT 88 + - - 20
----
108

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7774
SELECT 33 * - 64 + 97 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7774
SELECT 33 * - 64 + 97 + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7775
SELECT ALL - COALESCE ( + + 96, 74 * COUNT( * ) )
----
-96

skipif mysql # not compatible
query I rowsort label-7775
SELECT ALL - COALESCE ( + + 96, 74 * COUNT ( * ) )
----
-96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7776
SELECT + 94 DIV - MAX( DISTINCT + ( 87 ) ) + 57
----
56

skipif mysql # not compatible
query I rowsort label-7776
SELECT + 94 / - MAX ( DISTINCT + ( 87 ) ) + 57
----
56

query I rowsort
SELECT 78 + - 35
----
43

query I rowsort
SELECT DISTINCT + 80 * + - 79
----
-6320

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7779
SELECT ALL - COALESCE ( + 54, + MAX( ALL + CAST( + ( + 55 ) AS SIGNED ) ), - 78 * - 25 ), - 63 + + 9 AS col1
----
-54
-54

skipif mysql # not compatible
query II rowsort label-7779
SELECT ALL - COALESCE ( + 54, + MAX ( ALL + CAST ( + ( + 55 ) AS INTEGER ) ), - 78 * - 25 ), - 63 + + 9 AS col1
----
-54
-54

onlyif mysql # aggregate syntax: 
query II rowsort label-7780
SELECT + 43 col2, - COUNT( * )
----
43
-1

skipif mysql # not compatible
query II rowsort label-7780
SELECT + 43 col2, - COUNT ( * )
----
43
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-7781
SELECT 84 DIV - 74
----
-1

skipif mysql # not compatible
query I rowsort label-7781
SELECT 84 / - 74
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7782
SELECT NULLIF ( + NULLIF ( + 89, + 6 ), - MIN( - 58 ) + - 7 ) * + ( - 12 ) - 31 * 13 AS col0
----
-1471

skipif mysql # not compatible
query I rowsort label-7782
SELECT NULLIF ( + NULLIF ( + 89, + 6 ), - MIN ( - 58 ) + - 7 ) * + ( - 12 ) - 31 * 13 AS col0
----
-1471

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7783
SELECT 90 + 89 + - CAST( NULL AS DECIMAL ) + + 32
----
NULL

skipif mysql # not compatible
query I rowsort label-7783
SELECT 90 + 89 + - CAST ( NULL AS REAL ) + + 32
----
NULL

query I rowsort
SELECT 99 + - 16
----
83

onlyif mysql # aggregate syntax: 
query II rowsort label-7785
SELECT DISTINCT - COUNT( * ) AS col2, 3 AS col0
----
-1
3

skipif mysql # not compatible
query II rowsort label-7785
SELECT DISTINCT - COUNT ( * ) AS col2, 3 AS col0
----
-1
3

query I rowsort
SELECT DISTINCT 34 + + ( 61 ) + + 37
----
132

onlyif mysql # aggregate syntax: 
query I rowsort label-7787
SELECT DISTINCT - + COUNT( * ) + 93
----
92

skipif mysql # not compatible
query I rowsort label-7787
SELECT DISTINCT - + COUNT ( * ) + 93
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-7788
SELECT ALL + COUNT( * ) + - COALESCE ( + - COUNT( DISTINCT 39 ), + CASE - CASE - 87 WHEN - - 98 THEN + 71 WHEN - - ( - + 29 ) THEN NULL WHEN + - 60 THEN + 24 + + 76 + 33 * + - 42 END WHEN - ( 22 ) * + - 68 THEN NULL WHEN - ( - - 91 ) THEN + 28 ELSE NULL END, - + 63 ) AS col2
----
2

skipif mysql # not compatible
query I rowsort label-7788
SELECT ALL + COUNT ( * ) + - COALESCE ( + - COUNT ( DISTINCT 39 ), + CASE - CASE - 87 WHEN - - 98 THEN + 71 WHEN - - ( - + 29 ) THEN NULL WHEN + - 60 THEN + 24 + + 76 + 33 * + - 42 END WHEN - ( 22 ) * + - 68 THEN NULL WHEN - ( - - 91 ) THEN + 28 ELSE NULL END, - + 63 ) AS col2
----
2

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7789
SELECT ALL NULLIF ( - COALESCE ( 30, - - 16 + + 68 ), + NULLIF ( 40, ( + - ( ( + CAST( NULL AS DECIMAL ) ) ) ) * - - 20 + - CAST( NULL AS SIGNED ) / 1 + - 21 + 84 ) ) AS col2
----
-30

skipif mysql # not compatible
query I rowsort label-7789
SELECT ALL NULLIF ( - COALESCE ( 30, - - 16 + + 68 ), + NULLIF ( 40, ( + - ( ( + CAST ( NULL AS REAL ) ) ) ) * - - 20 + - CAST ( NULL AS INTEGER ) / 1 + - 21 + 84 ) ) AS col2
----
-30

query I rowsort
SELECT 17 + - - 70 - + - 81 * - 99 AS col2
----
-7932

query I rowsort
SELECT DISTINCT 38 * + 88 AS col2
----
3344

query I rowsort
SELECT - 12 + + 57 * 91
----
5175

query I rowsort
SELECT 10 + - 89 AS col2
----
-79

query I rowsort
SELECT DISTINCT 27 - + + 1 * - 75 AS col0
----
102

onlyif mysql # aggregate syntax: 
query I rowsort label-7795
SELECT ALL + 24 - + MAX( DISTINCT + 16 ) AS col0
----
8

skipif mysql # not compatible
query I rowsort label-7795
SELECT ALL + 24 - + MAX ( DISTINCT + 16 ) AS col0
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-7796
SELECT 25 + - ( MIN( ALL + - 90 ) ) * 82 AS col2
----
7405

skipif mysql # not compatible
query I rowsort label-7796
SELECT 25 + - ( MIN ( ALL + - 90 ) ) * 82 AS col2
----
7405

query I rowsort
SELECT - 28 * + 37 AS col1
----
-1036

query I rowsort
SELECT 56 * - + 55 AS col1
----
-3080

query II rowsort
SELECT 75 * + 14 AS col2, 31 AS col2
----
1050
31

query I rowsort
SELECT ALL 25 * + 24 AS col0
----
600

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7801
SELECT ALL 78 AS col2, - COUNT( * ) DIV + ( 29 ) * - 9 + - 24 * 25 * - 82 AS col0
----
78
49200

skipif mysql # not compatible
query II rowsort label-7801
SELECT ALL 78 AS col2, - COUNT ( * ) / + ( 29 ) * - 9 + - 24 * 25 * - 82 AS col0
----
78
49200

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7802
SELECT 93 * 66 + + COALESCE ( + - 28, - - 42 ) - + 74 DIV - COUNT( * ) AS col0
----
6184

skipif mysql # not compatible
query I rowsort label-7802
SELECT 93 * 66 + + COALESCE ( + - 28, - - 42 ) - + 74 / - COUNT ( * ) AS col0
----
6184

query I rowsort
SELECT ( - 14 ) * 16
----
-224

query I rowsort
SELECT 10 + 70 AS col1
----
80

onlyif mysql # DIV for integer division: 
query I rowsort label-7805
SELECT 19 DIV 9 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-7805
SELECT 19 / 9 AS col2
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7806
SELECT ALL - 30 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7806
SELECT ALL - 30 + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7807
SELECT MIN( ALL + + 15 ) * - ( - 87 )
----
1305

skipif mysql # not compatible
query I rowsort label-7807
SELECT MIN ( ALL + + 15 ) * - ( - 87 )
----
1305

onlyif mysql # aggregate syntax: 
query I rowsort label-7808
SELECT ALL - COUNT( - + 92 ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-7808
SELECT ALL - COUNT ( - + 92 ) col2
----
-1

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7809
SELECT ALL 11 + - CAST( NULL AS SIGNED ) + CAST( + 11 AS DECIMAL ) * - AVG ( DISTINCT + 58 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7809
SELECT ALL 11 + - CAST ( NULL AS INTEGER ) + CAST ( + 11 AS REAL ) * - AVG ( DISTINCT + 58 )
----
NULL

query I rowsort
SELECT ALL 70 + + + 73 AS col2
----
143

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7811
SELECT DISTINCT - CASE - AVG ( - + 40 ) WHEN COUNT( * ) THEN - - CAST( - 71 AS SIGNED ) WHEN - + 35 THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7811
SELECT DISTINCT - CASE - AVG ( - + 40 ) WHEN COUNT ( * ) THEN - - CAST ( - 71 AS INTEGER ) WHEN - + 35 THEN NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7812
SELECT ALL - CAST( NULL AS SIGNED ) + 86 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7812
SELECT ALL - CAST ( NULL AS INTEGER ) + 86 AS col1
----
NULL

query I rowsort
SELECT 25 * + 35
----
875

query I rowsort
SELECT DISTINCT - 58 + + + 34 AS col1
----
-24

query I rowsort
SELECT ALL - - 72 * 4 + - 73
----
215

query II rowsort
SELECT 0, + 32 AS col0
----
0
32

onlyif mysql # DIV for integer division: 
query I rowsort label-7817
SELECT - 44 DIV + - 61 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7817
SELECT - 44 / + - 61 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7818
SELECT - MIN( 41 ) * 84
----
-3444

skipif mysql # not compatible
query I rowsort label-7818
SELECT - MIN ( 41 ) * 84
----
-3444

query II rowsort
SELECT + 53, 12 AS col2
----
53
12

query II rowsort
SELECT - 64, 41 AS col2
----
-64
41

query II rowsort
SELECT + 14 AS col2, 29 + - 17 AS col0
----
14
12

onlyif mysql # aggregate syntax: 
query I rowsort label-7822
SELECT ALL - + NULLIF ( - NULLIF ( 30, - + ( - 84 ) * 42 * + COALESCE ( ( - - 89 ), + - 17 ) * + - 84 ), + MIN( 93 ) ) + - - 97 AS col0
----
127

skipif mysql # not compatible
query I rowsort label-7822
SELECT ALL - + NULLIF ( - NULLIF ( 30, - + ( - 84 ) * 42 * + COALESCE ( ( - - 89 ), + - 17 ) * + - 84 ), + MIN ( 93 ) ) + - - 97 AS col0
----
127

onlyif mysql # aggregate syntax: 
query I rowsort label-7823
SELECT ALL - MIN( COALESCE ( - 52, + 13, + 54 ) )
----
52

skipif mysql # not compatible
query I rowsort label-7823
SELECT ALL - MIN ( COALESCE ( - 52, + 13, + 54 ) )
----
52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7824
SELECT 56 AS col0, + COALESCE ( - + 24, + ( - 37 ) ) * 50 + + + 30 * + CAST( NULL AS SIGNED ) * MAX( ALL + 81 ) col2
----
56
NULL

skipif mysql # not compatible
query II rowsort label-7824
SELECT 56 AS col0, + COALESCE ( - + 24, + ( - 37 ) ) * 50 + + + 30 * + CAST ( NULL AS INTEGER ) * MAX ( ALL + 81 ) col2
----
56
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7825
SELECT DISTINCT - CAST( - 42 AS SIGNED ) - - 47 DIV 20 AS col1
----
44

skipif mysql # not compatible
query I rowsort label-7825
SELECT DISTINCT - CAST ( - 42 AS INTEGER ) - - 47 / 20 AS col1
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-7826
SELECT 71 * - 41 + - ( + - 45 ) * - 69 * + COUNT( * ) + COUNT( * )
----
-6015

skipif mysql # not compatible
query I rowsort label-7826
SELECT 71 * - 41 + - ( + - 45 ) * - 69 * + COUNT ( * ) + COUNT ( * )
----
-6015

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7827
SELECT ALL + COALESCE ( + - 75, - 80 * - 78 DIV + - 87 + 17 + - COUNT( * ) * 64 + + 11, - 98 DIV 61 ) * - - 66 AS col1
----
-4950

skipif mysql # not compatible
query I rowsort label-7827
SELECT ALL + COALESCE ( + - 75, - 80 * - 78 / + - 87 + 17 + - COUNT ( * ) * 64 + + 11, - 98 / 61 ) * - - 66 AS col1
----
-4950

onlyif mysql # DIV for integer division: 
query I rowsort label-7828
SELECT ( + - 69 ) DIV + 9
----
-7

skipif mysql # not compatible
query I rowsort label-7828
SELECT ( + - 69 ) / + 9
----
-7

onlyif mysql # DIV for integer division: 
query I rowsort label-7829
SELECT ALL - - 55 DIV + 78 + - - 0
----
0

skipif mysql # not compatible
query I rowsort label-7829
SELECT ALL - - 55 / + 78 + - - 0
----
0

query II rowsort
SELECT - + 47 AS col1, 97 AS col0
----
-47
97

onlyif mysql # DIV for integer division: 
query I rowsort label-7831
SELECT DISTINCT - 95 DIV + ( + 63 )
----
-1

skipif mysql # not compatible
query I rowsort label-7831
SELECT DISTINCT - 95 / + ( + 63 )
----
-1

query I rowsort
SELECT ( - 84 ) + 29 AS col2
----
-55

query II rowsort
SELECT - 71 col2, 17 + - - 32 col1
----
-71
49

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7834
SELECT - CAST( NULL AS DECIMAL ) + + 42 + - + NULLIF ( - 72, + COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7834
SELECT - CAST ( NULL AS REAL ) + + 42 + - + NULLIF ( - 72, + COUNT ( * ) )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7835
SELECT + 82 DIV + + 36 * + COUNT( 68 ) + ( - 75 ) * - 16
----
1202

skipif mysql # not compatible
query I rowsort label-7835
SELECT + 82 / + + 36 * + COUNT ( 68 ) + ( - 75 ) * - 16
----
1202

onlyif mysql # aggregate syntax: 
query I rowsort label-7836
SELECT + + ( - 0 ) * - SUM( ALL + 1 ) + + - 84
----
-84

skipif mysql # not compatible
query I rowsort label-7836
SELECT + + ( - 0 ) * - SUM ( ALL + 1 ) + + - 84
----
-84

query I rowsort
SELECT ALL - 7 * + + 33 AS col0
----
-231

onlyif mysql # aggregate syntax: 
query I rowsort label-7838
SELECT DISTINCT CASE - + COUNT( * ) WHEN 86 THEN COUNT( * ) / 76 / + 81 + - - MAX( ALL 98 ) - - - 4 * 33 * - SUM( - 23 ) * + - 76 + 46 - 62 + - - 46 WHEN - 5 THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7838
SELECT DISTINCT CASE - + COUNT ( * ) WHEN 86 THEN COUNT ( * ) / 76 / + 81 + - - MAX ( ALL 98 ) - - - 4 * 33 * - SUM ( - 23 ) * + - 76 + 46 - 62 + - - 46 WHEN - 5 THEN NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7839
SELECT DISTINCT NULLIF ( 51, + COUNT( * ) * - - 23 + 58 ) col0, 89 + COUNT( * ) - + - 87 + + 40 * - 15 * + 1 * - 7 AS col2
----
51
4377

skipif mysql # not compatible
query II rowsort label-7839
SELECT DISTINCT NULLIF ( 51, + COUNT ( * ) * - - 23 + 58 ) col0, 89 + COUNT ( * ) - + - 87 + + 40 * - 15 * + 1 * - 7 AS col2
----
51
4377

onlyif mysql # aggregate syntax: 
query I rowsort label-7840
SELECT + 65 * - COUNT( * ) * 0 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7840
SELECT + 65 * - COUNT ( * ) * 0 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7841
SELECT ALL - 90 * + SUM( + + 13 ) + + - 30 + + 88
----
-1112

skipif mysql # not compatible
query I rowsort label-7841
SELECT ALL - 90 * + SUM ( + + 13 ) + + - 30 + + 88
----
-1112

query I rowsort
SELECT 8 * 88 + - 59
----
645

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7843
SELECT + 29 * + - CAST( 14 AS SIGNED ) AS col2
----
-406

skipif mysql # not compatible
query I rowsort label-7843
SELECT + 29 * + - CAST ( 14 AS INTEGER ) AS col2
----
-406

onlyif mysql # DIV for integer division: 
query I rowsort label-7844
SELECT DISTINCT 91 * + 47 + - 7 DIV - + 76 AS col1
----
4277

skipif mysql # not compatible
query I rowsort label-7844
SELECT DISTINCT 91 * + 47 + - 7 / - + 76 AS col1
----
4277

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7845
SELECT ALL AVG ( DISTINCT 92 ) * - CAST( NULL AS SIGNED ) + 79 + + 60 AS col2, 17 * 27
----
NULL
459

skipif mysql # not compatible
query II rowsort label-7845
SELECT ALL AVG ( DISTINCT 92 ) * - CAST ( NULL AS INTEGER ) + 79 + + 60 AS col2, 17 * 27
----
NULL
459

onlyif mysql # aggregate syntax: 
query II rowsort label-7846
SELECT ALL + 58 * - 81 + - 65 * + 78 + + COUNT( * ), 83 * 89 + 90 AS col1
----
-9767
7477

skipif mysql # not compatible
query II rowsort label-7846
SELECT ALL + 58 * - 81 + - 65 * + 78 + + COUNT ( * ), 83 * 89 + 90 AS col1
----
-9767
7477

onlyif mysql # aggregate syntax: 
query I rowsort label-7847
SELECT ALL + MIN( + 24 ) * + - 34 * + - 58 + - 83 + COUNT( * ) AS col2
----
47246

skipif mysql # not compatible
query I rowsort label-7847
SELECT ALL + MIN ( + 24 ) * + - 34 * + - 58 + - 83 + COUNT ( * ) AS col2
----
47246

query I rowsort
SELECT ALL 64 * - + 94 * + 20
----
-120320

onlyif mysql # aggregate syntax: 
query I rowsort label-7849
SELECT DISTINCT COUNT( * ) * 78 * + + COUNT( * ) AS col1
----
78

skipif mysql # not compatible
query I rowsort label-7849
SELECT DISTINCT COUNT ( * ) * 78 * + + COUNT ( * ) AS col1
----
78

query I rowsort
SELECT - 3 * 38 + + 17
----
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7851
SELECT + CASE - - COUNT( * ) WHEN - + 3 + 72 * + 57 THEN NULL WHEN + - COUNT( * ) THEN NULL ELSE + 82 + COALESCE ( - 7, 18, - - CAST( NULL AS SIGNED ) ) - + 73 + 25 + 76 + + + ( + 94 ) * - CAST( NULL AS DECIMAL ) * - + 89 * + 40 + - + 41 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7851
SELECT + CASE - - COUNT ( * ) WHEN - + 3 + 72 * + 57 THEN NULL WHEN + - COUNT ( * ) THEN NULL ELSE + 82 + COALESCE ( - 7, 18, - - CAST ( NULL AS INTEGER ) ) - + 73 + 25 + 76 + + + ( + 94 ) * - CAST ( NULL AS REAL ) * - + 89 * + 40 + - + 41 END AS col0
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7852
SELECT + 85 * CAST( NULL AS DECIMAL ) * 53 + - 46 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7852
SELECT + 85 * CAST ( NULL AS REAL ) * 53 + - 46 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7853
SELECT - + COUNT( * ) * - 13 col2
----
13

skipif mysql # not compatible
query I rowsort label-7853
SELECT - + COUNT ( * ) * - 13 col2
----
13

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7854
SELECT + + NULLIF ( + + COUNT( * ), + 98 * - 97 * + AVG ( + 90 ) + + 92 ) + + + COUNT( * ) - - 73 * + 79 AS col2, - 98 * + 93 - + ( - + 69 ) DIV + + 61 + + ( 15 ) AS col2
----
5769
-9098

skipif mysql # not compatible
query II rowsort label-7854
SELECT + + NULLIF ( + + COUNT ( * ), + 98 * - 97 * + AVG ( + 90 ) + + 92 ) + + + COUNT ( * ) - - 73 * + 79 AS col2, - 98 * + 93 - + ( - + 69 ) / + + 61 + + ( 15 ) AS col2
----
5769
-9098

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7855
SELECT ALL - - 29 * 58 + 20 * - - COUNT( * ) + + - 80 - - + 52 * ( - CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7855
SELECT ALL - - 29 * 58 + 20 * - - COUNT ( * ) + + - 80 - - + 52 * ( - CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7856
SELECT 54 * COUNT( * ) + - 37 / 9 + + CAST( NULL AS DECIMAL ) + + - 17
----
NULL

skipif mysql # not compatible
query I rowsort label-7856
SELECT 54 * COUNT ( * ) + - 37 / 9 + + CAST ( NULL AS REAL ) + + - 17
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7857
SELECT ALL + COALESCE ( - COUNT( * ), + 75 * 98, - - COUNT( * ) + CAST( NULL AS SIGNED ) )
----
-1

skipif mysql # not compatible
query I rowsort label-7857
SELECT ALL + COALESCE ( - COUNT ( * ), + 75 * 98, - - COUNT ( * ) + CAST ( NULL AS INTEGER ) )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7858
SELECT DISTINCT + COUNT( - 46 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7858
SELECT DISTINCT + COUNT ( - 46 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7859
SELECT - - COUNT( * ) * + - 99 AS col0
----
-99

skipif mysql # not compatible
query I rowsort label-7859
SELECT - - COUNT ( * ) * + - 99 AS col0
----
-99

query I rowsort
SELECT + + 77 * - 83 - - 30 AS col0
----
-6361

onlyif mysql # aggregate syntax: 
query II rowsort label-7861
SELECT ALL ( + 59 ), COUNT( - ( 81 ) ) AS col2
----
59
1

skipif mysql # not compatible
query II rowsort label-7861
SELECT ALL ( + 59 ), COUNT ( - ( 81 ) ) AS col2
----
59
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7862
SELECT ALL COUNT( ALL + + NULLIF ( - 77, 6 ) ) col0
----
1

skipif mysql # not compatible
query I rowsort label-7862
SELECT ALL COUNT ( ALL + + NULLIF ( - 77, 6 ) ) col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7863
SELECT - - SUM( DISTINCT + 12 ) * + 82 + - - COUNT( * ) * + SUM( DISTINCT - 63 ) AS col2
----
921

skipif mysql # not compatible
query I rowsort label-7863
SELECT - - SUM ( DISTINCT + 12 ) * + 82 + - - COUNT ( * ) * + SUM ( DISTINCT - 63 ) AS col2
----
921

query II rowsort
SELECT 30, + 91 AS col0
----
30
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7865
SELECT - 72 + + + 83 + - COUNT( * ) + 94 * 93 * - CAST( NULL AS SIGNED ) * + 27 / NULLIF ( + 79, + 17 + 36 ) / 39 + - 64 AS col1, - 60 col0
----
NULL
-60

skipif mysql # not compatible
query II rowsort label-7865
SELECT - 72 + + + 83 + - COUNT ( * ) + 94 * 93 * - CAST ( NULL AS INTEGER ) * + 27 / NULLIF ( + 79, + 17 + 36 ) / 39 + - 64 AS col1, - 60 col0
----
NULL
-60

query I rowsort
SELECT ALL ( - + 6 ) AS col2
----
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7867
SELECT ALL + 48 / + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7867
SELECT ALL + 48 / + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7868
SELECT - NULLIF ( - + CASE 88 WHEN + 33 + CAST( - - ( + 88 ) AS SIGNED ) * COUNT( * ) + + - 64 * + 82 THEN NULL WHEN - 88 * - 90 * - 15 - + - 69 THEN - + COUNT( * ) END, 68 - - + ( - 84 ) ) * - 30 + + + 99 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7868
SELECT - NULLIF ( - + CASE 88 WHEN + 33 + CAST ( - - ( + 88 ) AS INTEGER ) * COUNT ( * ) + + - 64 * + 82 THEN NULL WHEN - 88 * - 90 * - 15 - + - 69 THEN - + COUNT ( * ) END, 68 - - + ( - 84 ) ) * - 30 + + + 99 AS col0
----
NULL

query I rowsort
SELECT - 48 + + 42
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-7870
SELECT DISTINCT + COUNT( * ) + - NULLIF ( + - 61, - 62 + - 53 + + 55 + + - NULLIF ( - + COUNT( * ), + 19 ) * 61 * + + 95 * - 74 * 60 ) * ( 64 )
----
3905

skipif mysql # not compatible
query I rowsort label-7870
SELECT DISTINCT + COUNT ( * ) + - NULLIF ( + - 61, - 62 + - 53 + + 55 + + - NULLIF ( - + COUNT ( * ), + 19 ) * 61 * + + 95 * - 74 * 60 ) * ( 64 )
----
3905

query I rowsort
SELECT + 1 / + NULLIF ( - CASE - 10 WHEN + 80 THEN ( + 47 ) END, 80 ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7872
SELECT - CAST( NULL AS DECIMAL ) * + - CASE + 62 WHEN - 85 * + 19 THEN + - 31 / + 18 WHEN - - 2 THEN NULL END * - COUNT( * ) / 93 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7872
SELECT - CAST ( NULL AS REAL ) * + - CASE + 62 WHEN - 85 * + 19 THEN + - 31 / + 18 WHEN - - 2 THEN NULL END * - COUNT ( * ) / 93 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7873
SELECT - CASE 84 WHEN - 48 * ( COUNT( * ) ) + + 46 THEN NULL ELSE - + 6 + - 57 + - COUNT( * ) + CAST( 60 AS SIGNED ) * - - 12 END AS col2
----
-656

skipif mysql # not compatible
query I rowsort label-7873
SELECT - CASE 84 WHEN - 48 * ( COUNT ( * ) ) + + 46 THEN NULL ELSE - + 6 + - 57 + - COUNT ( * ) + CAST ( 60 AS INTEGER ) * - - 12 END AS col2
----
-656

query II rowsort
SELECT ALL 85 AS col2, - 4
----
85
-4

onlyif mysql # DIV for integer division: 
query I rowsort label-7875
SELECT - 30 DIV - + 87 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7875
SELECT - 30 / - + 87 AS col0
----
0

query I rowsort
SELECT DISTINCT + 31 + - 35 AS col1
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-7877
SELECT ALL + COUNT( * ) + + - 37 * + - 77 col0
----
2850

skipif mysql # not compatible
query I rowsort label-7877
SELECT ALL + COUNT ( * ) + + - 37 * + - 77 col0
----
2850

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7878
SELECT ALL + 31 DIV 7 + - - 72 col0, - 96 * - COUNT( * )
----
76
96

skipif mysql # not compatible
query II rowsort label-7878
SELECT ALL + 31 / 7 + - - 72 col0, - 96 * - COUNT ( * )
----
76
96

query I rowsort
SELECT + 58 * - + 43
----
-2494

onlyif mysql # DIV for integer division: 
query II rowsort label-7880
SELECT DISTINCT + 87 DIV + 41 + + - 79 col1, + 70
----
-77
70

skipif mysql # not compatible
query II rowsort label-7880
SELECT DISTINCT + 87 / + 41 + + - 79 col1, + 70
----
-77
70

query I rowsort
SELECT + 52 + + 62 AS col1
----
114

query II rowsort
SELECT ALL + 80 col1, - 72
----
80
-72

onlyif mysql # DIV for integer division: 
query I rowsort label-7883
SELECT ALL - 54 DIV + - 56 - 90 * 5 + + - 77 + COALESCE ( - + 83, - 21 * - + 39 + + COALESCE ( - NULLIF ( + 56, - ( 53 ) ), - - 6, - 96 ), - 64 * - 88 ) + + 65
----
-545

skipif mysql # not compatible
query I rowsort label-7883
SELECT ALL - 54 / + - 56 - 90 * 5 + + - 77 + COALESCE ( - + 83, - 21 * - + 39 + + COALESCE ( - NULLIF ( + 56, - ( 53 ) ), - - 6, - 96 ), - 64 * - 88 ) + + 65
----
-545

query I rowsort
SELECT - 22 * + - 74
----
1628

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7885
SELECT CAST( + + 29 AS SIGNED )
----
29

skipif mysql # not compatible
query I rowsort label-7885
SELECT CAST ( + + 29 AS INTEGER )
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-7886
SELECT + CASE - 26 WHEN - - AVG ( + 26 ) / - 37 * 91 * - 34 * + MIN( ALL + 55 ) * - 31 THEN - 13 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7886
SELECT + CASE - 26 WHEN - - AVG ( + 26 ) / - 37 * 91 * - 34 * + MIN ( ALL + 55 ) * - 31 THEN - 13 END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7887
SELECT ALL + + 86 DIV + + 82 - - 32 + 46 * 37 * + 37 + - SUM( DISTINCT - + 94 ) AS col2
----
63101

skipif mysql # not compatible
query I rowsort label-7887
SELECT ALL + + 86 / + + 82 - - 32 + 46 * 37 * + 37 + - SUM ( DISTINCT - + 94 ) AS col2
----
63101

query I rowsort
SELECT + ( - 11 ) * + 27 + + 92 AS col2
----
-205

query I rowsort
SELECT ALL 31 * + 39 * 49 AS col0
----
59241

onlyif mysql # aggregate syntax: 
query I rowsort label-7890
SELECT + MAX( 22 )
----
22

skipif mysql # not compatible
query I rowsort label-7890
SELECT + MAX ( 22 )
----
22

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7891
SELECT + NULLIF ( 93, - 43 ) DIV + COALESCE ( - - 49, + - 46 * 34, 14 * - + COUNT( * ) + + 99 + ( - 10 ) + 5 ) + - 27 - + 90 * + 83 AS col0
----
-7496

skipif mysql # not compatible
query I rowsort label-7891
SELECT + NULLIF ( 93, - 43 ) / + COALESCE ( - - 49, + - 46 * 34, 14 * - + COUNT ( * ) + + 99 + ( - 10 ) + 5 ) + - 27 - + 90 * + 83 AS col0
----
-7496

query I rowsort
SELECT ALL 89 * 18 AS col2
----
1602

onlyif mysql # aggregate syntax: 
query I rowsort label-7893
SELECT + 58 * - ( + 24 ) * - MIN( ALL 90 ) * - 3 + - - 17 + - - COUNT( * ) / 36 * CASE - 53 WHEN + + 87 THEN 61 ELSE NULL END + + 39 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7893
SELECT + 58 * - ( + 24 ) * - MIN ( ALL 90 ) * - 3 + - - 17 + - - COUNT ( * ) / 36 * CASE - 53 WHEN + + 87 THEN 61 ELSE NULL END + + 39 AS col0
----
NULL

query I rowsort
SELECT + 81 - 30
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-7895
SELECT + 55 * - + COUNT( * ) * + 7
----
-385

skipif mysql # not compatible
query I rowsort label-7895
SELECT + 55 * - + COUNT ( * ) * + 7
----
-385

query II rowsort
SELECT - 67, + 9 AS col2
----
-67
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7897
SELECT ( 37 ) * 30 * + 17 + + MIN( + 9 ) * + MAX( ALL + - 20 ), 76 * + + 18 DIV 1 + 25 AS col2
----
18690
1393

skipif mysql # not compatible
query II rowsort label-7897
SELECT ( 37 ) * 30 * + 17 + + MIN ( + 9 ) * + MAX ( ALL + - 20 ), 76 * + + 18 / 1 + 25 AS col2
----
18690
1393

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7898
SELECT - CAST( NULL AS SIGNED ) - 83 * 3 * + 75 + + 53 + - COUNT( * ) - - 32 * + 67 + + 19
----
NULL

skipif mysql # not compatible
query I rowsort label-7898
SELECT - CAST ( NULL AS INTEGER ) - 83 * 3 * + 75 + + 53 + - COUNT ( * ) - - 32 * + 67 + + 19
----
NULL

query I rowsort
SELECT 2 * + 15 AS col1
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-7900
SELECT ALL 5 + - ( - + ( + COUNT( * ) ) )
----
6

skipif mysql # not compatible
query I rowsort label-7900
SELECT ALL 5 + - ( - + ( + COUNT ( * ) ) )
----
6

query II rowsort
SELECT DISTINCT 46, 3 AS col1
----
46
3

query I rowsort
SELECT DISTINCT + - 0 * 97 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7903
SELECT 68 + 24 + - CASE + 39 WHEN + + CASE + 94 WHEN - 7 THEN NULL WHEN + 63 * + + COUNT( * ) THEN + 46 END + 14 * + - 52 THEN 33 ELSE NULL END / + - 87 * + - COUNT( * ) * - + 67 * + - 90 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7903
SELECT 68 + 24 + - CASE + 39 WHEN + + CASE + 94 WHEN - 7 THEN NULL WHEN + 63 * + + COUNT ( * ) THEN + 46 END + 14 * + - 52 THEN 33 ELSE NULL END / + - 87 * + - COUNT ( * ) * - + 67 * + - 90 AS col0
----
NULL

query I rowsort
SELECT ALL 54 + + ( + 93 ) AS col1
----
147

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7905
SELECT ( - 97 ) + + - 92 + - COALESCE ( - 78, + 88 + - COUNT( * ) + - COALESCE ( + 14, + COALESCE ( - SUM( - 71 ), + + 68 ) * + 59, - - 94 - + 24 ) * + NULLIF ( + CASE WHEN NOT - 13 BETWEEN + + 79 AND ( - 0 + + - 66 - + CAST( NULL AS SIGNED ) / - 82 ) THEN 99 * COUNT( * ) * - ( + 16 ) + - 44 * - - ( + 17 ) ELSE NULL END, - 96 - CAST( + + 20 AS DECIMAL ) ) ) * MAX( DISTINCT - + 79 )
----
-6351

skipif mysql # not compatible
query I rowsort label-7905
SELECT ( - 97 ) + + - 92 + - COALESCE ( - 78, + 88 + - COUNT ( * ) + - COALESCE ( + 14, + COALESCE ( - SUM ( - 71 ), + + 68 ) * + 59, - - 94 - + 24 ) * + NULLIF ( + CASE WHEN NOT - 13 BETWEEN + + 79 AND ( - 0 + + - 66 - + CAST ( NULL AS INTEGER ) / - 82 ) THEN 99 * COUNT ( * ) * - ( + 16 ) + - 44 * - - ( + 17 ) ELSE NULL END, - 96 - CAST ( + + 20 AS REAL ) ) ) * MAX ( DISTINCT - + 79 )
----
-6351

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7906
SELECT ( - 80 ) + + ( COUNT( * ) ) + + + CASE + COUNT( * ) WHEN + - 46 * + - 39 THEN - + 35 ELSE + 48 END DIV ( + - SUM( - 57 ) ) * 94 AS col0
----
-79

skipif mysql # not compatible
query I rowsort label-7906
SELECT ( - 80 ) + + ( COUNT ( * ) ) + + + CASE + COUNT ( * ) WHEN + - 46 * + - 39 THEN - + 35 ELSE + 48 END / ( + - SUM ( - 57 ) ) * 94 AS col0
----
-79

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7907
SELECT 93 + - + MIN( - ( + CASE - 31 WHEN + ( + 37 ) - - 31 THEN NULL ELSE 8 DIV + 58 + - + 88 - 95 END ) )
----
-90

skipif mysql # not compatible
query I rowsort label-7907
SELECT 93 + - + MIN ( - ( + CASE - 31 WHEN + ( + 37 ) - - 31 THEN NULL ELSE 8 / + 58 + - + 88 - 95 END ) )
----
-90

query I rowsort
SELECT 29 - 13
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-7909
SELECT 12 + + MIN( - 74 )
----
-62

skipif mysql # not compatible
query I rowsort label-7909
SELECT 12 + + MIN ( - 74 )
----
-62

query I rowsort
SELECT ALL - ( 85 ) + + 64 AS col2
----
-21

onlyif mysql # aggregate syntax: 
query II rowsort label-7911
SELECT 28 + + 33, + MIN( - 20 ) * 25 col1
----
61
-500

skipif mysql # not compatible
query II rowsort label-7911
SELECT 28 + + 33, + MIN ( - 20 ) * 25 col1
----
61
-500

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7912
SELECT ALL - 82 - + 84 + COALESCE ( - 92, - 62 * + NULLIF ( ( COALESCE ( + 16, + COALESCE ( CAST( + - COUNT( * ) AS SIGNED ), + 81 * COUNT( * ), - 22 ) + 99 + + + 94 ) ), - - 94 * - COUNT( * ) ) + + MAX( 34 ), 12 * + ( + - COUNT( * ) ) - CAST( + COUNT( DISTINCT + + 93 ) AS SIGNED ), 25 + 9 ) * - 13 AS col0
----
1030

skipif mysql # not compatible
query I rowsort label-7912
SELECT ALL - 82 - + 84 + COALESCE ( - 92, - 62 * + NULLIF ( ( COALESCE ( + 16, + COALESCE ( CAST ( + - COUNT ( * ) AS INTEGER ), + 81 * COUNT ( * ), - 22 ) + 99 + + + 94 ) ), - - 94 * - COUNT ( * ) ) + + MAX ( 34 ), 12 * + ( + - COUNT ( * ) ) - CAST ( + COUNT ( DISTINCT + + 93 ) AS INTEGER ), 25 + 9 ) * - 13 AS col0
----
1030

query I rowsort
SELECT ALL - 24 - - 18 + + 9 AS col0
----
3

query I rowsort
SELECT DISTINCT + 65 * - CASE - - 1 WHEN + 2 THEN - 13 + - 53 WHEN ( + + 90 ) THEN + 79 ELSE NULL END * + 92 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7915
SELECT ALL - NULLIF ( - + CASE - MAX( - 36 ) WHEN 84 - + + 64 THEN + 17 WHEN + 74 * - CAST( + 67 AS SIGNED ) THEN + 25 END, 49 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7915
SELECT ALL - NULLIF ( - + CASE - MAX ( - 36 ) WHEN 84 - + + 64 THEN + 17 WHEN + 74 * - CAST ( + 67 AS INTEGER ) THEN + 25 END, 49 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7916
SELECT ALL COUNT( * ) - 74 + + ( 49 ) * - 79 * - + 54 * + 21 + - 81 AS col1
----
4389560

skipif mysql # not compatible
query I rowsort label-7916
SELECT ALL COUNT ( * ) - 74 + + ( 49 ) * - 79 * - + 54 * + 21 + - 81 AS col1
----
4389560

onlyif mysql # aggregate syntax: 
query I rowsort label-7917
SELECT 76 * - 15 + - 88 * + + 18 * + COUNT( * )
----
-2724

skipif mysql # not compatible
query I rowsort label-7917
SELECT 76 * - 15 + - 88 * + + 18 * + COUNT ( * )
----
-2724

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7918
SELECT ALL + 32 * - COUNT( * ) + CAST( NULL AS SIGNED ) - - 96 / + 99 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7918
SELECT ALL + 32 * - COUNT ( * ) + CAST ( NULL AS INTEGER ) - - 96 / + 99 col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7919
SELECT - MAX( - + 80 ) AS col0, - 10 * - AVG ( ALL ( CASE 69 WHEN - 60 * 10 THEN + 99 END ) ) / 80 + + 46 + - 17 / SUM( DISTINCT + ( 72 ) )
----
80
NULL

skipif mysql # not compatible
query II rowsort label-7919
SELECT - MAX ( - + 80 ) AS col0, - 10 * - AVG ( ALL ( CASE 69 WHEN - 60 * 10 THEN + 99 END ) ) / 80 + + 46 + - 17 / SUM ( DISTINCT + ( 72 ) )
----
80
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7920
SELECT + - CAST( + 94 AS SIGNED ) * + 70 + + 16 * - - COUNT( * ) AS col0
----
-6564

skipif mysql # not compatible
query I rowsort label-7920
SELECT + - CAST ( + 94 AS INTEGER ) * + 70 + + 16 * - - COUNT ( * ) AS col0
----
-6564

query I rowsort
SELECT 56 * + 87 * 17 + - 70
----
82754

onlyif mysql # aggregate syntax: 
query I rowsort label-7922
SELECT MAX( DISTINCT + COALESCE ( - - NULLIF ( + - 52, + 37 ), + 81 ) ) * - COUNT( DISTINCT - 75 ) col0
----
52

skipif mysql # not compatible
query I rowsort label-7922
SELECT MAX ( DISTINCT + COALESCE ( - - NULLIF ( + - 52, + 37 ), + 81 ) ) * - COUNT ( DISTINCT - 75 ) col0
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-7923
SELECT - + MAX( ALL + ( - 63 ) ) * 47 + + + 1 * + 64 + + 55
----
3080

skipif mysql # not compatible
query I rowsort label-7923
SELECT - + MAX ( ALL + ( - 63 ) ) * 47 + + + 1 * + 64 + + 55
----
3080

onlyif mysql # aggregate syntax: 
query I rowsort label-7924
SELECT MIN( 44 ) * + COUNT( * ) + + 54 - COUNT( * ) * 67 + ( + 71 ) + - - 70 + - 44 AS col2
----
128

skipif mysql # not compatible
query I rowsort label-7924
SELECT MIN ( 44 ) * + COUNT ( * ) + + 54 - COUNT ( * ) * 67 + ( + 71 ) + - - 70 + - 44 AS col2
----
128

query I rowsort
SELECT ALL 23 * + 7 AS col0
----
161

query I rowsort
SELECT ALL - 25 + - 92
----
-117

query I rowsort
SELECT + - 86 * 7 * + + 25 + + 76 + 25
----
-14949

query I rowsort
SELECT ALL + 65 + - 38 + - 96 AS col0
----
-69

query I rowsort
SELECT ALL - NULLIF ( + + 51, + 96 ) AS col2
----
-51

query I rowsort
SELECT - ( - ( 9 ) ) AS col1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-7931
SELECT 13 + + - 66 + 41 + MIN( + - 64 ) - - + 60
----
-16

skipif mysql # not compatible
query I rowsort label-7931
SELECT 13 + + - 66 + 41 + MIN ( + - 64 ) - - + 60
----
-16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7932
SELECT 19 * + CAST( + 0 AS SIGNED ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7932
SELECT 19 * + CAST ( + 0 AS INTEGER ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7933
SELECT 29 + + 79 + + COUNT( - 86 ) + 98 * - - 62 * - - 53 + - 82 AS col1, COUNT( DISTINCT + 77 ) * 6 + + 8 AS col2
----
322055
14

skipif mysql # not compatible
query II rowsort label-7933
SELECT 29 + + 79 + + COUNT ( - 86 ) + 98 * - - 62 * - - 53 + - 82 AS col1, COUNT ( DISTINCT + 77 ) * 6 + + 8 AS col2
----
322055
14

onlyif mysql # DIV for integer division: 
query I rowsort label-7934
SELECT ALL 83 DIV - 60
----
-1

skipif mysql # not compatible
query I rowsort label-7934
SELECT ALL 83 / - 60
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-7935
SELECT 3 DIV - 90
----
0

skipif mysql # not compatible
query I rowsort label-7935
SELECT 3 / - 90
----
0

query I rowsort
SELECT 9 * 64 AS col0
----
576

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7937
SELECT DISTINCT NULLIF ( - + 41, CAST( + 67 AS SIGNED ) * MIN( ALL + 4 ) * - + MAX( - + 11 ) + + 58 ) - NULLIF ( - COALESCE ( + 18, - 37, - + 4 * 62 * COUNT( * ) ), ( + - 64 ) ) + - NULLIF ( + 49, 16 ) AS col2
----
-72

skipif mysql # not compatible
query I rowsort label-7937
SELECT DISTINCT NULLIF ( - + 41, CAST ( + 67 AS INTEGER ) * MIN ( ALL + 4 ) * - + MAX ( - + 11 ) + + 58 ) - NULLIF ( - COALESCE ( + 18, - 37, - + 4 * 62 * COUNT ( * ) ), ( + - 64 ) ) + - NULLIF ( + 49, 16 ) AS col2
----
-72

onlyif mysql # aggregate syntax: 
query II rowsort label-7938
SELECT 68, ( + - 14 ) + - COUNT( * ) AS col0
----
68
-15

skipif mysql # not compatible
query II rowsort label-7938
SELECT 68, ( + - 14 ) + - COUNT ( * ) AS col0
----
68
-15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7939
SELECT - AVG ( - - ( - CAST( NULL AS SIGNED ) ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7939
SELECT - AVG ( - - ( - CAST ( NULL AS INTEGER ) ) ) AS col2
----
NULL

query I rowsort
SELECT ALL ( 60 ) - + + 67 AS col1
----
-7

query II rowsort
SELECT ALL 50 AS col1, 45 AS col0
----
50
45

query I rowsort
SELECT 63 * 56
----
3528

query I rowsort
SELECT 34 * 41
----
1394

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7944
SELECT COALESCE ( 50, - 32 ) DIV + ( + 90 ) col1, + COUNT( * )
----
0
1

skipif mysql # not compatible
query II rowsort label-7944
SELECT COALESCE ( 50, - 32 ) / + ( + 90 ) col1, + COUNT ( * )
----
0
1

query II rowsort
SELECT DISTINCT - - 53, 23 AS col1
----
53
23

query I rowsort
SELECT NULLIF ( - - 54, - 62 + - 23 )
----
54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7947
SELECT + CAST( NULL AS SIGNED ) / + 4 * 76 + + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-7947
SELECT + CAST ( NULL AS INTEGER ) / + 4 * 76 + + - COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7948
SELECT - CAST( - ( + 99 ) AS SIGNED )
----
99

skipif mysql # not compatible
query I rowsort label-7948
SELECT - CAST ( - ( + 99 ) AS INTEGER )
----
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7949
SELECT ALL - + 46 DIV - - ( + - MAX( - 12 ) ) AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-7949
SELECT ALL - + 46 / - - ( + - MAX ( - 12 ) ) AS col2
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-7950
SELECT - 41 DIV - 57 + 48
----
48

skipif mysql # not compatible
query I rowsort label-7950
SELECT - 41 / - 57 + 48
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-7951
SELECT - ( + COUNT( * ) ) * 24
----
-24

skipif mysql # not compatible
query I rowsort label-7951
SELECT - ( + COUNT ( * ) ) * 24
----
-24

query II rowsort
SELECT + 34 AS col1, 28 AS col0
----
34
28

query I rowsort
SELECT - 24 * 2
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-7954
SELECT ALL + - MAX( - 68 ) col1
----
68

skipif mysql # not compatible
query I rowsort label-7954
SELECT ALL + - MAX ( - 68 ) col1
----
68

query I rowsort
SELECT - 68 + 35 * 75
----
2557

onlyif mysql # DIV for integer division: 
query I rowsort label-7956
SELECT ALL - + 54 DIV + 7 AS col2
----
-7

skipif mysql # not compatible
query I rowsort label-7956
SELECT ALL - + 54 / + 7 AS col2
----
-7

query II rowsort
SELECT DISTINCT - - 4 * - - 84 * 46 AS col0, 23
----
15456
23

query I rowsort
SELECT ALL + COALESCE ( 6, + - 27 * + 54 ) * + COALESCE ( - 0, 96 ) + + 65 + - 39 * 27 + + ( - 41 ) * + 75 * + 75
----
-231613

onlyif mysql # aggregate syntax: 
query I rowsort label-7959
SELECT DISTINCT + 4 * - - COUNT( * ) * 57 + + + MAX( ALL + 43 ) + - 99
----
172

skipif mysql # not compatible
query I rowsort label-7959
SELECT DISTINCT + 4 * - - COUNT ( * ) * 57 + + + MAX ( ALL + 43 ) + - 99
----
172

onlyif mysql # aggregate syntax: 
query I rowsort label-7960
SELECT ALL ( + 61 ) * - 46 * - COUNT( ALL - + 8 ) + - 80 AS col0
----
2726

skipif mysql # not compatible
query I rowsort label-7960
SELECT ALL ( + 61 ) * - 46 * - COUNT ( ALL - + 8 ) + - 80 AS col0
----
2726

onlyif mysql # aggregate syntax: 
query I rowsort label-7961
SELECT + 26 * - - COUNT( * ) AS col2
----
26

skipif mysql # not compatible
query I rowsort label-7961
SELECT + 26 * - - COUNT ( * ) AS col2
----
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-7962
SELECT ALL + MAX( 49 ) * - 97 + + 76 + + ( - 21 ) * + - COUNT( + - CAST( NULL AS SIGNED ) ) * - 71 + - 39 + - 58 * - - CASE CAST( + + NULLIF ( 93, - 2 * + 32 - - 78 ) AS DECIMAL ) WHEN + 83 THEN ( + NULLIF ( - COUNT( * ), - ( - - SUM( ALL - 49 ) ) - - - 63 * + 94 ) ) ELSE + 52 DIV + COUNT( * ) + 79 * - 36 * 81 END * + 80 + + 68 + - + 88 * + - 76
----
1068649720

skipif mysql # not compatible
query I rowsort label-7962
SELECT ALL + MAX ( 49 ) * - 97 + + 76 + + ( - 21 ) * + - COUNT ( + - CAST ( NULL AS INTEGER ) ) * - 71 + - 39 + - 58 * - - CASE CAST ( + + NULLIF ( 93, - 2 * + 32 - - 78 ) AS REAL ) WHEN + 83 THEN ( + NULLIF ( - COUNT ( * ), - ( - - SUM ( ALL - 49 ) ) - - - 63 * + 94 ) ) ELSE + 52 / + COUNT ( * ) + 79 * - 36 * 81 END * + 80 + + 68 + - + 88 * + - 76
----
1068649720

query I rowsort
SELECT - 66 - 60 AS col2
----
-126

onlyif mysql # aggregate syntax: 
query I rowsort label-7964
SELECT - 13 * + 57 * - COUNT( * ) AS col1
----
741

skipif mysql # not compatible
query I rowsort label-7964
SELECT - 13 * + 57 * - COUNT ( * ) AS col1
----
741

query I rowsort
SELECT + 19 * 1 col1
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-7966
SELECT ALL + COALESCE ( + 6, - 52 + + COALESCE ( - MAX( 57 ), - 20, + 2 ) + + - 98 * + 4 * + + ( 42 ) - 69 )
----
6

skipif mysql # not compatible
query I rowsort label-7966
SELECT ALL + COALESCE ( + 6, - 52 + + COALESCE ( - MAX ( 57 ), - 20, + 2 ) + + - 98 * + 4 * + + ( 42 ) - 69 )
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7967
SELECT COUNT( * ) AS col0, NULLIF ( - + NULLIF ( + 42, - 75 - + COALESCE ( - - 25, + - 30, + - COUNT( * ) ) ), + + 19 / 80 - + 12 * - - 84 * + 11 ) + - - MAX( CAST( NULL AS SIGNED ) )
----
1
NULL

skipif mysql # not compatible
query II rowsort label-7967
SELECT COUNT ( * ) AS col0, NULLIF ( - + NULLIF ( + 42, - 75 - + COALESCE ( - - 25, + - 30, + - COUNT ( * ) ) ), + + 19 / 80 - + 12 * - - 84 * + 11 ) + - - MAX ( CAST ( NULL AS INTEGER ) )
----
1
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7968
SELECT ALL NULLIF ( + - CASE - COUNT( * ) WHEN 69 / + 41 + - 34 THEN - 20 * + 89 + - 16 / - 78 / - + COUNT( * ) - 45 ELSE NULL END, + ( - 8 ) - - 61 / - - 88 ) + + 3 - NULLIF ( + COUNT( * ), - + COUNT( * ) / AVG ( + - COALESCE ( + - 57, + 5 + - 77, + 19 ) ) ) + + COUNT( * ) * - - CASE + 17 WHEN 37 + + 9 * COUNT( * ) THEN NULL ELSE + 55 / + - COUNT( - 54 ) + SUM( 39 ) END / + - 68 * + COUNT( * ) - - 48 * + 25 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7968
SELECT ALL NULLIF ( + - CASE - COUNT ( * ) WHEN 69 / + 41 + - 34 THEN - 20 * + 89 + - 16 / - 78 / - + COUNT ( * ) - 45 ELSE NULL END, + ( - 8 ) - - 61 / - - 88 ) + + 3 - NULLIF ( + COUNT ( * ), - + COUNT ( * ) / AVG ( + - COALESCE ( + - 57, + 5 + - 77, + 19 ) ) ) + + COUNT ( * ) * - - CASE + 17 WHEN 37 + + 9 * COUNT ( * ) THEN NULL ELSE + 55 / + - COUNT ( - 54 ) + SUM ( 39 ) END / + - 68 * + COUNT ( * ) - - 48 * + 25 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7969
SELECT ALL - COUNT( * ) DIV - + ( - + 99 ) * MIN( - - 96 )
----
0

skipif mysql # not compatible
query I rowsort label-7969
SELECT ALL - COUNT ( * ) / - + ( - + 99 ) * MIN ( - - 96 )
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7970
SELECT + 83 - - - 14, COUNT( * ) AS col0
----
69
1

skipif mysql # not compatible
query II rowsort label-7970
SELECT + 83 - - - 14, COUNT ( * ) AS col0
----
69
1

query I rowsort
SELECT DISTINCT 95 * - - ( + 17 ) * 39
----
62985

query I rowsort
SELECT DISTINCT 6 * + 82
----
492

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7973
SELECT - NULLIF ( - NULLIF ( 64, CASE + + 32 WHEN - 44 * + 86 + + 48 THEN + 15 * + CAST( + 10 AS DECIMAL ) * - 15 * + NULLIF ( + + 26, - + 18 ) END + 68 + + + 43 + - - 75 * + 94 + 44 * - COALESCE ( - + 24, + + 96 + + 23 ) ), + 53 ) AS col1
----
64

skipif mysql # not compatible
query I rowsort label-7973
SELECT - NULLIF ( - NULLIF ( 64, CASE + + 32 WHEN - 44 * + 86 + + 48 THEN + 15 * + CAST ( + 10 AS REAL ) * - 15 * + NULLIF ( + + 26, - + 18 ) END + 68 + + + 43 + - - 75 * + 94 + 44 * - COALESCE ( - + 24, + + 96 + + 23 ) ), + 53 ) AS col1
----
64

query II rowsort
SELECT ALL 41 - + + 24 AS col2, 79 AS col1
----
17
79

query II rowsort
SELECT + 53 * 51, 22 * - 14 AS col0
----
2703
-308

query I rowsort
SELECT + 23 + - 54 * + - 72 * + 82 * + 96
----
30606359

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7977
SELECT + 88 * - - COALESCE ( - - 83, 18, + 86 ) * + 91, + CAST( NULL AS SIGNED ) + - + NULLIF ( 25, + CAST( MIN( - CAST( + 48 AS SIGNED ) ) AS SIGNED ) ) + - - 89 * + 78 AS col1
----
664664
NULL

skipif mysql # not compatible
query II rowsort label-7977
SELECT + 88 * - - COALESCE ( - - 83, 18, + 86 ) * + 91, + CAST ( NULL AS INTEGER ) + - + NULLIF ( 25, + CAST ( MIN ( - CAST ( + 48 AS INTEGER ) ) AS INTEGER ) ) + - - 89 * + 78 AS col1
----
664664
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7978
SELECT ALL 45 col1, + 51 DIV + COUNT( * )
----
45
51

skipif mysql # not compatible
query II rowsort label-7978
SELECT ALL 45 col1, + 51 / + COUNT ( * )
----
45
51

query I rowsort
SELECT + 99 + + + 34
----
133

query I rowsort
SELECT ALL - 82 - + + 78 * - 70 AS col2
----
5378

query I rowsort
SELECT DISTINCT ( + 26 ) AS col2
----
26

query I rowsort
SELECT + 76 + + 27
----
103

query I rowsort
SELECT + 93 * + 68
----
6324

query I rowsort
SELECT + 52 + - ( + 63 ) * - 20
----
1312

onlyif mysql # aggregate syntax: 
query I rowsort label-7985
SELECT ALL MAX( ALL + + 27 )
----
27

skipif mysql # not compatible
query I rowsort label-7985
SELECT ALL MAX ( ALL + + 27 )
----
27

onlyif mysql # aggregate syntax: 
query II rowsort label-7986
SELECT DISTINCT 62 AS col1, 13 * + COUNT( * ) col1
----
62
13

skipif mysql # not compatible
query II rowsort label-7986
SELECT DISTINCT 62 AS col1, 13 * + COUNT ( * ) col1
----
62
13

query I rowsort
SELECT + 81 * 65 - + + 72 AS col2
----
5193

query I rowsort
SELECT + 85 + - - 65 + - 2 AS col0
----
148

query I rowsort
SELECT - COALESCE ( - 62, - 40 )
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-7990
SELECT + - COUNT( * ) * + 33 * + - COUNT( * )
----
33

skipif mysql # not compatible
query I rowsort label-7990
SELECT + - COUNT ( * ) * + 33 * + - COUNT ( * )
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-7991
SELECT DISTINCT COUNT( * ) * 0 * + - 97 * - 68 * - 8
----
0

skipif mysql # not compatible
query I rowsort label-7991
SELECT DISTINCT COUNT ( * ) * 0 * + - 97 * - 68 * - 8
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7992
SELECT DISTINCT - + 68 DIV - + 31 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-7992
SELECT DISTINCT - + 68 / - + 31 AS col0
----
2

query I rowsort
SELECT - 97 - + - 24 AS col0
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-7994
SELECT ALL + - SUM( 22 )
----
-22

skipif mysql # not compatible
query I rowsort label-7994
SELECT ALL + - SUM ( 22 )
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-7995
SELECT - 68 * - 95 * - 73 * - CASE - 65 WHEN 1 THEN + - 49 WHEN MAX( 73 ) THEN COUNT( * ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7995
SELECT - 68 * - 95 * - 73 * - CASE - 65 WHEN 1 THEN + - 49 WHEN MAX ( 73 ) THEN COUNT ( * ) END AS col2
----
NULL

query II rowsort
SELECT + 59 AS col1, + 46
----
59
46

query I rowsort
SELECT ALL + - 26 * - + 38 * 3
----
2964

onlyif mysql # aggregate syntax: 
query I rowsort label-7998
SELECT ALL COUNT( * ) * - 50 + + 97 - + 6 + 1 * - ( - + NULLIF ( - 39, + - 81 ) ) AS col2
----
2

skipif mysql # not compatible
query I rowsort label-7998
SELECT ALL COUNT ( * ) * - 50 + + 97 - + 6 + 1 * - ( - + NULLIF ( - 39, + - 81 ) ) AS col2
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-7999
SELECT DISTINCT 56 DIV + 91 * + 16
----
0

skipif mysql # not compatible
query I rowsort label-7999
SELECT DISTINCT 56 / + 91 * + 16
----
0

query I rowsort
SELECT - 66 * 37 AS col2
----
-2442

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8001
SELECT NULLIF ( 17, - CASE 58 WHEN - CASE - 41 WHEN + - COUNT( * ) THEN ( 15 ) * + 10 WHEN - + 88 THEN COUNT( ALL COALESCE ( 39, 17 * NULLIF ( + - CAST( NULL AS SIGNED ), + 50 ) ) ) * + - 48 END - + ( - 53 ) + 89 THEN NULL WHEN - 63 * + - 36 THEN - - 25 ELSE NULL END * - 44 ) AS col0
----
17

skipif mysql # not compatible
query I rowsort label-8001
SELECT NULLIF ( 17, - CASE 58 WHEN - CASE - 41 WHEN + - COUNT ( * ) THEN ( 15 ) * + 10 WHEN - + 88 THEN COUNT ( ALL COALESCE ( 39, 17 * NULLIF ( + - CAST ( NULL AS INTEGER ), + 50 ) ) ) * + - 48 END - + ( - 53 ) + 89 THEN NULL WHEN - 63 * + - 36 THEN - - 25 ELSE NULL END * - 44 ) AS col0
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-8002
SELECT - COUNT( * ) + + 3 * - + 31 AS col1
----
-94

skipif mysql # not compatible
query I rowsort label-8002
SELECT - COUNT ( * ) + + 3 * - + 31 AS col1
----
-94

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8003
SELECT - 6 * - 23 DIV COUNT( * ) AS col0
----
138

skipif mysql # not compatible
query I rowsort label-8003
SELECT - 6 * - 23 / COUNT ( * ) AS col0
----
138

query I rowsort
SELECT + 12 + - - 58 + - 22 AS col1
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-8005
SELECT ALL ( - - COUNT( DISTINCT + 70 ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8005
SELECT ALL ( - - COUNT ( DISTINCT + 70 ) ) AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8006
SELECT ALL 88 * - CASE 5 WHEN + + COUNT( * ) + 93 - + COUNT( * ) + - - 60 * 75 + + CASE 22 WHEN - 90 THEN - 88 END * 63 * - - 5 * - 89 * COUNT( * ) THEN 40 + - - 16 WHEN + 78 THEN 52 - - NULLIF ( 45, 76 ) WHEN - - 79 / CAST( - + NULLIF ( NULLIF ( + 68, 25 / COUNT( * ) ), - COUNT( * ) + MIN( - + 61 ) + - 72 * + MIN( + 38 ) ) AS SIGNED ) + + - COUNT( * ) THEN NULL END AS col2, - 98 * 96 * - 71 AS col1
----
NULL
667968

skipif mysql # not compatible
query II rowsort label-8006
SELECT ALL 88 * - CASE 5 WHEN + + COUNT ( * ) + 93 - + COUNT ( * ) + - - 60 * 75 + + CASE 22 WHEN - 90 THEN - 88 END * 63 * - - 5 * - 89 * COUNT ( * ) THEN 40 + - - 16 WHEN + 78 THEN 52 - - NULLIF ( 45, 76 ) WHEN - - 79 / CAST ( - + NULLIF ( NULLIF ( + 68, 25 / COUNT ( * ) ), - COUNT ( * ) + MIN ( - + 61 ) + - 72 * + MIN ( + 38 ) ) AS INTEGER ) + + - COUNT ( * ) THEN NULL END AS col2, - 98 * 96 * - 71 AS col1
----
NULL
667968

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8007
SELECT - CASE + NULLIF ( 32, + 13 * - 32 * + SUM( ALL - ( - 86 ) ) ) WHEN + COUNT( * ) * - 75 * - + 79 / + - COUNT( * ) THEN NULL WHEN COALESCE ( + CASE 27 WHEN - + ( 33 ) THEN + - 32 + 76 + - 42 * - MAX( DISTINCT - - 95 ) WHEN + COUNT( * ) THEN NULL END, 72 ) * - COALESCE ( 31, - COUNT( ALL - 98 ) ) - + CASE 8 WHEN + 2 * - + 28 * + + 73 + - COUNT( * ) * + 88 * - CASE + - COALESCE ( + + 43, + + CAST( NULL AS SIGNED ) ) WHEN + 90 THEN COUNT( + + ( + 42 ) ) END * + COUNT( * ) THEN NULL WHEN + 20 THEN - 48 ELSE + 41 + - 10 END - 63 / - 55 * 73 THEN + 4 * COUNT( 86 ) WHEN + 85 + + 89 THEN NULL ELSE NULL END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8007
SELECT - CASE + NULLIF ( 32, + 13 * - 32 * + SUM ( ALL - ( - 86 ) ) ) WHEN + COUNT ( * ) * - 75 * - + 79 / + - COUNT ( * ) THEN NULL WHEN COALESCE ( + CASE 27 WHEN - + ( 33 ) THEN + - 32 + 76 + - 42 * - MAX ( DISTINCT - - 95 ) WHEN + COUNT ( * ) THEN NULL END, 72 ) * - COALESCE ( 31, - COUNT ( ALL - 98 ) ) - + CASE 8 WHEN + 2 * - + 28 * + + 73 + - COUNT ( * ) * + 88 * - CASE + - COALESCE ( + + 43, + + CAST ( NULL AS INTEGER ) ) WHEN + 90 THEN COUNT ( + + ( + 42 ) ) END * + COUNT ( * ) THEN NULL WHEN + 20 THEN - 48 ELSE + 41 + - 10 END - 63 / - 55 * 73 THEN + 4 * COUNT ( 86 ) WHEN + 85 + + 89 THEN NULL ELSE NULL END col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8008
SELECT SUM( DISTINCT + 29 ) * - COUNT( * )
----
-29

skipif mysql # not compatible
query I rowsort label-8008
SELECT SUM ( DISTINCT + 29 ) * - COUNT ( * )
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-8009
SELECT - SUM( 93 ) AS col2
----
-93

skipif mysql # not compatible
query I rowsort label-8009
SELECT - SUM ( 93 ) AS col2
----
-93

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8010
SELECT ALL - 54 + - ( + CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8010
SELECT ALL - 54 + - ( + CAST ( NULL AS REAL ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8011
SELECT + 23 - + - CAST( NULL AS DECIMAL ) * + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8011
SELECT + 23 - + - CAST ( NULL AS REAL ) * + - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8012
SELECT - COUNT( * ) + + + 24 * - 43 AS col1
----
-1033

skipif mysql # not compatible
query I rowsort label-8012
SELECT - COUNT ( * ) + + + 24 * - 43 AS col1
----
-1033

query I rowsort
SELECT DISTINCT 71 + + 35 AS col1
----
106

query II rowsort
SELECT ALL - 93 + + 31, + 44 * - 40 + - + 34 AS col1
----
-62
-1794

query I rowsort
SELECT DISTINCT - 2 + + - 76 + + - 26
----
-104

onlyif mysql # aggregate syntax: 
query I rowsort label-8016
SELECT ALL COUNT( * ) * 75 + + 53 AS col1
----
128

skipif mysql # not compatible
query I rowsort label-8016
SELECT ALL COUNT ( * ) * 75 + + 53 AS col1
----
128

query I rowsort
SELECT + 81 + - 68 col0
----
13

query I rowsort
SELECT DISTINCT + 27 + + - 99 AS col2
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-8019
SELECT - + COUNT( * ) / - CASE - 10 WHEN - - COUNT( * ) / + - COUNT( * ) * + 73 + + - 15 * + ( - + 60 ) THEN - 83 WHEN + - 82 THEN NULL WHEN - + 59 THEN 4 * - 19 + + - 65 END + - MAX( 41 ) * - COUNT( + 33 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8019
SELECT - + COUNT ( * ) / - CASE - 10 WHEN - - COUNT ( * ) / + - COUNT ( * ) * + 73 + + - 15 * + ( - + 60 ) THEN - 83 WHEN + - 82 THEN NULL WHEN - + 59 THEN 4 * - 19 + + - 65 END + - MAX ( 41 ) * - COUNT ( + 33 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8020
SELECT ALL + SUM( - 23 ) * + COALESCE ( + 55, 5, 81 )
----
-1265

skipif mysql # not compatible
query I rowsort label-8020
SELECT ALL + SUM ( - 23 ) * + COALESCE ( + 55, 5, 81 )
----
-1265

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8021
SELECT + CAST( NULL AS SIGNED ) * + + 30 * + + 58 + - MIN( + 35 ) + + 34
----
NULL

skipif mysql # not compatible
query I rowsort label-8021
SELECT + CAST ( NULL AS INTEGER ) * + + 30 * + + 58 + - MIN ( + 35 ) + + 34
----
NULL

query I rowsort
SELECT DISTINCT - 44 * 31 AS col0
----
-1364

query I rowsort
SELECT + 66 + 26 + 59 col0
----
151

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8024
SELECT ALL + COUNT( * ) * + 83 - + CAST( 50 AS SIGNED ) AS col1
----
33

skipif mysql # not compatible
query I rowsort label-8024
SELECT ALL + COUNT ( * ) * + 83 - + CAST ( 50 AS INTEGER ) AS col1
----
33

query I rowsort
SELECT COALESCE ( + ( 50 ), + 95 ) AS col1
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-8026
SELECT ALL - - MIN( ALL - - 64 )
----
64

skipif mysql # not compatible
query I rowsort label-8026
SELECT ALL - - MIN ( ALL - - 64 )
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-8027
SELECT DISTINCT COUNT( * ) * + - 11 * - + ( 49 ) AS col0
----
539

skipif mysql # not compatible
query I rowsort label-8027
SELECT DISTINCT COUNT ( * ) * + - 11 * - + ( 49 ) AS col0
----
539

onlyif mysql # aggregate syntax: 
query I rowsort label-8028
SELECT DISTINCT - COUNT( ALL + + 9 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-8028
SELECT DISTINCT - COUNT ( ALL + + 9 ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8029
SELECT ( + 4 ) * + + 25 + + COUNT( * ) * + COUNT( ALL + 69 )
----
101

skipif mysql # not compatible
query I rowsort label-8029
SELECT ( + 4 ) * + + 25 + + COUNT ( * ) * + COUNT ( ALL + 69 )
----
101

query I rowsort
SELECT 47 * 72
----
3384

onlyif mysql # DIV for integer division: 
query I rowsort label-8031
SELECT ALL + 54 DIV - 96
----
0

skipif mysql # not compatible
query I rowsort label-8031
SELECT ALL + 54 / - 96
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8032
SELECT CAST( NULL AS SIGNED ) - + ( 96 ) * + 42 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8032
SELECT CAST ( NULL AS INTEGER ) - + ( 96 ) * + 42 AS col0
----
NULL

query I rowsort
SELECT ALL + 27 * - 66
----
-1782

query I rowsort
SELECT 37 * + 10
----
370

onlyif mysql # aggregate syntax: 
query I rowsort label-8035
SELECT ALL ( - COUNT( * ) ) * + 79 AS col1
----
-79

skipif mysql # not compatible
query I rowsort label-8035
SELECT ALL ( - COUNT ( * ) ) * + 79 AS col1
----
-79

query I rowsort
SELECT 47 * - - 27 AS col1
----
1269

onlyif mysql # aggregate syntax: 
query I rowsort label-8037
SELECT DISTINCT + 37 * - COUNT( * )
----
-37

skipif mysql # not compatible
query I rowsort label-8037
SELECT DISTINCT + 37 * - COUNT ( * )
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-8038
SELECT - COUNT( * ) * + + 7 + 2 * - 49
----
-105

skipif mysql # not compatible
query I rowsort label-8038
SELECT - COUNT ( * ) * + + 7 + 2 * - 49
----
-105

onlyif mysql # aggregate syntax: 
query I rowsort label-8039
SELECT MIN( DISTINCT + - 4 ) - MAX( - 58 ) AS col1
----
54

skipif mysql # not compatible
query I rowsort label-8039
SELECT MIN ( DISTINCT + - 4 ) - MAX ( - 58 ) AS col1
----
54

query II rowsort
SELECT ALL 0 AS col2, - 28 col0
----
0
-28

query II rowsort
SELECT 37 + - ( - 96 ) AS col2, 29 col0
----
133
29

query I rowsort
SELECT 72 * - 81
----
-5832

query II rowsort
SELECT 8 AS col0, - ( ( + 63 ) )
----
8
-63

query II rowsort
SELECT - 57 AS col0, 15
----
-57
15

query I rowsort
SELECT DISTINCT + 47 + 94 AS col1
----
141

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8046
SELECT 53 + - CASE + 27 WHEN - 55 THEN NULL WHEN 89 THEN NULL WHEN - - 28 THEN NULL WHEN + CAST( + 98 AS SIGNED ) - 12 THEN - + 98 + + COUNT( * ) * + 14 * - 15 ELSE + 4 - + + 36 END AS col2
----
85

skipif mysql # not compatible
query I rowsort label-8046
SELECT 53 + - CASE + 27 WHEN - 55 THEN NULL WHEN 89 THEN NULL WHEN - - 28 THEN NULL WHEN + CAST ( + 98 AS INTEGER ) - 12 THEN - + 98 + + COUNT ( * ) * + 14 * - 15 ELSE + 4 - + + 36 END AS col2
----
85

query I rowsort
SELECT - 20 + + 94 + + - 37
----
37

query I rowsort
SELECT ALL - 64 + + - 87 + + 95
----
-56

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8049
SELECT DISTINCT + CAST( NULL AS SIGNED ) + 37 + + + 69 AS col1, - 9 + - 30
----
NULL
-39

skipif mysql # not compatible
query II rowsort label-8049
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + 37 + + + 69 AS col1, - 9 + - 30
----
NULL
-39

query I rowsort
SELECT DISTINCT - + 97 + + 38 AS col2
----
-59

query I rowsort
SELECT ALL + + 34 * - 1 + + - 32 + + 10 * - 87 * 4 * + 83 col2
----
-288906

onlyif mysql # aggregate syntax: 
query II rowsort label-8052
SELECT ALL COUNT( * ), + 16 AS col1
----
1
16

skipif mysql # not compatible
query II rowsort label-8052
SELECT ALL COUNT ( * ), + 16 AS col1
----
1
16

onlyif mysql # aggregate syntax: 
query I rowsort label-8053
SELECT DISTINCT + + 84 * 95 * - - 53 + + SUM( ALL + 84 )
----
423024

skipif mysql # not compatible
query I rowsort label-8053
SELECT DISTINCT + + 84 * 95 * - - 53 + + SUM ( ALL + 84 )
----
423024

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8054
SELECT DISTINCT - + COUNT( * ) + + + 68 + CAST( 19 AS SIGNED ) DIV + 96 AS col0
----
67

skipif mysql # not compatible
query I rowsort label-8054
SELECT DISTINCT - + COUNT ( * ) + + + 68 + CAST ( 19 AS INTEGER ) / + 96 AS col0
----
67

query I rowsort
SELECT + 23 * - 15
----
-345

onlyif mysql # aggregate syntax: 
query I rowsort label-8056
SELECT ALL - 48 - + ( NULLIF ( + COUNT( * ), MIN( + + 60 ) ) ) * + - 65 * + 72 - + + ( - 36 )
----
4668

skipif mysql # not compatible
query I rowsort label-8056
SELECT ALL - 48 - + ( NULLIF ( + COUNT ( * ), MIN ( + + 60 ) ) ) * + - 65 * + 72 - + + ( - 36 )
----
4668

onlyif mysql # aggregate syntax: 
query I rowsort label-8057
SELECT DISTINCT MIN( DISTINCT 22 ) AS col2
----
22

skipif mysql # not compatible
query I rowsort label-8057
SELECT DISTINCT MIN ( DISTINCT 22 ) AS col2
----
22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8058
SELECT 17 / + + CAST( NULL AS SIGNED ) - 5 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8058
SELECT 17 / + + CAST ( NULL AS INTEGER ) - 5 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8059
SELECT 48 * + 75 * + 28 * - COUNT( * ) col0
----
-100800

skipif mysql # not compatible
query I rowsort label-8059
SELECT 48 * + 75 * + 28 * - COUNT ( * ) col0
----
-100800

onlyif mysql # aggregate syntax: 
query I rowsort label-8060
SELECT + + SUM( DISTINCT 13 )
----
13

skipif mysql # not compatible
query I rowsort label-8060
SELECT + + SUM ( DISTINCT 13 )
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-8061
SELECT DISTINCT - MIN( ALL - ( + + 93 ) )
----
93

skipif mysql # not compatible
query I rowsort label-8061
SELECT DISTINCT - MIN ( ALL - ( + + 93 ) )
----
93

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8062
SELECT ALL + CASE + 23 WHEN + - ( - - 73 ) - - + 43 * 18 THEN + 53 WHEN - - COUNT( * ) THEN + - 79 * 58 END / + 22 + 45 + + + 16 * + - 92 * ( + + 86 ) * 55 - - CAST( + 37 AS DECIMAL ) * NULLIF ( 51, - 35 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8062
SELECT ALL + CASE + 23 WHEN + - ( - - 73 ) - - + 43 * 18 THEN + 53 WHEN - - COUNT ( * ) THEN + - 79 * 58 END / + 22 + 45 + + + 16 * + - 92 * ( + + 86 ) * 55 - - CAST ( + 37 AS REAL ) * NULLIF ( 51, - 35 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8063
SELECT COUNT( * ) * 83 AS col2, + 79
----
83
79

skipif mysql # not compatible
query II rowsort label-8063
SELECT COUNT ( * ) * 83 AS col2, + 79
----
83
79

query I rowsort
SELECT 50 * - 46 - + + 90
----
-2390

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8065
SELECT CAST( - 38 AS SIGNED ) * - + 83 AS col2
----
3154

skipif mysql # not compatible
query I rowsort label-8065
SELECT CAST ( - 38 AS INTEGER ) * - + 83 AS col2
----
3154

onlyif mysql # aggregate syntax: 
query I rowsort label-8066
SELECT NULLIF ( + - COUNT( * ), - 31 ) + - + 59
----
-60

skipif mysql # not compatible
query I rowsort label-8066
SELECT NULLIF ( + - COUNT ( * ), - 31 ) + - + 59
----
-60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8067
SELECT ALL CAST( NULL AS SIGNED ) * + + 75 * - ( + 80 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8067
SELECT ALL CAST ( NULL AS INTEGER ) * + + 75 * - ( + 80 ) AS col1
----
NULL

query II rowsort
SELECT DISTINCT COALESCE ( + 39, + 93 ) * + 9, - 64 AS col2
----
351
-64

query I rowsort
SELECT DISTINCT 29 + NULLIF ( + 12, - - 49 ) * ( 94 ) + - - 34
----
1191

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8070
SELECT CAST( NULL AS DECIMAL ) * + 72 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8070
SELECT CAST ( NULL AS REAL ) * + 72 AS col0
----
NULL

query I rowsort
SELECT ALL + 23 + + + 42 * + - 2 * - - 23 * - 28
----
54119

onlyif mysql # aggregate syntax: 
query I rowsort label-8072
SELECT + ( - + MAX( ALL 23 ) ) * + - 61 + - COUNT( * ) + + + 44
----
1446

skipif mysql # not compatible
query I rowsort label-8072
SELECT + ( - + MAX ( ALL 23 ) ) * + - 61 + - COUNT ( * ) + + + 44
----
1446

query I rowsort
SELECT + 46 + 47
----
93

onlyif mysql # aggregate syntax: 
query II rowsort label-8074
SELECT MIN( + 89 ) AS col1, - SUM( - 29 )
----
89
29

skipif mysql # not compatible
query II rowsort label-8074
SELECT MIN ( + 89 ) AS col1, - SUM ( - 29 )
----
89
29

onlyif mysql # aggregate syntax: 
query I rowsort label-8075
SELECT - ( COUNT( * ) ) + - COUNT( * )
----
-2

skipif mysql # not compatible
query I rowsort label-8075
SELECT - ( COUNT ( * ) ) + - COUNT ( * )
----
-2

query I rowsort
SELECT ALL 28 + + + ( 40 )
----
68

onlyif mysql # aggregate syntax: 
query II rowsort label-8077
SELECT + MIN( + 60 ) col1, + 26 AS col1
----
60
26

skipif mysql # not compatible
query II rowsort label-8077
SELECT + MIN ( + 60 ) col1, + 26 AS col1
----
60
26

query I rowsort
SELECT ALL + 60 + + 41 AS col2
----
101

query I rowsort
SELECT - CASE - 43 WHEN + + 58 THEN + 57 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8080
SELECT ALL MAX( 57 ) AS col2
----
57

skipif mysql # not compatible
query I rowsort label-8080
SELECT ALL MAX ( 57 ) AS col2
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-8081
SELECT DISTINCT COALESCE ( - 87, - 93 - + - 62 + 55 - + COUNT( * ) * - 84 ) + 31
----
-56

skipif mysql # not compatible
query I rowsort label-8081
SELECT DISTINCT COALESCE ( - 87, - 93 - + - 62 + 55 - + COUNT ( * ) * - 84 ) + 31
----
-56

query I rowsort
SELECT ALL + NULLIF ( - + 5, - 46 ) * - NULLIF ( - - 27, - 7 - 47 )
----
135

query I rowsort
SELECT - 18 * - 45 + 90
----
900

query I rowsort
SELECT ALL CASE 72 WHEN + 81 THEN NULL WHEN + 70 THEN + - NULLIF ( - 56, + + 52 * + 37 ) ELSE NULL END + - 43 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8085
SELECT DISTINCT CAST( - + 91 AS SIGNED ) * 42 * - 31 * - + 97
----
-11492754

skipif mysql # not compatible
query I rowsort label-8085
SELECT DISTINCT CAST ( - + 91 AS INTEGER ) * 42 * - 31 * - + 97
----
-11492754

query I rowsort
SELECT ALL - + 95 * + 68
----
-6460

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8087
SELECT - + COUNT( * ) * + 51 * 98 * - 0 / - - CAST( NULL AS SIGNED ) + + 8
----
NULL

skipif mysql # not compatible
query I rowsort label-8087
SELECT - + COUNT ( * ) * + 51 * 98 * - 0 / - - CAST ( NULL AS INTEGER ) + + 8
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8088
SELECT ALL - + 19 - COUNT( * )
----
-20

skipif mysql # not compatible
query I rowsort label-8088
SELECT ALL - + 19 - COUNT ( * )
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-8089
SELECT - 21 - + COUNT( * ) col1
----
-22

skipif mysql # not compatible
query I rowsort label-8089
SELECT - 21 - + COUNT ( * ) col1
----
-22

query I rowsort
SELECT - 90 * - 86 * 19 AS col1
----
147060

query I rowsort
SELECT - ( ( + 70 ) ) - + 37 * - + 1 + - + 2 AS col2
----
-35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8092
SELECT CAST( - COALESCE ( + 43, 5 + - + 65, CAST( NULL AS SIGNED ) ) AS SIGNED )
----
-43

skipif mysql # not compatible
query I rowsort label-8092
SELECT CAST ( - COALESCE ( + 43, 5 + - + 65, CAST ( NULL AS INTEGER ) ) AS INTEGER )
----
-43

query I rowsort
SELECT ALL ( - 19 )
----
-19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8094
SELECT - NULLIF ( 79, - + COALESCE ( 32, - - 18 + - COUNT( * ) + + 83, + CAST( NULL AS SIGNED ) ) )
----
-79

skipif mysql # not compatible
query I rowsort label-8094
SELECT - NULLIF ( 79, - + COALESCE ( 32, - - 18 + - COUNT ( * ) + + 83, + CAST ( NULL AS INTEGER ) ) )
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-8095
SELECT ALL + CASE + + 54 WHEN COUNT( - 45 ) * - + COUNT( * ) + + - 9 * + 72 THEN NULL ELSE + COUNT( * ) END
----
1

skipif mysql # not compatible
query I rowsort label-8095
SELECT ALL + CASE + + 54 WHEN COUNT ( - 45 ) * - + COUNT ( * ) + + - 9 * + 72 THEN NULL ELSE + COUNT ( * ) END
----
1

query I rowsort
SELECT ( NULLIF ( 73, + - 75 * - 70 ) )
----
73

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8097
SELECT DISTINCT + 89, - 24 + + 76 + + ( + - 75 ) DIV 26 * + - SUM( DISTINCT - ( 1 ) ) AS col1
----
89
50

skipif mysql # not compatible
query II rowsort label-8097
SELECT DISTINCT + 89, - 24 + + 76 + + ( + - 75 ) / 26 * + - SUM ( DISTINCT - ( 1 ) ) AS col1
----
89
50

query I rowsort
SELECT DISTINCT - 1 * - 58 + 81 * + 91 AS col1
----
7429

query I rowsort
SELECT ALL - 54 * - - 87 col1
----
-4698

query I rowsort
SELECT ALL + ( - 45 ) * 1 + 98
----
53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8101
SELECT ALL ( + 34 ) * + CAST( + 68 AS SIGNED ) + 92 AS col2
----
2404

skipif mysql # not compatible
query I rowsort label-8101
SELECT ALL ( + 34 ) * + CAST ( + 68 AS INTEGER ) + 92 AS col2
----
2404

query I rowsort
SELECT + 71 * - 86 AS col1
----
-6106

onlyif mysql # aggregate syntax: 
query I rowsort label-8103
SELECT - 41 * 8 * - MIN( ALL + 12 ) col1
----
3936

skipif mysql # not compatible
query I rowsort label-8103
SELECT - 41 * 8 * - MIN ( ALL + 12 ) col1
----
3936

query I rowsort
SELECT NULLIF ( 97, 15 / NULLIF ( 80, - 69 - - 93 ) )
----
97

query I rowsort
SELECT - 35 - + 99 AS col2
----
-134

onlyif mysql # aggregate syntax: 
query I rowsort label-8106
SELECT + MIN( ALL + + 60 )
----
60

skipif mysql # not compatible
query I rowsort label-8106
SELECT + MIN ( ALL + + 60 )
----
60

query I rowsort
SELECT CASE WHEN 89 NOT BETWEEN NULL AND NULL THEN NULL ELSE + 39 END
----
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8108
SELECT + COALESCE ( - + NULLIF ( + 83, - 14 * + COUNT( * ) - + 74 + - 53 * + + 16 DIV + 45 + + 47 * 65 - + 11 + - + NULLIF ( COUNT( * ), CAST( + NULLIF ( + 36, + + 96 ) AS SIGNED ) DIV - 58 + - 36 + - + 71 * - 33 DIV - + 54 ) ), + - 33 DIV + - 72 DIV - COUNT( * ) * - 56 * + + 73 ) - + + COALESCE ( 11, - 71 + - 25 + 77 * + + 90 DIV - 3 ) * + - COUNT( * ) AS col2
----
-72

skipif mysql # not compatible
query I rowsort label-8108
SELECT + COALESCE ( - + NULLIF ( + 83, - 14 * + COUNT ( * ) - + 74 + - 53 * + + 16 / + 45 + + 47 * 65 - + 11 + - + NULLIF ( COUNT ( * ), CAST ( + NULLIF ( + 36, + + 96 ) AS INTEGER ) / - 58 + - 36 + - + 71 * - 33 / - + 54 ) ), + - 33 / + - 72 / - COUNT ( * ) * - 56 * + + 73 ) - + + COALESCE ( 11, - 71 + - 25 + 77 * + + 90 / - 3 ) * + - COUNT ( * ) AS col2
----
-72

query I rowsort
SELECT DISTINCT 22 * - 67
----
-1474

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8110
SELECT DISTINCT - 59 * + - MIN( CAST( NULL AS SIGNED ) ) * 12 / + 25 + + + 56 * 80 + + 0 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8110
SELECT DISTINCT - 59 * + - MIN ( CAST ( NULL AS INTEGER ) ) * 12 / + 25 + + + 56 * 80 + + 0 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8111
SELECT ALL + ( + + ( - 1 ) ) * - 47 + + 88 * - - CAST( + 9 AS SIGNED ) AS col1
----
839

skipif mysql # not compatible
query I rowsort label-8111
SELECT ALL + ( + + ( - 1 ) ) * - 47 + + 88 * - - CAST ( + 9 AS INTEGER ) AS col1
----
839

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8112
SELECT ALL 57 * COALESCE ( + 61, + - 35, + - NULLIF ( - 20, - CAST( - 34 AS SIGNED ) * 51 ) DIV - 28 ) col0, + 52
----
3477
52

skipif mysql # not compatible
query II rowsort label-8112
SELECT ALL 57 * COALESCE ( + 61, + - 35, + - NULLIF ( - 20, - CAST ( - 34 AS INTEGER ) * 51 ) / - 28 ) col0, + 52
----
3477
52

query I rowsort
SELECT ALL ( + 81 ) * - 21 + - 43 + + 36 + 89 * + 70 AS col1
----
4522

onlyif mysql # aggregate syntax: 
query I rowsort label-8114
SELECT + 81 * - - COUNT( * ) col2
----
81

skipif mysql # not compatible
query I rowsort label-8114
SELECT + 81 * - - COUNT ( * ) col2
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-8115
SELECT ALL + - ( + 55 ) * - + COUNT( * ) - - 67 + 88
----
210

skipif mysql # not compatible
query I rowsort label-8115
SELECT ALL + - ( + 55 ) * - + COUNT ( * ) - - 67 + 88
----
210

onlyif mysql # aggregate syntax: 
query I rowsort label-8116
SELECT + SUM( DISTINCT - + 6 ) + 78 AS col1
----
72

skipif mysql # not compatible
query I rowsort label-8116
SELECT + SUM ( DISTINCT - + 6 ) + 78 AS col1
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-8117
SELECT - - MIN( - + 60 ) AS col1
----
-60

skipif mysql # not compatible
query I rowsort label-8117
SELECT - - MIN ( - + 60 ) AS col1
----
-60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8118
SELECT ALL 80 * + + CASE - 89 WHEN - + 58 + + - 8 * 63 * - CAST( NULL AS SIGNED ) - + 64 THEN NULL WHEN - - COUNT( * ) THEN 24 END - + CAST( 74 AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-8118
SELECT ALL 80 * + + CASE - 89 WHEN - + 58 + + - 8 * 63 * - CAST ( NULL AS INTEGER ) - + 64 THEN NULL WHEN - - COUNT ( * ) THEN 24 END - + CAST ( 74 AS REAL )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8119
SELECT - COUNT( * ) col2, 78 DIV + - 59 col2
----
-1
-1

skipif mysql # not compatible
query II rowsort label-8119
SELECT - COUNT ( * ) col2, 78 / + - 59 col2
----
-1
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8120
SELECT + + 1 + - 98 DIV - 77 AS col2, 41 + + COUNT( * ) * + ( + 60 ) AS col0
----
2
101

skipif mysql # not compatible
query II rowsort label-8120
SELECT + + 1 + - 98 / - 77 AS col2, 41 + + COUNT ( * ) * + ( + 60 ) AS col0
----
2
101

onlyif mysql # aggregate syntax: 
query I rowsort label-8121
SELECT ALL + CASE WHEN NULL NOT IN ( - 60, - 3, 13 * + 83 * + - 64 ) THEN + + NULLIF ( + + ( - COALESCE ( 87, - + NULLIF ( 55, - - 96 ) ) ), + 72 ) END * NULLIF ( 60, - MIN( - 3 ) + + ( - + NULLIF ( 73, + - COUNT( ALL + 18 ) + + - 6 * + 66 ) ) + + + 77 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8121
SELECT ALL + CASE WHEN NULL NOT IN ( - 60, - 3, 13 * + 83 * + - 64 ) THEN + + NULLIF ( + + ( - COALESCE ( 87, - + NULLIF ( 55, - - 96 ) ) ), + 72 ) END * NULLIF ( 60, - MIN ( - 3 ) + + ( - + NULLIF ( 73, + - COUNT ( ALL + 18 ) + + - 6 * + 66 ) ) + + + 77 )
----
NULL

query I rowsort
SELECT + - 84 * - 77 AS col2
----
6468

query I rowsort
SELECT + + 51 + - 36 AS col2
----
15

query I rowsort
SELECT ALL 11 * ( - - 17 ) + 16 * + + 53 * 65
----
55307

query II rowsort
SELECT 5 AS col1, - 8 AS col2
----
5
-8

query I rowsort
SELECT ALL 24 * + 80
----
1920

query I rowsort
SELECT - 68 + - - 20 AS col2
----
-48

query II rowsort
SELECT ALL 51 AS col2, 48 + 46 AS col2
----
51
94

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8129
SELECT DISTINCT - CAST( NULL AS SIGNED ) AS col2, + ( - 99 ) AS col2
----
NULL
-99

skipif mysql # not compatible
query II rowsort label-8129
SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col2, + ( - 99 ) AS col2
----
NULL
-99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8130
SELECT ALL CAST( + + CAST( + CAST( CASE + ( + 80 ) WHEN - + MAX( - - NULLIF ( - + 26, - + CASE + - 18 WHEN + 96 * + 39 THEN - 56 * + - 75 WHEN + + 15 THEN NULL ELSE NULL END ) ) THEN 67 + - 11 END AS SIGNED ) AS DECIMAL ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8130
SELECT ALL CAST ( + + CAST ( + CAST ( CASE + ( + 80 ) WHEN - + MAX ( - - NULLIF ( - + 26, - + CASE + - 18 WHEN + 96 * + 39 THEN - 56 * + - 75 WHEN + + 15 THEN NULL ELSE NULL END ) ) THEN 67 + - 11 END AS INTEGER ) AS REAL ) AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8131
SELECT - 1 + + NULLIF ( + + ( + 44 ), - - 17 + + 11 + - - 41 ) * + COUNT( * )
----
43

skipif mysql # not compatible
query I rowsort label-8131
SELECT - 1 + + NULLIF ( + + ( + 44 ), - - 17 + + 11 + - - 41 ) * + COUNT ( * )
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-8132
SELECT ALL COUNT( * ) + + - 14
----
-13

skipif mysql # not compatible
query I rowsort label-8132
SELECT ALL COUNT ( * ) + + - 14
----
-13

query I rowsort
SELECT - 77 * + ( + 44 )
----
-3388

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8134
SELECT ALL 17 DIV + 43 + + CAST( 46 AS SIGNED ) AS col0
----
46

skipif mysql # not compatible
query I rowsort label-8134
SELECT ALL 17 / + 43 + + CAST ( 46 AS INTEGER ) AS col0
----
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8135
SELECT ALL + ( - - MIN( CAST( + 66 AS SIGNED ) ) ), 96 col2
----
66
96

skipif mysql # not compatible
query II rowsort label-8135
SELECT ALL + ( - - MIN ( CAST ( + 66 AS INTEGER ) ) ), 96 col2
----
66
96

query II rowsort
SELECT 24 AS col0, - 67 * - 29 AS col0
----
24
1943

onlyif mysql # DIV for integer division: 
query I rowsort label-8137
SELECT 28 DIV 52 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8137
SELECT 28 / 52 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8138
SELECT 63 + CASE - 9 WHEN + MIN( + + 85 ) THEN + - COUNT( * ) * + - 1 - - 42 * - 3 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8138
SELECT 63 + CASE - 9 WHEN + MIN ( + + 85 ) THEN + - COUNT ( * ) * + - 1 - - 42 * - 3 ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT + 47 * - 1 + - 53 col2
----
-100

query I rowsort
SELECT ALL + 60 + + 94
----
154

onlyif mysql # DIV for integer division: 
query I rowsort label-8141
SELECT - 72 * 55 DIV - COALESCE ( 85, - 32 ) + 65 AS col0
----
111

skipif mysql # not compatible
query I rowsort label-8141
SELECT - 72 * 55 / - COALESCE ( 85, - 32 ) + 65 AS col0
----
111

query II rowsort
SELECT 19, 8 AS col1
----
19
8

onlyif mysql # aggregate syntax: 
query I rowsort label-8143
SELECT 53 + + COUNT( * ) + + 23
----
77

skipif mysql # not compatible
query I rowsort label-8143
SELECT 53 + + COUNT ( * ) + + 23
----
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8144
SELECT 24 * + 89 - - - 40 - - 67 * ( 86 ) + CASE - 19 WHEN - CAST( + + 76 AS SIGNED ) + - CAST( NULL AS SIGNED ) + 6 THEN MAX( ALL 31 ) - + 91 - 35 ELSE + + 40 END
----
7898

skipif mysql # not compatible
query I rowsort label-8144
SELECT 24 * + 89 - - - 40 - - 67 * ( 86 ) + CASE - 19 WHEN - CAST ( + + 76 AS INTEGER ) + - CAST ( NULL AS INTEGER ) + 6 THEN MAX ( ALL 31 ) - + 91 - 35 ELSE + + 40 END
----
7898

onlyif mysql # aggregate syntax: 
query I rowsort label-8145
SELECT DISTINCT - 6 * - + MAX( ALL + 90 ) * + - COUNT( * )
----
-540

skipif mysql # not compatible
query I rowsort label-8145
SELECT DISTINCT - 6 * - + MAX ( ALL + 90 ) * + - COUNT ( * )
----
-540

onlyif mysql # aggregate syntax: 
query II rowsort label-8146
SELECT + 50 AS col2, COALESCE ( + COUNT( * ), - ( - + 40 ) ) AS col2
----
50
1

skipif mysql # not compatible
query II rowsort label-8146
SELECT + 50 AS col2, COALESCE ( + COUNT ( * ), - ( - + 40 ) ) AS col2
----
50
1

query I rowsort
SELECT 78 * - 98
----
-7644

onlyif mysql # aggregate syntax: 
query II rowsort label-8148
SELECT DISTINCT - COALESCE ( 42, 33 - 22 * + NULLIF ( + 87, COUNT( * ) ) + ( - + 94 ) ), + 25 * - 40 - + 83 + + MAX( + - 28 ) AS col1
----
-42
-1111

skipif mysql # not compatible
query II rowsort label-8148
SELECT DISTINCT - COALESCE ( 42, 33 - 22 * + NULLIF ( + 87, COUNT ( * ) ) + ( - + 94 ) ), + 25 * - 40 - + 83 + + MAX ( + - 28 ) AS col1
----
-42
-1111

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8149
SELECT 44 + CAST( - 27 AS SIGNED )
----
17

skipif mysql # not compatible
query I rowsort label-8149
SELECT 44 + CAST ( - 27 AS INTEGER )
----
17

onlyif mysql # aggregate syntax: 
query II rowsort label-8150
SELECT ALL - + ( + 54 ) AS col0, 88 - - MIN( ALL 59 )
----
-54
147

skipif mysql # not compatible
query II rowsort label-8150
SELECT ALL - + ( + 54 ) AS col0, 88 - - MIN ( ALL 59 )
----
-54
147

query I rowsort
SELECT + 76 * 1 * + 83
----
6308

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8152
SELECT CAST( 8 AS SIGNED ) * - 19 + + 15 AS col1
----
-137

skipif mysql # not compatible
query I rowsort label-8152
SELECT CAST ( 8 AS INTEGER ) * - 19 + + 15 AS col1
----
-137

query I rowsort
SELECT DISTINCT + 94 * 45 AS col2
----
4230

query I rowsort
SELECT ALL + 61 * + - 69
----
-4209

onlyif mysql # aggregate syntax: 
query I rowsort label-8155
SELECT + MAX( + 98 ) col0
----
98

skipif mysql # not compatible
query I rowsort label-8155
SELECT + MAX ( + 98 ) col0
----
98

query I rowsort
SELECT 54 * + 39
----
2106

query II rowsort
SELECT - + 69, 23 - - + 34 AS col1
----
-69
57

onlyif mysql # aggregate syntax: 
query I rowsort label-8158
SELECT DISTINCT SUM( ALL 33 ) AS col1
----
33

skipif mysql # not compatible
query I rowsort label-8158
SELECT DISTINCT SUM ( ALL 33 ) AS col1
----
33

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8159
SELECT ALL CASE - 30 WHEN + 2 + - MIN( + + 17 ) * + - 34 * - 76 - + - 57 * - 88 THEN NULL WHEN - 49 THEN NULL ELSE + 26 * 52 DIV + 25 + + 29 * + + MAX( ALL - + 87 ) + + 91 END * + 8
----
-19024

skipif mysql # not compatible
query I rowsort label-8159
SELECT ALL CASE - 30 WHEN + 2 + - MIN ( + + 17 ) * + - 34 * - 76 - + - 57 * - 88 THEN NULL WHEN - 49 THEN NULL ELSE + 26 * 52 / + 25 + + 29 * + + MAX ( ALL - + 87 ) + + 91 END * + 8
----
-19024

onlyif mysql # aggregate syntax: 
query II rowsort label-8160
SELECT - COUNT( * ), - 27 * - 70 + - 97 AS col1
----
-1
1793

skipif mysql # not compatible
query II rowsort label-8160
SELECT - COUNT ( * ), - 27 * - 70 + - 97 AS col1
----
-1
1793

query I rowsort
SELECT 33 * + 7
----
231

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8162
SELECT CAST( NULL AS DECIMAL ) + - 40 + - ( + - 10 ) + - 28
----
NULL

skipif mysql # not compatible
query I rowsort label-8162
SELECT CAST ( NULL AS REAL ) + - 40 + - ( + - 10 ) + - 28
----
NULL

query I rowsort
SELECT - 66 * CASE - 63 WHEN - CASE 21 WHEN + 99 + 65 THEN 40 END * + + 23 THEN NULL ELSE + 15 + + 15 * - 43 * + 95 END * - 33 + + + 46
----
-133424234

query II rowsort
SELECT ALL 23 AS col2, 52 + - 89 AS col2
----
23
-37

query II rowsort
SELECT 82, 12 AS col1
----
82
12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8166
SELECT ( + 81 ) - CAST( NULL AS SIGNED ) + + 72 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8166
SELECT ( + 81 ) - CAST ( NULL AS INTEGER ) + + 72 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8167
SELECT + 32 - + ( + 51 ) DIV + 73
----
32

skipif mysql # not compatible
query I rowsort label-8167
SELECT + 32 - + ( + 51 ) / + 73
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-8168
SELECT ALL MAX( ALL + 44 ) + + 51
----
95

skipif mysql # not compatible
query I rowsort label-8168
SELECT ALL MAX ( ALL + 44 ) + + 51
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-8169
SELECT DISTINCT + 91 + - 51 * COUNT( * ) * + 86
----
-4295

skipif mysql # not compatible
query I rowsort label-8169
SELECT DISTINCT + 91 + - 51 * COUNT ( * ) * + 86
----
-4295

onlyif mysql # DIV for integer division: 
query I rowsort label-8170
SELECT ALL - 36 * 96 DIV 59
----
-58

skipif mysql # not compatible
query I rowsort label-8170
SELECT ALL - 36 * 96 / 59
----
-58

query I rowsort
SELECT DISTINCT 94 + - 1 AS col1
----
93

query I rowsort
SELECT ALL 12 * CASE - - 44 WHEN - COALESCE ( 63, 73 * CASE 13 WHEN - 3 + - 31 - - 19 * ( + 23 ) * + 63 THEN - 0 * - ( 99 ) + + 94 WHEN 22 THEN NULL END * 68, - 16 ) THEN ( - 23 ) END
----
NULL

query I rowsort
SELECT 43 * 19 col0
----
817

query I rowsort
SELECT ALL - NULLIF ( 57, 68 ) AS col1
----
-57

query I rowsort
SELECT DISTINCT - ( + ( + - 23 ) ) AS col2
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-8176
SELECT ALL + COUNT( * ) - 64 AS col1
----
-63

skipif mysql # not compatible
query I rowsort label-8176
SELECT ALL + COUNT ( * ) - 64 AS col1
----
-63

onlyif mysql # aggregate syntax: 
query II rowsort label-8177
SELECT ALL - 74 * COUNT( * ) AS col1, - COUNT( * ) * 86
----
-74
-86

skipif mysql # not compatible
query II rowsort label-8177
SELECT ALL - 74 * COUNT ( * ) AS col1, - COUNT ( * ) * 86
----
-74
-86

query II rowsort
SELECT 88 * - + 3 AS col1, - 5 - 80 AS col0
----
-264
-85

query I rowsort
SELECT 62 + - - 69
----
131

onlyif mysql # aggregate syntax: 
query I rowsort label-8180
SELECT ALL - 29 - 83 + + 84 + - + NULLIF ( - 55, - 86 - + 57 ) * - COUNT( DISTINCT - 3 ) + CASE - + 88 WHEN + 39 THEN 29 - + NULLIF ( + 33, - 63 ) END * + ( - - 25 ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8180
SELECT ALL - 29 - 83 + + 84 + - + NULLIF ( - 55, - 86 - + 57 ) * - COUNT ( DISTINCT - 3 ) + CASE - + 88 WHEN + 39 THEN 29 - + NULLIF ( + 33, - 63 ) END * + ( - - 25 ) col0
----
NULL

query I rowsort
SELECT ( 69 ) * + 69
----
4761

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8182
SELECT SUM( CAST( NULL AS SIGNED ) ) - + 1 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8182
SELECT SUM ( CAST ( NULL AS INTEGER ) ) - + 1 AS col1
----
NULL

query II rowsort
SELECT ALL - ( 21 ), + 46 AS col1
----
-21
46

onlyif mysql # aggregate syntax: 
query I rowsort label-8184
SELECT + + 74 * + ( + COUNT( * ) ) + 59 * COUNT( * ) + - 5 * 27 * - - 64 + - - 16 AS col0
----
-8491

skipif mysql # not compatible
query I rowsort label-8184
SELECT + + 74 * + ( + COUNT ( * ) ) + 59 * COUNT ( * ) + - 5 * 27 * - - 64 + - - 16 AS col0
----
-8491

onlyif mysql # aggregate syntax: 
query I rowsort label-8185
SELECT DISTINCT - + 46 * - - COUNT( * ) * + 32 AS col2
----
-1472

skipif mysql # not compatible
query I rowsort label-8185
SELECT DISTINCT - + 46 * - - COUNT ( * ) * + 32 AS col2
----
-1472

onlyif mysql # aggregate syntax: 
query I rowsort label-8186
SELECT DISTINCT + + MIN( ALL - 39 ) * + MAX( DISTINCT - 49 )
----
1911

skipif mysql # not compatible
query I rowsort label-8186
SELECT DISTINCT + + MIN ( ALL - 39 ) * + MAX ( DISTINCT - 49 )
----
1911

onlyif mysql # DIV for integer division: 
query I rowsort label-8187
SELECT DISTINCT 44 DIV 19 col1
----
2

skipif mysql # not compatible
query I rowsort label-8187
SELECT DISTINCT 44 / 19 col1
----
2

query I rowsort
SELECT ALL + 29 + - - 44 AS col0
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-8189
SELECT 17 + + CASE + - ( - 85 ) WHEN + COUNT( * ) THEN - COUNT( * ) * + 47 + + 96 / - - 75 WHEN 57 * ( - NULLIF ( + COUNT( * ), 90 ) ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8189
SELECT 17 + + CASE + - ( - 85 ) WHEN + COUNT ( * ) THEN - COUNT ( * ) * + 47 + + 96 / - - 75 WHEN 57 * ( - NULLIF ( + COUNT ( * ), 90 ) ) THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8190
SELECT + SUM( ALL 56 ) DIV - 24 AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-8190
SELECT + SUM ( ALL 56 ) / - 24 AS col1
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-8191
SELECT COALESCE ( + MAX( - 2 ), + COUNT( ALL + 31 ), - + 34 ) + + CASE + COUNT( * ) WHEN - + 92 THEN + 78 WHEN - 33 * + + 5 + + 28 * - 20 + - + 3 + + COALESCE ( 43, - 56 ) * + COUNT( - 18 ) THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8191
SELECT COALESCE ( + MAX ( - 2 ), + COUNT ( ALL + 31 ), - + 34 ) + + CASE + COUNT ( * ) WHEN - + 92 THEN + 78 WHEN - 33 * + + 5 + + 28 * - 20 + - + 3 + + COALESCE ( 43, - 56 ) * + COUNT ( - 18 ) THEN NULL END AS col1
----
NULL

query I rowsort
SELECT DISTINCT - CASE + - 48 WHEN + 81 THEN NULL ELSE - 72 END AS col1
----
72

query I rowsort
SELECT ALL 29 + 79
----
108

onlyif mysql # aggregate syntax: 
query I rowsort label-8194
SELECT ALL - MIN( 99 ) + - + MAX( - 11 ) * - 78
----
-957

skipif mysql # not compatible
query I rowsort label-8194
SELECT ALL - MIN ( 99 ) + - + MAX ( - 11 ) * - 78
----
-957

query I rowsort
SELECT 40 + + 1
----
41

onlyif mysql # aggregate syntax: 
query II rowsort label-8196
SELECT 86 + 90 AS col0, MAX( DISTINCT - 85 ) * 93 + + 51 - + - 44 AS col0
----
176
-7810

skipif mysql # not compatible
query II rowsort label-8196
SELECT 86 + 90 AS col0, MAX ( DISTINCT - 85 ) * 93 + + 51 - + - 44 AS col0
----
176
-7810

query I rowsort
SELECT ALL - ( - - 14 ) + ( - 89 )
----
-103

query I rowsort
SELECT ALL 48 + - 99 AS col0
----
-51

query II rowsort
SELECT 63 AS col2, 29
----
63
29

query I rowsort
SELECT - 42 + + 47 - - 11 * - + 83 AS col1
----
-908

query I rowsort
SELECT DISTINCT 53 + + + 47 AS col2
----
100

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8202
SELECT - COALESCE ( + + COUNT( * ), + 55 * + - 39 + 43, + ( + CASE 4 WHEN + - 90 THEN NULL ELSE 51 END ) + - + CASE + ( - - 33 ) WHEN - 91 * 92 * - 47 THEN + - 94 WHEN - 48 THEN NULL ELSE NULL END - + 3 * - 36 DIV 97 * + - 49 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-8202
SELECT - COALESCE ( + + COUNT ( * ), + 55 * + - 39 + 43, + ( + CASE 4 WHEN + - 90 THEN NULL ELSE 51 END ) + - + CASE + ( - - 33 ) WHEN - 91 * 92 * - 47 THEN + - 94 WHEN - 48 THEN NULL ELSE NULL END - + 3 * - 36 / 97 * + - 49 ) AS col2
----
-1

query I rowsort
SELECT + 12 + - + 57
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-8204
SELECT + CASE + - 9 WHEN + 87 THEN - + 45 * + - 25 + - + COUNT( * ) * - - 36 ELSE NULL END + - 22 / - CASE 4 WHEN - 56 THEN + - AVG ( DISTINCT - - 63 ) WHEN + 70 THEN - 80 * CASE - 41 WHEN 11 THEN - 72 * MAX( ALL - 97 ) * + + COUNT( * ) + + 60 END + + 55 + + 29 - + 5 - + + ( 14 ) ELSE NULL END + + - 50 * COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8204
SELECT + CASE + - 9 WHEN + 87 THEN - + 45 * + - 25 + - + COUNT ( * ) * - - 36 ELSE NULL END + - 22 / - CASE 4 WHEN - 56 THEN + - AVG ( DISTINCT - - 63 ) WHEN + 70 THEN - 80 * CASE - 41 WHEN 11 THEN - 72 * MAX ( ALL - 97 ) * + + COUNT ( * ) + + 60 END + + 55 + + 29 - + 5 - + + ( 14 ) ELSE NULL END + + - 50 * COUNT ( * ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8205
SELECT DISTINCT COUNT( * ) - + - 85 * + - 46
----
-3909

skipif mysql # not compatible
query I rowsort label-8205
SELECT DISTINCT COUNT ( * ) - + - 85 * + - 46
----
-3909

query II rowsort
SELECT ALL + 37 AS col2, - 68
----
37
-68

query II rowsort
SELECT ALL + 42 * - 20 * + + 66 * 62, 35 - - + 59 AS col0
----
-3437280
94

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8208
SELECT + CAST( NULL AS SIGNED ) * ( + - ( 6 ) ) AS col2, 97
----
NULL
97

skipif mysql # not compatible
query II rowsort label-8208
SELECT + CAST ( NULL AS INTEGER ) * ( + - ( 6 ) ) AS col2, 97
----
NULL
97

onlyif mysql # aggregate syntax: 
query I rowsort label-8209
SELECT DISTINCT COUNT( * ) * - 20 - + SUM( ALL - ( + 91 ) ) AS col2
----
71

skipif mysql # not compatible
query I rowsort label-8209
SELECT DISTINCT COUNT ( * ) * - 20 - + SUM ( ALL - ( + 91 ) ) AS col2
----
71

query I rowsort
SELECT - NULLIF ( + 45, + + 23 * - 36 ) + + 17
----
-28

onlyif mysql # aggregate syntax: 
query II rowsort label-8211
SELECT ALL + 36 AS col1, + 92 + NULLIF ( - + 83, - - COUNT( * ) ) * 68 AS col0
----
36
-5552

skipif mysql # not compatible
query II rowsort label-8211
SELECT ALL + 36 AS col1, + 92 + NULLIF ( - + 83, - - COUNT ( * ) ) * 68 AS col0
----
36
-5552

query I rowsort
SELECT + 4 * + 22
----
88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8213
SELECT 70 * - MAX( + 60 ) + COUNT( * ) + SUM( - 46 ) + + - CASE WHEN - COUNT( * ) > NULL THEN NULL WHEN + 71 NOT BETWEEN + COUNT( * ) * - 49 + - - COUNT( * ) - + CAST( + COUNT( * ) AS SIGNED ) / 21 AND + 29 - + 66 THEN NULL ELSE - - 7 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8213
SELECT 70 * - MAX ( + 60 ) + COUNT ( * ) + SUM ( - 46 ) + + - CASE WHEN - COUNT ( * ) > NULL THEN NULL WHEN + 71 NOT BETWEEN + COUNT ( * ) * - 49 + - - COUNT ( * ) - + CAST ( + COUNT ( * ) AS INTEGER ) / 21 AND + 29 - + 66 THEN NULL ELSE - - 7 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8214
SELECT 98 DIV - 16 + + 27 + 49
----
70

skipif mysql # not compatible
query I rowsort label-8214
SELECT 98 / - 16 + + 27 + 49
----
70

query I rowsort
SELECT - 86 * + 93
----
-7998

query II rowsort
SELECT ALL + - 88 col1, 9 * + + 12 + + - 7 * - 99
----
-88
801

query I rowsort
SELECT + 58 + + 2 * + 54 * + 62
----
6754

onlyif mysql # aggregate syntax: 
query II rowsort label-8218
SELECT ALL COUNT( * ) * + + MAX( ALL + + 4 ) AS col2, COUNT( * ) AS col2
----
4
1

skipif mysql # not compatible
query II rowsort label-8218
SELECT ALL COUNT ( * ) * + + MAX ( ALL + + 4 ) AS col2, COUNT ( * ) AS col2
----
4
1

query I rowsort
SELECT + + ( - - 0 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8220
SELECT 47 * - + 87 + - AVG ( ALL + - 88 ) / + - NULLIF ( - CAST( NULL AS DECIMAL ), 98 + + 38 - - NULLIF ( 82, 32 * - SUM( - - 0 ) ) * + COALESCE ( - COUNT( * ), - + 47 * - + 33 ) + - - 65 ) * + + 83 + + 95 * - + 66 + - - 27 / - 14
----
NULL

skipif mysql # not compatible
query I rowsort label-8220
SELECT 47 * - + 87 + - AVG ( ALL + - 88 ) / + - NULLIF ( - CAST ( NULL AS REAL ), 98 + + 38 - - NULLIF ( 82, 32 * - SUM ( - - 0 ) ) * + COALESCE ( - COUNT ( * ), - + 47 * - + 33 ) + - - 65 ) * + + 83 + + 95 * - + 66 + - - 27 / - 14
----
NULL

query I rowsort
SELECT - + 72 + - 23 AS col1
----
-95

query II rowsort
SELECT 37 AS col2, - 86 AS col1
----
37
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-8223
SELECT DISTINCT + - AVG ( CASE 32 WHEN + 20 THEN + 82 END ) + - - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8223
SELECT DISTINCT + - AVG ( CASE 32 WHEN + 20 THEN + 82 END ) + - - COUNT ( * ) AS col2
----
NULL

query II rowsort
SELECT ALL - NULLIF ( 68, - 42 ), + 95 AS col1
----
-68
95

onlyif mysql # DIV for integer division: 
query II rowsort label-8225
SELECT DISTINCT 86 AS col0, 93 DIV + 69
----
86
1

skipif mysql # not compatible
query II rowsort label-8225
SELECT DISTINCT 86 AS col0, 93 / + 69
----
86
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8226
SELECT ALL + 76 + - + 87 + + CAST( COUNT( * ) AS SIGNED ) * 41 + 97
----
127

skipif mysql # not compatible
query I rowsort label-8226
SELECT ALL + 76 + - + 87 + + CAST ( COUNT ( * ) AS INTEGER ) * 41 + 97
----
127

onlyif mysql # aggregate syntax: 
query I rowsort label-8227
SELECT - MIN( - + 21 ) AS col0
----
21

skipif mysql # not compatible
query I rowsort label-8227
SELECT - MIN ( - + 21 ) AS col0
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-8228
SELECT - COUNT( * ) + 99 AS col2
----
98

skipif mysql # not compatible
query I rowsort label-8228
SELECT - COUNT ( * ) + 99 AS col2
----
98

onlyif mysql # DIV for integer division: 
query I rowsort label-8229
SELECT - 7 DIV - COALESCE ( 36, - - 12 + + 81 )
----
0

skipif mysql # not compatible
query I rowsort label-8229
SELECT - 7 / - COALESCE ( 36, - - 12 + + 81 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8230
SELECT ALL - 73 DIV 73
----
-1

skipif mysql # not compatible
query I rowsort label-8230
SELECT ALL - 73 / 73
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8231
SELECT + 24 + + - 78 + COUNT( * ) + + 78 DIV + COUNT( * ) AS col1, + 71 * + COUNT( * ) col0
----
25
71

skipif mysql # not compatible
query II rowsort label-8231
SELECT + 24 + + - 78 + COUNT ( * ) + + 78 / + COUNT ( * ) AS col1, + 71 * + COUNT ( * ) col0
----
25
71

onlyif mysql # DIV for integer division: 
query I rowsort label-8232
SELECT ALL - 64 DIV + 15
----
-4

skipif mysql # not compatible
query I rowsort label-8232
SELECT ALL - 64 / + 15
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-8233
SELECT - SUM( - 1 ) * - - 74
----
74

skipif mysql # not compatible
query I rowsort label-8233
SELECT - SUM ( - 1 ) * - - 74
----
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8234
SELECT ALL CAST( 63 AS SIGNED ) col2
----
63

skipif mysql # not compatible
query I rowsort label-8234
SELECT ALL CAST ( 63 AS INTEGER ) col2
----
63

query I rowsort
SELECT - 71 - - 14
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-8236
SELECT DISTINCT ( + - COUNT( ALL + 43 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-8236
SELECT DISTINCT ( + - COUNT ( ALL + 43 ) )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8237
SELECT ALL SUM( ALL - 93 ) * - 10 AS col1
----
930

skipif mysql # not compatible
query I rowsort label-8237
SELECT ALL SUM ( ALL - 93 ) * - 10 AS col1
----
930

query I rowsort
SELECT ALL + 1 * - 30 AS col2
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-8239
SELECT - COALESCE ( + - COUNT( * ), + - 85 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8239
SELECT - COALESCE ( + - COUNT ( * ), + - 85 ) AS col2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8240
SELECT + CAST( NULL AS SIGNED ) * + 37 * - 23 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8240
SELECT + CAST ( NULL AS INTEGER ) * + 37 * - 23 AS col2
----
NULL

query II rowsort
SELECT ALL + 75 * + 1 AS col1, + 45
----
75
45

onlyif mysql # aggregate syntax: 
query II rowsort label-8242
SELECT - ( - SUM( - 29 ) ) * + 46 AS col1, 99 AS col1
----
-1334
99

skipif mysql # not compatible
query II rowsort label-8242
SELECT - ( - SUM ( - 29 ) ) * + 46 AS col1, 99 AS col1
----
-1334
99

onlyif mysql # DIV for integer division: 
query I rowsort label-8243
SELECT + 81 DIV 82
----
0

skipif mysql # not compatible
query I rowsort label-8243
SELECT + 81 / 82
----
0

query I rowsort
SELECT + 87 * - ( + 84 )
----
-7308

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8245
SELECT + 98 * - 81 * + + CAST( NULL AS SIGNED ) * 86
----
NULL

skipif mysql # not compatible
query I rowsort label-8245
SELECT + 98 * - 81 * + + CAST ( NULL AS INTEGER ) * 86
----
NULL

query I rowsort
SELECT ALL + COALESCE ( + 29, - 72 )
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-8247
SELECT ALL + MIN( - + 35 ) * + + 5
----
-175

skipif mysql # not compatible
query I rowsort label-8247
SELECT ALL + MIN ( - + 35 ) * + + 5
----
-175

onlyif mysql # aggregate syntax: 
query II rowsort label-8248
SELECT + 35 + + 77, COUNT( * ) * COUNT( * ) + - + 30 AS col0
----
112
-29

skipif mysql # not compatible
query II rowsort label-8248
SELECT + 35 + + 77, COUNT ( * ) * COUNT ( * ) + - + 30 AS col0
----
112
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-8249
SELECT + COUNT( * ) * + CASE 69 WHEN 34 THEN NULL ELSE + - 52 + COUNT( * ) END + + 87 - COUNT( * ) AS col0
----
35

skipif mysql # not compatible
query I rowsort label-8249
SELECT + COUNT ( * ) * + CASE 69 WHEN 34 THEN NULL ELSE + - 52 + COUNT ( * ) END + + 87 - COUNT ( * ) AS col0
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-8250
SELECT ALL - - 11 * - 10 + + 28 - - COUNT( * ) - 90 + - 0 + COUNT( * ) col2
----
-170

skipif mysql # not compatible
query I rowsort label-8250
SELECT ALL - - 11 * - 10 + + 28 - - COUNT ( * ) - 90 + - 0 + COUNT ( * ) col2
----
-170

query I rowsort
SELECT + - 16 - 4 + - ( + 86 ) AS col2
----
-106

onlyif mysql # DIV for integer division: 
query I rowsort label-8252
SELECT + COALESCE ( 34, - - ( + 93 ) + + - 92 DIV + 98 + - 24 * + 88 )
----
34

skipif mysql # not compatible
query I rowsort label-8252
SELECT + COALESCE ( 34, - - ( + 93 ) + + - 92 / + 98 + - 24 * + 88 )
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-8253
SELECT ALL + COUNT( * ) * - 92 * + - 31 * - 28 + - NULLIF ( + MAX( ALL - + CASE - - ( - + 22 ) WHEN 80 THEN + - 24 END ), + COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8253
SELECT ALL + COUNT ( * ) * - 92 * + - 31 * - 28 + - NULLIF ( + MAX ( ALL - + CASE - - ( - + 22 ) WHEN 80 THEN + - 24 END ), + COUNT ( * ) )
----
NULL

query I rowsort
SELECT ALL + + NULLIF ( + 4, 72 * - + 1 )
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-8255
SELECT COUNT( DISTINCT + - 27 ) + + + 46
----
47

skipif mysql # not compatible
query I rowsort label-8255
SELECT COUNT ( DISTINCT + - 27 ) + + + 46
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-8256
SELECT ALL + 86 + - COUNT( * ) * + 67 AS col1
----
19

skipif mysql # not compatible
query I rowsort label-8256
SELECT ALL + 86 + - COUNT ( * ) * + 67 AS col1
----
19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8257
SELECT DISTINCT + 28 + + CASE 49 WHEN MAX( ALL + ( CAST( 95 AS SIGNED ) ) ) + + - 31 THEN NULL WHEN 13 THEN AVG ( ALL + 34 ) * 4 + 45 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8257
SELECT DISTINCT + 28 + + CASE 49 WHEN MAX ( ALL + ( CAST ( 95 AS INTEGER ) ) ) + + - 31 THEN NULL WHEN 13 THEN AVG ( ALL + 34 ) * 4 + 45 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8258
SELECT 47 - + - 77 + + 39 * 60 * + COALESCE ( - + COUNT( * ), - 5, - 23 ) AS col0
----
-2216

skipif mysql # not compatible
query I rowsort label-8258
SELECT 47 - + - 77 + + 39 * 60 * + COALESCE ( - + COUNT ( * ), - 5, - 23 ) AS col0
----
-2216

query I rowsort
SELECT DISTINCT + ( - 66 )
----
-66

query I rowsort
SELECT 49 + - 64 AS col0
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-8261
SELECT DISTINCT - 87 * CASE - - COUNT( * ) WHEN - + 66 THEN NULL WHEN + 41 THEN - 2 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8261
SELECT DISTINCT - 87 * CASE - - COUNT ( * ) WHEN - + 66 THEN NULL WHEN + 41 THEN - 2 END
----
NULL

query I rowsort
SELECT 76 + - ( + + 90 ) AS col1
----
-14

query I rowsort
SELECT 47 + 82 + - 97 * - 77 + - 16
----
7582

query I rowsort
SELECT DISTINCT 36 * - 95
----
-3420

query I rowsort
SELECT 66 + + 1 AS col1
----
67

query I rowsort
SELECT 72 * - + 32 AS col2
----
-2304

query II rowsort
SELECT DISTINCT 28, 11 col1
----
28
11

query II rowsort
SELECT ALL 81 AS col0, 84
----
81
84

query II rowsort
SELECT - 32 AS col2, 70
----
-32
70

query I rowsort
SELECT 62 + - 21 AS col2
----
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8271
SELECT COUNT( * ) + 29 + - CASE - - 12 WHEN - - 38 * 18 * + CAST( NULL AS SIGNED ) + - - MAX( - 15 ) THEN NULL WHEN 74 - + - CAST( NULL AS SIGNED ) THEN NULL WHEN + + 72 + + + CASE + - 21 WHEN + 14 THEN NULL ELSE + ( - - 94 ) END + - 22 + - + CAST( NULL AS SIGNED ) * + 29 THEN + 67 + 97 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8271
SELECT COUNT ( * ) + 29 + - CASE - - 12 WHEN - - 38 * 18 * + CAST ( NULL AS INTEGER ) + - - MAX ( - 15 ) THEN NULL WHEN 74 - + - CAST ( NULL AS INTEGER ) THEN NULL WHEN + + 72 + + + CASE + - 21 WHEN + 14 THEN NULL ELSE + ( - - 94 ) END + - 22 + - + CAST ( NULL AS INTEGER ) * + 29 THEN + 67 + 97 END AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8272
SELECT ALL - COUNT( * ) DIV 15 col1
----
0

skipif mysql # not compatible
query I rowsort label-8272
SELECT ALL - COUNT ( * ) / 15 col1
----
0

query II rowsort
SELECT 20, 82 AS col1
----
20
82

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8274
SELECT 17 DIV - COALESCE ( - + 60, - + AVG ( DISTINCT 54 ) * COUNT( * ), + 0 ) * + MAX( ALL - 17 ) * + - 15 - + - 14 * - + 89 - 83, ( - 61 ) DIV + 84 * - 65 * - 35 col1
----
-1329
0

skipif mysql # not compatible
query II rowsort label-8274
SELECT 17 / - COALESCE ( - + 60, - + AVG ( DISTINCT 54 ) * COUNT ( * ), + 0 ) * + MAX ( ALL - 17 ) * + - 15 - + - 14 * - + 89 - 83, ( - 61 ) / + 84 * - 65 * - 35 col1
----
-1329
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8275
SELECT ALL - COALESCE ( + + 44, - NULLIF ( + 41, - - 28 - COUNT( * ) + - 95 ) ) * + ( - 58 ) AS col0
----
2552

skipif mysql # not compatible
query I rowsort label-8275
SELECT ALL - COALESCE ( + + 44, - NULLIF ( + 41, - - 28 - COUNT ( * ) + - 95 ) ) * + ( - 58 ) AS col0
----
2552

query I rowsort
SELECT 97 + - + 96 + - 79 AS col0
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-8277
SELECT ALL - 71 + + MAX( + 31 )
----
-40

skipif mysql # not compatible
query I rowsort label-8277
SELECT ALL - 71 + + MAX ( + 31 )
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-8278
SELECT ALL CASE + 90 WHEN - 7 THEN ( - 21 ) + 5 * + 98 END + CASE - 89 WHEN - 2 THEN - 71 + 64 / + SUM( ALL - NULLIF ( - 97, 64 ) ) ELSE 56 * + AVG ( + ( 91 ) ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8278
SELECT ALL CASE + 90 WHEN - 7 THEN ( - 21 ) + 5 * + 98 END + CASE - 89 WHEN - 2 THEN - 71 + 64 / + SUM ( ALL - NULLIF ( - 97, 64 ) ) ELSE 56 * + AVG ( + ( 91 ) ) END AS col0
----
NULL

query I rowsort
SELECT DISTINCT - COALESCE ( + 62, COALESCE ( 66, + 94 ) )
----
-62

query I rowsort
SELECT 87 * 24 AS col0
----
2088

query I rowsort
SELECT 22 + 76
----
98

query I rowsort
SELECT ALL - ( + 33 ) AS col2
----
-33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8283
SELECT DISTINCT - COALESCE ( + COUNT( * ), + 33 + 98 * 98 ) + - ( + 70 + COALESCE ( + 3 + SUM( + 89 ), + CAST( 39 AS SIGNED ) * 58, CAST( NULL AS DECIMAL ) * + 44 ) ) * + CASE 2 * CAST( NULL AS SIGNED ) WHEN COUNT( * ) / 82 THEN 78 WHEN MAX( ALL + 45 ) THEN - 91 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8283
SELECT DISTINCT - COALESCE ( + COUNT ( * ), + 33 + 98 * 98 ) + - ( + 70 + COALESCE ( + 3 + SUM ( + 89 ), + CAST ( 39 AS INTEGER ) * 58, CAST ( NULL AS REAL ) * + 44 ) ) * + CASE 2 * CAST ( NULL AS INTEGER ) WHEN COUNT ( * ) / 82 THEN 78 WHEN MAX ( ALL + 45 ) THEN - 91 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8284
SELECT COUNT( * ) * - 56 + 48 AS col1
----
-8

skipif mysql # not compatible
query I rowsort label-8284
SELECT COUNT ( * ) * - 56 + 48 AS col1
----
-8

onlyif mysql # DIV for integer division: 
query I rowsort label-8285
SELECT 72 DIV + 45 + 49
----
50

skipif mysql # not compatible
query I rowsort label-8285
SELECT 72 / + 45 + 49
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-8286
SELECT 48 * MIN( + ( 18 ) ) AS col0
----
864

skipif mysql # not compatible
query I rowsort label-8286
SELECT 48 * MIN ( + ( 18 ) ) AS col0
----
864

query I rowsort
SELECT DISTINCT 38 + - 68 * - 80
----
5478

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8288
SELECT ALL COUNT( ALL CAST( + 48 AS SIGNED ) ) DIV + 78
----
0

skipif mysql # not compatible
query I rowsort label-8288
SELECT ALL COUNT ( ALL CAST ( + 48 AS INTEGER ) ) / + 78
----
0

query I rowsort
SELECT 38 * - 23 AS col0
----
-874

query I rowsort
SELECT DISTINCT 90 * + 18 col2
----
1620

query I rowsort
SELECT ALL 49 - 9
----
40

query I rowsort
SELECT 28 * 15
----
420

onlyif mysql # aggregate syntax: 
query I rowsort label-8293
SELECT COUNT( * ) * - SUM( DISTINCT + 16 ) AS col2
----
-16

skipif mysql # not compatible
query I rowsort label-8293
SELECT COUNT ( * ) * - SUM ( DISTINCT + 16 ) AS col2
----
-16

query I rowsort
SELECT + ( + ( - 14 ) ) * + 56 + + 95 * + 69
----
5771

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8295
SELECT COUNT( * ) DIV - 95 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8295
SELECT COUNT ( * ) / - 95 AS col2
----
0

query I rowsort
SELECT DISTINCT 95 * 15 AS col0
----
1425

query I rowsort
SELECT 82 * 0 AS col1
----
0

query I rowsort
SELECT 53 * - 51 AS col1
----
-2703

onlyif mysql # aggregate syntax: 
query I rowsort label-8299
SELECT CASE - COUNT( * ) WHEN - COUNT( * ) * COUNT( * ) THEN NULL WHEN ( COUNT( 57 ) ) THEN - 68 * + 82 - - 35 ELSE NULL END + 1
----
NULL

skipif mysql # not compatible
query I rowsort label-8299
SELECT CASE - COUNT ( * ) WHEN - COUNT ( * ) * COUNT ( * ) THEN NULL WHEN ( COUNT ( 57 ) ) THEN - 68 * + 82 - - 35 ELSE NULL END + 1
----
NULL

query I rowsort
SELECT 98 + + 36
----
134

query I rowsort
SELECT 7 * ( - 33 )
----
-231

query I rowsort
SELECT ALL - 38 + - 92 * - 44
----
4010

onlyif mysql # aggregate syntax: 
query I rowsort label-8303
SELECT - COUNT( ALL - 82 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-8303
SELECT - COUNT ( ALL - 82 ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8304
SELECT DISTINCT 46 + COUNT( * )
----
47

skipif mysql # not compatible
query I rowsort label-8304
SELECT DISTINCT 46 + COUNT ( * )
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-8305
SELECT MIN( DISTINCT 68 ) - NULLIF ( 36, COUNT( DISTINCT 92 ) * + 50 ) * 99
----
-3496

skipif mysql # not compatible
query I rowsort label-8305
SELECT MIN ( DISTINCT 68 ) - NULLIF ( 36, COUNT ( DISTINCT 92 ) * + 50 ) * 99
----
-3496

onlyif mysql # DIV for integer division: 
query I rowsort label-8306
SELECT 97 DIV + 66
----
1

skipif mysql # not compatible
query I rowsort label-8306
SELECT 97 / + 66
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8307
SELECT ALL COUNT( * ) + - SUM( 58 - + 95 )
----
38

skipif mysql # not compatible
query I rowsort label-8307
SELECT ALL COUNT ( * ) + - SUM ( 58 - + 95 )
----
38

query I rowsort
SELECT DISTINCT + 94 + + 72
----
166

query I rowsort
SELECT ALL - COALESCE ( 3, + 13 * 29 ) + 94 * + 66 AS col1
----
6201

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8310
SELECT ALL + 85 + CASE COUNT( * ) + 73 WHEN 11 THEN + 22 / 63 + 92 WHEN 40 THEN - CAST( NULL AS SIGNED ) ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8310
SELECT ALL + 85 + CASE COUNT ( * ) + 73 WHEN 11 THEN + 22 / 63 + 92 WHEN 40 THEN - CAST ( NULL AS INTEGER ) ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8311
SELECT ALL - + 62 + COUNT( * )
----
-61

skipif mysql # not compatible
query I rowsort label-8311
SELECT ALL - + 62 + COUNT ( * )
----
-61

onlyif mysql # DIV for integer division: 
query I rowsort label-8312
SELECT ALL - + 56 * - 91 + COALESCE ( - 97, 25 DIV - ( 69 * 73 ) - - 57 ) AS col1
----
4999

skipif mysql # not compatible
query I rowsort label-8312
SELECT ALL - + 56 * - 91 + COALESCE ( - 97, 25 / - ( 69 * 73 ) - - 57 ) AS col1
----
4999

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8313
SELECT 68 / NULLIF ( CAST( NULL AS DECIMAL ), ( - COALESCE ( + 42, - 26 + + 39 ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8313
SELECT 68 / NULLIF ( CAST ( NULL AS REAL ), ( - COALESCE ( + 42, - 26 + + 39 ) ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8314
SELECT DISTINCT + MIN( + 60 ) * + 87
----
5220

skipif mysql # not compatible
query I rowsort label-8314
SELECT DISTINCT + MIN ( + 60 ) * + 87
----
5220

onlyif mysql # DIV for integer division: 
query I rowsort label-8315
SELECT DISTINCT + - 32 DIV 69 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8315
SELECT DISTINCT + - 32 / 69 AS col0
----
0

query I rowsort
SELECT DISTINCT - - ( 68 ) * 60
----
4080

onlyif mysql # aggregate syntax: 
query I rowsort label-8317
SELECT DISTINCT - MAX( - 37 ) * - 97
----
-3589

skipif mysql # not compatible
query I rowsort label-8317
SELECT DISTINCT - MAX ( - 37 ) * - 97
----
-3589

onlyif mysql # aggregate syntax: 
query I rowsort label-8318
SELECT ALL - COUNT( * ) * NULLIF ( ( + 92 ), 3 ) - COUNT( * )
----
-93

skipif mysql # not compatible
query I rowsort label-8318
SELECT ALL - COUNT ( * ) * NULLIF ( ( + 92 ), 3 ) - COUNT ( * )
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-8319
SELECT - + COUNT( * ) * - 95
----
95

skipif mysql # not compatible
query I rowsort label-8319
SELECT - + COUNT ( * ) * - 95
----
95

query I rowsort
SELECT + COALESCE ( CASE - 24 WHEN + 90 THEN 55 ELSE NULL END, 82 + - 37 * + 17 )
----
-547

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8321
SELECT - - 72 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8321
SELECT - - 72 * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8322
SELECT + 11 * CAST( + 52 AS SIGNED ) + + 64 AS col0
----
636

skipif mysql # not compatible
query I rowsort label-8322
SELECT + 11 * CAST ( + 52 AS INTEGER ) + + 64 AS col0
----
636

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8323
SELECT ALL NULLIF ( 54, 5 * + 97 + COUNT( * ) ) / + ( - CASE - 47 WHEN - 33 THEN NULL WHEN + CAST( NULL AS SIGNED ) / 62 THEN 54 + + 30 * 11 WHEN + 42 THEN NULL END + NULLIF ( - 51, - COALESCE ( 9, + 86, 30 ) + + 86 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8323
SELECT ALL NULLIF ( 54, 5 * + 97 + COUNT ( * ) ) / + ( - CASE - 47 WHEN - 33 THEN NULL WHEN + CAST ( NULL AS INTEGER ) / 62 THEN 54 + + 30 * 11 WHEN + 42 THEN NULL END + NULLIF ( - 51, - COALESCE ( 9, + 86, 30 ) + + 86 ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8324
SELECT + 48 + + + 0 + - CAST( - 20 + 78 * ( + 44 + - 50 ) AS SIGNED ) * + 69
----
33720

skipif mysql # not compatible
query I rowsort label-8324
SELECT + 48 + + + 0 + - CAST ( - 20 + 78 * ( + 44 + - 50 ) AS INTEGER ) * + 69
----
33720

onlyif mysql # aggregate syntax: 
query I rowsort label-8325
SELECT ALL COUNT( * ) * - ( 2 ) AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-8325
SELECT ALL COUNT ( * ) * - ( 2 ) AS col1
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-8326
SELECT SUM( ALL - 37 )
----
-37

skipif mysql # not compatible
query I rowsort label-8326
SELECT SUM ( ALL - 37 )
----
-37

onlyif mysql # DIV for integer division: 
query I rowsort label-8327
SELECT ALL + 42 DIV + + COALESCE ( 4, 85 )
----
10

skipif mysql # not compatible
query I rowsort label-8327
SELECT ALL + 42 / + + COALESCE ( 4, 85 )
----
10

query I rowsort
SELECT 52 * + + 81 + 72 * 87 col0
----
10476

query I rowsort
SELECT + 18 - ( ( 85 ) )
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-8330
SELECT MAX( ALL + + ( - 46 ) )
----
-46

skipif mysql # not compatible
query I rowsort label-8330
SELECT MAX ( ALL + + ( - 46 ) )
----
-46

query I rowsort
SELECT DISTINCT 41 + + + 93 + - 31
----
103

query I rowsort
SELECT ALL 0 * 60 AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8333
SELECT + 11 DIV - 3
----
-3

skipif mysql # not compatible
query I rowsort label-8333
SELECT + 11 / - 3
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8334
SELECT + 82 + ( + CAST( NULL AS SIGNED ) ) + - CAST( 62 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8334
SELECT + 82 + ( + CAST ( NULL AS INTEGER ) ) + - CAST ( 62 AS INTEGER )
----
NULL

query I rowsort
SELECT ALL 93 + - 89
----
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8336
SELECT DISTINCT - 71 + + - CAST( 86 AS SIGNED ) * 31 AS col1
----
-2737

skipif mysql # not compatible
query I rowsort label-8336
SELECT DISTINCT - 71 + + - CAST ( 86 AS INTEGER ) * 31 AS col1
----
-2737

query I rowsort
SELECT + 34 + + 93
----
127

query I rowsort
SELECT ALL 40 + ( + 50 ) - + 38
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-8339
SELECT - NULLIF ( COUNT( * ), - COUNT( * ) * + 54 + 55 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8339
SELECT - NULLIF ( COUNT ( * ), - COUNT ( * ) * + 54 + 55 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8340
SELECT ALL - COALESCE ( + COUNT( * ), - COUNT( * ) + CAST( 77 AS SIGNED ) * + SUM( DISTINCT + 49 ), + 55 ) + COUNT( * ) col2
----
0

skipif mysql # not compatible
query I rowsort label-8340
SELECT ALL - COALESCE ( + COUNT ( * ), - COUNT ( * ) + CAST ( 77 AS INTEGER ) * + SUM ( DISTINCT + 49 ), + 55 ) + COUNT ( * ) col2
----
0

query I rowsort
SELECT + 40 + + - 60 * 85
----
-5060

onlyif mysql # aggregate syntax: 
query I rowsort label-8342
SELECT + CASE ( ( - 38 ) ) WHEN + 58 THEN + ( 24 ) ELSE NULL END * MAX( ( - 76 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8342
SELECT + CASE ( ( - 38 ) ) WHEN + 58 THEN + ( 24 ) ELSE NULL END * MAX ( ( - 76 ) )
----
NULL

query I rowsort
SELECT + 4 + - 92 * 89 AS col2
----
-8184

onlyif mysql # aggregate syntax: 
query I rowsort label-8344
SELECT ALL 28 + + + COUNT( * ) AS col0
----
29

skipif mysql # not compatible
query I rowsort label-8344
SELECT ALL 28 + + + COUNT ( * ) AS col0
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-8345
SELECT + 11 + + - ( + MAX( 87 ) ) + - 29 AS col1
----
-105

skipif mysql # not compatible
query I rowsort label-8345
SELECT + 11 + + - ( + MAX ( 87 ) ) + - 29 AS col1
----
-105

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8346
SELECT + NULLIF ( 17, CAST( 5 AS SIGNED ) ) * 72
----
1224

skipif mysql # not compatible
query I rowsort label-8346
SELECT + NULLIF ( 17, CAST ( 5 AS INTEGER ) ) * 72
----
1224

query I rowsort
SELECT ALL + 34 * 44
----
1496

onlyif mysql # aggregate syntax: 
query I rowsort label-8348
SELECT + 24 + + COUNT( * ) col1
----
25

skipif mysql # not compatible
query I rowsort label-8348
SELECT + 24 + + COUNT ( * ) col1
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-8349
SELECT ALL - 23 - + + COUNT( + 3 )
----
-24

skipif mysql # not compatible
query I rowsort label-8349
SELECT ALL - 23 - + + COUNT ( + 3 )
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-8350
SELECT + 38 + + - MIN( DISTINCT 54 ) AS col1
----
-16

skipif mysql # not compatible
query I rowsort label-8350
SELECT + 38 + + - MIN ( DISTINCT 54 ) AS col1
----
-16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8351
SELECT ALL - - COUNT( * ) - - COUNT( * ) + CAST( 21 AS SIGNED ) * - 72
----
-1510

skipif mysql # not compatible
query I rowsort label-8351
SELECT ALL - - COUNT ( * ) - - COUNT ( * ) + CAST ( 21 AS INTEGER ) * - 72
----
-1510

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8352
SELECT - COUNT( * ) DIV - 24 + 68 * + 25 AS col2
----
1700

skipif mysql # not compatible
query I rowsort label-8352
SELECT - COUNT ( * ) / - 24 + 68 * + 25 AS col2
----
1700

onlyif mysql # aggregate syntax: 
query I rowsort label-8353
SELECT - - MIN( ALL + 86 ) + + 80
----
166

skipif mysql # not compatible
query I rowsort label-8353
SELECT - - MIN ( ALL + 86 ) + + 80
----
166

query I rowsort
SELECT + - 18 * - 38
----
684

onlyif mysql # aggregate syntax: 
query I rowsort label-8355
SELECT + + 80 * COUNT( 97 ) + + 31 AS col2
----
111

skipif mysql # not compatible
query I rowsort label-8355
SELECT + + 80 * COUNT ( 97 ) + + 31 AS col2
----
111

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8356
SELECT + ( - ( 91 ) ) DIV COUNT( 38 * + 33 ) AS col1
----
-91

skipif mysql # not compatible
query I rowsort label-8356
SELECT + ( - ( 91 ) ) / COUNT ( 38 * + 33 ) AS col1
----
-91

query I rowsort
SELECT 38 * + - 71 + + 82
----
-2616

query I rowsort
SELECT - ( + - 34 ) * 40 AS col0
----
1360

onlyif mysql # DIV for integer division: 
query I rowsort label-8359
SELECT ALL + 46 DIV + 15
----
3

skipif mysql # not compatible
query I rowsort label-8359
SELECT ALL + 46 / + 15
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8360
SELECT ALL + CAST( + - 2 AS SIGNED ) * 98 AS col2
----
-196

skipif mysql # not compatible
query I rowsort label-8360
SELECT ALL + CAST ( + - 2 AS INTEGER ) * 98 AS col2
----
-196

query I rowsort
SELECT ALL + - 67 * - 77
----
5159

onlyif mysql # aggregate syntax: 
query II rowsort label-8362
SELECT DISTINCT + COUNT( * ) col2, + 83
----
1
83

skipif mysql # not compatible
query II rowsort label-8362
SELECT DISTINCT + COUNT ( * ) col2, + 83
----
1
83

onlyif mysql # aggregate syntax: 
query I rowsort label-8363
SELECT ALL 69 * - MIN( + 62 ) + 20 AS col2
----
-4258

skipif mysql # not compatible
query I rowsort label-8363
SELECT ALL 69 * - MIN ( + 62 ) + 20 AS col2
----
-4258

onlyif mysql # aggregate syntax: 
query I rowsort label-8364
SELECT DISTINCT 38 * + COUNT( * ) + 86 + 43
----
167

skipif mysql # not compatible
query I rowsort label-8364
SELECT DISTINCT 38 * + COUNT ( * ) + 86 + 43
----
167

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8365
SELECT COALESCE ( - CAST( + 38 AS SIGNED ), 41 DIV 48 + 23, - 16 + + ( + 68 ) ) col0
----
-38

skipif mysql # not compatible
query I rowsort label-8365
SELECT COALESCE ( - CAST ( + 38 AS INTEGER ), 41 / 48 + 23, - 16 + + ( + 68 ) ) col0
----
-38

query I rowsort
SELECT CASE - 28 WHEN + 33 THEN - 52 ELSE - 87 * 90 END AS col2
----
-7830

onlyif mysql # aggregate syntax: 
query I rowsort label-8367
SELECT ALL 12 * + 38 + - COUNT( * ) + 56
----
511

skipif mysql # not compatible
query I rowsort label-8367
SELECT ALL 12 * + 38 + - COUNT ( * ) + 56
----
511

onlyif mysql # aggregate syntax: 
query I rowsort label-8368
SELECT CASE - 1 WHEN COUNT( * ) THEN 99 * - 80 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8368
SELECT CASE - 1 WHEN COUNT ( * ) THEN 99 * - 80 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8369
SELECT ALL + CAST( - ( - 73 ) AS SIGNED ) col2
----
73

skipif mysql # not compatible
query I rowsort label-8369
SELECT ALL + CAST ( - ( - 73 ) AS INTEGER ) col2
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-8370
SELECT ALL + 24 * + 58 + + 48 - + 20 * MIN( + ( - 98 ) * 93 )
----
183720

skipif mysql # not compatible
query I rowsort label-8370
SELECT ALL + 24 * + 58 + + 48 - + 20 * MIN ( + ( - 98 ) * 93 )
----
183720

query I rowsort
SELECT - 35 * - 25
----
875

onlyif mysql # aggregate syntax: 
query I rowsort label-8372
SELECT ALL ( + 5 ) * + + MIN( 41 ) + - 44 col1
----
161

skipif mysql # not compatible
query I rowsort label-8372
SELECT ALL ( + 5 ) * + + MIN ( 41 ) + - 44 col1
----
161

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8373
SELECT ALL CAST( + + COUNT( - 81 ) AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-8373
SELECT ALL CAST ( + + COUNT ( - 81 ) AS INTEGER )
----
1

query I rowsort
SELECT ALL - 59 * + + 33 * + - 75 + + 91 * 74 AS col2
----
152759

query I rowsort
SELECT + 4 * 44
----
176

query I rowsort
SELECT + 81 * + 39 AS col0
----
3159

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8377
SELECT ALL MAX( - 16 ) - - 23 DIV + 73 AS col1
----
-16

skipif mysql # not compatible
query I rowsort label-8377
SELECT ALL MAX ( - 16 ) - - 23 / + 73 AS col1
----
-16

onlyif mysql # DIV for integer division: 
query I rowsort label-8378
SELECT + 0 DIV - 38 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8378
SELECT + 0 / - 38 AS col2
----
0

query I rowsort
SELECT ALL + 94 * - 72 AS col0
----
-6768

onlyif mysql # aggregate syntax: 
query I rowsort label-8380
SELECT MAX( ALL 84 ) AS col1
----
84

skipif mysql # not compatible
query I rowsort label-8380
SELECT MAX ( ALL 84 ) AS col1
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-8381
SELECT ALL + CASE + 3 WHEN - - COUNT( * ) * 20 THEN NULL WHEN - 65 THEN 83 * - 56 END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8381
SELECT ALL + CASE + 3 WHEN - - COUNT ( * ) * 20 THEN NULL WHEN - 65 THEN 83 * - 56 END col1
----
NULL

query I rowsort
SELECT 90 * + 71
----
6390

query I rowsort
SELECT + 11 - + 94
----
-83

query I rowsort
SELECT 70 * + 10 * - 53
----
-37100

onlyif mysql # aggregate syntax: 
query I rowsort label-8385
SELECT - 85 * - - COUNT( * )
----
-85

skipif mysql # not compatible
query I rowsort label-8385
SELECT - 85 * - - COUNT ( * )
----
-85

query I rowsort
SELECT + - NULLIF ( + - 67, + 87 ) col0
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-8387
SELECT DISTINCT 73 * - COUNT( * ) * ( - 24 )
----
1752

skipif mysql # not compatible
query I rowsort label-8387
SELECT DISTINCT 73 * - COUNT ( * ) * ( - 24 )
----
1752

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8388
SELECT ALL 12 * ( + CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8388
SELECT ALL 12 * ( + CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT 30 * - + 74 col0
----
-2220

onlyif mysql # aggregate syntax: 
query I rowsort label-8390
SELECT 70 - MAX( ALL 88 )
----
-18

skipif mysql # not compatible
query I rowsort label-8390
SELECT 70 - MAX ( ALL 88 )
----
-18

onlyif mysql # DIV for integer division: 
query I rowsort label-8391
SELECT 88 DIV + 93 + + + 30 DIV + 69 * 11 + - 76 AS col2
----
-76

skipif mysql # not compatible
query I rowsort label-8391
SELECT 88 / + 93 + + + 30 / + 69 * 11 + - 76 AS col2
----
-76

query I rowsort
SELECT 91 * - 15 AS col1
----
-1365

onlyif mysql # aggregate syntax: 
query I rowsort label-8393
SELECT CASE + + 60 WHEN + - 36 / - 30 + COUNT( * ) THEN NULL WHEN - COUNT( * ) THEN + 67 * - 51 END + - 42 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8393
SELECT CASE + + 60 WHEN + - 36 / - 30 + COUNT ( * ) THEN NULL WHEN - COUNT ( * ) THEN + 67 * - 51 END + - 42 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8394
SELECT DISTINCT - 97 DIV - 33 col0
----
2

skipif mysql # not compatible
query I rowsort label-8394
SELECT DISTINCT - 97 / - 33 col0
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-8395
SELECT 10 DIV - + 61 col1
----
0

skipif mysql # not compatible
query I rowsort label-8395
SELECT 10 / - + 61 col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8396
SELECT ALL + COUNT( * ) + 30 * - 32 - 88 AS col2
----
-1047

skipif mysql # not compatible
query I rowsort label-8396
SELECT ALL + COUNT ( * ) + 30 * - 32 - 88 AS col2
----
-1047

onlyif mysql # DIV for integer division: 
query I rowsort label-8397
SELECT DISTINCT 23 DIV - + 64 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8397
SELECT DISTINCT 23 / - + 64 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8398
SELECT 0 + - 58 - + COUNT( * )
----
-59

skipif mysql # not compatible
query I rowsort label-8398
SELECT 0 + - 58 - + COUNT ( * )
----
-59

query I rowsort
SELECT 10 + + + 51
----
61

query I rowsort
SELECT ALL + 26 + + + CASE + 93 WHEN - - 76 * - 56 THEN NULL WHEN - 67 THEN NULL ELSE + 86 END + - 94 AS col2
----
18

query I rowsort
SELECT 16 * 81 AS col1
----
1296

onlyif mysql # aggregate syntax: 
query I rowsort label-8402
SELECT DISTINCT + COUNT( * ) - COUNT( * ) * + + MIN( ALL 44 ) * 60 AS col0
----
-2639

skipif mysql # not compatible
query I rowsort label-8402
SELECT DISTINCT + COUNT ( * ) - COUNT ( * ) * + + MIN ( ALL 44 ) * 60 AS col0
----
-2639

query II rowsort
SELECT 6 * + + 53, 71 AS col2
----
318
71

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8404
SELECT 16 + + - 76 * + - ( 94 ) DIV COUNT( * )
----
7160

skipif mysql # not compatible
query I rowsort label-8404
SELECT 16 + + - 76 * + - ( 94 ) / COUNT ( * )
----
7160

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8405
SELECT ALL + CASE + COUNT( * ) WHEN 41 * COALESCE ( 55, 70 + 85 / - COUNT( * ) ) THEN - CAST( NULL AS DECIMAL ) + 75 WHEN + 94 - 59 THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8405
SELECT ALL + CASE + COUNT ( * ) WHEN 41 * COALESCE ( 55, 70 + 85 / - COUNT ( * ) ) THEN - CAST ( NULL AS REAL ) + 75 WHEN + 94 - 59 THEN NULL END AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8406
SELECT DISTINCT 46 DIV 79 DIV + 59 col2
----
0

skipif mysql # not compatible
query I rowsort label-8406
SELECT DISTINCT 46 / 79 / + 59 col2
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8407
SELECT - COALESCE ( + + COALESCE ( 87, - 24 - CAST( NULL AS SIGNED ) * 25 ), + 96 ) DIV + 17
----
-5

skipif mysql # not compatible
query I rowsort label-8407
SELECT - COALESCE ( + + COALESCE ( 87, - 24 - CAST ( NULL AS INTEGER ) * 25 ), + 96 ) / + 17
----
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-8408
SELECT DISTINCT - 40 DIV - ( + - ( 58 ) ) * 79 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8408
SELECT DISTINCT - 40 / - ( + - ( 58 ) ) * 79 AS col2
----
0

query I rowsort
SELECT ALL - 90 * - 15 + + 91 * - 97
----
-7477

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8410
SELECT + 9 + CAST( NULL AS SIGNED ) + + 43 / 13 / - 3
----
NULL

skipif mysql # not compatible
query I rowsort label-8410
SELECT + 9 + CAST ( NULL AS INTEGER ) + + 43 / 13 / - 3
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8411
SELECT DISTINCT - - ( + 65 ) * COUNT( * ) + - NULLIF ( + 78, CASE - 84 WHEN ( + 42 ) THEN NULL WHEN AVG ( 76 ) THEN + 5 ELSE NULL END + - 43 ) * + ( NULLIF ( + 63, 37 * 76 ) + - COUNT( * ) )
----
-4771

skipif mysql # not compatible
query I rowsort label-8411
SELECT DISTINCT - - ( + 65 ) * COUNT ( * ) + - NULLIF ( + 78, CASE - 84 WHEN ( + 42 ) THEN NULL WHEN AVG ( 76 ) THEN + 5 ELSE NULL END + - 43 ) * + ( NULLIF ( + 63, 37 * 76 ) + - COUNT ( * ) )
----
-4771

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8412
SELECT CAST( NULL AS SIGNED ) + - + 9 * + 18 * - + ( 49 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8412
SELECT CAST ( NULL AS INTEGER ) + - + 9 * + 18 * - + ( 49 ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT + 88 * - 85
----
-7480

onlyif mysql # aggregate syntax: 
query I rowsort label-8414
SELECT ALL - 71 * + + 68 + COUNT( * )
----
-4827

skipif mysql # not compatible
query I rowsort label-8414
SELECT ALL - 71 * + + 68 + COUNT ( * )
----
-4827

query I rowsort
SELECT DISTINCT - COALESCE ( 96, - - 41 + + 52 ) * + 71 + + 11 * 75 AS col2
----
-5991

onlyif mysql # aggregate syntax: 
query I rowsort label-8416
SELECT SUM( ALL + 70 ) + 0
----
70

skipif mysql # not compatible
query I rowsort label-8416
SELECT SUM ( ALL + 70 ) + 0
----
70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8417
SELECT ALL 95 * - 80 * - 45 + + CAST( 17 AS SIGNED )
----
342017

skipif mysql # not compatible
query I rowsort label-8417
SELECT ALL 95 * - 80 * - 45 + + CAST ( 17 AS INTEGER )
----
342017

query I rowsort
SELECT 56 * - 98 + - 4 - - - 93
----
-5585

onlyif mysql # aggregate syntax: 
query I rowsort label-8419
SELECT MIN( DISTINCT + ( - 50 ) )
----
-50

skipif mysql # not compatible
query I rowsort label-8419
SELECT MIN ( DISTINCT + ( - 50 ) )
----
-50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8420
SELECT - ( + 58 ) / + + 19 + - COUNT( * ) + + ( + 52 ) + + ( 24 ) / CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8420
SELECT - ( + 58 ) / + + 19 + - COUNT ( * ) + + ( + 52 ) + + ( 24 ) / CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT 91 * + 19 AS col1
----
1729

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8422
SELECT DISTINCT 82 * CAST( - + COUNT( * ) AS SIGNED )
----
-82

skipif mysql # not compatible
query I rowsort label-8422
SELECT DISTINCT 82 * CAST ( - + COUNT ( * ) AS INTEGER )
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-8423
SELECT ALL + COUNT( * ) + - 43
----
-42

skipif mysql # not compatible
query I rowsort label-8423
SELECT ALL + COUNT ( * ) + - 43
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-8424
SELECT COUNT( ALL - 35 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8424
SELECT COUNT ( ALL - 35 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-8425
SELECT COUNT( * ) AS col1, + 38 AS col1
----
1
38

skipif mysql # not compatible
query II rowsort label-8425
SELECT COUNT ( * ) AS col1, + 38 AS col1
----
1
38

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8426
SELECT COUNT( * ) DIV - MAX( - 79 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8426
SELECT COUNT ( * ) / - MAX ( - 79 ) AS col2
----
0

query I rowsort
SELECT 42 * + 58 AS col0
----
2436

onlyif mysql # aggregate syntax: 
query I rowsort label-8428
SELECT ALL - 49 / CASE 21 WHEN MAX( - - 6 ) THEN NULL WHEN ( NULLIF ( 20, + AVG ( ( + 54 ) ) ) ) + + 9 / 77 THEN 13 + 70 WHEN COUNT( * ) * 9 THEN NULL WHEN + 57 - COUNT( * ) * + MIN( DISTINCT COALESCE ( 73, 40, ( - 25 ) ) ) THEN NULL END / - 19 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8428
SELECT ALL - 49 / CASE 21 WHEN MAX ( - - 6 ) THEN NULL WHEN ( NULLIF ( 20, + AVG ( ( + 54 ) ) ) ) + + 9 / 77 THEN 13 + 70 WHEN COUNT ( * ) * 9 THEN NULL WHEN + 57 - COUNT ( * ) * + MIN ( DISTINCT COALESCE ( 73, 40, ( - 25 ) ) ) THEN NULL END / - 19 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8429
SELECT + 69 * + ( COUNT( * ) )
----
69

skipif mysql # not compatible
query I rowsort label-8429
SELECT + 69 * + ( COUNT ( * ) )
----
69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8430
SELECT - COALESCE ( 9, + + 39, - + 68 ) * + ( CAST( NULL AS SIGNED ) ) + - 90
----
NULL

skipif mysql # not compatible
query I rowsort label-8430
SELECT - COALESCE ( 9, + + 39, - + 68 ) * + ( CAST ( NULL AS INTEGER ) ) + - 90
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8431
SELECT DISTINCT COUNT( DISTINCT 91 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8431
SELECT DISTINCT COUNT ( DISTINCT 91 ) AS col1
----
1

query I rowsort
SELECT ALL + NULLIF ( - 6, 17 ) * - - 16
----
-96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8433
SELECT - 63 * - COUNT( ALL 38 ) * CAST( NULL AS SIGNED ) / - 39 * + 84
----
NULL

skipif mysql # not compatible
query I rowsort label-8433
SELECT - 63 * - COUNT ( ALL 38 ) * CAST ( NULL AS INTEGER ) / - 39 * + 84
----
NULL

query I rowsort
SELECT ALL - - 52 * + 89
----
4628

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8435
SELECT - CAST( NULL AS SIGNED ) * - 74
----
NULL

skipif mysql # not compatible
query I rowsort label-8435
SELECT - CAST ( NULL AS INTEGER ) * - 74
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8436
SELECT + 48 + - - 55 + + + 19 * 94 * 48 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8436
SELECT + 48 + - - 55 + + + 19 * 94 * 48 * - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - + 75 + + 80
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-8438
SELECT + CASE - 55 WHEN + 3 THEN CASE - MIN( 69 ) WHEN 88 THEN NULL WHEN 26 THEN + CASE 17 WHEN - 72 THEN COUNT( * ) ELSE NULL END ELSE NULL END END
----
NULL

skipif mysql # not compatible
query I rowsort label-8438
SELECT + CASE - 55 WHEN + 3 THEN CASE - MIN ( 69 ) WHEN 88 THEN NULL WHEN 26 THEN + CASE 17 WHEN - 72 THEN COUNT ( * ) ELSE NULL END ELSE NULL END END
----
NULL

query I rowsort
SELECT ALL - 11 * - + 24 AS col0
----
264

query I rowsort
SELECT - - 0 + 94 AS col1
----
94

query I rowsort
SELECT - + COALESCE ( + - 0, + 95 + + - 12 )
----
0

query I rowsort
SELECT ALL + + 48 + - 25 * + 49 + + - 72 - + 34 + - ( + 22 ) AS col2
----
-1305

onlyif mysql # aggregate syntax: 
query II rowsort label-8443
SELECT - + 38 AS col2, COUNT( * ) * - + 75 AS col2
----
-38
-75

skipif mysql # not compatible
query II rowsort label-8443
SELECT - + 38 AS col2, COUNT ( * ) * - + 75 AS col2
----
-38
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-8444
SELECT - - CASE + 32 WHEN - + 63 THEN NULL WHEN + - 90 + - 71 + + 15 THEN - 44 - 32 WHEN + 42 THEN + 3 - - MIN( ALL - 15 ) * + 27 END - 28 * + SUM( + 3 * 65 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8444
SELECT - - CASE + 32 WHEN - + 63 THEN NULL WHEN + - 90 + - 71 + + 15 THEN - 44 - 32 WHEN + 42 THEN + 3 - - MIN ( ALL - 15 ) * + 27 END - 28 * + SUM ( + 3 * 65 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8445
SELECT - COUNT( * ) * + 30 + 34 - 97 AS col2
----
-93

skipif mysql # not compatible
query I rowsort label-8445
SELECT - COUNT ( * ) * + 30 + 34 - 97 AS col2
----
-93

query I rowsort
SELECT - + 81 + + - 58 + 92 + - 15 + + - ( 27 ) * - 75 AS col2
----
1963

query I rowsort
SELECT ALL + ( + + 63 ) + - 37
----
26

query II rowsort
SELECT - 46 AS col2, 86 AS col2
----
-46
86

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8449
SELECT ALL + CASE - - 66 WHEN 31 THEN + 37 - - 33 - 96 ELSE ( - COUNT( * ) ) END + 80 DIV + 9
----
7

skipif mysql # not compatible
query I rowsort label-8449
SELECT ALL + CASE - - 66 WHEN 31 THEN + 37 - - 33 - 96 ELSE ( - COUNT ( * ) ) END + 80 / + 9
----
7

query I rowsort
SELECT - + 73 * - + 50 AS col1
----
3650

onlyif mysql # aggregate syntax: 
query I rowsort label-8451
SELECT + MIN( - + 19 ) - 61
----
-80

skipif mysql # not compatible
query I rowsort label-8451
SELECT + MIN ( - + 19 ) - 61
----
-80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8452
SELECT ALL - - 93 * - CASE - 4 WHEN - MIN( ALL + CAST( NULL AS SIGNED ) ) * - COALESCE ( COALESCE ( - 63, 69 * - 7, + 16 + + 75 ), + 31 * ( COUNT( * ) ), 71 + - 95, ( 19 ) * - 23 ) - SUM( 61 ) THEN NULL WHEN + 58 THEN + 14 END - - 76 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8452
SELECT ALL - - 93 * - CASE - 4 WHEN - MIN ( ALL + CAST ( NULL AS INTEGER ) ) * - COALESCE ( COALESCE ( - 63, 69 * - 7, + 16 + + 75 ), + 31 * ( COUNT ( * ) ), 71 + - 95, ( 19 ) * - 23 ) - SUM ( 61 ) THEN NULL WHEN + 58 THEN + 14 END - - 76 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8453
SELECT + CASE - MIN( DISTINCT 33 ) WHEN + 22 + - 48 + 41 * 9 * 51 THEN 64 / + 2 + 41 WHEN - ( 35 ) THEN NULL ELSE 14 END AS col0
----
14

skipif mysql # not compatible
query I rowsort label-8453
SELECT + CASE - MIN ( DISTINCT 33 ) WHEN + 22 + - 48 + 41 * 9 * 51 THEN 64 / + 2 + 41 WHEN - ( 35 ) THEN NULL ELSE 14 END AS col0
----
14

onlyif mysql # DIV for integer division: 
query I rowsort label-8454
SELECT + + ( - 72 ) DIV - 94
----
0

skipif mysql # not compatible
query I rowsort label-8454
SELECT + + ( - 72 ) / - 94
----
0

query I rowsort
SELECT - 9 - - + 23
----
14

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8456
SELECT - + 2, 64 * CAST( NULL AS SIGNED ) AS col1
----
-2
NULL

skipif mysql # not compatible
query II rowsort label-8456
SELECT - + 2, 64 * CAST ( NULL AS INTEGER ) AS col1
----
-2
NULL

query I rowsort
SELECT ( - + 98 )
----
-98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8458
SELECT ALL 1 * - CAST( - 49 AS SIGNED ) * 46 + - 81
----
2173

skipif mysql # not compatible
query I rowsort label-8458
SELECT ALL 1 * - CAST ( - 49 AS INTEGER ) * 46 + - 81
----
2173

onlyif mysql # aggregate syntax: 
query I rowsort label-8459
SELECT ( 10 ) * SUM( ALL - - CASE - 43 WHEN + - 20 THEN 12 * - 50 + - CASE 5 WHEN 31 THEN NULL ELSE + 70 / 97 END ELSE NULL END ) - + 52 * + MAX( ALL 79 ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8459
SELECT ( 10 ) * SUM ( ALL - - CASE - 43 WHEN + - 20 THEN 12 * - 50 + - CASE 5 WHEN 31 THEN NULL ELSE + 70 / 97 END ELSE NULL END ) - + 52 * + MAX ( ALL 79 ) col2
----
NULL

query I rowsort
SELECT ALL COALESCE ( 53, - 7 ) * + - 77 + - + 7 + + - 32 col1
----
-4120

query I rowsort
SELECT ALL + 98 * + + 51 AS col0
----
4998

query I rowsort
SELECT DISTINCT + 80 * - 40 AS col0
----
-3200

query I rowsort
SELECT ALL - 25 * + 35
----
-875

query I rowsort
SELECT ( + - ( - 43 ) ) AS col2
----
43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8465
SELECT + 56 * 50 + 5 + CAST( NULL AS SIGNED ) + - NULLIF ( + 25, 47 ) * 9
----
NULL

skipif mysql # not compatible
query I rowsort label-8465
SELECT + 56 * 50 + 5 + CAST ( NULL AS INTEGER ) + - NULLIF ( + 25, 47 ) * 9
----
NULL

query II rowsort
SELECT ALL + 52, 87 + + 88 * + - 53 AS col0
----
52
-4577

onlyif mysql # aggregate syntax: 
query I rowsort label-8467
SELECT - 99 + 56 * - + 78 * - COALESCE ( + 67, - 34, - MAX( DISTINCT + 86 ) ) + + 70 AS col1
----
292627

skipif mysql # not compatible
query I rowsort label-8467
SELECT - 99 + 56 * - + 78 * - COALESCE ( + 67, - 34, - MAX ( DISTINCT + 86 ) ) + + 70 AS col1
----
292627

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8468
SELECT + NULLIF ( - - 29, - COALESCE ( - + CAST( + 62 AS DECIMAL ), + - 54 * - COUNT( * ), + COUNT( * ) / 78 ) ) AS col2
----
29

skipif mysql # not compatible
query I rowsort label-8468
SELECT + NULLIF ( - - 29, - COALESCE ( - + CAST ( + 62 AS REAL ), + - 54 * - COUNT ( * ), + COUNT ( * ) / 78 ) ) AS col2
----
29

query I rowsort
SELECT - 17 * - + 26
----
442

onlyif mysql # DIV for integer division: 
query I rowsort label-8470
SELECT - 76 + 31 DIV + 68 + 40 - + - 23
----
-13

skipif mysql # not compatible
query I rowsort label-8470
SELECT - 76 + 31 / + 68 + 40 - + - 23
----
-13

query I rowsort
SELECT + ( - + 75 ) col2
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-8472
SELECT ALL SUM( ALL - 96 ) * 30 * + - 82
----
236160

skipif mysql # not compatible
query I rowsort label-8472
SELECT ALL SUM ( ALL - 96 ) * 30 * + - 82
----
236160

onlyif mysql # aggregate syntax: 
query I rowsort label-8473
SELECT 26 * COUNT( * ) + + + 79
----
105

skipif mysql # not compatible
query I rowsort label-8473
SELECT 26 * COUNT ( * ) + + + 79
----
105

onlyif mysql # aggregate syntax: 
query I rowsort label-8474
SELECT - COUNT( * ) * + - ( - - 32 ) + + 23 AS col0
----
55

skipif mysql # not compatible
query I rowsort label-8474
SELECT - COUNT ( * ) * + - ( - - 32 ) + + 23 AS col0
----
55

query I rowsort
SELECT + 22 + 67
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-8476
SELECT ALL COUNT( * ) * - CASE + COUNT( * ) WHEN + + 65 + - 78 THEN - - 31 * 30 + 29 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8476
SELECT ALL COUNT ( * ) * - CASE + COUNT ( * ) WHEN + + 65 + - 78 THEN - - 31 * 30 + 29 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8477
SELECT + NULLIF ( - 20, - COUNT( * ) )
----
-20

skipif mysql # not compatible
query I rowsort label-8477
SELECT + NULLIF ( - 20, - COUNT ( * ) )
----
-20

query I rowsort
SELECT + 29 * - 74 + - - COALESCE ( + + 47, - + ( + 65 ) ) AS col2
----
-2099

onlyif mysql # DIV for integer division: 
query I rowsort label-8479
SELECT + + 35 DIV + 63 * 86
----
0

skipif mysql # not compatible
query I rowsort label-8479
SELECT + + 35 / + 63 * 86
----
0

query I rowsort
SELECT - ( - 48 ) * - - 21
----
1008

query I rowsort
SELECT DISTINCT 96 * 61 + + 89
----
5945

query I rowsort
SELECT - 38 * - - 13
----
-494

onlyif mysql # aggregate syntax: 
query I rowsort label-8483
SELECT ALL - MIN( 46 ) * - NULLIF ( 92, + 78 ) + + + COALESCE ( 13, MIN( ALL - 24 ) ) AS col1
----
4245

skipif mysql # not compatible
query I rowsort label-8483
SELECT ALL - MIN ( 46 ) * - NULLIF ( 92, + 78 ) + + + COALESCE ( 13, MIN ( ALL - 24 ) ) AS col1
----
4245

query II rowsort
SELECT - + 22 AS col0, 2
----
-22
2

onlyif mysql # aggregate syntax: 
query I rowsort label-8485
SELECT DISTINCT + COALESCE ( + + 43, - COUNT( * ) ) + - ( + 21 ) AS col0
----
22

skipif mysql # not compatible
query I rowsort label-8485
SELECT DISTINCT + COALESCE ( + + 43, - COUNT ( * ) ) + - ( + 21 ) AS col0
----
22

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8486
SELECT - 19 AS col1, CAST( NULL AS DECIMAL ) AS col1
----
-19
NULL

skipif mysql # not compatible
query II rowsort label-8486
SELECT - 19 AS col1, CAST ( NULL AS REAL ) AS col1
----
-19
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8487
SELECT - CASE 26 WHEN + 45 THEN 35 ELSE - - 25 + + - 55 DIV ( - NULLIF ( COALESCE ( 43, - 68 ), + COALESCE ( 31, 24 ) * 94 + + 6 ) * + 49 + 15 ) END AS col2
----
-25

skipif mysql # not compatible
query I rowsort label-8487
SELECT - CASE 26 WHEN + 45 THEN 35 ELSE - - 25 + + - 55 / ( - NULLIF ( COALESCE ( 43, - 68 ), + COALESCE ( 31, 24 ) * 94 + + 6 ) * + 49 + 15 ) END AS col2
----
-25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8488
SELECT ALL + AVG ( ALL + 70 ) + MAX( DISTINCT - - CAST( - CAST( - CAST( NULL AS SIGNED ) AS DECIMAL ) AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8488
SELECT ALL + AVG ( ALL + 70 ) + MAX ( DISTINCT - - CAST ( - CAST ( - CAST ( NULL AS INTEGER ) AS REAL ) AS INTEGER ) ) AS col2
----
NULL

query I rowsort
SELECT ALL + 8 + - 89 + + 14 + 24 * - 98 AS col1
----
-2419

query I rowsort
SELECT - - 2 - + + 37 AS col2
----
-35

query I rowsort
SELECT DISTINCT 97 + + - 88
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-8492
SELECT + + NULLIF ( + COUNT( - 27 ), + NULLIF ( + - 58, + COALESCE ( NULLIF ( - MAX( DISTINCT + 38 ), - ( + ( 23 ) ) ), 29 * 75 ) + COUNT( * ) ) + 49 / 58 ) + + ( + COALESCE ( COUNT( * ), + COUNT( * ), 95 ) ) AS col1
----
2

skipif mysql # not compatible
query I rowsort label-8492
SELECT + + NULLIF ( + COUNT ( - 27 ), + NULLIF ( + - 58, + COALESCE ( NULLIF ( - MAX ( DISTINCT + 38 ), - ( + ( 23 ) ) ), 29 * 75 ) + COUNT ( * ) ) + 49 / 58 ) + + ( + COALESCE ( COUNT ( * ), + COUNT ( * ), 95 ) ) AS col1
----
2

query I rowsort
SELECT - 41 + + 24 - + 50 * + + 11 AS col2
----
-567

query II rowsort
SELECT - - 37, + ( + 79 ) - 63 AS col0
----
37
16

query I rowsort
SELECT ALL + 47 + + + 19
----
66

onlyif mysql # aggregate syntax: 
query II rowsort label-8496
SELECT + 76 col1, CASE WHEN NOT ( - 21 > NULL ) THEN NULL ELSE - 59 * + SUM( ALL 32 ) END AS col1
----
76
-1888

skipif mysql # not compatible
query II rowsort label-8496
SELECT + 76 col1, CASE WHEN NOT ( - 21 > NULL ) THEN NULL ELSE - 59 * + SUM ( ALL 32 ) END AS col1
----
76
-1888

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8497
SELECT - - 14 AS col0, CASE - 74 WHEN - 86 * - ( 97 ) + - 27 THEN NULL WHEN + 29 * - AVG ( - 66 ) + 41 * - CAST( 34 / COUNT( * ) - - 13 AS SIGNED ) THEN 71 - MAX( - 79 - 58 ) WHEN CAST( NULL AS SIGNED ) THEN NULL END
----
14
NULL

skipif mysql # not compatible
query II rowsort label-8497
SELECT - - 14 AS col0, CASE - 74 WHEN - 86 * - ( 97 ) + - 27 THEN NULL WHEN + 29 * - AVG ( - 66 ) + 41 * - CAST ( 34 / COUNT ( * ) - - 13 AS INTEGER ) THEN 71 - MAX ( - 79 - 58 ) WHEN CAST ( NULL AS INTEGER ) THEN NULL END
----
14
NULL

query I rowsort
SELECT DISTINCT 7 * - 5 * - 5
----
175

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8499
SELECT ALL CAST( + + 63 AS SIGNED ) AS col2
----
63

skipif mysql # not compatible
query I rowsort label-8499
SELECT ALL CAST ( + + 63 AS INTEGER ) AS col2
----
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8500
SELECT DISTINCT - 39 - - - CAST( - COUNT( * ) AS SIGNED ) + + - 27
----
-65

skipif mysql # not compatible
query I rowsort label-8500
SELECT DISTINCT - 39 - - - CAST ( - COUNT ( * ) AS INTEGER ) + + - 27
----
-65

onlyif mysql # DIV for integer division: 
query I rowsort label-8501
SELECT 57 DIV + 71 + 48 AS col2
----
48

skipif mysql # not compatible
query I rowsort label-8501
SELECT 57 / + 71 + 48 AS col2
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-8502
SELECT - 88 * + COUNT( * ) * - - COUNT( * ) AS col2
----
-88

skipif mysql # not compatible
query I rowsort label-8502
SELECT - 88 * + COUNT ( * ) * - - COUNT ( * ) AS col2
----
-88

query II rowsort
SELECT - 6 + 56, 40 + + 32 AS col0
----
50
72

query I rowsort
SELECT - 93 * - + 1 col2
----
93

query II rowsort
SELECT DISTINCT - 76 * + 51 AS col2, + 7 AS col1
----
-3876
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8506
SELECT DISTINCT + COALESCE ( + 64, COUNT( * ) + + 6 ) * - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8506
SELECT DISTINCT + COALESCE ( + 64, COUNT ( * ) + + 6 ) * - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8507
SELECT 32 * - CAST( + 52 AS SIGNED ) * - 6 AS col2
----
9984

skipif mysql # not compatible
query I rowsort label-8507
SELECT 32 * - CAST ( + 52 AS INTEGER ) * - 6 AS col2
----
9984

onlyif mysql # aggregate syntax: 
query I rowsort label-8508
SELECT COUNT( * ) * + 57 * - 40 AS col0
----
-2280

skipif mysql # not compatible
query I rowsort label-8508
SELECT COUNT ( * ) * + 57 * - 40 AS col0
----
-2280

onlyif mysql # aggregate syntax: 
query I rowsort label-8509
SELECT DISTINCT - ( - + ( - - 85 ) ) * - + MIN( DISTINCT 17 )
----
-1445

skipif mysql # not compatible
query I rowsort label-8509
SELECT DISTINCT - ( - + ( - - 85 ) ) * - + MIN ( DISTINCT 17 )
----
-1445

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8510
SELECT 44 * - - 3, + ( + 86 ) / - - 9 + - - CAST( NULL AS SIGNED ) AS col1
----
132
NULL

skipif mysql # not compatible
query II rowsort label-8510
SELECT 44 * - - 3, + ( + 86 ) / - - 9 + - - CAST ( NULL AS INTEGER ) AS col1
----
132
NULL

query I rowsort
SELECT ALL - CASE - 85 WHEN ( + + 16 ) THEN + + 31 WHEN + 68 THEN NULL ELSE 93 END
----
-93

query I rowsort
SELECT 22 * + 93 * + + 87
----
178002

onlyif mysql # aggregate syntax: 
query I rowsort label-8513
SELECT COUNT( * ) * ( 9 )
----
9

skipif mysql # not compatible
query I rowsort label-8513
SELECT COUNT ( * ) * ( 9 )
----
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8514
SELECT ALL 83 + - MIN( ALL + - 83 ) + + 42 + + 75 DIV 2
----
245

skipif mysql # not compatible
query I rowsort label-8514
SELECT ALL 83 + - MIN ( ALL + - 83 ) + + 42 + + 75 / 2
----
245

query I rowsort
SELECT DISTINCT - 25 + - + 3 + - - 28 AS col1
----
0

query I rowsort
SELECT 90 - + 10 + - 61 AS col0
----
19

query I rowsort
SELECT + - COALESCE ( 65, 59 - + 48 )
----
-65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8518
SELECT + COALESCE ( - CAST( + + 1 AS SIGNED ), + + COUNT( * ) + - NULLIF ( 38, - - 58 ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-8518
SELECT + COALESCE ( - CAST ( + + 1 AS INTEGER ), + + COUNT ( * ) + - NULLIF ( 38, - - 58 ) ) AS col0
----
-1

query I rowsort
SELECT DISTINCT 28 + - + 62 - - - 12
----
-46

query II rowsort
SELECT DISTINCT 67 * 61 AS col0, + 58
----
4087
58

onlyif mysql # aggregate syntax: 
query I rowsort label-8521
SELECT + 46 + COUNT( * ) + - ( - - 40 )
----
7

skipif mysql # not compatible
query I rowsort label-8521
SELECT + 46 + COUNT ( * ) + - ( - - 40 )
----
7

query I rowsort
SELECT ALL 86 * - + 13
----
-1118

query I rowsort
SELECT ( + - CASE + - 5 WHEN ( - NULLIF ( 30, - 96 ) ) * 74 THEN 32 / 58 WHEN 79 THEN + CASE + 82 WHEN 31 THEN NULL WHEN 21 + 93 THEN 23 * + 80 ELSE NULL END ELSE NULL END )
----
NULL

query I rowsort
SELECT 39 * - 52 AS col0
----
-2028

onlyif mysql # aggregate syntax: 
query I rowsort label-8525
SELECT ( MAX( DISTINCT - + 30 ) ) AS col1
----
-30

skipif mysql # not compatible
query I rowsort label-8525
SELECT ( MAX ( DISTINCT - + 30 ) ) AS col1
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-8526
SELECT - ( NULLIF ( - COUNT( * ), - + 74 + - - 3 ) ) + ( + 11 ) AS col0
----
12

skipif mysql # not compatible
query I rowsort label-8526
SELECT - ( NULLIF ( - COUNT ( * ), - + 74 + - - 3 ) ) + ( + 11 ) AS col0
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-8527
SELECT + COUNT( * ) * - 71 AS col0
----
-71

skipif mysql # not compatible
query I rowsort label-8527
SELECT + COUNT ( * ) * - 71 AS col0
----
-71

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8528
SELECT DISTINCT 59 DIV - - COUNT( * )
----
59

skipif mysql # not compatible
query I rowsort label-8528
SELECT DISTINCT 59 / - - COUNT ( * )
----
59

query II rowsort
SELECT - 11, 62 * - 70 AS col1
----
-11
-4340

onlyif mysql # aggregate syntax: 
query I rowsort label-8530
SELECT ( + - MIN( ALL - 88 ) ) * + COUNT( * ) AS col1
----
88

skipif mysql # not compatible
query I rowsort label-8530
SELECT ( + - MIN ( ALL - 88 ) ) * + COUNT ( * ) AS col1
----
88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8531
SELECT ALL + ( + 92 ) * 75 + - CAST( 88 AS SIGNED )
----
6812

skipif mysql # not compatible
query I rowsort label-8531
SELECT ALL + ( + 92 ) * 75 + - CAST ( 88 AS INTEGER )
----
6812

onlyif mysql # aggregate syntax: 
query I rowsort label-8532
SELECT ( ( - 78 ) ) - - 52 + + COUNT( - NULLIF ( 82, + 25 + - 73 ) )
----
-25

skipif mysql # not compatible
query I rowsort label-8532
SELECT ( ( - 78 ) ) - - 52 + + COUNT ( - NULLIF ( 82, + 25 + - 73 ) )
----
-25

onlyif mysql # aggregate syntax: 
query II rowsort label-8533
SELECT + 79, SUM( DISTINCT + 0 ) AS col2
----
79
0

skipif mysql # not compatible
query II rowsort label-8533
SELECT + 79, SUM ( DISTINCT + 0 ) AS col2
----
79
0

query I rowsort
SELECT DISTINCT + 18 + - 95 AS col2
----
-77

query I rowsort
SELECT 44 * + + 82
----
3608

onlyif mysql # DIV for integer division: 
query I rowsort label-8536
SELECT - 9 DIV + + 76 * 5 + + ( + 63 ) * + + 82 AS col1
----
5166

skipif mysql # not compatible
query I rowsort label-8536
SELECT - 9 / + + 76 * 5 + + ( + 63 ) * + + 82 AS col1
----
5166

query I rowsort
SELECT + 22 * 23 - + 22 AS col1
----
484

query I rowsort
SELECT 25 + + 78
----
103

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8539
SELECT - COALESCE ( - MIN( + CAST( - - CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) AS SIGNED ) ), + 25 * - + 57 * - COUNT( * ), - 8 ) * 44 + 94 * + CAST( 55 AS SIGNED ) AS col2
----
-57530

skipif mysql # not compatible
query I rowsort label-8539
SELECT - COALESCE ( - MIN ( + CAST ( - - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) AS INTEGER ) ), + 25 * - + 57 * - COUNT ( * ), - 8 ) * 44 + 94 * + CAST ( 55 AS INTEGER ) AS col2
----
-57530

query I rowsort
SELECT 70 * - 11 col2
----
-770

onlyif mysql # aggregate syntax: 
query I rowsort label-8541
SELECT ALL - 0 + + - COUNT( * ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-8541
SELECT ALL - 0 + + - COUNT ( * ) AS col2
----
-1

query I rowsort
SELECT ALL + + 74 + + - 91 AS col0
----
-17

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8543
SELECT ALL + COUNT( * ) * MIN( - + 91 ) * - 56 DIV 8 + + COUNT( * )
----
638

skipif mysql # not compatible
query I rowsort label-8543
SELECT ALL + COUNT ( * ) * MIN ( - + 91 ) * - 56 / 8 + + COUNT ( * )
----
638

onlyif mysql # aggregate syntax: 
query I rowsort label-8544
SELECT ALL 17 + + - MIN( 77 ) * 58
----
-4449

skipif mysql # not compatible
query I rowsort label-8544
SELECT ALL 17 + + - MIN ( 77 ) * 58
----
-4449

query I rowsort
SELECT ALL + 72 * 17
----
1224

onlyif mysql # DIV for integer division: 
query I rowsort label-8546
SELECT 84 DIV 62 * 69
----
69

skipif mysql # not compatible
query I rowsort label-8546
SELECT 84 / 62 * 69
----
69

query I rowsort
SELECT 28 + - - ( - COALESCE ( - 86, 80 ) )
----
114

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8548
SELECT + COUNT( * ) AS col1, + 26 + - 48 DIV - 67 - 91
----
1
-65

skipif mysql # not compatible
query II rowsort label-8548
SELECT + COUNT ( * ) AS col1, + 26 + - 48 / - 67 - 91
----
1
-65

query I rowsort
SELECT - 27 + + 26 * - - 1 AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8550
SELECT ALL CASE + COUNT( * ) WHEN 3 THEN - NULLIF ( + 46, 99 + - - 87 ) ELSE NULL END - 22 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8550
SELECT ALL CASE + COUNT ( * ) WHEN 3 THEN - NULLIF ( + 46, 99 + - - 87 ) ELSE NULL END - 22 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-8551
SELECT DISTINCT 93 AS col0, COUNT( * ) * + - SUM( ALL - + 70 ) + ( - 34 ) + 39 + - 25 * 68 * CAST( NULL AS DECIMAL )
----
93
NULL

skipif mysql # not compatible
query II rowsort label-8551
SELECT DISTINCT 93 AS col0, COUNT ( * ) * + - SUM ( ALL - + 70 ) + ( - 34 ) + 39 + - 25 * 68 * CAST ( NULL AS REAL )
----
93
NULL

query II rowsort
SELECT ALL + 28 AS col1, - ( + 43 ) * - 23 + 62
----
28
1051

query I rowsort
SELECT ALL 47 * - ( + 11 ) + - 59
----
-576

onlyif mysql # aggregate syntax: 
query I rowsort label-8554
SELECT 76 * SUM( ALL + 28 ) col0
----
2128

skipif mysql # not compatible
query I rowsort label-8554
SELECT 76 * SUM ( ALL + 28 ) col0
----
2128

query I rowsort
SELECT ALL 86 * + - 9 * + 98
----
-75852

query I rowsort
SELECT 81 + - 73 + + 79
----
87

query I rowsort
SELECT 16 - - 51 AS col1
----
67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8558
SELECT 0 * - + MAX( 58 ) * - + 14 DIV - 54
----
0

skipif mysql # not compatible
query I rowsort label-8558
SELECT 0 * - + MAX ( 58 ) * - + 14 / - 54
----
0

query I rowsort
SELECT + 82 * + + 22 AS col0
----
1804

onlyif mysql # aggregate syntax: 
query I rowsort label-8560
SELECT ALL CASE - 87 WHEN 72 * - SUM( + + 78 ) / - 36 THEN + + COUNT( * ) / + - 46 + 59 * - 86 WHEN - 59 + 25 * 18 THEN 30 WHEN COALESCE ( ( COUNT( * ) ), COUNT( * ) + 25, - 55 ) - + 91 THEN + 70 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8560
SELECT ALL CASE - 87 WHEN 72 * - SUM ( + + 78 ) / - 36 THEN + + COUNT ( * ) / + - 46 + 59 * - 86 WHEN - 59 + 25 * 18 THEN 30 WHEN COALESCE ( ( COUNT ( * ) ), COUNT ( * ) + 25, - 55 ) - + 91 THEN + 70 END
----
NULL

query I rowsort
SELECT + 70 + - - 79 AS col2
----
149

onlyif mysql # DIV for integer division: 
query II rowsort label-8562
SELECT ALL 41 DIV - 85, 78 + - + 9 * + 90 * + 91 + - 34 col1
----
0
-73666

skipif mysql # not compatible
query II rowsort label-8562
SELECT ALL 41 / - 85, 78 + - + 9 * + 90 * + 91 + - 34 col1
----
0
-73666

query II rowsort
SELECT + 46 + + 79 AS col2, + ( - 50 )
----
125
-50

query I rowsort
SELECT ALL 52 + 83 AS col0
----
135

query I rowsort
SELECT ALL + 31 + - 25 + - - 63
----
69

query I rowsort
SELECT ALL - 40 * - CASE WHEN NOT 36 NOT BETWEEN NULL AND 27 + 86 THEN + 84 + CASE + 52 WHEN + 60 THEN - 17 * 83 WHEN 81 THEN NULL END END + 5 * - 29
----
NULL

query I rowsort
SELECT + 11 * - 95 AS col2
----
-1045

query I rowsort
SELECT ALL + 24 * - 21 + + 84 AS col2
----
-420

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8569
SELECT + CASE - 44 WHEN + - 66 * + + 73 THEN - CAST( 52 AS SIGNED ) - - 16 - - - MIN( 23 ) * + 80 * - 13 WHEN - CASE - ( - 36 ) WHEN ( 3 ) THEN NULL WHEN - 33 * + 37 + - CAST( + 31 AS SIGNED ) THEN NULL WHEN + 86 THEN 70 END + 57 THEN - COUNT( * ) WHEN - NULLIF ( COUNT( * ), - 38 ) THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8569
SELECT + CASE - 44 WHEN + - 66 * + + 73 THEN - CAST ( 52 AS INTEGER ) - - 16 - - - MIN ( 23 ) * + 80 * - 13 WHEN - CASE - ( - 36 ) WHEN ( 3 ) THEN NULL WHEN - 33 * + 37 + - CAST ( + 31 AS INTEGER ) THEN NULL WHEN + 86 THEN 70 END + 57 THEN - COUNT ( * ) WHEN - NULLIF ( COUNT ( * ), - 38 ) THEN NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8570
SELECT COALESCE ( - 63, - COUNT( * ) ) * - 28 * - + 31 + - + NULLIF ( - - MIN( DISTINCT + 47 ), - 97 ) + - 90 * + 68 + 1 AS col0
----
-60850

skipif mysql # not compatible
query I rowsort label-8570
SELECT COALESCE ( - 63, - COUNT ( * ) ) * - 28 * - + 31 + - + NULLIF ( - - MIN ( DISTINCT + 47 ), - 97 ) + - 90 * + 68 + 1 AS col0
----
-60850

onlyif mysql # aggregate syntax: 
query I rowsort label-8571
SELECT + NULLIF ( COUNT( - 33 ), - 61 - - - CASE WHEN 37 IS NULL THEN - 49 * 86 WHEN NULL IN ( COUNT( * ) ) THEN NULL END * - NULLIF ( 22 * + 18, - 33 ) )
----
1

skipif mysql # not compatible
query I rowsort label-8571
SELECT + NULLIF ( COUNT ( - 33 ), - 61 - - - CASE WHEN 37 IS NULL THEN - 49 * 86 WHEN NULL IN ( COUNT ( * ) ) THEN NULL END * - NULLIF ( 22 * + 18, - 33 ) )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8572
SELECT ALL CAST( NULL AS SIGNED ) * - NULLIF ( - 6, - COUNT( DISTINCT + 3 ) - - + 41 * + - 52 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8572
SELECT ALL CAST ( NULL AS INTEGER ) * - NULLIF ( - 6, - COUNT ( DISTINCT + 3 ) - - + 41 * + - 52 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8573
SELECT DISTINCT - COUNT( * ) * - + 84 + - + 10
----
74

skipif mysql # not compatible
query I rowsort label-8573
SELECT DISTINCT - COUNT ( * ) * - + 84 + - + 10
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-8574
SELECT ALL + 47 * - + MAX( ALL NULLIF ( 96, NULLIF ( + 36, - 0 * + 13 * 36 ) + 79 ) ) + 16
----
-4496

skipif mysql # not compatible
query I rowsort label-8574
SELECT ALL + 47 * - + MAX ( ALL NULLIF ( 96, NULLIF ( + 36, - 0 * + 13 * 36 ) + 79 ) ) + 16
----
-4496

query I rowsort
SELECT ALL + ( + 29 ) AS col2
----
29

query II rowsort
SELECT DISTINCT - 34 * - - 10 AS col2, - 5 * - 22 * - 51 AS col1
----
-340
-5610

onlyif mysql # DIV for integer division: 
query II rowsort label-8577
SELECT + 15 - - 71 + + - 75 DIV 63 AS col2, + 94 AS col0
----
85
94

skipif mysql # not compatible
query II rowsort label-8577
SELECT + 15 - - 71 + + - 75 / 63 AS col2, + 94 AS col0
----
85
94

query I rowsort
SELECT - ( - 88 ) col0
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-8579
SELECT DISTINCT + ( + CASE - SUM( - 83 ) WHEN - - 90 * - + 25 + + COUNT( * ) / 78 / + 62 - + 72 / 77 THEN NULL ELSE ( - 89 ) END )
----
-89

skipif mysql # not compatible
query I rowsort label-8579
SELECT DISTINCT + ( + CASE - SUM ( - 83 ) WHEN - - 90 * - + 25 + + COUNT ( * ) / 78 / + 62 - + 72 / 77 THEN NULL ELSE ( - 89 ) END )
----
-89

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8580
SELECT ALL + 86 * + - 76 + + 39 - - + 3 + - + 32 + - 29 * 53 * - - 38 * + 46 + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-8580
SELECT ALL + 86 * + - 76 + + 39 - - + 3 + - + 32 + - 29 * 53 * - - 38 * + 46 + CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT - + 46 * - 5 col0
----
230

onlyif mysql # aggregate syntax: 
query I rowsort label-8582
SELECT ALL + - SUM( ( + 77 ) ) AS col0
----
-77

skipif mysql # not compatible
query I rowsort label-8582
SELECT ALL + - SUM ( ( + 77 ) ) AS col0
----
-77

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8583
SELECT ALL - 90 DIV - 95, COUNT( * ) AS col0
----
0
1

skipif mysql # not compatible
query II rowsort label-8583
SELECT ALL - 90 / - 95, COUNT ( * ) AS col0
----
0
1

query I rowsort
SELECT - 73 * - 91 * + + 17 col1
----
112931

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8585
SELECT ALL + - COALESCE ( + - 53, 69 * - CASE WHEN NOT ( NULL ) <> - - 90 THEN NULL ELSE + 23 * COALESCE ( 2, - 26 * 50, + COUNT( * ) DIV 98 ) + 74 * - 39 END ) * 94 AS col1
----
4982

skipif mysql # not compatible
query I rowsort label-8585
SELECT ALL + - COALESCE ( + - 53, 69 * - CASE WHEN NOT ( NULL ) <> - - 90 THEN NULL ELSE + 23 * COALESCE ( 2, - 26 * 50, + COUNT ( * ) / 98 ) + 74 * - 39 END ) * 94 AS col1
----
4982

onlyif mysql # aggregate syntax: 
query I rowsort label-8586
SELECT - COUNT( * ) + + 33 * ( - ( 81 ) ) + + 83 + + 91 + - - 23 * + 11 + + 0 * + 26 AS col1
----
-2247

skipif mysql # not compatible
query I rowsort label-8586
SELECT - COUNT ( * ) + + 33 * ( - ( 81 ) ) + + 83 + + 91 + - - 23 * + 11 + + 0 * + 26 AS col1
----
-2247

onlyif mysql # aggregate syntax: 
query I rowsort label-8587
SELECT - - COUNT( * ) * 34 AS col1
----
34

skipif mysql # not compatible
query I rowsort label-8587
SELECT - - COUNT ( * ) * 34 AS col1
----
34

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8588
SELECT + - 38 + + CAST( + + ( ( - 71 ) ) AS SIGNED ), 28 col1
----
-109
28

skipif mysql # not compatible
query II rowsort label-8588
SELECT + - 38 + + CAST ( + + ( ( - 71 ) ) AS INTEGER ), 28 col1
----
-109
28

onlyif mysql # aggregate syntax: 
query II rowsort label-8589
SELECT 59 AS col1, - COUNT( * )
----
59
-1

skipif mysql # not compatible
query II rowsort label-8589
SELECT 59 AS col1, - COUNT ( * )
----
59
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8590
SELECT DISTINCT CAST( + 91 AS SIGNED ) AS col2
----
91

skipif mysql # not compatible
query I rowsort label-8590
SELECT DISTINCT CAST ( + 91 AS INTEGER ) AS col2
----
91

query I rowsort
SELECT ALL 65 + + 28 AS col2
----
93

onlyif mysql # aggregate syntax: 
query II rowsort label-8592
SELECT - COUNT( * ), 43 * - 43 AS col0
----
-1
-1849

skipif mysql # not compatible
query II rowsort label-8592
SELECT - COUNT ( * ), 43 * - 43 AS col0
----
-1
-1849

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8593
SELECT ALL ( + CAST( - 50 AS SIGNED ) ) col1, + ( - - 81 ) AS col0
----
-50
81

skipif mysql # not compatible
query II rowsort label-8593
SELECT ALL ( + CAST ( - 50 AS INTEGER ) ) col1, + ( - - 81 ) AS col0
----
-50
81

onlyif mysql # aggregate syntax: 
query I rowsort label-8594
SELECT ALL ( - COUNT( * ) ) + - 48
----
-49

skipif mysql # not compatible
query I rowsort label-8594
SELECT ALL ( - COUNT ( * ) ) + - 48
----
-49

query I rowsort
SELECT DISTINCT ( - 84 ) AS col2
----
-84

query I rowsort
SELECT ALL - 36 + - 53 AS col2
----
-89

query I rowsort
SELECT + 93 * + 45 AS col1
----
4185

query II rowsort
SELECT ALL 86 AS col1, ( + 92 )
----
86
92

query I rowsort
SELECT - NULLIF ( - 30, + NULLIF ( - + 9, - 86 / + + ( - 49 ) - - - 41 + 56 ) * - 18 + + 82 )
----
30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8600
SELECT ALL COUNT( * ) DIV + - 22 * - 60 + + 7 DIV 74 - + 12 AS col0
----
-12

skipif mysql # not compatible
query I rowsort label-8600
SELECT ALL COUNT ( * ) / + - 22 * - 60 + + 7 / 74 - + 12 AS col0
----
-12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8601
SELECT ALL 51 DIV - - 59 * - - 31 * + ( 37 ) + + ( CASE - + 17 WHEN - 31 + + NULLIF ( + 45, + CAST( - 67 AS SIGNED ) ) + - CAST( - 62 + + 59 AS SIGNED ) THEN NULL WHEN 58 THEN NULL WHEN - 50 THEN 8 ELSE + 1 - COUNT( * ) * + 3 END ) * 11 col0
----
-22

skipif mysql # not compatible
query I rowsort label-8601
SELECT ALL 51 / - - 59 * - - 31 * + ( 37 ) + + ( CASE - + 17 WHEN - 31 + + NULLIF ( + 45, + CAST ( - 67 AS INTEGER ) ) + - CAST ( - 62 + + 59 AS INTEGER ) THEN NULL WHEN 58 THEN NULL WHEN - 50 THEN 8 ELSE + 1 - COUNT ( * ) * + 3 END ) * 11 col0
----
-22

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8602
SELECT + + CASE + 80 WHEN + CAST( - COUNT( * ) AS DECIMAL ) THEN + - 36 * 8 / - + 18 WHEN 75 * 54 / + 2 * 87 + CASE 99 WHEN + 27 THEN NULL WHEN 17 THEN MAX( ALL 91 ) * 11 WHEN - 31 THEN NULL END * - 99 THEN COUNT( * ) END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8602
SELECT + + CASE + 80 WHEN + CAST ( - COUNT ( * ) AS REAL ) THEN + - 36 * 8 / - + 18 WHEN 75 * 54 / + 2 * 87 + CASE 99 WHEN + 27 THEN NULL WHEN 17 THEN MAX ( ALL 91 ) * 11 WHEN - 31 THEN NULL END * - 99 THEN COUNT ( * ) END col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8603
SELECT DISTINCT + ( + - COUNT( * ) ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-8603
SELECT DISTINCT + ( + - COUNT ( * ) ) col2
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-8604
SELECT ALL 16 DIV 48
----
0

skipif mysql # not compatible
query I rowsort label-8604
SELECT ALL 16 / 48
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8605
SELECT + - 35 * - + ( + 2 ) * 7 + 17 * + CAST( + + 9 AS SIGNED ) * SUM( ALL + - 0 ) * - 69 * 7 + - 22 DIV 31
----
490

skipif mysql # not compatible
query I rowsort label-8605
SELECT + - 35 * - + ( + 2 ) * 7 + 17 * + CAST ( + + 9 AS INTEGER ) * SUM ( ALL + - 0 ) * - 69 * 7 + - 22 / 31
----
490

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8606
SELECT - ( - 80 ) DIV + COUNT( * ) + - 50 DIV + + ( - 16 ) + + - 95 + - + 0 * 93 - + ( - 97 ) + + 94 * - 90 AS col1
----
-8375

skipif mysql # not compatible
query I rowsort label-8606
SELECT - ( - 80 ) / + COUNT ( * ) + - 50 / + + ( - 16 ) + + - 95 + - + 0 * 93 - + ( - 97 ) + + 94 * - 90 AS col1
----
-8375

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8607
SELECT + COUNT( ( + CAST( NULL AS SIGNED ) ) ) * 92 * 39 - - 21
----
21

skipif mysql # not compatible
query I rowsort label-8607
SELECT + COUNT ( ( + CAST ( NULL AS INTEGER ) ) ) * 92 * 39 - - 21
----
21

query II rowsort
SELECT + 99 AS col2, 22 AS col1
----
99
22

query I rowsort
SELECT + - 91 + - 53 AS col1
----
-144

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8610
SELECT + ( + CAST( NULL AS SIGNED ) ) * - + 51 - + COALESCE ( - - 92, - 0, + CASE 53 WHEN + 88 + - 12 THEN CASE + 61 WHEN - NULLIF ( 66, 36 ) * 0 THEN COALESCE ( - CASE - 73 WHEN - 5 THEN + 96 * - CASE - 53 WHEN ( 3 ) THEN NULL ELSE 83 END + + ( 11 ) WHEN 25 THEN - 45 ELSE NULL END, COUNT( * ) * + COUNT( * ) ) * - 49 + - ( - COALESCE ( - 10, + 7 ) ) ELSE NULL END ELSE NULL END, - 5 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8610
SELECT + ( + CAST ( NULL AS INTEGER ) ) * - + 51 - + COALESCE ( - - 92, - 0, + CASE 53 WHEN + 88 + - 12 THEN CASE + 61 WHEN - NULLIF ( 66, 36 ) * 0 THEN COALESCE ( - CASE - 73 WHEN - 5 THEN + 96 * - CASE - 53 WHEN ( 3 ) THEN NULL ELSE 83 END + + ( 11 ) WHEN 25 THEN - 45 ELSE NULL END, COUNT ( * ) * + COUNT ( * ) ) * - 49 + - ( - COALESCE ( - 10, + 7 ) ) ELSE NULL END ELSE NULL END, - 5 ) AS col0
----
NULL

query II rowsort
SELECT + 49 AS col2, 74 + - - ( + 20 ) col2
----
49
94

onlyif mysql # aggregate syntax: 
query I rowsort label-8612
SELECT + - NULLIF ( - COUNT( * ), + 65 )
----
1

skipif mysql # not compatible
query I rowsort label-8612
SELECT + - NULLIF ( - COUNT ( * ), + 65 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8613
SELECT ALL 74 * + + 44 + + - 10 + COUNT( * )
----
3247

skipif mysql # not compatible
query I rowsort label-8613
SELECT ALL 74 * + + 44 + + - 10 + COUNT ( * )
----
3247

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8614
SELECT ALL + 47 AS col0, + 98 DIV + 76 + + COUNT( * ) AS col1
----
47
2

skipif mysql # not compatible
query II rowsort label-8614
SELECT ALL + 47 AS col0, + 98 / + 76 + + COUNT ( * ) AS col1
----
47
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8615
SELECT + - 60 * - - CAST( - NULLIF ( - 46, + COUNT( * ) + - 76 ) AS SIGNED ) + ( + + 28 ) + - + 47 AS col2
----
-2779

skipif mysql # not compatible
query I rowsort label-8615
SELECT + - 60 * - - CAST ( - NULLIF ( - 46, + COUNT ( * ) + - 76 ) AS INTEGER ) + ( + + 28 ) + - + 47 AS col2
----
-2779

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8616
SELECT + - COALESCE ( 81, + 33 * - + CAST( + 84 AS SIGNED ) + + 84 + + 77 ) * + - 89
----
7209

skipif mysql # not compatible
query I rowsort label-8616
SELECT + - COALESCE ( 81, + 33 * - + CAST ( + 84 AS INTEGER ) + + 84 + + 77 ) * + - 89
----
7209

onlyif mysql # aggregate syntax: 
query I rowsort label-8617
SELECT ALL - 28 * - - CASE + ( + 99 ) WHEN - 2 * - 80 * + CASE 99 WHEN - - 38 THEN NULL ELSE - COUNT( * ) END + - 71 THEN + 34 - 77 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8617
SELECT ALL - 28 * - - CASE + ( + 99 ) WHEN - 2 * - 80 * + CASE 99 WHEN - - 38 THEN NULL ELSE - COUNT ( * ) END + - 71 THEN + 34 - 77 END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8618
SELECT + - 48 + + SUM( + 78 ) * - CAST( NULL AS SIGNED ) * - 8 + - + 22 * + - NULLIF ( 63, COUNT( * ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8618
SELECT + - 48 + + SUM ( + 78 ) * - CAST ( NULL AS INTEGER ) * - 8 + - + 22 * + - NULLIF ( 63, COUNT ( * ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8619
SELECT 16 + + 7 * + ( COUNT( * ) ) + + + 8
----
31

skipif mysql # not compatible
query I rowsort label-8619
SELECT 16 + + 7 * + ( COUNT ( * ) ) + + + 8
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-8620
SELECT DISTINCT MAX( ALL + 81 ) + + 43 AS col0
----
124

skipif mysql # not compatible
query I rowsort label-8620
SELECT DISTINCT MAX ( ALL + 81 ) + + 43 AS col0
----
124

onlyif mysql # aggregate syntax: 
query I rowsort label-8621
SELECT DISTINCT MAX( ALL + - 16 ) + + 79 - - - 55 AS col0
----
8

skipif mysql # not compatible
query I rowsort label-8621
SELECT DISTINCT MAX ( ALL + - 16 ) + + 79 - - - 55 AS col0
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-8622
SELECT DISTINCT - ( + 4 ) + 79 - + 95 + + COUNT( * ) AS col0
----
-19

skipif mysql # not compatible
query I rowsort label-8622
SELECT DISTINCT - ( + 4 ) + 79 - + 95 + + COUNT ( * ) AS col0
----
-19

onlyif mysql # aggregate syntax: 
query II rowsort label-8623
SELECT DISTINCT 14 AS col0, 89 * + COUNT( * ) AS col0
----
14
89

skipif mysql # not compatible
query II rowsort label-8623
SELECT DISTINCT 14 AS col0, 89 * + COUNT ( * ) AS col0
----
14
89

onlyif mysql # aggregate syntax: 
query I rowsort label-8624
SELECT ALL + 4 + 24 + + - 17 + + + ( + - 13 ) * + COUNT( * ) * + 37 * + 86 * ( + COUNT( - 10 ) )
----
-41355

skipif mysql # not compatible
query I rowsort label-8624
SELECT ALL + 4 + 24 + + - 17 + + + ( + - 13 ) * + COUNT ( * ) * + 37 * + 86 * ( + COUNT ( - 10 ) )
----
-41355

query I rowsort
SELECT DISTINCT - ( + - 76 ) + 8 AS col1
----
84

query I rowsort
SELECT DISTINCT - 31 + + - ( - + 3 )
----
-28

query I rowsort
SELECT 50 + 66
----
116

query II rowsort
SELECT DISTINCT 92 AS col2, 59
----
92
59

query I rowsort
SELECT DISTINCT - 87 - - 60 AS col1
----
-27

query I rowsort
SELECT ( + 67 ) * - 42
----
-2814

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8631
SELECT ALL + 84 * CAST( + - 20 AS SIGNED ) * + - 72 AS col1
----
120960

skipif mysql # not compatible
query I rowsort label-8631
SELECT ALL + 84 * CAST ( + - 20 AS INTEGER ) * + - 72 AS col1
----
120960

query I rowsort
SELECT + + ( - 87 )
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-8633
SELECT + 63 * COUNT( * ) + + 12 col1
----
75

skipif mysql # not compatible
query I rowsort label-8633
SELECT + 63 * COUNT ( * ) + + 12 col1
----
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8634
SELECT - MAX( + 39 ) * - ( - 87 ) * CAST( 41 AS SIGNED ) - + + 92 + + + 47 * - + SUM( + 56 ) * - 31
----
-57613

skipif mysql # not compatible
query I rowsort label-8634
SELECT - MAX ( + 39 ) * - ( - 87 ) * CAST ( 41 AS INTEGER ) - + + 92 + + + 47 * - + SUM ( + 56 ) * - 31
----
-57613

onlyif mysql # aggregate syntax: 
query II rowsort label-8635
SELECT DISTINCT - 31 AS col0, COUNT( * ) col0
----
-31
1

skipif mysql # not compatible
query II rowsort label-8635
SELECT DISTINCT - 31 AS col0, COUNT ( * ) col0
----
-31
1

query II rowsort
SELECT DISTINCT - - 7 AS col1, + 60
----
7
60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8637
SELECT + SUM( ALL + + ( 26 ) ) DIV MAX( + 3 )
----
8

skipif mysql # not compatible
query I rowsort label-8637
SELECT + SUM ( ALL + + ( 26 ) ) / MAX ( + 3 )
----
8

onlyif mysql # DIV for integer division: 
query I rowsort label-8638
SELECT + ( + 86 ) - - - 39 + 91 DIV + - 79
----
46

skipif mysql # not compatible
query I rowsort label-8638
SELECT + ( + 86 ) - - - 39 + 91 / + - 79
----
46

query I rowsort
SELECT ALL 52 * - 95 + + - COALESCE ( - - 34, + - 38 ) AS col0
----
-4974

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8640
SELECT - 22 DIV COALESCE ( - - 84, 94 * 64 DIV - COUNT( * ) + - 82 * + CASE + 45 WHEN + 30 DIV 49 - - 44 THEN NULL ELSE - 96 * CAST( NULL AS SIGNED ) END + + 90 + 83 ) + 84 * 54
----
4536

skipif mysql # not compatible
query I rowsort label-8640
SELECT - 22 / COALESCE ( - - 84, 94 * 64 / - COUNT ( * ) + - 82 * + CASE + 45 WHEN + 30 / 49 - - 44 THEN NULL ELSE - 96 * CAST ( NULL AS INTEGER ) END + + 90 + 83 ) + 84 * 54
----
4536

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8641
SELECT - + NULLIF ( - 72, 96 + + ( + 20 ) + - 81 ) * + CAST( + + 38 AS SIGNED ) - + ( + 16 ) - - 59 + - 61 AS col2
----
2718

skipif mysql # not compatible
query I rowsort label-8641
SELECT - + NULLIF ( - 72, 96 + + ( + 20 ) + - 81 ) * + CAST ( + + 38 AS INTEGER ) - + ( + 16 ) - - 59 + - 61 AS col2
----
2718

onlyif mysql # aggregate syntax: 
query I rowsort label-8642
SELECT NULLIF ( - CASE + 17 WHEN - COUNT( * ) THEN NULL WHEN + 87 + + 20 + + 15 THEN NULL WHEN + 28 * + 0 + 87 THEN - 64 END, ( 84 ) * - 9 ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8642
SELECT NULLIF ( - CASE + 17 WHEN - COUNT ( * ) THEN NULL WHEN + 87 + + 20 + + 15 THEN NULL WHEN + 28 * + 0 + 87 THEN - 64 END, ( 84 ) * - 9 ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8643
SELECT DISTINCT - 5 + 31 + CASE 60 WHEN + 70 THEN - + 70 * + + 19 ELSE + + 2 + - 72 + + 46 + - 78 * + COUNT( * ) END
----
-76

skipif mysql # not compatible
query I rowsort label-8643
SELECT DISTINCT - 5 + 31 + CASE 60 WHEN + 70 THEN - + 70 * + + 19 ELSE + + 2 + - 72 + + 46 + - 78 * + COUNT ( * ) END
----
-76

onlyif mysql # aggregate syntax: 
query II rowsort label-8644
SELECT + - COUNT( * ) AS col0, 78 AS col2
----
-1
78

skipif mysql # not compatible
query II rowsort label-8644
SELECT + - COUNT ( * ) AS col0, 78 AS col2
----
-1
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8645
SELECT COUNT( * ) - + MAX( - 12 ) + + + CAST( 38 AS SIGNED )
----
51

skipif mysql # not compatible
query I rowsort label-8645
SELECT COUNT ( * ) - + MAX ( - 12 ) + + + CAST ( 38 AS INTEGER )
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-8646
SELECT ALL COUNT( * ) * + 53 AS col1
----
53

skipif mysql # not compatible
query I rowsort label-8646
SELECT ALL COUNT ( * ) * + 53 AS col1
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-8647
SELECT ALL MAX( ALL 68 ) + ( - - NULLIF ( 31, - 10 ) )
----
99

skipif mysql # not compatible
query I rowsort label-8647
SELECT ALL MAX ( ALL 68 ) + ( - - NULLIF ( 31, - 10 ) )
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8648
SELECT ALL 29 + + COUNT( DISTINCT 7 ) + - + COUNT( * )
----
29

skipif mysql # not compatible
query I rowsort label-8648
SELECT ALL 29 + + COUNT ( DISTINCT 7 ) + - + COUNT ( * )
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-8649
SELECT ALL CASE + 78 WHEN SUM( + 25 ) THEN NULL WHEN + - 28 - - 9 - 30 * COUNT( * ) THEN - 13 * + ( + - 60 ) + ( 96 ) + ( COUNT( * ) + 81 ) * 28 / - 59 END + 12 * 40 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8649
SELECT ALL CASE + 78 WHEN SUM ( + 25 ) THEN NULL WHEN + - 28 - - 9 - 30 * COUNT ( * ) THEN - 13 * + ( + - 60 ) + ( 96 ) + ( COUNT ( * ) + 81 ) * 28 / - 59 END + 12 * 40 AS col0
----
NULL

query I rowsort
SELECT 51 + - 84 col0
----
-33

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8651
SELECT DISTINCT ( + COUNT( * ) ) + - COUNT( * ), 26 DIV - 51 AS col2
----
0
0

skipif mysql # not compatible
query II rowsort label-8651
SELECT DISTINCT ( + COUNT ( * ) ) + - COUNT ( * ), 26 / - 51 AS col2
----
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8652
SELECT 64 - 97 - - COUNT( * )
----
-32

skipif mysql # not compatible
query I rowsort label-8652
SELECT 64 - 97 - - COUNT ( * )
----
-32

query I rowsort
SELECT ALL + 73 * - + 35 * + 38
----
-97090

onlyif mysql # DIV for integer division: 
query I rowsort label-8654
SELECT ( + 48 ) DIV - + 51 * + + COALESCE ( 41, + NULLIF ( 83, + 12 DIV + 62 ) DIV + 8, - ( + - 85 ) * 20, 14 )
----
0

skipif mysql # not compatible
query I rowsort label-8654
SELECT ( + 48 ) / - + 51 * + + COALESCE ( 41, + NULLIF ( 83, + 12 / + 62 ) / + 8, - ( + - 85 ) * 20, 14 )
----
0

query I rowsort
SELECT DISTINCT ( 9 ) - - - 55
----
-46

query I rowsort
SELECT DISTINCT + 55 - COALESCE ( + ( - 82 ), - + 44 * - 60 )
----
137

query I rowsort
SELECT 54 + 46 AS col0
----
100

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8658
SELECT ALL CAST( NULL AS SIGNED ) DIV - 4 AS col1, 3 * - - COUNT( DISTINCT - 32 ) DIV COALESCE ( 49, 16 DIV + 16 + - + 60 ) * 50 DIV 70 + 82 - 77
----
NULL
5

skipif mysql # not compatible
query II rowsort label-8658
SELECT ALL CAST ( NULL AS INTEGER ) / - 4 AS col1, 3 * - - COUNT ( DISTINCT - 32 ) / COALESCE ( 49, 16 / + 16 + - + 60 ) * 50 / 70 + 82 - 77
----
NULL
5

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8659
SELECT ALL CAST( NULL AS DECIMAL ) * - - 58
----
NULL

skipif mysql # not compatible
query I rowsort label-8659
SELECT ALL CAST ( NULL AS REAL ) * - - 58
----
NULL

query I rowsort
SELECT DISTINCT + 55 - + 24 AS col2
----
31

onlyif mysql # DIV for integer division: 
query I rowsort label-8661
SELECT DISTINCT - 1 * 60 DIV 20 AS col0
----
-3

skipif mysql # not compatible
query I rowsort label-8661
SELECT DISTINCT - 1 * 60 / 20 AS col0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8662
SELECT COUNT( * ) * - + 23 col1
----
-23

skipif mysql # not compatible
query I rowsort label-8662
SELECT COUNT ( * ) * - + 23 col1
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-8663
SELECT DISTINCT CASE + 17 WHEN - ( - + COUNT( * ) ) THEN + 36 * - 30 * - - 5 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8663
SELECT DISTINCT CASE + 17 WHEN - ( - + COUNT ( * ) ) THEN + 36 * - 30 * - - 5 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8664
SELECT + 31 DIV - 35 * + 20 + + - 75
----
-75

skipif mysql # not compatible
query I rowsort label-8664
SELECT + 31 / - 35 * + 20 + + - 75
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-8665
SELECT 74 + MAX( - 47 )
----
27

skipif mysql # not compatible
query I rowsort label-8665
SELECT 74 + MAX ( - 47 )
----
27

query I rowsort
SELECT DISTINCT + ( - 96 ) * - 47 * - - 32
----
144384

query I rowsort
SELECT + 44 * 20 AS col0
----
880

query II rowsort
SELECT ALL + 12 * 47 * - NULLIF ( + 1, - 79 ), + 17 + 79 AS col1
----
-564
96

query I rowsort
SELECT ( - 27 ) * - 36 - + + 39 AS col0
----
933

onlyif mysql # aggregate syntax: 
query I rowsort label-8670
SELECT DISTINCT + + SUM( 45 ) * - + 87 + + 96 - COUNT( * ) AS col2
----
-3820

skipif mysql # not compatible
query I rowsort label-8670
SELECT DISTINCT + + SUM ( 45 ) * - + 87 + + 96 - COUNT ( * ) AS col2
----
-3820

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8671
SELECT - CASE + 61 WHEN + 31 * - - 58 THEN COALESCE ( 69, - ( 6 ) / 79 * - 12 * 75 + + ( - 35 ) + + COUNT( * ), + 50 * + 48, + 70, ( + 42 ) ) * ( + AVG ( 8 ) ) + 85 WHEN + 59 THEN NULL WHEN - CAST( NULL AS SIGNED ) THEN NULL END / + 23 + - 21
----
NULL

skipif mysql # not compatible
query I rowsort label-8671
SELECT - CASE + 61 WHEN + 31 * - - 58 THEN COALESCE ( 69, - ( 6 ) / 79 * - 12 * 75 + + ( - 35 ) + + COUNT ( * ), + 50 * + 48, + 70, ( + 42 ) ) * ( + AVG ( 8 ) ) + 85 WHEN + 59 THEN NULL WHEN - CAST ( NULL AS INTEGER ) THEN NULL END / + 23 + - 21
----
NULL

query II rowsort
SELECT ( + 8 ) AS col2, - 77 AS col0
----
8
-77

query I rowsort
SELECT DISTINCT + - 62 * - + 82 * 29 - 92 * - 48 - - + 51 + + 65 AS col0
----
151968

onlyif mysql # aggregate syntax: 
query I rowsort label-8674
SELECT ALL - + CASE + + 90 WHEN - ( + 57 ) THEN 69 END * + 72 * COUNT( DISTINCT ( + 53 ) ) + - - 86 + - - 19
----
NULL

skipif mysql # not compatible
query I rowsort label-8674
SELECT ALL - + CASE + + 90 WHEN - ( + 57 ) THEN 69 END * + 72 * COUNT ( DISTINCT ( + 53 ) ) + - - 86 + - - 19
----
NULL

query I rowsort
SELECT DISTINCT 81 * 15 * - - 71 + + 42
----
86307

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8676
SELECT - 64 * + 98 + + 45 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8676
SELECT - 64 * + 98 + + 45 + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8677
SELECT DISTINCT + 93 * - 69 * + 48 * + 39 + COUNT( * ) AS col2
----
-12012623

skipif mysql # not compatible
query I rowsort label-8677
SELECT DISTINCT + 93 * - 69 * + 48 * + 39 + COUNT ( * ) AS col2
----
-12012623

onlyif mysql # aggregate syntax: 
query I rowsort label-8678
SELECT + MAX( - 12 )
----
-12

skipif mysql # not compatible
query I rowsort label-8678
SELECT + MAX ( - 12 )
----
-12

onlyif mysql # aggregate syntax: 
query II rowsort label-8679
SELECT - 94 * ( + COUNT( * ) ) AS col0, 69 AS col0
----
-94
69

skipif mysql # not compatible
query II rowsort label-8679
SELECT - 94 * ( + COUNT ( * ) ) AS col0, 69 AS col0
----
-94
69

onlyif mysql # aggregate syntax: 
query I rowsort label-8680
SELECT + 0 * COUNT( DISTINCT 70 ) * + - 43 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8680
SELECT + 0 * COUNT ( DISTINCT 70 ) * + - 43 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8681
SELECT ALL 6 DIV - + 15 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8681
SELECT ALL 6 / - + 15 AS col0
----
0

query I rowsort
SELECT - 12 + - 96 AS col2
----
-108

query I rowsort
SELECT - 70 * - + 40
----
2800

onlyif mysql # aggregate syntax: 
query I rowsort label-8684
SELECT + MIN( 97 ) + + 26 + + 53 + 24
----
200

skipif mysql # not compatible
query I rowsort label-8684
SELECT + MIN ( 97 ) + + 26 + + 53 + 24
----
200

onlyif mysql # aggregate syntax: 
query I rowsort label-8685
SELECT SUM( DISTINCT + 31 ) AS col0
----
31

skipif mysql # not compatible
query I rowsort label-8685
SELECT SUM ( DISTINCT + 31 ) AS col0
----
31

query I rowsort
SELECT + 64 * + 17
----
1088

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8687
SELECT - COALESCE ( - 68, + + COUNT( * ) - + COUNT( ALL - CAST( - 87 AS SIGNED ) ) + - + CASE - COUNT( * ) WHEN + + 20 THEN - - 75 WHEN 87 THEN NULL ELSE NULL END DIV - + COALESCE ( - CAST( + COALESCE ( 15, 22 + - 81 ) AS SIGNED ), 17 ) * 48 )
----
68

skipif mysql # not compatible
query I rowsort label-8687
SELECT - COALESCE ( - 68, + + COUNT ( * ) - + COUNT ( ALL - CAST ( - 87 AS INTEGER ) ) + - + CASE - COUNT ( * ) WHEN + + 20 THEN - - 75 WHEN 87 THEN NULL ELSE NULL END / - + COALESCE ( - CAST ( + COALESCE ( 15, 22 + - 81 ) AS INTEGER ), 17 ) * 48 )
----
68

query I rowsort
SELECT + 82 + 5
----
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8689
SELECT ALL CAST( - - COUNT( * ) AS SIGNED ) - - 63 * + ( + COUNT( * ) ) + + 69 * NULLIF ( + 10, COUNT( * ) * - 77 + - 4 - + 4 ) AS col0
----
754

skipif mysql # not compatible
query I rowsort label-8689
SELECT ALL CAST ( - - COUNT ( * ) AS INTEGER ) - - 63 * + ( + COUNT ( * ) ) + + 69 * NULLIF ( + 10, COUNT ( * ) * - 77 + - 4 - + 4 ) AS col0
----
754

onlyif mysql # aggregate syntax: 
query I rowsort label-8690
SELECT + COUNT( * ) + + + 57
----
58

skipif mysql # not compatible
query I rowsort label-8690
SELECT + COUNT ( * ) + + + 57
----
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8691
SELECT - CAST( - + 26 AS SIGNED ) * 79 * - 73
----
-149942

skipif mysql # not compatible
query I rowsort label-8691
SELECT - CAST ( - + 26 AS INTEGER ) * 79 * - 73
----
-149942

query II rowsort
SELECT ALL 94, 62 AS col2
----
94
62

query I rowsort
SELECT + ( + + 99 ) * + - 94 + 20 col2
----
-9286

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8694
SELECT 80, ( + - CASE + CAST( NULL AS SIGNED ) WHEN + - COUNT( * ) THEN NULL WHEN + 73 THEN - 16 ELSE NULL END ) AS col0
----
80
NULL

skipif mysql # not compatible
query II rowsort label-8694
SELECT 80, ( + - CASE + CAST ( NULL AS INTEGER ) WHEN + - COUNT ( * ) THEN NULL WHEN + 73 THEN - 16 ELSE NULL END ) AS col0
----
80
NULL

query I rowsort
SELECT ALL + NULLIF ( 66, + NULLIF ( + + 57, + 66 ) + - 65 ) AS col0
----
66

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8696
SELECT + + ( + 21 ) DIV - 21 + - - 22 AS col0, + 66 * - CAST( - 38 AS SIGNED ) col1
----
21
2508

skipif mysql # not compatible
query II rowsort label-8696
SELECT + + ( + 21 ) / - 21 + - - 22 AS col0, + 66 * - CAST ( - 38 AS INTEGER ) col1
----
21
2508

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8697
SELECT ALL - COUNT( * ) * + - COALESCE ( ( - 48 ), COALESCE ( - 12, + 60 ) DIV - - 57 ) AS col2, - 71 DIV - ( 55 ) - + 64 + + - 18 AS col1
----
-48
-81

skipif mysql # not compatible
query II rowsort label-8697
SELECT ALL - COUNT ( * ) * + - COALESCE ( ( - 48 ), COALESCE ( - 12, + 60 ) / - - 57 ) AS col2, - 71 / - ( 55 ) - + 64 + + - 18 AS col1
----
-48
-81

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8698
SELECT ALL ( + 57 ) + - 61, - 15 * - CASE - + 0 WHEN 45 THEN - 58 WHEN - 31 THEN NULL END * COALESCE ( + ( + CAST( NULL AS SIGNED ) ), - 75, + 99 ) AS col0
----
-4
NULL

skipif mysql # not compatible
query II rowsort label-8698
SELECT ALL ( + 57 ) + - 61, - 15 * - CASE - + 0 WHEN 45 THEN - 58 WHEN - 31 THEN NULL END * COALESCE ( + ( + CAST ( NULL AS INTEGER ) ), - 75, + 99 ) AS col0
----
-4
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8699
SELECT DISTINCT + 74 * 19 * COUNT( DISTINCT - 73 ) * 56 - + MIN( + 68 ) + + + 33 + - 18 * - - 90 + 5 * + 32 + 21
----
77262

skipif mysql # not compatible
query I rowsort label-8699
SELECT DISTINCT + 74 * 19 * COUNT ( DISTINCT - 73 ) * 56 - + MIN ( + 68 ) + + + 33 + - 18 * - - 90 + 5 * + 32 + 21
----
77262

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8700
SELECT - + 46 + - CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8700
SELECT - + 46 + - CAST ( NULL AS REAL ) AS col2
----
NULL

query I rowsort
SELECT ALL - + 83 * - + 80 AS col0
----
6640

query I rowsort
SELECT ALL + + 21 + - 31 AS col1
----
-10

onlyif mysql # DIV for integer division: 
query I rowsort label-8703
SELECT + - ( + + 95 ) DIV - 20
----
4

skipif mysql # not compatible
query I rowsort label-8703
SELECT + - ( + + 95 ) / - 20
----
4

query I rowsort
SELECT - + 86 * - 99
----
8514

onlyif mysql # DIV for integer division: 
query I rowsort label-8705
SELECT - + 89 DIV 21 * + 22 + - - 55 AS col1
----
-33

skipif mysql # not compatible
query I rowsort label-8705
SELECT - + 89 / 21 * + 22 + - - 55 AS col1
----
-33

query I rowsort
SELECT CASE 57 WHEN + 97 THEN + - 44 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8707
SELECT ALL + + 92, 54 + + COUNT( * ) AS col1
----
92
55

skipif mysql # not compatible
query II rowsort label-8707
SELECT ALL + + 92, 54 + + COUNT ( * ) AS col1
----
92
55

query II rowsort
SELECT ALL + 78 AS col1, + 71 AS col2
----
78
71

query I rowsort
SELECT - 45 * - 88
----
3960

query I rowsort
SELECT ALL - 3 * - NULLIF ( + 86, - 86 + 92 * 36 + + - 50 ) + - 63 AS col0
----
195

onlyif mysql # aggregate syntax: 
query I rowsort label-8711
SELECT DISTINCT + + COALESCE ( - + 90, + 65 * - COUNT( * ) )
----
-90

skipif mysql # not compatible
query I rowsort label-8711
SELECT DISTINCT + + COALESCE ( - + 90, + 65 * - COUNT ( * ) )
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-8712
SELECT + MIN( - - 8 )
----
8

skipif mysql # not compatible
query I rowsort label-8712
SELECT + MIN ( - - 8 )
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-8713
SELECT ( - + MIN( DISTINCT 80 ) ) AS col0
----
-80

skipif mysql # not compatible
query I rowsort label-8713
SELECT ( - + MIN ( DISTINCT 80 ) ) AS col0
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-8714
SELECT 54 * MAX( ALL 76 ) + + 40 col1
----
4144

skipif mysql # not compatible
query I rowsort label-8714
SELECT 54 * MAX ( ALL 76 ) + + 40 col1
----
4144

query I rowsort
SELECT DISTINCT - 72 * 53 * - 17
----
64872

onlyif mysql # aggregate syntax: 
query I rowsort label-8716
SELECT CASE - 26 WHEN 15 THEN - MIN( ALL + 60 ) WHEN - 82 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8716
SELECT CASE - 26 WHEN 15 THEN - MIN ( ALL + 60 ) WHEN - 82 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8717
SELECT ALL 79 * + - COUNT( * ) - - 84 * - + COUNT( * ), 25 AS col1
----
-163
25

skipif mysql # not compatible
query II rowsort label-8717
SELECT ALL 79 * + - COUNT ( * ) - - 84 * - + COUNT ( * ), 25 AS col1
----
-163
25

query I rowsort
SELECT 18 * + ( - 57 ) - 37
----
-1063

onlyif mysql # aggregate syntax: 
query I rowsort label-8719
SELECT DISTINCT + CASE + COUNT( * ) WHEN 38 THEN NULL WHEN - - 98 THEN 4 ELSE + - 22 END
----
-22

skipif mysql # not compatible
query I rowsort label-8719
SELECT DISTINCT + CASE + COUNT ( * ) WHEN 38 THEN NULL WHEN - - 98 THEN 4 ELSE + - 22 END
----
-22

query I rowsort
SELECT DISTINCT - CASE + 8 WHEN + 34 THEN - 58 ELSE NULL END * - + 71 + - 56 AS col2
----
NULL

query I rowsort
SELECT COALESCE ( 11, - 54 * - 40 + 37 ) AS col0
----
11

query I rowsort
SELECT ALL + ( - + 19 ) AS col0
----
-19

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8723
SELECT DISTINCT CAST( - + 92 AS SIGNED ), 56 AS col1
----
-92
56

skipif mysql # not compatible
query II rowsort label-8723
SELECT DISTINCT CAST ( - + 92 AS INTEGER ), 56 AS col1
----
-92
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8724
SELECT - MIN( CAST( NULL AS SIGNED ) ) + - 81 / + - 57 + + 7 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8724
SELECT - MIN ( CAST ( NULL AS INTEGER ) ) + - 81 / + - 57 + + 7 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8725
SELECT + ( + 14 ) * + CAST( NULL AS SIGNED ) * + CAST( NULL AS SIGNED ) * - ( + + 49 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8725
SELECT + ( + 14 ) * + CAST ( NULL AS INTEGER ) * + CAST ( NULL AS INTEGER ) * - ( + + 49 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8726
SELECT + MIN( ALL + 76 ) - 2 * + 52
----
-28

skipif mysql # not compatible
query I rowsort label-8726
SELECT + MIN ( ALL + 76 ) - 2 * + 52
----
-28

onlyif mysql # DIV for integer division: 
query II rowsort label-8727
SELECT - 75 DIV + - 82 AS col0, - 74 AS col0
----
0
-74

skipif mysql # not compatible
query II rowsort label-8727
SELECT - 75 / + - 82 AS col0, - 74 AS col0
----
0
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-8728
SELECT + MIN( DISTINCT - 47 ) * - 49 AS col2
----
2303

skipif mysql # not compatible
query I rowsort label-8728
SELECT + MIN ( DISTINCT - 47 ) * - 49 AS col2
----
2303

query II rowsort
SELECT ALL 86 * - 86, 17 AS col2
----
-7396
17

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8730
SELECT - ( - - COUNT( * ) ) * + - 3 DIV 91 - - 64 col1
----
64

skipif mysql # not compatible
query I rowsort label-8730
SELECT - ( - - COUNT ( * ) ) * + - 3 / 91 - - 64 col1
----
64

query I rowsort
SELECT + 57 * + + 97
----
5529

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8732
SELECT - COALESCE ( + + 95, - - 97 + + 1 DIV COUNT( * ) )
----
-95

skipif mysql # not compatible
query I rowsort label-8732
SELECT - COALESCE ( + + 95, - - 97 + + 1 / COUNT ( * ) )
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-8733
SELECT DISTINCT - + NULLIF ( - 82, + 14 ) + - - 56 + - 96 - - COUNT( * ) col1
----
43

skipif mysql # not compatible
query I rowsort label-8733
SELECT DISTINCT - + NULLIF ( - 82, + 14 ) + - - 56 + - 96 - - COUNT ( * ) col1
----
43

query I rowsort
SELECT + 99 * + ( + 76 )
----
7524

onlyif mysql # aggregate syntax: 
query II rowsort label-8735
SELECT ALL 69 + - COUNT( DISTINCT 2 ) * 62, 8 + + 12 * - - 74 + 35 * - 62 AS col0
----
7
-1274

skipif mysql # not compatible
query II rowsort label-8735
SELECT ALL 69 + - COUNT ( DISTINCT 2 ) * 62, 8 + + 12 * - - 74 + 35 * - 62 AS col0
----
7
-1274

query I rowsort
SELECT DISTINCT + ( 8 ) * - 36
----
-288

query I rowsort
SELECT - + 81 + - 44 + 49
----
-76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8738
SELECT CAST( NULL AS SIGNED ) + - 71 + - 93 / - 43 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8738
SELECT CAST ( NULL AS INTEGER ) + - 71 + - 93 / - 43 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8739
SELECT ALL 18 + - + COALESCE ( - 69, + - 70, NULLIF ( 97, CAST( NULL AS SIGNED ) * - 97 ) ) col2
----
87

skipif mysql # not compatible
query I rowsort label-8739
SELECT ALL 18 + - + COALESCE ( - 69, + - 70, NULLIF ( 97, CAST ( NULL AS INTEGER ) * - 97 ) ) col2
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-8740
SELECT 14 - - - COUNT( ALL + + 65 ) AS col1
----
13

skipif mysql # not compatible
query I rowsort label-8740
SELECT 14 - - - COUNT ( ALL + + 65 ) AS col1
----
13

onlyif mysql # aggregate syntax: 
query II rowsort label-8741
SELECT ALL 85 + - - MIN( ALL + 50 ) * - COUNT( * ), + 9 AS col2
----
35
9

skipif mysql # not compatible
query II rowsort label-8741
SELECT ALL 85 + - - MIN ( ALL + 50 ) * - COUNT ( * ), + 9 AS col2
----
35
9

query I rowsort
SELECT 6 + - 32
----
-26

query I rowsort
SELECT 37 * 73 + + + 86
----
2787

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8744
SELECT ALL - 68 * + - 38 * 39 - 52 AS col2, + CAST( - 2 AS SIGNED ) * + COUNT( * ) + 36 + - 34 * + ( - + 12 ) * + - SUM( - 27 ) + - - 76 + NULLIF ( 35 - - 68, - ( + 39 ) ) * + 96
----
100724
21014

skipif mysql # not compatible
query II rowsort label-8744
SELECT ALL - 68 * + - 38 * 39 - 52 AS col2, + CAST ( - 2 AS INTEGER ) * + COUNT ( * ) + 36 + - 34 * + ( - + 12 ) * + - SUM ( - 27 ) + - - 76 + NULLIF ( 35 - - 68, - ( + 39 ) ) * + 96
----
100724
21014

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8745
SELECT ALL + 94 * + - 58 - + COUNT( * ) * - COUNT( * ) DIV - - 24 + - 95
----
-5547

skipif mysql # not compatible
query I rowsort label-8745
SELECT ALL + 94 * + - 58 - + COUNT ( * ) * - COUNT ( * ) / - - 24 + - 95
----
-5547

query I rowsort
SELECT ALL + 35 * - 22 AS col1
----
-770

query I rowsort
SELECT 85 + + 51 AS col1
----
136

onlyif mysql # aggregate syntax: 
query II rowsort label-8748
SELECT 24 * - + COUNT( * ) - ( - 95 ), - 11 - + - 55 AS col0
----
71
44

skipif mysql # not compatible
query II rowsort label-8748
SELECT 24 * - + COUNT ( * ) - ( - 95 ), - 11 - + - 55 AS col0
----
71
44

onlyif mysql # aggregate syntax: 
query I rowsort label-8749
SELECT ALL - ( - COUNT( * ) ) - - - SUM( + + 21 ) AS col2
----
-20

skipif mysql # not compatible
query I rowsort label-8749
SELECT ALL - ( - COUNT ( * ) ) - - - SUM ( + + 21 ) AS col2
----
-20

query III rowsort
SELECT ALL - 73, 70 - 89 AS col2, 84 AS col0
----
-73
-19
84

onlyif mysql # aggregate syntax: 
query I rowsort label-8751
SELECT - COUNT( * ) * + ( - + 90 ) + - COUNT( * ) AS col0
----
89

skipif mysql # not compatible
query I rowsort label-8751
SELECT - COUNT ( * ) * + ( - + 90 ) + - COUNT ( * ) AS col0
----
89

query I rowsort
SELECT 23 * + 5 * - 85 + + - 73
----
-9848

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8753
SELECT 63 + + MAX( - + 77 ) * + 4 + + 30 + 30 DIV - ( + 52 ) + COUNT( * ) - 43 * ( MIN( + 39 ) ) * - 68 * + COALESCE ( 26, CAST( NULL AS SIGNED ) ) + - COUNT( * ) DIV + ( 5 * - COUNT( * ) - - COALESCE ( + COUNT( * ), + 37 * AVG ( 51 ), - 67 ) )
----
2964722

skipif mysql # not compatible
query I rowsort label-8753
SELECT 63 + + MAX ( - + 77 ) * + 4 + + 30 + 30 / - ( + 52 ) + COUNT ( * ) - 43 * ( MIN ( + 39 ) ) * - 68 * + COALESCE ( 26, CAST ( NULL AS INTEGER ) ) + - COUNT ( * ) / + ( 5 * - COUNT ( * ) - - COALESCE ( + COUNT ( * ), + 37 * AVG ( 51 ), - 67 ) )
----
2964722

onlyif mysql # aggregate syntax: 
query II rowsort label-8754
SELECT 24 AS col1, - COUNT( * ) AS col2
----
24
-1

skipif mysql # not compatible
query II rowsort label-8754
SELECT 24 AS col1, - COUNT ( * ) AS col2
----
24
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8755
SELECT ALL - NULLIF ( + - SUM( ALL 72 ), + 40 * + ( - CASE - 56 WHEN - COUNT( * ) THEN NULL ELSE + - 75 END ) + - 87 * COUNT( * ) )
----
72

skipif mysql # not compatible
query I rowsort label-8755
SELECT ALL - NULLIF ( + - SUM ( ALL 72 ), + 40 * + ( - CASE - 56 WHEN - COUNT ( * ) THEN NULL ELSE + - 75 END ) + - 87 * COUNT ( * ) )
----
72

query I rowsort
SELECT 79 * + + 19 * 83 AS col2
----
124583

query I rowsort
SELECT ALL - 51 * - 57
----
2907

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8758
SELECT NULLIF ( - ( 95 ), + 86 + 15 ) * - ( + 97 ) + - COUNT( * ) + - 69 DIV 91 + + + 34 * + 84 + + 47
----
12117

skipif mysql # not compatible
query I rowsort label-8758
SELECT NULLIF ( - ( 95 ), + 86 + 15 ) * - ( + 97 ) + - COUNT ( * ) + - 69 / 91 + + + 34 * + 84 + + 47
----
12117

query I rowsort
SELECT DISTINCT - 42 * + 47
----
-1974

onlyif mysql # aggregate syntax: 
query I rowsort label-8760
SELECT ALL - 24 * - COUNT( * )
----
24

skipif mysql # not compatible
query I rowsort label-8760
SELECT ALL - 24 * - COUNT ( * )
----
24

query I rowsort
SELECT ALL - 51 * 1 AS col1
----
-51

query I rowsort
SELECT ALL + 52 + - - 49 col1
----
101

query I rowsort
SELECT ALL - 25 * 8 AS col2
----
-200

query I rowsort
SELECT 95 + + 40 - - + ( + 77 ) col0
----
212

query I rowsort
SELECT ALL - 85 + + 29
----
-56

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8766
SELECT ALL + - COUNT( * ) DIV + COUNT( DISTINCT 53 )
----
-1

skipif mysql # not compatible
query I rowsort label-8766
SELECT ALL + - COUNT ( * ) / + COUNT ( DISTINCT 53 )
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-8767
SELECT + 50 DIV 14 DIV - + 46
----
0

skipif mysql # not compatible
query I rowsort label-8767
SELECT + 50 / 14 / - + 46
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8768
SELECT 3 + COUNT( - 29 ) - + 69 * - 26 * + ( + 58 ) * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8768
SELECT 3 + COUNT ( - 29 ) - + 69 * - 26 * + ( + 58 ) * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8769
SELECT ALL + COUNT( * ) + - 55
----
-54

skipif mysql # not compatible
query I rowsort label-8769
SELECT ALL + COUNT ( * ) + - 55
----
-54

query II rowsort
SELECT - + 5 AS col1, - ( - 9 ) + - 80 col1
----
-5
-71

onlyif mysql # aggregate syntax: 
query II rowsort label-8771
SELECT DISTINCT - 22 + - 50 * + - 25, + 28 + - COUNT( ALL + 57 ) AS col0
----
1228
27

skipif mysql # not compatible
query II rowsort label-8771
SELECT DISTINCT - 22 + - 50 * + - 25, + 28 + - COUNT ( ALL + 57 ) AS col0
----
1228
27

query I rowsort
SELECT ALL ( 75 ) * - 19 col2
----
-1425

query I rowsort
SELECT + 99 + - 17 - - - 64 * - - 25
----
-1518

query I rowsort
SELECT ALL - + ( + + 71 ) - - 2 AS col1
----
-69

onlyif mysql # aggregate syntax: 
query II rowsort label-8775
SELECT DISTINCT + 87 AS col2, CASE 30 WHEN + 65 * - 40 + + + 46 THEN COUNT( * ) WHEN + + 39 / + 52 * - 78 THEN NULL WHEN COUNT( + + 15 ) THEN NULL ELSE NULL END + - 6
----
87
NULL

skipif mysql # not compatible
query II rowsort label-8775
SELECT DISTINCT + 87 AS col2, CASE 30 WHEN + 65 * - 40 + + + 46 THEN COUNT ( * ) WHEN + + 39 / + 52 * - 78 THEN NULL WHEN COUNT ( + + 15 ) THEN NULL ELSE NULL END + - 6
----
87
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8776
SELECT - COALESCE ( 38, + COUNT( * ) * + 33 + - + COUNT( * ) + 56 + + NULLIF ( 18, + 42 ) )
----
-38

skipif mysql # not compatible
query I rowsort label-8776
SELECT - COALESCE ( 38, + COUNT ( * ) * + 33 + - + COUNT ( * ) + 56 + + NULLIF ( 18, + 42 ) )
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-8777
SELECT ALL + COUNT( * ) - + 52 col0
----
-51

skipif mysql # not compatible
query I rowsort label-8777
SELECT ALL + COUNT ( * ) - + 52 col0
----
-51

query II rowsort
SELECT DISTINCT 82, 39 col1
----
82
39

query I rowsort
SELECT + 66 * 24 AS col1
----
1584

query I rowsort
SELECT 51 + 87 AS col2
----
138

onlyif mysql # aggregate syntax: 
query I rowsort label-8781
SELECT - + ( + MIN( ALL + NULLIF ( 6, - - 64 ) ) )
----
-6

skipif mysql # not compatible
query I rowsort label-8781
SELECT - + ( + MIN ( ALL + NULLIF ( 6, - - 64 ) ) )
----
-6

query I rowsort
SELECT - ( + 63 ) + + - COALESCE ( + 56, + 39 ) + - 47
----
-166

query II rowsort
SELECT + 10, 23 AS col1
----
10
23

onlyif mysql # aggregate syntax: 
query I rowsort label-8784
SELECT 79 * + + 54 + + 89 + + CASE + 94 WHEN + 50 + - - 56 THEN NULL WHEN + 58 THEN - - ( - + COUNT( * ) ) + 7 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8784
SELECT 79 * + + 54 + + 89 + + CASE + 94 WHEN + 50 + - - 56 THEN NULL WHEN + 58 THEN - - ( - + COUNT ( * ) ) + 7 END
----
NULL

query II rowsort
SELECT ALL - 15 col0, - 48 AS col2
----
-15
-48

query I rowsort
SELECT ALL 12 * - 14 * - 76 col1
----
12768

onlyif mysql # aggregate syntax: 
query I rowsort label-8787
SELECT MIN( ALL - 53 ) AS col1
----
-53

skipif mysql # not compatible
query I rowsort label-8787
SELECT MIN ( ALL - 53 ) AS col1
----
-53

query II rowsort
SELECT ALL - 89, - 71 * 5 AS col0
----
-89
-355

onlyif mysql # aggregate syntax: 
query I rowsort label-8789
SELECT CASE + - 44 WHEN - 86 THEN + + 86 WHEN 24 THEN NULL END * - + 34 * + MAX( 73 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8789
SELECT CASE + - 44 WHEN - 86 THEN + + 86 WHEN 24 THEN NULL END * - + 34 * + MAX ( 73 )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8790
SELECT + COUNT( * ) AS col1, MAX( DISTINCT + 16 ) AS col0
----
1
16

skipif mysql # not compatible
query II rowsort label-8790
SELECT + COUNT ( * ) AS col1, MAX ( DISTINCT + 16 ) AS col0
----
1
16

onlyif mysql # aggregate syntax: 
query I rowsort label-8791
SELECT ALL 76 * + COALESCE ( - 71, + - ( - COALESCE ( - 3, - + 48 * + + 30, + + 98 + 46 ) ), + - MIN( 62 ), - 34 ) AS col1
----
-5396

skipif mysql # not compatible
query I rowsort label-8791
SELECT ALL 76 * + COALESCE ( - 71, + - ( - COALESCE ( - 3, - + 48 * + + 30, + + 98 + 46 ) ), + - MIN ( 62 ), - 34 ) AS col1
----
-5396

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-8792
SELECT + 69 AS col0, 19 + + 7 + 92, - 35 DIV + 98 * + - 76 * COUNT( * ) * - 51 AS col0
----
69
118
0

skipif mysql # not compatible
query III rowsort label-8792
SELECT + 69 AS col0, 19 + + 7 + 92, - 35 / + 98 * + - 76 * COUNT ( * ) * - 51 AS col0
----
69
118
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8793
SELECT COUNT( * ) * - COALESCE ( - 71, - + 22 * - COUNT( ALL - CAST( NULL AS SIGNED ) ), - COUNT( * ) ) / - CAST( NULL AS SIGNED ) + 77 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8793
SELECT COUNT ( * ) * - COALESCE ( - 71, - + 22 * - COUNT ( ALL - CAST ( NULL AS INTEGER ) ), - COUNT ( * ) ) / - CAST ( NULL AS INTEGER ) + 77 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8794
SELECT COUNT( * ), + 75 * + 87 AS col2
----
1
6525

skipif mysql # not compatible
query II rowsort label-8794
SELECT COUNT ( * ), + 75 * + 87 AS col2
----
1
6525

onlyif mysql # aggregate syntax: 
query II rowsort label-8795
SELECT 60 * - + 8 col1, ( + ( - CASE - + SUM( + - 65 ) WHEN - + CASE - - 16 WHEN - ( - 98 ) THEN + 68 END THEN NULL WHEN + - COUNT( * ) - + 70 THEN NULL ELSE - 32 + 4 END ) )
----
-480
28

skipif mysql # not compatible
query II rowsort label-8795
SELECT 60 * - + 8 col1, ( + ( - CASE - + SUM ( + - 65 ) WHEN - + CASE - - 16 WHEN - ( - 98 ) THEN + 68 END THEN NULL WHEN + - COUNT ( * ) - + 70 THEN NULL ELSE - 32 + 4 END ) )
----
-480
28

query I rowsort
SELECT 98 * - 78 AS col1
----
-7644

onlyif mysql # aggregate syntax: 
query II rowsort label-8797
SELECT ALL - COUNT( * ), 74 + - COUNT( * ) AS col1
----
-1
73

skipif mysql # not compatible
query II rowsort label-8797
SELECT ALL - COUNT ( * ), 74 + - COUNT ( * ) AS col1
----
-1
73

query II rowsort
SELECT ALL 57 * + 79 AS col0, + 18 AS col0
----
4503
18

onlyif mysql # aggregate syntax: 
query I rowsort label-8799
SELECT ALL + 83 + 47 + 37 + + COUNT( * )
----
168

skipif mysql # not compatible
query I rowsort label-8799
SELECT ALL + 83 + 47 + 37 + + COUNT ( * )
----
168

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8800
SELECT DISTINCT 75 + - NULLIF ( - 78, - ( - - 57 ) + - - 24 * - - 63 * - + CAST( NULL AS SIGNED ) ) AS col0
----
153

skipif mysql # not compatible
query I rowsort label-8800
SELECT DISTINCT 75 + - NULLIF ( - 78, - ( - - 57 ) + - - 24 * - - 63 * - + CAST ( NULL AS INTEGER ) ) AS col0
----
153

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8801
SELECT ALL - 20 + - CAST( + - 47 AS SIGNED ) - + - 17 * - 48 * - 76 AS col0, 55 - NULLIF ( + 51, - 79 )
----
62043
4

skipif mysql # not compatible
query II rowsort label-8801
SELECT ALL - 20 + - CAST ( + - 47 AS INTEGER ) - + - 17 * - 48 * - 76 AS col0, 55 - NULLIF ( + 51, - 79 )
----
62043
4

query I rowsort
SELECT 85 * - 24
----
-2040

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8803
SELECT ALL 51 + + 35 + - NULLIF ( 90, COUNT( * ) ) * + - 41 * + COUNT( ALL + CAST( NULL AS SIGNED ) ) * - MIN( DISTINCT + - 35 ) + 25 + + + MAX( - 75 ) * + - 53 * 21 + 9 - 79
----
83516

skipif mysql # not compatible
query I rowsort label-8803
SELECT ALL 51 + + 35 + - NULLIF ( 90, COUNT ( * ) ) * + - 41 * + COUNT ( ALL + CAST ( NULL AS INTEGER ) ) * - MIN ( DISTINCT + - 35 ) + 25 + + + MAX ( - 75 ) * + - 53 * 21 + 9 - 79
----
83516

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8804
SELECT ALL - COUNT( * ), COALESCE ( - COUNT( * ), - - 32 + - - 26 - - CAST( NULL AS SIGNED ) * 84 )
----
-1
-1

skipif mysql # not compatible
query II rowsort label-8804
SELECT ALL - COUNT ( * ), COALESCE ( - COUNT ( * ), - - 32 + - - 26 - - CAST ( NULL AS INTEGER ) * 84 )
----
-1
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-8805
SELECT DISTINCT - 27 AS col0, 22 * + 57 * ( - COUNT( * ) ) col1
----
-27
-1254

skipif mysql # not compatible
query II rowsort label-8805
SELECT DISTINCT - 27 AS col0, 22 * + 57 * ( - COUNT ( * ) ) col1
----
-27
-1254

onlyif mysql # aggregate syntax: 
query I rowsort label-8806
SELECT ALL + 47 + COUNT( * )
----
48

skipif mysql # not compatible
query I rowsort label-8806
SELECT ALL + 47 + COUNT ( * )
----
48

query I rowsort
SELECT - 21 * + 13
----
-273

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8808
SELECT ALL + - CAST( NULL AS SIGNED ) * + COUNT( * ) * - + ( + 66 ) / ( + 31 ) + ( - SUM( DISTINCT + + 47 ) ) - + + 73
----
NULL

skipif mysql # not compatible
query I rowsort label-8808
SELECT ALL + - CAST ( NULL AS INTEGER ) * + COUNT ( * ) * - + ( + 66 ) / ( + 31 ) + ( - SUM ( DISTINCT + + 47 ) ) - + + 73
----
NULL

query I rowsort
SELECT - - 73 - + 53
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-8810
SELECT - MAX( ALL + 9 ) col2
----
-9

skipif mysql # not compatible
query I rowsort label-8810
SELECT - MAX ( ALL + 9 ) col2
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-8811
SELECT ALL SUM( + 99 )
----
99

skipif mysql # not compatible
query I rowsort label-8811
SELECT ALL SUM ( + 99 )
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8812
SELECT ALL - COUNT( DISTINCT + ( - 29 ) ) - - + 57
----
56

skipif mysql # not compatible
query I rowsort label-8812
SELECT ALL - COUNT ( DISTINCT + ( - 29 ) ) - - + 57
----
56

onlyif mysql # aggregate syntax: 
query II rowsort label-8813
SELECT ALL COUNT( * ) AS col0, CASE + + 50 WHEN + 7 THEN 19 WHEN - 31 THEN - 45 END / + 55 AS col1
----
1
NULL

skipif mysql # not compatible
query II rowsort label-8813
SELECT ALL COUNT ( * ) AS col0, CASE + + 50 WHEN + 7 THEN 19 WHEN - 31 THEN - 45 END / + 55 AS col1
----
1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8814
SELECT ALL - CASE - + 87 WHEN - NULLIF ( + + 58, 33 ) + + 21 * + + 71 * - 20 THEN 23 ELSE + - MIN( + 32 ) * 65 + COUNT( * ) END
----
2079

skipif mysql # not compatible
query I rowsort label-8814
SELECT ALL - CASE - + 87 WHEN - NULLIF ( + + 58, 33 ) + + 21 * + + 71 * - 20 THEN 23 ELSE + - MIN ( + 32 ) * 65 + COUNT ( * ) END
----
2079

onlyif mysql # aggregate syntax: 
query I rowsort label-8815
SELECT DISTINCT + + 72 * - COUNT( * ) AS col1
----
-72

skipif mysql # not compatible
query I rowsort label-8815
SELECT DISTINCT + + 72 * - COUNT ( * ) AS col1
----
-72

query I rowsort
SELECT ALL 37 - + 56 AS col2
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-8817
SELECT - - 79 * MAX( DISTINCT 84 ) + + + ( + 0 ) AS col2
----
6636

skipif mysql # not compatible
query I rowsort label-8817
SELECT - - 79 * MAX ( DISTINCT 84 ) + + + ( + 0 ) AS col2
----
6636

onlyif mysql # aggregate syntax: 
query I rowsort label-8818
SELECT - - 74 * ( 25 ) - + COUNT( * )
----
1849

skipif mysql # not compatible
query I rowsort label-8818
SELECT - - 74 * ( 25 ) - + COUNT ( * )
----
1849

onlyif mysql # aggregate syntax: 
query I rowsort label-8819
SELECT - CASE + + AVG ( - 59 ) WHEN + ( ( 49 ) ) THEN NULL ELSE 35 * + MAX( DISTINCT 25 ) + + + 27 + + + 73 + + 53 END + - 11 col2
----
-1039

skipif mysql # not compatible
query I rowsort label-8819
SELECT - CASE + + AVG ( - 59 ) WHEN + ( ( 49 ) ) THEN NULL ELSE 35 * + MAX ( DISTINCT 25 ) + + + 27 + + + 73 + + 53 END + - 11 col2
----
-1039

onlyif mysql # DIV for integer division: 
query I rowsort label-8820
SELECT - 20 DIV - 24 * - - 86 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8820
SELECT - 20 / - 24 * - - 86 AS col0
----
0

query I rowsort
SELECT - 64 + + 21 AS col2
----
-43

query I rowsort
SELECT ALL - 77 - + 5 + + + 19 AS col1
----
-63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8823
SELECT - CASE ( - - MIN( DISTINCT + + 7 ) ) WHEN - - 8 * COUNT( * ) THEN + 84 / 25 * + 20 - + 41 + - 71 + + 99 WHEN COALESCE ( + 84, + 39 + + 17 * - 74, CASE CAST( NULL AS SIGNED ) WHEN - 98 * - SUM( ALL 39 ) THEN - 57 + 84 WHEN 68 + COUNT( * ) / 8 THEN NULL WHEN 38 THEN + 29 * 68 + 55 * 73 ELSE NULL END + MAX( DISTINCT 29 ) ) THEN NULL END + 2 * - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8823
SELECT - CASE ( - - MIN ( DISTINCT + + 7 ) ) WHEN - - 8 * COUNT ( * ) THEN + 84 / 25 * + 20 - + 41 + - 71 + + 99 WHEN COALESCE ( + 84, + 39 + + 17 * - 74, CASE CAST ( NULL AS INTEGER ) WHEN - 98 * - SUM ( ALL 39 ) THEN - 57 + 84 WHEN 68 + COUNT ( * ) / 8 THEN NULL WHEN 38 THEN + 29 * 68 + 55 * 73 ELSE NULL END + MAX ( DISTINCT 29 ) ) THEN NULL END + 2 * - COUNT ( * )
----
NULL

query I rowsort
SELECT ALL - 27 * + 53 AS col0
----
-1431

query I rowsort
SELECT - + 22 + 42 AS col1
----
20

query I rowsort
SELECT - 18 + 33 * + + ( + 14 ) * + 3 + - - 2
----
1370

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8827
SELECT COALESCE ( - 89, - ( 64 ) ) * - CAST( - 32 AS SIGNED ) * - + 83 + 65 DIV - - ( - 64 ) col2
----
236383

skipif mysql # not compatible
query I rowsort label-8827
SELECT COALESCE ( - 89, - ( 64 ) ) * - CAST ( - 32 AS INTEGER ) * - + 83 + 65 / - - ( - 64 ) col2
----
236383

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8828
SELECT ALL CAST( NULL AS SIGNED ) * 43 + + - 37
----
NULL

skipif mysql # not compatible
query I rowsort label-8828
SELECT ALL CAST ( NULL AS INTEGER ) * 43 + + - 37
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8829
SELECT AVG ( + COALESCE ( ( + 7 ), + 70 ) ) / + - 43 + + + AVG ( CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8829
SELECT AVG ( + COALESCE ( ( + 7 ), + 70 ) ) / + - 43 + + + AVG ( CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8830
SELECT ( - ( + 38 ) ) * 3 + 2 + + 19 - - MIN( ALL 19 )
----
-74

skipif mysql # not compatible
query I rowsort label-8830
SELECT ( - ( + 38 ) ) * 3 + 2 + + 19 - - MIN ( ALL 19 )
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-8831
SELECT + COUNT( * ) * + + 86 * - 16 + + + 36 + 78 - + 9 + + 26 AS col2
----
-1245

skipif mysql # not compatible
query I rowsort label-8831
SELECT + COUNT ( * ) * + + 86 * - 16 + + + 36 + 78 - + 9 + + 26 AS col2
----
-1245

onlyif mysql # aggregate syntax: 
query II rowsort label-8832
SELECT + SUM( DISTINCT + 49 ) col1, + 83
----
49
83

skipif mysql # not compatible
query II rowsort label-8832
SELECT + SUM ( DISTINCT + 49 ) col1, + 83
----
49
83

query I rowsort
SELECT + ( + + 41 ) * + 20 + - ( + 28 )
----
792

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8834
SELECT + 40 + - 71 + ( + - 26 ) * 82 AS col2, COUNT( * ) * - COUNT( * ) DIV - 88 col0
----
-2163
0

skipif mysql # not compatible
query II rowsort label-8834
SELECT + 40 + - 71 + ( + - 26 ) * 82 AS col2, COUNT ( * ) * - COUNT ( * ) / - 88 col0
----
-2163
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8835
SELECT ALL COUNT( DISTINCT - - ( - - 74 ) ) * - 44 + - COUNT( * ) AS col2
----
-45

skipif mysql # not compatible
query I rowsort label-8835
SELECT ALL COUNT ( DISTINCT - - ( - - 74 ) ) * - 44 + - COUNT ( * ) AS col2
----
-45

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8836
SELECT ALL 60 * + - CAST( NULL AS DECIMAL ) + - 6 * - 55 * + COUNT( * ) + + 80
----
NULL

skipif mysql # not compatible
query I rowsort label-8836
SELECT ALL 60 * + - CAST ( NULL AS REAL ) + - 6 * - 55 * + COUNT ( * ) + + 80
----
NULL

query I rowsort
SELECT + 72 * + 83 + - 72 AS col2
----
5904

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8838
SELECT + ( - CAST( 23 AS SIGNED ) ) DIV MAX( - 12 )
----
1

skipif mysql # not compatible
query I rowsort label-8838
SELECT + ( - CAST ( 23 AS INTEGER ) ) / MAX ( - 12 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8839
SELECT DISTINCT 69 DIV COALESCE ( 58, + 85 * + - 53, - 27 DIV + CAST( + 36 AS SIGNED ) DIV 69 + + 55 + + - 0 DIV + COUNT( * ) + - + ( - CAST( NULL AS SIGNED ) ) + - - 93 * - COUNT( * ) * - NULLIF ( + 74, 20 ) + 65 )
----
1

skipif mysql # not compatible
query I rowsort label-8839
SELECT DISTINCT 69 / COALESCE ( 58, + 85 * + - 53, - 27 / + CAST ( + 36 AS INTEGER ) / 69 + + 55 + + - 0 / + COUNT ( * ) + - + ( - CAST ( NULL AS INTEGER ) ) + - - 93 * - COUNT ( * ) * - NULLIF ( + 74, 20 ) + 65 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8840
SELECT ALL 28 * 29 + - + COUNT( * )
----
811

skipif mysql # not compatible
query I rowsort label-8840
SELECT ALL 28 * 29 + - + COUNT ( * )
----
811

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8841
SELECT ALL + ( + + CAST( NULL AS SIGNED ) ) * + 50 - - 9 * - 1
----
NULL

skipif mysql # not compatible
query I rowsort label-8841
SELECT ALL + ( + + CAST ( NULL AS INTEGER ) ) * + 50 - - 9 * - 1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8842
SELECT ALL COUNT( * ) * - 72
----
-72

skipif mysql # not compatible
query I rowsort label-8842
SELECT ALL COUNT ( * ) * - 72
----
-72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8843
SELECT + ( MIN( - 58 ) ) + - - SUM( ALL - ( CAST( - 88 AS SIGNED ) ) ), COUNT( * ) AS col0
----
30
1

skipif mysql # not compatible
query II rowsort label-8843
SELECT + ( MIN ( - 58 ) ) + - - SUM ( ALL - ( CAST ( - 88 AS INTEGER ) ) ), COUNT ( * ) AS col0
----
30
1

query II rowsort
SELECT + COALESCE ( 55, NULLIF ( + + 24, - COALESCE ( - 24, + - 65 ) ), - - 89 ) AS col2, + 78 AS col0
----
55
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8845
SELECT CAST( - 96 AS SIGNED ) * - 21 * + - 64 + - NULLIF ( 20, COUNT( * ) + - 46 ) AS col2
----
-129044

skipif mysql # not compatible
query I rowsort label-8845
SELECT CAST ( - 96 AS INTEGER ) * - 21 * + - 64 + - NULLIF ( 20, COUNT ( * ) + - 46 ) AS col2
----
-129044

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8846
SELECT DISTINCT + + 7 * + ( + 43 ) * - CAST( NULL AS SIGNED ) / + 88 / + COUNT( * ) * - 95 + 50 / + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8846
SELECT DISTINCT + + 7 * + ( + 43 ) * - CAST ( NULL AS INTEGER ) / + 88 / + COUNT ( * ) * - 95 + 50 / + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8847
SELECT + + CASE + - AVG ( ALL - 95 ) WHEN + 53 + - 34 THEN - - 72 / 94 + + COUNT( * ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8847
SELECT + + CASE + - AVG ( ALL - 95 ) WHEN + 53 + - 34 THEN - - 72 / 94 + + COUNT ( * ) END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8848
SELECT + 54 + + NULLIF ( - + COUNT( * ), COUNT( * ) ) + 36
----
89

skipif mysql # not compatible
query I rowsort label-8848
SELECT + 54 + + NULLIF ( - + COUNT ( * ), COUNT ( * ) ) + 36
----
89

query I rowsort
SELECT DISTINCT - 1 * - + 51 - - - 35 AS col0
----
16

onlyif mysql # DIV for integer division: 
query I rowsort label-8850
SELECT + ( + 30 ) + - 29 + - 17 DIV + + 57 col0
----
1

skipif mysql # not compatible
query I rowsort label-8850
SELECT + ( + 30 ) + - 29 + - 17 / + + 57 col0
----
1

query I rowsort
SELECT DISTINCT - 37 * + + 47 - - 29 col1
----
-1710

query I rowsort
SELECT - 82 + + 17 * - 64 col0
----
-1170

query I rowsort
SELECT - - 86 + + 85 * - 22 + - 47
----
-1831

onlyif mysql # aggregate syntax: 
query I rowsort label-8854
SELECT - 9 * SUM( DISTINCT - - 39 ) AS col2
----
-351

skipif mysql # not compatible
query I rowsort label-8854
SELECT - 9 * SUM ( DISTINCT - - 39 ) AS col2
----
-351

onlyif mysql # aggregate syntax: 
query I rowsort label-8855
SELECT - - MIN( + 83 ) AS col0
----
83

skipif mysql # not compatible
query I rowsort label-8855
SELECT - - MIN ( + 83 ) AS col0
----
83

query I rowsort
SELECT ALL + + 69 * 83
----
5727

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8857
SELECT DISTINCT + 90 * + 70 AS col0, - 71 + CAST( NULL AS SIGNED ) + 77 * COALESCE ( + CAST( - - 10 AS SIGNED ), + MAX( ALL ( 47 ) ) + - 36, + 4 ) AS col0
----
6300
NULL

skipif mysql # not compatible
query II rowsort label-8857
SELECT DISTINCT + 90 * + 70 AS col0, - 71 + CAST ( NULL AS INTEGER ) + 77 * COALESCE ( + CAST ( - - 10 AS INTEGER ), + MAX ( ALL ( 47 ) ) + - 36, + 4 ) AS col0
----
6300
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8858
SELECT - + ( + COUNT( 8 ) ) * - - 76 + + - ( + COUNT( * ) ) + - - 6 - ( 13 ) * 47 AS col2
----
-682

skipif mysql # not compatible
query I rowsort label-8858
SELECT - + ( + COUNT ( 8 ) ) * - - 76 + + - ( + COUNT ( * ) ) + - - 6 - ( 13 ) * 47 AS col2
----
-682

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8859
SELECT DISTINCT + CAST( NULL AS DECIMAL ) * + COALESCE ( 75, 9, + 94 + + 60 * 10 + 95 / - - SUM( + - ( - 74 ) ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8859
SELECT DISTINCT + CAST ( NULL AS REAL ) * + COALESCE ( 75, 9, + 94 + + 60 * 10 + 95 / - - SUM ( + - ( - 74 ) ) ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8860
SELECT ALL CAST( - + 88 AS SIGNED ) col2
----
-88

skipif mysql # not compatible
query I rowsort label-8860
SELECT ALL CAST ( - + 88 AS INTEGER ) col2
----
-88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8861
SELECT - ( 71 ) * 35 / 21 + + 0 + 5 * - ( CAST( - 40 AS SIGNED ) ) + + 28 * + CASE 38 WHEN - - 50 THEN - - 72 WHEN - 74 * + + COALESCE ( - CAST( - 70 AS SIGNED ), - 79, + NULLIF ( - 64, + 61 + - 40 * - ( CAST( + 60 AS SIGNED ) ) ) ) * 47 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8861
SELECT - ( 71 ) * 35 / 21 + + 0 + 5 * - ( CAST ( - 40 AS INTEGER ) ) + + 28 * + CASE 38 WHEN - - 50 THEN - - 72 WHEN - 74 * + + COALESCE ( - CAST ( - 70 AS INTEGER ), - 79, + NULLIF ( - 64, + 61 + - 40 * - ( CAST ( + 60 AS INTEGER ) ) ) ) * 47 THEN NULL END
----
NULL

query I rowsort
SELECT ALL - 28 + + + 36
----
8

query I rowsort
SELECT ALL + 64 + + - 96 AS col2
----
-32

query II rowsort
SELECT 5 AS col0, + 21
----
5
21

onlyif mysql # aggregate syntax: 
query I rowsort label-8865
SELECT - SUM( DISTINCT - 1 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8865
SELECT - SUM ( DISTINCT - 1 ) AS col0
----
1

query I rowsort
SELECT ALL ( - 28 ) AS col0
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-8867
SELECT - COUNT( * ) * ( + 50 ) * 37 AS col1
----
-1850

skipif mysql # not compatible
query I rowsort label-8867
SELECT - COUNT ( * ) * ( + 50 ) * 37 AS col1
----
-1850

query I rowsort
SELECT - 64 * 22
----
-1408

onlyif mysql # aggregate syntax: 
query I rowsort label-8869
SELECT DISTINCT + NULLIF ( - 63, 5 * + SUM( 10 ) ) AS col2
----
-63

skipif mysql # not compatible
query I rowsort label-8869
SELECT DISTINCT + NULLIF ( - 63, 5 * + SUM ( 10 ) ) AS col2
----
-63

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8870
SELECT DISTINCT CAST( NULL AS SIGNED ) / - 98 / + 89 + - - 19 AS col1, 54 AS col2
----
NULL
54

skipif mysql # not compatible
query II rowsort label-8870
SELECT DISTINCT CAST ( NULL AS INTEGER ) / - 98 / + 89 + - - 19 AS col1, 54 AS col2
----
NULL
54

onlyif mysql # DIV for integer division: 
query I rowsort label-8871
SELECT ALL 87 DIV + 86 + 49
----
50

skipif mysql # not compatible
query I rowsort label-8871
SELECT ALL 87 / + 86 + 49
----
50

query I rowsort
SELECT - 28 * - 73
----
2044

query I rowsort
SELECT DISTINCT + COALESCE ( 85, + 59 * - 27 )
----
85

query II rowsort
SELECT ALL COALESCE ( ( ( + + 42 ) ), 35 ) * - 50, 17 AS col2
----
-2100
17

query II rowsort
SELECT DISTINCT + 62 AS col1, + COALESCE ( - 95, - ( 67 ), + + NULLIF ( - 99, + 64 ) ) AS col0
----
62
-95

onlyif mysql # DIV for integer division: 
query I rowsort label-8876
SELECT + COALESCE ( + 94, - - 52, 78 DIV 74 ) col1
----
94

skipif mysql # not compatible
query I rowsort label-8876
SELECT + COALESCE ( + 94, - - 52, 78 / 74 ) col1
----
94

onlyif mysql # DIV for integer division: 
query I rowsort label-8877
SELECT ALL ( + 91 ) DIV + 46 + - 11 col1
----
-10

skipif mysql # not compatible
query I rowsort label-8877
SELECT ALL ( + 91 ) / + 46 + - 11 col1
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-8878
SELECT - 92 - + - COUNT( * )
----
-91

skipif mysql # not compatible
query I rowsort label-8878
SELECT - 92 - + - COUNT ( * )
----
-91

query II rowsort
SELECT + 34, ( - 21 ) col2
----
34
-21

query I rowsort
SELECT ALL + 2 + - - 78 AS col0
----
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8881
SELECT 78 + 2 + 53 + 30 * + COUNT( * ) * NULLIF ( + + 95, + - CAST( NULL AS SIGNED ) )
----
2983

skipif mysql # not compatible
query I rowsort label-8881
SELECT 78 + 2 + 53 + 30 * + COUNT ( * ) * NULLIF ( + + 95, + - CAST ( NULL AS INTEGER ) )
----
2983

onlyif mysql # aggregate syntax: 
query I rowsort label-8882
SELECT - 93 * - COALESCE ( - - 33, MIN( 84 ) ) + + 45 col0
----
3114

skipif mysql # not compatible
query I rowsort label-8882
SELECT - 93 * - COALESCE ( - - 33, MIN ( 84 ) ) + + 45 col0
----
3114

onlyif mysql # aggregate syntax: 
query I rowsort label-8883
SELECT COUNT( * ) + + - 60 * + 1 AS col2
----
-59

skipif mysql # not compatible
query I rowsort label-8883
SELECT COUNT ( * ) + + - 60 * + 1 AS col2
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-8884
SELECT ALL - - SUM( - + 1 )
----
-1

skipif mysql # not compatible
query I rowsort label-8884
SELECT ALL - - SUM ( - + 1 )
----
-1

query II rowsort
SELECT ALL - 60 AS col0, 51
----
-60
51

query I rowsort
SELECT + 43 - 64 * 65
----
-4117

query I rowsort
SELECT 50 + + 10
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-8888
SELECT - 66 * + MIN( + + 56 ) + + 54
----
-3642

skipif mysql # not compatible
query I rowsort label-8888
SELECT - 66 * + MIN ( + + 56 ) + + 54
----
-3642

onlyif mysql # DIV for integer division: 
query I rowsort label-8889
SELECT ALL - 1 DIV - 26
----
0

skipif mysql # not compatible
query I rowsort label-8889
SELECT ALL - 1 / - 26
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8890
SELECT - + NULLIF ( - COUNT( * ), + 40 + + + 79 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8890
SELECT - + NULLIF ( - COUNT ( * ), + 40 + + + 79 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8891
SELECT COUNT( * ) + - + 36 AS col0
----
-35

skipif mysql # not compatible
query I rowsort label-8891
SELECT COUNT ( * ) + - + 36 AS col0
----
-35

onlyif mysql # DIV for integer division: 
query I rowsort label-8892
SELECT + 93 DIV + - 58
----
-1

skipif mysql # not compatible
query I rowsort label-8892
SELECT + 93 / + - 58
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8893
SELECT ALL - 52 * - 11 * MAX( + - 65 ) * + + 21
----
-780780

skipif mysql # not compatible
query I rowsort label-8893
SELECT ALL - 52 * - 11 * MAX ( + - 65 ) * + + 21
----
-780780

onlyif mysql # aggregate syntax: 
query I rowsort label-8894
SELECT + 32 * + COUNT( * )
----
32

skipif mysql # not compatible
query I rowsort label-8894
SELECT + 32 * + COUNT ( * )
----
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8895
SELECT ALL CASE + 65 WHEN - - CAST( NULL AS SIGNED ) / 11 THEN 82 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8895
SELECT ALL CASE + 65 WHEN - - CAST ( NULL AS INTEGER ) / 11 THEN 82 END
----
NULL

query II rowsort
SELECT DISTINCT 84 AS col0, + 73 + 47
----
84
120

onlyif mysql # aggregate syntax: 
query II rowsort label-8897
SELECT - CASE + 57 WHEN + + ( - 9 ) THEN NULL WHEN 90 THEN + 72 * 73 + COUNT( * ) END * 19 AS col2, COUNT( * ) AS col1
----
NULL
1

skipif mysql # not compatible
query II rowsort label-8897
SELECT - CASE + 57 WHEN + + ( - 9 ) THEN NULL WHEN 90 THEN + 72 * 73 + COUNT ( * ) END * 19 AS col2, COUNT ( * ) AS col1
----
NULL
1

onlyif mysql # DIV for integer division: 
query I rowsort label-8898
SELECT DISTINCT - + 29 DIV + - 65
----
0

skipif mysql # not compatible
query I rowsort label-8898
SELECT DISTINCT - + 29 / + - 65
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8899
SELECT DISTINCT CASE - NULLIF ( - 70, - - 98 + 84 ) WHEN + 5 THEN 24 + MIN( + 58 ) + 9 + 48 - + 65 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8899
SELECT DISTINCT CASE - NULLIF ( - 70, - - 98 + 84 ) WHEN + 5 THEN 24 + MIN ( + 58 ) + 9 + 48 - + 65 END
----
NULL

query I rowsort
SELECT DISTINCT + - 17 + 43 AS col1
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-8901
SELECT + NULLIF ( + - 76, - SUM( DISTINCT + 13 ) ) + + - 81
----
-157

skipif mysql # not compatible
query I rowsort label-8901
SELECT + NULLIF ( + - 76, - SUM ( DISTINCT + 13 ) ) + + - 81
----
-157

onlyif mysql # aggregate syntax: 
query I rowsort label-8902
SELECT 73 * + + COUNT( * ) AS col0
----
73

skipif mysql # not compatible
query I rowsort label-8902
SELECT 73 * + + COUNT ( * ) AS col0
----
73

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8903
SELECT CAST( NULL AS DECIMAL ) + - 31 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8903
SELECT CAST ( NULL AS REAL ) + - 31 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8904
SELECT DISTINCT - 6 * - + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8904
SELECT DISTINCT - 6 * - + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8905
SELECT 63 + - 29, COUNT( * ) - + + 23 col0
----
34
-22

skipif mysql # not compatible
query II rowsort label-8905
SELECT 63 + - 29, COUNT ( * ) - + + 23 col0
----
34
-22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8906
SELECT 98 * CAST( + COUNT( * ) AS SIGNED )
----
98

skipif mysql # not compatible
query I rowsort label-8906
SELECT 98 * CAST ( + COUNT ( * ) AS INTEGER )
----
98

query I rowsort
SELECT ALL - 97 + - 49 + + 49 + + 40 - - + ( - 84 ) * - - 78 AS col0
----
-6609

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8908
SELECT 69 + + 19, 11 * + 11 + - - CASE - 53 WHEN + 61 THEN - 21 - - 44 + + 26 * + + NULLIF ( - + COALESCE ( - 8, - + 33, - - 38 ), + MAX( ALL - - CAST( NULL AS SIGNED ) ) ) ELSE NULL END + 56 - + 95 * 94 * - 42 AS col0
----
88
NULL

skipif mysql # not compatible
query II rowsort label-8908
SELECT 69 + + 19, 11 * + 11 + - - CASE - 53 WHEN + 61 THEN - 21 - - 44 + + 26 * + + NULLIF ( - + COALESCE ( - 8, - + 33, - - 38 ), + MAX ( ALL - - CAST ( NULL AS INTEGER ) ) ) ELSE NULL END + 56 - + 95 * 94 * - 42 AS col0
----
88
NULL

query I rowsort
SELECT ALL 58 * - 37 * 77
----
-165242

query I rowsort
SELECT ALL + 33 + ( 8 ) AS col1
----
41

query I rowsort
SELECT 79 + - 5 AS col1
----
74

query I rowsort
SELECT DISTINCT 93 * 48
----
4464

onlyif mysql # aggregate syntax: 
query I rowsort label-8913
SELECT DISTINCT - ( MAX( - ( 13 ) ) )
----
13

skipif mysql # not compatible
query I rowsort label-8913
SELECT DISTINCT - ( MAX ( - ( 13 ) ) )
----
13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8914
SELECT 98 + - + CAST( - 94 AS SIGNED ) * - + 28 AS col1
----
-2534

skipif mysql # not compatible
query I rowsort label-8914
SELECT 98 + - + CAST ( - 94 AS INTEGER ) * - + 28 AS col1
----
-2534

onlyif mysql # aggregate syntax: 
query I rowsort label-8915
SELECT 98 * - + 84 * - 94 + - + COUNT( * ) AS col1
----
773807

skipif mysql # not compatible
query I rowsort label-8915
SELECT 98 * - + 84 * - 94 + - + COUNT ( * ) AS col1
----
773807

query I rowsort
SELECT DISTINCT - ( 0 ) col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8917
SELECT - 89 DIV + + 18 + + 97
----
93

skipif mysql # not compatible
query I rowsort label-8917
SELECT - 89 / + + 18 + + 97
----
93

onlyif mysql # DIV for integer division: 
query I rowsort label-8918
SELECT DISTINCT - 43 DIV + - 52 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8918
SELECT DISTINCT - 43 / + - 52 AS col0
----
0

query I rowsort
SELECT ALL - 34 - - 54
----
20

query I rowsort
SELECT - - 14 * - 98 + - 70 * 98 * 16
----
-111132

onlyif mysql # DIV for integer division: 
query II rowsort label-8921
SELECT - 24 DIV + 36 + 7 + - + 90, 96 AS col2
----
-83
96

skipif mysql # not compatible
query II rowsort label-8921
SELECT - 24 / + 36 + 7 + - + 90, 96 AS col2
----
-83
96

onlyif mysql # aggregate syntax: 
query I rowsort label-8922
SELECT + MAX( ALL - 22 ) * - + CASE WHEN NOT - NULLIF ( + 83, + 84 ) IS NULL THEN NULL WHEN NOT 17 NOT IN ( - 74 + - COUNT( * ), - 97, + + 78 / CASE + MIN( + + 40 ) WHEN 80 THEN NULL ELSE - 76 + - + COUNT( * ) END * + 9 ) THEN SUM( DISTINCT - 53 ) ELSE NULL END + NULLIF ( - AVG ( DISTINCT - 60 ) + 40, + 42 * 72 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8922
SELECT + MAX ( ALL - 22 ) * - + CASE WHEN NOT - NULLIF ( + 83, + 84 ) IS NULL THEN NULL WHEN NOT 17 NOT IN ( - 74 + - COUNT ( * ), - 97, + + 78 / CASE + MIN ( + + 40 ) WHEN 80 THEN NULL ELSE - 76 + - + COUNT ( * ) END * + 9 ) THEN SUM ( DISTINCT - 53 ) ELSE NULL END + NULLIF ( - AVG ( DISTINCT - 60 ) + 40, + 42 * 72 ) AS col1
----
NULL

query I rowsort
SELECT 52 * + - NULLIF ( - 16, - 82 + - 12 / - - 7 )
----
832

query II rowsort
SELECT + 64 * - 55 col1, - 57
----
-3520
-57

query I rowsort
SELECT - 73 - 53 * + - 65 AS col2
----
3372

query I rowsort
SELECT DISTINCT - + 77 * - - 49 + - + 25
----
-3798

query I rowsort
SELECT ALL - + ( - - 37 )
----
-37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8928
SELECT CAST( NULL AS SIGNED ) * 39 + + 95 + 77 + - + MIN( DISTINCT 62 ) - - 53 * + NULLIF ( + 1, - 30 ) + - COALESCE ( 73, - - COUNT( * ), - ( 80 ) + + 22 ) - + - 50 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8928
SELECT CAST ( NULL AS INTEGER ) * 39 + + 95 + 77 + - + MIN ( DISTINCT 62 ) - - 53 * + NULLIF ( + 1, - 30 ) + - COALESCE ( 73, - - COUNT ( * ), - ( 80 ) + + 22 ) - + - 50 AS col0
----
NULL

query I rowsort
SELECT - 30 * - ( - + 9 )
----
-270

onlyif mysql # aggregate syntax: 
query I rowsort label-8930
SELECT - MAX( DISTINCT + - 73 ) * + 94 + 15 - 21 + - 55 * MAX( DISTINCT - 89 ) * + 49 AS col2
----
246711

skipif mysql # not compatible
query I rowsort label-8930
SELECT - MAX ( DISTINCT + - 73 ) * + 94 + 15 - 21 + - 55 * MAX ( DISTINCT - 89 ) * + 49 AS col2
----
246711

query I rowsort
SELECT DISTINCT - - 85 * + - 36 AS col1
----
-3060

query II rowsort
SELECT 51 + - 55, 47 AS col1
----
-4
47

onlyif mysql # aggregate syntax: 
query II rowsort label-8933
SELECT ALL MIN( - 40 ) * - 7 * - - 63 AS col2, + COUNT( * )
----
17640
1

skipif mysql # not compatible
query II rowsort label-8933
SELECT ALL MIN ( - 40 ) * - 7 * - - 63 AS col2, + COUNT ( * )
----
17640
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8934
SELECT ALL - - 10 + + 19 - - COUNT( * ) * - - 61 AS col0, CAST( - - 39 AS SIGNED ) AS col1
----
90
39

skipif mysql # not compatible
query II rowsort label-8934
SELECT ALL - - 10 + + 19 - - COUNT ( * ) * - - 61 AS col0, CAST ( - - 39 AS INTEGER ) AS col1
----
90
39

query I rowsort
SELECT DISTINCT 54 + 91 * - 75 AS col2
----
-6771

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8936
SELECT + ( + 36 ) * 74 + CASE + CAST( NULL AS SIGNED ) WHEN CASE - 21 WHEN - + 78 THEN NULL WHEN + - NULLIF ( + 85, - 12 ) THEN - + 21 ELSE + 87 END THEN + 36 + 25 + 70 WHEN + - CASE - - 14 WHEN + + ( 29 ) THEN - 71 END * 9 THEN NULL END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8936
SELECT + ( + 36 ) * 74 + CASE + CAST ( NULL AS INTEGER ) WHEN CASE - 21 WHEN - + 78 THEN NULL WHEN + - NULLIF ( + 85, - 12 ) THEN - + 21 ELSE + 87 END THEN + 36 + 25 + 70 WHEN + - CASE - - 14 WHEN + + ( 29 ) THEN - 71 END * 9 THEN NULL END col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8937
SELECT DISTINCT 12 + - COUNT( * ) - + 88 + - 87 * + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8937
SELECT DISTINCT 12 + - COUNT ( * ) - + 88 + - 87 * + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8938
SELECT ALL 47 + + 5 + + 14 * - ( - COUNT( * ) ) / + + CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8938
SELECT ALL 47 + + 5 + + 14 * - ( - COUNT ( * ) ) / + + CAST ( NULL AS INTEGER ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8939
SELECT MIN( 98 ) * - 48 AS col0
----
-4704

skipif mysql # not compatible
query I rowsort label-8939
SELECT MIN ( 98 ) * - 48 AS col0
----
-4704

query I rowsort
SELECT ALL 58 * + 94
----
5452

query I rowsort
SELECT ALL 17 * 70 AS col2
----
1190

query I rowsort
SELECT 79 * COALESCE ( - + 36, 10, 83, + 92 ) * + + COALESCE ( 83, + + 47, + + 4 * - 57 ) AS col2
----
-236052

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8943
SELECT ALL MAX( 35 ) DIV + + 2 AS col2
----
17

skipif mysql # not compatible
query I rowsort label-8943
SELECT ALL MAX ( 35 ) / + + 2 AS col2
----
17

query I rowsort
SELECT ALL 11 - + 74 * + + 97
----
-7167

query I rowsort
SELECT ( 46 ) * - 47 AS col0
----
-2162

onlyif mysql # aggregate syntax: 
query I rowsort label-8946
SELECT - COALESCE ( ( ( + - ( + + COUNT( * ) ) ) ), NULLIF ( + + 31, + COUNT( - NULLIF ( - ( + 55 ), - 32 / + 53 ) ) ) )
----
1

skipif mysql # not compatible
query I rowsort label-8946
SELECT - COALESCE ( ( ( + - ( + + COUNT ( * ) ) ) ), NULLIF ( + + 31, + COUNT ( - NULLIF ( - ( + 55 ), - 32 / + 53 ) ) ) )
----
1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8947
SELECT + 93 - + NULLIF ( + - 81, - 78 * - + CASE COUNT( - 84 ) WHEN - 95 THEN NULL WHEN - MIN( 46 ) * + - 33 + CASE + 85 WHEN CAST( + COALESCE ( - 13, + MAX( DISTINCT + 81 ) * - 99 * 67 - + COALESCE ( 95, - 63 ) / COUNT( * ) ) AS DECIMAL ) THEN NULL WHEN 52 * + 91 THEN NULL WHEN 78 * + 24 THEN 48 * COUNT( * ) ELSE NULL END THEN NULL ELSE 90 * 66 END ) + NULLIF ( + 67, + 65 ) * - 37
----
-2305

skipif mysql # not compatible
query I rowsort label-8947
SELECT + 93 - + NULLIF ( + - 81, - 78 * - + CASE COUNT ( - 84 ) WHEN - 95 THEN NULL WHEN - MIN ( 46 ) * + - 33 + CASE + 85 WHEN CAST ( + COALESCE ( - 13, + MAX ( DISTINCT + 81 ) * - 99 * 67 - + COALESCE ( 95, - 63 ) / COUNT ( * ) ) AS REAL ) THEN NULL WHEN 52 * + 91 THEN NULL WHEN 78 * + 24 THEN 48 * COUNT ( * ) ELSE NULL END THEN NULL ELSE 90 * 66 END ) + NULLIF ( + 67, + 65 ) * - 37
----
-2305

query I rowsort
SELECT + 99 * - 40 AS col2
----
-3960

onlyif mysql # aggregate syntax: 
query II rowsort label-8949
SELECT ALL 28 AS col2, - COUNT( * )
----
28
-1

skipif mysql # not compatible
query II rowsort label-8949
SELECT ALL 28 AS col2, - COUNT ( * )
----
28
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8950
SELECT + MAX( + - 19 ) * CASE - COALESCE ( + - 17, 95 * - 59 + - - 73 + - + 36 * + CAST( NULL AS SIGNED ) ) WHEN - 84 + - - 86 THEN + - 72 * CASE 45 WHEN - - COUNT( ALL - 37 ) * COALESCE ( - 60, - 87 + 56 ) THEN + 72 * 65 WHEN - 62 + + 57 THEN + 92 + + 49 ELSE NULL END * - 80 WHEN + 87 / - 46 THEN - 33 END - + 52
----
NULL

skipif mysql # not compatible
query I rowsort label-8950
SELECT + MAX ( + - 19 ) * CASE - COALESCE ( + - 17, 95 * - 59 + - - 73 + - + 36 * + CAST ( NULL AS INTEGER ) ) WHEN - 84 + - - 86 THEN + - 72 * CASE 45 WHEN - - COUNT ( ALL - 37 ) * COALESCE ( - 60, - 87 + 56 ) THEN + 72 * 65 WHEN - 62 + + 57 THEN + 92 + + 49 ELSE NULL END * - 80 WHEN + 87 / - 46 THEN - 33 END - + 52
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8951
SELECT DISTINCT - CASE - 33 WHEN COUNT( * ) / NULLIF ( + 62, + 60 ) + 23 THEN NULL ELSE ( 85 ) END * + CAST( + 42 AS SIGNED ) * + - 18 + - - 73 + + - CAST( - - 59 AS SIGNED ) AS col0
----
64274

skipif mysql # not compatible
query I rowsort label-8951
SELECT DISTINCT - CASE - 33 WHEN COUNT ( * ) / NULLIF ( + 62, + 60 ) + 23 THEN NULL ELSE ( 85 ) END * + CAST ( + 42 AS INTEGER ) * + - 18 + - - 73 + + - CAST ( - - 59 AS INTEGER ) AS col0
----
64274

onlyif mysql # aggregate syntax: 
query I rowsort label-8952
SELECT DISTINCT 4 * - NULLIF ( - - 78, + 50 / + - COUNT( * ) * - SUM( 93 ) + + 78 + + 59 ) * - 30 AS col2
----
9360

skipif mysql # not compatible
query I rowsort label-8952
SELECT DISTINCT 4 * - NULLIF ( - - 78, + 50 / + - COUNT ( * ) * - SUM ( 93 ) + + 78 + + 59 ) * - 30 AS col2
----
9360

onlyif mysql # aggregate syntax: 
query I rowsort label-8953
SELECT ALL + MAX( - - 59 )
----
59

skipif mysql # not compatible
query I rowsort label-8953
SELECT ALL + MAX ( - - 59 )
----
59

query I rowsort
SELECT DISTINCT 38 * - 60 AS col2
----
-2280

onlyif mysql # aggregate syntax: 
query I rowsort label-8955
SELECT ALL + ( + - CASE WHEN COUNT( * ) = NULL THEN + + 94 + 84 * - 27 + + 18 ELSE NULL END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8955
SELECT ALL + ( + - CASE WHEN COUNT ( * ) = NULL THEN + + 94 + 84 * - 27 + + 18 ELSE NULL END ) AS col1
----
NULL

query II rowsort
SELECT ALL - 1 * + - 67 + 90 AS col0, - 16
----
157
-16

query I rowsort
SELECT + + 96 + - - 75
----
171

onlyif mysql # DIV for integer division: 
query I rowsort label-8958
SELECT - COALESCE ( 18, - 46 * - 99 + - NULLIF ( - - 8, + 56 ) ) DIV 23 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8958
SELECT - COALESCE ( 18, - 46 * - 99 + - NULLIF ( - - 8, + 56 ) ) / 23 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8959
SELECT + CASE 84 WHEN + - COALESCE ( + 66, + - 18 * 56, + COUNT( * ) ) - - - MAX( DISTINCT + 63 ) THEN 95 WHEN - 15 - - 31 + + CAST( - - MAX( + 10 ) AS SIGNED ) THEN - 65 * - - COUNT( * ) END * + 47 - - 63
----
NULL

skipif mysql # not compatible
query I rowsort label-8959
SELECT + CASE 84 WHEN + - COALESCE ( + 66, + - 18 * 56, + COUNT ( * ) ) - - - MAX ( DISTINCT + 63 ) THEN 95 WHEN - 15 - - 31 + + CAST ( - - MAX ( + 10 ) AS INTEGER ) THEN - 65 * - - COUNT ( * ) END * + 47 - - 63
----
NULL

query I rowsort
SELECT - 61 - + 92
----
-153

onlyif mysql # aggregate syntax: 
query I rowsort label-8961
SELECT DISTINCT + MAX( ALL 46 ) AS col2
----
46

skipif mysql # not compatible
query I rowsort label-8961
SELECT DISTINCT + MAX ( ALL 46 ) AS col2
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-8962
SELECT DISTINCT + + COALESCE ( - - COUNT( * ), + 20, 0 )
----
1

skipif mysql # not compatible
query I rowsort label-8962
SELECT DISTINCT + + COALESCE ( - - COUNT ( * ), + 20, 0 )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8963
SELECT - COUNT( * ) DIV - ( - 20 ) + - 69 AS col1
----
-69

skipif mysql # not compatible
query I rowsort label-8963
SELECT - COUNT ( * ) / - ( - 20 ) + - 69 AS col1
----
-69

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8964
SELECT - - CAST( NULL AS DECIMAL ) / - 0 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8964
SELECT - - CAST ( NULL AS REAL ) / - 0 AS col2
----
NULL

query I rowsort
SELECT ALL 62 * + 15 + + + 3 * + + 50 + - 53 + + 11
----
1038

onlyif mysql # aggregate syntax: 
query I rowsort label-8966
SELECT DISTINCT + COUNT( * ) * + 28 + - 75 + + ( 20 ) * + - ( COUNT( * ) )
----
-67

skipif mysql # not compatible
query I rowsort label-8966
SELECT DISTINCT + COUNT ( * ) * + 28 + - 75 + + ( 20 ) * + - ( COUNT ( * ) )
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-8967
SELECT DISTINCT + 45 * - COUNT( * ) + + 47
----
2

skipif mysql # not compatible
query I rowsort label-8967
SELECT DISTINCT + 45 * - COUNT ( * ) + + 47
----
2

query I rowsort
SELECT - + 80 + + - 48 AS col1
----
-128

query I rowsort
SELECT ALL + 69 * - 98 AS col1
----
-6762

onlyif mysql # aggregate syntax: 
query I rowsort label-8970
SELECT ALL - COUNT( * ) * - COUNT( - 43 ) + + 1 * - ( - CASE - ( + 59 ) WHEN + 96 * + 72 THEN + + NULLIF ( + 79, + + NULLIF ( + 11, + ( - + 2 ) / - 36 ) + 13 ) WHEN + ( + 69 ) * 4 THEN NULL ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-8970
SELECT ALL - COUNT ( * ) * - COUNT ( - 43 ) + + 1 * - ( - CASE - ( + 59 ) WHEN + 96 * + 72 THEN + + NULLIF ( + 79, + + NULLIF ( + 11, + ( - + 2 ) / - 36 ) + 13 ) WHEN + ( + 69 ) * 4 THEN NULL ELSE NULL END )
----
NULL

query I rowsort
SELECT ALL + 66 * 77 + - 22
----
5060

query I rowsort
SELECT + ( - + 33 ) AS col2
----
-33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8973
SELECT + 75 * 47 - 51 * 69 * + - 47 * + 57 + - COALESCE ( 36, - + CAST( NULL AS SIGNED ), + 81 * + MIN( ALL + 26 ) ) - + + 78 AS col0
----
9430812

skipif mysql # not compatible
query I rowsort label-8973
SELECT + 75 * 47 - 51 * 69 * + - 47 * + 57 + - COALESCE ( 36, - + CAST ( NULL AS INTEGER ), + 81 * + MIN ( ALL + 26 ) ) - + + 78 AS col0
----
9430812

onlyif mysql # aggregate syntax: 
query I rowsort label-8974
SELECT DISTINCT - MIN( + + 52 ) * NULLIF ( + - 22, - COUNT( * ) + + + 20 + - 31 )
----
1144

skipif mysql # not compatible
query I rowsort label-8974
SELECT DISTINCT - MIN ( + + 52 ) * NULLIF ( + - 22, - COUNT ( * ) + + + 20 + - 31 )
----
1144

query II rowsort
SELECT - + 89 col2, - 98
----
-89
-98

query I rowsort
SELECT ALL - - 8 * - + 15 * + 52 AS col1
----
-6240

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8977
SELECT ALL - COALESCE ( - + NULLIF ( - - COALESCE ( + + 0, + 98, + 47 * 20 ), - - ( - + 82 ) ), - 54 * + ( + COUNT( * ) ) DIV - 37 DIV + CAST( NULL AS SIGNED ) + + COUNT( * ), 2 DIV + COUNT( * ) ) + 69 AS col0, CAST( NULL AS SIGNED ) * + 10 AS col0
----
69
NULL

skipif mysql # not compatible
query II rowsort label-8977
SELECT ALL - COALESCE ( - + NULLIF ( - - COALESCE ( + + 0, + 98, + 47 * 20 ), - - ( - + 82 ) ), - 54 * + ( + COUNT ( * ) ) / - 37 / + CAST ( NULL AS INTEGER ) + + COUNT ( * ), 2 / + COUNT ( * ) ) + 69 AS col0, CAST ( NULL AS INTEGER ) * + 10 AS col0
----
69
NULL

query II rowsort
SELECT 64 AS col2, 92 * 40 AS col0
----
64
3680

query I rowsort
SELECT ALL + 33 + - 10 * - + 93 + 51 AS col2
----
1014

onlyif mysql # aggregate syntax: 
query I rowsort label-8980
SELECT DISTINCT NULLIF ( - 85, + - 19 * + - COUNT( * ) - + 50 )
----
-85

skipif mysql # not compatible
query I rowsort label-8980
SELECT DISTINCT NULLIF ( - 85, + - 19 * + - COUNT ( * ) - + 50 )
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-8981
SELECT DISTINCT MIN( - - 28 ) * + 91 AS col1
----
2548

skipif mysql # not compatible
query I rowsort label-8981
SELECT DISTINCT MIN ( - - 28 ) * + 91 AS col1
----
2548

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8982
SELECT DISTINCT ( CAST( - + 56 AS SIGNED ) )
----
-56

skipif mysql # not compatible
query I rowsort label-8982
SELECT DISTINCT ( CAST ( - + 56 AS INTEGER ) )
----
-56

query II rowsort
SELECT 58 col0, 14 AS col2
----
58
14

query I rowsort
SELECT + 99 * - + 46
----
-4554

onlyif mysql # DIV for integer division: 
query I rowsort label-8985
SELECT ALL + 61 DIV ( + 55 ) * + - 60 * 0 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8985
SELECT ALL + 61 / ( + 55 ) * + - 60 * 0 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8986
SELECT - 69 + COUNT( * ) AS col2
----
-68

skipif mysql # not compatible
query I rowsort label-8986
SELECT - 69 + COUNT ( * ) AS col2
----
-68

query I rowsort
SELECT + 75 - 31 AS col0
----
44

onlyif mysql # aggregate syntax: 
query II rowsort label-8988
SELECT - COUNT( * ) col1, + CASE 57 WHEN 33 + + 57 * - 58 THEN - - 57 ELSE NULL END
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-8988
SELECT - COUNT ( * ) col1, + CASE 57 WHEN 33 + + 57 * - 58 THEN - - 57 ELSE NULL END
----
-1
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8989
SELECT - ( + - MIN( - - CAST( NULL AS SIGNED ) ) ) + - 37 * - + 87 - - + 23
----
NULL

skipif mysql # not compatible
query I rowsort label-8989
SELECT - ( + - MIN ( - - CAST ( NULL AS INTEGER ) ) ) + - 37 * - + 87 - - + 23
----
NULL

query I rowsort
SELECT + 69 * + + 7
----
483

query I rowsort
SELECT + 39 + + 69 + 7 AS col1
----
115

onlyif mysql # aggregate syntax: 
query II rowsort label-8992
SELECT ALL 32 AS col2, COUNT( * ) AS col2
----
32
1

skipif mysql # not compatible
query II rowsort label-8992
SELECT ALL 32 AS col2, COUNT ( * ) AS col2
----
32
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8993
SELECT + 33 * - MAX( - 86 ) AS col1
----
2838

skipif mysql # not compatible
query I rowsort label-8993
SELECT + 33 * - MAX ( - 86 ) AS col1
----
2838

query I rowsort
SELECT + 92 + - 65 col2
----
27

query II rowsort
SELECT ALL 40 col2, + 98
----
40
98

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8996
SELECT ALL + COUNT( * ) DIV CASE + 56 WHEN + + COUNT( * ) THEN NULL ELSE + 70 END + + 44
----
44

skipif mysql # not compatible
query I rowsort label-8996
SELECT ALL + COUNT ( * ) / CASE + 56 WHEN + + COUNT ( * ) THEN NULL ELSE + 70 END + + 44
----
44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8997
SELECT DISTINCT + 84 / + + 51 * + MIN( + 78 ) + + COUNT( * ) / CAST( NULL AS SIGNED ) * - ( + - COUNT( * ) ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8997
SELECT DISTINCT + 84 / + + 51 * + MIN ( + 78 ) + + COUNT ( * ) / CAST ( NULL AS INTEGER ) * - ( + - COUNT ( * ) ) col1
----
NULL

query II rowsort
SELECT 73 AS col2, + 39 * + 90
----
73
3510

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8999
SELECT ALL COUNT( * ) DIV + - 47 * 78 * + 2 + - + 30 + - 98
----
-128

skipif mysql # not compatible
query I rowsort label-8999
SELECT ALL COUNT ( * ) / + - 47 * 78 * + 2 + - + 30 + - 98
----
-128

query I rowsort
SELECT + 21 + - 17 AS col2
----
4

onlyif mysql # DIV for integer division: 
query I rowsort label-9001
SELECT DISTINCT - + 30 DIV - 89 * 18 + - - 9 * + - 59
----
-531

skipif mysql # not compatible
query I rowsort label-9001
SELECT DISTINCT - + 30 / - 89 * 18 + - - 9 * + - 59
----
-531

query II rowsort
SELECT ALL + 91 AS col1, + 45 + 43 col0
----
91
88

query II rowsort
SELECT + 80, + 0 col1
----
80
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9004
SELECT ALL + 12 * + - 69 + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9004
SELECT ALL + 12 * + - 69 + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9005
SELECT + CASE + CAST( NULL AS SIGNED ) WHEN - - 38 THEN NULL WHEN 72 * - - 39 * + COUNT( * ) + - 34 THEN - 47 * 86 + + MAX( + 42 ) END * - COUNT( * ) * + 11 * + 93 - + + 62 + ( 97 ) * - COUNT( 3 ) * 72 - + - 52 * + ( 18 / + 58 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9005
SELECT + CASE + CAST ( NULL AS INTEGER ) WHEN - - 38 THEN NULL WHEN 72 * - - 39 * + COUNT ( * ) + - 34 THEN - 47 * 86 + + MAX ( + 42 ) END * - COUNT ( * ) * + 11 * + 93 - + + 62 + ( 97 ) * - COUNT ( 3 ) * 72 - + - 52 * + ( 18 / + 58 )
----
NULL

query II rowsort
SELECT + 80, 80 col2
----
80
80

onlyif mysql # aggregate syntax: 
query I rowsort label-9007
SELECT - - COUNT( * ) - + 44 col0
----
-43

skipif mysql # not compatible
query I rowsort label-9007
SELECT - - COUNT ( * ) - + 44 col0
----
-43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9008
SELECT - + 52 / - 51 * - 75 * + 55 * + + CASE - - 8 WHEN - + 39 THEN - COUNT( - - NULLIF ( + ( 15 ), + - CAST( + 20 AS SIGNED ) ) ) / ( - 17 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-9008
SELECT - + 52 / - 51 * - 75 * + 55 * + + CASE - - 8 WHEN - + 39 THEN - COUNT ( - - NULLIF ( + ( 15 ), + - CAST ( + 20 AS INTEGER ) ) ) / ( - 17 ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9009
SELECT ALL 43 * - + ( + COUNT( DISTINCT + - 95 ) ) + 54 AS col1
----
11

skipif mysql # not compatible
query I rowsort label-9009
SELECT ALL 43 * - + ( + COUNT ( DISTINCT + - 95 ) ) + 54 AS col1
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-9010
SELECT - NULLIF ( - - 6, - MIN( 61 ) )
----
-6

skipif mysql # not compatible
query I rowsort label-9010
SELECT - NULLIF ( - - 6, - MIN ( 61 ) )
----
-6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9011
SELECT - CAST( NULL AS SIGNED ) + + 78 - + 51 * MIN( DISTINCT - 80 ) * + COUNT( * ) + - 69 / CASE 52 WHEN ( + COUNT( + - 8 ) ) * + 37 THEN - 24 WHEN + NULLIF ( 62, + - 71 * - + 0 ) + + COUNT( * ) THEN + + 99 + - 59 ELSE + + 47 END / + CASE 50 WHEN MIN( - 11 ) * + 57 THEN NULL WHEN SUM( DISTINCT - 10 ) / 49 THEN NULL WHEN 70 THEN - 27 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9011
SELECT - CAST ( NULL AS INTEGER ) + + 78 - + 51 * MIN ( DISTINCT - 80 ) * + COUNT ( * ) + - 69 / CASE 52 WHEN ( + COUNT ( + - 8 ) ) * + 37 THEN - 24 WHEN + NULLIF ( 62, + - 71 * - + 0 ) + + COUNT ( * ) THEN + + 99 + - 59 ELSE + + 47 END / + CASE 50 WHEN MIN ( - 11 ) * + 57 THEN NULL WHEN SUM ( DISTINCT - 10 ) / 49 THEN NULL WHEN 70 THEN - 27 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9012
SELECT ALL 22 * - + 90 - - + MAX( DISTINCT + - 95 ) AS col2
----
-2075

skipif mysql # not compatible
query I rowsort label-9012
SELECT ALL 22 * - + 90 - - + MAX ( DISTINCT + - 95 ) AS col2
----
-2075

query I rowsort
SELECT ALL + 74 * - 31 AS col0
----
-2294

query I rowsort
SELECT ALL + 65 - - 25
----
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9015
SELECT 98 * + + COALESCE ( 82, + 8 * 63 + - + ( - AVG ( ALL + 25 ) ) DIV COUNT( DISTINCT 77 ) * + 77 + + + CASE - 19 WHEN - 25 + - ( - 55 ) * 62 THEN + 41 + - + 54 * - COUNT( * ) WHEN - 90 THEN + + 89 * + COUNT( DISTINCT + NULLIF ( 9, ( + 93 ) ) + - CAST( 45 + 69 AS SIGNED ) ) + + 51 END, - 90 + - 55 ) * + 85 AS col2
----
683060

skipif mysql # not compatible
query I rowsort label-9015
SELECT 98 * + + COALESCE ( 82, + 8 * 63 + - + ( - AVG ( ALL + 25 ) ) / COUNT ( DISTINCT 77 ) * + 77 + + + CASE - 19 WHEN - 25 + - ( - 55 ) * 62 THEN + 41 + - + 54 * - COUNT ( * ) WHEN - 90 THEN + + 89 * + COUNT ( DISTINCT + NULLIF ( 9, ( + 93 ) ) + - CAST ( 45 + 69 AS INTEGER ) ) + + 51 END, - 90 + - 55 ) * + 85 AS col2
----
683060

onlyif mysql # aggregate syntax: 
query I rowsort label-9016
SELECT DISTINCT + CASE - 96 WHEN + 18 THEN + COUNT( * ) ELSE 24 + - 32 * - COUNT( * ) * + COUNT( * ) END * - 84 * 5
----
-23520

skipif mysql # not compatible
query I rowsort label-9016
SELECT DISTINCT + CASE - 96 WHEN + 18 THEN + COUNT ( * ) ELSE 24 + - 32 * - COUNT ( * ) * + COUNT ( * ) END * - 84 * 5
----
-23520

query I rowsort
SELECT ALL + 75 * + + 62 AS col1
----
4650

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9018
SELECT ALL CAST( + 92 AS SIGNED ) * - + MIN( DISTINCT - 54 )
----
4968

skipif mysql # not compatible
query I rowsort label-9018
SELECT ALL CAST ( + 92 AS INTEGER ) * - + MIN ( DISTINCT - 54 )
----
4968

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9019
SELECT ALL CAST( NULL AS SIGNED ) * 83 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9019
SELECT ALL CAST ( NULL AS INTEGER ) * 83 col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9020
SELECT COUNT( * ) DIV 73
----
0

skipif mysql # not compatible
query I rowsort label-9020
SELECT COUNT ( * ) / 73
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9021
SELECT 3 - ( - COUNT( * ) ) + + 4 AS col0
----
8

skipif mysql # not compatible
query I rowsort label-9021
SELECT 3 - ( - COUNT ( * ) ) + + 4 AS col0
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-9022
SELECT ALL + COUNT( * ) + + 65 col2
----
66

skipif mysql # not compatible
query I rowsort label-9022
SELECT ALL + COUNT ( * ) + + 65 col2
----
66

query I rowsort
SELECT 13 * + - 93 AS col0
----
-1209

onlyif mysql # aggregate syntax: 
query I rowsort label-9024
SELECT CASE - - 37 WHEN - 54 * + 38 THEN NULL WHEN 30 THEN - - 63 WHEN - 92 + - + ( - COUNT( * ) ) * + 3 + - - 93 + - + 7 THEN NULL ELSE + 72 * - 60 END AS col1
----
-4320

skipif mysql # not compatible
query I rowsort label-9024
SELECT CASE - - 37 WHEN - 54 * + 38 THEN NULL WHEN 30 THEN - - 63 WHEN - 92 + - + ( - COUNT ( * ) ) * + 3 + - - 93 + - + 7 THEN NULL ELSE + 72 * - 60 END AS col1
----
-4320

query I rowsort
SELECT DISTINCT 9 + 19 * - 79
----
-1492

query I rowsort
SELECT ALL + 94 + 30 AS col1
----
124

query II rowsort
SELECT DISTINCT - 35 * - 26 col2, - 46
----
910
-46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9028
SELECT ALL - 24 + - 81 + 98 + 63 * - ( COUNT( * ) ) DIV - 72
----
-7

skipif mysql # not compatible
query I rowsort label-9028
SELECT ALL - 24 + - 81 + 98 + 63 * - ( COUNT ( * ) ) / - 72
----
-7

onlyif mysql # DIV for integer division: 
query I rowsort label-9029
SELECT - 12 DIV - 98 - - 10
----
10

skipif mysql # not compatible
query I rowsort label-9029
SELECT - 12 / - 98 - - 10
----
10

onlyif mysql # aggregate syntax: 
query II rowsort label-9030
SELECT - 10 - 23 AS col0, - 75 + + 77 + - MAX( + - 3 ) AS col2
----
-33
5

skipif mysql # not compatible
query II rowsort label-9030
SELECT - 10 - 23 AS col0, - 75 + + 77 + - MAX ( + - 3 ) AS col2
----
-33
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9031
SELECT 19 / CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9031
SELECT 19 / CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9032
SELECT ALL 63 DIV - - 61
----
1

skipif mysql # not compatible
query I rowsort label-9032
SELECT ALL 63 / - - 61
----
1

query I rowsort
SELECT - 76 + + 15 AS col0
----
-61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9034
SELECT CASE + - NULLIF ( - NULLIF ( - - 59, + COALESCE ( - 78, + 8 * CASE 60 WHEN - - 54 THEN COUNT( * ) / ( + - 79 ) * 71 + - CAST( - 32 AS SIGNED ) / + 4 * CASE - 62 WHEN - 83 THEN + 46 WHEN 52 + 15 THEN NULL END - - 1 WHEN 98 * 87 - + 5 THEN NULL ELSE NULL END + ( ( 65 ) + 76 ) ) * + 65 ), - 48 ) WHEN + 39 THEN 68 * ( 35 ) WHEN 70 + 49 THEN NULL WHEN 70 + - CASE + 77 WHEN CAST( NULL AS SIGNED ) * 25 THEN 71 * COUNT( * ) ELSE NULL END THEN - COUNT( * ) * 63 END / - 17 + - 71 * 0
----
NULL

skipif mysql # not compatible
query I rowsort label-9034
SELECT CASE + - NULLIF ( - NULLIF ( - - 59, + COALESCE ( - 78, + 8 * CASE 60 WHEN - - 54 THEN COUNT ( * ) / ( + - 79 ) * 71 + - CAST ( - 32 AS INTEGER ) / + 4 * CASE - 62 WHEN - 83 THEN + 46 WHEN 52 + 15 THEN NULL END - - 1 WHEN 98 * 87 - + 5 THEN NULL ELSE NULL END + ( ( 65 ) + 76 ) ) * + 65 ), - 48 ) WHEN + 39 THEN 68 * ( 35 ) WHEN 70 + 49 THEN NULL WHEN 70 + - CASE + 77 WHEN CAST ( NULL AS INTEGER ) * 25 THEN 71 * COUNT ( * ) ELSE NULL END THEN - COUNT ( * ) * 63 END / - 17 + - 71 * 0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9035
SELECT ALL 38 - - ( - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9035
SELECT ALL 38 - - ( - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9036
SELECT DISTINCT - + MIN( ALL - 43 )
----
43

skipif mysql # not compatible
query I rowsort label-9036
SELECT DISTINCT - + MIN ( ALL - 43 )
----
43

query I rowsort
SELECT ALL 9 * - - 80 AS col1
----
720

onlyif mysql # aggregate syntax: 
query II rowsort label-9038
SELECT 89 AS col0, + COUNT( * ) AS col0
----
89
1

skipif mysql # not compatible
query II rowsort label-9038
SELECT 89 AS col0, + COUNT ( * ) AS col0
----
89
1

query I rowsort
SELECT ALL + 33 - + 89 col0
----
-56

query II rowsort
SELECT 2 AS col1, 93 * 73
----
2
6789

onlyif mysql # DIV for integer division: 
query II rowsort label-9041
SELECT 83 AS col1, 39 DIV 14 AS col2
----
83
2

skipif mysql # not compatible
query II rowsort label-9041
SELECT 83 AS col1, 39 / 14 AS col2
----
83
2

onlyif mysql # DIV for integer division: 
query II rowsort label-9042
SELECT DISTINCT 67, + 22 DIV - 99 AS col0
----
67
0

skipif mysql # not compatible
query II rowsort label-9042
SELECT DISTINCT 67, + 22 / - 99 AS col0
----
67
0

query II rowsort
SELECT ( 17 ) * + 15 AS col1, - 15
----
255
-15

query I rowsort
SELECT 13 - + 28
----
-15

onlyif mysql # DIV for integer division: 
query I rowsort label-9045
SELECT ALL 81 DIV + 94 col1
----
0

skipif mysql # not compatible
query I rowsort label-9045
SELECT ALL 81 / + 94 col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9046
SELECT ALL - 71 * + - CASE - 63 WHEN + 48 THEN NULL WHEN + - COUNT( * ) THEN NULL ELSE 59 + - 17 END
----
2982

skipif mysql # not compatible
query I rowsort label-9046
SELECT ALL - 71 * + - CASE - 63 WHEN + 48 THEN NULL WHEN + - COUNT ( * ) THEN NULL ELSE 59 + - 17 END
----
2982

query I rowsort
SELECT ( - + 39 ) * + 16 AS col0
----
-624

onlyif mysql # aggregate syntax: 
query I rowsort label-9048
SELECT ALL - SUM( ALL 11 ) + 37 + + 22 + + 92
----
140

skipif mysql # not compatible
query I rowsort label-9048
SELECT ALL - SUM ( ALL 11 ) + 37 + + 22 + + 92
----
140

onlyif mysql # aggregate syntax: 
query I rowsort label-9049
SELECT COUNT( * ) + + + COUNT( ALL + + 55 ) AS col0
----
2

skipif mysql # not compatible
query I rowsort label-9049
SELECT COUNT ( * ) + + + COUNT ( ALL + + 55 ) AS col0
----
2

query I rowsort
SELECT 48 - + 74 AS col1
----
-26

query II rowsort
SELECT ALL 39 AS col0, 21 AS col2
----
39
21

query I rowsort
SELECT 22 + - + 30 AS col1
----
-8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9053
SELECT MAX( + 95 ) * - - 2 AS col1, ( + - MIN( - + ( 71 ) ) ) - CAST( NULL AS SIGNED ) + + MIN( 17 ) + - COUNT( * ) + + + AVG ( DISTINCT 55 ) / + - CASE - COUNT( * ) WHEN + + 52 THEN + - 19 END + - 8 AS col2
----
190
NULL

skipif mysql # not compatible
query II rowsort label-9053
SELECT MAX ( + 95 ) * - - 2 AS col1, ( + - MIN ( - + ( 71 ) ) ) - CAST ( NULL AS INTEGER ) + + MIN ( 17 ) + - COUNT ( * ) + + + AVG ( DISTINCT 55 ) / + - CASE - COUNT ( * ) WHEN + + 52 THEN + - 19 END + - 8 AS col2
----
190
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9054
SELECT ALL + COUNT( * ) + 31 col0
----
32

skipif mysql # not compatible
query I rowsort label-9054
SELECT ALL + COUNT ( * ) + 31 col0
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-9055
SELECT DISTINCT MAX( + - 60 )
----
-60

skipif mysql # not compatible
query I rowsort label-9055
SELECT DISTINCT MAX ( + - 60 )
----
-60

query I rowsort
SELECT DISTINCT + 95 + - + ( + + 14 ) AS col2
----
81

onlyif mysql # aggregate syntax: 
query II rowsort label-9057
SELECT ALL 30 AS col1, + COUNT( * ) + - 59
----
30
-58

skipif mysql # not compatible
query II rowsort label-9057
SELECT ALL 30 AS col1, + COUNT ( * ) + - 59
----
30
-58

query I rowsort
SELECT ALL - 73 + 30
----
-43

query II rowsort
SELECT - 92 AS col1, 51
----
-92
51

onlyif mysql # DIV for integer division: 
query I rowsort label-9060
SELECT - 8 + + - 14 + + 21 DIV - 15 DIV - 1 col0
----
-21

skipif mysql # not compatible
query I rowsort label-9060
SELECT - 8 + + - 14 + + 21 / - 15 / - 1 col0
----
-21

onlyif mysql # DIV for integer division: 
query II rowsort label-9061
SELECT ALL - 75, + 12 DIV 44 col1
----
-75
0

skipif mysql # not compatible
query II rowsort label-9061
SELECT ALL - 75, + 12 / 44 col1
----
-75
0

query II rowsort
SELECT + NULLIF ( + + 4, - 96 + - AVG ( DISTINCT 86 ) * + 54 ) AS col0, 69 col2
----
4
69

onlyif mysql # aggregate syntax: 
query I rowsort label-9063
SELECT ( - 85 ) * - COUNT( * ) * - ( 45 )
----
-3825

skipif mysql # not compatible
query I rowsort label-9063
SELECT ( - 85 ) * - COUNT ( * ) * - ( 45 )
----
-3825

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9064
SELECT CAST( + - 67 AS SIGNED ) * ( + 35 ) * 43 + - 17 DIV - + ( + 51 ) * - MAX( ALL + - 90 )
----
-100835

skipif mysql # not compatible
query I rowsort label-9064
SELECT CAST ( + - 67 AS INTEGER ) * ( + 35 ) * 43 + - 17 / - + ( + 51 ) * - MAX ( ALL + - 90 )
----
-100835

onlyif mysql # aggregate syntax: 
query I rowsort label-9065
SELECT SUM( DISTINCT - 9 ) * - 19 - + 5 + - 4 * 2 + + 95
----
253

skipif mysql # not compatible
query I rowsort label-9065
SELECT SUM ( DISTINCT - 9 ) * - 19 - + 5 + - 4 * 2 + + 95
----
253

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9066
SELECT DISTINCT 51 * - + COUNT( * ) + - 7 * + 36 * - COUNT( DISTINCT - ( 60 ) ) * + 57 + + 45 - - CASE - 21 WHEN + 31 * + - 84 + - - MIN( 56 ) + + - 83 + - 91 + 34 + - 50 + + CAST( NULL AS SIGNED ) - - - 29 * + CASE + - 63 WHEN - 19 + 48 THEN 76 + - 48 ELSE NULLIF ( 61, + NULLIF ( - COUNT( * ), + 30 ) ) * NULLIF ( - 27 * - COALESCE ( - 38 / - ( 16 ), + 78 + - 33, - 84 ), - 27 / 24 ) - + 72 END THEN - 85 ELSE NULL END + ( 27 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9066
SELECT DISTINCT 51 * - + COUNT ( * ) + - 7 * + 36 * - COUNT ( DISTINCT - ( 60 ) ) * + 57 + + 45 - - CASE - 21 WHEN + 31 * + - 84 + - - MIN ( 56 ) + + - 83 + - 91 + 34 + - 50 + + CAST ( NULL AS INTEGER ) - - - 29 * + CASE + - 63 WHEN - 19 + 48 THEN 76 + - 48 ELSE NULLIF ( 61, + NULLIF ( - COUNT ( * ), + 30 ) ) * NULLIF ( - 27 * - COALESCE ( - 38 / - ( 16 ), + 78 + - 33, - 84 ), - 27 / 24 ) - + 72 END THEN - 85 ELSE NULL END + ( 27 ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9067
SELECT + COUNT( * ) / + 99 * - 26 * - 24 + - + CASE + - 85 WHEN 22 THEN NULL WHEN - CAST( - ( + - MIN( DISTINCT - - 6 ) ) AS DECIMAL ) / 70 THEN NULL WHEN + ( - ( 97 ) ) THEN + COUNT( * ) ELSE NULL END - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-9067
SELECT + COUNT ( * ) / + 99 * - 26 * - 24 + - + CASE + - 85 WHEN 22 THEN NULL WHEN - CAST ( - ( + - MIN ( DISTINCT - - 6 ) ) AS REAL ) / 70 THEN NULL WHEN + ( - ( 97 ) ) THEN + COUNT ( * ) ELSE NULL END - COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9068
SELECT ALL 1 * NULLIF ( - 34, - SUM( - CAST( NULL AS SIGNED ) ) ) + 64 - + - 34 AS col1
----
64

skipif mysql # not compatible
query I rowsort label-9068
SELECT ALL 1 * NULLIF ( - 34, - SUM ( - CAST ( NULL AS INTEGER ) ) ) + 64 - + - 34 AS col1
----
64

query I rowsort
SELECT ALL 36 * 39 * 83 * 13 * 59 col0
----
89380044

query I rowsort
SELECT ALL - + ( - 19 )
----
19

query I rowsort
SELECT ( 9 ) + - 95 + 53 + + ( - 83 ) * - 12 * + 17 * - 23 AS col0
----
-389469

onlyif mysql # DIV for integer division: 
query I rowsort label-9072
SELECT - 24 DIV - - 42
----
0

skipif mysql # not compatible
query I rowsort label-9072
SELECT - 24 / - - 42
----
0

query I rowsort
SELECT - ( + - 5 ) + - 95 col2
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-9074
SELECT SUM( + COALESCE ( 69, - 21 * + ( - 19 ) ) ) * - 1 * - 62 * - + COUNT( * ) - + COUNT( * ) AS col2
----
-4279

skipif mysql # not compatible
query I rowsort label-9074
SELECT SUM ( + COALESCE ( 69, - 21 * + ( - 19 ) ) ) * - 1 * - 62 * - + COUNT ( * ) - + COUNT ( * ) AS col2
----
-4279

query I rowsort
SELECT + 76 + + 63 AS col2
----
139

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9076
SELECT + NULLIF ( + - COUNT( * ), ( 81 ) * - ( + CAST( + - 19 AS SIGNED ) ) )
----
-1

skipif mysql # not compatible
query I rowsort label-9076
SELECT + NULLIF ( + - COUNT ( * ), ( 81 ) * - ( + CAST ( + - 19 AS INTEGER ) ) )
----
-1

query I rowsort
SELECT + 46 * 22 AS col2
----
1012

onlyif mysql # aggregate syntax: 
query I rowsort label-9078
SELECT + 52 + - NULLIF ( - ( 53 ), - COUNT( * ) )
----
105

skipif mysql # not compatible
query I rowsort label-9078
SELECT + 52 + - NULLIF ( - ( 53 ), - COUNT ( * ) )
----
105

query I rowsort
SELECT + 40 + + 69
----
109

query I rowsort
SELECT ALL 11 + 47 + - 70 + 32 * - 97
----
-3116

onlyif mysql # aggregate syntax: 
query I rowsort label-9081
SELECT + 16 + 8 * COUNT( * ) * + COUNT( * ) * + 29 * + ( + 31 ) - 72 AS col2
----
7136

skipif mysql # not compatible
query I rowsort label-9081
SELECT + 16 + 8 * COUNT ( * ) * + COUNT ( * ) * + 29 * + ( + 31 ) - 72 AS col2
----
7136

query I rowsort
SELECT DISTINCT 28 * + 39 AS col1
----
1092

query I rowsort
SELECT ALL + 39 + - NULLIF ( 73, + ( + + 73 ) )
----
NULL

query I rowsort
SELECT + 69 * 93
----
6417

query I rowsort
SELECT + 80 * - 46
----
-3680

onlyif mysql # aggregate syntax: 
query I rowsort label-9086
SELECT COUNT( * ) * COUNT( * ) + + 59 AS col1
----
60

skipif mysql # not compatible
query I rowsort label-9086
SELECT COUNT ( * ) * COUNT ( * ) + + 59 AS col1
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-9087
SELECT - SUM( + + 60 ) + - - 11 - + MIN( ALL + ( + 51 ) ) * + CASE - 98 WHEN - 28 THEN NULL ELSE - 10 + 35 END col0
----
-1324

skipif mysql # not compatible
query I rowsort label-9087
SELECT - SUM ( + + 60 ) + - - 11 - + MIN ( ALL + ( + 51 ) ) * + CASE - 98 WHEN - 28 THEN NULL ELSE - 10 + 35 END col0
----
-1324

query II rowsort
SELECT ALL ( - + ( - 98 ) ) + - + 62 AS col2, - 62 * - 96 + - 7
----
36
5945

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9089
SELECT + 33 DIV COUNT( * ) * 97
----
3201

skipif mysql # not compatible
query I rowsort label-9089
SELECT + 33 / COUNT ( * ) * 97
----
3201

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-9090
SELECT - 39 + - - 89, CAST( + 96 AS SIGNED ) + 90 * - 78 * 20 / - CAST( NULL AS DECIMAL ) AS col0
----
50
NULL

skipif mysql # not compatible
query II rowsort label-9090
SELECT - 39 + - - 89, CAST ( + 96 AS INTEGER ) + 90 * - 78 * 20 / - CAST ( NULL AS REAL ) AS col0
----
50
NULL

query I rowsort
SELECT + 50 * 41 AS col0
----
2050

onlyif mysql # DIV for integer division: 
query I rowsort label-9092
SELECT DISTINCT - 68 DIV - 70
----
0

skipif mysql # not compatible
query I rowsort label-9092
SELECT DISTINCT - 68 / - 70
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9093
SELECT ALL + 13 + + 75 - + 42 + - 42 DIV - 87 + - 33 * - 3 AS col2
----
145

skipif mysql # not compatible
query I rowsort label-9093
SELECT ALL + 13 + + 75 - + 42 + - 42 / - 87 + - 33 * - 3 AS col2
----
145

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9094
SELECT ALL - 2 * + - 40 * - 22 + - - 85 + - + ( + CAST( 40 AS SIGNED ) )
----
-1715

skipif mysql # not compatible
query I rowsort label-9094
SELECT ALL - 2 * + - 40 * - 22 + - - 85 + - + ( + CAST ( 40 AS INTEGER ) )
----
-1715

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9095
SELECT ALL - COUNT( * ) * - + 35 * + 19 DIV - - NULLIF ( COUNT( * ), - 26 * - AVG ( 60 ) )
----
665

skipif mysql # not compatible
query I rowsort label-9095
SELECT ALL - COUNT ( * ) * - + 35 * + 19 / - - NULLIF ( COUNT ( * ), - 26 * - AVG ( 60 ) )
----
665

onlyif mysql # aggregate syntax: 
query I rowsort label-9096
SELECT - 15 * COUNT( DISTINCT 54 )
----
-15

skipif mysql # not compatible
query I rowsort label-9096
SELECT - 15 * COUNT ( DISTINCT 54 )
----
-15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9097
SELECT - CAST( NULL AS SIGNED ) * - 53 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9097
SELECT - CAST ( NULL AS INTEGER ) * - 53 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9098
SELECT ALL - 50 * - ( + COUNT( * ) ) AS col0
----
50

skipif mysql # not compatible
query I rowsort label-9098
SELECT ALL - 50 * - ( + COUNT ( * ) ) AS col0
----
50

query I rowsort
SELECT - - 39 + + 54 AS col1
----
93

query I rowsort
SELECT ALL + ( + 17 ) col0
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-9101
SELECT ALL - 90 * - + COALESCE ( - MIN( ALL - ( - - ( - - 20 ) ) ), - 86 + + + 72 * + NULLIF ( - + ( - 84 ), + 25 ) - - 98 * 82, - + 84 ) - - + 91 AS col1
----
1891

skipif mysql # not compatible
query I rowsort label-9101
SELECT ALL - 90 * - + COALESCE ( - MIN ( ALL - ( - - ( - - 20 ) ) ), - 86 + + + 72 * + NULLIF ( - + ( - 84 ), + 25 ) - - 98 * 82, - + 84 ) - - + 91 AS col1
----
1891

query I rowsort
SELECT - + 20 - 16 * 42
----
-692

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9103
SELECT - NULLIF ( 81, SUM( CAST( NULL AS SIGNED ) ) ) * + 17 * 91
----
-125307

skipif mysql # not compatible
query I rowsort label-9103
SELECT - NULLIF ( 81, SUM ( CAST ( NULL AS INTEGER ) ) ) * + 17 * 91
----
-125307

query I rowsort
SELECT - + ( + 53 ) + - 75 AS col2
----
-128

query I rowsort
SELECT - 47 * 93 + 54
----
-4317

onlyif mysql # aggregate syntax: 
query III rowsort label-9106
SELECT + 35 - + - 64 + COUNT( * ) + - - 47 * 77 AS col1, - COUNT( * ) AS col2, + SUM( ALL + 74 )
----
3719
-1
74

skipif mysql # not compatible
query III rowsort label-9106
SELECT + 35 - + - 64 + COUNT ( * ) + - - 47 * 77 AS col1, - COUNT ( * ) AS col2, + SUM ( ALL + 74 )
----
3719
-1
74

query I rowsort
SELECT ALL - 16 * - 18
----
288

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9108
SELECT - COUNT( * ) * - COUNT( * ) DIV 86
----
0

skipif mysql # not compatible
query I rowsort label-9108
SELECT - COUNT ( * ) * - COUNT ( * ) / 86
----
0

query I rowsort
SELECT + 53 + - - 19 + - 89 - + 73 AS col1
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-9110
SELECT - 21 * + COUNT( ALL 61 ) - 11 + - 45 * + 0
----
-32

skipif mysql # not compatible
query I rowsort label-9110
SELECT - 21 * + COUNT ( ALL 61 ) - 11 + - 45 * + 0
----
-32

query I rowsort
SELECT COALESCE ( - - 86, + 4 )
----
86

query I rowsort
SELECT ALL + 16 * + 49
----
784

onlyif mysql # aggregate syntax: 
query I rowsort label-9113
SELECT - 17 * ( - - SUM( DISTINCT - 67 ) )
----
1139

skipif mysql # not compatible
query I rowsort label-9113
SELECT - 17 * ( - - SUM ( DISTINCT - 67 ) )
----
1139

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9114
SELECT ALL + 88 AS col1, + CAST( NULL AS SIGNED ) col1
----
88
NULL

skipif mysql # not compatible
query II rowsort label-9114
SELECT ALL + 88 AS col1, + CAST ( NULL AS INTEGER ) col1
----
88
NULL

query I rowsort
SELECT + 93 * + + 94 AS col0
----
8742

query I rowsort
SELECT ALL + 74 * - - 44 + 43 col2
----
3299

onlyif mysql # aggregate syntax: 
query I rowsort label-9117
SELECT - COUNT( * ) * 43 * 66 + + SUM( - ( - 45 ) ) * COUNT( * ) * 40
----
-1038

skipif mysql # not compatible
query I rowsort label-9117
SELECT - COUNT ( * ) * 43 * 66 + + SUM ( - ( - 45 ) ) * COUNT ( * ) * 40
----
-1038

query I rowsort
SELECT + 87 * 83 AS col0
----
7221

query I rowsort
SELECT + ( - ( - 80 ) )
----
80

query I rowsort
SELECT - 57 + - - 17 AS col2
----
-40

query I rowsort
SELECT DISTINCT + 64 * 87 + 57 + - ( 63 ) + - + 22 AS col1
----
5540

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9122
SELECT + 27 - CAST( NULL AS SIGNED ) * 27 / CAST( NULL AS SIGNED ) * 16 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9122
SELECT + 27 - CAST ( NULL AS INTEGER ) * 27 / CAST ( NULL AS INTEGER ) * 16 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9123
SELECT ALL - 57 * - COALESCE ( - 20, COUNT( * ) DIV + 63 + + - 67 * + + 86 * - 21, + - 83 )
----
-1140

skipif mysql # not compatible
query I rowsort label-9123
SELECT ALL - 57 * - COALESCE ( - 20, COUNT ( * ) / + 63 + + - 67 * + + 86 * - 21, + - 83 )
----
-1140

query I rowsort
SELECT ALL 46 - + 53 col0
----
-7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9125
SELECT + COALESCE ( COUNT( * ), + 45, + 39 + 77 DIV + COALESCE ( - COALESCE ( COUNT( * ), - 6 ), - 44 ) - + 63 - 87 * 65 + - 11 * 16 * - CAST( NULL AS SIGNED ) * + 54 + + 51 ) + - 2 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-9125
SELECT + COALESCE ( COUNT ( * ), + 45, + 39 + 77 / + COALESCE ( - COALESCE ( COUNT ( * ), - 6 ), - 44 ) - + 63 - 87 * 65 + - 11 * 16 * - CAST ( NULL AS INTEGER ) * + 54 + + 51 ) + - 2 AS col0
----
-1

query I rowsort
SELECT + 99 - - 6
----
105

onlyif mysql # aggregate syntax: 
query II rowsort label-9127
SELECT + 43 + + 57 + + 7, SUM( + 59 ) * + + COUNT( * ) - - 29 * - - ( ( COUNT( * ) ) ) AS col1
----
107
88

skipif mysql # not compatible
query II rowsort label-9127
SELECT + 43 + + 57 + + 7, SUM ( + 59 ) * + + COUNT ( * ) - - 29 * - - ( ( COUNT ( * ) ) ) AS col1
----
107
88

query I rowsort
SELECT + 12 - - - 17 AS col2
----
-5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9129
SELECT + + 74 * MAX( DISTINCT + 3 ) DIV - MAX( ALL - 27 ) + - 16 + COUNT( * ) AS col2
----
-7

skipif mysql # not compatible
query I rowsort label-9129
SELECT + + 74 * MAX ( DISTINCT + 3 ) / - MAX ( ALL - 27 ) + - 16 + COUNT ( * ) AS col2
----
-7

query I rowsort
SELECT - - 10 - + 24 AS col2
----
-14

onlyif mysql # DIV for integer division: 
query I rowsort label-9131
SELECT ALL + 30 DIV 92
----
0

skipif mysql # not compatible
query I rowsort label-9131
SELECT ALL + 30 / 92
----
0

query I rowsort
SELECT 73 + 7 * - + 31 * 23 * - 62 * - 8
----
-2475463

query I rowsort
SELECT + 6 + - NULLIF ( + ( - 51 ), 85 ) * - 83
----
-4227

onlyif mysql # aggregate syntax: 
query I rowsort label-9134
SELECT ALL CASE 9 WHEN MIN( 89 ) * + SUM( 44 ) THEN + 4 * - 99 END / - - 47
----
NULL

skipif mysql # not compatible
query I rowsort label-9134
SELECT ALL CASE 9 WHEN MIN ( 89 ) * + SUM ( 44 ) THEN + 4 * - 99 END / - - 47
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9135
SELECT 50 DIV 30 * - 9 AS col2
----
-9

skipif mysql # not compatible
query I rowsort label-9135
SELECT 50 / 30 * - 9 AS col2
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-9136
SELECT + - MIN( ALL - - 93 ) AS col1
----
-93

skipif mysql # not compatible
query I rowsort label-9136
SELECT + - MIN ( ALL - - 93 ) AS col1
----
-93

query I rowsort
SELECT ALL - 11 + - + 33 AS col2
----
-44

query I rowsort
SELECT 4 + 57
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-9139
SELECT DISTINCT - MIN( + 37 ) AS col1
----
-37

skipif mysql # not compatible
query I rowsort label-9139
SELECT DISTINCT - MIN ( + 37 ) AS col1
----
-37

query I rowsort
SELECT DISTINCT 64 + + 55 - - - 66 * + ( 9 ) AS col1
----
-475

query II rowsort
SELECT + 54, + 4 * + 77 AS col1
----
54
308

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9142
SELECT - NULLIF ( - COUNT( * ), 69 - + ( - 7 ) + 13 ) * - + 96 * - 3 * 85 + MAX( ALL - - CAST( 77 AS SIGNED ) )
----
24557

skipif mysql # not compatible
query I rowsort label-9142
SELECT - NULLIF ( - COUNT ( * ), 69 - + ( - 7 ) + 13 ) * - + 96 * - 3 * 85 + MAX ( ALL - - CAST ( 77 AS INTEGER ) )
----
24557

query I rowsort
SELECT 4 + + 30
----
34

query II rowsort
SELECT + 68, 81 - - 14 AS col0
----
68
95

query III rowsort
SELECT + 20 AS col1, 57 AS col1, 84 AS col0
----
20
57
84

query II rowsort
SELECT + 22, - 38 AS col1
----
22
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-9147
SELECT ALL - COUNT( * ) + - 77 col2
----
-78

skipif mysql # not compatible
query I rowsort label-9147
SELECT ALL - COUNT ( * ) + - 77 col2
----
-78

query I rowsort
SELECT 76 * 13 + - 62 * - - 31
----
-934

query II rowsort
SELECT DISTINCT - 64 AS col1, - 37 * 83 + - 24
----
-64
-3095

query I rowsort
SELECT 38 + - 76 AS col1
----
-38

onlyif mysql # aggregate syntax: 
query II rowsort label-9151
SELECT + 31, COUNT( * ) * + 46 * + 87 AS col1
----
31
4002

skipif mysql # not compatible
query II rowsort label-9151
SELECT + 31, COUNT ( * ) * + 46 * + 87 AS col1
----
31
4002

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9152
SELECT + ( + + 3 ) * + 59 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9152
SELECT + ( + + 3 ) * + 59 + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9153
SELECT ALL + CAST( - COUNT( - 11 ) AS SIGNED ) * - 91
----
91

skipif mysql # not compatible
query I rowsort label-9153
SELECT ALL + CAST ( - COUNT ( - 11 ) AS INTEGER ) * - 91
----
91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9154
SELECT 28 DIV - + ( - COUNT( * ) ) AS col1
----
28

skipif mysql # not compatible
query I rowsort label-9154
SELECT 28 / - + ( - COUNT ( * ) ) AS col1
----
28

query II rowsort
SELECT + 97 + + 24 AS col0, + 47 + - 88 - + + 49 AS col0
----
121
-90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9156
SELECT + 36 DIV 75 + + 60 * + COUNT( * )
----
60

skipif mysql # not compatible
query I rowsort label-9156
SELECT + 36 / 75 + + 60 * + COUNT ( * )
----
60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9157
SELECT ALL CASE 87 WHEN - + 70 THEN 3 * CAST( + CAST( 63 AS SIGNED ) AS SIGNED ) + 32 + - 44 * 3 WHEN + COUNT( * ) THEN - + CAST( NULL AS SIGNED ) WHEN + CAST( NULL AS SIGNED ) THEN + 6 ELSE - - 74 * + - 29 + + 85 + + COUNT( * ) - - - COUNT( * ) * - - ( - - 16 ) + COUNT( * ) * - NULLIF ( + 97, + 52 ) * - 87 END AS col1
----
6363

skipif mysql # not compatible
query I rowsort label-9157
SELECT ALL CASE 87 WHEN - + 70 THEN 3 * CAST ( + CAST ( 63 AS INTEGER ) AS INTEGER ) + 32 + - 44 * 3 WHEN + COUNT ( * ) THEN - + CAST ( NULL AS INTEGER ) WHEN + CAST ( NULL AS INTEGER ) THEN + 6 ELSE - - 74 * + - 29 + + 85 + + COUNT ( * ) - - - COUNT ( * ) * - - ( - - 16 ) + COUNT ( * ) * - NULLIF ( + 97, + 52 ) * - 87 END AS col1
----
6363

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9158
SELECT 49 * + SUM( DISTINCT 19 ) * 71 / CAST( NULL AS SIGNED ) * + 13
----
NULL

skipif mysql # not compatible
query I rowsort label-9158
SELECT 49 * + SUM ( DISTINCT 19 ) * 71 / CAST ( NULL AS INTEGER ) * + 13
----
NULL

query I rowsort
SELECT + COALESCE ( - 57, 94, + 29 )
----
-57

query II rowsort
SELECT DISTINCT 78 AS col1, + 18
----
78
18

onlyif mysql # aggregate syntax: 
query I rowsort label-9161
SELECT + 86 * + - COUNT( * ) col2
----
-86

skipif mysql # not compatible
query I rowsort label-9161
SELECT + 86 * + - COUNT ( * ) col2
----
-86

onlyif mysql # aggregate syntax: 
query II rowsort label-9162
SELECT - - 88 AS col2, CASE 32 WHEN COUNT( * ) THEN NULL ELSE 69 END AS col0
----
88
69

skipif mysql # not compatible
query II rowsort label-9162
SELECT - - 88 AS col2, CASE 32 WHEN COUNT ( * ) THEN NULL ELSE 69 END AS col0
----
88
69

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9163
SELECT - COUNT( * ) - COALESCE ( 75, 68 ) DIV NULLIF ( - - NULLIF ( - 23, 2 ), - 34 + - NULLIF ( - 8, ( + 42 ) * 75 - + 94 * 94 + + 38 + - 53 + - 89 DIV + 64 ) ) - SUM( ALL 43 ) DIV + 70 + + COALESCE ( + 58, + 95 * - COALESCE ( 9, + 90, + ( + 38 ) + - 9 ), 40 DIV - ( 86 * 93 ) ) AS col0
----
60

skipif mysql # not compatible
query I rowsort label-9163
SELECT - COUNT ( * ) - COALESCE ( 75, 68 ) / NULLIF ( - - NULLIF ( - 23, 2 ), - 34 + - NULLIF ( - 8, ( + 42 ) * 75 - + 94 * 94 + + 38 + - 53 + - 89 / + 64 ) ) - SUM ( ALL 43 ) / + 70 + + COALESCE ( + 58, + 95 * - COALESCE ( 9, + 90, + ( + 38 ) + - 9 ), 40 / - ( 86 * 93 ) ) AS col0
----
60

query I rowsort
SELECT + 43 - 35 AS col0
----
8

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9165
SELECT + 52 * - 32 + + - 94 - + CASE + 43 WHEN - + CAST( 41 AS SIGNED ) THEN - - 4 WHEN + 75 + 29 + + 36 THEN NULL ELSE - 86 END DIV + 90 * - 76 * + 87 col0
----
-1758

skipif mysql # not compatible
query I rowsort label-9165
SELECT + 52 * - 32 + + - 94 - + CASE + 43 WHEN - + CAST ( 41 AS INTEGER ) THEN - - 4 WHEN + 75 + 29 + + 36 THEN NULL ELSE - 86 END / + 90 * - 76 * + 87 col0
----
-1758

onlyif mysql # aggregate syntax: 
query II rowsort label-9166
SELECT - 90 AS col2, + COUNT( * ) * 22
----
-90
22

skipif mysql # not compatible
query II rowsort label-9166
SELECT - 90 AS col2, + COUNT ( * ) * 22
----
-90
22

query I rowsort
SELECT - 35 + - 79 - + - 71 + + 96 * - 79
----
-7627

query I rowsort
SELECT ALL - 57 + - 36 + - 11
----
-104

query II rowsort
SELECT - 40, 83 col0
----
-40
83

query II rowsort
SELECT ALL - 88, + 52 AS col2
----
-88
52

onlyif mysql # aggregate syntax: 
query I rowsort label-9171
SELECT COUNT( * ) - - COUNT( * ) - + + 8
----
-6

skipif mysql # not compatible
query I rowsort label-9171
SELECT COUNT ( * ) - - COUNT ( * ) - + + 8
----
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9172
SELECT ALL - CAST( - 3 AS SIGNED ) * + 83 AS col2
----
249

skipif mysql # not compatible
query I rowsort label-9172
SELECT ALL - CAST ( - 3 AS INTEGER ) * + 83 AS col2
----
249

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9173
SELECT AVG ( ( + CAST( NULL AS SIGNED ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9173
SELECT AVG ( ( + CAST ( NULL AS INTEGER ) ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9174
SELECT ALL MAX( + 30 ) + - CASE + 2 WHEN + + 94 THEN + + 6 - + - MAX( DISTINCT - + 97 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-9174
SELECT ALL MAX ( + 30 ) + - CASE + 2 WHEN + + 94 THEN + + 6 - + - MAX ( DISTINCT - + 97 ) END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9175
SELECT COUNT( * ) * + 40 AS col2, MIN( ALL ( 9 ) ) + 12
----
40
21

skipif mysql # not compatible
query II rowsort label-9175
SELECT COUNT ( * ) * + 40 AS col2, MIN ( ALL ( 9 ) ) + 12
----
40
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9176
SELECT 7 + + ( + + COALESCE ( + - 90, + 38, + + CAST( NULL AS SIGNED ) ) ) AS col0
----
-83

skipif mysql # not compatible
query I rowsort label-9176
SELECT 7 + + ( + + COALESCE ( + - 90, + 38, + + CAST ( NULL AS INTEGER ) ) ) AS col0
----
-83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9177
SELECT 42 * MIN( ALL 12 ) * 18 * + COALESCE ( COUNT( * ), - 63 DIV + CAST( NULL AS SIGNED ) + + - 85 + - 82 DIV + 62 * 21 + COUNT( * ) + + 93 * - 11 DIV 50 )
----
9072

skipif mysql # not compatible
query I rowsort label-9177
SELECT 42 * MIN ( ALL 12 ) * 18 * + COALESCE ( COUNT ( * ), - 63 / + CAST ( NULL AS INTEGER ) + + - 85 + - 82 / + 62 * 21 + COUNT ( * ) + + 93 * - 11 / 50 )
----
9072

query I rowsort
SELECT ALL 52 * + 18 col2
----
936

onlyif mysql # DIV for integer division: 
query I rowsort label-9179
SELECT DISTINCT COALESCE ( + + 96, - 81 DIV - 18 + + - 54 ) * + 70
----
6720

skipif mysql # not compatible
query I rowsort label-9179
SELECT DISTINCT COALESCE ( + + 96, - 81 / - 18 + + - 54 ) * + 70
----
6720

query II rowsort
SELECT 52 - - + 40 AS col2, + 59 * 66 AS col2
----
92
3894

onlyif mysql # aggregate syntax: 
query I rowsort label-9181
SELECT SUM( + - 49 )
----
-49

skipif mysql # not compatible
query I rowsort label-9181
SELECT SUM ( + - 49 )
----
-49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9182
SELECT ALL + CASE CAST( NULL AS SIGNED ) WHEN + + 46 THEN NULL ELSE - + NULLIF ( + 30, + + 39 ) * - 35 END - 7
----
1043

skipif mysql # not compatible
query I rowsort label-9182
SELECT ALL + CASE CAST ( NULL AS INTEGER ) WHEN + + 46 THEN NULL ELSE - + NULLIF ( + 30, + + 39 ) * - 35 END - 7
----
1043

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9183
SELECT DISTINCT + 63 - CASE 98 WHEN + + COUNT( * ) + - 93 + 38 + - 55 - - CAST( NULL AS SIGNED ) * - - COALESCE ( - + 95, - - COALESCE ( + COUNT( * ), + + 51 ) * + + COALESCE ( - - ( - CAST( NULL AS DECIMAL ) ), + CAST( NULL AS DECIMAL ) ) ) THEN + 60 WHEN COUNT( * ) THEN - + CASE - - 52 WHEN 52 THEN + COUNT( DISTINCT - 17 ) * + 51 WHEN + ( + 41 ) THEN NULL END END + 96 * - 90 * + 44 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9183
SELECT DISTINCT + 63 - CASE 98 WHEN + + COUNT ( * ) + - 93 + 38 + - 55 - - CAST ( NULL AS INTEGER ) * - - COALESCE ( - + 95, - - COALESCE ( + COUNT ( * ), + + 51 ) * + + COALESCE ( - - ( - CAST ( NULL AS REAL ) ), + CAST ( NULL AS REAL ) ) ) THEN + 60 WHEN COUNT ( * ) THEN - + CASE - - 52 WHEN 52 THEN + COUNT ( DISTINCT - 17 ) * + 51 WHEN + ( + 41 ) THEN NULL END END + 96 * - 90 * + 44 AS col2
----
NULL

query I rowsort
SELECT 42 * - 44 AS col2
----
-1848

query I rowsort
SELECT ALL ( + 81 ) - + 28 AS col2
----
53

query II rowsort
SELECT DISTINCT - ( - 56 ) AS col2, 48 AS col2
----
56
48

query I rowsort
SELECT 67 * + 14
----
938

query I rowsort
SELECT - - ( - - COALESCE ( 48, - - 43 ) ) AS col1
----
48

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-9189
SELECT + 25 * + + 59 AS col1, + 37 + + ( COALESCE ( + + COUNT( * ), + - NULLIF ( 61, + 68 ) * 1, 91 ) ) / - + CAST( NULL AS DECIMAL ) - + + 73 + - 87 + + 1 AS col1
----
1475
NULL

skipif mysql # not compatible
query II rowsort label-9189
SELECT + 25 * + + 59 AS col1, + 37 + + ( COALESCE ( + + COUNT ( * ), + - NULLIF ( 61, + 68 ) * 1, 91 ) ) / - + CAST ( NULL AS REAL ) - + + 73 + - 87 + + 1 AS col1
----
1475
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9190
SELECT DISTINCT + SUM( + 4 ) col1
----
4

skipif mysql # not compatible
query I rowsort label-9190
SELECT DISTINCT + SUM ( + 4 ) col1
----
4

query I rowsort
SELECT - - NULLIF ( 84, - 50 )
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-9192
SELECT - ( - 8 ) - - - COUNT( * ) + 80 + + + 6 * + 35 AS col1
----
297

skipif mysql # not compatible
query I rowsort label-9192
SELECT - ( - 8 ) - - - COUNT ( * ) + 80 + + + 6 * + 35 AS col1
----
297

onlyif mysql # aggregate syntax: 
query I rowsort label-9193
SELECT ALL - + 50 * + NULLIF ( - 59, + + COUNT( * ) - - 98 ) * - 13
----
-38350

skipif mysql # not compatible
query I rowsort label-9193
SELECT ALL - + 50 * + NULLIF ( - 59, + + COUNT ( * ) - - 98 ) * - 13
----
-38350

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9194
SELECT - + MAX( ALL 14 ) DIV + - 97 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9194
SELECT - + MAX ( ALL 14 ) / + - 97 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9195
SELECT - CASE + - SUM( DISTINCT ( - - 7 ) ) WHEN - 51 THEN - 86 WHEN 20 THEN - NULLIF ( 98, + - 73 - + 1 * - 63 ) ELSE NULL END + + 2 * + 31 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9195
SELECT - CASE + - SUM ( DISTINCT ( - - 7 ) ) WHEN - 51 THEN - 86 WHEN 20 THEN - NULLIF ( 98, + - 73 - + 1 * - 63 ) ELSE NULL END + + 2 * + 31 col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9196
SELECT - - 22 + 99 + + 99 DIV + 66 - - 68 * 35 * 12 * - - 0 DIV - 49 AS col1
----
122

skipif mysql # not compatible
query I rowsort label-9196
SELECT - - 22 + 99 + + 99 / + 66 - - 68 * 35 * 12 * - - 0 / - 49 AS col1
----
122

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9197
SELECT - - 58 DIV - COUNT( * ) + - + COUNT( * ) * + CASE + 20 WHEN + + 21 * + NULLIF ( + 52, - - 4 ) THEN NULL WHEN + - COUNT( * ) THEN NULL ELSE ( - + 91 ) + + + COUNT( * ) * COALESCE ( - ( - 90 ), ( + + CASE + CASE + COUNT( * ) WHEN - + COUNT( * ) * - + 39 + - 5 + 62 THEN COUNT( * ) WHEN ( + 40 ) + - ( + MAX( ALL 80 ) - - CAST( - 79 AS SIGNED ) ) THEN NULL END WHEN 14 THEN COUNT( * ) WHEN + 41 THEN - 46 ELSE NULL END ), COUNT( * ) + 3 ) + + NULLIF ( - 38 + - ( 59 ), + 93 ) END AS col2
----
40

skipif mysql # not compatible
query I rowsort label-9197
SELECT - - 58 / - COUNT ( * ) + - + COUNT ( * ) * + CASE + 20 WHEN + + 21 * + NULLIF ( + 52, - - 4 ) THEN NULL WHEN + - COUNT ( * ) THEN NULL ELSE ( - + 91 ) + + + COUNT ( * ) * COALESCE ( - ( - 90 ), ( + + CASE + CASE + COUNT ( * ) WHEN - + COUNT ( * ) * - + 39 + - 5 + 62 THEN COUNT ( * ) WHEN ( + 40 ) + - ( + MAX ( ALL 80 ) - - CAST ( - 79 AS INTEGER ) ) THEN NULL END WHEN 14 THEN COUNT ( * ) WHEN + 41 THEN - 46 ELSE NULL END ), COUNT ( * ) + 3 ) + + NULLIF ( - 38 + - ( 59 ), + 93 ) END AS col2
----
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9198
SELECT - + 47 + COALESCE ( + 40, + + 36 ) + - 2 + SUM( 5 ) DIV - - COALESCE ( CAST( - - 62 AS SIGNED ), + 39 ) * - 20
----
-9

skipif mysql # not compatible
query I rowsort label-9198
SELECT - + 47 + COALESCE ( + 40, + + 36 ) + - 2 + SUM ( 5 ) / - - COALESCE ( CAST ( - - 62 AS INTEGER ), + 39 ) * - 20
----
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9199
SELECT - - 72 + CASE + 99 WHEN + - 17 / + + 62 + 8 * + - 40 THEN + NULLIF ( + 20, + 41 ) * CAST( - + 65 AS SIGNED ) * - 41 END / - + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9199
SELECT - - 72 + CASE + 99 WHEN + - 17 / + + 62 + 8 * + - 40 THEN + NULLIF ( + 20, + 41 ) * CAST ( - + 65 AS INTEGER ) * - 41 END / - + COUNT ( * ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9200
SELECT + - 67 - 81 + + COUNT( DISTINCT - 42 )
----
-147

skipif mysql # not compatible
query I rowsort label-9200
SELECT + - 67 - 81 + + COUNT ( DISTINCT - 42 )
----
-147

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9201
SELECT + 19 * - - 80 * COALESCE ( + - 92, - CAST( NULL AS SIGNED ) )
----
-139840

skipif mysql # not compatible
query I rowsort label-9201
SELECT + 19 * - - 80 * COALESCE ( + - 92, - CAST ( NULL AS INTEGER ) )
----
-139840

onlyif mysql # aggregate syntax: 
query II rowsort label-9202
SELECT ALL ( - SUM( ALL + 8 ) ) + + 30 - - + 24 AS col2, 22 AS col0
----
46
22

skipif mysql # not compatible
query II rowsort label-9202
SELECT ALL ( - SUM ( ALL + 8 ) ) + + 30 - - + 24 AS col2, 22 AS col0
----
46
22

query I rowsort
SELECT ALL + 17 + 45
----
62

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-9204
SELECT - 77 + - + 36 AS col2, COUNT( DISTINCT 21 ) + - COALESCE ( - + 30, + 26 * 61 + 59 ) DIV - COUNT( * ) AS col0, - 50 * + 56
----
-113
-29
-2800

skipif mysql # not compatible
query III rowsort label-9204
SELECT - 77 + - + 36 AS col2, COUNT ( DISTINCT 21 ) + - COALESCE ( - + 30, + 26 * 61 + 59 ) / - COUNT ( * ) AS col0, - 50 * + 56
----
-113
-29
-2800

onlyif mysql # aggregate syntax: 
query I rowsort label-9205
SELECT - COUNT( DISTINCT - 94 )
----
-1

skipif mysql # not compatible
query I rowsort label-9205
SELECT - COUNT ( DISTINCT - 94 )
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-9206
SELECT DISTINCT + - COALESCE ( - - 63, - 55 + 40 ) + - ( + 21 ) DIV + 66 * - 82 * - - 10 * + 41
----
-63

skipif mysql # not compatible
query I rowsort label-9206
SELECT DISTINCT + - COALESCE ( - - 63, - 55 + 40 ) + - ( + 21 ) / + 66 * - 82 * - - 10 * + 41
----
-63

query I rowsort
SELECT + 53 + - 36
----
17

onlyif mysql # aggregate syntax: 
query II rowsort label-9208
SELECT ALL 76 * + + ( COUNT( + 73 ) ) AS col0, 5
----
76
5

skipif mysql # not compatible
query II rowsort label-9208
SELECT ALL 76 * + + ( COUNT ( + 73 ) ) AS col0, 5
----
76
5

onlyif mysql # aggregate syntax: 
query I rowsort label-9209
SELECT 49 * + COUNT( * ) + - 90
----
-41

skipif mysql # not compatible
query I rowsort label-9209
SELECT 49 * + COUNT ( * ) + - 90
----
-41

onlyif mysql # aggregate syntax: 
query II rowsort label-9210
SELECT ALL - 43 * - MIN( + + 47 ) - + 63 + 57 * - COUNT( * ) * + 37 * - - ( 35 ) + - 2 * - 38, - ( 30 ) AS col2
----
-71781
-30

skipif mysql # not compatible
query II rowsort label-9210
SELECT ALL - 43 * - MIN ( + + 47 ) - + 63 + 57 * - COUNT ( * ) * + 37 * - - ( 35 ) + - 2 * - 38, - ( 30 ) AS col2
----
-71781
-30

onlyif mysql # aggregate syntax: 
query II rowsort label-9211
SELECT ALL + 84, SUM( + 57 ) AS col2
----
84
57

skipif mysql # not compatible
query II rowsort label-9211
SELECT ALL + 84, SUM ( + 57 ) AS col2
----
84
57

query II rowsort
SELECT ALL + 87 AS col1, 45 AS col0
----
87
45

query I rowsort
SELECT + 92 + - 4
----
88

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9214
SELECT + 51 DIV + 55 * - CAST( + 42 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-9214
SELECT + 51 / + 55 * - CAST ( + 42 AS INTEGER )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9215
SELECT ALL 62 DIV - 53
----
-1

skipif mysql # not compatible
query I rowsort label-9215
SELECT ALL 62 / - 53
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9216
SELECT + 68 + + + CAST( NULL AS SIGNED ) + - COUNT( * ), 99 - - COUNT( * ) * + + 27 + 72 * - 41 AS col0
----
NULL
-2826

skipif mysql # not compatible
query II rowsort label-9216
SELECT + 68 + + + CAST ( NULL AS INTEGER ) + - COUNT ( * ), 99 - - COUNT ( * ) * + + 27 + 72 * - 41 AS col0
----
NULL
-2826

query I rowsort
SELECT + 74 + - 58
----
16

onlyif mysql # aggregate syntax: 
query II rowsort label-9218
SELECT + ( + - COUNT( * ) ) * - 6 AS col2, + ( + 28 )
----
6
28

skipif mysql # not compatible
query II rowsort label-9218
SELECT + ( + - COUNT ( * ) ) * - 6 AS col2, + ( + 28 )
----
6
28

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9219
SELECT + COUNT( * ) DIV 3 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9219
SELECT + COUNT ( * ) / 3 AS col2
----
0

query I rowsort
SELECT + 94 * + - 41 + - + NULLIF ( - 52, 6 + + 62 )
----
-3802

query I rowsort
SELECT + 22 * 62
----
1364

query I rowsort
SELECT ALL 92 * - ( 65 ) AS col2
----
-5980

query I rowsort
SELECT + - 12 + - 47
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-9224
SELECT + + COUNT( * ) + - + 22 col2
----
-21

skipif mysql # not compatible
query I rowsort label-9224
SELECT + + COUNT ( * ) + - + 22 col2
----
-21

query I rowsort
SELECT DISTINCT - 73 * 32
----
-2336

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9226
SELECT - - 62 * + CAST( + 72 AS SIGNED ) + + 62 col1
----
4526

skipif mysql # not compatible
query I rowsort label-9226
SELECT - - 62 * + CAST ( + 72 AS INTEGER ) + + 62 col1
----
4526

onlyif mysql # aggregate syntax: 
query II rowsort label-9227
SELECT DISTINCT - 99, - MIN( - COALESCE ( ( + 77 ), - + 47, + 60 ) ) AS col2
----
-99
77

skipif mysql # not compatible
query II rowsort label-9227
SELECT DISTINCT - 99, - MIN ( - COALESCE ( ( + 77 ), - + 47, + 60 ) ) AS col2
----
-99
77

query I rowsort
SELECT ALL + 82 + 22 + + 66 * + + NULLIF ( + 75, - - 76 - - + 67 ) AS col0
----
5054

query I rowsort
SELECT - 81 + + - 37
----
-118

query I rowsort
SELECT + 25 * 99 * - 36 * ( - 14 ) AS col0
----
1247400

onlyif mysql # aggregate syntax: 
query I rowsort label-9231
SELECT - COUNT( - 43 ) + + 74 col2
----
73

skipif mysql # not compatible
query I rowsort label-9231
SELECT - COUNT ( - 43 ) + + 74 col2
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-9232
SELECT ALL - + ( 45 ) + + ( - COUNT( + 82 ) ) AS col1
----
-46

skipif mysql # not compatible
query I rowsort label-9232
SELECT ALL - + ( 45 ) + + ( - COUNT ( + 82 ) ) AS col1
----
-46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9233
SELECT - CASE + + 85 WHEN + ( - 10 ) * + 67 - - + MAX( - - 8 ) THEN - 1 * + COUNT( * ) - + 17 * - + 86 DIV - - 9 WHEN COALESCE ( - - 73, 83 ) - - + COUNT( * ) DIV - CAST( NULL AS SIGNED ) THEN + MIN( - - 54 ) DIV - - CASE COUNT( * ) WHEN + 85 THEN 28 WHEN - 18 THEN - 92 END ELSE - 23 END AS col2
----
23

skipif mysql # not compatible
query I rowsort label-9233
SELECT - CASE + + 85 WHEN + ( - 10 ) * + 67 - - + MAX ( - - 8 ) THEN - 1 * + COUNT ( * ) - + 17 * - + 86 / - - 9 WHEN COALESCE ( - - 73, 83 ) - - + COUNT ( * ) / - CAST ( NULL AS INTEGER ) THEN + MIN ( - - 54 ) / - - CASE COUNT ( * ) WHEN + 85 THEN 28 WHEN - 18 THEN - 92 END ELSE - 23 END AS col2
----
23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9234
SELECT ALL COUNT( * ) DIV COUNT( DISTINCT - 14 ) + + 76 * - 19 + + - 55
----
-1498

skipif mysql # not compatible
query I rowsort label-9234
SELECT ALL COUNT ( * ) / COUNT ( DISTINCT - 14 ) + + 76 * - 19 + + - 55
----
-1498

query I rowsort
SELECT DISTINCT COALESCE ( - - 20, - 90 + + - 73, - 61 ) + + - 86 * - 13 AS col2
----
1138

onlyif mysql # aggregate syntax: 
query I rowsort label-9236
SELECT - + SUM( DISTINCT + 37 ) AS col0
----
-37

skipif mysql # not compatible
query I rowsort label-9236
SELECT - + SUM ( DISTINCT + 37 ) AS col0
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-9237
SELECT ALL + - 43 + + 11 - - + COUNT( * ) AS col1
----
-31

skipif mysql # not compatible
query I rowsort label-9237
SELECT ALL + - 43 + + 11 - - + COUNT ( * ) AS col1
----
-31

query I rowsort
SELECT - + 20 col0
----
-20

query I rowsort
SELECT ALL ( ( 66 ) )
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-9240
SELECT - 41 - + COUNT( - 68 )
----
-42

skipif mysql # not compatible
query I rowsort label-9240
SELECT - 41 - + COUNT ( - 68 )
----
-42

onlyif mysql # DIV for integer division: 
query I rowsort label-9241
SELECT + 23 DIV - - 11
----
2

skipif mysql # not compatible
query I rowsort label-9241
SELECT + 23 / - - 11
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9242
SELECT ALL + 26 / + CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9242
SELECT ALL + 26 / + CAST ( NULL AS INTEGER ) col0
----
NULL

query I rowsort
SELECT - 34 * - 46 AS col2
----
1564

query I rowsort
SELECT ALL CASE 3 WHEN + + 96 + 22 THEN NULL ELSE - NULLIF ( - 4, + COALESCE ( - + 46, - 21 - 42 * - 22 ) ) END
----
4

onlyif mysql # aggregate syntax: 
query II rowsort label-9245
SELECT DISTINCT + SUM( - + 1 ) AS col0, + 22 AS col0
----
-1
22

skipif mysql # not compatible
query II rowsort label-9245
SELECT DISTINCT + SUM ( - + 1 ) AS col0, + 22 AS col0
----
-1
22

query I rowsort
SELECT DISTINCT 57 * + 90 AS col1
----
5130

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9247
SELECT COUNT( * ) * - - 58 DIV + 60 - - + ( CASE - 23 WHEN - ( + - COUNT( * ) ) THEN + 26 ELSE + 35 END ) + - 2 col1
----
33

skipif mysql # not compatible
query I rowsort label-9247
SELECT COUNT ( * ) * - - 58 / + 60 - - + ( CASE - 23 WHEN - ( + - COUNT ( * ) ) THEN + 26 ELSE + 35 END ) + - 2 col1
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-9248
SELECT + 80 * - - COUNT( * )
----
80

skipif mysql # not compatible
query I rowsort label-9248
SELECT + 80 * - - COUNT ( * )
----
80

query II rowsort
SELECT + ( - + 28 ) AS col2, - 47 * + 29
----
-28
-1363

onlyif mysql # aggregate syntax: 
query I rowsort label-9250
SELECT + MAX( DISTINCT - 81 ) col2
----
-81

skipif mysql # not compatible
query I rowsort label-9250
SELECT + MAX ( DISTINCT - 81 ) col2
----
-81

query I rowsort
SELECT + ( - ( + 98 ) ) AS col1
----
-98

query I rowsort
SELECT - 44 * - - 48
----
-2112

query I rowsort
SELECT ALL 56 * + 37
----
2072

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9254
SELECT ALL + CAST( - + COALESCE ( 70, + 77, MIN( DISTINCT 36 ) ) AS SIGNED ) AS col1
----
-70

skipif mysql # not compatible
query I rowsort label-9254
SELECT ALL + CAST ( - + COALESCE ( 70, + 77, MIN ( DISTINCT 36 ) ) AS INTEGER ) AS col1
----
-70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9255
SELECT CAST( + 67 AS SIGNED ) AS col2, + NULLIF ( + COUNT( * ), 23 * - - CASE - + 88 WHEN + 41 THEN NULL ELSE + + 26 END * COUNT( - 88 ) * + 48 * 83 + SUM( - 6 ) + - - 11 )
----
67
1

skipif mysql # not compatible
query II rowsort label-9255
SELECT CAST ( + 67 AS INTEGER ) AS col2, + NULLIF ( + COUNT ( * ), 23 * - - CASE - + 88 WHEN + 41 THEN NULL ELSE + + 26 END * COUNT ( - 88 ) * + 48 * 83 + SUM ( - 6 ) + - - 11 )
----
67
1

query I rowsort
SELECT ALL + 46 + - + 58 + - 18 * - 80
----
1428

query I rowsort
SELECT + 16 * 93
----
1488

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9258
SELECT DISTINCT + 13 + + CASE + CAST( + CAST( + MAX( + + 25 ) AS SIGNED ) AS SIGNED ) WHEN + 25 THEN - + 15 * + CAST( NULL AS SIGNED ) - 73 * - COUNT( * ) + + 58 WHEN 60 * 86 THEN + - 33 WHEN 72 THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9258
SELECT DISTINCT + 13 + + CASE + CAST ( + CAST ( + MAX ( + + 25 ) AS INTEGER ) AS INTEGER ) WHEN + 25 THEN - + 15 * + CAST ( NULL AS INTEGER ) - 73 * - COUNT ( * ) + + 58 WHEN 60 * 86 THEN + - 33 WHEN 72 THEN NULL END AS col1
----
NULL

query I rowsort
SELECT ALL - ( + 80 )
----
-80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9260
SELECT + + CAST( - 27 AS SIGNED )
----
-27

skipif mysql # not compatible
query I rowsort label-9260
SELECT + + CAST ( - 27 AS INTEGER )
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-9261
SELECT + + ( COUNT( DISTINCT + + 49 ) ) * + 85 * MIN( + 37 ) + - - MAX( 30 ) AS col2
----
3175

skipif mysql # not compatible
query I rowsort label-9261
SELECT + + ( COUNT ( DISTINCT + + 49 ) ) * + 85 * MIN ( + 37 ) + - - MAX ( 30 ) AS col2
----
3175

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9262
SELECT ALL NULLIF ( - - 91, 75 * - - 4 - + 71 + 7 + - 43 + + 15 * - 13 ) + + CAST( NULL AS SIGNED ) / - 70 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9262
SELECT ALL NULLIF ( - - 91, 75 * - - 4 - + 71 + 7 + - 43 + + 15 * - 13 ) + + CAST ( NULL AS INTEGER ) / - 70 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9263
SELECT - 87 * + 83 + - MAX( DISTINCT + CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9263
SELECT - 87 * + 83 + - MAX ( DISTINCT + CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9264
SELECT + + SUM( + - 58 )
----
-58

skipif mysql # not compatible
query I rowsort label-9264
SELECT + + SUM ( + - 58 )
----
-58

query I rowsort
SELECT 73 + - ( ( - 24 ) ) - - 78 + + 56
----
231

onlyif mysql # DIV for integer division: 
query I rowsort label-9266
SELECT + 79 DIV 6
----
13

skipif mysql # not compatible
query I rowsort label-9266
SELECT + 79 / 6
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-9267
SELECT ALL - COUNT( * ) + - 81 * + 0 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-9267
SELECT ALL - COUNT ( * ) + - 81 * + 0 AS col0
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9268
SELECT DISTINCT + COUNT( * ) DIV - ( - 6 )
----
0

skipif mysql # not compatible
query I rowsort label-9268
SELECT DISTINCT + COUNT ( * ) / - ( - 6 )
----
0

query I rowsort
SELECT ALL + ( - 53 ) + + 63 AS col0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-9270
SELECT + 32 - + - COUNT( * ) * + + 72 AS col1
----
104

skipif mysql # not compatible
query I rowsort label-9270
SELECT + 32 - + - COUNT ( * ) * + + 72 AS col1
----
104

query I rowsort
SELECT + COALESCE ( - 28, - 91 ) + 70 AS col2
----
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9272
SELECT 42 + + - 84 + ( - 32 ) + - + 3 + + - ( - + COALESCE ( 99, ( - + COUNT( * ) ) ) ) + + CAST( - COUNT( * ) AS SIGNED ) DIV 84 * + ( - 89 ) * 4 * 13 * COUNT( * )
----
22

skipif mysql # not compatible
query I rowsort label-9272
SELECT 42 + + - 84 + ( - 32 ) + - + 3 + + - ( - + COALESCE ( 99, ( - + COUNT ( * ) ) ) ) + + CAST ( - COUNT ( * ) AS INTEGER ) / 84 * + ( - 89 ) * 4 * 13 * COUNT ( * )
----
22

query I rowsort
SELECT 22 + + 38
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-9274
SELECT 42 - + - 28 * 11 + + - COUNT( * )
----
349

skipif mysql # not compatible
query I rowsort label-9274
SELECT 42 - + - 28 * 11 + + - COUNT ( * )
----
349

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9275
SELECT CAST( NULL AS SIGNED ) + - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9275
SELECT CAST ( NULL AS INTEGER ) + - COUNT ( * ) AS col2
----
NULL

query I rowsort
SELECT 52 + + - 49 AS col1
----
3

query I rowsort
SELECT ALL + 94 - + - 12
----
106

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9278
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + SUM( DISTINCT + ( - 85 ) ) * - 52 + + - 60
----
NULL

skipif mysql # not compatible
query I rowsort label-9278
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + SUM ( DISTINCT + ( - 85 ) ) * - 52 + + - 60
----
NULL

query I rowsort
SELECT 32 * + 11
----
352

query I rowsort
SELECT 51 + 7 * 1 * - - 36
----
303

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9281
SELECT 58 * + + 9 DIV CAST( NULL AS SIGNED ), 96 * - 68 - - 77 + 99 + - 48 DIV - - MIN( + 30 ) AS col0
----
NULL
-6353

skipif mysql # not compatible
query II rowsort label-9281
SELECT 58 * + + 9 / CAST ( NULL AS INTEGER ), 96 * - 68 - - 77 + 99 + - 48 / - - MIN ( + 30 ) AS col0
----
NULL
-6353

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9282
SELECT ALL + CAST( NULL AS SIGNED ) * - 78
----
NULL

skipif mysql # not compatible
query I rowsort label-9282
SELECT ALL + CAST ( NULL AS INTEGER ) * - 78
----
NULL

query II rowsort
SELECT DISTINCT - 9 AS col2, - 30 AS col0
----
-9
-30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9284
SELECT 57 * MAX( DISTINCT + 5 ) DIV + 53 AS col2
----
5

skipif mysql # not compatible
query I rowsort label-9284
SELECT 57 * MAX ( DISTINCT + 5 ) / + 53 AS col2
----
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9285
SELECT DISTINCT + CAST( NULL AS SIGNED ) + + MAX( 54 ) + 77 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9285
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + + MAX ( 54 ) + 77 AS col2
----
NULL

query I rowsort
SELECT ALL + 60 + 21 AS col2
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-9287
SELECT DISTINCT + 87 + 76 + + + MIN( DISTINCT + 28 ) - + SUM( DISTINCT 7 ) / 4 + + - CASE + - 98 WHEN - - 47 * - 92 * 53 THEN - - 63 / + 70 * + 86 - - 5 WHEN + + 73 + + ( + COUNT( * ) ) - - - 97 THEN + CASE - + 74 WHEN + - 13 THEN 78 END * - 29 * COUNT( * ) - + + 93 + - 8 - - - 83 * - AVG ( DISTINCT - 78 ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9287
SELECT DISTINCT + 87 + 76 + + + MIN ( DISTINCT + 28 ) - + SUM ( DISTINCT 7 ) / 4 + + - CASE + - 98 WHEN - - 47 * - 92 * 53 THEN - - 63 / + 70 * + 86 - - 5 WHEN + + 73 + + ( + COUNT ( * ) ) - - - 97 THEN + CASE - + 74 WHEN + - 13 THEN 78 END * - 29 * COUNT ( * ) - + + 93 + - 8 - - - 83 * - AVG ( DISTINCT - 78 ) END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9288
SELECT 95 * MAX( DISTINCT + 54 ) DIV 31 DIV NULLIF ( + MAX( - 41 ), + CASE - ( 33 ) WHEN COUNT( DISTINCT 39 ) DIV 19 + + COUNT( * ) THEN 3 + - 53 + + 45 + + + 88 + + + 78 DIV - 19 + - 48 + CAST( - - 92 AS SIGNED ) END + - + CASE - 69 WHEN + 29 THEN 84 * + CASE + 51 WHEN + + 20 + 35 THEN 64 WHEN 88 + - ( + 56 ) THEN + 99 * - 87 ELSE - ( + MIN( DISTINCT 26 ) ) END WHEN 20 + COUNT( * ) THEN - 77 ELSE NULL END + - 83 ) + + COUNT( * )
----
-3

skipif mysql # not compatible
query I rowsort label-9288
SELECT 95 * MAX ( DISTINCT + 54 ) / 31 / NULLIF ( + MAX ( - 41 ), + CASE - ( 33 ) WHEN COUNT ( DISTINCT 39 ) / 19 + + COUNT ( * ) THEN 3 + - 53 + + 45 + + + 88 + + + 78 / - 19 + - 48 + CAST ( - - 92 AS INTEGER ) END + - + CASE - 69 WHEN + 29 THEN 84 * + CASE + 51 WHEN + + 20 + 35 THEN 64 WHEN 88 + - ( + 56 ) THEN + 99 * - 87 ELSE - ( + MIN ( DISTINCT 26 ) ) END WHEN 20 + COUNT ( * ) THEN - 77 ELSE NULL END + - 83 ) + + COUNT ( * )
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9289
SELECT DISTINCT - COUNT( ALL - 81 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-9289
SELECT DISTINCT - COUNT ( ALL - 81 ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9290
SELECT ALL + - 43 + - + ( - MIN( ALL + 91 ) )
----
48

skipif mysql # not compatible
query I rowsort label-9290
SELECT ALL + - 43 + - + ( - MIN ( ALL + 91 ) )
----
48

onlyif mysql # aggregate syntax: 
query II rowsort label-9291
SELECT + MAX( + + 61 ) * - - MIN( ( + 80 ) ) AS col2, + 48
----
4880
48

skipif mysql # not compatible
query II rowsort label-9291
SELECT + MAX ( + + 61 ) * - - MIN ( ( + 80 ) ) AS col2, + 48
----
4880
48

query I rowsort
SELECT DISTINCT + + 31 * + CASE - - ( - - 25 ) WHEN - 70 * + 37 THEN - 28 ELSE NULL END + - 36 * 36
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9293
SELECT + CAST( 60 AS SIGNED ) + + 35
----
95

skipif mysql # not compatible
query I rowsort label-9293
SELECT + CAST ( 60 AS INTEGER ) + + 35
----
95

query I rowsort
SELECT ALL - + 37 col0
----
-37

onlyif mysql # aggregate syntax: 
query II rowsort label-9295
SELECT DISTINCT - - 1 + + COALESCE ( + + 78, + - 81, + 96 ), - 28 + - MIN( + 88 ) AS col2
----
79
-116

skipif mysql # not compatible
query II rowsort label-9295
SELECT DISTINCT - - 1 + + COALESCE ( + + 78, + - 81, + 96 ), - 28 + - MIN ( + 88 ) AS col2
----
79
-116

onlyif mysql # aggregate syntax: 
query I rowsort label-9296
SELECT ( - + SUM( ( - 18 ) ) )
----
18

skipif mysql # not compatible
query I rowsort label-9296
SELECT ( - + SUM ( ( - 18 ) ) )
----
18

query I rowsort
SELECT ALL - - 60 col2
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-9298
SELECT - 30 + + 50 * COUNT( * )
----
20

skipif mysql # not compatible
query I rowsort label-9298
SELECT - 30 + + 50 * COUNT ( * )
----
20

query I rowsort
SELECT + AVG ( COALESCE ( + + CASE - + 4 WHEN - 70 THEN + 35 * - - 27 + - ( - 76 ) * 99 END, - 71 + ( + 74 ) ) ) * - + CASE + 15 WHEN + - 3 THEN + 99 / 25 * 14 WHEN - 84 / + + 79 THEN NULL END AS col2
----
NULL

query II rowsort
SELECT - - 57 AS col0, + 26 AS col2
----
57
26

onlyif mysql # aggregate syntax: 
query I rowsort label-9301
SELECT - - SUM( 39 ) AS col0
----
39

skipif mysql # not compatible
query I rowsort label-9301
SELECT - - SUM ( 39 ) AS col0
----
39

query I rowsort
SELECT - 70 * + + 71 AS col0
----
-4970

onlyif mysql # aggregate syntax: 
query I rowsort label-9303
SELECT + MIN( ALL + 83 ) + + - ( + - COUNT( * ) )
----
84

skipif mysql # not compatible
query I rowsort label-9303
SELECT + MIN ( ALL + 83 ) + + - ( + - COUNT ( * ) )
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-9304
SELECT ALL - COUNT( * ) * + 87
----
-87

skipif mysql # not compatible
query I rowsort label-9304
SELECT ALL - COUNT ( * ) * + 87
----
-87

query I rowsort
SELECT + 19 * - 90
----
-1710

query I rowsort
SELECT ( - 66 ) * - 6
----
396

query I rowsort
SELECT ALL ( + 5 ) * 34 AS col1
----
170

onlyif mysql # DIV for integer division: 
query I rowsort label-9308
SELECT ( 5 ) DIV 90 * + 69 DIV 99
----
0

skipif mysql # not compatible
query I rowsort label-9308
SELECT ( 5 ) / 90 * + 69 / 99
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9309
SELECT ALL 48, - SUM( ALL - COALESCE ( - 67, CAST( 12 AS SIGNED ) * CAST( 56 AS SIGNED ), + 92 ) ) AS col2
----
48
-67

skipif mysql # not compatible
query II rowsort label-9309
SELECT ALL 48, - SUM ( ALL - COALESCE ( - 67, CAST ( 12 AS INTEGER ) * CAST ( 56 AS INTEGER ), + 92 ) ) AS col2
----
48
-67

query II rowsort
SELECT 78, 58 + - 26 AS col1
----
78
32

onlyif mysql # aggregate syntax: 
query I rowsort label-9311
SELECT NULLIF ( 87, - - COUNT( * ) + - - 61 ) + + - 2 - - 11
----
96

skipif mysql # not compatible
query I rowsort label-9311
SELECT NULLIF ( 87, - - COUNT ( * ) + - - 61 ) + + - 2 - - 11
----
96

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9312
SELECT ALL 8 col2, ( - ( + 32 ) ) + - CAST( NULL AS SIGNED ) AS col0
----
8
NULL

skipif mysql # not compatible
query II rowsort label-9312
SELECT ALL 8 col2, ( - ( + 32 ) ) + - CAST ( NULL AS INTEGER ) AS col0
----
8
NULL

query II rowsort
SELECT ALL 59 AS col1, 58
----
59
58

onlyif mysql # aggregate syntax: 
query I rowsort label-9314
SELECT - CASE + + 6 WHEN + COUNT( * ) / + 59 + - - 69 THEN NULL WHEN - COUNT( * ) - - + 69 + + - COUNT( * ) * - - ( - 46 ) THEN - - 10 WHEN - 9 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9314
SELECT - CASE + + 6 WHEN + COUNT ( * ) / + 59 + - - 69 THEN NULL WHEN - COUNT ( * ) - - + 69 + + - COUNT ( * ) * - - ( - 46 ) THEN - - 10 WHEN - 9 THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT 41 + - - 43 + + + 87 + - + 42 + + 90 AS col1
----
219

query II rowsort
SELECT 7, 24 AS col2
----
7
24

onlyif mysql # aggregate syntax: 
query II rowsort label-9317
SELECT 83 + - 95 + - NULLIF ( + 61, 64 + - NULLIF ( - 60, - 58 + - 61 ) ) * + COUNT( * ) + + 23 * - - 69 AS col2, + 33
----
1514
33

skipif mysql # not compatible
query II rowsort label-9317
SELECT 83 + - 95 + - NULLIF ( + 61, 64 + - NULLIF ( - 60, - 58 + - 61 ) ) * + COUNT ( * ) + + 23 * - - 69 AS col2, + 33
----
1514
33

onlyif mysql # aggregate syntax: 
query II rowsort label-9318
SELECT - MIN( - - COALESCE ( + 83, + + 2 * - 72 + - 37 ) ) AS col1, - 37 - 3 AS col0
----
-83
-40

skipif mysql # not compatible
query II rowsort label-9318
SELECT - MIN ( - - COALESCE ( + 83, + + 2 * - 72 + - 37 ) ) AS col1, - 37 - 3 AS col0
----
-83
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-9319
SELECT ALL + 91 + + NULLIF ( - - COUNT( * ), - - 96 / - 10 ) AS col2
----
92

skipif mysql # not compatible
query I rowsort label-9319
SELECT ALL + 91 + + NULLIF ( - - COUNT ( * ), - - 96 / - 10 ) AS col2
----
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9320
SELECT DISTINCT CAST( NULL AS SIGNED ) + + 41 + 68 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9320
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + 41 + 68 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9321
SELECT - ( - + CAST( NULL AS DECIMAL ) ) - - CAST( - 27 AS SIGNED ) - + + 34 - - - SUM( + 72 ) * - 20 * - + 24 * - 75 * + + 41 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9321
SELECT - ( - + CAST ( NULL AS REAL ) ) - - CAST ( - 27 AS INTEGER ) - + + 34 - - - SUM ( + 72 ) * - 20 * - + 24 * - 75 * + + 41 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9322
SELECT ALL 80 * COUNT( * ) * - 29 AS col2
----
-2320

skipif mysql # not compatible
query I rowsort label-9322
SELECT ALL 80 * COUNT ( * ) * - 29 AS col2
----
-2320

query II rowsort
SELECT DISTINCT + 15, 7 + + - 72 + 94 AS col2
----
15
29

query I rowsort
SELECT NULLIF ( + 32, + + 47 ) AS col1
----
32

query I rowsort
SELECT + + 80 * - 5 AS col0
----
-400

query II rowsort
SELECT + 64 AS col0, + 90 * + 84
----
64
7560

onlyif mysql # DIV for integer division: 
query I rowsort label-9327
SELECT - 34 DIV + + ( 10 ) AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-9327
SELECT - 34 / + + ( 10 ) AS col2
----
-3

query II rowsort
SELECT ALL + 67, - 32 AS col1
----
67
-32

query I rowsort
SELECT - ( - + 89 ) AS col0
----
89

query I rowsort
SELECT - 47 * - 81
----
3807

query I rowsort
SELECT ALL - 47 * 88 - + 60 AS col1
----
-4196

onlyif mysql # DIV for integer division: 
query I rowsort label-9332
SELECT - 0 DIV - + 40 col0
----
0

skipif mysql # not compatible
query I rowsort label-9332
SELECT - 0 / - + 40 col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9333
SELECT DISTINCT + + 70 AS col2, 65 * + COUNT( * ) AS col2
----
70
65

skipif mysql # not compatible
query II rowsort label-9333
SELECT DISTINCT + + 70 AS col2, 65 * + COUNT ( * ) AS col2
----
70
65

query II rowsort
SELECT ALL + 92 AS col2, + 30
----
92
30

onlyif mysql # DIV for integer division: 
query II rowsort label-9335
SELECT DISTINCT + + 93, - 49 DIV + + 70 AS col2
----
93
0

skipif mysql # not compatible
query II rowsort label-9335
SELECT DISTINCT + + 93, - 49 / + + 70 AS col2
----
93
0

query II rowsort
SELECT 56 AS col2, 86 AS col2
----
56
86

query I rowsort
SELECT ALL + + ( - 59 ) AS col1
----
-59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9338
SELECT CASE - 96 WHEN 0 * - COUNT( * ) + - 77 * + 7 THEN + 62 * 75 / 53 ELSE NULL END * + 11 + - + 36 + + 20 / - CAST( NULL AS SIGNED ) - - - CAST( + 3 AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9338
SELECT CASE - 96 WHEN 0 * - COUNT ( * ) + - 77 * + 7 THEN + 62 * 75 / 53 ELSE NULL END * + 11 + - + 36 + + 20 / - CAST ( NULL AS INTEGER ) - - - CAST ( + 3 AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT - + 12 + + 13
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9340
SELECT - - 38 + + COUNT( * )
----
39

skipif mysql # not compatible
query I rowsort label-9340
SELECT - - 38 + + COUNT ( * )
----
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9341
SELECT DISTINCT + - ( + COALESCE ( + 78, - 41, - 59 + + 91 * + COUNT( * ) ) ) * - CAST( NULL AS SIGNED ) * + 0 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9341
SELECT DISTINCT + - ( + COALESCE ( + 78, - 41, - 59 + + 91 * + COUNT ( * ) ) ) * - CAST ( NULL AS INTEGER ) * + 0 AS col1
----
NULL

query I rowsort
SELECT ALL COALESCE ( + 36, + ( 24 ), - - 78, + ( - - 49 ) * 62 * 49 * 99 + 30 * + 2 + - 40 )
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-9343
SELECT ALL + NULLIF ( + COUNT( * ), - MAX( DISTINCT - 44 ) ) * 31 + 34 col0
----
65

skipif mysql # not compatible
query I rowsort label-9343
SELECT ALL + NULLIF ( + COUNT ( * ), - MAX ( DISTINCT - 44 ) ) * 31 + 34 col0
----
65

query I rowsort
SELECT + 40 + ( 28 )
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-9345
SELECT ALL - COALESCE ( - 27, + 29, + 3, - - MAX( DISTINCT - 55 ) ) + - + 28 + + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-9345
SELECT ALL - COALESCE ( - 27, + 29, + 3, - - MAX ( DISTINCT - 55 ) ) + - + 28 + + COUNT ( * )
----
0

query I rowsort
SELECT - 28 + 29
----
1

query I rowsort
SELECT + 4 * 40
----
160

query I rowsort
SELECT DISTINCT ( + - 59 ) AS col2
----
-59

query I rowsort
SELECT DISTINCT 33 + ( - + 31 )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-9350
SELECT ALL 92 + - NULLIF ( - COUNT( * ), + + 0 + - + 63 + + + COUNT( * ) * - 76 * + - 13 ) AS col2
----
93

skipif mysql # not compatible
query I rowsort label-9350
SELECT ALL 92 + - NULLIF ( - COUNT ( * ), + + 0 + - + 63 + + + COUNT ( * ) * - 76 * + - 13 ) AS col2
----
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9351
SELECT ALL CAST( - 25 AS SIGNED )
----
-25

skipif mysql # not compatible
query I rowsort label-9351
SELECT ALL CAST ( - 25 AS INTEGER )
----
-25

query I rowsort
SELECT DISTINCT 62 + - 77
----
-15

query I rowsort
SELECT DISTINCT 39 * 0 * 35
----
0

query I rowsort
SELECT ALL 97 + - + 38 + + 14 * - + 3
----
17

query I rowsort
SELECT - COALESCE ( - 22, + 99 * + 17 + 77 )
----
22

query I rowsort
SELECT - + 29 * - - 88 + - 71
----
-2623

onlyif mysql # aggregate syntax: 
query I rowsort label-9357
SELECT + + 15 / + - 34 * NULLIF ( + - NULLIF ( NULLIF ( - 88, + - 24 * 65 + + 28 + - - 92 ), + + 7 ), + 15 + + 44 * - CASE 89 WHEN - + 44 - 16 * COUNT( DISTINCT 22 ) THEN + 85 * + 37 WHEN - + CASE 86 WHEN - + 38 * - 51 THEN NULL ELSE + 34 END / - 22 THEN + 43 WHEN + 36 * + - 19 - COALESCE ( - 88, + ( 66 ) / - 43 + + 81 ) THEN NULL WHEN - 83 + 66 THEN NULL ELSE + 78 + - ( 80 + + 41 ) END * 0 ) + - ( + 93 + CASE 54 WHEN 31 THEN + 15 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-9357
SELECT + + 15 / + - 34 * NULLIF ( + - NULLIF ( NULLIF ( - 88, + - 24 * 65 + + 28 + - - 92 ), + + 7 ), + 15 + + 44 * - CASE 89 WHEN - + 44 - 16 * COUNT ( DISTINCT 22 ) THEN + 85 * + 37 WHEN - + CASE 86 WHEN - + 38 * - 51 THEN NULL ELSE + 34 END / - 22 THEN + 43 WHEN + 36 * + - 19 - COALESCE ( - 88, + ( 66 ) / - 43 + + 81 ) THEN NULL WHEN - 83 + 66 THEN NULL ELSE + 78 + - ( 80 + + 41 ) END * 0 ) + - ( + 93 + CASE 54 WHEN 31 THEN + 15 END )
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9358
SELECT ALL 10 / CAST( NULL AS DECIMAL ) + 52 - + 19 - 23 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9358
SELECT ALL 10 / CAST ( NULL AS REAL ) + 52 - + 19 - 23 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9359
SELECT + + COALESCE ( 28, 39 + - + 47 + + 27 * - 19 - - 41 + CASE - - COUNT( * ) WHEN - 42 + COUNT( * ) * - 92 + + NULLIF ( + COUNT( * ), + CAST( NULL AS SIGNED ) ) THEN + COALESCE ( 40, + 85 * + COUNT( * ) ) END + ( + COUNT( * ) ), - 98 ) + + 25 AS col1, 71 + - 38 AS col1
----
53
33

skipif mysql # not compatible
query II rowsort label-9359
SELECT + + COALESCE ( 28, 39 + - + 47 + + 27 * - 19 - - 41 + CASE - - COUNT ( * ) WHEN - 42 + COUNT ( * ) * - 92 + + NULLIF ( + COUNT ( * ), + CAST ( NULL AS INTEGER ) ) THEN + COALESCE ( 40, + 85 * + COUNT ( * ) ) END + ( + COUNT ( * ) ), - 98 ) + + 25 AS col1, 71 + - 38 AS col1
----
53
33

onlyif mysql # aggregate syntax: 
query I rowsort label-9360
SELECT DISTINCT + ( MIN( - - 49 ) )
----
49

skipif mysql # not compatible
query I rowsort label-9360
SELECT DISTINCT + ( MIN ( - - 49 ) )
----
49

query I rowsort
SELECT + - 52 + 91
----
39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9362
SELECT ALL + + CAST( + + ( - + 35 ) AS SIGNED ) AS col1
----
-35

skipif mysql # not compatible
query I rowsort label-9362
SELECT ALL + + CAST ( + + ( - + 35 ) AS INTEGER ) AS col1
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-9363
SELECT + - COUNT( * ) * 71 * + 78 AS col1
----
-5538

skipif mysql # not compatible
query I rowsort label-9363
SELECT + - COUNT ( * ) * 71 * + 78 AS col1
----
-5538

onlyif mysql # aggregate syntax: 
query II rowsort label-9364
SELECT DISTINCT + + MAX( 29 ) AS col0, ( COUNT( * ) )
----
29
1

skipif mysql # not compatible
query II rowsort label-9364
SELECT DISTINCT + + MAX ( 29 ) AS col0, ( COUNT ( * ) )
----
29
1

onlyif mysql # aggregate syntax: 
query II rowsort label-9365
SELECT + COUNT( ALL + 42 ) AS col2, + 71 col1
----
1
71

skipif mysql # not compatible
query II rowsort label-9365
SELECT + COUNT ( ALL + 42 ) AS col2, + 71 col1
----
1
71

query I rowsort
SELECT - 48 + 40 col2
----
-8

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9367
SELECT - - CASE - - 68 WHEN - 65 THEN NULL WHEN - - 88 * + - CAST( 5 AS DECIMAL ) THEN 65 END / 77 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9367
SELECT - - CASE - - 68 WHEN - 65 THEN NULL WHEN - - 88 * + - CAST ( 5 AS REAL ) THEN 65 END / 77 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9368
SELECT - 61 + + 77, - COALESCE ( + CASE + CAST( + MAX( + 91 ) AS SIGNED ) WHEN + - NULLIF ( + 99, + 89 ) THEN + 98 WHEN 99 THEN - 19 * - COALESCE ( - 98, + CAST( NULL AS SIGNED ) * + ( + - 15 ), 38 ) * 28 + - 0 END, - 23, + 46 ) * 64 AS col0
----
16
1472

skipif mysql # not compatible
query II rowsort label-9368
SELECT - 61 + + 77, - COALESCE ( + CASE + CAST ( + MAX ( + 91 ) AS INTEGER ) WHEN + - NULLIF ( + 99, + 89 ) THEN + 98 WHEN 99 THEN - 19 * - COALESCE ( - 98, + CAST ( NULL AS INTEGER ) * + ( + - 15 ), 38 ) * 28 + - 0 END, - 23, + 46 ) * 64 AS col0
----
16
1472

onlyif mysql # aggregate syntax: 
query I rowsort label-9369
SELECT DISTINCT 66 * - COUNT( * )
----
-66

skipif mysql # not compatible
query I rowsort label-9369
SELECT DISTINCT 66 * - COUNT ( * )
----
-66

query II rowsort
SELECT DISTINCT + ( - - 0 ), - 57 + 0 + 53 * - 73 AS col1
----
0
-3926

onlyif mysql # DIV for integer division: 
query I rowsort label-9371
SELECT DISTINCT - 97 DIV 72 DIV - 57 col0
----
0

skipif mysql # not compatible
query I rowsort label-9371
SELECT DISTINCT - 97 / 72 / - 57 col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9372
SELECT - COUNT( * ) DIV - + 53 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9372
SELECT - COUNT ( * ) / - + 53 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9373
SELECT - + 75 * COUNT( * ) - + - ( + 93 ) - + 26 AS col0
----
-8

skipif mysql # not compatible
query I rowsort label-9373
SELECT - + 75 * COUNT ( * ) - + - ( + 93 ) - + 26 AS col0
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-9374
SELECT DISTINCT - 29 * - 95 + + + 99 + - - MAX( - ( + + 50 ) ) col1
----
2804

skipif mysql # not compatible
query I rowsort label-9374
SELECT DISTINCT - 29 * - 95 + + + 99 + - - MAX ( - ( + + 50 ) ) col1
----
2804

onlyif mysql # aggregate syntax: 
query I rowsort label-9375
SELECT - MIN( DISTINCT 37 )
----
-37

skipif mysql # not compatible
query I rowsort label-9375
SELECT - MIN ( DISTINCT 37 )
----
-37

onlyif mysql # aggregate syntax: 
query III rowsort label-9376
SELECT - COUNT( * ) AS col2, COUNT( * ) * - - 77 * + + 1 AS col1, - + 57
----
-1
77
-57

skipif mysql # not compatible
query III rowsort label-9376
SELECT - COUNT ( * ) AS col2, COUNT ( * ) * - - 77 * + + 1 AS col1, - + 57
----
-1
77
-57

query I rowsort
SELECT NULLIF ( + 22, + 31 )
----
22

query I rowsort
SELECT - 17 * + ( 76 ) AS col2
----
-1292

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9379
SELECT DISTINCT CAST( + COALESCE ( - + 26, + 91 ) AS SIGNED )
----
-26

skipif mysql # not compatible
query I rowsort label-9379
SELECT DISTINCT CAST ( + COALESCE ( - + 26, + 91 ) AS INTEGER )
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-9380
SELECT 67 - 29 * MIN( DISTINCT + 52 ) * + - ( + 40 ) + + 79
----
60466

skipif mysql # not compatible
query I rowsort label-9380
SELECT 67 - 29 * MIN ( DISTINCT + 52 ) * + - ( + 40 ) + + 79
----
60466

query I rowsort
SELECT ALL - 1 * - 10
----
10

query I rowsort
SELECT DISTINCT - 92 + + 72
----
-20

query II rowsort
SELECT DISTINCT 22 AS col1, 46
----
22
46

query I rowsort
SELECT ALL - 74 + - + 95 AS col0
----
-169

query I rowsort
SELECT 57 * - 12 AS col2
----
-684

query I rowsort
SELECT 66 + ( + 58 ) + + 15
----
139

onlyif mysql # aggregate syntax: 
query II rowsort label-9387
SELECT 32 AS col1, + 74 * + 90 * SUM( + 55 )
----
32
366300

skipif mysql # not compatible
query II rowsort label-9387
SELECT 32 AS col1, + 74 * + 90 * SUM ( + 55 )
----
32
366300

onlyif mysql # aggregate syntax: 
query I rowsort label-9388
SELECT ALL COUNT( * ) - 87 AS col2
----
-86

skipif mysql # not compatible
query I rowsort label-9388
SELECT ALL COUNT ( * ) - 87 AS col2
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-9389
SELECT ALL - + COUNT( DISTINCT CASE WHEN NOT ( NULL ) <> + - 78 THEN - 7 ELSE NULL END ) * ( + COALESCE ( 30, 17 ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9389
SELECT ALL - + COUNT ( DISTINCT CASE WHEN NOT ( NULL ) <> + - 78 THEN - 7 ELSE NULL END ) * ( + COALESCE ( 30, 17 ) ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9390
SELECT DISTINCT - - COUNT( * ) * 32
----
32

skipif mysql # not compatible
query I rowsort label-9390
SELECT DISTINCT - - COUNT ( * ) * 32
----
32

query I rowsort
SELECT ALL 66 * 90
----
5940

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9392
SELECT - 23 * + + COUNT( + 43 ) / CAST( NULL AS SIGNED ) * + 99
----
NULL

skipif mysql # not compatible
query I rowsort label-9392
SELECT - 23 * + + COUNT ( + 43 ) / CAST ( NULL AS INTEGER ) * + 99
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9393
SELECT 23 AS col2, + CAST( - + MAX( + 8 ) AS SIGNED ) + - 91
----
23
-99

skipif mysql # not compatible
query II rowsort label-9393
SELECT 23 AS col2, + CAST ( - + MAX ( + 8 ) AS INTEGER ) + - 91
----
23
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9394
SELECT - CAST( - 13 AS SIGNED ) * 67 - + 87 - - 85 * - - ( + + 14 ) AS col0
----
1974

skipif mysql # not compatible
query I rowsort label-9394
SELECT - CAST ( - 13 AS INTEGER ) * 67 - + 87 - - 85 * - - ( + + 14 ) AS col0
----
1974

onlyif mysql # aggregate syntax: 
query I rowsort label-9395
SELECT DISTINCT MIN( - ( 12 ) ) + + 22 col1
----
10

skipif mysql # not compatible
query I rowsort label-9395
SELECT DISTINCT MIN ( - ( 12 ) ) + + 22 col1
----
10

onlyif mysql # aggregate syntax: 
query II rowsort label-9396
SELECT ALL - + 94 * - - 57 + 46 col1, COUNT( * ) AS col1
----
-5312
1

skipif mysql # not compatible
query II rowsort label-9396
SELECT ALL - + 94 * - - 57 + 46 col1, COUNT ( * ) AS col1
----
-5312
1

query I rowsort
SELECT 11 * + 47
----
517

query I rowsort
SELECT ALL 95 + + - 28 AS col1
----
67

query I rowsort
SELECT 51 + 96 AS col2
----
147

query I rowsort
SELECT 67 + - 71
----
-4

onlyif mysql # DIV for integer division: 
query I rowsort label-9401
SELECT ALL + 32 DIV 33 * + 52 col0
----
0

skipif mysql # not compatible
query I rowsort label-9401
SELECT ALL + 32 / 33 * + 52 col0
----
0

query I rowsort
SELECT DISTINCT 22 + + ( 60 )
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-9403
SELECT ALL 80 + - ( - + COALESCE ( + COUNT( * ), SUM( ALL - 36 ) ) )
----
81

skipif mysql # not compatible
query I rowsort label-9403
SELECT ALL 80 + - ( - + COALESCE ( + COUNT ( * ), SUM ( ALL - 36 ) ) )
----
81

query I rowsort
SELECT ALL + 14 * - + 36 AS col0
----
-504

query II rowsort
SELECT 86 + - 41 * + 11 * 44 + - 28, + 67 * - 61 * 55 * + 81 col1
----
-19786
-18207585

query I rowsort
SELECT ALL + 42 - - + 53
----
95

onlyif mysql # DIV for integer division: 
query I rowsort label-9407
SELECT 95 + - 15 + - 96 DIV - COALESCE ( - + 95, - 4 * - + 55 + + 41 + 89 )
----
79

skipif mysql # not compatible
query I rowsort label-9407
SELECT 95 + - 15 + - 96 / - COALESCE ( - + 95, - 4 * - + 55 + + 41 + 89 )
----
79

query II rowsort
SELECT 66 * 85, 11 AS col0
----
5610
11

query I rowsort
SELECT 2 * + 25
----
50

query I rowsort
SELECT ALL - 43 - 97
----
-140

query I rowsort
SELECT 92 * 59 * 44
----
238832

query I rowsort
SELECT ALL - 70 * + 77 AS col1
----
-5390

onlyif mysql # aggregate syntax: 
query II rowsort label-9413
SELECT DISTINCT - 63 * + - 19 AS col1, COUNT( * ) * - ( + + MAX( - + 45 ) ) - - - 47 AS col0
----
1197
-2

skipif mysql # not compatible
query II rowsort label-9413
SELECT DISTINCT - 63 * + - 19 AS col1, COUNT ( * ) * - ( + + MAX ( - + 45 ) ) - - - 47 AS col0
----
1197
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-9414
SELECT + MIN( 75 ) + + - 4 AS col2
----
71

skipif mysql # not compatible
query I rowsort label-9414
SELECT + MIN ( 75 ) + + - 4 AS col2
----
71

query I rowsort
SELECT ALL - + 30 * + 74 AS col2
----
-2220

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9416
SELECT - CAST( - COUNT( * ) AS SIGNED ) * - ( + SUM( DISTINCT 89 ) ) col2
----
-89

skipif mysql # not compatible
query I rowsort label-9416
SELECT - CAST ( - COUNT ( * ) AS INTEGER ) * - ( + SUM ( DISTINCT 89 ) ) col2
----
-89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9417
SELECT 1 + ( ( - - CAST( - - 47 AS SIGNED ) ) ) * - 35 AS col0
----
-1644

skipif mysql # not compatible
query I rowsort label-9417
SELECT 1 + ( ( - - CAST ( - - 47 AS INTEGER ) ) ) * - 35 AS col0
----
-1644

onlyif mysql # aggregate syntax: 
query I rowsort label-9418
SELECT COUNT( * ) + 97 + + - COUNT( * ) AS col0
----
97

skipif mysql # not compatible
query I rowsort label-9418
SELECT COUNT ( * ) + 97 + + - COUNT ( * ) AS col0
----
97

onlyif mysql # DIV for integer division: 
query I rowsort label-9419
SELECT ALL + 80 DIV 40 col0
----
2

skipif mysql # not compatible
query I rowsort label-9419
SELECT ALL + 80 / 40 col0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-9420
SELECT 11 * + 2 + - + 93 - 36 * - + 95 + - COUNT( * ) AS col1
----
3348

skipif mysql # not compatible
query I rowsort label-9420
SELECT 11 * + 2 + - + 93 - 36 * - + 95 + - COUNT ( * ) AS col1
----
3348

onlyif mysql # DIV for integer division: 
query I rowsort label-9421
SELECT 57 DIV - 12
----
-4

skipif mysql # not compatible
query I rowsort label-9421
SELECT 57 / - 12
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-9422
SELECT ALL - 12 * - 74 + + - 90 + - COUNT( * ) * 70 + + 19 + - + COALESCE ( - - 51, + COUNT( * ) + 73 + 84 * + + 22 )
----
696

skipif mysql # not compatible
query I rowsort label-9422
SELECT ALL - 12 * - 74 + + - 90 + - COUNT ( * ) * 70 + + 19 + - + COALESCE ( - - 51, + COUNT ( * ) + 73 + 84 * + + 22 )
----
696

onlyif mysql # aggregate syntax: 
query II rowsort label-9423
SELECT + + COALESCE ( + 46, - + 8 + - 30 + - 76 + - 43 * + COALESCE ( 60, + ( + + COUNT( * ) ) ) ), 69 + + - ( 74 ) AS col2
----
46
-5

skipif mysql # not compatible
query II rowsort label-9423
SELECT + + COALESCE ( + 46, - + 8 + - 30 + - 76 + - 43 * + COALESCE ( 60, + ( + + COUNT ( * ) ) ) ), 69 + + - ( 74 ) AS col2
----
46
-5

onlyif mysql # aggregate syntax: 
query II rowsort label-9424
SELECT ALL - 48 * MIN( 33 ) + + + 85 * 84 AS col0, 14 * 86 / ( - MAX( CASE - 91 WHEN - 43 THEN + 35 WHEN + 49 THEN - 98 END ) ) + + 27 + + 17 * - COUNT( * ) * 50 + MAX( 75 ) + + 92 col2
----
5556
NULL

skipif mysql # not compatible
query II rowsort label-9424
SELECT ALL - 48 * MIN ( 33 ) + + + 85 * 84 AS col0, 14 * 86 / ( - MAX ( CASE - 91 WHEN - 43 THEN + 35 WHEN + 49 THEN - 98 END ) ) + + 27 + + 17 * - COUNT ( * ) * 50 + MAX ( 75 ) + + 92 col2
----
5556
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9425
SELECT ALL + - 15 * - - 64 * 91 + COUNT( * ) AS col0, COUNT( * ) * - 63 AS col2
----
-87359
-63

skipif mysql # not compatible
query II rowsort label-9425
SELECT ALL + - 15 * - - 64 * 91 + COUNT ( * ) AS col0, COUNT ( * ) * - 63 AS col2
----
-87359
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-9426
SELECT MIN( 69 ) * 28 AS col2
----
1932

skipif mysql # not compatible
query I rowsort label-9426
SELECT MIN ( 69 ) * 28 AS col2
----
1932

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9427
SELECT DISTINCT - + CASE - AVG ( - 25 ) WHEN ( MIN( + 79 ) ) THEN - COALESCE ( - 17, + CAST( 55 AS SIGNED ) ) WHEN COALESCE ( - CASE WHEN - 23 BETWEEN + + 23 AND - + COUNT( * ) THEN + 98 + - 38 * + + 89 ELSE NULL END, + COUNT( ALL ( + 1 ) ) ) - - 21 THEN - 76 * - SUM( ALL 41 ) + + 99 - - 7 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9427
SELECT DISTINCT - + CASE - AVG ( - 25 ) WHEN ( MIN ( + 79 ) ) THEN - COALESCE ( - 17, + CAST ( 55 AS INTEGER ) ) WHEN COALESCE ( - CASE WHEN - 23 BETWEEN + + 23 AND - + COUNT ( * ) THEN + 98 + - 38 * + + 89 ELSE NULL END, + COUNT ( ALL ( + 1 ) ) ) - - 21 THEN - 76 * - SUM ( ALL 41 ) + + 99 - - 7 END AS col1
----
NULL

query I rowsort
SELECT + 63 * - - 42
----
2646

onlyif mysql # aggregate syntax: 
query I rowsort label-9429
SELECT COUNT( ALL 25 )
----
1

skipif mysql # not compatible
query I rowsort label-9429
SELECT COUNT ( ALL 25 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9430
SELECT DISTINCT CAST( NULL AS SIGNED ) * + 87 * 11 * - COUNT( * ) / - 92 + + + 38 * + + 89 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9430
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + 87 * 11 * - COUNT ( * ) / - 92 + + + 38 * + + 89 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9431
SELECT ALL 17 + COUNT( * ) DIV + 95 AS col0
----
17

skipif mysql # not compatible
query I rowsort label-9431
SELECT ALL 17 + COUNT ( * ) / + 95 AS col0
----
17

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9432
SELECT ALL + 96 AS col2, 51 - CAST( - 19 AS SIGNED ) AS col1
----
96
70

skipif mysql # not compatible
query II rowsort label-9432
SELECT ALL + 96 AS col2, 51 - CAST ( - 19 AS INTEGER ) AS col1
----
96
70

query I rowsort
SELECT DISTINCT COALESCE ( - 6, + 67 ) + 58 AS col1
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-9434
SELECT ALL 69 * 16 * + + MIN( DISTINCT - 59 )
----
-65136

skipif mysql # not compatible
query I rowsort label-9434
SELECT ALL 69 * 16 * + + MIN ( DISTINCT - 59 )
----
-65136

query I rowsort
SELECT + CASE + 3 WHEN + 14 THEN NULL WHEN 80 THEN NULL ELSE 53 + 65 END * - 35 * 88
----
-363440

query I rowsort
SELECT + COALESCE ( - 86, - COALESCE ( + 19, + 29, + - 42 ) )
----
-86

query II rowsort
SELECT - 45 * + 94 * - + 10 AS col1, 82 AS col1
----
42300
82

onlyif mysql # DIV for integer division: 
query I rowsort label-9438
SELECT ALL + 11 - 64 DIV + - 30 + + 10 * - 26 AS col2
----
-247

skipif mysql # not compatible
query I rowsort label-9438
SELECT ALL + 11 - 64 / + - 30 + + 10 * - 26 AS col2
----
-247

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9439
SELECT + CAST( NULL AS SIGNED ) / 38
----
NULL

skipif mysql # not compatible
query I rowsort label-9439
SELECT + CAST ( NULL AS INTEGER ) / 38
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9440
SELECT ALL 15 * - 1 DIV - + 58 * + 26
----
0

skipif mysql # not compatible
query I rowsort label-9440
SELECT ALL 15 * - 1 / - + 58 * + 26
----
0

query II rowsort
SELECT ALL 31, + 51 AS col1
----
31
51

query I rowsort
SELECT + 85 - + 53
----
32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9443
SELECT ALL COUNT( * ) AS col1, + MIN( - - CAST( NULL AS SIGNED ) ) AS col0
----
1
NULL

skipif mysql # not compatible
query II rowsort label-9443
SELECT ALL COUNT ( * ) AS col1, + MIN ( - - CAST ( NULL AS INTEGER ) ) AS col0
----
1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9444
SELECT - - SUM( DISTINCT + + 2 ) * + 6 + 92
----
104

skipif mysql # not compatible
query I rowsort label-9444
SELECT - - SUM ( DISTINCT + + 2 ) * + 6 + 92
----
104

onlyif mysql # DIV for integer division: 
query I rowsort label-9445
SELECT DISTINCT 43 DIV 79 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9445
SELECT DISTINCT 43 / 79 AS col1
----
0

query II rowsort
SELECT - - 87, 73 + - 87 AS col1
----
87
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-9447
SELECT + - 20 + + 16 + + 38 * - COUNT( * ) * ( - 63 ) * + 75 AS col0
----
179546

skipif mysql # not compatible
query I rowsort label-9447
SELECT + - 20 + + 16 + + 38 * - COUNT ( * ) * ( - 63 ) * + 75 AS col0
----
179546

query I rowsort
SELECT + + 45 + 42 AS col1
----
87

query I rowsort
SELECT - + 40 - - 36
----
-4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9450
SELECT ALL NULLIF ( - 62, 19 * - 3 * - CASE - 4 WHEN - + 32 * - ( + NULLIF ( + 71, - 78 ) ) + + - COUNT( * ) THEN NULL ELSE CAST( 52 AS SIGNED ) * + 13 END ) + - 47 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9450
SELECT ALL NULLIF ( - 62, 19 * - 3 * - CASE - 4 WHEN - + 32 * - ( + NULLIF ( + 71, - 78 ) ) + + - COUNT ( * ) THEN NULL ELSE CAST ( 52 AS INTEGER ) * + 13 END ) + - 47 * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9451
SELECT DISTINCT + 90 + - ( + - CAST( + - CAST( NULL AS SIGNED ) AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9451
SELECT DISTINCT + 90 + - ( + - CAST ( + - CAST ( NULL AS INTEGER ) AS INTEGER ) )
----
NULL

query I rowsort
SELECT ALL + 68 + - + 37 AS col2
----
31

query I rowsort
SELECT - + 63 * - - 45 * - 63 * + - 0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9454
SELECT ALL + + ( + COUNT( * ) ) DIV - COUNT( * ) + + NULLIF ( - 39, + 9 ) AS col1
----
-40

skipif mysql # not compatible
query I rowsort label-9454
SELECT ALL + + ( + COUNT ( * ) ) / - COUNT ( * ) + + NULLIF ( - 39, + 9 ) AS col1
----
-40

query II rowsort
SELECT ALL + 61 AS col1, 38 col2
----
61
38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9456
SELECT DISTINCT + - CAST( + + 94 AS SIGNED ) AS col2
----
-94

skipif mysql # not compatible
query I rowsort label-9456
SELECT DISTINCT + - CAST ( + + 94 AS INTEGER ) AS col2
----
-94

query I rowsort
SELECT 77 * - 53 - - 93 * + 76 AS col1
----
2987

onlyif mysql # aggregate syntax: 
query I rowsort label-9458
SELECT ALL - - 40 * + 69 + 56 + + COUNT( * ) - - + 11 AS col2
----
2828

skipif mysql # not compatible
query I rowsort label-9458
SELECT ALL - - 40 * + 69 + 56 + + COUNT ( * ) - - + 11 AS col2
----
2828

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9459
SELECT - - 7 DIV + 60 - + 56 AS col1, 66 * COUNT( DISTINCT - + 83 )
----
-56
66

skipif mysql # not compatible
query II rowsort label-9459
SELECT - - 7 / + 60 - + 56 AS col1, 66 * COUNT ( DISTINCT - + 83 )
----
-56
66

query I rowsort
SELECT - 17 * + + 62
----
-1054

onlyif mysql # aggregate syntax: 
query I rowsort label-9461
SELECT ALL 97 * - - COUNT( * ) + + 85 + - 4
----
178

skipif mysql # not compatible
query I rowsort label-9461
SELECT ALL 97 * - - COUNT ( * ) + + 85 + - 4
----
178

onlyif mysql # aggregate syntax: 
query I rowsort label-9462
SELECT ( SUM( DISTINCT + ( 79 ) ) )
----
79

skipif mysql # not compatible
query I rowsort label-9462
SELECT ( SUM ( DISTINCT + ( 79 ) ) )
----
79

query I rowsort
SELECT - NULLIF ( - 81, + + ( + + 77 ) ) - + 85 + - 89 col1
----
-93

query I rowsort
SELECT DISTINCT 34 * 77 AS col2
----
2618

onlyif mysql # aggregate syntax: 
query I rowsort label-9465
SELECT + SUM( DISTINCT + ( 30 ) )
----
30

skipif mysql # not compatible
query I rowsort label-9465
SELECT + SUM ( DISTINCT + ( 30 ) )
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-9466
SELECT ALL + NULLIF ( - COALESCE ( + - ( COUNT( * ) ), + COUNT( * ) ), + 82 * + ( 5 ) * + 18 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9466
SELECT ALL + NULLIF ( - COALESCE ( + - ( COUNT ( * ) ), + COUNT ( * ) ), + 82 * + ( 5 ) * + 18 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9467
SELECT DISTINCT + 69 * COUNT( * )
----
69

skipif mysql # not compatible
query I rowsort label-9467
SELECT DISTINCT + 69 * COUNT ( * )
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-9468
SELECT 78 * - + 96 + + 57 * 77 - - COUNT( * ) + COUNT( * ) AS col0
----
-3097

skipif mysql # not compatible
query I rowsort label-9468
SELECT 78 * - + 96 + + 57 * 77 - - COUNT ( * ) + COUNT ( * ) AS col0
----
-3097

query I rowsort
SELECT + ( - ( + + 57 ) ) AS col2
----
-57

query I rowsort
SELECT DISTINCT + 70 * 79 AS col0
----
5530

query II rowsort
SELECT DISTINCT 24 AS col1, - 36 col0
----
24
-36

onlyif mysql # aggregate syntax: 
query II rowsort label-9472
SELECT ALL COUNT( * ) AS col1, - 74 * - 88
----
1
6512

skipif mysql # not compatible
query II rowsort label-9472
SELECT ALL COUNT ( * ) AS col1, - 74 * - 88
----
1
6512

query I rowsort
SELECT 16 * + 98 + + 39 + - 90 AS col0
----
1517

query I rowsort
SELECT + 38 + + 61
----
99

query I rowsort
SELECT - ( - + 1 ) AS col1
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9476
SELECT + + NULLIF ( + COUNT( * ), + + 76 ) DIV 74
----
0

skipif mysql # not compatible
query I rowsort label-9476
SELECT + + NULLIF ( + COUNT ( * ), + + 76 ) / 74
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9477
SELECT ALL 32 * COUNT( * ), ( MIN( ALL - - 73 ) ) * - ( - COALESCE ( 66, - 38 ) ) + - 73 AS col2
----
32
4745

skipif mysql # not compatible
query II rowsort label-9477
SELECT ALL 32 * COUNT ( * ), ( MIN ( ALL - - 73 ) ) * - ( - COALESCE ( 66, - 38 ) ) + - 73 AS col2
----
32
4745

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9478
SELECT ALL + 55 + - 60 - + 11 + + 81 + + 35 * + CAST( NULL AS SIGNED ) * CASE - - 6 WHEN + CAST( NULL AS SIGNED ) / - COUNT( * ) - + 46 * - 6 * + 30 * 69 THEN + - 87 + + 83 ELSE + 48 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9478
SELECT ALL + 55 + - 60 - + 11 + + 81 + + 35 * + CAST ( NULL AS INTEGER ) * CASE - - 6 WHEN + CAST ( NULL AS INTEGER ) / - COUNT ( * ) - + 46 * - 6 * + 30 * 69 THEN + - 87 + + 83 ELSE + 48 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9479
SELECT DISTINCT COUNT( * ) * - + 85 + + 88
----
3

skipif mysql # not compatible
query I rowsort label-9479
SELECT DISTINCT COUNT ( * ) * - + 85 + + 88
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9480
SELECT ALL CAST( - COUNT( + 16 ) AS SIGNED ) + + COUNT( * ) * + + 43 DIV + 71, + 88 * + CAST( + - 18 AS SIGNED ) AS col0
----
-1
-1584

skipif mysql # not compatible
query II rowsort label-9480
SELECT ALL CAST ( - COUNT ( + 16 ) AS INTEGER ) + + COUNT ( * ) * + + 43 / + 71, + 88 * + CAST ( + - 18 AS INTEGER ) AS col0
----
-1
-1584

onlyif mysql # aggregate syntax: 
query II rowsort label-9481
SELECT DISTINCT - 81 + - + 88 AS col0, ( + COALESCE ( - - COUNT( * ), 63 ) ) * + 87 * + 98 * - 39 * - COUNT( ALL + 44 )
----
-169
332514

skipif mysql # not compatible
query II rowsort label-9481
SELECT DISTINCT - 81 + - + 88 AS col0, ( + COALESCE ( - - COUNT ( * ), 63 ) ) * + 87 * + 98 * - 39 * - COUNT ( ALL + 44 )
----
-169
332514

onlyif mysql # aggregate syntax: 
query I rowsort label-9482
SELECT ALL + COUNT( * ) + + 31 AS col0
----
32

skipif mysql # not compatible
query I rowsort label-9482
SELECT ALL + COUNT ( * ) + + 31 AS col0
----
32

query I rowsort
SELECT + + 48 * - + 33
----
-1584

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-9484
SELECT - CAST( NULL AS DECIMAL ), COUNT( * ) * CASE 91 WHEN 26 + + 62 + - 15 * - 80 THEN NULL WHEN + 0 + - 58 + + 27 - + - 30 + - 1 + + - 93 * + 64 THEN + COALESCE ( 74, 97 + 21 ) END
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-9484
SELECT - CAST ( NULL AS REAL ), COUNT ( * ) * CASE 91 WHEN 26 + + 62 + - 15 * - 80 THEN NULL WHEN + 0 + - 58 + + 27 - + - 30 + - 1 + + - 93 * + 64 THEN + COALESCE ( 74, 97 + 21 ) END
----
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9485
SELECT ALL 62 DIV 95 * - 13 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9485
SELECT ALL 62 / 95 * - 13 AS col2
----
0

query I rowsort
SELECT + - 73 - - - 24 AS col0
----
-97

query I rowsort
SELECT 97 + - + 71
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-9488
SELECT COUNT( * ) + + 58 + - 31 * - - COUNT( * ) AS col0
----
28

skipif mysql # not compatible
query I rowsort label-9488
SELECT COUNT ( * ) + + 58 + - 31 * - - COUNT ( * ) AS col0
----
28

query I rowsort
SELECT DISTINCT + ( - 53 ) + - + 85 - + 51 + + 44
----
-145

query II rowsort
SELECT + 31, + 36 * - 19 AS col0
----
31
-684

query II rowsort
SELECT ALL - 86, 44 - - 28 AS col2
----
-86
72

query I rowsort
SELECT DISTINCT 32 - + 66
----
-34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9493
SELECT ALL + COUNT( * ) * - - 58 DIV + 26 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-9493
SELECT ALL + COUNT ( * ) * - - 58 / + 26 AS col0
----
2

query II rowsort
SELECT 67 + - - 40 AS col1, 70 + - 13 - 23
----
107
34

query I rowsort
SELECT DISTINCT 5 - + - 45 * + 23 * + + 27 AS col0
----
27950

query II rowsort
SELECT 5 * 30, 0 AS col1
----
150
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9497
SELECT 11 + + CASE COUNT( * ) WHEN + - 29 THEN + 64 ELSE - 31 END
----
-20

skipif mysql # not compatible
query I rowsort label-9497
SELECT 11 + + CASE COUNT ( * ) WHEN + - 29 THEN + 64 ELSE - 31 END
----
-20

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9498
SELECT 82 DIV + COUNT( + 99 )
----
82

skipif mysql # not compatible
query I rowsort label-9498
SELECT 82 / + COUNT ( + 99 )
----
82

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9499
SELECT 95 * + 7 AS col1, - CAST( NULL AS SIGNED )
----
665
NULL

skipif mysql # not compatible
query II rowsort label-9499
SELECT 95 * + 7 AS col1, - CAST ( NULL AS INTEGER )
----
665
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9500
SELECT DISTINCT - 93 * + - COUNT( * ) * + 29
----
2697

skipif mysql # not compatible
query I rowsort label-9500
SELECT DISTINCT - 93 * + - COUNT ( * ) * + 29
----
2697

onlyif mysql # aggregate syntax: 
query II rowsort label-9501
SELECT 20 * 15 AS col1, - 80 * + COUNT( * )
----
300
-80

skipif mysql # not compatible
query II rowsort label-9501
SELECT 20 * 15 AS col1, - 80 * + COUNT ( * )
----
300
-80

query I rowsort
SELECT 91 - - 6 - 50
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-9503
SELECT NULLIF ( - 60, COUNT( * ) ) * + ( 4 ) + + - 48 AS col0
----
-288

skipif mysql # not compatible
query I rowsort label-9503
SELECT NULLIF ( - 60, COUNT ( * ) ) * + ( 4 ) + + - 48 AS col0
----
-288

query II rowsort
SELECT ALL + 21 + - + 68 AS col2, - 76
----
-47
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-9505
SELECT 1 - NULLIF ( ( + - COUNT( DISTINCT - + 80 ) ), - - 55 ) AS col0
----
2

skipif mysql # not compatible
query I rowsort label-9505
SELECT 1 - NULLIF ( ( + - COUNT ( DISTINCT - + 80 ) ), - - 55 ) AS col0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-9506
SELECT + CASE + 76 WHEN - 23 * - COUNT( * ) * ( 90 ) THEN - 53 WHEN - - 22 * - + 46 * + 28 + - 31 + 29 THEN - 87 + + 1 * + COUNT( * ) + - 39 + 64 END * - 20 * + - 63 * - 64 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9506
SELECT + CASE + 76 WHEN - 23 * - COUNT ( * ) * ( 90 ) THEN - 53 WHEN - - 22 * - + 46 * + 28 + - 31 + 29 THEN - 87 + + 1 * + COUNT ( * ) + - 39 + 64 END * - 20 * + - 63 * - 64 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9507
SELECT DISTINCT - + ( + COUNT( * ) ) + - 31 DIV - MAX( 7 ) AS col1, - 8 AS col2
----
3
-8

skipif mysql # not compatible
query II rowsort label-9507
SELECT DISTINCT - + ( + COUNT ( * ) ) + - 31 / - MAX ( 7 ) AS col1, - 8 AS col2
----
3
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-9508
SELECT ALL - COUNT( * ) + - 75 + - 34 + + 85 + + - 40 * 81 AS col0
----
-3265

skipif mysql # not compatible
query I rowsort label-9508
SELECT ALL - COUNT ( * ) + - 75 + - 34 + + 85 + + - 40 * 81 AS col0
----
-3265

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9509
SELECT ALL - NULLIF ( + COUNT( * ), - 43 ) + - - ( - + 58 ) - + ( - 31 ) DIV - 67 * - + 44 - - ( 85 ) * 35 * + 71 AS col0
----
211166

skipif mysql # not compatible
query I rowsort label-9509
SELECT ALL - NULLIF ( + COUNT ( * ), - 43 ) + - - ( - + 58 ) - + ( - 31 ) / - 67 * - + 44 - - ( 85 ) * 35 * + 71 AS col0
----
211166

query II rowsort
SELECT + 40 - - 33, 51 AS col1
----
73
51

onlyif mysql # aggregate syntax: 
query I rowsort label-9511
SELECT DISTINCT CASE - 34 WHEN + 35 * + COUNT( * ) + - 95 * 89 THEN NULL ELSE - + 93 END col2
----
-93

skipif mysql # not compatible
query I rowsort label-9511
SELECT DISTINCT CASE - 34 WHEN + 35 * + COUNT ( * ) + - 95 * 89 THEN NULL ELSE - + 93 END col2
----
-93

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9512
SELECT ALL - 82 + + 1 AS col1, 0 DIV + COUNT( * ) AS col1
----
-81
0

skipif mysql # not compatible
query II rowsort label-9512
SELECT ALL - 82 + + 1 AS col1, 0 / + COUNT ( * ) AS col1
----
-81
0

query I rowsort
SELECT 34 + + ( + 45 ) AS col2
----
79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9514
SELECT + 99 + - CAST( - 33 AS SIGNED ) + - + CASE WHEN COUNT( * ) NOT IN ( 73, 32, - + 83 ) THEN - 91 DIV 95 - COUNT( * ) END AS col1
----
133

skipif mysql # not compatible
query I rowsort label-9514
SELECT + 99 + - CAST ( - 33 AS INTEGER ) + - + CASE WHEN COUNT ( * ) NOT IN ( 73, 32, - + 83 ) THEN - 91 / 95 - COUNT ( * ) END AS col1
----
133

onlyif mysql # aggregate syntax: 
query II rowsort label-9515
SELECT 24 - + - 46 - - 5 * - 1 + + - 65 AS col1, + COUNT( * ) AS col1
----
0
1

skipif mysql # not compatible
query II rowsort label-9515
SELECT 24 - + - 46 - - 5 * - 1 + + - 65 AS col1, + COUNT ( * ) AS col1
----
0
1

query I rowsort
SELECT + 56 * + 71 + + 6 col0
----
3982

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9517
SELECT - CAST( 26 AS SIGNED ), 80 * - 94 * - 87 + + 45 AS col0
----
-26
654285

skipif mysql # not compatible
query II rowsort label-9517
SELECT - CAST ( 26 AS INTEGER ), 80 * - 94 * - 87 + + 45 AS col0
----
-26
654285

onlyif mysql # DIV for integer division: 
query I rowsort label-9518
SELECT ALL 58 DIV + 91
----
0

skipif mysql # not compatible
query I rowsort label-9518
SELECT ALL 58 / + 91
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9519
SELECT + 42 DIV - 68 * + 41 + - 35 DIV - 64
----
0

skipif mysql # not compatible
query I rowsort label-9519
SELECT + 42 / - 68 * + 41 + - 35 / - 64
----
0

query II rowsort
SELECT + 98, 53 * + + 96 AS col1
----
98
5088

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9521
SELECT DISTINCT - COALESCE ( - 78, + 59 + - ( + 60 ), 18 ) AS col1, - 85 - - 6 - MIN( ALL - CASE + 47 WHEN + CAST( - - 2 AS SIGNED ) THEN - 12 + + 81 END ) * + COUNT( DISTINCT 64 )
----
78
NULL

skipif mysql # not compatible
query II rowsort label-9521
SELECT DISTINCT - COALESCE ( - 78, + 59 + - ( + 60 ), 18 ) AS col1, - 85 - - 6 - MIN ( ALL - CASE + 47 WHEN + CAST ( - - 2 AS INTEGER ) THEN - 12 + + 81 END ) * + COUNT ( DISTINCT 64 )
----
78
NULL

query I rowsort
SELECT 86 * + COALESCE ( + 43, - ( - 95 ) * - 70 )
----
3698

query I rowsort
SELECT 92 - + + 9
----
83

query I rowsort
SELECT ALL 51 * + 45
----
2295

onlyif mysql # aggregate syntax: 
query I rowsort label-9525
SELECT + COUNT( - + 5 )
----
1

skipif mysql # not compatible
query I rowsort label-9525
SELECT + COUNT ( - + 5 )
----
1

query I rowsort
SELECT ALL + 52 + + 27 - + ( - 87 ) * 25 * - 4 AS col2
----
-8621

onlyif mysql # DIV for integer division: 
query I rowsort label-9527
SELECT 30 DIV 53
----
0

skipif mysql # not compatible
query I rowsort label-9527
SELECT 30 / 53
----
0

query II rowsort
SELECT ALL - 72, + 66 AS col1
----
-72
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9529
SELECT ALL + CAST( NULL AS SIGNED ) + + CASE + 79 WHEN + 75 THEN NULL WHEN - 34 THEN - - 36 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9529
SELECT ALL + CAST ( NULL AS INTEGER ) + + CASE + 79 WHEN + 75 THEN NULL WHEN - 34 THEN - - 36 END
----
NULL

query I rowsort
SELECT 10 + 26 AS col0
----
36

query II rowsort
SELECT 84 col0, 63 + + 8
----
84
71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9532
SELECT 1 + ( + COALESCE ( + - MIN( 61 ), + 36 + - 70 * - - 95 + CAST( NULL AS SIGNED ) ) ) AS col0
----
-60

skipif mysql # not compatible
query I rowsort label-9532
SELECT 1 + ( + COALESCE ( + - MIN ( 61 ), + 36 + - 70 * - - 95 + CAST ( NULL AS INTEGER ) ) ) AS col0
----
-60

query I rowsort
SELECT + ( 66 ) + + 69 AS col1
----
135

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9534
SELECT DISTINCT - COUNT( * ) DIV 80 + - 23 * + 91
----
-2093

skipif mysql # not compatible
query I rowsort label-9534
SELECT DISTINCT - COUNT ( * ) / 80 + - 23 * + 91
----
-2093

query I rowsort
SELECT DISTINCT + 45 + 8 AS col0
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-9536
SELECT ALL - - 16 - COUNT( * ) + + COUNT( * ) + - 1
----
15

skipif mysql # not compatible
query I rowsort label-9536
SELECT ALL - - 16 - COUNT ( * ) + + COUNT ( * ) + - 1
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-9537
SELECT DISTINCT + 53 * - - COUNT( * ) AS col0
----
53

skipif mysql # not compatible
query I rowsort label-9537
SELECT DISTINCT + 53 * - - COUNT ( * ) AS col0
----
53

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9538
SELECT - 4 DIV - COUNT( * )
----
4

skipif mysql # not compatible
query I rowsort label-9538
SELECT - 4 / - COUNT ( * )
----
4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9539
SELECT + + COUNT( * ) DIV COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-9539
SELECT + + COUNT ( * ) / COUNT ( * )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9540
SELECT - ( - ( - COUNT( * ) ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-9540
SELECT - ( - ( - COUNT ( * ) ) ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-9541
SELECT - COUNT( * ) AS col2, 10
----
-1
10

skipif mysql # not compatible
query II rowsort label-9541
SELECT - COUNT ( * ) AS col2, 10
----
-1
10

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9542
SELECT ALL - CAST( - + 48 AS SIGNED ) - 10 AS col1, - 6 AS col0
----
38
-6

skipif mysql # not compatible
query II rowsort label-9542
SELECT ALL - CAST ( - + 48 AS INTEGER ) - 10 AS col1, - 6 AS col0
----
38
-6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9543
SELECT + CASE 76 WHEN + 97 THEN NULL WHEN - + MIN( ALL - CAST( + ( + CAST( ( + + 50 ) AS SIGNED ) ) AS SIGNED ) ) THEN 66 WHEN + + 57 + - 68 THEN + 3 ELSE + - 80 END AS col2
----
-80

skipif mysql # not compatible
query I rowsort label-9543
SELECT + CASE 76 WHEN + 97 THEN NULL WHEN - + MIN ( ALL - CAST ( + ( + CAST ( ( + + 50 ) AS INTEGER ) ) AS INTEGER ) ) THEN 66 WHEN + + 57 + - 68 THEN + 3 ELSE + - 80 END AS col2
----
-80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9544
SELECT - 49 + - COUNT( * ) * + NULLIF ( - + CAST( NULL AS SIGNED ), 25 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9544
SELECT - 49 + - COUNT ( * ) * + NULLIF ( - + CAST ( NULL AS INTEGER ), 25 ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9545
SELECT - 23 * - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9545
SELECT - 23 * - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9546
SELECT + COUNT( * ) * - 6 AS col2
----
-6

skipif mysql # not compatible
query I rowsort label-9546
SELECT + COUNT ( * ) * - 6 AS col2
----
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9547
SELECT - 40 + 56 * 48 / - NULLIF ( - CAST( NULL AS SIGNED ), + 74 + + - 48 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9547
SELECT - 40 + 56 * 48 / - NULLIF ( - CAST ( NULL AS INTEGER ), + 74 + + - 48 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9548
SELECT + 46 - - - 90 * + 93 + + COUNT( * )
----
-8323

skipif mysql # not compatible
query I rowsort label-9548
SELECT + 46 - - - 90 * + 93 + + COUNT ( * )
----
-8323

query I rowsort
SELECT DISTINCT 52 * 99 * 2 AS col1
----
10296

onlyif mysql # aggregate syntax: 
query II rowsort label-9550
SELECT - SUM( 86 ) AS col2, - 36 * - - 56 - - - 61
----
-86
-2077

skipif mysql # not compatible
query II rowsort label-9550
SELECT - SUM ( 86 ) AS col2, - 36 * - - 56 - - - 61
----
-86
-2077

query I rowsort
SELECT - 88 * + 58 + - 51 AS col1
----
-5155

query I rowsort
SELECT ALL - 29 * + 83 * - - 34 AS col2
----
-81838

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9553
SELECT + 19 DIV 99 + - 49 - + COUNT( * )
----
-50

skipif mysql # not compatible
query I rowsort label-9553
SELECT + 19 / 99 + - 49 - + COUNT ( * )
----
-50

query I rowsort
SELECT DISTINCT + 11 * 19
----
209

query I rowsort
SELECT ALL ( ( - 33 ) ) * + + 2 + - 80
----
-146

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9556
SELECT ALL - 96 * + ( - CAST( + 27 AS SIGNED ) ) + - COUNT( + 35 ) * SUM( DISTINCT 87 )
----
2505

skipif mysql # not compatible
query I rowsort label-9556
SELECT ALL - 96 * + ( - CAST ( + 27 AS INTEGER ) ) + - COUNT ( + 35 ) * SUM ( DISTINCT 87 )
----
2505

query I rowsort
SELECT + ( ( - 66 ) )
----
-66

query I rowsort
SELECT ALL NULLIF ( 95, + 95 ) / ( - - 38 ) - CASE - 43 WHEN + 20 THEN + 10 WHEN + 64 - + 36 THEN - - COALESCE ( + 91, + ( - 95 ), 49 ) ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT + 3 * + 75 * + 83 AS col0
----
18675

query I rowsort
SELECT - 9 + ( + + 32 ) AS col1
----
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9561
SELECT + NULLIF ( - + 96, - 11 + + CAST( + - MIN( - 5 ) AS SIGNED ) + - 53 + + 10 ) col2
----
-96

skipif mysql # not compatible
query I rowsort label-9561
SELECT + NULLIF ( - + 96, - 11 + + CAST ( + - MIN ( - 5 ) AS INTEGER ) + - 53 + + 10 ) col2
----
-96

query I rowsort
SELECT CASE + - 23 WHEN - 97 THEN - 76 WHEN + 24 THEN - 73 END col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9563
SELECT ALL + 80 * - ( + 48 ) * MAX( DISTINCT + + 91 ) + - + COUNT( 86 ) AS col1, - 40 AS col2
----
-349441
-40

skipif mysql # not compatible
query II rowsort label-9563
SELECT ALL + 80 * - ( + 48 ) * MAX ( DISTINCT + + 91 ) + - + COUNT ( 86 ) AS col1, - 40 AS col2
----
-349441
-40

query I rowsort
SELECT DISTINCT - + 93 * + ( + 96 ) AS col0
----
-8928

onlyif mysql # aggregate syntax: 
query I rowsort label-9565
SELECT ALL - COUNT( * ) * - 86 - + MAX( + 55 )
----
31

skipif mysql # not compatible
query I rowsort label-9565
SELECT ALL - COUNT ( * ) * - 86 - + MAX ( + 55 )
----
31

query I rowsort
SELECT + 9 * + + 0 - + 86 AS col2
----
-86

onlyif mysql # aggregate syntax: 
query II rowsort label-9567
SELECT DISTINCT + 74 * - 28 * + NULLIF ( - - 14, + COUNT( * ) ), 89 col1
----
-29008
89

skipif mysql # not compatible
query II rowsort label-9567
SELECT DISTINCT + 74 * - 28 * + NULLIF ( - - 14, + COUNT ( * ) ), 89 col1
----
-29008
89

query I rowsort
SELECT + + 35 - + 38 * - + 65 col1
----
2505

onlyif mysql # aggregate syntax: 
query I rowsort label-9569
SELECT - + COUNT( * ) * - NULLIF ( 82, - 62 ) col1
----
82

skipif mysql # not compatible
query I rowsort label-9569
SELECT - + COUNT ( * ) * - NULLIF ( 82, - 62 ) col1
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-9570
SELECT DISTINCT - MAX( ALL - + ( + 45 ) ) AS col1
----
45

skipif mysql # not compatible
query I rowsort label-9570
SELECT DISTINCT - MAX ( ALL - + ( + 45 ) ) AS col1
----
45

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9571
SELECT DISTINCT - CASE 45 WHEN 36 THEN 5 + CAST( NULL AS DECIMAL ) WHEN + 37 THEN - + 30 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9571
SELECT DISTINCT - CASE 45 WHEN 36 THEN 5 + CAST ( NULL AS REAL ) WHEN + 37 THEN - + 30 END AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9572
SELECT DISTINCT + 58 DIV + 25 DIV - COUNT( * ) AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-9572
SELECT DISTINCT + 58 / + 25 / - COUNT ( * ) AS col1
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-9573
SELECT DISTINCT - 47 - - - 87 + + COUNT( * )
----
-133

skipif mysql # not compatible
query I rowsort label-9573
SELECT DISTINCT - 47 - - - 87 + + COUNT ( * )
----
-133

query I rowsort
SELECT DISTINCT + + 26 * + 84 AS col0
----
2184

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9575
SELECT DISTINCT + + COUNT( * ) DIV - + 84 * + 71
----
0

skipif mysql # not compatible
query I rowsort label-9575
SELECT DISTINCT + + COUNT ( * ) / - + 84 * + 71
----
0

query I rowsort
SELECT ALL + 8 * - + ( 83 ) col2
----
-664

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9577
SELECT - - COUNT( * ) * + 94 - - CAST( NULL AS SIGNED ) + 60, - COUNT( * ) * 75 + + + 96 * + SUM( - 3 ) AS col2
----
NULL
-363

skipif mysql # not compatible
query II rowsort label-9577
SELECT - - COUNT ( * ) * + 94 - - CAST ( NULL AS INTEGER ) + 60, - COUNT ( * ) * 75 + + + 96 * + SUM ( - 3 ) AS col2
----
NULL
-363

query I rowsort
SELECT DISTINCT + 97 * - 51 + + 88
----
-4859

onlyif mysql # aggregate syntax: 
query I rowsort label-9579
SELECT + + ( + - 32 ) * 27 * + 22 * + COUNT( * ) AS col2
----
-19008

skipif mysql # not compatible
query I rowsort label-9579
SELECT + + ( + - 32 ) * 27 * + 22 * + COUNT ( * ) AS col2
----
-19008

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9580
SELECT + ( + + NULLIF ( + + 68, + 2 / - + 72 - - CAST( NULL AS SIGNED ) ) ) AS col1
----
68

skipif mysql # not compatible
query I rowsort label-9580
SELECT + ( + + NULLIF ( + + 68, + 2 / - + 72 - - CAST ( NULL AS INTEGER ) ) ) AS col1
----
68

query I rowsort
SELECT ALL + 64 * ( + 12 )
----
768

onlyif mysql # aggregate syntax: 
query I rowsort label-9582
SELECT - COALESCE ( + 27, - NULLIF ( COUNT( * ), + 49 ), + SUM( + - 77 ) * + 75 ) * 72 AS col0
----
-1944

skipif mysql # not compatible
query I rowsort label-9582
SELECT - COALESCE ( + 27, - NULLIF ( COUNT ( * ), + 49 ), + SUM ( + - 77 ) * + 75 ) * 72 AS col0
----
-1944

onlyif mysql # aggregate syntax: 
query I rowsort label-9583
SELECT - COUNT( * ) * - + 14 AS col2
----
14

skipif mysql # not compatible
query I rowsort label-9583
SELECT - COUNT ( * ) * - + 14 AS col2
----
14

query I rowsort
SELECT DISTINCT - 42 * + 34 AS col1
----
-1428

onlyif mysql # aggregate syntax: 
query I rowsort label-9585
SELECT ALL + 52 + - NULLIF ( + 87, - 67 + + MIN( DISTINCT - 97 ) + + + 32 + - 39 ) + - - 79
----
44

skipif mysql # not compatible
query I rowsort label-9585
SELECT ALL + 52 + - NULLIF ( + 87, - 67 + + MIN ( DISTINCT - 97 ) + + + 32 + - 39 ) + - - 79
----
44

query I rowsort
SELECT ALL 57 + - + 39 AS col0
----
18

query I rowsort
SELECT + 39 * - 41
----
-1599

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9588
SELECT + 90 * + CAST( NULL AS SIGNED ) * - + ( 41 ) - + 61 + + - ( 38 ) - MAX( - 32 ) + - CAST( NULL AS SIGNED ) * 82 * - COALESCE ( + 99, + ( COUNT( * ) ) * + CAST( - 49 AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9588
SELECT + 90 * + CAST ( NULL AS INTEGER ) * - + ( 41 ) - + 61 + + - ( 38 ) - MAX ( - 32 ) + - CAST ( NULL AS INTEGER ) * 82 * - COALESCE ( + 99, + ( COUNT ( * ) ) * + CAST ( - 49 AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9589
SELECT CAST( NULL AS SIGNED ), + 88 AS col2
----
NULL
88

skipif mysql # not compatible
query II rowsort label-9589
SELECT CAST ( NULL AS INTEGER ), + 88 AS col2
----
NULL
88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9590
SELECT CAST( 16 AS SIGNED ) AS col1
----
16

skipif mysql # not compatible
query I rowsort label-9590
SELECT CAST ( 16 AS INTEGER ) AS col1
----
16

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9591
SELECT ALL 14 DIV - 79 + + + 42 AS col2, 46 - - MIN( ALL + 24 ) - + - 50 col2
----
42
120

skipif mysql # not compatible
query II rowsort label-9591
SELECT ALL 14 / - 79 + + + 42 AS col2, 46 - - MIN ( ALL + 24 ) - + - 50 col2
----
42
120

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9592
SELECT DISTINCT + 80 * - + CAST( NULL AS SIGNED ) * + 9
----
NULL

skipif mysql # not compatible
query I rowsort label-9592
SELECT DISTINCT + 80 * - + CAST ( NULL AS INTEGER ) * + 9
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9593
SELECT ALL + COUNT( * ) DIV 32 + + - 75 + - COALESCE ( 60, 8, + + 52 )
----
-135

skipif mysql # not compatible
query I rowsort label-9593
SELECT ALL + COUNT ( * ) / 32 + + - 75 + - COALESCE ( 60, 8, + + 52 )
----
-135

onlyif mysql # aggregate syntax: 
query I rowsort label-9594
SELECT 53 * MIN( 70 ) - + + ( MAX( ALL + - 81 ) ) + + COUNT( * ) + + ( - 13 ) * + - 94 * - + 6 * - 46 + - 42 AS col0
----
341022

skipif mysql # not compatible
query I rowsort label-9594
SELECT 53 * MIN ( 70 ) - + + ( MAX ( ALL + - 81 ) ) + + COUNT ( * ) + + ( - 13 ) * + - 94 * - + 6 * - 46 + - 42 AS col0
----
341022

onlyif mysql # aggregate syntax: 
query II rowsort label-9595
SELECT + ( + COUNT( + 5 ) ) AS col1, ( + + 61 ) + COUNT( * ) AS col1
----
1
62

skipif mysql # not compatible
query II rowsort label-9595
SELECT + ( + COUNT ( + 5 ) ) AS col1, ( + + 61 ) + COUNT ( * ) AS col1
----
1
62

onlyif mysql # aggregate syntax: 
query I rowsort label-9596
SELECT ALL + MAX( ALL + 36 ) * - 20 AS col2
----
-720

skipif mysql # not compatible
query I rowsort label-9596
SELECT ALL + MAX ( ALL + 36 ) * - 20 AS col2
----
-720

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9597
SELECT DISTINCT - 92 / + 47 - + + ( - + CASE + - 56 WHEN - + CASE + 49 WHEN + + AVG ( + 70 ) THEN NULL WHEN - CAST( NULL AS SIGNED ) THEN NULL WHEN + - 52 THEN NULL ELSE - CAST( - + 2 AS SIGNED ) + CAST( NULL AS DECIMAL ) END THEN - + COUNT( * ) + COUNT( * ) + - 60 - + 19 ELSE NULL END ) * 41 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9597
SELECT DISTINCT - 92 / + 47 - + + ( - + CASE + - 56 WHEN - + CASE + 49 WHEN + + AVG ( + 70 ) THEN NULL WHEN - CAST ( NULL AS INTEGER ) THEN NULL WHEN + - 52 THEN NULL ELSE - CAST ( - + 2 AS INTEGER ) + CAST ( NULL AS REAL ) END THEN - + COUNT ( * ) + COUNT ( * ) + - 60 - + 19 ELSE NULL END ) * 41 AS col1
----
NULL

query I rowsort
SELECT + - 50 + + + 40
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-9599
SELECT SUM( 55 ) AS col0
----
55

skipif mysql # not compatible
query I rowsort label-9599
SELECT SUM ( 55 ) AS col0
----
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9600
SELECT + - CAST( COUNT( * ) AS SIGNED )
----
-1

skipif mysql # not compatible
query I rowsort label-9600
SELECT + - CAST ( COUNT ( * ) AS INTEGER )
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-9601
SELECT - + 8 * - + COUNT( ALL - 81 ) + - COUNT( * ) * + 22 + + - 48 + + COUNT( * ) + + 32, 78 col2
----
-29
78

skipif mysql # not compatible
query II rowsort label-9601
SELECT - + 8 * - + COUNT ( ALL - 81 ) + - COUNT ( * ) * + 22 + + - 48 + + COUNT ( * ) + + 32, 78 col2
----
-29
78

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9602
SELECT + 29 DIV - 59 + + 72 + + - COUNT( ALL - ( + 4 ) )
----
71

skipif mysql # not compatible
query I rowsort label-9602
SELECT + 29 / - 59 + + 72 + + - COUNT ( ALL - ( + 4 ) )
----
71

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9603
SELECT ALL MIN( - + ( - - 69 ) ) DIV 88 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9603
SELECT ALL MIN ( - + ( - - 69 ) ) / 88 AS col2
----
0

query I rowsort
SELECT ALL - + ( - + 45 )
----
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9605
SELECT - ( + 29 ) * + - COUNT( * ) + + COUNT( * ) + + CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9605
SELECT - ( + 29 ) * + - COUNT ( * ) + + COUNT ( * ) + + CAST ( NULL AS INTEGER ) col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9606
SELECT ALL - 20 * + 17 - + NULLIF ( - + 58, - 55 * - + COUNT( * ) + CASE - 9 WHEN + - 96 * + AVG ( CAST( - - 68 AS SIGNED ) ) / 75 THEN NULL WHEN + 0 THEN - ( + + 24 ) WHEN - 37 * - 81 + - + CASE + 25 WHEN - ( - - 98 ) THEN - 74 + - NULLIF ( 33, COUNT( * ) / + 66 * MAX( - - 13 ) * - 81 + - 43 + 54 * - 59 - - - ( - 54 ) ) WHEN + 67 THEN NULL WHEN 63 * - 82 THEN NULL ELSE 40 END THEN - 25 + + CAST( COUNT( * ) AS SIGNED ) ELSE NULL END ) + 99 * - 52 col2
----
-5430

skipif mysql # not compatible
query I rowsort label-9606
SELECT ALL - 20 * + 17 - + NULLIF ( - + 58, - 55 * - + COUNT ( * ) + CASE - 9 WHEN + - 96 * + AVG ( CAST ( - - 68 AS INTEGER ) ) / 75 THEN NULL WHEN + 0 THEN - ( + + 24 ) WHEN - 37 * - 81 + - + CASE + 25 WHEN - ( - - 98 ) THEN - 74 + - NULLIF ( 33, COUNT ( * ) / + 66 * MAX ( - - 13 ) * - 81 + - 43 + 54 * - 59 - - - ( - 54 ) ) WHEN + 67 THEN NULL WHEN 63 * - 82 THEN NULL ELSE 40 END THEN - 25 + + CAST ( COUNT ( * ) AS INTEGER ) ELSE NULL END ) + 99 * - 52 col2
----
-5430

onlyif mysql # aggregate syntax: 
query I rowsort label-9607
SELECT - 86 + + COUNT( * ) AS col2
----
-85

skipif mysql # not compatible
query I rowsort label-9607
SELECT - 86 + + COUNT ( * ) AS col2
----
-85

onlyif mysql # DIV for integer division: 
query I rowsort label-9608
SELECT ALL 56 DIV + 76 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9608
SELECT ALL 56 / + 76 AS col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9609
SELECT 33 + + 80 + - COUNT( * ) AS col2, 12 AS col0
----
112
12

skipif mysql # not compatible
query II rowsort label-9609
SELECT 33 + + 80 + - COUNT ( * ) AS col2, 12 AS col0
----
112
12

onlyif mysql # aggregate syntax: 
query I rowsort label-9610
SELECT DISTINCT + COUNT( * ) * + 47
----
47

skipif mysql # not compatible
query I rowsort label-9610
SELECT DISTINCT + COUNT ( * ) * + 47
----
47

query I rowsort
SELECT + 36 + + - 68 * - + 10
----
716

query I rowsort
SELECT ALL - 68 * - + 27
----
1836

onlyif mysql # aggregate syntax: 
query I rowsort label-9613
SELECT + COUNT( * ) * - 97 * 18
----
-1746

skipif mysql # not compatible
query I rowsort label-9613
SELECT + COUNT ( * ) * - 97 * 18
----
-1746

onlyif mysql # aggregate syntax: 
query I rowsort label-9614
SELECT COUNT( * ) + - ( + + 67 ) + + + 99 - - + 4 * ( + + 88 ) * - SUM( 65 ) * + 40 * + 65 * - COUNT( * ) + - - COUNT( * )
----
59488034

skipif mysql # not compatible
query I rowsort label-9614
SELECT COUNT ( * ) + - ( + + 67 ) + + + 99 - - + 4 * ( + + 88 ) * - SUM ( 65 ) * + 40 * + 65 * - COUNT ( * ) + - - COUNT ( * )
----
59488034

onlyif mysql # aggregate syntax: 
query I rowsort label-9615
SELECT DISTINCT - MAX( - + 9 ) AS col0
----
9

skipif mysql # not compatible
query I rowsort label-9615
SELECT DISTINCT - MAX ( - + 9 ) AS col0
----
9

query I rowsort
SELECT - ( - 77 ) col0
----
77

query I rowsort
SELECT ALL 82 + - 15
----
67

query I rowsort
SELECT ALL 99 + - 86 + - 23
----
-10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9619
SELECT ALL + MAX( ALL - 83 ) + + - NULLIF ( 49, - 38 ) - CASE - 56 WHEN + 74 THEN + - 78 * - - 43 + + - 92 + - COUNT( * ) * CAST( NULL AS SIGNED ) + - 85 ELSE NULL END - 28 * + - 84 - + SUM( - 0 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9619
SELECT ALL + MAX ( ALL - 83 ) + + - NULLIF ( 49, - 38 ) - CASE - 56 WHEN + 74 THEN + - 78 * - - 43 + + - 92 + - COUNT ( * ) * CAST ( NULL AS INTEGER ) + - 85 ELSE NULL END - 28 * + - 84 - + SUM ( - 0 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9620
SELECT 6 col0, - 59 + - 22 DIV COUNT( DISTINCT - 71 ) DIV - 3 - + - 59
----
6
7

skipif mysql # not compatible
query II rowsort label-9620
SELECT 6 col0, - 59 + - 22 / COUNT ( DISTINCT - 71 ) / - 3 - + - 59
----
6
7

query II rowsort
SELECT ALL 93, ( + 80 ) AS col0
----
93
80

onlyif mysql # aggregate syntax: 
query I rowsort label-9622
SELECT DISTINCT COUNT( ALL + + 24 ) + - 93 AS col0
----
-92

skipif mysql # not compatible
query I rowsort label-9622
SELECT DISTINCT COUNT ( ALL + + 24 ) + - 93 AS col0
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-9623
SELECT 11 + - COUNT( * ) + - COUNT( * ) * + 94 + COUNT( * ) col0
----
-83

skipif mysql # not compatible
query I rowsort label-9623
SELECT 11 + - COUNT ( * ) + - COUNT ( * ) * + 94 + COUNT ( * ) col0
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-9624
SELECT ALL - 66 + + - MIN( - - 75 ) * - - 45 AS col2
----
-3441

skipif mysql # not compatible
query I rowsort label-9624
SELECT ALL - 66 + + - MIN ( - - 75 ) * - - 45 AS col2
----
-3441

onlyif mysql # aggregate syntax: 
query II rowsort label-9625
SELECT 92, + COUNT( * ) col2
----
92
1

skipif mysql # not compatible
query II rowsort label-9625
SELECT 92, + COUNT ( * ) col2
----
92
1

query II rowsort
SELECT 92 + + 96 AS col1, ( 3 ) + 24 + 6 AS col2
----
188
33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9627
SELECT - 57 AS col2, + COUNT( * ) + + + CAST( NULL AS SIGNED ) AS col1
----
-57
NULL

skipif mysql # not compatible
query II rowsort label-9627
SELECT - 57 AS col2, + COUNT ( * ) + + + CAST ( NULL AS INTEGER ) AS col1
----
-57
NULL

query I rowsort
SELECT 1 + + 81
----
82

query I rowsort
SELECT ALL - 21 + 82
----
61

query I rowsort
SELECT ALL - ( + - 18 ) AS col1
----
18

onlyif mysql # aggregate syntax: 
query II rowsort label-9631
SELECT 21 AS col0, 36 * + 25 + - MAX( ALL + 82 ) AS col0
----
21
818

skipif mysql # not compatible
query II rowsort label-9631
SELECT 21 AS col0, 36 * + 25 + - MAX ( ALL + 82 ) AS col0
----
21
818

onlyif mysql # aggregate syntax: 
query II rowsort label-9632
SELECT 26 + - - COUNT( * ) AS col2, - 67 + - + 74 * - 3 AS col2
----
27
155

skipif mysql # not compatible
query II rowsort label-9632
SELECT 26 + - - COUNT ( * ) AS col2, - 67 + - + 74 * - 3 AS col2
----
27
155

onlyif mysql # aggregate syntax: 
query I rowsort label-9633
SELECT ALL - ( + 41 ) - 55 - + 47 + - + COUNT( * ) AS col2
----
-144

skipif mysql # not compatible
query I rowsort label-9633
SELECT ALL - ( + 41 ) - 55 - + 47 + - + COUNT ( * ) AS col2
----
-144

query I rowsort
SELECT 16 * - + ( 66 ) col2
----
-1056

query II rowsort
SELECT DISTINCT - 4 AS col1, - 22 * + 26 AS col1
----
-4
-572

query II rowsort
SELECT 16 AS col2, ( - 34 ) + - - 78 + 28 AS col2
----
16
72

query I rowsort
SELECT ALL + ( 48 ) * - + 61 - - 87 - - 49
----
-2792

query I rowsort
SELECT DISTINCT + 91 * + - 97 * - 14 * 45 AS col0
----
5561010

query I rowsort
SELECT DISTINCT 14 * - 72 * - 12 AS col2
----
12096

query I rowsort
SELECT - 84 * - - 35 AS col0
----
-2940

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9641
SELECT ALL - 64 * - 93 * 52 - + CAST( NULL AS SIGNED ) AS col2, COUNT( * ) AS col1
----
NULL
1

skipif mysql # not compatible
query II rowsort label-9641
SELECT ALL - 64 * - 93 * 52 - + CAST ( NULL AS INTEGER ) AS col2, COUNT ( * ) AS col1
----
NULL
1

query I rowsort
SELECT + + COALESCE ( 55, + 52 )
----
55

query II rowsort
SELECT DISTINCT - + 32, + 9 * + + 82 + - 70 col2
----
-32
668

query I rowsort
SELECT NULLIF ( + + 78, + - 35 ) * + 53 + - 95
----
4039

query I rowsort
SELECT - 73 - 19 + + - 16 AS col0
----
-108

onlyif mysql # aggregate syntax: 
query I rowsort label-9646
SELECT ALL NULLIF ( + - 50, COUNT( * ) - + + 46 ) + - - 46
----
-4

skipif mysql # not compatible
query I rowsort label-9646
SELECT ALL NULLIF ( + - 50, COUNT ( * ) - + + 46 ) + - - 46
----
-4

onlyif mysql # DIV for integer division: 
query I rowsort label-9647
SELECT 34 DIV - + 47 col1
----
0

skipif mysql # not compatible
query I rowsort label-9647
SELECT 34 / - + 47 col1
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-9648
SELECT DISTINCT - - 75 DIV 58 * 87 + - 9 AS col2, + 14
----
78
14

skipif mysql # not compatible
query II rowsort label-9648
SELECT DISTINCT - - 75 / 58 * 87 + - 9 AS col2, + 14
----
78
14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9649
SELECT ALL 58 + - COUNT( * ) - 55 DIV 29
----
56

skipif mysql # not compatible
query I rowsort label-9649
SELECT ALL 58 + - COUNT ( * ) - 55 / 29
----
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9650
SELECT DISTINCT COALESCE ( + 15, 84 * - - MAX( DISTINCT + + 71 ) * + - 8 + 23, - + 22 ) * + ( + + 34 ) * - CAST( + - SUM( - + 40 ) AS SIGNED ) - - + CAST( 7 AS SIGNED ) AS col2
----
-20393

skipif mysql # not compatible
query I rowsort label-9650
SELECT DISTINCT COALESCE ( + 15, 84 * - - MAX ( DISTINCT + + 71 ) * + - 8 + 23, - + 22 ) * + ( + + 34 ) * - CAST ( + - SUM ( - + 40 ) AS INTEGER ) - - + CAST ( 7 AS INTEGER ) AS col2
----
-20393

query I rowsort
SELECT ALL 81 + 25 AS col1
----
106

onlyif mysql # aggregate syntax: 
query II rowsort label-9652
SELECT ALL ( - 14 ) + 59 + CASE AVG ( ALL 0 ) WHEN + COUNT( * ) THEN + 96 + + + 76 ELSE COALESCE ( 96, + 0 * - 16 * COUNT( * ) ) END * + 74 AS col1, 6 + + MAX( ALL + 35 ) * - 4 AS col2
----
7149
-134

skipif mysql # not compatible
query II rowsort label-9652
SELECT ALL ( - 14 ) + 59 + CASE AVG ( ALL 0 ) WHEN + COUNT ( * ) THEN + 96 + + + 76 ELSE COALESCE ( 96, + 0 * - 16 * COUNT ( * ) ) END * + 74 AS col1, 6 + + MAX ( ALL + 35 ) * - 4 AS col2
----
7149
-134

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9653
SELECT CAST( NULL AS SIGNED ) - - 94 * 60 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9653
SELECT CAST ( NULL AS INTEGER ) - - 94 * 60 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9654
SELECT ALL COUNT( DISTINCT - 72 ) * 97
----
97

skipif mysql # not compatible
query I rowsort label-9654
SELECT ALL COUNT ( DISTINCT - 72 ) * 97
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9655
SELECT COUNT( * ) - - 36 AS col2
----
37

skipif mysql # not compatible
query I rowsort label-9655
SELECT COUNT ( * ) - - 36 AS col2
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-9656
SELECT ALL 28 + - COUNT( + COALESCE ( - ( + - 16 ), + + 14 ) )
----
27

skipif mysql # not compatible
query I rowsort label-9656
SELECT ALL 28 + - COUNT ( + COALESCE ( - ( + - 16 ), + + 14 ) )
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-9657
SELECT DISTINCT COUNT( * ) - - - ( + SUM( - 43 ) ) AS col2
----
44

skipif mysql # not compatible
query I rowsort label-9657
SELECT DISTINCT COUNT ( * ) - - - ( + SUM ( - 43 ) ) AS col2
----
44

query I rowsort
SELECT DISTINCT - 8 * - + ( + 20 ) AS col2
----
160

onlyif mysql # aggregate syntax: 
query I rowsort label-9659
SELECT 39 + - - COUNT( * ) + - 73 * + 26
----
-1858

skipif mysql # not compatible
query I rowsort label-9659
SELECT 39 + - - COUNT ( * ) + - 73 * + 26
----
-1858

onlyif mysql # DIV for integer division: 
query I rowsort label-9660
SELECT ALL 38 DIV 63
----
0

skipif mysql # not compatible
query I rowsort label-9660
SELECT ALL 38 / 63
----
0

query I rowsort
SELECT 10 * 79 col1
----
790

query I rowsort
SELECT 90 * 89 - 87
----
7923

onlyif mysql # aggregate syntax: 
query I rowsort label-9663
SELECT + MAX( + 0 ) col2
----
0

skipif mysql # not compatible
query I rowsort label-9663
SELECT + MAX ( + 0 ) col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9664
SELECT - COALESCE ( - 14, - CAST( + - 45 AS SIGNED ) * - 91 + + COUNT( * ) + - 35 ) * - + 7 * + CAST( 78 AS SIGNED ) col1
----
-7644

skipif mysql # not compatible
query I rowsort label-9664
SELECT - COALESCE ( - 14, - CAST ( + - 45 AS INTEGER ) * - 91 + + COUNT ( * ) + - 35 ) * - + 7 * + CAST ( 78 AS INTEGER ) col1
----
-7644

onlyif mysql # aggregate syntax: 
query I rowsort label-9665
SELECT + ( - - COUNT( * ) ) + + 72 + + - 51 AS col0
----
22

skipif mysql # not compatible
query I rowsort label-9665
SELECT + ( - - COUNT ( * ) ) + + 72 + + - 51 AS col0
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-9666
SELECT - 15 * + + COUNT( * ) * + 26 col1
----
-390

skipif mysql # not compatible
query I rowsort label-9666
SELECT - 15 * + + COUNT ( * ) * + 26 col1
----
-390

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9667
SELECT - + MIN( + CAST( ( - + 38 ) AS SIGNED ) ) * - CAST( NULL AS SIGNED ) * + 40
----
NULL

skipif mysql # not compatible
query I rowsort label-9667
SELECT - + MIN ( + CAST ( ( - + 38 ) AS INTEGER ) ) * - CAST ( NULL AS INTEGER ) * + 40
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9668
SELECT DISTINCT CAST( NULL AS SIGNED ) * + ( + - 8 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9668
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + ( + - 8 )
----
NULL

query II rowsort
SELECT DISTINCT + 34 * - 41 + + 15, - 32 AS col0
----
-1379
-32

query II rowsort
SELECT - - 23 * + - 74 AS col2, NULLIF ( - 9, + CASE WHEN NOT + 23 BETWEEN NULL AND NULL THEN + + 51 * - - 42 + + + 53 * - 65 END * 72 ) col1
----
-1702
-9

onlyif mysql # aggregate syntax: 
query II rowsort label-9671
SELECT ALL + NULLIF ( - COUNT( - COALESCE ( - 61, + 95 - - 95, - 79 ) ), + - SUM( DISTINCT - + 54 ) * - 40 ) AS col0, 70 AS col1
----
-1
70

skipif mysql # not compatible
query II rowsort label-9671
SELECT ALL + NULLIF ( - COUNT ( - COALESCE ( - 61, + 95 - - 95, - 79 ) ), + - SUM ( DISTINCT - + 54 ) * - 40 ) AS col0, 70 AS col1
----
-1
70

onlyif mysql # aggregate syntax: 
query I rowsort label-9672
SELECT - 73 * + COUNT( * ) + - + ( + 68 ) col1
----
-141

skipif mysql # not compatible
query I rowsort label-9672
SELECT - 73 * + COUNT ( * ) + - + ( + 68 ) col1
----
-141

query I rowsort
SELECT - 4 + + - 33 AS col0
----
-37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9674
SELECT ALL 2 * COUNT( * ) - - COUNT( * ) + 56 * 36 * - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9674
SELECT ALL 2 * COUNT ( * ) - - COUNT ( * ) + 56 * 36 * - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9675
SELECT - SUM( DISTINCT 25 ) + + + 61 + 95 + - COALESCE ( - 2, - 39, - - 57, 2 )
----
133

skipif mysql # not compatible
query I rowsort label-9675
SELECT - SUM ( DISTINCT 25 ) + + + 61 + 95 + - COALESCE ( - 2, - 39, - - 57, 2 )
----
133

onlyif mysql # aggregate syntax: 
query I rowsort label-9676
SELECT ALL + CASE - + 92 WHEN - - 87 - - 97 THEN 89 ELSE - - 27 + - COALESCE ( + + 64, + - COUNT( * ) ) END AS col1
----
-37

skipif mysql # not compatible
query I rowsort label-9676
SELECT ALL + CASE - + 92 WHEN - - 87 - - 97 THEN 89 ELSE - - 27 + - COALESCE ( + + 64, + - COUNT ( * ) ) END AS col1
----
-37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9677
SELECT + CAST( ( - + 23 ) AS SIGNED ) AS col2
----
-23

skipif mysql # not compatible
query I rowsort label-9677
SELECT + CAST ( ( - + 23 ) AS INTEGER ) AS col2
----
-23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9678
SELECT DISTINCT 60 * COUNT( * ) + + 80 + + - 17 DIV - NULLIF ( + 91, + 21 ) col0
----
140

skipif mysql # not compatible
query I rowsort label-9678
SELECT DISTINCT 60 * COUNT ( * ) + + 80 + + - 17 / - NULLIF ( + 91, + 21 ) col0
----
140

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9679
SELECT ALL + CAST( NULL AS DECIMAL ) * 49 + + 92 / + + 33 * + ( 92 ) * + 51 + + 59 + + - 8 + + 61 / 23 * + + 66 / 13 + 98 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9679
SELECT ALL + CAST ( NULL AS REAL ) * 49 + + 92 / + + 33 * + ( 92 ) * + 51 + + 59 + + - 8 + + 61 / 23 * + + 66 / 13 + 98 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9680
SELECT DISTINCT - CASE 81 WHEN - AVG ( ALL 23 ) / + ( - + CAST( + 55 AS DECIMAL ) ) * + 95 + AVG ( + ( - 85 ) ) THEN NULL WHEN - 12 THEN + COALESCE ( - 32, COUNT( * ) * ( + 83 ) + CASE - 64 WHEN 4 * - 75 * 41 + + COUNT( ALL + 34 ) THEN + 20 + - + ( - 87 ) * + 66 * - COALESCE ( + - 33, - - MAX( + COALESCE ( + 30, 69 * 26 - - 54 + + - 47 ) ) ) ELSE NULL END + SUM( ALL - COALESCE ( - 7, - 69 / - 3 + + 41 * NULLIF ( 78, COALESCE ( COALESCE ( 31, + 64 ), + 0 ) ) - 10 ) ) * - COUNT( * ) ) ELSE 20 END * - 69 + - ( + CASE 9 WHEN + CAST( 69 AS DECIMAL ) + SUM( ALL 62 + + 9 ) * - 8 THEN - 79 * + 77 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-9680
SELECT DISTINCT - CASE 81 WHEN - AVG ( ALL 23 ) / + ( - + CAST ( + 55 AS REAL ) ) * + 95 + AVG ( + ( - 85 ) ) THEN NULL WHEN - 12 THEN + COALESCE ( - 32, COUNT ( * ) * ( + 83 ) + CASE - 64 WHEN 4 * - 75 * 41 + + COUNT ( ALL + 34 ) THEN + 20 + - + ( - 87 ) * + 66 * - COALESCE ( + - 33, - - MAX ( + COALESCE ( + 30, 69 * 26 - - 54 + + - 47 ) ) ) ELSE NULL END + SUM ( ALL - COALESCE ( - 7, - 69 / - 3 + + 41 * NULLIF ( 78, COALESCE ( COALESCE ( 31, + 64 ), + 0 ) ) - 10 ) ) * - COUNT ( * ) ) ELSE 20 END * - 69 + - ( + CASE 9 WHEN + CAST ( 69 AS REAL ) + SUM ( ALL 62 + + 9 ) * - 8 THEN - 79 * + 77 END )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9681
SELECT 2 * MIN( - - NULLIF ( - 57, 95 * + 85 ) ) + - 5
----
-119

skipif mysql # not compatible
query I rowsort label-9681
SELECT 2 * MIN ( - - NULLIF ( - 57, 95 * + 85 ) ) + - 5
----
-119

query I rowsort
SELECT ALL - 65 * - 71
----
4615

query I rowsort
SELECT DISTINCT ( - - CASE 37 WHEN + CASE 43 WHEN 47 THEN - 12 + 95 ELSE NULL END - - 33 THEN - 40 * + - 65 / 32 END ) AS col1
----
NULL

query I rowsort
SELECT + 22 + + 79 AS col0
----
101

query I rowsort
SELECT ALL 4 - - 32
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-9686
SELECT - COUNT( * ) * - 13 AS col1
----
13

skipif mysql # not compatible
query I rowsort label-9686
SELECT - COUNT ( * ) * - 13 AS col1
----
13

query I rowsort
SELECT - 86 * - 16 AS col0
----
1376

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9688
SELECT + 92 + - CAST( + 78 AS SIGNED ), + CAST( NULLIF ( + SUM( DISTINCT 3 ), 82 * - + 82 ) AS SIGNED ) + + 83 + COUNT( * ) * + + 74 AS col1
----
14
160

skipif mysql # not compatible
query II rowsort label-9688
SELECT + 92 + - CAST ( + 78 AS INTEGER ), + CAST ( NULLIF ( + SUM ( DISTINCT 3 ), 82 * - + 82 ) AS INTEGER ) + + 83 + COUNT ( * ) * + + 74 AS col1
----
14
160

onlyif mysql # aggregate syntax: 
query I rowsort label-9689
SELECT DISTINCT ( MAX( + 88 ) )
----
88

skipif mysql # not compatible
query I rowsort label-9689
SELECT DISTINCT ( MAX ( + 88 ) )
----
88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9690
SELECT ALL ( CAST( 7 AS SIGNED ) )
----
7

skipif mysql # not compatible
query I rowsort label-9690
SELECT ALL ( CAST ( 7 AS INTEGER ) )
----
7

query I rowsort
SELECT + 80 * + NULLIF ( 89, - 74 / + 11 - 44 )
----
7120

query I rowsort
SELECT + 74 + - - 69 AS col1
----
143

query II rowsort
SELECT DISTINCT 14 AS col1, 86 * 46
----
14
3956

query I rowsort
SELECT DISTINCT 85 * COALESCE ( 57, - 46 - + 96, 85 )
----
4845

query I rowsort
SELECT DISTINCT 97 * + 99
----
9603

query I rowsort
SELECT + 20 * - 69
----
-1380

onlyif mysql # aggregate syntax: 
query II rowsort label-9697
SELECT + 26 + - + 49 + - 13, COUNT( * ) + 9 col1
----
-36
10

skipif mysql # not compatible
query II rowsort label-9697
SELECT + 26 + - + 49 + - 13, COUNT ( * ) + 9 col1
----
-36
10

query I rowsort
SELECT ALL 32 * - 4
----
-128

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9699
SELECT + 38 + - 60 DIV + + ( + COUNT( * ) ) + + - 71
----
-93

skipif mysql # not compatible
query I rowsort label-9699
SELECT + 38 + - 60 / + + ( + COUNT ( * ) ) + + - 71
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-9700
SELECT - CASE - - 70 WHEN + ( + 38 ) + + 33 * - - 41 THEN 61 WHEN COUNT( * ) * - 83 - - 76 THEN - + COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9700
SELECT - CASE - - 70 WHEN + ( + 38 ) + + 33 * - - 41 THEN 61 WHEN COUNT ( * ) * - 83 - - 76 THEN - + COUNT ( * ) ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9701
SELECT - CASE - - 57 WHEN 90 + - 86 * ( 99 ) - 43 + + CAST( - ( + AVG ( ALL - + 42 ) ) AS SIGNED ) * - 43 THEN 85 WHEN + ( - ( - + 42 ) ) * + 30 THEN NULL WHEN - - 55 * - 35 * + 3 * 70 THEN NULL ELSE NULL END, - 42 col2
----
NULL
-42

skipif mysql # not compatible
query II rowsort label-9701
SELECT - CASE - - 57 WHEN 90 + - 86 * ( 99 ) - 43 + + CAST ( - ( + AVG ( ALL - + 42 ) ) AS INTEGER ) * - 43 THEN 85 WHEN + ( - ( - + 42 ) ) * + 30 THEN NULL WHEN - - 55 * - 35 * + 3 * 70 THEN NULL ELSE NULL END, - 42 col2
----
NULL
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-9702
SELECT - ( + + COUNT( + 82 ) ) + - + 89 + + 45
----
-45

skipif mysql # not compatible
query I rowsort label-9702
SELECT - ( + + COUNT ( + 82 ) ) + - + 89 + + 45
----
-45

onlyif mysql # DIV for integer division: 
query I rowsort label-9703
SELECT ALL - COALESCE ( - - 30, - + 31 + - - NULLIF ( + 38, 73 + + 90 + 56 ) * - 1 DIV - 46 * + 28 )
----
-30

skipif mysql # not compatible
query I rowsort label-9703
SELECT ALL - COALESCE ( - - 30, - + 31 + - - NULLIF ( + 38, 73 + + 90 + 56 ) * - 1 / - 46 * + 28 )
----
-30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9704
SELECT + + COUNT( * ) * CAST( 58 AS SIGNED ) AS col2
----
58

skipif mysql # not compatible
query I rowsort label-9704
SELECT + + COUNT ( * ) * CAST ( 58 AS INTEGER ) AS col2
----
58

query I rowsort
SELECT ALL - 97 * 69 AS col0
----
-6693

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9706
SELECT DISTINCT + CASE MAX( + - 26 ) WHEN 64 THEN NULL WHEN - 85 THEN CAST( NULL AS DECIMAL ) WHEN + 97 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9706
SELECT DISTINCT + CASE MAX ( + - 26 ) WHEN 64 THEN NULL WHEN - 85 THEN CAST ( NULL AS REAL ) WHEN + 97 THEN NULL END
----
NULL

query II rowsort
SELECT 26 AS col2, 10 AS col0
----
26
10

query II rowsort
SELECT + + 92 AS col1, 52 AS col0
----
92
52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9709
SELECT + - MIN( - 68 ) * CAST( + COUNT( * ) AS SIGNED )
----
68

skipif mysql # not compatible
query I rowsort label-9709
SELECT + - MIN ( - 68 ) * CAST ( + COUNT ( * ) AS INTEGER )
----
68

query I rowsort
SELECT ALL - 90 * 88 * - + NULLIF ( + - 34, + - 22 ) - 48 AS col1
----
-269328

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9711
SELECT - - ( - - COUNT( * ) ) DIV - - 12 AS col1, 51 AS col2
----
0
51

skipif mysql # not compatible
query II rowsort label-9711
SELECT - - ( - - COUNT ( * ) ) / - - 12 AS col1, 51 AS col2
----
0
51

onlyif mysql # aggregate syntax: 
query I rowsort label-9712
SELECT ALL 58 * CASE + CASE - COUNT( * ) WHEN + - 27 THEN - - 80 + + + 50 + - - 69 ELSE + 67 END WHEN + 24 THEN 68 - + 47 ELSE + - 31 END + - 7 - 63 AS col1
----
-1868

skipif mysql # not compatible
query I rowsort label-9712
SELECT ALL 58 * CASE + CASE - COUNT ( * ) WHEN + - 27 THEN - - 80 + + + 50 + - - 69 ELSE + 67 END WHEN + 24 THEN 68 - + 47 ELSE + - 31 END + - 7 - 63 AS col1
----
-1868

query I rowsort
SELECT - 78 * - 91 AS col2
----
7098

onlyif mysql # aggregate syntax: 
query I rowsort label-9714
SELECT + MAX( DISTINCT - 0 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9714
SELECT + MAX ( DISTINCT - 0 ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9715
SELECT ALL + 80 * + - 62 + + ( + 47 ) col1, + ( - - CASE - 59 WHEN - SUM( DISTINCT - 81 ) + + + MAX( - 78 ) THEN + 99 ELSE NULL END ) AS col1
----
-4913
NULL

skipif mysql # not compatible
query II rowsort label-9715
SELECT ALL + 80 * + - 62 + + ( + 47 ) col1, + ( - - CASE - 59 WHEN - SUM ( DISTINCT - 81 ) + + + MAX ( - 78 ) THEN + 99 ELSE NULL END ) AS col1
----
-4913
NULL

query I rowsort
SELECT ALL 61 * + 92 AS col2
----
5612

query I rowsort
SELECT DISTINCT + 36 * - 50 - - + 42 + 38 AS col0
----
-1720

query I rowsort
SELECT - - 43 + 41 AS col0
----
84

query I rowsort
SELECT - 18 * + - 94 AS col0
----
1692

query I rowsort
SELECT COALESCE ( + 22, + 13 + - 79 ) AS col2
----
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9721
SELECT - CAST( NULL AS SIGNED ) - + 33 + + COALESCE ( - + COUNT( DISTINCT - 25 ), 44 * + 87 + + 13 + + 48 - 1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9721
SELECT - CAST ( NULL AS INTEGER ) - + 33 + + COALESCE ( - + COUNT ( DISTINCT - 25 ), 44 * + 87 + + 13 + + 48 - 1 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9722
SELECT + MAX( + 76 ) AS col1
----
76

skipif mysql # not compatible
query I rowsort label-9722
SELECT + MAX ( + 76 ) AS col1
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-9723
SELECT COALESCE ( NULLIF ( - + 28, - 15 ), + MIN( - - 59 ) * + 73 * MIN( + 47 ) - + 22 ) AS col2
----
-28

skipif mysql # not compatible
query I rowsort label-9723
SELECT COALESCE ( NULLIF ( - + 28, - 15 ), + MIN ( - - 59 ) * + 73 * MIN ( + 47 ) - + 22 ) AS col2
----
-28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9724
SELECT - 87 + - CASE 77 WHEN + SUM( DISTINCT - + 58 ) THEN NULL ELSE - COUNT( * ) * + + 64 * - CASE + NULLIF ( - 55, + + 35 * - + 94 * CASE 26 WHEN 51 * - 23 / 79 + + 20 - - 85 * - 15 * - - 8 + 2 + + 95 THEN - - 65 WHEN + 92 - + + 40 + - + NULLIF ( - 56, - 44 ) / + 52 THEN NULL WHEN 40 * + - 77 THEN NULL ELSE + CAST( + - ( + 12 ) AS SIGNED ) END + - 68 ) WHEN - 3 THEN - 61 / - 23 - COUNT( * ) END / ( 95 ) / + COALESCE ( + 64, + CASE 51 WHEN 86 THEN + 15 END + 6 ) * + NULLIF ( - ( 59 ) * 32, 72 ) + SUM( ALL + 61 - 26 * 60 ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9724
SELECT - 87 + - CASE 77 WHEN + SUM ( DISTINCT - + 58 ) THEN NULL ELSE - COUNT ( * ) * + + 64 * - CASE + NULLIF ( - 55, + + 35 * - + 94 * CASE 26 WHEN 51 * - 23 / 79 + + 20 - - 85 * - 15 * - - 8 + 2 + + 95 THEN - - 65 WHEN + 92 - + + 40 + - + NULLIF ( - 56, - 44 ) / + 52 THEN NULL WHEN 40 * + - 77 THEN NULL ELSE + CAST ( + - ( + 12 ) AS INTEGER ) END + - 68 ) WHEN - 3 THEN - 61 / - 23 - COUNT ( * ) END / ( 95 ) / + COALESCE ( + 64, + CASE 51 WHEN 86 THEN + 15 END + 6 ) * + NULLIF ( - ( 59 ) * 32, 72 ) + SUM ( ALL + 61 - 26 * 60 ) END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9725
SELECT ALL - CAST( NULL AS DECIMAL ) * COUNT( * ) * + 37
----
NULL

skipif mysql # not compatible
query I rowsort label-9725
SELECT ALL - CAST ( NULL AS REAL ) * COUNT ( * ) * + 37
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9726
SELECT NULLIF ( + - 56, 40 * COUNT( + 45 ) ) AS col2
----
-56

skipif mysql # not compatible
query I rowsort label-9726
SELECT NULLIF ( + - 56, 40 * COUNT ( + 45 ) ) AS col2
----
-56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9727
SELECT ALL NULLIF ( - + NULLIF ( NULLIF ( + + 51, + ( - 2 ) + - 34 ), + - 47 ), 24 + - 7 * - + COALESCE ( + - 36, - - COUNT( * ) * - 9 * COUNT( * ) + + 6 * + CAST( - MAX( ALL + 92 ) AS SIGNED ) * + 47 - 22 + COUNT( * ) ) / + + 28 + + 84 )
----
-51

skipif mysql # not compatible
query I rowsort label-9727
SELECT ALL NULLIF ( - + NULLIF ( NULLIF ( + + 51, + ( - 2 ) + - 34 ), + - 47 ), 24 + - 7 * - + COALESCE ( + - 36, - - COUNT ( * ) * - 9 * COUNT ( * ) + + 6 * + CAST ( - MAX ( ALL + 92 ) AS INTEGER ) * + 47 - 22 + COUNT ( * ) ) / + + 28 + + 84 )
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-9728
SELECT ALL + COUNT( * ) * 95 * - 73 AS col2
----
-6935

skipif mysql # not compatible
query I rowsort label-9728
SELECT ALL + COUNT ( * ) * 95 * - 73 AS col2
----
-6935

query I rowsort
SELECT - 33 - - 47
----
14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9730
SELECT 20 DIV + ( COUNT( * ) )
----
20

skipif mysql # not compatible
query I rowsort label-9730
SELECT 20 / + ( COUNT ( * ) )
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-9731
SELECT MAX( - + 44 ) * - 61 * 15 AS col0
----
40260

skipif mysql # not compatible
query I rowsort label-9731
SELECT MAX ( - + 44 ) * - 61 * 15 AS col0
----
40260

query I rowsort
SELECT 29 + + - 53 AS col1
----
-24

onlyif mysql # DIV for integer division: 
query I rowsort label-9733
SELECT ALL 85 DIV + 90 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9733
SELECT ALL 85 / + 90 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9734
SELECT COUNT( * ) DIV - CAST( - 55 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-9734
SELECT COUNT ( * ) / - CAST ( - 55 AS INTEGER )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9735
SELECT - 37 * - + 18 + + + MIN( + 53 ) AS col1, 24 + 60 DIV - 5 + 20 AS col1
----
719
32

skipif mysql # not compatible
query II rowsort label-9735
SELECT - 37 * - + 18 + + + MIN ( + 53 ) AS col1, 24 + 60 / - 5 + 20 AS col1
----
719
32

query I rowsort
SELECT ALL 76 + - - 93 * 74 col2
----
6958

query I rowsort
SELECT ALL 34 * + 47 AS col2
----
1598

query I rowsort
SELECT + 3 + + 97
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-9739
SELECT 30 * + COUNT( DISTINCT - 29 )
----
30

skipif mysql # not compatible
query I rowsort label-9739
SELECT 30 * + COUNT ( DISTINCT - 29 )
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-9740
SELECT ALL - COUNT( 72 ) + + + 24 AS col1
----
23

skipif mysql # not compatible
query I rowsort label-9740
SELECT ALL - COUNT ( 72 ) + + + 24 AS col1
----
23

query I rowsort
SELECT + CASE WHEN NOT - 42 IS NOT NULL THEN NULL ELSE + 57 + + 39 * - 22 END
----
-801

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9742
SELECT 9 + - CASE - + 16 WHEN + 84 THEN - - 44 * 59 * - + CAST( NULL AS SIGNED ) END AS col2, 22 AS col0
----
NULL
22

skipif mysql # not compatible
query II rowsort label-9742
SELECT 9 + - CASE - + 16 WHEN + 84 THEN - - 44 * 59 * - + CAST ( NULL AS INTEGER ) END AS col2, 22 AS col0
----
NULL
22

query I rowsort
SELECT 53 * - ( 48 )
----
-2544

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9744
SELECT ALL - - CAST( COUNT( * ) AS SIGNED ) col0
----
1

skipif mysql # not compatible
query I rowsort label-9744
SELECT ALL - - CAST ( COUNT ( * ) AS INTEGER ) col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9745
SELECT MAX( + 61 ) * 15 + - ( - + 74 ) AS col2
----
989

skipif mysql # not compatible
query I rowsort label-9745
SELECT MAX ( + 61 ) * 15 + - ( - + 74 ) AS col2
----
989

query II rowsort
SELECT DISTINCT - + NULLIF ( 46, 90 / + 98 ) AS col2, - 34
----
-46
-34

query I rowsort
SELECT ALL ( - + NULLIF ( - 73, + 57 ) ) + 55 AS col2
----
128

query I rowsort
SELECT + COALESCE ( - 70, 60 * 19 ) * 66 * + ( + 76 ) + 14 AS col1
----
-351106

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9749
SELECT ( 84 ) DIV + + COUNT( * ) - + 32 + - + 65 AS col1
----
-13

skipif mysql # not compatible
query I rowsort label-9749
SELECT ( 84 ) / + + COUNT ( * ) - + 32 + - + 65 AS col1
----
-13

query I rowsort
SELECT 39 * - + 58 * 81 * 96 + 7
----
-17589305

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9751
SELECT CAST( NULL AS DECIMAL ) + CAST( NULL AS SIGNED ) + + COUNT( * ) + - 83 * + ( 4 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9751
SELECT CAST ( NULL AS REAL ) + CAST ( NULL AS INTEGER ) + + COUNT ( * ) + - 83 * + ( 4 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9752
SELECT CAST( NULL AS SIGNED ) * 76
----
NULL

skipif mysql # not compatible
query I rowsort label-9752
SELECT CAST ( NULL AS INTEGER ) * 76
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9753
SELECT COUNT( * ) + - NULLIF ( - - 98, 87 ) col2
----
-97

skipif mysql # not compatible
query I rowsort label-9753
SELECT COUNT ( * ) + - NULLIF ( - - 98, 87 ) col2
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-9754
SELECT DISTINCT - COUNT( 45 )
----
-1

skipif mysql # not compatible
query I rowsort label-9754
SELECT DISTINCT - COUNT ( 45 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9755
SELECT ALL - SUM( + 82 )
----
-82

skipif mysql # not compatible
query I rowsort label-9755
SELECT ALL - SUM ( + 82 )
----
-82

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9756
SELECT DISTINCT COUNT( * ) * COUNT( * ) DIV - 57 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9756
SELECT DISTINCT COUNT ( * ) * COUNT ( * ) / - 57 AS col2
----
0

query I rowsort
SELECT 46 * + - 90 AS col2
----
-4140

onlyif mysql # aggregate syntax: 
query I rowsort label-9758
SELECT 26 + COUNT( * )
----
27

skipif mysql # not compatible
query I rowsort label-9758
SELECT 26 + COUNT ( * )
----
27

query II rowsort
SELECT - 63, 59 + - 55 * 52 AS col2
----
-63
-2801

query II rowsort
SELECT 36 + - 42 + - 16 AS col2, - 94 AS col0
----
-22
-94

query I rowsort
SELECT ALL - 31 + + 38
----
7

query I rowsort
SELECT ALL + 68 + + - 59 * + - 43 * 81 * - ( - ( 5 ) )
----
1027553

query I rowsort
SELECT 61 + + 65 AS col1
----
126

query I rowsort
SELECT DISTINCT + 47 + 92 col1
----
139

onlyif mysql # aggregate syntax: 
query I rowsort label-9765
SELECT MIN( - - ( - - 89 ) ) * - - 92 * + COALESCE ( 73, + + 2 * - - 28 * + 41 * 58 ) * - + ( 18 ) + + 89 + + + 90 AS col0
----
-10758853

skipif mysql # not compatible
query I rowsort label-9765
SELECT MIN ( - - ( - - 89 ) ) * - - 92 * + COALESCE ( 73, + + 2 * - - 28 * + 41 * 58 ) * - + ( 18 ) + + 89 + + + 90 AS col0
----
-10758853

query II rowsort
SELECT 80 AS col0, - 26 AS col1
----
80
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-9767
SELECT ALL + - 58 + + - 63 * - COUNT( DISTINCT - 22 ) AS col2
----
5

skipif mysql # not compatible
query I rowsort label-9767
SELECT ALL + - 58 + + - 63 * - COUNT ( DISTINCT - 22 ) AS col2
----
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9768
SELECT 78 DIV 53 * - - 76 DIV + - NULLIF ( 28, NULLIF ( + - COALESCE ( 88, + COUNT( * ) ), + COUNT( * ) - + 94 ) ) * - - COUNT( * ) + - 42 AS col1
----
-44

skipif mysql # not compatible
query I rowsort label-9768
SELECT 78 / 53 * - - 76 / + - NULLIF ( 28, NULLIF ( + - COALESCE ( 88, + COUNT ( * ) ), + COUNT ( * ) - + 94 ) ) * - - COUNT ( * ) + - 42 AS col1
----
-44

query I rowsort
SELECT ALL + 73 + 28 * 98
----
2817

query I rowsort
SELECT DISTINCT - + 16 AS col0
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-9771
SELECT ALL + + ( - + 83 ) * - + 55 - 34 * - - COUNT( + 94 ) AS col2
----
4531

skipif mysql # not compatible
query I rowsort label-9771
SELECT ALL + + ( - + 83 ) * - + 55 - 34 * - - COUNT ( + 94 ) AS col2
----
4531

onlyif mysql # DIV for integer division: 
query I rowsort label-9772
SELECT + 60 DIV + - 16 AS col1
----
-3

skipif mysql # not compatible
query I rowsort label-9772
SELECT + 60 / + - 16 AS col1
----
-3

query I rowsort
SELECT ( + 8 ) * + 66 col1
----
528

onlyif mysql # aggregate syntax: 
query I rowsort label-9774
SELECT DISTINCT + - COUNT( * ) * - - COUNT( * ) - - + COUNT( 79 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9774
SELECT DISTINCT + - COUNT ( * ) * - - COUNT ( * ) - - + COUNT ( 79 ) AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9775
SELECT ALL - - 84 AS col0, COUNT( * ) + - 88 DIV - 87 + 58 * + 37 AS col1
----
84
2148

skipif mysql # not compatible
query II rowsort label-9775
SELECT ALL - - 84 AS col0, COUNT ( * ) + - 88 / - 87 + 58 * + 37 AS col1
----
84
2148

onlyif mysql # aggregate syntax: 
query I rowsort label-9776
SELECT ALL - SUM( 21 )
----
-21

skipif mysql # not compatible
query I rowsort label-9776
SELECT ALL - SUM ( 21 )
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-9777
SELECT ( + - 32 ) * + SUM( + 86 ) * - 2 * 0 + 68 * - COUNT( * ) * 38 AS col0
----
-2584

skipif mysql # not compatible
query I rowsort label-9777
SELECT ( + - 32 ) * + SUM ( + 86 ) * - 2 * 0 + 68 * - COUNT ( * ) * 38 AS col0
----
-2584

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9778
SELECT MIN( - - CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9778
SELECT MIN ( - - CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

query II rowsort
SELECT DISTINCT - 72 AS col1, 95 AS col0
----
-72
95

onlyif mysql # DIV for integer division: 
query I rowsort label-9780
SELECT + 45 DIV - 1
----
-45

skipif mysql # not compatible
query I rowsort label-9780
SELECT + 45 / - 1
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-9781
SELECT + CASE 12 WHEN + 44 THEN NULL WHEN COUNT( * ) - + COUNT( * ) + - ( + 15 ) * + - 62 / - 27 * + COUNT( * ) THEN - 18 WHEN + - COUNT( * ) THEN NULL END * + 1
----
NULL

skipif mysql # not compatible
query I rowsort label-9781
SELECT + CASE 12 WHEN + 44 THEN NULL WHEN COUNT ( * ) - + COUNT ( * ) + - ( + 15 ) * + - 62 / - 27 * + COUNT ( * ) THEN - 18 WHEN + - COUNT ( * ) THEN NULL END * + 1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9782
SELECT DISTINCT 57 DIV - - 94 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9782
SELECT DISTINCT 57 / - - 94 AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9783
SELECT DISTINCT 74 DIV + + MIN( ALL - 42 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-9783
SELECT DISTINCT 74 / + + MIN ( ALL - 42 ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9784
SELECT + 98 - - 20 + - COUNT( * )
----
117

skipif mysql # not compatible
query I rowsort label-9784
SELECT + 98 - - 20 + - COUNT ( * )
----
117

query II rowsort
SELECT + 8 AS col1, NULLIF ( 17, + 39 * + 12 )
----
8
17

query I rowsort
SELECT ALL 9 * - 43 AS col2
----
-387

onlyif mysql # DIV for integer division: 
query I rowsort label-9787
SELECT + 15 DIV - 61 * + 17
----
0

skipif mysql # not compatible
query I rowsort label-9787
SELECT + 15 / - 61 * + 17
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9788
SELECT + 74 + 97 + - 28 / - + CAST( - CAST( NULL AS SIGNED ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9788
SELECT + 74 + 97 + - 28 / - + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9789
SELECT + SUM( DISTINCT - 80 ) * - + CASE - + CAST( - ( + 65 ) AS SIGNED ) WHEN COUNT( * ) * + 19 THEN + 52 * + 40 + - 8 + + 21 / - - COUNT( * ) + 84 * - ( - 97 ) * - + 54 WHEN + 26 / - ( - - 58 ) THEN NULL ELSE NULL END * - 57 * + + 33 - - 87
----
NULL

skipif mysql # not compatible
query I rowsort label-9789
SELECT + SUM ( DISTINCT - 80 ) * - + CASE - + CAST ( - ( + 65 ) AS INTEGER ) WHEN COUNT ( * ) * + 19 THEN + 52 * + 40 + - 8 + + 21 / - - COUNT ( * ) + 84 * - ( - 97 ) * - + 54 WHEN + 26 / - ( - - 58 ) THEN NULL ELSE NULL END * - 57 * + + 33 - - 87
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9790
SELECT DISTINCT + 0 + + COALESCE ( - + 39, - - 17 ) + 91 DIV - 79
----
-40

skipif mysql # not compatible
query I rowsort label-9790
SELECT DISTINCT + 0 + + COALESCE ( - + 39, - - 17 ) + 91 / - 79
----
-40

query I rowsort
SELECT ALL 73 * + 86 AS col1
----
6278

query I rowsort
SELECT ALL + 82 + 18 AS col1
----
100

query II rowsort
SELECT 0 AS col1, 29 AS col0
----
0
29

onlyif mysql # aggregate syntax: 
query I rowsort label-9794
SELECT ALL MAX( DISTINCT 45 )
----
45

skipif mysql # not compatible
query I rowsort label-9794
SELECT ALL MAX ( DISTINCT 45 )
----
45

onlyif mysql # aggregate syntax: 
query II rowsort label-9795
SELECT - 41 AS col0, + 71 + - COUNT( * ) AS col1
----
-41
70

skipif mysql # not compatible
query II rowsort label-9795
SELECT - 41 AS col0, + 71 + - COUNT ( * ) AS col1
----
-41
70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-9796
SELECT ALL + - 56 + + + 64, CAST( + - COUNT( * ) AS SIGNED ) AS col0, 99 AS col1
----
8
-1
99

skipif mysql # not compatible
query III rowsort label-9796
SELECT ALL + - 56 + + + 64, CAST ( + - COUNT ( * ) AS INTEGER ) AS col0, 99 AS col1
----
8
-1
99

query I rowsort
SELECT DISTINCT - ( 93 ) AS col1
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-9798
SELECT + - 63 * COALESCE ( 7, 90, + 21 - + 66 ) + 24 + - SUM( DISTINCT - 56 ) AS col2
----
-361

skipif mysql # not compatible
query I rowsort label-9798
SELECT + - 63 * COALESCE ( 7, 90, + 21 - + 66 ) + 24 + - SUM ( DISTINCT - 56 ) AS col2
----
-361

onlyif mysql # aggregate syntax: 
query II rowsort label-9799
SELECT - - 59 col1, COUNT( * )
----
59
1

skipif mysql # not compatible
query II rowsort label-9799
SELECT - - 59 col1, COUNT ( * )
----
59
1

onlyif mysql # DIV for integer division: 
query II rowsort label-9800
SELECT ALL - 3, 43 DIV - 13 AS col1
----
-3
-3

skipif mysql # not compatible
query II rowsort label-9800
SELECT ALL - 3, 43 / - 13 AS col1
----
-3
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9801
SELECT ALL + COUNT( * ) AS col1, ( + + 99 ) DIV 22 + + + MIN( ALL + ( - 82 ) ) DIV 30
----
1
2

skipif mysql # not compatible
query II rowsort label-9801
SELECT ALL + COUNT ( * ) AS col1, ( + + 99 ) / 22 + + + MIN ( ALL + ( - 82 ) ) / 30
----
1
2

query I rowsort
SELECT ALL + NULLIF ( + - 99, + + 82 ) - - 32
----
-67

query I rowsort
SELECT - - NULLIF ( 25, + ( - 56 ) * - - 46 )
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-9804
SELECT DISTINCT - COUNT( DISTINCT + 72 ) - - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-9804
SELECT DISTINCT - COUNT ( DISTINCT + 72 ) - - COUNT ( * )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9805
SELECT - - SUM( + - 27 ) * + 12 AS col1
----
-324

skipif mysql # not compatible
query I rowsort label-9805
SELECT - - SUM ( + - 27 ) * + 12 AS col1
----
-324

onlyif mysql # aggregate syntax: 
query I rowsort label-9806
SELECT ALL - + 39 - - COUNT( * ) AS col0
----
-38

skipif mysql # not compatible
query I rowsort label-9806
SELECT ALL - + 39 - - COUNT ( * ) AS col0
----
-38

query II rowsort
SELECT 19 AS col2, + 8 - 65
----
19
-57

query I rowsort
SELECT - 10 + - 44
----
-54

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9809
SELECT - 85 * + 56 DIV COUNT( + 67 ) AS col1
----
-4760

skipif mysql # not compatible
query I rowsort label-9809
SELECT - 85 * + 56 / COUNT ( + 67 ) AS col1
----
-4760

query I rowsort
SELECT ALL + ( + + 44 ) AS col1
----
44

query I rowsort
SELECT - - 12 + - 20
----
-8

onlyif mysql # DIV for integer division: 
query I rowsort label-9812
SELECT ALL + ( + - 28 ) DIV 53
----
0

skipif mysql # not compatible
query I rowsort label-9812
SELECT ALL + ( + - 28 ) / 53
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9813
SELECT ALL - NULLIF ( + CAST( NULL AS SIGNED ), + - 26 + 93 ) / 86 * - 59 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9813
SELECT ALL - NULLIF ( + CAST ( NULL AS INTEGER ), + - 26 + 93 ) / 86 * - 59 AS col0
----
NULL

query II rowsort
SELECT ALL 69 * 65 AS col1, 43 col0
----
4485
43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9815
SELECT 12 / - COUNT( * ) * 39 + MIN( CAST( NULL AS SIGNED ) ) * + 27 + 92 - COUNT( * ) / + 44 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9815
SELECT 12 / - COUNT ( * ) * 39 + MIN ( CAST ( NULL AS INTEGER ) ) * + 27 + 92 - COUNT ( * ) / + 44 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9816
SELECT ALL + MIN( ALL + 97 ) AS col1
----
97

skipif mysql # not compatible
query I rowsort label-9816
SELECT ALL + MIN ( ALL + 97 ) AS col1
----
97

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9817
SELECT DISTINCT + CASE - NULLIF ( - 38, + 57 * + - 71 * + 65 * - NULLIF ( 75, - 8 ) + - 33 + + 85 + - - 76 * - + 21 * - 95 + - 33 ) WHEN 26 * + 7 THEN NULL WHEN + CAST( - SUM( DISTINCT 33 ) AS DECIMAL ) * + 87 * + + 92 * - 90 + - 88 * 29 THEN + ( + 26 ) WHEN 12 THEN NULL ELSE + 42 END
----
42

skipif mysql # not compatible
query I rowsort label-9817
SELECT DISTINCT + CASE - NULLIF ( - 38, + 57 * + - 71 * + 65 * - NULLIF ( 75, - 8 ) + - 33 + + 85 + - - 76 * - + 21 * - 95 + - 33 ) WHEN 26 * + 7 THEN NULL WHEN + CAST ( - SUM ( DISTINCT 33 ) AS REAL ) * + 87 * + + 92 * - 90 + - 88 * 29 THEN + ( + 26 ) WHEN 12 THEN NULL ELSE + 42 END
----
42

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9818
SELECT + MAX( + + NULLIF ( - 38, + CAST( + 54 AS DECIMAL ) * + 27 * 77 ) )
----
-38

skipif mysql # not compatible
query I rowsort label-9818
SELECT + MAX ( + + NULLIF ( - 38, + CAST ( + 54 AS REAL ) * + 27 * 77 ) )
----
-38

query I rowsort
SELECT - 74 + - + 61
----
-135

query I rowsort
SELECT ALL + 90 * - - 62 + 47 AS col0
----
5627

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9821
SELECT CASE + + COUNT( * ) WHEN - 81 THEN NULL WHEN - 37 THEN NULL WHEN AVG ( 53 ) THEN COUNT( * ) * + NULLIF ( + ( + CASE - COUNT( * ) WHEN + NULLIF ( - + ( - + ( 66 ) ), - 43 ) THEN 15 END ), 22 ) * 13 * - 97 - - 20 + COUNT( * ) END, CASE - 51 WHEN + CAST( NULL AS SIGNED ) * - - ( + COUNT( * ) ) / + 31 * + 62 / + COUNT( * ) + + 87 - + 32 - 82 / + CAST( NULL AS SIGNED ) THEN - 50 WHEN COUNT( * ) + + 59 THEN NULL ELSE NULL END - 69
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-9821
SELECT CASE + + COUNT ( * ) WHEN - 81 THEN NULL WHEN - 37 THEN NULL WHEN AVG ( 53 ) THEN COUNT ( * ) * + NULLIF ( + ( + CASE - COUNT ( * ) WHEN + NULLIF ( - + ( - + ( 66 ) ), - 43 ) THEN 15 END ), 22 ) * 13 * - 97 - - 20 + COUNT ( * ) END, CASE - 51 WHEN + CAST ( NULL AS INTEGER ) * - - ( + COUNT ( * ) ) / + 31 * + 62 / + COUNT ( * ) + + 87 - + 32 - 82 / + CAST ( NULL AS INTEGER ) THEN - 50 WHEN COUNT ( * ) + + 59 THEN NULL ELSE NULL END - 69
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9822
SELECT ALL 85 * + COUNT( * ) * + 30 * + ( + 2 ) + + 6
----
5106

skipif mysql # not compatible
query I rowsort label-9822
SELECT ALL 85 * + COUNT ( * ) * + 30 * + ( + 2 ) + + 6
----
5106

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9823
SELECT CASE - + 56 WHEN 24 THEN + - COUNT( * ) / - - 22 WHEN - - 82 THEN - 64 * 52 + - CAST( NULL AS SIGNED ) * ( + + 44 ) WHEN + - 74 - + COUNT( * ) THEN - + 98 ELSE 99 + + - 57 + - CASE - 47 WHEN - + COUNT( * ) THEN NULL WHEN + - COALESCE ( - + 32, 61 + + + 43 + 13 * 67 * 22 * - 28, + 3 ) / - 55 + - 14 * + COUNT( * ) + - 5 * - - 58 * + 52 THEN NULL WHEN + CAST( + 26 AS SIGNED ) * - 86 * - CAST( NULL AS SIGNED ) THEN - CAST( + COUNT( * ) AS SIGNED ) ELSE - 43 END END
----
85

skipif mysql # not compatible
query I rowsort label-9823
SELECT CASE - + 56 WHEN 24 THEN + - COUNT ( * ) / - - 22 WHEN - - 82 THEN - 64 * 52 + - CAST ( NULL AS INTEGER ) * ( + + 44 ) WHEN + - 74 - + COUNT ( * ) THEN - + 98 ELSE 99 + + - 57 + - CASE - 47 WHEN - + COUNT ( * ) THEN NULL WHEN + - COALESCE ( - + 32, 61 + + + 43 + 13 * 67 * 22 * - 28, + 3 ) / - 55 + - 14 * + COUNT ( * ) + - 5 * - - 58 * + 52 THEN NULL WHEN + CAST ( + 26 AS INTEGER ) * - 86 * - CAST ( NULL AS INTEGER ) THEN - CAST ( + COUNT ( * ) AS INTEGER ) ELSE - 43 END END
----
85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9824
SELECT ALL + ( + + CASE + COUNT( * ) WHEN - 38 THEN COALESCE ( + 57, + 95 * 93 + + 51, + ( - + CAST( + 14 AS SIGNED ) ) ) WHEN + 14 THEN + 7 ELSE NULL END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9824
SELECT ALL + ( + + CASE + COUNT ( * ) WHEN - 38 THEN COALESCE ( + 57, + 95 * 93 + + 51, + ( - + CAST ( + 14 AS INTEGER ) ) ) WHEN + 14 THEN + 7 ELSE NULL END ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9825
SELECT COUNT( * ) * 0 + - + COUNT( * ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-9825
SELECT COUNT ( * ) * 0 + - + COUNT ( * ) col1
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-9826
SELECT ALL 56 DIV + 35
----
1

skipif mysql # not compatible
query I rowsort label-9826
SELECT ALL 56 / + 35
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9827
SELECT + 61 DIV + 3
----
20

skipif mysql # not compatible
query I rowsort label-9827
SELECT + 61 / + 3
----
20

query I rowsort
SELECT + 96 + - 26
----
70

query I rowsort
SELECT + 8 * 19
----
152

onlyif mysql # aggregate syntax: 
query II rowsort label-9830
SELECT MAX( ALL 24 ) AS col0, + 19 col0
----
24
19

skipif mysql # not compatible
query II rowsort label-9830
SELECT MAX ( ALL 24 ) AS col0, + 19 col0
----
24
19

onlyif mysql # aggregate syntax: 
query I rowsort label-9831
SELECT - + COUNT( - + COALESCE ( - + ( + 99 ), - 49 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-9831
SELECT - + COUNT ( - + COALESCE ( - + ( + 99 ), - 49 ) )
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-9832
SELECT + - 17 + - 31 DIV + 68 + + 33 DIV - 47 * 62 - - 60 + ( 54 ) DIV 67
----
43

skipif mysql # not compatible
query I rowsort label-9832
SELECT + - 17 + - 31 / + 68 + + 33 / - 47 * 62 - - 60 + ( 54 ) / 67
----
43

query I rowsort
SELECT DISTINCT 32 - + - 45 AS col1
----
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9834
SELECT DISTINCT COUNT( DISTINCT + - CAST( NULL AS SIGNED ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9834
SELECT DISTINCT COUNT ( DISTINCT + - CAST ( NULL AS INTEGER ) ) AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9835
SELECT DISTINCT COALESCE ( + - 55, - 92 DIV CAST( + COUNT( 26 ) AS SIGNED ) ) AS col1
----
-55

skipif mysql # not compatible
query I rowsort label-9835
SELECT DISTINCT COALESCE ( + - 55, - 92 / CAST ( + COUNT ( 26 ) AS INTEGER ) ) AS col1
----
-55

query I rowsort
SELECT DISTINCT - ( 22 ) * 37
----
-814

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9837
SELECT + COUNT( * ) DIV - 71 + 88 col1
----
88

skipif mysql # not compatible
query I rowsort label-9837
SELECT + COUNT ( * ) / - 71 + 88 col1
----
88

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9838
SELECT ALL + - ( COUNT( * ) ) DIV 12 - 97 AS col2
----
-97

skipif mysql # not compatible
query I rowsort label-9838
SELECT ALL + - ( COUNT ( * ) ) / 12 - 97 AS col2
----
-97

query I rowsort
SELECT + 42 + + - 98 + 30
----
-26

query I rowsort
SELECT ALL NULLIF ( + ( + 39 ), 95 ) AS col1
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-9841
SELECT - - 10 + 62 + + COUNT( * ) col1
----
73

skipif mysql # not compatible
query I rowsort label-9841
SELECT - - 10 + 62 + + COUNT ( * ) col1
----
73

query I rowsort
SELECT - + ( COALESCE ( - 33, - 70 * + 79 ) )
----
33

query I rowsort
SELECT - + 91 * - 40
----
3640

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9844
SELECT ALL COUNT( * ) * - COALESCE ( - - 69, 45 - + CAST( NULL AS SIGNED ) ) AS col1
----
-69

skipif mysql # not compatible
query I rowsort label-9844
SELECT ALL COUNT ( * ) * - COALESCE ( - - 69, 45 - + CAST ( NULL AS INTEGER ) ) AS col1
----
-69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9845
SELECT ALL - CASE - CAST( NULL AS SIGNED ) WHEN MAX( 38 ) THEN + 83 + 34 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9845
SELECT ALL - CASE - CAST ( NULL AS INTEGER ) WHEN MAX ( 38 ) THEN + 83 + 34 END
----
NULL

query I rowsort
SELECT 20 - - NULLIF ( - 34, AVG ( + ( + 8 ) ) ) AS col0
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-9847
SELECT DISTINCT - MAX( DISTINCT - 70 ) AS col1
----
70

skipif mysql # not compatible
query I rowsort label-9847
SELECT DISTINCT - MAX ( DISTINCT - 70 ) AS col1
----
70

query II rowsort
SELECT 9 AS col2, + 26 * + + 40 * 42 col2
----
9
43680

onlyif mysql # aggregate syntax: 
query II rowsort label-9849
SELECT 39 * - + SUM( - 4 ), 57 + + ( - 69 ) AS col0
----
156
-12

skipif mysql # not compatible
query II rowsort label-9849
SELECT 39 * - + SUM ( - 4 ), 57 + + ( - 69 ) AS col0
----
156
-12

onlyif mysql # DIV for integer division: 
query I rowsort label-9850
SELECT ALL + 45 DIV - 47 * ( 40 )
----
0

skipif mysql # not compatible
query I rowsort label-9850
SELECT ALL + 45 / - 47 * ( 40 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9851
SELECT DISTINCT - COUNT( ALL + 5 )
----
-1

skipif mysql # not compatible
query I rowsort label-9851
SELECT DISTINCT - COUNT ( ALL + 5 )
----
-1

query I rowsort
SELECT ALL - 81 + - 21
----
-102

query I rowsort
SELECT DISTINCT + 27 * - - 22
----
594

query I rowsort
SELECT ALL 56 * - 14 AS col1
----
-784

query I rowsort
SELECT 55 * + 87 + 70 * - 92 * - 46 AS col0
----
301025

query I rowsort
SELECT 74 * 39 AS col2
----
2886

query II rowsort
SELECT 25 AS col2, 28 col0
----
25
28

onlyif mysql # aggregate syntax: 
query I rowsort label-9858
SELECT ALL - 55 * - - MAX( 17 ) * - COUNT( * ) col2
----
935

skipif mysql # not compatible
query I rowsort label-9858
SELECT ALL - 55 * - - MAX ( 17 ) * - COUNT ( * ) col2
----
935

onlyif mysql # aggregate syntax: 
query I rowsort label-9859
SELECT 64 + - COUNT( * ) + - 24 - 2
----
37

skipif mysql # not compatible
query I rowsort label-9859
SELECT 64 + - COUNT ( * ) + - 24 - 2
----
37

onlyif mysql # aggregate syntax: 
query II rowsort label-9860
SELECT ALL 34 - - - 3 + + COUNT( * ), - 88 AS col1
----
32
-88

skipif mysql # not compatible
query II rowsort label-9860
SELECT ALL 34 - - - 3 + + COUNT ( * ), - 88 AS col1
----
32
-88

query II rowsort
SELECT - + 7, + 71 + - 41 * - + 81 + + 11 AS col1
----
-7
3403

onlyif mysql # aggregate syntax: 
query I rowsort label-9862
SELECT - NULLIF ( + + 74, + 40 ) + 83 * - COUNT( * ) AS col0
----
-157

skipif mysql # not compatible
query I rowsort label-9862
SELECT - NULLIF ( + + 74, + 40 ) + 83 * - COUNT ( * ) AS col0
----
-157

onlyif mysql # aggregate syntax: 
query I rowsort label-9863
SELECT - ( NULLIF ( + COUNT( * ), 79 * ( + - CASE - 8 WHEN + ( 43 ) THEN 27 + - 20 ELSE NULL END ) ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-9863
SELECT - ( NULLIF ( + COUNT ( * ), 79 * ( + - CASE - 8 WHEN + ( 43 ) THEN 27 + - 20 ELSE NULL END ) ) ) AS col1
----
-1

query I rowsort
SELECT + 97 + + - 18
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-9865
SELECT ALL COUNT( * ) * + 49 + - - 25
----
74

skipif mysql # not compatible
query I rowsort label-9865
SELECT ALL COUNT ( * ) * + 49 + - - 25
----
74

onlyif mysql # aggregate syntax: 
query II rowsort label-9866
SELECT ALL ( - COUNT( * ) ) * + 49 AS col2, + 24
----
-49
24

skipif mysql # not compatible
query II rowsort label-9866
SELECT ALL ( - COUNT ( * ) ) * + 49 AS col2, + 24
----
-49
24

onlyif mysql # aggregate syntax: 
query I rowsort label-9867
SELECT ALL ( - - COUNT( + + 61 ) ) + - 66 AS col2
----
-65

skipif mysql # not compatible
query I rowsort label-9867
SELECT ALL ( - - COUNT ( + + 61 ) ) + - 66 AS col2
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-9868
SELECT COUNT( * ) - - + 0 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9868
SELECT COUNT ( * ) - - + 0 AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9869
SELECT ALL + 98 * + COUNT( * ) AS col0
----
98

skipif mysql # not compatible
query I rowsort label-9869
SELECT ALL + 98 * + COUNT ( * ) AS col0
----
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9870
SELECT + 86 + - CASE + + 52 WHEN + ( - AVG ( + CAST( NULL AS SIGNED ) ) ) + - + ( 76 ) THEN 40 * + 92 + + + CAST( NULL AS SIGNED ) ELSE - 50 * COUNT( * ) END
----
136

skipif mysql # not compatible
query I rowsort label-9870
SELECT + 86 + - CASE + + 52 WHEN + ( - AVG ( + CAST ( NULL AS INTEGER ) ) ) + - + ( 76 ) THEN 40 * + 92 + + + CAST ( NULL AS INTEGER ) ELSE - 50 * COUNT ( * ) END
----
136

onlyif mysql # aggregate syntax: 
query I rowsort label-9871
SELECT DISTINCT 58 + - + MAX( ALL + 63 ) AS col2
----
-5

skipif mysql # not compatible
query I rowsort label-9871
SELECT DISTINCT 58 + - + MAX ( ALL + 63 ) AS col2
----
-5

query II rowsort
SELECT ( - 40 ) + 61 + + - 75, + 20 col1
----
-54
20

query I rowsort
SELECT 13 * 68 * - + 90 - 22 AS col1
----
-79582

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9874
SELECT CAST( NULL AS DECIMAL ) + - 89 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9874
SELECT CAST ( NULL AS REAL ) + - 89 col0
----
NULL

query I rowsort
SELECT DISTINCT - 58 * 84
----
-4872

query I rowsort
SELECT 55 * - 83 AS col1
----
-4565

query I rowsort
SELECT ALL - 86 + - + 22 AS col1
----
-108

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9878
SELECT 74 + + - CAST( NULL AS SIGNED ) + 4 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9878
SELECT 74 + + - CAST ( NULL AS INTEGER ) + 4 AS col1
----
NULL

query I rowsort
SELECT NULLIF ( + 20, + 12 ) * 91 * 27 AS col0
----
49140

query I rowsort
SELECT DISTINCT + 41 * + 27 AS col1
----
1107

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9881
SELECT ALL - COALESCE ( - - COUNT( * ), + 39, + COUNT( * ) + + - MAX( + + 33 ) + - 0 DIV + + NULLIF ( 24, - 0 ) DIV - ( - + 85 ) DIV 41 + + 0 ), 8 DIV + 82 AS col0
----
-1
0

skipif mysql # not compatible
query II rowsort label-9881
SELECT ALL - COALESCE ( - - COUNT ( * ), + 39, + COUNT ( * ) + + - MAX ( + + 33 ) + - 0 / + + NULLIF ( 24, - 0 ) / - ( - + 85 ) / 41 + + 0 ), 8 / + 82 AS col0
----
-1
0

query I rowsort
SELECT 70 * + 33
----
2310

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9883
SELECT DISTINCT + 96 DIV + COUNT( DISTINCT + + 60 )
----
96

skipif mysql # not compatible
query I rowsort label-9883
SELECT DISTINCT + 96 / + COUNT ( DISTINCT + + 60 )
----
96

onlyif mysql # DIV for integer division: 
query I rowsort label-9884
SELECT + 88 DIV + ( + 70 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-9884
SELECT + 88 / + ( + 70 ) col2
----
1

query I rowsort
SELECT ALL + - 24 * - 29
----
696

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9886
SELECT DISTINCT + - 7 DIV - COUNT( * ) - 97 + + 46 * CAST( - + 41 AS SIGNED ) AS col1
----
-1976

skipif mysql # not compatible
query I rowsort label-9886
SELECT DISTINCT + - 7 / - COUNT ( * ) - 97 + + 46 * CAST ( - + 41 AS INTEGER ) AS col1
----
-1976

onlyif mysql # DIV for integer division: 
query I rowsort label-9887
SELECT + 54 DIV - + 13 AS col1
----
-4

skipif mysql # not compatible
query I rowsort label-9887
SELECT + 54 / - + 13 AS col1
----
-4

onlyif mysql # DIV for integer division: 
query I rowsort label-9888
SELECT 68 DIV ( - - 17 ) AS col2
----
4

skipif mysql # not compatible
query I rowsort label-9888
SELECT 68 / ( - - 17 ) AS col2
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9889
SELECT ALL + - NULLIF ( - CAST( - + COUNT( * ) AS SIGNED ), + + CASE - + NULLIF ( COUNT( * ), + 42 - 27 ) WHEN + COUNT( * ) THEN + 85 WHEN 25 / - ( 2 ) / COUNT( * ) * NULLIF ( - 69, COUNT( 17 ) ) + - 57 + + COUNT( * ) THEN - 38 END ) * - 11 * 90
----
990

skipif mysql # not compatible
query I rowsort label-9889
SELECT ALL + - NULLIF ( - CAST ( - + COUNT ( * ) AS INTEGER ), + + CASE - + NULLIF ( COUNT ( * ), + 42 - 27 ) WHEN + COUNT ( * ) THEN + 85 WHEN 25 / - ( 2 ) / COUNT ( * ) * NULLIF ( - 69, COUNT ( 17 ) ) + - 57 + + COUNT ( * ) THEN - 38 END ) * - 11 * 90
----
990

query I rowsort
SELECT - 37 * + - 23 AS col2
----
851

onlyif mysql # aggregate syntax: 
query I rowsort label-9891
SELECT DISTINCT + + COUNT( * ) * + 72
----
72

skipif mysql # not compatible
query I rowsort label-9891
SELECT DISTINCT + + COUNT ( * ) * + 72
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-9892
SELECT - COUNT( * ) * + 97 * - 60 AS col2
----
5820

skipif mysql # not compatible
query I rowsort label-9892
SELECT - COUNT ( * ) * + 97 * - 60 AS col2
----
5820

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9893
SELECT DISTINCT - + CASE + - 43 WHEN + - 44 THEN 23 + 84 WHEN - + 33 * NULLIF ( + CASE + 63 WHEN + + 66 THEN COALESCE ( - 25, + - AVG ( DISTINCT + 71 ) + CASE + - 19 WHEN + - CAST( NULL AS SIGNED ) THEN - 42 * 33 + + COUNT( * ) END * - 51 * - + 4, - + 19, - 13 * ( 27 ) * - 85 - + ( CASE - 6 WHEN 2 * + COUNT( * ) / - + ( + 22 ) * 33 THEN + SUM( 33 ) / - + 87 WHEN + 69 THEN NULL END ) ) - ( + + 63 ) END, + + COALESCE ( + ( 28 ), COUNT( * ) ) * 85 + - 54 ) + - 6 * - + 49 THEN + 56 * + 31 ELSE COUNT( * ) * COUNT( * ) END + + 23 AS col2
----
22

skipif mysql # not compatible
query I rowsort label-9893
SELECT DISTINCT - + CASE + - 43 WHEN + - 44 THEN 23 + 84 WHEN - + 33 * NULLIF ( + CASE + 63 WHEN + + 66 THEN COALESCE ( - 25, + - AVG ( DISTINCT + 71 ) + CASE + - 19 WHEN + - CAST ( NULL AS INTEGER ) THEN - 42 * 33 + + COUNT ( * ) END * - 51 * - + 4, - + 19, - 13 * ( 27 ) * - 85 - + ( CASE - 6 WHEN 2 * + COUNT ( * ) / - + ( + 22 ) * 33 THEN + SUM ( 33 ) / - + 87 WHEN + 69 THEN NULL END ) ) - ( + + 63 ) END, + + COALESCE ( + ( 28 ), COUNT ( * ) ) * 85 + - 54 ) + - 6 * - + 49 THEN + 56 * + 31 ELSE COUNT ( * ) * COUNT ( * ) END + + 23 AS col2
----
22

query I rowsort
SELECT + 26 + + 92 + ( + 16 ) AS col2
----
134

onlyif mysql # aggregate syntax: 
query II rowsort label-9895
SELECT DISTINCT - 27 + 0 + 47 - - 3, - 72 * + + 23 * - - NULLIF ( ( 36 ), 23 * + MIN( - 66 ) * - 84 * 58 * 48 * - - 61 / - ( 58 ) ) * COUNT( * ) + + 95 + + COUNT( DISTINCT + 42 ) col1
----
23
-59520

skipif mysql # not compatible
query II rowsort label-9895
SELECT DISTINCT - 27 + 0 + 47 - - 3, - 72 * + + 23 * - - NULLIF ( ( 36 ), 23 * + MIN ( - 66 ) * - 84 * 58 * 48 * - - 61 / - ( 58 ) ) * COUNT ( * ) + + 95 + + COUNT ( DISTINCT + 42 ) col1
----
23
-59520

onlyif mysql # aggregate syntax: 
query I rowsort label-9896
SELECT + - SUM( DISTINCT + 24 ) + - 47 AS col0
----
-71

skipif mysql # not compatible
query I rowsort label-9896
SELECT + - SUM ( DISTINCT + 24 ) + - 47 AS col0
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-9897
SELECT ALL 23 + + + ( - + 98 ) * SUM( ALL 25 ) AS col1
----
-2427

skipif mysql # not compatible
query I rowsort label-9897
SELECT ALL 23 + + + ( - + 98 ) * SUM ( ALL 25 ) AS col1
----
-2427

query I rowsort
SELECT - 99 * + 22 col1
----
-2178

query I rowsort
SELECT ALL 10 * 26 * - + 98 AS col2
----
-25480

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9900
SELECT ALL 87 + - 60 * + 64 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9900
SELECT ALL 87 + - 60 * + 64 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9901
SELECT ALL + CASE - 10 WHEN CAST( - 81 AS SIGNED ) + - 20 THEN + 96 + + AVG ( ALL - 75 ) END * + 63
----
NULL

skipif mysql # not compatible
query I rowsort label-9901
SELECT ALL + CASE - 10 WHEN CAST ( - 81 AS INTEGER ) + - 20 THEN + 96 + + AVG ( ALL - 75 ) END * + 63
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9902
SELECT DISTINCT COUNT( * ) + ( - - 81 )
----
82

skipif mysql # not compatible
query I rowsort label-9902
SELECT DISTINCT COUNT ( * ) + ( - - 81 )
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-9903
SELECT + COUNT( * ) * 12 * - CASE + 89 WHEN + + ( + - 73 ) THEN - 78 * + 3 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9903
SELECT + COUNT ( * ) * 12 * - CASE + 89 WHEN + + ( + - 73 ) THEN - 78 * + 3 END AS col0
----
NULL

query I rowsort
SELECT ALL 51 * + + 42
----
2142

onlyif mysql # DIV for integer division: 
query I rowsort label-9905
SELECT + 33 DIV - - ( - - 69 )
----
0

skipif mysql # not compatible
query I rowsort label-9905
SELECT + 33 / - - ( - - 69 )
----
0

query I rowsort
SELECT + 38 * + COALESCE ( - - 49, 88 ) col1
----
1862

onlyif mysql # aggregate syntax: 
query I rowsort label-9907
SELECT + COUNT( * ) - ( + ( + + 70 ) )
----
-69

skipif mysql # not compatible
query I rowsort label-9907
SELECT + COUNT ( * ) - ( + ( + + 70 ) )
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-9908
SELECT NULLIF ( + CASE + SUM( ALL - + 79 ) WHEN + + 5 THEN 42 * + 54 + + 5 * - 41 + - + 84 + + 63 + - 23 WHEN 11 THEN NULL ELSE NULL END, + 93 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9908
SELECT NULLIF ( + CASE + SUM ( ALL - + 79 ) WHEN + + 5 THEN 42 * + 54 + + 5 * - 41 + - + 84 + + 63 + - 23 WHEN 11 THEN NULL ELSE NULL END, + 93 )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9909
SELECT ALL + 35 AS col2, - COUNT( * ) * + 61 + 69 AS col0
----
35
8

skipif mysql # not compatible
query II rowsort label-9909
SELECT ALL + 35 AS col2, - COUNT ( * ) * + 61 + 69 AS col0
----
35
8

query I rowsort
SELECT CASE - 6 WHEN 78 * - 94 THEN COALESCE ( 39, 36 ) END
----
NULL

query I rowsort
SELECT + CASE 92 WHEN - 31 THEN 22 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9912
SELECT CASE + + COUNT( + 21 ) WHEN - 87 * - 34 + + 44 / 63 THEN - 0 ELSE + 56 * 68 END
----
3808

skipif mysql # not compatible
query I rowsort label-9912
SELECT CASE + + COUNT ( + 21 ) WHEN - 87 * - 34 + + 44 / 63 THEN - 0 ELSE + 56 * 68 END
----
3808

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9913
SELECT + ( - + CAST( 27 AS SIGNED ) ) col0
----
-27

skipif mysql # not compatible
query I rowsort label-9913
SELECT + ( - + CAST ( 27 AS INTEGER ) ) col0
----
-27

query I rowsort
SELECT ALL + 92 * - 86
----
-7912

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9915
SELECT - CAST( NULL AS SIGNED ) - + 59 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9915
SELECT - CAST ( NULL AS INTEGER ) - + 59 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9916
SELECT ALL 37 * COALESCE ( NULLIF ( + 89, - 18 * - 21 ), + 34, 40 + COUNT( * ) * + 1 ) AS col1
----
3293

skipif mysql # not compatible
query I rowsort label-9916
SELECT ALL 37 * COALESCE ( NULLIF ( + 89, - 18 * - 21 ), + 34, 40 + COUNT ( * ) * + 1 ) AS col1
----
3293

query I rowsort
SELECT + ( ( - 47 ) ) * - 48
----
2256

query I rowsort
SELECT - 49 * 90 col1
----
-4410

onlyif mysql # aggregate syntax: 
query I rowsort label-9919
SELECT + COALESCE ( 86, - COUNT( * ) * 76 )
----
86

skipif mysql # not compatible
query I rowsort label-9919
SELECT + COALESCE ( 86, - COUNT ( * ) * 76 )
----
86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9920
SELECT + CAST( 40 AS SIGNED ) + - 80
----
-40

skipif mysql # not compatible
query I rowsort label-9920
SELECT + CAST ( 40 AS INTEGER ) + - 80
----
-40

onlyif mysql # DIV for integer division: 
query I rowsort label-9921
SELECT - 1 DIV 82
----
0

skipif mysql # not compatible
query I rowsort label-9921
SELECT - 1 / 82
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9922
SELECT ALL + COUNT( 77 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9922
SELECT ALL + COUNT ( 77 ) AS col1
----
1

query I rowsort
SELECT ALL CASE 25 WHEN 28 THEN + 36 END * 11 + 5 * - CASE WHEN NOT NULL NOT BETWEEN ( 11 ) AND ( 52 ) THEN + 65 WHEN NOT 23 BETWEEN NULL AND + 80 THEN + 55 WHEN 86 / + ( ( + 24 ) ) + + 45 IS NOT NULL THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT - 1 * 67 + - 9
----
-76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9925
SELECT ALL - ( 88 ) + + CAST( + 88 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-9925
SELECT ALL - ( 88 ) + + CAST ( + 88 AS INTEGER )
----
0

query I rowsort
SELECT DISTINCT - 30 + 22 * - 42 AS col0
----
-954

onlyif mysql # DIV for integer division: 
query I rowsort label-9927
SELECT - 18 + 78 DIV 66 AS col2
----
-17

skipif mysql # not compatible
query I rowsort label-9927
SELECT - 18 + 78 / 66 AS col2
----
-17

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9928
SELECT ALL - 57 DIV - CAST( - 23 AS SIGNED ) AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-9928
SELECT ALL - 57 / - CAST ( - 23 AS INTEGER ) AS col1
----
-2

query I rowsort
SELECT DISTINCT + ( ( - 69 ) ) + + 19 AS col0
----
-50

query I rowsort
SELECT ALL + 85 + 69 * 6
----
499

query I rowsort
SELECT - 23 - 1
----
-24

query I rowsort
SELECT DISTINCT ( + 12 ) AS col0
----
12

query I rowsort
SELECT ALL + 58 * + 57 AS col1
----
3306

query I rowsort
SELECT ALL + ( 49 ) + + 38 * - 98 AS col2
----
-3675

onlyif mysql # DIV for integer division: 
query I rowsort label-9935
SELECT ALL 63 - + 40 DIV ( + 94 + + 65 )
----
63

skipif mysql # not compatible
query I rowsort label-9935
SELECT ALL 63 - + 40 / ( + 94 + + 65 )
----
63

query I rowsort
SELECT - 69 - + 29 AS col0
----
-98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9937
SELECT DISTINCT ( - NULLIF ( CAST( 2 AS SIGNED ), 34 ) ) col1
----
-2

skipif mysql # not compatible
query I rowsort label-9937
SELECT DISTINCT ( - NULLIF ( CAST ( 2 AS INTEGER ), 34 ) ) col1
----
-2

query I rowsort
SELECT - 15 + - 62
----
-77

query I rowsort
SELECT - 9 + 55 * 39
----
2136

query I rowsort
SELECT + ( + CASE 83 WHEN + 67 THEN NULL WHEN + 89 * + 89 THEN COALESCE ( 61, - NULLIF ( 5, 73 ), + 31 ) + - 85 ELSE NULL END )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9941
SELECT - MAX( ALL 92 ) + ( + 40 + 98 ) DIV 34
----
-88

skipif mysql # not compatible
query I rowsort label-9941
SELECT - MAX ( ALL 92 ) + ( + 40 + 98 ) / 34
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-9942
SELECT ALL 56 * + COUNT( DISTINCT 6 )
----
56

skipif mysql # not compatible
query I rowsort label-9942
SELECT ALL 56 * + COUNT ( DISTINCT 6 )
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-9943
SELECT - 62 + NULLIF ( 4, - 67 / - 58 + COUNT( * ) ) * - 51
----
-266

skipif mysql # not compatible
query I rowsort label-9943
SELECT - 62 + NULLIF ( 4, - 67 / - 58 + COUNT ( * ) ) * - 51
----
-266

onlyif mysql # DIV for integer division: 
query I rowsort label-9944
SELECT ALL - 23 DIV + 70 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9944
SELECT ALL - 23 / + 70 AS col0
----
0

query I rowsort
SELECT DISTINCT - 6 * - 37
----
222

onlyif mysql # aggregate syntax: 
query I rowsort label-9946
SELECT COUNT( * ) / 70 + + CASE - 61 WHEN + 41 THEN - 35 * NULLIF ( - 73 * 79, + 31 * 17 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-9946
SELECT COUNT ( * ) / 70 + + CASE - 61 WHEN + 41 THEN - 35 * NULLIF ( - 73 * 79, + 31 * 17 ) END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9947
SELECT - 43 DIV - 9 AS col1
----
4

skipif mysql # not compatible
query I rowsort label-9947
SELECT - 43 / - 9 AS col1
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-9948
SELECT + SUM( 94 )
----
94

skipif mysql # not compatible
query I rowsort label-9948
SELECT + SUM ( 94 )
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-9949
SELECT + MAX( ALL 94 ) + NULLIF ( 65, COUNT( 81 ) ) AS col0
----
159

skipif mysql # not compatible
query I rowsort label-9949
SELECT + MAX ( ALL 94 ) + NULLIF ( 65, COUNT ( 81 ) ) AS col0
----
159

onlyif mysql # aggregate syntax: 
query I rowsort label-9950
SELECT - SUM( 52 ) col0
----
-52

skipif mysql # not compatible
query I rowsort label-9950
SELECT - SUM ( 52 ) col0
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-9951
SELECT + + 18 * + COUNT( * )
----
18

skipif mysql # not compatible
query I rowsort label-9951
SELECT + + 18 * + COUNT ( * )
----
18

query I rowsort
SELECT + 97 + - 63 * 0
----
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9953
SELECT ALL + + CAST( MAX( DISTINCT + CAST( NULL AS SIGNED ) ) AS SIGNED ) / 82 + 50 * - 14
----
NULL

skipif mysql # not compatible
query I rowsort label-9953
SELECT ALL + + CAST ( MAX ( DISTINCT + CAST ( NULL AS INTEGER ) ) AS INTEGER ) / 82 + 50 * - 14
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9954
SELECT - 56 * - 59 + CASE - 53 WHEN 45 - - CASE + CASE WHEN NOT 53 NOT IN ( + 44 * 55 ) THEN + COUNT( * ) + - MAX( ALL + 22 ) END WHEN - 70 THEN 92 WHEN + 1 + + 98 * 28 THEN NULL END THEN + 41 ELSE NULL END * CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9954
SELECT - 56 * - 59 + CASE - 53 WHEN 45 - - CASE + CASE WHEN NOT 53 NOT IN ( + 44 * 55 ) THEN + COUNT ( * ) + - MAX ( ALL + 22 ) END WHEN - 70 THEN 92 WHEN + 1 + + 98 * 28 THEN NULL END THEN + 41 ELSE NULL END * CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9955
SELECT ALL + + SUM( ALL 0 )
----
0

skipif mysql # not compatible
query I rowsort label-9955
SELECT ALL + + SUM ( ALL 0 )
----
0

query I rowsort
SELECT ALL 61 * - 12 + - 87 * 17 col2
----
-2211

onlyif mysql # aggregate syntax: 
query I rowsort label-9957
SELECT ALL MIN( DISTINCT + 97 ) * 18 + - 11 AS col1
----
1735

skipif mysql # not compatible
query I rowsort label-9957
SELECT ALL MIN ( DISTINCT + 97 ) * 18 + - 11 AS col1
----
1735

onlyif mysql # aggregate syntax: 
query I rowsort label-9958
SELECT ALL + NULLIF ( COUNT( * ), 82 * + SUM( DISTINCT - 75 ) + + COUNT( * ) ) * COUNT( * ) + + 11
----
12

skipif mysql # not compatible
query I rowsort label-9958
SELECT ALL + NULLIF ( COUNT ( * ), 82 * + SUM ( DISTINCT - 75 ) + + COUNT ( * ) ) * COUNT ( * ) + + 11
----
12

query I rowsort
SELECT ALL - 88 * 16 + NULLIF ( 95 + 56, 98 )
----
-1257

onlyif mysql # DIV for integer division: 
query I rowsort label-9960
SELECT 7 + 18 DIV - 5 AS col0
----
4

skipif mysql # not compatible
query I rowsort label-9960
SELECT 7 + 18 / - 5 AS col0
----
4

query I rowsort
SELECT DISTINCT + ( - 80 ) * 78 AS col1
----
-6240

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9962
SELECT ALL + CAST( NULL AS DECIMAL ) + ( CAST( CASE + COUNT( * ) WHEN 55 - COALESCE ( ( + COUNT( * ) ), AVG ( - 62 ), 54 ) / - 81 THEN NULL WHEN 78 THEN COUNT( * ) END AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9962
SELECT ALL + CAST ( NULL AS REAL ) + ( CAST ( CASE + COUNT ( * ) WHEN 55 - COALESCE ( ( + COUNT ( * ) ), AVG ( - 62 ), 54 ) / - 81 THEN NULL WHEN 78 THEN COUNT ( * ) END AS INTEGER ) ) AS col1
----
NULL

query I rowsort
SELECT - NULLIF ( 9, 37 + 31 )
----
-9

query I rowsort
SELECT DISTINCT ( 53 ) * - 16 AS col0
----
-848

query I rowsort
SELECT + 75 + - 66 * + 22 AS col2
----
-1377

onlyif mysql # aggregate syntax: 
query I rowsort label-9966
SELECT 76 - + SUM( DISTINCT - 50 ) AS col2
----
126

skipif mysql # not compatible
query I rowsort label-9966
SELECT 76 - + SUM ( DISTINCT - 50 ) AS col2
----
126

onlyif mysql # aggregate syntax: 
query I rowsort label-9967
SELECT ALL 58 * + CASE + MIN( DISTINCT + ( - 16 ) ) + COUNT( * ) WHEN 38 THEN NULL WHEN 44 THEN + 51 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9967
SELECT ALL 58 * + CASE + MIN ( DISTINCT + ( - 16 ) ) + COUNT ( * ) WHEN 38 THEN NULL WHEN 44 THEN + 51 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9968
SELECT ALL + 17 - MAX( 81 ) AS col0
----
-64

skipif mysql # not compatible
query I rowsort label-9968
SELECT ALL + 17 - MAX ( 81 ) AS col0
----
-64

query I rowsort
SELECT 58 * 90 * 46
----
240120

query I rowsort
SELECT 65 + 93 AS col0
----
158

onlyif mysql # DIV for integer division: 
query I rowsort label-9971
SELECT DISTINCT - 9 DIV - - 17 * - 40
----
0

skipif mysql # not compatible
query I rowsort label-9971
SELECT DISTINCT - 9 / - - 17 * - 40
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9972
SELECT COUNT( * ) * + + 40 * 52
----
2080

skipif mysql # not compatible
query I rowsort label-9972
SELECT COUNT ( * ) * + + 40 * 52
----
2080

query I rowsort
SELECT 84 + + 61 + + 89
----
234

onlyif mysql # DIV for integer division: 
query I rowsort label-9974
SELECT 90 DIV - 22
----
-4

skipif mysql # not compatible
query I rowsort label-9974
SELECT 90 / - 22
----
-4

query I rowsort
SELECT DISTINCT - 82 * + 84
----
-6888

onlyif mysql # aggregate syntax: 
query I rowsort label-9976
SELECT 99 + + COUNT( * ) * + 89 AS col2
----
188

skipif mysql # not compatible
query I rowsort label-9976
SELECT 99 + + COUNT ( * ) * + 89 AS col2
----
188

query I rowsort
SELECT DISTINCT - 10 * - ( + 96 ) AS col1
----
960

query I rowsort
SELECT DISTINCT - 37 * - + 98 AS col0
----
3626

query I rowsort
SELECT 83 * 79
----
6557

onlyif mysql # aggregate syntax: 
query I rowsort label-9980
SELECT ALL - 19 * NULLIF ( ( + 92 ), ( 93 ) * + COUNT( * ) + 46 )
----
-1748

skipif mysql # not compatible
query I rowsort label-9980
SELECT ALL - 19 * NULLIF ( ( + 92 ), ( 93 ) * + COUNT ( * ) + 46 )
----
-1748

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9981
SELECT ALL - NULLIF ( + 43, CAST( + COUNT( * ) AS SIGNED ) ) AS col0
----
-43

skipif mysql # not compatible
query I rowsort label-9981
SELECT ALL - NULLIF ( + 43, CAST ( + COUNT ( * ) AS INTEGER ) ) AS col0
----
-43

query I rowsort
SELECT 8 * + COALESCE ( 57, - 5 )
----
456

query I rowsort
SELECT + COALESCE ( - 66, 35 + - 49 ) - + ( - 25 ) AS col1
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-9984
SELECT 3 * + - COUNT( * ) - + 39 - SUM( ALL 53 ) * - 94 col1
----
4940

skipif mysql # not compatible
query I rowsort label-9984
SELECT 3 * + - COUNT ( * ) - + 39 - SUM ( ALL 53 ) * - 94 col1
----
4940

query I rowsort
SELECT DISTINCT + 34 + - 4
----
30

onlyif mysql # DIV for integer division: 
query I rowsort label-9986
SELECT DISTINCT - 64 DIV + 51 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-9986
SELECT DISTINCT - 64 / + 51 AS col0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9987
SELECT ALL 0 + + COALESCE ( 90, 17 - + 40, - CAST( + 39 AS SIGNED ) * - 91 )
----
90

skipif mysql # not compatible
query I rowsort label-9987
SELECT ALL 0 + + COALESCE ( 90, 17 - + 40, - CAST ( + 39 AS INTEGER ) * - 91 )
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-9988
SELECT ALL - + 46 * 96 + MAX( 53 ) * 64
----
-1024

skipif mysql # not compatible
query I rowsort label-9988
SELECT ALL - + 46 * 96 + MAX ( 53 ) * 64
----
-1024

onlyif mysql # aggregate syntax: 
query I rowsort label-9989
SELECT 91 - - + COUNT( * ) * 35
----
126

skipif mysql # not compatible
query I rowsort label-9989
SELECT 91 - - + COUNT ( * ) * 35
----
126

onlyif mysql # aggregate syntax: 
query I rowsort label-9990
SELECT DISTINCT + COUNT( * ) + - 73 AS col2
----
-72

skipif mysql # not compatible
query I rowsort label-9990
SELECT DISTINCT + COUNT ( * ) + - 73 AS col2
----
-72

query I rowsort
SELECT + 37 * + 85
----
3145

query I rowsort
SELECT 71 + - + ( - 82 )
----
153

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9993
SELECT + 64 + - SUM( - CAST( - 77 AS SIGNED ) )
----
-13

skipif mysql # not compatible
query I rowsort label-9993
SELECT + 64 + - SUM ( - CAST ( - 77 AS INTEGER ) )
----
-13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9994
SELECT NULLIF ( - 49, 28 * CAST( + 46 / - 30 AS SIGNED ) + 8 ) AS col2
----
-49

skipif mysql # not compatible
query I rowsort label-9994
SELECT NULLIF ( - 49, 28 * CAST ( + 46 / - 30 AS INTEGER ) + 8 ) AS col2
----
-49

query I rowsort
SELECT DISTINCT 12 - + 52 * + 60 col2
----
-3108

onlyif mysql # aggregate syntax: 
query I rowsort label-9996
SELECT ALL 30 - + 1 * COUNT( - 71 ) AS col2
----
29

skipif mysql # not compatible
query I rowsort label-9996
SELECT ALL 30 - + 1 * COUNT ( - 71 ) AS col2
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-9997
SELECT DISTINCT - 8 * + COALESCE ( 42, + 0 * 2 - COUNT( * ) ) + + 8 * 68 col1
----
208

skipif mysql # not compatible
query I rowsort label-9997
SELECT DISTINCT - 8 * + COALESCE ( 42, + 0 * 2 - COUNT ( * ) ) + + 8 * 68 col1
----
208

onlyif mysql # aggregate syntax: 
query II rowsort label-9998
SELECT DISTINCT 28 AS col0, COUNT( * )
----
28
1

skipif mysql # not compatible
query II rowsort label-9998
SELECT DISTINCT 28 AS col0, COUNT ( * )
----
28
1

query I rowsort
SELECT 39 * - 39 * + + ( + 50 ) * 19
----
-1444950

