sqllogictest
Artifact Content
Not logged in

Artifact 536b0df07fc8e0ea6b8c7d4897bf1a8f439ba85c:


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 + SUM( - NULLIF ( + - 19, + 64 ) ) col0
----
19

skipif mysql # not compatible
query I rowsort label-0
SELECT + SUM ( - NULLIF ( + - 19, + 64 ) ) col0
----
19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1
SELECT + 84 / + 27 + + - 92 - - CAST( + 86 AS SIGNED ) * + - 7 + 5 + - 53 + 63 * CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1
SELECT + 84 / + 27 + + - 92 - - CAST ( + 86 AS INTEGER ) * + - 7 + 5 + - 53 + 63 * CAST ( NULL AS INTEGER ) AS col1
----
NULL

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

skipif mysql # not compatible
query I rowsort label-2
SELECT - - CAST ( NULL AS INTEGER ) * - 53 * 44
----
NULL

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

skipif mysql # not compatible
query I rowsort label-3
SELECT + - MAX ( + 40 )
----
-40

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5
SELECT + - 34 DIV - + 63 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5
SELECT + - 34 / - + 63 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6
SELECT ALL - 29 DIV + + 33 * - + 95 col0
----
0

skipif mysql # not compatible
query I rowsort label-6
SELECT ALL - 29 / + + 33 * - + 95 col0
----
0

query I rowsort
SELECT + 59 + + 18 AS col1
----
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8
SELECT - CAST( - 4 AS SIGNED ) AS col1
----
4

skipif mysql # not compatible
query I rowsort label-8
SELECT - CAST ( - 4 AS INTEGER ) AS col1
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9
SELECT ALL - + COUNT( * ) * - 31 + - COALESCE ( - + 24, - + AVG ( ALL + 89 ) ) * + 98 * - - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9
SELECT ALL - + COUNT ( * ) * - 31 + - COALESCE ( - + 24, - + AVG ( ALL + 89 ) ) * + 98 * - - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-10
SELECT DISTINCT ( 74 ) * + + 60 AS col0, COUNT( * ) + - 93
----
4440
-92

skipif mysql # not compatible
query II rowsort label-10
SELECT DISTINCT ( 74 ) * + + 60 AS col0, COUNT ( * ) + - 93
----
4440
-92

query I rowsort
SELECT + 86 * + - 52
----
-4472

onlyif mysql # aggregate syntax: 
query I rowsort label-12
SELECT - MIN( ALL + 59 ) + - 97 AS col2
----
-156

skipif mysql # not compatible
query I rowsort label-12
SELECT - MIN ( ALL + 59 ) + - 97 AS col2
----
-156

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-14
SELECT ALL - CASE COUNT( * ) WHEN + 96 + - COUNT( * ) THEN - - 48 WHEN + 4 THEN 76 WHEN - 91 * + 34 THEN 20 - MAX( DISTINCT 17 - - 38 ) END + - 88 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-14
SELECT ALL - CASE COUNT ( * ) WHEN + 96 + - COUNT ( * ) THEN - - 48 WHEN + 4 THEN 76 WHEN - 91 * + 34 THEN 20 - MAX ( DISTINCT 17 - - 38 ) END + - 88 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-15
SELECT - 68 + + 69 DIV - - 24 AS col1
----
-66

skipif mysql # not compatible
query I rowsort label-15
SELECT - 68 + + 69 / - - 24 AS col1
----
-66

query I rowsort
SELECT + 38 * + + 23
----
874

query I rowsort
SELECT ALL + 88 + - 71 AS col2
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-18
SELECT ALL ( - 3 ) * MAX( ALL 17 )
----
-51

skipif mysql # not compatible
query I rowsort label-18
SELECT ALL ( - 3 ) * MAX ( ALL 17 )
----
-51

query I rowsort
SELECT DISTINCT + 70 + 28
----
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-20
SELECT ALL + 89 + 22 + 3 * + - 83 + CAST( 20 AS SIGNED ) + COUNT( ALL + - 99 ) - - 34 * + 26 * 38
----
33475

skipif mysql # not compatible
query I rowsort label-20
SELECT ALL + 89 + 22 + 3 * + - 83 + CAST ( 20 AS INTEGER ) + COUNT ( ALL + - 99 ) - - 34 * + 26 * 38
----
33475

onlyif mysql # aggregate syntax: 
query I rowsort label-21
SELECT ALL - 25 + + - ( + - 43 ) - MAX( DISTINCT - + 63 ) + + 55 + + + MAX( DISTINCT + 41 ) * CASE 25 WHEN AVG ( ALL ( 6 ) ) + + SUM( 0 ) THEN NULL WHEN 15 * ( - 20 ) THEN - 57 ELSE NULL END + - 12 * CASE 40 WHEN 91 * 56 THEN NULL WHEN 51 THEN - CASE + 86 WHEN 99 / - 49 - - ( 65 ) THEN NULL ELSE - 39 * + COUNT( * ) END ELSE + COUNT( * ) END * - 54
----
NULL

skipif mysql # not compatible
query I rowsort label-21
SELECT ALL - 25 + + - ( + - 43 ) - MAX ( DISTINCT - + 63 ) + + 55 + + + MAX ( DISTINCT + 41 ) * CASE 25 WHEN AVG ( ALL ( 6 ) ) + + SUM ( 0 ) THEN NULL WHEN 15 * ( - 20 ) THEN - 57 ELSE NULL END + - 12 * CASE 40 WHEN 91 * 56 THEN NULL WHEN 51 THEN - CASE + 86 WHEN 99 / - 49 - - ( 65 ) THEN NULL ELSE - 39 * + COUNT ( * ) END ELSE + COUNT ( * ) END * - 54
----
NULL

query I rowsort
SELECT 51 - + 51 + + 0 - 47 * - + 4 * + + COALESCE ( 76, + - 63 ) * - ( 87 )
----
-1243056

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-23
SELECT SUM( DISTINCT CAST( 88 AS SIGNED ) ) * + + ( - 59 )
----
-5192

skipif mysql # not compatible
query I rowsort label-23
SELECT SUM ( DISTINCT CAST ( 88 AS INTEGER ) ) * + + ( - 59 )
----
-5192

onlyif mysql # aggregate syntax: 
query I rowsort label-24
SELECT 60 + - + CASE + + 48 WHEN - 39 THEN + - AVG ( - 60 ) + + 81 * - COUNT( * ) * + 35 * 44 WHEN 79 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-24
SELECT 60 + - + CASE + + 48 WHEN - 39 THEN + - AVG ( - 60 ) + + 81 * - COUNT ( * ) * + 35 * 44 WHEN 79 THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT 96 * - 51
----
-4896

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-26
SELECT DISTINCT + MAX( ALL + + 16 ) * ( + - COUNT( CAST( NULL AS SIGNED ) ) ) * CASE - + 60 WHEN - 21 * MIN( ALL - 96 ) * 21 + ( - 58 ) THEN NULL WHEN COUNT( * ) THEN - COUNT( * ) ELSE - 95 * + 98 END * - 44 + - 92 AS col2
----
-92

skipif mysql # not compatible
query I rowsort label-26
SELECT DISTINCT + MAX ( ALL + + 16 ) * ( + - COUNT ( CAST ( NULL AS INTEGER ) ) ) * CASE - + 60 WHEN - 21 * MIN ( ALL - 96 ) * 21 + ( - 58 ) THEN NULL WHEN COUNT ( * ) THEN - COUNT ( * ) ELSE - 95 * + 98 END * - 44 + - 92 AS col2
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-27
SELECT 76 * MAX( DISTINCT - 34 )
----
-2584

skipif mysql # not compatible
query I rowsort label-27
SELECT 76 * MAX ( DISTINCT - 34 )
----
-2584

onlyif mysql # aggregate syntax: 
query II rowsort label-28
SELECT ALL - 54 * - 5, + 38 + - COUNT( * ) + - COUNT( * ) AS col2
----
270
36

skipif mysql # not compatible
query II rowsort label-28
SELECT ALL - 54 * - 5, + 38 + - COUNT ( * ) + - COUNT ( * ) AS col2
----
270
36

query I rowsort
SELECT 27 - + 88 AS col1
----
-61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-30
SELECT DISTINCT - CAST( 8 AS SIGNED ) AS col0, + 4 + - CAST( NULL AS SIGNED ) - 34 / - COALESCE ( MIN( 50 ), + - ( + 55 ) ) + - 90
----
-8
NULL

skipif mysql # not compatible
query II rowsort label-30
SELECT DISTINCT - CAST ( 8 AS INTEGER ) AS col0, + 4 + - CAST ( NULL AS INTEGER ) - 34 / - COALESCE ( MIN ( 50 ), + - ( + 55 ) ) + - 90
----
-8
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-31
SELECT ALL - 85 - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-31
SELECT ALL - 85 - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-32
SELECT + 98 + SUM( + 83 ) AS col1
----
181

skipif mysql # not compatible
query I rowsort label-32
SELECT + 98 + SUM ( + 83 ) AS col1
----
181

onlyif mysql # aggregate syntax: 
query I rowsort label-33
SELECT + CASE + 9 WHEN - - 4 THEN - 28 + - ( + + COUNT( * ) ) - + + 33 + - - 23 + 13 * 65 WHEN MAX( + 86 ) + - 23 * - NULLIF ( 16, SUM( 47 ) ) THEN NULL ELSE 79 END AS col0
----
79

skipif mysql # not compatible
query I rowsort label-33
SELECT + CASE + 9 WHEN - - 4 THEN - 28 + - ( + + COUNT ( * ) ) - + + 33 + - - 23 + 13 * 65 WHEN MAX ( + 86 ) + - 23 * - NULLIF ( 16, SUM ( 47 ) ) THEN NULL ELSE 79 END AS col0
----
79

query II rowsort
SELECT ALL + 66 + 71 + - + 77 * - + 80 AS col2, 15 + ( + NULLIF ( + - 49, + - 28 ) ) AS col0
----
6297
-34

query I rowsort
SELECT CASE + 28 WHEN 83 + - - AVG ( - 28 ) THEN + - 25 WHEN + + 28 THEN NULL ELSE NULL END
----
NULL

query II rowsort
SELECT - 18 * - 71 + - + ( 75 ) col1, + NULLIF ( + 27, - 84 ) * + - 72 + 43 + - ( 84 ) * - 64 AS col1
----
1203
3475

query I rowsort
SELECT 75 * - - 36 col1
----
2700

query II rowsort
SELECT - 57 AS col2, + 63
----
-57
63

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

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

query I rowsort
SELECT 35 + 74
----
109

onlyif mysql # aggregate syntax: 
query I rowsort label-41
SELECT ALL 50 + - - 19 + - + 43 + 67 + COALESCE ( + + COUNT( * ), - ( - SUM( + 15 ) ) ) AS col0
----
94

skipif mysql # not compatible
query I rowsort label-41
SELECT ALL 50 + - - 19 + - + 43 + 67 + COALESCE ( + + COUNT ( * ), - ( - SUM ( + 15 ) ) ) AS col0
----
94

query I rowsort
SELECT 42 - 76
----
-34

onlyif mysql # DIV for integer division: 
query I rowsort label-43
SELECT DISTINCT 79 + 39 DIV + 5 AS col2
----
86

skipif mysql # not compatible
query I rowsort label-43
SELECT DISTINCT 79 + 39 / + 5 AS col2
----
86

query I rowsort
SELECT DISTINCT + 84 * + 49 AS col1
----
4116

query I rowsort
SELECT DISTINCT ( - 94 ) + - - 26 + + + 76 * + ( + - 29 ) + - - 57
----
-2215

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-47
SELECT COALESCE ( MAX( ALL + 54 ), 84 ) + 86 + - + 85 * - + 56 AS col2
----
4900

skipif mysql # not compatible
query I rowsort label-47
SELECT COALESCE ( MAX ( ALL + 54 ), 84 ) + 86 + - + 85 * - + 56 AS col2
----
4900

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-48
SELECT 2 AS col0, - COUNT( - 28 ) * + + ( + COUNT( DISTINCT + 83 ) ) DIV - + 98 * + SUM( DISTINCT - 39 ) + + 50 AS col2
----
2
50

skipif mysql # not compatible
query II rowsort label-48
SELECT 2 AS col0, - COUNT ( - 28 ) * + + ( + COUNT ( DISTINCT + 83 ) ) / - + 98 * + SUM ( DISTINCT - 39 ) + + 50 AS col2
----
2
50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-49
SELECT DISTINCT 8 * - + ( - 33 ) / - 66 + - + CASE - - 67 WHEN + - 22 / + 21 + - CAST( NULL AS SIGNED ) + 21 THEN COUNT( 2 ) WHEN - CASE - 73 WHEN MIN( DISTINCT - 54 ) * ( - CAST( + CAST( + 58 AS SIGNED ) AS SIGNED ) ) THEN 58 END THEN - 40 * 4 END * - 30
----
NULL

skipif mysql # not compatible
query I rowsort label-49
SELECT DISTINCT 8 * - + ( - 33 ) / - 66 + - + CASE - - 67 WHEN + - 22 / + 21 + - CAST ( NULL AS INTEGER ) + 21 THEN COUNT ( 2 ) WHEN - CASE - 73 WHEN MIN ( DISTINCT - 54 ) * ( - CAST ( + CAST ( + 58 AS INTEGER ) AS INTEGER ) ) THEN 58 END THEN - 40 * 4 END * - 30
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-50
SELECT 51 + - 15 DIV 77 * 70 AS col1
----
51

skipif mysql # not compatible
query I rowsort label-50
SELECT 51 + - 15 / 77 * 70 AS col1
----
51

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-51
SELECT 86 - - - COUNT( * ) * 6 + - NULLIF ( - COUNT( * ), - CAST( NULL AS DECIMAL ) ) + 6 DIV 34 + - 32 + + + 73 + 67 * + 87 AS col0
----
5951

skipif mysql # not compatible
query I rowsort label-51
SELECT 86 - - - COUNT ( * ) * 6 + - NULLIF ( - COUNT ( * ), - CAST ( NULL AS REAL ) ) + 6 / 34 + - 32 + + + 73 + 67 * + 87 AS col0
----
5951

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-52
SELECT 96 + + 51 * CAST( - 22 AS SIGNED ) AS col1
----
-1026

skipif mysql # not compatible
query I rowsort label-52
SELECT 96 + + 51 * CAST ( - 22 AS INTEGER ) AS col1
----
-1026

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

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

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

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

query I rowsort
SELECT ALL - 94 - + 86 AS col0
----
-180

query I rowsort
SELECT 86 + - 50 AS col0
----
36

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-57
SELECT ALL - 22 DIV - - 26 * - CASE - - COUNT( * ) WHEN - - 5 THEN NULL WHEN ( + COUNT( * ) ) THEN - - ( + 55 ) END
----
0

skipif mysql # not compatible
query I rowsort label-57
SELECT ALL - 22 / - - 26 * - CASE - - COUNT ( * ) WHEN - - 5 THEN NULL WHEN ( + COUNT ( * ) ) THEN - - ( + 55 ) END
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-58
SELECT + 29 + - MAX( - + 10 ) * - + 87 + + COALESCE ( - 39, + 48 - + - ( COUNT( * ) ) ) AS col0
----
-880

skipif mysql # not compatible
query I rowsort label-58
SELECT + 29 + - MAX ( - + 10 ) * - + 87 + + COALESCE ( - 39, + 48 - + - ( COUNT ( * ) ) ) AS col0
----
-880

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

skipif mysql # not compatible
query I rowsort label-59
SELECT + 39 / 70
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-60
SELECT ALL - + 54 DIV - - 90
----
0

skipif mysql # not compatible
query I rowsort label-60
SELECT ALL - + 54 / - - 90
----
0

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-62
SELECT CAST( NULL AS SIGNED ) AS col1, 24 * + 70
----
NULL
1680

skipif mysql # not compatible
query II rowsort label-62
SELECT CAST ( NULL AS INTEGER ) AS col1, 24 * + 70
----
NULL
1680

query I rowsort
SELECT DISTINCT + 31 * + 24
----
744

onlyif mysql # aggregate syntax: 
query I rowsort label-64
SELECT DISTINCT - 29 + - COUNT( 75 ) + + + 54 AS col2
----
24

skipif mysql # not compatible
query I rowsort label-64
SELECT DISTINCT - 29 + - COUNT ( 75 ) + + + 54 AS col2
----
24

query I rowsort
SELECT DISTINCT + - ( - - 26 ) * - + 94 * - + ( - 98 ) AS col2
----
239512

onlyif mysql # DIV for integer division: 
query I rowsort label-66
SELECT ALL - + ( CASE - - 32 WHEN - - 82 THEN NULL ELSE + 29 DIV - + 67 END )
----
0

skipif mysql # not compatible
query I rowsort label-66
SELECT ALL - + ( CASE - - 32 WHEN - - 82 THEN NULL ELSE + 29 / - + 67 END )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-67
SELECT - 70 * - CASE + + MAX( 34 ) WHEN + 82 THEN + 85 * + + 44 + - - 28 WHEN + 43 THEN - 40 ELSE NULL END + - 27
----
NULL

skipif mysql # not compatible
query I rowsort label-67
SELECT - 70 * - CASE + + MAX ( 34 ) WHEN + 82 THEN + 85 * + + 44 + - - 28 WHEN + 43 THEN - 40 ELSE NULL END + - 27
----
NULL

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-70
SELECT - 77 + - MAX( ALL - 89 ) AS col0
----
12

skipif mysql # not compatible
query I rowsort label-70
SELECT - 77 + - MAX ( ALL - 89 ) AS col0
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-71
SELECT + MIN( DISTINCT + + 46 ) AS col2
----
46

skipif mysql # not compatible
query I rowsort label-71
SELECT + MIN ( DISTINCT + + 46 ) AS col2
----
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-72
SELECT - COUNT( * ) * + - CAST( + - 92 AS SIGNED ) + + - ( + 76 ) * - 28
----
2036

skipif mysql # not compatible
query I rowsort label-72
SELECT - COUNT ( * ) * + - CAST ( + - 92 AS INTEGER ) + + - ( + 76 ) * - 28
----
2036

onlyif mysql # aggregate syntax: 
query I rowsort label-73
SELECT ALL - - SUM( + + ( + 67 ) ) + 48
----
115

skipif mysql # not compatible
query I rowsort label-73
SELECT ALL - - SUM ( + + ( + 67 ) ) + 48
----
115

onlyif mysql # aggregate syntax: 
query I rowsort label-74
SELECT ALL + MIN( 56 ) + 14
----
70

skipif mysql # not compatible
query I rowsort label-74
SELECT ALL + MIN ( 56 ) + 14
----
70

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

skipif mysql # not compatible
query II rowsort label-75
SELECT + 60, + 94 * + - COUNT ( * ) col1
----
60
-94

onlyif mysql # DIV for integer division: 
query I rowsort label-76
SELECT ALL - 97 DIV 23
----
-4

skipif mysql # not compatible
query I rowsort label-76
SELECT ALL - 97 / 23
----
-4

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

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

skipif mysql # not compatible
query I rowsort label-78
SELECT - 96 / CAST ( NULL AS INTEGER ) AS col1
----
NULL

query II rowsort
SELECT 74 AS col1, - 33 AS col2
----
74
-33

query I rowsort
SELECT + ( - 7 ) + + 61 * - - 63 AS col2
----
3836

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-82
SELECT + 66 * + - ( + + 55 ) * - CAST( NULL AS SIGNED ) + + 69 * + 70 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-82
SELECT + 66 * + - ( + + 55 ) * - CAST ( NULL AS INTEGER ) + + 69 * + 70 col0
----
NULL

query I rowsort
SELECT ALL CASE - 17 WHEN - - 56 THEN 76 WHEN - 53 THEN NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-84
SELECT ALL 24 DIV 66 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-84
SELECT ALL 24 / 66 AS col1
----
0

query I rowsort
SELECT ALL 89 * - 55 col2
----
-4895

query I rowsort
SELECT + 12 * - NULLIF ( + - 22, 21 - - + 35 ) AS col1
----
264

onlyif mysql # aggregate syntax: 
query I rowsort label-87
SELECT + SUM( - 5 ) - + + NULLIF ( COUNT( ALL - + 91 ), + CASE + 65 WHEN - + NULLIF ( + + 37, - 70 ) THEN - + 78 WHEN - 49 + 86 THEN NULL END ) * 21
----
-26

skipif mysql # not compatible
query I rowsort label-87
SELECT + SUM ( - 5 ) - + + NULLIF ( COUNT ( ALL - + 91 ), + CASE + 65 WHEN - + NULLIF ( + + 37, - 70 ) THEN - + 78 WHEN - 49 + 86 THEN NULL END ) * 21
----
-26

query II rowsort
SELECT ALL + 31 AS col0, 72 + + 45
----
31
117

query I rowsort
SELECT + + 71 * - 57
----
-4047

query II rowsort
SELECT 33 AS col0, 80
----
33
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-91
SELECT ALL 60 * + 98 + - 94 + NULLIF ( + 88, + - 12 + - 92 ) + + + NULLIF ( 6, + + ( + 18 ) * - 70 ) * 42 DIV - NULLIF ( - ( ( 10 ) ) * 99, - CASE COUNT( * ) WHEN 95 THEN CAST( NULL AS SIGNED ) WHEN - CASE - NULLIF ( 19, - 74 + 20 ) WHEN - ( 25 ) * 25 + 55 THEN NULL WHEN 67 + NULLIF ( 44, 65 ) DIV - MIN( 13 ) THEN NULL ELSE CASE 18 WHEN AVG ( 15 ) THEN NULL WHEN + 81 THEN NULL WHEN NULLIF ( - 45, 72 ) THEN NULL ELSE - 26 END END DIV 99 THEN - COUNT( 6 ) * + ( 71 ) END * AVG ( 35 ) )
----
5874

skipif mysql # not compatible
query I rowsort label-91
SELECT ALL 60 * + 98 + - 94 + NULLIF ( + 88, + - 12 + - 92 ) + + + NULLIF ( 6, + + ( + 18 ) * - 70 ) * 42 / - NULLIF ( - ( ( 10 ) ) * 99, - CASE COUNT ( * ) WHEN 95 THEN CAST ( NULL AS INTEGER ) WHEN - CASE - NULLIF ( 19, - 74 + 20 ) WHEN - ( 25 ) * 25 + 55 THEN NULL WHEN 67 + NULLIF ( 44, 65 ) / - MIN ( 13 ) THEN NULL ELSE CASE 18 WHEN AVG ( 15 ) THEN NULL WHEN + 81 THEN NULL WHEN NULLIF ( - 45, 72 ) THEN NULL ELSE - 26 END END / 99 THEN - COUNT ( 6 ) * + ( 71 ) END * AVG ( 35 ) )
----
5874

query II rowsort
SELECT ALL - 37 * - 93 * + 51 + - + 5, 58 col1
----
175486
58

query I rowsort
SELECT DISTINCT + - 85 * 29 + + 56 AS col2
----
-2409

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-95
SELECT ALL - 8 * + - 16 * + CAST( NULL AS DECIMAL ) + + 55 - - CAST( NULL AS SIGNED ) + + MIN( + 57 ) * + AVG ( DISTINCT + - 50 ) * + COUNT( * ) * 29 + 99 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-95
SELECT ALL - 8 * + - 16 * + CAST ( NULL AS REAL ) + + 55 - - CAST ( NULL AS INTEGER ) + + MIN ( + 57 ) * + AVG ( DISTINCT + - 50 ) * + COUNT ( * ) * 29 + 99 AS col0
----
NULL

query II rowsort
SELECT + + 82 AS col1, + ( - - 10 )
----
82
10

onlyif mysql # aggregate syntax: 
query I rowsort label-97
SELECT + + COUNT( ALL + NULLIF ( - ( 85 ), + + 1 ) ) col1
----
1

skipif mysql # not compatible
query I rowsort label-97
SELECT + + COUNT ( ALL + NULLIF ( - ( 85 ), + + 1 ) ) col1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-98
SELECT - 66 * 97 * - NULLIF ( + 82, + 19 ) + - 1 - + + 77 DIV 80 * 77 DIV - 36 col0
----
524963

skipif mysql # not compatible
query I rowsort label-98
SELECT - 66 * 97 * - NULLIF ( + 82, + 19 ) + - 1 - + + 77 / 80 * 77 / - 36 col0
----
524963

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-99
SELECT - - CASE 87 WHEN 90 THEN 43 + - - CAST( NULL AS SIGNED ) * 8 * + 56 * + 15 / + 45 WHEN + COUNT( * ) + 76 THEN - 39 END / 40 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-99
SELECT - - CASE 87 WHEN 90 THEN 43 + - - CAST ( NULL AS INTEGER ) * 8 * + 56 * + 15 / + 45 WHEN + COUNT ( * ) + 76 THEN - 39 END / 40 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-100
SELECT DISTINCT + COUNT( * ) * + 71 * COUNT( * ) * - - COUNT( * ) + 39 + + - COUNT( * ) * - CASE - - COUNT( - 84 ) WHEN 61 * - + SUM( 44 ) THEN NULL WHEN 79 THEN + SUM( 54 ) * - 73 ELSE - 23 - 10 END + - ( 78 ) * 38
----
-2887

skipif mysql # not compatible
query I rowsort label-100
SELECT DISTINCT + COUNT ( * ) * + 71 * COUNT ( * ) * - - COUNT ( * ) + 39 + + - COUNT ( * ) * - CASE - - COUNT ( - 84 ) WHEN 61 * - + SUM ( 44 ) THEN NULL WHEN 79 THEN + SUM ( 54 ) * - 73 ELSE - 23 - 10 END + - ( 78 ) * 38
----
-2887

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-101
SELECT ALL - - 72 * + 71 + + + COUNT( - 38 ) DIV 87 - ( - MIN( - 50 ) ) * + COUNT( DISTINCT + + 21 )
----
5062

skipif mysql # not compatible
query I rowsort label-101
SELECT ALL - - 72 * + 71 + + + COUNT ( - 38 ) / 87 - ( - MIN ( - 50 ) ) * + COUNT ( DISTINCT + + 21 )
----
5062

onlyif mysql # aggregate syntax: 
query I rowsort label-102
SELECT + SUM( - 87 ) col0
----
-87

skipif mysql # not compatible
query I rowsort label-102
SELECT + SUM ( - 87 ) col0
----
-87

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

onlyif mysql # aggregate syntax: 
query I rowsort label-104
SELECT DISTINCT - + COUNT( * ) * - COUNT( * ) - + 72 * - - ( + 63 ) + 10 * 38
----
-4155

skipif mysql # not compatible
query I rowsort label-104
SELECT DISTINCT - + COUNT ( * ) * - COUNT ( * ) - + 72 * - - ( + 63 ) + 10 * 38
----
-4155

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-106
SELECT ALL + NULLIF ( SUM( 41 ), 15 ) AS col2
----
41

skipif mysql # not compatible
query I rowsort label-106
SELECT ALL + NULLIF ( SUM ( 41 ), 15 ) AS col2
----
41

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

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

query I rowsort
SELECT DISTINCT - 73 * - + 63 * - 94 - + 44 * + ( 98 )
----
-436618

query I rowsort
SELECT NULLIF ( + 72, + 29 )
----
72

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-110
SELECT ALL 31 * 15 - + CAST( NULL AS DECIMAL ) * + - 46
----
NULL

skipif mysql # not compatible
query I rowsort label-110
SELECT ALL 31 * 15 - + CAST ( NULL AS REAL ) * + - 46
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-111
SELECT ALL + COALESCE ( + - COUNT( * ), 41 * 18, 54 )
----
-1

skipif mysql # not compatible
query I rowsort label-111
SELECT ALL + COALESCE ( + - COUNT ( * ), 41 * 18, 54 )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-112
SELECT - 55 * CAST( 51 AS SIGNED ) AS col1
----
-2805

skipif mysql # not compatible
query I rowsort label-112
SELECT - 55 * CAST ( 51 AS INTEGER ) AS col1
----
-2805

onlyif mysql # aggregate syntax: 
query I rowsort label-113
SELECT COUNT( * ) * - 85 + - 35 col1
----
-120

skipif mysql # not compatible
query I rowsort label-113
SELECT COUNT ( * ) * - 85 + - 35 col1
----
-120

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-114
SELECT - CASE WHEN + CASE 91 WHEN + 59 THEN NULL WHEN - - 79 * - 41 THEN - COALESCE ( 1, - COUNT( * ) * - + 19 * - - CAST( NULL AS SIGNED ) + - 62 * - 40 ) END IS NOT NULL THEN + ( + COALESCE ( + 94, + 74 ) ) / - 59 WHEN NOT 62 <= NULL THEN 30 - - 7 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-114
SELECT - CASE WHEN + CASE 91 WHEN + 59 THEN NULL WHEN - - 79 * - 41 THEN - COALESCE ( 1, - COUNT ( * ) * - + 19 * - - CAST ( NULL AS INTEGER ) + - 62 * - 40 ) END IS NOT NULL THEN + ( + COALESCE ( + 94, + 74 ) ) / - 59 WHEN NOT 62 <= NULL THEN 30 - - 7 END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-115
SELECT ALL CAST( + COUNT( * ) AS SIGNED ) AS col2, 39 * - - COALESCE ( + 66, + ( 89 ) - - 58 + + - COUNT( DISTINCT + 42 ) - - - NULLIF ( - 82, 91 * 17 ), 55 ) AS col2
----
1
2574

skipif mysql # not compatible
query II rowsort label-115
SELECT ALL CAST ( + COUNT ( * ) AS INTEGER ) AS col2, 39 * - - COALESCE ( + 66, + ( 89 ) - - 58 + + - COUNT ( DISTINCT + 42 ) - - - NULLIF ( - 82, 91 * 17 ), 55 ) AS col2
----
1
2574

onlyif mysql # aggregate syntax: 
query I rowsort label-116
SELECT ALL NULLIF ( + 84, 66 * + - 67 / 39 * - CASE 11 WHEN - + COUNT( * ) THEN - 77 - + + 59 END + - + ( + + 47 ) )
----
84

skipif mysql # not compatible
query I rowsort label-116
SELECT ALL NULLIF ( + 84, 66 * + - 67 / 39 * - CASE 11 WHEN - + COUNT ( * ) THEN - 77 - + + 59 END + - + ( + + 47 ) )
----
84

onlyif mysql # aggregate syntax: 
query II rowsort label-117
SELECT - SUM( - 12 ) AS col0, + 90
----
12
90

skipif mysql # not compatible
query II rowsort label-117
SELECT - SUM ( - 12 ) AS col0, + 90
----
12
90

onlyif mysql # aggregate syntax: 
query I rowsort label-118
SELECT DISTINCT - 49 / CASE + COUNT( + 48 ) WHEN + 97 THEN + - MIN( DISTINCT - 7 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-118
SELECT DISTINCT - 49 / CASE + COUNT ( + 48 ) WHEN + 97 THEN + - MIN ( DISTINCT - 7 ) END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-119
SELECT ALL - 40 * - 56 AS col0, - 92 * - + CASE CAST( NULL AS SIGNED ) WHEN - 59 THEN 22 END * - + 80 AS col2
----
2240
NULL

skipif mysql # not compatible
query II rowsort label-119
SELECT ALL - 40 * - 56 AS col0, - 92 * - + CASE CAST ( NULL AS INTEGER ) WHEN - 59 THEN 22 END * - + 80 AS col2
----
2240
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-120
SELECT DISTINCT CAST( COUNT( * ) AS SIGNED ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-120
SELECT DISTINCT CAST ( COUNT ( * ) AS INTEGER ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-121
SELECT DISTINCT - 22 * - - MAX( DISTINCT + 47 ) * - 33 + + 9 AS col2
----
34131

skipif mysql # not compatible
query I rowsort label-121
SELECT DISTINCT - 22 * - - MAX ( DISTINCT + 47 ) * - 33 + + 9 AS col2
----
34131

query I rowsort
SELECT + 47 + + 62 AS col0
----
109

query I rowsort
SELECT ALL 53 + - + 33 AS col2
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-124
SELECT - CASE - MAX( DISTINCT - 87 ) WHEN 62 THEN - + 54 * 23 WHEN - + 13 * - 17 THEN NULL END + 9 - + AVG ( DISTINCT 52 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-124
SELECT - CASE - MAX ( DISTINCT - 87 ) WHEN 62 THEN - + 54 * 23 WHEN - + 13 * - 17 THEN NULL END + 9 - + AVG ( DISTINCT 52 ) AS col1
----
NULL

query I rowsort
SELECT + - 11 + - - 1 + 5 AS col2
----
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-126
SELECT - - COALESCE ( + - 13, - 9 ) DIV 29
----
0

skipif mysql # not compatible
query I rowsort label-126
SELECT - - COALESCE ( + - 13, - 9 ) / 29
----
0

query I rowsort
SELECT CASE - 43 WHEN - 45 * - 36 THEN NULL ELSE - - 97 * - - 93 - + 0 END AS col2
----
9021

query I rowsort
SELECT ALL - + 83 + 86 col2
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-129
SELECT ALL + CASE - - 4 WHEN - + 15 * + - COUNT( * ) THEN NULL WHEN COUNT( * ) * 51 * - - 43 + + - ( - SUM( - - 23 ) ) * CAST( + - SUM( ALL - 82 ) AS SIGNED ) THEN 84 + - 27 WHEN + 24 THEN CASE + 4 WHEN - NULLIF ( + SUM( CAST( NULL AS SIGNED ) ), - 12 ) THEN NULL WHEN - 16 THEN + 76 WHEN 59 + + 58 * - 77 THEN NULL END END + - 95 / - 63
----
NULL

skipif mysql # not compatible
query I rowsort label-129
SELECT ALL + CASE - - 4 WHEN - + 15 * + - COUNT ( * ) THEN NULL WHEN COUNT ( * ) * 51 * - - 43 + + - ( - SUM ( - - 23 ) ) * CAST ( + - SUM ( ALL - 82 ) AS INTEGER ) THEN 84 + - 27 WHEN + 24 THEN CASE + 4 WHEN - NULLIF ( + SUM ( CAST ( NULL AS INTEGER ) ), - 12 ) THEN NULL WHEN - 16 THEN + 76 WHEN 59 + + 58 * - 77 THEN NULL END END + - 95 / - 63
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-130
SELECT ALL COUNT( * ) + + 64 + + 23 * + 38 AS col1
----
939

skipif mysql # not compatible
query I rowsort label-130
SELECT ALL COUNT ( * ) + + 64 + + 23 * + 38 AS col1
----
939

query I rowsort
SELECT ALL + 81 + + 84
----
165

onlyif mysql # aggregate syntax: 
query II rowsort label-132
SELECT + + 76 + + + COUNT( * ), + COUNT( * ) * 81 AS col2
----
77
81

skipif mysql # not compatible
query II rowsort label-132
SELECT + + 76 + + + COUNT ( * ), + COUNT ( * ) * 81 AS col2
----
77
81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-133
SELECT DISTINCT - ( COUNT( 92 ) ) DIV + - 48 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-133
SELECT DISTINCT - ( COUNT ( 92 ) ) / + - 48 AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-134
SELECT ALL - + NULLIF ( - - 84, - - 22 + - 78 ) DIV + 95 + COUNT( - ( - 70 ) ) + 5 + - 36 * - + 88 * - COUNT( * ) AS col0
----
-3162

skipif mysql # not compatible
query I rowsort label-134
SELECT ALL - + NULLIF ( - - 84, - - 22 + - 78 ) / + 95 + COUNT ( - ( - 70 ) ) + 5 + - 36 * - + 88 * - COUNT ( * ) AS col0
----
-3162

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-135
SELECT ALL + - 43 DIV COUNT( * ) + 57 + - + 53 AS col0
----
-39

skipif mysql # not compatible
query I rowsort label-135
SELECT ALL + - 43 / COUNT ( * ) + 57 + - + 53 AS col0
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-136
SELECT COUNT( ALL + 34 ) * - 9 + 63 * + MAX( - 18 ) AS col2
----
-1143

skipif mysql # not compatible
query I rowsort label-136
SELECT COUNT ( ALL + 34 ) * - 9 + 63 * + MAX ( - 18 ) AS col2
----
-1143

onlyif mysql # aggregate syntax: 
query I rowsort label-137
SELECT ALL + NULLIF ( + + 15, - COUNT( * ) ) AS col1
----
15

skipif mysql # not compatible
query I rowsort label-137
SELECT ALL + NULLIF ( + + 15, - COUNT ( * ) ) AS col1
----
15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-138
SELECT + CASE 27 WHEN 51 THEN NULL ELSE - COUNT( * ) DIV 29 DIV - + 65 END AS col0
----
0

skipif mysql # not compatible
query I rowsort label-138
SELECT + CASE 27 WHEN 51 THEN NULL ELSE - COUNT ( * ) / 29 / - + 65 END AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-139
SELECT 60 / CAST( NULL AS SIGNED ) + - 54 * + + COUNT( * ) / 68 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-139
SELECT 60 / CAST ( NULL AS INTEGER ) + - 54 * + + COUNT ( * ) / 68 col1
----
NULL

query I rowsort
SELECT ALL - NULLIF ( + 54, + CASE 42 WHEN + 93 THEN 98 + + 19 + - + 22 * - 11 ELSE + 68 END * - 66 - - 66 + 4 ) * - 20
----
1080

query III rowsort
SELECT + 26 + + - 29, + 35 AS col2, 60 AS col2
----
-3
35
60

onlyif mysql # DIV for integer division: 
query I rowsort label-142
SELECT DISTINCT - + 60 DIV + + 54 - + 19 DIV + 27 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-142
SELECT DISTINCT - + 60 / + + 54 - + 19 / + 27 AS col0
----
-1

query II rowsort
SELECT DISTINCT - 3, - 68 * - 11 * + 37 col1
----
-3
27676

onlyif mysql # aggregate syntax: 
query I rowsort label-144
SELECT COALESCE ( - 41, - COUNT( * ) + 92 ) * - COUNT( * ) + 44 AS col1
----
85

skipif mysql # not compatible
query I rowsort label-144
SELECT COALESCE ( - 41, - COUNT ( * ) + 92 ) * - COUNT ( * ) + 44 AS col1
----
85

onlyif mysql # aggregate syntax: 
query III rowsort label-145
SELECT 80 * + MAX( 86 ) AS col1, - 35 AS col1, ( + 8 ) + 32 + + 7
----
6880
-35
47

skipif mysql # not compatible
query III rowsort label-145
SELECT 80 * + MAX ( 86 ) AS col1, - 35 AS col1, ( + 8 ) + 32 + + 7
----
6880
-35
47

query II rowsort
SELECT 83 AS col2, + 98 AS col1
----
83
98

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-148
SELECT 96 + - MAX( ALL 36 ) + + ( - 28 ) + - - 64 + + 47 + COALESCE ( + - 22, - 27 + + 72, 9 + CAST( 40 AS SIGNED ), + 8 DIV + ( - ( - 69 ) ) ) * 1 AS col2
----
121

skipif mysql # not compatible
query I rowsort label-148
SELECT 96 + - MAX ( ALL 36 ) + + ( - 28 ) + - - 64 + + 47 + COALESCE ( + - 22, - 27 + + 72, 9 + CAST ( 40 AS INTEGER ), + 8 / + ( - ( - 69 ) ) ) * 1 AS col2
----
121

query I rowsort
SELECT ALL + 8 * + 94 * - + ( + 48 ) AS col2
----
-36096

query I rowsort
SELECT DISTINCT 49 * - 39 col0
----
-1911

query II rowsort
SELECT DISTINCT 84 col2, 31 * 65 - 5
----
84
2010

query I rowsort
SELECT ALL + 8 * + 47 AS col1
----
376

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-154
SELECT 5 * + - CAST( NULL AS SIGNED ) / - - 47 AS col0, 19 * COUNT( + 52 ) AS col1
----
NULL
19

skipif mysql # not compatible
query II rowsort label-154
SELECT 5 * + - CAST ( NULL AS INTEGER ) / - - 47 AS col0, 19 * COUNT ( + 52 ) AS col1
----
NULL
19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-155
SELECT ALL - COUNT( * ) + CAST( NULL AS SIGNED ) + - 80 * - - 73 + COALESCE ( + + 73, - - 55, 16 + MIN( - + 60 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-155
SELECT ALL - COUNT ( * ) + CAST ( NULL AS INTEGER ) + - 80 * - - 73 + COALESCE ( + + 73, - - 55, 16 + MIN ( - + 60 ) )
----
NULL

query II rowsort
SELECT - 46, + ( + 5 ) AS col2
----
-46
5

query II rowsort
SELECT 7 col1, 58 AS col0
----
7
58

onlyif mysql # aggregate syntax: 
query I rowsort label-158
SELECT ALL + 9 + + 46 * COUNT( - - 22 ) col2
----
55

skipif mysql # not compatible
query I rowsort label-158
SELECT ALL + 9 + + 46 * COUNT ( - - 22 ) col2
----
55

onlyif mysql # aggregate syntax: 
query II rowsort label-159
SELECT ALL 94 AS col1, NULLIF ( + COUNT( * ), COUNT( * ) + - ( + 79 ) * - 43 * - - 42 + - 27 ) + + 22
----
94
23

skipif mysql # not compatible
query II rowsort label-159
SELECT ALL 94 AS col1, NULLIF ( + COUNT ( * ), COUNT ( * ) + - ( + 79 ) * - 43 * - - 42 + - 27 ) + + 22
----
94
23

query I rowsort
SELECT ALL 15 + + - 53 + 37 * - + 31 col2
----
-1185

onlyif mysql # aggregate syntax: 
query II rowsort label-161
SELECT DISTINCT - 52 + MIN( DISTINCT - - 65 ) + - 51 AS col0, + COUNT( * ) * + COALESCE ( + 99, 71 - + 54 ) AS col1
----
-38
99

skipif mysql # not compatible
query II rowsort label-161
SELECT DISTINCT - 52 + MIN ( DISTINCT - - 65 ) + - 51 AS col0, + COUNT ( * ) * + COALESCE ( + 99, 71 - + 54 ) AS col1
----
-38
99

onlyif mysql # aggregate syntax: 
query I rowsort label-162
SELECT NULLIF ( 42, - + COUNT( + 55 ) ) * 98 col2
----
4116

skipif mysql # not compatible
query I rowsort label-162
SELECT NULLIF ( 42, - + COUNT ( + 55 ) ) * 98 col2
----
4116

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query II rowsort label-163
SELECT + 65 + + - 19 DIV - 81 * 93 AS col2, 74 + NULLIF ( + 65, CAST( NULLIF ( 58, - COUNT( * ) ) AS DECIMAL ) + - - 93 * CASE - NULLIF ( 34, + 10 ) WHEN - 58 * + 85 THEN NULL ELSE + 90 * CAST( - 25 DIV 42 AS SIGNED ) END ) + - 97
----
65
42

skipif mysql # not compatible
query II rowsort label-163
SELECT + 65 + + - 19 / - 81 * 93 AS col2, 74 + NULLIF ( + 65, CAST ( NULLIF ( 58, - COUNT ( * ) ) AS REAL ) + - - 93 * CASE - NULLIF ( 34, + 10 ) WHEN - 58 * + 85 THEN NULL ELSE + 90 * CAST ( - 25 / 42 AS INTEGER ) END ) + - 97
----
65
42

onlyif mysql # aggregate syntax: 
query I rowsort label-164
SELECT 96 + + + MAX( DISTINCT - 86 ) col1
----
10

skipif mysql # not compatible
query I rowsort label-164
SELECT 96 + + + MAX ( DISTINCT - 86 ) col1
----
10

onlyif mysql # DIV for integer division: 
query I rowsort label-165
SELECT + 48 DIV - 69 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-165
SELECT + 48 / - 69 AS col0
----
0

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

skipif mysql # not compatible
query I rowsort label-166
SELECT ALL 27 / + COUNT ( * )
----
27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-167
SELECT DISTINCT + CASE + 86 WHEN - - 9 + + COALESCE ( - 92, - + AVG ( DISTINCT + + 91 ) ) / - 60 THEN - 75 END - - CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-167
SELECT DISTINCT + CASE + 86 WHEN - - 9 + + COALESCE ( - 92, - + AVG ( DISTINCT + + 91 ) ) / - 60 THEN - 75 END - - CAST ( NULL AS INTEGER ) col2
----
NULL

query II rowsort
SELECT + 74 AS col2, 44 col2
----
74
44

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

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

query II rowsort
SELECT DISTINCT - - 89 AS col1, + 22 AS col1
----
89
22

onlyif mysql # aggregate syntax: 
query I rowsort label-171
SELECT - COUNT( DISTINCT + + 2 ) * 15 * + COUNT( * ) + + COUNT( * ) - - 5
----
-9

skipif mysql # not compatible
query I rowsort label-171
SELECT - COUNT ( DISTINCT + + 2 ) * 15 * + COUNT ( * ) + + COUNT ( * ) - - 5
----
-9

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-173
SELECT ALL 44 * - CASE CAST( 72 AS SIGNED ) WHEN - 64 THEN + 55 * - - 72 + - - COUNT( 51 ) + - - 57 - - 93 ELSE - + 10 END AS col1
----
440

skipif mysql # not compatible
query I rowsort label-173
SELECT ALL 44 * - CASE CAST ( 72 AS INTEGER ) WHEN - 64 THEN + 55 * - - 72 + - - COUNT ( 51 ) + - - 57 - - 93 ELSE - + 10 END AS col1
----
440

query I rowsort
SELECT DISTINCT 90 * - 7 * + + 38
----
-23940

onlyif mysql # aggregate syntax: 
query I rowsort label-175
SELECT ( + 94 ) * - 87 * + COUNT( * ) + + 67 col1
----
-8111

skipif mysql # not compatible
query I rowsort label-175
SELECT ( + 94 ) * - 87 * + COUNT ( * ) + + 67 col1
----
-8111

query I rowsort
SELECT ALL 8 * 67
----
536

query I rowsort
SELECT 89 + + 68 + 86 * + 21
----
1963

query I rowsort
SELECT DISTINCT 43 + - 12
----
31

query I rowsort
SELECT ALL 2 + 12 * - - 15 AS col2
----
182

onlyif mysql # aggregate syntax: 
query I rowsort label-180
SELECT + ( COUNT( * ) ) * + + 68 + 86
----
154

skipif mysql # not compatible
query I rowsort label-180
SELECT + ( COUNT ( * ) ) * + + 68 + 86
----
154

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-181
SELECT DISTINCT COUNT( - 41 ) DIV 75 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-181
SELECT DISTINCT COUNT ( - 41 ) / 75 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-182
SELECT SUM( - 44 ) + - 54
----
-98

skipif mysql # not compatible
query I rowsort label-182
SELECT SUM ( - 44 ) + - 54
----
-98

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-183
SELECT 21 - + COALESCE ( - 80, - COUNT( * ) DIV - 69 + + 47 - + 28 + - - 16 + + - ( 46 ) ) + + 34 * - 26 * 53 AS col2
----
-46751

skipif mysql # not compatible
query I rowsort label-183
SELECT 21 - + COALESCE ( - 80, - COUNT ( * ) / - 69 + + 47 - + 28 + - - 16 + + - ( 46 ) ) + + 34 * - 26 * 53 AS col2
----
-46751

query I rowsort
SELECT ALL ( - - 77 ) * + - 20 + ( + 97 ) AS col1
----
-1443

onlyif mysql # aggregate syntax: 
query I rowsort label-185
SELECT 30 * 71 * - ( COUNT( * ) )
----
-2130

skipif mysql # not compatible
query I rowsort label-185
SELECT 30 * 71 * - ( COUNT ( * ) )
----
-2130

onlyif mysql # aggregate syntax: 
query I rowsort label-186
SELECT DISTINCT 1 + - COUNT( * ) * - 52
----
53

skipif mysql # not compatible
query I rowsort label-186
SELECT DISTINCT 1 + - COUNT ( * ) * - 52
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-187
SELECT ALL NULLIF ( + COALESCE ( + 50, - - 55 * 72 * + - MAX( ALL 19 ) * + 90 - 12, + 11 ), 12 * - COUNT( * ) + 29 + COUNT( * ) ) * + 2
----
100

skipif mysql # not compatible
query I rowsort label-187
SELECT ALL NULLIF ( + COALESCE ( + 50, - - 55 * 72 * + - MAX ( ALL 19 ) * + 90 - 12, + 11 ), 12 * - COUNT ( * ) + 29 + COUNT ( * ) ) * + 2
----
100

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-188
SELECT SUM( - CAST( 35 AS SIGNED ) )
----
-35

skipif mysql # not compatible
query I rowsort label-188
SELECT SUM ( - CAST ( 35 AS INTEGER ) )
----
-35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-189
SELECT + CASE WHEN NOT CASE - 42 WHEN 25 - - + CAST( NULL AS SIGNED ) THEN + + 61 + 87 END BETWEEN 37 AND - - COUNT( * ) THEN + 37 END + - 0 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-189
SELECT + CASE WHEN NOT CASE - 42 WHEN 25 - - + CAST ( NULL AS INTEGER ) THEN + + 61 + 87 END BETWEEN 37 AND - - COUNT ( * ) THEN + 37 END + - 0 AS col0
----
NULL

query II rowsort
SELECT ALL - 79 + + + 52, + 50 col1
----
-27
50

onlyif mysql # aggregate syntax: 
query I rowsort label-191
SELECT DISTINCT + 21 + + 88 / - 55 - - CASE 89 WHEN 6 + + 2 * - COUNT( + 60 ) + - 63 + - 29 * - 58 * + 42 THEN + 64 + + 66 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-191
SELECT DISTINCT + 21 + + 88 / - 55 - - CASE 89 WHEN 6 + + 2 * - COUNT ( + 60 ) + - 63 + - 29 * - 58 * + 42 THEN + 64 + + 66 ELSE NULL END
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-193
SELECT 34 + 59 + - COUNT( * ) AS col2
----
92

skipif mysql # not compatible
query I rowsort label-193
SELECT 34 + 59 + - COUNT ( * ) AS col2
----
92

query I rowsort
SELECT ALL 32 - + 42
----
-10

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-196
SELECT DISTINCT + CASE - ( 60 ) WHEN - 89 THEN NULL WHEN 33 * - CAST( + 99 AS SIGNED ) THEN NULL WHEN 60 THEN 64 * + + 44 * + 16 END
----
NULL

skipif mysql # not compatible
query I rowsort label-196
SELECT DISTINCT + CASE - ( 60 ) WHEN - 89 THEN NULL WHEN 33 * - CAST ( + 99 AS INTEGER ) THEN NULL WHEN 60 THEN 64 * + + 44 * + 16 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-197
SELECT ALL CASE - 6 WHEN + 70 + ( 81 ) THEN NULL WHEN COALESCE ( - 22, - + COALESCE ( - 64, + 65 / 49 + - + 62, - - NULLIF ( + 57, COUNT( ALL - CASE 58 WHEN + 17 - 80 THEN 72 * - 40 + 54 * + 58 WHEN - CAST( NULL AS SIGNED ) THEN NULL WHEN - 59 + 45 / + COALESCE ( 54 / 88, CAST( NULL AS SIGNED ) * - 22 + - 58 * + 98 ) THEN - 18 / 20 ELSE NULL END ) * 3 ) ) * - MAX( DISTINCT + 46 * - 27 ), AVG ( ALL 22 ) ) THEN NULL WHEN 23 THEN 42 - + MAX( 52 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-197
SELECT ALL CASE - 6 WHEN + 70 + ( 81 ) THEN NULL WHEN COALESCE ( - 22, - + COALESCE ( - 64, + 65 / 49 + - + 62, - - NULLIF ( + 57, COUNT ( ALL - CASE 58 WHEN + 17 - 80 THEN 72 * - 40 + 54 * + 58 WHEN - CAST ( NULL AS INTEGER ) THEN NULL WHEN - 59 + 45 / + COALESCE ( 54 / 88, CAST ( NULL AS INTEGER ) * - 22 + - 58 * + 98 ) THEN - 18 / 20 ELSE NULL END ) * 3 ) ) * - MAX ( DISTINCT + 46 * - 27 ), AVG ( ALL 22 ) ) THEN NULL WHEN 23 THEN 42 - + MAX ( 52 ) END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-198
SELECT ALL + SUM( ALL - 42 ) * - CAST( + - 2 AS SIGNED ) + - CAST( NULL AS SIGNED ) + - ( 63 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-198
SELECT ALL + SUM ( ALL - 42 ) * - CAST ( + - 2 AS INTEGER ) + - CAST ( NULL AS INTEGER ) + - ( 63 ) AS col0
----
NULL

query I rowsort
SELECT - - 66 * + 69
----
4554

onlyif mysql # aggregate syntax: 
query I rowsort label-200
SELECT ALL + + CASE - COUNT( * ) WHEN + 31 + 83 THEN - COUNT( * ) + - 29 * + 5 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-200
SELECT ALL + + CASE - COUNT ( * ) WHEN + 31 + 83 THEN - COUNT ( * ) + - 29 * + 5 END AS col1
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-202
SELECT + 25 * COUNT( * ) * 73 + + 53
----
1878

skipif mysql # not compatible
query I rowsort label-202
SELECT + 25 * COUNT ( * ) * 73 + + 53
----
1878

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-203
SELECT NULLIF ( + 25, + 45 * - 49 * + CAST( NULL AS SIGNED ) )
----
25

skipif mysql # not compatible
query I rowsort label-203
SELECT NULLIF ( + 25, + 45 * - 49 * + CAST ( NULL AS INTEGER ) )
----
25

query I rowsort
SELECT - 50 * - - 42
----
-2100

query II rowsort
SELECT + 56 * + ( 92 ) * - 6 * - 13 AS col0, 92 + 45 + - 68 AS col2
----
401856
69

onlyif mysql # DIV for integer division: 
query II rowsort label-206
SELECT DISTINCT + 2 AS col2, - 65 * - - ( + 1 ) DIV 1 AS col2
----
2
-65

skipif mysql # not compatible
query II rowsort label-206
SELECT DISTINCT + 2 AS col2, - 65 * - - ( + 1 ) / 1 AS col2
----
2
-65

onlyif mysql # DIV for integer division: 
query I rowsort label-207
SELECT ALL 96 DIV - + 82
----
-1

skipif mysql # not compatible
query I rowsort label-207
SELECT ALL 96 / - + 82
----
-1

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-209
SELECT ALL 99 * 76 * + 73 + - - COUNT( * ) + + 81 + - - CASE + - 0 WHEN 66 THEN + 87 DIV + 73 DIV - + 32 + - 60 WHEN AVG ( DISTINCT 8 ) * + 38 + - 35 THEN 59 ELSE + 89 END + + 23 * 82
----
551309

skipif mysql # not compatible
query I rowsort label-209
SELECT ALL 99 * 76 * + 73 + - - COUNT ( * ) + + 81 + - - CASE + - 0 WHEN 66 THEN + 87 / + 73 / - + 32 + - 60 WHEN AVG ( DISTINCT 8 ) * + 38 + - 35 THEN 59 ELSE + 89 END + + 23 * 82
----
551309

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-211
SELECT + 72 DIV + COUNT( * ) AS col2
----
72

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-212
SELECT COUNT( * ), 19 DIV 89 AS col2
----
1
0

skipif mysql # not compatible
query II rowsort label-212
SELECT COUNT ( * ), 19 / 89 AS col2
----
1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-213
SELECT + 66 + - COUNT( * ) - 44 * + 27 col0
----
-1123

skipif mysql # not compatible
query I rowsort label-213
SELECT + 66 + - COUNT ( * ) - 44 * + 27 col0
----
-1123

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-214
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - + 81 + - 13 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-214
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - + 81 + - 13 AS col1
----
NULL

query I rowsort
SELECT ALL - 33 * + 82 + - - 71
----
-2635

query I rowsort
SELECT + 30 * 79 * - 96
----
-227520

query I rowsort
SELECT ALL NULLIF ( + - 94, 85 ) * + 86 + 27 AS col1
----
-8057

query I rowsort
SELECT ALL - ( - 94 ) col0
----
94

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

skipif mysql # not compatible
query I rowsort label-219
SELECT - - CAST ( - COUNT ( + 30 ) AS INTEGER )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-220
SELECT + 76 * + 8 * - + COUNT( * ) * + 47 / - CASE - 57 WHEN + 99 * - - 85 + + 57 THEN NULL WHEN + 26 * + + 35 THEN + + 51 END + + + 5
----
NULL

skipif mysql # not compatible
query I rowsort label-220
SELECT + 76 * + 8 * - + COUNT ( * ) * + 47 / - CASE - 57 WHEN + 99 * - - 85 + + 57 THEN NULL WHEN + 26 * + + 35 THEN + + 51 END + + + 5
----
NULL

query I rowsort
SELECT + 20 - - - ( 1 ) + - - 64 AS col2
----
83

query I rowsort
SELECT - - 56 col1
----
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-223
SELECT ALL - COUNT( * ) col2, 98 / 45 * + 31 + CAST( NULL AS SIGNED ) + - + 43 AS col1
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-223
SELECT ALL - COUNT ( * ) col2, 98 / 45 * + 31 + CAST ( NULL AS INTEGER ) + - + 43 AS col1
----
-1
NULL

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-225
SELECT + + COUNT( * ) * - + SUM( DISTINCT - - CASE - - 51 WHEN 43 THEN NULL WHEN - 38 THEN 84 END ) * - 87 AS col2, + 36
----
NULL
36

skipif mysql # not compatible
query II rowsort label-225
SELECT + + COUNT ( * ) * - + SUM ( DISTINCT - - CASE - - 51 WHEN 43 THEN NULL WHEN - 38 THEN 84 END ) * - 87 AS col2, + 36
----
NULL
36

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-226
SELECT DISTINCT + ( 15 ) * - 51 AS col0, ( CAST( - 42 AS SIGNED ) )
----
-765
-42

skipif mysql # not compatible
query II rowsort label-226
SELECT DISTINCT + ( 15 ) * - 51 AS col0, ( CAST ( - 42 AS INTEGER ) )
----
-765
-42

query I rowsort
SELECT ALL - 67 * 45 + 99
----
-2916

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

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

query I rowsort
SELECT ALL + NULLIF ( - 74, - ( 92 ) ) col1
----
-74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-230
SELECT DISTINCT NULLIF ( - - COUNT( - 27 ), + + 47 + + MAX( DISTINCT + - 85 ) + 23 ) * CAST( 43 AS SIGNED ) AS col0
----
43

skipif mysql # not compatible
query I rowsort label-230
SELECT DISTINCT NULLIF ( - - COUNT ( - 27 ), + + 47 + + MAX ( DISTINCT + - 85 ) + 23 ) * CAST ( 43 AS INTEGER ) AS col0
----
43

query I rowsort
SELECT DISTINCT 62 * + + 9 col0
----
558

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-232
SELECT + NULLIF ( + 36, 45 DIV 30 + + 58 + 5 + - + 10 * - COUNT( * ) + - 11 * - 11 ) DIV + - 61 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-232
SELECT + NULLIF ( + 36, 45 / 30 + + 58 + 5 + - + 10 * - COUNT ( * ) + - 11 * - 11 ) / + - 61 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-233
SELECT - 5 DIV - 70 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-233
SELECT - 5 / - 70 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-234
SELECT + 49 + + COALESCE ( 57, - + 58 ) + + SUM( DISTINCT + 92 ) col0
----
198

skipif mysql # not compatible
query I rowsort label-234
SELECT + 49 + + COALESCE ( 57, - + 58 ) + + SUM ( DISTINCT + 92 ) col0
----
198

query I rowsort
SELECT - 19 * + 52
----
-988

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

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

query I rowsort
SELECT - 9 + 64 - - + 79
----
134

query I rowsort
SELECT ALL ( 87 ) col1
----
87

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-239
SELECT ALL - COUNT( * ) DIV - 43 + + + 58 DIV - 41
----
-1

skipif mysql # not compatible
query I rowsort label-239
SELECT ALL - COUNT ( * ) / - 43 + + + 58 / - 41
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-240
SELECT ALL 26 DIV ( 29 ) + + 48
----
48

skipif mysql # not compatible
query I rowsort label-240
SELECT ALL 26 / ( 29 ) + + 48
----
48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-241
SELECT ALL MAX( - 17 ) DIV - + ( COUNT( * ) ) + + 46 + 3 AS col0
----
66

skipif mysql # not compatible
query I rowsort label-241
SELECT ALL MAX ( - 17 ) / - + ( COUNT ( * ) ) + + 46 + 3 AS col0
----
66

query I rowsort
SELECT - 43 * + 55
----
-2365

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-244
SELECT + 66 * 39 * - COUNT( * )
----
-2574

skipif mysql # not compatible
query I rowsort label-244
SELECT + 66 * 39 * - COUNT ( * )
----
-2574

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

onlyif mysql # aggregate syntax: 
query II rowsort label-246
SELECT ALL - 89 * - + 61 + 36 * + CASE + 87 WHEN - NULLIF ( 49, - 87 + - - 54 ) * - - 7 THEN COUNT( * ) ELSE NULL END AS col0, + 90 AS col1
----
NULL
90

skipif mysql # not compatible
query II rowsort label-246
SELECT ALL - 89 * - + 61 + 36 * + CASE + 87 WHEN - NULLIF ( 49, - 87 + - - 54 ) * - - 7 THEN COUNT ( * ) ELSE NULL END AS col0, + 90 AS col1
----
NULL
90

onlyif mysql # aggregate syntax: 
query II rowsort label-247
SELECT ALL + 40, CASE + - 32 WHEN - 6 THEN 99 WHEN - COUNT( * ) THEN NULL ELSE + + 82 + - - COUNT( * ) END - COUNT( * ) AS col1
----
40
82

skipif mysql # not compatible
query II rowsort label-247
SELECT ALL + 40, CASE + - 32 WHEN - 6 THEN 99 WHEN - COUNT ( * ) THEN NULL ELSE + + 82 + - - COUNT ( * ) END - COUNT ( * ) AS col1
----
40
82

onlyif mysql # aggregate syntax: 
query I rowsort label-248
SELECT ALL - 12 * COUNT( * ) - + + SUM( + 81 )
----
-93

skipif mysql # not compatible
query I rowsort label-248
SELECT ALL - 12 * COUNT ( * ) - + + SUM ( + 81 )
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-249
SELECT ALL CASE - 24 WHEN - - 47 * - COUNT( * ) THEN - 49 ELSE 79 + + 69 END * + + 63
----
9324

skipif mysql # not compatible
query I rowsort label-249
SELECT ALL CASE - 24 WHEN - - 47 * - COUNT ( * ) THEN - 49 ELSE 79 + + 69 END * + + 63
----
9324

onlyif mysql # aggregate syntax: 
query I rowsort label-250
SELECT CASE - 65 WHEN + COALESCE ( - 6, - 14 + + - NULLIF ( + COUNT( * ), - 69 ) * - MAX( + + 73 ) ) THEN + MAX( + - ( - 60 ) ) ELSE - 92 * + 92 END col2
----
-8464

skipif mysql # not compatible
query I rowsort label-250
SELECT CASE - 65 WHEN + COALESCE ( - 6, - 14 + + - NULLIF ( + COUNT ( * ), - 69 ) * - MAX ( + + 73 ) ) THEN + MAX ( + - ( - 60 ) ) ELSE - 92 * + 92 END col2
----
-8464

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

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

query I rowsort
SELECT + - 26 - - COALESCE ( 5, 47 ) + ( + - 55 ) * - + 37
----
2014

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-253
SELECT + 52, + COUNT( * ) / + 78 + - CAST( NULL AS SIGNED ) AS col2
----
52
NULL

skipif mysql # not compatible
query II rowsort label-253
SELECT + 52, + COUNT ( * ) / + 78 + - CAST ( NULL AS INTEGER ) AS col2
----
52
NULL

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

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

query I rowsort
SELECT - - 82 + - 18 col2
----
64

query I rowsort
SELECT + + 66 * + + 82 AS col0
----
5412

onlyif mysql # aggregate syntax: 
query I rowsort label-257
SELECT DISTINCT - - 57 * COUNT( * ) - + 63 col1
----
-6

skipif mysql # not compatible
query I rowsort label-257
SELECT DISTINCT - - 57 * COUNT ( * ) - + 63 col1
----
-6

query I rowsort
SELECT + - 91 + + 11 + - 40 * + + 12
----
-560

query II rowsort
SELECT DISTINCT 30, 15 * 55 + + + 27 AS col0
----
30
852

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-261
SELECT + CASE CAST( NULL AS SIGNED ) WHEN + SUM( + 56 ) * - 7 THEN - + COUNT( * ) END + + COUNT( * ) + + + 66
----
NULL

skipif mysql # not compatible
query I rowsort label-261
SELECT + CASE CAST ( NULL AS INTEGER ) WHEN + SUM ( + 56 ) * - 7 THEN - + COUNT ( * ) END + + COUNT ( * ) + + + 66
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-262
SELECT ALL 37 * - 33 - + + 91 * - 70 DIV - - COUNT( * ) + - 41 - 5 + COALESCE ( + 49, + NULLIF ( - 65, CASE + COUNT( * ) WHEN + + 36 * - - 72 + - - NULLIF ( - 81, - 71 ) THEN NULL WHEN - 85 - 59 THEN NULL WHEN - 67 THEN - COUNT( * ) ELSE NULL END ) DIV + 2 + - 4 DIV 64 )
----
5152

skipif mysql # not compatible
query I rowsort label-262
SELECT ALL 37 * - 33 - + + 91 * - 70 / - - COUNT ( * ) + - 41 - 5 + COALESCE ( + 49, + NULLIF ( - 65, CASE + COUNT ( * ) WHEN + + 36 * - - 72 + - - NULLIF ( - 81, - 71 ) THEN NULL WHEN - 85 - 59 THEN NULL WHEN - 67 THEN - COUNT ( * ) ELSE NULL END ) / + 2 + - 4 / 64 )
----
5152

onlyif mysql # aggregate syntax: 
query I rowsort label-263
SELECT - + MAX( DISTINCT + - 56 ) AS col1
----
56

skipif mysql # not compatible
query I rowsort label-263
SELECT - + MAX ( DISTINCT + - 56 ) AS col1
----
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-264
SELECT ALL 77 + + - CASE - - 64 WHEN + - 54 THEN NULL WHEN - 38 + 50 * COALESCE ( + 24, 59 * - COUNT( * ) * + CAST( NULL AS SIGNED ) * + 36 * 10 / - 39 + + 37 ) THEN 20 * + COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-264
SELECT ALL 77 + + - CASE - - 64 WHEN + - 54 THEN NULL WHEN - 38 + 50 * COALESCE ( + 24, 59 * - COUNT ( * ) * + CAST ( NULL AS INTEGER ) * + 36 * 10 / - 39 + + 37 ) THEN 20 * + COUNT ( * ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-265
SELECT - 32, COALESCE ( + - MIN( + - 8 ), - - 32, 88 ) + - 60 + - NULLIF ( 91, + - 63 * + 15 * 38 / 15 ) AS col1
----
-32
-143

skipif mysql # not compatible
query II rowsort label-265
SELECT - 32, COALESCE ( + - MIN ( + - 8 ), - - 32, 88 ) + - 60 + - NULLIF ( 91, + - 63 * + 15 * 38 / 15 ) AS col1
----
-32
-143

query I rowsort
SELECT + 17 + + 50 AS col1
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-267
SELECT + CASE 91 WHEN 81 THEN NULL WHEN + 13 + - - 24 THEN + COUNT( * ) END * + + 59
----
NULL

skipif mysql # not compatible
query I rowsort label-267
SELECT + CASE 91 WHEN 81 THEN NULL WHEN + 13 + - - 24 THEN + COUNT ( * ) END * + + 59
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-268
SELECT ALL - 95 * 18 + - 51 + - 75 * + 50 * + + CAST( NULL AS SIGNED ) * + 81 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-268
SELECT ALL - 95 * 18 + - 51 + - 75 * + 50 * + + CAST ( NULL AS INTEGER ) * + 81 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-269
SELECT ALL 39 DIV + + 80 col0
----
0

skipif mysql # not compatible
query I rowsort label-269
SELECT ALL 39 / + + 80 col0
----
0

query I rowsort
SELECT ALL 91 + - 59 * + 57
----
-3272

onlyif mysql # aggregate syntax: 
query I rowsort label-271
SELECT DISTINCT + 62 * + COUNT( * ) * + + 95 AS col0
----
5890

skipif mysql # not compatible
query I rowsort label-271
SELECT DISTINCT + 62 * + COUNT ( * ) * + + 95 AS col0
----
5890

query I rowsort
SELECT ALL - 8 + 18
----
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-273
SELECT 86 + CAST( NULL AS DECIMAL ) - 7 - + ( - + 5 ) + - 15 + - 74 + - COALESCE ( 65, + CAST( NULL AS SIGNED ), + + 71 ) + 37 + + - 62 / + 60 + + COUNT( - 73 ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-273
SELECT 86 + CAST ( NULL AS REAL ) - 7 - + ( - + 5 ) + - 15 + - 74 + - COALESCE ( 65, + CAST ( NULL AS INTEGER ), + + 71 ) + 37 + + - 62 / + 60 + + COUNT ( - 73 ) col0
----
NULL

query I rowsort
SELECT DISTINCT 26 + - 19
----
7

query I rowsort
SELECT ALL 85 * - 58
----
-4930

onlyif mysql # DIV for integer division: 
query I rowsort label-276
SELECT ( ( 57 ) ) DIV + + 91 + + 88 + - 27 DIV 43
----
88

skipif mysql # not compatible
query I rowsort label-276
SELECT ( ( 57 ) ) / + + 91 + + 88 + - 27 / 43
----
88

query I rowsort
SELECT 76 + + 23 + 49 + - + 78 * 73
----
-5546

onlyif mysql # DIV for integer division: 
query I rowsort label-278
SELECT + 41 DIV - 76 - - + 16
----
16

skipif mysql # not compatible
query I rowsort label-278
SELECT + 41 / - 76 - - + 16
----
16

query I rowsort
SELECT 14 * 28
----
392

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

skipif mysql # not compatible
query I rowsort label-280
SELECT ALL - MIN ( + CAST ( - 14 AS INTEGER ) ) AS col2
----
14

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

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

query I rowsort
SELECT 21 + - 74 * 41 * - 35 AS col0
----
106211

onlyif mysql # aggregate syntax: 
query I rowsort label-283
SELECT DISTINCT + COUNT( * ) + - - 76 + - 22 + - 4 * + 20 AS col0
----
-25

skipif mysql # not compatible
query I rowsort label-283
SELECT DISTINCT + COUNT ( * ) + - - 76 + - 22 + - 4 * + 20 AS col0
----
-25

query I rowsort
SELECT DISTINCT 78 - - - 16 * + 43
----
-610

onlyif mysql # aggregate syntax: 
query I rowsort label-285
SELECT 14 * - MIN( ALL 28 ) AS col0
----
-392

skipif mysql # not compatible
query I rowsort label-285
SELECT 14 * - MIN ( ALL 28 ) AS col0
----
-392

query I rowsort
SELECT ALL - 46 * ( - 40 )
----
1840

onlyif mysql # aggregate syntax: 
query I rowsort label-287
SELECT ALL 13 - - - ( - 47 ) * COUNT( * )
----
60

skipif mysql # not compatible
query I rowsort label-287
SELECT ALL 13 - - - ( - 47 ) * COUNT ( * )
----
60

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

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

query II rowsort
SELECT 39 * + - 57, 47 AS col2
----
-2223
47

query I rowsort
SELECT ALL + COALESCE ( 37, - 24, - 49 * - + 89 ) * - - 73 * - + 84
----
-226884

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-291
SELECT - ( COUNT( * ) ) * + + AVG ( - 87 ) + 96 * + + 11 + + 62 + - 49 * CASE 14 WHEN - 29 THEN - 25 + - - 19 * + MIN( + + 75 ) + - + ( ( - COUNT( DISTINCT - 53 ) ) ) * 64 WHEN + 18 - 25 * - CAST( NULL AS SIGNED ) THEN ( 53 ) * - 93 - AVG ( DISTINCT - ( + 48 ) ) ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-291
SELECT - ( COUNT ( * ) ) * + + AVG ( - 87 ) + 96 * + + 11 + + 62 + - 49 * CASE 14 WHEN - 29 THEN - 25 + - - 19 * + MIN ( + + 75 ) + - + ( ( - COUNT ( DISTINCT - 53 ) ) ) * 64 WHEN + 18 - 25 * - CAST ( NULL AS INTEGER ) THEN ( 53 ) * - 93 - AVG ( DISTINCT - ( + 48 ) ) ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-292
SELECT ALL - + COUNT( * ) - 60
----
-61

skipif mysql # not compatible
query I rowsort label-292
SELECT ALL - + COUNT ( * ) - 60
----
-61

onlyif mysql # DIV for integer division: 
query I rowsort label-293
SELECT - 24 DIV - - 14
----
-1

skipif mysql # not compatible
query I rowsort label-293
SELECT - 24 / - - 14
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-294
SELECT ALL 82 DIV + - 46 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-294
SELECT ALL 82 / + - 46 AS col1
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-295
SELECT CASE 78 WHEN + - 46 THEN NULL WHEN + MIN( DISTINCT - - 97 ) THEN - 94 WHEN - 50 THEN NULL WHEN + NULLIF ( + + CAST( - 56 AS DECIMAL ), - 5 ) THEN NULL ELSE NULL END - - CAST( + - ( - - ( + 74 ) ) AS SIGNED ) * + 33
----
NULL

skipif mysql # not compatible
query I rowsort label-295
SELECT CASE 78 WHEN + - 46 THEN NULL WHEN + MIN ( DISTINCT - - 97 ) THEN - 94 WHEN - 50 THEN NULL WHEN + NULLIF ( + + CAST ( - 56 AS REAL ), - 5 ) THEN NULL ELSE NULL END - - CAST ( + - ( - - ( + 74 ) ) AS INTEGER ) * + 33
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-296
SELECT 57 DIV + - 86 * - + 29 + 14 AS col1
----
14

skipif mysql # not compatible
query I rowsort label-296
SELECT 57 / + - 86 * - + 29 + 14 AS col1
----
14

query I rowsort
SELECT ALL + 90 + + 6 AS col0
----
96

query I rowsort
SELECT 44 - + + 2 + + 96 col2
----
138

onlyif mysql # aggregate syntax: 
query II rowsort label-299
SELECT - - COUNT( DISTINCT 76 ) AS col2, 43 AS col1
----
1
43

skipif mysql # not compatible
query II rowsort label-299
SELECT - - COUNT ( DISTINCT 76 ) AS col2, 43 AS col1
----
1
43

query I rowsort
SELECT ALL - - 79 + + 81
----
160

query I rowsort
SELECT - ( + + 69 ) AS col2
----
-69

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-302
SELECT ALL 71 * + 71 DIV - COUNT( * )
----
-5041

skipif mysql # not compatible
query I rowsort label-302
SELECT ALL 71 * + 71 / - COUNT ( * )
----
-5041

onlyif mysql # aggregate syntax: 
query I rowsort label-303
SELECT DISTINCT - 88 + - + COUNT( * ) AS col1
----
-89

skipif mysql # not compatible
query I rowsort label-303
SELECT DISTINCT - 88 + - + COUNT ( * ) AS col1
----
-89

query I rowsort
SELECT ALL 84 + - CASE + 68 WHEN 32 / + 23 THEN - 43 ELSE NULL END - + - 94 - - + 15 AS col1
----
NULL

query I rowsort
SELECT ALL 74 + - - 62
----
136

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-307
SELECT MIN( + + CASE - - 84 WHEN 59 THEN - 26 END ) * + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-307
SELECT MIN ( + + CASE - - 84 WHEN 59 THEN - 26 END ) * + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT 70 * - + 8
----
-560

query II rowsort
SELECT ALL 62, 42 + 90 AS col1
----
62
132

onlyif mysql # aggregate syntax: 
query I rowsort label-310
SELECT ALL 38 + + - COALESCE ( + - COUNT( * ), + MIN( - 95 ) + 98 ) AS col0
----
39

skipif mysql # not compatible
query I rowsort label-310
SELECT ALL 38 + + - COALESCE ( + - COUNT ( * ), + MIN ( - 95 ) + 98 ) AS col0
----
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-311
SELECT 79 + - CAST( + COUNT( * ) AS SIGNED ) * + + 26 * + 84 AS col1
----
-2105

skipif mysql # not compatible
query I rowsort label-311
SELECT 79 + - CAST ( + COUNT ( * ) AS INTEGER ) * + + 26 * + 84 AS col1
----
-2105

query I rowsort
SELECT ( 32 ) - - 31
----
63

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

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

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

skipif mysql # not compatible
query I rowsort label-314
SELECT ALL MAX ( 52 )
----
52

query I rowsort
SELECT ALL 8 - 30 AS col2
----
-22

query I rowsort
SELECT DISTINCT 67 * - + ( + 35 ) - - 14 * + 58 AS col1
----
-1533

onlyif mysql # aggregate syntax: 
query I rowsort label-317
SELECT DISTINCT - 35 * + COUNT( * ) - + 39 * - - 61 AS col1
----
-2414

skipif mysql # not compatible
query I rowsort label-317
SELECT DISTINCT - 35 * + COUNT ( * ) - + 39 * - - 61 AS col1
----
-2414

query I rowsort
SELECT DISTINCT NULLIF ( 12, - - 88 ) * 88 + 44 AS col1
----
1100

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-321
SELECT - CASE + - NULLIF ( 31, + 25 * ( - 53 ) * 67 ) WHEN - + 71 THEN COUNT( * ) END / 0 + COUNT( * ) col2, + 43
----
NULL
43

skipif mysql # not compatible
query II rowsort label-321
SELECT - CASE + - NULLIF ( 31, + 25 * ( - 53 ) * 67 ) WHEN - + 71 THEN COUNT ( * ) END / 0 + COUNT ( * ) col2, + 43
----
NULL
43

onlyif mysql # aggregate syntax: 
query I rowsort label-322
SELECT COUNT( * ) * - 3 col1
----
-3

skipif mysql # not compatible
query I rowsort label-322
SELECT COUNT ( * ) * - 3 col1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-323
SELECT 49 * COUNT( * ) * + 24 / CASE + CASE - - CASE + - 55 WHEN 32 * + - 43 * - ( 22 ) THEN NULL ELSE + - 72 END WHEN + 97 THEN NULL ELSE - - 6 END WHEN - - AVG ( ALL + 28 ) THEN + 16 END * + 13 * SUM( DISTINCT - 13 / - 85 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-323
SELECT 49 * COUNT ( * ) * + 24 / CASE + CASE - - CASE + - 55 WHEN 32 * + - 43 * - ( 22 ) THEN NULL ELSE + - 72 END WHEN + 97 THEN NULL ELSE - - 6 END WHEN - - AVG ( ALL + 28 ) THEN + 16 END * + 13 * SUM ( DISTINCT - 13 / - 85 ) AS col1
----
NULL

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

skipif mysql # not compatible
query I rowsort label-324
SELECT MIN ( - + 23 )
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-325
SELECT COUNT( * ) - + + 53 AS col2
----
-52

skipif mysql # not compatible
query I rowsort label-325
SELECT COUNT ( * ) - + + 53 AS col2
----
-52

onlyif mysql # aggregate syntax: 
query II rowsort label-326
SELECT - COALESCE ( + 17, - - ( MIN( DISTINCT 23 ) ) * - COUNT( * ) ) * - - COUNT( * ) * + 11 AS col2, 54
----
-187
54

skipif mysql # not compatible
query II rowsort label-326
SELECT - COALESCE ( + 17, - - ( MIN ( DISTINCT 23 ) ) * - COUNT ( * ) ) * - - COUNT ( * ) * + 11 AS col2, 54
----
-187
54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-327
SELECT - - NULLIF ( NULLIF ( - 4, 4 ), - COUNT( * ) + - CAST( - 32 AS SIGNED ) ) * + + 85 - - 21
----
-319

skipif mysql # not compatible
query I rowsort label-327
SELECT - - NULLIF ( NULLIF ( - 4, 4 ), - COUNT ( * ) + - CAST ( - 32 AS INTEGER ) ) * + + 85 - - 21
----
-319

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-330
SELECT + - COUNT( * ) * 15 + - ( - + 94 ) + 10 - + ( - 40 ) * + COUNT( + 6 ) AS col1, COUNT( * ) AS col1
----
129
1

skipif mysql # not compatible
query II rowsort label-330
SELECT + - COUNT ( * ) * 15 + - ( - + 94 ) + 10 - + ( - 40 ) * + COUNT ( + 6 ) AS col1, COUNT ( * ) AS col1
----
129
1

onlyif mysql # aggregate syntax: 
query I rowsort label-331
SELECT + - ( ( 12 ) ) + COUNT( ALL 4 ) * 14 + + 75
----
77

skipif mysql # not compatible
query I rowsort label-331
SELECT + - ( ( 12 ) ) + COUNT ( ALL 4 ) * 14 + + 75
----
77

query I rowsort
SELECT DISTINCT + + 89 * + 58 + + NULLIF ( + 0, + 50 ) AS col0
----
5162

query I rowsort
SELECT ALL - + 27 + + + 86
----
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-334
SELECT - 18 * 85 + - CASE + 7 WHEN - + COUNT( * ) + ( NULLIF ( - 1, + + 6 / + 63 + 76 ) ) THEN 72 * + 49 + 33 * - 9 * - - CAST( NULL AS SIGNED ) - - - 85 + - 37 WHEN + COALESCE ( COUNT( * ), ( 33 ), 40, + AVG ( ALL - 28 ) / + ( CAST( COUNT( * ) AS SIGNED ) + - 39 ) ) * - 94 THEN - 75 + + 63 ELSE NULL END + COUNT( * ) / - 96 * 57
----
NULL

skipif mysql # not compatible
query I rowsort label-334
SELECT - 18 * 85 + - CASE + 7 WHEN - + COUNT ( * ) + ( NULLIF ( - 1, + + 6 / + 63 + 76 ) ) THEN 72 * + 49 + 33 * - 9 * - - CAST ( NULL AS INTEGER ) - - - 85 + - 37 WHEN + COALESCE ( COUNT ( * ), ( 33 ), 40, + AVG ( ALL - 28 ) / + ( CAST ( COUNT ( * ) AS INTEGER ) + - 39 ) ) * - 94 THEN - 75 + + 63 ELSE NULL END + COUNT ( * ) / - 96 * 57
----
NULL

query I rowsort
SELECT - 16 + - 36
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-336
SELECT + COUNT( * ) * 95 - + 8 AS col2
----
87

skipif mysql # not compatible
query I rowsort label-336
SELECT + COUNT ( * ) * 95 - + 8 AS col2
----
87

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-337
SELECT DISTINCT + COUNT( * ) + + 9 DIV + - 37 col1, + 69 AS col1
----
1
69

skipif mysql # not compatible
query II rowsort label-337
SELECT DISTINCT + COUNT ( * ) + + 9 / + - 37 col1, + 69 AS col1
----
1
69

query I rowsort
SELECT ALL 99 + 76
----
175

query I rowsort
SELECT ALL + - ( - 44 ) + - + 5 * 54
----
-226

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-340
SELECT - + CASE 65 WHEN 17 THEN - - MIN( DISTINCT - 66 ) / - - CAST( + COUNT( * ) AS SIGNED ) WHEN - - 0 THEN + CAST( NULL AS SIGNED ) / - COUNT( * ) + - COUNT( * ) / 55 - - + 4 END + - + 80
----
NULL

skipif mysql # not compatible
query I rowsort label-340
SELECT - + CASE 65 WHEN 17 THEN - - MIN ( DISTINCT - 66 ) / - - CAST ( + COUNT ( * ) AS INTEGER ) WHEN - - 0 THEN + CAST ( NULL AS INTEGER ) / - COUNT ( * ) + - COUNT ( * ) / 55 - - + 4 END + - + 80
----
NULL

query I rowsort
SELECT ALL CASE 22 WHEN - 83 THEN 83 END AS col2
----
NULL

query I rowsort
SELECT 98 * + 95 + 62 * - 29 + - 49 AS col1
----
7463

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-345
SELECT - 68 * COUNT( - CAST( - 86 AS SIGNED ) ) AS col0
----
-68

skipif mysql # not compatible
query I rowsort label-345
SELECT - 68 * COUNT ( - CAST ( - 86 AS INTEGER ) ) AS col0
----
-68

query I rowsort
SELECT - 73 * - 54
----
3942

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-347
SELECT ALL - COUNT( * ) DIV COUNT( * ) AS col1, + ( - 41 ) AS col0
----
-1
-41

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

query I rowsort
SELECT ALL + 90 + + 94 * + + 45 + 70
----
4390

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-349
SELECT - 20 DIV - + ( + NULLIF ( - - CAST( - - 33 AS SIGNED ), - COUNT( * ) ) )
----
0

skipif mysql # not compatible
query I rowsort label-349
SELECT - 20 / - + ( + NULLIF ( - - CAST ( - - 33 AS INTEGER ), - COUNT ( * ) ) )
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-350
SELECT + 26 + COUNT( * ), - 24 + 85 col2
----
27
61

skipif mysql # not compatible
query II rowsort label-350
SELECT + 26 + COUNT ( * ), - 24 + 85 col2
----
27
61

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

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

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

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

query I rowsort
SELECT DISTINCT + 73 - + ( - 22 )
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-354
SELECT ALL NULLIF ( + - 33, - COUNT( * ) + - MAX( 31 ) ) AS col2
----
-33

skipif mysql # not compatible
query I rowsort label-354
SELECT ALL NULLIF ( + - 33, - COUNT ( * ) + - MAX ( 31 ) ) AS col2
----
-33

query I rowsort
SELECT + 7 + + 78 * - + 61 AS col2
----
-4751

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-357
SELECT - CAST( + 34 AS SIGNED ) * - 55 AS col2
----
1870

skipif mysql # not compatible
query I rowsort label-357
SELECT - CAST ( + 34 AS INTEGER ) * - 55 AS col2
----
1870

query I rowsort
SELECT ALL ( 41 ) col2
----
41

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

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

query II rowsort
SELECT ( + COALESCE ( 38, + 35 ) ), + 53 AS col1
----
38
53

onlyif mysql # aggregate syntax: 
query I rowsort label-361
SELECT ALL MIN( DISTINCT 69 ) * + 57 + - 1 AS col2
----
3932

skipif mysql # not compatible
query I rowsort label-361
SELECT ALL MIN ( DISTINCT 69 ) * + 57 + - 1 AS col2
----
3932

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

skipif mysql # not compatible
query I rowsort label-362
SELECT + + 78 + + CAST ( NULL AS INTEGER ) * - CAST ( + 43 AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-363
SELECT DISTINCT + 73 DIV - - 55 AS col1, - 32 AS col2
----
1
-32

skipif mysql # not compatible
query II rowsort label-363
SELECT DISTINCT + 73 / - - 55 AS col1, - 32 AS col2
----
1
-32

onlyif mysql # DIV for integer division: 
query I rowsort label-364
SELECT + + 34 DIV - 9 AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-364
SELECT + + 34 / - 9 AS col2
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-365
SELECT ALL - 17 * - + 60 + + - NULLIF ( 7, 64 ) + + 70 + + 59 * ( CAST( NULL AS SIGNED ) ) AS col0, - 23 + - - 0
----
NULL
-23

skipif mysql # not compatible
query II rowsort label-365
SELECT ALL - 17 * - + 60 + + - NULLIF ( 7, 64 ) + + 70 + + 59 * ( CAST ( NULL AS INTEGER ) ) AS col0, - 23 + - - 0
----
NULL
-23

query I rowsort
SELECT + 56 + - ( ( - COALESCE ( - + 94, 58 ) ) ) + + 68 AS col1
----
30

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-368
SELECT + 0 DIV + COUNT( * ) AS col1, 5 DIV - 64 AS col1
----
0
0

skipif mysql # not compatible
query II rowsort label-368
SELECT + 0 / + COUNT ( * ) AS col1, 5 / - 64 AS col1
----
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-369
SELECT - 70 + - + CASE - + 29 WHEN + 1 THEN NULL WHEN + NULLIF ( - 45, + NULLIF ( - 33, - + 5 - 93 + 88 ) ) * - ( - 76 ) THEN ( + + 16 ) * COUNT( * ) DIV - COALESCE ( MAX( ALL - 84 ), - 39 * - 19 - 3, - 29 + + 36 ) ELSE COUNT( DISTINCT 69 ) END * 67 AS col2
----
-137

skipif mysql # not compatible
query I rowsort label-369
SELECT - 70 + - + CASE - + 29 WHEN + 1 THEN NULL WHEN + NULLIF ( - 45, + NULLIF ( - 33, - + 5 - 93 + 88 ) ) * - ( - 76 ) THEN ( + + 16 ) * COUNT ( * ) / - COALESCE ( MAX ( ALL - 84 ), - 39 * - 19 - 3, - 29 + + 36 ) ELSE COUNT ( DISTINCT 69 ) END * 67 AS col2
----
-137

onlyif mysql # aggregate syntax: 
query I rowsort label-370
SELECT ALL 74 * - 41 + - - COUNT( * ) AS col0
----
-3033

skipif mysql # not compatible
query I rowsort label-370
SELECT ALL 74 * - 41 + - - COUNT ( * ) AS col0
----
-3033

query I rowsort
SELECT DISTINCT 49 * + 96 + + 45 + 27
----
4776

onlyif mysql # aggregate syntax: 
query I rowsort label-372
SELECT DISTINCT 33 * - 79 * 52 + - + COUNT( * ) + ( - SUM( DISTINCT 6 ) ) * 20 AS col0
----
-135685

skipif mysql # not compatible
query I rowsort label-372
SELECT DISTINCT 33 * - 79 * 52 + - + COUNT ( * ) + ( - SUM ( DISTINCT 6 ) ) * 20 AS col0
----
-135685

query I rowsort
SELECT ALL 99 * 76 + 96
----
7620

onlyif mysql # aggregate syntax: 
query II rowsort label-374
SELECT - ( - + 22 ), + 2 + 17 * - COUNT( * ) AS col2
----
22
-15

skipif mysql # not compatible
query II rowsort label-374
SELECT - ( - + 22 ), + 2 + 17 * - COUNT ( * ) AS col2
----
22
-15

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-375
SELECT ALL - 87 * - 99 + - CAST( 77 AS SIGNED ) * - 58 + + 19 DIV + + ( + 68 ) - 46
----
13033

skipif mysql # not compatible
query I rowsort label-375
SELECT ALL - 87 * - 99 + - CAST ( 77 AS INTEGER ) * - 58 + + 19 / + + ( + 68 ) - 46
----
13033

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-376
SELECT + 2 - + 31 * + + ( - CAST( NULL AS DECIMAL ) ) + COALESCE ( + COALESCE ( - - ( - 48 ), - - 30 * + 10 + + 45 ), - - 25 ) + + - 93 * - 99, 0 * + 78 AS col0
----
NULL
0

skipif mysql # not compatible
query II rowsort label-376
SELECT + 2 - + 31 * + + ( - CAST ( NULL AS REAL ) ) + COALESCE ( + COALESCE ( - - ( - 48 ), - - 30 * + 10 + + 45 ), - - 25 ) + + - 93 * - 99, 0 * + 78 AS col0
----
NULL
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-377
SELECT ALL - - COUNT( * ) * - - 63 * NULLIF ( ( - 56 ), + 26 + 57 ) DIV 35
----
-100

skipif mysql # not compatible
query I rowsort label-377
SELECT ALL - - COUNT ( * ) * - - 63 * NULLIF ( ( - 56 ), + 26 + 57 ) / 35
----
-100

onlyif mysql # aggregate syntax: 
query II rowsort label-378
SELECT + 44 - ( COUNT( * ) ) AS col0, 48
----
43
48

skipif mysql # not compatible
query II rowsort label-378
SELECT + 44 - ( COUNT ( * ) ) AS col0, 48
----
43
48

query II rowsort
SELECT - 50 * - - 83 * 34, + 60 * 82 * - + 6 * - NULLIF ( - - 10, - + 60 ) AS col1
----
-141100
295200

query I rowsort
SELECT ALL - 49 * - 40 AS col2
----
1960

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

onlyif mysql # aggregate syntax: 
query II rowsort label-382
SELECT COUNT( * ), 76 col0
----
1
76

skipif mysql # not compatible
query II rowsort label-382
SELECT COUNT ( * ), 76 col0
----
1
76

query I rowsort
SELECT ALL 2 * - COALESCE ( - + 97, - - 17, + - 21 * - - 64 )
----
194

query I rowsort
SELECT DISTINCT 61 - 76
----
-15

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-385
SELECT ALL CAST( NULL AS SIGNED ), + 11 - 73 AS col2
----
NULL
-62

skipif mysql # not compatible
query II rowsort label-385
SELECT ALL CAST ( NULL AS INTEGER ), + 11 - 73 AS col2
----
NULL
-62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-386
SELECT ALL CAST( - MAX( 79 ) AS SIGNED ) AS col1
----
-79

skipif mysql # not compatible
query I rowsort label-386
SELECT ALL CAST ( - MAX ( 79 ) AS INTEGER ) AS col1
----
-79

query I rowsort
SELECT - 90 - - + 28 AS col0
----
-62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-388
SELECT DISTINCT COALESCE ( + CAST( + AVG ( DISTINCT - 20 ) AS SIGNED ), + 76, 63 ) AS col2
----
-20

skipif mysql # not compatible
query I rowsort label-388
SELECT DISTINCT COALESCE ( + CAST ( + AVG ( DISTINCT - 20 ) AS INTEGER ), + 76, 63 ) AS col2
----
-20

query I rowsort
SELECT - 66 - + 23 * ( + 76 ) * + ( + 73 )
----
-127670

onlyif mysql # DIV for integer division: 
query I rowsort label-390
SELECT + 78 DIV - 21 AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-390
SELECT + 78 / - 21 AS col2
----
-3

query I rowsort
SELECT - 84 * - 89
----
7476

query I rowsort
SELECT - 54 * - 25 col0
----
1350

query I rowsort
SELECT - 30 + + 91 + 13 + - + 85
----
-11

onlyif mysql # DIV for integer division: 
query II rowsort label-394
SELECT - NULLIF ( + 16, + 92 ) AS col1, - 51 DIV - 45
----
-16
1

skipif mysql # not compatible
query II rowsort label-394
SELECT - NULLIF ( + 16, + 92 ) AS col1, - 51 / - 45
----
-16
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-395
SELECT - 48 * + 4 * + + COUNT( * ) * - CASE - 87 WHEN - 62 THEN ( + CAST( NULL AS SIGNED ) ) + 86 WHEN + + 23 * - NULLIF ( - 23, - - COUNT( * ) ) * + + 34 - + COUNT( * ) THEN 80 ELSE + 61 END
----
11712

skipif mysql # not compatible
query I rowsort label-395
SELECT - 48 * + 4 * + + COUNT ( * ) * - CASE - 87 WHEN - 62 THEN ( + CAST ( NULL AS INTEGER ) ) + 86 WHEN + + 23 * - NULLIF ( - 23, - - COUNT ( * ) ) * + + 34 - + COUNT ( * ) THEN 80 ELSE + 61 END
----
11712

onlyif mysql # aggregate syntax: 
query I rowsort label-396
SELECT + 54 + - ( - - MAX( 30 ) )
----
24

skipif mysql # not compatible
query I rowsort label-396
SELECT + 54 + - ( - - MAX ( 30 ) )
----
24

query I rowsort
SELECT ALL + 24 * - - ( + + 36 )
----
864

query I rowsort
SELECT ALL + 15 + - - 69 - - + 89 * - + 98 * 11 AS col0
----
-95858

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

query I rowsort
SELECT DISTINCT + + ( 43 ) + + - 11 AS col1
----
32

query I rowsort
SELECT ALL + CASE + 67 WHEN + 69 THEN 4 ELSE - 33 * + + 32 - + - 40 * + 48 END + + 21 AS col1
----
885

query I rowsort
SELECT 94 * - ( - + 0 ) AS col2
----
0

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-404
SELECT ALL - 11 + + CASE - COUNT( * ) WHEN COALESCE ( - 7, 39, + CAST( NULL AS SIGNED ) ) / - 35 * + 19 * - 88 * - + 26 - - COUNT( * ) THEN NULL WHEN - 86 THEN NULL ELSE - 41 END col0
----
-52

skipif mysql # not compatible
query I rowsort label-404
SELECT ALL - 11 + + CASE - COUNT ( * ) WHEN COALESCE ( - 7, 39, + CAST ( NULL AS INTEGER ) ) / - 35 * + 19 * - 88 * - + 26 - - COUNT ( * ) THEN NULL WHEN - 86 THEN NULL ELSE - 41 END col0
----
-52

query I rowsort
SELECT 73 - + 16
----
57

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-407
SELECT + 51 * MAX( DISTINCT + - 5 ) - ( COUNT( * ) ) AS col2
----
-256

skipif mysql # not compatible
query I rowsort label-407
SELECT + 51 * MAX ( DISTINCT + - 5 ) - ( COUNT ( * ) ) AS col2
----
-256

onlyif mysql # aggregate syntax: 
query I rowsort label-408
SELECT + 25 * + 54 + 38 + COUNT( * )
----
1389

skipif mysql # not compatible
query I rowsort label-408
SELECT + 25 * + 54 + 38 + COUNT ( * )
----
1389

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-409
SELECT ALL - CAST( + MIN( ALL - 69 ) AS SIGNED ) * - 0 * 3 + - - ( - + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-409
SELECT ALL - CAST ( + MIN ( ALL - 69 ) AS INTEGER ) * - 0 * 3 + - - ( - + CAST ( NULL AS INTEGER ) )
----
NULL

query II rowsort
SELECT DISTINCT - 94 AS col2, + 78 AS col1
----
-94
78

query I rowsort
SELECT + + 68 col1
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-412
SELECT ALL 17 * + + ( - 91 ) * MAX( DISTINCT + 96 ) - - 61
----
-148451

skipif mysql # not compatible
query I rowsort label-412
SELECT ALL 17 * + + ( - 91 ) * MAX ( DISTINCT + 96 ) - - 61
----
-148451

query I rowsort
SELECT 91 + + - COALESCE ( + 68, 3 ) AS col0
----
23

query I rowsort
SELECT ALL - 90 * - 86
----
7740

query I rowsort
SELECT 95 * 90 AS col1
----
8550

query I rowsort
SELECT DISTINCT 61 - + 44 col2
----
17

onlyif mysql # aggregate syntax: 
query II rowsort label-417
SELECT ALL 11 AS col2, - COUNT( ALL 92 ) col0
----
11
-1

skipif mysql # not compatible
query II rowsort label-417
SELECT ALL 11 AS col2, - COUNT ( ALL 92 ) col0
----
11
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-418
SELECT 14 + + 92 DIV 57 * - COUNT( * )
----
13

skipif mysql # not compatible
query I rowsort label-418
SELECT 14 + + 92 / 57 * - COUNT ( * )
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-419
SELECT ALL - 18 * + COUNT( * ) * - - 0 * 71 * - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-419
SELECT ALL - 18 * + COUNT ( * ) * - - 0 * 71 * - COUNT ( * )
----
0

query II rowsort
SELECT DISTINCT 16 AS col1, 18 AS col0
----
16
18

query I rowsort
SELECT ALL 49 * - 36
----
-1764

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-422
SELECT - 22, 63 DIV + + SUM( + + 90 ) AS col1
----
-22
0

skipif mysql # not compatible
query II rowsort label-422
SELECT - 22, 63 / + + SUM ( + + 90 ) AS col1
----
-22
0

query II rowsort
SELECT DISTINCT 84 * + 41 AS col0, 47
----
3444
47

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

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

query I rowsort
SELECT 23 * 11 * 94 col1
----
23782

query I rowsort
SELECT ALL 13 * 61 AS col2
----
793

query II rowsort
SELECT 2 AS col2, 69
----
2
69

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-428
SELECT ALL - 65 + - + COUNT( * ) DIV - COUNT( ALL + - 23 ) AS col2
----
-64

skipif mysql # not compatible
query I rowsort label-428
SELECT ALL - 65 + - + COUNT ( * ) / - COUNT ( ALL + - 23 ) AS col2
----
-64

onlyif mysql # DIV for integer division: 
query I rowsort label-429
SELECT ALL - 56 DIV 56
----
-1

skipif mysql # not compatible
query I rowsort label-429
SELECT ALL - 56 / 56
----
-1

query I rowsort
SELECT 55 + + 68 AS col0
----
123

query I rowsort
SELECT DISTINCT - 84 + + + 69 + ( - ( - 34 ) ) + + 20
----
39

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

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

query I rowsort
SELECT 88 * - 71 AS col0
----
-6248

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-434
SELECT - NULLIF ( - CAST( - 90 AS SIGNED ), - - 0 / + 18 )
----
-90

skipif mysql # not compatible
query I rowsort label-434
SELECT - NULLIF ( - CAST ( - 90 AS INTEGER ), - - 0 / + 18 )
----
-90

onlyif mysql # DIV for integer division: 
query I rowsort label-435
SELECT - 37 DIV - 86 - - 26 col2
----
26

skipif mysql # not compatible
query I rowsort label-435
SELECT - 37 / - 86 - - 26 col2
----
26

query I rowsort
SELECT + COALESCE ( + 95, - 41 * - - 20 * + 33 + - 62 + - 50 ) AS col0
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-437
SELECT 21 * 26 + - SUM( DISTINCT - 70 ) + - ( + ( 55 ) ) col2
----
561

skipif mysql # not compatible
query I rowsort label-437
SELECT 21 * 26 + - SUM ( DISTINCT - 70 ) + - ( + ( 55 ) ) col2
----
561

onlyif mysql # aggregate syntax: 
query I rowsort label-438
SELECT ALL - 62 + COUNT( ALL - + 51 )
----
-61

skipif mysql # not compatible
query I rowsort label-438
SELECT ALL - 62 + COUNT ( ALL - + 51 )
----
-61

onlyif mysql # aggregate syntax: 
query II rowsort label-439
SELECT ALL - - 65 AS col2, + 46 * - 70 + - COUNT( * ) + + 92 * + 86 * + 29 * - SUM( - 2 ) - 24 * - 52 * + 51 + - 34
----
65
519289

skipif mysql # not compatible
query II rowsort label-439
SELECT ALL - - 65 AS col2, + 46 * - 70 + - COUNT ( * ) + + 92 * + 86 * + 29 * - SUM ( - 2 ) - 24 * - 52 * + 51 + - 34
----
65
519289

query I rowsort
SELECT 88 + 21 col2
----
109

onlyif mysql # aggregate syntax: 
query I rowsort label-441
SELECT DISTINCT - + MAX( - + 83 ) * + + ( - 35 )
----
-2905

skipif mysql # not compatible
query I rowsort label-441
SELECT DISTINCT - + MAX ( - + 83 ) * + + ( - 35 )
----
-2905

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

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

query I rowsort
SELECT - NULLIF ( ( + 9 ), - - 55 ) AS col0
----
-9

query I rowsort
SELECT 57 + - 17 col0
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-445
SELECT + SUM( ALL 41 ) * 71 AS col0
----
2911

skipif mysql # not compatible
query I rowsort label-445
SELECT + SUM ( ALL 41 ) * 71 AS col0
----
2911

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-448
SELECT DISTINCT 46 DIV 13 * - ( + COUNT( * ) )
----
-3

skipif mysql # not compatible
query I rowsort label-448
SELECT DISTINCT 46 / 13 * - ( + COUNT ( * ) )
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-449
SELECT ALL - - SUM( + 51 ) AS col2, ( - 39 )
----
51
-39

skipif mysql # not compatible
query II rowsort label-449
SELECT ALL - - SUM ( + 51 ) AS col2, ( - 39 )
----
51
-39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-450
SELECT ALL COALESCE ( + 74, - + 83 * - COUNT( * ) * - + 50 ) * + COUNT( * ) DIV + COUNT( * ) + - 61
----
13

skipif mysql # not compatible
query I rowsort label-450
SELECT ALL COALESCE ( + 74, - + 83 * - COUNT ( * ) * - + 50 ) * + COUNT ( * ) / + COUNT ( * ) + - 61
----
13

query I rowsort
SELECT DISTINCT + 14 * - + 52 col0
----
-728

onlyif mysql # aggregate syntax: 
query I rowsort label-452
SELECT 98 * - COALESCE ( COUNT( * ), - 9 ) AS col2
----
-98

skipif mysql # not compatible
query I rowsort label-452
SELECT 98 * - COALESCE ( COUNT ( * ), - 9 ) AS col2
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-453
SELECT ALL COALESCE ( - - 33, + 24, - - ( + 36 ) ) * - + 3 * - - 97 * MIN( - - 3 ) col2
----
-28809

skipif mysql # not compatible
query I rowsort label-453
SELECT ALL COALESCE ( - - 33, + 24, - - ( + 36 ) ) * - + 3 * - - 97 * MIN ( - - 3 ) col2
----
-28809

onlyif mysql # aggregate syntax: 
query I rowsort label-454
SELECT 4 - - + MAX( + 97 )
----
101

skipif mysql # not compatible
query I rowsort label-454
SELECT 4 - - + MAX ( + 97 )
----
101

query I rowsort
SELECT 14 - + + 8
----
6

query II rowsort
SELECT 20 * 13 AS col0, 83
----
260
83

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

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

query II rowsort
SELECT 33 * + + ( + 13 ), 25 * - 21 AS col1
----
429
-525

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-459
SELECT ALL 95 + + - CASE - - ( - MIN( DISTINCT + 26 ) ) WHEN - + 39 * + + 26 * - + 80 THEN NULL WHEN + - 47 * 33 * - 61 * - 27 THEN + + COUNT( * ) * + 14 * - - COUNT( * ) ELSE - 88 END - + 23 * + 5 / + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-459
SELECT ALL 95 + + - CASE - - ( - MIN ( DISTINCT + 26 ) ) WHEN - + 39 * + + 26 * - + 80 THEN NULL WHEN + - 47 * 33 * - 61 * - 27 THEN + + COUNT ( * ) * + 14 * - - COUNT ( * ) ELSE - 88 END - + 23 * + 5 / + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-460
SELECT DISTINCT CAST( NULL AS SIGNED ) + + MIN( DISTINCT + - 76 ) + 52 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-460
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + MIN ( DISTINCT + - 76 ) + 52 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-461
SELECT ALL COUNT( ALL + + 14 ) + CASE + COUNT( * ) WHEN 25 THEN NULL ELSE - - COUNT( * ) END DIV 36 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-461
SELECT ALL COUNT ( ALL + + 14 ) + CASE + COUNT ( * ) WHEN 25 THEN NULL ELSE - - COUNT ( * ) END / 36 AS col0
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-462
SELECT + ( + MIN( - 55 ) ) + + 73 DIV 75 * 14 * + + 5
----
-55

skipif mysql # not compatible
query I rowsort label-462
SELECT + ( + MIN ( - 55 ) ) + + 73 / 75 * 14 * + + 5
----
-55

query I rowsort
SELECT ALL 35 + - + NULLIF ( - 63, + 45 + 8 ) AS col1
----
98

query I rowsort
SELECT DISTINCT 94 * - + 9 * - 33 AS col0
----
27918

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-466
SELECT + - 72 + - - 45 + + - COUNT( ALL + - 73 ) * + - 10 + - 47 * - 8 + + COALESCE ( - + 89, - 25 ) AS col2, COUNT( * ) * 63 + - 58 + - 84
----
270
-79

skipif mysql # not compatible
query II rowsort label-466
SELECT + - 72 + - - 45 + + - COUNT ( ALL + - 73 ) * + - 10 + - 47 * - 8 + + COALESCE ( - + 89, - 25 ) AS col2, COUNT ( * ) * 63 + - 58 + - 84
----
270
-79

query I rowsort
SELECT - - 66 * + 73
----
4818

onlyif mysql # aggregate syntax: 
query I rowsort label-468
SELECT ALL CASE - COUNT( * ) WHEN - - 32 THEN + 25 ELSE NULL END * - 10 + + 14 - - MAX( + 76 ) * - ( - NULLIF ( + 98, - 81 + 78 ) ) * + 80 * + 58
----
NULL

skipif mysql # not compatible
query I rowsort label-468
SELECT ALL CASE - COUNT ( * ) WHEN - - 32 THEN + 25 ELSE NULL END * - 10 + + 14 - - MAX ( + 76 ) * - ( - NULLIF ( + 98, - 81 + 78 ) ) * + 80 * + 58
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-469
SELECT DISTINCT - COALESCE ( - 82, - - 96 DIV + ( 68 ) + 83, - 63 )
----
82

skipif mysql # not compatible
query I rowsort label-469
SELECT DISTINCT - COALESCE ( - 82, - - 96 / + ( 68 ) + 83, - 63 )
----
82

query I rowsort
SELECT DISTINCT 92 + + ( + ( 70 ) ) AS col2
----
162

query I rowsort
SELECT DISTINCT - 33 * - 69 + + 97 col1
----
2374

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

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

query I rowsort
SELECT + COALESCE ( - + 89, - + 33 )
----
-89

query I rowsort
SELECT - 93 + - ( - + COALESCE ( - + 71, 3 ) ) AS col2
----
-164

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

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

query I rowsort
SELECT - - 40 * + 38 + 56
----
1576

onlyif mysql # DIV for integer division: 
query I rowsort label-477
SELECT + 80 * + COALESCE ( + 81, - 80 ) + + ( 73 ) + - 63 - - 40 + 40 + 22 DIV 48
----
6570

skipif mysql # not compatible
query I rowsort label-477
SELECT + 80 * + COALESCE ( + 81, - 80 ) + + ( 73 ) + - 63 - - 40 + 40 + 22 / 48
----
6570

onlyif mysql # DIV for integer division: 
query I rowsort label-478
SELECT - - 90 DIV + 50 + - 70 AS col1
----
-69

skipif mysql # not compatible
query I rowsort label-478
SELECT - - 90 / + 50 + - 70 AS col1
----
-69

query I rowsort
SELECT - 82 + + 97 AS col1
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-480
SELECT ALL + 68 * - - NULLIF ( + + ( + 37 ), 42 * - 39 - COUNT( * ) ) * - 65
----
-163540

skipif mysql # not compatible
query I rowsort label-480
SELECT ALL + 68 * - - NULLIF ( + + ( + 37 ), 42 * - 39 - COUNT ( * ) ) * - 65
----
-163540

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-481
SELECT DISTINCT + 57 DIV - MAX( ALL + 63 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-481
SELECT DISTINCT + 57 / - MAX ( ALL + 63 ) AS col1
----
0

query I rowsort
SELECT - 67 + 94 * - + 92 * - + 96
----
830141

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-483
SELECT ALL + COALESCE ( - 85, 20 * 81 * + + NULLIF ( + COUNT( + + 72 ), 88 ) + + 26, - ( ( 25 ) ) DIV - SUM( - - 49 ) ) * - ( + 94 ) AS col1, 18 AS col1
----
7990
18

skipif mysql # not compatible
query II rowsort label-483
SELECT ALL + COALESCE ( - 85, 20 * 81 * + + NULLIF ( + COUNT ( + + 72 ), 88 ) + + 26, - ( ( 25 ) ) / - SUM ( - - 49 ) ) * - ( + 94 ) AS col1, 18 AS col1
----
7990
18

query I rowsort
SELECT - 43 + - 57 AS col2
----
-100

onlyif mysql # aggregate syntax: 
query I rowsort label-485
SELECT 28 * + 28 + + 92 + + 74 * COUNT( * ) AS col0
----
950

skipif mysql # not compatible
query I rowsort label-485
SELECT 28 * + 28 + + 92 + + 74 * COUNT ( * ) AS col0
----
950

onlyif mysql # aggregate syntax: 
query I rowsort label-486
SELECT NULLIF ( + MAX( DISTINCT 44 ), - + CASE + ( 25 ) WHEN - 82 * + - 27 + + 79 THEN + 53 END )
----
44

skipif mysql # not compatible
query I rowsort label-486
SELECT NULLIF ( + MAX ( DISTINCT 44 ), - + CASE + ( 25 ) WHEN - 82 * + - 27 + + 79 THEN + 53 END )
----
44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query III rowsort label-487
SELECT ALL - 21 * CAST( NULL AS SIGNED ) + - + 58 AS col2, ( - + 16 ) DIV - COUNT( * ) col0, 93 + COUNT( * ) - + 35 * + + 10 + - COUNT( * ) - - - CASE - - ( + 73 ) WHEN CASE - 76 WHEN - + 69 DIV - + NULLIF ( + COUNT( * ), - + 78 ) + - 98 THEN NULL WHEN - 67 THEN NULL ELSE - CASE + 42 WHEN - 25 THEN NULL WHEN + NULLIF ( 78, 39 + 4 * MAX( 22 ) ) + COUNT( * ) THEN - 35 END END * NULLIF ( COUNT( * ), + COUNT( * ) ) + - 61 THEN NULL ELSE 88 * + 89 + 21 END * 31
----
NULL
16
-243700

skipif mysql # not compatible
query III rowsort label-487
SELECT ALL - 21 * CAST ( NULL AS INTEGER ) + - + 58 AS col2, ( - + 16 ) / - COUNT ( * ) col0, 93 + COUNT ( * ) - + 35 * + + 10 + - COUNT ( * ) - - - CASE - - ( + 73 ) WHEN CASE - 76 WHEN - + 69 / - + NULLIF ( + COUNT ( * ), - + 78 ) + - 98 THEN NULL WHEN - 67 THEN NULL ELSE - CASE + 42 WHEN - 25 THEN NULL WHEN + NULLIF ( 78, 39 + 4 * MAX ( 22 ) ) + COUNT ( * ) THEN - 35 END END * NULLIF ( COUNT ( * ), + COUNT ( * ) ) + - 61 THEN NULL ELSE 88 * + 89 + 21 END * 31
----
NULL
16
-243700

query I rowsort
SELECT - 16 * - 12 - - 79 AS col1
----
271

onlyif mysql # aggregate syntax: 
query I rowsort label-489
SELECT ALL - SUM( + 76 ) * + 82 * + + NULLIF ( - 5, + MAX( DISTINCT + 51 ) ) - + - 3 + 53 AS col0
----
31216

skipif mysql # not compatible
query I rowsort label-489
SELECT ALL - SUM ( + 76 ) * + 82 * + + NULLIF ( - 5, + MAX ( DISTINCT + 51 ) ) - + - 3 + 53 AS col0
----
31216

query I rowsort
SELECT DISTINCT COALESCE ( + COALESCE ( 61, 99 + 82 * + 81 ), - 77 + 22 + 16 )
----
61

query I rowsort
SELECT ALL ( 24 ) * 30 + - - 33
----
753

onlyif mysql # aggregate syntax: 
query II rowsort label-492
SELECT COUNT( * ) AS col0, COALESCE ( - + 28, + 29 + - - MIN( - - 81 ), - + COUNT( * ) + + 27 ) * - 26 * - 93 + + - 88 + - 65 * - 57 * ( - + COUNT( * ) ) AS col0
----
1
-71497

skipif mysql # not compatible
query II rowsort label-492
SELECT COUNT ( * ) AS col0, COALESCE ( - + 28, + 29 + - - MIN ( - - 81 ), - + COUNT ( * ) + + 27 ) * - 26 * - 93 + + - 88 + - 65 * - 57 * ( - + COUNT ( * ) ) AS col0
----
1
-71497

query I rowsort
SELECT ALL 13 * + 9
----
117

onlyif mysql # aggregate syntax: 
query I rowsort label-494
SELECT MIN( + 71 ) * 82 * 0 * 21 + - MAX( ALL - - NULLIF ( + - 11, - 34 ) )
----
11

skipif mysql # not compatible
query I rowsort label-494
SELECT MIN ( + 71 ) * 82 * 0 * 21 + - MAX ( ALL - - NULLIF ( + - 11, - 34 ) )
----
11

query II rowsort
SELECT ALL 32, 19 col1
----
32
19

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-497
SELECT DISTINCT CAST( NULL AS SIGNED ), + 70 * COUNT( * ) - + - 88 * 56 AS col2
----
NULL
4998

skipif mysql # not compatible
query II rowsort label-497
SELECT DISTINCT CAST ( NULL AS INTEGER ), + 70 * COUNT ( * ) - + - 88 * 56 AS col2
----
NULL
4998

onlyif mysql # aggregate syntax: 
query II rowsort label-498
SELECT ALL 53 * - 78 * - + COUNT( * ), ( NULLIF ( - 65, - 49 * + + 11 ) ) AS col1
----
4134
-65

skipif mysql # not compatible
query II rowsort label-498
SELECT ALL 53 * - 78 * - + COUNT ( * ), ( NULLIF ( - 65, - 49 * + + 11 ) ) AS col1
----
4134
-65

query I rowsort
SELECT - 59 + + 78
----
19

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

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

query I rowsort
SELECT DISTINCT - ( + ( + + NULLIF ( - - 34, - - 54 ) ) ) - + - 59
----
25

onlyif mysql # DIV for integer division: 
query I rowsort label-502
SELECT DISTINCT - + 99 * 3 - + + 35 + - - 3 DIV + 73
----
-332

skipif mysql # not compatible
query I rowsort label-502
SELECT DISTINCT - + 99 * 3 - + + 35 + - - 3 / + 73
----
-332

query I rowsort
SELECT ALL 94 - - 92
----
186

onlyif mysql # DIV for integer division: 
query II rowsort label-504
SELECT + - ( + 49 ) DIV - 28 AS col1, - 73
----
1
-73

skipif mysql # not compatible
query II rowsort label-504
SELECT + - ( + 49 ) / - 28 AS col1, - 73
----
1
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-505
SELECT + + 18 + ( - COUNT( * ) )
----
17

skipif mysql # not compatible
query I rowsort label-505
SELECT + + 18 + ( - COUNT ( * ) )
----
17

query II rowsort
SELECT DISTINCT NULLIF ( 17, + - 8 ) - - + 13 AS col2, 99 AS col2
----
30
99

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-507
SELECT ALL - CAST( NULL AS SIGNED ) AS col2, 13
----
NULL
13

skipif mysql # not compatible
query II rowsort label-507
SELECT ALL - CAST ( NULL AS INTEGER ) AS col2, 13
----
NULL
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-508
SELECT + - ( - 88 ) + - CAST( - MAX( - 93 ) AS SIGNED ) * + - 31 + - - COUNT( * ) AS col2
----
2972

skipif mysql # not compatible
query I rowsort label-508
SELECT + - ( - 88 ) + - CAST ( - MAX ( - 93 ) AS INTEGER ) * + - 31 + - - COUNT ( * ) AS col2
----
2972

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-509
SELECT - 24 col2, CAST( + - MIN( - CAST( NULL AS DECIMAL ) ) AS SIGNED ) + COUNT( * ) + - 31 * - - 29
----
-24
NULL

skipif mysql # not compatible
query II rowsort label-509
SELECT - 24 col2, CAST ( + - MIN ( - CAST ( NULL AS REAL ) ) AS INTEGER ) + COUNT ( * ) + - 31 * - - 29
----
-24
NULL

query I rowsort
SELECT ALL - 80 - - 58
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-511
SELECT + 0 + + 98 + - 94 * ( + 10 ) * + COUNT( * ) * 3 * + 20 + 79 AS col0
----
-56223

skipif mysql # not compatible
query I rowsort label-511
SELECT + 0 + + 98 + - 94 * ( + 10 ) * + COUNT ( * ) * 3 * + 20 + 79 AS col0
----
-56223

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-512
SELECT + + 99 * + CAST( NULL AS SIGNED ) * - 22 AS col2, + 24 AS col2
----
NULL
24

skipif mysql # not compatible
query II rowsort label-512
SELECT + + 99 * + CAST ( NULL AS INTEGER ) * - 22 AS col2, + 24 AS col2
----
NULL
24

onlyif mysql # aggregate syntax: 
query II rowsort label-513
SELECT ALL 83 * + 65 + + 57, ( + - 76 ) + 55 * SUM( + + 32 ) col2
----
5452
1684

skipif mysql # not compatible
query II rowsort label-513
SELECT ALL 83 * + 65 + + 57, ( + - 76 ) + 55 * SUM ( + + 32 ) col2
----
5452
1684

query II rowsort
SELECT + 81 AS col1, - 63
----
81
-63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-515
SELECT + 80 * 31 - - 56 + COUNT( * ) + + - CAST( + 45 AS SIGNED ) col0, 68 + + - CASE - + SUM( ALL - 58 ) WHEN - - 87 * - COUNT( * ) THEN NULL ELSE + 44 END col0
----
2492
24

skipif mysql # not compatible
query II rowsort label-515
SELECT + 80 * 31 - - 56 + COUNT ( * ) + + - CAST ( + 45 AS INTEGER ) col0, 68 + + - CASE - + SUM ( ALL - 58 ) WHEN - - 87 * - COUNT ( * ) THEN NULL ELSE + 44 END col0
----
2492
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-516
SELECT 50 col1, - CAST( NULL AS SIGNED ) + - + NULLIF ( + NULLIF ( - 9, COUNT( * ) ), - + NULLIF ( + + 50, 63 ) * - + 34 )
----
50
NULL

skipif mysql # not compatible
query II rowsort label-516
SELECT 50 col1, - CAST ( NULL AS INTEGER ) + - + NULLIF ( + NULLIF ( - 9, COUNT ( * ) ), - + NULLIF ( + + 50, 63 ) * - + 34 )
----
50
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-517
SELECT ALL + 76, + NULLIF ( + - 0, - COUNT( * ) + ( 80 ) - + ( + 97 ) + 45 * - + 53 + + 83 * 10 * - - 81 ) col0
----
76
0

skipif mysql # not compatible
query II rowsort label-517
SELECT ALL + 76, + NULLIF ( + - 0, - COUNT ( * ) + ( 80 ) - + ( + 97 ) + 45 * - + 53 + + 83 * 10 * - - 81 ) col0
----
76
0

query I rowsort
SELECT + + 73 * + - 50
----
-3650

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-520
SELECT CAST( - 61 AS SIGNED ) AS col0, - 98 AS col0
----
-61
-98

skipif mysql # not compatible
query II rowsort label-520
SELECT CAST ( - 61 AS INTEGER ) AS col0, - 98 AS col0
----
-61
-98

query I rowsort
SELECT ( NULLIF ( 16, ( 27 ) ) ) AS col0
----
16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-522
SELECT ALL - 77 / + 67 + + - 18 + - CAST( NULL AS SIGNED ) * ( + 35 ) + 42 + 22 * + CAST( + + 26 AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-522
SELECT ALL - 77 / + 67 + + - 18 + - CAST ( NULL AS INTEGER ) * ( + 35 ) + 42 + 22 * + CAST ( + + 26 AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-523
SELECT + 32 * - 14 * ( 8 ) DIV COUNT( * ) * + 11 * - + 98
----
3863552

skipif mysql # not compatible
query I rowsort label-523
SELECT + 32 * - 14 * ( 8 ) / COUNT ( * ) * + 11 * - + 98
----
3863552

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-525
SELECT + 8 * - + 89 AS col1, + ( + + 25 ) * 36 + + COUNT( * ) AS col0
----
-712
901

skipif mysql # not compatible
query II rowsort label-525
SELECT + 8 * - + 89 AS col1, + ( + + 25 ) * 36 + + COUNT ( * ) AS col0
----
-712
901

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-526
SELECT ALL - ( - 23 ) * + COUNT( * ) - - 49 DIV - - COUNT( * ) + - + 77 * - 12 * - ( 75 )
----
-69228

skipif mysql # not compatible
query I rowsort label-526
SELECT ALL - ( - 23 ) * + COUNT ( * ) - - 49 / - - COUNT ( * ) + - + 77 * - 12 * - ( 75 )
----
-69228

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

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

query I rowsort
SELECT 49 * - + 56
----
-2744

query I rowsort
SELECT ALL + ( + + 56 ) * + 78 - - + 0 AS col1
----
4368

query I rowsort
SELECT 23 + - 5
----
18

query I rowsort
SELECT DISTINCT + 79 * + - 77 AS col0
----
-6083

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-532
SELECT 39 - + ( COUNT( * ) ) - 15 + - 5 + + 12 * + 94 + + + ( COUNT( * ) ) DIV + CAST( 1 AS SIGNED ) + + 75
----
1222

skipif mysql # not compatible
query I rowsort label-532
SELECT 39 - + ( COUNT ( * ) ) - 15 + - 5 + + 12 * + 94 + + + ( COUNT ( * ) ) / + CAST ( 1 AS INTEGER ) + + 75
----
1222

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-533
SELECT 48 + COALESCE ( - COUNT( * ), - 80 * + + 46 - + + 62 * 89 + - + COUNT( 7 ) - - CAST( NULL AS SIGNED ) * - - 86 - 91 * + 72 )
----
47

skipif mysql # not compatible
query I rowsort label-533
SELECT 48 + COALESCE ( - COUNT ( * ), - 80 * + + 46 - + + 62 * 89 + - + COUNT ( 7 ) - - CAST ( NULL AS INTEGER ) * - - 86 - 91 * + 72 )
----
47

query II rowsort
SELECT ALL + 34 - + 77, 74 col2
----
-43
74

query I rowsort
SELECT 64 * 67 AS col2
----
4288

query I rowsort
SELECT ALL - ( + 57 ) * + + 27 AS col2
----
-1539

query I rowsort
SELECT - COALESCE ( - 15, - 52 ) * + + 12 AS col2
----
180

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-539
SELECT CAST( 35 AS SIGNED ) - - 75
----
110

skipif mysql # not compatible
query I rowsort label-539
SELECT CAST ( 35 AS INTEGER ) - - 75
----
110

onlyif mysql # DIV for integer division: 
query I rowsort label-540
SELECT DISTINCT - 51 * + + 92 - - 15 DIV + + ( + 16 ) AS col2
----
-4692

skipif mysql # not compatible
query I rowsort label-540
SELECT DISTINCT - 51 * + + 92 - - 15 / + + ( + 16 ) AS col2
----
-4692

query I rowsort
SELECT - NULLIF ( + - 55, 10 * - 22 ) + - + 66 AS col0
----
-11

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

skipif mysql # not compatible
query I rowsort label-542
SELECT 32 / - + 61
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-543
SELECT ( 50 ) DIV 80 * + 20
----
0

skipif mysql # not compatible
query I rowsort label-543
SELECT ( 50 ) / 80 * + 20
----
0

query I rowsort
SELECT DISTINCT + 99 * - 45 AS col1
----
-4455

onlyif mysql # aggregate syntax: 
query I rowsort label-545
SELECT CASE + 11 WHEN - 92 THEN - COUNT( * ) ELSE 49 END AS col1
----
49

skipif mysql # not compatible
query I rowsort label-545
SELECT CASE + 11 WHEN - 92 THEN - COUNT ( * ) ELSE 49 END AS col1
----
49

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-547
SELECT ALL - + CASE + 92 WHEN 95 THEN - 13 - 55 WHEN - 65 * 51 * 73 * + - 73 THEN NULL WHEN + + MIN( + 11 ) THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-547
SELECT ALL - + CASE + 92 WHEN 95 THEN - 13 - 55 WHEN - 65 * 51 * 73 * + - 73 THEN NULL WHEN + + MIN ( + 11 ) THEN NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-548
SELECT 85 * 19 + COUNT( * ) AS col0
----
1616

skipif mysql # not compatible
query I rowsort label-548
SELECT 85 * 19 + COUNT ( * ) AS col0
----
1616

query I rowsort
SELECT 81 * + CASE + + 41 WHEN + + 37 THEN - 1 END * 85
----
NULL

query I rowsort
SELECT ALL 84 + + - 21 + ( + - NULLIF ( - - 9, 91 ) )
----
54

onlyif mysql # DIV for integer division: 
query I rowsort label-551
SELECT - + 29 DIV - 43 + + 76 col0
----
76

skipif mysql # not compatible
query I rowsort label-551
SELECT - + 29 / - 43 + + 76 col0
----
76

query I rowsort
SELECT - 25 * + 34 + + - 48 - 52 * + 71 * - 49 * - 35 * 51 + - 12 AS col2
----
-322921690

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-554
SELECT ALL 20 + - ( + 21 ) * - - CAST( + - ( - 57 ) AS SIGNED )
----
-1177

skipif mysql # not compatible
query I rowsort label-554
SELECT ALL 20 + - ( + 21 ) * - - CAST ( + - ( - 57 ) AS INTEGER )
----
-1177

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-555
SELECT ALL MAX( DISTINCT + + 95 ) + + 33 + + + 74 + - COUNT( ALL - CAST( NULL AS DECIMAL ) ) DIV - 37
----
202

skipif mysql # not compatible
query I rowsort label-555
SELECT ALL MAX ( DISTINCT + + 95 ) + + 33 + + + 74 + - COUNT ( ALL - CAST ( NULL AS REAL ) ) / - 37
----
202

query I rowsort
SELECT DISTINCT 49 + - + 95 * + ( + 30 ) AS col1
----
-2801

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-557
SELECT COUNT( * ) * - 40 + + 44 DIV + - 16
----
-42

skipif mysql # not compatible
query I rowsort label-557
SELECT COUNT ( * ) * - 40 + + 44 / + - 16
----
-42

query I rowsort
SELECT ALL 84 + - 77 AS col1
----
7

query I rowsort
SELECT 68 + - 10 AS col1
----
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-560
SELECT 2 * + 70 + COUNT( + 0 ) * COUNT( * ) DIV + 81
----
140

skipif mysql # not compatible
query I rowsort label-560
SELECT 2 * + 70 + COUNT ( + 0 ) * COUNT ( * ) / + 81
----
140

query I rowsort
SELECT 74 * - 2
----
-148

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-562
SELECT ( NULLIF ( - + COUNT( * ), + 64 * - + 79 * + - 66 + 6 + - 67 ) ) + + CAST( - + CAST( 61 AS SIGNED ) AS SIGNED )
----
-62

skipif mysql # not compatible
query I rowsort label-562
SELECT ( NULLIF ( - + COUNT ( * ), + 64 * - + 79 * + - 66 + 6 + - 67 ) ) + + CAST ( - + CAST ( 61 AS INTEGER ) AS INTEGER )
----
-62

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-563
SELECT + 69 * COUNT( * ) * + 96 - COUNT( * ) * - + 25 DIV 10 * - - COUNT( * )
----
6626

skipif mysql # not compatible
query I rowsort label-563
SELECT + 69 * COUNT ( * ) * + 96 - COUNT ( * ) * - + 25 / 10 * - - COUNT ( * )
----
6626

query I rowsort
SELECT ALL - NULLIF ( 10, - 76 - 12 )
----
-10

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

skipif mysql # not compatible
query I rowsort label-565
SELECT + MIN ( 35 )
----
35

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-567
SELECT - SUM( ALL CAST( NULL AS DECIMAL ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-567
SELECT - SUM ( ALL CAST ( NULL AS REAL ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-568
SELECT DISTINCT 35 DIV - MIN( DISTINCT + 12 ) * COUNT( + 66 ) col2
----
-2

skipif mysql # not compatible
query I rowsort label-568
SELECT DISTINCT 35 / - MIN ( DISTINCT + 12 ) * COUNT ( + 66 ) col2
----
-2

query I rowsort
SELECT + 90 * + 61 * + + 26 + - 39
----
142701

query II rowsort
SELECT + 8 AS col2, + 95 - + - 62 AS col2
----
8
157

query II rowsort
SELECT - - 8 AS col0, - COALESCE ( 40, - 60 + - 83 )
----
8
-40

query I rowsort
SELECT - 60 + + 48 - + 15 AS col1
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-573
SELECT ALL - + 69 * - CASE 73 WHEN + 30 * - COUNT( * ) + + - 24 + + 46 THEN + 62 WHEN + 81 THEN + COUNT( * ) ELSE NULL END * - + ( ( - + 80 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-573
SELECT ALL - + 69 * - CASE 73 WHEN + 30 * - COUNT ( * ) + + - 24 + + 46 THEN + 62 WHEN + 81 THEN + COUNT ( * ) ELSE NULL END * - + ( ( - + 80 ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-574
SELECT ALL 5 + COALESCE ( + - 76, + COUNT( * ) ) * + 81 AS col2
----
-6151

skipif mysql # not compatible
query I rowsort label-574
SELECT ALL 5 + COALESCE ( + - 76, + COUNT ( * ) ) * + 81 AS col2
----
-6151

query II rowsort
SELECT DISTINCT + 52 AS col0, 95 col0
----
52
95

onlyif mysql # aggregate syntax: 
query I rowsort label-576
SELECT DISTINCT MIN( 83 ) AS col2
----
83

skipif mysql # not compatible
query I rowsort label-576
SELECT DISTINCT MIN ( 83 ) AS col2
----
83

onlyif mysql # aggregate syntax: 
query II rowsort label-577
SELECT ALL - 6 + - NULLIF ( ( + 57 ), 27 ) * + 95 + - + 81 * + 64 AS col1, + MIN( + 33 ) + + 2
----
-10605
35

skipif mysql # not compatible
query II rowsort label-577
SELECT ALL - 6 + - NULLIF ( ( + 57 ), 27 ) * + 95 + - + 81 * + 64 AS col1, + MIN ( + 33 ) + + 2
----
-10605
35

query I rowsort
SELECT 57 + - 81
----
-24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-579
SELECT DISTINCT - - SUM( ALL + 7 ) + 75 + + 5 + + + 41 * - - ( - 15 ) - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-579
SELECT DISTINCT - - SUM ( ALL + 7 ) + 75 + + 5 + + + 41 * - - ( - 15 ) - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-580
SELECT ALL - ( + - 83 ) + - ( 82 ) + - - 44 AS col1, COUNT( * ) + - 77
----
45
-76

skipif mysql # not compatible
query II rowsort label-580
SELECT ALL - ( + - 83 ) + - ( 82 ) + - - 44 AS col1, COUNT ( * ) + - 77
----
45
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-581
SELECT - MIN( - - 15 )
----
-15

skipif mysql # not compatible
query I rowsort label-581
SELECT - MIN ( - - 15 )
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-582
SELECT 26 + - 41 + + COALESCE ( - 11, SUM( ALL ( + 20 ) ) + + 13 - - 81 ) + + 61
----
35

skipif mysql # not compatible
query I rowsort label-582
SELECT 26 + - 41 + + COALESCE ( - 11, SUM ( ALL ( + 20 ) ) + + 13 - - 81 ) + + 61
----
35

onlyif mysql # DIV for integer division: 
query I rowsort label-583
SELECT ALL - 61 * - - ( 45 ) + ( + - NULLIF ( 85, + 82 ) ) + + + 29 DIV + 92 + - + 67
----
-2897

skipif mysql # not compatible
query I rowsort label-583
SELECT ALL - 61 * - - ( 45 ) + ( + - NULLIF ( 85, + 82 ) ) + + + 29 / + 92 + - + 67
----
-2897

onlyif mysql # aggregate syntax: 
query I rowsort label-584
SELECT NULLIF ( + 5, - 82 + + 79 + - - CASE COUNT( * ) WHEN - 23 THEN + 48 END ) AS col1
----
5

skipif mysql # not compatible
query I rowsort label-584
SELECT NULLIF ( + 5, - 82 + + 79 + - - CASE COUNT ( * ) WHEN - 23 THEN + 48 END ) AS col1
----
5

query I rowsort
SELECT - 2 * - NULLIF ( + - ( 61 ), + 41 )
----
-122

onlyif mysql # DIV for integer division: 
query I rowsort label-586
SELECT ALL 73 DIV 66
----
1

skipif mysql # not compatible
query I rowsort label-586
SELECT ALL 73 / 66
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-587
SELECT + SUM( + - 74 ) DIV + 95 * + ( + - 80 ) + SUM( ALL - + 82 ) - + NULLIF ( + 52, + 86 ) AS col2
----
-134

skipif mysql # not compatible
query I rowsort label-587
SELECT + SUM ( + - 74 ) / + 95 * + ( + - 80 ) + SUM ( ALL - + 82 ) - + NULLIF ( + 52, + 86 ) AS col2
----
-134

query I rowsort
SELECT NULLIF ( - + 26, - - 13 )
----
-26

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-590
SELECT 34 DIV + - COUNT( * ) - + 5 + + - 20 * 23 + 47
----
-452

skipif mysql # not compatible
query I rowsort label-590
SELECT 34 / + - COUNT ( * ) - + 5 + + - 20 * 23 + 47
----
-452

query I rowsort
SELECT CASE 11 WHEN + 78 THEN NULL ELSE + 44 END
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-592
SELECT DISTINCT NULLIF ( + 79, - AVG ( 54 ) ) * + + NULLIF ( - 22, - 41 * + COUNT( * ) * - - AVG ( - + 45 ) ) * - 47 + + 21 - COALESCE ( - 32, - 28 * + COUNT( * ) ) * - - 71
----
83979

skipif mysql # not compatible
query I rowsort label-592
SELECT DISTINCT NULLIF ( + 79, - AVG ( 54 ) ) * + + NULLIF ( - 22, - 41 * + COUNT ( * ) * - - AVG ( - + 45 ) ) * - 47 + + 21 - COALESCE ( - 32, - 28 * + COUNT ( * ) ) * - - 71
----
83979

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

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

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

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

query I rowsort
SELECT ALL 30 * - 95
----
-2850

onlyif mysql # aggregate syntax: 
query I rowsort label-596
SELECT DISTINCT + MIN( ALL - 2 )
----
-2

skipif mysql # not compatible
query I rowsort label-596
SELECT DISTINCT + MIN ( ALL - 2 )
----
-2

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

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

query I rowsort
SELECT + 71 * + - 17
----
-1207

query II rowsort
SELECT ALL + 38 AS col2, ( + + 78 )
----
38
78

onlyif mysql # aggregate syntax: 
query I rowsort label-600
SELECT MAX( DISTINCT 12 )
----
12

skipif mysql # not compatible
query I rowsort label-600
SELECT MAX ( DISTINCT 12 )
----
12

query I rowsort
SELECT ALL 94 * + 45 * 72 * + 39 col0
----
11877840

onlyif mysql # aggregate syntax: 
query II rowsort label-602
SELECT COUNT( DISTINCT + 3 ), 91 AS col0
----
1
91

skipif mysql # not compatible
query II rowsort label-602
SELECT COUNT ( DISTINCT + 3 ), 91 AS col0
----
1
91

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-604
SELECT + - 56 DIV 99 * + 32 + - + 76 - 26 col1
----
-102

skipif mysql # not compatible
query I rowsort label-604
SELECT + - 56 / 99 * + 32 + - + 76 - 26 col1
----
-102

onlyif mysql # aggregate syntax: 
query II rowsort label-605
SELECT ALL COUNT( - COALESCE ( - 50, + 92, + 43 * - 45 ) ), - 50 + 12 + 26 AS col0
----
1
-12

skipif mysql # not compatible
query II rowsort label-605
SELECT ALL COUNT ( - COALESCE ( - 50, + 92, + 43 * - 45 ) ), - 50 + 12 + 26 AS col0
----
1
-12

query I rowsort
SELECT + + 87 + - 24 AS col1
----
63

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

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

query I rowsort
SELECT + - 12 + - - 65 AS col0
----
53

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

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

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

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

query I rowsort
SELECT ALL - 10 + + ( + 54 )
----
44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-612
SELECT ALL 16 DIV 71 * + + COUNT( * ) * + + 65 + - + 37
----
-37

skipif mysql # not compatible
query I rowsort label-612
SELECT ALL 16 / 71 * + + COUNT ( * ) * + + 65 + - + 37
----
-37

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-613
SELECT - + 29 DIV + MIN( DISTINCT + 37 )
----
0

skipif mysql # not compatible
query I rowsort label-613
SELECT - + 29 / + MIN ( DISTINCT + 37 )
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-614
SELECT - + 28 AS col0, - MIN( - + 35 ) AS col0
----
-28
35

skipif mysql # not compatible
query II rowsort label-614
SELECT - + 28 AS col0, - MIN ( - + 35 ) AS col0
----
-28
35

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-615
SELECT - - CASE - 48 WHEN + CAST( - + COUNT( * ) AS DECIMAL ) * 45 * + 67 THEN + - 99 END * - 55 + - + 1
----
NULL

skipif mysql # not compatible
query I rowsort label-615
SELECT - - CASE - 48 WHEN + CAST ( - + COUNT ( * ) AS REAL ) * 45 * + 67 THEN + - 99 END * - 55 + - + 1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-616
SELECT ALL - 49 + - COUNT( * ) * - 46 AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-616
SELECT ALL - 49 + - COUNT ( * ) * - 46 AS col2
----
-3

query II rowsort
SELECT - 72 AS col2, 44 + - 39
----
-72
5

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-618
SELECT ALL ( - - 91 ) AS col0, 44 + 91 * + CASE 58 WHEN + 42 - 8 + - 6 THEN + 14 + - AVG ( DISTINCT 38 ) * - + 84 WHEN + + CAST( NULL AS DECIMAL ) * + + COUNT( * ) * 71 THEN + - 98 WHEN - + 58 * - 65 - - 64 THEN NULL END - COALESCE ( + 17, COALESCE ( + 78, 35 * 93 + - 57 / - 19 ) ) + COUNT( * ) AS col1
----
91
NULL

skipif mysql # not compatible
query II rowsort label-618
SELECT ALL ( - - 91 ) AS col0, 44 + 91 * + CASE 58 WHEN + 42 - 8 + - 6 THEN + 14 + - AVG ( DISTINCT 38 ) * - + 84 WHEN + + CAST ( NULL AS REAL ) * + + COUNT ( * ) * 71 THEN + - 98 WHEN - + 58 * - 65 - - 64 THEN NULL END - COALESCE ( + 17, COALESCE ( + 78, 35 * 93 + - 57 / - 19 ) ) + COUNT ( * ) AS col1
----
91
NULL

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-620
SELECT DISTINCT + 20 - - 57, + COUNT( * ) * + 65 AS col1
----
77
65

skipif mysql # not compatible
query II rowsort label-620
SELECT DISTINCT + 20 - - 57, + COUNT ( * ) * + 65 AS col1
----
77
65

onlyif mysql # aggregate syntax: 
query I rowsort label-621
SELECT + COUNT( * ) * - 33 + + + 80 AS col0
----
47

skipif mysql # not compatible
query I rowsort label-621
SELECT + COUNT ( * ) * - 33 + + + 80 AS col0
----
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-622
SELECT + CAST( - 39 AS SIGNED ) AS col0, 9 + MAX( + - 40 ) + - CASE CAST( NULL AS DECIMAL ) WHEN AVG ( ALL 3 ) / + CAST( NULL AS SIGNED ) THEN + 47 END + 39 + + - 47 / - 93 AS col1
----
-39
NULL

skipif mysql # not compatible
query II rowsort label-622
SELECT + CAST ( - 39 AS INTEGER ) AS col0, 9 + MAX ( + - 40 ) + - CASE CAST ( NULL AS REAL ) WHEN AVG ( ALL 3 ) / + CAST ( NULL AS INTEGER ) THEN + 47 END + 39 + + - 47 / - 93 AS col1
----
-39
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-623
SELECT ALL + ( + 49 ) DIV + COUNT( * ) + 33 * + - 4
----
-83

skipif mysql # not compatible
query I rowsort label-623
SELECT ALL + ( + 49 ) / + COUNT ( * ) + 33 * + - 4
----
-83

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

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

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

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

query I rowsort
SELECT NULLIF ( + 80, + - 91 ) * 11 + + 31 + - 74
----
837

onlyif mysql # aggregate syntax: 
query I rowsort label-627
SELECT + MIN( ALL - 93 ) * - MAX( + 46 ) + + - 54 + + 54 AS col1
----
4278

skipif mysql # not compatible
query I rowsort label-627
SELECT + MIN ( ALL - 93 ) * - MAX ( + 46 ) + + - 54 + + 54 AS col1
----
4278

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT + + 16 col1
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-633
SELECT DISTINCT + COUNT( * ) * + 14 + + 15 AS col2
----
29

skipif mysql # not compatible
query I rowsort label-633
SELECT DISTINCT + COUNT ( * ) * + 14 + + 15 AS col2
----
29

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

query I rowsort
SELECT ALL + + 92 * 92 + + - 11 + + 45 * - 46 AS col1
----
6383

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-637
SELECT + ( + + COALESCE ( - 80, - 27 ) ) * + 26 + 58 + + - 96 + ( - COUNT( * ) ) - 59 - + - ( 94 ) / + 31 * + + ( MAX( + 86 ) ) * + 65 * - NULLIF ( - - 84, + MIN( DISTINCT - + 33 ) ) * + CAST( NULL AS SIGNED ) * CAST( + 32 AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-637
SELECT + ( + + COALESCE ( - 80, - 27 ) ) * + 26 + 58 + + - 96 + ( - COUNT ( * ) ) - 59 - + - ( 94 ) / + 31 * + + ( MAX ( + 86 ) ) * + 65 * - NULLIF ( - - 84, + MIN ( DISTINCT - + 33 ) ) * + CAST ( NULL AS INTEGER ) * CAST ( + 32 AS INTEGER ) AS col1
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-639
SELECT NULLIF ( + 88, COUNT( * ) ) AS col0
----
88

skipif mysql # not compatible
query I rowsort label-639
SELECT NULLIF ( + 88, COUNT ( * ) ) AS col0
----
88

onlyif mysql # DIV for integer division: 
query I rowsort label-640
SELECT DISTINCT 68 DIV + + 38 + + 6
----
7

skipif mysql # not compatible
query I rowsort label-640
SELECT DISTINCT 68 / + + 38 + + 6
----
7

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-642
SELECT ALL - - 72 - - COUNT( + 3 ) * + 16
----
88

skipif mysql # not compatible
query I rowsort label-642
SELECT ALL - - 72 - - COUNT ( + 3 ) * + 16
----
88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-643
SELECT - - SUM( DISTINCT + CAST( + - 21 AS SIGNED ) ) AS col1
----
-21

skipif mysql # not compatible
query I rowsort label-643
SELECT - - SUM ( DISTINCT + CAST ( + - 21 AS INTEGER ) ) AS col1
----
-21

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-645
SELECT 52 DIV - 34 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-645
SELECT 52 / - 34 AS col2
----
-1

query I rowsort
SELECT 23 * 16
----
368

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-648
SELECT ALL 4 AS col0, CAST( NULL AS SIGNED ) * - - 60 AS col2
----
4
NULL

skipif mysql # not compatible
query II rowsort label-648
SELECT ALL 4 AS col0, CAST ( NULL AS INTEGER ) * - - 60 AS col2
----
4
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-649
SELECT 74 + + ( - 56 ) * - CAST( + + 84 AS SIGNED ) * COUNT( + 99 ) AS col1
----
4778

skipif mysql # not compatible
query I rowsort label-649
SELECT 74 + + ( - 56 ) * - CAST ( + + 84 AS INTEGER ) * COUNT ( + 99 ) AS col1
----
4778

onlyif mysql # aggregate syntax: 
query II rowsort label-650
SELECT ALL 15 AS col1, + 17 + MAX( ALL - - 27 )
----
15
44

skipif mysql # not compatible
query II rowsort label-650
SELECT ALL 15 AS col1, + 17 + MAX ( ALL - - 27 )
----
15
44

query I rowsort
SELECT ( + 10 ) * - - 33 * 89 * 25 * 76 AS col0
----
55803000

onlyif mysql # aggregate syntax: 
query I rowsort label-652
SELECT ALL - NULLIF ( + - COUNT( * ), MIN( - 41 ) * + ( - 94 ) - + - 56 + 58 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-652
SELECT ALL - NULLIF ( + - COUNT ( * ), MIN ( - 41 ) * + ( - 94 ) - + - 56 + 58 ) AS col0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-653
SELECT 77 DIV - 85
----
0

skipif mysql # not compatible
query I rowsort label-653
SELECT 77 / - 85
----
0

query I rowsort
SELECT DISTINCT - 62 + 26 + + 11 - - 22
----
-3

query II rowsort
SELECT + 82 col0, 37
----
82
37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-656
SELECT MIN( - CAST( - 20 AS SIGNED ) ) - - + 86 + + - 7 * - 58
----
512

skipif mysql # not compatible
query I rowsort label-656
SELECT MIN ( - CAST ( - 20 AS INTEGER ) ) - - + 86 + + - 7 * - 58
----
512

query II rowsort
SELECT 0 AS col1, 12 * - + 0 AS col0
----
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-658
SELECT COUNT( * ) * - 43 * 20
----
-860

skipif mysql # not compatible
query I rowsort label-658
SELECT COUNT ( * ) * - 43 * 20
----
-860

query I rowsort
SELECT 73 * - 3 * + 70
----
-15330

query I rowsort
SELECT ALL + 72 * + - 10
----
-720

onlyif mysql # aggregate syntax: 
query II rowsort label-661
SELECT ALL - 65 + 26 * - - 75 AS col1, - 85 + + COUNT( ( 1 ) )
----
1885
-84

skipif mysql # not compatible
query II rowsort label-661
SELECT ALL - 65 + 26 * - - 75 AS col1, - 85 + + COUNT ( ( 1 ) )
----
1885
-84

query I rowsort
SELECT ALL - - 87 + + 21
----
108

query I rowsort
SELECT NULLIF ( + 71, - 56 ) - + - ( + 30 )
----
101

query I rowsort
SELECT ALL - - 54 col2
----
54

query I rowsort
SELECT 65 * - 7 - ( - 52 )
----
-403

query II rowsort
SELECT - 84, + 7 * - + 38 AS col2
----
-84
-266

onlyif mysql # aggregate syntax: 
query I rowsort label-667
SELECT DISTINCT MAX( ALL 13 )
----
13

skipif mysql # not compatible
query I rowsort label-667
SELECT DISTINCT MAX ( ALL 13 )
----
13

query I rowsort
SELECT ALL + - ( - + 51 ) - 52 + 50 AS col1
----
49

query I rowsort
SELECT ALL + 8 - + + 84 AS col1
----
-76

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-670
SELECT + 44 * ( - 69 ) col1, - CAST( NULL AS SIGNED )
----
-3036
NULL

skipif mysql # not compatible
query II rowsort label-670
SELECT + 44 * ( - 69 ) col1, - CAST ( NULL AS INTEGER )
----
-3036
NULL

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

query I rowsort
SELECT DISTINCT + - 90 * - - 34
----
-3060

onlyif mysql # aggregate syntax: 
query II rowsort label-673
SELECT 68 * + 25 col0, + 31 * - 98 * 32 - NULLIF ( + 91, - + MAX( DISTINCT 61 ) + 26 ) AS col2
----
1700
-97307

skipif mysql # not compatible
query II rowsort label-673
SELECT 68 * + 25 col0, + 31 * - 98 * 32 - NULLIF ( + 91, - + MAX ( DISTINCT 61 ) + 26 ) AS col2
----
1700
-97307

query II rowsort
SELECT 58 * - 6 AS col2, + 99 AS col1
----
-348
99

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-676
SELECT ALL - COUNT( * ) + - 44, + 3 col2
----
-45
3

skipif mysql # not compatible
query II rowsort label-676
SELECT ALL - COUNT ( * ) + - 44, + 3 col2
----
-45
3

query I rowsort
SELECT 83 * - + 6 * 18 AS col2
----
-8964

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-678
SELECT ALL 71 + + 70 + + ( MAX( DISTINCT - CAST( NULL AS SIGNED ) ) ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-678
SELECT ALL 71 + + 70 + + ( MAX ( DISTINCT - CAST ( NULL AS INTEGER ) ) ) col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-679
SELECT + COUNT( ALL - 77 ) * 10 * CASE 81 WHEN + - 45 * - + 5 THEN + CAST( - MAX( - + 46 ) AS SIGNED ) - + + 86 END * - 74 + - 47 + - 58 + + 80 + 50 * + 61 * 20 * - 19 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-679
SELECT + COUNT ( ALL - 77 ) * 10 * CASE 81 WHEN + - 45 * - + 5 THEN + CAST ( - MAX ( - + 46 ) AS INTEGER ) - + + 86 END * - 74 + - 47 + - 58 + + 80 + 50 * + 61 * 20 * - 19 AS col2
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-680
SELECT DISTINCT AVG ( ALL 93 ) * 74 + CAST( NULL AS DECIMAL ) * - + 29
----
NULL

skipif mysql # not compatible
query I rowsort label-680
SELECT DISTINCT AVG ( ALL 93 ) * 74 + CAST ( NULL AS REAL ) * - + 29
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-681
SELECT CAST( - 92 AS SIGNED ) * 77 + + + ( + + 29 ) + + 49 + - 92 * + 63 * + - 33
----
184262

skipif mysql # not compatible
query I rowsort label-681
SELECT CAST ( - 92 AS INTEGER ) * 77 + + + ( + + 29 ) + + 49 + - 92 * + 63 * + - 33
----
184262

query I rowsort
SELECT ALL + 24 * + 54 + - 59 AS col0
----
1237

query I rowsort
SELECT 33 * + + 9 + 24 + 7 - + + NULLIF ( - 34, + - 28 + + 35 ) AS col0
----
362

onlyif mysql # aggregate syntax: 
query II rowsort label-684
SELECT DISTINCT - COUNT( * ) * - 18 AS col2, 53 * 14
----
18
742

skipif mysql # not compatible
query II rowsort label-684
SELECT DISTINCT - COUNT ( * ) * - 18 AS col2, 53 * 14
----
18
742

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-685
SELECT ALL + + NULLIF ( + 1, 94 * + 58 / NULLIF ( + 5, + 98 ) ) * 51 * - COALESCE ( - - 64, + - COUNT( * ) ) + + 30 + AVG ( - ( + 70 ) ) - + CASE CAST( ( - - 35 ) AS SIGNED ) WHEN - + 38 * - + CASE - NULLIF ( - + MIN( ALL + + 0 ), 46 ) WHEN - 84 * 93 * ( 78 ) THEN 38 * 46 END THEN NULL WHEN - 35 + - 69 * - 66 THEN COUNT( DISTINCT - 60 ) + 85 WHEN + ( CASE 4 WHEN + 42 THEN + 33 END ) * + 22 THEN NULL ELSE NULL END + + 13 * 50 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-685
SELECT ALL + + NULLIF ( + 1, 94 * + 58 / NULLIF ( + 5, + 98 ) ) * 51 * - COALESCE ( - - 64, + - COUNT ( * ) ) + + 30 + AVG ( - ( + 70 ) ) - + CASE CAST ( ( - - 35 ) AS INTEGER ) WHEN - + 38 * - + CASE - NULLIF ( - + MIN ( ALL + + 0 ), 46 ) WHEN - 84 * 93 * ( 78 ) THEN 38 * 46 END THEN NULL WHEN - 35 + - 69 * - 66 THEN COUNT ( DISTINCT - 60 ) + 85 WHEN + ( CASE 4 WHEN + 42 THEN + 33 END ) * + 22 THEN NULL ELSE NULL END + + 13 * 50 AS col2
----
NULL

query I rowsort
SELECT - 26 + - 17 * - 75 AS col1
----
1249

query I rowsort
SELECT 80 * + + 1 AS col1
----
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-688
SELECT + MAX( DISTINCT 82 ) col0, + CAST( - + CAST( NULL AS SIGNED ) AS SIGNED ) * ( - COUNT( * ) )
----
82
NULL

skipif mysql # not compatible
query II rowsort label-688
SELECT + MAX ( DISTINCT 82 ) col0, + CAST ( - + CAST ( NULL AS INTEGER ) AS INTEGER ) * ( - COUNT ( * ) )
----
82
NULL

query I rowsort
SELECT DISTINCT + 70 - - - 61
----
9

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

skipif mysql # not compatible
query I rowsort label-690
SELECT - 2 * CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT + - ( 92 ) AS col2
----
-92

onlyif mysql # aggregate syntax: 
query II rowsort label-692
SELECT ALL + - MAX( DISTINCT 68 ) AS col0, 38 + - + 75 + + 52 * + - ( + 6 ) + 71 + - 37 - - ( - 67 )
----
-68
-382

skipif mysql # not compatible
query II rowsort label-692
SELECT ALL + - MAX ( DISTINCT 68 ) AS col0, 38 + - + 75 + + 52 * + - ( + 6 ) + 71 + - 37 - - ( - 67 )
----
-68
-382

onlyif mysql # aggregate syntax: 
query I rowsort label-693
SELECT ALL - - ( - ( - 72 ) ) * + SUM( - 77 ) - + 33
----
-5577

skipif mysql # not compatible
query I rowsort label-693
SELECT ALL - - ( - ( - 72 ) ) * + SUM ( - 77 ) - + 33
----
-5577

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-694
SELECT - CAST( NULL AS SIGNED ) / MAX( 37 ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-694
SELECT - CAST ( NULL AS INTEGER ) / MAX ( 37 ) col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-695
SELECT - - 40 * + ( + 8 ) DIV + COUNT( * ) col2, 72 AS col2
----
320
72

skipif mysql # not compatible
query II rowsort label-695
SELECT - - 40 * + ( + 8 ) / + COUNT ( * ) col2, 72 AS col2
----
320
72

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-697
SELECT - 20 + - MAX( ALL - 94 ) DIV - 80 AS col1
----
-21

skipif mysql # not compatible
query I rowsort label-697
SELECT - 20 + - MAX ( ALL - 94 ) / - 80 AS col1
----
-21

query II rowsort
SELECT 31 AS col0, 52 * - 66 AS col0
----
31
-3432

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

skipif mysql # not compatible
query I rowsort label-699
SELECT ALL COUNT ( DISTINCT 70 ) AS col2
----
1

query I rowsort
SELECT ALL + 80 + 2 AS col2
----
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-701
SELECT ALL 66 * + 54 * - - CAST( - + 26 AS SIGNED )
----
-92664

skipif mysql # not compatible
query I rowsort label-701
SELECT ALL 66 * + 54 * - - CAST ( - + 26 AS INTEGER )
----
-92664

onlyif mysql # aggregate syntax: 
query I rowsort label-702
SELECT ALL NULLIF ( 73, - COUNT( * ) ) AS col1
----
73

skipif mysql # not compatible
query I rowsort label-702
SELECT ALL NULLIF ( 73, - COUNT ( * ) ) AS col1
----
73

query I rowsort
SELECT DISTINCT + 62 + + 64 AS col2
----
126

query I rowsort
SELECT ALL - 89 * 56 AS col0
----
-4984

onlyif mysql # aggregate syntax: 
query I rowsort label-705
SELECT + 42 + - 63 + - + CASE - 64 WHEN NULLIF ( + ( NULLIF ( - + 63, + COUNT( + 19 ) * 87 * - COUNT( * ) ) ), - 97 ) THEN NULL ELSE 64 END
----
-85

skipif mysql # not compatible
query I rowsort label-705
SELECT + 42 + - 63 + - + CASE - 64 WHEN NULLIF ( + ( NULLIF ( - + 63, + COUNT ( + 19 ) * 87 * - COUNT ( * ) ) ), - 97 ) THEN NULL ELSE 64 END
----
-85

query I rowsort
SELECT - 54 * + 26 AS col0
----
-1404

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-708
SELECT 44 AS col2, COUNT( * ) DIV 43 * 64 * 85 AS col0
----
44
0

skipif mysql # not compatible
query II rowsort label-708
SELECT 44 AS col2, COUNT ( * ) / 43 * 64 * 85 AS col0
----
44
0

query II rowsort
SELECT + 36 + 47 - 19 + - - 56 + + 46 + 14 + - 89 * 12 + - 92 + - - 37 AS col2, - 1 * - + NULLIF ( - - ( ( + COALESCE ( 15, - + 21, 8 ) ) ), - 64 )
----
-943
15

onlyif mysql # DIV for integer division: 
query I rowsort label-710
SELECT + 6 DIV 80
----
0

skipif mysql # not compatible
query I rowsort label-710
SELECT + 6 / 80
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-711
SELECT ALL - 61 DIV 81 DIV 2 DIV - 32 + - - 11
----
11

skipif mysql # not compatible
query I rowsort label-711
SELECT ALL - 61 / 81 / 2 / - 32 + - - 11
----
11

query I rowsort
SELECT ( + + 20 ) col2
----
20

query I rowsort
SELECT ( ( + 92 ) ) AS col2
----
92

onlyif mysql # DIV for integer division: 
query I rowsort label-714
SELECT ALL 64 DIV - 8 AS col2
----
-8

skipif mysql # not compatible
query I rowsort label-714
SELECT ALL 64 / - 8 AS col2
----
-8

query I rowsort
SELECT DISTINCT 86 * + - 21 * - 54 + + 83 + + + 25
----
97632

query II rowsort
SELECT + 97 * - - 58 + 26, + 32 AS col2
----
5652
32

query I rowsort
SELECT ALL + + 39 * 15 - + 25 * 15 AS col0
----
210

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-718
SELECT DISTINCT MAX( ALL + - ( + 95 ) ) * + CAST( NULL AS SIGNED ) + - + COUNT( * ) * SUM( ALL 13 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-718
SELECT DISTINCT MAX ( ALL + - ( + 95 ) ) * + CAST ( NULL AS INTEGER ) + - + COUNT ( * ) * SUM ( ALL 13 ) AS col0
----
NULL

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

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

query I rowsort
SELECT ALL - NULLIF ( 31, - 76 * - + 15 ) * + ( + - 59 ) + - - 72 + - 17 AS col0
----
1884

onlyif mysql # aggregate syntax: 
query I rowsort label-721
SELECT - + 21 * - COUNT( * ) * - 38 * + - 73
----
58254

skipif mysql # not compatible
query I rowsort label-721
SELECT - + 21 * - COUNT ( * ) * - 38 * + - 73
----
58254

onlyif mysql # aggregate syntax: 
query II rowsort label-722
SELECT DISTINCT + 15 AS col1, - COUNT( 32 ) * 65 AS col2
----
15
-65

skipif mysql # not compatible
query II rowsort label-722
SELECT DISTINCT + 15 AS col1, - COUNT ( 32 ) * 65 AS col2
----
15
-65

query I rowsort
SELECT ALL 60 * - 98
----
-5880

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

onlyif mysql # aggregate syntax: 
query I rowsort label-725
SELECT + 65 * COUNT( * ) + 92 + 87 AS col1
----
244

skipif mysql # not compatible
query I rowsort label-725
SELECT + 65 * COUNT ( * ) + 92 + 87 AS col1
----
244

onlyif mysql # DIV for integer division: 
query I rowsort label-726
SELECT - - 95 * 3 - + 82 + + 75 + + 63 DIV - 75 AS col2
----
278

skipif mysql # not compatible
query I rowsort label-726
SELECT - - 95 * 3 - + 82 + + 75 + + 63 / - 75 AS col2
----
278

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-727
SELECT + COALESCE ( - 6, 17 * + CAST( NULL AS SIGNED ) )
----
-6

skipif mysql # not compatible
query I rowsort label-727
SELECT + COALESCE ( - 6, 17 * + CAST ( NULL AS INTEGER ) )
----
-6

query I rowsort
SELECT ALL - - 73 * + + 67 + 7 AS col0
----
4898

query I rowsort
SELECT + 20 * 50 col0
----
1000

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-731
SELECT ALL + 15 * COUNT( ALL - 98 ) * + ( 39 ) * - CASE MAX( DISTINCT 33 ) WHEN - 22 THEN NULL WHEN 27 + COUNT( * ) - - CAST( - + 53 AS SIGNED ) THEN - - COALESCE ( + 5, - 30, 63 ) * - 56 WHEN - 35 * 69 - + + 46 * + 15 + + + 91 THEN 30 ELSE + NULLIF ( + + 80, 40 ) END + + + MAX( 86 )
----
-46714

skipif mysql # not compatible
query I rowsort label-731
SELECT ALL + 15 * COUNT ( ALL - 98 ) * + ( 39 ) * - CASE MAX ( DISTINCT 33 ) WHEN - 22 THEN NULL WHEN 27 + COUNT ( * ) - - CAST ( - + 53 AS INTEGER ) THEN - - COALESCE ( + 5, - 30, 63 ) * - 56 WHEN - 35 * 69 - + + 46 * + 15 + + + 91 THEN 30 ELSE + NULLIF ( + + 80, 40 ) END + + + MAX ( 86 )
----
-46714

onlyif mysql # DIV for integer division: 
query I rowsort label-732
SELECT DISTINCT + 75 + - - 43 DIV + 11
----
78

skipif mysql # not compatible
query I rowsort label-732
SELECT DISTINCT + 75 + - - 43 / + 11
----
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-733
SELECT - COALESCE ( - SUM( + 93 ), 74, + NULLIF ( + + NULLIF ( + 13, - - 75 + - NULLIF ( - 45, NULLIF ( + NULLIF ( + NULLIF ( CAST( + + 42 AS SIGNED ), + 45 + 62 ), - - 2 - + 34 ), + 56 * + COALESCE ( + 92, + ( + 0 ) ) * - COUNT( * ) * + 28 + - 5 + CASE - + 32 WHEN + - COUNT( * ) DIV ( + MAX( ALL - 50 ) ) * 81 - 36 THEN 42 * 29 + + ( 17 ) WHEN + 46 THEN 32 * 15 + + CASE WHEN NOT ( NULL ) BETWEEN + 56 AND - 87 THEN NULL ELSE + 97 + - COUNT( * ) END ELSE NULL END ) + ( 77 + - 95 ) ) + + 38 * 26 * 29 ), SUM( DISTINCT 89 ) ) DIV - 66 - COUNT( * ) * COUNT( * ) ) + 32
----
125

skipif mysql # not compatible
query I rowsort label-733
SELECT - COALESCE ( - SUM ( + 93 ), 74, + NULLIF ( + + NULLIF ( + 13, - - 75 + - NULLIF ( - 45, NULLIF ( + NULLIF ( + NULLIF ( CAST ( + + 42 AS INTEGER ), + 45 + 62 ), - - 2 - + 34 ), + 56 * + COALESCE ( + 92, + ( + 0 ) ) * - COUNT ( * ) * + 28 + - 5 + CASE - + 32 WHEN + - COUNT ( * ) / ( + MAX ( ALL - 50 ) ) * 81 - 36 THEN 42 * 29 + + ( 17 ) WHEN + 46 THEN 32 * 15 + + CASE WHEN NOT ( NULL ) BETWEEN + 56 AND - 87 THEN NULL ELSE + 97 + - COUNT ( * ) END ELSE NULL END ) + ( 77 + - 95 ) ) + + 38 * 26 * 29 ), SUM ( DISTINCT 89 ) ) / - 66 - COUNT ( * ) * COUNT ( * ) ) + 32
----
125

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-734
SELECT - 65 AS col2, + NULLIF ( + - COUNT( * ), CAST( + 41 AS SIGNED ) * - 42 )
----
-65
-1

skipif mysql # not compatible
query II rowsort label-734
SELECT - 65 AS col2, + NULLIF ( + - COUNT ( * ), CAST ( + 41 AS INTEGER ) * - 42 )
----
-65
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-735
SELECT - ( - 21 ) DIV - 97 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-735
SELECT - ( - 21 ) / - 97 AS col0
----
0

query I rowsort
SELECT - 30 + 75
----
45

query I rowsort
SELECT - 36 * CASE + 13 WHEN + - 13 * 60 * - 39 + 5 THEN + 70 ELSE NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-738
SELECT 51 AS col1, + 36 + - - 8 + - 23 DIV + 11
----
51
42

skipif mysql # not compatible
query II rowsort label-738
SELECT 51 AS col1, + 36 + - - 8 + - 23 / + 11
----
51
42

onlyif mysql # aggregate syntax: 
query I rowsort label-739
SELECT DISTINCT NULLIF ( - - 32, + COUNT( DISTINCT 14 ) * - 27 ) col0
----
32

skipif mysql # not compatible
query I rowsort label-739
SELECT DISTINCT NULLIF ( - - 32, + COUNT ( DISTINCT 14 ) * - 27 ) col0
----
32

query I rowsort
SELECT ALL + 13 + 38 + 29 * + 26 * - 88 AS col0
----
-66301

query II rowsort
SELECT - 31 AS col0, 49
----
-31
49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-742
SELECT ALL ( - + 14 ) AS col0, CAST( NULL AS SIGNED )
----
-14
NULL

skipif mysql # not compatible
query II rowsort label-742
SELECT ALL ( - + 14 ) AS col0, CAST ( NULL AS INTEGER )
----
-14
NULL

query I rowsort
SELECT DISTINCT - 68 - - + 20 AS col0
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-744
SELECT ALL + COUNT( * ) - - + 71 + 93 + + - 96 - - 2 * - 31 + - 91 * + 85
----
-7728

skipif mysql # not compatible
query I rowsort label-744
SELECT ALL + COUNT ( * ) - - + 71 + 93 + + - 96 - - 2 * - 31 + - 91 * + 85
----
-7728

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

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

query I rowsort
SELECT - 21 * - 80 AS col2
----
1680

onlyif mysql # aggregate syntax: 
query II rowsort label-747
SELECT + COUNT( * ) AS col0, 68 * ( 53 ) * 38 - + + 88 + - CASE + + 82 WHEN - 81 THEN NULL WHEN - 1 + - 33 THEN + - 47 END + + COUNT( * ) * + MAX( - + 93 ) * 24 col1
----
1
NULL

skipif mysql # not compatible
query II rowsort label-747
SELECT + COUNT ( * ) AS col0, 68 * ( 53 ) * 38 - + + 88 + - CASE + + 82 WHEN - 81 THEN NULL WHEN - 1 + - 33 THEN + - 47 END + + COUNT ( * ) * + MAX ( - + 93 ) * 24 col1
----
1
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-748
SELECT + 80 * 90 * + 90 + - 65 + - 27 + CAST( NULL AS SIGNED ) + + 13
----
NULL

skipif mysql # not compatible
query I rowsort label-748
SELECT + 80 * 90 * + 90 + - 65 + - 27 + CAST ( NULL AS INTEGER ) + + 13
----
NULL

query I rowsort
SELECT + + 67 * 9 AS col1
----
603

query I rowsort
SELECT DISTINCT + 34 * + - 37
----
-1258

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-751
SELECT ALL CAST( NULL AS DECIMAL ) - - 11 - + MIN( DISTINCT + - 19 ) AS col1, + CASE - SUM( 33 ) WHEN - 96 / + ( - NULLIF ( - COUNT( * ), + + 79 * + + 82 * + 63 + - + COUNT( * ) * - - CAST( - - 13 AS SIGNED ) + + + 11 ) ) THEN 13 END * + 22 + 31 + ( + 51 ) / + - 4 + + 93
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-751
SELECT ALL CAST ( NULL AS REAL ) - - 11 - + MIN ( DISTINCT + - 19 ) AS col1, + CASE - SUM ( 33 ) WHEN - 96 / + ( - NULLIF ( - COUNT ( * ), + + 79 * + + 82 * + 63 + - + COUNT ( * ) * - - CAST ( - - 13 AS INTEGER ) + + + 11 ) ) THEN 13 END * + 22 + 31 + ( + 51 ) / + - 4 + + 93
----
NULL
NULL

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

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

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

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

query I rowsort
SELECT DISTINCT + 27 * - 35 AS col2
----
-945

onlyif mysql # aggregate syntax: 
query II rowsort label-755
SELECT ALL - - COUNT( * ) AS col2, - 80 AS col2
----
1
-80

skipif mysql # not compatible
query II rowsort label-755
SELECT ALL - - COUNT ( * ) AS col2, - 80 AS col2
----
1
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-756
SELECT ALL COUNT( * ) + + 50 + - - 19 * + 73
----
1438

skipif mysql # not compatible
query I rowsort label-756
SELECT ALL COUNT ( * ) + + 50 + - - 19 * + 73
----
1438

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-757
SELECT ALL + COUNT( * ) + + - COUNT( * ) AS col1, - MAX( + 59 ) * - 67 * + + 17 * + 45 + + 12 * - - 57 * + ( 38 ) + - NULLIF ( - - 52, + 91 + 5 ) * 52 + 52 + - 62 * COALESCE ( - - 74, ( - - 64 ) + 20, 92 + - - COUNT( + 73 ) + ( + CAST( - + ( + + ( - COUNT( DISTINCT - - 75 ) ) ) AS SIGNED ) ) DIV ( COUNT( * ) ) ) DIV 78 * + 52 AS col2
----
0
3044369

skipif mysql # not compatible
query II rowsort label-757
SELECT ALL + COUNT ( * ) + + - COUNT ( * ) AS col1, - MAX ( + 59 ) * - 67 * + + 17 * + 45 + + 12 * - - 57 * + ( 38 ) + - NULLIF ( - - 52, + 91 + 5 ) * 52 + 52 + - 62 * COALESCE ( - - 74, ( - - 64 ) + 20, 92 + - - COUNT ( + 73 ) + ( + CAST ( - + ( + + ( - COUNT ( DISTINCT - - 75 ) ) ) AS INTEGER ) ) / ( COUNT ( * ) ) ) / 78 * + 52 AS col2
----
0
3044369

query II rowsort
SELECT ALL + 62 + + - 21, 10 AS col2
----
41
10

query I rowsort
SELECT ALL 49 + - 67
----
-18

query I rowsort
SELECT ALL + NULLIF ( + 92, 3 ) * + ( + CASE + 9 WHEN 18 + 70 * - 76 THEN + 97 WHEN - 82 THEN NULL END ) * - ( + 30 ) * - - 19
----
NULL

query II rowsort
SELECT ALL 89 * + 62 AS col0, 9 col0
----
5518
9

query I rowsort
SELECT DISTINCT 48 - + 89 + + 75 * + 93 col1
----
6934

onlyif mysql # aggregate syntax: 
query I rowsort label-763
SELECT DISTINCT 6 * - MIN( - - 89 )
----
-534

skipif mysql # not compatible
query I rowsort label-763
SELECT DISTINCT 6 * - MIN ( - - 89 )
----
-534

query I rowsort
SELECT 8 + + + 80 AS col1
----
88

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

skipif mysql # not compatible
query I rowsort label-765
SELECT DISTINCT 82 - + + COUNT ( * ) AS col2
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-766
SELECT ALL + 27 * - - 51 * + COUNT( * ) AS col1
----
1377

skipif mysql # not compatible
query I rowsort label-766
SELECT ALL + 27 * - - 51 * + COUNT ( * ) AS col1
----
1377

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-767
SELECT CAST( + - ( + 49 ) AS SIGNED ) * + 0 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-767
SELECT CAST ( + - ( + 49 ) AS INTEGER ) * + 0 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-768
SELECT 27 + - ( COUNT( * ) ) - - + 12 col2
----
38

skipif mysql # not compatible
query I rowsort label-768
SELECT 27 + - ( COUNT ( * ) ) - - + 12 col2
----
38

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-769
SELECT - 23 DIV 96, - COUNT( * ) AS col0
----
0
-1

skipif mysql # not compatible
query II rowsort label-769
SELECT - 23 / 96, - COUNT ( * ) AS col0
----
0
-1

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-771
SELECT DISTINCT CASE - 74 WHEN + - COUNT( + + 78 ) * - + 49 THEN 5 WHEN SUM( 24 ) THEN NULL END AS col0, NULLIF ( + + 64, + CASE + 33 WHEN 49 THEN NULL WHEN - CAST( NULLIF ( 22, + 21 - 56 ) AS SIGNED ) THEN - 18 * ( - - COUNT( * ) ) END ) * + CAST( - - 46 AS SIGNED ) AS col2
----
NULL
2944

skipif mysql # not compatible
query II rowsort label-771
SELECT DISTINCT CASE - 74 WHEN + - COUNT ( + + 78 ) * - + 49 THEN 5 WHEN SUM ( 24 ) THEN NULL END AS col0, NULLIF ( + + 64, + CASE + 33 WHEN 49 THEN NULL WHEN - CAST ( NULLIF ( 22, + 21 - 56 ) AS INTEGER ) THEN - 18 * ( - - COUNT ( * ) ) END ) * + CAST ( - - 46 AS INTEGER ) AS col2
----
NULL
2944

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-773
SELECT DISTINCT + + CAST( NULL AS SIGNED ) * + 34 - + COUNT( * ) * 23
----
NULL

skipif mysql # not compatible
query I rowsort label-773
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) * + 34 - + COUNT ( * ) * 23
----
NULL

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

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

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

skipif mysql # not compatible
query I rowsort label-775
SELECT ALL - + COUNT ( DISTINCT - 50 ) AS col1
----
-1

query I rowsort
SELECT + 39 * 17
----
663

onlyif mysql # aggregate syntax: 
query I rowsort label-777
SELECT 93 * COUNT( * ) - + 82 col2
----
11

skipif mysql # not compatible
query I rowsort label-777
SELECT 93 * COUNT ( * ) - + 82 col2
----
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-778
SELECT - COALESCE ( + CASE + - 9 WHEN - 10 THEN 97 WHEN + CAST( NULL AS SIGNED ) THEN + 79 END, COUNT( * ) ) - ( + 69 )
----
-70

skipif mysql # not compatible
query I rowsort label-778
SELECT - COALESCE ( + CASE + - 9 WHEN - 10 THEN 97 WHEN + CAST ( NULL AS INTEGER ) THEN + 79 END, COUNT ( * ) ) - ( + 69 )
----
-70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-779
SELECT 9 * - + MAX( ( - 67 ) ) * 52 - COALESCE ( - 47, + - 91, - CASE - CASE + + 85 WHEN 58 / - 77 / - 72 + - - 38 THEN + + 87 / + + CAST( NULL AS SIGNED ) WHEN - 15 + - - 74 - - - 93 * 57 THEN COUNT( * ) * + 36 END WHEN + 27 * - 11 * - - 52 * + 80 + - 65 * + CAST( + 44 AS SIGNED ) + COUNT( * ) THEN 90 WHEN - CASE + COUNT( ALL + 44 ) WHEN 74 * + NULLIF ( + 18, 23 * 13 ) THEN NULL WHEN COALESCE ( - 39, 20 + + 5 ) * 91 THEN - 18 END * 25 + 92 / 65 THEN 68 ELSE 55 END + + 92, - SUM( 66 ) * 92 + 56 * - 87 ) AS col1
----
31403

skipif mysql # not compatible
query I rowsort label-779
SELECT 9 * - + MAX ( ( - 67 ) ) * 52 - COALESCE ( - 47, + - 91, - CASE - CASE + + 85 WHEN 58 / - 77 / - 72 + - - 38 THEN + + 87 / + + CAST ( NULL AS INTEGER ) WHEN - 15 + - - 74 - - - 93 * 57 THEN COUNT ( * ) * + 36 END WHEN + 27 * - 11 * - - 52 * + 80 + - 65 * + CAST ( + 44 AS INTEGER ) + COUNT ( * ) THEN 90 WHEN - CASE + COUNT ( ALL + 44 ) WHEN 74 * + NULLIF ( + 18, 23 * 13 ) THEN NULL WHEN COALESCE ( - 39, 20 + + 5 ) * 91 THEN - 18 END * 25 + 92 / 65 THEN 68 ELSE 55 END + + 92, - SUM ( 66 ) * 92 + 56 * - 87 ) AS col1
----
31403

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

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

query I rowsort
SELECT ALL + - 89 + - - 87 col2
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-782
SELECT DISTINCT + CASE + NULLIF ( 13, - MIN( DISTINCT 63 ) + + COUNT( * ) * - + ( - 78 ) * - 6 * + + 10 ) WHEN AVG ( + - COALESCE ( + 5, - + 14 ) ) - - + 88 THEN 88 * + ( + - 88 ) WHEN CAST( - COALESCE ( - + 37, 15 ) AS SIGNED ) + + 79 THEN + + 93 + + + COALESCE ( + - NULLIF ( 68, - 56 - - + 33 + - 38 * + 99 ), + 12, CAST( 95 AS SIGNED ) ) END + 50 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-782
SELECT DISTINCT + CASE + NULLIF ( 13, - MIN ( DISTINCT 63 ) + + COUNT ( * ) * - + ( - 78 ) * - 6 * + + 10 ) WHEN AVG ( + - COALESCE ( + 5, - + 14 ) ) - - + 88 THEN 88 * + ( + - 88 ) WHEN CAST ( - COALESCE ( - + 37, 15 ) AS INTEGER ) + + 79 THEN + + 93 + + + COALESCE ( + - NULLIF ( 68, - 56 - - + 33 + - 38 * + 99 ), + 12, CAST ( 95 AS INTEGER ) ) END + 50 AS col0
----
NULL

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

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

query I rowsort
SELECT DISTINCT - NULLIF ( + 10, 44 + + 35 )
----
-10

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

skipif mysql # not compatible
query I rowsort label-785
SELECT ALL 8 + + COUNT ( * ) AS col2
----
9

query I rowsort
SELECT 67 + 63 AS col2
----
130

query I rowsort
SELECT 2 * 51 AS col0
----
102

onlyif mysql # aggregate syntax: 
query II rowsort label-788
SELECT COUNT( - 90 ) + + 95 AS col1, 73 AS col2
----
96
73

skipif mysql # not compatible
query II rowsort label-788
SELECT COUNT ( - 90 ) + + 95 AS col1, 73 AS col2
----
96
73

onlyif mysql # aggregate syntax: 
query I rowsort label-789
SELECT ALL COUNT( * ) * + NULLIF ( + NULLIF ( + - 42, - 70 / + 76 ), - - 43 * - + 62 * CASE - 54 WHEN + - 69 * COUNT( * ) THEN - + 88 / 5 - + 96 + + 65 + - 88 * + 0 - 38 + 51 ELSE NULL END ) AS col2
----
-42

skipif mysql # not compatible
query I rowsort label-789
SELECT ALL COUNT ( * ) * + NULLIF ( + NULLIF ( + - 42, - 70 / + 76 ), - - 43 * - + 62 * CASE - 54 WHEN + - 69 * COUNT ( * ) THEN - + 88 / 5 - + 96 + + 65 + - 88 * + 0 - 38 + 51 ELSE NULL END ) AS col2
----
-42

query I rowsort
SELECT ALL + 85 * - - 76 AS col0
----
6460

onlyif mysql # aggregate syntax: 
query II rowsort label-791
SELECT - COUNT( * ) AS col2, + COALESCE ( + 77, + 61 ) * + 34 * ( + ( - + 84 ) ) AS col2
----
-1
-219912

skipif mysql # not compatible
query II rowsort label-791
SELECT - COUNT ( * ) AS col2, + COALESCE ( + 77, + 61 ) * + 34 * ( + ( - + 84 ) ) AS col2
----
-1
-219912

query II rowsort
SELECT ALL 20 col0, - 22
----
20
-22

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

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

query II rowsort
SELECT ALL 28, - 34 AS col1
----
28
-34

query II rowsort
SELECT - 29 AS col0, - 87 AS col0
----
-29
-87

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

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

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

skipif mysql # not compatible
query I rowsort label-797
SELECT CAST ( NULL AS INTEGER ) * 86 col0
----
NULL

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

query I rowsort
SELECT DISTINCT COALESCE ( + - 10, - - COALESCE ( + 56, - - 88, + COALESCE ( - + 70, - - 94 + + 0 - 13 ) ), - 41 ) col2
----
-10

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-801
SELECT ALL - 80 AS col2, 65 + + - 83 + + CASE 95 WHEN + 49 THEN - COUNT( * ) ELSE COUNT( * ) DIV + 88 END * + 31 * ( 55 )
----
-80
-18

skipif mysql # not compatible
query II rowsort label-801
SELECT ALL - 80 AS col2, 65 + + - 83 + + CASE 95 WHEN + 49 THEN - COUNT ( * ) ELSE COUNT ( * ) / + 88 END * + 31 * ( 55 )
----
-80
-18

query I rowsort
SELECT + 52 - 73 AS col0
----
-21

query I rowsort
SELECT ALL + 84 * + 95
----
7980

onlyif mysql # aggregate syntax: 
query I rowsort label-804
SELECT ALL 40 * + SUM( DISTINCT - ( 20 ) )
----
-800

skipif mysql # not compatible
query I rowsort label-804
SELECT ALL 40 * + SUM ( DISTINCT - ( 20 ) )
----
-800

query II rowsort
SELECT - 37 AS col1, 90 AS col0
----
-37
90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-806
SELECT - ( - MAX( - + 87 ) ) DIV 21 * + + 12 AS col2
----
-48

skipif mysql # not compatible
query I rowsort label-806
SELECT - ( - MAX ( - + 87 ) ) / 21 * + + 12 AS col2
----
-48

query I rowsort
SELECT ALL - - 61 * - 93 + - 95
----
-5768

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

skipif mysql # not compatible
query I rowsort label-808
SELECT ALL + + CAST ( 5 AS INTEGER ) AS col1
----
5

query II rowsort
SELECT DISTINCT + 0, + 11 + + + 1 col2
----
0
12

query I rowsort
SELECT + - CASE WHEN NULL = + 10 THEN NULL ELSE + + ( + 56 ) END AS col0
----
-56

onlyif mysql # aggregate syntax: 
query II rowsort label-811
SELECT ALL - COUNT( * ) * + 38 + - 65 * + 24, - 21 AS col0
----
-1598
-21

skipif mysql # not compatible
query II rowsort label-811
SELECT ALL - COUNT ( * ) * + 38 + - 65 * + 24, - 21 AS col0
----
-1598
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-812
SELECT + ( + + COUNT( * ) ) * + - 32 + + 98 - + 90 + + MIN( ALL + 32 ) col1
----
8

skipif mysql # not compatible
query I rowsort label-812
SELECT + ( + + COUNT ( * ) ) * + - 32 + + 98 - + 90 + + MIN ( ALL + 32 ) col1
----
8

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

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

query I rowsort
SELECT COALESCE ( 61, + NULLIF ( - 97, + 45 ), 58 )
----
61

query I rowsort
SELECT - NULLIF ( + + 57, - 94 ) + + 12 + ( + 40 ) col2
----
-5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-816
SELECT DISTINCT - 44 * 75 DIV COUNT( * ) * COALESCE ( + 77, + 16 ) AS col2
----
-254100

skipif mysql # not compatible
query I rowsort label-816
SELECT DISTINCT - 44 * 75 / COUNT ( * ) * COALESCE ( + 77, + 16 ) AS col2
----
-254100

query I rowsort
SELECT - 90 * + 77 * + - 48 AS col2
----
332640

onlyif mysql # aggregate syntax: 
query I rowsort label-818
SELECT DISTINCT + CASE + 33 WHEN + 13 * 34 + COUNT( * ) + + 72 THEN 72 * SUM( DISTINCT + 81 ) END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-818
SELECT DISTINCT + CASE + 33 WHEN + 13 * 34 + COUNT ( * ) + + 72 THEN 72 * SUM ( DISTINCT + 81 ) END col0
----
NULL

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

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

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

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

query I rowsort
SELECT ALL - 0 - - 28
----
28

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-823
SELECT - 24 DIV + - COALESCE ( - COUNT( * ), 52 + + - 51 )
----
-24

skipif mysql # not compatible
query I rowsort label-823
SELECT - 24 / + - COALESCE ( - COUNT ( * ), 52 + + - 51 )
----
-24

query I rowsort
SELECT + 30 * ( - 19 ) AS col1
----
-570

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-826
SELECT - 17 + 47 DIV - + 38 AS col2
----
-18

skipif mysql # not compatible
query I rowsort label-826
SELECT - 17 + 47 / - + 38 AS col2
----
-18

query I rowsort
SELECT - 76 - + - 38 AS col0
----
-38

query I rowsort
SELECT + 94 * + 7 AS col1
----
658

query II rowsort
SELECT ALL ( - 97 ) AS col0, - 10 + + + 49 AS col1
----
-97
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-830
SELECT + 37 + 65 + 18 - 92 * + 26 * COALESCE ( - NULLIF ( - 35, + 3 + + COALESCE ( CAST( ( + 79 ) AS SIGNED ), 36 + + 87 * - 52 * - 4, - ( + - 74 ), - ( 83 ) ) + 83 + + CASE WHEN NOT NULLIF ( - 82, + 47 ) IS NOT NULL THEN 31 + - 7 END * MIN( ALL 67 ) * + MIN( DISTINCT + 72 ) ), - 32 ) * 77 AS col1
----
-6446320

skipif mysql # not compatible
query I rowsort label-830
SELECT + 37 + 65 + 18 - 92 * + 26 * COALESCE ( - NULLIF ( - 35, + 3 + + COALESCE ( CAST ( ( + 79 ) AS INTEGER ), 36 + + 87 * - 52 * - 4, - ( + - 74 ), - ( 83 ) ) + 83 + + CASE WHEN NOT NULLIF ( - 82, + 47 ) IS NOT NULL THEN 31 + - 7 END * MIN ( ALL 67 ) * + MIN ( DISTINCT + 72 ) ), - 32 ) * 77 AS col1
----
-6446320

onlyif mysql # DIV for integer division: 
query I rowsort label-831
SELECT DISTINCT - 72 * - + 59 + - 44 + - 62 DIV - - 79 * 52
----
4204

skipif mysql # not compatible
query I rowsort label-831
SELECT DISTINCT - 72 * - + 59 + - 44 + - 62 / - - 79 * 52
----
4204

onlyif mysql # aggregate syntax: 
query I rowsort label-832
SELECT DISTINCT - 55 + + COUNT( * ) - + - 10 * COUNT( * ) + 17
----
-27

skipif mysql # not compatible
query I rowsort label-832
SELECT DISTINCT - 55 + + COUNT ( * ) - + - 10 * COUNT ( * ) + 17
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-833
SELECT - MAX( + 8 ) * - 60 * + 50 + + SUM( DISTINCT + 59 )
----
24059

skipif mysql # not compatible
query I rowsort label-833
SELECT - MAX ( + 8 ) * - 60 * + 50 + + SUM ( DISTINCT + 59 )
----
24059

onlyif mysql # aggregate syntax: 
query I rowsort label-834
SELECT - MAX( DISTINCT - 6 ) AS col0
----
6

skipif mysql # not compatible
query I rowsort label-834
SELECT - MAX ( DISTINCT - 6 ) AS col0
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-835
SELECT DISTINCT CAST( 82 AS SIGNED ) + 60 * + 8 + + 89
----
651

skipif mysql # not compatible
query I rowsort label-835
SELECT DISTINCT CAST ( 82 AS INTEGER ) + 60 * + 8 + + 89
----
651

onlyif mysql # aggregate syntax: 
query I rowsort label-836
SELECT - - NULLIF ( + + 50, + SUM( + - 81 ) ) AS col0
----
50

skipif mysql # not compatible
query I rowsort label-836
SELECT - - NULLIF ( + + 50, + SUM ( + - 81 ) ) AS col0
----
50

query I rowsort
SELECT + - 67 * - 45 * 81
----
244215

onlyif mysql # DIV for integer division: 
query II rowsort label-838
SELECT ALL 0 + 95 + - ( 84 ) + + 38 DIV 64 * + - NULLIF ( - 12, - + 24 * - 85 ) AS col0, CASE - + 42 WHEN - ( - 38 ) THEN + 97 * + 23 END
----
11
NULL

skipif mysql # not compatible
query II rowsort label-838
SELECT ALL 0 + 95 + - ( 84 ) + + 38 / 64 * + - NULLIF ( - 12, - + 24 * - 85 ) AS col0, CASE - + 42 WHEN - ( - 38 ) THEN + 97 * + 23 END
----
11
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-839
SELECT DISTINCT - 29 + - COUNT( * ) + - 75 DIV SUM( + CAST( 40 AS SIGNED ) ) DIV 1 * + 48 AS col1
----
-78

skipif mysql # not compatible
query I rowsort label-839
SELECT DISTINCT - 29 + - COUNT ( * ) + - 75 / SUM ( + CAST ( 40 AS INTEGER ) ) / 1 * + 48 AS col1
----
-78

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-840
SELECT ALL 14 DIV + + 15 * + 27 + - 18 * + 30 - + - 96 * + - COUNT( * )
----
-636

skipif mysql # not compatible
query I rowsort label-840
SELECT ALL 14 / + + 15 * + 27 + - 18 * + 30 - + - 96 * + - COUNT ( * )
----
-636

query I rowsort
SELECT ALL + 95 * + - 22 * + - 33
----
68970

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-842
SELECT - + CAST( + SUM( DISTINCT + 12 ) AS SIGNED ) DIV - + 23
----
0

skipif mysql # not compatible
query I rowsort label-842
SELECT - + CAST ( + SUM ( DISTINCT + 12 ) AS INTEGER ) / - + 23
----
0

query I rowsort
SELECT + + 40 * - 11 AS col0
----
-440

onlyif mysql # aggregate syntax: 
query I rowsort label-844
SELECT + ( 76 ) - + COUNT( * ) + - 40 AS col0
----
35

skipif mysql # not compatible
query I rowsort label-844
SELECT + ( 76 ) - + COUNT ( * ) + - 40 AS col0
----
35

onlyif mysql # aggregate syntax: 
query II rowsort label-845
SELECT ALL + NULLIF ( - MIN( - 26 ), - 76 + COUNT( * ) ) AS col1, 57 AS col2
----
26
57

skipif mysql # not compatible
query II rowsort label-845
SELECT ALL + NULLIF ( - MIN ( - 26 ), - 76 + COUNT ( * ) ) AS col1, 57 AS col2
----
26
57

query I rowsort
SELECT ( 34 ) col1
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-847
SELECT 4 * + 47 + + - 32 * - COUNT( * ) AS col0
----
220

skipif mysql # not compatible
query I rowsort label-847
SELECT 4 * + 47 + + - 32 * - COUNT ( * ) AS col0
----
220

query I rowsort
SELECT + 48 * + ( - 84 )
----
-4032

query I rowsort
SELECT - 54 * + 40 AS col2
----
-2160

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

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

query I rowsort
SELECT ALL + CASE - + 15 WHEN 56 THEN + 77 * 32 + + + 80 * ( - + 89 ) ELSE + - 16 END AS col0
----
-16

query I rowsort
SELECT 2 + + + 45
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-853
SELECT ALL - 95 * COUNT( * ) AS col0
----
-95

skipif mysql # not compatible
query I rowsort label-853
SELECT ALL - 95 * COUNT ( * ) AS col0
----
-95

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-855
SELECT DISTINCT - COUNT( DISTINCT + 20 ) + + 90 AS col1
----
89

skipif mysql # not compatible
query I rowsort label-855
SELECT DISTINCT - COUNT ( DISTINCT + 20 ) + + 90 AS col1
----
89

query II rowsort
SELECT DISTINCT 85 AS col1, 51 AS col2
----
85
51

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-857
SELECT 27 DIV - COALESCE ( - + 13, + + AVG ( ALL - 30 ), + 25 * - - 31 * + 88 - NULLIF ( + COUNT( * ), - MAX( 97 ) ), 94 ) AS col2, + 3 DIV - - 88 + + 87
----
2
87

skipif mysql # not compatible
query II rowsort label-857
SELECT 27 / - COALESCE ( - + 13, + + AVG ( ALL - 30 ), + 25 * - - 31 * + 88 - NULLIF ( + COUNT ( * ), - MAX ( 97 ) ), 94 ) AS col2, + 3 / - - 88 + + 87
----
2
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-858
SELECT DISTINCT - AVG ( DISTINCT + + 0 ) + + - CAST( NULL AS SIGNED ) + - 24
----
NULL

skipif mysql # not compatible
query I rowsort label-858
SELECT DISTINCT - AVG ( DISTINCT + + 0 ) + + - CAST ( NULL AS INTEGER ) + - 24
----
NULL

query I rowsort
SELECT ALL + + 50 + + 59
----
109

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

query I rowsort
SELECT ALL ( - 33 ) * NULLIF ( - ( 7 ), + + 92 )
----
231

query I rowsort
SELECT - 14 + + 73 + 42 * - + 14 AS col2
----
-529

onlyif mysql # aggregate syntax: 
query I rowsort label-863
SELECT ALL + COALESCE ( - NULLIF ( + 37, - MAX( - 36 ) ), 53 * + 96, 97 ) + ( + 94 ) + - ( + - 86 )
----
143

skipif mysql # not compatible
query I rowsort label-863
SELECT ALL + COALESCE ( - NULLIF ( + 37, - MAX ( - 36 ) ), 53 * + 96, 97 ) + ( + 94 ) + - ( + - 86 )
----
143

query I rowsort
SELECT DISTINCT - + 45 * + 81
----
-3645

query I rowsort
SELECT ALL - 66 * + 6 AS col0
----
-396

query I rowsort
SELECT + 64 + - + 6 * + 86 * 30 AS col1
----
-15416

query I rowsort
SELECT ALL + 50 - - + 35 col0
----
85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-868
SELECT - NULLIF ( + 6, - CAST( 94 AS SIGNED ) ) AS col1
----
-6

skipif mysql # not compatible
query I rowsort label-868
SELECT - NULLIF ( + 6, - CAST ( 94 AS INTEGER ) ) AS col1
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-869
SELECT 48 + + 70 - - COUNT( * ) * 31
----
149

skipif mysql # not compatible
query I rowsort label-869
SELECT 48 + + 70 - - COUNT ( * ) * 31
----
149

onlyif mysql # aggregate syntax: 
query I rowsort label-870
SELECT ALL - CASE + - 20 WHEN - 97 + + COUNT( * ) THEN - + 52 / 50 END - 59 + - 57 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-870
SELECT ALL - CASE + - 20 WHEN - 97 + + COUNT ( * ) THEN - + 52 / 50 END - 59 + - 57 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-871
SELECT + - CASE 42 WHEN + COUNT( * ) + + 57 THEN NULL WHEN + COUNT( * ) THEN 15 / 35 + - NULLIF ( 17, + 57 ) + + 59 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-871
SELECT + - CASE 42 WHEN + COUNT ( * ) + + 57 THEN NULL WHEN + COUNT ( * ) THEN 15 / 35 + - NULLIF ( 17, + 57 ) + + 59 END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-872
SELECT + MIN( + 23 ) DIV - 20 - + 24 + - + 17 * + + CAST( + 26 AS SIGNED ) + + + SUM( ALL - 72 ) col1
----
-539

skipif mysql # not compatible
query I rowsort label-872
SELECT + MIN ( + 23 ) / - 20 - + 24 + - + 17 * + + CAST ( + 26 AS INTEGER ) + + + SUM ( ALL - 72 ) col1
----
-539

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-873
SELECT - 0 * + + 54 * + 66 AS col2, + CAST( NULL AS SIGNED )
----
0
NULL

skipif mysql # not compatible
query II rowsort label-873
SELECT - 0 * + + 54 * + 66 AS col2, + CAST ( NULL AS INTEGER )
----
0
NULL

query I rowsort
SELECT ALL + 99 - - + ( 93 )
----
192

query I rowsort
SELECT ALL 78 - - - 60 * - 24 AS col1
----
1518

onlyif mysql # aggregate syntax: 
query I rowsort label-876
SELECT COUNT( DISTINCT - 17 ) * - - 2 col0
----
2

skipif mysql # not compatible
query I rowsort label-876
SELECT COUNT ( DISTINCT - 17 ) * - - 2 col0
----
2

onlyif mysql # DIV for integer division: 
query II rowsort label-877
SELECT ALL 90 DIV 6 AS col0, + 75
----
15
75

skipif mysql # not compatible
query II rowsort label-877
SELECT ALL 90 / 6 AS col0, + 75
----
15
75

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-878
SELECT 99 * + CAST( NULL AS DECIMAL ) * COALESCE ( + - CAST( NULL AS SIGNED ), + 9 ) + + ( 51 )
----
NULL

skipif mysql # not compatible
query I rowsort label-878
SELECT 99 * + CAST ( NULL AS REAL ) * COALESCE ( + - CAST ( NULL AS INTEGER ), + 9 ) + + ( 51 )
----
NULL

query I rowsort
SELECT ALL 25 * - 81
----
-2025

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-880
SELECT ALL 42 * + CAST( NULL AS DECIMAL ) * - 5 * - 84 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-880
SELECT ALL 42 * + CAST ( NULL AS REAL ) * - 5 * - 84 AS col0
----
NULL

query I rowsort
SELECT ( - 3 ) * 45 - + 62
----
-197

query I rowsort
SELECT 21 + + 53 AS col0
----
74

query I rowsort
SELECT - 87 * 38 + - + 76
----
-3382

onlyif mysql # aggregate syntax: 
query I rowsort label-884
SELECT - 49 * - + 0 * + NULLIF ( - 18, + - 50 ) + - - 0 + + COUNT( * ) - - - 61 * 88 * + - 11
----
59049

skipif mysql # not compatible
query I rowsort label-884
SELECT - 49 * - + 0 * + NULLIF ( - 18, + - 50 ) + - - 0 + + COUNT ( * ) - - - 61 * 88 * + - 11
----
59049

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-885
SELECT ALL - 47 AS col0, 86 + + 69 + - 50 * - ( + CAST( NULL AS SIGNED ) )
----
-47
NULL

skipif mysql # not compatible
query II rowsort label-885
SELECT ALL - 47 AS col0, 86 + + 69 + - 50 * - ( + CAST ( NULL AS INTEGER ) )
----
-47
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-886
SELECT DISTINCT - 50, 98 + + ( - + COALESCE ( 27, - 85, - + 61 DIV - ( + - COUNT( * ) ) + - 38 + + COUNT( * ) DIV + + 45 ) ) col2
----
-50
71

skipif mysql # not compatible
query II rowsort label-886
SELECT DISTINCT - 50, 98 + + ( - + COALESCE ( 27, - 85, - + 61 / - ( + - COUNT ( * ) ) + - 38 + + COUNT ( * ) / + + 45 ) ) col2
----
-50
71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-887
SELECT CAST( NULL AS SIGNED ) * CASE - + 58 WHEN + + 55 + - - 84 THEN + 45 WHEN - - 8 THEN MAX( 87 ) + - 93 ELSE - - 17 END * - - 29 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-887
SELECT CAST ( NULL AS INTEGER ) * CASE - + 58 WHEN + + 55 + - - 84 THEN + 45 WHEN - - 8 THEN MAX ( 87 ) + - 93 ELSE - - 17 END * - - 29 col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-888
SELECT ALL + ( - + COALESCE ( - 73, 0 * 29 DIV + + AVG ( DISTINCT - - 35 ) * + 40 + - 3 ) ) * 92
----
6716

skipif mysql # not compatible
query I rowsort label-888
SELECT ALL + ( - + COALESCE ( - 73, 0 * 29 / + + AVG ( DISTINCT - - 35 ) * + 40 + - 3 ) ) * 92
----
6716

query II rowsort
SELECT 0 AS col0, + 20 AS col0
----
0
20

query I rowsort
SELECT ALL 35 + 76 + + - 23 + + ( - 57 )
----
31

query I rowsort
SELECT ALL - 64 + - 84 * + 24 AS col2
----
-2080

query III rowsort
SELECT ALL 91 AS col2, + 48 col1, + - 50 AS col2
----
91
48
-50

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

query I rowsort
SELECT 37 * - 99
----
-3663

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

query II rowsort
SELECT 4 AS col0, - 65 * + 29
----
4
-1885

query I rowsort
SELECT ALL - - 22 + - 73
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-898
SELECT COUNT( 12 ) + + + 38 + - 77
----
-38

skipif mysql # not compatible
query I rowsort label-898
SELECT COUNT ( 12 ) + + + 38 + - 77
----
-38

onlyif mysql # aggregate syntax: 
query II rowsort label-899
SELECT ALL SUM( ALL - + 52 ) * - 74 * + 61 AS col0, - NULLIF ( + - 86, - + 50 ) AS col0
----
234728
86

skipif mysql # not compatible
query II rowsort label-899
SELECT ALL SUM ( ALL - + 52 ) * - 74 * + 61 AS col0, - NULLIF ( + - 86, - + 50 ) AS col0
----
234728
86

query II rowsort
SELECT DISTINCT 84 AS col2, 9 + 74 col1
----
84
83

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

skipif mysql # not compatible
query I rowsort label-901
SELECT ALL + 40 + + COUNT ( * ) AS col1
----
41

query I rowsort
SELECT DISTINCT + 29 * 17 + 6 * 25
----
643

query I rowsort
SELECT DISTINCT + + 80 - - 12 AS col2
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-904
SELECT + COUNT( * ) * 68 + + 6
----
74

skipif mysql # not compatible
query I rowsort label-904
SELECT + COUNT ( * ) * 68 + + 6
----
74

query II rowsort
SELECT - 12, - 12
----
-12
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-906
SELECT ALL + 79 - - ( + - MIN( 96 ) )
----
-17

skipif mysql # not compatible
query I rowsort label-906
SELECT ALL + 79 - - ( + - MIN ( 96 ) )
----
-17

query I rowsort
SELECT ALL ( - 9 ) AS col2
----
-9

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

skipif mysql # not compatible
query I rowsort label-908
SELECT - SUM ( ALL - - 62 )
----
-62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-909
SELECT 16 + - - 40 + COUNT( * ) + NULLIF ( + 76, - COALESCE ( + 75, + - CAST( + + ( - 34 ) AS SIGNED ), ( + + 98 ) + - 77 * + 15 + 87 ) ) + 31, 91 col2
----
164
91

skipif mysql # not compatible
query II rowsort label-909
SELECT 16 + - - 40 + COUNT ( * ) + NULLIF ( + 76, - COALESCE ( + 75, + - CAST ( + + ( - 34 ) AS INTEGER ), ( + + 98 ) + - 77 * + 15 + 87 ) ) + 31, 91 col2
----
164
91

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

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

query I rowsort
SELECT - 6 * 87 + - 47 + COALESCE ( 48, - 87, - 5 ) * + 57 AS col1
----
2167

query I rowsort
SELECT 63 * - + 62 * - 39
----
152334

query II rowsort
SELECT ALL + 29 * - NULLIF ( - 61, - 81 ) AS col1, 49
----
1769
49

query II rowsort
SELECT - 46 AS col1, - 53
----
-46
-53

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-916
SELECT - - CASE + 61 WHEN - 0 + - 77 + NULLIF ( + 45, + - CAST( NULL AS SIGNED ) * 19 + - COUNT( * ) ) THEN - - 2 WHEN 71 - 32 THEN + COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-916
SELECT - - CASE + 61 WHEN - 0 + - 77 + NULLIF ( + 45, + - CAST ( NULL AS INTEGER ) * 19 + - COUNT ( * ) ) THEN - - 2 WHEN 71 - 32 THEN + COUNT ( * ) END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-917
SELECT DISTINCT + 85 DIV + 30 + + 79 AS col2
----
81

skipif mysql # not compatible
query I rowsort label-917
SELECT DISTINCT + 85 / + 30 + + 79 AS col2
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-918
SELECT CASE + + 92 WHEN 50 THEN COUNT( * ) WHEN + 71 THEN + NULLIF ( + 93, 13 + - 44 ) WHEN + - 79 * - - 26 * - 10 + + 89 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-918
SELECT CASE + + 92 WHEN 50 THEN COUNT ( * ) WHEN + 71 THEN + NULLIF ( + 93, 13 + - 44 ) WHEN + - 79 * - - 26 * - 10 + + 89 THEN NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-919
SELECT 40 DIV + 28 + + + 32
----
33

skipif mysql # not compatible
query I rowsort label-919
SELECT 40 / + 28 + + + 32
----
33

query I rowsort
SELECT DISTINCT - CASE - 6 WHEN + 8 + + + 54 + - - 79 THEN 47 END AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-921
SELECT COALESCE ( - 81, - COUNT( * ) * - 4 * + 92 DIV - 67 + + - 20 ) AS col0
----
-81

skipif mysql # not compatible
query I rowsort label-921
SELECT COALESCE ( - 81, - COUNT ( * ) * - 4 * + 92 / - 67 + + - 20 ) AS col0
----
-81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-922
SELECT ALL + 93 * COUNT( DISTINCT + - 9 ) + - ( - + 32 ) + + 54 + 1 + - 47 DIV + 19 + - ( ( - 0 ) ) AS col0
----
178

skipif mysql # not compatible
query I rowsort label-922
SELECT ALL + 93 * COUNT ( DISTINCT + - 9 ) + - ( - + 32 ) + + 54 + 1 + - 47 / + 19 + - ( ( - 0 ) ) AS col0
----
178

onlyif mysql # aggregate syntax: 
query I rowsort label-923
SELECT - 1 - - MIN( DISTINCT 30 ) AS col2
----
29

skipif mysql # not compatible
query I rowsort label-923
SELECT - 1 - - MIN ( DISTINCT 30 ) AS col2
----
29

query I rowsort
SELECT + NULLIF ( 16, 1 ) AS col1
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-925
SELECT ALL + 43 * COUNT( * ) + + 86
----
129

skipif mysql # not compatible
query I rowsort label-925
SELECT ALL + 43 * COUNT ( * ) + + 86
----
129

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-927
SELECT DISTINCT + 83 * 60 + + CAST( - + 21 AS SIGNED ) AS col0
----
4959

skipif mysql # not compatible
query I rowsort label-927
SELECT DISTINCT + 83 * 60 + + CAST ( - + 21 AS INTEGER ) AS col0
----
4959

query I rowsort
SELECT 78 * - 90 + + - NULLIF ( + 63, + 59 ) - 61 * + - 45 * 14 AS col2
----
31347

query II rowsort
SELECT + 23 - + 63, - ( 42 ) + + - 48 AS col1
----
-40
-90

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-930
SELECT DISTINCT CAST( - 6 AS SIGNED ) * + 27 AS col1, + 69
----
-162
69

skipif mysql # not compatible
query II rowsort label-930
SELECT DISTINCT CAST ( - 6 AS INTEGER ) * + 27 AS col1, + 69
----
-162
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-931
SELECT + 11 * ( + - 48 ) * AVG ( - + ( - 91 ) ) - - - CASE - - SUM( ALL - 12 ) WHEN - 52 THEN NULL ELSE + + CASE + 29 WHEN - - 92 THEN + 45 WHEN - 47 + COUNT( * ) THEN NULL END * - - COUNT( * ) * - + CAST( NULL AS SIGNED ) + ( - 13 ) - - 5 * + 17 / - ( + - 81 ) END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-931
SELECT + 11 * ( + - 48 ) * AVG ( - + ( - 91 ) ) - - - CASE - - SUM ( ALL - 12 ) WHEN - 52 THEN NULL ELSE + + CASE + 29 WHEN - - 92 THEN + 45 WHEN - 47 + COUNT ( * ) THEN NULL END * - - COUNT ( * ) * - + CAST ( NULL AS INTEGER ) + ( - 13 ) - - 5 * + 17 / - ( + - 81 ) END col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-932
SELECT + 74 + - ( + CAST( NULL AS SIGNED ) ) - 31
----
NULL

skipif mysql # not compatible
query I rowsort label-932
SELECT + 74 + - ( + CAST ( NULL AS INTEGER ) ) - 31
----
NULL

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

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

query I rowsort
SELECT + 87 + - 57 AS col1
----
30

query II rowsort
SELECT ALL - 91 + + - 65 col2, - 59
----
-156
-59

onlyif mysql # DIV for integer division: 
query I rowsort label-936
SELECT ALL - 85 DIV + 98 * + 25 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-936
SELECT ALL - 85 / + 98 * + 25 AS col1
----
0

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-939
SELECT DISTINCT + + 78 * - COUNT( * ) + - 70 + + 39
----
-109

skipif mysql # not compatible
query I rowsort label-939
SELECT DISTINCT + + 78 * - COUNT ( * ) + - 70 + + 39
----
-109

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

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

query I rowsort
SELECT + 3 * - + 59 AS col2
----
-177

query I rowsort
SELECT - + 78 + + 72 AS col1
----
-6

onlyif mysql # DIV for integer division: 
query I rowsort label-943
SELECT ALL + COALESCE ( + 33, + 25 DIV 86 DIV - + 57 ) AS col1
----
33

skipif mysql # not compatible
query I rowsort label-943
SELECT ALL + COALESCE ( + 33, + 25 / 86 / - + 57 ) AS col1
----
33

onlyif mysql # aggregate syntax: 
query II rowsort label-944
SELECT ALL - ( + NULLIF ( + + NULLIF ( - 84, - ( - 82 ) ), - 53 ) ), NULLIF ( - 89, + + MAX( DISTINCT - 38 ) ) col2
----
84
-89

skipif mysql # not compatible
query II rowsort label-944
SELECT ALL - ( + NULLIF ( + + NULLIF ( - 84, - ( - 82 ) ), - 53 ) ), NULLIF ( - 89, + + MAX ( DISTINCT - 38 ) ) col2
----
84
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-945
SELECT - - 3 + + COUNT( * ) + 5
----
9

skipif mysql # not compatible
query I rowsort label-945
SELECT - - 3 + + COUNT ( * ) + 5
----
9

query I rowsort
SELECT - + 29 * 15 * - + 74 col2
----
32190

query I rowsort
SELECT - 61 - + + ( + 77 )
----
-138

query I rowsort
SELECT ALL CASE + 41 WHEN - COALESCE ( - 61, + 33 / - 92 / - 3 ) THEN - + 6 WHEN 10 THEN NULL END col0
----
NULL

query I rowsort
SELECT - 37 + NULLIF ( - - 44, - 40 ) AS col0
----
7

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

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

query I rowsort
SELECT - 13 + + 33 + 47 * + + 9
----
443

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

onlyif mysql # DIV for integer division: 
query I rowsort label-953
SELECT DISTINCT - 63 DIV - 54
----
1

skipif mysql # not compatible
query I rowsort label-953
SELECT DISTINCT - 63 / - 54
----
1

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

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

query I rowsort
SELECT - 77 + 64
----
-13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-956
SELECT ALL - CAST( NULL AS SIGNED ) * 7
----
NULL

skipif mysql # not compatible
query I rowsort label-956
SELECT ALL - CAST ( NULL AS INTEGER ) * 7
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-957
SELECT CAST( NULL AS SIGNED ) AS col1, ( + 62 )
----
NULL
62

skipif mysql # not compatible
query II rowsort label-957
SELECT CAST ( NULL AS INTEGER ) AS col1, ( + 62 )
----
NULL
62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-958
SELECT DISTINCT - 55 / CAST( NULL AS SIGNED ) + + 42 + - 36 * + COALESCE ( 90, + + 15 + + 95 + + ( 27 ), - 22 ) * + 5 - - - 94 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-958
SELECT DISTINCT - 55 / CAST ( NULL AS INTEGER ) + + 42 + - 36 * + COALESCE ( 90, + + 15 + + 95 + + ( 27 ), - 22 ) * + 5 - - - 94 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-959
SELECT ALL + 72 DIV CAST( - - 39 AS SIGNED ) + - + 70
----
-69

skipif mysql # not compatible
query I rowsort label-959
SELECT ALL + 72 / CAST ( - - 39 AS INTEGER ) + - + 70
----
-69

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-960
SELECT DISTINCT + 16 DIV + 73 + - + 43 * + 4 * CAST( 82 AS SIGNED ) AS col1, 39 + 1 + + 7 AS col2
----
-14104
47

skipif mysql # not compatible
query II rowsort label-960
SELECT DISTINCT + 16 / + 73 + - + 43 * + 4 * CAST ( 82 AS INTEGER ) AS col1, 39 + 1 + + 7 AS col2
----
-14104
47

query I rowsort
SELECT - 18 * + 65 AS col0
----
-1170

onlyif mysql # DIV for integer division: 
query I rowsort label-962
SELECT - 28 DIV - 66 + - + 67 + 56 + + + 35
----
24

skipif mysql # not compatible
query I rowsort label-962
SELECT - 28 / - 66 + - + 67 + 56 + + + 35
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-963
SELECT ( - + CASE 27 WHEN + + 38 THEN NULL WHEN 19 - COUNT( * ) THEN + 12 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-963
SELECT ( - + CASE 27 WHEN + + 38 THEN NULL WHEN 19 - COUNT ( * ) THEN + 12 END )
----
NULL

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-966
SELECT + ( NULLIF ( - + CAST( - 2 AS SIGNED ), - + COALESCE ( - 3, 2 * - 85 ) + - 17 ) ) * - COUNT( * )
----
-2

skipif mysql # not compatible
query I rowsort label-966
SELECT + ( NULLIF ( - + CAST ( - 2 AS INTEGER ), - + COALESCE ( - 3, 2 * - 85 ) + - 17 ) ) * - COUNT ( * )
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-967
SELECT DISTINCT 30 * - - COUNT( * ) * - + CASE - ( + - 72 ) WHEN 87 * - - 3 THEN + + 30 + SUM( DISTINCT + 24 ) + - COUNT( * ) * + + MAX( ALL + - 49 ) - 71 END / 24 - + 59 + + 27 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-967
SELECT DISTINCT 30 * - - COUNT ( * ) * - + CASE - ( + - 72 ) WHEN 87 * - - 3 THEN + + 30 + SUM ( DISTINCT + 24 ) + - COUNT ( * ) * + + MAX ( ALL + - 49 ) - 71 END / 24 - + 59 + + 27 AS col2
----
NULL

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

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

query II rowsort
SELECT + 1 AS col1, - 12 AS col2
----
1
-12

query I rowsort
SELECT + 94 * 70 + + 22 AS col2
----
6602

onlyif mysql # DIV for integer division: 
query I rowsort label-971
SELECT DISTINCT 38 * - + 43 * + - 75 - + 5 DIV - ( - 88 ) AS col2
----
122550

skipif mysql # not compatible
query I rowsort label-971
SELECT DISTINCT 38 * - + 43 * + - 75 - + 5 / - ( - 88 ) AS col2
----
122550

onlyif mysql # DIV for integer division: 
query I rowsort label-972
SELECT + 21 DIV + 68 * - 95 + - + 77 + + 19 AS col2
----
-58

skipif mysql # not compatible
query I rowsort label-972
SELECT + 21 / + 68 * - 95 + - + 77 + + 19 AS col2
----
-58

query I rowsort
SELECT - + 73 * + + 65
----
-4745

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-974
SELECT + 71 * 79 + 90 + + 74 / + 16 * - 92 / - - 82 + + + CASE + + 19 WHEN - ( - MAX( + - 79 ) ) * - 40 + + + 47 - - CAST( + - NULLIF ( SUM( + + 40 ), COUNT( * ) ) AS DECIMAL ) THEN - 49 + 61 * - 68 END * + 28 * + 25 - - 34
----
NULL

skipif mysql # not compatible
query I rowsort label-974
SELECT + 71 * 79 + 90 + + 74 / + 16 * - 92 / - - 82 + + + CASE + + 19 WHEN - ( - MAX ( + - 79 ) ) * - 40 + + + 47 - - CAST ( + - NULLIF ( SUM ( + + 40 ), COUNT ( * ) ) AS REAL ) THEN - 49 + 61 * - 68 END * + 28 * + 25 - - 34
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-975
SELECT - 5 * 50 - - - AVG ( + 15 ) - 15 + - - 91 + NULLIF ( + ( CAST( NULL AS SIGNED ) ), - 7 * - - 90 ) * 82 * 58
----
NULL

skipif mysql # not compatible
query I rowsort label-975
SELECT - 5 * 50 - - - AVG ( + 15 ) - 15 + - - 91 + NULLIF ( + ( CAST ( NULL AS INTEGER ) ), - 7 * - - 90 ) * 82 * 58
----
NULL

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

skipif mysql # not compatible
query I rowsort label-976
SELECT ALL + 18 * + - CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT DISTINCT 62 * - 43 + - 48
----
-2714

onlyif mysql # DIV for integer division: 
query I rowsort label-978
SELECT DISTINCT 36 DIV + ( - 50 ) + - 44 AS col2
----
-44

skipif mysql # not compatible
query I rowsort label-978
SELECT DISTINCT 36 / + ( - 50 ) + - 44 AS col2
----
-44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-979
SELECT DISTINCT CAST( 80 AS SIGNED )
----
80

skipif mysql # not compatible
query I rowsort label-979
SELECT DISTINCT CAST ( 80 AS INTEGER )
----
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-980
SELECT ALL - 47 + 70 - 6 * 10 * - CAST( NULL AS SIGNED ) * COALESCE ( + 1, - 17, - 5 ) + + 34
----
NULL

skipif mysql # not compatible
query I rowsort label-980
SELECT ALL - 47 + 70 - 6 * 10 * - CAST ( NULL AS INTEGER ) * COALESCE ( + 1, - 17, - 5 ) + + 34
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-981
SELECT + - 41 + + CAST( ( + - 96 ) AS SIGNED ) DIV 9 * 61 + - 45
----
-696

skipif mysql # not compatible
query I rowsort label-981
SELECT + - 41 + + CAST ( ( + - 96 ) AS INTEGER ) / 9 * 61 + - 45
----
-696

onlyif mysql # aggregate syntax: 
query I rowsort label-982
SELECT + CASE - + 87 WHEN + 95 * - 27 THEN + - COUNT( ALL + 38 ) WHEN + COUNT( * ) THEN NULL WHEN AVG ( 94 ) THEN NULL END * + 35 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-982
SELECT + CASE - + 87 WHEN + 95 * - 27 THEN + - COUNT ( ALL + 38 ) WHEN + COUNT ( * ) THEN NULL WHEN AVG ( 94 ) THEN NULL END * + 35 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-983
SELECT - + 66 + + ( - 64 ) DIV 81 * 12 col2
----
-66

skipif mysql # not compatible
query I rowsort label-983
SELECT - + 66 + + ( - 64 ) / 81 * 12 col2
----
-66

query I rowsort
SELECT ALL 20 + + - 47
----
-27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-985
SELECT ALL + ( 75 ) + + 83 + + 8 + + 73 * CAST( NULL AS SIGNED ) * ( + - COUNT( * ) ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-985
SELECT ALL + ( 75 ) + + 83 + + 8 + + 73 * CAST ( NULL AS INTEGER ) * ( + - COUNT ( * ) ) col0
----
NULL

query I rowsort
SELECT 2 * 54 col1
----
108

onlyif mysql # aggregate syntax: 
query I rowsort label-987
SELECT 37 + + MIN( + - 83 ) AS col2
----
-46

skipif mysql # not compatible
query I rowsort label-987
SELECT 37 + + MIN ( + - 83 ) AS col2
----
-46

query I rowsort
SELECT DISTINCT 25 + + + 11 * 26 AS col1
----
311

onlyif mysql # DIV for integer division: 
query I rowsort label-989
SELECT 21 DIV - - 1
----
21

skipif mysql # not compatible
query I rowsort label-989
SELECT 21 / - - 1
----
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-990
SELECT ALL 60 + + CASE - - 13 WHEN + - 98 THEN + 58 * - - 42 - + - MIN( + CAST( NULL AS SIGNED ) ) ELSE - 40 + 7 * + + NULLIF ( - 93, - 62 / + 19 - - + 95 ) * - 49 * - COUNT( DISTINCT - 19 ) END AS col2
----
-31879

skipif mysql # not compatible
query I rowsort label-990
SELECT ALL 60 + + CASE - - 13 WHEN + - 98 THEN + 58 * - - 42 - + - MIN ( + CAST ( NULL AS INTEGER ) ) ELSE - 40 + 7 * + + NULLIF ( - 93, - 62 / + 19 - - + 95 ) * - 49 * - COUNT ( DISTINCT - 19 ) END AS col2
----
-31879

onlyif mysql # aggregate syntax: 
query I rowsort label-991
SELECT DISTINCT COUNT( * ) + ( - 24 )
----
-23

skipif mysql # not compatible
query I rowsort label-991
SELECT DISTINCT COUNT ( * ) + ( - 24 )
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-992
SELECT ALL + 78 + - 21 + 36 * + COUNT( * ) + - + COUNT( * ) + - 95 + - CASE - + 93 WHEN + SUM( + 13 ) * + 32 + - COUNT( * ) / + + 89 THEN 81 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-992
SELECT ALL + 78 + - 21 + 36 * + COUNT ( * ) + - + COUNT ( * ) + - 95 + - CASE - + 93 WHEN + SUM ( + 13 ) * + 32 + - COUNT ( * ) / + + 89 THEN 81 ELSE NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-993
SELECT 14 DIV 44 + 81 * - ( 38 ) AS col1
----
-3078

skipif mysql # not compatible
query I rowsort label-993
SELECT 14 / 44 + 81 * - ( 38 ) AS col1
----
-3078

query I rowsort
SELECT 46 * 11 * - 97
----
-49082

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-995
SELECT CAST( NULL AS SIGNED ) + - MIN( 44 ) * - - 31 + + + 19 + 1
----
NULL

skipif mysql # not compatible
query I rowsort label-995
SELECT CAST ( NULL AS INTEGER ) + - MIN ( 44 ) * - - 31 + + + 19 + 1
----
NULL

query I rowsort
SELECT ALL + 78 - + - 97
----
175

query II rowsort
SELECT ALL - 15 * + - 74 AS col2, 14
----
1110
14

onlyif mysql # DIV for integer division: 
query I rowsort label-998
SELECT 36 - - - 81 DIV 17 AS col1
----
32

skipif mysql # not compatible
query I rowsort label-998
SELECT 36 - - - 81 / 17 AS col1
----
32

onlyif mysql # DIV for integer division: 
query I rowsort label-999
SELECT DISTINCT - 33 DIV + 51 col2
----
0

skipif mysql # not compatible
query I rowsort label-999
SELECT DISTINCT - 33 / + 51 col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1000
SELECT - CASE - - ( + CAST( + COALESCE ( 62, - - 78 ) AS SIGNED ) ) WHEN + 14 THEN + - 76 END + + 65 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1000
SELECT - CASE - - ( + CAST ( + COALESCE ( 62, - - 78 ) AS INTEGER ) ) WHEN + 14 THEN + - 76 END + + 65 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1001
SELECT ALL - - COUNT( * ) * - 4 * + 99
----
-396

skipif mysql # not compatible
query I rowsort label-1001
SELECT ALL - - COUNT ( * ) * - 4 * + 99
----
-396

query I rowsort
SELECT DISTINCT - + 99 * 78
----
-7722

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1003
SELECT - 65 * - - CAST( NULL AS SIGNED ) * + 28 + + - 57 + - 89 / - 11 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1003
SELECT - 65 * - - CAST ( NULL AS INTEGER ) * + 28 + + - 57 + - 89 / - 11 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1004
SELECT 92 - - 43 + + 85 * + 15 * - - CAST( + - 25 AS SIGNED )
----
-31740

skipif mysql # not compatible
query I rowsort label-1004
SELECT 92 - - 43 + + 85 * + 15 * - - CAST ( + - 25 AS INTEGER )
----
-31740

onlyif mysql # aggregate syntax: 
query II rowsort label-1005
SELECT SUM( DISTINCT + + ( 44 ) ) + - 92 * 15 AS col0, + ( + COUNT( * ) ) - - - COUNT( * ) AS col1
----
-1336
0

skipif mysql # not compatible
query II rowsort label-1005
SELECT SUM ( DISTINCT + + ( 44 ) ) + - 92 * 15 AS col0, + ( + COUNT ( * ) ) - - - COUNT ( * ) AS col1
----
-1336
0

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

skipif mysql # not compatible
query I rowsort label-1006
SELECT ALL - - MAX ( - 21 )
----
-21

query I rowsort
SELECT ALL - 51 + ( + 20 ) AS col1
----
-31

onlyif mysql # aggregate syntax: 
query II rowsort label-1008
SELECT ALL + MIN( ALL - + 88 ) + - MIN( DISTINCT 59 ), - 84 AS col2
----
-147
-84

skipif mysql # not compatible
query II rowsort label-1008
SELECT ALL + MIN ( ALL - + 88 ) + - MIN ( DISTINCT 59 ), - 84 AS col2
----
-147
-84

onlyif mysql # aggregate syntax: 
query II rowsort label-1009
SELECT ALL 52 + + + COUNT( * ) AS col2, - 73 + + 8
----
53
-65

skipif mysql # not compatible
query II rowsort label-1009
SELECT ALL 52 + + + COUNT ( * ) AS col2, - 73 + + 8
----
53
-65

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1011
SELECT DISTINCT COALESCE ( - - COALESCE ( ( - 51 ), - 45 + 81 + + 19 * + 91 ), + 36 + + - 31 ) + MIN( DISTINCT + 84 ) AS col0, + 40
----
33
40

skipif mysql # not compatible
query II rowsort label-1011
SELECT DISTINCT COALESCE ( - - COALESCE ( ( - 51 ), - 45 + 81 + + 19 * + 91 ), + 36 + + - 31 ) + MIN ( DISTINCT + 84 ) AS col0, + 40
----
33
40

query I rowsort
SELECT ALL 14 + - + ( 97 )
----
-83

onlyif mysql # aggregate syntax: 
query II rowsort label-1013
SELECT 50, CASE WHEN NOT - COUNT( * ) IN ( - - 41 * + 92 * + + ( + + 10 ) + - MAX( DISTINCT + 74 ), + 14, + 11 * + COUNT( * ) * + ( - + CASE + 77 WHEN - 52 THEN + + 43 + + 71 + - AVG ( ALL + + 93 ) + 12 / - - COUNT( * ) ELSE NULL END ), COUNT( - 91 ) + + + 71 * + + CASE - + 53 WHEN - + 94 + - 39 - + - 10 + 13 + SUM( DISTINCT - + 24 ) THEN NULL WHEN - AVG ( ALL 53 ) THEN 76 ELSE - 17 END ) THEN - AVG ( ALL - ( + 63 ) ) END * + 62 AS col0
----
50
NULL

skipif mysql # not compatible
query II rowsort label-1013
SELECT 50, CASE WHEN NOT - COUNT ( * ) IN ( - - 41 * + 92 * + + ( + + 10 ) + - MAX ( DISTINCT + 74 ), + 14, + 11 * + COUNT ( * ) * + ( - + CASE + 77 WHEN - 52 THEN + + 43 + + 71 + - AVG ( ALL + + 93 ) + 12 / - - COUNT ( * ) ELSE NULL END ), COUNT ( - 91 ) + + + 71 * + + CASE - + 53 WHEN - + 94 + - 39 - + - 10 + 13 + SUM ( DISTINCT - + 24 ) THEN NULL WHEN - AVG ( ALL 53 ) THEN 76 ELSE - 17 END ) THEN - AVG ( ALL - ( + 63 ) ) END * + 62 AS col0
----
50
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1014
SELECT - 42, 24 + 98 + COUNT( + + 64 ) + - - ( - + 1 ) AS col0
----
-42
122

skipif mysql # not compatible
query II rowsort label-1014
SELECT - 42, 24 + 98 + COUNT ( + + 64 ) + - - ( - + 1 ) AS col0
----
-42
122

onlyif mysql # aggregate syntax: 
query I rowsort label-1015
SELECT 2 + + COUNT( * ) + + 46 * 81 * ( 88 ) AS col0
----
327891

skipif mysql # not compatible
query I rowsort label-1015
SELECT 2 + + COUNT ( * ) + + 46 * 81 * ( 88 ) AS col0
----
327891

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1016
SELECT DISTINCT - 64 + COUNT( ALL 97 ), - 33 + - + NULLIF ( - COUNT( * ), + 53 DIV - 27 ) AS col2
----
-63
NULL

skipif mysql # not compatible
query II rowsort label-1016
SELECT DISTINCT - 64 + COUNT ( ALL 97 ), - 33 + - + NULLIF ( - COUNT ( * ), + 53 / - 27 ) AS col2
----
-63
NULL

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

skipif mysql # not compatible
query I rowsort label-1017
SELECT ALL + COUNT ( * ) + - COUNT ( + ( 43 ) ) + 66 AS col2
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-1018
SELECT COUNT( * ) + + 95 * - - 35 * - 19 AS col1
----
-63174

skipif mysql # not compatible
query I rowsort label-1018
SELECT COUNT ( * ) + + 95 * - - 35 * - 19 AS col1
----
-63174

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1019
SELECT ALL CASE + ( + - SUM( - 18 ) ) WHEN + - 90 THEN SUM( DISTINCT CAST( + 36 AS SIGNED ) ) ELSE + 67 * + CASE - 40 WHEN + 76 * 96 * - - 71 - + 76 + 80 THEN + COALESCE ( - ( - + 91 ), 4 + + + ( 19 ) + + 78 ) * + - 12 - + 46 + + COUNT( * ) END END + + - COUNT( * ) * 63
----
NULL

skipif mysql # not compatible
query I rowsort label-1019
SELECT ALL CASE + ( + - SUM ( - 18 ) ) WHEN + - 90 THEN SUM ( DISTINCT CAST ( + 36 AS INTEGER ) ) ELSE + 67 * + CASE - 40 WHEN + 76 * 96 * - - 71 - + 76 + 80 THEN + COALESCE ( - ( - + 91 ), 4 + + + ( 19 ) + + 78 ) * + - 12 - + 46 + + COUNT ( * ) END END + + - COUNT ( * ) * 63
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1020
SELECT COALESCE ( + + COALESCE ( + 44, - + COUNT( * ), ( - CAST( NULL AS SIGNED ) ) + COUNT( * ) * + 82 * + + NULLIF ( + SUM( + 47 ), - COUNT( * ) ) ), 94 DIV 33 * - + 43 ) * 93 AS col2
----
4092

skipif mysql # not compatible
query I rowsort label-1020
SELECT COALESCE ( + + COALESCE ( + 44, - + COUNT ( * ), ( - CAST ( NULL AS INTEGER ) ) + COUNT ( * ) * + 82 * + + NULLIF ( + SUM ( + 47 ), - COUNT ( * ) ) ), 94 / 33 * - + 43 ) * 93 AS col2
----
4092

query I rowsort
SELECT 37 + + NULLIF ( 10, - 37 / + 9 + - 2 ) AS col2
----
47

query II rowsort
SELECT ALL 62 AS col1, 28 * - + 5 AS col1
----
62
-140

query II rowsort
SELECT 58 AS col2, + 57 * + 72
----
58
4104

onlyif mysql # DIV for integer division: 
query I rowsort label-1024
SELECT ( + + 70 ) + - + 53 * + COALESCE ( - + 80, + 92 * + 11 * + 2 DIV + 99, - - 35 ) * - 46 * - 39 AS col1
----
7606630

skipif mysql # not compatible
query I rowsort label-1024
SELECT ( + + 70 ) + - + 53 * + COALESCE ( - + 80, + 92 * + 11 * + 2 / + 99, - - 35 ) * - 46 * - 39 AS col1
----
7606630

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

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

query I rowsort
SELECT ALL 6 - + + 63 col0
----
-57

query I rowsort
SELECT 27 + 25 - - 47 - + 12
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-1028
SELECT 62 * - MAX( ALL - + 33 ) * 39 + 75 + + 9 * + 50 * - 49
----
57819

skipif mysql # not compatible
query I rowsort label-1028
SELECT 62 * - MAX ( ALL - + 33 ) * 39 + 75 + + 9 * + 50 * - 49
----
57819

query I rowsort
SELECT DISTINCT 53 * - NULLIF ( + 70, 51 )
----
-3710

query I rowsort
SELECT ALL - 20 * + 12 * - 56 AS col0
----
13440

query I rowsort
SELECT 46 + - 73 * - + 77 + 80 AS col1
----
5747

query I rowsort
SELECT ALL 70 * + 3
----
210

onlyif mysql # aggregate syntax: 
query I rowsort label-1033
SELECT COUNT( DISTINCT - + 58 ) * + - NULLIF ( + 85, - 99 ) * + 99
----
-8415

skipif mysql # not compatible
query I rowsort label-1033
SELECT COUNT ( DISTINCT - + 58 ) * + - NULLIF ( + 85, - 99 ) * + 99
----
-8415

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

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

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

skipif mysql # not compatible
query I rowsort label-1035
SELECT ALL - ( SUM ( - 83 ) )
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-1036
SELECT - 16 * MIN( DISTINCT + 54 ) + + 21 + + 48 + - 40 * + 15
----
-1395

skipif mysql # not compatible
query I rowsort label-1036
SELECT - 16 * MIN ( DISTINCT + 54 ) + + 21 + + 48 + - 40 * + 15
----
-1395

onlyif mysql # aggregate syntax: 
query II rowsort label-1037
SELECT + MIN( + 60 ) + + COUNT( * ) + + 52 - + + 50, 8 AS col2
----
63
8

skipif mysql # not compatible
query II rowsort label-1037
SELECT + MIN ( + 60 ) + + COUNT ( * ) + + 52 - + + 50, 8 AS col2
----
63
8

query II rowsort
SELECT + 97 AS col2, 66 + - + 12 AS col1
----
97
54

query I rowsort
SELECT 6 + 22 AS col0
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-1040
SELECT DISTINCT - SUM( - + 44 )
----
44

skipif mysql # not compatible
query I rowsort label-1040
SELECT DISTINCT - SUM ( - + 44 )
----
44

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1043
SELECT ALL 39 / - 68 * - CASE 88 WHEN 70 * + NULLIF ( - 8, + - 54 * - + 98 + - - 60 / 96 * - 72 * + SUM( DISTINCT + 73 ) + CASE - 81 WHEN - 0 * - 52 THEN - 95 END ) + - 86 THEN COALESCE ( - 81, - - 88 * 16 ) + + 23 WHEN - COUNT( * ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1043
SELECT ALL 39 / - 68 * - CASE 88 WHEN 70 * + NULLIF ( - 8, + - 54 * - + 98 + - - 60 / 96 * - 72 * + SUM ( DISTINCT + 73 ) + CASE - 81 WHEN - 0 * - 52 THEN - 95 END ) + - 86 THEN COALESCE ( - 81, - - 88 * 16 ) + + 23 WHEN - COUNT ( * ) THEN NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1044
SELECT COALESCE ( + 25, + 43 DIV 79 * 19 - - 45 ) DIV - 28 - 32 - 13 AS col2
----
-45

skipif mysql # not compatible
query I rowsort label-1044
SELECT COALESCE ( + 25, + 43 / 79 * 19 - - 45 ) / - 28 - 32 - 13 AS col2
----
-45

query I rowsort
SELECT DISTINCT + - 96 + 95
----
-1

query I rowsort
SELECT ALL - 21 * 42 AS col0
----
-882

query I rowsort
SELECT ALL - 10 + + - 18 AS col0
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-1048
SELECT ALL + + 46 + SUM( DISTINCT + 22 ) + 86 AS col2
----
154

skipif mysql # not compatible
query I rowsort label-1048
SELECT ALL + + 46 + SUM ( DISTINCT + 22 ) + 86 AS col2
----
154

query I rowsort
SELECT + ( + 3 ) col2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1050
SELECT ALL + + 29 * + - COUNT( * ) * 53 + + COUNT( * )
----
-1536

skipif mysql # not compatible
query I rowsort label-1050
SELECT ALL + + 29 * + - COUNT ( * ) * 53 + + COUNT ( * )
----
-1536

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1051
SELECT - + NULLIF ( - COUNT( * ), + 51 + + + ( - 68 ) ) DIV 2 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1051
SELECT - + NULLIF ( - COUNT ( * ), + 51 + + + ( - 68 ) ) / 2 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1052
SELECT ALL + ( + 20 ) + - COUNT( * ) + - + 84 AS col0
----
-65

skipif mysql # not compatible
query I rowsort label-1052
SELECT ALL + ( + 20 ) + - COUNT ( * ) + - + 84 AS col0
----
-65

query I rowsort
SELECT + 25 * - 41 + + 59 col2
----
-966

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1054
SELECT DISTINCT COALESCE ( - CAST( NULL AS SIGNED ), - 91, + + CASE + 94 WHEN 99 * 80 THEN NULL WHEN + 2 THEN NULL ELSE + COUNT( * ) END * + - 81 ) col2, 84 AS col2
----
-91
84

skipif mysql # not compatible
query II rowsort label-1054
SELECT DISTINCT COALESCE ( - CAST ( NULL AS INTEGER ), - 91, + + CASE + 94 WHEN 99 * 80 THEN NULL WHEN + 2 THEN NULL ELSE + COUNT ( * ) END * + - 81 ) col2, 84 AS col2
----
-91
84

onlyif mysql # aggregate syntax: 
query I rowsort label-1055
SELECT COUNT( * ) * - 61 - - - ( + + 85 ) + 68
----
-78

skipif mysql # not compatible
query I rowsort label-1055
SELECT COUNT ( * ) * - 61 - - - ( + + 85 ) + 68
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-1056
SELECT ALL COALESCE ( - 51, MAX( DISTINCT + 13 ) + 21 + - 68 + COUNT( * ) * - 32 * 48, - - 98 )
----
-51

skipif mysql # not compatible
query I rowsort label-1056
SELECT ALL COALESCE ( - 51, MAX ( DISTINCT + 13 ) + 21 + - 68 + COUNT ( * ) * - 32 * 48, - - 98 )
----
-51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1057
SELECT DISTINCT CAST( NULL AS SIGNED ) + - 37 AS col2, - COUNT( * ) + - 21
----
NULL
-22

skipif mysql # not compatible
query II rowsort label-1057
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - 37 AS col2, - COUNT ( * ) + - 21
----
NULL
-22

query I rowsort
SELECT DISTINCT COALESCE ( + 33, - 18 )
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-1059
SELECT ALL CASE 19 WHEN - COUNT( * ) + - 76 - - + 94 THEN NULL ELSE - SUM( DISTINCT - 26 ) END col1
----
26

skipif mysql # not compatible
query I rowsort label-1059
SELECT ALL CASE 19 WHEN - COUNT ( * ) + - 76 - - + 94 THEN NULL ELSE - SUM ( DISTINCT - 26 ) END col1
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-1060
SELECT + 48 * - CASE + COUNT( * ) WHEN 33 / - 94 + + 67 THEN 86 - 26 - + 20 END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1060
SELECT + 48 * - CASE + COUNT ( * ) WHEN 33 / - 94 + + 67 THEN 86 - 26 - + 20 END col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1061
SELECT ALL COALESCE ( 69, + 47 * - - 84 + + - COUNT( * ) ) col2
----
69

skipif mysql # not compatible
query I rowsort label-1061
SELECT ALL COALESCE ( 69, + 47 * - - 84 + + - COUNT ( * ) ) col2
----
69

query I rowsort
SELECT ALL - 78 - - 52 AS col1
----
-26

onlyif mysql # DIV for integer division: 
query I rowsort label-1063
SELECT - 12 DIV - - 87 * - 73
----
0

skipif mysql # not compatible
query I rowsort label-1063
SELECT - 12 / - - 87 * - 73
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1064
SELECT + COUNT( * ) * - MIN( + + 82 ) AS col2
----
-82

skipif mysql # not compatible
query I rowsort label-1064
SELECT + COUNT ( * ) * - MIN ( + + 82 ) AS col2
----
-82

query I rowsort
SELECT DISTINCT ( 9 ) * - 29
----
-261

query II rowsort
SELECT 49, - 12 col2
----
49
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-1067
SELECT DISTINCT - 61 * + 89 * - SUM( + ( - 14 ) )
----
-76006

skipif mysql # not compatible
query I rowsort label-1067
SELECT DISTINCT - 61 * + 89 * - SUM ( + ( - 14 ) )
----
-76006

query I rowsort
SELECT + 58 * + - 73 col0
----
-4234

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1069
SELECT - COUNT( * ) DIV 14 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1069
SELECT - COUNT ( * ) / 14 AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1070
SELECT 77 DIV + + COUNT( * ) + - 87 AS col1
----
-10

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

query II rowsort
SELECT + 20, - 48 * 70 * 25 AS col2
----
20
-84000

query II rowsort
SELECT ALL + 72, ( + + 54 ) - - ( 69 ) col1
----
72
123

query I rowsort
SELECT + 13 * + + 63 AS col2
----
819

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1074
SELECT + MIN( ALL - + 5 ) * 62 DIV - + ( + 23 ) + - 82 + - - 95 * + 20 - 27 AS col2
----
1804

skipif mysql # not compatible
query I rowsort label-1074
SELECT + MIN ( ALL - + 5 ) * 62 / - + ( + 23 ) + - 82 + - - 95 * + 20 - 27 AS col2
----
1804

query II rowsort
SELECT ALL + - 57 AS col0, + 42 - ( 70 )
----
-57
-28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1076
SELECT ALL + CAST( NULL AS SIGNED ) * - COUNT( * ) + 26 + - + 15 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1076
SELECT ALL + CAST ( NULL AS INTEGER ) * - COUNT ( * ) + 26 + - + 15 AS col2
----
NULL

query I rowsort
SELECT + + 95 * - - ( - + 81 ) * - 47 + - 27 AS col2
----
361638

query I rowsort
SELECT + 98 * - 25 + 64 + 68 + - 45
----
-2363

onlyif mysql # aggregate syntax: 
query I rowsort label-1079
SELECT ALL - 21 * 21 * 35 * + - 22 + + 27 + - - COUNT( * ) + 66
----
339664

skipif mysql # not compatible
query I rowsort label-1079
SELECT ALL - 21 * 21 * 35 * + - 22 + + 27 + - - COUNT ( * ) + 66
----
339664

query I rowsort
SELECT DISTINCT 28 * - 31 + + 55 * 54 + + 99
----
2201

onlyif mysql # aggregate syntax: 
query I rowsort label-1081
SELECT DISTINCT + 92 * - 45 * + + 72 * - ( + MAX( DISTINCT + 29 ) ) + 54 AS col2
----
8644374

skipif mysql # not compatible
query I rowsort label-1081
SELECT DISTINCT + 92 * - 45 * + + 72 * - ( + MAX ( DISTINCT + 29 ) ) + 54 AS col2
----
8644374

query II rowsort
SELECT + 77, + 37 - - - 6 col2
----
77
31

query I rowsort
SELECT ALL ( 79 ) * - 67 AS col1
----
-5293

onlyif mysql # aggregate syntax: 
query I rowsort label-1084
SELECT DISTINCT + 6 * + 5 * - COUNT( 68 ) + - + 32 AS col2
----
-62

skipif mysql # not compatible
query I rowsort label-1084
SELECT DISTINCT + 6 * + 5 * - COUNT ( 68 ) + - + 32 AS col2
----
-62

onlyif mysql # DIV for integer division: 
query I rowsort label-1085
SELECT - 90 - - - 88 DIV - - ( 87 )
----
-91

skipif mysql # not compatible
query I rowsort label-1085
SELECT - 90 - - - 88 / - - ( 87 )
----
-91

query II rowsort
SELECT + 49 AS col2, 40 AS col0
----
49
40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1087
SELECT DISTINCT + MIN( ALL + + 33 ) * 14 DIV - + NULLIF ( - - 47, - 84 ) + - 93
----
-102

skipif mysql # not compatible
query I rowsort label-1087
SELECT DISTINCT + MIN ( ALL + + 33 ) * 14 / - + NULLIF ( - - 47, - 84 ) + - 93
----
-102

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1089
SELECT + 0, COUNT( 35 ) AS col2
----
0
1

skipif mysql # not compatible
query II rowsort label-1089
SELECT + 0, COUNT ( 35 ) AS col2
----
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1090
SELECT ALL + - 80 * - - 82 * - 35 + - + COUNT( * ) AS col0
----
229599

skipif mysql # not compatible
query I rowsort label-1090
SELECT ALL + - 80 * - - 82 * - 35 + - + COUNT ( * ) AS col0
----
229599

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1091
SELECT + 50 AS col0, + SUM( - 73 ) * - - COUNT( * ) * 15 + - - COALESCE ( + 2, + COALESCE ( 77, + + 37, - 21 * - - ( - 10 ) + - 2 + - 15, - 78 ) ) * 65 * + - CAST( NULL AS SIGNED ) col1
----
50
NULL

skipif mysql # not compatible
query II rowsort label-1091
SELECT + 50 AS col0, + SUM ( - 73 ) * - - COUNT ( * ) * 15 + - - COALESCE ( + 2, + COALESCE ( 77, + + 37, - 21 * - - ( - 10 ) + - 2 + - 15, - 78 ) ) * 65 * + - CAST ( NULL AS INTEGER ) col1
----
50
NULL

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

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

query II rowsort
SELECT 76 col2, 75 * 76
----
76
5700

query I rowsort
SELECT ALL + 24 * 27 * - 88 col1
----
-57024

query II rowsort
SELECT DISTINCT + - 14 AS col2, 97
----
-14
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1096
SELECT ALL ( MAX( + - 13 ) ), + 1 / + CAST( NULL AS SIGNED ) * + + 81 + - + 14 - + COUNT( * ) AS col0
----
-13
NULL

skipif mysql # not compatible
query II rowsort label-1096
SELECT ALL ( MAX ( + - 13 ) ), + 1 / + CAST ( NULL AS INTEGER ) * + + 81 + - + 14 - + COUNT ( * ) AS col0
----
-13
NULL

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

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

query II rowsort
SELECT ALL + 19 * 23 * + 27 AS col1, - NULLIF ( - 45, - 79 ) AS col2
----
11799
45

onlyif mysql # aggregate syntax: 
query I rowsort label-1099
SELECT DISTINCT COALESCE ( - MAX( + 61 ), - 5 ) AS col2
----
-61

skipif mysql # not compatible
query I rowsort label-1099
SELECT DISTINCT COALESCE ( - MAX ( + 61 ), - 5 ) AS col2
----
-61

query III rowsort
SELECT - 7 * - 44 col0, 98 AS col2, - 51 - - 8
----
308
98
-43

query II rowsort
SELECT ALL ( - 29 ), - 67 col1
----
-29
-67

query I rowsort
SELECT - 13 + - 95 - - 80
----
-28

query II rowsort
SELECT - 71 * - 87, 1 * - 83 col1
----
6177
-83

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1106
SELECT - 89 + - 54 * - CAST( NULL AS SIGNED ) + 3 + + 82 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1106
SELECT - 89 + - 54 * - CAST ( NULL AS INTEGER ) + 3 + + 82 col0
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1108
SELECT - 65 + - + COUNT( * ), - 74 - - + 94 col0
----
-66
20

skipif mysql # not compatible
query II rowsort label-1108
SELECT - 65 + - + COUNT ( * ), - 74 - - + 94 col0
----
-66
20

query I rowsort
SELECT DISTINCT ( - 87 ) AS col2
----
-87

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1111
SELECT ALL 53 * - - MAX( - 59 ) * 81
----
-253287

skipif mysql # not compatible
query I rowsort label-1111
SELECT ALL 53 * - - MAX ( - 59 ) * 81
----
-253287

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1113
SELECT DISTINCT 70 * - + 23 col2, - CAST( - COUNT( * ) AS SIGNED ) AS col0
----
-1610
1

skipif mysql # not compatible
query II rowsort label-1113
SELECT DISTINCT 70 * - + 23 col2, - CAST ( - COUNT ( * ) AS INTEGER ) AS col0
----
-1610
1

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

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

query I rowsort
SELECT + ( - 67 ) + 24 + - 15 AS col0
----
-58

query I rowsort
SELECT ALL + 84 * 74 col2
----
6216

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1118
SELECT + MIN( + ( ( 10 ) ) ) + + - 46 AS col2
----
-36

skipif mysql # not compatible
query I rowsort label-1118
SELECT + MIN ( + ( ( 10 ) ) ) + + - 46 AS col2
----
-36

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1119
SELECT - + COUNT( * ) DIV - 74 * 7 + + COUNT( * ) + + + 37 col2
----
38

skipif mysql # not compatible
query I rowsort label-1119
SELECT - + COUNT ( * ) / - 74 * 7 + + COUNT ( * ) + + + 37 col2
----
38

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1120
SELECT ALL 54 DIV + CAST( - 66 AS SIGNED ) + + + 40
----
40

skipif mysql # not compatible
query I rowsort label-1120
SELECT ALL 54 / + CAST ( - 66 AS INTEGER ) + + + 40
----
40

query I rowsort
SELECT ALL + 35 * 21
----
735

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

skipif mysql # not compatible
query I rowsort label-1122
SELECT - 34 / - 57
----
0

query I rowsort
SELECT DISTINCT - + 87 * 19 AS col0
----
-1653

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1124
SELECT ALL - 95 / - - CAST( NULL AS DECIMAL ) + - 41 + 72 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1124
SELECT ALL - 95 / - - CAST ( NULL AS REAL ) + - 41 + 72 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1125
SELECT ALL - + 21 / + 55 + + + 80 + 93 * - + CAST( NULL AS SIGNED ) * - - COUNT( 18 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1125
SELECT ALL - + 21 / + 55 + + + 80 + 93 * - + CAST ( NULL AS INTEGER ) * - - COUNT ( 18 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1126
SELECT - MAX( ALL 14 ) + + 43
----
29

skipif mysql # not compatible
query I rowsort label-1126
SELECT - MAX ( ALL 14 ) + + 43
----
29

query I rowsort
SELECT ALL 58 + - - 26
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-1128
SELECT ALL - 28 * 57 * + 47 * + COUNT( * ) - 82 * + 78
----
-81408

skipif mysql # not compatible
query I rowsort label-1128
SELECT ALL - 28 * 57 * + 47 * + COUNT ( * ) - 82 * + 78
----
-81408

onlyif mysql # aggregate syntax: 
query I rowsort label-1129
SELECT - MAX( ALL + 46 ) * + 39 + - COUNT( DISTINCT 93 )
----
-1795

skipif mysql # not compatible
query I rowsort label-1129
SELECT - MAX ( ALL + 46 ) * + 39 + - COUNT ( DISTINCT 93 )
----
-1795

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1130
SELECT + 68 * + + 2 - - NULLIF ( - + COALESCE ( CAST( + + COUNT( * ) AS SIGNED ), + + 43 ), + + 39 ) + - 68 col2
----
67

skipif mysql # not compatible
query I rowsort label-1130
SELECT + 68 * + + 2 - - NULLIF ( - + COALESCE ( CAST ( + + COUNT ( * ) AS INTEGER ), + + 43 ), + + 39 ) + - 68 col2
----
67

query I rowsort
SELECT ALL 7 * + 44 + 83 AS col0
----
391

query I rowsort
SELECT NULLIF ( - 73, + 83 ) AS col0
----
-73

query I rowsort
SELECT ALL - + 86 - 10 * + 41 AS col2
----
-496

onlyif mysql # aggregate syntax: 
query I rowsort label-1134
SELECT DISTINCT - CASE + 57 WHEN + - ( 60 ) - + 29 THEN COUNT( DISTINCT - - 28 ) * - 49 * - 56 + - 41 + - 84 WHEN + - 32 * + - COUNT( * ) * + 55 + + - 64 THEN NULL WHEN + 61 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1134
SELECT DISTINCT - CASE + 57 WHEN + - ( 60 ) - + 29 THEN COUNT ( DISTINCT - - 28 ) * - 49 * - 56 + - 41 + - 84 WHEN + - 32 * + - COUNT ( * ) * + 55 + + - 64 THEN NULL WHEN + 61 THEN NULL END
----
NULL

query I rowsort
SELECT + 71 * 47 + 37 AS col1
----
3374

query II rowsort
SELECT 80 AS col0, - 52 AS col2
----
80
-52

query I rowsort
SELECT 65 * - + 33
----
-2145

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1138
SELECT - 6, + CAST( NULL AS SIGNED ) + 37 + 13 + + 52 / - + 37 + - COUNT( * ) / + + NULLIF ( + ( 63 ), MAX( + + 34 ) ) + CAST( + 11 AS SIGNED ) / - COUNT( * ) AS col0
----
-6
NULL

skipif mysql # not compatible
query II rowsort label-1138
SELECT - 6, + CAST ( NULL AS INTEGER ) + 37 + 13 + + 52 / - + 37 + - COUNT ( * ) / + + NULLIF ( + ( 63 ), MAX ( + + 34 ) ) + CAST ( + 11 AS INTEGER ) / - COUNT ( * ) AS col0
----
-6
NULL

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

query II rowsort
SELECT 9, - ( + 47 ) AS col0
----
9
-47

query I rowsort
SELECT DISTINCT - 70 + + 40 + + - 22 AS col0
----
-52

onlyif mysql # DIV for integer division: 
query I rowsort label-1142
SELECT 45 DIV - 94
----
0

skipif mysql # not compatible
query I rowsort label-1142
SELECT 45 / - 94
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1143
SELECT 81 * COUNT( * ) AS col2
----
81

skipif mysql # not compatible
query I rowsort label-1143
SELECT 81 * COUNT ( * ) AS col2
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-1144
SELECT ALL - 52 + + NULLIF ( + - NULLIF ( 87, + - COALESCE ( + 18, + NULLIF ( - 16, + 52 * + ( + 12 ) ) ) ), - 10 / COUNT( * ) - + 63 + + + COUNT( * ) * + - 99 ) AS col1
----
-139

skipif mysql # not compatible
query I rowsort label-1144
SELECT ALL - 52 + + NULLIF ( + - NULLIF ( 87, + - COALESCE ( + 18, + NULLIF ( - 16, + 52 * + ( + 12 ) ) ) ), - 10 / COUNT ( * ) - + 63 + + + COUNT ( * ) * + - 99 ) AS col1
----
-139

query I rowsort
SELECT DISTINCT + 98 * 54
----
5292

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1146
SELECT CAST( + + CASE - CASE NULLIF ( + 5, + - CASE - 92 WHEN 96 THEN CAST( NULL AS SIGNED ) * + 89 END ) WHEN + 74 + + MIN( - CAST( 71 AS SIGNED ) ) THEN NULL ELSE - 5 END WHEN + + 39 THEN + ( - - 95 ) END AS SIGNED ) * 94
----
NULL

skipif mysql # not compatible
query I rowsort label-1146
SELECT CAST ( + + CASE - CASE NULLIF ( + 5, + - CASE - 92 WHEN 96 THEN CAST ( NULL AS INTEGER ) * + 89 END ) WHEN + 74 + + MIN ( - CAST ( 71 AS INTEGER ) ) THEN NULL ELSE - 5 END WHEN + + 39 THEN + ( - - 95 ) END AS INTEGER ) * 94
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1147
SELECT 61 - + + 26 + COUNT( * ) * + 33 * - 27 AS col1
----
-856

skipif mysql # not compatible
query I rowsort label-1147
SELECT 61 - + + 26 + COUNT ( * ) * + 33 * - 27 AS col1
----
-856

onlyif mysql # aggregate syntax: 
query I rowsort label-1148
SELECT DISTINCT + 6 * 61 * + + 93 - 39 + - COUNT( * ) * + 68
----
33931

skipif mysql # not compatible
query I rowsort label-1148
SELECT DISTINCT + 6 * 61 * + + 93 - 39 + - COUNT ( * ) * + 68
----
33931

query I rowsort
SELECT 92 * - 88 * - 84
----
680064

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1150
SELECT ALL - + 22 + CASE - + 76 WHEN - 55 / + + 80 + + + CASE - 45 WHEN + - 14 THEN NULL WHEN + - 52 + 43 + 0 / - + 45 * - 59 + + + CAST( NULL AS SIGNED ) THEN 5 * 65 * - + 2 + - 45 + - 2 * 44 ELSE + + 59 + + + 84 + - 52 + + - 83 END THEN + CAST( NULL AS DECIMAL ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1150
SELECT ALL - + 22 + CASE - + 76 WHEN - 55 / + + 80 + + + CASE - 45 WHEN + - 14 THEN NULL WHEN + - 52 + 43 + 0 / - + 45 * - 59 + + + CAST ( NULL AS INTEGER ) THEN 5 * 65 * - + 2 + - 45 + - 2 * 44 ELSE + + 59 + + + 84 + - 52 + + - 83 END THEN + CAST ( NULL AS REAL ) ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1151
SELECT DISTINCT MIN( ALL CAST( - - 81 AS SIGNED ) ) * - 17 col2, - 16
----
-1377
-16

skipif mysql # not compatible
query II rowsort label-1151
SELECT DISTINCT MIN ( ALL CAST ( - - 81 AS INTEGER ) ) * - 17 col2, - 16
----
-1377
-16

onlyif mysql # DIV for integer division: 
query I rowsort label-1152
SELECT ( + 69 ) DIV 88 + - 78
----
-78

skipif mysql # not compatible
query I rowsort label-1152
SELECT ( + 69 ) / 88 + - 78
----
-78

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1153
SELECT ALL - + 10 DIV COUNT( DISTINCT - 79 ) AS col2, - COALESCE ( 99, + MIN( ALL - - 43 ) * - COUNT( * ) DIV - AVG ( - 56 ) DIV + 40 DIV + MAX( 75 ), - 50 ) AS col1
----
-10
-99

skipif mysql # not compatible
query II rowsort label-1153
SELECT ALL - + 10 / COUNT ( DISTINCT - 79 ) AS col2, - COALESCE ( 99, + MIN ( ALL - - 43 ) * - COUNT ( * ) / - AVG ( - 56 ) / + 40 / + MAX ( 75 ), - 50 ) AS col1
----
-10
-99

query II rowsort
SELECT - 2 + 46 + - + 67 AS col1, + 39
----
-23
39

query I rowsort
SELECT ALL + 48 + 77 AS col2
----
125

query I rowsort
SELECT + NULLIF ( - + 8, + 61 )
----
-8

query II rowsort
SELECT DISTINCT - - 51, - 96 AS col2
----
51
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-1158
SELECT + ( - - 72 ) + COALESCE ( - SUM( ALL + 80 ), - 93 )
----
-8

skipif mysql # not compatible
query I rowsort label-1158
SELECT + ( - - 72 ) + COALESCE ( - SUM ( ALL + 80 ), - 93 )
----
-8

query I rowsort
SELECT - 95 * - + 84
----
7980

onlyif mysql # DIV for integer division: 
query I rowsort label-1160
SELECT + 51 DIV - 9 + + 62 - - 57
----
114

skipif mysql # not compatible
query I rowsort label-1160
SELECT + 51 / - 9 + + 62 - - 57
----
114

query II rowsort
SELECT DISTINCT - 22, 23 * 70 AS col2
----
-22
1610

query I rowsort
SELECT + 59 * 63 + 69 + + 74
----
3860

query I rowsort
SELECT COALESCE ( + 2, 62 ) + + + 26
----
28

query I rowsort
SELECT 11 * 39 AS col2
----
429

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1165
SELECT 46 * - 53, CAST( NULL AS SIGNED ) * + 64 + - + 45 AS col2
----
-2438
NULL

skipif mysql # not compatible
query II rowsort label-1165
SELECT 46 * - 53, CAST ( NULL AS INTEGER ) * + 64 + - + 45 AS col2
----
-2438
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1166
SELECT COUNT( * ) * + - 40, 13 AS col1
----
-40
13

skipif mysql # not compatible
query II rowsort label-1166
SELECT COUNT ( * ) * + - 40, 13 AS col1
----
-40
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1167
SELECT - 23 * - COUNT( * ) - + + CASE ( 88 ) WHEN - 81 + + - 1 - - + 31 + - 51 + + 42 + + 75 + 59 * MIN( - ( - - 0 ) ) * COUNT( * ) - - 36 - + - 68 THEN + COUNT( * ) + + CAST( NULL AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1167
SELECT - 23 * - COUNT ( * ) - + + CASE ( 88 ) WHEN - 81 + + - 1 - - + 31 + - 51 + + 42 + + 75 + 59 * MIN ( - ( - - 0 ) ) * COUNT ( * ) - - 36 - + - 68 THEN + COUNT ( * ) + + CAST ( NULL AS INTEGER ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1168
SELECT 40 + + MIN( - 99 ) AS col2
----
-59

skipif mysql # not compatible
query I rowsort label-1168
SELECT 40 + + MIN ( - 99 ) AS col2
----
-59

query I rowsort
SELECT ALL 77 * + 85
----
6545

query I rowsort
SELECT DISTINCT 6 * 79 * + 44 * 58 AS col2
----
1209648

onlyif mysql # aggregate syntax: 
query I rowsort label-1171
SELECT 20 * - - 48 - + COUNT( * )
----
959

skipif mysql # not compatible
query I rowsort label-1171
SELECT 20 * - - 48 - + COUNT ( * )
----
959

query I rowsort
SELECT ALL 41 * + 27 AS col1
----
1107

onlyif mysql # aggregate syntax: 
query I rowsort label-1173
SELECT COUNT( * ) + + + 58 + 28
----
87

skipif mysql # not compatible
query I rowsort label-1173
SELECT COUNT ( * ) + + + 58 + 28
----
87

query II rowsort
SELECT DISTINCT 35 + 35, 62 * + - 57 AS col2
----
70
-3534

query II rowsort
SELECT ALL 94 + + 54 AS col2, AVG ( + + 50 ) + CASE - 63 WHEN - 20 THEN NULL WHEN 69 + 41 THEN + - 74 ELSE NULL END
----
148
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1176
SELECT 61 + - COUNT( * ) + - 23 DIV + ( - + 73 ) * 42
----
60

skipif mysql # not compatible
query I rowsort label-1176
SELECT 61 + - COUNT ( * ) + - 23 / + ( - + 73 ) * 42
----
60

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1178
SELECT + 82 * + 3 AS col0, - CAST( NULL AS SIGNED ) + - 59
----
246
NULL

skipif mysql # not compatible
query II rowsort label-1178
SELECT + 82 * + 3 AS col0, - CAST ( NULL AS INTEGER ) + - 59
----
246
NULL

query I rowsort
SELECT - - 86 col2
----
86

query I rowsort
SELECT - - 83 + - 37 AS col2
----
46

query I rowsort
SELECT ALL + 3 - + - 41 * + 73
----
2996

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

query I rowsort
SELECT DISTINCT - 0 * + 92 + - + 43 AS col0
----
-43

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-1184
SELECT DISTINCT + + CASE - 8 WHEN + 26 - + + 76 THEN - + COUNT( + 79 ) * - - 54 ELSE - 73 + + 42 DIV CASE - - 79 WHEN 6 THEN NULL WHEN 99 + + 41 DIV + AVG ( + CAST( NULL AS DECIMAL ) ) - + + 18 THEN - + 93 + - 89 ELSE 61 * - 99 END * + + 54 END AS col1
----
-73

skipif mysql # not compatible
query I rowsort label-1184
SELECT DISTINCT + + CASE - 8 WHEN + 26 - + + 76 THEN - + COUNT ( + 79 ) * - - 54 ELSE - 73 + + 42 / CASE - - 79 WHEN 6 THEN NULL WHEN 99 + + 41 / + AVG ( + CAST ( NULL AS REAL ) ) - + + 18 THEN - + 93 + - 89 ELSE 61 * - 99 END * + + 54 END AS col1
----
-73

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1185
SELECT ALL - 87 * + 81 * 6 DIV + COUNT( * )
----
-42282

skipif mysql # not compatible
query I rowsort label-1185
SELECT ALL - 87 * + 81 * 6 / + COUNT ( * )
----
-42282

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

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

query II rowsort
SELECT + 90, + 90
----
90
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1188
SELECT - CAST( + 55 AS SIGNED ) * + NULLIF ( - 38, - 91 + 90 + + 54 + + NULLIF ( CAST( - 11 AS DECIMAL ), - + COUNT( * ) / + 6 * 64 ) ) + + ( - COUNT( * ) ) * + 62 * 82 + + 58 - + 56 AS col2
----
-2992

skipif mysql # not compatible
query I rowsort label-1188
SELECT - CAST ( + 55 AS INTEGER ) * + NULLIF ( - 38, - 91 + 90 + + 54 + + NULLIF ( CAST ( - 11 AS REAL ), - + COUNT ( * ) / + 6 * 64 ) ) + + ( - COUNT ( * ) ) * + 62 * 82 + + 58 - + 56 AS col2
----
-2992

onlyif mysql # aggregate syntax: 
query I rowsort label-1189
SELECT NULLIF ( - COUNT( * ), - COUNT( * ) / + 34 )
----
-1

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

query I rowsort
SELECT - 66 * 58
----
-3828

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1191
SELECT ALL + ( - 23 ) * 82 + ( + COUNT( * ) ) * + + 81 + 54 * - ( + 18 ) * + COUNT( - 6 ) - + CAST( 22 AS SIGNED ) AS col1
----
-2799

skipif mysql # not compatible
query I rowsort label-1191
SELECT ALL + ( - 23 ) * 82 + ( + COUNT ( * ) ) * + + 81 + 54 * - ( + 18 ) * + COUNT ( - 6 ) - + CAST ( 22 AS INTEGER ) AS col1
----
-2799

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

skipif mysql # not compatible
query I rowsort label-1192
SELECT + SUM ( - 56 )
----
-56

onlyif mysql # DIV for integer division: 
query I rowsort label-1193
SELECT - 30 DIV - 71 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1193
SELECT - 30 / - 71 AS col1
----
0

query I rowsort
SELECT + COALESCE ( - 90, + 16 ) + - 61
----
-151

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

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

query I rowsort
SELECT ALL 36 * 20 + 69 - + - 0 AS col2
----
789

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1197
SELECT DISTINCT 88 * + COALESCE ( 78, - 72 + - + 35, + 40 DIV + COUNT( ALL + 7 ) + - 8 DIV - COUNT( * ) + + - 58 + - + 75 )
----
6864

skipif mysql # not compatible
query I rowsort label-1197
SELECT DISTINCT 88 * + COALESCE ( 78, - 72 + - + 35, + 40 / + COUNT ( ALL + 7 ) + - 8 / - COUNT ( * ) + + - 58 + - + 75 )
----
6864

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1198
SELECT DISTINCT ( AVG ( - + CAST( NULL AS DECIMAL ) ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1198
SELECT DISTINCT ( AVG ( - + CAST ( NULL AS REAL ) ) ) AS col1
----
NULL

query I rowsort
SELECT ALL + 26 + + + 93 AS col1
----
119

query I rowsort
SELECT ALL 23 * + 25 AS col0
----
575

query I rowsort
SELECT ALL 40 + + - 40 AS col0
----
0

query I rowsort
SELECT DISTINCT 83 * - 33 AS col1
----
-2739

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1204
SELECT DISTINCT CASE 62 WHEN 35 * + COUNT( * ) THEN + MIN( DISTINCT + CAST( NULL AS SIGNED ) ) ELSE + COUNT( + + 53 ) - CASE - + 63 WHEN - CAST( + + 93 AS SIGNED ) / + 81 - COUNT( * ) THEN ( - COUNT( * ) ) ELSE 85 END END col0
----
-84

skipif mysql # not compatible
query I rowsort label-1204
SELECT DISTINCT CASE 62 WHEN 35 * + COUNT ( * ) THEN + MIN ( DISTINCT + CAST ( NULL AS INTEGER ) ) ELSE + COUNT ( + + 53 ) - CASE - + 63 WHEN - CAST ( + + 93 AS INTEGER ) / + 81 - COUNT ( * ) THEN ( - COUNT ( * ) ) ELSE 85 END END col0
----
-84

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1205
SELECT DISTINCT 28 - + MIN( 78 ) DIV + 10
----
21

skipif mysql # not compatible
query I rowsort label-1205
SELECT DISTINCT 28 - + MIN ( 78 ) / + 10
----
21

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1206
SELECT ALL - COUNT( * ) DIV 67 * 65, 12 + 49 * COUNT( * ) AS col2
----
0
61

skipif mysql # not compatible
query II rowsort label-1206
SELECT ALL - COUNT ( * ) / 67 * 65, 12 + 49 * COUNT ( * ) AS col2
----
0
61

query I rowsort
SELECT + + 35 * - 69 * 59 AS col0
----
-142485

onlyif mysql # aggregate syntax: 
query I rowsort label-1208
SELECT DISTINCT + 7 * + SUM( + 91 ) + + 56 col2
----
693

skipif mysql # not compatible
query I rowsort label-1208
SELECT DISTINCT + 7 * + SUM ( + 91 ) + + 56 col2
----
693

onlyif mysql # DIV for integer division: 
query II rowsort label-1209
SELECT + 43 DIV + COALESCE ( 96, + - 24 * 92 ), 52 col0
----
0
52

skipif mysql # not compatible
query II rowsort label-1209
SELECT + 43 / + COALESCE ( 96, + - 24 * 92 ), 52 col0
----
0
52

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1210
SELECT + ( - CAST( NULL AS DECIMAL ) ) * - - 64 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1210
SELECT + ( - CAST ( NULL AS REAL ) ) * - - 64 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1211
SELECT - 80 DIV - 84 + - COUNT( * ) + 16 * ( + ( CAST( - MAX( + 27 ) AS SIGNED ) ) ) * + - ( - ( 23 ) ) + - 15 + - 6 DIV - 6 + + + 10 AS col2
----
-9941

skipif mysql # not compatible
query I rowsort label-1211
SELECT - 80 / - 84 + - COUNT ( * ) + 16 * ( + ( CAST ( - MAX ( + 27 ) AS INTEGER ) ) ) * + - ( - ( 23 ) ) + - 15 + - 6 / - 6 + + + 10 AS col2
----
-9941

query I rowsort
SELECT 10 * - - 92 * - - 59 - + 24 AS col1
----
54256

query I rowsort
SELECT + 96 * + - 5 AS col1
----
-480

query I rowsort
SELECT DISTINCT + 88 * + 63
----
5544

onlyif mysql # DIV for integer division: 
query I rowsort label-1215
SELECT - + 19 DIV + + 38 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1215
SELECT - + 19 / + + 38 AS col2
----
0

query I rowsort
SELECT ALL - ( - ( - + 33 ) ) * 72 AS col2
----
-2376

query I rowsort
SELECT + 90 * + - 64 col1
----
-5760

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1218
SELECT DISTINCT 46 DIV - 98 + COUNT( * ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1218
SELECT DISTINCT 46 / - 98 + COUNT ( * ) AS col2
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1219
SELECT 38 DIV - 44 + + COUNT( * ) * 17 - + + 63 AS col0
----
-46

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1220
SELECT ALL - 43 DIV - + 56 + - 75 * - 87
----
6525

skipif mysql # not compatible
query I rowsort label-1220
SELECT ALL - 43 / - + 56 + - 75 * - 87
----
6525

query II rowsort
SELECT + 46 AS col2, 5
----
46
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1222
SELECT ALL COUNT( * ) DIV - - 52 + - - 48 col0
----
48

skipif mysql # not compatible
query I rowsort label-1222
SELECT ALL COUNT ( * ) / - - 52 + - - 48 col0
----
48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1223
SELECT ALL 89 DIV + MIN( - 70 ) + 13
----
12

skipif mysql # not compatible
query I rowsort label-1223
SELECT ALL 89 / + MIN ( - 70 ) + 13
----
12

query I rowsort
SELECT ( - 20 ) AS col2
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-1225
SELECT ( - MIN( - - 15 ) ) col0
----
-15

skipif mysql # not compatible
query I rowsort label-1225
SELECT ( - MIN ( - - 15 ) ) col0
----
-15

query I rowsort
SELECT + 89 * 94 AS col0
----
8366

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1227
SELECT 57 * + 41 - COUNT( * ) * - 86 + + 18 DIV 50
----
2423

skipif mysql # not compatible
query I rowsort label-1227
SELECT 57 * + 41 - COUNT ( * ) * - 86 + + 18 / 50
----
2423

onlyif mysql # DIV for integer division: 
query I rowsort label-1228
SELECT ALL 65 DIV + 28 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-1228
SELECT ALL 65 / + 28 AS col0
----
2

onlyif mysql # aggregate syntax: 
query II rowsort label-1229
SELECT + 20 AS col1, MAX( - 86 ) * SUM( ALL + COALESCE ( + 77, - 16 + - + 21 ) ) AS col0
----
20
-6622

skipif mysql # not compatible
query II rowsort label-1229
SELECT + 20 AS col1, MAX ( - 86 ) * SUM ( ALL + COALESCE ( + 77, - 16 + - + 21 ) ) AS col0
----
20
-6622

onlyif mysql # aggregate syntax: 
query I rowsort label-1230
SELECT NULLIF ( + - 27, - 59 + - 50 + + + 52 * - COUNT( - 82 ) * - 17 ) AS col1
----
-27

skipif mysql # not compatible
query I rowsort label-1230
SELECT NULLIF ( + - 27, - 59 + - 50 + + + 52 * - COUNT ( - 82 ) * - 17 ) AS col1
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-1231
SELECT ALL 70 * 36 + - ( 47 ) + + COUNT( * )
----
2474

skipif mysql # not compatible
query I rowsort label-1231
SELECT ALL 70 * 36 + - ( 47 ) + + COUNT ( * )
----
2474

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1232
SELECT MIN( ALL + 32 ) - CAST( NULL AS SIGNED ) * 90 + - 53 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1232
SELECT MIN ( ALL + 32 ) - CAST ( NULL AS INTEGER ) * 90 + - 53 AS col2
----
NULL

query I rowsort
SELECT 94 * - 72 - + 60 AS col2
----
-6828

query I rowsort
SELECT - 55 * 55 AS col1
----
-3025

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

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

query I rowsort
SELECT + 78 + + - 26
----
52

query II rowsort
SELECT DISTINCT - 87, - 64 + + 86 * - 7 AS col1
----
-87
-666

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1238
SELECT DISTINCT CASE - SUM( DISTINCT + 7 ) WHEN + - COUNT( * ) THEN NULL WHEN ( 23 ) / + 42 * - - CAST( NULL AS DECIMAL ) THEN + + ( + 65 ) ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1238
SELECT DISTINCT CASE - SUM ( DISTINCT + 7 ) WHEN + - COUNT ( * ) THEN NULL WHEN ( 23 ) / + 42 * - - CAST ( NULL AS REAL ) THEN + + ( + 65 ) ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT DISTINCT 53 * + + 35
----
1855

query I rowsort
SELECT - 27 + + 53
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-1241
SELECT ALL 2 * - + SUM( + 64 )
----
-128

skipif mysql # not compatible
query I rowsort label-1241
SELECT ALL 2 * - + SUM ( + 64 )
----
-128

query I rowsort
SELECT 15 + 35 + CASE 49 WHEN - 28 THEN AVG ( ALL + - 95 ) ELSE NULL END - - 36
----
NULL

query I rowsort
SELECT + 80 * + 51 AS col1
----
4080

onlyif mysql # DIV for integer division: 
query II rowsort label-1244
SELECT - - 18 AS col1, + 52 DIV - 58 AS col0
----
18
0

skipif mysql # not compatible
query II rowsort label-1244
SELECT - - 18 AS col1, + 52 / - 58 AS col0
----
18
0

query I rowsort
SELECT - 54 + + + 29
----
-25

query II rowsort
SELECT - + 48 AS col2, - 70
----
-48
-70

onlyif mysql # aggregate syntax: 
query II rowsort label-1247
SELECT COUNT( * ) + - + 92 * NULLIF ( - COUNT( * ), + 85 / + 60 ) AS col0, 74 + + - NULLIF ( + - ( 67 ), 25 / - 27 )
----
93
141

skipif mysql # not compatible
query II rowsort label-1247
SELECT COUNT ( * ) + - + 92 * NULLIF ( - COUNT ( * ), + 85 / + 60 ) AS col0, 74 + + - NULLIF ( + - ( 67 ), 25 / - 27 )
----
93
141

query I rowsort
SELECT ALL + 84 + 86 AS col0
----
170

onlyif mysql # DIV for integer division: 
query I rowsort label-1249
SELECT DISTINCT 86 + + 42 + + - ( - 25 ) - - 27 * 21 DIV + - 22 + - 57
----
71

skipif mysql # not compatible
query I rowsort label-1249
SELECT DISTINCT 86 + + 42 + + - ( - 25 ) - - 27 * 21 / + - 22 + - 57
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-1250
SELECT ( - - 90 ) * - COUNT( DISTINCT + 7 ) * + 74 / - 69 - + 58 - 84 * CASE + + 65 WHEN + 75 * + - ( + 35 ) THEN - 64 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1250
SELECT ( - - 90 ) * - COUNT ( DISTINCT + 7 ) * + 74 / - 69 - + 58 - 84 * CASE + + 65 WHEN + 75 * + - ( + 35 ) THEN - 64 END AS col1
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1251
SELECT ALL CAST( NULL AS DECIMAL ) + + 14 AS col0, + 21
----
NULL
21

skipif mysql # not compatible
query II rowsort label-1251
SELECT ALL CAST ( NULL AS REAL ) + + 14 AS col0, + 21
----
NULL
21

query II rowsort
SELECT DISTINCT + 24 + - 15, - 75 AS col2
----
9
-75

query I rowsort
SELECT DISTINCT 83 + - 7
----
76

query I rowsort
SELECT DISTINCT 18 + + + 86 col2
----
104

query I rowsort
SELECT ALL 77 + + + 24 - - 4 * 92 * + - 56 AS col2
----
-20507

query I rowsort
SELECT DISTINCT 24 * + 8 AS col1
----
192

query I rowsort
SELECT ALL 82 - + 16 AS col0
----
66

query I rowsort
SELECT 96 + - + 18 + - - ( + 24 ) + ( 76 )
----
178

onlyif mysql # aggregate syntax: 
query II rowsort label-1259
SELECT 8 * - MAX( DISTINCT + 52 ) - + 47 * 2 AS col2, 15
----
-510
15

skipif mysql # not compatible
query II rowsort label-1259
SELECT 8 * - MAX ( DISTINCT + 52 ) - + 47 * 2 AS col2, 15
----
-510
15

query I rowsort
SELECT + 53 * + 30 * - 36
----
-57240

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1261
SELECT DISTINCT + 73 * - + AVG ( 12 ) * AVG ( + ( - 80 ) ) * + 49 + 6 + - ( + + CASE - 56 WHEN - - MAX( DISTINCT 26 ) THEN 63 WHEN + 89 THEN + 4 * - 3 WHEN - CAST( NULL AS SIGNED ) * 69 THEN NULL END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1261
SELECT DISTINCT + 73 * - + AVG ( 12 ) * AVG ( + ( - 80 ) ) * + 49 + 6 + - ( + + CASE - 56 WHEN - - MAX ( DISTINCT 26 ) THEN 63 WHEN + 89 THEN + 4 * - 3 WHEN - CAST ( NULL AS INTEGER ) * 69 THEN NULL END ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT - 62 * - 36
----
2232

query I rowsort
SELECT 61 * - + 25 AS col1
----
-1525

onlyif mysql # aggregate syntax: 
query I rowsort label-1264
SELECT DISTINCT NULLIF ( + COUNT( * ), - 4 + - 31 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1264
SELECT DISTINCT NULLIF ( + COUNT ( * ), - 4 + - 31 ) AS col2
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1265
SELECT 53 DIV COUNT( ALL 85 ) AS col0
----
53

skipif mysql # not compatible
query I rowsort label-1265
SELECT 53 / COUNT ( ALL 85 ) AS col0
----
53

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-1266
SELECT ALL + COUNT( ALL 49 ) AS col2, CAST( NULL AS DECIMAL ) / - + 12
----
1
NULL

skipif mysql # not compatible
query II rowsort label-1266
SELECT ALL + COUNT ( ALL 49 ) AS col2, CAST ( NULL AS REAL ) / - + 12
----
1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1267
SELECT 84 * + 29 + + + 41 + COUNT( * ) * - 46 + + - 96
----
2335

skipif mysql # not compatible
query I rowsort label-1267
SELECT 84 * + 29 + + + 41 + COUNT ( * ) * - 46 + + - 96
----
2335

query I rowsort
SELECT ( ( + 63 ) ) AS col2
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-1269
SELECT - - NULLIF ( COUNT( * ), + 41 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1269
SELECT - - NULLIF ( COUNT ( * ), + 41 ) AS col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1270
SELECT ( - + COALESCE ( SUM( + 79 ), 95 * COALESCE ( - 93, - - 0, - 50 + + ( 93 ) - - CASE WHEN NOT ( + 53 ) = + 48 + + + MIN( 82 ) THEN + 12 - 4 ELSE NULL END * - - 22 * 91 * - + 58 ) * - - 96 + 70 + - CAST( - + 18 AS SIGNED ) ) )
----
-79

skipif mysql # not compatible
query I rowsort label-1270
SELECT ( - + COALESCE ( SUM ( + 79 ), 95 * COALESCE ( - 93, - - 0, - 50 + + ( 93 ) - - CASE WHEN NOT ( + 53 ) = + 48 + + + MIN ( 82 ) THEN + 12 - 4 ELSE NULL END * - - 22 * 91 * - + 58 ) * - - 96 + 70 + - CAST ( - + 18 AS INTEGER ) ) )
----
-79

onlyif mysql # DIV for integer division: 
query II rowsort label-1271
SELECT + 52 DIV + 10 AS col0, 96
----
5
96

skipif mysql # not compatible
query II rowsort label-1271
SELECT + 52 / + 10 AS col0, 96
----
5
96

query I rowsort
SELECT ALL + 39 + + 33
----
72

query II rowsort
SELECT 9 - - 29 AS col0, 99 AS col1
----
38
99

onlyif mysql # aggregate syntax: 
query II rowsort label-1274
SELECT - COUNT( - 60 ) AS col0, 55 AS col2
----
-1
55

skipif mysql # not compatible
query II rowsort label-1274
SELECT - COUNT ( - 60 ) AS col0, 55 AS col2
----
-1
55

query I rowsort
SELECT 30 + 4 AS col1
----
34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1276
SELECT MIN( ALL 24 ) / CAST( NULL AS DECIMAL ) + + 48 + - + AVG ( - 76 ) * - - CAST( NULL AS SIGNED ) * + 58 + 11 + - 61 + - 78 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1276
SELECT MIN ( ALL 24 ) / CAST ( NULL AS REAL ) + + 48 + - + AVG ( - 76 ) * - - CAST ( NULL AS INTEGER ) * + 58 + 11 + - 61 + - 78 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1277
SELECT CAST( NULL AS SIGNED ) * + + 41 - + - 95 AS col0, + ( COUNT( * ) ) * + - 33 * - 85 AS col2
----
NULL
2805

skipif mysql # not compatible
query II rowsort label-1277
SELECT CAST ( NULL AS INTEGER ) * + + 41 - + - 95 AS col0, + ( COUNT ( * ) ) * + - 33 * - 85 AS col2
----
NULL
2805

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1278
SELECT CASE - 96 WHEN - 1 * - 6 * - CAST( + + NULLIF ( + - COUNT( * ), + MIN( DISTINCT 89 ) ) AS SIGNED ) + + 68 * 40 * + 83 THEN NULL WHEN 13 THEN + ( + 7 ) - - 38 ELSE - COUNT( - - CAST( NULL AS SIGNED ) ) END * + + 30
----
0

skipif mysql # not compatible
query I rowsort label-1278
SELECT CASE - 96 WHEN - 1 * - 6 * - CAST ( + + NULLIF ( + - COUNT ( * ), + MIN ( DISTINCT 89 ) ) AS INTEGER ) + + 68 * 40 * + 83 THEN NULL WHEN 13 THEN + ( + 7 ) - - 38 ELSE - COUNT ( - - CAST ( NULL AS INTEGER ) ) END * + + 30
----
0

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

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

query I rowsort
SELECT 65 + 18
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-1281
SELECT MIN( DISTINCT 82 ) col2
----
82

skipif mysql # not compatible
query I rowsort label-1281
SELECT MIN ( DISTINCT 82 ) col2
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-1282
SELECT DISTINCT 65 * + CASE - - 27 WHEN - 41 THEN COUNT( * ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1282
SELECT DISTINCT 65 * + CASE - - 27 WHEN - 41 THEN COUNT ( * ) END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1283
SELECT + COUNT( - 53 )
----
1

skipif mysql # not compatible
query I rowsort label-1283
SELECT + COUNT ( - 53 )
----
1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1284
SELECT - 0 / - - ( - - CAST( NULL AS DECIMAL ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1284
SELECT - 0 / - - ( - - CAST ( NULL AS REAL ) ) AS col1
----
NULL

query I rowsort
SELECT + 6 * - ( - 36 ) AS col1
----
216

onlyif mysql # aggregate syntax: 
query I rowsort label-1286
SELECT MAX( + + 90 ) col0
----
90

skipif mysql # not compatible
query I rowsort label-1286
SELECT MAX ( + + 90 ) col0
----
90

query II rowsort
SELECT DISTINCT 29 * - 78 * 71 AS col1, - 89
----
-160602
-89

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

skipif mysql # not compatible
query I rowsort label-1288
SELECT + COUNT ( ALL ( - 52 ) ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1289
SELECT SUM( + 95 ) AS col2
----
95

skipif mysql # not compatible
query I rowsort label-1289
SELECT SUM ( + 95 ) AS col2
----
95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1290
SELECT ALL + ( - 80 ) * + - 41 + + 37 - + - 17 / 79 - 26 - - - 7 * + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1290
SELECT ALL + ( - 80 ) * + - 41 + + 37 - + - 17 / 79 - 26 - - - 7 * + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1291
SELECT + 70 DIV SUM( DISTINCT - 24 ) AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-1291
SELECT + 70 / SUM ( DISTINCT - 24 ) AS col2
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1292
SELECT - 75 * CASE + + 43 WHEN 4 * + COUNT( * ) - + 77 THEN ( 1 ) / + 35 + COALESCE ( + MAX( ALL + 74 ), + 66, - + 68 ) - + + 99 / - - 59 / - + CASE - CAST( NULL AS SIGNED ) WHEN + 17 - + ( + 72 ) * + CAST( + 80 AS DECIMAL ) * + 48 * - 43 * - 55 THEN NULL WHEN + + 62 / + 32 + - 13 - - 45 * 41 * - - ( 97 ) + - 12 THEN + 37 + - + 44 * + ( - 1 ) ELSE - 1 * 61 * + 40 END WHEN - 70 THEN ( + - 12 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1292
SELECT - 75 * CASE + + 43 WHEN 4 * + COUNT ( * ) - + 77 THEN ( 1 ) / + 35 + COALESCE ( + MAX ( ALL + 74 ), + 66, - + 68 ) - + + 99 / - - 59 / - + CASE - CAST ( NULL AS INTEGER ) WHEN + 17 - + ( + 72 ) * + CAST ( + 80 AS REAL ) * + 48 * - 43 * - 55 THEN NULL WHEN + + 62 / + 32 + - 13 - - 45 * 41 * - - ( 97 ) + - 12 THEN + 37 + - + 44 * + ( - 1 ) ELSE - 1 * 61 * + 40 END WHEN - 70 THEN ( + - 12 ) END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1293
SELECT CAST( NULL AS SIGNED ) * ( 14 ) + + COALESCE ( - - 98, AVG ( ALL + 84 ) ) / MAX( + - 3 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1293
SELECT CAST ( NULL AS INTEGER ) * ( 14 ) + + COALESCE ( - - 98, AVG ( ALL + 84 ) ) / MAX ( + - 3 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1294
SELECT + CAST( - 16 AS SIGNED ) + + + 36 * - 89
----
-3220

skipif mysql # not compatible
query I rowsort label-1294
SELECT + CAST ( - 16 AS INTEGER ) + + + 36 * - 89
----
-3220

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

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

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

skipif mysql # not compatible
query II rowsort label-1296
SELECT ALL + - 34 col1, + CAST ( - COUNT ( * ) AS INTEGER )
----
-34
-1

query II rowsort
SELECT + 42, + 73 * - 49 AS col1
----
42
-3577

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

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

query I rowsort
SELECT + + 3 + + 35 AS col2
----
38

query I rowsort
SELECT - + 98 + 71 * + + 11
----
683

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

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

query I rowsort
SELECT - - 23 * + + 88 AS col0
----
2024

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1303
SELECT CASE NULLIF ( + + COUNT( * ), - - CASE 41 WHEN - CAST( NULL AS SIGNED ) THEN + - 51 * + + 82 WHEN + 49 THEN NULL WHEN - 43 + + 30 - + - MIN( ALL 75 ) THEN + 64 ELSE NULL END / - 52 + - - 6 + - NULLIF ( - 98, 22 ) ) WHEN NULLIF ( + CAST( 12 AS SIGNED ), + 11 + + 44 - + 66 / - 67 ) THEN NULL ELSE - 65 END
----
-65

skipif mysql # not compatible
query I rowsort label-1303
SELECT CASE NULLIF ( + + COUNT ( * ), - - CASE 41 WHEN - CAST ( NULL AS INTEGER ) THEN + - 51 * + + 82 WHEN + 49 THEN NULL WHEN - 43 + + 30 - + - MIN ( ALL 75 ) THEN + 64 ELSE NULL END / - 52 + - - 6 + - NULLIF ( - 98, 22 ) ) WHEN NULLIF ( + CAST ( 12 AS INTEGER ), + 11 + + 44 - + 66 / - 67 ) THEN NULL ELSE - 65 END
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-1304
SELECT ALL - 68 + + MIN( ALL - - 93 )
----
25

skipif mysql # not compatible
query I rowsort label-1304
SELECT ALL - 68 + + MIN ( ALL - - 93 )
----
25

onlyif mysql # DIV for integer division: 
query II rowsort label-1305
SELECT - 33 AS col1, ( 7 ) DIV - 43 AS col0
----
-33
0

skipif mysql # not compatible
query II rowsort label-1305
SELECT - 33 AS col1, ( 7 ) / - 43 AS col0
----
-33
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1307
SELECT + + COUNT( * ) * - - COUNT( * ) + - COUNT( * ) * - - 48 * 85 AS col2
----
-4079

skipif mysql # not compatible
query I rowsort label-1307
SELECT + + COUNT ( * ) * - - COUNT ( * ) + - COUNT ( * ) * - - 48 * 85 AS col2
----
-4079

onlyif mysql # aggregate syntax: 
query I rowsort label-1308
SELECT - + 96 + + 53 + - COUNT( * ) * NULLIF ( - 36, + + 79 )
----
-7

skipif mysql # not compatible
query I rowsort label-1308
SELECT - + 96 + + 53 + - COUNT ( * ) * NULLIF ( - 36, + + 79 )
----
-7

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1310
SELECT - MIN( DISTINCT + 21 ) + ( - + COUNT( * ) ), 5 AS col2
----
-22
5

skipif mysql # not compatible
query II rowsort label-1310
SELECT - MIN ( DISTINCT + 21 ) + ( - + COUNT ( * ) ), 5 AS col2
----
-22
5

onlyif mysql # aggregate syntax: 
query I rowsort label-1311
SELECT - MAX( - 64 ) * - 73 + + ( + - 81 ) + - NULLIF ( - 72, + ( - COUNT( * ) ) + 57 ) + - 29 AS col1
----
-4710

skipif mysql # not compatible
query I rowsort label-1311
SELECT - MAX ( - 64 ) * - 73 + + ( + - 81 ) + - NULLIF ( - 72, + ( - COUNT ( * ) ) + 57 ) + - 29 AS col1
----
-4710

onlyif mysql # DIV for integer division: 
query I rowsort label-1312
SELECT ALL - 98 DIV - 82 col0
----
1

skipif mysql # not compatible
query I rowsort label-1312
SELECT ALL - 98 / - 82 col0
----
1

query I rowsort
SELECT DISTINCT - 25 - 5 * - - 93 AS col0
----
-490

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

skipif mysql # not compatible
query I rowsort label-1314
SELECT - 77 + + 40 * COUNT ( * ) AS col1
----
-37

onlyif mysql # DIV for integer division: 
query I rowsort label-1315
SELECT ALL - 79 DIV 26 - + 44 - 44 + - 95 + + 58
----
-128

skipif mysql # not compatible
query I rowsort label-1315
SELECT ALL - 79 / 26 - + 44 - 44 + - 95 + + 58
----
-128

query I rowsort
SELECT - 30 * + 26 * + 49 AS col1
----
-38220

query I rowsort
SELECT ALL + COALESCE ( + 29, 22 * - - NULLIF ( - 58, + 32 ) * - + NULLIF ( - 45, + - 41 + - 18 + - ( - + 84 ) ) ) AS col2
----
29

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

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

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

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

query I rowsort
SELECT - 94 * - 49 AS col0
----
4606

onlyif mysql # DIV for integer division: 
query I rowsort label-1321
SELECT 35 DIV + 28 + - 9 col1
----
-8

skipif mysql # not compatible
query I rowsort label-1321
SELECT 35 / + 28 + - 9 col1
----
-8

onlyif mysql # aggregate syntax: 
query II rowsort label-1322
SELECT ( COUNT( * ) ), 46 + 33 + + - 55 + + - NULLIF ( - - 59, COUNT( * ) * + - MIN( 18 ) * - - 55 ) AS col2
----
1
-35

skipif mysql # not compatible
query II rowsort label-1322
SELECT ( COUNT ( * ) ), 46 + 33 + + - 55 + + - NULLIF ( - - 59, COUNT ( * ) * + - MIN ( 18 ) * - - 55 ) AS col2
----
1
-35

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1323
SELECT DISTINCT - 17 * 36 DIV - + COUNT( 39 ) AS col2
----
612

skipif mysql # not compatible
query I rowsort label-1323
SELECT DISTINCT - 17 * 36 / - + COUNT ( 39 ) AS col2
----
612

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1324
SELECT DISTINCT + ( 87 ) AS col0, + CAST( + 95 AS SIGNED ) - + 45 * + 4 AS col0
----
87
-85

skipif mysql # not compatible
query II rowsort label-1324
SELECT DISTINCT + ( 87 ) AS col0, + CAST ( + 95 AS INTEGER ) - + 45 * + 4 AS col0
----
87
-85

query I rowsort
SELECT + 64 * - 59 AS col0
----
-3776

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1326
SELECT ALL - 24 * 18 + 55 DIV - - CASE + 50 WHEN - - 86 THEN NULL WHEN + COUNT( + - 14 ) THEN NULL ELSE - 85 END AS col2
----
-432

skipif mysql # not compatible
query I rowsort label-1326
SELECT ALL - 24 * 18 + 55 / - - CASE + 50 WHEN - - 86 THEN NULL WHEN + COUNT ( + - 14 ) THEN NULL ELSE - 85 END AS col2
----
-432

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1328
SELECT + ( - 11 ) + 37 + - 7 - - + 8 + - 39 * - 49 + + + 36 DIV 18 * 45 AS col0, - 96 + + ( - - 73 )
----
2028
-23

skipif mysql # not compatible
query II rowsort label-1328
SELECT + ( - 11 ) + 37 + - 7 - - + 8 + - 39 * - 49 + + + 36 / 18 * 45 AS col0, - 96 + + ( - - 73 )
----
2028
-23

query I rowsort
SELECT + 94 + + 41
----
135

onlyif mysql # aggregate syntax: 
query I rowsort label-1330
SELECT ALL - - 12 * 10 + - 77 + + + 50 + 4 + - - MIN( ALL + COALESCE ( + - 68, 24, + 59 ) ) AS col0
----
29

skipif mysql # not compatible
query I rowsort label-1330
SELECT ALL - - 12 * 10 + - 77 + + + 50 + 4 + - - MIN ( ALL + COALESCE ( + - 68, 24, + 59 ) ) AS col0
----
29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1331
SELECT + - 22 * - 82 - 95 + - ( + + 92 ) * - + COALESCE ( - CAST( NULL AS SIGNED ), + - 83 ) AS col1
----
-5927

skipif mysql # not compatible
query I rowsort label-1331
SELECT + - 22 * - 82 - 95 + - ( + + 92 ) * - + COALESCE ( - CAST ( NULL AS INTEGER ), + - 83 ) AS col1
----
-5927

query I rowsort
SELECT + - 41 * + 50 AS col1
----
-2050

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1333
SELECT ALL 16 * + - ( 99 ) + - + 8 + - 97 * - NULLIF ( + - 64, CASE + 66 WHEN + 49 + + 56 + + 45 THEN 26 ELSE NULL END ) * + 64 - - COUNT( * ) / CASE + - 34 WHEN - + 5 THEN + - 40 + + COUNT( * ) + - ( 96 ) WHEN - CAST( + 29 AS SIGNED ) THEN - 44 * MAX( + - 32 ) END + - - 23
----
NULL

skipif mysql # not compatible
query I rowsort label-1333
SELECT ALL 16 * + - ( 99 ) + - + 8 + - 97 * - NULLIF ( + - 64, CASE + 66 WHEN + 49 + + 56 + + 45 THEN 26 ELSE NULL END ) * + 64 - - COUNT ( * ) / CASE + - 34 WHEN - + 5 THEN + - 40 + + COUNT ( * ) + - ( 96 ) WHEN - CAST ( + 29 AS INTEGER ) THEN - 44 * MAX ( + - 32 ) END + - - 23
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1334
SELECT + - 31 + + - CAST( + - 58 AS SIGNED )
----
27

skipif mysql # not compatible
query I rowsort label-1334
SELECT + - 31 + + - CAST ( + - 58 AS INTEGER )
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-1335
SELECT - 23 * - + 49 - - - COALESCE ( + COUNT( * ), + 17, - 1 ) * + 56
----
1071

skipif mysql # not compatible
query I rowsort label-1335
SELECT - 23 * - + 49 - - - COALESCE ( + COUNT ( * ), + 17, - 1 ) * + 56
----
1071

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1337
SELECT + CASE + - 69 WHEN CASE + 85 WHEN - 60 THEN - - 27 * - 55 + + - 44 - - - 8 + 69 WHEN + 62 * + 48 * + - 24 * - 44 * 19 + - 31 THEN NULL END + 36 THEN 28 ELSE + ( + ( + 96 ) ) DIV - + COALESCE ( + 31, + + MAX( DISTINCT - 17 ), 92 ) END - + 64 + + + 19 AS col1
----
-48

skipif mysql # not compatible
query I rowsort label-1337
SELECT + CASE + - 69 WHEN CASE + 85 WHEN - 60 THEN - - 27 * - 55 + + - 44 - - - 8 + 69 WHEN + 62 * + 48 * + - 24 * - 44 * 19 + - 31 THEN NULL END + 36 THEN 28 ELSE + ( + ( + 96 ) ) / - + COALESCE ( + 31, + + MAX ( DISTINCT - 17 ), 92 ) END - + 64 + + + 19 AS col1
----
-48

query II rowsort
SELECT - 87 AS col1, ( + 97 )
----
-87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-1339
SELECT DISTINCT CASE - + 37 WHEN 36 + - 55 + - COUNT( * ) * + MAX( ALL - - 91 ) / + - COUNT( - 37 ) - 75 THEN NULL WHEN - 77 THEN 81 WHEN 66 THEN NULL ELSE + - 35 * 29 END
----
-1015

skipif mysql # not compatible
query I rowsort label-1339
SELECT DISTINCT CASE - + 37 WHEN 36 + - 55 + - COUNT ( * ) * + MAX ( ALL - - 91 ) / + - COUNT ( - 37 ) - 75 THEN NULL WHEN - 77 THEN 81 WHEN 66 THEN NULL ELSE + - 35 * 29 END
----
-1015

query I rowsort
SELECT ALL - 11 * - 67
----
737

onlyif mysql # DIV for integer division: 
query I rowsort label-1341
SELECT + 60 - + 59 + - + 84 DIV - 18 + + 28 * 42 AS col0
----
1181

skipif mysql # not compatible
query I rowsort label-1341
SELECT + 60 - + 59 + - + 84 / - 18 + + 28 * 42 AS col0
----
1181

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1343
SELECT DISTINCT 1 * + NULLIF ( + - CAST( NULL AS SIGNED ), + 34 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1343
SELECT DISTINCT 1 * + NULLIF ( + - CAST ( NULL AS INTEGER ), + 34 ) AS col1
----
NULL

query I rowsort
SELECT ALL + 75 - + 75 col0
----
0

query I rowsort
SELECT 90 * 84
----
7560

query I rowsort
SELECT 64 + + 13 AS col2
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-1347
SELECT - 16 * - COUNT( * ) * + ( - + 69 ) - - - 30 * - 89
----
1566

skipif mysql # not compatible
query I rowsort label-1347
SELECT - 16 * - COUNT ( * ) * + ( - + 69 ) - - - 30 * - 89
----
1566

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1348
SELECT ( + COUNT( * ) ) DIV - - 51 * - MIN( ALL 79 )
----
0

skipif mysql # not compatible
query I rowsort label-1348
SELECT ( + COUNT ( * ) ) / - - 51 * - MIN ( ALL 79 )
----
0

query II rowsort
SELECT 7, - 74 AS col2
----
7
-74

query I rowsort
SELECT 25 * - + 89 * - 18 AS col0
----
40050

onlyif mysql # DIV for integer division: 
query I rowsort label-1351
SELECT ALL + 49 DIV + 29
----
1

skipif mysql # not compatible
query I rowsort label-1351
SELECT ALL + 49 / + 29
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1352
SELECT + 53 * + - 81 * - 50 + + SUM( 36 ) DIV 19
----
214651

skipif mysql # not compatible
query I rowsort label-1352
SELECT + 53 * + - 81 * - 50 + + SUM ( 36 ) / 19
----
214651

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

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

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

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

query I rowsort
SELECT ALL - 4 + - ( 60 )
----
-64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1356
SELECT DISTINCT MIN( ALL ( + 44 ) ) * - CAST( 29 AS SIGNED )
----
-1276

skipif mysql # not compatible
query I rowsort label-1356
SELECT DISTINCT MIN ( ALL ( + 44 ) ) * - CAST ( 29 AS INTEGER )
----
-1276

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1357
SELECT DISTINCT - CASE - NULLIF ( + 2, CAST( NULL AS SIGNED ) + COALESCE ( 17, 41 ) * - ( + COUNT( ALL ( + 30 ) ) * 3 + - ( + 21 ) ) ) WHEN 29 + 79 THEN COUNT( ALL 50 ) / - 39 + 14 END + 84 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1357
SELECT DISTINCT - CASE - NULLIF ( + 2, CAST ( NULL AS INTEGER ) + COALESCE ( 17, 41 ) * - ( + COUNT ( ALL ( + 30 ) ) * 3 + - ( + 21 ) ) ) WHEN 29 + 79 THEN COUNT ( ALL 50 ) / - 39 + 14 END + 84 col2
----
NULL

query I rowsort
SELECT DISTINCT + 32 + - 25
----
7

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1360
SELECT - COUNT( * ) * 98 + + NULLIF ( SUM( 82 ), COUNT( * ) + + 80 ) AS col2
----
-16

skipif mysql # not compatible
query I rowsort label-1360
SELECT - COUNT ( * ) * 98 + + NULLIF ( SUM ( 82 ), COUNT ( * ) + + 80 ) AS col2
----
-16

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

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

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

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

query I rowsort
SELECT - ( + 40 ) * - 42 - 82
----
1598

onlyif mysql # aggregate syntax: 
query I rowsort label-1364
SELECT - 83 * COUNT( 11 ) + + 83 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1364
SELECT - 83 * COUNT ( 11 ) + + 83 AS col0
----
0

query I rowsort
SELECT 40 + + 21 AS col2
----
61

query I rowsort
SELECT ALL 62 + - 76
----
-14

onlyif mysql # DIV for integer division: 
query I rowsort label-1367
SELECT ALL 21 DIV 18
----
1

skipif mysql # not compatible
query I rowsort label-1367
SELECT ALL 21 / 18
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1368
SELECT ALL - CASE + 26 WHEN + 45 * + ( 62 * COUNT( * ) ) THEN 63 ELSE NULL END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1368
SELECT ALL - CASE + 26 WHEN + 45 * + ( 62 * COUNT ( * ) ) THEN 63 ELSE NULL END col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1369
SELECT MIN( ALL + 14 ) - 69 * COUNT( * )
----
-55

skipif mysql # not compatible
query I rowsort label-1369
SELECT MIN ( ALL + 14 ) - 69 * COUNT ( * )
----
-55

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1371
SELECT 6 * MIN( DISTINCT - 77 ) - - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1371
SELECT 6 * MIN ( DISTINCT - 77 ) - - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT CASE 8 WHEN 95 THEN - 81 WHEN + AVG ( DISTINCT - 29 ) * + 40 THEN NULL ELSE NULL END * 18 AS col1
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1374
SELECT CASE COALESCE ( + CAST( NULL AS SIGNED ), + CASE - 21 WHEN COUNT( ALL + 18 ) + - 18 THEN 99 * + 49 ELSE NULL END ) WHEN + 44 THEN 30 ELSE NULL END + + 16 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1374
SELECT CASE COALESCE ( + CAST ( NULL AS INTEGER ), + CASE - 21 WHEN COUNT ( ALL + 18 ) + - 18 THEN 99 * + 49 ELSE NULL END ) WHEN + 44 THEN 30 ELSE NULL END + + 16 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1375
SELECT DISTINCT 20 * + CASE 47 WHEN 48 * + 70 + ( ( AVG ( - 65 ) ) - 3 ) * - 25 THEN - 50 * - 42 - 84 WHEN 40 THEN COUNT( * ) + - 20 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1375
SELECT DISTINCT 20 * + CASE 47 WHEN 48 * + 70 + ( ( AVG ( - 65 ) ) - 3 ) * - 25 THEN - 50 * - 42 - 84 WHEN 40 THEN COUNT ( * ) + - 20 END AS col0
----
NULL

query I rowsort
SELECT 55 + - 94
----
-39

onlyif mysql # DIV for integer division: 
query I rowsort label-1377
SELECT ALL + 7 - 67 DIV 29
----
5

skipif mysql # not compatible
query I rowsort label-1377
SELECT ALL + 7 - 67 / 29
----
5

query I rowsort
SELECT 74 + - 44
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-1379
SELECT MIN( ALL 63 ) * - 18 col1
----
-1134

skipif mysql # not compatible
query I rowsort label-1379
SELECT MIN ( ALL 63 ) * - 18 col1
----
-1134

query I rowsort
SELECT DISTINCT 60 * 84 AS col2
----
5040

onlyif mysql # aggregate syntax: 
query I rowsort label-1381
SELECT COUNT( ALL + 83 ) * + ( + 68 * + 45 ) AS col0
----
3060

skipif mysql # not compatible
query I rowsort label-1381
SELECT COUNT ( ALL + 83 ) * + ( + 68 * + 45 ) AS col0
----
3060

onlyif mysql # DIV for integer division: 
query I rowsort label-1382
SELECT 9 + - 15 DIV 37
----
9

skipif mysql # not compatible
query I rowsort label-1382
SELECT 9 + - 15 / 37
----
9

query I rowsort
SELECT 19 + 51
----
70

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

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

query I rowsort
SELECT ALL - 17 + 54
----
37

query I rowsort
SELECT DISTINCT + 63 * 38 AS col2
----
2394

query I rowsort
SELECT 5 + - 15 * - 3
----
50

query I rowsort
SELECT ( 58 ) * - 96 AS col1
----
-5568

onlyif mysql # aggregate syntax: 
query I rowsort label-1389
SELECT SUM( 7 ) AS col2
----
7

skipif mysql # not compatible
query I rowsort label-1389
SELECT SUM ( 7 ) AS col2
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-1390
SELECT ALL - 38 * - NULLIF ( + 22, - COUNT( * ) + 1 * 11 ) + + MAX( 55 ) col0
----
891

skipif mysql # not compatible
query I rowsort label-1390
SELECT ALL - 38 * - NULLIF ( + 22, - COUNT ( * ) + 1 * 11 ) + + MAX ( 55 ) col0
----
891

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1391
SELECT ( + 50 ) - - ( - ( COUNT( * ) ) + + 57 DIV 29 ) col0
----
50

skipif mysql # not compatible
query I rowsort label-1391
SELECT ( + 50 ) - - ( - ( COUNT ( * ) ) + + 57 / 29 ) col0
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-1392
SELECT - + COUNT( * ) * - 9 + + 30 * + COALESCE ( 49 + MAX( 83 ), + 64 ) AS col2
----
3969

skipif mysql # not compatible
query I rowsort label-1392
SELECT - + COUNT ( * ) * - 9 + + 30 * + COALESCE ( 49 + MAX ( 83 ), + 64 ) AS col2
----
3969

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1394
SELECT - 45 DIV 71 + + 54 * - 50
----
-2700

skipif mysql # not compatible
query I rowsort label-1394
SELECT - 45 / 71 + + 54 * - 50
----
-2700

query I rowsort
SELECT ALL - 5 + - 45 AS col2
----
-50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1396
SELECT + 20 * SUM( CAST( NULL AS SIGNED ) * + COALESCE ( - 28, 47 / 65 - - 65 / - 95 ) - + 88 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1396
SELECT + 20 * SUM ( CAST ( NULL AS INTEGER ) * + COALESCE ( - 28, 47 / 65 - - 65 / - 95 ) - + 88 ) AS col1
----
NULL

query I rowsort
SELECT - 41 * - 10 + 2 * - ( + 8 )
----
394

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1398
SELECT + 79 DIV + 61 - - COUNT( * ) col0
----
2

skipif mysql # not compatible
query I rowsort label-1398
SELECT + 79 / + 61 - - COUNT ( * ) col0
----
2

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

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

query I rowsort
SELECT DISTINCT + - 12 * + 66 AS col1
----
-792

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1401
SELECT DISTINCT + + 95 - + CAST( 59 AS DECIMAL ) * - CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1401
SELECT DISTINCT + + 95 - + CAST ( 59 AS REAL ) * - CAST ( NULL AS REAL ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1402
SELECT + 78 + + ( NULLIF ( CAST( - 33 AS SIGNED ), + 53 ) ) * + NULLIF ( + 76, - 26 * - 72 ) AS col0
----
-2430

skipif mysql # not compatible
query I rowsort label-1402
SELECT + 78 + + ( NULLIF ( CAST ( - 33 AS INTEGER ), + 53 ) ) * + NULLIF ( + 76, - 26 * - 72 ) AS col0
----
-2430

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1404
SELECT ALL - - CASE 65 WHEN - COUNT( * ) + 19 THEN - 25 * - COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1404
SELECT ALL - - CASE 65 WHEN - COUNT ( * ) + 19 THEN - 25 * - COUNT ( * ) ELSE NULL END
----
NULL

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

query I rowsort
SELECT - ( ( 0 ) ) * 78
----
0

query I rowsort
SELECT ALL + + 3 * - 80 AS col1
----
-240

onlyif mysql # DIV for integer division: 
query I rowsort label-1408
SELECT ALL + 76 DIV - 54 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-1408
SELECT ALL + 76 / - 54 AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1409
SELECT - COUNT( ALL + 84 ) + MAX( - ( - 91 ) ) * - COUNT( DISTINCT - 22 / - 11 ) AS col1
----
-92

skipif mysql # not compatible
query I rowsort label-1409
SELECT - COUNT ( ALL + 84 ) + MAX ( - ( - 91 ) ) * - COUNT ( DISTINCT - 22 / - 11 ) AS col1
----
-92

query I rowsort
SELECT DISTINCT 6 + 29
----
35

query I rowsort
SELECT ALL 65 + 48 * 21
----
1073

onlyif mysql # aggregate syntax: 
query I rowsort label-1412
SELECT - 71 - + 62 + - 30 * - COUNT( * )
----
-103

skipif mysql # not compatible
query I rowsort label-1412
SELECT - 71 - + 62 + - 30 * - COUNT ( * )
----
-103

onlyif mysql # DIV for integer division: 
query I rowsort label-1413
SELECT ALL - 76 DIV + 85 col2
----
0

skipif mysql # not compatible
query I rowsort label-1413
SELECT ALL - 76 / + 85 col2
----
0

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

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

query I rowsort
SELECT + 99 * 55 AS col0
----
5445

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

skipif mysql # not compatible
query I rowsort label-1416
SELECT ALL COUNT ( * ) + + 52 AS col1
----
53

query I rowsort
SELECT - ( + + 99 ) * + CASE 86 WHEN - 40 * - 70 + - 25 * 5 THEN NULL WHEN 78 THEN 83 END AS col0
----
NULL

query I rowsort
SELECT - 87 + - - 26 * - 59 col2
----
-1621

query I rowsort
SELECT + 93 - + 5 AS col2
----
88

query I rowsort
SELECT + 64 + 4 - + 23
----
45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1421
SELECT + NULLIF ( - + 21, - 62 DIV + COUNT( * ) ) DIV - 25 + 43
----
43

skipif mysql # not compatible
query I rowsort label-1421
SELECT + NULLIF ( - + 21, - 62 / + COUNT ( * ) ) / - 25 + 43
----
43

query I rowsort
SELECT - 39 * 98 + 65 AS col0
----
-3757

query I rowsort
SELECT ALL 57 * - + 10 * - 21 - COALESCE ( + 10, + 97 ) AS col0
----
11960

query I rowsort
SELECT DISTINCT + - COALESCE ( + 4, 17 * + 2 ) col2
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-1425
SELECT + + COUNT( * ) + + - 45
----
-44

skipif mysql # not compatible
query I rowsort label-1425
SELECT + + COUNT ( * ) + + - 45
----
-44

query I rowsort
SELECT + COALESCE ( - 15, - 2 )
----
-15

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1427
SELECT - - 94 * - + CAST( NULL AS DECIMAL ) + - 89 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1427
SELECT - - 94 * - + CAST ( NULL AS REAL ) + - 89 AS col0
----
NULL

query I rowsort
SELECT + + 69 * + NULLIF ( 31, 32 ) + + 82 AS col2
----
2221

query I rowsort
SELECT - 90 * - + ( + 10 )
----
900

query I rowsort
SELECT 52 * - 52 + 36 AS col0
----
-2668

onlyif mysql # DIV for integer division: 
query I rowsort label-1431
SELECT ALL - 8 DIV + 84
----
0

skipif mysql # not compatible
query I rowsort label-1431
SELECT ALL - 8 / + 84
----
0

query I rowsort
SELECT - 56 + + 85 AS col2
----
29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1433
SELECT - CAST( NULL AS SIGNED ) - - 91
----
NULL

skipif mysql # not compatible
query I rowsort label-1433
SELECT - CAST ( NULL AS INTEGER ) - - 91
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1434
SELECT DISTINCT + NULLIF ( - 25, CAST( NULL AS SIGNED ) )
----
-25

skipif mysql # not compatible
query I rowsort label-1434
SELECT DISTINCT + NULLIF ( - 25, CAST ( NULL AS INTEGER ) )
----
-25

query I rowsort
SELECT ALL + 89 * + - 62 * - 37 * 57 col1
----
11637462

query I rowsort
SELECT - 83 + 0
----
-83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1437
SELECT - 59 + + - CAST( + 38 AS SIGNED )
----
-97

skipif mysql # not compatible
query I rowsort label-1437
SELECT - 59 + + - CAST ( + 38 AS INTEGER )
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-1438
SELECT ALL - COUNT( * ) + 95 - + 14 * 3
----
52

skipif mysql # not compatible
query I rowsort label-1438
SELECT ALL - COUNT ( * ) + 95 - + 14 * 3
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-1439
SELECT ALL - 90 + - COUNT( * )
----
-91

skipif mysql # not compatible
query I rowsort label-1439
SELECT ALL - 90 + - COUNT ( * )
----
-91

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

skipif mysql # not compatible
query I rowsort label-1440
SELECT DISTINCT + COUNT ( * ) + 99
----
100

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1441
SELECT ALL CAST( NULL AS SIGNED ), + 19 + 86 AS col1
----
NULL
105

skipif mysql # not compatible
query II rowsort label-1441
SELECT ALL CAST ( NULL AS INTEGER ), + 19 + 86 AS col1
----
NULL
105

query I rowsort
SELECT ALL + 90 + - 61
----
29

query I rowsort
SELECT - 24 + - + 22
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-1444
SELECT ALL + 18 + 64 * + - CASE + 2 WHEN + 4 THEN NULL ELSE 6 * + ( - 98 * + 73 ) END + + 10 * SUM( + 78 * - 77 ) AS col1
----
2687094

skipif mysql # not compatible
query I rowsort label-1444
SELECT ALL + 18 + 64 * + - CASE + 2 WHEN + 4 THEN NULL ELSE 6 * + ( - 98 * + 73 ) END + + 10 * SUM ( + 78 * - 77 ) AS col1
----
2687094

onlyif mysql # DIV for integer division: 
query I rowsort label-1445
SELECT - 0 DIV - + 97 * - 48
----
0

skipif mysql # not compatible
query I rowsort label-1445
SELECT - 0 / - + 97 * - 48
----
0

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

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

query I rowsort
SELECT + 93 + - ( + 86 ) AS col2
----
7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1448
SELECT DISTINCT - COALESCE ( + 39, 45 + - ( + SUM( DISTINCT + 90 ) + ( 25 ) ) ) DIV ( NULLIF ( 49, 71 ) * - MIN( ALL 92 * 70 ) )
----
0

skipif mysql # not compatible
query I rowsort label-1448
SELECT DISTINCT - COALESCE ( + 39, 45 + - ( + SUM ( DISTINCT + 90 ) + ( 25 ) ) ) / ( NULLIF ( 49, 71 ) * - MIN ( ALL 92 * 70 ) )
----
0

query I rowsort
SELECT - 81 * - 62 * - - 40 col2
----
200880

query II rowsort
SELECT 66, - 52 AS col0
----
66
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-1451
SELECT + COUNT( * ) + - NULLIF ( - - 65, COUNT( * ) + - 74 ) AS col1
----
-64

skipif mysql # not compatible
query I rowsort label-1451
SELECT + COUNT ( * ) + - NULLIF ( - - 65, COUNT ( * ) + - 74 ) AS col1
----
-64

query I rowsort
SELECT ALL ( + 76 ) - - - 99 - + 73 * 72
----
-5279

onlyif mysql # aggregate syntax: 
query I rowsort label-1453
SELECT - MAX( ALL + 9 ) AS col2
----
-9

skipif mysql # not compatible
query I rowsort label-1453
SELECT - MAX ( ALL + 9 ) AS col2
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-1454
SELECT DISTINCT + - CASE - 58 WHEN + 93 THEN COUNT( * ) + - CASE 30 WHEN AVG ( DISTINCT 85 ) + + 47 THEN NULL WHEN ( - MIN( ( + 19 ) ) ) THEN + AVG ( DISTINCT - 76 ) END ELSE NULL END - + AVG ( ALL 38 ) * 6 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1454
SELECT DISTINCT + - CASE - 58 WHEN + 93 THEN COUNT ( * ) + - CASE 30 WHEN AVG ( DISTINCT 85 ) + + 47 THEN NULL WHEN ( - MIN ( ( + 19 ) ) ) THEN + AVG ( DISTINCT - 76 ) END ELSE NULL END - + AVG ( ALL 38 ) * 6 AS col2
----
NULL

query I rowsort
SELECT ALL COALESCE ( + 72, CASE 99 WHEN 88 THEN - 99 END + 42 ) AS col0
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-1456
SELECT ALL - - 18 / + 51 - CASE 8 WHEN 26 THEN + 1 * - 61 WHEN + 49 * + 37 + + COUNT( * ) THEN NULL END + 27
----
NULL

skipif mysql # not compatible
query I rowsort label-1456
SELECT ALL - - 18 / + 51 - CASE 8 WHEN 26 THEN + 1 * - 61 WHEN + 49 * + 37 + + COUNT ( * ) THEN NULL END + 27
----
NULL

query I rowsort
SELECT CASE ( + + AVG ( - 28 ) ) WHEN + 6 + - 19 THEN - 97 END / 52 - - 19 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1458
SELECT + - 58 DIV + - 55 + - 81 * COUNT( * )
----
-80

skipif mysql # not compatible
query I rowsort label-1458
SELECT + - 58 / + - 55 + - 81 * COUNT ( * )
----
-80

query I rowsort
SELECT - 74 * + 20 + 27 * - 7
----
-1669

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1460
SELECT CAST( NULL AS SIGNED ) col1, - 8 DIV 5
----
NULL
-1

skipif mysql # not compatible
query II rowsort label-1460
SELECT CAST ( NULL AS INTEGER ) col1, - 8 / 5
----
NULL
-1

query II rowsort
SELECT ALL + 82 AS col2, 36 * + - 63 col2
----
82
-2268

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1463
SELECT - NULLIF ( + 47, + COUNT( * ) * + 8 + COALESCE ( - 58 + - 59, + MIN( CASE 67 WHEN + ( ( - 92 ) ) THEN + 2 END ) * + 24 ) ) - COUNT( + 72 )
----
-48

skipif mysql # not compatible
query I rowsort label-1463
SELECT - NULLIF ( + 47, + COUNT ( * ) * + 8 + COALESCE ( - 58 + - 59, + MIN ( CASE 67 WHEN + ( ( - 92 ) ) THEN + 2 END ) * + 24 ) ) - COUNT ( + 72 )
----
-48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1464
SELECT ALL - 68 DIV 14 * - 68 * + 74 + COUNT( * )
----
20129

skipif mysql # not compatible
query I rowsort label-1464
SELECT ALL - 68 / 14 * - 68 * + 74 + COUNT ( * )
----
20129

onlyif mysql # aggregate syntax: 
query I rowsort label-1465
SELECT 62 * + ( - COUNT( * ) ) * 92 AS col1
----
-5704

skipif mysql # not compatible
query I rowsort label-1465
SELECT 62 * + ( - COUNT ( * ) ) * 92 AS col1
----
-5704

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1466
SELECT ALL - - NULLIF ( 21, 31 ) + - 40 DIV + COUNT( * ) AS col1
----
-19

skipif mysql # not compatible
query I rowsort label-1466
SELECT ALL - - NULLIF ( 21, 31 ) + - 40 / + COUNT ( * ) AS col1
----
-19

query I rowsort
SELECT ALL + 77 + + ( + 20 )
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-1468
SELECT 39 + 41 * 33 + COUNT( * )
----
1393

skipif mysql # not compatible
query I rowsort label-1468
SELECT 39 + 41 * 33 + COUNT ( * )
----
1393

onlyif mysql # DIV for integer division: 
query I rowsort label-1469
SELECT 74 DIV - - 39 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1469
SELECT 74 / - - 39 AS col1
----
1

query I rowsort
SELECT ALL 89 + - 93 + CASE + 80 WHEN - 17 THEN NULL ELSE 77 * - 46 + - 60 END
----
-3606

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1472
SELECT DISTINCT AVG ( + CAST( NULL AS SIGNED ) ) + AVG ( DISTINCT + CAST( + 85 AS SIGNED ) ) AS col0
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1473
SELECT ALL 53 + 72 * - + 50 + - CASE 43 WHEN - ( + 3 ) THEN 74 * + CASE WHEN NOT 82 IS NOT NULL THEN 55 END ELSE NULL END + COUNT( ALL + 81 + 96 ) * - 31
----
NULL

skipif mysql # not compatible
query I rowsort label-1473
SELECT ALL 53 + 72 * - + 50 + - CASE 43 WHEN - ( + 3 ) THEN 74 * + CASE WHEN NOT 82 IS NOT NULL THEN 55 END ELSE NULL END + COUNT ( ALL + 81 + 96 ) * - 31
----
NULL

query II rowsort
SELECT 9 * + 99 AS col2, + 12
----
891
12

onlyif mysql # DIV for integer division: 
query I rowsort label-1475
SELECT ALL 30 + 47 DIV 34 AS col0
----
31

skipif mysql # not compatible
query I rowsort label-1475
SELECT ALL 30 + 47 / 34 AS col0
----
31

onlyif mysql # DIV for integer division: 
query I rowsort label-1476
SELECT DISTINCT 88 DIV + 21
----
4

skipif mysql # not compatible
query I rowsort label-1476
SELECT DISTINCT 88 / + 21
----
4

query I rowsort
SELECT 25 * + 68 AS col1
----
1700

query I rowsort
SELECT 99 + + 57 + + + 88 * - - 27 col1
----
2532

query I rowsort
SELECT 34 * + - 62 AS col2
----
-2108

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1480
SELECT ( + 31 ) + - 15 + + 66 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1480
SELECT ( + 31 ) + - 15 + + 66 + CAST ( NULL AS INTEGER )
----
NULL

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

skipif mysql # not compatible
query I rowsort label-1481
SELECT ALL + ( + COUNT ( * ) ) - - 53 AS col0
----
54

query I rowsort
SELECT 24 - 17 * + + 98 * + - 10
----
16684

query I rowsort
SELECT DISTINCT 81 * - 20 * - 5
----
8100

query I rowsort
SELECT ALL + 87 - 43 * - 48 AS col0
----
2151

onlyif mysql # aggregate syntax: 
query I rowsort label-1485
SELECT + 99 + + SUM( ALL + + 52 ) * - 29 * + 7
----
-10457

skipif mysql # not compatible
query I rowsort label-1485
SELECT + 99 + + SUM ( ALL + + 52 ) * - 29 * + 7
----
-10457

onlyif mysql # aggregate syntax: 
query I rowsort label-1486
SELECT ALL - SUM( + 86 ) * - + NULLIF ( - - 93, 53 * + 76 )
----
7998

skipif mysql # not compatible
query I rowsort label-1486
SELECT ALL - SUM ( + 86 ) * - + NULLIF ( - - 93, 53 * + 76 )
----
7998

query I rowsort
SELECT - 8 * - 28
----
224

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1488
SELECT CAST( NULL AS SIGNED ) + 73 * + 83 + - 12 * 6 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1488
SELECT CAST ( NULL AS INTEGER ) + 73 * + 83 + - 12 * 6 AS col1
----
NULL

query I rowsort
SELECT - 66 + - + CASE 96 WHEN + 3 * 93 THEN 20 WHEN + 59 THEN 37 / 3 + 35 END + + 45
----
NULL

query I rowsort
SELECT 28 - - + 82 AS col1
----
110

query I rowsort
SELECT - 75 * - 53 + - 18 * + 95
----
2265

onlyif mysql # aggregate syntax: 
query I rowsort label-1492
SELECT MIN( ALL - - ( + 10 ) ) * + 89
----
890

skipif mysql # not compatible
query I rowsort label-1492
SELECT MIN ( ALL - - ( + 10 ) ) * + 89
----
890

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

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

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-1496
SELECT - COALESCE ( - + COUNT ( * ), 86 ) AS col2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1497
SELECT DISTINCT - + 34 * - CAST( NULL AS SIGNED ) * - ( + 26 ) * + ( 15 + COALESCE ( 18, - 83 + - 85 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1497
SELECT DISTINCT - + 34 * - CAST ( NULL AS INTEGER ) * - ( + 26 ) * + ( 15 + COALESCE ( 18, - 83 + - 85 ) )
----
NULL

query I rowsort
SELECT ALL - - 83 + 34 + + - 69 AS col2
----
48

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

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

query I rowsort
SELECT CASE + 55 WHEN + 9 THEN - NULLIF ( + ( 64 ), + ( + 19 ) ) END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1501
SELECT COUNT( * ) * + - ( CAST( + - 70 AS SIGNED ) ) DIV COUNT( * ) AS col1
----
70

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

query I rowsort
SELECT DISTINCT + 35 + + COALESCE ( 15, + 38 * - 16 - + 4 ) - 90 * 12
----
-1030

onlyif mysql # aggregate syntax: 
query I rowsort label-1503
SELECT ALL + 17 + - - 73 + + - MAX( + + NULLIF ( - CASE 16 WHEN ( - 23 ) + 22 THEN - 54 END, 34 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1503
SELECT ALL + 17 + - - 73 + + - MAX ( + + NULLIF ( - CASE 16 WHEN ( - 23 ) + 22 THEN - 54 END, 34 ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1504
SELECT ALL COUNT( * ) + + 4 + - 98 + + - 8 * - + 78 col0
----
531

skipif mysql # not compatible
query I rowsort label-1504
SELECT ALL COUNT ( * ) + + 4 + - 98 + + - 8 * - + 78 col0
----
531

query I rowsort
SELECT DISTINCT 47 * + 1
----
47

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1506
SELECT 25 + - COALESCE ( + + 63, - 99 ) + - + CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1506
SELECT 25 + - COALESCE ( + + 63, - 99 ) + - + CAST ( NULL AS REAL ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1507
SELECT DISTINCT 41 - + + NULLIF ( 74, + CASE + 18 WHEN 66 THEN NULL WHEN - 16 * NULLIF ( + COALESCE ( SUM( DISTINCT CAST( + ( - 87 ) AS SIGNED ) ), - 5 * 77, 68 ), + 63 * - MIN( - 0 ) - - CASE - 60 WHEN + ( - ( - 98 ) ) * + 41 THEN - COUNT( * ) + 4 END ) THEN NULL ELSE 72 END + 31 ) * 45
----
-3289

skipif mysql # not compatible
query I rowsort label-1507
SELECT DISTINCT 41 - + + NULLIF ( 74, + CASE + 18 WHEN 66 THEN NULL WHEN - 16 * NULLIF ( + COALESCE ( SUM ( DISTINCT CAST ( + ( - 87 ) AS INTEGER ) ), - 5 * 77, 68 ), + 63 * - MIN ( - 0 ) - - CASE - 60 WHEN + ( - ( - 98 ) ) * + 41 THEN - COUNT ( * ) + 4 END ) THEN NULL ELSE 72 END + 31 ) * 45
----
-3289

onlyif mysql # aggregate syntax: 
query I rowsort label-1508
SELECT COUNT( * ) * + NULLIF ( - + 96, 6 ) * - + 85
----
8160

skipif mysql # not compatible
query I rowsort label-1508
SELECT COUNT ( * ) * + NULLIF ( - + 96, 6 ) * - + 85
----
8160

query I rowsort
SELECT ALL 76 - - + 38 * + COALESCE ( + - 61, 63 )
----
-2242

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1510
SELECT COALESCE ( - 39, + CASE - 4 WHEN 1 THEN - 40 WHEN 9 * COUNT( * ) THEN NULL WHEN + 5 * - 76 THEN 98 ELSE - 3 * - 94 + - 48 END * 1, - CAST( NULL AS SIGNED ) + 5 ) + + 57 * + 48 col2
----
2697

skipif mysql # not compatible
query I rowsort label-1510
SELECT COALESCE ( - 39, + CASE - 4 WHEN 1 THEN - 40 WHEN 9 * COUNT ( * ) THEN NULL WHEN + 5 * - 76 THEN 98 ELSE - 3 * - 94 + - 48 END * 1, - CAST ( NULL AS INTEGER ) + 5 ) + + 57 * + 48 col2
----
2697

query II rowsort
SELECT ALL 69 col0, 65 AS col0
----
69
65

onlyif mysql # aggregate syntax: 
query II rowsort label-1512
SELECT ALL 21 AS col2, CASE - 59 WHEN COUNT( * ) THEN NULL ELSE 23 + 40 END
----
21
63

skipif mysql # not compatible
query II rowsort label-1512
SELECT ALL 21 AS col2, CASE - 59 WHEN COUNT ( * ) THEN NULL ELSE 23 + 40 END
----
21
63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1513
SELECT 34 + - ( - CAST( + 89 AS SIGNED ) )
----
123

skipif mysql # not compatible
query I rowsort label-1513
SELECT 34 + - ( - CAST ( + 89 AS INTEGER ) )
----
123

query I rowsort
SELECT ALL 40 - + 73 AS col0
----
-33

query II rowsort
SELECT 94 AS col0, + 36
----
94
36

query I rowsort
SELECT ALL + 55 - - 23 AS col2
----
78

onlyif mysql # DIV for integer division: 
query I rowsort label-1517
SELECT ALL ( + - 77 ) DIV - 53 col0
----
1

skipif mysql # not compatible
query I rowsort label-1517
SELECT ALL ( + - 77 ) / - 53 col0
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-1518
SELECT + 46 + - ( + COUNT( * ) ) AS col2, 16
----
45
16

skipif mysql # not compatible
query II rowsort label-1518
SELECT + 46 + - ( + COUNT ( * ) ) AS col2, 16
----
45
16

query I rowsort
SELECT 53 * - - 5 AS col2
----
265

query I rowsort
SELECT 43 + - 81
----
-38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1521
SELECT ALL - + 36 * - MIN( DISTINCT + 78 ) * CAST( NULL AS SIGNED ) + 31 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1521
SELECT ALL - + 36 * - MIN ( DISTINCT + 78 ) * CAST ( NULL AS INTEGER ) + 31 AS col1
----
NULL

query I rowsort
SELECT + 73 * - - 39 AS col1
----
2847

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1523
SELECT + CAST( NULL AS DECIMAL ) + + 37 + - 13 + + CASE - 41 WHEN NULLIF ( + 15, + 37 ) * - 56 THEN NULL ELSE + 78 END * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1523
SELECT + CAST ( NULL AS REAL ) + + 37 + - 13 + + CASE - 41 WHEN NULLIF ( + 15, + 37 ) * - 56 THEN NULL ELSE + 78 END * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1524
SELECT DISTINCT 51 * 32 DIV + 72 - NULLIF ( + - COUNT( * ), 59 ) * 88 col0
----
110

skipif mysql # not compatible
query I rowsort label-1524
SELECT DISTINCT 51 * 32 / + 72 - NULLIF ( + - COUNT ( * ), 59 ) * 88 col0
----
110

onlyif mysql # aggregate syntax: 
query I rowsort label-1525
SELECT - 95 + - 9 + - - ( - - COUNT( * ) ) + + 67 AS col2
----
-36

skipif mysql # not compatible
query I rowsort label-1525
SELECT - 95 + - 9 + - - ( - - COUNT ( * ) ) + + 67 AS col2
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-1526
SELECT DISTINCT MIN( 12 ) + - + 9 * - - 10 AS col1
----
-78

skipif mysql # not compatible
query I rowsort label-1526
SELECT DISTINCT MIN ( 12 ) + - + 9 * - - 10 AS col1
----
-78

onlyif mysql # aggregate syntax: 
query II rowsort label-1527
SELECT DISTINCT + 79 + + - 81 - 69 col1, COUNT( * ) AS col2
----
-71
1

skipif mysql # not compatible
query II rowsort label-1527
SELECT DISTINCT + 79 + + - 81 - 69 col1, COUNT ( * ) AS col2
----
-71
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1528
SELECT + COUNT( + 68 ) DIV + 85 + + - 69 DIV + 66 - + 44 - - COALESCE ( + 47 + + COALESCE ( + 73 + 70, COUNT( * ) + 89 ) DIV - 60, COUNT( ALL 0 ) * - 41, 60 ) * + 79 AS col0
----
3510

skipif mysql # not compatible
query I rowsort label-1528
SELECT + COUNT ( + 68 ) / + 85 + + - 69 / + 66 - + 44 - - COALESCE ( + 47 + + COALESCE ( + 73 + 70, COUNT ( * ) + 89 ) / - 60, COUNT ( ALL 0 ) * - 41, 60 ) * + 79 AS col0
----
3510

query I rowsort
SELECT - - 52 * + ( + 62 ) - + + 61 + 44 * 59 AS col2
----
5759

onlyif mysql # aggregate syntax: 
query II rowsort label-1530
SELECT DISTINCT 19 * + 96 + + 72 AS col2, - COUNT( * )
----
1896
-1

skipif mysql # not compatible
query II rowsort label-1530
SELECT DISTINCT 19 * + 96 + + 72 AS col2, - COUNT ( * )
----
1896
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1531
SELECT + SUM( DISTINCT - 51 ) col1
----
-51

skipif mysql # not compatible
query I rowsort label-1531
SELECT + SUM ( DISTINCT - 51 ) col1
----
-51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1532
SELECT - COUNT( * ) DIV + 63 * 16 + + + COUNT( * ) + + - 28 DIV 62 + + COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-1532
SELECT - COUNT ( * ) / + 63 * 16 + + + COUNT ( * ) + + - 28 / 62 + + COUNT ( * )
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-1533
SELECT ALL + 85 DIV + 39
----
2

skipif mysql # not compatible
query I rowsort label-1533
SELECT ALL + 85 / + 39
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-1534
SELECT + - CASE + 38 WHEN - + COUNT( - 50 ) * 88 / 18 + - 87 - ( ( - 51 ) ) THEN NULL ELSE - 29 END + 93
----
122

skipif mysql # not compatible
query I rowsort label-1534
SELECT + - CASE + 38 WHEN - + COUNT ( - 50 ) * 88 / 18 + - 87 - ( ( - 51 ) ) THEN NULL ELSE - 29 END + 93
----
122

onlyif mysql # aggregate syntax: 
query I rowsort label-1535
SELECT DISTINCT + 2 * + + 31 + - 71 + - ( COALESCE ( 22, 68, + COUNT( * ) + 5 ) ) - 23
----
-54

skipif mysql # not compatible
query I rowsort label-1535
SELECT DISTINCT + 2 * + + 31 + - 71 + - ( COALESCE ( 22, 68, + COUNT ( * ) + 5 ) ) - 23
----
-54

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

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

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

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

query I rowsort
SELECT DISTINCT - 11 * + 69 + NULLIF ( + 4, - 90 + + 71 / - 36 ) + 94 * - 35 AS col2
----
-4045

onlyif mysql # aggregate syntax: 
query I rowsort label-1539
SELECT ALL + 31 * - NULLIF ( - + 59, + COUNT( * ) ) AS col1
----
1829

skipif mysql # not compatible
query I rowsort label-1539
SELECT ALL + 31 * - NULLIF ( - + 59, + COUNT ( * ) ) AS col1
----
1829

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1540
SELECT ALL - MAX( ALL - ( - - CAST( NULL AS SIGNED ) ) ) * 21 * - - 65 - - 65 + 58 AS col0
----
NULL

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1541
SELECT NULLIF ( + CASE CASE 42 WHEN - + 87 THEN + 84 WHEN + 9 + - 10 THEN - COUNT( ALL 55 ) * + 86 ELSE 91 END WHEN - CAST( CASE 34 WHEN 50 THEN 40 - 9 END AS SIGNED ) THEN NULL ELSE 2 * COUNT( * ) + 94 END, COUNT( * ) ) AS col2
----
96

skipif mysql # not compatible
query I rowsort label-1541
SELECT NULLIF ( + CASE CASE 42 WHEN - + 87 THEN + 84 WHEN + 9 + - 10 THEN - COUNT ( ALL 55 ) * + 86 ELSE 91 END WHEN - CAST ( CASE 34 WHEN 50 THEN 40 - 9 END AS INTEGER ) THEN NULL ELSE 2 * COUNT ( * ) + 94 END, COUNT ( * ) ) AS col2
----
96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1542
SELECT - COUNT( * ) * - 64 DIV COUNT( * ) * ( + 95 ) AS col2
----
6080

skipif mysql # not compatible
query I rowsort label-1542
SELECT - COUNT ( * ) * - 64 / COUNT ( * ) * ( + 95 ) AS col2
----
6080

query II rowsort
SELECT + 18 * + 16 AS col1, - 39 AS col0
----
288
-39

query I rowsort
SELECT + 77 * + COALESCE ( - + 68, + 26 + - 27 ) AS col0
----
-5236

query I rowsort
SELECT DISTINCT + CASE - 99 WHEN - 22 * 56 * + - 81 THEN + 95 * 10 WHEN - NULLIF ( + 70, 73 ) * - 28 THEN NULL END
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1547
SELECT + CASE + - COUNT( * ) WHEN - CASE + 25 WHEN + CAST( + 43 AS SIGNED ) THEN CASE - 6 WHEN - 77 THEN 94 ELSE NULL END END + COUNT( * ) THEN NULL WHEN 40 * - 86 THEN - COUNT( DISTINCT 86 ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1547
SELECT + CASE + - COUNT ( * ) WHEN - CASE + 25 WHEN + CAST ( + 43 AS INTEGER ) THEN CASE - 6 WHEN - 77 THEN 94 ELSE NULL END END + COUNT ( * ) THEN NULL WHEN 40 * - 86 THEN - COUNT ( DISTINCT 86 ) END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1548
SELECT - 82 * - - CASE - + 85 WHEN + - 48 THEN NULL WHEN NULLIF ( + 86, COUNT( * ) * - CAST( NULL AS SIGNED ) + COALESCE ( - MAX( + 72 ), - 65, - 86 ) ) + COUNT( - 30 - + 97 ) * - 24 THEN NULL ELSE - CASE - 53 WHEN + 56 THEN 17 + + 77 * - 81 WHEN 0 * 4 THEN NULL ELSE NULL END END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1548
SELECT - 82 * - - CASE - + 85 WHEN + - 48 THEN NULL WHEN NULLIF ( + 86, COUNT ( * ) * - CAST ( NULL AS INTEGER ) + COALESCE ( - MAX ( + 72 ), - 65, - 86 ) ) + COUNT ( - 30 - + 97 ) * - 24 THEN NULL ELSE - CASE - 53 WHEN + 56 THEN 17 + + 77 * - 81 WHEN 0 * 4 THEN NULL ELSE NULL END END AS col2
----
NULL

query I rowsort
SELECT DISTINCT + CASE + 18 WHEN 71 THEN NULL ELSE + 33 END AS col0
----
33

query II rowsort
SELECT ALL 64 AS col0, 34 + - 0 + - + 26 * + 57 AS col2
----
64
-1448

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1551
SELECT ALL ( - - CAST( - MAX( 14 ) AS SIGNED ) ) AS col0
----
-14

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1553
SELECT + MAX( + - 41 ) * CAST( - 11 AS SIGNED ) * 72
----
32472

skipif mysql # not compatible
query I rowsort label-1553
SELECT + MAX ( + - 41 ) * CAST ( - 11 AS INTEGER ) * 72
----
32472

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1555
SELECT - 99 + + - CAST( 26 AS SIGNED ) col0
----
-125

skipif mysql # not compatible
query I rowsort label-1555
SELECT - 99 + + - CAST ( 26 AS INTEGER ) col0
----
-125

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1556
SELECT + - 76 + - CASE - SUM( 14 ) WHEN 73 THEN NULL WHEN COUNT( * ) THEN 80 * CAST( + CASE + NULLIF ( - 73, + 76 * - COUNT( * ) ) WHEN 11 THEN NULLIF ( - 52, - 51 * 50 ) ELSE NULL END / 93 AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1556
SELECT + - 76 + - CASE - SUM ( 14 ) WHEN 73 THEN NULL WHEN COUNT ( * ) THEN 80 * CAST ( + CASE + NULLIF ( - 73, + 76 * - COUNT ( * ) ) WHEN 11 THEN NULLIF ( - 52, - 51 * 50 ) ELSE NULL END / 93 AS INTEGER ) END
----
NULL

query I rowsort
SELECT + COALESCE ( - + 37, - + 70 ) AS col1
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-1558
SELECT - + ( NULLIF ( COUNT( * ), - AVG ( 83 ) + 59 / 50 ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-1558
SELECT - + ( NULLIF ( COUNT ( * ), - AVG ( 83 ) + 59 / 50 ) ) AS col1
----
-1

query II rowsort
SELECT 2, + ( + - 77 ) AS col2
----
2
-77

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1561
SELECT DISTINCT + 63 + MIN( 24 ) + - 75 + 75 AS col2
----
87

skipif mysql # not compatible
query I rowsort label-1561
SELECT DISTINCT + 63 + MIN ( 24 ) + - 75 + 75 AS col2
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-1562
SELECT + 84 + - MIN( ALL - + 88 ) AS col0
----
172

skipif mysql # not compatible
query I rowsort label-1562
SELECT + 84 + - MIN ( ALL - + 88 ) AS col0
----
172

onlyif mysql # aggregate syntax: 
query I rowsort label-1563
SELECT DISTINCT + COUNT( * ) + 31 + - 83 * - - 33 + + 9
----
-2698

skipif mysql # not compatible
query I rowsort label-1563
SELECT DISTINCT + COUNT ( * ) + 31 + - 83 * - - 33 + + 9
----
-2698

query I rowsort
SELECT DISTINCT - 91 * 51 + 39
----
-4602

query I rowsort
SELECT ALL 81 + - - 21 AS col1
----
102

onlyif mysql # aggregate syntax: 
query I rowsort label-1566
SELECT + - MAX( - 16 ) + 29 AS col2
----
45

skipif mysql # not compatible
query I rowsort label-1566
SELECT + - MAX ( - 16 ) + 29 AS col2
----
45

query I rowsort
SELECT - + 69 * 58
----
-4002

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

query II rowsort
SELECT - - 95 - - 42 AS col2, 86 AS col0
----
137
86

query II rowsort
SELECT - - 47 AS col1, 46 * 69
----
47
3174

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

query II rowsort
SELECT + 78 AS col0, + 22 * - - ( - 24 ) * - - 74 AS col0
----
78
-39072

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1573
SELECT DISTINCT + CAST( NULL AS SIGNED ) / + 93 + + 31 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1573
SELECT DISTINCT + CAST ( NULL AS INTEGER ) / + 93 + + 31 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1574
SELECT ALL MAX( + + NULLIF ( - - 33, - - 47 ) ) * 41 * - 58 AS col2
----
-78474

skipif mysql # not compatible
query I rowsort label-1574
SELECT ALL MAX ( + + NULLIF ( - - 33, - - 47 ) ) * 41 * - 58 AS col2
----
-78474

onlyif mysql # aggregate syntax: 
query I rowsort label-1575
SELECT - SUM( + - ( - 7 ) ) col0
----
-7

skipif mysql # not compatible
query I rowsort label-1575
SELECT - SUM ( + - ( - 7 ) ) col0
----
-7

query I rowsort
SELECT + 45 * + 92 + - + 17 * + 0
----
4140

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1577
SELECT + CAST( NULL AS DECIMAL ) + + CAST( NULL AS DECIMAL ) * + ( 67 ) * + 27 + + ( COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1577
SELECT + CAST ( NULL AS REAL ) + + CAST ( NULL AS REAL ) * + ( 67 ) * + 27 + + ( COUNT ( * ) )
----
NULL

query I rowsort
SELECT - 94 * + CASE - - CASE + 33 WHEN 23 THEN 74 END WHEN - 72 THEN NULL ELSE - 3 END - 6 AS col0
----
276

onlyif mysql # DIV for integer division: 
query I rowsort label-1579
SELECT ALL - 57 DIV - + 88 - + - 31 AS col2
----
31

skipif mysql # not compatible
query I rowsort label-1579
SELECT ALL - 57 / - + 88 - + - 31 AS col2
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-1580
SELECT ALL + ( - + CASE + 23 WHEN + 63 + + + COALESCE ( + + 7, - + 10, 20 * + 38 ) THEN + 47 * - 4 + ( - 62 + + SUM( ALL - 8 ) / COUNT( * ) ) END )
----
NULL

skipif mysql # not compatible
query I rowsort label-1580
SELECT ALL + ( - + CASE + 23 WHEN + 63 + + + COALESCE ( + + 7, - + 10, 20 * + 38 ) THEN + 47 * - 4 + ( - 62 + + SUM ( ALL - 8 ) / COUNT ( * ) ) END )
----
NULL

query II rowsort
SELECT ( 2 ), + 6 AS col1
----
2
6

onlyif mysql # aggregate syntax: 
query I rowsort label-1582
SELECT ALL + CASE 82 WHEN + - COALESCE ( + + AVG ( DISTINCT + 8 ), + - 81 * + + 65 * 36, + CASE + 97 WHEN - CASE COUNT( * ) WHEN - 16 * 57 - 21 THEN NULL WHEN 94 * - COUNT( * ) THEN NULL WHEN - 73 * 70 - + 77 THEN COUNT( * ) END THEN NULL ELSE 79 END ) + 57 THEN + 92 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1582
SELECT ALL + CASE 82 WHEN + - COALESCE ( + + AVG ( DISTINCT + 8 ), + - 81 * + + 65 * 36, + CASE + 97 WHEN - CASE COUNT ( * ) WHEN - 16 * 57 - 21 THEN NULL WHEN 94 * - COUNT ( * ) THEN NULL WHEN - 73 * 70 - + 77 THEN COUNT ( * ) END THEN NULL ELSE 79 END ) + 57 THEN + 92 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1583
SELECT - COALESCE ( 2, + - 14, + + 72 + - 50 ) * + - COUNT( * ) + + + COUNT( * ) + + 60 DIV 8 * - 68 AS col1
----
-473

skipif mysql # not compatible
query I rowsort label-1583
SELECT - COALESCE ( 2, + - 14, + + 72 + - 50 ) * + - COUNT ( * ) + + + COUNT ( * ) + + 60 / 8 * - 68 AS col1
----
-473

query II rowsort
SELECT ALL + 80 * + 41 - 20 AS col0, 59
----
3260
59

onlyif mysql # DIV for integer division: 
query I rowsort label-1585
SELECT ALL - 0 DIV 77 * 63 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1585
SELECT ALL - 0 / 77 * 63 AS col1
----
0

query II rowsort
SELECT - 35 + 54 col2, 5 AS col1
----
19
5

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1587
SELECT ALL - 55 * - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-1587
SELECT ALL - 55 * - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1588
SELECT ALL + CASE ( + 22 ) WHEN CAST( 38 AS SIGNED ) + 41 - + 44 THEN NULL ELSE 35 + 33 END AS col0
----
68

skipif mysql # not compatible
query I rowsort label-1588
SELECT ALL + CASE ( + 22 ) WHEN CAST ( 38 AS INTEGER ) + 41 - + 44 THEN NULL ELSE 35 + 33 END AS col0
----
68

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1590
SELECT - 99 * - 87 AS col1, - CAST( NULL AS SIGNED ) AS col1
----
8613
NULL

skipif mysql # not compatible
query II rowsort label-1590
SELECT - 99 * - 87 AS col1, - CAST ( NULL AS INTEGER ) AS col1
----
8613
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1591
SELECT - CASE + COUNT( * ) WHEN - - ( + + 73 ) THEN - COUNT( + 60 ) ELSE NULL END * 99
----
NULL

skipif mysql # not compatible
query I rowsort label-1591
SELECT - CASE + COUNT ( * ) WHEN - - ( + + 73 ) THEN - COUNT ( + 60 ) ELSE NULL END * 99
----
NULL

query I rowsort
SELECT COALESCE ( - + 20, + 21 + + 87 ) AS col2
----
-20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1593
SELECT + CASE - CAST( CASE 78 WHEN - COUNT( * ) + - 18 THEN - 0 END AS SIGNED ) WHEN COUNT( * ) THEN NULL ELSE COUNT( * ) + - 79 END + + 53
----
-25

skipif mysql # not compatible
query I rowsort label-1593
SELECT + CASE - CAST ( CASE 78 WHEN - COUNT ( * ) + - 18 THEN - 0 END AS INTEGER ) WHEN COUNT ( * ) THEN NULL ELSE COUNT ( * ) + - 79 END + + 53
----
-25

query I rowsort
SELECT COALESCE ( + 83, - COALESCE ( - 81, ( - - 12 ), 7 ) + + 72 ) AS col2
----
83

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1596
SELECT + NULLIF ( - - 74, - 67 ) + - COALESCE ( + 33, + 8 + ( + COUNT( * ) ) ) col0
----
41

skipif mysql # not compatible
query I rowsort label-1596
SELECT + NULLIF ( - - 74, - 67 ) + - COALESCE ( + 33, + 8 + ( + COUNT ( * ) ) ) col0
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-1597
SELECT DISTINCT - 92 + 83 + - COUNT( * )
----
-10

skipif mysql # not compatible
query I rowsort label-1597
SELECT DISTINCT - 92 + 83 + - COUNT ( * )
----
-10

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

skipif mysql # not compatible
query I rowsort label-1598
SELECT DISTINCT + 12 + COUNT ( * ) AS col2
----
13

query I rowsort
SELECT DISTINCT - 43 + - COALESCE ( + 82, + ( + - ( + 44 ) ) * + 54 + 7, + ( - 48 ) ) AS col2
----
-125

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-1601
SELECT - CAST( 44 AS SIGNED ) AS col1, COUNT( * ) col0, - + COUNT( * ) col2
----
-44
1
-1

skipif mysql # not compatible
query III rowsort label-1601
SELECT - CAST ( 44 AS INTEGER ) AS col1, COUNT ( * ) col0, - + COUNT ( * ) col2
----
-44
1
-1

query II rowsort
SELECT ALL + ( + 67 ) + - 62 AS col1, 87 AS col2
----
5
87

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

query I rowsort
SELECT ALL CASE + 54 WHEN - - AVG ( DISTINCT 49 ) * - + 78 THEN + 61 + - 66 + + 23 * + 53 END * + 60
----
NULL

query II rowsort
SELECT DISTINCT ( - 21 ) col0, + 49 col0
----
-21
49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1606
SELECT ALL COALESCE ( - COUNT( * ), - 17 + CAST( - NULLIF ( - CASE - 48 WHEN + COALESCE ( + 75, 26 + 29 * CASE + 24 * 7 WHEN + 18 THEN 66 * 64 WHEN - 14 * - 37 THEN NULL WHEN + 58 * + ( - 91 * - 25 ) THEN NULL ELSE NULL END ) THEN 86 ELSE NULL END, + MIN( - 83 ) ) AS SIGNED ) DIV + 31, + 32 * - 31, - 30 ) - 97
----
-98

skipif mysql # not compatible
query I rowsort label-1606
SELECT ALL COALESCE ( - COUNT ( * ), - 17 + CAST ( - NULLIF ( - CASE - 48 WHEN + COALESCE ( + 75, 26 + 29 * CASE + 24 * 7 WHEN + 18 THEN 66 * 64 WHEN - 14 * - 37 THEN NULL WHEN + 58 * + ( - 91 * - 25 ) THEN NULL ELSE NULL END ) THEN 86 ELSE NULL END, + MIN ( - 83 ) ) AS INTEGER ) / + 31, + 32 * - 31, - 30 ) - 97
----
-98

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

query I rowsort
SELECT + 93 + 74 + - - ( + 76 )
----
243

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1609
SELECT DISTINCT - 36 - - CAST( NULL AS SIGNED ) + 60 * 86 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1609
SELECT DISTINCT - 36 - - CAST ( NULL AS INTEGER ) + 60 * 86 col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1610
SELECT ALL CASE - - 42 WHEN - 87 - + CAST( 23 AS SIGNED ) THEN - 48 / - - ( + NULLIF ( COUNT( DISTINCT - 41 ), 25 / - 11 ) ) * 36 ELSE + ( 47 ) + 90 END
----
137

skipif mysql # not compatible
query I rowsort label-1610
SELECT ALL CASE - - 42 WHEN - 87 - + CAST ( 23 AS INTEGER ) THEN - 48 / - - ( + NULLIF ( COUNT ( DISTINCT - 41 ), 25 / - 11 ) ) * 36 ELSE + ( 47 ) + 90 END
----
137

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

skipif mysql # not compatible
query I rowsort label-1611
SELECT ALL + COUNT ( * ) - 95 AS col1
----
-94

query II rowsort
SELECT DISTINCT - 57 AS col1, ( - 0 ) col0
----
-57
0

query I rowsort
SELECT CASE 57 WHEN - ( - 87 ) THEN + 80 END - + - 28 col1
----
NULL

query II rowsort
SELECT + 84, + 21 AS col1
----
84
21

onlyif mysql # DIV for integer division: 
query I rowsort label-1615
SELECT 38 DIV - 93 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1615
SELECT 38 / - 93 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1616
SELECT ALL SUM( 69 ) * 47 + - CAST( + - 14 AS SIGNED ) * 40
----
3803

skipif mysql # not compatible
query I rowsort label-1616
SELECT ALL SUM ( 69 ) * 47 + - CAST ( + - 14 AS INTEGER ) * 40
----
3803

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1618
SELECT ALL + CASE + 34 WHEN + CAST( NULL AS SIGNED ) THEN CAST( NULL AS DECIMAL ) * - NULLIF ( - 32, - + 28 * + 37 ) WHEN 74 THEN NULL END * - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-1618
SELECT ALL + CASE + 34 WHEN + CAST ( NULL AS INTEGER ) THEN CAST ( NULL AS REAL ) * - NULLIF ( - 32, - + 28 * + 37 ) WHEN 74 THEN NULL END * - COUNT ( * )
----
NULL

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

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

query I rowsort
SELECT 43 * 70
----
3010

query I rowsort
SELECT ALL 17 * + 94 AS col1
----
1598

query II rowsort
SELECT 10 AS col2, 67 AS col2
----
10
67

query II rowsort
SELECT + 64, 75 AS col0
----
64
75

query I rowsort
SELECT 33 * - 23 AS col1
----
-759

query I rowsort
SELECT 69 * + 12
----
828

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1627
SELECT 49 - + COUNT( * ) * + 39 AS col0
----
10

skipif mysql # not compatible
query I rowsort label-1627
SELECT 49 - + COUNT ( * ) * + 39 AS col0
----
10

query II rowsort
SELECT + 76 AS col2, - 61 * + 47 AS col2
----
76
-2867

query I rowsort
SELECT + ( - + 20 ) * - 0
----
0

query I rowsort
SELECT DISTINCT - 47 + + 42 col1
----
-5

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1632
SELECT + ( + - 47 ) DIV + 26 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-1632
SELECT + ( + - 47 ) / + 26 AS col2
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-1633
SELECT ALL - - 37 + - - 43 DIV 22 + + ( - + 54 )
----
-16

skipif mysql # not compatible
query I rowsort label-1633
SELECT ALL - - 37 + - - 43 / 22 + + ( - + 54 )
----
-16

onlyif mysql # aggregate syntax: 
query II rowsort label-1634
SELECT + 33, - 25 - + 63 + - - COUNT( * ) + - COUNT( * ) AS col2
----
33
-88

skipif mysql # not compatible
query II rowsort label-1634
SELECT + 33, - 25 - + 63 + - - COUNT ( * ) + - COUNT ( * ) AS col2
----
33
-88

query I rowsort
SELECT 7 + 2 AS col1
----
9

query I rowsort
SELECT ALL + + 25 * - 46 AS col1
----
-1150

query II rowsort
SELECT ALL - 10 AS col2, + 58 col0
----
-10
58

query I rowsort
SELECT ALL - 62 * 40 col1
----
-2480

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1639
SELECT ALL COUNT( * ), + CAST( NULL AS SIGNED ) + - 39 + 51 - + NULLIF ( + 83, + - 10 / - 77 + + 24 ) * - 57 * + 8 AS col2
----
1
NULL

skipif mysql # not compatible
query II rowsort label-1639
SELECT ALL COUNT ( * ), + CAST ( NULL AS INTEGER ) + - 39 + 51 - + NULLIF ( + 83, + - 10 / - 77 + + 24 ) * - 57 * + 8 AS col2
----
1
NULL

query I rowsort
SELECT 76 + - 37 * - 91 * - 22 col2
----
-73998

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1641
SELECT ALL CAST( - MAX( ALL 58 ) AS SIGNED )
----
-58

skipif mysql # not compatible
query I rowsort label-1641
SELECT ALL CAST ( - MAX ( ALL 58 ) AS INTEGER )
----
-58

query II rowsort
SELECT - 73, - 51 * ( + - 43 ) AS col0
----
-73
2193

query I rowsort
SELECT + 82 + 3 AS col0
----
85

query I rowsort
SELECT ALL - 6 * 23 AS col0
----
-138

query II rowsort
SELECT DISTINCT - 25, 60 col0
----
-25
60

query I rowsort
SELECT ALL + COALESCE ( + 81, - 58 ) AS col0
----
81

query II rowsort
SELECT DISTINCT 68, 6 AS col2
----
68
6

query I rowsort
SELECT 45 * 6 + + 99 * - + 44
----
-4086

query I rowsort
SELECT 99 * + 93 AS col2
----
9207

query I rowsort
SELECT ( - - 65 ) + - - 17 - 18 * + ( + 9 ) AS col1
----
-80

query I rowsort
SELECT DISTINCT 19 * - 25
----
-475

onlyif mysql # DIV for integer division: 
query I rowsort label-1652
SELECT 18 DIV + 95 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1652
SELECT 18 / + 95 AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1653
SELECT 27 DIV + - 47 * + 78 - + COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-1653
SELECT 27 / + - 47 * + 78 - + COUNT ( * )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1654
SELECT - 60 * + CAST( NULL AS SIGNED ) / + ( + + 71 ) + + + CAST( 55 AS DECIMAL ) + + COUNT( * ) * SUM( DISTINCT - - 12 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1654
SELECT - 60 * + CAST ( NULL AS INTEGER ) / + ( + + 71 ) + + + CAST ( 55 AS REAL ) + + COUNT ( * ) * SUM ( DISTINCT - - 12 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1655
SELECT DISTINCT - CASE 13 WHEN - 90 THEN NULL ELSE + NULLIF ( 14, - - 25 * + - 33 - 71 ) DIV - 4 - + COUNT( * ) END * 69
----
276

skipif mysql # not compatible
query I rowsort label-1655
SELECT DISTINCT - CASE 13 WHEN - 90 THEN NULL ELSE + NULLIF ( 14, - - 25 * + - 33 - 71 ) / - 4 - + COUNT ( * ) END * 69
----
276

onlyif mysql # aggregate syntax: 
query I rowsort label-1656
SELECT COUNT( * ) * - 73 * + 75 * + 40 + + - 55 + + - 47 + - 48 * + COUNT( * ) AS col2
----
-219150

skipif mysql # not compatible
query I rowsort label-1656
SELECT COUNT ( * ) * - 73 * + 75 * + 40 + + - 55 + + - 47 + - 48 * + COUNT ( * ) AS col2
----
-219150

onlyif mysql # DIV for integer division: 
query I rowsort label-1657
SELECT ALL 6 DIV ( + 36 )
----
0

skipif mysql # not compatible
query I rowsort label-1657
SELECT ALL 6 / ( + 36 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1658
SELECT COUNT( * ) * - 20 * 42
----
-840

skipif mysql # not compatible
query I rowsort label-1658
SELECT COUNT ( * ) * - 20 * 42
----
-840

query I rowsort
SELECT ALL - 92 * + + 92 + + 55 AS col1
----
-8409

query I rowsort
SELECT 53 * - + 9
----
-477

onlyif mysql # aggregate syntax: 
query II rowsort label-1661
SELECT 24 + MIN( ALL - + 32 ) + + + 98 AS col0, 8 AS col2
----
90
8

skipif mysql # not compatible
query II rowsort label-1661
SELECT 24 + MIN ( ALL - + 32 ) + + + 98 AS col0, 8 AS col2
----
90
8

query I rowsort
SELECT 28 * - 95 - 87 + - 58 AS col2
----
-2805

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

skipif mysql # not compatible
query I rowsort label-1663
SELECT ALL ( - COUNT ( * ) ) / - 25
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1664
SELECT ( + SUM( + + 30 ) ) * 2
----
60

skipif mysql # not compatible
query I rowsort label-1664
SELECT ( + SUM ( + + 30 ) ) * 2
----
60

query I rowsort
SELECT - 58 * + 19 col0
----
-1102

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1666
SELECT ALL SUM( ALL + CAST( NULL AS SIGNED ) ) * - 90 + - + 60 * - 14 + 34 + + 98 * - - 24 + - + 85 + ( ( 2 ) ) * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-1666
SELECT ALL SUM ( ALL + CAST ( NULL AS INTEGER ) ) * - 90 + - + 60 * - 14 + 34 + + 98 * - - 24 + - + 85 + ( ( 2 ) ) * COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1667
SELECT + 6 * - COUNT( - ( - 54 ) ) + + 3 + 72
----
69

skipif mysql # not compatible
query I rowsort label-1667
SELECT + 6 * - COUNT ( - ( - 54 ) ) + + 3 + 72
----
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1668
SELECT ALL NULLIF ( + NULLIF ( - ( 86 ), + COUNT( * ) - 95 ), - CAST( + 33 AS SIGNED ) ) + 39 - 55
----
-102

skipif mysql # not compatible
query I rowsort label-1668
SELECT ALL NULLIF ( + NULLIF ( - ( 86 ), + COUNT ( * ) - 95 ), - CAST ( + 33 AS INTEGER ) ) + 39 - 55
----
-102

onlyif mysql # aggregate syntax: 
query I rowsort label-1669
SELECT + 3 * - - 81 + + - 40 + + - 15 + + 60 * 4 * + + NULLIF ( + 58, + 64 ) * + COUNT( * ) AS col1
----
14108

skipif mysql # not compatible
query I rowsort label-1669
SELECT + 3 * - - 81 + + - 40 + + - 15 + + 60 * 4 * + + NULLIF ( + 58, + 64 ) * + COUNT ( * ) AS col1
----
14108

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1670
SELECT 57 * - - 12 * + + 83 + - 74 + - + CASE + ( COUNT( * ) ) WHEN + 60 THEN + CAST( NULL AS SIGNED ) ELSE NULL END + COUNT( ALL - 4 + 61 / 0 ) * 29 * 28
----
NULL

skipif mysql # not compatible
query I rowsort label-1670
SELECT 57 * - - 12 * + + 83 + - 74 + - + CASE + ( COUNT ( * ) ) WHEN + 60 THEN + CAST ( NULL AS INTEGER ) ELSE NULL END + COUNT ( ALL - 4 + 61 / 0 ) * 29 * 28
----
NULL

query I rowsort
SELECT ALL - NULLIF ( - 26, - + 85 )
----
26

query I rowsort
SELECT ALL CASE - 14 WHEN + 14 - 36 THEN NULL WHEN - 65 THEN + - 83 / 23 END
----
NULL

query I rowsort
SELECT DISTINCT + 69 - + 94 * - 60
----
5709

query I rowsort
SELECT ALL 36 - 35 + - 74 AS col0
----
-73

query I rowsort
SELECT - 75 * 43 AS col1
----
-3225

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1676
SELECT DISTINCT + COALESCE ( + 31, - 55 ) * - 63 * + ( + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1676
SELECT DISTINCT + COALESCE ( + 31, - 55 ) * - 63 * + ( + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1677
SELECT - 3 DIV - 37
----
0

skipif mysql # not compatible
query I rowsort label-1677
SELECT - 3 / - 37
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1678
SELECT ALL + + NULLIF ( + - COUNT( - + 43 ), + 34 ) * + + ( + 49 )
----
-49

skipif mysql # not compatible
query I rowsort label-1678
SELECT ALL + + NULLIF ( + - COUNT ( - + 43 ), + 34 ) * + + ( + 49 )
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-1679
SELECT - - 69 * 88 * + SUM( ALL + 46 ) AS col1
----
279312

skipif mysql # not compatible
query I rowsort label-1679
SELECT - - 69 * 88 * + SUM ( ALL + 46 ) AS col1
----
279312

query I rowsort
SELECT - 66 * + CASE - 16 WHEN 77 THEN + - 75 * + 74 * + 21 * + COALESCE ( - ( - - 83 ), 29 ) * 80 ELSE NULL END * 82 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1681
SELECT DISTINCT - NULLIF ( + COUNT( * ), 36 * - + COUNT( * ) + + 35 * 44 ) * 49 + CAST( - COUNT( * ) AS SIGNED ) + - - 24 + CASE 12 + + 43 WHEN - 51 THEN - 2 - - 7 WHEN - COUNT( * ) THEN 83 - + 20 ELSE NULL END * CASE - 47 WHEN + COUNT( * ) THEN 94 / 31 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1681
SELECT DISTINCT - NULLIF ( + COUNT ( * ), 36 * - + COUNT ( * ) + + 35 * 44 ) * 49 + CAST ( - COUNT ( * ) AS INTEGER ) + - - 24 + CASE 12 + + 43 WHEN - 51 THEN - 2 - - 7 WHEN - COUNT ( * ) THEN 83 - + 20 ELSE NULL END * CASE - 47 WHEN + COUNT ( * ) THEN 94 / 31 END AS col0
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1683
SELECT DISTINCT - 14 * - ( - - 37 ) * + 39 * + 96 + COUNT( ( - CAST( 85 AS SIGNED ) ) ) + + - 86
----
1939307

skipif mysql # not compatible
query I rowsort label-1683
SELECT DISTINCT - 14 * - ( - - 37 ) * + 39 * + 96 + COUNT ( ( - CAST ( 85 AS INTEGER ) ) ) + + - 86
----
1939307

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

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

query I rowsort
SELECT - 36 + + + 46 AS col2
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-1686
SELECT ALL - MAX( ALL + 49 ) + - - 27 AS col1
----
-22

skipif mysql # not compatible
query I rowsort label-1686
SELECT ALL - MAX ( ALL + 49 ) + - - 27 AS col1
----
-22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1687
SELECT ALL CASE + CAST( NULL AS SIGNED ) WHEN 85 * + 84 * + - 37 THEN NULL WHEN 68 + + COUNT( * ) THEN + ( + + COUNT( * ) ) + + 91 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1687
SELECT ALL CASE + CAST ( NULL AS INTEGER ) WHEN 85 * + 84 * + - 37 THEN NULL WHEN 68 + + COUNT ( * ) THEN + ( + + COUNT ( * ) ) + + 91 ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1688
SELECT ALL 24 + COUNT( * ) * + CASE + - 98 WHEN - 69 * - + 21 + - 18 THEN NULL ELSE + 20 END * - CASE + 27 WHEN 58 THEN ( 4 ) * - 9 + - 27 ELSE NULL END * - 80
----
NULL

skipif mysql # not compatible
query I rowsort label-1688
SELECT ALL 24 + COUNT ( * ) * + CASE + - 98 WHEN - 69 * - + 21 + - 18 THEN NULL ELSE + 20 END * - CASE + 27 WHEN 58 THEN ( 4 ) * - 9 + - 27 ELSE NULL END * - 80
----
NULL

query I rowsort
SELECT - 0 * - 22 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1690
SELECT ALL CAST( SUM( - 47 ) AS SIGNED ) DIV - + 74 + + 24
----
24

skipif mysql # not compatible
query I rowsort label-1690
SELECT ALL CAST ( SUM ( - 47 ) AS INTEGER ) / - + 74 + + 24
----
24

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1692
SELECT + MAX( DISTINCT + + 9 ) / 71 + 3 * - 68 + CAST( NULL AS SIGNED ) + - 78
----
NULL

skipif mysql # not compatible
query I rowsort label-1692
SELECT + MAX ( DISTINCT + + 9 ) / 71 + 3 * - 68 + CAST ( NULL AS INTEGER ) + - 78
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1693
SELECT ALL 99 * AVG ( ALL - CAST( NULL AS SIGNED ) ) + 61 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1693
SELECT ALL 99 * AVG ( ALL - CAST ( NULL AS INTEGER ) ) + 61 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1694
SELECT DISTINCT + ( - 15 ) * CASE ( 25 ) WHEN - 31 THEN + COALESCE ( - 93, COUNT( * ) + + - 71 + - 65, 78 * + CAST( 19 * 55 AS SIGNED ) + 2 ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1694
SELECT DISTINCT + ( - 15 ) * CASE ( 25 ) WHEN - 31 THEN + COALESCE ( - 93, COUNT ( * ) + + - 71 + - 65, 78 * + CAST ( 19 * 55 AS INTEGER ) + 2 ) END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1695
SELECT DISTINCT + MIN( DISTINCT - ( 96 ) ) * + 30 + + + 78
----
-2802

skipif mysql # not compatible
query I rowsort label-1695
SELECT DISTINCT + MIN ( DISTINCT - ( 96 ) ) * + 30 + + + 78
----
-2802

query II rowsort
SELECT DISTINCT + 1 col1, + CASE - ( 26 ) WHEN - 38 * - COALESCE ( + 68, + 44 ) / + 52 + + + 14 * - 11 THEN - 96 + - 54 / - 89 ELSE NULL END AS col0
----
1
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1697
SELECT ALL + COUNT( * ) * + 3 * COUNT( * ) - + - NULLIF ( - + COUNT( * ), - + COALESCE ( CAST( NULL AS SIGNED ), - 42 * 57, + + 29, - 29 ) )
----
2

skipif mysql # not compatible
query I rowsort label-1697
SELECT ALL + COUNT ( * ) * + 3 * COUNT ( * ) - + - NULLIF ( - + COUNT ( * ), - + COALESCE ( CAST ( NULL AS INTEGER ), - 42 * 57, + + 29, - 29 ) )
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1698
SELECT - 78 * - 92 - - - NULLIF ( MIN( - + 35 ), - + 80 * + + CASE + 46 WHEN + + 12 * - ( - COUNT( * ) ) + + MIN( ALL ( + 54 ) ) * 18 THEN - 47 + + 35 WHEN + 44 THEN + 67 * - 21 - - 65 WHEN 76 * NULLIF ( COUNT( * ), 53 * - 92 + + CAST( + COUNT( * ) AS SIGNED ) ) THEN NULL END - ( - 64 ) - CAST( - 35 AS SIGNED ) ) AS col2
----
7211

skipif mysql # not compatible
query I rowsort label-1698
SELECT - 78 * - 92 - - - NULLIF ( MIN ( - + 35 ), - + 80 * + + CASE + 46 WHEN + + 12 * - ( - COUNT ( * ) ) + + MIN ( ALL ( + 54 ) ) * 18 THEN - 47 + + 35 WHEN + 44 THEN + 67 * - 21 - - 65 WHEN 76 * NULLIF ( COUNT ( * ), 53 * - 92 + + CAST ( + COUNT ( * ) AS INTEGER ) ) THEN NULL END - ( - 64 ) - CAST ( - 35 AS INTEGER ) ) AS col2
----
7211

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1700
SELECT DISTINCT 36 DIV - 55
----
0

skipif mysql # not compatible
query I rowsort label-1700
SELECT DISTINCT 36 / - 55
----
0

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

query I rowsort
SELECT + 24 - - ( - - 54 ) - - - 34 + - 54 AS col1
----
-10

onlyif mysql # DIV for integer division: 
query I rowsort label-1703
SELECT ALL 93 DIV - 52 + - 37 AS col0
----
-38

skipif mysql # not compatible
query I rowsort label-1703
SELECT ALL 93 / - 52 + - 37 AS col0
----
-38

query I rowsort
SELECT DISTINCT 63 * 57
----
3591

query I rowsort
SELECT + 37 - + 92 + 72 * 16
----
1097

query I rowsort
SELECT DISTINCT 25 * + 94
----
2350

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1707
SELECT + + 90 + + - COUNT( * ) DIV - - NULLIF ( + 95, 96 + - 36 )
----
90

skipif mysql # not compatible
query I rowsort label-1707
SELECT + + 90 + + - COUNT ( * ) / - - NULLIF ( + 95, 96 + - 36 )
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-1708
SELECT ALL + SUM( ALL 5 ) * 16 AS col2
----
80

skipif mysql # not compatible
query I rowsort label-1708
SELECT ALL + SUM ( ALL 5 ) * 16 AS col2
----
80

onlyif mysql # DIV for integer division: 
query II rowsort label-1709
SELECT + - 15 + - - 87 DIV + 66 AS col0, ( + 51 )
----
-14
51

skipif mysql # not compatible
query II rowsort label-1709
SELECT + - 15 + - - 87 / + 66 AS col0, ( + 51 )
----
-14
51

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1711
SELECT - - 73 * - - COUNT( * ) + COUNT( * ) + + 6
----
80

skipif mysql # not compatible
query I rowsort label-1711
SELECT - - 73 * - - COUNT ( * ) + COUNT ( * ) + + 6
----
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1712
SELECT - + 35 - - 64 - + CAST( + 9 AS SIGNED ) + + COUNT( * )
----
21

skipif mysql # not compatible
query I rowsort label-1712
SELECT - + 35 - - 64 - + CAST ( + 9 AS INTEGER ) + + COUNT ( * )
----
21

query I rowsort
SELECT + 40 * + 87 AS col2
----
3480

query I rowsort
SELECT - 9 * + 5
----
-45

onlyif mysql # aggregate syntax: 
query II rowsort label-1715
SELECT COUNT( * ) AS col1, - 37 * - 81
----
1
2997

skipif mysql # not compatible
query II rowsort label-1715
SELECT COUNT ( * ) AS col1, - 37 * - 81
----
1
2997

onlyif mysql # aggregate syntax: 
query I rowsort label-1716
SELECT ALL - NULLIF ( - 58, + COUNT( * ) - - - 83 ) + - 10 AS col2
----
48

skipif mysql # not compatible
query I rowsort label-1716
SELECT ALL - NULLIF ( - 58, + COUNT ( * ) - - - 83 ) + - 10 AS col2
----
48

query I rowsort
SELECT DISTINCT 66 + + 38 AS col2
----
104

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

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

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

skipif mysql # not compatible
query I rowsort label-1719
SELECT DISTINCT - 82 + + COUNT ( * ) AS col2
----
-81

query I rowsort
SELECT - 95 + + 9 - - - 86
----
-172

onlyif mysql # aggregate syntax: 
query I rowsort label-1721
SELECT ALL 1 + + 34 + - 86 + - + COUNT( * ) * 43 * + + 71 + 4 + + 37 * + + ( 37 ) AS col2
----
-1731

skipif mysql # not compatible
query I rowsort label-1721
SELECT ALL 1 + + 34 + - 86 + - + COUNT ( * ) * 43 * + + 71 + 4 + + 37 * + + ( 37 ) AS col2
----
-1731

onlyif mysql # DIV for integer division: 
query II rowsort label-1722
SELECT DISTINCT - 64 + - 26 + - + 93 * 31 DIV - 47 + - 92, + 39 AS col1
----
-121
39

skipif mysql # not compatible
query II rowsort label-1722
SELECT DISTINCT - 64 + - 26 + - + 93 * 31 / - 47 + - 92, + 39 AS col1
----
-121
39

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1724
SELECT + 0 + - CAST( + + 56 AS SIGNED ) + - 73
----
-129

skipif mysql # not compatible
query I rowsort label-1724
SELECT + 0 + - CAST ( + + 56 AS INTEGER ) + - 73
----
-129

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1725
SELECT DISTINCT + 19 + + 0 + NULLIF ( + - 50, - 34 + + + 41 + 62 + - COUNT( * ) DIV - 32 * + 70 - - 97 ) DIV - COALESCE ( - 84 * - COUNT( * ) + - 41, 91 ) AS col2
----
20

skipif mysql # not compatible
query I rowsort label-1725
SELECT DISTINCT + 19 + + 0 + NULLIF ( + - 50, - 34 + + + 41 + 62 + - COUNT ( * ) / - 32 * + 70 - - 97 ) / - COALESCE ( - 84 * - COUNT ( * ) + - 41, 91 ) AS col2
----
20

query I rowsort
SELECT DISTINCT + 65 + + CASE - - 28 WHEN + 72 + + - 67 THEN NULL WHEN + ( + + 95 ) THEN - 7 ELSE NULL END
----
NULL

query II rowsort
SELECT 40, + 90 + - 20 col2
----
40
70

onlyif mysql # aggregate syntax: 
query I rowsort label-1728
SELECT ALL + 47 + MIN( - 68 )
----
-21

skipif mysql # not compatible
query I rowsort label-1728
SELECT ALL + 47 + MIN ( - 68 )
----
-21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1729
SELECT DISTINCT - 92 DIV - - COUNT( * )
----
-92

skipif mysql # not compatible
query I rowsort label-1729
SELECT DISTINCT - 92 / - - COUNT ( * )
----
-92

query I rowsort
SELECT ALL - NULLIF ( - - 39, + 89 ) AS col1
----
-39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1731
SELECT 59 + - CASE + + 6 WHEN + + 98 THEN + 36 * 61 + - COUNT( * ) + + + CAST( NULL AS SIGNED ) + - 0 + + 72 * + + 79 * + 75 * 30 WHEN - 88 + - 30 THEN NULL END + + 8 * 85 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1731
SELECT 59 + - CASE + + 6 WHEN + + 98 THEN + 36 * 61 + - COUNT ( * ) + + + CAST ( NULL AS INTEGER ) + - 0 + + 72 * + + 79 * + 75 * 30 WHEN - 88 + - 30 THEN NULL END + + 8 * 85 col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1732
SELECT DISTINCT + CASE + CASE + 63 WHEN 82 + 64 THEN + - 46 WHEN - 94 + ( - 82 ) * + 20 * + - 8 THEN NULL WHEN - CAST( 73 AS SIGNED ) * - 97 + MIN( DISTINCT + 8 + 57 ) THEN + 56 END WHEN + 92 THEN 79 + - 85 WHEN - 23 * - 78 THEN - 96 END + 79 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1732
SELECT DISTINCT + CASE + CASE + 63 WHEN 82 + 64 THEN + - 46 WHEN - 94 + ( - 82 ) * + 20 * + - 8 THEN NULL WHEN - CAST ( 73 AS INTEGER ) * - 97 + MIN ( DISTINCT + 8 + 57 ) THEN + 56 END WHEN + 92 THEN 79 + - 85 WHEN - 23 * - 78 THEN - 96 END + 79 col1
----
NULL

query II rowsort
SELECT ALL - 33, + 0 AS col1
----
-33
0

query I rowsort
SELECT DISTINCT + 20 + 58 AS col0
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-1735
SELECT ALL - COALESCE ( 15, 46 * COUNT( * ) * - 83 )
----
-15

skipif mysql # not compatible
query I rowsort label-1735
SELECT ALL - COALESCE ( 15, 46 * COUNT ( * ) * - 83 )
----
-15

query II rowsort
SELECT + 70 col1, + 75
----
70
75

query II rowsort
SELECT 7, + 49 - - 14 - 51 AS col0
----
7
12

onlyif mysql # aggregate syntax: 
query I rowsort label-1738
SELECT 58 + 14 * NULLIF ( COUNT( * ), - - COUNT( * ) ) - ( + ( + + COUNT( * ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1738
SELECT 58 + 14 * NULLIF ( COUNT ( * ), - - COUNT ( * ) ) - ( + ( + + COUNT ( * ) ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1739
SELECT MIN( DISTINCT + + 92 ) * - 5 AS col1
----
-460

skipif mysql # not compatible
query I rowsort label-1739
SELECT MIN ( DISTINCT + + 92 ) * - 5 AS col1
----
-460

query I rowsort
SELECT 3 - + CASE 47 WHEN 23 THEN - NULLIF ( - - 62, 87 ) * + 17 ELSE NULL END col0
----
NULL

query II rowsort
SELECT ALL + - 18 - + 24 AS col0, 39 + - 25 + + + 5 + + ( + 26 ) * 68 AS col2
----
-42
1787

query II rowsort
SELECT ALL - 62, - ( - 90 ) AS col0
----
-62
90

query II rowsort
SELECT + 24, + 47 AS col2
----
24
47

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

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

query I rowsort
SELECT 51 * - 69 * + ( - 39 ) * ( + + 91 ) + + + 94
----
12489025

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1746
SELECT ALL + + CAST( CAST( - 39 AS SIGNED ) AS SIGNED ) * + + COALESCE ( - + 11, + - CAST( 32 AS SIGNED ), - - 41 ) * - - CAST( AVG ( 92 ) AS SIGNED ) AS col0
----
39468

skipif mysql # not compatible
query I rowsort label-1746
SELECT ALL + + CAST ( CAST ( - 39 AS INTEGER ) AS INTEGER ) * + + COALESCE ( - + 11, + - CAST ( 32 AS INTEGER ), - - 41 ) * - - CAST ( AVG ( 92 ) AS INTEGER ) AS col0
----
39468

query I rowsort
SELECT 82 + - 96 AS col2
----
-14

query I rowsort
SELECT + 35 + - + COALESCE ( 39, ( + 96 ) )
----
-4

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1749
SELECT DISTINCT - - CAST( NULL AS SIGNED ) AS col1, 90 - + 54 AS col2
----
NULL
36

skipif mysql # not compatible
query II rowsort label-1749
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) AS col1, 90 - + 54 AS col2
----
NULL
36

onlyif mysql # aggregate syntax: 
query I rowsort label-1750
SELECT COUNT( * ) * - - MIN( DISTINCT + - 21 ) + - 13 AS col0
----
-34

skipif mysql # not compatible
query I rowsort label-1750
SELECT COUNT ( * ) * - - MIN ( DISTINCT + - 21 ) + - 13 AS col0
----
-34

query I rowsort
SELECT DISTINCT - - ( - - 40 ) AS col2
----
40

query I rowsort
SELECT - 10 * - 35 AS col0
----
350

onlyif mysql # aggregate syntax: 
query I rowsort label-1753
SELECT - SUM( DISTINCT - 70 ) + + 50 AS col2
----
120

skipif mysql # not compatible
query I rowsort label-1753
SELECT - SUM ( DISTINCT - 70 ) + + 50 AS col2
----
120

onlyif mysql # DIV for integer division: 
query I rowsort label-1754
SELECT ALL 54 DIV + + ( + + 72 )
----
0

skipif mysql # not compatible
query I rowsort label-1754
SELECT ALL 54 / + + ( + + 72 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1755
SELECT DISTINCT CAST( - 29 AS SIGNED ) AS col0
----
-29

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

query II rowsort
SELECT + 28 * + 45 col1, - 76 AS col1
----
1260
-76

onlyif mysql # DIV for integer division: 
query I rowsort label-1757
SELECT 44 + + + 65 DIV + - 34 - 4
----
39

skipif mysql # not compatible
query I rowsort label-1757
SELECT 44 + + + 65 / + - 34 - 4
----
39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1758
SELECT ALL - 67 + ( 62 ) + - ( 65 ) * + CAST( 71 AS SIGNED ) / + 60 + - CAST( NULL AS SIGNED ) + + ( - 70 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1758
SELECT ALL - 67 + ( 62 ) + - ( 65 ) * + CAST ( 71 AS INTEGER ) / + 60 + - CAST ( NULL AS INTEGER ) + + ( - 70 )
----
NULL

query I rowsort
SELECT ALL 81 + + - 19 + + 48 AS col2
----
110

query I rowsort
SELECT ( - 65 ) * + 40 * NULLIF ( - 70, + - 93 ) AS col0
----
182000

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1761
SELECT ALL ( 26 ) + MAX( 69 ) + COUNT( * ) DIV - + 51
----
95

skipif mysql # not compatible
query I rowsort label-1761
SELECT ALL ( 26 ) + MAX ( 69 ) + COUNT ( * ) / - + 51
----
95

query I rowsort
SELECT ALL ( 9 ) + - 20 AS col2
----
-11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1763
SELECT ALL CAST( + 48 AS SIGNED ) + + + 25
----
73

skipif mysql # not compatible
query I rowsort label-1763
SELECT ALL CAST ( + 48 AS INTEGER ) + + + 25
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-1764
SELECT 69 + - + COUNT( * ) * - 55 col0
----
124

skipif mysql # not compatible
query I rowsort label-1764
SELECT 69 + - + COUNT ( * ) * - 55 col0
----
124

onlyif mysql # aggregate syntax: 
query I rowsort label-1765
SELECT DISTINCT 88 + - - COALESCE ( + 47, - ( 90 ) * + 39 * - 35 * + + 23 - + COUNT( * ), + 25 )
----
135

skipif mysql # not compatible
query I rowsort label-1765
SELECT DISTINCT 88 + - - COALESCE ( + 47, - ( 90 ) * + 39 * - 35 * + + 23 - + COUNT ( * ), + 25 )
----
135

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1767
SELECT 53 * - 16 col2, - 36 + COUNT( * ) + + - 74 - - 37 col1
----
-848
-72

skipif mysql # not compatible
query II rowsort label-1767
SELECT 53 * - 16 col2, - 36 + COUNT ( * ) + + - 74 - - 37 col1
----
-848
-72

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1768
SELECT 59 + - + COUNT( * ) + + 64 + - - COALESCE ( 24, - 9 ) + - 42 + MAX( DISTINCT + 22 ) DIV 33 AS col2, - COUNT( * ) AS col0
----
104
-1

skipif mysql # not compatible
query II rowsort label-1768
SELECT 59 + - + COUNT ( * ) + + 64 + - - COALESCE ( 24, - 9 ) + - 42 + MAX ( DISTINCT + 22 ) / 33 AS col2, - COUNT ( * ) AS col0
----
104
-1

query I rowsort
SELECT DISTINCT 52 - + 59
----
-7

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1771
SELECT ALL 87 - + ( + COUNT( ALL + 58 ) ) AS col2
----
86

skipif mysql # not compatible
query I rowsort label-1771
SELECT ALL 87 - + ( + COUNT ( ALL + 58 ) ) AS col2
----
86

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

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

query II rowsort
SELECT 68 * - + ( 89 ) AS col1, 21 - - + 56
----
-6052
77

query I rowsort
SELECT 7 * - 13 + 26
----
-65

query I rowsort
SELECT ALL - - 9 col1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-1776
SELECT COUNT( * ) + - MAX( DISTINCT 77 ) * - 85 AS col1
----
6546

skipif mysql # not compatible
query I rowsort label-1776
SELECT COUNT ( * ) + - MAX ( DISTINCT 77 ) * - 85 AS col1
----
6546

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1777
SELECT DISTINCT 57 * COUNT( + 41 ) DIV - ( + 58 ) + - 27 + - 62 * + 50 + - - 90 - - - 47 + + 37 + - 87
----
-3134

skipif mysql # not compatible
query I rowsort label-1777
SELECT DISTINCT 57 * COUNT ( + 41 ) / - ( + 58 ) + - 27 + - 62 * + 50 + - - 90 - - - 47 + + 37 + - 87
----
-3134

onlyif mysql # DIV for integer division: 
query I rowsort label-1778
SELECT ALL - - 3 DIV - - 17
----
0

skipif mysql # not compatible
query I rowsort label-1778
SELECT ALL - - 3 / - - 17
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1779
SELECT ALL - COALESCE ( - 86, + + COUNT( * ) )
----
86

skipif mysql # not compatible
query I rowsort label-1779
SELECT ALL - COALESCE ( - 86, + + COUNT ( * ) )
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-1780
SELECT ALL - - MAX( DISTINCT - - 82 )
----
82

skipif mysql # not compatible
query I rowsort label-1780
SELECT ALL - - MAX ( DISTINCT - - 82 )
----
82

onlyif mysql # aggregate syntax: 
query II rowsort label-1781
SELECT + - SUM( ALL + 98 ), + 69 * - + 8 - COUNT( * ) - - + COUNT( - 28 ) AS col2
----
-98
-552

skipif mysql # not compatible
query II rowsort label-1781
SELECT + - SUM ( ALL + 98 ), + 69 * - + 8 - COUNT ( * ) - - + COUNT ( - 28 ) AS col2
----
-98
-552

query I rowsort
SELECT DISTINCT - 29 * 58
----
-1682

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1783
SELECT 69 * 97, 57 * + - CAST( NULL AS DECIMAL ) / - + 82 AS col2
----
6693
NULL

skipif mysql # not compatible
query II rowsort label-1783
SELECT 69 * 97, 57 * + - CAST ( NULL AS REAL ) / - + 82 AS col2
----
6693
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1784
SELECT DISTINCT + - CASE - CAST( NULL AS SIGNED ) WHEN 31 THEN + 11 - - ( + - 46 ) * + SUM( DISTINCT 49 ) END + + - 38 + + 59 + + 51 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1784
SELECT DISTINCT + - CASE - CAST ( NULL AS INTEGER ) WHEN 31 THEN + 11 - - ( + - 46 ) * + SUM ( DISTINCT 49 ) END + + - 38 + + 59 + + 51 col2
----
NULL

query I rowsort
SELECT DISTINCT - + ( 67 ) * ( - + 24 ) * 86
----
138288

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1786
SELECT ALL - 38 + - - CASE + ( - + COUNT( * ) ) WHEN + 50 * CAST( - 54 AS DECIMAL ) * - - 12 + - 64 * + 84 THEN 47 END - - 37
----
NULL

skipif mysql # not compatible
query I rowsort label-1786
SELECT ALL - 38 + - - CASE + ( - + COUNT ( * ) ) WHEN + 50 * CAST ( - 54 AS REAL ) * - - 12 + - 64 * + 84 THEN 47 END - - 37
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1787
SELECT ALL + 27 + + 39 + + COUNT( 24 ) + - 79 + + + 14 + - 21
----
-19

skipif mysql # not compatible
query I rowsort label-1787
SELECT ALL + 27 + + 39 + + COUNT ( 24 ) + - 79 + + + 14 + - 21
----
-19

query I rowsort
SELECT DISTINCT - 69 * + COALESCE ( - 51, + + 22 )
----
3519

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

query I rowsort
SELECT 18 + + 25 * + 26 AS col2
----
668

query I rowsort
SELECT ALL - NULLIF ( + + ( 0 ), ( - 65 ) ) + + 73 + - 70 AS col2
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1792
SELECT 63 - COALESCE ( + 48, + + CASE 33 WHEN COUNT( * ) THEN NULL WHEN - 63 THEN - 9 * + 43 + 64 END, - ( + CAST( + 74 AS SIGNED ) ) DIV - 91 ) AS col1
----
15

skipif mysql # not compatible
query I rowsort label-1792
SELECT 63 - COALESCE ( + 48, + + CASE 33 WHEN COUNT ( * ) THEN NULL WHEN - 63 THEN - 9 * + 43 + 64 END, - ( + CAST ( + 74 AS INTEGER ) ) / - 91 ) AS col1
----
15

query II rowsort
SELECT - 36, - 55 AS col0
----
-36
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-1794
SELECT - COUNT( * ) + NULLIF ( + 55, - 70 * + 26 )
----
54

skipif mysql # not compatible
query I rowsort label-1794
SELECT - COUNT ( * ) + NULLIF ( + 55, - 70 * + 26 )
----
54

query I rowsort
SELECT + ( - 78 ) - 74 + - 24
----
-176

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

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

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

skipif mysql # not compatible
query I rowsort label-1797
SELECT ALL - 19 / + 22 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1798
SELECT DISTINCT + ( - 8 ) - SUM( + CAST( - + ( - - 15 ) AS SIGNED ) ) * - 68 + + 92 AS col1
----
-936

skipif mysql # not compatible
query I rowsort label-1798
SELECT DISTINCT + ( - 8 ) - SUM ( + CAST ( - + ( - - 15 ) AS INTEGER ) ) * - 68 + + 92 AS col1
----
-936

query I rowsort
SELECT ALL 41 * + 4
----
164

query I rowsort
SELECT + 6 + + - 0 * 50 * + - 3 AS col1
----
6

query I rowsort
SELECT DISTINCT CASE + + 66 WHEN + ( 99 ) - + + 19 + + - 20 THEN + - 13 ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1802
SELECT + MAX( ALL 45 ) + - ( 81 ) AS col2
----
-36

skipif mysql # not compatible
query I rowsort label-1802
SELECT + MAX ( ALL 45 ) + - ( 81 ) AS col2
----
-36

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

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

query I rowsort
SELECT - 70 * - - 98
----
-6860

query I rowsort
SELECT + 75 * + 83
----
6225

query I rowsort
SELECT + 87 + 88
----
175

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1807
SELECT - COALESCE ( - 13, - + ( CASE MAX( ALL 64 ) WHEN + 91 THEN NULL ELSE + - 33 * + - 38 END ) + + COALESCE ( - COUNT( * ), 87 ) + + ( + CAST( 93 AS SIGNED ) ) + - 26 ) AS col0
----
13

skipif mysql # not compatible
query I rowsort label-1807
SELECT - COALESCE ( - 13, - + ( CASE MAX ( ALL 64 ) WHEN + 91 THEN NULL ELSE + - 33 * + - 38 END ) + + COALESCE ( - COUNT ( * ), 87 ) + + ( + CAST ( 93 AS INTEGER ) ) + - 26 ) AS col0
----
13

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

skipif mysql # not compatible
query I rowsort label-1808
SELECT - SUM ( ALL - 30 )
----
30

query I rowsort
SELECT + 28 + 99
----
127

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1810
SELECT + 57 - - 81 * + CAST( NULL AS SIGNED ) * 37
----
NULL

skipif mysql # not compatible
query I rowsort label-1810
SELECT + 57 - - 81 * + CAST ( NULL AS INTEGER ) * 37
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1811
SELECT - CASE WHEN + 2 <= - 72 THEN + ( COUNT( DISTINCT - - ( - + 22 ) ) ) * + 77 * 7 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1811
SELECT - CASE WHEN + 2 <= - 72 THEN + ( COUNT ( DISTINCT - - ( - + 22 ) ) ) * + 77 * 7 END AS col2
----
NULL

query I rowsort
SELECT + - 38 + - + 59
----
-97

query II rowsort
SELECT ALL + 63 AS col2, COALESCE ( + 76, + 16, 8 * - - 55 ) AS col0
----
63
76

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

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

query I rowsort
SELECT ALL - + 50 * + 8
----
-400

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1817
SELECT + + NULLIF ( + + 13, - - COUNT( * ) ) DIV - - 52 + + MIN( - + CAST( - 69 AS SIGNED ) ) AS col1
----
69

skipif mysql # not compatible
query I rowsort label-1817
SELECT + + NULLIF ( + + 13, - - COUNT ( * ) ) / - - 52 + + MIN ( - + CAST ( - 69 AS INTEGER ) ) AS col1
----
69

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1818
SELECT SUM( ALL - - 85 ) DIV 10 * + - 60 - - 52
----
-428

skipif mysql # not compatible
query I rowsort label-1818
SELECT SUM ( ALL - - 85 ) / 10 * + - 60 - - 52
----
-428

query I rowsort
SELECT ALL - 91 * - 36
----
3276

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1820
SELECT CAST( NULL AS SIGNED ) * + 80 / - NULLIF ( - 64, + COALESCE ( + - 51, 52 * + 50 ) ) + - - 66 + 54 * 50
----
NULL

skipif mysql # not compatible
query I rowsort label-1820
SELECT CAST ( NULL AS INTEGER ) * + 80 / - NULLIF ( - 64, + COALESCE ( + - 51, 52 * + 50 ) ) + - - 66 + 54 * 50
----
NULL

query I rowsort
SELECT - + 22 + + 72 * 71 * + 80 + - + 3
----
408935

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1823
SELECT + CASE 10 WHEN + 29 + 58 / + - ( + 44 ) + - + 91 THEN NULL WHEN - COUNT( * ) THEN - 23 + - 11 + 87 * - - 40 + - + CASE 90 WHEN SUM( ALL 40 ) THEN + 16 ELSE NULL END END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1823
SELECT + CASE 10 WHEN + 29 + 58 / + - ( + 44 ) + - + 91 THEN NULL WHEN - COUNT ( * ) THEN - 23 + - 11 + 87 * - - 40 + - + CASE 90 WHEN SUM ( ALL 40 ) THEN + 16 ELSE NULL END END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1824
SELECT ALL - MAX( - 34 ) * + 94 + - COUNT( * ) + ( + 95 ) * - 56 AS col2
----
-2125

skipif mysql # not compatible
query I rowsort label-1824
SELECT ALL - MAX ( - 34 ) * + 94 + - COUNT ( * ) + ( + 95 ) * - 56 AS col2
----
-2125

query I rowsort
SELECT - - 32 * + 26 + - + 50 AS col0
----
782

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1827
SELECT ALL - + CAST( NULL AS SIGNED ) * + - 39 / - 98 + + - 38 + - - 18 * - 63 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1827
SELECT ALL - + CAST ( NULL AS INTEGER ) * + - 39 / - 98 + + - 38 + - - 18 * - 63 col1
----
NULL

query I rowsort
SELECT - + 61 + 22 - - - 36 * - 70 * + 60 + - - 17 col1
----
151178

onlyif mysql # aggregate syntax: 
query I rowsort label-1829
SELECT ALL CASE - 52 WHEN + + 11 * - 64 * - - ( - + 94 ) - - 36 THEN + 69 WHEN + NULLIF ( COUNT( * ), - 57 ) THEN NULL ELSE NULL END * - 35 - - 54 + 6
----
NULL

skipif mysql # not compatible
query I rowsort label-1829
SELECT ALL CASE - 52 WHEN + + 11 * - 64 * - - ( - + 94 ) - - 36 THEN + 69 WHEN + NULLIF ( COUNT ( * ), - 57 ) THEN NULL ELSE NULL END * - 35 - - 54 + 6
----
NULL

query I rowsort
SELECT ALL + 52 * - 2 + + 84 + 9
----
-11

query I rowsort
SELECT + 53 * + - 24 + 14 * + 66
----
-348

onlyif mysql # DIV for integer division: 
query II rowsort label-1832
SELECT DISTINCT - 24 * 74 AS col2, 49 DIV 68 * + + 25 AS col0
----
-1776
0

skipif mysql # not compatible
query II rowsort label-1832
SELECT DISTINCT - 24 * 74 AS col2, 49 / 68 * + + 25 AS col0
----
-1776
0

query I rowsort
SELECT - 53 * + - 87
----
4611

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

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

query I rowsort
SELECT ALL 77 * - + 34 - - 72
----
-2546

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

skipif mysql # not compatible
query I rowsort label-1836
SELECT - 6 / + + 69 * + COUNT ( * ) * COUNT ( * )
----
0

query I rowsort
SELECT ALL - 15 * 19 AS col0
----
-285

query I rowsort
SELECT DISTINCT - 6 * + 78
----
-468

query II rowsort
SELECT ALL ( 59 ), - 94 col1
----
59
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-1840
SELECT - MIN( - - 82 ) - + + ( - 68 ) + + 5 AS col0
----
-9

skipif mysql # not compatible
query I rowsort label-1840
SELECT - MIN ( - - 82 ) - + + ( - 68 ) + + 5 AS col0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-1841
SELECT + CASE CASE + 11 WHEN + 49 + + 84 + + MAX( ALL - 86 ) * - 99 THEN NULL WHEN - 85 THEN 85 END WHEN + - 72 THEN + 35 END / - - 52 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1841
SELECT + CASE CASE + 11 WHEN + 49 + + 84 + + MAX ( ALL - 86 ) * - 99 THEN NULL WHEN - 85 THEN 85 END WHEN + - 72 THEN + 35 END / - - 52 AS col2
----
NULL

query II rowsort
SELECT - 46 - + 33 * + 18 * - + 88 AS col0, 64
----
52226
64

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1843
SELECT ALL + 3 DIV COUNT( * ) * + 94
----
282

skipif mysql # not compatible
query I rowsort label-1843
SELECT ALL + 3 / COUNT ( * ) * + 94
----
282

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1844
SELECT + 88 DIV - + COUNT( * ) - - MAX( + 74 ) col0, 48
----
-14
48

skipif mysql # not compatible
query II rowsort label-1844
SELECT + 88 / - + COUNT ( * ) - - MAX ( + 74 ) col0, 48
----
-14
48

onlyif mysql # aggregate syntax: 
query I rowsort label-1845
SELECT ALL 32 * COUNT( * ) * + + ( 93 ) * ( - 59 ) * - 38
----
6672192

skipif mysql # not compatible
query I rowsort label-1845
SELECT ALL 32 * COUNT ( * ) * + + ( 93 ) * ( - 59 ) * - 38
----
6672192

query II rowsort
SELECT ALL + 12 + + + 67 AS col2, - 65 AS col2
----
79
-65

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1848
SELECT DISTINCT - CASE + 69 WHEN - - 83 + 81 THEN NULL WHEN COUNT( * ) THEN + 6 ELSE NULL END * + - COUNT( * ) - + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-1848
SELECT DISTINCT - CASE + 69 WHEN - - 83 + 81 THEN NULL WHEN COUNT ( * ) THEN + 6 ELSE NULL END * + - COUNT ( * ) - + COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1849
SELECT DISTINCT + - 41 DIV - + 88 + + MAX( - CAST( + + 69 AS SIGNED ) ) + + - 59 + + COUNT( * ) AS col0
----
-127

skipif mysql # not compatible
query I rowsort label-1849
SELECT DISTINCT + - 41 / - + 88 + + MAX ( - CAST ( + + 69 AS INTEGER ) ) + + - 59 + + COUNT ( * ) AS col0
----
-127

onlyif mysql # aggregate syntax: 
query I rowsort label-1850
SELECT + + MIN( DISTINCT + + 89 ) * 1
----
89

skipif mysql # not compatible
query I rowsort label-1850
SELECT + + MIN ( DISTINCT + + 89 ) * 1
----
89

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

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

query I rowsort
SELECT + 4 * - + 66 * 52 col0
----
-13728

onlyif mysql # aggregate syntax: 
query I rowsort label-1853
SELECT DISTINCT COUNT( * ) * - 12 col1
----
-12

skipif mysql # not compatible
query I rowsort label-1853
SELECT DISTINCT COUNT ( * ) * - 12 col1
----
-12

onlyif mysql # DIV for integer division: 
query I rowsort label-1854
SELECT ALL - - 23 DIV - 43 + + 18
----
18

skipif mysql # not compatible
query I rowsort label-1854
SELECT ALL - - 23 / - 43 + + 18
----
18

query I rowsort
SELECT ALL + 47 * - + 92
----
-4324

onlyif mysql # aggregate syntax: 
query II rowsort label-1856
SELECT - + 41 * 47 - - 17 * - 97 + 92 AS col1, + COUNT( * )
----
-3484
1

skipif mysql # not compatible
query II rowsort label-1856
SELECT - + 41 * 47 - - 17 * - 97 + 92 AS col1, + COUNT ( * )
----
-3484
1

query I rowsort
SELECT + + 24 * + 50 * + 96 AS col0
----
115200

onlyif mysql # aggregate syntax: 
query I rowsort label-1858
SELECT 55 * - 98 + + COUNT( DISTINCT - + COALESCE ( 50, + - 48, - 46 ) ) AS col2
----
-5389

skipif mysql # not compatible
query I rowsort label-1858
SELECT 55 * - 98 + + COUNT ( DISTINCT - + COALESCE ( 50, + - 48, - 46 ) ) AS col2
----
-5389

query II rowsort
SELECT + ( - 14 ) AS col1, + 51 + 34 * ( 82 ) col0
----
-14
2839

query I rowsort
SELECT ALL - 86 * + 49
----
-4214

query I rowsort
SELECT DISTINCT 89 * 60 AS col0
----
5340

query I rowsort
SELECT ( - 84 ) * 67 + - - ( 73 ) AS col1
----
-5555

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1863
SELECT ALL CAST( - 25 AS SIGNED ) * + + 64, - 17 + + 63 AS col0
----
-1600
46

skipif mysql # not compatible
query II rowsort label-1863
SELECT ALL CAST ( - 25 AS INTEGER ) * + + 64, - 17 + + 63 AS col0
----
-1600
46

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

skipif mysql # not compatible
query I rowsort label-1864
SELECT ALL + 47 / - COUNT ( * )
----
-47

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1866
SELECT 78 * + 24 * + COUNT( * ) * - + CAST( NULL AS SIGNED ) * - 58 / - 67
----
NULL

skipif mysql # not compatible
query I rowsort label-1866
SELECT 78 * + 24 * + COUNT ( * ) * - + CAST ( NULL AS INTEGER ) * - 58 / - 67
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1867
SELECT CAST( + 31 AS SIGNED ) + COUNT( * ) + - - 50 + + 89 - + 94 * + - 97 AS col1
----
9289

skipif mysql # not compatible
query I rowsort label-1867
SELECT CAST ( + 31 AS INTEGER ) + COUNT ( * ) + - - 50 + + 89 - + 94 * + - 97 AS col1
----
9289

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1868
SELECT 90, COALESCE ( COUNT( * ), - - 49 DIV 97 ) + - 93 AS col1
----
90
-92

skipif mysql # not compatible
query II rowsort label-1868
SELECT 90, COALESCE ( COUNT ( * ), - - 49 / 97 ) + - 93 AS col1
----
90
-92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1869
SELECT 97 - + CAST( NULL AS SIGNED ) + + + ( 27 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1869
SELECT 97 - + CAST ( NULL AS INTEGER ) + + + ( 27 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1870
SELECT 4 * - - MAX( ALL + 83 ) DIV + 75 + + ( ( - 85 ) ) AS col0
----
-81

skipif mysql # not compatible
query I rowsort label-1870
SELECT 4 * - - MAX ( ALL + 83 ) / + 75 + + ( ( - 85 ) ) AS col0
----
-81

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

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

query I rowsort
SELECT ALL 22 * - + 55 AS col2
----
-1210

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

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

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

query I rowsort
SELECT DISTINCT + 67 * 58
----
3886

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1876
SELECT 6 + + 30 + + CASE + ( - COUNT( ALL - + CAST( NULL AS DECIMAL ) ) ) WHEN 32 * - + CAST( - 44 AS SIGNED ) - 54 THEN + 53 ELSE + - 83 + + 32 END + 2 * - 53 AS col2
----
-121

skipif mysql # not compatible
query I rowsort label-1876
SELECT 6 + + 30 + + CASE + ( - COUNT ( ALL - + CAST ( NULL AS REAL ) ) ) WHEN 32 * - + CAST ( - 44 AS INTEGER ) - 54 THEN + 53 ELSE + - 83 + + 32 END + 2 * - 53 AS col2
----
-121

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1878
SELECT ALL + CAST( NULL AS SIGNED ), + 28 + 0 AS col0
----
NULL
28

skipif mysql # not compatible
query II rowsort label-1878
SELECT ALL + CAST ( NULL AS INTEGER ), + 28 + 0 AS col0
----
NULL
28

query I rowsort
SELECT 82 + - 61
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-1880
SELECT + 43 * MAX( DISTINCT 41 ) AS col1
----
1763

skipif mysql # not compatible
query I rowsort label-1880
SELECT + 43 * MAX ( DISTINCT 41 ) AS col1
----
1763

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1881
SELECT ALL 44 col0, + COUNT( * ) + + + ( - 83 ) + - + 32 DIV - 31 col0
----
44
-81

skipif mysql # not compatible
query II rowsort label-1881
SELECT ALL 44 col0, + COUNT ( * ) + + + ( - 83 ) + - + 32 / - 31 col0
----
44
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-1882
SELECT DISTINCT - - MAX( - - 8 ) + - - 67 AS col2
----
75

skipif mysql # not compatible
query I rowsort label-1882
SELECT DISTINCT - - MAX ( - - 8 ) + - - 67 AS col2
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-1883
SELECT ALL + - ( - MIN( DISTINCT - 19 ) ) + - + 64
----
-83

skipif mysql # not compatible
query I rowsort label-1883
SELECT ALL + - ( - MIN ( DISTINCT - 19 ) ) + - + 64
----
-83

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1884
SELECT 5 + - + CAST( - 61 AS SIGNED ) + 32 + - - 51 DIV - - 27 + - - 71 AS col1
----
170

skipif mysql # not compatible
query I rowsort label-1884
SELECT 5 + - + CAST ( - 61 AS INTEGER ) + 32 + - - 51 / - - 27 + - - 71 AS col1
----
170

onlyif mysql # aggregate syntax: 
query I rowsort label-1885
SELECT - 79 * + 91 * - COUNT( * ) * + - 2 * + - NULLIF ( - 49, - COALESCE ( - + 69, - COALESCE ( + COALESCE ( - 20, ( - 18 ) * + COUNT( * ) + - 93, - CASE 51 WHEN + COUNT( * ) + 28 THEN 0 ELSE + 29 * + CASE ( 50 ) WHEN - ( - ( CASE WHEN NOT + 37 IS NULL THEN + COUNT( * ) END ) ) THEN NULL WHEN - 46 + 87 * - 28 THEN 85 WHEN - COUNT( * ) THEN NULL END END ), COUNT( * ) - 39 ) * + 22 ) / - COUNT( * ) )
----
-704522

skipif mysql # not compatible
query I rowsort label-1885
SELECT - 79 * + 91 * - COUNT ( * ) * + - 2 * + - NULLIF ( - 49, - COALESCE ( - + 69, - COALESCE ( + COALESCE ( - 20, ( - 18 ) * + COUNT ( * ) + - 93, - CASE 51 WHEN + COUNT ( * ) + 28 THEN 0 ELSE + 29 * + CASE ( 50 ) WHEN - ( - ( CASE WHEN NOT + 37 IS NULL THEN + COUNT ( * ) END ) ) THEN NULL WHEN - 46 + 87 * - 28 THEN 85 WHEN - COUNT ( * ) THEN NULL END END ), COUNT ( * ) - 39 ) * + 22 ) / - COUNT ( * ) )
----
-704522

onlyif mysql # DIV for integer division: 
query I rowsort label-1886
SELECT ALL + + 25 DIV ( - 99 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1886
SELECT ALL + + 25 / ( - 99 ) AS col2
----
0

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

query I rowsort
SELECT DISTINCT - 9 * - + 17
----
153

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1889
SELECT ALL + - COUNT( * ) + COALESCE ( 94, - CAST( + 42 AS SIGNED ) ) + + + COUNT( * ) * + 78 col2
----
171

skipif mysql # not compatible
query I rowsort label-1889
SELECT ALL + - COUNT ( * ) + COALESCE ( 94, - CAST ( + 42 AS INTEGER ) ) + + + COUNT ( * ) * + 78 col2
----
171

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

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

query I rowsort
SELECT + - ( + + 48 ) AS col2
----
-48

query I rowsort
SELECT + 54 + - 82
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-1893
SELECT 54 * 26 - + + COUNT( * ) + 50
----
1453

skipif mysql # not compatible
query I rowsort label-1893
SELECT 54 * 26 - + + COUNT ( * ) + 50
----
1453

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1896
SELECT + COUNT( * ) DIV + 49 + - 5 * + + 78 + + MAX( - 80 ) AS col0
----
-470

skipif mysql # not compatible
query I rowsort label-1896
SELECT + COUNT ( * ) / + 49 + - 5 * + + 78 + + MAX ( - 80 ) AS col0
----
-470

query I rowsort
SELECT ALL 21 - - - 54 col0
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-1898
SELECT DISTINCT - + CASE + 94 WHEN - + 21 THEN - + COUNT( DISTINCT - + 26 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1898
SELECT DISTINCT - + CASE + 94 WHEN - + 21 THEN - + COUNT ( DISTINCT - + 26 ) ELSE NULL END
----
NULL

query I rowsort
SELECT + 44 * - 68 + ( - - 50 )
----
-2942

query I rowsort
SELECT ( - 71 ) + - 31 * - 84 + + 4 AS col1
----
2537

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

skipif mysql # not compatible
query I rowsort label-1901
SELECT CAST ( 54 AS INTEGER ) * - - COUNT ( * ) AS col1
----
54

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

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

query I rowsort
SELECT ALL 41 * + - 25 AS col1
----
-1025

onlyif mysql # aggregate syntax: 
query II rowsort label-1904
SELECT ( + + COUNT( * ) ) * - - 39 + + 92 col1, 58
----
131
58

skipif mysql # not compatible
query II rowsort label-1904
SELECT ( + + COUNT ( * ) ) * - - 39 + + 92 col1, 58
----
131
58

onlyif mysql # aggregate syntax: 
query I rowsort label-1905
SELECT + NULLIF ( - - 23, - CASE - + 81 WHEN - 10 * ( 24 ) + + COUNT( * ) THEN NULL ELSE - 14 END / - 85 ) * 53 + + ( - - 62 ) + 52
----
1333

skipif mysql # not compatible
query I rowsort label-1905
SELECT + NULLIF ( - - 23, - CASE - + 81 WHEN - 10 * ( 24 ) + + COUNT ( * ) THEN NULL ELSE - 14 END / - 85 ) * 53 + + ( - - 62 ) + 52
----
1333

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

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

query I rowsort
SELECT ALL 11 + ( + 54 ) AS col2
----
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1908
SELECT - COUNT( * ) AS col1, - ( - - 20 ) + + 14 - MAX( CAST( NULL AS SIGNED ) )
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-1908
SELECT - COUNT ( * ) AS col1, - ( - - 20 ) + + 14 - MAX ( CAST ( NULL AS INTEGER ) )
----
-1
NULL

query II rowsort
SELECT ALL 10 AS col2, + 76 * - - 36
----
10
2736

query I rowsort
SELECT ( + + 74 ) + - 66
----
8

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1911
SELECT DISTINCT 16 + 93 DIV + COALESCE ( - + 46, + 5 + + 8 + - - 4, CAST( 89 AS SIGNED ) + - 14 )
----
14

skipif mysql # not compatible
query I rowsort label-1911
SELECT DISTINCT 16 + 93 / + COALESCE ( - + 46, + 5 + + 8 + - - 4, CAST ( 89 AS INTEGER ) + - 14 )
----
14

onlyif mysql # aggregate syntax: 
query II rowsort label-1912
SELECT DISTINCT + 44 + + 54, COUNT( * ) + + 53 AS col1
----
98
54

skipif mysql # not compatible
query II rowsort label-1912
SELECT DISTINCT + 44 + + 54, COUNT ( * ) + + 53 AS col1
----
98
54

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

skipif mysql # not compatible
query II rowsort label-1913
SELECT - 19 col2, COUNT ( * ) AS col2
----
-19
1

query I rowsort
SELECT ( 45 ) - + + 70 AS col2
----
-25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1915
SELECT 51 * 35 + - 37 * CAST( + 73 AS SIGNED ) AS col1
----
-916

skipif mysql # not compatible
query I rowsort label-1915
SELECT 51 * 35 + - 37 * CAST ( + 73 AS INTEGER ) AS col1
----
-916

query I rowsort
SELECT - ( + + 17 ) + + 35 AS col1
----
18

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1918
SELECT 40 + + COUNT( * ) - + 91
----
-50

skipif mysql # not compatible
query I rowsort label-1918
SELECT 40 + + COUNT ( * ) - + 91
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-1919
SELECT ALL - ( - 72 ) + - COUNT( * ) * + 5 AS col0
----
67

skipif mysql # not compatible
query I rowsort label-1919
SELECT ALL - ( - 72 ) + - COUNT ( * ) * + 5 AS col0
----
67

onlyif mysql # aggregate syntax: 
query II rowsort label-1920
SELECT - MIN( ALL + + 54 ) AS col1, 86 + 89 AS col2
----
-54
175

skipif mysql # not compatible
query II rowsort label-1920
SELECT - MIN ( ALL + + 54 ) AS col1, 86 + 89 AS col2
----
-54
175

query II rowsort
SELECT ALL 72 AS col2, 97
----
72
97

onlyif mysql # aggregate syntax: 
query I rowsort label-1922
SELECT + ( - COUNT( * ) ) + 64 + + + 44 * - 66 AS col2
----
-2841

skipif mysql # not compatible
query I rowsort label-1922
SELECT + ( - COUNT ( * ) ) + 64 + + + 44 * - 66 AS col2
----
-2841

query I rowsort
SELECT DISTINCT 37 * NULLIF ( - 70, + 28 + - 51 )
----
-2590

query I rowsort
SELECT ALL + 43 - + - ( + 59 )
----
102

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

query I rowsort
SELECT ALL + 63 - + - 4
----
67

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1928
SELECT 8 * + 9 + + - COUNT( * )
----
71

skipif mysql # not compatible
query I rowsort label-1928
SELECT 8 * + 9 + + - COUNT ( * )
----
71

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1929
SELECT CASE + 90 WHEN + 25 * - MIN( 86 ) THEN + 91 * 84 + + MIN( ALL 7 ) + - - 64 * - ( + + 1 ) * + 62 - + 0 + 37 / 82 WHEN + 13 + CAST( NULL AS DECIMAL ) THEN AVG ( ALL - 13 ) + + 45 * - 30 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1929
SELECT CASE + 90 WHEN + 25 * - MIN ( 86 ) THEN + 91 * 84 + + MIN ( ALL 7 ) + - - 64 * - ( + + 1 ) * + 62 - + 0 + 37 / 82 WHEN + 13 + CAST ( NULL AS REAL ) THEN AVG ( ALL - 13 ) + + 45 * - 30 ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1930
SELECT - 79 * - COUNT( DISTINCT 65 ) * 10 + - + 9
----
781

skipif mysql # not compatible
query I rowsort label-1930
SELECT - 79 * - COUNT ( DISTINCT 65 ) * 10 + - + 9
----
781

query I rowsort
SELECT ALL + + ( 1 ) AS col2
----
1

query I rowsort
SELECT ALL + CASE + 38 WHEN 8 THEN + 99 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1933
SELECT ALL 77 * 42, - CASE - 85 WHEN + 53 THEN COUNT( + 62 ) / + 47 WHEN 94 THEN NULL ELSE NULL END + - + 13 * - 82 AS col2
----
3234
NULL

skipif mysql # not compatible
query II rowsort label-1933
SELECT ALL 77 * 42, - CASE - 85 WHEN + 53 THEN COUNT ( + 62 ) / + 47 WHEN 94 THEN NULL ELSE NULL END + - + 13 * - 82 AS col2
----
3234
NULL

query I rowsort
SELECT ALL - 56 * + - 77 AS col0
----
4312

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1937
SELECT + CASE - COUNT( * ) WHEN - MAX( ALL + + 41 ) THEN 45 / + + 54 ELSE - 60 END
----
-60

skipif mysql # not compatible
query I rowsort label-1937
SELECT + CASE - COUNT ( * ) WHEN - MAX ( ALL + + 41 ) THEN 45 / + + 54 ELSE - 60 END
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-1938
SELECT ALL 45 * + 88 + + + COUNT( * ) + 79
----
4040

skipif mysql # not compatible
query I rowsort label-1938
SELECT ALL 45 * + 88 + + + COUNT ( * ) + 79
----
4040

onlyif mysql # aggregate syntax: 
query I rowsort label-1939
SELECT + COALESCE ( - 57, + 41, COUNT( * ) * ( - 0 ) ) - 60 col0
----
-117

skipif mysql # not compatible
query I rowsort label-1939
SELECT + COALESCE ( - 57, + 41, COUNT ( * ) * ( - 0 ) ) - 60 col0
----
-117

onlyif mysql # aggregate syntax: 
query I rowsort label-1940
SELECT ALL ( ( - NULLIF ( COUNT( * ), - 93 ) ) ) * + - 28 + - 40 + + + 50
----
38

skipif mysql # not compatible
query I rowsort label-1940
SELECT ALL ( ( - NULLIF ( COUNT ( * ), - 93 ) ) ) * + - 28 + - 40 + + + 50
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-1941
SELECT + NULLIF ( MAX( ALL + 97 ), - - COUNT( * ) * COUNT( * ) )
----
97

skipif mysql # not compatible
query I rowsort label-1941
SELECT + NULLIF ( MAX ( ALL + 97 ), - - COUNT ( * ) * COUNT ( * ) )
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-1942
SELECT + 69 + + COUNT( 47 )
----
70

skipif mysql # not compatible
query I rowsort label-1942
SELECT + 69 + + COUNT ( 47 )
----
70

query II rowsort
SELECT + 63 * - 56 AS col1, 63 AS col1
----
-3528
63

query II rowsort
SELECT ALL 69 * 41, NULLIF ( - 70, + - 86 ) AS col0
----
2829
-70

query I rowsort
SELECT + 39 - - 12 + 64
----
115

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

skipif mysql # not compatible
query II rowsort label-1946
SELECT - - MAX ( + 43 ) col1, + 16 AS col0
----
43
16

onlyif mysql # DIV for integer division: 
query I rowsort label-1947
SELECT + - 69 * 79 DIV - 74 AS col1
----
73

skipif mysql # not compatible
query I rowsort label-1947
SELECT + - 69 * 79 / - 74 AS col1
----
73

query I rowsort
SELECT ALL - 64 * + 33 AS col2
----
-2112

query I rowsort
SELECT DISTINCT 26 - + 35 + + 83 - - 64 AS col2
----
138

query I rowsort
SELECT + 23 + + + 39 + + ( - + ( + 4 ) ) AS col1
----
58

onlyif mysql # DIV for integer division: 
query II rowsort label-1951
SELECT + + 43 + + 2 * + - 13 + CASE WHEN NOT 0 IS NULL THEN + 11 END AS col0, + 54 DIV - 70 + + 58 * - 89 + + 19 + - - ( + + 35 ) + + ( - 75 ) + - - 17 + - 30 * - 76
----
28
-2886

skipif mysql # not compatible
query II rowsort label-1951
SELECT + + 43 + + 2 * + - 13 + CASE WHEN NOT 0 IS NULL THEN + 11 END AS col0, + 54 / - 70 + + 58 * - 89 + + 19 + - - ( + + 35 ) + + ( - 75 ) + - - 17 + - 30 * - 76
----
28
-2886

onlyif mysql # aggregate syntax: 
query I rowsort label-1952
SELECT + CASE 13 WHEN - COALESCE ( + 87, + 13 ) THEN - NULLIF ( + COUNT( * ), + 38 ) * - 36 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1952
SELECT + CASE 13 WHEN - COALESCE ( + 87, + 13 ) THEN - NULLIF ( + COUNT ( * ), + 38 ) * - 36 ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1953
SELECT DISTINCT - + COUNT( * ) * - - MAX( + - NULLIF ( + + 17, - 4 ) ) AS col1
----
17

skipif mysql # not compatible
query I rowsort label-1953
SELECT DISTINCT - + COUNT ( * ) * - - MAX ( + - NULLIF ( + + 17, - 4 ) ) AS col1
----
17

query I rowsort
SELECT + - 76 + - 68 + - + 70 * - 79 AS col0
----
5386

onlyif mysql # aggregate syntax: 
query I rowsort label-1955
SELECT - - COUNT( * ) * + - 65 + 3 + + MIN( + + 19 ) * + - COUNT( * )
----
-81

skipif mysql # not compatible
query I rowsort label-1955
SELECT - - COUNT ( * ) * + - 65 + 3 + + MIN ( + + 19 ) * + - COUNT ( * )
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-1956
SELECT ALL - 7 * - COUNT( * ) + - - CASE + - ( + 14 ) WHEN 57 THEN - 75 WHEN - - 15 * - + 24 THEN 47 ELSE + 85 * - SUM( + 15 ) END * - 23 + COUNT( * ) - + 32 * + - 77 * 11
----
56437

skipif mysql # not compatible
query I rowsort label-1956
SELECT ALL - 7 * - COUNT ( * ) + - - CASE + - ( + 14 ) WHEN 57 THEN - 75 WHEN - - 15 * - + 24 THEN 47 ELSE + 85 * - SUM ( + 15 ) END * - 23 + COUNT ( * ) - + 32 * + - 77 * 11
----
56437

onlyif mysql # aggregate syntax: 
query II rowsort label-1957
SELECT - CASE + ( + 39 ) WHEN + - COUNT( * ) + + MAX( - 78 ) + 15 THEN COUNT( * ) WHEN - - 82 / + 15 + + - 82 THEN NULL END + + + 49 + + COUNT( * ), + 45 + - ( + MAX( - 26 ) ) AS col1
----
NULL
71

skipif mysql # not compatible
query II rowsort label-1957
SELECT - CASE + ( + 39 ) WHEN + - COUNT ( * ) + + MAX ( - 78 ) + 15 THEN COUNT ( * ) WHEN - - 82 / + 15 + + - 82 THEN NULL END + + + 49 + + COUNT ( * ), + 45 + - ( + MAX ( - 26 ) ) AS col1
----
NULL
71

query I rowsort
SELECT ALL 56 * + CASE 79 WHEN + - 16 THEN NULL WHEN + 77 / 2 THEN 68 END AS col0
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1960
SELECT - CAST( NULL AS SIGNED ) / NULLIF ( + 32, + 70 ) + + COUNT( * ) - + + 27 * - CAST( + 84 AS SIGNED ) / + - 92
----
NULL

skipif mysql # not compatible
query I rowsort label-1960
SELECT - CAST ( NULL AS INTEGER ) / NULLIF ( + 32, + 70 ) + + COUNT ( * ) - + + 27 * - CAST ( + 84 AS INTEGER ) / + - 92
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1961
SELECT ALL COUNT( * ) DIV - 32 + + 15 - + 62
----
-47

skipif mysql # not compatible
query I rowsort label-1961
SELECT ALL COUNT ( * ) / - 32 + + 15 - + 62
----
-47

query I rowsort
SELECT + 71 + + 33 AS col0
----
104

query I rowsort
SELECT ( + - 87 ) AS col2
----
-87

query I rowsort
SELECT - 29 + 39 - + - 89 + - 38 * - 73 AS col2
----
2873

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1966
SELECT ALL 73 * - COUNT( - 17 ) + + 90
----
17

skipif mysql # not compatible
query I rowsort label-1966
SELECT ALL 73 * - COUNT ( - 17 ) + + 90
----
17

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1967
SELECT - CASE - 59 WHEN + 24 THEN 73 WHEN COUNT( * ) THEN NULL WHEN + + 94 * - + 11 / 52 + 63 + - 45 / MIN( - - CAST( NULL AS DECIMAL ) ) THEN NULL ELSE + 21 - 43 END + - - 41
----
63

skipif mysql # not compatible
query I rowsort label-1967
SELECT - CASE - 59 WHEN + 24 THEN 73 WHEN COUNT ( * ) THEN NULL WHEN + + 94 * - + 11 / 52 + 63 + - 45 / MIN ( - - CAST ( NULL AS REAL ) ) THEN NULL ELSE + 21 - 43 END + - - 41
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-1968
SELECT ALL 16 * + 45 + + COUNT( * ) AS col1
----
721

skipif mysql # not compatible
query I rowsort label-1968
SELECT ALL 16 * + 45 + + COUNT ( * ) AS col1
----
721

query II rowsort
SELECT DISTINCT + 35 col1, - 51 AS col2
----
35
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-1970
SELECT 99 * 29 + + MIN( ALL - 81 ) * + MIN( DISTINCT - CASE 39 WHEN + 86 * ( 58 ) THEN - + 53 * 82 WHEN + 37 THEN ( 23 ) END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1970
SELECT 99 * 29 + + MIN ( ALL - 81 ) * + MIN ( DISTINCT - CASE 39 WHEN + 86 * ( 58 ) THEN - + 53 * 82 WHEN + 37 THEN ( 23 ) END ) AS col0
----
NULL

query I rowsort
SELECT ( + 57 ) AS col2
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-1972
SELECT ALL + COUNT( * ) * - SUM( 15 ) + + ( - 16 )
----
-31

skipif mysql # not compatible
query I rowsort label-1972
SELECT ALL + COUNT ( * ) * - SUM ( 15 ) + + ( - 16 )
----
-31

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1973
SELECT ALL - COUNT( * ) * - 44 DIV + - 11 col0
----
-4

skipif mysql # not compatible
query I rowsort label-1973
SELECT ALL - COUNT ( * ) * - 44 / + - 11 col0
----
-4

query I rowsort
SELECT NULLIF ( + 5, + - ( + 94 ) )
----
5

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1976
SELECT ALL - CASE - 33 WHEN 75 * + + 37 + 0 THEN - - 43 END * + + ( + 66 ) + CASE WHEN NOT NULL <= + ( + CASE + 12 WHEN - AVG ( + 41 ) THEN - - COALESCE ( + + 34, + 61 ) WHEN 79 + 91 THEN COUNT( * ) + CASE + 41 WHEN COUNT( * ) THEN NULL WHEN + ( 5 ) THEN + 12 * 35 END END ) THEN NULL ELSE + COALESCE ( 87, 82 ) - 68 END - - 37
----
NULL

skipif mysql # not compatible
query I rowsort label-1976
SELECT ALL - CASE - 33 WHEN 75 * + + 37 + 0 THEN - - 43 END * + + ( + 66 ) + CASE WHEN NOT NULL <= + ( + CASE + 12 WHEN - AVG ( + 41 ) THEN - - COALESCE ( + + 34, + 61 ) WHEN 79 + 91 THEN COUNT ( * ) + CASE + 41 WHEN COUNT ( * ) THEN NULL WHEN + ( 5 ) THEN + 12 * 35 END END ) THEN NULL ELSE + COALESCE ( 87, 82 ) - 68 END - - 37
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1977
SELECT ALL - COUNT( * ) * - 19 * - 21 AS col1
----
-399

skipif mysql # not compatible
query I rowsort label-1977
SELECT ALL - COUNT ( * ) * - 19 * - 21 AS col1
----
-399

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1978
SELECT DISTINCT + + 12 * + ( - 15 ) + MIN( DISTINCT + 49 ) - + ( - 15 ) DIV + - MIN( DISTINCT - 9 ) AS col1
----
-130

skipif mysql # not compatible
query I rowsort label-1978
SELECT DISTINCT + + 12 * + ( - 15 ) + MIN ( DISTINCT + 49 ) - + ( - 15 ) / + - MIN ( DISTINCT - 9 ) AS col1
----
-130

query I rowsort
SELECT + 89 * - + 64 + + 26 * + + 72 + + 89 - + - 11 AS col0
----
-3724

onlyif mysql # aggregate syntax: 
query I rowsort label-1980
SELECT + 54 + ( MAX( DISTINCT - 18 ) )
----
36

skipif mysql # not compatible
query I rowsort label-1980
SELECT + 54 + ( MAX ( DISTINCT - 18 ) )
----
36

query II rowsort
SELECT - - 19 AS col0, - 55 AS col2
----
19
-55

query I rowsort
SELECT 49 * + 31 AS col0
----
1519

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1984
SELECT - + NULLIF ( - - COUNT( * ), 30 * 91 )
----
-1

skipif mysql # not compatible
query I rowsort label-1984
SELECT - + NULLIF ( - - COUNT ( * ), 30 * 91 )
----
-1

query I rowsort
SELECT DISTINCT 56 * 2 AS col0
----
112

query I rowsort
SELECT 98 - 10 col2
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-1987
SELECT + ( + 26 ) + - 32 * + 40 * + 57 * - 31 * + NULLIF ( + 22, AVG ( DISTINCT + 31 ) * - COUNT( * ) ) + 19 AS col2
----
49758765

skipif mysql # not compatible
query I rowsort label-1987
SELECT + ( + 26 ) + - 32 * + 40 * + 57 * - 31 * + NULLIF ( + 22, AVG ( DISTINCT + 31 ) * - COUNT ( * ) ) + 19 AS col2
----
49758765

query I rowsort
SELECT DISTINCT 83 * + 57 AS col1
----
4731

query II rowsort
SELECT ALL 53 AS col0, - 76 + + - 96 AS col0
----
53
-172

query I rowsort
SELECT ALL 45 * + - 14 AS col2
----
-630

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

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

query II rowsort
SELECT - - 0, CASE - 38 WHEN + 51 THEN NULL WHEN 73 THEN - + 31 END + - 67 AS col1
----
0
NULL

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1994
SELECT DISTINCT - COALESCE ( 23, - + 71, + + MIN( + 0 ), + 55 * + 93 + + SUM( ALL + 97 ) * 27 + - 46 * - ( 94 ) - - SUM( ALL + 32 ) ) * - 43 * - - COUNT( * ), 19 AS col1
----
989
19

skipif mysql # not compatible
query II rowsort label-1994
SELECT DISTINCT - COALESCE ( 23, - + 71, + + MIN ( + 0 ), + 55 * + 93 + + SUM ( ALL + 97 ) * 27 + - 46 * - ( 94 ) - - SUM ( ALL + 32 ) ) * - 43 * - - COUNT ( * ), 19 AS col1
----
989
19

onlyif mysql # aggregate syntax: 
query I rowsort label-1995
SELECT DISTINCT - COALESCE ( - 43, + 87, - + COUNT( * ) ) AS col1
----
43

skipif mysql # not compatible
query I rowsort label-1995
SELECT DISTINCT - COALESCE ( - 43, + 87, - + COUNT ( * ) ) AS col1
----
43

query II rowsort
SELECT ALL - ( 48 ) AS col2, + 64
----
-48
64

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1997
SELECT COUNT( DISTINCT - + 70 ) + + 59 DIV - + 83 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-1997
SELECT COUNT ( DISTINCT - + 70 ) + + 59 / - + 83 AS col0
----
1

query I rowsort
SELECT 13 * + - 10
----
-130

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1999
SELECT ALL + COUNT( DISTINCT - + CAST( NULL AS SIGNED ) ) - MIN( + + ( - 31 ) ) AS col1
----
31

skipif mysql # not compatible
query I rowsort label-1999
SELECT ALL + COUNT ( DISTINCT - + CAST ( NULL AS INTEGER ) ) - MIN ( + + ( - 31 ) ) AS col1
----
31

query I rowsort
SELECT ( + 68 ) * - + ( - 47 ) * + + 41 col0
----
131036

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

skipif mysql # not compatible
query I rowsort label-2001
SELECT 6 + + - SUM ( ALL CAST ( NULL AS REAL ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2002
SELECT DISTINCT + ( - CAST( NULL AS SIGNED ) ) / + COUNT( * ) * - 51 * + + ( + - 3 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2002
SELECT DISTINCT + ( - CAST ( NULL AS INTEGER ) ) / + COUNT ( * ) * - 51 * + + ( + - 3 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2003
SELECT ALL + CAST( - + 47 AS SIGNED ) DIV + 82 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2003
SELECT ALL + CAST ( - + 47 AS INTEGER ) / + 82 AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2004
SELECT 22 - + 17 - + + COUNT( ALL 99 ) DIV 48
----
5

skipif mysql # not compatible
query I rowsort label-2004
SELECT 22 - + 17 - + + COUNT ( ALL 99 ) / 48
----
5

onlyif mysql # DIV for integer division: 
query I rowsort label-2005
SELECT DISTINCT + - 16 DIV - - 66
----
0

skipif mysql # not compatible
query I rowsort label-2005
SELECT DISTINCT + - 16 / - - 66
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2006
SELECT + 52 DIV + + 51 + - + 29
----
-28

skipif mysql # not compatible
query I rowsort label-2006
SELECT + 52 / + + 51 + - + 29
----
-28

query I rowsort
SELECT + 79 - + - 54 * + 25 AS col0
----
1429

onlyif mysql # aggregate syntax: 
query I rowsort label-2008
SELECT DISTINCT - MAX( DISTINCT 79 ) * - - 68 AS col1
----
-5372

skipif mysql # not compatible
query I rowsort label-2008
SELECT DISTINCT - MAX ( DISTINCT 79 ) * - - 68 AS col1
----
-5372

query I rowsort
SELECT ALL - + ( + - 33 ) * - ( 74 )
----
-2442

query I rowsort
SELECT DISTINCT + 29 * - - 64 - 5 AS col2
----
1851

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

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

query I rowsort
SELECT 36 + - 76
----
-40

query I rowsort
SELECT + 68 * + - 63 AS col0
----
-4284

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

skipif mysql # not compatible
query I rowsort label-2014
SELECT ALL + 80 + + ( - - COUNT ( * ) )
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-2015
SELECT SUM( ALL 9 ) col0
----
9

skipif mysql # not compatible
query I rowsort label-2015
SELECT SUM ( ALL 9 ) col0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-2016
SELECT - - COALESCE ( - + 80, 26 * 44 * - - 91, + 79 * - COUNT( * ) * - 85 * - + 32 ) AS col1
----
-80

skipif mysql # not compatible
query I rowsort label-2016
SELECT - - COALESCE ( - + 80, 26 * 44 * - - 91, + 79 * - COUNT ( * ) * - 85 * - + 32 ) AS col1
----
-80

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2017
SELECT + 21 + - COUNT( * ) DIV - - MAX( ALL + 24 ) AS col0, 8
----
21
8

skipif mysql # not compatible
query II rowsort label-2017
SELECT + 21 + - COUNT ( * ) / - - MAX ( ALL + 24 ) AS col0, 8
----
21
8

query I rowsort
SELECT - 35 + 94 + - + 18
----
41

query I rowsort
SELECT - NULLIF ( + - 4, - 52 ) * 47
----
188

query I rowsort
SELECT ALL 60 + - - ( + 28 )
----
88

query I rowsort
SELECT ALL - 98 + - 33 AS col2
----
-131

query II rowsort
SELECT DISTINCT + 43 + - - 85 + + - 11 AS col2, 39 * + + 6 * + 3 * + - 89 * - 25 AS col0
----
117
1561950

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2023
SELECT ALL COUNT( * ) + CASE - - ( ( + COUNT( ALL - 36 ) ) ) WHEN + + CAST( - AVG ( DISTINCT 32 ) AS SIGNED ) / + 6 + + 29 + 27 + + 69 * 60 * - ( 76 ) THEN + - 46 * + AVG ( 55 ) WHEN - 68 + - 2 THEN NULL END * 0
----
NULL

skipif mysql # not compatible
query I rowsort label-2023
SELECT ALL COUNT ( * ) + CASE - - ( ( + COUNT ( ALL - 36 ) ) ) WHEN + + CAST ( - AVG ( DISTINCT 32 ) AS INTEGER ) / + 6 + + 29 + 27 + + 69 * 60 * - ( 76 ) THEN + - 46 * + AVG ( 55 ) WHEN - 68 + - 2 THEN NULL END * 0
----
NULL

query I rowsort
SELECT ALL + 25 + + - 35 + - 96 * + 82 AS col1
----
-7882

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2026
SELECT ALL - SUM( DISTINCT + + 34 ) AS col2
----
-34

skipif mysql # not compatible
query I rowsort label-2026
SELECT ALL - SUM ( DISTINCT + + 34 ) AS col2
----
-34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2027
SELECT - 65 * + + 78 + + CAST( + - COUNT( * ) AS SIGNED ) DIV - - 97 AS col1
----
-5070

skipif mysql # not compatible
query I rowsort label-2027
SELECT - 65 * + + 78 + + CAST ( + - COUNT ( * ) AS INTEGER ) / - - 97 AS col1
----
-5070

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2028
SELECT ALL CAST( - 97 AS SIGNED ) * + 36 + - MIN( ALL 11 )
----
-3503

skipif mysql # not compatible
query I rowsort label-2028
SELECT ALL CAST ( - 97 AS INTEGER ) * + 36 + - MIN ( ALL 11 )
----
-3503

onlyif mysql # DIV for integer division: 
query I rowsort label-2029
SELECT CASE WHEN NOT - 80 >= + - 56 THEN + + 5 DIV 45 ELSE NULL END DIV - 93
----
0

skipif mysql # not compatible
query I rowsort label-2029
SELECT CASE WHEN NOT - 80 >= + - 56 THEN + + 5 / 45 ELSE NULL END / - 93
----
0

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2031
SELECT 63 DIV 92 + - 0
----
0

skipif mysql # not compatible
query I rowsort label-2031
SELECT 63 / 92 + - 0
----
0

query II rowsort
SELECT ALL - 58 AS col2, + 88
----
-58
88

onlyif mysql # aggregate syntax: 
query I rowsort label-2033
SELECT DISTINCT ( - - 42 ) * - 91 * - - ( - COUNT( DISTINCT - 71 ) ) * + COUNT( * ) - 76
----
3746

skipif mysql # not compatible
query I rowsort label-2033
SELECT DISTINCT ( - - 42 ) * - 91 * - - ( - COUNT ( DISTINCT - 71 ) ) * + COUNT ( * ) - 76
----
3746

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2034
SELECT DISTINCT COALESCE ( - 36, - 66 - - 11 + - + COUNT( * ) DIV + - ( - - 86 ) * 34 * - 58 ) * - 52 * - ( CAST( - ( 98 ) AS SIGNED ) )
----
183456

skipif mysql # not compatible
query I rowsort label-2034
SELECT DISTINCT COALESCE ( - 36, - 66 - - 11 + - + COUNT ( * ) / + - ( - - 86 ) * 34 * - 58 ) * - 52 * - ( CAST ( - ( 98 ) AS INTEGER ) )
----
183456

query I rowsort
SELECT 22 + - 39
----
-17

query I rowsort
SELECT ( 68 ) + - + 51
----
17

query I rowsort
SELECT ALL + 64 * - + ( 40 )
----
-2560

onlyif mysql # aggregate syntax: 
query I rowsort label-2038
SELECT DISTINCT 93 * - MAX( + 19 ) + + COUNT( - + 84 ) + 10 * 64 AS col0
----
-1126

skipif mysql # not compatible
query I rowsort label-2038
SELECT DISTINCT 93 * - MAX ( + 19 ) + + COUNT ( - + 84 ) + 10 * 64 AS col0
----
-1126

onlyif mysql # aggregate syntax: 
query I rowsort label-2039
SELECT COALESCE ( - 85, - 95 - + + 25 * COUNT( DISTINCT + + 69 ) )
----
-85

skipif mysql # not compatible
query I rowsort label-2039
SELECT COALESCE ( - 85, - 95 - + + 25 * COUNT ( DISTINCT + + 69 ) )
----
-85

onlyif mysql # aggregate syntax: 
query II rowsort label-2040
SELECT + 47 * ( + 7 ) + + 16 + - + COUNT( * ) + - 26 AS col1, - 78 * 28
----
318
-2184

skipif mysql # not compatible
query II rowsort label-2040
SELECT + 47 * ( + 7 ) + + 16 + - + COUNT ( * ) + - 26 AS col1, - 78 * 28
----
318
-2184

query II rowsort
SELECT 0 AS col2, - 46 AS col0
----
0
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-2042
SELECT - CASE + + MAX( ALL - - 30 ) WHEN - ( + + 5 ) THEN 46 * - 22 * + - SUM( ALL - 38 ) ELSE NULL END + + 68 * + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-2042
SELECT - CASE + + MAX ( ALL - - 30 ) WHEN - ( + + 5 ) THEN 46 * - 22 * + - SUM ( ALL - 38 ) ELSE NULL END + + 68 * + COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2043
SELECT DISTINCT - 44 + + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-2043
SELECT DISTINCT - 44 + + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2044
SELECT ALL + + COUNT( * ) + - 83 + - MIN( - 41 ) + + - ( 30 ) - 53 + + ( + 44 ) * 89 * - 54 AS col2
----
-211588

skipif mysql # not compatible
query I rowsort label-2044
SELECT ALL + + COUNT ( * ) + - 83 + - MIN ( - 41 ) + + - ( 30 ) - 53 + + ( + 44 ) * 89 * - 54 AS col2
----
-211588

query I rowsort
SELECT ALL - - 75 + + 36
----
111

query I rowsort
SELECT ALL - + 63 * - 41
----
2583

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2047
SELECT ALL - + 46 + - + 76 + + COALESCE ( - - ( - COUNT( * ) ), - CAST( 47 AS SIGNED ) )
----
-123

skipif mysql # not compatible
query I rowsort label-2047
SELECT ALL - + 46 + - + 76 + + COALESCE ( - - ( - COUNT ( * ) ), - CAST ( 47 AS INTEGER ) )
----
-123

onlyif mysql # aggregate syntax: 
query I rowsort label-2048
SELECT ALL + 50 + + MAX( + 32 )
----
82

skipif mysql # not compatible
query I rowsort label-2048
SELECT ALL + 50 + + MAX ( + 32 )
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-2049
SELECT - COUNT( * ) * + CASE 57 WHEN - 26 THEN - 71 * 42 END + 41 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2049
SELECT - COUNT ( * ) * + CASE 57 WHEN - 26 THEN - 71 * 42 END + 41 AS col0
----
NULL

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

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

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

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

query II rowsort
SELECT 11, 76 AS col0
----
11
76

query I rowsort
SELECT DISTINCT + COALESCE ( + - 10, - 21 * + + 96 )
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-2054
SELECT ALL + - CASE - COUNT( * ) WHEN + 29 THEN + ( SUM( COALESCE ( 83, - 31 - + 49 ) ) ) ELSE NULL END + - 80 - - 44
----
NULL

skipif mysql # not compatible
query I rowsort label-2054
SELECT ALL + - CASE - COUNT ( * ) WHEN + 29 THEN + ( SUM ( COALESCE ( 83, - 31 - + 49 ) ) ) ELSE NULL END + - 80 - - 44
----
NULL

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

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

query I rowsort
SELECT - ( - + 78 ) * 1
----
78

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

query II rowsort
SELECT 54 AS col1, - 63 + + 5
----
54
-58

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2060
SELECT DISTINCT + MIN( ( + 35 ) ) DIV + 23 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2060
SELECT DISTINCT + MIN ( ( + 35 ) ) / + 23 AS col1
----
1

query I rowsort
SELECT ALL 22 * + - 14 AS col1
----
-308

onlyif mysql # aggregate syntax: 
query I rowsort label-2062
SELECT - 28 - MIN( DISTINCT 38 ) + - 10 + + COUNT( * ) AS col1
----
-75

skipif mysql # not compatible
query I rowsort label-2062
SELECT - 28 - MIN ( DISTINCT 38 ) + - 10 + + COUNT ( * ) AS col1
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-2063
SELECT ALL - SUM( ( + 39 ) ) * + 49
----
-1911

skipif mysql # not compatible
query I rowsort label-2063
SELECT ALL - SUM ( ( + 39 ) ) * + 49
----
-1911

query I rowsort
SELECT + NULLIF ( - 71, - + NULLIF ( - 90, + + 47 / - 35 ) * - 75 )
----
-71

onlyif mysql # DIV for integer division: 
query I rowsort label-2065
SELECT + 98 DIV - + 5 AS col2
----
-19

skipif mysql # not compatible
query I rowsort label-2065
SELECT + 98 / - + 5 AS col2
----
-19

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

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

query I rowsort
SELECT - 69 + 60
----
-9

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2068
SELECT + 33 DIV + 28 col2, 36 + - 92 DIV + - COUNT( * )
----
1
128

skipif mysql # not compatible
query II rowsort label-2068
SELECT + 33 / + 28 col2, 36 + - 92 / + - COUNT ( * )
----
1
128

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2069
SELECT + NULLIF ( + CAST( NULL AS SIGNED ), + - 62 ) * 97 * 1 * - + 77 + - 95 + 18 * - 57 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2069
SELECT + NULLIF ( + CAST ( NULL AS INTEGER ), + - 62 ) * 97 * 1 * - + 77 + - 95 + 18 * - 57 AS col2
----
NULL

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

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

query I rowsort
SELECT + 78 + - 3 AS col1
----
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2072
SELECT ALL 23 * + + CAST( - - 70 AS SIGNED ) * - 90 + 75 + + 82 * 10 * + COUNT( * ) AS col1
----
-144005

skipif mysql # not compatible
query I rowsort label-2072
SELECT ALL 23 * + + CAST ( - - 70 AS INTEGER ) * - 90 + 75 + + 82 * 10 * + COUNT ( * ) AS col1
----
-144005

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2073
SELECT ALL + 24 AS col2, + COUNT( * ) + + + CAST( NULL AS SIGNED )
----
24
NULL

skipif mysql # not compatible
query II rowsort label-2073
SELECT ALL + 24 AS col2, + COUNT ( * ) + + + CAST ( NULL AS INTEGER )
----
24
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2074
SELECT + - 35 + + COUNT( * ) + - ( - CAST( + 34 AS SIGNED ) ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2074
SELECT + - 35 + + COUNT ( * ) + - ( - CAST ( + 34 AS INTEGER ) ) AS col1
----
0

query II rowsort
SELECT + NULLIF ( - 38, + + 13 ) * + 24, 68 * + 93 col2
----
-912
6324

query I rowsort
SELECT + - 85 + + - ( - 51 )
----
-34

query I rowsort
SELECT + 81 + + 59 AS col1
----
140

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2078
SELECT + - AVG ( - 90 ) * CAST( NULL AS SIGNED ) + - 43 / + NULLIF ( - 7, - COALESCE ( - 13, - 95 ) ) * - 41 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2078
SELECT + - AVG ( - 90 ) * CAST ( NULL AS INTEGER ) + - 43 / + NULLIF ( - 7, - COALESCE ( - 13, - 95 ) ) * - 41 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2079
SELECT + 94 + MIN( ( 62 ) ) * - - 26
----
1706

skipif mysql # not compatible
query I rowsort label-2079
SELECT + 94 + MIN ( ( 62 ) ) * - - 26
----
1706

query II rowsort
SELECT DISTINCT 61 AS col2, 39 * + 6 AS col1
----
61
234

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2081
SELECT + CAST( NULL AS SIGNED ) + MIN( - ( + 0 ) ) * - + 54 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2081
SELECT + CAST ( NULL AS INTEGER ) + MIN ( - ( + 0 ) ) * - + 54 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2082
SELECT ALL + 39 + + 23 * - COUNT( * )
----
16

skipif mysql # not compatible
query I rowsort label-2082
SELECT ALL + 39 + + 23 * - COUNT ( * )
----
16

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2083
SELECT ALL CAST( + + 83 AS SIGNED ) AS col0, 97 col2
----
83
97

skipif mysql # not compatible
query II rowsort label-2083
SELECT ALL CAST ( + + 83 AS INTEGER ) AS col0, 97 col2
----
83
97

query I rowsort
SELECT + ( + 56 ) + + - 1 col0
----
55

onlyif mysql # DIV for integer division: 
query I rowsort label-2085
SELECT + 41 DIV + 79 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2085
SELECT + 41 / + 79 AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2086
SELECT - 23 * 99 DIV 46
----
-49

skipif mysql # not compatible
query I rowsort label-2086
SELECT - 23 * 99 / 46
----
-49

query I rowsort
SELECT ALL + 8 * + 29
----
232

onlyif mysql # aggregate syntax: 
query I rowsort label-2088
SELECT - 29 + + MAX( - 87 ) AS col1
----
-116

skipif mysql # not compatible
query I rowsort label-2088
SELECT - 29 + + MAX ( - 87 ) AS col1
----
-116

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2089
SELECT ALL + COALESCE ( - 68, - 61 DIV + SUM( DISTINCT + + 90 ), + 98 ) * - 74 AS col1
----
5032

skipif mysql # not compatible
query I rowsort label-2089
SELECT ALL + COALESCE ( - 68, - 61 / + SUM ( DISTINCT + + 90 ), + 98 ) * - 74 AS col1
----
5032

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2091
SELECT + 61 DIV NULLIF ( + 2, - + 26 * - + 96 * + + 19 + - 72 ) DIV - 76 + - + MIN( + ( - - 30 ) ) AS col0
----
-30

skipif mysql # not compatible
query I rowsort label-2091
SELECT + 61 / NULLIF ( + 2, - + 26 * - + 96 * + + 19 + - 72 ) / - 76 + - + MIN ( + ( - - 30 ) ) AS col0
----
-30

onlyif mysql # DIV for integer division: 
query I rowsort label-2092
SELECT ALL - 46 DIV ( + - 58 ) * - 61 + - - CASE - AVG ( DISTINCT + 36 ) WHEN 97 THEN NULL ELSE 8 * 90 END
----
720

skipif mysql # not compatible
query I rowsort label-2092
SELECT ALL - 46 / ( + - 58 ) * - 61 + - - CASE - AVG ( DISTINCT + 36 ) WHEN 97 THEN NULL ELSE 8 * 90 END
----
720

onlyif mysql # aggregate syntax: 
query I rowsort label-2093
SELECT SUM( 71 ) * + 75
----
5325

skipif mysql # not compatible
query I rowsort label-2093
SELECT SUM ( 71 ) * + 75
----
5325

query I rowsort
SELECT + 32 + + 23 AS col1
----
55

onlyif mysql # aggregate syntax: 
query II rowsort label-2095
SELECT ALL - 44 + + - 17 * + NULLIF ( - 43, - - 4 ) + - + SUM( ALL - 66 ) col0, ( + - COUNT( * ) ) + + - 4
----
753
-5

skipif mysql # not compatible
query II rowsort label-2095
SELECT ALL - 44 + + - 17 * + NULLIF ( - 43, - - 4 ) + - + SUM ( ALL - 66 ) col0, ( + - COUNT ( * ) ) + + - 4
----
753
-5

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

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

query I rowsort
SELECT ALL - - COALESCE ( + CASE 69 WHEN - - 10 * + + 25 THEN 79 END, 28, - NULLIF ( 70, - - 88 ) ) + + 18
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-2098
SELECT - 98 * + + COUNT( DISTINCT - 96 ) * + 59 AS col0
----
-5782

skipif mysql # not compatible
query I rowsort label-2098
SELECT - 98 * + + COUNT ( DISTINCT - 96 ) * + 59 AS col0
----
-5782

query I rowsort
SELECT ALL + + ( + + 8 ) + 10 * - 19 * - + 82
----
15588

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

skipif mysql # not compatible
query I rowsort label-2100
SELECT 88 / + 70
----
1

query I rowsort
SELECT - 65 * 89 + + - 50
----
-5835

onlyif mysql # aggregate syntax: 
query II rowsort label-2102
SELECT COUNT( * ) * - + 37 AS col2, + 86 AS col0
----
-37
86

skipif mysql # not compatible
query II rowsort label-2102
SELECT COUNT ( * ) * - + 37 AS col2, + 86 AS col0
----
-37
86

onlyif mysql # aggregate syntax: 
query I rowsort label-2103
SELECT + CASE + ( - - 13 ) WHEN - COUNT( * ) * - + 56 + - - 63 + - + 7 + + COUNT( * ) - 69 THEN - + 92 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2103
SELECT + CASE + ( - - 13 ) WHEN - COUNT ( * ) * - + 56 + - - 63 + - + 7 + + COUNT ( * ) - 69 THEN - + 92 END
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2105
SELECT 11 DIV - 79 * 48 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2105
SELECT 11 / - 79 * 48 AS col0
----
0

query I rowsort
SELECT ALL - 68 - - 53 AS col1
----
-15

query I rowsort
SELECT + 14 * - 57
----
-798

onlyif mysql # aggregate syntax: 
query I rowsort label-2108
SELECT - COUNT( * ) + 81 * - - NULLIF ( 93, - + 38 + - 37 * - COUNT( 20 ) ) + + 44 + - 57 + - + COUNT( * ) * + - 47 + - 2 * + 81
----
7404

skipif mysql # not compatible
query I rowsort label-2108
SELECT - COUNT ( * ) + 81 * - - NULLIF ( 93, - + 38 + - 37 * - COUNT ( 20 ) ) + + 44 + - 57 + - + COUNT ( * ) * + - 47 + - 2 * + 81
----
7404

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2109
SELECT + 95 * - - CAST( - 36 AS SIGNED ) * + - ( - - 85 ) + - 12
----
290688

skipif mysql # not compatible
query I rowsort label-2109
SELECT + 95 * - - CAST ( - 36 AS INTEGER ) * + - ( - - 85 ) + - 12
----
290688

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2110
SELECT ALL 11 - - SUM( DISTINCT + - ( 43 ) ) + - 80 * - + 26 + - 45 AS col0, 57 * - 47 * CAST( + - 66 AS SIGNED )
----
2003
176814

skipif mysql # not compatible
query II rowsort label-2110
SELECT ALL 11 - - SUM ( DISTINCT + - ( 43 ) ) + - 80 * - + 26 + - 45 AS col0, 57 * - 47 * CAST ( + - 66 AS INTEGER )
----
2003
176814

query I rowsort
SELECT 71 * + 31 AS col0
----
2201

query II rowsort
SELECT - 75 AS col1, + 41
----
-75
41

query I rowsort
SELECT 26 * - 22
----
-572

query I rowsort
SELECT 96 * 41
----
3936

query I rowsort
SELECT 32 + + 1 - + + 33 * - 5
----
198

query I rowsort
SELECT DISTINCT 59 * - - 69
----
4071

query II rowsort
SELECT ALL 41 AS col2, 17 + + 65
----
41
82

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

skipif mysql # not compatible
query I rowsort label-2118
SELECT COUNT ( * ) / - - 71
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-2119
SELECT ALL 43 col0, + COALESCE ( - 74, - 20 ) * - 91 + - - 42 DIV 99 AS col0
----
43
6734

skipif mysql # not compatible
query II rowsort label-2119
SELECT ALL 43 col0, + COALESCE ( - 74, - 20 ) * - 91 + - - 42 / 99 AS col0
----
43
6734

query II rowsort
SELECT - 99, CASE 72 WHEN 39 THEN + 18 * - NULLIF ( - - 38, 48 ) END AS col0
----
-99
NULL

query II rowsort
SELECT ALL 0 AS col1, 11 AS col2
----
0
11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2122
SELECT ALL COUNT( * ) DIV - + NULLIF ( + 19, + 87 + - + 5 + + - 79 * - 41 + + 83 )
----
0

skipif mysql # not compatible
query I rowsort label-2122
SELECT ALL COUNT ( * ) / - + NULLIF ( + 19, + 87 + - + 5 + + - 79 * - 41 + + 83 )
----
0

query I rowsort
SELECT COALESCE ( 95, + 70 ) - 79 + - - 5 * 52 AS col2
----
276

query I rowsort
SELECT DISTINCT CASE - 78 WHEN - 93 THEN - + 95 WHEN + - 22 + - ( - 19 ) THEN 3 END / - 77 * - 67 * + + 58
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2125
SELECT ALL - SUM( DISTINCT + 30 ) + + 56 + + + 42 col0
----
68

skipif mysql # not compatible
query I rowsort label-2125
SELECT ALL - SUM ( DISTINCT + 30 ) + + 56 + + + 42 col0
----
68

query I rowsort
SELECT 66 * 54
----
3564

onlyif mysql # aggregate syntax: 
query II rowsort label-2127
SELECT DISTINCT NULLIF ( 38, - 45 * - 69 + + 61 + + AVG ( 55 ) * + COUNT( * ) ) * + + 92 + + - 26 - + 55 * + COUNT( + 86 ) AS col2, + 65 + 2
----
3415
67

skipif mysql # not compatible
query II rowsort label-2127
SELECT DISTINCT NULLIF ( 38, - 45 * - 69 + + 61 + + AVG ( 55 ) * + COUNT ( * ) ) * + + 92 + + - 26 - + 55 * + COUNT ( + 86 ) AS col2, + 65 + 2
----
3415
67

onlyif mysql # aggregate syntax: 
query II rowsort label-2128
SELECT 18 - 11 * - 7 AS col1, SUM( + 48 )
----
95
48

skipif mysql # not compatible
query II rowsort label-2128
SELECT 18 - 11 * - 7 AS col1, SUM ( + 48 )
----
95
48

query I rowsort
SELECT - 56 * - - 21 * 19 + 22 AS col0
----
-22322

query II rowsort
SELECT + 94 AS col1, 22
----
94
22

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2131
SELECT COUNT( * ) - - + 9 + + 46 * - 91 DIV + 90
----
-36

skipif mysql # not compatible
query I rowsort label-2131
SELECT COUNT ( * ) - - + 9 + + 46 * - 91 / + 90
----
-36

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

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

query II rowsort
SELECT ALL - - 55 AS col1, - 44 AS col1
----
55
-44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2134
SELECT 13 * + 9 DIV COUNT( * )
----
117

skipif mysql # not compatible
query I rowsort label-2134
SELECT 13 * + 9 / COUNT ( * )
----
117

onlyif mysql # aggregate syntax: 
query II rowsort label-2135
SELECT ALL 38 * + - 58 + 47 col2, 92 * 68 * - COUNT( * ) * - 69 col2
----
-2157
431664

skipif mysql # not compatible
query II rowsort label-2135
SELECT ALL 38 * + - 58 + 47 col2, 92 * 68 * - COUNT ( * ) * - 69 col2
----
-2157
431664

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2136
SELECT - 93 * + + ( + CAST( - CAST( + 27 AS SIGNED ) AS SIGNED ) ) + - 82, - 49 col1
----
2429
-49

skipif mysql # not compatible
query II rowsort label-2136
SELECT - 93 * + + ( + CAST ( - CAST ( + 27 AS INTEGER ) AS INTEGER ) ) + - 82, - 49 col1
----
2429
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-2137
SELECT ALL + - MAX( DISTINCT + - 46 ) - + 64
----
-18

skipif mysql # not compatible
query I rowsort label-2137
SELECT ALL + - MAX ( DISTINCT + - 46 ) - + 64
----
-18

query I rowsort
SELECT 36 * 33
----
1188

query I rowsort
SELECT + 79 * + + 78 + - 61 * - + 82
----
11164

query I rowsort
SELECT DISTINCT CASE - ( NULLIF ( - 20, + + 64 ) ) WHEN + 96 + - - 60 * + 55 * - 74 THEN + - 67 * + + 56 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2141
SELECT MAX( + 76 ) * + - 47
----
-3572

skipif mysql # not compatible
query I rowsort label-2141
SELECT MAX ( + 76 ) * + - 47
----
-3572

query I rowsort
SELECT ( + 65 ) * + 20 AS col2
----
1300

query I rowsort
SELECT DISTINCT COALESCE ( 6, 54 + - 70 * + 97, - 58 ) AS col1
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-2144
SELECT ALL MIN( DISTINCT ( - 26 ) ) * + ( + - 46 ) * - 17 * + 57
----
-1158924

skipif mysql # not compatible
query I rowsort label-2144
SELECT ALL MIN ( DISTINCT ( - 26 ) ) * + ( + - 46 ) * - 17 * + 57
----
-1158924

onlyif mysql # aggregate syntax: 
query I rowsort label-2145
SELECT + 82 * + CASE - + NULLIF ( - - 7, + 80 + 18 + - 62 ) WHEN - 70 THEN + - 58 + - - 41 WHEN - 68 THEN + + 36 * - 85 * - 35 + + MIN( ALL ( + - 98 ) ) END * + + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2145
SELECT + 82 * + CASE - + NULLIF ( - - 7, + 80 + 18 + - 62 ) WHEN - 70 THEN + - 58 + - - 41 WHEN - 68 THEN + + 36 * - 85 * - 35 + + MIN ( ALL ( + - 98 ) ) END * + + COUNT ( * ) AS col0
----
NULL

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

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

query I rowsort
SELECT + 46 + + 86 AS col0
----
132

onlyif mysql # aggregate syntax: 
query I rowsort label-2148
SELECT + SUM( 53 ) - + - 40 AS col1
----
93

skipif mysql # not compatible
query I rowsort label-2148
SELECT + SUM ( 53 ) - + - 40 AS col1
----
93

onlyif mysql # aggregate syntax: 
query II rowsort label-2149
SELECT + 22 + - - 56 AS col0, + COUNT( * )
----
78
1

skipif mysql # not compatible
query II rowsort label-2149
SELECT + 22 + - - 56 AS col0, + COUNT ( * )
----
78
1

query I rowsort
SELECT ALL 34 + 78 - + 91 + + ( - 93 )
----
-72

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2152
SELECT + COUNT( * ) + + 72 - + ( 60 ) * - + 99 col2, ( - COUNT( * ) ) * + COALESCE ( - - ( 90 ), 58 + ( + + COUNT( * ) ) * + + 70 - + 86 ) + - - 60 + 74 + + 56
----
6013
100

skipif mysql # not compatible
query II rowsort label-2152
SELECT + COUNT ( * ) + + 72 - + ( 60 ) * - + 99 col2, ( - COUNT ( * ) ) * + COALESCE ( - - ( 90 ), 58 + ( + + COUNT ( * ) ) * + + 70 - + 86 ) + - - 60 + 74 + + 56
----
6013
100

query I rowsort
SELECT ALL - 46 + + 27
----
-19

query I rowsort
SELECT + - 22 + - 62 AS col0
----
-84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2155
SELECT ALL - 17 + - 38 - - + 88 + + + CAST( - - MAX( ALL + 86 ) AS SIGNED )
----
119

skipif mysql # not compatible
query I rowsort label-2155
SELECT ALL - 17 + - 38 - - + 88 + + + CAST ( - - MAX ( ALL + 86 ) AS INTEGER )
----
119

onlyif mysql # DIV for integer division: 
query I rowsort label-2156
SELECT ALL + - 29 DIV 4
----
-7

skipif mysql # not compatible
query I rowsort label-2156
SELECT ALL + - 29 / 4
----
-7

query I rowsort
SELECT + + ( 37 ) + - 16 AS col2
----
21

query I rowsort
SELECT + + 36 * + 91 AS col2
----
3276

onlyif mysql # aggregate syntax: 
query I rowsort label-2159
SELECT + 56 * - + 66 + + MAX( ALL - + ( - + 95 ) ) * + - 34 AS col2
----
-6926

skipif mysql # not compatible
query I rowsort label-2159
SELECT + 56 * - + 66 + + MAX ( ALL - + ( - + 95 ) ) * + - 34 AS col2
----
-6926

query I rowsort
SELECT - 30 + - - 58
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-2161
SELECT + MAX( DISTINCT + - 51 ) AS col0
----
-51

skipif mysql # not compatible
query I rowsort label-2161
SELECT + MAX ( DISTINCT + - 51 ) AS col0
----
-51

query II rowsort
SELECT ALL 44 * - 82, + ( - 75 ) * + 14 + + + 40 AS col0
----
-3608
-1010

query I rowsort
SELECT ALL + NULLIF ( 72, + 39 + 78 ) * 71 * 14 AS col0
----
71568

onlyif mysql # aggregate syntax: 
query II rowsort label-2164
SELECT + - MIN( ALL 41 ), 32 AS col2
----
-41
32

skipif mysql # not compatible
query II rowsort label-2164
SELECT + - MIN ( ALL 41 ), 32 AS col2
----
-41
32

onlyif mysql # aggregate syntax: 
query I rowsort label-2165
SELECT + + 85 - - - 97 + 52 + - COUNT( * ) col1
----
39

skipif mysql # not compatible
query I rowsort label-2165
SELECT + + 85 - - - 97 + 52 + - COUNT ( * ) col1
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-2166
SELECT ALL + 49 * + SUM( DISTINCT 82 )
----
4018

skipif mysql # not compatible
query I rowsort label-2166
SELECT ALL + 49 * + SUM ( DISTINCT 82 )
----
4018

onlyif mysql # DIV for integer division: 
query I rowsort label-2167
SELECT - 12 DIV 47
----
0

skipif mysql # not compatible
query I rowsort label-2167
SELECT - 12 / 47
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2168
SELECT ALL - ( 86 ) * - CASE + 61 WHEN - + 95 * 25 * - COUNT( * ) THEN + - 21 ELSE NULL END + + CASE ( + + 76 ) WHEN - ( - + ( - ( - + 84 ) ) ) THEN 83 END * + + SUM( DISTINCT + 62 ), NULLIF ( - - NULLIF ( - COUNT( * ), - COUNT( * ) ), ( - 1 ) * - - 6 * - 12 + + SUM( - 64 + - 41 ) ) + 68 AS col2
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-2168
SELECT ALL - ( 86 ) * - CASE + 61 WHEN - + 95 * 25 * - COUNT ( * ) THEN + - 21 ELSE NULL END + + CASE ( + + 76 ) WHEN - ( - + ( - ( - + 84 ) ) ) THEN 83 END * + + SUM ( DISTINCT + 62 ), NULLIF ( - - NULLIF ( - COUNT ( * ), - COUNT ( * ) ), ( - 1 ) * - - 6 * - 12 + + SUM ( - 64 + - 41 ) ) + 68 AS col2
----
NULL
NULL

query I rowsort
SELECT 40 * - 91 + 50 AS col2
----
-3590

onlyif mysql # aggregate syntax: 
query I rowsort label-2170
SELECT DISTINCT - 26 * + - 67 + + 3 * - 8 + - COUNT( * )
----
1717

skipif mysql # not compatible
query I rowsort label-2170
SELECT DISTINCT - 26 * + - 67 + + 3 * - 8 + - COUNT ( * )
----
1717

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2171
SELECT - 82 + ( - + MAX( + 19 ) ) DIV 20 - - - COALESCE ( - - 85, + - 72, COUNT( 74 ) ) + - COUNT( * ) + + 75 * - + 8 + + 26 * + 0 + - COUNT( * ) * - 79 + - 24
----
-713

skipif mysql # not compatible
query I rowsort label-2171
SELECT - 82 + ( - + MAX ( + 19 ) ) / 20 - - - COALESCE ( - - 85, + - 72, COUNT ( 74 ) ) + - COUNT ( * ) + + 75 * - + 8 + + 26 * + 0 + - COUNT ( * ) * - 79 + - 24
----
-713

query I rowsort
SELECT DISTINCT + 32 * 5 AS col0
----
160

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2173
SELECT - 46 / - - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2173
SELECT - 46 / - - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2174
SELECT ALL 93 DIV - + 47 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-2174
SELECT ALL 93 / - + 47 AS col2
----
-1

query I rowsort
SELECT - COALESCE ( + 84, + 6, + 41 ) AS col0
----
-84

query I rowsort
SELECT - 4 - + 80 * + NULLIF ( + 86, + 43 + + CASE 99 WHEN 88 THEN - 54 WHEN - 34 + - + 49 * + 59 THEN NULL ELSE NULL END ) AS col1
----
-6884

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2178
SELECT ALL COUNT( * ) * + - 66 * - - 42 AS col2
----
-2772

skipif mysql # not compatible
query I rowsort label-2178
SELECT ALL COUNT ( * ) * + - 66 * - - 42 AS col2
----
-2772

query I rowsort
SELECT + 87 * + + 92 col2
----
8004

query I rowsort
SELECT DISTINCT + ( 8 ) * - + 7
----
-56

query I rowsort
SELECT ALL + 35 * - 93 * + 21 * 30 AS col1
----
-2050650

query I rowsort
SELECT + - 24 * - + 20
----
480

query II rowsort
SELECT DISTINCT + + CASE - + 62 WHEN - - 31 THEN + 44 WHEN + 59 + - 15 THEN NULL ELSE NULL END AS col1, + 53 + - 15
----
NULL
38

query II rowsort
SELECT ALL + + 11 AS col0, - 10
----
11
-10

onlyif mysql # DIV for integer division: 
query I rowsort label-2185
SELECT ALL 78 DIV 49
----
1

skipif mysql # not compatible
query I rowsort label-2185
SELECT ALL 78 / 49
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2186
SELECT + 9 * - - 35 + - CAST( 37 AS SIGNED ) + - - CAST( NULL AS SIGNED ), - 85 AS col0
----
NULL
-85

skipif mysql # not compatible
query II rowsort label-2186
SELECT + 9 * - - 35 + - CAST ( 37 AS INTEGER ) + - - CAST ( NULL AS INTEGER ), - 85 AS col0
----
NULL
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-2187
SELECT + 21 * - 3 + - + COUNT( * ) - - 82
----
18

skipif mysql # not compatible
query I rowsort label-2187
SELECT + 21 * - 3 + - + COUNT ( * ) - - 82
----
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2188
SELECT + - COUNT( * ) * + + 42 - + - CAST( NULL AS SIGNED ) * 19 + + ( 65 ) * + 19 + 45 * - COUNT( * ) * + + 41 + + MIN( + + 10 ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2188
SELECT + - COUNT ( * ) * + + 42 - + - CAST ( NULL AS INTEGER ) * 19 + + ( 65 ) * + 19 + 45 * - COUNT ( * ) * + + 41 + + MIN ( + + 10 ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2189
SELECT DISTINCT - 9 / - NULLIF ( CASE 10 WHEN + + MAX( ALL 1 ) THEN - + 61 * - - 36 * 36 WHEN 76 THEN NULL END, + 41 + SUM( ALL - + CASE + 17 WHEN - 57 THEN NULL ELSE + + 39 END ) ) + + 86
----
NULL

skipif mysql # not compatible
query I rowsort label-2189
SELECT DISTINCT - 9 / - NULLIF ( CASE 10 WHEN + + MAX ( ALL 1 ) THEN - + 61 * - - 36 * 36 WHEN 76 THEN NULL END, + 41 + SUM ( ALL - + CASE + 17 WHEN - 57 THEN NULL ELSE + + 39 END ) ) + + 86
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2190
SELECT 22 * + 81 * - COUNT( * )
----
-1782

skipif mysql # not compatible
query I rowsort label-2190
SELECT 22 * + 81 * - COUNT ( * )
----
-1782

query I rowsort
SELECT 54 * + ( + 79 ) * 86 * - 10 + - 50 + + 81 col1
----
-3668729

query II rowsort
SELECT ALL - 61 AS col2, - 29 AS col1
----
-61
-29

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

skipif mysql # not compatible
query I rowsort label-2193
SELECT CAST ( NULL AS INTEGER ) + - 93 * + 48
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2194
SELECT ALL COUNT( - 91 ) + - + 3
----
-2

skipif mysql # not compatible
query I rowsort label-2194
SELECT ALL COUNT ( - 91 ) + - + 3
----
-2

query II rowsort
SELECT 11 AS col0, + NULLIF ( - ( + 25 ), - 16 * - 17 + + NULLIF ( - 53, - - 9 * 43 ) )
----
11
-25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2196
SELECT ALL + 46 + - + CAST( NULL AS SIGNED ) * 17 * - - 99 * - + 96 + + 6
----
NULL

skipif mysql # not compatible
query I rowsort label-2196
SELECT ALL + 46 + - + CAST ( NULL AS INTEGER ) * 17 * - - 99 * - + 96 + + 6
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2197
SELECT - 8 * - + ( - 71 ) - + 1 * ( + COUNT( ALL - - 68 ) ) - 28 * 95 DIV - 47 col1
----
-513

skipif mysql # not compatible
query I rowsort label-2197
SELECT - 8 * - + ( - 71 ) - + 1 * ( + COUNT ( ALL - - 68 ) ) - 28 * 95 / - 47 col1
----
-513

query I rowsort
SELECT 56 + - - 82 * - 78
----
-6340

query II rowsort
SELECT - 59 AS col2, 68
----
-59
68

onlyif mysql # aggregate syntax: 
query II rowsort label-2200
SELECT 37 + COUNT( * ) AS col2, - 79
----
38
-79

skipif mysql # not compatible
query II rowsort label-2200
SELECT 37 + COUNT ( * ) AS col2, - 79
----
38
-79

query I rowsort
SELECT 75 * - 93 AS col1
----
-6975

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2202
SELECT ALL - 83 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2202
SELECT ALL - 83 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2203
SELECT 49 + + MAX( DISTINCT - 80 ) AS col1
----
-31

skipif mysql # not compatible
query I rowsort label-2203
SELECT 49 + + MAX ( DISTINCT - 80 ) AS col1
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-2204
SELECT SUM( - 80 ) - 99 AS col0
----
-179

skipif mysql # not compatible
query I rowsort label-2204
SELECT SUM ( - 80 ) - 99 AS col0
----
-179

onlyif mysql # aggregate syntax: 
query II rowsort label-2205
SELECT - 79, SUM( - - 91 ) - - 9 col0
----
-79
100

skipif mysql # not compatible
query II rowsort label-2205
SELECT - 79, SUM ( - - 91 ) - - 9 col0
----
-79
100

query I rowsort
SELECT + 15 + - 17 col0
----
-2

query I rowsort
SELECT 39 - + + 89 * - - 38 * + 17 + - + 58 + - 32
----
-57545

query I rowsort
SELECT DISTINCT + - 91 - + 38
----
-129

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

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

query II rowsort
SELECT ALL + 75 AS col2, - 45 * 28 AS col1
----
75
-1260

query II rowsort
SELECT ALL 47 AS col1, 87 col0
----
47
87

query II rowsort
SELECT ALL - 52, ( + - 48 ) + + - 3 * + 32 AS col2
----
-52
-144

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

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

query I rowsort
SELECT DISTINCT 66 * - ( + + 53 ) AS col1
----
-3498

query I rowsort
SELECT + 15 + + 51 * + 40 col1
----
2055

query II rowsort
SELECT ALL + 88 + - 50, 45 * - 53 - - + 79 AS col1
----
38
-2306

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2217
SELECT ALL - SUM( DISTINCT - + 35 ) * + CAST( - - COUNT( * ) AS SIGNED ) AS col1
----
35

skipif mysql # not compatible
query I rowsort label-2217
SELECT ALL - SUM ( DISTINCT - + 35 ) * + CAST ( - - COUNT ( * ) AS INTEGER ) AS col1
----
35

query I rowsort
SELECT DISTINCT 18 + 32
----
50

onlyif mysql # aggregate syntax: 
query II rowsort label-2219
SELECT ALL - SUM( ALL + + 91 ), + ( 75 ) AS col0
----
-91
75

skipif mysql # not compatible
query II rowsort label-2219
SELECT ALL - SUM ( ALL + + 91 ), + ( 75 ) AS col0
----
-91
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2220
SELECT 6 * + + 40 * - 0 col1, AVG ( + 61 ) * + - COUNT( * ) + + - 81 - - 99 * 3 * + + AVG ( + CAST( NULL AS SIGNED ) ) + 95 + + - 21 / 30 AS col1
----
0
NULL

skipif mysql # not compatible
query II rowsort label-2220
SELECT 6 * + + 40 * - 0 col1, AVG ( + 61 ) * + - COUNT ( * ) + + - 81 - - 99 * 3 * + + AVG ( + CAST ( NULL AS INTEGER ) ) + 95 + + - 21 / 30 AS col1
----
0
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2221
SELECT NULLIF ( - + 11, - CAST( + 65 AS DECIMAL ) ) - - 49 + 54 * - 50 * - COUNT( * ) AS col0
----
2738

skipif mysql # not compatible
query I rowsort label-2221
SELECT NULLIF ( - + 11, - CAST ( + 65 AS REAL ) ) - - 49 + 54 * - 50 * - COUNT ( * ) AS col0
----
2738

query III rowsort
SELECT 60 * 9 AS col1, 13, + 50 AS col0
----
540
13
50

onlyif mysql # aggregate syntax: 
query II rowsort label-2223
SELECT DISTINCT - SUM( + 43 ) col1, 58
----
-43
58

skipif mysql # not compatible
query II rowsort label-2223
SELECT DISTINCT - SUM ( + 43 ) col1, 58
----
-43
58

onlyif mysql # aggregate syntax: 
query I rowsort label-2224
SELECT ALL ( - + 34 ) + - - MAX( 88 )
----
54

skipif mysql # not compatible
query I rowsort label-2224
SELECT ALL ( - + 34 ) + - - MAX ( 88 )
----
54

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2225
SELECT DISTINCT COUNT( * ) DIV - 49 * - - 22
----
0

skipif mysql # not compatible
query I rowsort label-2225
SELECT DISTINCT COUNT ( * ) / - 49 * - - 22
----
0

query I rowsort
SELECT + 41 * - 54 + - 84 AS col0
----
-2298

onlyif mysql # aggregate syntax: 
query I rowsort label-2227
SELECT 60 - COUNT( * )
----
59

skipif mysql # not compatible
query I rowsort label-2227
SELECT 60 - COUNT ( * )
----
59

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2229
SELECT - MIN( ALL + - 70 ) AS col1
----
70

skipif mysql # not compatible
query I rowsort label-2229
SELECT - MIN ( ALL + - 70 ) AS col1
----
70

query I rowsort
SELECT 50 + 91 AS col2
----
141

query I rowsort
SELECT 85 * + 16 AS col0
----
1360

onlyif mysql # aggregate syntax: 
query I rowsort label-2232
SELECT ALL - - ( - CASE + COUNT( * ) WHEN 72 THEN NULL ELSE + 28 END ) * 94 col0
----
-2632

skipif mysql # not compatible
query I rowsort label-2232
SELECT ALL - - ( - CASE + COUNT ( * ) WHEN 72 THEN NULL ELSE + 28 END ) * 94 col0
----
-2632

query II rowsort
SELECT ALL - 53 * 95 AS col2, + ( - 44 ) + 81
----
-5035
37

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2235
SELECT + 29 + - + 70 * CAST( + 26 AS SIGNED ) + + 94
----
-1697

skipif mysql # not compatible
query I rowsort label-2235
SELECT + 29 + - + 70 * CAST ( + 26 AS INTEGER ) + + 94
----
-1697

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

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

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

query I rowsort
SELECT ( 56 ) * - 27 AS col1
----
-1512

onlyif mysql # aggregate syntax: 
query I rowsort label-2239
SELECT ALL + - 27 * - - MIN( DISTINCT - + 15 ) + - COUNT( DISTINCT - + 26 )
----
404

skipif mysql # not compatible
query I rowsort label-2239
SELECT ALL + - 27 * - - MIN ( DISTINCT - + 15 ) + - COUNT ( DISTINCT - + 26 )
----
404

query I rowsort
SELECT ALL - 46 * - 25 + + 84 col2
----
1234

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2241
SELECT - 53 + 99 + 72 + - + COALESCE ( + NULLIF ( + - MIN( ALL - CAST( NULL AS SIGNED ) ), + + CAST( NULL AS SIGNED ) * + + 7 - + 41 ), + 16 * - ( - MIN( 22 ) ) + - 50, - 4 + - COUNT( * ) ) + + 19 * - 52 * - 1 * - 80 col1
----
-79224

skipif mysql # not compatible
query I rowsort label-2241
SELECT - 53 + 99 + 72 + - + COALESCE ( + NULLIF ( + - MIN ( ALL - CAST ( NULL AS INTEGER ) ), + + CAST ( NULL AS INTEGER ) * + + 7 - + 41 ), + 16 * - ( - MIN ( 22 ) ) + - 50, - 4 + - COUNT ( * ) ) + + 19 * - 52 * - 1 * - 80 col1
----
-79224

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2243
SELECT ALL - COUNT( * ) * - CASE - ( 46 ) WHEN - + 24 / - 40 * 13 THEN - 31 + + 36 + - 80 ELSE NULL END / + MIN( ALL 4 ) * - 89 + + - 96 + + 61
----
NULL

skipif mysql # not compatible
query I rowsort label-2243
SELECT ALL - COUNT ( * ) * - CASE - ( 46 ) WHEN - + 24 / - 40 * 13 THEN - 31 + + 36 + - 80 ELSE NULL END / + MIN ( ALL 4 ) * - 89 + + - 96 + + 61
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2244
SELECT NULLIF ( - CAST( NULL AS SIGNED ), - 18 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2244
SELECT NULLIF ( - CAST ( NULL AS INTEGER ), - 18 ) AS col0
----
NULL

query I rowsort
SELECT - 82 + - - 47 * + 33 * + + 44
----
68162

onlyif mysql # aggregate syntax: 
query I rowsort label-2246
SELECT ALL - 19 * + CASE - 2 WHEN - COUNT( * ) THEN - + 94 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2246
SELECT ALL - 19 * + CASE - 2 WHEN - COUNT ( * ) THEN - + 94 END
----
NULL

query I rowsort
SELECT + CASE - 14 WHEN 9 THEN - ( - 27 ) WHEN 89 * 81 THEN NULL ELSE NULL END + 97 * + CASE + - 96 WHEN - 0 THEN NULL ELSE + ( + + 38 ) END AS col2
----
NULL

query II rowsort
SELECT ALL + 1 col0, - 63 * - 80 * - 71
----
1
-357840

onlyif mysql # aggregate syntax: 
query II rowsort label-2249
SELECT ALL 56 * + SUM( DISTINCT + - 19 ) - + + 64, 4 AS col1
----
-1128
4

skipif mysql # not compatible
query II rowsort label-2249
SELECT ALL 56 * + SUM ( DISTINCT + - 19 ) - + + 64, 4 AS col1
----
-1128
4

onlyif mysql # aggregate syntax: 
query II rowsort label-2250
SELECT - 57 + + + 40 + + 40, NULLIF ( + + 78, COALESCE ( - 72, + 8 / - 58 * 90, + 99 ) + + NULLIF ( - - ( + + 74 ), + + SUM( - 85 ) ) + + 16 * 31 ) AS col0
----
23
78

skipif mysql # not compatible
query II rowsort label-2250
SELECT - 57 + + + 40 + + 40, NULLIF ( + + 78, COALESCE ( - 72, + 8 / - 58 * 90, + 99 ) + + NULLIF ( - - ( + + 74 ), + + SUM ( - 85 ) ) + + 16 * 31 ) AS col0
----
23
78

onlyif mysql # DIV for integer division: 
query I rowsort label-2251
SELECT ALL 27 DIV + + 9
----
3

skipif mysql # not compatible
query I rowsort label-2251
SELECT ALL 27 / + + 9
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2252
SELECT + COUNT( * ) + 40
----
41

skipif mysql # not compatible
query I rowsort label-2252
SELECT + COUNT ( * ) + 40
----
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2253
SELECT + 98 + NULLIF ( + CASE + 22 WHEN + + 17 * + 0 THEN + COUNT( * ) - - COALESCE ( 5, - - 92 + 69, + ( CAST( NULL AS SIGNED ) ) + - - 29 * 91 DIV CASE + 90 WHEN + + 92 DIV 93 THEN - 94 * + 19 END ) + CASE 84 WHEN + 86 * - 85 + + + 87 THEN 12 * - + 26 WHEN + 50 + 72 THEN NULL ELSE - 28 END ELSE 19 + 16 END, 3 ) + 36 AS col1
----
169

skipif mysql # not compatible
query I rowsort label-2253
SELECT + 98 + NULLIF ( + CASE + 22 WHEN + + 17 * + 0 THEN + COUNT ( * ) - - COALESCE ( 5, - - 92 + 69, + ( CAST ( NULL AS INTEGER ) ) + - - 29 * 91 / CASE + 90 WHEN + + 92 / 93 THEN - 94 * + 19 END ) + CASE 84 WHEN + 86 * - 85 + + + 87 THEN 12 * - + 26 WHEN + 50 + 72 THEN NULL ELSE - 28 END ELSE 19 + 16 END, 3 ) + 36 AS col1
----
169

query II rowsort
SELECT DISTINCT 8 AS col1, + 99 * - + 16
----
8
-1584

onlyif mysql # aggregate syntax: 
query I rowsort label-2255
SELECT + - 32 * + 16 + + MIN( ALL + 53 ) + + - ( - + 71 )
----
-388

skipif mysql # not compatible
query I rowsort label-2255
SELECT + - 32 * + 16 + + MIN ( ALL + 53 ) + + - ( - + 71 )
----
-388

query I rowsort
SELECT DISTINCT 99 * 16
----
1584

query I rowsort
SELECT ALL - 57 * + ( 84 ) + + 12
----
-4776

query I rowsort
SELECT + 0 + + 26
----
26

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

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

query I rowsort
SELECT + 14 + + 8 AS col2
----
22

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2262
SELECT ALL - COUNT( * ) + + CAST( + 24 AS SIGNED ) * + 50 * + 54
----
64799

skipif mysql # not compatible
query I rowsort label-2262
SELECT ALL - COUNT ( * ) + + CAST ( + 24 AS INTEGER ) * + 50 * + 54
----
64799

query I rowsort
SELECT + + 35 + 46
----
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2264
SELECT ALL COALESCE ( - 22, + 56 + + 62 + + - 71 ) + + 95 * 13 * + - 94 * 0 * - 80 + 33 + - + COUNT( * ) * - 9 / + 91 * 71 * + CASE MIN( ALL - 97 ) WHEN - COUNT( * ) * - AVG ( DISTINCT + 5 ) + 4 * - 0 + + 95 THEN + CAST( 58 AS SIGNED ) WHEN - 99 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2264
SELECT ALL COALESCE ( - 22, + 56 + + 62 + + - 71 ) + + 95 * 13 * + - 94 * 0 * - 80 + 33 + - + COUNT ( * ) * - 9 / + 91 * 71 * + CASE MIN ( ALL - 97 ) WHEN - COUNT ( * ) * - AVG ( DISTINCT + 5 ) + 4 * - 0 + + 95 THEN + CAST ( 58 AS INTEGER ) WHEN - 99 THEN NULL END
----
NULL

query I rowsort
SELECT - - 61 + 29
----
90

query I rowsort
SELECT DISTINCT 28 + + - 67
----
-39

query I rowsort
SELECT ALL + 80 + - 3 AS col0
----
77

onlyif mysql # aggregate syntax: 
query II rowsort label-2268
SELECT - - COUNT( * ) + CASE - 37 WHEN 84 THEN NULL WHEN + - 46 THEN NULL ELSE + 58 END AS col1, 27 col0
----
59
27

skipif mysql # not compatible
query II rowsort label-2268
SELECT - - COUNT ( * ) + CASE - 37 WHEN 84 THEN NULL WHEN + - 46 THEN NULL ELSE + 58 END AS col1, 27 col0
----
59
27

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2270
SELECT DISTINCT + 47 * + 45 * 75 AS col1, + COUNT( * ) AS col0
----
158625
1

skipif mysql # not compatible
query II rowsort label-2270
SELECT DISTINCT + 47 * + 45 * 75 AS col1, + COUNT ( * ) AS col0
----
158625
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2271
SELECT + 30 DIV - 89 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2271
SELECT + 30 / - 89 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2272
SELECT + 15 DIV - 99 + 0 * + + 89 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2272
SELECT + 15 / - 99 + 0 * + + 89 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2273
SELECT ALL + MAX( - 86 ) * + + MAX( ALL + 54 )
----
-4644

skipif mysql # not compatible
query I rowsort label-2273
SELECT ALL + MAX ( - 86 ) * + + MAX ( ALL + 54 )
----
-4644

query I rowsort
SELECT - 12 + 93 AS col0
----
81

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

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

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

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

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

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

query I rowsort
SELECT - 16 - 69 + + 56 + 50
----
21

query I rowsort
SELECT + COALESCE ( 30, - - 25 ) AS col2
----
30

query I rowsort
SELECT NULLIF ( 18, + + 9 * + 63 + - 81 )
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-2281
SELECT MIN( ALL - 68 ) * + 79 + 29 * - 68 + - 93 AS col2
----
-7437

skipif mysql # not compatible
query I rowsort label-2281
SELECT MIN ( ALL - 68 ) * + 79 + 29 * - 68 + - 93 AS col2
----
-7437

onlyif mysql # aggregate syntax: 
query I rowsort label-2282
SELECT - COUNT( * ) * - 71 * - 56 AS col1
----
-3976

skipif mysql # not compatible
query I rowsort label-2282
SELECT - COUNT ( * ) * - 71 * - 56 AS col1
----
-3976

query II rowsort
SELECT ALL 21 * + 90 AS col2, 43
----
1890
43

query I rowsort
SELECT DISTINCT + 79 * + 35 AS col0
----
2765

onlyif mysql # aggregate syntax: 
query I rowsort label-2285
SELECT DISTINCT COUNT( * ) * + COUNT( * ) * + SUM( ALL - 43 ) + - - COUNT( * ) + - COUNT( * ) AS col2
----
-43

skipif mysql # not compatible
query I rowsort label-2285
SELECT DISTINCT COUNT ( * ) * + COUNT ( * ) * + SUM ( ALL - 43 ) + - - COUNT ( * ) + - COUNT ( * ) AS col2
----
-43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2286
SELECT ALL CAST( NULL AS SIGNED ) * + 53 + COALESCE ( + ( - 64 ), - NULLIF ( + - 48, + 68 ), 68 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2286
SELECT ALL CAST ( NULL AS INTEGER ) * + 53 + COALESCE ( + ( - 64 ), - NULLIF ( + - 48, + 68 ), 68 )
----
NULL

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2289
SELECT - MAX( ALL 77 ) * + COUNT( * ) + + COUNT( * )
----
-76

skipif mysql # not compatible
query I rowsort label-2289
SELECT - MAX ( ALL 77 ) * + COUNT ( * ) + + COUNT ( * )
----
-76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2290
SELECT DISTINCT + 55 * 86 + + ( + + CAST( - 92 AS SIGNED ) ) * ( + 87 ) AS col1
----
-3274

skipif mysql # not compatible
query I rowsort label-2290
SELECT DISTINCT + 55 * 86 + + ( + + CAST ( - 92 AS INTEGER ) ) * ( + 87 ) AS col1
----
-3274

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2292
SELECT ALL + 70 + + - 64 + - + 26 + + MIN( ALL + ( 17 ) ) - - 90 * + 85 + 58 AS col2
----
7705

skipif mysql # not compatible
query I rowsort label-2292
SELECT ALL + 70 + + - 64 + - + 26 + + MIN ( ALL + ( 17 ) ) - - 90 * + 85 + 58 AS col2
----
7705

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2293
SELECT DISTINCT + 59 DIV MAX( + 33 ) + - 81 DIV - 81 + COUNT( * ) * + 74 * - 68 AS col1
----
-5030

skipif mysql # not compatible
query I rowsort label-2293
SELECT DISTINCT + 59 / MAX ( + 33 ) + - 81 / - 81 + COUNT ( * ) * + 74 * - 68 AS col1
----
-5030

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2294
SELECT DISTINCT 99 + NULLIF ( - + MIN( - CAST( NULL AS SIGNED ) ), + - MIN( ALL + + 4 ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2294
SELECT DISTINCT 99 + NULLIF ( - + MIN ( - CAST ( NULL AS INTEGER ) ), + - MIN ( ALL + + 4 ) ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2295
SELECT NULLIF ( + 33, 35 * - - 84 ) * COALESCE ( + COUNT( * ), MAX( ALL 17 ) * + 18, - 9 * - SUM( DISTINCT - 17 ) ) DIV - CAST( COUNT( * ) AS SIGNED ), - 2 AS col0
----
-33
-2

skipif mysql # not compatible
query II rowsort label-2295
SELECT NULLIF ( + 33, 35 * - - 84 ) * COALESCE ( + COUNT ( * ), MAX ( ALL 17 ) * + 18, - 9 * - SUM ( DISTINCT - 17 ) ) / - CAST ( COUNT ( * ) AS INTEGER ), - 2 AS col0
----
-33
-2

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

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

query I rowsort
SELECT ALL 17 + + - 1 + 14 + + 68 * 89 + + 60
----
6142

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2298
SELECT - CAST( NULL AS SIGNED ) - + 11 col2, 65 * + COUNT( * )
----
NULL
65

skipif mysql # not compatible
query II rowsort label-2298
SELECT - CAST ( NULL AS INTEGER ) - + 11 col2, 65 * + COUNT ( * )
----
NULL
65

query I rowsort
SELECT DISTINCT 40 * 75 AS col0
----
3000

query I rowsort
SELECT NULLIF ( + + 65, - 44 / - 97 ) + - + 73
----
-8

query I rowsort
SELECT NULLIF ( + - 52, - 59 ) * + 48
----
-2496

onlyif mysql # aggregate syntax: 
query I rowsort label-2302
SELECT ALL - 28 - + COUNT( * ) * + 71 AS col1
----
-99

skipif mysql # not compatible
query I rowsort label-2302
SELECT ALL - 28 - + COUNT ( * ) * + 71 AS col1
----
-99

query I rowsort
SELECT ALL + 55 * - 74 AS col2
----
-4070

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2305
SELECT DISTINCT CAST( NULL AS DECIMAL ) * - 65
----
NULL

skipif mysql # not compatible
query I rowsort label-2305
SELECT DISTINCT CAST ( NULL AS REAL ) * - 65
----
NULL

query I rowsort
SELECT 65 * - 33 * - - 93 + 55
----
-199430

onlyif mysql # DIV for integer division: 
query I rowsort label-2307
SELECT 66 DIV + 64
----
1

skipif mysql # not compatible
query I rowsort label-2307
SELECT 66 / + 64
----
1

query I rowsort
SELECT ALL 16 * + - 36 AS col2
----
-576

query I rowsort
SELECT ALL - COALESCE ( - 31, + 74 + - 43 ) AS col0
----
31

query I rowsort
SELECT DISTINCT - 38 + - 17 col1
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-2311
SELECT DISTINCT + 84 + 59 + - + ( - MIN( ALL + 45 ) )
----
188

skipif mysql # not compatible
query I rowsort label-2311
SELECT DISTINCT + 84 + 59 + - + ( - MIN ( ALL + 45 ) )
----
188

onlyif mysql # DIV for integer division: 
query I rowsort label-2312
SELECT 91 DIV + 34
----
2

skipif mysql # not compatible
query I rowsort label-2312
SELECT 91 / + 34
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2313
SELECT DISTINCT - 20 + + CAST( + - 33 AS SIGNED )
----
-53

skipif mysql # not compatible
query I rowsort label-2313
SELECT DISTINCT - 20 + + CAST ( + - 33 AS INTEGER )
----
-53

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

skipif mysql # not compatible
query I rowsort label-2314
SELECT ALL - - MIN ( - 58 )
----
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2315
SELECT ALL - CAST( - + 84 AS SIGNED ) + 81
----
165

skipif mysql # not compatible
query I rowsort label-2315
SELECT ALL - CAST ( - + 84 AS INTEGER ) + 81
----
165

query I rowsort
SELECT + 69 + - 62 - + ( 76 )
----
-69

query I rowsort
SELECT + 52 * - 89 col1
----
-4628

onlyif mysql # aggregate syntax: 
query I rowsort label-2318
SELECT DISTINCT + 74 + - COUNT( * ) col0
----
73

skipif mysql # not compatible
query I rowsort label-2318
SELECT DISTINCT + 74 + - COUNT ( * ) col0
----
73

query I rowsort
SELECT ALL + 41 + 59 AS col2
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-2320
SELECT CASE + - 6 WHEN + + 44 * 86 - - 63 + - 99 + + 38 + + COUNT( * ) THEN 13 WHEN 84 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2320
SELECT CASE + - 6 WHEN + + 44 * 86 - - 63 + - 99 + + 38 + + COUNT ( * ) THEN 13 WHEN 84 THEN NULL END
----
NULL

query I rowsort
SELECT ALL + - 39 * - 31 * + + 62
----
74958

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2322
SELECT DISTINCT - 72 + + + 17 + CAST( + 53 AS SIGNED ) * 81 + + 58
----
4296

skipif mysql # not compatible
query I rowsort label-2322
SELECT DISTINCT - 72 + + + 17 + CAST ( + 53 AS INTEGER ) * 81 + + 58
----
4296

query I rowsort
SELECT - 32 + + + NULLIF ( 13, 86 * 95 * 48 - + 58 )
----
-19

query II rowsort
SELECT - 6, 64 + ( 57 ) AS col1
----
-6
121

query II rowsort
SELECT 80 + 64 - - 16 AS col2, - 94
----
160
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-2326
SELECT DISTINCT + CASE + MAX( DISTINCT ( - - CASE + 25 WHEN 99 THEN - COALESCE ( 36, 27 ) ELSE - 13 - 5 END ) ) WHEN - + 51 THEN + 94 + - - ( CASE - 52 WHEN 24 THEN + 99 + - 63 * + + NULLIF ( + 74, - 71 ) WHEN + 48 THEN NULL ELSE - 50 * - - 62 + - 42 * + 7 * + 80 END ) + 72 + - + 96 + + 29 * + 28 * + CASE - 73 + - COUNT( * ) WHEN - NULLIF ( + 1, 26 + 8 * - 23 ) - + 88 THEN - 13 WHEN 41 THEN - COALESCE ( + COUNT( * ), - 80 + 12, NULLIF ( - 12, ( - 2 ) - 20 ) * - 21 ) ELSE + 39 END END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2326
SELECT DISTINCT + CASE + MAX ( DISTINCT ( - - CASE + 25 WHEN 99 THEN - COALESCE ( 36, 27 ) ELSE - 13 - 5 END ) ) WHEN - + 51 THEN + 94 + - - ( CASE - 52 WHEN 24 THEN + 99 + - 63 * + + NULLIF ( + 74, - 71 ) WHEN + 48 THEN NULL ELSE - 50 * - - 62 + - 42 * + 7 * + 80 END ) + 72 + - + 96 + + 29 * + 28 * + CASE - 73 + - COUNT ( * ) WHEN - NULLIF ( + 1, 26 + 8 * - 23 ) - + 88 THEN - 13 WHEN 41 THEN - COALESCE ( + COUNT ( * ), - 80 + 12, NULLIF ( - 12, ( - 2 ) - 20 ) * - 21 ) ELSE + 39 END END AS col1
----
NULL

query I rowsort
SELECT + 68 - ( - 65 )
----
133

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2328
SELECT 72 * - COUNT( * ) * - COUNT( * ) + + + CAST( - + SUM( DISTINCT - - 53 ) AS SIGNED ) col0
----
19

skipif mysql # not compatible
query I rowsort label-2328
SELECT 72 * - COUNT ( * ) * - COUNT ( * ) + + + CAST ( - + SUM ( DISTINCT - - 53 ) AS INTEGER ) col0
----
19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2329
SELECT 59 + + + 12 + - ( COUNT( * ) ) - + CAST( 6 AS SIGNED ) AS col0
----
64

skipif mysql # not compatible
query I rowsort label-2329
SELECT 59 + + + 12 + - ( COUNT ( * ) ) - + CAST ( 6 AS INTEGER ) AS col0
----
64

query I rowsort
SELECT + 81 + + ( - + 28 ) AS col0
----
53

query I rowsort
SELECT ALL + 98 - + 61
----
37

query I rowsort
SELECT 90 * - 77
----
-6930

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2333
SELECT DISTINCT 53 * + CAST( + - 79 AS SIGNED )
----
-4187

skipif mysql # not compatible
query I rowsort label-2333
SELECT DISTINCT 53 * + CAST ( + - 79 AS INTEGER )
----
-4187

query I rowsort
SELECT 44 * - + 57
----
-2508

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2335
SELECT ALL - CASE - 17 WHEN - + 2 + - CAST( + 79 AS SIGNED ) + - COUNT( * ) - + 60 + - ( CASE 85 WHEN + + COUNT( * ) THEN 73 / + AVG ( ALL 33 ) / - - 15 END ) * MAX( ALL - + 0 ) * + 54 + + COALESCE ( + 16, - - AVG ( ALL + 61 ) + + 53 * + + CAST( NULL AS DECIMAL ) + 35 + - ( 13 ) + 3 + 59 * CAST( 67 AS SIGNED ) * CASE 88 + 91 WHEN + 41 * - COUNT( DISTINCT 34 / + 77 ) THEN - 11 * + 77 END, + NULLIF ( MIN( + 28 ), + 25 * + 87 ) ) * + SUM( ALL 3 ) THEN NULL WHEN CAST( 69 AS SIGNED ) THEN 93 * 96 END / + 94 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2335
SELECT ALL - CASE - 17 WHEN - + 2 + - CAST ( + 79 AS INTEGER ) + - COUNT ( * ) - + 60 + - ( CASE 85 WHEN + + COUNT ( * ) THEN 73 / + AVG ( ALL 33 ) / - - 15 END ) * MAX ( ALL - + 0 ) * + 54 + + COALESCE ( + 16, - - AVG ( ALL + 61 ) + + 53 * + + CAST ( NULL AS REAL ) + 35 + - ( 13 ) + 3 + 59 * CAST ( 67 AS INTEGER ) * CASE 88 + 91 WHEN + 41 * - COUNT ( DISTINCT 34 / + 77 ) THEN - 11 * + 77 END, + NULLIF ( MIN ( + 28 ), + 25 * + 87 ) ) * + SUM ( ALL 3 ) THEN NULL WHEN CAST ( 69 AS INTEGER ) THEN 93 * 96 END / + 94 AS col0
----
NULL

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

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

query I rowsort
SELECT ALL 82 * - 27
----
-2214

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2338
SELECT ALL CAST( + ( + - 24 ) AS SIGNED ) * + - 23 AS col0, CAST( - - 91 AS SIGNED ) AS col0
----
552
91

skipif mysql # not compatible
query II rowsort label-2338
SELECT ALL CAST ( + ( + - 24 ) AS INTEGER ) * + - 23 AS col0, CAST ( - - 91 AS INTEGER ) AS col0
----
552
91

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2340
SELECT ( + + 30 ) * 27 + - 6 + + - CAST( + 53 AS SIGNED ) * COUNT( * ) * SUM( DISTINCT + - 18 ) + - 96 AS col0
----
1662

skipif mysql # not compatible
query I rowsort label-2340
SELECT ( + + 30 ) * 27 + - 6 + + - CAST ( + 53 AS INTEGER ) * COUNT ( * ) * SUM ( DISTINCT + - 18 ) + - 96 AS col0
----
1662

query I rowsort
SELECT DISTINCT 76 * + 33
----
2508

query II rowsort
SELECT - 33, 22 * + 33 AS col1
----
-33
726

onlyif mysql # DIV for integer division: 
query II rowsort label-2343
SELECT ALL - 14, - 42 DIV + 91 AS col0
----
-14
0

skipif mysql # not compatible
query II rowsort label-2343
SELECT ALL - 14, - 42 / + 91 AS col0
----
-14
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2344
SELECT ( - 80 ) * - + 11 * + COUNT( * ) - - 16 AS col0
----
896

skipif mysql # not compatible
query I rowsort label-2344
SELECT ( - 80 ) * - + 11 * + COUNT ( * ) - - 16 AS col0
----
896

onlyif mysql # aggregate syntax: 
query II rowsort label-2345
SELECT + 42 col1, CASE + 67 WHEN - 52 * 33 * + - NULLIF ( + 79, + + 24 ) * - 17 * + MAX( DISTINCT - COALESCE ( + 10, 8 - 94 * - 29 ) ) + 68 + ( - + 54 ) * + - COUNT( * ) THEN + ( COUNT( * ) ) WHEN - + 67 - + 86 THEN NULL END
----
42
NULL

skipif mysql # not compatible
query II rowsort label-2345
SELECT + 42 col1, CASE + 67 WHEN - 52 * 33 * + - NULLIF ( + 79, + + 24 ) * - 17 * + MAX ( DISTINCT - COALESCE ( + 10, 8 - 94 * - 29 ) ) + 68 + ( - + 54 ) * + - COUNT ( * ) THEN + ( COUNT ( * ) ) WHEN - + 67 - + 86 THEN NULL END
----
42
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2346
SELECT 95 + - - 10 * - 63 * - MIN( - 6 ) AS col1
----
-3685

skipif mysql # not compatible
query I rowsort label-2346
SELECT 95 + - - 10 * - 63 * - MIN ( - 6 ) AS col1
----
-3685

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2347
SELECT ALL - 30, - CASE + + 3 WHEN 33 THEN + ( COALESCE ( 7, - CASE + COUNT( * ) WHEN - + 18 THEN - + 47 WHEN - CAST( ( - 6 ) AS SIGNED ) * 31 * - 89 THEN NULL END ) ) / 8 + NULLIF ( - - 24, - CASE - - 20 WHEN COUNT( * ) THEN - 53 WHEN + AVG ( DISTINCT 9 ) * - 55 + - 93 + + 66 + + 10 + + ( - 57 ) THEN MIN( ALL 48 ) + 46 * 89 END * - 63 ) * - ( + ( NULLIF ( - 35, 7 ) ) ) END AS col2
----
-30
NULL

skipif mysql # not compatible
query II rowsort label-2347
SELECT ALL - 30, - CASE + + 3 WHEN 33 THEN + ( COALESCE ( 7, - CASE + COUNT ( * ) WHEN - + 18 THEN - + 47 WHEN - CAST ( ( - 6 ) AS INTEGER ) * 31 * - 89 THEN NULL END ) ) / 8 + NULLIF ( - - 24, - CASE - - 20 WHEN COUNT ( * ) THEN - 53 WHEN + AVG ( DISTINCT 9 ) * - 55 + - 93 + + 66 + + 10 + + ( - 57 ) THEN MIN ( ALL 48 ) + 46 * 89 END * - 63 ) * - ( + ( NULLIF ( - 35, 7 ) ) ) END AS col2
----
-30
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2348
SELECT CAST( + - 25 AS SIGNED ) * + - 67 AS col1
----
1675

skipif mysql # not compatible
query I rowsort label-2348
SELECT CAST ( + - 25 AS INTEGER ) * + - 67 AS col1
----
1675

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2350
SELECT DISTINCT 56 * COUNT( * ) + 81 + - COUNT( * ) - - - 77
----
59

skipif mysql # not compatible
query I rowsort label-2350
SELECT DISTINCT 56 * COUNT ( * ) + 81 + - COUNT ( * ) - - - 77
----
59

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2351
SELECT + 49 / - + NULLIF ( CASE + MAX( ALL 65 ) WHEN - 87 + + 65 THEN + 28 END, - 95 ) * + 92 / + 88 + + 59 * + ( - + 45 ) - - CAST( NULL AS DECIMAL ) + + 86 + COUNT( * ) - 98 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2351
SELECT + 49 / - + NULLIF ( CASE + MAX ( ALL 65 ) WHEN - 87 + + 65 THEN + 28 END, - 95 ) * + 92 / + 88 + + 59 * + ( - + 45 ) - - CAST ( NULL AS REAL ) + + 86 + COUNT ( * ) - 98 col0
----
NULL

query I rowsort
SELECT 94 * + 90
----
8460

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2354
SELECT ALL - + COUNT( DISTINCT - + ( 32 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-2354
SELECT ALL - + COUNT ( DISTINCT - + ( 32 ) )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2355
SELECT + 75 * - 83 * 55 * COUNT( * ) + 16 - + + 23 AS col0
----
-342382

skipif mysql # not compatible
query I rowsort label-2355
SELECT + 75 * - 83 * 55 * COUNT ( * ) + 16 - + + 23 AS col0
----
-342382

query I rowsort
SELECT DISTINCT - - 66 + ( - 59 )
----
7

onlyif mysql # DIV for integer division: 
query II rowsort label-2357
SELECT ALL + - 50, - COALESCE ( - - 17, 78 DIV - 28 ) - + + 96 AS col0
----
-50
-113

skipif mysql # not compatible
query II rowsort label-2357
SELECT ALL + - 50, - COALESCE ( - - 17, 78 / - 28 ) - + + 96 AS col0
----
-50
-113

query I rowsort
SELECT DISTINCT - 76 + - 58 + + 45
----
-89

query I rowsort
SELECT - 93 * - 66 col1
----
6138

onlyif mysql # DIV for integer division: 
query I rowsort label-2360
SELECT ALL - - 91 DIV - 49 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-2360
SELECT ALL - - 91 / - 49 AS col2
----
-1

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

skipif mysql # not compatible
query I rowsort label-2361
SELECT - COUNT ( * ) / MAX ( ALL + + 69 ) AS col0
----
0

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

skipif mysql # not compatible
query I rowsort label-2362
SELECT DISTINCT + 43 - - CAST ( NULL AS INTEGER ) * ( - 45 )
----
NULL

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

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

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

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

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

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

query I rowsort
SELECT - 73 * - 50 AS col0
----
3650

onlyif mysql # aggregate syntax: 
query I rowsort label-2367
SELECT - COALESCE ( MIN( DISTINCT 25 ), - SUM( DISTINCT + 57 ), + 9, + 16 )
----
-25

skipif mysql # not compatible
query I rowsort label-2367
SELECT - COALESCE ( MIN ( DISTINCT 25 ), - SUM ( DISTINCT + 57 ), + 9, + 16 )
----
-25

onlyif mysql # aggregate syntax: 
query II rowsort label-2368
SELECT - + 7 + - 84 * COUNT( * ) * + 32 AS col0, 16
----
-2695
16

skipif mysql # not compatible
query II rowsort label-2368
SELECT - + 7 + - 84 * COUNT ( * ) * + 32 AS col0, 16
----
-2695
16

onlyif mysql # aggregate syntax: 
query I rowsort label-2369
SELECT - 66 + 39 - + COUNT( * )
----
-28

skipif mysql # not compatible
query I rowsort label-2369
SELECT - 66 + 39 - + COUNT ( * )
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-2370
SELECT ALL - 69 * + COUNT( * ) * - COALESCE ( ( - - 87 ), - 27, - NULLIF ( + - 87, + MIN( DISTINCT + + 41 ) ) )
----
6003

skipif mysql # not compatible
query I rowsort label-2370
SELECT ALL - 69 * + COUNT ( * ) * - COALESCE ( ( - - 87 ), - 27, - NULLIF ( + - 87, + MIN ( DISTINCT + + 41 ) ) )
----
6003

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2371
SELECT - - 63 * 17 - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2371
SELECT - - 63 * 17 - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2372
SELECT ALL - 18 AS col0, 66 * + - CAST( + + 41 AS SIGNED )
----
-18
-2706

skipif mysql # not compatible
query II rowsort label-2372
SELECT ALL - 18 AS col0, 66 * + - CAST ( + + 41 AS INTEGER )
----
-18
-2706

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2374
SELECT ALL ( + CASE + - 73 WHEN - ( - - 3 ) * + - 65 + - + NULLIF ( + 78, + COUNT( DISTINCT 9 ) ) THEN NULL ELSE 80 * 66 + - CAST( NULL AS SIGNED ) * - + 35 + CAST( - + CAST( NULL AS DECIMAL ) AS DECIMAL ) + - AVG ( ALL NULLIF ( + 10, + + 39 ) ) END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2374
SELECT ALL ( + CASE + - 73 WHEN - ( - - 3 ) * + - 65 + - + NULLIF ( + 78, + COUNT ( DISTINCT 9 ) ) THEN NULL ELSE 80 * 66 + - CAST ( NULL AS INTEGER ) * - + 35 + CAST ( - + CAST ( NULL AS REAL ) AS REAL ) + - AVG ( ALL NULLIF ( + 10, + + 39 ) ) END ) AS col0
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2376
SELECT DISTINCT NULLIF ( 33, 51 * + 18 * + 45 + MIN( - CAST( NULL AS SIGNED ) ) ) AS col1
----
33

skipif mysql # not compatible
query I rowsort label-2376
SELECT DISTINCT NULLIF ( 33, 51 * + 18 * + 45 + MIN ( - CAST ( NULL AS INTEGER ) ) ) AS col1
----
33

onlyif mysql # aggregate syntax: 
query II rowsort label-2377
SELECT ALL CASE + 91 WHEN 78 THEN NULL WHEN + - COUNT( * ) THEN + 32 WHEN - 1 - - 83 THEN NULL END AS col0, - 99
----
NULL
-99

skipif mysql # not compatible
query II rowsort label-2377
SELECT ALL CASE + 91 WHEN 78 THEN NULL WHEN + - COUNT ( * ) THEN + 32 WHEN - 1 - - 83 THEN NULL END AS col0, - 99
----
NULL
-99

query I rowsort
SELECT + 5 * + - 38 * + 44 AS col2
----
-8360

query II rowsort
SELECT - 17 + - 25 col2, 62
----
-42
62

query I rowsort
SELECT ALL ( - 26 ) AS col1
----
-26

onlyif mysql # aggregate syntax: 
query II rowsort label-2381
SELECT - SUM( + 29 ) AS col0, COUNT( * ) AS col1
----
-29
1

skipif mysql # not compatible
query II rowsort label-2381
SELECT - SUM ( + 29 ) AS col0, COUNT ( * ) AS col1
----
-29
1

query I rowsort
SELECT ALL - 38 + 31 AS col2
----
-7

query I rowsort
SELECT DISTINCT + 84 + + 62
----
146

query I rowsort
SELECT ALL 27 * - 84 + + + 29 AS col2
----
-2239

onlyif mysql # aggregate syntax: 
query I rowsort label-2385
SELECT + 39 * - + 94 * NULLIF ( + - 87, 65 * - 1 + + - COALESCE ( + - 73, - - MAX( ALL - 78 ), + COUNT( * ) ) ) - - 66
----
319008

skipif mysql # not compatible
query I rowsort label-2385
SELECT + 39 * - + 94 * NULLIF ( + - 87, 65 * - 1 + + - COALESCE ( + - 73, - - MAX ( ALL - 78 ), + COUNT ( * ) ) ) - - 66
----
319008

query I rowsort
SELECT DISTINCT + 11 * + 82
----
902

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

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

query II rowsort
SELECT DISTINCT 63 * + + 85 * - 99 AS col2, 25
----
-530145
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2389
SELECT ALL 64 * + SUM( DISTINCT 62 ) + - CASE - 18 WHEN - 97 / 45 THEN NULL WHEN + 20 + + 85 + - + 14 THEN - COUNT( * ) ELSE - 25 * + COUNT( * ) + + MAX( - 25 ) - - 6 END * CAST( + - 56 AS SIGNED ) * + 50
----
-119232

skipif mysql # not compatible
query I rowsort label-2389
SELECT ALL 64 * + SUM ( DISTINCT 62 ) + - CASE - 18 WHEN - 97 / 45 THEN NULL WHEN + 20 + + 85 + - + 14 THEN - COUNT ( * ) ELSE - 25 * + COUNT ( * ) + + MAX ( - 25 ) - - 6 END * CAST ( + - 56 AS INTEGER ) * + 50
----
-119232

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2390
SELECT ( - + 91 ) AS col2, - 86 + 77 * + - CAST( + 29 AS SIGNED ) * 14 * + 23 + + 12 + + AVG ( - 77 ) / - + CASE + - 30 WHEN - 45 THEN 95 * 3 WHEN + - COALESCE ( CASE + COUNT( * ) WHEN - + 45 THEN NULL WHEN - 82 * - MAX( ALL - - ( + 40 ) ) THEN NULL WHEN 65 THEN 8 * COUNT( * ) END, - - 7 * + - 94 + + + 26 + 63 * + 64 ) + + MAX( ALL 9 ) * + AVG ( ALL - 46 * 34 ) THEN - 95 + 43 END AS col2
----
-91
NULL

skipif mysql # not compatible
query II rowsort label-2390
SELECT ( - + 91 ) AS col2, - 86 + 77 * + - CAST ( + 29 AS INTEGER ) * 14 * + 23 + + 12 + + AVG ( - 77 ) / - + CASE + - 30 WHEN - 45 THEN 95 * 3 WHEN + - COALESCE ( CASE + COUNT ( * ) WHEN - + 45 THEN NULL WHEN - 82 * - MAX ( ALL - - ( + 40 ) ) THEN NULL WHEN 65 THEN 8 * COUNT ( * ) END, - - 7 * + - 94 + + + 26 + 63 * + 64 ) + + MAX ( ALL 9 ) * + AVG ( ALL - 46 * 34 ) THEN - 95 + 43 END AS col2
----
-91
NULL

query II rowsort
SELECT + 9 - - - 73 col2, - 64 AS col1
----
-64
-64

query I rowsort
SELECT + - 85 + - - 58 + 34 AS col0
----
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2393
SELECT ALL 85 * + 44 - 89 * - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2393
SELECT ALL 85 * + 44 - 89 * - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT + + 19 * - 3 * 6 - 94
----
-436

onlyif mysql # aggregate syntax: 
query II rowsort label-2395
SELECT ALL + SUM( + 21 ), + 39 col2
----
21
39

skipif mysql # not compatible
query II rowsort label-2395
SELECT ALL + SUM ( + 21 ), + 39 col2
----
21
39

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

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

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

skipif mysql # not compatible
query I rowsort label-2397
SELECT ALL + COUNT ( - ( + 59 ) ) AS col2
----
1

query I rowsort
SELECT + 53 + - - 65 + + 63 col2
----
181

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2400
SELECT - + 53 * + - 17 AS col1, COUNT( * ) * - ( + COUNT( * ) ) col0
----
901
-1

skipif mysql # not compatible
query II rowsort label-2400
SELECT - + 53 * + - 17 AS col1, COUNT ( * ) * - ( + COUNT ( * ) ) col0
----
901
-1

query I rowsort
SELECT + 67 + + 87
----
154

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

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

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

query I rowsort
SELECT - + 1 + + - ( + 65 ) * - 71 * + 59 + 42
----
272326

onlyif mysql # aggregate syntax: 
query I rowsort label-2405
SELECT - - 26 + - + COUNT( * ) + - 57 * 71 AS col1
----
-4022

skipif mysql # not compatible
query I rowsort label-2405
SELECT - - 26 + - + COUNT ( * ) + - 57 * 71 AS col1
----
-4022

onlyif mysql # DIV for integer division: 
query I rowsort label-2406
SELECT + 65 + - 21 DIV - - 75 AS col1
----
65

skipif mysql # not compatible
query I rowsort label-2406
SELECT + 65 + - 21 / - - 75 AS col1
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-2407
SELECT + 24 * + 74 * - + 68 * + COUNT( * ) AS col2
----
-120768

skipif mysql # not compatible
query I rowsort label-2407
SELECT + 24 * + 74 * - + 68 * + COUNT ( * ) AS col2
----
-120768

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2409
SELECT ALL - 69 + + 41 - + 50 DIV - 92 * + + 88 AS col0
----
-28

skipif mysql # not compatible
query I rowsort label-2409
SELECT ALL - 69 + + 41 - + 50 / - 92 * + + 88 AS col0
----
-28

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2410
SELECT + 41 + - MIN( ( - + 81 ) ) - - + COUNT( ALL 59 ) DIV + - SUM( DISTINCT + + ( + ( + 38 ) ) ) AS col0
----
122

skipif mysql # not compatible
query I rowsort label-2410
SELECT + 41 + - MIN ( ( - + 81 ) ) - - + COUNT ( ALL 59 ) / + - SUM ( DISTINCT + + ( + ( + 38 ) ) ) AS col0
----
122

query II rowsort
SELECT - ( + 65 ) + + + 27, - 82 * 38 AS col1
----
-38
-3116

query II rowsort
SELECT ALL ( - ( - - 45 ) ) AS col0, 35
----
-45
35

query I rowsort
SELECT - 93 * - 66 col0
----
6138

onlyif mysql # aggregate syntax: 
query I rowsort label-2414
SELECT ALL SUM( + 76 ) + + - COUNT( DISTINCT 33 ) * - COUNT( * ) AS col1
----
77

skipif mysql # not compatible
query I rowsort label-2414
SELECT ALL SUM ( + 76 ) + + - COUNT ( DISTINCT 33 ) * - COUNT ( * ) AS col1
----
77

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

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

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2418
SELECT - SUM( ALL - 23 ) + + CAST( ( - 69 ) AS SIGNED ) AS col1
----
-46

skipif mysql # not compatible
query I rowsort label-2418
SELECT - SUM ( ALL - 23 ) + + CAST ( ( - 69 ) AS INTEGER ) AS col1
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-2419
SELECT ALL - 34 * + - COUNT( 71 ) col1
----
34

skipif mysql # not compatible
query I rowsort label-2419
SELECT ALL - 34 * + - COUNT ( 71 ) col1
----
34

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

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

query I rowsort
SELECT ALL + 7 + - - 5 * + + ( - + 51 )
----
-248

query I rowsort
SELECT - 33 * - 86
----
2838

onlyif mysql # DIV for integer division: 
query I rowsort label-2424
SELECT DISTINCT + ( 79 ) DIV - 86 - - 85
----
85

skipif mysql # not compatible
query I rowsort label-2424
SELECT DISTINCT + ( 79 ) / - 86 - - 85
----
85

query I rowsort
SELECT DISTINCT + CASE + 6 WHEN - 92 * + 21 / - - 44 THEN 53 WHEN 54 / 44 THEN NULL ELSE NULL END / - - 91 AS col0
----
NULL

query I rowsort
SELECT 17 * 33 AS col2
----
561

query II rowsort
SELECT DISTINCT - 87 * + - 31 + - + 23, - 67 AS col1
----
2674
-67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2428
SELECT DISTINCT + 76 - - 27 + - COUNT( * ) DIV 18
----
103

skipif mysql # not compatible
query I rowsort label-2428
SELECT DISTINCT + 76 - - 27 + - COUNT ( * ) / 18
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-2429
SELECT ALL - NULLIF ( + 6, - MIN( ALL + 79 ) * - 2 / - 96 + - 22 + 64 - + + 45 * + + MIN( ALL 3 ) * - 99 + + COUNT( * ) - - - 16 - 45 + - - 54 ) AS col0
----
-6

skipif mysql # not compatible
query I rowsort label-2429
SELECT ALL - NULLIF ( + 6, - MIN ( ALL + 79 ) * - 2 / - 96 + - 22 + 64 - + + 45 * + + MIN ( ALL 3 ) * - 99 + + COUNT ( * ) - - - 16 - 45 + - - 54 ) AS col0
----
-6

query I rowsort
SELECT 9 / - + 32 + + 8 - + - NULLIF ( - COALESCE ( - NULLIF ( - + ( - 3 ), + 96 ), - 61 ), + + 3 ) * + 30 / + 56 * + + 82 * - 46
----
NULL

query I rowsort
SELECT ALL + 43 * 29 AS col2
----
1247

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2432
SELECT - 16 DIV - 87 + - - CAST( 90 AS SIGNED ) - 84 AS col2
----
6

skipif mysql # not compatible
query I rowsort label-2432
SELECT - 16 / - 87 + - - CAST ( 90 AS INTEGER ) - 84 AS col2
----
6

query I rowsort
SELECT DISTINCT + NULLIF ( - 78, 32 ) * - 22
----
1716

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2434
SELECT ALL MIN( - 54 ) * - COUNT( * ) col2, 3 DIV - 66 AS col2
----
54
0

skipif mysql # not compatible
query II rowsort label-2434
SELECT ALL MIN ( - 54 ) * - COUNT ( * ) col2, 3 / - 66 AS col2
----
54
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2435
SELECT ALL - MIN( + 76 ) * 95 AS col2
----
-7220

skipif mysql # not compatible
query I rowsort label-2435
SELECT ALL - MIN ( + 76 ) * 95 AS col2
----
-7220

onlyif mysql # DIV for integer division: 
query I rowsort label-2436
SELECT - 12 DIV - 30 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2436
SELECT - 12 / - 30 AS col2
----
0

query I rowsort
SELECT 19 * + 17 AS col1
----
323

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2438
SELECT 34 - + - MIN( ALL - 38 ) + 30 DIV + 62 * - 99 * + - 69 + + - COALESCE ( - 93, + 30 ) * + 71, 25 - - 91 * + + NULLIF ( - 12, + COUNT( * ) ) AS col1
----
6599
-1067

skipif mysql # not compatible
query II rowsort label-2438
SELECT 34 - + - MIN ( ALL - 38 ) + 30 / + 62 * - 99 * + - 69 + + - COALESCE ( - 93, + 30 ) * + 71, 25 - - 91 * + + NULLIF ( - 12, + COUNT ( * ) ) AS col1
----
6599
-1067

query I rowsort
SELECT ALL - 91 * + 59 AS col0
----
-5369

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

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

query II rowsort
SELECT DISTINCT - 86 AS col1, 60
----
-86
60

query I rowsort
SELECT ALL - COALESCE ( 60, - - 15 )
----
-60

query I rowsort
SELECT DISTINCT CASE + 25 WHEN 19 THEN + 43 * - ( + 24 ) WHEN + 74 THEN - 67 + - + 92 ELSE - 97 END + - 1
----
-98

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2445
SELECT ALL 97 + + COUNT( * ) + 39 * - 88 - - 55 * + - 13 * 64 - - - 41
----
-49135

skipif mysql # not compatible
query I rowsort label-2445
SELECT ALL 97 + + COUNT ( * ) + 39 * - 88 - - 55 * + - 13 * 64 - - - 41
----
-49135

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2446
SELECT COUNT( * ) * ( + 71 ) * - + 3, + 22 + + 7 + + 80 + AVG ( ALL - ( CAST( NULL AS SIGNED ) ) ) AS col2
----
-213
NULL

skipif mysql # not compatible
query II rowsort label-2446
SELECT COUNT ( * ) * ( + 71 ) * - + 3, + 22 + + 7 + + 80 + AVG ( ALL - ( CAST ( NULL AS INTEGER ) ) ) AS col2
----
-213
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2447
SELECT DISTINCT 53 * - SUM( ALL - - 64 )
----
-3392

skipif mysql # not compatible
query I rowsort label-2447
SELECT DISTINCT 53 * - SUM ( ALL - - 64 )
----
-3392

query I rowsort
SELECT ALL 88 * 98 AS col0
----
8624

query I rowsort
SELECT ALL ( - 83 ) + + 38 * + 51 + 89
----
1944

onlyif mysql # DIV for integer division: 
query I rowsort label-2450
SELECT DISTINCT 58 + - 70 + 28 DIV + 84 * - 15 AS col2
----
-12

skipif mysql # not compatible
query I rowsort label-2450
SELECT DISTINCT 58 + - 70 + 28 / + 84 * - 15 AS col2
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-2451
SELECT ALL - COUNT( * ) + - - 67 col2
----
66

skipif mysql # not compatible
query I rowsort label-2451
SELECT ALL - COUNT ( * ) + - - 67 col2
----
66

onlyif mysql # aggregate syntax: 
query II rowsort label-2452
SELECT ALL 93 * - 18 AS col0, COUNT( * )
----
-1674
1

skipif mysql # not compatible
query II rowsort label-2452
SELECT ALL 93 * - 18 AS col0, COUNT ( * )
----
-1674
1

query I rowsort
SELECT 59 + - + 87 + - 61 AS col1
----
-89

query I rowsort
SELECT 94 * ( - 39 ) AS col1
----
-3666

query I rowsort
SELECT ALL 46 + + 43
----
89

onlyif mysql # aggregate syntax: 
query II rowsort label-2456
SELECT ALL COUNT( * ) + - 96, - 33 AS col0
----
-95
-33

skipif mysql # not compatible
query II rowsort label-2456
SELECT ALL COUNT ( * ) + - 96, - 33 AS col0
----
-95
-33

query I rowsort
SELECT 10 * + ( + 79 ) AS col1
----
790

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

skipif mysql # not compatible
query I rowsort label-2458
SELECT ALL + 66 / - 87 * + 2 * - COUNT ( * ) AS col2
----
0

query I rowsort
SELECT 20 * + 84 * 39 AS col1
----
65520

query I rowsort
SELECT 94 + 5
----
99

query II rowsort
SELECT 10 - - 14 col1, 28 AS col1
----
24
28

onlyif mysql # DIV for integer division: 
query I rowsort label-2462
SELECT - 14 DIV 87 * ( - + 45 ) + + 13 + - + 8 + + 95 DIV + 2 col1
----
52

skipif mysql # not compatible
query I rowsort label-2462
SELECT - 14 / 87 * ( - + 45 ) + + 13 + - + 8 + + 95 / + 2 col1
----
52

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2463
SELECT 54 * + - 27 * + + ( CASE + - 81 WHEN 1 THEN NULL ELSE + CASE + ( + 1 ) WHEN 36 * - 12 / + 15 + - ( 89 ) - + 59 - + + 0 * - 14 * + AVG ( + 20 ) * - - CAST( NULL AS DECIMAL ) THEN - ( + COUNT( * ) ) + + - 72 END END ) + + - COUNT( * ) * + 58
----
NULL

skipif mysql # not compatible
query I rowsort label-2463
SELECT 54 * + - 27 * + + ( CASE + - 81 WHEN 1 THEN NULL ELSE + CASE + ( + 1 ) WHEN 36 * - 12 / + 15 + - ( 89 ) - + 59 - + + 0 * - 14 * + AVG ( + 20 ) * - - CAST ( NULL AS REAL ) THEN - ( + COUNT ( * ) ) + + - 72 END END ) + + - COUNT ( * ) * + 58
----
NULL

query I rowsort
SELECT 70 + COALESCE ( + + 41, + 34 + - 36, 14 + + + 19 * - 68 )
----
111

onlyif mysql # aggregate syntax: 
query I rowsort label-2465
SELECT + 9 * 7 + 95 + - + COUNT( * )
----
157

skipif mysql # not compatible
query I rowsort label-2465
SELECT + 9 * 7 + 95 + - + COUNT ( * )
----
157

query I rowsort
SELECT + 13 * + 70 - + 28 AS col0
----
882

onlyif mysql # aggregate syntax: 
query I rowsort label-2467
SELECT ALL - SUM( - 0 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2467
SELECT ALL - SUM ( - 0 ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2468
SELECT NULLIF ( COUNT( * ), + ( - - 91 ) ) * 41
----
41

skipif mysql # not compatible
query I rowsort label-2468
SELECT NULLIF ( COUNT ( * ), + ( - - 91 ) ) * 41
----
41

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2470
SELECT DISTINCT + - 80 DIV COUNT( * ) DIV 88 + - - 96 AS col0
----
96

skipif mysql # not compatible
query I rowsort label-2470
SELECT DISTINCT + - 80 / COUNT ( * ) / 88 + - - 96 AS col0
----
96

query I rowsort
SELECT ALL - 39 + ( - 70 ) AS col1
----
-109

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2472
SELECT ALL + + COUNT( * ) DIV - CASE + 53 WHEN + - 32 * + ( - + 62 ) + 80 - COUNT( * ) - 82 - - 10 - AVG ( - 42 ) THEN COUNT( * ) + COUNT( 93 ) + + - CASE - 18 WHEN 45 + + 44 + - + 30 THEN + COUNT( * ) DIV + 55 END + + 13 + - COUNT( * ) * - - COALESCE ( - + SUM( - - 16 ), + 75 ) * 47 ELSE 99 END * - 2 * - 42 + + 31 + + 41 * - 94
----
-3823

skipif mysql # not compatible
query I rowsort label-2472
SELECT ALL + + COUNT ( * ) / - CASE + 53 WHEN + - 32 * + ( - + 62 ) + 80 - COUNT ( * ) - 82 - - 10 - AVG ( - 42 ) THEN COUNT ( * ) + COUNT ( 93 ) + + - CASE - 18 WHEN 45 + + 44 + - + 30 THEN + COUNT ( * ) / + 55 END + + 13 + - COUNT ( * ) * - - COALESCE ( - + SUM ( - - 16 ), + 75 ) * 47 ELSE 99 END * - 2 * - 42 + + 31 + + 41 * - 94
----
-3823

query I rowsort
SELECT DISTINCT - + 51 + - 62 AS col2
----
-113

onlyif mysql # aggregate syntax: 
query I rowsort label-2474
SELECT ( - - CASE 47 WHEN + 91 * - COUNT( * ) THEN + - 49 + - + COUNT( * ) + - - ( + 24 ) * + COALESCE ( - 83, - 48 * COALESCE ( + MAX( + 36 ), + NULLIF ( + COUNT( * ), 91 + - 2 ), - + 97 * - 41 ) + - + 72 * + + COUNT( * ) * 55, + 48, + + 4 ) END ) * - 12 + + 85 * - 37
----
NULL

skipif mysql # not compatible
query I rowsort label-2474
SELECT ( - - CASE 47 WHEN + 91 * - COUNT ( * ) THEN + - 49 + - + COUNT ( * ) + - - ( + 24 ) * + COALESCE ( - 83, - 48 * COALESCE ( + MAX ( + 36 ), + NULLIF ( + COUNT ( * ), 91 + - 2 ), - + 97 * - 41 ) + - + 72 * + + COUNT ( * ) * 55, + 48, + + 4 ) END ) * - 12 + + 85 * - 37
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2475
SELECT ALL - + 38 + + 51 + - + 57 * 13 * + + 75 * + + 77 * + + 51 + COUNT( DISTINCT + - ( - 67 ) ) * - 18
----
-218243030

skipif mysql # not compatible
query I rowsort label-2475
SELECT ALL - + 38 + + 51 + - + 57 * 13 * + + 75 * + + 77 * + + 51 + COUNT ( DISTINCT + - ( - 67 ) ) * - 18
----
-218243030

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2476
SELECT COUNT( * ) DIV - COALESCE ( - - COUNT( * ), 78 ), - 76 * - 33 col1
----
-1
2508

skipif mysql # not compatible
query II rowsort label-2476
SELECT COUNT ( * ) / - COALESCE ( - - COUNT ( * ), 78 ), - 76 * - 33 col1
----
-1
2508

query I rowsort
SELECT + 51 + + 96 AS col0
----
147

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2479
SELECT CASE - SUM( 89 ) WHEN + 69 THEN + ( - 75 ) WHEN + + 61 * COUNT( * ) + 9 THEN NULL END + 14
----
NULL

skipif mysql # not compatible
query I rowsort label-2479
SELECT CASE - SUM ( 89 ) WHEN + 69 THEN + ( - 75 ) WHEN + + 61 * COUNT ( * ) + 9 THEN NULL END + 14
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2480
SELECT 72 AS col2, 2 * + + CASE - 49 WHEN - - CAST( NULL AS DECIMAL ) THEN NULL ELSE + - 98 END AS col0
----
72
-196

skipif mysql # not compatible
query II rowsort label-2480
SELECT 72 AS col2, 2 * + + CASE - 49 WHEN - - CAST ( NULL AS REAL ) THEN NULL ELSE + - 98 END AS col0
----
72
-196

onlyif mysql # aggregate syntax: 
query II rowsort label-2481
SELECT 75, 85 + + COUNT( * ) - 93 - NULLIF ( 39, + 42 ) AS col0
----
75
-46

skipif mysql # not compatible
query II rowsort label-2481
SELECT 75, 85 + + COUNT ( * ) - 93 - NULLIF ( 39, + 42 ) AS col0
----
75
-46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2482
SELECT COALESCE ( 50, + - 69 ) * + MIN( ALL + 36 ) + - + 39 + + - 42 DIV - - 46 * + 7
----
1761

skipif mysql # not compatible
query I rowsort label-2482
SELECT COALESCE ( 50, + - 69 ) * + MIN ( ALL + 36 ) + - + 39 + + - 42 / - - 46 * + 7
----
1761

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

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

query II rowsort
SELECT 53 AS col2, 1 AS col1
----
53
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2485
SELECT ALL AVG ( + CAST( NULL AS SIGNED ) ) + + COUNT( * ) * - + COUNT( * ) * + - CAST( NULL AS SIGNED ) * 97 / + 88
----
NULL

skipif mysql # not compatible
query I rowsort label-2485
SELECT ALL AVG ( + CAST ( NULL AS INTEGER ) ) + + COUNT ( * ) * - + COUNT ( * ) * + - CAST ( NULL AS INTEGER ) * 97 / + 88
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2486
SELECT + ( COUNT( * ) ) * + 11 - + ( + + COUNT( * ) ) + - 28 + + COUNT( 78 ) + + ( + 71 ) + 76 * - + COUNT( * ) + + COUNT( * ) + - - COUNT( * ) AS col1
----
-20

skipif mysql # not compatible
query I rowsort label-2486
SELECT + ( COUNT ( * ) ) * + 11 - + ( + + COUNT ( * ) ) + - 28 + + COUNT ( 78 ) + + ( + 71 ) + 76 * - + COUNT ( * ) + + COUNT ( * ) + - - COUNT ( * ) AS col1
----
-20

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2488
SELECT - 82 AS col0, - COUNT( - - 77 ) * - 11 + + 58 * 12 + + - 19 + - COUNT( * ) AS col0
----
-82
687

skipif mysql # not compatible
query II rowsort label-2488
SELECT - 82 AS col0, - COUNT ( - - 77 ) * - 11 + + 58 * 12 + + - 19 + - COUNT ( * ) AS col0
----
-82
687

query I rowsort
SELECT ( - 33 ) + + + 95 * 2 * - + 69
----
-13143

onlyif mysql # DIV for integer division: 
query I rowsort label-2490
SELECT ALL 46 - 94 + + 0 DIV + 76 + - 25 AS col1
----
-73

skipif mysql # not compatible
query I rowsort label-2490
SELECT ALL 46 - 94 + + 0 / + 76 + - 25 AS col1
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-2491
SELECT COUNT( * ) + - COUNT( - ( + + NULLIF ( + 48, + 46 + + 29 ) ) )
----
0

skipif mysql # not compatible
query I rowsort label-2491
SELECT COUNT ( * ) + - COUNT ( - ( + + NULLIF ( + 48, + 46 + + 29 ) ) )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2492
SELECT DISTINCT COUNT( - CAST( 46 AS SIGNED ) ) - + 34 col1
----
-33

skipif mysql # not compatible
query I rowsort label-2492
SELECT DISTINCT COUNT ( - CAST ( 46 AS INTEGER ) ) - + 34 col1
----
-33

query II rowsort
SELECT ALL 48 AS col1, - 34
----
48
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-2494
SELECT DISTINCT ( COALESCE ( + 77, + + 80 * - - 69 * + + MAX( ALL 16 ) + 67 + + - 45 * - + 53, - 87 * - 19 * - + 19 + - SUM( ALL + 46 ) ) ) * - 66 * + ( - 35 ) * CASE - COUNT( * ) WHEN - + 73 THEN NULL ELSE NULLIF ( - 77, - COALESCE ( MAX( + 1 ), - 44, + 40 + 5 * + 96 * - - ( + 85 ) ) ) + + 27 END AS col0
----
-8893500

skipif mysql # not compatible
query I rowsort label-2494
SELECT DISTINCT ( COALESCE ( + 77, + + 80 * - - 69 * + + MAX ( ALL 16 ) + 67 + + - 45 * - + 53, - 87 * - 19 * - + 19 + - SUM ( ALL + 46 ) ) ) * - 66 * + ( - 35 ) * CASE - COUNT ( * ) WHEN - + 73 THEN NULL ELSE NULLIF ( - 77, - COALESCE ( MAX ( + 1 ), - 44, + 40 + 5 * + 96 * - - ( + 85 ) ) ) + + 27 END AS col0
----
-8893500

query I rowsort
SELECT ALL 80 * - 57
----
-4560

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2497
SELECT ALL COUNT( DISTINCT 9 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2497
SELECT ALL COUNT ( DISTINCT 9 ) AS col1
----
1

query I rowsort
SELECT + 88 * 26
----
2288

query II rowsort
SELECT 26 col0, - 22 + ( - 82 ) col0
----
26
-104

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

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

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

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

query I rowsort
SELECT + + 71 * + - 20
----
-1420

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2503
SELECT - ( - 73 ) / - 39 * CAST( NULL AS DECIMAL ) + 53 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2503
SELECT - ( - 73 ) / - 39 * CAST ( NULL AS REAL ) + 53 AS col1
----
NULL

query II rowsort
SELECT + - 18, 6 + - 71 col0
----
-18
-65

query I rowsort
SELECT ALL + - ( + 42 ) * + - 88
----
3696

onlyif mysql # aggregate syntax: 
query I rowsort label-2506
SELECT ALL + 22 * + - COUNT( * ) + + COUNT( * ) * - - 91 * - ( + COUNT( * ) ) AS col0
----
-113

skipif mysql # not compatible
query I rowsort label-2506
SELECT ALL + 22 * + - COUNT ( * ) + + COUNT ( * ) * - - 91 * - ( + COUNT ( * ) ) AS col0
----
-113

query II rowsort
SELECT DISTINCT + ( 72 ) * + 20 AS col2, + 90 AS col0
----
1440
90

onlyif mysql # aggregate syntax: 
query I rowsort label-2508
SELECT ALL + ( 36 ) * - COUNT( * ) + + + 4
----
-32

skipif mysql # not compatible
query I rowsort label-2508
SELECT ALL + ( 36 ) * - COUNT ( * ) + + + 4
----
-32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2509
SELECT - ( + 49 ) * - NULLIF ( + 4, - + COUNT( * ) ) + - + COUNT( + + 76 ) + - COALESCE ( + NULLIF ( 35, - 23 * - - 43 + + CASE + 13 WHEN - + 64 - - MAX( ALL + 35 ) + - 7 + 15 DIV + 31 THEN + ( + 86 ) WHEN - + 74 THEN NULL END ), - - COUNT( * ), - COUNT( * ) DIV - 40 + - 34 * + 73 + + - 49 * + 49 + + 82, 52 * - COUNT( * ) + - ( - 97 ) * + 73 ) * - COALESCE ( 83 + COUNT( * ), + 11 ) + + 51 col2
----
3186

skipif mysql # not compatible
query I rowsort label-2509
SELECT - ( + 49 ) * - NULLIF ( + 4, - + COUNT ( * ) ) + - + COUNT ( + + 76 ) + - COALESCE ( + NULLIF ( 35, - 23 * - - 43 + + CASE + 13 WHEN - + 64 - - MAX ( ALL + 35 ) + - 7 + 15 / + 31 THEN + ( + 86 ) WHEN - + 74 THEN NULL END ), - - COUNT ( * ), - COUNT ( * ) / - 40 + - 34 * + 73 + + - 49 * + 49 + + 82, 52 * - COUNT ( * ) + - ( - 97 ) * + 73 ) * - COALESCE ( 83 + COUNT ( * ), + 11 ) + + 51 col2
----
3186

onlyif mysql # DIV for integer division: 
query I rowsort label-2510
SELECT - - 53 DIV + 60
----
0

skipif mysql # not compatible
query I rowsort label-2510
SELECT - - 53 / + 60
----
0

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2513
SELECT ALL - 83 DIV - - 41
----
-2

skipif mysql # not compatible
query I rowsort label-2513
SELECT ALL - 83 / - - 41
----
-2

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

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

query I rowsort
SELECT - 88 * - 43 * 94 AS col1
----
355696

onlyif mysql # aggregate syntax: 
query II rowsort label-2516
SELECT + 69 AS col0, SUM( - 77 )
----
69
-77

skipif mysql # not compatible
query II rowsort label-2516
SELECT + 69 AS col0, SUM ( - 77 )
----
69
-77

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2517
SELECT ALL 61 * CAST( NULL AS DECIMAL ) - - NULLIF ( + COUNT( * ), + 36 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2517
SELECT ALL 61 * CAST ( NULL AS REAL ) - - NULLIF ( + COUNT ( * ), + 36 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2518
SELECT ALL - 75 * + + COUNT( * ) AS col2, + 29 * + NULLIF ( - - 75, - COUNT( * ) * 55 + - - 2 + - 65 * 15 ) col0
----
-75
2175

skipif mysql # not compatible
query II rowsort label-2518
SELECT ALL - 75 * + + COUNT ( * ) AS col2, + 29 * + NULLIF ( - - 75, - COUNT ( * ) * 55 + - - 2 + - 65 * 15 ) col0
----
-75
2175

onlyif mysql # aggregate syntax: 
query I rowsort label-2519
SELECT - 52 - + + COUNT( * ) AS col2
----
-53

skipif mysql # not compatible
query I rowsort label-2519
SELECT - 52 - + + COUNT ( * ) AS col2
----
-53

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2520
SELECT DISTINCT - 66 * - COALESCE ( - 44, + + COUNT( * ) DIV - 76 - + + 39 + + 84 * - 63 )
----
-2904

skipif mysql # not compatible
query I rowsort label-2520
SELECT DISTINCT - 66 * - COALESCE ( - 44, + + COUNT ( * ) / - 76 - + + 39 + + 84 * - 63 )
----
-2904

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2521
SELECT - 83 AS col2, - 52 + - + 32 * 58 + + CAST( + + 93 AS SIGNED ) + - + 43 + + 40
----
-83
-1818

skipif mysql # not compatible
query II rowsort label-2521
SELECT - 83 AS col2, - 52 + - + 32 * 58 + + CAST ( + + 93 AS INTEGER ) + - + 43 + + 40
----
-83
-1818

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2523
SELECT DISTINCT + 3 * - NULLIF ( - - 20, - 92 + COUNT( * ) )
----
-60

skipif mysql # not compatible
query I rowsort label-2523
SELECT DISTINCT + 3 * - NULLIF ( - - 20, - 92 + COUNT ( * ) )
----
-60

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

query II rowsort
SELECT - 38 AS col2, + 35 * + - 10 AS col2
----
-38
-350

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

skipif mysql # not compatible
query I rowsort label-2526
SELECT - NULLIF ( COUNT ( * ), - COUNT ( + - 34 ) )
----
-1

query I rowsort
SELECT + 69 * 7
----
483

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

query II rowsort
SELECT ALL 94 col0, - 87 * + 18 * - 85 * + 62 AS col2
----
94
8252820

query I rowsort
SELECT - 98 * + 64
----
-6272

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

skipif mysql # not compatible
query I rowsort label-2531
SELECT + 74 - SUM ( DISTINCT + 51 ) AS col0
----
23

query I rowsort
SELECT + 33 * - 69 AS col2
----
-2277

query II rowsort
SELECT ALL 3 AS col1, - 85 AS col1
----
3
-85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2534
SELECT - NULLIF ( + 49, + 3 * - ( 62 ) * + - 37 + ( COUNT( DISTINCT 2 ) ) + + + MIN( - - CAST( NULL AS SIGNED ) ) / 26 * - 38 * 94 + MIN( ALL + - 78 ) + - 30 + + COUNT( * ) ) AS col0
----
-49

skipif mysql # not compatible
query I rowsort label-2534
SELECT - NULLIF ( + 49, + 3 * - ( 62 ) * + - 37 + ( COUNT ( DISTINCT 2 ) ) + + + MIN ( - - CAST ( NULL AS INTEGER ) ) / 26 * - 38 * 94 + MIN ( ALL + - 78 ) + - 30 + + COUNT ( * ) ) AS col0
----
-49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2535
SELECT ALL CAST( NULL AS SIGNED ) AS col1, 46
----
NULL
46

skipif mysql # not compatible
query II rowsort label-2535
SELECT ALL CAST ( NULL AS INTEGER ) AS col1, 46
----
NULL
46

query I rowsort
SELECT - 62 * 33
----
-2046

onlyif mysql # aggregate syntax: 
query I rowsort label-2537
SELECT - COALESCE ( + ( - - ( - - COUNT( * ) ) ), + - 8 ) + + 55
----
54

skipif mysql # not compatible
query I rowsort label-2537
SELECT - COALESCE ( + ( - - ( - - COUNT ( * ) ) ), + - 8 ) + + 55
----
54

query II rowsort
SELECT + + 86 * + 62 * + 53 * - - 67 AS col0, 83 * 94 AS col1
----
18933932
7802

onlyif mysql # aggregate syntax: 
query I rowsort label-2539
SELECT ALL - COUNT( * ) + + 69 + - 62
----
6

skipif mysql # not compatible
query I rowsort label-2539
SELECT ALL - COUNT ( * ) + + 69 + - 62
----
6

query I rowsort
SELECT + - 0 + + + 46 * - 80
----
-3680

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2541
SELECT + + 25 + - 87 + + 3 * - COUNT( * ) AS col2, + COUNT( * ) * - - 16 + + - CAST( + 9 AS SIGNED ) AS col2
----
-65
7

skipif mysql # not compatible
query II rowsort label-2541
SELECT + + 25 + - 87 + + 3 * - COUNT ( * ) AS col2, + COUNT ( * ) * - - 16 + + - CAST ( + 9 AS INTEGER ) AS col2
----
-65
7

query I rowsort
SELECT ALL 61 * 86
----
5246

query I rowsort
SELECT ( 25 ) col1
----
25

onlyif mysql # DIV for integer division: 
query I rowsort label-2544
SELECT ALL 0 * 14 DIV - - 43 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2544
SELECT ALL 0 * 14 / - - 43 AS col0
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2546
SELECT DISTINCT - NULLIF ( + 58, - 66 ) / - 27 * - - 69 * + ( + CASE + 31 WHEN - SUM( + - 38 ) THEN NULL WHEN + 54 THEN + ( COUNT( * ) ) END ) + - + NULLIF ( 65, - 80 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2546
SELECT DISTINCT - NULLIF ( + 58, - 66 ) / - 27 * - - 69 * + ( + CASE + 31 WHEN - SUM ( + - 38 ) THEN NULL WHEN + 54 THEN + ( COUNT ( * ) ) END ) + - + NULLIF ( 65, - 80 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2547
SELECT 59 DIV - 46 + + + 75 * - 10 + 1
----
-750

skipif mysql # not compatible
query I rowsort label-2547
SELECT 59 / - 46 + + + 75 * - 10 + 1
----
-750

onlyif mysql # aggregate syntax: 
query II rowsort label-2548
SELECT + COALESCE ( - 47, - + 59 + - 54 ) AS col1, - COUNT( * ) * 21 - - 15
----
-47
-6

skipif mysql # not compatible
query II rowsort label-2548
SELECT + COALESCE ( - 47, - + 59 + - 54 ) AS col1, - COUNT ( * ) * 21 - - 15
----
-47
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-2549
SELECT + - COALESCE ( 56, - + COUNT( * ) * CASE WHEN NOT 91 <> + 4 THEN 84 * + - 86 END - - 39 )
----
-56

skipif mysql # not compatible
query I rowsort label-2549
SELECT + - COALESCE ( 56, - + COUNT ( * ) * CASE WHEN NOT 91 <> + 4 THEN 84 * + - 86 END - - 39 )
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-2550
SELECT + + SUM( ALL - 16 ) + - - 93 + + ( + 32 )
----
109

skipif mysql # not compatible
query I rowsort label-2550
SELECT + + SUM ( ALL - 16 ) + - - 93 + + ( + 32 )
----
109

onlyif mysql # aggregate syntax: 
query II rowsort label-2551
SELECT 77 AS col2, MAX( + + 0 ) - - 29
----
77
29

skipif mysql # not compatible
query II rowsort label-2551
SELECT 77 AS col2, MAX ( + + 0 ) - - 29
----
77
29

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2552
SELECT 24 DIV + - 48 * - 76 * + 93 - + 78 + - 83 AS col0, COUNT( * ) * - - 83
----
-161
83

skipif mysql # not compatible
query II rowsort label-2552
SELECT 24 / + - 48 * - 76 * + 93 - + 78 + - 83 AS col0, COUNT ( * ) * - - 83
----
-161
83

query I rowsort
SELECT ALL + - CASE + 27 WHEN - 77 * + 87 THEN + - 19 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2554
SELECT - 47 * - + 3 * + CAST( ( - - 58 ) AS SIGNED ) col1, + CAST( + COALESCE ( - 51, + CASE 74 WHEN COALESCE ( 41, - 77 / - CAST( NULL AS SIGNED ) + + + 69 ) THEN - 86 WHEN 87 * - COUNT( * ) * + + COUNT( * ) + + 54 + - COUNT( * ) * + 41 THEN + COUNT( * ) ELSE NULL END + 42 * - - 25 ) AS SIGNED ) + - + 79 + 10 * + 18 + + + 96 * + 22
----
8178
2162

skipif mysql # not compatible
query II rowsort label-2554
SELECT - 47 * - + 3 * + CAST ( ( - - 58 ) AS INTEGER ) col1, + CAST ( + COALESCE ( - 51, + CASE 74 WHEN COALESCE ( 41, - 77 / - CAST ( NULL AS INTEGER ) + + + 69 ) THEN - 86 WHEN 87 * - COUNT ( * ) * + + COUNT ( * ) + + 54 + - COUNT ( * ) * + 41 THEN + COUNT ( * ) ELSE NULL END + 42 * - - 25 ) AS INTEGER ) + - + 79 + 10 * + 18 + + + 96 * + 22
----
8178
2162

query I rowsort
SELECT DISTINCT 88 * - 99 - - 3
----
-8709

onlyif mysql # aggregate syntax: 
query I rowsort label-2556
SELECT ALL 63 * COUNT( * ) - + 97 + + 17 + 35
----
18

skipif mysql # not compatible
query I rowsort label-2556
SELECT ALL 63 * COUNT ( * ) - + 97 + + 17 + 35
----
18

query I rowsort
SELECT + 11 * + 3 * - - 90 AS col0
----
2970

onlyif mysql # DIV for integer division: 
query I rowsort label-2558
SELECT COALESCE ( 56, - 62 DIV + 92 ) AS col1
----
56

skipif mysql # not compatible
query I rowsort label-2558
SELECT COALESCE ( 56, - 62 / + 92 ) AS col1
----
56

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

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

query II rowsort
SELECT 84 + + 25 AS col0, 65 AS col2
----
109
65

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

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

query I rowsort
SELECT 0 + - 88 - - 7 * - 17
----
-207

onlyif mysql # DIV for integer division: 
query I rowsort label-2563
SELECT DISTINCT - 35 DIV - + NULLIF ( 44, - 5 )
----
0

skipif mysql # not compatible
query I rowsort label-2563
SELECT DISTINCT - 35 / - + NULLIF ( 44, - 5 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2564
SELECT 13 DIV 48 * - 47
----
0

skipif mysql # not compatible
query I rowsort label-2564
SELECT 13 / 48 * - 47
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2565
SELECT ALL - COUNT( * ) * - - 82 * 33 AS col1
----
-2706

skipif mysql # not compatible
query I rowsort label-2565
SELECT ALL - COUNT ( * ) * - - 82 * 33 AS col1
----
-2706

query I rowsort
SELECT 19 + - 34 + + 77 * 81 * + 17
----
106014

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2567
SELECT ALL - COUNT( * ) DIV - 98 * 92 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2567
SELECT ALL - COUNT ( * ) / - 98 * 92 AS col0
----
0

query I rowsort
SELECT DISTINCT + ( - CASE + 37 WHEN - 23 THEN - 5 ELSE NULL END ) * 4
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2569
SELECT 3 DIV + 91 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2569
SELECT 3 / + 91 AS col0
----
0

query II rowsort
SELECT 38 + - + 22 AS col2, 26 AS col1
----
16
26

onlyif mysql # aggregate syntax: 
query II rowsort label-2571
SELECT COUNT( * ) + + COUNT( * ), + 4 + - - MAX( + 95 ) AS col0
----
2
99

skipif mysql # not compatible
query II rowsort label-2571
SELECT COUNT ( * ) + + COUNT ( * ), + 4 + - - MAX ( + 95 ) AS col0
----
2
99

query II rowsort
SELECT 48 * + 81 AS col1, 2
----
3888
2

onlyif mysql # aggregate syntax: 
query II rowsort label-2573
SELECT ALL - + 11 + COUNT( * ) + - 65, - 82 + - - COUNT( * ) AS col1
----
-75
-81

skipif mysql # not compatible
query II rowsort label-2573
SELECT ALL - + 11 + COUNT ( * ) + - 65, - 82 + - - COUNT ( * ) AS col1
----
-75
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-2574
SELECT DISTINCT - ( 5 ) + + - MAX( - 85 ) * - + 58 + - - COUNT( * ) AS col0
----
-4934

skipif mysql # not compatible
query I rowsort label-2574
SELECT DISTINCT - ( 5 ) + + - MAX ( - 85 ) * - + 58 + - - COUNT ( * ) AS col0
----
-4934

onlyif mysql # aggregate syntax: 
query I rowsort label-2575
SELECT DISTINCT - COUNT( * ) + 0 * 66 * - - 67 + + COALESCE ( - 69, + 40, + 61 ) AS col1
----
-70

skipif mysql # not compatible
query I rowsort label-2575
SELECT DISTINCT - COUNT ( * ) + 0 * 66 * - - 67 + + COALESCE ( - 69, + 40, + 61 ) AS col1
----
-70

onlyif mysql # DIV for integer division: 
query I rowsort label-2576
SELECT DISTINCT + COALESCE ( + 63, - - ( 7 ) - - + 56, - + 14 DIV - - COALESCE ( + 32, + 47 + - 6, 46 ) ) + 72 col2
----
135

skipif mysql # not compatible
query I rowsort label-2576
SELECT DISTINCT + COALESCE ( + 63, - - ( 7 ) - - + 56, - + 14 / - - COALESCE ( + 32, + 47 + - 6, 46 ) ) + 72 col2
----
135

query II rowsort
SELECT ALL - COALESCE ( 87, 30 ), - 11 * + 11 + 70 + - 63 AS col0
----
-87
-114

query I rowsort
SELECT ALL + 94 + - 50
----
44

query I rowsort
SELECT - COALESCE ( + 74, + 49, + - 50 )
----
-74

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2581
SELECT + 56 * NULLIF ( + - COUNT( * ), + 8 ) col2
----
-56

skipif mysql # not compatible
query I rowsort label-2581
SELECT + 56 * NULLIF ( + - COUNT ( * ), + 8 ) col2
----
-56

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

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

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

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

query I rowsort
SELECT ALL + 33 + 44 AS col1
----
77

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

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

query I rowsort
SELECT - 22 * - - 37
----
-814

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2587
SELECT ALL CAST( + 22 AS SIGNED ) * 77 AS col0, 90
----
1694
90

skipif mysql # not compatible
query II rowsort label-2587
SELECT ALL CAST ( + 22 AS INTEGER ) * 77 AS col0, 90
----
1694
90

query I rowsort
SELECT ALL 75 - + + 86 - + - 10 - 22 col2
----
-23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2589
SELECT ALL - CASE 62 WHEN + - 7 / + - 51 * + COUNT( * ) + + SUM( ALL COALESCE ( + 44, + 20 ) ) - + + 12 * - 33 * 41 * + - CAST( + - 24 AS DECIMAL ) + + 33 THEN + 83 WHEN - + 31 * NULLIF ( - - 27, + ( + - 21 ) + + + CAST( - - ( CASE + CAST( NULL AS SIGNED ) WHEN - ( - - ( + 0 ) ) / - 74 THEN - 56 ELSE - SUM( 81 ) + - - 70 - 49 * 30 * - 3 END ) AS SIGNED ) * - 19 - - COALESCE ( 67, 43 * - 48 ) ) + + 10 * + 28 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2589
SELECT ALL - CASE 62 WHEN + - 7 / + - 51 * + COUNT ( * ) + + SUM ( ALL COALESCE ( + 44, + 20 ) ) - + + 12 * - 33 * 41 * + - CAST ( + - 24 AS REAL ) + + 33 THEN + 83 WHEN - + 31 * NULLIF ( - - 27, + ( + - 21 ) + + + CAST ( - - ( CASE + CAST ( NULL AS INTEGER ) WHEN - ( - - ( + 0 ) ) / - 74 THEN - 56 ELSE - SUM ( 81 ) + - - 70 - 49 * 30 * - 3 END ) AS INTEGER ) * - 19 - - COALESCE ( 67, 43 * - 48 ) ) + + 10 * + 28 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2590
SELECT DISTINCT NULLIF ( - MAX( + ( + ( 43 ) ) ), 53 * - MIN( 0 ) + 15 - + NULLIF ( + - AVG ( DISTINCT - CAST( NULL AS SIGNED ) ), MAX( + 59 ) ) ) - + COALESCE ( 70, - 56 )
----
-113

skipif mysql # not compatible
query I rowsort label-2590
SELECT DISTINCT NULLIF ( - MAX ( + ( + ( 43 ) ) ), 53 * - MIN ( 0 ) + 15 - + NULLIF ( + - AVG ( DISTINCT - CAST ( NULL AS INTEGER ) ), MAX ( + 59 ) ) ) - + COALESCE ( 70, - 56 )
----
-113

onlyif mysql # aggregate syntax: 
query I rowsort label-2591
SELECT DISTINCT 37 * - 72 + + COUNT( * ) * - 88
----
-2752

skipif mysql # not compatible
query I rowsort label-2591
SELECT DISTINCT 37 * - 72 + + COUNT ( * ) * - 88
----
-2752

query II rowsort
SELECT + 13 AS col2, + 43
----
13
43

query I rowsort
SELECT 95 + 72 AS col1
----
167

query I rowsort
SELECT ( + 98 ) * 79 AS col2
----
7742

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2595
SELECT 78 + - 12 * 71 AS col1, + 35 DIV + - 18 * - ( + COUNT( * ) )
----
-774
1

skipif mysql # not compatible
query II rowsort label-2595
SELECT 78 + - 12 * 71 AS col1, + 35 / + - 18 * - ( + COUNT ( * ) )
----
-774
1

query I rowsort
SELECT 14 * - 51 AS col2
----
-714

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2597
SELECT + 25 AS col1, ( CASE 18 WHEN + - COUNT( * ) + - CAST( - + COUNT( * ) AS SIGNED ) / COUNT( * ) THEN + SUM( DISTINCT 29 ) END )
----
25
NULL

skipif mysql # not compatible
query II rowsort label-2597
SELECT + 25 AS col1, ( CASE 18 WHEN + - COUNT ( * ) + - CAST ( - + COUNT ( * ) AS INTEGER ) / COUNT ( * ) THEN + SUM ( DISTINCT 29 ) END )
----
25
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2598
SELECT 12 * - - MIN( - + 69 ) + - - 72 AS col1
----
-756

skipif mysql # not compatible
query I rowsort label-2598
SELECT 12 * - - MIN ( - + 69 ) + - - 72 AS col1
----
-756

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2599
SELECT ALL CASE - 3 WHEN - + CAST( NULL AS SIGNED ) THEN + COUNT( * ) + CASE - + 0 WHEN - COALESCE ( + - NULLIF ( - COUNT( * ), + + 83 ), - 66, - 69 + + ( + + 81 ), NULLIF ( + - 47, - 53 ) / - 84 + + COUNT( * ) * - 64 / - 59 ) THEN - COUNT( * ) + - - 72 + + 10 END WHEN - COUNT( * ) THEN - 18 ELSE - ( - + 19 ) + + + COUNT( * ) END * - + 4 - + 31 + - MIN( + + 48 ), - 52 AS col2
----
-159
-52

skipif mysql # not compatible
query II rowsort label-2599
SELECT ALL CASE - 3 WHEN - + CAST ( NULL AS INTEGER ) THEN + COUNT ( * ) + CASE - + 0 WHEN - COALESCE ( + - NULLIF ( - COUNT ( * ), + + 83 ), - 66, - 69 + + ( + + 81 ), NULLIF ( + - 47, - 53 ) / - 84 + + COUNT ( * ) * - 64 / - 59 ) THEN - COUNT ( * ) + - - 72 + + 10 END WHEN - COUNT ( * ) THEN - 18 ELSE - ( - + 19 ) + + + COUNT ( * ) END * - + 4 - + 31 + - MIN ( + + 48 ), - 52 AS col2
----
-159
-52

onlyif mysql # DIV for integer division: 
query I rowsort label-2600
SELECT ALL 87 DIV - 86
----
-1

skipif mysql # not compatible
query I rowsort label-2600
SELECT ALL 87 / - 86
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2601
SELECT ALL - MIN( ALL + CAST( NULL AS SIGNED ) ) * + - 54 AS col2, 38 + 83 DIV - NULLIF ( - 29, COUNT( * ) )
----
NULL
40

skipif mysql # not compatible
query II rowsort label-2601
SELECT ALL - MIN ( ALL + CAST ( NULL AS INTEGER ) ) * + - 54 AS col2, 38 + 83 / - NULLIF ( - 29, COUNT ( * ) )
----
NULL
40

onlyif mysql # aggregate syntax: 
query I rowsort label-2602
SELECT COUNT( * ) * - 86 * - 29 AS col0
----
2494

skipif mysql # not compatible
query I rowsort label-2602
SELECT COUNT ( * ) * - 86 * - 29 AS col0
----
2494

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

query I rowsort
SELECT ALL 16 * + - 86 AS col0
----
-1376

onlyif mysql # aggregate syntax: 
query I rowsort label-2605
SELECT MAX( + 51 ) * - 34
----
-1734

skipif mysql # not compatible
query I rowsort label-2605
SELECT MAX ( + 51 ) * - 34
----
-1734

query I rowsort
SELECT 29 * 18
----
522

onlyif mysql # aggregate syntax: 
query I rowsort label-2607
SELECT COUNT( * ) - + 98 + + 88 * + 2
----
79

skipif mysql # not compatible
query I rowsort label-2607
SELECT COUNT ( * ) - + 98 + + 88 * + 2
----
79

onlyif mysql # aggregate syntax: 
query II rowsort label-2608
SELECT - 99, - 59 * - AVG ( - 86 ) * MIN( DISTINCT 92 ) * + CASE 61 WHEN + COUNT( DISTINCT ( + 83 ) ) / + MIN( ALL + - 81 ) THEN NULL WHEN 88 THEN + - 20 ELSE NULL END AS col0
----
-99
NULL

skipif mysql # not compatible
query II rowsort label-2608
SELECT - 99, - 59 * - AVG ( - 86 ) * MIN ( DISTINCT 92 ) * + CASE 61 WHEN + COUNT ( DISTINCT ( + 83 ) ) / + MIN ( ALL + - 81 ) THEN NULL WHEN 88 THEN + - 20 ELSE NULL END AS col0
----
-99
NULL

query I rowsort
SELECT ALL - 86 + + 11
----
-75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2610
SELECT DISTINCT + COALESCE ( CAST( - - COUNT( DISTINCT + + 9 ) AS SIGNED ), + NULLIF ( + COUNT( * ), - 34 * - 3 ) ) + COUNT( * ) DIV 1
----
2

skipif mysql # not compatible
query I rowsort label-2610
SELECT DISTINCT + COALESCE ( CAST ( - - COUNT ( DISTINCT + + 9 ) AS INTEGER ), + NULLIF ( + COUNT ( * ), - 34 * - 3 ) ) + COUNT ( * ) / 1
----
2

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2612
SELECT 88, ( COUNT( * ) ) * + + 0 AS col2
----
88
0

skipif mysql # not compatible
query II rowsort label-2612
SELECT 88, ( COUNT ( * ) ) * + + 0 AS col2
----
88
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2613
SELECT ALL + 3 + + - COUNT( * ) + MIN( ALL + NULLIF ( - + 85, - 72 - 43 ) ) AS col0
----
-83

skipif mysql # not compatible
query I rowsort label-2613
SELECT ALL + 3 + + - COUNT ( * ) + MIN ( ALL + NULLIF ( - + 85, - 72 - 43 ) ) AS col0
----
-83

onlyif mysql # aggregate syntax: 
query II rowsort label-2614
SELECT + MIN( ALL - + ( - 56 ) ) + + 66 AS col0, 24 + + 22 AS col2
----
122
46

skipif mysql # not compatible
query II rowsort label-2614
SELECT + MIN ( ALL - + ( - 56 ) ) + + 66 AS col0, 24 + + 22 AS col2
----
122
46

onlyif mysql # DIV for integer division: 
query I rowsort label-2615
SELECT 93 DIV - 9 + + + 35 + - 69
----
-44

skipif mysql # not compatible
query I rowsort label-2615
SELECT 93 / - 9 + + + 35 + - 69
----
-44

query I rowsort
SELECT 23 * + 79 col0
----
1817

query I rowsort
SELECT DISTINCT + 20 * + - 52 AS col0
----
-1040

query II rowsort
SELECT ALL - 82, - 11 AS col0
----
-82
-11

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2620
SELECT + COALESCE ( + + 92, - 83, + + 0 ) * - 12 DIV + 12 AS col0
----
-92

skipif mysql # not compatible
query I rowsort label-2620
SELECT + COALESCE ( + + 92, - 83, + + 0 ) * - 12 / + 12 AS col0
----
-92

query I rowsort
SELECT DISTINCT + 68 - - 80
----
148

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2622
SELECT + 8 DIV - + COUNT( * ) + - 0 + - - 38 + 59 col2
----
89

skipif mysql # not compatible
query I rowsort label-2622
SELECT + 8 / - + COUNT ( * ) + - 0 + - - 38 + 59 col2
----
89

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2624
SELECT NULLIF ( - - 36, + - 71 * + COUNT( * ) * + + 60 + - AVG ( + 10 ) ) AS col2
----
36

skipif mysql # not compatible
query I rowsort label-2624
SELECT NULLIF ( - - 36, + - 71 * + COUNT ( * ) * + + 60 + - AVG ( + 10 ) ) AS col2
----
36

query I rowsort
SELECT 75 + - + 11 AS col2
----
64

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

skipif mysql # not compatible
query I rowsort label-2626
SELECT DISTINCT COUNT ( * ) * + 28 col0
----
28

query I rowsort
SELECT ALL + 62 * - + 67 AS col1
----
-4154

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2629
SELECT DISTINCT + COUNT( * ) * ( - 77 ) * - 22
----
1694

skipif mysql # not compatible
query I rowsort label-2629
SELECT DISTINCT + COUNT ( * ) * ( - 77 ) * - 22
----
1694

onlyif mysql # aggregate syntax: 
query I rowsort label-2630
SELECT MAX( - - 96 ) AS col1
----
96

skipif mysql # not compatible
query I rowsort label-2630
SELECT MAX ( - - 96 ) AS col1
----
96

query I rowsort
SELECT ALL NULLIF ( - 14, - + 86 ) * - - 51 * 8
----
-5712

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2632
SELECT - CAST( NULL AS SIGNED ) / - 74 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2632
SELECT - CAST ( NULL AS INTEGER ) / - 74 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2633
SELECT + 28 DIV - 75 * - SUM( DISTINCT - 92 ), - 82 AS col0
----
0
-82

skipif mysql # not compatible
query II rowsort label-2633
SELECT + 28 / - 75 * - SUM ( DISTINCT - 92 ), - 82 AS col0
----
0
-82

query I rowsort
SELECT + NULLIF ( 14, COALESCE ( - 73, 48 ) ) AS col1
----
14

onlyif mysql # aggregate syntax: 
query II rowsort label-2635
SELECT ALL - COUNT( * ) * + + 66 + + MAX( + 2 ) * + 20, + COUNT( * ) AS col0
----
-26
1

skipif mysql # not compatible
query II rowsort label-2635
SELECT ALL - COUNT ( * ) * + + 66 + + MAX ( + 2 ) * + 20, + COUNT ( * ) AS col0
----
-26
1

onlyif mysql # aggregate syntax: 
query II rowsort label-2636
SELECT + 16 + - COUNT( * ), 58 AS col1
----
15
58

skipif mysql # not compatible
query II rowsort label-2636
SELECT + 16 + - COUNT ( * ), 58 AS col1
----
15
58

onlyif mysql # aggregate syntax: 
query I rowsort label-2637
SELECT + 92 + + + 80 * + + COUNT( * )
----
172

skipif mysql # not compatible
query I rowsort label-2637
SELECT + 92 + + + 80 * + + COUNT ( * )
----
172

onlyif mysql # aggregate syntax: 
query I rowsort label-2638
SELECT ALL MIN( DISTINCT - - 20 ) + + COUNT( * )
----
21

skipif mysql # not compatible
query I rowsort label-2638
SELECT ALL MIN ( DISTINCT - - 20 ) + + COUNT ( * )
----
21

query I rowsort
SELECT DISTINCT 33 + + 85
----
118

onlyif mysql # aggregate syntax: 
query I rowsort label-2640
SELECT ALL 27 + - 15 - + + MIN( - + 97 ) + + 72 * + + 96 * + COUNT( * )
----
7021

skipif mysql # not compatible
query I rowsort label-2640
SELECT ALL 27 + - 15 - + + MIN ( - + 97 ) + + 72 * + + 96 * + COUNT ( * )
----
7021

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2642
SELECT ALL 94 - + + 39, COUNT( * ) col2
----
55
1

skipif mysql # not compatible
query II rowsort label-2642
SELECT ALL 94 - + + 39, COUNT ( * ) col2
----
55
1

query II rowsort
SELECT - ( - 2 ) AS col0, 40
----
2
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2644
SELECT - 38 + + - CAST( - - COUNT( * ) AS SIGNED ) * - ( - 99 )
----
-137

skipif mysql # not compatible
query I rowsort label-2644
SELECT - 38 + + - CAST ( - - COUNT ( * ) AS INTEGER ) * - ( - 99 )
----
-137

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2645
SELECT + - CAST( - 48 AS SIGNED ) * + 76 + 64 - - CAST( NULL AS SIGNED ) * + 60
----
NULL

skipif mysql # not compatible
query I rowsort label-2645
SELECT + - CAST ( - 48 AS INTEGER ) * + 76 + 64 - - CAST ( NULL AS INTEGER ) * + 60
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2646
SELECT - - 80 + + 39 + + NULLIF ( - - 22, + - SUM( 75 ) ) + + 66 * + + 1 AS col1
----
207

skipif mysql # not compatible
query I rowsort label-2646
SELECT - - 80 + + 39 + + NULLIF ( - - 22, + - SUM ( 75 ) ) + + 66 * + + 1 AS col1
----
207

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2647
SELECT DISTINCT + - 26 DIV COUNT( * ) * - 31
----
806

skipif mysql # not compatible
query I rowsort label-2647
SELECT DISTINCT + - 26 / COUNT ( * ) * - 31
----
806

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

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

query I rowsort
SELECT ALL - - 84 * - 55 * - + 90 col2
----
415800

query I rowsort
SELECT - + 9 - - 88 * + + 13
----
1135

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

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

query I rowsort
SELECT DISTINCT 12 * + 67 * + + 51 AS col1
----
41004

onlyif mysql # aggregate syntax: 
query II rowsort label-2653
SELECT - ( + 87 ) * COUNT( * ) col0, - 66 + - 1 * 77 AS col0
----
-87
-143

skipif mysql # not compatible
query II rowsort label-2653
SELECT - ( + 87 ) * COUNT ( * ) col0, - 66 + - 1 * 77 AS col0
----
-87
-143

query I rowsort
SELECT DISTINCT + 76 * - - 21
----
1596

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2655
SELECT ALL + COUNT( * ) DIV + + 73 * 64 + - - 46 AS col2
----
46

skipif mysql # not compatible
query I rowsort label-2655
SELECT ALL + COUNT ( * ) / + + 73 * 64 + - - 46 AS col2
----
46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2656
SELECT ALL - 48 DIV 82 * + COUNT( * ) + + - 30 * - SUM( + - 25 ) AS col0
----
-750

skipif mysql # not compatible
query I rowsort label-2656
SELECT ALL - 48 / 82 * + COUNT ( * ) + + - 30 * - SUM ( + - 25 ) AS col0
----
-750

onlyif mysql # aggregate syntax: 
query I rowsort label-2657
SELECT - 34 - + - 72 + COUNT( ALL - 58 )
----
39

skipif mysql # not compatible
query I rowsort label-2657
SELECT - 34 - + - 72 + COUNT ( ALL - 58 )
----
39

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2659
SELECT DISTINCT + 87 DIV COUNT( 42 ) + 58 * - 64 * 9 + - COUNT( * ) col2
----
-33322

skipif mysql # not compatible
query I rowsort label-2659
SELECT DISTINCT + 87 / COUNT ( 42 ) + 58 * - 64 * 9 + - COUNT ( * ) col2
----
-33322

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

query I rowsort
SELECT - 16 * + + 72
----
-1152

query I rowsort
SELECT - 75 + + 82 AS col2
----
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2663
SELECT + NULLIF ( + CASE - CAST( NULL AS SIGNED ) WHEN + ( - 36 ) - + + 25 THEN NULL WHEN + 91 THEN + 77 - + 80 WHEN + 70 + + + 6 THEN NULL ELSE + 11 END, - 0 ) AS col1
----
11

skipif mysql # not compatible
query I rowsort label-2663
SELECT + NULLIF ( + CASE - CAST ( NULL AS INTEGER ) WHEN + ( - 36 ) - + + 25 THEN NULL WHEN + 91 THEN + 77 - + 80 WHEN + 70 + + + 6 THEN NULL ELSE + 11 END, - 0 ) AS col1
----
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2664
SELECT ALL + COUNT( DISTINCT CAST( + - 75 AS SIGNED ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2664
SELECT ALL + COUNT ( DISTINCT CAST ( + - 75 AS INTEGER ) ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2665
SELECT ALL + 77 * - + COUNT( * ) + + - 42 + - MIN( 79 ) + 13 * + + COUNT( * )
----
-185

skipif mysql # not compatible
query I rowsort label-2665
SELECT ALL + 77 * - + COUNT ( * ) + + - 42 + - MIN ( 79 ) + 13 * + + COUNT ( * )
----
-185

query II rowsort
SELECT ALL + 39 * 17 * + 44 + + 77 + + + 83 AS col2, 71
----
29332
71

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2668
SELECT + 21 * - 41 * + COALESCE ( + + 54, - + COUNT( * ) + + - ( + COUNT( * ) ) )
----
-46494

skipif mysql # not compatible
query I rowsort label-2668
SELECT + 21 * - 41 * + COALESCE ( + + 54, - + COUNT ( * ) + + - ( + COUNT ( * ) ) )
----
-46494

onlyif mysql # aggregate syntax: 
query I rowsort label-2669
SELECT ALL - 96 * 42 * - ( + NULLIF ( COUNT( * ), + 90 ) ) AS col1
----
4032

skipif mysql # not compatible
query I rowsort label-2669
SELECT ALL - 96 * 42 * - ( + NULLIF ( COUNT ( * ), + 90 ) ) AS col1
----
4032

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2670
SELECT - COALESCE ( + - COUNT( * ), + 75 DIV 30 DIV ( CAST( NULL AS SIGNED ) ) + - - SUM( + + 72 ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2670
SELECT - COALESCE ( + - COUNT ( * ), + 75 / 30 / ( CAST ( NULL AS INTEGER ) ) + - - SUM ( + + 72 ) ) AS col2
----
1

query I rowsort
SELECT + 4 * + 35 - - 30 + + 36 AS col2
----
206

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2672
SELECT ALL NULLIF ( + - COUNT( * ), 80 * 1 + + 11 ) DIV MIN( DISTINCT - 34 ) + - 74 AS col0, + COUNT( * ) col0
----
-74
1

skipif mysql # not compatible
query II rowsort label-2672
SELECT ALL NULLIF ( + - COUNT ( * ), 80 * 1 + + 11 ) / MIN ( DISTINCT - 34 ) + - 74 AS col0, + COUNT ( * ) col0
----
-74
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2673
SELECT ALL + 71 DIV - 62
----
-1

skipif mysql # not compatible
query I rowsort label-2673
SELECT ALL + 71 / - 62
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2674
SELECT ALL COUNT( * ) * - - 49 AS col2
----
49

skipif mysql # not compatible
query I rowsort label-2674
SELECT ALL COUNT ( * ) * - - 49 AS col2
----
49

onlyif mysql # DIV for integer division: 
query I rowsort label-2675
SELECT ALL - 43 DIV - 7
----
6

skipif mysql # not compatible
query I rowsort label-2675
SELECT ALL - 43 / - 7
----
6

query I rowsort
SELECT + 11 - - - 27
----
-16

query I rowsort
SELECT ALL + 63 * + - 8
----
-504

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

skipif mysql # not compatible
query I rowsort label-2678
SELECT - ( + MIN ( - 12 ) )
----
12

query I rowsort
SELECT - NULLIF ( - 24, - + 36 )
----
24

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2680
SELECT ALL + 19 * 88 + - 50 + 78 DIV + 14 AS col0, CAST( NULL AS SIGNED ) * - + 15 col2
----
1627
NULL

skipif mysql # not compatible
query II rowsort label-2680
SELECT ALL + 19 * 88 + - 50 + 78 / + 14 AS col0, CAST ( NULL AS INTEGER ) * - + 15 col2
----
1627
NULL

query I rowsort
SELECT + + 13 + - ( - - 76 )
----
-63

query I rowsort
SELECT + 91 + 58 col0
----
149

query I rowsort
SELECT 1 - + 87
----
-86

query II rowsort
SELECT - 64 AS col0, 73 + - 39 * 19 col1
----
-64
-668

onlyif mysql # DIV for integer division: 
query I rowsort label-2685
SELECT 94 DIV + 99 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2685
SELECT 94 / + 99 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2686
SELECT CASE - - 21 WHEN CAST( + + 94 AS SIGNED ) + 53 THEN NULL ELSE CAST( NULL AS SIGNED ) * COUNT( * ) / + 41 END + - 73 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2686
SELECT CASE - - 21 WHEN CAST ( + + 94 AS INTEGER ) + 53 THEN NULL ELSE CAST ( NULL AS INTEGER ) * COUNT ( * ) / + 41 END + - 73 AS col1
----
NULL

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

query II rowsort
SELECT ALL 66, + 74 AS col1
----
66
74

onlyif mysql # aggregate syntax: 
query II rowsort label-2689
SELECT ALL - 98 + + - 40 AS col2, - 0 * - COUNT( * )
----
-138
0

skipif mysql # not compatible
query II rowsort label-2689
SELECT ALL - 98 + + - 40 AS col2, - 0 * - COUNT ( * )
----
-138
0

query I rowsort
SELECT 13 + 62
----
75

query I rowsort
SELECT DISTINCT 58 + - - 53 AS col2
----
111

query II rowsort
SELECT 79 AS col0, ( + 95 )
----
79
95

query II rowsort
SELECT + 77, + 81 AS col1
----
77
81

onlyif mysql # aggregate syntax: 
query I rowsort label-2694
SELECT ALL + 53 + - COUNT( * )
----
52

skipif mysql # not compatible
query I rowsort label-2694
SELECT ALL + 53 + - COUNT ( * )
----
52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2695
SELECT ALL - ( 8 ) + - + 76 + - 78 * + - CAST( NULL AS SIGNED ) / 22 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2695
SELECT ALL - ( 8 ) + - + 76 + - 78 * + - CAST ( NULL AS INTEGER ) / 22 AS col0
----
NULL

query I rowsort
SELECT 3 * + 81
----
243

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2697
SELECT ALL + CAST( NULL AS SIGNED ) * ( - + 82 ) * ( - - 26 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2697
SELECT ALL + CAST ( NULL AS INTEGER ) * ( - + 82 ) * ( - - 26 )
----
NULL

query II rowsort
SELECT + 87, 48 AS col1
----
87
48

query I rowsort
SELECT ALL 57 + - + 90 col1
----
-33

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2701
SELECT ALL - CAST( 61 AS SIGNED ) + 78 * - 78 * 52 * + COUNT( * ) col1
----
-316429

skipif mysql # not compatible
query I rowsort label-2701
SELECT ALL - CAST ( 61 AS INTEGER ) + 78 * - 78 * 52 * + COUNT ( * ) col1
----
-316429

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2703
SELECT ALL + COUNT( * ) * - - NULLIF ( 47, 78 ) * + - 59 AS col1
----
-2773

skipif mysql # not compatible
query I rowsort label-2703
SELECT ALL + COUNT ( * ) * - - NULLIF ( 47, 78 ) * + - 59 AS col1
----
-2773

onlyif mysql # aggregate syntax: 
query I rowsort label-2704
SELECT 44 - ( - 48 ) + - + MIN( ALL 66 ) * + + 91 * + 22 + + 24 AS col1
----
-132016

skipif mysql # not compatible
query I rowsort label-2704
SELECT 44 - ( - 48 ) + - + MIN ( ALL 66 ) * + + 91 * + 22 + + 24 AS col1
----
-132016

query II rowsort
SELECT DISTINCT - 86 AS col0, - 38 AS col0
----
-86
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-2706
SELECT ALL + COUNT( 19 ) - + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-2706
SELECT ALL + COUNT ( 19 ) - + COUNT ( * )
----
0

query II rowsort
SELECT + 8 AS col2, + 26 AS col1
----
8
26

onlyif mysql # aggregate syntax: 
query I rowsort label-2708
SELECT ALL - - MAX( DISTINCT + 73 )
----
73

skipif mysql # not compatible
query I rowsort label-2708
SELECT ALL - - MAX ( DISTINCT + 73 )
----
73

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2711
SELECT + ( - 0 ) AS col2, CAST( COUNT( * ) AS SIGNED )
----
0
1

skipif mysql # not compatible
query II rowsort label-2711
SELECT + ( - 0 ) AS col2, CAST ( COUNT ( * ) AS INTEGER )
----
0
1

query I rowsort
SELECT + - 46 * - + 62 - - 57 + - - 44 - - 65 * 77 + - 54 * + 12 AS col1
----
7310

query I rowsort
SELECT 91 * ( + + 94 ) - + 23 * + - 12
----
8830

onlyif mysql # aggregate syntax: 
query II rowsort label-2714
SELECT ALL - - ( - MIN( + 60 ) ) * + 33 col0, 7 * - 58 AS col1
----
-1980
-406

skipif mysql # not compatible
query II rowsort label-2714
SELECT ALL - - ( - MIN ( + 60 ) ) * + 33 col0, 7 * - 58 AS col1
----
-1980
-406

query I rowsort
SELECT + + 24 col2
----
24

query I rowsort
SELECT ALL - + 12 col2
----
-12

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

query II rowsort
SELECT DISTINCT - 88, + 75 AS col0
----
-88
75

onlyif mysql # aggregate syntax: 
query I rowsort label-2719
SELECT + 22 + + COUNT( * ) + - + CASE + 15 WHEN 34 THEN - + 67 + 5 * + 77 + + 15 + + ( - + 16 ) + + - 13 + 78 WHEN - 98 THEN - 69 END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2719
SELECT + 22 + + COUNT ( * ) + - + CASE + 15 WHEN 34 THEN - + 67 + 5 * + 77 + + 15 + + ( - + 16 ) + + - 13 + 78 WHEN - 98 THEN - 69 END col2
----
NULL

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

query I rowsort
SELECT - ( - + 52 ) + 10 AS col1
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-2722
SELECT ALL 19 + - MAX( ALL 11 ) + 20 AS col2
----
28

skipif mysql # not compatible
query I rowsort label-2722
SELECT ALL 19 + - MAX ( ALL 11 ) + 20 AS col2
----
28

query I rowsort
SELECT ALL - 7 + 26
----
19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2724
SELECT DISTINCT 46 * 62 * + 6 * - CAST( NULL AS SIGNED ) * 44 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2724
SELECT DISTINCT 46 * 62 * + 6 * - CAST ( NULL AS INTEGER ) * 44 AS col1
----
NULL

query I rowsort
SELECT ALL 23 + - 28 col0
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-2726
SELECT COALESCE ( 95, + 41 ) + + MIN( 20 ) * - COUNT( * ) * - - 90 + - 46 AS col0
----
-1751

skipif mysql # not compatible
query I rowsort label-2726
SELECT COALESCE ( 95, + 41 ) + + MIN ( 20 ) * - COUNT ( * ) * - - 90 + - 46 AS col0
----
-1751

onlyif mysql # aggregate syntax: 
query II rowsort label-2727
SELECT ALL 17 + 48 AS col1, ( COUNT( * ) ) * + MIN( 51 ) * + 81 * - - 74 * - COUNT( * ) + - + 29 + - COALESCE ( - COALESCE ( + 11, + 78, + + 10 ), - 15 * 97 + + 20 - 61 * 1 + - - 28 ) + - + 74 + + 77 - COUNT( * ) + 30
----
65
-305680

skipif mysql # not compatible
query II rowsort label-2727
SELECT ALL 17 + 48 AS col1, ( COUNT ( * ) ) * + MIN ( 51 ) * + 81 * - - 74 * - COUNT ( * ) + - + 29 + - COALESCE ( - COALESCE ( + 11, + 78, + + 10 ), - 15 * 97 + + 20 - 61 * 1 + - - 28 ) + - + 74 + + 77 - COUNT ( * ) + 30
----
65
-305680

onlyif mysql # aggregate syntax: 
query I rowsort label-2728
SELECT - MAX( - 54 )
----
54

skipif mysql # not compatible
query I rowsort label-2728
SELECT - MAX ( - 54 )
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-2729
SELECT MAX( - 24 ) AS col2
----
-24

skipif mysql # not compatible
query I rowsort label-2729
SELECT MAX ( - 24 ) AS col2
----
-24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2730
SELECT DISTINCT - ( + - 2 ) * MAX( DISTINCT - CAST( - + 42 AS SIGNED ) ) + - - 70 DIV - MIN( - 73 ) + + - 45 * - COUNT( * )
----
129

skipif mysql # not compatible
query I rowsort label-2730
SELECT DISTINCT - ( + - 2 ) * MAX ( DISTINCT - CAST ( - + 42 AS INTEGER ) ) + - - 70 / - MIN ( - 73 ) + + - 45 * - COUNT ( * )
----
129

query II rowsort
SELECT DISTINCT 16 * + 59 AS col0, 53 AS col1
----
944
53

onlyif mysql # aggregate syntax: 
query II rowsort label-2732
SELECT COUNT( - - 57 ) AS col2, - 25
----
1
-25

skipif mysql # not compatible
query II rowsort label-2732
SELECT COUNT ( - - 57 ) AS col2, - 25
----
1
-25

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2734
SELECT + MAX( 85 ) AS col2, 92
----
85
92

skipif mysql # not compatible
query II rowsort label-2734
SELECT + MAX ( 85 ) AS col2, 92
----
85
92

query I rowsort
SELECT DISTINCT 38 * + - 90
----
-3420

onlyif mysql # DIV for integer division: 
query I rowsort label-2736
SELECT - 4 DIV 56
----
0

skipif mysql # not compatible
query I rowsort label-2736
SELECT - 4 / 56
----
0

query I rowsort
SELECT ALL + 4 * - 55 + ( + + 48 ) AS col1
----
-172

query I rowsort
SELECT + 43 * - 59 AS col2
----
-2537

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2739
SELECT ALL + - CAST( NULL AS SIGNED ) * + 87 * + + 83 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2739
SELECT ALL + - CAST ( NULL AS INTEGER ) * + 87 * + + 83 col0
----
NULL

query I rowsort
SELECT DISTINCT 22 * - 32
----
-704

onlyif mysql # DIV for integer division: 
query II rowsort label-2741
SELECT + 70 DIV - 24 AS col1, CASE 57 WHEN - - 2 THEN + 25 ELSE - 46 * ( + 4 ) DIV 37 - - 65 END + 53 AS col0
----
-2
114

skipif mysql # not compatible
query II rowsort label-2741
SELECT + 70 / - 24 AS col1, CASE 57 WHEN - - 2 THEN + 25 ELSE - 46 * ( + 4 ) / 37 - - 65 END + 53 AS col0
----
-2
114

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

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

query I rowsort
SELECT DISTINCT ( + 11 ) * - 69
----
-759

query I rowsort
SELECT 72 * + 93 + 29 + + 2
----
6727

query I rowsort
SELECT ALL + + 78 + 68 * - 41 + + - 50
----
-2760

onlyif mysql # aggregate syntax: 
query II rowsort label-2746
SELECT DISTINCT - - 15 + + 84 AS col0, - ( + - 72 ) * - 47 * COALESCE ( + 37, MAX( DISTINCT 20 ) )
----
99
-125208

skipif mysql # not compatible
query II rowsort label-2746
SELECT DISTINCT - - 15 + + 84 AS col0, - ( + - 72 ) * - 47 * COALESCE ( + 37, MAX ( DISTINCT 20 ) )
----
99
-125208

query I rowsort
SELECT ALL + 11 + + 44 * + - 14 * + + 98 AS col0
----
-60357

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2748
SELECT - - CAST( NULL AS SIGNED ) * - - 20 + + - 27 AS col2, 60
----
NULL
60

skipif mysql # not compatible
query II rowsort label-2748
SELECT - - CAST ( NULL AS INTEGER ) * - - 20 + + - 27 AS col2, 60
----
NULL
60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2749
SELECT ALL + + 65 + - 70 + + 21 + - 72 DIV - + 53 + + COUNT( + 52 ) * 2 * + 10 - - NULLIF ( 33, - 98 ) * 27 * - 14 + - COUNT( * )
----
-12438

skipif mysql # not compatible
query I rowsort label-2749
SELECT ALL + + 65 + - 70 + + 21 + - 72 / - + 53 + + COUNT ( + 52 ) * 2 * + 10 - - NULLIF ( 33, - 98 ) * 27 * - 14 + - COUNT ( * )
----
-12438

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

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

query I rowsort
SELECT DISTINCT 35 * + ( + 19 ) AS col1
----
665

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2752
SELECT DISTINCT + ( + - COALESCE ( - - 93, + - 4 + 77 DIV + COUNT( * ) - 54, - MIN( DISTINCT 59 ) * + 95 ) ) + 59 AS col0
----
-34

skipif mysql # not compatible
query I rowsort label-2752
SELECT DISTINCT + ( + - COALESCE ( - - 93, + - 4 + 77 / + COUNT ( * ) - 54, - MIN ( DISTINCT 59 ) * + 95 ) ) + 59 AS col0
----
-34

query I rowsort
SELECT - 11 - - 85
----
74

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2755
SELECT - 99 + + SUM( + + 76 ) - - 13 * - - 12 * + COUNT( * ) AS col1
----
133

skipif mysql # not compatible
query I rowsort label-2755
SELECT - 99 + + SUM ( + + 76 ) - - 13 * - - 12 * + COUNT ( * ) AS col1
----
133

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2757
SELECT + COUNT( ALL ( + 72 ) ) - 8 - - ( + 1 ) * + COUNT( * ) DIV + + 12 AS col0
----
-7

skipif mysql # not compatible
query I rowsort label-2757
SELECT + COUNT ( ALL ( + 72 ) ) - 8 - - ( + 1 ) * + COUNT ( * ) / + + 12 AS col0
----
-7

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

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

query I rowsort
SELECT ALL COALESCE ( - 66, 10 )
----
-66

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

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

query I rowsort
SELECT ALL 57 * ( - ( - 74 ) )
----
4218

onlyif mysql # aggregate syntax: 
query I rowsort label-2762
SELECT DISTINCT + CASE - 63 WHEN - + 18 THEN NULL WHEN - CASE - 99 WHEN CASE - - SUM( - + 15 ) WHEN 0 THEN + + 91 + - + 42 ELSE NULL END * - 75 + - COUNT( * ) THEN - 39 WHEN + - MIN( + - 12 ) * + + 44 THEN NULL END THEN NULL ELSE + SUM( ALL 49 ) END - 99 * - + 44 + 42
----
4447

skipif mysql # not compatible
query I rowsort label-2762
SELECT DISTINCT + CASE - 63 WHEN - + 18 THEN NULL WHEN - CASE - 99 WHEN CASE - - SUM ( - + 15 ) WHEN 0 THEN + + 91 + - + 42 ELSE NULL END * - 75 + - COUNT ( * ) THEN - 39 WHEN + - MIN ( + - 12 ) * + + 44 THEN NULL END THEN NULL ELSE + SUM ( ALL 49 ) END - 99 * - + 44 + 42
----
4447

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2763
SELECT ( - CASE 10 WHEN + 95 DIV - COUNT( * ) * - 77 * ( CASE WHEN NOT NULL IS NULL THEN + 96 END ) THEN - + 81 + + ( - 89 ) WHEN + ( + COUNT( * ) ) * ( + - NULLIF ( - 55, 62 ) ) + - CAST( + 73 AS SIGNED ) THEN + CAST( + 56 AS SIGNED ) + + 70 ELSE NULL END ) AS col1, 20 DIV 21
----
NULL
0

skipif mysql # not compatible
query II rowsort label-2763
SELECT ( - CASE 10 WHEN + 95 / - COUNT ( * ) * - 77 * ( CASE WHEN NOT NULL IS NULL THEN + 96 END ) THEN - + 81 + + ( - 89 ) WHEN + ( + COUNT ( * ) ) * ( + - NULLIF ( - 55, 62 ) ) + - CAST ( + 73 AS INTEGER ) THEN + CAST ( + 56 AS INTEGER ) + + 70 ELSE NULL END ) AS col1, 20 / 21
----
NULL
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2764
SELECT + CAST( NULL AS SIGNED ) / - - 33 + 62 + 71 + + + 69 + + 47 + + 55 * - ( 0 ) + - ( COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2764
SELECT + CAST ( NULL AS INTEGER ) / - - 33 + 62 + 71 + + + 69 + + 47 + + 55 * - ( 0 ) + - ( COUNT ( * ) )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2765
SELECT ALL - 46 * + 24 - - COUNT( * ) AS col0, 30 * 80 AS col1
----
-1103
2400

skipif mysql # not compatible
query II rowsort label-2765
SELECT ALL - 46 * + 24 - - COUNT ( * ) AS col0, 30 * 80 AS col1
----
-1103
2400

query I rowsort
SELECT + 86 * 79
----
6794

onlyif mysql # aggregate syntax: 
query I rowsort label-2767
SELECT ALL 97 * + + MIN( DISTINCT + 83 ) AS col1
----
8051

skipif mysql # not compatible
query I rowsort label-2767
SELECT ALL 97 * + + MIN ( DISTINCT + 83 ) AS col1
----
8051

query I rowsort
SELECT + 3 + - 58
----
-55

query II rowsort
SELECT ALL + 18 AS col1, ( - ( - 7 ) ) AS col2
----
18
7

onlyif mysql # aggregate syntax: 
query I rowsort label-2770
SELECT + - 53 * - COUNT( * ) * + 98 + 64
----
5258

skipif mysql # not compatible
query I rowsort label-2770
SELECT + - 53 * - COUNT ( * ) * + 98 + 64
----
5258

query I rowsort
SELECT + 64 + 30 * + + 95 col1
----
2914

query I rowsort
SELECT + + 94 * 26 + 32 + 0 AS col1
----
2476

onlyif mysql # aggregate syntax: 
query I rowsort label-2773
SELECT + - 1 + + COUNT( ALL + 66 )
----
0

skipif mysql # not compatible
query I rowsort label-2773
SELECT + - 1 + + COUNT ( ALL + 66 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2774
SELECT + 96 * - NULLIF ( - 72, 45 - CAST( NULL AS DECIMAL ) ) * - + 9 * ( CASE + COALESCE ( 62, 85 ) WHEN + 86 THEN - 63 / - + 90 * COUNT( * ) - 47 + + COUNT( * ) / + 18 + - 88 + 52 * + 14 WHEN + 69 THEN NULL ELSE NULL END ) + 74 - 14 * - - CASE - + NULLIF ( - MAX( 78 ), - 90 ) WHEN COALESCE ( 72, + 23 + + - 38, + ( - 99 ) * 78 * 79 + COUNT( DISTINCT - 81 ) * 49 * - - 88 * - 50 ) * - COUNT( * ) THEN - 32 * - COUNT( * ) + - 66 * 17 WHEN 75 THEN NULL ELSE NULL END - - 90
----
NULL

skipif mysql # not compatible
query I rowsort label-2774
SELECT + 96 * - NULLIF ( - 72, 45 - CAST ( NULL AS REAL ) ) * - + 9 * ( CASE + COALESCE ( 62, 85 ) WHEN + 86 THEN - 63 / - + 90 * COUNT ( * ) - 47 + + COUNT ( * ) / + 18 + - 88 + 52 * + 14 WHEN + 69 THEN NULL ELSE NULL END ) + 74 - 14 * - - CASE - + NULLIF ( - MAX ( 78 ), - 90 ) WHEN COALESCE ( 72, + 23 + + - 38, + ( - 99 ) * 78 * 79 + COUNT ( DISTINCT - 81 ) * 49 * - - 88 * - 50 ) * - COUNT ( * ) THEN - 32 * - COUNT ( * ) + - 66 * 17 WHEN 75 THEN NULL ELSE NULL END - - 90
----
NULL

query I rowsort
SELECT + + 26 + + + 93 + - + 6
----
113

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2776
SELECT - 9 * COUNT( * ) + - CAST( 56 AS SIGNED ) - - + 43 + ( CAST( + - 4 AS SIGNED ) ) * + + 42 * - 61 * + SUM( ALL - 51 )
----
-522670

skipif mysql # not compatible
query I rowsort label-2776
SELECT - 9 * COUNT ( * ) + - CAST ( 56 AS INTEGER ) - - + 43 + ( CAST ( + - 4 AS INTEGER ) ) * + + 42 * - 61 * + SUM ( ALL - 51 )
----
-522670

onlyif mysql # aggregate syntax: 
query II rowsort label-2777
SELECT ALL + + 18 AS col0, 73 + COUNT( ALL 32 )
----
18
74

skipif mysql # not compatible
query II rowsort label-2777
SELECT ALL + + 18 AS col0, 73 + COUNT ( ALL 32 )
----
18
74

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2778
SELECT ALL + - 78 * ( - - 27 ) DIV COUNT( * ) + - 29 + + SUM( DISTINCT + ( - 82 ) ) + - COUNT( * ) DIV + 81
----
-2217

skipif mysql # not compatible
query I rowsort label-2778
SELECT ALL + - 78 * ( - - 27 ) / COUNT ( * ) + - 29 + + SUM ( DISTINCT + ( - 82 ) ) + - COUNT ( * ) / + 81
----
-2217

onlyif mysql # aggregate syntax: 
query II rowsort label-2779
SELECT + + 41 AS col2, - ( NULLIF ( + 79, COUNT( 46 ) ) ) AS col1
----
41
-79

skipif mysql # not compatible
query II rowsort label-2779
SELECT + + 41 AS col2, - ( NULLIF ( + 79, COUNT ( 46 ) ) ) AS col1
----
41
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-2780
SELECT + MIN( DISTINCT - - 69 ) col2
----
69

skipif mysql # not compatible
query I rowsort label-2780
SELECT + MIN ( DISTINCT - - 69 ) col2
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-2781
SELECT ALL - 94 * + 52 + - - ( - COUNT( * ) ) + + ( - + 95 ) + 99 AS col0
----
-4885

skipif mysql # not compatible
query I rowsort label-2781
SELECT ALL - 94 * + 52 + - - ( - COUNT ( * ) ) + + ( - + 95 ) + 99 AS col0
----
-4885

query I rowsort
SELECT - + 79 * + ( ( - - 68 ) ) + + - 5 AS col1
----
-5377

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

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

query I rowsort
SELECT - NULLIF ( 67, 2 ) AS col0
----
-67

query I rowsort
SELECT - 7 + + + 59
----
52

query II rowsort
SELECT DISTINCT - 38 AS col2, + 88 AS col0
----
-38
88

query I rowsort
SELECT DISTINCT COALESCE ( + 95, + 73 + 48 )
----
95

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2790
SELECT DISTINCT + 86 - + MAX( ALL 5 ) AS col2
----
81

skipif mysql # not compatible
query I rowsort label-2790
SELECT DISTINCT + 86 - + MAX ( ALL 5 ) AS col2
----
81

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-2791
SELECT DISTINCT MIN( + CAST( NULL AS DECIMAL ) ) AS col0, 71 AS col0
----
NULL
71

skipif mysql # not compatible
query II rowsort label-2791
SELECT DISTINCT MIN ( + CAST ( NULL AS REAL ) ) AS col0, 71 AS col0
----
NULL
71

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

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

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

query I rowsort
SELECT - 69 * - 48 * - 16
----
-52992

onlyif mysql # aggregate syntax: 
query I rowsort label-2795
SELECT ALL COALESCE ( + COALESCE ( - 82, + COUNT( * ) ), + 8 )
----
-82

skipif mysql # not compatible
query I rowsort label-2795
SELECT ALL COALESCE ( + COALESCE ( - 82, + COUNT ( * ) ), + 8 )
----
-82

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

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

query I rowsort
SELECT ALL + 68 * + 5 AS col0
----
340

query II rowsort
SELECT - 34 * - 92, 15 AS col2
----
3128
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2799
SELECT DISTINCT + ( - + 92 ) * + ( 37 ) + - 85 + + 45 * - - 66, 34 * + + CAST( MAX( DISTINCT + 16 ) AS SIGNED ) AS col1
----
-519
544

skipif mysql # not compatible
query II rowsort label-2799
SELECT DISTINCT + ( - + 92 ) * + ( 37 ) + - 85 + + 45 * - - 66, 34 * + + CAST ( MAX ( DISTINCT + 16 ) AS INTEGER ) AS col1
----
-519
544

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

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

query II rowsort
SELECT - 62 - 91, + 97 AS col1
----
-153
97

query I rowsort
SELECT ALL ( ( 65 ) ) AS col1
----
65

query I rowsort
SELECT DISTINCT - 51 * - 16 AS col0
----
816

onlyif mysql # DIV for integer division: 
query I rowsort label-2804
SELECT ALL 50 DIV + 65 * + + 74 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2804
SELECT ALL 50 / + 65 * + + 74 AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2805
SELECT - 56 DIV - - 66 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2805
SELECT - 56 / - - 66 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2806
SELECT DISTINCT 95 DIV CAST( + + 23 AS SIGNED ) + 27 DIV ( COUNT( * ) ) AS col0
----
31

skipif mysql # not compatible
query I rowsort label-2806
SELECT DISTINCT 95 / CAST ( + + 23 AS INTEGER ) + 27 / ( COUNT ( * ) ) AS col0
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-2807
SELECT ALL - 27 / + - CASE - 43 WHEN + - 21 * + - SUM( DISTINCT + 93 ) THEN + + 63 * ( - COUNT( * ) ) END + 7 + 53 + - 81
----
NULL

skipif mysql # not compatible
query I rowsort label-2807
SELECT ALL - 27 / + - CASE - 43 WHEN + - 21 * + - SUM ( DISTINCT + 93 ) THEN + + 63 * ( - COUNT ( * ) ) END + 7 + 53 + - 81
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2808
SELECT + - COUNT( * ) DIV - + 61 AS col1, 48 * 48
----
0
2304

skipif mysql # not compatible
query II rowsort label-2808
SELECT + - COUNT ( * ) / - + 61 AS col1, 48 * 48
----
0
2304

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

skipif mysql # not compatible
query I rowsort label-2809
SELECT + CAST ( - CAST ( NULL AS REAL ) AS INTEGER ) * + 28
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2810
SELECT DISTINCT + 2 + + MIN( DISTINCT - 98 )
----
-96

skipif mysql # not compatible
query I rowsort label-2810
SELECT DISTINCT + 2 + + MIN ( DISTINCT - 98 )
----
-96

query I rowsort
SELECT DISTINCT 67 + - + NULLIF ( + ( - 51 ), + + 58 + - + 13 * - 86 * - 2 - + 63 ) AS col1
----
118

query I rowsort
SELECT - 41 * + 7
----
-287

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2815
SELECT 1 * - + 99 DIV + + 47
----
-2

skipif mysql # not compatible
query I rowsort label-2815
SELECT 1 * - + 99 / + + 47
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-2816
SELECT ALL + 9 + + COUNT( * ) * + 80 AS col1
----
89

skipif mysql # not compatible
query I rowsort label-2816
SELECT ALL + 9 + + COUNT ( * ) * + 80 AS col1
----
89

query I rowsort
SELECT ( - 14 ) - - 20 * + 78
----
1546

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2819
SELECT 22 + - 84 + + 45 + 72 DIV - - 35 AS col2
----
-15

skipif mysql # not compatible
query I rowsort label-2819
SELECT 22 + - 84 + + 45 + 72 / - - 35 AS col2
----
-15

query I rowsort
SELECT ALL - ( - - 90 ) - + 19 AS col1
----
-109

query II rowsort
SELECT DISTINCT 93 * + + 11 * - 60 AS col1, 39
----
-61380
39

query I rowsort
SELECT 48 - + - 56
----
104

query I rowsort
SELECT 57 + - - 8 AS col1
----
65

query I rowsort
SELECT ( 9 ) * 69
----
621

query II rowsort
SELECT DISTINCT 43 AS col2, 2 + - ( 15 ) AS col2
----
43
-13

query I rowsort
SELECT DISTINCT + 19 * + 50 * + 57 col2
----
54150

onlyif mysql # aggregate syntax: 
query I rowsort label-2827
SELECT ALL + 65 + SUM( 38 ) * + 45 col0
----
1775

skipif mysql # not compatible
query I rowsort label-2827
SELECT ALL + 65 + SUM ( 38 ) * + 45 col0
----
1775

query I rowsort
SELECT ALL - 1 + - 16
----
-17

query I rowsort
SELECT 79 * + 63 AS col2
----
4977

onlyif mysql # aggregate syntax: 
query II rowsort label-2830
SELECT MAX( DISTINCT + 31 ) + - 13 AS col2, - 27
----
18
-27

skipif mysql # not compatible
query II rowsort label-2830
SELECT MAX ( DISTINCT + 31 ) + - 13 AS col2, - 27
----
18
-27

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

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

query I rowsort
SELECT 37 + + + 94 * - 24
----
-2219

onlyif mysql # aggregate syntax: 
query II rowsort label-2833
SELECT + COUNT( * ) AS col1, 83 * - + 79
----
1
-6557

skipif mysql # not compatible
query II rowsort label-2833
SELECT + COUNT ( * ) AS col1, 83 * - + 79
----
1
-6557

onlyif mysql # aggregate syntax: 
query I rowsort label-2834
SELECT - MIN( 8 ) + - ( - + 48 ) AS col0
----
40

skipif mysql # not compatible
query I rowsort label-2834
SELECT - MIN ( 8 ) + - ( - + 48 ) AS col0
----
40

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2836
SELECT + 38 * - 31 + + CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2836
SELECT + 38 * - 31 + + CAST ( NULL AS REAL ) AS col2
----
NULL

query I rowsort
SELECT 16 * 13 AS col1
----
208

onlyif mysql # aggregate syntax: 
query I rowsort label-2838
SELECT DISTINCT - + SUM( + + 98 )
----
-98

skipif mysql # not compatible
query I rowsort label-2838
SELECT DISTINCT - + SUM ( + + 98 )
----
-98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2839
SELECT DISTINCT - CASE - CAST( - 41 AS SIGNED ) WHEN + CAST( - 86 AS SIGNED ) THEN - - MAX( DISTINCT COALESCE ( - 97, + 0 ) ) WHEN - 98 + + AVG ( - - 21 ) + - - NULLIF ( - 8, + - 5 + + 34 ) * 10 + + - 21 + 63 - + 15 * - 91 * COUNT( * ) DIV + COUNT( * ) THEN 86 ELSE 82 END DIV + 61
----
-1

skipif mysql # not compatible
query I rowsort label-2839
SELECT DISTINCT - CASE - CAST ( - 41 AS INTEGER ) WHEN + CAST ( - 86 AS INTEGER ) THEN - - MAX ( DISTINCT COALESCE ( - 97, + 0 ) ) WHEN - 98 + + AVG ( - - 21 ) + - - NULLIF ( - 8, + - 5 + + 34 ) * 10 + + - 21 + 63 - + 15 * - 91 * COUNT ( * ) / + COUNT ( * ) THEN 86 ELSE 82 END / + 61
----
-1

query I rowsort
SELECT ALL + 49 * - - 49 col1
----
2401

query I rowsort
SELECT + - 85 col0
----
-85

onlyif mysql # DIV for integer division: 
query III rowsort label-2842
SELECT ALL - 29, - 51 DIV + 52 AS col1, - 93 AS col2
----
-29
0
-93

skipif mysql # not compatible
query III rowsort label-2842
SELECT ALL - 29, - 51 / + 52 AS col1, - 93 AS col2
----
-29
0
-93

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2843
SELECT DISTINCT - 21 DIV COUNT( * ) AS col1
----
-21

skipif mysql # not compatible
query I rowsort label-2843
SELECT DISTINCT - 21 / COUNT ( * ) AS col1
----
-21

onlyif mysql # aggregate syntax: 
query II rowsort label-2844
SELECT + 45 * + COUNT( * ) - 63 + + 17 + + + 26 * - 32 AS col1, 93
----
-833
93

skipif mysql # not compatible
query II rowsort label-2844
SELECT + 45 * + COUNT ( * ) - 63 + + 17 + + + 26 * - 32 AS col1, 93
----
-833
93

query I rowsort
SELECT ( 15 ) * + 63
----
945

query I rowsort
SELECT 96 + - + 52 AS col1
----
44

query I rowsort
SELECT ALL + ( - 30 ) * - 94 col0
----
2820

query I rowsort
SELECT DISTINCT - 95 * - + 2
----
190

onlyif mysql # aggregate syntax: 
query I rowsort label-2849
SELECT 32 * - 80 * SUM( - + 42 ) AS col2
----
107520

skipif mysql # not compatible
query I rowsort label-2849
SELECT 32 * - 80 * SUM ( - + 42 ) AS col2
----
107520

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2850
SELECT NULLIF ( + + 72, - + 24 ) + + CAST( - 44 AS SIGNED ) col1
----
28

skipif mysql # not compatible
query I rowsort label-2850
SELECT NULLIF ( + + 72, - + 24 ) + + CAST ( - 44 AS INTEGER ) col1
----
28

query I rowsort
SELECT 22 * - - ( - 62 )
----
-1364

onlyif mysql # DIV for integer division: 
query I rowsort label-2852
SELECT 57 + - 54 DIV - - 17 AS col2
----
54

skipif mysql # not compatible
query I rowsort label-2852
SELECT 57 + - 54 / - - 17 AS col2
----
54

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

skipif mysql # not compatible
query I rowsort label-2853
SELECT - SUM ( ALL - 33 )
----
33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2854
SELECT ALL 79, + CASE WHEN CASE + 59 WHEN - - COUNT( * ) THEN NULL WHEN MIN( DISTINCT - - 79 ) * + + 21 + - CAST( + - 24 AS SIGNED ) + + 27 + + 57 THEN 2 END NOT BETWEEN + 72 AND NULL THEN NULL ELSE + COUNT( + 86 ) END AS col0
----
79
1

skipif mysql # not compatible
query II rowsort label-2854
SELECT ALL 79, + CASE WHEN CASE + 59 WHEN - - COUNT ( * ) THEN NULL WHEN MIN ( DISTINCT - - 79 ) * + + 21 + - CAST ( + - 24 AS INTEGER ) + + 27 + + 57 THEN 2 END NOT BETWEEN + 72 AND NULL THEN NULL ELSE + COUNT ( + 86 ) END AS col0
----
79
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2855
SELECT DISTINCT 39 DIV - 90 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2855
SELECT DISTINCT 39 / - 90 AS col1
----
0

query I rowsort
SELECT 47 * + - NULLIF ( 10, - - 76 + - 6 + - 67 / + 59 ) * 3
----
-1410

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2857
SELECT ALL 74 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2857
SELECT ALL 74 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2858
SELECT 54 DIV + 16 AS col0
----
3

skipif mysql # not compatible
query I rowsort label-2858
SELECT 54 / + 16 AS col0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2859
SELECT ALL CAST( NULL AS SIGNED ) + + 81 / 13 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2859
SELECT ALL CAST ( NULL AS INTEGER ) + + 81 / 13 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-2860
SELECT - SUM( ALL - + 11 ) AS col1, CAST( NULL AS SIGNED ) + 91 AS col0, + + 51
----
11
NULL
51

skipif mysql # not compatible
query III rowsort label-2860
SELECT - SUM ( ALL - + 11 ) AS col1, CAST ( NULL AS INTEGER ) + 91 AS col0, + + 51
----
11
NULL
51

query I rowsort
SELECT DISTINCT + 33 + - 5
----
28

query I rowsort
SELECT ALL - 78 + - 96
----
-174

query I rowsort
SELECT ALL 38 * - 25 * - 39 * - NULLIF ( + 19, - 61 ) AS col1
----
-703950

query I rowsort
SELECT 47 + + - 76 AS col2
----
-29

onlyif mysql # aggregate syntax: 
query II rowsort label-2865
SELECT - 94, 93 * - + 25 - - 45 + - - 10 * + - MAX( DISTINCT + 91 ) * + 43 AS col0
----
-94
-41410

skipif mysql # not compatible
query II rowsort label-2865
SELECT - 94, 93 * - + 25 - - 45 + - - 10 * + - MAX ( DISTINCT + 91 ) * + 43 AS col0
----
-94
-41410

query I rowsort
SELECT ALL 18 + 90
----
108

query I rowsort
SELECT + 87 - + - 95
----
182

query III rowsort
SELECT - - 82 AS col0, + 25, - 83 AS col0
----
82
25
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-2869
SELECT - + COUNT( + - 91 )
----
-1

skipif mysql # not compatible
query I rowsort label-2869
SELECT - + COUNT ( + - 91 )
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2870
SELECT ALL + COUNT( * ) * + + 38 + + MAX( DISTINCT - 43 ) + COUNT( * ) * - CASE COUNT( DISTINCT 77 ) WHEN 83 THEN 88 DIV 45 + + 4 + + COUNT( - 65 ) ELSE - - ( - 27 ) * - 60 END
----
-1625

skipif mysql # not compatible
query I rowsort label-2870
SELECT ALL + COUNT ( * ) * + + 38 + + MAX ( DISTINCT - 43 ) + COUNT ( * ) * - CASE COUNT ( DISTINCT 77 ) WHEN 83 THEN 88 / 45 + + 4 + + COUNT ( - 65 ) ELSE - - ( - 27 ) * - 60 END
----
-1625

onlyif mysql # aggregate syntax: 
query I rowsort label-2871
SELECT + SUM( - 68 ) AS col2
----
-68

skipif mysql # not compatible
query I rowsort label-2871
SELECT + SUM ( - 68 ) AS col2
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-2872
SELECT ALL - - COUNT( * ) * - 39 + - SUM( + 94 ) * - 47
----
4379

skipif mysql # not compatible
query I rowsort label-2872
SELECT ALL - - COUNT ( * ) * - 39 + - SUM ( + 94 ) * - 47
----
4379

query I rowsort
SELECT ALL - + 81 * + 1 - 69 - - 52 + - 42 * 20 - - - 81 + + ( + - 21 )
----
-1040

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2874
SELECT - + 14 - + + CAST( NULL AS DECIMAL ) - + 97 + - 86 + - 32 * - COUNT( * ) + - 82 * + 52 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2874
SELECT - + 14 - + + CAST ( NULL AS REAL ) - + 97 + - 86 + - 32 * - COUNT ( * ) + - 82 * + 52 AS col2
----
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2876
SELECT ALL - 92 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2876
SELECT ALL - 92 * - CAST ( NULL AS INTEGER )
----
NULL

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

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

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

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

query II rowsort
SELECT 60 AS col1, + NULLIF ( + 19, + + ( AVG ( ALL + 43 ) ) ) + + - 1
----
60
18

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2881
SELECT - - 46 * 23 * - 29 - NULLIF ( - 61, + 27 ) * COUNT( * ) + 29 DIV 44, 69 AS col0
----
-30621
69

skipif mysql # not compatible
query II rowsort label-2881
SELECT - - 46 * 23 * - 29 - NULLIF ( - 61, + 27 ) * COUNT ( * ) + 29 / 44, 69 AS col0
----
-30621
69

onlyif mysql # aggregate syntax: 
query I rowsort label-2882
SELECT - - MIN( ALL 73 ) * + + 32 + + 68 * - + COUNT( * )
----
2268

skipif mysql # not compatible
query I rowsort label-2882
SELECT - - MIN ( ALL 73 ) * + + 32 + + 68 * - + COUNT ( * )
----
2268

onlyif mysql # DIV for integer division: 
query I rowsort label-2883
SELECT ALL + 9 DIV - 31
----
0

skipif mysql # not compatible
query I rowsort label-2883
SELECT ALL + 9 / - 31
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2884
SELECT - 17 + 83 * + - COUNT( * ), + 49 * + - 62 AS col2
----
-100
-3038

skipif mysql # not compatible
query II rowsort label-2884
SELECT - 17 + 83 * + - COUNT ( * ), + 49 * + - 62 AS col2
----
-100
-3038

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

onlyif mysql # DIV for integer division: 
query II rowsort label-2886
SELECT ALL + 9 DIV 64 AS col2, 36
----
0
36

skipif mysql # not compatible
query II rowsort label-2886
SELECT ALL + 9 / 64 AS col2, 36
----
0
36

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

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

skipif mysql # not compatible
query I rowsort label-2888
SELECT + SUM ( 25 )
----
25

query I rowsort
SELECT + 75 * - + 17 AS col1
----
-1275

query II rowsort
SELECT - 87 + + 68, + 72 * - 20 AS col1
----
-19
-1440

onlyif mysql # aggregate syntax: 
query II rowsort label-2891
SELECT ALL - 37 * + COUNT( * ) AS col0, + 24 AS col2
----
-37
24

skipif mysql # not compatible
query II rowsort label-2891
SELECT ALL - 37 * + COUNT ( * ) AS col0, + 24 AS col2
----
-37
24

onlyif mysql # aggregate syntax: 
query II rowsort label-2892
SELECT ALL - COUNT( * ) + - ( + 2 ), 11 AS col1
----
-3
11

skipif mysql # not compatible
query II rowsort label-2892
SELECT ALL - COUNT ( * ) + - ( + 2 ), 11 AS col1
----
-3
11

query I rowsort
SELECT DISTINCT ( + - 16 ) col0
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-2894
SELECT - SUM( 40 )
----
-40

skipif mysql # not compatible
query I rowsort label-2894
SELECT - SUM ( 40 )
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-2895
SELECT ALL COUNT( * ) + + 89 * + + 6
----
535

skipif mysql # not compatible
query I rowsort label-2895
SELECT ALL COUNT ( * ) + + 89 * + + 6
----
535

onlyif mysql # aggregate syntax: 
query I rowsort label-2896
SELECT + ( + 14 ) - - 26 - - MIN( ALL 79 )
----
119

skipif mysql # not compatible
query I rowsort label-2896
SELECT + ( + 14 ) - - 26 - - MIN ( ALL 79 )
----
119

query II rowsort
SELECT ALL ( 53 ), 46 AS col0
----
53
46

query II rowsort
SELECT ALL - 19 * - + 78 AS col1, + 14 AS col2
----
1482
14

onlyif mysql # DIV for integer division: 
query I rowsort label-2899
SELECT - 3 + + 49 DIV - 84 col2
----
-3

skipif mysql # not compatible
query I rowsort label-2899
SELECT - 3 + + 49 / - 84 col2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2900
SELECT + COUNT( * ) - - 80 AS col2
----
81

skipif mysql # not compatible
query I rowsort label-2900
SELECT + COUNT ( * ) - - 80 AS col2
----
81

query I rowsort
SELECT DISTINCT 32 + 28 AS col1
----
60

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2902
SELECT ALL 91 + - 33, 14 + - COUNT( * ) DIV + - 49 AS col1
----
58
14

skipif mysql # not compatible
query II rowsort label-2902
SELECT ALL 91 + - 33, 14 + - COUNT ( * ) / + - 49 AS col1
----
58
14

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2903
SELECT - ( - COALESCE ( - 38, - + 93 - + 55 + - + 12 * - + 88 DIV ( + MIN( DISTINCT + 93 ) ) + - + ( + 50 ) + - ( + 4 ), - 9 ) ) AS col0, 85 * - + 56 + 98
----
-38
-4662

skipif mysql # not compatible
query II rowsort label-2903
SELECT - ( - COALESCE ( - 38, - + 93 - + 55 + - + 12 * - + 88 / ( + MIN ( DISTINCT + 93 ) ) + - + ( + 50 ) + - ( + 4 ), - 9 ) ) AS col0, 85 * - + 56 + 98
----
-38
-4662

onlyif mysql # aggregate syntax: 
query I rowsort label-2904
SELECT + MIN( - 47 ) + 3
----
-44

skipif mysql # not compatible
query I rowsort label-2904
SELECT + MIN ( - 47 ) + 3
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-2905
SELECT + - 53 * + - 58 * - COUNT( * )
----
-3074

skipif mysql # not compatible
query I rowsort label-2905
SELECT + - 53 * + - 58 * - COUNT ( * )
----
-3074

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

skipif mysql # not compatible
query I rowsort label-2906
SELECT ALL - 48 / - + 66 / - COUNT ( * )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2907
SELECT DISTINCT + COUNT( * ) + + + ( 15 ) * - 6
----
-89

skipif mysql # not compatible
query I rowsort label-2907
SELECT DISTINCT + COUNT ( * ) + + + ( 15 ) * - 6
----
-89

onlyif mysql # aggregate syntax: 
query II rowsort label-2908
SELECT - + ( - + 62 ), + 94 / - + 51 * - 66 * + ( + CASE - - 71 WHEN - 86 - + 10 THEN 14 ELSE NULL END ) / - 22 - COUNT( * ) AS col0
----
62
NULL

skipif mysql # not compatible
query II rowsort label-2908
SELECT - + ( - + 62 ), + 94 / - + 51 * - 66 * + ( + CASE - - 71 WHEN - 86 - + 10 THEN 14 ELSE NULL END ) / - 22 - COUNT ( * ) AS col0
----
62
NULL

query I rowsort
SELECT + + 9 + - 42
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-2910
SELECT DISTINCT - COALESCE ( + + ( - + 7 ), 52, + 75, - COUNT( * ) )
----
7

skipif mysql # not compatible
query I rowsort label-2910
SELECT DISTINCT - COALESCE ( + + ( - + 7 ), 52, + 75, - COUNT ( * ) )
----
7

query I rowsort
SELECT + ( 33 ) + 37
----
70

query I rowsort
SELECT + 35 + 19
----
54

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2914
SELECT + COUNT( * ) * 97 * - ( + COUNT( * ) ) + 18 AS col2
----
-79

skipif mysql # not compatible
query I rowsort label-2914
SELECT + COUNT ( * ) * 97 * - ( + COUNT ( * ) ) + 18 AS col2
----
-79

query I rowsort
SELECT + - 99 col1
----
-99

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

skipif mysql # not compatible
query I rowsort label-2916
SELECT + - CAST ( NULL AS INTEGER ) + 51 col1
----
NULL

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

skipif mysql # not compatible
query I rowsort label-2917
SELECT + 1 / - 68 - - 90
----
90

query I rowsort
SELECT ALL + CASE 26 WHEN - 91 THEN - + 92 * - 67 * + + 32 END
----
NULL

query I rowsort
SELECT - 91 * 26 + - 62
----
-2428

query I rowsort
SELECT - 46 + 74
----
28

query I rowsort
SELECT - 23 + - 65
----
-88

query I rowsort
SELECT 41 * - 4 * - 5 + 54 col2
----
874

query I rowsort
SELECT ( 11 ) col1
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-2924
SELECT + COUNT( * ) * + 70 + - + 63 * + 88 AS col2
----
-5474

skipif mysql # not compatible
query I rowsort label-2924
SELECT + COUNT ( * ) * + 70 + - + 63 * + 88 AS col2
----
-5474

onlyif mysql # aggregate syntax: 
query I rowsort label-2925
SELECT + COUNT( + COALESCE ( - 72, + 84 ) ) * 73 - 84 + - 28 * + - 98 * 92 AS col2
----
252437

skipif mysql # not compatible
query I rowsort label-2925
SELECT + COUNT ( + COALESCE ( - 72, + 84 ) ) * 73 - 84 + - 28 * + - 98 * 92 AS col2
----
252437

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2927
SELECT ALL + CAST( NULL AS SIGNED ) * - 29 / + COUNT( * ) + 76 - + + 89
----
NULL

skipif mysql # not compatible
query I rowsort label-2927
SELECT ALL + CAST ( NULL AS INTEGER ) * - 29 / + COUNT ( * ) + 76 - + + 89
----
NULL

query I rowsort
SELECT 78 * 27 + + + 92 AS col0
----
2198

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2929
SELECT ALL 86, CAST( NULL AS SIGNED ) AS col2
----
86
NULL

skipif mysql # not compatible
query II rowsort label-2929
SELECT ALL 86, CAST ( NULL AS INTEGER ) AS col2
----
86
NULL

query II rowsort
SELECT - 41 col0, + 44 * + 64
----
-41
2816

onlyif mysql # aggregate syntax: 
query I rowsort label-2931
SELECT 92 + - COUNT( * ) * + - SUM( 24 ) AS col0
----
116

skipif mysql # not compatible
query I rowsort label-2931
SELECT 92 + - COUNT ( * ) * + - SUM ( 24 ) AS col0
----
116

query I rowsort
SELECT DISTINCT + 61 * + 9 AS col0
----
549

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

skipif mysql # not compatible
query I rowsort label-2933
SELECT 72 / - - 89 * + COUNT ( * )
----
0

query I rowsort
SELECT 8 * + - 41 col0
----
-328

query I rowsort
SELECT 79 + 76
----
155

query II rowsort
SELECT DISTINCT 3, 49 col1
----
3
49

query I rowsort
SELECT ALL + 16 - - 66 AS col1
----
82

onlyif mysql # aggregate syntax: 
query II rowsort label-2938
SELECT ALL COUNT( * ) - ( 44 ) AS col1, CASE + - 32 WHEN + 40 + - - COALESCE ( + + 2, 8 ) / ( - COUNT( * ) ) THEN NULL WHEN - - 51 + + + ( + 50 ) THEN + 21 + 53 * - - 12 * + 16 + + 59 END * 27 + 3 * + 33 - - - CASE - 24 WHEN + - COUNT( * ) THEN 66 WHEN + 21 * + COUNT( * ) THEN NULL END * + + 19 + 72 + - COUNT( * ) * - 93
----
-43
NULL

skipif mysql # not compatible
query II rowsort label-2938
SELECT ALL COUNT ( * ) - ( 44 ) AS col1, CASE + - 32 WHEN + 40 + - - COALESCE ( + + 2, 8 ) / ( - COUNT ( * ) ) THEN NULL WHEN - - 51 + + + ( + 50 ) THEN + 21 + 53 * - - 12 * + 16 + + 59 END * 27 + 3 * + 33 - - - CASE - 24 WHEN + - COUNT ( * ) THEN 66 WHEN + 21 * + COUNT ( * ) THEN NULL END * + + 19 + 72 + - COUNT ( * ) * - 93
----
-43
NULL

query I rowsort
SELECT 45 * + 53 AS col1
----
2385

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2940
SELECT 22 + - 31 - - 61 - + CAST( NULL AS SIGNED ) / + 81 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2940
SELECT 22 + - 31 - - 61 - + CAST ( NULL AS INTEGER ) / + 81 AS col2
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2942
SELECT - 85 col1, + ( - CAST( NULL AS SIGNED ) ) + + + 84 AS col1, - 11 AS col2
----
-85
NULL
-11

skipif mysql # not compatible
query III rowsort label-2942
SELECT - 85 col1, + ( - CAST ( NULL AS INTEGER ) ) + + + 84 AS col1, - 11 AS col2
----
-85
NULL
-11

query I rowsort
SELECT + 86 - + 3 AS col2
----
83

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2945
SELECT ALL 47 * MIN( ALL - - 99 ) AS col2
----
4653

skipif mysql # not compatible
query I rowsort label-2945
SELECT ALL 47 * MIN ( ALL - - 99 ) AS col2
----
4653

onlyif mysql # DIV for integer division: 
query I rowsort label-2946
SELECT DISTINCT + 98 DIV + 13 col2
----
7

skipif mysql # not compatible
query I rowsort label-2946
SELECT DISTINCT + 98 / + 13 col2
----
7

onlyif mysql # DIV for integer division: 
query II rowsort label-2947
SELECT ALL - - 91, 74 DIV 54 AS col1
----
91
1

skipif mysql # not compatible
query II rowsort label-2947
SELECT ALL - - 91, 74 / 54 AS col1
----
91
1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2949
SELECT COUNT( DISTINCT - ( 77 ) ) * + - MAX( DISTINCT + + 25 ) + - 89 + - 94
----
-208

skipif mysql # not compatible
query I rowsort label-2949
SELECT COUNT ( DISTINCT - ( 77 ) ) * + - MAX ( DISTINCT + + 25 ) + - 89 + - 94
----
-208

query I rowsort
SELECT ALL 64 + 98 * + - 75
----
-7286

query I rowsort
SELECT 38 * - + 92 AS col2
----
-3496

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2952
SELECT COALESCE ( 36, + 65 ) * - 41 * SUM( ALL 68 ) * - - 93 + + 80 * + - CAST( NULL AS SIGNED ) + 0 + - 47 * + + 8 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2952
SELECT COALESCE ( 36, + 65 ) * - 41 * SUM ( ALL 68 ) * - - 93 + + 80 * + - CAST ( NULL AS INTEGER ) + 0 + - 47 * + + 8 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2953
SELECT CAST( + 29 AS SIGNED ) * + 43
----
1247

skipif mysql # not compatible
query I rowsort label-2953
SELECT CAST ( + 29 AS INTEGER ) * + 43
----
1247

query I rowsort
SELECT 47 + + + 85 AS col1
----
132

query I rowsort
SELECT ALL 16 + + 3 + 5 * 67
----
354

query I rowsort
SELECT ( - 37 ) + + 4 AS col2
----
-33

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2958
SELECT DISTINCT + 74 * CAST( NULL AS SIGNED ) * + 20 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2958
SELECT DISTINCT + 74 * CAST ( NULL AS INTEGER ) * + 20 AS col2
----
NULL

query I rowsort
SELECT ALL 56 - - - 29
----
27

onlyif mysql # aggregate syntax: 
query II rowsort label-2960
SELECT 88 * - COUNT( * ) AS col1, NULLIF ( 25, - 77 ) AS col0
----
-88
25

skipif mysql # not compatible
query II rowsort label-2960
SELECT 88 * - COUNT ( * ) AS col1, NULLIF ( 25, - 77 ) AS col0
----
-88
25

query I rowsort
SELECT 91 + ( + + 21 ) AS col2
----
112

query II rowsort
SELECT + 90 - 21, 51 * 91 AS col2
----
69
4641

query I rowsort
SELECT - 34 + + ( - - 36 )
----
2

query II rowsort
SELECT ALL + 96 - - 51 AS col1, + 3
----
147
3

onlyif mysql # DIV for integer division: 
query II rowsort label-2965
SELECT + 17 + 83 AS col2, 13 DIV + + 50
----
100
0

skipif mysql # not compatible
query II rowsort label-2965
SELECT + 17 + 83 AS col2, 13 / + + 50
----
100
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2966
SELECT 37 DIV - 4
----
-9

skipif mysql # not compatible
query I rowsort label-2966
SELECT 37 / - 4
----
-9

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

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

query I rowsort
SELECT ( 38 ) + 50 + 43
----
131

onlyif mysql # aggregate syntax: 
query I rowsort label-2969
SELECT COALESCE ( - 78, - 80 + 11, MAX( DISTINCT - - 16 ) ) AS col2
----
-78

skipif mysql # not compatible
query I rowsort label-2969
SELECT COALESCE ( - 78, - 80 + 11, MAX ( DISTINCT - - 16 ) ) AS col2
----
-78

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2971
SELECT - 83 + - + 28 AS col1, CAST( NULL AS DECIMAL )
----
-111
NULL

skipif mysql # not compatible
query II rowsort label-2971
SELECT - 83 + - + 28 AS col1, CAST ( NULL AS REAL )
----
-111
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2972
SELECT DISTINCT - + CAST( NULL AS SIGNED ) + + - 70 + + 57 * - COUNT( * ) * COALESCE ( + 15, + 57 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2972
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) + + - 70 + + 57 * - COUNT ( * ) * COALESCE ( + 15, + 57 )
----
NULL

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

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

query I rowsort
SELECT + 42 * 25
----
1050

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2976
SELECT 38 + MIN( ALL + - 36 ) AS col2
----
2

skipif mysql # not compatible
query I rowsort label-2976
SELECT 38 + MIN ( ALL + - 36 ) AS col2
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-2977
SELECT 41 * + SUM( - + 5 )
----
-205

skipif mysql # not compatible
query I rowsort label-2977
SELECT 41 * + SUM ( - + 5 )
----
-205

query II rowsort
SELECT ALL - 77 AS col0, 44 + 44 + + 18 col1
----
-77
106

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2979
SELECT ALL ( 88 ) * + + 76 + + + CAST( NULL AS SIGNED ) + + + ( + COUNT( * ) ) + + - 14 + + 59 + - COUNT( * ) + - 60 * 77
----
NULL

skipif mysql # not compatible
query I rowsort label-2979
SELECT ALL ( 88 ) * + + 76 + + + CAST ( NULL AS INTEGER ) + + + ( + COUNT ( * ) ) + + - 14 + + 59 + - COUNT ( * ) + - 60 * 77
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2980
SELECT + ( - + SUM( 49 ) ) + 8
----
-41

skipif mysql # not compatible
query I rowsort label-2980
SELECT + ( - + SUM ( 49 ) ) + 8
----
-41

query I rowsort
SELECT ALL 75 * + + 4
----
300

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2982
SELECT CAST( + - 99 AS SIGNED ) * + 69 + 19
----
-6812

skipif mysql # not compatible
query I rowsort label-2982
SELECT CAST ( + - 99 AS INTEGER ) * + 69 + 19
----
-6812

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2984
SELECT COUNT( DISTINCT COALESCE ( - - 46, - 88 ) ) col0
----
1

skipif mysql # not compatible
query I rowsort label-2984
SELECT COUNT ( DISTINCT COALESCE ( - - 46, - 88 ) ) col0
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2985
SELECT - 39 * + + COUNT( * ) + 14 + 90 + + - 86 - 17 + - 86 + + COUNT( * ) DIV 31 + + 0 * + - 67 * 86
----
-124

skipif mysql # not compatible
query I rowsort label-2985
SELECT - 39 * + + COUNT ( * ) + 14 + 90 + + - 86 - 17 + - 86 + + COUNT ( * ) / 31 + + 0 * + - 67 * 86
----
-124

query I rowsort
SELECT ALL + 29 * + 54 - COALESCE ( + 15, COALESCE ( 90, + 64 ) ) col1
----
1551

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

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

query I rowsort
SELECT + CASE + - 45 WHEN 58 * 85 * + 98 THEN NULL WHEN 69 THEN + 56 END
----
NULL

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

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

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

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

query I rowsort
SELECT + 8 * 16
----
128

query I rowsort
SELECT - 14 * - 97
----
1358

query I rowsort
SELECT - 49 * - 15 AS col1
----
735

query I rowsort
SELECT ALL 55 * 64 AS col2
----
3520

query I rowsort
SELECT ALL 66 * - 24 col0
----
-1584

query I rowsort
SELECT + 78 * + 63 AS col0
----
4914

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

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

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

query I rowsort
SELECT ALL 19 + 15
----
34

query I rowsort
SELECT ALL - 81 + 80
----
-1

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3002
SELECT - 83 * NULLIF ( 10, CAST( NULL AS DECIMAL ) * - 26 )
----
-830

skipif mysql # not compatible
query I rowsort label-3002
SELECT - 83 * NULLIF ( 10, CAST ( NULL AS REAL ) * - 26 )
----
-830

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3003
SELECT ALL - CAST( 75 AS SIGNED ) DIV - 44
----
1

skipif mysql # not compatible
query I rowsort label-3003
SELECT ALL - CAST ( 75 AS INTEGER ) / - 44
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3004
SELECT ALL CASE - ( - ( + COUNT( * ) ) ) WHEN 14 * 46 THEN + 97 WHEN 60 THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3004
SELECT ALL CASE - ( - ( + COUNT ( * ) ) ) WHEN 14 * 46 THEN + 97 WHEN 60 THEN NULL END AS col1
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3005
SELECT - 47 - - CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3005
SELECT - 47 - - CAST ( NULL AS REAL ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3006
SELECT ALL COUNT( 64 ) DIV 45 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3006
SELECT ALL COUNT ( 64 ) / 45 AS col1
----
0

query I rowsort
SELECT DISTINCT + 46 + 87
----
133

query I rowsort
SELECT ALL - 91 * - 8
----
728

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3009
SELECT DISTINCT - MAX( ALL 10 ) DIV 37 + + 59 AS col2
----
59

skipif mysql # not compatible
query I rowsort label-3009
SELECT DISTINCT - MAX ( ALL 10 ) / 37 + + 59 AS col2
----
59

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3011
SELECT DISTINCT 24 DIV - 96 - 37 AS col1
----
-37

skipif mysql # not compatible
query I rowsort label-3011
SELECT DISTINCT 24 / - 96 - 37 AS col1
----
-37

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

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

query I rowsort
SELECT ALL + NULLIF ( 36, 25 * - 97 )
----
36

query I rowsort
SELECT ALL 21 * 30 AS col1
----
630

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

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

query I rowsort
SELECT DISTINCT - 39 * + 87 AS col2
----
-3393

onlyif mysql # aggregate syntax: 
query I rowsort label-3017
SELECT - COUNT( + 8 ) + + 20 col0
----
19

skipif mysql # not compatible
query I rowsort label-3017
SELECT - COUNT ( + 8 ) + + 20 col0
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-3018
SELECT COALESCE ( - 89, COUNT( * ) )
----
-89

skipif mysql # not compatible
query I rowsort label-3018
SELECT COALESCE ( - 89, COUNT ( * ) )
----
-89

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3019
SELECT - 70 * + CASE 33 WHEN - 47 THEN 71 + + CASE 65 - + 39 * - 15 WHEN - 27 * 63 + + CAST( 25 AS SIGNED ) THEN NULL WHEN + ( - CAST( NULL AS DECIMAL ) ) * 10 THEN NULL ELSE + 27 END END + 18
----
NULL

skipif mysql # not compatible
query I rowsort label-3019
SELECT - 70 * + CASE 33 WHEN - 47 THEN 71 + + CASE 65 - + 39 * - 15 WHEN - 27 * 63 + + CAST ( 25 AS INTEGER ) THEN NULL WHEN + ( - CAST ( NULL AS REAL ) ) * 10 THEN NULL ELSE + 27 END END + 18
----
NULL

query I rowsort
SELECT - 25 + + ( 92 ) * ( 25 ) AS col0
----
2275

onlyif mysql # aggregate syntax: 
query I rowsort label-3021
SELECT + CASE - 38 WHEN + COUNT( * ) THEN 28 * 78 ELSE NULL END / 49
----
NULL

skipif mysql # not compatible
query I rowsort label-3021
SELECT + CASE - 38 WHEN + COUNT ( * ) THEN 28 * 78 ELSE NULL END / 49
----
NULL

query I rowsort
SELECT ALL + - 76 * 12 + - 95
----
-1007

query I rowsort
SELECT ALL + - 49 * 92
----
-4508

onlyif mysql # aggregate syntax: 
query I rowsort label-3024
SELECT DISTINCT - - 86 * + MAX( ALL 43 * 42 ) col2
----
155316

skipif mysql # not compatible
query I rowsort label-3024
SELECT DISTINCT - - 86 * + MAX ( ALL 43 * 42 ) col2
----
155316

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

skipif mysql # not compatible
query I rowsort label-3025
SELECT DISTINCT - 45 * COUNT ( * ) + 18 col0
----
-27

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3027
SELECT DISTINCT + 67 * - COUNT( DISTINCT + ( 62 ) + + 57 ) + COALESCE ( 66, CASE + 52 WHEN - 27 THEN NULL WHEN + 6 + 20 * 11 THEN + 0 * - 59 ELSE NULL END * 25 ) DIV - COUNT( * ) col2
----
-133

skipif mysql # not compatible
query I rowsort label-3027
SELECT DISTINCT + 67 * - COUNT ( DISTINCT + ( 62 ) + + 57 ) + COALESCE ( 66, CASE + 52 WHEN - 27 THEN NULL WHEN + 6 + 20 * 11 THEN + 0 * - 59 ELSE NULL END * 25 ) / - COUNT ( * ) col2
----
-133

query I rowsort
SELECT ALL - 74 * 23 + 87
----
-1615

query I rowsort
SELECT ALL 77 * 78 + + 23 AS col1
----
6029

query I rowsort
SELECT + 88 + - ( 46 ) * 90 AS col2
----
-4052

onlyif mysql # aggregate syntax: 
query I rowsort label-3031
SELECT - MAX( + 10 ) col0
----
-10

skipif mysql # not compatible
query I rowsort label-3031
SELECT - MAX ( + 10 ) col0
----
-10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3032
SELECT + 1 + + 67 DIV - CAST( COUNT( * ) AS SIGNED ) AS col1
----
-66

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3033
SELECT ALL - CASE - 14 WHEN - 56 THEN + CAST( NULL AS SIGNED ) WHEN 66 THEN NULL END + + 98 / - 17
----
NULL

skipif mysql # not compatible
query I rowsort label-3033
SELECT ALL - CASE - 14 WHEN - 56 THEN + CAST ( NULL AS INTEGER ) WHEN 66 THEN NULL END + + 98 / - 17
----
NULL

query I rowsort
SELECT + 54 * + 25
----
1350

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3035
SELECT + - MIN( DISTINCT 78 ) DIV 15 AS col1
----
-5

skipif mysql # not compatible
query I rowsort label-3035
SELECT + - MIN ( DISTINCT 78 ) / 15 AS col1
----
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3036
SELECT + - COALESCE ( 32, + CAST( + 16 AS SIGNED ), CAST( + CASE + 22 WHEN - 30 THEN 59 WHEN - 76 * 8 THEN ( - COUNT( * ) ) END AS SIGNED ) + + 72 ) + - 33
----
-65

skipif mysql # not compatible
query I rowsort label-3036
SELECT + - COALESCE ( 32, + CAST ( + 16 AS INTEGER ), CAST ( + CASE + 22 WHEN - 30 THEN 59 WHEN - 76 * 8 THEN ( - COUNT ( * ) ) END AS INTEGER ) + + 72 ) + - 33
----
-65

query I rowsort
SELECT DISTINCT 42 * - 98
----
-4116

query I rowsort
SELECT + + 48 + 86 AS col0
----
134

query I rowsort
SELECT ALL 60 * 75
----
4500

query I rowsort
SELECT ALL - 68 - 39
----
-107

onlyif mysql # aggregate syntax: 
query I rowsort label-3041
SELECT DISTINCT CASE NULLIF ( - 98, 67 + MIN( 59 + 44 ) ) WHEN + 83 * SUM( + 89 ) + + COUNT( * ) / - 34 THEN NULL WHEN - CASE COUNT( * ) WHEN COUNT( * ) THEN NULL ELSE COUNT( * ) END THEN NULL ELSE + MIN( ALL ( + 53 ) ) END * 38 col1
----
2014

skipif mysql # not compatible
query I rowsort label-3041
SELECT DISTINCT CASE NULLIF ( - 98, 67 + MIN ( 59 + 44 ) ) WHEN + 83 * SUM ( + 89 ) + + COUNT ( * ) / - 34 THEN NULL WHEN - CASE COUNT ( * ) WHEN COUNT ( * ) THEN NULL ELSE COUNT ( * ) END THEN NULL ELSE + MIN ( ALL ( + 53 ) ) END * 38 col1
----
2014

query I rowsort
SELECT 73 - + 75
----
-2

query I rowsort
SELECT DISTINCT 40 - 1 + + 99
----
138

onlyif mysql # aggregate syntax: 
query I rowsort label-3044
SELECT NULLIF ( + + COUNT( * ), 31 * + 16 ) * 43 AS col2
----
43

skipif mysql # not compatible
query I rowsort label-3044
SELECT NULLIF ( + + COUNT ( * ), 31 * + 16 ) * 43 AS col2
----
43

query I rowsort
SELECT 86 + - 6 + 54 AS col0
----
134

onlyif mysql # DIV for integer division: 
query I rowsort label-3046
SELECT DISTINCT + 42 DIV + - 96 col1
----
0

skipif mysql # not compatible
query I rowsort label-3046
SELECT DISTINCT + 42 / + - 96 col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3047
SELECT ( + 2 ) DIV + COALESCE ( 71, MIN( DISTINCT 20 ) )
----
0

skipif mysql # not compatible
query I rowsort label-3047
SELECT ( + 2 ) / + COALESCE ( 71, MIN ( DISTINCT 20 ) )
----
0

query I rowsort
SELECT 2 * + + 99 * + 52 col0
----
10296

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3049
SELECT CAST( - - 16 AS SIGNED ) + - CAST( 61 AS SIGNED )
----
-45

skipif mysql # not compatible
query I rowsort label-3049
SELECT CAST ( - - 16 AS INTEGER ) + - CAST ( 61 AS INTEGER )
----
-45

query I rowsort
SELECT 76 * 89 * + 44 AS col1
----
297616

onlyif mysql # DIV for integer division: 
query I rowsort label-3051
SELECT DISTINCT 98 DIV + 58
----
1

skipif mysql # not compatible
query I rowsort label-3051
SELECT DISTINCT 98 / + 58
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3052
SELECT DISTINCT - COALESCE ( + CAST( NULL AS SIGNED ), 89, 0, + 38 * - COALESCE ( 23, 52 + 28 ) ) * 62 AS col0
----
-5518

skipif mysql # not compatible
query I rowsort label-3052
SELECT DISTINCT - COALESCE ( + CAST ( NULL AS INTEGER ), 89, 0, + 38 * - COALESCE ( 23, 52 + 28 ) ) * 62 AS col0
----
-5518

onlyif mysql # DIV for integer division: 
query I rowsort label-3053
SELECT + 31 DIV - NULLIF ( + ( 40 ), 52 ) + 44
----
44

skipif mysql # not compatible
query I rowsort label-3053
SELECT + 31 / - NULLIF ( + ( 40 ), 52 ) + 44
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-3054
SELECT DISTINCT - COALESCE ( - MIN( + ( 24 ) ), SUM( 48 ), - ( 25 ) ) AS col1
----
24

skipif mysql # not compatible
query I rowsort label-3054
SELECT DISTINCT - COALESCE ( - MIN ( + ( 24 ) ), SUM ( 48 ), - ( 25 ) ) AS col1
----
24

query I rowsort
SELECT 7 + + 37 col0
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-3056
SELECT ALL - 52 * + + COUNT( * ) * 48 AS col1
----
-2496

skipif mysql # not compatible
query I rowsort label-3056
SELECT ALL - 52 * + + COUNT ( * ) * 48 AS col1
----
-2496

query I rowsort
SELECT - 43 * 22 + 8 AS col2
----
-938

onlyif mysql # aggregate syntax: 
query I rowsort label-3058
SELECT DISTINCT - - 84 + + ( - COUNT( * ) ) * + 39
----
45

skipif mysql # not compatible
query I rowsort label-3058
SELECT DISTINCT - - 84 + + ( - COUNT ( * ) ) * + 39
----
45

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

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

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

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

query I rowsort
SELECT DISTINCT + + 71 + 30 + 40 AS col2
----
141

query I rowsort
SELECT - ( + + 98 ) * 95 AS col0
----
-9310

query I rowsort
SELECT 14 * + 24 * 90
----
30240

query I rowsort
SELECT ALL + 82 * - 71 + 5 col1
----
-5817

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3065
SELECT - + NULLIF ( + 37, CAST( 63 AS SIGNED ) ) AS col1
----
-37

skipif mysql # not compatible
query I rowsort label-3065
SELECT - + NULLIF ( + 37, CAST ( 63 AS INTEGER ) ) AS col1
----
-37

query I rowsort
SELECT DISTINCT - 90 * 60
----
-5400

query I rowsort
SELECT + 8 * + COALESCE ( 25, + 72 )
----
200

onlyif mysql # aggregate syntax: 
query I rowsort label-3068
SELECT DISTINCT + 88 * + COUNT( * ) + COUNT( * ) * 51
----
139

skipif mysql # not compatible
query I rowsort label-3068
SELECT DISTINCT + 88 * + COUNT ( * ) + COUNT ( * ) * 51
----
139

query I rowsort
SELECT DISTINCT - 30 * + 75 + + 87 AS col2
----
-2163

query I rowsort
SELECT ALL + 72 - + 11
----
61

query I rowsort
SELECT - 75 * - - 91
----
-6825

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

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

query I rowsort
SELECT 63 * + - 8 AS col0
----
-504

query I rowsort
SELECT 65 + + 23 col1
----
88

query II rowsort
SELECT 75, + 60 AS col2
----
75
60

onlyif mysql # aggregate syntax: 
query I rowsort label-3076
SELECT COUNT( + + 20 ) * + + 8 AS col2
----
8

skipif mysql # not compatible
query I rowsort label-3076
SELECT COUNT ( + + 20 ) * + + 8 AS col2
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-3077
SELECT ALL 93 * + SUM( ALL + 60 ) AS col2
----
5580

skipif mysql # not compatible
query I rowsort label-3077
SELECT ALL 93 * + SUM ( ALL + 60 ) AS col2
----
5580

query II rowsort
SELECT - 14 AS col2, - ( + 61 ) + - 51 AS col2
----
-14
-112

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3079
SELECT CASE + 39 WHEN - + 51 + + 26 THEN - 3 * + CAST( NULL AS SIGNED ) + 5 WHEN + 18 * 98 THEN NULL END * 22
----
NULL

skipif mysql # not compatible
query I rowsort label-3079
SELECT CASE + 39 WHEN - + 51 + + 26 THEN - 3 * + CAST ( NULL AS INTEGER ) + 5 WHEN + 18 * 98 THEN NULL END * 22
----
NULL

query I rowsort
SELECT ALL 57 * - 37 AS col2
----
-2109

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3081
SELECT ALL 28 AS col1, 77 + + + 74 + + MAX( CAST( NULL AS SIGNED ) ) * + 67 * - 56 AS col2
----
28
NULL

skipif mysql # not compatible
query II rowsort label-3081
SELECT ALL 28 AS col1, 77 + + + 74 + + MAX ( CAST ( NULL AS INTEGER ) ) * + 67 * - 56 AS col2
----
28
NULL

query II rowsort
SELECT DISTINCT - 33 col2, 85
----
-33
85

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3085
SELECT MAX( - 28 ) col1
----
-28

skipif mysql # not compatible
query I rowsort label-3085
SELECT MAX ( - 28 ) col1
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-3086
SELECT ALL ( - CASE + + NULLIF ( + 10, 11 + ( COUNT( * ) ) ) WHEN COALESCE ( - 27, 49 + NULLIF ( - 55, 85 * - 38 ) * + COUNT( * ), + 74 - COUNT( * ) ) THEN + 30 - + COUNT( * ) END ) + - 84
----
NULL

skipif mysql # not compatible
query I rowsort label-3086
SELECT ALL ( - CASE + + NULLIF ( + 10, 11 + ( COUNT ( * ) ) ) WHEN COALESCE ( - 27, 49 + NULLIF ( - 55, 85 * - 38 ) * + COUNT ( * ), + 74 - COUNT ( * ) ) THEN + 30 - + COUNT ( * ) END ) + - 84
----
NULL

query II rowsort
SELECT + 47, + 21 * - - 13 * + 21 AS col2
----
47
5733

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3088
SELECT 60 DIV + 67 - - CASE 48 WHEN 82 THEN NULL ELSE 0 * COUNT( * ) END + + 11 DIV - 87 * + 11
----
0

skipif mysql # not compatible
query I rowsort label-3088
SELECT 60 / + 67 - - CASE 48 WHEN 82 THEN NULL ELSE 0 * COUNT ( * ) END + + 11 / - 87 * + 11
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3089
SELECT ALL 90 + + - 15 * - CAST( COUNT( * ) AS SIGNED ) + 0
----
105

skipif mysql # not compatible
query I rowsort label-3089
SELECT ALL 90 + + - 15 * - CAST ( COUNT ( * ) AS INTEGER ) + 0
----
105

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3090
SELECT + 43 - - SUM( DISTINCT 27 ) DIV + 61
----
43

skipif mysql # not compatible
query I rowsort label-3090
SELECT + 43 - - SUM ( DISTINCT 27 ) / + 61
----
43

query I rowsort
SELECT ALL - 86 * - + CASE WHEN NULL <= 13 THEN NULL ELSE 12 END
----
1032

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3092
SELECT 39 + - CAST( - 79 AS SIGNED ) - - 63
----
181

skipif mysql # not compatible
query I rowsort label-3092
SELECT 39 + - CAST ( - 79 AS INTEGER ) - - 63
----
181

onlyif mysql # aggregate syntax: 
query I rowsort label-3093
SELECT + 90 * + MAX( + 78 ) + 79 - + 66 col1
----
7033

skipif mysql # not compatible
query I rowsort label-3093
SELECT + 90 * + MAX ( + 78 ) + 79 - + 66 col1
----
7033

query II rowsort
SELECT + 89 AS col2, + 95 * 18 AS col1
----
89
1710

onlyif mysql # aggregate syntax: 
query I rowsort label-3095
SELECT + 0 + CASE - - 41 WHEN 10 + - 10 THEN COUNT( * ) WHEN 38 THEN NULL ELSE NULL END - 57 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3095
SELECT + 0 + CASE - - 41 WHEN 10 + - 10 THEN COUNT ( * ) WHEN 38 THEN NULL ELSE NULL END - 57 col0
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3097
SELECT ALL - - COUNT( * ) - 45 - - - MAX( 81 ) AS col0
----
-125

skipif mysql # not compatible
query I rowsort label-3097
SELECT ALL - - COUNT ( * ) - 45 - - - MAX ( 81 ) AS col0
----
-125

onlyif mysql # aggregate syntax: 
query I rowsort label-3098
SELECT - COUNT( * ) * 82 + 85 + + COUNT( * ) AS col1
----
4

skipif mysql # not compatible
query I rowsort label-3098
SELECT - COUNT ( * ) * 82 + 85 + + COUNT ( * ) AS col1
----
4

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

query I rowsort
SELECT ALL - 1 - + 45
----
-46

query I rowsort
SELECT - 63 + + ( 79 ) + 82
----
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3102
SELECT ALL NULLIF ( 12, + + 94 ) - - CAST( 83 + - ( - MAX( ALL - 98 ) ) DIV - 51 AS SIGNED )
----
96

skipif mysql # not compatible
query I rowsort label-3102
SELECT ALL NULLIF ( 12, + + 94 ) - - CAST ( 83 + - ( - MAX ( ALL - 98 ) ) / - 51 AS INTEGER )
----
96

query I rowsort
SELECT - + 15 * 20 * - + CASE + 22 WHEN 21 THEN 65 + NULLIF ( - COALESCE ( + 50, NULLIF ( - 48, 66 ) ) + - 69, - 71 ) WHEN + 91 - - 12 THEN - 60 ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT - - ( + 67 ) + - - 44 AS col0
----
111

onlyif mysql # DIV for integer division: 
query I rowsort label-3105
SELECT - COALESCE ( - ( 23 ), 34 DIV - 89 ) col2
----
23

skipif mysql # not compatible
query I rowsort label-3105
SELECT - COALESCE ( - ( 23 ), 34 / - 89 ) col2
----
23

query I rowsort
SELECT + + 65 + - 78
----
-13

onlyif mysql # DIV for integer division: 
query II rowsort label-3107
SELECT - 82 DIV + 38 AS col0, + 92 AS col2
----
-2
92

skipif mysql # not compatible
query II rowsort label-3107
SELECT - 82 / + 38 AS col0, + 92 AS col2
----
-2
92

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

query I rowsort
SELECT ALL + 70 * - + 49 * - 71 AS col1
----
243530

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3110
SELECT DISTINCT - 42 * + 6 col2, COUNT( + CAST( 53 AS SIGNED ) ) * + 25 + + ( 62 ) * + COUNT( * ) AS col0
----
-252
87

skipif mysql # not compatible
query II rowsort label-3110
SELECT DISTINCT - 42 * + 6 col2, COUNT ( + CAST ( 53 AS INTEGER ) ) * + 25 + + ( 62 ) * + COUNT ( * ) AS col0
----
-252
87

query I rowsort
SELECT ALL NULLIF ( NULLIF ( 75, 85 ), 52 - ( + 50 ) )
----
75

query I rowsort
SELECT DISTINCT NULLIF ( + + 34, 57 * + 63 )
----
34

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3113
SELECT ALL 98 DIV - + CAST( - 69 AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-3113
SELECT ALL 98 / - + CAST ( - 69 AS INTEGER )
----
1

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

query I rowsort
SELECT + 21 - + + 19 col2
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-3116
SELECT - ( + - 45 ) * ( + 7 ) DIV 62
----
5

skipif mysql # not compatible
query I rowsort label-3116
SELECT - ( + - 45 ) * ( + 7 ) / 62
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-3117
SELECT - NULLIF ( + NULLIF ( 26, + COUNT( * ) + 6 ), 22 / + 1 + COUNT( * ) )
----
-26

skipif mysql # not compatible
query I rowsort label-3117
SELECT - NULLIF ( + NULLIF ( 26, + COUNT ( * ) + 6 ), 22 / + 1 + COUNT ( * ) )
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-3118
SELECT ( - MAX( - 37 ) )
----
37

skipif mysql # not compatible
query I rowsort label-3118
SELECT ( - MAX ( - 37 ) )
----
37

query I rowsort
SELECT DISTINCT 79 * + 66 * - - 30 * - 77 + + 65
----
-12044275

query I rowsort
SELECT ALL 48 * - NULLIF ( 58, - 96 + AVG ( 92 ) ) + 42 * - 97 AS col2
----
-6858

query I rowsort
SELECT 99 * - 19 + - 90 + 92 AS col0
----
-1879

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3122
SELECT DISTINCT - 16 * + - 99 + - - 79 DIV - - COUNT( * ) AS col0
----
1663

skipif mysql # not compatible
query I rowsort label-3122
SELECT DISTINCT - 16 * + - 99 + - - 79 / - - COUNT ( * ) AS col0
----
1663

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3123
SELECT DISTINCT + NULLIF ( - ( + + 57 ), + 67 * + 90 - CAST( NULL AS DECIMAL ) ) * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3123
SELECT DISTINCT + NULLIF ( - ( + + 57 ), + 67 * + 90 - CAST ( NULL AS REAL ) ) * CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT + 97 * + - 29 + - 63 AS col0
----
-2876

onlyif mysql # aggregate syntax: 
query I rowsort label-3125
SELECT ALL + COUNT( DISTINCT - + 55 ) * - 77 - + - 31 AS col0
----
-46

skipif mysql # not compatible
query I rowsort label-3125
SELECT ALL + COUNT ( DISTINCT - + 55 ) * - 77 - + - 31 AS col0
----
-46

query I rowsort
SELECT + ( - + 70 ) * + 96 + + - 77 AS col2
----
-6797

query I rowsort
SELECT NULLIF ( + - 74, - - 79 )
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-3128
SELECT - ( COUNT( * ) ) * - 23 + - 70
----
-47

skipif mysql # not compatible
query I rowsort label-3128
SELECT - ( COUNT ( * ) ) * - 23 + - 70
----
-47

query I rowsort
SELECT ALL + - 75 * - 69 - + 12 + + 2 * + 46
----
5255

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3131
SELECT DISTINCT ( - 18 ) DIV + + SUM( ALL - 83 ) + 2 * 52
----
104

skipif mysql # not compatible
query I rowsort label-3131
SELECT DISTINCT ( - 18 ) / + + SUM ( ALL - 83 ) + 2 * 52
----
104

onlyif mysql # aggregate syntax: 
query I rowsort label-3132
SELECT + - NULLIF ( 38, - 30 / + 9 * + 40 + + COALESCE ( 31 - 35 * 68, COUNT( 17 ), - COUNT( * ) ) )
----
-38

skipif mysql # not compatible
query I rowsort label-3132
SELECT + - NULLIF ( 38, - 30 / + 9 * + 40 + + COALESCE ( 31 - 35 * 68, COUNT ( 17 ), - COUNT ( * ) ) )
----
-38

query I rowsort
SELECT + 10 * + 89 AS col1
----
890

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3136
SELECT - 37 - - MAX( - 95 ) AS col1
----
-132

skipif mysql # not compatible
query I rowsort label-3136
SELECT - 37 - - MAX ( - 95 ) AS col1
----
-132

query I rowsort
SELECT - 64 * - - 2
----
-128

query I rowsort
SELECT - 11 * - 12 * 59 AS col1
----
7788

onlyif mysql # aggregate syntax: 
query I rowsort label-3139
SELECT DISTINCT CASE - + COUNT( * ) WHEN 79 * 56 + - + 54 THEN NULL WHEN - MAX( ALL 43 ) + 72 * + 15 THEN - 19 + COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3139
SELECT DISTINCT CASE - + COUNT ( * ) WHEN 79 * 56 + - + 54 THEN NULL WHEN - MAX ( ALL 43 ) + 72 * + 15 THEN - 19 + COUNT ( * ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3140
SELECT ALL - 29 + - MAX( DISTINCT ( + 71 ) ) * + ( 61 )
----
-4360

skipif mysql # not compatible
query I rowsort label-3140
SELECT ALL - 29 + - MAX ( DISTINCT ( + 71 ) ) * + ( 61 )
----
-4360

onlyif mysql # aggregate syntax: 
query I rowsort label-3141
SELECT ALL + ( - - 53 ) + COALESCE ( + 17, 29, 12 - + ( - 39 + COUNT( * ) * + 95 ) ) * - 37
----
-576

skipif mysql # not compatible
query I rowsort label-3141
SELECT ALL + ( - - 53 ) + COALESCE ( + 17, 29, 12 - + ( - 39 + COUNT ( * ) * + 95 ) ) * - 37
----
-576

onlyif mysql # aggregate syntax: 
query I rowsort label-3142
SELECT DISTINCT - MAX( DISTINCT + 76 ) * + + 5
----
-380

skipif mysql # not compatible
query I rowsort label-3142
SELECT DISTINCT - MAX ( DISTINCT + 76 ) * + + 5
----
-380

query I rowsort
SELECT DISTINCT - 11 + + 52 AS col2
----
41

query I rowsort
SELECT - 75 + + 19 * + ( + 9 )
----
96

query I rowsort
SELECT - 80 - 74 * 63
----
-4742

query II rowsort
SELECT 8, - ( 0 ) AS col1
----
8
0

query I rowsort
SELECT - 98 + + - 57
----
-155

query I rowsort
SELECT ALL - 93 + 41 + + 17
----
-35

query I rowsort
SELECT DISTINCT - 85 * - - 23
----
-1955

query I rowsort
SELECT - 45 * 89 AS col1
----
-4005

onlyif mysql # aggregate syntax: 
query I rowsort label-3151
SELECT - NULLIF ( 6, - COUNT( * ) )
----
-6

skipif mysql # not compatible
query I rowsort label-3151
SELECT - NULLIF ( 6, - COUNT ( * ) )
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-3152
SELECT DISTINCT + 48 + - + 4 + - 4 - SUM( - 54 ) AS col0
----
94

skipif mysql # not compatible
query I rowsort label-3152
SELECT DISTINCT + 48 + - + 4 + - 4 - SUM ( - 54 ) AS col0
----
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3153
SELECT ALL - SUM( 34 ) + 44 col2, CAST( NULL AS SIGNED ) AS col2
----
10
NULL

skipif mysql # not compatible
query II rowsort label-3153
SELECT ALL - SUM ( 34 ) + 44 col2, CAST ( NULL AS INTEGER ) AS col2
----
10
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3155
SELECT ALL CAST( + 14 AS SIGNED ) + + + 13 - 23
----
4

skipif mysql # not compatible
query I rowsort label-3155
SELECT ALL CAST ( + 14 AS INTEGER ) + + + 13 - 23
----
4

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3157
SELECT + 32 DIV - + 84
----
0

skipif mysql # not compatible
query I rowsort label-3157
SELECT + 32 / - + 84
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3158
SELECT ALL - + 16 DIV - - 94 - 20 + 94 - + + 83
----
-9

skipif mysql # not compatible
query I rowsort label-3158
SELECT ALL - + 16 / - - 94 - 20 + 94 - + + 83
----
-9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3159
SELECT ALL + 0 DIV 5 + - 49 * NULLIF ( COUNT( * ), SUM( DISTINCT - 94 ) ) - 73
----
-122

skipif mysql # not compatible
query I rowsort label-3159
SELECT ALL + 0 / 5 + - 49 * NULLIF ( COUNT ( * ), SUM ( DISTINCT - 94 ) ) - 73
----
-122

query I rowsort
SELECT - 78 - 36
----
-114

query I rowsort
SELECT DISTINCT + NULLIF ( - + 99, - 57 )
----
-99

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3162
SELECT + - 9 * 8 * + 21 - - 6 * 20 DIV + CAST( + 30 AS SIGNED )
----
-1508

skipif mysql # not compatible
query I rowsort label-3162
SELECT + - 9 * 8 * + 21 - - 6 * 20 / + CAST ( + 30 AS INTEGER )
----
-1508

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3163
SELECT DISTINCT - 3 * - CASE + CAST( NULL AS SIGNED ) WHEN + 7 THEN + MIN( ALL - 50 ) ELSE NULL END * - 54 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3163
SELECT DISTINCT - 3 * - CASE + CAST ( NULL AS INTEGER ) WHEN + 7 THEN + MIN ( ALL - 50 ) ELSE NULL END * - 54 AS col1
----
NULL

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

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

query II rowsort
SELECT - 28 * 65 * 34, 85 * + - 95 AS col2
----
-61880
-8075

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3166
SELECT ALL - CASE + ( - 0 ) WHEN - + ( - 67 ) THEN NULL WHEN - CAST( NULL AS SIGNED ) THEN - 69 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3166
SELECT ALL - CASE + ( - 0 ) WHEN - + ( - 67 ) THEN NULL WHEN - CAST ( NULL AS INTEGER ) THEN - 69 END AS col2
----
NULL

query I rowsort
SELECT 69 - - 45 AS col2
----
114

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

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

query II rowsort
SELECT 7 * - 87 * 43 AS col1, 66 + + 54 AS col0
----
-26187
120

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3170
SELECT ALL + NULLIF ( - - COUNT( * ), + CAST( NULL AS SIGNED ) * - + 75 ) DIV + + 94 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3170
SELECT ALL + NULLIF ( - - COUNT ( * ), + CAST ( NULL AS INTEGER ) * - + 75 ) / + + 94 AS col2
----
0

query I rowsort
SELECT + 63 * + 91 + + 11 * + 58 AS col0
----
6371

query II rowsort
SELECT ALL - + 4 AS col1, 24 + + + 27 AS col2
----
-4
51

onlyif mysql # DIV for integer division: 
query I rowsort label-3173
SELECT DISTINCT 99 DIV + 72 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3173
SELECT DISTINCT 99 / + 72 AS col1
----
1

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

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

query I rowsort
SELECT 72 * 48 * + + 64
----
221184

query I rowsort
SELECT DISTINCT 28 + - 39 + + 45 * - ( + 53 ) - 88
----
-2484

query I rowsort
SELECT 20 + + 78 AS col1
----
98

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

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

query II rowsort
SELECT 86, + 39 AS col2
----
86
39

query II rowsort
SELECT - 23, 69 AS col0
----
-23
69

onlyif mysql # aggregate syntax: 
query II rowsort label-3181
SELECT ALL 79 AS col2, 31 + ( - - 96 ) + + COUNT( * ) - - 88 AS col0
----
79
216

skipif mysql # not compatible
query II rowsort label-3181
SELECT ALL 79 AS col2, 31 + ( - - 96 ) + + COUNT ( * ) - - 88 AS col0
----
79
216

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3182
SELECT CAST( NULL AS DECIMAL ) + 43 * + 47 * COUNT( * ) * + + COUNT( * ) / + AVG ( DISTINCT 25 ) + - 9
----
NULL

skipif mysql # not compatible
query I rowsort label-3182
SELECT CAST ( NULL AS REAL ) + 43 * + 47 * COUNT ( * ) * + + COUNT ( * ) / + AVG ( DISTINCT 25 ) + - 9
----
NULL

query I rowsort
SELECT ALL 27 * + 30
----
810

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3184
SELECT DISTINCT - CASE - MIN( - 52 ) WHEN + 87 THEN COUNT( * ) + - - 24 * - 27 WHEN + 21 THEN NULL WHEN 41 THEN NULL WHEN 88 * - CASE CAST( NULL AS SIGNED ) WHEN - 32 THEN NULL ELSE - 27 END + 43 * 48 THEN + 16 ELSE NULL END - 17 * 14 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3184
SELECT DISTINCT - CASE - MIN ( - 52 ) WHEN + 87 THEN COUNT ( * ) + - - 24 * - 27 WHEN + 21 THEN NULL WHEN 41 THEN NULL WHEN 88 * - CASE CAST ( NULL AS INTEGER ) WHEN - 32 THEN NULL ELSE - 27 END + 43 * 48 THEN + 16 ELSE NULL END - 17 * 14 AS col0
----
NULL

query II rowsort
SELECT ALL 89 AS col0, 87
----
89
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3186
SELECT 36 * - CAST( - 11 AS SIGNED ) AS col1
----
396

skipif mysql # not compatible
query I rowsort label-3186
SELECT 36 * - CAST ( - 11 AS INTEGER ) AS col1
----
396

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3188
SELECT 42 + - COUNT( DISTINCT - 10 ) AS col2
----
41

skipif mysql # not compatible
query I rowsort label-3188
SELECT 42 + - COUNT ( DISTINCT - 10 ) AS col2
----
41

query I rowsort
SELECT ALL - 63 - + 47 - 26
----
-136

query II rowsort
SELECT ALL 98 AS col0, - 74
----
98
-74

onlyif mysql # aggregate syntax: 
query II rowsort label-3191
SELECT - 99, 92 * 69 + - COUNT( * ) * - COUNT( * ) + - - 11 + COUNT( DISTINCT - 30 ) AS col2
----
-99
6361

skipif mysql # not compatible
query II rowsort label-3191
SELECT - 99, 92 * 69 + - COUNT ( * ) * - COUNT ( * ) + - - 11 + COUNT ( DISTINCT - 30 ) AS col2
----
-99
6361

onlyif mysql # aggregate syntax: 
query II rowsort label-3192
SELECT - 0 AS col1, + 70 * - NULLIF ( - 86, COUNT( * ) / - + 15 ) AS col2
----
0
6020

skipif mysql # not compatible
query II rowsort label-3192
SELECT - 0 AS col1, + 70 * - NULLIF ( - 86, COUNT ( * ) / - + 15 ) AS col2
----
0
6020

query I rowsort
SELECT + 62 + - 40 AS col1
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-3194
SELECT + 36 * + + 61 * + + NULLIF ( - AVG ( + 32 ), 62 ) + CASE 97 + ( 30 ) * - 81 WHEN 22 THEN - CASE + 55 WHEN + 89 THEN NULL ELSE - 69 END * ( MAX( 28 ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-3194
SELECT + 36 * + + 61 * + + NULLIF ( - AVG ( + 32 ), 62 ) + CASE 97 + ( 30 ) * - 81 WHEN 22 THEN - CASE + 55 WHEN + 89 THEN NULL ELSE - 69 END * ( MAX ( 28 ) ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3195
SELECT ALL + 49 * - COUNT( * ) * 16 col0
----
-784

skipif mysql # not compatible
query I rowsort label-3195
SELECT ALL + 49 * - COUNT ( * ) * 16 col0
----
-784

onlyif mysql # aggregate syntax: 
query I rowsort label-3196
SELECT CASE + - 20 WHEN 7 THEN - 22 - + 10 + + COUNT( * ) / - 35 END + ( + 37 + 42 * 68 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3196
SELECT CASE + - 20 WHEN 7 THEN - 22 - + 10 + + COUNT ( * ) / - 35 END + ( + 37 + 42 * 68 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3197
SELECT + 70 DIV NULLIF ( 66, - - 34 + - AVG ( 76 ) ) - - 56 * + 56 AS col2
----
3137

skipif mysql # not compatible
query I rowsort label-3197
SELECT + 70 / NULLIF ( 66, - - 34 + - AVG ( 76 ) ) - - 56 * + 56 AS col2
----
3137

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

query I rowsort
SELECT 68 * + 85 * 92 * - - 28 + - - CASE - 18 WHEN - 60 + ( 8 ) THEN NULL WHEN - ( + 77 ) THEN + 15 ELSE - 53 END * - 15 col0
----
14890075

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3200
SELECT DISTINCT - + MIN( DISTINCT 51 ) * - CAST( NULL AS SIGNED ) - - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3200
SELECT DISTINCT - + MIN ( DISTINCT 51 ) * - CAST ( NULL AS INTEGER ) - - COUNT ( * ) AS col2
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3201
SELECT - CAST( NULL AS DECIMAL ) / - + 62
----
NULL

skipif mysql # not compatible
query I rowsort label-3201
SELECT - CAST ( NULL AS REAL ) / - + 62
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3202
SELECT DISTINCT - COUNT( ALL + 56 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-3202
SELECT DISTINCT - COUNT ( ALL + 56 ) AS col0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-3203
SELECT 53 DIV 67
----
0

skipif mysql # not compatible
query I rowsort label-3203
SELECT 53 / 67
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3204
SELECT - MAX( + + ( + - 57 ) ) * COUNT( * )
----
57

skipif mysql # not compatible
query I rowsort label-3204
SELECT - MAX ( + + ( + - 57 ) ) * COUNT ( * )
----
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3205
SELECT MAX( CAST( 16 AS SIGNED ) ) + + 76 * - 92 col0
----
-6976

skipif mysql # not compatible
query I rowsort label-3205
SELECT MAX ( CAST ( 16 AS INTEGER ) ) + + 76 * - 92 col0
----
-6976

query I rowsort
SELECT 86 * + + 79 AS col2
----
6794

onlyif mysql # aggregate syntax: 
query I rowsort label-3207
SELECT 53 * - COUNT( DISTINCT + ( 57 ) ) + - - 76
----
23

skipif mysql # not compatible
query I rowsort label-3207
SELECT 53 * - COUNT ( DISTINCT + ( 57 ) ) + - - 76
----
23

query I rowsort
SELECT + - COALESCE ( + + 61, 95 ) AS col0
----
-61

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3209
SELECT - 81, COALESCE ( 67, 56, + - CAST( + 67 AS SIGNED ) ) AS col0
----
-81
67

skipif mysql # not compatible
query II rowsort label-3209
SELECT - 81, COALESCE ( 67, 56, + - CAST ( + 67 AS INTEGER ) ) AS col0
----
-81
67

onlyif mysql # DIV for integer division: 
query II rowsort label-3210
SELECT ALL - 72 + - - 81 AS col2, - 23 DIV + + 99 + 93
----
9
93

skipif mysql # not compatible
query II rowsort label-3210
SELECT ALL - 72 + - - 81 AS col2, - 23 / + + 99 + 93
----
9
93

onlyif mysql # aggregate syntax: 
query II rowsort label-3211
SELECT + COUNT( * ) AS col0, 89 AS col0
----
1
89

skipif mysql # not compatible
query II rowsort label-3211
SELECT + COUNT ( * ) AS col0, 89 AS col0
----
1
89

query II rowsort
SELECT ALL - 6 AS col2, + 39 + + 58 col0
----
-6
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3213
SELECT ALL + MAX( + + 39 ) + 31
----
70

skipif mysql # not compatible
query I rowsort label-3213
SELECT ALL + MAX ( + + 39 ) + 31
----
70

query I rowsort
SELECT DISTINCT - + ( + 47 )
----
-47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3215
SELECT DISTINCT - CAST( - 24 AS SIGNED ) + - 78 AS col0
----
-54

skipif mysql # not compatible
query I rowsort label-3215
SELECT DISTINCT - CAST ( - 24 AS INTEGER ) + - 78 AS col0
----
-54

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3216
SELECT COUNT( - 78 ) DIV - + 62 DIV COUNT( * ) + - 10
----
-10

skipif mysql # not compatible
query I rowsort label-3216
SELECT COUNT ( - 78 ) / - + 62 / COUNT ( * ) + - 10
----
-10

query II rowsort
SELECT COALESCE ( - + 26, - 23 ) * - - 77 + 91 AS col2, 44 + - + 67 AS col2
----
-1911
-23

query II rowsort
SELECT ALL 39 + - - 84 + - + 22, 95 col2
----
101
95

onlyif mysql # aggregate syntax: 
query I rowsort label-3219
SELECT 1 - - 2 + + COALESCE ( + 26, + - 18 ) * - - COUNT( ALL 91 ) * - 90 AS col0
----
-2337

skipif mysql # not compatible
query I rowsort label-3219
SELECT 1 - - 2 + + COALESCE ( + 26, + - 18 ) * - - COUNT ( ALL 91 ) * - 90 AS col0
----
-2337

onlyif mysql # aggregate syntax: 
query I rowsort label-3220
SELECT NULLIF ( COUNT( 45 ), + - AVG ( 46 ) ) - - + 68 AS col2
----
69

skipif mysql # not compatible
query I rowsort label-3220
SELECT NULLIF ( COUNT ( 45 ), + - AVG ( 46 ) ) - - + 68 AS col2
----
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3221
SELECT ALL COUNT( * ) - 8 / CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3221
SELECT ALL COUNT ( * ) - 8 / CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3222
SELECT ALL COUNT( * ) / - CAST( NULL AS SIGNED ) AS col1, 56 * 53
----
NULL
2968

skipif mysql # not compatible
query II rowsort label-3222
SELECT ALL COUNT ( * ) / - CAST ( NULL AS INTEGER ) AS col1, 56 * 53
----
NULL
2968

query I rowsort
SELECT NULLIF ( 30, + + 85 ) * 66 * + - 39
----
-77220

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3224
SELECT DISTINCT ( - + 78 ) * - CAST( NULL AS DECIMAL ) * + 22 * + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3224
SELECT DISTINCT ( - + 78 ) * - CAST ( NULL AS REAL ) * + 22 * + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3225
SELECT ALL SUM( ALL - 78 ) * CASE - 87 WHEN + 97 + + NULLIF ( - 41, + ( + COALESCE ( - 73, + 49 + 34, + 52, + 48 ) ) ) THEN COALESCE ( - 76, + 32 ) + 78 WHEN - COUNT( * ) * + 23 THEN NULL ELSE - COUNT( * ) END + + 53 AS col2
----
131

skipif mysql # not compatible
query I rowsort label-3225
SELECT ALL SUM ( ALL - 78 ) * CASE - 87 WHEN + 97 + + NULLIF ( - 41, + ( + COALESCE ( - 73, + 49 + 34, + 52, + 48 ) ) ) THEN COALESCE ( - 76, + 32 ) + 78 WHEN - COUNT ( * ) * + 23 THEN NULL ELSE - COUNT ( * ) END + + 53 AS col2
----
131

onlyif mysql # aggregate syntax: 
query I rowsort label-3226
SELECT - MAX( DISTINCT + - 2 )
----
2

skipif mysql # not compatible
query I rowsort label-3226
SELECT - MAX ( DISTINCT + - 2 )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-3227
SELECT 52 * - + COUNT( * ) * - + 73 - - + 12 + - - 52
----
3860

skipif mysql # not compatible
query I rowsort label-3227
SELECT 52 * - + COUNT ( * ) * - + 73 - - + 12 + - - 52
----
3860

onlyif mysql # aggregate syntax: 
query I rowsort label-3228
SELECT ALL - COUNT( * ) * - 5 + + 76 AS col2
----
81

skipif mysql # not compatible
query I rowsort label-3228
SELECT ALL - COUNT ( * ) * - 5 + + 76 AS col2
----
81

query I rowsort
SELECT DISTINCT ( 44 ) col1
----
44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3230
SELECT - NULLIF ( + 71, - - COUNT( * ) ) * - + 0 DIV 99 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3230
SELECT - NULLIF ( + 71, - - COUNT ( * ) ) * - + 0 / 99 AS col0
----
0

query I rowsort
SELECT - CASE 38 WHEN + 23 THEN + + 80 WHEN - 3 * - 14 * - 60 THEN 55 ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3232
SELECT MAX( CASE - - ( + - 3 ) WHEN + 4 THEN NULL WHEN + 62 + + - 89 * + 86 THEN 85 + - 54 ELSE NULL END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3232
SELECT MAX ( CASE - - ( + - 3 ) WHEN + 4 THEN NULL WHEN + 62 + + - 89 * + 86 THEN 85 + - 54 ELSE NULL END ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3233
SELECT + - MAX( DISTINCT 65 ) AS col0
----
-65

skipif mysql # not compatible
query I rowsort label-3233
SELECT + - MAX ( DISTINCT 65 ) AS col0
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-3234
SELECT + + COUNT( * ) * MAX( + ( 67 ) ) - + + 62 * + 79 * + CASE 76 WHEN + 26 + + 25 THEN NULL WHEN 15 THEN 0 * 64 + + 67 WHEN + 41 * - 61 THEN - ( 82 ) + 0 WHEN + 62 * 60 THEN NULL ELSE NULL END + - 89
----
NULL

skipif mysql # not compatible
query I rowsort label-3234
SELECT + + COUNT ( * ) * MAX ( + ( 67 ) ) - + + 62 * + 79 * + CASE 76 WHEN + 26 + + 25 THEN NULL WHEN 15 THEN 0 * 64 + + 67 WHEN + 41 * - 61 THEN - ( 82 ) + 0 WHEN + 62 * 60 THEN NULL ELSE NULL END + - 89
----
NULL

query I rowsort
SELECT DISTINCT + 60 * - 43 - + + 65
----
-2645

query I rowsort
SELECT ALL + - ( + ( 7 ) ) col1
----
-7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3237
SELECT ALL + ( + - 35 ) * - + CASE + COUNT( * ) WHEN - - 76 THEN NULL WHEN - ( CAST( NULL AS SIGNED ) ) + COUNT( * ) THEN NULL ELSE COUNT( * ) END + - 61
----
-26

skipif mysql # not compatible
query I rowsort label-3237
SELECT ALL + ( + - 35 ) * - + CASE + COUNT ( * ) WHEN - - 76 THEN NULL WHEN - ( CAST ( NULL AS INTEGER ) ) + COUNT ( * ) THEN NULL ELSE COUNT ( * ) END + - 61
----
-26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3238
SELECT DISTINCT + CASE CAST( NULL AS SIGNED ) WHEN + 80 + + - 58 + + + 15 * + + 94 + - 60 * - 2 THEN NULL ELSE - 23 END * 72 + + NULLIF ( 44, + COUNT( * ) )
----
-1612

skipif mysql # not compatible
query I rowsort label-3238
SELECT DISTINCT + CASE CAST ( NULL AS INTEGER ) WHEN + 80 + + - 58 + + + 15 * + + 94 + - 60 * - 2 THEN NULL ELSE - 23 END * 72 + + NULLIF ( 44, + COUNT ( * ) )
----
-1612

onlyif mysql # aggregate syntax: 
query I rowsort label-3239
SELECT ALL + COUNT( * ) * - 42 * - 37 + - - ( - 84 ) + - 75
----
1395

skipif mysql # not compatible
query I rowsort label-3239
SELECT ALL + COUNT ( * ) * - 42 * - 37 + - - ( - 84 ) + - 75
----
1395

query I rowsort
SELECT DISTINCT + - 60 AS col0
----
-60

query I rowsort
SELECT DISTINCT - - CASE - 80 WHEN + 51 * - AVG ( ALL + - 4 ) THEN - 64 END * + - 53 + 87
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3242
SELECT - SUM( DISTINCT - 75 ) + + COALESCE ( + + 15, - 63 + 81 + - 1, + - 30 * 58 ) + + COUNT( * ) * + COALESCE ( + 77 * - ( - 57 DIV 87 ), + 85 ) * 81
----
90

skipif mysql # not compatible
query I rowsort label-3242
SELECT - SUM ( DISTINCT - 75 ) + + COALESCE ( + + 15, - 63 + 81 + - 1, + - 30 * 58 ) + + COUNT ( * ) * + COALESCE ( + 77 * - ( - 57 / 87 ), + 85 ) * 81
----
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3243
SELECT + AVG ( ALL - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3243
SELECT + AVG ( ALL - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3244
SELECT DISTINCT + CASE + 53 WHEN + CAST( NULL AS SIGNED ) * + NULLIF ( 33, + + 32 - 29 ) THEN + 9 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3244
SELECT DISTINCT + CASE + 53 WHEN + CAST ( NULL AS INTEGER ) * + NULLIF ( 33, + + 32 - 29 ) THEN + 9 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3245
SELECT + COUNT( * ), - 50 DIV - + 32 AS col0
----
1
1

skipif mysql # not compatible
query II rowsort label-3245
SELECT + COUNT ( * ), - 50 / - + 32 AS col0
----
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3246
SELECT SUM( - 37 ) AS col1
----
-37

skipif mysql # not compatible
query I rowsort label-3246
SELECT SUM ( - 37 ) AS col1
----
-37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3247
SELECT ALL - CAST( NULL AS SIGNED ) * + 14 * 1 / + - 96 + - 88 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3247
SELECT ALL - CAST ( NULL AS INTEGER ) * + 14 * 1 / + - 96 + - 88 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3248
SELECT ALL + COALESCE ( COUNT( * ), + 0, - 37 )
----
1

skipif mysql # not compatible
query I rowsort label-3248
SELECT ALL + COALESCE ( COUNT ( * ), + 0, - 37 )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3249
SELECT 80 * COUNT( * ) + 72 DIV + + 77 AS col1
----
80

skipif mysql # not compatible
query I rowsort label-3249
SELECT 80 * COUNT ( * ) + 72 / + + 77 AS col1
----
80

query I rowsort
SELECT - 98 + + 39 AS col0
----
-59

query I rowsort
SELECT ALL + 81 - - - 30
----
51

query I rowsort
SELECT + 15 * - 26 AS col2
----
-390

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3253
SELECT - 29, - CAST( NULL AS SIGNED ) + - CASE + 63 WHEN - - 61 * + 65 * - 38 * + 38 / - 66 + + 56 THEN - 16 / 64 ELSE NULL END + - NULLIF ( 28 + + 57 * - 26, 76 * + 38 ) AS col2
----
-29
NULL

skipif mysql # not compatible
query II rowsort label-3253
SELECT - 29, - CAST ( NULL AS INTEGER ) + - CASE + 63 WHEN - - 61 * + 65 * - 38 * + 38 / - 66 + + 56 THEN - 16 / 64 ELSE NULL END + - NULLIF ( 28 + + 57 * - 26, 76 * + 38 ) AS col2
----
-29
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3254
SELECT MAX( + + 35 ) AS col1
----
35

skipif mysql # not compatible
query I rowsort label-3254
SELECT MAX ( + + 35 ) AS col1
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-3255
SELECT - 3 + + ( + 2 ) - 87 * - MAX( ALL 49 )
----
4262

skipif mysql # not compatible
query I rowsort label-3255
SELECT - 3 + + ( + 2 ) - 87 * - MAX ( ALL 49 )
----
4262

query II rowsort
SELECT ALL 86 AS col2, - 36 AS col1
----
86
-36

query I rowsort
SELECT - 79 * - 68 AS col1
----
5372

onlyif mysql # aggregate syntax: 
query I rowsort label-3258
SELECT + CASE + + 27 WHEN + 79 * - - 41 THEN + + 18 + SUM( - - 64 ) - + 32 WHEN COUNT( * ) + + 38 THEN - COUNT( * ) ELSE NULL END * + 88
----
NULL

skipif mysql # not compatible
query I rowsort label-3258
SELECT + CASE + + 27 WHEN + 79 * - - 41 THEN + + 18 + SUM ( - - 64 ) - + 32 WHEN COUNT ( * ) + + 38 THEN - COUNT ( * ) ELSE NULL END * + 88
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3259
SELECT + 44 + 92 - - ( - COALESCE ( - 71, - CASE + CASE - COUNT( * ) WHEN 86 THEN NULL ELSE 34 + 85 END WHEN 81 THEN - MAX( + 71 ) ELSE NULL END * 25 + 71 ) ) + - 56
----
151

skipif mysql # not compatible
query I rowsort label-3259
SELECT + 44 + 92 - - ( - COALESCE ( - 71, - CASE + CASE - COUNT ( * ) WHEN 86 THEN NULL ELSE 34 + 85 END WHEN 81 THEN - MAX ( + 71 ) ELSE NULL END * 25 + 71 ) ) + - 56
----
151

query II rowsort
SELECT ALL 43 AS col0, 56 AS col2
----
43
56

query I rowsort
SELECT + 73 + - + 97 col2
----
-24

query I rowsort
SELECT ALL ( + - COALESCE ( - + 93, 82 * + 38, 76 ) ) AS col2
----
93

query I rowsort
SELECT DISTINCT ( 92 )
----
92

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3264
SELECT DISTINCT - COUNT( * ) DIV + + 45 col2
----
0

skipif mysql # not compatible
query I rowsort label-3264
SELECT DISTINCT - COUNT ( * ) / + + 45 col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3265
SELECT - 69 AS col0, + COUNT( * )
----
-69
1

skipif mysql # not compatible
query II rowsort label-3265
SELECT - 69 AS col0, + COUNT ( * )
----
-69
1

query I rowsort
SELECT ALL CASE - 37 WHEN + 32 THEN 90 END col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3267
SELECT ALL COALESCE ( + - 62, + 54, - 84 ) / + 86 * + ( - 94 ) * + + COUNT( * ) + - CASE ( 1 ) WHEN - ( - 2 ) - 17 THEN NULL WHEN - 17 THEN 33 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3267
SELECT ALL COALESCE ( + - 62, + 54, - 84 ) / + 86 * + ( - 94 ) * + + COUNT ( * ) + - CASE ( 1 ) WHEN - ( - 2 ) - 17 THEN NULL WHEN - 17 THEN 33 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3268
SELECT + - MAX( DISTINCT 76 ) DIV + 95 - 93
----
-93

skipif mysql # not compatible
query I rowsort label-3268
SELECT + - MAX ( DISTINCT 76 ) / + 95 - 93
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-3269
SELECT + + ( COUNT( DISTINCT - 40 ) ) + + 68
----
69

skipif mysql # not compatible
query I rowsort label-3269
SELECT + + ( COUNT ( DISTINCT - 40 ) ) + + 68
----
69

query I rowsort
SELECT DISTINCT 63 * - + 48 col2
----
-3024

query I rowsort
SELECT + - 86 + + 43 AS col1
----
-43

onlyif mysql # DIV for integer division: 
query I rowsort label-3272
SELECT + - 16 DIV + 51 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3272
SELECT + - 16 / + 51 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3273
SELECT + COUNT( * ) + - + 11 - 83 AS col0
----
-93

skipif mysql # not compatible
query I rowsort label-3273
SELECT + COUNT ( * ) + - + 11 - 83 AS col0
----
-93

query I rowsort
SELECT ALL 91 + ( 61 ) AS col1
----
152

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3275
SELECT - CAST( - 99 AS SIGNED ) AS col2
----
99

skipif mysql # not compatible
query I rowsort label-3275
SELECT - CAST ( - 99 AS INTEGER ) AS col2
----
99

query I rowsort
SELECT - 34 * - 41 AS col0
----
1394

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3277
SELECT ALL 4 + - NULLIF ( - CAST( NULL AS SIGNED ), 78 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3277
SELECT ALL 4 + - NULLIF ( - CAST ( NULL AS INTEGER ), 78 )
----
NULL

query I rowsort
SELECT + 74 + NULLIF ( + - 55, 47 * + 83 ) AS col0
----
19

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3279
SELECT DISTINCT + 14 DIV - + 39 * - 71 + + CAST( + + 52 AS SIGNED ) * 2 AS col0
----
104

skipif mysql # not compatible
query I rowsort label-3279
SELECT DISTINCT + 14 / - + 39 * - 71 + + CAST ( + + 52 AS INTEGER ) * 2 AS col0
----
104

query II rowsort
SELECT ALL + - 31 col1, + 0 * - 69 AS col0
----
-31
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3281
SELECT + CASE + + 58 WHEN - COUNT( * ) * 87 THEN + 11 - + + ( 39 ) + 35 + - 54 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3281
SELECT + CASE + + 58 WHEN - COUNT ( * ) * 87 THEN + 11 - + + ( 39 ) + 35 + - 54 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3282
SELECT ALL - + 9 / - 83 - - COUNT( * ) + + - CASE 89 WHEN + + 57 * + - 18 THEN - - 32 END - COUNT( 82 - ( - 0 ) ) * + 58
----
NULL

skipif mysql # not compatible
query I rowsort label-3282
SELECT ALL - + 9 / - 83 - - COUNT ( * ) + + - CASE 89 WHEN + + 57 * + - 18 THEN - - 32 END - COUNT ( 82 - ( - 0 ) ) * + 58
----
NULL

query II rowsort
SELECT ALL + + 98, 53 AS col1
----
98
53

onlyif mysql # aggregate syntax: 
query I rowsort label-3284
SELECT - + 9 + + - ( ( - ( - MAX( DISTINCT + 88 ) ) ) )
----
-97

skipif mysql # not compatible
query I rowsort label-3284
SELECT - + 9 + + - ( ( - ( - MAX ( DISTINCT + 88 ) ) ) )
----
-97

query I rowsort
SELECT + 76 * - 99 col0
----
-7524

query I rowsort
SELECT DISTINCT - 66 * 22 AS col2
----
-1452

query I rowsort
SELECT ALL - 48 * + 65
----
-3120

onlyif mysql # DIV for integer division: 
query I rowsort label-3288
SELECT - 46 DIV 80 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3288
SELECT - 46 / 80 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3289
SELECT ALL 52 DIV - + NULLIF ( - - 32, ( + 42 ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-3289
SELECT ALL 52 / - + NULLIF ( - - 32, ( + 42 ) ) AS col1
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3290
SELECT ALL + CASE + + CAST( + CAST( + 90 AS SIGNED ) AS SIGNED ) WHEN + 43 + - + 72 + + - 85 * - 7 * - 35 THEN + COUNT( * ) + + 45 ELSE - 73 END
----
-73

skipif mysql # not compatible
query I rowsort label-3290
SELECT ALL + CASE + + CAST ( + CAST ( + 90 AS INTEGER ) AS INTEGER ) WHEN + 43 + - + 72 + + - 85 * - 7 * - 35 THEN + COUNT ( * ) + + 45 ELSE - 73 END
----
-73

onlyif mysql # aggregate syntax: 
query II rowsort label-3291
SELECT DISTINCT + MIN( - 44 ) AS col0, - 7 * 95 - - + 83 + + 82
----
-44
-500

skipif mysql # not compatible
query II rowsort label-3291
SELECT DISTINCT + MIN ( - 44 ) AS col0, - 7 * 95 - - + 83 + + 82
----
-44
-500

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3292
SELECT DISTINCT + ( + MAX( - CASE - + 2 WHEN - + CAST( NULL AS SIGNED ) THEN CASE WHEN NOT NULL = 34 THEN 31 ELSE NULL END * - 35 END ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3292
SELECT DISTINCT + ( + MAX ( - CASE - + 2 WHEN - + CAST ( NULL AS INTEGER ) THEN CASE WHEN NOT NULL = 34 THEN 31 ELSE NULL END * - 35 END ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3293
SELECT DISTINCT + MAX( + 99 ) * + COUNT( * ) AS col1
----
99

skipif mysql # not compatible
query I rowsort label-3293
SELECT DISTINCT + MAX ( + 99 ) * + COUNT ( * ) AS col1
----
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3294
SELECT DISTINCT - 3 DIV 44 * + ( - - 92 ) col0, + COUNT( * ) AS col1
----
0
1

skipif mysql # not compatible
query II rowsort label-3294
SELECT DISTINCT - 3 / 44 * + ( - - 92 ) col0, + COUNT ( * ) AS col1
----
0
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3295
SELECT + 86 - - COUNT( * ) + + 11 + + CAST( - + 98 AS SIGNED ) * - COUNT( ALL 41 ) + 91 * + + 62 * 80 * 53 AS col2
----
23922276

skipif mysql # not compatible
query I rowsort label-3295
SELECT + 86 - - COUNT ( * ) + + 11 + + CAST ( - + 98 AS INTEGER ) * - COUNT ( ALL 41 ) + 91 * + + 62 * 80 * 53 AS col2
----
23922276

onlyif mysql # aggregate syntax: 
query I rowsort label-3296
SELECT - 92 * 41 * - + ( COUNT( * ) )
----
3772

skipif mysql # not compatible
query I rowsort label-3296
SELECT - 92 * 41 * - + ( COUNT ( * ) )
----
3772

onlyif mysql # aggregate syntax: 
query I rowsort label-3297
SELECT COALESCE ( + 29, NULLIF ( + 16, + + 47 * - COALESCE ( + 75, - ( + COUNT( * ) ) ) ), 43 )
----
29

skipif mysql # not compatible
query I rowsort label-3297
SELECT COALESCE ( + 29, NULLIF ( + 16, + + 47 * - COALESCE ( + 75, - ( + COUNT ( * ) ) ) ), 43 )
----
29

query I rowsort
SELECT NULLIF ( - 81, - 52 ) AS col2
----
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-3299
SELECT - 80 DIV - + 86
----
0

skipif mysql # not compatible
query I rowsort label-3299
SELECT - 80 / - + 86
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3300
SELECT - 85 + - 50 AS col1, + COUNT( * ) + - 88
----
-135
-87

skipif mysql # not compatible
query II rowsort label-3300
SELECT - 85 + - 50 AS col1, + COUNT ( * ) + - 88
----
-135
-87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3301
SELECT + CASE CAST( NULL AS SIGNED ) WHEN - COUNT( - 59 ) / + ( - 27 ) THEN - 42 * COALESCE ( + 49, 66 ) * 7 WHEN 42 / - 88 THEN NULL END * 41
----
NULL

skipif mysql # not compatible
query I rowsort label-3301
SELECT + CASE CAST ( NULL AS INTEGER ) WHEN - COUNT ( - 59 ) / + ( - 27 ) THEN - 42 * COALESCE ( + 49, 66 ) * 7 WHEN 42 / - 88 THEN NULL END * 41
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3302
SELECT - 32 - - MIN( - 55 )
----
-87

skipif mysql # not compatible
query I rowsort label-3302
SELECT - 32 - - MIN ( - 55 )
----
-87

onlyif mysql # aggregate syntax: 
query II rowsort label-3303
SELECT ALL ( - 55 ), 46 + + 88 * + CASE - ( 57 ) WHEN + + 82 * + 49 THEN NULL ELSE COUNT( * ) END AS col0
----
-55
134

skipif mysql # not compatible
query II rowsort label-3303
SELECT ALL ( - 55 ), 46 + + 88 * + CASE - ( 57 ) WHEN + + 82 * + 49 THEN NULL ELSE COUNT ( * ) END AS col0
----
-55
134

onlyif mysql # aggregate syntax: 
query I rowsort label-3304
SELECT COUNT( * ) - 58
----
-57

skipif mysql # not compatible
query I rowsort label-3304
SELECT COUNT ( * ) - 58
----
-57

query I rowsort
SELECT ALL 20 * + 93
----
1860

onlyif mysql # aggregate syntax: 
query I rowsort label-3306
SELECT MAX( DISTINCT COALESCE ( + ( + + ( - + 39 ) ), - 71 + - 53 ) ) * + + 9
----
-351

skipif mysql # not compatible
query I rowsort label-3306
SELECT MAX ( DISTINCT COALESCE ( + ( + + ( - + 39 ) ), - 71 + - 53 ) ) * + + 9
----
-351

query II rowsort
SELECT ALL + 41 + - 71 AS col2, + 82 AS col1
----
-30
82

query I rowsort
SELECT DISTINCT 37 + + 7 + - 9 + - 51 + - + 29 * + + 3 AS col1
----
-103

query I rowsort
SELECT DISTINCT - - 51 * + + 22
----
1122

query I rowsort
SELECT + 13 + + 73 AS col2
----
86

query I rowsort
SELECT + COALESCE ( - 53, - ( + - 70 ) + - 86 ) AS col1
----
-53

query I rowsort
SELECT ALL - 26 * 70
----
-1820

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3313
SELECT 89 + - 78 + 91 + + + COALESCE ( COUNT( * ), + 97 * - 1, 59 * + COUNT( * ) ) + MIN( DISTINCT 92 + ( - 8 - - CAST( NULL AS SIGNED ) ) * + ( 81 ) ) * ( 59 ) * + MIN( ALL 73 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3313
SELECT 89 + - 78 + 91 + + + COALESCE ( COUNT ( * ), + 97 * - 1, 59 * + COUNT ( * ) ) + MIN ( DISTINCT 92 + ( - 8 - - CAST ( NULL AS INTEGER ) ) * + ( 81 ) ) * ( 59 ) * + MIN ( ALL 73 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3314
SELECT + 96 - - - 72 + + 76 * - MIN( DISTINCT - 56 ) * + 84 + 33 + + 55 DIV - 59
----
357561

skipif mysql # not compatible
query I rowsort label-3314
SELECT + 96 - - - 72 + + 76 * - MIN ( DISTINCT - 56 ) * + 84 + 33 + + 55 / - 59
----
357561

query I rowsort
SELECT ALL 75 + + 81
----
156

onlyif mysql # aggregate syntax: 
query I rowsort label-3316
SELECT ALL SUM( - 31 ) + 75
----
44

skipif mysql # not compatible
query I rowsort label-3316
SELECT ALL SUM ( - 31 ) + 75
----
44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3317
SELECT CASE 95 WHEN + 26 THEN + - 18 ELSE + SUM( ALL + CAST( NULL AS SIGNED ) ) END * + - 15
----
NULL

skipif mysql # not compatible
query I rowsort label-3317
SELECT CASE 95 WHEN + 26 THEN + - 18 ELSE + SUM ( ALL + CAST ( NULL AS INTEGER ) ) END * + - 15
----
NULL

query I rowsort
SELECT - NULLIF ( + 55, - - 46 ) AS col2
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-3319
SELECT ALL + 74 + 64 + - ( + COUNT( * ) ) + + 44
----
181

skipif mysql # not compatible
query I rowsort label-3319
SELECT ALL + 74 + 64 + - ( + COUNT ( * ) ) + + 44
----
181

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3320
SELECT ALL + 10 * 29 * - CAST( + + COUNT( * ) AS SIGNED ) AS col2, CAST( NULL AS SIGNED )
----
-290
NULL

skipif mysql # not compatible
query II rowsort label-3320
SELECT ALL + 10 * 29 * - CAST ( + + COUNT ( * ) AS INTEGER ) AS col2, CAST ( NULL AS INTEGER )
----
-290
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3321
SELECT ALL - - NULLIF ( + 14, - + COUNT( * ) - + + 64 * + 31 - + ( - + 45 ) ) + COUNT( * ) - - 13 AS col1
----
28

skipif mysql # not compatible
query I rowsort label-3321
SELECT ALL - - NULLIF ( + 14, - + COUNT ( * ) - + + 64 * + 31 - + ( - + 45 ) ) + COUNT ( * ) - - 13 AS col1
----
28

query I rowsort
SELECT ALL 24 + - - 31 AS col2
----
55

query I rowsort
SELECT 92 * + - 28 col2
----
-2576

onlyif mysql # aggregate syntax: 
query II rowsort label-3324
SELECT + COALESCE ( - 1, - 94 ) * 78 AS col1, 87 * - 97 + + COUNT( * )
----
-78
-8438

skipif mysql # not compatible
query II rowsort label-3324
SELECT + COALESCE ( - 1, - 94 ) * 78 AS col1, 87 * - 97 + + COUNT ( * )
----
-78
-8438

query I rowsort
SELECT 40 + 75 AS col0
----
115

query I rowsort
SELECT 71 * - 81
----
-5751

onlyif mysql # aggregate syntax: 
query II rowsort label-3327
SELECT DISTINCT + 16 * + 35 AS col2, COUNT( * ) + + 54 * + - NULLIF ( - 9, - AVG ( DISTINCT 20 ) ) AS col2
----
560
487

skipif mysql # not compatible
query II rowsort label-3327
SELECT DISTINCT + 16 * + 35 AS col2, COUNT ( * ) + + 54 * + - NULLIF ( - 9, - AVG ( DISTINCT 20 ) ) AS col2
----
560
487

query I rowsort
SELECT ALL ( - 36 ) - + 63 AS col1
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-3329
SELECT - MIN( DISTINCT - - 76 ) * 87 * COUNT( * ) - + 7
----
-6619

skipif mysql # not compatible
query I rowsort label-3329
SELECT - MIN ( DISTINCT - - 76 ) * 87 * COUNT ( * ) - + 7
----
-6619

query I rowsort
SELECT ALL 11 * - + 11 AS col1
----
-121

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3331
SELECT 10 + + - CASE SUM( ALL + 63 ) WHEN + COALESCE ( - - 5, + + 33 ) THEN - 97 WHEN + - CAST( + 12 AS SIGNED ) THEN NULL ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3331
SELECT 10 + + - CASE SUM ( ALL + 63 ) WHEN + COALESCE ( - - 5, + + 33 ) THEN - 97 WHEN + - CAST ( + 12 AS INTEGER ) THEN NULL ELSE NULL END AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3332
SELECT ALL 28 * + - 0 / + - CAST( NULL AS SIGNED ), CAST( NULL AS SIGNED )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-3332
SELECT ALL 28 * + - 0 / + - CAST ( NULL AS INTEGER ), CAST ( NULL AS INTEGER )
----
NULL
NULL

query I rowsort
SELECT 17 * 80 AS col2
----
1360

query I rowsort
SELECT 29 * + + 84
----
2436

onlyif mysql # DIV for integer division: 
query I rowsort label-3335
SELECT 17 DIV 19 + - 31 col2
----
-31

skipif mysql # not compatible
query I rowsort label-3335
SELECT 17 / 19 + - 31 col2
----
-31

query I rowsort
SELECT 7 * - 51
----
-357

query I rowsort
SELECT 19 * + 86
----
1634

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3338
SELECT 55 + + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3338
SELECT 55 + + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-3339
SELECT + 81 AS col1, - 21 DIV + 78
----
81
0

skipif mysql # not compatible
query II rowsort label-3339
SELECT + 81 AS col1, - 21 / + 78
----
81
0

query I rowsort
SELECT ALL - NULLIF ( - - 25, + 69 )
----
-25

query I rowsort
SELECT ALL - 91 + + - 18
----
-109

query I rowsort
SELECT 45 + - 33
----
12

onlyif mysql # DIV for integer division: 
query I rowsort label-3343
SELECT 51 DIV 50
----
1

skipif mysql # not compatible
query I rowsort label-3343
SELECT 51 / 50
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3344
SELECT DISTINCT COUNT( * ) * - 9
----
-9

skipif mysql # not compatible
query I rowsort label-3344
SELECT DISTINCT COUNT ( * ) * - 9
----
-9

query I rowsort
SELECT ALL + 46 * 10
----
460

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3346
SELECT CAST( NULL AS SIGNED ) + + + NULLIF ( + - 84, - 94 / - + 75 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3346
SELECT CAST ( NULL AS INTEGER ) + + + NULLIF ( + - 84, - 94 / - + 75 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3347
SELECT - 53 * 53 + + COUNT( * ) * + 73 * - 48 + COUNT( * ) AS col2
----
-6312

skipif mysql # not compatible
query I rowsort label-3347
SELECT - 53 * 53 + + COUNT ( * ) * + 73 * - 48 + COUNT ( * ) AS col2
----
-6312

query I rowsort
SELECT DISTINCT + 38 + - - 13
----
51

onlyif mysql # aggregate syntax: 
query II rowsort label-3349
SELECT - - COUNT( * ) AS col1, + 94 + + ( 42 ) - + 63
----
1
73

skipif mysql # not compatible
query II rowsort label-3349
SELECT - - COUNT ( * ) AS col1, + 94 + + ( 42 ) - + 63
----
1
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3350
SELECT ALL - - COUNT( * ) + - + 69 + + - MAX( ALL - + ( 2 ) ) + + COALESCE ( - - 4, 58 ) * CAST( + - COALESCE ( + 45, ( 97 ) ) AS SIGNED ) + 42 DIV 36 AS col0
----
-245

skipif mysql # not compatible
query I rowsort label-3350
SELECT ALL - - COUNT ( * ) + - + 69 + + - MAX ( ALL - + ( 2 ) ) + + COALESCE ( - - 4, 58 ) * CAST ( + - COALESCE ( + 45, ( 97 ) ) AS INTEGER ) + 42 / 36 AS col0
----
-245

query I rowsort
SELECT ALL + + 86 + + 62 AS col1
----
148

query I rowsort
SELECT - COALESCE ( + 78, - - 33 )
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-3353
SELECT COUNT( * ) + + 39 * - + 79 + - 42
----
-3122

skipif mysql # not compatible
query I rowsort label-3353
SELECT COUNT ( * ) + + 39 * - + 79 + - 42
----
-3122

onlyif mysql # aggregate syntax: 
query I rowsort label-3354
SELECT - MIN( - COALESCE ( 52, + 59, + 4 * + - ( 51 ) * 63, + 77 * 55 * COALESCE ( - 53, + 1, - 77 ) ) )
----
52

skipif mysql # not compatible
query I rowsort label-3354
SELECT - MIN ( - COALESCE ( 52, + 59, + 4 * + - ( 51 ) * 63, + 77 * 55 * COALESCE ( - 53, + 1, - 77 ) ) )
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-3355
SELECT DISTINCT - + COUNT( * ) - - 5 + - 55 AS col0
----
-51

skipif mysql # not compatible
query I rowsort label-3355
SELECT DISTINCT - + COUNT ( * ) - - 5 + - 55 AS col0
----
-51

query I rowsort
SELECT ALL + 64 * + 14
----
896

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3357
SELECT ALL - 53 * + 14 * - 89 * 72 * + COUNT( * ) + - 34 + 58 * + + NULLIF ( + 98, COALESCE ( 13, CAST( - 31 AS SIGNED ) ) ) * 25 AS col2
----
4896802

skipif mysql # not compatible
query I rowsort label-3357
SELECT ALL - 53 * + 14 * - 89 * 72 * + COUNT ( * ) + - 34 + 58 * + + NULLIF ( + 98, COALESCE ( 13, CAST ( - 31 AS INTEGER ) ) ) * 25 AS col2
----
4896802

query II rowsort
SELECT - 11 AS col2, 72
----
-11
72

onlyif mysql # aggregate syntax: 
query II rowsort label-3359
SELECT ALL - 65 col1, + COUNT( * ) * 47
----
-65
47

skipif mysql # not compatible
query II rowsort label-3359
SELECT ALL - 65 col1, + COUNT ( * ) * 47
----
-65
47

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3360
SELECT ALL + + CASE - CAST( + 6 AS DECIMAL ) WHEN 35 THEN 62 END - - + 33
----
NULL

skipif mysql # not compatible
query I rowsort label-3360
SELECT ALL + + CASE - CAST ( + 6 AS REAL ) WHEN 35 THEN 62 END - - + 33
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3361
SELECT 55 * + 62 - - - COUNT( * ) * + 10 + - - 44 * + + ( + 24 )
----
4456

skipif mysql # not compatible
query I rowsort label-3361
SELECT 55 * + 62 - - - COUNT ( * ) * + 10 + - - 44 * + + ( + 24 )
----
4456

onlyif mysql # aggregate syntax: 
query I rowsort label-3362
SELECT MIN( DISTINCT + - 44 ) + - + 14 - - 45
----
-13

skipif mysql # not compatible
query I rowsort label-3362
SELECT MIN ( DISTINCT + - 44 ) + - + 14 - - 45
----
-13

query I rowsort
SELECT DISTINCT - - 11 col0
----
11

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3364
SELECT ALL COUNT( * ) DIV 37 AS col1, 62
----
0
62

skipif mysql # not compatible
query II rowsort label-3364
SELECT ALL COUNT ( * ) / 37 AS col1, 62
----
0
62

onlyif mysql # aggregate syntax: 
query I rowsort label-3365
SELECT COUNT( * ) * + - 63
----
-63

skipif mysql # not compatible
query I rowsort label-3365
SELECT COUNT ( * ) * + - 63
----
-63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3366
SELECT ALL MAX( ( 80 ) ) DIV - SUM( + + 11 )
----
-7

skipif mysql # not compatible
query I rowsort label-3366
SELECT ALL MAX ( ( 80 ) ) / - SUM ( + + 11 )
----
-7

query II rowsort
SELECT ALL - 74 AS col0, + 81
----
-74
81

onlyif mysql # aggregate syntax: 
query I rowsort label-3368
SELECT COUNT( * ) / 5 * - CASE + 90 WHEN 17 THEN + 29 + 95 * - 79 WHEN + 61 - - 90 THEN NULL END / - - 23 * 84 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3368
SELECT COUNT ( * ) / 5 * - CASE + 90 WHEN 17 THEN + 29 + 95 * - 79 WHEN + 61 - - 90 THEN NULL END / - - 23 * 84 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3369
SELECT + 57 * + + 83 + - MIN( + - 94 ) + COALESCE ( - 90, + 92 + - CAST( NULL AS SIGNED ) - + + 95 ) AS col1
----
4735

skipif mysql # not compatible
query I rowsort label-3369
SELECT + 57 * + + 83 + - MIN ( + - 94 ) + COALESCE ( - 90, + 92 + - CAST ( NULL AS INTEGER ) - + + 95 ) AS col1
----
4735

query I rowsort
SELECT ALL ( 44 ) * - + 95
----
-4180

query I rowsort
SELECT DISTINCT + 48 * + + 78 + - + 94
----
3650

query I rowsort
SELECT + 50 + + 62 AS col1
----
112

onlyif mysql # aggregate syntax: 
query I rowsort label-3373
SELECT COUNT( ALL 73 )
----
1

skipif mysql # not compatible
query I rowsort label-3373
SELECT COUNT ( ALL 73 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3374
SELECT + 85 * - NULLIF ( + ( - + MIN( DISTINCT + 52 ) ), + - 41 * + + 41 + CAST( 41 AS SIGNED ) )
----
4420

skipif mysql # not compatible
query I rowsort label-3374
SELECT + 85 * - NULLIF ( + ( - + MIN ( DISTINCT + 52 ) ), + - 41 * + + 41 + CAST ( 41 AS INTEGER ) )
----
4420

onlyif mysql # aggregate syntax: 
query I rowsort label-3375
SELECT + COALESCE ( ( - + 57 ), - 87, SUM( + - 71 ) + + 37, + + NULLIF ( + - 95, - 67 ) ) AS col2
----
-57

skipif mysql # not compatible
query I rowsort label-3375
SELECT + COALESCE ( ( - + 57 ), - 87, SUM ( + - 71 ) + + 37, + + NULLIF ( + - 95, - 67 ) ) AS col2
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-3376
SELECT + 14 * + MAX( DISTINCT + 83 ) * - - 43
----
49966

skipif mysql # not compatible
query I rowsort label-3376
SELECT + 14 * + MAX ( DISTINCT + 83 ) * - - 43
----
49966

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3377
SELECT COUNT( DISTINCT - CAST( NULL AS SIGNED ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3377
SELECT COUNT ( DISTINCT - CAST ( NULL AS INTEGER ) ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3378
SELECT COUNT( + 42 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3378
SELECT COUNT ( + 42 ) AS col2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3379
SELECT + CAST( + CASE 41 WHEN + 92 - - 13 THEN 80 * + + 8 END AS SIGNED ) * 81 / 70 + + - 69 - + + 49 - - CAST( NULL AS SIGNED ) * 11 + - 88
----
NULL

skipif mysql # not compatible
query I rowsort label-3379
SELECT + CAST ( + CASE 41 WHEN + 92 - - 13 THEN 80 * + + 8 END AS INTEGER ) * 81 / 70 + + - 69 - + + 49 - - CAST ( NULL AS INTEGER ) * 11 + - 88
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3380
SELECT ALL + COUNT( * ) + + 36 - - 77 AS col2
----
114

skipif mysql # not compatible
query I rowsort label-3380
SELECT ALL + COUNT ( * ) + + 36 - - 77 AS col2
----
114

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3381
SELECT ALL - 35 + CAST( - ( 20 ) AS SIGNED ) AS col1, + ( - 91 ) AS col2
----
-55
-91

skipif mysql # not compatible
query II rowsort label-3381
SELECT ALL - 35 + CAST ( - ( 20 ) AS INTEGER ) AS col1, + ( - 91 ) AS col2
----
-55
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-3382
SELECT DISTINCT SUM( DISTINCT + 47 ) * 20
----
940

skipif mysql # not compatible
query I rowsort label-3382
SELECT DISTINCT SUM ( DISTINCT + 47 ) * 20
----
940

query I rowsort
SELECT DISTINCT ( + + 95 ) AS col0
----
95

query I rowsort
SELECT DISTINCT 96 + NULLIF ( 87, - 63 ) col1
----
183

query I rowsort
SELECT ALL + 43 * + 44
----
1892

onlyif mysql # aggregate syntax: 
query I rowsort label-3386
SELECT ALL NULLIF ( + 15, + 61 / + 49 + + 43 + COUNT( * ) / + 88 / 32 ) + + 27
----
42

skipif mysql # not compatible
query I rowsort label-3386
SELECT ALL NULLIF ( + 15, + 61 / + 49 + + 43 + COUNT ( * ) / + 88 / 32 ) + + 27
----
42

query I rowsort
SELECT DISTINCT + 16 * - + 42
----
-672

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3388
SELECT ALL - CAST( - 84 AS SIGNED ) - 77 - - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3388
SELECT ALL - CAST ( - 84 AS INTEGER ) - 77 - - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT ALL + 94 - + 35 AS col2
----
59

query I rowsort
SELECT - 67 * + ( + 32 ) * - 52 + 93
----
111581

onlyif mysql # aggregate syntax: 
query I rowsort label-3391
SELECT + COUNT( * ) + + ( + + 35 ) col0
----
36

skipif mysql # not compatible
query I rowsort label-3391
SELECT + COUNT ( * ) + + ( + + 35 ) col0
----
36

query II rowsort
SELECT 42 col0, 99 AS col1
----
42
99

onlyif mysql # aggregate syntax: 
query II rowsort label-3393
SELECT + COUNT( * ) AS col1, - 5 AS col2
----
1
-5

skipif mysql # not compatible
query II rowsort label-3393
SELECT + COUNT ( * ) AS col1, - 5 AS col2
----
1
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-3394
SELECT ALL + MIN( ALL + 84 )
----
84

skipif mysql # not compatible
query I rowsort label-3394
SELECT ALL + MIN ( ALL + 84 )
----
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3395
SELECT - + 22 * + CAST( - 46 AS SIGNED ) + - + 10 AS col2
----
1002

skipif mysql # not compatible
query I rowsort label-3395
SELECT - + 22 * + CAST ( - 46 AS INTEGER ) + - + 10 AS col2
----
1002

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3396
SELECT ALL - 58 - 51 * 59 - + - CAST( NULL AS SIGNED ) * - 5 / - 77 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3396
SELECT ALL - 58 - 51 * 59 - + - CAST ( NULL AS INTEGER ) * - 5 / - 77 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3397
SELECT - - SUM( - 27 ) * - + 16 AS col2
----
432

skipif mysql # not compatible
query I rowsort label-3397
SELECT - - SUM ( - 27 ) * - + 16 AS col2
----
432

onlyif mysql # aggregate syntax: 
query I rowsort label-3398
SELECT ALL - 17 * + + MIN( - 38 ) * - 34 AS col0
----
-21964

skipif mysql # not compatible
query I rowsort label-3398
SELECT ALL - 17 * + + MIN ( - 38 ) * - 34 AS col0
----
-21964

query I rowsort
SELECT DISTINCT ( + + 54 ) AS col0
----
54

onlyif mysql # aggregate syntax: 
query II rowsort label-3400
SELECT ALL COALESCE ( - - 22, - 27 + 0, + COUNT( * ) ) AS col1, - 18
----
22
-18

skipif mysql # not compatible
query II rowsort label-3400
SELECT ALL COALESCE ( - - 22, - 27 + 0, + COUNT ( * ) ) AS col1, - 18
----
22
-18

query I rowsort
SELECT - 87 + 82
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-3402
SELECT - 63 + - + 23 * + COUNT( * ) AS col2
----
-86

skipif mysql # not compatible
query I rowsort label-3402
SELECT - 63 + - + 23 * + COUNT ( * ) AS col2
----
-86

query I rowsort
SELECT - 69 * + + 97 AS col1
----
-6693

query I rowsort
SELECT ALL + ( 54 ) * + 54 AS col1
----
2916

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3405
SELECT ( - CAST( - - ( - 70 ) AS SIGNED ) ) AS col0
----
70

skipif mysql # not compatible
query I rowsort label-3405
SELECT ( - CAST ( - - ( - 70 ) AS INTEGER ) ) AS col0
----
70

query I rowsort
SELECT ALL - 20 * + 61 * - - 16 + + 25 AS col0
----
-19495

onlyif mysql # aggregate syntax: 
query II rowsort label-3407
SELECT - 9 + - 58 - - 78 col0, - NULLIF ( + + 97, + - 80 / + COUNT( * ) )
----
11
-97

skipif mysql # not compatible
query II rowsort label-3407
SELECT - 9 + - 58 - - 78 col0, - NULLIF ( + + 97, + - 80 / + COUNT ( * ) )
----
11
-97

query I rowsort
SELECT ( + ( 18 ) )
----
18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3409
SELECT + 27 * 99 + - 93 * 12 DIV 94 * + COUNT( * ) DIV - ( 32 ) AS col2
----
2673

skipif mysql # not compatible
query I rowsort label-3409
SELECT + 27 * 99 + - 93 * 12 / 94 * + COUNT ( * ) / - ( 32 ) AS col2
----
2673

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3410
SELECT ALL CASE ( - 52 ) WHEN - 88 + - - 61 * + 23 THEN + 51 WHEN + 69 THEN NULL END * - 85 + - 39 * 8 * - 50 - CAST( + 73 AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3410
SELECT ALL CASE ( - 52 ) WHEN - 88 + - - 61 * + 23 THEN + 51 WHEN + 69 THEN NULL END * - 85 + - 39 * 8 * - 50 - CAST ( + 73 AS INTEGER ) AS col2
----
NULL

query II rowsort
SELECT ( - 89 ) col1, - 94 * + 82
----
-89
-7708

query I rowsort
SELECT ALL + 71 * + 8 * 4 + - 52
----
2220

query II rowsort
SELECT - 73 + - - 79 - - 90 + - 3 * - + 37 AS col1, - 81 AS col2
----
207
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-3414
SELECT CASE WHEN NOT NULL IS NULL THEN CASE + CASE - + COUNT( * ) WHEN - 4 THEN 87 END WHEN - 89 THEN 48 WHEN 46 THEN - + CASE + ( 7 ) WHEN + 34 THEN 14 * 76 + + 55 END * COUNT( * ) END END * COUNT( * ) - + MAX( + 12 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3414
SELECT CASE WHEN NOT NULL IS NULL THEN CASE + CASE - + COUNT ( * ) WHEN - 4 THEN 87 END WHEN - 89 THEN 48 WHEN 46 THEN - + CASE + ( 7 ) WHEN + 34 THEN 14 * 76 + + 55 END * COUNT ( * ) END END * COUNT ( * ) - + MAX ( + 12 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3415
SELECT - COUNT( * ) + 63 + - MIN( ALL + CAST( - 41 AS SIGNED ) ) + + SUM( + + 42 )
----
145

skipif mysql # not compatible
query I rowsort label-3415
SELECT - COUNT ( * ) + 63 + - MIN ( ALL + CAST ( - 41 AS INTEGER ) ) + + SUM ( + + 42 )
----
145

onlyif mysql # aggregate syntax: 
query I rowsort label-3416
SELECT + COUNT( * ) + + 71 + 10
----
82

skipif mysql # not compatible
query I rowsort label-3416
SELECT + COUNT ( * ) + + 71 + 10
----
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3417
SELECT ALL 41 * ( - MIN( + CAST( NULL AS SIGNED ) ) ) - + 61 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3417
SELECT ALL 41 * ( - MIN ( + CAST ( NULL AS INTEGER ) ) ) - + 61 AS col1
----
NULL

query II rowsort
SELECT + 10 * + + 91 + + 46 + + 26 + - 39 AS col1, - 68 * 35 AS col0
----
943
-2380

query I rowsort
SELECT + NULLIF ( + - 67, 59 ) AS col0
----
-67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3420
SELECT ALL + 86 * + + 30 * ( - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3420
SELECT ALL + 86 * + + 30 * ( - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3421
SELECT ALL + - 33 * - - 82 + + 61 - + ( - ( - COUNT( * ) ) ) AS col0
----
-2646

skipif mysql # not compatible
query I rowsort label-3421
SELECT ALL + - 33 * - - 82 + + 61 - + ( - ( - COUNT ( * ) ) ) AS col0
----
-2646

onlyif mysql # DIV for integer division: 
query I rowsort label-3422
SELECT - - 6 + 26 + + 9 DIV + 94
----
32

skipif mysql # not compatible
query I rowsort label-3422
SELECT - - 6 + 26 + + 9 / + 94
----
32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3423
SELECT DISTINCT - CAST( - + 50 AS DECIMAL ) * + + COUNT( * ) - - COUNT( * ) - + + 26 + 82 * - ( + + CAST( NULL AS SIGNED ) ) * + CAST( - + 41 AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3423
SELECT DISTINCT - CAST ( - + 50 AS REAL ) * + + COUNT ( * ) - - COUNT ( * ) - + + 26 + 82 * - ( + + CAST ( NULL AS INTEGER ) ) * + CAST ( - + 41 AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3424
SELECT + 6 * - 83 * CASE - 94 WHEN + 44 * + + 40 THEN NULL WHEN 61 * + COUNT( * ) * - 90 - + 94 * - 47 THEN - 68 END - 90 + 34
----
NULL

skipif mysql # not compatible
query I rowsort label-3424
SELECT + 6 * - 83 * CASE - 94 WHEN + 44 * + + 40 THEN NULL WHEN 61 * + COUNT ( * ) * - 90 - + 94 * - 47 THEN - 68 END - 90 + 34
----
NULL

query I rowsort
SELECT + 40 + + + 31
----
71

query II rowsort
SELECT + + 90 + - + 98, + 59 AS col1
----
-8
59

onlyif mysql # aggregate syntax: 
query II rowsort label-3427
SELECT + - COUNT( * ) + - + 85 AS col0, - COUNT( * ) + - - 40 AS col1
----
-86
39

skipif mysql # not compatible
query II rowsort label-3427
SELECT + - COUNT ( * ) + - + 85 AS col0, - COUNT ( * ) + - - 40 AS col1
----
-86
39

query I rowsort
SELECT ALL - 10 * 25 * 6 AS col0
----
-1500

query I rowsort
SELECT - - ( + 48 ) + - 82
----
-34

query I rowsort
SELECT - + 41 * - 50 + - 76 col0
----
1974

query I rowsort
SELECT - ( + + 1 )
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3432
SELECT - 93 + - 27 DIV - 58, COUNT( * ) col1
----
-93
1

skipif mysql # not compatible
query II rowsort label-3432
SELECT - 93 + - 27 / - 58, COUNT ( * ) col1
----
-93
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3433
SELECT + 63 DIV + MIN( DISTINCT + 92 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3433
SELECT + 63 / + MIN ( DISTINCT + 92 ) AS col1
----
0

query I rowsort
SELECT - 69 + - 60
----
-129

onlyif mysql # aggregate syntax: 
query I rowsort label-3435
SELECT ALL - ( ( + COUNT( * ) ) ) + + 16 * - 80 AS col1
----
-1281

skipif mysql # not compatible
query I rowsort label-3435
SELECT ALL - ( ( + COUNT ( * ) ) ) + + 16 * - 80 AS col1
----
-1281

query I rowsort
SELECT + 40 * + + 50 * 99 * - + 37 AS col2
----
-7326000

onlyif mysql # aggregate syntax: 
query I rowsort label-3437
SELECT - COUNT( * ) + - 12
----
-13

skipif mysql # not compatible
query I rowsort label-3437
SELECT - COUNT ( * ) + - 12
----
-13

query I rowsort
SELECT ALL - 59 + 65
----
6

query I rowsort
SELECT 35 + 66 + - 79 + + COALESCE ( 23, 24 * - ( 51 ), - 50 * COALESCE ( 3, + 24 * + 59, 54 ), - 21 ) AS col2
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-3440
SELECT ALL 39 + COUNT( DISTINCT + - 83 ) * + 23 * - 47 + - MAX( 39 )
----
-1081

skipif mysql # not compatible
query I rowsort label-3440
SELECT ALL 39 + COUNT ( DISTINCT + - 83 ) * + 23 * - 47 + - MAX ( 39 )
----
-1081

query I rowsort
SELECT ALL + 86 + - 4 col1
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-3442
SELECT DISTINCT - MAX( 29 )
----
-29

skipif mysql # not compatible
query I rowsort label-3442
SELECT DISTINCT - MAX ( 29 )
----
-29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3443
SELECT ALL - CAST( + 31 AS SIGNED ) + - + 82 AS col1
----
-113

skipif mysql # not compatible
query I rowsort label-3443
SELECT ALL - CAST ( + 31 AS INTEGER ) + - + 82 AS col1
----
-113

onlyif mysql # aggregate syntax: 
query I rowsort label-3444
SELECT ALL + ( + NULLIF ( + ( - COUNT( * ) ), 68 ) ) * - COALESCE ( 8, - 76 ) * + 59
----
472

skipif mysql # not compatible
query I rowsort label-3444
SELECT ALL + ( + NULLIF ( + ( - COUNT ( * ) ), 68 ) ) * - COALESCE ( 8, - 76 ) * + 59
----
472

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3445
SELECT CAST( NULL AS SIGNED ) * - 34
----
NULL

skipif mysql # not compatible
query I rowsort label-3445
SELECT CAST ( NULL AS INTEGER ) * - 34
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3446
SELECT 70 + + + NULLIF ( + + COALESCE ( COUNT( * ), + 97 + 51, + - 12 * + COUNT( * ) * + 7 ), + 56 * + 58 + + COALESCE ( + + 72, + 28 ) * - 74 )
----
71

skipif mysql # not compatible
query I rowsort label-3446
SELECT 70 + + + NULLIF ( + + COALESCE ( COUNT ( * ), + 97 + 51, + - 12 * + COUNT ( * ) * + 7 ), + 56 * + 58 + + COALESCE ( + + 72, + 28 ) * - 74 )
----
71

query I rowsort
SELECT ALL + 87 * + 75 * - 36 col0
----
-234900

query I rowsort
SELECT ALL - 23 + + ( - 95 ) AS col2
----
-118

onlyif mysql # aggregate syntax: 
query I rowsort label-3449
SELECT DISTINCT + 69 * - - COUNT( * )
----
69

skipif mysql # not compatible
query I rowsort label-3449
SELECT DISTINCT + 69 * - - COUNT ( * )
----
69

query II rowsort
SELECT 13 AS col0, 1
----
13
1

query I rowsort
SELECT 60 * + 74
----
4440

onlyif mysql # aggregate syntax: 
query I rowsort label-3452
SELECT DISTINCT + 42 - COUNT( * ) col1
----
41

skipif mysql # not compatible
query I rowsort label-3452
SELECT DISTINCT + 42 - COUNT ( * ) col1
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-3453
SELECT - COUNT( + - 74 )
----
-1

skipif mysql # not compatible
query I rowsort label-3453
SELECT - COUNT ( + - 74 )
----
-1

query I rowsort
SELECT DISTINCT - - ( - 77 ) col2
----
-77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3455
SELECT ALL + COALESCE ( - 97, + 49, - + ( - - CAST( + + 74 AS SIGNED ) ) / + 56 / MIN( DISTINCT 31 ) * + + 2 + + 16 * + 98 ) / - CASE - 18 WHEN 82 / + MAX( ALL 22 ) THEN 45 - + 50 ELSE NULL END / CAST( - ( 83 ) AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-3455
SELECT ALL + COALESCE ( - 97, + 49, - + ( - - CAST ( + + 74 AS INTEGER ) ) / + 56 / MIN ( DISTINCT 31 ) * + + 2 + + 16 * + 98 ) / - CASE - 18 WHEN 82 / + MAX ( ALL 22 ) THEN 45 - + 50 ELSE NULL END / CAST ( - ( 83 ) AS REAL )
----
NULL

query I rowsort
SELECT + 22 * ( - 40 ) + - 16 - + 36
----
-932

query I rowsort
SELECT + - CASE + - 57 WHEN 16 * 75 THEN NULL WHEN - - 65 THEN - + 42 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3458
SELECT DISTINCT - - 99 DIV + 50 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3458
SELECT DISTINCT - - 99 / + 50 AS col0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3459
SELECT + CAST( - 2 AS SIGNED ) + 52 - + 19 * - 79 / CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3459
SELECT + CAST ( - 2 AS INTEGER ) + 52 - + 19 * - 79 / CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3460
SELECT + 49 DIV + ( - + 65 ) AS col1, 29 + + + COUNT( * ) * + + COUNT( + 94 )
----
0
30

skipif mysql # not compatible
query II rowsort label-3460
SELECT + 49 / + ( - + 65 ) AS col1, 29 + + + COUNT ( * ) * + + COUNT ( + 94 )
----
0
30

onlyif mysql # DIV for integer division: 
query I rowsort label-3461
SELECT ALL - 66 DIV + 26
----
-2

skipif mysql # not compatible
query I rowsort label-3461
SELECT ALL - 66 / + 26
----
-2

query I rowsort
SELECT - 58 + - - ( - + 28 ) AS col1
----
-86

onlyif mysql # aggregate syntax: 
query II rowsort label-3463
SELECT COUNT( * ) AS col2, 74
----
1
74

skipif mysql # not compatible
query II rowsort label-3463
SELECT COUNT ( * ) AS col2, 74
----
1
74

onlyif mysql # aggregate syntax: 
query I rowsort label-3464
SELECT 61 * + 88 * - COALESCE ( 12, - 5 * + 4 ) * + 75 - + + COUNT( * ) col2
----
-4831201

skipif mysql # not compatible
query I rowsort label-3464
SELECT 61 * + 88 * - COALESCE ( 12, - 5 * + 4 ) * + 75 - + + COUNT ( * ) col2
----
-4831201

onlyif mysql # DIV for integer division: 
query I rowsort label-3465
SELECT COALESCE ( ( - + 28 ), + - 60 DIV + + 17 )
----
-28

skipif mysql # not compatible
query I rowsort label-3465
SELECT COALESCE ( ( - + 28 ), + - 60 / + + 17 )
----
-28

query I rowsort
SELECT ALL - 75 * - - 43
----
-3225

onlyif mysql # aggregate syntax: 
query I rowsort label-3467
SELECT + 25 * + 10 + - COUNT( * )
----
249

skipif mysql # not compatible
query I rowsort label-3467
SELECT + 25 * + 10 + - COUNT ( * )
----
249

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3468
SELECT - NULLIF ( 68, + - COUNT( * ) ) - + + ( 11 ) + + 44 * - NULLIF ( CAST( NULL AS SIGNED ), - 6 / - 76 + - + 5 / - 94 ) + + + CAST( 55 AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3468
SELECT - NULLIF ( 68, + - COUNT ( * ) ) - + + ( 11 ) + + 44 * - NULLIF ( CAST ( NULL AS INTEGER ), - 6 / - 76 + - + 5 / - 94 ) + + + CAST ( 55 AS REAL ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3469
SELECT ALL + + MIN( - - ( + - 71 ) ) * + 25
----
-1775

skipif mysql # not compatible
query I rowsort label-3469
SELECT ALL + + MIN ( - - ( + - 71 ) ) * + 25
----
-1775

onlyif mysql # aggregate syntax: 
query I rowsort label-3470
SELECT ALL + COUNT( DISTINCT 19 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3470
SELECT ALL + COUNT ( DISTINCT 19 ) AS col0
----
1

query I rowsort
SELECT DISTINCT + 81 * 29 col2
----
2349

query II rowsort
SELECT - + 76 AS col0, + ( + 69 ) AS col1
----
-76
69

query I rowsort
SELECT DISTINCT - 6 + 71 AS col0
----
65

query II rowsort
SELECT 20 AS col2, + 1
----
20
1

query I rowsort
SELECT 26 * + 24 * 58 col2
----
36192

onlyif mysql # aggregate syntax: 
query I rowsort label-3476
SELECT ALL 28 + + 89 - + NULLIF ( + COUNT( * ), 27 )
----
116

skipif mysql # not compatible
query I rowsort label-3476
SELECT ALL 28 + + 89 - + NULLIF ( + COUNT ( * ), 27 )
----
116

onlyif mysql # DIV for integer division: 
query I rowsort label-3477
SELECT ALL 98 DIV - 16
----
-6

skipif mysql # not compatible
query I rowsort label-3477
SELECT ALL 98 / - 16
----
-6

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3478
SELECT 45 DIV 51 * - CAST( + 85 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-3478
SELECT 45 / 51 * - CAST ( + 85 AS INTEGER )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3479
SELECT ALL ( + ( - COALESCE ( + - 51, - COUNT( * ) + 54, 17 * - 3 ) ) ) + + 94 * ( + 58 ) AS col2
----
5503

skipif mysql # not compatible
query I rowsort label-3479
SELECT ALL ( + ( - COALESCE ( + - 51, - COUNT ( * ) + 54, 17 * - 3 ) ) ) + + 94 * ( + 58 ) AS col2
----
5503

query I rowsort
SELECT 35 + 27 + - 72
----
-10

onlyif mysql # DIV for integer division: 
query I rowsort label-3481
SELECT 70 DIV + - 61 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-3481
SELECT 70 / + - 61 AS col2
----
-1

query I rowsort
SELECT ALL 85 + 38 + - + NULLIF ( 78, + 15 ) + + - 68 * + - 53
----
3649

onlyif mysql # aggregate syntax: 
query I rowsort label-3483
SELECT - COUNT( * ) * - 80 + - - 81
----
161

skipif mysql # not compatible
query I rowsort label-3483
SELECT - COUNT ( * ) * - 80 + - - 81
----
161

onlyif mysql # aggregate syntax: 
query I rowsort label-3484
SELECT COUNT( DISTINCT - + 99 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-3484
SELECT COUNT ( DISTINCT - + 99 ) col1
----
1

query I rowsort
SELECT 54 * 1 * - - 72 * + 45
----
174960

onlyif mysql # DIV for integer division: 
query I rowsort label-3486
SELECT ALL - 28 DIV - 55
----
0

skipif mysql # not compatible
query I rowsort label-3486
SELECT ALL - 28 / - 55
----
0

query I rowsort
SELECT 92 * - + 34 + + 88 + - 92 * ( 39 )
----
-6628

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3488
SELECT + 68 DIV - - ( + 72 ) + + - 54 + + 73, NULLIF ( + + 13, + 94 + + 66 - AVG ( + COALESCE ( 17, - ( + + 31 ) ) ) ) * + COUNT( - CAST( 50 AS SIGNED ) ) col2
----
19
13

skipif mysql # not compatible
query II rowsort label-3488
SELECT + 68 / - - ( + 72 ) + + - 54 + + 73, NULLIF ( + + 13, + 94 + + 66 - AVG ( + COALESCE ( 17, - ( + + 31 ) ) ) ) * + COUNT ( - CAST ( 50 AS INTEGER ) ) col2
----
19
13

query I rowsort
SELECT 79 + + 97 * + 8
----
855

query II rowsort
SELECT ALL - 92 - - 5 + - 28 * + - 73 AS col2, + 57 * + - 7 AS col0
----
1957
-399

onlyif mysql # aggregate syntax: 
query I rowsort label-3491
SELECT DISTINCT + + MAX( - 22 ) * + 84 AS col0
----
-1848

skipif mysql # not compatible
query I rowsort label-3491
SELECT DISTINCT + + MAX ( - 22 ) * + 84 AS col0
----
-1848

query II rowsort
SELECT + 56 * - 37 * - - 74 * ( 56 ) + 32 - + 70 AS col0, 78 AS col1
----
-8586406
78

onlyif mysql # aggregate syntax: 
query I rowsort label-3493
SELECT ALL - + ( + - MIN( DISTINCT + 50 ) )
----
50

skipif mysql # not compatible
query I rowsort label-3493
SELECT ALL - + ( + - MIN ( DISTINCT + 50 ) )
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-3494
SELECT - 64 + + COUNT( * ) + + NULLIF ( - - 52, + + ( - 24 ) ) AS col0
----
-11

skipif mysql # not compatible
query I rowsort label-3494
SELECT - 64 + + COUNT ( * ) + + NULLIF ( - - 52, + + ( - 24 ) ) AS col0
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-3495
SELECT + + SUM( ALL + - CASE - - 1 WHEN 54 THEN NULL ELSE - + 19 END ) AS col0
----
19

skipif mysql # not compatible
query I rowsort label-3495
SELECT + + SUM ( ALL + - CASE - - 1 WHEN 54 THEN NULL ELSE - + 19 END ) AS col0
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-3496
SELECT - 47 + + NULLIF ( - 42, + + CASE 69 WHEN 74 - 6 + + 92 THEN NULL WHEN 77 + 95 + - + 3 * MAX( 91 ) + 39 + + 86 * + COUNT( * ) / - 86 THEN 93 WHEN 55 / - 40 THEN 71 ELSE NULL END )
----
-89

skipif mysql # not compatible
query I rowsort label-3496
SELECT - 47 + + NULLIF ( - 42, + + CASE 69 WHEN 74 - 6 + + 92 THEN NULL WHEN 77 + 95 + - + 3 * MAX ( 91 ) + 39 + + 86 * + COUNT ( * ) / - 86 THEN 93 WHEN 55 / - 40 THEN 71 ELSE NULL END )
----
-89

query I rowsort
SELECT + 86 * - 12
----
-1032

onlyif mysql # aggregate syntax: 
query I rowsort label-3498
SELECT ALL - + COUNT( * ) + - 59 AS col2
----
-60

skipif mysql # not compatible
query I rowsort label-3498
SELECT ALL - + COUNT ( * ) + - 59 AS col2
----
-60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3499
SELECT DISTINCT - COALESCE ( + - 0, + 80 DIV + COUNT( * ) ) DIV - + ( - + 87 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3499
SELECT DISTINCT - COALESCE ( + - 0, + 80 / + COUNT ( * ) ) / - + ( - + 87 ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3500
SELECT ALL SUM( + - 42 ) + MIN( ALL - 35 ) + + 0 AS col1
----
-77

skipif mysql # not compatible
query I rowsort label-3500
SELECT ALL SUM ( + - 42 ) + MIN ( ALL - 35 ) + + 0 AS col1
----
-77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3501
SELECT 75 * + - 48 + + 23 + 35 + + 45 - - 32 * + 46 * - - MIN( - - CAST( NULL AS SIGNED ) ) AS col1, + ( - + COUNT( * ) ) * + + 13 - ( - 8 )
----
NULL
-5

skipif mysql # not compatible
query II rowsort label-3501
SELECT 75 * + - 48 + + 23 + 35 + + 45 - - 32 * + 46 * - - MIN ( - - CAST ( NULL AS INTEGER ) ) AS col1, + ( - + COUNT ( * ) ) * + + 13 - ( - 8 )
----
NULL
-5

query I rowsort
SELECT DISTINCT - 77 + - + 57 AS col0
----
-134

onlyif mysql # aggregate syntax: 
query II rowsort label-3503
SELECT DISTINCT - 60 + 89, COUNT( * ) AS col0
----
29
1

skipif mysql # not compatible
query II rowsort label-3503
SELECT DISTINCT - 60 + 89, COUNT ( * ) AS col0
----
29
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3504
SELECT ALL - CASE + 59 WHEN - COUNT( * ) THEN NULL WHEN - 77 * 96 + + 60 THEN + 71 * + - COUNT( * ) * - - MAX( - - CAST( NULL AS SIGNED ) ) ELSE COUNT( * ) END + - - CAST( + ( - - 87 ) AS SIGNED ) + - - 75
----
161

skipif mysql # not compatible
query I rowsort label-3504
SELECT ALL - CASE + 59 WHEN - COUNT ( * ) THEN NULL WHEN - 77 * 96 + + 60 THEN + 71 * + - COUNT ( * ) * - - MAX ( - - CAST ( NULL AS INTEGER ) ) ELSE COUNT ( * ) END + - - CAST ( + ( - - 87 ) AS INTEGER ) + - - 75
----
161

query I rowsort
SELECT - 58 + + 19 AS col1
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-3506
SELECT ALL SUM( + - 65 ) AS col2
----
-65

skipif mysql # not compatible
query I rowsort label-3506
SELECT ALL SUM ( + - 65 ) AS col2
----
-65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3507
SELECT - 34 + CAST( NULL AS SIGNED ) * 25
----
NULL

skipif mysql # not compatible
query I rowsort label-3507
SELECT - 34 + CAST ( NULL AS INTEGER ) * 25
----
NULL

query I rowsort
SELECT - 93 * + 27 AS col1
----
-2511

onlyif mysql # aggregate syntax: 
query I rowsort label-3509
SELECT ALL + 59 + - COUNT( * ) + - ( + 12 )
----
46

skipif mysql # not compatible
query I rowsort label-3509
SELECT ALL + 59 + - COUNT ( * ) + - ( + 12 )
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-3510
SELECT ALL 98 + COUNT( * ) AS col1
----
99

skipif mysql # not compatible
query I rowsort label-3510
SELECT ALL 98 + COUNT ( * ) AS col1
----
99

query I rowsort
SELECT + 4 + - 78 AS col2
----
-74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3512
SELECT + CASE - 69 WHEN ( - - NULLIF ( + 26, - - 71 * - 11 + + 51 + - CAST( NULL AS SIGNED ) / COUNT( * ) ) ) THEN NULL WHEN 20 * + COALESCE ( - - 4, - 97, + 90 * - CAST( + 20 AS SIGNED ) ) * 12 THEN - 44 END + 67
----
NULL

skipif mysql # not compatible
query I rowsort label-3512
SELECT + CASE - 69 WHEN ( - - NULLIF ( + 26, - - 71 * - 11 + + 51 + - CAST ( NULL AS INTEGER ) / COUNT ( * ) ) ) THEN NULL WHEN 20 * + COALESCE ( - - 4, - 97, + 90 * - CAST ( + 20 AS INTEGER ) ) * 12 THEN - 44 END + 67
----
NULL

query I rowsort
SELECT ALL 86 - - 31
----
117

onlyif mysql # aggregate syntax: 
query II rowsort label-3514
SELECT + 56 + 16 * - + 82 AS col1, + SUM( DISTINCT 49 )
----
-1256
49

skipif mysql # not compatible
query II rowsort label-3514
SELECT + 56 + 16 * - + 82 AS col1, + SUM ( DISTINCT 49 )
----
-1256
49

onlyif mysql # aggregate syntax: 
query I rowsort label-3515
SELECT - 68 * COUNT( * ) col1
----
-68

skipif mysql # not compatible
query I rowsort label-3515
SELECT - 68 * COUNT ( * ) col1
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-3516
SELECT + ( 90 ) + COUNT( * ) AS col2
----
91

skipif mysql # not compatible
query I rowsort label-3516
SELECT + ( 90 ) + COUNT ( * ) AS col2
----
91

query II rowsort
SELECT 57 AS col1, - 39 * + 41 * - + 28 + + 82
----
57
44854

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3518
SELECT ALL CASE 17 WHEN - 92 THEN + COALESCE ( - + 67, COUNT( * ) * - 36 - COUNT( * ) ) WHEN - - 50 THEN + - 91 + + - 32 - CASE WHEN NOT ( 42 ) NOT BETWEEN + AVG ( DISTINCT - 47 ) AND + 79 / 3 THEN 43 * 61 END * - 25 WHEN MAX( ALL CAST( 96 AS SIGNED ) ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3518
SELECT ALL CASE 17 WHEN - 92 THEN + COALESCE ( - + 67, COUNT ( * ) * - 36 - COUNT ( * ) ) WHEN - - 50 THEN + - 91 + + - 32 - CASE WHEN NOT ( 42 ) NOT BETWEEN + AVG ( DISTINCT - 47 ) AND + 79 / 3 THEN 43 * 61 END * - 25 WHEN MAX ( ALL CAST ( 96 AS INTEGER ) ) THEN NULL END
----
NULL

query I rowsort
SELECT ALL 32 * + 20
----
640

onlyif mysql # aggregate syntax: 
query I rowsort label-3520
SELECT + CASE + AVG ( - ( + + 14 ) ) WHEN - COUNT( DISTINCT - ( + + ( - 32 ) ) ) * 24 THEN NULL WHEN - 26 + - COUNT( 33 ) * - ( + 66 ) - 37 THEN NULL ELSE - 56 + - 49 END
----
-105

skipif mysql # not compatible
query I rowsort label-3520
SELECT + CASE + AVG ( - ( + + 14 ) ) WHEN - COUNT ( DISTINCT - ( + + ( - 32 ) ) ) * 24 THEN NULL WHEN - 26 + - COUNT ( 33 ) * - ( + 66 ) - 37 THEN NULL ELSE - 56 + - 49 END
----
-105

onlyif mysql # aggregate syntax: 
query I rowsort label-3521
SELECT + SUM( ( - ( - 22 ) ) ) * - 31 AS col0
----
-682

skipif mysql # not compatible
query I rowsort label-3521
SELECT + SUM ( ( - ( - 22 ) ) ) * - 31 AS col0
----
-682

onlyif mysql # aggregate syntax: 
query I rowsort label-3522
SELECT + - MIN( - + 82 )
----
82

skipif mysql # not compatible
query I rowsort label-3522
SELECT + - MIN ( - + 82 )
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-3523
SELECT + SUM( + 7 ) * + 55 + 88 col2
----
473

skipif mysql # not compatible
query I rowsort label-3523
SELECT + SUM ( + 7 ) * + 55 + 88 col2
----
473

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3524
SELECT + + CAST( 56 AS SIGNED ) AS col1
----
56

skipif mysql # not compatible
query I rowsort label-3524
SELECT + + CAST ( 56 AS INTEGER ) AS col1
----
56

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3525
SELECT - - 38 DIV + - COUNT( * )
----
-38

skipif mysql # not compatible
query I rowsort label-3525
SELECT - - 38 / + - COUNT ( * )
----
-38

query II rowsort
SELECT DISTINCT + - 10, + 95 AS col0
----
-10
95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3527
SELECT ALL + AVG ( DISTINCT 73 ) / + 45 * + 47 * + + 51 / CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3527
SELECT ALL + AVG ( DISTINCT 73 ) / + 45 * + 47 * + + 51 / CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3528
SELECT + 7 DIV + 62 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3528
SELECT + 7 / + 62 AS col2
----
0

query I rowsort
SELECT DISTINCT + ( - - 29 ) * + 59 + ( + - 24 ) + 79 * - - 97 * - 48
----
-366137

query I rowsort
SELECT ALL + 34 * - ( + + 48 ) + 6
----
-1626

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3531
SELECT DISTINCT - + 19 * + 80 + ( - 5 ) + + CASE - MIN( + CASE - 46 WHEN + 61 * + 51 THEN + + ( + 91 ) WHEN + + 8 / - 88 * + 54 * 21 + - 71 * + 15 THEN NULL END ) WHEN - CAST( NULL AS DECIMAL ) * 60 THEN 32 / 5 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3531
SELECT DISTINCT - + 19 * + 80 + ( - 5 ) + + CASE - MIN ( + CASE - 46 WHEN + 61 * + 51 THEN + + ( + 91 ) WHEN + + 8 / - 88 * + 54 * 21 + - 71 * + 15 THEN NULL END ) WHEN - CAST ( NULL AS REAL ) * 60 THEN 32 / 5 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3532
SELECT + 64 + + - MIN( + 2 ) + 2 AS col1
----
64

skipif mysql # not compatible
query I rowsort label-3532
SELECT + 64 + + - MIN ( + 2 ) + 2 AS col1
----
64

query I rowsort
SELECT ALL + 69 * 34 + - 74 * ( + 9 ) AS col0
----
1680

query I rowsort
SELECT - + 93 * - 27
----
2511

query I rowsort
SELECT ALL 83 * - + 56
----
-4648

onlyif mysql # DIV for integer division: 
query I rowsort label-3536
SELECT - 23 DIV - + 14
----
1

skipif mysql # not compatible
query I rowsort label-3536
SELECT - 23 / - + 14
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3537
SELECT - SUM( DISTINCT 29 ) + - COUNT( * ) AS col2
----
-30

skipif mysql # not compatible
query I rowsort label-3537
SELECT - SUM ( DISTINCT 29 ) + - COUNT ( * ) AS col2
----
-30

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3538
SELECT COUNT( * ) AS col1, ( - 56 ) DIV + COALESCE ( - 77, + 6 * 60 - - - 12 + - MIN( + 90 ) * COUNT( * ) - - + 51 + - COUNT( * ) ) DIV - COUNT( * ) - - - 68
----
1
-68

skipif mysql # not compatible
query II rowsort label-3538
SELECT COUNT ( * ) AS col1, ( - 56 ) / + COALESCE ( - 77, + 6 * 60 - - - 12 + - MIN ( + 90 ) * COUNT ( * ) - - + 51 + - COUNT ( * ) ) / - COUNT ( * ) - - - 68
----
1
-68

onlyif mysql # aggregate syntax: 
query II rowsort label-3539
SELECT ALL COUNT( * ) AS col1, 24 * - COUNT( * )
----
1
-24

skipif mysql # not compatible
query II rowsort label-3539
SELECT ALL COUNT ( * ) AS col1, 24 * - COUNT ( * )
----
1
-24

query I rowsort
SELECT ALL + ( 0 ) - + - 75 AS col2
----
75

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3541
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col1, - 9
----
NULL
-9

skipif mysql # not compatible
query II rowsort label-3541
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col1, - 9
----
NULL
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3542
SELECT - COUNT( * ) DIV + 14 AS col0, - COUNT( * ) + + + 31 * ( 15 ) + - COUNT( * ) + + 75 + - 94 + + CAST( NULL AS SIGNED )
----
0
NULL

skipif mysql # not compatible
query II rowsort label-3542
SELECT - COUNT ( * ) / + 14 AS col0, - COUNT ( * ) + + + 31 * ( 15 ) + - COUNT ( * ) + + 75 + - 94 + + CAST ( NULL AS INTEGER )
----
0
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3543
SELECT - COALESCE ( + + COUNT( * ), + CASE - + 20 WHEN - - CAST( NULL AS SIGNED ) / + 78 + CASE 11 WHEN + 84 THEN 90 WHEN - - 51 THEN NULL END THEN + 9 * NULLIF ( - 70, + 37 + + + 15 + + 94 * 30 ) * COUNT( * ) + 84 WHEN 95 * 30 THEN NULL ELSE NULL END, 73 ) - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3543
SELECT - COALESCE ( + + COUNT ( * ), + CASE - + 20 WHEN - - CAST ( NULL AS INTEGER ) / + 78 + CASE 11 WHEN + 84 THEN 90 WHEN - - 51 THEN NULL END THEN + 9 * NULLIF ( - 70, + 37 + + + 15 + + 94 * 30 ) * COUNT ( * ) + 84 WHEN 95 * 30 THEN NULL ELSE NULL END, 73 ) - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query II rowsort
SELECT 48 AS col1, 79
----
48
79

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3545
SELECT ALL CAST( NULL AS SIGNED ) AS col2, - 20 + - - 60 - + 77 + + 14 * - + 50 AS col1
----
NULL
-737

skipif mysql # not compatible
query II rowsort label-3545
SELECT ALL CAST ( NULL AS INTEGER ) AS col2, - 20 + - - 60 - + 77 + + 14 * - + 50 AS col1
----
NULL
-737

onlyif mysql # aggregate syntax: 
query I rowsort label-3546
SELECT - 44 - - COUNT( * ) AS col1
----
-43

skipif mysql # not compatible
query I rowsort label-3546
SELECT - 44 - - COUNT ( * ) AS col1
----
-43

onlyif mysql # DIV for integer division: 
query I rowsort label-3547
SELECT ALL + 37 DIV + + 91
----
0

skipif mysql # not compatible
query I rowsort label-3547
SELECT ALL + 37 / + + 91
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3548
SELECT - SUM( + 52 )
----
-52

skipif mysql # not compatible
query I rowsort label-3548
SELECT - SUM ( + 52 )
----
-52

query I rowsort
SELECT DISTINCT ( + - ( + - 4 ) )
----
4

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3550
SELECT + CAST( CAST( NULL AS DECIMAL ) AS SIGNED ) - ( + 21 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3550
SELECT + CAST ( CAST ( NULL AS REAL ) AS INTEGER ) - ( + 21 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3551
SELECT + COUNT( * ) * - 50 DIV + + 95 DIV - COUNT( * ) col1
----
0

skipif mysql # not compatible
query I rowsort label-3551
SELECT + COUNT ( * ) * - 50 / + + 95 / - COUNT ( * ) col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3552
SELECT - ( - CAST( - CAST( 86 AS SIGNED ) AS SIGNED ) ) AS col0, 66
----
-86
66

skipif mysql # not compatible
query II rowsort label-3552
SELECT - ( - CAST ( - CAST ( 86 AS INTEGER ) AS INTEGER ) ) AS col0, 66
----
-86
66

onlyif mysql # aggregate syntax: 
query I rowsort label-3553
SELECT + MAX( - 97 ) * + 73 + + 25 * + 94 * + COUNT( * ) + + 15
----
-4716

skipif mysql # not compatible
query I rowsort label-3553
SELECT + MAX ( - 97 ) * + 73 + + 25 * + 94 * + COUNT ( * ) + + 15
----
-4716

onlyif mysql # aggregate syntax: 
query I rowsort label-3554
SELECT + + 9 * + SUM( 31 ) * - + 60 + + - 19 + - 87 AS col0
----
-16846

skipif mysql # not compatible
query I rowsort label-3554
SELECT + + 9 * + SUM ( 31 ) * - + 60 + + - 19 + - 87 AS col0
----
-16846

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3555
SELECT DISTINCT - COUNT( * ) DIV + 25 + + 60
----
60

skipif mysql # not compatible
query I rowsort label-3555
SELECT DISTINCT - COUNT ( * ) / + 25 + + 60
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-3556
SELECT 74 * 3 + COUNT( * )
----
223

skipif mysql # not compatible
query I rowsort label-3556
SELECT 74 * 3 + COUNT ( * )
----
223

query I rowsort
SELECT - 96 * + 46 + - + 39 * + + 31 + - + 74
----
-5699

query II rowsort
SELECT 2 AS col2, + 80
----
2
80

query II rowsort
SELECT + + 59, - ( 40 ) * 64 + - 91 + - + 68 AS col0
----
59
-2719

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3560
SELECT DISTINCT + COUNT( * ) DIV 97 * - 57 + + + 36 AS col1, 31
----
36
31

skipif mysql # not compatible
query II rowsort label-3560
SELECT DISTINCT + COUNT ( * ) / 97 * - 57 + + + 36 AS col1, 31
----
36
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3561
SELECT ALL CAST( NULL AS SIGNED ) / + 71 * COUNT( * ) / CASE + 83 WHEN - - CAST( + - 70 AS SIGNED ) THEN NULL WHEN COUNT( * ) THEN NULL ELSE - 4 END / - 49
----
NULL

skipif mysql # not compatible
query I rowsort label-3561
SELECT ALL CAST ( NULL AS INTEGER ) / + 71 * COUNT ( * ) / CASE + 83 WHEN - - CAST ( + - 70 AS INTEGER ) THEN NULL WHEN COUNT ( * ) THEN NULL ELSE - 4 END / - 49
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3562
SELECT + CASE + CAST( NULL AS SIGNED ) WHEN - 34 THEN - 81 / COUNT( * ) - 8 WHEN - CAST( 20 AS SIGNED ) + - ( 52 ) - + + 80 * - ( + 52 ) THEN COUNT( * ) WHEN - 36 THEN - 63 / + COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-3562
SELECT + CASE + CAST ( NULL AS INTEGER ) WHEN - 34 THEN - 81 / COUNT ( * ) - 8 WHEN - CAST ( 20 AS INTEGER ) + - ( 52 ) - + + 80 * - ( + 52 ) THEN COUNT ( * ) WHEN - 36 THEN - 63 / + COUNT ( * ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3563
SELECT DISTINCT - ( 87 ) - MIN( ALL - - 8 ) + 83 AS col2
----
-12

skipif mysql # not compatible
query I rowsort label-3563
SELECT DISTINCT - ( 87 ) - MIN ( ALL - - 8 ) + 83 AS col2
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-3564
SELECT COUNT( * ) * - - 26
----
26

skipif mysql # not compatible
query I rowsort label-3564
SELECT COUNT ( * ) * - - 26
----
26

query I rowsort
SELECT 64 * - 36 * - 47 col2
----
108288

onlyif mysql # aggregate syntax: 
query I rowsort label-3566
SELECT ALL + 41 - COUNT( * ) * 68
----
-27

skipif mysql # not compatible
query I rowsort label-3566
SELECT ALL + 41 - COUNT ( * ) * 68
----
-27

query II rowsort
SELECT ( - 57 ) * 93 AS col2, + 83 AS col1
----
-5301
83

onlyif mysql # aggregate syntax: 
query I rowsort label-3568
SELECT ( - 40 ) + + COALESCE ( 86, SUM( - 8 ), - - MIN( DISTINCT 34 ) )
----
46

skipif mysql # not compatible
query I rowsort label-3568
SELECT ( - 40 ) + + COALESCE ( 86, SUM ( - 8 ), - - MIN ( DISTINCT 34 ) )
----
46

query I rowsort
SELECT DISTINCT 68 * + + 77
----
5236

onlyif mysql # DIV for integer division: 
query I rowsort label-3570
SELECT 80 + + 88 DIV 95
----
80

skipif mysql # not compatible
query I rowsort label-3570
SELECT 80 + + 88 / 95
----
80

onlyif mysql # DIV for integer division: 
query I rowsort label-3571
SELECT 95 + + - 61 DIV 25 + - + 81 + + - 9 * - - 83 AS col0
----
-735

skipif mysql # not compatible
query I rowsort label-3571
SELECT 95 + + - 61 / 25 + - + 81 + + - 9 * - - 83 AS col0
----
-735

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3572
SELECT 99 DIV ( - COUNT( * ) ) DIV ( + 90 ) + 42
----
41

skipif mysql # not compatible
query I rowsort label-3572
SELECT 99 / ( - COUNT ( * ) ) / ( + 90 ) + 42
----
41

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3573
SELECT COUNT( * ) + 56 AS col0, 5 DIV - 26
----
57
0

skipif mysql # not compatible
query II rowsort label-3573
SELECT COUNT ( * ) + 56 AS col0, 5 / - 26
----
57
0

query II rowsort
SELECT ALL - 34 + + 56, 26 AS col0
----
22
26

query I rowsort
SELECT 94 + + 24
----
118

query I rowsort
SELECT DISTINCT + + 15 * + 66
----
990

query I rowsort
SELECT ALL + 47 + + ( + 56 )
----
103

query I rowsort
SELECT ALL + 67 + - 60 + - 70
----
-63

query I rowsort
SELECT + 33 * + ( - 3 ) + - 22 AS col0
----
-121

onlyif mysql # aggregate syntax: 
query I rowsort label-3580
SELECT COALESCE ( - NULLIF ( - + COALESCE ( COUNT( * ), - 24 ), - 81 / + - 70 * 8 ), - + 58 )
----
1

skipif mysql # not compatible
query I rowsort label-3580
SELECT COALESCE ( - NULLIF ( - + COALESCE ( COUNT ( * ), - 24 ), - 81 / + - 70 * 8 ), - + 58 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3581
SELECT 43 * SUM( ALL + CAST( - 1 AS SIGNED ) ) DIV + 99 col0
----
0

skipif mysql # not compatible
query I rowsort label-3581
SELECT 43 * SUM ( ALL + CAST ( - 1 AS INTEGER ) ) / + 99 col0
----
0

query I rowsort
SELECT 30 * - - 34 + - 17 * 25 AS col0
----
595

query I rowsort
SELECT - 82 - + + 87 + + - 68 * - - 4 + - + 16 * - 68
----
647

query I rowsort
SELECT + 91 + - + 66 + - + 52
----
-27

query I rowsort
SELECT DISTINCT 44 * 53
----
2332

onlyif mysql # aggregate syntax: 
query I rowsort label-3586
SELECT COUNT( * ) + + 96
----
97

skipif mysql # not compatible
query I rowsort label-3586
SELECT COUNT ( * ) + + 96
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3587
SELECT ( 38 ) * COUNT( * ) AS col0
----
38

skipif mysql # not compatible
query I rowsort label-3587
SELECT ( 38 ) * COUNT ( * ) AS col0
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-3588
SELECT + NULLIF ( - 16, + - COUNT( * ) ) * ( - + COUNT( * ) ) + - - 67 + 83 + - 53
----
113

skipif mysql # not compatible
query I rowsort label-3588
SELECT + NULLIF ( - 16, + - COUNT ( * ) ) * ( - + COUNT ( * ) ) + - - 67 + 83 + - 53
----
113

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3589
SELECT DISTINCT 87 * - NULLIF ( + 20, - 13 * + + MIN( CAST( - 55 AS SIGNED ) ) + - 27 )
----
-1740

skipif mysql # not compatible
query I rowsort label-3589
SELECT DISTINCT 87 * - NULLIF ( + 20, - 13 * + + MIN ( CAST ( - 55 AS INTEGER ) ) + - 27 )
----
-1740

onlyif mysql # aggregate syntax: 
query I rowsort label-3590
SELECT CASE + 6 WHEN - 29 * + + 39 + - CASE 85 WHEN - + 85 / + - 80 THEN + COUNT( * ) ELSE NULL END * - COUNT( * ) * - 75 - - + COUNT( * ) * - 67 THEN + 98 * NULLIF ( + 53, 63 ) + + 69 ELSE NULL END + 28 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3590
SELECT CASE + 6 WHEN - 29 * + + 39 + - CASE 85 WHEN - + 85 / + - 80 THEN + COUNT ( * ) ELSE NULL END * - COUNT ( * ) * - 75 - - + COUNT ( * ) * - 67 THEN + 98 * NULLIF ( + 53, 63 ) + + 69 ELSE NULL END + 28 col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3591
SELECT + COUNT( * ) AS col0, - 85 * - + 9 AS col0
----
1
765

skipif mysql # not compatible
query II rowsort label-3591
SELECT + COUNT ( * ) AS col0, - 85 * - + 9 AS col0
----
1
765

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3592
SELECT 54 DIV - COUNT( * )
----
-54

skipif mysql # not compatible
query I rowsort label-3592
SELECT 54 / - COUNT ( * )
----
-54

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3593
SELECT DISTINCT 74 DIV - COUNT( - 34 ) AS col0
----
-74

skipif mysql # not compatible
query I rowsort label-3593
SELECT DISTINCT 74 / - COUNT ( - 34 ) AS col0
----
-74

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3594
SELECT 73 + 49 * - CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3594
SELECT 73 + 49 * - CAST ( NULL AS REAL ) AS col1
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3595
SELECT 80 / - + NULLIF ( + + CAST( NULL AS DECIMAL ), - 3 * + 87 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3595
SELECT 80 / - + NULLIF ( + + CAST ( NULL AS REAL ), - 3 * + 87 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3596
SELECT ALL - 65 * + MAX( - 25 ) * 2 AS col1
----
3250

skipif mysql # not compatible
query I rowsort label-3596
SELECT ALL - 65 * + MAX ( - 25 ) * 2 AS col1
----
3250

query II rowsort
SELECT ALL 71 AS col2, - 61 AS col1
----
71
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-3598
SELECT - COUNT( DISTINCT + 73 )
----
-1

skipif mysql # not compatible
query I rowsort label-3598
SELECT - COUNT ( DISTINCT + 73 )
----
-1

query II rowsort
SELECT 68, - COALESCE ( - - 8, 0 ) AS col2
----
68
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-3600
SELECT 8 - COUNT( * ) AS col1
----
7

skipif mysql # not compatible
query I rowsort label-3600
SELECT 8 - COUNT ( * ) AS col1
----
7

query I rowsort
SELECT ( - - 14 ) * - 86 - - 41
----
-1163

query I rowsort
SELECT 14 * - ( 64 )
----
-896

onlyif mysql # aggregate syntax: 
query I rowsort label-3603
SELECT DISTINCT + COUNT( DISTINCT + 74 ) * - 71 - + 88
----
-159

skipif mysql # not compatible
query I rowsort label-3603
SELECT DISTINCT + COUNT ( DISTINCT + 74 ) * - 71 - + 88
----
-159

onlyif mysql # aggregate syntax: 
query I rowsort label-3604
SELECT DISTINCT 78 + COUNT( * )
----
79

skipif mysql # not compatible
query I rowsort label-3604
SELECT DISTINCT 78 + COUNT ( * )
----
79

query I rowsort
SELECT ALL + 96 + 66 AS col1
----
162

query II rowsort
SELECT DISTINCT 55, + 51 + 88 * + 7 AS col1
----
55
667

query I rowsort
SELECT 76 + 2 AS col0
----
78

query I rowsort
SELECT 19 - 20
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3609
SELECT - 30 + - NULLIF ( COUNT( ALL + 32 ), + COUNT( + - 18 ) ), 99 + - 34 * + - CAST( - 86 AS SIGNED ) col2
----
NULL
-2825

skipif mysql # not compatible
query II rowsort label-3609
SELECT - 30 + - NULLIF ( COUNT ( ALL + 32 ), + COUNT ( + - 18 ) ), 99 + - 34 * + - CAST ( - 86 AS INTEGER ) col2
----
NULL
-2825

query I rowsort
SELECT 65 - - 82
----
147

query I rowsort
SELECT ALL + - 8 + + 86 - - 36 AS col2
----
114

onlyif mysql # aggregate syntax: 
query I rowsort label-3612
SELECT CASE MAX( DISTINCT + - 5 ) WHEN - 61 + + 29 - + + COUNT( * ) * + + MAX( DISTINCT + 91 ) THEN + + 13 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3612
SELECT CASE MAX ( DISTINCT + - 5 ) WHEN - 61 + + 29 - + + COUNT ( * ) * + + MAX ( DISTINCT + 91 ) THEN + + 13 END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3613
SELECT + COUNT( * ) * - + 12 + - 45 DIV - - COUNT( * ) AS col0
----
-57

skipif mysql # not compatible
query I rowsort label-3613
SELECT + COUNT ( * ) * - + 12 + - 45 / - - COUNT ( * ) AS col0
----
-57

query II rowsort
SELECT - - 49 * - 40 + + + 25 AS col1, 13
----
-1935
13

query I rowsort
SELECT DISTINCT + 92 * + 10 - 79 + + + 92
----
933

query I rowsort
SELECT ALL + - 8 * + - 3
----
24

query I rowsort
SELECT ALL - 11 * 68 AS col2
----
-748

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3618
SELECT - - CAST( NULL AS SIGNED ) + + + 83 - - - CAST( NULL AS DECIMAL ) * + + 15 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3618
SELECT - - CAST ( NULL AS INTEGER ) + + + 83 - - - CAST ( NULL AS REAL ) * + + 15 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3619
SELECT ALL - - 82 * 52 - - COUNT( + CASE + - 21 WHEN - - 30 THEN ( - 67 ) * - 56 ELSE NULL END ) + - 35
----
4229

skipif mysql # not compatible
query I rowsort label-3619
SELECT ALL - - 82 * 52 - - COUNT ( + CASE + - 21 WHEN - - 30 THEN ( - 67 ) * - 56 ELSE NULL END ) + - 35
----
4229

onlyif mysql # aggregate syntax: 
query I rowsort label-3620
SELECT - 89 * - COUNT( * ) col0
----
89

skipif mysql # not compatible
query I rowsort label-3620
SELECT - 89 * - COUNT ( * ) col0
----
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3621
SELECT ALL 33 * + 98 / - CASE + + 93 WHEN - 27 * + COALESCE ( - - ( 56 ), + 50 ) THEN - - COUNT( * ) + - 94 WHEN + + 70 THEN 73 + - + 34 * - 18 * + + NULLIF ( + 61, CAST( NULLIF ( - 65, COUNT( * ) * 61 + 28 ) AS SIGNED ) ) END - + CASE + COALESCE ( MIN( DISTINCT 59 ), + 97 ) + CAST( NULL AS SIGNED ) WHEN + 68 THEN + 62 * - 40 + 75 * - ( + 42 * + 63 ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3621
SELECT ALL 33 * + 98 / - CASE + + 93 WHEN - 27 * + COALESCE ( - - ( 56 ), + 50 ) THEN - - COUNT ( * ) + - 94 WHEN + + 70 THEN 73 + - + 34 * - 18 * + + NULLIF ( + 61, CAST ( NULLIF ( - 65, COUNT ( * ) * 61 + 28 ) AS INTEGER ) ) END - + CASE + COALESCE ( MIN ( DISTINCT 59 ), + 97 ) + CAST ( NULL AS INTEGER ) WHEN + 68 THEN + 62 * - 40 + 75 * - ( + 42 * + 63 ) END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3622
SELECT - 3 * COUNT( * )
----
-3

skipif mysql # not compatible
query I rowsort label-3622
SELECT - 3 * COUNT ( * )
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3623
SELECT ALL + 9 * MAX( 39 ) + - ( 7 )
----
344

skipif mysql # not compatible
query I rowsort label-3623
SELECT ALL + 9 * MAX ( 39 ) + - ( 7 )
----
344

onlyif mysql # aggregate syntax: 
query I rowsort label-3624
SELECT - 37 * 30 + ( + - ( - SUM( DISTINCT 44 ) ) ) + 62 * - ( - + 94 ) AS col0
----
4762

skipif mysql # not compatible
query I rowsort label-3624
SELECT - 37 * 30 + ( + - ( - SUM ( DISTINCT 44 ) ) ) + 62 * - ( - + 94 ) AS col0
----
4762

onlyif mysql # aggregate syntax: 
query II rowsort label-3625
SELECT + + COUNT( * ) AS col0, COUNT( * ) * - 32
----
1
-32

skipif mysql # not compatible
query II rowsort label-3625
SELECT + + COUNT ( * ) AS col0, COUNT ( * ) * - 32
----
1
-32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3626
SELECT + COUNT( * ) * COUNT( * ) + - MAX( - 34 ) DIV - 92
----
1

skipif mysql # not compatible
query I rowsort label-3626
SELECT + COUNT ( * ) * COUNT ( * ) + - MAX ( - 34 ) / - 92
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3627
SELECT + COUNT( * ) + - - 71 + + + 88
----
160

skipif mysql # not compatible
query I rowsort label-3627
SELECT + COUNT ( * ) + - - 71 + + + 88
----
160

query I rowsort
SELECT ALL 16 * - 32 AS col1
----
-512

query I rowsort
SELECT - 21 * - 99
----
2079

onlyif mysql # aggregate syntax: 
query II rowsort label-3630
SELECT + COUNT( ALL - 97 ), + 37 AS col2
----
1
37

skipif mysql # not compatible
query II rowsort label-3630
SELECT + COUNT ( ALL - 97 ), + 37 AS col2
----
1
37

onlyif mysql # aggregate syntax: 
query I rowsort label-3631
SELECT ALL - 31 * - COUNT( * ) + + 74 - + ( - 60 ) * - COUNT( * ) + - + 31 + + 40 * - 64 AS col2
----
-2546

skipif mysql # not compatible
query I rowsort label-3631
SELECT ALL - 31 * - COUNT ( * ) + + 74 - + ( - 60 ) * - COUNT ( * ) + - + 31 + + 40 * - 64 AS col2
----
-2546

query I rowsort
SELECT ALL 68 * - + 63
----
-4284

query I rowsort
SELECT ALL 30 * - 7 + + 66 AS col2
----
-144

query I rowsort
SELECT - 86 + - - 12 AS col1
----
-74

query II rowsort
SELECT + 91 - + - 73 AS col1, 28 * - 47
----
164
-1316

query I rowsort
SELECT + 48 * + 60 + COALESCE ( + - 29, + 69 ) AS col1
----
2851

query I rowsort
SELECT + 68 + - + 47 * + 45 AS col0
----
-2047

onlyif mysql # aggregate syntax: 
query I rowsort label-3638
SELECT ALL MAX( DISTINCT + + 89 ) + + COUNT( * ) AS col2
----
90

skipif mysql # not compatible
query I rowsort label-3638
SELECT ALL MAX ( DISTINCT + + 89 ) + + COUNT ( * ) AS col2
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-3639
SELECT ALL + 34 + + + 93 + - - COUNT( * )
----
128

skipif mysql # not compatible
query I rowsort label-3639
SELECT ALL + 34 + + + 93 + - - COUNT ( * )
----
128

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3640
SELECT + 8 + + COALESCE ( + + 7, COALESCE ( + 92, - ( - COUNT( * ) ), + CAST( + - 87 AS SIGNED ) * - + 39 + - COUNT( * ) ) * + COUNT( * ) + - 7 )
----
15

skipif mysql # not compatible
query I rowsort label-3640
SELECT + 8 + + COALESCE ( + + 7, COALESCE ( + 92, - ( - COUNT ( * ) ), + CAST ( + - 87 AS INTEGER ) * - + 39 + - COUNT ( * ) ) * + COUNT ( * ) + - 7 )
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-3641
SELECT ALL COUNT( * ) + - 14 + COUNT( DISTINCT + + 50 )
----
-12

skipif mysql # not compatible
query I rowsort label-3641
SELECT ALL COUNT ( * ) + - 14 + COUNT ( DISTINCT + + 50 )
----
-12

query I rowsort
SELECT + 48 + + 45 + 27 AS col0
----
120

query I rowsort
SELECT NULLIF ( + - 32, - 20 ) AS col0
----
-32

onlyif mysql # DIV for integer division: 
query II rowsort label-3644
SELECT ALL 31 DIV + 14, 0 col2
----
2
0

skipif mysql # not compatible
query II rowsort label-3644
SELECT ALL 31 / + 14, 0 col2
----
2
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3645
SELECT + 1 DIV + 33 AS col1, + CAST( NULL AS SIGNED ) AS col1
----
0
NULL

skipif mysql # not compatible
query II rowsort label-3645
SELECT + 1 / + 33 AS col1, + CAST ( NULL AS INTEGER ) AS col1
----
0
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3646
SELECT + + ( + CASE + ( 86 ) WHEN - 23 THEN 77 WHEN - + 88 THEN NULL ELSE CAST( NULL AS SIGNED ) * + 54 END ) + + 50 + + 25 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3646
SELECT + + ( + CASE + ( 86 ) WHEN - 23 THEN 77 WHEN - + 88 THEN NULL ELSE CAST ( NULL AS INTEGER ) * + 54 END ) + + 50 + + 25 col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3647
SELECT ALL - SUM( - 71 ) - + 38 + - + 14
----
19

skipif mysql # not compatible
query I rowsort label-3647
SELECT ALL - SUM ( - 71 ) - + 38 + - + 14
----
19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3648
SELECT - + CAST( 15 AS SIGNED ) + + - 63 AS col1
----
-78

skipif mysql # not compatible
query I rowsort label-3648
SELECT - + CAST ( 15 AS INTEGER ) + + - 63 AS col1
----
-78

onlyif mysql # aggregate syntax: 
query II rowsort label-3649
SELECT ALL - ( - 71 ) * + MIN( - + 79 ) AS col0, 45 AS col2
----
-5609
45

skipif mysql # not compatible
query II rowsort label-3649
SELECT ALL - ( - 71 ) * + MIN ( - + 79 ) AS col0, 45 AS col2
----
-5609
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3650
SELECT + - 9 * + CAST( NULL AS SIGNED ) * + 92 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3650
SELECT + - 9 * + CAST ( NULL AS INTEGER ) * + 92 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3651
SELECT DISTINCT - 71 * + CAST( NULL AS SIGNED ) * + - 6 * - COALESCE ( + 69, - 20 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3651
SELECT DISTINCT - 71 * + CAST ( NULL AS INTEGER ) * + - 6 * - COALESCE ( + 69, - 20 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3652
SELECT + COALESCE ( COALESCE ( + 81, - - 63, + 51 DIV - AVG ( 30 ) * + 62 ), - - 59 + - + 28 * + COUNT( * ) ) AS col2
----
81

skipif mysql # not compatible
query I rowsort label-3652
SELECT + COALESCE ( COALESCE ( + 81, - - 63, + 51 / - AVG ( 30 ) * + 62 ), - - 59 + - + 28 * + COUNT ( * ) ) AS col2
----
81

query I rowsort
SELECT ALL + ( 51 ) AS col2
----
51

query I rowsort
SELECT ALL - 82 * + + 2 AS col2
----
-164

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3655
SELECT - COUNT( * ) - - 68 * 65 * + CASE - 61 WHEN CAST( - 62 AS SIGNED ) * - COUNT( * ) + - 26 THEN + + CAST( NULL AS SIGNED ) + + - 73 * + COUNT( * ) * - 28 / + 28 END * + 85 * - + 88
----
NULL

skipif mysql # not compatible
query I rowsort label-3655
SELECT - COUNT ( * ) - - 68 * 65 * + CASE - 61 WHEN CAST ( - 62 AS INTEGER ) * - COUNT ( * ) + - 26 THEN + + CAST ( NULL AS INTEGER ) + + - 73 * + COUNT ( * ) * - 28 / + 28 END * + 85 * - + 88
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3656
SELECT - COUNT( * ) * - 4 * 36 AS col1
----
144

skipif mysql # not compatible
query I rowsort label-3656
SELECT - COUNT ( * ) * - 4 * 36 AS col1
----
144

query I rowsort
SELECT DISTINCT + 65 * - 73
----
-4745

onlyif mysql # aggregate syntax: 
query I rowsort label-3658
SELECT ALL - COUNT( * ) * 14 AS col2
----
-14

skipif mysql # not compatible
query I rowsort label-3658
SELECT ALL - COUNT ( * ) * 14 AS col2
----
-14

query I rowsort
SELECT - 98 * - 82 AS col0
----
8036

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3660
SELECT + MAX( ALL 99 ) DIV 89
----
1

skipif mysql # not compatible
query I rowsort label-3660
SELECT + MAX ( ALL 99 ) / 89
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-3661
SELECT ( + SUM( + - 48 ) ) AS col1, + 63 * - + 25 - + 80 AS col2
----
-48
-1655

skipif mysql # not compatible
query II rowsort label-3661
SELECT ( + SUM ( + - 48 ) ) AS col1, + 63 * - + 25 - + 80 AS col2
----
-48
-1655

onlyif mysql # aggregate syntax: 
query I rowsort label-3662
SELECT - 27 - + 81 * ( + + COUNT( * ) ) AS col0
----
-108

skipif mysql # not compatible
query I rowsort label-3662
SELECT - 27 - + 81 * ( + + COUNT ( * ) ) AS col0
----
-108

onlyif mysql # aggregate syntax: 
query I rowsort label-3663
SELECT ALL + NULLIF ( - 24, + - COUNT( * ) ) AS col2
----
-24

skipif mysql # not compatible
query I rowsort label-3663
SELECT ALL + NULLIF ( - 24, + - COUNT ( * ) ) AS col2
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-3664
SELECT CASE - 54 WHEN + 78 THEN - 84 * COUNT( + 83 ) - ( + + 67 ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3664
SELECT CASE - 54 WHEN + 78 THEN - 84 * COUNT ( + 83 ) - ( + + 67 ) END AS col2
----
NULL

query II rowsort
SELECT + 25 AS col2, + 25 AS col2
----
25
25

query I rowsort
SELECT - 32 * 85
----
-2720

onlyif mysql # aggregate syntax: 
query I rowsort label-3667
SELECT DISTINCT 38 * + 70 + + 97 * 82 + + + MIN( DISTINCT 22 ) * 34 col2
----
11362

skipif mysql # not compatible
query I rowsort label-3667
SELECT DISTINCT 38 * + 70 + + 97 * 82 + + + MIN ( DISTINCT 22 ) * 34 col2
----
11362

query I rowsort
SELECT - CASE + 27 WHEN + 23 THEN NULL WHEN 37 THEN NULL ELSE + 18 + + 59 + 83 + + 88 - + - 1 END
----
-249

query I rowsort
SELECT + 60 * - 32 * - 61
----
117120

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3670
SELECT + 26 * + + COUNT( * ) * + CAST( NULL AS SIGNED ) + - 73 * - 75 * + ( - 4 ) * + 74 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3670
SELECT + 26 * + + COUNT ( * ) * + CAST ( NULL AS INTEGER ) + - 73 * - 75 * + ( - 4 ) * + 74 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3671
SELECT - ( + - COUNT( DISTINCT - 90 ) ) - - + 77 + - 26 + - 25 * + + 67 * 23 + 95
----
-38378

skipif mysql # not compatible
query I rowsort label-3671
SELECT - ( + - COUNT ( DISTINCT - 90 ) ) - - + 77 + - 26 + - 25 * + + 67 * 23 + 95
----
-38378

query I rowsort
SELECT ALL + - 37 - + ( - 18 ) - - 95 * + 90
----
8531

onlyif mysql # DIV for integer division: 
query I rowsort label-3673
SELECT ALL 92 DIV + - 16
----
-5

skipif mysql # not compatible
query I rowsort label-3673
SELECT ALL 92 / + - 16
----
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3674
SELECT - ( MAX( CAST( NULL AS SIGNED ) ) ) * - 60 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3674
SELECT - ( MAX ( CAST ( NULL AS INTEGER ) ) ) * - 60 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3675
SELECT 5 DIV + ( - - 19 ), - COUNT( * ) AS col2
----
0
-1

skipif mysql # not compatible
query II rowsort label-3675
SELECT 5 / + ( - - 19 ), - COUNT ( * ) AS col2
----
0
-1

query I rowsort
SELECT ALL - ( + - 54 ) AS col2
----
54

query I rowsort
SELECT + 29 + - 23 AS col1
----
6

query I rowsort
SELECT + 42 + 4 * 89 AS col0
----
398

query I rowsort
SELECT - CASE + + 3 WHEN - - 98 THEN NULL WHEN - 87 THEN NULL ELSE + 29 + - 83 END
----
54

query I rowsort
SELECT ALL 95 + + + 48 * - 98
----
-4609

query II rowsort
SELECT ALL - 99, - 47 AS col0
----
-99
-47

query I rowsort
SELECT DISTINCT 69 * - 23
----
-1587

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3683
SELECT DISTINCT + 24 + COALESCE ( + COUNT( * ), - + CASE + ( - 19 ) WHEN - - ( 75 ) - + COUNT( * ) - + - 47 * COUNT( * ) * - + 34 + 7 THEN CAST( NULL AS SIGNED ) ELSE + + 63 * 32 * - 85 END + - 25, 77 )
----
25

skipif mysql # not compatible
query I rowsort label-3683
SELECT DISTINCT + 24 + COALESCE ( + COUNT ( * ), - + CASE + ( - 19 ) WHEN - - ( 75 ) - + COUNT ( * ) - + - 47 * COUNT ( * ) * - + 34 + 7 THEN CAST ( NULL AS INTEGER ) ELSE + + 63 * 32 * - 85 END + - 25, 77 )
----
25

onlyif mysql # aggregate syntax: 
query II rowsort label-3684
SELECT ALL 63 + 14, - 20 + COUNT( * ) col0
----
77
-19

skipif mysql # not compatible
query II rowsort label-3684
SELECT ALL 63 + 14, - 20 + COUNT ( * ) col0
----
77
-19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3685
SELECT COALESCE ( - - 79, + 40 ) * + 16 + + CAST( NULL AS SIGNED ) - - 39
----
NULL

skipif mysql # not compatible
query I rowsort label-3685
SELECT COALESCE ( - - 79, + 40 ) * + 16 + + CAST ( NULL AS INTEGER ) - - 39
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3686
SELECT MIN( DISTINCT 12 ) * - 10
----
-120

skipif mysql # not compatible
query I rowsort label-3686
SELECT MIN ( DISTINCT 12 ) * - 10
----
-120

query II rowsort
SELECT ALL - 34 col0, + 70
----
-34
70

onlyif mysql # DIV for integer division: 
query I rowsort label-3688
SELECT 5 DIV - 27 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3688
SELECT 5 / - 27 AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3689
SELECT 52 DIV + + COUNT( * ) + - ( - 18 ) AS col2
----
70

skipif mysql # not compatible
query I rowsort label-3689
SELECT 52 / + + COUNT ( * ) + - ( - 18 ) AS col2
----
70

query I rowsort
SELECT ALL - 6 + - 11
----
-17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3691
SELECT DISTINCT 62 + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3691
SELECT DISTINCT 62 + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query II rowsort
SELECT + 23 AS col0, - 38
----
23
-38

onlyif mysql # DIV for integer division: 
query I rowsort label-3693
SELECT 8 DIV + 43
----
0

skipif mysql # not compatible
query I rowsort label-3693
SELECT 8 / + 43
----
0

query I rowsort
SELECT 30 - + 26
----
4

query I rowsort
SELECT DISTINCT - CASE + 16 WHEN - - 45 THEN + + 5 END - + 68 AS col1
----
NULL

query II rowsort
SELECT ALL 90 AS col2, + 58 AS col2
----
90
58

query II rowsort
SELECT - 91, ( NULLIF ( 84, + 81 ) ) col2
----
-91
84

query I rowsort
SELECT + 57 * - 23 AS col1
----
-1311

onlyif mysql # aggregate syntax: 
query II rowsort label-3699
SELECT - 62, - 83 * + + ( COUNT( - - 52 ) ) AS col2
----
-62
-83

skipif mysql # not compatible
query II rowsort label-3699
SELECT - 62, - 83 * + + ( COUNT ( - - 52 ) ) AS col2
----
-62
-83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3700
SELECT COUNT( * ) + + CAST( + + 84 AS SIGNED ) + - + 89 AS col1
----
-4

skipif mysql # not compatible
query I rowsort label-3700
SELECT COUNT ( * ) + + CAST ( + + 84 AS INTEGER ) + - + 89 AS col1
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-3701
SELECT DISTINCT + COUNT( * ) * - 42 * 47
----
-1974

skipif mysql # not compatible
query I rowsort label-3701
SELECT DISTINCT + COUNT ( * ) * - 42 * 47
----
-1974

query I rowsort
SELECT 50 + + 75 col1
----
125

onlyif mysql # aggregate syntax: 
query I rowsort label-3703
SELECT DISTINCT CASE 3 WHEN + COUNT( * ) * 42 + + 88 THEN - SUM( + - ( 61 ) ) / + 2 * + 75 WHEN + 12 - + 36 + + 25 * 74 / - - COUNT( DISTINCT - 80 ) THEN NULL WHEN + 12 THEN + - 79 * SUM( - 66 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3703
SELECT DISTINCT CASE 3 WHEN + COUNT ( * ) * 42 + + 88 THEN - SUM ( + - ( 61 ) ) / + 2 * + 75 WHEN + 12 - + 36 + + 25 * 74 / - - COUNT ( DISTINCT - 80 ) THEN NULL WHEN + 12 THEN + - 79 * SUM ( - 66 ) ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT 81 * + ( + + 4 )
----
324

onlyif mysql # aggregate syntax: 
query II rowsort label-3705
SELECT - - 73 AS col1, + COUNT( * ) AS col0
----
73
1

skipif mysql # not compatible
query II rowsort label-3705
SELECT - - 73 AS col1, + COUNT ( * ) AS col0
----
73
1

query I rowsort
SELECT ALL + 21 * + 33
----
693

onlyif mysql # aggregate syntax: 
query I rowsort label-3707
SELECT - - MAX( 49 ) col2
----
49

skipif mysql # not compatible
query I rowsort label-3707
SELECT - - MAX ( 49 ) col2
----
49

onlyif mysql # DIV for integer division: 
query I rowsort label-3708
SELECT - 26 DIV + + 36
----
0

skipif mysql # not compatible
query I rowsort label-3708
SELECT - 26 / + + 36
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3709
SELECT ALL 66 + - - 21 + + + COUNT( * ) AS col2
----
88

skipif mysql # not compatible
query I rowsort label-3709
SELECT ALL 66 + - - 21 + + + COUNT ( * ) AS col2
----
88

query II rowsort
SELECT ALL + - 18 * - + NULLIF ( + - NULLIF ( - 92, - 36 ), + COALESCE ( + 38, - 20 + 0 + + - 53 ) ) + + + 8, 14 * - - 25 + - 62 * + 64 + - - 6 AS col0
----
1664
-3612

onlyif mysql # aggregate syntax: 
query I rowsort label-3711
SELECT - MIN( 49 ) AS col0
----
-49

skipif mysql # not compatible
query I rowsort label-3711
SELECT - MIN ( 49 ) AS col0
----
-49

query I rowsort
SELECT DISTINCT - 69 + - - 82
----
13

query I rowsort
SELECT 83 * + 14
----
1162

query I rowsort
SELECT ALL 74 * 4 + + 58 + - - 29 AS col0
----
383

query I rowsort
SELECT 54 - + 21 * + - 75 AS col1
----
1629

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3716
SELECT COUNT( * ) * + + 67 - - - 12 + 1 DIV + 5 * - COUNT( * ) col0
----
55

skipif mysql # not compatible
query I rowsort label-3716
SELECT COUNT ( * ) * + + 67 - - - 12 + 1 / + 5 * - COUNT ( * ) col0
----
55

query II rowsort
SELECT 99 * + + 46 AS col1, + 31 AS col0
----
4554
31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3718
SELECT ALL 57 / + 68 * CAST( NULL AS SIGNED ) * + 57 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3718
SELECT ALL 57 / + 68 * CAST ( NULL AS INTEGER ) * + 57 AS col1
----
NULL

query I rowsort
SELECT 73 * ( + 94 ) AS col1
----
6862

onlyif mysql # aggregate syntax: 
query I rowsort label-3720
SELECT DISTINCT SUM( DISTINCT - 40 ) * + + 64 AS col1
----
-2560

skipif mysql # not compatible
query I rowsort label-3720
SELECT DISTINCT SUM ( DISTINCT - 40 ) * + + 64 AS col1
----
-2560

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3721
SELECT ALL - 89 * + + NULLIF ( - 29, + 75 * AVG ( DISTINCT + 52 ) * 80 - + + COUNT( * ) ) * + CAST( NULL AS SIGNED ) * 34 + - - 65 * SUM( + 39 ) + + MIN( DISTINCT + 54 ), - 28 + 84 AS col2
----
NULL
56

skipif mysql # not compatible
query II rowsort label-3721
SELECT ALL - 89 * + + NULLIF ( - 29, + 75 * AVG ( DISTINCT + 52 ) * 80 - + + COUNT ( * ) ) * + CAST ( NULL AS INTEGER ) * 34 + - - 65 * SUM ( + 39 ) + + MIN ( DISTINCT + 54 ), - 28 + 84 AS col2
----
NULL
56

onlyif mysql # aggregate syntax: 
query I rowsort label-3722
SELECT ALL NULLIF ( + 90, + 37 ) * - ( COUNT( * ) ) + + + 65 AS col0
----
-25

skipif mysql # not compatible
query I rowsort label-3722
SELECT ALL NULLIF ( + 90, + 37 ) * - ( COUNT ( * ) ) + + + 65 AS col0
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-3723
SELECT DISTINCT COUNT( * ) * + NULLIF ( - 54, + COUNT( * ) * - COUNT( * ) ) * + - 10
----
540

skipif mysql # not compatible
query I rowsort label-3723
SELECT DISTINCT COUNT ( * ) * + NULLIF ( - 54, + COUNT ( * ) * - COUNT ( * ) ) * + - 10
----
540

onlyif mysql # aggregate syntax: 
query I rowsort label-3724
SELECT ALL COUNT( * ) * + + 11 * - COUNT( * ) AS col0
----
-11

skipif mysql # not compatible
query I rowsort label-3724
SELECT ALL COUNT ( * ) * + + 11 * - COUNT ( * ) AS col0
----
-11

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3725
SELECT CAST( NULL AS DECIMAL ) * + 33 * + 57 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3725
SELECT CAST ( NULL AS REAL ) * + 33 * + 57 AS col1
----
NULL

query I rowsort
SELECT - ( 44 ) * + + 90 + 44 - + 13 * - 24 + + 20
----
-3584

query I rowsort
SELECT - NULLIF ( - + 40, + 16 ) * - 22
----
-880

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3728
SELECT ALL - 77 DIV + 63 - + + COUNT( * ) AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-3728
SELECT ALL - 77 / + 63 - + + COUNT ( * ) AS col2
----
-2

query I rowsort
SELECT + COALESCE ( 20, - 87 ) AS col1
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-3730
SELECT DISTINCT + COALESCE ( - + COUNT( * ), + - 49 ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-3730
SELECT DISTINCT + COALESCE ( - + COUNT ( * ), + - 49 ) col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3731
SELECT + 8 + - COUNT( * ) AS col2
----
7

skipif mysql # not compatible
query I rowsort label-3731
SELECT + 8 + - COUNT ( * ) AS col2
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-3732
SELECT + - 22 * + COUNT( * ) + + 8
----
-14

skipif mysql # not compatible
query I rowsort label-3732
SELECT + - 22 * + COUNT ( * ) + + 8
----
-14

onlyif mysql # DIV for integer division: 
query I rowsort label-3733
SELECT ALL + 16 DIV - - 60 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3733
SELECT ALL + 16 / - - 60 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3734
SELECT DISTINCT COUNT( DISTINCT 94 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3734
SELECT DISTINCT COUNT ( DISTINCT 94 ) AS col1
----
1

query I rowsort
SELECT + 70 + + - 82 + - 38 * + 44
----
-1684

onlyif mysql # DIV for integer division: 
query I rowsort label-3736
SELECT - - 72 DIV 74 * - NULLIF ( - 55, - + 19 ) + - 24 AS col1
----
-24

skipif mysql # not compatible
query I rowsort label-3736
SELECT - - 72 / 74 * - NULLIF ( - 55, - + 19 ) + - 24 AS col1
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-3737
SELECT + SUM( DISTINCT - 7 ) + + 80 + - 59
----
14

skipif mysql # not compatible
query I rowsort label-3737
SELECT + SUM ( DISTINCT - 7 ) + + 80 + - 59
----
14

query I rowsort
SELECT - ( + + 38 ) * - 42
----
1596

query I rowsort
SELECT ALL + 92 * 75
----
6900

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3740
SELECT MIN( 37 ), 99 + + 15 DIV + - 85 + - + CASE + COUNT( * ) WHEN - + 85 * - 15 - + - 19 THEN COUNT( * ) + + 94 WHEN + - 28 THEN 24 + + MAX( 74 ) + - 21 + 93 WHEN - 62 THEN NULL ELSE + - COUNT( * ) - - 46 * - - 38 END AS col2
----
37
-1648

skipif mysql # not compatible
query II rowsort label-3740
SELECT MIN ( 37 ), 99 + + 15 / + - 85 + - + CASE + COUNT ( * ) WHEN - + 85 * - 15 - + - 19 THEN COUNT ( * ) + + 94 WHEN + - 28 THEN 24 + + MAX ( 74 ) + - 21 + 93 WHEN - 62 THEN NULL ELSE + - COUNT ( * ) - - 46 * - - 38 END AS col2
----
37
-1648

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3741
SELECT ALL - - 95 + ( + 73 ) + - + 25 DIV CAST( - 89 AS SIGNED )
----
168

skipif mysql # not compatible
query I rowsort label-3741
SELECT ALL - - 95 + ( + 73 ) + - + 25 / CAST ( - 89 AS INTEGER )
----
168

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3742
SELECT - + 95 - 89 * 60 * - MIN( ALL - - CASE + 54 WHEN - 48 * 61 + 50 + - 0 + + - CAST( NULL AS SIGNED ) THEN + 74 END ) + + ( + CASE - - 25 WHEN 11 THEN + - 89 * COUNT( * ) + + 23 WHEN - ( + 13 ) THEN COUNT( * ) ELSE NULL END ) * SUM( 10 * - 43 ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3742
SELECT - + 95 - 89 * 60 * - MIN ( ALL - - CASE + 54 WHEN - 48 * 61 + 50 + - 0 + + - CAST ( NULL AS INTEGER ) THEN + 74 END ) + + ( + CASE - - 25 WHEN 11 THEN + - 89 * COUNT ( * ) + + 23 WHEN - ( + 13 ) THEN COUNT ( * ) ELSE NULL END ) * SUM ( 10 * - 43 ) col2
----
NULL

query I rowsort
SELECT ALL - 31 + + - 59
----
-90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3744
SELECT - - 20 - - COUNT( * ) DIV - - 35 + - COUNT( * ) AS col0
----
19

skipif mysql # not compatible
query I rowsort label-3744
SELECT - - 20 - - COUNT ( * ) / - - 35 + - COUNT ( * ) AS col0
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-3745
SELECT ALL - - COUNT( * ) + - 54 AS col1
----
-53

skipif mysql # not compatible
query I rowsort label-3745
SELECT ALL - - COUNT ( * ) + - 54 AS col1
----
-53

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3746
SELECT - + 45 + CAST( - + CAST( NULL AS SIGNED ) AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3746
SELECT - + 45 + CAST ( - + CAST ( NULL AS INTEGER ) AS REAL ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3747
SELECT - - COALESCE ( - + 69, + + COUNT( * ) * - 16 - - 76 + 34 ) AS col2
----
-69

skipif mysql # not compatible
query I rowsort label-3747
SELECT - - COALESCE ( - + 69, + + COUNT ( * ) * - 16 - - 76 + 34 ) AS col2
----
-69

query I rowsort
SELECT - 45 + 10 AS col2
----
-35

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3749
SELECT - COUNT( * ), 77 DIV - 39 AS col1
----
-1
-1

skipif mysql # not compatible
query II rowsort label-3749
SELECT - COUNT ( * ), 77 / - 39 AS col1
----
-1
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-3750
SELECT ALL - NULLIF ( - 43, + - ( + 52 ) ) DIV COALESCE ( - 81, 20 ) - 52 col2
----
-52

skipif mysql # not compatible
query I rowsort label-3750
SELECT ALL - NULLIF ( - 43, + - ( + 52 ) ) / COALESCE ( - 81, 20 ) - 52 col2
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-3751
SELECT ALL - 61 * + - COUNT( * )
----
61

skipif mysql # not compatible
query I rowsort label-3751
SELECT ALL - 61 * + - COUNT ( * )
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-3752
SELECT - 68 + + COUNT( + + ( - + 99 ) ) + - 34 * 3 col1
----
-169

skipif mysql # not compatible
query I rowsort label-3752
SELECT - 68 + + COUNT ( + + ( - + 99 ) ) + - 34 * 3 col1
----
-169

onlyif mysql # aggregate syntax: 
query I rowsort label-3753
SELECT ( MAX( ALL + 99 ) )
----
99

skipif mysql # not compatible
query I rowsort label-3753
SELECT ( MAX ( ALL + 99 ) )
----
99

onlyif mysql # DIV for integer division: 
query I rowsort label-3754
SELECT - 56 DIV - 13 AS col2
----
4

skipif mysql # not compatible
query I rowsort label-3754
SELECT - 56 / - 13 AS col2
----
4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3755
SELECT ALL - COUNT( * ) DIV 36 * - 72
----
0

skipif mysql # not compatible
query I rowsort label-3755
SELECT ALL - COUNT ( * ) / 36 * - 72
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3756
SELECT ( - 56 ) * COUNT( * ) + - 63 DIV - + 9
----
-49

skipif mysql # not compatible
query I rowsort label-3756
SELECT ( - 56 ) * COUNT ( * ) + - 63 / - + 9
----
-49

query I rowsort
SELECT ( - 72 ) AS col2
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-3758
SELECT - COUNT( * ) * + + 72 + - - MAX( ALL - + 48 )
----
-120

skipif mysql # not compatible
query I rowsort label-3758
SELECT - COUNT ( * ) * + + 72 + - - MAX ( ALL - + 48 )
----
-120

onlyif mysql # aggregate syntax: 
query I rowsort label-3759
SELECT + ( + ( - COUNT( * ) ) ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-3759
SELECT + ( + ( - COUNT ( * ) ) ) col2
----
-1

query I rowsort
SELECT + 2 * + 94 * 31 * - + 27 AS col1
----
-157356

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3761
SELECT ALL + CAST( + 69 AS SIGNED ) AS col0
----
69

skipif mysql # not compatible
query I rowsort label-3761
SELECT ALL + CAST ( + 69 AS INTEGER ) AS col0
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-3762
SELECT - 39 * COUNT( * ) + + NULLIF ( - - 17, - 36 ) - + + 37
----
-59

skipif mysql # not compatible
query I rowsort label-3762
SELECT - 39 * COUNT ( * ) + + NULLIF ( - - 17, - 36 ) - + + 37
----
-59

query I rowsort
SELECT ALL - ( - ( - + 79 ) ) * + 92 AS col1
----
-7268

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3764
SELECT - CASE + 52 WHEN + 42 + - COUNT( DISTINCT 19 ) * CASE + + CAST( NULL AS SIGNED ) WHEN + + COUNT( * ) THEN 17 / + 70 * + 82 * - 23 * - 9 END + 95 THEN + 74 END + 25 + + 9 / COUNT( * ) * AVG ( - 99 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3764
SELECT - CASE + 52 WHEN + 42 + - COUNT ( DISTINCT 19 ) * CASE + + CAST ( NULL AS INTEGER ) WHEN + + COUNT ( * ) THEN 17 / + 70 * + 82 * - 23 * - 9 END + 95 THEN + 74 END + 25 + + 9 / COUNT ( * ) * AVG ( - 99 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3765
SELECT + 68 + - - COUNT( * ) + - + 37 * ( + + COALESCE ( 77, + + 24 * - 24 + + + 58 ) ) * + - 67
----
190952

skipif mysql # not compatible
query I rowsort label-3765
SELECT + 68 + - - COUNT ( * ) + - + 37 * ( + + COALESCE ( 77, + + 24 * - 24 + + + 58 ) ) * + - 67
----
190952

query I rowsort
SELECT + - 85 + - 74 + - 34
----
-193

query I rowsort
SELECT + + 10 + - 57
----
-47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3768
SELECT + 63 * + 60 / - + CAST( NULL AS SIGNED ) + + - COUNT( * ) + - ( + 14 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3768
SELECT + 63 * + 60 / - + CAST ( NULL AS INTEGER ) + + - COUNT ( * ) + - ( + 14 ) AS col1
----
NULL

query I rowsort
SELECT + + 24 + + + 85 + 63 AS col1
----
172

onlyif mysql # aggregate syntax: 
query I rowsort label-3770
SELECT - - CASE - COALESCE ( + COUNT( * ), + 0 ) WHEN ( AVG ( DISTINCT + 94 ) ) THEN NULL ELSE + - ( - + 67 ) END AS col0
----
67

skipif mysql # not compatible
query I rowsort label-3770
SELECT - - CASE - COALESCE ( + COUNT ( * ), + 0 ) WHEN ( AVG ( DISTINCT + 94 ) ) THEN NULL ELSE + - ( - + 67 ) END AS col0
----
67

query I rowsort
SELECT ALL + ( + 70 ) AS col1
----
70

query I rowsort
SELECT DISTINCT + - 13 * - 48 + + 99 col1
----
723

query I rowsort
SELECT ALL 87 + - 34
----
53

query II rowsort
SELECT + 5 AS col2, 76 AS col1
----
5
76

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3775
SELECT + 84 DIV + COUNT( * )
----
84

skipif mysql # not compatible
query I rowsort label-3775
SELECT + 84 / + COUNT ( * )
----
84

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3776
SELECT - - 83 + COALESCE ( 2, + 49 + - 2, + + NULLIF ( + 46, COUNT( * ) ) * - 81 DIV - 35 * + + COALESCE ( + + 17, ( COALESCE ( + 49, - 62 DIV + ( + - ( - 80 ) ), 8 ) ) + + 19, - 63 ) ) + 44
----
129

skipif mysql # not compatible
query I rowsort label-3776
SELECT - - 83 + COALESCE ( 2, + 49 + - 2, + + NULLIF ( + 46, COUNT ( * ) ) * - 81 / - 35 * + + COALESCE ( + + 17, ( COALESCE ( + 49, - 62 / + ( + - ( - 80 ) ), 8 ) ) + + 19, - 63 ) ) + 44
----
129

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3777
SELECT DISTINCT + 78 * + - CASE + 39 WHEN + 33 + - 49 * + - AVG ( + 43 ) THEN NULL WHEN + + 22 THEN + - COUNT( * ) WHEN + COUNT( * ) THEN + 35 - + - COALESCE ( 48, - 2 * - + 30, + 58, + + CAST( NULL AS SIGNED ) ) - - ( + COUNT( * ) ) + 50 + 39 * - 16 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3777
SELECT DISTINCT + 78 * + - CASE + 39 WHEN + 33 + - 49 * + - AVG ( + 43 ) THEN NULL WHEN + + 22 THEN + - COUNT ( * ) WHEN + COUNT ( * ) THEN + 35 - + - COALESCE ( 48, - 2 * - + 30, + 58, + + CAST ( NULL AS INTEGER ) ) - - ( + COUNT ( * ) ) + 50 + 39 * - 16 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3778
SELECT - + COUNT( * ) + - 74 AS col2
----
-75

skipif mysql # not compatible
query I rowsort label-3778
SELECT - + COUNT ( * ) + - 74 AS col2
----
-75

query I rowsort
SELECT ALL 4 * + 78 * + 35
----
10920

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3780
SELECT - 16 * CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3780
SELECT - 16 * CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT ALL ( + 80 ) col2
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-3782
SELECT DISTINCT 39 * - COUNT( * ) col0
----
-39

skipif mysql # not compatible
query I rowsort label-3782
SELECT DISTINCT 39 * - COUNT ( * ) col0
----
-39

query I rowsort
SELECT ALL 98 - - - 90
----
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3784
SELECT DISTINCT CAST( + + 3 AS SIGNED ) AS col1
----
3

skipif mysql # not compatible
query I rowsort label-3784
SELECT DISTINCT CAST ( + + 3 AS INTEGER ) AS col1
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3785
SELECT DISTINCT CASE - AVG ( ALL 50 ) WHEN - 92 + + AVG ( ALL - 85 ) - + 59 THEN + 61 * + 17 + - CASE - ( + - COUNT( * ) ) WHEN 86 + - CAST( - - 10 AS SIGNED ) THEN NULL WHEN NULLIF ( - 65, + + 80 + - 30 + 27 / + + 60 ) * - 99 - 26 + + - 69 + COUNT( * ) THEN - 10 WHEN 53 / + 51 THEN + 26 ELSE NULL END * + 66 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3785
SELECT DISTINCT CASE - AVG ( ALL 50 ) WHEN - 92 + + AVG ( ALL - 85 ) - + 59 THEN + 61 * + 17 + - CASE - ( + - COUNT ( * ) ) WHEN 86 + - CAST ( - - 10 AS INTEGER ) THEN NULL WHEN NULLIF ( - 65, + + 80 + - 30 + 27 / + + 60 ) * - 99 - 26 + + - 69 + COUNT ( * ) THEN - 10 WHEN 53 / + 51 THEN + 26 ELSE NULL END * + 66 END
----
NULL

query I rowsort
SELECT + ( + 49 ) - - 52
----
101

query I rowsort
SELECT ALL - 30 * 28
----
-840

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3788
SELECT MIN( + 40 ) * 94 - 49 + 72 + 35 * - + 12 DIV - COALESCE ( COUNT( * ), + - ( + 71 ) ) + COALESCE ( + 31, - 19 * SUM( DISTINCT - 96 ) - 92 + + 29 * - 52 * COUNT( * ) DIV + - 20, COUNT( * ) DIV - 41 - + - 3 DIV + 47 ) col1
----
4234

skipif mysql # not compatible
query I rowsort label-3788
SELECT MIN ( + 40 ) * 94 - 49 + 72 + 35 * - + 12 / - COALESCE ( COUNT ( * ), + - ( + 71 ) ) + COALESCE ( + 31, - 19 * SUM ( DISTINCT - 96 ) - 92 + + 29 * - 52 * COUNT ( * ) / + - 20, COUNT ( * ) / - 41 - + - 3 / + 47 ) col1
----
4234

query I rowsort
SELECT 4 * + ( + 20 ) AS col1
----
80

query I rowsort
SELECT DISTINCT - NULLIF ( - 13, + + 84 ) * + - 89 AS col2
----
-1157

onlyif mysql # aggregate syntax: 
query II rowsort label-3791
SELECT DISTINCT - 13 * - 43 AS col0, - ( + MIN( - + 82 ) )
----
559
82

skipif mysql # not compatible
query II rowsort label-3791
SELECT DISTINCT - 13 * - 43 AS col0, - ( + MIN ( - + 82 ) )
----
559
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3792
SELECT DISTINCT 49 + 94 * + 10 - - - CAST( + 40 AS SIGNED ) + - 17 * - MIN( ALL + + 63 ) + - 93 + - 14 * + 37 AS col1
----
1409

skipif mysql # not compatible
query I rowsort label-3792
SELECT DISTINCT 49 + 94 * + 10 - - - CAST ( + 40 AS INTEGER ) + - 17 * - MIN ( ALL + + 63 ) + - 93 + - 14 * + 37 AS col1
----
1409

query I rowsort
SELECT - 36 * - 73 - - + 97
----
2725

onlyif mysql # aggregate syntax: 
query I rowsort label-3794
SELECT ALL - - CASE - 9 WHEN 28 THEN - MIN( DISTINCT + + 29 ) * + - 54 + - + 21 + - 4 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3794
SELECT ALL - - CASE - 9 WHEN 28 THEN - MIN ( DISTINCT + + 29 ) * + - 54 + - + 21 + - 4 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3795
SELECT + ( - 43 ) * - CAST( NULL AS SIGNED ) / - + 11
----
NULL

skipif mysql # not compatible
query I rowsort label-3795
SELECT + ( - 43 ) * - CAST ( NULL AS INTEGER ) / - + 11
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3796
SELECT - 99 * + + NULLIF ( + 67, + COUNT( * ) + - 90 + ( 54 ) + COALESCE ( - SUM( - 22 ), + 43, + 29 + - 94 + + + 53 + - + 20 * + 61 ) ) * + + ( ( - 86 ) ) + - - 91 - - 21 AS col2
----
570550

skipif mysql # not compatible
query I rowsort label-3796
SELECT - 99 * + + NULLIF ( + 67, + COUNT ( * ) + - 90 + ( 54 ) + COALESCE ( - SUM ( - 22 ), + 43, + 29 + - 94 + + + 53 + - + 20 * + 61 ) ) * + + ( ( - 86 ) ) + - - 91 - - 21 AS col2
----
570550

query I rowsort
SELECT + 26 - - 94
----
120

onlyif mysql # DIV for integer division: 
query I rowsort label-3798
SELECT 28 DIV - 64 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3798
SELECT 28 / - 64 AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3799
SELECT + 35 DIV 88 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3799
SELECT + 35 / 88 AS col2
----
0

query I rowsort
SELECT ALL 5 + + 46 - + - 52
----
103

query I rowsort
SELECT DISTINCT + 6 + 59
----
65

query I rowsort
SELECT DISTINCT - 42 * + - 96 * + - 81 + - - 94 AS col2
----
-326498

onlyif mysql # aggregate syntax: 
query I rowsort label-3803
SELECT ALL - CASE + 32 WHEN 14 THEN NULL WHEN - - 37 THEN + 99 * - 96 ELSE NULL END + - 39 + + 63 * 12 * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3803
SELECT ALL - CASE + 32 WHEN 14 THEN NULL WHEN - - 37 THEN + 99 * - 96 ELSE NULL END + - 39 + + 63 * 12 * COUNT ( * )
----
NULL

query I rowsort
SELECT DISTINCT + ( + 16 ) * - 45 AS col1
----
-720

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3805
SELECT + 27 * 96 + CAST( + + 87 AS SIGNED ) + COUNT( * ) - + + 21 + - CASE WHEN CASE COUNT( ALL + 27 ) WHEN + - 96 THEN NULL WHEN 62 THEN + 28 - COALESCE ( - - 78, + 59, + 46 ) ELSE 16 / + 80 + - 20 END IS NULL THEN - 79 * - SUM( DISTINCT + - 68 ) + - 50 WHEN 68 BETWEEN 69 / + 38 + 4 * 2 AND 92 * - 95 - 31 THEN NULL END * + 23
----
NULL

skipif mysql # not compatible
query I rowsort label-3805
SELECT + 27 * 96 + CAST ( + + 87 AS INTEGER ) + COUNT ( * ) - + + 21 + - CASE WHEN CASE COUNT ( ALL + 27 ) WHEN + - 96 THEN NULL WHEN 62 THEN + 28 - COALESCE ( - - 78, + 59, + 46 ) ELSE 16 / + 80 + - 20 END IS NULL THEN - 79 * - SUM ( DISTINCT + - 68 ) + - 50 WHEN 68 BETWEEN 69 / + 38 + 4 * 2 AND 92 * - 95 - 31 THEN NULL END * + 23
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3806
SELECT + SUM( 27 ) col2
----
27

skipif mysql # not compatible
query I rowsort label-3806
SELECT + SUM ( 27 ) col2
----
27

query I rowsort
SELECT - COALESCE ( - 89, + 55 )
----
89

onlyif mysql # aggregate syntax: 
query II rowsort label-3808
SELECT ALL - 49 * - 94 + + + COUNT( * ) * - + 14 AS col0, + 30
----
4592
30

skipif mysql # not compatible
query II rowsort label-3808
SELECT ALL - 49 * - 94 + + + COUNT ( * ) * - + 14 AS col0, + 30
----
4592
30

query I rowsort
SELECT ALL 35 - + 55 AS col0
----
-20

query I rowsort
SELECT 83 * + + 22 AS col0
----
1826

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3811
SELECT CAST( 93 AS SIGNED ) + 81 col1, 86
----
174
86

skipif mysql # not compatible
query II rowsort label-3811
SELECT CAST ( 93 AS INTEGER ) + 81 col1, 86
----
174
86

onlyif mysql # aggregate syntax: 
query I rowsort label-3812
SELECT ALL + ( + MIN( DISTINCT 25 ) ) - + + 42 AS col1
----
-17

skipif mysql # not compatible
query I rowsort label-3812
SELECT ALL + ( + MIN ( DISTINCT 25 ) ) - + + 42 AS col1
----
-17

query I rowsort
SELECT 88 + - 67
----
21

query I rowsort
SELECT 24 * + 97 * - ( + 21 ) * + 17 AS col0
----
-831096

query I rowsort
SELECT 33 - - 83 col1
----
116

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3816
SELECT COALESCE ( - - 92, - 71 + + 29, + 37 + + + CAST( NULL AS SIGNED ) ) DIV + COALESCE ( - 84, COUNT( * ) - + 5 * - 9 + - - COUNT( ALL - - 7 ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-3816
SELECT COALESCE ( - - 92, - 71 + + 29, + 37 + + + CAST ( NULL AS INTEGER ) ) / + COALESCE ( - 84, COUNT ( * ) - + 5 * - 9 + - - COUNT ( ALL - - 7 ) ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3817
SELECT 7 + - - COUNT( * )
----
8

skipif mysql # not compatible
query I rowsort label-3817
SELECT 7 + - - COUNT ( * )
----
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3818
SELECT 43 + + MIN( - + 46 ) + + CAST( - + 14 AS SIGNED ) + + - 76 * - 22 AS col0
----
1655

skipif mysql # not compatible
query I rowsort label-3818
SELECT 43 + + MIN ( - + 46 ) + + CAST ( - + 14 AS INTEGER ) + + - 76 * - 22 AS col0
----
1655

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3819
SELECT 49 * + MIN( ALL + 37 ) DIV 94 * + + 2 DIV 84
----
0

skipif mysql # not compatible
query I rowsort label-3819
SELECT 49 * + MIN ( ALL + 37 ) / 94 * + + 2 / 84
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3820
SELECT ALL COUNT( ALL 73 ) + - 26 + - SUM( - 62 )
----
37

skipif mysql # not compatible
query I rowsort label-3820
SELECT ALL COUNT ( ALL 73 ) + - 26 + - SUM ( - 62 )
----
37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3821
SELECT ALL - CAST( + + 41 AS SIGNED ) + - 34 + COUNT( * ) + 97 AS col1
----
23

skipif mysql # not compatible
query I rowsort label-3821
SELECT ALL - CAST ( + + 41 AS INTEGER ) + - 34 + COUNT ( * ) + 97 AS col1
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-3822
SELECT DISTINCT - MIN( ALL - COALESCE ( - 75, + ( 45 ), + 47 ) )
----
-75

skipif mysql # not compatible
query I rowsort label-3822
SELECT DISTINCT - MIN ( ALL - COALESCE ( - 75, + ( 45 ), + 47 ) )
----
-75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3823
SELECT 42 + + 30 + - - CASE + + 48 WHEN 68 THEN COALESCE ( - 42, + 56 DIV + SUM( 79 ) * - - CASE + 52 WHEN - 34 DIV + + 85 THEN COUNT( * ) END * - 40 * CAST( NULL AS SIGNED ) * - 11 + + + 52 ) ELSE CASE 72 WHEN - 64 THEN NULL WHEN 62 DIV 33 DIV 22 - MAX( ALL + CAST( NULL AS SIGNED ) ) THEN NULL ELSE 3 * 37 END + 76 END * 15 AS col0
----
2877

skipif mysql # not compatible
query I rowsort label-3823
SELECT 42 + + 30 + - - CASE + + 48 WHEN 68 THEN COALESCE ( - 42, + 56 / + SUM ( 79 ) * - - CASE + 52 WHEN - 34 / + + 85 THEN COUNT ( * ) END * - 40 * CAST ( NULL AS INTEGER ) * - 11 + + + 52 ) ELSE CASE 72 WHEN - 64 THEN NULL WHEN 62 / 33 / 22 - MAX ( ALL + CAST ( NULL AS INTEGER ) ) THEN NULL ELSE 3 * 37 END + 76 END * 15 AS col0
----
2877

onlyif mysql # aggregate syntax: 
query I rowsort label-3824
SELECT ALL + ( 77 ) + - MAX( 69 ) - + + NULLIF ( - 65, + - 45 + 87 + - - 36 )
----
73

skipif mysql # not compatible
query I rowsort label-3824
SELECT ALL + ( 77 ) + - MAX ( 69 ) - + + NULLIF ( - 65, + - 45 + 87 + - - 36 )
----
73

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3825
SELECT DISTINCT - - COUNT( 86 ) + - ( 32 ) - - 85 DIV - ( + + 52 )
----
-32

skipif mysql # not compatible
query I rowsort label-3825
SELECT DISTINCT - - COUNT ( 86 ) + - ( 32 ) - - 85 / - ( + + 52 )
----
-32

onlyif mysql # aggregate syntax: 
query II rowsort label-3826
SELECT COUNT( * ) AS col2, - ( + MAX( ALL - 8 ) )
----
1
8

skipif mysql # not compatible
query II rowsort label-3826
SELECT COUNT ( * ) AS col2, - ( + MAX ( ALL - 8 ) )
----
1
8

query I rowsort
SELECT 56 + 11 + + + 11
----
78

query II rowsort
SELECT DISTINCT - 14 AS col0, + 96 + - 18 AS col1
----
-14
78

query I rowsort
SELECT DISTINCT + 35 + - 68
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-3830
SELECT DISTINCT + - MIN( ALL + 13 ) + + 68 AS col2
----
55

skipif mysql # not compatible
query I rowsort label-3830
SELECT DISTINCT + - MIN ( ALL + 13 ) + + 68 AS col2
----
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3831
SELECT ALL - COUNT( * ) + - 13 * CAST( NULL AS SIGNED ) * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3831
SELECT ALL - COUNT ( * ) + - 13 * CAST ( NULL AS INTEGER ) * + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL + NULLIF ( - 97, 58 ) * 84 * - + 27
----
219996

onlyif mysql # aggregate syntax: 
query I rowsort label-3833
SELECT + MIN( DISTINCT - 99 ) + + + 67 col1
----
-32

skipif mysql # not compatible
query I rowsort label-3833
SELECT + MIN ( DISTINCT - 99 ) + + + 67 col1
----
-32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3834
SELECT ALL + 61 - COUNT( * ) + 95 * + 13 * ( - - 60 ) * + + COALESCE ( + CAST( NULL AS SIGNED ), 55, + + COUNT( * ) ) + - 76 col1, - COUNT( * ) AS col2
----
4075484
-1

skipif mysql # not compatible
query II rowsort label-3834
SELECT ALL + 61 - COUNT ( * ) + 95 * + 13 * ( - - 60 ) * + + COALESCE ( + CAST ( NULL AS INTEGER ), 55, + + COUNT ( * ) ) + - 76 col1, - COUNT ( * ) AS col2
----
4075484
-1

query II rowsort
SELECT - 40 col0, 19 AS col1
----
-40
19

onlyif mysql # aggregate syntax: 
query I rowsort label-3836
SELECT - 49 + + 27 + + 59 * + CASE 56 WHEN - 80 / + COALESCE ( + MIN( ALL + - 75 ), 61 - - NULLIF ( + 46, COUNT( * ) * ( 44 ) ) + 63 - + - 24 ) THEN NULL WHEN - + MAX( 4 ) THEN NULL ELSE + 42 END
----
2456

skipif mysql # not compatible
query I rowsort label-3836
SELECT - 49 + + 27 + + 59 * + CASE 56 WHEN - 80 / + COALESCE ( + MIN ( ALL + - 75 ), 61 - - NULLIF ( + 46, COUNT ( * ) * ( 44 ) ) + 63 - + - 24 ) THEN NULL WHEN - + MAX ( 4 ) THEN NULL ELSE + 42 END
----
2456

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3837
SELECT - CAST( - 9 AS SIGNED ) * - - 99 + + - 92
----
799

skipif mysql # not compatible
query I rowsort label-3837
SELECT - CAST ( - 9 AS INTEGER ) * - - 99 + + - 92
----
799

onlyif mysql # aggregate syntax: 
query I rowsort label-3838
SELECT - MAX( + 34 ) * - 60 + - 27
----
2013

skipif mysql # not compatible
query I rowsort label-3838
SELECT - MAX ( + 34 ) * - 60 + - 27
----
2013

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3839
SELECT ALL + NULLIF ( + 17, - COALESCE ( - MAX( ALL + 27 ), + 22 + 77 ) * COUNT( * ) ) DIV + 35 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3839
SELECT ALL + NULLIF ( + 17, - COALESCE ( - MAX ( ALL + 27 ), + 22 + 77 ) * COUNT ( * ) ) / + 35 AS col1
----
0

query I rowsort
SELECT + 2 + + 57 AS col1
----
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3841
SELECT 83 * 37 * NULLIF ( + CAST( NULL AS SIGNED ), 14 ) / 96
----
NULL

skipif mysql # not compatible
query I rowsort label-3841
SELECT 83 * 37 * NULLIF ( + CAST ( NULL AS INTEGER ), 14 ) / 96
----
NULL

query I rowsort
SELECT ALL 87 * 66
----
5742

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3843
SELECT 98 + - 57 / + + 48 + + 66 + + CAST( NULL AS SIGNED ) * - - 58 * + 57 * 56 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3843
SELECT 98 + - 57 / + + 48 + + 66 + + CAST ( NULL AS INTEGER ) * - - 58 * + 57 * 56 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3844
SELECT ALL COUNT( * ), + 20 + 28 AS col1
----
1
48

skipif mysql # not compatible
query II rowsort label-3844
SELECT ALL COUNT ( * ), + 20 + 28 AS col1
----
1
48

onlyif mysql # aggregate syntax: 
query I rowsort label-3845
SELECT ALL MAX( ALL - 19 ) col1
----
-19

skipif mysql # not compatible
query I rowsort label-3845
SELECT ALL MAX ( ALL - 19 ) col1
----
-19

query I rowsort
SELECT DISTINCT - 48 * - 47
----
2256

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3847
SELECT DISTINCT COALESCE ( - ( 37 ), - CAST( NULL AS SIGNED ), - + 22 DIV + 62 )
----
-37

skipif mysql # not compatible
query I rowsort label-3847
SELECT DISTINCT COALESCE ( - ( 37 ), - CAST ( NULL AS INTEGER ), - + 22 / + 62 )
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-3848
SELECT ALL + 30 * + COUNT( * )
----
30

skipif mysql # not compatible
query I rowsort label-3848
SELECT ALL + 30 * + COUNT ( * )
----
30

query II rowsort
SELECT 33 col2, 28 AS col2
----
33
28

query I rowsort
SELECT + 62 + - 44 AS col1
----
18

query I rowsort
SELECT - 9 * - 56
----
504

query I rowsort
SELECT + 15 + - 49
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-3853
SELECT DISTINCT COALESCE ( + 22, 37 * + 45 * + 22 * + - 73 - - - 89 ) + COUNT( * )
----
23

skipif mysql # not compatible
query I rowsort label-3853
SELECT DISTINCT COALESCE ( + 22, 37 * + 45 * + 22 * + - 73 - - - 89 ) + COUNT ( * )
----
23

onlyif mysql # DIV for integer division: 
query I rowsort label-3854
SELECT ALL ( + + 60 ) + + 11 DIV - - 51 * - 85 AS col1
----
60

skipif mysql # not compatible
query I rowsort label-3854
SELECT ALL ( + + 60 ) + + 11 / - - 51 * - 85 AS col1
----
60

query I rowsort
SELECT + 79 * - 66 AS col2
----
-5214

onlyif mysql # aggregate syntax: 
query II rowsort label-3856
SELECT DISTINCT 25 AS col1, + 74 + 27 * - COUNT( * ) * + + ( - 3 )
----
25
155

skipif mysql # not compatible
query II rowsort label-3856
SELECT DISTINCT 25 AS col1, + 74 + 27 * - COUNT ( * ) * + + ( - 3 )
----
25
155

onlyif mysql # aggregate syntax: 
query I rowsort label-3857
SELECT - NULLIF ( + - 16, - - 31 - 42 - - COUNT( * ) ) AS col2
----
16

skipif mysql # not compatible
query I rowsort label-3857
SELECT - NULLIF ( + - 16, - - 31 - 42 - - COUNT ( * ) ) AS col2
----
16

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3858
SELECT ALL CAST( NULL AS DECIMAL ) + NULLIF ( ( - 24 ), + 13 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3858
SELECT ALL CAST ( NULL AS REAL ) + NULLIF ( ( - 24 ), + 13 ) AS col1
----
NULL

query I rowsort
SELECT - 94 * + - 79 - - 90 * - ( - 85 )
----
15076

query I rowsort
SELECT 68 * - 5 + + 13 col2
----
-327

query II rowsort
SELECT - 16 AS col1, + ( + 74 ) AS col0
----
-16
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3862
SELECT - 8 / + 47 / + CAST( NULL AS SIGNED ) * - COALESCE ( NULLIF ( CASE - + 79 WHEN - 4 - COUNT( * ) THEN COUNT( * ) * - 63 - - 18 + 97 * + 81 + - COUNT( * ) WHEN + 18 THEN NULL END, - + 52 ), - 12 ) * + - 6 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3862
SELECT - 8 / + 47 / + CAST ( NULL AS INTEGER ) * - COALESCE ( NULLIF ( CASE - + 79 WHEN - 4 - COUNT ( * ) THEN COUNT ( * ) * - 63 - - 18 + 97 * + 81 + - COUNT ( * ) WHEN + 18 THEN NULL END, - + 52 ), - 12 ) * + - 6 AS col2
----
NULL

query I rowsort
SELECT + 48 * + 0 AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3864
SELECT DISTINCT + COALESCE ( - ( + - COUNT( * ) ), + + CASE 88 WHEN 14 DIV - 28 THEN 45 END, - 75 + - 48 + + 48 DIV COUNT( * ) * + 20 * - 27 ) * + 72 + - - ( ( - - COUNT( * ) ) ) + + 72 + 52 DIV - 68 * + 65
----
145

skipif mysql # not compatible
query I rowsort label-3864
SELECT DISTINCT + COALESCE ( - ( + - COUNT ( * ) ), + + CASE 88 WHEN 14 / - 28 THEN 45 END, - 75 + - 48 + + 48 / COUNT ( * ) * + 20 * - 27 ) * + 72 + - - ( ( - - COUNT ( * ) ) ) + + 72 + 52 / - 68 * + 65
----
145

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3865
SELECT DISTINCT - CAST( 21 AS SIGNED ) * + 33 * + 65 * CASE + 36 WHEN + - COUNT( * ) * 67 THEN NULL WHEN CAST( NULL AS SIGNED ) THEN ( 39 ) END + + 14 + + + 95 * - + 86 + + COUNT( DISTINCT - 87 ) * - CASE + 46 WHEN COUNT( * ) THEN NULL ELSE - 63 * + 93 END + - 45 * + - 92
----
NULL

skipif mysql # not compatible
query I rowsort label-3865
SELECT DISTINCT - CAST ( 21 AS INTEGER ) * + 33 * + 65 * CASE + 36 WHEN + - COUNT ( * ) * 67 THEN NULL WHEN CAST ( NULL AS INTEGER ) THEN ( 39 ) END + + 14 + + + 95 * - + 86 + + COUNT ( DISTINCT - 87 ) * - CASE + 46 WHEN COUNT ( * ) THEN NULL ELSE - 63 * + 93 END + - 45 * + - 92
----
NULL

query I rowsort
SELECT - ( + 18 ) * 16 + + 55 - - 35 * 91 - - - 73 - 71
----
2808

query I rowsort
SELECT + NULLIF ( 93, + + 22 )
----
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3868
SELECT + + CAST( 0 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-3868
SELECT + + CAST ( 0 AS INTEGER )
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3869
SELECT + - 57, + NULLIF ( + 93, + - MAX( ALL + 78 ) / - 12 + - 30 ) * 98 AS col1
----
-57
9114

skipif mysql # not compatible
query II rowsort label-3869
SELECT + - 57, + NULLIF ( + 93, + - MAX ( ALL + 78 ) / - 12 + - 30 ) * 98 AS col1
----
-57
9114

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3870
SELECT DISTINCT CAST( NULL AS SIGNED ) * - 75 - - 90
----
NULL

skipif mysql # not compatible
query I rowsort label-3870
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - 75 - - 90
----
NULL

query I rowsort
SELECT ALL + + ( 47 )
----
47

query II rowsort
SELECT + 79, - 44 * - 3 * - - 22 + + 61 AS col2
----
79
2965

query I rowsort
SELECT DISTINCT + 71 * - + 56 + + - 64 + 99 - - - 56 + - 28 AS col0
----
-4025

onlyif mysql # aggregate syntax: 
query I rowsort label-3874
SELECT ALL - ( - 14 ) * + + 19 + + + 73 - - ( + 22 ) * MAX( ALL + 31 ) * + 61 AS col2
----
41941

skipif mysql # not compatible
query I rowsort label-3874
SELECT ALL - ( - 14 ) * + + 19 + + + 73 - - ( + 22 ) * MAX ( ALL + 31 ) * + 61 AS col2
----
41941

query I rowsort
SELECT + COALESCE ( - + 98, - 18 + + 77, - - 90 + - + 63 ) AS col1
----
-98

onlyif mysql # aggregate syntax: 
query II rowsort label-3876
SELECT - 45 * 80 AS col2, NULLIF ( - + COUNT( DISTINCT 23 ), - - 25 * + 94 )
----
-3600
-1

skipif mysql # not compatible
query II rowsort label-3876
SELECT - 45 * 80 AS col2, NULLIF ( - + COUNT ( DISTINCT 23 ), - - 25 * + 94 )
----
-3600
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3877
SELECT ALL CASE 98 WHEN - 28 THEN NULL WHEN - 42 THEN + - MIN( 37 ) WHEN + ( - COUNT( * ) ) * 53 THEN + 4 * + ( + 25 ) * - + MIN( DISTINCT + 62 ) * - + 47 * + 27 WHEN - ( - MIN( - - 57 ) ) THEN - COUNT( * ) ELSE - 92 END
----
-92

skipif mysql # not compatible
query I rowsort label-3877
SELECT ALL CASE 98 WHEN - 28 THEN NULL WHEN - 42 THEN + - MIN ( 37 ) WHEN + ( - COUNT ( * ) ) * 53 THEN + 4 * + ( + 25 ) * - + MIN ( DISTINCT + 62 ) * - + 47 * + 27 WHEN - ( - MIN ( - - 57 ) ) THEN - COUNT ( * ) ELSE - 92 END
----
-92

query I rowsort
SELECT ALL ( - ( + 23 ) ) AS col2
----
-23

onlyif mysql # DIV for integer division: 
query II rowsort label-3879
SELECT ALL - 71 DIV 67 AS col0, - COALESCE ( 43, - - 2 )
----
-1
-43

skipif mysql # not compatible
query II rowsort label-3879
SELECT ALL - 71 / 67 AS col0, - COALESCE ( 43, - - 2 )
----
-1
-43

onlyif mysql # aggregate syntax: 
query II rowsort label-3880
SELECT + 15 * - - 49 AS col0, MIN( + 44 ) col1
----
735
44

skipif mysql # not compatible
query II rowsort label-3880
SELECT + 15 * - - 49 AS col0, MIN ( + 44 ) col1
----
735
44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3881
SELECT - 3 + CAST( NULL AS SIGNED ) + - 41 + - 35 * - 85 * - ( + 95 ) + + - 8 - - 63 + - 76 * 30 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3881
SELECT - 3 + CAST ( NULL AS INTEGER ) + - 41 + - 35 * - 85 * - ( + 95 ) + + - 8 - - 63 + - 76 * 30 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3882
SELECT ALL COALESCE ( + SUM( ALL - + ( - 31 ) ), + 27 - - 79 + 37 )
----
31

skipif mysql # not compatible
query I rowsort label-3882
SELECT ALL COALESCE ( + SUM ( ALL - + ( - 31 ) ), + 27 - - 79 + 37 )
----
31

onlyif mysql # aggregate syntax: 
query II rowsort label-3883
SELECT DISTINCT ( + 10 ), ( + COUNT( * ) ) col0
----
10
1

skipif mysql # not compatible
query II rowsort label-3883
SELECT DISTINCT ( + 10 ), ( + COUNT ( * ) ) col0
----
10
1

query I rowsort
SELECT DISTINCT - 54 + - - 33 + 45 col2
----
24

query I rowsort
SELECT - 43 + - 4 + 78 + ( - 91 ) AS col0
----
-60

query I rowsort
SELECT + 49 - 40 AS col0
----
9

query I rowsort
SELECT + NULLIF ( ( 31 ), - + 42 ) - + 88
----
-57

query I rowsort
SELECT DISTINCT + 10 + 42 * + + 76 * 38 col2
----
121306

onlyif mysql # aggregate syntax: 
query I rowsort label-3889
SELECT ALL + COUNT( * ) / - - CASE + + 19 WHEN - 12 THEN + NULLIF ( + COUNT( * ), 93 ) * - 30 ELSE NULL END - - MAX( + 76 ) * + 6 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3889
SELECT ALL + COUNT ( * ) / - - CASE + + 19 WHEN - 12 THEN + NULLIF ( + COUNT ( * ), 93 ) * - 30 ELSE NULL END - - MAX ( + 76 ) * + 6 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3890
SELECT + COUNT( * ) DIV + - 50 + + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-3890
SELECT + COUNT ( * ) / + - 50 + + COUNT ( * )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3891
SELECT + - NULLIF ( + 95, 39 ) + - COUNT( * )
----
-96

skipif mysql # not compatible
query I rowsort label-3891
SELECT + - NULLIF ( + 95, 39 ) + - COUNT ( * )
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-3892
SELECT ALL + - COUNT( + 62 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-3892
SELECT ALL + - COUNT ( + 62 ) AS col1
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-3893
SELECT ALL - 96 DIV + + 65 - + 92
----
-93

skipif mysql # not compatible
query I rowsort label-3893
SELECT ALL - 96 / + + 65 - + 92
----
-93

query I rowsort
SELECT - 12 * - 15 col2
----
180

query I rowsort
SELECT + 82 * 50
----
4100

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3896
SELECT + COUNT( * ) * + CAST( + 9 AS SIGNED )
----
9

skipif mysql # not compatible
query I rowsort label-3896
SELECT + COUNT ( * ) * + CAST ( + 9 AS INTEGER )
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3897
SELECT + ( ( - - 62 ) ) AS col1, - 2 - - CAST( NULL AS SIGNED )
----
62
NULL

skipif mysql # not compatible
query II rowsort label-3897
SELECT + ( ( - - 62 ) ) AS col1, - 2 - - CAST ( NULL AS INTEGER )
----
62
NULL

query I rowsort
SELECT 67 * + ( CASE WHEN + 47 IS NOT NULL THEN 10 ELSE + 32 END ) + 84 * - + 18 + - 79 AS col0
----
-921

query I rowsort
SELECT ALL - ( 64 ) * 38 AS col0
----
-2432

query I rowsort
SELECT + + 50 * 53 AS col2
----
2650

onlyif mysql # aggregate syntax: 
query I rowsort label-3901
SELECT - ( + 43 ) + - MAX( ALL 43 ) AS col1
----
-86

skipif mysql # not compatible
query I rowsort label-3901
SELECT - ( + 43 ) + - MAX ( ALL 43 ) AS col1
----
-86

query II rowsort
SELECT DISTINCT 27 * - 8, 91 + - 54 - + 12 + - + 32 AS col0
----
-216
-7

query I rowsort
SELECT + 71 + - + 38 AS col2
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-3904
SELECT DISTINCT 40 * - + ( CASE - SUM( DISTINCT 35 ) WHEN + 0 THEN NULL WHEN 96 * - + 22 - - + 45 * - COUNT( * ) - + COUNT( - 59 ) THEN + + COUNT( * ) / - 52 / - 24 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-3904
SELECT DISTINCT 40 * - + ( CASE - SUM ( DISTINCT 35 ) WHEN + 0 THEN NULL WHEN 96 * - + 22 - - + 45 * - COUNT ( * ) - + COUNT ( - 59 ) THEN + + COUNT ( * ) / - 52 / - 24 END )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3905
SELECT DISTINCT + COUNT( * ) * - 66 * 43 AS col0
----
-2838

skipif mysql # not compatible
query I rowsort label-3905
SELECT DISTINCT + COUNT ( * ) * - 66 * 43 AS col0
----
-2838

onlyif mysql # aggregate syntax: 
query I rowsort label-3906
SELECT ALL - - MIN( DISTINCT + + 58 )
----
58

skipif mysql # not compatible
query I rowsort label-3906
SELECT ALL - - MIN ( DISTINCT + + 58 )
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-3907
SELECT DISTINCT NULLIF ( + - MIN( - 13 ), - 24 ) + - - 92 * - + 0
----
13

skipif mysql # not compatible
query I rowsort label-3907
SELECT DISTINCT NULLIF ( + - MIN ( - 13 ), - 24 ) + - - 92 * - + 0
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-3908
SELECT ALL - MAX( + - 43 )
----
43

skipif mysql # not compatible
query I rowsort label-3908
SELECT ALL - MAX ( + - 43 )
----
43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3909
SELECT CAST( + 40 AS SIGNED ) * CAST( NULL AS SIGNED ) + - 24 + - - 63
----
NULL

skipif mysql # not compatible
query I rowsort label-3909
SELECT CAST ( + 40 AS INTEGER ) * CAST ( NULL AS INTEGER ) + - 24 + - - 63
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3910
SELECT 33 + + + COUNT( * ) AS col0
----
34

skipif mysql # not compatible
query I rowsort label-3910
SELECT 33 + + + COUNT ( * ) AS col0
----
34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3911
SELECT 23 * COALESCE ( - 87, COALESCE ( - 39, + - ( 41 ) ), CAST( NULL AS SIGNED ) )
----
-2001

skipif mysql # not compatible
query I rowsort label-3911
SELECT 23 * COALESCE ( - 87, COALESCE ( - 39, + - ( 41 ) ), CAST ( NULL AS INTEGER ) )
----
-2001

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3912
SELECT DISTINCT 26 + + 31 * 48 * + CAST( NULL AS SIGNED ) + 9 - + 27 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3912
SELECT DISTINCT 26 + + 31 * 48 * + CAST ( NULL AS INTEGER ) + 9 - + 27 AS col2
----
NULL

query II rowsort
SELECT ALL 62, 30 AS col2
----
62
30

onlyif mysql # DIV for integer division: 
query I rowsort label-3914
SELECT 42 DIV - 54
----
0

skipif mysql # not compatible
query I rowsort label-3914
SELECT 42 / - 54
----
0

query I rowsort
SELECT ALL - CASE - 31 WHEN + + 44 * 81 THEN - + 98 ELSE + 15 END + 59 AS col2
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-3916
SELECT 49 * + COUNT( * )
----
49

skipif mysql # not compatible
query I rowsort label-3916
SELECT 49 * + COUNT ( * )
----
49

onlyif mysql # DIV for integer division: 
query I rowsort label-3917
SELECT 32 DIV + 34 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3917
SELECT 32 / + 34 AS col2
----
0

query I rowsort
SELECT 68 + - 16
----
52

query II rowsort
SELECT DISTINCT 79, - 72 col1
----
79
-72

query II rowsort
SELECT 12 AS col1, + 88 * - 55
----
12
-4840

query I rowsort
SELECT DISTINCT 60 - + - 8 AS col1
----
68

query I rowsort
SELECT ALL - 5 * - - 26 AS col0
----
-130

onlyif mysql # DIV for integer division: 
query I rowsort label-3923
SELECT 58 DIV + 4 AS col0
----
14

skipif mysql # not compatible
query I rowsort label-3923
SELECT 58 / + 4 AS col0
----
14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3924
SELECT ALL - - 77 DIV + + 45 + - 63 * + COUNT( * ) AS col1
----
-62

skipif mysql # not compatible
query I rowsort label-3924
SELECT ALL - - 77 / + + 45 + - 63 * + COUNT ( * ) AS col1
----
-62

query I rowsort
SELECT DISTINCT + ( ( 90 ) )
----
90

query II rowsort
SELECT DISTINCT 95 AS col1, - 21 AS col2
----
95
-21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3927
SELECT - CASE + NULLIF ( + + 36, 31 / NULLIF ( + 23, + - 61 ) / - CAST( NULL AS SIGNED ) ) WHEN - 45 THEN 63 WHEN + 74 * + 30 / 99 THEN NULL WHEN + - CAST( - + 80 AS SIGNED ) THEN NULL ELSE + 67 END - - - 67 AS col2
----
-134

skipif mysql # not compatible
query I rowsort label-3927
SELECT - CASE + NULLIF ( + + 36, 31 / NULLIF ( + 23, + - 61 ) / - CAST ( NULL AS INTEGER ) ) WHEN - 45 THEN 63 WHEN + 74 * + 30 / 99 THEN NULL WHEN + - CAST ( - + 80 AS INTEGER ) THEN NULL ELSE + 67 END - - - 67 AS col2
----
-134

onlyif mysql # aggregate syntax: 
query I rowsort label-3928
SELECT - - COALESCE ( ( 51 ), - 78 + + 85, + + COUNT( ALL 23 ) )
----
51

skipif mysql # not compatible
query I rowsort label-3928
SELECT - - COALESCE ( ( 51 ), - 78 + + 85, + + COUNT ( ALL 23 ) )
----
51

onlyif mysql # aggregate syntax: 
query II rowsort label-3929
SELECT + COUNT( * ) AS col2, + 31 * - + 6 AS col1
----
1
-186

skipif mysql # not compatible
query II rowsort label-3929
SELECT + COUNT ( * ) AS col2, + 31 * - + 6 AS col1
----
1
-186

onlyif mysql # DIV for integer division: 
query I rowsort label-3930
SELECT - 2 + + 7 DIV - + 37 * 20
----
-2

skipif mysql # not compatible
query I rowsort label-3930
SELECT - 2 + + 7 / - + 37 * 20
----
-2

onlyif mysql # aggregate syntax: 
query II rowsort label-3931
SELECT DISTINCT - - 72 col0, - COUNT( * ) / CASE WHEN NOT - MAX( ALL - 55 ) BETWEEN + 47 AND NULL THEN - 33 END AS col1
----
72
NULL

skipif mysql # not compatible
query II rowsort label-3931
SELECT DISTINCT - - 72 col0, - COUNT ( * ) / CASE WHEN NOT - MAX ( ALL - 55 ) BETWEEN + 47 AND NULL THEN - 33 END AS col1
----
72
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3932
SELECT + 46 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3932
SELECT + 46 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3933
SELECT 89 - - CAST( NULL AS DECIMAL ) + - 95
----
NULL

skipif mysql # not compatible
query I rowsort label-3933
SELECT 89 - - CAST ( NULL AS REAL ) + - 95
----
NULL

query I rowsort
SELECT ALL 12 * + 49
----
588

onlyif mysql # DIV for integer division: 
query I rowsort label-3935
SELECT + 21 * 9 - + 38 + - 55 DIV 72
----
151

skipif mysql # not compatible
query I rowsort label-3935
SELECT + 21 * 9 - + 38 + - 55 / 72
----
151

onlyif mysql # DIV for integer division: 
query I rowsort label-3936
SELECT DISTINCT - 22 DIV + - 68
----
0

skipif mysql # not compatible
query I rowsort label-3936
SELECT DISTINCT - 22 / + - 68
----
0

query I rowsort
SELECT + + ( + 62 ) AS col1
----
62

query I rowsort
SELECT ALL - 89 * 51
----
-4539

onlyif mysql # DIV for integer division: 
query I rowsort label-3939
SELECT 98 DIV 76
----
1

skipif mysql # not compatible
query I rowsort label-3939
SELECT 98 / 76
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3940
SELECT CAST( NULL AS SIGNED ) - 56
----
NULL

skipif mysql # not compatible
query I rowsort label-3940
SELECT CAST ( NULL AS INTEGER ) - 56
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3941
SELECT DISTINCT MIN( + 89 ) + + 10
----
99

skipif mysql # not compatible
query I rowsort label-3941
SELECT DISTINCT MIN ( + 89 ) + + 10
----
99

query I rowsort
SELECT ALL 92 * - 63
----
-5796

query II rowsort
SELECT DISTINCT - 54 + 67, 11 AS col0
----
13
11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3944
SELECT COUNT( * ) + - 96 DIV + + COUNT( * )
----
-95

skipif mysql # not compatible
query I rowsort label-3944
SELECT COUNT ( * ) + - 96 / + + COUNT ( * )
----
-95

query I rowsort
SELECT 58 * + - NULLIF ( + 95, + 10 ) AS col2
----
-5510

query I rowsort
SELECT 42 + - + 39 - - - 24 AS col1
----
-21

query II rowsort
SELECT 48 + 54 AS col0, 32 col2
----
102
32

onlyif mysql # aggregate syntax: 
query I rowsort label-3948
SELECT - MIN( ALL - + 50 )
----
50

skipif mysql # not compatible
query I rowsort label-3948
SELECT - MIN ( ALL - + 50 )
----
50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3949
SELECT CAST( - 72 AS SIGNED ) + + ( 69 )
----
-3

skipif mysql # not compatible
query I rowsort label-3949
SELECT CAST ( - 72 AS INTEGER ) + + ( 69 )
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-3950
SELECT 67 + 82 * - COUNT( - 99 ) AS col0, ( - 31 ) AS col2
----
-15
-31

skipif mysql # not compatible
query II rowsort label-3950
SELECT 67 + 82 * - COUNT ( - 99 ) AS col0, ( - 31 ) AS col2
----
-15
-31

query I rowsort
SELECT ALL 72 - + + 76 + - 91 + 55 - - + ( 19 ) * + 39
----
701

onlyif mysql # aggregate syntax: 
query II rowsort label-3952
SELECT + COUNT( * ) * 14 * ( ( - - 18 ) ) AS col0, + 50 * - 56
----
252
-2800

skipif mysql # not compatible
query II rowsort label-3952
SELECT + COUNT ( * ) * 14 * ( ( - - 18 ) ) AS col0, + 50 * - 56
----
252
-2800

query I rowsort
SELECT 56 + - 32 * + 8
----
-200

onlyif mysql # aggregate syntax: 
query I rowsort label-3954
SELECT 43 + NULLIF ( - + 59, COUNT( * ) ) * 54 AS col2
----
-3143

skipif mysql # not compatible
query I rowsort label-3954
SELECT 43 + NULLIF ( - + 59, COUNT ( * ) ) * 54 AS col2
----
-3143

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3955
SELECT + CAST( + 64 AS SIGNED ) + + ( COUNT( * ) ) + + 7 + + - 58
----
14

skipif mysql # not compatible
query I rowsort label-3955
SELECT + CAST ( + 64 AS INTEGER ) + + ( COUNT ( * ) ) + + 7 + + - 58
----
14

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3956
SELECT CAST( NULL AS SIGNED ) + + 56 * ( + 62 ), + 59 + + ( 48 ) + - 67 + - 15 - - - 26 - + - 12 * - 46 * - 7 * + 8 col1
----
NULL
30911

skipif mysql # not compatible
query II rowsort label-3956
SELECT CAST ( NULL AS INTEGER ) + + 56 * ( + 62 ), + 59 + + ( 48 ) + - 67 + - 15 - - - 26 - + - 12 * - 46 * - 7 * + 8 col1
----
NULL
30911

query I rowsort
SELECT - 3 * - - 23 + - 26 - - + 77 * - 67
----
-5254

query I rowsort
SELECT 66 * 96 * 24 AS col2
----
152064

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3959
SELECT ALL + COUNT( * ) DIV + + 51 * - COUNT( DISTINCT + 87 ) + 77 AS col2
----
77

skipif mysql # not compatible
query I rowsort label-3959
SELECT ALL + COUNT ( * ) / + + 51 * - COUNT ( DISTINCT + 87 ) + 77 AS col2
----
77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3960
SELECT DISTINCT COUNT( * ) + - 82 DIV COUNT( * )
----
-81

skipif mysql # not compatible
query I rowsort label-3960
SELECT DISTINCT COUNT ( * ) + - 82 / COUNT ( * )
----
-81

query I rowsort
SELECT ALL - COALESCE ( - + 45, 87 ) AS col1
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-3962
SELECT DISTINCT 45 * + SUM( - 2 ) + 71 + - COUNT( * )
----
-20

skipif mysql # not compatible
query I rowsort label-3962
SELECT DISTINCT 45 * + SUM ( - 2 ) + 71 + - COUNT ( * )
----
-20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3963
SELECT DISTINCT - 72 * + 98 + + + 76 * + CASE 66 WHEN + COALESCE ( - CAST( - 94 AS SIGNED ), + CASE + 92 WHEN + COUNT( * ) * + + 66 * + 75 THEN - + 8 ELSE 7 - 96 END, 47 ) / - + 84 + COALESCE ( ( - MAX( ALL + 16 ) ), - CAST( NULL AS SIGNED ) ) * - - 20 + - - 92 - - 5 * 78 / - 79 THEN 65 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3963
SELECT DISTINCT - 72 * + 98 + + + 76 * + CASE 66 WHEN + COALESCE ( - CAST ( - 94 AS INTEGER ), + CASE + 92 WHEN + COUNT ( * ) * + + 66 * + 75 THEN - + 8 ELSE 7 - 96 END, 47 ) / - + 84 + COALESCE ( ( - MAX ( ALL + 16 ) ), - CAST ( NULL AS INTEGER ) ) * - - 20 + - - 92 - - 5 * 78 / - 79 THEN 65 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3964
SELECT ALL - 58 * + - COUNT( * ) + + - 29 + + - 97 AS col1
----
-68

skipif mysql # not compatible
query I rowsort label-3964
SELECT ALL - 58 * + - COUNT ( * ) + + - 29 + + - 97 AS col1
----
-68

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3965
SELECT ALL + ( - 60 ) * CASE + 84 WHEN SUM( ALL - - 79 ) + - + 20 + - COUNT( * ) - + 20 / - + 18 * - 89 THEN - 47 WHEN - 47 THEN + ( + 90 ) * - + 47 / 82 + + 41 + + CASE - 79 WHEN - 28 THEN NULL WHEN - COUNT( * ) THEN - 19 * - - 13 ELSE - 21 END * + 7 END + + + 34 * + + 17 + CAST( NULL AS DECIMAL ) + + NULLIF ( COUNT( * ) + ( - 57 ) / - 85, 7 ) * + ( 9 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3965
SELECT ALL + ( - 60 ) * CASE + 84 WHEN SUM ( ALL - - 79 ) + - + 20 + - COUNT ( * ) - + 20 / - + 18 * - 89 THEN - 47 WHEN - 47 THEN + ( + 90 ) * - + 47 / 82 + + 41 + + CASE - 79 WHEN - 28 THEN NULL WHEN - COUNT ( * ) THEN - 19 * - - 13 ELSE - 21 END * + 7 END + + + 34 * + + 17 + CAST ( NULL AS REAL ) + + NULLIF ( COUNT ( * ) + ( - 57 ) / - 85, 7 ) * + ( 9 )
----
NULL

query I rowsort
SELECT ALL + ( 14 ) col1
----
14

onlyif mysql # DIV for integer division: 
query I rowsort label-3967
SELECT + 74 DIV + 99 + + 4
----
4

skipif mysql # not compatible
query I rowsort label-3967
SELECT + 74 / + 99 + + 4
----
4

query I rowsort
SELECT DISTINCT - - 6 * 60 + + - 31 AS col1
----
329

query I rowsort
SELECT + 16 * - 66 + 79
----
-977

query I rowsort
SELECT ALL - 43 * 61 + + + 44 * + - 31
----
-3987

query I rowsort
SELECT ALL + 60 * + 45 + + - 43 AS col1
----
2657

onlyif mysql # aggregate syntax: 
query I rowsort label-3972
SELECT DISTINCT + 99 * - 58 + ( + 6 ) + + - MAX( 89 ) + SUM( DISTINCT 67 ) AS col1
----
-5758

skipif mysql # not compatible
query I rowsort label-3972
SELECT DISTINCT + 99 * - 58 + ( + 6 ) + + - MAX ( 89 ) + SUM ( DISTINCT 67 ) AS col1
----
-5758

query II rowsort
SELECT - 63 * 60 * + + 46 col0, + 19
----
-173880
19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3974
SELECT DISTINCT + CAST( 33 AS SIGNED )
----
33

skipif mysql # not compatible
query I rowsort label-3974
SELECT DISTINCT + CAST ( 33 AS INTEGER )
----
33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3975
SELECT ALL + CASE + + COUNT( ALL 23 ) WHEN - CASE - 89 WHEN - 70 - - 43 THEN NULL WHEN - COUNT( * ) THEN - - 38 ELSE - - COALESCE ( - 72, 87 + + + 94 + CAST( NULL AS SIGNED ) ) * 3 - 20 * + COALESCE ( - 50, 45 ) + + 67 + + 52 + - + 31 END THEN - + 55 END * + 15 + + - 79 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3975
SELECT ALL + CASE + + COUNT ( ALL 23 ) WHEN - CASE - 89 WHEN - 70 - - 43 THEN NULL WHEN - COUNT ( * ) THEN - - 38 ELSE - - COALESCE ( - 72, 87 + + + 94 + CAST ( NULL AS INTEGER ) ) * 3 - 20 * + COALESCE ( - 50, 45 ) + + 67 + + 52 + - + 31 END THEN - + 55 END * + 15 + + - 79 AS col1
----
NULL

query I rowsort
SELECT 40 * - - 68 / + CASE + 95 WHEN 93 THEN 28 WHEN + + CASE - 21 WHEN 60 + + 1 THEN + - 53 ELSE NULL END THEN NULL ELSE NULL END + + - 7
----
NULL

query I rowsort
SELECT - 27 * 11
----
-297

onlyif mysql # aggregate syntax: 
query I rowsort label-3978
SELECT MIN( ALL 28 ) AS col1
----
28

skipif mysql # not compatible
query I rowsort label-3978
SELECT MIN ( ALL 28 ) AS col1
----
28

query I rowsort
SELECT + COALESCE ( - 88, - 32, 60 * - 98 - 44 )
----
-88

query II rowsort
SELECT ALL + 97, 61 * 85 + 82 AS col1
----
97
5267

query I rowsort
SELECT ALL 32 - + + 31 AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3982
SELECT + SUM( + + 76 ) * + + 3 AS col0
----
228

skipif mysql # not compatible
query I rowsort label-3982
SELECT + SUM ( + + 76 ) * + + 3 AS col0
----
228

onlyif mysql # aggregate syntax: 
query I rowsort label-3983
SELECT DISTINCT + COUNT( * ) * + 62 AS col2
----
62

skipif mysql # not compatible
query I rowsort label-3983
SELECT DISTINCT + COUNT ( * ) * + 62 AS col2
----
62

query I rowsort
SELECT DISTINCT 13 * - 35 * - - 99 * - ( + 79 ) * - 38 + + + 54 col1
----
-135225036

query I rowsort
SELECT DISTINCT 31 * - 9
----
-279

onlyif mysql # aggregate syntax: 
query I rowsort label-3986
SELECT - COALESCE ( MIN( DISTINCT 93 ), + + 49, 87 )
----
-93

skipif mysql # not compatible
query I rowsort label-3986
SELECT - COALESCE ( MIN ( DISTINCT 93 ), + + 49, 87 )
----
-93

query II rowsort
SELECT ALL - 98, 45 AS col2
----
-98
45

query II rowsort
SELECT - 69 AS col0, + 38 + - 10 AS col0
----
-69
28

query II rowsort
SELECT - 86, - 40 AS col1
----
-86
-40

onlyif mysql # DIV for integer division: 
query II rowsort label-3990
SELECT + 1 * 5 DIV + - 89 AS col2, + 17 - 39 AS col2
----
0
-22

skipif mysql # not compatible
query II rowsort label-3990
SELECT + 1 * 5 / + - 89 AS col2, + 17 - 39 AS col2
----
0
-22

query I rowsort
SELECT - - NULLIF ( 5, + 57 - + - COALESCE ( + 68, + 1 * 50 * + ( - 58 ) ) ) * - 73
----
-365

onlyif mysql # aggregate syntax: 
query I rowsort label-3992
SELECT DISTINCT COUNT( * ) * - 19 AS col2
----
-19

skipif mysql # not compatible
query I rowsort label-3992
SELECT DISTINCT COUNT ( * ) * - 19 AS col2
----
-19

query II rowsort
SELECT ALL 92 AS col0, + ( + 25 ) + - 41 col1
----
92
-16

query I rowsort
SELECT DISTINCT 93 + - 71 * + + 73 * ( 15 )
----
-77652

query I rowsort
SELECT DISTINCT 7 + + 58 + - 26
----
39

query I rowsort
SELECT ALL + 13 + + + 20
----
33

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3997
SELECT DISTINCT COUNT( * ) * + - COUNT( + 95 ) DIV 12 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3997
SELECT DISTINCT COUNT ( * ) * + - COUNT ( + 95 ) / 12 AS col2
----
0

query I rowsort
SELECT - - 44 * + - 99 * - 81 AS col0
----
352836

query I rowsort
SELECT + - 33 + - + 15 AS col0
----
-48

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4000
SELECT - 54 AS col1, COALESCE ( + 42, CAST( NULL AS SIGNED ) ) AS col1
----
-54
42

skipif mysql # not compatible
query II rowsort label-4000
SELECT - 54 AS col1, COALESCE ( + 42, CAST ( NULL AS INTEGER ) ) AS col1
----
-54
42

onlyif mysql # aggregate syntax: 
query I rowsort label-4001
SELECT ALL ( + 32 ) * + MIN( 78 ) + 57 AS col1
----
2553

skipif mysql # not compatible
query I rowsort label-4001
SELECT ALL ( + 32 ) * + MIN ( 78 ) + 57 AS col1
----
2553

query I rowsort
SELECT + COALESCE ( - 0, 48 + + - 8 * + 90 ) + + + 37 AS col2
----
37

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4003
SELECT DISTINCT + + CAST( 38 AS SIGNED ) / + CAST( NULL AS DECIMAL ) + - 70
----
NULL

skipif mysql # not compatible
query I rowsort label-4003
SELECT DISTINCT + + CAST ( 38 AS INTEGER ) / + CAST ( NULL AS REAL ) + - 70
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4004
SELECT - - ( 57 ) DIV 15 + 45
----
48

skipif mysql # not compatible
query I rowsort label-4004
SELECT - - ( 57 ) / 15 + 45
----
48

query II rowsort
SELECT ALL + 85 AS col0, 89 AS col1
----
85
89

query I rowsort
SELECT - + 61 + - 44
----
-105

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4007
SELECT ALL + + 64 DIV - - MAX( ALL + 11 ) + - - 55 * - 49
----
-2690

skipif mysql # not compatible
query I rowsort label-4007
SELECT ALL + + 64 / - - MAX ( ALL + 11 ) + - - 55 * - 49
----
-2690

onlyif mysql # aggregate syntax: 
query I rowsort label-4008
SELECT ALL + + COUNT( + 28 )
----
1

skipif mysql # not compatible
query I rowsort label-4008
SELECT ALL + + COUNT ( + 28 )
----
1

query I rowsort
SELECT - 4 * - 55 AS col0
----
220

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4010
SELECT DISTINCT - 72 DIV 18 + - CAST( - - 15 AS SIGNED )
----
-19

skipif mysql # not compatible
query I rowsort label-4010
SELECT DISTINCT - 72 / 18 + - CAST ( - - 15 AS INTEGER )
----
-19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4011
SELECT ALL + CAST( NULL AS SIGNED ) * 69 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4011
SELECT ALL + CAST ( NULL AS INTEGER ) * 69 AS col1
----
NULL

query I rowsort
SELECT ( - - 70 )
----
70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4013
SELECT ALL + 22 / - CASE + ( - + 46 ) WHEN - CAST( - - ( 55 ) AS SIGNED ) + - - AVG ( ALL + CASE - 85 WHEN + 51 * CAST( + - 84 AS SIGNED ) THEN NULL WHEN + 72 THEN - 24 ELSE NULL END ) THEN + - COALESCE ( - + 82, - 38, + 95 ) + - + 70 END - - - 68 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4013
SELECT ALL + 22 / - CASE + ( - + 46 ) WHEN - CAST ( - - ( 55 ) AS INTEGER ) + - - AVG ( ALL + CASE - 85 WHEN + 51 * CAST ( + - 84 AS INTEGER ) THEN NULL WHEN + 72 THEN - 24 ELSE NULL END ) THEN + - COALESCE ( - + 82, - 38, + 95 ) + - + 70 END - - - 68 AS col2
----
NULL

query I rowsort
SELECT 35 * 98 - 67 + - - ( + - 91 ) AS col0
----
3272

onlyif mysql # aggregate syntax: 
query I rowsort label-4015
SELECT ( - SUM( - 1 ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4015
SELECT ( - SUM ( - 1 ) ) AS col1
----
1

query I rowsort
SELECT - 99 * - 27 + + 44
----
2717

onlyif mysql # aggregate syntax: 
query I rowsort label-4017
SELECT - COUNT( * ) * - + 97
----
97

skipif mysql # not compatible
query I rowsort label-4017
SELECT - COUNT ( * ) * - + 97
----
97

query II rowsort
SELECT ( - 57 ), 89 * + 56 AS col1
----
-57
4984

onlyif mysql # aggregate syntax: 
query I rowsort label-4019
SELECT + SUM( + 35 )
----
35

skipif mysql # not compatible
query I rowsort label-4019
SELECT + SUM ( + 35 )
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-4020
SELECT ALL 61 * COUNT( * ) - 49 AS col2
----
12

skipif mysql # not compatible
query I rowsort label-4020
SELECT ALL 61 * COUNT ( * ) - 49 AS col2
----
12

query II rowsort
SELECT ALL + 7 AS col0, + 33 AS col0
----
7
33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4022
SELECT - COUNT( 42 ) * 85 * + - ( CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4022
SELECT - COUNT ( 42 ) * 85 * + - ( CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4023
SELECT ALL + 3 AS col2, 84 * COALESCE ( + + 32, COUNT( * ) ) + 26 * - 81 + - + 57 AS col2
----
3
525

skipif mysql # not compatible
query II rowsort label-4023
SELECT ALL + 3 AS col2, 84 * COALESCE ( + + 32, COUNT ( * ) ) + 26 * - 81 + - + 57 AS col2
----
3
525

onlyif mysql # aggregate syntax: 
query I rowsort label-4024
SELECT - COUNT( * ) * COUNT( * ) + - - 76 AS col0
----
75

skipif mysql # not compatible
query I rowsort label-4024
SELECT - COUNT ( * ) * COUNT ( * ) + - - 76 AS col0
----
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4025
SELECT DISTINCT + 1 DIV - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-4025
SELECT DISTINCT + 1 / - COUNT ( * )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4026
SELECT + COUNT( * ) - - 94
----
95

skipif mysql # not compatible
query I rowsort label-4026
SELECT + COUNT ( * ) - - 94
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-4027
SELECT - COUNT( ALL - 13 ) + - 52
----
-53

skipif mysql # not compatible
query I rowsort label-4027
SELECT - COUNT ( ALL - 13 ) + - 52
----
-53

query II rowsort
SELECT + 46 * + 21, 78 AS col2
----
966
78

onlyif mysql # aggregate syntax: 
query I rowsort label-4029
SELECT ALL + 78 * + COUNT( * ) * + + MAX( ALL 34 ) * 35
----
92820

skipif mysql # not compatible
query I rowsort label-4029
SELECT ALL + 78 * + COUNT ( * ) * + + MAX ( ALL 34 ) * 35
----
92820

query I rowsort
SELECT - 90 + + 40 + - 69 * - ( 19 )
----
1261

query I rowsort
SELECT ALL + 43 * - 90 + - 7
----
-3877

onlyif mysql # aggregate syntax: 
query II rowsort label-4032
SELECT DISTINCT 48, COALESCE ( + 62, + + SUM( - 54 ) ) AS col1
----
48
62

skipif mysql # not compatible
query II rowsort label-4032
SELECT DISTINCT 48, COALESCE ( + 62, + + SUM ( - 54 ) ) AS col1
----
48
62

query I rowsort
SELECT ALL + 28 + 11 AS col2
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-4034
SELECT + + 23 + + 3 + - 87 * + 4 * - COUNT( * )
----
374

skipif mysql # not compatible
query I rowsort label-4034
SELECT + + 23 + + 3 + - 87 * + 4 * - COUNT ( * )
----
374

query I rowsort
SELECT 41 + 5
----
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4036
SELECT DISTINCT 4 + + - COUNT( * ) + + CAST( 17 AS SIGNED ) * - 44
----
-745

skipif mysql # not compatible
query I rowsort label-4036
SELECT DISTINCT 4 + + - COUNT ( * ) + + CAST ( 17 AS INTEGER ) * - 44
----
-745

onlyif mysql # aggregate syntax: 
query I rowsort label-4037
SELECT ALL COUNT( * ) + ( + 67 )
----
68

skipif mysql # not compatible
query I rowsort label-4037
SELECT ALL COUNT ( * ) + ( + 67 )
----
68

query II rowsort
SELECT 21 * + - 7 AS col0, + 91 AS col0
----
-147
91

onlyif mysql # aggregate syntax: 
query II rowsort label-4039
SELECT ALL COUNT( * ), + COUNT( * ) + - SUM( 27 ) AS col0
----
1
-26

skipif mysql # not compatible
query II rowsort label-4039
SELECT ALL COUNT ( * ), + COUNT ( * ) + - SUM ( 27 ) AS col0
----
1
-26

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4040
SELECT ALL + NULLIF ( 11, 24 * + + 5 * - - COUNT( * ) ) + 27 DIV - 50 DIV + COUNT( * ) AS col0
----
11

skipif mysql # not compatible
query I rowsort label-4040
SELECT ALL + NULLIF ( 11, 24 * + + 5 * - - COUNT ( * ) ) + 27 / - 50 / + COUNT ( * ) AS col0
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-4041
SELECT ALL 67 * - COUNT( * ) * + 5 AS col2
----
-335

skipif mysql # not compatible
query I rowsort label-4041
SELECT ALL 67 * - COUNT ( * ) * + 5 AS col2
----
-335

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4042
SELECT ALL - NULLIF ( + 36, CAST( NULL AS SIGNED ) ) col0
----
-36

skipif mysql # not compatible
query I rowsort label-4042
SELECT ALL - NULLIF ( + 36, CAST ( NULL AS INTEGER ) ) col0
----
-36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4043
SELECT DISTINCT + + ( CAST( NULL AS SIGNED ) ) * 95 - - 94 * - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4043
SELECT DISTINCT + + ( CAST ( NULL AS INTEGER ) ) * 95 - - 94 * - COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4044
SELECT CAST( NULL AS SIGNED ) / + + 24 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4044
SELECT CAST ( NULL AS INTEGER ) / + + 24 AS col2
----
NULL

query I rowsort
SELECT ( - + 33 ) + 68
----
35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4046
SELECT 59 - - CAST( NULL AS SIGNED ) + - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4046
SELECT 59 - - CAST ( NULL AS INTEGER ) + - COUNT ( * ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4047
SELECT 77 DIV - - COUNT( * ) + + 56 + COUNT( * )
----
134

skipif mysql # not compatible
query I rowsort label-4047
SELECT 77 / - - COUNT ( * ) + + 56 + COUNT ( * )
----
134

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4048
SELECT NULLIF ( CAST( - 86 AS SIGNED ), - CAST( + + COUNT( * ) AS SIGNED ) ) + + - 40 / + + CASE + 67 WHEN + 53 * - 96 + + - 15 * - - 0 THEN NULL WHEN 53 THEN - 51 WHEN COALESCE ( + 8, + MIN( DISTINCT + + 94 ) ) THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4048
SELECT NULLIF ( CAST ( - 86 AS INTEGER ), - CAST ( + + COUNT ( * ) AS INTEGER ) ) + + - 40 / + + CASE + 67 WHEN + 53 * - 96 + + - 15 * - - 0 THEN NULL WHEN 53 THEN - 51 WHEN COALESCE ( + 8, + MIN ( DISTINCT + + 94 ) ) THEN NULL ELSE NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-4049
SELECT ALL - 77 DIV 26 AS col0, + 88 * 34 * + 73
----
-2
218416

skipif mysql # not compatible
query II rowsort label-4049
SELECT ALL - 77 / 26 AS col0, + 88 * 34 * + 73
----
-2
218416

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4050
SELECT 58 + + - 45 * - + CAST( + COUNT( * ) AS SIGNED )
----
103

skipif mysql # not compatible
query I rowsort label-4050
SELECT 58 + + - 45 * - + CAST ( + COUNT ( * ) AS INTEGER )
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-4051
SELECT + NULLIF ( + - 2, - 17 ) * + COUNT( DISTINCT - 8 ) + - + 34 + 17
----
-19

skipif mysql # not compatible
query I rowsort label-4051
SELECT + NULLIF ( + - 2, - 17 ) * + COUNT ( DISTINCT - 8 ) + - + 34 + 17
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-4052
SELECT ALL + COUNT( * ) * COALESCE ( - - 52, - 28 + + 95 ) AS col0
----
52

skipif mysql # not compatible
query I rowsort label-4052
SELECT ALL + COUNT ( * ) * COALESCE ( - - 52, - 28 + + 95 ) AS col0
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-4053
SELECT 77 + - COUNT( * ) + + COUNT( * )
----
77

skipif mysql # not compatible
query I rowsort label-4053
SELECT 77 + - COUNT ( * ) + + COUNT ( * )
----
77

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4054
SELECT ALL - 78 * + 78 * + 12 DIV COUNT( 31 ) col1, 24 col2
----
-73008
24

skipif mysql # not compatible
query II rowsort label-4054
SELECT ALL - 78 * + 78 * + 12 / COUNT ( 31 ) col1, 24 col2
----
-73008
24

query I rowsort
SELECT 87 * 76 AS col2
----
6612

onlyif mysql # aggregate syntax: 
query I rowsort label-4056
SELECT ALL + 14 + + + 91 + + CASE + MAX( ALL + + 85 ) WHEN + 76 THEN NULL WHEN + - 12 - + 90 THEN - + 97 END * - 33
----
NULL

skipif mysql # not compatible
query I rowsort label-4056
SELECT ALL + 14 + + + 91 + + CASE + MAX ( ALL + + 85 ) WHEN + 76 THEN NULL WHEN + - 12 - + 90 THEN - + 97 END * - 33
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4057
SELECT DISTINCT - 60 + + 61 + + - COUNT( * ) * 65 AS col2
----
-64

skipif mysql # not compatible
query I rowsort label-4057
SELECT DISTINCT - 60 + + 61 + + - COUNT ( * ) * 65 AS col2
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-4058
SELECT ALL + 5 * + COUNT( 60 ) AS col2
----
5

skipif mysql # not compatible
query I rowsort label-4058
SELECT ALL + 5 * + COUNT ( 60 ) AS col2
----
5

query II rowsort
SELECT 2 + - + 50, 56 AS col0
----
-48
56

onlyif mysql # aggregate syntax: 
query II rowsort label-4060
SELECT ALL - 42 + + COUNT( * ) AS col2, 55 * - 46
----
-41
-2530

skipif mysql # not compatible
query II rowsort label-4060
SELECT ALL - 42 + + COUNT ( * ) AS col2, 55 * - 46
----
-41
-2530

onlyif mysql # aggregate syntax: 
query I rowsort label-4061
SELECT ALL + MIN( + + 58 ) * - 82 * - 40 * 27
----
5136480

skipif mysql # not compatible
query I rowsort label-4061
SELECT ALL + MIN ( + + 58 ) * - 82 * - 40 * 27
----
5136480

onlyif mysql # aggregate syntax: 
query I rowsort label-4062
SELECT + MIN( ALL - 80 ) * 79 col1
----
-6320

skipif mysql # not compatible
query I rowsort label-4062
SELECT + MIN ( ALL - 80 ) * 79 col1
----
-6320

query I rowsort
SELECT ALL + 38 + 74 * + 36
----
2702

onlyif mysql # aggregate syntax: 
query I rowsort label-4064
SELECT DISTINCT - - COUNT( * ) + - 37 AS col1
----
-36

skipif mysql # not compatible
query I rowsort label-4064
SELECT DISTINCT - - COUNT ( * ) + - 37 AS col1
----
-36

query II rowsort
SELECT ALL - 57 + + 88 AS col1, ( - 12 ) * 7 * 55
----
31
-4620

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4066
SELECT 10 * CAST( NULL AS SIGNED ) + 56 * 21
----
NULL

skipif mysql # not compatible
query I rowsort label-4066
SELECT 10 * CAST ( NULL AS INTEGER ) + 56 * 21
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4067
SELECT ALL 49 DIV + 73 col2, + NULLIF ( + 6, 72 + - 43 ) - + NULLIF ( 0, + + SUM( - + NULLIF ( + 5, 97 + - 70 ) ) * - 90 + - 74 ) + - 39 + + COALESCE ( + MIN( DISTINCT - 23 ), 99 + + 16 * + 30 ) + + 13 * + 76 + + 3 * - 25
----
0
857

skipif mysql # not compatible
query II rowsort label-4067
SELECT ALL 49 / + 73 col2, + NULLIF ( + 6, 72 + - 43 ) - + NULLIF ( 0, + + SUM ( - + NULLIF ( + 5, 97 + - 70 ) ) * - 90 + - 74 ) + - 39 + + COALESCE ( + MIN ( DISTINCT - 23 ), 99 + + 16 * + 30 ) + + 13 * + 76 + + 3 * - 25
----
0
857

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4068
SELECT ALL + 97 + + - COUNT( * ) DIV + 2 + + 99 DIV + + 97 + - COALESCE ( + 96, + + COUNT( * ), CASE - 27 WHEN - + CAST( - 93 AS SIGNED ) + 84 THEN NULL WHEN - NULLIF ( + + COALESCE ( 94, 98 * - 99 ), + 70 ) * 1 THEN 72 * - + 52 END DIV - 21 * + 20 - + + 42 ) col0, 7 AS col0
----
2
7

skipif mysql # not compatible
query II rowsort label-4068
SELECT ALL + 97 + + - COUNT ( * ) / + 2 + + 99 / + + 97 + - COALESCE ( + 96, + + COUNT ( * ), CASE - 27 WHEN - + CAST ( - 93 AS INTEGER ) + 84 THEN NULL WHEN - NULLIF ( + + COALESCE ( 94, 98 * - 99 ), + 70 ) * 1 THEN 72 * - + 52 END / - 21 * + 20 - + + 42 ) col0, 7 AS col0
----
2
7

onlyif mysql # aggregate syntax: 
query II rowsort label-4069
SELECT - 63 - - + 66 + 2 * + 70 + - + 11 * - 72 * 72 col1, COUNT( * )
----
57167
1

skipif mysql # not compatible
query II rowsort label-4069
SELECT - 63 - - + 66 + 2 * + 70 + - + 11 * - 72 * 72 col1, COUNT ( * )
----
57167
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4070
SELECT ALL - - 88 DIV - 64
----
-1

skipif mysql # not compatible
query I rowsort label-4070
SELECT ALL - - 88 / - 64
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-4071
SELECT 89 * - - COUNT( * ), 70 AS col2
----
89
70

skipif mysql # not compatible
query II rowsort label-4071
SELECT 89 * - - COUNT ( * ), 70 AS col2
----
89
70

query I rowsort
SELECT ALL - 5 * - - 19 col2
----
-95

query II rowsort
SELECT ALL + - 75 + + 59 AS col0, - 32
----
-16
-32

onlyif mysql # DIV for integer division: 
query I rowsort label-4074
SELECT ALL - 61 DIV + - 99
----
0

skipif mysql # not compatible
query I rowsort label-4074
SELECT ALL - 61 / + - 99
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4075
SELECT DISTINCT + COUNT( * ) - + 21 + ( + SUM( - - 70 ) )
----
50

skipif mysql # not compatible
query I rowsort label-4075
SELECT DISTINCT + COUNT ( * ) - + 21 + ( + SUM ( - - 70 ) )
----
50

query II rowsort
SELECT DISTINCT - + 46 - + 87 col2, 44
----
-133
44

query I rowsort
SELECT DISTINCT - 12 * 65 * - 88
----
68640

onlyif mysql # aggregate syntax: 
query I rowsort label-4078
SELECT DISTINCT - ( + + COUNT( * ) ) - - + 2
----
1

skipif mysql # not compatible
query I rowsort label-4078
SELECT DISTINCT - ( + + COUNT ( * ) ) - - + 2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4079
SELECT COUNT( * ) + 56 AS col2
----
57

skipif mysql # not compatible
query I rowsort label-4079
SELECT COUNT ( * ) + 56 AS col2
----
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4080
SELECT 42 AS col0, - CASE + 45 WHEN + 38 THEN NULL ELSE + 51 END - - + ( - COUNT( * ) ) + + + CAST( NULL AS SIGNED ) * 49 AS col0
----
42
NULL

skipif mysql # not compatible
query II rowsort label-4080
SELECT 42 AS col0, - CASE + 45 WHEN + 38 THEN NULL ELSE + 51 END - - + ( - COUNT ( * ) ) + + + CAST ( NULL AS INTEGER ) * 49 AS col0
----
42
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4081
SELECT 26 + + NULLIF ( COUNT( * ), - 52 * + COUNT( * ) + - - MIN( + 53 ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4081
SELECT 26 + + NULLIF ( COUNT ( * ), - 52 * + COUNT ( * ) + - - MIN ( + 53 ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4082
SELECT MIN( - 10 ) AS col2
----
-10

skipif mysql # not compatible
query I rowsort label-4082
SELECT MIN ( - 10 ) AS col2
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-4083
SELECT + SUM( DISTINCT + 86 )
----
86

skipif mysql # not compatible
query I rowsort label-4083
SELECT + SUM ( DISTINCT + 86 )
----
86

query I rowsort
SELECT ( - - ( - ( + + 6 ) ) ) * - + 68 - - 71 * + 16 * - 69
----
-77976

onlyif mysql # aggregate syntax: 
query I rowsort label-4085
SELECT + MIN( ALL - 12 )
----
-12

skipif mysql # not compatible
query I rowsort label-4085
SELECT + MIN ( ALL - 12 )
----
-12

query I rowsort
SELECT 61 + 73 AS col2
----
134

onlyif mysql # DIV for integer division: 
query I rowsort label-4087
SELECT ALL 56 DIV - 41
----
-1

skipif mysql # not compatible
query I rowsort label-4087
SELECT ALL 56 / - 41
----
-1

query I rowsort
SELECT DISTINCT 91 * + 46
----
4186

onlyif mysql # aggregate syntax: 
query I rowsort label-4089
SELECT - 78 * - - 3 - 99 - MIN( ALL + 28 ) AS col2
----
-361

skipif mysql # not compatible
query I rowsort label-4089
SELECT - 78 * - - 3 - 99 - MIN ( ALL + 28 ) AS col2
----
-361

query II rowsort
SELECT + COALESCE ( - + COALESCE ( - - 53, - 24 + + 25 * - - 37 + - 37, - - 65 * 84 ), + - 40, + 26 ), 7 * - + NULLIF ( - 16, - 93 ) AS col1
----
-53
112

query I rowsort
SELECT 58 * 7 AS col0
----
406

query I rowsort
SELECT 93 * 50 AS col0
----
4650

query I rowsort
SELECT ALL - NULLIF ( + 99, - ( - + 98 ) / + 35 ) + + - 7
----
-106

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4094
SELECT 10 * - 9 * 99 * 97 - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4094
SELECT 10 * - 9 * 99 * 97 - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query II rowsort
SELECT DISTINCT - 18, 49 * 33 AS col1
----
-18
1617

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4096
SELECT ALL + + 28 + - + 92 + - 91 + 90 * - + NULLIF ( - - 74, + - SUM( ALL + - CAST( NULL AS SIGNED ) ) ) * - NULLIF ( CAST( NULL AS SIGNED ), - ( - 12 ) * + + CAST( ( + CASE + + 52 WHEN - - CAST( NULL AS SIGNED ) * 3 + + + 10 THEN NULL WHEN 59 + - 92 THEN - 42 ELSE - 96 END ) AS SIGNED ) ) * + 74
----
NULL

skipif mysql # not compatible
query I rowsort label-4096
SELECT ALL + + 28 + - + 92 + - 91 + 90 * - + NULLIF ( - - 74, + - SUM ( ALL + - CAST ( NULL AS INTEGER ) ) ) * - NULLIF ( CAST ( NULL AS INTEGER ), - ( - 12 ) * + + CAST ( ( + CASE + + 52 WHEN - - CAST ( NULL AS INTEGER ) * 3 + + + 10 THEN NULL WHEN 59 + - 92 THEN - 42 ELSE - 96 END ) AS INTEGER ) ) * + 74
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4097
SELECT + ( + - NULLIF ( - COUNT( * ), + COUNT( * ) + - + COUNT( * ) + + - 7 / - + 57 ) ) * + 48 - + 42 AS col1
----
6

skipif mysql # not compatible
query I rowsort label-4097
SELECT + ( + - NULLIF ( - COUNT ( * ), + COUNT ( * ) + - + COUNT ( * ) + + - 7 / - + 57 ) ) * + 48 - + 42 AS col1
----
6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4098
SELECT ALL 55 DIV - COUNT( * ) col2
----
-55

skipif mysql # not compatible
query I rowsort label-4098
SELECT ALL 55 / - COUNT ( * ) col2
----
-55

query I rowsort
SELECT - + 90 * 22
----
-1980

query I rowsort
SELECT ALL + NULLIF ( - + ( 46 ), - + 4 + + 42 * + - ( + 82 ) ) + - 75
----
-121

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4101
SELECT + 27 * + CAST( NULL AS SIGNED ) * + 53 - 73 + - COUNT( * ) * + 36 * - 80 + - ( 66 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4101
SELECT + 27 * + CAST ( NULL AS INTEGER ) * + 53 - 73 + - COUNT ( * ) * + 36 * - 80 + - ( 66 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4102
SELECT - COUNT( * ) AS col1, - ( + + ( - + 50 ) )
----
-1
50

skipif mysql # not compatible
query II rowsort label-4102
SELECT - COUNT ( * ) AS col1, - ( + + ( - + 50 ) )
----
-1
50

onlyif mysql # aggregate syntax: 
query I rowsort label-4103
SELECT + + COUNT( * ) + + - 82 AS col1
----
-81

skipif mysql # not compatible
query I rowsort label-4103
SELECT + + COUNT ( * ) + + - 82 AS col1
----
-81

query II rowsort
SELECT - + 40 - ( 8 ), 57 * + 83 col1
----
-48
4731

query I rowsort
SELECT ALL - 76 * - 91 AS col0
----
6916

query I rowsort
SELECT - 44 * - + 76 * - 67 col0
----
-224048

query I rowsort
SELECT - 83 * - 22 * + 98 * - 40 * - 49 AS col0
----
350738080

query I rowsort
SELECT - + ( + 25 ) col2
----
-25

query I rowsort
SELECT ALL + - 48 - + 72 AS col2
----
-120

query I rowsort
SELECT - 10 + - + ( 96 )
----
-106

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4111
SELECT ALL - + CAST( NULL AS SIGNED ) * + CAST( - ( + - 44 ) AS SIGNED ) / - MIN( DISTINCT + 12 ) + + 71 * - 24 + + AVG ( - 59 ) * CAST( NULL AS DECIMAL ) - - - MIN( DISTINCT + 83 ) - + ( 62 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4111
SELECT ALL - + CAST ( NULL AS INTEGER ) * + CAST ( - ( + - 44 ) AS INTEGER ) / - MIN ( DISTINCT + 12 ) + + 71 * - 24 + + AVG ( - 59 ) * CAST ( NULL AS REAL ) - - - MIN ( DISTINCT + 83 ) - + ( 62 ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4112
SELECT ALL - COALESCE ( + - 89, + 27 + 9 - - 35 DIV + 28, + 19 - - 21 * 46 )
----
89

skipif mysql # not compatible
query I rowsort label-4112
SELECT ALL - COALESCE ( + - 89, + 27 + 9 - - 35 / + 28, + 19 - - 21 * 46 )
----
89

query I rowsort
SELECT - + ( + 74 ) AS col1
----
-74

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-4114
SELECT DISTINCT - CAST( NULL AS DECIMAL ), 14 + + 71 + CASE + - 68 WHEN - 84 * + - 25 THEN + 12 * + 96 + - 72 / + COUNT( * ) END AS col2
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-4114
SELECT DISTINCT - CAST ( NULL AS REAL ), 14 + + 71 + CASE + - 68 WHEN - 84 * + - 25 THEN + 12 * + 96 + - 72 / + COUNT ( * ) END AS col2
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4115
SELECT - - 55 + + SUM( 27 ) - + ( + 29 ) * + ( 96 ) * - CASE - + 34 WHEN + + 88 * 90 / COUNT( * ) * 7 THEN + - AVG ( DISTINCT + 16 ) / + + 7 END, 61 * 40 * + ( - 23 ) * 36 + + 69 AS col0
----
NULL
-2020251

skipif mysql # not compatible
query II rowsort label-4115
SELECT - - 55 + + SUM ( 27 ) - + ( + 29 ) * + ( 96 ) * - CASE - + 34 WHEN + + 88 * 90 / COUNT ( * ) * 7 THEN + - AVG ( DISTINCT + 16 ) / + + 7 END, 61 * 40 * + ( - 23 ) * 36 + + 69 AS col0
----
NULL
-2020251

onlyif mysql # aggregate syntax: 
query II rowsort label-4116
SELECT - ( - ( COUNT( * ) ) ) col1, 58 * + + 70 - 58 * + 52
----
1
1044

skipif mysql # not compatible
query II rowsort label-4116
SELECT - ( - ( COUNT ( * ) ) ) col1, 58 * + + 70 - 58 * + 52
----
1
1044

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4117
SELECT - 86 * CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4117
SELECT - 86 * CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4118
SELECT 81, CAST( - 95 AS SIGNED ) AS col1
----
81
-95

skipif mysql # not compatible
query II rowsort label-4118
SELECT 81, CAST ( - 95 AS INTEGER ) AS col1
----
81
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-4119
SELECT - COALESCE ( + 97, - + 32 + 53, + - ( - COUNT( * ) ) ) + + - 96
----
-193

skipif mysql # not compatible
query I rowsort label-4119
SELECT - COALESCE ( + 97, - + 32 + 53, + - ( - COUNT ( * ) ) ) + + - 96
----
-193

onlyif mysql # aggregate syntax: 
query I rowsort label-4120
SELECT DISTINCT - 95 * + - ( + COUNT( * ) ) AS col1
----
95

skipif mysql # not compatible
query I rowsort label-4120
SELECT DISTINCT - 95 * + - ( + COUNT ( * ) ) AS col1
----
95

onlyif mysql # DIV for integer division: 
query II rowsort label-4121
SELECT - 80 * + - 23 AS col1, 34 DIV + - 60
----
1840
0

skipif mysql # not compatible
query II rowsort label-4121
SELECT - 80 * + - 23 AS col1, 34 / + - 60
----
1840
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4122
SELECT + MAX( + + ( - COALESCE ( 22, - 68 ) ) ) + 79 - + ( - + 99 ) - - COUNT( * ) + + - 62 DIV - ( 55 ) AS col1, + 25 AS col0
----
158
25

skipif mysql # not compatible
query II rowsort label-4122
SELECT + MAX ( + + ( - COALESCE ( 22, - 68 ) ) ) + 79 - + ( - + 99 ) - - COUNT ( * ) + + - 62 / - ( 55 ) AS col1, + 25 AS col0
----
158
25

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4123
SELECT - 98 DIV - + COUNT( * ) AS col2
----
98

skipif mysql # not compatible
query I rowsort label-4123
SELECT - 98 / - + COUNT ( * ) AS col2
----
98

query II rowsort
SELECT ALL 68 * 84 AS col1, NULLIF ( - + 74, + - 29 ) AS col1
----
5712
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-4125
SELECT - ( + MAX( + 41 ) ) + - - COUNT( * ) + - 66 * + 36
----
-2416

skipif mysql # not compatible
query I rowsort label-4125
SELECT - ( + MAX ( + 41 ) ) + - - COUNT ( * ) + - 66 * + 36
----
-2416

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4126
SELECT ALL ( - 13 ) * + 38 + - COUNT( * ) + + + 98 + + ( - + COUNT( * ) ) + - 88 + - 80 + 10 DIV - 55 * + COUNT( * ) col0
----
-566

skipif mysql # not compatible
query I rowsort label-4126
SELECT ALL ( - 13 ) * + 38 + - COUNT ( * ) + + + 98 + + ( - + COUNT ( * ) ) + - 88 + - 80 + 10 / - 55 * + COUNT ( * ) col0
----
-566

onlyif mysql # aggregate syntax: 
query I rowsort label-4127
SELECT ( + NULLIF ( 56, + ( + ( - 12 ) ) * - 7 + + ( + COUNT( * ) ) + + + 21 * - 67 + - 45 * + 23 ) ) AS col2
----
56

skipif mysql # not compatible
query I rowsort label-4127
SELECT ( + NULLIF ( 56, + ( + ( - 12 ) ) * - 7 + + ( + COUNT ( * ) ) + + + 21 * - 67 + - 45 * + 23 ) ) AS col2
----
56

query I rowsort
SELECT - 55 + - 50 AS col0
----
-105

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4129
SELECT + 11 * - 89 * 10 + COALESCE ( - 32, + + 19 + 37 + - CASE + 94 WHEN - COALESCE ( - + 77, + CAST( NULL AS SIGNED ) ) THEN + 14 * - + 51 WHEN + 20 * - 29 DIV 21 * + 34 + - MIN( + 11 ) + - 96 THEN + 36 + - 37 - - ( + 79 ) DIV + 70 * - 36 WHEN + - ( + 5 ) - - - NULLIF ( - COUNT( * ), - SUM( + 17 ) + 21 ) THEN 0 ELSE NULL END DIV ( - COALESCE ( CASE 92 WHEN 81 * 59 THEN - 78 * + 29 + - 37 WHEN 68 THEN NULL WHEN 43 THEN 23 ELSE NULL END, + 12 ) ) * + 11, COUNT( * ) * + 74 ) - 73
----
-9895

skipif mysql # not compatible
query I rowsort label-4129
SELECT + 11 * - 89 * 10 + COALESCE ( - 32, + + 19 + 37 + - CASE + 94 WHEN - COALESCE ( - + 77, + CAST ( NULL AS INTEGER ) ) THEN + 14 * - + 51 WHEN + 20 * - 29 / 21 * + 34 + - MIN ( + 11 ) + - 96 THEN + 36 + - 37 - - ( + 79 ) / + 70 * - 36 WHEN + - ( + 5 ) - - - NULLIF ( - COUNT ( * ), - SUM ( + 17 ) + 21 ) THEN 0 ELSE NULL END / ( - COALESCE ( CASE 92 WHEN 81 * 59 THEN - 78 * + 29 + - 37 WHEN 68 THEN NULL WHEN 43 THEN 23 ELSE NULL END, + 12 ) ) * + 11, COUNT ( * ) * + 74 ) - 73
----
-9895

query I rowsort
SELECT + ( - 14 ) - + 34
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-4131
SELECT DISTINCT 36 * - 4 + + - COUNT( * )
----
-145

skipif mysql # not compatible
query I rowsort label-4131
SELECT DISTINCT 36 * - 4 + + - COUNT ( * )
----
-145

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4132
SELECT - 8 * - - 90 AS col2, - CAST( NULL AS SIGNED ) AS col2
----
-720
NULL

skipif mysql # not compatible
query II rowsort label-4132
SELECT - 8 * - - 90 AS col2, - CAST ( NULL AS INTEGER ) AS col2
----
-720
NULL

query I rowsort
SELECT ( - - 6 ) AS col0
----
6

query I rowsort
SELECT ALL 48 * - 9 + + 50 AS col1
----
-382

onlyif mysql # DIV for integer division: 
query III rowsort label-4135
SELECT + ( + - ( + 5 ) ) + - - 67, + 11 DIV - 21 * - + 80 AS col2, 11 * - 56 * + 14 col1
----
62
0
-8624

skipif mysql # not compatible
query III rowsort label-4135
SELECT + ( + - ( + 5 ) ) + - - 67, + 11 / - 21 * - + 80 AS col2, 11 * - 56 * + 14 col1
----
62
0
-8624

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4136
SELECT CAST( NULL AS SIGNED ) * + 15 * 53 + MAX( + ( - 22 ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4136
SELECT CAST ( NULL AS INTEGER ) * + 15 * 53 + MAX ( + ( - 22 ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4137
SELECT DISTINCT 89 * + COUNT( * ), - 3 DIV - - COUNT( + 60 ) + 14 AS col1
----
89
11

skipif mysql # not compatible
query II rowsort label-4137
SELECT DISTINCT 89 * + COUNT ( * ), - 3 / - - COUNT ( + 60 ) + 14 AS col1
----
89
11

onlyif mysql # aggregate syntax: 
query I rowsort label-4138
SELECT - 79 * + - COUNT( * ) * - 0 * 3 + + COUNT( * ) + COUNT( * ) AS col2
----
2

skipif mysql # not compatible
query I rowsort label-4138
SELECT - 79 * + - COUNT ( * ) * - 0 * 3 + + COUNT ( * ) + COUNT ( * ) AS col2
----
2

query I rowsort
SELECT DISTINCT ( - 37 ) * + 17 AS col0
----
-629

onlyif mysql # aggregate syntax: 
query I rowsort label-4140
SELECT DISTINCT + + MIN( ALL + 45 ) AS col2
----
45

skipif mysql # not compatible
query I rowsort label-4140
SELECT DISTINCT + + MIN ( ALL + 45 ) AS col2
----
45

query I rowsort
SELECT DISTINCT 42 * 34 - - 61
----
1489

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4142
SELECT DISTINCT 16 DIV - 61 * - COUNT( * ) + 80 AS col2
----
80

skipif mysql # not compatible
query I rowsort label-4142
SELECT DISTINCT 16 / - 61 * - COUNT ( * ) + 80 AS col2
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-4143
SELECT + + 48 * COUNT( * ) AS col2
----
48

skipif mysql # not compatible
query I rowsort label-4143
SELECT + + 48 * COUNT ( * ) AS col2
----
48

onlyif mysql # aggregate syntax: 
query II rowsort label-4144
SELECT - ( + 5 ) * - COUNT( + 18 ) AS col0, + 77 + - + 42 + 80 col2
----
5
115

skipif mysql # not compatible
query II rowsort label-4144
SELECT - ( + 5 ) * - COUNT ( + 18 ) AS col0, + 77 + - + 42 + 80 col2
----
5
115

query I rowsort
SELECT - - 84 * 88 * + 86 AS col1
----
635712

query I rowsort
SELECT + 61 - + 58 col2
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-4147
SELECT - 31 DIV - 43 * 84
----
0

skipif mysql # not compatible
query I rowsort label-4147
SELECT - 31 / - 43 * 84
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4148
SELECT ALL COUNT( * ) * - + 37
----
-37

skipif mysql # not compatible
query I rowsort label-4148
SELECT ALL COUNT ( * ) * - + 37
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-4149
SELECT DISTINCT - 71 * - + 7 * - 14 * - - COALESCE ( + 60, - + COUNT( * ) * - 80 ) + - ( COUNT( * ) ) * - 69 col2
----
-417411

skipif mysql # not compatible
query I rowsort label-4149
SELECT DISTINCT - 71 * - + 7 * - 14 * - - COALESCE ( + 60, - + COUNT ( * ) * - 80 ) + - ( COUNT ( * ) ) * - 69 col2
----
-417411

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4150
SELECT DISTINCT + 45 + - - 85 * CAST( - 20 AS SIGNED ) * - ( + ( + - 29 ) ) + + 20 * + - MAX( 98 ) * 19
----
-86495

skipif mysql # not compatible
query I rowsort label-4150
SELECT DISTINCT + 45 + - - 85 * CAST ( - 20 AS INTEGER ) * - ( + ( + - 29 ) ) + + 20 * + - MAX ( 98 ) * 19
----
-86495

query I rowsort
SELECT - 74 - 89
----
-163

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4152
SELECT DISTINCT CAST( NULL AS SIGNED ) + + MIN( + 22 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4152
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + MIN ( + 22 ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4153
SELECT - ( CAST( + 13 AS SIGNED ) ) - + - 64 * + + ( + - 43 ) * + 3 * + 7 * 43 col2
----
-2485069

skipif mysql # not compatible
query I rowsort label-4153
SELECT - ( CAST ( + 13 AS INTEGER ) ) - + - 64 * + + ( + - 43 ) * + 3 * + 7 * 43 col2
----
-2485069

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-4154
SELECT ALL CAST( + - CAST( + + 15 AS DECIMAL ) AS SIGNED ) AS col2, COUNT( * )
----
-15
1

skipif mysql # not compatible
query II rowsort label-4154
SELECT ALL CAST ( + - CAST ( + + 15 AS REAL ) AS INTEGER ) AS col2, COUNT ( * )
----
-15
1

query I rowsort
SELECT DISTINCT - 64 + + + 40 * - 79 * + - 29 col2
----
91576

onlyif mysql # aggregate syntax: 
query I rowsort label-4156
SELECT + 56 * COUNT( * ) * - + 67
----
-3752

skipif mysql # not compatible
query I rowsort label-4156
SELECT + 56 * COUNT ( * ) * - + 67
----
-3752

query I rowsort
SELECT - 38 + 25
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-4158
SELECT - ( - COUNT( - + 17 ) ) - + + ( - 72 ) AS col1
----
73

skipif mysql # not compatible
query I rowsort label-4158
SELECT - ( - COUNT ( - + 17 ) ) - + + ( - 72 ) AS col1
----
73

onlyif mysql # DIV for integer division: 
query I rowsort label-4159
SELECT ALL + 55 DIV 12 AS col2
----
4

skipif mysql # not compatible
query I rowsort label-4159
SELECT ALL + 55 / 12 AS col2
----
4

query I rowsort
SELECT - 14 + - 32 * 5 AS col2
----
-174

onlyif mysql # DIV for integer division: 
query I rowsort label-4161
SELECT ALL 69 DIV - 59 + - 69 - - 42 AS col1
----
-28

skipif mysql # not compatible
query I rowsort label-4161
SELECT ALL 69 / - 59 + - 69 - - 42 AS col1
----
-28

onlyif mysql # DIV for integer division: 
query I rowsort label-4162
SELECT ALL + 55 DIV + 67 + + 85 AS col0
----
85

skipif mysql # not compatible
query I rowsort label-4162
SELECT ALL + 55 / + 67 + + 85 AS col0
----
85

query I rowsort
SELECT ALL + 56 * + 81 AS col0
----
4536

onlyif mysql # aggregate syntax: 
query I rowsort label-4164
SELECT COUNT( * ) * - - 87 * - - 58 + COALESCE ( - 45, + 88 )
----
5001

skipif mysql # not compatible
query I rowsort label-4164
SELECT COUNT ( * ) * - - 87 * - - 58 + COALESCE ( - 45, + 88 )
----
5001

onlyif mysql # aggregate syntax: 
query I rowsort label-4165
SELECT DISTINCT + 38 * CASE + - 34 WHEN + + 21 THEN + + 41 * SUM( DISTINCT + 26 ) WHEN + 44 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4165
SELECT DISTINCT + 38 * CASE + - 34 WHEN + + 21 THEN + + 41 * SUM ( DISTINCT + 26 ) WHEN + 44 THEN NULL END
----
NULL

query I rowsort
SELECT ALL - 84 + - + 84
----
-168

query I rowsort
SELECT 95 + + 81 + 74
----
250

onlyif mysql # aggregate syntax: 
query I rowsort label-4168
SELECT + MAX( DISTINCT 14 )
----
14

skipif mysql # not compatible
query I rowsort label-4168
SELECT + MAX ( DISTINCT 14 )
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-4169
SELECT + + MIN( DISTINCT - 66 ) AS col1
----
-66

skipif mysql # not compatible
query I rowsort label-4169
SELECT + + MIN ( DISTINCT - 66 ) AS col1
----
-66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4170
SELECT ALL - CAST( + 25 AS SIGNED )
----
-25

skipif mysql # not compatible
query I rowsort label-4170
SELECT ALL - CAST ( + 25 AS INTEGER )
----
-25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4171
SELECT - 60 * + SUM( + CAST( NULL AS SIGNED ) ) - + - 83 + - 8, + 75 * - + 68 * + + 38 AS col2
----
NULL
-193800

skipif mysql # not compatible
query II rowsort label-4171
SELECT - 60 * + SUM ( + CAST ( NULL AS INTEGER ) ) - + - 83 + - 8, + 75 * - + 68 * + + 38 AS col2
----
NULL
-193800

onlyif mysql # aggregate syntax: 
query I rowsort label-4172
SELECT - COUNT( * ) + - - 36 * - 19 * + + 69
----
-47197

skipif mysql # not compatible
query I rowsort label-4172
SELECT - COUNT ( * ) + - - 36 * - 19 * + + 69
----
-47197

query I rowsort
SELECT 41 * 95 * 85 + 93 AS col0
----
331168

onlyif mysql # aggregate syntax: 
query I rowsort label-4174
SELECT - 81 * ( - CASE - - 92 WHEN - - COUNT( * ) THEN - 33 END ) + - - 44 - 94 * - 43 + - 65
----
NULL

skipif mysql # not compatible
query I rowsort label-4174
SELECT - 81 * ( - CASE - - 92 WHEN - - COUNT ( * ) THEN - 33 END ) + - - 44 - 94 * - 43 + - 65
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4175
SELECT - CAST( NULL AS DECIMAL ) - + + MIN( ALL - 6 ) + 26 * + 57 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4175
SELECT - CAST ( NULL AS REAL ) - + + MIN ( ALL - 6 ) + 26 * + 57 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4176
SELECT - 59 + COUNT( * ) + 52 * + 42 AS col2
----
2126

skipif mysql # not compatible
query I rowsort label-4176
SELECT - 59 + COUNT ( * ) + 52 * + 42 AS col2
----
2126

query I rowsort
SELECT + 85 * - 61 - - 70 + 77
----
-5038

onlyif mysql # DIV for integer division: 
query I rowsort label-4178
SELECT COALESCE ( 22, + - 61, - ( - - 26 ) ) DIV - 18
----
-1

skipif mysql # not compatible
query I rowsort label-4178
SELECT COALESCE ( 22, + - 61, - ( - - 26 ) ) / - 18
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4179
SELECT + CAST( NULL AS SIGNED ) - - + 46 + - COUNT( * ) + 2 + + 11 / - COUNT( * ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4179
SELECT + CAST ( NULL AS INTEGER ) - - + 46 + - COUNT ( * ) + 2 + + 11 / - COUNT ( * ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4180
SELECT ALL NULLIF ( - COUNT( * ), - 97 / 22 * - + 81 + - 51 + + 21 )
----
-1

skipif mysql # not compatible
query I rowsort label-4180
SELECT ALL NULLIF ( - COUNT ( * ), - 97 / 22 * - + 81 + - 51 + + 21 )
----
-1

query I rowsort
SELECT ALL + 67 + - 31 col0
----
36

query I rowsort
SELECT ( 48 ) + + 52 - + 11 + + 86 + + 74 * + 27 AS col1
----
2173

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4183
SELECT ALL 86 DIV - - COUNT( * )
----
86

skipif mysql # not compatible
query I rowsort label-4183
SELECT ALL 86 / - - COUNT ( * )
----
86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4184
SELECT DISTINCT CAST( + 9 AS SIGNED ) + 54 AS col1
----
63

skipif mysql # not compatible
query I rowsort label-4184
SELECT DISTINCT CAST ( + 9 AS INTEGER ) + 54 AS col1
----
63

onlyif mysql # DIV for integer division: 
query II rowsort label-4185
SELECT ALL 40, 37 DIV - 57 AS col1
----
40
0

skipif mysql # not compatible
query II rowsort label-4185
SELECT ALL 40, 37 / - 57 AS col1
----
40
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4186
SELECT DISTINCT 74 + - - COUNT( - 6 ) + - 84 + - - 32 AS col0
----
23

skipif mysql # not compatible
query I rowsort label-4186
SELECT DISTINCT 74 + - - COUNT ( - 6 ) + - 84 + - - 32 AS col0
----
23

query I rowsort
SELECT DISTINCT 68 + - 63 + 27 * + + 88
----
2381

query I rowsort
SELECT DISTINCT + 69 * 91
----
6279

onlyif mysql # aggregate syntax: 
query I rowsort label-4189
SELECT DISTINCT - 15 + COUNT( * ) * - + 37
----
-52

skipif mysql # not compatible
query I rowsort label-4189
SELECT DISTINCT - 15 + COUNT ( * ) * - + 37
----
-52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4190
SELECT ALL + SUM( ALL - 64 ) + CASE + ( - COUNT( * ) ) WHEN + CAST( COUNT( * ) AS SIGNED ) THEN NULL ELSE + 57 END
----
-7

skipif mysql # not compatible
query I rowsort label-4190
SELECT ALL + SUM ( ALL - 64 ) + CASE + ( - COUNT ( * ) ) WHEN + CAST ( COUNT ( * ) AS INTEGER ) THEN NULL ELSE + 57 END
----
-7

query II rowsort
SELECT 90 col0, + 25
----
90
25

query I rowsort
SELECT ALL 90 * + - 79 * - 72
----
511920

query I rowsort
SELECT ALL - 97 + + - 60
----
-157

query III rowsort
SELECT ALL 17 col0, 33 col0, 11 * 56 AS col2
----
17
33
616

onlyif mysql # aggregate syntax: 
query I rowsort label-4195
SELECT 93 + 68 * + 67 * + COUNT( * ) * + 89 AS col0
----
405577

skipif mysql # not compatible
query I rowsort label-4195
SELECT 93 + 68 * + 67 * + COUNT ( * ) * + 89 AS col0
----
405577

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4196
SELECT DISTINCT 84 - + 68, - ( + 14 ) DIV COUNT( * ) + COUNT( * ) AS col2
----
16
-13

skipif mysql # not compatible
query II rowsort label-4196
SELECT DISTINCT 84 - + 68, - ( + 14 ) / COUNT ( * ) + COUNT ( * ) AS col2
----
16
-13

query I rowsort
SELECT ALL 19 - + 71
----
-52

onlyif mysql # aggregate syntax: 
query II rowsort label-4198
SELECT + 26 AS col0, + COUNT( * )
----
26
1

skipif mysql # not compatible
query II rowsort label-4198
SELECT + 26 AS col0, + COUNT ( * )
----
26
1

query I rowsort
SELECT 21 * - 41 AS col2
----
-861

onlyif mysql # aggregate syntax: 
query I rowsort label-4200
SELECT ALL - CASE COUNT( * ) WHEN - + 39 * 6 + - 48 THEN NULL ELSE MIN( 27 ) END
----
-27

skipif mysql # not compatible
query I rowsort label-4200
SELECT ALL - CASE COUNT ( * ) WHEN - + 39 * 6 + - 48 THEN NULL ELSE MIN ( 27 ) END
----
-27

onlyif mysql # aggregate syntax: 
query II rowsort label-4201
SELECT + - 15 * + 15 + - COUNT( * ) * - + 65 AS col0, + ( - COUNT( * ) )
----
-160
-1

skipif mysql # not compatible
query II rowsort label-4201
SELECT + - 15 * + 15 + - COUNT ( * ) * - + 65 AS col0, + ( - COUNT ( * ) )
----
-160
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4202
SELECT + 83 + - CASE + 31 WHEN + 81 + NULLIF ( - - COUNT( * ), - - 95 ) THEN COUNT( * ) END + + + COUNT( + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4202
SELECT + 83 + - CASE + 31 WHEN + 81 + NULLIF ( - - COUNT ( * ), - - 95 ) THEN COUNT ( * ) END + + + COUNT ( + CAST ( NULL AS INTEGER ) )
----
NULL

query II rowsort
SELECT + + 23 AS col0, 15 - - 14 * - + 36 col1
----
23
-489

query I rowsort
SELECT DISTINCT + + 79 * + 2 + + 59 AS col2
----
217

query I rowsort
SELECT ALL + 89 * + 46 AS col2
----
4094

query I rowsort
SELECT + 40 * - 26 AS col1
----
-1040

onlyif mysql # DIV for integer division: 
query I rowsort label-4207
SELECT ALL - 78 DIV 40 * - + 47 AS col2
----
47

skipif mysql # not compatible
query I rowsort label-4207
SELECT ALL - 78 / 40 * - + 47 AS col2
----
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4208
SELECT + CAST( - 35 AS SIGNED ) AS col1
----
-35

skipif mysql # not compatible
query I rowsort label-4208
SELECT + CAST ( - 35 AS INTEGER ) AS col1
----
-35

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4209
SELECT + 45 * COALESCE ( + - 45, 54 ) + + 32 DIV - + COALESCE ( + 60, - + COALESCE ( 77, + 50, CAST( NULL AS SIGNED ) * - CAST( - 51 AS SIGNED ) + 48 + + 87, - + 24 * - 76 ) * + + 39 )
----
-2025

skipif mysql # not compatible
query I rowsort label-4209
SELECT + 45 * COALESCE ( + - 45, 54 ) + + 32 / - + COALESCE ( + 60, - + COALESCE ( 77, + 50, CAST ( NULL AS INTEGER ) * - CAST ( - 51 AS INTEGER ) + 48 + + 87, - + 24 * - 76 ) * + + 39 )
----
-2025

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4210
SELECT + 99 + - CAST( NULL AS SIGNED ), ( - COUNT( * ) ) AS col1
----
NULL
-1

skipif mysql # not compatible
query II rowsort label-4210
SELECT + 99 + - CAST ( NULL AS INTEGER ), ( - COUNT ( * ) ) AS col1
----
NULL
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4211
SELECT + 13 + ( - SUM( DISTINCT + 31 ) ) AS col0
----
-18

skipif mysql # not compatible
query I rowsort label-4211
SELECT + 13 + ( - SUM ( DISTINCT + 31 ) ) AS col0
----
-18

query II rowsort
SELECT + + 35 AS col0, 39
----
35
39

query I rowsort
SELECT ALL - + 70 + 9
----
-61

query II rowsort
SELECT + 20 col1, 66 * - 57
----
20
-3762

onlyif mysql # aggregate syntax: 
query I rowsort label-4215
SELECT ALL NULLIF ( 74, + NULLIF ( + + 36, - - 50 ) ) + + MAX( DISTINCT + 86 )
----
160

skipif mysql # not compatible
query I rowsort label-4215
SELECT ALL NULLIF ( 74, + NULLIF ( + + 36, - - 50 ) ) + + MAX ( DISTINCT + 86 )
----
160

onlyif mysql # aggregate syntax: 
query I rowsort label-4216
SELECT 28 * - - COUNT( * ) + - + 45
----
-17

skipif mysql # not compatible
query I rowsort label-4216
SELECT 28 * - - COUNT ( * ) + - + 45
----
-17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4217
SELECT ALL + + 57 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4217
SELECT ALL + + 57 + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 42 - - 75 * 99
----
7467

onlyif mysql # aggregate syntax: 
query I rowsort label-4219
SELECT ( - - 14 ) * - + COUNT( * )
----
-14

skipif mysql # not compatible
query I rowsort label-4219
SELECT ( - - 14 ) * - + COUNT ( * )
----
-14

onlyif mysql # aggregate syntax: 
query II rowsort label-4220
SELECT ALL 27 * + COUNT( * ) * - NULLIF ( + 68, - 61 ) AS col0, + 59
----
-1836
59

skipif mysql # not compatible
query II rowsort label-4220
SELECT ALL 27 * + COUNT ( * ) * - NULLIF ( + 68, - 61 ) AS col0, + 59
----
-1836
59

query I rowsort
SELECT DISTINCT 20 + + 65
----
85

query I rowsort
SELECT ALL 79 + 16
----
95

query I rowsort
SELECT 77 * + + ( - ( - + 92 ) )
----
7084

onlyif mysql # DIV for integer division: 
query I rowsort label-4224
SELECT ALL 32 DIV 87 * + 12
----
0

skipif mysql # not compatible
query I rowsort label-4224
SELECT ALL 32 / 87 * + 12
----
0

query I rowsort
SELECT + 37 - + 21
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-4226
SELECT ALL COUNT( * ) - - - 66 AS col0
----
-65

skipif mysql # not compatible
query I rowsort label-4226
SELECT ALL COUNT ( * ) - - - 66 AS col0
----
-65

onlyif mysql # DIV for integer division: 
query I rowsort label-4227
SELECT DISTINCT 78 DIV 18
----
4

skipif mysql # not compatible
query I rowsort label-4227
SELECT DISTINCT 78 / 18
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-4228
SELECT - COUNT( + 10 )
----
-1

skipif mysql # not compatible
query I rowsort label-4228
SELECT - COUNT ( + 10 )
----
-1

query I rowsort
SELECT ALL 13 * + - 7
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-4230
SELECT + 19 * + COUNT( * ) * - + 28
----
-532

skipif mysql # not compatible
query I rowsort label-4230
SELECT + 19 * + COUNT ( * ) * - + 28
----
-532

onlyif mysql # aggregate syntax: 
query II rowsort label-4231
SELECT - 25 + + - COUNT( * ) + COUNT( * ) - + SUM( - 31 ) col2, ( 47 )
----
6
47

skipif mysql # not compatible
query II rowsort label-4231
SELECT - 25 + + - COUNT ( * ) + COUNT ( * ) - + SUM ( - 31 ) col2, ( 47 )
----
6
47

query I rowsort
SELECT DISTINCT 31 * - - 98
----
3038

onlyif mysql # aggregate syntax: 
query I rowsort label-4233
SELECT + CASE + + 86 WHEN ( - 29 ) * + + 47 * 9 + COUNT( * ) * + + ( - + 20 ) THEN + - 85 + + 59 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4233
SELECT + CASE + + 86 WHEN ( - 29 ) * + + 47 * 9 + COUNT ( * ) * + + ( - + 20 ) THEN + - 85 + + 59 ELSE NULL END
----
NULL

query II rowsort
SELECT ALL + + ( 6 ) AS col1, 33
----
6
33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4235
SELECT DISTINCT + + SUM( ALL CAST( - 28 AS SIGNED ) ) * + - COUNT( * )
----
28

skipif mysql # not compatible
query I rowsort label-4235
SELECT DISTINCT + + SUM ( ALL CAST ( - 28 AS INTEGER ) ) * + - COUNT ( * )
----
28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4236
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + 1 * 65 * + + 0 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4236
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + 1 * 65 * + + 0 AS col1
----
NULL

query I rowsort
SELECT ALL + 16 * - - 13 AS col0
----
208

onlyif mysql # DIV for integer division: 
query II rowsort label-4238
SELECT - 89 * ( + - 22 ) + 13 + 1 DIV - 79 + + 7 - + - 66 AS col0, 91 AS col1
----
2044
91

skipif mysql # not compatible
query II rowsort label-4238
SELECT - 89 * ( + - 22 ) + 13 + 1 / - 79 + + 7 - + - 66 AS col0, 91 AS col1
----
2044
91

onlyif mysql # aggregate syntax: 
query I rowsort label-4239
SELECT - + ( + + COUNT( * ) ) * - COALESCE ( COUNT( * ), 75 + + - 52 )
----
1

skipif mysql # not compatible
query I rowsort label-4239
SELECT - + ( + + COUNT ( * ) ) * - COALESCE ( COUNT ( * ), 75 + + - 52 )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-4240
SELECT ALL - 95 * 55 - - 63 + + 9 * + 96 * + 25 + CASE 23 WHEN - 43 THEN NULL WHEN - 70 THEN + 72 - ( - + COALESCE ( + - COUNT( * ), + 74, 7 / + 30 * 22 * - 9 + + + 5 ) ) END, - NULLIF ( ( 51 ), - 23 ) AS col2
----
NULL
-51

skipif mysql # not compatible
query II rowsort label-4240
SELECT ALL - 95 * 55 - - 63 + + 9 * + 96 * + 25 + CASE 23 WHEN - 43 THEN NULL WHEN - 70 THEN + 72 - ( - + COALESCE ( + - COUNT ( * ), + 74, 7 / + 30 * 22 * - 9 + + + 5 ) ) END, - NULLIF ( ( 51 ), - 23 ) AS col2
----
NULL
-51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4241
SELECT + 1 / + COALESCE ( + 41, - 60 * + AVG ( 77 ) * 32 + 80 + - 14 + + + 29 + 92 ) * - + CASE - - 44 WHEN - COALESCE ( - 95, + CAST( + ( + - 50 ) AS SIGNED ), + 36 ) * + - 72 / + 69 * - 1 * + - 35 + + 16 THEN NULL WHEN + 57 THEN + 94 END / NULLIF ( 21, - CAST( NULL AS SIGNED ) ) * + ( + + 62 ) / ( - 43 ) / + + 94 - AVG ( - 37 ) / - 21 + - 32 * 15 + - 12 + 78 + - 95 * + 17 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4241
SELECT + 1 / + COALESCE ( + 41, - 60 * + AVG ( 77 ) * 32 + 80 + - 14 + + + 29 + 92 ) * - + CASE - - 44 WHEN - COALESCE ( - 95, + CAST ( + ( + - 50 ) AS INTEGER ), + 36 ) * + - 72 / + 69 * - 1 * + - 35 + + 16 THEN NULL WHEN + 57 THEN + 94 END / NULLIF ( 21, - CAST ( NULL AS INTEGER ) ) * + ( + + 62 ) / ( - 43 ) / + + 94 - AVG ( - 37 ) / - 21 + - 32 * 15 + - 12 + 78 + - 95 * + 17 AS col1
----
NULL

query I rowsort
SELECT + NULLIF ( ( + + 5 ), 58 * + - 61 )
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4243
SELECT + - 86 + + COUNT( * ) + - 39 + ( + 90 ) * + CASE - - COUNT( * ) WHEN CASE + CASE + 64 WHEN - + NULLIF ( - 57, - + 24 ) THEN NULL ELSE + 92 END WHEN + - ( 21 ) * + - 42 THEN NULL WHEN - 69 - + 48 THEN + 30 + - 4 END / - 28 THEN NULL WHEN - - 71 THEN + + 25 * 82 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4243
SELECT + - 86 + + COUNT ( * ) + - 39 + ( + 90 ) * + CASE - - COUNT ( * ) WHEN CASE + CASE + 64 WHEN - + NULLIF ( - 57, - + 24 ) THEN NULL ELSE + 92 END WHEN + - ( 21 ) * + - 42 THEN NULL WHEN - 69 - + 48 THEN + 30 + - 4 END / - 28 THEN NULL WHEN - - 71 THEN + + 25 * 82 END AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4244
SELECT + + COUNT( * ) DIV + 79 * 58
----
0

skipif mysql # not compatible
query I rowsort label-4244
SELECT + + COUNT ( * ) / + 79 * 58
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4245
SELECT - 50 - + SUM( DISTINCT + + 87 ) + - 17 AS col0
----
-154

skipif mysql # not compatible
query I rowsort label-4245
SELECT - 50 - + SUM ( DISTINCT + + 87 ) + - 17 AS col0
----
-154

query I rowsort
SELECT DISTINCT + ( + 62 ) * - - 56 + + + 23 col2
----
3495

onlyif mysql # aggregate syntax: 
query I rowsort label-4247
SELECT DISTINCT - NULLIF ( - 24, 57 ) * 18 + COUNT( * ) - + 77 AS col0
----
356

skipif mysql # not compatible
query I rowsort label-4247
SELECT DISTINCT - NULLIF ( - 24, 57 ) * 18 + COUNT ( * ) - + 77 AS col0
----
356

query I rowsort
SELECT ALL - 94 * + - 96 * + + 26 + - 55 AS col0
----
234569

onlyif mysql # aggregate syntax: 
query I rowsort label-4249
SELECT - 77 + + COUNT( * ) + + 39 - NULLIF ( + 94, 57 )
----
-131

skipif mysql # not compatible
query I rowsort label-4249
SELECT - 77 + + COUNT ( * ) + + 39 - NULLIF ( + 94, 57 )
----
-131

query I rowsort
SELECT ALL + 80 * - + 44 + 65
----
-3455

query I rowsort
SELECT - 21 * - 39 * + 38 + + 77 AS col0
----
31199

onlyif mysql # aggregate syntax: 
query I rowsort label-4252
SELECT ALL 71 * 52 * 82 + - ( + COUNT( * ) ) + - + 26 + - 87 * + 68 AS col2
----
296801

skipif mysql # not compatible
query I rowsort label-4252
SELECT ALL 71 * 52 * 82 + - ( + COUNT ( * ) ) + - + 26 + - 87 * + 68 AS col2
----
296801

query I rowsort
SELECT 96 * - 76 + ( + + 1 ) - + - 42 AS col0
----
-7253

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4254
SELECT - COUNT( * ) - - 72 * COUNT( * ) AS col0, COUNT( * ) * + COUNT( * ) DIV - 50 + 63 AS col1
----
71
63

skipif mysql # not compatible
query II rowsort label-4254
SELECT - COUNT ( * ) - - 72 * COUNT ( * ) AS col0, COUNT ( * ) * + COUNT ( * ) / - 50 + 63 AS col1
----
71
63

query I rowsort
SELECT ALL ( + - 27 ) AS col2
----
-27

query I rowsort
SELECT DISTINCT + 87 * 82 AS col0
----
7134

onlyif mysql # aggregate syntax: 
query I rowsort label-4257
SELECT ALL - MAX( DISTINCT - 16 ) - + 20
----
-4

skipif mysql # not compatible
query I rowsort label-4257
SELECT ALL - MAX ( DISTINCT - 16 ) - + 20
----
-4

onlyif mysql # aggregate syntax: 
query II rowsort label-4258
SELECT COUNT( * ), 19 - ( - + 47 ) AS col1
----
1
66

skipif mysql # not compatible
query II rowsort label-4258
SELECT COUNT ( * ), 19 - ( - + 47 ) AS col1
----
1
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4259
SELECT DISTINCT CAST( - + 89 AS SIGNED ) AS col0
----
-89

skipif mysql # not compatible
query I rowsort label-4259
SELECT DISTINCT CAST ( - + 89 AS INTEGER ) AS col0
----
-89

query I rowsort
SELECT DISTINCT + 15 - + + 38 AS col0
----
-23

query I rowsort
SELECT ALL 73 * 94 col1
----
6862

query II rowsort
SELECT ALL 56 AS col0, 61 + + - 81 + + - 45 AS col2
----
56
-65

query I rowsort
SELECT + 14 + + 71 - + - 80 * - 17 * + + 98
----
-133195

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4264
SELECT - 25 * + + SUM( ALL + - 85 ) * - + CAST( NULL AS SIGNED ) - + 60 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4264
SELECT - 25 * + + SUM ( ALL + - 85 ) * - + CAST ( NULL AS INTEGER ) - + 60 AS col2
----
NULL

query I rowsort
SELECT + 31 * + 32 AS col2
----
992

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4266
SELECT ALL CAST( 30 AS SIGNED ) AS col1
----
30

skipif mysql # not compatible
query I rowsort label-4266
SELECT ALL CAST ( 30 AS INTEGER ) AS col1
----
30

query II rowsort
SELECT - ( + 2 ) + + - 56, + ( 7 ) AS col2
----
-58
7

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4268
SELECT 39, + CAST( NULL AS SIGNED ) AS col2
----
39
NULL

skipif mysql # not compatible
query II rowsort label-4268
SELECT 39, + CAST ( NULL AS INTEGER ) AS col2
----
39
NULL

query II rowsort
SELECT + 84 + + - NULLIF ( 35, 63 / - 30 + - 30 ) AS col1, + 24
----
49
24

query I rowsort
SELECT ALL 90 * - + 83 AS col2
----
-7470

query I rowsort
SELECT ALL - 25 * 42
----
-1050

onlyif mysql # aggregate syntax: 
query II rowsort label-4272
SELECT ALL 82 AS col1, 16 + COUNT( + 11 )
----
82
17

skipif mysql # not compatible
query II rowsort label-4272
SELECT ALL 82 AS col1, 16 + COUNT ( + 11 )
----
82
17

onlyif mysql # aggregate syntax: 
query I rowsort label-4273
SELECT + + 25 + NULLIF ( - 16, - 51 * - - NULLIF ( + 42, + 17 / + COUNT( * ) ) * + 51 + + 88 * + + ( - + ( 1 ) ) ) - + COUNT( * ) AS col0
----
8

skipif mysql # not compatible
query I rowsort label-4273
SELECT + + 25 + NULLIF ( - 16, - 51 * - - NULLIF ( + 42, + 17 / + COUNT ( * ) ) * + 51 + + 88 * + + ( - + ( 1 ) ) ) - + COUNT ( * ) AS col0
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-4274
SELECT DISTINCT + ( CASE - + COUNT( * ) WHEN + 0 THEN 94 END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4274
SELECT DISTINCT + ( CASE - + COUNT ( * ) WHEN + 0 THEN 94 END ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4275
SELECT ALL - 56 / + CAST( NULL AS SIGNED ) * + 86
----
NULL

skipif mysql # not compatible
query I rowsort label-4275
SELECT ALL - 56 / + CAST ( NULL AS INTEGER ) * + 86
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4276
SELECT - AVG ( - 91 ) / COUNT( * ) + 30 / 45 + - CAST( NULL AS SIGNED ) + 12 + + 7 * - + COUNT( * ) + + 3 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4276
SELECT - AVG ( - 91 ) / COUNT ( * ) + 30 / 45 + - CAST ( NULL AS INTEGER ) + 12 + + 7 * - + COUNT ( * ) + + 3 AS col1
----
NULL

query I rowsort
SELECT - 84 + - - 95
----
11

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4278
SELECT + - COUNT( * ) DIV + + 73 + 15, + 5 * + 29 * - COUNT( * ) * - 98 * - 57 AS col1
----
15
-809970

skipif mysql # not compatible
query II rowsort label-4278
SELECT + - COUNT ( * ) / + + 73 + 15, + 5 * + 29 * - COUNT ( * ) * - 98 * - 57 AS col1
----
15
-809970

onlyif mysql # aggregate syntax: 
query I rowsort label-4279
SELECT + - ( COALESCE ( - + 81, + - COUNT( * ) + + - 67 ) )
----
81

skipif mysql # not compatible
query I rowsort label-4279
SELECT + - ( COALESCE ( - + 81, + - COUNT ( * ) + + - 67 ) )
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-4280
SELECT COUNT( * ) * - - 66 + + 8 + + 84 * + ( + + 59 ) * + MAX( - + 6 ) + 44 AS col0
----
-29618

skipif mysql # not compatible
query I rowsort label-4280
SELECT COUNT ( * ) * - - 66 + + 8 + + 84 * + ( + + 59 ) * + MAX ( - + 6 ) + 44 AS col0
----
-29618

onlyif mysql # aggregate syntax: 
query II rowsort label-4281
SELECT ALL MIN( ALL - 61 ) * + COUNT( * ), - 16 AS col0
----
-61
-16

skipif mysql # not compatible
query II rowsort label-4281
SELECT ALL MIN ( ALL - 61 ) * + COUNT ( * ), - 16 AS col0
----
-61
-16

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4282
SELECT ALL + - 7 DIV 71 + - + COALESCE ( + 58, + + NULLIF ( 48, + 31 DIV CAST( NULL AS SIGNED ) * + 22 ) ) AS col0
----
-58

skipif mysql # not compatible
query I rowsort label-4282
SELECT ALL + - 7 / 71 + - + COALESCE ( + 58, + + NULLIF ( 48, + 31 / CAST ( NULL AS INTEGER ) * + 22 ) ) AS col0
----
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-4283
SELECT - - 98 DIV - 85 + + 54 AS col2
----
53

skipif mysql # not compatible
query I rowsort label-4283
SELECT - - 98 / - 85 + + 54 AS col2
----
53

onlyif mysql # DIV for integer division: 
query I rowsort label-4284
SELECT + - 49 + + ( 96 ) DIV 88
----
-48

skipif mysql # not compatible
query I rowsort label-4284
SELECT + - 49 + + ( 96 ) / 88
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-4285
SELECT ALL + COALESCE ( MIN( DISTINCT - + 31 ), 91, + + 15 ) AS col2
----
-31

skipif mysql # not compatible
query I rowsort label-4285
SELECT ALL + COALESCE ( MIN ( DISTINCT - + 31 ), 91, + + 15 ) AS col2
----
-31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4286
SELECT + + ( + COUNT( * ) ) * COALESCE ( + 40, 39 * + - 85 * 69 ) + - + COUNT( * ) AS col1, - ( - + 13 ) + - ( - CAST( - - MAX( 48 ) AS SIGNED ) ) + - + 66 + - + 29 * + 4 AS col0
----
39
-121

skipif mysql # not compatible
query II rowsort label-4286
SELECT + + ( + COUNT ( * ) ) * COALESCE ( + 40, 39 * + - 85 * 69 ) + - + COUNT ( * ) AS col1, - ( - + 13 ) + - ( - CAST ( - - MAX ( 48 ) AS INTEGER ) ) + - + 66 + - + 29 * + 4 AS col0
----
39
-121

query II rowsort
SELECT ALL + + 0 AS col1, 81 + - 27 col0
----
0
54

onlyif mysql # aggregate syntax: 
query I rowsort label-4288
SELECT + COALESCE ( - CASE 19 WHEN + + 89 + 85 + - 1 THEN NULL WHEN + 26 THEN NULL ELSE - 86 + 61 END, - + ( - 65 ), + - 82, - SUM( - - 84 ) ) * + COUNT( * ) AS col0
----
25

skipif mysql # not compatible
query I rowsort label-4288
SELECT + COALESCE ( - CASE 19 WHEN + + 89 + 85 + - 1 THEN NULL WHEN + 26 THEN NULL ELSE - 86 + 61 END, - + ( - 65 ), + - 82, - SUM ( - - 84 ) ) * + COUNT ( * ) AS col0
----
25

query I rowsort
SELECT + + NULLIF ( - + 95, 83 )
----
-95

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4290
SELECT DISTINCT COUNT( * ) * - - 3 - NULLIF ( + NULLIF ( 71, + - CAST( NULL AS DECIMAL ) / 87 + - 94 ), + 63 + + + 10 ) + - 64
----
-132

skipif mysql # not compatible
query I rowsort label-4290
SELECT DISTINCT COUNT ( * ) * - - 3 - NULLIF ( + NULLIF ( 71, + - CAST ( NULL AS REAL ) / 87 + - 94 ), + 63 + + + 10 ) + - 64
----
-132

query I rowsort
SELECT DISTINCT + NULLIF ( + 4, + - 3 )
----
4

query I rowsort
SELECT ALL 41 * + 69 - - 70
----
2899

onlyif mysql # aggregate syntax: 
query I rowsort label-4293
SELECT + 9 * + + COUNT( * ) AS col1
----
9

skipif mysql # not compatible
query I rowsort label-4293
SELECT + 9 * + + COUNT ( * ) AS col1
----
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4294
SELECT DISTINCT - 10 * - ( - COUNT( * ) ) DIV - 59 + + 13 AS col1
----
13

skipif mysql # not compatible
query I rowsort label-4294
SELECT DISTINCT - 10 * - ( - COUNT ( * ) ) / - 59 + + 13 AS col1
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-4295
SELECT ALL - COUNT( * ) * + 82 AS col2
----
-82

skipif mysql # not compatible
query I rowsort label-4295
SELECT ALL - COUNT ( * ) * + 82 AS col2
----
-82

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4296
SELECT ALL 68 DIV + 68, 62 * - COUNT( * ) col0
----
1
-62

skipif mysql # not compatible
query II rowsort label-4296
SELECT ALL 68 / + 68, 62 * - COUNT ( * ) col0
----
1
-62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4297
SELECT DISTINCT + ( + CAST( NULL AS SIGNED ) ) * + - ( - 68 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4297
SELECT DISTINCT + ( + CAST ( NULL AS INTEGER ) ) * + - ( - 68 ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT + 11 * + + 78
----
858

onlyif mysql # DIV for integer division: 
query I rowsort label-4299
SELECT 12 DIV 74
----
0

skipif mysql # not compatible
query I rowsort label-4299
SELECT 12 / 74
----
0

query I rowsort
SELECT 86 - 47
----
39

query I rowsort
SELECT 95 + 51
----
146

onlyif mysql # DIV for integer division: 
query I rowsort label-4302
SELECT 2 DIV - 89 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4302
SELECT 2 / - 89 AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4303
SELECT DISTINCT + 27 + - ( - 9 ) * - - ( - + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4303
SELECT DISTINCT + 27 + - ( - 9 ) * - - ( - + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4304
SELECT ( + - 88 ) - - - COUNT( * )
----
-89

skipif mysql # not compatible
query I rowsort label-4304
SELECT ( + - 88 ) - - - COUNT ( * )
----
-89

onlyif mysql # aggregate syntax: 
query II rowsort label-4305
SELECT 85 * - CASE 69 WHEN - 3 THEN 33 WHEN + + 61 * - MIN( + 15 ) + - MAX( 0 ) + + + 18 * 53 THEN NULL END AS col1, 74 + + 84 AS col1
----
NULL
158

skipif mysql # not compatible
query II rowsort label-4305
SELECT 85 * - CASE 69 WHEN - 3 THEN 33 WHEN + + 61 * - MIN ( + 15 ) + - MAX ( 0 ) + + + 18 * 53 THEN NULL END AS col1, 74 + + 84 AS col1
----
NULL
158

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4306
SELECT ALL - AVG ( ALL - 53 ) + + COUNT( * ) + CASE + 3 WHEN + + 22 * + - 94 * CAST( NULL AS DECIMAL ) + + - 55 THEN + - 49 WHEN 0 THEN NULL WHEN 17 * + 93 THEN NULL ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4306
SELECT ALL - AVG ( ALL - 53 ) + + COUNT ( * ) + CASE + 3 WHEN + + 22 * + - 94 * CAST ( NULL AS REAL ) + + - 55 THEN + - 49 WHEN 0 THEN NULL WHEN 17 * + 93 THEN NULL ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4307
SELECT DISTINCT - 66 + + - COUNT( * ) * 24 * - 30 - ( - 39 ) + - - 6 AS col1
----
699

skipif mysql # not compatible
query I rowsort label-4307
SELECT DISTINCT - 66 + + - COUNT ( * ) * 24 * - 30 - ( - 39 ) + - - 6 AS col1
----
699

query I rowsort
SELECT 64 * - + 40
----
-2560

query I rowsort
SELECT + 65 * 66 AS col2
----
4290

onlyif mysql # aggregate syntax: 
query I rowsort label-4310
SELECT DISTINCT + 33 + + ( - - MIN( ALL 23 ) )
----
56

skipif mysql # not compatible
query I rowsort label-4310
SELECT DISTINCT + 33 + + ( - - MIN ( ALL 23 ) )
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-4311
SELECT ALL - MIN( DISTINCT + + 2 ) AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-4311
SELECT ALL - MIN ( DISTINCT + + 2 ) AS col0
----
-2

query I rowsort
SELECT DISTINCT 44 * + 41 + - - 15
----
1819

query I rowsort
SELECT DISTINCT + ( + 51 ) + 90 - + + ( + + 55 )
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-4314
SELECT DISTINCT 85 + - COUNT( * ) + - + 4
----
80

skipif mysql # not compatible
query I rowsort label-4314
SELECT DISTINCT 85 + - COUNT ( * ) + - + 4
----
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4315
SELECT ALL 29 + - + CAST( NULL AS SIGNED ) + 45 + - + COUNT( * ) col1, 66 * + + 63 + + + 2 * + 81 col1
----
NULL
4320

skipif mysql # not compatible
query II rowsort label-4315
SELECT ALL 29 + - + CAST ( NULL AS INTEGER ) + 45 + - + COUNT ( * ) col1, 66 * + + 63 + + + 2 * + 81 col1
----
NULL
4320

onlyif mysql # aggregate syntax: 
query I rowsort label-4316
SELECT + MAX( ( 1 ) ) * - + 60 + 45 AS col0
----
-15

skipif mysql # not compatible
query I rowsort label-4316
SELECT + MAX ( ( 1 ) ) * - + 60 + 45 AS col0
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-4317
SELECT 72 * + + ( - - MIN( DISTINCT + 42 ) )
----
3024

skipif mysql # not compatible
query I rowsort label-4317
SELECT 72 * + + ( - - MIN ( DISTINCT + 42 ) )
----
3024

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4318
SELECT + COUNT( * ) * - + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4318
SELECT + COUNT ( * ) * - + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4319
SELECT DISTINCT COUNT( * ) * - 7 AS col1
----
-7

skipif mysql # not compatible
query I rowsort label-4319
SELECT DISTINCT COUNT ( * ) * - 7 AS col1
----
-7

query I rowsort
SELECT DISTINCT 33 - + 75
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-4321
SELECT DISTINCT 97 * - COUNT( * ) AS col0
----
-97

skipif mysql # not compatible
query I rowsort label-4321
SELECT DISTINCT 97 * - COUNT ( * ) AS col0
----
-97

query I rowsort
SELECT ALL 27 * 84
----
2268

onlyif mysql # aggregate syntax: 
query I rowsort label-4323
SELECT COUNT( * ) * + 78 * + 44 * + COUNT( * ) col0
----
3432

skipif mysql # not compatible
query I rowsort label-4323
SELECT COUNT ( * ) * + 78 * + 44 * + COUNT ( * ) col0
----
3432

onlyif mysql # aggregate syntax: 
query I rowsort label-4324
SELECT DISTINCT 62 * COUNT( * ) AS col1
----
62

skipif mysql # not compatible
query I rowsort label-4324
SELECT DISTINCT 62 * COUNT ( * ) AS col1
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-4325
SELECT 21 - - COUNT( * )
----
22

skipif mysql # not compatible
query I rowsort label-4325
SELECT 21 - - COUNT ( * )
----
22

query I rowsort
SELECT 95 + 89 + + 92 + + NULLIF ( - 37, + 37 + + + 72 * - 43 )
----
239

onlyif mysql # aggregate syntax: 
query I rowsort label-4327
SELECT COALESCE ( - 95, - 63 ) * - NULLIF ( + 41, 60 - - - 59 ) * + - 73 - + COUNT( * ) + 24 + + 31 AS col1
----
-284281

skipif mysql # not compatible
query I rowsort label-4327
SELECT COALESCE ( - 95, - 63 ) * - NULLIF ( + 41, 60 - - - 59 ) * + - 73 - + COUNT ( * ) + 24 + + 31 AS col1
----
-284281

query I rowsort
SELECT ALL 61 + - 42
----
19

query I rowsort
SELECT 21 + + ( - - 29 ) * - - ( 82 ) + 80 * + 69 * + ( + 14 ) - + + ( 22 ) * - 53
----
80845

onlyif mysql # aggregate syntax: 
query I rowsort label-4330
SELECT DISTINCT COALESCE ( 78, - 89 - - - COUNT( * ) ) + + 85 * + - 27
----
-2217

skipif mysql # not compatible
query I rowsort label-4330
SELECT DISTINCT COALESCE ( 78, - 89 - - - COUNT ( * ) ) + + 85 * + - 27
----
-2217

query I rowsort
SELECT 30 + + - 48 AS col0
----
-18

query II rowsort
SELECT ALL ( - + 88 ) + + 48 AS col0, 84
----
-40
84

query I rowsort
SELECT ALL - 70 + 29
----
-41

onlyif mysql # DIV for integer division: 
query I rowsort label-4334
SELECT 2 * + 20 DIV - - 80
----
0

skipif mysql # not compatible
query I rowsort label-4334
SELECT 2 * + 20 / - - 80
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4335
SELECT + 80 + + COUNT( * ) DIV 35
----
80

skipif mysql # not compatible
query I rowsort label-4335
SELECT + 80 + + COUNT ( * ) / 35
----
80

onlyif mysql # DIV for integer division: 
query I rowsort label-4336
SELECT + 50 DIV + + 36
----
1

skipif mysql # not compatible
query I rowsort label-4336
SELECT + 50 / + + 36
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4337
SELECT SUM( DISTINCT - 8 )
----
-8

skipif mysql # not compatible
query I rowsort label-4337
SELECT SUM ( DISTINCT - 8 )
----
-8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4338
SELECT DISTINCT 72 * + - 10 * CAST( + 57 AS SIGNED ) * 97
----
-3980880

skipif mysql # not compatible
query I rowsort label-4338
SELECT DISTINCT 72 * + - 10 * CAST ( + 57 AS INTEGER ) * 97
----
-3980880

onlyif mysql # aggregate syntax: 
query I rowsort label-4339
SELECT - 16 + - + MAX( + 86 )
----
-102

skipif mysql # not compatible
query I rowsort label-4339
SELECT - 16 + - + MAX ( + 86 )
----
-102

query I rowsort
SELECT DISTINCT - ( + + 61 )
----
-61

query I rowsort
SELECT + 82 + - + 86
----
-4

query I rowsort
SELECT 51 * + - 20 AS col2
----
-1020

onlyif mysql # aggregate syntax: 
query II rowsort label-4343
SELECT - COUNT( DISTINCT ( 49 ) ), 49 * 88 AS col0
----
-1
4312

skipif mysql # not compatible
query II rowsort label-4343
SELECT - COUNT ( DISTINCT ( 49 ) ), 49 * 88 AS col0
----
-1
4312

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4344
SELECT + 66 + - CAST( COUNT( * ) AS SIGNED )
----
65

skipif mysql # not compatible
query I rowsort label-4344
SELECT + 66 + - CAST ( COUNT ( * ) AS INTEGER )
----
65

query I rowsort
SELECT DISTINCT + 60 * - 7 - + ( 59 ) AS col2
----
-479

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4346
SELECT ALL - + NULLIF ( - CAST( NULL AS SIGNED ), - COALESCE ( + 60, - - 9, 21 + - + 66 ) + 12 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4346
SELECT ALL - + NULLIF ( - CAST ( NULL AS INTEGER ), - COALESCE ( + 60, - - 9, 21 + - + 66 ) + 12 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4347
SELECT + - NULLIF ( CAST( + + 73 AS SIGNED ), + 95 )
----
-73

skipif mysql # not compatible
query I rowsort label-4347
SELECT + - NULLIF ( CAST ( + + 73 AS INTEGER ), + 95 )
----
-73

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4348
SELECT ALL + 27 * 70 DIV COUNT( * )
----
1890

skipif mysql # not compatible
query I rowsort label-4348
SELECT ALL + 27 * 70 / COUNT ( * )
----
1890

query I rowsort
SELECT - - 22 * 39
----
858

query II rowsort
SELECT ALL + 61 AS col0, - 22 - + 61 + - 7 * + 83
----
61
-664

query I rowsort
SELECT - 32 + + 10 AS col1
----
-22

query I rowsort
SELECT DISTINCT + - 6 * - 95
----
570

query II rowsort
SELECT DISTINCT + 57 AS col0, 63 * - 7
----
57
-441

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4354
SELECT + 90 AS col1, CAST( NULL AS SIGNED ) * - + 4 * + 88 / + COUNT( * ) * - COUNT( * ) * - COUNT( * )
----
90
NULL

skipif mysql # not compatible
query II rowsort label-4354
SELECT + 90 AS col1, CAST ( NULL AS INTEGER ) * - + 4 * + 88 / + COUNT ( * ) * - COUNT ( * ) * - COUNT ( * )
----
90
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4355
SELECT + 91 DIV ( - COUNT( * ) ) DIV - 62
----
1

skipif mysql # not compatible
query I rowsort label-4355
SELECT + 91 / ( - COUNT ( * ) ) / - 62
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4356
SELECT + 8 + - 26 - + CAST( NULL AS SIGNED ) + - 90 - COALESCE ( + 38, - 87, 40 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4356
SELECT + 8 + - 26 - + CAST ( NULL AS INTEGER ) + - 90 - COALESCE ( + 38, - 87, 40 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4357
SELECT ALL 14 DIV + 40 * + - 64 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4357
SELECT ALL 14 / + 40 * + - 64 AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4358
SELECT ALL + 60 AS col0, 47 * 21 + + - 72 + - 53 * + CAST( - - 38 AS SIGNED )
----
60
-1099

skipif mysql # not compatible
query II rowsort label-4358
SELECT ALL + 60 AS col0, 47 * 21 + + - 72 + - 53 * + CAST ( - - 38 AS INTEGER )
----
60
-1099

query II rowsort
SELECT + 85 + + 92 col2, + 63 + + 18 AS col2
----
177
81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4360
SELECT + 55 DIV 79 * - COUNT( * ) col2
----
0

skipif mysql # not compatible
query I rowsort label-4360
SELECT + 55 / 79 * - COUNT ( * ) col2
----
0

query I rowsort
SELECT ALL 67 + + 45
----
112

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4362
SELECT ALL 67 AS col1, CAST( NULL AS SIGNED ) AS col0
----
67
NULL

skipif mysql # not compatible
query II rowsort label-4362
SELECT ALL 67 AS col1, CAST ( NULL AS INTEGER ) AS col0
----
67
NULL

query I rowsort
SELECT - NULLIF ( + 88, 5 + + - 64 ) AS col1
----
-88

query I rowsort
SELECT - ( + 5 ) AS col1
----
-5

query II rowsort
SELECT ALL 55 AS col1, - 88
----
55
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-4366
SELECT DISTINCT - COUNT( 76 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-4366
SELECT DISTINCT - COUNT ( 76 ) AS col1
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4367
SELECT + + 44 + - CASE - 53 WHEN - 83 * - 51 / - CAST( NULL AS SIGNED ) - + - 80 THEN - 43 + - 55 + + 24 END + + + 45 / + AVG ( ALL 31 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4367
SELECT + + 44 + - CASE - 53 WHEN - 83 * - 51 / - CAST ( NULL AS INTEGER ) - + - 80 THEN - 43 + - 55 + + 24 END + + + 45 / + AVG ( ALL 31 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4368
SELECT - + 38 * - COUNT( * ) AS col1
----
38

skipif mysql # not compatible
query I rowsort label-4368
SELECT - + 38 * - COUNT ( * ) AS col1
----
38

onlyif mysql # DIV for integer division: 
query II rowsort label-4369
SELECT - - 48 AS col0, 9 DIV + ( + 50 ) AS col2
----
48
0

skipif mysql # not compatible
query II rowsort label-4369
SELECT - - 48 AS col0, 9 / + ( + 50 ) AS col2
----
48
0

query II rowsort
SELECT ALL 17 + + - 31 AS col2, 6
----
-14
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-4371
SELECT ALL - 37 AS col1, ( 2 ) / + 4 * + COUNT( * ) * - 19 - + - NULLIF ( - - CAST( NULL AS DECIMAL ), - NULLIF ( 97, - COUNT( * ) + + - 97 ) * 13 + 45 / - 69 + 33 + 18 * - 88 * - CAST( NULL AS SIGNED ) )
----
-37
NULL

skipif mysql # not compatible
query II rowsort label-4371
SELECT ALL - 37 AS col1, ( 2 ) / + 4 * + COUNT ( * ) * - 19 - + - NULLIF ( - - CAST ( NULL AS REAL ), - NULLIF ( 97, - COUNT ( * ) + + - 97 ) * 13 + 45 / - 69 + 33 + 18 * - 88 * - CAST ( NULL AS INTEGER ) )
----
-37
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4372
SELECT + 5 - - 17 DIV - 32 + + COUNT( * )
----
6

skipif mysql # not compatible
query I rowsort label-4372
SELECT + 5 - - 17 / - 32 + + COUNT ( * )
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4373
SELECT ALL + 67 * + CAST( COALESCE ( - 5, - 41, - + 21 ) AS SIGNED ) AS col1
----
-335

skipif mysql # not compatible
query I rowsort label-4373
SELECT ALL + 67 * + CAST ( COALESCE ( - 5, - 41, - + 21 ) AS INTEGER ) AS col1
----
-335

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4374
SELECT ALL + 56 DIV + - 75 AS col1, + 34 * COUNT( * ) AS col0
----
0
34

skipif mysql # not compatible
query II rowsort label-4374
SELECT ALL + 56 / + - 75 AS col1, + 34 * COUNT ( * ) AS col0
----
0
34

query II rowsort
SELECT - 89 col2, + 18 AS col0
----
-89
18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4376
SELECT + + NULLIF ( + - 97, 36 ) + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4376
SELECT + + NULLIF ( + - 97, 36 ) + + CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT ALL - 53, - 29 + - 26 col2
----
-53
-55

query II rowsort
SELECT + 23 AS col2, 46 * 26 col0
----
23
1196

onlyif mysql # aggregate syntax: 
query I rowsort label-4379
SELECT - COUNT( * ) * - 70
----
70

skipif mysql # not compatible
query I rowsort label-4379
SELECT - COUNT ( * ) * - 70
----
70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4380
SELECT ALL - - 83 DIV - + 69 + - + 19 + - 88 - - COUNT( * ) DIV + + MIN( + 98 )
----
-108

skipif mysql # not compatible
query I rowsort label-4380
SELECT ALL - - 83 / - + 69 + - + 19 + - 88 - - COUNT ( * ) / + + MIN ( + 98 )
----
-108

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4381
SELECT DISTINCT + + 86, 53 * - 69 * + + CAST( - - COUNT( * ) AS SIGNED ) * + COUNT( * ) + + 14 + NULLIF ( COUNT( * ), COUNT( * ) + MAX( COALESCE ( 69, + 82 ) ) * + - COUNT( * ) + COUNT( * ) * + - NULLIF ( + ( + - MAX( + 58 ) ), - - AVG ( ALL + 21 ) - + 40 - 18 - + - 71 + - 0 * + + COALESCE ( ( - - 19 ), - 6 * + - 82, + 77 ) ) + - 9 * - + COUNT( ALL + 26 ) ) * - + 78 * + 43 AS col0
----
86
-6997

skipif mysql # not compatible
query II rowsort label-4381
SELECT DISTINCT + + 86, 53 * - 69 * + + CAST ( - - COUNT ( * ) AS INTEGER ) * + COUNT ( * ) + + 14 + NULLIF ( COUNT ( * ), COUNT ( * ) + MAX ( COALESCE ( 69, + 82 ) ) * + - COUNT ( * ) + COUNT ( * ) * + - NULLIF ( + ( + - MAX ( + 58 ) ), - - AVG ( ALL + 21 ) - + 40 - 18 - + - 71 + - 0 * + + COALESCE ( ( - - 19 ), - 6 * + - 82, + 77 ) ) + - 9 * - + COUNT ( ALL + 26 ) ) * - + 78 * + 43 AS col0
----
86
-6997

query II rowsort
SELECT + + 19, - 24 * - + 77 AS col0
----
19
1848

onlyif mysql # aggregate syntax: 
query I rowsort label-4383
SELECT DISTINCT + COALESCE ( 29, - - 23 * - COUNT( * ) )
----
29

skipif mysql # not compatible
query I rowsort label-4383
SELECT DISTINCT + COALESCE ( 29, - - 23 * - COUNT ( * ) )
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-4384
SELECT + ( - COALESCE ( + MAX( + 15 ), COUNT( * ), - 97 * + 83 + + 30 * - + 79 ) ) * 98 + - + 62 AS col0
----
-1532

skipif mysql # not compatible
query I rowsort label-4384
SELECT + ( - COALESCE ( + MAX ( + 15 ), COUNT ( * ), - 97 * + 83 + + 30 * - + 79 ) ) * 98 + - + 62 AS col0
----
-1532

onlyif mysql # aggregate syntax: 
query I rowsort label-4385
SELECT + 85 * + COUNT( * ) * 24 + + ( COUNT( * ) ) - - - ( - MIN( ALL - + 62 ) ) * + 3
----
1855

skipif mysql # not compatible
query I rowsort label-4385
SELECT + 85 * + COUNT ( * ) * 24 + + ( COUNT ( * ) ) - - - ( - MIN ( ALL - + 62 ) ) * + 3
----
1855

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4386
SELECT - COUNT( * ) + + CAST( NULL AS SIGNED ) AS col1, SUM( 29 ) + - 34 * 45 * + 67 * + ( - 38 )
----
NULL
3895409

skipif mysql # not compatible
query II rowsort label-4386
SELECT - COUNT ( * ) + + CAST ( NULL AS INTEGER ) AS col1, SUM ( 29 ) + - 34 * 45 * + 67 * + ( - 38 )
----
NULL
3895409

query II rowsort
SELECT ( + - 93 ) AS col2, 24
----
-93
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4388
SELECT + AVG ( + CAST( NULL AS SIGNED ) ) * + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4388
SELECT + AVG ( + CAST ( NULL AS INTEGER ) ) * + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4389
SELECT ( MIN( ALL + + 65 ) )
----
65

skipif mysql # not compatible
query I rowsort label-4389
SELECT ( MIN ( ALL + + 65 ) )
----
65

query I rowsort
SELECT ALL - 93 * + 4 + + 80 + + 37 * - + ( + 85 ) AS col0
----
-3437

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4391
SELECT 7 * + 26 * + CAST( NULL AS SIGNED ) + + + ( 96 ) + - 29 * 59 * 54 * + 51 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4391
SELECT 7 * + 26 * + CAST ( NULL AS INTEGER ) + + + ( 96 ) + - 29 * 59 * 54 * + 51 AS col2
----
NULL

query II rowsort
SELECT - 25 + + - 1 col0, 28
----
-26
28

onlyif mysql # aggregate syntax: 
query I rowsort label-4393
SELECT ALL - 77 * SUM( DISTINCT - - 48 ) + 16 AS col1
----
-3680

skipif mysql # not compatible
query I rowsort label-4393
SELECT ALL - 77 * SUM ( DISTINCT - - 48 ) + 16 AS col1
----
-3680

onlyif mysql # aggregate syntax: 
query I rowsort label-4394
SELECT CASE + NULLIF ( - COUNT( * ), COALESCE ( - ( - + 62 ), + - COUNT( * ) ) ) WHEN - + 66 THEN - + 70 * 26 + 66 + - ( + + 60 ) * + 65 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4394
SELECT CASE + NULLIF ( - COUNT ( * ), COALESCE ( - ( - + 62 ), + - COUNT ( * ) ) ) WHEN - + 66 THEN - + 70 * 26 + 66 + - ( + + 60 ) * + 65 END AS col1
----
NULL

query I rowsort
SELECT + 1 + - 32 * + - 33 * - 3
----
-3167

query I rowsort
SELECT 8 * - 76 + + - 10
----
-618

query I rowsort
SELECT + 19 * + 6
----
114

onlyif mysql # aggregate syntax: 
query I rowsort label-4398
SELECT - 89 + MIN( ALL - + 85 ) * + CASE + 10 WHEN - - 8 * + - ( 10 ) + - 40 * - 62 * COALESCE ( + - 8, - + 94 ) * 19 + - 33 THEN - 63 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4398
SELECT - 89 + MIN ( ALL - + 85 ) * + CASE + 10 WHEN - - 8 * + - ( 10 ) + - 40 * - 62 * COALESCE ( + - 8, - + 94 ) * 19 + - 33 THEN - 63 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4399
SELECT + 2 * + 60 - - COUNT( * ) col1
----
121

skipif mysql # not compatible
query I rowsort label-4399
SELECT + 2 * + 60 - - COUNT ( * ) col1
----
121

onlyif mysql # aggregate syntax: 
query I rowsort label-4400
SELECT - MAX( + 33 ) AS col2
----
-33

skipif mysql # not compatible
query I rowsort label-4400
SELECT - MAX ( + 33 ) AS col2
----
-33

onlyif mysql # DIV for integer division: 
query I rowsort label-4401
SELECT - 65 + + 1 DIV + - 41 + ( + 97 )
----
32

skipif mysql # not compatible
query I rowsort label-4401
SELECT - 65 + + 1 / + - 41 + ( + 97 )
----
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4402
SELECT ALL + 50 * 13 + - - ( CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4402
SELECT ALL + 50 * 13 + - - ( CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT DISTINCT ( - 62 ) AS col2
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-4404
SELECT ALL 48 * - 48 * - 58 - + NULLIF ( + NULLIF ( - 8, + NULLIF ( COUNT( * ), - 53 ) ), + + NULLIF ( 28, 95 ) + - 63 - 79 ) AS col2
----
133640

skipif mysql # not compatible
query I rowsort label-4404
SELECT ALL 48 * - 48 * - 58 - + NULLIF ( + NULLIF ( - 8, + NULLIF ( COUNT ( * ), - 53 ) ), + + NULLIF ( 28, 95 ) + - 63 - 79 ) AS col2
----
133640

onlyif mysql # aggregate syntax: 
query I rowsort label-4405
SELECT DISTINCT - 29 * + 39 * + 30 + - ( + CASE - COUNT( * ) WHEN - AVG ( 43 ) THEN + 29 * + + 20 WHEN - 44 - + + 62 THEN - - 78 + - 38 + COUNT( 2 ) ELSE NULL END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4405
SELECT DISTINCT - 29 * + 39 * + 30 + - ( + CASE - COUNT ( * ) WHEN - AVG ( 43 ) THEN + 29 * + + 20 WHEN - 44 - + + 62 THEN - - 78 + - 38 + COUNT ( 2 ) ELSE NULL END ) AS col0
----
NULL

query I rowsort
SELECT + 89 + + 70 AS col0
----
159

onlyif mysql # aggregate syntax: 
query I rowsort label-4407
SELECT + - 32 + COUNT( * ) + 86 * - COUNT( * ) AS col0
----
-117

skipif mysql # not compatible
query I rowsort label-4407
SELECT + - 32 + COUNT ( * ) + 86 * - COUNT ( * ) AS col0
----
-117

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4408
SELECT ALL - CAST( NULL AS SIGNED ) - 38 AS col1, COUNT( * )
----
NULL
1

skipif mysql # not compatible
query II rowsort label-4408
SELECT ALL - CAST ( NULL AS INTEGER ) - 38 AS col1, COUNT ( * )
----
NULL
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4409
SELECT - - 21 * ( + 38 ) * + COUNT( * )
----
798

skipif mysql # not compatible
query I rowsort label-4409
SELECT - - 21 * ( + 38 ) * + COUNT ( * )
----
798

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4410
SELECT - ( + 7 ), - COUNT( * ) * 22 DIV - 31 * 40 AS col0
----
-7
0

skipif mysql # not compatible
query II rowsort label-4410
SELECT - ( + 7 ), - COUNT ( * ) * 22 / - 31 * 40 AS col0
----
-7
0

query I rowsort
SELECT + 65 + 38 AS col2
----
103

query I rowsort
SELECT + COALESCE ( + - 29, + + 90 + + 3 ) * - 50 + + 92 + - + 5
----
1537

onlyif mysql # aggregate syntax: 
query I rowsort label-4413
SELECT ALL - COALESCE ( COUNT( * ), + 56 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-4413
SELECT ALL - COALESCE ( COUNT ( * ), + 56 ) AS col2
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4414
SELECT DISTINCT - MAX( - 13 ) * - - CAST( - CASE - COALESCE ( + 6, + 0 + - - 91, - ( + 41 ) + + - 77, - 69 ) WHEN ( - + 28 ) * - MIN( 93 ) + - - 62 * - 34 + 35 THEN 50 END AS SIGNED ) AS col0, 98 col2
----
NULL
98

skipif mysql # not compatible
query II rowsort label-4414
SELECT DISTINCT - MAX ( - 13 ) * - - CAST ( - CASE - COALESCE ( + 6, + 0 + - - 91, - ( + 41 ) + + - 77, - 69 ) WHEN ( - + 28 ) * - MIN ( 93 ) + - - 62 * - 34 + 35 THEN 50 END AS INTEGER ) AS col0, 98 col2
----
NULL
98

query I rowsort
SELECT + 28 + 47
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-4416
SELECT ALL SUM( ALL 16 ) AS col1
----
16

skipif mysql # not compatible
query I rowsort label-4416
SELECT ALL SUM ( ALL 16 ) AS col1
----
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4417
SELECT 36 DIV - CAST( + 10 AS SIGNED ) - COUNT( * )
----
-4

skipif mysql # not compatible
query I rowsort label-4417
SELECT 36 / - CAST ( + 10 AS INTEGER ) - COUNT ( * )
----
-4

query I rowsort
SELECT 77 * - 10 AS col0
----
-770

onlyif mysql # aggregate syntax: 
query II rowsort label-4419
SELECT + 83 col2, + 96 * - - ( 57 ) * - 7 - - COUNT( * ) AS col2
----
83
-38303

skipif mysql # not compatible
query II rowsort label-4419
SELECT + 83 col2, + 96 * - - ( 57 ) * - 7 - - COUNT ( * ) AS col2
----
83
-38303

onlyif mysql # aggregate syntax: 
query I rowsort label-4420
SELECT 21 + 45 + - COUNT( * ) + - 55 * + - 42 + - 52 AS col2
----
2323

skipif mysql # not compatible
query I rowsort label-4420
SELECT 21 + 45 + - COUNT ( * ) + - 55 * + - 42 + - 52 AS col2
----
2323

onlyif mysql # aggregate syntax: 
query II rowsort label-4421
SELECT + 38, 36 + + CASE - 96 WHEN 23 THEN + + 93 + + COUNT( * ) END - + COUNT( * ) + + - MAX( 50 ) AS col2
----
38
NULL

skipif mysql # not compatible
query II rowsort label-4421
SELECT + 38, 36 + + CASE - 96 WHEN 23 THEN + + 93 + + COUNT ( * ) END - + COUNT ( * ) + + - MAX ( 50 ) AS col2
----
38
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4422
SELECT SUM( - + 64 ) DIV - - NULLIF ( 9, 32 * - CASE + 63 WHEN - 22 THEN + - 49 END ) + + 65 + - + 34 AS col0
----
24

skipif mysql # not compatible
query I rowsort label-4422
SELECT SUM ( - + 64 ) / - - NULLIF ( 9, 32 * - CASE + 63 WHEN - 22 THEN + - 49 END ) + + 65 + - + 34 AS col0
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-4423
SELECT ALL - ( + + 4 ) + + 40 + - MIN( + 46 )
----
-10

skipif mysql # not compatible
query I rowsort label-4423
SELECT ALL - ( + + 4 ) + + 40 + - MIN ( + 46 )
----
-10

onlyif mysql # DIV for integer division: 
query I rowsort label-4424
SELECT DISTINCT - 20 DIV 5
----
-4

skipif mysql # not compatible
query I rowsort label-4424
SELECT DISTINCT - 20 / 5
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-4425
SELECT DISTINCT 96 + - SUM( + 22 )
----
74

skipif mysql # not compatible
query I rowsort label-4425
SELECT DISTINCT 96 + - SUM ( + 22 )
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-4426
SELECT ALL - SUM( - 53 ) AS col2
----
53

skipif mysql # not compatible
query I rowsort label-4426
SELECT ALL - SUM ( - 53 ) AS col2
----
53

query I rowsort
SELECT 30 * - 83 AS col1
----
-2490

onlyif mysql # aggregate syntax: 
query I rowsort label-4428
SELECT ALL - 75 + - COUNT( * ) AS col1
----
-76

skipif mysql # not compatible
query I rowsort label-4428
SELECT ALL - 75 + - COUNT ( * ) AS col1
----
-76

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4429
SELECT 39 DIV + 81 - COUNT( * ) + + - 77 - - 25 * 33 * + 59 + + 16 - 62 AS col1
----
48551

skipif mysql # not compatible
query I rowsort label-4429
SELECT 39 / + 81 - COUNT ( * ) + + - 77 - - 25 * 33 * + 59 + + 16 - 62 AS col1
----
48551

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4430
SELECT 23 AS col1, MIN( - 17 ) DIV 62 * 58 AS col2
----
23
0

skipif mysql # not compatible
query II rowsort label-4430
SELECT 23 AS col1, MIN ( - 17 ) / 62 * 58 AS col2
----
23
0

query I rowsort
SELECT DISTINCT - 31 * - - 65
----
-2015

query I rowsort
SELECT ALL + 76 - - 28 - - 67
----
171

query II rowsort
SELECT + 75, 93 + - + 14 - - - 15 + 8 AS col2
----
75
72

onlyif mysql # aggregate syntax: 
query I rowsort label-4434
SELECT ALL - COUNT( - + ( - - 74 ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4434
SELECT ALL - COUNT ( - + ( - - 74 ) ) AS col0
----
-1

query I rowsort
SELECT DISTINCT - 89 * + 58 AS col1
----
-5162

onlyif mysql # aggregate syntax: 
query I rowsort label-4436
SELECT ALL SUM( - - 10 )
----
10

skipif mysql # not compatible
query I rowsort label-4436
SELECT ALL SUM ( - - 10 )
----
10

query I rowsort
SELECT 8 + - 10 col0
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-4438
SELECT - MAX( DISTINCT - 42 )
----
42

skipif mysql # not compatible
query I rowsort label-4438
SELECT - MAX ( DISTINCT - 42 )
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-4439
SELECT ALL - + COUNT( * ) - 62 col0
----
-63

skipif mysql # not compatible
query I rowsort label-4439
SELECT ALL - + COUNT ( * ) - 62 col0
----
-63

query I rowsort
SELECT - 26 * - - 61 AS col2
----
-1586

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4441
SELECT 54 * - + CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4441
SELECT 54 * - + CAST ( NULL AS INTEGER ) col2
----
NULL

query I rowsort
SELECT 56 - 12
----
44

onlyif mysql # aggregate syntax: 
query II rowsort label-4443
SELECT - 85 AS col2, + 12 * + ( + - MAX( DISTINCT - 62 ) )
----
-85
744

skipif mysql # not compatible
query II rowsort label-4443
SELECT - 85 AS col2, + 12 * + ( + - MAX ( DISTINCT - 62 ) )
----
-85
744

query I rowsort
SELECT - 53 + + 23
----
-30

onlyif mysql # DIV for integer division: 
query I rowsort label-4445
SELECT DISTINCT + - 74 DIV 25
----
-2

skipif mysql # not compatible
query I rowsort label-4445
SELECT DISTINCT + - 74 / 25
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-4446
SELECT DISTINCT COUNT( * ) * + 24
----
24

skipif mysql # not compatible
query I rowsort label-4446
SELECT DISTINCT COUNT ( * ) * + 24
----
24

query I rowsort
SELECT ALL + 23 * - 29
----
-667

query I rowsort
SELECT ALL - 49 * 34
----
-1666

query I rowsort
SELECT 2 * 52 * 56 * 82 AS col2
----
477568

query I rowsort
SELECT + 16 + - 43 + 55 + + 39 * 12 * - 77 * 57 + + 71
----
-2053953

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4451
SELECT ALL COALESCE ( + + 40, COUNT( * ) ), + 5 DIV + 74 AS col1
----
40
0

skipif mysql # not compatible
query II rowsort label-4451
SELECT ALL COALESCE ( + + 40, COUNT ( * ) ), + 5 / + 74 AS col1
----
40
0

query I rowsort
SELECT ALL 9 + + 31 AS col1
----
40

query I rowsort
SELECT 86 * 39 * - 71 AS col0
----
-238134

query I rowsort
SELECT 22 * 96
----
2112

onlyif mysql # aggregate syntax: 
query I rowsort label-4455
SELECT DISTINCT MAX( - 9 ) AS col2
----
-9

skipif mysql # not compatible
query I rowsort label-4455
SELECT DISTINCT MAX ( - 9 ) AS col2
----
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4456
SELECT COUNT( - 55 ), - CAST( NULL AS SIGNED ) AS col0
----
1
NULL

skipif mysql # not compatible
query II rowsort label-4456
SELECT COUNT ( - 55 ), - CAST ( NULL AS INTEGER ) AS col0
----
1
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4457
SELECT ALL - CAST( NULL AS SIGNED ) * - 37 + - - 70
----
NULL

skipif mysql # not compatible
query I rowsort label-4457
SELECT ALL - CAST ( NULL AS INTEGER ) * - 37 + - - 70
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4458
SELECT + MAX( ALL 56 ) AS col1
----
56

skipif mysql # not compatible
query I rowsort label-4458
SELECT + MAX ( ALL 56 ) AS col1
----
56

onlyif mysql # aggregate syntax: 
query II rowsort label-4459
SELECT ALL + 38 * + 15 + - - 22 * + + 29 AS col1, - CASE + + COUNT( * ) WHEN - 71 THEN NULL ELSE - COUNT( ALL 42 ) - 25 + + 7 END AS col2
----
1208
19

skipif mysql # not compatible
query II rowsort label-4459
SELECT ALL + 38 * + 15 + - - 22 * + + 29 AS col1, - CASE + + COUNT ( * ) WHEN - 71 THEN NULL ELSE - COUNT ( ALL 42 ) - 25 + + 7 END AS col2
----
1208
19

onlyif mysql # aggregate syntax: 
query I rowsort label-4460
SELECT ALL - 16 * + + MAX( + 92 ) * + 50 + + 74 - 99 + + 13
----
-73612

skipif mysql # not compatible
query I rowsort label-4460
SELECT ALL - 16 * + + MAX ( + 92 ) * + 50 + + 74 - 99 + + 13
----
-73612

onlyif mysql # aggregate syntax: 
query I rowsort label-4461
SELECT DISTINCT COUNT( * ) * 62
----
62

skipif mysql # not compatible
query I rowsort label-4461
SELECT DISTINCT COUNT ( * ) * 62
----
62

query I rowsort
SELECT 8 * + + COALESCE ( + 57, + ( - + 87 ), 1 ) - + 74 AS col1
----
382

query I rowsort
SELECT 50 * + 82 * + 39 AS col1
----
159900

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4464
SELECT ALL CASE + 52 WHEN 1 * + 36 + - 64 THEN + NULLIF ( - 86, - - COUNT( * ) ) / - - 15 WHEN + + 84 THEN NULL WHEN - + 39 + 90 THEN - - 27 END * - ( + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4464
SELECT ALL CASE + 52 WHEN 1 * + 36 + - 64 THEN + NULLIF ( - 86, - - COUNT ( * ) ) / - - 15 WHEN + + 84 THEN NULL WHEN - + 39 + 90 THEN - - 27 END * - ( + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4465
SELECT 56 DIV - SUM( DISTINCT - 51 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4465
SELECT 56 / - SUM ( DISTINCT - 51 ) AS col0
----
1

query I rowsort
SELECT 17 * + 27 + + 52
----
511

onlyif mysql # aggregate syntax: 
query I rowsort label-4467
SELECT ALL 78 - - - ( - + 48 ) * 50 + - COUNT( ALL 63 ) col2
----
2477

skipif mysql # not compatible
query I rowsort label-4467
SELECT ALL 78 - - - ( - + 48 ) * 50 + - COUNT ( ALL 63 ) col2
----
2477

query I rowsort
SELECT - 94 * 2 + + 62
----
-126

onlyif mysql # DIV for integer division: 
query II rowsort label-4469
SELECT DISTINCT + 72 DIV 44 AS col2, 47 AS col0
----
1
47

skipif mysql # not compatible
query II rowsort label-4469
SELECT DISTINCT + 72 / 44 AS col2, 47 AS col0
----
1
47

query I rowsort
SELECT + NULLIF ( 82, - 75 )
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-4471
SELECT 92 + - COUNT( * ) + 82 * - - 26 * + 55 + + - 40
----
117311

skipif mysql # not compatible
query I rowsort label-4471
SELECT 92 + - COUNT ( * ) + 82 * - - 26 * + 55 + + - 40
----
117311

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4472
SELECT DISTINCT - + CASE - 44 WHEN + 80 THEN + CASE 19 WHEN - ( ( - + COUNT( * ) ) ) THEN - NULLIF ( - CAST( - 85 AS DECIMAL ), + COUNT( * ) ) - + 47 * - 8 * + 35 * - 28 END END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4472
SELECT DISTINCT - + CASE - 44 WHEN + 80 THEN + CASE 19 WHEN - ( ( - + COUNT ( * ) ) ) THEN - NULLIF ( - CAST ( - 85 AS REAL ), + COUNT ( * ) ) - + 47 * - 8 * + 35 * - 28 END END col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4473
SELECT 4 * - + 75 + + ( 86 ) - CAST( + 17 AS SIGNED ) * 23 AS col2, 61
----
-605
61

skipif mysql # not compatible
query II rowsort label-4473
SELECT 4 * - + 75 + + ( 86 ) - CAST ( + 17 AS INTEGER ) * 23 AS col2, 61
----
-605
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4474
SELECT 69 * + 3 AS col0, 21 * CAST( + - COUNT( * ) AS SIGNED ) AS col0
----
207
-21

skipif mysql # not compatible
query II rowsort label-4474
SELECT 69 * + 3 AS col0, 21 * CAST ( + - COUNT ( * ) AS INTEGER ) AS col0
----
207
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-4475
SELECT + COUNT( * ) + - 58 AS col1
----
-57

skipif mysql # not compatible
query I rowsort label-4475
SELECT + COUNT ( * ) + - 58 AS col1
----
-57

query I rowsort
SELECT + 85 * 43 + - - 27 col0
----
3682

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4477
SELECT - - COUNT( * ) * - CASE - 35 WHEN - + 5 / + - 5 + + 85 THEN CAST( NULL AS SIGNED ) WHEN + ( COALESCE ( 46, - 61 ) ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4477
SELECT - - COUNT ( * ) * - CASE - 35 WHEN - + 5 / + - 5 + + 85 THEN CAST ( NULL AS INTEGER ) WHEN + ( COALESCE ( 46, - 61 ) ) THEN NULL END
----
NULL

query I rowsort
SELECT ALL + 75 + - 35 col1
----
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4479
SELECT - CAST( MIN( DISTINCT - 97 ) AS SIGNED ) AS col0
----
97

skipif mysql # not compatible
query I rowsort label-4479
SELECT - CAST ( MIN ( DISTINCT - 97 ) AS INTEGER ) AS col0
----
97

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4480
SELECT ALL + 94 + - 99 AS col0, CAST( - 55 AS SIGNED ) * - 0
----
-5
0

skipif mysql # not compatible
query II rowsort label-4480
SELECT ALL + 94 + - 99 AS col0, CAST ( - 55 AS INTEGER ) * - 0
----
-5
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4481
SELECT - CAST( NULL AS SIGNED ) + - 46 AS col0, 81
----
NULL
81

skipif mysql # not compatible
query II rowsort label-4481
SELECT - CAST ( NULL AS INTEGER ) + - 46 AS col0, 81
----
NULL
81

onlyif mysql # aggregate syntax: 
query I rowsort label-4482
SELECT - - 86 + - - COUNT( 41 ) - 88 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4482
SELECT - - 86 + - - COUNT ( 41 ) - 88 AS col0
----
-1

query I rowsort
SELECT - 54 * - 29 col1
----
1566

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4484
SELECT - + COUNT( * ) + + + 48 DIV + - 65
----
-1

skipif mysql # not compatible
query I rowsort label-4484
SELECT - + COUNT ( * ) + + + 48 / + - 65
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4485
SELECT + - COUNT( * ) * - 99 * + 10 + + + 61
----
1051

skipif mysql # not compatible
query I rowsort label-4485
SELECT + - COUNT ( * ) * - 99 * + 10 + + + 61
----
1051

query I rowsort
SELECT DISTINCT + 1 + 90 * + + 12 col1
----
1081

query II rowsort
SELECT 32 AS col2, + 10 * 73 AS col1
----
32
730

query I rowsort
SELECT ALL + 48 / - CASE - + 70 WHEN - 37 THEN NULL WHEN + - 25 THEN NULL WHEN 72 / - 14 + + - 84 THEN 27 * + CASE + 39 WHEN - 23 THEN + 60 END * 65 * - 99 - + 80 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4489
SELECT ALL COUNT( * ) * - 64 AS col1
----
-64

skipif mysql # not compatible
query I rowsort label-4489
SELECT ALL COUNT ( * ) * - 64 AS col1
----
-64

query I rowsort
SELECT - 50 + - 10
----
-60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4491
SELECT ALL - MIN( DISTINCT - 67 ) + - 46 * - + 29 + ( 45 ) + - 15 DIV + + 63 AS col2
----
1446

skipif mysql # not compatible
query I rowsort label-4491
SELECT ALL - MIN ( DISTINCT - 67 ) + - 46 * - + 29 + ( 45 ) + - 15 / + + 63 AS col2
----
1446

query I rowsort
SELECT ALL + 21 * 0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4493
SELECT + COUNT( * ) + - 62 AS col1
----
-61

skipif mysql # not compatible
query I rowsort label-4493
SELECT + COUNT ( * ) + - 62 AS col1
----
-61

query I rowsort
SELECT DISTINCT ( - - 36 )
----
36

query I rowsort
SELECT ALL - 48 * + 17
----
-816

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4496
SELECT - 14 * - COUNT( * ) DIV + + 79 * 50
----
0

skipif mysql # not compatible
query I rowsort label-4496
SELECT - 14 * - COUNT ( * ) / + + 79 * 50
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4497
SELECT + 96 + + - NULLIF ( + COUNT( * ), + 29 )
----
95

skipif mysql # not compatible
query I rowsort label-4497
SELECT + 96 + + - NULLIF ( + COUNT ( * ), + 29 )
----
95

query I rowsort
SELECT + 84 * - ( - ( + 66 ) )
----
5544

query I rowsort
SELECT DISTINCT + ( + - 45 ) AS col2
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-4500
SELECT + COUNT( * ) * + - 88
----
-88

skipif mysql # not compatible
query I rowsort label-4500
SELECT + COUNT ( * ) * + - 88
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-4501
SELECT ALL 30 * - COUNT( * )
----
-30

skipif mysql # not compatible
query I rowsort label-4501
SELECT ALL 30 * - COUNT ( * )
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-4502
SELECT NULLIF ( - 83, + COUNT( * ) )
----
-83

skipif mysql # not compatible
query I rowsort label-4502
SELECT NULLIF ( - 83, + COUNT ( * ) )
----
-83

onlyif mysql # DIV for integer division: 
query I rowsort label-4503
SELECT - 24 - 66 + - 55 DIV - 43 AS col0
----
-89

skipif mysql # not compatible
query I rowsort label-4503
SELECT - 24 - 66 + - 55 / - 43 AS col0
----
-89

query I rowsort
SELECT ALL + 39 * NULLIF ( 10, - + 73 ) * + 32
----
12480

onlyif mysql # aggregate syntax: 
query II rowsort label-4505
SELECT ALL 58 * + + 63 + - COUNT( * ) * + 11 * COUNT( * ) AS col0, 31 + COALESCE ( CASE ( SUM( 90 ) ) WHEN 61 + 29 THEN - COUNT( * ) WHEN - 61 THEN NULL END, 19, - 61, - COUNT( * ) )
----
3643
30

skipif mysql # not compatible
query II rowsort label-4505
SELECT ALL 58 * + + 63 + - COUNT ( * ) * + 11 * COUNT ( * ) AS col0, 31 + COALESCE ( CASE ( SUM ( 90 ) ) WHEN 61 + 29 THEN - COUNT ( * ) WHEN - 61 THEN NULL END, 19, - 61, - COUNT ( * ) )
----
3643
30

query II rowsort
SELECT DISTINCT + + 79, 56 AS col2
----
79
56

query I rowsort
SELECT DISTINCT NULLIF ( - 27, + - 32 ) * - ( + + 84 ) * 67 + - 58
----
151898

query I rowsort
SELECT ALL - 3 * 11 + - - 82
----
49

query I rowsort
SELECT + 71 * 49 AS col2
----
3479

onlyif mysql # aggregate syntax: 
query I rowsort label-4510
SELECT - MIN( + 4 )
----
-4

skipif mysql # not compatible
query I rowsort label-4510
SELECT - MIN ( + 4 )
----
-4

query I rowsort
SELECT ALL 45 * 30 + + 59 + - - 51 + 92 AS col0
----
1552

onlyif mysql # aggregate syntax: 
query I rowsort label-4512
SELECT + - SUM( + 30 ) + + COALESCE ( - 12, - - 71 ) AS col2
----
-42

skipif mysql # not compatible
query I rowsort label-4512
SELECT + - SUM ( + 30 ) + + COALESCE ( - 12, - - 71 ) AS col2
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-4513
SELECT + + 82 + 62 + + + MIN( ALL 64 )
----
208

skipif mysql # not compatible
query I rowsort label-4513
SELECT + + 82 + 62 + + + MIN ( ALL 64 )
----
208

query I rowsort
SELECT ( + 62 ) col0
----
62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4515
SELECT ALL + - ( - 78 ) * - + 62 * CAST( NULL AS SIGNED ) * - + 95 / - + 7
----
NULL

skipif mysql # not compatible
query I rowsort label-4515
SELECT ALL + - ( - 78 ) * - + 62 * CAST ( NULL AS INTEGER ) * - + 95 / - + 7
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4516
SELECT DISTINCT + + 19 * - - COUNT( - 22 ) * + CAST( NULL AS SIGNED ) + + 2 + 84 + + 47 * + 75 * COALESCE ( 63, - COALESCE ( CAST( NULL AS SIGNED ), + + 16 * - - COALESCE ( + 95, + 60, 29 * - - 42 * + - 58 / 2 ) * + 22 + 55 + - 80 * 73 / - AVG ( ALL 86 ), - - 78 ) * + 92 / 64 ) * - ( + ( - 50 ) ) / + 68 + - ( 91 ) / + - ( - - 96 ) * + 93 * - - ( - 24 ), - COUNT( * ) col0
----
NULL
-1

skipif mysql # not compatible
query II rowsort label-4516
SELECT DISTINCT + + 19 * - - COUNT ( - 22 ) * + CAST ( NULL AS INTEGER ) + + 2 + 84 + + 47 * + 75 * COALESCE ( 63, - COALESCE ( CAST ( NULL AS INTEGER ), + + 16 * - - COALESCE ( + 95, + 60, 29 * - - 42 * + - 58 / 2 ) * + 22 + 55 + - 80 * 73 / - AVG ( ALL 86 ), - - 78 ) * + 92 / 64 ) * - ( + ( - 50 ) ) / + 68 + - ( 91 ) / + - ( - - 96 ) * + 93 * - - ( - 24 ), - COUNT ( * ) col0
----
NULL
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4517
SELECT ALL ( + - COALESCE ( + - CASE MIN( ALL - 78 ) WHEN COALESCE ( - - 9, - 69 * 14 * + 52 + + ( + COUNT( DISTINCT + 15 ) ), + 50 ) THEN - 37 WHEN - 29 THEN NULL END, - MAX( ALL + 11 ) + + - 70 ) )
----
81

skipif mysql # not compatible
query I rowsort label-4517
SELECT ALL ( + - COALESCE ( + - CASE MIN ( ALL - 78 ) WHEN COALESCE ( - - 9, - 69 * 14 * + 52 + + ( + COUNT ( DISTINCT + 15 ) ), + 50 ) THEN - 37 WHEN - 29 THEN NULL END, - MAX ( ALL + 11 ) + + - 70 ) )
----
81

query I rowsort
SELECT - 9 + - - 73
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-4519
SELECT + 97 * + + COUNT( * )
----
97

skipif mysql # not compatible
query I rowsort label-4519
SELECT + 97 * + + COUNT ( * )
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4520
SELECT - COUNT( * ) * + - 77
----
77

skipif mysql # not compatible
query I rowsort label-4520
SELECT - COUNT ( * ) * + - 77
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-4521
SELECT - MIN( DISTINCT + + 92 ) col1
----
-92

skipif mysql # not compatible
query I rowsort label-4521
SELECT - MIN ( DISTINCT + + 92 ) col1
----
-92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4522
SELECT DISTINCT + 44 - CAST( + 45 AS SIGNED )
----
-1

skipif mysql # not compatible
query I rowsort label-4522
SELECT DISTINCT + 44 - CAST ( + 45 AS INTEGER )
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-4523
SELECT ALL - ( - 65 ) DIV - 60 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-4523
SELECT ALL - ( - 65 ) / - 60 AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4524
SELECT DISTINCT CASE COUNT( * ) WHEN 35 THEN NULL WHEN + 12 THEN 53 + COUNT( + 27 ) WHEN + + 47 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4524
SELECT DISTINCT CASE COUNT ( * ) WHEN 35 THEN NULL WHEN + 12 THEN 53 + COUNT ( + 27 ) WHEN + + 47 THEN NULL END
----
NULL

query II rowsort
SELECT - 57, 93 col1
----
-57
93

onlyif mysql # DIV for integer division: 
query I rowsort label-4526
SELECT DISTINCT - 99 DIV - 18
----
5

skipif mysql # not compatible
query I rowsort label-4526
SELECT DISTINCT - 99 / - 18
----
5

onlyif mysql # DIV for integer division: 
query I rowsort label-4527
SELECT - 19 DIV 35 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4527
SELECT - 19 / 35 AS col1
----
0

query II rowsort
SELECT ALL + 26, - 55 AS col2
----
26
-55

query I rowsort
SELECT - 7 * - 82 * - 8 col0
----
-4592

onlyif mysql # aggregate syntax: 
query I rowsort label-4530
SELECT - 86 * - - 30 + SUM( 47 )
----
-2533

skipif mysql # not compatible
query I rowsort label-4530
SELECT - 86 * - - 30 + SUM ( 47 )
----
-2533

onlyif mysql # aggregate syntax: 
query I rowsort label-4531
SELECT + COALESCE ( + COUNT( * ), - 18 * CASE + + 0 WHEN - + 96 + + 33 - + - 29 * - + 44 THEN NULL WHEN + - ( 68 ) THEN 77 END ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4531
SELECT + COALESCE ( + COUNT ( * ), - 18 * CASE + + 0 WHEN - + 96 + + 33 - + - 29 * - + 44 THEN NULL WHEN + - ( 68 ) THEN 77 END ) AS col0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4532
SELECT 18 DIV - + 37 + + 0
----
0

skipif mysql # not compatible
query I rowsort label-4532
SELECT 18 / - + 37 + + 0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4533
SELECT COUNT( * ) * + COALESCE ( NULLIF ( + + 11, + CAST( NULL AS SIGNED ) ), - - 93, + + 92 DIV - + 82 * - MIN( ( + 32 ) ) DIV - 0 + 61, - 69 )
----
11

skipif mysql # not compatible
query I rowsort label-4533
SELECT COUNT ( * ) * + COALESCE ( NULLIF ( + + 11, + CAST ( NULL AS INTEGER ) ), - - 93, + + 92 / - + 82 * - MIN ( ( + 32 ) ) / - 0 + 61, - 69 )
----
11

query I rowsort
SELECT + 6 + + + 34
----
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-4535
SELECT ALL - 11 AS col1, CAST( NULL AS SIGNED ) - + CASE MIN( + 52 ) WHEN ( + COUNT( * ) ) THEN - 53 WHEN 35 - - - 65 - - 90 + - 31 * - - COUNT( * ) * + + CAST( NULL AS DECIMAL ) - + 94 + - 54 + + ( - 64 ) + + 5 * - - 43 THEN COUNT( * ) * + - ( - 2 ) + 70 END + 21 AS col0
----
-11
NULL

skipif mysql # not compatible
query II rowsort label-4535
SELECT ALL - 11 AS col1, CAST ( NULL AS INTEGER ) - + CASE MIN ( + 52 ) WHEN ( + COUNT ( * ) ) THEN - 53 WHEN 35 - - - 65 - - 90 + - 31 * - - COUNT ( * ) * + + CAST ( NULL AS REAL ) - + 94 + - 54 + + ( - 64 ) + + 5 * - - 43 THEN COUNT ( * ) * + - ( - 2 ) + 70 END + 21 AS col0
----
-11
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4536
SELECT 13 * NULLIF ( + - 16, + 36 - - - COUNT( * ) ) - + CAST( NULL AS SIGNED ) + + COUNT( * ) * - 90 + 35 AS col2, + NULLIF ( - CASE - ( + 82 ) WHEN 48 * + - 16 * - 53 * + SUM( ALL + 75 ) THEN NULL ELSE + SUM( DISTINCT ( - + CAST( NULL AS SIGNED ) ) ) END, + - CAST( 10 AS SIGNED ) ) + - + MAX( - + 52 ) + + 68 * CAST( NULL AS SIGNED ) AS col1
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-4536
SELECT 13 * NULLIF ( + - 16, + 36 - - - COUNT ( * ) ) - + CAST ( NULL AS INTEGER ) + + COUNT ( * ) * - 90 + 35 AS col2, + NULLIF ( - CASE - ( + 82 ) WHEN 48 * + - 16 * - 53 * + SUM ( ALL + 75 ) THEN NULL ELSE + SUM ( DISTINCT ( - + CAST ( NULL AS INTEGER ) ) ) END, + - CAST ( 10 AS INTEGER ) ) + - + MAX ( - + 52 ) + + 68 * CAST ( NULL AS INTEGER ) AS col1
----
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4537
SELECT 1 * - COUNT( - 74 ) * 34 AS col1, 44 DIV + + 25 AS col0
----
-34
1

skipif mysql # not compatible
query II rowsort label-4537
SELECT 1 * - COUNT ( - 74 ) * 34 AS col1, 44 / + + 25 AS col0
----
-34
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4538
SELECT ALL CAST( COUNT( * ) AS SIGNED ) + + COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-4538
SELECT ALL CAST ( COUNT ( * ) AS INTEGER ) + + COUNT ( * )
----
2

query I rowsort
SELECT + 13 * + 49 + + 30
----
667

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4540
SELECT - ( - - 38 ), CAST( + - 2 AS SIGNED ) * + 53 + + 99 col0
----
-38
-7

skipif mysql # not compatible
query II rowsort label-4540
SELECT - ( - - 38 ), CAST ( + - 2 AS INTEGER ) * + 53 + + 99 col0
----
-38
-7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4541
SELECT DISTINCT NULLIF ( - - ( 97 ), 42 + 51 ) + - COALESCE ( - COUNT( * ), - 30 ) DIV COUNT( * )
----
98

skipif mysql # not compatible
query I rowsort label-4541
SELECT DISTINCT NULLIF ( - - ( 97 ), 42 + 51 ) + - COALESCE ( - COUNT ( * ), - 30 ) / COUNT ( * )
----
98

query II rowsort
SELECT 11 * + 15, 48 col2
----
165
48

query II rowsort
SELECT 97, 27 AS col0
----
97
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4544
SELECT - + CASE + 87 WHEN - - ( + 56 ) THEN + + MAX( DISTINCT - ( - - 71 ) ) * + - COUNT( * ) * - - CAST( + 17 AS DECIMAL ) * 23 WHEN + - NULLIF ( - + 11, - 38 ) THEN NULL END * + 71 + - 90 * 29 + - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4544
SELECT - + CASE + 87 WHEN - - ( + 56 ) THEN + + MAX ( DISTINCT - ( - - 71 ) ) * + - COUNT ( * ) * - - CAST ( + 17 AS REAL ) * 23 WHEN + - NULLIF ( - + 11, - 38 ) THEN NULL END * + 71 + - 90 * 29 + - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT ALL + 92 + + 94 AS col0
----
186

onlyif mysql # DIV for integer division: 
query II rowsort label-4546
SELECT + 36 DIV 35 AS col1, 96
----
1
96

skipif mysql # not compatible
query II rowsort label-4546
SELECT + 36 / 35 AS col1, 96
----
1
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4547
SELECT 6 * + 15 * + 20 + ( + CAST( - + 41 AS SIGNED ) ) * 83 + + ( 30 ) + + 62 * - SUM( ALL - 81 )
----
3449

skipif mysql # not compatible
query I rowsort label-4547
SELECT 6 * + 15 * + 20 + ( + CAST ( - + 41 AS INTEGER ) ) * 83 + + ( 30 ) + + 62 * - SUM ( ALL - 81 )
----
3449

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-4548
SELECT ALL CASE + COUNT( * ) WHEN - CASE - COUNT( ALL - 28 ) WHEN - 15 - + 60 THEN + + 41 WHEN + + 29 THEN CAST( NULL AS DECIMAL ) ELSE + + 95 + - 76 * - - 87 END * 35 THEN - - CASE + 45 WHEN + 81 + - AVG ( ALL 5 ) - + 64 * 61 + - + 2 * + + COUNT( * ) - 30 + COUNT( * ) * - ( + AVG ( ALL - 76 ) ) THEN + 10 ELSE 29 END WHEN + 66 - - 18 * + COALESCE ( + 89, - 74, + + 39 ) + + 14 THEN NULL END * + + 74 + - 39 AS col1, + COUNT( * ) + - ( + 12 ) AS col0
----
NULL
-11

skipif mysql # not compatible
query II rowsort label-4548
SELECT ALL CASE + COUNT ( * ) WHEN - CASE - COUNT ( ALL - 28 ) WHEN - 15 - + 60 THEN + + 41 WHEN + + 29 THEN CAST ( NULL AS REAL ) ELSE + + 95 + - 76 * - - 87 END * 35 THEN - - CASE + 45 WHEN + 81 + - AVG ( ALL 5 ) - + 64 * 61 + - + 2 * + + COUNT ( * ) - 30 + COUNT ( * ) * - ( + AVG ( ALL - 76 ) ) THEN + 10 ELSE 29 END WHEN + 66 - - 18 * + COALESCE ( + 89, - 74, + + 39 ) + + 14 THEN NULL END * + + 74 + - 39 AS col1, + COUNT ( * ) + - ( + 12 ) AS col0
----
NULL
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-4549
SELECT + MAX( 13 )
----
13

skipif mysql # not compatible
query I rowsort label-4549
SELECT + MAX ( 13 )
----
13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4550
SELECT ALL CAST( NULL AS SIGNED ) + 23 + - + 70 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4550
SELECT ALL CAST ( NULL AS INTEGER ) + 23 + - + 70 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4551
SELECT DISTINCT - 73 * + - 44 AS col0, + 16 + + COUNT( * )
----
3212
17

skipif mysql # not compatible
query II rowsort label-4551
SELECT DISTINCT - 73 * + - 44 AS col0, + 16 + + COUNT ( * )
----
3212
17

onlyif mysql # aggregate syntax: 
query I rowsort label-4552
SELECT ALL COUNT( * ) - 44 col2
----
-43

skipif mysql # not compatible
query I rowsort label-4552
SELECT ALL COUNT ( * ) - 44 col2
----
-43

onlyif mysql # DIV for integer division: 
query II rowsort label-4553
SELECT - 72 * 28 col1, 43 DIV + 82 AS col2
----
-2016
0

skipif mysql # not compatible
query II rowsort label-4553
SELECT - 72 * 28 col1, 43 / + 82 AS col2
----
-2016
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4554
SELECT - - CAST( + - 46 AS SIGNED )
----
-46

skipif mysql # not compatible
query I rowsort label-4554
SELECT - - CAST ( + - 46 AS INTEGER )
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-4555
SELECT ( + + 88 ) * + COUNT( * ) AS col2
----
88

skipif mysql # not compatible
query I rowsort label-4555
SELECT ( + + 88 ) * + COUNT ( * ) AS col2
----
88

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4556
SELECT 5 DIV + + COUNT( * )
----
5

skipif mysql # not compatible
query I rowsort label-4556
SELECT 5 / + + COUNT ( * )
----
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4557
SELECT 56 - 75 * + 46 + + CASE 55 WHEN 51 + CAST( NULL AS SIGNED ) * - + ( + 26 ) THEN - + 37 + + 30 * 98 WHEN + ( - 77 ) THEN NULL WHEN 22 / - 46 THEN + 80 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4557
SELECT 56 - 75 * + 46 + + CASE 55 WHEN 51 + CAST ( NULL AS INTEGER ) * - + ( + 26 ) THEN - + 37 + + 30 * 98 WHEN + ( - 77 ) THEN NULL WHEN 22 / - 46 THEN + 80 ELSE NULL END
----
NULL

query I rowsort
SELECT 40 * - 84 * - + 81
----
272160

query II rowsort
SELECT ALL - 85 * + 44 col1, - 96
----
-3740
-96

onlyif mysql # aggregate syntax: 
query II rowsort label-4560
SELECT 46 + - - MAX( 72 ), ( NULLIF ( + + MIN( 53 ), - 95 + - 3 ) ) AS col1
----
118
53

skipif mysql # not compatible
query II rowsort label-4560
SELECT 46 + - - MAX ( 72 ), ( NULLIF ( + + MIN ( 53 ), - 95 + - 3 ) ) AS col1
----
118
53

query I rowsort
SELECT DISTINCT 66 * 13
----
858

onlyif mysql # aggregate syntax: 
query I rowsort label-4562
SELECT 56 + + - COUNT( * ) AS col2
----
55

skipif mysql # not compatible
query I rowsort label-4562
SELECT 56 + + - COUNT ( * ) AS col2
----
55

query I rowsort
SELECT 65 + - - 86 AS col2
----
151

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4564
SELECT ALL - 86 * 86 DIV + SUM( + 31 )
----
-238

skipif mysql # not compatible
query I rowsort label-4564
SELECT ALL - 86 * 86 / + SUM ( + 31 )
----
-238

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4565
SELECT DISTINCT - NULLIF ( - 72, - AVG ( - 67 ) / - 81 + + COUNT( * ) + 58 * COUNT( - - 19 ) * - + CAST( NULL AS SIGNED ) ) AS col2
----
72

skipif mysql # not compatible
query I rowsort label-4565
SELECT DISTINCT - NULLIF ( - 72, - AVG ( - 67 ) / - 81 + + COUNT ( * ) + 58 * COUNT ( - - 19 ) * - + CAST ( NULL AS INTEGER ) ) AS col2
----
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4566
SELECT CAST( + 17 AS SIGNED ) * + 68 + + 89 + + 30 + 36 DIV 13 + COUNT( * ) + 67 * + + 9
----
1881

skipif mysql # not compatible
query I rowsort label-4566
SELECT CAST ( + 17 AS INTEGER ) * + 68 + + 89 + + 30 + 36 / 13 + COUNT ( * ) + 67 * + + 9
----
1881

query I rowsort
SELECT ALL - - NULLIF ( - 67, + ( - + 7 ) ) AS col1
----
-67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4568
SELECT ALL - + COALESCE ( - 5, + NULLIF ( - 31, + - 17 * 55 ) DIV - 96 * + 49, COUNT( * ) - COUNT( * ) + 85 + + 5 )
----
5

skipif mysql # not compatible
query I rowsort label-4568
SELECT ALL - + COALESCE ( - 5, + NULLIF ( - 31, + - 17 * 55 ) / - 96 * + 49, COUNT ( * ) - COUNT ( * ) + 85 + + 5 )
----
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4569
SELECT + CASE - CAST( - CAST( 73 AS SIGNED ) AS SIGNED ) WHEN + 55 THEN + ( - - 63 ) ELSE NULL END / - + COUNT( * ) * + + CAST( NULL AS SIGNED ) - + - 98
----
NULL

skipif mysql # not compatible
query I rowsort label-4569
SELECT + CASE - CAST ( - CAST ( 73 AS INTEGER ) AS INTEGER ) WHEN + 55 THEN + ( - - 63 ) ELSE NULL END / - + COUNT ( * ) * + + CAST ( NULL AS INTEGER ) - + - 98
----
NULL

query I rowsort
SELECT - ( 79 ) - - 88 AS col2
----
9

query I rowsort
SELECT - 63 * + 58 AS col1
----
-3654

query I rowsort
SELECT 26 - - 35
----
61

query I rowsort
SELECT ALL - - 78 * - + ( + COALESCE ( - + 46, + + 64, + 44 ) )
----
3588

query I rowsort
SELECT ALL - + 86 * - + 26
----
2236

onlyif mysql # aggregate syntax: 
query I rowsort label-4575
SELECT - 9 * - - COUNT( * ) AS col1
----
-9

skipif mysql # not compatible
query I rowsort label-4575
SELECT - 9 * - - COUNT ( * ) AS col1
----
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4576
SELECT - 76, + 6 - + CASE - 69 WHEN - 87 * - - ( CASE + ( 54 ) WHEN COUNT( * ) * + 93 * - CAST( - 37 AS SIGNED ) + 54 THEN + MAX( DISTINCT 55 ) * 32 + - - 38 ELSE NULL END ) + + 8 + - + NULLIF ( 3, + 7 ) THEN + + COUNT( + - 91 ) ELSE - + 2 * + COUNT( + - 36 ) END AS col0
----
-76
8

skipif mysql # not compatible
query II rowsort label-4576
SELECT - 76, + 6 - + CASE - 69 WHEN - 87 * - - ( CASE + ( 54 ) WHEN COUNT ( * ) * + 93 * - CAST ( - 37 AS INTEGER ) + 54 THEN + MAX ( DISTINCT 55 ) * 32 + - - 38 ELSE NULL END ) + + 8 + - + NULLIF ( 3, + 7 ) THEN + + COUNT ( + - 91 ) ELSE - + 2 * + COUNT ( + - 36 ) END AS col0
----
-76
8

onlyif mysql # aggregate syntax: 
query I rowsort label-4577
SELECT 14 + 75 * - + NULLIF ( + MIN( - - 46 ), - MAX( 31 ) )
----
-3436

skipif mysql # not compatible
query I rowsort label-4577
SELECT 14 + 75 * - + NULLIF ( + MIN ( - - 46 ), - MAX ( 31 ) )
----
-3436

onlyif mysql # DIV for integer division: 
query I rowsort label-4578
SELECT 50 DIV - 99 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4578
SELECT 50 / - 99 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4579
SELECT ALL COUNT( + - 23 ) * + ( + 67 ) + + ( - - CASE - - 98 WHEN + 53 THEN + CASE 80 WHEN - 55 THEN 23 ELSE NULL END + + - COUNT( * ) + CASE 46 WHEN + 47 THEN NULL ELSE - + 29 END END )
----
NULL

skipif mysql # not compatible
query I rowsort label-4579
SELECT ALL COUNT ( + - 23 ) * + ( + 67 ) + + ( - - CASE - - 98 WHEN + 53 THEN + CASE 80 WHEN - 55 THEN 23 ELSE NULL END + + - COUNT ( * ) + CASE 46 WHEN + 47 THEN NULL ELSE - + 29 END END )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4580
SELECT COALESCE ( + ( 53 ), - COUNT( * ) ) * 25 + 99 col2, 63 col2
----
1424
63

skipif mysql # not compatible
query II rowsort label-4580
SELECT COALESCE ( + ( 53 ), - COUNT ( * ) ) * 25 + 99 col2, 63 col2
----
1424
63

onlyif mysql # aggregate syntax: 
query I rowsort label-4581
SELECT ALL MIN( DISTINCT 9 ) col2
----
9

skipif mysql # not compatible
query I rowsort label-4581
SELECT ALL MIN ( DISTINCT 9 ) col2
----
9

onlyif mysql # aggregate syntax: 
query III rowsort label-4582
SELECT - 90, 29 + COALESCE ( 76, - 12, 36 ) + - COUNT( ( - 59 ) ) + + 87 * - - COUNT( * ) AS col0, - 2 AS col1
----
-90
191
-2

skipif mysql # not compatible
query III rowsort label-4582
SELECT - 90, 29 + COALESCE ( 76, - 12, 36 ) + - COUNT ( ( - 59 ) ) + + 87 * - - COUNT ( * ) AS col0, - 2 AS col1
----
-90
191
-2

query I rowsort
SELECT ALL - 99 * 86
----
-8514

onlyif mysql # aggregate syntax: 
query II rowsort label-4584
SELECT 72 AS col1, COALESCE ( COUNT( * ), - 85, - + ( + 63 ) ) + + - 14
----
72
-13

skipif mysql # not compatible
query II rowsort label-4584
SELECT 72 AS col1, COALESCE ( COUNT ( * ), - 85, - + ( + 63 ) ) + + - 14
----
72
-13

query I rowsort
SELECT ALL 26 * - 92 AS col2
----
-2392

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4586
SELECT COUNT( * ) DIV 63 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4586
SELECT COUNT ( * ) / 63 AS col2
----
0

query I rowsort
SELECT ALL 19 + - ( - 40 )
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-4588
SELECT COUNT( * ) - ( 5 ) + + - 0 AS col0
----
-4

skipif mysql # not compatible
query I rowsort label-4588
SELECT COUNT ( * ) - ( 5 ) + + - 0 AS col0
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-4589
SELECT 75 * - MAX( - 1 ) AS col2
----
75

skipif mysql # not compatible
query I rowsort label-4589
SELECT 75 * - MAX ( - 1 ) AS col2
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-4590
SELECT - COALESCE ( 93, - 81, - COUNT( * ) * - - 6 ) AS col0
----
-93

skipif mysql # not compatible
query I rowsort label-4590
SELECT - COALESCE ( 93, - 81, - COUNT ( * ) * - - 6 ) AS col0
----
-93

query I rowsort
SELECT ALL 72 + - 94
----
-22

query II rowsort
SELECT 72 AS col2, + 69
----
72
69

query II rowsort
SELECT - 69 AS col1, + ( - - 43 ) AS col2
----
-69
43

onlyif mysql # aggregate syntax: 
query I rowsort label-4594
SELECT + 54 * - COUNT( * ) / - + NULLIF ( CASE - 29 WHEN + + COUNT( ALL 94 ) + + + 69 - 26 * 72 * 40 THEN NULL WHEN + 2 THEN 48 END, - 10 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4594
SELECT + 54 * - COUNT ( * ) / - + NULLIF ( CASE - 29 WHEN + + COUNT ( ALL 94 ) + + + 69 - 26 * 72 * 40 THEN NULL WHEN + 2 THEN 48 END, - 10 ) AS col1
----
NULL

query I rowsort
SELECT ALL - 55 + - 68 * - 12 * - 42
----
-34327

onlyif mysql # aggregate syntax: 
query I rowsort label-4596
SELECT + 71 - - COUNT( * ) + - 41 * - - COUNT( * ) + - 34 col1
----
-3

skipif mysql # not compatible
query I rowsort label-4596
SELECT + 71 - - COUNT ( * ) + - 41 * - - COUNT ( * ) + - 34 col1
----
-3

query II rowsort
SELECT DISTINCT 26, - 75 * 16 + - 91 AS col2
----
26
-1291

query I rowsort
SELECT ALL - 16 * + + 31 AS col2
----
-496

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4599
SELECT ALL 50 * - MAX( ALL + 70 ) + + - COUNT( * ) + - CAST( NULL AS SIGNED ) + + - 83 + + 47 / - 12 * - 52 + CASE - COUNT( * ) WHEN - 49 THEN - 84 ELSE + 23 * - 9 + - - ( - - 64 ) END + - 36 * + 50 + + 81
----
NULL

skipif mysql # not compatible
query I rowsort label-4599
SELECT ALL 50 * - MAX ( ALL + 70 ) + + - COUNT ( * ) + - CAST ( NULL AS INTEGER ) + + - 83 + + 47 / - 12 * - 52 + CASE - COUNT ( * ) WHEN - 49 THEN - 84 ELSE + 23 * - 9 + - - ( - - 64 ) END + - 36 * + 50 + + 81
----
NULL

query I rowsort
SELECT + - 70 + - 26
----
-96

query II rowsort
SELECT + 72 AS col1, + ( + - 52 )
----
72
-52

onlyif mysql # DIV for integer division: 
query I rowsort label-4602
SELECT DISTINCT + 40 DIV + 78 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4602
SELECT DISTINCT + 40 / + 78 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4603
SELECT - 54 + + 27 + COUNT( * )
----
-26

skipif mysql # not compatible
query I rowsort label-4603
SELECT - 54 + + 27 + COUNT ( * )
----
-26

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4604
SELECT + CASE + COUNT( * ) WHEN 82 + MAX( - 91 ) THEN NULL WHEN + AVG ( - 96 ) * + COUNT( * ) DIV 96 DIV - 57 THEN NULL ELSE - COUNT( * ) END DIV + - 33
----
0

skipif mysql # not compatible
query I rowsort label-4604
SELECT + CASE + COUNT ( * ) WHEN 82 + MAX ( - 91 ) THEN NULL WHEN + AVG ( - 96 ) * + COUNT ( * ) / 96 / - 57 THEN NULL ELSE - COUNT ( * ) END / + - 33
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4605
SELECT - COUNT( * ) * 12 col1
----
-12

skipif mysql # not compatible
query I rowsort label-4605
SELECT - COUNT ( * ) * 12 col1
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-4606
SELECT - - ( NULLIF ( - 49, - 73 ) ) * - - COUNT( * ) col0
----
-49

skipif mysql # not compatible
query I rowsort label-4606
SELECT - - ( NULLIF ( - 49, - 73 ) ) * - - COUNT ( * ) col0
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-4607
SELECT ALL + ( + CASE - - COUNT( * ) WHEN AVG ( DISTINCT - - 52 ) / + 22 THEN + COUNT( * ) WHEN - - 70 THEN 90 * + COUNT( * ) WHEN + 52 THEN COUNT( * ) END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4607
SELECT ALL + ( + CASE - - COUNT ( * ) WHEN AVG ( DISTINCT - - 52 ) / + 22 THEN + COUNT ( * ) WHEN - - 70 THEN 90 * + COUNT ( * ) WHEN + 52 THEN COUNT ( * ) END ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4608
SELECT ALL - COUNT( * ) * - - 56 DIV - 42
----
1

skipif mysql # not compatible
query I rowsort label-4608
SELECT ALL - COUNT ( * ) * - - 56 / - 42
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4609
SELECT DISTINCT SUM( COALESCE ( 37, - 78 - - 95 * + 32 ) )
----
37

skipif mysql # not compatible
query I rowsort label-4609
SELECT DISTINCT SUM ( COALESCE ( 37, - 78 - - 95 * + 32 ) )
----
37

query I rowsort
SELECT DISTINCT ( + - 15 ) AS col1
----
-15

query II rowsort
SELECT DISTINCT - ( - 50 ) * - NULLIF ( - 9, + 92 ) AS col1, 40 AS col1
----
450
40

onlyif mysql # aggregate syntax: 
query II rowsort label-4612
SELECT ALL CASE + - ( + 96 ) WHEN - + COUNT( * ) THEN NULL WHEN - 14 * - 90 / + NULLIF ( - 7, + + COUNT( * ) ) THEN - AVG ( 63 ) + 62 * COUNT( * ) * 62 END AS col1, 23 AS col0
----
NULL
23

skipif mysql # not compatible
query II rowsort label-4612
SELECT ALL CASE + - ( + 96 ) WHEN - + COUNT ( * ) THEN NULL WHEN - 14 * - 90 / + NULLIF ( - 7, + + COUNT ( * ) ) THEN - AVG ( 63 ) + 62 * COUNT ( * ) * 62 END AS col1, 23 AS col0
----
NULL
23

query I rowsort
SELECT DISTINCT - 4 + - + 76
----
-80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4614
SELECT DISTINCT + CAST( NULL AS SIGNED ) + - + COUNT( * ) AS col1, 46 + + + 34 + MAX( ALL + + CAST( + 94 AS SIGNED ) ) + - 52 * 61
----
NULL
-2998

skipif mysql # not compatible
query II rowsort label-4614
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + - + COUNT ( * ) AS col1, 46 + + + 34 + MAX ( ALL + + CAST ( + 94 AS INTEGER ) ) + - 52 * 61
----
NULL
-2998

onlyif mysql # aggregate syntax: 
query I rowsort label-4615
SELECT DISTINCT - MIN( ALL + 36 ) + - + 52 + 37 * - ( 52 ) AS col0
----
-2012

skipif mysql # not compatible
query I rowsort label-4615
SELECT DISTINCT - MIN ( ALL + 36 ) + - + 52 + 37 * - ( 52 ) AS col0
----
-2012

query I rowsort
SELECT ALL + 68 + + + 69
----
137

onlyif mysql # aggregate syntax: 
query I rowsort label-4617
SELECT - 60 - ( + COUNT( * ) ) + + 26 AS col0
----
-35

skipif mysql # not compatible
query I rowsort label-4617
SELECT - 60 - ( + COUNT ( * ) ) + + 26 AS col0
----
-35

query I rowsort
SELECT - 78 + + + 80 * - - COALESCE ( - 33, + 74 )
----
-2718

query II rowsort
SELECT + 84 + - 98, + 43 AS col1
----
-14
43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4620
SELECT ALL + SUM( DISTINCT COALESCE ( + + 33, + 70 ) ) + CAST( 42 AS SIGNED ) + - COUNT( * ) * 74 + + + SUM( ALL 13 ) + 93 + 66 * - 69
----
-4447

skipif mysql # not compatible
query I rowsort label-4620
SELECT ALL + SUM ( DISTINCT COALESCE ( + + 33, + 70 ) ) + CAST ( 42 AS INTEGER ) + - COUNT ( * ) * 74 + + + SUM ( ALL 13 ) + 93 + 66 * - 69
----
-4447

onlyif mysql # aggregate syntax: 
query I rowsort label-4621
SELECT ALL 66 + COUNT( * ) AS col2
----
67

skipif mysql # not compatible
query I rowsort label-4621
SELECT ALL 66 + COUNT ( * ) AS col2
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-4622
SELECT + ( + NULLIF ( - 46, - COUNT( * ) ) ) * - + 63 + - 60
----
2838

skipif mysql # not compatible
query I rowsort label-4622
SELECT + ( + NULLIF ( - 46, - COUNT ( * ) ) ) * - + 63 + - 60
----
2838

query I rowsort
SELECT DISTINCT - 87 * - 34 AS col0
----
2958

query I rowsort
SELECT ALL 78 + - 22 col0
----
56

query I rowsort
SELECT + 22 + - NULLIF ( - 62, - 34 * + 35 + + 65 + + + 80 * - 0 + - - 13 - + 49 + - 47 + 24 * + 99 * - 12 / + + 36 * - 64 ) AS col0
----
84

query I rowsort
SELECT - + 49 * ( - 3 )
----
147

query II rowsort
SELECT + 66 * - + 31, - 78 AS col0
----
-2046
-78

query I rowsort
SELECT + 98 * - 21 AS col2
----
-2058

query I rowsort
SELECT DISTINCT + 55 * - 31
----
-1705

query I rowsort
SELECT + + 49 * + - 20 AS col0
----
-980

query I rowsort
SELECT ALL + - 10 * + - 58 AS col0
----
580

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4632
SELECT DISTINCT + 11 * + + COUNT( * ) AS col2, + 74 DIV - + 30
----
11
-2

skipif mysql # not compatible
query II rowsort label-4632
SELECT DISTINCT + 11 * + + COUNT ( * ) AS col2, + 74 / - + 30
----
11
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4633
SELECT DISTINCT 12 * + - COUNT( * ) DIV - 24
----
0

skipif mysql # not compatible
query I rowsort label-4633
SELECT DISTINCT 12 * + - COUNT ( * ) / - 24
----
0

query I rowsort
SELECT + + 72 - + + 57 col1
----
15

query I rowsort
SELECT COALESCE ( - 63, + COALESCE ( + NULLIF ( + 9, - + 85 ), 13 * + 5 + 63 ), 60 )
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-4636
SELECT + NULLIF ( + 52, + CASE + + MAX( DISTINCT - 56 ) WHEN - 82 THEN NULL ELSE - 24 END )
----
52

skipif mysql # not compatible
query I rowsort label-4636
SELECT + NULLIF ( + 52, + CASE + + MAX ( DISTINCT - 56 ) WHEN - 82 THEN NULL ELSE - 24 END )
----
52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4637
SELECT + 68 DIV COUNT( * ) AS col1
----
68

skipif mysql # not compatible
query I rowsort label-4637
SELECT + 68 / COUNT ( * ) AS col1
----
68

query I rowsort
SELECT ALL + 26 * - - 41
----
1066

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4639
SELECT DISTINCT - COUNT( * ) * + 49 + + 59 - - - CAST( - + 63 AS SIGNED ) * 4 * - 58 AS col0
----
-14606

skipif mysql # not compatible
query I rowsort label-4639
SELECT DISTINCT - COUNT ( * ) * + 49 + + 59 - - - CAST ( - + 63 AS INTEGER ) * 4 * - 58 AS col0
----
-14606

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4640
SELECT 46 DIV SUM( + - 41 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4640
SELECT 46 / SUM ( + - 41 ) AS col0
----
-1

query I rowsort
SELECT 49 + + 56 AS col1
----
105

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-4642
SELECT 41 col0, 74 DIV - 13 AS col2, + - 25 - + COUNT( * ) * - + 67 AS col0
----
41
-5
42

skipif mysql # not compatible
query III rowsort label-4642
SELECT 41 col0, 74 / - 13 AS col2, + - 25 - + COUNT ( * ) * - + 67 AS col0
----
41
-5
42

query I rowsort
SELECT DISTINCT - 9 + - + 26 * 74 + - 1 * + 15 + - - 77
----
-1871

query I rowsort
SELECT 58 + - 25 + + 95 AS col2
----
128

query I rowsort
SELECT ALL 43 + + ( + 64 )
----
107

query I rowsort
SELECT DISTINCT + 82 * - 66
----
-5412

query I rowsort
SELECT ALL + 37 + + 22 col1
----
59

query I rowsort
SELECT DISTINCT + 55 + 8
----
63

onlyif mysql # DIV for integer division: 
query I rowsort label-4649
SELECT ALL - 92 - + - 19 DIV - 59 * - 21 AS col2
----
-92

skipif mysql # not compatible
query I rowsort label-4649
SELECT ALL - 92 - + - 19 / - 59 * - 21 AS col2
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-4650
SELECT 71 - + SUM( ALL 82 )
----
-11

skipif mysql # not compatible
query I rowsort label-4650
SELECT 71 - + SUM ( ALL 82 )
----
-11

query I rowsort
SELECT 80 + 59
----
139

onlyif mysql # aggregate syntax: 
query I rowsort label-4652
SELECT COALESCE ( 49, ( - 77 ), 82 * COUNT( * ) ) * SUM( 8 )
----
392

skipif mysql # not compatible
query I rowsort label-4652
SELECT COALESCE ( 49, ( - 77 ), 82 * COUNT ( * ) ) * SUM ( 8 )
----
392

onlyif mysql # DIV for integer division: 
query I rowsort label-4653
SELECT DISTINCT + 20 DIV + 6 AS col1
----
3

skipif mysql # not compatible
query I rowsort label-4653
SELECT DISTINCT + 20 / + 6 AS col1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4654
SELECT 5 - + 60 * + ( + CASE - 50 WHEN - 22 + + 25 / - MAX( ( 18 ) ) THEN + ( 32 ) WHEN + 65 / 72 + - 82 THEN NULL END + 57 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4654
SELECT 5 - + 60 * + ( + CASE - 50 WHEN - 22 + + 25 / - MAX ( ( 18 ) ) THEN + ( 32 ) WHEN + 65 / 72 + - 82 THEN NULL END + 57 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4655
SELECT NULLIF ( - 98, 94 * - COUNT( * ) ) * 92 AS col0
----
-9016

skipif mysql # not compatible
query I rowsort label-4655
SELECT NULLIF ( - 98, 94 * - COUNT ( * ) ) * 92 AS col0
----
-9016

query I rowsort
SELECT ALL + 2 * 69 AS col0
----
138

query I rowsort
SELECT DISTINCT - COALESCE ( 52, 7 - - 94 * 52 ) AS col1
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-4658
SELECT ALL + 93 * + SUM( DISTINCT - 44 * 75 ) AS col0
----
-306900

skipif mysql # not compatible
query I rowsort label-4658
SELECT ALL + 93 * + SUM ( DISTINCT - 44 * 75 ) AS col0
----
-306900

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4659
SELECT 95 * CAST( - 14 AS SIGNED ) col2
----
-1330

skipif mysql # not compatible
query I rowsort label-4659
SELECT 95 * CAST ( - 14 AS INTEGER ) col2
----
-1330

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4660
SELECT 99 DIV - COUNT( * ) AS col2
----
-99

skipif mysql # not compatible
query I rowsort label-4660
SELECT 99 / - COUNT ( * ) AS col2
----
-99

query I rowsort
SELECT 34 * - ( - 66 ) col2
----
2244

onlyif mysql # DIV for integer division: 
query I rowsort label-4662
SELECT 30 DIV - ( - 18 ) + 70 AS col0
----
71

skipif mysql # not compatible
query I rowsort label-4662
SELECT 30 / - ( - 18 ) + 70 AS col0
----
71

onlyif mysql # DIV for integer division: 
query I rowsort label-4663
SELECT DISTINCT 10 DIV - 15 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4663
SELECT DISTINCT 10 / - 15 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4664
SELECT COUNT( * ) + 8 * COUNT( DISTINCT - 52 )
----
9

skipif mysql # not compatible
query I rowsort label-4664
SELECT COUNT ( * ) + 8 * COUNT ( DISTINCT - 52 )
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4665
SELECT + 11 * + 99 - - 67 * CASE CAST( + 81 AS SIGNED ) WHEN 30 THEN - 8 / - ( MAX( DISTINCT 79 ) / + 88 ) WHEN NULLIF ( 16, 85 + COUNT( * ) ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4665
SELECT + 11 * + 99 - - 67 * CASE CAST ( + 81 AS INTEGER ) WHEN 30 THEN - 8 / - ( MAX ( DISTINCT 79 ) / + 88 ) WHEN NULLIF ( 16, 85 + COUNT ( * ) ) THEN NULL END
----
NULL

query I rowsort
SELECT 24 + 2 AS col2
----
26

query I rowsort
SELECT DISTINCT - ( ( + 41 ) )
----
-41

query I rowsort
SELECT - 11 * - 32 + + 7 col0
----
359

onlyif mysql # aggregate syntax: 
query I rowsort label-4669
SELECT ALL NULLIF ( COUNT( * ), + 78 + + 20 ) + 95
----
96

skipif mysql # not compatible
query I rowsort label-4669
SELECT ALL NULLIF ( COUNT ( * ), + 78 + + 20 ) + 95
----
96

query I rowsort
SELECT DISTINCT 56 + - 26 * - 29 AS col0
----
810

query I rowsort
SELECT DISTINCT 20 + 89 AS col1
----
109

query I rowsort
SELECT 59 * 14 + 51 AS col1
----
877

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4673
SELECT CAST( NULL AS SIGNED ) * - 50
----
NULL

skipif mysql # not compatible
query I rowsort label-4673
SELECT CAST ( NULL AS INTEGER ) * - 50
----
NULL

query I rowsort
SELECT 84 * + 64 AS col0
----
5376

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4675
SELECT + CAST( NULL AS SIGNED ) * 15 + 42
----
NULL

skipif mysql # not compatible
query I rowsort label-4675
SELECT + CAST ( NULL AS INTEGER ) * 15 + 42
----
NULL

query I rowsort
SELECT DISTINCT - 23 + 76 * 19 AS col2
----
1421

query I rowsort
SELECT ALL 19 + 95 AS col2
----
114

query I rowsort
SELECT DISTINCT 54 - - 7 AS col0
----
61

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4679
SELECT 93 DIV - COUNT( * ) AS col2
----
-93

skipif mysql # not compatible
query I rowsort label-4679
SELECT 93 / - COUNT ( * ) AS col2
----
-93

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4680
SELECT ALL 89 DIV CASE 90 WHEN 36 THEN NULL WHEN COUNT( * ) THEN NULL ELSE - 8 - 73 END AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-4680
SELECT ALL 89 / CASE 90 WHEN 36 THEN NULL WHEN COUNT ( * ) THEN NULL ELSE - 8 - 73 END AS col2
----
-1

query I rowsort
SELECT 64 * + ( 31 * 45 )
----
89280

query I rowsort
SELECT ALL - 96 * 60
----
-5760

query I rowsort
SELECT 71 + 30
----
101

onlyif mysql # aggregate syntax: 
query I rowsort label-4684
SELECT ( - COUNT( ALL + 73 ) ) * COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-4684
SELECT ( - COUNT ( ALL + 73 ) ) * COUNT ( * )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4685
SELECT ALL + COUNT( * ) * COUNT( ALL + 90 * 43 )
----
1

skipif mysql # not compatible
query I rowsort label-4685
SELECT ALL + COUNT ( * ) * COUNT ( ALL + 90 * 43 )
----
1

query I rowsort
SELECT DISTINCT - + ( 55 ) * + 80
----
-4400

query I rowsort
SELECT ( + 66 ) - + 87 * ( 81 )
----
-6981

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4688
SELECT 59 / CASE 42 / - 73 WHEN COUNT( * ) + + COUNT( * ) THEN ( COALESCE ( CAST( NULL AS SIGNED ), - MAX( DISTINCT - 21 ), - 82 * COUNT( - 74 ), + ( - 96 ) ) ) - 80 * 95 WHEN + 55 + + 60 * 50 THEN + 71 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4688
SELECT 59 / CASE 42 / - 73 WHEN COUNT ( * ) + + COUNT ( * ) THEN ( COALESCE ( CAST ( NULL AS INTEGER ), - MAX ( DISTINCT - 21 ), - 82 * COUNT ( - 74 ), + ( - 96 ) ) ) - 80 * 95 WHEN + 55 + + 60 * 50 THEN + 71 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4689
SELECT 46 * + SUM( ALL 67 )
----
3082

skipif mysql # not compatible
query I rowsort label-4689
SELECT 46 * + SUM ( ALL 67 )
----
3082

query I rowsort
SELECT ALL + 77 * - 14 AS col0
----
-1078

query I rowsort
SELECT + 80 + 74 AS col1
----
154

query I rowsort
SELECT DISTINCT + ( + 39 ) * - 55
----
-2145

onlyif mysql # aggregate syntax: 
query I rowsort label-4693
SELECT - - COUNT( + 23 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4693
SELECT - - COUNT ( + 23 ) AS col1
----
1

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4694
SELECT - - CAST( CAST( NULL AS DECIMAL ) AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4694
SELECT - - CAST ( CAST ( NULL AS REAL ) AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT ALL - 61 + 86 AS col0
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-4696
SELECT 95 * + NULLIF ( MAX( - 70 ), 24 + - 44 ) col0
----
-6650

skipif mysql # not compatible
query I rowsort label-4696
SELECT 95 * + NULLIF ( MAX ( - 70 ), 24 + - 44 ) col0
----
-6650

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4697
SELECT - 43 + CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4697
SELECT - 43 + CAST ( NULL AS REAL ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT + - 57 * + ( ( - 42 ) ) + - 72 * 91
----
-4158

query I rowsort
SELECT + + ( - 84 ) col0
----
-84

onlyif mysql # DIV for integer division: 
query I rowsort label-4700
SELECT 87 DIV 48
----
1

skipif mysql # not compatible
query I rowsort label-4700
SELECT 87 / 48
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4701
SELECT ALL - - CAST( 16 AS SIGNED ) * COUNT( * ) + - 31 * - 35 AS col2
----
1101

skipif mysql # not compatible
query I rowsort label-4701
SELECT ALL - - CAST ( 16 AS INTEGER ) * COUNT ( * ) + - 31 * - 35 AS col2
----
1101

onlyif mysql # aggregate syntax: 
query I rowsort label-4702
SELECT DISTINCT + - 26 * COUNT( * ) + 41
----
15

skipif mysql # not compatible
query I rowsort label-4702
SELECT DISTINCT + - 26 * COUNT ( * ) + 41
----
15

query I rowsort
SELECT ALL 88 * ( ( 72 ) ) + 25
----
6361

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4704
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - CASE - 27 WHEN - 70 THEN - COUNT( * ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4704
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - CASE - 27 WHEN - 70 THEN - COUNT ( * ) END AS col1
----
NULL

query I rowsort
SELECT 59 * + ( - 43 ) AS col2
----
-2537

query I rowsort
SELECT + ( + + 99 ) * 56
----
5544

query I rowsort
SELECT ALL ( + 48 ) * 11 + 60 AS col1
----
588

onlyif mysql # aggregate syntax: 
query I rowsort label-4708
SELECT - MAX( 77 ) - - 40 col2
----
-37

skipif mysql # not compatible
query I rowsort label-4708
SELECT - MAX ( 77 ) - - 40 col2
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-4709
SELECT + SUM( ALL + + 87 )
----
87

skipif mysql # not compatible
query I rowsort label-4709
SELECT + SUM ( ALL + + 87 )
----
87

query I rowsort
SELECT ALL 12 * - - 17 + 51 AS col1
----
255

onlyif mysql # aggregate syntax: 
query I rowsort label-4711
SELECT + MAX( - - ( + 3 ) ) * 60
----
180

skipif mysql # not compatible
query I rowsort label-4711
SELECT + MAX ( - - ( + 3 ) ) * 60
----
180

onlyif mysql # aggregate syntax: 
query I rowsort label-4712
SELECT MIN( DISTINCT + 73 )
----
73

skipif mysql # not compatible
query I rowsort label-4712
SELECT MIN ( DISTINCT + 73 )
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-4713
SELECT DISTINCT + COUNT( - 73 )
----
1

skipif mysql # not compatible
query I rowsort label-4713
SELECT DISTINCT + COUNT ( - 73 )
----
1

query I rowsort
SELECT ALL + NULLIF ( 71, - 73 )
----
71

onlyif mysql # DIV for integer division: 
query I rowsort label-4715
SELECT DISTINCT NULLIF ( + 75, 42 + + 72 * + 93 ) * ( 52 ) - + 24 DIV + 83 AS col2
----
3900

skipif mysql # not compatible
query I rowsort label-4715
SELECT DISTINCT NULLIF ( + 75, 42 + + 72 * + 93 ) * ( 52 ) - + 24 / + 83 AS col2
----
3900

query I rowsort
SELECT ALL 1 * 34
----
34

query I rowsort
SELECT + 7 - - + ( 27 ) * 96
----
2599

query I rowsort
SELECT + 86 * 68 - 70 AS col2
----
5778

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4719
SELECT + SUM( ALL CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4719
SELECT + SUM ( ALL CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

query I rowsort
SELECT - CASE - 57 WHEN 83 + ( - 27 ) * 42 THEN NULL ELSE + NULLIF ( + 22, + 53 * + AVG ( - 40 ) ) END
----
-22

query I rowsort
SELECT ALL 65 * - ( 53 ) * 82
----
-282490

query I rowsort
SELECT + 71 * - 41
----
-2911

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4723
SELECT + 77 * + 71 DIV COUNT( * )
----
5467

skipif mysql # not compatible
query I rowsort label-4723
SELECT + 77 * + 71 / COUNT ( * )
----
5467

query I rowsort
SELECT + ( 30 ) + - 8
----
22

query I rowsort
SELECT DISTINCT 12 * 28
----
336

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4726
SELECT ALL + CASE 76 WHEN + 34 THEN CASE COUNT( * ) WHEN + 98 THEN + 86 WHEN CAST( COUNT( * ) AS SIGNED ) + 59 THEN 35 + 5 ELSE NULL END - ( - 79 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-4726
SELECT ALL + CASE 76 WHEN + 34 THEN CASE COUNT ( * ) WHEN + 98 THEN + 86 WHEN CAST ( COUNT ( * ) AS INTEGER ) + 59 THEN 35 + 5 ELSE NULL END - ( - 79 ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4727
SELECT + - COUNT( * ) * 43 * - 5 col0
----
215

skipif mysql # not compatible
query I rowsort label-4727
SELECT + - COUNT ( * ) * 43 * - 5 col0
----
215

query I rowsort
SELECT DISTINCT - 67 * + + 0 - + 38 col2
----
-38

query I rowsort
SELECT + 21 * - + 59 * 5 + 95
----
-6100

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4730
SELECT + CAST( NULL AS SIGNED ) * + + 22 - NULLIF ( MAX( ALL - 0 ), + 13 / - ( + COUNT( * ) ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4730
SELECT + CAST ( NULL AS INTEGER ) * + + 22 - NULLIF ( MAX ( ALL - 0 ), + 13 / - ( + COUNT ( * ) ) ) AS col2
----
NULL

query I rowsort
SELECT ALL 74 + - 31
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-4732
SELECT DISTINCT 79 * COUNT( * ) AS col1
----
79

skipif mysql # not compatible
query I rowsort label-4732
SELECT DISTINCT 79 * COUNT ( * ) AS col1
----
79

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4733
SELECT - COUNT( * ) DIV - + 62
----
0

skipif mysql # not compatible
query I rowsort label-4733
SELECT - COUNT ( * ) / - + 62
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4734
SELECT + + MAX( ( - 60 ) ) + COUNT( * ) * 37 AS col2
----
-23

skipif mysql # not compatible
query I rowsort label-4734
SELECT + + MAX ( ( - 60 ) ) + COUNT ( * ) * 37 AS col2
----
-23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4735
SELECT ALL + + CAST( NULL AS SIGNED ) * + ( - 60 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4735
SELECT ALL + + CAST ( NULL AS INTEGER ) * + ( - 60 )
----
NULL

query I rowsort
SELECT ALL - 15 * 27 AS col0
----
-405

query I rowsort
SELECT + - 10 + - 87
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-4738
SELECT ALL - 4 + COUNT( * ) + + 57 AS col2
----
54

skipif mysql # not compatible
query I rowsort label-4738
SELECT ALL - 4 + COUNT ( * ) + + 57 AS col2
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-4739
SELECT ALL - COUNT( * ) + - 36 * - 66 col2
----
2375

skipif mysql # not compatible
query I rowsort label-4739
SELECT ALL - COUNT ( * ) + - 36 * - 66 col2
----
2375

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4740
SELECT - 40 DIV + COUNT( * ) - 73 col2
----
-113

skipif mysql # not compatible
query I rowsort label-4740
SELECT - 40 / + COUNT ( * ) - 73 col2
----
-113

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4741
SELECT ALL + CAST( - - NULLIF ( CASE - 2 WHEN ( 96 ) THEN + 10 ELSE + 42 END, + COALESCE ( - 84, COUNT( * ) * - NULLIF ( COUNT( * ), - 13 ) - + COALESCE ( COALESCE ( ( - 25 ), - 13, + 8 * + 38 + 17 ), 32 ), - ( 40 ) ) * + 24 + - 0 ) AS SIGNED )
----
42

skipif mysql # not compatible
query I rowsort label-4741
SELECT ALL + CAST ( - - NULLIF ( CASE - 2 WHEN ( 96 ) THEN + 10 ELSE + 42 END, + COALESCE ( - 84, COUNT ( * ) * - NULLIF ( COUNT ( * ), - 13 ) - + COALESCE ( COALESCE ( ( - 25 ), - 13, + 8 * + 38 + 17 ), 32 ), - ( 40 ) ) * + 24 + - 0 ) AS INTEGER )
----
42

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4742
SELECT DISTINCT - - 51 DIV - - MIN( + 22 ) + 73 col0
----
75

skipif mysql # not compatible
query I rowsort label-4742
SELECT DISTINCT - - 51 / - - MIN ( + 22 ) + 73 col0
----
75

query I rowsort
SELECT DISTINCT + NULLIF ( 13, - - 0 )
----
13

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4744
SELECT ALL COUNT( * ) DIV + + 6 + 26
----
26

skipif mysql # not compatible
query I rowsort label-4744
SELECT ALL COUNT ( * ) / + + 6 + 26
----
26

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4745
SELECT COUNT( * ) DIV + 67 * 81 * 97 + + 84 * - 35 col1
----
-2940

skipif mysql # not compatible
query I rowsort label-4745
SELECT COUNT ( * ) / + 67 * 81 * 97 + + 84 * - 35 col1
----
-2940

onlyif mysql # aggregate syntax: 
query I rowsort label-4746
SELECT - 91 * + - COUNT( * ) * 5
----
455

skipif mysql # not compatible
query I rowsort label-4746
SELECT - 91 * + - COUNT ( * ) * 5
----
455

onlyif mysql # aggregate syntax: 
query I rowsort label-4747
SELECT + SUM( ALL + 90 )
----
90

skipif mysql # not compatible
query I rowsort label-4747
SELECT + SUM ( ALL + 90 )
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-4748
SELECT - MIN( ALL + 4 ) + + - 32 AS col2
----
-36

skipif mysql # not compatible
query I rowsort label-4748
SELECT - MIN ( ALL + 4 ) + + - 32 AS col2
----
-36

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4749
SELECT + 64 * 57 - 84 + 36 DIV - MIN( DISTINCT - 77 ) AS col1
----
3564

skipif mysql # not compatible
query I rowsort label-4749
SELECT + 64 * 57 - 84 + 36 / - MIN ( DISTINCT - 77 ) AS col1
----
3564

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4750
SELECT ALL + CAST( NULL AS DECIMAL ) AS col0, 2 - + - 93 col1
----
NULL
95

skipif mysql # not compatible
query II rowsort label-4750
SELECT ALL + CAST ( NULL AS REAL ) AS col0, 2 - + - 93 col1
----
NULL
95

query I rowsort
SELECT ALL - 13 * - 82 AS col0
----
1066

query I rowsort
SELECT 77 * + + 60 + + 77 AS col2
----
4697

onlyif mysql # aggregate syntax: 
query I rowsort label-4753
SELECT - 55 * + CASE + COUNT( * ) WHEN - MAX( - 96 ) * - 99 THEN NULL WHEN 99 THEN + SUM( ALL 76 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-4753
SELECT - 55 * + CASE + COUNT ( * ) WHEN - MAX ( - 96 ) * - 99 THEN NULL WHEN 99 THEN + SUM ( ALL 76 ) END
----
NULL

query I rowsort
SELECT DISTINCT - 96 * 4 AS col2
----
-384

query I rowsort
SELECT DISTINCT 45 * - 64 - - 62
----
-2818

query I rowsort
SELECT ALL + ( 15 )
----
15

onlyif mysql # aggregate syntax: 
query II rowsort label-4757
SELECT ALL + 48, ( + ( - ( 84 ) ) ) + - SUM( DISTINCT 33 ) AS col2
----
48
-117

skipif mysql # not compatible
query II rowsort label-4757
SELECT ALL + 48, ( + ( - ( 84 ) ) ) + - SUM ( DISTINCT 33 ) AS col2
----
48
-117

query I rowsort
SELECT ALL + 5 * - 3 AS col2
----
-15

query I rowsort
SELECT - 19 * - 68 * + + 24
----
31008

onlyif mysql # aggregate syntax: 
query I rowsort label-4760
SELECT - NULLIF ( - 64, 94 + - 10 / COUNT( * ) ) * 7
----
448

skipif mysql # not compatible
query I rowsort label-4760
SELECT - NULLIF ( - 64, 94 + - 10 / COUNT ( * ) ) * 7
----
448

query I rowsort
SELECT NULLIF ( + 45, - + 34 ) AS col1
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-4762
SELECT CASE + 71 WHEN + + COUNT( * ) + 54 THEN NULL WHEN 97 THEN - 18 / + ( - 70 ) ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4762
SELECT CASE + 71 WHEN + + COUNT ( * ) + 54 THEN NULL WHEN 97 THEN - 18 / + ( - 70 ) ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4763
SELECT ALL + COALESCE ( + COALESCE ( + 6, 62 * 55 + - CASE + 58 WHEN + 74 * + MIN( 39 ) + + 81 THEN + 85 + + 70 WHEN + 56 * + 21 THEN NULL END ), + 4 )
----
6

skipif mysql # not compatible
query I rowsort label-4763
SELECT ALL + COALESCE ( + COALESCE ( + 6, 62 * 55 + - CASE + 58 WHEN + 74 * + MIN ( 39 ) + + 81 THEN + 85 + + 70 WHEN + 56 * + 21 THEN NULL END ), + 4 )
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-4764
SELECT - CASE - CASE 2 WHEN + ( + 32 ) + + 10 THEN COALESCE ( COUNT( * ), - 92, 39 + + 71 ) ELSE - 69 * 1 END WHEN COUNT( * ) + 45 THEN 72 + + 86 WHEN 7 THEN 1 WHEN - 53 THEN NULL END / 63 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4764
SELECT - CASE - CASE 2 WHEN + ( + 32 ) + + 10 THEN COALESCE ( COUNT ( * ), - 92, 39 + + 71 ) ELSE - 69 * 1 END WHEN COUNT ( * ) + 45 THEN 72 + + 86 WHEN 7 THEN 1 WHEN - 53 THEN NULL END / 63 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4765
SELECT + SUM( 91 ) * + CASE 68 WHEN 26 * 86 - 26 THEN 88 WHEN 49 THEN + 26 * 49 - - 64 END + - 98 * + 31 + AVG ( DISTINCT 86 + + 76 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4765
SELECT + SUM ( 91 ) * + CASE 68 WHEN 26 * 86 - 26 THEN 88 WHEN 49 THEN + 26 * 49 - - 64 END + - 98 * + 31 + AVG ( DISTINCT 86 + + 76 ) AS col0
----
NULL

query I rowsort
SELECT NULLIF ( - 94, - 70 ) AS col0
----
-94

query I rowsort
SELECT + ( + 26 ) AS col0
----
26

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4768
SELECT DISTINCT COUNT( * ) DIV - 78 * - 62 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4768
SELECT DISTINCT COUNT ( * ) / - 78 * - 62 AS col1
----
0

query I rowsort
SELECT ALL + NULLIF ( + - 86, + - 74 + + 26 * 89 ) AS col2
----
-86

query II rowsort
SELECT ALL - 17 AS col1, + 66 + + 7 + - 86
----
-17
-13

query II rowsort
SELECT - 19 AS col2, 48
----
-19
48

onlyif mysql # aggregate syntax: 
query I rowsort label-4772
SELECT + 62 + 82 * - COUNT( * ) AS col2
----
-20

skipif mysql # not compatible
query I rowsort label-4772
SELECT + 62 + 82 * - COUNT ( * ) AS col2
----
-20

query II rowsort
SELECT - + 22 AS col1, 11
----
-22
11

onlyif mysql # aggregate syntax: 
query II rowsort label-4774
SELECT ALL 81 AS col2, - 31 + 2 - COUNT( ALL + 54 ) * COUNT( * ) AS col1
----
81
-30

skipif mysql # not compatible
query II rowsort label-4774
SELECT ALL 81 AS col2, - 31 + 2 - COUNT ( ALL + 54 ) * COUNT ( * ) AS col1
----
81
-30

query I rowsort
SELECT DISTINCT + 62 * 56 + - - 64
----
3536

query I rowsort
SELECT ALL - COALESCE ( + ( 75 ), - 4, 53 + 74 ) * + 27 + 21
----
-2004

onlyif mysql # aggregate syntax: 
query I rowsort label-4777
SELECT ALL + 94 + - - MIN( + 49 )
----
143

skipif mysql # not compatible
query I rowsort label-4777
SELECT ALL + 94 + - - MIN ( + 49 )
----
143

query I rowsort
SELECT DISTINCT + CASE - 83 WHEN + 45 / + 38 THEN 63 - 68 * 89 END * + 77
----
NULL

query I rowsort
SELECT DISTINCT 81 + - 4
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-4780
SELECT ALL MAX( ALL 70 )
----
70

skipif mysql # not compatible
query I rowsort label-4780
SELECT ALL MAX ( ALL 70 )
----
70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4781
SELECT + + NULLIF ( 40, MIN( DISTINCT 36 ) ) DIV 21
----
1

skipif mysql # not compatible
query I rowsort label-4781
SELECT + + NULLIF ( 40, MIN ( DISTINCT 36 ) ) / 21
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4782
SELECT + MIN( DISTINCT - 89 ) + + - 78 + 63 AS col1
----
-104

skipif mysql # not compatible
query I rowsort label-4782
SELECT + MIN ( DISTINCT - 89 ) + + - 78 + 63 AS col1
----
-104

onlyif mysql # aggregate syntax: 
query I rowsort label-4783
SELECT + 91 + - COUNT( * )
----
90

skipif mysql # not compatible
query I rowsort label-4783
SELECT + 91 + - COUNT ( * )
----
90

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4784
SELECT DISTINCT + CASE - 26 WHEN + ( 72 ) THEN NULL ELSE CAST( NULL AS DECIMAL ) END / + 43
----
NULL

skipif mysql # not compatible
query I rowsort label-4784
SELECT DISTINCT + CASE - 26 WHEN + ( 72 ) THEN NULL ELSE CAST ( NULL AS REAL ) END / + 43
----
NULL

query I rowsort
SELECT ALL + ( - 20 ) + + 11 AS col1
----
-9

query II rowsort
SELECT 67 AS col2, ( - 68 )
----
67
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-4787
SELECT NULLIF ( COUNT( * ), + 93 * - MAX( + 54 ) )
----
1

skipif mysql # not compatible
query I rowsort label-4787
SELECT NULLIF ( COUNT ( * ), + 93 * - MAX ( + 54 ) )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4788
SELECT ALL - COUNT( * ) * + COALESCE ( - 68, CAST( NULL AS SIGNED ), - 76 * - 48 )
----
68

skipif mysql # not compatible
query I rowsort label-4788
SELECT ALL - COUNT ( * ) * + COALESCE ( - 68, CAST ( NULL AS INTEGER ), - 76 * - 48 )
----
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4789
SELECT + 58 DIV CAST( + COUNT( * ) AS SIGNED ) * 41 AS col1
----
2378

skipif mysql # not compatible
query I rowsort label-4789
SELECT + 58 / CAST ( + COUNT ( * ) AS INTEGER ) * 41 AS col1
----
2378

query I rowsort
SELECT 84 + - 67 * + ( + - 46 ) AS col0
----
3166

query I rowsort
SELECT ALL - 36 * 77 AS col2
----
-2772

query I rowsort
SELECT ALL + 82 * - - ( + 24 )
----
1968

onlyif mysql # DIV for integer division: 
query I rowsort label-4793
SELECT DISTINCT - ( - + COALESCE ( 50, - - 66, 24 DIV 75 + - 99 * 87, 10 ) )
----
50

skipif mysql # not compatible
query I rowsort label-4793
SELECT DISTINCT - ( - + COALESCE ( 50, - - 66, 24 / 75 + - 99 * 87, 10 ) )
----
50

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4794
SELECT DISTINCT 79 - - 73 DIV - MIN( DISTINCT + 65 ) AS col2
----
78

skipif mysql # not compatible
query I rowsort label-4794
SELECT DISTINCT 79 - - 73 / - MIN ( DISTINCT + 65 ) AS col2
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-4795
SELECT DISTINCT - COUNT( DISTINCT - 52 ) - - 26 AS col1
----
25

skipif mysql # not compatible
query I rowsort label-4795
SELECT DISTINCT - COUNT ( DISTINCT - 52 ) - - 26 AS col1
----
25

query I rowsort
SELECT 0 * 62 * 10
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4797
SELECT 74 - + + ( - - 21 ) + - - NULLIF ( 84, + 36 + COUNT( * ) )
----
137

skipif mysql # not compatible
query I rowsort label-4797
SELECT 74 - + + ( - - 21 ) + - - NULLIF ( 84, + 36 + COUNT ( * ) )
----
137

onlyif mysql # aggregate syntax: 
query I rowsort label-4798
SELECT + 78 * 57 * + COUNT( * ) * + COUNT( * ) - - 86
----
4532

skipif mysql # not compatible
query I rowsort label-4798
SELECT + 78 * 57 * + COUNT ( * ) * + COUNT ( * ) - - 86
----
4532

query I rowsort
SELECT 90 * - 18
----
-1620

query I rowsort
SELECT ALL + 47 * + 10
----
470

query I rowsort
SELECT ALL + 74 * 79 AS col1
----
5846

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4802
SELECT DISTINCT - COUNT( * ) + CASE + - 19 WHEN - MAX( + ( 98 ) ) * 98 THEN NULL WHEN COALESCE ( 52, + ( 52 ) / + 94 + 89, + 70 ) + - CAST( NULL AS SIGNED ) * 42 THEN + 0 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4802
SELECT DISTINCT - COUNT ( * ) + CASE + - 19 WHEN - MAX ( + ( 98 ) ) * 98 THEN NULL WHEN COALESCE ( 52, + ( 52 ) / + 94 + 89, + 70 ) + - CAST ( NULL AS INTEGER ) * 42 THEN + 0 END
----
NULL

query I rowsort
SELECT 90 - - + ( - 89 ) AS col0
----
1

query I rowsort
SELECT 54 * + 59
----
3186

onlyif mysql # aggregate syntax: 
query I rowsort label-4805
SELECT - - COALESCE ( + - COUNT( * ), - 37 )
----
-1

skipif mysql # not compatible
query I rowsort label-4805
SELECT - - COALESCE ( + - COUNT ( * ), - 37 )
----
-1

query I rowsort
SELECT ALL + ( + ( - 99 ) )
----
-99

query I rowsort
SELECT 1 * - 18
----
-18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4808
SELECT + 30 + - + COUNT( * ) DIV - 42 * COALESCE ( CASE 16 WHEN 10 + - COUNT( * ) * - CASE - 51 WHEN - 11 THEN 79 * 79 END THEN + 85 END, - COUNT( * ), + COUNT( * ) * NULLIF ( 66, 22 ) ) * - NULLIF ( 54, NULLIF ( - 26, + 43 * - 6 ) )
----
30

skipif mysql # not compatible
query I rowsort label-4808
SELECT + 30 + - + COUNT ( * ) / - 42 * COALESCE ( CASE 16 WHEN 10 + - COUNT ( * ) * - CASE - 51 WHEN - 11 THEN 79 * 79 END THEN + 85 END, - COUNT ( * ), + COUNT ( * ) * NULLIF ( 66, 22 ) ) * - NULLIF ( 54, NULLIF ( - 26, + 43 * - 6 ) )
----
30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4809
SELECT ALL 70 DIV + + MIN( - + 38 ) + - 22
----
-23

skipif mysql # not compatible
query I rowsort label-4809
SELECT ALL 70 / + + MIN ( - + 38 ) + - 22
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-4810
SELECT DISTINCT - 15 + COUNT( * ) - 79
----
-93

skipif mysql # not compatible
query I rowsort label-4810
SELECT DISTINCT - 15 + COUNT ( * ) - 79
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-4811
SELECT ALL 79 + - 79 - - 52 + COUNT( * ) + 59 * 2
----
171

skipif mysql # not compatible
query I rowsort label-4811
SELECT ALL 79 + - 79 - - 52 + COUNT ( * ) + 59 * 2
----
171

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4812
SELECT DISTINCT - NULLIF ( + + ( - 71 ), COALESCE ( - NULLIF ( + 29, 99 + CASE + ( - 39 ) + - 54 WHEN 45 THEN COALESCE ( + 6, + CAST( - 24 AS SIGNED ) * 21 + + 63, 91 + - COUNT( * ) * 94 ) + + 44 * - ( MAX( ALL - 20 ) ) WHEN + 96 THEN + 76 ELSE NULL END ), - 50 ) / 92 ) AS col2
----
71

skipif mysql # not compatible
query I rowsort label-4812
SELECT DISTINCT - NULLIF ( + + ( - 71 ), COALESCE ( - NULLIF ( + 29, 99 + CASE + ( - 39 ) + - 54 WHEN 45 THEN COALESCE ( + 6, + CAST ( - 24 AS INTEGER ) * 21 + + 63, 91 + - COUNT ( * ) * 94 ) + + 44 * - ( MAX ( ALL - 20 ) ) WHEN + 96 THEN + 76 ELSE NULL END ), - 50 ) / 92 ) AS col2
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-4813
SELECT ALL 92 + 76 * - COUNT( * )
----
16

skipif mysql # not compatible
query I rowsort label-4813
SELECT ALL 92 + 76 * - COUNT ( * )
----
16

query II rowsort
SELECT 24 * + 12, 69 AS col1
----
288
69

onlyif mysql # DIV for integer division: 
query I rowsort label-4815
SELECT DISTINCT + + 15 + 5 DIV - ( - 49 ) AS col2
----
15

skipif mysql # not compatible
query I rowsort label-4815
SELECT DISTINCT + + 15 + 5 / - ( - 49 ) AS col2
----
15

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4816
SELECT - ( + CAST( NULL AS DECIMAL ) ) + + - 82 - 30 + + 67
----
NULL

skipif mysql # not compatible
query I rowsort label-4816
SELECT - ( + CAST ( NULL AS REAL ) ) + + - 82 - 30 + + 67
----
NULL

query I rowsort
SELECT 72 + + 83 AS col2
----
155

query I rowsort
SELECT + NULLIF ( + 48, + NULLIF ( - 23, - 53 ) ) AS col2
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-4819
SELECT ALL - COUNT( * ) - - 2 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4819
SELECT ALL - COUNT ( * ) - - 2 AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4820
SELECT COUNT( * ) - + MAX( DISTINCT + + 57 )
----
-56

skipif mysql # not compatible
query I rowsort label-4820
SELECT COUNT ( * ) - + MAX ( DISTINCT + + 57 )
----
-56

query I rowsort
SELECT 49 + + - 7 AS col0
----
42

query I rowsort
SELECT + 46 * - 55
----
-2530

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4823
SELECT - SUM( DISTINCT CASE - 68 WHEN 13 THEN + 89 END ) + 12 / CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4823
SELECT - SUM ( DISTINCT CASE - 68 WHEN 13 THEN + 89 END ) + 12 / CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 59 + 66 + - 93 + - 61
----
-29

query I rowsort
SELECT ALL 50 - 53 AS col0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4826
SELECT CASE 75 WHEN + ( + 41 ) THEN NULL WHEN + COUNT( * ) THEN + COUNT( ALL - COALESCE ( + 0, 21 ) ) * - 27 END * MIN( ALL 6 * 11 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4826
SELECT CASE 75 WHEN + ( + 41 ) THEN NULL WHEN + COUNT ( * ) THEN + COUNT ( ALL - COALESCE ( + 0, 21 ) ) * - 27 END * MIN ( ALL 6 * 11 )
----
NULL

query I rowsort
SELECT ( - 1 ) - - - 69 AS col2
----
-70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4828
SELECT CASE CAST( - 12 AS SIGNED ) WHEN COUNT( * ) THEN 49 WHEN + 99 THEN NULL WHEN - 58 THEN CAST( NULL AS SIGNED ) * - 18 END * - NULLIF ( + 3 + CAST( NULL AS SIGNED ), + 10 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4828
SELECT CASE CAST ( - 12 AS INTEGER ) WHEN COUNT ( * ) THEN 49 WHEN + 99 THEN NULL WHEN - 58 THEN CAST ( NULL AS INTEGER ) * - 18 END * - NULLIF ( + 3 + CAST ( NULL AS INTEGER ), + 10 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4829
SELECT CASE + 89 WHEN - COALESCE ( - - SUM( DISTINCT + - 34 ), + NULLIF ( 16, + COUNT( * ) + + 50 ) ) * + 60 + COALESCE ( NULLIF ( 11, 65 ), - 14 / NULLIF ( - 44, + 85 ) ) * - 33 THEN - COUNT( * ) WHEN + 84 THEN NULL END / COUNT( * ) + 21 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4829
SELECT CASE + 89 WHEN - COALESCE ( - - SUM ( DISTINCT + - 34 ), + NULLIF ( 16, + COUNT ( * ) + + 50 ) ) * + 60 + COALESCE ( NULLIF ( 11, 65 ), - 14 / NULLIF ( - 44, + 85 ) ) * - 33 THEN - COUNT ( * ) WHEN + 84 THEN NULL END / COUNT ( * ) + 21 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4830
SELECT ALL 43 * + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4830
SELECT ALL 43 * + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4831
SELECT 83 + + 21 - - 53 DIV 88
----
104

skipif mysql # not compatible
query I rowsort label-4831
SELECT 83 + + 21 - - 53 / 88
----
104

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4832
SELECT ALL 54 DIV - - 82 * - 59 * MIN( DISTINCT 49 )
----
0

skipif mysql # not compatible
query I rowsort label-4832
SELECT ALL 54 / - - 82 * - 59 * MIN ( DISTINCT 49 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4833
SELECT 90 DIV - + 83 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-4833
SELECT 90 / - + 83 AS col1
----
-1

query I rowsort
SELECT + 11 * ( 53 ) + + 39 AS col1
----
622

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4835
SELECT ALL 30 + + + CAST( + 46 AS SIGNED ) AS col0
----
76

skipif mysql # not compatible
query I rowsort label-4835
SELECT ALL 30 + + + CAST ( + 46 AS INTEGER ) AS col0
----
76

query I rowsort
SELECT ALL + 79 * 19
----
1501

onlyif mysql # aggregate syntax: 
query I rowsort label-4837
SELECT MIN( ALL - + 27 )
----
-27

skipif mysql # not compatible
query I rowsort label-4837
SELECT MIN ( ALL - + 27 )
----
-27

query I rowsort
SELECT ALL - 15 + + 92 col1
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-4839
SELECT DISTINCT - SUM( ALL + 73 ) AS col0
----
-73

skipif mysql # not compatible
query I rowsort label-4839
SELECT DISTINCT - SUM ( ALL + 73 ) AS col0
----
-73

query I rowsort
SELECT DISTINCT 42 + + + 97 AS col2
----
139

query I rowsort
SELECT DISTINCT 13 + - 54
----
-41

query I rowsort
SELECT ALL - 69 + 81
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-4843
SELECT - - 46 * - MAX( ALL - 34 ) * MAX( 4 ) * + 4 + + 80 + + 19 AS col2
----
25123

skipif mysql # not compatible
query I rowsort label-4843
SELECT - - 46 * - MAX ( ALL - 34 ) * MAX ( 4 ) * + 4 + + 80 + + 19 AS col2
----
25123

query I rowsort
SELECT ALL 84 + - - 76 AS col0
----
160

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4845
SELECT DISTINCT - 86 + + - 37 + 50 + - 19 + + 37 DIV ( - 37 ) DIV CASE - COUNT( * ) * - NULLIF ( 57, + 77 ) + + 2 WHEN - 71 THEN 66 ELSE - 54 * 76 END
----
-92

skipif mysql # not compatible
query I rowsort label-4845
SELECT DISTINCT - 86 + + - 37 + 50 + - 19 + + 37 / ( - 37 ) / CASE - COUNT ( * ) * - NULLIF ( 57, + 77 ) + + 2 WHEN - 71 THEN 66 ELSE - 54 * 76 END
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-4846
SELECT ALL - + CASE - MIN( DISTINCT 30 ) WHEN 7 * 91 THEN + 22 + COUNT( * ) WHEN ( 90 ) THEN NULL END + + 72
----
NULL

skipif mysql # not compatible
query I rowsort label-4846
SELECT ALL - + CASE - MIN ( DISTINCT 30 ) WHEN 7 * 91 THEN + 22 + COUNT ( * ) WHEN ( 90 ) THEN NULL END + + 72
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4847
SELECT DISTINCT + + CAST( - 68 AS SIGNED ) * - 10 + + COUNT( * ) + + 97
----
778

skipif mysql # not compatible
query I rowsort label-4847
SELECT DISTINCT + + CAST ( - 68 AS INTEGER ) * - 10 + + COUNT ( * ) + + 97
----
778

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4848
SELECT DISTINCT + 84 * - + COUNT( 87 ) AS col0, COALESCE ( - - 15, - CAST( NULL AS SIGNED ) ) - - COALESCE ( + 73, ( - 4 ) ) AS col1
----
-84
88

skipif mysql # not compatible
query II rowsort label-4848
SELECT DISTINCT + 84 * - + COUNT ( 87 ) AS col0, COALESCE ( - - 15, - CAST ( NULL AS INTEGER ) ) - - COALESCE ( + 73, ( - 4 ) ) AS col1
----
-84
88

onlyif mysql # aggregate syntax: 
query I rowsort label-4849
SELECT DISTINCT - 26 - - + MAX( DISTINCT - + 32 )
----
-58

skipif mysql # not compatible
query I rowsort label-4849
SELECT DISTINCT - 26 - - + MAX ( DISTINCT - + 32 )
----
-58

query I rowsort
SELECT ALL - - 25 * + 75
----
1875

onlyif mysql # aggregate syntax: 
query I rowsort label-4851
SELECT DISTINCT COALESCE ( 8, 92 * ( + 2 ), COUNT( * ) * 73 ) AS col2
----
8

skipif mysql # not compatible
query I rowsort label-4851
SELECT DISTINCT COALESCE ( 8, 92 * ( + 2 ), COUNT ( * ) * 73 ) AS col2
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-4852
SELECT + NULLIF ( + 31, + - 12 * - - COUNT( * ) ) * + 79
----
2449

skipif mysql # not compatible
query I rowsort label-4852
SELECT + NULLIF ( + 31, + - 12 * - - COUNT ( * ) ) * + 79
----
2449

onlyif mysql # aggregate syntax: 
query I rowsort label-4853
SELECT - - MIN( ALL 56 ) AS col1
----
56

skipif mysql # not compatible
query I rowsort label-4853
SELECT - - MIN ( ALL 56 ) AS col1
----
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4854
SELECT ALL - 90 * CAST( + + 19 AS SIGNED )
----
-1710

skipif mysql # not compatible
query I rowsort label-4854
SELECT ALL - 90 * CAST ( + + 19 AS INTEGER )
----
-1710

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4855
SELECT DISTINCT - + ( + 19 ) DIV + + CAST( 9 AS SIGNED )
----
-2

skipif mysql # not compatible
query I rowsort label-4855
SELECT DISTINCT - + ( + 19 ) / + + CAST ( 9 AS INTEGER )
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-4856
SELECT ALL - CASE - COUNT( * ) WHEN 86 * - 35 THEN 27 + 38 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4856
SELECT ALL - CASE - COUNT ( * ) WHEN 86 * - 35 THEN 27 + 38 END AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4857
SELECT - + 4 * + CAST( - 35 AS SIGNED ) AS col1
----
140

skipif mysql # not compatible
query I rowsort label-4857
SELECT - + 4 * + CAST ( - 35 AS INTEGER ) AS col1
----
140

onlyif mysql # DIV for integer division: 
query I rowsort label-4858
SELECT ALL - 82 DIV - 99
----
0

skipif mysql # not compatible
query I rowsort label-4858
SELECT ALL - 82 / - 99
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4859
SELECT - ( + + 89 ) * + - CAST( - 4 AS SIGNED ) AS col2
----
-356

skipif mysql # not compatible
query I rowsort label-4859
SELECT - ( + + 89 ) * + - CAST ( - 4 AS INTEGER ) AS col2
----
-356

onlyif mysql # aggregate syntax: 
query I rowsort label-4860
SELECT DISTINCT NULLIF ( - - 34, - 4 / COUNT( * ) ) AS col2
----
34

skipif mysql # not compatible
query I rowsort label-4860
SELECT DISTINCT NULLIF ( - - 34, - 4 / COUNT ( * ) ) AS col2
----
34

query I rowsort
SELECT ALL CASE + 62 WHEN - 73 + + - 69 THEN - 35 ELSE NULL END AS col2
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4862
SELECT ALL NULLIF ( + - CAST( NULL AS DECIMAL ), 95 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4862
SELECT ALL NULLIF ( + - CAST ( NULL AS REAL ), 95 )
----
NULL

query II rowsort
SELECT 29, + 36 + + + 72 AS col1
----
29
108

query I rowsort
SELECT - ( + 6 ) * + - 24
----
144

query I rowsort
SELECT + 61 * 17
----
1037

query I rowsort
SELECT ALL 43 + 30
----
73

onlyif mysql # aggregate syntax: 
query II rowsort label-4867
SELECT - COUNT( * ) AS col0, - 46 + + 76 AS col1
----
-1
30

skipif mysql # not compatible
query II rowsort label-4867
SELECT - COUNT ( * ) AS col0, - 46 + + 76 AS col1
----
-1
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4868
SELECT ALL NULLIF ( COUNT( * ), - + ( - - NULLIF ( + 56, 10 - 9 * - 6 ) ) + COALESCE ( COALESCE ( - 38, + COUNT( * ) ), - 55 * - 60 + + CAST( NULL AS SIGNED ) ) * 52 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4868
SELECT ALL NULLIF ( COUNT ( * ), - + ( - - NULLIF ( + 56, 10 - 9 * - 6 ) ) + COALESCE ( COALESCE ( - 38, + COUNT ( * ) ), - 55 * - 60 + + CAST ( NULL AS INTEGER ) ) * 52 ) AS col2
----
1

query I rowsort
SELECT + 25 * ( - 50 ) AS col0
----
-1250

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4870
SELECT ALL - COUNT( * ) * - + 89 * + + 24 * 55 * - + ( + + CAST( COUNT( * ) AS SIGNED ) ) + 72
----
-117408

skipif mysql # not compatible
query I rowsort label-4870
SELECT ALL - COUNT ( * ) * - + 89 * + + 24 * 55 * - + ( + + CAST ( COUNT ( * ) AS INTEGER ) ) + 72
----
-117408

query I rowsort
SELECT ALL 57 * + - 95 + + 35
----
-5380

query I rowsort
SELECT ( + NULLIF ( + 68, - 17 + 56 + + 76 ) )
----
68

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4873
SELECT + 95 * + + COALESCE ( - 53, - + ( + - 8 ) DIV + 14 * COUNT( * ) + + 81, + 94 * + 21 ) AS col2
----
-5035

skipif mysql # not compatible
query I rowsort label-4873
SELECT + 95 * + + COALESCE ( - 53, - + ( + - 8 ) / + 14 * COUNT ( * ) + + 81, + 94 * + 21 ) AS col2
----
-5035

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4874
SELECT CASE + CAST( - 19 AS SIGNED ) WHEN + + 67 THEN NULL WHEN + 55 THEN - 4 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4874
SELECT CASE + CAST ( - 19 AS INTEGER ) WHEN + + 67 THEN NULL WHEN + 55 THEN - 4 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4875
SELECT + CASE - COUNT( * ) WHEN 49 THEN NULL WHEN - - 17 THEN + - 67 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4875
SELECT + CASE - COUNT ( * ) WHEN 49 THEN NULL WHEN - - 17 THEN + - 67 ELSE NULL END
----
NULL

query I rowsort
SELECT ALL + 99 * - 27 + - - 76 AS col0
----
-2597

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4877
SELECT + 85 - - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4877
SELECT + 85 - - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4878
SELECT ALL + 7 * - - SUM( - 35 )
----
-245

skipif mysql # not compatible
query I rowsort label-4878
SELECT ALL + 7 * - - SUM ( - 35 )
----
-245

onlyif mysql # aggregate syntax: 
query I rowsort label-4879
SELECT ( + MAX( - 93 ) ) AS col2
----
-93

skipif mysql # not compatible
query I rowsort label-4879
SELECT ( + MAX ( - 93 ) ) AS col2
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-4880
SELECT - + 56 * 67 + 54 * + COUNT( * ) + - MAX( + - ( 20 ) )
----
-3678

skipif mysql # not compatible
query I rowsort label-4880
SELECT - + 56 * 67 + 54 * + COUNT ( * ) + - MAX ( + - ( 20 ) )
----
-3678

onlyif mysql # DIV for integer division: 
query I rowsort label-4881
SELECT DISTINCT 73 DIV - 79 + + + 11 col0
----
11

skipif mysql # not compatible
query I rowsort label-4881
SELECT DISTINCT 73 / - 79 + + + 11 col0
----
11

query I rowsort
SELECT ALL - + 27 * + 94 + - 62
----
-2600

query I rowsort
SELECT + + 52 * + + 4
----
208

query I rowsort
SELECT + - 77 * + 27 AS col2
----
-2079

onlyif mysql # aggregate syntax: 
query I rowsort label-4885
SELECT DISTINCT - COUNT( * ) * + 65 - + + 1 + + + COUNT( * ) AS col2
----
-65

skipif mysql # not compatible
query I rowsort label-4885
SELECT DISTINCT - COUNT ( * ) * + 65 - + + 1 + + + COUNT ( * ) AS col2
----
-65

onlyif mysql # aggregate syntax: 
query II rowsort label-4886
SELECT + - 9 AS col1, - COALESCE ( + 68, ( 36 ) * + + NULLIF ( 29, 37 * + 35 + ( + COUNT( * ) ) ) + 30 ) * + 73
----
-9
-4964

skipif mysql # not compatible
query II rowsort label-4886
SELECT + - 9 AS col1, - COALESCE ( + 68, ( 36 ) * + + NULLIF ( 29, 37 * + 35 + ( + COUNT ( * ) ) ) + 30 ) * + 73
----
-9
-4964

query II rowsort
SELECT + 28 AS col2, 4 * 59 AS col1
----
28
236

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4888
SELECT ALL + 98 * 72 * COALESCE ( + CAST( + 74 AS SIGNED ), MAX( ALL NULLIF ( 20, - 74 * + 93 ) ) ) - 38 AS col2
----
522106

skipif mysql # not compatible
query I rowsort label-4888
SELECT ALL + 98 * 72 * COALESCE ( + CAST ( + 74 AS INTEGER ), MAX ( ALL NULLIF ( 20, - 74 * + 93 ) ) ) - 38 AS col2
----
522106

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4889
SELECT + COUNT( * ) * COUNT( * ) DIV 8 col0
----
0

skipif mysql # not compatible
query I rowsort label-4889
SELECT + COUNT ( * ) * COUNT ( * ) / 8 col0
----
0

query II rowsort
SELECT + - 99 AS col2, - 89 * - 10 AS col1
----
-99
890

onlyif mysql # aggregate syntax: 
query II rowsort label-4891
SELECT + COUNT( * ), - COALESCE ( - 22, - 61 + - COUNT( * ) * - 38 ) * 65 + + SUM( ALL 5 - 30 ) * - 71 AS col0
----
1
3205

skipif mysql # not compatible
query II rowsort label-4891
SELECT + COUNT ( * ), - COALESCE ( - 22, - 61 + - COUNT ( * ) * - 38 ) * 65 + + SUM ( ALL 5 - 30 ) * - 71 AS col0
----
1
3205

query II rowsort
SELECT ALL 79 col0, 74 + + 46
----
79
120

query I rowsort
SELECT ALL - COALESCE ( - + 53, 76 ) * ( - + 60 ) - + 83
----
-3263

query I rowsort
SELECT DISTINCT - + 73 * - 20 * + 58 AS col0
----
84680

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4895
SELECT - - NULLIF ( + 89, - + 68 * - 73 DIV CAST( - + 49 AS SIGNED ) ) DIV + 18
----
4

skipif mysql # not compatible
query I rowsort label-4895
SELECT - - NULLIF ( + 89, - + 68 * - 73 / CAST ( - + 49 AS INTEGER ) ) / + 18
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4896
SELECT ALL - 78 * SUM( DISTINCT - + ( CAST( NULL AS SIGNED ) ) ) * - 78 + + - 17 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4896
SELECT ALL - 78 * SUM ( DISTINCT - + ( CAST ( NULL AS INTEGER ) ) ) * - 78 + + - 17 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4897
SELECT - CAST( 30 AS SIGNED ), + 36 * - - COALESCE ( - COUNT( * ), - + CASE 92 WHEN COUNT( * ) + COUNT( * ) THEN + 35 + NULLIF ( - 95, - 62 ) WHEN - ( + NULLIF ( CAST( 8 AS SIGNED ), + 57 ) ) THEN NULL END + - 18 * 77 ) * - 64 - CASE 59 + COUNT( * ) WHEN 3 THEN + MIN( ALL 50 ) END AS col1
----
-30
NULL

skipif mysql # not compatible
query II rowsort label-4897
SELECT - CAST ( 30 AS INTEGER ), + 36 * - - COALESCE ( - COUNT ( * ), - + CASE 92 WHEN COUNT ( * ) + COUNT ( * ) THEN + 35 + NULLIF ( - 95, - 62 ) WHEN - ( + NULLIF ( CAST ( 8 AS INTEGER ), + 57 ) ) THEN NULL END + - 18 * 77 ) * - 64 - CASE 59 + COUNT ( * ) WHEN 3 THEN + MIN ( ALL 50 ) END AS col1
----
-30
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4898
SELECT + CASE CAST( - 2 AS SIGNED ) WHEN + 61 THEN NULL ELSE + 82 * + 46 + + 12 + 83 END + 38
----
3905

skipif mysql # not compatible
query I rowsort label-4898
SELECT + CASE CAST ( - 2 AS INTEGER ) WHEN + 61 THEN NULL ELSE + 82 * + 46 + + 12 + 83 END + 38
----
3905

onlyif mysql # DIV for integer division: 
query II rowsort label-4899
SELECT - 61 DIV - 98, ( + - 36 ) AS col0
----
0
-36

skipif mysql # not compatible
query II rowsort label-4899
SELECT - 61 / - 98, ( + - 36 ) AS col0
----
0
-36

query I rowsort
SELECT ALL - 51 + 84
----
33

onlyif mysql # aggregate syntax: 
query II rowsort label-4901
SELECT - 73 + + 85 AS col1, 18 + - 16 * + - SUM( ALL 21 ) * + 64 + 96 * + 72 AS col0
----
12
28434

skipif mysql # not compatible
query II rowsort label-4901
SELECT - 73 + + 85 AS col1, 18 + - 16 * + - SUM ( ALL 21 ) * + 64 + 96 * + 72 AS col0
----
12
28434

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4902
SELECT - 79 - CAST( NULL AS DECIMAL ) * + 25
----
NULL

skipif mysql # not compatible
query I rowsort label-4902
SELECT - 79 - CAST ( NULL AS REAL ) * + 25
----
NULL

query I rowsort
SELECT ALL + 87 + - ( - - 78 ) * - 98
----
7731

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4904
SELECT ALL CAST( + 71 AS SIGNED ), + 76 AS col0
----
71
76

skipif mysql # not compatible
query II rowsort label-4904
SELECT ALL CAST ( + 71 AS INTEGER ), + 76 AS col0
----
71
76

onlyif mysql # aggregate syntax: 
query II rowsort label-4905
SELECT DISTINCT + 6 + - 93 AS col0, - SUM( - 66 ) + - - 73
----
-87
139

skipif mysql # not compatible
query II rowsort label-4905
SELECT DISTINCT + 6 + - 93 AS col0, - SUM ( - 66 ) + - - 73
----
-87
139

query I rowsort
SELECT - 1 + 21
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-4907
SELECT ALL + 88 + + 42 + COUNT( * )
----
131

skipif mysql # not compatible
query I rowsort label-4907
SELECT ALL + 88 + + 42 + COUNT ( * )
----
131

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4908
SELECT DISTINCT - 70 + - 51 * 22 * CAST( + - 3 AS SIGNED ) AS col2
----
3296

skipif mysql # not compatible
query I rowsort label-4908
SELECT DISTINCT - 70 + - 51 * 22 * CAST ( + - 3 AS INTEGER ) AS col2
----
3296

onlyif mysql # DIV for integer division: 
query II rowsort label-4909
SELECT ALL - 4 DIV - 16 + + 60 * 56 + - 71 AS col1, - 40 * 20 + + ( 98 ) DIV 17
----
3289
-795

skipif mysql # not compatible
query II rowsort label-4909
SELECT ALL - 4 / - 16 + + 60 * 56 + - 71 AS col1, - 40 * 20 + + ( 98 ) / 17
----
3289
-795

query I rowsort
SELECT 88 * - CASE - 82 WHEN + 34 THEN 39 ELSE - ( + 84 ) * + 40 END + - 43 AS col2
----
295637

query I rowsort
SELECT ALL 30 * + COALESCE ( 51, + - 82 ) AS col1
----
1530

query I rowsort
SELECT - 35 + + 78 * 60 AS col1
----
4645

onlyif mysql # aggregate syntax: 
query I rowsort label-4913
SELECT ALL + 61 * + - 34 * ( + + COUNT( * ) ) AS col1
----
-2074

skipif mysql # not compatible
query I rowsort label-4913
SELECT ALL + 61 * + - 34 * ( + + COUNT ( * ) ) AS col1
----
-2074

query I rowsort
SELECT DISTINCT - ( - 98 ) * - 83
----
-8134

query I rowsort
SELECT DISTINCT + + 96 / - + ( + 81 ) - 58 * + CASE + - 42 WHEN 74 THEN + 79 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4916
SELECT - NULLIF ( 97, - - AVG ( DISTINCT 71 ) * - - 68 ) + + MIN( ALL + ( + ( - CAST( 45 AS SIGNED ) ) ) )
----
-142

skipif mysql # not compatible
query I rowsort label-4916
SELECT - NULLIF ( 97, - - AVG ( DISTINCT 71 ) * - - 68 ) + + MIN ( ALL + ( + ( - CAST ( 45 AS INTEGER ) ) ) )
----
-142

onlyif mysql # aggregate syntax: 
query I rowsort label-4917
SELECT + + NULLIF ( + 73, - + COUNT( * ) ) AS col2
----
73

skipif mysql # not compatible
query I rowsort label-4917
SELECT + + NULLIF ( + 73, - + COUNT ( * ) ) AS col2
----
73

query II rowsort
SELECT 37 + - + 87 col0, 56 AS col1
----
-50
56

onlyif mysql # DIV for integer division: 
query I rowsort label-4919
SELECT - 86 DIV 37 + + NULLIF ( + - 26, 53 * + 90 + - - 68 ) * 21 AS col0
----
-548

skipif mysql # not compatible
query I rowsort label-4919
SELECT - 86 / 37 + + NULLIF ( + - 26, 53 * + 90 + - - 68 ) * 21 AS col0
----
-548

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4920
SELECT ALL - 34 DIV + 12 - + SUM( - 55 ) + - 11 col0
----
42

skipif mysql # not compatible
query I rowsort label-4920
SELECT ALL - 34 / + 12 - + SUM ( - 55 ) + - 11 col0
----
42

query I rowsort
SELECT + + COALESCE ( 2, + 8 ) AS col2
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-4922
SELECT ALL - 85 * + - MAX( DISTINCT + + 49 ) AS col2
----
4165

skipif mysql # not compatible
query I rowsort label-4922
SELECT ALL - 85 * + - MAX ( DISTINCT + + 49 ) AS col2
----
4165

query I rowsort
SELECT - 35 * ( + 33 ) - - 45
----
-1110

query I rowsort
SELECT DISTINCT - 41 * + 88 col2
----
-3608

onlyif mysql # aggregate syntax: 
query I rowsort label-4925
SELECT DISTINCT + 82 * + + COUNT( * )
----
82

skipif mysql # not compatible
query I rowsort label-4925
SELECT DISTINCT + 82 * + + COUNT ( * )
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-4926
SELECT - ( - ( - COUNT( * ) ) ) + - 86 - 30 * + CASE - + MIN( ALL ( - 77 ) ) WHEN - 68 THEN - 87 / - 25 END + 40
----
NULL

skipif mysql # not compatible
query I rowsort label-4926
SELECT - ( - ( - COUNT ( * ) ) ) + - 86 - 30 * + CASE - + MIN ( ALL ( - 77 ) ) WHEN - 68 THEN - 87 / - 25 END + 40
----
NULL

query I rowsort
SELECT ALL 32 * - 51 AS col2
----
-1632

query I rowsort
SELECT 58 * + ( + 71 ) col2
----
4118

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4929
SELECT CAST( NULL AS SIGNED ) * + 42 + + CAST( NULL AS SIGNED ) / + 80 * 13
----
NULL

skipif mysql # not compatible
query I rowsort label-4929
SELECT CAST ( NULL AS INTEGER ) * + 42 + + CAST ( NULL AS INTEGER ) / + 80 * 13
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4930
SELECT 6 AS col1, ( - + 53 ) DIV - + 49 + 48 + + COUNT( * )
----
6
50

skipif mysql # not compatible
query II rowsort label-4930
SELECT 6 AS col1, ( - + 53 ) / - + 49 + 48 + + COUNT ( * )
----
6
50

onlyif mysql # aggregate syntax: 
query I rowsort label-4931
SELECT DISTINCT 26 + COUNT( * )
----
27

skipif mysql # not compatible
query I rowsort label-4931
SELECT DISTINCT 26 + COUNT ( * )
----
27

query II rowsort
SELECT - 31, + ( + 28 ) AS col2
----
-31
28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4933
SELECT 84 * + 41 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4933
SELECT 84 * + 41 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4934
SELECT ALL - COUNT( * ) + + 26 + - 89 + + MAX( + 66 ) DIV + - 82
----
-64

skipif mysql # not compatible
query I rowsort label-4934
SELECT ALL - COUNT ( * ) + + 26 + - 89 + + MAX ( + 66 ) / + - 82
----
-64

query I rowsort
SELECT ALL 31 + 56 AS col2
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-4936
SELECT ALL - ( - 36 ) * + - ( + SUM( 85 ) )
----
-3060

skipif mysql # not compatible
query I rowsort label-4936
SELECT ALL - ( - 36 ) * + - ( + SUM ( 85 ) )
----
-3060

onlyif mysql # aggregate syntax: 
query I rowsort label-4937
SELECT ALL - 20 + - + COUNT( * ) AS col0
----
-21

skipif mysql # not compatible
query I rowsort label-4937
SELECT ALL - 20 + - + COUNT ( * ) AS col0
----
-21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4938
SELECT ALL 25 DIV COUNT( * ) AS col0
----
25

skipif mysql # not compatible
query I rowsort label-4938
SELECT ALL 25 / COUNT ( * )