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 ( * ) AS col0
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-4939
SELECT ALL 1 + - 32 * + COUNT( * ) * SUM( + 11 ) * COUNT( * ) + + 5 AS col0
----
-346

skipif mysql # not compatible
query I rowsort label-4939
SELECT ALL 1 + - 32 * + COUNT ( * ) * SUM ( + 11 ) * COUNT ( * ) + + 5 AS col0
----
-346

onlyif mysql # aggregate syntax: 
query II rowsort label-4940
SELECT - 1 AS col2, 20 + + + 84 + + MIN( - 7 )
----
-1
97

skipif mysql # not compatible
query II rowsort label-4940
SELECT - 1 AS col2, 20 + + + 84 + + MIN ( - 7 )
----
-1
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4941
SELECT DISTINCT 3 AS col2, - CASE 80 WHEN - + CAST( + COALESCE ( + 34, - CAST( AVG ( ALL 25 ) AS SIGNED ) ) AS SIGNED ) THEN - MIN( + 39 ) + - MIN( DISTINCT + 18 + 94 ) * + ( + 75 + 66 ) END + - 54 * + 99 col0
----
3
NULL

skipif mysql # not compatible
query II rowsort label-4941
SELECT DISTINCT 3 AS col2, - CASE 80 WHEN - + CAST ( + COALESCE ( + 34, - CAST ( AVG ( ALL 25 ) AS INTEGER ) ) AS INTEGER ) THEN - MIN ( + 39 ) + - MIN ( DISTINCT + 18 + 94 ) * + ( + 75 + 66 ) END + - 54 * + 99 col0
----
3
NULL

query I rowsort
SELECT 34 * - 80
----
-2720

query II rowsort
SELECT DISTINCT + ( + 47 ) * - 3, + 26 col2
----
-141
26

query I rowsort
SELECT DISTINCT + 2 - 56
----
-54

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4946
SELECT + 6 AS col0, CAST( + ( + AVG ( - 0 ) ) AS SIGNED )
----
6
0

skipif mysql # not compatible
query II rowsort label-4946
SELECT + 6 AS col0, CAST ( + ( + AVG ( - 0 ) ) AS INTEGER )
----
6
0

query I rowsort
SELECT ALL + 41 * - 81 AS col2
----
-3321

onlyif mysql # DIV for integer division: 
query II rowsort label-4948
SELECT ALL + + 19 DIV 62 * + ( - - 69 ) AS col2, 84 * - 50 col1
----
0
-4200

skipif mysql # not compatible
query II rowsort label-4948
SELECT ALL + + 19 / 62 * + ( - - 69 ) AS col2, 84 * - 50 col1
----
0
-4200

query I rowsort
SELECT ALL - 55 - + - 38
----
-17

query I rowsort
SELECT + 56 * 38
----
2128

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4951
SELECT DISTINCT - COALESCE ( - - 88, + CAST( NULL AS SIGNED ) * - + 96 + - + 71 * 31 DIV - - 58 )
----
-88

skipif mysql # not compatible
query I rowsort label-4951
SELECT DISTINCT - COALESCE ( - - 88, + CAST ( NULL AS INTEGER ) * - + 96 + - + 71 * 31 / - - 58 )
----
-88

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4952
SELECT ALL - 5 * + + CAST( NULL AS SIGNED ) + 70 AS col0, 40
----
NULL
40

skipif mysql # not compatible
query II rowsort label-4952
SELECT ALL - 5 * + + CAST ( NULL AS INTEGER ) + 70 AS col0, 40
----
NULL
40

onlyif mysql # aggregate syntax: 
query I rowsort label-4953
SELECT COUNT( * ) * 79 + - 42 AS col0
----
37

skipif mysql # not compatible
query I rowsort label-4953
SELECT COUNT ( * ) * 79 + - 42 AS col0
----
37

query I rowsort
SELECT DISTINCT - + 41 col1
----
-41

onlyif mysql # aggregate syntax: 
query II rowsort label-4955
SELECT ALL + ( - 63 ) * 95 * + 37 * - 81 * - COUNT( * ), 95 + - ( + 54 ) + - 81 AS col2
----
-17937045
-40

skipif mysql # not compatible
query II rowsort label-4955
SELECT ALL + ( - 63 ) * 95 * + 37 * - 81 * - COUNT ( * ), 95 + - ( + 54 ) + - 81 AS col2
----
-17937045
-40

onlyif mysql # DIV for integer division: 
query I rowsort label-4956
SELECT 62 DIV 73 col2
----
0

skipif mysql # not compatible
query I rowsort label-4956
SELECT 62 / 73 col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4957
SELECT ALL + COUNT( * ) + + 36
----
37

skipif mysql # not compatible
query I rowsort label-4957
SELECT ALL + COUNT ( * ) + + 36
----
37

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4958
SELECT ALL - - 63 col0, - MAX( ALL + ( - 76 ) ) DIV - MIN( + ( + + 31 ) ) + + + ( 38 ) * COUNT( * )
----
63
36

skipif mysql # not compatible
query II rowsort label-4958
SELECT ALL - - 63 col0, - MAX ( ALL + ( - 76 ) ) / - MIN ( + ( + + 31 ) ) + + + ( 38 ) * COUNT ( * )
----
63
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4959
SELECT + CAST( 17 AS SIGNED ) * - - COUNT( * ) * - 24
----
-408

skipif mysql # not compatible
query I rowsort label-4959
SELECT + CAST ( 17 AS INTEGER ) * - - COUNT ( * ) * - 24
----
-408

query I rowsort
SELECT + COALESCE ( + - NULLIF ( + + 32, + 10 + 57 ), + - 39 ) AS col0
----
-32

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-4962
SELECT ALL 68 + - 15 + 44 + + - 44 - + - 76 + 49 - 90 - + 54 * 45 * 57 DIV + 85
----
-1541

skipif mysql # not compatible
query I rowsort label-4962
SELECT ALL 68 + - 15 + 44 + + - 44 - + - 76 + 49 - 90 - + 54 * 45 * 57 / + 85
----
-1541

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-4964
SELECT MAX( DISTINCT + 96 ) + + NULLIF ( - - MAX( DISTINCT - 96 ), 49 + ( - 0 ) - COUNT( * ) + MIN( + 89 ) ) + + 32 * 92 AS col0
----
2944

skipif mysql # not compatible
query I rowsort label-4964
SELECT MAX ( DISTINCT + 96 ) + + NULLIF ( - - MAX ( DISTINCT - 96 ), 49 + ( - 0 ) - COUNT ( * ) + MIN ( + 89 ) ) + + 32 * 92 AS col0
----
2944

onlyif mysql # aggregate syntax: 
query I rowsort label-4965
SELECT DISTINCT + COUNT( * ) + - 48 - 25
----
-72

skipif mysql # not compatible
query I rowsort label-4965
SELECT DISTINCT + COUNT ( * ) + - 48 - 25
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-4966
SELECT ALL ( - - COUNT( * ) ) + + 49 * - 88 AS col2
----
-4311

skipif mysql # not compatible
query I rowsort label-4966
SELECT ALL ( - - COUNT ( * ) ) + + 49 * - 88 AS col2
----
-4311

onlyif mysql # aggregate syntax: 
query I rowsort label-4967
SELECT ( + NULLIF ( + 64, + + 68 ) ) / - + 59 + + ( + + CASE 16 WHEN + 76 + - COUNT( * ) THEN 55 END ) + - 28
----
NULL

skipif mysql # not compatible
query I rowsort label-4967
SELECT ( + NULLIF ( + 64, + + 68 ) ) / - + 59 + + ( + + CASE 16 WHEN + 76 + - COUNT ( * ) THEN 55 END ) + - 28
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4968
SELECT ALL COUNT( * ) + - 50 AS col0, - 79 col1
----
-49
-79

skipif mysql # not compatible
query II rowsort label-4968
SELECT ALL COUNT ( * ) + - 50 AS col0, - 79 col1
----
-49
-79

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

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

query I rowsort
SELECT 83 + + - 2
----
81

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4972
SELECT DISTINCT COUNT( * ) * 91 AS col0, - 2 DIV 16
----
91
0

skipif mysql # not compatible
query II rowsort label-4972
SELECT DISTINCT COUNT ( * ) * 91 AS col0, - 2 / 16
----
91
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4973
SELECT ALL ( + + 23 ) - + - 78 - + - 70 - - 32 AS col1, CAST( NULL AS SIGNED ) * + - 62 + + 41 * + COALESCE ( - 81, - 33 * 43, + SUM( ALL 81 ) )
----
203
NULL

skipif mysql # not compatible
query II rowsort label-4973
SELECT ALL ( + + 23 ) - + - 78 - + - 70 - - 32 AS col1, CAST ( NULL AS INTEGER ) * + - 62 + + 41 * + COALESCE ( - 81, - 33 * 43, + SUM ( ALL 81 ) )
----
203
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4974
SELECT ( - 79 ) + - - MAX( DISTINCT 10 ) + - ( 8 )
----
-77

skipif mysql # not compatible
query I rowsort label-4974
SELECT ( - 79 ) + - - MAX ( DISTINCT 10 ) + - ( 8 )
----
-77

onlyif mysql # aggregate syntax: 
query II rowsort label-4975
SELECT - CASE 85 WHEN + 98 THEN 43 END col1, COUNT( * ) * - + COUNT( * )
----
NULL
-1

skipif mysql # not compatible
query II rowsort label-4975
SELECT - CASE 85 WHEN + 98 THEN 43 END col1, COUNT ( * ) * - + COUNT ( * )
----
NULL
-1

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4977
SELECT 44 - - 15 * - ( NULLIF ( + ( + 37 ), - + 63 * - + COUNT( * ) + - CAST( NULL AS SIGNED ) ) )
----
-511

skipif mysql # not compatible
query I rowsort label-4977
SELECT 44 - - 15 * - ( NULLIF ( + ( + 37 ), - + 63 * - + COUNT ( * ) + - CAST ( NULL AS INTEGER ) ) )
----
-511

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4978
SELECT DISTINCT 77 - + MAX( DISTINCT 40 ) + - - CAST( - + 91 AS SIGNED )
----
-54

skipif mysql # not compatible
query I rowsort label-4978
SELECT DISTINCT 77 - + MAX ( DISTINCT 40 ) + - - CAST ( - + 91 AS INTEGER )
----
-54

query I rowsort
SELECT ALL 62 * - 72
----
-4464

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

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

query I rowsort
SELECT - + 89 + + ( 10 )
----
-79

query I rowsort
SELECT + + 78 * + + 45 AS col1
----
3510

query I rowsort
SELECT - ( - - 45 ) * - + 13 * + - 81 + 50 AS col1
----
-47335

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-4985
SELECT + 25 DIV + + 59 + 97
----
97

skipif mysql # not compatible
query I rowsort label-4985
SELECT + 25 / + + 59 + 97
----
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4986
SELECT - 95 * - CASE + 61 WHEN + + 25 + 28 THEN - + 0 WHEN - + COUNT( * ) * AVG ( ( 43 ) ) + - CAST( + 26 AS SIGNED ) THEN NULL END + - 9
----
NULL

skipif mysql # not compatible
query I rowsort label-4986
SELECT - 95 * - CASE + 61 WHEN + + 25 + 28 THEN - + 0 WHEN - + COUNT ( * ) * AVG ( ( 43 ) ) + - CAST ( + 26 AS INTEGER ) THEN NULL END + - 9
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4987
SELECT + NULLIF ( 57, + COUNT( * ) * + 10 )
----
57

skipif mysql # not compatible
query I rowsort label-4987
SELECT + NULLIF ( 57, + COUNT ( * ) * + 10 )
----
57

query I rowsort
SELECT + - 77 * - 63 + + 31
----
4882

onlyif mysql # aggregate syntax: 
query I rowsort label-4989
SELECT + + AVG ( ALL 27 ) * CASE + 69 WHEN + + 74 THEN + - 61 * + 3 WHEN COUNT( * ) + 73 * COUNT( * ) THEN NULL ELSE NULL END + - MAX( 87 + 76 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4989
SELECT + + AVG ( ALL 27 ) * CASE + 69 WHEN + + 74 THEN + - 61 * + 3 WHEN COUNT ( * ) + 73 * COUNT ( * ) THEN NULL ELSE NULL END + - MAX ( 87 + 76 )
----
NULL

query I rowsort
SELECT - - 71 * - - 69
----
4899

query II rowsort
SELECT - - 13 + 96 AS col0, + 14 col2
----
109
14

query I rowsort
SELECT ALL 36 * 19 + - ( - - 43 ) + - - 54
----
695

onlyif mysql # aggregate syntax: 
query I rowsort label-4993
SELECT + + 77 * + COUNT( * ) + + SUM( + - 9 ) + 22
----
90

skipif mysql # not compatible
query I rowsort label-4993
SELECT + + 77 * + COUNT ( * ) + + SUM ( + - 9 ) + 22
----
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4994
SELECT MIN( ALL - ( - 42 ) ) * + NULLIF ( CAST( NULL AS DECIMAL ), + CAST( + 72 AS SIGNED ) ) + CASE - + 57 WHEN + 6 THEN COALESCE ( COUNT( * ), + ( 12 ), - 34 * COUNT( * ) ) WHEN + 23 + 93 * 78 THEN + NULLIF ( 73, + 99 ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4994
SELECT MIN ( ALL - ( - 42 ) ) * + NULLIF ( CAST ( NULL AS REAL ), + CAST ( + 72 AS INTEGER ) ) + CASE - + 57 WHEN + 6 THEN COALESCE ( COUNT ( * ), + ( 12 ), - 34 * COUNT ( * ) ) WHEN + 23 + 93 * 78 THEN + NULLIF ( 73, + 99 ) END AS col1
----
NULL

query I rowsort
SELECT ALL - 49 * + ( - - 18 ) + 98
----
-784

query I rowsort
SELECT DISTINCT + 47 * + 58 * - 26
----
-70876

query I rowsort
SELECT - 20 + + ( 12 )
----
-8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4998
SELECT - 79 * + - CAST( COALESCE ( 98, + 15 ) AS SIGNED )
----
7742

skipif mysql # not compatible
query I rowsort label-4998
SELECT - 79 * + - CAST ( COALESCE ( 98, + 15 ) AS INTEGER )
----
7742

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

query I rowsort
SELECT ALL ( 83 ) AS col1
----
83

query I rowsort
SELECT - 43 * + - 8
----
344

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5002
SELECT + COUNT( * ) * + COUNT( * ) DIV - 43 * + 38 * - 40 AS col2, ( + 5 ) AS col0
----
0
5

skipif mysql # not compatible
query II rowsort label-5002
SELECT + COUNT ( * ) * + COUNT ( * ) / - 43 * + 38 * - 40 AS col2, ( + 5 ) AS col0
----
0
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5003
SELECT DISTINCT CAST( - 91 AS SIGNED ) DIV - COUNT( * ) + 92 + - 40 * - COUNT( * ) + - 12 * COUNT( * ) * - 35
----
643

skipif mysql # not compatible
query I rowsort label-5003
SELECT DISTINCT CAST ( - 91 AS INTEGER ) / - COUNT ( * ) + 92 + - 40 * - COUNT ( * ) + - 12 * COUNT ( * ) * - 35
----
643

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5004
SELECT ALL 7 * - + 5 DIV - COUNT( ALL - - ( + - 20 ) ) AS col0
----
35

skipif mysql # not compatible
query I rowsort label-5004
SELECT ALL 7 * - + 5 / - COUNT ( ALL - - ( + - 20 ) ) AS col0
----
35

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5006
SELECT + 30 DIV - 39 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5006
SELECT + 30 / - 39 AS col2
----
0

query I rowsort
SELECT DISTINCT - 85 * - 89
----
7565

query II rowsort
SELECT 68 AS col1, - 92 + - 58 + - 54 AS col2
----
68
-204

query I rowsort
SELECT ALL 71 * + + 69
----
4899

query I rowsort
SELECT - 77 * 20 AS col1
----
-1540

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5011
SELECT - COUNT( * ) DIV COUNT( * ) DIV + 87, - 72 AS col0
----
0
-72

skipif mysql # not compatible
query II rowsort label-5011
SELECT - COUNT ( * ) / COUNT ( * ) / + 87, - 72 AS col0
----
0
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-5012
SELECT - + COUNT( * ) * + 30 * + MAX( DISTINCT - 45 )
----
1350

skipif mysql # not compatible
query I rowsort label-5012
SELECT - + COUNT ( * ) * + 30 * + MAX ( DISTINCT - 45 )
----
1350

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5015
SELECT DISTINCT 39 DIV 99 DIV 98 + - 61 * 45 AS col2
----
-2745

skipif mysql # not compatible
query I rowsort label-5015
SELECT DISTINCT 39 / 99 / 98 + - 61 * 45 AS col2
----
-2745

onlyif mysql # aggregate syntax: 
query I rowsort label-5016
SELECT + + 48 + - COUNT( * )
----
47

skipif mysql # not compatible
query I rowsort label-5016
SELECT + + 48 + - COUNT ( * )
----
47

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5018
SELECT ALL + 87 / 78 * - 43 * - 19 + + - AVG ( + + ( - + CAST( NULL AS DECIMAL ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5018
SELECT ALL + 87 / 78 * - 43 * - 19 + + - AVG ( + + ( - + CAST ( NULL AS REAL ) ) )
----
NULL

query I rowsort
SELECT + 68 * + 48 * + - 80 + 64
----
-261056

query II rowsort
SELECT ALL + + 21 col0, 74
----
21
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5021
SELECT ALL MIN( ALL + 89 ) * + 34 * CASE - CAST( NULL AS SIGNED ) WHEN - - 94 THEN 52 * - CAST( NULL AS SIGNED ) + - 45 + COUNT( ALL - 8 ) + 0 / 39 * COUNT( * ) ELSE NULL END - 38 * + 73 + 78
----
NULL

skipif mysql # not compatible
query I rowsort label-5021
SELECT ALL MIN ( ALL + 89 ) * + 34 * CASE - CAST ( NULL AS INTEGER ) WHEN - - 94 THEN 52 * - CAST ( NULL AS INTEGER ) + - 45 + COUNT ( ALL - 8 ) + 0 / 39 * COUNT ( * ) ELSE NULL END - 38 * + 73 + 78
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5022
SELECT ALL + 22 * 34 + + 9, - COUNT( * ) AS col0
----
757
-1

skipif mysql # not compatible
query II rowsort label-5022
SELECT ALL + 22 * 34 + + 9, - COUNT ( * ) AS col0
----
757
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5023
SELECT + CASE - 97 WHEN 45 - + 18 THEN - + 27 / + - NULLIF ( - 78, - ( - - MIN( - 77 ) ) ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5023
SELECT + CASE - 97 WHEN 45 - + 18 THEN - + 27 / + - NULLIF ( - 78, - ( - - MIN ( - 77 ) ) ) END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-5024
SELECT ALL - 5 * - 1 DIV 6 * CASE + CAST( - 53 AS DECIMAL ) WHEN COUNT( ALL - - 38 ) DIV + 35 THEN NULL ELSE - COUNT( * ) END + - - 80
----
80

skipif mysql # not compatible
query I rowsort label-5024
SELECT ALL - 5 * - 1 / 6 * CASE + CAST ( - 53 AS REAL ) WHEN COUNT ( ALL - - 38 ) / + 35 THEN NULL ELSE - COUNT ( * ) END + - - 80
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-5025
SELECT - 20 * - - CASE - 14 WHEN + 65 THEN + 27 WHEN - 47 * - 4 / MAX( DISTINCT - + 73 ) THEN - 7 + + COUNT( * ) + - SUM( 22 ) * 55 END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5025
SELECT - 20 * - - CASE - 14 WHEN + 65 THEN + 27 WHEN - 47 * - 4 / MAX ( DISTINCT - + 73 ) THEN - 7 + + COUNT ( * ) + - SUM ( 22 ) * 55 END col2
----
NULL

query I rowsort
SELECT - 79 - - NULLIF ( - 28, 56 )
----
-107

onlyif mysql # aggregate syntax: 
query I rowsort label-5027
SELECT DISTINCT + CASE + 71 WHEN + 86 THEN - 12 * - COUNT( * ) WHEN 33 + 18 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5027
SELECT DISTINCT + CASE + 71 WHEN + 86 THEN - 12 * - COUNT ( * ) WHEN 33 + 18 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5028
SELECT ALL - COUNT( * ) * - 2 * - - 43 - + 72 AS col0, + 43
----
14
43

skipif mysql # not compatible
query II rowsort label-5028
SELECT ALL - COUNT ( * ) * - 2 * - - 43 - + 72 AS col0, + 43
----
14
43

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5030
SELECT NULLIF ( - 81, - CAST( + NULLIF ( 50, 11 * 90 / - 64 + - 73 + - 19 ) AS SIGNED ) + - 58 + + 85 * 77 ) AS col0
----
-81

skipif mysql # not compatible
query I rowsort label-5030
SELECT NULLIF ( - 81, - CAST ( + NULLIF ( 50, 11 * 90 / - 64 + - 73 + - 19 ) AS INTEGER ) + - 58 + + 85 * 77 ) AS col0
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-5031
SELECT ALL + 98 * + COUNT( * ) col1
----
98

skipif mysql # not compatible
query I rowsort label-5031
SELECT ALL + 98 * + COUNT ( * ) col1
----
98

query I rowsort
SELECT COALESCE ( - CASE + - 94 WHEN - - 18 * 34 THEN NULL ELSE 36 END, 34, - 55 )
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-5033
SELECT ALL CASE - - MAX( ALL 31 ) WHEN - NULLIF ( - 5, 41 + 0 ) * 42 + - COUNT( * ) * - COALESCE ( COUNT( DISTINCT 36 ), + 49 ) - + 81 - - CASE 10 WHEN + 8 + 12 THEN + 7 WHEN ( - 94 ) / + 11 THEN - COUNT( * ) + 79 END * 26 THEN - 93 WHEN 89 THEN - 64 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5033
SELECT ALL CASE - - MAX ( ALL 31 ) WHEN - NULLIF ( - 5, 41 + 0 ) * 42 + - COUNT ( * ) * - COALESCE ( COUNT ( DISTINCT 36 ), + 49 ) - + 81 - - CASE 10 WHEN + 8 + 12 THEN + 7 WHEN ( - 94 ) / + 11 THEN - COUNT ( * ) + 79 END * 26 THEN - 93 WHEN 89 THEN - 64 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5034
SELECT DISTINCT - ( + + 80 ) * - COALESCE ( - - MIN( + 19 ), + - 3 ) * 69
----
104880

skipif mysql # not compatible
query I rowsort label-5034
SELECT DISTINCT - ( + + 80 ) * - COALESCE ( - - MIN ( + 19 ), + - 3 ) * 69
----
104880

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

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

query I rowsort
SELECT 37 * - + 72 * 1
----
-2664

onlyif mysql # aggregate syntax: 
query I rowsort label-5037
SELECT ALL - ( + MAX( DISTINCT + + 47 ) ) * 9
----
-423

skipif mysql # not compatible
query I rowsort label-5037
SELECT ALL - ( + MAX ( DISTINCT + + 47 ) ) * 9
----
-423

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5038
SELECT 44 - COUNT( * ), + CASE - 17 WHEN - - CAST( NULL AS SIGNED ) THEN - 38 + - 73 END + - 79 col1
----
43
NULL

skipif mysql # not compatible
query II rowsort label-5038
SELECT 44 - COUNT ( * ), + CASE - 17 WHEN - - CAST ( NULL AS INTEGER ) THEN - 38 + - 73 END + - 79 col1
----
43
NULL

query II rowsort
SELECT 40 AS col2, ( + 55 ) * 62 AS col1
----
40
3410

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5040
SELECT 18 + NULLIF ( + COUNT( * ), 89 ) DIV + 17 AS col1
----
18

skipif mysql # not compatible
query I rowsort label-5040
SELECT 18 + NULLIF ( + COUNT ( * ), 89 ) / + 17 AS col1
----
18

query II rowsort
SELECT 16 AS col2, + 11
----
16
11

query I rowsort
SELECT 27 * - - 61 col2
----
1647

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

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

query II rowsort
SELECT + ( 32 ) AS col2, - 33 col1
----
32
-33

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

skipif mysql # not compatible
query I rowsort label-5045
SELECT ALL - COUNT ( * ) + - 91 AS col1
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-5046
SELECT ALL - - 33 + 8 + MIN( ALL + - 32 )
----
9

skipif mysql # not compatible
query I rowsort label-5046
SELECT ALL - - 33 + 8 + MIN ( ALL + - 32 )
----
9

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

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

query I rowsort
SELECT ALL - 26 + - - 89 col0
----
63

query II rowsort
SELECT - 31 AS col0, 98 col0
----
-31
98

query I rowsort
SELECT ALL - - 57 + 18 AS col2
----
75

onlyif mysql # DIV for integer division: 
query II rowsort label-5051
SELECT ALL - + 92 AS col1, 17 DIV 21 * - 35 * 68
----
-92
0

skipif mysql # not compatible
query II rowsort label-5051
SELECT ALL - + 92 AS col1, 17 / 21 * - 35 * 68
----
-92
0

query I rowsort
SELECT DISTINCT 14 - - 27 AS col2
----
41

query II rowsort
SELECT ALL + 50 - + 92 AS col1, + 60 AS col1
----
-42
60

query II rowsort
SELECT 93 * + + 80, - 68 + - 42 + - + 49 AS col2
----
7440
-159

onlyif mysql # aggregate syntax: 
query II rowsort label-5055
SELECT ALL - MAX( + 30 ) AS col2, + 57
----
-30
57

skipif mysql # not compatible
query II rowsort label-5055
SELECT ALL - MAX ( + 30 ) AS col2, + 57
----
-30
57

query I rowsort
SELECT DISTINCT 96 * - 17 col2
----
-1632

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

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

query I rowsort
SELECT - ( - 46 ) * + COALESCE ( + 55, 8 + - 50 ) + - 25 * + - 12 AS col0
----
2830

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5059
SELECT 30 * - CAST( + - 74 AS SIGNED ) + + 5 * - + NULLIF ( + 73, - + 91 + 77 * - 21 * - 5 * 65 * + - 7 )
----
1855

skipif mysql # not compatible
query I rowsort label-5059
SELECT 30 * - CAST ( + - 74 AS INTEGER ) + + 5 * - + NULLIF ( + 73, - + 91 + 77 * - 21 * - 5 * 65 * + - 7 )
----
1855

onlyif mysql # aggregate syntax: 
query I rowsort label-5060
SELECT DISTINCT 60 * - CASE - 32 WHEN - 23 THEN NULL WHEN - + COUNT( * ) * + COUNT( * ) + + COUNT( - 39 ) THEN 45 + - 90 END / 50 * - 48 * + 50 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5060
SELECT DISTINCT 60 * - CASE - 32 WHEN - 23 THEN NULL WHEN - + COUNT ( * ) * + COUNT ( * ) + + COUNT ( - 39 ) THEN 45 + - 90 END / 50 * - 48 * + 50 AS col1
----
NULL

query II rowsort
SELECT ALL - ( + 16 ) AS col0, + 27
----
-16
27

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5063
SELECT ALL + NULLIF ( - MIN( + 4 ), + 25 ) DIV - 16 * - + 57 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5063
SELECT ALL + NULLIF ( - MIN ( + 4 ), + 25 ) / - 16 * - + 57 AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5064
SELECT COALESCE ( + 65, 41 ) DIV + MAX( + ( 25 ) ) AS col2
----
2

skipif mysql # not compatible
query I rowsort label-5064
SELECT COALESCE ( + 65, 41 ) / + MAX ( + ( 25 ) ) AS col2
----
2

query II rowsort
SELECT 72 * - 57, 91 AS col1
----
-4104
91

query I rowsort
SELECT ALL - 67 + + - 64 AS col0
----
-131

query I rowsort
SELECT ALL 53 + + 35 AS col0
----
88

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5069
SELECT - ( - CASE - + ( - 30 ) WHEN - + NULLIF ( - 85, + AVG ( - - 35 ) * + ( - COUNT( * ) ) ) THEN - - 92 + + - 19 - 71 END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5069
SELECT - ( - CASE - + ( - 30 ) WHEN - + NULLIF ( - 85, + AVG ( - - 35 ) * + ( - COUNT ( * ) ) ) THEN - - 92 + + - 19 - 71 END ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5070
SELECT ALL + COUNT( * ) + + 0 - - - 3 / - CAST( NULL AS DECIMAL ) - + - 13 - + + 0 / - 41 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5070
SELECT ALL + COUNT ( * ) + + 0 - - - 3 / - CAST ( NULL AS REAL ) - + - 13 - + + 0 / - 41 AS col2
----
NULL

query I rowsort
SELECT 6 * 67 * 26 col2
----
10452

onlyif mysql # aggregate syntax: 
query II rowsort label-5072
SELECT - MAX( DISTINCT 91 ) AS col2, 14
----
-91
14

skipif mysql # not compatible
query II rowsort label-5072
SELECT - MAX ( DISTINCT 91 ) AS col2, 14
----
-91
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5073
SELECT DISTINCT - 28 + ( - COUNT( * ) ) * - CAST( NULL AS SIGNED ) * + ( + 41 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5073
SELECT DISTINCT - 28 + ( - COUNT ( * ) ) * - CAST ( NULL AS INTEGER ) * + ( + 41 )
----
NULL

query I rowsort
SELECT - 84 * - 87 AS col2
----
7308

query II rowsort
SELECT - + ( + 50 ), - 70 AS col1
----
-50
-70

onlyif mysql # DIV for integer division: 
query II rowsort label-5076
SELECT + 50 DIV 70 AS col2, 78
----
0
78

skipif mysql # not compatible
query II rowsort label-5076
SELECT + 50 / 70 AS col2, 78
----
0
78

query II rowsort
SELECT ALL - 34 - + 56 AS col0, - 1 AS col2
----
-90
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5078
SELECT DISTINCT 98 - - + MAX( DISTINCT - + 41 ) AS col2
----
57

skipif mysql # not compatible
query I rowsort label-5078
SELECT DISTINCT 98 - - + MAX ( DISTINCT - + 41 ) AS col2
----
57

query I rowsort
SELECT DISTINCT - ( 32 ) AS col0
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-5080
SELECT ALL + 50 * - - 79 - - COALESCE ( + COUNT( * ), - NULLIF ( - 44, - + 59 + - + 26 * - 8 ), + 80 ) + - 35 col1
----
3916

skipif mysql # not compatible
query I rowsort label-5080
SELECT ALL + 50 * - - 79 - - COALESCE ( + COUNT ( * ), - NULLIF ( - 44, - + 59 + - + 26 * - 8 ), + 80 ) + - 35 col1
----
3916

onlyif mysql # aggregate syntax: 
query I rowsort label-5081
SELECT 31 * + + COALESCE ( COALESCE ( 40, COUNT( * ) + + 78 + COUNT( * ), - COUNT( * ) ), - 50 + - SUM( - - 27 ) ) AS col2
----
1240

skipif mysql # not compatible
query I rowsort label-5081
SELECT 31 * + + COALESCE ( COALESCE ( 40, COUNT ( * ) + + 78 + COUNT ( * ), - COUNT ( * ) ), - 50 + - SUM ( - - 27 ) ) AS col2
----
1240

query I rowsort
SELECT ALL + 63 * - 9
----
-567

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5083
SELECT + 33 * + COUNT( * ) - 74 / CAST( NULL AS SIGNED ) * - 90
----
NULL

skipif mysql # not compatible
query I rowsort label-5083
SELECT + 33 * + COUNT ( * ) - 74 / CAST ( NULL AS INTEGER ) * - 90
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5084
SELECT + MAX( ALL - ( + - 23 ) ) col2
----
23

skipif mysql # not compatible
query I rowsort label-5084
SELECT + MAX ( ALL - ( + - 23 ) ) col2
----
23

onlyif mysql # DIV for integer division: 
query I rowsort label-5085
SELECT 93 DIV - 38 col1
----
-2

skipif mysql # not compatible
query I rowsort label-5085
SELECT 93 / - 38 col1
----
-2

query I rowsort
SELECT 2 + - + 92 + - 22 * - - 91 AS col2
----
-2092

query I rowsort
SELECT 38 * 99
----
3762

onlyif mysql # aggregate syntax: 
query I rowsort label-5088
SELECT DISTINCT - COUNT( * ) * 32 AS col2
----
-32

skipif mysql # not compatible
query I rowsort label-5088
SELECT DISTINCT - COUNT ( * ) * 32 AS col2
----
-32

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

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

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

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

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

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

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

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

query I rowsort
SELECT ALL 60 * 85 + + 20 * - 23
----
4640

onlyif mysql # aggregate syntax: 
query I rowsort label-5094
SELECT COUNT( - 18 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5094
SELECT COUNT ( - 18 ) AS col2
----
1

query I rowsort
SELECT + 66 + + 30
----
96

query II rowsort
SELECT - 77 * 70 * 21 AS col2, 57
----
-113190
57

onlyif mysql # aggregate syntax: 
query I rowsort label-5097
SELECT 63 * COUNT( * ) - + MIN( DISTINCT + + 76 ) * - 51 col1
----
3939

skipif mysql # not compatible
query I rowsort label-5097
SELECT 63 * COUNT ( * ) - + MIN ( DISTINCT + + 76 ) * - 51 col1
----
3939

onlyif mysql # aggregate syntax: 
query I rowsort label-5098
SELECT MIN( + 73 ) col1
----
73

skipif mysql # not compatible
query I rowsort label-5098
SELECT MIN ( + 73 ) col1
----
73

query I rowsort
SELECT ALL 41 + - + 99
----
-58

query I rowsort
SELECT + 47 + + 38 AS col1
----
85

onlyif mysql # DIV for integer division: 
query II rowsort label-5101
SELECT ALL - 31 AS col2, 17 DIV + 1
----
-31
17

skipif mysql # not compatible
query II rowsort label-5101
SELECT ALL - 31 AS col2, 17 / + 1
----
-31
17

query I rowsort
SELECT ALL - - 70 + - + 99 AS col2
----
-29

query I rowsort
SELECT ALL - 99 + 39 AS col0
----
-60

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5104
SELECT - - ( - 55 ) DIV - MAX( + + 89 ) * + - ( + 98 ) DIV + - 76 + + 62 AS col0, + 73
----
62
73

skipif mysql # not compatible
query II rowsort label-5104
SELECT - - ( - 55 ) / - MAX ( + + 89 ) * + - ( + 98 ) / + - 76 + + 62 AS col0, + 73
----
62
73

query II rowsort
SELECT + NULLIF ( + 93, - 81 ) * - 69, 43 AS col0
----
-6417
43

query I rowsort
SELECT + 21 + 13 AS col0
----
34

query II rowsort
SELECT ALL 56, ( ( + 66 ) ) * 39 AS col2
----
56
2574

onlyif mysql # aggregate syntax: 
query I rowsort label-5108
SELECT + COALESCE ( - 6, + ( - 19 ), - COUNT( * ) ) + - 11 * + 19 col1
----
-215

skipif mysql # not compatible
query I rowsort label-5108
SELECT + COALESCE ( - 6, + ( - 19 ), - COUNT ( * ) ) + - 11 * + 19 col1
----
-215

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5109
SELECT ALL 4 - - - 4 + 0 - - 79 + - CAST( NULL AS SIGNED ) + - - 74 / + 82 * 6 * - 32 - + ( + MIN( - - 28 ) ) * + - MAX( ALL 90 ) * + 9 + - CASE - 57 WHEN + CAST( - 11 AS SIGNED ) THEN NULL WHEN 2 * + MAX( - CAST( NULL AS SIGNED ) ) THEN - 8 / MIN( ( 6 ) ) WHEN + 7 + 24 THEN 34 + - 85 * + CASE + 76 * - 34 WHEN - 91 THEN 8 * 24 END ELSE NULL END * 42
----
NULL

skipif mysql # not compatible
query I rowsort label-5109
SELECT ALL 4 - - - 4 + 0 - - 79 + - CAST ( NULL AS INTEGER ) + - - 74 / + 82 * 6 * - 32 - + ( + MIN ( - - 28 ) ) * + - MAX ( ALL 90 ) * + 9 + - CASE - 57 WHEN + CAST ( - 11 AS INTEGER ) THEN NULL WHEN 2 * + MAX ( - CAST ( NULL AS INTEGER ) ) THEN - 8 / MIN ( ( 6 ) ) WHEN + 7 + 24 THEN 34 + - 85 * + CASE + 76 * - 34 WHEN - 91 THEN 8 * 24 END ELSE NULL END * 42
----
NULL

query I rowsort
SELECT ALL - 83 - - 54
----
-29

query I rowsort
SELECT DISTINCT + 72 * + + ( - + 72 ) + - + 14 * + 16
----
-5408

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

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

query I rowsort
SELECT + + 17 * - 81
----
-1377

query I rowsort
SELECT - - ( - + CASE - + 64 WHEN - + 10 + - 64 * + 95 THEN + - 33 END ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5115
SELECT - 19 * - CAST( NULL AS SIGNED ) + + - 31 AS col0, - 97 AS col0
----
NULL
-97

skipif mysql # not compatible
query II rowsort label-5115
SELECT - 19 * - CAST ( NULL AS INTEGER ) + + - 31 AS col0, - 97 AS col0
----
NULL
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-5116
SELECT - 50 DIV + 8
----
-6

skipif mysql # not compatible
query I rowsort label-5116
SELECT - 50 / + 8
----
-6

onlyif mysql # DIV for integer division: 
query I rowsort label-5117
SELECT - 44 DIV 72 * 68 + 62 + + + 17 * + 25 AS col1
----
487

skipif mysql # not compatible
query I rowsort label-5117
SELECT - 44 / 72 * 68 + 62 + + + 17 * + 25 AS col1
----
487

query I rowsort
SELECT ( ( 63 ) ) AS col2
----
63

query I rowsort
SELECT - 96 * 64
----
-6144

onlyif mysql # DIV for integer division: 
query I rowsort label-5120
SELECT ALL + 66 DIV - 82 DIV + 69 DIV + ( - 41 )
----
0

skipif mysql # not compatible
query I rowsort label-5120
SELECT ALL + 66 / - 82 / + 69 / + ( - 41 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5121
SELECT ALL + 36 * - CASE + 14 WHEN ( + SUM( 0 ) ) THEN NULL WHEN - + 60 THEN + - 94 END + - 28
----
NULL

skipif mysql # not compatible
query I rowsort label-5121
SELECT ALL + 36 * - CASE + 14 WHEN ( + SUM ( 0 ) ) THEN NULL WHEN - + 60 THEN + - 94 END + - 28
----
NULL

query I rowsort
SELECT DISTINCT 43 * + 88 AS col1
----
3784

onlyif mysql # aggregate syntax: 
query I rowsort label-5123
SELECT 30 * + COALESCE ( + COUNT( ALL - - 75 ), + 74 ) + - ( + 58 ) * NULLIF ( - SUM( - 99 ), - + 55 / - CASE MIN( ALL ( 96 ) ) WHEN 15 + - 16 THEN - 27 + - 2 * 23 WHEN + 25 * + 71 - - COUNT( * ) THEN 35 ELSE + 47 * 75 END - 5 ) AS col1
----
-5712

skipif mysql # not compatible
query I rowsort label-5123
SELECT 30 * + COALESCE ( + COUNT ( ALL - - 75 ), + 74 ) + - ( + 58 ) * NULLIF ( - SUM ( - 99 ), - + 55 / - CASE MIN ( ALL ( 96 ) ) WHEN 15 + - 16 THEN - 27 + - 2 * 23 WHEN + 25 * + 71 - - COUNT ( * ) THEN 35 ELSE + 47 * 75 END - 5 ) AS col1
----
-5712

onlyif mysql # DIV for integer division: 
query I rowsort label-5124
SELECT DISTINCT - 3 * + - 86 DIV + 84 + - 23 * + 4 * - 90 - - 4
----
8287

skipif mysql # not compatible
query I rowsort label-5124
SELECT DISTINCT - 3 * + - 86 / + 84 + - 23 * + 4 * - 90 - - 4
----
8287

query I rowsort
SELECT ALL + ( 87 ) * + 39 + + 92 AS col0
----
3485

onlyif mysql # DIV for integer division: 
query I rowsort label-5126
SELECT - 78 DIV 11 AS col2
----
-7

skipif mysql # not compatible
query I rowsort label-5126
SELECT - 78 / 11 AS col2
----
-7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5127
SELECT CASE + - 28 WHEN + COUNT( * ) + + CAST( - 44 AS SIGNED ) THEN + ( MAX( DISTINCT + CAST( NULL AS SIGNED ) ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-5127
SELECT CASE + - 28 WHEN + COUNT ( * ) + + CAST ( - 44 AS INTEGER ) THEN + ( MAX ( DISTINCT + CAST ( NULL AS INTEGER ) ) ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5128
SELECT DISTINCT CASE 58 WHEN - - ( - 21 ) THEN + 81 * - NULLIF ( - 48, - 46 + - + 40 + + COALESCE ( - 44, - + 70 ) ) - + COALESCE ( COUNT( * ), + 52 * 68 + 64, 8 * 14 ) + + 71 WHEN 89 THEN + ( + 64 ) - 4 END * 6 + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-5128
SELECT DISTINCT CASE 58 WHEN - - ( - 21 ) THEN + 81 * - NULLIF ( - 48, - 46 + - + 40 + + COALESCE ( - 44, - + 70 ) ) - + COALESCE ( COUNT ( * ), + 52 * 68 + 64, 8 * 14 ) + + 71 WHEN 89 THEN + ( + 64 ) - 4 END * 6 + COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5129
SELECT COALESCE ( - 99, CAST( NULL AS SIGNED ) + - + NULLIF ( + + 28, + 54 ), + 87 ) col1
----
-99

skipif mysql # not compatible
query I rowsort label-5129
SELECT COALESCE ( - 99, CAST ( NULL AS INTEGER ) + - + NULLIF ( + + 28, + 54 ), + 87 ) col1
----
-99

query I rowsort
SELECT ALL 73 * + 94 + + + 25 col0
----
6887

onlyif mysql # aggregate syntax: 
query I rowsort label-5131
SELECT CASE MAX( 8 ) WHEN + NULLIF ( - 63, - 66 ) * 15 / + COUNT( * ) + - - 63 THEN - ( - 34 ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5131
SELECT CASE MAX ( 8 ) WHEN + NULLIF ( - 63, - 66 ) * 15 / + COUNT ( * ) + - - 63 THEN - ( - 34 ) END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5132
SELECT + - 34 + - + MAX( ALL NULLIF ( - 99, - + CAST( NULL AS SIGNED ) ) )
----
65

skipif mysql # not compatible
query I rowsort label-5132
SELECT + - 34 + - + MAX ( ALL NULLIF ( - 99, - + CAST ( NULL AS INTEGER ) ) )
----
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5133
SELECT ALL - 50 * + 1 / + 47 - - + CAST( NULL AS SIGNED ) + + 72 - + + 62 / + CASE 87 WHEN - CAST( NULL AS SIGNED ) THEN + 56 * 21 / + 9 ELSE - - COUNT( * ) END * - + NULLIF ( - 82, ( 30 ) + COUNT( * ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5133
SELECT ALL - 50 * + 1 / + 47 - - + CAST ( NULL AS INTEGER ) + + 72 - + + 62 / + CASE 87 WHEN - CAST ( NULL AS INTEGER ) THEN + 56 * 21 / + 9 ELSE - - COUNT ( * ) END * - + NULLIF ( - 82, ( 30 ) + COUNT ( * ) ) AS col1
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5135
SELECT ALL COUNT( * ) * - COUNT( * ) * - 71 AS col0
----
71

skipif mysql # not compatible
query I rowsort label-5135
SELECT ALL COUNT ( * ) * - COUNT ( * ) * - 71 AS col0
----
71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5136
SELECT + CAST( NULL AS SIGNED ) * - 54 + 19 + - 61 + + NULLIF ( - - 97, 21 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5136
SELECT + CAST ( NULL AS INTEGER ) * - 54 + 19 + - 61 + + NULLIF ( - - 97, 21 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5137
SELECT + SUM( + - 12 ) * + NULLIF ( + 56, + + 77 * - 92 )
----
-672

skipif mysql # not compatible
query I rowsort label-5137
SELECT + SUM ( + - 12 ) * + NULLIF ( + 56, + + 77 * - 92 )
----
-672

onlyif mysql # aggregate syntax: 
query I rowsort label-5138
SELECT ALL + NULLIF ( + COUNT( DISTINCT - 14 ), + 0 ) - + - 86 + - - 93 + + 8 + - 86 * + - 8 * - ( 90 ) AS col0
----
-61732

skipif mysql # not compatible
query I rowsort label-5138
SELECT ALL + NULLIF ( + COUNT ( DISTINCT - 14 ), + 0 ) - + - 86 + - - 93 + + 8 + - 86 * + - 8 * - ( 90 ) AS col0
----
-61732

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5139
SELECT + - 7 * NULLIF ( NULLIF ( - 82, NULLIF ( 97, - - ( - 99 ) ) - 75 ), CASE 68 WHEN + 92 / 66 THEN + CASE - COUNT( * ) WHEN COUNT( - COALESCE ( - 19, CAST( 94 AS SIGNED ) / + 36 ) ) * COALESCE ( + 84, + 45, 36 + + CASE + 77 + + 75 WHEN - 4 THEN - AVG ( DISTINCT - ( - 72 ) ) * + COUNT( * ) END * + COUNT( * ) ) THEN + COUNT( * ) * - 16 END WHEN - SUM( ALL + 40 ) * CASE ( - 48 ) WHEN + COUNT( * ) THEN - 3 - 81 * - COUNT( * ) WHEN NULLIF ( 50, + 0 * - 28 ) * 61 + + ( - MIN( DISTINCT 18 ) ) THEN + 53 END THEN + 32 ELSE NULL END * 79 ) * + 39 col0
----
22386

skipif mysql # not compatible
query I rowsort label-5139
SELECT + - 7 * NULLIF ( NULLIF ( - 82, NULLIF ( 97, - - ( - 99 ) ) - 75 ), CASE 68 WHEN + 92 / 66 THEN + CASE - COUNT ( * ) WHEN COUNT ( - COALESCE ( - 19, CAST ( 94 AS INTEGER ) / + 36 ) ) * COALESCE ( + 84, + 45, 36 + + CASE + 77 + + 75 WHEN - 4 THEN - AVG ( DISTINCT - ( - 72 ) ) * + COUNT ( * ) END * + COUNT ( * ) ) THEN + COUNT ( * ) * - 16 END WHEN - SUM ( ALL + 40 ) * CASE ( - 48 ) WHEN + COUNT ( * ) THEN - 3 - 81 * - COUNT ( * ) WHEN NULLIF ( 50, + 0 * - 28 ) * 61 + + ( - MIN ( DISTINCT 18 ) ) THEN + 53 END THEN + 32 ELSE NULL END * 79 ) * + 39 col0
----
22386

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

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

query I rowsort
SELECT ALL 38 - - 35 + + 40 AS col2
----
113

onlyif mysql # DIV for integer division: 
query I rowsort label-5142
SELECT + 8 DIV - 89 col1
----
0

skipif mysql # not compatible
query I rowsort label-5142
SELECT + 8 / - 89 col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5143
SELECT - CAST( - 8 AS SIGNED ) * - - 86 + + 47 col1, - 80 + COUNT( * ) AS col0
----
735
-79

skipif mysql # not compatible
query II rowsort label-5143
SELECT - CAST ( - 8 AS INTEGER ) * - - 86 + + 47 col1, - 80 + COUNT ( * ) AS col0
----
735
-79

query I rowsort
SELECT - 95 * 75 + 86 * + 25 AS col1
----
-4975

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5146
SELECT + 20 - - - COUNT( * ) AS col0
----
19

skipif mysql # not compatible
query I rowsort label-5146
SELECT + 20 - - - COUNT ( * ) AS col0
----
19

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5148
SELECT ( + 11 ) * COUNT( * ) * - COUNT( DISTINCT + ( + 52 ) ) * - MIN( DISTINCT 50 ) * + SUM( + 22 )
----
12100

skipif mysql # not compatible
query I rowsort label-5148
SELECT ( + 11 ) * COUNT ( * ) * - COUNT ( DISTINCT + ( + 52 ) ) * - MIN ( DISTINCT 50 ) * + SUM ( + 22 )
----
12100

query I rowsort
SELECT DISTINCT - 98 + NULLIF ( + NULLIF ( - 63, - 6 ), - 37 + + + 27 + + 12 ) AS col1
----
-161

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5150
SELECT 80 DIV + + 96 DIV ( + COUNT( * ) ) + 63, COUNT( - - 33 ) + + COUNT( ALL - 20 ) AS col0
----
63
2

skipif mysql # not compatible
query II rowsort label-5150
SELECT 80 / + + 96 / ( + COUNT ( * ) ) + 63, COUNT ( - - 33 ) + + COUNT ( ALL - 20 ) AS col0
----
63
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5151
SELECT COUNT( * ) * + COUNT( * ) DIV - 66 - - SUM( + - 21 ) * - 43 AS col2
----
903

skipif mysql # not compatible
query I rowsort label-5151
SELECT COUNT ( * ) * + COUNT ( * ) / - 66 - - SUM ( + - 21 ) * - 43 AS col2
----
903

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

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

query I rowsort
SELECT ALL - 81 + 41
----
-40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5154
SELECT 37 + 42 - + CAST( NULL AS SIGNED ) + + 6
----
NULL

skipif mysql # not compatible
query I rowsort label-5154
SELECT 37 + 42 - + CAST ( NULL AS INTEGER ) + + 6
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5155
SELECT ALL - 8 DIV + - 95
----
0

skipif mysql # not compatible
query I rowsort label-5155
SELECT ALL - 8 / + - 95
----
0

query I rowsort
SELECT 72 * - - 93 AS col1
----
6696

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5157
SELECT 39, + CAST( 96 AS SIGNED ) AS col1, - 99 AS col2
----
39
96
-99

skipif mysql # not compatible
query III rowsort label-5157
SELECT 39, + CAST ( 96 AS INTEGER ) AS col1, - 99 AS col2
----
39
96
-99

query I rowsort
SELECT DISTINCT - + 48 * 93 AS col0
----
-4464

query I rowsort
SELECT 37 * - - 44
----
1628

query I rowsort
SELECT 81 * - 35 AS col2
----
-2835

onlyif mysql # aggregate syntax: 
query II rowsort label-5161
SELECT + 3 + MIN( 80 ), - ( - + CASE - 57 WHEN - 58 THEN + 11 ELSE NULL END ) * + 54 + 54 - - 87 * + CASE + 29 WHEN 65 - 58 * - MAX( - 35 ) THEN - 77 END - COALESCE ( ( + 70 ) + 24, ( + 52 ), - 48 + 35 ) AS col2
----
83
NULL

skipif mysql # not compatible
query II rowsort label-5161
SELECT + 3 + MIN ( 80 ), - ( - + CASE - 57 WHEN - 58 THEN + 11 ELSE NULL END ) * + 54 + 54 - - 87 * + CASE + 29 WHEN 65 - 58 * - MAX ( - 35 ) THEN - 77 END - COALESCE ( ( + 70 ) + 24, ( + 52 ), - 48 + 35 ) AS col2
----
83
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5162
SELECT DISTINCT + CAST( NULL AS DECIMAL ) * + 6 * - ( + COALESCE ( - COALESCE ( + MIN( ALL ( - + 3 ) ), + - 35 ), + + 27 + + + NULLIF ( COUNT( * ), - - 74 ) / + + 50 * 36 * 71 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5162
SELECT DISTINCT + CAST ( NULL AS REAL ) * + 6 * - ( + COALESCE ( - COALESCE ( + MIN ( ALL ( - + 3 ) ), + - 35 ), + + 27 + + + NULLIF ( COUNT ( * ), - - 74 ) / + + 50 * 36 * 71 ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5163
SELECT ( - 15 ) * - SUM( ALL - - 4 ) + - + 59
----
1

skipif mysql # not compatible
query I rowsort label-5163
SELECT ( - 15 ) * - SUM ( ALL - - 4 ) + - + 59
----
1

query I rowsort
SELECT 37 - + 25 col1
----
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5165
SELECT 39 + + 13 - + ( 56 ) + 7 + - + CASE - - 85 WHEN 24 THEN + CAST( NULL AS SIGNED ) + - - 21 END * + COUNT( * ) * CASE + + 18 WHEN - COALESCE ( 26, 33 + COUNT( 28 + + CAST( - 54 AS SIGNED ) * - 55 ), - 13 * - 6 + 5 * - 65, - 76 * 10 ) THEN NULL WHEN 83 THEN 38 * - NULLIF ( + 94 * - ( 7 * 22 ), ( - AVG ( 15 ) ) ) ELSE - 81 / + 39 - + COUNT( * ) END / 95 / - 65 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5165
SELECT 39 + + 13 - + ( 56 ) + 7 + - + CASE - - 85 WHEN 24 THEN + CAST ( NULL AS INTEGER ) + - - 21 END * + COUNT ( * ) * CASE + + 18 WHEN - COALESCE ( 26, 33 + COUNT ( 28 + + CAST ( - 54 AS INTEGER ) * - 55 ), - 13 * - 6 + 5 * - 65, - 76 * 10 ) THEN NULL WHEN 83 THEN 38 * - NULLIF ( + 94 * - ( 7 * 22 ), ( - AVG ( 15 ) ) ) ELSE - 81 / + 39 - + COUNT ( * ) END / 95 / - 65 AS col1
----
NULL

query I rowsort
SELECT 86 * - - 43 * 24
----
88752

onlyif mysql # aggregate syntax: 
query I rowsort label-5167
SELECT 29 + - MAX( ALL + COALESCE ( 39, 52, - - 30 + - 27 ) )
----
-10

skipif mysql # not compatible
query I rowsort label-5167
SELECT 29 + - MAX ( ALL + COALESCE ( 39, 52, - - 30 + - 27 ) )
----
-10

query I rowsort
SELECT 16 + - 44 AS col1
----
-28

query I rowsort
SELECT 9 + + 5 AS col2
----
14

query I rowsort
SELECT ALL + ( + 63 ) * - 24 * + 29 AS col1
----
-43848

onlyif mysql # DIV for integer division: 
query I rowsort label-5171
SELECT 39 DIV 74 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5171
SELECT 39 / 74 AS col0
----
0

query I rowsort
SELECT DISTINCT - + 1 + - + 9 * + - 54 AS col2
----
485

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5174
SELECT 31 DIV + NULLIF ( - ( - 4 ), + 97 * - - 82 ) AS col1
----
7

skipif mysql # not compatible
query I rowsort label-5174
SELECT 31 / + NULLIF ( - ( - 4 ), + 97 * - - 82 ) AS col1
----
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5175
SELECT ALL 85 + + + ( - MIN( ALL - 64 ) ) - SUM( + 99 ) * CAST( + + 69 AS SIGNED ) - - 88 + - 29 AS col0
----
-6623

skipif mysql # not compatible
query I rowsort label-5175
SELECT ALL 85 + + + ( - MIN ( ALL - 64 ) ) - SUM ( + 99 ) * CAST ( + + 69 AS INTEGER ) - - 88 + - 29 AS col0
----
-6623

query II rowsort
SELECT ALL 23 AS col0, - 69 * - + 89 AS col1
----
23
6141

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5177
SELECT 8 + COALESCE ( - COUNT( * ), - 31, - 90 DIV + 11 * + + COUNT( DISTINCT 62 ) + - 16 ) AS col0, + 36
----
7
36

skipif mysql # not compatible
query II rowsort label-5177
SELECT 8 + COALESCE ( - COUNT ( * ), - 31, - 90 / + 11 * + + COUNT ( DISTINCT 62 ) + - 16 ) AS col0, + 36
----
7
36

onlyif mysql # aggregate syntax: 
query I rowsort label-5178
SELECT ( + SUM( ALL - - 53 ) ) + 16
----
69

skipif mysql # not compatible
query I rowsort label-5178
SELECT ( + SUM ( ALL - - 53 ) ) + 16
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-5179
SELECT MIN( + - 49 ) + 97
----
48

skipif mysql # not compatible
query I rowsort label-5179
SELECT MIN ( + - 49 ) + 97
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-5180
SELECT 27 * + MIN( + 41 )
----
1107

skipif mysql # not compatible
query I rowsort label-5180
SELECT 27 * + MIN ( + 41 )
----
1107

query II rowsort
SELECT 0, 21 col0
----
0
21

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5182
SELECT + 35 DIV 47 * - + 81 + - + COUNT( * ), - 57 * - COUNT( * ) AS col0
----
-1
57

skipif mysql # not compatible
query II rowsort label-5182
SELECT + 35 / 47 * - + 81 + - + COUNT ( * ), - 57 * - COUNT ( * ) AS col0
----
-1
57

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

skipif mysql # not compatible
query I rowsort label-5183
SELECT ALL 25 + ( CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

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

skipif mysql # not compatible
query I rowsort label-5184
SELECT MIN ( ALL - - 20 )
----
20

query I rowsort
SELECT ALL - 4 * 2
----
-8

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5186
SELECT ALL + 50 - - 14 AS col0, NULLIF ( ( - + 24 ), - CAST( + - 47 AS SIGNED ) + - 29 ) AS col0
----
64
-24

skipif mysql # not compatible
query II rowsort label-5186
SELECT ALL + 50 - - 14 AS col0, NULLIF ( ( - + 24 ), - CAST ( + - 47 AS INTEGER ) + - 29 ) AS col0
----
64
-24

query II rowsort
SELECT ALL - 7 AS col1, 90 * - - 20 AS col2
----
-7
1800

query I rowsort
SELECT + 53 * + 73 * + 65 + + - 17 AS col0
----
251468

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5189
SELECT 81 * + COALESCE ( + 10, + 0 * + - 76 * 18 DIV + - MAX( ALL + + 14 ) ) AS col2
----
810

skipif mysql # not compatible
query I rowsort label-5189
SELECT 81 * + COALESCE ( + 10, + 0 * + - 76 * 18 / + - MAX ( ALL + + 14 ) ) AS col2
----
810

onlyif mysql # DIV for integer division: 
query I rowsort label-5190
SELECT ( 32 ) DIV - ( 77 ) + + COALESCE ( - + 99, 60 ) + - 89 DIV + 97 + + 48 AS col0
----
-51

skipif mysql # not compatible
query I rowsort label-5190
SELECT ( 32 ) / - ( 77 ) + + COALESCE ( - + 99, 60 ) + - 89 / + 97 + + 48 AS col0
----
-51

query I rowsort
SELECT - CASE 90 WHEN - 23 * - + 55 * - 43 THEN 32 + - 0 * + - 87 - - 8 + + 56 END
----
NULL

query I rowsort
SELECT + 50 * + 95 + + 74 AS col2
----
4824

query I rowsort
SELECT + 78 * + - 81
----
-6318

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5194
SELECT CAST( - ( MAX( + 48 ) ) AS SIGNED ) * + 11 + 95 AS col0, ( 95 ) AS col1
----
-433
95

skipif mysql # not compatible
query II rowsort label-5194
SELECT CAST ( - ( MAX ( + 48 ) ) AS INTEGER ) * + 11 + 95 AS col0, ( 95 ) AS col1
----
-433
95

onlyif mysql # DIV for integer division: 
query I rowsort label-5195
SELECT DISTINCT - - 21 DIV - 3
----
-7

skipif mysql # not compatible
query I rowsort label-5195
SELECT DISTINCT - - 21 / - 3
----
-7

query I rowsort
SELECT 75 * + 29 * 94 AS col0
----
204450

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5197
SELECT ALL - + CASE - 26 WHEN - 82 + - CASE + - COUNT( * ) WHEN + - 2 + + 78 * - + COUNT( * ) + + - 66 THEN + 83 ELSE + COUNT( * ) END / 98 + 98 - + 29 THEN + CAST( + + 76 AS SIGNED ) + - COUNT( * ) WHEN + 83 / 23 THEN 3 * + 6 - - COALESCE ( 85, + ( + CASE MAX( 84 ) WHEN 16 THEN 24 * 22 ELSE NULL END ) ) END * + 80 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5197
SELECT ALL - + CASE - 26 WHEN - 82 + - CASE + - COUNT ( * ) WHEN + - 2 + + 78 * - + COUNT ( * ) + + - 66 THEN + 83 ELSE + COUNT ( * ) END / 98 + 98 - + 29 THEN + CAST ( + + 76 AS INTEGER ) + - COUNT ( * ) WHEN + 83 / 23 THEN 3 * + 6 - - COALESCE ( 85, + ( + CASE MAX ( 84 ) WHEN 16 THEN 24 * 22 ELSE NULL END ) ) END * + 80 AS col2
----
NULL

query II rowsort
SELECT ALL - 64 AS col2, 57
----
-64
57

query II rowsort
SELECT 52 + + 96 AS col1, - 18
----
148
-18

query I rowsort
SELECT + 87 * + + 4 + + 84 + + COALESCE ( + - 37, - 44 + - 3, + 69 ) * ( 39 ) * + 45
----
-64503

query I rowsort
SELECT + 94 * - 61 * - - 11
----
-63074

onlyif mysql # aggregate syntax: 
query I rowsort label-5202
SELECT 44 * + + NULLIF ( COALESCE ( 37, COUNT( * ) ), + 7 + - COUNT( * ) * - 97 ) + + + 45
----
1673

skipif mysql # not compatible
query I rowsort label-5202
SELECT 44 * + + NULLIF ( COALESCE ( 37, COUNT ( * ) ), + 7 + - COUNT ( * ) * - 97 ) + + + 45
----
1673

query II rowsort
SELECT DISTINCT + 18, + ( + 70 ) AS col0
----
18
70

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5204
SELECT DISTINCT - - 49 + - NULLIF ( - - CAST( NULL AS DECIMAL ), - MAX( DISTINCT - 67 ) * AVG ( + 35 ) + - + 61 + + 17 - + 94 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5204
SELECT DISTINCT - - 49 + - NULLIF ( - - CAST ( NULL AS REAL ), - MAX ( DISTINCT - 67 ) * AVG ( + 35 ) + - + 61 + + 17 - + 94 )
----
NULL

query I rowsort
SELECT - 30 * 42 col1
----
-1260

query I rowsort
SELECT ALL - + 99 + - 52 AS col1
----
-151

onlyif mysql # aggregate syntax: 
query I rowsort label-5207
SELECT DISTINCT + + 37 + - - COUNT( ALL ( + 96 ) ) - - + 69 + + + ( + 96 )
----
203

skipif mysql # not compatible
query I rowsort label-5207
SELECT DISTINCT + + 37 + - - COUNT ( ALL ( + 96 ) ) - - + 69 + + + ( + 96 )
----
203

query I rowsort
SELECT ALL 83 + 15
----
98

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5209
SELECT ALL COALESCE ( - 87, - 4 * - 42, COUNT( * ) DIV - 55 )
----
-87

skipif mysql # not compatible
query I rowsort label-5209
SELECT ALL COALESCE ( - 87, - 4 * - 42, COUNT ( * ) / - 55 )
----
-87

query I rowsort
SELECT + 67 * + 93 AS col1
----
6231

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-5212
SELECT - 31 - 32 DIV 62 AS col2, 2 + + 22
----
-31
24

skipif mysql # not compatible
query II rowsort label-5212
SELECT - 31 - 32 / 62 AS col2, 2 + + 22
----
-31
24

onlyif mysql # aggregate syntax: 
query II rowsort label-5213
SELECT + 37 * - COUNT( * ), - MAX( DISTINCT + - 95 ) AS col0
----
-37
95

skipif mysql # not compatible
query II rowsort label-5213
SELECT + 37 * - COUNT ( * ), - MAX ( DISTINCT + - 95 ) AS col0
----
-37
95

query I rowsort
SELECT ALL 43 * + ( - 8 )
----
-344

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5215
SELECT ALL - CAST( NULL AS SIGNED ) - 48 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5215
SELECT ALL - CAST ( NULL AS INTEGER ) - 48 AS col1
----
NULL

query I rowsort
SELECT ALL 30 * + + 78 - CASE - 38 WHEN + - 61 * - 13 + 71 THEN NULL WHEN - 36 THEN - 69 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5217
SELECT + 49 * COUNT( * ) - - 32 + + 61
----
142

skipif mysql # not compatible
query I rowsort label-5217
SELECT + 49 * COUNT ( * ) - - 32 + + 61
----
142

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5218
SELECT + MIN( DISTINCT - 87 ) * 80 DIV + 92 col2
----
-75

skipif mysql # not compatible
query I rowsort label-5218
SELECT + MIN ( DISTINCT - 87 ) * 80 / + 92 col2
----
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-5219
SELECT 55 DIV + - 77 * - - 59 DIV + 21 - - - ( + - 11 )
----
11

skipif mysql # not compatible
query I rowsort label-5219
SELECT 55 / + - 77 * - - 59 / + 21 - - - ( + - 11 )
----
11

onlyif mysql # DIV for integer division: 
query I rowsort label-5220
SELECT ALL 29 DIV - 31
----
0

skipif mysql # not compatible
query I rowsort label-5220
SELECT ALL 29 / - 31
----
0

query I rowsort
SELECT ALL - + 18 * + + ( 12 ) col2
----
-216

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5222
SELECT ALL + 56 * - 47 - 55 DIV + CAST( 90 AS SIGNED ) + - MAX( ALL - - 80 ) + - COUNT( * ) DIV + ( + + 96 )
----
-2712

skipif mysql # not compatible
query I rowsort label-5222
SELECT ALL + 56 * - 47 - 55 / + CAST ( 90 AS INTEGER ) + - MAX ( ALL - - 80 ) + - COUNT ( * ) / + ( + + 96 )
----
-2712

onlyif mysql # aggregate syntax: 
query I rowsort label-5223
SELECT - 72 * - - ( + 53 ) * - COUNT( * ) + 35
----
3851

skipif mysql # not compatible
query I rowsort label-5223
SELECT - 72 * - - ( + 53 ) * - COUNT ( * ) + 35
----
3851

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5224
SELECT ALL + 50 * + CAST( NULL AS SIGNED ) + 90
----
NULL

skipif mysql # not compatible
query I rowsort label-5224
SELECT ALL + 50 * + CAST ( NULL AS INTEGER ) + 90
----
NULL

query I rowsort
SELECT - + 95 * - 49 col0
----
4655

onlyif mysql # aggregate syntax: 
query I rowsort label-5226
SELECT ALL - - COUNT( * ) * + 87 + + 85 AS col2
----
172

skipif mysql # not compatible
query I rowsort label-5226
SELECT ALL - - COUNT ( * ) * + 87 + + 85 AS col2
----
172

query I rowsort
SELECT - NULLIF ( + + ( + 15 ), - - 79 )
----
-15

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5228
SELECT - + 43 - + + COALESCE ( - SUM( + 55 ), - 70 ) * - - NULLIF ( - - 32, COUNT( * ) * 72 - - SUM( ALL - + CAST( NULL AS DECIMAL ) ) ) AS col2
----
1717

skipif mysql # not compatible
query I rowsort label-5228
SELECT - + 43 - + + COALESCE ( - SUM ( + 55 ), - 70 ) * - - NULLIF ( - - 32, COUNT ( * ) * 72 - - SUM ( ALL - + CAST ( NULL AS REAL ) ) ) AS col2
----
1717

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5229
SELECT ALL + 79 DIV + SUM( DISTINCT 28 ) AS col2
----
2

skipif mysql # not compatible
query I rowsort label-5229
SELECT ALL + 79 / + SUM ( DISTINCT 28 ) AS col2
----
2

query I rowsort
SELECT + - ( + 26 ) + - 2 AS col0
----
-28

query I rowsort
SELECT + 79 * - 45 * + 2
----
-7110

onlyif mysql # aggregate syntax: 
query I rowsort label-5232
SELECT ALL - COALESCE ( + 4, + + 72 ) + - + ( + COUNT( * ) ) AS col2
----
-5

skipif mysql # not compatible
query I rowsort label-5232
SELECT ALL - COALESCE ( + 4, + + 72 ) + - + ( + COUNT ( * ) ) AS col2
----
-5

query I rowsort
SELECT - 55 + - 98
----
-153

query I rowsort
SELECT - 31 + + 50 AS col1
----
19

query I rowsort
SELECT ALL - 49 - - - 46
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-5236
SELECT ALL + 49 - COUNT( * ) * 4
----
45

skipif mysql # not compatible
query I rowsort label-5236
SELECT ALL + 49 - COUNT ( * ) * 4
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-5237
SELECT - SUM( + 53 ) col1
----
-53

skipif mysql # not compatible
query I rowsort label-5237
SELECT - SUM ( + 53 ) col1
----
-53

query I rowsort
SELECT ALL ( ( - 94 ) ) AS col2
----
-94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5239
SELECT - CAST( - + 44 AS SIGNED ) + - 89 + + 75 AS col2
----
30

skipif mysql # not compatible
query I rowsort label-5239
SELECT - CAST ( - + 44 AS INTEGER ) + - 89 + + 75 AS col2
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-5240
SELECT + NULLIF ( 0, - COUNT( * ) ) + + COUNT( ALL + 63 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5240
SELECT + NULLIF ( 0, - COUNT ( * ) ) + + COUNT ( ALL + 63 ) AS col2
----
1

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5243
SELECT - NULLIF ( - NULLIF ( - COUNT( * ), + SUM( 22 ) ), - 25 ) * - 85 AS col0
----
85

skipif mysql # not compatible
query I rowsort label-5243
SELECT - NULLIF ( - NULLIF ( - COUNT ( * ), + SUM ( 22 ) ), - 25 ) * - 85 AS col0
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-5244
SELECT ALL + CASE - - COUNT( * ) WHEN - + 93 * + ( MAX( ALL + - 80 ) ) THEN + - 47 - 4 / - 71 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5244
SELECT ALL + CASE - - COUNT ( * ) WHEN - + 93 * + ( MAX ( ALL + - 80 ) ) THEN + - 47 - 4 / - 71 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5245
SELECT DISTINCT CASE - - ( + 99 ) WHEN + ( + SUM( + 79 ) ) THEN + + 2 * - 66 + - + 64 / + 77 END / + 76 + + - 64 + + + 25 + 30 + + 2 * + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5245
SELECT DISTINCT CASE - - ( + 99 ) WHEN + ( + SUM ( + 79 ) ) THEN + + 2 * - 66 + - + 64 / + 77 END / + 76 + + - 64 + + + 25 + 30 + + 2 * + COUNT ( * ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5246
SELECT ALL - - 19 DIV - - CAST( + 72 AS SIGNED ) + 61
----
61

skipif mysql # not compatible
query I rowsort label-5246
SELECT ALL - - 19 / - - CAST ( + 72 AS INTEGER ) + 61
----
61

query I rowsort
SELECT - + 32 * - + 23 + - + 62 AS col0
----
674

onlyif mysql # DIV for integer division: 
query I rowsort label-5248
SELECT DISTINCT 95 DIV + + 79 + + + 96
----
97

skipif mysql # not compatible
query I rowsort label-5248
SELECT DISTINCT 95 / + + 79 + + + 96
----
97

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5250
SELECT 14 * - CAST( - - 73 AS SIGNED )
----
-1022

skipif mysql # not compatible
query I rowsort label-5250
SELECT 14 * - CAST ( - - 73 AS INTEGER )
----
-1022

onlyif mysql # DIV for integer division: 
query I rowsort label-5251
SELECT ALL 59 DIV - 6
----
-9

skipif mysql # not compatible
query I rowsort label-5251
SELECT ALL 59 / - 6
----
-9

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

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

query I rowsort
SELECT ALL + 52 + + - 13
----
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5254
SELECT CAST( - 21 AS SIGNED ) + - 21 * + - SUM( + - ( + + 32 ) )
----
-693

skipif mysql # not compatible
query I rowsort label-5254
SELECT CAST ( - 21 AS INTEGER ) + - 21 * + - SUM ( + - ( + + 32 ) )
----
-693

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

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

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

skipif mysql # not compatible
query I rowsort label-5256
SELECT + COUNT ( * ) * + 72 + - - 70 AS col2
----
142

query I rowsort
SELECT ALL 5 + - + 75
----
-70

onlyif mysql # DIV for integer division: 
query I rowsort label-5258
SELECT - 88 * - CASE + 34 WHEN - 39 THEN NULL ELSE - 62 DIV + ( - ( - 8 ) ) END AS col1
----
-616

skipif mysql # not compatible
query I rowsort label-5258
SELECT - 88 * - CASE + 34 WHEN - 39 THEN NULL ELSE - 62 / + ( - ( - 8 ) ) END AS col1
----
-616

onlyif mysql # aggregate syntax: 
query II rowsort label-5259
SELECT 63 * - - 1 * - MIN( 75 ) col0, - ( + 48 ) AS col0
----
-4725
-48

skipif mysql # not compatible
query II rowsort label-5259
SELECT 63 * - - 1 * - MIN ( 75 ) col0, - ( + 48 ) AS col0
----
-4725
-48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5260
SELECT ALL 37 - - 44 * + + 72 * COALESCE ( + COALESCE ( + - COUNT( * ), 95, + 39, 69 - - 93 + - 23 + + 83 * - + 61 * CASE 19 WHEN - + 82 THEN AVG ( DISTINCT + 90 ) + - 94 * CAST( NULL AS DECIMAL ) ELSE 88 * COUNT( * ) END ), AVG ( - 39 ) * CAST( NULL AS SIGNED ) + 85 * + CASE - 92 + 15 WHEN + 69 * - CASE 59 WHEN - 54 THEN - NULLIF ( 29, COUNT( 69 ) + 74 ) + + 66 ELSE NULL END THEN 0 END ) * + ( - CAST( CASE COALESCE ( CAST( NULL AS DECIMAL ), 39, - ( 19 ) ) WHEN + 20 + + 19 THEN NULL ELSE 45 * SUM( - 53 ) END AS SIGNED ) ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5260
SELECT ALL 37 - - 44 * + + 72 * COALESCE ( + COALESCE ( + - COUNT ( * ), 95, + 39, 69 - - 93 + - 23 + + 83 * - + 61 * CASE 19 WHEN - + 82 THEN AVG ( DISTINCT + 90 ) + - 94 * CAST ( NULL AS REAL ) ELSE 88 * COUNT ( * ) END ), AVG ( - 39 ) * CAST ( NULL AS INTEGER ) + 85 * + CASE - 92 + 15 WHEN + 69 * - CASE 59 WHEN - 54 THEN - NULLIF ( 29, COUNT ( 69 ) + 74 ) + + 66 ELSE NULL END THEN 0 END ) * + ( - CAST ( CASE COALESCE ( CAST ( NULL AS REAL ), 39, - ( 19 ) ) WHEN + 20 + + 19 THEN NULL ELSE 45 * SUM ( - 53 ) END AS INTEGER ) ) col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5261
SELECT CAST( + 53 AS SIGNED ) * - 80 AS col2
----
-4240

skipif mysql # not compatible
query I rowsort label-5261
SELECT CAST ( + 53 AS INTEGER ) * - 80 AS col2
----
-4240

query I rowsort
SELECT ALL - 17 - 88 + 61 + 79 col1
----
35

query I rowsort
SELECT DISTINCT + 63 * - 9
----
-567

query I rowsort
SELECT 66 * - ( - + 55 )
----
3630

onlyif mysql # aggregate syntax: 
query I rowsort label-5265
SELECT ( - 88 ) * COALESCE ( - + COUNT( * ), + 75 * + NULLIF ( + + 58, - + 66 ) + 26 + - 33 + - 93, NULLIF ( COALESCE ( - COUNT( + 40 ), 43 + + 45 + + 34 * - 76 * 28 + - 23 * - 42 * - 24, 5 ), - COUNT( * ) ) ) * + 49 AS col2
----
4312

skipif mysql # not compatible
query I rowsort label-5265
SELECT ( - 88 ) * COALESCE ( - + COUNT ( * ), + 75 * + NULLIF ( + + 58, - + 66 ) + 26 + - 33 + - 93, NULLIF ( COALESCE ( - COUNT ( + 40 ), 43 + + 45 + + 34 * - 76 * 28 + - 23 * - 42 * - 24, 5 ), - COUNT ( * ) ) ) * + 49 AS col2
----
4312

onlyif mysql # aggregate syntax: 
query I rowsort label-5266
SELECT COUNT( * ) + COUNT( + 73 ) * - 80 * + COUNT( 87 ) AS col2
----
-79

skipif mysql # not compatible
query I rowsort label-5266
SELECT COUNT ( * ) + COUNT ( + 73 ) * - 80 * + COUNT ( 87 ) AS col2
----
-79

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5268
SELECT MIN( ALL + 30 ) DIV COUNT( DISTINCT 92 ) col1
----
30

skipif mysql # not compatible
query I rowsort label-5268
SELECT MIN ( ALL + 30 ) / COUNT ( DISTINCT 92 ) col1
----
30

query I rowsort
SELECT ALL + 46 * - + 20 AS col0
----
-920

onlyif mysql # aggregate syntax: 
query II rowsort label-5270
SELECT DISTINCT 65 * + 19 AS col1, COUNT( * ) * - - ( 68 ) AS col1
----
1235
68

skipif mysql # not compatible
query II rowsort label-5270
SELECT DISTINCT 65 * + 19 AS col1, COUNT ( * ) * - - ( 68 ) AS col1
----
1235
68

onlyif mysql # DIV for integer division: 
query I rowsort label-5271
SELECT 81 + 61 + + 78 DIV + 77
----
143

skipif mysql # not compatible
query I rowsort label-5271
SELECT 81 + 61 + + 78 / + 77
----
143

onlyif mysql # aggregate syntax: 
query II rowsort label-5272
SELECT 90 + + + 76 AS col0, COUNT( * ) + - - 14 AS col0
----
166
15

skipif mysql # not compatible
query II rowsort label-5272
SELECT 90 + + + 76 AS col0, COUNT ( * ) + - - 14 AS col0
----
166
15

onlyif mysql # DIV for integer division: 
query I rowsort label-5273
SELECT ALL - 30 + 17 DIV + - ( + 62 ) * 4
----
-30

skipif mysql # not compatible
query I rowsort label-5273
SELECT ALL - 30 + 17 / + - ( + 62 ) * 4
----
-30

onlyif mysql # DIV for integer division: 
query I rowsort label-5274
SELECT - 81 * + - 73 + - 69 DIV 88 + 55 - + 88 * - - 88 + + 77 AS col1
----
-1699

skipif mysql # not compatible
query I rowsort label-5274
SELECT - 81 * + - 73 + - 69 / 88 + 55 - + 88 * - - 88 + + 77 AS col1
----
-1699

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

skipif mysql # not compatible
query I rowsort label-5275
SELECT DISTINCT - CAST ( + 78 AS INTEGER ) AS col2
----
-78

query I rowsort
SELECT DISTINCT - 37 + + 13 AS col1
----
-24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5277
SELECT DISTINCT ( + ( CAST( NULL AS SIGNED ) ) ) + + COUNT( * ) + MAX( 82 ) * ( + - 26 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5277
SELECT DISTINCT ( + ( CAST ( NULL AS INTEGER ) ) ) + + COUNT ( * ) + MAX ( 82 ) * ( + - 26 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5278
SELECT DISTINCT + 45 * + MIN( DISTINCT 53 ) AS col2
----
2385

skipif mysql # not compatible
query I rowsort label-5278
SELECT DISTINCT + 45 * + MIN ( DISTINCT 53 ) AS col2
----
2385

onlyif mysql # aggregate syntax: 
query II rowsort label-5279
SELECT DISTINCT - - COUNT( * ) + + + COALESCE ( + 26, - 11 - + 67 ) AS col2, + 92 * 83 * 31
----
27
236716

skipif mysql # not compatible
query II rowsort label-5279
SELECT DISTINCT - - COUNT ( * ) + + + COALESCE ( + 26, - 11 - + 67 ) AS col2, + 92 * 83 * 31
----
27
236716

onlyif mysql # aggregate syntax: 
query I rowsort label-5280
SELECT - CASE - COALESCE ( - COUNT( * ), 44 * - 45 + - + SUM( DISTINCT 68 ) * - MAX( + 13 ) * - 77 ) WHEN - + 83 / + + COUNT( * ) * - ( 92 ) + - + 80 THEN NULL WHEN - 95 THEN + - 80 ELSE NULL END * 31
----
NULL

skipif mysql # not compatible
query I rowsort label-5280
SELECT - CASE - COALESCE ( - COUNT ( * ), 44 * - 45 + - + SUM ( DISTINCT 68 ) * - MAX ( + 13 ) * - 77 ) WHEN - + 83 / + + COUNT ( * ) * - ( 92 ) + - + 80 THEN NULL WHEN - 95 THEN + - 80 ELSE NULL END * 31
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5281
SELECT ( - + 11 ) * + - COUNT( * ) + + 30 + COUNT( * ) * + - 41 * + 88
----
-3567

skipif mysql # not compatible
query I rowsort label-5281
SELECT ( - + 11 ) * + - COUNT ( * ) + + 30 + COUNT ( * ) * + - 41 * + 88
----
-3567

onlyif mysql # aggregate syntax: 
query I rowsort label-5282
SELECT + 86 + + COUNT( * ) * COUNT( * )
----
87

skipif mysql # not compatible
query I rowsort label-5282
SELECT + 86 + + COUNT ( * ) * COUNT ( * )
----
87

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5283
SELECT ALL + + COUNT( + 73 ) - - - 48 DIV - 99 AS col1, + 60 * 74 AS col1
----
1
4440

skipif mysql # not compatible
query II rowsort label-5283
SELECT ALL + + COUNT ( + 73 ) - - - 48 / - 99 AS col1, + 60 * 74 AS col1
----
1
4440

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5284
SELECT ALL - 76 AS col2, - 72 + + 50 + - COUNT( * ) DIV + + 67
----
-76
-22

skipif mysql # not compatible
query II rowsort label-5284
SELECT ALL - 76 AS col2, - 72 + + 50 + - COUNT ( * ) / + + 67
----
-76
-22

query I rowsort
SELECT ALL 20 - 19
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5286
SELECT DISTINCT - 76 DIV COUNT( * ) * 74
----
-5624

skipif mysql # not compatible
query I rowsort label-5286
SELECT DISTINCT - 76 / COUNT ( * ) * 74
----
-5624

onlyif mysql # aggregate syntax: 
query I rowsort label-5287
SELECT CASE + + 63 WHEN + 59 THEN + + 54 * 76 ELSE NULL END * - - COUNT( * ) - 22 / 92
----
NULL

skipif mysql # not compatible
query I rowsort label-5287
SELECT CASE + + 63 WHEN + 59 THEN + + 54 * 76 ELSE NULL END * - - COUNT ( * ) - 22 / 92
----
NULL

query I rowsort
SELECT DISTINCT 13 * - - ( - - 71 ) * + - 33 - + - 34 * - - 12 AS col1
----
-30051

query I rowsort
SELECT 37 + 18 AS col0
----
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5290
SELECT CASE COALESCE ( 38, - COUNT( - - 88 ) + + 18 + - 94, + 50 ) WHEN - + 84 / + 80 THEN + 90 WHEN NULLIF ( - - 8, + 31 * 93 * - 66 + 90 ) THEN NULL WHEN - - 5 THEN NULL END * + 71 / + - CAST( - MIN( - 93 ) AS SIGNED ) + COALESCE ( COUNT( * ), + 3 * - ( 18 * - 10 ) ) - - 75
----
NULL

skipif mysql # not compatible
query I rowsort label-5290
SELECT CASE COALESCE ( 38, - COUNT ( - - 88 ) + + 18 + - 94, + 50 ) WHEN - + 84 / + 80 THEN + 90 WHEN NULLIF ( - - 8, + 31 * 93 * - 66 + 90 ) THEN NULL WHEN - - 5 THEN NULL END * + 71 / + - CAST ( - MIN ( - 93 ) AS INTEGER ) + COALESCE ( COUNT ( * ), + 3 * - ( 18 * - 10 ) ) - - 75
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5291
SELECT CAST( - 90 AS SIGNED ) + - - 58 AS col2, + COUNT( * ) * - 88 col2
----
-32
-88

skipif mysql # not compatible
query II rowsort label-5291
SELECT CAST ( - 90 AS INTEGER ) + - - 58 AS col2, + COUNT ( * ) * - 88 col2
----
-32
-88

query I rowsort
SELECT ALL 60 * - 56
----
-3360

onlyif mysql # aggregate syntax: 
query II rowsort label-5293
SELECT CASE - 85 WHEN + + 74 THEN - 40 - - 76 + - - 34 - + 87 * - ( - 61 ) / MAX( + 20 ) + + - 65 ELSE NULL END * + 42, - 19 * - 74 AS col0
----
NULL
1406

skipif mysql # not compatible
query II rowsort label-5293
SELECT CASE - 85 WHEN + + 74 THEN - 40 - - 76 + - - 34 - + 87 * - ( - 61 ) / MAX ( + 20 ) + + - 65 ELSE NULL END * + 42, - 19 * - 74 AS col0
----
NULL
1406

onlyif mysql # aggregate syntax: 
query I rowsort label-5294
SELECT MAX( ALL + 11 ) + + MIN( + 66 ) * - 80 * 5
----
-26389

skipif mysql # not compatible
query I rowsort label-5294
SELECT MAX ( ALL + 11 ) + + MIN ( + 66 ) * - 80 * 5
----
-26389

query I rowsort
SELECT 62 + - 1 * + 64 + - + 22
----
-24

query I rowsort
SELECT 1 * - 24 col1
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-5297
SELECT ( 74 ) + - + COUNT( * ) * - 99 AS col1
----
173

skipif mysql # not compatible
query I rowsort label-5297
SELECT ( 74 ) + - + COUNT ( * ) * - 99 AS col1
----
173

query I rowsort
SELECT ALL 18 + + 29 AS col1
----
47

query I rowsort
SELECT - COALESCE ( - + 1, - 67 + - 49 * + + 28 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5300
SELECT ALL - 14 + + 37 * + + COUNT( * )
----
23

skipif mysql # not compatible
query I rowsort label-5300
SELECT ALL - 14 + + 37 * + + COUNT ( * )
----
23

query I rowsort
SELECT DISTINCT 11 + 16 AS col2
----
27

query I rowsort
SELECT ALL ( + 56 ) + + 32 - - - 51 col0
----
37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5303
SELECT COUNT( DISTINCT + COALESCE ( + 53, CAST( NULL AS SIGNED ), + 83 + + 72 ) )
----
1

skipif mysql # not compatible
query I rowsort label-5303
SELECT COUNT ( DISTINCT + COALESCE ( + 53, CAST ( NULL AS INTEGER ), + 83 + + 72 ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5304
SELECT - 92 + + 34 * COUNT( * ) + MAX( ALL - + ( - - ( + 99 ) ) ) * 43 AS col1
----
-4315

skipif mysql # not compatible
query I rowsort label-5304
SELECT - 92 + + 34 * COUNT ( * ) + MAX ( ALL - + ( - - ( + 99 ) ) ) * 43 AS col1
----
-4315

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5305
SELECT - 32 AS col1, 14 DIV - COUNT( * ) AS col1
----
-32
-14

skipif mysql # not compatible
query II rowsort label-5305
SELECT - 32 AS col1, 14 / - COUNT ( * ) AS col1
----
-32
-14

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

skipif mysql # not compatible
query I rowsort label-5306
SELECT MIN ( - ( + 52 ) )
----
-52

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5307
SELECT ALL CASE - - 39 WHEN + ( 82 ) THEN - 68 WHEN + 41 * + + 12 / + - 1 + + + CASE WHEN NOT + 73 IS NULL THEN + 5 END THEN - + 27 + COALESCE ( ( + CAST( NULL AS DECIMAL ) ), 30 + 29 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5307
SELECT ALL CASE - - 39 WHEN + ( 82 ) THEN - 68 WHEN + 41 * + + 12 / + - 1 + + + CASE WHEN NOT + 73 IS NULL THEN + 5 END THEN - + 27 + COALESCE ( ( + CAST ( NULL AS REAL ) ), 30 + 29 ) ELSE NULL END
----
NULL

query I rowsort
SELECT ALL + 7 * - + 69 AS col2
----
-483

query II rowsort
SELECT DISTINCT + - 19, - 1 * - - 67 * + ( + 18 ) AS col0
----
-19
-1206

onlyif mysql # aggregate syntax: 
query I rowsort label-5310
SELECT - - COUNT( * ) * + COUNT( * ) + 64 + - 77 AS col2
----
-12

skipif mysql # not compatible
query I rowsort label-5310
SELECT - - COUNT ( * ) * + COUNT ( * ) + 64 + - 77 AS col2
----
-12

query I rowsort
SELECT - 81 * + 87
----
-7047

query I rowsort
SELECT DISTINCT + COALESCE ( + 67, + 84 ) AS col0
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-5313
SELECT + 25 - + 15 * + - SUM( - 57 )
----
-830

skipif mysql # not compatible
query I rowsort label-5313
SELECT + 25 - + 15 * + - SUM ( - 57 )
----
-830

query I rowsort
SELECT - 48 * 90 + 46 * + 57
----
-1698

query I rowsort
SELECT - + 81 + - 94
----
-175

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

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

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5317
SELECT - - 37 - - 25 * + - CAST( + CAST( NULL AS DECIMAL ) AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5317
SELECT - - 37 - - 25 * + - CAST ( + CAST ( NULL AS REAL ) AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5318
SELECT DISTINCT + MIN( ALL 3 ) AS col0
----
3

skipif mysql # not compatible
query I rowsort label-5318
SELECT DISTINCT + MIN ( ALL 3 ) AS col0
----
3

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5320
SELECT ALL - CAST( - + 28 AS SIGNED ) * + COUNT( * ) + + COUNT( * )
----
29

skipif mysql # not compatible
query I rowsort label-5320
SELECT ALL - CAST ( - + 28 AS INTEGER ) * + COUNT ( * ) + + COUNT ( * )
----
29

query II rowsort
SELECT + 69 AS col0, 51 - - - 64
----
69
-13

query II rowsort
SELECT + 71, + 64 * 53 AS col0
----
71
3392

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5324
SELECT - 49 * + 70 * - CAST( NULL AS SIGNED ) / + 44 / COALESCE ( COUNT( * ), + 55, 24 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5324
SELECT - 49 * + 70 * - CAST ( NULL AS INTEGER ) / + 44 / COALESCE ( COUNT ( * ), + 55, 24 )
----
NULL

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

skipif mysql # not compatible
query II rowsort label-5325
SELECT COUNT ( * ) AS col1, 82 col1
----
1
82

onlyif mysql # aggregate syntax: 
query I rowsort label-5326
SELECT COUNT( ALL - 93 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5326
SELECT COUNT ( ALL - 93 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-5327
SELECT COUNT( * ) AS col1, COUNT( * ) - - ( - MIN( 41 ) )
----
1
-40

skipif mysql # not compatible
query II rowsort label-5327
SELECT COUNT ( * ) AS col1, COUNT ( * ) - - ( - MIN ( 41 ) )
----
1
-40

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5329
SELECT ALL 13 + + SUM( DISTINCT 77 )
----
90

skipif mysql # not compatible
query I rowsort label-5329
SELECT ALL 13 + + SUM ( DISTINCT 77 )
----
90

query I rowsort
SELECT - 19 * + + 26 AS col0
----
-494

onlyif mysql # aggregate syntax: 
query I rowsort label-5331
SELECT ALL NULLIF ( - + 30, - 70 * + - 69 + - 34 - + + MIN( + - 1 ) - + 61 )
----
-30

skipif mysql # not compatible
query I rowsort label-5331
SELECT ALL NULLIF ( - + 30, - 70 * + - 69 + - 34 - + + MIN ( + - 1 ) - + 61 )
----
-30

query I rowsort
SELECT DISTINCT CASE - 58 WHEN - ( - 33 ) + - 6 THEN NULL ELSE + + 51 END
----
51

query I rowsort
SELECT DISTINCT - 46 + + + 53 + 10
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-5334
SELECT DISTINCT + 82 + 74 * - - COUNT( * )
----
156

skipif mysql # not compatible
query I rowsort label-5334
SELECT DISTINCT + 82 + 74 * - - COUNT ( * )
----
156

query I rowsort
SELECT DISTINCT + 73 + + 41
----
114

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5337
SELECT - COUNT( * ) AS col2, - 71 + - 32 + - 64 + + 45 * 11 * + 42 * - - COUNT( * ) AS col2
----
-1
20623

skipif mysql # not compatible
query II rowsort label-5337
SELECT - COUNT ( * ) AS col2, - 71 + - 32 + - 64 + + 45 * 11 * + 42 * - - COUNT ( * ) AS col2
----
-1
20623

query I rowsort
SELECT - COALESCE ( + 17, + 65 * - ( - - 42 ) ) + - 17
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-5339
SELECT - COUNT( DISTINCT - 4 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-5339
SELECT - COUNT ( DISTINCT - 4 ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5340
SELECT + + 17 - + SUM( DISTINCT - - 77 ) AS col1
----
-60

skipif mysql # not compatible
query I rowsort label-5340
SELECT + + 17 - + SUM ( DISTINCT - - 77 ) AS col1
----
-60

query II rowsort
SELECT ALL - 48 + - 28 + 92 * - 1 * + - 78 + + + 48, 99 + + 97 AS col0
----
7148
196

onlyif mysql # aggregate syntax: 
query I rowsort label-5342
SELECT + - 42 - + COUNT( * ) - NULLIF ( + + MAX( DISTINCT + 47 ), + - COUNT( * ) ) * - - 43
----
-2064

skipif mysql # not compatible
query I rowsort label-5342
SELECT + - 42 - + COUNT ( * ) - NULLIF ( + + MAX ( DISTINCT + 47 ), + - COUNT ( * ) ) * - - 43
----
-2064

query I rowsort
SELECT DISTINCT + 78 * - 88
----
-6864

query I rowsort
SELECT ALL 26 - + 46 * + 23
----
-1032

query I rowsort
SELECT + - 90 * - 52 AS col2
----
4680

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5347
SELECT + NULLIF ( - + 26, - 23 + MAX( + 59 ) ) AS col1
----
-26

skipif mysql # not compatible
query I rowsort label-5347
SELECT + NULLIF ( - + 26, - 23 + MAX ( + 59 ) ) AS col1
----
-26

onlyif mysql # DIV for integer division: 
query I rowsort label-5348
SELECT + - 41 DIV + 13 AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-5348
SELECT + - 41 / + 13 AS col2
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-5349
SELECT - + 35 * 43 DIV 98 AS col1
----
-15

skipif mysql # not compatible
query I rowsort label-5349
SELECT - + 35 * 43 / 98 AS col1
----
-15

query I rowsort
SELECT DISTINCT - - ( - 45 ) * + 28
----
-1260

onlyif mysql # aggregate syntax: 
query I rowsort label-5351
SELECT - CASE - 69 WHEN + COUNT( * ) THEN - 40 + - + 87 WHEN - 51 THEN - - 98 WHEN 66 THEN NULL END * + + AVG ( - 66 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5351
SELECT - CASE - 69 WHEN + COUNT ( * ) THEN - 40 + - + 87 WHEN - 51 THEN - - 98 WHEN 66 THEN NULL END * + + AVG ( - 66 ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5352
SELECT ALL 51 * - + 93 * + CAST( + - 49 AS SIGNED ) * - 53 + + AVG ( + CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5352
SELECT ALL 51 * - + 93 * + CAST ( + - 49 AS INTEGER ) * - 53 + + AVG ( + CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

query II rowsort
SELECT DISTINCT 55 * - 67 AS col0, 18 + ( - + 31 )
----
-3685
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-5354
SELECT - CASE + - 12 WHEN 48 / 12 THEN 7 * 69 ELSE NULL END * + MIN( DISTINCT - 28 ) * + - COUNT( * ) / 46 + + 18
----
NULL

skipif mysql # not compatible
query I rowsort label-5354
SELECT - CASE + - 12 WHEN 48 / 12 THEN 7 * 69 ELSE NULL END * + MIN ( DISTINCT - 28 ) * + - COUNT ( * ) / 46 + + 18
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5355
SELECT ( - SUM( - 61 ) ) AS col0
----
61

skipif mysql # not compatible
query I rowsort label-5355
SELECT ( - SUM ( - 61 ) ) AS col0
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-5356
SELECT + 25 * + COUNT( * ) * - MAX( + 43 ) * + CASE + COUNT( * ) WHEN - + 28 THEN COUNT( * ) WHEN - 13 + - - 88 * - 90 * - 62 / + 13 * + 12 - + 93 THEN - ( 47 ) WHEN 27 THEN NULL ELSE 94 END * - 78 AS col0
----
7881900

skipif mysql # not compatible
query I rowsort label-5356
SELECT + 25 * + COUNT ( * ) * - MAX ( + 43 ) * + CASE + COUNT ( * ) WHEN - + 28 THEN COUNT ( * ) WHEN - 13 + - - 88 * - 90 * - 62 / + 13 * + 12 - + 93 THEN - ( 47 ) WHEN 27 THEN NULL ELSE 94 END * - 78 AS col0
----
7881900

query I rowsort
SELECT ALL 4 * + 90 * + 91 + 12
----
32772

onlyif mysql # aggregate syntax: 
query I rowsort label-5358
SELECT 23 * 85 + - NULLIF ( 53, COUNT( * ) )
----
1902

skipif mysql # not compatible
query I rowsort label-5358
SELECT 23 * 85 + - NULLIF ( 53, COUNT ( * ) )
----
1902

query I rowsort
SELECT NULLIF ( - + 39, 31 ) AS col0
----
-39

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

skipif mysql # not compatible
query I rowsort label-5360
SELECT - ( - 74 ) + + CAST ( NULL AS INTEGER ) AS col0
----
NULL

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

query I rowsort
SELECT DISTINCT 72 * - 82 + + - 21 + + ( + - ( + - 34 ) ) * - 29 * + - 82 * + 56 AS col2
----
4521787

query I rowsort
SELECT ALL 41 * + 33 + - 97 AS col0
----
1256

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

skipif mysql # not compatible
query I rowsort label-5364
SELECT ALL CAST ( NULL AS INTEGER ) * + 18 + - 45
----
NULL

query I rowsort
SELECT DISTINCT 16 * - + 4 + + 26
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-5366
SELECT - COUNT( ALL 51 ) * - 15 AS col2
----
15

skipif mysql # not compatible
query I rowsort label-5366
SELECT - COUNT ( ALL 51 ) * - 15 AS col2
----
15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5367
SELECT ALL - COUNT( * ) * - - ( - COALESCE ( 93, + 10 + ( + - 32 ), - 78 DIV + - 20 * 83 ) )
----
93

skipif mysql # not compatible
query I rowsort label-5367
SELECT ALL - COUNT ( * ) * - - ( - COALESCE ( 93, + 10 + ( + - 32 ), - 78 / + - 20 * 83 ) )
----
93

query I rowsort
SELECT ALL + 97 + - 28 + + 9 * + - 23 AS col2
----
-138

onlyif mysql # aggregate syntax: 
query I rowsort label-5369
SELECT 96 + + CASE 42 WHEN COUNT( DISTINCT - 88 ) THEN - + NULLIF ( + - 60, + 1 + - 17 + - SUM( ( 19 ) ) / + + 86 * + 91 * - - 29 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5369
SELECT 96 + + CASE 42 WHEN COUNT ( DISTINCT - 88 ) THEN - + NULLIF ( + - 60, + 1 + - 17 + - SUM ( ( 19 ) ) / + + 86 * + 91 * - - 29 ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5370
SELECT - COALESCE ( + + 62, COUNT( * ), - + 84 ) + - 57, COALESCE ( 30, - 7, + COUNT( * ) - - - 35 ) AS col1
----
-119
30

skipif mysql # not compatible
query II rowsort label-5370
SELECT - COALESCE ( + + 62, COUNT ( * ), - + 84 ) + - 57, COALESCE ( 30, - 7, + COUNT ( * ) - - - 35 ) AS col1
----
-119
30

query I rowsort
SELECT 4 + + 37
----
41

query I rowsort
SELECT NULLIF ( + + 36, + 19 / - 68 + - - 17 ) * + 98
----
3528

query I rowsort
SELECT + 63 + + 57 AS col1
----
120

query I rowsort
SELECT - NULLIF ( + 55, - 14 )
----
-55

query I rowsort
SELECT 73 + + 91 * + 23 AS col1
----
2166

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

skipif mysql # not compatible
query I rowsort label-5376
SELECT ALL - - COUNT ( ALL + + 30 ) AS col0
----
1

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

skipif mysql # not compatible
query I rowsort label-5377
SELECT DISTINCT - - NULLIF ( COUNT ( * ), - - 86 )
----
1

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

query II rowsort
SELECT ALL - 11, 75 AS col1
----
-11
75

query I rowsort
SELECT DISTINCT 2 + + 1 + - + ( + 51 )
----
-48

query I rowsort
SELECT 91 + ( + 42 )
----
133

onlyif mysql # aggregate syntax: 
query I rowsort label-5382
SELECT ALL 37 + + 48 + COUNT( * )
----
86

skipif mysql # not compatible
query I rowsort label-5382
SELECT ALL 37 + + 48 + COUNT ( * )
----
86

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5384
SELECT ALL 1 + - 16 + COUNT( * ) + - SUM( + + 32 ) * - 1
----
18

skipif mysql # not compatible
query I rowsort label-5384
SELECT ALL 1 + - 16 + COUNT ( * ) + - SUM ( + + 32 ) * - 1
----
18

onlyif mysql # aggregate syntax: 
query II rowsort label-5385
SELECT 98, SUM( ALL + 60 ) AS col1
----
98
60

skipif mysql # not compatible
query II rowsort label-5385
SELECT 98, SUM ( ALL + 60 ) AS col1
----
98
60

query I rowsort
SELECT ALL - COALESCE ( 39, + 51 + - - 25 ) + + 27
----
-12

query II rowsort
SELECT 4, 77 col0
----
4
77

query I rowsort
SELECT DISTINCT 95 * - 44 col1
----
-4180

onlyif mysql # DIV for integer division: 
query I rowsort label-5389
SELECT ( - 12 ) DIV + 29 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5389
SELECT ( - 12 ) / + 29 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5390
SELECT 7 DIV - 41 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5390
SELECT 7 / - 41 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5391
SELECT DISTINCT - COALESCE ( - 49, - 92 + + 68 * COUNT( * ) * 34 + - 51 - + 84 ) AS col0
----
49

skipif mysql # not compatible
query I rowsort label-5391
SELECT DISTINCT - COALESCE ( - 49, - 92 + + 68 * COUNT ( * ) * 34 + - 51 - + 84 ) AS col0
----
49

query I rowsort
SELECT ALL + 93 * + 29
----
2697

query I rowsort
SELECT ALL - 20 - + 48 - 51 AS col1
----
-119

query I rowsort
SELECT ALL + + 33 * + 95 AS col2
----
3135

query I rowsort
SELECT - 73 * + 80 * - 80 AS col0
----
467200

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5397
SELECT - + 83 AS col0, 98 * + 25 * - 11 * - + COUNT( * ) AS col2
----
-83
26950

skipif mysql # not compatible
query II rowsort label-5397
SELECT - + 83 AS col0, 98 * + 25 * - 11 * - + COUNT ( * ) AS col2
----
-83
26950

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5398
SELECT CAST( + ( - 92 ) AS SIGNED ) + - + 10
----
-102

skipif mysql # not compatible
query I rowsort label-5398
SELECT CAST ( + ( - 92 ) AS INTEGER ) + - + 10
----
-102

onlyif mysql # DIV for integer division: 
query II rowsort label-5399
SELECT 29 DIV + 40 * 50 + 32 + - 1 * 10 AS col0, + 71 col0
----
22
71

skipif mysql # not compatible
query II rowsort label-5399
SELECT 29 / + 40 * 50 + 32 + - 1 * 10 AS col0, + 71 col0
----
22
71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5400
SELECT - 70 * - COALESCE ( - COUNT( DISTINCT + ( + ( + - 17 ) ) ), - + 85 * - - 78 + - 61 + + 15 + 79 - + 23 DIV + - 42 - + 46 + + 66 * - - 65 * - 86 * 63 * + 57 * + COUNT( * ) + - + CAST( + ( SUM( 88 ) ) AS SIGNED ) * 49, + 28 ) * - 3 AS col1
----
210

skipif mysql # not compatible
query I rowsort label-5400
SELECT - 70 * - COALESCE ( - COUNT ( DISTINCT + ( + ( + - 17 ) ) ), - + 85 * - - 78 + - 61 + + 15 + 79 - + 23 / + - 42 - + 46 + + 66 * - - 65 * - 86 * 63 * + 57 * + COUNT ( * ) + - + CAST ( + ( SUM ( 88 ) ) AS INTEGER ) * 49, + 28 ) * - 3 AS col1
----
210

query I rowsort
SELECT - COALESCE ( + ( 65 ), 4 * 87 * - - 93 ) - 3 AS col2
----
-68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5402
SELECT DISTINCT + - AVG ( DISTINCT 17 ) * + CAST( NULL AS SIGNED ) / 5 - - COUNT( * ) * - AVG ( 2 ) * - 80 + + 90 + + 76 * - 72
----
NULL

skipif mysql # not compatible
query I rowsort label-5402
SELECT DISTINCT + - AVG ( DISTINCT 17 ) * + CAST ( NULL AS INTEGER ) / 5 - - COUNT ( * ) * - AVG ( 2 ) * - 80 + + 90 + + 76 * - 72
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5403
SELECT 21 + + 52 + - COUNT( * )
----
72

skipif mysql # not compatible
query I rowsort label-5403
SELECT 21 + + 52 + - COUNT ( * )
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-5404
SELECT ALL CASE - + 79 WHEN - NULLIF ( + 20, + 86 / + 24 ) * 0 THEN NULL WHEN - - CASE + + 90 WHEN + ( - MAX( + 91 ) ) - COALESCE ( 14, + - 47 * 90 ) THEN 82 + + 66 + 15 END + COUNT( * ) THEN NULL WHEN AVG ( DISTINCT + - 39 ) - MAX( ALL - 31 ) * + 86 THEN NULL ELSE 32 END AS col1
----
32

skipif mysql # not compatible
query I rowsort label-5404
SELECT ALL CASE - + 79 WHEN - NULLIF ( + 20, + 86 / + 24 ) * 0 THEN NULL WHEN - - CASE + + 90 WHEN + ( - MAX ( + 91 ) ) - COALESCE ( 14, + - 47 * 90 ) THEN 82 + + 66 + 15 END + COUNT ( * ) THEN NULL WHEN AVG ( DISTINCT + - 39 ) - MAX ( ALL - 31 ) * + 86 THEN NULL ELSE 32 END AS col1
----
32

query I rowsort
SELECT ALL - NULLIF ( + 89, - 49 )
----
-89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5406
SELECT CAST( - 91 AS SIGNED ) * + 52 * 53 * + - COUNT( * )
----
250796

skipif mysql # not compatible
query I rowsort label-5406
SELECT CAST ( - 91 AS INTEGER ) * + 52 * 53 * + - COUNT ( * )
----
250796

query I rowsort
SELECT ALL 89 + + 18
----
107

onlyif mysql # aggregate syntax: 
query I rowsort label-5408
SELECT ALL - 63 * + MIN( DISTINCT - 0 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5408
SELECT ALL - 63 * + MIN ( DISTINCT - 0 ) AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5409
SELECT ALL - + 66 DIV - COALESCE ( + 46, 79 * + - COUNT( * ) )
----
1

skipif mysql # not compatible
query I rowsort label-5409
SELECT ALL - + 66 / - COALESCE ( + 46, 79 * + - COUNT ( * ) )
----
1

query II rowsort
SELECT - ( + 3 ) * 77, 42 * - + COALESCE ( - NULLIF ( - 81, + ( + 65 ) ), 43, + 82 ) + - ( + 53 ) AS col2
----
-231
-3455

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5411
SELECT + + CAST( NULL AS SIGNED ) * + - 46 + + + 21 * - + 93 - + 13 + - 67
----
NULL

skipif mysql # not compatible
query I rowsort label-5411
SELECT + + CAST ( NULL AS INTEGER ) * + - 46 + + + 21 * - + 93 - + 13 + - 67
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5412
SELECT 78 * + CAST( - 56 AS SIGNED ) + - + 42
----
-4410

skipif mysql # not compatible
query I rowsort label-5412
SELECT 78 * + CAST ( - 56 AS INTEGER ) + - + 42
----
-4410

query I rowsort
SELECT - 86 * + + 92 AS col2
----
-7912

query I rowsort
SELECT ALL + 68 * - 37 AS col2
----
-2516

query I rowsort
SELECT DISTINCT 21 * - 35 + - 93 + 64
----
-764

onlyif mysql # aggregate syntax: 
query I rowsort label-5416
SELECT ALL 90 * - - 92 + + 17 - + + MIN( 46 ) - 72
----
8179

skipif mysql # not compatible
query I rowsort label-5416
SELECT ALL 90 * - - 92 + + 17 - + + MIN ( 46 ) - 72
----
8179

onlyif mysql # aggregate syntax: 
query I rowsort label-5417
SELECT MAX( - 43 )
----
-43

skipif mysql # not compatible
query I rowsort label-5417
SELECT MAX ( - 43 )
----
-43

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

skipif mysql # not compatible
query I rowsort label-5418
SELECT CAST ( NULL AS INTEGER ) * ( 40 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5419
SELECT COUNT( - 3 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5419
SELECT COUNT ( - 3 ) AS col1
----
1

query I rowsort
SELECT ALL COALESCE ( - - 75, ( - - 1 ), - 60 ) - - 34
----
109

onlyif mysql # aggregate syntax: 
query I rowsort label-5421
SELECT MIN( ALL - 53 ) col0
----
-53

skipif mysql # not compatible
query I rowsort label-5421
SELECT MIN ( ALL - 53 ) col0
----
-53

query I rowsort
SELECT + 88 * 69 * + 75 AS col2
----
455400

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5423
SELECT ALL 12 - - - COUNT( * ) DIV - 61 AS col2
----
12

skipif mysql # not compatible
query I rowsort label-5423
SELECT ALL 12 - - - COUNT ( * ) / - 61 AS col2
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-5424
SELECT + 82 + + COUNT( * ) * - - 43
----
125

skipif mysql # not compatible
query I rowsort label-5424
SELECT + 82 + + COUNT ( * ) * - - 43
----
125

query I rowsort
SELECT DISTINCT 47 * + + 9 * 29
----
12267

query I rowsort
SELECT 7 * - - 9 + - + 74 - - 98
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-5427
SELECT + 18 + - - COUNT( * )
----
19

skipif mysql # not compatible
query I rowsort label-5427
SELECT + 18 + - - COUNT ( * )
----
19

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5430
SELECT - CASE - - 14 WHEN 93 THEN NULL WHEN 62 THEN + 26 - + 9 - - - 11 * 97 * - - 42 * + 94 * 75 - + COUNT( * ) ELSE + 45 END AS col2
----
-45

skipif mysql # not compatible
query I rowsort label-5430
SELECT - CASE - - 14 WHEN 93 THEN NULL WHEN 62 THEN + 26 - + 9 - - - 11 * 97 * - - 42 * + 94 * 75 - + COUNT ( * ) ELSE + 45 END AS col2
----
-45

query I rowsort
SELECT ALL 4 + - 68
----
-64

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

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

query I rowsort
SELECT + 87 + + 36 AS col2
----
123

query I rowsort
SELECT + 91 * ( - 95 )
----
-8645

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-5435
SELECT CASE 91 WHEN + + 64 THEN + COUNT( * ) END col2, 43 + ( + ( - - CAST( NULL AS DECIMAL ) ) ) + 44 * - 54
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-5435
SELECT CASE 91 WHEN + + 64 THEN + COUNT ( * ) END col2, 43 + ( + ( - - CAST ( NULL AS REAL ) ) ) + 44 * - 54
----
NULL
NULL

query I rowsort
SELECT - + ( + 12 ) * - + 64
----
768

onlyif mysql # aggregate syntax: 
query II rowsort label-5437
SELECT ALL + 32 + - + NULLIF ( - 3, - 73 ) - - 34 + SUM( + + 5 ) + + + 86 * - NULLIF ( + + 6, - 96 + - 43 ) + - COUNT( DISTINCT + 96 ), - MAX( DISTINCT - 74 ) * + - 38 AS col0
----
-443
-2812

skipif mysql # not compatible
query II rowsort label-5437
SELECT ALL + 32 + - + NULLIF ( - 3, - 73 ) - - 34 + SUM ( + + 5 ) + + + 86 * - NULLIF ( + + 6, - 96 + - 43 ) + - COUNT ( DISTINCT + 96 ), - MAX ( DISTINCT - 74 ) * + - 38 AS col0
----
-443
-2812

query I rowsort
SELECT - 20 + 87 AS col1
----
67

onlyif mysql # DIV for integer division: 
query I rowsort label-5439
SELECT DISTINCT 17 DIV - 89 + 44 * + 27
----
1188

skipif mysql # not compatible
query I rowsort label-5439
SELECT DISTINCT 17 / - 89 + 44 * + 27
----
1188

onlyif mysql # aggregate syntax: 
query I rowsort label-5440
SELECT - CASE - 22 WHEN - NULLIF ( 58, - + 50 ) THEN - 88 WHEN + ( + 46 ) * SUM( 37 ) + + + 2 - - 70 * - 45 * - - 58 THEN - - 6 ELSE NULL END + + - 65 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5440
SELECT - CASE - 22 WHEN - NULLIF ( 58, - + 50 ) THEN - 88 WHEN + ( + 46 ) * SUM ( 37 ) + + + 2 - - 70 * - 45 * - - 58 THEN - - 6 ELSE NULL END + + - 65 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5441
SELECT DISTINCT - 77 DIV + 91 + + 9 - + + 69 AS col1
----
-60

skipif mysql # not compatible
query I rowsort label-5441
SELECT DISTINCT - 77 / + 91 + + 9 - + + 69 AS col1
----
-60

query I rowsort
SELECT DISTINCT + NULLIF ( - 91, - AVG ( + 20 ) ) AS col0
----
-91

query I rowsort
SELECT - NULLIF ( + - 2, - ( COALESCE ( + 78, - - 44 * ( 13 ) ) ) ) - + NULLIF ( + 54, + 5 ) * + ( 51 ) * + 76
----
-209302

query II rowsort
SELECT ALL 73 * + 48 - + 78 AS col1, - 54
----
3426
-54

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5445
SELECT + 86 AS col1, + 58 * CAST( NULL AS SIGNED ) * + 32 - + 46
----
86
NULL

skipif mysql # not compatible
query II rowsort label-5445
SELECT + 86 AS col1, + 58 * CAST ( NULL AS INTEGER ) * + 32 - + 46
----
86
NULL

query I rowsort
SELECT + 18 + - - 50
----
68

query I rowsort
SELECT DISTINCT ( - COALESCE ( - COALESCE ( - + 13, 1 + 76 + - - 13 ), + 73 ) ) * - + 23 AS col2
----
299

query I rowsort
SELECT DISTINCT + 20 * 50 AS col2
----
1000

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5449
SELECT CASE + 89 WHEN - COUNT( * ) THEN NULL WHEN - - CAST( NULL AS SIGNED ) THEN - 59 END col2, - 48 * - - 67 * - 76 * - - ( 17 )
----
NULL
4155072

skipif mysql # not compatible
query II rowsort label-5449
SELECT CASE + 89 WHEN - COUNT ( * ) THEN NULL WHEN - - CAST ( NULL AS INTEGER ) THEN - 59 END col2, - 48 * - - 67 * - 76 * - - ( 17 )
----
NULL
4155072

onlyif mysql # aggregate syntax: 
query I rowsort label-5450
SELECT DISTINCT - 93 * + - SUM( DISTINCT + 62 ) col2
----
5766

skipif mysql # not compatible
query I rowsort label-5450
SELECT DISTINCT - 93 * + - SUM ( DISTINCT + 62 ) col2
----
5766

query I rowsort
SELECT ALL + CASE - + 10 WHEN 79 THEN + 69 END
----
NULL

query I rowsort
SELECT + 35 * 71 AS col2
----
2485

query II rowsort
SELECT DISTINCT + 73 AS col1, 15 AS col0
----
73
15

query I rowsort
SELECT ALL + + CASE 18 WHEN + 86 THEN 63 END AS col2
----
NULL

query II rowsort
SELECT 52 AS col1, - 34
----
52
-34

onlyif mysql # DIV for integer division: 
query I rowsort label-5456
SELECT DISTINCT 3 DIV - + 62 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5456
SELECT DISTINCT 3 / - + 62 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5457
SELECT + - ( - 67 ) * 70 + + COUNT( * )
----
4691

skipif mysql # not compatible
query I rowsort label-5457
SELECT + - ( - 67 ) * 70 + + COUNT ( * )
----
4691

query I rowsort
SELECT + - 68 * - 20
----
1360

onlyif mysql # aggregate syntax: 
query I rowsort label-5459
SELECT ALL 21 * - 62 * COUNT( * ) + + COUNT( + 12 )
----
-1301

skipif mysql # not compatible
query I rowsort label-5459
SELECT ALL 21 * - 62 * COUNT ( * ) + + COUNT ( + 12 )
----
-1301

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5460
SELECT ALL 4 * CAST( NULL AS DECIMAL ) + - ( 96 ) + - 14
----
NULL

skipif mysql # not compatible
query I rowsort label-5460
SELECT ALL 4 * CAST ( NULL AS REAL ) + - ( 96 ) + - 14
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5461
SELECT DISTINCT - 19 DIV + 86 * - 35 + + 90 col0
----
90

skipif mysql # not compatible
query I rowsort label-5461
SELECT DISTINCT - 19 / + 86 * - 35 + + 90 col0
----
90

query II rowsort
SELECT - + 35, 44 + + - 54 * - 82 + + 90 * - - 71 AS col0
----
-35
10862

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

skipif mysql # not compatible
query I rowsort label-5463
SELECT ALL - ( - COUNT ( * ) ) + 57 AS col1
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-5464
SELECT ALL MAX( - 42 ) + + 40 * + 12
----
438

skipif mysql # not compatible
query I rowsort label-5464
SELECT ALL MAX ( - 42 ) + + 40 * + 12
----
438

onlyif mysql # aggregate syntax: 
query I rowsort label-5465
SELECT + + COALESCE ( + ( + 97 ), + 41, + MAX( - - 47 ) * + - 21 + 57 ) * 85 AS col2
----
8245

skipif mysql # not compatible
query I rowsort label-5465
SELECT + + COALESCE ( + ( + 97 ), + 41, + MAX ( - - 47 ) * + - 21 + 57 ) * 85 AS col2
----
8245

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

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

query II rowsort
SELECT - + 15 AS col2, - 32 col0
----
-15
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-5468
SELECT + - 72 + + COUNT( + ( 8 ) ) AS col1
----
-71

skipif mysql # not compatible
query I rowsort label-5468
SELECT + - 72 + + COUNT ( + ( 8 ) ) AS col1
----
-71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5469
SELECT - + CASE 61 WHEN + 69 - - 44 + + 94 THEN NULL WHEN 93 THEN NULL WHEN - CASE 4 WHEN + 41 THEN + + 23 * + 61 / - 97 * + 26 * + COUNT( * ) WHEN - 36 + + + CAST( + + 81 AS SIGNED ) THEN NULL END THEN + COUNT( * ) END * 13
----
NULL

skipif mysql # not compatible
query I rowsort label-5469
SELECT - + CASE 61 WHEN + 69 - - 44 + + 94 THEN NULL WHEN 93 THEN NULL WHEN - CASE 4 WHEN + 41 THEN + + 23 * + 61 / - 97 * + 26 * + COUNT ( * ) WHEN - 36 + + + CAST ( + + 81 AS INTEGER ) THEN NULL END THEN + COUNT ( * ) END * 13
----
NULL

query I rowsort
SELECT ALL + 61 + - CASE - - 11 WHEN + 25 * - COALESCE ( COALESCE ( + 97, + 16 ), 15 ) THEN + - 59 WHEN + - 36 THEN 42 * + + 52 + 16 WHEN 47 THEN NULL END
----
NULL

query II rowsort
SELECT - 76 col0, 22
----
-76
22

query II rowsort
SELECT + 4, 0 * 61 * + - ( - 28 ) + ( - - 86 ) col2
----
4
86

query I rowsort
SELECT DISTINCT 77 + 42 AS col2
----
119

query I rowsort
SELECT ALL - - 36 + + 87 col1
----
123

onlyif mysql # aggregate syntax: 
query I rowsort label-5475
SELECT + COUNT( * ) + + + 44 AS col2
----
45

skipif mysql # not compatible
query I rowsort label-5475
SELECT + COUNT ( * ) + + + 44 AS col2
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-5476
SELECT DISTINCT - 96 - + 85 - COUNT( + 66 )
----
-182

skipif mysql # not compatible
query I rowsort label-5476
SELECT DISTINCT - 96 - + 85 - COUNT ( + 66 )
----
-182

onlyif mysql # aggregate syntax: 
query I rowsort label-5477
SELECT DISTINCT 37 - + + MAX( DISTINCT + ( + 24 ) )
----
13

skipif mysql # not compatible
query I rowsort label-5477
SELECT DISTINCT 37 - + + MAX ( DISTINCT + ( + 24 ) )
----
13

query I rowsort
SELECT + 43 + 4
----
47

query II rowsort
SELECT 85, 49 AS col1
----
85
49

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5480
SELECT DISTINCT ( - CAST( 14 AS SIGNED ) ) DIV 75 - + 77
----
-77

skipif mysql # not compatible
query I rowsort label-5480
SELECT DISTINCT ( - CAST ( 14 AS INTEGER ) ) / 75 - + 77
----
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5481
SELECT ALL + NULLIF ( - 14, + ( CAST( + 39 AS SIGNED ) ) - 98 ) AS col2
----
-14

skipif mysql # not compatible
query I rowsort label-5481
SELECT ALL + NULLIF ( - 14, + ( CAST ( + 39 AS INTEGER ) ) - 98 ) AS col2
----
-14

query II rowsort
SELECT 28 AS col2, 39
----
28
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5483
SELECT DISTINCT - CASE + - 0 WHEN + ( 63 ) + - + 92 THEN - SUM( ALL + 73 ) * 20 WHEN 98 + + 13 + 39 * CAST( NULL AS SIGNED ) / - 72 - 16 + + COUNT( 30 ) + 61 * 87 * - 57 / 26 + + - COALESCE ( + - 44, + + 62 * + - AVG ( - CAST( NULL AS SIGNED ) ) + + 58 + + 53 * COALESCE ( 94 + 45 / + 42, 87, - COUNT( - ( - 5 ) ) + + AVG ( ALL - 18 ) ) ) * AVG ( DISTINCT - 44 ) THEN NULL ELSE NULL END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5483
SELECT DISTINCT - CASE + - 0 WHEN + ( 63 ) + - + 92 THEN - SUM ( ALL + 73 ) * 20 WHEN 98 + + 13 + 39 * CAST ( NULL AS INTEGER ) / - 72 - 16 + + COUNT ( 30 ) + 61 * 87 * - 57 / 26 + + - COALESCE ( + - 44, + + 62 * + - AVG ( - CAST ( NULL AS INTEGER ) ) + + 58 + + 53 * COALESCE ( 94 + 45 / + 42, 87, - COUNT ( - ( - 5 ) ) + + AVG ( ALL - 18 ) ) ) * AVG ( DISTINCT - 44 ) THEN NULL ELSE NULL END col1
----
NULL

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5485
SELECT DISTINCT - NULLIF ( + NULLIF ( - 94, + CAST( NULL AS SIGNED ) + + COUNT( * ) * NULLIF ( 21, 34 ) ), + 72 ) AS col2
----
94

skipif mysql # not compatible
query I rowsort label-5485
SELECT DISTINCT - NULLIF ( + NULLIF ( - 94, + CAST ( NULL AS INTEGER ) + + COUNT ( * ) * NULLIF ( 21, 34 ) ), + 72 ) AS col2
----
94

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5486
SELECT ALL - CAST( NULL AS DECIMAL ) / - COALESCE ( + 65, CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5486
SELECT ALL - CAST ( NULL AS REAL ) / - COALESCE ( + 65, CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5487
SELECT DISTINCT - 52 DIV 66 * 29 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5487
SELECT DISTINCT - 52 / 66 * 29 AS col1
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-5488
SELECT 35 DIV - ( - + 80 ) * - 20 + - - NULLIF ( - 61, - 15 * AVG ( DISTINCT 53 ) + 2 ) + - 43, 94 AS col1
----
-104
94

skipif mysql # not compatible
query II rowsort label-5488
SELECT 35 / - ( - + 80 ) * - 20 + - - NULLIF ( - 61, - 15 * AVG ( DISTINCT 53 ) + 2 ) + - 43, 94 AS col1
----
-104
94

query I rowsort
SELECT 41 - + ( + 91 ) * - ( - + 47 ) AS col2
----
-4236

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5490
SELECT ALL + COALESCE ( + ( - - 75 ), + 46 * + - 34 * 35 - 76 ) DIV + - COUNT( * )
----
-75

skipif mysql # not compatible
query I rowsort label-5490
SELECT ALL + COALESCE ( + ( - - 75 ), + 46 * + - 34 * 35 - 76 ) / + - COUNT ( * )
----
-75

query II rowsort
SELECT ALL - 80, + 11 * 49 + + + 37 * + 71 * + 71 AS col0
----
-80
187056

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5492
SELECT 43 * - 30 * - + 52 * + + 9 + COUNT( * ) + 12 * + - 43 DIV COUNT( * ) * + - 38 - - 14 DIV 19 AS col2
----
623329

skipif mysql # not compatible
query I rowsort label-5492
SELECT 43 * - 30 * - + 52 * + + 9 + COUNT ( * ) + 12 * + - 43 / COUNT ( * ) * + - 38 - - 14 / 19 AS col2
----
623329

query I rowsort
SELECT + COALESCE ( + 56, + - 93 )
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-5494
SELECT ALL + MIN( DISTINCT - 44 ) + + + NULLIF ( + COUNT( ALL + 47 ), + - 21 )
----
-43

skipif mysql # not compatible
query I rowsort label-5494
SELECT ALL + MIN ( DISTINCT - 44 ) + + + NULLIF ( + COUNT ( ALL + 47 ), + - 21 )
----
-43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5495
SELECT ALL NULLIF ( CASE + 78 WHEN - COALESCE ( 39, + 31 ) THEN NULL ELSE + + NULLIF ( - MIN( ALL 22 ), 95 + + - 81 ) * - ( + - 67 ) * 81 END, - + CAST( NULL AS SIGNED ) * 45 + - - 79 ) + - 13 AS col1
----
-119407

skipif mysql # not compatible
query I rowsort label-5495
SELECT ALL NULLIF ( CASE + 78 WHEN - COALESCE ( 39, + 31 ) THEN NULL ELSE + + NULLIF ( - MIN ( ALL 22 ), 95 + + - 81 ) * - ( + - 67 ) * 81 END, - + CAST ( NULL AS INTEGER ) * 45 + - - 79 ) + - 13 AS col1
----
-119407

query I rowsort
SELECT 27 + - + 16 AS col2
----
11

query I rowsort
SELECT ALL - + 47 + - - 34 AS col0
----
-13

query II rowsort
SELECT DISTINCT - 86 AS col1, 7 * + + 95 AS col0
----
-86
665

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-5499
SELECT DISTINCT - 89 + + COUNT( - CAST( + + 50 AS DECIMAL ) ) AS col0, 4 col1
----
-88
4

skipif mysql # not compatible
query II rowsort label-5499
SELECT DISTINCT - 89 + + COUNT ( - CAST ( + + 50 AS REAL ) ) AS col0, 4 col1
----
-88
4

query I rowsort
SELECT ALL - 26 + + ( - 75 )
----
-101

query II rowsort
SELECT DISTINCT 65 AS col2, 86 * - - 61 AS col1
----
65
5246

query II rowsort
SELECT - 80 * 11 + + + 55 * 58 col2, ( + - 38 )
----
2310
-38

query I rowsort
SELECT ( 51 ) * - + 11 AS col0
----
-561

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5504
SELECT 45 * - + ( ( - - SUM( + 52 ) ) ) + + - 79 / - CAST( NULL AS SIGNED ) + 46 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5504
SELECT 45 * - + ( ( - - SUM ( + 52 ) ) ) + + - 79 / - CAST ( NULL AS INTEGER ) + 46 col0
----
NULL

query I rowsort
SELECT - ( - - 95 )
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-5506
SELECT 42 + - 52 * + 55 + - MAX( + 17 )
----
-2835

skipif mysql # not compatible
query I rowsort label-5506
SELECT 42 + - 52 * + 55 + - MAX ( + 17 )
----
-2835

query I rowsort
SELECT ALL 22 / - ( CASE - CASE WHEN ( NULL ) IS NULL THEN + AVG ( + 97 ) END WHEN 65 THEN + 82 END ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5508
SELECT ALL 26 + - - NULLIF ( 24, + + 22 ) AS col1, 80 DIV + COUNT( * )
----
50
80

skipif mysql # not compatible
query II rowsort label-5508
SELECT ALL 26 + - - NULLIF ( 24, + + 22 ) AS col1, 80 / + COUNT ( * )
----
50
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5509
SELECT ALL 40 * - 52 + + COALESCE ( - 86, + ( + CAST( NULL AS SIGNED ) ), + COUNT( * ) + + 45, 91 ) + + CASE 12 WHEN 38 THEN - NULLIF ( - SUM( - ( - 84 ) ), - + 64 * + NULLIF ( - + 77, - 1 ) ) * + 59 * COUNT( * ) ELSE NULL END - + 11 * + - 71 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5509
SELECT ALL 40 * - 52 + + COALESCE ( - 86, + ( + CAST ( NULL AS INTEGER ) ), + COUNT ( * ) + + 45, 91 ) + + CASE 12 WHEN 38 THEN - NULLIF ( - SUM ( - ( - 84 ) ), - + 64 * + NULLIF ( - + 77, - 1 ) ) * + 59 * COUNT ( * ) ELSE NULL END - + 11 * + - 71 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5510
SELECT DISTINCT - MAX( + 16 ) - + + 83
----
-99

skipif mysql # not compatible
query I rowsort label-5510
SELECT DISTINCT - MAX ( + 16 ) - + + 83
----
-99

query I rowsort
SELECT ALL 37 * + 57 AS col2
----
2109

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5512
SELECT MIN( + - 72 ) DIV 36 AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-5512
SELECT MIN ( + - 72 ) / 36 AS col0
----
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5513
SELECT NULLIF ( + - 27, - 32 * - AVG ( 95 ) + - - 60 ) DIV + MIN( 32 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5513
SELECT NULLIF ( + - 27, - 32 * - AVG ( 95 ) + - - 60 ) / + MIN ( 32 ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5514
SELECT SUM( - + ( + 17 ) ) * 51 + 80 + - 51 * - 67
----
2630

skipif mysql # not compatible
query I rowsort label-5514
SELECT SUM ( - + ( + 17 ) ) * 51 + 80 + - 51 * - 67
----
2630

query I rowsort
SELECT ( + - 16 ) + 9 AS col0
----
-7

query II rowsort
SELECT 6 + + 30, - COALESCE ( + 76, - 99 ) AS col1
----
36
-76

onlyif mysql # aggregate syntax: 
query II rowsort label-5517
SELECT COUNT( 48 ), - 52 AS col2
----
1
-52

skipif mysql # not compatible
query II rowsort label-5517
SELECT COUNT ( 48 ), - 52 AS col2
----
1
-52

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5519
SELECT ( - + 0 ) + - NULLIF ( COUNT( * ), - 37 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-5519
SELECT ( - + 0 ) + - NULLIF ( COUNT ( * ), - 37 ) AS col0
----
-1

query I rowsort
SELECT ALL + 48 * + 1
----
48

query I rowsort
SELECT NULLIF ( 33, - 87 ) * + ( 33 )
----
1089

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5523
SELECT ALL 25 * - - ( - 93 ) - - COUNT( * ) * + 69 col1
----
-2256

skipif mysql # not compatible
query I rowsort label-5523
SELECT ALL 25 * - - ( - 93 ) - - COUNT ( * ) * + 69 col1
----
-2256

onlyif mysql # aggregate syntax: 
query I rowsort label-5524
SELECT ALL - + COUNT( * ) + - + 49 + + 14 AS col1
----
-36

skipif mysql # not compatible
query I rowsort label-5524
SELECT ALL - + COUNT ( * ) + - + 49 + + 14 AS col1
----
-36

onlyif mysql # DIV for integer division: 
query I rowsort label-5525
SELECT DISTINCT + 96 DIV 16 AS col1
----
6

skipif mysql # not compatible
query I rowsort label-5525
SELECT DISTINCT + 96 / 16 AS col1
----
6

onlyif mysql # aggregate syntax: 
query II rowsort label-5526
SELECT - - 50 * + 89 * + COUNT( * ) - + COUNT( * ) - + 9 AS col2, - 18 AS col2
----
4440
-18

skipif mysql # not compatible
query II rowsort label-5526
SELECT - - 50 * + 89 * + COUNT ( * ) - + COUNT ( * ) - + 9 AS col2, - 18 AS col2
----
4440
-18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5527
SELECT ALL + + NULLIF ( + 13, + ( 87 ) ) DIV COUNT( * ) * + SUM( DISTINCT + 96 ) * - 87
----
-108576

skipif mysql # not compatible
query I rowsort label-5527
SELECT ALL + + NULLIF ( + 13, + ( 87 ) ) / COUNT ( * ) * + SUM ( DISTINCT + 96 ) * - 87
----
-108576

query I rowsort
SELECT 21 * 71 AS col2
----
1491

onlyif mysql # aggregate syntax: 
query I rowsort label-5529
SELECT ALL - 94 + - COUNT( * ) + + - 1 * + 85 AS col2
----
-180

skipif mysql # not compatible
query I rowsort label-5529
SELECT ALL - 94 + - COUNT ( * ) + + - 1 * + 85 AS col2
----
-180

onlyif mysql # DIV for integer division: 
query II rowsort label-5530
SELECT 11 DIV 6, 29 AS col2
----
1
29

skipif mysql # not compatible
query II rowsort label-5530
SELECT 11 / 6, 29 AS col2
----
1
29

onlyif mysql # aggregate syntax: 
query I rowsort label-5531
SELECT SUM( 92 ) * - 79 AS col0
----
-7268

skipif mysql # not compatible
query I rowsort label-5531
SELECT SUM ( 92 ) * - 79 AS col0
----
-7268

query I rowsort
SELECT DISTINCT + 3 * 77 + + - 36 + 37 + + + 29 AS col2
----
261

query I rowsort
SELECT - 80 - - + 56 + 76 AS col2
----
52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5534
SELECT DISTINCT - COUNT( * ) * + CAST( NULL AS SIGNED ) / - 79 * - 50
----
NULL

skipif mysql # not compatible
query I rowsort label-5534
SELECT DISTINCT - COUNT ( * ) * + CAST ( NULL AS INTEGER ) / - 79 * - 50
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5535
SELECT ALL + + ( MIN( 15 ) ) * - 43 AS col2
----
-645

skipif mysql # not compatible
query I rowsort label-5535
SELECT ALL + + ( MIN ( 15 ) ) * - 43 AS col2
----
-645

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5536
SELECT CAST( - 60 AS SIGNED ) * + - ( - ( - 92 ) )
----
5520

skipif mysql # not compatible
query I rowsort label-5536
SELECT CAST ( - 60 AS INTEGER ) * + - ( - ( - 92 ) )
----
5520

query II rowsort
SELECT 70 + - CASE 65 WHEN + 48 THEN + 9 END AS col0, 90 + 36 AS col2
----
NULL
126

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5538
SELECT - COALESCE ( - 70, + 82 + + + CASE WHEN 48 IS NULL THEN NULL WHEN - 9 IS NULL THEN NULL ELSE + 27 + - - COUNT( - CAST( NULL AS SIGNED ) ) END ) + 71 + 24
----
165

skipif mysql # not compatible
query I rowsort label-5538
SELECT - COALESCE ( - 70, + 82 + + + CASE WHEN 48 IS NULL THEN NULL WHEN - 9 IS NULL THEN NULL ELSE + 27 + - - COUNT ( - CAST ( NULL AS INTEGER ) ) END ) + 71 + 24
----
165

query I rowsort
SELECT + 26 - + + 83 col2
----
-57

query II rowsort
SELECT ALL 19 AS col2, 18
----
19
18

query I rowsort
SELECT - 90 + - - 54
----
-36

query I rowsort
SELECT ALL CASE + 78 WHEN - 66 THEN NULL ELSE 52 END col1
----
52

query I rowsort
SELECT + 66 + 16 AS col1
----
82

query II rowsort
SELECT ALL 28 col2, + 78 AS col0
----
28
78

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5546
SELECT - CAST( + 16 AS SIGNED ) + + + 72 AS col2
----
56

skipif mysql # not compatible
query I rowsort label-5546
SELECT - CAST ( + 16 AS INTEGER ) + + + 72 AS col2
----
56

onlyif mysql # aggregate syntax: 
query II rowsort label-5547
SELECT - 37 AS col2, 63 * + 52 - COUNT( * ) + + 42 * + ( + 81 ) + - - COALESCE ( - 75, 52 * 63 + 53 + + 20 ) - CASE + - 77 WHEN CASE WHEN - 63 IS NULL THEN + - COUNT( * ) ELSE + + 25 END THEN + 88 / + ( - - 38 ) WHEN + 26 THEN + 12 END + 47 * - + 54 * COALESCE ( - 82, 54 ) * + 54 + COUNT( * ) * 53 AS col0
----
-37
NULL

skipif mysql # not compatible
query II rowsort label-5547
SELECT - 37 AS col2, 63 * + 52 - COUNT ( * ) + + 42 * + ( + 81 ) + - - COALESCE ( - 75, 52 * 63 + 53 + + 20 ) - CASE + - 77 WHEN CASE WHEN - 63 IS NULL THEN + - COUNT ( * ) ELSE + + 25 END THEN + 88 / + ( - - 38 ) WHEN + 26 THEN + 12 END + 47 * - + 54 * COALESCE ( - 82, 54 ) * + 54 + COUNT ( * ) * 53 AS col0
----
-37
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5549
SELECT - 9 * 35 * - 99 + - CASE + COUNT( * ) WHEN 73 + - COUNT( * ) THEN - + 56 ELSE NULL END * - - 29 + + COUNT( * ) + + 5 AS col1, - 91 - CAST( NULL AS SIGNED ) AS col2
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-5549
SELECT - 9 * 35 * - 99 + - CASE + COUNT ( * ) WHEN 73 + - COUNT ( * ) THEN - + 56 ELSE NULL END * - - 29 + + COUNT ( * ) + + 5 AS col1, - 91 - CAST ( NULL AS INTEGER ) AS col2
----
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5550
SELECT + 24 DIV - - 22
----
1

skipif mysql # not compatible
query I rowsort label-5550
SELECT + 24 / - - 22
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-5551
SELECT + NULLIF ( + 14, + + 81 ) DIV 34
----
0

skipif mysql # not compatible
query I rowsort label-5551
SELECT + NULLIF ( + 14, + + 81 ) / 34
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5552
SELECT - COUNT( ALL - 87 ) DIV + 6 - - - 19 + - 59 DIV - 78 * 14 + + 7 - + + 31 DIV - 48 * + 81 AS col0, 22 * COUNT( * ) col2
----
-12
22

skipif mysql # not compatible
query II rowsort label-5552
SELECT - COUNT ( ALL - 87 ) / + 6 - - - 19 + - 59 / - 78 * 14 + + 7 - + + 31 / - 48 * + 81 AS col0, 22 * COUNT ( * ) col2
----
-12
22

onlyif mysql # aggregate syntax: 
query I rowsort label-5553
SELECT CASE - 50 WHEN + MIN( + 24 ) * - - 3 * + NULLIF ( + COUNT( * ), + 79 ) + - 9 THEN + 56 * + 49 * + 73 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5553
SELECT CASE - 50 WHEN + MIN ( + 24 ) * - - 3 * + NULLIF ( + COUNT ( * ), + 79 ) + - 9 THEN + 56 * + 49 * + 73 ELSE NULL END
----
NULL

query I rowsort
SELECT + ( 37 ) col2
----
37

onlyif mysql # aggregate syntax: 
query II rowsort label-5555
SELECT + 17 - ( - 13 ) col0, + COALESCE ( 67, CASE - + 55 WHEN + + 52 THEN 34 * 69 * - 65 END * - + COUNT( * ) )
----
30
67

skipif mysql # not compatible
query II rowsort label-5555
SELECT + 17 - ( - 13 ) col0, + COALESCE ( 67, CASE - + 55 WHEN + + 52 THEN 34 * 69 * - 65 END * - + COUNT ( * ) )
----
30
67

onlyif mysql # aggregate syntax: 
query II rowsort label-5556
SELECT DISTINCT - 82 * - 59 + - 93 AS col2, COALESCE ( + + COUNT( * ), COUNT( * ) + + COUNT( * ) * - - 72 * + NULLIF ( - COUNT( * ), - 77 + + COUNT( * ) - + 64 / - - 62 ) ) AS col1
----
4745
1

skipif mysql # not compatible
query II rowsort label-5556
SELECT DISTINCT - 82 * - 59 + - 93 AS col2, COALESCE ( + + COUNT ( * ), COUNT ( * ) + + COUNT ( * ) * - - 72 * + NULLIF ( - COUNT ( * ), - 77 + + COUNT ( * ) - + 64 / - - 62 ) ) AS col1
----
4745
1

query II rowsort
SELECT DISTINCT + - 27, - 45 AS col0
----
-27
-45

query I rowsort
SELECT + 15 + + - 51
----
-36

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5559
SELECT CAST( NULL AS SIGNED ) * + 8 - + 65 AS col0, 68 AS col0
----
NULL
68

skipif mysql # not compatible
query II rowsort label-5559
SELECT CAST ( NULL AS INTEGER ) * + 8 - + 65 AS col0, 68 AS col0
----
NULL
68

query II rowsort
SELECT ALL + - 54 col1, - 66 AS col2
----
-54
-66

query I rowsort
SELECT ALL 59 * + 19 * 35 * - 6 col0
----
-235410

onlyif mysql # aggregate syntax: 
query I rowsort label-5562
SELECT - - SUM( + 12 ) * + 17 + - 69 AS col0
----
135

skipif mysql # not compatible
query I rowsort label-5562
SELECT - - SUM ( + 12 ) * + 17 + - 69 AS col0
----
135

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5563
SELECT COUNT( * ) * - 34 * 96 + - 86 DIV - 31 AS col0
----
-3262

skipif mysql # not compatible
query I rowsort label-5563
SELECT COUNT ( * ) * - 34 * 96 + - 86 / - 31 AS col0
----
-3262

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

query I rowsort
SELECT + + 68 + 25
----
93

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

query II rowsort
SELECT ALL + 46, 77 AS col2
----
46
77

onlyif mysql # aggregate syntax: 
query I rowsort label-5568
SELECT ALL + + NULLIF ( NULLIF ( 4, + 20 ), - COUNT( * ) + COUNT( ALL - - 3 ) + - + 83 + + - 83 )
----
4

skipif mysql # not compatible
query I rowsort label-5568
SELECT ALL + + NULLIF ( NULLIF ( 4, + 20 ), - COUNT ( * ) + COUNT ( ALL - - 3 ) + - + 83 + + - 83 )
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-5569
SELECT + 21 * - MIN( ALL + - 10 ) + + + 65 + + + 29 - - - 77 * 43 AS col1
----
-3007

skipif mysql # not compatible
query I rowsort label-5569
SELECT + 21 * - MIN ( ALL + - 10 ) + + + 65 + + + 29 - - - 77 * 43 AS col1
----
-3007

query II rowsort
SELECT DISTINCT + 94 * - 46 - + 41 AS col1, + 89 AS col1
----
-4365
89

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5571
SELECT - COALESCE ( - COALESCE ( - - 62, - 72 - + 46 * + 3 DIV + 7 * ( + NULLIF ( + 63, COUNT( * ) ) ) ), 78 + + + 84 * 81 + + + 62 - + 65 - + + COUNT( * ) + 95 + 40 + COUNT( * ) + - 24 * 39 * 70 ) AS col2, + 65 col1
----
62
65

skipif mysql # not compatible
query II rowsort label-5571
SELECT - COALESCE ( - COALESCE ( - - 62, - 72 - + 46 * + 3 / + 7 * ( + NULLIF ( + 63, COUNT ( * ) ) ) ), 78 + + + 84 * 81 + + + 62 - + 65 - + + COUNT ( * ) + 95 + 40 + COUNT ( * ) + - 24 * 39 * 70 ) AS col2, + 65 col1
----
62
65

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5573
SELECT - + 41 DIV - SUM( + 45 ) - + 63 + - 70 * 85
----
-6013

skipif mysql # not compatible
query I rowsort label-5573
SELECT - + 41 / - SUM ( + 45 ) - + 63 + - 70 * 85
----
-6013

query II rowsort
SELECT DISTINCT - 37 * + + 12 AS col0, 22 AS col0
----
-444
22

query I rowsort
SELECT ALL ( - 63 ) AS col2
----
-63

query I rowsort
SELECT - 20 * - 59 AS col1
----
1180

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

query I rowsort
SELECT - 7 + - + 1 AS col0
----
-8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5579
SELECT DISTINCT NULLIF ( + 84, + - 41 / + CASE 33 WHEN CAST( NULL AS SIGNED ) * + 40 * - + 82 * + + CAST( MIN( + 62 ) AS DECIMAL ) THEN NULL WHEN + AVG ( DISTINCT 61 ) - - COUNT( * ) * - + 91 * - 79 + - - 65 + - 94 - - + CAST( NULL AS SIGNED ) + 96 + + 42 * + 85 THEN SUM( ALL - 33 ) + 20 ELSE - + COALESCE ( 88, - + COUNT( * ), - + NULLIF ( 61, 96 * - 3 ) * 24 ) END )
----
84

skipif mysql # not compatible
query I rowsort label-5579
SELECT DISTINCT NULLIF ( + 84, + - 41 / + CASE 33 WHEN CAST ( NULL AS INTEGER ) * + 40 * - + 82 * + + CAST ( MIN ( + 62 ) AS REAL ) THEN NULL WHEN + AVG ( DISTINCT 61 ) - - COUNT ( * ) * - + 91 * - 79 + - - 65 + - 94 - - + CAST ( NULL AS INTEGER ) + 96 + + 42 * + 85 THEN SUM ( ALL - 33 ) + 20 ELSE - + COALESCE ( 88, - + COUNT ( * ), - + NULLIF ( 61, 96 * - 3 ) * 24 ) END )
----
84

onlyif mysql # aggregate syntax: 
query II rowsort label-5580
SELECT - 84 * 60, + MIN( - + 81 ) * + 9 AS col1
----
-5040
-729

skipif mysql # not compatible
query II rowsort label-5580
SELECT - 84 * 60, + MIN ( - + 81 ) * + 9 AS col1
----
-5040
-729

query I rowsort
SELECT DISTINCT ( + + ( - + NULLIF ( + 6, + + 46 ) ) ) + + 98 * 97 AS col1
----
9500

onlyif mysql # DIV for integer division: 
query I rowsort label-5582
SELECT - 71 + - 29 * 18 * 13 DIV - + 91
----
3

skipif mysql # not compatible
query I rowsort label-5582
SELECT - 71 + - 29 * 18 * 13 / - + 91
----
3

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5584
SELECT + SUM( DISTINCT 4 ) + - 86 - + + 73 AS col1, + 55 AS col1
----
-155
55

skipif mysql # not compatible
query II rowsort label-5584
SELECT + SUM ( DISTINCT 4 ) + - 86 - + + 73 AS col1, + 55 AS col1
----
-155
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5585
SELECT DISTINCT CAST( - + COUNT( * ) AS SIGNED ), 83 AS col0
----
-1
83

skipif mysql # not compatible
query II rowsort label-5585
SELECT DISTINCT CAST ( - + COUNT ( * ) AS INTEGER ), 83 AS col0
----
-1
83

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5587
SELECT ALL ( - 35 ), COALESCE ( - + COUNT( * ), - - 59, 83 ) AS col0
----
-35
-1

skipif mysql # not compatible
query II rowsort label-5587
SELECT ALL ( - 35 ), COALESCE ( - + COUNT ( * ), - - 59, 83 ) AS col0
----
-35
-1

query II rowsort
SELECT DISTINCT ( 8 ) AS col0, 39 AS col1
----
8
39

query I rowsort
SELECT ALL + 76 + - 14 AS col0
----
62

query I rowsort
SELECT ALL 64 * - - 28 col2
----
1792

onlyif mysql # DIV for integer division: 
query I rowsort label-5591
SELECT ALL + 5 DIV 89 + 85 col1
----
85

skipif mysql # not compatible
query I rowsort label-5591
SELECT ALL + 5 / 89 + 85 col1
----
85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5592
SELECT ALL ( - 63 ) / + + 53 + + COALESCE ( - MAX( 64 ), COALESCE ( - 15, + SUM( ALL 88 ) ) * - COUNT( * ) - + - 15 - - COUNT( * ) + + 14 ) + + COUNT( * ) + + ( + 1 ) + MAX( ALL 59 ) + + COUNT( * ) + 36 * - 96 * - + ( - - ( - 33 ) ) - + - SUM( - CAST( NULL AS SIGNED ) ) + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-5592
SELECT ALL ( - 63 ) / + + 53 + + COALESCE ( - MAX ( 64 ), COALESCE ( - 15, + SUM ( ALL 88 ) ) * - COUNT ( * ) - + - 15 - - COUNT ( * ) + + 14 ) + + COUNT ( * ) + + ( + 1 ) + MAX ( ALL 59 ) + + COUNT ( * ) + 36 * - 96 * - + ( - - ( - 33 ) ) - + - SUM ( - CAST ( NULL AS INTEGER ) ) + - COUNT ( * )
----
NULL

query I rowsort
SELECT - 99 * 10
----
-990

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5595
SELECT ALL 43 * + - CASE - 83 WHEN - 56 * - 56 THEN CAST( NULL AS SIGNED ) WHEN + - 62 * + 0 THEN NULL WHEN + - 35 - - 78 + + 27 * + COUNT( * ) * - 35 * + COUNT( DISTINCT + 87 ) THEN + + 95 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5595
SELECT ALL 43 * + - CASE - 83 WHEN - 56 * - 56 THEN CAST ( NULL AS INTEGER ) WHEN + - 62 * + 0 THEN NULL WHEN + - 35 - - 78 + + 27 * + COUNT ( * ) * - 35 * + COUNT ( DISTINCT + 87 ) THEN + + 95 END AS col0
----
NULL

query I rowsort
SELECT DISTINCT 47 * - 24 col2
----
-1128

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5598
SELECT + - 14 * - CAST( 68 AS SIGNED )
----
952

skipif mysql # not compatible
query I rowsort label-5598
SELECT + - 14 * - CAST ( 68 AS INTEGER )
----
952

onlyif mysql # DIV for integer division: 
query I rowsort label-5599
SELECT DISTINCT + 69 DIV 2 - - 64 * - 54 * + - 26 + + 65 AS col0
----
89955

skipif mysql # not compatible
query I rowsort label-5599
SELECT DISTINCT + 69 / 2 - - 64 * - 54 * + - 26 + + 65 AS col0
----
89955

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5600
SELECT ALL + + CAST( 93 AS SIGNED ) col1, - 15 * + COALESCE ( + 53, - 0 ) AS col2
----
93
-795

skipif mysql # not compatible
query II rowsort label-5600
SELECT ALL + + CAST ( 93 AS INTEGER ) col1, - 15 * + COALESCE ( + 53, - 0 ) AS col2
----
93
-795

onlyif mysql # aggregate syntax: 
query II rowsort label-5601
SELECT + 89 * + + COUNT( * ), 97 - + 16 AS col2
----
89
81

skipif mysql # not compatible
query II rowsort label-5601
SELECT + 89 * + + COUNT ( * ), 97 - + 16 AS col2
----
89
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5602
SELECT ALL - + CASE - 29 WHEN + ( COALESCE ( + CASE - - CAST( + 36 AS SIGNED ) WHEN 40 * 38 THEN - + 96 ELSE NULL END, + CASE + - 78 WHEN + + 73 * + 5 + + COUNT( * ) THEN NULL WHEN - 32 THEN 15 WHEN - - COUNT( DISTINCT + 25 ) * 72 * CASE + 15 WHEN CAST( - COUNT( * ) AS SIGNED ) * 16 THEN NULL ELSE + - 43 END + + 19 + - - CASE ( ( - MAX( - 86 ) ) ) WHEN - 16 THEN NULL WHEN - 10 THEN + 3 / - 83 END * 62 THEN NULL END * - 87 ) ) THEN - 71 WHEN 29 + 1 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5602
SELECT ALL - + CASE - 29 WHEN + ( COALESCE ( + CASE - - CAST ( + 36 AS INTEGER ) WHEN 40 * 38 THEN - + 96 ELSE NULL END, + CASE + - 78 WHEN + + 73 * + 5 + + COUNT ( * ) THEN NULL WHEN - 32 THEN 15 WHEN - - COUNT ( DISTINCT + 25 ) * 72 * CASE + 15 WHEN CAST ( - COUNT ( * ) AS INTEGER ) * 16 THEN NULL ELSE + - 43 END + + 19 + - - CASE ( ( - MAX ( - 86 ) ) ) WHEN - 16 THEN NULL WHEN - 10 THEN + 3 / - 83 END * 62 THEN NULL END * - 87 ) ) THEN - 71 WHEN 29 + 1 THEN NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5603
SELECT + COUNT( - ( - ( - CAST( NULL AS DECIMAL ) ) ) )
----
0

skipif mysql # not compatible
query I rowsort label-5603
SELECT + COUNT ( - ( - ( - CAST ( NULL AS REAL ) ) ) )
----
0

query I rowsort
SELECT 99 * - 11 AS col0
----
-1089

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5605
SELECT ALL - CAST( NULL AS DECIMAL ) * - 35 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5605
SELECT ALL - CAST ( NULL AS REAL ) * - 35 AS col2
----
NULL

query I rowsort
SELECT ALL - ( + 84 ) col2
----
-84

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5608
SELECT ALL - COALESCE ( - + COUNT( * ), + - 9 * + - 96, + 7 * - COUNT( * ) ) + - 48 + CASE - 66 WHEN - 88 THEN + + 1 ELSE - - COUNT( * ) END + + + 75 AS col2
----
29

skipif mysql # not compatible
query I rowsort label-5608
SELECT ALL - COALESCE ( - + COUNT ( * ), + - 9 * + - 96, + 7 * - COUNT ( * ) ) + - 48 + CASE - 66 WHEN - 88 THEN + + 1 ELSE - - COUNT ( * ) END + + + 75 AS col2
----
29

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

skipif mysql # not compatible
query I rowsort label-5609
SELECT 88 * CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) * 39 - + 80
----
NULL

query I rowsort
SELECT ALL 72 * - + 26 AS col0
----
-1872

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5611
SELECT 16 DIV + COUNT( DISTINCT + + 3 )
----
16

skipif mysql # not compatible
query I rowsort label-5611
SELECT 16 / + COUNT ( DISTINCT + + 3 )
----
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5612
SELECT DISTINCT - CAST( NULL AS SIGNED ) + COALESCE ( COUNT( * ), 89 + - 78 + - ( - SUM( 56 ) ) + + 33 / - COUNT( * ) * + - 68 ) AS col2, 71 AS col0
----
NULL
71

skipif mysql # not compatible
query II rowsort label-5612
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + COALESCE ( COUNT ( * ), 89 + - 78 + - ( - SUM ( 56 ) ) + + 33 / - COUNT ( * ) * + - 68 ) AS col2, 71 AS col0
----
NULL
71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5613
SELECT ALL + CASE - 25 WHEN + 67 THEN NULL WHEN + 74 * + 97 DIV + NULLIF ( + + ( + - 99 ), - + 68 * - + 35 * + + 60 ) THEN - 26 DIV - 37 + + NULLIF ( ( CAST( - 83 AS SIGNED ) ), + 27 ) ELSE MAX( + + 99 ) + - COUNT( * ) END + - 2
----
96

skipif mysql # not compatible
query I rowsort label-5613
SELECT ALL + CASE - 25 WHEN + 67 THEN NULL WHEN + 74 * + 97 / + NULLIF ( + + ( + - 99 ), - + 68 * - + 35 * + + 60 ) THEN - 26 / - 37 + + NULLIF ( ( CAST ( - 83 AS INTEGER ) ), + 27 ) ELSE MAX ( + + 99 ) + - COUNT ( * ) END + - 2
----
96

query II rowsort
SELECT 78 col1, 36 AS col2
----
78
36

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5616
SELECT 35 - + CAST( + + 86 AS SIGNED ) AS col1, + COUNT( * ) AS col0
----
-51
1

skipif mysql # not compatible
query II rowsort label-5616
SELECT 35 - + CAST ( + + 86 AS INTEGER ) AS col1, + COUNT ( * ) AS col0
----
-51
1

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5617
SELECT DISTINCT + 61 + NULLIF ( - 76, + CAST( - 66 AS DECIMAL ) ) AS col0, - 33 * 57
----
-15
-1881

skipif mysql # not compatible
query II rowsort label-5617
SELECT DISTINCT + 61 + NULLIF ( - 76, + CAST ( - 66 AS REAL ) ) AS col0, - 33 * 57
----
-15
-1881

query I rowsort
SELECT ( - 2 ) + + 10
----
8

query I rowsort
SELECT 44 - - - 57 + + - 71
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-5620
SELECT ALL + COUNT( * ) + - 79 - - 25 + - 53 AS col2
----
-106

skipif mysql # not compatible
query I rowsort label-5620
SELECT ALL + COUNT ( * ) + - 79 - - 25 + - 53 AS col2
----
-106

query I rowsort
SELECT 25 * - 65
----
-1625

onlyif mysql # DIV for integer division: 
query I rowsort label-5622
SELECT ALL 6 DIV COALESCE ( + ( 36 ), - NULLIF ( 88, + + 66 ) + + 67 ) * - + 15
----
0

skipif mysql # not compatible
query I rowsort label-5622
SELECT ALL 6 / COALESCE ( + ( 36 ), - NULLIF ( 88, + + 66 ) + + 67 ) * - + 15
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5623
SELECT ALL + 16 * MAX( 55 )
----
880

skipif mysql # not compatible
query I rowsort label-5623
SELECT ALL + 16 * MAX ( 55 )
----
880

onlyif mysql # aggregate syntax: 
query II rowsort label-5624
SELECT 44 + COALESCE ( - 13, + 74, 98 * COUNT( * ) ) AS col2, + 99 AS col2
----
31
99

skipif mysql # not compatible
query II rowsort label-5624
SELECT 44 + COALESCE ( - 13, + 74, 98 * COUNT ( * ) ) AS col2, + 99 AS col2
----
31
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5625
SELECT ALL - COALESCE ( 6, - - CAST( + ( + 28 ) AS SIGNED ) * 63, + 61 ) * + + 20 AS col1, COUNT( * ) col0
----
-120
1

skipif mysql # not compatible
query II rowsort label-5625
SELECT ALL - COALESCE ( 6, - - CAST ( + ( + 28 ) AS INTEGER ) * 63, + 61 ) * + + 20 AS col1, COUNT ( * ) col0
----
-120
1

query I rowsort
SELECT 66 * - + 46
----
-3036

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5628
SELECT - 72, 26 DIV COUNT( * ) AS col0
----
-72
26

skipif mysql # not compatible
query II rowsort label-5628
SELECT - 72, 26 / COUNT ( * ) AS col0
----
-72
26

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5630
SELECT + COALESCE ( + + 25, CASE - 53 WHEN - 28 + + COALESCE ( - 12, - - COUNT( * ) ) * - ( 29 ) * - + 42 / + ( - 12 ) THEN + 52 END )
----
25

skipif mysql # not compatible
query I rowsort label-5630
SELECT + COALESCE ( + + 25, CASE - 53 WHEN - 28 + + COALESCE ( - 12, - - COUNT ( * ) ) * - ( 29 ) * - + 42 / + ( - 12 ) THEN + 52 END )
----
25

onlyif mysql # DIV for integer division: 
query I rowsort label-5631
SELECT - 5 DIV + 53 - - 64 - - - 66
----
-2

skipif mysql # not compatible
query I rowsort label-5631
SELECT - 5 / + 53 - - 64 - - - 66
----
-2

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

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

query I rowsort
SELECT 66 * + 57 + + 48 + + - 42 * 32 AS col0
----
2466

onlyif mysql # aggregate syntax: 
query I rowsort label-5634
SELECT + 29 * + 27 * + 55 + NULLIF ( COALESCE ( - ( 44 ), - CASE + COUNT( ALL 78 ) WHEN + CASE - 77 WHEN + 54 THEN NULL WHEN + COALESCE ( 8, + - MIN( DISTINCT - 53 ) ) / + 55 + - + ( + 58 ) THEN + 33 * COUNT( * ) + + - 13 ELSE + ( - 62 ) END * + - 50 * - CASE 84 WHEN - 61 * 73 THEN COUNT( * ) / 69 + - COUNT( * ) ELSE NULL END + 78 THEN - 74 ELSE 42 END ), + 56 )
----
43021

skipif mysql # not compatible
query I rowsort label-5634
SELECT + 29 * + 27 * + 55 + NULLIF ( COALESCE ( - ( 44 ), - CASE + COUNT ( ALL 78 ) WHEN + CASE - 77 WHEN + 54 THEN NULL WHEN + COALESCE ( 8, + - MIN ( DISTINCT - 53 ) ) / + 55 + - + ( + 58 ) THEN + 33 * COUNT ( * ) + + - 13 ELSE + ( - 62 ) END * + - 50 * - CASE 84 WHEN - 61 * 73 THEN COUNT ( * ) / 69 + - COUNT ( * ) ELSE NULL END + 78 THEN - 74 ELSE 42 END ), + 56 )
----
43021

query II rowsort
SELECT ALL - 55, + ( 70 ) AS col1
----
-55
70

query I rowsort
SELECT DISTINCT 95 * + 40 AS col2
----
3800

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5637
SELECT - CASE 43 WHEN + - 41 THEN - - CASE - 59 WHEN + COUNT( * ) + 38 + 92 * + 98 + 85 * - 72 * 13 * 6 THEN - + 56 * - ( - ( - + 36 ) ) WHEN - + ( + - 68 ) * COUNT( * ) + + - 19 + - 18 THEN - ( + 79 ) END * 2 + 7 WHEN - 39 THEN + COALESCE ( - 6, + 46, + CAST( NULL AS DECIMAL ) - - 38 ) + 81 * ( + 4 ) END * COALESCE ( 94 * + 3 - + MIN( DISTINCT 58 + 74 ), 16 * + COUNT( + 45 * - 57 ), - COUNT( * ) * 9 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5637
SELECT - CASE 43 WHEN + - 41 THEN - - CASE - 59 WHEN + COUNT ( * ) + 38 + 92 * + 98 + 85 * - 72 * 13 * 6 THEN - + 56 * - ( - ( - + 36 ) ) WHEN - + ( + - 68 ) * COUNT ( * ) + + - 19 + - 18 THEN - ( + 79 ) END * 2 + 7 WHEN - 39 THEN + COALESCE ( - 6, + 46, + CAST ( NULL AS REAL ) - - 38 ) + 81 * ( + 4 ) END * COALESCE ( 94 * + 3 - + MIN ( DISTINCT 58 + 74 ), 16 * + COUNT ( + 45 * - 57 ), - COUNT ( * ) * 9 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5638
SELECT ALL - - COUNT( * ) * 86 + + 18 + - 29 DIV + COUNT( * ) AS col1
----
75

skipif mysql # not compatible
query I rowsort label-5638
SELECT ALL - - COUNT ( * ) * 86 + + 18 + - 29 / + COUNT ( * ) AS col1
----
75

query I rowsort
SELECT ( - + 18 ) + + - 75
----
-93

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5640
SELECT - ( - 81 ) DIV - COUNT( * ) - - 11 AS col2
----
-70

skipif mysql # not compatible
query I rowsort label-5640
SELECT - ( - 81 ) / - COUNT ( * ) - - 11 AS col2
----
-70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5641
SELECT + NULLIF ( + + NULLIF ( - - 48, ( + - 17 ) * - 97 - + + 38 + + AVG ( - 79 ) ), + 29 - + 15 ) DIV + COUNT( * )
----
48

skipif mysql # not compatible
query I rowsort label-5641
SELECT + NULLIF ( + + NULLIF ( - - 48, ( + - 17 ) * - 97 - + + 38 + + AVG ( - 79 ) ), + 29 - + 15 ) / + COUNT ( * )
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-5642
SELECT + 10 * COUNT( * ) * 71 * - 22 + - + 21 * COUNT( * )
----
-15641

skipif mysql # not compatible
query I rowsort label-5642
SELECT + 10 * COUNT ( * ) * 71 * - 22 + - + 21 * COUNT ( * )
----
-15641

query I rowsort
SELECT DISTINCT + + 4 + - - 90 * + 90
----
8104

query I rowsort
SELECT ALL - NULLIF ( - - 0, - 36 + ( + 58 ) * + + 35 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5645
SELECT - 76 + + + MAX( - CAST( - 32 AS SIGNED ) ) * - 38 * - 0 + - COALESCE ( + - 41, + 10 * - 34 ) + + COUNT( * ) * - 61 + ( + + 71 )
----
-25

skipif mysql # not compatible
query I rowsort label-5645
SELECT - 76 + + + MAX ( - CAST ( - 32 AS INTEGER ) ) * - 38 * - 0 + - COALESCE ( + - 41, + 10 * - 34 ) + + COUNT ( * ) * - 61 + ( + + 71 )
----
-25

onlyif mysql # aggregate syntax: 
query II rowsort label-5646
SELECT ALL + COUNT( * ) + 75 AS col0, - 15 + - - 27 col1
----
76
12

skipif mysql # not compatible
query II rowsort label-5646
SELECT ALL + COUNT ( * ) + 75 AS col0, - 15 + - - 27 col1
----
76
12

query II rowsort
SELECT 69 AS col1, + 35 AS col0
----
69
35

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5650
SELECT ALL COALESCE ( + 62, - 85 + 61 ) + + 58 + COUNT( * ) * + 3
----
123

skipif mysql # not compatible
query I rowsort label-5650
SELECT ALL COALESCE ( + 62, - 85 + 61 ) + + 58 + COUNT ( * ) * + 3
----
123

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5651
SELECT 50 AS col1, - CAST( NULL AS SIGNED )
----
50
NULL

skipif mysql # not compatible
query II rowsort label-5651
SELECT 50 AS col1, - CAST ( NULL AS INTEGER )
----
50
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5652
SELECT - 85 * - MIN( DISTINCT - + 12 ) + + 31 * 38 + - 78 AS col1
----
80

skipif mysql # not compatible
query I rowsort label-5652
SELECT - 85 * - MIN ( DISTINCT - + 12 ) + + 31 * 38 + - 78 AS col1
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-5653
SELECT DISTINCT 1 * - 33 * COUNT( * )
----
-33

skipif mysql # not compatible
query I rowsort label-5653
SELECT DISTINCT 1 * - 33 * COUNT ( * )
----
-33

query I rowsort
SELECT 9 * - 20
----
-180

query I rowsort
SELECT 44 + + - 34
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-5656
SELECT ALL 19 + MAX( ALL ( - + 78 ) ) AS col2
----
-59

skipif mysql # not compatible
query I rowsort label-5656
SELECT ALL 19 + MAX ( ALL ( - + 78 ) ) AS col2
----
-59

onlyif mysql # aggregate syntax: 
query II rowsort label-5657
SELECT ALL ( COUNT( 66 ) ) + 19, 58 AS col2
----
20
58

skipif mysql # not compatible
query II rowsort label-5657
SELECT ALL ( COUNT ( 66 ) ) + 19, 58 AS col2
----
20
58

query I rowsort
SELECT DISTINCT 54 * - 42
----
-2268

onlyif mysql # aggregate syntax: 
query II rowsort label-5659
SELECT ALL 82 AS col1, COUNT( ALL + 5 )
----
82
1

skipif mysql # not compatible
query II rowsort label-5659
SELECT ALL 82 AS col1, COUNT ( ALL + 5 )
----
82
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5660
SELECT COUNT( * ) + - 80 * + 14 AS col0
----
-1119

skipif mysql # not compatible
query I rowsort label-5660
SELECT COUNT ( * ) + - 80 * + 14 AS col0
----
-1119

onlyif mysql # aggregate syntax: 
query I rowsort label-5661
SELECT DISTINCT COUNT( * ) * - 82 AS col2
----
-82

skipif mysql # not compatible
query I rowsort label-5661
SELECT DISTINCT COUNT ( * ) * - 82 AS col2
----
-82

onlyif mysql # DIV for integer division: 
query I rowsort label-5662
SELECT DISTINCT - 76 - 6 DIV ( + 67 ) + + - 81
----
-157

skipif mysql # not compatible
query I rowsort label-5662
SELECT DISTINCT - 76 - 6 / ( + 67 ) + + - 81
----
-157

onlyif mysql # aggregate syntax: 
query I rowsort label-5663
SELECT DISTINCT COUNT( * ) * 74 * 90 AS col0
----
6660

skipif mysql # not compatible
query I rowsort label-5663
SELECT DISTINCT COUNT ( * ) * 74 * 90 AS col0
----
6660

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5664
SELECT 60 * - 24 * + 65 * - 11 * - + CAST( - - 28 AS SIGNED )
----
-28828800

skipif mysql # not compatible
query I rowsort label-5664
SELECT 60 * - 24 * + 65 * - 11 * - + CAST ( - - 28 AS INTEGER )
----
-28828800

onlyif mysql # aggregate syntax: 
query II rowsort label-5665
SELECT - COUNT( * ), + 25 + - 7 + 12 + + MIN( + - 1 ) AS col0
----
-1
29

skipif mysql # not compatible
query II rowsort label-5665
SELECT - COUNT ( * ), + 25 + - 7 + 12 + + MIN ( + - 1 ) AS col0
----
-1
29

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5666
SELECT DISTINCT 88 DIV + MAX( DISTINCT + 87 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5666
SELECT DISTINCT 88 / + MAX ( DISTINCT + 87 ) AS col1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-5667
SELECT 79 DIV + - 30 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-5667
SELECT 79 / + - 30 AS col2
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5668
SELECT ALL + 58 DIV + COALESCE ( 88, 27, + 78 + + - 25 + COUNT( * ) + - COALESCE ( + 84, - NULLIF ( + NULLIF ( 2, 90 * + - 72 ), - NULLIF ( 31, 32 + - NULLIF ( + + 13, COUNT( * ) + + + ( 18 ) DIV + 76 + - 2 ) ) - + CAST( + 55 AS SIGNED ) + - 22 + - 60 ), COUNT( * ) DIV - 80 * - ( - 19 ) ) * + COUNT( * ) * + 19 )
----
0

skipif mysql # not compatible
query I rowsort label-5668
SELECT ALL + 58 / + COALESCE ( 88, 27, + 78 + + - 25 + COUNT ( * ) + - COALESCE ( + 84, - NULLIF ( + NULLIF ( 2, 90 * + - 72 ), - NULLIF ( 31, 32 + - NULLIF ( + + 13, COUNT ( * ) + + + ( 18 ) / + 76 + - 2 ) ) - + CAST ( + 55 AS INTEGER ) + - 22 + - 60 ), COUNT ( * ) / - 80 * - ( - 19 ) ) * + COUNT ( * ) * + 19 )
----
0

query I rowsort
SELECT 42 * - + 59 col1
----
-2478

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

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

query I rowsort
SELECT - 8 * - 42 col1
----
336

query II rowsort
SELECT ALL + 75, + 87 AS col2
----
75
87

onlyif mysql # aggregate syntax: 
query I rowsort label-5673
SELECT + 17 + - - COUNT( * ) * + 92 - - 96 AS col0
----
205

skipif mysql # not compatible
query I rowsort label-5673
SELECT + 17 + - - COUNT ( * ) * + 92 - - 96 AS col0
----
205

query II rowsort
SELECT ALL 73 AS col2, - 92 AS col1
----
73
-92

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5676
SELECT ALL - 75 * + - COUNT( * ) * MAX( - + 26 ) + - 50
----
-2000

skipif mysql # not compatible
query I rowsort label-5676
SELECT ALL - 75 * + - COUNT ( * ) * MAX ( - + 26 ) + - 50
----
-2000

onlyif mysql # aggregate syntax: 
query II rowsort label-5677
SELECT DISTINCT - 39, + ( - + SUM( ALL - 70 ) ) * - 3 + - + 23 + + 64 * + 46 AS col1
----
-39
2711

skipif mysql # not compatible
query II rowsort label-5677
SELECT DISTINCT - 39, + ( - + SUM ( ALL - 70 ) ) * - 3 + - + 23 + + 64 * + 46 AS col1
----
-39
2711

query I rowsort
SELECT 42 + + 27 * - - CASE 62 WHEN + 22 THEN NULL WHEN - 76 THEN + 12 ELSE NULL END col2
----
NULL

query I rowsort
SELECT DISTINCT - 84 * + + 36 col0
----
-3024

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5682
SELECT - COUNT( * ) / 31 * 22 - - 87 + CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5682
SELECT - COUNT ( * ) / 31 * 22 - - 87 + CAST ( NULL AS INTEGER ) col2
----
NULL

query II rowsort
SELECT ALL + - 55 AS col0, 54
----
-55
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5684
SELECT ALL + + 71 * + + 50 + CAST( + + 27 AS SIGNED )
----
3577

skipif mysql # not compatible
query I rowsort label-5684
SELECT ALL + + 71 * + + 50 + CAST ( + + 27 AS INTEGER )
----
3577

query I rowsort
SELECT - - 79 * 83 AS col0
----
6557

query I rowsort
SELECT ALL - 53 * - 24 + - + 25 AS col1
----
1247

onlyif mysql # aggregate syntax: 
query I rowsort label-5687
SELECT ALL + 88 * - 87 + - 94 + - COUNT( * ) + - - MAX( ALL - 7 ) + - COALESCE ( + 74, + 31 + + - 20 )
----
-7832

skipif mysql # not compatible
query I rowsort label-5687
SELECT ALL + 88 * - 87 + - 94 + - COUNT ( * ) + - - MAX ( ALL - 7 ) + - COALESCE ( + 74, + 31 + + - 20 )
----
-7832

query I rowsort
SELECT DISTINCT + - 39 col0
----
-39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5689
SELECT ALL + CAST( NULL AS SIGNED ) * 28 + + + 58
----
NULL

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

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-5691
SELECT - 7 DIV - 81 AS col1, - 88 - - - 29 * + - COALESCE ( 0, + 74 ) AS col0
----
0
-88

skipif mysql # not compatible
query II rowsort label-5691
SELECT - 7 / - 81 AS col1, - 88 - - - 29 * + - COALESCE ( 0, + 74 ) AS col0
----
0
-88

query I rowsort
SELECT - 25 * - 83 AS col0
----
2075

query I rowsort
SELECT - 1 - + + ( 80 ) * - 24 - + 55 * + 84
----
-2701

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5695
SELECT - MIN( ALL 24 ) AS col0
----
-24

skipif mysql # not compatible
query I rowsort label-5695
SELECT - MIN ( ALL 24 ) AS col0
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-5696
SELECT 62 * - - MAX( - 85 ) + - - 67 * + - 33 * + + 96
----
-217526

skipif mysql # not compatible
query I rowsort label-5696
SELECT 62 * - - MAX ( - 85 ) + - - 67 * + - 33 * + + 96
----
-217526

onlyif mysql # aggregate syntax: 
query I rowsort label-5697
SELECT ALL - COALESCE ( - 40, - + COUNT( * ) ) - - 53 + 30 AS col2
----
123

skipif mysql # not compatible
query I rowsort label-5697
SELECT ALL - COALESCE ( - 40, - + COUNT ( * ) ) - - 53 + 30 AS col2
----
123

onlyif mysql # aggregate syntax: 
query II rowsort label-5698
SELECT DISTINCT ( - COUNT( * ) ) AS col0, + 4 + + - SUM( 64 ) + - 0 + - - MAX( ALL - - 21 ) AS col2
----
-1
-39

skipif mysql # not compatible
query II rowsort label-5698
SELECT DISTINCT ( - COUNT ( * ) ) AS col0, + 4 + + - SUM ( 64 ) + - 0 + - - MAX ( ALL - - 21 ) AS col2
----
-1
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-5699
SELECT - 41 + COUNT( * ) + 27
----
-13

skipif mysql # not compatible
query I rowsort label-5699
SELECT - 41 + COUNT ( * ) + 27
----
-13

query I rowsort
SELECT - 17 + + - 53 * 83 * - 87 * + 60
----
22962763

query I rowsort
SELECT DISTINCT 47 * + 74
----
3478

onlyif mysql # aggregate syntax: 
query I rowsort label-5702
SELECT + MAX( + + 7 ) * + - 31
----
-217

skipif mysql # not compatible
query I rowsort label-5702
SELECT + MAX ( + + 7 ) * + - 31
----
-217

onlyif mysql # DIV for integer division: 
query I rowsort label-5703
SELECT ALL - 90 * 80 DIV - 13 AS col0
----
553

skipif mysql # not compatible
query I rowsort label-5703
SELECT ALL - 90 * 80 / - 13 AS col0
----
553

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5704
SELECT DISTINCT - 79 * COALESCE ( - COUNT( * ), 27 * - + 21 * COUNT( * ) DIV - NULLIF ( + 32, - 88 ) ) AS col0
----
79

skipif mysql # not compatible
query I rowsort label-5704
SELECT DISTINCT - 79 * COALESCE ( - COUNT ( * ), 27 * - + 21 * COUNT ( * ) / - NULLIF ( + 32, - 88 ) ) AS col0
----
79

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

query II rowsort
SELECT + - 35 * + + 31 AS col1, + 75 AS col0
----
-1085
75

query I rowsort
SELECT ALL 98 * 80
----
7840

query I rowsort
SELECT + 81 + + 83
----
164

query I rowsort
SELECT - 65 * + 51 * + - 35 AS col2
----
116025

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5711
SELECT ALL + - NULLIF ( + - 4, CAST( NULL AS SIGNED ) * - - 4 + - CAST( ( + + 5 ) AS SIGNED ) / + + 24 )
----
4

skipif mysql # not compatible
query I rowsort label-5711
SELECT ALL + - NULLIF ( + - 4, CAST ( NULL AS INTEGER ) * - - 4 + - CAST ( ( + + 5 ) AS INTEGER ) / + + 24 )
----
4

onlyif mysql # DIV for integer division: 
query I rowsort label-5712
SELECT DISTINCT + 56 DIV - + 99 + 0 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5712
SELECT DISTINCT + 56 / - + 99 + 0 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5713
SELECT 83 / + 95 / - + 39 + + + CASE + + 29 WHEN - 87 + - COUNT( + 22 ) * - 4 + - - 43 + + 4 + + COUNT( * ) + - - 94 * + COUNT( * ) * - 71 THEN NULL WHEN - 14 THEN 88 + - + 43 / - 48 WHEN COALESCE ( - + 75, 14, + MIN( ALL - 44 ), + 66 + + - 55 ) / + 85 + + + 19 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5713
SELECT 83 / + 95 / - + 39 + + + CASE + + 29 WHEN - 87 + - COUNT ( + 22 ) * - 4 + - - 43 + + 4 + + COUNT ( * ) + - - 94 * + COUNT ( * ) * - 71 THEN NULL WHEN - 14 THEN 88 + - + 43 / - 48 WHEN COALESCE ( - + 75, 14, + MIN ( ALL - 44 ), + 66 + + - 55 ) / + 85 + + + 19 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5714
SELECT ALL + - 93 DIV - 48 + COUNT( * ) AS col0
----
2

skipif mysql # not compatible
query I rowsort label-5714
SELECT ALL + - 93 / - 48 + COUNT ( * ) AS col0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-5715
SELECT + + 8 + - - NULLIF ( + 45, - + 13 ) * + ( + 25 ) * - ( + COUNT( * ) )
----
-1117

skipif mysql # not compatible
query I rowsort label-5715
SELECT + + 8 + - - NULLIF ( + 45, - + 13 ) * + ( + 25 ) * - ( + COUNT ( * ) )
----
-1117

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5716
SELECT ALL 62 DIV + 71 + - 14 * + 16 + - + COUNT( * ) + - - 70 + - 93 AS col0
----
-248

skipif mysql # not compatible
query I rowsort label-5716
SELECT ALL 62 / + 71 + - 14 * + 16 + - + COUNT ( * ) + - - 70 + - 93 AS col0
----
-248

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5717
SELECT 33 * - + 43 * - 74 + + + 15 * 43 DIV - NULLIF ( - COALESCE ( 29, 5 + COUNT( * ) * - 94 ), + 85 )
----
105028

skipif mysql # not compatible
query I rowsort label-5717
SELECT 33 * - + 43 * - 74 + + + 15 * 43 / - NULLIF ( - COALESCE ( 29, 5 + COUNT ( * ) * - 94 ), + 85 )
----
105028

query I rowsort
SELECT + ( - - 89 ) + 93 AS col2
----
182

query I rowsort
SELECT ALL + 78 * + - 25 - 11 AS col1
----
-1961

onlyif mysql # DIV for integer division: 
query I rowsort label-5720
SELECT + 11 + + - 52 DIV 39
----
10

skipif mysql # not compatible
query I rowsort label-5720
SELECT + 11 + + - 52 / 39
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-5721
SELECT - 37 - + ( + 24 ) + + - COUNT( * ) col0
----
-62

skipif mysql # not compatible
query I rowsort label-5721
SELECT - 37 - + ( + 24 ) + + - COUNT ( * ) col0
----
-62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5722
SELECT + CAST( NULL AS SIGNED ), + COUNT( * ) AS col1
----
NULL
1

skipif mysql # not compatible
query II rowsort label-5722
SELECT + CAST ( NULL AS INTEGER ), + COUNT ( * ) AS col1
----
NULL
1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-5723
SELECT ALL - COUNT( * ) * 55 / 33 + + CAST( NULL AS DECIMAL ) - + 69 * 31 * CASE + 58 WHEN - + 59 THEN + 66 * + + MIN( - + 77 ) + + 22 * + + NULLIF ( - 20, + - 20 ) END, - MIN( DISTINCT 25 ) AS col1
----
NULL
-25

skipif mysql # not compatible
query II rowsort label-5723
SELECT ALL - COUNT ( * ) * 55 / 33 + + CAST ( NULL AS REAL ) - + 69 * 31 * CASE + 58 WHEN - + 59 THEN + 66 * + + MIN ( - + 77 ) + + 22 * + + NULLIF ( - 20, + - 20 ) END, - MIN ( DISTINCT 25 ) AS col1
----
NULL
-25

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5724
SELECT DISTINCT + CASE - 6 WHEN + - AVG ( ALL + + 8 ) * + 55 + + + 20 + - 63 DIV - SUM( DISTINCT - + 63 ) THEN - NULLIF ( MIN( ALL - + 77 ), COUNT( * ) * 40 + + 14 ) + + ( + ( - 66 ) ) + - 48 - AVG ( - 79 ) * 96 DIV + COUNT( * ) + + - 78 ELSE - 29 + + 97 DIV 81 END
----
-28

skipif mysql # not compatible
query I rowsort label-5724
SELECT DISTINCT + CASE - 6 WHEN + - AVG ( ALL + + 8 ) * + 55 + + + 20 + - 63 / - SUM ( DISTINCT - + 63 ) THEN - NULLIF ( MIN ( ALL - + 77 ), COUNT ( * ) * 40 + + 14 ) + + ( + ( - 66 ) ) + - 48 - AVG ( - 79 ) * 96 / + COUNT ( * ) + + - 78 ELSE - 29 + + 97 / 81 END
----
-28

query I rowsort
SELECT ( 63 ) col1
----
63

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

skipif mysql # not compatible
query I rowsort label-5726
SELECT DISTINCT - 77 * - COUNT ( * ) - + + 31
----
46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5727
SELECT - 77 + - 99 DIV COUNT( * )
----
-176

skipif mysql # not compatible
query I rowsort label-5727
SELECT - 77 + - 99 / COUNT ( * )
----
-176

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5729
SELECT - MAX( DISTINCT + CAST( NULL AS SIGNED ) ) + - 71 - + 37 + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5729
SELECT - MAX ( DISTINCT + CAST ( NULL AS INTEGER ) ) + - 71 - + 37 + COUNT ( * ) AS col2
----
NULL

query I rowsort
SELECT ALL + 57 * - 89 AS col0
----
-5073

onlyif mysql # aggregate syntax: 
query I rowsort label-5731
SELECT - MAX( - 45 ) * COUNT( * ) AS col2
----
45

skipif mysql # not compatible
query I rowsort label-5731
SELECT - MAX ( - 45 ) * COUNT ( * ) AS col2
----
45

query I rowsort
SELECT ALL + CASE WHEN + CASE + 75 WHEN + - 47 - 4 / + - 68 + - 10 THEN NULL WHEN + - 9 * 76 THEN - ( - - 1 ) * - + 18 ELSE NULL END IS NULL THEN - 29 END
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-5733
SELECT NULLIF ( - SUM( - - 65 ), 78 * - CASE 17 WHEN 42 THEN + 44 + 92 + - 85 + + 65 - - 49 END - 23 + + 2 ) col1
----
-65

skipif mysql # not compatible
query I rowsort label-5733
SELECT NULLIF ( - SUM ( - - 65 ), 78 * - CASE 17 WHEN 42 THEN + 44 + 92 + - 85 + + 65 - - 49 END - 23 + + 2 ) col1
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-5734
SELECT 85 * + MIN( ALL - - 55 ) * 53 + + 50 AS col1
----
247825

skipif mysql # not compatible
query I rowsort label-5734
SELECT 85 * + MIN ( ALL - - 55 ) * 53 + + 50 AS col1
----
247825

query II rowsort
SELECT - ( + 52 ) + + 53 AS col0, - 14 + + - 12 AS col0
----
1
-26

query I rowsort
SELECT ALL + 58 * - + 5 AS col1
----
-290

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5738
SELECT + ( + 25 ) * - - 12 + - + COUNT( * ) DIV - + 8
----
300

skipif mysql # not compatible
query I rowsort label-5738
SELECT + ( + 25 ) * - - 12 + - + COUNT ( * ) / - + 8
----
300

onlyif mysql # aggregate syntax: 
query I rowsort label-5739
SELECT + COUNT( * ) + + ( - + 41 ) AS col1
----
-40

skipif mysql # not compatible
query I rowsort label-5739
SELECT + COUNT ( * ) + + ( - + 41 ) AS col1
----
-40

query I rowsort
SELECT ALL - 95 * + + 58 AS col1
----
-5510

query II rowsort
SELECT - 44 AS col2, 61
----
-44
61

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

skipif mysql # not compatible
query I rowsort label-5742
SELECT MIN ( ALL + CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

query I rowsort
SELECT - 5 + + - 85 AS col0
----
-90

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5744
SELECT COUNT( * ) AS col0, + ( + 1 ) DIV 57 * 46 AS col1
----
1
0

skipif mysql # not compatible
query II rowsort label-5744
SELECT COUNT ( * ) AS col0, + ( + 1 ) / 57 * 46 AS col1
----
1
0

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5747
SELECT - + COALESCE ( - 84, - - 46, 41 + - - 58 - - + 6 DIV - COUNT( * ) * + + ( - ( - - CAST( NULL AS SIGNED ) ) ) + 27 + 32 - - 55 * - 27 * + - 48 * - ( + + 99 ) ) AS col2
----
84

skipif mysql # not compatible
query I rowsort label-5747
SELECT - + COALESCE ( - 84, - - 46, 41 + - - 58 - - + 6 / - COUNT ( * ) * + + ( - ( - - CAST ( NULL AS INTEGER ) ) ) + 27 + 32 - - 55 * - 27 * + - 48 * - ( + + 99 ) ) AS col2
----
84

onlyif mysql # aggregate syntax: 
query II rowsort label-5748
SELECT 51 - + + CASE WHEN NULL NOT IN ( + 96 ) THEN + COUNT( * ) WHEN NOT ( ( + 89 + + COUNT( * ) ) IS NULL ) THEN NULL END * 89 AS col2, 84 + + 13 - + - MIN( DISTINCT + + 14 ) * 22
----
NULL
405

skipif mysql # not compatible
query II rowsort label-5748
SELECT 51 - + + CASE WHEN NULL NOT IN ( + 96 ) THEN + COUNT ( * ) WHEN NOT ( ( + 89 + + COUNT ( * ) ) IS NULL ) THEN NULL END * 89 AS col2, 84 + + 13 - + - MIN ( DISTINCT + + 14 ) * 22
----
NULL
405

query I rowsort
SELECT 82 * + 22
----
1804

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

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

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

skipif mysql # not compatible
query I rowsort label-5751
SELECT DISTINCT + 67 + + CAST ( + 30 AS INTEGER )
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5752
SELECT - MAX( ALL COALESCE ( - 17, 10 ) ) AS col1
----
17

skipif mysql # not compatible
query I rowsort label-5752
SELECT - MAX ( ALL COALESCE ( - 17, 10 ) ) AS col1
----
17

onlyif mysql # aggregate syntax: 
query II rowsort label-5753
SELECT ALL - 34 * - + 63 * - 48 AS col2, 78 * + + COUNT( * ) AS col2
----
-102816
78

skipif mysql # not compatible
query II rowsort label-5753
SELECT ALL - 34 * - + 63 * - 48 AS col2, 78 * + + COUNT ( * ) AS col2
----
-102816
78

query I rowsort
SELECT + 62 + 27 AS col2
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-5755
SELECT ALL + 18 + - COUNT( DISTINCT 2 )
----
17

skipif mysql # not compatible
query I rowsort label-5755
SELECT ALL + 18 + - COUNT ( DISTINCT 2 )
----
17

query I rowsort
SELECT - 2 + - NULLIF ( 71, - - 79 )
----
-73

query I rowsort
SELECT ALL - 43 + - 79 AS col0
----
-122

query I rowsort
SELECT 51 + 45 AS col2
----
96

query I rowsort
SELECT ALL 68 + + + 56 AS col1
----
124

onlyif mysql # aggregate syntax: 
query II rowsort label-5760
SELECT ALL - - COUNT( * ) AS col2, 38 * + 22
----
1
836

skipif mysql # not compatible
query II rowsort label-5760
SELECT ALL - - COUNT ( * ) AS col2, 38 * + 22
----
1
836

onlyif mysql # aggregate syntax: 
query I rowsort label-5761
SELECT DISTINCT 17 + - COUNT( * ) + + 92 AS col1
----
108

skipif mysql # not compatible
query I rowsort label-5761
SELECT DISTINCT 17 + - COUNT ( * ) + + 92 AS col1
----
108

onlyif mysql # aggregate syntax: 
query II rowsort label-5762
SELECT + COUNT( * ) AS col1, + 99 - 16 AS col0
----
1
83

skipif mysql # not compatible
query II rowsort label-5762
SELECT + COUNT ( * ) AS col1, + 99 - 16 AS col0
----
1
83

onlyif mysql # aggregate syntax: 
query I rowsort label-5763
SELECT ALL - 91 + + ( SUM( 81 ) ) + - 60 AS col1
----
-70

skipif mysql # not compatible
query I rowsort label-5763
SELECT ALL - 91 + + ( SUM ( 81 ) ) + - 60 AS col1
----
-70

onlyif mysql # DIV for integer division: 
query I rowsort label-5764
SELECT - + 1 DIV - 32 + + 97 AS col1
----
97

skipif mysql # not compatible
query I rowsort label-5764
SELECT - + 1 / - 32 + + 97 AS col1
----
97

onlyif mysql # DIV for integer division: 
query I rowsort label-5765
SELECT DISTINCT 78 DIV + - 29 col2
----
-2

skipif mysql # not compatible
query I rowsort label-5765
SELECT DISTINCT 78 / + - 29 col2
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5766
SELECT ALL 96 DIV + - COALESCE ( + COUNT( * ), 71, CAST( NULL AS SIGNED ), 15 ) AS col1
----
-96

skipif mysql # not compatible
query I rowsort label-5766
SELECT ALL 96 / + - COALESCE ( + COUNT ( * ), 71, CAST ( NULL AS INTEGER ), 15 ) AS col1
----
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5767
SELECT 25 / + 49 * - + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5767
SELECT 25 / + 49 * - + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5768
SELECT DISTINCT - 43 - 19 * COUNT( * ) + - 57 + - + 40 * + 67
----
-2799

skipif mysql # not compatible
query I rowsort label-5768
SELECT DISTINCT - 43 - 19 * COUNT ( * ) + - 57 + - + 40 * + 67
----
-2799

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5769
SELECT ALL + 89 * CAST( + 69 AS SIGNED ) * 68 - - MAX( - 78 ) AS col1
----
417510

skipif mysql # not compatible
query I rowsort label-5769
SELECT ALL + 89 * CAST ( + 69 AS INTEGER ) * 68 - - MAX ( - 78 ) AS col1
----
417510

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5770
SELECT ALL - 26 - + CASE + CAST( NULL AS SIGNED ) WHEN 80 + + 77 - + - 28 THEN NULL WHEN - 89 * COUNT( * ) + 13 THEN NULL ELSE - + 88 * NULLIF ( + + ( + COUNT( * ) ), - 20 * - 22 / - 91 + + CAST( 24 AS SIGNED ) + - 39 + COUNT( * ) + + MAX( DISTINCT + - 74 ) + + - 95 - + CAST( 15 AS SIGNED ) + + SUM( + - 38 ) + 80 * 45 * 55 * + + 68 + - - 78 ) + + NULLIF ( 3, + 97 ) * + COUNT( * ) + COALESCE ( - 88, 85 * 28 + + ( + 83 ) ) * - MAX( ALL - 63 ) END + - 16
----
5587

skipif mysql # not compatible
query I rowsort label-5770
SELECT ALL - 26 - + CASE + CAST ( NULL AS INTEGER ) WHEN 80 + + 77 - + - 28 THEN NULL WHEN - 89 * COUNT ( * ) + 13 THEN NULL ELSE - + 88 * NULLIF ( + + ( + COUNT ( * ) ), - 20 * - 22 / - 91 + + CAST ( 24 AS INTEGER ) + - 39 + COUNT ( * ) + + MAX ( DISTINCT + - 74 ) + + - 95 - + CAST ( 15 AS INTEGER ) + + SUM ( + - 38 ) + 80 * 45 * 55 * + + 68 + - - 78 ) + + NULLIF ( 3, + 97 ) * + COUNT ( * ) + COALESCE ( - 88, 85 * 28 + + ( + 83 ) ) * - MAX ( ALL - 63 ) END + - 16
----
5587

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

skipif mysql # not compatible
query I rowsort label-5771
SELECT 50 / + + 54
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5772
SELECT ALL ( 99 ) * NULLIF ( + - 5, - - 78 * + 83 + - - CAST( NULL AS SIGNED ) * + 18 - + 45 )
----
-495

skipif mysql # not compatible
query I rowsort label-5772
SELECT ALL ( 99 ) * NULLIF ( + - 5, - - 78 * + 83 + - - CAST ( NULL AS INTEGER ) * + 18 - + 45 )
----
-495

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5773
SELECT - 48 * MIN( ALL + - 59 ) - COUNT( * ) * + 79 DIV - - 37 col0
----
2830

skipif mysql # not compatible
query I rowsort label-5773
SELECT - 48 * MIN ( ALL + - 59 ) - COUNT ( * ) * + 79 / - - 37 col0
----
2830

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5774
SELECT 60 * + COALESCE ( + CAST( - + 17 AS SIGNED ), + - COUNT( * ) + + 57, + 41 ) AS col1, ( - 33 ) * + 9
----
-1020
-297

skipif mysql # not compatible
query II rowsort label-5774
SELECT 60 * + COALESCE ( + CAST ( - + 17 AS INTEGER ), + - COUNT ( * ) + + 57, + 41 ) AS col1, ( - 33 ) * + 9
----
-1020
-297

query I rowsort
SELECT DISTINCT + 72 * - 48 * 63 AS col2
----
-217728

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5777
SELECT CAST( 91 AS SIGNED ) * + + 91 AS col2
----
8281

skipif mysql # not compatible
query I rowsort label-5777
SELECT CAST ( 91 AS INTEGER ) * + + 91 AS col2
----
8281

onlyif mysql # aggregate syntax: 
query I rowsort label-5778
SELECT 85 * + ( + - 94 ) * - ( + 60 ) + - MIN( DISTINCT - 58 )
----
479458

skipif mysql # not compatible
query I rowsort label-5778
SELECT 85 * + ( + - 94 ) * - ( + 60 ) + - MIN ( DISTINCT - 58 )
----
479458

onlyif mysql # aggregate syntax: 
query I rowsort label-5779
SELECT DISTINCT - ( - COALESCE ( - - ( 62 ), - COUNT( * ) * - - COUNT( * ) * - - ( + 27 ) + - 32 * - ( + MIN( ALL 20 ) ) - + 61 ) )
----
62

skipif mysql # not compatible
query I rowsort label-5779
SELECT DISTINCT - ( - COALESCE ( - - ( 62 ), - COUNT ( * ) * - - COUNT ( * ) * - - ( + 27 ) + - 32 * - ( + MIN ( ALL 20 ) ) - + 61 ) )
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-5780
SELECT 59 - + NULLIF ( - + 31, 3 ) + MIN( + 25 ) + + - 1 * + + 65 * + + 75
----
-4760

skipif mysql # not compatible
query I rowsort label-5780
SELECT 59 - + NULLIF ( - + 31, 3 ) + MIN ( + 25 ) + + - 1 * + + 65 * + + 75
----
-4760

onlyif mysql # DIV for integer division: 
query I rowsort label-5781
SELECT + 9 * ( - + 12 ) DIV - 33 - - + 33
----
36

skipif mysql # not compatible
query I rowsort label-5781
SELECT + 9 * ( - + 12 ) / - 33 - - + 33
----
36

query I rowsort
SELECT DISTINCT - 9 * 48
----
-432

query I rowsort
SELECT ALL - + 12 + + + 84 + 98 col0
----
170

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5785
SELECT - SUM( + + 86 ) AS col0, + 78 * - 52
----
-86
-4056

skipif mysql # not compatible
query II rowsort label-5785
SELECT - SUM ( + + 86 ) AS col0, + 78 * - 52
----
-86
-4056

onlyif mysql # DIV for integer division: 
query I rowsort label-5786
SELECT + 50 DIV ( - 75 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5786
SELECT + 50 / ( - 75 ) AS col2
----
0

query I rowsort
SELECT 65 + ( - 69 )
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-5788
SELECT 9 - - COUNT( ALL 8 ) + + - 63 AS col0
----
-53

skipif mysql # not compatible
query I rowsort label-5788
SELECT 9 - - COUNT ( ALL 8 ) + + - 63 AS col0
----
-53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5789
SELECT ALL COALESCE ( + + 55, - + 97 * + 5 + 71 + 47 + 73 + + COUNT( DISTINCT + + 91 ) + 1 - + ( - - 31 ), COUNT( 59 ) * + CASE - - NULLIF ( - 70, - 31 ) WHEN SUM( ALL + 51 ) + + 70 - - 7 + + 31 THEN NULL ELSE 63 - - + CAST( + + ( 1 ) AS SIGNED ) DIV - - 87 * 33 END ), - 11 AS col0
----
55
-11

skipif mysql # not compatible
query II rowsort label-5789
SELECT ALL COALESCE ( + + 55, - + 97 * + 5 + 71 + 47 + 73 + + COUNT ( DISTINCT + + 91 ) + 1 - + ( - - 31 ), COUNT ( 59 ) * + CASE - - NULLIF ( - 70, - 31 ) WHEN SUM ( ALL + 51 ) + + 70 - - 7 + + 31 THEN NULL ELSE 63 - - + CAST ( + + ( 1 ) AS INTEGER ) / - - 87 * 33 END ), - 11 AS col0
----
55
-11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5790
SELECT DISTINCT - + CAST( NULL AS SIGNED ) + - COUNT( DISTINCT + 61 ) + - - SUM( ALL - 45 ) + + 63 + + + 36 * COUNT( * ) * 78 / - COUNT( * ) * - 24 - + COUNT( - 85 ) + 54 / - ( - 75 ) / + 12 - - CAST( 82 AS DECIMAL ) * + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5790
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) + - COUNT ( DISTINCT + 61 ) + - - SUM ( ALL - 45 ) + + 63 + + + 36 * COUNT ( * ) * 78 / - COUNT ( * ) * - 24 - + COUNT ( - 85 ) + 54 / - ( - 75 ) / + 12 - - CAST ( 82 AS REAL ) * + COUNT ( * ) AS col0
----
NULL

query I rowsort
SELECT ( - 79 ) - - 78
----
-1

onlyif mysql # DIV for integer division: 
query II rowsort label-5792
SELECT + ( 89 ), - 46 DIV + ( 15 ) + + + 60 col1
----
89
57

skipif mysql # not compatible
query II rowsort label-5792
SELECT + ( 89 ), - 46 / + ( 15 ) + + + 60 col1
----
89
57

onlyif mysql # aggregate syntax: 
query I rowsort label-5793
SELECT ALL - 47 + 14 + - + 22 * 40 * 52 * + + COUNT( * ) col0
----
-45793

skipif mysql # not compatible
query I rowsort label-5793
SELECT ALL - 47 + 14 + - + 22 * 40 * 52 * + + COUNT ( * ) col0
----
-45793

query II rowsort
SELECT ALL + 89 + + 42 col1, 28
----
131
28

query I rowsort
SELECT 35 + + 50 AS col1
----
85

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5796
SELECT ALL 43 DIV - - 19 + + - 26 - COUNT( * ), 83 * 74 + 4 AS col2
----
-25
6146

skipif mysql # not compatible
query II rowsort label-5796
SELECT ALL 43 / - - 19 + + - 26 - COUNT ( * ), 83 * 74 + 4 AS col2
----
-25
6146

onlyif mysql # DIV for integer division: 
query I rowsort label-5797
SELECT ALL - 86 + + 5 DIV + 46 + + ( - 23 )
----
-109

skipif mysql # not compatible
query I rowsort label-5797
SELECT ALL - 86 + + 5 / + 46 + + ( - 23 )
----
-109

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5798
SELECT + 36 * 5 + + COUNT( - 52 ) * + COALESCE ( + CAST( NULL AS SIGNED ), - - 42 DIV - 72 * + 36 ) * - ( + SUM( DISTINCT ( + 20 ) ) ) + 55
----
235

skipif mysql # not compatible
query I rowsort label-5798
SELECT + 36 * 5 + + COUNT ( - 52 ) * + COALESCE ( + CAST ( NULL AS INTEGER ), - - 42 / - 72 * + 36 ) * - ( + SUM ( DISTINCT ( + 20 ) ) ) + 55
----
235

query II rowsort
SELECT COALESCE ( + - 13, - 38, - 89 * 8 + - 29 ) + + + COALESCE ( + 75, 48 ) * + - 83, 71 AS col0
----
-6238
71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5800
SELECT SUM( ALL + ( + CASE + CAST( NULL AS SIGNED ) WHEN + + ( + - 16 ) THEN - 39 * + 79 * - + ( 19 ) * 49 * + 40 + + 50 + - 77 * 63 * + - 0 + - 36 + + 25 * + - NULLIF ( + + 77, - + CAST( COALESCE ( + 60, 92 ) AS SIGNED ) * - + 66 ) - - 72 * - - ( - ( 7 ) ) WHEN 45 + + + 72 * - - 53 THEN 15 WHEN ( - 89 ) THEN - 12 END ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5800
SELECT SUM ( ALL + ( + CASE + CAST ( NULL AS INTEGER ) WHEN + + ( + - 16 ) THEN - 39 * + 79 * - + ( 19 ) * 49 * + 40 + + 50 + - 77 * 63 * + - 0 + - 36 + + 25 * + - NULLIF ( + + 77, - + CAST ( COALESCE ( + 60, 92 ) AS INTEGER ) * - + 66 ) - - 72 * - - ( - ( 7 ) ) WHEN 45 + + + 72 * - - 53 THEN 15 WHEN ( - 89 ) THEN - 12 END ) )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5801
SELECT ALL - - 94 - + 38 DIV + + MIN( ALL 52 ) * - + 21 AS col0
----
94

skipif mysql # not compatible
query I rowsort label-5801
SELECT ALL - - 94 - + 38 / + + MIN ( ALL 52 ) * - + 21 AS col0
----
94

onlyif mysql # aggregate syntax: 
query II rowsort label-5802
SELECT + 93 + 37 AS col2, 34 * 14 * - COUNT( * )
----
130
-476

skipif mysql # not compatible
query II rowsort label-5802
SELECT + 93 + 37 AS col2, 34 * 14 * - COUNT ( * )
----
130
-476

onlyif mysql # aggregate syntax: 
query I rowsort label-5803
SELECT - 2 + - 98 * - - COUNT( * ) AS col1
----
-100

skipif mysql # not compatible
query I rowsort label-5803
SELECT - 2 + - 98 * - - COUNT ( * ) AS col1
----
-100

query I rowsort
SELECT DISTINCT + 29 * - 82 AS col1
----
-2378

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5805
SELECT - - 25 DIV - + 63 + - COUNT( * ) * + + 50 + - 30 + - 55 * + 51 AS col1
----
-2885

skipif mysql # not compatible
query I rowsort label-5805
SELECT - - 25 / - + 63 + - COUNT ( * ) * + + 50 + - 30 + - 55 * + 51 AS col1
----
-2885

query I rowsort
SELECT 35 + 26
----
61

onlyif mysql # DIV for integer division: 
query I rowsort label-5807
SELECT 3 DIV - 95 + 19
----
19

skipif mysql # not compatible
query I rowsort label-5807
SELECT 3 / - 95 + 19
----
19

query I rowsort
SELECT ( + 59 ) + + + 13 * - NULLIF ( 23, + 93 ) AS col0
----
-240

onlyif mysql # aggregate syntax: 
query I rowsort label-5809
SELECT SUM( - 16 )
----
-16

skipif mysql # not compatible
query I rowsort label-5809
SELECT SUM ( - 16 )
----
-16

query I rowsort
SELECT 44 * - + CASE - 97 WHEN + 30 THEN NULL ELSE 7 END
----
-308

query I rowsort
SELECT 79 + 44 AS col0
----
123

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

skipif mysql # not compatible
query I rowsort label-5812
SELECT 85 / 45
----
1

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

skipif mysql # not compatible
query I rowsort label-5813
SELECT DISTINCT 24 / - 14 col0
----
-1

query I rowsort
SELECT DISTINCT 88 + + 72
----
160

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

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

query II rowsort
SELECT 94 col2, + 29 AS col2
----
94
29

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

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

query II rowsort
SELECT ALL + 30, + ( - 70 ) AS col1
----
30
-70

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

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

query I rowsort
SELECT + + 78 * + - 16 AS col0
----
-1248

query I rowsort
SELECT - + 73 + 20 * - - 33
----
587

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5822
SELECT ALL 78 * + + ( + - AVG ( DISTINCT + - CAST( NULL AS DECIMAL ) ) ) + - 25
----
NULL

skipif mysql # not compatible
query I rowsort label-5822
SELECT ALL 78 * + + ( + - AVG ( DISTINCT + - CAST ( NULL AS REAL ) ) ) + - 25
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-5823
SELECT - 9 AS col1, COUNT( - + 20 ) / CAST( NULL AS DECIMAL ) - - - 20 * - 45 + + 4 - 52 + AVG ( ALL - + 9 ) * + COUNT( DISTINCT + 38 ) * ( + + 74 )
----
-9
NULL

skipif mysql # not compatible
query II rowsort label-5823
SELECT - 9 AS col1, COUNT ( - + 20 ) / CAST ( NULL AS REAL ) - - - 20 * - 45 + + 4 - 52 + AVG ( ALL - + 9 ) * + COUNT ( DISTINCT + 38 ) * ( + + 74 )
----
-9
NULL

query I rowsort
SELECT - 17 * - 5
----
85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-5825
SELECT + 75 * - COUNT( * ) + - COUNT( * ) AS col0, - 39 + CAST( - - CAST( NULL AS DECIMAL ) AS SIGNED )
----
-76
NULL

skipif mysql # not compatible
query II rowsort label-5825
SELECT + 75 * - COUNT ( * ) + - COUNT ( * ) AS col0, - 39 + CAST ( - - CAST ( NULL AS REAL ) AS INTEGER )
----
-76
NULL

query I rowsort
SELECT ALL 45 * - 70 AS col0
----
-3150

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5827
SELECT - - CAST( - COUNT( * ) AS SIGNED ) + + 1 + + - 6 * - + ( + + 82 )
----
492

skipif mysql # not compatible
query I rowsort label-5827
SELECT - - CAST ( - COUNT ( * ) AS INTEGER ) + + 1 + + - 6 * - + ( + + 82 )
----
492

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5828
SELECT ALL - CASE + - 79 WHEN - 50 * + 52 * + + 79 * - AVG ( CAST( NULL AS SIGNED ) ) DIV + 6 + + MIN( - 27 ) + 74 + - 55 THEN - 96 ELSE - + 25 DIV - + 35 END AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5828
SELECT ALL - CASE + - 79 WHEN - 50 * + 52 * + + 79 * - AVG ( CAST ( NULL AS INTEGER ) ) / + 6 + + MIN ( - 27 ) + 74 + - 55 THEN - 96 ELSE - + 25 / - + 35 END AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5829
SELECT ALL - ( - - 92 ) - - + MAX( DISTINCT - 98 )
----
-190

skipif mysql # not compatible
query I rowsort label-5829
SELECT ALL - ( - - 92 ) - - + MAX ( DISTINCT - 98 )
----
-190

query I rowsort
SELECT - 34 + + - 64 - - + ( - 66 ) * 28 * 60 AS col2
----
-110978

query I rowsort
SELECT ALL - - 67 * 86 AS col0
----
5762

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

skipif mysql # not compatible
query II rowsort label-5832
SELECT 59 AS col2, COUNT ( * )
----
59
1

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

skipif mysql # not compatible
query I rowsort label-5833
SELECT - COUNT ( * ) / 99
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5834
SELECT DISTINCT ( MIN( + 91 ) ) col2
----
91

skipif mysql # not compatible
query I rowsort label-5834
SELECT DISTINCT ( MIN ( + 91 ) ) col2
----
91

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5836
SELECT DISTINCT CASE - - 79 WHEN - - 39 - - 86 + 10 THEN - - CAST( NULL AS DECIMAL ) WHEN - 3 / + 40 * - + MIN( DISTINCT + ( 98 ) ) / 72 + - + 19 * + + AVG ( DISTINCT 51 ) + - 83 THEN NULL WHEN + CASE WHEN NOT 99 IS NULL THEN - + 82 END + + COALESCE ( + 11, 29 ) * + SUM( DISTINCT - + 47 ) * CAST( NULL AS SIGNED ) + SUM( + 57 ) * + 28 * + NULLIF ( + - ( + 73 ), + COUNT( * ) ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5836
SELECT DISTINCT CASE - - 79 WHEN - - 39 - - 86 + 10 THEN - - CAST ( NULL AS REAL ) WHEN - 3 / + 40 * - + MIN ( DISTINCT + ( 98 ) ) / 72 + - + 19 * + + AVG ( DISTINCT 51 ) + - 83 THEN NULL WHEN + CASE WHEN NOT 99 IS NULL THEN - + 82 END + + COALESCE ( + 11, 29 ) * + SUM ( DISTINCT - + 47 ) * CAST ( NULL AS INTEGER ) + SUM ( + 57 ) * + 28 * + NULLIF ( + - ( + 73 ), + COUNT ( * ) ) THEN NULL END
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5838
SELECT - 42 * - - 87 * - COUNT( * ) AS col0
----
3654

skipif mysql # not compatible
query I rowsort label-5838
SELECT - 42 * - - 87 * - COUNT ( * ) AS col0
----
3654

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5840
SELECT DISTINCT + NULLIF ( 53, - 70 ) DIV 85 - + 66 + + - 24 * COUNT( * ) + 88 + - 67 * - 68 + + ( + - 23 ) + + 41 * 69 * 65 + + 3
----
188419

skipif mysql # not compatible
query I rowsort label-5840
SELECT DISTINCT + NULLIF ( 53, - 70 ) / 85 - + 66 + + - 24 * COUNT ( * ) + 88 + - 67 * - 68 + + ( + - 23 ) + + 41 * 69 * 65 + + 3
----
188419

query II rowsort
SELECT ALL + 99, + 1 AS col1
----
99
1

query I rowsort
SELECT 99 * - 23 * + 96 + - + 20 * + 7 * + 75 + - 25 + - + 89 + + + 38 * - - 24
----
-228294

query I rowsort
SELECT DISTINCT 71 * + 23 * - + 75 + - - 0 * - ( - 26 ) AS col1
----
-122475

query I rowsort
SELECT - 71 * 86 AS col0
----
-6106

onlyif mysql # aggregate syntax: 
query I rowsort label-5845
SELECT ( - MAX( DISTINCT 28 ) )
----
-28

skipif mysql # not compatible
query I rowsort label-5845
SELECT ( - MAX ( DISTINCT 28 ) )
----
-28

query I rowsort
SELECT DISTINCT 0 * 32 AS col0
----
0

query I rowsort
SELECT DISTINCT 8 * - 22 + + 2 * - 75
----
-326

query II rowsort
SELECT ALL + 40 col2, + 63
----
40
63

onlyif mysql # aggregate syntax: 
query I rowsort label-5849
SELECT + COUNT( * ) * + + 42 * 7 col0
----
294

skipif mysql # not compatible
query I rowsort label-5849
SELECT + COUNT ( * ) * + + 42 * 7 col0
----
294

onlyif mysql # aggregate syntax: 
query I rowsort label-5850
SELECT ALL 82 * - COUNT( * ) + - + 89
----
-171

skipif mysql # not compatible
query I rowsort label-5850
SELECT ALL 82 * - COUNT ( * ) + - + 89
----
-171

query I rowsort
SELECT + COALESCE ( + - 16, 44 )
----
-16

onlyif mysql # aggregate syntax: 
query II rowsort label-5852
SELECT + 1 * + 78 + - 91 + + + 10 AS col2, NULLIF ( - 70, 81 * - 44 * 4 * - 5 * 99 - - SUM( DISTINCT - 30 ) - 17 ) + 36
----
-3
-34

skipif mysql # not compatible
query II rowsort label-5852
SELECT + 1 * + 78 + - 91 + + + 10 AS col2, NULLIF ( - 70, 81 * - 44 * 4 * - 5 * 99 - - SUM ( DISTINCT - 30 ) - 17 ) + 36
----
-3
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-5853
SELECT ALL 95 * - 30 + 44 + - COUNT( * ) * + 33 * 57 * + ( + COALESCE ( - + 4, 47 * + 2 ) )
----
4718

skipif mysql # not compatible
query I rowsort label-5853
SELECT ALL 95 * - 30 + 44 + - COUNT ( * ) * + 33 * 57 * + ( + COALESCE ( - + 4, 47 * + 2 ) )
----
4718

onlyif mysql # aggregate syntax: 
query II rowsort label-5854
SELECT 73 * COUNT( * ) + 63 + - - COUNT( * ), 51 AS col2
----
137
51

skipif mysql # not compatible
query II rowsort label-5854
SELECT 73 * COUNT ( * ) + 63 + - - COUNT ( * ), 51 AS col2
----
137
51

query I rowsort
SELECT + 11 * 23 * 35
----
8855

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

query I rowsort
SELECT DISTINCT ( + 64 ) * 62 + 59 * 51
----
6977

query I rowsort
SELECT ALL 32 * - + 4 + 3 * + 89 + 96 col2
----
235

onlyif mysql # aggregate syntax: 
query I rowsort label-5859
SELECT + + 41 - + MAX( - + 75 ) col2
----
116

skipif mysql # not compatible
query I rowsort label-5859
SELECT + + 41 - + MAX ( - + 75 ) col2
----
116

query II rowsort
SELECT DISTINCT + 97 * + NULLIF ( 65, + 0 + - 79 + - 63 ) * - 69 AS col1, - 64 AS col1
----
-435045
-64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5861
SELECT + + 92 + - CASE + 33 WHEN - 14 THEN + - 68 WHEN - CAST( - + COUNT( * ) AS SIGNED ) THEN NULL ELSE 41 - + 80 END + + COUNT( * ) * - 16 + + + 49
----
164

skipif mysql # not compatible
query I rowsort label-5861
SELECT + + 92 + - CASE + 33 WHEN - 14 THEN + - 68 WHEN - CAST ( - + COUNT ( * ) AS INTEGER ) THEN NULL ELSE 41 - + 80 END + + COUNT ( * ) * - 16 + + + 49
----
164

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5862
SELECT DISTINCT - CASE - + CASE - - 73 WHEN - - 16 * - 38 THEN - 72 ELSE NULL END WHEN + 63 + 12 + - 68 - + ( 64 ) THEN CAST( NULL AS SIGNED ) WHEN - 97 THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5862
SELECT DISTINCT - CASE - + CASE - - 73 WHEN - - 16 * - 38 THEN - 72 ELSE NULL END WHEN + 63 + 12 + - 68 - + ( 64 ) THEN CAST ( NULL AS INTEGER ) WHEN - 97 THEN NULL END AS col0
----
NULL

query II rowsort
SELECT + 39 + + + 21 + + 37 - + ( - 5 ) + + 18, - 33 AS col2
----
120
-33

query I rowsort
SELECT + NULLIF ( + - 5, + + 10 + AVG ( DISTINCT 71 ) * - 77 ) * ( - 81 )
----
405

query I rowsort
SELECT ALL 78 * - - 15 + + 67 - + 36
----
1201

query I rowsort
SELECT - 22 - ( - 41 ) AS col2
----
19

query I rowsort
SELECT ALL 5 - + NULLIF ( - ( + 54 ), - 47 * + - AVG ( - 0 ) ) AS col1
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-5868
SELECT + CASE - 24 WHEN + 41 THEN - + NULLIF ( + 92, + 84 + + - COUNT( * ) ) END * 24 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5868
SELECT + CASE - 24 WHEN + 41 THEN - + NULLIF ( + 92, + 84 + + - COUNT ( * ) ) END * 24 AS col0
----
NULL

query I rowsort
SELECT ALL + 34 * 4
----
136

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5870
SELECT + + 90 + + CAST( - + 83 AS SIGNED ) * + 75 * - 25 AS col1
----
155715

skipif mysql # not compatible
query I rowsort label-5870
SELECT + + 90 + + CAST ( - + 83 AS INTEGER ) * + 75 * - 25 AS col1
----
155715

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

skipif mysql # not compatible
query I rowsort label-5871
SELECT ALL MIN ( - 35 )
----
-35

query I rowsort
SELECT - - 74 * - + 30 AS col1
----
-2220

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5873
SELECT - CAST( 14 AS SIGNED ) AS col0, MIN( ALL - 80 ) AS col1
----
-14
-80

skipif mysql # not compatible
query II rowsort label-5873
SELECT - CAST ( 14 AS INTEGER ) AS col0, MIN ( ALL - 80 ) AS col1
----
-14
-80

onlyif mysql # DIV for integer division: 
query I rowsort label-5874
SELECT ALL + 39 DIV - 91
----
0

skipif mysql # not compatible
query I rowsort label-5874
SELECT ALL + 39 / - 91
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5875
SELECT ALL - 67 + + COALESCE ( + - COUNT( * ), + 54 * + - 49 * + + 64 ) AS col0
----
-68

skipif mysql # not compatible
query I rowsort label-5875
SELECT ALL - 67 + + COALESCE ( + - COUNT ( * ), + 54 * + - 49 * + + 64 ) AS col0
----
-68

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5877
SELECT - 65 + + MAX( 49 ) AS col2
----
-16

skipif mysql # not compatible
query I rowsort label-5877
SELECT - 65 + + MAX ( 49 ) AS col2
----
-16

query I rowsort
SELECT ALL + 68 + + 29 + 43 + - 31 AS col0
----
109

onlyif mysql # aggregate syntax: 
query II rowsort label-5879
SELECT 85 * - + 49, 1 * - COUNT( * ) AS col2
----
-4165
-1

skipif mysql # not compatible
query II rowsort label-5879
SELECT 85 * - + 49, 1 * - COUNT ( * ) AS col2
----
-4165
-1

query I rowsort
SELECT DISTINCT - ( - 50 ) col2
----
50

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5881
SELECT MIN( 89 ) DIV + + 61 + 74 AS col2
----
75

skipif mysql # not compatible
query I rowsort label-5881
SELECT MIN ( 89 ) / + + 61 + 74 AS col2
----
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5882
SELECT ALL + MAX( ALL + 57 ) DIV + SUM( ALL - 64 )
----
0

skipif mysql # not compatible
query I rowsort label-5882
SELECT ALL + MAX ( ALL + 57 ) / + SUM ( ALL - 64 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5883
SELECT 41 * - - ( + + MIN( ( - + 77 ) ) ) + + 12 AS col2
----
-3145

skipif mysql # not compatible
query I rowsort label-5883
SELECT 41 * - - ( + + MIN ( ( - + 77 ) ) ) + + 12 AS col2
----
-3145

query I rowsort
SELECT 94 + + 44
----
138

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5885
SELECT ALL + CAST( NULL AS SIGNED ) * - NULLIF ( + - CAST( 66 AS SIGNED ), - 61 * + ( + - 56 ) / + - ( - ( - ( 66 ) ) ) - 70 + - 60 ) * 25 + - 13 + - COALESCE ( + + 0, - 78 * 31 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5885
SELECT ALL + CAST ( NULL AS INTEGER ) * - NULLIF ( + - CAST ( 66 AS INTEGER ), - 61 * + ( + - 56 ) / + - ( - ( - ( 66 ) ) ) - 70 + - 60 ) * 25 + - 13 + - COALESCE ( + + 0, - 78 * 31 )
----
NULL

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

skipif mysql # not compatible
query I rowsort label-5886
SELECT ( + 8 ) + + + 48 + COUNT ( * ) AS col0
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-5887
SELECT ALL - MIN( DISTINCT NULLIF ( 20, + + 31 * + + 37 ) ) AS col2
----
-20

skipif mysql # not compatible
query I rowsort label-5887
SELECT ALL - MIN ( DISTINCT NULLIF ( 20, + + 31 * + + 37 ) ) AS col2
----
-20

query I rowsort
SELECT 63 * - - 15 AS col1
----
945

query I rowsort
SELECT 51 + - - 65 + + 22
----
138

query I rowsort
SELECT DISTINCT CASE + 17 WHEN - 18 + + ( - - 14 ) THEN + 46 * + 63 - + - 52 ELSE NULL END
----
NULL

query I rowsort
SELECT + 20 + - 75
----
-55

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5893
SELECT DISTINCT NULLIF ( - 45, CAST( 27 AS SIGNED ) ) DIV + - COUNT( - ( - + 85 ) ) + 79 AS col2
----
124

skipif mysql # not compatible
query I rowsort label-5893
SELECT DISTINCT NULLIF ( - 45, CAST ( 27 AS INTEGER ) ) / + - COUNT ( - ( - + 85 ) ) + 79 AS col2
----
124

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5895
SELECT DISTINCT + 92 * COUNT( - 43 )
----
92

skipif mysql # not compatible
query I rowsort label-5895
SELECT DISTINCT + 92 * COUNT ( - 43 )
----
92

query I rowsort
SELECT + 18 + - 50 + 32
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5897
SELECT 34 DIV 8 * - 74 AS col0, 59 * 79 + COUNT( ALL - - 76 ) * ( 68 )
----
-296
4729

skipif mysql # not compatible
query II rowsort label-5897
SELECT 34 / 8 * - 74 AS col0, 59 * 79 + COUNT ( ALL - - 76 ) * ( 68 )
----
-296
4729

onlyif mysql # aggregate syntax: 
query I rowsort label-5898
SELECT 70 + + - COUNT( * ) AS col2
----
69

skipif mysql # not compatible
query I rowsort label-5898
SELECT 70 + + - COUNT ( * ) AS col2
----
69

onlyif mysql # DIV for integer division: 
query I rowsort label-5899
SELECT ALL 31 + 11 DIV + + 25
----
31

skipif mysql # not compatible
query I rowsort label-5899
SELECT ALL 31 + 11 / + + 25
----
31

query I rowsort
SELECT 79 + - - 72
----
151

query I rowsort
SELECT ALL 77 + + 61 + + ( - + 2 )
----
136

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5902
SELECT DISTINCT ( - ( + + CASE + 24 WHEN 77 * 88 THEN - 44 + COUNT( * ) - + 35 + 32 + - 7 * + - 32 - 7 * - 70 ELSE - CAST( NULL AS SIGNED ) END ) ) + + ( - 53 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5902
SELECT DISTINCT ( - ( + + CASE + 24 WHEN 77 * 88 THEN - 44 + COUNT ( * ) - + 35 + 32 + - 7 * + - 32 - 7 * - 70 ELSE - CAST ( NULL AS INTEGER ) END ) ) + + ( - 53 ) AS col0
----
NULL

query I rowsort
SELECT ALL + 8 + - - 45
----
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5904
SELECT ALL 71 + + + CASE CAST( NULL AS SIGNED ) WHEN + MIN( + - 92 ) * - COUNT( * ) / + - 15 + - 4 THEN + + CAST( NULL AS SIGNED ) WHEN + ( - 24 ) THEN NULL WHEN + + 40 / 73 / - - 26 * - 50 THEN NULL END - + 92 * 4 + - 73 - + CAST( 93 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5904
SELECT ALL 71 + + + CASE CAST ( NULL AS INTEGER ) WHEN + MIN ( + - 92 ) * - COUNT ( * ) / + - 15 + - 4 THEN + + CAST ( NULL AS INTEGER ) WHEN + ( - 24 ) THEN NULL WHEN + + 40 / 73 / - - 26 * - 50 THEN NULL END - + 92 * 4 + - 73 - + CAST ( 93 AS INTEGER )
----
NULL

query I rowsort
SELECT ALL - 36 + + 92 AS col1
----
56

query II rowsort
SELECT 2, - 53 + - 22 AS col0
----
2
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-5907
SELECT ( + + NULLIF ( ( - - 47 ), - 45 * - - 11 ) ) * - + 3 + 67 + - COUNT( * ) + - COUNT( * ) AS col0
----
-76

skipif mysql # not compatible
query I rowsort label-5907
SELECT ( + + NULLIF ( ( - - 47 ), - 45 * - - 11 ) ) * - + 3 + 67 + - COUNT ( * ) + - COUNT ( * ) AS col0
----
-76

query I rowsort
SELECT 95 * 39 AS col2
----
3705

query I rowsort
SELECT DISTINCT + 91 + 87 AS col1
----
178

onlyif mysql # aggregate syntax: 
query II rowsort label-5910
SELECT 91 col1, - 59 * + + MIN( + 31 ) + + + 19 * + 99 * + 41 + COUNT( * ) * - MAX( + + 72 ) * + COALESCE ( + + MIN( - 19 ), + 73 ) AS col0
----
91
76660

skipif mysql # not compatible
query II rowsort label-5910
SELECT 91 col1, - 59 * + + MIN ( + 31 ) + + + 19 * + 99 * + 41 + COUNT ( * ) * - MAX ( + + 72 ) * + COALESCE ( + + MIN ( - 19 ), + 73 ) AS col0
----
91
76660

query I rowsort
SELECT DISTINCT + 64 * 92 * 92
----
541696

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5913
SELECT DISTINCT + + 98 * - 47 + + 6 AS col0, 29 * - 4 * ( - + CAST( NULL AS SIGNED ) ) AS col1
----
-4600
NULL

skipif mysql # not compatible
query II rowsort label-5913
SELECT DISTINCT + + 98 * - 47 + + 6 AS col0, 29 * - 4 * ( - + CAST ( NULL AS INTEGER ) ) AS col1
----
-4600
NULL

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

query II rowsort
SELECT ALL - 45, - 12 AS col0
----
-45
-12

query I rowsort
SELECT + 77 * - 60 + 10 * + 16 + + 74 AS col2
----
-4386

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

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

query I rowsort
SELECT 35 + + + 43 AS col2
----
78

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5920
SELECT MAX( DISTINCT + - 23 ) * + CAST( NULL AS SIGNED ) col1, 75 * - - MAX( - 12 ) AS col1
----
NULL
-900

skipif mysql # not compatible
query II rowsort label-5920
SELECT MAX ( DISTINCT + - 23 ) * + CAST ( NULL AS INTEGER ) col1, 75 * - - MAX ( - 12 ) AS col1
----
NULL
-900

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

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

query II rowsort
SELECT DISTINCT - 86, 21 col0
----
-86
21

query I rowsort
SELECT ALL + - 73 * + 69 + - 89
----
-5126

onlyif mysql # aggregate syntax: 
query I rowsort label-5924
SELECT - COUNT( * ) * - COUNT( * ) + - - 60 + + 67
----
128

skipif mysql # not compatible
query I rowsort label-5924
SELECT - COUNT ( * ) * - COUNT ( * ) + - - 60 + + 67
----
128

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5925
SELECT CAST( - + COUNT( * ) AS SIGNED ) * + 75 - - 27 * 22 * - CAST( NULL AS SIGNED ) + - + 26
----
NULL

skipif mysql # not compatible
query I rowsort label-5925
SELECT CAST ( - + COUNT ( * ) AS INTEGER ) * + 75 - - 27 * 22 * - CAST ( NULL AS INTEGER ) + - + 26
----
NULL

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

query I rowsort
SELECT ALL 84 + + 28
----
112

onlyif mysql # DIV for integer division: 
query II rowsort label-5928
SELECT ALL 60 DIV - 33, + 76 AS col0
----
-1
76

skipif mysql # not compatible
query II rowsort label-5928
SELECT ALL 60 / - 33, + 76 AS col0
----
-1
76

onlyif mysql # aggregate syntax: 
query I rowsort label-5929
SELECT - 12 * - MIN( 15 ) * - ( - + 39 ) * - - NULLIF ( 30, + + 57 )
----
210600

skipif mysql # not compatible
query I rowsort label-5929
SELECT - 12 * - MIN ( 15 ) * - ( - + 39 ) * - - NULLIF ( 30, + + 57 )
----
210600

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5930
SELECT - 30 + + + COUNT( DISTINCT - 47 ) * + + 37 * + + CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5930
SELECT - 30 + + + COUNT ( DISTINCT - 47 ) * + + 37 * + + CAST ( NULL AS REAL ) AS col1
----
NULL

query I rowsort
SELECT + 36 - - - 91
----
-55

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5933
SELECT ALL COUNT( * ) - ( + SUM( + 96 ) ) AS col2
----
-95

skipif mysql # not compatible
query I rowsort label-5933
SELECT ALL COUNT ( * ) - ( + SUM ( + 96 ) ) AS col2
----
-95

query I rowsort
SELECT - NULLIF ( - + 56, 47 ) AS col0
----
56

onlyif mysql # aggregate syntax: 
query II rowsort label-5935
SELECT + + 63 * ( 68 ) * + + 11, 35 * - NULLIF ( - COUNT( * ), + + 9 - 26 + - COUNT( * ) + 88 * - + 73 ) * - COALESCE ( + 76, - 55, - 29 * + + 63 * - + COUNT( * ) ) * 29 AS col2
----
47124
-77140

skipif mysql # not compatible
query II rowsort label-5935
SELECT + + 63 * ( 68 ) * + + 11, 35 * - NULLIF ( - COUNT ( * ), + + 9 - 26 + - COUNT ( * ) + 88 * - + 73 ) * - COALESCE ( + 76, - 55, - 29 * + + 63 * - + COUNT ( * ) ) * 29 AS col2
----
47124
-77140

query II rowsort
SELECT + - NULLIF ( 81, - - 57 + 36 ), - 7 + - + 0 AS col1
----
-81
-7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5937
SELECT - AVG ( + ( + - 81 ) ) + + + CAST( - + 26 AS SIGNED ) + + 34 * + 36 + + CAST( NULL AS SIGNED ) * - COUNT( * ) + 53 - - 46 + + + ( 30 ) * - - 84 * + 5 * + 72 + - - 17 * - COALESCE ( - - MAX( - NULLIF ( + CAST( 44 AS DECIMAL ), + 89 ) ), + COUNT( * ), + COUNT( * ) ) * + 67 + 20 + 80 / 6 * - 4 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5937
SELECT - AVG ( + ( + - 81 ) ) + + + CAST ( - + 26 AS INTEGER ) + + 34 * + 36 + + CAST ( NULL AS INTEGER ) * - COUNT ( * ) + 53 - - 46 + + + ( 30 ) * - - 84 * + 5 * + 72 + - - 17 * - COALESCE ( - - MAX ( - NULLIF ( + CAST ( 44 AS REAL ), + 89 ) ), + COUNT ( * ), + COUNT ( * ) ) * + 67 + 20 + 80 / 6 * - 4 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5938
SELECT ALL CAST( NULL AS SIGNED ) * - CAST( 91 AS SIGNED ) / + AVG ( DISTINCT - 38 ) + 42 * - 71 * + + 68 + + - 74 * - + 59 + + MIN( + 24 ) AS col0, ( 94 ) AS col2
----
NULL
94

skipif mysql # not compatible
query II rowsort label-5938
SELECT ALL CAST ( NULL AS INTEGER ) * - CAST ( 91 AS INTEGER ) / + AVG ( DISTINCT - 38 ) + 42 * - 71 * + + 68 + + - 74 * - + 59 + + MIN ( + 24 ) AS col0, ( 94 ) AS col2
----
NULL
94

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

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

query I rowsort
SELECT - 84 * - 18 * + 50
----
75600

query I rowsort
SELECT - + 40 * 46 + - 27 * + 58 * + 5 * + 72
----
-565600

onlyif mysql # aggregate syntax: 
query I rowsort label-5942
SELECT COALESCE ( COUNT( DISTINCT 64 ), 21 + 22, + - 7 - + 43, + 96 )
----
1

skipif mysql # not compatible
query I rowsort label-5942
SELECT COALESCE ( COUNT ( DISTINCT 64 ), 21 + 22, + - 7 - + 43, + 96 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5943
SELECT DISTINCT 8 * 56 * + - 32 + - 18 / SUM( + 6 ) / + ( - CAST( NULL AS SIGNED ) ) + - + 98 + - 38
----
NULL

skipif mysql # not compatible
query I rowsort label-5943
SELECT DISTINCT 8 * 56 * + - 32 + - 18 / SUM ( + 6 ) / + ( - CAST ( NULL AS INTEGER ) ) + - + 98 + - 38
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5944
SELECT - + 61 * + 71 + - SUM( COALESCE ( - 98, - 21 ) )
----
-4233

skipif mysql # not compatible
query I rowsort label-5944
SELECT - + 61 * + 71 + - SUM ( COALESCE ( - 98, - 21 ) )
----
-4233

query II rowsort
SELECT DISTINCT + + 52 * + 11 + - - 68 + 60 AS col1, + 91 AS col0
----
700
91

onlyif mysql # aggregate syntax: 
query I rowsort label-5946
SELECT - 0 * - - COUNT( - 18 ) + - - 70 + + 32 + + 28 * 60 AS col1
----
1782

skipif mysql # not compatible
query I rowsort label-5946
SELECT - 0 * - - COUNT ( - 18 ) + - - 70 + + 32 + + 28 * 60 AS col1
----
1782

query I rowsort
SELECT - - 37 + - CASE + 82 WHEN - 97 THEN 66 + 76 WHEN + 93 THEN NULL END AS col2
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5949
SELECT + 73 * + MAX( ALL + + 69 ) + - - 63
----
5100

skipif mysql # not compatible
query I rowsort label-5949
SELECT + 73 * + MAX ( ALL + + 69 ) + - - 63
----
5100

query II rowsort
SELECT - 25 * - + ( - 96 ) AS col2, + 94 - - 6 + + 45 AS col0
----
-2400
145

query I rowsort
SELECT ALL 36 * + + 94
----
3384

query I rowsort
SELECT ALL - 9 * - + 69 * - 40 col0
----
-24840

query I rowsort
SELECT - 54 * - + 84
----
4536

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5954
SELECT DISTINCT - 91 - 16 + + COUNT( * ) AS col0, 0 * - - 13 + + - 74 DIV + - COUNT( * ) * + COUNT( * )
----
-106
74

skipif mysql # not compatible
query II rowsort label-5954
SELECT DISTINCT - 91 - 16 + + COUNT ( * ) AS col0, 0 * - - 13 + + - 74 / + - COUNT ( * ) * + COUNT ( * )
----
-106
74

onlyif mysql # aggregate syntax: 
query I rowsort label-5955
SELECT - 89 + - - COUNT( * ) * - 40
----
-129

skipif mysql # not compatible
query I rowsort label-5955
SELECT - 89 + - - COUNT ( * ) * - 40
----
-129

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

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

query II rowsort
SELECT 59 AS col1, - 92 * 5 * + + 72 AS col2
----
59
-33120

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

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

query I rowsort
SELECT + 88 + 70 AS col2
----
158

query II rowsort
SELECT DISTINCT 86 AS col0, + 15 AS col2
----
86
15

query I rowsort
SELECT ALL ( + 15 ) - - 34
----
49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5962
SELECT DISTINCT CAST( - 19 AS SIGNED )
----
-19

skipif mysql # not compatible
query I rowsort label-5962
SELECT DISTINCT CAST ( - 19 AS INTEGER )
----
-19

onlyif mysql # DIV for integer division: 
query I rowsort label-5963
SELECT ALL - 47 DIV - 16 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-5963
SELECT ALL - 47 / - 16 AS col2
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5964
SELECT + 46 DIV - - MIN( 11 ) AS col2, - 6 AS col0
----
4
-6

skipif mysql # not compatible
query II rowsort label-5964
SELECT + 46 / - - MIN ( 11 ) AS col2, - 6 AS col0
----
4
-6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5965
SELECT - 90 * ( ( 46 ) ) DIV + COUNT( DISTINCT + 94 ) AS col0
----
-4140

skipif mysql # not compatible
query I rowsort label-5965
SELECT - 90 * ( ( 46 ) ) / + COUNT ( DISTINCT + 94 ) AS col0
----
-4140

query I rowsort
SELECT + 59 * - 98 * 32 col0
----
-185024

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5967
SELECT + + 56 - - - 40 DIV - - MAX( ALL + + 61 )
----
56

skipif mysql # not compatible
query I rowsort label-5967
SELECT + + 56 - - - 40 / - - MAX ( ALL + + 61 )
----
56

query I rowsort
SELECT + + 7 * 16 * + 75
----
8400

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5969
SELECT ALL - 93 DIV CAST( - CASE - - 58 WHEN 22 - - + 96 * - 1 THEN NULL WHEN - 77 THEN + 47 * + 21 + - 44 ELSE + + 57 END AS SIGNED ) + - 65 + - 6 AS col1
----
-70

skipif mysql # not compatible
query I rowsort label-5969
SELECT ALL - 93 / CAST ( - CASE - - 58 WHEN 22 - - + 96 * - 1 THEN NULL WHEN - 77 THEN + 47 * + 21 + - 44 ELSE + + 57 END AS INTEGER ) + - 65 + - 6 AS col1
----
-70

query II rowsort
SELECT + 75 - - ( 39 ), - ( 58 ) + + ( - 99 ) + 79 AS col2
----
114
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-5971
SELECT + COALESCE ( + + COUNT( * ), + + CASE + 64 WHEN + - 45 * + - ( - 44 ) * + - 82 THEN NULL ELSE + ( + 62 ) * - 90 + - 18 + + 86 END ) + - + 45 AS col1
----
-44

skipif mysql # not compatible
query I rowsort label-5971
SELECT + COALESCE ( + + COUNT ( * ), + + CASE + 64 WHEN + - 45 * + - ( - 44 ) * + - 82 THEN NULL ELSE + ( + 62 ) * - 90 + - 18 + + 86 END ) + - + 45 AS col1
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-5972
SELECT DISTINCT 63 * - 32 + + COUNT( * ) AS col1
----
-2015

skipif mysql # not compatible
query I rowsort label-5972
SELECT DISTINCT 63 * - 32 + + COUNT ( * ) AS col1
----
-2015

query I rowsort
SELECT DISTINCT - 20 * - 14 - + 53 + + + 50
----
277

query II rowsort
SELECT ALL 51 * - ( 82 ) * + 19 + - 8 AS col2, + 14 * - 18 - + + NULLIF ( + 42, + 45 * 58 )
----
-79466
-294

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5975
SELECT + + 35 * + SUM( DISTINCT - 27 ) + - MIN( + 57 ) + + + MAX( ALL + 85 ) + + 58 + + 2 DIV + 53 * + 89 DIV - ( 58 ) + CAST( + 23 AS SIGNED ) DIV - - 61 - 50 col2
----
-909

skipif mysql # not compatible
query I rowsort label-5975
SELECT + + 35 * + SUM ( DISTINCT - 27 ) + - MIN ( + 57 ) + + + MAX ( ALL + 85 ) + + 58 + + 2 / + 53 * + 89 / - ( 58 ) + CAST ( + 23 AS INTEGER ) / - - 61 - 50 col2
----
-909

query I rowsort
SELECT + 69 * - 38 + + - 18
----
-2640

query II rowsort
SELECT - 56 AS col0, - 92 * 7 * - 90
----
-56
57960

query I rowsort
SELECT ALL 48 * - ( 89 )
----
-4272

query I rowsort
SELECT ALL 7 - + 91
----
-84

query II rowsort
SELECT - 22 AS col1, 31 AS col1
----
-22
31

query I rowsort
SELECT 85 - + 20
----
65

query I rowsort
SELECT 94 - + + 9 + - + 50 - + 27 * 77 + + 75 * - - COALESCE ( + 83, + 76 ) * - + 86 AS col2
----
-537394

onlyif mysql # aggregate syntax: 
query I rowsort label-5983
SELECT COUNT( * ) - - MIN( DISTINCT - - 69 ) - - 0 * 4 AS col2
----
70

skipif mysql # not compatible
query I rowsort label-5983
SELECT COUNT ( * ) - - MIN ( DISTINCT - - 69 ) - - 0 * 4 AS col2
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-5984
SELECT 23 * NULLIF ( + - 18, + + 80 * - 26 + + AVG ( DISTINCT + 35 ) * - COUNT( * ) ) AS col2
----
-414

skipif mysql # not compatible
query I rowsort label-5984
SELECT 23 * NULLIF ( + - 18, + + 80 * - 26 + + AVG ( DISTINCT + 35 ) * - COUNT ( * ) ) AS col2
----
-414

query I rowsort
SELECT 94 + - 22
----
72

query I rowsort
SELECT 29 - - 52
----
81

onlyif mysql # aggregate syntax: 
query II rowsort label-5987
SELECT ALL 98 col0, + 25 * - - 23 + 91 + + + 13 * + + SUM( + CASE 68 WHEN + - 42 THEN + 45 END )
----
98
NULL

skipif mysql # not compatible
query II rowsort label-5987
SELECT ALL 98 col0, + 25 * - - 23 + 91 + + + 13 * + + SUM ( + CASE 68 WHEN + - 42 THEN + 45 END )
----
98
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5988
SELECT 50, - 45 - COUNT( * ) col1
----
50
-46

skipif mysql # not compatible
query II rowsort label-5988
SELECT 50, - 45 - COUNT ( * ) col1
----
50
-46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5989
SELECT - 87 * - ( 89 ) - + ( + SUM( ALL - + 64 ) ) DIV - 85 + + 25
----
7768

skipif mysql # not compatible
query I rowsort label-5989
SELECT - 87 * - ( 89 ) - + ( + SUM ( ALL - + 64 ) ) / - 85 + + 25
----
7768

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5990
SELECT + 96 + + + 5 * - 80 * - CAST( + 50 AS SIGNED ) DIV - COUNT( * ) - - + COUNT( * ) + - 11
----
-19914

skipif mysql # not compatible
query I rowsort label-5990
SELECT + 96 + + + 5 * - 80 * - CAST ( + 50 AS INTEGER ) / - COUNT ( * ) - - + COUNT ( * ) + - 11
----
-19914

query I rowsort
SELECT 63 + - 63 + + + 22
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-5992
SELECT DISTINCT - MAX( ALL + 43 ) + + - 68 + - + COUNT( * )
----
-112

skipif mysql # not compatible
query I rowsort label-5992
SELECT DISTINCT - MAX ( ALL + 43 ) + + - 68 + - + COUNT ( * )
----
-112

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5993
SELECT ALL - CAST( NULL AS SIGNED ), - 4 AS col1
----
NULL
-4

skipif mysql # not compatible
query II rowsort label-5993
SELECT ALL - CAST ( NULL AS INTEGER ), - 4 AS col1
----
NULL
-4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5994
SELECT 61 / + 95 * - CAST( NULL AS SIGNED ) * - 72 + + COALESCE ( + 38, - 99 ) + - 72 * + 89 - + 65 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5994
SELECT 61 / + 95 * - CAST ( NULL AS INTEGER ) * - 72 + + COALESCE ( + 38, - 99 ) + - 72 * + 89 - + 65 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5995
SELECT 29, - 79 DIV + 91 + CAST( COUNT( * ) AS SIGNED ) AS col0
----
29
1

skipif mysql # not compatible
query II rowsort label-5995
SELECT 29, - 79 / + 91 + CAST ( COUNT ( * ) AS INTEGER ) AS col0
----
29
1

query I rowsort
SELECT - 3 * + 89
----
-267

onlyif mysql # aggregate syntax: 
query I rowsort label-5997
SELECT + COUNT( ALL - - 79 ) + + + 76
----
77

skipif mysql # not compatible
query I rowsort label-5997
SELECT + COUNT ( ALL - - 79 ) + + + 76
----
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5998
SELECT DISTINCT CASE - ( + - CAST( + ( - + COUNT( * ) ) AS SIGNED ) ) WHEN - 60 THEN + COUNT( * ) + + 99 ELSE 76 + - 9 END * 20, + 51 DIV ( + 6 ) DIV - MAX( + - 15 ) AS col0
----
1340
0

skipif mysql # not compatible
query II rowsort label-5998
SELECT DISTINCT CASE - ( + - CAST ( + ( - + COUNT ( * ) ) AS INTEGER ) ) WHEN - 60 THEN + COUNT ( * ) + + 99 ELSE 76 + - 9 END * 20, + 51 / ( + 6 ) / - MAX ( + - 15 ) AS col0
----
1340
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5999
SELECT ALL + COUNT( * ) + - 54 * + CAST( NULL AS SIGNED ) / + 97
----
NULL

skipif mysql # not compatible
query I rowsort label-5999
SELECT ALL + COUNT ( * ) + - 54 * + CAST ( NULL AS INTEGER ) / + 97
----
NULL

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6001
SELECT DISTINCT 18 * + 28 * - + 62 + + - 90 + + 97 * 52 + CAST( NULL AS DECIMAL ) * 14 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6001
SELECT DISTINCT 18 * + 28 * - + 62 + + - 90 + + 97 * 52 + CAST ( NULL AS REAL ) * 14 col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6002
SELECT - 45, 63 + + NULLIF ( + 69, - CAST( NULL AS SIGNED ) ) AS col2
----
-45
132

skipif mysql # not compatible
query II rowsort label-6002
SELECT - 45, 63 + + NULLIF ( + 69, - CAST ( NULL AS INTEGER ) ) AS col2
----
-45
132

query I rowsort
SELECT 53 - 76 AS col2
----
-23

query I rowsort
SELECT CASE + 13 WHEN + 69 THEN + 65 END * + 90 * + - ( - + 38 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6005
SELECT ALL MIN( + ( - 41 ) ) * - 92 + + 77
----
3849

skipif mysql # not compatible
query I rowsort label-6005
SELECT ALL MIN ( + ( - 41 ) ) * - 92 + + 77
----
3849

query I rowsort
SELECT DISTINCT 6 - - 3
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6007
SELECT ( + + 8 ) - + - SUM( ALL - 57 ) - 3 DIV + CAST( - 72 AS SIGNED ) AS col1
----
-49

skipif mysql # not compatible
query I rowsort label-6007
SELECT ( + + 8 ) - + - SUM ( ALL - 57 ) - 3 / + CAST ( - 72 AS INTEGER ) AS col1
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-6008
SELECT ( + + 82 ) + - + COUNT( * ) * - 95
----
177

skipif mysql # not compatible
query I rowsort label-6008
SELECT ( + + 82 ) + - + COUNT ( * ) * - 95
----
177

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6009
SELECT ALL MIN( - 51 ) * + CASE - ( COUNT( * ) ) WHEN + 21 + + 7 THEN + COUNT( * ) WHEN - - 46 * + CAST( NULL AS SIGNED ) THEN NULL END AS col2, 6 AS col2
----
NULL
6

skipif mysql # not compatible
query II rowsort label-6009
SELECT ALL MIN ( - 51 ) * + CASE - ( COUNT ( * ) ) WHEN + 21 + + 7 THEN + COUNT ( * ) WHEN - - 46 * + CAST ( NULL AS INTEGER ) THEN NULL END AS col2, 6 AS col2
----
NULL
6

onlyif mysql # aggregate syntax: 
query I rowsort label-6010
SELECT ( - 73 ) * + MAX( 2 ) AS col0
----
-146

skipif mysql # not compatible
query I rowsort label-6010
SELECT ( - 73 ) * + MAX ( 2 ) AS col0
----
-146

onlyif mysql # aggregate syntax: 
query II rowsort label-6011
SELECT COUNT( * ) * - 25, - 4 AS col1
----
-25
-4

skipif mysql # not compatible
query II rowsort label-6011
SELECT COUNT ( * ) * - 25, - 4 AS col1
----
-25
-4

onlyif mysql # DIV for integer division: 
query I rowsort label-6012
SELECT 39 + - 9 DIV 23 * 53
----
39

skipif mysql # not compatible
query I rowsort label-6012
SELECT 39 + - 9 / 23 * 53
----
39

query I rowsort
SELECT ALL + ( 19 ) + + 34 AS col0
----
53

query I rowsort
SELECT - 94 * - 4 * + 66 col0
----
24816

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

skipif mysql # not compatible
query I rowsort label-6015
SELECT DISTINCT - 18 + - 72 + - CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT ALL 77 + + + 60 AS col0, ( - ( - + 4 ) ) + 79
----
137
83

query I rowsort
SELECT + 61 - - 49 - - 9
----
119

query II rowsort
SELECT DISTINCT + 68 * + 5, + 59 * - 97 AS col1
----
340
-5723

onlyif mysql # aggregate syntax: 
query II rowsort label-6019
SELECT + ( + + 87 ), ( + + NULLIF ( + COUNT( * ), + 89 ) ) AS col2
----
87
1

skipif mysql # not compatible
query II rowsort label-6019
SELECT + ( + + 87 ), ( + + NULLIF ( + COUNT ( * ), + 89 ) ) AS col2
----
87
1

query I rowsort
SELECT ALL + + 72 * + - 79
----
-5688

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6021
SELECT CAST( NULL AS SIGNED ) * + MAX( + 86 ) + + 91 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6021
SELECT CAST ( NULL AS INTEGER ) * + MAX ( + 86 ) + + 91 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6022
SELECT 34 * - CAST( 12 AS SIGNED )
----
-408

skipif mysql # not compatible
query I rowsort label-6022
SELECT 34 * - CAST ( 12 AS INTEGER )
----
-408

onlyif mysql # aggregate syntax: 
query I rowsort label-6023
SELECT ALL 66 * + MAX( - 88 ) AS col2
----
-5808

skipif mysql # not compatible
query I rowsort label-6023
SELECT ALL 66 * + MAX ( - 88 ) AS col2
----
-5808

query I rowsort
SELECT ALL + - ( - 44 ) * + - 51 - + - 31
----
-2213

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6025
SELECT ALL 63 DIV - 95 * - 93 DIV - + COUNT( - 50 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6025
SELECT ALL 63 / - 95 * - 93 / - + COUNT ( - 50 ) AS col0
----
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6027
SELECT + 71 * - - NULLIF ( + COALESCE ( + + ( + SUM( - 5 ) ), - 69 * + + ( 25 ) * + + 8 + - + 50 ), - 26 + - + 99 ) + MIN( ALL + 80 ) AS col1
----
-275

skipif mysql # not compatible
query I rowsort label-6027
SELECT + 71 * - - NULLIF ( + COALESCE ( + + ( + SUM ( - 5 ) ), - 69 * + + ( 25 ) * + + 8 + - + 50 ), - 26 + - + 99 ) + MIN ( ALL + 80 ) AS col1
----
-275

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6028
SELECT + + SUM( + 69 ) / - CAST( NULL AS DECIMAL ) + COUNT( * ) + + 75 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6028
SELECT + + SUM ( + 69 ) / - CAST ( NULL AS REAL ) + COUNT ( * ) + + 75 col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6029
SELECT ALL + + 55 DIV - 30 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-6029
SELECT ALL + + 55 / - 30 AS col0
----
-1

query I rowsort
SELECT - 31 * COALESCE ( 56, - - 34 ) * + + 99 * - 51 + - 75 AS col0
----
8764989

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6031
SELECT - 66 + COUNT( * ) + + + COUNT( * ) * - + 56 * + - CAST( 7 AS SIGNED ) + 28
----
355

skipif mysql # not compatible
query I rowsort label-6031
SELECT - 66 + COUNT ( * ) + + + COUNT ( * ) * - + 56 * + - CAST ( 7 AS INTEGER ) + 28
----
355

onlyif mysql # aggregate syntax: 
query II rowsort label-6032
SELECT + COUNT( * ), 12 + - - SUM( DISTINCT + - 92 ) AS col2
----
1
-80

skipif mysql # not compatible
query II rowsort label-6032
SELECT + COUNT ( * ), 12 + - - SUM ( DISTINCT + - 92 ) AS col2
----
1
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-6033
SELECT - 83 / - - ( - CASE + 55 WHEN + 8 THEN COUNT( * ) / 83 END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6033
SELECT - 83 / - - ( - CASE + 55 WHEN + 8 THEN COUNT ( * ) / 83 END ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6034
SELECT ALL - 50 DIV + 41
----
-1

skipif mysql # not compatible
query I rowsort label-6034
SELECT ALL - 50 / + 41
----
-1

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

skipif mysql # not compatible
query I rowsort label-6035
SELECT SUM ( DISTINCT + CAST ( + 4 AS INTEGER ) )
----
4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6036
SELECT + 29 * + + COUNT( * ) DIV + 37 col0
----
0

skipif mysql # not compatible
query I rowsort label-6036
SELECT + 29 * + + COUNT ( * ) / + 37 col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6037
SELECT - ( 62 ) + + CAST( + 55 AS SIGNED ) AS col1
----
-7

skipif mysql # not compatible
query I rowsort label-6037
SELECT - ( 62 ) + + CAST ( + 55 AS INTEGER ) AS col1
----
-7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6038
SELECT - COUNT( * ) + 37 * 63 DIV + 3 - + + 9
----
767

skipif mysql # not compatible
query I rowsort label-6038
SELECT - COUNT ( * ) + 37 * 63 / + 3 - + + 9
----
767

onlyif mysql # aggregate syntax: 
query I rowsort label-6039
SELECT - COUNT( DISTINCT - 85 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-6039
SELECT - COUNT ( DISTINCT - 85 ) AS col1
----
-1

query I rowsort
SELECT - CASE ( + 81 ) WHEN - - 88 THEN + - 57 + - + 0 END AS col2
----
NULL

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6042
SELECT + MIN( + 4 ) * - 45, COUNT( * ) AS col0
----
-180
1

skipif mysql # not compatible
query II rowsort label-6042
SELECT + MIN ( + 4 ) * - 45, COUNT ( * ) AS col0
----
-180
1

query I rowsort
SELECT ALL ( - 17 ) + + 35 AS col2
----
18

query I rowsort
SELECT + 87 - + 23 AS col1
----
64

onlyif mysql # aggregate syntax: 
query II rowsort label-6045
SELECT DISTINCT 46 AS col1, + COUNT( * ) + - 64
----
46
-63

skipif mysql # not compatible
query II rowsort label-6045
SELECT DISTINCT 46 AS col1, + COUNT ( * ) + - 64
----
46
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-6046
SELECT DISTINCT COUNT( * ) + + 99 * + - 94 * - 68 + - - 42 AS col0
----
632851

skipif mysql # not compatible
query I rowsort label-6046
SELECT DISTINCT COUNT ( * ) + + 99 * + - 94 * - 68 + - - 42 AS col0
----
632851

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6047
SELECT - CASE 72 WHEN - 77 THEN NULL WHEN - CAST( 10 AS SIGNED ) * + 51 + - COUNT( * ) + + 64 + 81 * + 27 / + 26 THEN + 6 + + 23 + 26 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6047
SELECT - CASE 72 WHEN - 77 THEN NULL WHEN - CAST ( 10 AS INTEGER ) * + 51 + - COUNT ( * ) + + 64 + 81 * + 27 / + 26 THEN + 6 + + 23 + 26 ELSE NULL END AS col2
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6048
SELECT ALL + CASE + 34 WHEN + 59 + + + ( ( - 72 ) ) THEN NULL WHEN - - 21 THEN NULL WHEN + 10 THEN 26 + - + 12 ELSE NULL END + 33 + - 73 - + + CAST( NULL AS DECIMAL ) * 1
----
NULL

skipif mysql # not compatible
query I rowsort label-6048
SELECT ALL + CASE + 34 WHEN + 59 + + + ( ( - 72 ) ) THEN NULL WHEN - - 21 THEN NULL WHEN + 10 THEN 26 + - + 12 ELSE NULL END + 33 + - 73 - + + CAST ( NULL AS REAL ) * 1
----
NULL

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

skipif mysql # not compatible
query I rowsort label-6049
SELECT + - COUNT ( * ) + + + MIN ( ALL 53 ) / + + 23 AS col1
----
1

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

skipif mysql # not compatible
query I rowsort label-6050
SELECT + - 3 - - COUNT ( * ) AS col1
----
-2

query II rowsort
SELECT DISTINCT 60 col2, - ( 6 )
----
60
-6

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6052
SELECT + - CASE 7 WHEN + 13 * + - 75 / + COUNT( * ) THEN + - 35 + + 43 + + - 63 + ( - - 13 ) + + CAST( NULL AS DECIMAL ) * + 30 * + - 79 + - - SUM( ALL - 25 ) + - - COUNT( * ) - - 27 * - 97 * + + 33 / + COUNT( DISTINCT - 10 ) / 73 WHEN + COUNT( * ) THEN NULL END + 66 * - NULLIF ( - 34, + 62 ) - + 92 + - + 67 * + + 36 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6052
SELECT + - CASE 7 WHEN + 13 * + - 75 / + COUNT ( * ) THEN + - 35 + + 43 + + - 63 + ( - - 13 ) + + CAST ( NULL AS REAL ) * + 30 * + - 79 + - - SUM ( ALL - 25 ) + - - COUNT ( * ) - - 27 * - 97 * + + 33 / + COUNT ( DISTINCT - 10 ) / 73 WHEN + COUNT ( * ) THEN NULL END + 66 * - NULLIF ( - 34, + 62 ) - + 92 + - + 67 * + + 36 AS col0
----
NULL

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6055
SELECT ALL - 62 AS col2, 66 + 49 - - + 3 - CASE 59 WHEN - COUNT( * ) / 64 THEN NULL ELSE 25 END * + + 83 + + 45 * - COALESCE ( + + 39, + 82 )
----
-62
-3712

skipif mysql # not compatible
query II rowsort label-6055
SELECT ALL - 62 AS col2, 66 + 49 - - + 3 - CASE 59 WHEN - COUNT ( * ) / 64 THEN NULL ELSE 25 END * + + 83 + + 45 * - COALESCE ( + + 39, + 82 )
----
-62
-3712

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6058
SELECT + 36 * + 35 - - 71 + 44 + - 94 + + 48 - COALESCE ( - ( - 99 ), + COUNT( * ) + - 1 * 10 * + COUNT( * ) ) * + 6 AS col0
----
735

skipif mysql # not compatible
query I rowsort label-6058
SELECT + 36 * + 35 - - 71 + 44 + - 94 + + 48 - COALESCE ( - ( - 99 ), + COUNT ( * ) + - 1 * 10 * + COUNT ( * ) ) * + 6 AS col0
----
735

query II rowsort
SELECT DISTINCT + 0 AS col2, 94 * + 49 AS col0
----
0
4606

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

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

query I rowsort
SELECT ALL + 63 * + - 37 * 77 + 29
----
-179458

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

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

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

query I rowsort
SELECT ALL 48 * - + 27 AS col1
----
-1296

query I rowsort
SELECT COALESCE ( + 30, - + 20 * + 97 ) AS col0
----
30

query I rowsort
SELECT - ( - 93 ) - + 42 * - 73 AS col1
----
3159

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

skipif mysql # not compatible
query I rowsort label-6067
SELECT + MAX ( + 77 )
----
77

query II rowsort
SELECT ALL + ( - 40 ), ( - - 58 ) AS col0
----
-40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-6069
SELECT DISTINCT + 92 * - COUNT( * ) + ( + SUM( ALL + - 58 ) )
----
-150

skipif mysql # not compatible
query I rowsort label-6069
SELECT DISTINCT + 92 * - COUNT ( * ) + ( + SUM ( ALL + - 58 ) )
----
-150

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6070
SELECT - 76 * + - 88 AS col1, + CAST( + 55 AS SIGNED ) + 64 * - ( + 49 )
----
6688
-3081

skipif mysql # not compatible
query II rowsort label-6070
SELECT - 76 * + - 88 AS col1, + CAST ( + 55 AS INTEGER ) + 64 * - ( + 49 )
----
6688
-3081

query I rowsort
SELECT + 82 * ( + 60 ) * + 28 AS col0
----
137760

onlyif mysql # aggregate syntax: 
query I rowsort label-6072
SELECT 20 * + 36 * - - 36 + + + 15 - + COUNT( * ) * - + 29
----
25964

skipif mysql # not compatible
query I rowsort label-6072
SELECT 20 * + 36 * - - 36 + + + 15 - + COUNT ( * ) * - + 29
----
25964

query II rowsort
SELECT ALL + NULLIF ( + + 31, - 18 ) * - 66 * 23 * + - 32 * + 54 AS col1, 53 * - ( - + 52 )
----
81316224
2756

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6074
SELECT ALL ( - + 11 ), 29 * - 60 * - CAST( - 97 AS SIGNED ) AS col1
----
-11
-168780

skipif mysql # not compatible
query II rowsort label-6074
SELECT ALL ( - + 11 ), 29 * - 60 * - CAST ( - 97 AS INTEGER ) AS col1
----
-11
-168780

query II rowsort
SELECT - 46 * 73, - 37 AS col2
----
-3358
-37

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6076
SELECT DISTINCT - 65 * - + 57 + CAST( NULL AS DECIMAL ) + - COUNT( * ) * + COUNT( * ) * - 21 + - 37 - - 86 + + MAX( + 96 ) * 76
----
NULL

skipif mysql # not compatible
query I rowsort label-6076
SELECT DISTINCT - 65 * - + 57 + CAST ( NULL AS REAL ) + - COUNT ( * ) * + COUNT ( * ) * - 21 + - 37 - - 86 + + MAX ( + 96 ) * 76
----
NULL

query I rowsort
SELECT ALL + 29 * + + COALESCE ( + + 9, - 67 )
----
261

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6078
SELECT COUNT( - 79 ) col2, CASE - 49 WHEN + 25 * - - 10 + - - 47 + + NULLIF ( - + 60, 64 ) THEN + 6 + + 59 + - CAST( + 86 AS SIGNED ) + + 92 ELSE + ( + - 54 ) * + 25 END + 27 * + 8 * - - 83
----
1
16578

skipif mysql # not compatible
query II rowsort label-6078
SELECT COUNT ( - 79 ) col2, CASE - 49 WHEN + 25 * - - 10 + - - 47 + + NULLIF ( - + 60, 64 ) THEN + 6 + + 59 + - CAST ( + 86 AS INTEGER ) + + 92 ELSE + ( + - 54 ) * + 25 END + 27 * + 8 * - - 83
----
1
16578

query I rowsort
SELECT DISTINCT - + 30 * - 31 - ( - + 49 ) col0
----
979

query I rowsort
SELECT + 99 + - 94
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-6081
SELECT DISTINCT - SUM( + - 64 ) AS col2
----
64

skipif mysql # not compatible
query I rowsort label-6081
SELECT DISTINCT - SUM ( + - 64 ) AS col2
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-6082
SELECT + 26 + + 3 + + + 47 * + - 25 * 84 * COUNT( * ) col0
----
-98671

skipif mysql # not compatible
query I rowsort label-6082
SELECT + 26 + + 3 + + + 47 * + - 25 * 84 * COUNT ( * ) col0
----
-98671

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

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

query II rowsort
SELECT ALL ( - + 32 ) AS col0, 25 col0
----
-32
25

onlyif mysql # aggregate syntax: 
query I rowsort label-6085
SELECT ALL - 16 - + COUNT( * ) * + - 81
----
65

skipif mysql # not compatible
query I rowsort label-6085
SELECT ALL - 16 - + COUNT ( * ) * + - 81
----
65

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

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

query I rowsort
SELECT - 15 * 7 * 89
----
-9345

query I rowsort
SELECT DISTINCT 85 * + 18 + - 79 AS col0
----
1451

query I rowsort
SELECT + 33 * - - 9 * 54 - - 72 AS col1
----
16110

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6090
SELECT ( 51 ) / - CAST( NULL AS SIGNED ) + 38 + - 52 - + + CASE + 87 WHEN - 80 THEN NULL WHEN - - 43 / + - 32 + + COUNT( * ) + - 57 + + ( - 76 ) THEN + - 96 END * - - ( + + NULLIF ( + - 38, - COUNT( * ) ) ) + + 73 * 69
----
NULL

skipif mysql # not compatible
query I rowsort label-6090
SELECT ( 51 ) / - CAST ( NULL AS INTEGER ) + 38 + - 52 - + + CASE + 87 WHEN - 80 THEN NULL WHEN - - 43 / + - 32 + + COUNT ( * ) + - 57 + + ( - 76 ) THEN + - 96 END * - - ( + + NULLIF ( + - 38, - COUNT ( * ) ) ) + + 73 * 69
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6091
SELECT + 81 DIV + + 26 col2
----
3

skipif mysql # not compatible
query I rowsort label-6091
SELECT + 81 / + + 26 col2
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6092
SELECT DISTINCT COUNT( * ) DIV - 93 * - + 20 * + ( + MIN( ALL + - 25 ) )
----
0

skipif mysql # not compatible
query I rowsort label-6092
SELECT DISTINCT COUNT ( * ) / - 93 * - + 20 * + ( + MIN ( ALL + - 25 ) )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6093
SELECT - 99 DIV + 50
----
-1

skipif mysql # not compatible
query I rowsort label-6093
SELECT - 99 / + 50
----
-1

query I rowsort
SELECT ALL 48 + ( - 98 ) AS col1
----
-50

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6095
SELECT ALL - 32 + - MAX( - + 40 ) * - 90 * - + 27 * + + COALESCE ( + 36, - COUNT( * ) DIV + - 62 * - 97 - + 99 ) col1
----
3499168

skipif mysql # not compatible
query I rowsort label-6095
SELECT ALL - 32 + - MAX ( - + 40 ) * - 90 * - + 27 * + + COALESCE ( + 36, - COUNT ( * ) / + - 62 * - 97 - + 99 ) col1
----
3499168

onlyif mysql # aggregate syntax: 
query II rowsort label-6096
SELECT ALL - 33, - 6 + - SUM( DISTINCT 65 ) AS col0
----
-33
-71

skipif mysql # not compatible
query II rowsort label-6096
SELECT ALL - 33, - 6 + - SUM ( DISTINCT 65 ) AS col0
----
-33
-71

query I rowsort
SELECT 4 * + 12
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-6098
SELECT DISTINCT - NULLIF ( 13, - + 69 * 31 - - 72 ) + COUNT( * ) * 83
----
70

skipif mysql # not compatible
query I rowsort label-6098
SELECT DISTINCT - NULLIF ( 13, - + 69 * 31 - - 72 ) + COUNT ( * ) * 83
----
70

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6100
SELECT 96 * ( - 86 ) DIV - + 64 + + COUNT( * ) * + 11 AS col2
----
140

skipif mysql # not compatible
query I rowsort label-6100
SELECT 96 * ( - 86 ) / - + 64 + + COUNT ( * ) * + 11 AS col2
----
140

onlyif mysql # DIV for integer division: 
query I rowsort label-6101
SELECT + 14 DIV + ( - 51 ) + + + 34 AS col1
----
34

skipif mysql # not compatible
query I rowsort label-6101
SELECT + 14 / + ( - 51 ) + + + 34 AS col1
----
34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6102
SELECT - CAST( NULL AS SIGNED ) * - 35 - + COUNT( * ) / + - 7
----
NULL

skipif mysql # not compatible
query I rowsort label-6102
SELECT - CAST ( NULL AS INTEGER ) * - 35 - + COUNT ( * ) / + - 7
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6103
SELECT 33 * 46 - + 25 + + + 88 + + COUNT( * ) AS col1, - 96 col0
----
1582
-96

skipif mysql # not compatible
query II rowsort label-6103
SELECT 33 * 46 - + 25 + + + 88 + + COUNT ( * ) AS col1, - 96 col0
----
1582
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-6104
SELECT ALL - CASE 87 WHEN - 1 THEN - 9 ELSE - + 32 END + 89 DIV + 44
----
34

skipif mysql # not compatible
query I rowsort label-6104
SELECT ALL - CASE 87 WHEN - 1 THEN - 9 ELSE - + 32 END + 89 / + 44
----
34

query I rowsort
SELECT DISTINCT - CASE + 99 WHEN - 32 THEN NULL WHEN 8 THEN - AVG ( + 47 ) END AS col0
----
NULL

query I rowsort
SELECT DISTINCT 94 + - + 57
----
37

query II rowsort
SELECT ALL - 67, + 23 AS col0
----
-67
23

query I rowsort
SELECT DISTINCT - 52 - - 67 AS col1
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-6109
SELECT 19 + COUNT( * ) AS col1
----
20

skipif mysql # not compatible
query I rowsort label-6109
SELECT 19 + COUNT ( * ) AS col1
----
20

query I rowsort
SELECT 22 * - 77
----
-1694

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6111
SELECT - ( + 98 ) * 98 * NULLIF ( 88, + 20 ) * - + NULLIF ( + 88, + COUNT( * ) + - CAST( - 23 AS SIGNED ) ) + - 71 + 9 + 0 + 3 * + CAST( NULL AS SIGNED ) * + - 59 * - 84 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6111
SELECT - ( + 98 ) * 98 * NULLIF ( 88, + 20 ) * - + NULLIF ( + 88, + COUNT ( * ) + - CAST ( - 23 AS INTEGER ) ) + - 71 + 9 + 0 + 3 * + CAST ( NULL AS INTEGER ) * + - 59 * - 84 AS col2
----
NULL

query I rowsort
SELECT 63 + 30
----
93

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6114
SELECT ALL + 37 DIV 14 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-6114
SELECT ALL + 37 / 14 AS col2
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6115
SELECT + MAX( 70 ) - + + CAST( + 27 AS SIGNED ) AS col2
----
43

skipif mysql # not compatible
query I rowsort label-6115
SELECT + MAX ( 70 ) - + + CAST ( + 27 AS INTEGER ) AS col2
----
43

query I rowsort
SELECT DISTINCT + 20 * 68 AS col0
----
1360

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6118
SELECT - COUNT( * ) + + COUNT( * ) - - 70, + 86 - + MAX( DISTINCT - + 29 ) AS col0
----
70
115

skipif mysql # not compatible
query II rowsort label-6118
SELECT - COUNT ( * ) + + COUNT ( * ) - - 70, + 86 - + MAX ( DISTINCT - + 29 ) AS col0
----
70
115

query I rowsort
SELECT 81 * - 53 AS col2
----
-4293

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

query I rowsort
SELECT DISTINCT 19 + ( - 91 )
----
-72

query I rowsort
SELECT DISTINCT - - 18 + - 22
----
-4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6123
SELECT ALL - ( + 80 ) * - 28 + 78 + + COALESCE ( - - COUNT( * ), + 71 + + CAST( NULL AS SIGNED ) ) + + 29 + 87 * - - CAST( NULL AS SIGNED ) * 41 * - 48 * - + ( + 33 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6123
SELECT ALL - ( + 80 ) * - 28 + 78 + + COALESCE ( - - COUNT ( * ), + 71 + + CAST ( NULL AS INTEGER ) ) + + 29 + 87 * - - CAST ( NULL AS INTEGER ) * 41 * - 48 * - + ( + 33 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6124
SELECT MAX( DISTINCT - 51 ) + - 51
----
-102

skipif mysql # not compatible
query I rowsort label-6124
SELECT MAX ( DISTINCT - 51 ) + - 51
----
-102

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6125
SELECT DISTINCT 48 * - NULLIF ( + - 11, + 26 * 71 ) + 6 + + 70 + + 8 DIV + MAX( ALL + + 73 ) * 36 * - - 68 + - + 30
----
574

skipif mysql # not compatible
query I rowsort label-6125
SELECT DISTINCT 48 * - NULLIF ( + - 11, + 26 * 71 ) + 6 + + 70 + + 8 / + MAX ( ALL + + 73 ) * 36 * - - 68 + - + 30
----
574

query I rowsort
SELECT ALL + 54 * - ( 24 ) * + 63 + 75 - + 55 * + - 75 * - + 54
----
-304323

query I rowsort
SELECT NULLIF ( 32, + + 45 ) * - 67
----
-2144

query I rowsort
SELECT - 60 * - 29 + 38
----
1778

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6129
SELECT COALESCE ( 1, + CAST( NULL AS SIGNED ) ) * - 84 * + 67
----
-5628

skipif mysql # not compatible
query I rowsort label-6129
SELECT COALESCE ( 1, + CAST ( NULL AS INTEGER ) ) * - 84 * + 67
----
-5628

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6130
SELECT ALL ( - SUM( DISTINCT + ( - CAST( NULL AS SIGNED ) ) ) ) / COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6130
SELECT ALL ( - SUM ( DISTINCT + ( - CAST ( NULL AS INTEGER ) ) ) ) / COUNT ( * ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6131
SELECT 56 * - COALESCE ( 68, - ( - + COUNT( * ) ) + 33 ) + + 89 * - 54 * - COUNT( * )
----
998

skipif mysql # not compatible
query I rowsort label-6131
SELECT 56 * - COALESCE ( 68, - ( - + COUNT ( * ) ) + 33 ) + + 89 * - 54 * - COUNT ( * )
----
998

onlyif mysql # DIV for integer division: 
query I rowsort label-6132
SELECT ( 35 ) DIV 45 * - 93 * - 64
----
0

skipif mysql # not compatible
query I rowsort label-6132
SELECT ( 35 ) / 45 * - 93 * - 64
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6133
SELECT CAST( NULL AS SIGNED ) + - 60 - 33
----
NULL

skipif mysql # not compatible
query I rowsort label-6133
SELECT CAST ( NULL AS INTEGER ) + - 60 - 33
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6134
SELECT 12 * CAST( NULL AS DECIMAL ) * - 78
----
NULL

skipif mysql # not compatible
query I rowsort label-6134
SELECT 12 * CAST ( NULL AS REAL ) * - 78
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6135
SELECT MAX( - + COALESCE ( + + 44, + 63 + CAST( + + 13 AS SIGNED ) + - ( + 4 ), - 88 ) )
----
-44

skipif mysql # not compatible
query I rowsort label-6135
SELECT MAX ( - + COALESCE ( + + 44, + 63 + CAST ( + + 13 AS INTEGER ) + - ( + 4 ), - 88 ) )
----
-44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6136
SELECT ( 41 ) - + MIN( + 16 ) DIV - 28 AS col1
----
41

skipif mysql # not compatible
query I rowsort label-6136
SELECT ( 41 ) - + MIN ( + 16 ) / - 28 AS col1
----
41

query II rowsort
SELECT 77 AS col2, 80 col1
----
77
80

onlyif mysql # aggregate syntax: 
query I rowsort label-6138
SELECT 78 * + 74 * - COUNT( * ) * - 22 AS col0
----
126984

skipif mysql # not compatible
query I rowsort label-6138
SELECT 78 * + 74 * - COUNT ( * ) * - 22 AS col0
----
126984

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6139
SELECT ALL - 37 AS col0, + CAST( NULL AS SIGNED ) / - + 16 * 57 * 46 * CASE - 17 WHEN - ( - 36 ) * - 53 + + 44 THEN - 62 + + + 84 + - + 53 / 39 WHEN - - 39 + MIN( DISTINCT - CAST( NULL AS SIGNED ) ) THEN NULL END
----
-37
NULL

skipif mysql # not compatible
query II rowsort label-6139
SELECT ALL - 37 AS col0, + CAST ( NULL AS INTEGER ) / - + 16 * 57 * 46 * CASE - 17 WHEN - ( - 36 ) * - 53 + + 44 THEN - 62 + + + 84 + - + 53 / 39 WHEN - - 39 + MIN ( DISTINCT - CAST ( NULL AS INTEGER ) ) THEN NULL END
----
-37
NULL

query II rowsort
SELECT ALL + 11 AS col2, + 43
----
11
43

query I rowsort
SELECT + NULLIF ( 82, + 28 ) * 62 + 69
----
5153

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

query I rowsort
SELECT ALL COALESCE ( + 22, + 77 )
----
22

onlyif mysql # DIV for integer division: 
query I rowsort label-6144
SELECT + 18 DIV - 46 * 2 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6144
SELECT + 18 / - 46 * 2 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6145
SELECT - MAX( - 34 ) * + 74
----
2516

skipif mysql # not compatible
query I rowsort label-6145
SELECT - MAX ( - 34 ) * + 74
----
2516

query I rowsort
SELECT - + 14 + ( - 58 )
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-6147
SELECT ALL + - ( - SUM( 92 ) ) * + + 8 - 49 - 30 * + 51 * + 13 col0
----
-19203

skipif mysql # not compatible
query I rowsort label-6147
SELECT ALL + - ( - SUM ( 92 ) ) * + + 8 - 49 - 30 * + 51 * + 13 col0
----
-19203

query I rowsort
SELECT - + 64 + 51 AS col2
----
-13

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6149
SELECT ALL + - 54 * - - COALESCE ( + - 60, + + CAST( NULL AS SIGNED ) + - + 85, 45 * 81 ) + + 77 - + 23 col0, 92
----
3294
92

skipif mysql # not compatible
query II rowsort label-6149
SELECT ALL + - 54 * - - COALESCE ( + - 60, + + CAST ( NULL AS INTEGER ) + - + 85, 45 * 81 ) + + 77 - + 23 col0, 92
----
3294
92

onlyif mysql # aggregate syntax: 
query II rowsort label-6150
SELECT ALL COUNT( * ) AS col0, - 21 * 68 * - + 27
----
1
38556

skipif mysql # not compatible
query II rowsort label-6150
SELECT ALL COUNT ( * ) AS col0, - 21 * 68 * - + 27
----
1
38556

onlyif mysql # aggregate syntax: 
query I rowsort label-6151
SELECT - COUNT( * ) - ( - MAX( DISTINCT - 38 ) ) * - COUNT( * ) - - NULLIF ( - 89, + + 12 - - 41 ) + - 63 * 60
----
-3832

skipif mysql # not compatible
query I rowsort label-6151
SELECT - COUNT ( * ) - ( - MAX ( DISTINCT - 38 ) ) * - COUNT ( * ) - - NULLIF ( - 89, + + 12 - - 41 ) + - 63 * 60
----
-3832

onlyif mysql # aggregate syntax: 
query I rowsort label-6152
SELECT ALL - CASE + 50 WHEN + 53 + + 94 * + COUNT( * ) + 69 THEN + + COUNT( * ) END + + 89 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6152
SELECT ALL - CASE + 50 WHEN + 53 + + 94 * + COUNT ( * ) + 69 THEN + + COUNT ( * ) END + + 89 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6153
SELECT - 1 - 9 + - SUM( + 48 ) + - 91 * - 48 DIV 48 AS col1
----
33

skipif mysql # not compatible
query I rowsort label-6153
SELECT - 1 - 9 + - SUM ( + 48 ) + - 91 * - 48 / 48 AS col1
----
33

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6154
SELECT - CASE - 4 WHEN ( 43 ) THEN ( 52 ) * - + CAST( 53 AS DECIMAL ) + + 67 WHEN - 5 THEN - 25 * COUNT( * ) - - + 55 * - 12 / - 66 ELSE NULL END + + COUNT( DISTINCT - 78 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6154
SELECT - CASE - 4 WHEN ( 43 ) THEN ( 52 ) * - + CAST ( 53 AS REAL ) + + 67 WHEN - 5 THEN - 25 * COUNT ( * ) - - + 55 * - 12 / - 66 ELSE NULL END + + COUNT ( DISTINCT - 78 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6155
SELECT ( - 44 ), + 7 * - - CAST( NULL AS SIGNED ) AS col2
----
-44
NULL

skipif mysql # not compatible
query II rowsort label-6155
SELECT ( - 44 ), + 7 * - - CAST ( NULL AS INTEGER ) AS col2
----
-44
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6156
SELECT DISTINCT 56 * 69 + + 94 + - NULLIF ( 71, - COALESCE ( 29, + - COUNT( * ) + - 7 ) / CASE - + COUNT( * ) WHEN 49 THEN 92 ELSE + - 84 END ) AS col0
----
3887

skipif mysql # not compatible
query I rowsort label-6156
SELECT DISTINCT 56 * 69 + + 94 + - NULLIF ( 71, - COALESCE ( 29, + - COUNT ( * ) + - 7 ) / CASE - + COUNT ( * ) WHEN 49 THEN 92 ELSE + - 84 END ) AS col0
----
3887

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6157
SELECT ALL - 94 * + CAST( - - 68 AS SIGNED ) - - - 63
----
-6455

skipif mysql # not compatible
query I rowsort label-6157
SELECT ALL - 94 * + CAST ( - - 68 AS INTEGER ) - - - 63
----
-6455

query I rowsort
SELECT - 19 * - 86 - + + ( - - 80 )
----
1554

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6159
SELECT 70 DIV + 5 - - COUNT( * ) * - 28
----
-14

skipif mysql # not compatible
query I rowsort label-6159
SELECT 70 / + 5 - - COUNT ( * ) * - 28
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-6160
SELECT ALL - COUNT( * ) * - 25 - + - 58
----
83

skipif mysql # not compatible
query I rowsort label-6160
SELECT ALL - COUNT ( * ) * - 25 - + - 58
----
83

query II rowsort
SELECT - 11 * 21 AS col2, + 61 AS col2
----
-231
61

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6163
SELECT 71 * + - 47 * + CASE - CAST( + COUNT( * ) AS SIGNED ) WHEN 86 THEN NULL ELSE - 28 + + - 57 END + 19
----
283664

skipif mysql # not compatible
query I rowsort label-6163
SELECT 71 * + - 47 * + CASE - CAST ( + COUNT ( * ) AS INTEGER ) WHEN 86 THEN NULL ELSE - 28 + + - 57 END + 19
----
283664

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6164
SELECT CASE + - 55 WHEN - 68 + + CAST( NULL AS SIGNED ) THEN NULL ELSE + 90 * - + 72 END
----
-6480

skipif mysql # not compatible
query I rowsort label-6164
SELECT CASE + - 55 WHEN - 68 + + CAST ( NULL AS INTEGER ) THEN NULL ELSE + 90 * - + 72 END
----
-6480

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6165
SELECT + ( + CAST( NULL AS DECIMAL ) ) * + 56 * 16
----
NULL

skipif mysql # not compatible
query I rowsort label-6165
SELECT + ( + CAST ( NULL AS REAL ) ) * + 56 * 16
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6166
SELECT ALL - COUNT( * ) * + 36 col0, - 79 * - 68
----
-36
5372

skipif mysql # not compatible
query II rowsort label-6166
SELECT ALL - COUNT ( * ) * + 36 col0, - 79 * - 68
----
-36
5372

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6167
SELECT DISTINCT + 53 * - COUNT( * ), 15 DIV + - 89 col0
----
-53
0

skipif mysql # not compatible
query II rowsort label-6167
SELECT DISTINCT + 53 * - COUNT ( * ), 15 / + - 89 col0
----
-53
0

query I rowsort
SELECT + 36 + - 45
----
-9

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6170
SELECT + + 20 * - 14 + - - 28 - - ( + + 80 ) + + 22 * SUM( + - 27 ) AS col1, COUNT( * ) AS col2
----
-766
1

skipif mysql # not compatible
query II rowsort label-6170
SELECT + + 20 * - 14 + - - 28 - - ( + + 80 ) + + 22 * SUM ( + - 27 ) AS col1, COUNT ( * ) AS col2
----
-766
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6171
SELECT - 60 * 52 + + - MAX( - 18 )
----
-3102

skipif mysql # not compatible
query I rowsort label-6171
SELECT - 60 * 52 + + - MAX ( - 18 )
----
-3102

onlyif mysql # aggregate syntax: 
query I rowsort label-6172
SELECT + - 48 + COUNT( * )
----
-47

skipif mysql # not compatible
query I rowsort label-6172
SELECT + - 48 + COUNT ( * )
----
-47

query I rowsort
SELECT + NULLIF ( 11, - 6 ) AS col1
----
11

query I rowsort
SELECT + + 74 + 31 + + + 48 AS col1
----
153

onlyif mysql # aggregate syntax: 
query I rowsort label-6175
SELECT - + NULLIF ( 24, + + 24 ) + - COALESCE ( - COUNT( * ), - 43 ) * 12 - + 65
----
NULL

skipif mysql # not compatible
query I rowsort label-6175
SELECT - + NULLIF ( 24, + + 24 ) + - COALESCE ( - COUNT ( * ), - 43 ) * 12 - + 65
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6176
SELECT DISTINCT - 46 + + + 72 AS col0, 35 * CASE - - 13 WHEN + + 99 + 68 - - ( - ( + + SUM( 39 ) ) ) THEN - 12 DIV - ( COUNT( 8 ) ) + - + AVG ( - 74 ) DIV 77 * 82 WHEN + COUNT( * ) + + - 65 THEN + + 88 ELSE MAX( - 20 ) END
----
26
-700

skipif mysql # not compatible
query II rowsort label-6176
SELECT DISTINCT - 46 + + + 72 AS col0, 35 * CASE - - 13 WHEN + + 99 + 68 - - ( - ( + + SUM ( 39 ) ) ) THEN - 12 / - ( COUNT ( 8 ) ) + - + AVG ( - 74 ) / 77 * 82 WHEN + COUNT ( * ) + + - 65 THEN + + 88 ELSE MAX ( - 20 ) END
----
26
-700

onlyif mysql # aggregate syntax: 
query I rowsort label-6177
SELECT DISTINCT - 35 + - 44 - + 16 * 43 - + ( - COUNT( * ) ) - COALESCE ( COUNT( * ), - - 79 ) AS col2
----
-767

skipif mysql # not compatible
query I rowsort label-6177
SELECT DISTINCT - 35 + - 44 - + 16 * 43 - + ( - COUNT ( * ) ) - COALESCE ( COUNT ( * ), - - 79 ) AS col2
----
-767

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6178
SELECT ALL + + 93 + - - 86 + - COUNT( * ) DIV + 63
----
179

skipif mysql # not compatible
query I rowsort label-6178
SELECT ALL + + 93 + - - 86 + - COUNT ( * ) / + 63
----
179

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6179
SELECT ALL - 2 + + 96 * + + MIN( ALL + ( 7 ) ) + + 5 + + 12 + 65 * + CAST( NULL AS SIGNED ) + + CAST( NULL AS SIGNED ) + - 58
----
NULL

skipif mysql # not compatible
query I rowsort label-6179
SELECT ALL - 2 + + 96 * + + MIN ( ALL + ( 7 ) ) + + 5 + + 12 + 65 * + CAST ( NULL AS INTEGER ) + + CAST ( NULL AS INTEGER ) + - 58
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6180
SELECT DISTINCT - MIN( + + 61 ) + + 83
----
22

skipif mysql # not compatible
query I rowsort label-6180
SELECT DISTINCT - MIN ( + + 61 ) + + 83
----
22

query I rowsort
SELECT - - 58 + 4
----
62

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

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

query I rowsort
SELECT + - 47 + - - 81 + 64 AS col0
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-6184
SELECT - - COUNT( * ) * - + 94 * - + 21 + + 82 * - 22
----
170

skipif mysql # not compatible
query I rowsort label-6184
SELECT - - COUNT ( * ) * - + 94 * - + 21 + + 82 * - 22
----
170

query II rowsort
SELECT + + 72 + - + 7 AS col1, 67 AS col0
----
65
67

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6187
SELECT + 77 + + SUM( 40 ) * + CAST( NULL AS SIGNED ) + + 39 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6187
SELECT + 77 + + SUM ( 40 ) * + CAST ( NULL AS INTEGER ) + + 39 AS col2
----
NULL

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

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

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

query I rowsort
SELECT - 47 + - - 79 col1
----
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6191
SELECT DISTINCT - CASE + 60 WHEN + 9 THEN NULL WHEN 23 THEN NULL ELSE - 78 * ( CAST( NULL AS SIGNED ) ) * + + 7 + 40 END * + 71 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6191
SELECT DISTINCT - CASE + 60 WHEN + 9 THEN NULL WHEN 23 THEN NULL ELSE - 78 * ( CAST ( NULL AS INTEGER ) ) * + + 7 + 40 END * + 71 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6192
SELECT DISTINCT + CASE + + 37 WHEN + + 18 THEN - - COALESCE ( + COUNT( * ), SUM( + 50 ) ) * - NULLIF ( 32, - + ( MIN( - 94 ) ) ) + + - 0 * + 81 ELSE NULL END * - COUNT( * ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6192
SELECT DISTINCT + CASE + + 37 WHEN + + 18 THEN - - COALESCE ( + COUNT ( * ), SUM ( + 50 ) ) * - NULLIF ( 32, - + ( MIN ( - 94 ) ) ) + + - 0 * + 81 ELSE NULL END * - COUNT ( * ) col1
----
NULL

query I rowsort
SELECT - 5 + + 78 + 86 + - + 14
----
145

query II rowsort
SELECT + 33, - 65 - + + 53 * + ( 76 ) AS col0
----
33
-4093

query I rowsort
SELECT + 70 + - 0 col2
----
70

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6196
SELECT DISTINCT - CAST( NULL AS SIGNED ) AS col0, 58
----
NULL
58

skipif mysql # not compatible
query II rowsort label-6196
SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col0, 58
----
NULL
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6197
SELECT DISTINCT 87 * + 57 * - CASE 46 WHEN + 26 + - 17 + ( + CASE + - 40 WHEN 61 THEN + 63 WHEN + + CAST( NULL AS SIGNED ) * - 19 THEN NULL ELSE - + COUNT( * ) END ) * + 13 * 45 THEN + + CASE + 58 WHEN 54 THEN 82 END ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6197
SELECT DISTINCT 87 * + 57 * - CASE 46 WHEN + 26 + - 17 + ( + CASE + - 40 WHEN 61 THEN + 63 WHEN + + CAST ( NULL AS INTEGER ) * - 19 THEN NULL ELSE - + COUNT ( * ) END ) * + 13 * 45 THEN + + CASE + 58 WHEN 54 THEN 82 END ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT ALL - 58 + + ( + 92 ) + - 83
----
-49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6199
SELECT + - COUNT( DISTINCT - CAST( NULL AS SIGNED ) ) AS col2
----
0

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

query II rowsort
SELECT + 75, - 71 col0
----
75
-71

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

skipif mysql # not compatible
query I rowsort label-6201
SELECT + COUNT ( * ) - + 99 AS col1
----
-98

onlyif mysql # aggregate syntax: 
query II rowsort label-6202
SELECT + - 77 AS col2, MIN( ALL - 36 ) * + - 9 AS col1
----
-77
324

skipif mysql # not compatible
query II rowsort label-6202
SELECT + - 77 AS col2, MIN ( ALL - 36 ) * + - 9 AS col1
----
-77
324

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6204
SELECT 97 * - 33 + - 70 + - NULLIF ( + 98, + - 4 * + 6 + + - NULLIF ( - + COUNT( * ), + ( 21 ) ) )
----
-3369

skipif mysql # not compatible
query I rowsort label-6204
SELECT 97 * - 33 + - 70 + - NULLIF ( + 98, + - 4 * + 6 + + - NULLIF ( - + COUNT ( * ), + ( 21 ) ) )
----
-3369

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6205
SELECT COALESCE ( + - COUNT( * ), + 13, + 3 + ( + COUNT( * ) ) + + 69 + + 50 DIV + 86 + 65 * - + 70 * + + 59 * - + 60 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-6205
SELECT COALESCE ( + - COUNT ( * ), + 13, + 3 + ( + COUNT ( * ) ) + + 69 + + 50 / + 86 + 65 * - + 70 * + + 59 * - + 60 ) AS col1
----
-1

query I rowsort
SELECT ALL + ( 60 ) + 23 * + 56 * 54
----
69612

query I rowsort
SELECT DISTINCT + 6 * 65
----
390

query I rowsort
SELECT + 59 * + 11
----
649

query I rowsort
SELECT ALL - 56 + 42
----
-14

query I rowsort
SELECT ALL - 92 * - + 29 * + 57 + ( 28 ) AS col1
----
152104

query II rowsort
SELECT 87 col2, - 30 AS col0
----
87
-30

query I rowsort
SELECT ALL + 81 + - 13
----
68

onlyif mysql # DIV for integer division: 
query I rowsort label-6213
SELECT 66 DIV 9 * - - 32 * - 20 + 75
----
-4405

skipif mysql # not compatible
query I rowsort label-6213
SELECT 66 / 9 * - - 32 * - 20 + 75
----
-4405

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6216
SELECT DISTINCT + 74 * 17 + - 84 + - 88 - + + 55 * + - COUNT( * ) + + 99 * + 62 AS col1
----
7279

skipif mysql # not compatible
query I rowsort label-6216
SELECT DISTINCT + 74 * 17 + - 84 + - 88 - + + 55 * + - COUNT ( * ) + + 99 * + 62 AS col1
----
7279

query I rowsort
SELECT ALL 66 - - - 14 * - + 89
----
1312

onlyif mysql # aggregate syntax: 
query I rowsort label-6218
SELECT 13 * - COUNT( - 92 )
----
-13

skipif mysql # not compatible
query I rowsort label-6218
SELECT 13 * - COUNT ( - 92 )
----
-13

query I rowsort
SELECT DISTINCT - 52 - - 73 AS col1
----
21

query I rowsort
SELECT ALL 12 * + 43 * - + 13
----
-6708

onlyif mysql # aggregate syntax: 
query I rowsort label-6221
SELECT ALL 30 * + + 78 * COUNT( + 31 )
----
2340

skipif mysql # not compatible
query I rowsort label-6221
SELECT ALL 30 * + + 78 * COUNT ( + 31 )
----
2340

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6222
SELECT 38 * + CASE + 33 WHEN + ( - 85 ) / + + 99 THEN NULL WHEN - - 94 THEN + - CAST( - + 92 AS SIGNED ) / 71 ELSE - CAST( NULL AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-6222
SELECT 38 * + CASE + 33 WHEN + ( - 85 ) / + + 99 THEN NULL WHEN - - 94 THEN + - CAST ( - + 92 AS INTEGER ) / 71 ELSE - CAST ( NULL AS INTEGER ) END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6223
SELECT NULLIF ( 3, + - 23 ) - - 84 / 80 / + CAST( NULL AS SIGNED ) * + - 52 * - 1 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6223
SELECT NULLIF ( 3, + - 23 ) - - 84 / 80 / + CAST ( NULL AS INTEGER ) * + - 52 * - 1 AS col0
----
NULL

query I rowsort
SELECT 51 * + 90
----
4590

onlyif mysql # aggregate syntax: 
query I rowsort label-6225
SELECT 22 + - COUNT( * ) col2
----
21

skipif mysql # not compatible
query I rowsort label-6225
SELECT 22 + - COUNT ( * ) col2
----
21

query I rowsort
SELECT ( + 63 ) + + 11
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-6227
SELECT ALL - 7 * - - MIN( + - 17 ) col2
----
119

skipif mysql # not compatible
query I rowsort label-6227
SELECT ALL - 7 * - - MIN ( + - 17 ) col2
----
119

onlyif mysql # aggregate syntax: 
query I rowsort label-6228
SELECT + 72 * + COUNT( * ) - 37 AS col0
----
35

skipif mysql # not compatible
query I rowsort label-6228
SELECT + 72 * + COUNT ( * ) - 37 AS col0
----
35

query I rowsort
SELECT ALL - 8 * - - 62
----
-496

onlyif mysql # aggregate syntax: 
query I rowsort label-6230
SELECT ALL + - 27 + + MIN( ALL + 69 ) col0
----
42

skipif mysql # not compatible
query I rowsort label-6230
SELECT ALL + - 27 + + MIN ( ALL + 69 ) col0
----
42

query I rowsort
SELECT + 18 * - - 16 + - - 61 + 11 - + 63 AS col0
----
297

query I rowsort
SELECT ALL - 12 + - 30 AS col2
----
-42

query I rowsort
SELECT - 80 * - 58
----
4640

onlyif mysql # aggregate syntax: 
query I rowsort label-6234
SELECT + COUNT( * ) * - 34 + - ( + 37 ) - - - 42 - - CASE + 24 WHEN + COALESCE ( - + 9, + ( + + 45 ) + - 73 ) THEN MAX( + - 48 ) - + - 83 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6234
SELECT + COUNT ( * ) * - 34 + - ( + 37 ) - - - 42 - - CASE + 24 WHEN + COALESCE ( - + 9, + ( + + 45 ) + - 73 ) THEN MAX ( + - 48 ) - + - 83 END AS col2
----
NULL

query I rowsort
SELECT ALL - - ( 37 ) AS col2
----
37

query I rowsort
SELECT + - COALESCE ( + + ( + - 24 ), 46, + ( 51 ), 55 )
----
24

onlyif mysql # aggregate syntax: 
query II rowsort label-6237
SELECT ALL - + 1 + 21 * COUNT( * ) + - + 93 AS col0, - 94
----
-73
-94

skipif mysql # not compatible
query II rowsort label-6237
SELECT ALL - + 1 + 21 * COUNT ( * ) + - + 93 AS col0, - 94
----
-73
-94

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6240
SELECT 7 * + 13 - - CASE + NULLIF ( + - 87, - 37 + - 97 ) WHEN - 18 * + - COUNT( * ) THEN NULL ELSE - + 62 * - ( - - 84 ) + - 70 + - 85 * ( + 61 ) END + + 16 + + 15 + - + COUNT( * ) - 52 * + 88 * - 46 * COUNT( * ) * - 14 AS col0, 54
----
-2946870
54

skipif mysql # not compatible
query II rowsort label-6240
SELECT 7 * + 13 - - CASE + NULLIF ( + - 87, - 37 + - 97 ) WHEN - 18 * + - COUNT ( * ) THEN NULL ELSE - + 62 * - ( - - 84 ) + - 70 + - 85 * ( + 61 ) END + + 16 + + 15 + - + COUNT ( * ) - 52 * + 88 * - 46 * COUNT ( * ) * - 14 AS col0, 54
----
-2946870
54

onlyif mysql # aggregate syntax: 
query II rowsort label-6241
SELECT ALL - - 9 + - + COUNT( * ) AS col1, 22 + + 26 * - 94
----
8
-2422

skipif mysql # not compatible
query II rowsort label-6241
SELECT ALL - - 9 + - + COUNT ( * ) AS col1, 22 + + 26 * - 94
----
8
-2422

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6242
SELECT 35 + + 4 + + + 10 * - - 44 - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6242
SELECT 35 + + 4 + + + 10 * - - 44 - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6243
SELECT 25 DIV - - SUM( + 85 )
----
0

skipif mysql # not compatible
query I rowsort label-6243
SELECT 25 / - - SUM ( + 85 )
----
0

query I rowsort
SELECT + 23 + - - 17
----
40

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6246
SELECT + SUM( - CAST( NULL AS SIGNED ) ) * - 32 + 70 * 99 * - ( - 93 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6246
SELECT + SUM ( - CAST ( NULL AS INTEGER ) ) * - 32 + 70 * 99 * - ( - 93 ) AS col2
----
NULL

query I rowsort
SELECT 13 + - 6
----
7

query I rowsort
SELECT ALL + 11 * + 31 AS col0
----
341

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6250
SELECT ALL NULLIF ( - 23, + 1 * + COUNT( * ) ) DIV - + SUM( DISTINCT + 36 )
----
0

skipif mysql # not compatible
query I rowsort label-6250
SELECT ALL NULLIF ( - 23, + 1 * + COUNT ( * ) ) / - + SUM ( DISTINCT + 36 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6251
SELECT ALL CASE 76 WHEN CASE - ( 22 ) WHEN - - COUNT( * ) + + + 39 + - - 80 / - COUNT( * ) THEN NULL WHEN + - 54 * + 37 THEN NULL WHEN COUNT( * ) THEN 7 END * - 9 THEN NULL ELSE + + 79 * 86 END
----
6794

skipif mysql # not compatible
query I rowsort label-6251
SELECT ALL CASE 76 WHEN CASE - ( 22 ) WHEN - - COUNT ( * ) + + + 39 + - - 80 / - COUNT ( * ) THEN NULL WHEN + - 54 * + 37 THEN NULL WHEN COUNT ( * ) THEN 7 END * - 9 THEN NULL ELSE + + 79 * 86 END
----
6794

query I rowsort
SELECT 42 + + 61 AS col0
----
103

onlyif mysql # aggregate syntax: 
query II rowsort label-6253
SELECT 13 + ( 91 ), COUNT( * ) AS col1
----
104
1

skipif mysql # not compatible
query II rowsort label-6253
SELECT 13 + ( 91 ), COUNT ( * ) AS col1
----
104
1

query I rowsort
SELECT 48 * - 79 AS col1
----
-3792

query I rowsort
SELECT ( + 13 ) + 26 AS col0
----
39

query I rowsort
SELECT ALL 76 * + 62 AS col0
----
4712

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6258
SELECT DISTINCT CAST( - - 35 AS SIGNED ) + + 88 + - 87 * + ( MIN( DISTINCT - + 29 ) ) * 15 AS col0
----
37968

skipif mysql # not compatible
query I rowsort label-6258
SELECT DISTINCT CAST ( - - 35 AS INTEGER ) + + 88 + - 87 * + ( MIN ( DISTINCT - + 29 ) ) * 15 AS col0
----
37968

onlyif mysql # aggregate syntax: 
query I rowsort label-6259
SELECT + 5 * + 33 * NULLIF ( - - 43, 93 + - 26 ) + 17 + COUNT( * ) * + 27 col1
----
7139

skipif mysql # not compatible
query I rowsort label-6259
SELECT + 5 * + 33 * NULLIF ( - - 43, 93 + - 26 ) + 17 + COUNT ( * ) * + 27 col1
----
7139

query I rowsort
SELECT DISTINCT 75 * + 16 * - - 74 AS col1
----
88800

onlyif mysql # DIV for integer division: 
query I rowsort label-6261
SELECT ( + 97 ) DIV - 27 + 53 * + - 46 AS col2
----
-2441

skipif mysql # not compatible
query I rowsort label-6261
SELECT ( + 97 ) / - 27 + 53 * + - 46 AS col2
----
-2441

onlyif mysql # DIV for integer division: 
query I rowsort label-6262
SELECT + ( + 99 ) DIV + 29 + - 39 AS col0
----
-36

skipif mysql # not compatible
query I rowsort label-6262
SELECT + ( + 99 ) / + 29 + - 39 AS col0
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-6263
SELECT CASE + COUNT( * ) WHEN 41 + - 79 / - 9 THEN 98 * 37 WHEN 59 / 49 - COUNT( * ) THEN + 98 - + 28 * - 28 ELSE COUNT( * ) END
----
1

skipif mysql # not compatible
query I rowsort label-6263
SELECT CASE + COUNT ( * ) WHEN 41 + - 79 / - 9 THEN 98 * 37 WHEN 59 / 49 - COUNT ( * ) THEN + 98 - + 28 * - 28 ELSE COUNT ( * ) END
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-6264
SELECT ALL + 77 DIV + 92 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6264
SELECT ALL + 77 / + 92 AS col0
----
0

query I rowsort
SELECT ALL 79 * 17 + 77 AS col0
----
1420

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6267
SELECT DISTINCT 9 DIV + MIN( - ( 20 ) )
----
0

skipif mysql # not compatible
query I rowsort label-6267
SELECT DISTINCT 9 / + MIN ( - ( 20 ) )
----
0

query I rowsort
SELECT ALL + 41 * 58
----
2378

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6270
SELECT DISTINCT COUNT( * ) * 14 - + 54 AS col0
----
-40

skipif mysql # not compatible
query I rowsort label-6270
SELECT DISTINCT COUNT ( * ) * 14 - + 54 AS col0
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-6271
SELECT ALL 17 * - 7 - - COUNT( * )
----
-118

skipif mysql # not compatible
query I rowsort label-6271
SELECT ALL 17 * - 7 - - COUNT ( * )
----
-118

query I rowsort
SELECT + COALESCE ( + 93, NULLIF ( 59, + 94 ) )
----
93

query I rowsort
SELECT NULLIF ( 90, + 82 / 82 ) AS col1
----
90

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6275
SELECT + ( + 94 ) DIV 81
----
1

skipif mysql # not compatible
query I rowsort label-6275
SELECT + ( + 94 ) / 81
----
1

query I rowsort
SELECT - 91 * - 55 AS col2
----
5005

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6277
SELECT - 8 + + ( ( ( CAST( NULL AS SIGNED ) ) ) ) * 69 AS col0
----
NULL

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6279
SELECT 6 * - COUNT( DISTINCT - 81 ) + - 54 AS col2
----
-60

skipif mysql # not compatible
query I rowsort label-6279
SELECT 6 * - COUNT ( DISTINCT - 81 ) + - 54 AS col2
----
-60

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

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

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

query I rowsort
SELECT ALL ( - COALESCE ( - 84, + 87 ) )
----
84

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

skipif mysql # not compatible
query I rowsort label-6283
SELECT DISTINCT 77 * CAST ( NULL AS REAL ) AS col2
----
NULL

query I rowsort
SELECT ALL CASE WHEN NOT + 9 BETWEEN NULL AND ( NULL ) THEN 57 * - 81 + - 20 * 77 END
----
NULL

query I rowsort
SELECT - 95 * 67
----
-6365

query I rowsort
SELECT - 1 * - 71 AS col1
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-6287
SELECT DISTINCT + 34 * + COUNT( * ) col1
----
34

skipif mysql # not compatible
query I rowsort label-6287
SELECT DISTINCT + 34 * + COUNT ( * ) col1
----
34

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-6290
SELECT - SUM ( DISTINCT 71 )
----
-71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6291
SELECT + CASE 12 WHEN COUNT( + 7 ) * 94 + CAST( 31 AS SIGNED ) THEN - 60 ELSE ( COUNT( * ) ) DIV COALESCE ( - 35 * + 95, + 67 * - CAST( NULL AS SIGNED ) ) END * 4
----
0

skipif mysql # not compatible
query I rowsort label-6291
SELECT + CASE 12 WHEN COUNT ( + 7 ) * 94 + CAST ( 31 AS INTEGER ) THEN - 60 ELSE ( COUNT ( * ) ) / COALESCE ( - 35 * + 95, + 67 * - CAST ( NULL AS INTEGER ) ) END * 4
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6292
SELECT ALL + 7 * ( 80 DIV SUM( DISTINCT CAST( - 99 AS SIGNED ) ) )
----
0

skipif mysql # not compatible
query I rowsort label-6292
SELECT ALL + 7 * ( 80 / SUM ( DISTINCT CAST ( - 99 AS INTEGER ) ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6293
SELECT DISTINCT + ( + CASE COUNT( * ) WHEN - 1 * - 49 THEN 87 - COUNT( * ) ELSE 67 * + 86 END ) * 9 AS col2
----
51858

skipif mysql # not compatible
query I rowsort label-6293
SELECT DISTINCT + ( + CASE COUNT ( * ) WHEN - 1 * - 49 THEN 87 - COUNT ( * ) ELSE 67 * + 86 END ) * 9 AS col2
----
51858

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6294
SELECT ALL - COUNT( CAST( 22 AS SIGNED ) ) + CAST( + 81 AS SIGNED ) AS col1
----
80

skipif mysql # not compatible
query I rowsort label-6294
SELECT ALL - COUNT ( CAST ( 22 AS INTEGER ) ) + CAST ( + 81 AS INTEGER ) AS col1
----
80

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

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

query I rowsort
SELECT ALL + 17 + 48
----
65

query I rowsort
SELECT ALL 29 + + 39 AS col0
----
68

query I rowsort
SELECT - NULLIF ( 16, + 95 ) * 86 AS col2
----
-1376

onlyif mysql # aggregate syntax: 
query I rowsort label-6299
SELECT ALL + COUNT( * ) + 73 * + 56 AS col0
----
4089

skipif mysql # not compatible
query I rowsort label-6299
SELECT ALL + COUNT ( * ) + 73 * + 56 AS col0
----
4089

query I rowsort
SELECT ALL 5 + 73 col1
----
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6301
SELECT - COALESCE ( + 85, + 71 * + 80 - + MAX( ALL 11 ), 37 * + ( + 67 ) - 30 * 36, CAST( NULL AS SIGNED ) - 42 * ( - 33 * + 15 ) )
----
-85

skipif mysql # not compatible
query I rowsort label-6301
SELECT - COALESCE ( + 85, + 71 * + 80 - + MAX ( ALL 11 ), 37 * + ( + 67 ) - 30 * 36, CAST ( NULL AS INTEGER ) - 42 * ( - 33 * + 15 ) )
----
-85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6302
SELECT DISTINCT CAST( 72 AS SIGNED ) AS col1
----
72

skipif mysql # not compatible
query I rowsort label-6302
SELECT DISTINCT CAST ( 72 AS INTEGER ) AS col1
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-6303
SELECT - MIN( ALL + 93 ) + 25
----
-68

skipif mysql # not compatible
query I rowsort label-6303
SELECT - MIN ( ALL + 93 ) + 25
----
-68

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6305
SELECT ALL 10 DIV + 79 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6305
SELECT ALL 10 / + 79 AS col1
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6307
SELECT - 75 + - SUM( DISTINCT - ( + 15 ) ) * + 26 AS col0
----
315

skipif mysql # not compatible
query I rowsort label-6307
SELECT - 75 + - SUM ( DISTINCT - ( + 15 ) ) * + 26 AS col0
----
315

onlyif mysql # aggregate syntax: 
query I rowsort label-6308
SELECT + - ( 20 ) + + MIN( DISTINCT 63 + COALESCE ( 14, - 90 ) ) AS col2
----
57

skipif mysql # not compatible
query I rowsort label-6308
SELECT + - ( 20 ) + + MIN ( DISTINCT 63 + COALESCE ( 14, - 90 ) ) AS col2
----
57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6309
SELECT ALL - 53 DIV 27 + - 79 * SUM( + ( 28 ) + - 72 ) AS col2
----
3475

skipif mysql # not compatible
query I rowsort label-6309
SELECT ALL - 53 / 27 + - 79 * SUM ( + ( 28 ) + - 72 ) AS col2
----
3475

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

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

query I rowsort
SELECT ALL 29 * 13
----
377

query I rowsort
SELECT 66 * + 5 - 7 AS col0
----
323

onlyif mysql # DIV for integer division: 
query I rowsort label-6313
SELECT - - ( 0 ) DIV + 61 + - ( 1 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-6313
SELECT - - ( 0 ) / + 61 + - ( 1 ) AS col2
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6314
SELECT ALL + ( COALESCE ( + 15, + 12, COUNT( * ) + 43 ) ) DIV - 49 - + 15 AS col0
----
-15

skipif mysql # not compatible
query I rowsort label-6314
SELECT ALL + ( COALESCE ( + 15, + 12, COUNT ( * ) + 43 ) ) / - 49 - + 15 AS col0
----
-15

query I rowsort
SELECT + - 80 * + 50 AS col2
----
-4000

query I rowsort
SELECT + 71 * - 39 + 47 * 55 AS col1
----
-184

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

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

query I rowsort
SELECT + 84 * 21 + 25
----
1789

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6321
SELECT DISTINCT COUNT( * ) DIV 63 col0
----
0

skipif mysql # not compatible
query I rowsort label-6321
SELECT DISTINCT COUNT ( * ) / 63 col0
----
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6323
SELECT ALL + - MIN( DISTINCT 89 ) * + 75 AS col1
----
-6675

skipif mysql # not compatible
query I rowsort label-6323
SELECT ALL + - MIN ( DISTINCT 89 ) * + 75 AS col1
----
-6675

onlyif mysql # aggregate syntax: 
query I rowsort label-6324
SELECT COUNT( ALL - 8 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6324
SELECT COUNT ( ALL - 8 ) AS col2
----
1

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

skipif mysql # not compatible
query I rowsort label-6325
SELECT DISTINCT + COUNT ( * ) / - 2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6326
SELECT DISTINCT + COALESCE ( 16, COUNT( * ) )
----
16

skipif mysql # not compatible
query I rowsort label-6326
SELECT DISTINCT + COALESCE ( 16, COUNT ( * ) )
----
16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6327
SELECT + 95 DIV + - NULLIF ( 88, ( COUNT( * ) ) + - COUNT( * ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-6327
SELECT + 95 / + - NULLIF ( 88, ( COUNT ( * ) ) + - COUNT ( * ) ) AS col2
----
-1

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

skipif mysql # not compatible
query I rowsort label-6328
SELECT - COUNT ( * ) / + 5 * - 66 AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6329
SELECT ALL CAST( NULL AS SIGNED ) * - 6
----
NULL

skipif mysql # not compatible
query I rowsort label-6329
SELECT ALL CAST ( NULL AS INTEGER ) * - 6
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6330
SELECT + CAST( + + CASE - 49 WHEN + 62 / 27 THEN + 14 - ( - COUNT( ALL + 36 ) ) WHEN 34 THEN NULL WHEN + 87 THEN 8 + - 95 WHEN - 87 THEN NULL ELSE - AVG ( ALL 51 ) END AS SIGNED ) AS col1
----
-51

skipif mysql # not compatible
query I rowsort label-6330
SELECT + CAST ( + + CASE - 49 WHEN + 62 / 27 THEN + 14 - ( - COUNT ( ALL + 36 ) ) WHEN 34 THEN NULL WHEN + 87 THEN 8 + - 95 WHEN - 87 THEN NULL ELSE - AVG ( ALL 51 ) END AS INTEGER ) AS col1
----
-51

query I rowsort
SELECT - 77 * + + 27 col1
----
-2079

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

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

query I rowsort
SELECT + 89 + - ( 64 ) AS col2
----
25

query I rowsort
SELECT ALL - 75 + 12 AS col2
----
-63

query I rowsort
SELECT 41 * 36
----
1476

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

skipif mysql # not compatible
query I rowsort label-6336
SELECT DISTINCT 6 + + 67 / COUNT ( * )
----
73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6337
SELECT ALL - 48 + 64 - - CAST( NULL AS SIGNED ) * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6337
SELECT ALL - 48 + 64 - - CAST ( NULL AS INTEGER ) * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6338
SELECT 57 + - - 89 + - ( - 7 ) DIV 78 AS col0
----
146

skipif mysql # not compatible
query I rowsort label-6338
SELECT 57 + - - 89 + - ( - 7 ) / 78 AS col0
----
146

onlyif mysql # aggregate syntax: 
query I rowsort label-6339
SELECT ALL - SUM( ALL + 69 ) + + 67
----
-2

skipif mysql # not compatible
query I rowsort label-6339
SELECT ALL - SUM ( ALL + 69 ) + + 67
----
-2

query I rowsort
SELECT 67 + + 19 AS col2
----
86

onlyif mysql # DIV for integer division: 
query I rowsort label-6341
SELECT 76 + + 35 DIV 87
----
76

skipif mysql # not compatible
query I rowsort label-6341
SELECT 76 + + 35 / 87
----
76

query I rowsort
SELECT ALL - 49 + 33 * + COALESCE ( + 63, - ( 22 ) )
----
2030

query I rowsort
SELECT ALL + 86 * - + 76 col1
----
-6536

query I rowsort
SELECT DISTINCT - 31 + + CASE 18 WHEN + 83 THEN - 64 + COALESCE ( + 81, - 99 ) END + 46 * 64 AS col2
----
NULL

query I rowsort
SELECT ALL + 77 * - COALESCE ( NULLIF ( - 8, 47 * + 47 ), - 10 ) AS col0
----
616

onlyif mysql # aggregate syntax: 
query I rowsort label-6346
SELECT 2 + - 67 - - MIN( - 8 ) AS col1
----
-73

skipif mysql # not compatible
query I rowsort label-6346
SELECT 2 + - 67 - - MIN ( - 8 ) AS col1
----
-73

query I rowsort
SELECT ALL - 13 + - 97 + 65
----
-45

query I rowsort
SELECT DISTINCT - 22 - ( 79 ) AS col0
----
-101

onlyif mysql # aggregate syntax: 
query I rowsort label-6349
SELECT ALL MAX( - + 78 ) AS col1
----
-78

skipif mysql # not compatible
query I rowsort label-6349
SELECT ALL MAX ( - + 78 ) AS col1
----
-78

query I rowsort
SELECT + 1 + + 10 + 31
----
42

onlyif mysql # DIV for integer division: 
query I rowsort label-6351
SELECT ( + NULLIF ( 84, - COALESCE ( 42, 53 ) ) ) DIV - 22
----
-3

skipif mysql # not compatible
query I rowsort label-6351
SELECT ( + NULLIF ( 84, - COALESCE ( 42, 53 ) ) ) / - 22
----
-3

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

skipif mysql # not compatible
query I rowsort label-6352
SELECT + 53 * COUNT ( * ) * - 28 AS col2
----
-1484

onlyif mysql # DIV for integer division: 
query I rowsort label-6353
SELECT + + 26 DIV 38 * + 27 + + 50
----
50

skipif mysql # not compatible
query I rowsort label-6353
SELECT + + 26 / 38 * + 27 + + 50
----
50

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

query I rowsort
SELECT ALL 20 * - 83
----
-1660

query I rowsort
SELECT 79 * + - 1 AS col0
----
-79

query I rowsort
SELECT ALL + 57 * - 40 - 33
----
-2313

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

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

query I rowsort
SELECT DISTINCT - COALESCE ( - 18, + 41 - 40 * 44, 91 )
----
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6360
SELECT ALL + 13 * + COUNT( - CAST( NULL AS SIGNED ) ) DIV 80 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6360
SELECT ALL + 13 * + COUNT ( - CAST ( NULL AS INTEGER ) ) / 80 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6361
SELECT DISTINCT 4 * + MAX( - 75 ) + + 46 * 58 AS col1
----
2368

skipif mysql # not compatible
query I rowsort label-6361
SELECT DISTINCT 4 * + MAX ( - 75 ) + + 46 * 58 AS col1
----
2368

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

skipif mysql # not compatible
query I rowsort label-6362
SELECT ALL + 63 + 69 + - COUNT ( * ) AS col1
----
131

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

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

query II rowsort
SELECT + 95 AS col0, 45 col0
----
95
45

onlyif mysql # aggregate syntax: 
query I rowsort label-6365
SELECT COALESCE ( + COUNT( * ), - ( ( - 76 ) ) * - 62 ) * ( - 29 ) col0
----
-29

skipif mysql # not compatible
query I rowsort label-6365
SELECT COALESCE ( + COUNT ( * ), - ( ( - 76 ) ) * - 62 ) * ( - 29 ) col0
----
-29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6366
SELECT + COUNT( * ) * 8 + CAST( + 24 AS SIGNED ) AS col2
----
32

skipif mysql # not compatible
query I rowsort label-6366
SELECT + COUNT ( * ) * 8 + CAST ( + 24 AS INTEGER ) AS col2
----
32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6367
SELECT + ( ( - + 21 ) ) * ( + 15 + CASE + 71 WHEN + 72 * 18 THEN 47 + 68 * - MAX( DISTINCT 48 + ( 55 ) ) ELSE - COUNT( * ) END ) + 77 DIV 68
----
-293

skipif mysql # not compatible
query I rowsort label-6367
SELECT + ( ( - + 21 ) ) * ( + 15 + CASE + 71 WHEN + 72 * 18 THEN 47 + 68 * - MAX ( DISTINCT 48 + ( 55 ) ) ELSE - COUNT ( * ) END ) + 77 / 68
----
-293

query I rowsort
SELECT DISTINCT 94 + 13
----
107

query I rowsort
SELECT 48 * - - 69
----
3312

query II rowsort
SELECT DISTINCT - 83 AS col1, - 22 AS col2
----
-83
-22

query II rowsort
SELECT - 63 AS col2, 47
----
-63
47

query I rowsort
SELECT ALL ( 11 ) + 34 + + 97
----
142

onlyif mysql # DIV for integer division: 
query I rowsort label-6373
SELECT ALL 0 DIV + - 49 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6373
SELECT ALL 0 / + - 49 AS col2
----
0

query I rowsort
SELECT 38 - 74 + 83 AS col0
----
47

query II rowsort
SELECT - 71, 38 - - 97 AS col2
----
-71
135

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6376
SELECT 3 col1, + 40 DIV + - 78 * 30 + - NULLIF ( - COUNT( * ), SUM( ALL 70 ) DIV 44 ) * - 80 col2
----
3
-80

skipif mysql # not compatible
query II rowsort label-6376
SELECT 3 col1, + 40 / + - 78 * 30 + - NULLIF ( - COUNT ( * ), SUM ( ALL 70 ) / 44 ) * - 80 col2
----
3
-80

query II rowsort
SELECT - 27 col0, - 48 * - 31 - + 18
----
-27
1470

onlyif mysql # DIV for integer division: 
query I rowsort label-6378
SELECT 57 DIV - + 19
----
-3

skipif mysql # not compatible
query I rowsort label-6378
SELECT 57 / - + 19
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-6379
SELECT 92 DIV + + 87 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6379
SELECT 92 / + + 87 AS col0
----
1

query II rowsort
SELECT ALL 31, - 32 * ( - 22 ) + 0 * + 92 AS col0
----
31
704

query I rowsort
SELECT 2 * - + 90 AS col1
----
-180

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6382
SELECT CAST( 53 AS SIGNED ) * 8 * 18
----
7632

skipif mysql # not compatible
query I rowsort label-6382
SELECT CAST ( 53 AS INTEGER ) * 8 * 18
----
7632

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6384
SELECT DISTINCT 92 - - COUNT( * ) AS col1
----
93

skipif mysql # not compatible
query I rowsort label-6384
SELECT DISTINCT 92 - - COUNT ( * ) AS col1
----
93

query I rowsort
SELECT DISTINCT - - 30 - + - 4 AS col2
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-6386
SELECT ALL + - 67 * + - SUM( ALL + ( + 23 ) )
----
1541

skipif mysql # not compatible
query I rowsort label-6386
SELECT ALL + - 67 * + - SUM ( ALL + ( + 23 ) )
----
1541

onlyif mysql # aggregate syntax: 
query I rowsort label-6387
SELECT CASE + COUNT( * ) WHEN - - 93 THEN COALESCE ( COALESCE ( COUNT( * ), 28 ), + 78 ) WHEN 28 * - 59 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6387
SELECT CASE + COUNT ( * ) WHEN - - 93 THEN COALESCE ( COALESCE ( COUNT ( * ), 28 ), + 78 ) WHEN 28 * - 59 THEN NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6388
SELECT ALL - + NULLIF ( + 75, - 42 ) / - CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6388
SELECT ALL - + NULLIF ( + 75, - 42 ) / - CAST ( NULL AS INTEGER ) col2
----
NULL

query I rowsort
SELECT 25 + - 77 + + 74 col1
----
22

query I rowsort
SELECT - ( NULLIF ( - 72, 57 ) ) * - 93
----
-6696

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6391
SELECT - 51 + - CAST( NULL AS DECIMAL ) + - COUNT( * ) + - COUNT( 43 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6391
SELECT - 51 + - CAST ( NULL AS REAL ) + - COUNT ( * ) + - COUNT ( 43 ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT - + 25 * + + NULLIF ( - 37, + 9 )
----
925

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

skipif mysql # not compatible
query I rowsort label-6393
SELECT - 65 + + ( + COUNT ( * ) ) + 8 AS col2
----
-56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6394
SELECT ALL NULLIF ( + 40, + - COUNT( * ) ) * CAST( COUNT( * ) + 94 AS SIGNED ) AS col2
----
3800

skipif mysql # not compatible
query I rowsort label-6394
SELECT ALL NULLIF ( + 40, + - COUNT ( * ) ) * CAST ( COUNT ( * ) + 94 AS INTEGER ) AS col2
----
3800

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6396
SELECT DISTINCT - - MAX( DISTINCT + + 28 ) * - - COUNT( * ) * 64
----
1792

skipif mysql # not compatible
query I rowsort label-6396
SELECT DISTINCT - - MAX ( DISTINCT + + 28 ) * - - COUNT ( * ) * 64
----
1792

query I rowsort
SELECT ALL - 0 * 5 * + 24 + 35 AS col0
----
35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6398
SELECT 48 * SUM( NULLIF ( - 43, + 77 ) ) * ( 59 ) + + 41 DIV - CASE COALESCE ( 1, + COUNT( * ), + 11 + 57 * 78 ) WHEN + ( - COUNT( * ) ) * - 78 + - 97 THEN NULL WHEN COUNT( * ) THEN 42 + + 78 ELSE 2 * CAST( + 45 AS SIGNED ) END AS col0
----
-121776

skipif mysql # not compatible
query I rowsort label-6398
SELECT 48 * SUM ( NULLIF ( - 43, + 77 ) ) * ( 59 ) + + 41 / - CASE COALESCE ( 1, + COUNT ( * ), + 11 + 57 * 78 ) WHEN + ( - COUNT ( * ) ) * - 78 + - 97 THEN NULL WHEN COUNT ( * ) THEN 42 + + 78 ELSE 2 * CAST ( + 45 AS INTEGER ) END AS col0
----
-121776

onlyif mysql # DIV for integer division: 
query I rowsort label-6399
SELECT 71 DIV - 83 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6399
SELECT 71 / - 83 AS col1
----
0

query I rowsort
SELECT - 23 * - 34 AS col0
----
782

query I rowsort
SELECT ALL - + 91 * + 84 * - 14 + + ( 32 )
----
107048

query I rowsort
SELECT ALL + + 25 * - ( + 38 ) + + ( 2 ) * - 73 + - 29
----
-1125

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6404
SELECT DISTINCT - COALESCE ( + + 32, - + MAX( DISTINCT - 50 ) + + 26, ( COUNT( * ) ) ) * ( + 81 ) + MIN( 87 + + 13 ) * 71 AS col1
----
4508

skipif mysql # not compatible
query I rowsort label-6404
SELECT DISTINCT - COALESCE ( + + 32, - + MAX ( DISTINCT - 50 ) + + 26, ( COUNT ( * ) ) ) * ( + 81 ) + MIN ( 87 + + 13 ) * 71 AS col1
----
4508

query I rowsort
SELECT DISTINCT 15 * - 67 + - 73
----
-1078

query I rowsort
SELECT DISTINCT 95 * + 79
----
7505

query I rowsort
SELECT ALL 90 * - + ( - 65 ) + - 25 AS col2
----
5825

query I rowsort
SELECT - 3 * + 71 - + 58 AS col2
----
-271

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6409
SELECT DISTINCT + 15 * + 92 DIV COUNT( * ) + 98 AS col2
----
1478

skipif mysql # not compatible
query I rowsort label-6409
SELECT DISTINCT + 15 * + 92 / COUNT ( * ) + 98 AS col2
----
1478

query I rowsort
SELECT + 36 * 52 AS col0
----
1872

onlyif mysql # aggregate syntax: 
query I rowsort label-6411
SELECT ALL + CASE + 88 WHEN - - COUNT( * ) - MAX( - 61 ) THEN + COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-6411
SELECT ALL + CASE + 88 WHEN - - COUNT ( * ) - MAX ( - 61 ) THEN + COUNT ( * ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6412
SELECT DISTINCT - ( 2 ) * + 10 * - 81 * - COUNT( * ) AS col1
----
-1620

skipif mysql # not compatible
query I rowsort label-6412
SELECT DISTINCT - ( 2 ) * + 10 * - 81 * - COUNT ( * ) AS col1
----
-1620

query II rowsort
SELECT ALL + 49 + 77, 31 AS col2
----
126
31

query I rowsort
SELECT - 0 + + 73 + 77 * - 87 * + 60
----
-401867

onlyif mysql # aggregate syntax: 
query I rowsort label-6415
SELECT 13 * + - NULLIF ( + COUNT( * ), + + ( - CASE + COUNT( * ) WHEN 21 * 79 THEN SUM( ALL + 86 ) END ) ) - + 34
----
-47

skipif mysql # not compatible
query I rowsort label-6415
SELECT 13 * + - NULLIF ( + COUNT ( * ), + + ( - CASE + COUNT ( * ) WHEN 21 * 79 THEN SUM ( ALL + 86 ) END ) ) - + 34
----
-47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6416
SELECT + COUNT( ALL 10 ) + + + 64 + - 86 + + 36 * COUNT( * ) DIV + COUNT( * )
----
15

skipif mysql # not compatible
query I rowsort label-6416
SELECT + COUNT ( ALL 10 ) + + + 64 + - 86 + + 36 * COUNT ( * ) / + COUNT ( * )
----
15

onlyif mysql # DIV for integer division: 
query I rowsort label-6417
SELECT + ( + + 58 ) - + ( 64 ) DIV - 88 AS col2
----
58

skipif mysql # not compatible
query I rowsort label-6417
SELECT + ( + + 58 ) - + ( 64 ) / - 88 AS col2
----
58

query I rowsort
SELECT ALL 87 - - + ( + 60 ) + + 55 AS col1
----
202

onlyif mysql # aggregate syntax: 
query I rowsort label-6419
SELECT COUNT( * ) * + 15 + - 58 + ( 45 )
----
2

skipif mysql # not compatible
query I rowsort label-6419
SELECT COUNT ( * ) * + 15 + - 58 + ( 45 )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-6420
SELECT ALL NULLIF ( - COUNT( * ), - 83 + COALESCE ( - 15, 68 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-6420
SELECT ALL NULLIF ( - COUNT ( * ), - 83 + COALESCE ( - 15, 68 ) )
----
-1

query I rowsort
SELECT DISTINCT + 31 - + + 68 + 95
----
58

onlyif mysql # DIV for integer division: 
query I rowsort label-6422
SELECT DISTINCT 81 DIV - 39 AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-6422
SELECT DISTINCT 81 / - 39 AS col0
----
-2

query I rowsort
SELECT + 1 * + 89 + - 21
----
68

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

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

query I rowsort
SELECT ALL + ( + + 45 ) * 79 AS col0
----
3555

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6426
SELECT + 98 + + + 24 + + NULLIF ( - - 68, ( + 32 ) + - COUNT( * ) ) DIV COALESCE ( + NULLIF ( COUNT( * ), 64 * + 6 + 7 ) + + 35 DIV + COUNT( * ), + 50 * - 6 ) col2
----
123

skipif mysql # not compatible
query I rowsort label-6426
SELECT + 98 + + + 24 + + NULLIF ( - - 68, ( + 32 ) + - COUNT ( * ) ) / COALESCE ( + NULLIF ( COUNT ( * ), 64 * + 6 + 7 ) + + 35 / + COUNT ( * ), + 50 * - 6 ) col2
----
123

onlyif mysql # aggregate syntax: 
query I rowsort label-6427
SELECT + COUNT( * ) * - 80 * - + COUNT( * ) - - + 44 AS col1
----
124

skipif mysql # not compatible
query I rowsort label-6427
SELECT + COUNT ( * ) * - 80 * - + COUNT ( * ) - - + 44 AS col1
----
124

query I rowsort
SELECT + 13 * + 93 + + 48 AS col1
----
1257

query II rowsort
SELECT + 83 + 55 AS col2, + 70 AS col0
----
138
70

query I rowsort
SELECT DISTINCT 57 * + 52 col0
----
2964

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6431
SELECT ALL + CASE - 0 WHEN - CAST( NULL AS SIGNED ) THEN NULL ELSE - 50 + COUNT( * ) END * - CASE CASE 15 WHEN 48 + 21 / ( + 22 ) THEN 50 + - 79 ELSE 4 * - 32 END * + 32 WHEN MAX( 35 ) * 22 THEN 41 * - COALESCE ( + 5, 69 ) WHEN - 7 * - 56 THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6431
SELECT ALL + CASE - 0 WHEN - CAST ( NULL AS INTEGER ) THEN NULL ELSE - 50 + COUNT ( * ) END * - CASE CASE 15 WHEN 48 + 21 / ( + 22 ) THEN 50 + - 79 ELSE 4 * - 32 END * + 32 WHEN MAX ( 35 ) * 22 THEN 41 * - COALESCE ( + 5, 69 ) WHEN - 7 * - 56 THEN NULL END AS col1
----
NULL

query II rowsort
SELECT - + 12 + - 74 AS col0, + 85
----
-86
85

onlyif mysql # aggregate syntax: 
query I rowsort label-6433
SELECT ALL - 7 * + 31 + + COUNT( 87 )
----
-216

skipif mysql # not compatible
query I rowsort label-6433
SELECT ALL - 7 * + 31 + + COUNT ( 87 )
----
-216

query I rowsort
SELECT ALL - 37 * - 3 AS col2
----
111

onlyif mysql # aggregate syntax: 
query I rowsort label-6435
SELECT DISTINCT COUNT( * ) * - COUNT( - ( - 48 ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-6435
SELECT DISTINCT COUNT ( * ) * - COUNT ( - ( - 48 ) ) AS col1
----
-1

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

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

query I rowsort
SELECT DISTINCT - 88 + - + 38 + - 19 col0
----
-145

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6438
SELECT DISTINCT - CASE + CAST( - 55 AS SIGNED ) WHEN - - 8 THEN 51 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6438
SELECT DISTINCT - CASE + CAST ( - 55 AS INTEGER ) WHEN - - 8 THEN 51 ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT - 7 + - 57 * - 11
----
620

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6440
SELECT ALL + + 47 DIV 71 + - 87 + - COUNT( * ) + - 61 AS col0
----
-149

skipif mysql # not compatible
query I rowsort label-6440
SELECT ALL + + 47 / 71 + - 87 + - COUNT ( * ) + - 61 AS col0
----
-149

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6441
SELECT ALL + - 48 DIV 77 + - - NULLIF ( COUNT( * ), 37 * 66 + 32 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6441
SELECT ALL + - 48 / 77 + - - NULLIF ( COUNT ( * ), 37 * 66 + 32 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6442
SELECT DISTINCT - + COALESCE ( - - SUM( ( - - 39 ) ), MAX( ALL 23 ) ) * 60
----
-2340

skipif mysql # not compatible
query I rowsort label-6442
SELECT DISTINCT - + COALESCE ( - - SUM ( ( - - 39 ) ), MAX ( ALL 23 ) ) * 60
----
-2340

query I rowsort
SELECT + - 99 + + 73 * - 91
----
-6742

query I rowsort
SELECT - + 36 * + 50
----
-1800

onlyif mysql # aggregate syntax: 
query I rowsort label-6445
SELECT ALL - - 81 * - COUNT( * ) AS col2
----
-81

skipif mysql # not compatible
query I rowsort label-6445
SELECT ALL - - 81 * - COUNT ( * ) AS col2
----
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-6446
SELECT DISTINCT - 66 DIV + COALESCE ( - 70, 25 ) + - 21 AS col2
----
-21

skipif mysql # not compatible
query I rowsort label-6446
SELECT DISTINCT - 66 / + COALESCE ( - 70, 25 ) + - 21 AS col2
----
-21

query I rowsort
SELECT DISTINCT 53 * + 47 * 89 * + 75 AS col1
----
16627425

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6448
SELECT ALL 86 * - NULLIF ( - MIN( ALL - CAST( NULL AS SIGNED ) ), + COUNT( * ) ) + - ( - 53 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6448
SELECT ALL 86 * - NULLIF ( - MIN ( ALL - CAST ( NULL AS INTEGER ) ), + COUNT ( * ) ) + - ( - 53 ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6449
SELECT + 36 * 77 * + + 63 * + 33 + + 50 + NULLIF ( + COUNT( * ) + ( + CAST( + 86 AS SIGNED ) - - 50 * + 45 ), + 47 ) AS col2
----
5765375

skipif mysql # not compatible
query I rowsort label-6449
SELECT + 36 * 77 * + + 63 * + 33 + + 50 + NULLIF ( + COUNT ( * ) + ( + CAST ( + 86 AS INTEGER ) - - 50 * + 45 ), + 47 ) AS col2
----
5765375

query I rowsort
SELECT ALL 55 * + - 13 + - 61 * 74
----
-5229

query I rowsort
SELECT ALL COALESCE ( - 94, 57 * - 64 ) * + - 66 - 19 AS col1
----
6185

query I rowsort
SELECT - 82 * 88 AS col1
----
-7216

onlyif mysql # aggregate syntax: 
query II rowsort label-6453
SELECT COALESCE ( - 26, - COUNT( * ) ) AS col1, 88
----
-26
88

skipif mysql # not compatible
query II rowsort label-6453
SELECT COALESCE ( - 26, - COUNT ( * ) ) AS col1, 88
----
-26
88

query I rowsort
SELECT DISTINCT NULLIF ( + 1, + + 9 + - 73 * - 7 ) * 68 - 71 AS col0
----
-3

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6456
SELECT NULLIF ( + 23, + CAST( + COUNT( * ) AS DECIMAL ) + - 39 ) AS col2
----
23

skipif mysql # not compatible
query I rowsort label-6456
SELECT NULLIF ( + 23, + CAST ( + COUNT ( * ) AS REAL ) + - 39 ) AS col2
----
23

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6457
SELECT CAST( NULL AS DECIMAL ) * + CASE - + 92 WHEN + 22 THEN + 27 WHEN 41 THEN + 33 * CASE 90 WHEN - 12 * - 7 - 19 THEN NULL WHEN - 10 THEN NULL ELSE 70 END + + 70 END + + AVG ( DISTINCT + 12 + + 46 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6457
SELECT CAST ( NULL AS REAL ) * + CASE - + 92 WHEN + 22 THEN + 27 WHEN 41 THEN + 33 * CASE 90 WHEN - 12 * - 7 - 19 THEN NULL WHEN - 10 THEN NULL ELSE 70 END + + 70 END + + AVG ( DISTINCT + 12 + + 46 ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6458
SELECT + ( + 2 ) DIV 98 DIV + 92 * - 61 + 54
----
54

skipif mysql # not compatible
query I rowsort label-6458
SELECT + ( + 2 ) / 98 / + 92 * - 61 + 54
----
54

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6460
SELECT DISTINCT 66 * - - 50 - + 4 + + CASE - 44 WHEN + COUNT( * ) - + 60 * - 60 THEN + 18 * + 92 END * 55 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6460
SELECT DISTINCT 66 * - - 50 - + 4 + + CASE - 44 WHEN + COUNT ( * ) - + 60 * - 60 THEN + 18 * + 92 END * 55 AS col2
----
NULL

query I rowsort
SELECT DISTINCT + COALESCE ( 48, + COALESCE ( 12, 15, 76 * 59 ), + 45 * 74 ) AS col2
----
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6462
SELECT ALL 40 * - 91 * + + 46 * - ( + CASE - 31 WHEN ( + COALESCE ( - 25, 98 * + 67 - - 78 * CAST( NULL AS SIGNED ), - 58 ) ) THEN NULL ELSE + SUM( DISTINCT + 28 ) END )
----
4688320

skipif mysql # not compatible
query I rowsort label-6462
SELECT ALL 40 * - 91 * + + 46 * - ( + CASE - 31 WHEN ( + COALESCE ( - 25, 98 * + 67 - - 78 * CAST ( NULL AS INTEGER ), - 58 ) ) THEN NULL ELSE + SUM ( DISTINCT + 28 ) END )
----
4688320

onlyif mysql # aggregate syntax: 
query I rowsort label-6463
SELECT DISTINCT + 23 * COUNT( * ) * + + COUNT( * ) - + 26 * CASE WHEN NOT 89 <= NULL THEN 29 - - 79 WHEN 86 + 38 * 68 IS NOT NULL THEN NULL END * + 30 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6463
SELECT DISTINCT + 23 * COUNT ( * ) * + + COUNT ( * ) - + 26 * CASE WHEN NOT 89 <= NULL THEN 29 - - 79 WHEN 86 + 38 * 68 IS NOT NULL THEN NULL END * + 30 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6464
SELECT DISTINCT 58 * NULLIF ( - 31, AVG ( + ( - CAST( NULL AS SIGNED ) ) ) )
----
-1798

skipif mysql # not compatible
query I rowsort label-6464
SELECT DISTINCT 58 * NULLIF ( - 31, AVG ( + ( - CAST ( NULL AS INTEGER ) ) ) )
----
-1798

query II rowsort
SELECT DISTINCT 84 AS col1, + 18 + + - 84
----
84
-66

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

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

query I rowsort
SELECT ALL - 55 * - 82 AS col2
----
4510

query I rowsort
SELECT - 10 - 12 AS col2
----
-22

query I rowsort
SELECT - + 22 - 83
----
-105

query I rowsort
SELECT + - 58 * 20
----
-1160

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

skipif mysql # not compatible
query I rowsort label-6471
SELECT - COUNT ( * ) / - 12 AS col0
----
0

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

skipif mysql # not compatible
query I rowsort label-6472
SELECT + - 97 / - 45
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-6473
SELECT + 56 - - MIN( ALL 93 ) + - - 50
----
199

skipif mysql # not compatible
query I rowsort label-6473
SELECT + 56 - - MIN ( ALL 93 ) + - - 50
----
199

query I rowsort
SELECT ALL + 70 * 13 AS col2
----
910

query I rowsort
SELECT DISTINCT - 59 + + 63
----
4

query I rowsort
SELECT - ( - - 13 ) col1
----
-13

query I rowsort
SELECT DISTINCT + 84 + 9 col2
----
93

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

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

query II rowsort
SELECT 77, 96 AS col2
----
77
96

query I rowsort
SELECT + 96 * + 34 * - 38
----
-124032

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6481
SELECT + 36 + - 56 + 5 + - + COALESCE ( + + COUNT( * ), 18, + 78 * 88 ) + COUNT( ALL 38 ) * 54 DIV 8 col0
----
-10

skipif mysql # not compatible
query I rowsort label-6481
SELECT + 36 + - 56 + 5 + - + COALESCE ( + + COUNT ( * ), 18, + 78 * 88 ) + COUNT ( ALL 38 ) * 54 / 8 col0
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-6482
SELECT ALL + COUNT( * ) * + ( - - 36 ) * + NULLIF ( 71, 57 / + 78 ) + 28 AS col1
----
2584

skipif mysql # not compatible
query I rowsort label-6482
SELECT ALL + COUNT ( * ) * + ( - - 36 ) * + NULLIF ( 71, 57 / + 78 ) + 28 AS col1
----
2584

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6484
SELECT + 63 + ( + 20 ) DIV - 1 AS col1
----
43

skipif mysql # not compatible
query I rowsort label-6484
SELECT + 63 + ( + 20 ) / - 1 AS col1
----
43

query I rowsort
SELECT ALL 42 * - 9 * 58
----
-21924

query I rowsort
SELECT ALL + 10 + - 8 * - + 15 AS col0
----
130

onlyif mysql # aggregate syntax: 
query I rowsort label-6487
SELECT + 57 * - COUNT( * ) + - COUNT( * ) - - - 15 AS col1
----
-73

skipif mysql # not compatible
query I rowsort label-6487
SELECT + 57 * - COUNT ( * ) + - COUNT ( * ) - - - 15 AS col1
----
-73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6488
SELECT ALL - NULLIF ( - CAST( 71 AS SIGNED ), - NULLIF ( 44, CASE 41 WHEN + ( - ( - CAST( NULL AS SIGNED ) ) ) * MAX( NULLIF ( + 31, - 76 * + 72 + CASE + 95 WHEN 16 THEN COALESCE ( 65, + 75 * 94 ) END ) ) THEN + COUNT( * ) WHEN 55 THEN ( 13 ) END / + 86 ) ) AS col0
----
71

skipif mysql # not compatible
query I rowsort label-6488
SELECT ALL - NULLIF ( - CAST ( 71 AS INTEGER ), - NULLIF ( 44, CASE 41 WHEN + ( - ( - CAST ( NULL AS INTEGER ) ) ) * MAX ( NULLIF ( + 31, - 76 * + 72 + CASE + 95 WHEN 16 THEN COALESCE ( 65, + 75 * 94 ) END ) ) THEN + COUNT ( * ) WHEN 55 THEN ( 13 ) END / + 86 ) ) AS col0
----
71

onlyif mysql # aggregate syntax: 
query II rowsort label-6489
SELECT ALL - COUNT( * ), + COUNT( DISTINCT + 87 ) * - 29 col2
----
-1
-29

skipif mysql # not compatible
query II rowsort label-6489
SELECT ALL - COUNT ( * ), + COUNT ( DISTINCT + 87 ) * - 29 col2
----
-1
-29

query I rowsort
SELECT ALL 77 - - 91 + - 53 AS col0
----
115

onlyif mysql # aggregate syntax: 
query I rowsort label-6491
SELECT CASE + MAX( ALL - 87 ) WHEN - 99 THEN + + 33 * - - 51 END * + 98
----
NULL

skipif mysql # not compatible
query I rowsort label-6491
SELECT CASE + MAX ( ALL - 87 ) WHEN - 99 THEN + + 33 * - - 51 END * + 98
----
NULL

query I rowsort
SELECT 86 * + 51 * + 1 AS col1
----
4386

query I rowsort
SELECT ALL + 58 * - + 24 * - 18
----
25056

query II rowsort
SELECT + 59 AS col0, - 80 * - - 54 col0
----
59
-4320

query II rowsort
SELECT + 11 AS col2, - 8 + ( - 31 )
----
11
-39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6496
SELECT COUNT( * ) * + 39 DIV - 28 + + 19
----
18

skipif mysql # not compatible
query I rowsort label-6496
SELECT COUNT ( * ) * + 39 / - 28 + + 19
----
18

query I rowsort
SELECT 76 * 89 col2
----
6764

onlyif mysql # DIV for integer division: 
query I rowsort label-6498
SELECT ALL 35 * - - 96 DIV + + 24 AS col0
----
140

skipif mysql # not compatible
query I rowsort label-6498
SELECT ALL 35 * - - 96 / + + 24 AS col0
----
140

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6500
SELECT CAST( - 37 AS SIGNED ) * - 99
----
3663

skipif mysql # not compatible
query I rowsort label-6500
SELECT CAST ( - 37 AS INTEGER ) * - 99
----
3663

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6501
SELECT 1 * + COUNT( * ) * CAST( + 63 AS SIGNED ) * + - 2 AS col1
----
-126

skipif mysql # not compatible
query I rowsort label-6501
SELECT 1 * + COUNT ( * ) * CAST ( + 63 AS INTEGER ) * + - 2 AS col1
----
-126

query I rowsort
SELECT ALL - NULLIF ( - 4, 99 ) AS col2
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-6503
SELECT + 93 * + 10 * - 41 + - COUNT( * )
----
-38131

skipif mysql # not compatible
query I rowsort label-6503
SELECT + 93 * + 10 * - 41 + - COUNT ( * )
----
-38131

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

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

query I rowsort
SELECT 82 + - - 53 AS col2
----
135

query I rowsort
SELECT 87 * - 17 - - 55
----
-1424

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

skipif mysql # not compatible
query I rowsort label-6507
SELECT DISTINCT - COUNT ( ALL - 88 ) AS col2
----
-1

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6509
SELECT ALL - 21 + + COALESCE ( 39, CAST( COUNT( * ) AS SIGNED ), - 33 ) + + 47 * + CAST( ( + CASE - NULLIF ( - 25, + 0 ) WHEN 70 THEN - 9 WHEN 80 THEN COUNT( * ) + - 87 END ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6509
SELECT ALL - 21 + + COALESCE ( 39, CAST ( COUNT ( * ) AS INTEGER ), - 33 ) + + 47 * + CAST ( ( + CASE - NULLIF ( - 25, + 0 ) WHEN 70 THEN - 9 WHEN 80 THEN COUNT ( * ) + - 87 END ) AS INTEGER )
----
NULL

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

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

skipif mysql # not compatible
query I rowsort label-6511
SELECT DISTINCT COUNT ( DISTINCT + 3 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6512
SELECT ALL 84 + + NULLIF ( + - 44, + + COUNT( * ) ) AS col0
----
40

skipif mysql # not compatible
query I rowsort label-6512
SELECT ALL 84 + + NULLIF ( + - 44, + + COUNT ( * ) ) AS col0
----
40

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

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

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

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

query II rowsort
SELECT DISTINCT 76 AS col2, 12 AS col1
----
76
12

query I rowsort
SELECT + 20 * - + 3 + - 8 * - 14 + + ( - 52 ) AS col0
----
0

query II rowsort
SELECT - 54 AS col0, 69
----
-54
69

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

skipif mysql # not compatible
query I rowsort label-6518
SELECT - 3 + + COUNT ( * ) AS col1
----
-2

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

query I rowsort
SELECT 48 * - 71 * + - 91 AS col1
----
310128

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

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

query I rowsort
SELECT ALL 14 * - - 4
----
56

query I rowsort
SELECT NULLIF ( + 83, + 68 ) * - 40 AS col0
----
-3320

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6524
SELECT ALL 77 - + - 77 DIV - 65 + - COUNT( * ) * - 94 * 89 * - 5
----
-41754

skipif mysql # not compatible
query I rowsort label-6524
SELECT ALL 77 - + - 77 / - 65 + - COUNT ( * ) * - 94 * 89 * - 5
----
-41754

onlyif mysql # aggregate syntax: 
query I rowsort label-6525
SELECT DISTINCT 36 * SUM( DISTINCT - + ( 15 ) ) AS col1
----
-540

skipif mysql # not compatible
query I rowsort label-6525
SELECT DISTINCT 36 * SUM ( DISTINCT - + ( 15 ) ) AS col1
----
-540

onlyif mysql # aggregate syntax: 
query I rowsort label-6526
SELECT 50 - ( CASE + 3 WHEN + 25 THEN - ( 96 ) ELSE NULL END ) + 67 * COALESCE ( AVG ( ALL 49 ), - 14, CASE + ( + 86 ) WHEN - 86 * COUNT( * ) THEN NULL ELSE 58 END * - 68 + NULLIF ( - 47, ( COUNT( ALL 34 ) ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6526
SELECT 50 - ( CASE + 3 WHEN + 25 THEN - ( 96 ) ELSE NULL END ) + 67 * COALESCE ( AVG ( ALL 49 ), - 14, CASE + ( + 86 ) WHEN - 86 * COUNT ( * ) THEN NULL ELSE 58 END * - 68 + NULLIF ( - 47, ( COUNT ( ALL 34 ) ) ) )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6527
SELECT 86 DIV + - 98, - COUNT( ALL + 90 ) + + 38 AS col0
----
0
37

skipif mysql # not compatible
query II rowsort label-6527
SELECT 86 / + - 98, - COUNT ( ALL + 90 ) + + 38 AS col0
----
0
37

query I rowsort
SELECT ALL 71 * - 66 col2
----
-4686

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6529
SELECT CASE 78 WHEN - CAST( + 47 AS SIGNED ) THEN 51 * + 76 + 7 - - 33 * - ( ( - MAX( ALL + 88 ) ) * 57 ) WHEN 7 THEN NULL END * + 82
----
NULL

skipif mysql # not compatible
query I rowsort label-6529
SELECT CASE 78 WHEN - CAST ( + 47 AS INTEGER ) THEN 51 * + 76 + 7 - - 33 * - ( ( - MAX ( ALL + 88 ) ) * 57 ) WHEN 7 THEN NULL END * + 82
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6530
SELECT 76 DIV 41 * + - 25 AS col0
----
-25

skipif mysql # not compatible
query I rowsort label-6530
SELECT 76 / 41 * + - 25 AS col0
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-6531
SELECT SUM( ALL + ( + + COALESCE ( - - 28, + 48 ) ) ) col0
----
28

skipif mysql # not compatible
query I rowsort label-6531
SELECT SUM ( ALL + ( + + COALESCE ( - - 28, + 48 ) ) ) col0
----
28

onlyif mysql # DIV for integer division: 
query I rowsort label-6532
SELECT + 89 DIV - - 57 + - + 86 + + 32 AS col0
----
-53

skipif mysql # not compatible
query I rowsort label-6532
SELECT + 89 / - - 57 + - + 86 + + 32 AS col0
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-6533
SELECT MAX( DISTINCT + 62 ) AS col0
----
62

skipif mysql # not compatible
query I rowsort label-6533
SELECT MAX ( DISTINCT + 62 ) AS col0
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-6534
SELECT MAX( - 19 )
----
-19

skipif mysql # not compatible
query I rowsort label-6534
SELECT MAX ( - 19 )
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-6535
SELECT ALL MAX( + 68 ) + - 85
----
-17

skipif mysql # not compatible
query I rowsort label-6535
SELECT ALL MAX ( + 68 ) + - 85
----
-17

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6537
SELECT ALL - CASE 6 WHEN - + 99 THEN 41 WHEN + - 76 * - - 7 * - 2 * - 50 THEN NULL ELSE NULL END + + COUNT( * ) * + ( - COUNT( * ) * - COALESCE ( 56, ( 76 ) * 10, 92 - 88 ) + 56 * - 51 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6537
SELECT ALL - CASE 6 WHEN - + 99 THEN 41 WHEN + - 76 * - - 7 * - 2 * - 50 THEN NULL ELSE NULL END + + COUNT ( * ) * + ( - COUNT ( * ) * - COALESCE ( 56, ( 76 ) * 10, 92 - 88 ) + 56 * - 51 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6538
SELECT ALL + SUM( - 41 ) + - + NULLIF ( - 5, ( 87 ) ) AS col0
----
-36

skipif mysql # not compatible
query I rowsort label-6538
SELECT ALL + SUM ( - 41 ) + - + NULLIF ( - 5, ( 87 ) ) AS col0
----
-36

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

skipif mysql # not compatible
query I rowsort label-6539
SELECT MAX ( - CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT DISTINCT + - 16 * + 61 * - - 84 col1
----
-81984

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6541
SELECT DISTINCT CAST( + 35 AS SIGNED ) + - 69 + - 68 AS col2
----
-102

skipif mysql # not compatible
query I rowsort label-6541
SELECT DISTINCT CAST ( + 35 AS INTEGER ) + - 69 + - 68 AS col2
----
-102

onlyif mysql # aggregate syntax: 
query I rowsort label-6542
SELECT ALL - CASE WHEN - 78 > + COUNT( * ) * - 67 OR - 60 >= - 75 * SUM( DISTINCT - 76 ) + 5 THEN - 57 ELSE - 56 END + + COUNT( * )
----
57

skipif mysql # not compatible
query I rowsort label-6542
SELECT ALL - CASE WHEN - 78 > + COUNT ( * ) * - 67 OR - 60 >= - 75 * SUM ( DISTINCT - 76 ) + 5 THEN - 57 ELSE - 56 END + + COUNT ( * )
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-6543
SELECT COUNT( * ) * - 96 + - 17
----
-113

skipif mysql # not compatible
query I rowsort label-6543
SELECT COUNT ( * ) * - 96 + - 17
----
-113

query II rowsort
SELECT ALL 8 + - - 68, - 40 AS col0
----
76
-40

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

query II rowsort
SELECT ALL - 9 + + 13 * 66, - 5 AS col0
----
849
-5

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6547
SELECT + NULLIF ( + 58, - + 59 + - 41 ) - + 9 + - - CAST( NULL AS DECIMAL ) * - 7 * - 79 + + 79 * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-6547
SELECT + NULLIF ( + 58, - + 59 + - 41 ) - + 9 + - - CAST ( NULL AS REAL ) * - 7 * - 79 + + 79 * COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6548
SELECT - 74 * + 59 + + COUNT( * ) - - 4 * + 78 col0, 39
----
-4053
39

skipif mysql # not compatible
query II rowsort label-6548
SELECT - 74 * + 59 + + COUNT ( * ) - - 4 * + 78 col0, 39
----
-4053
39

onlyif mysql # aggregate syntax: 
query I rowsort label-6549
SELECT DISTINCT - 76 + + - COUNT( * ) - - 65
----
-12

skipif mysql # not compatible
query I rowsort label-6549
SELECT DISTINCT - 76 + + - COUNT ( * ) - - 65
----
-12

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6552
SELECT DISTINCT - 26 * + 35 + ( 71 ) + - 90 + + COUNT( * )
----
-928

skipif mysql # not compatible
query I rowsort label-6552
SELECT DISTINCT - 26 * + 35 + ( 71 ) + - 90 + + COUNT ( * )
----
-928

query II rowsort
SELECT ALL - 82 - - 91 AS col1, 46 AS col0
----
9
46

onlyif mysql # aggregate syntax: 
query I rowsort label-6554
SELECT DISTINCT + COUNT( * ) * 72 * 76 AS col1
----
5472

skipif mysql # not compatible
query I rowsort label-6554
SELECT DISTINCT + COUNT ( * ) * 72 * 76 AS col1
----
5472

onlyif mysql # aggregate syntax: 
query II rowsort label-6555
SELECT - COUNT( * ) + + 13 col0, - 1 + 3 col2
----
12
2

skipif mysql # not compatible
query II rowsort label-6555
SELECT - COUNT ( * ) + + 13 col0, - 1 + 3 col2
----
12
2

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

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

skipif mysql # not compatible
query II rowsort label-6557
SELECT 57, - COUNT ( * ) AS col0
----
57
-1

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6559
SELECT - ( COUNT( * ) ) + + + 26 * + - 48 - - 70 DIV + ( - 54 ) AS col1
----
-1250

skipif mysql # not compatible
query I rowsort label-6559
SELECT - ( COUNT ( * ) ) + + + 26 * + - 48 - - 70 / + ( - 54 ) AS col1
----
-1250

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

skipif mysql # not compatible
query I rowsort label-6560
SELECT DISTINCT COUNT ( - + 46 ) AS col2
----
1

query I rowsort
SELECT ALL - 58 * - 7
----
406

query I rowsort
SELECT ALL 17 * - + 8 col1
----
-136

query I rowsort
SELECT + 23 * - - 20 * + 1 col0
----
460

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6564
SELECT + 85 DIV - 4 + + ( - COUNT( * ) ) + + - 23 + - COUNT( * ) + - ( + + 60 ) * - 42 * 71
----
178874

skipif mysql # not compatible
query I rowsort label-6564
SELECT + 85 / - 4 + + ( - COUNT ( * ) ) + + - 23 + - COUNT ( * ) + - ( + + 60 ) * - 42 * 71
----
178874

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6565
SELECT ALL CAST( NULL AS SIGNED ) * - 61 + 16 + - COUNT( * ), - 5 * + + 32 - CAST( NULL AS SIGNED ) AS col2
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-6565
SELECT ALL CAST ( NULL AS INTEGER ) * - 61 + 16 + - COUNT ( * ), - 5 * + + 32 - CAST ( NULL AS INTEGER ) AS col2
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6566
SELECT - 87 + + + COUNT( DISTINCT 62 )
----
-86

skipif mysql # not compatible
query I rowsort label-6566
SELECT - 87 + + + COUNT ( DISTINCT 62 )
----
-86

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6568
SELECT CASE 44 WHEN - - 36 * + 76 - + 44 THEN - CASE + 75 WHEN 19 THEN NULL WHEN COUNT( * ) THEN 5 + 45 * + AVG ( - 17 ) END + 40 * 34 ELSE - ( - 56 ) END AS col0
----
56

skipif mysql # not compatible
query I rowsort label-6568
SELECT CASE 44 WHEN - - 36 * + 76 - + 44 THEN - CASE + 75 WHEN 19 THEN NULL WHEN COUNT ( * ) THEN 5 + 45 * + AVG ( - 17 ) END + 40 * 34 ELSE - ( - 56 ) END AS col0
----
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6569
SELECT DISTINCT + 31 * 94 * - + CAST( 33 AS SIGNED ) * - - 74 * 1 + + ( - COUNT( * ) ) + + 99
----
-7115890

skipif mysql # not compatible
query I rowsort label-6569
SELECT DISTINCT + 31 * 94 * - + CAST ( 33 AS INTEGER ) * - - 74 * 1 + + ( - COUNT ( * ) ) + + 99
----
-7115890

query II rowsort
SELECT ALL + 65, - 79 AS col2
----
65
-79

query I rowsort
SELECT + 33 - - 18 AS col0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-6572
SELECT DISTINCT - + 35 * + SUM( DISTINCT - 34 ) * - 72 + - - COUNT( NULLIF ( - 19, 95 * - 58 ) ) + 88 + 62
----
-85529

skipif mysql # not compatible
query I rowsort label-6572
SELECT DISTINCT - + 35 * + SUM ( DISTINCT - 34 ) * - 72 + - - COUNT ( NULLIF ( - 19, 95 * - 58 ) ) + 88 + 62
----
-85529

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6573
SELECT + CAST( NULL AS SIGNED ) + + 96 + - 98 - - + 79 * 1 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6573
SELECT + CAST ( NULL AS INTEGER ) + + 96 + - 98 - - + 79 * 1 AS col0
----
NULL

query II rowsort
SELECT ALL + 42 AS col2, - 38 col0
----
42
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-6575
SELECT NULLIF ( - 94, + 2 * - MAX( - 13 ) * 33 )
----
-94

skipif mysql # not compatible
query I rowsort label-6575
SELECT NULLIF ( - 94, + 2 * - MAX ( - 13 ) * 33 )
----
-94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6576
SELECT - 14 * - 27 + + COALESCE ( - 81, + + 30, + 4 * CAST( - 22 AS SIGNED ) )
----
297

skipif mysql # not compatible
query I rowsort label-6576
SELECT - 14 * - 27 + + COALESCE ( - 81, + + 30, + 4 * CAST ( - 22 AS INTEGER ) )
----
297

query I rowsort
SELECT COALESCE ( + 58, - - 5 * - 72 * - 61 ) AS col2
----
58

query I rowsort
SELECT + - NULLIF ( - 87, - + 47 + 49 / - 61 * 56 * - 77 ) + + + 32 AS col2
----
119

onlyif mysql # aggregate syntax: 
query I rowsort label-6579
SELECT + + 58 + SUM( ( - - 87 ) ) AS col0
----
145

skipif mysql # not compatible
query I rowsort label-6579
SELECT + + 58 + SUM ( ( - - 87 ) ) AS col0
----
145

query I rowsort
SELECT ALL + 22 * - 30 * - - 79 + 55 - + - 7 AS col1
----
-52078

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6581
SELECT - - 57 * - MAX( - + 36 ) * 98 + + + CAST( NULL AS SIGNED ) - - 4 - + + 60 + - MIN( DISTINCT 62 ) + + COALESCE ( - 30, 68 ) + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6581
SELECT - - 57 * - MAX ( - + 36 ) * 98 + + + CAST ( NULL AS INTEGER ) - - 4 - + + 60 + - MIN ( DISTINCT 62 ) + + COALESCE ( - 30, 68 ) + COUNT ( * ) AS col1
----
NULL

query I rowsort
SELECT + + 8 * - - 57 AS col0
----
456

query I rowsort
SELECT ALL - + ( 16 ) * 33
----
-528

query I rowsort
SELECT + 38 + - 21 * + 2 + 58
----
54

query I rowsort
SELECT ALL 8 * - CASE - 44 WHEN + 22 * + 93 / + 29 - + + 71 THEN NULL WHEN - - 15 THEN - 56 END - 60 AS col0
----
NULL

query II rowsort
SELECT DISTINCT + 53 * - - 78 * - 53 AS col0, - 55 col1
----
-219102
-55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6587
SELECT + CAST( + 43 AS SIGNED ) * - + 50
----
-2150

skipif mysql # not compatible
query I rowsort label-6587
SELECT + CAST ( + 43 AS INTEGER ) * - + 50
----
-2150

query I rowsort
SELECT - 65 + - 78 AS col1
----
-143

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6589
SELECT - - COUNT( * ) DIV - 11 * + 83 + + + 76 AS col1
----
76

skipif mysql # not compatible
query I rowsort label-6589
SELECT - - COUNT ( * ) / - 11 * + 83 + + + 76 AS col1
----
76

query I rowsort
SELECT - + 51 + + + 6 AS col0
----
-45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6591
SELECT + - 40 + COALESCE ( 54, - CAST( + + COUNT( * ) AS SIGNED ) ) - + - 3
----
17

skipif mysql # not compatible
query I rowsort label-6591
SELECT + - 40 + COALESCE ( 54, - CAST ( + + COUNT ( * ) AS INTEGER ) ) - + - 3
----
17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6592
SELECT - 36 * + - CAST( 81 AS SIGNED )
----
2916

skipif mysql # not compatible
query I rowsort label-6592
SELECT - 36 * + - CAST ( 81 AS INTEGER )
----
2916

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6593
SELECT - SUM( DISTINCT + 72 ) DIV ( - - 18 ) AS col2
----
-4

skipif mysql # not compatible
query I rowsort label-6593
SELECT - SUM ( DISTINCT + 72 ) / ( - - 18 ) AS col2
----
-4

query I rowsort
SELECT ALL + 72 * - + 54
----
-3888

onlyif mysql # DIV for integer division: 
query I rowsort label-6595
SELECT ALL + 0 DIV + 68 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6595
SELECT ALL + 0 / + 68 AS col1
----
0

query I rowsort
SELECT DISTINCT ( COALESCE ( - CASE + + 92 WHEN + + 91 THEN - - COALESCE ( - 40, + + 59, - 23 ) ELSE - 81 END, + 64 * - 39 ) )
----
81

query I rowsort
SELECT - 46 - 25 - + 51 * - 28 AS col1
----
1357

onlyif mysql # aggregate syntax: 
query I rowsort label-6598
SELECT + NULLIF ( 7, - + 69 + - NULLIF ( 19, - + 38 ) + + ( - MIN( 20 ) ) + - 44 * 30 )
----
7

skipif mysql # not compatible
query I rowsort label-6598
SELECT + NULLIF ( 7, - + 69 + - NULLIF ( 19, - + 38 ) + + ( - MIN ( 20 ) ) + - 44 * 30 )
----
7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6599
SELECT 28 DIV + 74 + + 22 - + COUNT( * )
----
21

skipif mysql # not compatible
query I rowsort label-6599
SELECT 28 / + 74 + + 22 - + COUNT ( * )
----
21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6600
SELECT DISTINCT - NULLIF ( 30, + 19 * + 52 + COUNT( * ) ) DIV + 83 + - 49
----
-49

skipif mysql # not compatible
query I rowsort label-6600
SELECT DISTINCT - NULLIF ( 30, + 19 * + 52 + COUNT ( * ) ) / + 83 + - 49
----
-49

onlyif mysql # aggregate syntax: 
query II rowsort label-6601
SELECT + 68 - + NULLIF ( COUNT( * ), - + 65 ) AS col0, 39
----
67
39

skipif mysql # not compatible
query II rowsort label-6601
SELECT + 68 - + NULLIF ( COUNT ( * ), - + 65 ) AS col0, 39
----
67
39

onlyif mysql # aggregate syntax: 
query I rowsort label-6602
SELECT + - MIN( DISTINCT 36 ) AS col0
----
-36

skipif mysql # not compatible
query I rowsort label-6602
SELECT + - MIN ( DISTINCT 36 ) AS col0
----
-36

onlyif mysql # DIV for integer division: 
query I rowsort label-6603
SELECT 85 DIV - 17 - - 69
----
64

skipif mysql # not compatible
query I rowsort label-6603
SELECT 85 / - 17 - - 69
----
64

onlyif mysql # DIV for integer division: 
query II rowsort label-6604
SELECT + + ( - + 62 ) AS col1, + 44 DIV 33 AS col2
----
-62
1

skipif mysql # not compatible
query II rowsort label-6604
SELECT + + ( - + 62 ) AS col1, + 44 / 33 AS col2
----
-62
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6605
SELECT CAST( + 70 AS SIGNED ) + - - ( + 86 ) * - 93 * - - 90 col0
----
-719750

skipif mysql # not compatible
query I rowsort label-6605
SELECT CAST ( + 70 AS INTEGER ) + - - ( + 86 ) * - 93 * - - 90 col0
----
-719750

query I rowsort
SELECT DISTINCT - - 12 col0
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-6607
SELECT ALL COUNT( * ) - COUNT( * ) * - + 67
----
68

skipif mysql # not compatible
query I rowsort label-6607
SELECT ALL COUNT ( * ) - COUNT ( * ) * - + 67
----
68

query I rowsort
SELECT ALL + 18 * + 29
----
522

query I rowsort
SELECT DISTINCT + ( - 84 ) - - 76
----
-8

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6611
SELECT + ( + 37 ) - - + COALESCE ( - 96, + + 73, + + 67 + + 66 + - 89 * - 51 DIV 46 ) * + 97
----
-9275

skipif mysql # not compatible
query I rowsort label-6611
SELECT + ( + 37 ) - - + COALESCE ( - 96, + + 73, + + 67 + + 66 + - 89 * - 51 / 46 ) * + 97
----
-9275

query I rowsort
SELECT + 63 * - - 68 AS col1
----
4284

query I rowsort
SELECT 26 - + 26 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6614
SELECT - SUM( + 82 ) AS col2
----
-82

skipif mysql # not compatible
query I rowsort label-6614
SELECT - SUM ( + 82 ) AS col2
----
-82

query I rowsort
SELECT + 30 * - 35 AS col2
----
-1050

query I rowsort
SELECT ALL 18 + 68 + + 75
----
161

onlyif mysql # aggregate syntax: 
query II rowsort label-6617
SELECT DISTINCT 92, CASE - - 74 WHEN + + ( + ( 60 ) ) THEN + + 83 * + COUNT( * ) ELSE NULL END * - - CASE + 22 WHEN 19 THEN - 75 * 10 + - 55 WHEN 93 THEN + 15 * + 80 ELSE NULL END AS col2
----
92
NULL

skipif mysql # not compatible
query II rowsort label-6617
SELECT DISTINCT 92, CASE - - 74 WHEN + + ( + ( 60 ) ) THEN + + 83 * + COUNT ( * ) ELSE NULL END * - - CASE + 22 WHEN 19 THEN - 75 * 10 + - 55 WHEN 93 THEN + 15 * + 80 ELSE NULL END AS col2
----
92
NULL

query I rowsort
SELECT DISTINCT - 95 + 48 * 30
----
1345

query I rowsort
SELECT ALL + 40 + + NULLIF ( - - 55, 26 * - + 75 )
----
95

query I rowsort
SELECT DISTINCT 71 + + 9
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-6621
SELECT CASE 55 WHEN 71 + - MIN( + 75 ) THEN 58 ELSE - - MIN( DISTINCT + + 98 ) * 46 END - 89 + 59 * 82
----
9257

skipif mysql # not compatible
query I rowsort label-6621
SELECT CASE 55 WHEN 71 + - MIN ( + 75 ) THEN 58 ELSE - - MIN ( DISTINCT + + 98 ) * 46 END - 89 + 59 * 82
----
9257

query II rowsort
SELECT 69 col2, 61 col0
----
69
61

query I rowsort
SELECT ALL 64 + + 63 AS col1
----
127

query I rowsort
SELECT 75 + - 59 AS col2
----
16

query I rowsort
SELECT 95 + - 29 AS col1
----
66

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6626
SELECT DISTINCT + ( + CAST( NULL AS DECIMAL ) ) / 81 + - 7 + + - 62 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6626
SELECT DISTINCT + ( + CAST ( NULL AS REAL ) ) / 81 + - 7 + + - 62 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6627
SELECT DISTINCT - MIN( DISTINCT + + 83 ) + - - 58 col2, - 90
----
-25
-90

skipif mysql # not compatible
query II rowsort label-6627
SELECT DISTINCT - MIN ( DISTINCT + + 83 ) + - - 58 col2, - 90
----
-25
-90

query I rowsort
SELECT 10 * - 24
----
-240

query I rowsort
SELECT ALL + 33 * - 65
----
-2145

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6631
SELECT - NULLIF ( 72, + 60 + - + ( - 2 ) + - COUNT( * ) ) DIV - 93 + + - NULLIF ( - 59, 97 * MAX( - 87 + 35 ) ) * + 27
----
1593

skipif mysql # not compatible
query I rowsort label-6631
SELECT - NULLIF ( 72, + 60 + - + ( - 2 ) + - COUNT ( * ) ) / - 93 + + - NULLIF ( - 59, 97 * MAX ( - 87 + 35 ) ) * + 27
----
1593

query I rowsort
SELECT ( 25 ) * + 59 AS col0
----
1475

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

skipif mysql # not compatible
query I rowsort label-6633
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) * + 41 + + - 44
----
NULL

query II rowsort
SELECT DISTINCT - 51 AS col0, - 60
----
-51
-60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6635
SELECT DISTINCT + + 38 * - + CAST( NULL AS SIGNED ) * 48 * - + MAX( ALL + - 5 ) * - - 91 * - 82 + + 14 * 87
----
NULL

skipif mysql # not compatible
query I rowsort label-6635
SELECT DISTINCT + + 38 * - + CAST ( NULL AS INTEGER ) * 48 * - + MAX ( ALL + - 5 ) * - - 91 * - 82 + + 14 * 87
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6636
SELECT 69 + - 30 + CAST( 21 AS SIGNED ) * + 19 AS col1, - 29 DIV + 45 * + 85 + 77 + + 65 + NULLIF ( 46 - + 42, 54 ) AS col2
----
438
146

skipif mysql # not compatible
query II rowsort label-6636
SELECT 69 + - 30 + CAST ( 21 AS INTEGER ) * + 19 AS col1, - 29 / + 45 * + 85 + 77 + + 65 + NULLIF ( 46 - + 42, 54 ) AS col2
----
438
146

onlyif mysql # DIV for integer division: 
query I rowsort label-6637
SELECT - 11 DIV + + 11
----
-1

skipif mysql # not compatible
query I rowsort label-6637
SELECT - 11 / + + 11
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6638
SELECT + 20 + - 79 + COUNT( * ) * + + CASE - 95 WHEN + 41 THEN NULL ELSE + 16 + COUNT( * ) END col0
----
-42

skipif mysql # not compatible
query I rowsort label-6638
SELECT + 20 + - 79 + COUNT ( * ) * + + CASE - 95 WHEN + 41 THEN NULL ELSE + 16 + COUNT ( * ) END col0
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-6639
SELECT - MAX( 28 ) * NULLIF ( - COUNT( * ), + - 46 ) + 60 + 22 * + ( + 3 ) * + 44
----
2992

skipif mysql # not compatible
query I rowsort label-6639
SELECT - MAX ( 28 ) * NULLIF ( - COUNT ( * ), + - 46 ) + 60 + 22 * + ( + 3 ) * + 44
----
2992

onlyif mysql # aggregate syntax: 
query I rowsort label-6640
SELECT NULLIF ( - 71, COUNT( * ) ) * - - ( COUNT( DISTINCT + NULLIF ( 95, - 60 / - 70 ) ) ) AS col0
----
-71

skipif mysql # not compatible
query I rowsort label-6640
SELECT NULLIF ( - 71, COUNT ( * ) ) * - - ( COUNT ( DISTINCT + NULLIF ( 95, - 60 / - 70 ) ) ) AS col0
----
-71

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

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

query I rowsort
SELECT 38 - - + 86
----
124

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6643
SELECT 40 * + - CAST( + 9 AS SIGNED ) + - MIN( 55 ) * 45
----
-2835

skipif mysql # not compatible
query I rowsort label-6643
SELECT 40 * + - CAST ( + 9 AS INTEGER ) + - MIN ( 55 ) * 45
----
-2835

query I rowsort
SELECT ALL - ( + - 86 ) + 66
----
152

onlyif mysql # DIV for integer division: 
query I rowsort label-6645
SELECT 87 DIV - 84 col2
----
-1

skipif mysql # not compatible
query I rowsort label-6645
SELECT 87 / - 84 col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6646
SELECT ALL 53 + - COUNT( * ) * + - 80 + + - 36
----
97

skipif mysql # not compatible
query I rowsort label-6646
SELECT ALL 53 + - COUNT ( * ) * + - 80 + + - 36
----
97

query I rowsort
SELECT + 79 * 47 + - 12 + - + 27 AS col0
----
3674

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6649
SELECT 86 + + COALESCE ( - + 75, 55 * - 31 - COALESCE ( + CAST( NULL AS SIGNED ), - 82 DIV COUNT( * ) * 76 DIV COUNT( * ) * + ( + 60 * - 73 ) + - 11 * 54 + + 56 ), + 46 DIV 54 + + 69 )
----
11

skipif mysql # not compatible
query I rowsort label-6649
SELECT 86 + + COALESCE ( - + 75, 55 * - 31 - COALESCE ( + CAST ( NULL AS INTEGER ), - 82 / COUNT ( * ) * 76 / COUNT ( * ) * + ( + 60 * - 73 ) + - 11 * 54 + + 56 ), + 46 / 54 + + 69 )
----
11

query I rowsort
SELECT DISTINCT 30 + + 62 AS col1
----
92

onlyif mysql # aggregate syntax: 
query II rowsort label-6651
SELECT - 97 AS col2, 84 - COUNT( * ) * 49 + - 73
----
-97
-38

skipif mysql # not compatible
query II rowsort label-6651
SELECT - 97 AS col2, 84 - COUNT ( * ) * 49 + - 73
----
-97
-38

query II rowsort
SELECT 41, 98 AS col0
----
41
98

query I rowsort
SELECT ALL 65 + + - 39 AS col1
----
26

query II rowsort
SELECT 46 col2, - 65 * 8 AS col0
----
46
-520

query I rowsort
SELECT 21 + + 35 * - - 60 AS col0
----
2121

query II rowsort
SELECT ALL 8 AS col0, + 92 + - + 75 AS col1
----
8
17

query I rowsort
SELECT 91 + - 25
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-6658
SELECT MAX( - 26 ) * + 94 * - - 11
----
-26884

skipif mysql # not compatible
query I rowsort label-6658
SELECT MAX ( - 26 ) * + 94 * - - 11
----
-26884

query I rowsort
SELECT ALL + 10 + - + 30 AS col1
----
-20

query I rowsort
SELECT ALL ( - + 71 ) - 30 + + 30 AS col2
----
-71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6661
SELECT ( + ( + 39 ) ) * + CAST( - 29 AS SIGNED ) AS col2
----
-1131

skipif mysql # not compatible
query I rowsort label-6661
SELECT ( + ( + 39 ) ) * + CAST ( - 29 AS INTEGER ) AS col2
----
-1131

onlyif mysql # aggregate syntax: 
query I rowsort label-6662
SELECT DISTINCT COALESCE ( + ( - 77 ), + 98 * + 37 + + COUNT( * ) ) * + 0 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6662
SELECT DISTINCT COALESCE ( + ( - 77 ), + 98 * + 37 + + COUNT ( * ) ) * + 0 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-6663
SELECT - COUNT( * ), - 32 AS col0, - CAST( + 72 AS SIGNED ) AS col2
----
-1
-32
-72

skipif mysql # not compatible
query III rowsort label-6663
SELECT - COUNT ( * ), - 32 AS col0, - CAST ( + 72 AS INTEGER ) AS col2
----
-1
-32
-72

query I rowsort
SELECT + 87 + 56
----
143

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6665
SELECT ALL ( - + SUM( ALL + - 36 ) ) - + 28 DIV + COUNT( * ) * + COUNT( * ) AS col2
----
8

skipif mysql # not compatible
query I rowsort label-6665
SELECT ALL ( - + SUM ( ALL + - 36 ) ) - + 28 / + COUNT ( * ) * + COUNT ( * ) AS col2
----
8

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6666
SELECT + 57 * 29 AS col1, 47 * + ( - CAST( NULL AS SIGNED ) ) AS col1
----
1653
NULL

skipif mysql # not compatible
query II rowsort label-6666
SELECT + 57 * 29 AS col1, 47 * + ( - CAST ( NULL AS INTEGER ) ) AS col1
----
1653
NULL

query I rowsort
SELECT 47 * 65 - + ( + 28 ) * + - 99 AS col0
----
5827

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

skipif mysql # not compatible
query I rowsort label-6668
SELECT DISTINCT + COUNT ( DISTINCT + 78 ) AS col0
----
1

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

query I rowsort
SELECT ALL - 10 * + 60
----
-600

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6671
SELECT - - 4 * - 71 + + COUNT( * ) DIV + + NULLIF ( + COALESCE ( + 77, - ( - 39 ) ), + AVG ( DISTINCT + 51 ) ) AS col2
----
-284

skipif mysql # not compatible
query I rowsort label-6671
SELECT - - 4 * - 71 + + COUNT ( * ) / + + NULLIF ( + COALESCE ( + 77, - ( - 39 ) ), + AVG ( DISTINCT + 51 ) ) AS col2
----
-284

onlyif mysql # aggregate syntax: 
query II rowsort label-6672
SELECT ALL 74 * - + COUNT( * ) AS col2, + ( - 31 )
----
-74
-31

skipif mysql # not compatible
query II rowsort label-6672
SELECT ALL 74 * - + COUNT ( * ) AS col2, + ( - 31 )
----
-74
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-6673
SELECT + + COUNT( * ) * - - 66 * - 75
----
-4950

skipif mysql # not compatible
query I rowsort label-6673
SELECT + + COUNT ( * ) * - - 66 * - 75
----
-4950

query I rowsort
SELECT - 18 * - 83 * + 90 * 48
----
6454080

query I rowsort
SELECT DISTINCT + 7 * - 86
----
-602

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6676
SELECT - 31 * - 85 - SUM( + 13 ) + 10 DIV - + 50 AS col0, 59 + - - 84 col1
----
2622
143

skipif mysql # not compatible
query II rowsort label-6676
SELECT - 31 * - 85 - SUM ( + 13 ) + 10 / - + 50 AS col0, 59 + - - 84 col1
----
2622
143

query I rowsort
SELECT ALL + + 60 * 63 * + 56 + 52 col1
----
211732

query I rowsort
SELECT - 85 * + + 89
----
-7565

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6679
SELECT ALL - + COUNT( * ) * + 72 + - - CASE - 49 WHEN - 90 * + 80 / + + ( + 43 ) + + - 28 + COUNT( * ) THEN 98 * CAST( + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) AS SIGNED ) + ( + 45 ) WHEN SUM( DISTINCT CASE + COALESCE ( - 41, + 12 ) WHEN 7 THEN 12 * - 43 ELSE + 30 END ) * 73 THEN NULL ELSE MIN( ALL + 93 ) END * - 94
----
-8814

skipif mysql # not compatible
query I rowsort label-6679
SELECT ALL - + COUNT ( * ) * + 72 + - - CASE - 49 WHEN - 90 * + 80 / + + ( + 43 ) + + - 28 + COUNT ( * ) THEN 98 * CAST ( + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) AS INTEGER ) + ( + 45 ) WHEN SUM ( DISTINCT CASE + COALESCE ( - 41, + 12 ) WHEN 7 THEN 12 * - 43 ELSE + 30 END ) * 73 THEN NULL ELSE MIN ( ALL + 93 ) END * - 94
----
-8814

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6680
SELECT DISTINCT 10 * + COUNT( * ) + 98 + + ( + - 85 ) + - + NULLIF ( + 23, + - COUNT( ALL + + 70 ) ) DIV 76
----
23

skipif mysql # not compatible
query I rowsort label-6680
SELECT DISTINCT 10 * + COUNT ( * ) + 98 + + ( + - 85 ) + - + NULLIF ( + 23, + - COUNT ( ALL + + 70 ) ) / 76
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-6681
SELECT ALL COUNT( * ) * + 71 + 36
----
107

skipif mysql # not compatible
query I rowsort label-6681
SELECT ALL COUNT ( * ) * + 71 + 36
----
107

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6682
SELECT + - NULLIF ( + 82, + 97 + - + 61 + + 28 * 92 + - + 0 + + NULLIF ( 9, ( - ( - COALESCE ( + 63, CAST( NULL AS DECIMAL ) * + 45 ) ) ) * + 69 ) - - 6 * - 75 )
----
-82

skipif mysql # not compatible
query I rowsort label-6682
SELECT + - NULLIF ( + 82, + 97 + - + 61 + + 28 * 92 + - + 0 + + NULLIF ( 9, ( - ( - COALESCE ( + 63, CAST ( NULL AS REAL ) * + 45 ) ) ) * + 69 ) - - 6 * - 75 )
----
-82

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6684
SELECT ALL + 92 DIV ( - ( - 36 ) ) + - - 56 AS col0
----
58

skipif mysql # not compatible
query I rowsort label-6684
SELECT ALL + 92 / ( - ( - 36 ) ) + - - 56 AS col0
----
58

query I rowsort
SELECT ALL - 41 + 16
----
-25

onlyif mysql # aggregate syntax: 
query II rowsort label-6686
SELECT + 77 * MIN( DISTINCT + 48 ) AS col1, + COUNT( * ) + 92
----
3696
93

skipif mysql # not compatible
query II rowsort label-6686
SELECT + 77 * MIN ( DISTINCT + 48 ) AS col1, + COUNT ( * ) + 92
----
3696
93

onlyif mysql # aggregate syntax: 
query I rowsort label-6687
SELECT + COUNT( * ) * + 22 + 15
----
37

skipif mysql # not compatible
query I rowsort label-6687
SELECT + COUNT ( * ) * + 22 + 15
----
37

onlyif mysql # aggregate syntax: 
query II rowsort label-6688
SELECT - MAX( ALL + - 42 ) AS col0, - 41
----
42
-41

skipif mysql # not compatible
query II rowsort label-6688
SELECT - MAX ( ALL + - 42 ) AS col0, - 41
----
42
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-6689
SELECT ALL - 50 * 74 * - 4 * + + NULLIF ( + + 21, - + 81 + - ( - - COUNT( * ) ) + - 3 )
----
310800

skipif mysql # not compatible
query I rowsort label-6689
SELECT ALL - 50 * 74 * - 4 * + + NULLIF ( + + 21, - + 81 + - ( - - COUNT ( * ) ) + - 3 )
----
310800

query I rowsort
SELECT - 23 + 10 AS col0
----
-13

query I rowsort
SELECT ALL - 78 - CASE + 19 WHEN + 60 THEN NULL WHEN 30 THEN NULL ELSE + 19 END - 93 * + 20 col1
----
-1957

onlyif mysql # aggregate syntax: 
query I rowsort label-6692
SELECT DISTINCT CASE 74 WHEN + SUM( DISTINCT - - 17 ) / 97 THEN + 77 + + 51 WHEN 37 THEN + COUNT( * ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6692
SELECT DISTINCT CASE 74 WHEN + SUM ( DISTINCT - - 17 ) / 97 THEN + 77 + + 51 WHEN 37 THEN + COUNT ( * ) END AS col2
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6694
SELECT + 93 - - + 20 DIV + + 33
----
93

skipif mysql # not compatible
query I rowsort label-6694
SELECT + 93 - - + 20 / + + 33
----
93

query I rowsort
SELECT + 69 - 19 + + 0 AS col1
----
50

query I rowsort
SELECT - 81 * 50
----
-4050

query I rowsort
SELECT - 57 + + 87
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-6698
SELECT - 33 + + - COUNT( 99 ) AS col1
----
-34

skipif mysql # not compatible
query I rowsort label-6698
SELECT - 33 + + - COUNT ( 99 ) AS col1
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-6699
SELECT + COALESCE ( - - 63, - NULLIF ( + + 93, + 71 - - 95 * - MIN( - 11 ) ) ) * + + 77
----
4851

skipif mysql # not compatible
query I rowsort label-6699
SELECT + COALESCE ( - - 63, - NULLIF ( + + 93, + 71 - - 95 * - MIN ( - 11 ) ) ) * + + 77
----
4851

query II rowsort
SELECT + 51 * + 46 AS col1, - 77 AS col1
----
2346
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6701
SELECT DISTINCT CAST( - COALESCE ( AVG ( ALL + CAST( + 92 AS SIGNED ) ), + COALESCE ( + 43, - 45 * + 83, 47 ) ) AS SIGNED ) col1
----
-92

skipif mysql # not compatible
query I rowsort label-6701
SELECT DISTINCT CAST ( - COALESCE ( AVG ( ALL + CAST ( + 92 AS INTEGER ) ), + COALESCE ( + 43, - 45 * + 83, 47 ) ) AS INTEGER ) col1
----
-92

onlyif mysql # aggregate syntax: 
query II rowsort label-6702
SELECT ALL + COUNT( * ) * COUNT( * ) AS col2, 29 * - 57 - + + 42 * - - 30 + - + ( - + NULLIF ( 17, 96 ) ) + 26 * + - 36
----
1
-3832

skipif mysql # not compatible
query II rowsort label-6702
SELECT ALL + COUNT ( * ) * COUNT ( * ) AS col2, 29 * - 57 - + + 42 * - - 30 + - + ( - + NULLIF ( 17, 96 ) ) + 26 * + - 36
----
1
-3832

onlyif mysql # DIV for integer division: 
query I rowsort label-6703
SELECT 50 DIV + 93 + - - 97 col0
----
97

skipif mysql # not compatible
query I rowsort label-6703
SELECT 50 / + 93 + - - 97 col0
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-6704
SELECT NULLIF ( 33, 48 - + COUNT( * ) * + + COUNT( DISTINCT - 92 ) ) AS col1
----
33

skipif mysql # not compatible
query I rowsort label-6704
SELECT NULLIF ( 33, 48 - + COUNT ( * ) * + + COUNT ( DISTINCT - 92 ) ) AS col1
----
33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6705
SELECT + - COUNT( * ) + + - 32 + + 27 AS col0, - CAST( NULL AS SIGNED ) AS col1
----
-6
NULL

skipif mysql # not compatible
query II rowsort label-6705
SELECT + - COUNT ( * ) + + - 32 + + 27 AS col0, - CAST ( NULL AS INTEGER ) AS col1
----
-6
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6706
SELECT DISTINCT + + CASE + 15 WHEN + 28 THEN 66 + + + 51 + - + COALESCE ( + 58, - CASE + NULLIF ( - COUNT( * ), + ( 1 ) + - 61 ) WHEN 35 THEN NULL WHEN 5 * COUNT( * ) THEN NULL ELSE CAST( NULL AS SIGNED ) / + 21 END, - COUNT( * ) + + 82 ) ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6706
SELECT DISTINCT + + CASE + 15 WHEN + 28 THEN 66 + + + 51 + - + COALESCE ( + 58, - CASE + NULLIF ( - COUNT ( * ), + ( 1 ) + - 61 ) WHEN 35 THEN NULL WHEN 5 * COUNT ( * ) THEN NULL ELSE CAST ( NULL AS INTEGER ) / + 21 END, - COUNT ( * ) + + 82 ) ELSE NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6707
SELECT + COUNT( * ) * + + CAST( NULL AS SIGNED ) + + COALESCE ( - 45, COALESCE ( 9, - 64 ), + 15 * - 37 ) - + + COUNT( * ) - + 12 + MIN( 3 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6707
SELECT + COUNT ( * ) * + + CAST ( NULL AS INTEGER ) + + COALESCE ( - 45, COALESCE ( 9, - 64 ), + 15 * - 37 ) - + + COUNT ( * ) - + 12 + MIN ( 3 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6708
SELECT + COALESCE ( + NULLIF ( - 71, + 77 ), + 97 * 56 - - SUM( ALL + ( + 77 ) ) )
----
-71

skipif mysql # not compatible
query I rowsort label-6708
SELECT + COALESCE ( + NULLIF ( - 71, + 77 ), + 97 * 56 - - SUM ( ALL + ( + 77 ) ) )
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-6709
SELECT DISTINCT + - COALESCE ( + - COALESCE ( + + 36, + 41 * - COUNT( * ) + + 89 * + + 19 ), ( NULLIF ( - 25, 20 + 43 ) ) * + 46 )
----
36

skipif mysql # not compatible
query I rowsort label-6709
SELECT DISTINCT + - COALESCE ( + - COALESCE ( + + 36, + 41 * - COUNT ( * ) + + 89 * + + 19 ), ( NULLIF ( - 25, 20 + 43 ) ) * + 46 )
----
36

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6710
SELECT + + 11 / + NULLIF ( 9, - + 19 + - 74 ) + 7 + CAST( NULL AS DECIMAL ) / - 56 + + 43
----
NULL

skipif mysql # not compatible
query I rowsort label-6710
SELECT + + 11 / + NULLIF ( 9, - + 19 + - 74 ) + 7 + CAST ( NULL AS REAL ) / - 56 + + 43
----
NULL

query I rowsort
SELECT DISTINCT + - 31 col0
----
-31

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6712
SELECT DISTINCT - COUNT( * ) * + COUNT( * ) * - COUNT( * ) * - - 94 DIV + 91 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6712
SELECT DISTINCT - COUNT ( * ) * + COUNT ( * ) * - COUNT ( * ) * - - 94 / + 91 AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6713
SELECT + 24 * - - 29 + - 58 * CASE + MAX( + - 83 ) WHEN 24 THEN 0 + + - 26 * + 19 END * 32
----
NULL

skipif mysql # not compatible
query I rowsort label-6713
SELECT + 24 * - - 29 + - 58 * CASE + MAX ( + - 83 ) WHEN 24 THEN 0 + + - 26 * + 19 END * 32
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6714
SELECT + 37 * - - COUNT( * ) + 94 + + 71 AS col2
----
202

skipif mysql # not compatible
query I rowsort label-6714
SELECT + 37 * - - COUNT ( * ) + 94 + + 71 AS col2
----
202

query II rowsort
SELECT + 40, 60 AS col2
----
40
60

onlyif mysql # aggregate syntax: 
query I rowsort label-6716
SELECT COALESCE ( 23, + + SUM( DISTINCT + - 87 ) )
----
23

skipif mysql # not compatible
query I rowsort label-6716
SELECT COALESCE ( 23, + + SUM ( DISTINCT + - 87 ) )
----
23

query I rowsort
SELECT ALL + 82 * 94 AS col1
----
7708

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

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

query I rowsort
SELECT - 53 - + 85 + + 87 * + 93 AS col1
----
7953

onlyif mysql # aggregate syntax: 
query I rowsort label-6720
SELECT DISTINCT MAX( - - 24 )
----
24

skipif mysql # not compatible
query I rowsort label-6720
SELECT DISTINCT MAX ( - - 24 )
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-6721
SELECT ALL CASE + + 98 WHEN + 47 + 28 * + COUNT( + - 33 ) THEN - 67 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6721
SELECT ALL CASE + + 98 WHEN + 47 + 28 * + COUNT ( + - 33 ) THEN - 67 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6722
SELECT DISTINCT COALESCE ( MIN( - 49 ), + 21 )
----
-49

skipif mysql # not compatible
query I rowsort label-6722
SELECT DISTINCT COALESCE ( MIN ( - 49 ), + 21 )
----
-49

query II rowsort
SELECT ALL 62 AS col1, 63 AS col1
----
62
63

query II rowsort
SELECT - 13 AS col0, 49
----
-13
49

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6726
SELECT 36 * + + COUNT( * ) * - + 27
----
-972

skipif mysql # not compatible
query I rowsort label-6726
SELECT 36 * + + COUNT ( * ) * - + 27
----
-972

query II rowsort
SELECT ALL 73 col2, + 89
----
73
89

query I rowsort
SELECT ALL - 20 * + NULLIF ( 98, + 38 + + 34 )
----
-1960

query I rowsort
SELECT 55 + - - 67 + 27 * + 19 * 54 - + 23
----
27801

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6732
SELECT DISTINCT - NULLIF ( - COUNT( * ), 54 + - 44 ) / + CASE - 35 WHEN + ( + 50 ) + - 68 THEN - + 55 * + 52 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6732
SELECT DISTINCT - NULLIF ( - COUNT ( * ), 54 + - 44 ) / + CASE - 35 WHEN + ( + 50 ) + - 68 THEN - + 55 * + 52 ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT DISTINCT - - 31 * 20 col2
----
620

query I rowsort
SELECT + 73 + - + NULLIF ( - 16, + 43 + + NULLIF ( 87, - - 76 ) ) AS col1
----
89

query I rowsort
SELECT 36 * - 55
----
-1980

query II rowsort
SELECT ALL + 80, + 32 * - + ( - 22 ) * 87 col1
----
80
61248

query I rowsort
SELECT + 30 - 4 AS col2
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-6738
SELECT ALL - COUNT( * ) + NULLIF ( - 93, 10 * 71 + 53 + 94 + + 88 * + + 28 )
----
-94

skipif mysql # not compatible
query I rowsort label-6738
SELECT ALL - COUNT ( * ) + NULLIF ( - 93, 10 * 71 + 53 + 94 + + 88 * + + 28 )
----
-94

onlyif mysql # DIV for integer division: 
query I rowsort label-6739
SELECT - 52 * + 38 + - 46 * - - 52 + + 15 DIV + 63 AS col0
----
-4368

skipif mysql # not compatible
query I rowsort label-6739
SELECT - 52 * + 38 + - 46 * - - 52 + + 15 / + 63 AS col0
----
-4368

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

query I rowsort
SELECT ALL 92 + 29 AS col0
----
121

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6742
SELECT ALL - 36, + NULLIF ( + 9, - + CAST( NULL AS SIGNED ) + + 51 ) AS col0
----
-36
9

skipif mysql # not compatible
query II rowsort label-6742
SELECT ALL - 36, + NULLIF ( + 9, - + CAST ( NULL AS INTEGER ) + + 51 ) AS col0
----
-36
9

onlyif mysql # aggregate syntax: 
query I rowsort label-6743
SELECT COUNT( * ) * - 39 + COALESCE ( - - 11, 66 * + + 32 + + 32 ) AS col1
----
-28

skipif mysql # not compatible
query I rowsort label-6743
SELECT COUNT ( * ) * - 39 + COALESCE ( - - 11, 66 * + + 32 + + 32 ) AS col1
----
-28

onlyif mysql # aggregate syntax: 
query II rowsort label-6744
SELECT + + 39 col0, + NULLIF ( - + 6, - NULLIF ( + 10, - ( COUNT( * ) ) / + 33 * - 93 + - 63 ) + 20 )
----
39
-6

skipif mysql # not compatible
query II rowsort label-6744
SELECT + + 39 col0, + NULLIF ( - + 6, - NULLIF ( + 10, - ( COUNT ( * ) ) / + 33 * - 93 + - 63 ) + 20 )
----
39
-6

query II rowsort
SELECT + 77 AS col2, - 1
----
77
-1

query I rowsort
SELECT 3 * 15 + + 21 * - 41
----
-816

query I rowsort
SELECT ( - 40 ) + - 62
----
-102

query I rowsort
SELECT + CASE + ( + + 78 ) WHEN 44 / - + 7 + + 68 * - 23 THEN - + ( - 76 ) - - 85 END
----
NULL

query I rowsort
SELECT ALL ( + COALESCE ( - 90, 55 ) ) - 2 * + - 76 AS col1
----
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query III rowsort label-6750
SELECT ALL MAX( ALL + 46 ) DIV - CAST( NULL AS SIGNED ) + - - 46 AS col1, CAST( NULL AS SIGNED ), 87 * 55 DIV + MIN( ALL + 82 ) AS col0
----
NULL
NULL
58

skipif mysql # not compatible
query III rowsort label-6750
SELECT ALL MAX ( ALL + 46 ) / - CAST ( NULL AS INTEGER ) + - - 46 AS col1, CAST ( NULL AS INTEGER ), 87 * 55 / + MIN ( ALL + 82 ) AS col0
----
NULL
NULL
58

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6752
SELECT COUNT( * ) DIV NULLIF ( + COUNT( + + 89 ), CAST( - 12 AS SIGNED ) )
----
1

skipif mysql # not compatible
query I rowsort label-6752
SELECT COUNT ( * ) / NULLIF ( + COUNT ( + + 89 ), CAST ( - 12 AS INTEGER ) )
----
1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6753
SELECT DISTINCT + 5 * + - 60 * + CASE - 58 WHEN + COUNT( * ) * + CAST( NULL AS DECIMAL ) / 13 + - 0 + 71 / + + 62 THEN - 91 WHEN - 38 * 8 * 34 * COUNT( * ) - - 64 THEN 12 ELSE COUNT( * ) END
----
-300

skipif mysql # not compatible
query I rowsort label-6753
SELECT DISTINCT + 5 * + - 60 * + CASE - 58 WHEN + COUNT ( * ) * + CAST ( NULL AS REAL ) / 13 + - 0 + 71 / + + 62 THEN - 91 WHEN - 38 * 8 * 34 * COUNT ( * ) - - 64 THEN 12 ELSE COUNT ( * ) END
----
-300

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6754
SELECT DISTINCT 41 / + 36 / + 6 / - - 3 * + NULLIF ( 3, + AVG ( DISTINCT + 85 ) ) * - 2 * + - COUNT( * ) * + CAST( NULL AS SIGNED ) * + 50 * 86
----
NULL

skipif mysql # not compatible
query I rowsort label-6754
SELECT DISTINCT 41 / + 36 / + 6 / - - 3 * + NULLIF ( 3, + AVG ( DISTINCT + 85 ) ) * - 2 * + - COUNT ( * ) * + CAST ( NULL AS INTEGER ) * + 50 * 86
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6755
SELECT ALL 0 - + 77 + + 21 + + COUNT( DISTINCT + + 25 ) * + 15 + 58 AS col1
----
17

skipif mysql # not compatible
query I rowsort label-6755
SELECT ALL 0 - + 77 + + 21 + + COUNT ( DISTINCT + + 25 ) * + 15 + 58 AS col1
----
17

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6756
SELECT 36 DIV - + MAX( + 44 )
----
0

skipif mysql # not compatible
query I rowsort label-6756
SELECT 36 / - + MAX ( + 44 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6757
SELECT 10 - - + COUNT( * ) + + 79 * 72 + - 61, - CAST( NULL AS SIGNED ) AS col0
----
5638
NULL

skipif mysql # not compatible
query II rowsort label-6757
SELECT 10 - - + COUNT ( * ) + + 79 * 72 + - 61, - CAST ( NULL AS INTEGER ) AS col0
----
5638
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6758
SELECT 46 * + COALESCE ( + - 55, COUNT( * ) ) * - 93 * + 78 * ( CAST( - + ( - 20 ) AS SIGNED ) ) AS col0
----
367052400

skipif mysql # not compatible
query I rowsort label-6758
SELECT 46 * + COALESCE ( + - 55, COUNT ( * ) ) * - 93 * + 78 * ( CAST ( - + ( - 20 ) AS INTEGER ) ) AS col0
----
367052400

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6759
SELECT - 85 * + - COUNT( * ) + + CAST( - - 62 AS SIGNED )
----
147

skipif mysql # not compatible
query I rowsort label-6759
SELECT - 85 * + - COUNT ( * ) + + CAST ( - - 62 AS INTEGER )
----
147

query I rowsort
SELECT 29 + - + 98 AS col0
----
-69

query I rowsort
SELECT ALL 34 * - 74 AS col1
----
-2516

onlyif mysql # aggregate syntax: 
query I rowsort label-6762
SELECT ALL ( + + 49 ) + - + 92 - + COUNT( * ) * - 9
----
-34

skipif mysql # not compatible
query I rowsort label-6762
SELECT ALL ( + + 49 ) + - + 92 - + COUNT ( * ) * - 9
----
-34

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

query I rowsort
SELECT ALL - 89 + - 62
----
-151

query I rowsort
SELECT ( 6 ) * + + COALESCE ( - 43, + - 92, - + 42 ) AS col0
----
-258

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6768
SELECT 69 DIV - 95, 45 + - COUNT( + - 21 ) AS col1
----
0
44

skipif mysql # not compatible
query II rowsort label-6768
SELECT 69 / - 95, 45 + - COUNT ( + - 21 ) AS col1
----
0
44

query I rowsort
SELECT ALL + - ( 35 ) * + + 53 * - 47
----
87185

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6770
SELECT ( + 91 ) * - 8 * - 38 + + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6770
SELECT ( + 91 ) * - 8 * - 38 + + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6771
SELECT DISTINCT - 38 * - 48 + + COUNT( * )
----
1825

skipif mysql # not compatible
query I rowsort label-6771
SELECT DISTINCT - 38 * - 48 + + COUNT ( * )
----
1825

query I rowsort
SELECT 17 + 80 + - + 76
----
21

onlyif mysql # DIV for integer division: 
query I rowsort label-6773
SELECT + 44 DIV + 56
----
0

skipif mysql # not compatible
query I rowsort label-6773
SELECT + 44 / + 56
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6774
SELECT + + SUM( + 72 ) * 83 / - 18 * 1 + - - MAX( DISTINCT + 17 ) * + 22 + - 53 * COUNT( * ) * MAX( DISTINCT - 99 ) + CASE 46 WHEN 78 THEN - COALESCE ( 39, + 60 * COUNT( * ) - + 67 ) + - 87 ELSE - CASE - 98 WHEN 93 + 98 * 88 THEN 57 WHEN 81 * 74 THEN 29 * 23 END END + 11 * NULLIF ( + ( - ( 85 ) ) * + 82 + - CAST( 60 AS SIGNED ) * 26, 73 * + COUNT( * ) + 80 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6774
SELECT + + SUM ( + 72 ) * 83 / - 18 * 1 + - - MAX ( DISTINCT + 17 ) * + 22 + - 53 * COUNT ( * ) * MAX ( DISTINCT - 99 ) + CASE 46 WHEN 78 THEN - COALESCE ( 39, + 60 * COUNT ( * ) - + 67 ) + - 87 ELSE - CASE - 98 WHEN 93 + 98 * 88 THEN 57 WHEN 81 * 74 THEN 29 * 23 END END + 11 * NULLIF ( + ( - ( 85 ) ) * + 82 + - CAST ( 60 AS INTEGER ) * 26, 73 * + COUNT ( * ) + 80 )
----
NULL

query I rowsort
SELECT DISTINCT + - 47 * + - 24 - - 33 * + 66 AS col0
----
3306

onlyif mysql # aggregate syntax: 
query I rowsort label-6776
SELECT NULLIF ( + COALESCE ( + - 80, + - 12 + 62 * - 61 ), - - SUM( DISTINCT - 98 ) / 83 * + 64 + + 68 ) + COUNT( * ) AS col2
----
-79

skipif mysql # not compatible
query I rowsort label-6776
SELECT NULLIF ( + COALESCE ( + - 80, + - 12 + 62 * - 61 ), - - SUM ( DISTINCT - 98 ) / 83 * + 64 + + 68 ) + COUNT ( * ) AS col2
----
-79

query I rowsort
SELECT ALL - 46 * + 72 col0
----
-3312

onlyif mysql # aggregate syntax: 
query II rowsort label-6778
SELECT ALL + 59 AS col2, + 87 * 29 * + SUM( ALL - 57 ) + 49 AS col0
----
59
-143762

skipif mysql # not compatible
query II rowsort label-6778
SELECT ALL + 59 AS col2, + 87 * 29 * + SUM ( ALL - 57 ) + 49 AS col0
----
59
-143762

query II rowsort
SELECT 19 * - - 42 + - 88 col1, + 25
----
710
25

query I rowsort
SELECT 47 * - 87 + 99 col0
----
-3990

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6782
SELECT - 82 * - CAST( NULL AS SIGNED ) * 43 + - COUNT( * ) * - - 98 * + + 5 + + + 37 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6782
SELECT - 82 * - CAST ( NULL AS INTEGER ) * 43 + - COUNT ( * ) * - - 98 * + + 5 + + + 37 AS col0
----
NULL

query II rowsort
SELECT - 58 + - + 14 + 69 col2, - 67 AS col0
----
-3
-67

onlyif mysql # aggregate syntax: 
query II rowsort label-6784
SELECT + 34 + + COUNT( - 62 ) + - ( - 12 ), + 72 + - 37 AS col1
----
47
35

skipif mysql # not compatible
query II rowsort label-6784
SELECT + 34 + + COUNT ( - 62 ) + - ( - 12 ), + 72 + - 37 AS col1
----
47
35

query I rowsort
SELECT + 11 * - - 43
----
473

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6786
SELECT DISTINCT 40 + 71 + - 32 + + 20 * 90 - CAST( NULL AS SIGNED ) / COUNT( * ) * + ( + 92 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6786
SELECT DISTINCT 40 + 71 + - 32 + + 20 * 90 - CAST ( NULL AS INTEGER ) / COUNT ( * ) * + ( + 92 ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6787
SELECT DISTINCT ( + - CAST( NULL AS SIGNED ) ) + - 29, 83 DIV - 65 AS col0
----
NULL
-1

skipif mysql # not compatible
query II rowsort label-6787
SELECT DISTINCT ( + - CAST ( NULL AS INTEGER ) ) + - 29, 83 / - 65 AS col0
----
NULL
-1

query I rowsort
SELECT ALL + 57 + - 81 * - 77 * + 78 AS col1
----
486543

onlyif mysql # aggregate syntax: 
query I rowsort label-6789
SELECT + CASE - ( + 57 ) WHEN 15 THEN NULL WHEN - - 89 THEN + ( + 76 ) WHEN COUNT( * ) THEN + COUNT( * ) / 3 + 20 - + 52 END + 72 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6789
SELECT + CASE - ( + 57 ) WHEN 15 THEN NULL WHEN - - 89 THEN + ( + 76 ) WHEN COUNT ( * ) THEN + COUNT ( * ) / 3 + 20 - + 52 END + 72 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6790
SELECT ALL CAST( 35 AS SIGNED ) + - 29 DIV - 73 AS col0
----
35

skipif mysql # not compatible
query I rowsort label-6790
SELECT ALL CAST ( 35 AS INTEGER ) + - 29 / - 73 AS col0
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-6791
SELECT - MAX( ALL - 25 ) AS col0
----
25

skipif mysql # not compatible
query I rowsort label-6791
SELECT - MAX ( ALL - 25 ) AS col0
----
25

query I rowsort
SELECT - ( - + NULLIF ( + 67, + 98 - - + 76 / 78 ) )
----
67

onlyif mysql # DIV for integer division: 
query I rowsort label-6793
SELECT - - 88 DIV 64
----
1

skipif mysql # not compatible
query I rowsort label-6793
SELECT - - 88 / 64
----
1

query I rowsort
SELECT ALL - 82 + + + 50 col2
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-6795
SELECT + 99 * - COALESCE ( ( 89 ), - 23 - ( - SUM( 41 ) ) )
----
-8811

skipif mysql # not compatible
query I rowsort label-6795
SELECT + 99 * - COALESCE ( ( 89 ), - 23 - ( - SUM ( 41 ) ) )
----
-8811

query I rowsort
SELECT - 69 * + 19
----
-1311

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-6797
SELECT + 8 + + 83 * 68 * + 59 + + CAST( NULL AS DECIMAL ) col1, COUNT( * ) * + 87 - - + 21 * - 40 * - - COUNT( * ) * + - 88 DIV - 88
----
NULL
-753

skipif mysql # not compatible
query II rowsort label-6797
SELECT + 8 + + 83 * 68 * + 59 + + CAST ( NULL AS REAL ) col1, COUNT ( * ) * + 87 - - + 21 * - 40 * - - COUNT ( * ) * + - 88 / - 88
----
NULL
-753

onlyif mysql # aggregate syntax: 
query I rowsort label-6798
SELECT + NULLIF ( - - 22, 4 * + - COUNT( * ) + - 13 ) * 74
----
1628

skipif mysql # not compatible
query I rowsort label-6798
SELECT + NULLIF ( - - 22, 4 * + - COUNT ( * ) + - 13 ) * 74
----
1628

query I rowsort
SELECT - CASE - 63 WHEN 36 THEN - 2 + - 19 WHEN - 12 THEN NULL END
----
NULL

query I rowsort
SELECT - - 19 + + - 53 * - - 40 + + 72 * + 66 col2
----
2651

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6803
SELECT - ( - + ( 9 ) ) AS col0, COUNT( DISTINCT 78 ) col0
----
9
1

skipif mysql # not compatible
query II rowsort label-6803
SELECT - ( - + ( 9 ) ) AS col0, COUNT ( DISTINCT 78 ) col0
----
9
1

query I rowsort
SELECT + - 75 * - 34 AS col1
----
2550

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

skipif mysql # not compatible
query I rowsort label-6805
SELECT + 29 - - COUNT ( * ) - - 28 - - 1 AS col1
----
59

query I rowsort
SELECT - ( ( - 55 ) ) * + - 64
----
-3520

query I rowsort
SELECT DISTINCT + 81 * - - 5 AS col2
----
405

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6808
SELECT DISTINCT + + 67 * - + CAST( NULL AS SIGNED ) * CASE - + COUNT( * ) WHEN + - 56 THEN NULL ELSE 73 END + - NULLIF ( COUNT( * ), COUNT( * ) / + 7 + 64 + + CASE - + COUNT( * ) WHEN - 86 THEN - 35 WHEN 68 / 98 THEN 46 - COALESCE ( + 75, 26 * - ( - 87 ), - 96 * + 8, - 41 ) * - NULLIF ( 17, 82 ) WHEN 78 + + 80 THEN NULL WHEN + 92 THEN NULL END * ( 79 ) + + 52 ) + 33 * 55
----
NULL

skipif mysql # not compatible
query I rowsort label-6808
SELECT DISTINCT + + 67 * - + CAST ( NULL AS INTEGER ) * CASE - + COUNT ( * ) WHEN + - 56 THEN NULL ELSE 73 END + - NULLIF ( COUNT ( * ), COUNT ( * ) / + 7 + 64 + + CASE - + COUNT ( * ) WHEN - 86 THEN - 35 WHEN 68 / 98 THEN 46 - COALESCE ( + 75, 26 * - ( - 87 ), - 96 * + 8, - 41 ) * - NULLIF ( 17, 82 ) WHEN 78 + + 80 THEN NULL WHEN + 92 THEN NULL END * ( 79 ) + + 52 ) + 33 * 55
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6809
SELECT - 77 / + - COUNT( * ) * CASE - - 72 WHEN 83 - 31 + - 94 * 35 THEN + ( - ( + 87 ) ) END * - - 5 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6809
SELECT - 77 / + - COUNT ( * ) * CASE - - 72 WHEN 83 - 31 + - 94 * 35 THEN + ( - ( + 87 ) ) END * - - 5 AS col0
----
NULL

query II rowsort
SELECT + 91, 32 col1
----
91
32

query I rowsort
SELECT DISTINCT + 6 * + 53 AS col0
----
318

query II rowsort
SELECT ALL + 75 AS col0, - 20 AS col1
----
75
-20

query II rowsort
SELECT ( 21 ) AS col2, - 5
----
21
-5

query I rowsort
SELECT + 23 * - + 88 AS col2
----
-2024

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6815
SELECT COALESCE ( 51, 79, - 59 * + + 16 - CASE + + 28 WHEN + + ( - 78 ) + + CAST( 61 AS SIGNED ) + - 52 THEN + 17 * + CAST( - 58 AS SIGNED ) DIV - + 10 DIV 7 + 56 * + 82 + COUNT( * ) END )
----
51

skipif mysql # not compatible
query I rowsort label-6815
SELECT COALESCE ( 51, 79, - 59 * + + 16 - CASE + + 28 WHEN + + ( - 78 ) + + CAST ( 61 AS INTEGER ) + - 52 THEN + 17 * + CAST ( - 58 AS INTEGER ) / - + 10 / 7 + 56 * + 82 + COUNT ( * ) END )
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-6816
SELECT DISTINCT + COUNT( * ) * 53 + + ( 4 )
----
57

skipif mysql # not compatible
query I rowsort label-6816
SELECT DISTINCT + COUNT ( * ) * 53 + + ( 4 )
----
57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6817
SELECT ALL - NULLIF ( COUNT( * ), 41 ) * + 98 DIV - + 61 + 83 + + 35 col2
----
119

skipif mysql # not compatible
query I rowsort label-6817
SELECT ALL - NULLIF ( COUNT ( * ), 41 ) * + 98 / - + 61 + 83 + + 35 col2
----
119

onlyif mysql # aggregate syntax: 
query I rowsort label-6818
SELECT DISTINCT + CASE + + 14 WHEN 32 * + 74 * - 24 + + + 79 / + - COUNT( 66 ) + COUNT( * ) THEN NULL WHEN - 89 / 18 THEN + 68 + - 85 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6818
SELECT DISTINCT + CASE + + 14 WHEN 32 * + 74 * - 24 + + + 79 / + - COUNT ( 66 ) + COUNT ( * ) THEN NULL WHEN - 89 / 18 THEN + 68 + - 85 ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6819
SELECT - 87 * + 56 * - + 86 DIV COUNT( * ) AS col0
----
418992

skipif mysql # not compatible
query I rowsort label-6819
SELECT - 87 * + 56 * - + 86 / COUNT ( * ) AS col0
----
418992

onlyif mysql # aggregate syntax: 
query I rowsort label-6820
SELECT + COALESCE ( + 68, - COUNT( * ) - + - 61 * + 70, - + 38 )
----
68

skipif mysql # not compatible
query I rowsort label-6820
SELECT + COALESCE ( + 68, - COUNT ( * ) - + - 61 * + 70, - + 38 )
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-6821
SELECT + CASE - 4 WHEN + + 19 * + COALESCE ( 63, + + SUM( + - 5 ), 54 ) - - 89 + 92 THEN NULL WHEN - 59 THEN - 48 END * - + 37
----
NULL

skipif mysql # not compatible
query I rowsort label-6821
SELECT + CASE - 4 WHEN + + 19 * + COALESCE ( 63, + + SUM ( + - 5 ), 54 ) - - 89 + 92 THEN NULL WHEN - 59 THEN - 48 END * - + 37
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6823
SELECT MAX( ALL - 95 ), - 7 + + - MAX( + 8 ) * + + CAST( NULL AS SIGNED ) - + 63 AS col2
----
-95
NULL

skipif mysql # not compatible
query II rowsort label-6823
SELECT MAX ( ALL - 95 ), - 7 + + - MAX ( + 8 ) * + + CAST ( NULL AS INTEGER ) - + 63 AS col2
----
-95
NULL

query I rowsort
SELECT - 45 + + - 22
----
-67

query I rowsort
SELECT - 97 + + 39
----
-58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6826
SELECT DISTINCT + + 45 * - 0 * - 95 + + + 49 + - MAX( - + 46 ) * - SUM( DISTINCT + 81 ) DIV - COUNT( * )
----
3775

skipif mysql # not compatible
query I rowsort label-6826
SELECT DISTINCT + + 45 * - 0 * - 95 + + + 49 + - MAX ( - + 46 ) * - SUM ( DISTINCT + 81 ) / - COUNT ( * )
----
3775

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

skipif mysql # not compatible
query I rowsort label-6827
SELECT ALL - - COUNT ( DISTINCT - - 77 ) + - - COUNT ( * )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-6828
SELECT DISTINCT + 92 * - MAX( + 66 ) AS col1
----
-6072

skipif mysql # not compatible
query I rowsort label-6828
SELECT DISTINCT + 92 * - MAX ( + 66 ) AS col1
----
-6072

query I rowsort
SELECT ALL + 70 - + ( + 86 ) AS col2
----
-16

onlyif mysql # DIV for integer division: 
query I rowsort label-6830
SELECT DISTINCT + 26 DIV NULLIF ( - 44, + - 34 ) * - 11 * 38 + - 38 * - 11 col1
----
418

skipif mysql # not compatible
query I rowsort label-6830
SELECT DISTINCT + 26 / NULLIF ( - 44, + - 34 ) * - 11 * 38 + - 38 * - 11 col1
----
418

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6832
SELECT + 99 DIV CAST( - - 3 AS SIGNED ) AS col1
----
33

skipif mysql # not compatible
query I rowsort label-6832
SELECT + 99 / CAST ( - - 3 AS INTEGER ) AS col1
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-6833
SELECT + COUNT( * ) + 22 + - + 15
----
8

skipif mysql # not compatible
query I rowsort label-6833
SELECT + COUNT ( * ) + 22 + - + 15
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-6834
SELECT CASE - 80 WHEN + 9 + - ( + 69 ) + - - AVG ( DISTINCT + 65 ) THEN NULL WHEN + 37 THEN - 47 * - COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6834
SELECT CASE - 80 WHEN + 9 + - ( + 69 ) + - - AVG ( DISTINCT + 65 ) THEN NULL WHEN + 37 THEN - 47 * - COUNT ( * ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6835
SELECT DISTINCT 70 * - 58 + + COUNT( DISTINCT - 85 ) + + ( + CASE 18 WHEN - 95 - - 56 THEN - 26 END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6835
SELECT DISTINCT 70 * - 58 + + COUNT ( DISTINCT - 85 ) + + ( + CASE 18 WHEN - 95 - - 56 THEN - 26 END ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6836
SELECT + + CASE 12 WHEN + 34 THEN 21 / 54 * - COUNT( + 99 ) - - - CAST( NULL AS SIGNED ) END * 65
----
NULL

skipif mysql # not compatible
query I rowsort label-6836
SELECT + + CASE 12 WHEN + 34 THEN 21 / 54 * - COUNT ( + 99 ) - - - CAST ( NULL AS INTEGER ) END * 65
----
NULL

query I rowsort
SELECT DISTINCT 28 * 70 * NULLIF ( 99, 10 ) AS col2
----
194040

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6839
SELECT 24 col2, - SUM( + 96 )
----
24
-96

skipif mysql # not compatible
query II rowsort label-6839
SELECT 24 col2, - SUM ( + 96 )
----
24
-96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6840
SELECT 30 * + + CASE - 51 WHEN + 64 / + CAST( NULL AS SIGNED ) * - CASE 95 WHEN - 48 THEN NULL WHEN + 54 THEN - + ( - COUNT( * ) ) END + + 7 + + 56 + + COUNT( * ) * NULLIF ( 22, - COUNT( * ) * - MIN( ALL 93 ) + + 64 ) / + ( - ( NULLIF ( + 67, 25 + 41 ) ) ) THEN 61 WHEN 80 THEN 8 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6840
SELECT 30 * + + CASE - 51 WHEN + 64 / + CAST ( NULL AS INTEGER ) * - CASE 95 WHEN - 48 THEN NULL WHEN + 54 THEN - + ( - COUNT ( * ) ) END + + 7 + + 56 + + COUNT ( * ) * NULLIF ( 22, - COUNT ( * ) * - MIN ( ALL 93 ) + + 64 ) / + ( - ( NULLIF ( + 67, 25 + 41 ) ) ) THEN 61 WHEN 80 THEN 8 ELSE NULL END AS col1
----
NULL

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

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

query I rowsort
SELECT 56 * - 39 + + - 7 AS col1
----
-2191

query II rowsort
SELECT ALL 41 + + 54 col1, COALESCE ( 81, + 71 ) AS col0
----
95
81

onlyif mysql # DIV for integer division: 
query I rowsort label-6844
SELECT - 73 DIV - - 83 + - 30
----
-30

skipif mysql # not compatible
query I rowsort label-6844
SELECT - 73 / - - 83 + - 30
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-6845
SELECT ALL COUNT( * ) + 44 * + 69
----
3037

skipif mysql # not compatible
query I rowsort label-6845
SELECT ALL COUNT ( * ) + 44 * + 69
----
3037

query I rowsort
SELECT DISTINCT 76 + 49 AS col2
----
125

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6847
SELECT ALL - 57 + - + COALESCE ( + + 38, CAST( NULL AS SIGNED ) )
----
-95

skipif mysql # not compatible
query I rowsort label-6847
SELECT ALL - 57 + - + COALESCE ( + + 38, CAST ( NULL AS INTEGER ) )
----
-95

query II rowsort
SELECT 45 + 46 AS col2, + 87 AS col1
----
91
87

query I rowsort
SELECT ALL - 84 * 61 * 78 * 74
----
-29575728

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6850
SELECT ALL - SUM( CAST( NULL AS DECIMAL ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6850
SELECT ALL - SUM ( CAST ( NULL AS REAL ) ) AS col0
----
NULL

query I rowsort
SELECT 55 + - 15 * 10 AS col2
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-6852
SELECT DISTINCT + 12 * + 59 * - COUNT( * ) * - 43
----
30444

skipif mysql # not compatible
query I rowsort label-6852
SELECT DISTINCT + 12 * + 59 * - COUNT ( * ) * - 43
----
30444

onlyif mysql # aggregate syntax: 
query I rowsort label-6853
SELECT ALL - 57 + COUNT( * ) * + 19
----
-38

skipif mysql # not compatible
query I rowsort label-6853
SELECT ALL - 57 + COUNT ( * ) * + 19
----
-38

query I rowsort
SELECT 35 * - 30 * - 23 AS col1
----
24150

query II rowsort
SELECT 71 * + 5 AS col2, 32
----
355
32

query II rowsort
SELECT 45 * - 17 AS col2, 14
----
-765
14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6857
SELECT 54 DIV 95 DIV COUNT( + 86 )
----
0

skipif mysql # not compatible
query I rowsort label-6857
SELECT 54 / 95 / COUNT ( + 86 )
----
0

onlyif mysql # CAST syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-6858
SELECT ALL - + CASE - + 63 WHEN 27 THEN NULL WHEN + + 38 THEN - + 35 DIV - + 95 + - - CASE + CAST( NULL AS DECIMAL ) WHEN - + 33 * + 57 DIV + 56 * + 29 + 82 - + 51 THEN + - 44 ELSE NULL END + + 72 ELSE 45 END AS col0
----
-45

skipif mysql # not compatible
query I rowsort label-6858
SELECT ALL - + CASE - + 63 WHEN 27 THEN NULL WHEN + + 38 THEN - + 35 / - + 95 + - - CASE + CAST ( NULL AS REAL ) WHEN - + 33 * + 57 / + 56 * + 29 + 82 - + 51 THEN + - 44 ELSE NULL END + + 72 ELSE 45 END AS col0
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-6859
SELECT DISTINCT + CASE 78 WHEN + 48 THEN NULL WHEN - 76 * 59 * 91 + 71 + + 36 THEN NULL WHEN - - 84 + + 55 * + MAX( + 33 ) THEN + 54 * - COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-6859
SELECT DISTINCT + CASE 78 WHEN + 48 THEN NULL WHEN - 76 * 59 * 91 + 71 + + 36 THEN NULL WHEN - - 84 + + 55 * + MAX ( + 33 ) THEN + 54 * - COUNT ( * ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6860
SELECT + COALESCE ( 0, + - COALESCE ( - - 8, - - 54 + + 30 - - COALESCE ( 48, - ( + - 97 ), - COUNT( * ) ) * 27 ) * - CASE 48 WHEN - 98 * - + 13 THEN NULL WHEN + 13 + - 50 * 24 THEN - 87 * + COUNT( ( + 83 ) ) END * ( + 19 ), + 25 * 8, - 18 )
----
0

skipif mysql # not compatible
query I rowsort label-6860
SELECT + COALESCE ( 0, + - COALESCE ( - - 8, - - 54 + + 30 - - COALESCE ( 48, - ( + - 97 ), - COUNT ( * ) ) * 27 ) * - CASE 48 WHEN - 98 * - + 13 THEN NULL WHEN + 13 + - 50 * 24 THEN - 87 * + COUNT ( ( + 83 ) ) END * ( + 19 ), + 25 * 8, - 18 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6861
SELECT DISTINCT - 97 * 18 * - CAST( - 64 AS SIGNED )
----
-111744

skipif mysql # not compatible
query I rowsort label-6861
SELECT DISTINCT - 97 * 18 * - CAST ( - 64 AS INTEGER )
----
-111744

onlyif mysql # aggregate syntax: 
query I rowsort label-6862
SELECT - NULLIF ( + - COUNT( + - ( - 16 ) ), CASE + 78 WHEN - + 28 * 38 * + 15 THEN 32 + - 89 / 79 * + 17 WHEN 37 + 39 THEN NULL ELSE NULL END / + + 60 + + MIN( ALL + 79 ) * - COUNT( * ) + + NULLIF ( 49, 79 * + COUNT( * ) + 56 ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6862
SELECT - NULLIF ( + - COUNT ( + - ( - 16 ) ), CASE + 78 WHEN - + 28 * 38 * + 15 THEN 32 + - 89 / 79 * + 17 WHEN 37 + 39 THEN NULL ELSE NULL END / + + 60 + + MIN ( ALL + 79 ) * - COUNT ( * ) + + NULLIF ( 49, 79 * + COUNT ( * ) + 56 ) ) AS col2
----
1

query I rowsort
SELECT + 67 * + 67
----
4489

query I rowsort
SELECT ALL - 47 * 85 col2
----
-3995

onlyif mysql # DIV for integer division: 
query I rowsort label-6865
SELECT + 6 + - + 49 + + COALESCE ( - 95, - 60, 8 * 78 DIV - 66 )
----
-138

skipif mysql # not compatible
query I rowsort label-6865
SELECT + 6 + - + 49 + + COALESCE ( - 95, - 60, 8 * 78 / - 66 )
----
-138

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6866
SELECT ALL CAST( - 19 AS SIGNED ) AS col2
----
-19

skipif mysql # not compatible
query I rowsort label-6866
SELECT ALL CAST ( - 19 AS INTEGER ) AS col2
----
-19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6867
SELECT DISTINCT - CASE - 81 WHEN 61 THEN - ( - COUNT( * ) ) WHEN 68 * + 8 + - - CAST( - 93 AS SIGNED ) THEN + - 91 * + ( 57 ) + MAX( ALL - ( 62 ) ) * 0 + - CAST( 30 AS SIGNED ) WHEN NULLIF ( - CAST( 71 AS SIGNED ), 87 ) THEN 19 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6867
SELECT DISTINCT - CASE - 81 WHEN 61 THEN - ( - COUNT ( * ) ) WHEN 68 * + 8 + - - CAST ( - 93 AS INTEGER ) THEN + - 91 * + ( 57 ) + MAX ( ALL - ( 62 ) ) * 0 + - CAST ( 30 AS INTEGER ) WHEN NULLIF ( - CAST ( 71 AS INTEGER ), 87 ) THEN 19 ELSE NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6868
SELECT ALL - ( - - NULLIF ( 83, CAST( + ( + 82 ) AS SIGNED ) * - ( - 68 ) ) ) * + + 13 * + 79 + - 66 AS col2
----
-85307

skipif mysql # not compatible
query I rowsort label-6868
SELECT ALL - ( - - NULLIF ( 83, CAST ( + ( + 82 ) AS INTEGER ) * - ( - 68 ) ) ) * + + 13 * + 79 + - 66 AS col2
----
-85307

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6869
SELECT - 33 / + CASE + 18 WHEN + + 36 * COALESCE ( 58, + 79 ) * - CAST( 33 AS SIGNED ) + - 35 + 44 + - - 68 * - + NULLIF ( + 4, + - COALESCE ( - - 72, MIN( ALL 96 ) * 30 ) * + COUNT( * ) ) / 12 + - 26 THEN MAX( ( 24 ) ) / COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6869
SELECT - 33 / + CASE + 18 WHEN + + 36 * COALESCE ( 58, + 79 ) * - CAST ( 33 AS INTEGER ) + - 35 + 44 + - - 68 * - + NULLIF ( + 4, + - COALESCE ( - - 72, MIN ( ALL 96 ) * 30 ) * + COUNT ( * ) ) / 12 + - 26 THEN MAX ( ( 24 ) ) / COUNT ( * ) ELSE NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6870
SELECT DISTINCT + ( - - 94 ) DIV 4 * 40
----
920

skipif mysql # not compatible
query I rowsort label-6870
SELECT DISTINCT + ( - - 94 ) / 4 * 40
----
920

query I rowsort
SELECT + 56 + 13 AS col0
----
69

onlyif mysql # aggregate syntax: 
query II rowsort label-6872
SELECT ALL + 21 + - 81 col2, 22 + + + MAX( DISTINCT - 3 ) * 59 * - 63 col0
----
-60
11173

skipif mysql # not compatible
query II rowsort label-6872
SELECT ALL + 21 + - 81 col2, 22 + + + MAX ( DISTINCT - 3 ) * 59 * - 63 col0
----
-60
11173

onlyif mysql # aggregate syntax: 
query II rowsort label-6873
SELECT - 86, 15 * + - 59 * COUNT( * ) col0
----
-86
-885

skipif mysql # not compatible
query II rowsort label-6873
SELECT - 86, 15 * + - 59 * COUNT ( * ) col0
----
-86
-885

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

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

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

query I rowsort
SELECT 13 - + 39 col1
----
-26

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6877
SELECT ALL COUNT( * ) + + + 71 * - + 61 + + 6 DIV COALESCE ( - 63, + 25 ) AS col2
----
-4330

skipif mysql # not compatible
query I rowsort label-6877
SELECT ALL COUNT ( * ) + + + 71 * - + 61 + + 6 / COALESCE ( - 63, + 25 ) AS col2
----
-4330

onlyif mysql # DIV for integer division: 
query I rowsort label-6878
SELECT 20 DIV + 29 * + + 23 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6878
SELECT 20 / + 29 * + + 23 AS col1
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6880
SELECT COUNT( 47 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-6880
SELECT COUNT ( 47 ) col2
----
1

query I rowsort
SELECT ALL 23 + + - 8 - + - 31 AS col0
----
46

query I rowsort
SELECT DISTINCT 35 * - 88
----
-3080

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

skipif mysql # not compatible
query I rowsort label-6883
SELECT + MIN ( + - 61 )
----
-61

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

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

query I rowsort
SELECT DISTINCT NULLIF ( - 77, + 13 + + 47 ) + 44 AS col2
----
-33

query II rowsort
SELECT + 63, - ( 26 ) * - 83 + 58 AS col2
----
63
2216

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6887
SELECT ALL 63 + CASE 64 WHEN - 25 * - 29 * + - 55 * - 78 * + 68 THEN - 53 WHEN + - 78 * - 43 + - - CAST( 91 AS SIGNED ) THEN - + COUNT( * ) END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6887
SELECT ALL 63 + CASE 64 WHEN - 25 * - 29 * + - 55 * - 78 * + 68 THEN - 53 WHEN + - 78 * - 43 + - - CAST ( 91 AS INTEGER ) THEN - + COUNT ( * ) END col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6888
SELECT - ( + + 44 ) * + ( + COUNT( + 50 ) ) * + 76 - - SUM( DISTINCT - 57 ) * - 23
----
-2033

skipif mysql # not compatible
query I rowsort label-6888
SELECT - ( + + 44 ) * + ( + COUNT ( + 50 ) ) * + 76 - - SUM ( DISTINCT - 57 ) * - 23
----
-2033

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

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

query I rowsort
SELECT 80 * + + 38
----
3040

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6891
SELECT ALL - COUNT( * ), + CASE + ( + COALESCE ( - - 92, + - 77 ) ) WHEN NULLIF ( 31, - ( + + 75 ) ) THEN + - 17 ELSE CAST( CASE WHEN ( - 20 ) >= - CAST( - ( - 16 ) AS SIGNED ) THEN NULL ELSE ( COALESCE ( COALESCE ( - 55, - NULLIF ( + COUNT( * ), 76 * + 43 + 48 ) / 66 ), - 89 ) ) * ( 70 * 16 ) END AS SIGNED ) + CAST( - 0 AS SIGNED ) * 26 END - 70 AS col0
----
-1
-61670

skipif mysql # not compatible
query II rowsort label-6891
SELECT ALL - COUNT ( * ), + CASE + ( + COALESCE ( - - 92, + - 77 ) ) WHEN NULLIF ( 31, - ( + + 75 ) ) THEN + - 17 ELSE CAST ( CASE WHEN ( - 20 ) >= - CAST ( - ( - 16 ) AS INTEGER ) THEN NULL ELSE ( COALESCE ( COALESCE ( - 55, - NULLIF ( + COUNT ( * ), 76 * + 43 + 48 ) / 66 ), - 89 ) ) * ( 70 * 16 ) END AS INTEGER ) + CAST ( - 0 AS INTEGER ) * 26 END - 70 AS col0
----
-1
-61670

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-6892
SELECT 87 AS col1, COUNT( * ) / - SUM( ( CAST( NULL AS SIGNED ) ) ) * + 97 - 95 * - 1 * - CAST( - + CAST( NULL AS DECIMAL ) AS SIGNED )
----
87
NULL

skipif mysql # not compatible
query II rowsort label-6892
SELECT 87 AS col1, COUNT ( * ) / - SUM ( ( CAST ( NULL AS INTEGER ) ) ) * + 97 - 95 * - 1 * - CAST ( - + CAST ( NULL AS REAL ) AS INTEGER )
----
87
NULL

query I rowsort
SELECT ALL ( 85 ) - - 72 * + 26
----
1957

query II rowsort
SELECT 95, 78 AS col2
----
95
78

query I rowsort
SELECT ALL - 26 - - 20
----
-6

query I rowsort
SELECT 70 * + COALESCE ( 90, + + 40 )
----
6300

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6897
SELECT + - 50 * - 35 + + COUNT( * ) + 5 + + + 58 + + 34 DIV 90 - - + 82, - COUNT( * ) AS col0
----
1896
-1

skipif mysql # not compatible
query II rowsort label-6897
SELECT + - 50 * - 35 + + COUNT ( * ) + 5 + + + 58 + + 34 / 90 - - + 82, - COUNT ( * ) AS col0
----
1896
-1

query I rowsort
SELECT ALL 76 * - 43 * + - 70 AS col2
----
228760

query I rowsort
SELECT - 45 + - 28
----
-73

onlyif mysql # DIV for integer division: 
query I rowsort label-6900
SELECT + 54 DIV - 14
----
-3

skipif mysql # not compatible
query I rowsort label-6900
SELECT + 54 / - 14
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-6901
SELECT + COUNT( * ) * 56 + - 78 + + 82 * 94 AS col0
----
7686

skipif mysql # not compatible
query I rowsort label-6901
SELECT + COUNT ( * ) * 56 + - 78 + + 82 * 94 AS col0
----
7686

query I rowsort
SELECT 20 * ( + 27 ) + + 4 * 38 col0
----
692

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6903
SELECT + CAST( NULL AS SIGNED ) * + NULLIF ( + 43, + 90 ) + + 90 + - COALESCE ( + 61, - 12, - - 81 ) + + - COUNT( * ) * + 79
----
NULL

skipif mysql # not compatible
query I rowsort label-6903
SELECT + CAST ( NULL AS INTEGER ) * + NULLIF ( + 43, + 90 ) + + 90 + - COALESCE ( + 61, - 12, - - 81 ) + + - COUNT ( * ) * + 79
----
NULL

query II rowsort
SELECT ALL 79 AS col0, 17 col2
----
79
17

query I rowsort
SELECT 53 + + ( 75 ) col2
----
128

query I rowsort
SELECT ALL 65 * + 80 AS col2
----
5200

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

skipif mysql # not compatible
query I rowsort label-6907
SELECT DISTINCT MIN ( DISTINCT - - 52 )
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-6908
SELECT ALL COALESCE ( COUNT( * ), 36 + + - ( - - NULLIF ( - CASE 45 WHEN + + 73 THEN - - COUNT( * ) WHEN + ( + 95 ) + + - ( - NULLIF ( + 34, - 37 ) ) + - 4 THEN - + 53 END, + + 41 / - 94 ) ) ) col0
----
1

skipif mysql # not compatible
query I rowsort label-6908
SELECT ALL COALESCE ( COUNT ( * ), 36 + + - ( - - NULLIF ( - CASE 45 WHEN + + 73 THEN - - COUNT ( * ) WHEN + ( + 95 ) + + - ( - NULLIF ( + 34, - 37 ) ) + - 4 THEN - + 53 END, + + 41 / - 94 ) ) ) col0
----
1

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

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

query I rowsort
SELECT - + 30 * NULLIF ( 6, - - ( + 48 ) )
----
-180

query I rowsort
SELECT DISTINCT - + 98 + - 19
----
-117

query II rowsort
SELECT + 14, 1 + - 51 + - ( 33 ) + + 38 + - 94 + 44 AS col2
----
14
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-6913
SELECT - - MIN( - 32 ) + + 95 * 24 + - - COUNT( * ) * ( + + 88 ) AS col0
----
2336

skipif mysql # not compatible
query I rowsort label-6913
SELECT - - MIN ( - 32 ) + + 95 * 24 + - - COUNT ( * ) * ( + + 88 ) AS col0
----
2336

query I rowsort
SELECT ALL - - 48 + - 68 AS col1
----
-20

query II rowsort
SELECT 78 col2, - ( - 51 ) * - - 21 AS col0
----
78
1071

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

skipif mysql # not compatible
query I rowsort label-6916
SELECT - CAST ( NULL AS INTEGER ) * - 41 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6917
SELECT - - 11 + 63 * + + SUM( ALL - 53 )
----
-3328

skipif mysql # not compatible
query I rowsort label-6917
SELECT - - 11 + 63 * + + SUM ( ALL - 53 )
----
-3328

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6918
SELECT - 94 + - 75 * 89 + - + 46 * - 93 * CAST( COUNT( * ) AS SIGNED )
----
-2491

skipif mysql # not compatible
query I rowsort label-6918
SELECT - 94 + - 75 * 89 + - + 46 * - 93 * CAST ( COUNT ( * ) AS INTEGER )
----
-2491

query I rowsort
SELECT ALL - 2 + + - 0 AS col2
----
-2

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

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

query I rowsort
SELECT + 64 * - 17 * + 42 AS col2
----
-45696

onlyif mysql # DIV for integer division: 
query I rowsort label-6922
SELECT - 65 DIV + 18 + 30 AS col0
----
27

skipif mysql # not compatible
query I rowsort label-6922
SELECT - 65 / + 18 + 30 AS col0
----
27

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

skipif mysql # not compatible
query I rowsort label-6923
SELECT + COUNT ( ALL - 75 ) / + 70 AS col2
----
0

query I rowsort
SELECT ( + + 71 ) col2
----
71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6925
SELECT + COALESCE ( + + 5, 67 * + 96 + 37 * - - CAST( - COUNT( * ) AS SIGNED ) * + - 3, + NULLIF ( + 60, - 62 ) + - 55 * + - 24 * SUM( + CAST( NULL AS SIGNED ) ) * + - 49 * 47 * CAST( NULL AS SIGNED ) - + + 84, - 57 + 27 * - COUNT( * ) ) AS col0
----
5

skipif mysql # not compatible
query I rowsort label-6925
SELECT + COALESCE ( + + 5, 67 * + 96 + 37 * - - CAST ( - COUNT ( * ) AS INTEGER ) * + - 3, + NULLIF ( + 60, - 62 ) + - 55 * + - 24 * SUM ( + CAST ( NULL AS INTEGER ) ) * + - 49 * 47 * CAST ( NULL AS INTEGER ) - + + 84, - 57 + 27 * - COUNT ( * ) ) AS col0
----
5

query I rowsort
SELECT - 69 + + 73
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6927
SELECT + COALESCE ( - + CAST( - 95 AS SIGNED ), CAST( NULL AS SIGNED ) ) * + + COUNT( * ) AS col2
----
95

skipif mysql # not compatible
query I rowsort label-6927
SELECT + COALESCE ( - + CAST ( - 95 AS INTEGER ), CAST ( NULL AS INTEGER ) ) * + + COUNT ( * ) AS col2
----
95

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6929
SELECT + COUNT( * ) DIV - - 74 - - + SUM( - 47 ) + - 18 col2
----
-65

skipif mysql # not compatible
query I rowsort label-6929
SELECT + COUNT ( * ) / - - 74 - - + SUM ( - 47 ) + - 18 col2
----
-65

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6930
SELECT 30 * + SUM( DISTINCT - 63 ) + - 38 + + 57 DIV + 29 + 34 + - - 68
----
-1825

skipif mysql # not compatible
query I rowsort label-6930
SELECT 30 * + SUM ( DISTINCT - 63 ) + - 38 + + 57 / + 29 + 34 + - - 68
----
-1825

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6931
SELECT DISTINCT + CAST( NULL AS SIGNED ) / - MIN( ALL - 72 ) / - - 38 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6931
SELECT DISTINCT + CAST ( NULL AS INTEGER ) / - MIN ( ALL - 72 ) / - - 38 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6932
SELECT + 64 * - COUNT( * ) + 1 col2
----
-63

skipif mysql # not compatible
query I rowsort label-6932
SELECT + 64 * - COUNT ( * ) + 1 col2
----
-63

query I rowsort
SELECT ALL 80 * - - 82 AS col2
----
6560

onlyif mysql # aggregate syntax: 
query II rowsort label-6934
SELECT + - COALESCE ( 58, - - COUNT( * ) ) * 64 + COUNT( * ), 67 + ( + 36 ) col0
----
-3711
103

skipif mysql # not compatible
query II rowsort label-6934
SELECT + - COALESCE ( 58, - - COUNT ( * ) ) * 64 + COUNT ( * ), 67 + ( + 36 ) col0
----
-3711
103

query I rowsort
SELECT - COALESCE ( + - 91, 49 - 98 ) * + + 45 * 20 * + + 88 + - 10 * 27
----
7206930

onlyif mysql # DIV for integer division: 
query I rowsort label-6936
SELECT - + 28 + - 61 DIV 96
----
-28

skipif mysql # not compatible
query I rowsort label-6936
SELECT - + 28 + - 61 / 96
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-6937
SELECT - 71 * 82 * + 21 * + 48 * - MAX( + - 43 ) + - + 11 AS col0
----
-252348779

skipif mysql # not compatible
query I rowsort label-6937
SELECT - 71 * 82 * + 21 * + 48 * - MAX ( + - 43 ) + - + 11 AS col0
----
-252348779

onlyif mysql # aggregate syntax: 
query I rowsort label-6938
SELECT + 79 * + 14 * SUM( DISTINCT 10 ) * + - 19 + 98 + + - COUNT( * ) * + 1 AS col1
----
-210043

skipif mysql # not compatible
query I rowsort label-6938
SELECT + 79 * + 14 * SUM ( DISTINCT 10 ) * + - 19 + 98 + + - COUNT ( * ) * + 1 AS col1
----
-210043

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6941
SELECT ALL CASE + 40 WHEN - 96 THEN + 18 + - COUNT( * ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6941
SELECT ALL CASE + 40 WHEN - 96 THEN + 18 + - COUNT ( * ) END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6942
SELECT ALL + 81 * 34 DIV + 44 + + 21 + 10 * + SUM( DISTINCT - ( + - ( - CAST( - 27 AS SIGNED ) ) ) ) + 9 - - 3 DIV - - 21 AS col2
----
362

skipif mysql # not compatible
query I rowsort label-6942
SELECT ALL + 81 * 34 / + 44 + + 21 + 10 * + SUM ( DISTINCT - ( + - ( - CAST ( - 27 AS INTEGER ) ) ) ) + 9 - - 3 / - - 21 AS col2
----
362

query I rowsort
SELECT + NULLIF ( + + 96, - + 62 ) AS col0
----
96

query I rowsort
SELECT DISTINCT 94 + - 45 + - + 11
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-6945
SELECT ALL + COUNT( 20 ) + - + 84
----
-83

skipif mysql # not compatible
query I rowsort label-6945
SELECT ALL + COUNT ( 20 ) + - + 84
----
-83

query I rowsort
SELECT - + 78 col1
----
-78

query I rowsort
SELECT COALESCE ( - + 24, 3 ) AS col0
----
-24

query I rowsort
SELECT + 82 * 28 * - 92 AS col1
----
-211232

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6949
SELECT - 9 DIV - COUNT( DISTINCT 26 )
----
9

skipif mysql # not compatible
query I rowsort label-6949
SELECT - 9 / - COUNT ( DISTINCT 26 )
----
9

query I rowsort
SELECT ALL 78 + + + 11 AS col0
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-6951
SELECT DISTINCT 59 * COUNT( * ) * - 42
----
-2478

skipif mysql # not compatible
query I rowsort label-6951
SELECT DISTINCT 59 * COUNT ( * ) * - 42
----
-2478

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

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

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

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

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

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

query II rowsort
SELECT 96 AS col2, 45 AS col2
----
96
45

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6958
SELECT DISTINCT + 53 * + + 57 DIV - COUNT( * ) AS col2
----
-3021

skipif mysql # not compatible
query I rowsort label-6958
SELECT DISTINCT + 53 * + + 57 / - COUNT ( * ) AS col2
----
-3021

onlyif mysql # aggregate syntax: 
query I rowsort label-6959
SELECT + 52 + - 92 - - + 20 + - 95 + 70 * - + 14 * - COUNT( + + 67 )
----
865

skipif mysql # not compatible
query I rowsort label-6959
SELECT + 52 + - 92 - - + 20 + - 95 + 70 * - + 14 * - COUNT ( + + 67 )
----
865

onlyif mysql # aggregate syntax: 
query I rowsort label-6960
SELECT + COALESCE ( - 65, + 29, 3 + + 89 * - - 56 + - + ( - COUNT( * ) ) * + 19 ) * - + 77 AS col2
----
5005

skipif mysql # not compatible
query I rowsort label-6960
SELECT + COALESCE ( - 65, + 29, 3 + + 89 * - - 56 + - + ( - COUNT ( * ) ) * + 19 ) * - + 77 AS col2
----
5005

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6961
SELECT ALL 73 DIV + + 73 - + SUM( ALL 32 ) * - COUNT( * ) AS col2
----
33

skipif mysql # not compatible
query I rowsort label-6961
SELECT ALL 73 / + + 73 - + SUM ( ALL 32 ) * - COUNT ( * ) AS col2
----
33

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6963
SELECT - COALESCE ( + - 81, 93 DIV 1, - - 25 ) * + - 89 - - 44 + 73 AS col2
----
-7092

skipif mysql # not compatible
query I rowsort label-6963
SELECT - COALESCE ( + - 81, 93 / 1, - - 25 ) * + - 89 - - 44 + 73 AS col2
----
-7092

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6965
SELECT + - 13 * + 98 * + + 21 * + COALESCE ( - 50, 46 ) + + + 24 + - 60 - - 41 + - + 68 - - 94 + - 37 - - CAST( + - 65 AS SIGNED ) * - - COUNT( DISTINCT - 15 ) * 71 - + + COUNT( * ) + 33 * + 60 * + 65 + + 56 * 82
----
1466370

skipif mysql # not compatible
query I rowsort label-6965
SELECT + - 13 * + 98 * + + 21 * + COALESCE ( - 50, 46 ) + + + 24 + - 60 - - 41 + - + 68 - - 94 + - 37 - - CAST ( + - 65 AS INTEGER ) * - - COUNT ( DISTINCT - 15 ) * 71 - + + COUNT ( * ) + 33 * + 60 * + 65 + + 56 * 82
----
1466370

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6967
SELECT + 63 * + 1 + 99 + + SUM( DISTINCT 24 ) - CAST( 73 AS SIGNED ) * 65, + CASE + - 30 WHEN - 32 THEN + 15 END / 87 * + 75 + + 87 - - 6 col1
----
-4559
NULL

skipif mysql # not compatible
query II rowsort label-6967
SELECT + 63 * + 1 + 99 + + SUM ( DISTINCT 24 ) - CAST ( 73 AS INTEGER ) * 65, + CASE + - 30 WHEN - 32 THEN + 15 END / 87 * + 75 + + 87 - - 6 col1
----
-4559
NULL

query I rowsort
SELECT ALL - 60 * 60
----
-3600

onlyif mysql # DIV for integer division: 
query I rowsort label-6969
SELECT DISTINCT + + 19 DIV + ( - + 28 )
----
0

skipif mysql # not compatible
query I rowsort label-6969
SELECT DISTINCT + + 19 / + ( - + 28 )
----
0

query I rowsort
SELECT ALL + + CASE 81 WHEN - - 56 THEN + 86 ELSE NULL END + ( 77 )
----
NULL

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

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

query I rowsort
SELECT DISTINCT 65 + + 79 AS col1
----
144

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

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

query I rowsort
SELECT + 43 + - 19 AS col2
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-6975
SELECT 60 * COALESCE ( COUNT( * ), 85, + - SUM( ALL ( + 73 ) ) )
----
60

skipif mysql # not compatible
query I rowsort label-6975
SELECT 60 * COALESCE ( COUNT ( * ), 85, + - SUM ( ALL ( + 73 ) ) )
----
60

query I rowsort
SELECT ALL 83 + 13 - + 98 AS col2
----
-2

query I rowsort
SELECT 83 * - 28 + 73
----
-2251

onlyif mysql # aggregate syntax: 
query I rowsort label-6978
SELECT CASE - - 48 WHEN 2 * - 46 * + NULLIF ( + 48, 45 * - 31 + - 41 - + 51 ) + 32 * 15 * - + 4 * + + 35 + + ( 72 ) THEN 45 * - + ( - 72 ) + 39 * 29 WHEN 4 THEN ( ( + 22 ) ) * 95 ELSE 16 + + ( + 53 + 72 ) END * - CASE + 8 WHEN COUNT( * ) THEN NULL WHEN - 66 THEN + 13 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6978
SELECT CASE - - 48 WHEN 2 * - 46 * + NULLIF ( + 48, 45 * - 31 + - 41 - + 51 ) + 32 * 15 * - + 4 * + + 35 + + ( 72 ) THEN 45 * - + ( - 72 ) + 39 * 29 WHEN 4 THEN ( ( + 22 ) ) * 95 ELSE 16 + + ( + 53 + 72 ) END * - CASE + 8 WHEN COUNT ( * ) THEN NULL WHEN - 66 THEN + 13 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6979
SELECT DISTINCT ( + + 20 ) - - + 72 + 61 + - SUM( ALL + + NULLIF ( + 11, - 3 ) ) AS col2
----
142

skipif mysql # not compatible
query I rowsort label-6979
SELECT DISTINCT ( + + 20 ) - - + 72 + 61 + - SUM ( ALL + + NULLIF ( + 11, - 3 ) ) AS col2
----
142

onlyif mysql # aggregate syntax: 
query II rowsort label-6980
SELECT - 40, - 33 + 4 + ( 38 ) * + COUNT( * ) * 72 AS col1
----
-40
2707

skipif mysql # not compatible
query II rowsort label-6980
SELECT - 40, - 33 + 4 + ( 38 ) * + COUNT ( * ) * 72 AS col1
----
-40
2707

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6981
SELECT ( 77 ) * + 36 / + CAST( NULL AS SIGNED ) AS col2, - 14
----
NULL
-14

skipif mysql # not compatible
query II rowsort label-6981
SELECT ( 77 ) * + 36 / + CAST ( NULL AS INTEGER ) AS col2, - 14
----
NULL
-14

onlyif mysql # DIV for integer division: 
query I rowsort label-6982
SELECT 64 * + 31 * - 66 DIV - + 66
----
1984

skipif mysql # not compatible
query I rowsort label-6982
SELECT 64 * + 31 * - 66 / - + 66
----
1984

onlyif mysql # DIV for integer division: 
query I rowsort label-6983
SELECT 48 DIV 46
----
1

skipif mysql # not compatible
query I rowsort label-6983
SELECT 48 / 46
----
1

query I rowsort
SELECT ALL 11 * - 82 * - + 18 AS col2
----
16236

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6985
SELECT DISTINCT CASE + COUNT( + - 86 ) WHEN + 12 THEN - 26 * CAST( NULL AS SIGNED ) + 56 ELSE + COUNT( * ) * - - 37 END * - COUNT( DISTINCT - 38 )
----
-37

skipif mysql # not compatible
query I rowsort label-6985
SELECT DISTINCT CASE + COUNT ( + - 86 ) WHEN + 12 THEN - 26 * CAST ( NULL AS INTEGER ) + 56 ELSE + COUNT ( * ) * - - 37 END * - COUNT ( DISTINCT - 38 )
----
-37

query I rowsort
SELECT DISTINCT - 94 / - 37 * 7 / - CASE + - 23 WHEN - - 35 THEN - 44 + + 83 + NULLIF ( + 30, + - 36 * 2 ) END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6987
SELECT ALL 59, 29 + - + COALESCE ( COUNT( * ), + SUM( ALL - ( + - 34 ) ) * 46 ) AS col0
----
59
28

skipif mysql # not compatible
query II rowsort label-6987
SELECT ALL 59, 29 + - + COALESCE ( COUNT ( * ), + SUM ( ALL - ( + - 34 ) ) * 46 ) AS col0
----
59
28

query II rowsort
SELECT 3 col0, 90
----
3
90

onlyif mysql # DIV for integer division: 
query II rowsort label-6989
SELECT ALL 61 AS col2, + 83 DIV 9
----
61
9

skipif mysql # not compatible
query II rowsort label-6989
SELECT ALL 61 AS col2, + 83 / 9
----
61
9

query II rowsort
SELECT DISTINCT 19, ( - - 84 ) col1
----
19
84

query I rowsort
SELECT ( + + 14 ) * - + 99
----
-1386

query II rowsort
SELECT 98, 59 AS col2
----
98
59

query I rowsort
SELECT ALL + 4 + + - 83 AS col1
----
-79

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6995
SELECT ALL - - CAST( - + 24 AS SIGNED ) + - + 22
----
-46

skipif mysql # not compatible
query I rowsort label-6995
SELECT ALL - - CAST ( - + 24 AS INTEGER ) + - + 22
----
-46

query II rowsort
SELECT ALL - + 92, 53 + + + 85 AS col2
----
-92
138

onlyif mysql # DIV for integer division: 
query I rowsort label-6997
SELECT 5 DIV - 23 * 93
----
0

skipif mysql # not compatible
query I rowsort label-6997
SELECT 5 / - 23 * 93
----
0

query I rowsort
SELECT ALL + 20 + - + 62
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-6999
SELECT DISTINCT - + 54 + 25 + + 7 + - COUNT( * ) * + 5 * + + 46 + + NULLIF ( + 70, - - AVG ( 51 ) ) * + - 85 AS col1
----
-6202

skipif mysql # not compatible
query I rowsort label-6999
SELECT DISTINCT - + 54 + 25 + + 7 + - COUNT ( * ) * + 5 * + + 46 + + NULLIF ( + 70, - - AVG ( 51 ) ) * + - 85 AS col1
----
-6202

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7001
SELECT - 84 + - + CASE - 45 WHEN ( - 50 ) THEN NULL WHEN CASE - 27 WHEN + 29 THEN NULL WHEN - 29 * CASE 33 WHEN - - MIN( - ( + NULLIF ( ( - 83 ), 17 ) ) ) * MIN( - 47 ) + + COUNT( * ) + 1 / - 79 THEN ( 33 ) * - 21 + + ( 0 + 35 ) END THEN NULL ELSE 48 END + - 4 THEN NULL WHEN - 33 * 3 + 9 THEN - 35 * + 41 END - + 71
----
NULL

skipif mysql # not compatible
query I rowsort label-7001
SELECT - 84 + - + CASE - 45 WHEN ( - 50 ) THEN NULL WHEN CASE - 27 WHEN + 29 THEN NULL WHEN - 29 * CASE 33 WHEN - - MIN ( - ( + NULLIF ( ( - 83 ), 17 ) ) ) * MIN ( - 47 ) + + COUNT ( * ) + 1 / - 79 THEN ( 33 ) * - 21 + + ( 0 + 35 ) END THEN NULL ELSE 48 END + - 4 THEN NULL WHEN - 33 * 3 + 9 THEN - 35 * + 41 END - + 71
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7002
SELECT + COALESCE ( 97, + 71, - - 65 DIV - + 21 ) AS col0
----
97

skipif mysql # not compatible
query I rowsort label-7002
SELECT + COALESCE ( 97, + 71, - - 65 / - + 21 ) AS col0
----
97

onlyif mysql # DIV for integer division: 
query I rowsort label-7003
SELECT 85 DIV 12 AS col1
----
7

skipif mysql # not compatible
query I rowsort label-7003
SELECT 85 / 12 AS col1
----
7

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

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

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

query I rowsort
SELECT ALL + 79 + - 3 + - 21 * 5 + 97 col2
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-7007
SELECT MAX( DISTINCT 55 ) AS col0
----
55

skipif mysql # not compatible
query I rowsort label-7007
SELECT MAX ( DISTINCT 55 ) AS col0
----
55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7008
SELECT COALESCE ( + 59, ( COUNT( * ) ) + + - 81 + - 64 DIV 59 * 63 + + 22 * 57 + - CASE - 83 WHEN + 33 + 19 * - - 35 + - 14 THEN 28 * - + 67 * + 72 - - - NULLIF ( - + 60, - 46 ) ELSE NULL END DIV 34, ( 55 ) DIV + COUNT( * ) ) DIV NULLIF ( + COUNT( * ) * 24, COUNT( * ) ) AS col0
----
2

skipif mysql # not compatible
query I rowsort label-7008
SELECT COALESCE ( + 59, ( COUNT ( * ) ) + + - 81 + - 64 / 59 * 63 + + 22 * 57 + - CASE - 83 WHEN + 33 + 19 * - - 35 + - 14 THEN 28 * - + 67 * + 72 - - - NULLIF ( - + 60, - 46 ) ELSE NULL END / 34, ( 55 ) / + COUNT ( * ) ) / NULLIF ( + COUNT ( * ) * 24, COUNT ( * ) ) AS col0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-7009
SELECT + COALESCE ( - + 21, - 70 + - SUM( + 68 ), 94 + + + 10 ) + + COUNT( * ) AS col1
----
-20

skipif mysql # not compatible
query I rowsort label-7009
SELECT + COALESCE ( - + 21, - 70 + - SUM ( + 68 ), 94 + + + 10 ) + + COUNT ( * ) AS col1
----
-20

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

query II rowsort
SELECT + 66 AS col0, - CASE - 7 WHEN - 79 THEN + + 10 + - 45 END
----
66
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7012
SELECT ALL - - 49 * - - 78 * + CAST( - + COUNT( * ) AS SIGNED )
----
-3822

skipif mysql # not compatible
query I rowsort label-7012
SELECT ALL - - 49 * - - 78 * + CAST ( - + COUNT ( * ) AS INTEGER )
----
-3822

onlyif mysql # aggregate syntax: 
query I rowsort label-7013
SELECT DISTINCT + COUNT( + ( + 4 ) ) - - COUNT( * ) - - COUNT( * ) * + 32 * + COALESCE ( - + ( 26 ), 67 ) col1
----
-830

skipif mysql # not compatible
query I rowsort label-7013
SELECT DISTINCT + COUNT ( + ( + 4 ) ) - - COUNT ( * ) - - COUNT ( * ) * + 32 * + COALESCE ( - + ( 26 ), 67 ) col1
----
-830

onlyif mysql # aggregate syntax: 
query II rowsort label-7014
SELECT ALL - 33, MIN( + NULLIF ( - 34, + + ( + ( - ( + 16 ) ) ) - 7 ) ) AS col1
----
-33
-34

skipif mysql # not compatible
query II rowsort label-7014
SELECT ALL - 33, MIN ( + NULLIF ( - 34, + + ( + ( - ( + 16 ) ) ) - 7 ) ) AS col1
----
-33
-34

query I rowsort
SELECT 77 * 51
----
3927

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7016
SELECT NULLIF ( - 17, 53 ) + + - 40 + + CAST( + 28 AS SIGNED ) * + - 2 - - + 72 * 63 col0
----
4423

skipif mysql # not compatible
query I rowsort label-7016
SELECT NULLIF ( - 17, 53 ) + + - 40 + + CAST ( + 28 AS INTEGER ) * + - 2 - - + 72 * 63 col0
----
4423

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

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

query I rowsort
SELECT 64 * + 33 AS col1
----
2112

query I rowsort
SELECT 54 * + - 45 * 59 AS col0
----
-143370

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

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

query I rowsort
SELECT ALL 51 + + 99
----
150

onlyif mysql # aggregate syntax: 
query I rowsort label-7022
SELECT - SUM( DISTINCT + 73 )
----
-73

skipif mysql # not compatible
query I rowsort label-7022
SELECT - SUM ( DISTINCT + 73 )
----
-73

query II rowsort
SELECT 15 + - 59 AS col0, + 50
----
-44
50

onlyif mysql # aggregate syntax: 
query I rowsort label-7024
SELECT DISTINCT 56 + + 63 * + + COUNT( * ) AS col2
----
119

skipif mysql # not compatible
query I rowsort label-7024
SELECT DISTINCT 56 + + 63 * + + COUNT ( * ) AS col2
----
119

query I rowsort
SELECT ALL 14 * 44 + 15
----
631

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7026
SELECT DISTINCT - - 30 * + 29 * - - 92 + + 58 + - 9 + + 0 DIV - MAX( - 25 ) AS col1
----
80089

skipif mysql # not compatible
query I rowsort label-7026
SELECT DISTINCT - - 30 * + 29 * - - 92 + + 58 + - 9 + + 0 / - MAX ( - 25 ) AS col1
----
80089

query I rowsort
SELECT DISTINCT 14 * - - 33 + - 54 AS col2
----
408

query I rowsort
SELECT + - 20 col2
----
-20

query I rowsort
SELECT ALL + + CASE - ( ( - CASE - 65 WHEN 22 / - 41 - - 52 + - 76 THEN NULL WHEN + + 58 THEN 42 ELSE NULL END ) ) WHEN - 7 THEN - 29 END * 23 + - 59 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7030
SELECT - + SUM( - 45 ) * CAST( + + COUNT( * ) AS SIGNED ) + - 69 - - 74 + 36 * - 15 - 98 + - + 62
----
-650

skipif mysql # not compatible
query I rowsort label-7030
SELECT - + SUM ( - 45 ) * CAST ( + + COUNT ( * ) AS INTEGER ) + - 69 - - 74 + 36 * - 15 - 98 + - + 62
----
-650

onlyif mysql # aggregate syntax: 
query II rowsort label-7031
SELECT ALL + COUNT( * ) * 77 + + 46 AS col0, 91 AS col0
----
123
91

skipif mysql # not compatible
query II rowsort label-7031
SELECT ALL + COUNT ( * ) * 77 + + 46 AS col0, 91 AS col0
----
123
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7032
SELECT DISTINCT - 75 * CAST( NULL AS SIGNED ) + 12 + 49 + + COUNT( * ) * + - CAST( + 35 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7032
SELECT DISTINCT - 75 * CAST ( NULL AS INTEGER ) + 12 + 49 + + COUNT ( * ) * + - CAST ( + 35 AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7033
SELECT ALL - - COUNT( * ) * ( - COUNT( * ) ) * - 76 + 43 + - + ( + 5 ) + + CAST( COALESCE ( + 71, + + ( + - 58 ), - + 26 ) AS SIGNED ) + + + 37 - - 15 * - MIN( - NULLIF ( + 88, 42 * - + 97 + + - 65 ) ) AS col1
----
1542

skipif mysql # not compatible
query I rowsort label-7033
SELECT ALL - - COUNT ( * ) * ( - COUNT ( * ) ) * - 76 + 43 + - + ( + 5 ) + + CAST ( COALESCE ( + 71, + + ( + - 58 ), - + 26 ) AS INTEGER ) + + + 37 - - 15 * - MIN ( - NULLIF ( + 88, 42 * - + 97 + + - 65 ) ) AS col1
----
1542

query I rowsort
SELECT - 80 * - - 45 - + ( - 26 ) AS col1
----
-3574

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7035
SELECT - - 67 / CAST( NULL AS SIGNED ) - 78 + + 4 * + AVG ( DISTINCT ( - + 31 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7035
SELECT - - 67 / CAST ( NULL AS INTEGER ) - 78 + + 4 * + AVG ( DISTINCT ( - + 31 ) )
----
NULL

query I rowsort
SELECT ALL - NULLIF ( + + 70, 0 ) * + 1 + - 57 - + + 92 AS col2
----
-219

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7037
SELECT ALL + COALESCE ( + ( + 87 ), + 1, + 51 ), 44 - + 81 + CAST( ( - - 97 ) AS SIGNED ) - - 39 AS col2
----
87
99

skipif mysql # not compatible
query II rowsort label-7037
SELECT ALL + COALESCE ( + ( + 87 ), + 1, + 51 ), 44 - + 81 + CAST ( ( - - 97 ) AS INTEGER ) - - 39 AS col2
----
87
99

onlyif mysql # aggregate syntax: 
query I rowsort label-7038
SELECT - - 76 * + ( - COUNT( * ) ) + 13
----
-63

skipif mysql # not compatible
query I rowsort label-7038
SELECT - - 76 * + ( - COUNT ( * ) ) + 13
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-7039
SELECT MAX( ALL 19 ) col1
----
19

skipif mysql # not compatible
query I rowsort label-7039
SELECT MAX ( ALL 19 ) col1
----
19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7040
SELECT - 29 + - - ( + + CAST( + 79 AS SIGNED ) ) * - - 12 AS col1
----
919

skipif mysql # not compatible
query I rowsort label-7040
SELECT - 29 + - - ( + + CAST ( + 79 AS INTEGER ) ) * - - 12 AS col1
----
919

onlyif mysql # DIV for integer division: 
query I rowsort label-7041
SELECT + 35 DIV 75
----
0

skipif mysql # not compatible
query I rowsort label-7041
SELECT + 35 / 75
----
0

query I rowsort
SELECT ALL ( ( - - 70 ) ) AS col1
----
70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7043
SELECT DISTINCT CASE + 48 WHEN + + 81 THEN - 54 * 39 / - ( - CAST( 40 AS SIGNED ) ) + - 96 + + 15 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7043
SELECT DISTINCT CASE + 48 WHEN + + 81 THEN - 54 * 39 / - ( - CAST ( 40 AS INTEGER ) ) + - 96 + + 15 ELSE NULL END AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7044
SELECT ALL - CAST( NULL AS SIGNED ) / + 76 * + 8
----
NULL

skipif mysql # not compatible
query I rowsort label-7044
SELECT ALL - CAST ( NULL AS INTEGER ) / + 76 * + 8
----
NULL

query I rowsort
SELECT ALL 11 * + - 88
----
-968

query I rowsort
SELECT DISTINCT + 94 * - 48
----
-4512

query I rowsort
SELECT DISTINCT - 22 + - 19 AS col1
----
-41

query I rowsort
SELECT ALL + 67 + 49
----
116

query I rowsort
SELECT + 45 * 26 AS col0
----
1170

query I rowsort
SELECT ALL 51 + + 1 AS col1
----
52

query I rowsort
SELECT - 57 + - 2
----
-59

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

skipif mysql # not compatible
query II rowsort label-7052
SELECT - COUNT ( * ) AS col2, 9 AS col2
----
-1
9

query II rowsort
SELECT ALL 24 AS col0, ( + 48 ) + + + 18 AS col0
----
24
66

query I rowsort
SELECT + 9 * - 26
----
-234

query I rowsort
SELECT ALL - 4 + - 91 - + 35 * - 40
----
1305

onlyif mysql # aggregate syntax: 
query I rowsort label-7056
SELECT ALL + 50 + + - ( - 8 ) + - + ( + - 1 ) - + - 3 * SUM( - - 13 )
----
98

skipif mysql # not compatible
query I rowsort label-7056
SELECT ALL + 50 + + - ( - 8 ) + - + ( + - 1 ) - + - 3 * SUM ( - - 13 )
----
98

query I rowsort
SELECT + - 92 + - 52
----
-144

onlyif mysql # aggregate syntax: 
query I rowsort label-7058
SELECT - + 42 * - 20 + 75 + - - COUNT( * ) + + 2 AS col0
----
918

skipif mysql # not compatible
query I rowsort label-7058
SELECT - + 42 * - 20 + 75 + - - COUNT ( * ) + + 2 AS col0
----
918

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7059
SELECT ALL + 85 DIV - - 71 + - 24 * - + ( MAX( - 18 ) ) + - 37 col2
----
-468

skipif mysql # not compatible
query I rowsort label-7059
SELECT ALL + 85 / - - 71 + - 24 * - + ( MAX ( - 18 ) ) + - 37 col2
----
-468

onlyif mysql # DIV for integer division: 
query I rowsort label-7060
SELECT + - 28 DIV + - ( + + 75 ) + + 10
----
10

skipif mysql # not compatible
query I rowsort label-7060
SELECT + - 28 / + - ( + + 75 ) + + 10
----
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7061
SELECT - 10 AS col1, CAST( NULL AS SIGNED ) * + COALESCE ( 53, + - COUNT( - + 52 ) )
----
-10
NULL

skipif mysql # not compatible
query II rowsort label-7061
SELECT - 10 AS col1, CAST ( NULL AS INTEGER ) * + COALESCE ( 53, + - COUNT ( - + 52 ) )
----
-10
NULL

query II rowsort
SELECT ALL 49 * 64 + - 67 AS col2, + 43 * - - 68
----
3069
2924

query I rowsort
SELECT - 88 * 69 AS col1
----
-6072

query II rowsort
SELECT ALL + - 72, 15 * 13 AS col0
----
-72
195

query I rowsort
SELECT DISTINCT - 35 * - 89 AS col2
----
3115

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7066
SELECT DISTINCT + 13 DIV + + 14 * + - COUNT( DISTINCT + - 26 ) - 60 - - 16 + MIN( + 44 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7066
SELECT DISTINCT + 13 / + + 14 * + - COUNT ( DISTINCT + - 26 ) - 60 - - 16 + MIN ( + 44 ) AS col1
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-7067
SELECT DISTINCT - 6 DIV + 91 - 6 AS col0, + 38 DIV - 33
----
-6
-1

skipif mysql # not compatible
query II rowsort label-7067
SELECT DISTINCT - 6 / + 91 - 6 AS col0, + 38 / - 33
----
-6
-1

query II rowsort
SELECT ALL + + 38 AS col0, 60
----
38
60

query I rowsort
SELECT - + 16 + - 75 AS col2
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-7070
SELECT ( - CASE + 0 WHEN + + 20 + 32 * + + COUNT( * ) * 28 / + + ( + COUNT( DISTINCT - 16 ) ) + + + 94 * - + 45 THEN NULL WHEN + 48 THEN 51 ELSE NULL END ) * + MIN( 94 ) + - + 45 * 38 + + + 1
----
NULL

skipif mysql # not compatible
query I rowsort label-7070
SELECT ( - CASE + 0 WHEN + + 20 + 32 * + + COUNT ( * ) * 28 / + + ( + COUNT ( DISTINCT - 16 ) ) + + + 94 * - + 45 THEN NULL WHEN + 48 THEN 51 ELSE NULL END ) * + MIN ( 94 ) + - + 45 * 38 + + + 1
----
NULL

query I rowsort
SELECT + 35 * 96 * - - 27 * + 27 + + - 28
----
2449412

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7072
SELECT ALL + - 88, - CAST( - + 57 AS SIGNED ) * 20 AS col1
----
-88
1140

skipif mysql # not compatible
query II rowsort label-7072
SELECT ALL + - 88, - CAST ( - + 57 AS INTEGER ) * 20 AS col1
----
-88
1140

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7074
SELECT - 23 * + - COUNT( * ) * + 43 * ( 71 )
----
70219

skipif mysql # not compatible
query I rowsort label-7074
SELECT - 23 * + - COUNT ( * ) * + 43 * ( 71 )
----
70219

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7076
SELECT DISTINCT - 98 * - + CAST( + 18 AS SIGNED ) col0
----
1764

skipif mysql # not compatible
query I rowsort label-7076
SELECT DISTINCT - 98 * - + CAST ( + 18 AS INTEGER ) col0
----
1764

onlyif mysql # aggregate syntax: 
query II rowsort label-7077
SELECT ALL - 8 * + 34 AS col1, 20 * - 22 * + + ( 27 ) + - - MIN( - + 41 ) + - 18 - - 74 * - 51 AS col1
----
-272
-15713

skipif mysql # not compatible
query II rowsort label-7077
SELECT ALL - 8 * + 34 AS col1, 20 * - 22 * + + ( 27 ) + - - MIN ( - + 41 ) + - 18 - - 74 * - 51 AS col1
----
-272
-15713

query I rowsort
SELECT DISTINCT 51 * 29 + + 85 - 57 AS col1
----
1507

onlyif mysql # aggregate syntax: 
query II rowsort label-7079
SELECT NULLIF ( + NULLIF ( - 61, CASE + 72 WHEN + 66 THEN NULL WHEN + + 48 THEN + NULLIF ( - 14, AVG ( - 61 ) ) + ( + - SUM( - 62 ) ) * + - COUNT( * ) WHEN - COUNT( * ) + - 34 THEN + 34 * + 30 ELSE + 27 END + 48 ), 20 ) AS col1, 72 col0
----
-61
72

skipif mysql # not compatible
query II rowsort label-7079
SELECT NULLIF ( + NULLIF ( - 61, CASE + 72 WHEN + 66 THEN NULL WHEN + + 48 THEN + NULLIF ( - 14, AVG ( - 61 ) ) + ( + - SUM ( - 62 ) ) * + - COUNT ( * ) WHEN - COUNT ( * ) + - 34 THEN + 34 * + 30 ELSE + 27 END + 48 ), 20 ) AS col1, 72 col0
----
-61
72

query I rowsort
SELECT DISTINCT 57 * + 1 + + ( 82 ) * - 49 AS col2
----
-3961

onlyif mysql # aggregate syntax: 
query II rowsort label-7081
SELECT DISTINCT 25 * + COUNT( * ) * - - ( + - SUM( DISTINCT + NULLIF ( + NULLIF ( + 58, - - 94 + COALESCE ( - ( - 21 ), + - 41 ) ), - 13 * 14 ) ) ) + + NULLIF ( + 99, - + 42 ), + 64 AS col2
----
-1351
64

skipif mysql # not compatible
query II rowsort label-7081
SELECT DISTINCT 25 * + COUNT ( * ) * - - ( + - SUM ( DISTINCT + NULLIF ( + NULLIF ( + 58, - - 94 + COALESCE ( - ( - 21 ), + - 41 ) ), - 13 * 14 ) ) ) + + NULLIF ( + 99, - + 42 ), + 64 AS col2
----
-1351
64

query I rowsort
SELECT ALL 94 * + - 65 + - 47
----
-6157

query I rowsort
SELECT ALL 0 * 90 + + - 12
----
-12

query I rowsort
SELECT - 16 - + 7 + + 72
----
49

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7085
SELECT - NULLIF ( + COUNT( * ), - - 41 - 54 * CAST( NULL AS DECIMAL ) )
----
-1

skipif mysql # not compatible
query I rowsort label-7085
SELECT - NULLIF ( + COUNT ( * ), - - 41 - 54 * CAST ( NULL AS REAL ) )
----
-1

query I rowsort
SELECT DISTINCT - 36 + + - 65 + - + 87
----
-188

query I rowsort
SELECT ALL + 45 * 37 AS col0
----
1665

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7088
SELECT DISTINCT + 36 + + CAST( + 74 AS SIGNED ) * - 34, MAX( + 79 ) AS col1
----
-2480
79

skipif mysql # not compatible
query II rowsort label-7088
SELECT DISTINCT + 36 + + CAST ( + 74 AS INTEGER ) * - 34, MAX ( + 79 ) AS col1
----
-2480
79

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7089
SELECT DISTINCT + 64 DIV + 2 * + NULLIF ( + - COUNT( * ), - + 60 )
----
-32

skipif mysql # not compatible
query I rowsort label-7089
SELECT DISTINCT + 64 / + 2 * + NULLIF ( + - COUNT ( * ), - + 60 )
----
-32

onlyif mysql # aggregate syntax: 
query III rowsort label-7090
SELECT ALL + COUNT( * ) * + 96, - 75 - + + 59 - + NULLIF ( - 48, - - 1 ) AS col2, + NULLIF ( + 86, + 84 + - COUNT( * ) + + 93 + 22 / COALESCE ( 93, 65 ) ) * 96 * 22 col0
----
96
-86
181632

skipif mysql # not compatible
query III rowsort label-7090
SELECT ALL + COUNT ( * ) * + 96, - 75 - + + 59 - + NULLIF ( - 48, - - 1 ) AS col2, + NULLIF ( + 86, + 84 + - COUNT ( * ) + + 93 + 22 / COALESCE ( 93, 65 ) ) * 96 * 22 col0
----
96
-86
181632

onlyif mysql # aggregate syntax: 
query I rowsort label-7091
SELECT COUNT( * ) + - 90 * 87 * - NULLIF ( - + 32, SUM( + 11 ) ) + - + 31
----
-250590

skipif mysql # not compatible
query I rowsort label-7091
SELECT COUNT ( * ) + - 90 * 87 * - NULLIF ( - + 32, SUM ( + 11 ) ) + - + 31
----
-250590

query I rowsort
SELECT ALL - 41 - + 48 + + 55 * - + 18 AS col2
----
-1079

onlyif mysql # aggregate syntax: 
query I rowsort label-7093
SELECT DISTINCT - 8 - + + 48 + + - MAX( ALL + + 74 ) * + 34 * 93
----
-234044

skipif mysql # not compatible
query I rowsort label-7093
SELECT DISTINCT - 8 - + + 48 + + - MAX ( ALL + + 74 ) * + 34 * 93
----
-234044

onlyif mysql # aggregate syntax: 
query I rowsort label-7094
SELECT 83 * + COUNT( ALL - NULLIF ( 37, - + 24 ) )
----
83

skipif mysql # not compatible
query I rowsort label-7094
SELECT 83 * + COUNT ( ALL - NULLIF ( 37, - + 24 ) )
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-7095
SELECT DISTINCT + 47 - CASE 71 WHEN 64 THEN + 45 WHEN + 21 + + 25 THEN NULL ELSE - - COUNT( * ) END AS col0
----
46

skipif mysql # not compatible
query I rowsort label-7095
SELECT DISTINCT + 47 - CASE 71 WHEN 64 THEN + 45 WHEN + 21 + + 25 THEN NULL ELSE - - COUNT ( * ) END AS col0
----
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7096
SELECT + 44 * + 45 * - MAX( DISTINCT + + CAST( + 96 AS SIGNED ) ) * + ( + 68 ) * 28
----
-361912320

skipif mysql # not compatible
query I rowsort label-7096
SELECT + 44 * + 45 * - MAX ( DISTINCT + + CAST ( + 96 AS INTEGER ) ) * + ( + 68 ) * 28
----
-361912320

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

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

query I rowsort
SELECT DISTINCT + 67 - - ( + 54 ) * CASE - - 0 WHEN + 75 + - 85 * + 3 * - - 18 + - 16 THEN + 89 * + 51 * - 52 + - + 34 + 34 WHEN + 25 THEN NULL END / + 23 - 66 * + 23 - + ( - + 85 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7099
SELECT + ( COUNT( + 40 ) ) * 42 * - - ( + 20 ) AS col1
----
840

skipif mysql # not compatible
query I rowsort label-7099
SELECT + ( COUNT ( + 40 ) ) * 42 * - - ( + 20 ) AS col1
----
840

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7100
SELECT ALL ( - COUNT( * ) ) * + CASE 14 WHEN - 98 THEN NULL WHEN - 60 + + 3 + COUNT( * ) * + 56 - + ( 24 ) THEN - - 99 + + 11 WHEN + - CASE WHEN NOT ( NOT ( NOT ( CASE + 83 WHEN + 10 THEN - 55 * - 7 ELSE NULL END ) IS NOT NULL ) ) THEN COUNT( * ) * 8 ELSE NULL END * + ( - SUM( + 79 ) + - SUM( DISTINCT CAST( 99 AS SIGNED ) ) * 28 ) THEN NULL ELSE NULL END + - ( + 99 + - 11 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7100
SELECT ALL ( - COUNT ( * ) ) * + CASE 14 WHEN - 98 THEN NULL WHEN - 60 + + 3 + COUNT ( * ) * + 56 - + ( 24 ) THEN - - 99 + + 11 WHEN + - CASE WHEN NOT ( NOT ( NOT ( CASE + 83 WHEN + 10 THEN - 55 * - 7 ELSE NULL END ) IS NOT NULL ) ) THEN COUNT ( * ) * 8 ELSE NULL END * + ( - SUM ( + 79 ) + - SUM ( DISTINCT CAST ( 99 AS INTEGER ) ) * 28 ) THEN NULL ELSE NULL END + - ( + 99 + - 11 )
----
NULL

query I rowsort
SELECT - 21 * - 10 * + - 62 - - ( + 80 ) + - - 60 AS col2
----
-12880

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7102
SELECT 60 / + + CASE - 57 WHEN - 28 * - ( - + COUNT( CAST( NULL AS DECIMAL ) ) ) THEN - + NULLIF ( - 85, - - 39 ) * - 78 WHEN - - CASE COALESCE ( - 93, + 17 * - 51 ) WHEN - + 17 / + 90 * + + 23 THEN - + 19 * + - SUM( 44 ) WHEN - 97 THEN NULL END THEN NULL ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7102
SELECT 60 / + + CASE - 57 WHEN - 28 * - ( - + COUNT ( CAST ( NULL AS REAL ) ) ) THEN - + NULLIF ( - 85, - - 39 ) * - 78 WHEN - - CASE COALESCE ( - 93, + 17 * - 51 ) WHEN - + 17 / + 90 * + + 23 THEN - + 19 * + - SUM ( 44 ) WHEN - 97 THEN NULL END THEN NULL ELSE NULL END AS col2
----
NULL

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

skipif mysql # not compatible
query I rowsort label-7103
SELECT ALL - COALESCE ( + 29, CAST ( NULL AS INTEGER ) )
----
-29

onlyif mysql # DIV for integer division: 
query II rowsort label-7104
SELECT ALL ( - - ( + + 43 ) ) * - 66 AS col1, 78 DIV + 5 - + 8
----
-2838
7

skipif mysql # not compatible
query II rowsort label-7104
SELECT ALL ( - - ( + + 43 ) ) * - 66 AS col1, 78 / + 5 - + 8
----
-2838
7

query I rowsort
SELECT ALL - 4 * + 0 * - - 48 col1
----
0

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7107
SELECT DISTINCT CAST( NULL AS SIGNED ) * - + NULLIF ( + 38, + 93 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7107
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - + NULLIF ( + 38, + 93 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7108
SELECT ALL COUNT( * ) * 90 AS col0
----
90

skipif mysql # not compatible
query I rowsort label-7108
SELECT ALL COUNT ( * ) * 90 AS col0
----
90

query I rowsort
SELECT ALL + 49 + - + ( - 30 ) AS col1
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-7110
SELECT ALL 41 + + COUNT( * ) + + 95 AS col2
----
137

skipif mysql # not compatible
query I rowsort label-7110
SELECT ALL 41 + + COUNT ( * ) + + 95 AS col2
----
137

onlyif mysql # aggregate syntax: 
query I rowsort label-7111
SELECT 48 + MAX( ALL + 81 ) * - + 40 + + + COUNT( ALL - + 44 ) AS col2
----
-3191

skipif mysql # not compatible
query I rowsort label-7111
SELECT 48 + MAX ( ALL + 81 ) * - + 40 + + + COUNT ( ALL - + 44 ) AS col2
----
-3191

onlyif mysql # aggregate syntax: 
query I rowsort label-7112
SELECT NULLIF ( + 4, - + 56 + - 48 ) * + 65 - + + COUNT( * ) AS col1
----
259

skipif mysql # not compatible
query I rowsort label-7112
SELECT NULLIF ( + 4, - + 56 + - 48 ) * + 65 - + + COUNT ( * ) AS col1
----
259

query I rowsort
SELECT 89 * - - COALESCE ( - - 81, + 83 ) AS col1
----
7209

query I rowsort
SELECT ALL 34 + + - 40 - + + 66 AS col2
----
-72

onlyif mysql # DIV for integer division: 
query II rowsort label-7115
SELECT DISTINCT - 31 col2, - COALESCE ( - 58, 64, 98 DIV - - 35 )
----
-31
58

skipif mysql # not compatible
query II rowsort label-7115
SELECT DISTINCT - 31 col2, - COALESCE ( - 58, 64, 98 / - - 35 )
----
-31
58

query I rowsort
SELECT 2 * - 50 * - 67 * + 43 AS col2
----
288100

query I rowsort
SELECT + 40 * ( 73 ) + 46 - + 19
----
2947

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7119
SELECT ALL 75 + + NULLIF ( - 43, + 15 / 49 + + 13 ) * + + CASE - + 98 WHEN - COUNT( * ) + - COUNT( * ) * + 78 THEN NULL WHEN - 54 THEN + 88 - - 0 + MIN( - 73 ) / - - 30 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7119
SELECT ALL 75 + + NULLIF ( - 43, + 15 / 49 + + 13 ) * + + CASE - + 98 WHEN - COUNT ( * ) + - COUNT ( * ) * + 78 THEN NULL WHEN - 54 THEN + 88 - - 0 + MIN ( - 73 ) / - - 30 END
----
NULL

query I rowsort
SELECT ALL 92 * - + 1 AS col2
----
-92

query I rowsort
SELECT DISTINCT + 59 * - CASE 91 WHEN - 79 * + + 28 * - 25 THEN NULL WHEN ( + 22 ) + + 88 THEN - + 29 / + + 89 * 17 * 66 / - 51 + + + 83 END AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7122
SELECT ( - 84 ) DIV - SUM( - 88 )
----
0

skipif mysql # not compatible
query I rowsort label-7122
SELECT ( - 84 ) / - SUM ( - 88 )
----
0

query I rowsort
SELECT 27 + CASE - - 21 WHEN + 36 THEN NULL WHEN + 19 THEN NULL ELSE 70 END
----
97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7124
SELECT COUNT( * ) + + 48 DIV - 51 * - 65 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-7124
SELECT COUNT ( * ) + + 48 / - 51 * - 65 AS col1
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7125
SELECT - MAX( DISTINCT 51 ) DIV 41
----
-1

skipif mysql # not compatible
query I rowsort label-7125
SELECT - MAX ( DISTINCT 51 ) / 41
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-7126
SELECT ALL + - 82 DIV - + 97
----
0

skipif mysql # not compatible
query I rowsort label-7126
SELECT ALL + - 82 / - + 97
----
0

query I rowsort
SELECT + 1 + - COALESCE ( 88, + - 50 )
----
-87

onlyif mysql # DIV for integer division: 
query II rowsort label-7128
SELECT DISTINCT + + ( - - 86 ) DIV + 88 AS col1, - 42 AS col2
----
0
-42

skipif mysql # not compatible
query II rowsort label-7128
SELECT DISTINCT + + ( - - 86 ) / + 88 AS col1, - 42 AS col2
----
0
-42

query I rowsort
SELECT + 28 * + - 17 AS col0
----
-476

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7130
SELECT ALL + 60 / - - 30 * - SUM( ALL + 51 ) * - + CAST( NULL AS SIGNED ) * + 8 + - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7130
SELECT ALL + 60 / - - 30 * - SUM ( ALL + 51 ) * - + CAST ( NULL AS INTEGER ) * + 8 + - COUNT ( * ) AS col2
----
NULL

query I rowsort
SELECT 5 - - 38 + - 48
----
-5

query I rowsort
SELECT + 41 * - 29 AS col0
----
-1189

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7133
SELECT - - 8 col2, CASE + 5 WHEN - ( + 48 ) + + 54 THEN + 64 WHEN - 6 THEN NULLIF ( + 68, - - 30 ) + 63 + - CASE - ( - CAST( NULL AS SIGNED ) ) WHEN + 72 THEN NULL WHEN + 29 THEN NULL ELSE 19 * - + 5 END WHEN + COUNT( * ) + + 23 THEN - - 82 END * SUM( ALL - - ( - + 88 ) )
----
8
NULL

skipif mysql # not compatible
query II rowsort label-7133
SELECT - - 8 col2, CASE + 5 WHEN - ( + 48 ) + + 54 THEN + 64 WHEN - 6 THEN NULLIF ( + 68, - - 30 ) + 63 + - CASE - ( - CAST ( NULL AS INTEGER ) ) WHEN + 72 THEN NULL WHEN + 29 THEN NULL ELSE 19 * - + 5 END WHEN + COUNT ( * ) + + 23 THEN - - 82 END * SUM ( ALL - - ( - + 88 ) )
----
8
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7134
SELECT - 94 DIV 36 DIV + 23 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7134
SELECT - 94 / 36 / + 23 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7135
SELECT + 17 + + COUNT( * ) + + SUM( ALL 64 ) col2
----
82

skipif mysql # not compatible
query I rowsort label-7135
SELECT + 17 + + COUNT ( * ) + + SUM ( ALL 64 ) col2
----
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7136
SELECT + + 25 DIV 32 + + NULLIF ( + SUM( - - ( + CAST( + - 12 AS SIGNED ) ) ), - + 72 ) - ( + + 0 )
----
-12

skipif mysql # not compatible
query I rowsort label-7136
SELECT + + 25 / 32 + + NULLIF ( + SUM ( - - ( + CAST ( + - 12 AS INTEGER ) ) ), - + 72 ) - ( + + 0 )
----
-12

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7137
SELECT + 6 * + - 45 * + 5 + + - 54 - + - CAST( 52 AS SIGNED ) + - - 84 * 37 DIV 85
----
-1316

skipif mysql # not compatible
query I rowsort label-7137
SELECT + 6 * + - 45 * + 5 + + - 54 - + - CAST ( 52 AS INTEGER ) + - - 84 * 37 / 85
----
-1316

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7138
SELECT + COUNT( * ) DIV + + 84 + 19 AS col0, 62 * - 8
----
19
-496

skipif mysql # not compatible
query II rowsort label-7138
SELECT + COUNT ( * ) / + + 84 + 19 AS col0, 62 * - 8
----
19
-496

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7139
SELECT 74 + - CAST( 82 AS SIGNED ) + 66 + + 33 * + 96
----
3226

skipif mysql # not compatible
query I rowsort label-7139
SELECT 74 + - CAST ( 82 AS INTEGER ) + 66 + + 33 * + 96
----
3226

query I rowsort
SELECT 48 * 39
----
1872

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

skipif mysql # not compatible
query I rowsort label-7141
SELECT ( 55 ) + - + COUNT ( * ) AS col0
----
54

query I rowsort
SELECT 54 * 17 + + 27 AS col1
----
945

query I rowsort
SELECT ALL 49 * 85 + + 10 AS col0
----
4175

onlyif mysql # aggregate syntax: 
query I rowsort label-7144
SELECT DISTINCT SUM( + 34 ) * + - 61 * - 82 + 36 col0
----
170104

skipif mysql # not compatible
query I rowsort label-7144
SELECT DISTINCT SUM ( + 34 ) * + - 61 * - 82 + 36 col0
----
170104

query II rowsort
SELECT DISTINCT - 34 AS col1, 62 + + ( 0 ) + + - 10 AS col0
----
-34
52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7146
SELECT CASE - 32 WHEN + 94 * - 10 THEN + 87 ELSE 84 * + 98 END * COUNT( * ) / + 41 - - + CAST( NULL AS SIGNED ) + + NULLIF ( - 69, + 94 * 96 - COUNT( * ) - COUNT( * ) + + 67 * - 90 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7146
SELECT CASE - 32 WHEN + 94 * - 10 THEN + 87 ELSE 84 * + 98 END * COUNT ( * ) / + 41 - - + CAST ( NULL AS INTEGER ) + + NULLIF ( - 69, + 94 * 96 - COUNT ( * ) - COUNT ( * ) + + 67 * - 90 )
----
NULL

query I rowsort
SELECT ALL 28 * 85 AS col1
----
2380

query I rowsort
SELECT DISTINCT 46 + + 45 + 40 + + 55 * 3 + 87 * - 72 * 38
----
-237736

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

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

query I rowsort
SELECT ALL 81 + - + 99 AS col0
----
-18

query I rowsort
SELECT ALL 92 * 91 * - 78 AS col2
----
-653016

onlyif mysql # DIV for integer division: 
query I rowsort label-7152
SELECT DISTINCT - 0 DIV + 65 * 90
----
0

skipif mysql # not compatible
query I rowsort label-7152
SELECT DISTINCT - 0 / + 65 * 90
----
0

query II rowsort
SELECT 52 col1, 57
----
52
57

query I rowsort
SELECT - 60 * - 22 + + 54 AS col1
----
1374

onlyif mysql # aggregate syntax: 
query I rowsort label-7155
SELECT DISTINCT SUM( ALL - 12 ) - + 41
----
-53

skipif mysql # not compatible
query I rowsort label-7155
SELECT DISTINCT SUM ( ALL - 12 ) - + 41
----
-53

query II rowsort
SELECT + 51 * + 8 AS col2, 82 AS col2
----
408
82

query I rowsort
SELECT + 56 + - 75 AS col0
----
-19

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

onlyif mysql # DIV for integer division: 
query II rowsort label-7159
SELECT - 39 AS col1, - 98 DIV - ( + 57 ) + - ( + 50 ) AS col2
----
-39
-49

skipif mysql # not compatible
query II rowsort label-7159
SELECT - 39 AS col1, - 98 / - ( + 57 ) + - ( + 50 ) AS col2
----
-39
-49

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

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

query I rowsort
SELECT ALL + 80 - - + 85 * + 52 * 32 col0
----
141520

query I rowsort
SELECT + 99 * - 95
----
-9405

onlyif mysql # aggregate syntax: 
query II rowsort label-7163
SELECT ALL + MAX( - - 66 ) * + MAX( - + 89 ), - ( - 9 ) * - 78 * 12 AS col2
----
-5874
-8424

skipif mysql # not compatible
query II rowsort label-7163
SELECT ALL + MAX ( - - 66 ) * + MAX ( - + 89 ), - ( - 9 ) * - 78 * 12 AS col2
----
-5874
-8424

query I rowsort
SELECT DISTINCT + NULLIF ( - + 80, - - 82 ) * - 24 AS col2
----
1920

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7165
SELECT DISTINCT + - 5 * + - CASE - 55 WHEN - 95 + + COUNT( * ) THEN 51 ELSE - 76 END * 85 - 0 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7165
SELECT DISTINCT + - 5 * + - CASE - 55 WHEN - 95 + + COUNT ( * ) THEN 51 ELSE - 76 END * 85 - 0 + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT + 31 * - 94 + + 14 AS col1
----
-2900

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7167
SELECT - 26 DIV SUM( DISTINCT 26 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-7167
SELECT - 26 / SUM ( DISTINCT 26 ) AS col2
----
-1

query I rowsort
SELECT + 65 * - 96
----
-6240

query I rowsort
SELECT - - 3 + - + 61 + - 19
----
-77

query I rowsort
SELECT ALL + 98 * 33
----
3234

onlyif mysql # aggregate syntax: 
query II rowsort label-7171
SELECT - 85, - 39 * - + MIN( + 7 ) AS col1
----
-85
273

skipif mysql # not compatible
query II rowsort label-7171
SELECT - 85, - 39 * - + MIN ( + 7 ) AS col1
----
-85
273

onlyif mysql # aggregate syntax: 
query II rowsort label-7172
SELECT - CASE + AVG ( + 70 ) WHEN + - MIN( + 89 ) THEN 36 WHEN + + 62 THEN 21 + 83 + - - 92 * + COUNT( * ) END, NULLIF ( + - 66, + COUNT( * ) * 87 / 71 ) AS col0
----
NULL
-66

skipif mysql # not compatible
query II rowsort label-7172
SELECT - CASE + AVG ( + 70 ) WHEN + - MIN ( + 89 ) THEN 36 WHEN + + 62 THEN 21 + 83 + - - 92 * + COUNT ( * ) END, NULLIF ( + - 66, + COUNT ( * ) * 87 / 71 ) AS col0
----
NULL
-66

query I rowsort
SELECT - - 54 * - - 34 + + 40
----
1876

onlyif mysql # aggregate syntax: 
query I rowsort label-7174
SELECT - MAX( + 72 ) + + 94
----
22

skipif mysql # not compatible
query I rowsort label-7174
SELECT - MAX ( + 72 ) + + 94
----
22

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

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

query I rowsort
SELECT ALL + 73 + + + 43 * - + 64
----
-2679

query I rowsort
SELECT DISTINCT - 15 + 14 col1
----
-1

query I rowsort
SELECT DISTINCT + 46 + + 39 AS col2
----
85

onlyif mysql # DIV for integer division: 
query I rowsort label-7179
SELECT DISTINCT - 71 DIV - 72 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7179
SELECT DISTINCT - 71 / - 72 AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7180
SELECT DISTINCT - 13 DIV - COUNT( * ) + - - COALESCE ( 63, - 13 ) DIV - + 25
----
11

skipif mysql # not compatible
query I rowsort label-7180
SELECT DISTINCT - 13 / - COUNT ( * ) + - - COALESCE ( 63, - 13 ) / - + 25
----
11

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7182
SELECT - ( + COUNT( * ) ) + + 34
----
33

skipif mysql # not compatible
query I rowsort label-7182
SELECT - ( + COUNT ( * ) ) + + 34
----
33

query I rowsort
SELECT - 65 * 27
----
-1755

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

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

query I rowsort
SELECT + 88 * - 12 - - ( 0 )
----
-1056

query II rowsort
SELECT ( - 21 ) AS col0, ( + 63 )
----
-21
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7187
SELECT - CAST( + 85 AS SIGNED ) + - CAST( + COALESCE ( COUNT( * ), + COUNT( * ) ) AS SIGNED )
----
-86

skipif mysql # not compatible
query I rowsort label-7187
SELECT - CAST ( + 85 AS INTEGER ) + - CAST ( + COALESCE ( COUNT ( * ), + COUNT ( * ) ) AS INTEGER )
----
-86

query I rowsort
SELECT DISTINCT - 77 * - 10 * 71
----
54670

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7189
SELECT ALL + 50 * + - NULLIF ( 99, COUNT( * ) ) - - 98 + - CAST( + 19 AS SIGNED ) DIV + 37
----
-4852

skipif mysql # not compatible
query I rowsort label-7189
SELECT ALL + 50 * + - NULLIF ( 99, COUNT ( * ) ) - - 98 + - CAST ( + 19 AS INTEGER ) / + 37
----
-4852

onlyif mysql # aggregate syntax: 
query I rowsort label-7190
SELECT COALESCE ( - COUNT( * ), + 84, - 17 )
----
-1

skipif mysql # not compatible
query I rowsort label-7190
SELECT COALESCE ( - COUNT ( * ), + 84, - 17 )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7191
SELECT DISTINCT 94 * CASE WHEN NULL >= NULL THEN 76 ELSE - 91 END * - 90 - - + CAST( NULL AS SIGNED ) col0, - 13 col1
----
NULL
-13

skipif mysql # not compatible
query II rowsort label-7191
SELECT DISTINCT 94 * CASE WHEN NULL >= NULL THEN 76 ELSE - 91 END * - 90 - - + CAST ( NULL AS INTEGER ) col0, - 13 col1
----
NULL
-13

query I rowsort
SELECT - COALESCE ( - NULLIF ( + 37, + + 25 ), - 63 ) + 70
----
107

onlyif mysql # DIV for integer division: 
query I rowsort label-7193
SELECT - 56 * - 76 - - - 49 - + + 53 DIV + 46
----
4206

skipif mysql # not compatible
query I rowsort label-7193
SELECT - 56 * - 76 - - - 49 - + + 53 / + 46
----
4206

query I rowsort
SELECT - 27 * + ( 74 )
----
-1998

onlyif mysql # aggregate syntax: 
query I rowsort label-7195
SELECT + 33 * - - MAX( - 7 )
----
-231

skipif mysql # not compatible
query I rowsort label-7195
SELECT + 33 * - - MAX ( - 7 )
----
-231

query I rowsort
SELECT ALL - - CASE 37 WHEN - + 94 THEN 62 END * + 71 - + AVG ( ALL + 45 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7197
SELECT + 96 * ( - - SUM( 26 ) ) AS col1
----
2496

skipif mysql # not compatible
query I rowsort label-7197
SELECT + 96 * ( - - SUM ( 26 ) ) AS col1
----
2496

onlyif mysql # aggregate syntax: 
query II rowsort label-7198
SELECT ALL - COUNT( * ) * - 29, - MAX( DISTINCT - - 67 ) * - - 43 - 54 AS col0
----
29
-2935

skipif mysql # not compatible
query II rowsort label-7198
SELECT ALL - COUNT ( * ) * - 29, - MAX ( DISTINCT - - 67 ) * - - 43 - 54 AS col0
----
29
-2935

query I rowsort
SELECT - + 38 + - 56 AS col2
----
-94

query I rowsort
SELECT + - 74 + - 30 - 33 * - 4 col0
----
28

query I rowsort
SELECT + + 58 * - 48 AS col0
----
-2784

query I rowsort
SELECT + 85 + - - 39 AS col2
----
124

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

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

query I rowsort
SELECT + 99 + - 6
----
93

query I rowsort
SELECT ALL 82 + 76 AS col2
----
158

onlyif mysql # aggregate syntax: 
query II rowsort label-7206
SELECT ALL - + 35 + - - COUNT( * ) col2, - 64 AS col2
----
-34
-64

skipif mysql # not compatible
query II rowsort label-7206
SELECT ALL - + 35 + - - COUNT ( * ) col2, - 64 AS col2
----
-34
-64

query I rowsort
SELECT + - 31 + + 30 AS col1
----
-1

query I rowsort
SELECT DISTINCT - 25 * 68
----
-1700

onlyif mysql # aggregate syntax: 
query I rowsort label-7209
SELECT - + MAX( DISTINCT - 87 ) + + + NULLIF ( - 17, + MAX( + + 82 ) * 53 - + SUM( DISTINCT + 20 ) + + - 56 ) AS col0
----
70

skipif mysql # not compatible
query I rowsort label-7209
SELECT - + MAX ( DISTINCT - 87 ) + + + NULLIF ( - 17, + MAX ( + + 82 ) * 53 - + SUM ( DISTINCT + 20 ) + + - 56 ) AS col0
----
70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7210
SELECT ALL + 92 * + - 20 + CAST( NULL AS SIGNED ) * + ( - 16 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7210
SELECT ALL + 92 * + - 20 + CAST ( NULL AS INTEGER ) * + ( - 16 ) AS col0
----
NULL

query I rowsort
SELECT - - 81 + + 47 * + 99
----
4734

query I rowsort
SELECT + 41 + + 15 AS col1
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-7213
SELECT - COUNT( * ) * - 15 * 42 AS col0
----
630

skipif mysql # not compatible
query I rowsort label-7213
SELECT - COUNT ( * ) * - 15 * 42 AS col0
----
630

query I rowsort
SELECT ALL - NULLIF ( + 15, + - ( + - 25 ) ) AS col1
----
-15

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

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

query I rowsort
SELECT 89 * 65
----
5785

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

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

query I rowsort
SELECT 2 * + 55
----
110

query I rowsort
SELECT 8 + 91 + 22 * 56 col2
----
1331

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7220
SELECT ALL + COUNT( * ) DIV + - NULLIF ( - 51, + NULLIF ( 16, + ( - COUNT( * ) ) ) DIV - - 58 + - + 10 + COUNT( * ) + + 49 ) col2
----
0

skipif mysql # not compatible
query I rowsort label-7220
SELECT ALL + COUNT ( * ) / + - NULLIF ( - 51, + NULLIF ( 16, + ( - COUNT ( * ) ) ) / - - 58 + - + 10 + COUNT ( * ) + + 49 ) col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7221
SELECT 91 * - 37 * - 33 + NULLIF ( - COUNT( * ), - 82 ) * + 2 + - - 18 col2
----
111127

skipif mysql # not compatible
query I rowsort label-7221
SELECT 91 * - 37 * - 33 + NULLIF ( - COUNT ( * ), - 82 ) * + 2 + - - 18 col2
----
111127

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-7222
SELECT ALL - 55 - CAST( - 33 AS SIGNED ) + 49 AS col2, COUNT( * ) * - - 74 AS col2, - SUM( DISTINCT 10 )
----
27
74
-10

skipif mysql # not compatible
query III rowsort label-7222
SELECT ALL - 55 - CAST ( - 33 AS INTEGER ) + 49 AS col2, COUNT ( * ) * - - 74 AS col2, - SUM ( DISTINCT 10 )
----
27
74
-10

query I rowsort
SELECT 89 * - + 65 AS col0
----
-5785

onlyif mysql # DIV for integer division: 
query I rowsort label-7224
SELECT 98 DIV ( - 49 )
----
-2

skipif mysql # not compatible
query I rowsort label-7224
SELECT 98 / ( - 49 )
----
-2

onlyif mysql # aggregate syntax: 
query II rowsort label-7225
SELECT + 29, - COUNT( * ) + ( - COUNT( * ) ) * + - 84 * + + 4 * + - 72 * 9 AS col0
----
29
-217729

skipif mysql # not compatible
query II rowsort label-7225
SELECT + 29, - COUNT ( * ) + ( - COUNT ( * ) ) * + - 84 * + + 4 * + - 72 * 9 AS col0
----
29
-217729

onlyif mysql # aggregate syntax: 
query II rowsort label-7226
SELECT - 97 AS col2, + COUNT( * ) * - 59 * + + COUNT( * )
----
-97
-59

skipif mysql # not compatible
query II rowsort label-7226
SELECT - 97 AS col2, + COUNT ( * ) * - 59 * + + COUNT ( * )
----
-97
-59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7227
SELECT 3 + - - 0 + - COUNT( * ) * + + 15 * COALESCE ( 18, 38 + - 79 - - - 97 + 34 - 91 * + - 54 * CAST( - 71 AS SIGNED ) ) + 24
----
-243

skipif mysql # not compatible
query I rowsort label-7227
SELECT 3 + - - 0 + - COUNT ( * ) * + + 15 * COALESCE ( 18, 38 + - 79 - - - 97 + 34 - 91 * + - 54 * CAST ( - 71 AS INTEGER ) ) + 24
----
-243

onlyif mysql # aggregate syntax: 
query I rowsort label-7228
SELECT ALL - SUM( ALL + 34 ) + + - NULLIF ( + 89, 77 ) AS col1
----
-123

skipif mysql # not compatible
query I rowsort label-7228
SELECT ALL - SUM ( ALL + 34 ) + + - NULLIF ( + 89, 77 ) AS col1
----
-123

onlyif mysql # aggregate syntax: 
query I rowsort label-7229
SELECT ALL ( + 95 ) + + 90 + + + 12 * + COUNT( * ) + - 61 + - - COUNT( * ) * - MAX( 33 ) * + - 24 * - 15 * 36 + + ( + 41 ) + ( + NULLIF ( + ( - + 90 ), COUNT( ALL + + 90 ) * + 11 ) )
----
-427593

skipif mysql # not compatible
query I rowsort label-7229
SELECT ALL ( + 95 ) + + 90 + + + 12 * + COUNT ( * ) + - 61 + - - COUNT ( * ) * - MAX ( 33 ) * + - 24 * - 15 * 36 + + ( + 41 ) + ( + NULLIF ( + ( - + 90 ), COUNT ( ALL + + 90 ) * + 11 ) )
----
-427593

onlyif mysql # aggregate syntax: 
query I rowsort label-7230
SELECT 52 - 86 + + + MIN( DISTINCT - + 70 ) + + - 17 * + ( 74 ) AS col1
----
-1362

skipif mysql # not compatible
query I rowsort label-7230
SELECT 52 - 86 + + + MIN ( DISTINCT - + 70 ) + + - 17 * + ( 74 ) AS col1
----
-1362

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7232
SELECT 83 DIV - - MIN( 36 )
----
2

skipif mysql # not compatible
query I rowsort label-7232
SELECT 83 / - - MIN ( 36 )
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7233
SELECT DISTINCT + 15 + - 37 DIV - COALESCE ( - + 54, + - 15 + + 83 ) - + MIN( DISTINCT + 7 ) - - 85 * - 89
----
-7557

skipif mysql # not compatible
query I rowsort label-7233
SELECT DISTINCT + 15 + - 37 / - COALESCE ( - + 54, + - 15 + + 83 ) - + MIN ( DISTINCT + 7 ) - - 85 * - 89
----
-7557

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7236
SELECT - 19 / + CASE - + 38 WHEN - 30 THEN 32 WHEN - - COUNT( * ) * - COUNT( * ) + - MIN( - 35 ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7236
SELECT - 19 / + CASE - + 38 WHEN - 30 THEN 32 WHEN - - COUNT ( * ) * - COUNT ( * ) + - MIN ( - 35 ) THEN NULL END
----
NULL

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

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

query I rowsort
SELECT 52 * - 87 - - + COALESCE ( - 12, 77 )
----
-4536

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-7239
SELECT DISTINCT + COUNT( * ), CAST( NULL AS DECIMAL ) * + - 37 * + COUNT( * ) AS col1
----
1
NULL

skipif mysql # not compatible
query II rowsort label-7239
SELECT DISTINCT + COUNT ( * ), CAST ( NULL AS REAL ) * + - 37 * + COUNT ( * ) AS col1
----
1
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7240
SELECT - 5, 26 * COUNT( * ) AS col2
----
-5
26

skipif mysql # not compatible
query II rowsort label-7240
SELECT - 5, 26 * COUNT ( * ) AS col2
----
-5
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7241
SELECT ALL 27 AS col0, MIN( - 24 ) DIV + 68 + - 26 + - COALESCE ( - COALESCE ( + COUNT( * ), - - COALESCE ( COUNT( * ), 61 - 76 ) * COUNT( ALL + 2 ) * CAST( NULL AS SIGNED ) + - 18 * - COUNT( * ) * - 28 ), - 92 + - 82 ) - + 11 AS col2
----
27
-36

skipif mysql # not compatible
query II rowsort label-7241
SELECT ALL 27 AS col0, MIN ( - 24 ) / + 68 + - 26 + - COALESCE ( - COALESCE ( + COUNT ( * ), - - COALESCE ( COUNT ( * ), 61 - 76 ) * COUNT ( ALL + 2 ) * CAST ( NULL AS INTEGER ) + - 18 * - COUNT ( * ) * - 28 ), - 92 + - 82 ) - + 11 AS col2
----
27
-36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7242
SELECT ALL COALESCE ( 83, - 72 * - - 82 DIV 50 + - - 17, - CAST( ( MAX( DISTINCT - CAST( NULL AS SIGNED ) ) ) AS SIGNED ) + - 44 - - ( - 92 ) ) - - - 68 DIV + 23 AS col1
----
81

skipif mysql # not compatible
query I rowsort label-7242
SELECT ALL COALESCE ( 83, - 72 * - - 82 / 50 + - - 17, - CAST ( ( MAX ( DISTINCT - CAST ( NULL AS INTEGER ) ) ) AS INTEGER ) + - 44 - - ( - 92 ) ) - - - 68 / + 23 AS col1
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-7243
SELECT DISTINCT COUNT( * ) - + NULLIF ( ( - - 64 ), 45 * 45 )
----
-63

skipif mysql # not compatible
query I rowsort label-7243
SELECT DISTINCT COUNT ( * ) - + NULLIF ( ( - - 64 ), 45 * 45 )
----
-63

query I rowsort
SELECT ALL - CASE 48 WHEN + 86 THEN - 63 * 59 - + AVG ( 29 ) + + 46 * - 36 + 12 / - 60 * + 42 / - 88 END
----
NULL

query I rowsort
SELECT ALL 28 * 68 AS col2
----
1904

onlyif mysql # aggregate syntax: 
query I rowsort label-7246
SELECT MAX( DISTINCT 86 ) + 62
----
148

skipif mysql # not compatible
query I rowsort label-7246
SELECT MAX ( DISTINCT 86 ) + 62
----
148

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7247
SELECT MIN( ALL - + 8 ) * - 50 + + - 58, - 70 DIV - 97 AS col1
----
342
0

skipif mysql # not compatible
query II rowsort label-7247
SELECT MIN ( ALL - + 8 ) * - 50 + + - 58, - 70 / - 97 AS col1
----
342
0

query I rowsort
SELECT 37 * - - 87 * 48
----
154512

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7250
SELECT - 60 * - 93 + - 42 + - - COUNT( * )
----
5539

skipif mysql # not compatible
query I rowsort label-7250
SELECT - 60 * - 93 + - 42 + - - COUNT ( * )
----
5539

query I rowsort
SELECT DISTINCT + 51 + + NULLIF ( - + ( - 39 ), - 49 )
----
90

query I rowsort
SELECT ALL - 97 + 6 * 15
----
-7

query I rowsort
SELECT - 18 * - + 24 + ( + + 32 ) + - 71 col0
----
393

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7254
SELECT DISTINCT - COALESCE ( + - ( CAST( NULL AS SIGNED ) ), - 47 ) AS col2, + 82 * - COALESCE ( 98, + ( + COUNT( * ) ) )
----
47
-8036

skipif mysql # not compatible
query II rowsort label-7254
SELECT DISTINCT - COALESCE ( + - ( CAST ( NULL AS INTEGER ) ), - 47 ) AS col2, + 82 * - COALESCE ( 98, + ( + COUNT ( * ) ) )
----
47
-8036

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7255
SELECT ALL - - COUNT( ALL + 31 ) + - COUNT( * ) + + ( + + 38 ) + 27 * - + CASE + 2 WHEN 96 * + - 97 + - CAST( NULL AS DECIMAL ) THEN - 69 END + - CAST( NULL AS SIGNED ) * 92
----
NULL

skipif mysql # not compatible
query I rowsort label-7255
SELECT ALL - - COUNT ( ALL + 31 ) + - COUNT ( * ) + + ( + + 38 ) + 27 * - + CASE + 2 WHEN 96 * + - 97 + - CAST ( NULL AS REAL ) THEN - 69 END + - CAST ( NULL AS INTEGER ) * 92
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7256
SELECT - MAX( ALL - + 19 ) * + + 8 * 77 + - - 36 * + CAST( COUNT( * ) AS SIGNED ) DIV + + 75 + + 61 * 20 AS col2
----
12924

skipif mysql # not compatible
query I rowsort label-7256
SELECT - MAX ( ALL - + 19 ) * + + 8 * 77 + - - 36 * + CAST ( COUNT ( * ) AS INTEGER ) / + + 75 + + 61 * 20 AS col2
----
12924

onlyif mysql # DIV for integer division: 
query II rowsort label-7257
SELECT DISTINCT ( - - 93 ) * - 2 + 77 * + 22 - + 8 DIV - 83, 47 AS col0
----
1508
47

skipif mysql # not compatible
query II rowsort label-7257
SELECT DISTINCT ( - - 93 ) * - 2 + 77 * + 22 - + 8 / - 83, 47 AS col0
----
1508
47

onlyif mysql # aggregate syntax: 
query I rowsort label-7258
SELECT ALL + MAX( - - 46 ) + + 28 - + ( 39 ) + + 73
----
108

skipif mysql # not compatible
query I rowsort label-7258
SELECT ALL + MAX ( - - 46 ) + + 28 - + ( 39 ) + + 73
----
108

query I rowsort
SELECT ALL + + 43 + - - 36 AS col1
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-7260
SELECT 77 + - + MIN( DISTINCT 66 )
----
11

skipif mysql # not compatible
query I rowsort label-7260
SELECT 77 + - + MIN ( DISTINCT 66 )
----
11

query I rowsort
SELECT 36 + - 71
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-7262
SELECT + 70 + 25 + COUNT( * )
----
96

skipif mysql # not compatible
query I rowsort label-7262
SELECT + 70 + 25 + COUNT ( * )
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-7263
SELECT - + 54 + + MIN( - 30 ) + + 0 * COALESCE ( - 30, 81 * 62 - 5 )
----
-84

skipif mysql # not compatible
query I rowsort label-7263
SELECT - + 54 + + MIN ( - 30 ) + + 0 * COALESCE ( - 30, 81 * 62 - 5 )
----
-84

query II rowsort
SELECT DISTINCT 23 * 2, - 9 + + 95 AS col0
----
46
86

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7265
SELECT DISTINCT + NULLIF ( - 68, + 92 * + + COUNT( * ) ) DIV 69
----
0

skipif mysql # not compatible
query I rowsort label-7265
SELECT DISTINCT + NULLIF ( - 68, + 92 * + + COUNT ( * ) ) / 69
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7266
SELECT DISTINCT NULLIF ( - - CAST( NULL AS DECIMAL ), - + 70 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7266
SELECT DISTINCT NULLIF ( - - CAST ( NULL AS REAL ), - + 70 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7267
SELECT DISTINCT + COUNT( * ) * - CASE 36 WHEN - ( - + 47 ) * + 68 THEN + 41 WHEN + - COUNT( * ) + + MAX( DISTINCT 41 ) THEN NULL END / 22 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7267
SELECT DISTINCT + COUNT ( * ) * - CASE 36 WHEN - ( - + 47 ) * + 68 THEN + 41 WHEN + - COUNT ( * ) + + MAX ( DISTINCT 41 ) THEN NULL END / 22 col0
----
NULL

query I rowsort
SELECT + 64 + + + 90
----
154

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

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

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

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

query I rowsort
SELECT + 40 + ( 64 )
----
104

query II rowsort
SELECT DISTINCT 98 col2, 64 AS col1
----
98
64

onlyif mysql # aggregate syntax: 
query I rowsort label-7273
SELECT + 93 + ( + SUM( - COALESCE ( + - ( + NULLIF ( + + 22, + NULLIF ( + 23, + 27 ) ) ), + 62 ) ) )
----
115

skipif mysql # not compatible
query I rowsort label-7273
SELECT + 93 + ( + SUM ( - COALESCE ( + - ( + NULLIF ( + + 22, + NULLIF ( + 23, + 27 ) ) ), + 62 ) ) )
----
115

query I rowsort
SELECT 28 * + 24 + - 23 col2
----
649

onlyif mysql # aggregate syntax: 
query II rowsort label-7275
SELECT ALL + 82 AS col2, - 4 + COUNT( * ) AS col2
----
82
-3

skipif mysql # not compatible
query II rowsort label-7275
SELECT ALL + 82 AS col2, - 4 + COUNT ( * ) AS col2
----
82
-3

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7277
SELECT ALL + 75 * + + 4 + - 46 * - + 1 + CAST( - 77 AS SIGNED )
----
269

skipif mysql # not compatible
query I rowsort label-7277
SELECT ALL + 75 * + + 4 + - 46 * - + 1 + CAST ( - 77 AS INTEGER )
----
269

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-7278
SELECT + NULLIF ( CAST( - 22 AS SIGNED ), 70 * - - 93 * + + 76 ) AS col2, CAST( + 16 AS DECIMAL ) * - - 55 - - + 5 + CAST( NULL AS SIGNED )
----
-22
NULL

skipif mysql # not compatible
query II rowsort label-7278
SELECT + NULLIF ( CAST ( - 22 AS INTEGER ), 70 * - - 93 * + + 76 ) AS col2, CAST ( + 16 AS REAL ) * - - 55 - - + 5 + CAST ( NULL AS INTEGER )
----
-22
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7279
SELECT - 45 * - COUNT( DISTINCT - + 67 ) * 81
----
3645

skipif mysql # not compatible
query I rowsort label-7279
SELECT - 45 * - COUNT ( DISTINCT - + 67 ) * 81
----
3645

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7280
SELECT + MAX( CAST( + - CAST( 65 AS SIGNED ) AS SIGNED ) ) + + 21 + + - 85 * - 76
----
6416

skipif mysql # not compatible
query I rowsort label-7280
SELECT + MAX ( CAST ( + - CAST ( 65 AS INTEGER ) AS INTEGER ) ) + + 21 + + - 85 * - 76
----
6416

onlyif mysql # aggregate syntax: 
query I rowsort label-7281
SELECT DISTINCT + - ( - ( NULLIF ( + MIN( DISTINCT 19 ), + - ( + 76 ) * - 71 ) ) ) * + 52 + + 14 + + + 70 * COUNT( * ) + - COUNT( * )
----
1071

skipif mysql # not compatible
query I rowsort label-7281
SELECT DISTINCT + - ( - ( NULLIF ( + MIN ( DISTINCT 19 ), + - ( + 76 ) * - 71 ) ) ) * + 52 + + 14 + + + 70 * COUNT ( * ) + - COUNT ( * )
----
1071

onlyif mysql # aggregate syntax: 
query I rowsort label-7282
SELECT ALL - + 12 * - 92 + - COUNT( * ) + - + 87 col1
----
1016

skipif mysql # not compatible
query I rowsort label-7282
SELECT ALL - + 12 * - 92 + - COUNT ( * ) + - + 87 col1
----
1016

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

skipif mysql # not compatible
query I rowsort label-7283
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + 17 + ( + 35 )
----
NULL

query II rowsort
SELECT ALL + 12 * + + 13 + + 60 col1, 56
----
216
56

query II rowsort
SELECT + + 66 AS col2, + 55
----
66
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7286
SELECT DISTINCT - 83 * + COUNT( DISTINCT + - ( - 30 ) ) * + + CAST( NULL AS SIGNED ) + + 53 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7286
SELECT DISTINCT - 83 * + COUNT ( DISTINCT + - ( - 30 ) ) * + + CAST ( NULL AS INTEGER ) + + 53 col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7287
SELECT + 23 + + 95 * + 51 * - CAST( NULL AS SIGNED ) / - + 53 + 62
----
NULL

skipif mysql # not compatible
query I rowsort label-7287
SELECT + 23 + + 95 * + 51 * - CAST ( NULL AS INTEGER ) / - + 53 + 62
----
NULL

query I rowsort
SELECT - - 43 + 15
----
58

query I rowsort
SELECT - + 69 + 97
----
28

query II rowsort
SELECT - - 94 * + 52 + 80, 12 AS col2
----
4968
12

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7292
SELECT ALL CASE + 91 WHEN - - 55 - 39 + + 94 * + 78 * + + 35 - + + 30 * + - 43 * - 19 / - 8 THEN COUNT( * ) + - 52 + 18 WHEN - - AVG ( - 97 ) THEN - 74 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7292
SELECT ALL CASE + 91 WHEN - - 55 - 39 + + 94 * + 78 * + + 35 - + + 30 * + - 43 * - 19 / - 8 THEN COUNT ( * ) + - 52 + 18 WHEN - - AVG ( - 97 ) THEN - 74 ELSE NULL END
----
NULL

query II rowsort
SELECT - 83, + ( + 43 ) AS col0
----
-83
43

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7295
SELECT - CAST( NULL AS SIGNED ) * 41 / + SUM( 38 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7295
SELECT - CAST ( NULL AS INTEGER ) * 41 / + SUM ( 38 )
----
NULL

query I rowsort
SELECT - 17 * + ( + + 41 ) AS col1
----
-697

onlyif mysql # DIV for integer division: 
query II rowsort label-7297
SELECT ALL + 96 + + 11 * 76 DIV + + 84 AS col2, + 93 + + 87 col2
----
105
180

skipif mysql # not compatible
query II rowsort label-7297
SELECT ALL + 96 + + 11 * 76 / + + 84 AS col2, + 93 + + 87 col2
----
105
180

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

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

query II rowsort
SELECT DISTINCT + 87 * 39 AS col2, - 18
----
3393
-18

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

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

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

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

skipif mysql # not compatible
query I rowsort label-7302
SELECT - MAX ( DISTINCT - 78 )
----
78

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7304
SELECT - CASE ( - - 96 ) WHEN - - 69 THEN - - 8 WHEN + COUNT( * ) / CASE + 29 WHEN + - 39 - 33 + + - 97 THEN NULLIF ( - + COUNT( * ), 18 ) WHEN + 93 * - COALESCE ( + COUNT( * ), + 56 / 15 + + CAST( NULL AS SIGNED ), - + ( + CASE - + 77 WHEN 11 + + MAX( - 95 ) THEN NULL ELSE 58 END ) ) THEN - - 29 * + - 56 END * - + 60 * + CAST( NULL AS SIGNED ) + - 13 THEN NULL END * - 66 - 78 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7304
SELECT - CASE ( - - 96 ) WHEN - - 69 THEN - - 8 WHEN + COUNT ( * ) / CASE + 29 WHEN + - 39 - 33 + + - 97 THEN NULLIF ( - + COUNT ( * ), 18 ) WHEN + 93 * - COALESCE ( + COUNT ( * ), + 56 / 15 + + CAST ( NULL AS INTEGER ), - + ( + CASE - + 77 WHEN 11 + + MAX ( - 95 ) THEN NULL ELSE 58 END ) ) THEN - - 29 * + - 56 END * - + 60 * + CAST ( NULL AS INTEGER ) + - 13 THEN NULL END * - 66 - 78 AS col2
----
NULL

query I rowsort
SELECT - 45 + + 21 + - - 58 AS col1
----
34

query I rowsort
SELECT + 51 * + + 60 AS col0
----
3060

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7307
SELECT ALL - CAST( 42 AS SIGNED ) / - - CASE ( + CAST( + + 38 AS SIGNED ) ) WHEN - 37 + - 24 + - + 77 + + COUNT( * ) * - CAST( + - COUNT( + + 17 ) AS SIGNED ) / COALESCE ( - 44, - - SUM( ALL 72 ), - CAST( + + 76 AS SIGNED ) * 4 * + - 78 / + COUNT( * ) ) * + - 67 + + 11 THEN + 72 + ( 41 ) + - 46 WHEN + 71 THEN + 37 END / + + 83 + + AVG ( 55 ) + CAST( - 44 AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7307
SELECT ALL - CAST ( 42 AS INTEGER ) / - - CASE ( + CAST ( + + 38 AS INTEGER ) ) WHEN - 37 + - 24 + - + 77 + + COUNT ( * ) * - CAST ( + - COUNT ( + + 17 ) AS INTEGER ) / COALESCE ( - 44, - - SUM ( ALL 72 ), - CAST ( + + 76 AS INTEGER ) * 4 * + - 78 / + COUNT ( * ) ) * + - 67 + + 11 THEN + 72 + ( 41 ) + - 46 WHEN + 71 THEN + 37 END / + + 83 + + AVG ( 55 ) + CAST ( - 44 AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7308
SELECT 6 * + COUNT( * ) + + 84 * - 48
----
-4026

skipif mysql # not compatible
query I rowsort label-7308
SELECT 6 * + COUNT ( * ) + + 84 * - 48
----
-4026

onlyif mysql # DIV for integer division: 
query I rowsort label-7309
SELECT + 3 DIV + - 31 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7309
SELECT + 3 / + - 31 AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7310
SELECT ALL - 4 DIV - + 90 + ( - 80 ) * + - COALESCE ( - ( - 77 ), - MAX( + 93 ) * + - 44 DIV - MAX( ALL 89 ) + + - 96 ) * + - 37 AS col1
----
-227920

skipif mysql # not compatible
query I rowsort label-7310
SELECT ALL - 4 / - + 90 + ( - 80 ) * + - COALESCE ( - ( - 77 ), - MAX ( + 93 ) * + - 44 / - MAX ( ALL 89 ) + + - 96 ) * + - 37 AS col1
----
-227920

onlyif mysql # aggregate syntax: 
query II rowsort label-7311
SELECT 97 * - 91 + - - ( - - 58 ) * - 45 - - 95, - 95 * - - COUNT( * ) AS col1
----
-11342
-95

skipif mysql # not compatible
query II rowsort label-7311
SELECT 97 * - 91 + - - ( - - 58 ) * - 45 - - 95, - 95 * - - COUNT ( * ) AS col1
----
-11342
-95

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

skipif mysql # not compatible
query I rowsort label-7312
SELECT + 21 * - 60 / 60 / - ( + - COUNT ( * ) ) AS col1
----
-21

onlyif mysql # DIV for integer division: 
query I rowsort label-7313
SELECT ALL 26 DIV 51 * + 15 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7313
SELECT ALL 26 / 51 * + 15 AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7314
SELECT DISTINCT - + 80 DIV + 90 + 37 * + ( - + ( + 63 ) )
----
-2331

skipif mysql # not compatible
query I rowsort label-7314
SELECT DISTINCT - + 80 / + 90 + 37 * + ( - + ( + 63 ) )
----
-2331

query I rowsort
SELECT + 40 + 25 AS col1
----
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7316
SELECT ALL + CASE + 19 WHEN + 63 * - - ( - 12 ) THEN + - 16 ELSE NULL END / 50 * + 94 - - 57 + + - CASE + - 3 WHEN - + 79 THEN + 41 END * + 74 * MAX( + CAST( 14 AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7316
SELECT ALL + CASE + 19 WHEN + 63 * - - ( - 12 ) THEN + - 16 ELSE NULL END / 50 * + 94 - - 57 + + - CASE + - 3 WHEN - + 79 THEN + 41 END * + 74 * MAX ( + CAST ( 14 AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7317
SELECT DISTINCT + + 15 AS col1, 54 * - NULLIF ( - NULLIF ( + + 10, - 82 ), - 77 + - + ( COUNT( * ) ) - - 69 ) AS col1
----
15
540

skipif mysql # not compatible
query II rowsort label-7317
SELECT DISTINCT + + 15 AS col1, 54 * - NULLIF ( - NULLIF ( + + 10, - 82 ), - 77 + - + ( COUNT ( * ) ) - - 69 ) AS col1
----
15
540

onlyif mysql # aggregate syntax: 
query I rowsort label-7318
SELECT + + 7 * 59 * 27 + + + COALESCE ( + + ( ( 19 ) ), - + COUNT( * ), 98 + + SUM( ALL - - 82 ) ) + - 71 + + + COUNT( * ) AS col0
----
11100

skipif mysql # not compatible
query I rowsort label-7318
SELECT + + 7 * 59 * 27 + + + COALESCE ( + + ( ( 19 ) ), - + COUNT ( * ), 98 + + SUM ( ALL - - 82 ) ) + - 71 + + + COUNT ( * ) AS col0
----
11100

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7319
SELECT ALL + + 33 col2, - 56 + - + ( 45 ) DIV 11 * + 72 + + SUM( DISTINCT - - 18 ) DIV 41 AS col2
----
33
-344

skipif mysql # not compatible
query II rowsort label-7319
SELECT ALL + + 33 col2, - 56 + - + ( 45 ) / 11 * + 72 + + SUM ( DISTINCT - - 18 ) / 41 AS col2
----
33
-344

query I rowsort
SELECT ALL 9 * + 63 - 92
----
475

query I rowsort
SELECT + - 3 * 19
----
-57

onlyif mysql # aggregate syntax: 
query II rowsort label-7322
SELECT COUNT( * ) + - COUNT( * ) AS col2, 24
----
0
24

skipif mysql # not compatible
query II rowsort label-7322
SELECT COUNT ( * ) + - COUNT ( * ) AS col2, 24
----
0
24

query II rowsort
SELECT DISTINCT - - 22, + 42 + + 94 AS col2
----
22
136

query I rowsort
SELECT + NULLIF ( 13, - 88 * 35 * - 71 ) AS col0
----
13

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7326
SELECT ALL - 93 * CAST( NULL AS DECIMAL ) + + - 25
----
NULL

skipif mysql # not compatible
query I rowsort label-7326
SELECT ALL - 93 * CAST ( NULL AS REAL ) + + - 25
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7327
SELECT COUNT( ALL 99 ) DIV 82 + + - 91
----
-91

skipif mysql # not compatible
query I rowsort label-7327
SELECT COUNT ( ALL 99 ) / 82 + + - 91
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-7328
SELECT ALL - COALESCE ( - 22, + COUNT( * ), - + 57 + + 76 )
----
22

skipif mysql # not compatible
query I rowsort label-7328
SELECT ALL - COALESCE ( - 22, + COUNT ( * ), - + 57 + + 76 )
----
22

query I rowsort
SELECT ALL 5 * + 13 AS col2
----
65

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7330
SELECT 92 DIV 80 * MIN( 83 )
----
83

skipif mysql # not compatible
query I rowsort label-7330
SELECT 92 / 80 * MIN ( 83 )
----
83

onlyif mysql # DIV for integer division: 
query I rowsort label-7331
SELECT 27 DIV 48 DIV - - 49
----
0

skipif mysql # not compatible
query I rowsort label-7331
SELECT 27 / 48 / - - 49
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7332
SELECT MAX( CAST( - - 89 AS SIGNED ) ) + - COALESCE ( - 85, 20 ) + + + 72 + + COALESCE ( + 57, + 48 - 16 ) + - 21 + - COUNT( * ) * - - 82 * + 16 AS col1
----
-1030

skipif mysql # not compatible
query I rowsort label-7332
SELECT MAX ( CAST ( - - 89 AS INTEGER ) ) + - COALESCE ( - 85, 20 ) + + + 72 + + COALESCE ( + 57, + 48 - 16 ) + - 21 + - COUNT ( * ) * - - 82 * + 16 AS col1
----
-1030

query I rowsort
SELECT DISTINCT - 55 * + 79
----
-4345

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7335
SELECT ALL - CAST( NULL AS SIGNED ) + - + 44 + + 97 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7335
SELECT ALL - CAST ( NULL AS INTEGER ) + - + 44 + + 97 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7336
SELECT 27 + CAST( + CASE + 66 WHEN - ( + 15 ) THEN NULL WHEN + - 35 THEN 60 * - - NULLIF ( + 68, ( - - 97 ) * + + COUNT( * ) * - 55 + + + AVG ( DISTINCT 26 ) ) ELSE NULL END AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7336
SELECT 27 + CAST ( + CASE + 66 WHEN - ( + 15 ) THEN NULL WHEN + - 35 THEN 60 * - - NULLIF ( + 68, ( - - 97 ) * + + COUNT ( * ) * - 55 + + + AVG ( DISTINCT 26 ) ) ELSE NULL END AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7337
SELECT ALL - ( - 44 ) + + 25 + - COUNT( * ) * - + 69 * + 54
----
3795

skipif mysql # not compatible
query I rowsort label-7337
SELECT ALL - ( - 44 ) + + 25 + - COUNT ( * ) * - + 69 * + 54
----
3795

onlyif mysql # aggregate syntax: 
query I rowsort label-7338
SELECT 33 + + ( - - COUNT( ALL - 77 ) ) AS col2
----
34

skipif mysql # not compatible
query I rowsort label-7338
SELECT 33 + + ( - - COUNT ( ALL - 77 ) ) AS col2
----
34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7339
SELECT DISTINCT - CAST( + 72 AS SIGNED ) + + 74 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-7339
SELECT DISTINCT - CAST ( + 72 AS INTEGER ) + + 74 AS col2
----
2

query I rowsort
SELECT 52 + + + 8
----
60

query I rowsort
SELECT 23 * - 45
----
-1035

query I rowsort
SELECT 62 + - 18 + + 1
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-7343
SELECT DISTINCT - NULLIF ( COUNT( * ), + 53 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-7343
SELECT DISTINCT - NULLIF ( COUNT ( * ), + 53 ) AS col0
----
-1

query I rowsort
SELECT ALL - 38 * - NULLIF ( + + 24, 10 )
----
912

query I rowsort
SELECT DISTINCT - - 12 * + - NULLIF ( 75, + 80 ) AS col1
----
-900

query I rowsort
SELECT + 47 * + 49 AS col2
----
2303

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

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

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

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

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

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

query II rowsort
SELECT 72 * - - 68 + 23, + 13 * - 78 * - 55 AS col1
----
4919
55770

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7351
SELECT DISTINCT - COUNT( * ) DIV 42
----
0

skipif mysql # not compatible
query I rowsort label-7351
SELECT DISTINCT - COUNT ( * ) / 42
----
0

query I rowsort
SELECT + 36 + + ( 56 ) AS col2
----
92

onlyif mysql # aggregate syntax: 
query II rowsort label-7353
SELECT 52 * + ( + COUNT( * ) ) + - SUM( - + 65 ) * - ( - 4 ) AS col1, + 81 AS col1
----
312
81

skipif mysql # not compatible
query II rowsort label-7353
SELECT 52 * + ( + COUNT ( * ) ) + - SUM ( - + 65 ) * - ( - 4 ) AS col1, + 81 AS col1
----
312
81

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

skipif mysql # not compatible
query I rowsort label-7354
SELECT ALL - COUNT ( DISTINCT - 76 ) AS col2
----
-1

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

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

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

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

query I rowsort
SELECT - ( - - 13 ) * + 12
----
-156

query I rowsort
SELECT 21 + + - ( - 62 )
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-7359
SELECT DISTINCT 64 * + COUNT( DISTINCT + + 24 )
----
64

skipif mysql # not compatible
query I rowsort label-7359
SELECT DISTINCT 64 * + COUNT ( DISTINCT + + 24 )
----
64

query II rowsort
SELECT - 81 AS col1, - 59 + + 11 col1
----
-81
-48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7361
SELECT DISTINCT 83 AS col2, + 29 / + COALESCE ( + + COUNT( * ), - MAX( ALL + - 1 ) + 14 * - AVG ( DISTINCT + 16 ) * 40 ) * - CASE + + MIN( DISTINCT ( - - 37 ) ) WHEN + + 23 THEN NULLIF ( + + 9, + CAST( NULL AS SIGNED ) * COUNT( * ) * - 48 + 0 * COUNT( * ) * - 38 * - COALESCE ( + COALESCE ( + 57, - 84 * MIN( DISTINCT + 36 ) ), 44 ) ) WHEN - + 92 / + - 25 + 10 THEN 9 WHEN - 43 THEN COUNT( * ) END
----
83
NULL

skipif mysql # not compatible
query II rowsort label-7361
SELECT DISTINCT 83 AS col2, + 29 / + COALESCE ( + + COUNT ( * ), - MAX ( ALL + - 1 ) + 14 * - AVG ( DISTINCT + 16 ) * 40 ) * - CASE + + MIN ( DISTINCT ( - - 37 ) ) WHEN + + 23 THEN NULLIF ( + + 9, + CAST ( NULL AS INTEGER ) * COUNT ( * ) * - 48 + 0 * COUNT ( * ) * - 38 * - COALESCE ( + COALESCE ( + 57, - 84 * MIN ( DISTINCT + 36 ) ), 44 ) ) WHEN - + 92 / + - 25 + 10 THEN 9 WHEN - 43 THEN COUNT ( * ) END
----
83
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7362
SELECT ALL 99 + + ( COUNT( * ) ) + + 26 + + - 27
----
99

skipif mysql # not compatible
query I rowsort label-7362
SELECT ALL 99 + + ( COUNT ( * ) ) + + 26 + + - 27
----
99

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7363
SELECT COALESCE ( + 1, + 29 ) - + CAST( NULL AS DECIMAL ) + + 30 + - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7363
SELECT COALESCE ( + 1, + 29 ) - + CAST ( NULL AS REAL ) + + 30 + - CAST ( NULL AS INTEGER ) AS col1
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7365
SELECT 70 AS col2, + 64 * 46 * COUNT( * ) - + 2 + + ( COALESCE ( + 48, - + 40 + CAST( NULL AS SIGNED ) / 62 + 53 * ( + - 64 ), + - 84 - + - COUNT( * ) ) ) * - - CAST( NULL AS SIGNED ) * + 58 AS col1
----
70
NULL

skipif mysql # not compatible
query II rowsort label-7365
SELECT 70 AS col2, + 64 * 46 * COUNT ( * ) - + 2 + + ( COALESCE ( + 48, - + 40 + CAST ( NULL AS INTEGER ) / 62 + 53 * ( + - 64 ), + - 84 - + - COUNT ( * ) ) ) * - - CAST ( NULL AS INTEGER ) * + 58 AS col1
----
70
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7367
SELECT DISTINCT MIN( DISTINCT + 69 ) + + + 50 * + + CAST( NULL AS SIGNED ) * 80 + - CASE + - 28 WHEN - + 55 * + 30 THEN NULL WHEN - - COUNT( * ) + 75 THEN + ( - 11 ) / 84 END + + - 11 - - COUNT( ALL + 48 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7367
SELECT DISTINCT MIN ( DISTINCT + 69 ) + + + 50 * + + CAST ( NULL AS INTEGER ) * 80 + - CASE + - 28 WHEN - + 55 * + 30 THEN NULL WHEN - - COUNT ( * ) + 75 THEN + ( - 11 ) / 84 END + + - 11 - - COUNT ( ALL + 48 ) AS col0
----
NULL

query I rowsort
SELECT 33 - - NULLIF ( + 92, + 66 ) + + NULLIF ( 38, - 41 ) + NULLIF ( + - 65, + 17 ) AS col0
----
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7369
SELECT ALL + 7 * ( - 97 ) AS col0, CASE - 39 WHEN - ( + - SUM( DISTINCT + + CAST( NULL AS SIGNED ) ) ) * + COUNT( * ) + 2 * + - 28 - CAST( - 97 AS SIGNED ) + + + 99 - + - 67 THEN + 37 / 27 + 40 END
----
-679
NULL

skipif mysql # not compatible
query II rowsort label-7369
SELECT ALL + 7 * ( - 97 ) AS col0, CASE - 39 WHEN - ( + - SUM ( DISTINCT + + CAST ( NULL AS INTEGER ) ) ) * + COUNT ( * ) + 2 * + - 28 - CAST ( - 97 AS INTEGER ) + + + 99 - + - 67 THEN + 37 / 27 + 40 END
----
-679
NULL

query II rowsort
SELECT 86 AS col2, 78 AS col1
----
86
78

query I rowsort
SELECT 58 * + - 31
----
-1798

query I rowsort
SELECT + 13 * ( + + ( + - 92 ) ) - 28
----
-1224

query II rowsort
SELECT - 12, - 48 col2
----
-12
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-7374
SELECT DISTINCT + MAX( - - 14 ) AS col0
----
14

skipif mysql # not compatible
query I rowsort label-7374
SELECT DISTINCT + MAX ( - - 14 ) AS col0
----
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7375
SELECT - 34 * - - CAST( NULL AS SIGNED ) * + 45 + 74 - - 88 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7375
SELECT - 34 * - - CAST ( NULL AS INTEGER ) * + 45 + 74 - - 88 col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7376
SELECT - + CAST( - + 32 AS SIGNED ) * 55 * - + 74 AS col0
----
-130240

skipif mysql # not compatible
query I rowsort label-7376
SELECT - + CAST ( - + 32 AS INTEGER ) * 55 * - + 74 AS col0
----
-130240

onlyif mysql # DIV for integer division: 
query I rowsort label-7377
SELECT + - 84 DIV - COALESCE ( 6, - - 68 ) + 81 - + - 35 + 82 * - 63 - - 69 + 65 + 8 * 75
----
-4302

skipif mysql # not compatible
query I rowsort label-7377
SELECT + - 84 / - COALESCE ( 6, - - 68 ) + 81 - + - 35 + 82 * - 63 - - 69 + 65 + 8 * 75
----
-4302

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

query I rowsort
SELECT - + 37 + 47 * + - 90 AS col0
----
-4267

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7380
SELECT ALL + 26 * - CASE + - 93 WHEN - CASE + - 73 WHEN - 97 + - CASE COUNT( * ) WHEN - 18 + - NULLIF ( - 57, - 17 * - 65 ) + - ( - - ( - 38 ) ) + - 42 + - COUNT( + CAST( NULL AS SIGNED ) ) * 79 * - 61 + + 78 THEN - - 88 DIV + 80 DIV 73 * + ( + 12 ) * - 19 * + 10 DIV 5 * - + 85 WHEN + 95 + SUM( + 57 ) + + COUNT( * ) THEN NULL WHEN COALESCE ( 19, 51 ) THEN 51 ELSE 29 * 51 END * 97 THEN NULL WHEN - MAX( 57 ) DIV - 4 + 66 THEN NULL WHEN - NULLIF ( + 54, + 9 ) THEN + 57 * + 75 ELSE NULL END + 95 THEN 1 DIV 36 WHEN 7 + - 18 * - 77 THEN + 48 * ( 61 ) ELSE 64 END col1
----
-1664

skipif mysql # not compatible
query I rowsort label-7380
SELECT ALL + 26 * - CASE + - 93 WHEN - CASE + - 73 WHEN - 97 + - CASE COUNT ( * ) WHEN - 18 + - NULLIF ( - 57, - 17 * - 65 ) + - ( - - ( - 38 ) ) + - 42 + - COUNT ( + CAST ( NULL AS INTEGER ) ) * 79 * - 61 + + 78 THEN - - 88 / + 80 / 73 * + ( + 12 ) * - 19 * + 10 / 5 * - + 85 WHEN + 95 + SUM ( + 57 ) + + COUNT ( * ) THEN NULL WHEN COALESCE ( 19, 51 ) THEN 51 ELSE 29 * 51 END * 97 THEN NULL WHEN - MAX ( 57 ) / - 4 + 66 THEN NULL WHEN - NULLIF ( + 54, + 9 ) THEN + 57 * + 75 ELSE NULL END + 95 THEN 1 / 36 WHEN 7 + - 18 * - 77 THEN + 48 * ( 61 ) ELSE 64 END col1
----
-1664

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

skipif mysql # not compatible
query I rowsort label-7381
SELECT - - COUNT ( * ) / 21 / + ( - 31 )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7382
SELECT COUNT( * ) AS col1, COALESCE ( - 21, 29 * 2, 81 ) + - MIN( - 52 ) DIV - 26 + + + 98
----
1
75

skipif mysql # not compatible
query II rowsort label-7382
SELECT COUNT ( * ) AS col1, COALESCE ( - 21, 29 * 2, 81 ) + - MIN ( - 52 ) / - 26 + + + 98
----
1
75

query I rowsort
SELECT - - 77 * - - 1
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-7384
SELECT ALL + 65 * - + COUNT( * ) * - 16 + + 11 AS col2
----
1051

skipif mysql # not compatible
query I rowsort label-7384
SELECT ALL + 65 * - + COUNT ( * ) * - 16 + + 11 AS col2
----
1051

onlyif mysql # aggregate syntax: 
query I rowsort label-7385
SELECT - CASE + 52 WHEN - 3 THEN ( - 63 ) WHEN - 34 / COUNT( * ) THEN - + 2 * - COALESCE ( - 84, - AVG ( - 9 ), + - 33 ) * 77 * 18 WHEN + 28 * + + ( - + 2 ) THEN - 55 ELSE NULL END / - + 72
----
NULL

skipif mysql # not compatible
query I rowsort label-7385
SELECT - CASE + 52 WHEN - 3 THEN ( - 63 ) WHEN - 34 / COUNT ( * ) THEN - + 2 * - COALESCE ( - 84, - AVG ( - 9 ), + - 33 ) * 77 * 18 WHEN + 28 * + + ( - + 2 ) THEN - 55 ELSE NULL END / - + 72
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7386
SELECT - 88 + NULLIF ( + 90, - 84 ) DIV - - 84
----
-87

skipif mysql # not compatible
query I rowsort label-7386
SELECT - 88 + NULLIF ( + 90, - 84 ) / - - 84
----
-87

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

query I rowsort
SELECT ALL - + 50 * + - 97 + ( + + 43 ) AS col2
----
4893

onlyif mysql # aggregate syntax: 
query I rowsort label-7389
SELECT - 88 * MIN( ALL 34 ) col1
----
-2992

skipif mysql # not compatible
query I rowsort label-7389
SELECT - 88 * MIN ( ALL 34 ) col1
----
-2992

onlyif mysql # DIV for integer division: 
query I rowsort label-7390
SELECT ALL + 37 DIV + + 42 * + + 78
----
0

skipif mysql # not compatible
query I rowsort label-7390
SELECT ALL + 37 / + + 42 * + + 78
----
0

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7392
SELECT DISTINCT SUM( - - 12 ) + - 18 + - ( - 27 ) DIV COUNT( * ) AS col0
----
21

skipif mysql # not compatible
query I rowsort label-7392
SELECT DISTINCT SUM ( - - 12 ) + - 18 + - ( - 27 ) / COUNT ( * ) AS col0
----
21

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7394
SELECT - COALESCE ( - 79, + 5 * + 25 + - 13 + ( + + COALESCE ( 7, + - 28 * + 67 + 95 + + - 1, + 49 + - COUNT( * ) + + - 44 + 46, + + 83 ) ) ) AS col0, - COUNT( * )
----
79
-1

skipif mysql # not compatible
query II rowsort label-7394
SELECT - COALESCE ( - 79, + 5 * + 25 + - 13 + ( + + COALESCE ( 7, + - 28 * + 67 + 95 + + - 1, + 49 + - COUNT ( * ) + + - 44 + 46, + + 83 ) ) ) AS col0, - COUNT ( * )
----
79
-1

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7395
SELECT ALL NULLIF ( - ( - 89 ), - CAST( NULL AS DECIMAL ) + - 31 ) * 75 + + CAST( NULL AS SIGNED ) - - COALESCE ( + ( - + 57 ), + - 32 * - - 11 + - - 54 - - 29 * - 49 * - 96 ) + - + 25
----
NULL

skipif mysql # not compatible
query I rowsort label-7395
SELECT ALL NULLIF ( - ( - 89 ), - CAST ( NULL AS REAL ) + - 31 ) * 75 + + CAST ( NULL AS INTEGER ) - - COALESCE ( + ( - + 57 ), + - 32 * - - 11 + - - 54 - - 29 * - 49 * - 96 ) + - + 25
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7396
SELECT - 16 + - + ( COUNT( * ) ) + - 3 - MIN( DISTINCT - 44 ) + - 81 * - 64
----
5208

skipif mysql # not compatible
query I rowsort label-7396
SELECT - 16 + - + ( COUNT ( * ) ) + - 3 - MIN ( DISTINCT - 44 ) + - 81 * - 64
----
5208

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7397
SELECT ALL + COALESCE ( - - 8, 52 / 12 - + 64 ) * COUNT( * ) + + + CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7397
SELECT ALL + COALESCE ( - - 8, 52 / 12 - + 64 ) * COUNT ( * ) + + + CAST ( NULL AS INTEGER ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7398
SELECT ALL 80 - SUM( 57 ) AS col1
----
23

skipif mysql # not compatible
query I rowsort label-7398
SELECT ALL 80 - SUM ( 57 ) AS col1
----
23

onlyif mysql # DIV for integer division: 
query I rowsort label-7399
SELECT DISTINCT 97 DIV + 45 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-7399
SELECT DISTINCT 97 / + 45 AS col0
----
2

query I rowsort
SELECT + 62 + + - 74
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-7401
SELECT + 29 + 60 - COUNT( * ) * 44 + + - 64
----
-19

skipif mysql # not compatible
query I rowsort label-7401
SELECT + 29 + 60 - COUNT ( * ) * 44 + + - 64
----
-19

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7402
SELECT ALL - CAST( - - 4 AS SIGNED ) DIV - 91 + - 90 col2
----
-90

skipif mysql # not compatible
query I rowsort label-7402
SELECT ALL - CAST ( - - 4 AS INTEGER ) / - 91 + - 90 col2
----
-90

query I rowsort
SELECT + NULLIF ( - 67, - 53 ) + 77
----
10

query I rowsort
SELECT - NULLIF ( 83, + 22 )
----
-83

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7405
SELECT - - 27 + - - CAST( NULL AS DECIMAL ) + - ( 74 ) + 52 * + - NULLIF ( MAX( 10 ), + + MAX( 66 ) * + 2 ) * - 70 + + COUNT( + 86 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7405
SELECT - - 27 + - - CAST ( NULL AS REAL ) + - ( 74 ) + 52 * + - NULLIF ( MAX ( 10 ), + + MAX ( 66 ) * + 2 ) * - 70 + + COUNT ( + 86 ) AS col1
----
NULL

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7407
SELECT ALL 49 * - 13, COALESCE ( - - COUNT( * ), - - 5 * + 36 DIV - - 19 - - ( + 12 ) * - - 30, - 78 ) AS col1
----
-637
1

skipif mysql # not compatible
query II rowsort label-7407
SELECT ALL 49 * - 13, COALESCE ( - - COUNT ( * ), - - 5 * + 36 / - - 19 - - ( + 12 ) * - - 30, - 78 ) AS col1
----
-637
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7408
SELECT DISTINCT 73 DIV 63 + - COUNT( * ) + 14 - + COUNT( * ) * - COUNT( * ) col2
----
15

skipif mysql # not compatible
query I rowsort label-7408
SELECT DISTINCT 73 / 63 + - COUNT ( * ) + 14 - + COUNT ( * ) * - COUNT ( * ) col2
----
15

query I rowsort
SELECT + + 91 * 84 * + 10 col1
----
76440

onlyif mysql # DIV for integer division: 
query I rowsort label-7410
SELECT DISTINCT 60 DIV + 96 + + 98 + + 66 * - + 57
----
-3664

skipif mysql # not compatible
query I rowsort label-7410
SELECT DISTINCT 60 / + 96 + + 98 + + 66 * - + 57
----
-3664

query I rowsort
SELECT + - ( - 22 ) * + + 98 + - 16 AS col2
----
2140

query I rowsort
SELECT ALL + CASE + + 76 WHEN + 31 + 4 THEN + 82 * - 28 * - 95 ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7413
SELECT - 72 * COUNT( * ) AS col1, - 81 + - 97
----
-72
-178

skipif mysql # not compatible
query II rowsort label-7413
SELECT - 72 * COUNT ( * ) AS col1, - 81 + - 97
----
-72
-178

query I rowsort
SELECT ALL - - 73 * + - ( 86 ) + - + 68 + 7 * + + 51
----
-5989

query I rowsort
SELECT - - 65 * - 75
----
-4875

query I rowsort
SELECT ALL + ( - + 33 ) * + ( 68 ) + + ( + + 1 ) AS col2
----
-2243

onlyif mysql # aggregate syntax: 
query I rowsort label-7417
SELECT COALESCE ( - COUNT( * ), + - 48 * + 36 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-7417
SELECT COALESCE ( - COUNT ( * ), + - 48 * + 36 ) AS col1
----
-1

query II rowsort
SELECT ALL + 91 AS col0, 92 + - 81 * + 69 AS col1
----
91
-5497

query I rowsort
SELECT DISTINCT + 24 * - 11 AS col0
----
-264

onlyif mysql # aggregate syntax: 
query I rowsort label-7420
SELECT ALL - 60 * - + MIN( DISTINCT + 7 ) + + - 41 AS col0
----
379

skipif mysql # not compatible
query I rowsort label-7420
SELECT ALL - 60 * - + MIN ( DISTINCT + 7 ) + + - 41 AS col0
----
379

onlyif mysql # aggregate syntax: 
query I rowsort label-7421
SELECT NULLIF ( - 52, - MAX( 12 ) ) AS col2
----
-52

skipif mysql # not compatible
query I rowsort label-7421
SELECT NULLIF ( - 52, - MAX ( 12 ) ) AS col2
----
-52

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

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

query I rowsort
SELECT - 28 + + 17
----
-11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7424
SELECT DISTINCT MIN( DISTINCT + 62 ) * 88 - - - 84 + - + 14 + + 54 * + - MIN( - ( CAST( + + 54 AS SIGNED ) ) ) * 73, SUM( ALL - COALESCE ( - 9, 49 ) ) * + 29 * - CASE + - 14 WHEN 24 + - - 1 THEN 2 END + - 31 AS col0
----
218226
NULL

skipif mysql # not compatible
query II rowsort label-7424
SELECT DISTINCT MIN ( DISTINCT + 62 ) * 88 - - - 84 + - + 14 + + 54 * + - MIN ( - ( CAST ( + + 54 AS INTEGER ) ) ) * 73, SUM ( ALL - COALESCE ( - 9, 49 ) ) * + 29 * - CASE + - 14 WHEN 24 + - - 1 THEN 2 END + - 31 AS col0
----
218226
NULL

query I rowsort
SELECT DISTINCT 36 * + 24 - + 76
----
788

onlyif mysql # DIV for integer division: 
query I rowsort label-7426
SELECT ALL - 79 DIV + 93 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7426
SELECT ALL - 79 / + 93 AS col2
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7427
SELECT - 68 * - 76 * + NULLIF ( - 10, + CAST( NULL AS DECIMAL ) )
----
-51680

skipif mysql # not compatible
query I rowsort label-7427
SELECT - 68 * - 76 * + NULLIF ( - 10, + CAST ( NULL AS REAL ) )
----
-51680

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7429
SELECT ALL 56 * - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7429
SELECT ALL 56 * - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7430
SELECT - COALESCE ( + 58, - - 98 DIV 3 ) AS col2
----
-58

skipif mysql # not compatible
query I rowsort label-7430
SELECT - COALESCE ( + 58, - - 98 / 3 ) AS col2
----
-58

query II rowsort
SELECT ALL + 17 * 34 * + 21 AS col2, + 46
----
12138
46

onlyif mysql # aggregate syntax: 
query II rowsort label-7432
SELECT 51 * - MAX( COALESCE ( - 1, - 14 ) ), + 48 * - 43 AS col1
----
51
-2064

skipif mysql # not compatible
query II rowsort label-7432
SELECT 51 * - MAX ( COALESCE ( - 1, - 14 ) ), + 48 * - 43 AS col1
----
51
-2064

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7434
SELECT ALL + 51 + + - 22 - + COALESCE ( - + 50, + - 23 ) + - COUNT( - 21 ) * + 94 AS col1
----
-15

skipif mysql # not compatible
query I rowsort label-7434
SELECT ALL + 51 + + - 22 - + COALESCE ( - + 50, + - 23 ) + - COUNT ( - 21 ) * + 94 AS col1
----
-15

query I rowsort
SELECT ALL + 81 * + 80 col2
----
6480

query I rowsort
SELECT 27 * + 73 * 27 + + 1
----
53218

onlyif mysql # aggregate syntax: 
query I rowsort label-7437
SELECT DISTINCT + - COUNT( * ) + + 46
----
45

skipif mysql # not compatible
query I rowsort label-7437
SELECT DISTINCT + - COUNT ( * ) + + 46
----
45

query I rowsort
SELECT ALL - 90 + - 36
----
-126

onlyif mysql # DIV for integer division: 
query I rowsort label-7439
SELECT 19 DIV 73 * - + 55 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7439
SELECT 19 / 73 * - + 55 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7440
SELECT ALL 60 + NULLIF ( + 49, 31 ) + - - SUM( ALL + - 52 ) + CASE - - 4 WHEN - - 88 THEN 96 / + 76 + - 36 + + - CAST( + - 42 AS DECIMAL ) + ( - 21 ) - + AVG ( DISTINCT 99 ) * + 72 + + NULLIF ( - 91, + 69 ) + + + 2 + 58 + - - 8 * + + 55 * 61 * + 44 + + 38 * 2 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7440
SELECT ALL 60 + NULLIF ( + 49, 31 ) + - - SUM ( ALL + - 52 ) + CASE - - 4 WHEN - - 88 THEN 96 / + 76 + - 36 + + - CAST ( + - 42 AS REAL ) + ( - 21 ) - + AVG ( DISTINCT 99 ) * + 72 + + NULLIF ( - 91, + 69 ) + + + 2 + 58 + - - 8 * + + 55 * 61 * + 44 + + 38 * 2 END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7441
SELECT CASE + 41 WHEN + + 73 * - - 79 + AVG ( + - 42 ) THEN + 97 * - + 1 + + 39 * 62 END - 45 + - CAST( NULL AS SIGNED ) * - - 49 / + + COUNT( * ) * + - 34 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7441
SELECT CASE + 41 WHEN + + 73 * - - 79 + AVG ( + - 42 ) THEN + 97 * - + 1 + + 39 * 62 END - 45 + - CAST ( NULL AS INTEGER ) * - - 49 / + + COUNT ( * ) * + - 34 col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7442
SELECT - - 82 DIV 56 - + + 6 + - 56 + - + 42 * + COUNT( * ) * + 62 * 95 AS col0
----
-247441

skipif mysql # not compatible
query I rowsort label-7442
SELECT - - 82 / 56 - + + 6 + - 56 + - + 42 * + COUNT ( * ) * + 62 * 95 AS col0
----
-247441

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7443
SELECT DISTINCT COUNT( * ) DIV - + ( 22 ) + 78 * - ( SUM( 67 ) ) + 15 + + 63 AS col2
----
-5148

skipif mysql # not compatible
query I rowsort label-7443
SELECT DISTINCT COUNT ( * ) / - + ( 22 ) + 78 * - ( SUM ( 67 ) ) + 15 + + 63 AS col2
----
-5148

onlyif mysql # aggregate syntax: 
query I rowsort label-7444
SELECT 29 * - 83 * + 16 + - MAX( + 97 ) AS col0
----
-38609

skipif mysql # not compatible
query I rowsort label-7444
SELECT 29 * - 83 * + 16 + - MAX ( + 97 ) AS col0
----
-38609

query I rowsort
SELECT 88 * + 59 AS col2
----
5192

query I rowsort
SELECT ALL - 74 + + 33 AS col0
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-7447
SELECT - - ( + 2 ) * - + ( + COUNT( * ) ) + - 88 AS col0
----
-90

skipif mysql # not compatible
query I rowsort label-7447
SELECT - - ( + 2 ) * - + ( + COUNT ( * ) ) + - 88 AS col0
----
-90

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7449
SELECT - 23 + + 92 + - + COUNT( * ) DIV - 12 AS col0
----
69

skipif mysql # not compatible
query I rowsort label-7449
SELECT - 23 + + 92 + - + COUNT ( * ) / - 12 AS col0
----
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7450
SELECT ALL 6 - - - CASE + 22 WHEN - COUNT( * ) * - 74 THEN NULL WHEN COUNT( * ) * - 11 * + COALESCE ( + + COUNT( ( - + 15 ) ), + - 37 * + - 3 * + - 26 + 98 - + - 17 ) - 80 + - COUNT( * ) * 53 THEN NULL WHEN + + 23 THEN NULL WHEN - CAST( + 87 AS SIGNED ) THEN - CAST( NULL AS SIGNED ) END + - + 96 + 80
----
NULL

skipif mysql # not compatible
query I rowsort label-7450
SELECT ALL 6 - - - CASE + 22 WHEN - COUNT ( * ) * - 74 THEN NULL WHEN COUNT ( * ) * - 11 * + COALESCE ( + + COUNT ( ( - + 15 ) ), + - 37 * + - 3 * + - 26 + 98 - + - 17 ) - 80 + - COUNT ( * ) * 53 THEN NULL WHEN + + 23 THEN NULL WHEN - CAST ( + 87 AS INTEGER ) THEN - CAST ( NULL AS INTEGER ) END + - + 96 + 80
----
NULL

query II rowsort
SELECT 86 AS col0, 31 * 7 * + ( + 55 ) * + 41 AS col2
----
86
489335

onlyif mysql # aggregate syntax: 
query II rowsort label-7452
SELECT ALL - CASE + + ( + 25 ) WHEN - - 81 * - - 5 * 65 + 7 THEN + CASE - - 66 WHEN + + 90 THEN SUM( - 98 ) END / + + COUNT( * ) * + 13 ELSE NULL END col1, ( + 0 ) AS col0
----
NULL
0

skipif mysql # not compatible
query II rowsort label-7452
SELECT ALL - CASE + + ( + 25 ) WHEN - - 81 * - - 5 * 65 + 7 THEN + CASE - - 66 WHEN + + 90 THEN SUM ( - 98 ) END / + + COUNT ( * ) * + 13 ELSE NULL END col1, ( + 0 ) AS col0
----
NULL
0

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

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

query II rowsort
SELECT 67 AS col0, 55 col2
----
67
55

query I rowsort
SELECT - 64 * + - 15 + + 45 + + 70 + - 65
----
1010

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

skipif mysql # not compatible
query I rowsort label-7456
SELECT ALL - MAX ( - - 17 )
----
-17

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7459
SELECT ALL 33 DIV 62
----
0

skipif mysql # not compatible
query I rowsort label-7459
SELECT ALL 33 / 62
----
0

query I rowsort
SELECT ALL - 75 * + 59
----
-4425

query I rowsort
SELECT 68 - + - ( + - 37 )
----
31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7462
SELECT 77 + - + ( - + 15 ) - - 77 + - 52 + CASE - + 34 WHEN - 99 THEN - CAST( + 50 AS SIGNED ) * - 59 * + 67 + + + 39 - 56 END / - + 97 / + - 92 + + - 45 / 15 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7462
SELECT 77 + - + ( - + 15 ) - - 77 + - 52 + CASE - + 34 WHEN - 99 THEN - CAST ( + 50 AS INTEGER ) * - 59 * + 67 + + + 39 - 56 END / - + 97 / + - 92 + + - 45 / 15 AS col0
----
NULL

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

query I rowsort
SELECT 51 * 11 * + 4
----
2244

query I rowsort
SELECT 87 * 51
----
4437

onlyif mysql # aggregate syntax: 
query I rowsort label-7466
SELECT 39 * COUNT( * ) + - - 38 + + 94 AS col1
----
171

skipif mysql # not compatible
query I rowsort label-7466
SELECT 39 * COUNT ( * ) + - - 38 + + 94 AS col1
----
171

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7467
SELECT - 64 + NULLIF ( 92, - 33 ), COUNT( * ) * - CAST( + 96 AS SIGNED ) AS col1
----
28
-96

skipif mysql # not compatible
query II rowsort label-7467
SELECT - 64 + NULLIF ( 92, - 33 ), COUNT ( * ) * - CAST ( + 96 AS INTEGER ) AS col1
----
28
-96

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7469
SELECT DISTINCT + - 81 + - 70 - + 88 + - NULLIF ( - MIN( ALL - 84 ), 6 )
----
-323

skipif mysql # not compatible
query I rowsort label-7469
SELECT DISTINCT + - 81 + - 70 - + 88 + - NULLIF ( - MIN ( ALL - 84 ), 6 )
----
-323

query I rowsort
SELECT 42 + + 10 AS col2
----
52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7471
SELECT ALL + + 31 + + - AVG ( CASE - + 87 WHEN 46 THEN NULL WHEN - - CASE + CAST( NULL AS SIGNED ) WHEN + CAST( 48 AS SIGNED ) THEN - + 9 ELSE NULL END THEN 61 END ) * - 73 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7471
SELECT ALL + + 31 + + - AVG ( CASE - + 87 WHEN 46 THEN NULL WHEN - - CASE + CAST ( NULL AS INTEGER ) WHEN + CAST ( 48 AS INTEGER ) THEN - + 9 ELSE NULL END THEN 61 END ) * - 73 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7472
SELECT DISTINCT - - MAX( - + 57 ) + - 84 AS col0
----
-141

skipif mysql # not compatible
query I rowsort label-7472
SELECT DISTINCT - - MAX ( - + 57 ) + - 84 AS col0
----
-141

onlyif mysql # aggregate syntax: 
query I rowsort label-7473
SELECT ALL - COUNT( * ) + + 34
----
33

skipif mysql # not compatible
query I rowsort label-7473
SELECT ALL - COUNT ( * ) + + 34
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-7474
SELECT ALL - CASE - 40 WHEN - + 46 THEN NULL WHEN - COUNT( - 28 ) * - 82 - 41 THEN 73 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7474
SELECT ALL - CASE - 40 WHEN - + 46 THEN NULL WHEN - COUNT ( - 28 ) * - 82 - 41 THEN 73 END AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7475
SELECT + CAST( NULL AS SIGNED ) AS col2, 28 AS col2
----
NULL
28

skipif mysql # not compatible
query II rowsort label-7475
SELECT + CAST ( NULL AS INTEGER ) AS col2, 28 AS col2
----
NULL
28

onlyif mysql # aggregate syntax: 
query I rowsort label-7476
SELECT + 41 + COUNT( * ) * + 43
----
84

skipif mysql # not compatible
query I rowsort label-7476
SELECT + 41 + COUNT ( * ) * + 43
----
84

query II rowsort
SELECT - 71, - 29 AS col2
----
-71
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-7478
SELECT 44 * + + COUNT( * ) + - 60
----
-16

skipif mysql # not compatible
query I rowsort label-7478
SELECT 44 * + + COUNT ( * ) + - 60
----
-16

query I rowsort
SELECT ALL - 87 * 79
----
-6873

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7480
SELECT DISTINCT - - COALESCE ( - + 71, 59, + - 22 DIV - MIN( 44 ) ) * NULLIF ( 28, 79 - + - COUNT( * ) ) AS col0
----
-1988

skipif mysql # not compatible
query I rowsort label-7480
SELECT DISTINCT - - COALESCE ( - + 71, 59, + - 22 / - MIN ( 44 ) ) * NULLIF ( 28, 79 - + - COUNT ( * ) ) AS col0
----
-1988

onlyif mysql # aggregate syntax: 
query I rowsort label-7481
SELECT COUNT( - 27 )
----
1

skipif mysql # not compatible
query I rowsort label-7481
SELECT COUNT ( - 27 )
----
1

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

skipif mysql # not compatible
query I rowsort label-7482
SELECT 46 / + ( - COUNT ( * ) )
----
-46

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

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

query I rowsort
SELECT 36 - - 50 * - 21
----
-1014

query I rowsort
SELECT 42 * - CASE 76 WHEN - - 12 / + - 72 THEN + - 3 END AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7486
SELECT DISTINCT - CAST( NULL AS SIGNED ) / - 94
----
NULL

skipif mysql # not compatible
query I rowsort label-7486
SELECT DISTINCT - CAST ( NULL AS INTEGER ) / - 94
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7487
SELECT COUNT( DISTINCT 81 ) col0, - 70
----
1
-70

skipif mysql # not compatible
query II rowsort label-7487
SELECT COUNT ( DISTINCT 81 ) col0, - 70
----
1
-70

query I rowsort
SELECT ALL COALESCE ( + + 98, 50 ) * + 93
----
9114

query I rowsort
SELECT DISTINCT 92 * 19
----
1748

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7492
SELECT ALL 21 + 80, ( - COUNT( ALL 68 ) ) + 12 AS col1
----
101
11

skipif mysql # not compatible
query II rowsort label-7492
SELECT ALL 21 + 80, ( - COUNT ( ALL 68 ) ) + 12 AS col1
----
101
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7493
SELECT - 91 * CAST( NULL AS SIGNED ) col1, 46 * + 55 * + COUNT( * ) - - MAX( ALL - 73 ) * + 39
----
NULL
-317

skipif mysql # not compatible
query II rowsort label-7493
SELECT - 91 * CAST ( NULL AS INTEGER ) col1, 46 * + 55 * + COUNT ( * ) - - MAX ( ALL - 73 ) * + 39
----
NULL
-317

onlyif mysql # aggregate syntax: 
query I rowsort label-7494
SELECT + 3 * COALESCE ( 94, + + COUNT( * ) + - 49 )
----
282

skipif mysql # not compatible
query I rowsort label-7494
SELECT + 3 * COALESCE ( 94, + + COUNT ( * ) + - 49 )
----
282

onlyif mysql # DIV for integer division: 
query I rowsort label-7495
SELECT ALL + 23 + COALESCE ( - ( + - 40 ), + 40 + 55 DIV - 82 ) AS col0
----
63

skipif mysql # not compatible
query I rowsort label-7495
SELECT ALL + 23 + COALESCE ( - ( + - 40 ), + 40 + 55 / - 82 ) AS col0
----
63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7496
SELECT DISTINCT CASE + CASE - - 87 WHEN + - 64 + - 15 THEN + 58 + + 32 + + 98 * - + 77 WHEN 64 * 75 * + COALESCE ( - MIN( DISTINCT 32 ), - COUNT( * ) * - COUNT( * ) ) + 77 + - COUNT( * ) * - 13 THEN COALESCE ( + 64, - + ( + CASE 63 WHEN - - 99 DIV COUNT( * ) THEN + + ( 93 ) ELSE NULL END ) ) END WHEN 39 THEN NULL ELSE + 77 END DIV 5 AS col2
----
15

skipif mysql # not compatible
query I rowsort label-7496
SELECT DISTINCT CASE + CASE - - 87 WHEN + - 64 + - 15 THEN + 58 + + 32 + + 98 * - + 77 WHEN 64 * 75 * + COALESCE ( - MIN ( DISTINCT 32 ), - COUNT ( * ) * - COUNT ( * ) ) + 77 + - COUNT ( * ) * - 13 THEN COALESCE ( + 64, - + ( + CASE 63 WHEN - - 99 / COUNT ( * ) THEN + + ( 93 ) ELSE NULL END ) ) END WHEN 39 THEN NULL ELSE + 77 END / 5 AS col2
----
15

onlyif mysql # aggregate syntax: 
query II rowsort label-7497
SELECT DISTINCT - COALESCE ( + - 46, 57 ) + - 28 + + MIN( ALL - 10 ) * - SUM( - 86 ) AS col1, 54
----
-842
54

skipif mysql # not compatible
query II rowsort label-7497
SELECT DISTINCT - COALESCE ( + - 46, 57 ) + - 28 + + MIN ( ALL - 10 ) * - SUM ( - 86 ) AS col1, 54
----
-842
54

onlyif mysql # aggregate syntax: 
query I rowsort label-7498
SELECT + 51 * + 97 + + + COUNT( * ) AS col0
----
4948

skipif mysql # not compatible
query I rowsort label-7498
SELECT + 51 * + 97 + + + COUNT ( * ) AS col0
----
4948

onlyif mysql # aggregate syntax: 
query I rowsort label-7499
SELECT + - COALESCE ( + + 42, - SUM( DISTINCT + 77 ) ) - + + 65 - - + 60 * + 50 AS col1
----
2893

skipif mysql # not compatible
query I rowsort label-7499
SELECT + - COALESCE ( + + 42, - SUM ( DISTINCT + 77 ) ) - + + 65 - - + 60 * + 50 AS col1
----
2893

query I rowsort
SELECT + 69 * + 7 * - + ( - 10 )
----
4830

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

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

query I rowsort
SELECT ALL - 47 - - 77 + + 15 * - - 24 AS col0
----
390

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7504
SELECT + 58 + COUNT( ALL - 93 ) AS col0
----
59

skipif mysql # not compatible
query I rowsort label-7504
SELECT + 58 + COUNT ( ALL - 93 ) AS col0
----
59

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7506
SELECT - 32 DIV 78 - - 85 + - 25 + + COALESCE ( - SUM( ALL + 33 ), - 23 ) * + 87 + NULLIF ( + 75, + - 33 * + + 37 + - ( - 57 ) * 16 ) AS col1
----
-2736

skipif mysql # not compatible
query I rowsort label-7506
SELECT - 32 / 78 - - 85 + - 25 + + COALESCE ( - SUM ( ALL + 33 ), - 23 ) * + 87 + NULLIF ( + 75, + - 33 * + + 37 + - ( - 57 ) * 16 ) AS col1
----
-2736

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

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

query I rowsort
SELECT + 5 * 4 col0
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-7509
SELECT + SUM( DISTINCT - + 13 ) col2
----
-13

skipif mysql # not compatible
query I rowsort label-7509
SELECT + SUM ( DISTINCT - + 13 ) col2
----
-13

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7510
SELECT - 55 DIV 19 + COUNT( * ) + 85 AS col0
----
84

skipif mysql # not compatible
query I rowsort label-7510
SELECT - 55 / 19 + COUNT ( * ) + 85 AS col0
----
84

query II rowsort
SELECT ALL + 10, + 23 + + 12 * + 9 AS col1
----
10
131

onlyif mysql # DIV for integer division: 
query I rowsort label-7512
SELECT - 52 + + 77 + - 75 + + 24 + - 63 DIV 21 + - - 18 * + 34 * - - 62 col2
----
37915

skipif mysql # not compatible
query I rowsort label-7512
SELECT - 52 + + 77 + - 75 + + 24 + - 63 / 21 + - - 18 * + 34 * - - 62 col2
----
37915

query I rowsort
SELECT ALL - COALESCE ( - + 45, - 86, + - 6 ) * 89 * + 82 AS col0
----
328410

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

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

query I rowsort
SELECT - 30 * - + 68 + + 94 + + 30 AS col1
----
2164

onlyif mysql # aggregate syntax: 
query I rowsort label-7516
SELECT NULLIF ( + MAX( 93 ), + 35 )
----
93

skipif mysql # not compatible
query I rowsort label-7516
SELECT NULLIF ( + MAX ( 93 ), + 35 )
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-7517
SELECT - 33 * COUNT( * ) * - 79 * + 8 * + NULLIF ( + 86, 54 + - 56 * + - 87 )
----
1793616

skipif mysql # not compatible
query I rowsort label-7517
SELECT - 33 * COUNT ( * ) * - 79 * + 8 * + NULLIF ( + 86, 54 + - 56 * + - 87 )
----
1793616

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7519
SELECT DISTINCT MIN( ALL + 97 ) * + 24 + 58 DIV - 57
----
2327

skipif mysql # not compatible
query I rowsort label-7519
SELECT DISTINCT MIN ( ALL + 97 ) * + 24 + 58 / - 57
----
2327

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7520
SELECT ALL NULLIF ( - 41, + 57 ) * + CASE + CASE + ( CAST( + - 24 AS DECIMAL ) ) WHEN + 5 THEN + 48 WHEN + ( 73 ) THEN NULL END WHEN COUNT( * ) THEN + 58 END * - + 46 * COUNT( * ) * - + 68 + - 42 * - 57 * + - COALESCE ( - 33, - - 49 + - + 79, + NULLIF ( - + ( - COUNT( ALL - 50 ) ), 94 ) ) * + 97 + + - 94 + - + 66 + COUNT( * ) - + + 66 / 80 / + 25 * 74 * + 37
----
NULL

skipif mysql # not compatible
query I rowsort label-7520
SELECT ALL NULLIF ( - 41, + 57 ) * + CASE + CASE + ( CAST ( + - 24 AS REAL ) ) WHEN + 5 THEN + 48 WHEN + ( 73 ) THEN NULL END WHEN COUNT ( * ) THEN + 58 END * - + 46 * COUNT ( * ) * - + 68 + - 42 * - 57 * + - COALESCE ( - 33, - - 49 + - + 79, + NULLIF ( - + ( - COUNT ( ALL - 50 ) ), 94 ) ) * + 97 + + - 94 + - + 66 + COUNT ( * ) - + + 66 / 80 / + 25 * 74 * + 37
----
NULL

query II rowsort
SELECT ALL + 41 col0, + 88 * 34 * - 21 + 2 AS col2
----
41
-62830

onlyif mysql # aggregate syntax: 
query I rowsort label-7522
SELECT ALL 4 * - 50 + + NULLIF ( + + 77, + 63 * - 71 * MAX( ALL + - 99 ) ) AS col1
----
-123

skipif mysql # not compatible
query I rowsort label-7522
SELECT ALL 4 * - 50 + + NULLIF ( + + 77, + 63 * - 71 * MAX ( ALL + - 99 ) ) AS col1
----
-123

onlyif mysql # aggregate syntax: 
query I rowsort label-7523
SELECT SUM( DISTINCT + 83 ) AS col2
----
83

skipif mysql # not compatible
query I rowsort label-7523
SELECT SUM ( DISTINCT + 83 ) AS col2
----
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7524
SELECT ALL + + COUNT( * ) * 96 + - CAST( - 57 AS SIGNED ) AS col1
----
153

skipif mysql # not compatible
query I rowsort label-7524
SELECT ALL + + COUNT ( * ) * 96 + - CAST ( - 57 AS INTEGER ) AS col1
----
153

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7525
SELECT ALL COALESCE ( 32, CAST( + 6 AS SIGNED ) DIV + + 57 + + - 17, - - 1 ) AS col1
----
32

skipif mysql # not compatible
query I rowsort label-7525
SELECT ALL COALESCE ( 32, CAST ( + 6 AS INTEGER ) / + + 57 + + - 17, - - 1 ) AS col1
----
32

query I rowsort
SELECT ALL 43 * + 84
----
3612

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7527
SELECT + 82 - - + CAST( 46 AS SIGNED ) + 45 * 94 AS col1
----
4358

skipif mysql # not compatible
query I rowsort label-7527
SELECT + 82 - - + CAST ( 46 AS INTEGER ) + 45 * 94 AS col1
----
4358

query I rowsort
SELECT + 96 + - 62 AS col1
----
34

query I rowsort
SELECT ALL 51 * + 47 + 35
----
2432

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7530
SELECT ALL - CASE - 37 WHEN CAST( NULL AS SIGNED ) * + + 57 + + CASE + 75 WHEN - 14 * + + 32 * - 20 THEN NULL ELSE + 86 / + + 16 * - 65 END THEN + 75 / 88 - 54 WHEN + COUNT( * ) THEN NULL END, + 30 * 65 * COUNT( * ) col2
----
NULL
1950

skipif mysql # not compatible
query II rowsort label-7530
SELECT ALL - CASE - 37 WHEN CAST ( NULL AS INTEGER ) * + + 57 + + CASE + 75 WHEN - 14 * + + 32 * - 20 THEN NULL ELSE + 86 / + + 16 * - 65 END THEN + 75 / 88 - 54 WHEN + COUNT ( * ) THEN NULL END, + 30 * 65 * COUNT ( * ) col2
----
NULL
1950

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

query I rowsort
SELECT + - ( 42 ) + 5 + - 49 + + 21 + + 95 AS col0
----
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7533
SELECT + 3 * COUNT( * ) * 28 AS col1, 94 * - 20 * - 8 + + CAST( 88 AS SIGNED ) * - 16 - + - 33 + - 87
----
84
13578

skipif mysql # not compatible
query II rowsort label-7533
SELECT + 3 * COUNT ( * ) * 28 AS col1, 94 * - 20 * - 8 + + CAST ( 88 AS INTEGER ) * - 16 - + - 33 + - 87
----
84
13578

query I rowsort
SELECT DISTINCT + 93 * + 5
----
465

query I rowsort
SELECT - - 65 + + + 13 + + + 89
----
167

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7536
SELECT - - COUNT( * ) DIV - 66 * - - SUM( ALL 28 )
----
0

skipif mysql # not compatible
query I rowsort label-7536
SELECT - - COUNT ( * ) / - 66 * - - SUM ( ALL 28 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7537
SELECT DISTINCT CASE + 44 WHEN ( - + 60 ) THEN + MIN( ALL + 15 ) WHEN - 87 THEN NULL ELSE + - 43 END
----
-43

skipif mysql # not compatible
query I rowsort label-7537
SELECT DISTINCT CASE + 44 WHEN ( - + 60 ) THEN + MIN ( ALL + 15 ) WHEN - 87 THEN NULL ELSE + - 43 END
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-7538
SELECT DISTINCT NULLIF ( - 24, 82 ) * - 30 - + MIN( 34 ) * + + COUNT( ALL + 53 ) + + + ( - 93 ) + 89 * + NULLIF ( + - 69, - + ( - + 49 ) + + 66 )
----
-5548

skipif mysql # not compatible
query I rowsort label-7538
SELECT DISTINCT NULLIF ( - 24, 82 ) * - 30 - + MIN ( 34 ) * + + COUNT ( ALL + 53 ) + + + ( - 93 ) + 89 * + NULLIF ( + - 69, - + ( - + 49 ) + + 66 )
----
-5548

query I rowsort
SELECT ALL 82 * + 34 * - 31
----
-86428

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7542
SELECT MAX( DISTINCT + - 77 ) + 64 + - 21 * - + 56
----
1163

skipif mysql # not compatible
query I rowsort label-7542
SELECT MAX ( DISTINCT + - 77 ) + 64 + - 21 * - + 56
----
1163

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

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

query I rowsort
SELECT 87 + - + 47
----
40

query I rowsort
SELECT DISTINCT + 99 + + 7 AS col2
----
106

query I rowsort
SELECT ALL + 90 * - + 52 col1
----
-4680

query I rowsort
SELECT ALL - 26 + - 65
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-7548
SELECT DISTINCT + 72 * - CASE - + COUNT( * ) WHEN + - 66 THEN NULL ELSE + - 26 END * 23
----
43056

skipif mysql # not compatible
query I rowsort label-7548
SELECT DISTINCT + 72 * - CASE - + COUNT ( * ) WHEN + - 66 THEN NULL ELSE + - 26 END * 23
----
43056

onlyif mysql # aggregate syntax: 
query I rowsort label-7549
SELECT ALL - NULLIF ( + 14, - + 16 + - 84 - SUM( - 74 ) / + COUNT( * ) - + SUM( ( 67 ) ) - + + 4 * ( - 32 ) )
----
-14

skipif mysql # not compatible
query I rowsort label-7549
SELECT ALL - NULLIF ( + 14, - + 16 + - 84 - SUM ( - 74 ) / + COUNT ( * ) - + SUM ( ( 67 ) ) - + + 4 * ( - 32 ) )
----
-14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7550
SELECT + ( + CASE - + 72 WHEN - + 91 * 74 - - 82 - + CAST( - + 36 AS DECIMAL ) + + 80 + + 86 + - - 74 THEN 57 + + + CAST( NULL AS SIGNED ) WHEN - 31 THEN COUNT( * ) WHEN + 84 THEN + 38 * - 88 END ) * + - 51 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7550
SELECT + ( + CASE - + 72 WHEN - + 91 * 74 - - 82 - + CAST ( - + 36 AS REAL ) + + 80 + + 86 + - - 74 THEN 57 + + + CAST ( NULL AS INTEGER ) WHEN - 31 THEN COUNT ( * ) WHEN + 84 THEN + 38 * - 88 END ) * + - 51 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7551
SELECT - 33 DIV - - MIN( + 56 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7551
SELECT - 33 / - - MIN ( + 56 ) AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7552
SELECT ALL - + 20 - 85 DIV + MIN( DISTINCT + ( 23 ) ) AS col0
----
-23

skipif mysql # not compatible
query I rowsort label-7552
SELECT ALL - + 20 - 85 / + MIN ( DISTINCT + ( 23 ) ) AS col0
----
-23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7553
SELECT ALL + 21 DIV - + 65 * - - COUNT( * ) AS col1
----
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7554
SELECT DISTINCT + + COUNT( * ) * - COUNT( * ) + + 85 col2
----
84

skipif mysql # not compatible
query I rowsort label-7554
SELECT DISTINCT + + COUNT ( * ) * - COUNT ( * ) + + 85 col2
----
84

query I rowsort
SELECT + 83 * - 55 AS col2
----
-4565

query II rowsort
SELECT 88 * + + 82 AS col1, 74 AS col0
----
7216
74

onlyif mysql # aggregate syntax: 
query II rowsort label-7557
SELECT + COUNT( * ) + 60 + - + 80 * + 22 + + - 53 AS col0, 51 AS col1
----
-1752
51

skipif mysql # not compatible
query II rowsort label-7557
SELECT + COUNT ( * ) + 60 + - + 80 * + 22 + + - 53 AS col0, 51 AS col1
----
-1752
51

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7559
SELECT - - MIN( + - CAST( NULL AS SIGNED ) ) AS col1, + 75
----
NULL
75

skipif mysql # not compatible
query II rowsort label-7559
SELECT - - MIN ( + - CAST ( NULL AS INTEGER ) ) AS col1, + 75
----
NULL
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7560
SELECT + CAST( - 30 AS SIGNED ) col2, ( + + CASE - + 70 WHEN - 73 THEN + COUNT( 48 ) WHEN 38 * 61 * + CAST( NULL AS SIGNED ) - 27 THEN COUNT( * ) * 71 END ) * + AVG ( ALL 31 ) - + 80
----
-30
NULL

skipif mysql # not compatible
query II rowsort label-7560
SELECT + CAST ( - 30 AS INTEGER ) col2, ( + + CASE - + 70 WHEN - 73 THEN + COUNT ( 48 ) WHEN 38 * 61 * + CAST ( NULL AS INTEGER ) - 27 THEN COUNT ( * ) * 71 END ) * + AVG ( ALL 31 ) - + 80
----
-30
NULL

query I rowsort
SELECT 46 + + + 81 * - 82
----
-6596

onlyif mysql # aggregate syntax: 
query I rowsort label-7562
SELECT DISTINCT 76 + 60 + + COUNT( * ) + 22 * - ( + 88 ) + - 9
----
-1808

skipif mysql # not compatible
query I rowsort label-7562
SELECT DISTINCT 76 + 60 + + COUNT ( * ) + 22 * - ( + 88 ) + - 9
----
-1808

query I rowsort
SELECT ALL 11 + - + 87 - - 16 * + ( 74 ) + - 96 + 88 AS col2
----
1100

query I rowsort
SELECT 36 + - 87 + + ( + 71 ) AS col1
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-7565
SELECT MAX( DISTINCT 8 ) - COUNT( * ) AS col0
----
7

skipif mysql # not compatible
query I rowsort label-7565
SELECT MAX ( DISTINCT 8 ) - COUNT ( * ) AS col0
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-7566
SELECT - 59 * - COUNT( * ) * + 36 + - + 74 AS col2
----
2050

skipif mysql # not compatible
query I rowsort label-7566
SELECT - 59 * - COUNT ( * ) * + 36 + - + 74 AS col2
----
2050

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7567
SELECT ALL 4 + NULLIF ( + + 82, + 37 ) - - CAST( NULL AS DECIMAL ) + 36 * + + ( + 82 ) * + 36
----
NULL

skipif mysql # not compatible
query I rowsort label-7567
SELECT ALL 4 + NULLIF ( + + 82, + 37 ) - - CAST ( NULL AS REAL ) + 36 * + + ( + 82 ) * + 36
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7568
SELECT 73 AS col0, COUNT( * ) + - 93 + - 10 + - - 49 * - - 69 AS col0
----
73
3279

skipif mysql # not compatible
query II rowsort label-7568
SELECT 73 AS col0, COUNT ( * ) + - 93 + - 10 + - - 49 * - - 69 AS col0
----
73
3279

query I rowsort
SELECT 90 + - - 0 col2
----
90

query I rowsort
SELECT ALL 68 * - - 91 AS col0
----
6188

onlyif mysql # aggregate syntax: 
query I rowsort label-7571
SELECT CASE COUNT( DISTINCT 11 ) WHEN - 70 THEN 7 + - - 42 ELSE + - 1 END + + 0 + 7 * + + 30 * + 89 + 42 AS col0
----
18731

skipif mysql # not compatible
query I rowsort label-7571
SELECT CASE COUNT ( DISTINCT 11 ) WHEN - 70 THEN 7 + - - 42 ELSE + - 1 END + + 0 + 7 * + + 30 * + 89 + 42 AS col0
----
18731

onlyif mysql # aggregate syntax: 
query I rowsort label-7572
SELECT ALL - MIN( ALL + 27 ) AS col1
----
-27

skipif mysql # not compatible
query I rowsort label-7572
SELECT ALL - MIN ( ALL + 27 ) AS col1
----
-27

query II rowsort
SELECT ALL - 22 col2, 63
----
-22
63

query I rowsort
SELECT 96 * ( - 13 ) AS col2
----
-1248

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7575
SELECT CASE 91 WHEN 49 * + CAST( + 25 AS DECIMAL ) + ( NULLIF ( 95, + 98 ) ) THEN 1 + - 78 + ( 51 ) * + CASE + 57 WHEN - + CAST( NULL AS SIGNED ) THEN 88 + + 68 + - 41 ELSE NULL END / 60 * - 76 / - CAST( + 9 AS SIGNED ) END * + - 89 * + 26 + - 14
----
NULL

skipif mysql # not compatible
query I rowsort label-7575
SELECT CASE 91 WHEN 49 * + CAST ( + 25 AS REAL ) + ( NULLIF ( 95, + 98 ) ) THEN 1 + - 78 + ( 51 ) * + CASE + 57 WHEN - + CAST ( NULL AS INTEGER ) THEN 88 + + 68 + - 41 ELSE NULL END / 60 * - 76 / - CAST ( + 9 AS INTEGER ) END * + - 89 * + 26 + - 14
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7576
SELECT + CASE + 90 WHEN - 99 * - 99 * ( - 61 ) + - 15 * COUNT( * ) * + 57 THEN + AVG ( ALL + 26 ) * - - MAX( ALL - + 29 ) * + 86 * + 89 + + 0 WHEN + 10 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7576
SELECT + CASE + 90 WHEN - 99 * - 99 * ( - 61 ) + - 15 * COUNT ( * ) * + 57 THEN + AVG ( ALL + 26 ) * - - MAX ( ALL - + 29 ) * + 86 * + 89 + + 0 WHEN + 10 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7577
SELECT - 22 * - 13 * + NULLIF ( + - 45, 27 ) col1, CASE + MIN( 31 ) WHEN + 94 THEN + 34 END / + + 93 col2
----
-12870
NULL

skipif mysql # not compatible
query II rowsort label-7577
SELECT - 22 * - 13 * + NULLIF ( + - 45, 27 ) col1, CASE + MIN ( 31 ) WHEN + 94 THEN + 34 END / + + 93 col2
----
-12870
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7578
SELECT - 31 + - + MAX( + - 49 ) AS col0, 52 + 95
----
18
147

skipif mysql # not compatible
query II rowsort label-7578
SELECT - 31 + - + MAX ( + - 49 ) AS col0, 52 + 95
----
18
147

query I rowsort
SELECT ALL - - COALESCE ( - + 67, - ( + 34 ) )
----
-67

query I rowsort
SELECT DISTINCT + + 55 * + - 89 AS col2
----
-4895

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7581
SELECT DISTINCT - + 84, COUNT( * ) DIV - - 69 + + + 12 AS col2
----
-84
12

skipif mysql # not compatible
query II rowsort label-7581
SELECT DISTINCT - + 84, COUNT ( * ) / - - 69 + + + 12 AS col2
----
-84
12

query I rowsort
SELECT ALL + 59 * 49
----
2891

query I rowsort
SELECT 44 + + 42 col0
----
86

query I rowsort
SELECT + 81 + - + CASE 85 WHEN - 0 THEN ( - - 39 ) WHEN - + 96 THEN NULL END AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7585
SELECT 3 DIV - - 96 col2
----
0

skipif mysql # not compatible
query I rowsort label-7585
SELECT 3 / - - 96 col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7586
SELECT 34 + 53 DIV + 85
----
34

skipif mysql # not compatible
query I rowsort label-7586
SELECT 34 + 53 / + 85
----
34

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

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

query I rowsort
SELECT - 8 + - - 64 AS col2
----
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7589
SELECT ALL CASE ( + CASE - 15 WHEN + MAX( 62 ) * + 47 THEN + 56 - - + 28 ELSE NULL END ) WHEN + CASE + CAST( NULL AS SIGNED ) WHEN + 84 + + 81 THEN NULL ELSE + - MAX( ALL + CAST( NULL AS SIGNED ) ) END THEN NULL WHEN + + 93 THEN - - NULLIF ( + ( + 50 ), - + 11 ) ELSE - 66 * - - 31 * - SUM( - 94 ) * 90 + - 31 + + + NULLIF ( - 80, - - 1 ) END + + + NULLIF ( 61, + - 72 ) AS col1
----
-17309210

skipif mysql # not compatible
query I rowsort label-7589
SELECT ALL CASE ( + CASE - 15 WHEN + MAX ( 62 ) * + 47 THEN + 56 - - + 28 ELSE NULL END ) WHEN + CASE + CAST ( NULL AS INTEGER ) WHEN + 84 + + 81 THEN NULL ELSE + - MAX ( ALL + CAST ( NULL AS INTEGER ) ) END THEN NULL WHEN + + 93 THEN - - NULLIF ( + ( + 50 ), - + 11 ) ELSE - 66 * - - 31 * - SUM ( - 94 ) * 90 + - 31 + + + NULLIF ( - 80, - - 1 ) END + + + NULLIF ( 61, + - 72 ) AS col1
----
-17309210

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7590
SELECT COUNT( * ) + + ( - ( - CAST( AVG ( + - 77 ) AS SIGNED ) ) ) + + 58 AS col1
----
-18

skipif mysql # not compatible
query I rowsort label-7590
SELECT COUNT ( * ) + + ( - ( - CAST ( AVG ( + - 77 ) AS INTEGER ) ) ) + + 58 AS col1
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-7591
SELECT DISTINCT - COUNT( * ) + - 12
----
-13

skipif mysql # not compatible
query I rowsort label-7591
SELECT DISTINCT - COUNT ( * ) + - 12
----
-13

query I rowsort
SELECT ALL + NULLIF ( 87, - 16 * + 13 + 4 )
----
87

onlyif mysql # DIV for integer division: 
query I rowsort label-7593
SELECT 55 DIV + 87 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7593
SELECT 55 / + 87 AS col1
----
0

query I rowsort
SELECT DISTINCT - 43 + - NULLIF ( - 81, ( + 32 ) ) + + 34 - 0
----
72

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7595
SELECT ALL + 89 * 99 DIV + - CAST( 20 AS SIGNED ) AS col2
----
-440

skipif mysql # not compatible
query I rowsort label-7595
SELECT ALL + 89 * 99 / + - CAST ( 20 AS INTEGER ) AS col2
----
-440

onlyif mysql # DIV for integer division: 
query I rowsort label-7596
SELECT - 93 DIV + - 91 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7596
SELECT - 93 / + - 91 AS col0
----
1

query I rowsort
SELECT - 10 * - 3 AS col1
----
30

query II rowsort
SELECT 45 AS col1, 1 + + 56
----
45
57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7599
SELECT + CAST( 51 AS SIGNED ) + + + NULLIF ( + 82, - 34 + + 38 ) + + 48 * 35
----
1813

skipif mysql # not compatible
query I rowsort label-7599
SELECT + CAST ( 51 AS INTEGER ) + + + NULLIF ( + 82, - 34 + + 38 ) + + 48 * 35
----
1813

query II rowsort
SELECT 51 col0, 83
----
51
83

query I rowsort
SELECT ALL 57 + - 56 AS col2
----
1

query II rowsort
SELECT 59, 57 * + 2 AS col0
----
59
114

query I rowsort
SELECT ALL NULLIF ( + + 56, + 66 / + 72 + - 47 ) col1
----
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7604
SELECT + MIN( DISTINCT CAST( + 28 AS SIGNED ) ) + + - 29
----
-1

skipif mysql # not compatible
query I rowsort label-7604
SELECT + MIN ( DISTINCT CAST ( + 28 AS INTEGER ) ) + + - 29
----
-1

query II rowsort
SELECT DISTINCT + COALESCE ( + 11, - 79 + - 45 ), 7 AS col0
----
11
7

query I rowsort
SELECT ALL 51 * - 49 AS col2
----
-2499

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7608
SELECT CASE 6 WHEN + + 28 THEN + 24 * - 82 + - - 69 END, 76 * - - CASE + 75 WHEN + 83 + - - COUNT( * ) THEN - 38 + MIN( DISTINCT - 58 ) / 48 WHEN - - 86 + ( 51 ) * - 29 THEN - + ( - 15 ) / 62 WHEN + + 5 THEN NULL END + 12 AS col0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-7608
SELECT CASE 6 WHEN + + 28 THEN + 24 * - 82 + - - 69 END, 76 * - - CASE + 75 WHEN + 83 + - - COUNT ( * ) THEN - 38 + MIN ( DISTINCT - 58 ) / 48 WHEN - - 86 + ( 51 ) * - 29 THEN - + ( - 15 ) / 62 WHEN + + 5 THEN NULL END + 12 AS col0
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7609
SELECT CASE + + 95 WHEN + + 66 * + 11 + + + 89 THEN + 25 ELSE + COUNT( * ) END
----
1

skipif mysql # not compatible
query I rowsort label-7609
SELECT CASE + + 95 WHEN + + 66 * + 11 + + + 89 THEN + 25 ELSE + COUNT ( * ) END
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7610
SELECT 99 * - - COUNT( * ) - + 57
----
42

skipif mysql # not compatible
query I rowsort label-7610
SELECT 99 * - - COUNT ( * ) - + 57
----
42

query I rowsort
SELECT + 9 * + - 98
----
-882

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

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

query II rowsort
SELECT + 21 * - 59 AS col1, - 48
----
-1239
-48

query I rowsort
SELECT + 26 + - - 46 AS col2
----
72

onlyif mysql # aggregate syntax: 
query II rowsort label-7615
SELECT ALL + 57, ( - + 73 ) * SUM( DISTINCT - 26 ) * - 97 + + 94 + + 25 * - 90 * - 89 AS col0
----
57
16238

skipif mysql # not compatible
query II rowsort label-7615
SELECT ALL + 57, ( - + 73 ) * SUM ( DISTINCT - 26 ) * - 97 + + 94 + + 25 * - 90 * - 89 AS col0
----
57
16238

query II rowsort
SELECT + + ( + - 47 ) AS col0, 25
----
-47
25

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7617
SELECT + 20 - - 10 DIV + COUNT( * ) + 74 * - 51 + - 76 AS col2
----
-3820

skipif mysql # not compatible
query I rowsort label-7617
SELECT + 20 - - 10 / + COUNT ( * ) + 74 * - 51 + - 76 AS col2
----
-3820

query I rowsort
SELECT DISTINCT 94 * 52 AS col0
----
4888

onlyif mysql # aggregate syntax: 
query I rowsort label-7619
SELECT ALL + + SUM( DISTINCT 8 ) AS col1
----
8

skipif mysql # not compatible
query I rowsort label-7619
SELECT ALL + + SUM ( DISTINCT 8 ) AS col1
----
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7620
SELECT ALL - - CAST( - 17 AS SIGNED ) DIV MAX( - 10 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7620
SELECT ALL - - CAST ( - 17 AS INTEGER ) / MAX ( - 10 ) AS col0
----
1

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7622
SELECT COUNT( * ) AS col0, 40 * + 89 AS col1
----
1
3560

skipif mysql # not compatible
query II rowsort label-7622
SELECT COUNT ( * ) AS col0, 40 * + 89 AS col1
----
1
3560

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7623
SELECT - + 35 * - COUNT( * ) + + 3 + - + 56 + MAX( + + 56 ) + - + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7623
SELECT - + 35 * - COUNT ( * ) + + 3 + - + 56 + MAX ( + + 56 ) + - + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7624
SELECT ALL 39 DIV - COUNT( * ) + - 91
----
-130

skipif mysql # not compatible
query I rowsort label-7624
SELECT ALL 39 / - COUNT ( * ) + - 91
----
-130

onlyif mysql # DIV for integer division: 
query I rowsort label-7625
SELECT + 9 DIV 14 - + 52
----
-52

skipif mysql # not compatible
query I rowsort label-7625
SELECT + 9 / 14 - + 52
----
-52

query I rowsort
SELECT - 78 * - ( - 21 ) AS col0
----
-1638

query II rowsort
SELECT + 22 * + - 95 AS col2, - 4 + + 63 * - 80
----
-2090
-5044

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

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

query II rowsort
SELECT DISTINCT 8 AS col1, - 29 + 70 AS col1
----
8
41

query II rowsort
SELECT ALL + 95, - 5 AS col1
----
95
-5

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7632
SELECT DISTINCT NULLIF ( - COUNT( * ), + COALESCE ( - - 96, 26 / + 25 ) / - 45 ) + + + 72 AS col1
----
71

skipif mysql # not compatible
query I rowsort label-7632
SELECT DISTINCT NULLIF ( - COUNT ( * ), + COALESCE ( - - 96, 26 / + 25 ) / - 45 ) + + + 72 AS col1
----
71

query I rowsort
SELECT ALL - 87 + - + 21 - 31 - 49 * 78 AS col2
----
-3961

query I rowsort
SELECT ALL + - 98 + + 77 + - 73
----
-94

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7635
SELECT + 17 + + CAST( NULL AS SIGNED ) AS col1, - CASE + 80 WHEN 95 THEN + + 99 + + 19 WHEN - 75 THEN + 73 + ( 58 ) END
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-7635
SELECT + 17 + + CAST ( NULL AS INTEGER ) AS col1, - CASE + 80 WHEN 95 THEN + + 99 + + 19 WHEN - 75 THEN + 73 + ( 58 ) END
----
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-7636
SELECT - SUM( + 24 ) + + COUNT( * ) + + - 26 * - NULLIF ( + + 91, 3 ) AS col0, 82 * + CAST( NULL AS DECIMAL )
----
2343
NULL

skipif mysql # not compatible
query II rowsort label-7636
SELECT - SUM ( + 24 ) + + COUNT ( * ) + + - 26 * - NULLIF ( + + 91, 3 ) AS col0, 82 * + CAST ( NULL AS REAL )
----
2343
NULL

query I rowsort
SELECT DISTINCT ( - 56 ) AS col2
----
-56

onlyif mysql # aggregate syntax: 
query II rowsort label-7638
SELECT ALL - 30 + + 85, - ( - + 43 ) - 71 + - 0 * - - 78 + - 78 + - - 47 * - 93 + 32 * + SUM( 90 ) AS col0
----
55
-1597

skipif mysql # not compatible
query II rowsort label-7638
SELECT ALL - 30 + + 85, - ( - + 43 ) - 71 + - 0 * - - 78 + - 78 + - - 47 * - 93 + 32 * + SUM ( 90 ) AS col0
----
55
-1597

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7639
SELECT - 87 - + - 87 * + 1 DIV - COUNT( * ) AS col1
----
-174

skipif mysql # not compatible
query I rowsort label-7639
SELECT - 87 - + - 87 * + 1 / - COUNT ( * ) AS col1
----
-174

onlyif mysql # aggregate syntax: 
query I rowsort label-7640
SELECT ALL CASE + ( - - 71 ) WHEN + 40 THEN NULL WHEN - - 57 THEN - - 88 ELSE + - COUNT( * ) END col2
----
-1

skipif mysql # not compatible
query I rowsort label-7640
SELECT ALL CASE + ( - - 71 ) WHEN + 40 THEN NULL WHEN - - 57 THEN - - 88 ELSE + - COUNT ( * ) END col2
----
-1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7642
SELECT DISTINCT CASE + + 6 WHEN 89 THEN - + CASE + 35 WHEN - - 82 * + 80 THEN + 24 WHEN + 40 + + COUNT( * ) * + COUNT( * ) THEN NULL END / + 20 * + 77 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7642
SELECT DISTINCT CASE + + 6 WHEN 89 THEN - + CASE + 35 WHEN - - 82 * + 80 THEN + 24 WHEN + 40 + + COUNT ( * ) * + COUNT ( * ) THEN NULL END / + 20 * + 77 ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7643
SELECT ALL - 31 - - 70 * COUNT( * )
----
39

skipif mysql # not compatible
query I rowsort label-7643
SELECT ALL - 31 - - 70 * COUNT ( * )
----
39

query II rowsort
SELECT ALL ( + 65 ), + 54 * 25 AS col0
----
65
1350

query I rowsort
SELECT DISTINCT + 13 - 48 + - ( - + 30 ) + 35 * + - 72 AS col0
----
-2525

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7646
SELECT - COUNT( * ) + - 18 AS col2, + 5 * - 46 + 51 - + CAST( - + MAX( 35 ) AS SIGNED ) DIV - - COUNT( * ) AS col1
----
-19
-144

skipif mysql # not compatible
query II rowsort label-7646
SELECT - COUNT ( * ) + - 18 AS col2, + 5 * - 46 + 51 - + CAST ( - + MAX ( 35 ) AS INTEGER ) / - - COUNT ( * ) AS col1
----
-19
-144

query II rowsort
SELECT + 9 - - 19, + 85 AS col2
----
28
85

onlyif mysql # aggregate syntax: 
query I rowsort label-7648
SELECT ALL + 95 * 19 * + - COUNT( * ) AS col0
----
-1805

skipif mysql # not compatible
query I rowsort label-7648
SELECT ALL + 95 * 19 * + - COUNT ( * ) AS col0
----
-1805

query I rowsort
SELECT - COALESCE ( 8, + 95 - + 60 ) * - 31 * - 16 * - 97
----
384896

query I rowsort
SELECT + 27 * 97
----
2619

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7651
SELECT + 85 - NULLIF ( - + CAST( NULL AS SIGNED ), + + ( - 95 ) ) + + + ( 85 ) / - 89 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7651
SELECT + 85 - NULLIF ( - + CAST ( NULL AS INTEGER ), + + ( - 95 ) ) + + + ( 85 ) / - 89 AS col1
----
NULL

query I rowsort
SELECT - 97 * + 73 * + 14 AS col1
----
-99134

onlyif mysql # DIV for integer division: 
query I rowsort label-7653
SELECT - 31 * - 24 + 9 DIV 59
----
744

skipif mysql # not compatible
query I rowsort label-7653
SELECT - 31 * - 24 + 9 / 59
----
744

query I rowsort
SELECT + 56 * 19 + 89 AS col0
----
1153

onlyif mysql # aggregate syntax: 
query I rowsort label-7655
SELECT ALL + COALESCE ( - SUM( ALL + ( + 58 ) ), - ( + 39 ) ) AS col1
----
-58

skipif mysql # not compatible
query I rowsort label-7655
SELECT ALL + COALESCE ( - SUM ( ALL + ( + 58 ) ), - ( + 39 ) ) AS col1
----
-58

query II rowsort
SELECT DISTINCT - 41 * + 44 AS col0, + 62 * + 13 AS col1
----
-1804
806

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

query I rowsort
SELECT + - 39 + - 53 + + 47 AS col1
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-7659
SELECT - MIN( DISTINCT - ( - 26 ) ) * + ( - 42 ) + - - COUNT( * ) AS col1
----
1093

skipif mysql # not compatible
query I rowsort label-7659
SELECT - MIN ( DISTINCT - ( - 26 ) ) * + ( - 42 ) + - - COUNT ( * ) AS col1
----
1093

onlyif mysql # aggregate syntax: 
query I rowsort label-7660
SELECT + SUM( DISTINCT 32 ) col1
----
32

skipif mysql # not compatible
query I rowsort label-7660
SELECT + SUM ( DISTINCT 32 ) col1
----
32

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

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

query I rowsort
SELECT + - 82 * 33 * + 58 * - - 55 + - 71
----
-8632211

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7663
SELECT ALL + COUNT( * ) * CAST( NULL AS DECIMAL ) / - 42 * + ( 76 ) + + CAST( NULL AS SIGNED ) + 75 * + - 20 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7663
SELECT ALL + COUNT ( * ) * CAST ( NULL AS REAL ) / - 42 * + ( 76 ) + + CAST ( NULL AS INTEGER ) + 75 * + - 20 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7664
SELECT + + 71 + 76, SUM( 17 ) * 34 AS col0
----
147
578

skipif mysql # not compatible
query II rowsort label-7664
SELECT + + 71 + 76, SUM ( 17 ) * 34 AS col0
----
147
578

onlyif mysql # DIV for integer division: 
query I rowsort label-7665
SELECT DISTINCT - + 18 * - 58 + - 94 DIV + 36 AS col2
----
1042

skipif mysql # not compatible
query I rowsort label-7665
SELECT DISTINCT - + 18 * - 58 + - 94 / + 36 AS col2
----
1042

query I rowsort
SELECT DISTINCT - - 85 * - - ( + 87 ) + - 35 + - 74
----
7286

onlyif mysql # aggregate syntax: 
query I rowsort label-7667
SELECT + - 38 * - COUNT( + 23 ) * - - 77
----
2926

skipif mysql # not compatible
query I rowsort label-7667
SELECT + - 38 * - COUNT ( + 23 ) * - - 77
----
2926

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7668
SELECT - - 37 * + 60 + + + CASE - SUM( - 63 ) WHEN - - 34 THEN NULL WHEN - 62 THEN - + CAST( NULL AS SIGNED ) ELSE 74 END col1
----
2294

skipif mysql # not compatible
query I rowsort label-7668
SELECT - - 37 * + 60 + + + CASE - SUM ( - 63 ) WHEN - - 34 THEN NULL WHEN - 62 THEN - + CAST ( NULL AS INTEGER ) ELSE 74 END col1
----
2294

query I rowsort
SELECT ALL + 80 * - 98 - + 14 + 51 + - 18 AS col2
----
-7821

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7670
SELECT ALL - COALESCE ( - ( - 83 ), - - 64 + + 91 ) * - 46 + + - CAST( NULL AS SIGNED ) * + + 83 / + 81
----
NULL

skipif mysql # not compatible
query I rowsort label-7670
SELECT ALL - COALESCE ( - ( - 83 ), - - 64 + + 91 ) * - 46 + + - CAST ( NULL AS INTEGER ) * + + 83 / + 81
----
NULL

query I rowsort
SELECT 43 + - - 24 AS col1
----
67

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7673
SELECT COUNT( * ) * COUNT( * ) * - 93 * + 22 - - - 25 * - - 8
----
-2246

skipif mysql # not compatible
query I rowsort label-7673
SELECT COUNT ( * ) * COUNT ( * ) * - 93 * + 22 - - - 25 * - - 8
----
-2246

onlyif mysql # DIV for integer division: 
query III rowsort label-7674
SELECT - ( + + 18 ) DIV 38 AS col2, 27 + + 15 + + + 11 + - - 16 + - - 25 * ( - - 85 ), - 68 + - 86 AS col1
----
0
2194
-154

skipif mysql # not compatible
query III rowsort label-7674
SELECT - ( + + 18 ) / 38 AS col2, 27 + + 15 + + + 11 + - - 16 + - - 25 * ( - - 85 ), - 68 + - 86 AS col1
----
0
2194
-154

query I rowsort
SELECT - 79 + - 62
----
-141

query I rowsort
SELECT - - 35 col0
----
35

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7677
SELECT DISTINCT 46 DIV NULLIF ( + - COUNT( * ), - 27 ) * + 40 - + 27 - + COUNT( * )
----
-1868

skipif mysql # not compatible
query I rowsort label-7677
SELECT DISTINCT 46 / NULLIF ( + - COUNT ( * ), - 27 ) * + 40 - + 27 - + COUNT ( * )
----
-1868

onlyif mysql # aggregate syntax: 
query I rowsort label-7678
SELECT ( - + 42 ) * - - ( 34 ) + COUNT( * ) AS col1
----
-1427

skipif mysql # not compatible
query I rowsort label-7678
SELECT ( - + 42 ) * - - ( 34 ) + COUNT ( * ) AS col1
----
-1427

query I rowsort
SELECT ( - - 15 ) + + ( - + 66 ) AS col1
----
-51

query II rowsort
SELECT ALL 30, 72 AS col1
----
30
72

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

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

query I rowsort
SELECT DISTINCT 4 * - 40
----
-160

query I rowsort
SELECT ALL - 26 * - - 70 AS col1
----
-1820

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7685
SELECT 25 + + 40 * - 56 * + 10 + - - ( - - NULLIF ( + - 10, + 33 ) ), CASE 15 WHEN COUNT( * ) / AVG ( + + 24 ) THEN 36 + 40 + - 85 - - ( - 36 ) * + 38 ELSE NULL END AS col2
----
-22385
NULL

skipif mysql # not compatible
query II rowsort label-7685
SELECT 25 + + 40 * - 56 * + 10 + - - ( - - NULLIF ( + - 10, + 33 ) ), CASE 15 WHEN COUNT ( * ) / AVG ( + + 24 ) THEN 36 + 40 + - 85 - - ( - 36 ) * + 38 ELSE NULL END AS col2
----
-22385
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7686
SELECT 13, 97 DIV - 89 DIV + COUNT( * ) + + - 51 + + 33 AS col1
----
13
-19

skipif mysql # not compatible
query II rowsort label-7686
SELECT 13, 97 / - 89 / + COUNT ( * ) + + - 51 + + 33 AS col1
----
13
-19

query II rowsort
SELECT DISTINCT 13, 77 * 52 + + 93 AS col0
----
13
4097

onlyif mysql # aggregate syntax: 
query I rowsort label-7688
SELECT ALL + CASE 71 WHEN + - SUM( ALL - 64 ) THEN NULL WHEN 47 THEN + - 84 WHEN 67 THEN + ( - 71 ) END * - COALESCE ( 68, + + 69 + - - 71, + 64 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7688
SELECT ALL + CASE 71 WHEN + - SUM ( ALL - 64 ) THEN NULL WHEN 47 THEN + - 84 WHEN 67 THEN + ( - 71 ) END * - COALESCE ( 68, + + 69 + - - 71, + 64 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7689
SELECT - 27 * + 82 + 82 + + MIN( ALL 63 ) + - 94 + + 21 AS col0
----
-2142

skipif mysql # not compatible
query I rowsort label-7689
SELECT - 27 * + 82 + 82 + + MIN ( ALL 63 ) + - 94 + + 21 AS col0
----
-2142

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7690
SELECT DISTINCT - 41 + 90 DIV 26, + 77 - - - 55 + ( + + MAX( + + 19 ) ) DIV - - 94 * 50 + - + 23 * + 63 AS col1
----
-38
-1427

skipif mysql # not compatible
query II rowsort label-7690
SELECT DISTINCT - 41 + 90 / 26, + 77 - - - 55 + ( + + MAX ( + + 19 ) ) / - - 94 * 50 + - + 23 * + 63 AS col1
----
-38
-1427

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7691
SELECT ALL + - ( - 4 ) * 22 AS col1, + COUNT( * ) * 94 DIV COALESCE ( - COALESCE ( 46, 81 + CAST( NULL AS SIGNED ) * 93 ), + ( 96 ) + - + 62 + 78 + + - CAST( 49 AS SIGNED ) - 4 + + COALESCE ( 54, - 31 ) * + 93 * - COUNT( * ), - ( - COUNT( * ) ) ) AS col1
----
88
-2

skipif mysql # not compatible
query II rowsort label-7691
SELECT ALL + - ( - 4 ) * 22 AS col1, + COUNT ( * ) * 94 / COALESCE ( - COALESCE ( 46, 81 + CAST ( NULL AS INTEGER ) * 93 ), + ( 96 ) + - + 62 + 78 + + - CAST ( 49 AS INTEGER ) - 4 + + COALESCE ( 54, - 31 ) * + 93 * - COUNT ( * ), - ( - COUNT ( * ) ) ) AS col1
----
88
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-7692
SELECT + 27 * + 19 + COUNT( DISTINCT 25 ) col2
----
514

skipif mysql # not compatible
query I rowsort label-7692
SELECT + 27 * + 19 + COUNT ( DISTINCT 25 ) col2
----
514

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7693
SELECT + 77 * - - CAST( NULL AS SIGNED ) + + CASE + + 34 WHEN - + 18 * + 27 THEN - 80 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7693
SELECT + 77 * - - CAST ( NULL AS INTEGER ) + + CASE + + 34 WHEN - + 18 * + 27 THEN - 80 ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT - 80 + - 60 * + + CASE - 99 WHEN + - 12 + - - ( 84 ) THEN + 50 WHEN 41 THEN + 79 WHEN - + 75 THEN NULL END / 15 AS col1
----
NULL

query II rowsort
SELECT + + 12 * - 67 + 77 AS col1, 17
----
-727
17

onlyif mysql # aggregate syntax: 
query I rowsort label-7696
SELECT ALL - 47 + - - COUNT( * )
----
-46

skipif mysql # not compatible
query I rowsort label-7696
SELECT ALL - 47 + - - COUNT ( * )
----
-46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7697
SELECT DISTINCT - 60, CAST( - NULLIF ( 66, + 8 ) AS SIGNED ) * + + NULLIF ( 97, - COUNT( ALL - 87 ) ) col0
----
-60
-6402

skipif mysql # not compatible
query II rowsort label-7697
SELECT DISTINCT - 60, CAST ( - NULLIF ( 66, + 8 ) AS INTEGER ) * + + NULLIF ( 97, - COUNT ( ALL - 87 ) ) col0
----
-60
-6402

onlyif mysql # aggregate syntax: 
query II rowsort label-7698
SELECT DISTINCT - + 93 + + + MAX( ALL 38 ) AS col2, + 49 AS col2
----
-55
49

skipif mysql # not compatible
query II rowsort label-7698
SELECT DISTINCT - + 93 + + + MAX ( ALL 38 ) AS col2, + 49 AS col2
----
-55
49

query I rowsort
SELECT DISTINCT - 98 + - 72
----
-170

onlyif mysql # aggregate syntax: 
query I rowsort label-7700
SELECT ALL + 87 + + + 11 * - - COUNT( * )
----
98

skipif mysql # not compatible
query I rowsort label-7700
SELECT ALL + 87 + + + 11 * - - COUNT ( * )
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-7701
SELECT - 84 + - CASE + + MAX( ALL + - 0 ) WHEN - - COUNT( * ) * + 42 THEN NULL ELSE + 7 END
----
-91

skipif mysql # not compatible
query I rowsort label-7701
SELECT - 84 + - CASE + + MAX ( ALL + - 0 ) WHEN - - COUNT ( * ) * + 42 THEN NULL ELSE + 7 END
----
-91

query II rowsort
SELECT + 10 AS col1, - 70 AS col0
----
10
-70

query I rowsort
SELECT DISTINCT 28 + + 55 AS col0
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-7704
SELECT DISTINCT - - COALESCE ( 13, + 41 * + 51 * - - COALESCE ( 54, - 0, COUNT( * ) ) * - 20 - 64 + - ( + COUNT( * ) ) )
----
13

skipif mysql # not compatible
query I rowsort label-7704
SELECT DISTINCT - - COALESCE ( 13, + 41 * + 51 * - - COALESCE ( 54, - 0, COUNT ( * ) ) * - 20 - 64 + - ( + COUNT ( * ) ) )
----
13

onlyif mysql # aggregate syntax: 
query II rowsort label-7705
SELECT ALL - COUNT( * ) - - NULLIF ( + COUNT( * ), 63 ) AS col0, + MAX( 96 )
----
0
96

skipif mysql # not compatible
query II rowsort label-7705
SELECT ALL - COUNT ( * ) - - NULLIF ( + COUNT ( * ), 63 ) AS col0, + MAX ( 96 )
----
0
96

query I rowsort
SELECT - 16 - - 50 AS col0
----
34

query I rowsort
SELECT DISTINCT 40 - - 35 + + 49 * + 58 * + - 77 * + 11
----
-2407099

query I rowsort
SELECT ALL 70 - 53 AS col1
----
17

query I rowsort
SELECT DISTINCT 4 * NULLIF ( - + 36, + 34 )
----
-144

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7710
SELECT CAST( + + 51 AS SIGNED ) / - - CASE + COUNT( DISTINCT + - ( - 75 ) ) WHEN COUNT( 92 ) * + + 35 THEN + - 95 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7710
SELECT CAST ( + + 51 AS INTEGER ) / - - CASE + COUNT ( DISTINCT + - ( - 75 ) ) WHEN COUNT ( 92 ) * + + 35 THEN + - 95 ELSE NULL END AS col2
----
NULL

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

skipif mysql # not compatible
query I rowsort label-7711
SELECT 70 + + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7712
SELECT 15 * - SUM( DISTINCT + ( - - 67 ) ) AS col2
----
-1005

skipif mysql # not compatible
query I rowsort label-7712
SELECT 15 * - SUM ( DISTINCT + ( - - 67 ) ) AS col2
----
-1005

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7713
SELECT 22 DIV MIN( ALL COALESCE ( - + 89, 28 ) ) * + 70 + + 46 AS col2
----
46

skipif mysql # not compatible
query I rowsort label-7713
SELECT 22 / MIN ( ALL COALESCE ( - + 89, 28 ) ) * + 70 + + 46 AS col2
----
46

query I rowsort
SELECT 5 + - 85 AS col0
----
-80

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

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

query I rowsort
SELECT CASE 28 WHEN - - 46 + - ( ( ( - 44 ) ) ) THEN + ( - 33 ) + 8 + + + 78 ELSE 37 - - - ( + 56 ) * + 88 END - + 30 + 92 AS col2
----
-4829

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7717
SELECT - 31 * - 94 + - - 11 DIV + COUNT( * ) AS col0
----
2925

skipif mysql # not compatible
query I rowsort label-7717
SELECT - 31 * - 94 + - - 11 / + COUNT ( * ) AS col0
----
2925

onlyif mysql # aggregate syntax: 
query I rowsort label-7718
SELECT ( - COUNT( - - 59 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-7718
SELECT ( - COUNT ( - - 59 ) )
----
-1

query I rowsort
SELECT ALL - 22 * + 37 + + 25 AS col0
----
-789

query I rowsort
SELECT DISTINCT + - 20 * - + 75 * - + 16 * + - 81 AS col0
----
1944000

onlyif mysql # DIV for integer division: 
query I rowsort label-7721
SELECT ALL + 99 DIV + + 80 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-7721
SELECT ALL + 99 / + + 80 AS col1
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-7722
SELECT DISTINCT 66 * - + 69 - 67 * 78, - COUNT( * ) col0
----
-9780
-1

skipif mysql # not compatible
query II rowsort label-7722
SELECT DISTINCT 66 * - + 69 - 67 * 78, - COUNT ( * ) col0
----
-9780
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-7723
SELECT - 18 DIV - 95 + + + 21 AS col2
----
21

skipif mysql # not compatible
query I rowsort label-7723
SELECT - 18 / - 95 + + + 21 AS col2
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-7724
SELECT DISTINCT + - COUNT( * ) * + 98 + 78
----
-20

skipif mysql # not compatible
query I rowsort label-7724
SELECT DISTINCT + - COUNT ( * ) * + 98 + 78
----
-20

query I rowsort
SELECT ALL + 44 * 93
----
4092

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7726
SELECT + MAX( 51 ) * + 74 + - - 55 DIV + 66 * + ( - 75 ) * - COUNT( * ) - - 80 DIV + 60 + 0 + - 15 + - 48 + 71 * 26
----
5558

skipif mysql # not compatible
query I rowsort label-7726
SELECT + MAX ( 51 ) * + 74 + - - 55 / + 66 * + ( - 75 ) * - COUNT ( * ) - - 80 / + 60 + 0 + - 15 + - 48 + 71 * 26
----
5558

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7727
SELECT + CAST( - 9 AS SIGNED ) * - - 18 + 11
----
-151

skipif mysql # not compatible
query I rowsort label-7727
SELECT + CAST ( - 9 AS INTEGER ) * - - 18 + 11
----
-151

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

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

query I rowsort
SELECT + 63 + - 33 AS col1
----
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7730
SELECT DISTINCT NULLIF ( 59, + ( - 88 ) * + 72 ) AS col2, + COALESCE ( MAX( + 72 ), + 99 * + - CASE + 92 WHEN + 66 THEN - COUNT( * ) WHEN 18 THEN NULL END / - 43 * + 56, 0 ) * - - 60 / - NULLIF ( + + COUNT( * ), 77 ) / CAST( NULL AS SIGNED ) + 30 / + COUNT( * ) * - 29
----
59
NULL

skipif mysql # not compatible
query II rowsort label-7730
SELECT DISTINCT NULLIF ( 59, + ( - 88 ) * + 72 ) AS col2, + COALESCE ( MAX ( + 72 ), + 99 * + - CASE + 92 WHEN + 66 THEN - COUNT ( * ) WHEN 18 THEN NULL END / - 43 * + 56, 0 ) * - - 60 / - NULLIF ( + + COUNT ( * ), 77 ) / CAST ( NULL AS INTEGER ) + 30 / + COUNT ( * ) * - 29
----
59
NULL

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

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

query I rowsort
SELECT DISTINCT - 82 * + 0
----
0

query I rowsort
SELECT + 27 * 81 AS col1
----
2187

query I rowsort
SELECT ALL 38 + + 40 col0
----
78

query I rowsort
SELECT - NULLIF ( - - 85, + 91 )
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-7736
SELECT ALL 85 + + 63 + + 11 + - - COUNT( * ) * + 64 * - 9
----
-417

skipif mysql # not compatible
query I rowsort label-7736
SELECT ALL 85 + + 63 + + 11 + - - COUNT ( * ) * + 64 * - 9
----
-417

onlyif mysql # DIV for integer division: 
query I rowsort label-7737
SELECT + 91 DIV - 31 AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-7737
SELECT + 91 / - 31 AS col0
----
-2

query I rowsort
SELECT + 96 + + 45 AS col0
----
141

onlyif mysql # aggregate syntax: 
query I rowsort label-7739
SELECT + ( 65 ) + + + CASE + - COUNT( * ) WHEN + 30 * + - ( + 89 ) THEN 26 * 89 + - COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-7739
SELECT + ( 65 ) + + + CASE + - COUNT ( * ) WHEN + 30 * + - ( + 89 ) THEN 26 * 89 + - COUNT ( * ) END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7740
SELECT ALL 90 + - 96 * - ( NULLIF ( 45, 59 ) ) - + COUNT( + - NULLIF ( - CAST( 28 AS DECIMAL ), + + 3 ) ) AS col1
----
4409

skipif mysql # not compatible
query I rowsort label-7740
SELECT ALL 90 + - 96 * - ( NULLIF ( 45, 59 ) ) - + COUNT ( + - NULLIF ( - CAST ( 28 AS REAL ), + + 3 ) ) AS col1
----
4409

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7741
SELECT DISTINCT + COALESCE ( + - 95, 11, + + 44 DIV + 59 * - - 81 - - 67 * - COALESCE ( 12, - 82 + - 63 DIV + - 98 * - 96, - + 32 ) ) DIV - COUNT( * ) AS col0
----
95

skipif mysql # not compatible
query I rowsort label-7741
SELECT DISTINCT + COALESCE ( + - 95, 11, + + 44 / + 59 * - - 81 - - 67 * - COALESCE ( 12, - 82 + - 63 / + - 98 * - 96, - + 32 ) ) / - COUNT ( * ) AS col0
----
95

query I rowsort
SELECT ALL 33 + + 39 col0
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-7743
SELECT DISTINCT - 53 + - NULLIF ( + COUNT( * ), - CASE 51 WHEN 85 - + 86 + 90 * SUM( DISTINCT + - 33 ) / 76 THEN + COUNT( * ) ELSE 87 END + + + 19 )
----
-54

skipif mysql # not compatible
query I rowsort label-7743
SELECT DISTINCT - 53 + - NULLIF ( + COUNT ( * ), - CASE 51 WHEN 85 - + 86 + 90 * SUM ( DISTINCT + - 33 ) / 76 THEN + COUNT ( * ) ELSE 87 END + + + 19 )
----
-54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7744
SELECT ALL + 89 * + SUM( ALL - CAST( - 26 AS SIGNED ) ) AS col2
----
2314

skipif mysql # not compatible
query I rowsort label-7744
SELECT ALL + 89 * + SUM ( ALL - CAST ( - 26 AS INTEGER ) ) AS col2
----
2314

onlyif mysql # DIV for integer division: 
query I rowsort label-7745
SELECT DISTINCT - 60 DIV + 76 - - + 60
----
60

skipif mysql # not compatible
query I rowsort label-7745
SELECT DISTINCT - 60 / + 76 - - + 60
----
60

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

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

query I rowsort
SELECT ALL + 70 * + 11
----
770

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7748
SELECT - + NULLIF ( + 62, CAST( NULL AS SIGNED ) ) * + - 49 - - 49 * + 80 * - 37 - - ( - - NULLIF ( 96, + 23 ) ) AS col1
----
-141906

skipif mysql # not compatible
query I rowsort label-7748
SELECT - + NULLIF ( + 62, CAST ( NULL AS INTEGER ) ) * + - 49 - - 49 * + 80 * - 37 - - ( - - NULLIF ( 96, + 23 ) ) AS col1
----
-141906

query I rowsort
SELECT - - 59 * + 69
----
4071

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

skipif mysql # not compatible
query I rowsort label-7750
SELECT ALL + - ( + COUNT ( - 26 ) ) AS col2
----
-1

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

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

query I rowsort
SELECT - 45 + + 88 + - 60 * - 5
----
343

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7753
SELECT ALL 76 DIV + - COUNT( * ) - + ( 97 ) + - - 63 * 5
----
142

skipif mysql # not compatible
query I rowsort label-7753
SELECT ALL 76 / + - COUNT ( * ) - + ( 97 ) + - - 63 * 5
----
142

query I rowsort
SELECT - 58 * + 33 + 79 * - + 72 AS col2
----
-7602

query I rowsort
SELECT + + COALESCE ( - ( - 98 ), - 70 ) AS col0
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-7756
SELECT DISTINCT + + 38 * - 0 - + SUM( + 46 ) AS col1
----
-46

skipif mysql # not compatible
query I rowsort label-7756
SELECT DISTINCT + + 38 * - 0 - + SUM ( + 46 ) AS col1
----
-46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7757
SELECT DISTINCT - 54 DIV 28 - - 25 - - 81 + + - MAX( - 55 ) AS col2
----
160

skipif mysql # not compatible
query I rowsort label-7757
SELECT DISTINCT - 54 / 28 - - 25 - - 81 + + - MAX ( - 55 ) AS col2
----
160

query I rowsort
SELECT - + 32 * - - 68 AS col1
----
-2176

query I rowsort
SELECT ALL - 67 * - 49
----
3283

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7761
SELECT + 75 AS col0, 63 * + + 23 + + + COUNT( * ) + + - 64 DIV + 22 AS col1
----
75
1448

skipif mysql # not compatible
query II rowsort label-7761
SELECT + 75 AS col0, 63 * + + 23 + + + COUNT ( * ) + + - 64 / + 22 AS col1
----
75
1448

query I rowsort
SELECT - 10 * + 17
----
-170

onlyif mysql # aggregate syntax: 
query I rowsort label-7763
SELECT COALESCE ( - COUNT( ( - 65 ) ), + + 45 * - 72 + - + 91 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-7763
SELECT COALESCE ( - COUNT ( ( - 65 ) ), + + 45 * - 72 + - + 91 ) AS col1
----
-1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7765
SELECT COALESCE ( + SUM( DISTINCT 6 ), 78, + + 37 - + 74 * + 39 ) AS col1
----
6

skipif mysql # not compatible
query I rowsort label-7765
SELECT COALESCE ( + SUM ( DISTINCT 6 ), 78, + + 37 - + 74 * + 39 ) AS col1
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7766
SELECT - CAST( + + 23 AS SIGNED ) - + + 27 AS col2
----
-50

skipif mysql # not compatible
query I rowsort label-7766
SELECT - CAST ( + + 23 AS INTEGER ) - + + 27 AS col2
----
-50

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7767
SELECT ALL NULLIF ( 54, 53 * CAST( - 70 AS SIGNED ) / - 15 * + CAST( NULL AS DECIMAL ) + + 54 + + + 49 ) * + 53 + - 80
----
2782

skipif mysql # not compatible
query I rowsort label-7767
SELECT ALL NULLIF ( 54, 53 * CAST ( - 70 AS INTEGER ) / - 15 * + CAST ( NULL AS REAL ) + + 54 + + + 49 ) * + 53 + - 80
----
2782

onlyif mysql # aggregate syntax: 
query I rowsort label-7768
SELECT ALL + 25 * + + COUNT( * ) + + COUNT( * ) * + MIN( + - 70 ) - + COUNT( * )
----
-46

skipif mysql # not compatible
query I rowsort label-7768
SELECT ALL + 25 * + + COUNT ( * ) + + COUNT ( * ) * + MIN ( + - 70 ) - + COUNT ( * )
----
-46

query I rowsort
SELECT ALL - 68 * - + 37
----
2516

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

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

query II rowsort
SELECT DISTINCT 3 AS col2, 25
----
3
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7772
SELECT - NULLIF ( + CAST( - - 63 AS SIGNED ), + 66 )
----
-63

skipif mysql # not compatible
query I rowsort label-7772
SELECT - NULLIF ( + CAST ( - - 63 AS INTEGER ), + 66 )
----
-63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7773
SELECT ALL - CAST( - + COUNT( * ) AS SIGNED ) * + CASE + + 46 WHEN - 20 + 88 + - 51 + - 38 THEN NULL ELSE - - 27 END + 51 AS col0
----
78

skipif mysql # not compatible
query I rowsort label-7773
SELECT ALL - CAST ( - + COUNT ( * ) AS INTEGER ) * + CASE + + 46 WHEN - 20 + 88 + - 51 + - 38 THEN NULL ELSE - - 27 END + 51 AS col0
----
78

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7774
SELECT 41 * + 96 + COUNT( * ) DIV 57 * - COUNT( * ) + - + ( - 36 ) + + - 89 + - 59 + - + COUNT( * )
----
3823

skipif mysql # not compatible
query I rowsort label-7774
SELECT 41 * + 96 + COUNT ( * ) / 57 * - COUNT ( * ) + - + ( - 36 ) + + - 89 + - 59 + - + COUNT ( * )
----
3823

onlyif mysql # aggregate syntax: 
query I rowsort label-7775
SELECT - 91 + + - MIN( DISTINCT 31 ) AS col1
----
-122

skipif mysql # not compatible
query I rowsort label-7775
SELECT - 91 + + - MIN ( DISTINCT 31 ) AS col1
----
-122

query I rowsort
SELECT - 67 + + 0
----
-67

query II rowsort
SELECT + 73 * - 81 AS col1, - 39 * + 68 AS col1
----
-5913
-2652

query I rowsort
SELECT - 85 * 52
----
-4420

onlyif mysql # aggregate syntax: 
query I rowsort label-7779
SELECT DISTINCT + SUM( ALL 78 ) * - SUM( ALL - 30 ) * - 79 AS col2
----
-184860

skipif mysql # not compatible
query I rowsort label-7779
SELECT DISTINCT + SUM ( ALL 78 ) * - SUM ( ALL - 30 ) * - 79 AS col2
----
-184860

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7780
SELECT ALL + NULLIF ( - 42, + + 15 * 94 ) + - 38 * 59 * + ( CASE + + 44 WHEN + CASE - CAST( + - 9 AS SIGNED ) WHEN - 52 / + 92 THEN + ( + + 78 ) * 57 + - + 84 END THEN + + 51 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-7780
SELECT ALL + NULLIF ( - 42, + + 15 * 94 ) + - 38 * 59 * + ( CASE + + 44 WHEN + CASE - CAST ( + - 9 AS INTEGER ) WHEN - 52 / + 92 THEN + ( + + 78 ) * 57 + - + 84 END THEN + + 51 END )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7781
SELECT - + NULLIF ( 43, - - COUNT( * ) ) + + 64 col1
----
21

skipif mysql # not compatible
query I rowsort label-7781
SELECT - + NULLIF ( 43, - - COUNT ( * ) ) + + 64 col1
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-7782
SELECT + - MAX( DISTINCT - - COALESCE ( + NULLIF ( + + 87, 95 * + 33 * + 20 * 48 ), + 7 * 18 + + + 48, 49 ) ) + + COUNT( * ) AS col1
----
-86

skipif mysql # not compatible
query I rowsort label-7782
SELECT + - MAX ( DISTINCT - - COALESCE ( + NULLIF ( + + 87, 95 * + 33 * + 20 * 48 ), + 7 * 18 + + + 48, 49 ) ) + + COUNT ( * ) AS col1
----
-86

query I rowsort
SELECT ALL - + 12 - + 13 AS col0
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-7784
SELECT DISTINCT - - 87 * - COUNT( * ) + - 29 - + + 94 AS col0
----
-210

skipif mysql # not compatible
query I rowsort label-7784
SELECT DISTINCT - - 87 * - COUNT ( * ) + - 29 - + + 94 AS col0
----
-210

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

query II rowsort
SELECT 63 * 11, 0 col1
----
693
0

query I rowsort
SELECT - 46 * - 21
----
966

query I rowsort
SELECT 66 + - 12
----
54

query I rowsort
SELECT - 20 + - + 16 AS col2
----
-36

query I rowsort
SELECT 55 + 49
----
104

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7791
SELECT ALL - 17 / 53 + - + 62 + + - ( + - 37 ) * - CAST( NULL AS SIGNED ) * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7791
SELECT ALL - 17 / 53 + - + 62 + + - ( + - 37 ) * - CAST ( NULL AS INTEGER ) * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-7792
SELECT ALL - 45, ( + 68 ) DIV + 98 * - 48 AS col0
----
-45
0

skipif mysql # not compatible
query II rowsort label-7792
SELECT ALL - 45, ( + 68 ) / + 98 * - 48 AS col0
----
-45
0

query II rowsort
SELECT + + 19 AS col2, 29 AS col1
----
19
29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7794
SELECT 35 + + NULLIF ( - - 62, + 13 + - 73 + + COUNT( * ) + - AVG ( - 91 ) + + COALESCE ( CASE ( - + 20 ) WHEN + 56 * - 37 - + 86 THEN NULL WHEN - 41 * 25 + - 46 * 99 THEN - + CAST( NULL AS SIGNED ) WHEN + 62 THEN NULL END, - COUNT( * ), - CAST( + + 29 AS SIGNED ) - + 11 ) + - 64 * 19 / + 53 )
----
97

skipif mysql # not compatible
query I rowsort label-7794
SELECT 35 + + NULLIF ( - - 62, + 13 + - 73 + + COUNT ( * ) + - AVG ( - 91 ) + + COALESCE ( CASE ( - + 20 ) WHEN + 56 * - 37 - + 86 THEN NULL WHEN - 41 * 25 + - 46 * 99 THEN - + CAST ( NULL AS INTEGER ) WHEN + 62 THEN NULL END, - COUNT ( * ), - CAST ( + + 29 AS INTEGER ) - + 11 ) + - 64 * 19 / + 53 )
----
97

query II rowsort
SELECT + 35 AS col0, 92 AS col1
----
35
92

onlyif mysql # aggregate syntax: 
query I rowsort label-7796
SELECT ALL - + NULLIF ( + 50, + COUNT( * ) / - + 25 * - 24 * - 60 * 70 ) * COUNT( * ) * + 65 col0
----
-3250

skipif mysql # not compatible
query I rowsort label-7796
SELECT ALL - + NULLIF ( + 50, + COUNT ( * ) / - + 25 * - 24 * - 60 * 70 ) * COUNT ( * ) * + 65 col0
----
-3250

query I rowsort
SELECT 12 * 86 * - 96 + - 14 + + 7 * 56
----
-98694

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

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

query I rowsort
SELECT DISTINCT 40 * + 59 AS col0
----
2360

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7800
SELECT 17 / + CAST( NULL AS SIGNED ) + + - 73 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7800
SELECT 17 / + CAST ( NULL AS INTEGER ) + + - 73 AS col0
----
NULL

query I rowsort
SELECT ALL NULLIF ( - 85, + 76 ) + + 97 AS col1
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-7802
SELECT ALL - 46 + - NULLIF ( - - MIN( DISTINCT + 78 ), - 6 )
----
-124

skipif mysql # not compatible
query I rowsort label-7802
SELECT ALL - 46 + - NULLIF ( - - MIN ( DISTINCT + 78 ), - 6 )
----
-124

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7803
SELECT 31 + CAST( 67 AS SIGNED ) AS col2, - CASE + NULLIF ( - + 51, 34 ) WHEN 71 THEN + 93 + + 47 + - 13 END
----
98
NULL

skipif mysql # not compatible
query II rowsort label-7803
SELECT 31 + CAST ( 67 AS INTEGER ) AS col2, - CASE + NULLIF ( - + 51, 34 ) WHEN 71 THEN + 93 + + 47 + - 13 END
----
98
NULL

query I rowsort
SELECT ALL + 37 * + CASE + 92 WHEN - 32 * - + 85 * 43 * - 33 * 47 THEN - 49 END * 10 + + 73
----
NULL

query I rowsort
SELECT 5 * - 7 AS col1
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-7806
SELECT 40 + - - NULLIF ( + ( MAX( ALL - - 65 ) ), - + 16 + - + MAX( + 53 ) ) + 12
----
117

skipif mysql # not compatible
query I rowsort label-7806
SELECT 40 + - - NULLIF ( + ( MAX ( ALL - - 65 ) ), - + 16 + - + MAX ( + 53 ) ) + 12
----
117

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7807
SELECT ALL - 73 + - 59 AS col0, - NULLIF ( - - 46, COUNT( * ) ) DIV + - 45 + + COUNT( * )
----
-132
2

skipif mysql # not compatible
query II rowsort label-7807
SELECT ALL - 73 + - 59 AS col0, - NULLIF ( - - 46, COUNT ( * ) ) / + - 45 + + COUNT ( * )
----
-132
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7808
SELECT DISTINCT - 64 * - 42 * COUNT( * ) * - CAST( + 54 AS SIGNED ) AS col1
----
-145152

skipif mysql # not compatible
query I rowsort label-7808
SELECT DISTINCT - 64 * - 42 * COUNT ( * ) * - CAST ( + 54 AS INTEGER ) AS col1
----
-145152

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7810
SELECT DISTINCT COUNT( * ) - 67
----
-66

skipif mysql # not compatible
query I rowsort label-7810
SELECT DISTINCT COUNT ( * ) - 67
----
-66

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

skipif mysql # not compatible
query I rowsort label-7811
SELECT DISTINCT + 92 - COUNT ( * ) AS col2
----
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7812
SELECT ALL + - 97 * + NULLIF ( 77, + 16 ) + - + CASE CAST( NULLIF ( - 98, - + 28 + + + COUNT( * ) ) AS SIGNED ) WHEN - 72 * + + AVG ( - 27 ) * + + 42 * + - 80 + 91 * ( + - 15 ) + + 64 * 41 THEN + - ( + + MAX( 85 ) ) + - + 37 WHEN + 98 / + 48 THEN 25 * + 60 + 54 WHEN 54 THEN - 26 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7812
SELECT ALL + - 97 * + NULLIF ( 77, + 16 ) + - + CASE CAST ( NULLIF ( - 98, - + 28 + + + COUNT ( * ) ) AS INTEGER ) WHEN - 72 * + + AVG ( - 27 ) * + + 42 * + - 80 + 91 * ( + - 15 ) + + 64 * 41 THEN + - ( + + MAX ( 85 ) ) + - + 37 WHEN + 98 / + 48 THEN 25 * + 60 + 54 WHEN 54 THEN - 26 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7813
SELECT - CASE COUNT( * ) WHEN 98 THEN + + SUM( - 8 ) * - 37 + - 69 - + 33 * - + ( + + 50 ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7813
SELECT - CASE COUNT ( * ) WHEN 98 THEN + + SUM ( - 8 ) * - 37 + - 69 - + 33 * - + ( + + 50 ) END AS col1
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7815
SELECT ALL COALESCE ( - + 6, + COUNT( * ) + + 38, + 14 )
----
-6

skipif mysql # not compatible
query I rowsort label-7815
SELECT ALL COALESCE ( - + 6, + COUNT ( * ) + + 38, + 14 )
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-7816
SELECT DISTINCT - COALESCE ( - 5, - + 5 ) * COUNT( * ) * + - 71 * + 5 AS col2
----
-1775

skipif mysql # not compatible
query I rowsort label-7816
SELECT DISTINCT - COALESCE ( - 5, - + 5 ) * COUNT ( * ) * + - 71 * + 5 AS col2
----
-1775

query I rowsort
SELECT ALL + 87 * + 20 * + + 21 AS col2
----
36540

onlyif mysql # DIV for integer division: 
query I rowsort label-7818
SELECT ALL - 76 DIV + - 86
----
0

skipif mysql # not compatible
query I rowsort label-7818
SELECT ALL - 76 / + - 86
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7819
SELECT 88 + + - 68 + + + CAST( + + 32 AS SIGNED ) * 71 + - COUNT( * ) AS col1
----
2291

skipif mysql # not compatible
query I rowsort label-7819
SELECT 88 + + - 68 + + + CAST ( + + 32 AS INTEGER ) * 71 + - COUNT ( * ) AS col1
----
2291

query I rowsort
SELECT DISTINCT + + 42 * 54 AS col0
----
2268

query II rowsort
SELECT 50 * - + 64, 25 AS col0
----
-3200
25

onlyif mysql # DIV for integer division: 
query II rowsort label-7822
SELECT ALL + ( + - 55 ) * 2, - COALESCE ( + 70, - ( - 68 ) + - 82 * + 38 + + COALESCE ( - 14, + + 27 ), 82 DIV + + 11 ) - - COALESCE ( + + 2, 63 ) AS col1
----
-110
-68

skipif mysql # not compatible
query II rowsort label-7822
SELECT ALL + ( + - 55 ) * 2, - COALESCE ( + 70, - ( - 68 ) + - 82 * + 38 + + COALESCE ( - 14, + + 27 ), 82 / + + 11 ) - - COALESCE ( + + 2, 63 ) AS col1
----
-110
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-7823
SELECT MIN( + - 58 ) * + 9 AS col1
----
-522

skipif mysql # not compatible
query I rowsort label-7823
SELECT MIN ( + - 58 ) * + 9 AS col1
----
-522

onlyif mysql # aggregate syntax: 
query II rowsort label-7824
SELECT + 21 * - NULLIF ( 94, - COUNT( * ) ) + + COUNT( * ) - + + 21 * + 77, MIN( 33 ) AS col2
----
-3590
33

skipif mysql # not compatible
query II rowsort label-7824
SELECT + 21 * - NULLIF ( 94, - COUNT ( * ) ) + + COUNT ( * ) - + + 21 * + 77, MIN ( 33 ) AS col2
----
-3590
33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7825
SELECT COALESCE ( + 67, - 1 DIV CAST( + 2 AS SIGNED ) - 93 + + 97 - - + 72 * + - COALESCE ( - 93, + COUNT( * ) ) )
----
67

skipif mysql # not compatible
query I rowsort label-7825
SELECT COALESCE ( + 67, - 1 / CAST ( + 2 AS INTEGER ) - 93 + + 97 - - + 72 * + - COALESCE ( - 93, + COUNT ( * ) ) )
----
67

query I rowsort
SELECT 57 + + + 17 + 79 AS col0
----
153

onlyif mysql # aggregate syntax: 
query I rowsort label-7827
SELECT SUM( - 4 ) col2
----
-4

skipif mysql # not compatible
query I rowsort label-7827
SELECT SUM ( - 4 ) col2
----
-4

query II rowsort
SELECT + 70 AS col2, + 21
----
70
21

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

skipif mysql # not compatible
query I rowsort label-7829
SELECT ALL + 86 * COUNT ( * ) / + ( - 25 ) + - 46 AS col1
----
-49

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

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

query I rowsort
SELECT ALL 69 + + 42
----
111

onlyif mysql # DIV for integer division: 
query I rowsort label-7832
SELECT ALL + 50 DIV 85 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7832
SELECT ALL + 50 / 85 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7833
SELECT DISTINCT 98 + - 2 + - 62 / 20 * CASE - 53 WHEN MIN( DISTINCT + NULLIF ( + 68, - 78 + - 69 ) ) / - - 96 / 8 + 2 / 76 THEN - + SUM( DISTINCT + 86 ) * - ( + COUNT( * ) ) / + SUM( - - 57 ) - + COUNT( * ) WHEN + 86 * - 80 * + 20 + 71 THEN - 25 + + - 67 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7833
SELECT DISTINCT 98 + - 2 + - 62 / 20 * CASE - 53 WHEN MIN ( DISTINCT + NULLIF ( + 68, - 78 + - 69 ) ) / - - 96 / 8 + 2 / 76 THEN - + SUM ( DISTINCT + 86 ) * - ( + COUNT ( * ) ) / + SUM ( - - 57 ) - + COUNT ( * ) WHEN + 86 * - 80 * + 20 + 71 THEN - 25 + + - 67 ELSE NULL END
----
NULL

query I rowsort
SELECT ALL 33 + - - 41 * - - 54
----
2247

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7836
SELECT COUNT( ALL - 42 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7836
SELECT COUNT ( ALL - 42 ) AS col2
----
1

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

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

query I rowsort
SELECT ALL 79 - - 7 AS col0
----
86

query II rowsort
SELECT 21 - - - 7 * - - 89 AS col0, + 41 * ( + 74 )
----
-602
3034

onlyif mysql # aggregate syntax: 
query II rowsort label-7840
SELECT 78 AS col2, - COUNT( - + 10 )
----
78
-1

skipif mysql # not compatible
query II rowsort label-7840
SELECT 78 AS col2, - COUNT ( - + 10 )
----
78
-1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7842
SELECT COALESCE ( - - COUNT( * ), 82 ) * NULLIF ( 55, + 0 ) AS col0
----
55

skipif mysql # not compatible
query I rowsort label-7842
SELECT COALESCE ( - - COUNT ( * ), 82 ) * NULLIF ( 55, + 0 ) AS col0
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-7843
SELECT DISTINCT 27 - - + 91 * + + MAX( ALL + 20 )
----
1847

skipif mysql # not compatible
query I rowsort label-7843
SELECT DISTINCT 27 - - + 91 * + + MAX ( ALL + 20 )
----
1847

query I rowsort
SELECT + + 52 + - 21
----
31

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-7845
SELECT - + 47 - - CASE - 76 WHEN + + COUNT( * ) + + - COALESCE ( + 70, + ( + 7 ) ) + - 20 + 14 THEN + CAST( + 52 AS DECIMAL ) WHEN + - 73 * 24 + - - 8 THEN - 7 END * ( - 29 ) AS col1, + 91
----
NULL
91

skipif mysql # not compatible
query II rowsort label-7845
SELECT - + 47 - - CASE - 76 WHEN + + COUNT ( * ) + + - COALESCE ( + 70, + ( + 7 ) ) + - 20 + 14 THEN + CAST ( + 52 AS REAL ) WHEN + - 73 * 24 + - - 8 THEN - 7 END * ( - 29 ) AS col1, + 91
----
NULL
91

onlyif mysql # aggregate syntax: 
query I rowsort label-7846
SELECT ALL + SUM( 95 ) * + + 19 + + - 69
----
1736

skipif mysql # not compatible
query I rowsort label-7846
SELECT ALL + SUM ( 95 ) * + + 19 + + - 69
----
1736

query I rowsort
SELECT + - 77 + - 28
----
-105

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7849
SELECT + + 2 + - + COUNT( * ) AS col0
----
1

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

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

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

query I rowsort
SELECT - 55 + + 36
----
-19

query I rowsort
SELECT ALL NULLIF ( - - 64, - + 9 ) * 11
----
704

query I rowsort
SELECT DISTINCT + 47 * + CASE - AVG ( 21 ) WHEN + 83 THEN - + 0 * + 64 * ( 26 ) / 34 ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT - 89 * - 58 AS col2
----
5162

query I rowsort
SELECT ALL - - 40 + - 53 AS col1
----
-13

query I rowsort
SELECT - + 95 + 79 + 12 * + - 66 col0
----
-808

query I rowsort
SELECT ALL + CASE + 11 WHEN 6 + - - ( - - 70 ) THEN + 27 ELSE NULL END * 55 + - 32 * 8
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7858
SELECT DISTINCT + ( - ( - + COUNT( * ) ) ) * ( - SUM( + 19 ) ) * + + 61 AS col0
----
-1159

skipif mysql # not compatible
query I rowsort label-7858
SELECT DISTINCT + ( - ( - + COUNT ( * ) ) ) * ( - SUM ( + 19 ) ) * + + 61 AS col0
----
-1159

query I rowsort
SELECT ( - + 50 ) AS col1
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-7860
SELECT ALL + 46 * - + MIN( DISTINCT 64 ) AS col1
----
-2944

skipif mysql # not compatible
query I rowsort label-7860
SELECT ALL + 46 * - + MIN ( DISTINCT 64 ) AS col1
----
-2944

onlyif mysql # aggregate syntax: 
query I rowsort label-7861
SELECT ALL + COUNT( * ) * + COUNT( * ) * - ( 65 ) * 40 + - 93 + - - 17 * - NULLIF ( + 11, - 41 ) + - - 15 + - - 97 * + + COUNT( * )
----
-2768

skipif mysql # not compatible
query I rowsort label-7861
SELECT ALL + COUNT ( * ) * + COUNT ( * ) * - ( 65 ) * 40 + - 93 + - - 17 * - NULLIF ( + 11, - 41 ) + - - 15 + - - 97 * + + COUNT ( * )
----
-2768

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

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

query I rowsort
SELECT 46 * + 90 * + + 26 + - + 5 * - - 45 AS col1
----
107415

query I rowsort
SELECT + 21 - + 4 col0
----
17

query I rowsort
SELECT DISTINCT - 99 * 5 + 66
----
-429

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7866
SELECT - CAST( - COUNT( * ) AS SIGNED ) DIV 84 + - 25 * 43 + + 87 + + - 97 * + + 8 * - 56 + COUNT( * ) * - 45 * - 25 - + ( - + 21 ) - - 69 AS col1
----
43683

skipif mysql # not compatible
query I rowsort label-7866
SELECT - CAST ( - COUNT ( * ) AS INTEGER ) / 84 + - 25 * 43 + + 87 + + - 97 * + + 8 * - 56 + COUNT ( * ) * - 45 * - 25 - + ( - + 21 ) - - 69 AS col1
----
43683

onlyif mysql # aggregate syntax: 
query I rowsort label-7867
SELECT + CASE + - AVG ( ALL + 53 ) WHEN + - COUNT( * ) THEN - - 87 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7867
SELECT + CASE + - AVG ( ALL + 53 ) WHEN + - COUNT ( * ) THEN - - 87 END AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7868
SELECT 92 DIV + 78 + + 6
----
7

skipif mysql # not compatible
query I rowsort label-7868
SELECT 92 / + 78 + + 6
----
7

query I rowsort
SELECT NULLIF ( - 39, + 99 )
----
-39

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7870
SELECT + COALESCE ( - - 56, 65 DIV + - 1 - CAST( NULL AS SIGNED ) ) AS col1, + 87 AS col0
----
56
87

skipif mysql # not compatible
query II rowsort label-7870
SELECT + COALESCE ( - - 56, 65 / + - 1 - CAST ( NULL AS INTEGER ) ) AS col1, + 87 AS col0
----
56
87

query I rowsort
SELECT - 85 + - 65 + - 29
----
-179

query I rowsort
SELECT + 62 + - 63 AS col0
----
-1

query I rowsort
SELECT + 20 * - 56
----
-1120

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7874
SELECT ALL + CASE 21 WHEN + ( - SUM( 69 ) ) THEN COUNT( * ) WHEN COUNT( * ) + + - MIN( ALL + - CAST( NULL AS DECIMAL ) ) * 93 + + - 36 * - 12 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7874
SELECT ALL + CASE 21 WHEN + ( - SUM ( 69 ) ) THEN COUNT ( * ) WHEN COUNT ( * ) + + - MIN ( ALL + - CAST ( NULL AS REAL ) ) * 93 + + - 36 * - 12 THEN NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7875
SELECT DISTINCT - ( + - 22 ) DIV + + 3 AS col0
----
7

skipif mysql # not compatible
query I rowsort label-7875
SELECT DISTINCT - ( + - 22 ) / + + 3 AS col0
----
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7876
SELECT ALL 8 * - CASE - ( + - CAST( + 15 AS SIGNED ) ) WHEN + 65 THEN NULL ELSE - - 96 END * + 53
----
-40704

skipif mysql # not compatible
query I rowsort label-7876
SELECT ALL 8 * - CASE - ( + - CAST ( + 15 AS INTEGER ) ) WHEN + 65 THEN NULL ELSE - - 96 END * + 53
----
-40704

query I rowsort
SELECT ALL 20 * + 30
----
600

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7878
SELECT + ( - + NULLIF ( 80, + + 48 + - 85 - - CAST( 79 AS SIGNED ) * - 50 ) )
----
-80

skipif mysql # not compatible
query I rowsort label-7878
SELECT + ( - + NULLIF ( 80, + + 48 + - 85 - - CAST ( 79 AS INTEGER ) * - 50 ) )
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-7879
SELECT + MIN( ALL 98 ) * 90 AS col0
----
8820

skipif mysql # not compatible
query I rowsort label-7879
SELECT + MIN ( ALL 98 ) * 90 AS col0
----
8820

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

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

query I rowsort
SELECT + 73 + - 69 - + - ( 25 ) - 23
----
6

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7883
SELECT ALL + + ( + 45 ) + + + 7 + - NULLIF ( CAST( NULL AS SIGNED ), + 37 + - - ( + + SUM( + 10 ) ) + - - 59 ) * 97 + - ( 92 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7883
SELECT ALL + + ( + 45 ) + + + 7 + - NULLIF ( CAST ( NULL AS INTEGER ), + 37 + - - ( + + SUM ( + 10 ) ) + - - 59 ) * 97 + - ( 92 )
----
NULL

query I rowsort
SELECT + + 65 * 44
----
2860

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7885
SELECT ALL CASE - 17 WHEN - CAST( NULL AS SIGNED ) THEN 64 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7885
SELECT ALL CASE - 17 WHEN - CAST ( NULL AS INTEGER ) THEN 64 ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT + - 80 - + + 50 AS col2
----
-130

onlyif mysql # aggregate syntax: 
query II rowsort label-7887
SELECT + + 5 * ( - 24 ) * 11 + - MAX( - 53 ) + + + 55, + 55 * + - 25 + + 45 AS col1
----
-1212
-1330

skipif mysql # not compatible
query II rowsort label-7887
SELECT + + 5 * ( - 24 ) * 11 + - MAX ( - 53 ) + + + 55, + 55 * + - 25 + + 45 AS col1
----
-1212
-1330

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

skipif mysql # not compatible
query I rowsort label-7888
SELECT - + MAX ( + - 41 )
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-7889
SELECT DISTINCT + + 12 + ( + + COUNT( * ) )
----
13

skipif mysql # not compatible
query I rowsort label-7889
SELECT DISTINCT + + 12 + ( + + COUNT ( * ) )
----
13

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

skipif mysql # not compatible
query I rowsort label-7890
SELECT - ( - + 3 ) - + + COUNT ( * ) AS col1
----
2

query I rowsort
SELECT DISTINCT 99 * ( + - 99 ) col0
----
-9801

query I rowsort
SELECT DISTINCT ( 92 ) AS col0
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-7893
SELECT ALL 16 + 35 + 77 * COUNT( * ) + 24
----
152

skipif mysql # not compatible
query I rowsort label-7893
SELECT ALL 16 + 35 + 77 * COUNT ( * ) + 24
----
152

onlyif mysql # DIV for integer division: 
query I rowsort label-7894
SELECT DISTINCT - 82 DIV - + 88 * 16 + - 15 + - + 97 * 53
----
-5156

skipif mysql # not compatible
query I rowsort label-7894
SELECT DISTINCT - 82 / - + 88 * 16 + - 15 + - + 97 * 53
----
-5156

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

query I rowsort
SELECT DISTINCT + ( 10 ) col0
----
10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7897
SELECT DISTINCT - COUNT( * ) DIV + 50 - + MAX( - 92 )
----
92

skipif mysql # not compatible
query I rowsort label-7897
SELECT DISTINCT - COUNT ( * ) / + 50 - + MAX ( - 92 )
----
92

onlyif mysql # aggregate syntax: 
query II rowsort label-7898
SELECT + 89, 69 * + 48 + - - SUM( 25 ) * + 80 AS col2
----
89
5312

skipif mysql # not compatible
query II rowsort label-7898
SELECT + 89, 69 * + 48 + - - SUM ( 25 ) * + 80 AS col2
----
89
5312

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7900
SELECT ALL - 72 DIV - + 85 - - 48
----
48

skipif mysql # not compatible
query I rowsort label-7900
SELECT ALL - 72 / - + 85 - - 48
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-7901
SELECT DISTINCT - CASE 97 WHEN - COALESCE ( - 82, + COALESCE ( + COUNT( * ), - ( 76 ) - - MAX( - + 3 ) ), - - SUM( 41 ) ) + + - COUNT( * ) THEN NULL ELSE - 54 END
----
54

skipif mysql # not compatible
query I rowsort label-7901
SELECT DISTINCT - CASE 97 WHEN - COALESCE ( - 82, + COALESCE ( + COUNT ( * ), - ( 76 ) - - MAX ( - + 3 ) ), - - SUM ( 41 ) ) + + - COUNT ( * ) THEN NULL ELSE - 54 END
----
54

query I rowsort
SELECT 33 + - 99
----
-66

onlyif mysql # aggregate syntax: 
query II rowsort label-7903
SELECT ALL - 88 * + + 18 * - 34 AS col0, 13 * SUM( - 7 ) - - 53 * + - 91
----
53856
-4914

skipif mysql # not compatible
query II rowsort label-7903
SELECT ALL - 88 * + + 18 * - 34 AS col0, 13 * SUM ( - 7 ) - - 53 * + - 91
----
53856
-4914

onlyif mysql # aggregate syntax: 
query I rowsort label-7904
SELECT DISTINCT - COALESCE ( + 98, - 74, + COUNT( * ) ) col0
----
-98

skipif mysql # not compatible
query I rowsort label-7904
SELECT DISTINCT - COALESCE ( + 98, - 74, + COUNT ( * ) ) col0
----
-98

query I rowsort
SELECT - 10 * - 51 * - 47 - 5 * + 76 * + - 12 + + + 40 AS col2
----
-19370

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7906
SELECT 23 DIV + NULLIF ( - 52, 26 ) * COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-7906
SELECT 23 / + NULLIF ( - 52, 26 ) * COUNT ( * )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7907
SELECT 59 * - NULLIF ( - CAST( NULL AS SIGNED ), - MAX( + 8 ) * - - COALESCE ( - 80, + 45 ) / - 54 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7907
SELECT 59 * - NULLIF ( - CAST ( NULL AS INTEGER ), - MAX ( + 8 ) * - - COALESCE ( - 80, + 45 ) / - 54 )
----
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7909
SELECT 49 DIV - 86
----
0

skipif mysql # not compatible
query I rowsort label-7909
SELECT 49 / - 86
----
0

query I rowsort
SELECT 84 * + 30 AS col2
----
2520

onlyif mysql # aggregate syntax: 
query I rowsort label-7911
SELECT COUNT( * ) * - 44 - - 10 * 99
----
946

skipif mysql # not compatible
query I rowsort label-7911
SELECT COUNT ( * ) * - 44 - - 10 * 99
----
946

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

skipif mysql # not compatible
query I rowsort label-7912
SELECT DISTINCT 84 / NULLIF ( 53, COUNT ( * ) ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7913
SELECT ALL 19 + NULLIF ( 77, - COUNT( * ) ) AS col2
----
96

skipif mysql # not compatible
query I rowsort label-7913
SELECT ALL 19 + NULLIF ( 77, - COUNT ( * ) ) AS col2
----
96

query I rowsort
SELECT ALL 83 + 39
----
122

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7915
SELECT 64 + - 17 DIV - COUNT( ALL + 56 * 4 )
----
81

skipif mysql # not compatible
query I rowsort label-7915
SELECT 64 + - 17 / - COUNT ( ALL + 56 * 4 )
----
81

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

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

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

skipif mysql # not compatible
query I rowsort label-7917
SELECT ALL SUM ( + 95 ) * - COUNT ( * ) AS col0
----
-95

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7918
SELECT CAST( NULL AS DECIMAL ) * 87 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7918
SELECT CAST ( NULL AS REAL ) * 87 AS col2
----
NULL

query I rowsort
SELECT ALL 76 + 48 col2
----
124

onlyif mysql # aggregate syntax: 
query I rowsort label-7920
SELECT MIN( DISTINCT 42 ) + - ( 68 ) * 90 AS col1
----
-6078

skipif mysql # not compatible
query I rowsort label-7920
SELECT MIN ( DISTINCT 42 ) + - ( 68 ) * 90 AS col1
----
-6078

query I rowsort
SELECT ALL 23 * - 14
----
-322

query I rowsort
SELECT DISTINCT 82 + 46 AS col0
----
128

query I rowsort
SELECT NULLIF ( 50, - 36 ) + 63
----
113

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

skipif mysql # not compatible
query I rowsort label-7924
SELECT ALL COUNT ( * ) - 59 / 55 AS col1
----
0

query I rowsort
SELECT 18 + + 8 * + 12 AS col2
----
114

query I rowsort
SELECT 89 * + 37
----
3293

query I rowsort
SELECT 25 * 66 AS col0
----
1650

query I rowsort
SELECT 95 + ( - 87 )
----
8

onlyif mysql # DIV for integer division: 
query I rowsort label-7929
SELECT 34 + 26 DIV 73 col2
----
34

skipif mysql # not compatible
query I rowsort label-7929
SELECT 34 + 26 / 73 col2
----
34

query I rowsort
SELECT DISTINCT 45 * 86 AS col1
----
3870

query I rowsort
SELECT ALL 63 * - 86 AS col0
----
-5418

query I rowsort
SELECT 50 * - 4
----
-200

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7933
SELECT ALL + COALESCE ( + SUM( ( - 34 ) ), MAX( DISTINCT 44 ) + CAST( NULL AS SIGNED ) ) * 70
----
-2380

skipif mysql # not compatible
query I rowsort label-7933
SELECT ALL + COALESCE ( + SUM ( ( - 34 ) ), MAX ( DISTINCT 44 ) + CAST ( NULL AS INTEGER ) ) * 70
----
-2380

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7934
SELECT - COALESCE ( - ( + ( 53 ) ), 16 DIV CASE 96 WHEN CASE - 58 WHEN 74 + + 69 THEN 69 DIV + 38 WHEN + COUNT( * ) THEN 8 END * + 87 THEN NULL ELSE 28 END, - 78 ) * + 80 + 37 * - 14
----
3722

skipif mysql # not compatible
query I rowsort label-7934
SELECT - COALESCE ( - ( + ( 53 ) ), 16 / CASE 96 WHEN CASE - 58 WHEN 74 + + 69 THEN 69 / + 38 WHEN + COUNT ( * ) THEN 8 END * + 87 THEN NULL ELSE 28 END, - 78 ) * + 80 + 37 * - 14
----
3722

query I rowsort
SELECT 40 * 23 AS col0
----
920

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7937
SELECT ALL CAST( NULL AS SIGNED ) * - 51
----
NULL

skipif mysql # not compatible
query I rowsort label-7937
SELECT ALL CAST ( NULL AS INTEGER ) * - 51
----
NULL

query I rowsort
SELECT 20 + 45
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-7939
SELECT - 44 * COUNT( * ) + 28 AS col2
----
-16

skipif mysql # not compatible
query I rowsort label-7939
SELECT - 44 * COUNT ( * ) + 28 AS col2
----
-16

query I rowsort
SELECT 65 - + 34
----
31

query I rowsort
SELECT ( - 29 ) * 53 + 22
----
-1515

query I rowsort
SELECT ALL - NULLIF ( + 98, + 44 * 56 )
----
-98

query I rowsort
SELECT + ( + 62 ) + - 16 AS col2
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-7944
SELECT DISTINCT 73 + COUNT( * ) * - COALESCE ( + 55, 45 ) AS col0
----
18

skipif mysql # not compatible
query I rowsort label-7944
SELECT DISTINCT 73 + COUNT ( * ) * - COALESCE ( + 55, 45 ) AS col0
----
18

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

query I rowsort
SELECT ALL + - 63 + 89 col1
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-7947
SELECT + - 92 * COUNT( * ) + 97 * 59
----
5631

skipif mysql # not compatible
query I rowsort label-7947
SELECT + - 92 * COUNT ( * ) + 97 * 59
----
5631

onlyif mysql # aggregate syntax: 
query I rowsort label-7948
SELECT ALL + - 46 + COUNT( * )
----
-45

skipif mysql # not compatible
query I rowsort label-7948
SELECT ALL + - 46 + COUNT ( * )
----
-45

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

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

query I rowsort
SELECT - 35 + - 92
----
-127

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

skipif mysql # not compatible
query I rowsort label-7951
SELECT + MIN ( 15 )
----
15

query I rowsort
SELECT DISTINCT - + 33 * + 94 AS col2
----
-3102

query I rowsort
SELECT ALL + - 71 + - 26 col2
----
-97

query I rowsort
SELECT DISTINCT - 10 + 96 AS col2
----
86

query I rowsort
SELECT DISTINCT + + 20 + 98 * + 68
----
6684

onlyif mysql # aggregate syntax: 
query I rowsort label-7956
SELECT ALL - + MIN( DISTINCT - ( - 43 ) ) + + 91
----
48

skipif mysql # not compatible
query I rowsort label-7956
SELECT ALL - + MIN ( DISTINCT - ( - 43 ) ) + + 91
----
48

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

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

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

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

skipif mysql # not compatible
query I rowsort label-7959
SELECT DISTINCT + COUNT ( * ) / 62 AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7960
SELECT ALL + COALESCE ( + 77, COUNT( * ), - MAX( 99 ) ) DIV + 60 col1
----
1

skipif mysql # not compatible
query I rowsort label-7960
SELECT ALL + COALESCE ( + 77, COUNT ( * ), - MAX ( 99 ) ) / + 60 col1
----
1

query I rowsort
SELECT ALL + + 66 - - 28
----
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7962
SELECT DISTINCT - MAX( ALL CAST( NULL AS SIGNED ) ) - + COALESCE ( 78, + CASE 60 WHEN + 48 * + COUNT( * ) THEN 38 * COUNT( * ) ELSE - COALESCE ( - COUNT( ALL 74 ), + 43, - 9 ) END, - ( - 35 ) + 44 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7962
SELECT DISTINCT - MAX ( ALL CAST ( NULL AS INTEGER ) ) - + COALESCE ( 78, + CASE 60 WHEN + 48 * + COUNT ( * ) THEN 38 * COUNT ( * ) ELSE - COALESCE ( - COUNT ( ALL 74 ), + 43, - 9 ) END, - ( - 35 ) + 44 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7963
SELECT DISTINCT + - 16 DIV + 9 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-7963
SELECT DISTINCT + - 16 / + 9 AS col1
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7964
SELECT - 4 - - 72 * ( 66 * + 48 + + COALESCE ( - ( 80 ), - 67 * + CAST( COUNT( * ) AS SIGNED ), 90 ) )
----
222332

skipif mysql # not compatible
query I rowsort label-7964
SELECT - 4 - - 72 * ( 66 * + 48 + + COALESCE ( - ( 80 ), - 67 * + CAST ( COUNT ( * ) AS INTEGER ), 90 ) )
----
222332

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7965
SELECT 49 / + ( - CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7965
SELECT 49 / + ( - CAST ( NULL AS REAL ) )
----
NULL

query I rowsort
SELECT ALL + 87 * - 20 * 68 col1
----
-118320

query I rowsort
SELECT 95 * 68
----
6460

query I rowsort
SELECT 40 + + 66 + + 54 * - 83 AS col0
----
-4376

query I rowsort
SELECT DISTINCT 22 * 66
----
1452

query I rowsort
SELECT ALL - 33 * + - 69 col1
----
2277

query I rowsort
SELECT + 45 * + - 94 AS col0
----
-4230

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7972
SELECT ALL CASE 9 WHEN + MAX( DISTINCT - 72 ) THEN NULL WHEN 41 * 47 THEN - CAST( NULL AS SIGNED ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7972
SELECT ALL CASE 9 WHEN + MAX ( DISTINCT - 72 ) THEN NULL WHEN 41 * 47 THEN - CAST ( NULL AS INTEGER ) END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7973
SELECT + 15 * + CASE + 51 WHEN + COUNT( * ) / + 34 THEN - CAST( 68 AS SIGNED ) WHEN NULLIF ( SUM( ALL ( 38 ) ), + 58 * ( - 36 ) ) - + 49 THEN NULL ELSE NULL END / COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-7973
SELECT + 15 * + CASE + 51 WHEN + COUNT ( * ) / + 34 THEN - CAST ( 68 AS INTEGER ) WHEN NULLIF ( SUM ( ALL ( 38 ) ), + 58 * ( - 36 ) ) - + 49 THEN NULL ELSE NULL END / COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7974
SELECT CASE 33 WHEN + ( + CAST( 85 AS SIGNED ) ) * 26 + + 12 * - 69 THEN NULL WHEN 31 THEN 41 ELSE - 84 - 47 * + COUNT( * ) END AS col1
----
-131

skipif mysql # not compatible
query I rowsort label-7974
SELECT CASE 33 WHEN + ( + CAST ( 85 AS INTEGER ) ) * 26 + + 12 * - 69 THEN NULL WHEN 31 THEN 41 ELSE - 84 - 47 * + COUNT ( * ) END AS col1
----
-131

onlyif mysql # aggregate syntax: 
query I rowsort label-7975
SELECT + COUNT( DISTINCT - + 48 ) + 47 AS col0
----
48

skipif mysql # not compatible
query I rowsort label-7975
SELECT + COUNT ( DISTINCT - + 48 ) + 47 AS col0
----
48

query I rowsort
SELECT ALL COALESCE ( + - 57, 33 ) * + 87 + + 1
----
-4958

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7978
SELECT ALL 14 * + + 78 + + MIN( DISTINCT + 71 - - 94 )
----
1257

skipif mysql # not compatible
query I rowsort label-7978
SELECT ALL 14 * + + 78 + + MIN ( DISTINCT + 71 - - 94 )
----
1257

onlyif mysql # aggregate syntax: 
query I rowsort label-7979
SELECT + 92 * MIN( 91 )
----
8372

skipif mysql # not compatible
query I rowsort label-7979
SELECT + 92 * MIN ( 91 )
----
8372

query I rowsort
SELECT ALL 94 * - 61 + + 73 AS col0
----
-5661

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7983
SELECT ALL ( - 84 ) * + 35 + + 74 DIV ( 19 ) AS col1
----
-2937

skipif mysql # not compatible
query I rowsort label-7983
SELECT ALL ( - 84 ) * + 35 + + 74 / ( 19 ) AS col1
----
-2937

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7984
SELECT + + 16 * 29 - 4 DIV - CAST( CAST( MAX( 39 ) AS SIGNED ) + 98 AS SIGNED ) - - CAST( 30 AS SIGNED ) col2
----
494

skipif mysql # not compatible
query I rowsort label-7984
SELECT + + 16 * 29 - 4 / - CAST ( CAST ( MAX ( 39 ) AS INTEGER ) + 98 AS INTEGER ) - - CAST ( 30 AS INTEGER ) col2
----
494

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7985
SELECT + + 92 + CAST( NULL AS SIGNED ) + - 15 AS col0
----
NULL

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

query I rowsort
SELECT ALL - 87 * 47 + - 30 AS col0
----
-4119

onlyif mysql # aggregate syntax: 
query I rowsort label-7987
SELECT DISTINCT + MAX( + ( 85 ) ) AS col0
----
85

skipif mysql # not compatible
query I rowsort label-7987
SELECT DISTINCT + MAX ( + ( 85 ) ) AS col0
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-7988
SELECT ALL + + CASE + + ( - MIN( 93 ) ) WHEN 42 / 67 + 9 THEN - 53 * + CASE - ( AVG ( ALL 45 ) ) WHEN 87 THEN 84 WHEN 59 THEN - 22 + 15 ELSE NULL END - 65 ELSE 9 END
----
9

skipif mysql # not compatible
query I rowsort label-7988
SELECT ALL + + CASE + + ( - MIN ( 93 ) ) WHEN 42 / 67 + 9 THEN - 53 * + CASE - ( AVG ( ALL 45 ) ) WHEN 87 THEN 84 WHEN 59 THEN - 22 + 15 ELSE NULL END - 65 ELSE 9 END
----
9

query I rowsort
SELECT DISTINCT - 15 * + 80 * 8
----
-9600

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

skipif mysql # not compatible
query I rowsort label-7990
SELECT - COUNT ( * ) - + 97 AS col1
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-7991
SELECT ALL COUNT( * ) * + + NULLIF ( 44, - 26 / 48 + - 14 * 50 ) - COUNT( ALL - COALESCE ( - 81, ( 81 ), + 13 ) )
----
43

skipif mysql # not compatible
query I rowsort label-7991
SELECT ALL COUNT ( * ) * + + NULLIF ( 44, - 26 / 48 + - 14 * 50 ) - COUNT ( ALL - COALESCE ( - 81, ( 81 ), + 13 ) )
----
43

query I rowsort
SELECT ALL + 65 - - + COALESCE ( - 20, 91 )
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-7993
SELECT DISTINCT + 54 * COUNT( * ) + 21
----
75

skipif mysql # not compatible
query I rowsort label-7993
SELECT DISTINCT + 54 * COUNT ( * ) + 21
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-7994
SELECT ALL + 21 * - MIN( - 83 ) * 13 - + 22
----
22637

skipif mysql # not compatible
query I rowsort label-7994
SELECT ALL + 21 * - MIN ( - 83 ) * 13 - + 22
----
22637

query I rowsort
SELECT - - 16 + 79 * + 35 AS col1
----
2781

onlyif mysql # aggregate syntax: 
query I rowsort label-7996
SELECT - - NULLIF ( - + ( COUNT( ALL NULLIF ( 48, + 30 * - 34 ) ) ), 77 * - NULLIF ( + 62 * + 22, 20 ) ) - 51 AS col1
----
-52

skipif mysql # not compatible
query I rowsort label-7996
SELECT - - NULLIF ( - + ( COUNT ( ALL NULLIF ( 48, + 30 * - 34 ) ) ), 77 * - NULLIF ( + 62 * + 22, 20 ) ) - 51 AS col1
----
-52

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7997
SELECT ALL + 5 * + 69 * + COUNT( * ) + + COUNT( DISTINCT CAST( - 18 AS DECIMAL ) ) col2
----
346

skipif mysql # not compatible
query I rowsort label-7997
SELECT ALL + 5 * + 69 * + COUNT ( * ) + + COUNT ( DISTINCT CAST ( - 18 AS REAL ) ) col2
----
346

query I rowsort
SELECT - 93 * - 59
----
5487

query I rowsort
SELECT - 52 + + + 11
----
-41

query I rowsort
SELECT - 58 - - 74 * + 79 + 32 * - 81
----
3196

query I rowsort
SELECT ALL ( + + 33 ) AS col2
----
33

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8002
SELECT DISTINCT ( - ( COALESCE ( - 0, COALESCE ( + 46, 90 + + 92 ) + - 31 * ( ( COALESCE ( - MIN( - 85 ), 60, MIN( ALL 86 ), - COUNT( * ) ) ) DIV 50 ) ) ) ) col1
----
0

skipif mysql # not compatible
query I rowsort label-8002
SELECT DISTINCT ( - ( COALESCE ( - 0, COALESCE ( + 46, 90 + + 92 ) + - 31 * ( ( COALESCE ( - MIN ( - 85 ), 60, MIN ( ALL 86 ), - COUNT ( * ) ) ) / 50 ) ) ) ) col1
----
0

query I rowsort
SELECT DISTINCT COALESCE ( 38, + 28, - 15 * + 64 )
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-8004
SELECT ALL + CASE COUNT( * ) WHEN + - 6 THEN - 16 END / - 62
----
NULL

skipif mysql # not compatible
query I rowsort label-8004
SELECT ALL + CASE COUNT ( * ) WHEN + - 6 THEN - 16 END / - 62
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8005
SELECT - 22 + + 42 + 7 + - COUNT( * ) * - 30
----
57

skipif mysql # not compatible
query I rowsort label-8005
SELECT - 22 + + 42 + 7 + - COUNT ( * ) * - 30
----
57

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

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

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

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

query I rowsort
SELECT ALL 10 * + 9
----
90

onlyif mysql # DIV for integer division: 
query I rowsort label-8009
SELECT ALL + 56 + - + 61 DIV 68 * 86 AS col0
----
56

skipif mysql # not compatible
query I rowsort label-8009
SELECT ALL + 56 + - + 61 / 68 * 86 AS col0
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-8010
SELECT ALL - ( - COALESCE ( + ( 23 ), + 61, + 90 + - 16 ) ) + + COUNT( DISTINCT 7 + + 63 * - 41 )
----
24

skipif mysql # not compatible
query I rowsort label-8010
SELECT ALL - ( - COALESCE ( + ( 23 ), + 61, + 90 + - 16 ) ) + + COUNT ( DISTINCT 7 + + 63 * - 41 )
----
24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8011
SELECT - COALESCE ( - 36, MAX( 59 ) + - ( + COUNT( * ) ) DIV COALESCE ( + CASE 68 WHEN - COUNT( 19 ) DIV - COUNT( * ) + + 11 THEN NULL WHEN 78 THEN + 7 + 18 WHEN 68 THEN NULL ELSE 6 * 13 END, 60 ) ) AS col1
----
36

skipif mysql # not compatible
query I rowsort label-8011
SELECT - COALESCE ( - 36, MAX ( 59 ) + - ( + COUNT ( * ) ) / COALESCE ( + CASE 68 WHEN - COUNT ( 19 ) / - COUNT ( * ) + + 11 THEN NULL WHEN 78 THEN + 7 + 18 WHEN 68 THEN NULL ELSE 6 * 13 END, 60 ) ) AS col1
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-8012
SELECT + ( - MAX( ALL - 27 ) ) + - MIN( DISTINCT + NULLIF ( + 39, - 55 ) )
----
-12

skipif mysql # not compatible
query I rowsort label-8012
SELECT + ( - MAX ( ALL - 27 ) ) + - MIN ( DISTINCT + NULLIF ( + 39, - 55 ) )
----
-12

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8014
SELECT + COUNT( * ) + - 37
----
-36

skipif mysql # not compatible
query I rowsort label-8014
SELECT + COUNT ( * ) + - 37
----
-36

query I rowsort
SELECT ALL 50 * + 38 * + 56 * + 73
----
7767200

onlyif mysql # DIV for integer division: 
query I rowsort label-8016
SELECT ALL 67 + + 53 + + + 81 + - 65 DIV 3 AS col1
----
180

skipif mysql # not compatible
query I rowsort label-8016
SELECT ALL 67 + + 53 + + + 81 + - 65 / 3 AS col1
----
180

onlyif mysql # DIV for integer division: 
query I rowsort label-8017
SELECT DISTINCT + COALESCE ( + 86, 32 ) DIV 36 + 77
----
79

skipif mysql # not compatible
query I rowsort label-8017
SELECT DISTINCT + COALESCE ( + 86, 32 ) / 36 + 77
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-8018
SELECT MIN( - + 65 ) * ( - 88 ) + NULLIF ( COUNT( * ) + 5, - NULLIF ( 27, - 23 ) ) AS col2
----
5726

skipif mysql # not compatible
query I rowsort label-8018
SELECT MIN ( - + 65 ) * ( - 88 ) + NULLIF ( COUNT ( * ) + 5, - NULLIF ( 27, - 23 ) ) AS col2
----
5726

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

skipif mysql # not compatible
query I rowsort label-8019
SELECT + COUNT ( * ) * + 43 / - ( 33 )
----
-1

query I rowsort
SELECT ALL + 66 * + 55 * ( 36 )
----
130680

onlyif mysql # aggregate syntax: 
query I rowsort label-8021
SELECT + ( 67 ) - - 14 + COALESCE ( 28 - + 50, - COUNT( * ), - ( 59 ) ) AS col1
----
59

skipif mysql # not compatible
query I rowsort label-8021
SELECT + ( 67 ) - - 14 + COALESCE ( 28 - + 50, - COUNT ( * ), - ( 59 ) ) AS col1
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-8022
SELECT + + 54 * COUNT( * ) * + 57 + - 33 + + 27 * 0
----
3045

skipif mysql # not compatible
query I rowsort label-8022
SELECT + + 54 * COUNT ( * ) * + 57 + - 33 + + 27 * 0
----
3045

query I rowsort
SELECT + 26 - - 51 + ( 66 ) * - 89 AS col2
----
-5797

query I rowsort
SELECT + 87 * - + 80 + 66
----
-6894

onlyif mysql # aggregate syntax: 
query I rowsort label-8025
SELECT + 83 * - + COUNT( + - 24 ) AS col2
----
-83

skipif mysql # not compatible
query I rowsort label-8025
SELECT + 83 * - + COUNT ( + - 24 ) AS col2
----
-83

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8027
SELECT + 92 + - MAX( ALL 43 ) + - 31 * ( + 61 * 42 + + ( NULLIF ( 37, 5 * 76 ) ) )
----
-80520

skipif mysql # not compatible
query I rowsort label-8027
SELECT + 92 + - MAX ( ALL 43 ) + - 31 * ( + 61 * 42 + + ( NULLIF ( 37, 5 * 76 ) ) )
----
-80520

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8028
SELECT ALL + SUM( - - 95 ) DIV - + COALESCE ( CAST( - COUNT( * ) AS SIGNED ), - 87 ) AS col1
----
95

skipif mysql # not compatible
query I rowsort label-8028
SELECT ALL + SUM ( - - 95 ) / - + COALESCE ( CAST ( - COUNT ( * ) AS INTEGER ), - 87 ) AS col1
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-8029
SELECT - 7 * - 2 * + - 15 - 14 * + 92 + NULLIF ( - COUNT( * ) + 88, - 14 ) AS col1
----
-1411

skipif mysql # not compatible
query I rowsort label-8029
SELECT - 7 * - 2 * + - 15 - 14 * + 92 + NULLIF ( - COUNT ( * ) + 88, - 14 ) AS col1
----
-1411

onlyif mysql # aggregate syntax: 
query I rowsort label-8030
SELECT ALL - + MAX( - 47 ) * 26 - 26 * + NULLIF ( ( + 8 ) * + 98 + + 93 * - 50, + 33 ) AS col1
----
101738

skipif mysql # not compatible
query I rowsort label-8030
SELECT ALL - + MAX ( - 47 ) * 26 - 26 * + NULLIF ( ( + 8 ) * + 98 + + 93 * - 50, + 33 ) AS col1
----
101738

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8031
SELECT + + 89 DIV + ( COUNT( DISTINCT 80 ) ) - 84 AS col2
----
5

skipif mysql # not compatible
query I rowsort label-8031
SELECT + + 89 / + ( COUNT ( DISTINCT 80 ) ) - 84 AS col2
----
5

query I rowsort
SELECT ALL - 25 * + 76 * 79
----
-150100

onlyif mysql # aggregate syntax: 
query II rowsort label-8033
SELECT DISTINCT + - 7 AS col1, + COUNT( * ) + + - 24 * - ( - 13 ) AS col0
----
-7
-311

skipif mysql # not compatible
query II rowsort label-8033
SELECT DISTINCT + - 7 AS col1, + COUNT ( * ) + + - 24 * - ( - 13 ) AS col0
----
-7
-311

onlyif mysql # DIV for integer division: 
query I rowsort label-8034
SELECT - + 56 DIV + 69 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8034
SELECT - + 56 / + 69 AS col1
----
0

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

query I rowsort
SELECT - 56 + + + 96
----
40

query I rowsort
SELECT - 69 + + 18
----
-51

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

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

query I rowsort
SELECT 40 + + + 73 + 74 AS col1
----
187

query I rowsort
SELECT DISTINCT ( 50 ) + + 69 col2
----
119

query I rowsort
SELECT 53 * - + 56
----
-2968

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8042
SELECT ALL + CAST( 40 AS SIGNED ) + - COALESCE ( + COUNT( * ), - 34 * COUNT( * ) + ( 3 + - 27 ) ) DIV - 23
----
40

skipif mysql # not compatible
query I rowsort label-8042
SELECT ALL + CAST ( 40 AS INTEGER ) + - COALESCE ( + COUNT ( * ), - 34 * COUNT ( * ) + ( 3 + - 27 ) ) / - 23
----
40

query I rowsort
SELECT 43 * ( + 50 ) AS col1
----
2150

onlyif mysql # aggregate syntax: 
query I rowsort label-8044
SELECT MIN( ALL - 39 ) * 52 AS col0
----
-2028

skipif mysql # not compatible
query I rowsort label-8044
SELECT MIN ( ALL - 39 ) * 52 AS col0
----
-2028

onlyif mysql # aggregate syntax: 
query I rowsort label-8045
SELECT ALL + 25 + 11 + + + CASE + + 2 WHEN + 19 THEN - COUNT( * ) * 3 ELSE NULL END - - 8 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8045
SELECT ALL + 25 + 11 + + + CASE + + 2 WHEN + 19 THEN - COUNT ( * ) * 3 ELSE NULL END - - 8 col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8046
SELECT ALL - 70 + + 23 AS col0, + CAST( NULL AS SIGNED ) + + MAX( - 84 ) + + 94 / 12 AS col2
----
-47
NULL

skipif mysql # not compatible
query II rowsort label-8046
SELECT ALL - 70 + + 23 AS col0, + CAST ( NULL AS INTEGER ) + + MAX ( - 84 ) + + 94 / 12 AS col2
----
-47
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8047
SELECT DISTINCT - 7 + COUNT( * ) AS col1, - SUM( ALL - 47 ) * NULLIF ( - ( 17 ), 11 ) AS col0
----
-6
-799

skipif mysql # not compatible
query II rowsort label-8047
SELECT DISTINCT - 7 + COUNT ( * ) AS col1, - SUM ( ALL - 47 ) * NULLIF ( - ( 17 ), 11 ) AS col0
----
-6
-799

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8048
SELECT 68 - - 58 + + 1 * 54 * ( + CAST( NULL AS SIGNED ) / - NULLIF ( CASE - AVG ( DISTINCT 51 ) WHEN - 52 THEN ( CASE WHEN NOT COUNT( * ) IS NOT NULL THEN 6 + - MIN( 97 ) ELSE NULLIF ( 72, - 20 ) END ) ELSE NULL END, - ( NULLIF ( - 50, + CAST( NULL AS SIGNED ) * - COUNT( * ) + 65 ) ) ) ) + 77
----
NULL

skipif mysql # not compatible
query I rowsort label-8048
SELECT 68 - - 58 + + 1 * 54 * ( + CAST ( NULL AS INTEGER ) / - NULLIF ( CASE - AVG ( DISTINCT 51 ) WHEN - 52 THEN ( CASE WHEN NOT COUNT ( * ) IS NOT NULL THEN 6 + - MIN ( 97 ) ELSE NULLIF ( 72, - 20 ) END ) ELSE NULL END, - ( NULLIF ( - 50, + CAST ( NULL AS INTEGER ) * - COUNT ( * ) + 65 ) ) ) ) + 77
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8049
SELECT ALL - 98 DIV - - COUNT( * ) AS col1
----
-98

skipif mysql # not compatible
query I rowsort label-8049
SELECT ALL - 98 / - - COUNT ( * ) AS col1
----
-98

query II rowsort
SELECT ALL - 25 + + 2 AS col0, 53 AS col2
----
-23
53

query I rowsort
SELECT 55 * 8 AS col0
----
440

onlyif mysql # DIV for integer division: 
query I rowsort label-8052
SELECT 67 * + 3 + 58 + - 61 DIV 81
----
259

skipif mysql # not compatible
query I rowsort label-8052
SELECT 67 * + 3 + 58 + - 61 / 81
----
259

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8053
SELECT 76 * + COALESCE ( ( + 16 ), 67 * - CAST( NULL AS SIGNED ), + 3 ) + - ( + 3 ) AS col1
----
1213

skipif mysql # not compatible
query I rowsort label-8053
SELECT 76 * + COALESCE ( ( + 16 ), 67 * - CAST ( NULL AS INTEGER ), + 3 ) + - ( + 3 ) AS col1
----
1213

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8054
SELECT - 35 DIV 7 * - - COUNT( * ) + 27 * + 65 AS col2
----
1750

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8055
SELECT DISTINCT - + COUNT( * ) - - + 88 * + CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8055
SELECT DISTINCT - + COUNT ( * ) - - + 88 * + CAST ( NULL AS REAL ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8056
SELECT DISTINCT + 48 * 72 DIV - 45 col0
----
-76

skipif mysql # not compatible
query I rowsort label-8056
SELECT DISTINCT + 48 * 72 / - 45 col0
----
-76

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8057
SELECT DISTINCT 12 - 13 - + NULLIF ( - 14, 9 ) + 70 DIV COUNT( * )
----
83

skipif mysql # not compatible
query I rowsort label-8057
SELECT DISTINCT 12 - 13 - + NULLIF ( - 14, 9 ) + 70 / COUNT ( * )
----
83

query I rowsort
SELECT - 81 * 32 + 21 AS col2
----
-2571

onlyif mysql # aggregate syntax: 
query I rowsort label-8059
SELECT - CASE - - COALESCE ( COUNT( * ), 95 + - 70 ) WHEN - SUM( ALL - 77 ) * + 8 + - 23 THEN - 56 + 46 WHEN 91 THEN - 30 + - 53 WHEN + COUNT( * ) THEN + 53 - 1 END AS col0
----
-52

skipif mysql # not compatible
query I rowsort label-8059
SELECT - CASE - - COALESCE ( COUNT ( * ), 95 + - 70 ) WHEN - SUM ( ALL - 77 ) * + 8 + - 23 THEN - 56 + 46 WHEN 91 THEN - 30 + - 53 WHEN + COUNT ( * ) THEN + 53 - 1 END AS col0
----
-52

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8062
SELECT NULLIF ( - 10, - + 42 ) * CAST( + CASE 77 WHEN 70 THEN - CAST( ( - CASE - 39 WHEN + 14 * - 25 + + 30 THEN MIN( + 39 ) + + CAST( + 15 + 45 AS SIGNED ) WHEN 71 + - 48 * 83 THEN + 46 ELSE - 64 END ) AS SIGNED ) * - 10 WHEN + ( COALESCE ( + 16, COUNT( * ) ) ) THEN NULL END AS SIGNED ) * MIN( ALL - CAST( NULL AS SIGNED ) + 25 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8062
SELECT NULLIF ( - 10, - + 42 ) * CAST ( + CASE 77 WHEN 70 THEN - CAST ( ( - CASE - 39 WHEN + 14 * - 25 + + 30 THEN MIN ( + 39 ) + + CAST ( + 15 + 45 AS INTEGER ) WHEN 71 + - 48 * 83 THEN + 46 ELSE - 64 END ) AS INTEGER ) * - 10 WHEN + ( COALESCE ( + 16, COUNT ( * ) ) ) THEN NULL END AS INTEGER ) * MIN ( ALL - CAST ( NULL AS INTEGER ) + 25 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8063
SELECT + 63 DIV - 3 + + + COUNT( * )
----
-20

skipif mysql # not compatible
query I rowsort label-8063
SELECT + 63 / - 3 + + + COUNT ( * )
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-8064
SELECT CASE - - 74 WHEN + 6 THEN - + 56 + - 30 WHEN COUNT( * ) * 6 + 54 THEN - 45 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8064
SELECT CASE - - 74 WHEN + 6 THEN - + 56 + - 30 WHEN COUNT ( * ) * 6 + 54 THEN - 45 END
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8066
SELECT DISTINCT - 72 * + SUM( ALL - - ( - 2 ) ) + + 18 AS col2
----
162

skipif mysql # not compatible
query I rowsort label-8066
SELECT DISTINCT - 72 * + SUM ( ALL - - ( - 2 ) ) + + 18 AS col2
----
162

query I rowsort
SELECT ALL + 13 + 22 * + + 12
----
277

onlyif mysql # DIV for integer division: 
query I rowsort label-8068
SELECT - - 84 * - 61 + ( + 54 ) - - 62 DIV + 27 - - 76 AS col1
----
-4992

skipif mysql # not compatible
query I rowsort label-8068
SELECT - - 84 * - 61 + ( + 54 ) - - 62 / + 27 - - 76 AS col1
----
-4992

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8069
SELECT ALL 11 / + CAST( NULL AS SIGNED ) * + 47
----
NULL

skipif mysql # not compatible
query I rowsort label-8069
SELECT ALL 11 / + CAST ( NULL AS INTEGER ) * + 47
----
NULL

query I rowsort
SELECT 34 - - + 31 col1
----
65

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8072
SELECT ALL NULLIF ( - MIN( + 61 ), + 62 / 89 ) + + 32 AS col1
----
-29

skipif mysql # not compatible
query I rowsort label-8072
SELECT ALL NULLIF ( - MIN ( + 61 ), + 62 / 89 ) + + 32 AS col1
----
-29

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

skipif mysql # not compatible
query I rowsort label-8073
SELECT 53 / + - ( - 53 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8074
SELECT 1 * + COUNT( * ) * 89 + + + MAX( DISTINCT + - 64 ) * 99 AS col2
----
-6247

skipif mysql # not compatible
query I rowsort label-8074
SELECT 1 * + COUNT ( * ) * 89 + + + MAX ( DISTINCT + - 64 ) * 99 AS col2
----
-6247

onlyif mysql # aggregate syntax: 
query I rowsort label-8075
SELECT 59 * + + NULLIF ( + 89, - - NULLIF ( + ( 48 ), + 11 ) * + ( + 37 + - 18 ) + COALESCE ( - 82, 9 ) * + COUNT( * ) )
----
5251

skipif mysql # not compatible
query I rowsort label-8075
SELECT 59 * + + NULLIF ( + 89, - - NULLIF ( + ( 48 ), + 11 ) * + ( + 37 + - 18 ) + COALESCE ( - 82, 9 ) * + COUNT ( * ) )
----
5251

query II rowsort
SELECT ALL 29 AS col1, 75
----
29
75

onlyif mysql # DIV for integer division: 
query I rowsort label-8077
SELECT DISTINCT 33 DIV 85
----
0

skipif mysql # not compatible
query I rowsort label-8077
SELECT DISTINCT 33 / 85
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8078
SELECT 43 + + 90 + - 9, + 31 * + + ( CAST( - 22 AS SIGNED ) ) AS col1
----
124
-682

skipif mysql # not compatible
query II rowsort label-8078
SELECT 43 + + 90 + - 9, + 31 * + + ( CAST ( - 22 AS INTEGER ) ) AS col1
----
124
-682

query I rowsort
SELECT 78 - COALESCE ( + 19, 18 * + - 8 + - 11, - 73 * - 15 )
----
59

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8081
SELECT - SUM( DISTINCT + 82 ) AS col2
----
-82

skipif mysql # not compatible
query I rowsort label-8081
SELECT - SUM ( DISTINCT + 82 ) AS col2
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-8082
SELECT CASE 74 WHEN + 92 + + 73 THEN - - ( + COUNT( * ) ) * 36 - 76 ELSE - 79 - - COUNT( * ) END + 59
----
-19

skipif mysql # not compatible
query I rowsort label-8082
SELECT CASE 74 WHEN + 92 + + 73 THEN - - ( + COUNT ( * ) ) * 36 - 76 ELSE - 79 - - COUNT ( * ) END + 59
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-8083
SELECT DISTINCT - COUNT( * ) * - 35 * - 52
----
-1820

skipif mysql # not compatible
query I rowsort label-8083
SELECT DISTINCT - COUNT ( * ) * - 35 * - 52
----
-1820

onlyif mysql # aggregate syntax: 
query I rowsort label-8084
SELECT 78 + + + 99 * + + 74 - 85 + - COUNT( * ) AS col0
----
7318

skipif mysql # not compatible
query I rowsort label-8084
SELECT 78 + + + 99 * + + 74 - 85 + - COUNT ( * ) AS col0
----
7318

query I rowsort
SELECT 49 * - - 26 AS col1
----
1274

query I rowsort
SELECT 55 + - 1 - - 0
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-8087
SELECT DISTINCT - 21 * + NULLIF ( - + 62, COUNT( * ) + + + 2 / - 26 )
----
1302

skipif mysql # not compatible
query I rowsort label-8087
SELECT DISTINCT - 21 * + NULLIF ( - + 62, COUNT ( * ) + + + 2 / - 26 )
----
1302

query II rowsort
SELECT ALL 61, - 57 + 83 AS col1
----
61
26

query I rowsort
SELECT 91 + 76
----
167

onlyif mysql # aggregate syntax: 
query I rowsort label-8090
SELECT ALL - - 24 * - MAX( ALL 63 ) + - 21 + + + 49 + 34 * 56
----
420

skipif mysql # not compatible
query I rowsort label-8090
SELECT ALL - - 24 * - MAX ( ALL 63 ) + - 21 + + + 49 + 34 * 56
----
420

onlyif mysql # aggregate syntax: 
query I rowsort label-8091
SELECT + ( CASE - - COUNT( ALL - 25 ) WHEN - + 15 THEN NULL WHEN + 18 / + 91 THEN 33 * AVG ( + 74 ) END ) * 89
----
NULL

skipif mysql # not compatible
query I rowsort label-8091
SELECT + ( CASE - - COUNT ( ALL - 25 ) WHEN - + 15 THEN NULL WHEN + 18 / + 91 THEN 33 * AVG ( + 74 ) END ) * 89
----
NULL

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8094
SELECT ALL - COALESCE ( + 64, - ( - COUNT( * ) ), - 44 )
----
-64

skipif mysql # not compatible
query I rowsort label-8094
SELECT ALL - COALESCE ( + 64, - ( - COUNT ( * ) ), - 44 )
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-8095
SELECT CASE 43 WHEN - + 27 THEN ( + CASE - 75 WHEN - COUNT( * ) THEN - 12 * + 37 WHEN ( - 29 ) THEN + ( - 6 ) * - 30 ELSE NULL END ) END / - AVG ( 8 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8095
SELECT CASE 43 WHEN - + 27 THEN ( + CASE - 75 WHEN - COUNT ( * ) THEN - 12 * + 37 WHEN ( - 29 ) THEN + ( - 6 ) * - 30 ELSE NULL END ) END / - AVG ( 8 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8096
SELECT DISTINCT - 29, ( + - COUNT( * ) ) * - 30 AS col1
----
-29
30

skipif mysql # not compatible
query II rowsort label-8096
SELECT DISTINCT - 29, ( + - COUNT ( * ) ) * - 30 AS col1
----
-29
30

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8097
SELECT - NULLIF ( - + 49, 10 + + 1 ) DIV - + COALESCE ( NULLIF ( 26, 63 * + 46 + CAST( NULL AS SIGNED ) * 90 ), - 90 ) - 1 + 88
----
86

skipif mysql # not compatible
query I rowsort label-8097
SELECT - NULLIF ( - + 49, 10 + + 1 ) / - + COALESCE ( NULLIF ( 26, 63 * + 46 + CAST ( NULL AS INTEGER ) * 90 ), - 90 ) - 1 + 88
----
86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8098
SELECT 49 DIV 79 + - 90 * - COUNT( * ) * - + CAST( - COALESCE ( 91, - 13 ) AS SIGNED ) * 50 AS col0
----
409500

skipif mysql # not compatible
query I rowsort label-8098
SELECT 49 / 79 + - 90 * - COUNT ( * ) * - + CAST ( - COALESCE ( 91, - 13 ) AS INTEGER ) * 50 AS col0
----
409500

onlyif mysql # aggregate syntax: 
query I rowsort label-8099
SELECT MAX( - 14 ) * 93 + - - 66 + + 70 AS col0
----
-1166

skipif mysql # not compatible
query I rowsort label-8099
SELECT MAX ( - 14 ) * 93 + - - 66 + + 70 AS col0
----
-1166

onlyif mysql # aggregate syntax: 
query I rowsort label-8100
SELECT + 11 - - COUNT( * ) AS col2
----
12

skipif mysql # not compatible
query I rowsort label-8100
SELECT + 11 - - COUNT ( * ) AS col2
----
12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8101
SELECT DISTINCT - + NULLIF ( + ( + - 7 ), 1 * - - ( COALESCE ( 23, 3 ) ) + 41 ) DIV - COUNT( * )
----
-7

skipif mysql # not compatible
query I rowsort label-8101
SELECT DISTINCT - + NULLIF ( + ( + - 7 ), 1 * - - ( COALESCE ( 23, 3 ) ) + 41 ) / - COUNT ( * )
----
-7

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8103
SELECT - - 59 * 66 / - CASE 71 WHEN + + SUM( - 41 ) * COUNT( + 5 * 23 + ( + NULLIF ( - 27, - ( 3 ) ) ) ) + - CASE 35 WHEN - 7 - + 67 THEN + COUNT( * ) ELSE + 64 * + 49 + + 5 END * 27 THEN 51 - ( - MIN( DISTINCT 63 ) ) WHEN MAX( + ( 46 ) ) THEN + ( 7 ) * 96 END + - 14 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8103
SELECT - - 59 * 66 / - CASE 71 WHEN + + SUM ( - 41 ) * COUNT ( + 5 * 23 + ( + NULLIF ( - 27, - ( 3 ) ) ) ) + - CASE 35 WHEN - 7 - + 67 THEN + COUNT ( * ) ELSE + 64 * + 49 + + 5 END * 27 THEN 51 - ( - MIN ( DISTINCT 63 ) ) WHEN MAX ( + ( 46 ) ) THEN + ( 7 ) * 96 END + - 14 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8104
SELECT ALL - COUNT( * ) * + CAST( - MIN( ALL 45 ) AS SIGNED )
----
45

skipif mysql # not compatible
query I rowsort label-8104
SELECT ALL - COUNT ( * ) * + CAST ( - MIN ( ALL 45 ) AS INTEGER )
----
45

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8106
SELECT 23 * COUNT( * ) + + + 64 + 23 - + - COUNT( * ) + 97
----
208

skipif mysql # not compatible
query I rowsort label-8106
SELECT 23 * COUNT ( * ) + + + 64 + 23 - + - COUNT ( * ) + 97
----
208

query I rowsort
SELECT - 91 + + 41 col1
----
-50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8108
SELECT DISTINCT + - 70 * + + 65 + - - ( + CASE - + COUNT( * ) WHEN + 94 THEN CASE + COUNT( * ) WHEN - NULLIF ( 34, 43 ) THEN NULL WHEN - NULLIF ( - COALESCE ( + CAST( ( 91 ) AS SIGNED ), 65 ), 67 ) + - CASE CASE 49 WHEN 31 + 81 THEN NULL WHEN + 71 * + SUM( 18 * + 41 ) + CASE - CAST( NULL AS SIGNED ) WHEN + CAST( NULL AS SIGNED ) - - COUNT( * ) THEN - 83 ELSE COUNT( * ) END THEN NULL WHEN COUNT( * ) THEN - 64 END + COALESCE ( 72, 25 + 73 ) WHEN + 89 * ( + 34 ) THEN + MAX( 64 ) * + 52 + + 72 * 94 WHEN + 60 * 45 THEN NULL ELSE 54 END THEN + 89 * 72 + - 89 WHEN ( 34 ) THEN 33 END * 37 WHEN 17 - + 24 THEN COUNT( * ) END )
----
NULL

skipif mysql # not compatible
query I rowsort label-8108
SELECT DISTINCT + - 70 * + + 65 + - - ( + CASE - + COUNT ( * ) WHEN + 94 THEN CASE + COUNT ( * ) WHEN - NULLIF ( 34, 43 ) THEN NULL WHEN - NULLIF ( - COALESCE ( + CAST ( ( 91 ) AS INTEGER ), 65 ), 67 ) + - CASE CASE 49 WHEN 31 + 81 THEN NULL WHEN + 71 * + SUM ( 18 * + 41 ) + CASE - CAST ( NULL AS INTEGER ) WHEN + CAST ( NULL AS INTEGER ) - - COUNT ( * ) THEN - 83 ELSE COUNT ( * ) END THEN NULL WHEN COUNT ( * ) THEN - 64 END + COALESCE ( 72, 25 + 73 ) WHEN + 89 * ( + 34 ) THEN + MAX ( 64 ) * + 52 + + 72 * 94 WHEN + 60 * 45 THEN NULL ELSE 54 END THEN + 89 * 72 + - 89 WHEN ( 34 ) THEN 33 END * 37 WHEN 17 - + 24 THEN COUNT ( * ) END )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8109
SELECT ALL COUNT( * ) * CAST( NULL AS SIGNED ) * - + 77 + + + 14 + - 80
----
NULL

skipif mysql # not compatible
query I rowsort label-8109
SELECT ALL COUNT ( * ) * CAST ( NULL AS INTEGER ) * - + 77 + + + 14 + - 80
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8110
SELECT ALL - 31 * + + ( - ( + COUNT( * ) ) ) + - CASE 60 WHEN - ( - 38 ) THEN NULL WHEN - 18 THEN + ( - CASE 4 WHEN 99 / 44 THEN - 76 WHEN - 69 THEN NULL WHEN - COUNT( * ) THEN NULL ELSE 92 * 29 END ) * + 99 WHEN 97 * - 64 + - ( - 75 + + CAST( NULL AS SIGNED ) ) THEN NULL ELSE MAX( DISTINCT - 33 ) * NULLIF ( + 4, + 88 * NULLIF ( COUNT( * ), - 98 ) ) END AS col1
----
163

skipif mysql # not compatible
query I rowsort label-8110
SELECT ALL - 31 * + + ( - ( + COUNT ( * ) ) ) + - CASE 60 WHEN - ( - 38 ) THEN NULL WHEN - 18 THEN + ( - CASE 4 WHEN 99 / 44 THEN - 76 WHEN - 69 THEN NULL WHEN - COUNT ( * ) THEN NULL ELSE 92 * 29 END ) * + 99 WHEN 97 * - 64 + - ( - 75 + + CAST ( NULL AS INTEGER ) ) THEN NULL ELSE MAX ( DISTINCT - 33 ) * NULLIF ( + 4, + 88 * NULLIF ( COUNT ( * ), - 98 ) ) END AS col1
----
163

query I rowsort
SELECT - 63 * ( 56 )
----
-3528

query I rowsort
SELECT + 69 + - + 21 * - NULLIF ( 35, - 83 )
----
804

onlyif mysql # aggregate syntax: 
query II rowsort label-8113
SELECT COUNT( * ) AS col1, 85 + + 49 AS col1
----
1
134

skipif mysql # not compatible
query II rowsort label-8113
SELECT COUNT ( * ) AS col1, 85 + + 49 AS col1
----
1
134

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8114
SELECT + 68 * COUNT( * ) * CAST( NULL AS SIGNED ) + - + 2 + - 39 - - - CAST( + 28 AS DECIMAL ) * 25
----
NULL

skipif mysql # not compatible
query I rowsort label-8114
SELECT + 68 * COUNT ( * ) * CAST ( NULL AS INTEGER ) + - + 2 + - 39 - - - CAST ( + 28 AS REAL ) * 25
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8115
SELECT ALL 51 + - MAX( DISTINCT CASE + 3 WHEN - - 49 THEN + - 10 WHEN - 78 THEN + 47 ELSE NULL END ) * - 48 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8115
SELECT ALL 51 + - MAX ( DISTINCT CASE + 3 WHEN - - 49 THEN + - 10 WHEN - 78 THEN + 47 ELSE NULL END ) * - 48 AS col0
----
NULL

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

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

query I rowsort
SELECT ALL 44 * - + CASE + 78 WHEN - 80 THEN NULL ELSE + - 83 END
----
3652

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8118
SELECT DISTINCT - 25 - 35 + + CAST( + 98 AS SIGNED )
----
38

skipif mysql # not compatible
query I rowsort label-8118
SELECT DISTINCT - 25 - 35 + + CAST ( + 98 AS INTEGER )
----
38

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8119
SELECT 70 AS col2, + 92 * COUNT( + 67 ) DIV 29 + + - 19 - - 39 + 51
----
70
74

skipif mysql # not compatible
query II rowsort label-8119
SELECT 70 AS col2, + 92 * COUNT ( + 67 ) / 29 + + - 19 - - 39 + 51
----
70
74

query I rowsort
SELECT ALL 91 - + - 21 AS col0
----
112

query I rowsort
SELECT - 97 * - + 48
----
4656

onlyif mysql # aggregate syntax: 
query I rowsort label-8122
SELECT + COUNT( * ) * 78 * + 14 AS col0
----
1092

skipif mysql # not compatible
query I rowsort label-8122
SELECT + COUNT ( * ) * 78 * + 14 AS col0
----
1092

query I rowsort
SELECT + 73 - + 58 AS col2
----
15

query II rowsort
SELECT 86, - 63 AS col0
----
86
-63

query II rowsort
SELECT ALL 4, 94 AS col1
----
4
94

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8127
SELECT + COUNT( * ) - - 11
----
12

skipif mysql # not compatible
query I rowsort label-8127
SELECT + COUNT ( * ) - - 11
----
12

onlyif mysql # DIV for integer division: 
query I rowsort label-8128
SELECT - 72 + - 23 DIV + + 72
----
-72

skipif mysql # not compatible
query I rowsort label-8128
SELECT - 72 + - 23 / + + 72
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-8129
SELECT DISTINCT 78 / - + CASE + 25 WHEN ( - 43 ) THEN 76 + - COUNT( * ) / - 51 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8129
SELECT DISTINCT 78 / - + CASE + 25 WHEN ( - 43 ) THEN 76 + - COUNT ( * ) / - 51 END AS col2
----
NULL

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

skipif mysql # not compatible
query I rowsort label-8130
SELECT + + COUNT ( ALL 38 ) * + + 78 AS col0
----
78

query II rowsort
SELECT + - 84 - 83, + 67 AS col2
----
-167
67

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

skipif mysql # not compatible
query I rowsort label-8132
SELECT - SUM ( DISTINCT 55 )
----
-55

query I rowsort
SELECT + 72 * + - 16 - + + 46 + + 37 AS col0
----
-1161

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

skipif mysql # not compatible
query I rowsort label-8134
SELECT DISTINCT - 82 * + - 11 + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8135
SELECT DISTINCT + CASE - - CAST( + CAST( - - 23 AS SIGNED ) AS SIGNED ) WHEN + COUNT( * ) THEN 48 END * CASE - 49 - CASE - 87 WHEN 27 THEN - 6 END WHEN MIN( + 86 ) - - COUNT( * ) THEN NULL WHEN 44 + CAST( NULL AS DECIMAL ) THEN NULL ELSE - ( - NULLIF ( + 36, - 79 + 54 / - 64 ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-8135
SELECT DISTINCT + CASE - - CAST ( + CAST ( - - 23 AS INTEGER ) AS INTEGER ) WHEN + COUNT ( * ) THEN 48 END * CASE - 49 - CASE - 87 WHEN 27 THEN - 6 END WHEN MIN ( + 86 ) - - COUNT ( * ) THEN NULL WHEN 44 + CAST ( NULL AS REAL ) THEN NULL ELSE - ( - NULLIF ( + 36, - 79 + 54 / - 64 ) ) END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8136
SELECT 49 * 1 + - MAX( DISTINCT - COALESCE ( - 32, - 48 ) ) - - 99 * - 6 * 91 + COUNT( * ) DIV 6
----
-54037

skipif mysql # not compatible
query I rowsort label-8136
SELECT 49 * 1 + - MAX ( DISTINCT - COALESCE ( - 32, - 48 ) ) - - 99 * - 6 * 91 + COUNT ( * ) / 6
----
-54037

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8137
SELECT ALL - COUNT( * ) * - SUM( DISTINCT CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8137
SELECT ALL - COUNT ( * ) * - SUM ( DISTINCT CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8138
SELECT + - COUNT( * ) * + 42 + + 54 + + 62 AS col1, + 32 * + - 18 + - COUNT( * )
----
74
-577

skipif mysql # not compatible
query II rowsort label-8138
SELECT + - COUNT ( * ) * + 42 + + 54 + + 62 AS col1, + 32 * + - 18 + - COUNT ( * )
----
74
-577

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8139
SELECT + + CAST( NULL AS SIGNED ), - MIN( ALL - 33 ) AS col1
----
NULL
33

skipif mysql # not compatible
query II rowsort label-8139
SELECT + + CAST ( NULL AS INTEGER ), - MIN ( ALL - 33 ) AS col1
----
NULL
33

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8140
SELECT ALL + - COUNT( * ) DIV - 88 + + 54 * 29 * - 59
----
-92394

skipif mysql # not compatible
query I rowsort label-8140
SELECT ALL + - COUNT ( * ) / - 88 + + 54 * 29 * - 59
----
-92394

onlyif mysql # DIV for integer division: 
query I rowsort label-8141
SELECT ALL - 90 DIV - 49 - - - 96 + - 81 AS col2
----
-176

skipif mysql # not compatible
query I rowsort label-8141
SELECT ALL - 90 / - 49 - - - 96 + - 81 AS col2
----
-176

onlyif mysql # aggregate syntax: 
query I rowsort label-8142
SELECT - 75 * + MAX( ALL 0 ) * - COUNT( * ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8142
SELECT - 75 * + MAX ( ALL 0 ) * - COUNT ( * ) AS col0
----
0

query I rowsort
SELECT DISTINCT + NULLIF ( 0, - 75 )
----
0

query I rowsort
SELECT ALL + + 29 / CASE + 2 WHEN - - 62 THEN - 33 + + + 70 + 9 END / 66 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8145
SELECT - 2 DIV - 42 * - 44 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8145
SELECT - 2 / - 42 * - 44 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8146
SELECT - - 47 * - COUNT( * ) DIV + - COALESCE ( 95, - CAST( - 5 AS SIGNED ) ) - - 48
----
48

skipif mysql # not compatible
query I rowsort label-8146
SELECT - - 47 * - COUNT ( * ) / + - COALESCE ( 95, - CAST ( - 5 AS INTEGER ) ) - - 48
----
48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8147
SELECT - - 0 * + - CAST( + + 63 AS SIGNED ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8147
SELECT - - 0 * + - CAST ( + + 63 AS INTEGER ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8148
SELECT DISTINCT + ( CASE + CASE 36 WHEN 15 * + + COUNT( * ) + COUNT( * ) THEN NULL WHEN + 49 * 90 + + 26 THEN - 36 * - MIN( ALL - 91 ) + - 32 END WHEN + COUNT( * ) THEN NULL WHEN + 58 THEN - 45 + 29 * 63 END ) / - 75 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8148
SELECT DISTINCT + ( CASE + CASE 36 WHEN 15 * + + COUNT ( * ) + COUNT ( * ) THEN NULL WHEN + 49 * 90 + + 26 THEN - 36 * - MIN ( ALL - 91 ) + - 32 END WHEN + COUNT ( * ) THEN NULL WHEN + 58 THEN - 45 + 29 * 63 END ) / - 75 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8149
SELECT ( + COUNT( ( - 15 ) ) )
----
1

skipif mysql # not compatible
query I rowsort label-8149
SELECT ( + COUNT ( ( - 15 ) ) )
----
1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8150
SELECT ALL + COALESCE ( - - 9, 9 * + 53 ) DIV 99 + + + CAST( - 69 AS SIGNED ) AS col0
----
-69

skipif mysql # not compatible
query I rowsort label-8150
SELECT ALL + COALESCE ( - - 9, 9 * + 53 ) / 99 + + + CAST ( - 69 AS INTEGER ) AS col0
----
-69

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8152
SELECT 11 * - 18 * - 1 + 50 * CAST( NULL AS SIGNED ) * + COALESCE ( + + 79, + 28 / + 68, - 42 - - 99 * 20 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8152
SELECT 11 * - 18 * - 1 + 50 * CAST ( NULL AS INTEGER ) * + COALESCE ( + + 79, + 28 / + 68, - 42 - - 99 * 20 ) AS col0
----
NULL

query I rowsort
SELECT - 45 * + 49 * + 7
----
-15435

onlyif mysql # aggregate syntax: 
query I rowsort label-8154
SELECT ALL 8 * - + NULLIF ( MIN( DISTINCT - 44 ), COUNT( * ) * - COUNT( DISTINCT - + 3 ) ) + 53 AS col0
----
405

skipif mysql # not compatible
query I rowsort label-8154
SELECT ALL 8 * - + NULLIF ( MIN ( DISTINCT - 44 ), COUNT ( * ) * - COUNT ( DISTINCT - + 3 ) ) + 53 AS col0
----
405

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

query II rowsort
SELECT DISTINCT + ( + 19 ) AS col1, 42 col2
----
19
42

query I rowsort
SELECT NULLIF ( - NULLIF ( + 45, - 52 ), + - 34 * COALESCE ( - + 68, 49 ) )
----
-45

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8159
SELECT - MIN( DISTINCT - 85 ) * + ( MAX( - 13 ) ) * 85 * - - 62 + + 32
----
-5823318

skipif mysql # not compatible
query I rowsort label-8159
SELECT - MIN ( DISTINCT - 85 ) * + ( MAX ( - 13 ) ) * 85 * - - 62 + + 32
----
-5823318

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8160
SELECT ALL CAST( - 68 AS SIGNED ) AS col1
----
-68

skipif mysql # not compatible
query I rowsort label-8160
SELECT ALL CAST ( - 68 AS INTEGER ) AS col1
----
-68

query I rowsort
SELECT - 73 + + 24 * 44
----
983

onlyif mysql # aggregate syntax: 
query I rowsort label-8162
SELECT + CASE + 0 WHEN + + AVG ( ALL + 23 ) / - 86 * + NULLIF ( + COUNT( * ), + 33 + 83 ) / - CASE + SUM( 39 ) WHEN + 93 + - 94 THEN CASE 82 WHEN + 62 THEN + COUNT( * ) ELSE 45 * ( - 15 ) END END THEN NULL WHEN ( - 49 ) * 1 + COUNT( * ) THEN MAX( 18 ) WHEN - 95 + - 12 * - 68 THEN COUNT( * ) * - 67 ELSE NULL END * + ( + 66 - COALESCE ( + 61, ( 81 ) ) ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8162
SELECT + CASE + 0 WHEN + + AVG ( ALL + 23 ) / - 86 * + NULLIF ( + COUNT ( * ), + 33 + 83 ) / - CASE + SUM ( 39 ) WHEN + 93 + - 94 THEN CASE 82 WHEN + 62 THEN + COUNT ( * ) ELSE 45 * ( - 15 ) END END THEN NULL WHEN ( - 49 ) * 1 + COUNT ( * ) THEN MAX ( 18 ) WHEN - 95 + - 12 * - 68 THEN COUNT ( * ) * - 67 ELSE NULL END * + ( + 66 - COALESCE ( + 61, ( 81 ) ) ) col2
----
NULL

query II rowsort
SELECT - 49 + + 83 - + + 58, 62 AS col1
----
-24
62

query I rowsort
SELECT 76 * + - 8 * 97 - + - 44 AS col2
----
-58932

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-8167
SELECT ALL + + 65 * - COUNT( * ) + + + NULLIF ( - 24, - 83 ) AS col1, 3
----
-89
3

skipif mysql # not compatible
query II rowsort label-8167
SELECT ALL + + 65 * - COUNT ( * ) + + + NULLIF ( - 24, - 83 ) AS col1, 3
----
-89
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8168
SELECT + + NULLIF ( - 48, - 56 ) * - CAST( + 61 AS SIGNED )
----
2928

skipif mysql # not compatible
query I rowsort label-8168
SELECT + + NULLIF ( - 48, - 56 ) * - CAST ( + 61 AS INTEGER )
----
2928

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8169
SELECT DISTINCT 35 * 89 * + - 85 / - CASE + - 56 WHEN 48 THEN - CAST( NULL AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-8169
SELECT DISTINCT 35 * 89 * + - 85 / - CASE + - 56 WHEN 48 THEN - CAST ( NULL AS INTEGER ) END
----
NULL

query I rowsort
SELECT - - 36 + - - 24
----
60

query II rowsort
SELECT - + ( 21 ) col1, 31 + - - 35 * + 81 col2
----
-21
2866

query I rowsort
SELECT + 93 * - 76 + + 6
----
-7062

query II rowsort
SELECT DISTINCT 62 + + 61 AS col0, - 5 + - 92 AS col2
----
123
-97

query I rowsort
SELECT 10 * 61 + 83 * 97 * 96 + + + 5
----
773511

query I rowsort
SELECT 53 * ( 59 ) + + 28 AS col2
----
3155

query I rowsort
SELECT ALL 80 + - - 33 AS col1
----
113

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8178
SELECT - 69 DIV - ( + 41 ) + + COUNT( * ) + - + 14 - 13 DIV + - 30 AS col1
----
-12

skipif mysql # not compatible
query I rowsort label-8178
SELECT - 69 / - ( + 41 ) + + COUNT ( * ) + - + 14 - 13 / + - 30 AS col1
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-8179
SELECT ALL + COUNT( * ) + - - 3 * 57 * + 26
----
4447

skipif mysql # not compatible
query I rowsort label-8179
SELECT ALL + COUNT ( * ) + - - 3 * 57 * + 26
----
4447

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8180
SELECT 79 + + - CASE - 1 WHEN + 4 * + - 43 * + + CASE 31 WHEN - 70 + 99 / - 50 THEN - CASE 43 WHEN 42 * 19 THEN NULL WHEN + 63 THEN 56 END / + 58 WHEN 55 THEN + ( CAST( - 78 AS SIGNED ) ) + ( + 25 - 20 * + 14 ) END + + COUNT( * ) THEN NULL ELSE - 84 * + 97 END * - 34
----
-276953

skipif mysql # not compatible
query I rowsort label-8180
SELECT 79 + + - CASE - 1 WHEN + 4 * + - 43 * + + CASE 31 WHEN - 70 + 99 / - 50 THEN - CASE 43 WHEN 42 * 19 THEN NULL WHEN + 63 THEN 56 END / + 58 WHEN 55 THEN + ( CAST ( - 78 AS INTEGER ) ) + ( + 25 - 20 * + 14 ) END + + COUNT ( * ) THEN NULL ELSE - 84 * + 97 END * - 34
----
-276953

onlyif mysql # aggregate syntax: 
query I rowsort label-8181
SELECT + - CASE - CASE 73 WHEN + 1 THEN - 1 / - MIN( - - ( 53 ) ) END WHEN 95 * + 47 THEN 95 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8181
SELECT + - CASE - CASE 73 WHEN + 1 THEN - 1 / - MIN ( - - ( 53 ) ) END WHEN 95 * + 47 THEN 95 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8182
SELECT ALL + CASE + - NULLIF ( + 83, - + COUNT( * ) ) WHEN - 78 THEN NULL WHEN + - 21 + 88 THEN NULL WHEN 62 / 19 + - 31 THEN - 48 END * + 19 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8182
SELECT ALL + CASE + - NULLIF ( + 83, - + COUNT ( * ) ) WHEN - 78 THEN NULL WHEN + - 21 + 88 THEN NULL WHEN 62 / 19 + - 31 THEN - 48 END * + 19 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8183
SELECT - 9 + + + 46 + + ( + 75 ) + - CASE + COUNT( * ) WHEN - 4 THEN NULL ELSE 21 DIV + 94 - 21 * 38 END * 54
----
43204

skipif mysql # not compatible
query I rowsort label-8183
SELECT - 9 + + + 46 + + ( + 75 ) + - CASE + COUNT ( * ) WHEN - 4 THEN NULL ELSE 21 / + 94 - 21 * 38 END * 54
----
43204

query I rowsort
SELECT DISTINCT 16 + - - 37
----
53

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8185
SELECT ( 53 ) + + - COUNT( * ) + 71 DIV - 52 * - COUNT( * )
----
53

skipif mysql # not compatible
query I rowsort label-8185
SELECT ( 53 ) + + - COUNT ( * ) + 71 / - 52 * - COUNT ( * )
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-8186
SELECT DISTINCT ( + 91 ) * - MAX( 8 )
----
-728

skipif mysql # not compatible
query I rowsort label-8186
SELECT DISTINCT ( + 91 ) * - MAX ( 8 )
----
-728

query I rowsort
SELECT ALL - NULLIF ( - + NULLIF ( + 73, - 97 ), + + 94 + - 58 + + 79 / - + 22 )
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-8188
SELECT + 59 * - 58 + - - COUNT( * ) AS col2
----
-3421

skipif mysql # not compatible
query I rowsort label-8188
SELECT + 59 * - 58 + - - COUNT ( * ) AS col2
----
-3421

query I rowsort
SELECT ALL 15 - + 58 AS col2
----
-43

query II rowsort
SELECT DISTINCT - 7 AS col2, 12 AS col0
----
-7
12

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8191
SELECT 12, 10 + + CAST( NULL AS SIGNED ) * + 36 AS col2
----
12
NULL

skipif mysql # not compatible
query II rowsort label-8191
SELECT 12, 10 + + CAST ( NULL AS INTEGER ) * + 36 AS col2
----
12
NULL

query I rowsort
SELECT 87 * - - 30 AS col0
----
2610

onlyif mysql # DIV for integer division: 
query I rowsort label-8193
SELECT ALL + 80 DIV + 84 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8193
SELECT ALL + 80 / + 84 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8194
SELECT DISTINCT + 62 * - CASE + - 41 WHEN + COUNT( * ) * + 78 + 33 + - + 17 + + 82 THEN NULL ELSE 11 END * - MAX( ALL 4 * + 51 )
----
139128

skipif mysql # not compatible
query I rowsort label-8194
SELECT DISTINCT + 62 * - CASE + - 41 WHEN + COUNT ( * ) * + 78 + 33 + - + 17 + + 82 THEN NULL ELSE 11 END * - MAX ( ALL 4 * + 51 )
----
139128

query I rowsort
SELECT ALL + 72 * + 20
----
1440

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-8197
SELECT - 10, + SUM( DISTINCT + + 27 ) AS col1
----
-10
27

skipif mysql # not compatible
query II rowsort label-8197
SELECT - 10, + SUM ( DISTINCT + + 27 ) AS col1
----
-10
27

onlyif mysql # aggregate syntax: 
query II rowsort label-8198
SELECT MIN( ALL 50 ) * + + 17 AS col0, 66 col0
----
850
66

skipif mysql # not compatible
query II rowsort label-8198
SELECT MIN ( ALL 50 ) * + + 17 AS col0, 66 col0
----
850
66

onlyif mysql # aggregate syntax: 
query I rowsort label-8199
SELECT ( 89 ) - + COUNT( 24 ) AS col0
----
88

skipif mysql # not compatible
query I rowsort label-8199
SELECT ( 89 ) - + COUNT ( 24 ) AS col0
----
88

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-8201
SELECT + 98 - SUM( 89 ), + 96 * 93 AS col2
----
9
8928

skipif mysql # not compatible
query II rowsort label-8201
SELECT + 98 - SUM ( 89 ), + 96 * 93 AS col2
----
9
8928

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8203
SELECT + 90 + - + 58 - ( - MAX( 94 ) ) + + 34 * 78
----
2778

skipif mysql # not compatible
query I rowsort label-8203
SELECT + 90 + - + 58 - ( - MAX ( 94 ) ) + + 34 * 78
----
2778

query I rowsort
SELECT DISTINCT ( - 66 ) * 28 + + 81
----
-1767

onlyif mysql # DIV for integer division: 
query I rowsort label-8205
SELECT + 57 DIV - - 1 + - COALESCE ( - ( + 72 ), + - 25 ) AS col2
----
129

skipif mysql # not compatible
query I rowsort label-8205
SELECT + 57 / - - 1 + - COALESCE ( - ( + 72 ), + - 25 ) AS col2
----
129

onlyif mysql # aggregate syntax: 
query I rowsort label-8206
SELECT COUNT( * ) - - 37 * + 89 * + - 47 + 60 AS col2
----
-154710

skipif mysql # not compatible
query I rowsort label-8206
SELECT COUNT ( * ) - - 37 * + 89 * + - 47 + 60 AS col2
----
-154710

query I rowsort
SELECT DISTINCT + + 96 * + 69
----
6624

onlyif mysql # DIV for integer division: 
query I rowsort label-8208
SELECT + 14 * NULLIF ( + 61, + - 63 + 75 - + 39 ) DIV 52 AS col0
----
16

skipif mysql # not compatible
query I rowsort label-8208
SELECT + 14 * NULLIF ( + 61, + - 63 + 75 - + 39 ) / 52 AS col0
----
16

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8209
SELECT - - 94 AS col1, + CAST( + - 92 AS SIGNED ) * 95
----
94
-8740

skipif mysql # not compatible
query II rowsort label-8209
SELECT - - 94 AS col1, + CAST ( + - 92 AS INTEGER ) * 95
----
94
-8740

query II rowsort
SELECT ALL 54 * - 80 + - 8 AS col0, 90 AS col2
----
-4328
90

query I rowsort
SELECT ( NULLIF ( - 69, 42 + - 15 ) )
----
-69

query I rowsort
SELECT ALL - 3 - - 48
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-8213
SELECT 73 * - ( - NULLIF ( 92, + NULLIF ( ( 94 ), 34 ) / MIN( + 55 - 90 ) + 58 / - 19 ) ) * 77
----
517132

skipif mysql # not compatible
query I rowsort label-8213
SELECT 73 * - ( - NULLIF ( 92, + NULLIF ( ( 94 ), 34 ) / MIN ( + 55 - 90 ) + 58 / - 19 ) ) * 77
----
517132

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-8215
SELECT 49 DIV - 33 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-8215
SELECT 49 / - 33 AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8216
SELECT ALL ( - 35 ) - + SUM( - 99 ) col1
----
64

skipif mysql # not compatible
query I rowsort label-8216
SELECT ALL ( - 35 ) - + SUM ( - 99 ) col1
----
64

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8218
SELECT - CAST( NULL AS SIGNED ) * 73 + - 63 + 91 / + 54 + - 91 * COALESCE ( 8, 92, - 76 ) * + 65 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8218
SELECT - CAST ( NULL AS INTEGER ) * 73 + - 63 + 91 / + 54 + - 91 * COALESCE ( 8, 92, - 76 ) * + 65 col2
----
NULL

query I rowsort
SELECT ( - 34 ) * + 28 col2
----
-952

onlyif mysql # aggregate syntax: 
query II rowsort label-8220
SELECT 58 + - 5 AS col2, + COUNT( * )
----
53
1

skipif mysql # not compatible
query II rowsort label-8220
SELECT 58 + - 5 AS col2, + COUNT ( * )
----
53
1

query I rowsort
SELECT ( + + 72 ) * - 66
----
-4752

onlyif mysql # aggregate syntax: 
query I rowsort label-8222
SELECT ALL + 49 + + + 84 + - + 47 * - 13 * + 29 * + NULLIF ( - ( + + 62 ), - COUNT( * ) ) + - COALESCE ( 21 + 42, + 49 - ( 90 ) )
----
-1098508

skipif mysql # not compatible
query I rowsort label-8222
SELECT ALL + 49 + + + 84 + - + 47 * - 13 * + 29 * + NULLIF ( - ( + + 62 ), - COUNT ( * ) ) + - COALESCE ( 21 + 42, + 49 - ( 90 ) )
----
-1098508

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8223
SELECT ( - 3 ) * + 69 * + CAST( NULL AS SIGNED ) + + SUM( - 60 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8223
SELECT ( - 3 ) * + 69 * + CAST ( NULL AS INTEGER ) + + SUM ( - 60 ) AS col1
----
NULL

query II rowsort
SELECT ( - + 9 ), - 51 AS col0
----
-9
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-8225
SELECT COUNT( * ) - - 31 + ( + 43 ) + + 29 * - - COUNT( + 84 )
----
104

skipif mysql # not compatible
query I rowsort label-8225
SELECT COUNT ( * ) - - 31 + ( + 43 ) + + 29 * - - COUNT ( + 84 )
----
104

query I rowsort
SELECT + 96 + + + ( 94 )
----
190

query I rowsort
SELECT - 66 - + 34 + + - 6
----
-106

query I rowsort
SELECT ALL - 50 * + - 59 AS col2
----
2950

onlyif mysql # aggregate syntax: 
query I rowsort label-8229
SELECT MIN( 52 ) AS col0
----
52

skipif mysql # not compatible
query I rowsort label-8229
SELECT MIN ( 52 ) AS col0
----
52

onlyif mysql # DIV for integer division: 
query I rowsort label-8230
SELECT ALL 79 + + 21 + + + NULLIF ( + + 25, - 19 + + 62 ) + + 59 DIV + + ( - 88 ) * 8
----
125

skipif mysql # not compatible
query I rowsort label-8230
SELECT ALL 79 + + 21 + + + NULLIF ( + + 25, - 19 + + 62 ) + + 59 / + + ( - 88 ) * 8
----
125

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

query I rowsort
SELECT DISTINCT + - 35 + + - 1 col0
----
-36

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

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

query I rowsort
SELECT ALL + + 93 * 99 - 59
----
9148

query I rowsort
SELECT - 12 * - 71
----
852

query I rowsort
SELECT - 82 * - 90
----
7380

query II rowsort
SELECT - + 43 + + 69, 39 AS col0
----
26
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8238
SELECT - - COALESCE ( 35, + 42, + CAST( + MIN( - + 35 ) AS SIGNED ) ) AS col1
----
35

skipif mysql # not compatible
query I rowsort label-8238
SELECT - - COALESCE ( 35, + 42, + CAST ( + MIN ( - + 35 ) AS INTEGER ) ) AS col1
----
35

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8239
SELECT + CASE + + 68 WHEN - COUNT( * ) THEN 2 END + 94 + - 55 + + CASE 69 WHEN - 81 THEN NULL WHEN - 2 - CAST( NULL AS DECIMAL ) THEN 80 + - 94 END + - CASE 51 WHEN 4 THEN NULL WHEN - 1 THEN - 7 END * - 78 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8239
SELECT + CASE + + 68 WHEN - COUNT ( * ) THEN 2 END + 94 + - 55 + + CASE 69 WHEN - 81 THEN NULL WHEN - 2 - CAST ( NULL AS REAL ) THEN 80 + - 94 END + - CASE 51 WHEN 4 THEN NULL WHEN - 1 THEN - 7 END * - 78 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8240
SELECT - COUNT( * ) + + 50 + - COUNT( * ) + + + 67 * - - 39 * - 27 + + + 84
----
-70419

skipif mysql # not compatible
query I rowsort label-8240
SELECT - COUNT ( * ) + + 50 + - COUNT ( * ) + + + 67 * - - 39 * - 27 + + + 84
----
-70419

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8241
SELECT - + CASE + CASE - 86 WHEN - + 42 + 52 THEN + 85 * - CAST( 71 AS SIGNED ) + - + ( COUNT( * ) ) WHEN 37 THEN NULL ELSE 88 / 89 END WHEN - 10 THEN NULLIF ( - 24, - 65 + - COUNT( * ) ) WHEN + 25 + + 32 THEN NULL END * MIN( + CAST( NULL AS SIGNED ) + - 66 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8241
SELECT - + CASE + CASE - 86 WHEN - + 42 + 52 THEN + 85 * - CAST ( 71 AS INTEGER ) + - + ( COUNT ( * ) ) WHEN 37 THEN NULL ELSE 88 / 89 END WHEN - 10 THEN NULLIF ( - 24, - 65 + - COUNT ( * ) ) WHEN + 25 + + 32 THEN NULL END * MIN ( + CAST ( NULL AS INTEGER ) + - 66 )
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8243
SELECT ALL - COUNT( * ) - - 27 col2
----
26

skipif mysql # not compatible
query I rowsort label-8243
SELECT ALL - COUNT ( * ) - - 27 col2
----
26

query I rowsort
SELECT ALL 80 * - 16
----
-1280

onlyif mysql # aggregate syntax: 
query I rowsort label-8245
SELECT + 86 + + COUNT( * )
----
87

skipif mysql # not compatible
query I rowsort label-8245
SELECT + 86 + + COUNT ( * )
----
87

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8246
SELECT ( MAX( DISTINCT + 68 ) ), 55 DIV + - 23 AS col0
----
68
-2

skipif mysql # not compatible
query II rowsort label-8246
SELECT ( MAX ( DISTINCT + 68 ) ), 55 / + - 23 AS col0
----
68
-2

query I rowsort
SELECT ALL + 7 * + 55 AS col2
----
385

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8248
SELECT - 50 * 80 * CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8248
SELECT - 50 * 80 * CAST ( NULL AS REAL ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8249
SELECT 80 * - - 23 + - CASE - - 41 WHEN + + 87 THEN - 50 * + 46 ELSE + CAST( - 27 AS SIGNED ) END * 2 col0
----
1894

skipif mysql # not compatible
query I rowsort label-8249
SELECT 80 * - - 23 + - CASE - - 41 WHEN + + 87 THEN - 50 * + 46 ELSE + CAST ( - 27 AS INTEGER ) END * 2 col0
----
1894

query I rowsort
SELECT ALL 76 * + + 13 * 58 * ( - NULLIF ( + ( - ( 61 ) ), 92 ) ) + + - 30
----
3495514

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

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

query I rowsort
SELECT ALL - 47 * - - 25 + 23
----
-1152

query I rowsort
SELECT + 96 * 10
----
960

onlyif mysql # aggregate syntax: 
query I rowsort label-8254
SELECT DISTINCT 63 * - - COUNT( * ) + - 75
----
-12

skipif mysql # not compatible
query I rowsort label-8254
SELECT DISTINCT 63 * - - COUNT ( * ) + - 75
----
-12

query I rowsort
SELECT ALL 31 * - 94 * 8 + - + 73
----
-23385

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8256
SELECT COALESCE ( + + COUNT( * ), - 23, - COALESCE ( + + NULLIF ( + 68, 19 ), + ( 7 ) * + - 54 + + 40 DIV 39 ) )
----
1

skipif mysql # not compatible
query I rowsort label-8256
SELECT COALESCE ( + + COUNT ( * ), - 23, - COALESCE ( + + NULLIF ( + 68, 19 ), + ( 7 ) * + - 54 + + 40 / 39 ) )
----
1

query I rowsort
SELECT + 61 * + 82 col2
----
5002

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8258
SELECT + 66 + CAST( NULL AS SIGNED ) * + 61 / - 46 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8258
SELECT + 66 + CAST ( NULL AS INTEGER ) * + 61 / - 46 AS col0
----
NULL

query I rowsort
SELECT ALL + 54 * + 37
----
1998

onlyif mysql # aggregate syntax: 
query I rowsort label-8260
SELECT + - CASE - + COUNT( * ) WHEN + NULLIF ( + 95, + + 73 / - + 70 ) * - COUNT( * ) + - COALESCE ( 67, - CASE 30 WHEN 68 THEN MIN( ALL ( + 18 ) ) WHEN 17 + 87 * COUNT( * ) THEN - 83 END + + 39, - 77 ) + MAX( ALL 25 ) THEN + COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-8260
SELECT + - CASE - + COUNT ( * ) WHEN + NULLIF ( + 95, + + 73 / - + 70 ) * - COUNT ( * ) + - COALESCE ( 67, - CASE 30 WHEN 68 THEN MIN ( ALL ( + 18 ) ) WHEN 17 + 87 * COUNT ( * ) THEN - 83 END + + 39, - 77 ) + MAX ( ALL 25 ) THEN + COUNT ( * ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8261
SELECT + COUNT( DISTINCT 62 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-8261
SELECT + COUNT ( DISTINCT 62 ) col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8262
SELECT + + 85 + - + COUNT( * ) + 63 * - 30
----
-1806

skipif mysql # not compatible
query I rowsort label-8262
SELECT + + 85 + - + COUNT ( * ) + 63 * - 30
----
-1806

query I rowsort
SELECT DISTINCT + 24 * + 0 + 45 AS col1
----
45

query I rowsort
SELECT DISTINCT + + 15 * + - 6 + + + 5 col1
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-8265
SELECT DISTINCT + + 5 * + 16 + + + COUNT( * ) + + ( + + 97 ) + 52
----
230

skipif mysql # not compatible
query I rowsort label-8265
SELECT DISTINCT + + 5 * + 16 + + + COUNT ( * ) + + ( + + 97 ) + 52
----
230

onlyif mysql # aggregate syntax: 
query I rowsort label-8266
SELECT ALL 13 - - - COUNT( * ) + 98 * - - SUM( + 13 ) AS col2
----
1286

skipif mysql # not compatible
query I rowsort label-8266
SELECT ALL 13 - - - COUNT ( * ) + 98 * - - SUM ( + 13 ) AS col2
----
1286

onlyif mysql # DIV for integer division: 
query I rowsort label-8267
SELECT ALL - 78 DIV + 65
----
-1

skipif mysql # not compatible
query I rowsort label-8267
SELECT ALL - 78 / + 65
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8268
SELECT + - 72 * - - NULLIF ( + - ( COUNT( * ) ), - 69 * 34 + 9 )
----
72

skipif mysql # not compatible
query I rowsort label-8268
SELECT + - 72 * - - NULLIF ( + - ( COUNT ( * ) ), - 69 * 34 + 9 )
----
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8269
SELECT - - 67 + 61 * CAST( 89 AS SIGNED ) + - + 24 + - CAST( - - COUNT( * ) AS SIGNED ) AS col2
----
5471

skipif mysql # not compatible
query I rowsort label-8269
SELECT - - 67 + 61 * CAST ( 89 AS INTEGER ) + - + 24 + - CAST ( - - COUNT ( * ) AS INTEGER ) AS col2
----
5471

query I rowsort
SELECT - + 9 * - - 30 AS col2
----
-270

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

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

query II rowsort
SELECT ALL - 97 col2, + 21 + ( + 36 ) AS col1
----
-97
57

onlyif mysql # DIV for integer division: 
query I rowsort label-8273
SELECT + - 23 DIV - 55 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8273
SELECT + - 23 / - 55 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8274
SELECT DISTINCT - + COUNT( * ) * - NULLIF ( - 21, + + MIN( + - CAST( NULL AS SIGNED ) ) ) * + - ( - - NULLIF ( + + 56, - - 19 * - 81 + COUNT( * ) / - 68 ) )
----
1176

skipif mysql # not compatible
query I rowsort label-8274
SELECT DISTINCT - + COUNT ( * ) * - NULLIF ( - 21, + + MIN ( + - CAST ( NULL AS INTEGER ) ) ) * + - ( - - NULLIF ( + + 56, - - 19 * - 81 + COUNT ( * ) / - 68 ) )
----
1176

onlyif mysql # aggregate syntax: 
query II rowsort label-8275
SELECT - 46 - - 14 + - 71 col0, + MIN( ALL - ( - + 80 ) )
----
-103
80

skipif mysql # not compatible
query II rowsort label-8275
SELECT - 46 - - 14 + - 71 col0, + MIN ( ALL - ( - + 80 ) )
----
-103
80

query II rowsort
SELECT - 64 col1, - 3 * - 1
----
-64
3

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

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

query I rowsort
SELECT - 63 * - 66
----
4158

query II rowsort
SELECT 98, + 85 AS col1
----
98
85

query I rowsort
SELECT DISTINCT ( - 74 ) AS col0
----
-74

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8281
SELECT DISTINCT 47 DIV 55 * - 73 + 40 DIV - - SUM( DISTINCT 5 ) AS col1, + 2
----
8
2

skipif mysql # not compatible
query II rowsort label-8281
SELECT DISTINCT 47 / 55 * - 73 + 40 / - - SUM ( DISTINCT 5 ) AS col1, + 2
----
8
2

onlyif mysql # aggregate syntax: 
query I rowsort label-8282
SELECT COUNT( * ) * - 46 - 27 - - + 90
----
17

skipif mysql # not compatible
query I rowsort label-8282
SELECT COUNT ( * ) * - 46 - 27 - - + 90
----
17

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8283
SELECT DISTINCT + 19 / - CAST( NULL AS DECIMAL ) + + 46 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8283
SELECT DISTINCT + 19 / - CAST ( NULL AS REAL ) + + 46 col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8284
SELECT DISTINCT 84 / + - 36 * + CAST( NULL AS SIGNED ) + 72 * - - AVG ( - 44 ) + COUNT( + - 80 ) - MAX( DISTINCT + - CAST( NULL AS SIGNED ) ) + + - 78 * 32 / + 59
----
NULL

skipif mysql # not compatible
query I rowsort label-8284
SELECT DISTINCT 84 / + - 36 * + CAST ( NULL AS INTEGER ) + 72 * - - AVG ( - 44 ) + COUNT ( + - 80 ) - MAX ( DISTINCT + - CAST ( NULL AS INTEGER ) ) + + - 78 * 32 / + 59
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8285
SELECT + CASE - 28 WHEN - - 50 - + 1 * 4 THEN NULL ELSE - COUNT( * ) + + 79 END AS col0
----
78

skipif mysql # not compatible
query I rowsort label-8285
SELECT + CASE - 28 WHEN - - 50 - + 1 * 4 THEN NULL ELSE - COUNT ( * ) + + 79 END AS col0
----
78

onlyif mysql # DIV for integer division: 
query I rowsort label-8286
SELECT ALL ( COALESCE ( 30, 51 + AVG ( + 28 ) + - 45 * - 49, NULLIF ( + 8, AVG ( + 63 ) ) ) ) DIV 35 + - 65 AS col1
----
-65

skipif mysql # not compatible
query I rowsort label-8286
SELECT ALL ( COALESCE ( 30, 51 + AVG ( + 28 ) + - 45 * - 49, NULLIF ( + 8, AVG ( + 63 ) ) ) ) / 35 + - 65 AS col1
----
-65

onlyif mysql # aggregate syntax: 
query II rowsort label-8287
SELECT COUNT( * ) * + - 28 col1, NULLIF ( + 40, 48 / 78 )
----
-28
40

skipif mysql # not compatible
query II rowsort label-8287
SELECT COUNT ( * ) * + - 28 col1, NULLIF ( + 40, 48 / 78 )
----
-28
40

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8288
SELECT ALL + NULLIF ( CAST( NULL AS SIGNED ), - 31 ) * + - 62 AS col2, CAST( NULL AS SIGNED )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-8288
SELECT ALL + NULLIF ( CAST ( NULL AS INTEGER ), - 31 ) * + - 62 AS col2, CAST ( NULL AS INTEGER )
----
NULL
NULL

query I rowsort
SELECT 23 * - - 43 + - 77
----
912

onlyif mysql # aggregate syntax: 
query I rowsort label-8290
SELECT - COUNT( * ) * + 42 + 21 * - - 46 AS col1
----
924

skipif mysql # not compatible
query I rowsort label-8290
SELECT - COUNT ( * ) * + 42 + 21 * - - 46 AS col1
----
924

query I rowsort
SELECT ALL 17 + - COALESCE ( - 67, - 29, - 27 ) AS col0
----
84

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8292
SELECT + 35 * + 95 * + - CAST( NULL AS DECIMAL ) - + 23 + 1 + 52 AS col0, - 70
----
NULL
-70

skipif mysql # not compatible
query II rowsort label-8292
SELECT + 35 * + 95 * + - CAST ( NULL AS REAL ) - + 23 + 1 + 52 AS col0, - 70
----
NULL
-70

query I rowsort
SELECT + NULLIF ( + - 77, 9 ) AS col1
----
-77

query I rowsort
SELECT 23 + 62 + + - 55 AS col0
----
30

query I rowsort
SELECT - NULLIF ( + 8, + 25 ) + - + 28 * + - 19 AS col0
----
524

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8296
SELECT + ( - + 76 ) * - - ( CASE 64 WHEN - 52 THEN NULL WHEN - COUNT( * ) THEN - 83 + - - COALESCE ( + 63, 65 * + 14, - COUNT( * ) + - ( - 11 ) ) + - 50 WHEN 28 * 5 + 69 * 3 THEN 30 END ) + - MIN( - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8296
SELECT + ( - + 76 ) * - - ( CASE 64 WHEN - 52 THEN NULL WHEN - COUNT ( * ) THEN - 83 + - - COALESCE ( + 63, 65 * + 14, - COUNT ( * ) + - ( - 11 ) ) + - 50 WHEN 28 * 5 + 69 * 3 THEN 30 END ) + - MIN ( - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8297
SELECT COUNT( * ) + - - SUM( DISTINCT - 61 ) AS col2
----
-60

skipif mysql # not compatible
query I rowsort label-8297
SELECT COUNT ( * ) + - - SUM ( DISTINCT - 61 ) AS col2
----
-60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8298
SELECT + 47 * + 63 + - 83 + + 72 + AVG ( DISTINCT + - 13 ) * + CAST( NULL AS SIGNED ) / - CAST( NULL AS SIGNED ) + - 51 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8298
SELECT + 47 * + 63 + - 83 + + 72 + AVG ( DISTINCT + - 13 ) * + CAST ( NULL AS INTEGER ) / - CAST ( NULL AS INTEGER ) + - 51 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8299
SELECT 92 + + 30 + - COUNT( * ) + + + 41 + COUNT( * ) AS col2
----
163

skipif mysql # not compatible
query I rowsort label-8299
SELECT 92 + + 30 + - COUNT ( * ) + + + 41 + COUNT ( * ) AS col2
----
163

query I rowsort
SELECT - COALESCE ( 21, - - 94 ) AS col1
----
-21

query I rowsort
SELECT 71 + - + 1 AS col2
----
70

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8303
SELECT NULLIF ( 65, - COUNT( * ) ) * - 77
----
-5005

skipif mysql # not compatible
query I rowsort label-8303
SELECT NULLIF ( 65, - COUNT ( * ) ) * - 77
----
-5005

onlyif mysql # aggregate syntax: 
query II rowsort label-8304
SELECT ALL + 55 * - 43, ( - ( COUNT( * ) ) ) + - 34 col0
----
-2365
-35

skipif mysql # not compatible
query II rowsort label-8304
SELECT ALL + 55 * - 43, ( - ( COUNT ( * ) ) ) + - 34 col0
----
-2365
-35

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8305
SELECT 49 + - COUNT( * ) - + 93 + + ( - 71 ) DIV - COUNT( * ) + - - 28, COALESCE ( - - COUNT( * ), - MAX( ALL - + 95 ), + ( + COUNT( * ) ) + + 92 * - 37 ) * + 29 AS col0
----
54
29

skipif mysql # not compatible
query II rowsort label-8305
SELECT 49 + - COUNT ( * ) - + 93 + + ( - 71 ) / - COUNT ( * ) + - - 28, COALESCE ( - - COUNT ( * ), - MAX ( ALL - + 95 ), + ( + COUNT ( * ) ) + + 92 * - 37 ) * + 29 AS col0
----
54
29

onlyif mysql # DIV for integer division: 
query I rowsort label-8306
SELECT ( + 17 ) DIV + 93 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8306
SELECT ( + 17 ) / + 93 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8307
SELECT CASE - 33 WHEN - + COUNT( * ) * - 6 THEN NULL ELSE + COUNT( * ) * - - 57 * + + 47 + 95 + - 3 + - MIN( ALL 99 ) - - ( - ( - 87 ) ) END + + 54 / + CASE 33 + - 36 WHEN - 13 THEN + COUNT( * ) - - 81 WHEN + COALESCE ( + 62, + ( 19 ) + 96 * + 72 ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8307
SELECT CASE - 33 WHEN - + COUNT ( * ) * - 6 THEN NULL ELSE + COUNT ( * ) * - - 57 * + + 47 + 95 + - 3 + - MIN ( ALL 99 ) - - ( - ( - 87 ) ) END + + 54 / + CASE 33 + - 36 WHEN - 13 THEN + COUNT ( * ) - - 81 WHEN + COALESCE ( + 62, + ( 19 ) + 96 * + 72 ) THEN NULL END
----
NULL

query I rowsort
SELECT 94 - 37 - - - 31 * - - 33
----
-966

onlyif mysql # aggregate syntax: 
query I rowsort label-8309
SELECT 68 + - ( NULLIF ( - 51, + COUNT( * ) ) ) AS col0
----
119

skipif mysql # not compatible
query I rowsort label-8309
SELECT 68 + - ( NULLIF ( - 51, + COUNT ( * ) ) ) AS col0
----
119

onlyif mysql # aggregate syntax: 
query I rowsort label-8310
SELECT 7 + + + CASE - 36 WHEN + 89 THEN - 87 WHEN - - 24 + + + 51 * - + 64 + + 60 THEN - 46 END - + 75 * + + ( MAX( DISTINCT 95 ) ) * + 62
----
NULL

skipif mysql # not compatible
query I rowsort label-8310
SELECT 7 + + + CASE - 36 WHEN + 89 THEN - 87 WHEN - - 24 + + + 51 * - + 64 + + 60 THEN - 46 END - + 75 * + + ( MAX ( DISTINCT 95 ) ) * + 62
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8311
SELECT ALL + 17 + + 10 AS col0, COUNT( * ) DIV 99
----
27
0

skipif mysql # not compatible
query II rowsort label-8311
SELECT ALL + 17 + + 10 AS col0, COUNT ( * ) / 99
----
27
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8312
SELECT DISTINCT 50 DIV COUNT( * ) col0
----
50

skipif mysql # not compatible
query I rowsort label-8312
SELECT DISTINCT 50 / COUNT ( * ) col0
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-8313
SELECT MAX( - ( + 19 ) ) + - 62 col2
----
-81

skipif mysql # not compatible
query I rowsort label-8313
SELECT MAX ( - ( + 19 ) ) + - 62 col2
----
-81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8314
SELECT - CASE - COUNT( * ) WHEN - 2 THEN + - 20 WHEN + SUM( ALL - CAST( NULL AS SIGNED ) ) THEN NULL ELSE NULL END / - COUNT( * ) * + - CAST( NULL AS SIGNED ) + - NULLIF ( + NULLIF ( + + COALESCE ( - 4, - 61 - + COALESCE ( CAST( COUNT( * ) AS SIGNED ), CASE + 44 WHEN + 60 * 51 THEN 20 END, - 2 ) * + 55 ), + COUNT( * ) ), 55 ) + 86
----
NULL

skipif mysql # not compatible
query I rowsort label-8314
SELECT - CASE - COUNT ( * ) WHEN - 2 THEN + - 20 WHEN + SUM ( ALL - CAST ( NULL AS INTEGER ) ) THEN NULL ELSE NULL END / - COUNT ( * ) * + - CAST ( NULL AS INTEGER ) + - NULLIF ( + NULLIF ( + + COALESCE ( - 4, - 61 - + COALESCE ( CAST ( COUNT ( * ) AS INTEGER ), CASE + 44 WHEN + 60 * 51 THEN 20 END, - 2 ) * + 55 ), + COUNT ( * ) ), 55 ) + 86
----
NULL

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

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

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

skipif mysql # not compatible
query I rowsort label-8316
SELECT ALL - MAX ( 42 )
----
-42

query I rowsort
SELECT DISTINCT 2 + 48 AS col0
----
50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8318
SELECT + 85 / + CAST( NULL AS SIGNED ) * + 89
----
NULL

skipif mysql # not compatible
query I rowsort label-8318
SELECT + 85 / + CAST ( NULL AS INTEGER ) * + 89
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8319
SELECT ALL + - 87 * + - 32 * MIN( + CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8319
SELECT ALL + - 87 * + - 32 * MIN ( + CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

query II rowsort
SELECT DISTINCT + 78 * + 41, 74 AS col2
----
3198
74

query I rowsort
SELECT 17 * + + 46 AS col2
----
782

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8322
SELECT - + NULLIF ( SUM( ALL + 69 ), 83 * ( + - 39 ) - + + CAST( + - 35 AS SIGNED ) - 21 ) AS col2
----
-69

skipif mysql # not compatible
query I rowsort label-8322
SELECT - + NULLIF ( SUM ( ALL + 69 ), 83 * ( + - 39 ) - + + CAST ( + - 35 AS INTEGER ) - 21 ) AS col2
----
-69

onlyif mysql # DIV for integer division: 
query I rowsort label-8323
SELECT ALL - 95 DIV + 76
----
-1

skipif mysql # not compatible
query I rowsort label-8323
SELECT ALL - 95 / + 76
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-8324
SELECT + 24 DIV - - 5 col1
----
4

skipif mysql # not compatible
query I rowsort label-8324
SELECT + 24 / - - 5 col1
----
4

query I rowsort
SELECT DISTINCT + 84 + + - 33 * - - 3
----
-15

query I rowsort
SELECT CASE + + 26 WHEN - 78 THEN NULL WHEN + 26 THEN NULL ELSE - - 60 * + 16 + + 18 + - + COALESCE ( + NULLIF ( - + 80, + + 91 * - - 53 * + 16 + 89 ), + NULLIF ( 83, 8 * - 28 ) ) END
----
NULL

query II rowsort
SELECT 17 * 7 AS col2, + 71 AS col1
----
119
71

query I rowsort
SELECT + 81 + - 57 + 31
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-8329
SELECT 62 + COUNT( * ) + - MAX( DISTINCT + - 20 ) * - 27 + - MAX( 7 ) * - ( + CASE + 37 WHEN + 61 * - NULLIF ( + - 2, + 56 ) / + 19 THEN NULL ELSE 50 END ) - + 98
----
-225

skipif mysql # not compatible
query I rowsort label-8329
SELECT 62 + COUNT ( * ) + - MAX ( DISTINCT + - 20 ) * - 27 + - MAX ( 7 ) * - ( + CASE + 37 WHEN + 61 * - NULLIF ( + - 2, + 56 ) / + 19 THEN NULL ELSE 50 END ) - + 98
----
-225

query I rowsort
SELECT 68 * - - 61 AS col0
----
4148

query I rowsort
SELECT COALESCE ( - 23, - 90 ) + + NULLIF ( 60, - - 16 ) AS col2
----
37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8332
SELECT DISTINCT 63 + - MIN( DISTINCT - 47 ) + - NULLIF ( MAX( + 94 ), 8 * - - CAST( - 38 AS SIGNED ) * 92 * - + 87 * + 74 + + COUNT( * ) - 8 ) AS col1
----
16

skipif mysql # not compatible
query I rowsort label-8332
SELECT DISTINCT 63 + - MIN ( DISTINCT - 47 ) + - NULLIF ( MAX ( + 94 ), 8 * - - CAST ( - 38 AS INTEGER ) * 92 * - + 87 * + 74 + + COUNT ( * ) - 8 ) AS col1
----
16

query I rowsort
SELECT ALL - 21 + + NULLIF ( + + 68, - 11 )
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-8334
SELECT ALL MAX( - 89 ) + - 17
----
-106

skipif mysql # not compatible
query I rowsort label-8334
SELECT ALL MAX ( - 89 ) + - 17
----
-106

query II rowsort
SELECT 61 AS col2, - 50 AS col0
----
61
-50

query I rowsort
SELECT DISTINCT - 3 + 87 AS col2
----
84

query I rowsort
SELECT 97 - - - 88
----
9

query I rowsort
SELECT + 91 * 46 AS col1
----
4186

query II rowsort
SELECT DISTINCT 87 AS col1, 40 AS col0
----
87
40

onlyif mysql # aggregate syntax: 
query I rowsort label-8340
SELECT - NULLIF ( - + 27, + MIN( ALL - 39 ) * + - 17 ) AS col0
----
27

skipif mysql # not compatible
query I rowsort label-8340
SELECT - NULLIF ( - + 27, + MIN ( ALL - 39 ) * + - 17 ) AS col0
----
27

query II rowsort
SELECT ALL + 47, 96 * - + ( + - 26 ) AS col1
----
47
2496

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8342
SELECT - 81 DIV 87 * 4 * + COUNT( * ) - + - 44 + - - 85 * - 3
----
-211

skipif mysql # not compatible
query I rowsort label-8342
SELECT - 81 / 87 * 4 * + COUNT ( * ) - + - 44 + - - 85 * - 3
----
-211

onlyif mysql # DIV for integer division: 
query I rowsort label-8343
SELECT ALL 96 DIV + + COALESCE ( - 80, + 27 )
----
-1

skipif mysql # not compatible
query I rowsort label-8343
SELECT ALL 96 / + + COALESCE ( - 80, + 27 )
----
-1

query I rowsort
SELECT ALL + 43 * - - 48 AS col0
----
2064

query I rowsort
SELECT - 51 * - 3 + 96 + + 45
----
294

query I rowsort
SELECT + + 6 col1
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8347
SELECT - 10 * + CAST( NULLIF ( CASE + 87 WHEN + + COUNT( * ) + CASE - + ( 53 ) WHEN COUNT( * ) + - - 54 THEN + - 54 / - - 72 + - 53 ELSE + CAST( NULL AS SIGNED ) END THEN + SUM( DISTINCT 42 ) WHEN + ( 9 ) THEN 71 END, 48 ) AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8347
SELECT - 10 * + CAST ( NULLIF ( CASE + 87 WHEN + + COUNT ( * ) + CASE - + ( 53 ) WHEN COUNT ( * ) + - - 54 THEN + - 54 / - - 72 + - 53 ELSE + CAST ( NULL AS INTEGER ) END THEN + SUM ( DISTINCT 42 ) WHEN + ( 9 ) THEN 71 END, 48 ) AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT + 49 + + + 48 * - 21
----
-959

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8349
SELECT COALESCE ( + - 5, - 56 + 10 + + 42 + + + 58 * - 61, 67 ) * - CAST( - 77 AS SIGNED ) * + + 65 - 92 + + ( 39 ) * - 63 AS col1
----
-27574

skipif mysql # not compatible
query I rowsort label-8349
SELECT COALESCE ( + - 5, - 56 + 10 + + 42 + + + 58 * - 61, 67 ) * - CAST ( - 77 AS INTEGER ) * + + 65 - 92 + + ( 39 ) * - 63 AS col1
----
-27574

query II rowsort
SELECT ALL + 72, 21 AS col1
----
72
21

onlyif mysql # aggregate syntax: 
query II rowsort label-8351
SELECT ALL + + COUNT( * ) AS col2, + 74 + + 33
----
1
107

skipif mysql # not compatible
query II rowsort label-8351
SELECT ALL + + COUNT ( * ) AS col2, + 74 + + 33
----
1
107

query I rowsort
SELECT ALL + + NULLIF ( 67, + 17 + + - 70 )
----
67

onlyif mysql # aggregate syntax: 
query II rowsort label-8353
SELECT + + 39 * + 19 + - 55 AS col0, + MAX( ALL 61 )
----
686
61

skipif mysql # not compatible
query II rowsort label-8353
SELECT + + 39 * + 19 + - 55 AS col0, + MAX ( ALL 61 )
----
686
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8354
SELECT ALL + 99 DIV - + CASE + - SUM( + 93 ) WHEN + CAST( - + NULLIF ( 22, 51 ) AS SIGNED ) THEN 22 - + - 25 + - 68 WHEN + 83 THEN + - CAST( NULL AS SIGNED ) ELSE 8 * + 55 + + 13 * 16 END
----
0

skipif mysql # not compatible
query I rowsort label-8354
SELECT ALL + 99 / - + CASE + - SUM ( + 93 ) WHEN + CAST ( - + NULLIF ( 22, 51 ) AS INTEGER ) THEN 22 - + - 25 + - 68 WHEN + 83 THEN + - CAST ( NULL AS INTEGER ) ELSE 8 * + 55 + + 13 * 16 END
----
0

query II rowsort
SELECT DISTINCT + - 64 AS col1, 62 AS col1
----
-64
62

onlyif mysql # aggregate syntax: 
query I rowsort label-8356
SELECT ALL COUNT( * ) * + SUM( DISTINCT ( + 64 ) ) + 85
----
149

skipif mysql # not compatible
query I rowsort label-8356
SELECT ALL COUNT ( * ) * + SUM ( DISTINCT ( + 64 ) ) + 85
----
149

query I rowsort
SELECT - + 61 + + + 80 AS col1
----
19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8358
SELECT ALL + CAST( CAST( MAX( ALL + + 25 ) AS SIGNED ) AS SIGNED ) DIV + 97 + + 45 + + 46 * 74 + - - 61 AS col0
----
3510

skipif mysql # not compatible
query I rowsort label-8358
SELECT ALL + CAST ( CAST ( MAX ( ALL + + 25 ) AS INTEGER ) AS INTEGER ) / + 97 + + 45 + + 46 * 74 + - - 61 AS col0
----
3510

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

query I rowsort
SELECT - 79 * - 81
----
6399

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-8362
SELECT - + 78 DIV + 25
----
-3

skipif mysql # not compatible
query I rowsort label-8362
SELECT - + 78 / + 25
----
-3

query I rowsort
SELECT DISTINCT - + 67 + - - 49
----
-18

query I rowsort
SELECT ALL + 62 + + 0 * 27
----
62

query I rowsort
SELECT DISTINCT - 35 + + 68 col1
----
33

onlyif mysql # DIV for integer division: 
query I rowsort label-8366
SELECT ALL 16 DIV - + 72
----
0

skipif mysql # not compatible
query I rowsort label-8366
SELECT ALL 16 / - + 72
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-8367
SELECT - 21 DIV - - 2, + 0 * - 20 AS col1
----
-10
0

skipif mysql # not compatible
query II rowsort label-8367
SELECT - 21 / - - 2, + 0 * - 20 AS col1
----
-10
0

query I rowsort
SELECT ALL - 99 + - 0 AS col1
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-8369
SELECT - 68 * - COUNT( * ) * + - 16
----
-1088

skipif mysql # not compatible
query I rowsort label-8369
SELECT - 68 * - COUNT ( * ) * + - 16
----
-1088

onlyif mysql # aggregate syntax: 
query I rowsort label-8370
SELECT - 86 + - 49 + + 85 - - 37 + - + 98 * - 48 + - - 88 + + 52 * - + ( 90 ) + + SUM( 77 ) * + 29
----
2332

skipif mysql # not compatible
query I rowsort label-8370
SELECT - 86 + - 49 + + 85 - - 37 + - + 98 * - 48 + - - 88 + + 52 * - + ( 90 ) + + SUM ( 77 ) * + 29
----
2332

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8372
SELECT - CAST( - - 44 AS SIGNED ) + + 48 AS col2
----
4

skipif mysql # not compatible
query I rowsort label-8372
SELECT - CAST ( - - 44 AS INTEGER ) + + 48 AS col2
----
4

query I rowsort
SELECT - ( COALESCE ( + ( 91 ), - 54 * - 96, + 56 * - - 92 ) ) col0
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-8374
SELECT ALL MIN( ALL - + 75 ) - - + 80 col2
----
5

skipif mysql # not compatible
query I rowsort label-8374
SELECT ALL MIN ( ALL - + 75 ) - - + 80 col2
----
5

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8375
SELECT ALL ( - - 86 ) * + + 75 * - 9 * - CAST( + COALESCE ( 53, - + CAST( + 54 AS DECIMAL ) ) AS SIGNED ) * + 55 + + + 44
----
169215794

skipif mysql # not compatible
query I rowsort label-8375
SELECT ALL ( - - 86 ) * + + 75 * - 9 * - CAST ( + COALESCE ( 53, - + CAST ( + 54 AS REAL ) ) AS INTEGER ) * + 55 + + + 44
----
169215794

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

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

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8380
SELECT ALL - COALESCE ( + CAST( + 95 AS SIGNED ), - 88 DIV 29 DIV - + 3, - 56, + CASE - 27 WHEN - + MIN( 39 ) + - + 95 THEN - CAST( - + 66 AS SIGNED ) WHEN - COALESCE ( CAST( 79 AS SIGNED ), 83 * 59 ) DIV - 23 THEN NULL END DIV 23 ) * + 82
----
-7790

skipif mysql # not compatible
query I rowsort label-8380
SELECT ALL - COALESCE ( + CAST ( + 95 AS INTEGER ), - 88 / 29 / - + 3, - 56, + CASE - 27 WHEN - + MIN ( 39 ) + - + 95 THEN - CAST ( - + 66 AS INTEGER ) WHEN - COALESCE ( CAST ( 79 AS INTEGER ), 83 * 59 ) / - 23 THEN NULL END / 23 ) * + 82
----
-7790

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8381
SELECT COUNT( * ) DIV - 99 * 7 + 63 + - 20 AS col2
----
43

skipif mysql # not compatible
query I rowsort label-8381
SELECT COUNT ( * ) / - 99 * 7 + 63 + - 20 AS col2
----
43

query I rowsort
SELECT + + 75 + + 20 AS col1
----
95

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

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

query I rowsort
SELECT + - 6 * - 69 * 99 AS col1
----
40986

onlyif mysql # aggregate syntax: 
query I rowsort label-8385
SELECT 0 * 44 + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-8385
SELECT 0 * 44 + COUNT ( * )
----
1

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-8387
SELECT + - 56 DIV + 33 AS col0, + 50 * 74 AS col1
----
-1
3700

skipif mysql # not compatible
query II rowsort label-8387
SELECT + - 56 / + 33 AS col0, + 50 * 74 AS col1
----
-1
3700

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8388
SELECT ALL - 99 DIV 53 + + COUNT( * ) + + + 61
----
61

skipif mysql # not compatible
query I rowsort label-8388
SELECT ALL - 99 / 53 + + COUNT ( * ) + + + 61
----
61

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8389
SELECT ALL 57 * 2 DIV + 76 + COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-8389
SELECT ALL 57 * 2 / + 76 + COUNT ( * )
----
2

query I rowsort
SELECT + 97 * + 10 col0
----
970

query I rowsort
SELECT + - 4 - - 62 + - + 61 AS col1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8392
SELECT ALL 64 * COUNT( * ) + COUNT( * ) + + + COUNT( * ) + + - 69 + + COUNT( * ) * 68 * + 56 AS col1
----
3805

skipif mysql # not compatible
query I rowsort label-8392
SELECT ALL 64 * COUNT ( * ) + COUNT ( * ) + + + COUNT ( * ) + + - 69 + + COUNT ( * ) * 68 * + 56 AS col1
----
3805

query I rowsort
SELECT ALL 55 * 97 * 59 AS col2
----
314765

onlyif mysql # aggregate syntax: 
query I rowsort label-8394
SELECT DISTINCT + 33 * - COUNT( * ) + 80 * - 28 * + 95 + - ( ( + NULLIF ( - 96, - - COUNT( * ) ) ) ) AS col2
----
-212737

skipif mysql # not compatible
query I rowsort label-8394
SELECT DISTINCT + 33 * - COUNT ( * ) + 80 * - 28 * + 95 + - ( ( + NULLIF ( - 96, - - COUNT ( * ) ) ) ) AS col2
----
-212737

onlyif mysql # aggregate syntax: 
query I rowsort label-8395
SELECT - ( COUNT( * ) ) + 62 * + 5 col1
----
309

skipif mysql # not compatible
query I rowsort label-8395
SELECT - ( COUNT ( * ) ) + 62 * + 5 col1
----
309

onlyif mysql # DIV for integer division: 
query I rowsort label-8396
SELECT DISTINCT - 13 DIV - 98 col1
----
0

skipif mysql # not compatible
query I rowsort label-8396
SELECT DISTINCT - 13 / - 98 col1
----
0

query I rowsort
SELECT 28 + - + 3
----
25

query I rowsort
SELECT ALL - 95 * - 92 * + 97 * + - ( - 66 ) AS col0
----
55953480

query I rowsort
SELECT DISTINCT - 87 - - ( + 93 ) + - 40
----
-34

onlyif mysql # DIV for integer division: 
query I rowsort label-8400
SELECT DISTINCT - ( 82 ) DIV - 92 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8400
SELECT DISTINCT - ( 82 ) / - 92 AS col1
----
0

query I rowsort
SELECT 31 + 89 AS col0
----
120

query II rowsort
SELECT 8 - + 85 - 41 - - ( - + 4 ) AS col0, 54
----
-122
54

query I rowsort
SELECT 11 * + 88
----
968

query I rowsort
SELECT 47 * - 77 AS col1
----
-3619

query II rowsort
SELECT 18 - - ( + - 36 ) * + 51 + - + 79, - 59 AS col0
----
-1897
-59

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

skipif mysql # not compatible
query I rowsort label-8406
SELECT ALL - 54 + COUNT ( * ) AS col0
----
-53

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8408
SELECT DISTINCT - - 50 + 28 + COUNT( DISTINCT CAST( NULL AS SIGNED ) ) * - 30 - - + 84 + - COUNT( + 77 ) * + + COALESCE ( - CAST( + - 32 AS SIGNED ), - 30 ) + + COALESCE ( + 41, - 50, - 62 ) + 18 AS col1
----
189

skipif mysql # not compatible
query I rowsort label-8408
SELECT DISTINCT - - 50 + 28 + COUNT ( DISTINCT CAST ( NULL AS INTEGER ) ) * - 30 - - + 84 + - COUNT ( + 77 ) * + + COALESCE ( - CAST ( + - 32 AS INTEGER ), - 30 ) + + COALESCE ( + 41, - 50, - 62 ) + 18 AS col1
----
189

query II rowsort
SELECT ALL - 43, + 44 AS col0
----
-43
44

query I rowsort
SELECT ALL 98 + - + 95 - + + 71
----
-68

query I rowsort
SELECT - 67 - 92
----
-159

onlyif mysql # aggregate syntax: 
query I rowsort label-8412
SELECT ALL - + COUNT( * ) + 79 + + 14 * 66 AS col1
----
1002

skipif mysql # not compatible
query I rowsort label-8412
SELECT ALL - + COUNT ( * ) + 79 + + 14 * 66 AS col1
----
1002

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8413
SELECT DISTINCT - - COUNT( ALL - 82 ) + + - COALESCE ( - + 32, - 77, + 78 + ( - - CAST( + + 44 AS SIGNED ) ) ) DIV + 82 * + 5 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8413
SELECT DISTINCT - - COUNT ( ALL - 82 ) + + - COALESCE ( - + 32, - 77, + 78 + ( - - CAST ( + + 44 AS INTEGER ) ) ) / + 82 * + 5 AS col2
----
1

query I rowsort
SELECT - - 2 * 49 + 21 + - 5
----
114

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8416
SELECT ALL + NULLIF ( - 29, + COALESCE ( - ( + 66 ), 63, + 33, - 83 + + CAST( + 68 AS SIGNED ) ) + + COUNT( * ) * - 34 ) + - 20 AS col2, 95 AS col1
----
-49
95

skipif mysql # not compatible
query II rowsort label-8416
SELECT ALL + NULLIF ( - 29, + COALESCE ( - ( + 66 ), 63, + 33, - 83 + + CAST ( + 68 AS INTEGER ) ) + + COUNT ( * ) * - 34 ) + - 20 AS col2, 95 AS col1
----
-49
95

onlyif mysql # DIV for integer division: 
query I rowsort label-8417
SELECT + 34 + - 36 + 14 DIV + 76
----
-2

skipif mysql # not compatible
query I rowsort label-8417
SELECT + 34 + - 36 + 14 / + 76
----
-2

query I rowsort
SELECT + ( + COALESCE ( 29, - 72 * 30 - - 47 + + 1, 91 ) ) * - 66
----
-1914

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8419
SELECT - COALESCE ( - ( + 27 ), + CAST( - 96 AS SIGNED ) ) * + 31 * 48 + COUNT( * ) + - - COUNT( * )
----
40178

skipif mysql # not compatible
query I rowsort label-8419
SELECT - COALESCE ( - ( + 27 ), + CAST ( - 96 AS INTEGER ) ) * + 31 * 48 + COUNT ( * ) + - - COUNT ( * )
----
40178

query I rowsort
SELECT ALL - + 33 + - 19
----
-52

query I rowsort
SELECT DISTINCT - 56 * 51 * + + 24 + - 95 AS col1
----
-68639

onlyif mysql # aggregate syntax: 
query I rowsort label-8422
SELECT 40 + - 17 - - COUNT( * ) AS col2
----
24

skipif mysql # not compatible
query I rowsort label-8422
SELECT 40 + - 17 - - COUNT ( * ) AS col2
----
24

query I rowsort
SELECT ALL 87 - - COALESCE ( + 46, - 38 ) * + 35 col0
----
1697

query I rowsort
SELECT 77 * + + 51 * + 9 AS col1
----
35343

query I rowsort
SELECT ALL 80 * - ( + + ( - 67 ) ) * - 9 + 15
----
-48225

onlyif mysql # aggregate syntax: 
query I rowsort label-8426
SELECT ALL COUNT( * ) * + + 2 * - 96
----
-192

skipif mysql # not compatible
query I rowsort label-8426
SELECT ALL COUNT ( * ) * + + 2 * - 96
----
-192

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8427
SELECT 63 AS col1, COUNT( * ) * CAST( NULL AS SIGNED ) * 89
----
63
NULL

skipif mysql # not compatible
query II rowsort label-8427
SELECT 63 AS col1, COUNT ( * ) * CAST ( NULL AS INTEGER ) * 89
----
63
NULL

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

query I rowsort
SELECT ALL 44 * - 24
----
-1056

query II rowsort
SELECT ALL 81 AS col1, 93
----
81
93

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

skipif mysql # not compatible
query I rowsort label-8431
SELECT COUNT ( * ) * - COALESCE ( - + 26, - COUNT ( * ) + + - 22 ) col1
----
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8432
SELECT COUNT( * ) + + + MIN( ALL ( - + 13 ) ) AS col2, + COALESCE ( 70, - CAST( NULL AS SIGNED ) + - COALESCE ( - - CAST( NULL AS SIGNED ), - 85 + + COALESCE ( - 15, + - COUNT( * ), 26 * COUNT( + + 4 ) ), - SUM( ALL + 17 ) ) + 24, CASE 32 WHEN - AVG ( ALL + 21 ) THEN 25 ELSE NULL END * - 36 - 40, + 65 ) * 20
----
-12
1400

skipif mysql # not compatible
query II rowsort label-8432
SELECT COUNT ( * ) + + + MIN ( ALL ( - + 13 ) ) AS col2, + COALESCE ( 70, - CAST ( NULL AS INTEGER ) + - COALESCE ( - - CAST ( NULL AS INTEGER ), - 85 + + COALESCE ( - 15, + - COUNT ( * ), 26 * COUNT ( + + 4 ) ), - SUM ( ALL + 17 ) ) + 24, CASE 32 WHEN - AVG ( ALL + 21 ) THEN 25 ELSE NULL END * - 36 - 40, + 65 ) * 20
----
-12
1400

query II rowsort
SELECT 1 AS col2, - 64
----
1
-64

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8436
SELECT 47 * - + CAST( 67 AS SIGNED ) AS col0
----
-3149

skipif mysql # not compatible
query I rowsort label-8436
SELECT 47 * - + CAST ( 67 AS INTEGER ) AS col0
----
-3149

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8437
SELECT ALL SUM( DISTINCT - - 92 ) DIV NULLIF ( 62, + 30 )
----
1

skipif mysql # not compatible
query I rowsort label-8437
SELECT ALL SUM ( DISTINCT - - 92 ) / NULLIF ( 62, + 30 )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-8438
SELECT 53 - + 84 DIV - + 33
----
55

skipif mysql # not compatible
query I rowsort label-8438
SELECT 53 - + 84 / - + 33
----
55

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

query I rowsort
SELECT 63 - 80 AS col0
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-8441
SELECT ALL COUNT( DISTINCT + ( + - 98 ) ) + + COUNT( * ) AS col1
----
2

skipif mysql # not compatible
query I rowsort label-8441
SELECT ALL COUNT ( DISTINCT + ( + - 98 ) ) + + COUNT ( * ) AS col1
----
2

query I rowsort
SELECT DISTINCT 90 + - + 0 + - 86 + ( 69 )
----
73

query I rowsort
SELECT ALL - 3 + + + 77 AS col0
----
74

query I rowsort
SELECT ALL + - 86 * + 56 + 65 col0
----
-4751

query I rowsort
SELECT + 52 + - + ( - 88 )
----
140

onlyif mysql # DIV for integer division: 
query I rowsort label-8446
SELECT ALL + 12 DIV + 42 * - 62 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8446
SELECT ALL + 12 / + 42 * - 62 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8447
SELECT ALL 73 * + SUM( ALL 43 ) + - 53 + - + 95
----
2991

skipif mysql # not compatible
query I rowsort label-8447
SELECT ALL 73 * + SUM ( ALL 43 ) + - 53 + - + 95
----
2991

query II rowsort
SELECT 99 AS col1, 48 AS col0
----
99
48

onlyif mysql # aggregate syntax: 
query I rowsort label-8449
SELECT + CASE COALESCE ( - COUNT( * ), + CASE - 48 WHEN - 78 THEN NULL WHEN 97 THEN - 87 END + + + 2 ) WHEN 38 THEN ( + 46 ) WHEN 2 THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8449
SELECT + CASE COALESCE ( - COUNT ( * ), + CASE - 48 WHEN - 78 THEN NULL WHEN 97 THEN - 87 END + + + 2 ) WHEN 38 THEN ( + 46 ) WHEN 2 THEN NULL END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8450
SELECT - COUNT( * ), - 46 DIV - + CAST( - 1 AS SIGNED ) AS col0
----
-1
-46

skipif mysql # not compatible
query II rowsort label-8450
SELECT - COUNT ( * ), - 46 / - + CAST ( - 1 AS INTEGER ) AS col0
----
-1
-46

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8452
SELECT 37 + - COUNT( * ) * - 74 * - ( + - 22 ) * + 72 - + 31 + + + 56 AS col0
----
117278

skipif mysql # not compatible
query I rowsort label-8452
SELECT 37 + - COUNT ( * ) * - 74 * - ( + - 22 ) * + 72 - + 31 + + + 56 AS col0
----
117278

query I rowsort
SELECT + 81 * - 79 + - ( - 83 )
----
-6316

onlyif mysql # aggregate syntax: 
query I rowsort label-8454
SELECT ALL CASE - 99 WHEN - 94 THEN + 20 ELSE 33 END * + 89 - + CASE - + ( - - 9 ) WHEN + 36 THEN 69 WHEN 60 THEN NULL ELSE NULL END + - + COUNT( * ) * + 92 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8454
SELECT ALL CASE - 99 WHEN - 94 THEN + 20 ELSE 33 END * + 89 - + CASE - + ( - - 9 ) WHEN + 36 THEN 69 WHEN 60 THEN NULL ELSE NULL END + - + COUNT ( * ) * + 92 AS col2
----
NULL

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

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

query I rowsort
SELECT DISTINCT 31 * + 90 + 19
----
2809

query I rowsort
SELECT ALL + - 11 * - 40 - - + 45 - - 44 AS col2
----
529

query I rowsort
SELECT + 68 * - 48 * + 9 + + 75 + + 35
----
-29266

query I rowsort
SELECT + - COALESCE ( - + 27, - + 75 * + - 83, + 32 )
----
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8460
SELECT ALL - CAST( CASE - 59 WHEN + COUNT( * ) * - 10 + - 13 + MAX( + 42 ) THEN - MAX( ALL - - 16 ) ELSE NULL END AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8460
SELECT ALL - CAST ( CASE - 59 WHEN + COUNT ( * ) * - 10 + - 13 + MAX ( + 42 ) THEN - MAX ( ALL - - 16 ) ELSE NULL END AS INTEGER ) AS col2
----
NULL

query II rowsort
SELECT + + 40 AS col2, - 65
----
40
-65

query I rowsort
SELECT ALL + ( + - 96 ) * + 79
----
-7584

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8464
SELECT + 75 * + CASE - 34 WHEN + 46 THEN - CASE + COUNT( * ) WHEN 69 THEN + 27 * + 33 END END
----
NULL

skipif mysql # not compatible
query I rowsort label-8464
SELECT + 75 * + CASE - 34 WHEN + 46 THEN - CASE + COUNT ( * ) WHEN 69 THEN + 27 * + 33 END END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8465
SELECT COUNT( * ) * - 27 * CASE + 43 WHEN 98 THEN NULL WHEN 92 * + + 17 THEN 81 END - + 84 + - CAST( - 68 AS DECIMAL ) / CAST( - CASE - + 82 WHEN - + COALESCE ( - ( 84 ), - CAST( NULL AS SIGNED ) * + 70 ) THEN 73 WHEN 13 + - 1 THEN NULL ELSE NULL END AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8465
SELECT COUNT ( * ) * - 27 * CASE + 43 WHEN 98 THEN NULL WHEN 92 * + + 17 THEN 81 END - + 84 + - CAST ( - 68 AS REAL ) / CAST ( - CASE - + 82 WHEN - + COALESCE ( - ( 84 ), - CAST ( NULL AS INTEGER ) * + 70 ) THEN 73 WHEN 13 + - 1 THEN NULL ELSE NULL END AS REAL ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8466
SELECT ALL + NULLIF ( + - 28, - NULLIF ( + SUM( + 7 ), + 41 ) )
----
-28

skipif mysql # not compatible
query I rowsort label-8466
SELECT ALL + NULLIF ( + - 28, - NULLIF ( + SUM ( + 7 ), + 41 ) )
----
-28

query I rowsort
SELECT ALL ( - COALESCE ( + + ( + - 76 ), 16, - 67 ) ) * - 11 - - + 11 + - 15 AS col2
----
-840

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8468
SELECT ALL + CASE WHEN NOT ( NOT NULL IN ( CAST( NULLIF ( 53, 52 / - - 94 ) AS SIGNED ) ) ) THEN - 14 END / + + 32
----
NULL

skipif mysql # not compatible
query I rowsort label-8468
SELECT ALL + CASE WHEN NOT ( NOT NULL IN ( CAST ( NULLIF ( 53, 52 / - - 94 ) AS INTEGER ) ) ) THEN - 14 END / + + 32
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8469
SELECT + 9 + 16 DIV 78 * - 4 AS col1
----
9

skipif mysql # not compatible
query I rowsort label-8469
SELECT + 9 + 16 / 78 * - 4 AS col1
----
9

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

query I rowsort
SELECT ALL 91 + + - 35 + + + 76 + + 32 + + 51 * + 99 + - + 45 AS col2
----
5168

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8472
SELECT + SUM( + 56 ) DIV - 69 * - CAST( + - ( - + 62 ) AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-8472
SELECT + SUM ( + 56 ) / - 69 * - CAST ( + - ( - + 62 ) AS INTEGER )
----
0

query I rowsort
SELECT + 73 * - ( 52 ) * - 40 - 60
----
151780

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8474
SELECT + 32 + + 91 + - 8 * + + 80 * - 5 * + COALESCE ( 93, NULLIF ( - 47, - 89 ) ) * + CASE 48 WHEN - - COUNT( DISTINCT + - 27 ) + + - 89 - - 76 DIV + 49 + 79 * - 88 THEN NULL ELSE - 35 END - 51 + + COUNT( * ) DIV SUM( + 5 )
----
-10415928

skipif mysql # not compatible
query I rowsort label-8474
SELECT + 32 + + 91 + - 8 * + + 80 * - 5 * + COALESCE ( 93, NULLIF ( - 47, - 89 ) ) * + CASE 48 WHEN - - COUNT ( DISTINCT + - 27 ) + + - 89 - - 76 / + 49 + 79 * - 88 THEN NULL ELSE - 35 END - 51 + + COUNT ( * ) / SUM ( + 5 )
----
-10415928

query I rowsort
SELECT + 49 * - 91 AS col1
----
-4459

query I rowsort
SELECT - ( - + 64 ) - + - 26
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-8477
SELECT - NULLIF ( - COUNT( * ), + - 54 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8477
SELECT - NULLIF ( - COUNT ( * ), + - 54 ) AS col1
----
1

query I rowsort
SELECT ALL 31 + ( + + 73 ) AS col1
----
104

onlyif mysql # aggregate syntax: 
query I rowsort label-8479
SELECT DISTINCT SUM( - 4 ) + - - 48 * 18 * 65
----
56156

skipif mysql # not compatible
query I rowsort label-8479
SELECT DISTINCT SUM ( - 4 ) + - - 48 * 18 * 65
----
56156

onlyif mysql # aggregate syntax: 
query I rowsort label-8480
SELECT ALL - NULLIF ( - 17, + + COUNT( * ) ) + 13 AS col1
----
30

skipif mysql # not compatible
query I rowsort label-8480
SELECT ALL - NULLIF ( - 17, + + COUNT ( * ) ) + 13 AS col1
----
30

query I rowsort
SELECT + - 27 * COALESCE ( - 18, + - 64 * - 80 * - 57, + 0 + + 17 ) col2
----
486

query II rowsort
SELECT DISTINCT 92 + + + 13, 36 AS col2
----
105
36

query I rowsort
SELECT DISTINCT 1 + - - 84
----
85

query I rowsort
SELECT + 89 - + 64 AS col2
----
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8485
SELECT - + COALESCE ( + CASE + NULLIF ( + - CAST( NULL AS SIGNED ), + NULLIF ( + - 98, + ( 4 ) + + 32 + + + 27 * 87 ) ) WHEN - 63 THEN 37 * + - 1 + 86 END, 32 )
----
-32

skipif mysql # not compatible
query I rowsort label-8485
SELECT - + COALESCE ( + CASE + NULLIF ( + - CAST ( NULL AS INTEGER ), + NULLIF ( + - 98, + ( 4 ) + + 32 + + + 27 * 87 ) ) WHEN - 63 THEN 37 * + - 1 + 86 END, 32 )
----
-32

onlyif mysql # DIV for integer division: 
query I rowsort label-8486
SELECT - - NULLIF ( + - 66, - 24 * 44 ) DIV - 89 + - 55
----
-55

skipif mysql # not compatible
query I rowsort label-8486
SELECT - - NULLIF ( + - 66, - 24 * 44 ) / - 89 + - 55
----
-55

query I rowsort
SELECT DISTINCT + - ( + 68 ) * + ( - - 48 )
----
-3264

onlyif mysql # DIV for integer division: 
query I rowsort label-8488
SELECT DISTINCT 91 DIV + 25 - + 3
----
0

skipif mysql # not compatible
query I rowsort label-8488
SELECT DISTINCT 91 / + 25 - + 3
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8489
SELECT - - 67 * + - COUNT( * ) * 7 + - - COUNT( * ) * - 90
----
-559

skipif mysql # not compatible
query I rowsort label-8489
SELECT - - 67 * + - COUNT ( * ) * 7 + - - COUNT ( * ) * - 90
----
-559

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8490
SELECT ALL + + CASE - - COUNT( * ) WHEN - 98 THEN NULL WHEN - - CAST( NULL AS SIGNED ) * + - ( 15 ) * + - 31 THEN + 71 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8490
SELECT ALL + + CASE - - COUNT ( * ) WHEN - 98 THEN NULL WHEN - - CAST ( NULL AS INTEGER ) * + - ( 15 ) * + - 31 THEN + 71 ELSE NULL END
----
NULL

query I rowsort
SELECT ALL ( 36 ) * - NULLIF ( - - 2, + ( - 32 ) + + 87 ) + + 41 * + NULLIF ( + 8, + + COALESCE ( 50, 95 ) ) * - ( - - 8 )
----
-2696

onlyif mysql # aggregate syntax: 
query I rowsort label-8492
SELECT ALL - 87 * + - SUM( - 45 ) col0
----
-3915

skipif mysql # not compatible
query I rowsort label-8492
SELECT ALL - 87 * + - SUM ( - 45 ) col0
----
-3915

onlyif mysql # aggregate syntax: 
query I rowsort label-8493
SELECT DISTINCT 31 * + MAX( ALL + ( - - 97 ) ) AS col0
----
3007

skipif mysql # not compatible
query I rowsort label-8493
SELECT DISTINCT 31 * + MAX ( ALL + ( - - 97 ) ) AS col0
----
3007

query I rowsort
SELECT + + 6 * - 55
----
-330

onlyif mysql # DIV for integer division: 
query I rowsort label-8495
SELECT - 57 * - 85 + 47 - + + 85 DIV 78
----
4891

skipif mysql # not compatible
query I rowsort label-8495
SELECT - 57 * - 85 + 47 - + + 85 / 78
----
4891

onlyif mysql # DIV for integer division: 
query I rowsort label-8496
SELECT - 88 DIV - + 71 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8496
SELECT - 88 / - + 71 AS col1
----
1

query I rowsort
SELECT - 32 + - - 12 AS col2
----
-20

query I rowsort
SELECT - 61 * + - 69 - + 12 AS col2
----
4197

onlyif mysql # aggregate syntax: 
query I rowsort label-8499
SELECT ALL + MIN( DISTINCT 80 )
----
80

skipif mysql # not compatible
query I rowsort label-8499
SELECT ALL + MIN ( DISTINCT 80 )
----
80

query I rowsort
SELECT - 22 + - 62 AS col0
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-8501
SELECT NULLIF ( - COUNT( * ), 23 + - + 42 - + 9 )
----
-1

skipif mysql # not compatible
query I rowsort label-8501
SELECT NULLIF ( - COUNT ( * ), 23 + - + 42 - + 9 )
----
-1

query I rowsort
SELECT - NULLIF ( + 25, - 8 ) * + + ( 44 ) + 3 col1
----
-1097

query II rowsort
SELECT ALL + 57 AS col1, 56 * - - 85 AS col1
----
57
4760

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8504
SELECT DISTINCT + SUM( DISTINCT + + 58 ) * + CASE - COUNT( * ) WHEN 27 * - CASE COUNT( * ) WHEN - ( 96 ) / ( + ( - + 4 ) ) THEN + - 49 WHEN + 51 THEN NULL END THEN + 64 WHEN - 3 * + + ( + 73 ) - 84 * + 82 THEN COALESCE ( ( ( 82 ) ), - 88 * 5 ) WHEN 78 * + 46 + - CAST( + COUNT( * ) AS DECIMAL ) THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8504
SELECT DISTINCT + SUM ( DISTINCT + + 58 ) * + CASE - COUNT ( * ) WHEN 27 * - CASE COUNT ( * ) WHEN - ( 96 ) / ( + ( - + 4 ) ) THEN + - 49 WHEN + 51 THEN NULL END THEN + 64 WHEN - 3 * + + ( + 73 ) - 84 * + 82 THEN COALESCE ( ( ( 82 ) ), - 88 * 5 ) WHEN 78 * + 46 + - CAST ( + COUNT ( * ) AS REAL ) THEN NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8505
SELECT ALL + 41 * + - ( + + 41 ) * - COUNT( - 43 ) + + + 84 + + - 96 AS col1
----
1669

skipif mysql # not compatible
query I rowsort label-8505
SELECT ALL + 41 * + - ( + + 41 ) * - COUNT ( - 43 ) + + + 84 + + - 96 AS col1
----
1669

onlyif mysql # aggregate syntax: 
query II rowsort label-8506
SELECT + 32, SUM( DISTINCT + - 38 ) AS col0
----
32
-38

skipif mysql # not compatible
query II rowsort label-8506
SELECT + 32, SUM ( DISTINCT + - 38 ) AS col0
----
32
-38

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8507
SELECT DISTINCT CAST( NULL AS DECIMAL ) AS col0, - 31
----
NULL
-31

skipif mysql # not compatible
query II rowsort label-8507
SELECT DISTINCT CAST ( NULL AS REAL ) AS col0, - 31
----
NULL
-31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8508
SELECT - 67 * - COUNT( * ) + CAST( - 60 AS SIGNED ) col1
----
7

skipif mysql # not compatible
query I rowsort label-8508
SELECT - 67 * - COUNT ( * ) + CAST ( - 60 AS INTEGER ) col1
----
7

query I rowsort
SELECT + 14 + - 80 AS col1
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-8510
SELECT ALL 98 * 87 + - ( - + 26 ) + + 82 * - 99 * + 19 * COUNT( * ) + 58
----
-145632

skipif mysql # not compatible
query I rowsort label-8510
SELECT ALL 98 * 87 + - ( - + 26 ) + + 82 * - 99 * + 19 * COUNT ( * ) + 58
----
-145632

query I rowsort
SELECT + 19 + - + 57
----
-38

query I rowsort
SELECT - CASE - - 79 WHEN + - 17 THEN - - 28 * - 59 / - 41 END AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8513
SELECT ALL CAST( + 10 AS SIGNED )
----
10

skipif mysql # not compatible
query I rowsort label-8513
SELECT ALL CAST ( + 10 AS INTEGER )
----
10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8514
SELECT DISTINCT - COUNT( * ) DIV - 23
----
0

skipif mysql # not compatible
query I rowsort label-8514
SELECT DISTINCT - COUNT ( * ) / - 23
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8515
SELECT COALESCE ( 44, + 13, + - CAST( + + 6 AS SIGNED ), + COUNT( * ) + 93, - - 45 ), - 62 + - + 10 DIV 12 * 10 col0
----
44
-62

skipif mysql # not compatible
query II rowsort label-8515
SELECT COALESCE ( 44, + 13, + - CAST ( + + 6 AS INTEGER ), + COUNT ( * ) + 93, - - 45 ), - 62 + - + 10 / 12 * 10 col0
----
44
-62

query II rowsort
SELECT + 71 AS col0, 12 AS col2
----
71
12

onlyif mysql # aggregate syntax: 
query I rowsort label-8517
SELECT ALL COUNT( * ) + + + 60
----
61

skipif mysql # not compatible
query I rowsort label-8517
SELECT ALL COUNT ( * ) + + + 60
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-8518
SELECT - + ( 29 ) + 66 * - - COUNT( * )
----
37

skipif mysql # not compatible
query I rowsort label-8518
SELECT - + ( 29 ) + 66 * - - COUNT ( * )
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-8519
SELECT DISTINCT - 84 * - NULLIF ( - COUNT( * ), - COUNT( * ) + + 66 / + + 18 + + - 63 ) * - - 35 - 42 * + 64
----
-5628

skipif mysql # not compatible
query I rowsort label-8519
SELECT DISTINCT - 84 * - NULLIF ( - COUNT ( * ), - COUNT ( * ) + + 66 / + + 18 + + - 63 ) * - - 35 - 42 * + 64
----
-5628

query I rowsort
SELECT - - 20 + - + 16
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8521
SELECT ALL MAX( - + CAST( 96 AS SIGNED ) )
----
-96

skipif mysql # not compatible
query I rowsort label-8521
SELECT ALL MAX ( - + CAST ( 96 AS INTEGER ) )
----
-96

query I rowsort
SELECT + + 46 + - NULLIF ( + + 5, + 71 ) AS col1
----
41

query I rowsort
SELECT + - 40 + + + COALESCE ( + 15, - 54 )
----
-25

query I rowsort
SELECT + 74 * - - 88 AS col1
----
6512

onlyif mysql # aggregate syntax: 
query II rowsort label-8525
SELECT - NULLIF ( 36, + - COUNT( DISTINCT - + 46 ) ) AS col0, 35 AS col2
----
-36
35

skipif mysql # not compatible
query II rowsort label-8525
SELECT - NULLIF ( 36, + - COUNT ( DISTINCT - + 46 ) ) AS col0, 35 AS col2
----
-36
35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8526
SELECT DISTINCT + CAST( NULL AS SIGNED ) - + 14 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8526
SELECT DISTINCT + CAST ( NULL AS INTEGER ) - + 14 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8527
SELECT DISTINCT SUM( + 41 ) AS col2
----
41

skipif mysql # not compatible
query I rowsort label-8527
SELECT DISTINCT SUM ( + 41 ) AS col2
----
41

query I rowsort
SELECT - 63 + - 50
----
-113

query I rowsort
SELECT 69 + 88 * - 75 * + 52 + 79
----
-343052

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8530
SELECT + CASE + + 93 WHEN - 51 * + CAST( NULL AS DECIMAL ) THEN NULL WHEN + 71 THEN + - COUNT( * ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8530
SELECT + CASE + + 93 WHEN - 51 * + CAST ( NULL AS REAL ) THEN NULL WHEN + 71 THEN + - COUNT ( * ) END AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8531
SELECT DISTINCT 4 DIV - CAST( 35 AS SIGNED ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8531
SELECT DISTINCT 4 / - CAST ( 35 AS INTEGER ) AS col2
----
0

query I rowsort
SELECT 6 * - + 94 AS col1
----
-564

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8533
SELECT ALL - CASE + 0 WHEN - 36 - - COUNT( * ) THEN CAST( NULL AS SIGNED ) + 6 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8533
SELECT ALL - CASE + 0 WHEN - 36 - - COUNT ( * ) THEN CAST ( NULL AS INTEGER ) + 6 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8534
SELECT ALL + MAX( ALL - 46 ) + + COUNT( * ) AS col0
----
-45

skipif mysql # not compatible
query I rowsort label-8534
SELECT ALL + MAX ( ALL - 46 ) + + COUNT ( * ) AS col0
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-8535
SELECT ( - NULLIF ( ( - - MAX( ( + COALESCE ( - 4, - - 2 ) ) ) ), + + 67 ) ) - 95
----
-91

skipif mysql # not compatible
query I rowsort label-8535
SELECT ( - NULLIF ( ( - - MAX ( ( + COALESCE ( - 4, - - 2 ) ) ) ), + + 67 ) ) - 95
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-8536
SELECT ALL + CASE + - 71 WHEN 39 THEN + 52 WHEN + COALESCE ( - 73, + - CASE + - 68 WHEN + 46 * - 39 THEN NULL WHEN - 37 + + COUNT( * ) * + 84 + COUNT( * ) - + 25 / + 23 * - ( - ( - 3 ) ) THEN NULL ELSE + 90 * - 73 END * - 96 - - 9, 94 * + 78 ) THEN NULL ELSE - 15 END + + 28
----
13

skipif mysql # not compatible
query I rowsort label-8536
SELECT ALL + CASE + - 71 WHEN 39 THEN + 52 WHEN + COALESCE ( - 73, + - CASE + - 68 WHEN + 46 * - 39 THEN NULL WHEN - 37 + + COUNT ( * ) * + 84 + COUNT ( * ) - + 25 / + 23 * - ( - ( - 3 ) ) THEN NULL ELSE + 90 * - 73 END * - 96 - - 9, 94 * + 78 ) THEN NULL ELSE - 15 END + + 28
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-8537
SELECT 78 * + 6 * COUNT( * ) - + 66 * 25 * 2 AS col2
----
-2832

skipif mysql # not compatible
query I rowsort label-8537
SELECT 78 * + 6 * COUNT ( * ) - + 66 * 25 * 2 AS col2
----
-2832

query I rowsort
SELECT 57 * - 72 * 81 AS col1
----
-332424

onlyif mysql # aggregate syntax: 
query I rowsort label-8539
SELECT DISTINCT + 51 + + - MAX( + + ( + 36 ) ) * 20
----
-669

skipif mysql # not compatible
query I rowsort label-8539
SELECT DISTINCT + 51 + + - MAX ( + + ( + 36 ) ) * 20
----
-669

onlyif mysql # aggregate syntax: 
query I rowsort label-8540
SELECT - 63 * - ( ( 87 ) ) / + CASE + - COUNT( ALL + 53 ) WHEN + 71 THEN + + MIN( - 33 ) * - - 66 + + - 72 ELSE NULL END * + 89 - - + 31 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8540
SELECT - 63 * - ( ( 87 ) ) / + CASE + - COUNT ( ALL + 53 ) WHEN + 71 THEN + + MIN ( - 33 ) * - - 66 + + - 72 ELSE NULL END * + 89 - - + 31 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8541
SELECT DISTINCT + 33 + - + CAST( 88 AS SIGNED ) AS col2
----
-55

skipif mysql # not compatible
query I rowsort label-8541
SELECT DISTINCT + 33 + - + CAST ( 88 AS INTEGER ) AS col2
----
-55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8542
SELECT DISTINCT + ( CAST( NULL AS SIGNED ) ) + - 68 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8542
SELECT DISTINCT + ( CAST ( NULL AS INTEGER ) ) + - 68 AS col0
----
NULL

query I rowsort
SELECT 56 - + + 59 * - 89
----
5307

query I rowsort
SELECT ALL + 6 * + 48 AS col1
----
288

query I rowsort
SELECT ALL - - ( - 71 ) - + 37 + + + 62 * 9 AS col0
----
450

onlyif mysql # aggregate syntax: 
query I rowsort label-8546
SELECT + ( + ( + - COUNT( * ) ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-8546
SELECT + ( + ( + - COUNT ( * ) ) ) AS col1
----
-1

query I rowsort
SELECT 43 + - 6
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-8548
SELECT 92 * - 38 + 53 * - COUNT( * )
----
-3549

skipif mysql # not compatible
query I rowsort label-8548
SELECT 92 * - 38 + 53 * - COUNT ( * )
----
-3549

onlyif mysql # aggregate syntax: 
query I rowsort label-8549
SELECT DISTINCT COALESCE ( + - COALESCE ( - MIN( 79 ), - ( - 4 ) * - COUNT( * ) - 31, - + 74 ), - 29, + 59 * + 66 ) AS col2
----
79

skipif mysql # not compatible
query I rowsort label-8549
SELECT DISTINCT COALESCE ( + - COALESCE ( - MIN ( 79 ), - ( - 4 ) * - COUNT ( * ) - 31, - + 74 ), - 29, + 59 * + 66 ) AS col2
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-8550
SELECT DISTINCT + ( + SUM( - 98 ) ) AS col1
----
-98

skipif mysql # not compatible
query I rowsort label-8550
SELECT DISTINCT + ( + SUM ( - 98 ) ) AS col1
----
-98

query I rowsort
SELECT DISTINCT ( - 90 ) AS col1
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-8552
SELECT ALL 64 * + COUNT( * ) * - - 3
----
192

skipif mysql # not compatible
query I rowsort label-8552
SELECT ALL 64 * + COUNT ( * ) * - - 3
----
192

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8553
SELECT COUNT( * ) - + + 73 AS col0, 63 + + 23 + + - 37 DIV 60 - - 64 AS col2
----
-72
150

skipif mysql # not compatible
query II rowsort label-8553
SELECT COUNT ( * ) - + + 73 AS col0, 63 + + 23 + + - 37 / 60 - - 64 AS col2
----
-72
150

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8554
SELECT + 87 - + COUNT( * ) * + ( - CASE - + 39 WHEN - - 52 THEN 99 + - + 45 + - 43 DIV CASE - 64 WHEN - - COALESCE ( + 69, - - 10 + + 21 ) THEN NULL WHEN 42 * + 56 THEN 87 ELSE NULL END ELSE - CASE - 16 WHEN COALESCE ( 88, - 99 DIV + 7 ) * 0 THEN - COUNT( * ) WHEN + 75 THEN - 26 + 82 WHEN 96 THEN NULL ELSE + 9 - 79 END END ) + 73 AS col1
----
230

skipif mysql # not compatible
query I rowsort label-8554
SELECT + 87 - + COUNT ( * ) * + ( - CASE - + 39 WHEN - - 52 THEN 99 + - + 45 + - 43 / CASE - 64 WHEN - - COALESCE ( + 69, - - 10 + + 21 ) THEN NULL WHEN 42 * + 56 THEN 87 ELSE NULL END ELSE - CASE - 16 WHEN COALESCE ( 88, - 99 / + 7 ) * 0 THEN - COUNT ( * ) WHEN + 75 THEN - 26 + 82 WHEN 96 THEN NULL ELSE + 9 - 79 END END ) + 73 AS col1
----
230

onlyif mysql # DIV for integer division: 
query I rowsort label-8555
SELECT + 61 DIV - 68 + - + 42 * + - 52 AS col2
----
2184

skipif mysql # not compatible
query I rowsort label-8555
SELECT + 61 / - 68 + - + 42 * + - 52 AS col2
----
2184

onlyif mysql # aggregate syntax: 
query I rowsort label-8556
SELECT CASE 84 WHEN 55 * 44 * - 11 THEN 9 * - - 1 * + 90 / + + 79 * - 98 WHEN NULLIF ( + 16, + COUNT( * ) * COUNT( * ) * ( + + 8 ) ) THEN + 3 * - 92 * - - 29 + + 58 END + - 94 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8556
SELECT CASE 84 WHEN 55 * 44 * - 11 THEN 9 * - - 1 * + 90 / + + 79 * - 98 WHEN NULLIF ( + 16, + COUNT ( * ) * COUNT ( * ) * ( + + 8 ) ) THEN + 3 * - 92 * - - 29 + + 58 END + - 94 col1
----
NULL

query I rowsort
SELECT ( - 73 ) * + 2 * + 34
----
-4964

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8558
SELECT ALL 53 * + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8558
SELECT ALL 53 * + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 15 * - 53 AS col1
----
-795

query I rowsort
SELECT ALL 81 + - 73
----
8

onlyif mysql # aggregate syntax: 
query II rowsort label-8561
SELECT DISTINCT COUNT( * ) + MAX( DISTINCT - 39 ) AS col1, 55
----
-38
55

skipif mysql # not compatible
query II rowsort label-8561
SELECT DISTINCT COUNT ( * ) + MAX ( DISTINCT - 39 ) AS col1, 55
----
-38
55

query I rowsort
SELECT ALL ( + - 36 ) + + 99 * 5 AS col0
----
459

query I rowsort
SELECT 41 * + 23 col2
----
943

onlyif mysql # aggregate syntax: 
query I rowsort label-8564
SELECT MAX( + + 92 ) AS col2
----
92

skipif mysql # not compatible
query I rowsort label-8564
SELECT MAX ( + + 92 ) AS col2
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-8565
SELECT + MIN( - 20 ) col1
----
-20

skipif mysql # not compatible
query I rowsort label-8565
SELECT + MIN ( - 20 ) col1
----
-20

query I rowsort
SELECT ALL ( - 39 ) + - - 51 AS col0
----
12

onlyif mysql # DIV for integer division: 
query I rowsort label-8567
SELECT + 97 * + ( 4 ) - - 38 DIV + + 2
----
407

skipif mysql # not compatible
query I rowsort label-8567
SELECT + 97 * + ( 4 ) - - 38 / + + 2
----
407

onlyif mysql # aggregate syntax: 
query I rowsort label-8568
SELECT ALL 14 + + + COUNT( * )
----
15

skipif mysql # not compatible
query I rowsort label-8568
SELECT ALL 14 + + + COUNT ( * )
----
15

query I rowsort
SELECT ALL 20 * 82 col2
----
1640

onlyif mysql # DIV for integer division: 
query I rowsort label-8570
SELECT ALL 32 DIV 60 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8570
SELECT ALL 32 / 60 AS col2
----
0

query I rowsort
SELECT ALL + 47 + + + 32 col0
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-8572
SELECT + MIN( - 76 ) col2
----
-76

skipif mysql # not compatible
query I rowsort label-8572
SELECT + MIN ( - 76 ) col2
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-8573
SELECT DISTINCT MAX( + 92 ) * - - COUNT( * )
----
92

skipif mysql # not compatible
query I rowsort label-8573
SELECT DISTINCT MAX ( + 92 ) * - - COUNT ( * )
----
92

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8574
SELECT DISTINCT CAST( NULL AS DECIMAL ) + - 97 / - 47 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8574
SELECT DISTINCT CAST ( NULL AS REAL ) + - 97 / - 47 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8575
SELECT DISTINCT - ( - - MAX( - + ( + + 13 ) ) )
----
13

skipif mysql # not compatible
query I rowsort label-8575
SELECT DISTINCT - ( - - MAX ( - + ( + + 13 ) ) )
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-8576
SELECT 66 + - COUNT( * ) - - 67 * 83 - COUNT( * ) AS col2
----
5625

skipif mysql # not compatible
query I rowsort label-8576
SELECT 66 + - COUNT ( * ) - - 67 * 83 - COUNT ( * ) AS col2
----
5625

query I rowsort
SELECT ALL 61 - - - 59 + - + ( 6 )
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-8578
SELECT + MAX( ALL 77 )
----
77

skipif mysql # not compatible
query I rowsort label-8578
SELECT + MAX ( ALL 77 )
----
77

query II rowsort
SELECT 7 col2, 34 AS col0
----
7
34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8580
SELECT + 15 * + CAST( NULL AS SIGNED ) + + - SUM( ALL + ( + 90 ) ) + + 63
----
NULL

skipif mysql # not compatible
query I rowsort label-8580
SELECT + 15 * + CAST ( NULL AS INTEGER ) + + - SUM ( ALL + ( + 90 ) ) + + 63
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8581
SELECT + ( + + 67 ) * + 16 - + SUM( DISTINCT 67 ) DIV - + 70 AS col0
----
1072

skipif mysql # not compatible
query I rowsort label-8581
SELECT + ( + + 67 ) * + 16 - + SUM ( DISTINCT 67 ) / - + 70 AS col0
----
1072

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8582
SELECT CAST( NULL AS SIGNED ) * + CASE WHEN NOT + ( + 45 ) IS NULL THEN NULL WHEN NOT 83 <> NULL THEN 60 / + 49 / CAST( - + 21 AS SIGNED ) / + COALESCE ( 32, - - 50 + + 96 + + 0 ) + - 45 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8582
SELECT CAST ( NULL AS INTEGER ) * + CASE WHEN NOT + ( + 45 ) IS NULL THEN NULL WHEN NOT 83 <> NULL THEN 60 / + 49 / CAST ( - + 21 AS INTEGER ) / + COALESCE ( 32, - - 50 + + 96 + + 0 ) + - 45 END
----
NULL

query I rowsort
SELECT - 69 + 48
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-8584
SELECT ALL 43 - - COUNT( * ) AS col2
----
44

skipif mysql # not compatible
query I rowsort label-8584
SELECT ALL 43 - - COUNT ( * ) AS col2
----
44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8585
SELECT ALL + 35 DIV + COUNT( * )
----
35

skipif mysql # not compatible
query I rowsort label-8585
SELECT ALL + 35 / + COUNT ( * )
----
35

query I rowsort
SELECT ALL - + 64 - 54
----
-118

query I rowsort
SELECT 6 * + + 62
----
372

query I rowsort
SELECT 37 + - 97 AS col1
----
-60

query II rowsort
SELECT DISTINCT 51 AS col0, 26 + - 97 + + 4 AS col0
----
51
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-8590
SELECT - + 63 + - + COUNT( * )
----
-64

skipif mysql # not compatible
query I rowsort label-8590
SELECT - + 63 + - + COUNT ( * )
----
-64

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8591
SELECT ALL - 27 AS col1, 5 - - - CAST( NULL AS DECIMAL ) * + ( + - 87 )
----
-27
NULL

skipif mysql # not compatible
query II rowsort label-8591
SELECT ALL - 27 AS col1, 5 - - - CAST ( NULL AS REAL ) * + ( + - 87 )
----
-27
NULL

query I rowsort
SELECT + - CASE 14 WHEN - - 58 THEN 84 END * 47 * + ( + 7 ) AS col1
----
NULL

query I rowsort
SELECT - - 88 + - + 28 AS col1
----
60

query I rowsort
SELECT - 71 + 16 AS col1
----
-55

query I rowsort
SELECT DISTINCT - 50 * - 61
----
3050

onlyif mysql # aggregate syntax: 
query I rowsort label-8596
SELECT - 98 * - ( COUNT( * ) ) + + 47 col0
----
145

skipif mysql # not compatible
query I rowsort label-8596
SELECT - 98 * - ( COUNT ( * ) ) + + 47 col0
----
145

onlyif mysql # aggregate syntax: 
query I rowsort label-8597
SELECT DISTINCT - ( + + 15 ) * + COUNT( * ) + - 39 + + COUNT( * ) + + + 53 + - ( - 38 )
----
38

skipif mysql # not compatible
query I rowsort label-8597
SELECT DISTINCT - ( + + 15 ) * + COUNT ( * ) + - 39 + + COUNT ( * ) + + + 53 + - ( - 38 )
----
38

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8598
SELECT ALL + CAST( NULL AS SIGNED ) + - 75 - 76 + - ( 87 ) + + 18 AS col1, 90 col1
----
NULL
90

skipif mysql # not compatible
query II rowsort label-8598
SELECT ALL + CAST ( NULL AS INTEGER ) + - 75 - 76 + - ( 87 ) + + 18 AS col1, 90 col1
----
NULL
90

query I rowsort
SELECT - - 36 + 94 AS col1
----
130

query I rowsort
SELECT ALL + - ( + - 51 ) + + ( + 94 )
----
145

query I rowsort
SELECT ALL + 56 + 61 AS col0
----
117

query I rowsort
SELECT ALL 63 + + ( + - 30 )
----
33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8603
SELECT - 69 + + 53 + - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8603
SELECT - 69 + + 53 + - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8604
SELECT DISTINCT + 23 DIV + 17 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8604
SELECT DISTINCT + 23 / + 17 AS col0
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8605
SELECT + 45 DIV + + COUNT( - + 1 ) AS col1
----
45

skipif mysql # not compatible
query I rowsort label-8605
SELECT + 45 / + + COUNT ( - + 1 ) AS col1
----
45

query I rowsort
SELECT - 57 * - + 38 AS col0
----
2166

onlyif mysql # aggregate syntax: 
query I rowsort label-8607
SELECT + MIN( 73 ) * + 99 AS col2
----
7227

skipif mysql # not compatible
query I rowsort label-8607
SELECT + MIN ( 73 ) * + 99 AS col2
----
7227

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8608
SELECT - 33 * NULLIF ( 93, + 11 + - + CAST( NULL AS SIGNED ) )
----
-3069

skipif mysql # not compatible
query I rowsort label-8608
SELECT - 33 * NULLIF ( 93, + 11 + - + CAST ( NULL AS INTEGER ) )
----
-3069

onlyif mysql # DIV for integer division: 
query I rowsort label-8609
SELECT - 9 DIV - + 8 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8609
SELECT - 9 / - + 8 AS col2
----
1

query I rowsort
SELECT - 26 * ( - 33 )
----
858

query I rowsort
SELECT ALL + 6 * + ( 62 ) AS col2
----
372

query I rowsort
SELECT ALL + 82 * - - 66 + 80 AS col2
----
5492

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8613
SELECT DISTINCT - 49 * - - 12 - + 40 DIV + MAX( DISTINCT - 55 )
----
-588

skipif mysql # not compatible
query I rowsort label-8613
SELECT DISTINCT - 49 * - - 12 - + 40 / + MAX ( DISTINCT - 55 )
----
-588

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8614
SELECT ALL + CAST( + 99 AS SIGNED ) col0
----
99

skipif mysql # not compatible
query I rowsort label-8614
SELECT ALL + CAST ( + 99 AS INTEGER ) col0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8615
SELECT - 67 * + - COUNT( * )
----
67

skipif mysql # not compatible
query I rowsort label-8615
SELECT - 67 * + - COUNT ( * )
----
67

onlyif mysql # DIV for integer division: 
query II rowsort label-8616
SELECT ALL + 7 AS col1, 20 DIV - - 24
----
7
0

skipif mysql # not compatible
query II rowsort label-8616
SELECT ALL + 7 AS col1, 20 / - - 24
----
7
0

query II rowsort
SELECT ALL + 17 AS col0, - 69 * - - 41 AS col0
----
17
-2829

query I rowsort
SELECT 52 * 63 - + 56 * + 93 + - 18 AS col2
----
-1950

onlyif mysql # aggregate syntax: 
query I rowsort label-8619
SELECT + NULLIF ( - 69, - + 57 - 18 + - 47 ) + + ( - COUNT( * ) ) * - ( + - 0 ) + - + COUNT( * ) AS col2
----
-70

skipif mysql # not compatible
query I rowsort label-8619
SELECT + NULLIF ( - 69, - + 57 - 18 + - 47 ) + + ( - COUNT ( * ) ) * - ( + - 0 ) + - + COUNT ( * ) AS col2
----
-70

query I rowsort
SELECT DISTINCT 48 * + - 35 AS col1
----
-1680

query I rowsort
SELECT + NULLIF ( + 69, 69 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8622
SELECT + + ( 56 ) DIV + 95 + + - NULLIF ( - COUNT( * ), + 55 + 52 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8622
SELECT + + ( 56 ) / + 95 + + - NULLIF ( - COUNT ( * ), + 55 + 52 ) AS col0
----
1

query I rowsort
SELECT ALL + 72 * - 59
----
-4248

onlyif mysql # DIV for integer division: 
query I rowsort label-8624
SELECT + + 23 DIV + ( 74 )
----
0

skipif mysql # not compatible
query I rowsort label-8624
SELECT + + 23 / + ( 74 )
----
0

query III rowsort
SELECT - 35, - 53 AS col1, + ( 58 ) * + 70 - 68 + + 46 * 62 + + 43 * 8 * + ( + 87 ) - 62 AS col2
----
-35
-53
36710

query I rowsort
SELECT - 30 * - 95
----
2850

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8627
SELECT DISTINCT + 79 + 0 + - - CASE + 53 WHEN - 15 * CAST( + SUM( ALL + 42 ) AS SIGNED ) * + 40 THEN + ( + + MIN( ALL 98 ) ) + - 77 + 96 ELSE NULL END * - - ( ( + 56 ) ) * COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8627
SELECT DISTINCT + 79 + 0 + - - CASE + 53 WHEN - 15 * CAST ( + SUM ( ALL + 42 ) AS INTEGER ) * + 40 THEN + ( + + MIN ( ALL 98 ) ) + - 77 + 96 ELSE NULL END * - - ( ( + 56 ) ) * COUNT ( * ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8628
SELECT + 82 DIV - - 68 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8628
SELECT + 82 / - - 68 AS col0
----
1

query I rowsort
SELECT ALL + 46 + + + 75 - + 38 + + + NULLIF ( + 19, - 66 ) * + 43 * - + 25 - + - 81 + + 56 AS col2
----
-20205

onlyif mysql # aggregate syntax: 
query II rowsort label-8630
SELECT - - COUNT( * ) AS col0, 83 * + 77
----
1
6391

skipif mysql # not compatible
query II rowsort label-8630
SELECT - - COUNT ( * ) AS col0, 83 * + 77
----
1
6391

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8631
SELECT DISTINCT - 54 * - - CAST( - 63 AS SIGNED )
----
3402

skipif mysql # not compatible
query I rowsort label-8631
SELECT DISTINCT - 54 * - - CAST ( - 63 AS INTEGER )
----
3402

onlyif mysql # aggregate syntax: 
query I rowsort label-8632
SELECT ALL + 96 + + COUNT( * ) + - 49
----
48

skipif mysql # not compatible
query I rowsort label-8632
SELECT ALL + 96 + + COUNT ( * ) + - 49
----
48

query I rowsort
SELECT DISTINCT - + 69 + + + 19
----
-50

query I rowsort
SELECT ALL + ( - - 14 )
----
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8635
SELECT + 71 - + COUNT( * ) + ( + CASE - 19 WHEN 19 + + AVG ( 87 ) + + 6 + + 10 + + 20 + - CAST( NULL AS SIGNED ) THEN NULL ELSE 58 END ) - + - 57 * COUNT( * ) AS col1
----
185

skipif mysql # not compatible
query I rowsort label-8635
SELECT + 71 - + COUNT ( * ) + ( + CASE - 19 WHEN 19 + + AVG ( 87 ) + + 6 + + 10 + + 20 + - CAST ( NULL AS INTEGER ) THEN NULL ELSE 58 END ) - + - 57 * COUNT ( * ) AS col1
----
185

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8636
SELECT ALL - MAX( ALL 10 ) + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8636
SELECT ALL - MAX ( ALL 10 ) + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + 57 + + 86
----
143

onlyif mysql # aggregate syntax: 
query I rowsort label-8638
SELECT - MIN( + 81 ) AS col0
----
-81

skipif mysql # not compatible
query I rowsort label-8638
SELECT - MIN ( + 81 ) AS col0
----
-81

query I rowsort
SELECT ALL + 19 * + 83
----
1577

onlyif mysql # aggregate syntax: 
query II rowsort label-8640
SELECT - COUNT( * ) * - 39 * - 87 AS col0, 40
----
-3393
40

skipif mysql # not compatible
query II rowsort label-8640
SELECT - COUNT ( * ) * - 39 * - 87 AS col0, 40
----
-3393
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8641
SELECT - 9 + + CAST( - 30 AS SIGNED )
----
-39

skipif mysql # not compatible
query I rowsort label-8641
SELECT - 9 + + CAST ( - 30 AS INTEGER )
----
-39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8642
SELECT ALL - 46 - - + COUNT( ALL 29 ) DIV + COALESCE ( - 62, - 61 * - 48 - - + 23 * - 59 - 53, + + 43 )
----
-46

skipif mysql # not compatible
query I rowsort label-8642
SELECT ALL - 46 - - + COUNT ( ALL 29 ) / + COALESCE ( - 62, - 61 * - 48 - - + 23 * - 59 - 53, + + 43 )
----
-46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8643
SELECT DISTINCT CAST( + 85 AS SIGNED )
----
85

skipif mysql # not compatible
query I rowsort label-8643
SELECT DISTINCT CAST ( + 85 AS INTEGER )
----
85

query I rowsort
SELECT ALL + ( 24 ) * 44 AS col1
----
1056

onlyif mysql # DIV for integer division: 
query I rowsort label-8645
SELECT DISTINCT 51 DIV 24 - - - 37 col2
----
-35

skipif mysql # not compatible
query I rowsort label-8645
SELECT DISTINCT 51 / 24 - - - 37 col2
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-8646
SELECT DISTINCT + CASE - - COALESCE ( 79, - + COUNT( * ), + - 88 * + COUNT( * ) + 50 ) WHEN 82 THEN + 48 + - 77 WHEN 4 THEN NULL ELSE NULL END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8646
SELECT DISTINCT + CASE - - COALESCE ( 79, - + COUNT ( * ), + - 88 * + COUNT ( * ) + 50 ) WHEN 82 THEN + 48 + - 77 WHEN 4 THEN NULL ELSE NULL END col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8647
SELECT - CASE + 15 WHEN 23 * + 88 / + - CASE + 11 WHEN + - 33 + 9 * 30 * - 63 + - 9 THEN + 12 WHEN - 63 THEN - - 61 WHEN - - ( + + SUM( - CAST( 63 AS SIGNED ) ) ) THEN NULL END + COUNT( * ) THEN - - COUNT( * ) * 70 / - - 68 END + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8647
SELECT - CASE + 15 WHEN 23 * + 88 / + - CASE + 11 WHEN + - 33 + 9 * 30 * - 63 + - 9 THEN + 12 WHEN - 63 THEN - - 61 WHEN - - ( + + SUM ( - CAST ( 63 AS INTEGER ) ) ) THEN NULL END + COUNT ( * ) THEN - - COUNT ( * ) * 70 / - - 68 END + COUNT ( * ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8648
SELECT DISTINCT + 75 / - + CASE - 93 WHEN - - 66 + + ( + 74 ) THEN + 85 WHEN - - COALESCE ( - - SUM( 51 ), - 59 ) THEN NULL WHEN - - ( + ( - 89 ) ) + + + 94 THEN NULL ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8648
SELECT DISTINCT + 75 / - + CASE - 93 WHEN - - 66 + + ( + 74 ) THEN + 85 WHEN - - COALESCE ( - - SUM ( 51 ), - 59 ) THEN NULL WHEN - - ( + ( - 89 ) ) + + + 94 THEN NULL ELSE NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8649
SELECT 84 / + AVG ( ALL - + CAST( ( 54 ) AS SIGNED ) ) + - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8649
SELECT 84 / + AVG ( ALL - + CAST ( ( 54 ) AS INTEGER ) ) + - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8650
SELECT ALL + 57 * COUNT( - 83 ) * + + 77
----
4389

skipif mysql # not compatible
query I rowsort label-8650
SELECT ALL + 57 * COUNT ( - 83 ) * + + 77
----
4389

onlyif mysql # aggregate syntax: 
query I rowsort label-8651
SELECT ALL + 48 * - - COUNT( * ) * 15 AS col2
----
720

skipif mysql # not compatible
query I rowsort label-8651
SELECT ALL + 48 * - - COUNT ( * ) * 15 AS col2
----
720

onlyif mysql # aggregate syntax: 
query I rowsort label-8652
SELECT - ( COUNT( * ) ) * 26
----
-26

skipif mysql # not compatible
query I rowsort label-8652
SELECT - ( COUNT ( * ) ) * 26
----
-26

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8653
SELECT DISTINCT + COUNT( - + 16 ) DIV 72 * + 21 * + - COUNT( * ) * - + 75 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8653
SELECT DISTINCT + COUNT ( - + 16 ) / 72 * + 21 * + - COUNT ( * ) * - + 75 AS col2
----
0

query I rowsort
SELECT ALL - 57 * + 76 AS col2
----
-4332

query I rowsort
SELECT DISTINCT + 65 * NULLIF ( - 76, + + ( 25 ) * - 16 * - - 50 ) AS col1
----
-4940

query II rowsort
SELECT 20 * - 87 AS col1, 37 * + 63 AS col1
----
-1740
2331

query I rowsort
SELECT - 91 + + + 93 AS col0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-8658
SELECT ALL 70 + - + COALESCE ( - 68, + - MIN( + 21 ) * - - ( - 85 ), - 86, 15 ) AS col2
----
138

skipif mysql # not compatible
query I rowsort label-8658
SELECT ALL 70 + - + COALESCE ( - 68, + - MIN ( + 21 ) * - - ( - 85 ), - 86, 15 ) AS col2
----
138

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8659
SELECT + COUNT( + - 36 ) * - + 50 + - + 94 + + 70 / + CAST( NULL AS SIGNED ) * - 78 * MIN( ALL + 73 ) * + 57
----
NULL

skipif mysql # not compatible
query I rowsort label-8659
SELECT + COUNT ( + - 36 ) * - + 50 + - + 94 + + 70 / + CAST ( NULL AS INTEGER ) * - 78 * MIN ( ALL + 73 ) * + 57
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8660
SELECT DISTINCT - CAST( 76 AS SIGNED ) + - 28 * + 73 AS col1
----
-2120

skipif mysql # not compatible
query I rowsort label-8660
SELECT DISTINCT - CAST ( 76 AS INTEGER ) + - 28 * + 73 AS col1
----
-2120

query I rowsort
SELECT COALESCE ( - ( + 46 ), + + 36 + ( + + 85 ) * + + 57 ) + + - 10
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-8662
SELECT ALL - + MAX( + NULLIF ( + 50, 23 ) ) + - 24 AS col2
----
-74

skipif mysql # not compatible
query I rowsort label-8662
SELECT ALL - + MAX ( + NULLIF ( + 50, 23 ) ) + - 24 AS col2
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-8663
SELECT ALL - 5 + MIN( ALL - 46 )
----
-51

skipif mysql # not compatible
query I rowsort label-8663
SELECT ALL - 5 + MIN ( ALL - 46 )
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-8664
SELECT ALL COUNT( * ) + + ( ( - 34 ) ) AS col0
----
-33

skipif mysql # not compatible
query I rowsort label-8664
SELECT ALL COUNT ( * ) + + ( ( - 34 ) ) AS col0
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-8665
SELECT 48 + + - 60 * - 8 * COALESCE ( + 47, - 7, + - MAX( - 42 ) )
----
22608

skipif mysql # not compatible
query I rowsort label-8665
SELECT 48 + + - 60 * - 8 * COALESCE ( + 47, - 7, + - MAX ( - 42 ) )
----
22608

onlyif mysql # DIV for integer division: 
query I rowsort label-8666
SELECT ALL - 60 DIV + + 46
----
-1

skipif mysql # not compatible
query I rowsort label-8666
SELECT ALL - 60 / + + 46
----
-1

query I rowsort
SELECT 40 * - 73 AS col0
----
-2920

query I rowsort
SELECT ALL - 51 * 2
----
-102

query I rowsort
SELECT 47 + 70 AS col0
----
117

query I rowsort
SELECT ALL + 88 * 6
----
528

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8671
SELECT 56 + - - 90 * - + 84 * + 97 + - COALESCE ( + 36, + + CAST( + + 53 AS SIGNED ) DIV + + 60 * + MIN( + + 94 ) ) * - 51 * + - 70 + + 52
----
-861732

skipif mysql # not compatible
query I rowsort label-8671
SELECT 56 + - - 90 * - + 84 * + 97 + - COALESCE ( + 36, + + CAST ( + + 53 AS INTEGER ) / + + 60 * + MIN ( + + 94 ) ) * - 51 * + - 70 + + 52
----
-861732

onlyif mysql # aggregate syntax: 
query I rowsort label-8672
SELECT ALL ( 28 ) - + + ( SUM( ALL 70 ) )
----
-42

skipif mysql # not compatible
query I rowsort label-8672
SELECT ALL ( 28 ) - + + ( SUM ( ALL 70 ) )
----
-42

query I rowsort
SELECT ALL + 79 * - 10
----
-790

query II rowsort
SELECT 66 + 53 * 44, + 49 col2
----
2398
49

onlyif mysql # aggregate syntax: 
query I rowsort label-8675
SELECT ALL + 88 * COUNT( * ) AS col1
----
88

skipif mysql # not compatible
query I rowsort label-8675
SELECT ALL + 88 * COUNT ( * ) AS col1
----
88

query II rowsort
SELECT 88 AS col1, 38 AS col0
----
88
38

query I rowsort
SELECT 82 * + 11 AS col2
----
902

query II rowsort
SELECT + 36 AS col1, + 35
----
36
35

query I rowsort
SELECT ALL - ( + - 54 ) col2
----
54

query I rowsort
SELECT 65 * - 24
----
-1560

query I rowsort
SELECT ALL 2 * + 91 AS col0
----
182

onlyif mysql # DIV for integer division: 
query I rowsort label-8682
SELECT 72 DIV 47 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8682
SELECT 72 / 47 AS col0
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-8683
SELECT ALL - COUNT( * ) AS col1, - 57 * + 49
----
-1
-2793

skipif mysql # not compatible
query II rowsort label-8683
SELECT ALL - COUNT ( * ) AS col1, - 57 * + 49
----
-1
-2793

onlyif mysql # aggregate syntax: 
query I rowsort label-8684
SELECT DISTINCT - CASE + - 31 WHEN - 80 - - - 52 * - COUNT( DISTINCT + 37 ) THEN COUNT( * ) WHEN + - AVG ( - 95 ) THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8684
SELECT DISTINCT - CASE + - 31 WHEN - 80 - - - 52 * - COUNT ( DISTINCT + 37 ) THEN COUNT ( * ) WHEN + - AVG ( - 95 ) THEN NULL END AS col0
----
NULL

query II rowsort
SELECT ALL - 56 * 59 * 12 AS col2, 67 + 15
----
-39648
82

query I rowsort
SELECT DISTINCT - - 15 + 49
----
64

query I rowsort
SELECT + 28 - 47 + + 98 * - 51 * - + 49 AS col1
----
244883

query I rowsort
SELECT + - 96 * + 54 - - 69
----
-5115

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8689
SELECT ALL - + 81, + 9 - + CASE + - ( + CAST( - 83 AS SIGNED ) ) WHEN - COALESCE ( + COALESCE ( COALESCE ( + 40, - 83 + - COUNT( * ), - CASE + 32 WHEN + 90 + + + 43 THEN NULL WHEN - - 66 - 90 * - 16 THEN NULL WHEN - 5 - + 22 - + + 73 + 44 + 76 * 69 THEN - 86 + - 37 END + - COUNT( * ) / - 34 ), 17 ), + 74 ) * 2 + + 55 THEN - ( 76 ) + CAST( + 8 AS SIGNED ) WHEN - 42 THEN NULL END AS col1
----
-81
NULL

skipif mysql # not compatible
query II rowsort label-8689
SELECT ALL - + 81, + 9 - + CASE + - ( + CAST ( - 83 AS INTEGER ) ) WHEN - COALESCE ( + COALESCE ( COALESCE ( + 40, - 83 + - COUNT ( * ), - CASE + 32 WHEN + 90 + + + 43 THEN NULL WHEN - - 66 - 90 * - 16 THEN NULL WHEN - 5 - + 22 - + + 73 + 44 + 76 * 69 THEN - 86 + - 37 END + - COUNT ( * ) / - 34 ), 17 ), + 74 ) * 2 + + 55 THEN - ( 76 ) + CAST ( + 8 AS INTEGER ) WHEN - 42 THEN NULL END AS col1
----
-81
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8690
SELECT DISTINCT - CAST( 88 AS SIGNED ) + CASE + 63 WHEN - - 3 THEN - + 66 WHEN + 23 THEN NULL WHEN - + 4 THEN 84 + - 80 ELSE + 85 END AS col0
----
-3

skipif mysql # not compatible
query I rowsort label-8690
SELECT DISTINCT - CAST ( 88 AS INTEGER ) + CASE + 63 WHEN - - 3 THEN - + 66 WHEN + 23 THEN NULL WHEN - + 4 THEN 84 + - 80 ELSE + 85 END AS col0
----
-3

query I rowsort
SELECT ALL - + 73 + - + 72 AS col1
----
-145

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8692
SELECT DISTINCT + AVG ( + + 74 ) * - 87 / - 59 * + 56 + + 8 + - COALESCE ( - 74, - 53 ) + - - COUNT( * ) * 66 * + 61 * + 98 / + - CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) - + + 55 / + COUNT( * ) - + + 75 AS col0, 30 * + 35 AS col0
----
NULL
1050

skipif mysql # not compatible
query II rowsort label-8692
SELECT DISTINCT + AVG ( + + 74 ) * - 87 / - 59 * + 56 + + 8 + - COALESCE ( - 74, - 53 ) + - - COUNT ( * ) * 66 * + 61 * + 98 / + - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) - + + 55 / + COUNT ( * ) - + + 75 AS col0, 30 * + 35 AS col0
----
NULL
1050

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8693
SELECT ALL 8 + NULLIF ( + + 98, - 6 ) + - COUNT( + 64 ) + 40 DIV 60 * + - 71 * + - 3 - CAST( - + 70 AS SIGNED )
----
175

skipif mysql # not compatible
query I rowsort label-8693
SELECT ALL 8 + NULLIF ( + + 98, - 6 ) + - COUNT ( + 64 ) + 40 / 60 * + - 71 * + - 3 - CAST ( - + 70 AS INTEGER )
----
175

query I rowsort
SELECT ALL + 60 * + - 12 AS col1
----
-720

onlyif mysql # aggregate syntax: 
query I rowsort label-8695
SELECT ALL + SUM( DISTINCT NULLIF ( + + 3, + 61 ) )
----
3

skipif mysql # not compatible
query I rowsort label-8695
SELECT ALL + SUM ( DISTINCT NULLIF ( + + 3, + 61 ) )
----
3

query II rowsort
SELECT - + 40, + CASE + + 21 WHEN - 23 THEN + 99 + 60 WHEN 52 * + 98 / + 82 THEN NULL ELSE 63 END * - 64 * 46 * + 46 AS col2
----
-40
-8531712

onlyif mysql # aggregate syntax: 
query I rowsort label-8697
SELECT - MAX( - 22 ) AS col1
----
22

skipif mysql # not compatible
query I rowsort label-8697
SELECT - MAX ( - 22 ) AS col1
----
22

query II rowsort
SELECT ALL - ( ( 40 ) ) col2, - 20
----
-40
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-8699
SELECT + 53 * + + COUNT( * )
----
53

skipif mysql # not compatible
query I rowsort label-8699
SELECT + 53 * + + COUNT ( * )
----
53

query II rowsort
SELECT DISTINCT - 4 AS col2, ( - 37 ) * - 42 + - 84
----
-4
1470

query I rowsort
SELECT DISTINCT 39 * + 80
----
3120

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8702
SELECT DISTINCT - COUNT( * ) DIV + - 1
----
1

skipif mysql # not compatible
query I rowsort label-8702
SELECT DISTINCT - COUNT ( * ) / + - 1
----
1

query I rowsort
SELECT DISTINCT 56 - + 50 + - - 58
----
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8704
SELECT 50 * - - CAST( 57 AS SIGNED ) AS col2
----
2850

skipif mysql # not compatible
query I rowsort label-8704
SELECT 50 * - - CAST ( 57 AS INTEGER ) AS col2
----
2850

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-8705
SELECT COUNT( * ) + + - 66 + + - 1 * + COUNT( * ), + MAX( DISTINCT - NULLIF ( - 25, + - 40 * 58 * - CAST( NULL AS DECIMAL ) ) ) * 98 * - MAX( 51 ) + 0 AS col0
----
-66
-124950

skipif mysql # not compatible
query II rowsort label-8705
SELECT COUNT ( * ) + + - 66 + + - 1 * + COUNT ( * ), + MAX ( DISTINCT - NULLIF ( - 25, + - 40 * 58 * - CAST ( NULL AS REAL ) ) ) * 98 * - MAX ( 51 ) + 0 AS col0
----
-66
-124950

query II rowsort
SELECT 75 * 93 AS col0, - 67 AS col2
----
6975
-67

query I rowsort
SELECT 46 + - - ( - 2 )
----
44

onlyif mysql # DIV for integer division: 
query I rowsort label-8708
SELECT ALL 90 DIV - 35
----
-2

skipif mysql # not compatible
query I rowsort label-8708
SELECT ALL 90 / - 35
----
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-8709
SELECT 65 + 15 DIV - 34 AS col0
----
65

skipif mysql # not compatible
query I rowsort label-8709
SELECT 65 + 15 / - 34 AS col0
----
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8710
SELECT CAST( 26 AS SIGNED ) + + CAST( + + 39 AS SIGNED ) DIV - COUNT( * ) AS col1, 27 AS col2
----
-13
27

skipif mysql # not compatible
query II rowsort label-8710
SELECT CAST ( 26 AS INTEGER ) + + CAST ( + + 39 AS INTEGER ) / - COUNT ( * ) AS col1, 27 AS col2
----
-13
27

onlyif mysql # DIV for integer division: 
query I rowsort label-8711
SELECT + 42 DIV 9 DIV + 77 + - 99
----
-99

skipif mysql # not compatible
query I rowsort label-8711
SELECT + 42 / 9 / + 77 + - 99
----
-99

query I rowsort
SELECT CASE + - 5 WHEN + + ( + 0 ) THEN ( + 55 ) ELSE NULL END
----
NULL

query I rowsort
SELECT 94 * - - 74 + 27 * 53 AS col1
----
8387

onlyif mysql # aggregate syntax: 
query I rowsort label-8714
SELECT + - COUNT( + - 78 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-8714
SELECT + - COUNT ( + - 78 ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8715
SELECT ALL - 6 * + COUNT( * ) + 24 + - 92 + - 63 * + 62 AS col2
----
-3980

skipif mysql # not compatible
query I rowsort label-8715
SELECT ALL - 6 * + COUNT ( * ) + 24 + - 92 + - 63 * + 62 AS col2
----
-3980

onlyif mysql # DIV for integer division: 
query I rowsort label-8716
SELECT + COALESCE ( + 64, - 24 ) DIV 35 - 77 + + - NULLIF ( + + COALESCE ( 59, + 83, 69 * + + 87 + 81 ), + + 88 ) * - + 20 AS col1
----
1104

skipif mysql # not compatible
query I rowsort label-8716
SELECT + COALESCE ( + 64, - 24 ) / 35 - 77 + + - NULLIF ( + + COALESCE ( 59, + 83, 69 * + + 87 + 81 ), + + 88 ) * - + 20 AS col1
----
1104

onlyif mysql # aggregate syntax: 
query I rowsort label-8717
SELECT ALL - - COUNT( * ) * - 16 - + + 82 + - SUM( ALL 82 ) * - 3 - + + ( - 69 )
----
217

skipif mysql # not compatible
query I rowsort label-8717
SELECT ALL - - COUNT ( * ) * - 16 - + + 82 + - SUM ( ALL 82 ) * - 3 - + + ( - 69 )
----
217

onlyif mysql # aggregate syntax: 
query I rowsort label-8718
SELECT DISTINCT + + CASE 14 WHEN + 42 / + + 76 - NULLIF ( - + 35, - AVG ( DISTINCT - 35 ) ) THEN + - 74 + - + 29 WHEN - + COUNT( * ) - COUNT( * ) THEN - - 66 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8718
SELECT DISTINCT + + CASE 14 WHEN + 42 / + + 76 - NULLIF ( - + 35, - AVG ( DISTINCT - 35 ) ) THEN + - 74 + - + 29 WHEN - + COUNT ( * ) - COUNT ( * ) THEN - - 66 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8719
SELECT - - COUNT( * ) * + 95 + 34
----
129

skipif mysql # not compatible
query I rowsort label-8719
SELECT - - COUNT ( * ) * + 95 + 34
----
129

onlyif mysql # aggregate syntax: 
query I rowsort label-8720
SELECT ALL 33 * + COUNT( * ) + + 20 * - + 5
----
-67

skipif mysql # not compatible
query I rowsort label-8720
SELECT ALL 33 * + COUNT ( * ) + + 20 * - + 5
----
-67

query I rowsort
SELECT DISTINCT - 22 * - - COALESCE ( 59, - 24, - - 55, + 40 ) AS col2
----
-1298

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8722
SELECT ALL - + 44 * MAX( DISTINCT 25 ) + + - CAST( - 17 AS SIGNED ) + - CAST( 45 AS SIGNED ), 82 AS col1
----
-1128
82

skipif mysql # not compatible
query II rowsort label-8722
SELECT ALL - + 44 * MAX ( DISTINCT 25 ) + + - CAST ( - 17 AS INTEGER ) + - CAST ( 45 AS INTEGER ), 82 AS col1
----
-1128
82

query I rowsort
SELECT ALL + NULLIF ( 6, - + 3 * + 34 )
----
6

query I rowsort
SELECT + + ( - 49 )
----
-49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8725
SELECT ALL + + CAST( - - 27 AS SIGNED ) col0, - CASE + 81 WHEN + 39 THEN NULL WHEN + 69 THEN + 19 WHEN + + 39 THEN NULL ELSE NULL END AS col2
----
27
NULL

skipif mysql # not compatible
query II rowsort label-8725
SELECT ALL + + CAST ( - - 27 AS INTEGER ) col0, - CASE + 81 WHEN + 39 THEN NULL WHEN + 69 THEN + 19 WHEN + + 39 THEN NULL ELSE NULL END AS col2
----
27
NULL

query I rowsort
SELECT + - 34 * - 22 col2
----
748

onlyif mysql # aggregate syntax: 
query II rowsort label-8727
SELECT - COUNT( * ) + - - 70, - NULLIF ( 58, + 80 ) AS col0
----
69
-58

skipif mysql # not compatible
query II rowsort label-8727
SELECT - COUNT ( * ) + - - 70, - NULLIF ( 58, + 80 ) AS col0
----
69
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-8728
SELECT DISTINCT - + 95 DIV + 29 + - - 59 AS col0
----
56

skipif mysql # not compatible
query I rowsort label-8728
SELECT DISTINCT - + 95 / + 29 + - - 59 AS col0
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-8729
SELECT ALL - MIN( ALL - + 0 ) * + 5
----
0

skipif mysql # not compatible
query I rowsort label-8729
SELECT ALL - MIN ( ALL - + 0 ) * + 5
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8730
SELECT - SUM( - + 14 ) + - 97 + + 3 DIV + - 42 + + 64 + + 80 * - 93 * + COUNT( + - 24 ) AS col0
----
-7459

skipif mysql # not compatible
query I rowsort label-8730
SELECT - SUM ( - + 14 ) + - 97 + + 3 / + - 42 + + 64 + + 80 * - 93 * + COUNT ( + - 24 ) AS col0
----
-7459

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8731
SELECT ALL - + 20 * + 34 * + ( - NULLIF ( 31, MIN( + 57 ) ) ) DIV + COUNT( * ) + ( + 27 ) AS col0
----
21107

skipif mysql # not compatible
query I rowsort label-8731
SELECT ALL - + 20 * + 34 * + ( - NULLIF ( 31, MIN ( + 57 ) ) ) / + COUNT ( * ) + ( + 27 ) AS col0
----
21107

query II rowsort
SELECT ALL ( ( + 62 ) ) AS col2, 51 AS col2
----
62
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8733
SELECT - 4 + + 46 * - CASE - 96 WHEN - CASE 27 WHEN - - COALESCE ( - 0, + 86 * - CAST( NULL AS SIGNED ) ) + - - 29 * ( - - 44 ) THEN - 52 + + - 14 + 52 + + + 17 + + 96 WHEN - 27 THEN NULL ELSE - - 2 * + - 71 + 71 END * - ( SUM( - 73 ) ) * - 89 THEN + 85 ELSE - 34 END * CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-8733
SELECT - 4 + + 46 * - CASE - 96 WHEN - CASE 27 WHEN - - COALESCE ( - 0, + 86 * - CAST ( NULL AS INTEGER ) ) + - - 29 * ( - - 44 ) THEN - 52 + + - 14 + 52 + + + 17 + + 96 WHEN - 27 THEN NULL ELSE - - 2 * + - 71 + 71 END * - ( SUM ( - 73 ) ) * - 89 THEN + 85 ELSE - 34 END * CAST ( NULL AS REAL )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8734
SELECT DISTINCT - 15 * - CAST( + 70 AS SIGNED )
----
1050

skipif mysql # not compatible
query I rowsort label-8734
SELECT DISTINCT - 15 * - CAST ( + 70 AS INTEGER )
----
1050

onlyif mysql # aggregate syntax: 
query I rowsort label-8735
SELECT ALL + ( - SUM( DISTINCT - 12 ) ) * - 80
----
-960

skipif mysql # not compatible
query I rowsort label-8735
SELECT ALL + ( - SUM ( DISTINCT - 12 ) ) * - 80
----
-960

onlyif mysql # DIV for integer division: 
query I rowsort label-8736
SELECT DISTINCT - 6 * ( + 80 ) * + 15 + + ( - - 12 ) * 11 * + 81 + + 33 + + 11 DIV 54
----
3525

skipif mysql # not compatible
query I rowsort label-8736
SELECT DISTINCT - 6 * ( + 80 ) * + 15 + + ( - - 12 ) * 11 * + 81 + + 33 + + 11 / 54
----
3525

query I rowsort
SELECT - 50 * + - ( - 16 ) col0
----
-800

onlyif mysql # aggregate syntax: 
query I rowsort label-8738
SELECT - 56 + COUNT( * ) AS col2
----
-55

skipif mysql # not compatible
query I rowsort label-8738
SELECT - 56 + COUNT ( * ) AS col2
----
-55

query I rowsort
SELECT + COALESCE ( - 79, - 0 ) + + 90 AS col0
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-8740
SELECT + ( 27 ) + + + COUNT( * ) + - + COUNT( * ) - 60
----
-33

skipif mysql # not compatible
query I rowsort label-8740
SELECT + ( 27 ) + + + COUNT ( * ) + - + COUNT ( * ) - 60
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-8741
SELECT + 9 * + - SUM( + 20 ) AS col0
----
-180

skipif mysql # not compatible
query I rowsort label-8741
SELECT + 9 * + - SUM ( + 20 ) AS col0
----
-180

query I rowsort
SELECT + 26 + + - COALESCE ( - 20, - 98 ) AS col1
----
46

query III rowsort
SELECT DISTINCT 49 + ( - - 52 ) * - + 79 * - 27 AS col0, + 69, - 55 AS col2
----
110965
69
-55

query I rowsort
SELECT + 73 * - - ( - 10 ) AS col1
----
-730

query I rowsort
SELECT ALL 84 + - 71
----
13

query I rowsort
SELECT DISTINCT 2 * - 22 col2
----
-44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8747
SELECT - COUNT( * ) DIV + - MAX( DISTINCT + 97 ) * - 48
----
0

skipif mysql # not compatible
query I rowsort label-8747
SELECT - COUNT ( * ) / + - MAX ( DISTINCT + 97 ) * - 48
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8748
SELECT + 43 * + - SUM( 12 ) AS col0
----
-516

skipif mysql # not compatible
query I rowsort label-8748
SELECT + 43 * + - SUM ( 12 ) AS col0
----
-516

query I rowsort
SELECT ALL 48 + + 77 AS col1
----
125

onlyif mysql # aggregate syntax: 
query I rowsort label-8750
SELECT - COUNT( 85 ) - + 19 AS col1
----
-20

skipif mysql # not compatible
query I rowsort label-8750
SELECT - COUNT ( 85 ) - + 19 AS col1
----
-20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8751
SELECT DISTINCT 69 / - + CAST( NULL AS SIGNED ) + + 44 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8751
SELECT DISTINCT 69 / - + CAST ( NULL AS INTEGER ) + + 44 AS col1
----
NULL

query I rowsort
SELECT ALL + - COALESCE ( - 24, - 61, - 10 ) AS col1
----
24

onlyif mysql # DIV for integer division: 
query I rowsort label-8753
SELECT + 10 DIV + + 46 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8753
SELECT + 10 / + + 46 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8754
SELECT - + ( - NULLIF ( 67, + 42 ) ) * + + 80 / + + 46 + - 90 * - 17 + + CASE - 94 WHEN + + 90 + - 65 * - + 72 THEN - - 25 * - 8 ELSE + 65 + + - CASE - COUNT( * ) WHEN CASE + 42 WHEN 25 THEN NULL ELSE 49 END + 5 THEN - 88 WHEN - 69 * + 6 THEN - COUNT( * ) END END + + 86 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8754
SELECT - + ( - NULLIF ( 67, + 42 ) ) * + + 80 / + + 46 + - 90 * - 17 + + CASE - 94 WHEN + + 90 + - 65 * - + 72 THEN - - 25 * - 8 ELSE + 65 + + - CASE - COUNT ( * ) WHEN CASE + 42 WHEN 25 THEN NULL ELSE 49 END + 5 THEN - 88 WHEN - 69 * + 6 THEN - COUNT ( * ) END END + + 86 col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8755
SELECT ALL + - COALESCE ( - + 12, - - 85 ) DIV + 9 + COUNT( * ) DIV + COUNT( * ) + - - 26 + 77 + 5 AS col1
----
110

skipif mysql # not compatible
query I rowsort label-8755
SELECT ALL + - COALESCE ( - + 12, - - 85 ) / + 9 + COUNT ( * ) / + COUNT ( * ) + - - 26 + 77 + 5 AS col1
----
110

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8756
SELECT ALL + - ( + MIN( - 96 ) ) DIV CAST( - - 28 AS SIGNED ) + + 81 + + 47 - - 26 + - 80 * CAST( - - 10 AS SIGNED ) AS col1
----
-643

skipif mysql # not compatible
query I rowsort label-8756
SELECT ALL + - ( + MIN ( - 96 ) ) / CAST ( - - 28 AS INTEGER ) + + 81 + + 47 - - 26 + - 80 * CAST ( - - 10 AS INTEGER ) AS col1
----
-643

query I rowsort
SELECT ALL + - 73 * + + 75 * + ( - - 74 )
----
-405150

onlyif mysql # DIV for integer division: 
query I rowsort label-8758
SELECT DISTINCT - 72 DIV 57 * + - 50 - - 13 DIV - 92
----
50

skipif mysql # not compatible
query I rowsort label-8758
SELECT DISTINCT - 72 / 57 * + - 50 - - 13 / - 92
----
50

query II rowsort
SELECT + + 77 AS col2, - 87 col0
----
77
-87

query II rowsort
SELECT 5 AS col1, 3 - - 77 AS col1
----
5
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8761
SELECT ALL 66 * + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8761
SELECT ALL 66 * + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8762
SELECT 49 AS col2, 68 * 7 DIV + 84 + 65 DIV COUNT( * )
----
49
70

skipif mysql # not compatible
query II rowsort label-8762
SELECT 49 AS col2, 68 * 7 / + 84 + 65 / COUNT ( * )
----
49
70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8763
SELECT ALL + 0 * + - 97 - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8763
SELECT ALL + 0 * + - 97 - + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + NULLIF ( + + 6, + + 12 ) col2
----
6

query I rowsort
SELECT + + ( 0 ) * + 29 AS col1
----
0

query I rowsort
SELECT ALL + 16 * - 80 * + 80
----
-102400

query I rowsort
SELECT ALL + CASE ( + - 24 ) WHEN - 93 THEN - 44 / 13 END
----
NULL

query I rowsort
SELECT + NULLIF ( - 87, + + 33 )
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-8769
SELECT DISTINCT + - COUNT( DISTINCT - 76 )
----
-1

skipif mysql # not compatible
query I rowsort label-8769
SELECT DISTINCT + - COUNT ( DISTINCT - 76 )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8770
SELECT - COUNT( * ) - + SUM( - + CAST( NULL AS DECIMAL ) ) + + - 74 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8770
SELECT - COUNT ( * ) - + SUM ( - + CAST ( NULL AS REAL ) ) + + - 74 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8771
SELECT - COUNT( - 56 ) * ( + NULLIF ( + 70, - 79 ) ) - + + 75 * 25 AS col1
----
-1945

skipif mysql # not compatible
query I rowsort label-8771
SELECT - COUNT ( - 56 ) * ( + NULLIF ( + 70, - 79 ) ) - + + 75 * 25 AS col1
----
-1945

onlyif mysql # aggregate syntax: 
query I rowsort label-8772
SELECT - 35 * SUM( ALL + - 21 ) * 11 * - - 52 + - 24 - - + 0
----
420396

skipif mysql # not compatible
query I rowsort label-8772
SELECT - 35 * SUM ( ALL + - 21 ) * 11 * - - 52 + - 24 - - + 0
----
420396

onlyif mysql # aggregate syntax: 
query II rowsort label-8773
SELECT CASE 47 WHEN - ( - - 86 ) * + COALESCE ( - 12, - 50 ) THEN - 12 * + + 41 + - MAX( + - 48 ) ELSE NULL END AS col0, 35 AS col0
----
NULL
35

skipif mysql # not compatible
query II rowsort label-8773
SELECT CASE 47 WHEN - ( - - 86 ) * + COALESCE ( - 12, - 50 ) THEN - 12 * + + 41 + - MAX ( + - 48 ) ELSE NULL END AS col0, 35 AS col0
----
NULL
35

query I rowsort
SELECT DISTINCT ( - + 52 ) col2
----
-52

query I rowsort
SELECT ALL + 29 * 88
----
2552

onlyif mysql # aggregate syntax: 
query I rowsort label-8776
SELECT - COUNT( * ) * - + 4 * - - 90 AS col1
----
360

skipif mysql # not compatible
query I rowsort label-8776
SELECT - COUNT ( * ) * - + 4 * - - 90 AS col1
----
360

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8777
SELECT - ( CASE - 34 WHEN + 41 THEN CAST( + + COUNT( * ) AS SIGNED ) / - + 74 + - COUNT( * ) - - + 71 + + - 24 + - + 86 + + + 57 END ) * + 51 * - 23 AS col1, + 68 AS col1
----
NULL
68

skipif mysql # not compatible
query II rowsort label-8777
SELECT - ( CASE - 34 WHEN + 41 THEN CAST ( + + COUNT ( * ) AS INTEGER ) / - + 74 + - COUNT ( * ) - - + 71 + + - 24 + - + 86 + + + 57 END ) * + 51 * - 23 AS col1, + 68 AS col1
----
NULL
68

onlyif mysql # aggregate syntax: 
query I rowsort label-8778
SELECT DISTINCT 10 * - + 19 * - + COUNT( * ) + - 86
----
104

skipif mysql # not compatible
query I rowsort label-8778
SELECT DISTINCT 10 * - + 19 * - + COUNT ( * ) + - 86
----
104

query I rowsort
SELECT ALL - 57 + - 47 * 48
----
-2313

query I rowsort
SELECT ALL + 30 + - 14
----
16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8781
SELECT 81 - + CAST( NULL AS SIGNED ) * - - 63 / + + 38 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8781
SELECT 81 - + CAST ( NULL AS INTEGER ) * - - 63 / + + 38 AS col1
----
NULL

query II rowsort
SELECT 28, - ( - - 95 ) AS col0
----
28
-95

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8783
SELECT ALL - COUNT( * ) + - 12 DIV - 96 * 51
----
-1

skipif mysql # not compatible
query I rowsort label-8783
SELECT ALL - COUNT ( * ) + - 12 / - 96 * 51
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8784
SELECT 91 * + - CASE + 15 WHEN - 5 THEN NULLIF ( - 77, COUNT( * ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-8784
SELECT 91 * + - CASE + 15 WHEN - 5 THEN NULLIF ( - 77, COUNT ( * ) ) END
----
NULL

query II rowsort
SELECT ALL - 57 + 69 + + - 87 + + 24 col0, - 34 AS col1
----
-51
-34

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8786
SELECT ALL + 94 + + CAST( NULL AS SIGNED ), + 5 AS col0
----
NULL
5

skipif mysql # not compatible
query II rowsort label-8786
SELECT ALL + 94 + + CAST ( NULL AS INTEGER ), + 5 AS col0
----
NULL
5

query II rowsort
SELECT DISTINCT 92, 88 AS col2
----
92
88

onlyif mysql # aggregate syntax: 
query II rowsort label-8788
SELECT 16 - - - 38 + + 16 * + - COUNT( * ) AS col2, 67 + CASE 27 WHEN - + 75 + - MIN( + 27 ) THEN - 11 * 33 ELSE NULL END + + + COUNT( * ) * + 24 + - NULLIF ( - COUNT( * ), 41 ) * NULLIF ( + - 11, - + 5 ) AS col2
----
-38
NULL

skipif mysql # not compatible
query II rowsort label-8788
SELECT 16 - - - 38 + + 16 * + - COUNT ( * ) AS col2, 67 + CASE 27 WHEN - + 75 + - MIN ( + 27 ) THEN - 11 * 33 ELSE NULL END + + + COUNT ( * ) * + 24 + - NULLIF ( - COUNT ( * ), 41 ) * NULLIF ( + - 11, - + 5 ) AS col2
----
-38
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8789
SELECT DISTINCT 51, - 84 + - MIN( ALL 10 ) * - 78 * 89 AS col2
----
51
69336

skipif mysql # not compatible
query II rowsort label-8789
SELECT DISTINCT 51, - 84 + - MIN ( ALL 10 ) * - 78 * 89 AS col2
----
51
69336

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8790
SELECT + 8 + COUNT( * ) AS col2, - 59 * + CAST( NULL AS SIGNED ) - 44 col1
----
9
NULL

skipif mysql # not compatible
query II rowsort label-8790
SELECT + 8 + COUNT ( * ) AS col2, - 59 * + CAST ( NULL AS INTEGER ) - 44 col1
----
9
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8791
SELECT ALL - 33 - - CASE - 67 WHEN + + CAST( NULL AS SIGNED ) * - + 95 THEN - + ( - 68 ) * 63 + + 50 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8791
SELECT ALL - 33 - - CASE - 67 WHEN + + CAST ( NULL AS INTEGER ) * - + 95 THEN - + ( - 68 ) * 63 + + 50 ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8792
SELECT + COUNT( * ) * - 51
----
-51

skipif mysql # not compatible
query I rowsort label-8792
SELECT + COUNT ( * ) * - 51
----
-51

query I rowsort
SELECT ALL + COALESCE ( + - 67, - 86 * - - ( - 36 ) )
----
-67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8794
SELECT - 50 DIV 40 * - - COUNT( * ) + + 72 + + + 79
----
150

skipif mysql # not compatible
query I rowsort label-8794
SELECT - 50 / 40 * - - COUNT ( * ) + + 72 + + + 79
----
150

onlyif mysql # aggregate syntax: 
query II rowsort label-8795
SELECT ALL - 0 AS col0, COUNT( * )
----
0
1

skipif mysql # not compatible
query II rowsort label-8795
SELECT ALL - 0 AS col0, COUNT ( * )
----
0
1

query I rowsort
SELECT ALL - 83 * + 37
----
-3071

query I rowsort
SELECT ALL + - 54 - + - 83 AS col0
----
29

query I rowsort
SELECT ALL 28 - - 17 + - + 35 * - 73
----
2600

query II rowsort
SELECT ALL - 79, + 81 AS col0
----
-79
81

onlyif mysql # DIV for integer division: 
query I rowsort label-8800
SELECT + ( 31 ) DIV - 53 - - - 55 + 45 AS col1
----
-10

skipif mysql # not compatible
query I rowsort label-8800
SELECT + ( 31 ) / - 53 - - - 55 + 45 AS col1
----
-10

query II rowsort
SELECT ALL - + 50, - 44 AS col1
----
-50
-44

query I rowsort
SELECT 69 * + 68 AS col1
----
4692

query I rowsort
SELECT - 24 + + - 66 * 35
----
-2334

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8804
SELECT DISTINCT + - CAST( NULL AS SIGNED ) * - ( 3 ) * - + 93 + - + 72 + - 33 + + + 62
----
NULL

skipif mysql # not compatible
query I rowsort label-8804
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) * - ( 3 ) * - + 93 + - + 72 + - 33 + + + 62
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8805
SELECT ALL + 57 DIV + 4 AS col0
----
14

skipif mysql # not compatible
query I rowsort label-8805
SELECT ALL + 57 / + 4 AS col0
----
14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8806
SELECT + 47 DIV + + COUNT( * ) AS col0
----
47

skipif mysql # not compatible
query I rowsort label-8806
SELECT + 47 / + + COUNT ( * ) AS col0
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-8807
SELECT + - COALESCE ( COUNT( * ), + 29 + + ( + SUM( ALL + 59 ) ) + + + 3 - 73 + + 90 + - - 66 )
----
-1

skipif mysql # not compatible
query I rowsort label-8807
SELECT + - COALESCE ( COUNT ( * ), + 29 + + ( + SUM ( ALL + 59 ) ) + + + 3 - 73 + + 90 + - - 66 )
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-8808
SELECT + - COUNT( * ) AS col1, 45
----
-1
45

skipif mysql # not compatible
query II rowsort label-8808
SELECT + - COUNT ( * ) AS col1, 45
----
-1
45

onlyif mysql # DIV for integer division: 
query I rowsort label-8809
SELECT ALL 44 DIV + + 23
----
1

skipif mysql # not compatible
query I rowsort label-8809
SELECT ALL 44 / + + 23
----
1

query I rowsort
SELECT NULLIF ( - 84, - 56 ) AS col2
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-8811
SELECT CASE - - 74 WHEN - - ( - ( COUNT( * ) ) ) + + COALESCE ( 23, - + 79 ) * - 98 * + - COUNT( * ) THEN NULL WHEN - 26 / - + 50 THEN - + 2 ELSE - 12 END * - 41
----
492

skipif mysql # not compatible
query I rowsort label-8811
SELECT CASE - - 74 WHEN - - ( - ( COUNT ( * ) ) ) + + COALESCE ( 23, - + 79 ) * - 98 * + - COUNT ( * ) THEN NULL WHEN - 26 / - + 50 THEN - + 2 ELSE - 12 END * - 41
----
492

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8812
SELECT ALL 39 + - MIN( - - 57 ) + - + 61 + + 84 + 50 * 98 * + - CAST( NULL AS DECIMAL ) * - 65 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8812
SELECT ALL 39 + - MIN ( - - 57 ) + - + 61 + + 84 + 50 * 98 * + - CAST ( NULL AS REAL ) * - 65 AS col0
----
NULL

query I rowsort
SELECT 61 * + 27 + 96 * + 14 AS col0
----
2991

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8814
SELECT DISTINCT 33 + + + ( - ( - CAST( + 72 AS SIGNED ) ) ) AS col1
----
105

skipif mysql # not compatible
query I rowsort label-8814
SELECT DISTINCT 33 + + + ( - ( - CAST ( + 72 AS INTEGER ) ) ) AS col1
----
105

query I rowsort
SELECT ALL + 25 + - + 58 AS col2
----
-33

query I rowsort
SELECT DISTINCT 38 + - 27 col2
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-8817
SELECT DISTINCT COUNT( * ) + COUNT( * ) + + + COUNT( * ) * + CASE + 20 WHEN + 89 THEN + - 89 ELSE CASE + CASE - COUNT( - 88 ) WHEN - + MAX( ALL - 68 ) * + SUM( + COALESCE ( - 75, - 81 ) ) + 64 * + 25 THEN - 83 END WHEN - 96 THEN NULL WHEN + 0 THEN NULL ELSE - 52 END * - 62 * + 3 + 43 END
----
9717

skipif mysql # not compatible
query I rowsort label-8817
SELECT DISTINCT COUNT ( * ) + COUNT ( * ) + + + COUNT ( * ) * + CASE + 20 WHEN + 89 THEN + - 89 ELSE CASE + CASE - COUNT ( - 88 ) WHEN - + MAX ( ALL - 68 ) * + SUM ( + COALESCE ( - 75, - 81 ) ) + 64 * + 25 THEN - 83 END WHEN - 96 THEN NULL WHEN + 0 THEN NULL ELSE - 52 END * - 62 * + 3 + 43 END
----
9717

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8818
SELECT CAST( - 71 AS SIGNED ) DIV + - 6 - - 24 AS col2
----
35

skipif mysql # not compatible
query I rowsort label-8818
SELECT CAST ( - 71 AS INTEGER ) / + - 6 - - 24 AS col2
----
35

query I rowsort
SELECT ALL - 26 - ( + 45 ) + + 90 * + - 76 + - 3
----
-6914

query I rowsort
SELECT ALL + ( - 64 ) - 45
----
-109

onlyif mysql # aggregate syntax: 
query I rowsort label-8821
SELECT 6 * NULLIF ( + 73, ( + MIN( ALL - 15 ) ) )
----
438

skipif mysql # not compatible
query I rowsort label-8821
SELECT 6 * NULLIF ( + 73, ( + MIN ( ALL - 15 ) ) )
----
438

query I rowsort
SELECT DISTINCT - 35 - - 68 * + 26 - + 95
----
1638

onlyif mysql # aggregate syntax: 
query I rowsort label-8823
SELECT ALL + MIN( DISTINCT + - 50 )
----
-50

skipif mysql # not compatible
query I rowsort label-8823
SELECT ALL + MIN ( DISTINCT + - 50 )
----
-50

query I rowsort
SELECT ALL - ( - 19 ) - - 69
----
88

onlyif mysql # DIV for integer division: 
query I rowsort label-8825
SELECT 15 DIV + - 83
----
0

skipif mysql # not compatible
query I rowsort label-8825
SELECT 15 / + - 83
----
0

query II rowsort
SELECT + CASE NULLIF ( 11, - 50 + - + 90 * 98 ) WHEN + - 51 THEN - 23 + - 11 END - - 77 + + + 42 * + 5 + 37 AS col1, 2 col1
----
NULL
2

query I rowsort
SELECT ( 88 ) * + - 85 AS col1
----
-7480

query I rowsort
SELECT + - ( 68 )
----
-68

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8829
SELECT 84 * CASE 17 WHEN + 80 THEN NULL ELSE - - 63 DIV - - MIN( 41 ) + + ( 30 ) END DIV + - 50, - 65 AS col0
----
-52
-65

skipif mysql # not compatible
query II rowsort label-8829
SELECT 84 * CASE 17 WHEN + 80 THEN NULL ELSE - - 63 / - - MIN ( 41 ) + + ( 30 ) END / + - 50, - 65 AS col0
----
-52
-65

query I rowsort
SELECT COALESCE ( + - 53, ( 1 ) ) AS col1
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-8831
SELECT + + COALESCE ( + 52, 97 + - 94 - - COUNT( * ) * 61, + 72 * + - 26 )
----
52

skipif mysql # not compatible
query I rowsort label-8831
SELECT + + COALESCE ( + 52, 97 + - 94 - - COUNT ( * ) * 61, + 72 * + - 26 )
----
52

query I rowsort
SELECT + - ( + + 51 )
----
-51

query I rowsort
SELECT DISTINCT - - 46 col0
----
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8834
SELECT ALL 34 * - CAST( - - 0 AS SIGNED ) + + + 80
----
80

skipif mysql # not compatible
query I rowsort label-8834
SELECT ALL 34 * - CAST ( - - 0 AS INTEGER ) + + + 80
----
80

query I rowsort
SELECT + ( 96 ) * + + 28 * - + 67 AS col1
----
-180096

query I rowsort
SELECT + 65 * - - 49 + + 35
----
3220

onlyif mysql # aggregate syntax: 
query I rowsort label-8837
SELECT DISTINCT 74 + + COUNT( * ) col1
----
75

skipif mysql # not compatible
query I rowsort label-8837
SELECT DISTINCT 74 + + COUNT ( * ) col1
----
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8838
SELECT CASE - CAST( NULL AS SIGNED ) WHEN - ( - 85 ) THEN + 44 ELSE - ( 33 ) * - + ( - + 42 ) END * - - 57 * + ( 44 ) + + COUNT( * ) + - 5 * 99 DIV - ( COUNT( * ) )
----
-3475592

skipif mysql # not compatible
query I rowsort label-8838
SELECT CASE - CAST ( NULL AS INTEGER ) WHEN - ( - 85 ) THEN + 44 ELSE - ( 33 ) * - + ( - + 42 ) END * - - 57 * + ( 44 ) + + COUNT ( * ) + - 5 * 99 / - ( COUNT ( * ) )
----
-3475592

query I rowsort
SELECT ALL - 29 + 27 col0
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-8840
SELECT ALL 68 + + 3 - - MAX( 62 )
----
133

skipif mysql # not compatible
query I rowsort label-8840
SELECT ALL 68 + + 3 - - MAX ( 62 )
----
133

onlyif mysql # aggregate syntax: 
query I rowsort label-8841
SELECT SUM( DISTINCT + 54 ) AS col0
----
54

skipif mysql # not compatible
query I rowsort label-8841
SELECT SUM ( DISTINCT + 54 ) AS col0
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-8842
SELECT + COUNT( DISTINCT + 40 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8842
SELECT + COUNT ( DISTINCT + 40 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-8843
SELECT DISTINCT + 57 + - - 69 * - - COUNT( * ) AS col1, + COUNT( ALL 42 ) AS col0
----
126
1

skipif mysql # not compatible
query II rowsort label-8843
SELECT DISTINCT + 57 + - - 69 * - - COUNT ( * ) AS col1, + COUNT ( ALL 42 ) AS col0
----
126
1

query I rowsort
SELECT ALL 61 * - - 33
----
2013

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8845
SELECT + 67 DIV COUNT( * )
----
67

skipif mysql # not compatible
query I rowsort label-8845
SELECT + 67 / COUNT ( * )
----
67

onlyif mysql # aggregate syntax: 
query II rowsort label-8846
SELECT 97 AS col1, + 62 - - - MIN( - + 36 )
----
97
98

skipif mysql # not compatible
query II rowsort label-8846
SELECT 97 AS col1, + 62 - - - MIN ( - + 36 )
----
97
98

query II rowsort
SELECT DISTINCT 37 AS col1, 51 AS col0
----
37
51

onlyif mysql # aggregate syntax: 
query I rowsort label-8848
SELECT DISTINCT COUNT( * ) * - COALESCE ( 38, 16 * 2 * 27 + + 2 + + 40, - 25 * - - 63 * 9 + + 31 ) AS col0
----
-38

skipif mysql # not compatible
query I rowsort label-8848
SELECT DISTINCT COUNT ( * ) * - COALESCE ( 38, 16 * 2 * 27 + + 2 + + 40, - 25 * - - 63 * 9 + + 31 ) AS col0
----
-38

query I rowsort
SELECT + 1 - + - 13 * - 20
----
-259

query I rowsort
SELECT + 60 * 91 AS col0
----
5460

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8851
SELECT + 77 - - 82 + CAST( NULL AS SIGNED ) * + + CAST( NULL AS SIGNED ) * - 68 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8851
SELECT + 77 - - 82 + CAST ( NULL AS INTEGER ) * + + CAST ( NULL AS INTEGER ) * - 68 col0
----
NULL

query II rowsort
SELECT ALL 50 AS col2, 82 AS col1
----
50
82

onlyif mysql # aggregate syntax: 
query I rowsort label-8853
SELECT SUM( ALL 90 ) AS col1
----
90

skipif mysql # not compatible
query I rowsort label-8853
SELECT SUM ( ALL 90 ) AS col1
----
90

query I rowsort
SELECT - + ( - 29 )
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-8855
SELECT + - 50 + + COUNT( * ) AS col0
----
-49

skipif mysql # not compatible
query I rowsort label-8855
SELECT + - 50 + + COUNT ( * ) AS col0
----
-49

onlyif mysql # aggregate syntax: 
query II rowsort label-8856
SELECT - COUNT( * ) * 16 + - 64 AS col1, - 84 - + + 91 AS col1
----
-80
-175

skipif mysql # not compatible
query II rowsort label-8856
SELECT - COUNT ( * ) * 16 + - 64 AS col1, - 84 - + + 91 AS col1
----
-80
-175

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8857
SELECT - COUNT( + - ( + 15 ) ) col0, - MIN( DISTINCT + CAST( + + 33 AS SIGNED ) )
----
-1
-33

skipif mysql # not compatible
query II rowsort label-8857
SELECT - COUNT ( + - ( + 15 ) ) col0, - MIN ( DISTINCT + CAST ( + + 33 AS INTEGER ) )
----
-1
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-8858
SELECT + + ( + MIN( DISTINCT + 98 ) ) + ( + - 43 ) col1
----
55

skipif mysql # not compatible
query I rowsort label-8858
SELECT + + ( + MIN ( DISTINCT + 98 ) ) + ( + - 43 ) col1
----
55

query I rowsort
SELECT + - 1 + + 49 AS col2
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-8860
SELECT DISTINCT - MAX( - - 70 ) * + + 89 * - NULLIF ( 94, 51 + 72 ) AS col0
----
585620

skipif mysql # not compatible
query I rowsort label-8860
SELECT DISTINCT - MAX ( - - 70 ) * + + 89 * - NULLIF ( 94, 51 + 72 ) AS col0
----
585620

onlyif mysql # aggregate syntax: 
query I rowsort label-8861
SELECT DISTINCT + CASE - - MIN( - 33 ) WHEN - - 69 + - MAX( ALL - 32 ) THEN - 98 ELSE NULL END * 43
----
NULL

skipif mysql # not compatible
query I rowsort label-8861
SELECT DISTINCT + CASE - - MIN ( - 33 ) WHEN - - 69 + - MAX ( ALL - 32 ) THEN - 98 ELSE NULL END * 43
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8862
SELECT ALL 11 DIV - - COALESCE ( - + 62, + 67 ) + - 89 + - 17 * - 66 + - 91
----
942

skipif mysql # not compatible
query I rowsort label-8862
SELECT ALL 11 / - - COALESCE ( - + 62, + 67 ) + - 89 + - 17 * - 66 + - 91
----
942

onlyif mysql # aggregate syntax: 
query II rowsort label-8863
SELECT + 8, 82 * - COUNT( * ) AS col2
----
8
-82

skipif mysql # not compatible
query II rowsort label-8863
SELECT + 8, 82 * - COUNT ( * ) AS col2
----
8
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-8864
SELECT - + 43 * - COUNT( * ) + - 16 * 13
----
-165

skipif mysql # not compatible
query I rowsort label-8864
SELECT - + 43 * - COUNT ( * ) + - 16 * 13
----
-165

query I rowsort
SELECT + ( + 59 ) AS col0
----
59

query I rowsort
SELECT ALL 94 * + - 73 + - 31 + - - ( - 59 ) AS col2
----
-6952

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8867
SELECT ALL 32 * COUNT( * ) * + CAST( - MAX( ALL + - 15 ) AS SIGNED ) + 15 AS col0, + CASE - 48 WHEN + 37 THEN + 17 ELSE NULL END AS col2
----
495
NULL

skipif mysql # not compatible
query II rowsort label-8867
SELECT ALL 32 * COUNT ( * ) * + CAST ( - MAX ( ALL + - 15 ) AS INTEGER ) + 15 AS col0, + CASE - 48 WHEN + 37 THEN + 17 ELSE NULL END AS col2
----
495
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8868
SELECT - 42 AS col0, - 63 * - MIN( + 88 ) col2
----
-42
5544

skipif mysql # not compatible
query II rowsort label-8868
SELECT - 42 AS col0, - 63 * - MIN ( + 88 ) col2
----
-42
5544

query I rowsort
SELECT - 18 * + + 83 AS col2
----
-1494

query I rowsort
SELECT ALL + COALESCE ( - 84, + 45 )
----
-84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8871
SELECT ( CASE + 51 WHEN + COUNT( * ) * + 67 * + 89 THEN CAST( 54 AS SIGNED ) WHEN - + 61 * SUM( DISTINCT - 60 ) * + + 82 - - 74 + + ( - - COALESCE ( + 1, 9 / 71 ) ) + 90 + + 57 + 2 * + ( + - 72 ) * COUNT( * ) * + 3 * + 20 / - + 94 THEN NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-8871
SELECT ( CASE + 51 WHEN + COUNT ( * ) * + 67 * + 89 THEN CAST ( 54 AS INTEGER ) WHEN - + 61 * SUM ( DISTINCT - 60 ) * + + 82 - - 74 + + ( - - COALESCE ( + 1, 9 / 71 ) ) + 90 + + 57 + 2 * + ( + - 72 ) * COUNT ( * ) * + 3 * + 20 / - + 94 THEN NULL END )
----
NULL

query I rowsort
SELECT ALL 17 * - + 22 + + - 23 AS col0
----
-397

onlyif mysql # aggregate syntax: 
query I rowsort label-8873
SELECT ALL - SUM( DISTINCT 63 ) * - - 47
----
-2961

skipif mysql # not compatible
query I rowsort label-8873
SELECT ALL - SUM ( DISTINCT 63 ) * - - 47
----
-2961

onlyif mysql # aggregate syntax: 
query I rowsort label-8874
SELECT + COUNT( DISTINCT 23 )
----
1

skipif mysql # not compatible
query I rowsort label-8874
SELECT + COUNT ( DISTINCT 23 )
----
1

query I rowsort
SELECT - 26 * + 87 * - 16 AS col1
----
36192

query I rowsort
SELECT ALL - 98 * 76 AS col0
----
-7448

onlyif mysql # aggregate syntax: 
query I rowsort label-8877
SELECT - 55 + - CASE 36 WHEN + COUNT( * ) THEN COUNT( * ) + - 27 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8877
SELECT - 55 + - CASE 36 WHEN + COUNT ( * ) THEN COUNT ( * ) + - 27 END AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8878
SELECT CASE + 38 WHEN 6 THEN + - 72 * + COALESCE ( + ( - 95 ), - 69 ) * 90 WHEN - 9 THEN NULL WHEN - - 44 THEN NULL ELSE - CAST( CAST( NULL AS DECIMAL ) AS SIGNED ) + + 1 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8878
SELECT CASE + 38 WHEN 6 THEN + - 72 * + COALESCE ( + ( - 95 ), - 69 ) * 90 WHEN - 9 THEN NULL WHEN - - 44 THEN NULL ELSE - CAST ( CAST ( NULL AS REAL ) AS INTEGER ) + + 1 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8879
SELECT + COUNT( * ) * - COUNT( * ) + 3 * - NULLIF ( + 21, - + ( + COUNT( * ) ) * - 87 ) - + 55 AS col2
----
-119

skipif mysql # not compatible
query I rowsort label-8879
SELECT + COUNT ( * ) * - COUNT ( * ) + 3 * - NULLIF ( + 21, - + ( + COUNT ( * ) ) * - 87 ) - + 55 AS col2
----
-119

query I rowsort
SELECT + 37 - + - 34
----
71

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8881
SELECT 35 * 51 + CAST( NULL AS DECIMAL ) * + 70 * + - MAX( 31 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8881
SELECT 35 * 51 + CAST ( NULL AS REAL ) * + 70 * + - MAX ( 31 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8882
SELECT ALL MAX( DISTINCT + 86 ) DIV - MAX( 27 )
----
-3

skipif mysql # not compatible
query I rowsort label-8882
SELECT ALL MAX ( DISTINCT + 86 ) / - MAX ( 27 )
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-8883
SELECT - NULLIF ( - - ( - 28 ), - 30 ) DIV + - 67 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8883
SELECT - NULLIF ( - - ( - 28 ), - 30 ) / + - 67 AS col0
----
0

query I rowsort
SELECT + + 90 + 4 * + + 34
----
226

query I rowsort
SELECT + COALESCE ( + 56, + 20 ) + + 29 + + 80
----
165

query I rowsort
SELECT ALL 3 * - - 17
----
51

query I rowsort
SELECT DISTINCT ( + ( - 34 ) ) AS col0
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-8888
SELECT ALL 21 * + + COUNT( * ) - 5 * - 85 col2
----
446

skipif mysql # not compatible
query I rowsort label-8888
SELECT ALL 21 * + + COUNT ( * ) - 5 * - 85 col2
----
446

query I rowsort
SELECT + 91 * + + ( - + 23 ) col1
----
-2093

onlyif mysql # aggregate syntax: 
query I rowsort label-8890
SELECT ALL MIN( DISTINCT - 89 ) + + 35 * + 35 + - 40 AS col1
----
1096

skipif mysql # not compatible
query I rowsort label-8890
SELECT ALL MIN ( DISTINCT - 89 ) + + 35 * + 35 + - 40 AS col1
----
1096

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8891
SELECT ALL + ( MIN( DISTINCT - - 35 ) ) * 61 * + COALESCE ( + 8, - COUNT( * ) * CASE + CASE - 31 WHEN + - 75 + - 71 - - - 9 * + COUNT( * ) THEN COALESCE ( - - ( - ( + - MAX( DISTINCT + 38 ) ) ), + 94 + + 55, - - 99 ) ELSE 12 * 40 + - CAST( - - 25 AS SIGNED ) - + 46 + + 66 + - 89 * 8 * 56 END WHEN - 25 + CAST( - COUNT( * ) AS SIGNED ) THEN NULL WHEN + 3 * ( ( 39 ) DIV 0 ) THEN - 14 WHEN 11 * COUNT( * ) THEN NULL END, 58 DIV - COUNT( * ) )
----
17080

skipif mysql # not compatible
query I rowsort label-8891
SELECT ALL + ( MIN ( DISTINCT - - 35 ) ) * 61 * + COALESCE ( + 8, - COUNT ( * ) * CASE + CASE - 31 WHEN + - 75 + - 71 - - - 9 * + COUNT ( * ) THEN COALESCE ( - - ( - ( + - MAX ( DISTINCT + 38 ) ) ), + 94 + + 55, - - 99 ) ELSE 12 * 40 + - CAST ( - - 25 AS INTEGER ) - + 46 + + 66 + - 89 * 8 * 56 END WHEN - 25 + CAST ( - COUNT ( * ) AS INTEGER ) THEN NULL WHEN + 3 * ( ( 39 ) / 0 ) THEN - 14 WHEN 11 * COUNT ( * ) THEN NULL END, 58 / - COUNT ( * ) )
----
17080

query I rowsort
SELECT + + 94 * - - 71 * - 20 * + - 62
----
8275760

onlyif mysql # aggregate syntax: 
query I rowsort label-8893
SELECT + + 89 * - + MIN( - - 3 ) * + - 27 + + 52 + 64 col1
----
7325

skipif mysql # not compatible
query I rowsort label-8893
SELECT + + 89 * - + MIN ( - - 3 ) * + - 27 + + 52 + 64 col1
----
7325

query I rowsort
SELECT DISTINCT 5 + + 12 - - 9 col0
----
26

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8895
SELECT - 83 * - CAST( 34 AS DECIMAL ) - + - 44 * + + CASE - - 43 WHEN - 3 THEN - + 44 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8895
SELECT - 83 * - CAST ( 34 AS REAL ) - + - 44 * + + CASE - - 43 WHEN - 3 THEN - + 44 END AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8896
SELECT - 63 * 16 + - 96 * - 41 DIV + - 41 - + 31 AS col1
----
-1135

skipif mysql # not compatible
query I rowsort label-8896
SELECT - 63 * 16 + - 96 * - 41 / + - 41 - + 31 AS col1
----
-1135

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8897
SELECT DISTINCT - - CASE - SUM( + 94 ) WHEN + 6 THEN - COUNT( * ) WHEN CAST( + 44 AS DECIMAL ) + + - COALESCE ( 25, - + 64 / + - 19 + + + 33 ) THEN + CASE - COUNT( DISTINCT 44 ) WHEN - 59 * - 72 + + + 34 + 26 + + 96 THEN NULL WHEN - 23 * + CAST( NULL AS SIGNED ) + - - 70 THEN + 17 END + + 51 + 52 * + - 97 + - - COUNT( * ) + + 15 * + 71 END / 16 + 37
----
NULL

skipif mysql # not compatible
query I rowsort label-8897
SELECT DISTINCT - - CASE - SUM ( + 94 ) WHEN + 6 THEN - COUNT ( * ) WHEN CAST ( + 44 AS REAL ) + + - COALESCE ( 25, - + 64 / + - 19 + + + 33 ) THEN + CASE - COUNT ( DISTINCT 44 ) WHEN - 59 * - 72 + + + 34 + 26 + + 96 THEN NULL WHEN - 23 * + CAST ( NULL AS INTEGER ) + - - 70 THEN + 17 END + + 51 + 52 * + - 97 + - - COUNT ( * ) + + 15 * + 71 END / 16 + 37
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8898
SELECT DISTINCT + 26 + - - CAST( - 64 AS SIGNED ) AS col0
----
-38

skipif mysql # not compatible
query I rowsort label-8898
SELECT DISTINCT + 26 + - - CAST ( - 64 AS INTEGER ) AS col0
----
-38

query I rowsort
SELECT DISTINCT 21 + 78 - + 21
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-8900
SELECT ALL + COUNT( ALL + ( 77 ) ) * COUNT( * ) - - 0 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8900
SELECT ALL + COUNT ( ALL + ( 77 ) ) * COUNT ( * ) - - 0 AS col0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8901
SELECT ALL - 12 + - + CAST( NULL AS SIGNED ) - CAST( NULL AS SIGNED ) * + + 4 / - - 29
----
NULL

skipif mysql # not compatible
query I rowsort label-8901
SELECT ALL - 12 + - + CAST ( NULL AS INTEGER ) - CAST ( NULL AS INTEGER ) * + + 4 / - - 29
----
NULL

query I rowsort
SELECT DISTINCT 15 * + 49 AS col0
----
735

onlyif mysql # DIV for integer division: 
query I rowsort label-8903
SELECT 94 DIV - 86 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-8903
SELECT 94 / - 86 AS col1
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8904
SELECT ALL - 12 - - CASE + 92 WHEN + - CAST( - 40 AS SIGNED ) / 89 + - 73 THEN + 76 WHEN - ( + 77 ) THEN - 77 END / - 41
----
NULL

skipif mysql # not compatible
query I rowsort label-8904
SELECT ALL - 12 - - CASE + 92 WHEN + - CAST ( - 40 AS INTEGER ) / 89 + - 73 THEN + 76 WHEN - ( + 77 ) THEN - 77 END / - 41
----
NULL

query I rowsort
SELECT 75 * 96 AS col1
----
7200

onlyif mysql # aggregate syntax: 
query I rowsort label-8906
SELECT + 18 * - - ( - 3 ) + - MIN( - - 32 ) * 10
----
-374

skipif mysql # not compatible
query I rowsort label-8906
SELECT + 18 * - - ( - 3 ) + - MIN ( - - 32 ) * 10
----
-374

query II rowsort
SELECT + 73 AS col1, + 37
----
73
37

query II rowsort
SELECT ALL - 65 AS col0, 1 AS col1
----
-65
1

query I rowsort
SELECT 0 * - - 33
----
0

query II rowsort
SELECT ALL - 71 col1, - 41
----
-71
-41

query II rowsort
SELECT 22 AS col2, 60
----
22
60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8912
SELECT ALL - CAST( + - ( - 96 ) AS SIGNED ), + MIN( DISTINCT - 74 ) + 33 AS col2
----
-96
-41

skipif mysql # not compatible
query II rowsort label-8912
SELECT ALL - CAST ( + - ( - 96 ) AS INTEGER ), + MIN ( DISTINCT - 74 ) + 33 AS col2
----
-96
-41

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8913
SELECT DISTINCT - 49 * - - ( 38 ) AS col2, - CAST( - 94 AS SIGNED ) + - + 36 AS col0
----
-1862
58

skipif mysql # not compatible
query II rowsort label-8913
SELECT DISTINCT - 49 * - - ( 38 ) AS col2, - CAST ( - 94 AS INTEGER ) + - + 36 AS col0
----
-1862
58

query I rowsort
SELECT 19 * - 37
----
-703

query II rowsort
SELECT ALL - 54, 55 AS col2
----
-54
55

query I rowsort
SELECT 44 * 9
----
396

query I rowsort
SELECT ALL - - 15 + + + 2 AS col2
----
17

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8918
SELECT + 75 DIV - 56 - - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-8918
SELECT + 75 / - 56 - - COUNT ( * )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8919
SELECT ALL - 73 + - 58 + - 99 + + ( + 96 ) + - + 4 * - + ( 34 ) DIV 88 DIV MIN( + 79 ) + - - 52
----
-82

skipif mysql # not compatible
query I rowsort label-8919
SELECT ALL - 73 + - 58 + - 99 + + ( + 96 ) + - + 4 * - + ( 34 ) / 88 / MIN ( + 79 ) + - - 52
----
-82

query I rowsort
SELECT ALL + 98 + - 44
----
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8921
SELECT 82 - + CAST( NULL AS SIGNED ) / AVG ( - 1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8921
SELECT 82 - + CAST ( NULL AS INTEGER ) / AVG ( - 1 )
----
NULL

query I rowsort
SELECT + 41 + + 91 col2
----
132

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8923
SELECT 28 DIV + 60 * - SUM( ALL - 33 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8923
SELECT 28 / + 60 * - SUM ( ALL - 33 ) AS col0
----
0

query II rowsort
SELECT - 50 * ( - 35 ), 76 AS col0
----
1750
76

onlyif mysql # aggregate syntax: 
query I rowsort label-8925
SELECT 61 + COUNT( * ) AS col0
----
62

skipif mysql # not compatible
query I rowsort label-8925
SELECT 61 + COUNT ( * ) AS col0
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-8926
SELECT - MAX( ALL - 68 ) AS col2
----
68

skipif mysql # not compatible
query I rowsort label-8926
SELECT - MAX ( ALL - 68 ) AS col2
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-8927
SELECT COUNT( * ) + + - MIN( ALL + - 77 )
----
78

skipif mysql # not compatible
query I rowsort label-8927
SELECT COUNT ( * ) + + - MIN ( ALL + - 77 )
----
78

query I rowsort
SELECT ALL - 22 - 30 AS col0
----
-52

query I rowsort
SELECT 76 + + 7
----
83

query II rowsort
SELECT + 2 AS col2, + ( + 75 ) AS col0
----
2
75

onlyif mysql # aggregate syntax: 
query I rowsort label-8931
SELECT ( + - MIN( ALL + 10 ) ) * + 76 col0
----
-760

skipif mysql # not compatible
query I rowsort label-8931
SELECT ( + - MIN ( ALL + 10 ) ) * + 76 col0
----
-760

query II rowsort
SELECT 69, - 60 col0
----
69
-60

onlyif mysql # aggregate syntax: 
query II rowsort label-8933
SELECT + 68 AS col1, COUNT( * ) AS col1
----
68
1

skipif mysql # not compatible
query II rowsort label-8933
SELECT + 68 AS col1, COUNT ( * ) AS col1
----
68
1

query I rowsort
SELECT ( - 49 ) * 4 * 23 + - 50
----
-4558

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8935
SELECT ALL - 74 col1, - 84 * - + CAST( NULL AS SIGNED )
----
-74
NULL

skipif mysql # not compatible
query II rowsort label-8935
SELECT ALL - 74 col1, - 84 * - + CAST ( NULL AS INTEGER )
----
-74
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8936
SELECT - COUNT( * ) * - 59 + - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8936
SELECT - COUNT ( * ) * - 59 + - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8937
SELECT ALL CASE SUM( DISTINCT NULLIF ( + 98, + 11 ) ) WHEN + 17 THEN + + 66 END * - 65 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8937
SELECT ALL CASE SUM ( DISTINCT NULLIF ( + 98, + 11 ) ) WHEN + 17 THEN + + 66 END * - 65 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8938
SELECT COUNT( * ) * NULLIF ( 82, - ( + + 29 ) ) AS col2
----
82

skipif mysql # not compatible
query I rowsort label-8938
SELECT COUNT ( * ) * NULLIF ( 82, - ( + + 29 ) ) AS col2
----
82

query I rowsort
SELECT 35 * + 82 * - 33
----
-94710

query I rowsort
SELECT - 75 * + 66 + + 82 * + + 4
----
-4622

query I rowsort
SELECT 51 - + + 66
----
-15

query II rowsort
SELECT + 47 col1, - 18 AS col0
----
47
-18

query I rowsort
SELECT 27 + 9 * - 81 + - 3 AS col2
----
-705

query I rowsort
SELECT ALL - 83 + + 38 * - + 40 AS col1
----
-1603

onlyif mysql # aggregate syntax: 
query I rowsort label-8945
SELECT MIN( DISTINCT + + 28 )
----
28

skipif mysql # not compatible
query I rowsort label-8945
SELECT MIN ( DISTINCT + + 28 )
----
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8946
SELECT 4 + + 86 + + COUNT( * ) * + ( 28 ) DIV + + 41, CAST( + 19 AS SIGNED ) AS col1
----
90
19

skipif mysql # not compatible
query II rowsort label-8946
SELECT 4 + + 86 + + COUNT ( * ) * + ( 28 ) / + + 41, CAST ( + 19 AS INTEGER ) AS col1
----
90
19

onlyif mysql # aggregate syntax: 
query II rowsort label-8947
SELECT DISTINCT - COUNT( * ), 31 col2
----
-1
31

skipif mysql # not compatible
query II rowsort label-8947
SELECT DISTINCT - COUNT ( * ), 31 col2
----
-1
31

query I rowsort
SELECT - 82 + + 45 + - 37 AS col1
----
-74

query I rowsort
SELECT DISTINCT + - 50 + ( - 26 ) AS col2
----
-76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8950
SELECT ALL - - 88 + + - 1 * 53 * 57 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8950
SELECT ALL - - 88 + + - 1 * 53 * 57 * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8951
SELECT 62, + COUNT( * ) AS col2
----
62
1

skipif mysql # not compatible
query II rowsort label-8951
SELECT 62, + COUNT ( * ) AS col2
----
62
1

query II rowsort
SELECT - 26 AS col0, 11 AS col2
----
-26
11

query I rowsort
SELECT 43 + 39
----
82

query I rowsort
SELECT + 48 * + 76 AS col1
----
3648

query I rowsort
SELECT ( 49 ) * + 7
----
343

onlyif mysql # aggregate syntax: 
query II rowsort label-8956
SELECT + MAX( ALL 88 ) AS col0, 99 + 93 * 22 AS col0
----
88
2145

skipif mysql # not compatible
query II rowsort label-8956
SELECT + MAX ( ALL 88 ) AS col0, 99 + 93 * 22 AS col0
----
88
2145

query I rowsort
SELECT DISTINCT COALESCE ( - - 23, - 40 )
----
23

query I rowsort
SELECT - - 35 * - + 25 * - 72
----
63000

query II rowsort
SELECT ALL - - ( - 92 ) - - 44 + + 23 AS col1, + CASE 22 WHEN 95 THEN NULL WHEN + 67 THEN - + 63 * - 51 END
----
-25
NULL

query I rowsort
SELECT ALL 27 * - ( + + 73 )
----
-1971

query I rowsort
SELECT DISTINCT + NULLIF ( + 72, - 13 + 44 )
----
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8962
SELECT 49 * CAST( COUNT( * ) AS SIGNED ) - + ( MIN( + 70 ) ) DIV - COUNT( * ) + + 40 AS col2
----
159

skipif mysql # not compatible
query I rowsort label-8962
SELECT 49 * CAST ( COUNT ( * ) AS INTEGER ) - + ( MIN ( + 70 ) ) / - COUNT ( * ) + + 40 AS col2
----
159

onlyif mysql # aggregate syntax: 
query III rowsort label-8963
SELECT DISTINCT + 96 * 63 + 54 AS col2, 43 + + 3 AS col2, NULLIF ( - - COUNT( ALL - + 60 ), + + 70 ) AS col1
----
6102
46
1

skipif mysql # not compatible
query III rowsort label-8963
SELECT DISTINCT + 96 * 63 + 54 AS col2, 43 + + 3 AS col2, NULLIF ( - - COUNT ( ALL - + 60 ), + + 70 ) AS col1
----
6102
46
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8964
SELECT COALESCE ( + 58, + CAST( NULL AS SIGNED ) * + + 52 )
----
58

skipif mysql # not compatible
query I rowsort label-8964
SELECT COALESCE ( + 58, + CAST ( NULL AS INTEGER ) * + + 52 )
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-8965
SELECT + COUNT( * ) * + - 19 * + 51
----
-969

skipif mysql # not compatible
query I rowsort label-8965
SELECT + COUNT ( * ) * + - 19 * + 51
----
-969

onlyif mysql # aggregate syntax: 
query I rowsort label-8966
SELECT ALL - ( - 76 ) * 70 * + MIN( ALL + + NULLIF ( + - 27, - 34 ) ) + + 63
----
-143577

skipif mysql # not compatible
query I rowsort label-8966
SELECT ALL - ( - 76 ) * 70 * + MIN ( ALL + + NULLIF ( + - 27, - 34 ) ) + + 63
----
-143577

onlyif mysql # DIV for integer division: 
query I rowsort label-8967
SELECT 5 * 69 DIV + - 61 + + 83 AS col2
----
78

skipif mysql # not compatible
query I rowsort label-8967
SELECT 5 * 69 / + - 61 + + 83 AS col2
----
78

onlyif mysql # DIV for integer division: 
query I rowsort label-8968
SELECT + 95 DIV - 46
----
-2

skipif mysql # not compatible
query I rowsort label-8968
SELECT + 95 / - 46
----
-2

onlyif mysql # aggregate syntax: 
query II rowsort label-8969
SELECT ALL - 80 * + + 50 + - COALESCE ( - MIN( + - ( + 58 ) ), - - 91 - + COUNT( * ) + - - 22 * 95 ) AS col2, 31
----
-4058
31

skipif mysql # not compatible
query II rowsort label-8969
SELECT ALL - 80 * + + 50 + - COALESCE ( - MIN ( + - ( + 58 ) ), - - 91 - + COUNT ( * ) + - - 22 * 95 ) AS col2, 31
----
-4058
31

query I rowsort
SELECT ALL 40 * - + 30 + + 86 + + + 46 AS col1
----
-1068

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8971
SELECT ALL - COUNT( * ) * - 41 + - 32 / + CAST( NULL AS SIGNED ) - 51 + + - ( - + 28 ) + - COUNT( + ( - 18 ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8971
SELECT ALL - COUNT ( * ) * - 41 + - 32 / + CAST ( NULL AS INTEGER ) - 51 + + - ( - + 28 ) + - COUNT ( + ( - 18 ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8972
SELECT - - 71 * + 90 - + - COUNT( * ) + + 87 * + 17 * - 30 AS col1
----
-37979

skipif mysql # not compatible
query I rowsort label-8972
SELECT - - 71 * + 90 - + - COUNT ( * ) + + 87 * + 17 * - 30 AS col1
----
-37979

onlyif mysql # aggregate syntax: 
query I rowsort label-8973
SELECT - 2 * - NULLIF ( - 41, - + 55 / - 37 / + COUNT( * ) )
----
-82

skipif mysql # not compatible
query I rowsort label-8973
SELECT - 2 * - NULLIF ( - 41, - + 55 / - 37 / + COUNT ( * ) )
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-8974
SELECT + COUNT( * ) + + CASE 39 WHEN 99 THEN NULL WHEN + SUM( - 52 ) THEN - + 45 + + - 86 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8974
SELECT + COUNT ( * ) + + CASE 39 WHEN 99 THEN NULL WHEN + SUM ( - 52 ) THEN - + 45 + + - 86 END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8975
SELECT DISTINCT ( - 7 ) AS col1, - ( NULLIF ( 49, - 98 ) ) * + + COUNT( * ) * 13 * + + 88 * - 84 + - 15 AS col1
----
-7
4708689

skipif mysql # not compatible
query II rowsort label-8975
SELECT DISTINCT ( - 7 ) AS col1, - ( NULLIF ( 49, - 98 ) ) * + + COUNT ( * ) * 13 * + + 88 * - 84 + - 15 AS col1
----
-7
4708689

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8976
SELECT ALL - CAST( NULL AS SIGNED ) - 53, COUNT( * ) * + - 39 DIV + 79 * + 57 DIV + 18 * - NULLIF ( + COUNT( * ), + + 95 * 6 * NULLIF ( + COUNT( * ), - + COUNT( - 37 ) * + 62 - - 31 ) ) AS col0
----
NULL
0

skipif mysql # not compatible
query II rowsort label-8976
SELECT ALL - CAST ( NULL AS INTEGER ) - 53, COUNT ( * ) * + - 39 / + 79 * + 57 / + 18 * - NULLIF ( + COUNT ( * ), + + 95 * 6 * NULLIF ( + COUNT ( * ), - + COUNT ( - 37 ) * + 62 - - 31 ) ) AS col0
----
NULL
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8977
SELECT DISTINCT SUM( - 91 )
----
-91

skipif mysql # not compatible
query I rowsort label-8977
SELECT DISTINCT SUM ( - 91 )
----
-91

query I rowsort
SELECT - - 0 + - ( + - 55 ) + + 61 * - 70 * - 48 AS col1
----
205015

onlyif mysql # aggregate syntax: 
query I rowsort label-8979
SELECT - COUNT( * ) * + 29 AS col1
----
-29

skipif mysql # not compatible
query I rowsort label-8979
SELECT - COUNT ( * ) * + 29 AS col1
----
-29

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8980
SELECT - + ( + 38 ) + + + COALESCE ( 48, 50 DIV + CAST( NULL AS SIGNED ) * + 42 + - + 84 * 85 ) AS col1
----
10

skipif mysql # not compatible
query I rowsort label-8980
SELECT - + ( + 38 ) + + + COALESCE ( 48, 50 / + CAST ( NULL AS INTEGER ) * + 42 + - + 84 * 85 ) AS col1
----
10

query I rowsort
SELECT - 80 * + 27 AS col1
----
-2160

query I rowsort
SELECT - 92 + 41
----
-51

query I rowsort
SELECT ALL 97 * - + 71
----
-6887

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8984
SELECT - CASE + MAX( DISTINCT + 65 ) WHEN - ( + - 11 ) THEN - CASE - NULLIF ( - COUNT( * ), + 58 ) WHEN - 81 + + 93 THEN - 72 WHEN + - 82 - - 74 THEN - 95 * 3 - - 64 / + 67 ELSE NULL END * 70 * - 94 * 72 ELSE 95 END + - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8984
SELECT - CASE + MAX ( DISTINCT + 65 ) WHEN - ( + - 11 ) THEN - CASE - NULLIF ( - COUNT ( * ), + 58 ) WHEN - 81 + + 93 THEN - 72 WHEN + - 82 - - 74 THEN - 95 * 3 - - 64 / + 67 ELSE NULL END * 70 * - 94 * 72 ELSE 95 END + - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8985
SELECT ALL 15 AS col2, - COUNT( * ) AS col0
----
15
-1

skipif mysql # not compatible
query II rowsort label-8985
SELECT ALL 15 AS col2, - COUNT ( * ) AS col0
----
15
-1

query I rowsort
SELECT - 38 + 87 AS col2
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-8987
SELECT - ( + COUNT( * ) ) * 88 + ( COUNT( * ) )
----
-87

skipif mysql # not compatible
query I rowsort label-8987
SELECT - ( + COUNT ( * ) ) * 88 + ( COUNT ( * ) )
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-8988
SELECT + MAX( ALL + 5 ) AS col1
----
5

skipif mysql # not compatible
query I rowsort label-8988
SELECT + MAX ( ALL + 5 ) AS col1
----
5

query I rowsort
SELECT 54 * + 72 + + 75 + 74
----
4037

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8990
SELECT ALL + CAST( + 75 AS SIGNED )
----
75

skipif mysql # not compatible
query I rowsort label-8990
SELECT ALL + CAST ( + 75 AS INTEGER )
----
75

onlyif mysql # DIV for integer division: 
query I rowsort label-8991
SELECT - 30 DIV - - 80 + - 44 * 72
----
-3168

skipif mysql # not compatible
query I rowsort label-8991
SELECT - 30 / - - 80 + - 44 * 72
----
-3168

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8992
SELECT - 78 * + CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8992
SELECT - 78 * + CAST ( NULL AS INTEGER ) col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8993
SELECT ALL - NULLIF ( 47, - 66 ) DIV 7 * - 20
----
120

skipif mysql # not compatible
query I rowsort label-8993
SELECT ALL - NULLIF ( 47, - 66 ) / 7 * - 20
----
120

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8994
SELECT DISTINCT - COALESCE ( + - 2, 82 - 48 + + ( ( SUM( - ( NULLIF ( - + 26, 52 ) ) ) ) ) * 66 * + 26 * + - 0 + + 43 - + COUNT( * ) * 83 + + 81 + - 67, - NULLIF ( + - AVG ( ALL + 27 ), - 23 * - 89 * - COUNT( * ) ) ) DIV - + COALESCE ( - 34, ( - + 63 ), MAX( ALL 43 ) ) + + + 49 + - 69 AS col0
----
-20

skipif mysql # not compatible
query I rowsort label-8994
SELECT DISTINCT - COALESCE ( + - 2, 82 - 48 + + ( ( SUM ( - ( NULLIF ( - + 26, 52 ) ) ) ) ) * 66 * + 26 * + - 0 + + 43 - + COUNT ( * ) * 83 + + 81 + - 67, - NULLIF ( + - AVG ( ALL + 27 ), - 23 * - 89 * - COUNT ( * ) ) ) / - + COALESCE ( - 34, ( - + 63 ), MAX ( ALL 43 ) ) + + + 49 + - 69 AS col0
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-8995
SELECT + NULLIF ( 3, + + 29 * + COUNT( + + 85 ) + + - 69 * COUNT( * ) ) AS col1
----
3

skipif mysql # not compatible
query I rowsort label-8995
SELECT + NULLIF ( 3, + + 29 * + COUNT ( + + 85 ) + + - 69 * COUNT ( * ) ) AS col1
----
3

query II rowsort
SELECT ALL + 15 AS col1, 14 + 66 * - - 76 + + 12
----
15
5042

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8997
SELECT DISTINCT + CAST( + 63 AS SIGNED ) / 84 + - - 79 + - + 85 / - 74 * + - 42 + - SUM( ALL 9 ) + + CAST( NULL AS SIGNED ) * COALESCE ( + 56, + COUNT( * ) / - 22 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8997
SELECT DISTINCT + CAST ( + 63 AS INTEGER ) / 84 + - - 79 + - + 85 / - 74 * + - 42 + - SUM ( ALL 9 ) + + CAST ( NULL AS INTEGER ) * COALESCE ( + 56, + COUNT ( * ) / - 22 )
----
NULL

query I rowsort
SELECT - 17 * - 82 + + - 32 AS col0
----
1362

query I rowsort
SELECT - NULLIF ( 33, + 16 ) + 47
----
14

query I rowsort
SELECT ALL - 39 - - 94 AS col0
----
55

onlyif mysql # aggregate syntax: 
query II rowsort label-9001
SELECT ALL - - COUNT( * ) AS col0, - 15 + - - 94 * + - MAX( 68 )
----
1
-6407

skipif mysql # not compatible
query II rowsort label-9001
SELECT ALL - - COUNT ( * ) AS col0, - 15 + - - 94 * + - MAX ( 68 )
----
1
-6407

onlyif mysql # aggregate syntax: 
query I rowsort label-9002
SELECT + MIN( - 60 )
----
-60

skipif mysql # not compatible
query I rowsort label-9002
SELECT + MIN ( - 60 )
----
-60

query I rowsort
SELECT ALL 88 * 76 col2
----
6688

onlyif mysql # aggregate syntax: 
query II rowsort label-9004
SELECT ALL + 49, 58 + - SUM( - 96 ) AS col1
----
49
154

skipif mysql # not compatible
query II rowsort label-9004
SELECT ALL + 49, 58 + - SUM ( - 96 ) AS col1
----
49
154

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9005
SELECT COALESCE ( 74, + + 92, ( - 83 ) + 88 DIV + 78 DIV COUNT( * ) * - COUNT( * ) ) + MAX( - 63 ) AS col1
----
11

skipif mysql # not compatible
query I rowsort label-9005
SELECT COALESCE ( 74, + + 92, ( - 83 ) + 88 / + 78 / COUNT ( * ) * - COUNT ( * ) ) + MAX ( - 63 ) AS col1
----
11

query I rowsort
SELECT DISTINCT 6 * - + 59
----
-354

onlyif mysql # aggregate syntax: 
query I rowsort label-9007
SELECT ALL + 9 * - COUNT( 62 ) * - COUNT( * ) + 34 + + 74 + - 3 + + 97 + + - NULLIF ( - + ( + + 84 ), + 94 )
----
295

skipif mysql # not compatible
query I rowsort label-9007
SELECT ALL + 9 * - COUNT ( 62 ) * - COUNT ( * ) + 34 + + 74 + - 3 + + 97 + + - NULLIF ( - + ( + + 84 ), + 94 )
----
295

query I rowsort
SELECT ALL - 98 - + 84 AS col2
----
-182

onlyif mysql # aggregate syntax: 
query I rowsort label-9009
SELECT - 49 * 34 - + COALESCE ( - COUNT( * ), + - COUNT( * ) * - 32 ) + 55 AS col1
----
-1610

skipif mysql # not compatible
query I rowsort label-9009
SELECT - 49 * 34 - + COALESCE ( - COUNT ( * ), + - COUNT ( * ) * - 32 ) + 55 AS col1
----
-1610

onlyif mysql # DIV for integer division: 
query I rowsort label-9010
SELECT 16 DIV 41 * - 49 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9010
SELECT 16 / 41 * - 49 AS col0
----
0

query I rowsort
SELECT DISTINCT 72 * 91 AS col1
----
6552

onlyif mysql # aggregate syntax: 
query II rowsort label-9012
SELECT - 29 AS col1, SUM( - 33 )
----
-29
-33

skipif mysql # not compatible
query II rowsort label-9012
SELECT - 29 AS col1, SUM ( - 33 )
----
-29
-33

onlyif mysql # DIV for integer division: 
query I rowsort label-9013
SELECT - 20 DIV + 68 - + 32
----
-32

skipif mysql # not compatible
query I rowsort label-9013
SELECT - 20 / + 68 - + 32
----
-32

onlyif mysql # aggregate syntax: 
query II rowsort label-9014
SELECT ALL - 64 AS col0, COUNT( * ) * 48 col2
----
-64
48

skipif mysql # not compatible
query II rowsort label-9014
SELECT ALL - 64 AS col0, COUNT ( * ) * 48 col2
----
-64
48

query I rowsort
SELECT DISTINCT 56 * - + 56 AS col1
----
-3136

query I rowsort
SELECT ALL 50 + - 13 AS col2
----
37

query I rowsort
SELECT DISTINCT - COALESCE ( + - 49, + + NULLIF ( 86, 65 ) ) * 58
----
2842

query II rowsort
SELECT ALL + 77 + - 8 AS col1, - 49 + + + 45 * 97
----
69
4316

onlyif mysql # aggregate syntax: 
query II rowsort label-9019
SELECT 9 - 73 + + SUM( ALL - 90 ) * - 56, - 23 AS col2
----
4976
-23

skipif mysql # not compatible
query II rowsort label-9019
SELECT 9 - 73 + + SUM ( ALL - 90 ) * - 56, - 23 AS col2
----
4976
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-9020
SELECT DISTINCT - 5 + + 1 * - MIN( - 26 ) + + COUNT( * ) * - - 70 + - ( MIN( + 19 ) ) AS col2
----
72

skipif mysql # not compatible
query I rowsort label-9020
SELECT DISTINCT - 5 + + 1 * - MIN ( - 26 ) + + COUNT ( * ) * - - 70 + - ( MIN ( + 19 ) ) AS col2
----
72

query I rowsort
SELECT DISTINCT 43 * 18 * + + 71
----
54954

query I rowsort
SELECT ALL - COALESCE ( - 82, 37 - - 97 ) * + 94 * - 75 AS col1
----
-578100

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9023
SELECT ALL + 60 + CAST( NULL AS SIGNED ) AS col1, + 1 * + 94 AS col1
----
NULL
94

skipif mysql # not compatible
query II rowsort label-9023
SELECT ALL + 60 + CAST ( NULL AS INTEGER ) AS col1, + 1 * + 94 AS col1
----
NULL
94

onlyif mysql # aggregate syntax: 
query II rowsort label-9024
SELECT DISTINCT + ( - 85 ) + - + MAX( DISTINCT + 12 ) + + COUNT( * ) + + ( 27 ) AS col2, + 50 AS col0
----
-69
50

skipif mysql # not compatible
query II rowsort label-9024
SELECT DISTINCT + ( - 85 ) + - + MAX ( DISTINCT + 12 ) + + COUNT ( * ) + + ( 27 ) AS col2, + 50 AS col0
----
-69
50

onlyif mysql # aggregate syntax: 
query II rowsort label-9025
SELECT ALL - MAX( DISTINCT + 47 ), - 51 AS col0
----
-47
-51

skipif mysql # not compatible
query II rowsort label-9025
SELECT ALL - MAX ( DISTINCT + 47 ), - 51 AS col0
----
-47
-51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9026
SELECT + COUNT( * ) DIV NULLIF ( 13, + - NULLIF ( - 67, COALESCE ( - 30, COALESCE ( - + 40, + CAST( NULL AS SIGNED ) ), ( COUNT( ALL + 55 ) ) + - 3, 74 - + + COUNT( * ) DIV CAST( NULL AS SIGNED ) * + 71 + - - 39 + - 85 ) + - 59 DIV + + 14 * MAX( - 89 ) ) ) - + 69 - - + 57
----
-12

skipif mysql # not compatible
query I rowsort label-9026
SELECT + COUNT ( * ) / NULLIF ( 13, + - NULLIF ( - 67, COALESCE ( - 30, COALESCE ( - + 40, + CAST ( NULL AS INTEGER ) ), ( COUNT ( ALL + 55 ) ) + - 3, 74 - + + COUNT ( * ) / CAST ( NULL AS INTEGER ) * + 71 + - - 39 + - 85 ) + - 59 / + + 14 * MAX ( - 89 ) ) ) - + 69 - - + 57
----
-12

onlyif mysql # DIV for integer division: 
query I rowsort label-9027
SELECT DISTINCT + + 43 DIV 73 * - 4
----
0

skipif mysql # not compatible
query I rowsort label-9027
SELECT DISTINCT + + 43 / 73 * - 4
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9028
SELECT DISTINCT - - NULLIF ( + 80, 18 * NULLIF ( + 43, + 47 * - + 82 * - 9 / + 89 + CAST( - 18 AS SIGNED ) * + 29 * - - 26 + CASE + + COUNT( * ) WHEN + 19 * - - 10 THEN - 77 * + 89 * + - 44 WHEN - 3 THEN - - COUNT( * ) * + 51 * - 33 * 99 ELSE NULL END * + 49 ) ) AS col0
----
80

skipif mysql # not compatible
query I rowsort label-9028
SELECT DISTINCT - - NULLIF ( + 80, 18 * NULLIF ( + 43, + 47 * - + 82 * - 9 / + 89 + CAST ( - 18 AS INTEGER ) * + 29 * - - 26 + CASE + + COUNT ( * ) WHEN + 19 * - - 10 THEN - 77 * + 89 * + - 44 WHEN - 3 THEN - - COUNT ( * ) * + 51 * - 33 * 99 ELSE NULL END * + 49 ) ) AS col0
----
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-9029
SELECT + 22 * - 64 + 79 + + ( 11 ) * - CAST( NULL AS SIGNED ) / - - 87 * + 52 + - + 30 + 9 + + 12 * + - AVG ( ALL + + 30 ) + 9 AS col1, + 95 * COUNT( * ) * - COUNT( * ), 64 AS col2
----
NULL
-95
64

skipif mysql # not compatible
query III rowsort label-9029
SELECT + 22 * - 64 + 79 + + ( 11 ) * - CAST ( NULL AS INTEGER ) / - - 87 * + 52 + - + 30 + 9 + + 12 * + - AVG ( ALL + + 30 ) + 9 AS col1, + 95 * COUNT ( * ) * - COUNT ( * ), 64 AS col2
----
NULL
-95
64

query II rowsort
SELECT + + CASE - + CASE 39 WHEN 85 THEN 24 WHEN - 62 / - 72 THEN NULL END WHEN + 99 THEN + 70 ELSE NULL END AS col2, 55
----
NULL
55

query I rowsort
SELECT 20 * + 18 AS col2
----
360

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9032
SELECT + - COALESCE ( - - 71, + - COUNT( * ) + - 61 + + 67 * + 36 * - NULLIF ( + + ( + CASE - 54 WHEN - 39 - CAST( NULL AS SIGNED ) THEN NULL WHEN + - 4 THEN - 72 WHEN 12 THEN NULL WHEN + ( 1 ) THEN NULL END ), - CAST( NULL AS SIGNED ) + + COALESCE ( + 15, + CASE - COUNT( * ) WHEN MIN( ALL - ( - 28 ) ) THEN + COUNT( * ) - + 51 + 27 * + 69 END ) + + CAST( 21 AS SIGNED ) ) / - 96, - + 70 ) * CAST( NULL AS SIGNED ) + 51 - 50 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9032
SELECT + - COALESCE ( - - 71, + - COUNT ( * ) + - 61 + + 67 * + 36 * - NULLIF ( + + ( + CASE - 54 WHEN - 39 - CAST ( NULL AS INTEGER ) THEN NULL WHEN + - 4 THEN - 72 WHEN 12 THEN NULL WHEN + ( 1 ) THEN NULL END ), - CAST ( NULL AS INTEGER ) + + COALESCE ( + 15, + CASE - COUNT ( * ) WHEN MIN ( ALL - ( - 28 ) ) THEN + COUNT ( * ) - + 51 + 27 * + 69 END ) + + CAST ( 21 AS INTEGER ) ) / - 96, - + 70 ) * CAST ( NULL AS INTEGER ) + 51 - 50 AS col0
----
NULL

query I rowsort
SELECT 0 * 89 AS col1
----
0

query I rowsort
SELECT - 91 * - 21 * + + 73 AS col1
----
139503

onlyif mysql # aggregate syntax: 
query II rowsort label-9035
SELECT + 44 + 72 col2, COUNT( * )
----
116
1

skipif mysql # not compatible
query II rowsort label-9035
SELECT + 44 + 72 col2, COUNT ( * )
----
116
1

onlyif mysql # aggregate syntax: 
query II rowsort label-9036
SELECT ALL ( + 43 ), + MAX( ALL + 70 ) + - + 92 AS col0
----
43
-22

skipif mysql # not compatible
query II rowsort label-9036
SELECT ALL ( + 43 ), + MAX ( ALL + 70 ) + - + 92 AS col0
----
43
-22

query I rowsort
SELECT + 58 + 53 AS col1
----
111

query I rowsort
SELECT 84 + - + 69 AS col2
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-9039
SELECT COUNT( * ) - 33 AS col2
----
-32

skipif mysql # not compatible
query I rowsort label-9039
SELECT COUNT ( * ) - 33 AS col2
----
-32

query I rowsort
SELECT 29 + - 28 + + 40 + 9
----
50

query I rowsort
SELECT DISTINCT 38 * - 24 * - + ( - + 79 )
----
-72048

onlyif mysql # aggregate syntax: 
query II rowsort label-9042
SELECT COUNT( * ) + COUNT( ALL + 56 ) AS col2, 46 * + MAX( DISTINCT + + ( + 56 ) ) + 12 + - 2 AS col2
----
2
2586

skipif mysql # not compatible
query II rowsort label-9042
SELECT COUNT ( * ) + COUNT ( ALL + 56 ) AS col2, 46 * + MAX ( DISTINCT + + ( + 56 ) ) + 12 + - 2 AS col2
----
2
2586

onlyif mysql # aggregate syntax: 
query I rowsort label-9043
SELECT DISTINCT COUNT( * ) * + NULLIF ( + 61, + + 90 ) AS col1
----
61

skipif mysql # not compatible
query I rowsort label-9043
SELECT DISTINCT COUNT ( * ) * + NULLIF ( + 61, + + 90 ) AS col1
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-9044
SELECT - MAX( ALL + 68 )
----
-68

skipif mysql # not compatible
query I rowsort label-9044
SELECT - MAX ( ALL + 68 )
----
-68

query I rowsort
SELECT ALL 37 + 84
----
121

query I rowsort
SELECT 54 + + 29 AS col0
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-9047
SELECT ALL - MAX( ALL + 82 ) AS col2
----
-82

skipif mysql # not compatible
query I rowsort label-9047
SELECT ALL - MAX ( ALL + 82 ) AS col2
----
-82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9048
SELECT COALESCE ( - - CAST( NULL AS SIGNED ), + 75 * - CAST( NULL AS SIGNED ) + - 88 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9048
SELECT COALESCE ( - - CAST ( NULL AS INTEGER ), + 75 * - CAST ( NULL AS INTEGER ) + - 88 )
----
NULL

query II rowsort
SELECT 28 * + 15 + 7 AS col2, 69 col2
----
427
69

onlyif mysql # aggregate syntax: 
query II rowsort label-9050
SELECT COUNT( * ) * + 75 * - 65 AS col1, + 78 * COUNT( * ) AS col0
----
-4875
78

skipif mysql # not compatible
query II rowsort label-9050
SELECT COUNT ( * ) * + 75 * - 65 AS col1, + 78 * COUNT ( * ) AS col0
----
-4875
78

onlyif mysql # aggregate syntax: 
query I rowsort label-9051
SELECT NULLIF ( + 62, + 30 + + 12 + - 48 + - MAX( - 79 ) ) AS col2
----
62

skipif mysql # not compatible
query I rowsort label-9051
SELECT NULLIF ( + 62, + 30 + + 12 + - 48 + - MAX ( - 79 ) ) AS col2
----
62

onlyif mysql # aggregate syntax: 
query II rowsort label-9052
SELECT 47 * + 65 + - COUNT( * ) + + 79 + - COUNT( * ) + + MIN( + + 25 ) + 44 + 9 * - - 73 + - 12 * ( - 15 ), 62 AS col0
----
4038
62

skipif mysql # not compatible
query II rowsort label-9052
SELECT 47 * + 65 + - COUNT ( * ) + + 79 + - COUNT ( * ) + + MIN ( + + 25 ) + 44 + 9 * - - 73 + - 12 * ( - 15 ), 62 AS col0
----
4038
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9053
SELECT NULLIF ( + COUNT( * ), CASE - - CASE - COALESCE ( + COUNT( * ), - - 97, + 92 * - 67 * 12 ) WHEN - 10 * NULLIF ( COUNT( * ), + 95 * - - 32 + 32 ) * + 23 THEN + ( - CAST( NULL AS SIGNED ) ) ELSE - + 50 + 25 + 8 END WHEN CASE + 72 WHEN 93 THEN NULL WHEN - 36 + AVG ( ALL 28 ) - - 34 THEN + 99 * - + MAX( + 58 ) END THEN 92 * 25 WHEN + + MAX( DISTINCT + 49 ) + - COUNT( * ) THEN 15 ELSE + ( + 59 ) - + 6 END ) DIV + 14 + + 1
----
1

skipif mysql # not compatible
query I rowsort label-9053
SELECT NULLIF ( + COUNT ( * ), CASE - - CASE - COALESCE ( + COUNT ( * ), - - 97, + 92 * - 67 * 12 ) WHEN - 10 * NULLIF ( COUNT ( * ), + 95 * - - 32 + 32 ) * + 23 THEN + ( - CAST ( NULL AS INTEGER ) ) ELSE - + 50 + 25 + 8 END WHEN CASE + 72 WHEN 93 THEN NULL WHEN - 36 + AVG ( ALL 28 ) - - 34 THEN + 99 * - + MAX ( + 58 ) END THEN 92 * 25 WHEN + + MAX ( DISTINCT + 49 ) + - COUNT ( * ) THEN 15 ELSE + ( + 59 ) - + 6 END ) / + 14 + + 1
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9054
SELECT DISTINCT COUNT( * ) * - + 52 DIV + - 65 * - 88 - 51, + 57 + + 18 * COUNT( * ) AS col2
----
-51
75

skipif mysql # not compatible
query II rowsort label-9054
SELECT DISTINCT COUNT ( * ) * - + 52 / + - 65 * - 88 - 51, + 57 + + 18 * COUNT ( * ) AS col2
----
-51
75

onlyif mysql # aggregate syntax: 
query II rowsort label-9055
SELECT - + 28 + 15 * - 38 AS col2, + COUNT( * ) * 60 AS col1
----
-598
60

skipif mysql # not compatible
query II rowsort label-9055
SELECT - + 28 + 15 * - 38 AS col2, + COUNT ( * ) * 60 AS col1
----
-598
60

onlyif mysql # aggregate syntax: 
query I rowsort label-9056
SELECT ALL MAX( + 59 ) * + 21 - - NULLIF ( - 69, - 40 ) - 71 AS col1
----
1099

skipif mysql # not compatible
query I rowsort label-9056
SELECT ALL MAX ( + 59 ) * + 21 - - NULLIF ( - 69, - 40 ) - 71 AS col1
----
1099

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9057
SELECT DISTINCT + 14 AS col0, + CAST( NULL AS SIGNED ) * 72, - 46 AS col0
----
14
NULL
-46

skipif mysql # not compatible
query III rowsort label-9057
SELECT DISTINCT + 14 AS col0, + CAST ( NULL AS INTEGER ) * 72, - 46 AS col0
----
14
NULL
-46

query I rowsort
SELECT DISTINCT + 90 * + - 66
----
-5940

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9059
SELECT - CAST( NULL AS DECIMAL ) / + - 59 * + AVG ( ALL - 65 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9059
SELECT - CAST ( NULL AS REAL ) / + - 59 * + AVG ( ALL - 65 ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9060
SELECT + - 71 * CAST( NULL AS SIGNED ) + - 64 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9060
SELECT + - 71 * CAST ( NULL AS INTEGER ) + - 64 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9061
SELECT DISTINCT + 42 * + + COUNT( * ) + 37, + 25 AS col1
----
79
25

skipif mysql # not compatible
query II rowsort label-9061
SELECT DISTINCT + 42 * + + COUNT ( * ) + 37, + 25 AS col1
----
79
25

onlyif mysql # aggregate syntax: 
query I rowsort label-9062
SELECT ALL + COUNT( + 43 ) * 26 AS col0
----
26

skipif mysql # not compatible
query I rowsort label-9062
SELECT ALL + COUNT ( + 43 ) * 26 AS col0
----
26

onlyif mysql # aggregate syntax: 
query II rowsort label-9063
SELECT COUNT( * ) AS col1, 49 + + COALESCE ( + ( + + MAX( DISTINCT - 54 ) ), - 86 ) * - 9 * - 96
----
1
-46607

skipif mysql # not compatible
query II rowsort label-9063
SELECT COUNT ( * ) AS col1, 49 + + COALESCE ( + ( + + MAX ( DISTINCT - 54 ) ), - 86 ) * - 9 * - 96
----
1
-46607

onlyif mysql # aggregate syntax: 
query I rowsort label-9064
SELECT - 64 + - 90 * - MAX( ALL + 56 )
----
4976

skipif mysql # not compatible
query I rowsort label-9064
SELECT - 64 + - 90 * - MAX ( ALL + 56 )
----
4976

onlyif mysql # aggregate syntax: 
query I rowsort label-9065
SELECT - 39 + - + 70 - + CASE - 50 WHEN + + MAX( DISTINCT 99 ) / - 95 THEN NULL WHEN - - COUNT( * ) * - 11 THEN + - COUNT( * ) WHEN + COUNT( * ) THEN NULL WHEN + 25 THEN NULL END + - - 36 * + + 43 + 29 * + + ( 76 ) + COUNT( * ) / - 26 + - 10
----
NULL

skipif mysql # not compatible
query I rowsort label-9065
SELECT - 39 + - + 70 - + CASE - 50 WHEN + + MAX ( DISTINCT 99 ) / - 95 THEN NULL WHEN - - COUNT ( * ) * - 11 THEN + - COUNT ( * ) WHEN + COUNT ( * ) THEN NULL WHEN + 25 THEN NULL END + - - 36 * + + 43 + 29 * + + ( 76 ) + COUNT ( * ) / - 26 + - 10
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9066
SELECT ALL + 31 * CAST( + 51 AS SIGNED ) AS col2
----
1581

skipif mysql # not compatible
query I rowsort label-9066
SELECT ALL + 31 * CAST ( + 51 AS INTEGER ) AS col2
----
1581

onlyif mysql # aggregate syntax: 
query I rowsort label-9067
SELECT DISTINCT - COUNT( 52 ) + 3 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-9067
SELECT DISTINCT - COUNT ( 52 ) + 3 AS col2
----
2

query II rowsort
SELECT 24 AS col2, - 39 AS col1
----
24
-39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9069
SELECT ALL - CAST( - SUM( DISTINCT 95 ) AS SIGNED ) + + - 43 + + 92 * - 2 * - 55 * 36 AS col0
----
364372

skipif mysql # not compatible
query I rowsort label-9069
SELECT ALL - CAST ( - SUM ( DISTINCT 95 ) AS INTEGER ) + + - 43 + + 92 * - 2 * - 55 * 36 AS col0
----
364372

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9070
SELECT DISTINCT + NULLIF ( + + ( - COUNT( * ) ), + + 36 * 1 + 32 * - ( 50 ) ) + - COALESCE ( - - 9, - 60 DIV COUNT( * ) * + 61 - - + ( + 72 ) * + 78 ) + + 16
----
6

skipif mysql # not compatible
query I rowsort label-9070
SELECT DISTINCT + NULLIF ( + + ( - COUNT ( * ) ), + + 36 * 1 + 32 * - ( 50 ) ) + - COALESCE ( - - 9, - 60 / COUNT ( * ) * + 61 - - + ( + 72 ) * + 78 ) + + 16
----
6

query I rowsort
SELECT DISTINCT - 77 + - 32 AS col2
----
-109

onlyif mysql # aggregate syntax: 
query I rowsort label-9072
SELECT - MAX( DISTINCT + 79 ) AS col0
----
-79

skipif mysql # not compatible
query I rowsort label-9072
SELECT - MAX ( DISTINCT + 79 ) AS col0
----
-79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9073
SELECT DISTINCT CASE - 27 WHEN - CAST( - 62 AS SIGNED ) THEN + 92 / - 0 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9073
SELECT DISTINCT CASE - 27 WHEN - CAST ( - 62 AS INTEGER ) THEN + 92 / - 0 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9074
SELECT ALL - COUNT( 97 ) + - COUNT( * )
----
-2

skipif mysql # not compatible
query I rowsort label-9074
SELECT ALL - COUNT ( 97 ) + - COUNT ( * )
----
-2

onlyif mysql # aggregate syntax: 
query II rowsort label-9075
SELECT 53, MAX( DISTINCT + - 51 ) * - - 48 AS col2
----
53
-2448

skipif mysql # not compatible
query II rowsort label-9075
SELECT 53, MAX ( DISTINCT + - 51 ) * - - 48 AS col2
----
53
-2448

query II rowsort
SELECT 56 AS col0, - 79
----
56
-79

query I rowsort
SELECT ALL 43 - - 37
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-9078
SELECT + COUNT( * ) * 35 * - COUNT( * )
----
-35

skipif mysql # not compatible
query I rowsort label-9078
SELECT + COUNT ( * ) * 35 * - COUNT ( * )
----
-35

query I rowsort
SELECT - 19 + - 89
----
-108

query I rowsort
SELECT - COALESCE ( - ( 48 ), + 82 * 14 ) AS col1
----
48

query I rowsort
SELECT + 42 + + 7 - + + 24 * + - 36 + 18 AS col1
----
931

onlyif mysql # aggregate syntax: 
query II rowsort label-9082
SELECT DISTINCT 34 AS col2, 36 * + MAX( + 76 )
----
34
2736

skipif mysql # not compatible
query II rowsort label-9082
SELECT DISTINCT 34 AS col2, 36 * + MAX ( + 76 )
----
34
2736

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9083
SELECT - COUNT( * ) DIV 5
----
0

skipif mysql # not compatible
query I rowsort label-9083
SELECT - COUNT ( * ) / 5
----
0

query I rowsort
SELECT + ( + 45 ) * + - 63
----
-2835

onlyif mysql # aggregate syntax: 
query I rowsort label-9085
SELECT + MAX( DISTINCT + + 38 ) * 42 AS col2
----
1596

skipif mysql # not compatible
query I rowsort label-9085
SELECT + MAX ( DISTINCT + + 38 ) * 42 AS col2
----
1596

onlyif mysql # aggregate syntax: 
query I rowsort label-9086
SELECT + - MIN( ( - ( - - 59 ) ) ) - 63
----
-4

skipif mysql # not compatible
query I rowsort label-9086
SELECT + - MIN ( ( - ( - - 59 ) ) ) - 63
----
-4

query I rowsort
SELECT + 96 * - + 7
----
-672

query I rowsort
SELECT ALL 66 * - 91 + - - 81 AS col1
----
-5925

query I rowsort
SELECT ALL + 94 * 18 + - 94
----
1598

onlyif mysql # aggregate syntax: 
query I rowsort label-9090
SELECT DISTINCT + COALESCE ( MAX( ALL 92 ), + 45 ) col0
----
92

skipif mysql # not compatible
query I rowsort label-9090
SELECT DISTINCT + COALESCE ( MAX ( ALL 92 ), + 45 ) col0
----
92

query II rowsort
SELECT ALL + - 49 AS col1, - 10 AS col1
----
-49
-10

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9092
SELECT ALL + 1 AS col1, 2 DIV + 79 DIV - - COUNT( * ) col0
----
1
0

skipif mysql # not compatible
query II rowsort label-9092
SELECT ALL + 1 AS col1, 2 / + 79 / - - COUNT ( * ) col0
----
1
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9093
SELECT + CASE + 79 WHEN + 97 THEN NULL ELSE + CASE - 74 WHEN + CAST( - CAST( + COALESCE ( + 38, 99 ) AS SIGNED ) AS SIGNED ) * - - COUNT( * ) * + + CAST( 79 AS SIGNED ) THEN NULL WHEN 64 + NULLIF ( - 6, + 72 / - + ( 25 ) - - 65 ) THEN - ( 99 ) / - - 98 * COALESCE ( - 32, 92, 53 ) END + + 26 END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9093
SELECT + CASE + 79 WHEN + 97 THEN NULL ELSE + CASE - 74 WHEN + CAST ( - CAST ( + COALESCE ( + 38, 99 ) AS INTEGER ) AS INTEGER ) * - - COUNT ( * ) * + + CAST ( 79 AS INTEGER ) THEN NULL WHEN 64 + NULLIF ( - 6, + 72 / - + ( 25 ) - - 65 ) THEN - ( 99 ) / - - 98 * COALESCE ( - 32, 92, 53 ) END + + 26 END col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9094
SELECT + COUNT( + 71 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9094
SELECT + COUNT ( + 71 ) AS col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9095
SELECT + - ( 19 ) * - ( + CASE - CASE + 38 WHEN - COUNT( * ) THEN NULL ELSE - - 77 END WHEN - 89 * - - ( + - 47 ) / - COALESCE ( + 51, - 18 ) + - 7 THEN NULL WHEN - - 29 THEN - - 71 END ) + + 58 + + AVG ( + 25 ) + - - 89 AS col2, CAST( NULL AS SIGNED )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-9095
SELECT + - ( 19 ) * - ( + CASE - CASE + 38 WHEN - COUNT ( * ) THEN NULL ELSE - - 77 END WHEN - 89 * - - ( + - 47 ) / - COALESCE ( + 51, - 18 ) + - 7 THEN NULL WHEN - - 29 THEN - - 71 END ) + + 58 + + AVG ( + 25 ) + - - 89 AS col2, CAST ( NULL AS INTEGER )
----
NULL
NULL

query I rowsort
SELECT + - 16 * 97
----
-1552

onlyif mysql # aggregate syntax: 
query I rowsort label-9097
SELECT + MAX( ALL - - 37 ) AS col1
----
37

skipif mysql # not compatible
query I rowsort label-9097
SELECT + MAX ( ALL - - 37 ) AS col1
----
37

query I rowsort
SELECT DISTINCT 71 * 39 + + - 10 AS col2
----
2759

query I rowsort
SELECT DISTINCT 92 * + + 85 + - 55
----
7765

query I rowsort
SELECT ALL + 53 * - 20 + - 9 AS col0
----
-1069

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9101
SELECT + - 60, - 39 / + 87 - CAST( NULL AS DECIMAL ) AS col1
----
-60
NULL

skipif mysql # not compatible
query II rowsort label-9101
SELECT + - 60, - 39 / + 87 - CAST ( NULL AS REAL ) AS col1
----
-60
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9102
SELECT ALL CAST( NULL AS SIGNED ) * + 13 + 72
----
NULL

skipif mysql # not compatible
query I rowsort label-9102
SELECT ALL CAST ( NULL AS INTEGER ) * + 13 + 72
----
NULL

query I rowsort
SELECT DISTINCT 80 * 58 + + 57 AS col0
----
4697

onlyif mysql # aggregate syntax: 
query I rowsort label-9104
SELECT - + 90 * 64 * COUNT( * ) * - MAX( DISTINCT - 21 ) * + + 40
----
-4838400

skipif mysql # not compatible
query I rowsort label-9104
SELECT - + 90 * 64 * COUNT ( * ) * - MAX ( DISTINCT - 21 ) * + + 40
----
-4838400

query I rowsort
SELECT DISTINCT + 84 * - 4 + + 43 AS col2
----
-293

onlyif mysql # aggregate syntax: 
query I rowsort label-9106
SELECT MAX( DISTINCT - 13 ) AS col2
----
-13

skipif mysql # not compatible
query I rowsort label-9106
SELECT MAX ( DISTINCT - 13 ) AS col2
----
-13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9107
SELECT + CAST( - 94 AS SIGNED )
----
-94

skipif mysql # not compatible
query I rowsort label-9107
SELECT + CAST ( - 94 AS INTEGER )
----
-94

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9108
SELECT - 15 DIV 97 AS col1, ( - 34 ) + - SUM( DISTINCT 55 ) AS col1
----
0
-89

skipif mysql # not compatible
query II rowsort label-9108
SELECT - 15 / 97 AS col1, ( - 34 ) + - SUM ( DISTINCT 55 ) AS col1
----
0
-89

onlyif mysql # DIV for integer division: 
query I rowsort label-9109
SELECT - 96 * + 29 + + 5 DIV + + 12 AS col2
----
-2784

skipif mysql # not compatible
query I rowsort label-9109
SELECT - 96 * + 29 + + 5 / + + 12 AS col2
----
-2784

query I rowsort
SELECT - 3 + + - ( + - 14 )
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-9111
SELECT ALL + 15 * - MIN( - 0 ) - 70
----
-70

skipif mysql # not compatible
query I rowsort label-9111
SELECT ALL + 15 * - MIN ( - 0 ) - 70
----
-70

query I rowsort
SELECT ALL CASE + + 93 WHEN + 7 THEN - 10 * - - ( + 15 ) WHEN + - 70 THEN NULL ELSE - 81 - - - 21 + + + 49 END AS col2
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-9113
SELECT DISTINCT - ( - - CASE + + NULLIF ( + 91, + + 31 ) WHEN + 8 THEN NULL WHEN + - 15 THEN NULL ELSE 55 * - + 83 END ) * - COUNT( DISTINCT - - 37 ) - 30 + - 34 - + 2 + + - 89 + + + COUNT( * ) * + + 65 * - - 96 AS col0
----
1520

skipif mysql # not compatible
query I rowsort label-9113
SELECT DISTINCT - ( - - CASE + + NULLIF ( + 91, + + 31 ) WHEN + 8 THEN NULL WHEN + - 15 THEN NULL ELSE 55 * - + 83 END ) * - COUNT ( DISTINCT - - 37 ) - 30 + - 34 - + 2 + + - 89 + + + COUNT ( * ) * + + 65 * - - 96 AS col0
----
1520

query I rowsort
SELECT - 49 - - - 85 + + 21 * 92 * + 73
----
140902

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9115
SELECT ALL + 1 * - 50 AS col1, COALESCE ( - CASE - 14 WHEN 41 THEN NULL WHEN 61 - - COUNT( * ) THEN + COUNT( * ) + + CASE + 56 WHEN + COUNT( 18 ) THEN - 95 END * 35 * - - 47 DIV - + 30 ELSE NULL END, + 47 ) * COUNT( * ) + - 69 + + ( - SUM( DISTINCT 67 ) ) + + + 6 + - + 91 + + + 73 * + 6
----
-50
264

skipif mysql # not compatible
query II rowsort label-9115
SELECT ALL + 1 * - 50 AS col1, COALESCE ( - CASE - 14 WHEN 41 THEN NULL WHEN 61 - - COUNT ( * ) THEN + COUNT ( * ) + + CASE + 56 WHEN + COUNT ( 18 ) THEN - 95 END * 35 * - - 47 / - + 30 ELSE NULL END, + 47 ) * COUNT ( * ) + - 69 + + ( - SUM ( DISTINCT 67 ) ) + + + 6 + - + 91 + + + 73 * + 6
----
-50
264

onlyif mysql # aggregate syntax: 
query I rowsort label-9116
SELECT - COUNT( * ) + + COUNT( 94 ) + + - 95
----
-95

skipif mysql # not compatible
query I rowsort label-9116
SELECT - COUNT ( * ) + + COUNT ( 94 ) + + - 95
----
-95

onlyif mysql # DIV for integer division: 
query I rowsort label-9117
SELECT - 13 + 6 + + + 3 DIV + NULLIF ( - - 43, - + COALESCE ( 88, + 56 * + 40 + 83, + 3 ) )
----
-7

skipif mysql # not compatible
query I rowsort label-9117
SELECT - 13 + 6 + + + 3 / + NULLIF ( - - 43, - + COALESCE ( 88, + 56 * + 40 + 83, + 3 ) )
----
-7

onlyif mysql # aggregate syntax: 
query II rowsort label-9118
SELECT ALL COUNT( + 40 ) AS col2, 34 col0
----
1
34

skipif mysql # not compatible
query II rowsort label-9118
SELECT ALL COUNT ( + 40 ) AS col2, 34 col0
----
1
34

query I rowsort
SELECT - NULLIF ( 8, + - 2 * - 80 )
----
-8

query I rowsort
SELECT 29 * + 27 AS col1
----
783

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9121
SELECT + MIN( ALL ( + + 14 ) ) DIV ( + 33 ) - COUNT( * ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-9121
SELECT + MIN ( ALL ( + + 14 ) ) / ( + 33 ) - COUNT ( * ) AS col0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-9122
SELECT - 30 DIV - 44 - + ( - ( - 60 ) ) * + 20 AS col0
----
-1200

skipif mysql # not compatible
query I rowsort label-9122
SELECT - 30 / - 44 - + ( - ( - 60 ) ) * + 20 AS col0
----
-1200

query I rowsort
SELECT ALL NULLIF ( 63, - - 32 ) + 19 * ( - 89 ) AS col2
----
-1628

onlyif mysql # aggregate syntax: 
query I rowsort label-9124
SELECT DISTINCT + - 53 + COUNT( * ) AS col0
----
-52

skipif mysql # not compatible
query I rowsort label-9124
SELECT DISTINCT + - 53 + COUNT ( * ) AS col0
----
-52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9125
SELECT ALL - 79 + + MIN( + 31 ) DIV - - 94 - - 66 * + 25
----
1571

skipif mysql # not compatible
query I rowsort label-9125
SELECT ALL - 79 + + MIN ( + 31 ) / - - 94 - - 66 * + 25
----
1571

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9126
SELECT ALL + COUNT( * ) + - + CAST( NULL AS SIGNED ) AS col2, - 84 + + + CAST( - COUNT( * ) AS SIGNED ) + 42
----
NULL
-43

skipif mysql # not compatible
query II rowsort label-9126
SELECT ALL + COUNT ( * ) + - + CAST ( NULL AS INTEGER ) AS col2, - 84 + + + CAST ( - COUNT ( * ) AS INTEGER ) + 42
----
NULL
-43

onlyif mysql # aggregate syntax: 
query II rowsort label-9127
SELECT - 10 + 27 AS col1, - COUNT( DISTINCT - + 8 ) * - + MAX( DISTINCT + ( + 81 ) ) + - 30 - + + 4 * + - 57
----
17
279

skipif mysql # not compatible
query II rowsort label-9127
SELECT - 10 + 27 AS col1, - COUNT ( DISTINCT - + 8 ) * - + MAX ( DISTINCT + ( + 81 ) ) + - 30 - + + 4 * + - 57
----
17
279

onlyif mysql # aggregate syntax: 
query I rowsort label-9128
SELECT ALL + 99 + - 29 + + COUNT( * )
----
71

skipif mysql # not compatible
query I rowsort label-9128
SELECT ALL + 99 + - 29 + + COUNT ( * )
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-9129
SELECT + MAX( - 73 )
----
-73

skipif mysql # not compatible
query I rowsort label-9129
SELECT + MAX ( - 73 )
----
-73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9130
SELECT - CAST( 97 AS SIGNED ) AS col1
----
-97

skipif mysql # not compatible
query I rowsort label-9130
SELECT - CAST ( 97 AS INTEGER ) AS col1
----
-97

query I rowsort
SELECT - - 62 * + 49 * 37 + + + 81 + + + 98 AS col2
----
112585

onlyif mysql # aggregate syntax: 
query I rowsort label-9132
SELECT + SUM( - 8 ) + + 0
----
-8

skipif mysql # not compatible
query I rowsort label-9132
SELECT + SUM ( - 8 ) + + 0
----
-8

onlyif mysql # aggregate syntax: 
query II rowsort label-9133
SELECT ALL 30 + - 50 AS col0, + 88 * COUNT( * ) AS col1
----
-20
88

skipif mysql # not compatible
query II rowsort label-9133
SELECT ALL 30 + - 50 AS col0, + 88 * COUNT ( * ) AS col1
----
-20
88

query I rowsort
SELECT ( 84 ) * 77 col1
----
6468

query II rowsort
SELECT 45 + ( - - 46 ), - 15 AS col1
----
91
-15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9136
SELECT DISTINCT CAST( NULL AS SIGNED ) * COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9136
SELECT DISTINCT CAST ( NULL AS INTEGER ) * COUNT ( * ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9137
SELECT ALL MIN( + - 78 ) - 34
----
-112

skipif mysql # not compatible
query I rowsort label-9137
SELECT ALL MIN ( + - 78 ) - 34
----
-112

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9138
SELECT ALL - ( CAST( - - 83 AS SIGNED ) ) - - + 24 - 34 DIV - 87
----
-59

skipif mysql # not compatible
query I rowsort label-9138
SELECT ALL - ( CAST ( - - 83 AS INTEGER ) ) - - + 24 - 34 / - 87
----
-59

query I rowsort
SELECT 35 * - 69
----
-2415

query I rowsort
SELECT 44 + + 15
----
59

onlyif mysql # DIV for integer division: 
query I rowsort label-9141
SELECT 96 * - 1 + 39 DIV 20 AS col1
----
-95

skipif mysql # not compatible
query I rowsort label-9141
SELECT 96 * - 1 + 39 / 20 AS col1
----
-95

onlyif mysql # DIV for integer division: 
query I rowsort label-9142
SELECT 25 DIV 18 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9142
SELECT 25 / 18 AS col2
----
1

query II rowsort
SELECT 81 AS col2, + 60 * + ( + - 67 ) + 38 AS col0
----
81
-3982

query II rowsort
SELECT 16 AS col0, ( + - 74 ) + + 63 * - 25 AS col2
----
16
-1649

query I rowsort
SELECT 73 * + 73
----
5329

onlyif mysql # DIV for integer division: 
query I rowsort label-9146
SELECT ALL - 24 DIV + 89 * + 46 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9146
SELECT ALL - 24 / + 89 * + 46 AS col2
----
0

query II rowsort
SELECT ALL 82, + 54 AS col2
----
82
54

query I rowsort
SELECT 60 * - 20 AS col0
----
-1200

query I rowsort
SELECT 63 * + ( - ( 89 ) )
----
-5607

query I rowsort
SELECT ALL - 97 * + - 8
----
776

onlyif mysql # DIV for integer division: 
query I rowsort label-9151
SELECT ALL - 25 DIV - - 9 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-9151
SELECT ALL - 25 / - - 9 AS col2
----
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9152
SELECT ALL + 70 + COUNT( * ) + + 26 DIV - 49
----
71

skipif mysql # not compatible
query I rowsort label-9152
SELECT ALL + 70 + COUNT ( * ) + + 26 / - 49
----
71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9153
SELECT - CAST( 41 AS SIGNED ) AS col1
----
-41

skipif mysql # not compatible
query I rowsort label-9153
SELECT - CAST ( 41 AS INTEGER ) AS col1
----
-41

query I rowsort
SELECT 82 * 95 AS col0
----
7790

onlyif mysql # aggregate syntax: 
query I rowsort label-9155
SELECT + NULLIF ( - MIN( 82 ), - 72 ) * - + 62 AS col0
----
5084

skipif mysql # not compatible
query I rowsort label-9155
SELECT + NULLIF ( - MIN ( 82 ), - 72 ) * - + 62 AS col0
----
5084

query I rowsort
SELECT 20 - + 50 AS col1
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-9157
SELECT - - COUNT( 18 )
----
1

skipif mysql # not compatible
query I rowsort label-9157
SELECT - - COUNT ( 18 )
----
1

query I rowsort
SELECT ALL - - 88 + 24
----
112

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9159
SELECT CASE CAST( NULL AS SIGNED ) WHEN + 23 + 36 + - - 94 + - COUNT( * ) * 14 THEN - - 21 * - - 64 + 47 - 28 WHEN 14 THEN - + 64 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9159
SELECT CASE CAST ( NULL AS INTEGER ) WHEN + 23 + 36 + - - 94 + - COUNT ( * ) * 14 THEN - - 21 * - - 64 + 47 - 28 WHEN 14 THEN - + 64 ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT ALL - + ( 2 ) AS col2
----
-2

query II rowsort
SELECT DISTINCT 13 * + + 37 + - 24, + ( ( + ( + 59 ) ) ) * + + 56 - + + AVG ( ALL + 20 ) - - CASE 5 WHEN - - 78 THEN NULL WHEN 32 / 23 * - + 48 THEN + + 43 END * + 10 * - + 39 AS col2
----
457
NULL

query I rowsort
SELECT 89 * - 79 - 49
----
-7080

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9163
SELECT ALL - MAX( - 23 ) * - 96 + CAST( NULL AS SIGNED ) - - 73 + 20 / + 39
----
NULL

skipif mysql # not compatible
query I rowsort label-9163
SELECT ALL - MAX ( - 23 ) * - 96 + CAST ( NULL AS INTEGER ) - - 73 + 20 / + 39
----
NULL

query II rowsort
SELECT 69 * - + 97 * - + 61 * - 44 AS col0, - 89 * 49
----
-17964012
-4361

onlyif mysql # aggregate syntax: 
query II rowsort label-9165
SELECT 12 * - - 82 - + 41 col1, 67 + + + COUNT( * )
----
943
68

skipif mysql # not compatible
query II rowsort label-9165
SELECT 12 * - - 82 - + 41 col1, 67 + + + COUNT ( * )
----
943
68

query I rowsort
SELECT ALL - 43 * 28
----
-1204

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9167
SELECT ALL - CAST( - - 65 AS SIGNED )
----
-65

skipif mysql # not compatible
query I rowsort label-9167
SELECT ALL - CAST ( - - 65 AS INTEGER )
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-9168
SELECT ALL - 73 * CASE 4 WHEN 21 * + 7 * 32 * - + 61 - + 29 THEN 50 WHEN + 32 * 14 * + - 19 * + 60 + + + COUNT( * ) / + + CASE + + 45 WHEN - 31 THEN + 35 * 67 ELSE - COUNT( * ) END THEN NULL END * - + 62 + + 62 * + CASE 95 WHEN COUNT( + 11 ) THEN NULL ELSE - 3 * 71 END * + 98 - - 88 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9168
SELECT ALL - 73 * CASE 4 WHEN 21 * + 7 * 32 * - + 61 - + 29 THEN 50 WHEN + 32 * 14 * + - 19 * + 60 + + + COUNT ( * ) / + + CASE + + 45 WHEN - 31 THEN + 35 * 67 ELSE - COUNT ( * ) END THEN NULL END * - + 62 + + 62 * + CASE 95 WHEN COUNT ( + 11 ) THEN NULL ELSE - 3 * 71 END * + 98 - - 88 col0
----
NULL

query II rowsort
SELECT ALL - 0 * - 46, 88 AS col2
----
0
88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9170
SELECT MIN( - CAST( NULL AS SIGNED ) ) col1, 93 + - 76 AS col0
----
NULL
17

skipif mysql # not compatible
query II rowsort label-9170
SELECT MIN ( - CAST ( NULL AS INTEGER ) ) col1, 93 + - 76 AS col0
----
NULL
17

query I rowsort
SELECT 28 * - 6
----
-168

onlyif mysql # DIV for integer division: 
query I rowsort label-9172
SELECT + COALESCE ( - + 31, + 26 * - + CASE - - 87 WHEN - 35 + - 45 * 42 THEN 99 ELSE - + NULLIF ( + 36, 62 ) * - 49 + 59 - - + 39 END DIV + COALESCE ( - 57, + 6, + + 5 ) + + 49 )
----
-31

skipif mysql # not compatible
query I rowsort label-9172
SELECT + COALESCE ( - + 31, + 26 * - + CASE - - 87 WHEN - 35 + - 45 * 42 THEN 99 ELSE - + NULLIF ( + 36, 62 ) * - 49 + 59 - - + 39 END / + COALESCE ( - 57, + 6, + + 5 ) + + 49 )
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-9173
SELECT 28 * + COUNT( * ) + + - 4
----
24

skipif mysql # not compatible
query I rowsort label-9173
SELECT 28 * + COUNT ( * ) + + - 4
----
24

query II rowsort
SELECT + 19 * + + 66 AS col2, - 37
----
1254
-37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9175
SELECT + SUM( ALL + - NULLIF ( - 89, CAST( NULL AS SIGNED ) ) ) + 7 AS col0, 28 * - 48 * + ( + 80 ) * - 46
----
96
4945920

skipif mysql # not compatible
query II rowsort label-9175
SELECT + SUM ( ALL + - NULLIF ( - 89, CAST ( NULL AS INTEGER ) ) ) + 7 AS col0, 28 * - 48 * + ( + 80 ) * - 46
----
96
4945920

query I rowsort
SELECT + 66 + - + 5
----
61

onlyif mysql # DIV for integer division: 
query I rowsort label-9177
SELECT + 84 DIV + + 97 col2
----
0

skipif mysql # not compatible
query I rowsort label-9177
SELECT + 84 / + + 97 col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9178
SELECT DISTINCT MIN( 10 ) DIV - - ( 65 )
----
0

skipif mysql # not compatible
query I rowsort label-9178
SELECT DISTINCT MIN ( 10 ) / - - ( 65 )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9179
SELECT + 18 DIV + 61 AS col1, COUNT( * ) AS col1
----
0
1

skipif mysql # not compatible
query II rowsort label-9179
SELECT + 18 / + 61 AS col1, COUNT ( * ) AS col1
----
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9180
SELECT ALL 24 + 15 * - 37 * COUNT( * ) AS col1
----
-531

skipif mysql # not compatible
query I rowsort label-9180
SELECT ALL 24 + 15 * - 37 * COUNT ( * ) AS col1
----
-531

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9181
SELECT - CAST( NULL AS SIGNED ) + - - 35, 99 AS col1
----
NULL
99

skipif mysql # not compatible
query II rowsort label-9181
SELECT - CAST ( NULL AS INTEGER ) + - - 35, 99 AS col1
----
NULL
99

onlyif mysql # aggregate syntax: 
query I rowsort label-9182
SELECT ALL 18 + + COUNT( * ) AS col1
----
19

skipif mysql # not compatible
query I rowsort label-9182
SELECT ALL 18 + + COUNT ( * ) AS col1
----
19

query I rowsort
SELECT ALL ( 19 ) AS col2
----
19

query I rowsort
SELECT + - 85 + - 2 AS col1
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-9185
SELECT + SUM( DISTINCT - + 12 )
----
-12

skipif mysql # not compatible
query I rowsort label-9185
SELECT + SUM ( DISTINCT - + 12 )
----
-12

query I rowsort
SELECT DISTINCT + 41 * + ( CASE + 12 WHEN 19 THEN + + 91 * - + 65 + - 49 END ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9187
SELECT DISTINCT - + NULLIF ( COUNT( * ), + - MAX( ALL + 44 ) * + + 96 + - NULLIF ( + + 85, + 16 - + COUNT( * ) - - + 26 ) / - COUNT( * ) / - COUNT( DISTINCT + 39 ) ) - + ( - 97 )
----
96

skipif mysql # not compatible
query I rowsort label-9187
SELECT DISTINCT - + NULLIF ( COUNT ( * ), + - MAX ( ALL + 44 ) * + + 96 + - NULLIF ( + + 85, + 16 - + COUNT ( * ) - - + 26 ) / - COUNT ( * ) / - COUNT ( DISTINCT + 39 ) ) - + ( - 97 )
----
96

query I rowsort
SELECT DISTINCT + 97 - + 13 + - + 58 AS col2
----
26

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9189
SELECT ALL - COALESCE ( 42, + NULLIF ( - 64, 6 ) + - - 22 ) * 55 DIV - 72 + + ( + + MIN( - - 79 ) )
----
111

skipif mysql # not compatible
query I rowsort label-9189
SELECT ALL - COALESCE ( 42, + NULLIF ( - 64, 6 ) + - - 22 ) * 55 / - 72 + + ( + + MIN ( - - 79 ) )
----
111

query I rowsort
SELECT DISTINCT - - 10 * - 75 AS col0
----
-750

onlyif mysql # aggregate syntax: 
query I rowsort label-9191
SELECT ALL + 78 * - - COUNT( * ) AS col2
----
78

skipif mysql # not compatible
query I rowsort label-9191
SELECT ALL + 78 * - - COUNT ( * ) AS col2
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-9192
SELECT - + 67 + + SUM( ALL + + 1 )
----
-66

skipif mysql # not compatible
query I rowsort label-9192
SELECT - + 67 + + SUM ( ALL + + 1 )
----
-66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9193
SELECT ALL - - 69 * + 36 + + 3 - 18 DIV - + COALESCE ( + 63, + - 37 * 31 + 21 - 93, + - MAX( DISTINCT - 55 ) DIV - 25 - - - COUNT( * ) * + 53 * - 52 ) + - 81 + - ( 7 ) - - 73
----
2472

skipif mysql # not compatible
query I rowsort label-9193
SELECT ALL - - 69 * + 36 + + 3 - 18 / - + COALESCE ( + 63, + - 37 * 31 + 21 - 93, + - MAX ( DISTINCT - 55 ) / - 25 - - - COUNT ( * ) * + 53 * - 52 ) + - 81 + - ( 7 ) - - 73
----
2472

query I rowsort
SELECT DISTINCT - ( - 63 ) * - + 47 AS col1
----
-2961

query I rowsort
SELECT ALL + ( 95 ) col2
----
95

query I rowsort
SELECT ALL + NULLIF ( - 24, - 72 )
----
-24

query I rowsort
SELECT - 32 * 48 AS col2
----
-1536

onlyif mysql # aggregate syntax: 
query I rowsort label-9198
SELECT ALL + MAX( ALL 47 )
----
47

skipif mysql # not compatible
query I rowsort label-9198
SELECT ALL + MAX ( ALL 47 )
----
47

query II rowsort
SELECT DISTINCT + 77 AS col0, - 41
----
77
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-9200
SELECT DISTINCT + MIN( DISTINCT - 76 )
----
-76

skipif mysql # not compatible
query I rowsort label-9200
SELECT DISTINCT + MIN ( DISTINCT - 76 )
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-9201
SELECT NULLIF ( 1, + ( - 42 ) * + - 6 + - COALESCE ( - 35, + COUNT( * ) / - 42 * - COUNT( 21 ) ) )
----
1

skipif mysql # not compatible
query I rowsort label-9201
SELECT NULLIF ( 1, + ( - 42 ) * + - 6 + - COALESCE ( - 35, + COUNT ( * ) / - 42 * - COUNT ( 21 ) ) )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9202
SELECT ALL + CAST( NULL AS SIGNED ) / 53 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9202
SELECT ALL + CAST ( NULL AS INTEGER ) / 53 AS col0
----
NULL

query I rowsort
SELECT COALESCE ( - 20, - 15, - 81 ) AS col1
----
-20

query I rowsort
SELECT DISTINCT + 24 * ( - 21 )
----
-504

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9205
SELECT ALL + COALESCE ( 27, ( 78 ) + 18 ) DIV COUNT( * )
----
27

skipif mysql # not compatible
query I rowsort label-9205
SELECT ALL + COALESCE ( 27, ( 78 ) + 18 ) / COUNT ( * )
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-9206
SELECT - SUM( ALL - + 23 ) * COUNT( * )
----
23

skipif mysql # not compatible
query I rowsort label-9206
SELECT - SUM ( ALL - + 23 ) * COUNT ( * )
----
23

query II rowsort
SELECT ALL + 24 AS col1, 39 * - 68 + 83 * + - 37 + + + 2 AS col0
----
24
-5721

onlyif mysql # aggregate syntax: 
query I rowsort label-9208
SELECT + SUM( DISTINCT - - 46 ) AS col1
----
46

skipif mysql # not compatible
query I rowsort label-9208
SELECT + SUM ( DISTINCT - - 46 ) AS col1
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-9209
SELECT MAX( DISTINCT + 1 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9209
SELECT MAX ( DISTINCT + 1 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9210
SELECT + CASE + 28 WHEN + 0 + + COUNT( * ) THEN COUNT( * ) + + - 66 * - 59 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9210
SELECT + CASE + 28 WHEN + 0 + + COUNT ( * ) THEN COUNT ( * ) + + - 66 * - 59 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9211
SELECT ALL CAST( - ( - COUNT( * ) ) AS SIGNED ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9211
SELECT ALL CAST ( - ( - COUNT ( * ) ) AS INTEGER ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9212
SELECT + COUNT( * ) * - - 75 * 59 AS col1
----
4425

skipif mysql # not compatible
query I rowsort label-9212
SELECT + COUNT ( * ) * - - 75 * 59 AS col1
----
4425

query II rowsort
SELECT DISTINCT 89, 68 AS col0
----
89
68

onlyif mysql # aggregate syntax: 
query I rowsort label-9214
SELECT - SUM( ALL + 65 ) AS col2
----
-65

skipif mysql # not compatible
query I rowsort label-9214
SELECT - SUM ( ALL + 65 ) AS col2
----
-65

query I rowsort
SELECT ALL - 94 + - 73 AS col2
----
-167

query I rowsort
SELECT + - 89 * + 30 * - + 1 AS col2
----
2670

query I rowsort
SELECT ALL - 83 + COALESCE ( + + 86, + - 87, - - 40 ) col1
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9218
SELECT DISTINCT ( + 40 ) + - - 37 + + 91 * + CAST( NULL AS SIGNED ), 45 AS col1
----
NULL
45

skipif mysql # not compatible
query II rowsort label-9218
SELECT DISTINCT ( + 40 ) + - - 37 + + 91 * + CAST ( NULL AS INTEGER ), 45 AS col1
----
NULL
45

onlyif mysql # aggregate syntax: 
query II rowsort label-9219
SELECT ALL + 78, COUNT( * ) + - + SUM( ( + 77 ) ) AS col0
----
78
-76

skipif mysql # not compatible
query II rowsort label-9219
SELECT ALL + 78, COUNT ( * ) + - + SUM ( ( + 77 ) ) AS col0
----
78
-76

query I rowsort
SELECT ALL NULLIF ( + 77, + 88 + - 41 ) + 84
----
161

query I rowsort
SELECT + ( - + 18 ) * 81
----
-1458

query I rowsort
SELECT ALL + CASE 1 WHEN + 51 - 71 THEN + NULLIF ( 72, 69 * + 27 ) + - 40 + - + 29 END
----
NULL

query I rowsort
SELECT - ( + - 34 )
----
34

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9224
SELECT + + ( CAST( NULL AS DECIMAL ) ) + + + 2 - + 57 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9224
SELECT + + ( CAST ( NULL AS REAL ) ) + + + 2 - + 57 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9225
SELECT + + 62 * + 40 + - COUNT( * ) col0
----
2479

skipif mysql # not compatible
query I rowsort label-9225
SELECT + + 62 * + 40 + - COUNT ( * ) col0
----
2479

query I rowsort
SELECT - - 57 * - 97 - + - 69
----
-5460

query I rowsort
SELECT ALL ( - 55 ) AS col1
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-9228
SELECT MIN( - 83 ) AS col1
----
-83

skipif mysql # not compatible
query I rowsort label-9228
SELECT MIN ( - 83 ) AS col1
----
-83

query I rowsort
SELECT ALL - ( + 61 ) AS col1
----
-61

query II rowsort
SELECT 11 AS col2, 68 + 85
----
11
153

onlyif mysql # aggregate syntax: 
query I rowsort label-9231
SELECT + + COUNT( * ) + + SUM( DISTINCT 24 ) col2
----
25

skipif mysql # not compatible
query I rowsort label-9231
SELECT + + COUNT ( * ) + + SUM ( DISTINCT 24 ) col2
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-9232
SELECT + 79 * - 86 * - COALESCE ( - COUNT( * ), - + 54 + ( - MAX( DISTINCT 85 ) ) + 34 * 2 ) + + + ( - 29 ) + - 59 * + + COUNT( * ) AS col1
----
-6882

skipif mysql # not compatible
query I rowsort label-9232
SELECT + 79 * - 86 * - COALESCE ( - COUNT ( * ), - + 54 + ( - MAX ( DISTINCT 85 ) ) + 34 * 2 ) + + + ( - 29 ) + - 59 * + + COUNT ( * ) AS col1
----
-6882

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9233
SELECT + - CAST( NULL AS SIGNED ) + - 25 - + + 16
----
NULL

skipif mysql # not compatible
query I rowsort label-9233
SELECT + - CAST ( NULL AS INTEGER ) + - 25 - + + 16
----
NULL

query II rowsort
SELECT ALL + + 20 * 51 + 92 AS col0, 89
----
1112
89

onlyif mysql # aggregate syntax: 
query II rowsort label-9235
SELECT 89, - 1 * + COUNT( * ) col1
----
89
-1

skipif mysql # not compatible
query II rowsort label-9235
SELECT 89, - 1 * + COUNT ( * ) col1
----
89
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-9236
SELECT + 3 AS col2, + MIN( ALL 73 ) AS col0
----
3
73

skipif mysql # not compatible
query II rowsort label-9236
SELECT + 3 AS col2, + MIN ( ALL 73 ) AS col0
----
3
73

onlyif mysql # DIV for integer division: 
query I rowsort label-9237
SELECT 65 DIV 58 * - - 88 - - - 88
----
0

skipif mysql # not compatible
query I rowsort label-9237
SELECT 65 / 58 * - - 88 - - - 88
----
0

query I rowsort
SELECT 73 * + 42 AS col1
----
3066

query II rowsort
SELECT ALL + 37 + - 97, - 77 col1
----
-60
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-9240
SELECT DISTINCT - 83 + - MAX( - 46 ) AS col0
----
-37

skipif mysql # not compatible
query I rowsort label-9240
SELECT DISTINCT - 83 + - MAX ( - 46 ) AS col0
----
-37

onlyif mysql # aggregate syntax: 
query II rowsort label-9241
SELECT ALL - 83 AS col1, - COALESCE ( - + 97, + 99 + ( 51 ), COUNT( * ) )
----
-83
97

skipif mysql # not compatible
query II rowsort label-9241
SELECT ALL - 83 AS col1, - COALESCE ( - + 97, + 99 + ( 51 ), COUNT ( * ) )
----
-83
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9242
SELECT DISTINCT COALESCE ( - ( - + 29 ), - COALESCE ( - 83, + + 38 ) - - + 86 * + 47 * - + COUNT( * ) ) + + 11
----
40

skipif mysql # not compatible
query I rowsort label-9242
SELECT DISTINCT COALESCE ( - ( - + 29 ), - COALESCE ( - 83, + + 38 ) - - + 86 * + 47 * - + COUNT ( * ) ) + + 11
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-9243
SELECT ALL - 65 + - SUM( 37 ) AS col0
----
-102

skipif mysql # not compatible
query I rowsort label-9243
SELECT ALL - 65 + - SUM ( 37 ) AS col0
----
-102

onlyif mysql # aggregate syntax: 
query I rowsort label-9244
SELECT ALL - NULLIF ( + MAX( - 2 ), + + AVG ( DISTINCT - - 32 ) * + 46 )
----
2

skipif mysql # not compatible
query I rowsort label-9244
SELECT ALL - NULLIF ( + MAX ( - 2 ), + + AVG ( DISTINCT - - 32 ) * + 46 )
----
2

query I rowsort
SELECT 63 * 26
----
1638

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9246
SELECT ALL + NULLIF ( - CAST( - 16 AS SIGNED ), - 85 ) + 98 AS col0
----
114

skipif mysql # not compatible
query I rowsort label-9246
SELECT ALL + NULLIF ( - CAST ( - 16 AS INTEGER ), - 85 ) + 98 AS col0
----
114

query I rowsort
SELECT DISTINCT - 83 + + + 80 - + 35
----
-38

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9248
SELECT DISTINCT + COUNT( ALL - 77 ) DIV - + 35
----
0

skipif mysql # not compatible
query I rowsort label-9248
SELECT DISTINCT + COUNT ( ALL - 77 ) / - + 35
----
0

query I rowsort
SELECT ALL - 38 + + - 98 col2
----
-136

onlyif mysql # aggregate syntax: 
query II rowsort label-9250
SELECT ALL - NULLIF ( + 60, + - MAX( DISTINCT - 12 ) ), 37 AS col1
----
-60
37

skipif mysql # not compatible
query II rowsort label-9250
SELECT ALL - NULLIF ( + 60, + - MAX ( DISTINCT - 12 ) ), 37 AS col1
----
-60
37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9251
SELECT + 59 * - 58 * + + CASE 29 WHEN - CAST( NULL AS SIGNED ) THEN NULL WHEN - 11 THEN NULL WHEN + 8 THEN 51 END + + 21 * + 68 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9251
SELECT + 59 * - 58 * + + CASE 29 WHEN - CAST ( NULL AS INTEGER ) THEN NULL WHEN - 11 THEN NULL WHEN + 8 THEN 51 END + + 21 * + 68 col0
----
NULL

query I rowsort
SELECT 59 * + 70 AS col1
----
4130

query II rowsort
SELECT 13, + 89 AS col1
----
13
89

onlyif mysql # aggregate syntax: 
query I rowsort label-9254
SELECT ALL - COUNT( * ) + CASE + 31 WHEN + + 90 * 38 THEN + COUNT( * ) + COUNT( * ) * - COUNT( * ) * + - 77 WHEN 36 - 12 THEN NULL ELSE NULL END + - + 34 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9254
SELECT ALL - COUNT ( * ) + CASE + 31 WHEN + + 90 * 38 THEN + COUNT ( * ) + COUNT ( * ) * - COUNT ( * ) * + - 77 WHEN 36 - 12 THEN NULL ELSE NULL END + - + 34 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9255
SELECT 78 + - CASE COALESCE ( + COUNT( * ), 36 / - 3 - + - 13 * - - 10 + 6, 35 ) WHEN - - COUNT( * ) * COUNT( * ) * 87 THEN NULLIF ( - + 20, + COUNT( * ) ) ELSE - - 24 END
----
54

skipif mysql # not compatible
query I rowsort label-9255
SELECT 78 + - CASE COALESCE ( + COUNT ( * ), 36 / - 3 - + - 13 * - - 10 + 6, 35 ) WHEN - - COUNT ( * ) * COUNT ( * ) * 87 THEN NULLIF ( - + 20, + COUNT ( * ) ) ELSE - - 24 END
----
54

query I rowsort
SELECT ALL + 3 + + 71 AS col1
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-9257
SELECT DISTINCT COALESCE ( COUNT( - 32 ), ( + MIN( - 4 ) ) )
----
1

skipif mysql # not compatible
query I rowsort label-9257
SELECT DISTINCT COALESCE ( COUNT ( - 32 ), ( + MIN ( - 4 ) ) )
----
1

query I rowsort
SELECT DISTINCT + 96 * 71
----
6816

onlyif mysql # aggregate syntax: 
query I rowsort label-9259
SELECT ALL MAX( DISTINCT - - 86 ) - 70
----
16

skipif mysql # not compatible
query I rowsort label-9259
SELECT ALL MAX ( DISTINCT - - 86 ) - 70
----
16

query II rowsort
SELECT DISTINCT 82 col2, - 86
----
82
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-9261
SELECT - COUNT( DISTINCT - 46 ) * + + 0 + - 26 * 25 AS col2
----
-650

skipif mysql # not compatible
query I rowsort label-9261
SELECT - COUNT ( DISTINCT - 46 ) * + + 0 + - 26 * 25 AS col2
----
-650

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9262
SELECT ALL - 63 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9262
SELECT ALL - 63 * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9263
SELECT DISTINCT + 5 - - CASE + - ( 3 ) WHEN + CASE - 49 WHEN - 28 THEN NULL WHEN + 76 + + SUM( + + 59 ) THEN NULL WHEN 33 THEN NULL ELSE + 59 END THEN NULL ELSE + NULLIF ( + 53, - 61 + + SUM( ALL 80 ) * - 74 ) + + + ( - 46 ) + + 77 END + - 33 - - + 32 * 78 * 83 * + 20 DIV - - COUNT( * )
----
4143416

skipif mysql # not compatible
query I rowsort label-9263
SELECT DISTINCT + 5 - - CASE + - ( 3 ) WHEN + CASE - 49 WHEN - 28 THEN NULL WHEN + 76 + + SUM ( + + 59 ) THEN NULL WHEN 33 THEN NULL ELSE + 59 END THEN NULL ELSE + NULLIF ( + 53, - 61 + + SUM ( ALL 80 ) * - 74 ) + + + ( - 46 ) + + 77 END + - 33 - - + 32 * 78 * 83 * + 20 / - - COUNT ( * )
----
4143416

onlyif mysql # aggregate syntax: 
query II rowsort label-9264
SELECT - MIN( + + 32 ) AS col0, COUNT( * ) * - COUNT( - 98 ) col0
----
-32
-1

skipif mysql # not compatible
query II rowsort label-9264
SELECT - MIN ( + + 32 ) AS col0, COUNT ( * ) * - COUNT ( - 98 ) col0
----
-32
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-9265
SELECT DISTINCT 72, COUNT( * ) AS col1
----
72
1

skipif mysql # not compatible
query II rowsort label-9265
SELECT DISTINCT 72, COUNT ( * ) AS col1
----
72
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9266
SELECT 75 * SUM( + 14 )
----
1050

skipif mysql # not compatible
query I rowsort label-9266
SELECT 75 * SUM ( + 14 )
----
1050

onlyif mysql # aggregate syntax: 
query I rowsort label-9267
SELECT 18 * + CASE 16 WHEN - 16 * 81 + COUNT( * ) - - 95 + + 61 THEN 87 END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9267
SELECT 18 * + CASE 16 WHEN - 16 * 81 + COUNT ( * ) - - 95 + + 61 THEN 87 END col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9268
SELECT ALL - COUNT( 0 )
----
-1

skipif mysql # not compatible
query I rowsort label-9268
SELECT ALL - COUNT ( 0 )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9269
SELECT DISTINCT CAST( 98 AS SIGNED ) AS col2
----
98

skipif mysql # not compatible
query I rowsort label-9269
SELECT DISTINCT CAST ( 98 AS INTEGER ) AS col2
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-9270
SELECT ALL 7 * + 38 * - COUNT( * )
----
-266

skipif mysql # not compatible
query I rowsort label-9270
SELECT ALL 7 * + 38 * - COUNT ( * )
----
-266

query I rowsort
SELECT 98 * + 65
----
6370

onlyif mysql # aggregate syntax: 
query II rowsort label-9272
SELECT DISTINCT ( - ( + 9 ) ) * - - 23 AS col2, COUNT( * ) - 99
----
-207
-98

skipif mysql # not compatible
query II rowsort label-9272
SELECT DISTINCT ( - ( + 9 ) ) * - - 23 AS col2, COUNT ( * ) - 99
----
-207
-98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9273
SELECT + COUNT( * ) + + + CAST( ( - CASE 36 WHEN - 99 THEN + AVG ( + 5 ) * 27 * - 0 END ) AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9273
SELECT + COUNT ( * ) + + + CAST ( ( - CASE 36 WHEN - 99 THEN + AVG ( + 5 ) * 27 * - 0 END ) AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT ALL - 95 * 5
----
-475

onlyif mysql # aggregate syntax: 
query I rowsort label-9275
SELECT - 13 * + COUNT( * ) AS col2
----
-13

skipif mysql # not compatible
query I rowsort label-9275
SELECT - 13 * + COUNT ( * ) AS col2
----
-13

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9276
SELECT 33 * 61 * - NULLIF ( - COALESCE ( ( + MIN( ALL + CASE + 80 WHEN + 76 + 70 * - 71 THEN - 13 ELSE NULL END ) ), - COALESCE ( - - 32, + - COALESCE ( - - 25, 69 * - MIN( - 61 ) * - 60 DIV + COUNT( ALL + 35 ), - + 69 + + - 49 - + 36 ) ) * + - 52 + - + 92 * - 6 - - - 25 + 30 ), + + COUNT( + 34 ) + - + 92 + - 54 * - 52 DIV + + 70 ) + 75
----
4470948

skipif mysql # not compatible
query I rowsort label-9276
SELECT 33 * 61 * - NULLIF ( - COALESCE ( ( + MIN ( ALL + CASE + 80 WHEN + 76 + 70 * - 71 THEN - 13 ELSE NULL END ) ), - COALESCE ( - - 32, + - COALESCE ( - - 25, 69 * - MIN ( - 61 ) * - 60 / + COUNT ( ALL + 35 ), - + 69 + + - 49 - + 36 ) ) * + - 52 + - + 92 * - 6 - - - 25 + 30 ), + + COUNT ( + 34 ) + - + 92 + - 54 * - 52 / + + 70 ) + 75
----
4470948

query I rowsort
SELECT DISTINCT 14 + - 25 + ( 31 )
----
20

onlyif mysql # DIV for integer division: 
query I rowsort label-9278
SELECT ALL - 79 DIV 25
----
-3

skipif mysql # not compatible
query I rowsort label-9278
SELECT ALL - 79 / 25
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9279
SELECT DISTINCT + COUNT( * ) + - 2
----
-1

skipif mysql # not compatible
query I rowsort label-9279
SELECT DISTINCT + COUNT ( * ) + - 2
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9280
SELECT DISTINCT 8 + + 58 + - 95 + + COUNT( * ) * COUNT( * ) + - CASE + COUNT( * ) WHEN MAX( DISTINCT + + 0 ) THEN - 31 * - COUNT( * ) * NULLIF ( - + CAST( NULL AS SIGNED ), - 66 ) END * - MAX( ALL + 38 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9280
SELECT DISTINCT 8 + + 58 + - 95 + + COUNT ( * ) * COUNT ( * ) + - CASE + COUNT ( * ) WHEN MAX ( DISTINCT + + 0 ) THEN - 31 * - COUNT ( * ) * NULLIF ( - + CAST ( NULL AS INTEGER ), - 66 ) END * - MAX ( ALL + 38 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9281
SELECT NULLIF ( - + 87, + 24 ) * 83 * COUNT( ALL 12 ) AS col1
----
-7221

skipif mysql # not compatible
query I rowsort label-9281
SELECT NULLIF ( - + 87, + 24 ) * 83 * COUNT ( ALL 12 ) AS col1
----
-7221

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9282
SELECT ALL 1 * + 68 AS col2, + COUNT( * ) + + 77 * - ( CAST( NULL AS SIGNED ) ) AS col0
----
68
NULL

skipif mysql # not compatible
query II rowsort label-9282
SELECT ALL 1 * + 68 AS col2, + COUNT ( * ) + + 77 * - ( CAST ( NULL AS INTEGER ) ) AS col0
----
68
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9283
SELECT + SUM( DISTINCT - ( 77 ) )
----
-77

skipif mysql # not compatible
query I rowsort label-9283
SELECT + SUM ( DISTINCT - ( 77 ) )
----
-77

onlyif mysql # DIV for integer division: 
query II rowsort label-9284
SELECT 98 + + 77 * 77 * 83 DIV - 25 AS col1, 91
----
-19586
91

skipif mysql # not compatible
query II rowsort label-9284
SELECT 98 + + 77 * 77 * 83 / - 25 AS col1, 91
----
-19586
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9285
SELECT ( - CASE + 40 WHEN - - COALESCE ( - ( + 54 ), + 99 ) THEN - COUNT( * ) * 55 WHEN - 57 + ( - + 31 ) - + - CAST( NULL AS SIGNED ) + + + 1 - - 84 + - 79 - - + 28 * CAST( NULL AS SIGNED ) + - - 26 THEN NULL END ) * + - 62
----
NULL

skipif mysql # not compatible
query I rowsort label-9285
SELECT ( - CASE + 40 WHEN - - COALESCE ( - ( + 54 ), + 99 ) THEN - COUNT ( * ) * 55 WHEN - 57 + ( - + 31 ) - + - CAST ( NULL AS INTEGER ) + + + 1 - - 84 + - 79 - - + 28 * CAST ( NULL AS INTEGER ) + - - 26 THEN NULL END ) * + - 62
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9286
SELECT DISTINCT + 89 - + - 80 * COUNT( * ) AS col2
----
169

skipif mysql # not compatible
query I rowsort label-9286
SELECT DISTINCT + 89 - + - 80 * COUNT ( * ) AS col2
----
169

onlyif mysql # aggregate syntax: 
query II rowsort label-9287
SELECT DISTINCT - - MIN( DISTINCT - 14 ) col2, + 3 AS col2
----
-14
3

skipif mysql # not compatible
query II rowsort label-9287
SELECT DISTINCT - - MIN ( DISTINCT - 14 ) col2, + 3 AS col2
----
-14
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9288
SELECT 33 * - + NULLIF ( - + 44, + - COUNT( * ) + + COUNT( * ) * 77 ) * COUNT( * ) col2
----
1452

skipif mysql # not compatible
query I rowsort label-9288
SELECT 33 * - + NULLIF ( - + 44, + - COUNT ( * ) + + COUNT ( * ) * 77 ) * COUNT ( * ) col2
----
1452

query I rowsort
SELECT 51 * + 2 * - + 39 AS col1
----
-3978

query I rowsort
SELECT 12 * + ( 57 ) * - 45 + + + 52 + + 24 AS col1
----
-30704

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9291
SELECT ( - CAST( NULL AS SIGNED ) ), 62 + + 22 DIV + 28 col2
----
NULL
62

skipif mysql # not compatible
query II rowsort label-9291
SELECT ( - CAST ( NULL AS INTEGER ) ), 62 + + 22 / + 28 col2
----
NULL
62

query I rowsort
SELECT 43 - + 63
----
-20

onlyif mysql # DIV for integer division: 
query I rowsort label-9293
SELECT DISTINCT - 7 DIV - + 85 + 51
----
51

skipif mysql # not compatible
query I rowsort label-9293
SELECT DISTINCT - 7 / - + 85 + 51
----
51

onlyif mysql # DIV for integer division: 
query I rowsort label-9294
SELECT + ( - ( + 29 ) ) DIV - 52
----
0

skipif mysql # not compatible
query I rowsort label-9294
SELECT + ( - ( + 29 ) ) / - 52
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9295
SELECT ALL NULLIF ( - ( - COALESCE ( 11, + 90, 99 DIV + 91 + - 74, 4 * + + COALESCE ( 13, - - COUNT( * ) + 13 + 0 + + 12 * 96 ) * - SUM( ALL + - 21 ) ) ), + 49 )
----
11

skipif mysql # not compatible
query I rowsort label-9295
SELECT ALL NULLIF ( - ( - COALESCE ( 11, + 90, 99 / + 91 + - 74, 4 * + + COALESCE ( 13, - - COUNT ( * ) + 13 + 0 + + 12 * 96 ) * - SUM ( ALL + - 21 ) ) ), + 49 )
----
11

onlyif mysql # aggregate syntax: 
query II rowsort label-9296
SELECT DISTINCT - 57 * 26, COUNT( ALL - 18 ) + + - 64 + - + 43 AS col0
----
-1482
-106

skipif mysql # not compatible
query II rowsort label-9296
SELECT DISTINCT - 57 * 26, COUNT ( ALL - 18 ) + + - 64 + - + 43 AS col0
----
-1482
-106

onlyif mysql # aggregate syntax: 
query I rowsort label-9297
SELECT + 19 + - COALESCE ( + + COUNT( * ), 1 * 31, - 74 )
----
18

skipif mysql # not compatible
query I rowsort label-9297
SELECT + 19 + - COALESCE ( + + COUNT ( * ), 1 * 31, - 74 )
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-9298
SELECT - MIN( ALL 95 )
----
-95

skipif mysql # not compatible
query I rowsort label-9298
SELECT - MIN ( ALL 95 )
----
-95

onlyif mysql # DIV for integer division: 
query I rowsort label-9299
SELECT - 28 DIV + 94 * - 48 * - 63
----
0

skipif mysql # not compatible
query I rowsort label-9299
SELECT - 28 / + 94 * - 48 * - 63
----
0

query I rowsort
SELECT DISTINCT - 8 + + + 33 AS col0
----
25

onlyif mysql # DIV for integer division: 
query I rowsort label-9301
SELECT ALL + + 49 + + 38 DIV - ( - 28 ) AS col1
----
50

skipif mysql # not compatible
query I rowsort label-9301
SELECT ALL + + 49 + + 38 / - ( - 28 ) AS col1
----
50

query I rowsort
SELECT ALL 68 + + 87 - + + 96
----
59

query I rowsort
SELECT - 74 + ( + 12 ) AS col2
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-9304
SELECT + SUM( - 39 )
----
-39

skipif mysql # not compatible
query I rowsort label-9304
SELECT + SUM ( - 39 )
----
-39

query I rowsort
SELECT ALL 2 * - 23 + + 84
----
38

query I rowsort
SELECT CASE - 64 WHEN - 35 * - ( ( - 89 ) ) + 63 THEN NULL WHEN + 32 + + 87 + 54 THEN + - 62 WHEN - 58 THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT + 37 * 36 AS col2
----
1332

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9308
SELECT DISTINCT 60 * + - COUNT( * ) DIV 90 AS col2, + COUNT( * )
----
0
1

skipif mysql # not compatible
query II rowsort label-9308
SELECT DISTINCT 60 * + - COUNT ( * ) / 90 AS col2, + COUNT ( * )
----
0
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9309
SELECT CASE + + 23 WHEN - + 8 + 15 - 87 * + + ( - + COALESCE ( 30, - - COUNT( * ) + + 15 ) ) THEN NULL WHEN - ( + 36 ) * - CAST( NULL AS SIGNED ) + + COALESCE ( CASE - 52 WHEN - 53 + + CASE + NULLIF ( - 0, + 36 ) WHEN + - 86 + + + AVG ( + - 75 ) THEN + 74 WHEN 58 * - 9 * + 81 + - 63 + + 73 THEN - COUNT( + 41 ) ELSE NULL END * - NULLIF ( + + CASE CAST( NULL AS SIGNED ) WHEN + 19 * - - 10 THEN NULL WHEN - 73 THEN + - 49 END, + - CAST( 24 AS SIGNED ) ) - + NULLIF ( + + 19, + 54 + + CASE COALESCE ( 91, + 46 ) + 62 * 22 WHEN + 39 THEN 7 END ) THEN - 31 WHEN - 47 * 0 THEN NULL ELSE + ( 90 ) * - 75 - COUNT( * ) / 90 END, - 16 * 25 ) * 20 + + 70 * + 26 THEN NULL WHEN - 35 THEN 58 + + ( 60 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-9309
SELECT CASE + + 23 WHEN - + 8 + 15 - 87 * + + ( - + COALESCE ( 30, - - COUNT ( * ) + + 15 ) ) THEN NULL WHEN - ( + 36 ) * - CAST ( NULL AS INTEGER ) + + COALESCE ( CASE - 52 WHEN - 53 + + CASE + NULLIF ( - 0, + 36 ) WHEN + - 86 + + + AVG ( + - 75 ) THEN + 74 WHEN 58 * - 9 * + 81 + - 63 + + 73 THEN - COUNT ( + 41 ) ELSE NULL END * - NULLIF ( + + CASE CAST ( NULL AS INTEGER ) WHEN + 19 * - - 10 THEN NULL WHEN - 73 THEN + - 49 END, + - CAST ( 24 AS INTEGER ) ) - + NULLIF ( + + 19, + 54 + + CASE COALESCE ( 91, + 46 ) + 62 * 22 WHEN + 39 THEN 7 END ) THEN - 31 WHEN - 47 * 0 THEN NULL ELSE + ( 90 ) * - 75 - COUNT ( * ) / 90 END, - 16 * 25 ) * 20 + + 70 * + 26 THEN NULL WHEN - 35 THEN 58 + + ( 60 ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9310
SELECT + COALESCE ( - MIN( DISTINCT + NULLIF ( + + 19, - 52 / - + 22 ) ), + - 88 )
----
-19

skipif mysql # not compatible
query I rowsort label-9310
SELECT + COALESCE ( - MIN ( DISTINCT + NULLIF ( + + 19, - 52 / - + 22 ) ), + - 88 )
----
-19

query I rowsort
SELECT + 1 - - + 77 + - 91 + 97
----
84

query I rowsort
SELECT DISTINCT - 93 * ( - 14 )
----
1302

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9313
SELECT + COALESCE ( 12, - CAST( NULL AS SIGNED ) * - 42 * + MIN( DISTINCT 85 ) ) AS col0, + 88 + + + COUNT( * ) AS col1
----
12
89

skipif mysql # not compatible
query II rowsort label-9313
SELECT + COALESCE ( 12, - CAST ( NULL AS INTEGER ) * - 42 * + MIN ( DISTINCT 85 ) ) AS col0, + 88 + + + COUNT ( * ) AS col1
----
12
89

onlyif mysql # aggregate syntax: 
query I rowsort label-9314
SELECT + CASE MAX( ALL 70 ) WHEN ( - 25 ) / - + ( - CASE + 13 WHEN + - 17 + - + COUNT( * ) + - 56 + - 79 * + 87 * + ( + COUNT( * ) ) THEN - 33 ELSE - + 49 END ) THEN ( + - 66 ) + 34 WHEN + - 79 THEN - 24 ELSE + 57 END AS col2
----
57

skipif mysql # not compatible
query I rowsort label-9314
SELECT + CASE MAX ( ALL 70 ) WHEN ( - 25 ) / - + ( - CASE + 13 WHEN + - 17 + - + COUNT ( * ) + - 56 + - 79 * + 87 * + ( + COUNT ( * ) ) THEN - 33 ELSE - + 49 END ) THEN ( + - 66 ) + 34 WHEN + - 79 THEN - 24 ELSE + 57 END AS col2
----
57

query I rowsort
SELECT ALL + CASE + 26 WHEN 17 / ( - - 93 ) THEN NULL WHEN + NULLIF ( - 75, - 32 * - 22 - - AVG ( - + ( 24 ) ) ) THEN NULL WHEN + 38 + + 74 THEN - 46 ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9316
SELECT - 13 * COUNT( * ) - + COUNT( * )
----
-14

skipif mysql # not compatible
query I rowsort label-9316
SELECT - 13 * COUNT ( * ) - + COUNT ( * )
----
-14

query I rowsort
SELECT + + 52 * + 48 AS col0
----
2496

onlyif mysql # DIV for integer division: 
query I rowsort label-9318
SELECT ALL + 46 DIV - 77 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9318
SELECT ALL + 46 / - 77 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9319
SELECT + ( + COUNT( - 0 ) ) + - - 84 + + - COUNT( * )
----
84

skipif mysql # not compatible
query I rowsort label-9319
SELECT + ( + COUNT ( - 0 ) ) + - - 84 + + - COUNT ( * )
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-9320
SELECT + COUNT( * ) - 90 - + 75 + MAX( - - 35 ) + - COUNT( * ) * - 48 AS col2
----
-81

skipif mysql # not compatible
query I rowsort label-9320
SELECT + COUNT ( * ) - 90 - + 75 + MAX ( - - 35 ) + - COUNT ( * ) * - 48 AS col2
----
-81

query I rowsort
SELECT - + 44 * - 3 AS col0
----
132

query II rowsort
SELECT + - 25 AS col2, 80 + 87
----
-25
167

query II rowsort
SELECT ALL + 99, 43 col2
----
99
43

query I rowsort
SELECT + + 0 + + 56
----
56

query I rowsort
SELECT DISTINCT 2 * + - 51 col0
----
-102

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9326
SELECT DISTINCT 11 * + MIN( ALL 75 ) - - - 86 * ( + - 12 ) DIV 94 - - - 21 + 48 + 66 DIV - 91 + + 57 + COUNT( ALL - - 93 ) - - + COALESCE ( 65, + 27 )
----
985

skipif mysql # not compatible
query I rowsort label-9326
SELECT DISTINCT 11 * + MIN ( ALL 75 ) - - - 86 * ( + - 12 ) / 94 - - - 21 + 48 + 66 / - 91 + + 57 + COUNT ( ALL - - 93 ) - - + COALESCE ( 65, + 27 )
----
985

query I rowsort
SELECT + 43 * + - 91 - - 25 + 16 AS col1
----
-3872

query II rowsort
SELECT ALL 85, - 91 AS col1
----
85
-91

query II rowsort
SELECT - 96 AS col0, + 67 AS col1
----
-96
67

query I rowsort
SELECT + 98 * 89
----
8722

query I rowsort
SELECT - 73 + - + 31 + 76 col1
----
-28

query I rowsort
SELECT + 16 * + - 15 AS col0
----
-240

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9333
SELECT ALL - 79 + - 86 + + - SUM( ALL + 13 ) + - 7 + - + 76 * - 72 * + 16 * + 97 * + - CAST( - + 73 AS SIGNED ) AS col1
----
619955527

skipif mysql # not compatible
query I rowsort label-9333
SELECT ALL - 79 + - 86 + + - SUM ( ALL + 13 ) + - 7 + - + 76 * - 72 * + 16 * + 97 * + - CAST ( - + 73 AS INTEGER ) AS col1
----
619955527

query I rowsort
SELECT - 0 + - 24 AS col0
----
-24

query I rowsort
SELECT ALL + + 46 + + - 50
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-9336
SELECT - + CASE - 68 WHEN - 34 THEN - - COUNT( ALL + 77 ) + 99 ELSE 75 END
----
-75

skipif mysql # not compatible
query I rowsort label-9336
SELECT - + CASE - 68 WHEN - 34 THEN - - COUNT ( ALL + 77 ) + 99 ELSE 75 END
----
-75

query I rowsort
SELECT DISTINCT 18 + 99
----
117

query I rowsort
SELECT ALL - 78 * - 29 AS col2
----
2262

query I rowsort
SELECT DISTINCT ( + 22 ) col0
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-9340
SELECT DISTINCT - 69 + - - MAX( + 43 )
----
-26

skipif mysql # not compatible
query I rowsort label-9340
SELECT DISTINCT - 69 + - - MAX ( + 43 )
----
-26

query I rowsort
SELECT ALL - 6 + + 21
----
15

query I rowsort
SELECT - 32 + + + ( - 53 ) AS col0
----
-85

query I rowsort
SELECT ALL - 7 - + 92 AS col0
----
-99

query I rowsort
SELECT ALL + 52 - - 83 AS col1
----
135

query I rowsort
SELECT - 60 * + - 45
----
2700

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9346
SELECT + NULLIF ( + MIN( + - 70 ), + COUNT( * ) * - 69 - + CAST( NULL AS SIGNED ) )
----
-70

skipif mysql # not compatible
query I rowsort label-9346
SELECT + NULLIF ( + MIN ( + - 70 ), + COUNT ( * ) * - 69 - + CAST ( NULL AS INTEGER ) )
----
-70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9347
SELECT - ( - ( - 72 ) ) + - + COUNT( * ) AS col1, - 78 - COALESCE ( CASE - + 22 WHEN + 48 - + MIN( DISTINCT + 20 ) THEN NULL ELSE + + 69 * - NULLIF ( + ( + + 63 ), 38 ) END, - MIN( + + 67 ), 28 ) + - 96 / - 12 * CAST( NULL AS SIGNED ) AS col2
----
-73
NULL

skipif mysql # not compatible
query II rowsort label-9347
SELECT - ( - ( - 72 ) ) + - + COUNT ( * ) AS col1, - 78 - COALESCE ( CASE - + 22 WHEN + 48 - + MIN ( DISTINCT + 20 ) THEN NULL ELSE + + 69 * - NULLIF ( + ( + + 63 ), 38 ) END, - MIN ( + + 67 ), 28 ) + - 96 / - 12 * CAST ( NULL AS INTEGER ) AS col2
----
-73
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9348
SELECT ALL + ( MAX( 48 ) )
----
48

skipif mysql # not compatible
query I rowsort label-9348
SELECT ALL + ( MAX ( 48 ) )
----
48

onlyif mysql # DIV for integer division: 
query I rowsort label-9349
SELECT DISTINCT 78 DIV - 95 * 21 * + + 76 - + ( + + 97 )
----
-97

skipif mysql # not compatible
query I rowsort label-9349
SELECT DISTINCT 78 / - 95 * 21 * + + 76 - + ( + + 97 )
----
-97

query I rowsort
SELECT ALL 42 * 21
----
882

query I rowsort
SELECT + 48 + + 44
----
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9352
SELECT DISTINCT - 71 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9352
SELECT DISTINCT - 71 * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9353
SELECT - 71 * + 57 AS col2, CAST( 37 AS SIGNED ) AS col1
----
-4047
37

skipif mysql # not compatible
query II rowsort label-9353
SELECT - 71 * + 57 AS col2, CAST ( 37 AS INTEGER ) AS col1
----
-4047
37

query I rowsort
SELECT ALL - 84 * + - 85 * + 8
----
57120

onlyif mysql # aggregate syntax: 
query I rowsort label-9355
SELECT + - COALESCE ( + + 44, - 17 ) + + COUNT( * ) * + - 50
----
-94

skipif mysql # not compatible
query I rowsort label-9355
SELECT + - COALESCE ( + + 44, - 17 ) + + COUNT ( * ) * + - 50
----
-94

query I rowsort
SELECT + - ( + - 80 )
----
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9357
SELECT DISTINCT + - ( + CAST( - 84 AS SIGNED ) )
----
84

skipif mysql # not compatible
query I rowsort label-9357
SELECT DISTINCT + - ( + CAST ( - 84 AS INTEGER ) )
----
84

query I rowsort
SELECT DISTINCT + - 72 AS col1
----
-72

query I rowsort
SELECT ALL + COALESCE ( ( + + CASE 56 WHEN + - 95 THEN - 19 ELSE NULL END ), - - 18 * - - 22 ) * - 26 + 26
----
-10270

onlyif mysql # aggregate syntax: 
query I rowsort label-9360
SELECT DISTINCT + - 38 * - - COUNT( * ) + - - 34 * - - 42 + + 60 AS col2
----
1450

skipif mysql # not compatible
query I rowsort label-9360
SELECT DISTINCT + - 38 * - - COUNT ( * ) + - - 34 * - - 42 + + 60 AS col2
----
1450

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9361
SELECT ALL CASE WHEN NOT COUNT( * ) IS NULL THEN - 16 * + - NULLIF ( + + SUM( ALL - + 31 ), - NULLIF ( - + 21, 95 + CASE - COALESCE ( 63, - - 9, - + 1 * + 39 / + COALESCE ( + 52, - COUNT( - 93 ) * - 7 * + CAST( NULL AS SIGNED ) + COUNT( * ) + 8 ) * - 89 - + + 75 + - AVG ( + 25 ) + + 86 + - - 81 + + 79 ) WHEN 9 * + 45 + + 32 + + ( CAST( - SUM( DISTINCT + 77 ) AS SIGNED ) ) + - 23 * COUNT( * ) + + + 63 * 42 THEN CASE + - 44 WHEN - 38 THEN NULL ELSE 50 * 11 END * 41 END / - 2 ) ) - - 24 + 23 * - 29 END * + COALESCE ( 62, + 96 - - 29, 55 + 74 ) + 93 col1
----
-70525

skipif mysql # not compatible
query I rowsort label-9361
SELECT ALL CASE WHEN NOT COUNT ( * ) IS NULL THEN - 16 * + - NULLIF ( + + SUM ( ALL - + 31 ), - NULLIF ( - + 21, 95 + CASE - COALESCE ( 63, - - 9, - + 1 * + 39 / + COALESCE ( + 52, - COUNT ( - 93 ) * - 7 * + CAST ( NULL AS INTEGER ) + COUNT ( * ) + 8 ) * - 89 - + + 75 + - AVG ( + 25 ) + + 86 + - - 81 + + 79 ) WHEN 9 * + 45 + + 32 + + ( CAST ( - SUM ( DISTINCT + 77 ) AS INTEGER ) ) + - 23 * COUNT ( * ) + + + 63 * 42 THEN CASE + - 44 WHEN - 38 THEN NULL ELSE 50 * 11 END * 41 END / - 2 ) ) - - 24 + 23 * - 29 END * + COALESCE ( 62, + 96 - - 29, 55 + 74 ) + 93 col1
----
-70525

onlyif mysql # aggregate syntax: 
query I rowsort label-9362
SELECT DISTINCT + COALESCE ( COUNT( * ), 30, - - 38 * + + 63, + 2 )
----
1

skipif mysql # not compatible
query I rowsort label-9362
SELECT DISTINCT + COALESCE ( COUNT ( * ), 30, - - 38 * + + 63, + 2 )
----
1

query I rowsort
SELECT ALL + 39 * - 66 + - 20
----
-2594

query II rowsort
SELECT DISTINCT + 41 + + 71 + + 32 * + 27 AS col2, + 10 AS col0
----
976
10

onlyif mysql # aggregate syntax: 
query I rowsort label-9365
SELECT ALL + COUNT( * ) + + 51 + - + 69 * - - 19 + - 99 AS col2
----
-1358

skipif mysql # not compatible
query I rowsort label-9365
SELECT ALL + COUNT ( * ) + + 51 + - + 69 * - - 19 + - 99 AS col2
----
-1358

onlyif mysql # aggregate syntax: 
query I rowsort label-9366
SELECT ( + COALESCE ( - - SUM( DISTINCT + 2 ), - - COUNT( * ) + - - 54, - - 77 * + 57 ) ) * - 60
----
-120

skipif mysql # not compatible
query I rowsort label-9366
SELECT ( + COALESCE ( - - SUM ( DISTINCT + 2 ), - - COUNT ( * ) + - - 54, - - 77 * + 57 ) ) * - 60
----
-120

onlyif mysql # aggregate syntax: 
query I rowsort label-9367
SELECT + 84 * COUNT( * ) * + 93 col1
----
7812

skipif mysql # not compatible
query I rowsort label-9367
SELECT + 84 * COUNT ( * ) * + 93 col1
----
7812

query I rowsort
SELECT + 23 - - ( + 63 ) AS col2
----
86

query I rowsort
SELECT + NULLIF ( - 51, 80 + 48 + + + 34 + + - 31 )
----
-51

query I rowsort
SELECT ALL - 83 + + - 95 col1
----
-178

query I rowsort
SELECT ALL + 20 - ( 77 )
----
-57

query I rowsort
SELECT ALL - 20 - + 47
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-9373
SELECT ( + - COUNT( * ) ) + - + 96 AS col1
----
-97

skipif mysql # not compatible
query I rowsort label-9373
SELECT ( + - COUNT ( * ) ) + - + 96 AS col1
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-9374
SELECT ALL + COUNT( * ) * - COUNT( * ) * - COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-9374
SELECT ALL + COUNT ( * ) * - COUNT ( * ) * - COUNT ( * )
----
1

query I rowsort
SELECT DISTINCT + 30 * + 76
----
2280

query I rowsort
SELECT ALL + 57 * + 92 * + 68
----
356592

query I rowsort
SELECT ALL + 21 * 21 AS col2
----
441

query I rowsort
SELECT 98 * + 65 AS col0
----
6370

query I rowsort
SELECT 7 * 72 col2
----
504

query I rowsort
SELECT ALL - 85 * 59
----
-5015

onlyif mysql # aggregate syntax: 
query I rowsort label-9381
SELECT DISTINCT + COUNT( * ) * + 41 * - + 36 AS col0
----
-1476

skipif mysql # not compatible
query I rowsort label-9381
SELECT DISTINCT + COUNT ( * ) * + 41 * - + 36 AS col0
----
-1476

query I rowsort
SELECT ALL - 76 * - 2
----
152

query I rowsort
SELECT ALL - ( + + 19 )
----
-19

onlyif mysql # DIV for integer division: 
query I rowsort label-9384
SELECT + 5 DIV - 53 - - 93 + - 96 * + 50
----
-4707

skipif mysql # not compatible
query I rowsort label-9384
SELECT + 5 / - 53 - - 93 + - 96 * + 50
----
-4707

query I rowsort
SELECT 97 * - 47
----
-4559

query I rowsort
SELECT 49 - 25
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-9387
SELECT + COALESCE ( - SUM( 70 ), 77 ) col1
----
-70

skipif mysql # not compatible
query I rowsort label-9387
SELECT + COALESCE ( - SUM ( 70 ), 77 ) col1
----
-70

query I rowsort
SELECT ALL + + 47 + + - ( 30 )
----
17

onlyif mysql # DIV for integer division: 
query I rowsort label-9389
SELECT 95 + 93 + - 61 * 82 DIV + - ( 3 )
----
1855

skipif mysql # not compatible
query I rowsort label-9389
SELECT 95 + 93 + - 61 * 82 / + - ( 3 )
----
1855

onlyif mysql # aggregate syntax: 
query I rowsort label-9390
SELECT ALL + - COUNT( * ) + 82
----
81

skipif mysql # not compatible
query I rowsort label-9390
SELECT ALL + - COUNT ( * ) + 82
----
81

query I rowsort
SELECT - 5 * + 90 AS col2
----
-450

onlyif mysql # aggregate syntax: 
query II rowsort label-9392
SELECT DISTINCT - COALESCE ( - 68, 92 + - + COUNT( * ), - 60 * - 52 + COUNT( * ) + - - 29 ) AS col1, + 14
----
68
14

skipif mysql # not compatible
query II rowsort label-9392
SELECT DISTINCT - COALESCE ( - 68, 92 + - + COUNT ( * ), - 60 * - 52 + COUNT ( * ) + - - 29 ) AS col1, + 14
----
68
14

onlyif mysql # aggregate syntax: 
query I rowsort label-9393
SELECT ALL - - 55 + + COUNT( * ) + + - 24 AS col2
----
32

skipif mysql # not compatible
query I rowsort label-9393
SELECT ALL - - 55 + + COUNT ( * ) + + - 24 AS col2
----
32

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9394
SELECT 92 * - COUNT( * ) - + 99 + - 60 * - - ( 93 ) * - 76 * - MAX( ALL 31 ) - + - 52 - + 10 DIV - COUNT( * ) - - 72 AS col0, - COUNT( * ) DIV - 46 AS col2
----
-13146537
0

skipif mysql # not compatible
query II rowsort label-9394
SELECT 92 * - COUNT ( * ) - + 99 + - 60 * - - ( 93 ) * - 76 * - MAX ( ALL 31 ) - + - 52 - + 10 / - COUNT ( * ) - - 72 AS col0, - COUNT ( * ) / - 46 AS col2
----
-13146537
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9395
SELECT + COUNT( * ) - + 29
----
-28

skipif mysql # not compatible
query I rowsort label-9395
SELECT + COUNT ( * ) - + 29
----
-28

query I rowsort
SELECT ALL + - 42 + 72 AS col1
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-9397
SELECT + MAX( DISTINCT - - 91 ) * + 77 + - - 47 AS col1
----
7054

skipif mysql # not compatible
query I rowsort label-9397
SELECT + MAX ( DISTINCT - - 91 ) * + 77 + - - 47 AS col1
----
7054

query II rowsort
SELECT + + 10 AS col1, + 53 - + 95 AS col2
----
10
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-9399
SELECT - COUNT( * ) + + + COUNT( * ) * + 74 AS col1
----
73

skipif mysql # not compatible
query I rowsort label-9399
SELECT - COUNT ( * ) + + + COUNT ( * ) * + 74 AS col1
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-9400
SELECT DISTINCT + 35 + - 82 + NULLIF ( + COUNT( * ), - - AVG ( ALL 66 ) ) AS col2
----
-46

skipif mysql # not compatible
query I rowsort label-9400
SELECT DISTINCT + 35 + - 82 + NULLIF ( + COUNT ( * ), - - AVG ( ALL 66 ) ) AS col2
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-9401
SELECT DISTINCT - COUNT( * ) + 90
----
89

skipif mysql # not compatible
query I rowsort label-9401
SELECT DISTINCT - COUNT ( * ) + 90
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-9402
SELECT DISTINCT + - 0 * COUNT( * ) + - ( - - 4 )
----
-4

skipif mysql # not compatible
query I rowsort label-9402
SELECT DISTINCT + - 0 * COUNT ( * ) + - ( - - 4 )
----
-4

query I rowsort
SELECT 36 + - 26
----
10

query I rowsort
SELECT ALL 74 - 68 * - 65 AS col0
----
4494

query I rowsort
SELECT 67 * 31 + + 5
----
2082

query I rowsort
SELECT 52 * + 10 + + 96
----
616

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9407
SELECT DISTINCT 85 DIV - MAX( + 38 ) AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-9407
SELECT DISTINCT 85 / - MAX ( + 38 ) AS col2
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9408
SELECT CAST( - - CAST( + - 28 AS DECIMAL ) AS SIGNED ) + - + MAX( DISTINCT + 6 )
----
-34

skipif mysql # not compatible
query I rowsort label-9408
SELECT CAST ( - - CAST ( + - 28 AS REAL ) AS INTEGER ) + - + MAX ( DISTINCT + 6 )
----
-34

onlyif mysql # DIV for integer division: 
query I rowsort label-9409
SELECT ALL 3 DIV + + 26
----
0

skipif mysql # not compatible
query I rowsort label-9409
SELECT ALL 3 / + + 26
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9410
SELECT ALL 79 - + CAST( - COUNT( * ) AS SIGNED ) - COUNT( * ) + - - 24 / + CAST( NULL AS DECIMAL ) / 68 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9410
SELECT ALL 79 - + CAST ( - COUNT ( * ) AS INTEGER ) - COUNT ( * ) + - - 24 / + CAST ( NULL AS REAL ) / 68 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9411
SELECT COUNT( ALL - 3 ) * - 53 - + + 44 col1, 61 AS col0
----
-97
61

skipif mysql # not compatible
query II rowsort label-9411
SELECT COUNT ( ALL - 3 ) * - 53 - + + 44 col1, 61 AS col0
----
-97
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9412
SELECT ALL 54, - CAST( + 83 AS SIGNED ) + + + 11 * - - 93 * + 43 * + + SUM( DISTINCT + 85 ) col2
----
54
3738982

skipif mysql # not compatible
query II rowsort label-9412
SELECT ALL 54, - CAST ( + 83 AS INTEGER ) + + + 11 * - - 93 * + 43 * + + SUM ( DISTINCT + 85 ) col2
----
54
3738982

onlyif mysql # DIV for integer division: 
query I rowsort label-9413
SELECT 72 DIV + + 57
----
1

skipif mysql # not compatible
query I rowsort label-9413
SELECT 72 / + + 57
----
1

query I rowsort
SELECT 79 + - 53 + 83 * - 37 * - 29
----
89085

query I rowsort
SELECT ALL 43 - 41 AS col2
----
2

query I rowsort
SELECT DISTINCT 78 * - 33
----
-2574

query II rowsort
SELECT DISTINCT 68 AS col0, + 27
----
68
27

query I rowsort
SELECT DISTINCT 95 * - 35
----
-3325

query II rowsort
SELECT ALL 28 col2, - 56 * 47
----
28
-2632

onlyif mysql # DIV for integer division: 
query II rowsort label-9420
SELECT 75, 28 DIV - ( 32 ) + - ( - 13 ) + - 91 * + 87 AS col0
----
75
-7904

skipif mysql # not compatible
query II rowsort label-9420
SELECT 75, 28 / - ( 32 ) + - ( - 13 ) + - 91 * + 87 AS col0
----
75
-7904

onlyif mysql # aggregate syntax: 
query I rowsort label-9421
SELECT - COUNT( DISTINCT 1 )
----
-1

skipif mysql # not compatible
query I rowsort label-9421
SELECT - COUNT ( DISTINCT 1 )
----
-1

query I rowsort
SELECT 33 * + - 80
----
-2640

query I rowsort
SELECT ALL + 69 * + 38 * + 66 + 51 + + - 88 col2
----
173015

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9424
SELECT - CAST( NULL AS SIGNED ) * + - 56 + - + 78 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9424
SELECT - CAST ( NULL AS INTEGER ) * + - 56 + - + 78 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9425
SELECT CASE - + CASE + NULLIF ( - + COALESCE ( - 75, + - 88 ), - 92 * - 24 + 67 + COUNT( * ) + + 0 + + COUNT( * ) / ( - 70 ) * + 76 + + - 3 + COALESCE ( SUM( ALL + 52 ), + 48, - - ( + - 76 ) * NULLIF ( - 85, - 14 ) ) * CASE + - COUNT( * ) WHEN 6 THEN 37 + - 83 WHEN ( + + NULLIF ( - NULLIF ( + + 18, - 31 + + + CASE + 65 WHEN 40 THEN NULL WHEN - + 49 + - CAST( + 50 AS DECIMAL ) + - 15 - + CAST( 36 AS DECIMAL ) * + + ( - 73 ) * - 51 THEN COALESCE ( 89, + 12 ) END / COALESCE ( + MIN( DISTINCT - 46 ) * 18 + 56, + 10 + 60, 40 ) ), 12 + 36 ) ) THEN NULL WHEN 44 THEN 7 END ) WHEN 20 THEN 69 END WHEN + MIN( ALL + 59 ) THEN NULL WHEN - SUM( - CAST( NULL AS SIGNED ) ) / 19 THEN 35 - 71 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9425
SELECT CASE - + CASE + NULLIF ( - + COALESCE ( - 75, + - 88 ), - 92 * - 24 + 67 + COUNT ( * ) + + 0 + + COUNT ( * ) / ( - 70 ) * + 76 + + - 3 + COALESCE ( SUM ( ALL + 52 ), + 48, - - ( + - 76 ) * NULLIF ( - 85, - 14 ) ) * CASE + - COUNT ( * ) WHEN 6 THEN 37 + - 83 WHEN ( + + NULLIF ( - NULLIF ( + + 18, - 31 + + + CASE + 65 WHEN 40 THEN NULL WHEN - + 49 + - CAST ( + 50 AS REAL ) + - 15 - + CAST ( 36 AS REAL ) * + + ( - 73 ) * - 51 THEN COALESCE ( 89, + 12 ) END / COALESCE ( + MIN ( DISTINCT - 46 ) * 18 + 56, + 10 + 60, 40 ) ), 12 + 36 ) ) THEN NULL WHEN 44 THEN 7 END ) WHEN 20 THEN 69 END WHEN + MIN ( ALL + 59 ) THEN NULL WHEN - SUM ( - CAST ( NULL AS INTEGER ) ) / 19 THEN 35 - 71 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9426
SELECT ALL + 67 * - ( + + 55 ) + - COUNT( * ) + + 80 * + - 68
----
-9126

skipif mysql # not compatible
query I rowsort label-9426
SELECT ALL + 67 * - ( + + 55 ) + - COUNT ( * ) + + 80 * + - 68
----
-9126

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9427
SELECT DISTINCT + ( - CASE + + 75 WHEN - CAST( NULL AS SIGNED ) * + + 65 - 92 - + - COUNT( * ) * - NULLIF ( + + COALESCE ( - - CASE - 83 WHEN + 70 * - ( - - 63 ) + + + 1 * - 18 + + - 70 THEN NULL WHEN 40 THEN - 17 ELSE NULL END, 60 ), + 30 ) THEN 98 ELSE NULL END ) * 79 + 69 AS col1, + 35 * 58 * 75
----
NULL
152250

skipif mysql # not compatible
query II rowsort label-9427
SELECT DISTINCT + ( - CASE + + 75 WHEN - CAST ( NULL AS INTEGER ) * + + 65 - 92 - + - COUNT ( * ) * - NULLIF ( + + COALESCE ( - - CASE - 83 WHEN + 70 * - ( - - 63 ) + + + 1 * - 18 + + - 70 THEN NULL WHEN 40 THEN - 17 ELSE NULL END, 60 ), + 30 ) THEN 98 ELSE NULL END ) * 79 + 69 AS col1, + 35 * 58 * 75
----
NULL
152250

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9428
SELECT DISTINCT 68 * + + 93 - - - 54 + + 57 - + COUNT( - 5 ) + + NULLIF ( + 52, 58 * + 69 * COALESCE ( - 67, + - 63, - 20 ) ) + + 4 * CAST( + 9 AS SIGNED )
----
6414

skipif mysql # not compatible
query I rowsort label-9428
SELECT DISTINCT 68 * + + 93 - - - 54 + + 57 - + COUNT ( - 5 ) + + NULLIF ( + 52, 58 * + 69 * COALESCE ( - 67, + - 63, - 20 ) ) + + 4 * CAST ( + 9 AS INTEGER )
----
6414

query I rowsort
SELECT DISTINCT - - 38 AS col2
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-9430
SELECT + - NULLIF ( - ( + + 10 ), COUNT( * ) * + 65 )
----
10

skipif mysql # not compatible
query I rowsort label-9430
SELECT + - NULLIF ( - ( + + 10 ), COUNT ( * ) * + 65 )
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-9431
SELECT ALL - - 98 * 31 * + COUNT( * ) * + + COUNT( * ) + + 44
----
3082

skipif mysql # not compatible
query I rowsort label-9431
SELECT ALL - - 98 * 31 * + COUNT ( * ) * + + COUNT ( * ) + + 44
----
3082

query I rowsort
SELECT + 65 * 96 * 45
----
280800

query I rowsort
SELECT - COALESCE ( + + 49, 64 ) + - - 0
----
-49

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-9434
SELECT CAST( NULL AS DECIMAL ) AS col2, COALESCE ( 87, 67 ) - + COALESCE ( COUNT( * ), + 95 ) AS col0
----
NULL
86

skipif mysql # not compatible
query II rowsort label-9434
SELECT CAST ( NULL AS REAL ) AS col2, COALESCE ( 87, 67 ) - + COALESCE ( COUNT ( * ), + 95 ) AS col0
----
NULL
86

onlyif mysql # DIV for integer division: 
query II rowsort label-9435
SELECT + 98, - 17 DIV + - 32 AS col2
----
98
0

skipif mysql # not compatible
query II rowsort label-9435
SELECT + 98, - 17 / + - 32 AS col2
----
98
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9436
SELECT DISTINCT + 53, COUNT( NULLIF ( ( 25 ), - - 50 ) ) AS col2
----
53
1

skipif mysql # not compatible
query II rowsort label-9436
SELECT DISTINCT + 53, COUNT ( NULLIF ( ( 25 ), - - 50 ) ) AS col2
----
53
1

query I rowsort
SELECT ALL - 45 * 15 + - 44 AS col0
----
-719

onlyif mysql # aggregate syntax: 
query I rowsort label-9438
SELECT - NULLIF ( - + 68, - + ( - 42 ) * 80 * + + 69 - 55 + - - COUNT( * ) + + - 69 ) * 11 * - 69
----
-51612

skipif mysql # not compatible
query I rowsort label-9438
SELECT - NULLIF ( - + 68, - + ( - 42 ) * 80 * + + 69 - 55 + - - COUNT ( * ) + + - 69 ) * 11 * - 69
----
-51612

query I rowsort
SELECT ALL + - 79 * - 81 + + 45 - 84
----
6360

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9440
SELECT DISTINCT + - 79, + CAST( + + 6 AS SIGNED ) AS col0
----
-79
6

skipif mysql # not compatible
query II rowsort label-9440
SELECT DISTINCT + - 79, + CAST ( + + 6 AS INTEGER ) AS col0
----
-79
6

onlyif mysql # aggregate syntax: 
query I rowsort label-9441
SELECT - NULLIF ( - ( - 87 ), - 94 * - COALESCE ( + - COUNT( * ), + - 2 * - - ( - COUNT( * ) ), 34 + ( 75 ) + COUNT( * ) + 72 ) + - COUNT( * ) * MAX( + 91 ) )
----
-87

skipif mysql # not compatible
query I rowsort label-9441
SELECT - NULLIF ( - ( - 87 ), - 94 * - COALESCE ( + - COUNT ( * ), + - 2 * - - ( - COUNT ( * ) ), 34 + ( 75 ) + COUNT ( * ) + 72 ) + - COUNT ( * ) * MAX ( + 91 ) )
----
-87

onlyif mysql # aggregate syntax: 
query II rowsort label-9442
SELECT ALL + 59 * - 3 - - 22 * COUNT( * ) AS col0, + 56 + + MIN( + 71 ) AS col2
----
-155
127

skipif mysql # not compatible
query II rowsort label-9442
SELECT ALL + 59 * - 3 - - 22 * COUNT ( * ) AS col0, + 56 + + MIN ( + 71 ) AS col2
----
-155
127

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9443
SELECT - CAST( + - 94 AS SIGNED ) AS col1, - 52 * + + CAST( NULL AS SIGNED ) * + 42 * 15
----
94
NULL

skipif mysql # not compatible
query II rowsort label-9443
SELECT - CAST ( + - 94 AS INTEGER ) AS col1, - 52 * + + CAST ( NULL AS INTEGER ) * + 42 * 15
----
94
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9444
SELECT ALL + CAST( - 3 AS SIGNED ) AS col1
----
-3

skipif mysql # not compatible
query I rowsort label-9444
SELECT ALL + CAST ( - 3 AS INTEGER ) AS col1
----
-3

query II rowsort
SELECT + 44 AS col0, + 37 - + 83 * - 53 AS col1
----
44
4436

query II rowsort
SELECT DISTINCT + 65 * - + 89 AS col2, + 62
----
-5785
62

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9447
SELECT - ( COUNT( * ) ) * - - COUNT( ALL + 2 ) DIV 36 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9447
SELECT - ( COUNT ( * ) ) * - - COUNT ( ALL + 2 ) / 36 AS col2
----
0

query I rowsort
SELECT ALL - 57 * + - 97
----
5529

onlyif mysql # aggregate syntax: 
query I rowsort label-9449
SELECT ALL NULLIF ( 28, 17 - COALESCE ( + + 60, 8 / 57 + SUM( 2 ), - - 56, 2 * - 79 ) * - ( + 80 ) * + + 75 / + MIN( + 36 ) ) AS col1
----
28

skipif mysql # not compatible
query I rowsort label-9449
SELECT ALL NULLIF ( 28, 17 - COALESCE ( + + 60, 8 / 57 + SUM ( 2 ), - - 56, 2 * - 79 ) * - ( + 80 ) * + + 75 / + MIN ( + 36 ) ) AS col1
----
28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9450
SELECT DISTINCT 84 / + CASE - + 89 WHEN + 9 THEN + 80 + + CAST( NULL AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-9450
SELECT DISTINCT 84 / + CASE - + 89 WHEN + 9 THEN + 80 + + CAST ( NULL AS INTEGER ) END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9451
SELECT - 1 + COUNT( * ) + COUNT( * ) DIV - MIN( + ( - 99 ) )
----
0

skipif mysql # not compatible
query I rowsort label-9451
SELECT - 1 + COUNT ( * ) + COUNT ( * ) / - MIN ( + ( - 99 ) )
----
0

query II rowsort
SELECT + 25 + + 5 AS col0, 88 + - 99 col0
----
30
-11

onlyif mysql # DIV for integer division: 
query I rowsort label-9453
SELECT DISTINCT 31 DIV 68
----
0

skipif mysql # not compatible
query I rowsort label-9453
SELECT DISTINCT 31 / 68
----
0

query I rowsort
SELECT - ( - 85 ) * + 70
----
5950

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9455
SELECT + 60 * 33 DIV COUNT( 84 ) DIV + 19 - - 38
----
142

skipif mysql # not compatible
query I rowsort label-9455
SELECT + 60 * 33 / COUNT ( 84 ) / + 19 - - 38
----
142

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9456
SELECT + 89 * + CAST( NULL AS SIGNED ) * - - 83 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9456
SELECT + 89 * + CAST ( NULL AS INTEGER ) * - - 83 AS col1
----
NULL

query I rowsort
SELECT + 65 * + + ( + 60 ) AS col1
----
3900

query I rowsort
SELECT ALL - 36 + - 46 + 0 * + 13
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-9459
SELECT DISTINCT - MAX( ( - 91 ) )
----
91

skipif mysql # not compatible
query I rowsort label-9459
SELECT DISTINCT - MAX ( ( - 91 ) )
----
91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9460
SELECT ALL 67 DIV - 37 DIV COUNT( * ) + - 14 + 48
----
33

skipif mysql # not compatible
query I rowsort label-9460
SELECT ALL 67 / - 37 / COUNT ( * ) + - 14 + 48
----
33

query I rowsort
SELECT + 96 * + + ( + 16 ) AS col1
----
1536

onlyif mysql # DIV for integer division: 
query I rowsort label-9462
SELECT ALL - + 20 DIV - 73 * + 14 * + + 70 + + + 90
----
90

skipif mysql # not compatible
query I rowsort label-9462
SELECT ALL - + 20 / - 73 * + 14 * + + 70 + + + 90
----
90

query I rowsort
SELECT ALL + - ( - - 55 ) col2
----
-55

query I rowsort
SELECT COALESCE ( 80, 97, 15 )
----
80

query I rowsort
SELECT ALL + NULLIF ( 14, 66 / + - CASE 57 WHEN 33 THEN - 64 END ) col2
----
14

query I rowsort
SELECT ALL + 76 * ( - - 53 ) - + + 59
----
3969

query I rowsort
SELECT 40 * - + 17 + + - 72
----
-752

query I rowsort
SELECT ALL 75 * + 26 - + ( - + 63 ) - - 31 * - + 45 * + 64
----
-87267

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9469
SELECT DISTINCT 68 / 44 * - 83 * + - 92 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9469
SELECT DISTINCT 68 / 44 * - 83 * + - 92 + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9470
SELECT DISTINCT - MAX( ALL + 35 ) * + + 58 + - - CAST( - + COALESCE ( 30, 72, - 73, - - 13 - + 48 ) AS SIGNED )
----
-2060

skipif mysql # not compatible
query I rowsort label-9470
SELECT DISTINCT - MAX ( ALL + 35 ) * + + 58 + - - CAST ( - + COALESCE ( 30, 72, - 73, - - 13 - + 48 ) AS INTEGER )
----
-2060

query I rowsort
SELECT - - 90 * - 90 AS col2
----
-8100

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9472
SELECT ALL + CASE + CAST( NULL AS SIGNED ) WHEN ( COUNT( * ) ) THEN NULL WHEN COALESCE ( ( - + COUNT( DISTINCT + 55 ) ), + + 17 + + NULLIF ( - 55, 20 * COUNT( * ) + AVG ( ALL 20 ) ) - - AVG ( + 14 ) * + 20 ) THEN + 12 ELSE NULL END * - 80 + 77 + 49 * + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9472
SELECT ALL + CASE + CAST ( NULL AS INTEGER ) WHEN ( COUNT ( * ) ) THEN NULL WHEN COALESCE ( ( - + COUNT ( DISTINCT + 55 ) ), + + 17 + + NULLIF ( - 55, 20 * COUNT ( * ) + AVG ( ALL 20 ) ) - - AVG ( + 14 ) * + 20 ) THEN + 12 ELSE NULL END * - 80 + 77 + 49 * + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT + 56 + + 53
----
109

query I rowsort
SELECT + 91 * + 8 + + 27 - 80 - + 27
----
648

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9475
SELECT ALL CAST( 16 AS SIGNED ) * - 45 col2, 50 * CAST( + 64 AS SIGNED ) DIV 85 - - + 66
----
-720
103

skipif mysql # not compatible
query II rowsort label-9475
SELECT ALL CAST ( 16 AS INTEGER ) * - 45 col2, 50 * CAST ( + 64 AS INTEGER ) / 85 - - + 66
----
-720
103

onlyif mysql # aggregate syntax: 
query I rowsort label-9476
SELECT - 39 - + 95 + + COUNT( * ) AS col2
----
-133

skipif mysql # not compatible
query I rowsort label-9476
SELECT - 39 - + 95 + + COUNT ( * ) AS col2
----
-133

onlyif mysql # aggregate syntax: 
query I rowsort label-9477
SELECT ALL 95 * + ( + COUNT( * ) ) - - 80 AS col1
----
175

skipif mysql # not compatible
query I rowsort label-9477
SELECT ALL 95 * + ( + COUNT ( * ) ) - - 80 AS col1
----
175

query II rowsort
SELECT + ( 56 ) * + - 46, 56 AS col1
----
-2576
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9479
SELECT - 16 * 80 * 88 * + - 65 / + + 18 / + CAST( NULL AS SIGNED ) + + - 78 - + - 69 * - + 93 + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-9479
SELECT - 16 * 80 * 88 * + - 65 / + + 18 / + CAST ( NULL AS INTEGER ) + + - 78 - + - 69 * - + 93 + + COUNT ( * )
----
NULL

query I rowsort
SELECT ALL 67 * + 81
----
5427

onlyif mysql # aggregate syntax: 
query I rowsort label-9481
SELECT - COUNT( * ) + 48 * + 37 AS col1
----
1775

skipif mysql # not compatible
query I rowsort label-9481
SELECT - COUNT ( * ) + 48 * + 37 AS col1
----
1775

query I rowsort
SELECT COALESCE ( - 31, + 54 * - ( + - 59 ) + - - 84 ) AS col2
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-9483
SELECT DISTINCT CASE 39 WHEN - + COUNT( * ) THEN - 84 * - 8 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9483
SELECT DISTINCT CASE 39 WHEN - + COUNT ( * ) THEN - 84 * - 8 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9484
SELECT ALL NULLIF ( - NULLIF ( MAX( DISTINCT + 60 ), + 85 + - - COUNT( * ) * - + CAST( + MAX( ALL + 75 ) AS SIGNED ) ), + 52 + - 13 )
----
-60

skipif mysql # not compatible
query I rowsort label-9484
SELECT ALL NULLIF ( - NULLIF ( MAX ( DISTINCT + 60 ), + 85 + - - COUNT ( * ) * - + CAST ( + MAX ( ALL + 75 ) AS INTEGER ) ), + 52 + - 13 )
----
-60

query II rowsort
SELECT - 5 AS col0, + 79
----
-5
79

query I rowsort
SELECT DISTINCT - 7 * + - 23 + 88 AS col0
----
249

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9487
SELECT - COALESCE ( 98, - COUNT( * ) - + - CAST( NULL AS SIGNED ) ) + + + 35
----
-63

skipif mysql # not compatible
query I rowsort label-9487
SELECT - COALESCE ( 98, - COUNT ( * ) - + - CAST ( NULL AS INTEGER ) ) + + + 35
----
-63

query I rowsort
SELECT - 84 + + 59 AS col2
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-9489
SELECT ALL - NULLIF ( 14, ( 89 ) + + MIN( DISTINCT + 35 ) ) * 26 * 89 + - - 9
----
-32387

skipif mysql # not compatible
query I rowsort label-9489
SELECT ALL - NULLIF ( 14, ( 89 ) + + MIN ( DISTINCT + 35 ) ) * 26 * 89 + - - 9
----
-32387

query I rowsort
SELECT - 1 * + 33
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-9491
SELECT ALL - 17 + - COUNT( - 71 ) AS col0
----
-18

skipif mysql # not compatible
query I rowsort label-9491
SELECT ALL - 17 + - COUNT ( - 71 ) AS col0
----
-18

query II rowsort
SELECT 57 AS col2, 12
----
57
12

onlyif mysql # aggregate syntax: 
query I rowsort label-9493
SELECT ALL + ( 52 ) + + 60 - COUNT( * )
----
111

skipif mysql # not compatible
query I rowsort label-9493
SELECT ALL + ( 52 ) + + 60 - COUNT ( * )
----
111

query I rowsort
SELECT - 89 + + + 34 AS col1
----
-55

query I rowsort
SELECT - 48 * + 73 AS col1
----
-3504

query I rowsort
SELECT ALL - 27 * - 99 col1
----
2673

onlyif mysql # aggregate syntax: 
query I rowsort label-9497
SELECT - 65 + + 36 * MAX( ALL 57 )
----
1987

skipif mysql # not compatible
query I rowsort label-9497
SELECT - 65 + + 36 * MAX ( ALL 57 )
----
1987

query I rowsort
SELECT ALL + 54 + - 44
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-9499
SELECT ALL - 0 + MAX( - 40 )
----
-40

skipif mysql # not compatible
query I rowsort label-9499
SELECT ALL - 0 + MAX ( - 40 )
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-9500
SELECT COUNT( * ) + + 11 * - 33 - COUNT( * )
----
-363

skipif mysql # not compatible
query I rowsort label-9500
SELECT COUNT ( * ) + + 11 * - 33 - COUNT ( * )
----
-363

onlyif mysql # aggregate syntax: 
query I rowsort label-9501
SELECT DISTINCT - + COUNT( * ) + + - NULLIF ( + + 56, + 34 ) col0
----
-57

skipif mysql # not compatible
query I rowsort label-9501
SELECT DISTINCT - + COUNT ( * ) + + - NULLIF ( + + 56, + 34 ) col0
----
-57

query I rowsort
SELECT + 94 + 18 + 32 AS col0
----
144

query I rowsort
SELECT 85 * - 14 + + - 51 * - - 51 + - 55 AS col1
----
-3846

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9504
SELECT - - MAX( - - CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9504
SELECT - - MAX ( - - CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9505
SELECT ALL + NULLIF ( + + 5, - 66 * - + COUNT( * ) - - 80 - + 63 ) DIV + 30 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9505
SELECT ALL + NULLIF ( + + 5, - 66 * - + COUNT ( * ) - - 80 - + 63 ) / + 30 AS col0
----
0

query II rowsort
SELECT + 27 AS col1, - 39 AS col1
----
27
-39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9507
SELECT 34 * - 70 * + - SUM( + - CAST( NULL AS SIGNED ) ) + - - 37
----
NULL

skipif mysql # not compatible
query I rowsort label-9507
SELECT 34 * - 70 * + - SUM ( + - CAST ( NULL AS INTEGER ) ) + - - 37
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9508
SELECT ALL CASE 22 WHEN + - 62 THEN NULL WHEN + 38 THEN NULL ELSE 70 * + 87 + + 41 - + 47 DIV - 13 END * - COUNT( * )
----
-6134

skipif mysql # not compatible
query I rowsort label-9508
SELECT ALL CASE 22 WHEN + - 62 THEN NULL WHEN + 38 THEN NULL ELSE 70 * + 87 + + 41 - + 47 / - 13 END * - COUNT ( * )
----
-6134

query I rowsort
SELECT + 64 * - 47 * 86 + + 81 + 58
----
-258549

query I rowsort
SELECT 11 + + 29
----
40

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9511
SELECT ALL - CAST( NULL AS SIGNED ) AS col0, CASE 79 WHEN + ( 41 ) + + 10 THEN + 14 * + NULLIF ( + 58, 73 ) END AS col1
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-9511
SELECT ALL - CAST ( NULL AS INTEGER ) AS col0, CASE 79 WHEN + ( 41 ) + + 10 THEN + 14 * + NULLIF ( + 58, 73 ) END AS col1
----
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9512
SELECT ALL 73 DIV + 27 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-9512
SELECT ALL 73 / + 27 AS col2
----
2

query I rowsort
SELECT ALL - 3 * + - 54
----
162

onlyif mysql # aggregate syntax: 
query II rowsort label-9514
SELECT DISTINCT + SUM( DISTINCT ( + 29 ) ) + - 83 + 85 AS col2, 66 AS col0
----
31
66

skipif mysql # not compatible
query II rowsort label-9514
SELECT DISTINCT + SUM ( DISTINCT ( + 29 ) ) + - 83 + 85 AS col2, 66 AS col0
----
31
66

onlyif mysql # aggregate syntax: 
query I rowsort label-9515
SELECT 17 * - + COUNT( * )
----
-17

skipif mysql # not compatible
query I rowsort label-9515
SELECT 17 * - + COUNT ( * )
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-9516
SELECT ALL + SUM( DISTINCT - - 13 ) + - 1 AS col2
----
12

skipif mysql # not compatible
query I rowsort label-9516
SELECT ALL + SUM ( DISTINCT - - 13 ) + - 1 AS col2
----
12

query I rowsort
SELECT 7 - + 59 AS col2
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-9518
SELECT DISTINCT COUNT( + 52 ) + - - 19
----
20

skipif mysql # not compatible
query I rowsort label-9518
SELECT DISTINCT COUNT ( + 52 ) + - - 19
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-9519
SELECT DISTINCT - CASE + - 2 WHEN + 72 * + 82 THEN NULL WHEN - COUNT( * ) THEN - 67 * + + 2 END + 2 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9519
SELECT DISTINCT - CASE + - 2 WHEN + 72 * + 82 THEN NULL WHEN - COUNT ( * ) THEN - 67 * + + 2 END + 2 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9520
SELECT COUNT( * ) + + + 49 * + - COUNT( * ) * 97 AS col1, 83
----
-4752
83

skipif mysql # not compatible
query II rowsort label-9520
SELECT COUNT ( * ) + + + 49 * + - COUNT ( * ) * 97 AS col1, 83
----
-4752
83

query I rowsort
SELECT 42 * - - 66
----
2772

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9522
SELECT + CASE - 72 WHEN - 9 THEN - CASE + COUNT( DISTINCT - 41 ) WHEN + - 14 * - 1 - - 20 * + 25 THEN NULL WHEN 15 * + - SUM( ALL 64 ) THEN + + 69 * - 99 + - 38 ELSE NULL END / + + MAX( DISTINCT 70 ) WHEN - + MAX( 61 ) THEN NULL WHEN - + CAST( NULL AS SIGNED ) THEN - 62 * + CASE - - 91 WHEN - COUNT( * ) THEN NULL WHEN + 46 THEN + 48 * + 51 WHEN + 4 * - 13 THEN NULL END + + ( + - 12 ) END - + 60
----
NULL

skipif mysql # not compatible
query I rowsort label-9522
SELECT + CASE - 72 WHEN - 9 THEN - CASE + COUNT ( DISTINCT - 41 ) WHEN + - 14 * - 1 - - 20 * + 25 THEN NULL WHEN 15 * + - SUM ( ALL 64 ) THEN + + 69 * - 99 + - 38 ELSE NULL END / + + MAX ( DISTINCT 70 ) WHEN - + MAX ( 61 ) THEN NULL WHEN - + CAST ( NULL AS INTEGER ) THEN - 62 * + CASE - - 91 WHEN - COUNT ( * ) THEN NULL WHEN + 46 THEN + 48 * + 51 WHEN + 4 * - 13 THEN NULL END + + ( + - 12 ) END - + 60
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9523
SELECT ALL - - ( + COUNT( * ) ) - 74
----
-73

skipif mysql # not compatible
query I rowsort label-9523
SELECT ALL - - ( + COUNT ( * ) ) - 74
----
-73

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9524
SELECT ( - - 50 ) * - 57 DIV COUNT( * ) AS col1
----
-2850

skipif mysql # not compatible
query I rowsort label-9524
SELECT ( - - 50 ) * - 57 / COUNT ( * ) AS col1
----
-2850

query I rowsort
SELECT + 49 + + 33
----
82

onlyif mysql # aggregate syntax: 
query II rowsort label-9526
SELECT - 72 * - COUNT( * ) col1, 72
----
72
72

skipif mysql # not compatible
query II rowsort label-9526
SELECT - 72 * - COUNT ( * ) col1, 72
----
72
72

onlyif mysql # aggregate syntax: 
query I rowsort label-9527
SELECT DISTINCT + MIN( 53 )
----
53

skipif mysql # not compatible
query I rowsort label-9527
SELECT DISTINCT + MIN ( 53 )
----
53

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9528
SELECT - 99 DIV - + 4 + + - COUNT( * )
----
23

skipif mysql # not compatible
query I rowsort label-9528
SELECT - 99 / - + 4 + + - COUNT ( * )
----
23

onlyif mysql # DIV for integer division: 
query II rowsort label-9529
SELECT - - 82 DIV 6 + - - COALESCE ( 19, - + 1 ), 10 AS col2
----
32
10

skipif mysql # not compatible
query II rowsort label-9529
SELECT - - 82 / 6 + - - COALESCE ( 19, - + 1 ), 10 AS col2
----
32
10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9530
SELECT DISTINCT + - COUNT( DISTINCT - + 15 ) DIV SUM( - 65 ) col2
----
0

skipif mysql # not compatible
query I rowsort label-9530
SELECT DISTINCT + - COUNT ( DISTINCT - + 15 ) / SUM ( - 65 ) col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9531
SELECT MAX( - 68 ) DIV - + NULLIF ( - + CASE - 92 WHEN 56 * COALESCE ( - 71, - 96 + - + 61 + + COUNT( * ) + 30 + - 27 * - 95 + - 93 + 17 DIV 21 * + + 58 + + CASE - 52 WHEN - NULLIF ( - NULLIF ( - COUNT( * ), - CASE - 32 WHEN + 39 * - + 48 THEN + - SUM( ALL - 95 ) WHEN + + 42 THEN COALESCE ( + 92, + COUNT( * ) * COUNT( - + 47 ) ) * 16 * - 82 END DIV + 79 DIV - - 51 DIV - + 18 - - CAST( NULL AS SIGNED ) ), + CASE 66 WHEN + + 7 * 29 DIV 74 + 66 - - - 83 THEN - 90 ELSE NULL END + - 2 ) THEN 18 WHEN 12 THEN NULL ELSE NULL END, 68 * + 57 - + NULLIF ( COUNT( * ), - MIN( 85 ) * 15 ) * + 91 ) * + NULLIF ( 65 DIV - ( + 72 * - ( - 33 ) ), 94 ) + 95 * CAST( NULL AS SIGNED ) + 85 THEN + 84 WHEN 76 + + 41 THEN + 3 * + 89 ELSE 60 DIV - NULLIF ( - 47, + 92 DIV 47 + + ( - NULLIF ( + 47, 18 ) ) ) END, 20 ) + + COUNT( * ) - - 50 AS col1
----
-17

skipif mysql # not compatible
query I rowsort label-9531
SELECT MAX ( - 68 ) / - + NULLIF ( - + CASE - 92 WHEN 56 * COALESCE ( - 71, - 96 + - + 61 + + COUNT ( * ) + 30 + - 27 * - 95 + - 93 + 17 / 21 * + + 58 + + CASE - 52 WHEN - NULLIF ( - NULLIF ( - COUNT ( * ), - CASE - 32 WHEN + 39 * - + 48 THEN + - SUM ( ALL - 95 ) WHEN + + 42 THEN COALESCE ( + 92, + COUNT ( * ) * COUNT ( - + 47 ) ) * 16 * - 82 END / + 79 / - - 51 / - + 18 - - CAST ( NULL AS INTEGER ) ), + CASE 66 WHEN + + 7 * 29 / 74 + 66 - - - 83 THEN - 90 ELSE NULL END + - 2 ) THEN 18 WHEN 12 THEN NULL ELSE NULL END, 68 * + 57 - + NULLIF ( COUNT ( * ), - MIN ( 85 ) * 15 ) * + 91 ) * + NULLIF ( 65 / - ( + 72 * - ( - 33 ) ), 94 ) + 95 * CAST ( NULL AS INTEGER ) + 85 THEN + 84 WHEN 76 + + 41 THEN + 3 * + 89 ELSE 60 / - NULLIF ( - 47, + 92 / 47 + + ( - NULLIF ( + 47, 18 ) ) ) END, 20 ) + + COUNT ( * ) - - 50 AS col1
----
-17

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9532
SELECT COUNT( * ) DIV 79
----
0

skipif mysql # not compatible
query I rowsort label-9532
SELECT COUNT ( * ) / 79
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9533
SELECT - 74 + - - 0 + - COUNT( * ) AS col2
----
-75

skipif mysql # not compatible
query I rowsort label-9533
SELECT - 74 + - - 0 + - COUNT ( * ) AS col2
----
-75

query I rowsort
SELECT ALL 13 * - 96 - + 77
----
-1325

query I rowsort
SELECT ALL 18 * 32 AS col1
----
576

query I rowsort
SELECT ALL - 16 + - ( + 47 ) AS col1
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-9537
SELECT MAX( DISTINCT - 59 )
----
-59

skipif mysql # not compatible
query I rowsort label-9537
SELECT MAX ( DISTINCT - 59 )
----
-59

query I rowsort
SELECT ALL ( 72 ) + + - 76
----
-4

onlyif mysql # aggregate syntax: 
query II rowsort label-9539
SELECT ALL - 33, - CASE + 72 WHEN - 8 THEN - 18 WHEN - COALESCE ( - - SUM( DISTINCT 78 ), - 15, MIN( 22 ) + - - 40 ) THEN NULL ELSE NULL END AS col0
----
-33
NULL

skipif mysql # not compatible
query II rowsort label-9539
SELECT ALL - 33, - CASE + 72 WHEN - 8 THEN - 18 WHEN - COALESCE ( - - SUM ( DISTINCT 78 ), - 15, MIN ( 22 ) + - - 40 ) THEN NULL ELSE NULL END AS col0
----
-33
NULL

query I rowsort
SELECT 72 + - + 11
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-9541
SELECT COUNT( * ) - - ( - 18 )
----
-17

skipif mysql # not compatible
query I rowsort label-9541
SELECT COUNT ( * ) - - ( - 18 )
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-9542
SELECT ALL 14 * - SUM( + 67 )
----
-938

skipif mysql # not compatible
query I rowsort label-9542
SELECT ALL 14 * - SUM ( + 67 )
----
-938

onlyif mysql # DIV for integer division: 
query I rowsort label-9543
SELECT 17 + + 82 DIV 91 col0
----
17

skipif mysql # not compatible
query I rowsort label-9543
SELECT 17 + + 82 / 91 col0
----
17

query I rowsort
SELECT DISTINCT 8 + - 67
----
-59

onlyif mysql # aggregate syntax: 
query II rowsort label-9545
SELECT ALL - 36, + 71 * COUNT( * ) * 26 AS col0
----
-36
1846

skipif mysql # not compatible
query II rowsort label-9545
SELECT ALL - 36, + 71 * COUNT ( * ) * 26 AS col0
----
-36
1846

onlyif mysql # aggregate syntax: 
query I rowsort label-9546
SELECT 7 + - SUM( - 26 ) * + + 12
----
319

skipif mysql # not compatible
query I rowsort label-9546
SELECT 7 + - SUM ( - 26 ) * + + 12
----
319

query I rowsort
SELECT 72 * + 20 + + + 82 AS col2
----
1522

query II rowsort
SELECT - NULLIF ( 85, - + 8 ) AS col0, 70
----
-85
70

onlyif mysql # DIV for integer division: 
query I rowsort label-9549
SELECT + 89 DIV + 77 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9549
SELECT + 89 / + 77 AS col0
----
1

query I rowsort
SELECT + 6 * - COALESCE ( 91, + 8 ) * 79
----
-43134

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9551
SELECT DISTINCT ( 3 ) * 15 * MAX( + - COALESCE ( - 57, 1, - - 99 ) ) * - + 46 + 81 DIV + 62 AS col0
----
-117989

skipif mysql # not compatible
query I rowsort label-9551
SELECT DISTINCT ( 3 ) * 15 * MAX ( + - COALESCE ( - 57, 1, - - 99 ) ) * - + 46 + 81 / + 62 AS col0
----
-117989

onlyif mysql # aggregate syntax: 
query II rowsort label-9552
SELECT 12, + 47 * + 95 * 91 + - 92 - - MAX( - 44 ) * - 46 * ( + + 67 ) * + + COUNT( * ) AS col2
----
12
541831

skipif mysql # not compatible
query II rowsort label-9552
SELECT 12, + 47 * + 95 * 91 + - 92 - - MAX ( - 44 ) * - 46 * ( + + 67 ) * + + COUNT ( * ) AS col2
----
12
541831

onlyif mysql # aggregate syntax: 
query I rowsort label-9553
SELECT - COALESCE ( 52, COUNT( * ) + - 48 ) + COUNT( 9 )
----
-51

skipif mysql # not compatible
query I rowsort label-9553
SELECT - COALESCE ( 52, COUNT ( * ) + - 48 ) + COUNT ( 9 )
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-9554
SELECT ALL + COALESCE ( 96, - 29 ) - - MIN( DISTINCT - 92 ) * + COUNT( * )
----
4

skipif mysql # not compatible
query I rowsort label-9554
SELECT ALL + COALESCE ( 96, - 29 ) - - MIN ( DISTINCT - 92 ) * + COUNT ( * )
----
4

query I rowsort
SELECT - ( - ( 70 ) ) * + 89 col2
----
6230

onlyif mysql # aggregate syntax: 
query I rowsort label-9556
SELECT DISTINCT COUNT( * ) * COALESCE ( + 57, - 78 + + 27 ) AS col0
----
57

skipif mysql # not compatible
query I rowsort label-9556
SELECT DISTINCT COUNT ( * ) * COALESCE ( + 57, - 78 + + 27 ) AS col0
----
57

query I rowsort
SELECT + 35 * 2
----
70

query I rowsort
SELECT + 52 + 27 col2
----
79

query I rowsort
SELECT - 28 * + CASE 26 * - 92 WHEN + 93 * 42 THEN CASE ( 43 ) WHEN + 31 THEN 68 * 92 WHEN + 51 THEN NULL END ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT ALL CASE - 33 WHEN + 0 THEN 47 * 13 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9561
SELECT - COUNT( * ) * 25 col1
----
-25

skipif mysql # not compatible
query I rowsort label-9561
SELECT - COUNT ( * ) * 25 col1
----
-25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9562
SELECT - CASE + 35 WHEN CASE CASE + NULLIF ( + COUNT( * ), 2 / 46 ) WHEN + 33 THEN + CASE + 31 WHEN - 36 / 65 THEN NULL ELSE - 66 END - + ( 12 ) END WHEN CAST( NULL AS SIGNED ) THEN NULL ELSE - 98 END THEN NULL WHEN 31 + 89 THEN NULL ELSE - SUM( ALL 77 ) * 24 END
----
1848

skipif mysql # not compatible
query I rowsort label-9562
SELECT - CASE + 35 WHEN CASE CASE + NULLIF ( + COUNT ( * ), 2 / 46 ) WHEN + 33 THEN + CASE + 31 WHEN - 36 / 65 THEN NULL ELSE - 66 END - + ( 12 ) END WHEN CAST ( NULL AS INTEGER ) THEN NULL ELSE - 98 END THEN NULL WHEN 31 + 89 THEN NULL ELSE - SUM ( ALL 77 ) * 24 END
----
1848

onlyif mysql # aggregate syntax: 
query I rowsort label-9563
SELECT - COALESCE ( + 62, 3 * 59 + - 9 * + 92, 95 * - 1 ) + - NULLIF ( - 3, CASE - 95 WHEN 87 + COUNT( * ) THEN NULL ELSE 66 END * + 45 + + 40 ) AS col2
----
-59

skipif mysql # not compatible
query I rowsort label-9563
SELECT - COALESCE ( + 62, 3 * 59 + - 9 * + 92, 95 * - 1 ) + - NULLIF ( - 3, CASE - 95 WHEN 87 + COUNT ( * ) THEN NULL ELSE 66 END * + 45 + + 40 ) AS col2
----
-59

query I rowsort
SELECT - ( 63 ) + 46
----
-17

query I rowsort
SELECT ALL + 29 + + 6
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-9566
SELECT DISTINCT + COUNT( * ) * + 90 AS col2
----
90

skipif mysql # not compatible
query I rowsort label-9566
SELECT DISTINCT + COUNT ( * ) * + 90 AS col2
----
90

query I rowsort
SELECT DISTINCT 88 * 79 + - 34 AS col0
----
6918

query I rowsort
SELECT - ( + 33 ) * + 15
----
-495

query I rowsort
SELECT ALL 63 * + 97 + 0
----
6111

query I rowsort
SELECT ( - ( 75 ) )
----
-75

query I rowsort
SELECT ALL - 41 * - 12 + 23 col1
----
515

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9572
SELECT - COUNT( * ) + + COALESCE ( 7 + + 68, ( 19 ) DIV 42, + 34 - + 92 ) DIV 67
----
0

skipif mysql # not compatible
query I rowsort label-9572
SELECT - COUNT ( * ) + + COALESCE ( 7 + + 68, ( 19 ) / 42, + 34 - + 92 ) / 67
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9573
SELECT ALL 75 * + ( COUNT( * ) ) + 39
----
114

skipif mysql # not compatible
query I rowsort label-9573
SELECT ALL 75 * + ( COUNT ( * ) ) + 39
----
114

query I rowsort
SELECT - 0 * 85 + 15 AS col2
----
15

onlyif mysql # DIV for integer division: 
query I rowsort label-9575
SELECT 67 DIV NULLIF ( - 59, - 76 ) + 36
----
35

skipif mysql # not compatible
query I rowsort label-9575
SELECT 67 / NULLIF ( - 59, - 76 ) + 36
----
35

onlyif mysql # DIV for integer division: 
query I rowsort label-9576
SELECT + 61 DIV 43
----
1

skipif mysql # not compatible
query I rowsort label-9576
SELECT + 61 / 43
----
1

query I rowsort
SELECT ALL + 15 * - 76 + + 14 * - 41 col1
----
-1714

query I rowsort
SELECT - 73 * 30 AS col0
----
-2190

query I rowsort
SELECT + 78 * + 44
----
3432

query I rowsort
SELECT DISTINCT 84 * + 14
----
1176

query I rowsort
SELECT ALL 19 * 79
----
1501

query I rowsort
SELECT NULLIF ( 37, + 65 ) AS col0
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-9583
SELECT ALL - COUNT( * ) * + 47 - - MAX( 5 ) * 80
----
353

skipif mysql # not compatible
query I rowsort label-9583
SELECT ALL - COUNT ( * ) * + 47 - - MAX ( 5 ) * 80
----
353

onlyif mysql # aggregate syntax: 
query I rowsort label-9584
SELECT DISTINCT + CASE - 50 WHEN 78 + - 70 THEN + ( 76 ) WHEN NULLIF ( 27, 45 * COUNT( ALL - 21 ) ) THEN + 56 + 19 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9584
SELECT DISTINCT + CASE - 50 WHEN 78 + - 70 THEN + ( 76 ) WHEN NULLIF ( 27, 45 * COUNT ( ALL - 21 ) ) THEN + 56 + 19 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9585
SELECT CASE 97 WHEN - 52 + + 6 / + COALESCE ( 48, 59 ) THEN 53 + 72 WHEN - COALESCE ( 70, + ( COUNT( * ) ) / CASE - MAX( ALL + 35 ) + ( 56 + 93 ) WHEN 14 THEN + 40 * 1 WHEN 11 + AVG ( 3 ) THEN NULL ELSE - 88 END + ( COALESCE ( + 75, 27 * + COUNT( * ) - 5 ) ) * 40 ) + + ( 25 ) THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9585
SELECT CASE 97 WHEN - 52 + + 6 / + COALESCE ( 48, 59 ) THEN 53 + 72 WHEN - COALESCE ( 70, + ( COUNT ( * ) ) / CASE - MAX ( ALL + 35 ) + ( 56 + 93 ) WHEN 14 THEN + 40 * 1 WHEN 11 + AVG ( 3 ) THEN NULL ELSE - 88 END + ( COALESCE ( + 75, 27 * + COUNT ( * ) - 5 ) ) * 40 ) + + ( 25 ) THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT ALL + 95 * 94 AS col1
----
8930

onlyif mysql # aggregate syntax: 
query I rowsort label-9587
SELECT 4 * - 14 + - COUNT( * ) * - 52 col1
----
-4

skipif mysql # not compatible
query I rowsort label-9587
SELECT 4 * - 14 + - COUNT ( * ) * - 52 col1
----
-4

query I rowsort
SELECT + NULLIF ( 18, - 50 )
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-9589
SELECT - 65 + - MIN( + 9 ) * + ( 96 ) AS col0
----
-929

skipif mysql # not compatible
query I rowsort label-9589
SELECT - 65 + - MIN ( + 9 ) * + ( 96 ) AS col0
----
-929

query I rowsort
SELECT + ( COALESCE ( - 68, + 12 ) ) AS col2
----
-68

query I rowsort
SELECT - 83 * 78 AS col2
----
-6474

onlyif mysql # aggregate syntax: 
query I rowsort label-9592
SELECT MAX( ALL + 30 ) AS col0
----
30

skipif mysql # not compatible
query I rowsort label-9592
SELECT MAX ( ALL + 30 ) AS col0
----
30

query I rowsort
SELECT + 59 - - 45 AS col0
----
104

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9594
SELECT DISTINCT CAST( + ( ( 45 ) ) AS SIGNED ) AS col0
----
45

skipif mysql # not compatible
query I rowsort label-9594
SELECT DISTINCT CAST ( + ( ( 45 ) ) AS INTEGER ) AS col0
----
45

query I rowsort
SELECT + + 57 * 71 AS col2
----
4047

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9596
SELECT + 31 + + 78 DIV CAST( ( - COALESCE ( - CASE AVG ( ALL - 16 ) WHEN COALESCE ( - MIN( + 58 ), - 67, + 60 + - COUNT( * ) ) THEN - 91 END, AVG ( DISTINCT + 27 ), - 86 ) ) AS SIGNED )
----
29

skipif mysql # not compatible
query I rowsort label-9596
SELECT + 31 + + 78 / CAST ( ( - COALESCE ( - CASE AVG ( ALL - 16 ) WHEN COALESCE ( - MIN ( + 58 ), - 67, + 60 + - COUNT ( * ) ) THEN - 91 END, AVG ( DISTINCT + 27 ), - 86 ) ) AS INTEGER )
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-9597
SELECT ALL + COUNT( * ) * + 32 AS col0
----
32

skipif mysql # not compatible
query I rowsort label-9597
SELECT ALL + COUNT ( * ) * + 32 AS col0
----
32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9598
SELECT + + COALESCE ( 55, + 68 * ( + 7 ) ) DIV + ( + 77 * - NULLIF ( - COUNT( * ), - MAX( + 10 ) ) )
----
0

skipif mysql # not compatible
query I rowsort label-9598
SELECT + + COALESCE ( 55, + 68 * ( + 7 ) ) / + ( + 77 * - NULLIF ( - COUNT ( * ), - MAX ( + 10 ) ) )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9599
SELECT ALL COUNT( * ) DIV 95
----
0

skipif mysql # not compatible
query I rowsort label-9599
SELECT ALL COUNT ( * ) / 95
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9600
SELECT + CAST( 60 AS SIGNED ) * + 36
----
2160

skipif mysql # not compatible
query I rowsort label-9600
SELECT + CAST ( 60 AS INTEGER ) * + 36
----
2160

query I rowsort
SELECT + 63 * - 81 AS col2
----
-5103

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9602
SELECT + - 32 - MAX( - 72 + 22 ) * - CASE WHEN NOT CAST( + CASE - 70 WHEN 48 THEN NULL WHEN 3 + COUNT( * ) * 60 THEN - 77 + 35 END AS SIGNED ) < + COUNT( * ) * + SUM( DISTINCT 22 ) - - 17 * + 51 THEN NULL ELSE MAX( - COALESCE ( 67, + 14, 70 + + CAST( NULL AS SIGNED ) ) ) END
----
3318

skipif mysql # not compatible
query I rowsort label-9602
SELECT + - 32 - MAX ( - 72 + 22 ) * - CASE WHEN NOT CAST ( + CASE - 70 WHEN 48 THEN NULL WHEN 3 + COUNT ( * ) * 60 THEN - 77 + 35 END AS INTEGER ) < + COUNT ( * ) * + SUM ( DISTINCT 22 ) - - 17 * + 51 THEN NULL ELSE MAX ( - COALESCE ( 67, + 14, 70 + + CAST ( NULL AS INTEGER ) ) ) END
----
3318

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9603
SELECT ALL 46 + + AVG ( ALL CAST( CASE - 96 WHEN 78 * 75 THEN 60 * - 53 ELSE NULL END AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9603
SELECT ALL 46 + + AVG ( ALL CAST ( CASE - 96 WHEN 78 * 75 THEN 60 * - 53 ELSE NULL END AS INTEGER ) )
----
NULL

query I rowsort
SELECT ALL 50 * + 54 AS col1
----
2700

onlyif mysql # DIV for integer division: 
query I rowsort label-9605
SELECT - 90 DIV 75 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-9605
SELECT - 90 / 75 AS col0
----
-1

query I rowsort
SELECT + - 30 * COALESCE ( 8, - 11 * + 56 + + 55 )
----
-240

query I rowsort
SELECT ALL + 60 + + 68 AS col0
----
128

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9608
SELECT ALL - CAST( 2 AS SIGNED ) + + 44 DIV 39 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-9608
SELECT ALL - CAST ( 2 AS INTEGER ) + + 44 / 39 AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9609
SELECT + COUNT( * ) + - ( 47 )
----
-46

skipif mysql # not compatible
query I rowsort label-9609
SELECT + COUNT ( * ) + - ( 47 )
----
-46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9610
SELECT + COALESCE ( 97, + 20 - 99, 65 ) DIV 53 + - MIN( DISTINCT - CAST( 33 AS SIGNED ) ) * COALESCE ( + 19, - 75 ) col0
----
628

skipif mysql # not compatible
query I rowsort label-9610
SELECT + COALESCE ( 97, + 20 - 99, 65 ) / 53 + - MIN ( DISTINCT - CAST ( 33 AS INTEGER ) ) * COALESCE ( + 19, - 75 ) col0
----
628

onlyif mysql # aggregate syntax: 
query I rowsort label-9611
SELECT - 85 * ( SUM( ALL 1 ) )
----
-85

skipif mysql # not compatible
query I rowsort label-9611
SELECT - 85 * ( SUM ( ALL 1 ) )
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-9612
SELECT DISTINCT + COUNT( + 47 )
----
1

skipif mysql # not compatible
query I rowsort label-9612
SELECT DISTINCT + COUNT ( + 47 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9613
SELECT ALL + MIN( + 37 ) * 8
----
296

skipif mysql # not compatible
query I rowsort label-9613
SELECT ALL + MIN ( + 37 ) * 8
----
296

query I rowsort
SELECT - 49 + - 76 col2
----
-125

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9615
SELECT ALL CASE + - COUNT( * ) WHEN CAST( NULL AS SIGNED ) * - 10 + COALESCE ( + CASE - 95 WHEN - 1 THEN 18 END, 78 * 76 + 15 ) THEN 14 * - 87 - + 28 WHEN - 91 * + 6 + - 24 THEN NULL ELSE 54 END DIV + 44 - 28
----
-27

skipif mysql # not compatible
query I rowsort label-9615
SELECT ALL CASE + - COUNT ( * ) WHEN CAST ( NULL AS INTEGER ) * - 10 + COALESCE ( + CASE - 95 WHEN - 1 THEN 18 END, 78 * 76 + 15 ) THEN 14 * - 87 - + 28 WHEN - 91 * + 6 + - 24 THEN NULL ELSE 54 END / + 44 - 28
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-9616
SELECT - 77 * + 54 * + 41 + + COUNT( * )
----
-170477

skipif mysql # not compatible
query I rowsort label-9616
SELECT - 77 * + 54 * + 41 + + COUNT ( * )
----
-170477

onlyif mysql # aggregate syntax: 
query I rowsort label-9617
SELECT DISTINCT - MIN( - + 40 )
----
40

skipif mysql # not compatible
query I rowsort label-9617
SELECT DISTINCT - MIN ( - + 40 )
----
40

query I rowsort
SELECT ALL - 36 - - CASE - 28 WHEN 0 THEN - 75 WHEN + 78 - 29 THEN NULL END AS col2
----
NULL

query I rowsort
SELECT - ( 53 ) * - 88 + 44 * 55
----
7084

query I rowsort
SELECT 42 + - 87 * ( 29 + - 32 )
----
303

query I rowsort
SELECT 51 + - CASE 56 WHEN - 36 + 32 * - 57 THEN NULL ELSE 84 END * + ( + 91 )
----
-7593

query I rowsort
SELECT 58 * + - 90 * 66 AS col0
----
-344520

query I rowsort
SELECT - 63 * 7 + 56
----
-385

query I rowsort
SELECT 41 + + 92 AS col1
----
133

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9625
SELECT ALL - COUNT( * ) DIV - - 95 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9625
SELECT ALL - COUNT ( * ) / - - 95 AS col0
----
0

query I rowsort
SELECT 48 * + + 50 AS col1
----
2400

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9627
SELECT ALL CASE 27 WHEN 63 + + 6 THEN - 99 * 77 END * CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-9627
SELECT ALL CASE 27 WHEN 63 + + 6 THEN - 99 * 77 END * CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT 16 * + COALESCE ( ( 27 ), 49 ) col1
----
432

query I rowsort
SELECT - 77 + - 29
----
-106

onlyif mysql # aggregate syntax: 
query I rowsort label-9630
SELECT DISTINCT ( COUNT( 25 ) )
----
1

skipif mysql # not compatible
query I rowsort label-9630
SELECT DISTINCT ( COUNT ( 25 ) )
----
1

query I rowsort
SELECT + 60 * 14 * + 90 AS col0
----
75600

query I rowsort
SELECT 55 + - 14 * + 52
----
-673

query I rowsort
SELECT + 27 + + 32
----
59

query I rowsort
SELECT DISTINCT - ( + 0 ) + - 69 * + ( + NULLIF ( + 75, + COALESCE ( - 99, ( 92 ) ) * + 88 ) ) AS col0
----
-5175

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9635
SELECT ALL ( CASE + NULLIF ( 6, NULLIF ( + 64, + 40 ) ) WHEN + 45 * 78 + 60 THEN + 59 + + 35 ELSE CAST( NULL AS SIGNED ) * - 93 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-9635
SELECT ALL ( CASE + NULLIF ( 6, NULLIF ( + 64, + 40 ) ) WHEN + 45 * 78 + 60 THEN + 59 + + 35 ELSE CAST ( NULL AS INTEGER ) * - 93 END )
----
NULL

query I rowsort
SELECT 65 + 96
----
161

query I rowsort
SELECT DISTINCT 80 + + 84
----
164

onlyif mysql # aggregate syntax: 
query I rowsort label-9638
SELECT ALL - ( + NULLIF ( - 95, 16 * + 96 + ( 7 ) ) ) * + COUNT( * ) AS col1
----
95

skipif mysql # not compatible
query I rowsort label-9638
SELECT ALL - ( + NULLIF ( - 95, 16 * + 96 + ( 7 ) ) ) * + COUNT ( * ) AS col1
----
95

query I rowsort
SELECT ALL 24 + + ( - ( - 12 ) ) + + 90
----
126

onlyif mysql # aggregate syntax: 
query I rowsort label-9640
SELECT 13 - + CASE 92 WHEN AVG ( ALL 87 ) THEN NULL WHEN - ( COUNT( * ) ) THEN 5 WHEN + SUM( ALL 99 ) THEN NULL ELSE NULL END * 34 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9640
SELECT 13 - + CASE 92 WHEN AVG ( ALL 87 ) THEN NULL WHEN - ( COUNT ( * ) ) THEN 5 WHEN + SUM ( ALL 99 ) THEN NULL ELSE NULL END * 34 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9641
SELECT DISTINCT - 96 + + 79 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9641
SELECT DISTINCT - 96 + + 79 + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9642
SELECT DISTINCT - 38 + COUNT( * ) AS col1
----
-37

skipif mysql # not compatible
query I rowsort label-9642
SELECT DISTINCT - 38 + COUNT ( * ) AS col1
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-9643
SELECT COUNT( * ) + + 1 * - ( COUNT( * ) )
----
0

skipif mysql # not compatible
query I rowsort label-9643
SELECT COUNT ( * ) + + 1 * - ( COUNT ( * ) )
----
0

query I rowsort
SELECT DISTINCT 9 * - 94
----
-846

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9645
SELECT COUNT( * ) * + COUNT( * ) * + + 40 DIV 18 col0
----
2

skipif mysql # not compatible
query I rowsort label-9645
SELECT COUNT ( * ) * + COUNT ( * ) * + + 40 / 18 col0
----
2

query I rowsort
SELECT DISTINCT ( + - 9 ) - 97
----
-106

onlyif mysql # DIV for integer division: 
query I rowsort label-9647
SELECT DISTINCT - ( - - ( - - 14 ) ) DIV - ( 69 * 58 + + 74 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9647
SELECT DISTINCT - ( - - ( - - 14 ) ) / - ( 69 * 58 + + 74 ) AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9648
SELECT ALL - MAX( ALL 49 ) - + - 95 DIV + 36 AS col2
----
-47

skipif mysql # not compatible
query I rowsort label-9648
SELECT ALL - MAX ( ALL 49 ) - + - 95 / + 36 AS col2
----
-47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9649
SELECT NULLIF ( + COUNT( * ), - 58 * - COALESCE ( 2 * + COUNT( * ), - 25, 57 ) ) DIV - 85
----
0

skipif mysql # not compatible
query I rowsort label-9649
SELECT NULLIF ( + COUNT ( * ), - 58 * - COALESCE ( 2 * + COUNT ( * ), - 25, 57 ) ) / - 85
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9650
SELECT 13 * CAST( NULL AS SIGNED ) * + - 28
----
NULL

skipif mysql # not compatible
query I rowsort label-9650
SELECT 13 * CAST ( NULL AS INTEGER ) * + - 28
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9651
SELECT 85 AS col2, - 28 + + - MIN( 94 ) AS col0
----
85
-122

skipif mysql # not compatible
query II rowsort label-9651
SELECT 85 AS col2, - 28 + + - MIN ( 94 ) AS col0
----
85
-122

query II rowsort
SELECT + 67 AS col2, 57 * + - 59 AS col1
----
67
-3363

onlyif mysql # aggregate syntax: 
query I rowsort label-9653
SELECT DISTINCT - COUNT( ALL + + ( 72 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-9653
SELECT DISTINCT - COUNT ( ALL + + ( 72 ) )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9654
SELECT DISTINCT - 23 * + - COUNT( * )
----
23

skipif mysql # not compatible
query I rowsort label-9654
SELECT DISTINCT - 23 * + - COUNT ( * )
----
23

query I rowsort
SELECT DISTINCT 0 * + 49 * 63 AS col0
----
0

query I rowsort
SELECT 51 * + 68 * + + 17 * 18
----
1061208

query I rowsort
SELECT DISTINCT - ( - - 29 )
----
-29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9658
SELECT - 66 + + + 66 / - CASE WHEN - 13 BETWEEN NULL AND NULL THEN - COUNT( * ) + - 34 * 34 WHEN NULL >= + AVG ( - 14 ) - - 66 * + AVG ( ALL CAST( NULL AS SIGNED ) / ( 76 ) ) THEN - 9 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9658
SELECT - 66 + + + 66 / - CASE WHEN - 13 BETWEEN NULL AND NULL THEN - COUNT ( * ) + - 34 * 34 WHEN NULL >= + AVG ( - 14 ) - - 66 * + AVG ( ALL CAST ( NULL AS INTEGER ) / ( 76 ) ) THEN - 9 END AS col0
----
NULL

query II rowsort
SELECT ALL - 21, ( 2 ) * ( - 72 ) AS col0
----
-21
-144

onlyif mysql # aggregate syntax: 
query I rowsort label-9660
SELECT + + SUM( DISTINCT - 0 )
----
0

skipif mysql # not compatible
query I rowsort label-9660
SELECT + + SUM ( DISTINCT - 0 )
----
0

query I rowsort
SELECT ( - 13 ) + + + NULLIF ( 40, + 86 ) AS col1
----
27

query I rowsort
SELECT + + NULLIF ( + 21, - NULLIF ( 62, 86 ) ) col1
----
21

query I rowsort
SELECT ALL - 94 + 99 AS col1
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-9664
SELECT DISTINCT COUNT( ALL + + 56 ) + 2 AS col1
----
3

skipif mysql # not compatible
query I rowsort label-9664
SELECT DISTINCT COUNT ( ALL + + 56 ) + 2 AS col1
----
3

query I rowsort
SELECT ALL + - 82 * - 82 AS col0
----
6724

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9666
SELECT 87 DIV - COUNT( * )
----
-87

skipif mysql # not compatible
query I rowsort label-9666
SELECT 87 / - COUNT ( * )
----
-87

query I rowsort
SELECT 55 * 94 * - NULLIF ( - 92, 22 + 84 ) - - 7 * - 13
----
475549

onlyif mysql # aggregate syntax: 
query II rowsort label-9668
SELECT ALL 14, COUNT( * ) AS col0
----
14
1

skipif mysql # not compatible
query II rowsort label-9668
SELECT ALL 14, COUNT ( * ) AS col0
----
14
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9669
SELECT DISTINCT + CASE - 70 WHEN - - 35 + 96 THEN 94 ELSE NULL END / - CASE 20 WHEN 91 THEN + MIN( - 19 ) WHEN - 93 THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9669
SELECT DISTINCT + CASE - 70 WHEN - - 35 + 96 THEN 94 ELSE NULL END / - CASE 20 WHEN 91 THEN + MIN ( - 19 ) WHEN - 93 THEN NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9670
SELECT 49 + - SUM( DISTINCT - 13 )
----
62

skipif mysql # not compatible
query I rowsort label-9670
SELECT 49 + - SUM ( DISTINCT - 13 )
----
62

query I rowsort
SELECT ALL 69 * - - 56
----
3864

onlyif mysql # aggregate syntax: 
query I rowsort label-9672
SELECT DISTINCT + COUNT( * ) * 74 + - + 82
----
-8

skipif mysql # not compatible
query I rowsort label-9672
SELECT DISTINCT + COUNT ( * ) * 74 + - + 82
----
-8

query I rowsort
SELECT ALL - 0 + + 45 AS col1
----
45

query I rowsort
SELECT - 82 + ( - 91 ) AS col0
----
-173

query I rowsort
SELECT - CASE - + 8 WHEN + 0 * + 67 THEN - 19 - + 18 END col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9676
SELECT ( + COUNT( * ) ) * - 47
----
-47

skipif mysql # not compatible
query I rowsort label-9676
SELECT ( + COUNT ( * ) ) * - 47
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-9677
SELECT DISTINCT - - 77 - - + COUNT( * )
----
78

skipif mysql # not compatible
query I rowsort label-9677
SELECT DISTINCT - - 77 - - + COUNT ( * )
----
78

query I rowsort
SELECT ALL - ( + + 0 ) AS col2
----
0

query II rowsort
SELECT ALL + 92 AS col0, 30
----
92
30

query I rowsort
SELECT 36 * 33 AS col0
----
1188

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9681
SELECT DISTINCT - CAST( NULL AS DECIMAL ) - - 82 - AVG ( + 89 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9681
SELECT DISTINCT - CAST ( NULL AS REAL ) - - 82 - AVG ( + 89 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9682
SELECT ALL COUNT( * ) * - 83 AS col0, ( 46 ) AS col1
----
-83
46

skipif mysql # not compatible
query II rowsort label-9682
SELECT ALL COUNT ( * ) * - 83 AS col0, ( 46 ) AS col1
----
-83
46

onlyif mysql # aggregate syntax: 
query I rowsort label-9683
SELECT + COUNT( * ) - - + 51 + + COUNT( * )
----
53

skipif mysql # not compatible
query I rowsort label-9683
SELECT + COUNT ( * ) - - + 51 + + COUNT ( * )
----
53

query II rowsort
SELECT + 78 * - 56 AS col2, - 57 + + - 34 + + 83 * + 93
----
-4368
7628

onlyif mysql # aggregate syntax: 
query I rowsort label-9685
SELECT ALL COUNT( * ) * - 42 * + 35
----
-1470

skipif mysql # not compatible
query I rowsort label-9685
SELECT ALL COUNT ( * ) * - 42 * + 35
----
-1470

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9686
SELECT 45 DIV + COUNT( * ) + + COUNT( * )
----
46

skipif mysql # not compatible
query I rowsort label-9686
SELECT 45 / + COUNT ( * ) + + COUNT ( * )
----
46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9687
SELECT 36 DIV 97 + 95 + - - 78 + - COUNT( * ) AS col1
----
172

skipif mysql # not compatible
query I rowsort label-9687
SELECT 36 / 97 + 95 + - - 78 + - COUNT ( * ) AS col1
----
172

onlyif mysql # aggregate syntax: 
query I rowsort label-9688
SELECT + 42 * + + MIN( + 86 )
----
3612

skipif mysql # not compatible
query I rowsort label-9688
SELECT + 42 * + + MIN ( + 86 )
----
3612

onlyif mysql # aggregate syntax: 
query II rowsort label-9689
SELECT + COUNT( * ) * 25 AS col1, CASE - MIN( + 0 ) WHEN + NULLIF ( 24, - COALESCE ( + 0, COUNT( * ) * MIN( DISTINCT - 10 ) ) * 79 ) THEN NULL ELSE COUNT( * ) END + + 88
----
25
89

skipif mysql # not compatible
query II rowsort label-9689
SELECT + COUNT ( * ) * 25 AS col1, CASE - MIN ( + 0 ) WHEN + NULLIF ( 24, - COALESCE ( + 0, COUNT ( * ) * MIN ( DISTINCT - 10 ) ) * 79 ) THEN NULL ELSE COUNT ( * ) END + + 88
----
25
89

onlyif mysql # aggregate syntax: 
query I rowsort label-9690
SELECT ALL ( - - 16 ) * - + COALESCE ( - 55, - 79 * - MAX( + 83 ) - 26, - 54 ) * + 0 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9690
SELECT ALL ( - - 16 ) * - + COALESCE ( - 55, - 79 * - MAX ( + 83 ) - 26, - 54 ) * + 0 AS col0
----
0

query I rowsort
SELECT + 60 + - 48 AS col0
----
12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9692
SELECT ALL + NULLIF ( + + 36, + 52 / 18 + 36 ) * CAST( + 42 AS SIGNED ) AS col2
----
1512

skipif mysql # not compatible
query I rowsort label-9692
SELECT ALL + NULLIF ( + + 36, + 52 / 18 + 36 ) * CAST ( + 42 AS INTEGER ) AS col2
----
1512

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9693
SELECT + 36 + 60 + - + 56 + MIN( ALL 26 ) DIV 25 AS col2
----
41

skipif mysql # not compatible
query I rowsort label-9693
SELECT + 36 + 60 + - + 56 + MIN ( ALL 26 ) / 25 AS col2
----
41

query I rowsort
SELECT DISTINCT ( + 2 ) * - 13 AS col1
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-9695
SELECT DISTINCT + COALESCE ( + - 95, + 63 + + 60 + + 44, 18 * - COUNT( * ) ) * 69 + 31 * COUNT( * ) AS col0
----
-6524

skipif mysql # not compatible
query I rowsort label-9695
SELECT DISTINCT + COALESCE ( + - 95, + 63 + + 60 + + 44, 18 * - COUNT ( * ) ) * 69 + 31 * COUNT ( * ) AS col0
----
-6524

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9696
SELECT ALL 24 / + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9696
SELECT ALL 24 / + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9697
SELECT + CASE - - 48 WHEN - COUNT( * ) * - - 72 THEN - 48 * 88 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9697
SELECT + CASE - - 48 WHEN - COUNT ( * ) * - - 72 THEN - 48 * 88 ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT ALL + 13 * + 70 + + - 53 AS col0
----
857

query I rowsort
SELECT + 0 + + 6
----
6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9700
SELECT 74 * - 92 * - COUNT( * ) * - + COALESCE ( MIN( ALL + 98 ), 13, - MAX( ALL 62 ) ) + + CASE COALESCE ( 30, 43 + + COUNT( * ) ) WHEN 37 THEN NULL WHEN - 95 - + 63 * 73 THEN NULL WHEN + 38 THEN NULL ELSE + 58 * 7 + + ( + 80 - - 27 DIV - 49 ) END AS col0
----
-666698

skipif mysql # not compatible
query I rowsort label-9700
SELECT 74 * - 92 * - COUNT ( * ) * - + COALESCE ( MIN ( ALL + 98 ), 13, - MAX ( ALL 62 ) ) + + CASE COALESCE ( 30, 43 + + COUNT ( * ) ) WHEN 37 THEN NULL WHEN - 95 - + 63 * 73 THEN NULL WHEN + 38 THEN NULL ELSE + 58 * 7 + + ( + 80 - - 27 / - 49 ) END AS col0
----
-666698

onlyif mysql # aggregate syntax: 
query I rowsort label-9701
SELECT + MIN( ALL + 80 )
----
80

skipif mysql # not compatible
query I rowsort label-9701
SELECT + MIN ( ALL + 80 )
----
80

query I rowsort
SELECT - ( 66 ) + 84 AS col0
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-9703
SELECT + - SUM( DISTINCT + - 63 ) * + + 86 + 64 AS col2
----
5482

skipif mysql # not compatible
query I rowsort label-9703
SELECT + - SUM ( DISTINCT + - 63 ) * + + 86 + 64 AS col2
----
5482

query I rowsort
SELECT DISTINCT - 89 * 34 + 55 AS col1
----
-2971

query I rowsort
SELECT + 86 + - 45 * 45
----
-1939

onlyif mysql # aggregate syntax: 
query I rowsort label-9706
SELECT + COUNT( * ) + - 32 * - 65 AS col2
----
2081

skipif mysql # not compatible
query I rowsort label-9706
SELECT + COUNT ( * ) + - 32 * - 65 AS col2
----
2081

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9707
SELECT ALL + + SUM( - CAST( NULL AS SIGNED ) ) * - 31 + - 7 - + 35 * ( COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9707
SELECT ALL + + SUM ( - CAST ( NULL AS INTEGER ) ) * - 31 + - 7 - + 35 * ( COUNT ( * ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9708
SELECT + NULLIF ( - + COUNT( * ), - 1 * - - 96 )
----
-1

skipif mysql # not compatible
query I rowsort label-9708
SELECT + NULLIF ( - + COUNT ( * ), - 1 * - - 96 )
----
-1

query I rowsort
SELECT ALL 97 + 99 AS col2
----
196

onlyif mysql # aggregate syntax: 
query I rowsort label-9710
SELECT + + COUNT( * ) * + - 65
----
-65

skipif mysql # not compatible
query I rowsort label-9710
SELECT + + COUNT ( * ) * + - 65
----
-65

query I rowsort
SELECT + - ( - 55 ) + 15 + COALESCE ( ( 3 ), + ( - 19 ) ) + + 35 * 28 / CASE - 61 WHEN - 9 - 10 THEN NULL WHEN 51 THEN NULL WHEN + 61 - + 71 THEN 11 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9712
SELECT - - 43 + + 35 DIV 63 AS col1
----
43

skipif mysql # not compatible
query I rowsort label-9712
SELECT - - 43 + + 35 / 63 AS col1
----
43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9713
SELECT DISTINCT COUNT( - CAST( NULL AS SIGNED ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9713
SELECT DISTINCT COUNT ( - CAST ( NULL AS INTEGER ) ) AS col2
----
0

query I rowsort
SELECT - 2 * + 24 AS col0
----
-48

query I rowsort
SELECT - 72 * + - 77 * + 10
----
55440

onlyif mysql # DIV for integer division: 
query I rowsort label-9716
SELECT ALL + 46 DIV + - 38 + + 6 AS col0
----
5

skipif mysql # not compatible
query I rowsort label-9716
SELECT ALL + 46 / + - 38 + + 6 AS col0
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-9717
SELECT DISTINCT + COUNT( * ) - + + 54 AS col2
----
-53

skipif mysql # not compatible
query I rowsort label-9717
SELECT DISTINCT + COUNT ( * ) - + + 54 AS col2
----
-53

query I rowsort
SELECT DISTINCT - 55 - + - 26 * 19
----
439

query I rowsort
SELECT - 26 + 44 - 43 * - 9 - + 98 * 52
----
-4691

onlyif mysql # DIV for integer division: 
query I rowsort label-9720
SELECT ALL + 40 DIV + - 52 * + - 20
----
0

skipif mysql # not compatible
query I rowsort label-9720
SELECT ALL + 40 / + - 52 * + - 20
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9721
SELECT DISTINCT CAST( 40 AS SIGNED )
----
40

skipif mysql # not compatible
query I rowsort label-9721
SELECT DISTINCT CAST ( 40 AS INTEGER )
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-9722
SELECT DISTINCT + NULLIF ( - + 2, + - 97 ) * + - COUNT( * ) AS col0
----
2

skipif mysql # not compatible
query I rowsort label-9722
SELECT DISTINCT + NULLIF ( - + 2, + - 97 ) * + - COUNT ( * ) AS col0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-9723
SELECT - 73 - - 22 * + 70 + COUNT( * )
----
1468

skipif mysql # not compatible
query I rowsort label-9723
SELECT - 73 - - 22 * + 70 + COUNT ( * )
----
1468

onlyif mysql # aggregate syntax: 
query I rowsort label-9724
SELECT - 90 * + + COUNT( * )
----
-90

skipif mysql # not compatible
query I rowsort label-9724
SELECT - 90 * + + COUNT ( * )
----
-90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9725
SELECT - MIN( - COALESCE ( - 6, + NULLIF ( - 11, 61 ) ) ) + - 39 DIV - ( 68 * + 46 + + ( + 62 + + COUNT( DISTINCT + CAST( 28 AS SIGNED ) ) ) * - 78 )
----
-6

skipif mysql # not compatible
query I rowsort label-9725
SELECT - MIN ( - COALESCE ( - 6, + NULLIF ( - 11, 61 ) ) ) + - 39 / - ( 68 * + 46 + + ( + 62 + + COUNT ( DISTINCT + CAST ( 28 AS INTEGER ) ) ) * - 78 )
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-9726
SELECT + 72 + COUNT( - + ( + 72 ) ) + + + 83 AS col1
----
156

skipif mysql # not compatible
query I rowsort label-9726
SELECT + 72 + COUNT ( - + ( + 72 ) ) + + + 83 AS col1
----
156

query I rowsort
SELECT + 48 + - 49
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9728
SELECT DISTINCT CAST( + 79 AS SIGNED ) AS col1
----
79

skipif mysql # not compatible
query I rowsort label-9728
SELECT DISTINCT CAST ( + 79 AS INTEGER ) AS col1
----
79

onlyif mysql # DIV for integer division: 
query I rowsort label-9729
SELECT DISTINCT + 2 DIV + 67 + + - 99 AS col0
----
-99

skipif mysql # not compatible
query I rowsort label-9729
SELECT DISTINCT + 2 / + 67 + + - 99 AS col0
----
-99

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9730
SELECT ALL - NULLIF ( + - CAST( NULL AS DECIMAL ), 97 * - 86 + MAX( 18 ) + - 38 * 48 ) / + 31 + 18 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9730
SELECT ALL - NULLIF ( + - CAST ( NULL AS REAL ), 97 * - 86 + MAX ( 18 ) + - 38 * 48 ) / + 31 + 18 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9731
SELECT CAST( + COUNT( DISTINCT + 75 ) AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-9731
SELECT CAST ( + COUNT ( DISTINCT + 75 ) AS INTEGER )
----
1

query I rowsort
SELECT + CASE - - 33 WHEN + 63 + + 76 THEN NULL ELSE - ( - 69 ) * 23 END * NULLIF ( + ( - 17 ) * 34, ( 63 ) ) AS col0
----
-917286

query I rowsort
SELECT - 0 * + 25 AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9734
SELECT CAST( + + 55 AS SIGNED )
----
55

skipif mysql # not compatible
query I rowsort label-9734
SELECT CAST ( + + 55 AS INTEGER )
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-9735
SELECT + COALESCE ( + COUNT( * ), 80 * + COUNT( * ) - - - 36 + - COUNT( * ) * + 42 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9735
SELECT + COALESCE ( + COUNT ( * ), 80 * + COUNT ( * ) - - - 36 + - COUNT ( * ) * + 42 ) AS col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9736
SELECT - 57 * - 99 + + - CAST( - - COUNT( * ) AS SIGNED ) AS col2
----
5642

skipif mysql # not compatible
query I rowsort label-9736
SELECT - 57 * - 99 + + - CAST ( - - COUNT ( * ) AS INTEGER ) AS col2
----
5642

onlyif mysql # aggregate syntax: 
query I rowsort label-9737
SELECT DISTINCT + + 48 * + MAX( - 54 )
----
-2592

skipif mysql # not compatible
query I rowsort label-9737
SELECT DISTINCT + + 48 * + MAX ( - 54 )
----
-2592

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9738
SELECT + - COUNT( * ) DIV 34
----
0

skipif mysql # not compatible
query I rowsort label-9738
SELECT + - COUNT ( * ) / 34
----
0

query I rowsort
SELECT DISTINCT 63 * + 7
----
441

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9740
SELECT ALL 35 * + 32 - + + CASE - 84 WHEN - - COALESCE ( - 11, + COUNT( * ) * MAX( + 15 ) ) + + 0 THEN NULL WHEN - 91 THEN + 6 + 85 * CAST( - 60 AS SIGNED ) WHEN - 82 / 78 THEN NULLIF ( ( 9 ), 66 * AVG ( 60 ) ) * - COUNT( * ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9740
SELECT ALL 35 * + 32 - + + CASE - 84 WHEN - - COALESCE ( - 11, + COUNT ( * ) * MAX ( + 15 ) ) + + 0 THEN NULL WHEN - 91 THEN + 6 + 85 * CAST ( - 60 AS INTEGER ) WHEN - 82 / 78 THEN NULLIF ( ( 9 ), 66 * AVG ( 60 ) ) * - COUNT ( * ) END AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9741
SELECT DISTINCT - SUM( DISTINCT - 86 ) DIV - + 94
----
0

skipif mysql # not compatible
query I rowsort label-9741
SELECT DISTINCT - SUM ( DISTINCT - 86 ) / - + 94
----
0

query II rowsort
SELECT + 43 + - 69 + - 97 AS col1, - ( + 76 )
----
-123
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-9743
SELECT + MIN( DISTINCT 18 ) AS col0
----
18

skipif mysql # not compatible
query I rowsort label-9743
SELECT + MIN ( DISTINCT 18 ) AS col0
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-9744
SELECT - - MIN( ALL 5 )
----
5

skipif mysql # not compatible
query I rowsort label-9744
SELECT - - MIN ( ALL 5 )
----
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9745
SELECT ALL 31 * 3 * SUM( ALL CASE + - 35 WHEN 37 THEN NULL WHEN 82 THEN 23 END ) + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9745
SELECT ALL 31 * 3 * SUM ( ALL CASE + - 35 WHEN 37 THEN NULL WHEN 82 THEN 23 END ) + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT + 0 - + 3 AS col1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9747
SELECT ALL NULLIF ( - + 74, + MIN( ALL - 5 ) - - 94 + 14 * + 49 ) AS col2
----
-74

skipif mysql # not compatible
query I rowsort label-9747
SELECT ALL NULLIF ( - + 74, + MIN ( ALL - 5 ) - - 94 + 14 * + 49 ) AS col2
----
-74

query I rowsort
SELECT ALL ( - + CASE + 37 WHEN - - 53 * - 65 + - 47 THEN 14 WHEN 41 THEN 92 WHEN - 78 / 90 + - 82 * 90 THEN NULL ELSE - 73 END )
----
73

query I rowsort
SELECT ALL - 57 * - + 53
----
3021

onlyif mysql # aggregate syntax: 
query I rowsort label-9750
SELECT 0 + CASE 16 WHEN + 0 THEN - 51 + - 76 WHEN COUNT( * ) THEN + ( 45 ) * 60 + COUNT( * ) * ( + COALESCE ( 81, 68 + - 31 * 9 ) ) END + MAX( ALL 59 ) / 31 * + 64 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9750
SELECT 0 + CASE 16 WHEN + 0 THEN - 51 + - 76 WHEN COUNT ( * ) THEN + ( 45 ) * 60 + COUNT ( * ) * ( + COALESCE ( 81, 68 + - 31 * 9 ) ) END + MAX ( ALL 59 ) / 31 * + 64 col0
----
NULL

query II rowsort
SELECT 45 - - 33 AS col0, 9 AS col0
----
78
9

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9752
SELECT CAST( NULL AS DECIMAL ) * + COUNT( ALL - 42 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9752
SELECT CAST ( NULL AS REAL ) * + COUNT ( ALL - 42 ) AS col2
----
NULL

query I rowsort
SELECT 51 * - + 19
----
-969

onlyif mysql # aggregate syntax: 
query II rowsort label-9754
SELECT - 49 AS col1, CASE - MIN( ALL - 75 ) WHEN 85 THEN - 7 END
----
-49
NULL

skipif mysql # not compatible
query II rowsort label-9754
SELECT - 49 AS col1, CASE - MIN ( ALL - 75 ) WHEN 85 THEN - 7 END
----
-49
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9755
SELECT 51 * - COUNT( * ) * + - COUNT( * ) AS col0
----
51

skipif mysql # not compatible
query I rowsort label-9755
SELECT 51 * - COUNT ( * ) * + - COUNT ( * ) AS col0
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9756
SELECT ALL + 46 + + 80 / - + CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9756
SELECT ALL + 46 + + 80 / - + CAST ( NULL AS INTEGER ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9757
SELECT DISTINCT - ( - 7 ) + + 28 * SUM( - ( + - 9 ) ) AS col0
----
259

skipif mysql # not compatible
query I rowsort label-9757
SELECT DISTINCT - ( - 7 ) + + 28 * SUM ( - ( + - 9 ) ) AS col0
----
259

query II rowsort
SELECT 25, + 36 * - 81 col1
----
25
-2916

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9759
SELECT 31 + 12 + COUNT( DISTINCT + CAST( NULL AS SIGNED ) ) * 40 AS col2
----
43

skipif mysql # not compatible
query I rowsort label-9759
SELECT 31 + 12 + COUNT ( DISTINCT + CAST ( NULL AS INTEGER ) ) * 40 AS col2
----
43

query I rowsort
SELECT 67 - - 14
----
81

query I rowsort
SELECT ALL - 74 * + 44
----
-3256

query I rowsort
SELECT ALL + 19 * 64 * - + 34 AS col1
----
-41344

onlyif mysql # aggregate syntax: 
query I rowsort label-9763
SELECT 41 + 65 * + 43 * COUNT( * ) AS col0
----
2836

skipif mysql # not compatible
query I rowsort label-9763
SELECT 41 + 65 * + 43 * COUNT ( * ) AS col0
----
2836

query I rowsort
SELECT 76 * - 0 / + + 98 / AVG ( ALL + CASE - 7 WHEN ( 13 ) THEN 13 END )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9765
SELECT 20 DIV + 55 + - + 19 + - 94
----
-113

skipif mysql # not compatible
query I rowsort label-9765
SELECT 20 / + 55 + - + 19 + - 94
----
-113

query I rowsort
SELECT ALL - 47 + + 82 - 26 AS col2
----
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9767
SELECT COUNT( * ) DIV + 90 * - MIN( ALL - 24 ) + COUNT( * ) + - 56 + 89 * + 66 * - COUNT( * )
----
-5929

skipif mysql # not compatible
query I rowsort label-9767
SELECT COUNT ( * ) / + 90 * - MIN ( ALL - 24 ) + COUNT ( * ) + - 56 + 89 * + 66 * - COUNT ( * )
----
-5929

query I rowsort
SELECT 66 + - 64 + 4 col0
----
6

query II rowsort
SELECT ALL - + 94, + 59 + + 80 * + + ( - + 22 ) * + ( + 18 ) AS col0
----
-94
-31621

onlyif mysql # aggregate syntax: 
query II rowsort label-9770
SELECT ALL - + 12 AS col0, COUNT( * ) * 41 AS col1
----
-12
41

skipif mysql # not compatible
query II rowsort label-9770
SELECT ALL - + 12 AS col0, COUNT ( * ) * 41 AS col1
----
-12
41

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9771
SELECT DISTINCT - COUNT( * ) AS col2, + 11 DIV - 19 + 47 * - 40 * + 32 + - MAX( + 1 )
----
-1
-60161

skipif mysql # not compatible
query II rowsort label-9771
SELECT DISTINCT - COUNT ( * ) AS col2, + 11 / - 19 + 47 * - 40 * + 32 + - MAX ( + 1 )
----
-1
-60161

query I rowsort
SELECT + 96 + - 65 AS col0
----
31

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9773
SELECT + 94 AS col0, COUNT( * ) * - 13 DIV + + COUNT( DISTINCT - 31 ) AS col1
----
94
-13

skipif mysql # not compatible
query II rowsort label-9773
SELECT + 94 AS col0, COUNT ( * ) * - 13 / + + COUNT ( DISTINCT - 31 ) AS col1
----
94
-13

query II rowsort
SELECT ALL - 75 col1, 35 col2
----
-75
35

onlyif mysql # aggregate syntax: 
query I rowsort label-9775
SELECT - NULLIF ( - + 78, + 62 + + - 15 ) + - MAX( + - 58 ) + 7 col0
----
143

skipif mysql # not compatible
query I rowsort label-9775
SELECT - NULLIF ( - + 78, + 62 + + - 15 ) + - MAX ( + - 58 ) + 7 col0
----
143

query I rowsort
SELECT + 27 * + - 7 AS col2
----
-189

onlyif mysql # aggregate syntax: 
query I rowsort label-9777
SELECT DISTINCT - CASE COUNT( * ) WHEN 42 + 36 THEN + + 27 WHEN + 39 THEN 46 - - 44 WHEN + 87 THEN NULL END * - AVG ( ALL 7 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9777
SELECT DISTINCT - CASE COUNT ( * ) WHEN 42 + 36 THEN + + 27 WHEN + 39 THEN 46 - - 44 WHEN + 87 THEN NULL END * - AVG ( ALL 7 )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9778
SELECT + - 11 AS col1, + 66 * MAX( - 55 ) AS col2
----
-11
-3630

skipif mysql # not compatible
query II rowsort label-9778
SELECT + - 11 AS col1, + 66 * MAX ( - 55 ) AS col2
----
-11
-3630

onlyif mysql # aggregate syntax: 
query I rowsort label-9779
SELECT SUM( DISTINCT + ( 95 ) )
----
95

skipif mysql # not compatible
query I rowsort label-9779
SELECT SUM ( DISTINCT + ( 95 ) )
----
95

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9780
SELECT - 94 * 66 DIV + - COUNT( * ) - + 25 + + + 56 * 77
----
10491

skipif mysql # not compatible
query I rowsort label-9780
SELECT - 94 * 66 / + - COUNT ( * ) - + 25 + + + 56 * 77
----
10491

query II rowsort
SELECT 13 AS col1, 72 AS col0
----
13
72

onlyif mysql # aggregate syntax: 
query I rowsort label-9782
SELECT + COUNT( * ) * - 3 * COUNT( * ) AS col1
----
-3

skipif mysql # not compatible
query I rowsort label-9782
SELECT + COUNT ( * ) * - 3 * COUNT ( * ) AS col1
----
-3

query III rowsort
SELECT DISTINCT - + 86, 25 + 46 * + 49 AS col2, + ( 6 ) * 68 col2
----
-86
2279
408

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9784
SELECT COUNT( ALL 83 ) * - MAX( 76 ) * 25 * - 92 + COALESCE ( + 70 + - COUNT( * ) * + CAST( NULL AS SIGNED ), + 84 )
----
174884

skipif mysql # not compatible
query I rowsort label-9784
SELECT COUNT ( ALL 83 ) * - MAX ( 76 ) * 25 * - 92 + COALESCE ( + 70 + - COUNT ( * ) * + CAST ( NULL AS INTEGER ), + 84 )
----
174884

onlyif mysql # aggregate syntax: 
query I rowsort label-9785
SELECT COALESCE ( + ( COALESCE ( + 56, + MIN( + 30 ) - ( ( + NULLIF ( - COUNT( * ), + 14 / ( - 15 / + 55 ) ) ) ) ) ), COALESCE ( + 88, 84 * - 17 ) + 71 ) * 70
----
3920

skipif mysql # not compatible
query I rowsort label-9785
SELECT COALESCE ( + ( COALESCE ( + 56, + MIN ( + 30 ) - ( ( + NULLIF ( - COUNT ( * ), + 14 / ( - 15 / + 55 ) ) ) ) ) ), COALESCE ( + 88, 84 * - 17 ) + 71 ) * 70
----
3920

query I rowsort
SELECT 10 * + 36
----
360

onlyif mysql # DIV for integer division: 
query I rowsort label-9787
SELECT 16 DIV + 83 * - 24
----
0

skipif mysql # not compatible
query I rowsort label-9787
SELECT 16 / + 83 * - 24
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9788
SELECT DISTINCT 72 * CASE 42 WHEN - 55 THEN - COUNT( * ) * - 58 * + + 12 WHEN 24 THEN NULL ELSE 44 END
----
3168

skipif mysql # not compatible
query I rowsort label-9788
SELECT DISTINCT 72 * CASE 42 WHEN - 55 THEN - COUNT ( * ) * - 58 * + + 12 WHEN 24 THEN NULL ELSE 44 END
----
3168

query I rowsort
SELECT ALL 31 + + 40 * - - 35
----
1431

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9790
SELECT DISTINCT + 32 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9790
SELECT DISTINCT + 32 + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9791
SELECT ALL - 78 + + COUNT( * ) + + + COUNT( * ) * + - 8 AS col0
----
-85

skipif mysql # not compatible
query I rowsort label-9791
SELECT ALL - 78 + + COUNT ( * ) + + + COUNT ( * ) * + - 8 AS col0
----
-85

query II rowsort
SELECT DISTINCT 36 * + 14 AS col0, + 69 + 15 AS col2
----
504
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9793
SELECT ALL 71 * - NULLIF ( CAST( MIN( + + NULLIF ( + 91, + 74 + + 1 ) ) AS SIGNED ), 69 * + 61 )
----
-6461

skipif mysql # not compatible
query I rowsort label-9793
SELECT ALL 71 * - NULLIF ( CAST ( MIN ( + + NULLIF ( + 91, + 74 + + 1 ) ) AS INTEGER ), 69 * + 61 )
----
-6461

query I rowsort
SELECT DISTINCT 30 + 25
----
55

onlyif mysql # DIV for integer division: 
query I rowsort label-9795
SELECT 66 DIV 34
----
1

skipif mysql # not compatible
query I rowsort label-9795
SELECT 66 / 34
----
1

onlyif mysql # DIV for integer division: 
query II rowsort label-9796
SELECT DISTINCT - 43 DIV 31 AS col1, + 85 + + 1 * ( ( + 5 ) ) * - 17 + - 75 AS col1
----
-1
-75

skipif mysql # not compatible
query II rowsort label-9796
SELECT DISTINCT - 43 / 31 AS col1, + 85 + + 1 * ( ( + 5 ) ) * - 17 + - 75 AS col1
----
-1
-75

onlyif mysql # aggregate syntax: 
query II rowsort label-9797
SELECT ALL MIN( + 77 ) AS col0, 10 AS col2
----
77
10

skipif mysql # not compatible
query II rowsort label-9797
SELECT ALL MIN ( + 77 ) AS col0, 10 AS col2
----
77
10

onlyif mysql # aggregate syntax: 
query I rowsort label-9798
SELECT ALL 17 * - 27 - + 29 * - - CASE - 29 WHEN - 76 THEN COUNT( * ) WHEN - 78 - + 85 THEN + 14 + - 73 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9798
SELECT ALL 17 * - 27 - + 29 * - - CASE - 29 WHEN - 76 THEN COUNT ( * ) WHEN - 78 - + 85 THEN + 14 + - 73 ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9799
SELECT - 75 DIV - + 16 * - COUNT( * ) + COUNT( * ) + - 92 * + 80 * 20 * - 21 AS col0
----
3091197

skipif mysql # not compatible
query I rowsort label-9799
SELECT - 75 / - + 16 * - COUNT ( * ) + COUNT ( * ) + - 92 * + 80 * 20 * - 21 AS col0
----
3091197

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9800
SELECT DISTINCT - CASE 1 WHEN - MAX( DISTINCT - + 88 ) * - SUM( ALL 67 ) THEN NULL WHEN + COUNT( * ) THEN 50 ELSE 80 END DIV 64 col2
----
0

skipif mysql # not compatible
query I rowsort label-9800
SELECT DISTINCT - CASE 1 WHEN - MAX ( DISTINCT - + 88 ) * - SUM ( ALL 67 ) THEN NULL WHEN + COUNT ( * ) THEN 50 ELSE 80 END / 64 col2
----
0

query I rowsort
SELECT + NULLIF ( + 89, - 89 + - + 11 ) AS col1
----
89

onlyif mysql # DIV for integer division: 
query I rowsort label-9802
SELECT + 42 DIV 69 * ( 82 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9802
SELECT + 42 / 69 * ( 82 ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9803
SELECT SUM( ALL - 7 )
----
-7

skipif mysql # not compatible
query I rowsort label-9803
SELECT SUM ( ALL - 7 )
----
-7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9804
SELECT CAST( + + 91 AS SIGNED ) * - MIN( - 33 ) AS col1
----
3003

skipif mysql # not compatible
query I rowsort label-9804
SELECT CAST ( + + 91 AS INTEGER ) * - MIN ( - 33 ) AS col1
----
3003

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9805
SELECT - CASE - MAX( DISTINCT NULLIF ( - - CAST( 99 AS SIGNED ), + 82 ) ) WHEN + + 94 + 68 THEN NULL WHEN - MIN( DISTINCT + 68 ) THEN 57 * 49 END * - COALESCE ( - 22, - 5 * + MIN( DISTINCT 88 * 88 ), CAST( 20 AS SIGNED ) ) - COUNT( DISTINCT - 79 ) * + ( + 72 * 41 + - NULLIF ( - COUNT( * ), + COUNT( * ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9805
SELECT - CASE - MAX ( DISTINCT NULLIF ( - - CAST ( 99 AS INTEGER ), + 82 ) ) WHEN + + 94 + 68 THEN NULL WHEN - MIN ( DISTINCT + 68 ) THEN 57 * 49 END * - COALESCE ( - 22, - 5 * + MIN ( DISTINCT 88 * 88 ), CAST ( 20 AS INTEGER ) ) - COUNT ( DISTINCT - 79 ) * + ( + 72 * 41 + - NULLIF ( - COUNT ( * ), + COUNT ( * ) ) )
----
NULL

query I rowsort
SELECT ALL + - 8 col1
----
-8

query I rowsort
SELECT ALL + ( + + CASE + - 95 WHEN + 20 + - ( + 25 ) THEN - 12 ELSE NULL END )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9808
SELECT - 91 * + COUNT( * ) * CAST( NULL AS SIGNED ) AS col1, - ( + - 92 )
----
NULL
92

skipif mysql # not compatible
query II rowsort label-9808
SELECT - 91 * + COUNT ( * ) * CAST ( NULL AS INTEGER ) AS col1, - ( + - 92 )
----
NULL
92

onlyif mysql # aggregate syntax: 
query III rowsort label-9809
SELECT DISTINCT + ( - 34 ), + 74 AS col1, + - MAX( DISTINCT 86 ) AS col2
----
-34
74
-86

skipif mysql # not compatible
query III rowsort label-9809
SELECT DISTINCT + ( - 34 ), + 74 AS col1, + - MAX ( DISTINCT 86 ) AS col2
----
-34
74
-86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9810
SELECT - MAX( 2 ), - CAST( NULL AS SIGNED ) * + - CAST( NULL AS SIGNED ) AS col0
----
-2
NULL

skipif mysql # not compatible
query II rowsort label-9810
SELECT - MAX ( 2 ), - CAST ( NULL AS INTEGER ) * + - CAST ( NULL AS INTEGER ) AS col0
----
-2
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9811
SELECT 34 * + - ( COALESCE ( - COUNT( * ), + COUNT( ALL + 32 ) DIV - 26 + CAST( NULL AS SIGNED ) * - 41 ) ) * + 96 + SUM( DISTINCT - 97 - + 52 * - 24 )
----
4415

skipif mysql # not compatible
query I rowsort label-9811
SELECT 34 * + - ( COALESCE ( - COUNT ( * ), + COUNT ( ALL + 32 ) / - 26 + CAST ( NULL AS INTEGER ) * - 41 ) ) * + 96 + SUM ( DISTINCT - 97 - + 52 * - 24 )
----
4415

onlyif mysql # aggregate syntax: 
query I rowsort label-9812
SELECT - - COALESCE ( 53, + COUNT( * ) ) * - 24
----
-1272

skipif mysql # not compatible
query I rowsort label-9812
SELECT - - COALESCE ( 53, + COUNT ( * ) ) * - 24
----
-1272

query II rowsort
SELECT + + 12 + + 90 col0, - 86 + - 4 AS col1
----
102
-90

query I rowsort
SELECT DISTINCT - + 51 + + 6 col0
----
-45

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-9815
SELECT + 32 * - CAST( CAST( NULL AS SIGNED ) AS DECIMAL ) * + + 36 / - + ( - 75 ), 97 AS col1
----
NULL
97

skipif mysql # not compatible
query II rowsort label-9815
SELECT + 32 * - CAST ( CAST ( NULL AS INTEGER ) AS REAL ) * + + 36 / - + ( - 75 ), 97 AS col1
----
NULL
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9816
SELECT ALL - SUM( + 89 ) + - - ( + MIN( + 58 ) ) col0
----
-31

skipif mysql # not compatible
query I rowsort label-9816
SELECT ALL - SUM ( + 89 ) + - - ( + MIN ( + 58 ) ) col0
----
-31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9817
SELECT ALL - COUNT( * ) DIV CAST( COUNT( * ) AS SIGNED ) * - 88
----
88

skipif mysql # not compatible
query I rowsort label-9817
SELECT ALL - COUNT ( * ) / CAST ( COUNT ( * ) AS INTEGER ) * - 88
----
88

query I rowsort
SELECT DISTINCT + 64 + - 49 * + 77 col2
----
-3709

query I rowsort
SELECT DISTINCT 90 + + 84 * - + 49
----
-4026

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9820
SELECT NULLIF ( - 77, + 4 ) * - 15 - - + COALESCE ( + - CAST( + 82 AS SIGNED ), 53 ) * 62 + 36 DIV SUM( 27 )
----
-3928

skipif mysql # not compatible
query I rowsort label-9820
SELECT NULLIF ( - 77, + 4 ) * - 15 - - + COALESCE ( + - CAST ( + 82 AS INTEGER ), 53 ) * 62 + 36 / SUM ( 27 )
----
-3928

onlyif mysql # aggregate syntax: 
query II rowsort label-9821
SELECT - COUNT( * ) AS col1, + 32 - 14 AS col2
----
-1
18

skipif mysql # not compatible
query II rowsort label-9821
SELECT - COUNT ( * ) AS col1, + 32 - 14 AS col2
----
-1
18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9822
SELECT ALL ( CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9822
SELECT ALL ( CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

query I rowsort
SELECT - 1 * + + CASE + - 26 WHEN - - 52 THEN + - 30 * 6 + - - 0 WHEN 10 THEN + 14 * 78 ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT ALL 89 - + 71 col0
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-9825
SELECT - COALESCE ( + - COUNT( * ), + - 86 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9825
SELECT - COALESCE ( + - COUNT ( * ), + - 86 ) AS col2
----
1

query I rowsort
SELECT + 71 - + 25
----
46

query II rowsort
SELECT 58 AS col2, - ( + 76 ) * - - 33 AS col2
----
58
-2508

query I rowsort
SELECT ALL ( + 76 ) AS col1
----
76

query I rowsort
SELECT DISTINCT ( - 27 ) AS col0
----
-27

query I rowsort
SELECT + 6 * 80 AS col2
----
480

query I rowsort
SELECT ALL 18 * - 11 AS col2
----
-198

query I rowsort
SELECT - COALESCE ( + 3, - 17, + 68 )
----
-3

query I rowsort
SELECT - ( - ( 51 ) ) col0
----
51

query I rowsort
SELECT ALL + 45 * 20 * - 44 col2
----
-39600

query I rowsort
SELECT + - 40 + - 73
----
-113

query II rowsort
SELECT 50, + 66 * - 29 AS col0
----
50
-1914

query I rowsort
SELECT + + 65 + 88 AS col1
----
153

query I rowsort
SELECT - - 85 * 11 AS col0
----
935

onlyif mysql # DIV for integer division: 
query II rowsort label-9839
SELECT DISTINCT + 35 AS col1, 70 DIV 64 AS col1
----
35
1

skipif mysql # not compatible
query II rowsort label-9839
SELECT DISTINCT + 35 AS col1, 70 / 64 AS col1
----
35
1

query I rowsort
SELECT DISTINCT + - ( - 71 )
----
71

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9841
SELECT + MAX( + 76 ) DIV 80 + - 62
----
-62

skipif mysql # not compatible
query I rowsort label-9841
SELECT + MAX ( + 76 ) / 80 + - 62
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-9842
SELECT ALL + MIN( 85 ) AS col2
----
85

skipif mysql # not compatible
query I rowsort label-9842
SELECT ALL + MIN ( 85 ) AS col2
----
85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9843
SELECT + NULLIF ( + - 24, - 59 + + 62 - - 20 ) DIV 19 - - COALESCE ( 46, 16, COUNT( * ) + + 19 ) + + 34 * ( + COUNT( * ) )
----
79

skipif mysql # not compatible
query I rowsort label-9843
SELECT + NULLIF ( + - 24, - 59 + + 62 - - 20 ) / 19 - - COALESCE ( 46, 16, COUNT ( * ) + + 19 ) + + 34 * ( + COUNT ( * ) )
----
79

query II rowsort
SELECT + + 66, 78 + - 67 AS col0
----
66
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9845
SELECT ALL + + CASE - + 92 WHEN + 88 THEN + + CAST( - 55 AS SIGNED ) WHEN - 54 * 28 * - + 69 + 7 THEN NULL WHEN 73 THEN NULL WHEN + 96 THEN 86 WHEN MIN( ALL + 53 ) - 96 * - 21 THEN NULL END * 91 + + 74 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9845
SELECT ALL + + CASE - + 92 WHEN + 88 THEN + + CAST ( - 55 AS INTEGER ) WHEN - 54 * 28 * - + 69 + 7 THEN NULL WHEN 73 THEN NULL WHEN + 96 THEN 86 WHEN MIN ( ALL + 53 ) - 96 * - 21 THEN NULL END * 91 + + 74 AS col1
----
NULL

query II rowsort
SELECT + + 97 AS col1, + 34 * 40 + + 37 + + 62 * + 94 * + 9 col1
----
97
53849

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9847
SELECT + - 42 * + + ( + + 71 ) + 99 * + - COUNT( * ) * - 38 + + CAST( NULL AS SIGNED ) * + 29 * 97 + - CAST( + 12 AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9847
SELECT + - 42 * + + ( + + 71 ) + 99 * + - COUNT ( * ) * - 38 + + CAST ( NULL AS INTEGER ) * + 29 * 97 + - CAST ( + 12 AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9848
SELECT DISTINCT - 34 * + + COUNT( + 68 ) * - - 36 * - 71 + ( 69 )
----
86973

skipif mysql # not compatible
query I rowsort label-9848
SELECT DISTINCT - 34 * + + COUNT ( + 68 ) * - - 36 * - 71 + ( 69 )
----
86973

onlyif mysql # aggregate syntax: 
query I rowsort label-9849
SELECT ALL 26 * COUNT( * ) AS col1
----
26

skipif mysql # not compatible
query I rowsort label-9849
SELECT ALL 26 * COUNT ( * ) AS col1
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-9850
SELECT NULLIF ( 15, + 30 + CASE + 5 WHEN - 31 THEN + - 19 WHEN + MAX( - ( 69 ) ) THEN + 56 END + + 63 )
----
15

skipif mysql # not compatible
query I rowsort label-9850
SELECT NULLIF ( 15, + 30 + CASE + 5 WHEN - 31 THEN + - 19 WHEN + MAX ( - ( 69 ) ) THEN + 56 END + + 63 )
----
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9851
SELECT COALESCE ( + 70, + 7 * - + CASE - 46 WHEN - 71 THEN 73 WHEN + 3 - - 14 * - 15 THEN NULL ELSE NULL END, + COALESCE ( - MIN( ALL 94 ), COUNT( * ) ) * CAST( NULL AS SIGNED ) )
----
70

skipif mysql # not compatible
query I rowsort label-9851
SELECT COALESCE ( + 70, + 7 * - + CASE - 46 WHEN - 71 THEN 73 WHEN + 3 - - 14 * - 15 THEN NULL ELSE NULL END, + COALESCE ( - MIN ( ALL 94 ), COUNT ( * ) ) * CAST ( NULL AS INTEGER ) )
----
70

onlyif mysql # aggregate syntax: 
query II rowsort label-9852
SELECT ALL - 9 * + + 91 + + - COUNT( * ) + + COUNT( * ) AS col1, 44 * - 59
----
-819
-2596

skipif mysql # not compatible
query II rowsort label-9852
SELECT ALL - 9 * + + 91 + + - COUNT ( * ) + + COUNT ( * ) AS col1, 44 * - 59
----
-819
-2596

query I rowsort
SELECT COALESCE ( - 53, + 78 + - - 38 ) AS col1
----
-53

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9854
SELECT ALL CASE COALESCE ( + CASE + - 63 WHEN + 41 - + COUNT( * ) + - - 47 + + 64 * + 15 THEN + 57 WHEN 50 * 45 THEN - 41 + - 90 WHEN + 34 * COUNT( * ) THEN NULL END, + 73, 6 + - COUNT( * ) ) WHEN 21 THEN - 86 WHEN - CASE 45 WHEN 87 THEN NULL WHEN 77 THEN + 44 * 48 END THEN - 90 DIV + 73 + - 10 ELSE - 20 END * - ( - COUNT( * ) ) + NULLIF ( - 0, - COUNT( * ) ) AS col2
----
-20

skipif mysql # not compatible
query I rowsort label-9854
SELECT ALL CASE COALESCE ( + CASE + - 63 WHEN + 41 - + COUNT ( * ) + - - 47 + + 64 * + 15 THEN + 57 WHEN 50 * 45 THEN - 41 + - 90 WHEN + 34 * COUNT ( * ) THEN NULL END, + 73, 6 + - COUNT ( * ) ) WHEN 21 THEN - 86 WHEN - CASE 45 WHEN 87 THEN NULL WHEN 77 THEN + 44 * 48 END THEN - 90 / + 73 + - 10 ELSE - 20 END * - ( - COUNT ( * ) ) + NULLIF ( - 0, - COUNT ( * ) ) AS col2
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-9855
SELECT ALL + COUNT( DISTINCT - 35 )
----
1

skipif mysql # not compatible
query I rowsort label-9855
SELECT ALL + COUNT ( DISTINCT - 35 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9856
SELECT ( + + 66 ) * - + 28 + - - 60 + - 32 + + + COUNT( - ( + CAST( - - ( - ( 33 ) ) AS SIGNED ) ) ) DIV 19 AS col0
----
-1820

skipif mysql # not compatible
query I rowsort label-9856
SELECT ( + + 66 ) * - + 28 + - - 60 + - 32 + + + COUNT ( - ( + CAST ( - - ( - ( 33 ) ) AS INTEGER ) ) ) / 19 AS col0
----
-1820

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9857
SELECT ALL + 60 * + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9857
SELECT ALL + 60 * + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9858
SELECT DISTINCT + 42 * + MAX( - 51 )
----
-2142

skipif mysql # not compatible
query I rowsort label-9858
SELECT DISTINCT + 42 * + MAX ( - 51 )
----
-2142

query II rowsort
SELECT - 48 + + + 56, COALESCE ( + + 62, - 77 + - 85 ) + + ( 94 ) col2
----
8
156

query I rowsort
SELECT DISTINCT - 15 - 26 - - 97 AS col0
----
56

query I rowsort
SELECT ALL + 61 * - 8 * 6 AS col1
----
-2928

query I rowsort
SELECT DISTINCT + 43 * 27
----
1161

onlyif mysql # DIV for integer division: 
query I rowsort label-9863
SELECT - CASE WHEN 70 NOT IN ( + 80 ) THEN + 81 WHEN ( NULL ) >= ( + - 99 ) THEN ( COALESCE ( + 97, 44 + 82 ) ) ELSE 15 END DIV + 12
----
-6

skipif mysql # not compatible
query I rowsort label-9863
SELECT - CASE WHEN 70 NOT IN ( + 80 ) THEN + 81 WHEN ( NULL ) >= ( + - 99 ) THEN ( COALESCE ( + 97, 44 + 82 ) ) ELSE 15 END / + 12
----
-6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9864
SELECT + CAST( + ( + - SUM( ALL + NULLIF ( 59, - COALESCE ( - 73, - + 86 * 7 + 5 ) ) ) ) AS SIGNED ) * + 36
----
-2124

skipif mysql # not compatible
query I rowsort label-9864
SELECT + CAST ( + ( + - SUM ( ALL + NULLIF ( 59, - COALESCE ( - 73, - + 86 * 7 + 5 ) ) ) ) AS INTEGER ) * + 36
----
-2124

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9865
SELECT + 52 * + CAST( 15 AS SIGNED ) AS col1
----
780

skipif mysql # not compatible
query I rowsort label-9865
SELECT + 52 * + CAST ( 15 AS INTEGER ) AS col1
----
780

onlyif mysql # DIV for integer division: 
query I rowsort label-9866
SELECT ALL + 25 DIV 6
----
4

skipif mysql # not compatible
query I rowsort label-9866
SELECT ALL + 25 / 6
----
4

onlyif mysql # DIV for integer division: 
query I rowsort label-9867
SELECT - NULLIF ( 87, + 46 ) DIV 54 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-9867
SELECT - NULLIF ( 87, + 46 ) / 54 AS col2
----
-1

query I rowsort
SELECT - 28 * + 6
----
-168

query I rowsort
SELECT ALL 68 + - - NULLIF ( + + 57, 7 * 40 )
----
125

onlyif mysql # aggregate syntax: 
query I rowsort label-9870
SELECT - COALESCE ( - NULLIF ( - ( + 2 ), CASE 44 WHEN + 98 THEN 60 * COUNT( 98 ) + - 12 * 56 WHEN 67 * ( 56 * + 74 ) THEN - COALESCE ( ( 25 ), COUNT( * ) * + COUNT( * ) ) * 2 ELSE NULL END ), - 12 + 37 ) AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-9870
SELECT - COALESCE ( - NULLIF ( - ( + 2 ), CASE 44 WHEN + 98 THEN 60 * COUNT ( 98 ) + - 12 * 56 WHEN 67 * ( 56 * + 74 ) THEN - COALESCE ( ( 25 ), COUNT ( * ) * + COUNT ( * ) ) * 2 ELSE NULL END ), - 12 + 37 ) AS col2
----
-2

query I rowsort
SELECT DISTINCT 86 + + ( - 0 ) + + + 95 AS col2
----
181

onlyif mysql # aggregate syntax: 
query I rowsort label-9872
SELECT DISTINCT COUNT( * ) + + 60 + - + 61 * - - COALESCE ( + 33, CASE 89 WHEN 36 THEN NULL ELSE + 17 END + ( 86 ) )
----
-1952

skipif mysql # not compatible
query I rowsort label-9872
SELECT DISTINCT COUNT ( * ) + + 60 + - + 61 * - - COALESCE ( + 33, CASE 89 WHEN 36 THEN NULL ELSE + 17 END + ( 86 ) )
----
-1952

onlyif mysql # aggregate syntax: 
query I rowsort label-9873
SELECT + + ( - NULLIF ( - ( + 80 ), - + 78 + + - 20 + + + COUNT( DISTINCT + 73 ) * - - 3 - + 27 ) )
----
80

skipif mysql # not compatible
query I rowsort label-9873
SELECT + + ( - NULLIF ( - ( + 80 ), - + 78 + + - 20 + + + COUNT ( DISTINCT + 73 ) * - - 3 - + 27 ) )
----
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9874
SELECT DISTINCT - COUNT( * ) + - 97 * - - CAST( NULL AS SIGNED ) * 50 + 4 * + - 23 * - 97 col2, ( - ( 56 ) ) * MIN( + 12 ) col2
----
NULL
-672

skipif mysql # not compatible
query II rowsort label-9874
SELECT DISTINCT - COUNT ( * ) + - 97 * - - CAST ( NULL AS INTEGER ) * 50 + 4 * + - 23 * - 97 col2, ( - ( 56 ) ) * MIN ( + 12 ) col2
----
NULL
-672

query I rowsort
SELECT - 31 * - 28 AS col0
----
868

onlyif mysql # aggregate syntax: 
query I rowsort label-9876
SELECT ALL 70 + + 21 - + - 94 + + COUNT( * ) * - 40
----
145

skipif mysql # not compatible
query I rowsort label-9876
SELECT ALL 70 + + 21 - + - 94 + + COUNT ( * ) * - 40
----
145

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9877
SELECT ALL 97 + - 79 col2, + CAST( - 59 AS SIGNED )
----
18
-59

skipif mysql # not compatible
query II rowsort label-9877
SELECT ALL 97 + - 79 col2, + CAST ( - 59 AS INTEGER )
----
18
-59

query I rowsort
SELECT DISTINCT + 46 + - 64 AS col2
----
-18

query I rowsort
SELECT - 88 * 56 + + 17 AS col2
----
-4911

onlyif mysql # aggregate syntax: 
query II rowsort label-9880
SELECT 61 * + - COUNT( 48 ) AS col0, COUNT( * ) + COALESCE ( + + 38, - SUM( ( - 40 ) ) )
----
-61
39

skipif mysql # not compatible
query II rowsort label-9880
SELECT 61 * + - COUNT ( 48 ) AS col0, COUNT ( * ) + COALESCE ( + + 38, - SUM ( ( - 40 ) ) )
----
-61
39

query I rowsort
SELECT 64 * + 41 + - 31 + - 80 + 34 + + + 31 + 82 + - 96 AS col1
----
2564

onlyif mysql # aggregate syntax: 
query II rowsort label-9882
SELECT 70 - SUM( DISTINCT - 56 ) col2, 36
----
126
36

skipif mysql # not compatible
query II rowsort label-9882
SELECT 70 - SUM ( DISTINCT - 56 ) col2, 36
----
126
36

query I rowsort
SELECT 77 + 89 AS col2
----
166

onlyif mysql # aggregate syntax: 
query I rowsort label-9884
SELECT + 12 * - NULLIF ( + CASE + 79 WHEN COUNT( * ) * - + 16 / - 44 THEN 64 * + 24 WHEN - + NULLIF ( - 45, + 42 ) THEN MAX( + 80 ) WHEN + COALESCE ( - 6, - 23 + 60 * 86 ) THEN + MAX( 59 ) * 71 END, 33 ) - + 45 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9884
SELECT + 12 * - NULLIF ( + CASE + 79 WHEN COUNT ( * ) * - + 16 / - 44 THEN 64 * + 24 WHEN - + NULLIF ( - 45, + 42 ) THEN MAX ( + 80 ) WHEN + COALESCE ( - 6, - 23 + 60 * 86 ) THEN + MAX ( 59 ) * 71 END, 33 ) - + 45 AS col0
----
NULL

query I rowsort
SELECT ALL + 28 * 58 AS col0
----
1624

query I rowsort
SELECT 86 * + 13 AS col0
----
1118

query I rowsort
SELECT DISTINCT 78 - - 23 * - ( + 80 ) AS col0
----
-1762

query I rowsort
SELECT DISTINCT 54 * + 99
----
5346

query I rowsort
SELECT DISTINCT 71 * - - 12 AS col2
----
852

onlyif mysql # aggregate syntax: 
query II rowsort label-9890
SELECT 86 * COUNT( - 10 ) AS col2, 78 + - 5 + - + COUNT( * ) - + - 72 + - COUNT( * ) * + + 78
----
86
66

skipif mysql # not compatible
query II rowsort label-9890
SELECT 86 * COUNT ( - 10 ) AS col2, 78 + - 5 + - + COUNT ( * ) - + - 72 + - COUNT ( * ) * + + 78
----
86
66

query II rowsort
SELECT 26, - 43 - 74 AS col1
----
26
-117

onlyif mysql # aggregate syntax: 
query I rowsort label-9892
SELECT 66 + + ( + - COALESCE ( - - SUM( + 71 ), + - COUNT( * ), + ( - - 46 ) ) ) + + COUNT( * ) - 67 * 43 * + 81
----
-233365

skipif mysql # not compatible
query I rowsort label-9892
SELECT 66 + + ( + - COALESCE ( - - SUM ( + 71 ), + - COUNT ( * ), + ( - - 46 ) ) ) + + COUNT ( * ) - 67 * 43 * + 81
----
-233365

query I rowsort
SELECT 75 * + 75 col1
----
5625

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9894
SELECT AVG ( - CAST( NULL AS SIGNED ) ) - 88, + 26 AS col0
----
NULL
26

skipif mysql # not compatible
query II rowsort label-9894
SELECT AVG ( - CAST ( NULL AS INTEGER ) ) - 88, + 26 AS col0
----
NULL
26

query I rowsort
SELECT DISTINCT + 35 + 99 + + - 55 AS col2
----
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9896
SELECT ALL CASE - - 38 WHEN 60 + CAST( - 36 AS SIGNED ) THEN NULL WHEN 75 THEN 36 END + + 56
----
NULL

skipif mysql # not compatible
query I rowsort label-9896
SELECT ALL CASE - - 38 WHEN 60 + CAST ( - 36 AS INTEGER ) THEN NULL WHEN 75 THEN 36 END + + 56
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9897
SELECT ALL + CAST( 88 AS SIGNED ) AS col1
----
88

skipif mysql # not compatible
query I rowsort label-9897
SELECT ALL + CAST ( 88 AS INTEGER ) AS col1
----
88

onlyif mysql # DIV for integer division: 
query I rowsort label-9898
SELECT 24 DIV - 60 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9898
SELECT 24 / - 60 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9899
SELECT CASE 51 WHEN - + CASE 50 WHEN 91 THEN NULL WHEN + COUNT( * ) + + 71 THEN + CASE - 47 WHEN + - 24 THEN 83 / 38 WHEN + 1 + COUNT( * ) THEN NULL END - - ( + 36 ) ELSE NULL END THEN 92 ELSE 83 END
----
83

skipif mysql # not compatible
query I rowsort label-9899
SELECT CASE 51 WHEN - + CASE 50 WHEN 91 THEN NULL WHEN + COUNT ( * ) + + 71 THEN + CASE - 47 WHEN + - 24 THEN 83 / 38 WHEN + 1 + COUNT ( * ) THEN NULL END - - ( + 36 ) ELSE NULL END THEN 92 ELSE 83 END
----
83

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9900
SELECT - NULLIF ( - - 55, COUNT( * ) ) + - + 77 - 48 * + + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-9900
SELECT - NULLIF ( - - 55, COUNT ( * ) ) + - + 77 - 48 * + + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9901
SELECT - 71 - + MAX( ALL + + 38 ) col0
----
-109

skipif mysql # not compatible
query I rowsort label-9901
SELECT - 71 - + MAX ( ALL + + 38 ) col0
----
-109

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9902
SELECT 3 + + - CASE - 63 WHEN + COALESCE ( COUNT( * ), - 46 * COALESCE ( + - 20, - CASE - - 46 WHEN 15 THEN NULL ELSE 40 + ( COUNT( 93 ) ) END ) * 24 - 57 / + ( + 61 * ( + 8 ) - 49 ), CAST( NULL AS SIGNED ) * 89 + 28 ) THEN - 60 WHEN - 99 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9902
SELECT 3 + + - CASE - 63 WHEN + COALESCE ( COUNT ( * ), - 46 * COALESCE ( + - 20, - CASE - - 46 WHEN 15 THEN NULL ELSE 40 + ( COUNT ( 93 ) ) END ) * 24 - 57 / + ( + 61 * ( + 8 ) - 49 ), CAST ( NULL AS INTEGER ) * 89 + 28 ) THEN - 60 WHEN - 99 THEN NULL END
----
NULL

query I rowsort
SELECT - 85 - + 64
----
-149

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9904
SELECT 35 AS col2, + 85 * - 85 DIV + + MAX( DISTINCT 1 ) AS col1
----
35
-7225

skipif mysql # not compatible
query II rowsort label-9904
SELECT 35 AS col2, + 85 * - 85 / + + MAX ( DISTINCT 1 ) AS col1
----
35
-7225

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9905
SELECT COUNT( DISTINCT 98 ) * + - 41 DIV - NULLIF ( + 82, 14 + + COUNT( * ) ) + - - 69 AS col0
----
69

skipif mysql # not compatible
query I rowsort label-9905
SELECT COUNT ( DISTINCT 98 ) * + - 41 / - NULLIF ( + 82, 14 + + COUNT ( * ) ) + - - 69 AS col0
----
69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9906
SELECT DISTINCT - 8 + - + CASE - 25 WHEN + 20 * - 71 + - 82 THEN NULL WHEN 69 THEN + + 87 ELSE 86 + - COALESCE ( CAST( NULL AS SIGNED ), 97 * 90 ) + - 35 * - ( - 61 ) * 70 END
----
158086

skipif mysql # not compatible
query I rowsort label-9906
SELECT DISTINCT - 8 + - + CASE - 25 WHEN + 20 * - 71 + - 82 THEN NULL WHEN 69 THEN + + 87 ELSE 86 + - COALESCE ( CAST ( NULL AS INTEGER ), 97 * 90 ) + - 35 * - ( - 61 ) * 70 END
----
158086

query I rowsort
SELECT ALL - ( - 12 ) + - 78 * + - 88 - 39 col0
----
6837

query I rowsort
SELECT ALL 4 * + ( - + COALESCE ( 71, - 86 + 4, + 14 ) ) - - + COALESCE ( + - 32, + 94 ) AS col0
----
-316

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9909
SELECT + 33 col0, - CAST( NULL AS SIGNED ) * - CAST( NULL AS SIGNED )
----
33
NULL

skipif mysql # not compatible
query II rowsort label-9909
SELECT + 33 col0, - CAST ( NULL AS INTEGER ) * - CAST ( NULL AS INTEGER )
----
33
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9910
SELECT DISTINCT 14 - - COUNT( * ) AS col2
----
15

skipif mysql # not compatible
query I rowsort label-9910
SELECT DISTINCT 14 - - COUNT ( * ) AS col2
----
15

query II rowsort
SELECT ALL 73 * - + 91 col2, + 0 + 36 - + 22 * - 75 * + ( + 25 ) AS col2
----
-6643
41286

onlyif mysql # aggregate syntax: 
query I rowsort label-9912
SELECT + SUM( DISTINCT - 48 ) AS col1
----
-48

skipif mysql # not compatible
query I rowsort label-9912
SELECT + SUM ( DISTINCT - 48 ) AS col1
----
-48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9913
SELECT MIN( 63 ) + + 36 + ( - 0 ) * 17 * + 8 * - - 58 - + - 45 DIV - - 57 * + + 94 - 8 AS col0
----
91

skipif mysql # not compatible
query I rowsort label-9913
SELECT MIN ( 63 ) + + 36 + ( - 0 ) * 17 * + 8 * - - 58 - + - 45 / - - 57 * + + 94 - 8 AS col0
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-9914
SELECT MIN( DISTINCT 8 )
----
8

skipif mysql # not compatible
query I rowsort label-9914
SELECT MIN ( DISTINCT 8 )
----
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9915
SELECT + 46 * COALESCE ( + - 19, + + COUNT( * ) ) + + + 99 * - 89 AS col0, + 69 * CASE 3 WHEN - CAST( NULL AS SIGNED ) THEN + - COUNT( * ) - 29 * + 33 END + SUM( ALL + 86 ) / 75
----
-9685
NULL

skipif mysql # not compatible
query II rowsort label-9915
SELECT + 46 * COALESCE ( + - 19, + + COUNT ( * ) ) + + + 99 * - 89 AS col0, + 69 * CASE 3 WHEN - CAST ( NULL AS INTEGER ) THEN + - COUNT ( * ) - 29 * + 33 END + SUM ( ALL + 86 ) / 75
----
-9685
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9916
SELECT DISTINCT - CAST( NULL AS SIGNED ) - + 95 + - - 35 + - - 86 * 82 - + 30 * + - 54 + 83 + - + 54 - - - 51 + - 75 + 48 * + COUNT( * ) * COUNT( * ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9916
SELECT DISTINCT - CAST ( NULL AS INTEGER ) - + 95 + - - 35 + - - 86 * 82 - + 30 * + - 54 + 83 + - + 54 - - - 51 + - 75 + 48 * + COUNT ( * ) * COUNT ( * ) col0
----
NULL

query II rowsort
SELECT DISTINCT - 8 AS col1, 33 + 49 * - + 43 + - 38
----
-8
-2112

onlyif mysql # aggregate syntax: 
query II rowsort label-9918
SELECT + COUNT( * ) col2, + COUNT( * )
----
1
1

skipif mysql # not compatible
query II rowsort label-9918
SELECT + COUNT ( * ) col2, + COUNT ( * )
----
1
1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9919
SELECT ALL - CASE CAST( COUNT( * ) AS DECIMAL ) WHEN + CASE ( - - 63 ) WHEN - - COALESCE ( 15, - 15, - 70 + + ( 48 ) + CASE + 70 + + 26 WHEN 97 + COALESCE ( 54 + - 82, ( + 38 ), - 55 ) THEN 3 * MAX( ALL - 41 ) WHEN 17 THEN NULL END * 91 ) + + 41 THEN - 32 ELSE NULL END THEN + AVG ( 98 ) - - 45 WHEN + 38 * 92 THEN 10 * + 31 ELSE NULL END * 24
----
NULL

skipif mysql # not compatible
query I rowsort label-9919
SELECT ALL - CASE CAST ( COUNT ( * ) AS REAL ) WHEN + CASE ( - - 63 ) WHEN - - COALESCE ( 15, - 15, - 70 + + ( 48 ) + CASE + 70 + + 26 WHEN 97 + COALESCE ( 54 + - 82, ( + 38 ), - 55 ) THEN 3 * MAX ( ALL - 41 ) WHEN 17 THEN NULL END * 91 ) + + 41 THEN - 32 ELSE NULL END THEN + AVG ( 98 ) - - 45 WHEN + 38 * 92 THEN 10 * + 31 ELSE NULL END * 24
----
NULL

query I rowsort
SELECT 86 * 3
----
258

onlyif mysql # DIV for integer division: 
query II rowsort label-9921
SELECT ALL - 24 AS col0, 71 DIV 15 AS col0
----
-24
4

skipif mysql # not compatible
query II rowsort label-9921
SELECT ALL - 24 AS col0, 71 / 15 AS col0
----
-24
4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9922
SELECT 1 + - 90 DIV - + NULLIF ( + COALESCE ( + - 62, + COUNT( * ) ), + - 18 ) - - + 66 * - - 31
----
2046

skipif mysql # not compatible
query I rowsort label-9922
SELECT 1 + - 90 / - + NULLIF ( + COALESCE ( + - 62, + COUNT ( * ) ), + - 18 ) - - + 66 * - - 31
----
2046

query I rowsort
SELECT ALL 59 * - 93 AS col2
----
-5487

query I rowsort
SELECT 76 / + + CASE - - 94 WHEN 41 THEN - 36 / - - 59 END * + 46 * + + 73 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9925
SELECT 25 * - 13 + + CAST( - 2 AS SIGNED ) * - + ( - 0 ) AS col2
----
-325

skipif mysql # not compatible
query I rowsort label-9925
SELECT 25 * - 13 + + CAST ( - 2 AS INTEGER ) * - + ( - 0 ) AS col2
----
-325

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9926
SELECT ( + SUM( ALL + 44 ) ) * - 93 * + COUNT( * ) - - ( - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9926
SELECT ( + SUM ( ALL + 44 ) ) * - 93 * + COUNT ( * ) - - ( - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9927
SELECT ALL + COUNT( * ) + - 46 + 62 - COUNT( * ) DIV - 82
----
17

skipif mysql # not compatible
query I rowsort label-9927
SELECT ALL + COUNT ( * ) + - 46 + 62 - COUNT ( * ) / - 82
----
17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9928
SELECT + CAST( - + 15 AS SIGNED ) + + ( + 33 ) + - + 11 + + 95 * - + 97
----
-9208

skipif mysql # not compatible
query I rowsort label-9928
SELECT + CAST ( - + 15 AS INTEGER ) + + ( + 33 ) + - + 11 + + 95 * - + 97
----
-9208

query I rowsort
SELECT ALL - 97 * 86
----
-8342

query I rowsort
SELECT + 6 + + - 66 col1
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-9931
SELECT + + 28 - + COUNT( * ) col2
----
27

skipif mysql # not compatible
query I rowsort label-9931
SELECT + + 28 - + COUNT ( * ) col2
----
27

query I rowsort
SELECT ALL + NULLIF ( - + ( 73 ), - - 10 ) * + - 20 AS col0
----
1460

query I rowsort
SELECT DISTINCT - ( - + 14 ) + + 73 + 91 * - 39 - - - 8 + 76
----
-3394

query I rowsort
SELECT ALL 89 + + 82
----
171

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9935
SELECT - - COUNT( * ) + 78 - 73 * 58 / SUM( DISTINCT - 86 ) + - 21 - CAST( NULL AS SIGNED ) * - - 55 / - 48 + 85 * + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-9935
SELECT - - COUNT ( * ) + 78 - 73 * 58 / SUM ( DISTINCT - 86 ) + - 21 - CAST ( NULL AS INTEGER ) * - - 55 / - 48 + 85 * + COUNT ( * )
----
NULL

query I rowsort
SELECT ALL - - 17 + - - 57 AS col1
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-9937
SELECT - + 71 + - COUNT( * ) * 27 AS col2
----
-98

skipif mysql # not compatible
query I rowsort label-9937
SELECT - + 71 + - COUNT ( * ) * 27 AS col2
----
-98

query I rowsort
SELECT ( 44 ) col2
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-9939
SELECT - - CASE + + 5 WHEN - - COALESCE ( + ( - 1 ), - - 55 * - COUNT( * ), + 59 ) THEN 66 * + ( - 0 ) / NULLIF ( - 97 + MAX( 22 ), 41 ) + 52 WHEN - 78 THEN 6 ELSE NULL END + 24
----
NULL

skipif mysql # not compatible
query I rowsort label-9939
SELECT - - CASE + + 5 WHEN - - COALESCE ( + ( - 1 ), - - 55 * - COUNT ( * ), + 59 ) THEN 66 * + ( - 0 ) / NULLIF ( - 97 + MAX ( 22 ), 41 ) + 52 WHEN - 78 THEN 6 ELSE NULL END + 24
----
NULL

query I rowsort
SELECT - + 85 * - 43 col2
----
3655

query II rowsort
SELECT - CASE 31 WHEN - - 94 THEN - + 5 - 95 ELSE + 57 END col2, + 48 AS col0
----
-57
48

query II rowsort
SELECT ALL 38 col0, - 24 AS col2
----
38
-24

onlyif mysql # aggregate syntax: 
query II rowsort label-9943
SELECT 12 AS col1, COUNT( * ) - 31
----
12
-30

skipif mysql # not compatible
query II rowsort label-9943
SELECT 12 AS col1, COUNT ( * ) - 31
----
12
-30

query I rowsort
SELECT ALL - + 50 - 53 AS col2
----
-103

onlyif mysql # aggregate syntax: 
query I rowsort label-9945
SELECT - - 29 * + COUNT( * ) - + 88 + 63
----
4

skipif mysql # not compatible
query I rowsort label-9945
SELECT - - 29 * + COUNT ( * ) - + 88 + 63
----
4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9946
SELECT - 66 DIV 24 - COUNT( * )
----
-3

skipif mysql # not compatible
query I rowsort label-9946
SELECT - 66 / 24 - COUNT ( * )
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9947
SELECT + COUNT( + ( - 7 ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9947
SELECT + COUNT ( + ( - 7 ) ) AS col0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9948
SELECT - CASE - 90 WHEN + COALESCE ( 85, + - 76 + 70 ) THEN + + 71 + + 16 * 57 - + 99 END * - ( + - CAST( 43 AS SIGNED ) ) * + 52 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9948
SELECT - CASE - 90 WHEN + COALESCE ( 85, + - 76 + 70 ) THEN + + 71 + + 16 * 57 - + 99 END * - ( + - CAST ( 43 AS INTEGER ) ) * + 52 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9949
SELECT ALL 25 DIV ( + COUNT( * ) )
----
25

skipif mysql # not compatible
query I rowsort label-9949
SELECT ALL 25 / ( + COUNT ( * ) )
----
25

onlyif mysql # DIV for integer division: 
query I rowsort label-9950
SELECT 65 * - ( + COALESCE ( - 15, - 39 - - 91 + - 52 + 90 DIV + 26, - - 99, 33 ) ) - 93
----
882

skipif mysql # not compatible
query I rowsort label-9950
SELECT 65 * - ( + COALESCE ( - 15, - 39 - - 91 + - 52 + 90 / + 26, - - 99, 33 ) ) - 93
----
882

onlyif mysql # aggregate syntax: 
query I rowsort label-9951
SELECT ALL + MAX( + 1 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9951
SELECT ALL + MAX ( + 1 ) AS col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9952
SELECT - CAST( NULL AS SIGNED ) * - NULLIF ( + 20, - + 88 * + 61 ), + 22 * ( - CASE + 67 WHEN + NULLIF ( - COUNT( * ), - 3 ) + 53 THEN 28 * 44 END ) + - 77 AS col0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-9952
SELECT - CAST ( NULL AS INTEGER ) * - NULLIF ( + 20, - + 88 * + 61 ), + 22 * ( - CASE + 67 WHEN + NULLIF ( - COUNT ( * ), - 3 ) + 53 THEN 28 * 44 END ) + - 77 AS col0
----
NULL
NULL

query I rowsort
SELECT NULLIF ( + ( - 19 ), 82 + + + 83 ) * + 40 + + 55
----
-705

query I rowsort
SELECT CASE 70 WHEN 37 - - 99 + 47 * + - 49 THEN 30 WHEN + - ( 27 ) THEN NULL ELSE NULLIF ( - 80, 75 * 49 ) END
----
-80

query I rowsort
SELECT - 89 * + - 88
----
7832

query I rowsort
SELECT - 60 * + 99 - + + 8 AS col2
----
-5948

onlyif mysql # aggregate syntax: 
query I rowsort label-9957
SELECT + SUM( ALL - + 29 )
----
-29

skipif mysql # not compatible
query I rowsort label-9957
SELECT + SUM ( ALL - + 29 )
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-9958
SELECT CASE 28 WHEN - 14 THEN + + COUNT( * ) WHEN + 50 + - - 38 THEN - - 5 - + - 5 WHEN + 15 / 1 * 35 * + AVG ( - 18 ) + - 2 * + 13 THEN NULL ELSE 19 + 77 END AS col0
----
96

skipif mysql # not compatible
query I rowsort label-9958
SELECT CASE 28 WHEN - 14 THEN + + COUNT ( * ) WHEN + 50 + - - 38 THEN - - 5 - + - 5 WHEN + 15 / 1 * 35 * + AVG ( - 18 ) + - 2 * + 13 THEN NULL ELSE 19 + 77 END AS col0
----
96

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9959
SELECT 39 * - 99 - + 73 AS col1, COUNT( * ) * + + COUNT( * ) * + SUM( + 24 ) DIV 80 + + - 10 DIV + 76 col0
----
-3934
0

skipif mysql # not compatible
query II rowsort label-9959
SELECT 39 * - 99 - + 73 AS col1, COUNT ( * ) * + + COUNT ( * ) * + SUM ( + 24 ) / 80 + + - 10 / + 76 col0
----
-3934
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9960
SELECT + 47 * NULLIF ( - 70, + CAST( NULL AS SIGNED ) ) AS col1
----
-3290

skipif mysql # not compatible
query I rowsort label-9960
SELECT + 47 * NULLIF ( - 70, + CAST ( NULL AS INTEGER ) ) AS col1
----
-3290

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9961
SELECT ALL + 52 * - + COUNT( NULLIF ( - CAST( - CAST( - 71 AS SIGNED ) AS SIGNED ), + - 99 ) ) DIV 57 + - - 72
----
72

skipif mysql # not compatible
query I rowsort label-9961
SELECT ALL + 52 * - + COUNT ( NULLIF ( - CAST ( - CAST ( - 71 AS INTEGER ) AS INTEGER ), + - 99 ) ) / 57 + - - 72
----
72

onlyif mysql # aggregate syntax: 
query II rowsort label-9962
SELECT SUM( ALL 83 ) AS col0, 61 * - + 22 AS col0
----
83
-1342

skipif mysql # not compatible
query II rowsort label-9962
SELECT SUM ( ALL 83 ) AS col0, 61 * - + 22 AS col0
----
83
-1342

query I rowsort
SELECT DISTINCT 78 * 69 + 79 * + 75
----
11307

query I rowsort
SELECT DISTINCT - COALESCE ( - - 0, - 29 ) col2
----
0

query I rowsort
SELECT ALL + 69 * - + 14 + 11 AS col0
----
-955

onlyif mysql # aggregate syntax: 
query I rowsort label-9966
SELECT + COUNT( - - 88 ) * + 38 + + + 16 * - NULLIF ( + 74, - 48 ) * + 10 * - 21 / - 83 - + 36 + 81 + CASE - 8 + - 89 * 50 WHEN + 62 / - 3 THEN 45 END / 52
----
NULL

skipif mysql # not compatible
query I rowsort label-9966
SELECT + COUNT ( - - 88 ) * + 38 + + + 16 * - NULLIF ( + 74, - 48 ) * + 10 * - 21 / - 83 - + 36 + 81 + CASE - 8 + - 89 * 50 WHEN + 62 / - 3 THEN 45 END / 52
----
NULL

query I rowsort
SELECT + + ( + - 44 ) + + 98 AS col2
----
54

query I rowsort
SELECT DISTINCT 18 * + - 32 AS col2
----
-576

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9969
SELECT + + CAST( NULL AS SIGNED ) * - 46 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9969
SELECT + + CAST ( NULL AS INTEGER ) * - 46 AS col2
----
NULL

query I rowsort
SELECT ALL 36 * + 39
----
1404

query I rowsort
SELECT + 6 - + 87
----
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9972
SELECT DISTINCT + CAST( - 45 AS SIGNED ) * 83 + + 91
----
-3644

skipif mysql # not compatible
query I rowsort label-9972
SELECT DISTINCT + CAST ( - 45 AS INTEGER ) * 83 + + 91
----
-3644

onlyif mysql # aggregate syntax: 
query I rowsort label-9973
SELECT DISTINCT COUNT( * ) * - 65 * 31 AS col1
----
-2015

skipif mysql # not compatible
query I rowsort label-9973
SELECT DISTINCT COUNT ( * ) * - 65 * 31 AS col1
----
-2015

onlyif mysql # aggregate syntax: 
query I rowsort label-9974
SELECT - - CASE + 68 WHEN - 6 THEN 4 END - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-9974
SELECT - - CASE + 68 WHEN - 6 THEN 4 END - COUNT ( * )
----
NULL

query I rowsort
SELECT + - 4 + - 57 AS col0
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-9976
SELECT COALESCE ( + - 84, - ( - COUNT( * ) ) * 17 * 27 + + COUNT( * ) ) AS col2
----
-84

skipif mysql # not compatible
query I rowsort label-9976
SELECT COALESCE ( + - 84, - ( - COUNT ( * ) ) * 17 * 27 + + COUNT ( * ) ) AS col2
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-9977
SELECT + + 29 + + COUNT( * ) + + - 58 + - + 34 AS col2
----
-62

skipif mysql # not compatible
query I rowsort label-9977
SELECT + + 29 + + COUNT ( * ) + + - 58 + - + 34 AS col2
----
-62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9978
SELECT - - ( 55 ) + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9978
SELECT - - ( 55 ) + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - 61 * - 28
----
1708

query I rowsort
SELECT ALL + ( + - ( + 53 ) )
----
-53

query I rowsort
SELECT - NULLIF ( - 63, - - 40 * - 7 ) + + ( + + 48 ) AS col0
----
111

onlyif mysql # aggregate syntax: 
query I rowsort label-9982
SELECT ALL + MAX( ALL + ( - 50 ) ) col2
----
-50

skipif mysql # not compatible
query I rowsort label-9982
SELECT ALL + MAX ( ALL + ( - 50 ) ) col2
----
-50

query I rowsort
SELECT ALL - 97 * + + 43
----
-4171

onlyif mysql # aggregate syntax: 
query I rowsort label-9984
SELECT - COUNT( * ) * + 71
----
-71

skipif mysql # not compatible
query I rowsort label-9984
SELECT - COUNT ( * ) * + 71
----
-71

query I rowsort
SELECT DISTINCT - 24 * + 78
----
-1872

query I rowsort
SELECT DISTINCT - 15 * + 68
----
-1020

onlyif mysql # DIV for integer division: 
query I rowsort label-9987
SELECT NULLIF ( + 56, - + 54 ) DIV - 10 + - - 58
----
53

skipif mysql # not compatible
query I rowsort label-9987
SELECT NULLIF ( + 56, - + 54 ) / - 10 + - - 58
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-9988
SELECT + COUNT( ALL 46 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9988
SELECT + COUNT ( ALL 46 ) AS col1
----
1

query I rowsort
SELECT ALL + 98 * + 49 AS col1
----
4802

query I rowsort
SELECT - 54 + - 72 + + 36 + - + 78 * + + 43 * 58
----
-194622

onlyif mysql # aggregate syntax: 
query I rowsort label-9991
SELECT - NULLIF ( - 24, + - ( - COUNT( * ) ) ) * + - 95 * + 71 - + - 52 col2
----
-161828

skipif mysql # not compatible
query I rowsort label-9991
SELECT - NULLIF ( - 24, + - ( - COUNT ( * ) ) ) * + - 95 * + 71 - + - 52 col2
----
-161828

query II rowsort
SELECT + 63 AS col0, 80
----
63
80

onlyif mysql # aggregate syntax: 
query I rowsort label-9993
SELECT ALL - 7 + + 12 + + COUNT( * ) AS col2
----
6

skipif mysql # not compatible
query I rowsort label-9993
SELECT ALL - 7 + + 12 + + COUNT ( * ) AS col2
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-9994
SELECT DISTINCT + 80 + - - COUNT( * ) - + - 92
----
173

skipif mysql # not compatible
query I rowsort label-9994
SELECT DISTINCT + 80 + - - COUNT ( * ) - + - 92
----
173

onlyif mysql # aggregate syntax: 
query I rowsort label-9995
SELECT DISTINCT - 26 + - 3 * MAX( DISTINCT - 45 ) + - 6 * + 13 + 1 AS col1
----
32

skipif mysql # not compatible
query I rowsort label-9995
SELECT DISTINCT - 26 + - 3 * MAX ( DISTINCT - 45 ) + - 6 * + 13 + 1 AS col1
----
32

query I rowsort
SELECT ALL NULLIF ( - - 82, - - 9 ) * 60 AS col2
----
4920

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9997
SELECT COUNT( * ) + - 37 - 32 * - CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9997
SELECT COUNT ( * ) + - 37 - 32 * - CAST ( NULL AS REAL ) AS col2
----
NULL

query I rowsort
SELECT ALL + 62 + ( 19 ) + 9 AS col2
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-9999
SELECT ALL - COUNT( * ) + 13 AS col2
----
12

skipif mysql # not compatible
query I rowsort label-9999
SELECT ALL - COUNT ( * ) + 13 AS col2
----
12

