hash-threshold 8

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

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

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

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

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

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-0
SELECT ALL 67 + + ( + - COALESCE ( - + 66, - ( SUM( + - 4 ) ) + + COUNT( * ) * - 74 + - 92 * 17 ) ) * 49
----
3301

skipif mysql # not compatible
query I rowsort label-0
SELECT ALL 67 + + ( + - COALESCE ( - + 66, - ( SUM ( + - 4 ) ) + + COUNT ( * ) * - 74 + - 92 * 17 ) ) * 49
----
3301

query I rowsort
SELECT DISTINCT 81 + - ( 43 ) - - - 24 AS col2
----
14

query I rowsort
SELECT + 51 * - 58 + 95
----
-2863

onlyif mysql # aggregate syntax: 
query II rowsort label-3
SELECT + 20 + MAX( + 0 ) * + 4 col0, 36 * 71
----
20
2556

skipif mysql # not compatible
query II rowsort label-3
SELECT + 20 + MAX ( + 0 ) * + 4 col0, 36 * 71
----
20
2556

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

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

query I rowsort
SELECT ALL - - 53 + + - 58 col0
----
-5

query I rowsort
SELECT 18 + 68 col0
----
86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7
SELECT ALL + CAST( 65 AS SIGNED ) * + 59 + - COUNT( * ) * 9, - ( - 69 ) * 21 col0
----
3826
1449

skipif mysql # not compatible
query II rowsort label-7
SELECT ALL + CAST ( 65 AS INTEGER ) * + 59 + - COUNT ( * ) * 9, - ( - 69 ) * 21 col0
----
3826
1449

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8
SELECT DISTINCT NULLIF ( + SUM( ( ( + 5 ) ) ), + 66 + - ( + 85 ) ) DIV - - 87 + + 13 * + 47
----
611

skipif mysql # not compatible
query I rowsort label-8
SELECT DISTINCT NULLIF ( + SUM ( ( ( + 5 ) ) ), + 66 + - ( + 85 ) ) / - - 87 + + 13 * + 47
----
611

query II rowsort
SELECT DISTINCT 35 AS col2, - 56 * 38 AS col1
----
35
-2128

query I rowsort
SELECT DISTINCT - 37 * - 61 col2
----
2257

query I rowsort
SELECT 56 * + 21 * + 60
----
70560

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-13
SELECT 46 * + CASE COUNT( * ) WHEN + 53 - + 6 - - 37 + - 46 * 31 THEN + COUNT( * ) WHEN - COUNT( * ) + - 37 * 78 THEN MIN( DISTINCT - 81 ) * - 91 ELSE NULL END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-13
SELECT 46 * + CASE COUNT ( * ) WHEN + 53 - + 6 - - 37 + - 46 * 31 THEN + COUNT ( * ) WHEN - COUNT ( * ) + - 37 * 78 THEN MIN ( DISTINCT - 81 ) * - 91 ELSE NULL END col0
----
NULL

query I rowsort
SELECT ALL - NULLIF ( + + 26, + - 30 ) AS col2
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-15
SELECT DISTINCT - COALESCE ( COUNT( * ), 73 * 44 )
----
-1

skipif mysql # not compatible
query I rowsort label-15
SELECT DISTINCT - COALESCE ( COUNT ( * ), 73 * 44 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-16
SELECT ALL 63 * + - 27 + + 20 * MIN( + 66 ) * - 88 AS col0
----
-117861

skipif mysql # not compatible
query I rowsort label-16
SELECT ALL 63 * + - 27 + + 20 * MIN ( + 66 ) * - 88 AS col0
----
-117861

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

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

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

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

query I rowsort
SELECT 73 * - ( - 43 )
----
3139

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-20
SELECT ALL + 94 * - - COALESCE ( + CAST( 58 AS SIGNED ), 57 * + + 73, + + 34 * + + 77 )
----
5452

skipif mysql # not compatible
query I rowsort label-20
SELECT ALL + 94 * - - COALESCE ( + CAST ( 58 AS INTEGER ), 57 * + + 73, + + 34 * + + 77 )
----
5452

query I rowsort
SELECT 14 * + 70 - 0 + - 25
----
955

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-23
SELECT - ( - + COUNT( * ) ) * - ( - 83 ) + 91 + 78
----
252

skipif mysql # not compatible
query I rowsort label-23
SELECT - ( - + COUNT ( * ) ) * - ( - 83 ) + 91 + 78
----
252

query I rowsort
SELECT ALL + + 31 * 82 + + 60 * - + 61
----
-1118

onlyif mysql # aggregate syntax: 
query I rowsort label-25
SELECT DISTINCT - - MAX( ALL 26 ) * NULLIF ( + 74, + - 71 + 77 ) * + 73 + - ( 7 ) + + + 6
----
140451

skipif mysql # not compatible
query I rowsort label-25
SELECT DISTINCT - - MAX ( ALL 26 ) * NULLIF ( + 74, + - 71 + 77 ) * + 73 + - ( 7 ) + + + 6
----
140451

query I rowsort
SELECT DISTINCT 64 * 67 + - 57 + 39
----
4270

query I rowsort
SELECT + + 73 * + + 90 - - + 46 AS col2
----
6616

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-28
SELECT ALL + 63, CAST( + 32 AS SIGNED ) + 93 AS col2
----
63
125

skipif mysql # not compatible
query II rowsort label-28
SELECT ALL + 63, CAST ( + 32 AS INTEGER ) + 93 AS col2
----
63
125

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-29
SELECT ALL - COUNT( * ) + 60 + + - ( + 91 ) + + 74 + - + COUNT( * ) + + - 96 - + NULLIF ( 60, CASE COUNT( DISTINCT 46 ) WHEN 62 THEN NULL WHEN CAST( + CAST( - 3 AS SIGNED ) AS SIGNED ) * - MAX( DISTINCT + 70 + + CAST( NULL AS SIGNED ) ) THEN - 76 END - AVG ( DISTINCT + 80 + + 33 ) * COUNT( * ) ) AS col1
----
-115

skipif mysql # not compatible
query I rowsort label-29
SELECT ALL - COUNT ( * ) + 60 + + - ( + 91 ) + + 74 + - + COUNT ( * ) + + - 96 - + NULLIF ( 60, CASE COUNT ( DISTINCT 46 ) WHEN 62 THEN NULL WHEN CAST ( + CAST ( - 3 AS INTEGER ) AS INTEGER ) * - MAX ( DISTINCT + 70 + + CAST ( NULL AS INTEGER ) ) THEN - 76 END - AVG ( DISTINCT + 80 + + 33 ) * COUNT ( * ) ) AS col1
----
-115

onlyif mysql # aggregate syntax: 
query I rowsort label-30
SELECT + + 29 + - MIN( - ( + 16 ) ) AS col0
----
45

skipif mysql # not compatible
query I rowsort label-30
SELECT + + 29 + - MIN ( - ( + 16 ) ) AS col0
----
45

onlyif mysql # aggregate syntax: 
query II rowsort label-31
SELECT + - 49 * 61 + 92 AS col0, + 99 * - 32 * + 27 * + 88 + - 83 - 74 + - + 7 * + 95 * ( COUNT( * ) ) AS col0
----
-2897
-7527990

skipif mysql # not compatible
query II rowsort label-31
SELECT + - 49 * 61 + 92 AS col0, + 99 * - 32 * + 27 * + 88 + - 83 - 74 + - + 7 * + 95 * ( COUNT ( * ) ) AS col0
----
-2897
-7527990

query II rowsort
SELECT 37 AS col0, - 75 AS col1
----
37
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-33
SELECT ALL MAX( ALL + 90 ) * - CASE + NULLIF ( 36, - - NULLIF ( + 75, + 58 / 86 ) ) WHEN COUNT( * ) THEN 30 + 41 WHEN - 81 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-33
SELECT ALL MAX ( ALL + 90 ) * - CASE + NULLIF ( 36, - - NULLIF ( + 75, + 58 / 86 ) ) WHEN COUNT ( * ) THEN 30 + 41 WHEN - 81 THEN NULL END
----
NULL

query I rowsort
SELECT + 51 + - + 41 - + 15 * - 23 * - + ( - 88 )
----
30370

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-35
SELECT ALL CASE + CASE + 7 WHEN + 47 / 45 - 17 + - 84 + - 99 THEN - CAST( NULL AS DECIMAL ) - + 64 END WHEN + + MAX( + 26 ) THEN 54 END - + 94
----
NULL

skipif mysql # not compatible
query I rowsort label-35
SELECT ALL CASE + CASE + 7 WHEN + 47 / 45 - 17 + - 84 + - 99 THEN - CAST ( NULL AS REAL ) - + 64 END WHEN + + MAX ( + 26 ) THEN 54 END - + 94
----
NULL

query II rowsort
SELECT DISTINCT 24 AS col0, - 87 AS col0
----
24
-87

query I rowsort
SELECT DISTINCT ( - + 24 ) * - + 15
----
360

onlyif mysql # aggregate syntax: 
query I rowsort label-38
SELECT DISTINCT MIN( 43 ) - + 18 * - 51 * ( 89 ) col0
----
81745

skipif mysql # not compatible
query I rowsort label-38
SELECT DISTINCT MIN ( 43 ) - + 18 * - 51 * ( 89 ) col0
----
81745

query II rowsort
SELECT + 32 * - 96 col1, 91 * + 76
----
-3072
6916

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-40
SELECT - 87 AS col0, 79, - 71 - - - CAST( + 20 AS SIGNED ) AS col0
----
-87
79
-91

skipif mysql # not compatible
query III rowsort label-40
SELECT - 87 AS col0, 79, - 71 - - - CAST ( + 20 AS INTEGER ) AS col0
----
-87
79
-91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-41
SELECT - 97 - + 66 * - CAST( - + 29 AS SIGNED ) - 32 * - 99 * - - MIN( - 25 ) AS col2
----
-81211

skipif mysql # not compatible
query I rowsort label-41
SELECT - 97 - + 66 * - CAST ( - + 29 AS INTEGER ) - 32 * - 99 * - - MIN ( - 25 ) AS col2
----
-81211

query II rowsort
SELECT - 41 AS col0, - 98 AS col1
----
-41
-98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-43
SELECT - CAST( - + CAST( + 54 AS SIGNED ) AS SIGNED ) * - + 98 + MAX( ALL - 25 ) AS col1, 36, MIN( ALL + ( 41 ) ) - 41 AS col1
----
-5317
36
0

skipif mysql # not compatible
query III rowsort label-43
SELECT - CAST ( - + CAST ( + 54 AS INTEGER ) AS INTEGER ) * - + 98 + MAX ( ALL - 25 ) AS col1, 36, MIN ( ALL + ( 41 ) ) - 41 AS col1
----
-5317
36
0

onlyif mysql # DIV for integer division: 
query I rowsort label-44
SELECT ALL + 60 DIV 39
----
1

skipif mysql # not compatible
query I rowsort label-44
SELECT ALL + 60 / 39
----
1

query II rowsort
SELECT 94 AS col0, - 14 * - 69
----
94
966

onlyif mysql # aggregate syntax: 
query II rowsort label-46
SELECT ALL 50 AS col1, - MAX( - + 48 ) AS col0
----
50
48

skipif mysql # not compatible
query II rowsort label-46
SELECT ALL 50 AS col1, - MAX ( - + 48 ) AS col0
----
50
48

query I rowsort
SELECT DISTINCT - 42 * + 83 AS col0
----
-3486

onlyif mysql # aggregate syntax: 
query I rowsort label-48
SELECT DISTINCT CASE - 37 WHEN + + 53 THEN NULL WHEN - 55 THEN - SUM( 56 ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-48
SELECT DISTINCT CASE - 37 WHEN + + 53 THEN NULL WHEN - 55 THEN - SUM ( 56 ) END AS col2
----
NULL

query I rowsort
SELECT ALL 61 + + 92 * 92 AS col0
----
8525

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-51
SELECT ALL + 97 + - - COUNT( ALL 49 ) AS col1
----
98

skipif mysql # not compatible
query I rowsort label-51
SELECT ALL + 97 + - - COUNT ( ALL 49 ) AS col1
----
98

query I rowsort
SELECT - 25 * - 23 col1
----
575

query I rowsort
SELECT - 73 * - 85
----
6205

onlyif mysql # aggregate syntax: 
query II rowsort label-54
SELECT + + 34, - COUNT( DISTINCT - - 4 ) AS col0
----
34
-1

skipif mysql # not compatible
query II rowsort label-54
SELECT + + 34, - COUNT ( DISTINCT - - 4 ) AS col0
----
34
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-55
SELECT ALL + + COUNT( ALL - ( - 69 ) ) * - 67 + - 72 col0
----
-139

skipif mysql # not compatible
query I rowsort label-55
SELECT ALL + + COUNT ( ALL - ( - 69 ) ) * - 67 + - 72 col0
----
-139

onlyif mysql # aggregate syntax: 
query I rowsort label-56
SELECT 68 * 28 * - + COUNT( * ) + + - MIN( DISTINCT - 95 ) + + 82 * - COUNT( * ) * 45
----
-5499

skipif mysql # not compatible
query I rowsort label-56
SELECT 68 * 28 * - + COUNT ( * ) + + - MIN ( DISTINCT - 95 ) + + 82 * - COUNT ( * ) * 45
----
-5499

onlyif mysql # aggregate syntax: 
query II rowsort label-57
SELECT ALL 62 * + 78 + - - 35 - + COUNT( * ) AS col2, - 43
----
4870
-43

skipif mysql # not compatible
query II rowsort label-57
SELECT ALL 62 * + 78 + - - 35 - + COUNT ( * ) AS col2, - 43
----
4870
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-58
SELECT DISTINCT + ( + 43 ) * - + COUNT( * ) * - + 33 + - 62
----
1357

skipif mysql # not compatible
query I rowsort label-58
SELECT DISTINCT + ( + 43 ) * - + COUNT ( * ) * - + 33 + - 62
----
1357

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-60
SELECT ALL + COUNT( * ) * 16 * - CAST( + CASE - + 43 WHEN + 75 * - + COUNT( * ) THEN CAST( 90 AS SIGNED ) ELSE NULL END AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-60
SELECT ALL + COUNT ( * ) * 16 * - CAST ( + CASE - + 43 WHEN + 75 * - + COUNT ( * ) THEN CAST ( 90 AS INTEGER ) ELSE NULL END AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-61
SELECT + 72 AS col1, ( CASE - COUNT( * ) WHEN - 9 + - - 82 * SUM( ALL 30 ) * COUNT( * ) * 33 * + COUNT( 65 ) THEN + 81 END ) AS col0
----
72
NULL

skipif mysql # not compatible
query II rowsort label-61
SELECT + 72 AS col1, ( CASE - COUNT ( * ) WHEN - 9 + - - 82 * SUM ( ALL 30 ) * COUNT ( * ) * 33 * + COUNT ( 65 ) THEN + 81 END ) AS col0
----
72
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-62
SELECT ALL - 56 * COUNT( * ) * 75 + + 65 AS col0, - 86 + - - ( - + 81 ) + + - MIN( + 19 ) * + 35 * + - 91 col1
----
-4135
60348

skipif mysql # not compatible
query II rowsort label-62
SELECT ALL - 56 * COUNT ( * ) * 75 + + 65 AS col0, - 86 + - - ( - + 81 ) + + - MIN ( + 19 ) * + 35 * + - 91 col1
----
-4135
60348

query II rowsort
SELECT ALL + + 25 AS col2, - 91 * - 39 * - 44 AS col0
----
25
-156156

onlyif mysql # aggregate syntax: 
query I rowsort label-64
SELECT DISTINCT - 28 * COUNT( DISTINCT - 47 ) / - MIN( CASE - 60 WHEN + 61 / - 76 + - - 52 THEN NULL WHEN + + 89 + 70 THEN 44 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-64
SELECT DISTINCT - 28 * COUNT ( DISTINCT - 47 ) / - MIN ( CASE - 60 WHEN + 61 / - 76 + - - 52 THEN NULL WHEN + + 89 + 70 THEN 44 END )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-65
SELECT ALL + + COUNT( * ), 10 AS col2, + 82 + + 16 DIV + SUM( DISTINCT + 38 ) * - + COUNT( * ) - - COUNT( * ) * - - 77 * ( - - 66 ) AS col2
----
1
10
5164

skipif mysql # not compatible
query III rowsort label-65
SELECT ALL + + COUNT ( * ), 10 AS col2, + 82 + + 16 / + SUM ( DISTINCT + 38 ) * - + COUNT ( * ) - - COUNT ( * ) * - - 77 * ( - - 66 ) AS col2
----
1
10
5164

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-66
SELECT + 78 * NULLIF ( + 62, + - CAST( NULL AS SIGNED ) ) col1
----
4836

skipif mysql # not compatible
query I rowsort label-66
SELECT + 78 * NULLIF ( + 62, + - CAST ( NULL AS INTEGER ) ) col1
----
4836

onlyif mysql # aggregate syntax: 
query I rowsort label-67
SELECT ALL COUNT( ALL + 50 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-67
SELECT ALL COUNT ( ALL + 50 ) col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-68
SELECT - CASE 4 WHEN + COUNT( * ) + + 25 THEN + CAST( NULL AS SIGNED ) * + 68 * - 8 + SUM( ALL - + COALESCE ( - 40, - 18 ) ) * - 59 + 73 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-68
SELECT - CASE 4 WHEN + COUNT ( * ) + + 25 THEN + CAST ( NULL AS INTEGER ) * + 68 * - 8 + SUM ( ALL - + COALESCE ( - 40, - 18 ) ) * - 59 + 73 END AS col1
----
NULL

query I rowsort
SELECT + 39 * + - 92 AS col1
----
-3588

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-70
SELECT + CASE + ( + + 93 ) WHEN CAST( + + 4 AS SIGNED ) * + - 77 + 97 - + + 47 THEN 79 WHEN + CAST( 32 AS SIGNED ) THEN + - 73 + + 98 END + 67
----
NULL

skipif mysql # not compatible
query I rowsort label-70
SELECT + CASE + ( + + 93 ) WHEN CAST ( + + 4 AS INTEGER ) * + - 77 + 97 - + + 47 THEN 79 WHEN + CAST ( 32 AS INTEGER ) THEN + - 73 + + 98 END + 67
----
NULL

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-73
SELECT + ( + 66 ) + - 24 + MAX( DISTINCT + 72 ) DIV - CASE 38 WHEN + - 94 THEN + ( 13 ) ELSE COUNT( * ) END col0
----
-30

skipif mysql # not compatible
query I rowsort label-73
SELECT + ( + 66 ) + - 24 + MAX ( DISTINCT + 72 ) / - CASE 38 WHEN + - 94 THEN + ( 13 ) ELSE COUNT ( * ) END col0
----
-30

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

skipif mysql # not compatible
query I rowsort label-74
SELECT ALL 61 + - CAST ( - - 55 AS INTEGER ) + + 61
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-75
SELECT ALL 20 + + COUNT( * ) * + - COUNT( * )
----
19

skipif mysql # not compatible
query I rowsort label-75
SELECT ALL 20 + + COUNT ( * ) * + - COUNT ( * )
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-76
SELECT ALL - 29 + + 32 + + COUNT( * ) AS col1
----
4

skipif mysql # not compatible
query I rowsort label-76
SELECT ALL - 29 + + 32 + + COUNT ( * ) AS col1
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-77
SELECT + 49 + + MIN( - 74 ) * - 8
----
641

skipif mysql # not compatible
query I rowsort label-77
SELECT + 49 + + MIN ( - 74 ) * - 8
----
641

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-79
SELECT - ( COUNT( * ) ) col0, 75 + + COALESCE ( 60, 5 * - + 10 + - + 43 * 50 * 17 ) AS col0, + CASE + MAX( ALL + CAST( NULL AS SIGNED ) ) WHEN - 19 + - 9 * + 21 THEN NULL ELSE + COUNT( * ) END * 1 AS col1
----
-1
135
1

skipif mysql # not compatible
query III rowsort label-79
SELECT - ( COUNT ( * ) ) col0, 75 + + COALESCE ( 60, 5 * - + 10 + - + 43 * 50 * 17 ) AS col0, + CASE + MAX ( ALL + CAST ( NULL AS INTEGER ) ) WHEN - 19 + - 9 * + 21 THEN NULL ELSE + COUNT ( * ) END * 1 AS col1
----
-1
135
1

onlyif mysql # DIV for integer division: 
query I rowsort label-80
SELECT DISTINCT 48 + + 16 DIV 52 AS col2
----
48

skipif mysql # not compatible
query I rowsort label-80
SELECT DISTINCT 48 + + 16 / 52 AS col2
----
48

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-82
SELECT ALL + + 14 + + COUNT( * ) col0
----
15

skipif mysql # not compatible
query I rowsort label-82
SELECT ALL + + 14 + + COUNT ( * ) col0
----
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-83
SELECT DISTINCT - - 51 + + - CAST( - + COUNT( 49 ) AS SIGNED )
----
52

skipif mysql # not compatible
query I rowsort label-83
SELECT DISTINCT - - 51 + + - CAST ( - + COUNT ( 49 ) AS INTEGER )
----
52

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-84
SELECT ALL - ( - + ( CAST( NULL AS SIGNED ) ) ) AS col1, - 31 - - + 48
----
NULL
17

skipif mysql # not compatible
query II rowsort label-84
SELECT ALL - ( - + ( CAST ( NULL AS INTEGER ) ) ) AS col1, - 31 - - + 48
----
NULL
17

onlyif mysql # aggregate syntax: 
query I rowsort label-85
SELECT ALL - CASE 16 WHEN + 51 * - 4 - + COUNT( DISTINCT + 49 ) + + 22 * 77 / + - COUNT( * ) THEN + + 68 * + 34 - 23 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-85
SELECT ALL - CASE 16 WHEN + 51 * - 4 - + COUNT ( DISTINCT + 49 ) + + 22 * 77 / + - COUNT ( * ) THEN + + 68 * + 34 - 23 ELSE NULL END
----
NULL

query I rowsort
SELECT ALL ( 71 ) + - 46
----
25

query I rowsort
SELECT DISTINCT + 84 + - 88 + - - 46 AS col1
----
42

onlyif mysql # DIV for integer division: 
query II rowsort label-88
SELECT 3 DIV + 40, - 66 AS col0
----
0
-66

skipif mysql # not compatible
query II rowsort label-88
SELECT 3 / + 40, - 66 AS col0
----
0
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-89
SELECT ALL - - 9 * + 38 * COUNT( * ) AS col2
----
342

skipif mysql # not compatible
query I rowsort label-89
SELECT ALL - - 9 * + 38 * COUNT ( * ) AS col2
----
342

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

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

query II rowsort
SELECT - 73 * - 19, - 71 AS col1
----
1387
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-92
SELECT DISTINCT - COALESCE ( + 78, + COUNT( * ) + - - 20 )
----
-78

skipif mysql # not compatible
query I rowsort label-92
SELECT DISTINCT - COALESCE ( + 78, + COUNT ( * ) + - - 20 )
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-93
SELECT - - 34 * COUNT( * ) - + - 45
----
79

skipif mysql # not compatible
query I rowsort label-93
SELECT - - 34 * COUNT ( * ) - + - 45
----
79

query I rowsort
SELECT CASE NULLIF ( 33, + 23 ) WHEN + 91 THEN - 51 + 25 + + 67 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-95
SELECT ALL - 15 * - ( + - 59 ) * + MIN( + + 35 ) AS col0
----
-30975

skipif mysql # not compatible
query I rowsort label-95
SELECT ALL - 15 * - ( + - 59 ) * + MIN ( + + 35 ) AS col0
----
-30975

query I rowsort
SELECT DISTINCT - + COALESCE ( - 42, 26 )
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-97
SELECT DISTINCT - + NULLIF ( + 55, + - COUNT( * ) + MIN( ALL 85 ) + - 15 ) AS col1
----
-55

skipif mysql # not compatible
query I rowsort label-97
SELECT DISTINCT - + NULLIF ( + 55, + - COUNT ( * ) + MIN ( ALL 85 ) + - 15 ) AS col1
----
-55

onlyif mysql # DIV for integer division: 
query I rowsort label-98
SELECT 54 + + 57 + + 82 DIV - 3 AS col1
----
84

skipif mysql # not compatible
query I rowsort label-98
SELECT 54 + + 57 + + 82 / - 3 AS col1
----
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-99
SELECT DISTINCT - CAST( - 13 AS SIGNED ) * + + 63 * - 45 AS col1
----
-36855

skipif mysql # not compatible
query I rowsort label-99
SELECT DISTINCT - CAST ( - 13 AS INTEGER ) * + + 63 * - 45 AS col1
----
-36855

onlyif mysql # aggregate syntax: 
query I rowsort label-100
SELECT 30 + + 94 * + 11 * - 4 + + ( + 52 ) * + MIN( - ( - ( + - 2 ) ) ) AS col0
----
-4210

skipif mysql # not compatible
query I rowsort label-100
SELECT 30 + + 94 * + 11 * - 4 + + ( + 52 ) * + MIN ( - ( - ( + - 2 ) ) ) AS col0
----
-4210

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-101
SELECT 37 DIV COALESCE ( CASE + 51 WHEN 92 THEN + - 64 * - 28 + - 41 + + - MIN( ALL + 91 ) WHEN - + 17 THEN NULL END, - MIN( ALL 14 ) * + 68, - 42 + ( 5 ) )
----
0

skipif mysql # not compatible
query I rowsort label-101
SELECT 37 / COALESCE ( CASE + 51 WHEN 92 THEN + - 64 * - 28 + - 41 + + - MIN ( ALL + 91 ) WHEN - + 17 THEN NULL END, - MIN ( ALL 14 ) * + 68, - 42 + ( 5 ) )
----
0

onlyif mysql # aggregate syntax: 
query III rowsort label-102
SELECT 62 col0, NULLIF ( + + 39, 53 ) AS col1, - - 98 * - 44 + 56 + 83 + - 90 + + 24 * - ( - - 96 ) * + COALESCE ( + 8, COUNT( * ) * - COALESCE ( 97, + 80, + 85 ) ) * NULLIF ( 16, + 33 ) * + SUM( + 93 )
----
62
39
-27431079

skipif mysql # not compatible
query III rowsort label-102
SELECT 62 col0, NULLIF ( + + 39, 53 ) AS col1, - - 98 * - 44 + 56 + 83 + - 90 + + 24 * - ( - - 96 ) * + COALESCE ( + 8, COUNT ( * ) * - COALESCE ( 97, + 80, + 85 ) ) * NULLIF ( 16, + 33 ) * + SUM ( + 93 )
----
62
39
-27431079

query I rowsort
SELECT 56 + + + 41
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-104
SELECT ALL - ( MAX( + - 83 ) ) * - 77 AS col2
----
-6391

skipif mysql # not compatible
query I rowsort label-104
SELECT ALL - ( MAX ( + - 83 ) ) * - 77 AS col2
----
-6391

onlyif mysql # aggregate syntax: 
query I rowsort label-105
SELECT DISTINCT + 15 + - SUM( ALL + 40 ) AS col2
----
-25

skipif mysql # not compatible
query I rowsort label-105
SELECT DISTINCT + 15 + - SUM ( ALL + 40 ) AS col2
----
-25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-106
SELECT ALL - CAST( AVG ( + 54 ) AS SIGNED ) + - 69
----
-123

skipif mysql # not compatible
query I rowsort label-106
SELECT ALL - CAST ( AVG ( + 54 ) AS INTEGER ) + - 69
----
-123

query I rowsort
SELECT ALL + 97 + 95
----
192

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-108
SELECT ALL - 42 + + COUNT( ALL - CAST( NULL AS SIGNED ) ) - - + 72 * - 24 + - CAST( NULL AS SIGNED ) - - 76
----
NULL

skipif mysql # not compatible
query I rowsort label-108
SELECT ALL - 42 + + COUNT ( ALL - CAST ( NULL AS INTEGER ) ) - - + 72 * - 24 + - CAST ( NULL AS INTEGER ) - - 76
----
NULL

query I rowsort
SELECT DISTINCT 72 + + + 55 + + 98
----
225

query I rowsort
SELECT AVG ( ALL ( 7 ) ) - + ( - - CASE + 40 WHEN 67 THEN 99 END ) * 97 * 60 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-111
SELECT - 14 AS col2, 38 - SUM( ALL - + 77 ) AS col2
----
-14
115

skipif mysql # not compatible
query II rowsort label-111
SELECT - 14 AS col2, 38 - SUM ( ALL - + 77 ) AS col2
----
-14
115

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-112
SELECT 87 - - 86 / - CAST( NULL AS SIGNED ) * - - ( COALESCE ( - 28, CAST( NULL AS SIGNED ) + + 16 * - 18, + CAST( NULL AS SIGNED ), MIN( 35 ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-112
SELECT 87 - - 86 / - CAST ( NULL AS INTEGER ) * - - ( COALESCE ( - 28, CAST ( NULL AS INTEGER ) + + 16 * - 18, + CAST ( NULL AS INTEGER ), MIN ( 35 ) ) )
----
NULL

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

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

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

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

query I rowsort
SELECT DISTINCT + 55 * + + 3 AS col1
----
165

onlyif mysql # aggregate syntax: 
query I rowsort label-116
SELECT - - ( + + 50 ) * - 2 - - + COUNT( ALL + 54 )
----
-99

skipif mysql # not compatible
query I rowsort label-116
SELECT - - ( + + 50 ) * - 2 - - + COUNT ( ALL + 54 )
----
-99

query I rowsort
SELECT DISTINCT - - 36 AS col0
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-118
SELECT - 10 + - - 94 + - MIN( ALL - - 98 ) + 56 + - ( + 53 )
----
-11

skipif mysql # not compatible
query I rowsort label-118
SELECT - 10 + - - 94 + - MIN ( ALL - - 98 ) + 56 + - ( + 53 )
----
-11

query I rowsort
SELECT + 98 * - 19 + + 5
----
-1857

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-120
SELECT ALL + COALESCE ( + - 39, COALESCE ( - + 47, - 96 ) + + + 21, + 62 - + 30 + - 43 + 71 DIV 63 ) * + 41 * SUM( ALL - 35 ) AS col1
----
55965

skipif mysql # not compatible
query I rowsort label-120
SELECT ALL + COALESCE ( + - 39, COALESCE ( - + 47, - 96 ) + + + 21, + 62 - + 30 + - 43 + 71 / 63 ) * + 41 * SUM ( ALL - 35 ) AS col1
----
55965

onlyif mysql # DIV for integer division: 
query II rowsort label-121
SELECT ALL - 78 * - - 40 + - 46, - 89 * + ( 70 ) + 31 DIV - 59 AS col1
----
-3166
-6230

skipif mysql # not compatible
query II rowsort label-121
SELECT ALL - 78 * - - 40 + - 46, - 89 * + ( 70 ) + 31 / - 59 AS col1
----
-3166
-6230

onlyif mysql # aggregate syntax: 
query I rowsort label-122
SELECT + MAX( + 33 ) AS col0
----
33

skipif mysql # not compatible
query I rowsort label-122
SELECT + MAX ( + 33 ) AS col0
----
33

query I rowsort
SELECT ALL + 4 * - 11
----
-44

query I rowsort
SELECT 68 * 58
----
3944

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-126
SELECT 72 DIV - 78
----
0

skipif mysql # not compatible
query I rowsort label-126
SELECT 72 / - 78
----
0

query I rowsort
SELECT DISTINCT - NULLIF ( + 64, 25 )
----
-64

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

query II rowsort
SELECT ALL 44 + + 97, ( 56 ) + - 16 - + + ( - 11 ) AS col1
----
141
51

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-131
SELECT ALL - 38 DIV - + 3 col1
----
12

skipif mysql # not compatible
query I rowsort label-131
SELECT ALL - 38 / - + 3 col1
----
12

query I rowsort
SELECT DISTINCT + 29 + 5
----
34

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-134
SELECT ALL + COUNT( * ) + + 93 + - - 41 * - - NULLIF ( + + 96, - - 22 ) * + + 91 * - + 78 * CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-134
SELECT ALL + COUNT ( * ) + + 93 + - - 41 * - - NULLIF ( + + 96, - - 22 ) * + + 91 * - + 78 * CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-135
SELECT - CASE - 78 WHEN AVG ( + - 45 ) * + MAX( DISTINCT - ( - 5 ) ) / - + AVG ( 15 ) + - - 7 + 36 * 38 THEN NULL WHEN + COUNT( * ) THEN - 78 + CASE + 89 - + ( 29 ) WHEN 29 THEN 77 ELSE - COUNT( ALL - 51 ) * 79 - 54 END ELSE + SUM( ALL - 49 ) - - 38 END * MAX( - 24 ) AS col0
----
-264

skipif mysql # not compatible
query I rowsort label-135
SELECT - CASE - 78 WHEN AVG ( + - 45 ) * + MAX ( DISTINCT - ( - 5 ) ) / - + AVG ( 15 ) + - - 7 + 36 * 38 THEN NULL WHEN + COUNT ( * ) THEN - 78 + CASE + 89 - + ( 29 ) WHEN 29 THEN 77 ELSE - COUNT ( ALL - 51 ) * 79 - 54 END ELSE + SUM ( ALL - 49 ) - - 38 END * MAX ( - 24 ) AS col0
----
-264

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-136
SELECT - CASE - 33 WHEN - COUNT( * ) THEN - 5 ELSE 38 + + - 90 * + 61 * 68 END + - 15 * 39 * - 15 * + 67 * 10 * + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-136
SELECT - CASE - 33 WHEN - COUNT ( * ) THEN - 5 ELSE 38 + + - 90 * + 61 * 68 END + - 15 * 39 * - 15 * + 67 * 10 * + CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT ALL COALESCE ( 63, 96 ) col1
----
63

query I rowsort
SELECT - 66 + 51 AS col2
----
-15

query I rowsort
SELECT ALL - 66 - + + CASE + - 87 WHEN + + 33 THEN - 47 ELSE + - 69 END AS col1
----
3

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-142
SELECT + + 56 DIV - 38 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-142
SELECT + + 56 / - 38 AS col0
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-143
SELECT ALL + + 67 DIV - - MIN( ALL - 44 )
----
-1

skipif mysql # not compatible
query I rowsort label-143
SELECT ALL + + 67 / - - MIN ( ALL - 44 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-144
SELECT - - COUNT( * ) * - 91 * + 16 * + ( - - 31 ) + + 89 AS col0
----
-45047

skipif mysql # not compatible
query I rowsort label-144
SELECT - - COUNT ( * ) * - 91 * + 16 * + ( - - 31 ) + + 89 AS col0
----
-45047

onlyif mysql # aggregate syntax: 
query I rowsort label-145
SELECT + 55 + COUNT( * ) + 87 * - 80 * + - 62 AS col0
----
431576

skipif mysql # not compatible
query I rowsort label-145
SELECT + 55 + COUNT ( * ) + 87 * - 80 * + - 62 AS col0
----
431576

query I rowsort
SELECT DISTINCT + 1 - 27 * 98
----
-2645

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-147
SELECT ALL CASE 26 WHEN - - 27 * - CAST( NULL AS SIGNED ) + + + SUM( DISTINCT - 49 ) * + 16 THEN + 85 WHEN + CAST( NULL AS SIGNED ) + - 89 - + + 78 THEN - + 96 END * - 20 * - 26 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-147
SELECT ALL CASE 26 WHEN - - 27 * - CAST ( NULL AS INTEGER ) + + + SUM ( DISTINCT - 49 ) * + 16 THEN + 85 WHEN + CAST ( NULL AS INTEGER ) + - 89 - + + 78 THEN - + 96 END * - 20 * - 26 AS col0
----
NULL

query I rowsort
SELECT + - 88 * + 12 col1
----
-1056

query I rowsort
SELECT DISTINCT + - 70 AS col0
----
-70

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-150
SELECT ALL + COALESCE ( - - 20, ( + 91 ) ), CAST( NULL AS SIGNED ) AS col2
----
20
NULL

skipif mysql # not compatible
query II rowsort label-150
SELECT ALL + COALESCE ( - - 20, ( + 91 ) ), CAST ( NULL AS INTEGER ) AS col2
----
20
NULL

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

query I rowsort
SELECT + + 55 * + 12 + - - 44 col1
----
704

query I rowsort
SELECT ALL - 49 * - + 87 AS col1
----
4263

query I rowsort
SELECT + 97 * 86
----
8342

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

query I rowsort
SELECT + - 94 * + 5
----
-470

query I rowsort
SELECT + 85 * + - 96 * + 39
----
-318240

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-158
SELECT ALL + CAST( + - 16 AS SIGNED ) * + 32 * + 96 + 64 col2
----
-49088

skipif mysql # not compatible
query I rowsort label-158
SELECT ALL + CAST ( + - 16 AS INTEGER ) * + 32 * + 96 + 64 col2
----
-49088

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-159
SELECT COALESCE ( + - COUNT( * ), - + 32, 4 DIV + 15 - + 98 ) AS col2, + 83
----
-1
83

skipif mysql # not compatible
query II rowsort label-159
SELECT COALESCE ( + - COUNT ( * ), - + 32, 4 / + 15 - + 98 ) AS col2, + 83
----
-1
83

onlyif mysql # aggregate syntax: 
query I rowsort label-160
SELECT ALL SUM( + + 56 ) * + + 5 + + - 4 + - 20
----
256

skipif mysql # not compatible
query I rowsort label-160
SELECT ALL SUM ( + + 56 ) * + + 5 + + - 4 + - 20
----
256

onlyif mysql # aggregate syntax: 
query I rowsort label-161
SELECT + COALESCE ( COUNT( * ), NULLIF ( COUNT( + - 63 ), - 23 ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-161
SELECT + COALESCE ( COUNT ( * ), NULLIF ( COUNT ( + - 63 ), - 23 ) ) AS col0
----
1

query I rowsort
SELECT ALL 57 * + 99 + 95 * - + 24 + 17 * + 97 + 76
----
5088

onlyif mysql # aggregate syntax: 
query I rowsort label-163
SELECT ALL 75 * - 34 * + 25 + - COUNT( * ) AS col2
----
-63751

skipif mysql # not compatible
query I rowsort label-163
SELECT ALL 75 * - 34 * + 25 + - COUNT ( * ) AS col2
----
-63751

query I rowsort
SELECT + ( 50 ) col2
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-165
SELECT + COALESCE ( - 7, + NULLIF ( + COUNT( ALL + ( - - 97 ) ), + MAX( 33 ) + + + CASE - - 22 WHEN 82 THEN ( 48 ) * + 80 ELSE COUNT( * ) * 87 + 79 END * - 90 ) ) col2
----
-7

skipif mysql # not compatible
query I rowsort label-165
SELECT + COALESCE ( - 7, + NULLIF ( + COUNT ( ALL + ( - - 97 ) ), + MAX ( 33 ) + + + CASE - - 22 WHEN 82 THEN ( 48 ) * + 80 ELSE COUNT ( * ) * 87 + 79 END * - 90 ) ) col2
----
-7

query I rowsort
SELECT + 94 * - - 60 - + 40 AS col1
----
5600

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-167
SELECT + 31 * 43 * - - 93 + - 69 + - 65, 53 * + CASE 6 WHEN - + ( - COALESCE ( - - CAST( + 61 AS SIGNED ), - 33 + + 50 / + 59 * 87, + COUNT( * ) + COUNT( * ) ) ) + + 19 * - 26 THEN - 77 + - COUNT( * ) ELSE CAST( NULL AS SIGNED ) + + 6 * + ( COUNT( * ) ) END * CAST( NULL AS DECIMAL ) + + 33 AS col0
----
123835
NULL

skipif mysql # not compatible
query II rowsort label-167
SELECT + 31 * 43 * - - 93 + - 69 + - 65, 53 * + CASE 6 WHEN - + ( - COALESCE ( - - CAST ( + 61 AS INTEGER ), - 33 + + 50 / + 59 * 87, + COUNT ( * ) + COUNT ( * ) ) ) + + 19 * - 26 THEN - 77 + - COUNT ( * ) ELSE CAST ( NULL AS INTEGER ) + + 6 * + ( COUNT ( * ) ) END * CAST ( NULL AS REAL ) + + 33 AS col0
----
123835
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-169
SELECT ALL COUNT( * ) * 50 + - 12 * - + 63 * + - 76 * + ( 84 ) AS col1
----
-4826254

skipif mysql # not compatible
query I rowsort label-169
SELECT ALL COUNT ( * ) * 50 + - 12 * - + 63 * + - 76 * + ( 84 ) AS col1
----
-4826254

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-171
SELECT - 61 DIV 87
----
0

skipif mysql # not compatible
query I rowsort label-171
SELECT - 61 / 87
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-172
SELECT ALL COALESCE ( - + 90, + 92 + 34, + CASE + 41 WHEN 39 * CAST( - 47 AS SIGNED ) + + - 22 - - 42 * - 45 * - 38 * + 93 * COUNT( * ) THEN + 31 WHEN 15 THEN 49 - - 51 END ) * + COUNT( * ) - 75
----
-165

skipif mysql # not compatible
query I rowsort label-172
SELECT ALL COALESCE ( - + 90, + 92 + 34, + CASE + 41 WHEN 39 * CAST ( - 47 AS INTEGER ) + + - 22 - - 42 * - 45 * - 38 * + 93 * COUNT ( * ) THEN + 31 WHEN 15 THEN 49 - - 51 END ) * + COUNT ( * ) - 75
----
-165

query I rowsort
SELECT - ( + NULLIF ( - - 18, + + 28 ) ) AS col0
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-174
SELECT ALL COALESCE ( + 36, 19 * COUNT( * ) * ( + 34 ) ) AS col1
----
36

skipif mysql # not compatible
query I rowsort label-174
SELECT ALL COALESCE ( + 36, 19 * COUNT ( * ) * ( + 34 ) ) AS col1
----
36

onlyif mysql # aggregate syntax: 
query II rowsort label-175
SELECT ALL CASE 96 WHEN - 83 THEN + 56 * + 18 * 60 + - 27 + COALESCE ( COUNT( * ), - 95 ) END AS col1, 50 AS col2
----
NULL
50

skipif mysql # not compatible
query II rowsort label-175
SELECT ALL CASE 96 WHEN - 83 THEN + 56 * + 18 * 60 + - 27 + COALESCE ( COUNT ( * ), - 95 ) END AS col1, 50 AS col2
----
NULL
50

onlyif mysql # aggregate syntax: 
query II rowsort label-176
SELECT - 58 AS col2, - 51 - - ( - - ( COUNT( * ) ) )
----
-58
-50

skipif mysql # not compatible
query II rowsort label-176
SELECT - 58 AS col2, - 51 - - ( - - ( COUNT ( * ) ) )
----
-58
-50

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

skipif mysql # not compatible
query I rowsort label-177
SELECT ALL MAX ( ALL - 17 )
----
-17

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

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

query I rowsort
SELECT ALL ( - 20 ) AS col0
----
-20

query I rowsort
SELECT - 18 * - 91
----
1638

query I rowsort
SELECT DISTINCT + 37 col2
----
37

query I rowsort
SELECT DISTINCT + + 65 * + - 23 * + 78 AS col1
----
-116610

onlyif mysql # aggregate syntax: 
query I rowsort label-183
SELECT ALL + 5 * - COALESCE ( ( - - 75 ), - - 61, NULLIF ( + 26, + + SUM( + 57 ) ) ) col1
----
-375

skipif mysql # not compatible
query I rowsort label-183
SELECT ALL + 5 * - COALESCE ( ( - - 75 ), - - 61, NULLIF ( + 26, + + SUM ( + 57 ) ) ) col1
----
-375

query I rowsort
SELECT - 70 * 9 AS col1
----
-630

onlyif mysql # aggregate syntax: 
query I rowsort label-185
SELECT - 39 * - + MAX( + 87 )
----
3393

skipif mysql # not compatible
query I rowsort label-185
SELECT - 39 * - + MAX ( + 87 )
----
3393

query I rowsort
SELECT - - ( - 67 ) - 12
----
-79

query I rowsort
SELECT DISTINCT + + 90 * + 16 + + + 63 AS col0
----
1503

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-188
SELECT ALL - CASE COALESCE ( - - 61, - COUNT( * ) * - 41 DIV - 81 DIV + 90 DIV + 77 DIV + 85 - + 22 + - - ( + + 17 ) ) WHEN - 1 THEN NULL WHEN - ( COUNT( DISTINCT 15 ) ) + 46 * + 98 THEN NULL ELSE 8 DIV - 59 END AS col1
----
0

skipif mysql # not compatible
query I rowsort label-188
SELECT ALL - CASE COALESCE ( - - 61, - COUNT ( * ) * - 41 / - 81 / + 90 / + 77 / + 85 - + 22 + - - ( + + 17 ) ) WHEN - 1 THEN NULL WHEN - ( COUNT ( DISTINCT 15 ) ) + 46 * + 98 THEN NULL ELSE 8 / - 59 END AS col1
----
0

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

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

query I rowsort
SELECT - - 34 * 73 * - 61 + + + 70
----
-151332

query I rowsort
SELECT ALL + - 23 * 45 col2
----
-1035

query I rowsort
SELECT DISTINCT + + 98 * + 12 AS col2
----
1176

query I rowsort
SELECT - 28 - + - 33 + - 92
----
-87

onlyif mysql # DIV for integer division: 
query I rowsort label-194
SELECT - - 84 DIV - + 47 + - COALESCE ( + 89, 49 * 30 * + 67 )
----
-90

skipif mysql # not compatible
query I rowsort label-194
SELECT - - 84 / - + 47 + - COALESCE ( + 89, 49 * 30 * + 67 )
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-195
SELECT ALL - - 48 + + 70 + COUNT( * ) + 60 * - + COUNT( * ) * 82 * - 11 + + 78 AS col0
----
54317

skipif mysql # not compatible
query I rowsort label-195
SELECT ALL - - 48 + + 70 + COUNT ( * ) + 60 * - + COUNT ( * ) * 82 * - 11 + + 78 AS col0
----
54317

onlyif mysql # aggregate syntax: 
query I rowsort label-196
SELECT - SUM( + 93 ) + + 23 + + 14 + - 43 * - 65 * + + COUNT( * ) AS col1
----
2739

skipif mysql # not compatible
query I rowsort label-196
SELECT - SUM ( + 93 ) + + 23 + + 14 + - 43 * - 65 * + + COUNT ( * ) AS col1
----
2739

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-197
SELECT - 42 - + + 97 + + NULLIF ( + ( - CAST( 58 AS SIGNED ) ), 72 + + 41 ) * + - 18
----
905

skipif mysql # not compatible
query I rowsort label-197
SELECT - 42 - + + 97 + + NULLIF ( + ( - CAST ( 58 AS INTEGER ) ), 72 + + 41 ) * + - 18
----
905

query II rowsort
SELECT - 86 + - + 69 + 30 * - 39 + - - 45 AS col2, CASE WHEN NOT ( NULL ) NOT BETWEEN - COALESCE ( + 91, - - 2 ) AND AVG ( ALL ( 40 ) ) THEN - 3 + 82 END + - 69 col1
----
-1280
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-199
SELECT + CAST( 46 AS SIGNED ) DIV + COUNT( * ) + + 10 AS col0
----
56

skipif mysql # not compatible
query I rowsort label-199
SELECT + CAST ( 46 AS INTEGER ) / + COUNT ( * ) + + 10 AS col0
----
56

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-200
SELECT - - 7 + - 8 - + ( + - 54 ) + + 30, COALESCE ( + 40, + COALESCE ( - + 46, ( + 76 ) DIV - 83 DIV - + 24 * 82 + - + 82 + + NULLIF ( + CASE + 31 WHEN - 69 * + 92 THEN - 56 + + 37 WHEN + 32 THEN COUNT( * ) * 88 WHEN - 77 THEN - 79 + - 87 END, - 2 + 28 * 51 ) * - 52 * - COUNT( ALL 11 + - 51 ), 42 ) ) AS col2
----
83
40

skipif mysql # not compatible
query II rowsort label-200
SELECT - - 7 + - 8 - + ( + - 54 ) + + 30, COALESCE ( + 40, + COALESCE ( - + 46, ( + 76 ) / - 83 / - + 24 * 82 + - + 82 + + NULLIF ( + CASE + 31 WHEN - 69 * + 92 THEN - 56 + + 37 WHEN + 32 THEN COUNT ( * ) * 88 WHEN - 77 THEN - 79 + - 87 END, - 2 + 28 * 51 ) * - 52 * - COUNT ( ALL 11 + - 51 ), 42 ) ) AS col2
----
83
40

onlyif mysql # DIV for integer division: 
query I rowsort label-201
SELECT ALL + 92 DIV + 93 + + - 47 AS col0
----
-47

skipif mysql # not compatible
query I rowsort label-201
SELECT ALL + 92 / + 93 + + - 47 AS col0
----
-47

query I rowsort
SELECT + 51 * + 49 * + - 51 + - 0
----
-127449

query II rowsort
SELECT ALL + 30, 59 + + 18 AS col0
----
30
77

onlyif mysql # DIV for integer division: 
query I rowsort label-204
SELECT 46 DIV - 92 * + 85 + 97 + + 68 col2
----
165

skipif mysql # not compatible
query I rowsort label-204
SELECT 46 / - 92 * + 85 + 97 + + 68 col2
----
165

query II rowsort
SELECT ALL + 36 col0, 18
----
36
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-206
SELECT + ( 66 ) + 86 + CAST( NULL AS SIGNED ) + + - 76 + - 30 + 24 * 54 / + + 52 * - SUM( + 11 ) + 39
----
NULL

skipif mysql # not compatible
query I rowsort label-206
SELECT + ( 66 ) + 86 + CAST ( NULL AS INTEGER ) + + - 76 + - 30 + 24 * 54 / + + 52 * - SUM ( + 11 ) + 39
----
NULL

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

query I rowsort
SELECT DISTINCT 32 + + 74 * - 75 + 91 * + 93 * NULLIF ( 49, + 29 )
----
409169

onlyif mysql # aggregate syntax: 
query I rowsort label-209
SELECT COUNT( * ) + + ( + + 74 ) + + - 56 * + - 7 AS col1
----
467

skipif mysql # not compatible
query I rowsort label-209
SELECT COUNT ( * ) + + ( + + 74 ) + + - 56 * + - 7 AS col1
----
467

query II rowsort
SELECT + 46, + 15 AS col1
----
46
15

onlyif mysql # aggregate syntax: 
query II rowsort label-211
SELECT ALL - 52 AS col2, - 81 + COUNT( * ) AS col2
----
-52
-80

skipif mysql # not compatible
query II rowsort label-211
SELECT ALL - 52 AS col2, - 81 + COUNT ( * ) AS col2
----
-52
-80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query III rowsort label-212
SELECT 72, - COUNT( * ) AS col1, + COALESCE ( 35, + CAST( NULL AS DECIMAL ) * - COUNT( * ) + AVG ( 66 ), - 28 * 30 + - + COUNT( * ) ) * + + CAST( NULL AS SIGNED ) AS col1
----
72
-1
NULL

skipif mysql # not compatible
query III rowsort label-212
SELECT 72, - COUNT ( * ) AS col1, + COALESCE ( 35, + CAST ( NULL AS REAL ) * - COUNT ( * ) + AVG ( 66 ), - 28 * 30 + - + COUNT ( * ) ) * + + CAST ( NULL AS INTEGER ) AS col1
----
72
-1
NULL

query I rowsort
SELECT DISTINCT 78 * - 97 col0
----
-7566

onlyif mysql # DIV for integer division: 
query I rowsort label-214
SELECT DISTINCT 90 DIV + 32 col2
----
2

skipif mysql # not compatible
query I rowsort label-214
SELECT DISTINCT 90 / + 32 col2
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-215
SELECT 16 DIV + 58 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-215
SELECT 16 / + 58 AS col0
----
0

query I rowsort
SELECT ALL 25 * - 74 * - 29
----
53650

query I rowsort
SELECT 86 + - 62 AS col1
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-218
SELECT 3 * + + ( 91 ) * - 14 + + ( COUNT( * ) ) AS col0
----
-3821

skipif mysql # not compatible
query I rowsort label-218
SELECT 3 * + + ( 91 ) * - 14 + + ( COUNT ( * ) ) AS col0
----
-3821

query II rowsort
SELECT DISTINCT 42 * + 76 * + 70 * - 60 AS col0, 49 * + 35 AS col1
----
-13406400
1715

query I rowsort
SELECT 31 + - 77
----
-46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-221
SELECT COUNT( * ) DIV - + 87 - NULLIF ( + 5, + + 71 * - 86 - CAST( + - 91 AS SIGNED ) + + 69 * + COUNT( * ) ) + COUNT( * ) AS col2
----
-4

skipif mysql # not compatible
query I rowsort label-221
SELECT COUNT ( * ) / - + 87 - NULLIF ( + 5, + + 71 * - 86 - CAST ( + - 91 AS INTEGER ) + + 69 * + COUNT ( * ) ) + COUNT ( * ) AS col2
----
-4

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

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

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

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

query I rowsort
SELECT COALESCE ( 13, + 74 ) + 72 * - 43 AS col0
----
-3083

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

skipif mysql # not compatible
query I rowsort label-225
SELECT ALL COUNT ( * ) * - COUNT ( * ) + + 27 AS col1
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-226
SELECT - 90 + ( SUM( - 74 ) ) - + + COALESCE ( + - 18, + 83 + + COUNT( * ) ) * + + 97 * - 16
----
-28100

skipif mysql # not compatible
query I rowsort label-226
SELECT - 90 + ( SUM ( - 74 ) ) - + + COALESCE ( + - 18, + 83 + + COUNT ( * ) ) * + + 97 * - 16
----
-28100

onlyif mysql # aggregate syntax: 
query I rowsort label-227
SELECT ALL COALESCE ( - - 2, - - SUM( - + 58 ) )
----
2

skipif mysql # not compatible
query I rowsort label-227
SELECT ALL COALESCE ( - - 2, - - SUM ( - + 58 ) )
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-228
SELECT ALL 73 + - 95 DIV + 62
----
72

skipif mysql # not compatible
query I rowsort label-228
SELECT ALL 73 + - 95 / + 62
----
72

query I rowsort
SELECT ALL 87 + 97 AS col1
----
184

query I rowsort
SELECT DISTINCT + 49 + - + 54 * + 68
----
-3623

query I rowsort
SELECT ALL - 91 + + 51 - + 68 * + + 37
----
-2556

onlyif mysql # aggregate syntax: 
query I rowsort label-232
SELECT SUM( 5 ) * 55 * 92 + - ( NULLIF ( + 78, + + 65 ) ) AS col0
----
25222

skipif mysql # not compatible
query I rowsort label-232
SELECT SUM ( 5 ) * 55 * 92 + - ( NULLIF ( + 78, + + 65 ) ) AS col0
----
25222

onlyif mysql # DIV for integer division: 
query II rowsort label-233
SELECT - + 20 AS col1, + 91 DIV 10
----
-20
9

skipif mysql # not compatible
query II rowsort label-233
SELECT - + 20 AS col1, + 91 / 10
----
-20
9

query I rowsort
SELECT 64 + + 17 AS col1
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-235
SELECT SUM( DISTINCT + - 17 )
----
-17

skipif mysql # not compatible
query I rowsort label-235
SELECT SUM ( DISTINCT + - 17 )
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-236
SELECT + 6 * - - ( - - NULLIF ( + - 81, + + 82 ) ) * - CASE + + MAX( ALL 38 ) WHEN + COUNT( * ) - 32 * + 50 THEN + + 66 WHEN MAX( - + 28 ) / - + 99 THEN NULL END + 65 - 29
----
NULL

skipif mysql # not compatible
query I rowsort label-236
SELECT + 6 * - - ( - - NULLIF ( + - 81, + + 82 ) ) * - CASE + + MAX ( ALL 38 ) WHEN + COUNT ( * ) - 32 * + 50 THEN + + 66 WHEN MAX ( - + 28 ) / - + 99 THEN NULL END + 65 - 29
----
NULL

query I rowsort
SELECT ALL 76 + 84
----
160

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-238
SELECT ALL - + 80 AS col2, + MAX( DISTINCT 53 ) * + CAST( NULL AS SIGNED ) * 98 - 96 + + 30
----
-80
NULL

skipif mysql # not compatible
query II rowsort label-238
SELECT ALL - + 80 AS col2, + MAX ( DISTINCT 53 ) * + CAST ( NULL AS INTEGER ) * 98 - 96 + + 30
----
-80
NULL

query I rowsort
SELECT DISTINCT - - 70 + 70
----
140

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-240
SELECT DISTINCT - COALESCE ( + MIN( ALL - 42 ), - COUNT( * ) - + + 42, - CAST( + COUNT( * ) AS SIGNED ) + + 14 + + COUNT( * ) + 36 * + 11 - 98 * + 67 * + + 64 ) AS col1
----
42

skipif mysql # not compatible
query I rowsort label-240
SELECT DISTINCT - COALESCE ( + MIN ( ALL - 42 ), - COUNT ( * ) - + + 42, - CAST ( + COUNT ( * ) AS INTEGER ) + + 14 + + COUNT ( * ) + 36 * + 11 - 98 * + 67 * + + 64 ) AS col1
----
42

query II rowsort
SELECT 81 * 94, - 63 * 60 + - 80 - + 54 + + 65 AS col0
----
7614
-3849

query I rowsort
SELECT 55 + 25 AS col0
----
80

query II rowsort
SELECT ALL - ( 12 ), + 21 * + 42 AS col1
----
-12
882

onlyif mysql # aggregate syntax: 
query II rowsort label-244
SELECT 71 * - 9, - COUNT( * ) col0
----
-639
-1

skipif mysql # not compatible
query II rowsort label-244
SELECT 71 * - 9, - COUNT ( * ) col0
----
-639
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-245
SELECT 7 * 98 * + - MIN( - 86 ) * - COUNT( * ) + + 32
----
-58964

skipif mysql # not compatible
query I rowsort label-245
SELECT 7 * 98 * + - MIN ( - 86 ) * - COUNT ( * ) + + 32
----
-58964

query I rowsort
SELECT DISTINCT - 70 / CASE - 63 WHEN + + 74 THEN NULL WHEN ( 6 ) / + ( - + 13 ) THEN - - 10 * - 77 ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT + ( 34 ) * - 10 * + + 17 - - ( + 23 ) AS col2
----
-5757

query II rowsort
SELECT ALL - 80 - 71 AS col0, - 88 AS col1
----
-151
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-249
SELECT ALL ( + - 36 ) * + 18 * COUNT( * )
----
-648

skipif mysql # not compatible
query I rowsort label-249
SELECT ALL ( + - 36 ) * + 18 * COUNT ( * )
----
-648

query I rowsort
SELECT ALL - 7 * 12
----
-84

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

skipif mysql # not compatible
query I rowsort label-251
SELECT ALL - NULLIF ( COUNT ( * ), + + 88 )
----
-1

query I rowsort
SELECT 90 + + 78 * - 26 - - 33 AS col2
----
-1905

query I rowsort
SELECT ALL 1 * + 19
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-254
SELECT 96 * 87 * SUM( ( - 69 ) ) * - + 41
----
23627808

skipif mysql # not compatible
query I rowsort label-254
SELECT 96 * 87 * SUM ( ( - 69 ) ) * - + 41
----
23627808

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-256
SELECT DISTINCT CASE 72 WHEN 97 + - CAST( 64 AS DECIMAL ) THEN + 90 ELSE + MAX( DISTINCT - + 20 ) + + - MIN( - - 87 ) END
----
-107

skipif mysql # not compatible
query I rowsort label-256
SELECT DISTINCT CASE 72 WHEN 97 + - CAST ( 64 AS REAL ) THEN + 90 ELSE + MAX ( DISTINCT - + 20 ) + + - MIN ( - - 87 ) END
----
-107

query I rowsort
SELECT DISTINCT + 81 + + 16
----
97

query I rowsort
SELECT ALL 18 * + 40 - 47
----
673

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

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

query I rowsort
SELECT ALL 57 + - 21 - + 51 AS col2
----
-15

onlyif mysql # aggregate syntax: 
query II rowsort label-261
SELECT DISTINCT 62 + + 83 - + 41 + + - 8 * - COALESCE ( + + 80, + COUNT( * ) - + + 39 ) * - 36 + 34, - 22 AS col0
----
-22902
-22

skipif mysql # not compatible
query II rowsort label-261
SELECT DISTINCT 62 + + 83 - + 41 + + - 8 * - COALESCE ( + + 80, + COUNT ( * ) - + + 39 ) * - 36 + 34, - 22 AS col0
----
-22902
-22

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-263
SELECT MAX( DISTINCT + 35 ) DIV - 68 * - 86 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-263
SELECT MAX ( DISTINCT + 35 ) / - 68 * - 86 AS col1
----
0

query I rowsort
SELECT - - ( 43 )
----
43

query II rowsort
SELECT 20 - + + 15 * + 44, + 87 + - 25 AS col2
----
-640
62

onlyif mysql # aggregate syntax: 
query I rowsort label-266
SELECT + 81 * 48 * + 78 * + MAX( - 28 ) - + + 22 * 54 AS col1
----
-8492580

skipif mysql # not compatible
query I rowsort label-266
SELECT + 81 * 48 * + 78 * + MAX ( - 28 ) - + + 22 * 54 AS col1
----
-8492580

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-267
SELECT 66 + + - 41 + COUNT( - 61 ) - COUNT( * ) * - - 58 DIV COUNT( * ) AS col0, SUM( ALL 1 ) AS col2
----
-32
1

skipif mysql # not compatible
query II rowsort label-267
SELECT 66 + + - 41 + COUNT ( - 61 ) - COUNT ( * ) * - - 58 / COUNT ( * ) AS col0, SUM ( ALL 1 ) AS col2
----
-32
1

onlyif mysql # aggregate syntax: 
query I rowsort label-268
SELECT DISTINCT + MAX( DISTINCT + 20 ) AS col2
----
20

skipif mysql # not compatible
query I rowsort label-268
SELECT DISTINCT + MAX ( DISTINCT + 20 ) AS col2
----
20

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

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-270
SELECT + 3 + + + 98 - 28 - - 96 * + CASE + + CAST( AVG ( DISTINCT + 63 ) AS DECIMAL ) WHEN + 4 THEN NULL WHEN + 95 THEN + + 78 * - ( + CAST( NULL AS SIGNED ) ) * - CAST( 14 AS SIGNED ) + 7 WHEN 6 THEN NULL END * - 61 * 95 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-270
SELECT + 3 + + + 98 - 28 - - 96 * + CASE + + CAST ( AVG ( DISTINCT + 63 ) AS REAL ) WHEN + 4 THEN NULL WHEN + 95 THEN + + 78 * - ( + CAST ( NULL AS INTEGER ) ) * - CAST ( 14 AS INTEGER ) + 7 WHEN 6 THEN NULL END * - 61 * 95 AS col0
----
NULL

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

query I rowsort
SELECT + 21 * - - 66
----
1386

query I rowsort
SELECT NULLIF ( + 0, - - 95 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-274
SELECT ( + 65 ) * - - 31 + 86 * CAST( CAST( NULL AS SIGNED ) AS SIGNED ) * - 32 + - - COUNT( * ) AS col0, + COUNT( - - 14 ) AS col0
----
NULL
1

skipif mysql # not compatible
query II rowsort label-274
SELECT ( + 65 ) * - - 31 + 86 * CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) * - 32 + - - COUNT ( * ) AS col0, + COUNT ( - - 14 ) AS col0
----
NULL
1

query II rowsort
SELECT ALL + 16 AS col2, + 93 * - 36
----
16
-3348

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-276
SELECT ALL 31 * 52 - + 2 - + 35 * + - 63 * + 24 DIV - COUNT( * ) + + - 4 DIV 81 * 85
----
-51310

skipif mysql # not compatible
query I rowsort label-276
SELECT ALL 31 * 52 - + 2 - + 35 * + - 63 * + 24 / - COUNT ( * ) + + - 4 / 81 * 85
----
-51310

query I rowsort
SELECT ALL + ( CASE + 73 WHEN 5 + - 52 * + 29 THEN + + 67 END ) AS col1
----
NULL

query II rowsort
SELECT + 89 col1, ( + 29 ) col1
----
89
29

onlyif mysql # aggregate syntax: 
query I rowsort label-279
SELECT ALL + MAX( 66 )
----
66

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

query I rowsort
SELECT - 43 * 3
----
-129

query I rowsort
SELECT ALL - 75 * - + 28
----
2100

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-283
SELECT + 31 + - + 92 - - AVG ( DISTINCT + + 9 ) / - CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-283
SELECT + 31 + - + 92 - - AVG ( DISTINCT + + 9 ) / - CAST ( NULL AS REAL ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-284
SELECT - CAST( COUNT( * ) AS SIGNED ) * + 55 + - 65 AS col2
----
-120

skipif mysql # not compatible
query I rowsort label-284
SELECT - CAST ( COUNT ( * ) AS INTEGER ) * + 55 + - 65 AS col2
----
-120

onlyif mysql # DIV for integer division: 
query I rowsort label-285
SELECT DISTINCT + 31 DIV + 78
----
0

skipif mysql # not compatible
query I rowsort label-285
SELECT DISTINCT + 31 / + 78
----
0

query I rowsort
SELECT ALL + 2 * + - 0 * + NULLIF ( 68, + 38 ) * - 99 + + 96
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-287
SELECT ALL + 19 * + 13 + + CASE - - ( + 34 ) WHEN + 55 * 20 + - 0 - + 76 + SUM( + 89 ) + 73 * + 4 * + 41 + - - 92 + + 91 THEN - NULLIF ( + - 31, + NULLIF ( + 85, + 27 ) ) WHEN 33 * - MAX( DISTINCT - 62 ) THEN - 34 + - 14 * 9 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-287
SELECT ALL + 19 * + 13 + + CASE - - ( + 34 ) WHEN + 55 * 20 + - 0 - + 76 + SUM ( + 89 ) + 73 * + 4 * + 41 + - - 92 + + 91 THEN - NULLIF ( + - 31, + NULLIF ( + 85, + 27 ) ) WHEN 33 * - MAX ( DISTINCT - 62 ) THEN - 34 + - 14 * 9 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-288
SELECT ALL + SUM( 69 ) AS col1
----
69

skipif mysql # not compatible
query I rowsort label-288
SELECT ALL + SUM ( 69 ) AS col1
----
69

query I rowsort
SELECT - 77 + + 15 * 88 AS col1
----
1243

query II rowsort
SELECT + 81 AS col1, - 98 + - - 82
----
81
-16

query I rowsort
SELECT ALL 89 * ( + 84 ) AS col0
----
7476

onlyif mysql # aggregate syntax: 
query I rowsort label-292
SELECT ALL + - COALESCE ( + 25, - + COUNT( * ) ) AS col0
----
-25

skipif mysql # not compatible
query I rowsort label-292
SELECT ALL + - COALESCE ( + 25, - + COUNT ( * ) ) AS col0
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-293
SELECT + MAX( ALL - 38 )
----
-38

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

query I rowsort
SELECT ALL + + 16 + + - 58 AS col1
----
-42

query I rowsort
SELECT ALL + 35 + - 57 AS col2
----
-22

query I rowsort
SELECT - - 77 - - 92
----
169

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-299
SELECT DISTINCT - + COUNT( * ) + + + CASE - 33 WHEN COUNT( * ) THEN 1 END
----
NULL

skipif mysql # not compatible
query I rowsort label-299
SELECT DISTINCT - + COUNT ( * ) + + + CASE - 33 WHEN COUNT ( * ) THEN 1 END
----
NULL

query I rowsort
SELECT + COALESCE ( - 88, + 1 ) + - ( 0 )
----
-88

query I rowsort
SELECT + - 22 * + 62 + + 27 AS col2
----
-1337

onlyif mysql # aggregate syntax: 
query I rowsort label-302
SELECT ( SUM( DISTINCT - 72 ) ) col0
----
-72

skipif mysql # not compatible
query I rowsort label-302
SELECT ( SUM ( DISTINCT - 72 ) ) col0
----
-72

query I rowsort
SELECT ALL 91 + - 48 AS col1
----
43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-304
SELECT - ( 47 ) + + 88 + + COUNT( * ) * - COUNT( * ) + + CASE - 82 WHEN - 2 THEN + + 77 / - 10 + + + 1 * + 94 / + 12 WHEN - 41 * - CAST( MAX( + 9 ) AS SIGNED ) * - CASE 2 WHEN + 39 THEN 64 * ( 42 ) END * 41 + - 64 THEN NULL END + 42
----
NULL

skipif mysql # not compatible
query I rowsort label-304
SELECT - ( 47 ) + + 88 + + COUNT ( * ) * - COUNT ( * ) + + CASE - 82 WHEN - 2 THEN + + 77 / - 10 + + + 1 * + 94 / + 12 WHEN - 41 * - CAST ( MAX ( + 9 ) AS INTEGER ) * - CASE 2 WHEN + 39 THEN 64 * ( 42 ) END * 41 + - 64 THEN NULL END + 42
----
NULL

query I rowsort
SELECT DISTINCT - - 11 + + - 8 AS col1
----
3

query I rowsort
SELECT + 75 + - + 53
----
22

onlyif mysql # DIV for integer division: 
query I rowsort label-307
SELECT ALL 18 DIV + 56 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-307
SELECT ALL 18 / + 56 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-308
SELECT - NULLIF ( + NULLIF ( - + 3, - 6 + + CASE + 17 WHEN - ( COUNT( * ) ) THEN NULL WHEN 25 + + 97 THEN 94 + + 62 + - 40 * 56 * 98 * - + 50 + + 95 WHEN - 2 THEN NULL ELSE - CAST( NULL AS SIGNED ) + COUNT( * ) END ), + 77 + + 41 )
----
3

skipif mysql # not compatible
query I rowsort label-308
SELECT - NULLIF ( + NULLIF ( - + 3, - 6 + + CASE + 17 WHEN - ( COUNT ( * ) ) THEN NULL WHEN 25 + + 97 THEN 94 + + 62 + - 40 * 56 * 98 * - + 50 + + 95 WHEN - 2 THEN NULL ELSE - CAST ( NULL AS INTEGER ) + COUNT ( * ) END ), + 77 + + 41 )
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-309
SELECT DISTINCT CASE + ( - + ( 75 ) ) WHEN 37 * - CAST( - CASE - 71 WHEN - + 3 THEN 48 ELSE - SUM( + - 94 ) / - + COALESCE ( ( - 43 ), - 24 * - CAST( NULL AS SIGNED ) + + + 72 - 72 ) - 29 * 62 END AS SIGNED ) + 82 THEN ( 43 ) WHEN - 54 THEN - 17 + + 68 ELSE NULL END - + 17
----
NULL

skipif mysql # not compatible
query I rowsort label-309
SELECT DISTINCT CASE + ( - + ( 75 ) ) WHEN 37 * - CAST ( - CASE - 71 WHEN - + 3 THEN 48 ELSE - SUM ( + - 94 ) / - + COALESCE ( ( - 43 ), - 24 * - CAST ( NULL AS INTEGER ) + + + 72 - 72 ) - 29 * 62 END AS INTEGER ) + 82 THEN ( 43 ) WHEN - 54 THEN - 17 + + 68 ELSE NULL END - + 17
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-310
SELECT - CASE - 55 WHEN - 95 * CAST( NULL AS DECIMAL ) + - COUNT( * ) THEN 88 END
----
NULL

skipif mysql # not compatible
query I rowsort label-310
SELECT - CASE - 55 WHEN - 95 * CAST ( NULL AS REAL ) + - COUNT ( * ) THEN 88 END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-311
SELECT + 24 + + 14 * NULLIF ( 73, COALESCE ( 20, - + 36 * + 55 ) ) AS col1, ( + MIN( - - 68 ) ) * - 17 AS col0
----
1046
-1156

skipif mysql # not compatible
query II rowsort label-311
SELECT + 24 + + 14 * NULLIF ( 73, COALESCE ( 20, - + 36 * + 55 ) ) AS col1, ( + MIN ( - - 68 ) ) * - 17 AS col0
----
1046
-1156

query I rowsort
SELECT ALL 94 - + 4
----
90

query I rowsort
SELECT DISTINCT 33 * + 19
----
627

onlyif mysql # aggregate syntax: 
query I rowsort label-314
SELECT ALL 79 * + MIN( - 5 )
----
-395

skipif mysql # not compatible
query I rowsort label-314
SELECT ALL 79 * + MIN ( - 5 )
----
-395

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-315
SELECT ALL 38 * + CASE + + 29 WHEN + ( 76 ) * ( COUNT( * ) ) - CASE - - 64 WHEN 23 THEN 2 * - - 82 WHEN - - 50 + - + CAST( - COUNT( * ) AS SIGNED ) THEN NULL WHEN ( - + ( + + 79 ) ) THEN NULL END - + 3 THEN NULL WHEN COUNT( * ) THEN COUNT( * ) WHEN 87 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-315
SELECT ALL 38 * + CASE + + 29 WHEN + ( 76 ) * ( COUNT ( * ) ) - CASE - - 64 WHEN 23 THEN 2 * - - 82 WHEN - - 50 + - + CAST ( - COUNT ( * ) AS INTEGER ) THEN NULL WHEN ( - + ( + + 79 ) ) THEN NULL END - + 3 THEN NULL WHEN COUNT ( * ) THEN COUNT ( * ) WHEN 87 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-316
SELECT ALL + MAX( + - 34 ), 55 col2
----
-34
55

skipif mysql # not compatible
query II rowsort label-316
SELECT ALL + MAX ( + - 34 ), 55 col2
----
-34
55

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

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

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

query I rowsort
SELECT + 2 * + 3 AS col2
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-320
SELECT + COUNT( * ) - + 47 * + - 92 AS col2
----
4325

skipif mysql # not compatible
query I rowsort label-320
SELECT + COUNT ( * ) - + 47 * + - 92 AS col2
----
4325

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-321
SELECT + CAST( 66 AS SIGNED ) * + + COUNT( DISTINCT - 82 ) + + COUNT( * )
----
67

skipif mysql # not compatible
query I rowsort label-321
SELECT + CAST ( 66 AS INTEGER ) * + + COUNT ( DISTINCT - 82 ) + + COUNT ( * )
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-322
SELECT + CASE - - 16 WHEN - NULLIF ( - - COUNT( ALL + + 14 ), NULLIF ( - 65, - - COALESCE ( - 35, - NULLIF ( 35, 31 + ( 82 ) ), + SUM( COALESCE ( - - 21, + 54 * - 85 * - 84, 34 ) ) ) ) + + 99 ) THEN NULL WHEN COUNT( * ) THEN - COUNT( * ) END * 7 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-322
SELECT + CASE - - 16 WHEN - NULLIF ( - - COUNT ( ALL + + 14 ), NULLIF ( - 65, - - COALESCE ( - 35, - NULLIF ( 35, 31 + ( 82 ) ), + SUM ( COALESCE ( - - 21, + 54 * - 85 * - 84, 34 ) ) ) ) + + 99 ) THEN NULL WHEN COUNT ( * ) THEN - COUNT ( * ) END * 7 AS col2
----
NULL

query I rowsort
SELECT - 72 * - - 44 AS col1
----
-3168

query II rowsort
SELECT - 90 * - + 34 AS col0, 25
----
3060
25

onlyif mysql # DIV for integer division: 
query I rowsort label-325
SELECT 53 DIV - 89 - + 46
----
-46

skipif mysql # not compatible
query I rowsort label-325
SELECT 53 / - 89 - + 46
----
-46

query I rowsort
SELECT DISTINCT - 14 * 93 + - 61 AS col1
----
-1363

onlyif mysql # aggregate syntax: 
query I rowsort label-327
SELECT ALL - 48 * - COUNT( * ) + - - ( 41 ) * + 24 + + + 45
----
1077

skipif mysql # not compatible
query I rowsort label-327
SELECT ALL - 48 * - COUNT ( * ) + - - ( 41 ) * + 24 + + + 45
----
1077

query I rowsort
SELECT + + 6 + + - 44 AS col2
----
-38

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-330
SELECT - 79 DIV + 39
----
-2

skipif mysql # not compatible
query I rowsort label-330
SELECT - 79 / + 39
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-331
SELECT - 83 - - NULLIF ( + ( + 3 ), - 71 ) + 50 + COUNT( * ) * 34 AS col0
----
4

skipif mysql # not compatible
query I rowsort label-331
SELECT - 83 - - NULLIF ( + ( + 3 ), - 71 ) + 50 + COUNT ( * ) * 34 AS col0
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-332
SELECT DISTINCT + MIN( ALL - 75 )
----
-75

skipif mysql # not compatible
query I rowsort label-332
SELECT DISTINCT + MIN ( ALL - 75 )
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-333
SELECT ALL + 90 * 72 * + + MIN( DISTINCT - 9 ) + - 18 + - 88 * + + 53 AS col1
----
-63002

skipif mysql # not compatible
query I rowsort label-333
SELECT ALL + 90 * 72 * + + MIN ( DISTINCT - 9 ) + - 18 + - 88 * + + 53 AS col1
----
-63002

query I rowsort
SELECT - 36 * - 86 AS col1
----
3096

onlyif mysql # DIV for integer division: 
query II rowsort label-335
SELECT ALL + 29 DIV + 19 AS col1, + 49 AS col0
----
1
49

skipif mysql # not compatible
query II rowsort label-335
SELECT ALL + 29 / + 19 AS col1, + 49 AS col0
----
1
49

onlyif mysql # DIV for integer division: 
query II rowsort label-336
SELECT - - 23 DIV - + 68 AS col1, + 33 + 53
----
0
86

skipif mysql # not compatible
query II rowsort label-336
SELECT - - 23 / - + 68 AS col1, + 33 + 53
----
0
86

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-338
SELECT DISTINCT + - 47 DIV + - 20 + - 20 col2
----
-18

skipif mysql # not compatible
query I rowsort label-338
SELECT DISTINCT + - 47 / + - 20 + - 20 col2
----
-18

query I rowsort
SELECT - 63 + + 78
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-340
SELECT ALL + 79 * + COUNT( * ) * 20 AS col2
----
1580

skipif mysql # not compatible
query I rowsort label-340
SELECT ALL + 79 * + COUNT ( * ) * 20 AS col2
----
1580

onlyif mysql # aggregate syntax: 
query II rowsort label-341
SELECT ALL 34 * - COUNT( * ) + + 49 - - - 30 AS col2, 99 * 78 * + 11
----
-15
84942

skipif mysql # not compatible
query II rowsort label-341
SELECT ALL 34 * - COUNT ( * ) + + 49 - - - 30 AS col2, 99 * 78 * + 11
----
-15
84942

query II rowsort
SELECT 26 * + 47, CASE + 66 WHEN + 6 * - - 74 THEN 82 END AS col1
----
1222
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-343
SELECT CAST( + 2 AS SIGNED ) + 99 + COUNT( * )
----
102

skipif mysql # not compatible
query I rowsort label-343
SELECT CAST ( + 2 AS INTEGER ) + 99 + COUNT ( * )
----
102

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

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

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

skipif mysql # not compatible
query I rowsort label-345
SELECT - 52 * ( - COUNT ( * ) )
----
52

query I rowsort
SELECT ALL + ( - 38 ) * + - 17
----
646

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

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

query I rowsort
SELECT ALL + 93 * 78 * - ( - 63 )
----
457002

onlyif mysql # aggregate syntax: 
query II rowsort label-349
SELECT MIN( - 57 ) + 59 AS col2, 91
----
2
91

skipif mysql # not compatible
query II rowsort label-349
SELECT MIN ( - 57 ) + 59 AS col2, 91
----
2
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-350
SELECT 0 + + + ( - MIN( CAST( + CAST( 57 AS SIGNED ) AS SIGNED ) ) )
----
-57

skipif mysql # not compatible
query I rowsort label-350
SELECT 0 + + + ( - MIN ( CAST ( + CAST ( 57 AS INTEGER ) AS INTEGER ) ) )
----
-57

query II rowsort
SELECT DISTINCT 81, - 83 AS col1
----
81
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-352
SELECT NULLIF ( + 29, + - 95 - - + 53 * + ( - MIN( DISTINCT + + 63 ) ) ) - + - 59 AS col0
----
88

skipif mysql # not compatible
query I rowsort label-352
SELECT NULLIF ( + 29, + - 95 - - + 53 * + ( - MIN ( DISTINCT + + 63 ) ) ) - + - 59 AS col0
----
88

onlyif mysql # DIV for integer division: 
query I rowsort label-353
SELECT ALL NULLIF ( - 34, - 22 * 42 DIV 91 ) DIV + - 65
----
0

skipif mysql # not compatible
query I rowsort label-353
SELECT ALL NULLIF ( - 34, - 22 * 42 / 91 ) / + - 65
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-354
SELECT 90 + - 69 * + MAX( ALL - + CASE + ( - 76 ) WHEN + CAST( + 88 AS SIGNED ) THEN NULL ELSE COALESCE ( + - ( - 92 ), + - 57 * 81 ) DIV 88 END ) + - ( - MAX( ALL - 20 ) ) AS col1
----
139

skipif mysql # not compatible
query I rowsort label-354
SELECT 90 + - 69 * + MAX ( ALL - + CASE + ( - 76 ) WHEN + CAST ( + 88 AS INTEGER ) THEN NULL ELSE COALESCE ( + - ( - 92 ), + - 57 * 81 ) / 88 END ) + - ( - MAX ( ALL - 20 ) ) AS col1
----
139

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

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

query I rowsort
SELECT NULLIF ( + 76, - 36 * - - 13 ) * + 34 AS col2
----
2584

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-357
SELECT ALL MIN( ALL CAST( NULL AS DECIMAL ) ) + 93 + + - 31 + - 97
----
NULL

skipif mysql # not compatible
query I rowsort label-357
SELECT ALL MIN ( ALL CAST ( NULL AS REAL ) ) + 93 + + - 31 + - 97
----
NULL

query I rowsort
SELECT - 66 * - 44 + 87
----
2991

onlyif mysql # aggregate syntax: 
query I rowsort label-359
SELECT ALL COALESCE ( + 95, NULLIF ( + 31, - MAX( - - 78 ) ) * - 59 * - ( - 30 ) + - 85 ) + + 2 + + 32 * + 2 AS col1
----
161

skipif mysql # not compatible
query I rowsort label-359
SELECT ALL COALESCE ( + 95, NULLIF ( + 31, - MAX ( - - 78 ) ) * - 59 * - ( - 30 ) + - 85 ) + + 2 + + 32 * + 2 AS col1
----
161

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

skipif mysql # not compatible
query I rowsort label-360
SELECT + + NULLIF ( + - COUNT ( * ), + ( - 97 ) )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-361
SELECT 80 * + - CAST( - + 69 AS SIGNED ) + COUNT( * ) * - - 10 + + ( 49 )
----
5579

skipif mysql # not compatible
query I rowsort label-361
SELECT 80 * + - CAST ( - + 69 AS INTEGER ) + COUNT ( * ) * - - 10 + + ( 49 )
----
5579

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-363
SELECT + 34 * + COUNT( * ) * + + 31 * + - CASE + 32 WHEN - 92 * CASE + 75 WHEN + COUNT( CAST( NULL AS SIGNED ) ) THEN NULL WHEN + + COUNT( * ) * - MIN( - 97 ) * - + 86 * + COUNT( * ) * - 63 + + - 9 + - 46 + + 1 - 43 * 0 THEN NULL ELSE + 26 END THEN + 55 * - 35 + 32 * 67 WHEN - 70 THEN SUM( DISTINCT + 47 ) + 67 ELSE 96 + 1 END
----
-102238

skipif mysql # not compatible
query I rowsort label-363
SELECT + 34 * + COUNT ( * ) * + + 31 * + - CASE + 32 WHEN - 92 * CASE + 75 WHEN + COUNT ( CAST ( NULL AS INTEGER ) ) THEN NULL WHEN + + COUNT ( * ) * - MIN ( - 97 ) * - + 86 * + COUNT ( * ) * - 63 + + - 9 + - 46 + + 1 - 43 * 0 THEN NULL ELSE + 26 END THEN + 55 * - 35 + 32 * 67 WHEN - 70 THEN SUM ( DISTINCT + 47 ) + 67 ELSE 96 + 1 END
----
-102238

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-366
SELECT 64 * - - 51 + - 4 AS col0, COUNT( * )
----
3260
1

skipif mysql # not compatible
query II rowsort label-366
SELECT 64 * - - 51 + - 4 AS col0, COUNT ( * )
----
3260
1

onlyif mysql # aggregate syntax: 
query I rowsort label-367
SELECT ALL - MIN( COALESCE ( + 14, - 29 ) ) AS col0
----
-14

skipif mysql # not compatible
query I rowsort label-367
SELECT ALL - MIN ( COALESCE ( + 14, - 29 ) ) AS col0
----
-14

query II rowsort
SELECT DISTINCT + 69 AS col1, 63 * 99 AS col1
----
69
6237

onlyif mysql # aggregate syntax: 
query I rowsort label-369
SELECT COUNT( * ) * + 0 + - 96 * + - 79 - - - COUNT( * ) + - 52 AS col2
----
7531

skipif mysql # not compatible
query I rowsort label-369
SELECT COUNT ( * ) * + 0 + - 96 * + - 79 - - - COUNT ( * ) + - 52 AS col2
----
7531

query I rowsort
SELECT + ( 19 ) + - + NULLIF ( + + 68, + AVG ( - 4 ) ) * 58 * - 29 AS col1
----
114395

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-371
SELECT ALL + COALESCE ( - - 93, CASE 14 WHEN + 28 THEN - - COALESCE ( + CASE - 40 WHEN - 57 + + - 89 + 92 THEN + - 23 * 92 + - 61 - - 97 WHEN 49 * CASE - 49 WHEN 35 * - + COUNT( DISTINCT + 29 ) + 33 DIV + CASE 31 + 83 WHEN 29 * + 65 + 90 THEN CAST( + 63 AS DECIMAL ) * 82 WHEN + 98 * - 18 THEN + 43 ELSE NULL END THEN - 97 * - SUM( ALL - 83 ) WHEN 95 THEN + CAST( NULL AS SIGNED ) ELSE NULL END THEN NULL ELSE NULL END, - 68 DIV 50 ) * - 78 ELSE NULL END DIV - 33 ) AS col1
----
93

skipif mysql # not compatible
query I rowsort label-371
SELECT ALL + COALESCE ( - - 93, CASE 14 WHEN + 28 THEN - - COALESCE ( + CASE - 40 WHEN - 57 + + - 89 + 92 THEN + - 23 * 92 + - 61 - - 97 WHEN 49 * CASE - 49 WHEN 35 * - + COUNT ( DISTINCT + 29 ) + 33 / + CASE 31 + 83 WHEN 29 * + 65 + 90 THEN CAST ( + 63 AS REAL ) * 82 WHEN + 98 * - 18 THEN + 43 ELSE NULL END THEN - 97 * - SUM ( ALL - 83 ) WHEN 95 THEN + CAST ( NULL AS INTEGER ) ELSE NULL END THEN NULL ELSE NULL END, - 68 / 50 ) * - 78 ELSE NULL END / - 33 ) AS col1
----
93

query I rowsort
SELECT + 50 * + 3 AS col0
----
150

query I rowsort
SELECT 33 + + + 54
----
87

query I rowsort
SELECT + 59 + + 57 * 97
----
5588

query II rowsort
SELECT DISTINCT + 7 AS col0, + 68 col0
----
7
68

onlyif mysql # aggregate syntax: 
query I rowsort label-376
SELECT 90 * + 93 * + COUNT( ALL - 38 )
----
8370

skipif mysql # not compatible
query I rowsort label-376
SELECT 90 * + 93 * + COUNT ( ALL - 38 )
----
8370

query I rowsort
SELECT 0 * - 4 AS col1
----
0

query II rowsort
SELECT DISTINCT 76, 96 * 90 + 89 * - - 64 AS col2
----
76
14336

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-379
SELECT 16 + - CASE - 51 WHEN - - 80 / - COUNT( * ) * 14 THEN + 36 ELSE - - CAST( NULL AS SIGNED ) + - COUNT( * ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-379
SELECT 16 + - CASE - 51 WHEN - - 80 / - COUNT ( * ) * 14 THEN + 36 ELSE - - CAST ( NULL AS INTEGER ) + - COUNT ( * ) END AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-380
SELECT ALL + CASE - 21 WHEN - 73 THEN - AVG ( DISTINCT CAST( + 41 AS SIGNED ) ) + - + 38 ELSE NULL END + 35
----
NULL

skipif mysql # not compatible
query I rowsort label-380
SELECT ALL + CASE - 21 WHEN - 73 THEN - AVG ( DISTINCT CAST ( + 41 AS INTEGER ) ) + - + 38 ELSE NULL END + 35
----
NULL

query I rowsort
SELECT 90 * - + 40 * - ( + ( - ( - + 65 ) ) ) col0
----
234000

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-382
SELECT COUNT( * ) + + 94 DIV 76
----
2

skipif mysql # not compatible
query I rowsort label-382
SELECT COUNT ( * ) + + 94 / 76
----
2

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

query I rowsort
SELECT DISTINCT + 44 + 43
----
87

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

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

query I rowsort
SELECT NULLIF ( 66, - 83 ) * - + 0 * 24
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-387
SELECT DISTINCT - 72 + - SUM( DISTINCT + 86 ) AS col1
----
-158

skipif mysql # not compatible
query I rowsort label-387
SELECT DISTINCT - 72 + - SUM ( DISTINCT + 86 ) AS col1
----
-158

onlyif mysql # aggregate syntax: 
query I rowsort label-388
SELECT ALL COALESCE ( + 48, - - 93 + CASE - 39 WHEN - ( NULLIF ( 29, 89 + - 95 * COUNT( * ) - - + ( - - 44 ) ) ) THEN - + 84 + + COUNT( * ) WHEN + 67 THEN - COUNT( * ) END ) + 71
----
119

skipif mysql # not compatible
query I rowsort label-388
SELECT ALL COALESCE ( + 48, - - 93 + CASE - 39 WHEN - ( NULLIF ( 29, 89 + - 95 * COUNT ( * ) - - + ( - - 44 ) ) ) THEN - + 84 + + COUNT ( * ) WHEN + 67 THEN - COUNT ( * ) END ) + 71
----
119

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

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

skipif mysql # not compatible
query II rowsort label-390
SELECT COUNT ( * ) AS col0, 22
----
1
22

onlyif mysql # DIV for integer division: 
query I rowsort label-391
SELECT 34 DIV 97 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-391
SELECT 34 / 97 AS col1
----
0

query I rowsort
SELECT ALL 31 * - 53 + + 43 col1
----
-1600

query I rowsort
SELECT 41 * 25
----
1025

query I rowsort
SELECT 15 + 55 AS col1
----
70

query II rowsort
SELECT + 61 AS col1, 68
----
61
68

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-397
SELECT ALL - ( - - CAST( NULL AS SIGNED ) ) / - ( - - 67 ) - + 94 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-397
SELECT ALL - ( - - CAST ( NULL AS INTEGER ) ) / - ( - - 67 ) - + 94 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-398
SELECT 63 * COUNT( - 13 ) / SUM( + ( + - 59 ) ) + 47 * + 92 * + 24 + 55 - - CAST( NULL AS SIGNED ) * - + 77 * 1 + - NULLIF ( + - 52, 88 / CAST( + - 23 AS SIGNED ) + + + 68 * - 93 ) * + - 30
----
NULL

skipif mysql # not compatible
query I rowsort label-398
SELECT 63 * COUNT ( - 13 ) / SUM ( + ( + - 59 ) ) + 47 * + 92 * + 24 + 55 - - CAST ( NULL AS INTEGER ) * - + 77 * 1 + - NULLIF ( + - 52, 88 / CAST ( + - 23 AS INTEGER ) + + + 68 * - 93 ) * + - 30
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-399
SELECT 60 DIV - - 26
----
2

skipif mysql # not compatible
query I rowsort label-399
SELECT 60 / - - 26
----
2

query I rowsort
SELECT + 91 * - + 73 * 2 AS col2
----
-13286

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-401
SELECT + COUNT( * ) DIV + 17 * - 73 + 18 AS col1, - 36 AS col2
----
18
-36

skipif mysql # not compatible
query II rowsort label-401
SELECT + COUNT ( * ) / + 17 * - 73 + 18 AS col1, - 36 AS col2
----
18
-36

query I rowsort
SELECT ALL 34 * - 98 - + + 83 AS col2
----
-3415

query I rowsort
SELECT ALL - 34 * + + ( - 61 ) * + + 59
----
122366

query I rowsort
SELECT - 38 / - - 85 - CASE 89 WHEN + + 59 * + + 2 THEN 70 WHEN - 20 * + 5 THEN NULL END AS col0
----
NULL

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

skipif mysql # not compatible
query I rowsort label-405
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - 80 + + 12
----
NULL

query I rowsort
SELECT DISTINCT + 10 * + 8
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-407
SELECT - 98 + 19 * + COUNT( * ) AS col2
----
-79

skipif mysql # not compatible
query I rowsort label-407
SELECT - 98 + 19 * + COUNT ( * ) AS col2
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-408
SELECT + COUNT( DISTINCT + 83 ) * - 96
----
-96

skipif mysql # not compatible
query I rowsort label-408
SELECT + COUNT ( DISTINCT + 83 ) * - 96
----
-96

query I rowsort
SELECT ALL + + 38 AS col1
----
38

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-410
SELECT + 74, - 93 + + + CAST( NULL AS SIGNED ) * - - 80 col0
----
74
NULL

skipif mysql # not compatible
query II rowsort label-410
SELECT + 74, - 93 + + + CAST ( NULL AS INTEGER ) * - - 80 col0
----
74
NULL

query I rowsort
SELECT DISTINCT + + COALESCE ( 47, - + 28 * + + 36 ) AS col2
----
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-412
SELECT + + 55 AS col0, - MAX( ALL - - COALESCE ( + 18, + CAST( NULL AS SIGNED ) ) ) - COUNT( * ) AS col2
----
55
-19

skipif mysql # not compatible
query II rowsort label-412
SELECT + + 55 AS col0, - MAX ( ALL - - COALESCE ( + 18, + CAST ( NULL AS INTEGER ) ) ) - COUNT ( * ) AS col2
----
55
-19

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

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

query II rowsort
SELECT + + 22 * + - 4, + 84 * 30 * 46 AS col1
----
-88
115920

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-416
SELECT DISTINCT - - CAST( - 31 AS SIGNED ) + 50 + - 95
----
-76

skipif mysql # not compatible
query I rowsort label-416
SELECT DISTINCT - - CAST ( - 31 AS INTEGER ) + 50 + - 95
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-417
SELECT + + COUNT( 15 ) + 20 col2
----
21

skipif mysql # not compatible
query I rowsort label-417
SELECT + + COUNT ( 15 ) + 20 col2
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-418
SELECT ALL COUNT( * ) + + + ( + 69 ) * + 19 + - 62 + - - COALESCE ( + MAX( - - ( + 88 ) ), 57, + + 96 * - + 2 + 44 ) + + 79 * - + 71 * 44 * COUNT( + + ( - 2 ) ) AS col2
----
-245458

skipif mysql # not compatible
query I rowsort label-418
SELECT ALL COUNT ( * ) + + + ( + 69 ) * + 19 + - 62 + - - COALESCE ( + MAX ( - - ( + 88 ) ), 57, + + 96 * - + 2 + 44 ) + + 79 * - + 71 * 44 * COUNT ( + + ( - 2 ) ) AS col2
----
-245458

query I rowsort
SELECT + ( - 20 ) + - + 84 * + + 16 AS col1
----
-1364

onlyif mysql # aggregate syntax: 
query II rowsort label-420
SELECT DISTINCT SUM( ALL + 65 ) AS col0, 8 + - 51
----
65
-43

skipif mysql # not compatible
query II rowsort label-420
SELECT DISTINCT SUM ( ALL + 65 ) AS col0, 8 + - 51
----
65
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-421
SELECT DISTINCT COUNT( * ) + + 11 * - 16 AS col2
----
-175

skipif mysql # not compatible
query I rowsort label-421
SELECT DISTINCT COUNT ( * ) + + 11 * - 16 AS col2
----
-175

onlyif mysql # DIV for integer division: 
query I rowsort label-422
SELECT DISTINCT - ( 22 ) DIV + 54 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-422
SELECT DISTINCT - ( 22 ) / + 54 AS col1
----
0

query I rowsort
SELECT - 13 + + + 78 AS col1
----
65

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-425
SELECT - 31 * + MAX( DISTINCT 82 )
----
-2542

skipif mysql # not compatible
query I rowsort label-425
SELECT - 31 * + MAX ( DISTINCT 82 )
----
-2542

onlyif mysql # aggregate syntax: 
query II rowsort label-426
SELECT DISTINCT SUM( + - 65 ) AS col0, - 41
----
-65
-41

skipif mysql # not compatible
query II rowsort label-426
SELECT DISTINCT SUM ( + - 65 ) AS col0, - 41
----
-65
-41

query I rowsort
SELECT - 7 - 77 - - + 61 * + 36 AS col2
----
2112

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

skipif mysql # not compatible
query I rowsort label-428
SELECT - 77 + + - COUNT ( * ) AS col2
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-429
SELECT - COUNT( DISTINCT + ( - - 50 ) ) + - 96 AS col1
----
-97

skipif mysql # not compatible
query I rowsort label-429
SELECT - COUNT ( DISTINCT + ( - - 50 ) ) + - 96 AS col1
----
-97

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

skipif mysql # not compatible
query I rowsort label-430
SELECT COUNT ( * ) / - 77 + 15 AS col1
----
15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-431
SELECT ALL ( + COUNT( * ) ) DIV 57 * 31 - - + ( - 18 ) AS col1
----
-18

skipif mysql # not compatible
query I rowsort label-431
SELECT ALL ( + COUNT ( * ) ) / 57 * 31 - - + ( - 18 ) AS col1
----
-18

query I rowsort
SELECT - 89 * 94 AS col0
----
-8366

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-434
SELECT DISTINCT - 5 * - + 59, 58 + COUNT( * ) + + 14 DIV - 6 AS col1
----
295
57

skipif mysql # not compatible
query II rowsort label-434
SELECT DISTINCT - 5 * - + 59, 58 + COUNT ( * ) + + 14 / - 6 AS col1
----
295
57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-435
SELECT - 11 DIV - MAX( ALL - 21 ) + - + 41
----
-41

skipif mysql # not compatible
query I rowsort label-435
SELECT - 11 / - MAX ( ALL - 21 ) + - + 41
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-436
SELECT - + 61 * - 88 * - 37 + + - 89 + - SUM( ALL - + 78 )
----
-198627

skipif mysql # not compatible
query I rowsort label-436
SELECT - + 61 * - 88 * - 37 + + - 89 + - SUM ( ALL - + 78 )
----
-198627

query I rowsort
SELECT - 30 + 77 AS col2
----
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-438
SELECT ALL + + NULLIF ( CAST( NULL AS SIGNED ), + 94 ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-438
SELECT ALL + + NULLIF ( CAST ( NULL AS INTEGER ), + 94 ) col0
----
NULL

query I rowsort
SELECT + - COALESCE ( 86, - 79 + + + ( - - 53 ) )
----
-86

query I rowsort
SELECT + + 11 + + - 95
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-441
SELECT COUNT( * ) * - 24 - - SUM( + 76 ) + - - 63
----
115

skipif mysql # not compatible
query I rowsort label-441
SELECT COUNT ( * ) * - 24 - - SUM ( + 76 ) + - - 63
----
115

query I rowsort
SELECT ALL 49 * - - 80 + + + 13
----
3933

query I rowsort
SELECT ALL 2 * + 10 + + 55 AS col1
----
75

query I rowsort
SELECT - + 34 + 95
----
61

onlyif mysql # DIV for integer division: 
query I rowsort label-445
SELECT ALL + 96 * 90 DIV 87 col0
----
99

skipif mysql # not compatible
query I rowsort label-445
SELECT ALL + 96 * 90 / 87 col0
----
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-446
SELECT DISTINCT - 37 * + - 30 DIV COUNT( * )
----
1110

skipif mysql # not compatible
query I rowsort label-446
SELECT DISTINCT - 37 * + - 30 / COUNT ( * )
----
1110

onlyif mysql # aggregate syntax: 
query I rowsort label-447
SELECT ALL - + 27 * 34 + - COUNT( * ) AS col2
----
-919

skipif mysql # not compatible
query I rowsort label-447
SELECT ALL - + 27 * 34 + - COUNT ( * ) AS col2
----
-919

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-448
SELECT 89 * 94 / - ( + + COUNT( * ) ) / - COUNT( * ) + + + CAST( NULL AS SIGNED ) + + + MIN( ( 29 ) ) * + 16 * - COALESCE ( + - ( + ( 56 ) ), - 51 ) + - 83
----
NULL

skipif mysql # not compatible
query I rowsort label-448
SELECT 89 * 94 / - ( + + COUNT ( * ) ) / - COUNT ( * ) + + + CAST ( NULL AS INTEGER ) + + + MIN ( ( 29 ) ) * + 16 * - COALESCE ( + - ( + ( 56 ) ), - 51 ) + - 83
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-449
SELECT DISTINCT - 81 * + CASE - 10 WHEN + COALESCE ( - COUNT( ALL - 62 ), - 17 * - - 32, + - 32 + 19 * - 6 ) THEN NULL WHEN - 65 THEN + 40 END + - + ( + ( - 15 ) ) * - COUNT( DISTINCT 35 )
----
NULL

skipif mysql # not compatible
query I rowsort label-449
SELECT DISTINCT - 81 * + CASE - 10 WHEN + COALESCE ( - COUNT ( ALL - 62 ), - 17 * - - 32, + - 32 + 19 * - 6 ) THEN NULL WHEN - 65 THEN + 40 END + - + ( + ( - 15 ) ) * - COUNT ( DISTINCT 35 )
----
NULL

query I rowsort
SELECT + 73 + 5 AS col2
----
78

query I rowsort
SELECT + 85 * - 62 AS col2
----
-5270

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-454
SELECT ALL COUNT( ALL - 88 ) + + SUM( - 75 )
----
-74

skipif mysql # not compatible
query I rowsort label-454
SELECT ALL COUNT ( ALL - 88 ) + + SUM ( - 75 )
----
-74

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-456
SELECT MAX( + 90 ) col1
----
90

skipif mysql # not compatible
query I rowsort label-456
SELECT MAX ( + 90 ) col1
----
90

query I rowsort
SELECT DISTINCT 61 * + 7 * + 87
----
37149

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-459
SELECT 92, 10 * - - CAST( NULL AS DECIMAL ) + + - 36 AS col2
----
92
NULL

skipif mysql # not compatible
query II rowsort label-459
SELECT 92, 10 * - - CAST ( NULL AS REAL ) + + - 36 AS col2
----
92
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-460
SELECT ALL COUNT( DISTINCT - - 42 ) * 84 - + 18 AS col2, 38
----
66
38

skipif mysql # not compatible
query II rowsort label-460
SELECT ALL COUNT ( DISTINCT - - 42 ) * 84 - + 18 AS col2, 38
----
66
38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-461
SELECT DISTINCT CAST( + + 43 AS SIGNED ) - 91, COUNT( * ) * ( + 34 ) * - - 3 AS col0
----
-48
102

skipif mysql # not compatible
query II rowsort label-461
SELECT DISTINCT CAST ( + + 43 AS INTEGER ) - 91, COUNT ( * ) * ( + 34 ) * - - 3 AS col0
----
-48
102

query II rowsort
SELECT 0, + 92 col1
----
0
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-463
SELECT ALL 89 - - 68 + + - MIN( ALL - CAST( - 39 AS SIGNED ) ) + + CAST( - 70 AS SIGNED ) + - COUNT( * ) * - 75 - - CAST( 63 AS SIGNED ) * + 69 * - 20 + - 86 + + COUNT( * ) * - 40
----
-86943

skipif mysql # not compatible
query I rowsort label-463
SELECT ALL 89 - - 68 + + - MIN ( ALL - CAST ( - 39 AS INTEGER ) ) + + CAST ( - 70 AS INTEGER ) + - COUNT ( * ) * - 75 - - CAST ( 63 AS INTEGER ) * + 69 * - 20 + - 86 + + COUNT ( * ) * - 40
----
-86943

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-465
SELECT + 54 * + 16 * + 0 DIV - + 44
----
0

skipif mysql # not compatible
query I rowsort label-465
SELECT + 54 * + 16 * + 0 / - + 44
----
0

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

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

query II rowsort
SELECT ALL 14 AS col1, 36 * 28 col1
----
14
1008

onlyif mysql # aggregate syntax: 
query II rowsort label-468
SELECT - 18 AS col2, - COUNT( * ) * - 47
----
-18
47

skipif mysql # not compatible
query II rowsort label-468
SELECT - 18 AS col2, - COUNT ( * ) * - 47
----
-18
47

onlyif mysql # DIV for integer division: 
query I rowsort label-469
SELECT + 9 DIV - 29 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-469
SELECT + 9 / - 29 AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-470
SELECT DISTINCT COUNT( + - 42 ) DIV + + 49 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-470
SELECT DISTINCT COUNT ( + - 42 ) / + + 49 AS col1
----
0

query I rowsort
SELECT ALL - - 67 * - ( - 51 ) * + - 67
----
-228939

onlyif mysql # aggregate syntax: 
query I rowsort label-472
SELECT SUM( + 12 ) + + - 90 + - 94 * + - 68
----
6314

skipif mysql # not compatible
query I rowsort label-472
SELECT SUM ( + 12 ) + + - 90 + - 94 * + - 68
----
6314

onlyif mysql # aggregate syntax: 
query II rowsort label-473
SELECT - ( + - 19 ) * - COUNT( * ) + - 51 AS col1, 21 * - CASE + + COUNT( ALL - 54 ) WHEN CASE - 8 WHEN 20 + - 68 THEN 5 ELSE NULL END THEN CASE - - 55 WHEN + CASE NULLIF ( - 20, - 12 + - - NULLIF ( ( - 82 ), MAX( 94 ) / 33 ) ) WHEN - 39 THEN 65 + 49 ELSE 88 END THEN 67 / 21 WHEN - 54 * 0 THEN NULL ELSE NULL END WHEN 36 THEN NULL WHEN - 84 THEN - 4 END
----
-70
NULL

skipif mysql # not compatible
query II rowsort label-473
SELECT - ( + - 19 ) * - COUNT ( * ) + - 51 AS col1, 21 * - CASE + + COUNT ( ALL - 54 ) WHEN CASE - 8 WHEN 20 + - 68 THEN 5 ELSE NULL END THEN CASE - - 55 WHEN + CASE NULLIF ( - 20, - 12 + - - NULLIF ( ( - 82 ), MAX ( 94 ) / 33 ) ) WHEN - 39 THEN 65 + 49 ELSE 88 END THEN 67 / 21 WHEN - 54 * 0 THEN NULL ELSE NULL END WHEN 36 THEN NULL WHEN - 84 THEN - 4 END
----
-70
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-474
SELECT ALL - 60 * - - 16 * SUM( - 70 )
----
67200

skipif mysql # not compatible
query I rowsort label-474
SELECT ALL - 60 * - - 16 * SUM ( - 70 )
----
67200

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-476
SELECT ALL + + MAX( ALL - 84 ) + - COUNT( * ), 58 + COUNT( * ) DIV 33 + - 33 AS col2
----
-85
25

skipif mysql # not compatible
query II rowsort label-476
SELECT ALL + + MAX ( ALL - 84 ) + - COUNT ( * ), 58 + COUNT ( * ) / 33 + - 33 AS col2
----
-85
25

onlyif mysql # aggregate syntax: 
query I rowsort label-477
SELECT ALL - NULLIF ( COUNT( * ), + - 15 * + 10 + + - 14 ) + - 34
----
-35

skipif mysql # not compatible
query I rowsort label-477
SELECT ALL - NULLIF ( COUNT ( * ), + - 15 * + 10 + + - 14 ) + - 34
----
-35

query I rowsort
SELECT 41 - - + 57 AS col0
----
98

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

skipif mysql # not compatible
query I rowsort label-479
SELECT ALL - CAST ( NULL AS REAL ) * + + 7
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-480
SELECT MAX( CAST( - + 65 AS SIGNED ) ) + 96 + 97 AS col0
----
128

skipif mysql # not compatible
query I rowsort label-480
SELECT MAX ( CAST ( - + 65 AS INTEGER ) ) + 96 + 97 AS col0
----
128

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

skipif mysql # not compatible
query I rowsort label-481
SELECT ALL - + CAST ( - 73 AS INTEGER ) AS col1
----
73

query I rowsort
SELECT ALL - 8 + + - 25 + - 74 AS col2
----
-107

query I rowsort
SELECT ALL - 45 + - + 89
----
-134

onlyif mysql # DIV for integer division: 
query II rowsort label-484
SELECT + ( + + ( + 6 ) ), 6 DIV 94 DIV - 77 * 42 AS col1
----
6
0

skipif mysql # not compatible
query II rowsort label-484
SELECT + ( + + ( + 6 ) ), 6 / 94 / - 77 * 42 AS col1
----
6
0

onlyif mysql # aggregate syntax: 
query I rowsort label-485
SELECT COUNT( * ) - - 77 + + MIN( ALL + + 28 )
----
106

skipif mysql # not compatible
query I rowsort label-485
SELECT COUNT ( * ) - - 77 + + MIN ( ALL + + 28 )
----
106

onlyif mysql # aggregate syntax: 
query I rowsort label-486
SELECT ALL + COUNT( * ) * + 38 * - COALESCE ( + 5, 53 ) AS col1
----
-190

skipif mysql # not compatible
query I rowsort label-486
SELECT ALL + COUNT ( * ) * + 38 * - COALESCE ( + 5, 53 ) AS col1
----
-190

query I rowsort
SELECT 15 * + + 44
----
660

onlyif mysql # aggregate syntax: 
query I rowsort label-488
SELECT DISTINCT - COUNT( DISTINCT + 7 ) - + 64
----
-65

skipif mysql # not compatible
query I rowsort label-488
SELECT DISTINCT - COUNT ( DISTINCT + 7 ) - + 64
----
-65

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-489
SELECT ALL + 3 * + - 7, - CAST( 10 AS SIGNED ) + - 81 AS col1
----
-21
-91

skipif mysql # not compatible
query II rowsort label-489
SELECT ALL + 3 * + - 7, - CAST ( 10 AS INTEGER ) + - 81 AS col1
----
-21
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-490
SELECT DISTINCT CAST( NULL AS SIGNED ) - - - CASE + COALESCE ( 83, ( + 23 ) + CASE WHEN NOT NULL IS NULL THEN NULL ELSE + 4 END ) WHEN - 41 THEN - 17 * - - 69 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-490
SELECT DISTINCT CAST ( NULL AS INTEGER ) - - - CASE + COALESCE ( 83, ( + 23 ) + CASE WHEN NOT NULL IS NULL THEN NULL ELSE + 4 END ) WHEN - 41 THEN - 17 * - - 69 ELSE NULL END
----
NULL

query II rowsort
SELECT ALL - 31 * 19, - 8 AS col0
----
-589
-8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-492
SELECT 9 DIV - - SUM( 29 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-492
SELECT 9 / - - SUM ( 29 ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-493
SELECT SUM( + 92 ) * + - 72
----
-6624

skipif mysql # not compatible
query I rowsort label-493
SELECT SUM ( + 92 ) * + - 72
----
-6624

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-494
SELECT COUNT( * ) * 1 DIV 65 * + + ( 13 )
----
0

skipif mysql # not compatible
query I rowsort label-494
SELECT COUNT ( * ) * 1 / 65 * + + ( 13 )
----
0

query II rowsort
SELECT 59 + + 82 + + - 38 + + + 72, + 83 * - 48 AS col0
----
175
-3984

onlyif mysql # aggregate syntax: 
query I rowsort label-496
SELECT ALL - 67 * + - 3 * - 61 + + - 65 * COUNT( * )
----
-12326

skipif mysql # not compatible
query I rowsort label-496
SELECT ALL - 67 * + - 3 * - 61 + + - 65 * COUNT ( * )
----
-12326

onlyif mysql # DIV for integer division: 
query I rowsort label-497
SELECT DISTINCT - 22 * - 0 DIV + + 41
----
0

skipif mysql # not compatible
query I rowsort label-497
SELECT DISTINCT - 22 * - 0 / + + 41
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-498
SELECT - 34 + 85 * - ( 78 ) * - MIN( 49 ) + CAST( NULL AS SIGNED ) AS col2, + 9 DIV + 64 col1
----
NULL
0

skipif mysql # not compatible
query II rowsort label-498
SELECT - 34 + 85 * - ( 78 ) * - MIN ( 49 ) + CAST ( NULL AS INTEGER ) AS col2, + 9 / + 64 col1
----
NULL
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-499
SELECT 64 + CAST( NULL AS SIGNED ), + 10 AS col0
----
NULL
10

skipif mysql # not compatible
query II rowsort label-499
SELECT 64 + CAST ( NULL AS INTEGER ), + 10 AS col0
----
NULL
10

onlyif mysql # aggregate syntax: 
query I rowsort label-500
SELECT ALL + 98 + 54 + - COUNT( * ) * - - 17 AS col0
----
135

skipif mysql # not compatible
query I rowsort label-500
SELECT ALL + 98 + 54 + - COUNT ( * ) * - - 17 AS col0
----
135

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-501
SELECT ALL + + 60 + - - ( - ( + 64 ) ) - + - COUNT( * ) * - + 87 DIV - 62
----
-3

skipif mysql # not compatible
query I rowsort label-501
SELECT ALL + + 60 + - - ( - ( + 64 ) ) - + - COUNT ( * ) * - + 87 / - 62
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-502
SELECT + 52 * - 25 + + 26 + + + 39 + + + 74 + + ( - COUNT( - 1 ) )
----
-1162

skipif mysql # not compatible
query I rowsort label-502
SELECT + 52 * - 25 + + 26 + + + 39 + + + 74 + + ( - COUNT ( - 1 ) )
----
-1162

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-503
SELECT ALL - CAST( CASE + + 87 WHEN + 41 * 99 THEN + 35 + 68 * 65 WHEN + + AVG ( ALL - + ( + - 50 ) ) THEN NULL END AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-503
SELECT ALL - CAST ( CASE + + 87 WHEN + 41 * 99 THEN + 35 + 68 * 65 WHEN + + AVG ( ALL - + ( + - 50 ) ) THEN NULL END AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-504
SELECT 60 DIV + 7 + 27 col2
----
35

skipif mysql # not compatible
query I rowsort label-504
SELECT 60 / + 7 + 27 col2
----
35

query II rowsort
SELECT - 76 + + + 9, + 23 AS col1
----
-67
23

query I rowsort
SELECT 36 * + - 2 * 5 + - - 82 * + + 59 + + 36 col0
----
4514

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-507
SELECT 38 + + NULLIF ( - - 14, COALESCE ( - - 31, + MIN( DISTINCT - CAST( NULL AS SIGNED ) ) ) + 3 ) + - + 37 * + 62
----
-2242

skipif mysql # not compatible
query I rowsort label-507
SELECT 38 + + NULLIF ( - - 14, COALESCE ( - - 31, + MIN ( DISTINCT - CAST ( NULL AS INTEGER ) ) ) + 3 ) + - + 37 * + 62
----
-2242

query I rowsort
SELECT DISTINCT 91 - + - 3 - - + 79 col2
----
173

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-509
SELECT ALL - CASE WHEN ( + 44 ) <= 35 * 53 * + - 84 THEN NULL ELSE - CAST( NULL AS SIGNED ) + + 32 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-509
SELECT ALL - CASE WHEN ( + 44 ) <= 35 * 53 * + - 84 THEN NULL ELSE - CAST ( NULL AS INTEGER ) + + 32 END AS col0
----
NULL

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

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

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

skipif mysql # not compatible
query I rowsort label-511
SELECT ALL - ( + NULLIF ( + COUNT ( * ), - 91 ) )
----
-1

query I rowsort
SELECT ALL - CASE - CASE 39 WHEN + 4 THEN 74 + 93 * + 99 END WHEN 67 THEN - 56 END
----
NULL

query I rowsort
SELECT DISTINCT - 27 - 18 AS col0
----
-45

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-516
SELECT DISTINCT + 54 * - ( - 92 ) * - COUNT( * ) + COUNT( * ), 11 AS col1
----
-4967
11

skipif mysql # not compatible
query II rowsort label-516
SELECT DISTINCT + 54 * - ( - 92 ) * - COUNT ( * ) + COUNT ( * ), 11 AS col1
----
-4967
11

onlyif mysql # DIV for integer division: 
query I rowsort label-517
SELECT 44 DIV 37
----
1

skipif mysql # not compatible
query I rowsort label-517
SELECT 44 / 37
----
1

query I rowsort
SELECT DISTINCT + 82 * + - 27
----
-2214

query I rowsort
SELECT DISTINCT - ( 25 ) * 98
----
-2450

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-520
SELECT ALL - 37 + + ( - 20 ) + - 48 * + 16 AS col0, 51 + - ( + CAST( + AVG ( 12 ) AS SIGNED ) )
----
-825
39

skipif mysql # not compatible
query II rowsort label-520
SELECT ALL - 37 + + ( - 20 ) + - 48 * + 16 AS col0, 51 + - ( + CAST ( + AVG ( 12 ) AS INTEGER ) )
----
-825
39

onlyif mysql # aggregate syntax: 
query I rowsort label-521
SELECT DISTINCT + 83 * - - COALESCE ( - COUNT( * ), + 80 + + 47 )
----
-83

skipif mysql # not compatible
query I rowsort label-521
SELECT DISTINCT + 83 * - - COALESCE ( - COUNT ( * ), + 80 + + 47 )
----
-83

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-523
SELECT - + 55 * COALESCE ( + COUNT( * ), - 11 ) AS col0
----
-55

skipif mysql # not compatible
query I rowsort label-523
SELECT - + 55 * COALESCE ( + COUNT ( * ), - 11 ) AS col0
----
-55

query I rowsort
SELECT + + 49 * 75 + - 64 + 51
----
3662

query I rowsort
SELECT ALL + 44 + + 83 AS col1
----
127

onlyif mysql # aggregate syntax: 
query II rowsort label-526
SELECT - + 38 - - 35 * - 46, + MAX( + - 90 ) AS col1
----
-1648
-90

skipif mysql # not compatible
query II rowsort label-526
SELECT - + 38 - - 35 * - 46, + MAX ( + - 90 ) AS col1
----
-1648
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-527
SELECT ALL - 69 + + MIN( + 24 ) AS col2
----
-45

skipif mysql # not compatible
query I rowsort label-527
SELECT ALL - 69 + + MIN ( + 24 ) AS col2
----
-45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-528
SELECT DISTINCT - 11 + + ( - CASE 47 WHEN + 75 * - - MAX( ALL - CAST( NULL AS SIGNED ) ) - - - 66 + 98 - + + 28 + + + 90 * + 77 * - CAST( 34 AS SIGNED ) + + + 53 THEN 76 END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-528
SELECT DISTINCT - 11 + + ( - CASE 47 WHEN + 75 * - - MAX ( ALL - CAST ( NULL AS INTEGER ) ) - - - 66 + 98 - + + 28 + + + 90 * + 77 * - CAST ( 34 AS INTEGER ) + + + 53 THEN 76 END ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT - COALESCE ( - 78, - + 23 * - 45 ) AS col0
----
78

query I rowsort
SELECT ALL 38 * - 59 col1
----
-2242

onlyif mysql # aggregate syntax: 
query I rowsort label-531
SELECT DISTINCT - COALESCE ( 46, 78 * 73, + 92 * + + 3 ) * - MIN( 95 ) + 25
----
4395

skipif mysql # not compatible
query I rowsort label-531
SELECT DISTINCT - COALESCE ( 46, 78 * 73, + 92 * + + 3 ) * - MIN ( 95 ) + 25
----
4395

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-532
SELECT - AVG ( + 22 ) + - 65 / 69 * - + CASE + - ( - 87 ) WHEN - MAX( ALL + 18 ) + + COUNT( * ) THEN - COALESCE ( - CAST( NULL AS SIGNED ), + + 23 ) * - 11 + - 42 WHEN + 18 THEN 45 END * 3 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-532
SELECT - AVG ( + 22 ) + - 65 / 69 * - + CASE + - ( - 87 ) WHEN - MAX ( ALL + 18 ) + + COUNT ( * ) THEN - COALESCE ( - CAST ( NULL AS INTEGER ), + + 23 ) * - 11 + - 42 WHEN + 18 THEN 45 END * 3 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-533
SELECT - 65 + - COUNT( * ) + 12 * + 96
----
1086

skipif mysql # not compatible
query I rowsort label-533
SELECT - 65 + - COUNT ( * ) + 12 * + 96
----
1086

query I rowsort
SELECT + - 22 * - 47
----
1034

query I rowsort
SELECT ALL - 17 * + CASE - 59 WHEN + 32 THEN NULL ELSE + - ( 85 ) END AS col0
----
1445

query I rowsort
SELECT + NULLIF ( + 53, 85 ) AS col1
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-537
SELECT + + 91 * - 36 + COUNT( * ) + - - 81 * 89 AS col2
----
3934

skipif mysql # not compatible
query I rowsort label-537
SELECT + + 91 * - 36 + COUNT ( * ) + - - 81 * 89 AS col2
----
3934

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-539
SELECT CASE + 48 WHEN 28 / 10 THEN + 38 WHEN + 49 * + 39 + - 83 THEN NULL END AS col2, - COALESCE ( + COUNT( * ), + + 77 * 64 ) AS col1
----
NULL
-1

skipif mysql # not compatible
query II rowsort label-539
SELECT CASE + 48 WHEN 28 / 10 THEN + 38 WHEN + 49 * + 39 + - 83 THEN NULL END AS col2, - COALESCE ( + COUNT ( * ), + + 77 * 64 ) AS col1
----
NULL
-1

query I rowsort
SELECT ALL - 70 * 81 - - - 34 AS col2
----
-5704

query I rowsort
SELECT + - 62 * - 66 AS col2
----
4092

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-542
SELECT + 21 + ( - 31 ) + + - MIN( DISTINCT + CASE 1 WHEN 65 THEN - 66 - 34 ELSE ( - + 47 ) END ) DIV + 38 AS col0
----
-9

skipif mysql # not compatible
query I rowsort label-542
SELECT + 21 + ( - 31 ) + + - MIN ( DISTINCT + CASE 1 WHEN 65 THEN - 66 - 34 ELSE ( - + 47 ) END ) / + 38 AS col0
----
-9

query I rowsort
SELECT + 97 + - 65 AS col0
----
32

query I rowsort
SELECT ALL - 40 * ( + 11 )
----
-440

query I rowsort
SELECT + 14 * - 8 AS col0
----
-112

query I rowsort
SELECT ALL - 31 * - 52 AS col0
----
1612

onlyif mysql # DIV for integer division: 
query I rowsort label-547
SELECT - ( + 65 ) DIV + + ( + - 26 ) + - + 63
----
-61

skipif mysql # not compatible
query I rowsort label-547
SELECT - ( + 65 ) / + + ( + - 26 ) + - + 63
----
-61

query I rowsort
SELECT COALESCE ( 21, + 56 )
----
21

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-550
SELECT ALL MIN( DISTINCT + 16 ) * 66 AS col1
----
1056

skipif mysql # not compatible
query I rowsort label-550
SELECT ALL MIN ( DISTINCT + 16 ) * 66 AS col1
----
1056

query I rowsort
SELECT - NULLIF ( - - 34, - 24 + + 85 + + AVG ( DISTINCT + 59 ) ) - + 85 AS col1
----
-119

onlyif mysql # aggregate syntax: 
query I rowsort label-552
SELECT + MIN( DISTINCT + 80 ) * ( - 90 ) + + ( - ( + COUNT( 2 ) ) ) + - + COUNT( * ) * - 16 AS col0
----
-7185

skipif mysql # not compatible
query I rowsort label-552
SELECT + MIN ( DISTINCT + 80 ) * ( - 90 ) + + ( - ( + COUNT ( 2 ) ) ) + - + COUNT ( * ) * - 16 AS col0
----
-7185

query II rowsort
SELECT ALL + 68 * 90 AS col0, - 8
----
6120
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-554
SELECT + MAX( - 59 ) - 13
----
-72

skipif mysql # not compatible
query I rowsort label-554
SELECT + MAX ( - 59 ) - 13
----
-72

query I rowsort
SELECT DISTINCT ( - 50 ) * 30
----
-1500

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

query I rowsort
SELECT - NULLIF ( + 75, 39 * + 0 * + 23 / + 37 * - - 16 * 65 - 84 ) + + - 8
----
-83

query I rowsort
SELECT - ( + - 67 ) * - + ( + - 13 )
----
871

query I rowsort
SELECT + 12 + 6 * + 35
----
222

query I rowsort
SELECT - NULLIF ( + 29, 70 ) - + 66 - 24 + 10
----
-109

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-562
SELECT ALL + SUM( DISTINCT - - 59 ) AS col2
----
59

skipif mysql # not compatible
query I rowsort label-562
SELECT ALL + SUM ( DISTINCT - - 59 ) AS col2
----
59

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-564
SELECT - - 78 / - CASE + 90 WHEN + CAST( - + 58 AS SIGNED ) THEN - + 40 END * + 46 - 13 - + 78
----
NULL

skipif mysql # not compatible
query I rowsort label-564
SELECT - - 78 / - CASE + 90 WHEN + CAST ( - + 58 AS INTEGER ) THEN - + 40 END * + 46 - 13 - + 78
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-565
SELECT - 56 + - ( ( + 38 ) ) * + + SUM( ALL + + 2 ) * 26 * + 57 * - 13, - COUNT( * ) * + 77 + 97 + + + 95 AS col1
----
1464160
115

skipif mysql # not compatible
query II rowsort label-565
SELECT - 56 + - ( ( + 38 ) ) * + + SUM ( ALL + + 2 ) * 26 * + 57 * - 13, - COUNT ( * ) * + 77 + 97 + + + 95 AS col1
----
1464160
115

query II rowsort
SELECT ALL 71 AS col2, + 86 * 23 + + 36 AS col0
----
71
2014

query II rowsort
SELECT ALL 32 AS col2, + 6
----
32
6

query I rowsort
SELECT ALL - - 76 + + 73 AS col2
----
149

query I rowsort
SELECT - - 32 * + - 68 + 58 AS col1
----
-2118

query I rowsort
SELECT ALL + 21 * - + 68
----
-1428

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-571
SELECT - + COUNT( + ( - + 54 ) ) DIV - 85 * + 92 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-571
SELECT - + COUNT ( + ( - + 54 ) ) / - 85 * + 92 AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-572
SELECT + + 52 + + + 83 DIV + 65 AS col2
----
53

skipif mysql # not compatible
query I rowsort label-572
SELECT + + 52 + + + 83 / + 65 AS col2
----
53

query I rowsort
SELECT - 58 * 96 + + ( 1 )
----
-5567

query I rowsort
SELECT - 72 * + 92 AS col2
----
-6624

query II rowsort
SELECT - - 93, - 48 AS col2
----
93
-48

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

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

query II rowsort
SELECT ALL + ( 68 ) AS col1, 83 * + 80 AS col2
----
68
6640

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-579
SELECT ALL 97 * + - CASE - 5 WHEN - 53 * + + 85 + + + 3 * - AVG ( ALL + COALESCE ( 32, + + 39 - - 27 * ( 1 ), - + 86 ) ) THEN NULL WHEN + 67 * 50 * - - ( - ( - + 85 ) ) * COUNT( * ) / + 32 + + - 72 THEN 95 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-579
SELECT ALL 97 * + - CASE - 5 WHEN - 53 * + + 85 + + + 3 * - AVG ( ALL + COALESCE ( 32, + + 39 - - 27 * ( 1 ), - + 86 ) ) THEN NULL WHEN + 67 * 50 * - - ( - ( - + 85 ) ) * COUNT ( * ) / + 32 + + - 72 THEN 95 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-580
SELECT 82 * + + COUNT( * ) + 3
----
85

skipif mysql # not compatible
query I rowsort label-580
SELECT 82 * + + COUNT ( * ) + 3
----
85

onlyif mysql # DIV for integer division: 
query I rowsort label-581
SELECT + 55 DIV - 33 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-581
SELECT + 55 / - 33 AS col0
----
-1

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

query I rowsort
SELECT DISTINCT + 86 * - 69 + + 22 col1
----
-5912

onlyif mysql # DIV for integer division: 
query II rowsort label-584
SELECT ALL 19 DIV 54 AS col0, 2
----
0
2

skipif mysql # not compatible
query II rowsort label-584
SELECT ALL 19 / 54 AS col0, 2
----
0
2

query I rowsort
SELECT ALL 83 + - 40 AS col1
----
43

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

skipif mysql # not compatible
query II rowsort label-586
SELECT COUNT ( * ) / + - 86 AS col2, COUNT ( * ) AS col1
----
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-587
SELECT CASE 17 WHEN + 23 * + 96 THEN - 37 * - COUNT( * ) + 74 ELSE NULL END + - - 23 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-587
SELECT CASE 17 WHEN + 23 * + 96 THEN - 37 * - COUNT ( * ) + 74 ELSE NULL END + - - 23 AS col2
----
NULL

query II rowsort
SELECT DISTINCT 18 + - 94 * - 62 * + 86 * - - 17, - 94 AS col2
----
8520554
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-589
SELECT ALL 77 + COUNT( * ) + CASE - - 56 WHEN 22 THEN NULL ELSE ( - 86 ) + + 54 * + 64 * 9 END
----
31096

skipif mysql # not compatible
query I rowsort label-589
SELECT ALL 77 + COUNT ( * ) + CASE - - 56 WHEN 22 THEN NULL ELSE ( - 86 ) + + 54 * + 64 * 9 END
----
31096

query I rowsort
SELECT 83 + 82 AS col0
----
165

query I rowsort
SELECT ALL 14 * + 65
----
910

onlyif mysql # aggregate syntax: 
query I rowsort label-592
SELECT DISTINCT - 94 + - 30 * - MIN( + ( - ( 21 ) ) )
----
-724

skipif mysql # not compatible
query I rowsort label-592
SELECT DISTINCT - 94 + - 30 * - MIN ( + ( - ( 21 ) ) )
----
-724

query II rowsort
SELECT + ( 41 ) * + 1 AS col1, - 3 * + 8 * - + 90 AS col0
----
41
2160

query I rowsort
SELECT 39 * + - 21
----
-819

query I rowsort
SELECT CASE 34 WHEN - 35 * - 31 THEN + + 83 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-596
SELECT ALL - + 49 - + 78 + + ( - CAST( NULL AS SIGNED ) ) * + MAX( DISTINCT - 29 ) + 67 * - COUNT( * ) * ( + 0 ) * - 96
----
NULL

skipif mysql # not compatible
query I rowsort label-596
SELECT ALL - + 49 - + 78 + + ( - CAST ( NULL AS INTEGER ) ) * + MAX ( DISTINCT - 29 ) + 67 * - COUNT ( * ) * ( + 0 ) * - 96
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-597
SELECT - MAX( ALL - 32 ) - - COUNT( * ) col0
----
33

skipif mysql # not compatible
query I rowsort label-597
SELECT - MAX ( ALL - 32 ) - - COUNT ( * ) col0
----
33

query II rowsort
SELECT ALL - ( - 45 ) AS col1, 36 * - 31 AS col1
----
45
-1116

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-601
SELECT + 10 * + CASE + + 87 WHEN + CAST( + 99 AS SIGNED ) THEN + - 33 WHEN - 99 THEN 6 END + + + 11
----
NULL

skipif mysql # not compatible
query I rowsort label-601
SELECT + 10 * + CASE + + 87 WHEN + CAST ( + 99 AS INTEGER ) THEN + - 33 WHEN - 99 THEN 6 END + + + 11
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-602
SELECT 9 + - 74 + + - 32 DIV - 90
----
-65

skipif mysql # not compatible
query I rowsort label-602
SELECT 9 + - 74 + + - 32 / - 90
----
-65

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-603
SELECT ALL - CASE + - 24 WHEN + 57 THEN NULL WHEN 23 THEN NULL WHEN + NULLIF ( + - 73, 29 ) / CAST( NULL AS DECIMAL ) * - 89 THEN NULL ELSE - - 13 END
----
-13

skipif mysql # not compatible
query I rowsort label-603
SELECT ALL - CASE + - 24 WHEN + 57 THEN NULL WHEN 23 THEN NULL WHEN + NULLIF ( + - 73, 29 ) / CAST ( NULL AS REAL ) * - 89 THEN NULL ELSE - - 13 END
----
-13

query I rowsort
SELECT 49 * + - 77 + - + 17 AS col1
----
-3790

onlyif mysql # aggregate syntax: 
query II rowsort label-605
SELECT 25 * - + 78 * CASE - 71 WHEN 5 THEN - COUNT( * ) END AS col2, 91
----
NULL
91

skipif mysql # not compatible
query II rowsort label-605
SELECT 25 * - + 78 * CASE - 71 WHEN 5 THEN - COUNT ( * ) END AS col2, 91
----
NULL
91

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

query II rowsort
SELECT 60 AS col1, - 92
----
60
-92

query I rowsort
SELECT ALL 43 + + 84
----
127

onlyif mysql # aggregate syntax: 
query I rowsort label-609
SELECT 50 * - 64 * + NULLIF ( + COUNT( * ), 29 + - MAX( + NULLIF ( + 49, + 54 ) ) ) AS col1
----
-3200

skipif mysql # not compatible
query I rowsort label-609
SELECT 50 * - 64 * + NULLIF ( + COUNT ( * ), 29 + - MAX ( + NULLIF ( + 49, + 54 ) ) ) AS col1
----
-3200

onlyif mysql # aggregate syntax: 
query II rowsort label-610
SELECT 47 AS col1, 29 + CASE + 57 WHEN - 62 / + COUNT( * ) + - 82 THEN NULL ELSE 1 * + 43 * 98 + + 19 * - 89 * - MIN( + 42 ) END * - - COUNT( * ) AS col1
----
47
75265

skipif mysql # not compatible
query II rowsort label-610
SELECT 47 AS col1, 29 + CASE + 57 WHEN - 62 / + COUNT ( * ) + - 82 THEN NULL ELSE 1 * + 43 * 98 + + 19 * - 89 * - MIN ( + 42 ) END * - - COUNT ( * ) AS col1
----
47
75265

query II rowsort
SELECT 28 AS col1, + 56 col2
----
28
56

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-613
SELECT SUM( - 73 ) DIV - ( 91 ) + CAST( - 15 AS SIGNED ) + + - 61 AS col2
----
-76

skipif mysql # not compatible
query I rowsort label-613
SELECT SUM ( - 73 ) / - ( 91 ) + CAST ( - 15 AS INTEGER ) + + - 61 AS col2
----
-76

query I rowsort
SELECT ALL 77 + - 97
----
-20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-615
SELECT 75 - + - MIN( 2 ), - 92 * - CAST( NULL AS SIGNED ) * 67 AS col0
----
77
NULL

skipif mysql # not compatible
query II rowsort label-615
SELECT 75 - + - MIN ( 2 ), - 92 * - CAST ( NULL AS INTEGER ) * 67 AS col0
----
77
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-617
SELECT 84 DIV 32 + 17 AS col1
----
19

skipif mysql # not compatible
query I rowsort label-617
SELECT 84 / 32 + 17 AS col1
----
19

query I rowsort
SELECT ALL + 45 - 18
----
27

onlyif mysql # DIV for integer division: 
query II rowsort label-619
SELECT DISTINCT 86 DIV 37 + + - 33 AS col1, - 88
----
-31
-88

skipif mysql # not compatible
query II rowsort label-619
SELECT DISTINCT 86 / 37 + + - 33 AS col1, - 88
----
-31
-88

query I rowsort
SELECT ALL 91 - + 29 + - 44 * - 32 AS col0
----
1470

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-621
SELECT 94, CASE - COUNT( * ) WHEN + + COUNT( * ) * + 42 THEN NULL ELSE + NULLIF ( 16, + 43 + - - 77 ) END DIV + 49 AS col2
----
94
0

skipif mysql # not compatible
query II rowsort label-621
SELECT 94, CASE - COUNT ( * ) WHEN + + COUNT ( * ) * + 42 THEN NULL ELSE + NULLIF ( 16, + 43 + - - 77 ) END / + 49 AS col2
----
94
0

query I rowsort
SELECT 64 + - 76 + + 93
----
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-623
SELECT 7 - + - 29 * 96 - - CAST( - - COUNT( * ) AS SIGNED ) AS col2
----
2792

skipif mysql # not compatible
query I rowsort label-623
SELECT 7 - + - 29 * 96 - - CAST ( - - COUNT ( * ) AS INTEGER ) AS col2
----
2792

query I rowsort
SELECT - + 23 AS col1
----
-23

query I rowsort
SELECT - 13 * - 51 + - 40 AS col2
----
623

onlyif mysql # aggregate syntax: 
query I rowsort label-626
SELECT COUNT( - 54 ) - 49 * + 9 + 49 AS col2
----
-391

skipif mysql # not compatible
query I rowsort label-626
SELECT COUNT ( - 54 ) - 49 * + 9 + 49 AS col2
----
-391

query I rowsort
SELECT 56 + 99 AS col2
----
155

onlyif mysql # aggregate syntax: 
query I rowsort label-628
SELECT ALL + COUNT( * ) * 4 * 91
----
364

skipif mysql # not compatible
query I rowsort label-628
SELECT ALL + COUNT ( * ) * 4 * 91
----
364

query I rowsort
SELECT 33 + 71 + + 41 + - 62 AS col2
----
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-630
SELECT ALL 51, ( - 8 ) + COALESCE ( - - CASE NULLIF ( 17, + 44 ) WHEN ( CAST( NULL AS DECIMAL ) ) * - - COUNT( * ) - - + 20 * - - 2 * - 17 THEN + - 54 WHEN - ( 85 ) + 14 THEN + SUM( DISTINCT + - CAST( 10 AS SIGNED ) ) + + + 64 END, + SUM( DISTINCT - + 6 ) ) AS col0
----
51
-14

skipif mysql # not compatible
query II rowsort label-630
SELECT ALL 51, ( - 8 ) + COALESCE ( - - CASE NULLIF ( 17, + 44 ) WHEN ( CAST ( NULL AS REAL ) ) * - - COUNT ( * ) - - + 20 * - - 2 * - 17 THEN + - 54 WHEN - ( 85 ) + 14 THEN + SUM ( DISTINCT + - CAST ( 10 AS INTEGER ) ) + + + 64 END, + SUM ( DISTINCT - + 6 ) ) AS col0
----
51
-14

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

skipif mysql # not compatible
query I rowsort label-631
SELECT ALL MAX ( 2 )
----
2

query I rowsort
SELECT 25 + - 1
----
24

query I rowsort
SELECT 56 * + + 56 AS col0
----
3136

query I rowsort
SELECT DISTINCT 60 * - + 17 AS col2
----
-1020

query I rowsort
SELECT 5 * - 92
----
-460

onlyif mysql # DIV for integer division: 
query I rowsort label-636
SELECT DISTINCT + 27 DIV - 44 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-636
SELECT DISTINCT + 27 / - 44 AS col1
----
0

query I rowsort
SELECT ALL - 47 * 85 + - + 88 AS col2
----
-4083

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-638
SELECT COALESCE ( ( + + COALESCE ( - 84, + + 70 + + - 26 + MIN( ALL + 75 ) + - - ( 5 ) * - ( - - 62 ) ) ), 61 DIV - - 21 )
----
-84

skipif mysql # not compatible
query I rowsort label-638
SELECT COALESCE ( ( + + COALESCE ( - 84, + + 70 + + - 26 + MIN ( ALL + 75 ) + - - ( 5 ) * - ( - - 62 ) ) ), 61 / - - 21 )
----
-84

query I rowsort
SELECT ALL 99 * - - 66 + 98 AS col0
----
6632

onlyif mysql # aggregate syntax: 
query I rowsort label-640
SELECT ALL 67 * - 38 + - + 86 + COUNT( * ) AS col2
----
-2631

skipif mysql # not compatible
query I rowsort label-640
SELECT ALL 67 * - 38 + - + 86 + COUNT ( * ) AS col2
----
-2631

query I rowsort
SELECT ALL + 10 * ( - - 12 )
----
120

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-642
SELECT COUNT( * ) * + 80 - - 0 * - 43 + + - 65 + + 19 * - 90 DIV 36 DIV 52 AS col1, 60 * + 3
----
15
180

skipif mysql # not compatible
query II rowsort label-642
SELECT COUNT ( * ) * + 80 - - 0 * - 43 + + - 65 + + 19 * - 90 / 36 / 52 AS col1, 60 * + 3
----
15
180

onlyif mysql # aggregate syntax: 
query I rowsort label-643
SELECT NULLIF ( - 50, - 77 / COALESCE ( + - 6, + 83 + + - ( 18 ) * - 2 * - COUNT( * ) * + + 5 * 26 * - 54, + 43 * - COUNT( * ) * - + COUNT( * ) ) )
----
-50

skipif mysql # not compatible
query I rowsort label-643
SELECT NULLIF ( - 50, - 77 / COALESCE ( + - 6, + 83 + + - ( 18 ) * - 2 * - COUNT ( * ) * + + 5 * 26 * - 54, + 43 * - COUNT ( * ) * - + COUNT ( * ) ) )
----
-50

onlyif mysql # aggregate syntax: 
query II rowsort label-644
SELECT - 36 + + 6 AS col2, ( SUM( ALL + 6 ) )
----
-30
6

skipif mysql # not compatible
query II rowsort label-644
SELECT - 36 + + 6 AS col2, ( SUM ( ALL + 6 ) )
----
-30
6

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-646
SELECT + 63 * + 16 + COUNT( * ) col0
----
1009

skipif mysql # not compatible
query I rowsort label-646
SELECT + 63 * + 16 + COUNT ( * ) col0
----
1009

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-647
SELECT + - 39 + NULLIF ( + - NULLIF ( 38, 13 + - 24 ), + ( + ( + CAST( NULL AS SIGNED ) ) ) / ( + 77 ) * + 15 - 3 ) + 19 + + ( + 46 )
----
-12

skipif mysql # not compatible
query I rowsort label-647
SELECT + - 39 + NULLIF ( + - NULLIF ( 38, 13 + - 24 ), + ( + ( + CAST ( NULL AS INTEGER ) ) ) / ( + 77 ) * + 15 - 3 ) + 19 + + ( + 46 )
----
-12

onlyif mysql # DIV for integer division: 
query I rowsort label-648
SELECT ALL + + 57 - - 53 DIV 79 AS col0
----
57

skipif mysql # not compatible
query I rowsort label-648
SELECT ALL + + 57 - - 53 / 79 AS col0
----
57

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

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

query I rowsort
SELECT + + ( + 73 ) + 99 - 47 + - 48 * + 20 * - - 28
----
-26755

query I rowsort
SELECT ALL - 0 * - ( 29 ) AS col0
----
0

query I rowsort
SELECT - - 95 * + + 52
----
4940

query I rowsort
SELECT ALL + 89 * - 73
----
-6497

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

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

query II rowsort
SELECT - 9 * - 96, - 27 AS col2
----
864
-27

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-657
SELECT + ( + 81 ) / - - CASE - - 57 WHEN - + COUNT( * ) * 34 * + + CASE + 63 WHEN 58 * - + 88 + 76 THEN 87 + - 60 / - + MIN( + 84 ) ELSE - - 70 END - 0 + - 90 + + 66 THEN - 49 + - 49 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-657
SELECT + ( + 81 ) / - - CASE - - 57 WHEN - + COUNT ( * ) * 34 * + + CASE + 63 WHEN 58 * - + 88 + 76 THEN 87 + - 60 / - + MIN ( + 84 ) ELSE - - 70 END - 0 + - 90 + + 66 THEN - 49 + - 49 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-658
SELECT + + 68 * 97 * - + COUNT( ALL - 66 ) + 82 * - 57
----
-11270

skipif mysql # not compatible
query I rowsort label-658
SELECT + + 68 * 97 * - + COUNT ( ALL - 66 ) + 82 * - 57
----
-11270

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-660
SELECT - CASE + 70 WHEN - - 89 THEN + 1 WHEN - - SUM( ALL - + 88 ) + + 14 + - 24 * + NULLIF ( + + 47, 98 * - MIN( - 83 ) ) THEN NULL WHEN + 83 THEN NULL ELSE - 97 * - 87 END
----
-8439

skipif mysql # not compatible
query I rowsort label-660
SELECT - CASE + 70 WHEN - - 89 THEN + 1 WHEN - - SUM ( ALL - + 88 ) + + 14 + - 24 * + NULLIF ( + + 47, 98 * - MIN ( - 83 ) ) THEN NULL WHEN + 83 THEN NULL ELSE - 97 * - 87 END
----
-8439

query I rowsort
SELECT DISTINCT 68 + - 32 + 13 AS col2
----
49

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-662
SELECT DISTINCT CASE + MIN( 94 ) WHEN + - CAST( 41 AS DECIMAL ) THEN 1 WHEN 15 * 26 + ( - 12 ) THEN + 56 ELSE + - 87 + - 10 END + + + COUNT( * )
----
-96

skipif mysql # not compatible
query I rowsort label-662
SELECT DISTINCT CASE + MIN ( 94 ) WHEN + - CAST ( 41 AS REAL ) THEN 1 WHEN 15 * 26 + ( - 12 ) THEN + 56 ELSE + - 87 + - 10 END + + + COUNT ( * )
----
-96

query I rowsort
SELECT ALL 2 + + - 21 AS col0
----
-19

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-665
SELECT ALL ( - - 54 ) + 63 + - SUM( DISTINCT 21 ) * + 84
----
-1647

skipif mysql # not compatible
query I rowsort label-665
SELECT ALL ( - - 54 ) + 63 + - SUM ( DISTINCT 21 ) * + 84
----
-1647

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-667
SELECT ALL NULLIF ( CAST( + 79 AS SIGNED ), - - COUNT( * ) )
----
79

skipif mysql # not compatible
query I rowsort label-667
SELECT ALL NULLIF ( CAST ( + 79 AS INTEGER ), - - COUNT ( * ) )
----
79

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-668
SELECT ALL 32 DIV + 47 + - 32 * - - COUNT( * ) DIV 86 + + + ( - 49 ) * - 79
----
3871

skipif mysql # not compatible
query I rowsort label-668
SELECT ALL 32 / + 47 + - 32 * - - COUNT ( * ) / 86 + + + ( - 49 ) * - 79
----
3871

onlyif mysql # aggregate syntax: 
query I rowsort label-669
SELECT + COUNT( + 45 ) + 92 * - + 19
----
-1747

skipif mysql # not compatible
query I rowsort label-669
SELECT + COUNT ( + 45 ) + 92 * - + 19
----
-1747

query I rowsort
SELECT - ( - 96 ) * + - 16
----
-1536

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-672
SELECT 24 * - 27 * - 67 + + + 84 + + 37 DIV - 96
----
43500

skipif mysql # not compatible
query I rowsort label-672
SELECT 24 * - 27 * - 67 + + + 84 + + 37 / - 96
----
43500

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-673
SELECT - COUNT( DISTINCT - 20 ) - + + COUNT( * ) * + COUNT( * ) DIV + 91 + 89, - 74 * - MAX( - + 2 ) col1
----
88
-148

skipif mysql # not compatible
query II rowsort label-673
SELECT - COUNT ( DISTINCT - 20 ) - + + COUNT ( * ) * + COUNT ( * ) / + 91 + 89, - 74 * - MAX ( - + 2 ) col1
----
88
-148

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

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

query I rowsort
SELECT ALL + 79 * 64 AS col0
----
5056

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-676
SELECT DISTINCT 43 DIV - + COUNT( * ) - + 40 AS col2
----
-83

skipif mysql # not compatible
query I rowsort label-676
SELECT DISTINCT 43 / - + COUNT ( * ) - + 40 AS col2
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-677
SELECT - 95 + COUNT( * ) AS col0
----
-94

skipif mysql # not compatible
query I rowsort label-677
SELECT - 95 + COUNT ( * ) AS col0
----
-94

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-678
SELECT ALL 0 DIV - - 95 * + SUM( + 13 )
----
0

skipif mysql # not compatible
query I rowsort label-678
SELECT ALL 0 / - - 95 * + SUM ( + 13 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-679
SELECT DISTINCT + 26 AS col1, CAST( + 8 AS SIGNED ) AS col1
----
26
8

skipif mysql # not compatible
query II rowsort label-679
SELECT DISTINCT + 26 AS col1, CAST ( + 8 AS INTEGER ) AS col1
----
26
8

onlyif mysql # DIV for integer division: 
query I rowsort label-680
SELECT + 77 DIV + - 87 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-680
SELECT + 77 / + - 87 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-681
SELECT + + MAX( + 20 ) * - 3 * CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-681
SELECT + + MAX ( + 20 ) * - 3 * CAST ( NULL AS REAL ) AS col1
----
NULL

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

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

query I rowsort
SELECT + - COALESCE ( + 9, - 38 )
----
-9

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-684
SELECT ALL - 13 DIV + CAST( - 3 AS SIGNED ) AS col0
----
4

skipif mysql # not compatible
query I rowsort label-684
SELECT ALL - 13 / + CAST ( - 3 AS INTEGER ) AS col0
----
4

query I rowsort
SELECT - 22 - 22
----
-44

query I rowsort
SELECT - 46 * + 24 + + 76 AS col0
----
-1028

onlyif mysql # aggregate syntax: 
query I rowsort label-687
SELECT NULLIF ( NULLIF ( + 79, + COUNT( * ) ), + 33 )
----
79

skipif mysql # not compatible
query I rowsort label-687
SELECT NULLIF ( NULLIF ( + 79, + COUNT ( * ) ), + 33 )
----
79

query I rowsort
SELECT - - 65 col2
----
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-689
SELECT ALL + CASE + + 91 WHEN - 60 THEN NULL WHEN CAST( - 49 AS SIGNED ) * + CAST( - + COUNT( * ) AS SIGNED ) + - 84 + - 11 * + - 10 THEN NULL WHEN + 97 THEN 27 - + 86 END * + + 0 + 51 + - 30 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-689
SELECT ALL + CASE + + 91 WHEN - 60 THEN NULL WHEN CAST ( - 49 AS INTEGER ) * + CAST ( - + COUNT ( * ) AS INTEGER ) + - 84 + - 11 * + - 10 THEN NULL WHEN + 97 THEN 27 - + 86 END * + + 0 + 51 + - 30 AS col2
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-691
SELECT - - MIN( - 16 ) - - - 35 AS col0
----
-51

skipif mysql # not compatible
query I rowsort label-691
SELECT - - MIN ( - 16 ) - - - 35 AS col0
----
-51

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-692
SELECT + + CAST( - 27 AS SIGNED ) - + + 53 - + 6 DIV 28
----
-80

skipif mysql # not compatible
query I rowsort label-692
SELECT + + CAST ( - 27 AS INTEGER ) - + + 53 - + 6 / 28
----
-80

query I rowsort
SELECT ALL - - 87 * - 40
----
-3480

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-695
SELECT NULLIF ( - CASE 89 WHEN 86 THEN NULL WHEN ( 58 ) THEN + 35 END, SUM( + + 2 ) - + - 81 * + 42 * - 7 )
----
NULL

skipif mysql # not compatible
query I rowsort label-695
SELECT NULLIF ( - CASE 89 WHEN 86 THEN NULL WHEN ( 58 ) THEN + 35 END, SUM ( + + 2 ) - + - 81 * + 42 * - 7 )
----
NULL

query I rowsort
SELECT ALL 82 + + + 1
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-697
SELECT 65 + - + COUNT( * ) + 45 * - 84 AS col2
----
-3716

skipif mysql # not compatible
query I rowsort label-697
SELECT 65 + - + COUNT ( * ) + 45 * - 84 AS col2
----
-3716

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

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

query II rowsort
SELECT DISTINCT 66 AS col0, + ( - 44 )
----
66
-44

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-700
SELECT DISTINCT 18 AS col2, + 85 + COUNT( * ) + - + 57 * + 0 * 12 DIV 85
----
18
86

skipif mysql # not compatible
query II rowsort label-700
SELECT DISTINCT 18 AS col2, + 85 + COUNT ( * ) + - + 57 * + 0 * 12 / 85
----
18
86

query I rowsort
SELECT 72 + ( - 45 ) AS col1
----
27

query I rowsort
SELECT ALL 67 + - 5 * - 0
----
67

query II rowsort
SELECT 79 + + 91 AS col2, 37 + + - 42 col2
----
170
-5

query II rowsort
SELECT - 82 col0, + 18 - 70 AS col1
----
-82
-52

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

skipif mysql # not compatible
query I rowsort label-705
SELECT 69 * - CAST ( NULL AS INTEGER ) AS col2
----
NULL

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

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

query I rowsort
SELECT + 64 * + - 6 + - - 17 col0
----
-367

query I rowsort
SELECT DISTINCT 60 * - 14 * + + 24 * + 81
----
-1632960

onlyif mysql # aggregate syntax: 
query I rowsort label-709
SELECT 68 * + - CASE + 9 WHEN - SUM( DISTINCT 68 ) THEN - + 58 WHEN - + 72 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-709
SELECT 68 * + - CASE + 9 WHEN - SUM ( DISTINCT 68 ) THEN - + 58 WHEN - + 72 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-710
SELECT 74 + + 77 - + - SUM( NULLIF ( + - 28, + + 55 + - 28 ) ) col2
----
123

skipif mysql # not compatible
query I rowsort label-710
SELECT 74 + + 77 - + - SUM ( NULLIF ( + - 28, + + 55 + - 28 ) ) col2
----
123

onlyif mysql # aggregate syntax: 
query I rowsort label-711
SELECT 59 + - COUNT( * ) * + - 14 * + + 90 AS col0
----
1319

skipif mysql # not compatible
query I rowsort label-711
SELECT 59 + - COUNT ( * ) * + - 14 * + + 90 AS col0
----
1319

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-712
SELECT + CAST( - + CASE - - 22 WHEN + - 22 THEN + 62 END AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-712
SELECT + CAST ( - + CASE - - 22 WHEN + - 22 THEN + 62 END AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-713
SELECT 62 * - COUNT( * ) * 43 AS col1
----
-2666

skipif mysql # not compatible
query I rowsort label-713
SELECT 62 * - COUNT ( * ) * 43 AS col1
----
-2666

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

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

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

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

query II rowsort
SELECT DISTINCT - ( 62 ), - 28 col1
----
-62
-28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-717
SELECT ALL - - 81 AS col1, + CAST( NULL AS SIGNED ) * - 14 * - COUNT( * ) * 28 * - - 92 / - 21 + - 44
----
81
NULL

skipif mysql # not compatible
query II rowsort label-717
SELECT ALL - - 81 AS col1, + CAST ( NULL AS INTEGER ) * - 14 * - COUNT ( * ) * 28 * - - 92 / - 21 + - 44
----
81
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-718
SELECT DISTINCT - + SUM( 78 ) * - 88
----
6864

skipif mysql # not compatible
query I rowsort label-718
SELECT DISTINCT - + SUM ( 78 ) * - 88
----
6864

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

onlyif mysql # aggregate syntax: 
query I rowsort label-720
SELECT + - NULLIF ( - COALESCE ( 35, + 82, - 6 * - COUNT( * ) ), AVG ( DISTINCT - 58 ) ) AS col0
----
35

skipif mysql # not compatible
query I rowsort label-720
SELECT + - NULLIF ( - COALESCE ( 35, + 82, - 6 * - COUNT ( * ) ), AVG ( DISTINCT - 58 ) ) AS col0
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-721
SELECT ALL + 82 + 68 + + + 96 + - MAX( DISTINCT 34 ) + - - 19 * - ( - 84 ) AS col1
----
1808

skipif mysql # not compatible
query I rowsort label-721
SELECT ALL + 82 + 68 + + + 96 + - MAX ( DISTINCT 34 ) + - - 19 * - ( - 84 ) AS col1
----
1808

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-722
SELECT - COALESCE ( + 57, 44 ) * 47 + + COUNT( * ) + + COUNT( * ) + - - COALESCE ( - 35, - 41 DIV - - 75 + - NULLIF ( + + 42, - 59 ), - + 2 + - 37 + 32 * - 20 * + 11 ) AS col2
----
-2712

skipif mysql # not compatible
query I rowsort label-722
SELECT - COALESCE ( + 57, 44 ) * 47 + + COUNT ( * ) + + COUNT ( * ) + - - COALESCE ( - 35, - 41 / - - 75 + - NULLIF ( + + 42, - 59 ), - + 2 + - 37 + 32 * - 20 * + 11 ) AS col2
----
-2712

query I rowsort
SELECT - 70 + - - 65 AS col0
----
-5

query II rowsort
SELECT ALL 42, 45 AS col0
----
42
45

query I rowsort
SELECT DISTINCT + - CASE - - 79 WHEN 55 THEN - 36 * + 31 END + - + 43
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-727
SELECT DISTINCT + COUNT( * ) * NULLIF ( 48, 58 * 43 ) DIV - + 24, - ( CAST( NULL AS SIGNED ) ) AS col0
----
-2
NULL

skipif mysql # not compatible
query II rowsort label-727
SELECT DISTINCT + COUNT ( * ) * NULLIF ( 48, 58 * 43 ) / - + 24, - ( CAST ( NULL AS INTEGER ) ) AS col0
----
-2
NULL

query I rowsort
SELECT ALL - ( 40 ) + - 65 col1
----
-105

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

skipif mysql # not compatible
query I rowsort label-729
SELECT DISTINCT - - 93 + + 1 - - COUNT ( * ) AS col2
----
95

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-730
SELECT 34 - + 6 DIV COUNT( * ) AS col0
----
28

skipif mysql # not compatible
query I rowsort label-730
SELECT 34 - + 6 / COUNT ( * ) AS col0
----
28

query I rowsort
SELECT 59 * + 38 AS col1
----
2242

query I rowsort
SELECT DISTINCT - 6 - 18 * ( - 44 )
----
786

query I rowsort
SELECT ALL - 88 * - - 64 * + 26 AS col0
----
-146432

query I rowsort
SELECT 68 + - - 19 AS col2
----
87

onlyif mysql # DIV for integer division: 
query I rowsort label-735
SELECT 4 DIV + 10 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-735
SELECT 4 / + 10 AS col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-736
SELECT 75 * 27 AS col0, NULLIF ( - 71, + + 78 + - 70 + 89 * COUNT( ALL + + ( 80 ) ) ) AS col1
----
2025
-71

skipif mysql # not compatible
query II rowsort label-736
SELECT 75 * 27 AS col0, NULLIF ( - 71, + + 78 + - 70 + 89 * COUNT ( ALL + + ( 80 ) ) ) AS col1
----
2025
-71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-737
SELECT 16 / NULLIF ( + MIN( - COALESCE ( + 89, 8 / 94 / - COALESCE ( + - 90, - + 41 ), + 72 ) ), 6 + COUNT( * ) ) + ( + CAST( NULL AS SIGNED ) ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-737
SELECT 16 / NULLIF ( + MIN ( - COALESCE ( + 89, 8 / 94 / - COALESCE ( + - 90, - + 41 ), + 72 ) ), 6 + COUNT ( * ) ) + ( + CAST ( NULL AS INTEGER ) ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-738
SELECT COUNT( * ) - - 29, COUNT( * ) AS col0
----
30
1

skipif mysql # not compatible
query II rowsort label-738
SELECT COUNT ( * ) - - 29, COUNT ( * ) AS col0
----
30
1

onlyif mysql # DIV for integer division: 
query I rowsort label-739
SELECT 94 DIV + + 42 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-739
SELECT 94 / + + 42 AS col0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-740
SELECT ALL + 46 * + + 17 + + 99 * + - COUNT( - 87 )
----
683

skipif mysql # not compatible
query I rowsort label-740
SELECT ALL + 46 * + + 17 + + 99 * + - COUNT ( - 87 )
----
683

onlyif mysql # aggregate syntax: 
query I rowsort label-741
SELECT ALL - 55 * + SUM( + + 76 ) + + 58 AS col1
----
-4122

skipif mysql # not compatible
query I rowsort label-741
SELECT ALL - 55 * + SUM ( + + 76 ) + + 58 AS col1
----
-4122

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-742
SELECT ALL - + COUNT( * ) * - COALESCE ( + CAST( - 7 AS SIGNED ), - COALESCE ( + + 56, 76 * 58 ) ) + + 71
----
64

skipif mysql # not compatible
query I rowsort label-742
SELECT ALL - + COUNT ( * ) * - COALESCE ( + CAST ( - 7 AS INTEGER ), - COALESCE ( + + 56, 76 * 58 ) ) + + 71
----
64

query I rowsort
SELECT + 18 * + 77 * + 32 * + 28 * + - 73 AS col2
----
-90655488

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-744
SELECT ALL - - CASE + 59 WHEN - - 74 - 42 THEN - 45 * - COALESCE ( - 33, - + 49 + + 98 - + - 21 / CAST( - ( - - 85 ) AS SIGNED ) + + 39 * 73 ) / + - 33 END * + 47 * 93 + + + ( + 39 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-744
SELECT ALL - - CASE + 59 WHEN - - 74 - 42 THEN - 45 * - COALESCE ( - 33, - + 49 + + 98 - + - 21 / CAST ( - ( - - 85 ) AS INTEGER ) + + 39 * 73 ) / + - 33 END * + 47 * 93 + + + ( + 39 ) AS col0
----
NULL

query I rowsort
SELECT ALL + + 84 * + 56 + + 44 + + 73 AS col0
----
4821

onlyif mysql # aggregate syntax: 
query I rowsort label-746
SELECT - 75 * - 89 - - CASE - 26 WHEN + 20 * - - 59 THEN NULL ELSE + COUNT( * ) END + - - 33
----
6709

skipif mysql # not compatible
query I rowsort label-746
SELECT - 75 * - 89 - - CASE - 26 WHEN + 20 * - - 59 THEN NULL ELSE + COUNT ( * ) END + - - 33
----
6709

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-747
SELECT CASE + + MIN( ALL - CAST( 49 AS SIGNED ) ) WHEN 30 THEN + 24 * + + 81 * - + 51 + + 75 + + 42 WHEN - 83 * + COUNT( * ) * - 26 + - 94 THEN NULL ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-747
SELECT CASE + + MIN ( ALL - CAST ( 49 AS INTEGER ) ) WHEN 30 THEN + 24 * + + 81 * - + 51 + + 75 + + 42 WHEN - 83 * + COUNT ( * ) * - 26 + - 94 THEN NULL ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-748
SELECT - CASE - + 96 WHEN + 41 THEN - 28 * - - 26 * COUNT( * ) * - 61 / + - 38 + - ( + 65 ) + COUNT( * ) + + - COUNT( * ) / - 1 * - COUNT( * ) ELSE NULL END + + + 10 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-748
SELECT - CASE - + 96 WHEN + 41 THEN - 28 * - - 26 * COUNT ( * ) * - 61 / + - 38 + - ( + 65 ) + COUNT ( * ) + + - COUNT ( * ) / - 1 * - COUNT ( * ) ELSE NULL END + + + 10 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-749
SELECT - COALESCE ( + + 22, + 95 + - + COUNT( * ) * + 8, COUNT( * ) ) AS col1
----
-22

skipif mysql # not compatible
query I rowsort label-749
SELECT - COALESCE ( + + 22, + 95 + - + COUNT ( * ) * + 8, COUNT ( * ) ) AS col1
----
-22

query I rowsort
SELECT + - 64 - + 20 AS col1
----
-84

query I rowsort
SELECT 15 * + + 16 + - 53 - + - 13 AS col0
----
200

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-752
SELECT ALL NULLIF ( - + 69, - ( - 42 ) ) - 49 * + - 56 + + - 38 + + COUNT( * ) col0, + CAST( + 87 AS SIGNED ) + - NULLIF ( + COUNT( * ), + 81 / - 86 ) AS col0
----
2638
86

skipif mysql # not compatible
query II rowsort label-752
SELECT ALL NULLIF ( - + 69, - ( - 42 ) ) - 49 * + - 56 + + - 38 + + COUNT ( * ) col0, + CAST ( + 87 AS INTEGER ) + - NULLIF ( + COUNT ( * ), + 81 / - 86 ) AS col0
----
2638
86

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

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

query I rowsort
SELECT DISTINCT 99 col1
----
99

query I rowsort
SELECT + 73 + - + 44
----
29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-756
SELECT - NULLIF ( CASE 94 WHEN - 1 * - - 39 THEN + - 39 + - 16 + + - MAX( - 76 ) * COUNT( * ) + + COUNT( * ) END, + - 53 ) * - - 12 + + 18 + - 50 + + COALESCE ( 50, + + SUM( ALL ( + - 7 ) ) * + - CAST( NULL AS SIGNED ) ) * 12
----
NULL

skipif mysql # not compatible
query I rowsort label-756
SELECT - NULLIF ( CASE 94 WHEN - 1 * - - 39 THEN + - 39 + - 16 + + - MAX ( - 76 ) * COUNT ( * ) + + COUNT ( * ) END, + - 53 ) * - - 12 + + 18 + - 50 + + COALESCE ( 50, + + SUM ( ALL ( + - 7 ) ) * + - CAST ( NULL AS INTEGER ) ) * 12
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-757
SELECT DISTINCT MAX( ALL + 58 ) AS col2
----
58

skipif mysql # not compatible
query I rowsort label-757
SELECT DISTINCT MAX ( ALL + 58 ) AS col2
----
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-758
SELECT ALL COUNT( * ), CAST( + + 72 AS SIGNED ) AS col2
----
1
72

skipif mysql # not compatible
query II rowsort label-758
SELECT ALL COUNT ( * ), CAST ( + + 72 AS INTEGER ) AS col2
----
1
72

query I rowsort
SELECT ALL 49 * + 32
----
1568

onlyif mysql # DIV for integer division: 
query I rowsort label-760
SELECT ALL + 20 DIV 3
----
6

skipif mysql # not compatible
query I rowsort label-760
SELECT ALL + 20 / 3
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-761
SELECT - COUNT( * ) * - CASE - 20 WHEN + + 94 THEN COALESCE ( - COUNT( * ), 59 ) + - 79 / + - COUNT( * ) WHEN 59 THEN NULL WHEN + ( 69 ) THEN NULL END * + 32 * - 11 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-761
SELECT - COUNT ( * ) * - CASE - 20 WHEN + + 94 THEN COALESCE ( - COUNT ( * ), 59 ) + - 79 / + - COUNT ( * ) WHEN 59 THEN NULL WHEN + ( 69 ) THEN NULL END * + 32 * - 11 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-762
SELECT ALL MAX( ALL 15 ) AS col0
----
15

skipif mysql # not compatible
query I rowsort label-762
SELECT ALL MAX ( ALL 15 ) AS col0
----
15

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

onlyif mysql # aggregate syntax: 
query I rowsort label-764
SELECT ALL NULLIF ( + + 52, COUNT( DISTINCT - 93 ) + 5 ) AS col2
----
52

skipif mysql # not compatible
query I rowsort label-764
SELECT ALL NULLIF ( + + 52, COUNT ( DISTINCT - 93 ) + 5 ) AS col2
----
52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-765
SELECT - MAX( DISTINCT + 54 ) + - - COUNT( * ) + - 76 - COALESCE ( 57, + 79 * + 34 + - 81 + 0 DIV + 98 * + + SUM( DISTINCT 87 ), + - MAX( DISTINCT + 93 ) ) + + 32 DIV + - ( + 7 )
----
-190

skipif mysql # not compatible
query I rowsort label-765
SELECT - MAX ( DISTINCT + 54 ) + - - COUNT ( * ) + - 76 - COALESCE ( 57, + 79 * + 34 + - 81 + 0 / + 98 * + + SUM ( DISTINCT 87 ), + - MAX ( DISTINCT + 93 ) ) + + 32 / + - ( + 7 )
----
-190

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

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

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

query I rowsort
SELECT ALL + 30 * - 34 col0
----
-1020

onlyif mysql # aggregate syntax: 
query II rowsort label-769
SELECT 20 AS col2, NULLIF ( + + 69, - COALESCE ( + - 85, - MIN( - 90 ) ) * - AVG ( DISTINCT + 75 ) ) AS col1
----
20
69

skipif mysql # not compatible
query II rowsort label-769
SELECT 20 AS col2, NULLIF ( + + 69, - COALESCE ( + - 85, - MIN ( - 90 ) ) * - AVG ( DISTINCT + 75 ) ) AS col1
----
20
69

query II rowsort
SELECT DISTINCT + 63, 17 AS col1
----
63
17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-771
SELECT DISTINCT + CAST( + - 81 AS SIGNED ) * - COUNT( - - 30 ) + - + 45
----
36

skipif mysql # not compatible
query I rowsort label-771
SELECT DISTINCT + CAST ( + - 81 AS INTEGER ) * - COUNT ( - - 30 ) + - + 45
----
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-772
SELECT CAST( NULL AS SIGNED ), - COUNT( DISTINCT - 22 ) AS col2
----
NULL
-1

skipif mysql # not compatible
query II rowsort label-772
SELECT CAST ( NULL AS INTEGER ), - COUNT ( DISTINCT - 22 ) AS col2
----
NULL
-1

query I rowsort
SELECT + COALESCE ( - + 32, + 50 + + 5 ) * + 17
----
-544

onlyif mysql # DIV for integer division: 
query I rowsort label-774
SELECT ALL + 90 DIV + + 63
----
1

skipif mysql # not compatible
query I rowsort label-774
SELECT ALL + 90 / + + 63
----
1

query II rowsort
SELECT + + 48 AS col1, 99 * 47 AS col0
----
48
4653

onlyif mysql # aggregate syntax: 
query II rowsort label-776
SELECT + - MAX( DISTINCT - + 42 ) + - 29 AS col2, + 73 * - - 39 * COALESCE ( 38, + 24, + ( - 69 ) )
----
13
108186

skipif mysql # not compatible
query II rowsort label-776
SELECT + - MAX ( DISTINCT - + 42 ) + - 29 AS col2, + 73 * - - 39 * COALESCE ( 38, + 24, + ( - 69 ) )
----
13
108186

onlyif mysql # aggregate syntax: 
query I rowsort label-777
SELECT ALL + NULLIF ( - - 14, - 87 ) * - - 46 + COUNT( * )
----
645

skipif mysql # not compatible
query I rowsort label-777
SELECT ALL + NULLIF ( - - 14, - 87 ) * - - 46 + COUNT ( * )
----
645

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-778
SELECT - - COUNT( * ) * - 90 + + 83 + + CAST( - + 68 AS SIGNED ) * 83
----
-5651

skipif mysql # not compatible
query I rowsort label-778
SELECT - - COUNT ( * ) * - 90 + + 83 + + CAST ( - + 68 AS INTEGER ) * 83
----
-5651

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-779
SELECT ALL + COALESCE ( 97, 66 - - ( + - 21 ), - + 68 + COUNT( * ) ) DIV 56 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-779
SELECT ALL + COALESCE ( 97, 66 - - ( + - 21 ), - + 68 + COUNT ( * ) ) / 56 AS col0
----
1

query II rowsort
SELECT DISTINCT + 99 AS col0, 59 * + - 92 AS col1
----
99
-5428

onlyif mysql # aggregate syntax: 
query I rowsort label-781
SELECT + + CASE + + COUNT( * ) WHEN - COUNT( * ) + + 24 * - - ( 0 ) THEN NULL ELSE 27 END
----
27

skipif mysql # not compatible
query I rowsort label-781
SELECT + + CASE + + COUNT ( * ) WHEN - COUNT ( * ) + + 24 * - - ( 0 ) THEN NULL ELSE 27 END
----
27

query I rowsort
SELECT + 18 + 5 col2
----
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-783
SELECT ALL - - COALESCE ( + 59, - 37 * - 67 ) * - + 3 * + 1 - 40 + - - 91 + + - ( - CAST( + CASE - 98 WHEN + 57 * + 5 * 14 / - 61 THEN - - 59 WHEN - 9 THEN NULL END AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-783
SELECT ALL - - COALESCE ( + 59, - 37 * - 67 ) * - + 3 * + 1 - 40 + - - 91 + + - ( - CAST ( + CASE - 98 WHEN + 57 * + 5 * 14 / - 61 THEN - - 59 WHEN - 9 THEN NULL END AS INTEGER ) )
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-784
SELECT + + 63, + 52 * CAST( NULL AS DECIMAL ) - 42 AS col2
----
63
NULL

skipif mysql # not compatible
query II rowsort label-784
SELECT + + 63, + 52 * CAST ( NULL AS REAL ) - 42 AS col2
----
63
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-786
SELECT CASE - CAST( - 98 AS SIGNED ) WHEN CAST( NULL AS SIGNED ) THEN 9 / - + ( - ( - 95 ) ) ELSE 45 END AS col0
----
45

skipif mysql # not compatible
query I rowsort label-786
SELECT CASE - CAST ( - 98 AS INTEGER ) WHEN CAST ( NULL AS INTEGER ) THEN 9 / - + ( - ( - 95 ) ) ELSE 45 END AS col0
----
45

query I rowsort
SELECT + COALESCE ( - 62, - - 98 )
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-788
SELECT + 56 + - COALESCE ( + - 5, + - ( - 1 ) * + 66 * 20 ) + 28 - + + COUNT( * ) * - - 61 * - + COUNT( * )
----
150

skipif mysql # not compatible
query I rowsort label-788
SELECT + 56 + - COALESCE ( + - 5, + - ( - 1 ) * + 66 * 20 ) + 28 - + + COUNT ( * ) * - - 61 * - + COUNT ( * )
----
150

onlyif mysql # aggregate syntax: 
query I rowsort label-789
SELECT MAX( ALL - 63 ) col1
----
-63

skipif mysql # not compatible
query I rowsort label-789
SELECT MAX ( ALL - 63 ) col1
----
-63

onlyif mysql # aggregate syntax: 
query II rowsort label-790
SELECT SUM( DISTINCT + + 33 ) AS col0, 41 AS col0
----
33
41

skipif mysql # not compatible
query II rowsort label-790
SELECT SUM ( DISTINCT + + 33 ) AS col0, 41 AS col0
----
33
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-791
SELECT + CAST( NULL AS SIGNED ) / - + COUNT( - COALESCE ( 32, 77 + 86 - - + 5 ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-791
SELECT + CAST ( NULL AS INTEGER ) / - + COUNT ( - COALESCE ( 32, 77 + 86 - - + 5 ) ) AS col0
----
NULL

query I rowsort
SELECT + 84 - + 25 AS col2
----
59

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

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

query I rowsort
SELECT - 59 + - 32 AS col1
----
-91

query I rowsort
SELECT ALL + 98 + + 31 AS col1
----
129

onlyif mysql # aggregate syntax: 
query I rowsort label-796
SELECT ALL 36 * COUNT( * ) col1
----
36

skipif mysql # not compatible
query I rowsort label-796
SELECT ALL 36 * COUNT ( * ) col1
----
36

query I rowsort
SELECT ALL 94 + + 88 * 5
----
534

query I rowsort
SELECT DISTINCT 53 + + + ( 62 ) AS col2
----
115

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

onlyif mysql # aggregate syntax: 
query I rowsort label-800
SELECT DISTINCT COUNT( * ) + + NULLIF ( + 26, + - 73 + - - 51 + - 3 + - 38 / + COUNT( * ) )
----
27

skipif mysql # not compatible
query I rowsort label-800
SELECT DISTINCT COUNT ( * ) + + NULLIF ( + 26, + - 73 + - - 51 + - 3 + - 38 / + COUNT ( * ) )
----
27

query I rowsort
SELECT ALL 47 + 90 AS col1
----
137

onlyif mysql # aggregate syntax: 
query I rowsort label-802
SELECT + COUNT( * ) + - 17 + + + 43
----
27

skipif mysql # not compatible
query I rowsort label-802
SELECT + COUNT ( * ) + - 17 + + + 43
----
27

query I rowsort
SELECT + - 89 * + 5 + - 89 AS col0
----
-534

onlyif mysql # aggregate syntax: 
query I rowsort label-804
SELECT + - COUNT( * ) + - 40
----
-41

skipif mysql # not compatible
query I rowsort label-804
SELECT + - COUNT ( * ) + - 40
----
-41

query I rowsort
SELECT DISTINCT + + 78 * - + 62 - 64 * - 1 AS col1
----
-4772

onlyif mysql # aggregate syntax: 
query I rowsort label-806
SELECT DISTINCT + COUNT( * ) * + + CASE 17 WHEN - + 61 / - + 71 - - COUNT( * ) THEN 10 * 16 * + COALESCE ( - ( 34 ), - 68 ) - ( 36 ) ELSE + 82 * - 1 + + 89 * - 1 * + - 88 * + ( 55 ) END AS col0
----
430678

skipif mysql # not compatible
query I rowsort label-806
SELECT DISTINCT + COUNT ( * ) * + + CASE 17 WHEN - + 61 / - + 71 - - COUNT ( * ) THEN 10 * 16 * + COALESCE ( - ( 34 ), - 68 ) - ( 36 ) ELSE + 82 * - 1 + + 89 * - 1 * + - 88 * + ( 55 ) END AS col0
----
430678

onlyif mysql # aggregate syntax: 
query III rowsort label-807
SELECT DISTINCT - COALESCE ( + 75, - 40 * + - 58 * MIN( DISTINCT + 27 ) + 84 + 58, - 83 ) - - 29, NULLIF ( - 95, + 37 * 16 + - 51 ) AS col0, - 40 * + - COUNT( * ) / + 4 + + ( + CASE ( COUNT( 81 ) ) WHEN - NULLIF ( + + COUNT( DISTINCT + 52 ), - - ( + 85 ) * - - 2 ) THEN 67 + + + 26 * 8 END ) AS col1
----
-46
-95
NULL

skipif mysql # not compatible
query III rowsort label-807
SELECT DISTINCT - COALESCE ( + 75, - 40 * + - 58 * MIN ( DISTINCT + 27 ) + 84 + 58, - 83 ) - - 29, NULLIF ( - 95, + 37 * 16 + - 51 ) AS col0, - 40 * + - COUNT ( * ) / + 4 + + ( + CASE ( COUNT ( 81 ) ) WHEN - NULLIF ( + + COUNT ( DISTINCT + 52 ), - - ( + 85 ) * - - 2 ) THEN 67 + + + 26 * 8 END ) AS col1
----
-46
-95
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-808
SELECT ALL + - NULLIF ( CAST( - 39 AS SIGNED ), - 49 + 83 * NULLIF ( 86, - ( + 82 ) ) ) * + COUNT( * )
----
39

skipif mysql # not compatible
query I rowsort label-808
SELECT ALL + - NULLIF ( CAST ( - 39 AS INTEGER ), - 49 + 83 * NULLIF ( 86, - ( + 82 ) ) ) * + COUNT ( * )
----
39

query I rowsort
SELECT 87 * 9 + 2 col0
----
785

onlyif mysql # aggregate syntax: 
query II rowsort label-810
SELECT 34 * - CASE + SUM( ALL - 73 ) WHEN + 34 + 16 * 50 THEN - MAX( ALL - 34 ) * 16 * SUM( + 83 ) + 10 ELSE 47 END AS col2, - COUNT( DISTINCT + 42 ) AS col0
----
-1598
-1

skipif mysql # not compatible
query II rowsort label-810
SELECT 34 * - CASE + SUM ( ALL - 73 ) WHEN + 34 + 16 * 50 THEN - MAX ( ALL - 34 ) * 16 * SUM ( + 83 ) + 10 ELSE 47 END AS col2, - COUNT ( DISTINCT + 42 ) AS col0
----
-1598
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-811
SELECT - + 59 * 5 * 79 * ( - 48 ) + - + ( COUNT( * ) ) + - + 74
----
1118565

skipif mysql # not compatible
query I rowsort label-811
SELECT - + 59 * 5 * 79 * ( - 48 ) + - + ( COUNT ( * ) ) + - + 74
----
1118565

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

skipif mysql # not compatible
query I rowsort label-812
SELECT + 82 + - CAST ( NULL AS INTEGER ) AS col2
----
NULL

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

skipif mysql # not compatible
query I rowsort label-813
SELECT + - MIN ( + 72 )
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-814
SELECT 62 * - 93 * - 98 / + CASE COUNT( * ) WHEN - 74 - + - SUM( DISTINCT - + 79 ) THEN NULL WHEN + + 22 - + 99 - 54 - + ( 41 ) - 44 + + - 47 * + 44 THEN + + 96 * + MIN( DISTINCT + + 76 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-814
SELECT 62 * - 93 * - 98 / + CASE COUNT ( * ) WHEN - 74 - + - SUM ( DISTINCT - + 79 ) THEN NULL WHEN + + 22 - + 99 - 54 - + ( 41 ) - 44 + + - 47 * + 44 THEN + + 96 * + MIN ( DISTINCT + + 76 ) ELSE NULL END
----
NULL

query I rowsort
SELECT 69 - - ( - 67 ) * + 76 AS col1
----
-5023

onlyif mysql # aggregate syntax: 
query II rowsort label-816
SELECT 72 * ( - - 24 ), ( - 52 ) + + COUNT( * ) col2
----
1728
-51

skipif mysql # not compatible
query II rowsort label-816
SELECT 72 * ( - - 24 ), ( - 52 ) + + COUNT ( * ) col2
----
1728
-51

query I rowsort
SELECT DISTINCT - 47 / + ( + ( CASE + 68 WHEN 71 + - 16 + + 34 * - + 20 + + + 64 THEN + 69 * - - 16 ELSE NULL END ) )
----
NULL

query I rowsort
SELECT ALL - NULLIF ( - 12, 42 / 20 * + - 8 ) AS col0
----
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-819
SELECT CAST( + + 7 AS SIGNED ) * 12 + SUM( DISTINCT - + 69 ) + - + 4 AS col0
----
11

skipif mysql # not compatible
query I rowsort label-819
SELECT CAST ( + + 7 AS INTEGER ) * 12 + SUM ( DISTINCT - + 69 ) + - + 4 AS col0
----
11

query I rowsort
SELECT ALL - 29 * - + 97 * + + 56 * - 20 AS col1
----
-3150560

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

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

query II rowsort
SELECT 64 AS col2, 13 * - + 82 * - - 35 col1
----
64
-37310

onlyif mysql # aggregate syntax: 
query I rowsort label-823
SELECT DISTINCT + COUNT( - 59 ) * + + 56 + + + 18 AS col1
----
74

skipif mysql # not compatible
query I rowsort label-823
SELECT DISTINCT + COUNT ( - 59 ) * + + 56 + + + 18 AS col1
----
74

query I rowsort
SELECT ALL 54 + - 80 AS col0
----
-26

query I rowsort
SELECT 13 - - + 81 col2
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-826
SELECT MAX( - - 25 ) + 90 AS col0
----
115

skipif mysql # not compatible
query I rowsort label-826
SELECT MAX ( - - 25 ) + 90 AS col0
----
115

onlyif mysql # aggregate syntax: 
query I rowsort label-827
SELECT ( - 59 ) + - NULLIF ( + + 33, + 37 * CASE + 8 WHEN 17 * + 64 + + 65 + 6 THEN - 43 WHEN - COUNT( * ) + - 34 THEN NULL END ) AS col0
----
-92

skipif mysql # not compatible
query I rowsort label-827
SELECT ( - 59 ) + - NULLIF ( + + 33, + 37 * CASE + 8 WHEN 17 * + 64 + + 65 + 6 THEN - 43 WHEN - COUNT ( * ) + - 34 THEN NULL END ) AS col0
----
-92

query II rowsort
SELECT DISTINCT 45 AS col1, ( - - 89 )
----
45
89

onlyif mysql # aggregate syntax: 
query II rowsort label-829
SELECT COUNT( * ) + + 4 + - 94 + - 56 * - + 92 AS col0, 21
----
5063
21

skipif mysql # not compatible
query II rowsort label-829
SELECT COUNT ( * ) + + 4 + - 94 + - 56 * - + 92 AS col0, 21
----
5063
21

query I rowsort
SELECT 32 + - ( NULLIF ( - 65, + - 76 * 12 + - 37 ) ) AS col1
----
97

query I rowsort
SELECT + 15 * - 81 col1
----
-1215

query I rowsort
SELECT DISTINCT 63 + - 85 + - 82
----
-104

query I rowsort
SELECT ALL ( + 34 ) * 75 * + 92 * - 53 * + 71 + + 25 + - 23
----
-882799798

query I rowsort
SELECT 31 * + 56
----
1736

query I rowsort
SELECT + 73 + 29 * + 3 - ( + - 67 ) - + 76 AS col1
----
151

query I rowsort
SELECT DISTINCT + 71 - 62 * - - 18 + + + 31
----
-1014

query I rowsort
SELECT ALL - - ( - 25 ) AS col0
----
-25

query I rowsort
SELECT DISTINCT - - 65 AS col1
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-839
SELECT ALL - + MAX( DISTINCT 18 )
----
-18

skipif mysql # not compatible
query I rowsort label-839
SELECT ALL - + MAX ( DISTINCT 18 )
----
-18

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-841
SELECT CAST( NULL AS SIGNED ) AS col0, + 88 col1
----
NULL
88

skipif mysql # not compatible
query II rowsort label-841
SELECT CAST ( NULL AS INTEGER ) AS col0, + 88 col1
----
NULL
88

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

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

query I rowsort
SELECT 80 * + 87 * - 99
----
-689040

query I rowsort
SELECT ALL + 56 * + 45
----
2520

query I rowsort
SELECT 78 + - 59
----
19

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

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

query II rowsort
SELECT + 64 AS col2, 31
----
64
31

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-850
SELECT ALL - 33 + COALESCE ( - 9, + + 70 DIV 11 )
----
-42

skipif mysql # not compatible
query I rowsort label-850
SELECT ALL - 33 + COALESCE ( - 9, + + 70 / 11 )
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-851
SELECT 68 * + - COUNT( * ) * 56 * 22 * - 81
----
6785856

skipif mysql # not compatible
query I rowsort label-851
SELECT 68 * + - COUNT ( * ) * 56 * 22 * - 81
----
6785856

query II rowsort
SELECT 36 AS col0, 65 col0
----
36
65

query I rowsort
SELECT DISTINCT - 16 + 99 + - 39 - - 35 * - 49
----
-1671

onlyif mysql # DIV for integer division: 
query II rowsort label-854
SELECT 87 DIV + 14 AS col1, + 69 - + 97 * - ( 71 ) + - 88 - 63 + + 29 + + 10 DIV - 84 AS col2
----
6
6834

skipif mysql # not compatible
query II rowsort label-854
SELECT 87 / + 14 AS col1, + 69 - + 97 * - ( 71 ) + - 88 - 63 + + 29 + + 10 / - 84 AS col2
----
6
6834

query I rowsort
SELECT 23 + 21 AS col2
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-856
SELECT ALL - MAX( DISTINCT - - 42 ) + - 38 * - - 62
----
-2398

skipif mysql # not compatible
query I rowsort label-856
SELECT ALL - MAX ( DISTINCT - - 42 ) + - 38 * - - 62
----
-2398

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

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

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

skipif mysql # not compatible
query I rowsort label-858
SELECT ALL + 71 + + ( + COUNT ( * ) ) AS col2
----
72

query I rowsort
SELECT DISTINCT - 16 + + 19 + - - 1 col1
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-860
SELECT ALL COUNT( * ) + - - 92 * 43 * + 63 * 16 AS col0
----
3987649

skipif mysql # not compatible
query I rowsort label-860
SELECT ALL COUNT ( * ) + - - 92 * 43 * + 63 * 16 AS col0
----
3987649

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-862
SELECT COUNT( * ) * + SUM( + - 31 )
----
-31

skipif mysql # not compatible
query I rowsort label-862
SELECT COUNT ( * ) * + SUM ( + - 31 )
----
-31

query I rowsort
SELECT DISTINCT + 26 * 37
----
962

onlyif mysql # aggregate syntax: 
query I rowsort label-864
SELECT 3 - + 65 - - COUNT( ALL 57 ) AS col2
----
-61

skipif mysql # not compatible
query I rowsort label-864
SELECT 3 - + 65 - - COUNT ( ALL 57 ) AS col2
----
-61

query II rowsort
SELECT - 53, + ( 45 ) col0
----
-53
45

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

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

query I rowsort
SELECT 12 + - 39 * + 27 + - 83 + 0 AS col1
----
-1124

query I rowsort
SELECT 66 * + 92 + + 81 * + - 0 + - 45 * - 39 * + ( - - 96 ) AS col0
----
174552

query I rowsort
SELECT ALL 52 * - 68 * 55 AS col2
----
-194480

onlyif mysql # aggregate syntax: 
query I rowsort label-870
SELECT - 26 + COUNT( * ) AS col2
----
-25

skipif mysql # not compatible
query I rowsort label-870
SELECT - 26 + COUNT ( * ) AS col2
----
-25

query I rowsort
SELECT ALL 65 - 2 AS col2
----
63

query I rowsort
SELECT - NULLIF ( 86, - ( + - 93 ) + + - 13 )
----
-86

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

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

query I rowsort
SELECT DISTINCT + + 7 - - 36 * + + NULLIF ( - 23, + 22 ) + - 39 AS col2
----
-860

query I rowsort
SELECT ALL NULLIF ( + + 22, 88 + + 3 ) AS col2
----
22

query II rowsort
SELECT ALL - 48 AS col0, 16 * 40 col2
----
-48
640

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-877
SELECT + - ( + COALESCE ( - 62, + 22 DIV - COUNT( * ) ) ) - COUNT( * ) + - 59 DIV - 3
----
80

skipif mysql # not compatible
query I rowsort label-877
SELECT + - ( + COALESCE ( - 62, + 22 / - COUNT ( * ) ) ) - COUNT ( * ) + - 59 / - 3
----
80

query II rowsort
SELECT DISTINCT + 51, 14 AS col0
----
51
14

query I rowsort
SELECT ALL - 62 * - 30 AS col1
----
1860

query I rowsort
SELECT + 85 * + 34 AS col1
----
2890

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-881
SELECT ALL - COUNT( * ) col2, 74 * + 1 + - + CASE - + CAST( NULL AS SIGNED ) WHEN COUNT( * ) THEN 81 + 68 ELSE + 50 END * + COALESCE ( + + COALESCE ( - 61, - 74, + 45 ), + MIN( ALL + ( - 38 ) ) * + + 48, + 82 ) * - - 89 AS col0
----
-1
271524

skipif mysql # not compatible
query II rowsort label-881
SELECT ALL - COUNT ( * ) col2, 74 * + 1 + - + CASE - + CAST ( NULL AS INTEGER ) WHEN COUNT ( * ) THEN 81 + 68 ELSE + 50 END * + COALESCE ( + + COALESCE ( - 61, - 74, + 45 ), + MIN ( ALL + ( - 38 ) ) * + + 48, + 82 ) * - - 89 AS col0
----
-1
271524

query I rowsort
SELECT - + 87 + 37
----
-50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-883
SELECT 12 * - + CAST( NULL AS SIGNED ) + + - 59 / + + 14 + + 48 * - + ( + - ( 46 ) ) - + 92
----
NULL

skipif mysql # not compatible
query I rowsort label-883
SELECT 12 * - + CAST ( NULL AS INTEGER ) + + - 59 / + + 14 + + 48 * - + ( + - ( 46 ) ) - + 92
----
NULL

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

query I rowsort
SELECT + 51 * + 74 + - - 77 AS col2
----
3851

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

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

query I rowsort
SELECT + 25 - - 87 AS col1
----
112

onlyif mysql # aggregate syntax: 
query I rowsort label-888
SELECT ALL + - MAX( DISTINCT - 53 )
----
53

skipif mysql # not compatible
query I rowsort label-888
SELECT ALL + - MAX ( DISTINCT - 53 )
----
53

query I rowsort
SELECT DISTINCT 39 * - CASE - 36 WHEN - 43 THEN - ( + 61 ) ELSE + 80 END * + 84
----
-262080

query I rowsort
SELECT ALL 69 * 98 + 19 + + 21 + 16 * + 17 AS col1
----
7074

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

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

query II rowsort
SELECT ALL - 66 * + 79 + 48 + + - 77 AS col1, - 57 AS col0
----
-5243
-57

query I rowsort
SELECT DISTINCT 41 * 70 + - 2
----
2868

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-895
SELECT + ( - 48 ) DIV 98 DIV 37 + - 17 * - 70
----
1190

skipif mysql # not compatible
query I rowsort label-895
SELECT + ( - 48 ) / 98 / 37 + - 17 * - 70
----
1190

query II rowsort
SELECT - 67 * - + 95 AS col1, 40 AS col2
----
6365
40

query I rowsort
SELECT DISTINCT 59 * + 87 + + 68
----
5201

query I rowsort
SELECT + ( - - 22 ) + 72
----
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-899
SELECT CASE WHEN NOT CASE - - 27 WHEN + + CASE + 77 WHEN - 91 THEN + - 87 END THEN - 59 * 57 + - 18 WHEN 96 * + + 3 + ( NULLIF ( CAST( NULL AS SIGNED ), - - MIN( + 47 ) + + CAST( NULL AS SIGNED ) ) ) * + 68 * 7 THEN + 59 - + 2 + - + 26 ELSE NULL END <= NULL THEN 63 END
----
NULL

skipif mysql # not compatible
query I rowsort label-899
SELECT CASE WHEN NOT CASE - - 27 WHEN + + CASE + 77 WHEN - 91 THEN + - 87 END THEN - 59 * 57 + - 18 WHEN 96 * + + 3 + ( NULLIF ( CAST ( NULL AS INTEGER ), - - MIN ( + 47 ) + + CAST ( NULL AS INTEGER ) ) ) * + 68 * 7 THEN + 59 - + 2 + - + 26 ELSE NULL END <= NULL THEN 63 END
----
NULL

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-901
SELECT - 90 * 57 * CAST( NULL AS DECIMAL ) + 24 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-901
SELECT - 90 * 57 * CAST ( NULL AS REAL ) + 24 AS col2
----
NULL

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

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

query I rowsort
SELECT ALL 71 * - 11
----
-781

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-904
SELECT DISTINCT + MAX( ALL + 56 ), - 10 - + + 14 * + + ( - + CAST( NULL AS SIGNED ) ) / 91 col1
----
56
NULL

skipif mysql # not compatible
query II rowsort label-904
SELECT DISTINCT + MAX ( ALL + 56 ), - 10 - + + 14 * + + ( - + CAST ( NULL AS INTEGER ) ) / 91 col1
----
56
NULL

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

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

query II rowsort
SELECT DISTINCT - 94 * + 17, - 85 AS col2
----
-1598
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-907
SELECT ALL SUM( ALL + 45 ) col0
----
45

skipif mysql # not compatible
query I rowsort label-907
SELECT ALL SUM ( ALL + 45 ) col0
----
45

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

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

query I rowsort
SELECT - 33 * + 4 + + 21
----
-111

query I rowsort
SELECT - 65 * 55 AS col2
----
-3575

query I rowsort
SELECT - 29 + + + 38
----
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-912
SELECT DISTINCT + - COUNT( * ) DIV - ( - 96 ) col2
----
0

skipif mysql # not compatible
query I rowsort label-912
SELECT DISTINCT + - COUNT ( * ) / - ( - 96 ) col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-913
SELECT - 24 * - + 56 - - 24 * - - COALESCE ( - 98, 65 + - + COUNT( * ) + ( 3 ) * + + 68 ) * - ( - 19 )
----
-43344

skipif mysql # not compatible
query I rowsort label-913
SELECT - 24 * - + 56 - - 24 * - - COALESCE ( - 98, 65 + - + COUNT ( * ) + ( 3 ) * + + 68 ) * - ( - 19 )
----
-43344

onlyif mysql # aggregate syntax: 
query I rowsort label-914
SELECT ALL NULLIF ( - 66, - 16 / - ( - CASE - - 17 WHEN + + COUNT( * ) THEN + + 76 ELSE - + 21 END ) )
----
-66

skipif mysql # not compatible
query I rowsort label-914
SELECT ALL NULLIF ( - 66, - 16 / - ( - CASE - - 17 WHEN + + COUNT ( * ) THEN + + 76 ELSE - + 21 END ) )
----
-66

query III rowsort
SELECT - - 52 + + 27 AS col0, + 32 AS col1, - 88 * - 62 AS col1
----
79
32
5456

query II rowsort
SELECT ALL ( + 39 ) col1, - 84 + 30
----
39
-54

onlyif mysql # DIV for integer division: 
query II rowsort label-917
SELECT ALL + ( - 76 ) AS col0, 57 DIV - + 58
----
-76
0

skipif mysql # not compatible
query II rowsort label-917
SELECT ALL + ( - 76 ) AS col0, 57 / - + 58
----
-76
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-918
SELECT - + 77 + - 38 + - 46 + ( - - COUNT( - 29 ) ) DIV 76 + - + 67 * CAST( 64 AS SIGNED ) * - COUNT( * ) AS col1
----
4127

skipif mysql # not compatible
query I rowsort label-918
SELECT - + 77 + - 38 + - 46 + ( - - COUNT ( - 29 ) ) / 76 + - + 67 * CAST ( 64 AS INTEGER ) * - COUNT ( * ) AS col1
----
4127

onlyif mysql # DIV for integer division: 
query I rowsort label-919
SELECT - ( 54 ) DIV + + 64 * 78
----
0

skipif mysql # not compatible
query I rowsort label-919
SELECT - ( 54 ) / + + 64 * 78
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-920
SELECT ALL - COUNT( * ) * 87 * + 28 AS col0
----
-2436

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

onlyif mysql # aggregate syntax: 
query I rowsort label-921
SELECT - - 0 + - 25 + + + 55 * + 14 * + 16 + - SUM( DISTINCT - 89 ) + 49 AS col2
----
12433

skipif mysql # not compatible
query I rowsort label-921
SELECT - - 0 + - 25 + + + 55 * + 14 * + 16 + - SUM ( DISTINCT - 89 ) + 49 AS col2
----
12433

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-922
SELECT - + ( + 38 ) AS col1, + 13 - + 73 + ( - + COUNT( * ) ) * - - 96 + MAX( ALL + 42 ) * 74 DIV 57
----
-38
-102

skipif mysql # not compatible
query II rowsort label-922
SELECT - + ( + 38 ) AS col1, + 13 - + 73 + ( - + COUNT ( * ) ) * - - 96 + MAX ( ALL + 42 ) * 74 / 57
----
-38
-102

onlyif mysql # aggregate syntax: 
query I rowsort label-923
SELECT + - 61 + COUNT( * ) - + + 21 + + 35 * - 96 + + 56 + + - 33 AS col1
----
-3418

skipif mysql # not compatible
query I rowsort label-923
SELECT + - 61 + COUNT ( * ) - + + 21 + + 35 * - 96 + + 56 + + - 33 AS col1
----
-3418

onlyif mysql # aggregate syntax: 
query I rowsort label-924
SELECT DISTINCT - - 0 * + - ( - CASE + - ( - 36 ) WHEN + 19 THEN - 78 / + MAX( + 10 ) WHEN - 1 THEN 91 * 60 END ) * + 3
----
NULL

skipif mysql # not compatible
query I rowsort label-924
SELECT DISTINCT - - 0 * + - ( - CASE + - ( - 36 ) WHEN + 19 THEN - 78 / + MAX ( + 10 ) WHEN - 1 THEN 91 * 60 END ) * + 3
----
NULL

query I rowsort
SELECT + 71 + - 70 + 97 * - 44
----
-4267

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-926
SELECT + + SUM( + - ( + 3 ) ) AS col2, 3 - - CAST( NULL AS SIGNED ) AS col1
----
-3
NULL

skipif mysql # not compatible
query II rowsort label-926
SELECT + + SUM ( + - ( + 3 ) ) AS col2, 3 - - CAST ( NULL AS INTEGER ) AS col1
----
-3
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-927
SELECT DISTINCT 87 DIV - + 49 + + 40 AS col2, 29
----
39
29

skipif mysql # not compatible
query II rowsort label-927
SELECT DISTINCT 87 / - + 49 + + 40 AS col2, 29
----
39
29

onlyif mysql # aggregate syntax: 
query I rowsort label-928
SELECT + COUNT( * ) * - - ( - - MIN( + 26 ) ) - + - 16 * - ( 56 ) * + 27 + + 36
----
-24130

skipif mysql # not compatible
query I rowsort label-928
SELECT + COUNT ( * ) * - - ( - - MIN ( + 26 ) ) - + - 16 * - ( 56 ) * + 27 + + 36
----
-24130

onlyif mysql # aggregate syntax: 
query II rowsort label-929
SELECT + 67 + COUNT( ALL + - 25 ) AS col0, + COUNT( * ) - - 76
----
68
77

skipif mysql # not compatible
query II rowsort label-929
SELECT + 67 + COUNT ( ALL + - 25 ) AS col0, + COUNT ( * ) - - 76
----
68
77

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-930
SELECT DISTINCT CAST( - - 68 AS SIGNED ) DIV + 28 + - 22 + - 47 + + - 44 + 42 AS col1
----
-69

skipif mysql # not compatible
query I rowsort label-930
SELECT DISTINCT CAST ( - - 68 AS INTEGER ) / + 28 + - 22 + - 47 + + - 44 + 42 AS col1
----
-69

query I rowsort
SELECT + 43 + + 99 * - 67
----
-6590

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

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

query I rowsort
SELECT + 7 * - + 2
----
-14

query II rowsort
SELECT ALL + 67 AS col0, - 36
----
67
-36

query I rowsort
SELECT + 71 * + - 32 AS col2
----
-2272

onlyif mysql # aggregate syntax: 
query I rowsort label-936
SELECT + 77 * CASE - - 48 WHEN - - 42 THEN NULL WHEN COUNT( * ) * + COUNT( * ) * + - 43 THEN NULL ELSE + + COUNT( * ) + + 36 END AS col1
----
2849

skipif mysql # not compatible
query I rowsort label-936
SELECT + 77 * CASE - - 48 WHEN - - 42 THEN NULL WHEN COUNT ( * ) * + COUNT ( * ) * + - 43 THEN NULL ELSE + + COUNT ( * ) + + 36 END AS col1
----
2849

onlyif mysql # aggregate syntax: 
query I rowsort label-937
SELECT 48 + 7 * ( + ( MAX( ALL 53 ) ) ) * 86 + 95 * - + 43 col0
----
27869

skipif mysql # not compatible
query I rowsort label-937
SELECT 48 + 7 * ( + ( MAX ( ALL 53 ) ) ) * 86 + 95 * - + 43 col0
----
27869

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-939
SELECT ALL - 86, + 20 DIV + + 43 col2
----
-86
0

skipif mysql # not compatible
query II rowsort label-939
SELECT ALL - 86, + 20 / + + 43 col2
----
-86
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-940
SELECT DISTINCT - CASE 48 WHEN COUNT( * ) + - + 43 THEN NULL ELSE + COUNT( * ) DIV + - 71 END AS col1
----
0

skipif mysql # not compatible
query I rowsort label-940
SELECT DISTINCT - CASE 48 WHEN COUNT ( * ) + - + 43 THEN NULL ELSE + COUNT ( * ) / + - 71 END AS col1
----
0

query I rowsort
SELECT DISTINCT 88 - 93 + + 47 * + 86
----
4037

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

query I rowsort
SELECT DISTINCT + 84 * - 96 * + 74
----
-596736

query I rowsort
SELECT - 58 * - - 35
----
-2030

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-945
SELECT ALL + + 2 * + CAST( 52 AS SIGNED ) * - COUNT( * ) + 8
----
-96

skipif mysql # not compatible
query I rowsort label-945
SELECT ALL + + 2 * + CAST ( 52 AS INTEGER ) * - COUNT ( * ) + 8
----
-96

query I rowsort
SELECT - + CASE - + 83 WHEN + 48 * 9 THEN + - 11 ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT 55 + 42 AS col2
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-948
SELECT + COUNT( - ( + - 82 ) )
----
1

skipif mysql # not compatible
query I rowsort label-948
SELECT + COUNT ( - ( + - 82 ) )
----
1

query I rowsort
SELECT + 24 + - 72
----
-48

query I rowsort
SELECT ALL + 68 + - 92
----
-24

query I rowsort
SELECT DISTINCT - 57 + + - 9 * + 75 * - 4
----
2643

onlyif mysql # aggregate syntax: 
query I rowsort label-952
SELECT DISTINCT + - MIN( DISTINCT + 46 ) * + 52 - + 63 - - 37
----
-2418

skipif mysql # not compatible
query I rowsort label-952
SELECT DISTINCT + - MIN ( DISTINCT + 46 ) * + 52 - + 63 - - 37
----
-2418

query I rowsort
SELECT 24 - - 3 col0
----
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-954
SELECT ALL + 19 * + COUNT( * ) * - 53 AS col0, 21 * - - 84 + + CAST( NULL AS SIGNED )
----
-1007
NULL

skipif mysql # not compatible
query II rowsort label-954
SELECT ALL + 19 * + COUNT ( * ) * - 53 AS col0, 21 * - - 84 + + CAST ( NULL AS INTEGER )
----
-1007
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-955
SELECT 55 DIV - 90 + + 29 AS col1, 92 DIV - MAX( ALL + 34 )
----
29
-2

skipif mysql # not compatible
query II rowsort label-955
SELECT 55 / - 90 + + 29 AS col1, 92 / - MAX ( ALL + 34 )
----
29
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-956
SELECT ALL + COUNT( * ) + CAST( NULL AS SIGNED ) + - 96 / - 55 + - + 0
----
NULL

skipif mysql # not compatible
query I rowsort label-956
SELECT ALL + COUNT ( * ) + CAST ( NULL AS INTEGER ) + - 96 / - 55 + - + 0
----
NULL

query I rowsort
SELECT ALL - - 22 + 54 AS col0
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-958
SELECT 3 + + NULLIF ( 6, - + COUNT( * ) - + COALESCE ( - + ( 20 ), - - 83 * NULLIF ( + COUNT( * ), + - 29 ) ) + + 78 * + + 98 + - 10 ) AS col2
----
9

skipif mysql # not compatible
query I rowsort label-958
SELECT 3 + + NULLIF ( 6, - + COUNT ( * ) - + COALESCE ( - + ( 20 ), - - 83 * NULLIF ( + COUNT ( * ), + - 29 ) ) + + 78 * + + 98 + - 10 ) AS col2
----
9

query I rowsort
SELECT 47 * + + 64 AS col1
----
3008

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-961
SELECT 81 + + - COUNT( * ) AS col0
----
80

skipif mysql # not compatible
query I rowsort label-961
SELECT 81 + + - COUNT ( * ) AS col0
----
80

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

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

query I rowsort
SELECT ALL + 11 * + + 44 AS col1
----
484

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

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

query I rowsort
SELECT DISTINCT + 29 * + 52
----
1508

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

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

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

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

query I rowsort
SELECT DISTINCT - 45 col1
----
-45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-969
SELECT 16 + - 31 + COUNT( * ) * + 68 DIV 72 * - - 99
----
-15

skipif mysql # not compatible
query I rowsort label-969
SELECT 16 + - 31 + COUNT ( * ) * + 68 / 72 * - - 99
----
-15

query II rowsort
SELECT DISTINCT - ( + - 23 ) AS col0, - 26 AS col0
----
23
-26

query II rowsort
SELECT 93 + - - 4 AS col2, 12
----
97
12

query I rowsort
SELECT COALESCE ( + 23, + 22 + 90 ) - - 36 AS col1
----
59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-973
SELECT DISTINCT ( - + COUNT( * ) ) DIV 89 * - 20 * - 8 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-973
SELECT DISTINCT ( - + COUNT ( * ) ) / 89 * - 20 * - 8 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-974
SELECT 76 DIV - - 10 + - 34 AS col2
----
-27

skipif mysql # not compatible
query I rowsort label-974
SELECT 76 / - - 10 + - 34 AS col2
----
-27

onlyif mysql # DIV for integer division: 
query I rowsort label-975
SELECT ( - 83 ) DIV - 70 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-975
SELECT ( - 83 ) / - 70 AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-976
SELECT NULLIF ( + 70, COUNT( 12 ) ) + - 76 AS col0
----
-6

skipif mysql # not compatible
query I rowsort label-976
SELECT NULLIF ( + 70, COUNT ( 12 ) ) + - 76 AS col0
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-977
SELECT DISTINCT + MIN( - 46 ) * + 41
----
-1886

skipif mysql # not compatible
query I rowsort label-977
SELECT DISTINCT + MIN ( - 46 ) * + 41
----
-1886

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

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

query I rowsort
SELECT ALL - ( + 53 ) * 33
----
-1749

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-980
SELECT DISTINCT - CASE + NULLIF ( + 23, + - 46 * + - CAST( NULL AS SIGNED ) ) WHEN 66 - - 28 - + 78 / + 76 THEN + 13 ELSE - 70 END
----
70

skipif mysql # not compatible
query I rowsort label-980
SELECT DISTINCT - CASE + NULLIF ( + 23, + - 46 * + - CAST ( NULL AS INTEGER ) ) WHEN 66 - - 28 - + 78 / + 76 THEN + 13 ELSE - 70 END
----
70

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-983
SELECT + 42 + - MAX( + - 77 ) + + 43 + + MAX( ALL 27 ) * - 66 * 36
----
-63990

skipif mysql # not compatible
query I rowsort label-983
SELECT + 42 + - MAX ( + - 77 ) + + 43 + + MAX ( ALL 27 ) * - 66 * 36
----
-63990

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-984
SELECT + 81 * + + COUNT( * ) + + + 80 + + 45 DIV 94 + 74
----
235

skipif mysql # not compatible
query I rowsort label-984
SELECT + 81 * + + COUNT ( * ) + + + 80 + + 45 / 94 + 74
----
235

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

skipif mysql # not compatible
query I rowsort label-985
SELECT ALL COUNT ( * ) / - - 43
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-986
SELECT ALL + 5 + - - COUNT( + ( - 58 ) )
----
6

skipif mysql # not compatible
query I rowsort label-986
SELECT ALL + 5 + - - COUNT ( + ( - 58 ) )
----
6

query I rowsort
SELECT + ( - - 77 ) + 22
----
99

onlyif mysql # aggregate syntax: 
query II rowsort label-988
SELECT DISTINCT ( + 22 ) AS col2, + SUM( 54 ) col0
----
22
54

skipif mysql # not compatible
query II rowsort label-988
SELECT DISTINCT ( + 22 ) AS col2, + SUM ( 54 ) col0
----
22
54

query I rowsort
SELECT - COALESCE ( - 86, + 1 ) col1
----
86

query I rowsort
SELECT ALL 48 + - 77 AS col0
----
-29

query I rowsort
SELECT ALL 61 + - ( - + 75 )
----
136

query I rowsort
SELECT ALL + 22 * + 71
----
1562

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-994
SELECT DISTINCT + COUNT( DISTINCT + 37 ) AS col0, 88 + + NULLIF ( + 64, - MIN( 18 ) * + 68 * + + 74 ) * - 87 AS col2
----
1
-5480

skipif mysql # not compatible
query II rowsort label-994
SELECT DISTINCT + COUNT ( DISTINCT + 37 ) AS col0, 88 + + NULLIF ( + 64, - MIN ( 18 ) * + 68 * + + 74 ) * - 87 AS col2
----
1
-5480

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-995
SELECT ALL - 78 + CAST( + 43 AS SIGNED ) DIV + + 79 AS col1
----
-78

skipif mysql # not compatible
query I rowsort label-995
SELECT ALL - 78 + CAST ( + 43 AS INTEGER ) / + + 79 AS col1
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-996
SELECT DISTINCT COUNT( * ) + + ( 1 )
----
2

skipif mysql # not compatible
query I rowsort label-996
SELECT DISTINCT COUNT ( * ) + + ( 1 )
----
2

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

query I rowsort
SELECT + 24 * 17 AS col1
----
408

query I rowsort
SELECT DISTINCT - COALESCE ( + 98, 68, - + COALESCE ( 95, - + 64 ) )
----
-98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1000
SELECT ALL + 16 - + - 32 + - CAST( NULL AS SIGNED ) + - - 54 * - + MIN( ALL - 66 ) + - - 36 * COALESCE ( - CAST( NULL AS DECIMAL ), COUNT( * ) ) / + 29 * - 53
----
NULL

skipif mysql # not compatible
query I rowsort label-1000
SELECT ALL + 16 - + - 32 + - CAST ( NULL AS INTEGER ) + - - 54 * - + MIN ( ALL - 66 ) + - - 36 * COALESCE ( - CAST ( NULL AS REAL ), COUNT ( * ) ) / + 29 * - 53
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1001
SELECT ALL - ( - - COALESCE ( + - 74, - + 72 * ( + 95 ) ) ) - - 23 + - 10 + - - 17 * CASE - CAST( + + 72 AS SIGNED ) WHEN 13 * - + 39 + + 0 THEN + 91 ELSE - NULLIF ( + 37, 68 * 70 ) DIV ( - - 67 ) END
----
87

skipif mysql # not compatible
query I rowsort label-1001
SELECT ALL - ( - - COALESCE ( + - 74, - + 72 * ( + 95 ) ) ) - - 23 + - 10 + - - 17 * CASE - CAST ( + + 72 AS INTEGER ) WHEN 13 * - + 39 + + 0 THEN + 91 ELSE - NULLIF ( + 37, 68 * 70 ) / ( - - 67 ) END
----
87

query I rowsort
SELECT 7 * - + 75 AS col0
----
-525

onlyif mysql # aggregate syntax: 
query II rowsort label-1003
SELECT ALL 14, 27 * 77 * 10 * + + ( COUNT( * ) ) AS col1
----
14
20790

skipif mysql # not compatible
query II rowsort label-1003
SELECT ALL 14, 27 * 77 * 10 * + + ( COUNT ( * ) ) AS col1
----
14
20790

onlyif mysql # aggregate syntax: 
query I rowsort label-1004
SELECT ALL - 43 * + 88 * - 98 * MAX( DISTINCT + 81 )
----
30037392

skipif mysql # not compatible
query I rowsort label-1004
SELECT ALL - 43 * + 88 * - 98 * MAX ( DISTINCT + 81 )
----
30037392

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1005
SELECT 13 + - + 83 + - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-1005
SELECT 13 + - + 83 + - CAST ( NULL AS REAL )
----
NULL

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

skipif mysql # not compatible
query I rowsort label-1006
SELECT DISTINCT 14 / + - COUNT ( * ) AS col1
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-1007
SELECT - MIN( + 72 ) * + + 17 + 58 AS col2
----
-1166

skipif mysql # not compatible
query I rowsort label-1007
SELECT - MIN ( + 72 ) * + + 17 + 58 AS col2
----
-1166

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1009
SELECT ALL - SUM( ALL + 28 ) * - + 52 + - 8 DIV 13 * - 85 - + ( - 67 )
----
1523

skipif mysql # not compatible
query I rowsort label-1009
SELECT ALL - SUM ( ALL + 28 ) * - + 52 + - 8 / 13 * - 85 - + ( - 67 )
----
1523

onlyif mysql # DIV for integer division: 
query I rowsort label-1010
SELECT 97 DIV - - 17
----
5

skipif mysql # not compatible
query I rowsort label-1010
SELECT 97 / - - 17
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-1011
SELECT CASE 20 WHEN - MIN( DISTINCT + + 11 ) THEN - 53 WHEN COALESCE ( 29, - - 5 ) THEN 88 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1011
SELECT CASE 20 WHEN - MIN ( DISTINCT + + 11 ) THEN - 53 WHEN COALESCE ( 29, - - 5 ) THEN 88 ELSE NULL END
----
NULL

query I rowsort
SELECT - 77 * 8 - 35 AS col0
----
-651

onlyif mysql # aggregate syntax: 
query I rowsort label-1013
SELECT - COUNT( * ) * 78 AS col2
----
-78

skipif mysql # not compatible
query I rowsort label-1013
SELECT - COUNT ( * ) * 78 AS col2
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-1014
SELECT DISTINCT + ( + COUNT( * ) ) * + 85 * + 51
----
4335

skipif mysql # not compatible
query I rowsort label-1014
SELECT DISTINCT + ( + COUNT ( * ) ) * + 85 * + 51
----
4335

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

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

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

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

query I rowsort
SELECT ALL + 81 * 99 AS col1
----
8019

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

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

query I rowsort
SELECT - 70 * + 41
----
-2870

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

skipif mysql # not compatible
query I rowsort label-1020
SELECT ALL + COUNT ( * ) * + 36 + - COUNT ( * ) AS col1
----
35

query II rowsort
SELECT + + 43, + 14 AS col2
----
43
14

query I rowsort
SELECT ALL + - 5 col2
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-1023
SELECT - MAX( - 58 ) * MIN( ALL 91 ) AS col2
----
5278

skipif mysql # not compatible
query I rowsort label-1023
SELECT - MAX ( - 58 ) * MIN ( ALL 91 ) AS col2
----
5278

onlyif mysql # aggregate syntax: 
query I rowsort label-1024
SELECT + 49 * 86 * COUNT( * )
----
4214

skipif mysql # not compatible
query I rowsort label-1024
SELECT + 49 * 86 * COUNT ( * )
----
4214

onlyif mysql # aggregate syntax: 
query I rowsort label-1025
SELECT + MAX( ALL 97 ) AS col2
----
97

skipif mysql # not compatible
query I rowsort label-1025
SELECT + MAX ( ALL 97 ) AS col2
----
97

onlyif mysql # aggregate syntax: 
query II rowsort label-1026
SELECT + 81, - COUNT( * ) * + + 2 AS col1
----
81
-2

skipif mysql # not compatible
query II rowsort label-1026
SELECT + 81, - COUNT ( * ) * + + 2 AS col1
----
81
-2

query I rowsort
SELECT ALL 32 + + 13 AS col0
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-1028
SELECT DISTINCT 36 * + COUNT( - 7 ) AS col1
----
36

skipif mysql # not compatible
query I rowsort label-1028
SELECT DISTINCT 36 * + COUNT ( - 7 ) AS col1
----
36

query I rowsort
SELECT ALL - 74 + + - 8
----
-82

query I rowsort
SELECT + + 63 * ( + 66 ) AS col2
----
4158

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

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

query I rowsort
SELECT ALL + 82 + + 17
----
99

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

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

query I rowsort
SELECT - COALESCE ( - 85, - - 83 )
----
85

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1037
SELECT + CAST( NULL AS SIGNED ) + + 30 - 91 * - 35 + COUNT( * ) * - + COUNT( * ) * + + 70 * + + 45 * - AVG ( ALL - 47 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1037
SELECT + CAST ( NULL AS INTEGER ) + + 30 - 91 * - 35 + COUNT ( * ) * - + COUNT ( * ) * + + 70 * + + 45 * - AVG ( ALL - 47 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1038
SELECT + - NULLIF ( 88, + NULLIF ( + 75, - - 88 + + - COUNT( * ) * 95 - - 75 ) + - + 1 + + + 91 ) + + + 99 + + 51 * + 13 AS col1, - 19 * - 63
----
674
1197

skipif mysql # not compatible
query II rowsort label-1038
SELECT + - NULLIF ( 88, + NULLIF ( + 75, - - 88 + + - COUNT ( * ) * 95 - - 75 ) + - + 1 + + + 91 ) + + + 99 + + 51 * + 13 AS col1, - 19 * - 63
----
674
1197

query I rowsort
SELECT ALL 61 - + 92 * - 14 AS col0
----
1349

query I rowsort
SELECT + + 61 * 19 * - + 6
----
-6954

onlyif mysql # aggregate syntax: 
query I rowsort label-1041
SELECT + 91 + - 33 + + 48 * 44 * 36 + 10 + COUNT( * ) AS col2
----
76101

skipif mysql # not compatible
query I rowsort label-1041
SELECT + 91 + - 33 + + 48 * 44 * 36 + 10 + COUNT ( * ) AS col2
----
76101

onlyif mysql # aggregate syntax: 
query I rowsort label-1042
SELECT ALL SUM( - + 91 ) AS col1
----
-91

skipif mysql # not compatible
query I rowsort label-1042
SELECT ALL SUM ( - + 91 ) AS col1
----
-91

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

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

query I rowsort
SELECT ALL 73 * + - 98
----
-7154

query I rowsort
SELECT DISTINCT CASE 63 WHEN + ( + - 84 ) THEN 92 - - - 73 END col1
----
NULL

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

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

query II rowsort
SELECT ALL 69 AS col0, + 48
----
69
48

query I rowsort
SELECT + 31 + - 14 col0
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-1049
SELECT - 37 * - 14 * + COUNT( * )
----
518

skipif mysql # not compatible
query I rowsort label-1049
SELECT - 37 * - 14 * + COUNT ( * )
----
518

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1051
SELECT CAST( - - NULLIF ( + ( + COUNT( * ) ), - CAST( NULL AS SIGNED ) * - 90 * + - 40 ) AS SIGNED ) AS col0, 8 / - - 73 * - NULLIF ( - CASE 13 WHEN CASE + COUNT( * ) WHEN - COUNT( * ) THEN 75 WHEN - - 11 + + - 96 - - + 9 THEN NULL WHEN + ( COALESCE ( - 50, + 29 ) ) THEN - 46 END * - 22 + 22 THEN + 44 * - 16 * - ( + - 74 ) WHEN + - 27 * + - 7 THEN NULL END, - NULLIF ( + 79, + MIN( - - 29 ) + - 95 + 39 * + ( - 13 ) * - ( + COUNT( * ) ) - 59 ) ) + - ( 68 )
----
1
NULL

skipif mysql # not compatible
query II rowsort label-1051
SELECT CAST ( - - NULLIF ( + ( + COUNT ( * ) ), - CAST ( NULL AS INTEGER ) * - 90 * + - 40 ) AS INTEGER ) AS col0, 8 / - - 73 * - NULLIF ( - CASE 13 WHEN CASE + COUNT ( * ) WHEN - COUNT ( * ) THEN 75 WHEN - - 11 + + - 96 - - + 9 THEN NULL WHEN + ( COALESCE ( - 50, + 29 ) ) THEN - 46 END * - 22 + 22 THEN + 44 * - 16 * - ( + - 74 ) WHEN + - 27 * + - 7 THEN NULL END, - NULLIF ( + 79, + MIN ( - - 29 ) + - 95 + 39 * + ( - 13 ) * - ( + COUNT ( * ) ) - 59 ) ) + - ( 68 )
----
1
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1052
SELECT ALL + CASE + + COUNT( * ) WHEN 80 THEN NULL WHEN - 23 + - 56 THEN NULL WHEN + NULLIF ( + 90, - 6 + - - 5 ) + - - 27 THEN 5 END, COUNT( * ) AS col1
----
NULL
1

skipif mysql # not compatible
query II rowsort label-1052
SELECT ALL + CASE + + COUNT ( * ) WHEN 80 THEN NULL WHEN - 23 + - 56 THEN NULL WHEN + NULLIF ( + 90, - 6 + - - 5 ) + - - 27 THEN 5 END, COUNT ( * ) AS col1
----
NULL
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1053
SELECT + 1 / + - 7 * - 90 * - CAST( NULL AS SIGNED ) col1, - 15
----
NULL
-15

skipif mysql # not compatible
query II rowsort label-1053
SELECT + 1 / + - 7 * - 90 * - CAST ( NULL AS INTEGER ) col1, - 15
----
NULL
-15

onlyif mysql # DIV for integer division: 
query I rowsort label-1054
SELECT DISTINCT - 4 DIV 47
----
0

skipif mysql # not compatible
query I rowsort label-1054
SELECT DISTINCT - 4 / 47
----
0

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1056
SELECT - 71 DIV - + 20
----
3

skipif mysql # not compatible
query I rowsort label-1056
SELECT - 71 / - + 20
----
3

query I rowsort
SELECT 77 * + 80 + 15 + 75
----
6250

query I rowsort
SELECT - 47 * - + 5 AS col0
----
235

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1059
SELECT ALL 22 * COUNT( * ) + + 2 * CASE + + 88 WHEN - 79 * - COUNT( * ) + + 14 THEN NULL WHEN + 2 * + - 38 THEN + CASE + ( + - MIN( DISTINCT 89 ) ) WHEN - 76 + + + CAST( - + 89 AS SIGNED ) + - 29 * - + 18 THEN 59 ELSE NULL END * + 33 / + - 36 ELSE + 82 + + - 25 END + - SUM( + - CAST( NULL AS SIGNED ) ) + - 79
----
NULL

skipif mysql # not compatible
query I rowsort label-1059
SELECT ALL 22 * COUNT ( * ) + + 2 * CASE + + 88 WHEN - 79 * - COUNT ( * ) + + 14 THEN NULL WHEN + 2 * + - 38 THEN + CASE + ( + - MIN ( DISTINCT 89 ) ) WHEN - 76 + + + CAST ( - + 89 AS INTEGER ) + - 29 * - + 18 THEN 59 ELSE NULL END * + 33 / + - 36 ELSE + 82 + + - 25 END + - SUM ( + - CAST ( NULL AS INTEGER ) ) + - 79
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1060
SELECT 14 * + 65 + + + COUNT( - - 58 )
----
911

skipif mysql # not compatible
query I rowsort label-1060
SELECT 14 * + 65 + + + COUNT ( - - 58 )
----
911

onlyif mysql # aggregate syntax: 
query II rowsort label-1061
SELECT + 64 AS col0, - COUNT( ALL - 46 )
----
64
-1

skipif mysql # not compatible
query II rowsort label-1061
SELECT + 64 AS col0, - COUNT ( ALL - 46 )
----
64
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1062
SELECT - + 52 * + + SUM( ALL - 68 )
----
3536

skipif mysql # not compatible
query I rowsort label-1062
SELECT - + 52 * + + SUM ( ALL - 68 )
----
3536

query I rowsort
SELECT ALL 70 * 6 + - + 84 AS col1
----
336

query I rowsort
SELECT - 77 + - 78
----
-155

query I rowsort
SELECT ALL - ( 3 ) * + - 24 + + 64 + + 18 AS col1
----
154

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1066
SELECT DISTINCT + 25, - CAST( + + NULLIF ( + + ( + ( COUNT( DISTINCT + 56 ) ) ), - 18 ) AS SIGNED ) / + - 95 * - 65 + 2 + + ( - + CAST( NULL AS SIGNED ) ) col2
----
25
NULL

skipif mysql # not compatible
query II rowsort label-1066
SELECT DISTINCT + 25, - CAST ( + + NULLIF ( + + ( + ( COUNT ( DISTINCT + 56 ) ) ), - 18 ) AS INTEGER ) / + - 95 * - 65 + 2 + + ( - + CAST ( NULL AS INTEGER ) ) col2
----
25
NULL

query I rowsort
SELECT - 26 + + 81
----
55

query II rowsort
SELECT ALL 83 AS col0, - 43 AS col2
----
83
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-1069
SELECT - 79 * - + MAX( ( - - 54 ) )
----
4266

skipif mysql # not compatible
query I rowsort label-1069
SELECT - 79 * - + MAX ( ( - - 54 ) )
----
4266

query I rowsort
SELECT ALL - 93 * + 47 - 72 + + 57 col1
----
-4386

query I rowsort
SELECT - - 90 * 58
----
5220

query I rowsort
SELECT DISTINCT 55 * + 95
----
5225

query I rowsort
SELECT DISTINCT - - ( - 67 ) * + + 40 AS col1
----
-2680

query I rowsort
SELECT - 55 * - 64 * + 41
----
144320

query I rowsort
SELECT + 61 * 22
----
1342

query I rowsort
SELECT 3 + - 94 AS col2
----
-91

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1078
SELECT DISTINCT ( + 76 ) DIV COALESCE ( + 13, - 87 ) + - - 44 + 2 AS col0
----
51

skipif mysql # not compatible
query I rowsort label-1078
SELECT DISTINCT ( + 76 ) / COALESCE ( + 13, - 87 ) + - - 44 + 2 AS col0
----
51

query I rowsort
SELECT ALL 13 + + 24 col0
----
37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1080
SELECT NULLIF ( - 0, + - 16 ) + CAST( - + ( - - CAST( NULL AS SIGNED ) ) AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1080
SELECT NULLIF ( - 0, + - 16 ) + CAST ( - + ( - - CAST ( NULL AS INTEGER ) ) AS INTEGER ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1081
SELECT 47 + + 28 DIV + 84 AS col2
----
47

skipif mysql # not compatible
query I rowsort label-1081
SELECT 47 + + 28 / + 84 AS col2
----
47

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1083
SELECT ALL 53 + - COUNT( * ) + + - 68
----
-16

skipif mysql # not compatible
query I rowsort label-1083
SELECT ALL 53 + - COUNT ( * ) + + - 68
----
-16

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

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

query I rowsort
SELECT ALL - 7 + + COALESCE ( - + 95, + 28 )
----
-102

query I rowsort
SELECT 6 * + 42
----
252

query I rowsort
SELECT DISTINCT - - COALESCE ( + 27, 23 * 87 ) AS col2
----
27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1088
SELECT ALL - - 56 + + + NULLIF ( + CAST( + + 94 AS SIGNED ), - ( + + 26 ) / - 94 * + 65 + + + 66 ) AS col1
----
150

skipif mysql # not compatible
query I rowsort label-1088
SELECT ALL - - 56 + + + NULLIF ( + CAST ( + + 94 AS INTEGER ), - ( + + 26 ) / - 94 * + 65 + + + 66 ) AS col1
----
150

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1089
SELECT ALL CAST( COUNT( ALL - - 13 ) AS SIGNED ) + - 63
----
-62

skipif mysql # not compatible
query I rowsort label-1089
SELECT ALL CAST ( COUNT ( ALL - - 13 ) AS INTEGER ) + - 63
----
-62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1090
SELECT ALL 67 - CAST( COUNT( ALL 11 ) AS SIGNED ) AS col2
----
66

skipif mysql # not compatible
query I rowsort label-1090
SELECT ALL 67 - CAST ( COUNT ( ALL 11 ) AS INTEGER ) AS col2
----
66

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1092
SELECT DISTINCT + NULLIF ( + 52, - + AVG ( 90 ) + ( - COUNT( DISTINCT CAST( NULL AS SIGNED ) ) ) ) / + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1092
SELECT DISTINCT + NULLIF ( + 52, - + AVG ( 90 ) + ( - COUNT ( DISTINCT CAST ( NULL AS INTEGER ) ) ) ) / + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 47 * - + 13 + - - 93
----
-518

onlyif mysql # aggregate syntax: 
query I rowsort label-1094
SELECT - 24 * + - COUNT( * ) * ( + 92 )
----
2208

skipif mysql # not compatible
query I rowsort label-1094
SELECT - 24 * + - COUNT ( * ) * ( + 92 )
----
2208

onlyif mysql # aggregate syntax: 
query I rowsort label-1095
SELECT DISTINCT - - COUNT( * ) - + + 60 - 7 + 70 * + + COUNT( * )
----
4

skipif mysql # not compatible
query I rowsort label-1095
SELECT DISTINCT - - COUNT ( * ) - + + 60 - 7 + 70 * + + COUNT ( * )
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1096
SELECT DISTINCT + 58 * + COUNT( * ) + AVG ( ALL - ( + CAST( NULL AS SIGNED ) ) ) AS col0, CAST( NULL AS SIGNED ) * COUNT( * ) AS col2
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-1096
SELECT DISTINCT + 58 * + COUNT ( * ) + AVG ( ALL - ( + CAST ( NULL AS INTEGER ) ) ) AS col0, CAST ( NULL AS INTEGER ) * COUNT ( * ) AS col2
----
NULL
NULL

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

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

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

query I rowsort
SELECT 47 - + + 72
----
-25

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

skipif mysql # not compatible
query I rowsort label-1100
SELECT DISTINCT SUM ( ALL + CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT + 53 * - + 73 * - 17 + - 66
----
65707

query I rowsort
SELECT 32 * + - 67 * + 16 AS col1
----
-34304

query I rowsort
SELECT 6 + - + 12 - + + 98 col1
----
-104

onlyif mysql # aggregate syntax: 
query I rowsort label-1104
SELECT 16 + + SUM( DISTINCT - + 55 )
----
-39

skipif mysql # not compatible
query I rowsort label-1104
SELECT 16 + + SUM ( DISTINCT - + 55 )
----
-39

query II rowsort
SELECT 53 AS col1, - COALESCE ( 35, 37 ) * + ( 21 ) * + - 73
----
53
53655

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1107
SELECT 22 DIV + 55 * + - 35 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1107
SELECT 22 / + 55 * + - 35 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1108
SELECT DISTINCT + COALESCE ( + + 41, - - ( - 79 ) ) * + COUNT( * ) AS col1
----
41

skipif mysql # not compatible
query I rowsort label-1108
SELECT DISTINCT + COALESCE ( + + 41, - - ( - 79 ) ) * + COUNT ( * ) AS col1
----
41

query I rowsort
SELECT ALL 13 + + 27 AS col0
----
40

onlyif mysql # aggregate syntax: 
query II rowsort label-1110
SELECT COUNT( * ) + 79 * + COUNT( * ) + 5 AS col1, + 90 AS col2
----
85
90

skipif mysql # not compatible
query II rowsort label-1110
SELECT COUNT ( * ) + 79 * + COUNT ( * ) + 5 AS col1, + 90 AS col2
----
85
90

query I rowsort
SELECT ALL + ( - + ( + 92 ) ) * + 3 AS col2
----
-276

query I rowsort
SELECT DISTINCT + 4 * - 36 AS col2
----
-144

query I rowsort
SELECT 31 * 15
----
465

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1116
SELECT DISTINCT 71 + - CAST( + - 34 AS SIGNED ) + - 68 - 90 * + COUNT( * ) AS col1, CASE + - 37 WHEN - 69 THEN COUNT( * ) END
----
-53
NULL

skipif mysql # not compatible
query II rowsort label-1116
SELECT DISTINCT 71 + - CAST ( + - 34 AS INTEGER ) + - 68 - 90 * + COUNT ( * ) AS col1, CASE + - 37 WHEN - 69 THEN COUNT ( * ) END
----
-53
NULL

query II rowsort
SELECT DISTINCT 47 + + 15 + - 27 AS col2, 19
----
35
19

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1119
SELECT DISTINCT + 77 * COUNT( * ) + + 9 AS col2
----
86

skipif mysql # not compatible
query I rowsort label-1119
SELECT DISTINCT + 77 * COUNT ( * ) + + 9 AS col2
----
86

onlyif mysql # aggregate syntax: 
query II rowsort label-1120
SELECT + 52 col0, SUM( ALL 24 ) AS col0
----
52
24

skipif mysql # not compatible
query II rowsort label-1120
SELECT + 52 col0, SUM ( ALL 24 ) AS col0
----
52
24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1121
SELECT + COUNT( * ) * - - ( + - MAX( - 49 ) ) - + MIN( + 8 ) DIV - - 93
----
49

skipif mysql # not compatible
query I rowsort label-1121
SELECT + COUNT ( * ) * - - ( + - MAX ( - 49 ) ) - + MIN ( + 8 ) / - - 93
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-1122
SELECT ALL - - COALESCE ( - 75, + COUNT( + 62 ) )
----
-75

skipif mysql # not compatible
query I rowsort label-1122
SELECT ALL - - COALESCE ( - 75, + COUNT ( + 62 ) )
----
-75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1123
SELECT ALL + 28 * COUNT( * ) * - 20 - + 53 + + ( 53 ) DIV - 71 + 82 - + + 6 + + + COALESCE ( - 89, NULLIF ( + + 31, + + 6 ) * + 19, + COUNT( * ) ) * - ( 16 ) - + 65 * - 64 AS col1
----
5047

skipif mysql # not compatible
query I rowsort label-1123
SELECT ALL + 28 * COUNT ( * ) * - 20 - + 53 + + ( 53 ) / - 71 + 82 - + + 6 + + + COALESCE ( - 89, NULLIF ( + + 31, + + 6 ) * + 19, + COUNT ( * ) ) * - ( 16 ) - + 65 * - 64 AS col1
----
5047

onlyif mysql # aggregate syntax: 
query I rowsort label-1124
SELECT + COUNT( * ) * 98 + - + 74 + 40 + - - 65 - - + 31 + - CASE - - 15 WHEN 45 THEN + COUNT( * ) * 44 ELSE NULL END * + - 95 * + + 48 + COUNT( * ) + + AVG ( ALL - 62 ) - - 40 * + 94
----
NULL

skipif mysql # not compatible
query I rowsort label-1124
SELECT + COUNT ( * ) * 98 + - + 74 + 40 + - - 65 - - + 31 + - CASE - - 15 WHEN 45 THEN + COUNT ( * ) * 44 ELSE NULL END * + - 95 * + + 48 + COUNT ( * ) + + AVG ( ALL - 62 ) - - 40 * + 94
----
NULL

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

skipif mysql # not compatible
query I rowsort label-1125
SELECT + MIN ( 64 )
----
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1126
SELECT + 22 * + + NULLIF ( + CAST( 66 AS SIGNED ), - + SUM( DISTINCT + 21 ) )
----
1452

skipif mysql # not compatible
query I rowsort label-1126
SELECT + 22 * + + NULLIF ( + CAST ( 66 AS INTEGER ), - + SUM ( DISTINCT + 21 ) )
----
1452

onlyif mysql # aggregate syntax: 
query I rowsort label-1127
SELECT - 32 * + 71 - + + NULLIF ( + + 82, - COUNT( * ) ) * COUNT( * )
----
-2354

skipif mysql # not compatible
query I rowsort label-1127
SELECT - 32 * + 71 - + + NULLIF ( + + 82, - COUNT ( * ) ) * COUNT ( * )
----
-2354

onlyif mysql # aggregate syntax: 
query I rowsort label-1128
SELECT ALL ( 10 ) - + 69 + - 24 + - 44 * + + MIN( ALL + 65 )
----
-2943

skipif mysql # not compatible
query I rowsort label-1128
SELECT ALL ( 10 ) - + 69 + - 24 + - 44 * + + MIN ( ALL + 65 )
----
-2943

onlyif mysql # aggregate syntax: 
query I rowsort label-1129
SELECT - 75 + + 55 * - COUNT( * ) + - COUNT( * ) AS col0
----
-131

skipif mysql # not compatible
query I rowsort label-1129
SELECT - 75 + + 55 * - COUNT ( * ) + - COUNT ( * ) AS col0
----
-131

onlyif mysql # aggregate syntax: 
query I rowsort label-1130
SELECT DISTINCT - COALESCE ( - 88, + - 98 + SUM( DISTINCT + - 87 ) ) * - - COUNT( * ) * 83
----
7304

skipif mysql # not compatible
query I rowsort label-1130
SELECT DISTINCT - COALESCE ( - 88, + - 98 + SUM ( DISTINCT + - 87 ) ) * - - COUNT ( * ) * 83
----
7304

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1131
SELECT - CASE WHEN NOT 81 IN ( + 35, 66 ) OR NOT + + 7 * - AVG ( DISTINCT 90 ) * - 70 + + 57 + + COUNT( * ) / - 59 + - - 28 + + 0 BETWEEN - + 64 AND - + 6 * - 75 + + 75 - + 79 * - + CAST( + ( - 91 ) AS SIGNED ) THEN - + 45 * COUNT( * ) + - 88 + + + 58 WHEN CAST( + - 52 AS SIGNED ) / MIN( ALL 18 ) IS NOT NULL THEN + 34 * 81 END * - - 48, - 46 AS col1
----
3600
-46

skipif mysql # not compatible
query II rowsort label-1131
SELECT - CASE WHEN NOT 81 IN ( + 35, 66 ) OR NOT + + 7 * - AVG ( DISTINCT 90 ) * - 70 + + 57 + + COUNT ( * ) / - 59 + - - 28 + + 0 BETWEEN - + 64 AND - + 6 * - 75 + + 75 - + 79 * - + CAST ( + ( - 91 ) AS INTEGER ) THEN - + 45 * COUNT ( * ) + - 88 + + + 58 WHEN CAST ( + - 52 AS INTEGER ) / MIN ( ALL 18 ) IS NOT NULL THEN + 34 * 81 END * - - 48, - 46 AS col1
----
3600
-46

onlyif mysql # DIV for integer division: 
query I rowsort label-1132
SELECT ALL + + 48 DIV - - 82 * 32 DIV 50
----
0

skipif mysql # not compatible
query I rowsort label-1132
SELECT ALL + + 48 / - - 82 * 32 / 50
----
0

query II rowsort
SELECT ALL - + 67 AS col2, + 3 * + - 50
----
-67
-150

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

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

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

skipif mysql # not compatible
query I rowsort label-1135
SELECT DISTINCT - - SUM ( 52 )
----
52

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1136
SELECT + CAST( NULL AS DECIMAL ), 85 + + 4 AS col2
----
NULL
89

skipif mysql # not compatible
query II rowsort label-1136
SELECT + CAST ( NULL AS REAL ), 85 + + 4 AS col2
----
NULL
89

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1137
SELECT - - 49 + COALESCE ( - 17, ( - SUM( - - 57 ) ) ) DIV + ( - - 78 ) * + 33
----
49

skipif mysql # not compatible
query I rowsort label-1137
SELECT - - 49 + COALESCE ( - 17, ( - SUM ( - - 57 ) ) ) / + ( - - 78 ) * + 33
----
49

query I rowsort
SELECT ALL + 44 + + + 35 AS col2
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-1139
SELECT + 8 * + - COUNT( * ) * 75
----
-600

skipif mysql # not compatible
query I rowsort label-1139
SELECT + 8 * + - COUNT ( * ) * 75
----
-600

query I rowsort
SELECT - 14 + 85 AS col2
----
71

query I rowsort
SELECT ALL - 90 * + COALESCE ( NULLIF ( + 21, + 28 ), + 30 * 3 )
----
-1890

onlyif mysql # aggregate syntax: 
query II rowsort label-1142
SELECT - NULLIF ( COUNT( * ), 99 * + - COALESCE ( 40, + 2, + + 2 - - + COUNT( * ) * + 44 ) ), - 77 AS col0
----
-1
-77

skipif mysql # not compatible
query II rowsort label-1142
SELECT - NULLIF ( COUNT ( * ), 99 * + - COALESCE ( 40, + 2, + + 2 - - + COUNT ( * ) * + 44 ) ), - 77 AS col0
----
-1
-77

query I rowsort
SELECT DISTINCT 49 + + 79 AS col2
----
128

query I rowsort
SELECT ALL + 17 + + + 11
----
28

query I rowsort
SELECT ALL - 63 + + + 98 AS col1
----
35

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1146
SELECT DISTINCT CASE - 98 WHEN - + 0 THEN NULL WHEN + + 75 / + 70 * - 37 THEN 16 ELSE - CASE COUNT( - - 0 ) WHEN 55 / + 2 - - ( + 20 ) THEN + - 77 END + - CASE - NULLIF ( - MIN( 62 ), + - 91 ) WHEN + + 95 * + 84 THEN - 95 ELSE CAST( NULL AS DECIMAL ) END * COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1146
SELECT DISTINCT CASE - 98 WHEN - + 0 THEN NULL WHEN + + 75 / + 70 * - 37 THEN 16 ELSE - CASE COUNT ( - - 0 ) WHEN 55 / + 2 - - ( + 20 ) THEN + - 77 END + - CASE - NULLIF ( - MIN ( 62 ), + - 91 ) WHEN + + 95 * + 84 THEN - 95 ELSE CAST ( NULL AS REAL ) END * COUNT ( * ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1147
SELECT DISTINCT ( 25 ) * + 20 * - NULLIF ( 58, - - 57 * + COUNT( * ) * - NULLIF ( - 55, 55 ) / 88 + - - 58 + - 13 * - 28 ) col2
----
-29000

skipif mysql # not compatible
query I rowsort label-1147
SELECT DISTINCT ( 25 ) * + 20 * - NULLIF ( 58, - - 57 * + COUNT ( * ) * - NULLIF ( - 55, 55 ) / 88 + - - 58 + - 13 * - 28 ) col2
----
-29000

onlyif mysql # aggregate syntax: 
query I rowsort label-1148
SELECT - SUM( + + 9 ) * - MIN( ALL - - 56 )
----
504

skipif mysql # not compatible
query I rowsort label-1148
SELECT - SUM ( + + 9 ) * - MIN ( ALL - - 56 )
----
504

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1149
SELECT - CAST( NULL AS SIGNED ) + - - COUNT( * ) col1, 98 * 83 AS col0
----
NULL
8134

skipif mysql # not compatible
query II rowsort label-1149
SELECT - CAST ( NULL AS INTEGER ) + - - COUNT ( * ) col1, 98 * 83 AS col0
----
NULL
8134

onlyif mysql # aggregate syntax: 
query I rowsort label-1150
SELECT ALL NULLIF ( + + 92, - + 13 + + 6 + - SUM( ALL 98 ) - 83 * ( + 14 ) * + - 50 ) AS col1
----
92

skipif mysql # not compatible
query I rowsort label-1150
SELECT ALL NULLIF ( + + 92, - + 13 + + 6 + - SUM ( ALL 98 ) - 83 * ( + 14 ) * + - 50 ) AS col1
----
92

query I rowsort
SELECT DISTINCT + 73 * - - 45
----
3285

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

skipif mysql # not compatible
query I rowsort label-1152
SELECT ALL NULLIF ( + + COUNT ( * ), + - 69 )
----
1

query I rowsort
SELECT ALL + 55 * + 72 * - - 36 AS col1
----
142560

query II rowsort
SELECT DISTINCT - 57 * + 86 AS col1, 77 AS col0
----
-4902
77

onlyif mysql # aggregate syntax: 
query I rowsort label-1155
SELECT - + ( + - 42 ) * + COALESCE ( + + MAX( ALL 10 ), + - 62 + - - 4 * + - 83 ) AS col0
----
420

skipif mysql # not compatible
query I rowsort label-1155
SELECT - + ( + - 42 ) * + COALESCE ( + + MAX ( ALL 10 ), + - 62 + - - 4 * + - 83 ) AS col0
----
420

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1156
SELECT ALL - 24 * - CASE + 70 WHEN - 56 - - - 66 THEN + CAST( NULL AS SIGNED ) / - + COUNT( * ) ELSE NULL END + + COUNT( * ) + - 22 * 32 * 25 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1156
SELECT ALL - 24 * - CASE + 70 WHEN - 56 - - - 66 THEN + CAST ( NULL AS INTEGER ) / - + COUNT ( * ) ELSE NULL END + + COUNT ( * ) + - 22 * 32 * 25 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1157
SELECT DISTINCT COUNT( * ) * + + CAST( - 34 AS SIGNED ) + 3 - - - ( - 63 ) DIV 45 AS col1
----
-30

skipif mysql # not compatible
query I rowsort label-1157
SELECT DISTINCT COUNT ( * ) * + + CAST ( - 34 AS INTEGER ) + 3 - - - ( - 63 ) / 45 AS col1
----
-30

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1158
SELECT + + 80 DIV + COALESCE ( + + 45, + + CAST( NULL AS SIGNED ) ) + - 72
----
-71

skipif mysql # not compatible
query I rowsort label-1158
SELECT + + 80 / + COALESCE ( + + 45, + + CAST ( NULL AS INTEGER ) ) + - 72
----
-71

query I rowsort
SELECT + 15 + 87 * 43 * ( 50 ) - - NULLIF ( - 31, + 94 )
----
187034

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1160
SELECT DISTINCT + CAST( NULL AS SIGNED ) / + NULLIF ( - COUNT( * ), + COALESCE ( - 99, - 34 ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1160
SELECT DISTINCT + CAST ( NULL AS INTEGER ) / + NULLIF ( - COUNT ( * ), + COALESCE ( - 99, - 34 ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1161
SELECT NULLIF ( + - MAX( ALL 34 ), + 65 )
----
-34

skipif mysql # not compatible
query I rowsort label-1161
SELECT NULLIF ( + - MAX ( ALL 34 ), + 65 )
----
-34

query I rowsort
SELECT DISTINCT + + COALESCE ( - 56, - + ( + + 45 ) )
----
-56

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1164
SELECT - NULLIF ( - 58, 51 * + SUM( + 43 ) ) col0
----
58

skipif mysql # not compatible
query I rowsort label-1164
SELECT - NULLIF ( - 58, 51 * + SUM ( + 43 ) ) col0
----
58

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

query I rowsort
SELECT - 62 - 98 AS col2
----
-160

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1169
SELECT + 85 DIV - 21
----
-4

skipif mysql # not compatible
query I rowsort label-1169
SELECT + 85 / - 21
----
-4

query I rowsort
SELECT ALL + COALESCE ( + ( + 67 ), + - 78 * ( - 4 ) ) * - 4 - + - 49 + + 38 * + - 39
----
-1701

onlyif mysql # aggregate syntax: 
query I rowsort label-1171
SELECT + NULLIF ( - 20, + - CASE - 18 WHEN + COUNT( * ) THEN 76 * + 11 - - ( - 94 ) END / - 47 + - 21 )
----
-20

skipif mysql # not compatible
query I rowsort label-1171
SELECT + NULLIF ( - 20, + - CASE - 18 WHEN + COUNT ( * ) THEN 76 * + 11 - - ( - 94 ) END / - 47 + - 21 )
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-1172
SELECT ALL 8 * + NULLIF ( + + 0, + - ( - - 63 ) ) * COUNT( + 91 )
----
0

skipif mysql # not compatible
query I rowsort label-1172
SELECT ALL 8 * + NULLIF ( + + 0, + - ( - - 63 ) ) * COUNT ( + 91 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1173
SELECT ALL 57 * - + COUNT( * ) * + + COUNT( * ) + - - NULLIF ( + COUNT( * ), 39 ) + - 85 col0
----
-141

skipif mysql # not compatible
query I rowsort label-1173
SELECT ALL 57 * - + COUNT ( * ) * + + COUNT ( * ) + - - NULLIF ( + COUNT ( * ), 39 ) + - 85 col0
----
-141

onlyif mysql # DIV for integer division: 
query I rowsort label-1174
SELECT + 78 - 36 DIV - - 18 AS col2
----
76

skipif mysql # not compatible
query I rowsort label-1174
SELECT + 78 - 36 / - - 18 AS col2
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-1175
SELECT DISTINCT - 48 * + - ( - COUNT( * ) ) + - + 34
----
-82

skipif mysql # not compatible
query I rowsort label-1175
SELECT DISTINCT - 48 * + - ( - COUNT ( * ) ) + - + 34
----
-82

query I rowsort
SELECT + 66 * - 66 AS col2
----
-4356

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

skipif mysql # not compatible
query I rowsort label-1177
SELECT ALL 78 / - 1
----
-78

query I rowsort
SELECT + 42 + - 49 + + 78 AS col1
----
71

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1180
SELECT + 18 + - COUNT( * ) - + + SUM( ALL - 35 ) AS col0
----
52

skipif mysql # not compatible
query I rowsort label-1180
SELECT + 18 + - COUNT ( * ) - + + SUM ( ALL - 35 ) AS col0
----
52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1181
SELECT - 24 - - - 22 + - NULLIF ( - 76, + 91 ) * - 11 + CAST( NULL AS DECIMAL ) - - + CASE 14 WHEN ( + NULLIF ( 52, + CAST( NULL AS SIGNED ) ) ) THEN - SUM( ALL + ( + 98 ) ) END / - - 10 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1181
SELECT - 24 - - - 22 + - NULLIF ( - 76, + 91 ) * - 11 + CAST ( NULL AS REAL ) - - + CASE 14 WHEN ( + NULLIF ( 52, + CAST ( NULL AS INTEGER ) ) ) THEN - SUM ( ALL + ( + 98 ) ) END / - - 10 AS col2
----
NULL

query I rowsort
SELECT ALL 30 * - 9 AS col1
----
-270

onlyif mysql # aggregate syntax: 
query II rowsort label-1183
SELECT + SUM( + + 77 ) + - - 69 AS col1, ( - 98 )
----
146
-98

skipif mysql # not compatible
query II rowsort label-1183
SELECT + SUM ( + + 77 ) + - - 69 AS col1, ( - 98 )
----
146
-98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1184
SELECT - CAST( NULL AS SIGNED ) - - 36 * - 91 / + 91 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1184
SELECT - CAST ( NULL AS INTEGER ) - - 36 * - 91 / + 91 AS col2
----
NULL

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

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

query I rowsort
SELECT ALL + 87 * + 57 col2
----
4959

query I rowsort
SELECT ALL - 32 - + 53 AS col0
----
-85

onlyif mysql # DIV for integer division: 
query I rowsort label-1188
SELECT + 88 DIV + - 83 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-1188
SELECT + 88 / + - 83 AS col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1189
SELECT - CAST( + COALESCE ( - 84, - ( + - 80 ) * - 1 * - CAST( NULL AS SIGNED ), 27 ) AS SIGNED ) + + COUNT( * ) AS col2
----
85

skipif mysql # not compatible
query I rowsort label-1189
SELECT - CAST ( + COALESCE ( - 84, - ( + - 80 ) * - 1 * - CAST ( NULL AS INTEGER ), 27 ) AS INTEGER ) + + COUNT ( * ) AS col2
----
85

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

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

query I rowsort
SELECT + 3 + - ( - ( 93 ) ) AS col0
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-1193
SELECT + 16 + + COALESCE ( + 6, 3, + COUNT( * ) ) * - COUNT( * ) * + 41 * + 2 * + 55
----
-27044

skipif mysql # not compatible
query I rowsort label-1193
SELECT + 16 + + COALESCE ( + 6, 3, + COUNT ( * ) ) * - COUNT ( * ) * + 41 * + 2 * + 55
----
-27044

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1196
SELECT ALL - COALESCE ( - NULLIF ( + COUNT( * ), - + 81 * + CAST( - + 1 AS SIGNED ) + - + 51 * + 18 ), - 24, - COUNT( * ) ) * + COUNT( * ) - 22 * - 29 AS col1, ( 74 ) AS col1
----
639
74

skipif mysql # not compatible
query II rowsort label-1196
SELECT ALL - COALESCE ( - NULLIF ( + COUNT ( * ), - + 81 * + CAST ( - + 1 AS INTEGER ) + - + 51 * + 18 ), - 24, - COUNT ( * ) ) * + COUNT ( * ) - 22 * - 29 AS col1, ( 74 ) AS col1
----
639
74

query I rowsort
SELECT - 48 * + 94 - + 74 AS col2
----
-4586

query I rowsort
SELECT ALL + + NULLIF ( - 91, - - 31 * 14 ) AS col2
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-1199
SELECT - + 12 * + 46 * MIN( + 11 ) - 51
----
-6123

skipif mysql # not compatible
query I rowsort label-1199
SELECT - + 12 * + 46 * MIN ( + 11 ) - 51
----
-6123

query II rowsort
SELECT ALL + + 10 col1, + 79 AS col1
----
10
79

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1201
SELECT ALL + COUNT( * ) DIV ( + 27 ) + 3 * - 92 + - COUNT( * ) AS col1
----
-277

skipif mysql # not compatible
query I rowsort label-1201
SELECT ALL + COUNT ( * ) / ( + 27 ) + 3 * - 92 + - COUNT ( * ) AS col1
----
-277

onlyif mysql # DIV for integer division: 
query I rowsort label-1202
SELECT - ( + 23 ) + 53 DIV + 38
----
-22

skipif mysql # not compatible
query I rowsort label-1202
SELECT - ( + 23 ) + 53 / + 38
----
-22

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-1203
SELECT NULLIF ( - 61, + + CAST( NULL AS DECIMAL ) ) AS col0, 29 * - + SUM( DISTINCT + - 33 ) DIV + ( COUNT( * ) )
----
-61
957

skipif mysql # not compatible
query II rowsort label-1203
SELECT NULLIF ( - 61, + + CAST ( NULL AS REAL ) ) AS col0, 29 * - + SUM ( DISTINCT + - 33 ) / + ( COUNT ( * ) )
----
-61
957

query I rowsort
SELECT + 69 * - 9 + + 36 + - + 72 + - + 96 * - - 84 + - + 46 + 82 + - 95 AS col0
----
-8780

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

skipif mysql # not compatible
query I rowsort label-1205
SELECT NULLIF ( + COUNT ( * ), COUNT ( * ) + + + 99 ) AS col1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1206
SELECT - 73 * - 80 - - CAST( + CAST( 19 AS SIGNED ) AS SIGNED )
----
5859

skipif mysql # not compatible
query I rowsort label-1206
SELECT - 73 * - 80 - - CAST ( + CAST ( 19 AS INTEGER ) AS INTEGER )
----
5859

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1208
SELECT - 59 + - + CAST( - 98 AS SIGNED ) + COUNT( * ) col1
----
40

skipif mysql # not compatible
query I rowsort label-1208
SELECT - 59 + - + CAST ( - 98 AS INTEGER ) + COUNT ( * ) col1
----
40

query II rowsort
SELECT 85 AS col0, + 8 AS col0
----
85
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1210
SELECT ALL + 36 + - - 11 + - 65 + - 88 * + 60 * + 27 AS col0, MIN( - + CASE + 48 WHEN 54 THEN - 95 + + + CAST( NULL AS SIGNED ) / - ( - + 7 ) ELSE NULL END )
----
-142578
NULL

skipif mysql # not compatible
query II rowsort label-1210
SELECT ALL + 36 + - - 11 + - 65 + - 88 * + 60 * + 27 AS col0, MIN ( - + CASE + 48 WHEN 54 THEN - 95 + + + CAST ( NULL AS INTEGER ) / - ( - + 7 ) ELSE NULL END )
----
-142578
NULL

query II rowsort
SELECT ALL - 70 AS col1, + 60
----
-70
60

onlyif mysql # aggregate syntax: 
query I rowsort label-1212
SELECT COUNT( ALL - ( - 86 ) ) * - - 13 + - 5
----
8

skipif mysql # not compatible
query I rowsort label-1212
SELECT COUNT ( ALL - ( - 86 ) ) * - - 13 + - 5
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-1213
SELECT ALL 90 * - + COUNT( + - 2 )
----
-90

skipif mysql # not compatible
query I rowsort label-1213
SELECT ALL 90 * - + COUNT ( + - 2 )
----
-90

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1214
SELECT ALL - 15, - 15 + + - COUNT( * ) DIV - - 65 AS col0
----
-15
-15

skipif mysql # not compatible
query II rowsort label-1214
SELECT ALL - 15, - 15 + + - COUNT ( * ) / - - 65 AS col0
----
-15
-15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1215
SELECT ALL + CASE + - 77 WHEN 33 * + + CASE - + 84 WHEN + + 75 THEN - 82 END THEN - - MIN( + - 78 ) / + 50 * CASE + 45 WHEN - 7 / - + CASE 26 WHEN - MIN( + 2 ) * + ( 22 ) * - - 41 * - 89 + - - 64 + + - 58 * - + MAX( ALL + 88 ) THEN + - 40 WHEN - 20 + + 6 - - - 6 + + CAST( 12 AS SIGNED ) THEN - + COUNT( * ) + 44 + 77 * - 42 * + 44 END - + 86 + 88 - + 24 / + + 29 THEN - + COUNT( * ) END ELSE NULL END + 29 / + 34 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1215
SELECT ALL + CASE + - 77 WHEN 33 * + + CASE - + 84 WHEN + + 75 THEN - 82 END THEN - - MIN ( + - 78 ) / + 50 * CASE + 45 WHEN - 7 / - + CASE 26 WHEN - MIN ( + 2 ) * + ( 22 ) * - - 41 * - 89 + - - 64 + + - 58 * - + MAX ( ALL + 88 ) THEN + - 40 WHEN - 20 + + 6 - - - 6 + + CAST ( 12 AS INTEGER ) THEN - + COUNT ( * ) + 44 + 77 * - 42 * + 44 END - + 86 + 88 - + 24 / + + 29 THEN - + COUNT ( * ) END ELSE NULL END + 29 / + 34 AS col1
----
NULL

query I rowsort
SELECT 60 + ( 16 )
----
76

query I rowsort
SELECT 31 * + 76
----
2356

query I rowsort
SELECT 67 * + 57 * - + ( - 14 )
----
53466

query I rowsort
SELECT 57 * - 46 AS col0
----
-2622

query I rowsort
SELECT ALL 83 - + + 16
----
67

onlyif mysql # aggregate syntax: 
query II rowsort label-1221
SELECT 64 col1, + MIN( ALL - ( + - COALESCE ( - 71, - 93 ) ) )
----
64
-71

skipif mysql # not compatible
query II rowsort label-1221
SELECT 64 col1, + MIN ( ALL - ( + - COALESCE ( - 71, - 93 ) ) )
----
64
-71

query II rowsort
SELECT ALL 84, 3 AS col2
----
84
3

onlyif mysql # DIV for integer division: 
query I rowsort label-1223
SELECT 76 DIV - - 66 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-1223
SELECT 76 / - - 66 AS col0
----
1

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

skipif mysql # not compatible
query I rowsort label-1224
SELECT ALL 77 / - 1
----
-77

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1226
SELECT DISTINCT 42, 96 * + CASE - MIN( 32 ) WHEN - 76 * + - ( - 11 ) * + 9 + + - 55 + - - 55 + - 52 + 10 * - - NULLIF ( - 48, + 53 ) * + 75 THEN 3 + - - NULLIF ( - COUNT( * ), 33 * + 98 ) + + 49 + - 44 * 24 END col1
----
42
NULL

skipif mysql # not compatible
query II rowsort label-1226
SELECT DISTINCT 42, 96 * + CASE - MIN ( 32 ) WHEN - 76 * + - ( - 11 ) * + 9 + + - 55 + - - 55 + - 52 + 10 * - - NULLIF ( - 48, + 53 ) * + 75 THEN 3 + - - NULLIF ( - COUNT ( * ), 33 * + 98 ) + + 49 + - 44 * 24 END col1
----
42
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1227
SELECT MAX( 38 ) - + COUNT( * ) * + + ( + 73 ) col1
----
-35

skipif mysql # not compatible
query I rowsort label-1227
SELECT MAX ( 38 ) - + COUNT ( * ) * + + ( + 73 ) col1
----
-35

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1228
SELECT NULLIF ( 12, 66 + + 27 ) DIV + COUNT( * ) * 1 + 12 AS col1
----
24

skipif mysql # not compatible
query I rowsort label-1228
SELECT NULLIF ( 12, 66 + + 27 ) / + COUNT ( * ) * 1 + 12 AS col1
----
24

onlyif mysql # DIV for integer division: 
query I rowsort label-1229
SELECT ALL 41 DIV 7
----
5

skipif mysql # not compatible
query I rowsort label-1229
SELECT ALL 41 / 7
----
5

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

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

query I rowsort
SELECT ALL + - 17 + - - 27
----
10

query II rowsort
SELECT 88, - 94 AS col0
----
88
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-1233
SELECT ALL 11 * - COUNT( * ) * + - CASE - COUNT( * ) WHEN + + ( + 56 ) THEN NULL ELSE + - 63 * - ( 93 ) + MIN( ALL - 16 ) * COUNT( * ) * 5 END * - 60 + + 3 * - 71
----
-3814353

skipif mysql # not compatible
query I rowsort label-1233
SELECT ALL 11 * - COUNT ( * ) * + - CASE - COUNT ( * ) WHEN + + ( + 56 ) THEN NULL ELSE + - 63 * - ( 93 ) + MIN ( ALL - 16 ) * COUNT ( * ) * 5 END * - 60 + + 3 * - 71
----
-3814353

onlyif mysql # DIV for integer division: 
query I rowsort label-1234
SELECT DISTINCT + 14 + 91 + 56 DIV 95 * ( - 50 )
----
105

skipif mysql # not compatible
query I rowsort label-1234
SELECT DISTINCT + 14 + 91 + 56 / 95 * ( - 50 )
----
105

onlyif mysql # aggregate syntax: 
query I rowsort label-1235
SELECT ( 40 ) - - COUNT( * )
----
41

skipif mysql # not compatible
query I rowsort label-1235
SELECT ( 40 ) - - COUNT ( * )
----
41

query II rowsort
SELECT ALL + 24 AS col0, 54
----
24
54

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

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

query I rowsort
SELECT ALL 33 + + + 38 + + - 67 AS col0
----
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1239
SELECT ALL 38 * 84 + - CAST( - 48 AS SIGNED )
----
3240

skipif mysql # not compatible
query I rowsort label-1239
SELECT ALL 38 * 84 + - CAST ( - 48 AS INTEGER )
----
3240

query II rowsort
SELECT - 77 * + 60, 94 * + 17 AS col1
----
-4620
1598

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1242
SELECT - CAST( NULL AS SIGNED ) / MIN( ALL + 81 ) - + 29 + 46
----
NULL

skipif mysql # not compatible
query I rowsort label-1242
SELECT - CAST ( NULL AS INTEGER ) / MIN ( ALL + 81 ) - + 29 + 46
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1243
SELECT ALL + 31 + - 65 * + NULLIF ( + 15, - - COUNT( * ) + 59 * - + ( - + 29 ) ) * COUNT( * ) + - 54 + COUNT( * ) col0, + 39 * + + 38 + - + 48
----
-997
1434

skipif mysql # not compatible
query II rowsort label-1243
SELECT ALL + 31 + - 65 * + NULLIF ( + 15, - - COUNT ( * ) + 59 * - + ( - + 29 ) ) * COUNT ( * ) + - 54 + COUNT ( * ) col0, + 39 * + + 38 + - + 48
----
-997
1434

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

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

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

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

query I rowsort
SELECT ALL - COALESCE ( + 29, - 88 ) AS col2
----
-29

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1247
SELECT + CAST( NULL AS SIGNED ) * + 10 + - 96 + - 76 AS col2, 67 + + - 80 * - + CAST( NULL AS SIGNED )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-1247
SELECT + CAST ( NULL AS INTEGER ) * + 10 + - 96 + - 76 AS col2, 67 + + - 80 * - + CAST ( NULL AS INTEGER )
----
NULL
NULL

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

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

query I rowsort
SELECT ALL - ( + - 78 ) + - 49
----
29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1250
SELECT ALL + - ( - 35 ) + - 44 * - + 69 + + 62 + 61 DIV 21 * COUNT( * ) + - - COUNT( * ) + - ( + COALESCE ( - 34, 44 * - 32 + + - CAST( NULL AS SIGNED ) * CASE - + 90 WHEN - ( - 97 ) THEN - 81 END ) ) * + - COUNT( * ) AS col2, 53 * 7 * - 18 + + - 88 AS col1
----
3102
-6766

skipif mysql # not compatible
query II rowsort label-1250
SELECT ALL + - ( - 35 ) + - 44 * - + 69 + + 62 + 61 / 21 * COUNT ( * ) + - - COUNT ( * ) + - ( + COALESCE ( - 34, 44 * - 32 + + - CAST ( NULL AS INTEGER ) * CASE - + 90 WHEN - ( - 97 ) THEN - 81 END ) ) * + - COUNT ( * ) AS col2, 53 * 7 * - 18 + + - 88 AS col1
----
3102
-6766

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1251
SELECT 87 col0, - AVG ( + 79 ) - - NULLIF ( - CAST( NULL AS SIGNED ), + 35 ) + 36 * - 79
----
87
NULL

skipif mysql # not compatible
query II rowsort label-1251
SELECT 87 col0, - AVG ( + 79 ) - - NULLIF ( - CAST ( NULL AS INTEGER ), + 35 ) + 36 * - 79
----
87
NULL

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

skipif mysql # not compatible
query II rowsort label-1252
SELECT ALL + 96 / - 51 col1, COUNT ( * ) AS col1
----
-1
1

query I rowsort
SELECT DISTINCT - 37 + + - 54
----
-91

query I rowsort
SELECT 95 * + 60 * ( - 58 ) - 0
----
-330600

onlyif mysql # aggregate syntax: 
query II rowsort label-1255
SELECT 67 * 42 AS col2, COUNT( * ) + + 76 * - 68 + 11
----
2814
-5156

skipif mysql # not compatible
query II rowsort label-1255
SELECT 67 * 42 AS col2, COUNT ( * ) + + 76 * - 68 + 11
----
2814
-5156

query I rowsort
SELECT ALL - COALESCE ( + 20, - 58, 1 * 84 * - - 12 + + 1 * + 38 ) AS col1
----
-20

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

query I rowsort
SELECT ALL 36 * 83 AS col0
----
2988

onlyif mysql # aggregate syntax: 
query I rowsort label-1259
SELECT 85 - + COUNT( * ) AS col1
----
84

skipif mysql # not compatible
query I rowsort label-1259
SELECT 85 - + COUNT ( * ) AS col1
----
84

query I rowsort
SELECT 56 * - ( + ( + 95 ) ) col0
----
-5320

query I rowsort
SELECT 92 * + 39 AS col2
----
3588

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1262
SELECT 66 + + + 46 - + - 87 * + + ( - CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1262
SELECT 66 + + + 46 - + - 87 * + + ( - CAST ( NULL AS REAL ) )
----
NULL

query I rowsort
SELECT ALL 0 * - 23
----
0

query I rowsort
SELECT 75 + - + ( + 84 ) AS col1
----
-9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1265
SELECT COUNT( * ) - + + 30 + - + COUNT( * ) * 46 + + 77 DIV + 19 AS col1
----
-71

skipif mysql # not compatible
query I rowsort label-1265
SELECT COUNT ( * ) - + + 30 + - + COUNT ( * ) * 46 + + 77 / + 19 AS col1
----
-71

query I rowsort
SELECT 82 * + 55 * - 37 AS col1
----
-166870

onlyif mysql # aggregate syntax: 
query I rowsort label-1267
SELECT - 68 * + 12 * + - SUM( ALL 79 ) AS col2
----
64464

skipif mysql # not compatible
query I rowsort label-1267
SELECT - 68 * + 12 * + - SUM ( ALL 79 ) AS col2
----
64464

onlyif mysql # aggregate syntax: 
query II rowsort label-1268
SELECT DISTINCT MAX( DISTINCT 39 ) col1, + 70 AS col1
----
39
70

skipif mysql # not compatible
query II rowsort label-1268
SELECT DISTINCT MAX ( DISTINCT 39 ) col1, + 70 AS col1
----
39
70

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-1269
SELECT ALL 65 + + 75 + CAST( NULL AS DECIMAL ) / + - ( - - 85 ) * + - 93 * + COALESCE ( - 9, COUNT( * ), - ( 79 ), - 73 ) col1, - 41
----
NULL
-41

skipif mysql # not compatible
query II rowsort label-1269
SELECT ALL 65 + + 75 + CAST ( NULL AS REAL ) / + - ( - - 85 ) * + - 93 * + COALESCE ( - 9, COUNT ( * ), - ( 79 ), - 73 ) col1, - 41
----
NULL
-41

query I rowsort
SELECT + 34 * + + 72
----
2448

onlyif mysql # aggregate syntax: 
query I rowsort label-1271
SELECT - CASE - - 57 WHEN + - COUNT( * ) THEN NULL ELSE - - 15 - 75 * + 0 END
----
-15

skipif mysql # not compatible
query I rowsort label-1271
SELECT - CASE - - 57 WHEN + - COUNT ( * ) THEN NULL ELSE - - 15 - 75 * + 0 END
----
-15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1272
SELECT ALL SUM( CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1272
SELECT ALL SUM ( CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1273
SELECT + 55 * NULLIF ( + + 57, 76 / - COUNT( * ) ) * 59 + 71 + + - 6 * - 2 col0
----
185048

skipif mysql # not compatible
query I rowsort label-1273
SELECT + 55 * NULLIF ( + + 57, 76 / - COUNT ( * ) ) * 59 + 71 + + - 6 * - 2 col0
----
185048

query I rowsort
SELECT DISTINCT + 66 * + + 26 col2
----
1716

query I rowsort
SELECT + - 39 + + 23 + + 75
----
59

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1277
SELECT NULLIF ( + - CAST( - - 2 AS SIGNED ), + 88 * - CAST( + 95 AS SIGNED ) + - CASE - + MIN( + 6 ) WHEN 17 + COALESCE ( - + CAST( NULL AS SIGNED ), - 60, + + 78 ) THEN - + 51 END + + 65 - - ( - + 29 ) * + 49 + 57 * - 64 * + 92 )
----
-2

skipif mysql # not compatible
query I rowsort label-1277
SELECT NULLIF ( + - CAST ( - - 2 AS INTEGER ), + 88 * - CAST ( + 95 AS INTEGER ) + - CASE - + MIN ( + 6 ) WHEN 17 + COALESCE ( - + CAST ( NULL AS INTEGER ), - 60, + + 78 ) THEN - + 51 END + + 65 - - ( - + 29 ) * + 49 + 57 * - 64 * + 92 )
----
-2

query I rowsort
SELECT - 49 - - 0 AS col1
----
-49

query I rowsort
SELECT + 7 * + 52 - 8
----
356

query I rowsort
SELECT + 96 + + 4
----
100

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1281
SELECT - CASE + - 57 WHEN 17 * + - SUM( ALL CAST( - 49 AS SIGNED ) ) * - 66 - 18 * 65 THEN NULL ELSE - - 31 DIV - 60 END + ( 29 ) + + 27 AS col2
----
56

skipif mysql # not compatible
query I rowsort label-1281
SELECT - CASE + - 57 WHEN 17 * + - SUM ( ALL CAST ( - 49 AS INTEGER ) ) * - 66 - 18 * 65 THEN NULL ELSE - - 31 / - 60 END + ( 29 ) + + 27 AS col2
----
56

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

skipif mysql # not compatible
query I rowsort label-1282
SELECT DISTINCT + 28 * - COUNT ( * ) AS col1
----
-28

query I rowsort
SELECT ALL + 10 * + 94 col1
----
940

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1284
SELECT - ( 54 ) + + 40 DIV COUNT( * )
----
-14

skipif mysql # not compatible
query I rowsort label-1284
SELECT - ( 54 ) + + 40 / COUNT ( * )
----
-14

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1286
SELECT - COUNT( * ) + + - 55 + - - 7 + 71
----
22

skipif mysql # not compatible
query I rowsort label-1286
SELECT - COUNT ( * ) + + - 55 + - - 7 + 71
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-1287
SELECT - 12 + + COUNT( ALL + - ( + + 51 ) ) AS col0
----
-11

skipif mysql # not compatible
query I rowsort label-1287
SELECT - 12 + + COUNT ( ALL + - ( + + 51 ) ) AS col0
----
-11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1288
SELECT - CAST( NULL AS SIGNED ) / - 37 * - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1288
SELECT - CAST ( NULL AS INTEGER ) / - 37 * - COUNT ( * ) AS col2
----
NULL

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1291
SELECT - + 19 + MIN( DISTINCT + 15 ), - 36 AS col2
----
-4
-36

skipif mysql # not compatible
query II rowsort label-1291
SELECT - + 19 + MIN ( DISTINCT + 15 ), - 36 AS col2
----
-4
-36

query I rowsort
SELECT DISTINCT - - 33 + + 7
----
40

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1294
SELECT - MIN( ALL + - 87 ) + 18
----
105

skipif mysql # not compatible
query I rowsort label-1294
SELECT - MIN ( ALL + - 87 ) + 18
----
105

onlyif mysql # aggregate syntax: 
query I rowsort label-1295
SELECT - - COALESCE ( 31, NULLIF ( + - 71, COUNT( * ) ) + 1 ) - 1
----
30

skipif mysql # not compatible
query I rowsort label-1295
SELECT - - COALESCE ( 31, NULLIF ( + - 71, COUNT ( * ) ) + 1 ) - 1
----
30

onlyif mysql # DIV for integer division: 
query I rowsort label-1296
SELECT DISTINCT + + 45 + + 93 DIV 92 + - 61
----
-15

skipif mysql # not compatible
query I rowsort label-1296
SELECT DISTINCT + + 45 + + 93 / 92 + - 61
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-1297
SELECT ALL - 98 + + + COALESCE ( + CASE - CASE - 78 WHEN - MIN( - ( - 32 ) ) * - COUNT( * ) + - 27 THEN - MAX( + 51 ) WHEN + 2 + - 16 THEN NULL END WHEN + ( 53 ) THEN 42 WHEN - - 45 THEN NULL END, 60 + + 76 ) + 71 + - 63 * 30 + - - 9 col0
----
-1772

skipif mysql # not compatible
query I rowsort label-1297
SELECT ALL - 98 + + + COALESCE ( + CASE - CASE - 78 WHEN - MIN ( - ( - 32 ) ) * - COUNT ( * ) + - 27 THEN - MAX ( + 51 ) WHEN + 2 + - 16 THEN NULL END WHEN + ( 53 ) THEN 42 WHEN - - 45 THEN NULL END, 60 + + 76 ) + 71 + - 63 * 30 + - - 9 col0
----
-1772

query I rowsort
SELECT DISTINCT - - 16 - - ( + + 56 ) col1
----
72

query II rowsort
SELECT ALL - 10 AS col2, 4 AS col2
----
-10
4

query I rowsort
SELECT + - 43 + - CASE - 19 WHEN - 55 THEN + 14 END + + + 71 + + + COALESCE ( + - ( 72 ), + - 59 ) + - + 23 * + 92 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1301
SELECT DISTINCT + - 41, - COUNT( * ) DIV 15 * 68 + + COALESCE ( + 10, ( + 64 ) ) + - 65 + - - 14 AS col0
----
-41
-41

skipif mysql # not compatible
query II rowsort label-1301
SELECT DISTINCT + - 41, - COUNT ( * ) / 15 * 68 + + COALESCE ( + 10, ( + 64 ) ) + - 65 + - - 14 AS col0
----
-41
-41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1302
SELECT CAST( - CAST( ( COUNT( ALL + 92 ) ) AS DECIMAL ) AS SIGNED )
----
-1

skipif mysql # not compatible
query I rowsort label-1302
SELECT CAST ( - CAST ( ( COUNT ( ALL + 92 ) ) AS REAL ) AS INTEGER )
----
-1

query I rowsort
SELECT + 26 + 14 col1
----
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1304
SELECT ALL 47 / 59 / + + CAST( NULL AS SIGNED ) - + 95
----
NULL

skipif mysql # not compatible
query I rowsort label-1304
SELECT ALL 47 / 59 / + + CAST ( NULL AS INTEGER ) - + 95
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1305
SELECT DISTINCT - SUM( 62 ) DIV 23
----
-2

skipif mysql # not compatible
query I rowsort label-1305
SELECT DISTINCT - SUM ( 62 ) / 23
----
-2

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1307
SELECT + 72 * - MIN( DISTINCT - 74 ) AS col0
----
5328

skipif mysql # not compatible
query I rowsort label-1307
SELECT + 72 * - MIN ( DISTINCT - 74 ) AS col0
----
5328

onlyif mysql # DIV for integer division: 
query I rowsort label-1308
SELECT ALL 78 DIV - 63 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-1308
SELECT ALL 78 / - 63 AS col2
----
-1

query I rowsort
SELECT + ( - CASE - + 22 WHEN + 27 THEN 96 * - 51 END )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1310
SELECT + NULLIF ( 74, - ( 21 ) * + 43 / + CAST( - + 43 AS SIGNED ) + 81 ) * 85 col2
----
6290

skipif mysql # not compatible
query I rowsort label-1310
SELECT + NULLIF ( 74, - ( 21 ) * + 43 / + CAST ( - + 43 AS INTEGER ) + 81 ) * 85 col2
----
6290

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

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

query I rowsort
SELECT ALL 72 * + - 60
----
-4320

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1314
SELECT + 36 DIV + 38 AS col0, - NULLIF ( - 20, + 55 )
----
0
20

skipif mysql # not compatible
query II rowsort label-1314
SELECT + 36 / + 38 AS col0, - NULLIF ( - 20, + 55 )
----
0
20

onlyif mysql # aggregate syntax: 
query II rowsort label-1315
SELECT ( - 5 ) AS col2, + 56 + - COUNT( DISTINCT - 83 ) * - - 34 * 2 * - 83 AS col1
----
-5
5700

skipif mysql # not compatible
query II rowsort label-1315
SELECT ( - 5 ) AS col2, + 56 + - COUNT ( DISTINCT - 83 ) * - - 34 * 2 * - 83 AS col1
----
-5
5700

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1316
SELECT + CAST( NULL AS DECIMAL ) * - 19 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1316
SELECT + CAST ( NULL AS REAL ) * - 19 AS col2
----
NULL

query I rowsort
SELECT ALL 2 * + 19 + - 58
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-1318
SELECT + NULLIF ( 31, + 16 ) - + - SUM( ALL + - 62 ) AS col1
----
-31

skipif mysql # not compatible
query I rowsort label-1318
SELECT + NULLIF ( 31, + 16 ) - + - SUM ( ALL + - 62 ) AS col1
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-1319
SELECT + 6 + + - MAX( + 79 )
----
-73

skipif mysql # not compatible
query I rowsort label-1319
SELECT + 6 + + - MAX ( + 79 )
----
-73

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1322
SELECT ALL - COALESCE ( - + 22, 17, COUNT( * ) + + + 12 * 67 ) * - 46 + 17 AS col1
----
-995

skipif mysql # not compatible
query I rowsort label-1322
SELECT ALL - COALESCE ( - + 22, 17, COUNT ( * ) + + + 12 * 67 ) * - 46 + 17 AS col1
----
-995

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1323
SELECT + CAST( NULL AS SIGNED ) + + 3 + - 6 * - - 87 * 10 * 15 - 11 + 92 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1323
SELECT + CAST ( NULL AS INTEGER ) + + 3 + - 6 * - - 87 * 10 * 15 - 11 + 92 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1324
SELECT ALL - + 56 + + ( - + 3 ) * COUNT( * ), - 21 - 85 * - - 33 + + 3 + + 25 + + 37 + - - 13 + - 56 + - - 86 DIV - - 93 AS col0
----
-59
-2804

skipif mysql # not compatible
query II rowsort label-1324
SELECT ALL - + 56 + + ( - + 3 ) * COUNT ( * ), - 21 - 85 * - - 33 + + 3 + + 25 + + 37 + - - 13 + - 56 + - - 86 / - - 93 AS col0
----
-59
-2804

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1326
SELECT 65 * + 67, COUNT( 49 ) AS col0
----
4355
1

skipif mysql # not compatible
query II rowsort label-1326
SELECT 65 * + 67, COUNT ( 49 ) AS col0
----
4355
1

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

query II rowsort
SELECT ALL + 33 * + 64, 83 col2
----
2112
83

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

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

query I rowsort
SELECT DISTINCT - 41 - + 59
----
-100

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1331
SELECT DISTINCT - + 80 * - CAST( NULL AS SIGNED ) * - 69 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1331
SELECT DISTINCT - + 80 * - CAST ( NULL AS INTEGER ) * - 69 AS col0
----
NULL

query II rowsort
SELECT + 37 + 76 AS col0, ( - 29 )
----
113
-29

query I rowsort
SELECT 24 * - - 36 * + 91 AS col0
----
78624

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1334
SELECT - 46 * - COUNT( * ) + - COALESCE ( + - 94, - ( 20 ) ) + CAST( + - MAX( 16 ) AS SIGNED )
----
124

skipif mysql # not compatible
query I rowsort label-1334
SELECT - 46 * - COUNT ( * ) + - COALESCE ( + - 94, - ( 20 ) ) + CAST ( + - MAX ( 16 ) AS INTEGER )
----
124

query I rowsort
SELECT 70 * - - 21
----
1470

query I rowsort
SELECT 1 + 76
----
77

query I rowsort
SELECT + 13 + + 65 + 6
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-1338
SELECT - 87 * + 69 + + COUNT( * ) AS col1
----
-6002

skipif mysql # not compatible
query I rowsort label-1338
SELECT - 87 * + 69 + + COUNT ( * ) AS col1
----
-6002

onlyif mysql # aggregate syntax: 
query II rowsort label-1339
SELECT ALL + 45 * - 14 * - ( - - ( - 84 ) ) * 2 * - 39 - + 20 AS col0, + COUNT( * )
----
4127740
1

skipif mysql # not compatible
query II rowsort label-1339
SELECT ALL + 45 * - 14 * - ( - - ( - 84 ) ) * 2 * - 39 - + 20 AS col0, + COUNT ( * )
----
4127740
1

query II rowsort
SELECT ALL - 73 * - 36 * + - 8 AS col2, - 62 AS col1
----
-21024
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-1341
SELECT 57 - - - COUNT( * ) AS col1
----
56

skipif mysql # not compatible
query I rowsort label-1341
SELECT 57 - - - COUNT ( * ) AS col1
----
56

onlyif mysql # aggregate syntax: 
query II rowsort label-1342
SELECT DISTINCT - MIN( DISTINCT + 9 ) * 43 AS col2, 1 * 69 AS col2
----
-387
69

skipif mysql # not compatible
query II rowsort label-1342
SELECT DISTINCT - MIN ( DISTINCT + 9 ) * 43 AS col2, 1 * 69 AS col2
----
-387
69

onlyif mysql # aggregate syntax: 
query I rowsort label-1343
SELECT ALL - COALESCE ( - + 60, COUNT( DISTINCT - - 22 ) ) col1
----
60

skipif mysql # not compatible
query I rowsort label-1343
SELECT ALL - COALESCE ( - + 60, COUNT ( DISTINCT - - 22 ) ) col1
----
60

onlyif mysql # aggregate syntax: 
query II rowsort label-1344
SELECT ALL - 40 AS col0, SUM( 96 ) + 65
----
-40
161

skipif mysql # not compatible
query II rowsort label-1344
SELECT ALL - 40 AS col0, SUM ( 96 ) + 65
----
-40
161

query I rowsort
SELECT DISTINCT - 28 + - 34 * 95 * - 96 AS col1
----
310052

query I rowsort
SELECT + 36 * 65 + + 5 AS col1
----
2345

query I rowsort
SELECT 95 * - 41 AS col1
----
-3895

query I rowsort
SELECT ALL 24 + + 22
----
46

query I rowsort
SELECT 74 * - 50 + 14
----
-3686

query I rowsort
SELECT 1 - + + 43 + - 34 * 50
----
-1742

onlyif mysql # aggregate syntax: 
query II rowsort label-1351
SELECT + 76, SUM( - ( + 69 ) ) AS col1
----
76
-69

skipif mysql # not compatible
query II rowsort label-1351
SELECT + 76, SUM ( - ( + 69 ) ) AS col1
----
76
-69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1352
SELECT ALL 77 * - ( - + 90 ) / - 36 + - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1352
SELECT ALL 77 * - ( - + 90 ) / - 36 + - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1353
SELECT 85 / - - 28 * 83 * CASE + 60 WHEN COUNT( * ) * + 99 + + 75 + - + NULLIF ( + 29, 46 ) + - + COUNT( * ) + + + 66 + + 74 * 36 THEN + 9 * 54 WHEN - AVG ( + 24 ) * - - CAST( NULL AS SIGNED ) THEN 83 ELSE NULL END col1, - SUM( - 15 ) AS col2
----
NULL
15

skipif mysql # not compatible
query II rowsort label-1353
SELECT 85 / - - 28 * 83 * CASE + 60 WHEN COUNT ( * ) * + 99 + + 75 + - + NULLIF ( + 29, 46 ) + - + COUNT ( * ) + + + 66 + + 74 * 36 THEN + 9 * 54 WHEN - AVG ( + 24 ) * - - CAST ( NULL AS INTEGER ) THEN 83 ELSE NULL END col1, - SUM ( - 15 ) AS col2
----
NULL
15

query I rowsort
SELECT ALL - 11 + + NULLIF ( 62, + - 13 + - 52 ) * - 5 AS col1
----
-321

onlyif mysql # aggregate syntax: 
query I rowsort label-1355
SELECT ALL ( + 48 ) + CASE - 73 WHEN - 32 + + 48 * - 2 + + COUNT( * ) THEN + COUNT( * ) + + 57 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1355
SELECT ALL ( + 48 ) + CASE - 73 WHEN - 32 + + 48 * - 2 + + COUNT ( * ) THEN + COUNT ( * ) + + 57 ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT 11 * 40 + - 68
----
372

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1357
SELECT 81 * - CAST( + - ( - + SUM( ALL - 45 ) ) AS SIGNED ) AS col1
----
3645

skipif mysql # not compatible
query I rowsort label-1357
SELECT 81 * - CAST ( + - ( - + SUM ( ALL - 45 ) ) AS INTEGER ) AS col1
----
3645

onlyif mysql # aggregate syntax: 
query II rowsort label-1358
SELECT DISTINCT - 52 AS col1, 21 + COUNT( * ) * - + 52 * - - 37 * + COUNT( * ) * - 23
----
-52
44273

skipif mysql # not compatible
query II rowsort label-1358
SELECT DISTINCT - 52 AS col1, 21 + COUNT ( * ) * - + 52 * - - 37 * + COUNT ( * ) * - 23
----
-52
44273

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1359
SELECT NULLIF ( - CAST( NULL AS SIGNED ), + COUNT( * ) ) + 19 * + 34 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1359
SELECT NULLIF ( - CAST ( NULL AS INTEGER ), + COUNT ( * ) ) + 19 * + 34 AS col1
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1361
SELECT 10 * - COUNT( * ) AS col2
----
-10

skipif mysql # not compatible
query I rowsort label-1361
SELECT 10 * - COUNT ( * ) AS col2
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-1362
SELECT ALL MIN( ALL + 39 ) - MIN( 53 ) AS col2
----
-14

skipif mysql # not compatible
query I rowsort label-1362
SELECT ALL MIN ( ALL + 39 ) - MIN ( 53 ) AS col2
----
-14

query I rowsort
SELECT ALL - 49 * + 23
----
-1127

query I rowsort
SELECT 35 * - 60
----
-2100

onlyif mysql # aggregate syntax: 
query I rowsort label-1365
SELECT - MIN( 43 )
----
-43

skipif mysql # not compatible
query I rowsort label-1365
SELECT - MIN ( 43 )
----
-43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1366
SELECT DISTINCT 3 * + CASE - CAST( NULL AS SIGNED ) WHEN 31 / 17 + + 12 THEN + 67 / + 99 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1366
SELECT DISTINCT 3 * + CASE - CAST ( NULL AS INTEGER ) WHEN 31 / 17 + + 12 THEN + 67 / + 99 END AS col0
----
NULL

query I rowsort
SELECT 25 * 29
----
725

onlyif mysql # aggregate syntax: 
query I rowsort label-1368
SELECT 61 * COUNT( * ) AS col0
----
61

skipif mysql # not compatible
query I rowsort label-1368
SELECT 61 * COUNT ( * ) AS col0
----
61

query I rowsort
SELECT DISTINCT - 31 * + 29 AS col2
----
-899

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

skipif mysql # not compatible
query I rowsort label-1370
SELECT - MIN ( - ( + ( 6 ) ) )
----
6

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

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

query I rowsort
SELECT 60 * - 8
----
-480

query I rowsort
SELECT ALL - 41 + + 46 col2
----
5

query I rowsort
SELECT 66 + 33
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-1375
SELECT 76 * - MIN( 91 )
----
-6916

skipif mysql # not compatible
query I rowsort label-1375
SELECT 76 * - MIN ( 91 )
----
-6916

query I rowsort
SELECT 50 * 36 col1
----
1800

query I rowsort
SELECT ALL - 42 + - 17 AS col2
----
-59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1378
SELECT COALESCE ( - 52, + 5 DIV - NULLIF ( 82, - 11 + - COUNT( * ) ) )
----
-52

skipif mysql # not compatible
query I rowsort label-1378
SELECT COALESCE ( - 52, + 5 / - NULLIF ( 82, - 11 + - COUNT ( * ) ) )
----
-52

query I rowsort
SELECT DISTINCT - NULLIF ( - 36, - 4 )
----
36

query I rowsort
SELECT 75 * ( 16 * 13 ) AS col1
----
15600

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1382
SELECT DISTINCT - COUNT( * ) * COALESCE ( + 84, + 29 + 16, - 2 ) + 14 AS col2
----
-70

skipif mysql # not compatible
query I rowsort label-1382
SELECT DISTINCT - COUNT ( * ) * COALESCE ( + 84, + 29 + 16, - 2 ) + 14 AS col2
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-1383
SELECT DISTINCT 63 * 51 + COUNT( * ) * 98
----
3311

skipif mysql # not compatible
query I rowsort label-1383
SELECT DISTINCT 63 * 51 + COUNT ( * ) * 98
----
3311

query I rowsort
SELECT ALL + 93 * + 16 + + 77
----
1565

query I rowsort
SELECT 1 * - 34 AS col1
----
-34

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1387
SELECT ALL + ( - CASE - 67 WHEN - 1 * 37 + - 63 THEN - SUM( ALL - 55 ) + + ( ( + 30 ) ) WHEN + ( + 29 ) * + 70 + COUNT( * ) THEN ( 20 ) END )
----
NULL

skipif mysql # not compatible
query I rowsort label-1387
SELECT ALL + ( - CASE - 67 WHEN - 1 * 37 + - 63 THEN - SUM ( ALL - 55 ) + + ( ( + 30 ) ) WHEN + ( + 29 ) * + 70 + COUNT ( * ) THEN ( 20 ) END )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1388
SELECT COUNT( * ) DIV - 63 - + 19 col2
----
-19

skipif mysql # not compatible
query I rowsort label-1388
SELECT COUNT ( * ) / - 63 - + 19 col2
----
-19

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

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

query I rowsort
SELECT - + 88 + + 93 AS col1
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-1391
SELECT - 80 * ( 44 + - 5 * + 79 ) + + ( + COUNT( * ) )
----
28081

skipif mysql # not compatible
query I rowsort label-1391
SELECT - 80 * ( 44 + - 5 * + 79 ) + + ( + COUNT ( * ) )
----
28081

onlyif mysql # DIV for integer division: 
query I rowsort label-1392
SELECT + - 7 DIV + 18 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1392
SELECT + - 7 / + 18 AS col2
----
0

query I rowsort
SELECT - 65 * + 67 col2
----
-4355

onlyif mysql # aggregate syntax: 
query I rowsort label-1394
SELECT + 93 * ( 1 * 59 ) + + COUNT( * )
----
5488

skipif mysql # not compatible
query I rowsort label-1394
SELECT + 93 * ( 1 * 59 ) + + COUNT ( * )
----
5488

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1396
SELECT DISTINCT + 74 DIV 37 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-1396
SELECT DISTINCT + 74 / 37 AS col2
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1397
SELECT ALL COALESCE ( MIN( ALL 25 ), + CAST( COUNT( * ) AS SIGNED ) ) * - 50
----
-1250

skipif mysql # not compatible
query I rowsort label-1397
SELECT ALL COALESCE ( MIN ( ALL 25 ), + CAST ( COUNT ( * ) AS INTEGER ) ) * - 50
----
-1250

query I rowsort
SELECT + 92 - - 11 * + 16
----
268

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1401
SELECT + 6 - - SUM( ALL - ( 84 ) ) DIV 31 AS col2
----
4

skipif mysql # not compatible
query I rowsort label-1401
SELECT + 6 - - SUM ( ALL - ( 84 ) ) / 31 AS col2
----
4

query I rowsort
SELECT - - 61 * - 94 AS col0
----
-5734

onlyif mysql # aggregate syntax: 
query I rowsort label-1403
SELECT ALL + MIN( ALL ( + ( 21 ) ) ) * + 18
----
378

skipif mysql # not compatible
query I rowsort label-1403
SELECT ALL + MIN ( ALL ( + ( 21 ) ) ) * + 18
----
378

onlyif mysql # DIV for integer division: 
query I rowsort label-1404
SELECT - + 86 DIV - 79
----
1

skipif mysql # not compatible
query I rowsort label-1404
SELECT - + 86 / - 79
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1405
SELECT + - COUNT( * ) + 62
----
61

skipif mysql # not compatible
query I rowsort label-1405
SELECT + - COUNT ( * ) + 62
----
61

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

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

query I rowsort
SELECT + + 37 + 14
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-1408
SELECT ALL 52 + - COALESCE ( - 64 + - 32, - 54 * 75 + 52, + COUNT( * ) + + COUNT( * ) ) AS col0
----
148

skipif mysql # not compatible
query I rowsort label-1408
SELECT ALL 52 + - COALESCE ( - 64 + - 32, - 54 * 75 + 52, + COUNT ( * ) + + COUNT ( * ) ) AS col0
----
148

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1409
SELECT DISTINCT - COALESCE ( + NULLIF ( + COUNT( DISTINCT - CAST( NULL AS DECIMAL ) ), - CAST( 5 AS SIGNED ) * 37 ), 86 + 47 ) * 15
----
0

skipif mysql # not compatible
query I rowsort label-1409
SELECT DISTINCT - COALESCE ( + NULLIF ( + COUNT ( DISTINCT - CAST ( NULL AS REAL ) ), - CAST ( 5 AS INTEGER ) * 37 ), 86 + 47 ) * 15
----
0

query I rowsort
SELECT DISTINCT 14 + 4 - 49
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-1411
SELECT + COUNT( * ) + + + 50 + 48 * 35 AS col1
----
1731

skipif mysql # not compatible
query I rowsort label-1411
SELECT + COUNT ( * ) + + + 50 + 48 * 35 AS col1
----
1731

onlyif mysql # aggregate syntax: 
query I rowsort label-1412
SELECT - MIN( - - 45 )
----
-45

skipif mysql # not compatible
query I rowsort label-1412
SELECT - MIN ( - - 45 )
----
-45

query I rowsort
SELECT + NULLIF ( - 74, - 79 ) * - 92
----
6808

query I rowsort
SELECT ALL 49 + + 76 AS col0
----
125

onlyif mysql # aggregate syntax: 
query I rowsort label-1415
SELECT + SUM( ALL + 21 ) + 85
----
106

skipif mysql # not compatible
query I rowsort label-1415
SELECT + SUM ( ALL + 21 ) + 85
----
106

query I rowsort
SELECT - COALESCE ( - 61, - 89 + - 66 * - ( - COALESCE ( 90, - 81 ) ), + 10 )
----
61

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1417
SELECT + 31 + - 34 - - CASE NULLIF ( ( + 0 ), - 50 ) + 90 WHEN 23 * 72 THEN NULL WHEN + 23 * + COUNT( * ) THEN - CAST( - 62 AS DECIMAL ) ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1417
SELECT + 31 + - 34 - - CASE NULLIF ( ( + 0 ), - 50 ) + 90 WHEN 23 * 72 THEN NULL WHEN + 23 * + COUNT ( * ) THEN - CAST ( - 62 AS REAL ) ELSE NULL END AS col2
----
NULL

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

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

query I rowsort
SELECT - 13 * 55 AS col1
----
-715

query I rowsort
SELECT + 83 + - + 54 col0
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-1421
SELECT ALL - NULLIF ( - 0, 52 + 37 ) + SUM( DISTINCT + 67 + + 59 ) AS col1
----
126

skipif mysql # not compatible
query I rowsort label-1421
SELECT ALL - NULLIF ( - 0, 52 + 37 ) + SUM ( DISTINCT + 67 + + 59 ) AS col1
----
126

query I rowsort
SELECT DISTINCT 6 * COALESCE ( + 51, 0 * 56, - 94 )
----
306

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

skipif mysql # not compatible
query I rowsort label-1423
SELECT DISTINCT + ( COUNT ( * ) ) / - 96
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1424
SELECT 47 DIV - - ( - ( 48 ) ) + - 65 col1
----
-65

skipif mysql # not compatible
query I rowsort label-1424
SELECT 47 / - - ( - ( 48 ) ) + - 65 col1
----
-65

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1425
SELECT ALL - MAX( + NULLIF ( 94, 25 ) ) DIV - 96 - 71
----
-71

skipif mysql # not compatible
query I rowsort label-1425
SELECT ALL - MAX ( + NULLIF ( 94, 25 ) ) / - 96 - 71
----
-71

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

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

query I rowsort
SELECT 21 * - - 45 + + 40
----
985

onlyif mysql # aggregate syntax: 
query I rowsort label-1428
SELECT 48 * - - COUNT( * ) + MIN( DISTINCT 59 ) AS col0
----
107

skipif mysql # not compatible
query I rowsort label-1428
SELECT 48 * - - COUNT ( * ) + MIN ( DISTINCT 59 ) AS col0
----
107

query I rowsort
SELECT 12 * 7 - 70 AS col2
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-1430
SELECT ALL + ( SUM( DISTINCT 89 ) )
----
89

skipif mysql # not compatible
query I rowsort label-1430
SELECT ALL + ( SUM ( DISTINCT 89 ) )
----
89

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

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

query I rowsort
SELECT - 32 * - 54 + - 99 AS col1
----
1629

query I rowsort
SELECT ALL + - NULLIF ( - 15, - 88 / + 63 - + 82 ) * - ( - 75 )
----
1125

query I rowsort
SELECT ALL + + 20 * 91 * + 71
----
129220

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1435
SELECT CAST( - 80 AS SIGNED ) * 32 + + NULLIF ( - 27, 74 * + 43 )
----
-2587

skipif mysql # not compatible
query I rowsort label-1435
SELECT CAST ( - 80 AS INTEGER ) * 32 + + NULLIF ( - 27, 74 * + 43 )
----
-2587

onlyif mysql # aggregate syntax: 
query I rowsort label-1436
SELECT DISTINCT + COUNT( * ) * + + 13 * 39
----
507

skipif mysql # not compatible
query I rowsort label-1436
SELECT DISTINCT + COUNT ( * ) * + + 13 * 39
----
507

onlyif mysql # aggregate syntax: 
query I rowsort label-1437
SELECT - 53 * + CASE 43 WHEN 22 THEN COUNT( ALL 80 ) END + - 9 * + 90
----
NULL

skipif mysql # not compatible
query I rowsort label-1437
SELECT - 53 * + CASE 43 WHEN 22 THEN COUNT ( ALL 80 ) END + - 9 * + 90
----
NULL

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1441
SELECT - - SUM( 79 ) AS col2
----
79

skipif mysql # not compatible
query I rowsort label-1441
SELECT - - SUM ( 79 ) AS col2
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-1442
SELECT DISTINCT - 45 * - ( 27 ) * COUNT( * ) + - COUNT( * ) + - 53
----
1161

skipif mysql # not compatible
query I rowsort label-1442
SELECT DISTINCT - 45 * - ( 27 ) * COUNT ( * ) + - COUNT ( * ) + - 53
----
1161

onlyif mysql # aggregate syntax: 
query I rowsort label-1443
SELECT ALL 23 * + + COUNT( * ) * 59
----
1357

skipif mysql # not compatible
query I rowsort label-1443
SELECT ALL 23 * + + COUNT ( * ) * 59
----
1357

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1444
SELECT ALL + CASE WHEN NOT + CAST( + 96 AS SIGNED ) <> ( NULL ) THEN + 60 END / - CAST( + 93 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1444
SELECT ALL + CASE WHEN NOT + CAST ( + 96 AS INTEGER ) <> ( NULL ) THEN + 60 END / - CAST ( + 93 AS INTEGER )
----
NULL

query I rowsort
SELECT + - 83 + - - 20 * - 81 AS col1
----
-1703

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1446
SELECT DISTINCT + COUNT( * ) * + - COALESCE ( - 58, 71 + COUNT( * ) * - 2, 40 + - SUM( + 78 ) ) + 13 DIV + 59
----
58

skipif mysql # not compatible
query I rowsort label-1446
SELECT DISTINCT + COUNT ( * ) * + - COALESCE ( - 58, 71 + COUNT ( * ) * - 2, 40 + - SUM ( + 78 ) ) + 13 / + 59
----
58

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

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

query I rowsort
SELECT ALL 8 + - 29
----
-21

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1450
SELECT - COUNT( * ) * - - NULLIF ( - 2, + 19 / - 23 ) AS col1
----
2

skipif mysql # not compatible
query I rowsort label-1450
SELECT - COUNT ( * ) * - - NULLIF ( - 2, + 19 / - 23 ) AS col1
----
2

query I rowsort
SELECT - 90 - 17 AS col2
----
-107

onlyif mysql # aggregate syntax: 
query I rowsort label-1452
SELECT ALL + 24 + COUNT( + 23 ) + 34 * ( + 26 ) AS col0
----
909

skipif mysql # not compatible
query I rowsort label-1452
SELECT ALL + 24 + COUNT ( + 23 ) + 34 * ( + 26 ) AS col0
----
909

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1454
SELECT NULLIF ( - 84, + NULLIF ( 25, 19 + COALESCE ( 35 + - 34 * - 60, - 34, - 37 ) * + 45 ) ) * - COALESCE ( + MAX( - 39 ), 26 ) AS col2
----
-3276

skipif mysql # not compatible
query I rowsort label-1454
SELECT NULLIF ( - 84, + NULLIF ( 25, 19 + COALESCE ( 35 + - 34 * - 60, - 34, - 37 ) * + 45 ) ) * - COALESCE ( + MAX ( - 39 ), 26 ) AS col2
----
-3276

onlyif mysql # DIV for integer division: 
query I rowsort label-1455
SELECT ALL COALESCE ( - + 1, 8, + 59 DIV 51 + ( 30 - 38 ) ) * + 40 AS col1
----
-40

skipif mysql # not compatible
query I rowsort label-1455
SELECT ALL COALESCE ( - + 1, 8, + 59 / 51 + ( 30 - 38 ) ) * + 40 AS col1
----
-40

query II rowsort
SELECT 81 AS col0, + 5
----
81
5

onlyif mysql # aggregate syntax: 
query I rowsort label-1457
SELECT ALL SUM( DISTINCT 71 ) - + 32
----
39

skipif mysql # not compatible
query I rowsort label-1457
SELECT ALL SUM ( DISTINCT 71 ) - + 32
----
39

query II rowsort
SELECT 59, - 98 AS col1
----
59
-98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1459
SELECT CAST( NULL AS SIGNED ) * + NULLIF ( + + 75, - 32 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1459
SELECT CAST ( NULL AS INTEGER ) * + NULLIF ( + + 75, - 32 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1460
SELECT 36 / - COALESCE ( - NULLIF ( - ( CAST( NULL AS SIGNED ) ), + ( + 92 ) + + 67 / 28 ), - 79 + ( NULLIF ( + CAST( NULL AS SIGNED ), + 97 + + COUNT( * ) ) ) * - 44 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1460
SELECT 36 / - COALESCE ( - NULLIF ( - ( CAST ( NULL AS INTEGER ) ), + ( + 92 ) + + 67 / 28 ), - 79 + ( NULLIF ( + CAST ( NULL AS INTEGER ), + 97 + + COUNT ( * ) ) ) * - 44 )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1461
SELECT ALL - 74 AS col0, 19 + ( - COUNT( * ) ) AS col1
----
-74
18

skipif mysql # not compatible
query II rowsort label-1461
SELECT ALL - 74 AS col0, 19 + ( - COUNT ( * ) ) AS col1
----
-74
18

query I rowsort
SELECT DISTINCT ( - 96 ) * + 41 + + 53
----
-3883

onlyif mysql # aggregate syntax: 
query I rowsort label-1463
SELECT DISTINCT CASE COUNT( * ) WHEN - 23 + + ( 44 ) THEN 45 + 54 END * 22 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1463
SELECT DISTINCT CASE COUNT ( * ) WHEN - 23 + + ( 44 ) THEN 45 + 54 END * 22 AS col2
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1464
SELECT CAST( NULL AS DECIMAL ) * 54 * + - 2 / + 2
----
NULL

skipif mysql # not compatible
query I rowsort label-1464
SELECT CAST ( NULL AS REAL ) * 54 * + - 2 / + 2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1465
SELECT ALL - CASE + - 57 WHEN + 60 * - COUNT( * ) - - 74 THEN + 3 WHEN + 34 - + 41 THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1465
SELECT ALL - CASE + - 57 WHEN + 60 * - COUNT ( * ) - - 74 THEN + 3 WHEN + 34 - + 41 THEN NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1466
SELECT + 47 DIV + + MIN( DISTINCT + - 69 )
----
0

skipif mysql # not compatible
query I rowsort label-1466
SELECT + 47 / + + MIN ( DISTINCT + - 69 )
----
0

query I rowsort
SELECT ALL - 74 * + - 90 - - 3 AS col2
----
6663

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1468
SELECT ALL - 36 DIV - 24 * CASE 18 WHEN + COUNT( * ) * 10 THEN CASE - 46 WHEN + 37 + - CAST( NULL AS SIGNED ) THEN + CAST( NULL AS SIGNED ) END WHEN 69 THEN NULL ELSE ( - 1 ) + - 1 DIV + 81 END
----
-1

skipif mysql # not compatible
query I rowsort label-1468
SELECT ALL - 36 / - 24 * CASE 18 WHEN + COUNT ( * ) * 10 THEN CASE - 46 WHEN + 37 + - CAST ( NULL AS INTEGER ) THEN + CAST ( NULL AS INTEGER ) END WHEN 69 THEN NULL ELSE ( - 1 ) + - 1 / + 81 END
----
-1

query I rowsort
SELECT + 74 * 87
----
6438

query I rowsort
SELECT 4 / CASE 33 WHEN ( - 82 ) THEN 73 * 62 + - 22 * 69 ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1471
SELECT - COALESCE ( + MAX( + + 20 ), 46 * ( - 73 ) ) + - 53 AS col0
----
-73

skipif mysql # not compatible
query I rowsort label-1471
SELECT - COALESCE ( + MAX ( + + 20 ), 46 * ( - 73 ) ) + - 53 AS col0
----
-73

query I rowsort
SELECT ALL + + 42 + - 25
----
17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1473
SELECT - COALESCE ( 8, 98 - CAST( 52 AS SIGNED ) ) * 96 + - 83
----
-851

skipif mysql # not compatible
query I rowsort label-1473
SELECT - COALESCE ( 8, 98 - CAST ( 52 AS INTEGER ) ) * 96 + - 83
----
-851

onlyif mysql # aggregate syntax: 
query I rowsort label-1474
SELECT + COALESCE ( - ( - ( 66 ) ), COUNT( ALL 25 ) * - 41 ) AS col1
----
66

skipif mysql # not compatible
query I rowsort label-1474
SELECT + COALESCE ( - ( - ( 66 ) ), COUNT ( ALL 25 ) * - 41 ) AS col1
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-1475
SELECT ALL - 73 + CASE COUNT( * ) WHEN 43 THEN NULL WHEN COALESCE ( + 49, 55 + - 0 ) THEN NULL ELSE + 27 END
----
-46

skipif mysql # not compatible
query I rowsort label-1475
SELECT ALL - 73 + CASE COUNT ( * ) WHEN 43 THEN NULL WHEN COALESCE ( + 49, 55 + - 0 ) THEN NULL ELSE + 27 END
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-1476
SELECT ALL - + 29 + - MIN( DISTINCT - - 46 ) * - 90
----
4111

skipif mysql # not compatible
query I rowsort label-1476
SELECT ALL - + 29 + - MIN ( DISTINCT - - 46 ) * - 90
----
4111

query I rowsort
SELECT DISTINCT + + 67 * 73
----
4891

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1478
SELECT ALL + COUNT( * ) + + - ( - - CAST( - CAST( + 80 AS SIGNED ) AS SIGNED ) )
----
81

skipif mysql # not compatible
query I rowsort label-1478
SELECT ALL + COUNT ( * ) + + - ( - - CAST ( - CAST ( + 80 AS INTEGER ) AS INTEGER ) )
----
81

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

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

query I rowsort
SELECT DISTINCT + - 0 + - 64
----
-64

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1483
SELECT DISTINCT - 65 DIV - MAX( + 55 )
----
1

skipif mysql # not compatible
query I rowsort label-1483
SELECT DISTINCT - 65 / - MAX ( + 55 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1484
SELECT DISTINCT + 10 + - - COUNT( * ) + - 53 + + 65 * 57 * + 99 AS col1
----
366753

skipif mysql # not compatible
query I rowsort label-1484
SELECT DISTINCT + 10 + - - COUNT ( * ) + - 53 + + 65 * 57 * + 99 AS col1
----
366753

onlyif mysql # aggregate syntax: 
query I rowsort label-1485
SELECT ALL COUNT( ALL 98 ) - 89 * + ( - 10 ) * - 65
----
-57849

skipif mysql # not compatible
query I rowsort label-1485
SELECT ALL COUNT ( ALL 98 ) - 89 * + ( - 10 ) * - 65
----
-57849

query I rowsort
SELECT DISTINCT 13 * + 42 * + - 87
----
-47502

query I rowsort
SELECT ALL - 47 * 21 AS col2
----
-987

onlyif mysql # aggregate syntax: 
query I rowsort label-1488
SELECT 91 + COUNT( + 11 ) AS col2
----
92

skipif mysql # not compatible
query I rowsort label-1488
SELECT 91 + COUNT ( + 11 ) AS col2
----
92

onlyif mysql # DIV for integer division: 
query I rowsort label-1489
SELECT 94 DIV + 95 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1489
SELECT 94 / + 95 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1490
SELECT 30 * + CASE - CAST( - 0 AS SIGNED ) WHEN + COALESCE ( + ( MIN( - 7 ) ), 40 * + COUNT( 59 ) ) THEN NULL ELSE - COUNT( * ) END col0
----
-30

skipif mysql # not compatible
query I rowsort label-1490
SELECT 30 * + CASE - CAST ( - 0 AS INTEGER ) WHEN + COALESCE ( + ( MIN ( - 7 ) ), 40 * + COUNT ( 59 ) ) THEN NULL ELSE - COUNT ( * ) END col0
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-1491
SELECT 0 + - + COALESCE ( + 95, + 89 * 77 + + 34 ) + + ( COUNT( * ) - + 96 ) AS col0
----
-190

skipif mysql # not compatible
query I rowsort label-1491
SELECT 0 + - + COALESCE ( + 95, + 89 * 77 + + 34 ) + + ( COUNT ( * ) - + 96 ) AS col0
----
-190

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

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

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

skipif mysql # not compatible
query I rowsort label-1493
SELECT COUNT ( * ) + + + 5 AS col0
----
6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1494
SELECT DISTINCT + 76 * NULLIF ( - MAX( ALL + + 43 ), + COALESCE ( - 90, 4 * + 8 ) + 74 ) DIV COUNT( * )
----
-3268

skipif mysql # not compatible
query I rowsort label-1494
SELECT DISTINCT + 76 * NULLIF ( - MAX ( ALL + + 43 ), + COALESCE ( - 90, 4 * + 8 ) + 74 ) / COUNT ( * )
----
-3268

query I rowsort
SELECT 26 + - 16 * + 9 + - 26 AS col2
----
-144

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1496
SELECT NULLIF ( + 19, + 98 * - + 3 + - 72 ) * + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1496
SELECT NULLIF ( + 19, + 98 * - + 3 + - 72 ) * + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1497
SELECT - + CASE 67 WHEN 82 THEN + 7 - 62 ELSE NULL END / COUNT( * ) + 23 / COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1497
SELECT - + CASE 67 WHEN 82 THEN + 7 - 62 ELSE NULL END / COUNT ( * ) + 23 / COUNT ( * ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1498
SELECT - 72 + 22 DIV + - 16 + + ( 61 ) * COUNT( * )
----
-12

skipif mysql # not compatible
query I rowsort label-1498
SELECT - 72 + 22 / + - 16 + + ( 61 ) * COUNT ( * )
----
-12

query I rowsort
SELECT DISTINCT + 63 * - 50 - 44
----
-3194

query I rowsort
SELECT ALL 55 + - - 86 AS col1
----
141

query I rowsort
SELECT + 38 * 73
----
2774

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1502
SELECT ALL + CAST( NULL AS SIGNED ) + + 66 / - 3 * + 28 + + 14 / 17 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1502
SELECT ALL + CAST ( NULL AS INTEGER ) + + 66 / - 3 * + 28 + + 14 / 17 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1503
SELECT + CASE 84 WHEN + NULLIF ( - 45, 13 - CAST( NULL AS SIGNED ) * 37 ) - + 48 * - 12 THEN + 79 * ( 60 ) WHEN 6 - + 0 THEN NULL WHEN ( - COUNT( * ) ) THEN NULL ELSE 45 END AS col2
----
45

skipif mysql # not compatible
query I rowsort label-1503
SELECT + CASE 84 WHEN + NULLIF ( - 45, 13 - CAST ( NULL AS INTEGER ) * 37 ) - + 48 * - 12 THEN + 79 * ( 60 ) WHEN 6 - + 0 THEN NULL WHEN ( - COUNT ( * ) ) THEN NULL ELSE 45 END AS col2
----
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1504
SELECT DISTINCT CAST( NULL AS SIGNED ) + - 22 + + 21 / + + CAST( - 44 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1504
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - 22 + + 21 / + + CAST ( - 44 AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1505
SELECT DISTINCT NULLIF ( - - MAX( ALL 85 ), - COUNT( * ) ) + + 42
----
127

skipif mysql # not compatible
query I rowsort label-1505
SELECT DISTINCT NULLIF ( - - MAX ( ALL 85 ), - COUNT ( * ) ) + + 42
----
127

query I rowsort
SELECT 8 * 14
----
112

query I rowsort
SELECT + 11 * + + 16 * + 16 * + CASE + 46 WHEN + 77 THEN - 79 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1508
SELECT ALL - CAST( + COALESCE ( - 85, - 60 ) AS SIGNED ) DIV + 30 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-1508
SELECT ALL - CAST ( + COALESCE ( - 85, - 60 ) AS INTEGER ) / + 30 AS col2
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1509
SELECT COUNT( * ) + 71 * + NULLIF ( - CAST( - 69 AS SIGNED ), 3 + + 35 ) + COUNT( * )
----
4901

skipif mysql # not compatible
query I rowsort label-1509
SELECT COUNT ( * ) + 71 * + NULLIF ( - CAST ( - 69 AS INTEGER ), 3 + + 35 ) + COUNT ( * )
----
4901

onlyif mysql # aggregate syntax: 
query I rowsort label-1510
SELECT - MAX( + 95 ) * - 85
----
8075

skipif mysql # not compatible
query I rowsort label-1510
SELECT - MAX ( + 95 ) * - 85
----
8075

query II rowsort
SELECT 92, ( 4 ) AS col2
----
92
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1512
SELECT - 60 * 58 / - - CASE 2 WHEN + + AVG ( + 44 ) * + COUNT( * ) THEN + CAST( COUNT( * ) AS SIGNED ) WHEN 42 / 92 THEN NULL ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1512
SELECT - 60 * 58 / - - CASE 2 WHEN + + AVG ( + 44 ) * + COUNT ( * ) THEN + CAST ( COUNT ( * ) AS INTEGER ) WHEN 42 / 92 THEN NULL ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT ALL - CASE 89 WHEN + + 22 THEN + - 26 END * - 8
----
NULL

query I rowsort
SELECT - 78 + 48 AS col0
----
-30

query I rowsort
SELECT DISTINCT 84 - - + 59 - COALESCE ( + - 76, + 57 ) * - 23 * - 64
----
112015

query I rowsort
SELECT - 54 + + 49 AS col2
----
-5

query I rowsort
SELECT ALL - 61 * 1 AS col0
----
-61

query I rowsort
SELECT + 24 * - 69 AS col1
----
-1656

query I rowsort
SELECT - 24 + NULLIF ( - - 15, - + 50 - - ( 88 ) ) + 56
----
47

onlyif mysql # DIV for integer division: 
query I rowsort label-1520
SELECT - 83 DIV + 43 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-1520
SELECT - 83 / + 43 AS col0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1521
SELECT ALL CASE WHEN NOT 54 > ( 85 / + CAST( NULL AS SIGNED ) ) THEN - 50 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1521
SELECT ALL CASE WHEN NOT 54 > ( 85 / + CAST ( NULL AS INTEGER ) ) THEN - 50 END
----
NULL

query II rowsort
SELECT ALL 58 * - - 94 * 36 AS col1, 97
----
196272
97

query I rowsort
SELECT - 64 * - 88
----
5632

onlyif mysql # DIV for integer division: 
query I rowsort label-1524
SELECT ALL - NULLIF ( - - ( 63 ), + 25 - - 81 * 78 ) DIV - 46 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1524
SELECT ALL - NULLIF ( - - ( 63 ), + 25 - - 81 * 78 ) / - 46 AS col1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1525
SELECT - - CAST( NULL AS SIGNED ) - - 84 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1525
SELECT - - CAST ( NULL AS INTEGER ) - - 84 AS col0
----
NULL

query I rowsort
SELECT ALL + 33 * 90 + - 4 + - + 90
----
2876

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1528
SELECT DISTINCT - - 94 * 48 * CAST( NULL AS SIGNED ) * 95 / - 62 + 2 + - 15 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1528
SELECT DISTINCT - - 94 * 48 * CAST ( NULL AS INTEGER ) * 95 / - 62 + 2 + - 15 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1529
SELECT ALL + 54 * + 95 + - 88 + 43 * 88 * - 75 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1529
SELECT ALL + 54 * + 95 + - 88 + 43 * 88 * - 75 + - CAST ( NULL AS INTEGER )
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1531
SELECT + CASE + + COALESCE ( 61, - - COUNT( * ) ) WHEN - COUNT( * ) THEN COUNT( * ) WHEN 5 * 10 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1531
SELECT + CASE + + COALESCE ( 61, - - COUNT ( * ) ) WHEN - COUNT ( * ) THEN COUNT ( * ) WHEN 5 * 10 THEN NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1532
SELECT DISTINCT - 68 * - - CAST( NULL AS SIGNED ) + - CASE + - 45 WHEN + COUNT( * ) THEN 5 * ( ( - 32 ) ) END * 37 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1532
SELECT DISTINCT - 68 * - - CAST ( NULL AS INTEGER ) + - CASE + - 45 WHEN + COUNT ( * ) THEN 5 * ( ( - 32 ) ) END * 37 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1533
SELECT - 74 DIV COUNT( * ) + + - 79 - - 95
----
-58

skipif mysql # not compatible
query I rowsort label-1533
SELECT - 74 / COUNT ( * ) + + - 79 - - 95
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-1534
SELECT + - 51 + + 89 * + COUNT( ALL + 35 )
----
38

skipif mysql # not compatible
query I rowsort label-1534
SELECT + - 51 + + 89 * + COUNT ( ALL + 35 )
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-1535
SELECT DISTINCT - + 41 * + MAX( DISTINCT + 64 ) AS col1
----
-2624

skipif mysql # not compatible
query I rowsort label-1535
SELECT DISTINCT - + 41 * + MAX ( DISTINCT + 64 ) AS col1
----
-2624

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1536
SELECT ALL + - CASE 15 WHEN - 59 THEN + CAST( NULL AS SIGNED ) WHEN + MAX( DISTINCT + 50 ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1536
SELECT ALL + - CASE 15 WHEN - 59 THEN + CAST ( NULL AS INTEGER ) WHEN + MAX ( DISTINCT + 50 ) THEN NULL END
----
NULL

query I rowsort
SELECT DISTINCT 68 * 84 - + + 76
----
5636

onlyif mysql # DIV for integer division: 
query I rowsort label-1538
SELECT + 37 + 58 - + ( 19 ) + - - 35 + COALESCE ( 69, 54 DIV - 42 ) col2
----
180

skipif mysql # not compatible
query I rowsort label-1538
SELECT + 37 + 58 - + ( 19 ) + - - 35 + COALESCE ( 69, 54 / - 42 ) col2
----
180

onlyif mysql # DIV for integer division: 
query II rowsort label-1539
SELECT ALL + 40, + 95 DIV - 78 AS col2
----
40
-1

skipif mysql # not compatible
query II rowsort label-1539
SELECT ALL + 40, + 95 / - 78 AS col2
----
40
-1

query I rowsort
SELECT + 13 + - - 33 AS col0
----
46

query I rowsort
SELECT + 30 * + + 9
----
270

query I rowsort
SELECT - 7 * + + 95 col2
----
-665

query I rowsort
SELECT + 77 + + - 61 * 6
----
-289

onlyif mysql # DIV for integer division: 
query II rowsort label-1544
SELECT - 69, 65 DIV + 42 AS col0
----
-69
1

skipif mysql # not compatible
query II rowsort label-1544
SELECT - 69, 65 / + 42 AS col0
----
-69
1

query II rowsort
SELECT DISTINCT 21, 75 AS col0
----
21
75

onlyif mysql # aggregate syntax: 
query I rowsort label-1546
SELECT ALL - NULLIF ( - COUNT( * ), + CASE - + 29 WHEN + - 96 * + + 65 * 34 THEN NULL ELSE + ( - 25 ) * - 75 END ) * 29 AS col0
----
29

skipif mysql # not compatible
query I rowsort label-1546
SELECT ALL - NULLIF ( - COUNT ( * ), + CASE - + 29 WHEN + - 96 * + + 65 * 34 THEN NULL ELSE + ( - 25 ) * - 75 END ) * 29 AS col0
----
29

query II rowsort
SELECT DISTINCT 78 AS col2, - 44 AS col0
----
78
-44

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

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

query I rowsort
SELECT DISTINCT - 3 + 68
----
65

query I rowsort
SELECT - 23 + + ( - - 12 )
----
-11

query I rowsort
SELECT ALL 29 * 1
----
29

query I rowsort
SELECT + 35 * + 3 AS col1
----
105

query II rowsort
SELECT 21 AS col2, 0 * + + 59 AS col1
----
21
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1554
SELECT ALL + 58 + 25 - + AVG ( - 57 ) * + - COUNT( * ) + - 34 * CASE - 17 WHEN - 17 * NULLIF ( ( 5 ), - 91 / 39 ) THEN + CASE - 83 WHEN 3 + - 8 THEN CASE 24 WHEN - 92 + 38 THEN MIN( + 36 ) WHEN ( 89 ) THEN NULL WHEN + 8 THEN + 44 + - 69 END WHEN CAST( + MAX( 35 ) AS SIGNED ) THEN NULL END END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1554
SELECT ALL + 58 + 25 - + AVG ( - 57 ) * + - COUNT ( * ) + - 34 * CASE - 17 WHEN - 17 * NULLIF ( ( 5 ), - 91 / 39 ) THEN + CASE - 83 WHEN 3 + - 8 THEN CASE 24 WHEN - 92 + 38 THEN MIN ( + 36 ) WHEN ( 89 ) THEN NULL WHEN + 8 THEN + 44 + - 69 END WHEN CAST ( + MAX ( 35 ) AS INTEGER ) THEN NULL END END col2
----
NULL

query I rowsort
SELECT + 28 + + - 89 AS col1
----
-61

onlyif mysql # aggregate syntax: 
query II rowsort label-1556
SELECT - ( + 93 ) - + 29 * + + 84, COUNT( * ) AS col2
----
-2529
1

skipif mysql # not compatible
query II rowsort label-1556
SELECT - ( + 93 ) - + 29 * + + 84, COUNT ( * ) AS col2
----
-2529
1

query I rowsort
SELECT + 93 + - 48
----
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1558
SELECT - 63 - - - 75 * 60 * + 6 - + SUM( DISTINCT + CAST( - 57 AS SIGNED ) )
----
-27006

skipif mysql # not compatible
query I rowsort label-1558
SELECT - 63 - - - 75 * 60 * + 6 - + SUM ( DISTINCT + CAST ( - 57 AS INTEGER ) )
----
-27006

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

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

query I rowsort
SELECT - 7 + 15
----
8

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-1561
SELECT + SUM( - + 12 ), CAST( NULL AS DECIMAL ) AS col0
----
-12
NULL

skipif mysql # not compatible
query II rowsort label-1561
SELECT + SUM ( - + 12 ), CAST ( NULL AS REAL ) AS col0
----
-12
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1563
SELECT ALL + COUNT( DISTINCT - ( 83 ) )
----
1

skipif mysql # not compatible
query I rowsort label-1563
SELECT ALL + COUNT ( DISTINCT - ( 83 ) )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-1564
SELECT ALL 6 DIV - - 42 - + - 42 + - - 77 col0
----
119

skipif mysql # not compatible
query I rowsort label-1564
SELECT ALL 6 / - - 42 - + - 42 + - - 77 col0
----
119

query I rowsort
SELECT - - 41 + 33
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-1566
SELECT - MAX( - 9 ) * 41
----
369

skipif mysql # not compatible
query I rowsort label-1566
SELECT - MAX ( - 9 ) * 41
----
369

query I rowsort
SELECT ALL - 61 * 5 AS col2
----
-305

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

skipif mysql # not compatible
query I rowsort label-1568
SELECT - - 55 * - CAST ( NULL AS INTEGER ) * - + 3
----
NULL

query I rowsort
SELECT + + 92 * - + 99
----
-9108

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1570
SELECT + + 91, + COUNT( * ) + - + 61 + - + COALESCE ( + + 30, - 3 ) - 57 * + NULLIF ( NULLIF ( COUNT( * ), - COUNT( * ) + - 98 ) + - COUNT( * ), - 41 / - CAST( NULL AS SIGNED ) ) AS col2
----
91
-90

skipif mysql # not compatible
query II rowsort label-1570
SELECT + + 91, + COUNT ( * ) + - + 61 + - + COALESCE ( + + 30, - 3 ) - 57 * + NULLIF ( NULLIF ( COUNT ( * ), - COUNT ( * ) + - 98 ) + - COUNT ( * ), - 41 / - CAST ( NULL AS INTEGER ) ) AS col2
----
91
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-1571
SELECT DISTINCT - COALESCE ( - - COALESCE ( - - ( - 45 ), - 4 * - - 87 * 92 + 48 * 44, - 15 ), - COUNT( - ( - 88 ) ) * 13 - 66, + COALESCE ( + 80, 64 * + 56 + - 30 ) ) * + MIN( 56 )
----
2520

skipif mysql # not compatible
query I rowsort label-1571
SELECT DISTINCT - COALESCE ( - - COALESCE ( - - ( - 45 ), - 4 * - - 87 * 92 + 48 * 44, - 15 ), - COUNT ( - ( - 88 ) ) * 13 - 66, + COALESCE ( + 80, 64 * + 56 + - 30 ) ) * + MIN ( 56 )
----
2520

onlyif mysql # aggregate syntax: 
query I rowsort label-1572
SELECT DISTINCT + 59 * - 93 * - 20 * + 75 + + 39 + - 73 * 97 * COUNT( * )
----
8223458

skipif mysql # not compatible
query I rowsort label-1572
SELECT DISTINCT + 59 * - 93 * - 20 * + 75 + + 39 + - 73 * 97 * COUNT ( * )
----
8223458

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1573
SELECT DISTINCT - 67 - + 32 DIV - + NULLIF ( - 82, + + ( - COALESCE ( 24, COUNT( * ) ) ) - - 41 ) - + COUNT( * ) * + 22 AS col2
----
-89

skipif mysql # not compatible
query I rowsort label-1573
SELECT DISTINCT - 67 - + 32 / - + NULLIF ( - 82, + + ( - COALESCE ( 24, COUNT ( * ) ) ) - - 41 ) - + COUNT ( * ) * + 22 AS col2
----
-89

query I rowsort
SELECT DISTINCT ( 52 ) - - - 95
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-1575
SELECT 75 * COALESCE ( CASE + 2 WHEN - + COUNT( * ) THEN + + 86 + 62 WHEN - 34 THEN + 43 ELSE - 79 END, + COALESCE ( - 77, - 6 ) ) * 30 AS col1
----
-177750

skipif mysql # not compatible
query I rowsort label-1575
SELECT 75 * COALESCE ( CASE + 2 WHEN - + COUNT ( * ) THEN + + 86 + 62 WHEN - 34 THEN + 43 ELSE - 79 END, + COALESCE ( - 77, - 6 ) ) * 30 AS col1
----
-177750

onlyif mysql # aggregate syntax: 
query I rowsort label-1576
SELECT DISTINCT - COALESCE ( COUNT( - - 64 ), + 54 + - 36, 86 * + + 9 + - 39 * 34 )
----
-1

skipif mysql # not compatible
query I rowsort label-1576
SELECT DISTINCT - COALESCE ( COUNT ( - - 64 ), + 54 + - 36, 86 * + + 9 + - 39 * 34 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1577
SELECT + 95 * - + COUNT( * ) * + 49 - 3
----
-4658

skipif mysql # not compatible
query I rowsort label-1577
SELECT + 95 * - + COUNT ( * ) * + 49 - 3
----
-4658

onlyif mysql # aggregate syntax: 
query I rowsort label-1578
SELECT DISTINCT NULLIF ( + 56, + + SUM( ALL - 52 ) ) * COUNT( * ) + 22
----
78

skipif mysql # not compatible
query I rowsort label-1578
SELECT DISTINCT NULLIF ( + 56, + + SUM ( ALL - 52 ) ) * COUNT ( * ) + 22
----
78

query I rowsort
SELECT ALL - 89 + - 65 * + 6 AS col2
----
-479

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1582
SELECT ALL ( + SUM( + 26 ) ) + 62 AS col2
----
88

skipif mysql # not compatible
query I rowsort label-1582
SELECT ALL ( + SUM ( + 26 ) ) + 62 AS col2
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-1583
SELECT 36 + COUNT( * ) * + - 74
----
-38

skipif mysql # not compatible
query I rowsort label-1583
SELECT 36 + COUNT ( * ) * + - 74
----
-38

query I rowsort
SELECT DISTINCT 88 + + 22
----
110

query I rowsort
SELECT ALL ( - 42 ) + 76 + 68
----
102

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

skipif mysql # not compatible
query I rowsort label-1586
SELECT ALL COUNT ( * ) + 92 - 90
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1587
SELECT DISTINCT CAST( + CAST( + + 30 AS SIGNED ) AS SIGNED ) + - 53 * - + 81 AS col0
----
4323

skipif mysql # not compatible
query I rowsort label-1587
SELECT DISTINCT CAST ( + CAST ( + + 30 AS INTEGER ) AS INTEGER ) + - 53 * - + 81 AS col0
----
4323

onlyif mysql # aggregate syntax: 
query I rowsort label-1588
SELECT COALESCE ( COUNT( * ), NULLIF ( 20, SUM( + - 52 ) ), 56 * 89 - ( ( + 44 ) ) ) * 2 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-1588
SELECT COALESCE ( COUNT ( * ), NULLIF ( 20, SUM ( + - 52 ) ), 56 * 89 - ( ( + 44 ) ) ) * 2 AS col0
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1589
SELECT ( + - 86 ) DIV - ( MIN( - + 63 ) ) + + 23
----
22

skipif mysql # not compatible
query I rowsort label-1589
SELECT ( + - 86 ) / - ( MIN ( - + 63 ) ) + + 23
----
22

query I rowsort
SELECT DISTINCT 17 + + - CASE 69 WHEN 21 THEN NULL ELSE - - 58 END AS col0
----
-41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1591
SELECT ALL 61 + - 47 + - + CAST( - - 74 AS SIGNED ) + SUM( - CAST( NULL AS SIGNED ) ) * - ( + 27 ) * 50 - + 19 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1591
SELECT ALL 61 + - 47 + - + CAST ( - - 74 AS INTEGER ) + SUM ( - CAST ( NULL AS INTEGER ) ) * - ( + 27 ) * 50 - + 19 col0
----
NULL

query I rowsort
SELECT ALL - - 70 + - 42
----
28

onlyif mysql # aggregate syntax: 
query II rowsort label-1593
SELECT NULLIF ( - - COUNT( * ), - 50 ) * + COUNT( * ) + - + 92 AS col2, 76
----
-91
76

skipif mysql # not compatible
query II rowsort label-1593
SELECT NULLIF ( - - COUNT ( * ), - 50 ) * + COUNT ( * ) + - + 92 AS col2, 76
----
-91
76

onlyif mysql # aggregate syntax: 
query I rowsort label-1594
SELECT ALL 10 - + - COUNT( * ) + + 91 + - 43 * - - COUNT( * ) + 79 AS col0
----
138

skipif mysql # not compatible
query I rowsort label-1594
SELECT ALL 10 - + - COUNT ( * ) + + 91 + - 43 * - - COUNT ( * ) + 79 AS col0
----
138

onlyif mysql # aggregate syntax: 
query I rowsort label-1595
SELECT ALL COALESCE ( 5, + + SUM( ALL + - 75 ), + + NULLIF ( + COALESCE ( 10, + 68 ), 54 * 50 + COALESCE ( - COUNT( * ), 7 ) * + 91 ) ) * 34
----
170

skipif mysql # not compatible
query I rowsort label-1595
SELECT ALL COALESCE ( 5, + + SUM ( ALL + - 75 ), + + NULLIF ( + COALESCE ( 10, + 68 ), 54 * 50 + COALESCE ( - COUNT ( * ), 7 ) * + 91 ) ) * 34
----
170

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

skipif mysql # not compatible
query I rowsort label-1596
SELECT DISTINCT - ( - MIN ( 88 ) )
----
88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1597
SELECT ALL - - CASE 74 WHEN + - ( + 28 ) * - 61 * - - 66 * + 90 + + 68 THEN + CAST( NULL AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1597
SELECT ALL - - CASE 74 WHEN + - ( + 28 ) * - 61 * - - 66 * + 90 + + 68 THEN + CAST ( NULL AS INTEGER ) END
----
NULL

query I rowsort
SELECT + 30 * 22 + + 75 AS col0
----
735

onlyif mysql # DIV for integer division: 
query I rowsort label-1599
SELECT + 94 DIV - + 52 - + - 88 AS col0
----
87

skipif mysql # not compatible
query I rowsort label-1599
SELECT + 94 / - + 52 - + - 88 AS col0
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-1600
SELECT ALL - NULLIF ( + COUNT( * ), 34 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-1600
SELECT ALL - NULLIF ( + COUNT ( * ), 34 ) AS col0
----
-1

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

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

query I rowsort
SELECT - 66 * + + 3 * + NULLIF ( + 70, - ( 25 ) ) + - 86 + 87
----
-13859

query II rowsort
SELECT + 46 AS col0, - 58
----
46
-58

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1605
SELECT ALL - NULLIF ( + - COUNT( * ), 87 * + 51 ) * 64 * - 89 - - + COALESCE ( + + 56, 48 ) - + 53 col1
----
-5693

skipif mysql # not compatible
query I rowsort label-1605
SELECT ALL - NULLIF ( + - COUNT ( * ), 87 * + 51 ) * 64 * - 89 - - + COALESCE ( + + 56, 48 ) - + 53 col1
----
-5693

query I rowsort
SELECT 94 + 8
----
102

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1608
SELECT COUNT( * ) - - + 73 * 43 * + NULLIF ( - 64, - COUNT( * ) ) AS col2
----
-200895

skipif mysql # not compatible
query I rowsort label-1608
SELECT COUNT ( * ) - - + 73 * 43 * + NULLIF ( - 64, - COUNT ( * ) ) AS col2
----
-200895

onlyif mysql # aggregate syntax: 
query I rowsort label-1609
SELECT ALL - CASE CASE - 39 WHEN + 26 THEN + CASE - 97 WHEN + 13 * + - COUNT( * ) * ( - ( ( - 34 ) ) ) + MIN( + 48 + + 86 ) THEN + 42 END / - 51 + + 55 END WHEN + 12 * COALESCE ( + 15 * + 40, + 88 ) THEN - 70 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1609
SELECT ALL - CASE CASE - 39 WHEN + 26 THEN + CASE - 97 WHEN + 13 * + - COUNT ( * ) * ( - ( ( - 34 ) ) ) + MIN ( + 48 + + 86 ) THEN + 42 END / - 51 + + 55 END WHEN + 12 * COALESCE ( + 15 * + 40, + 88 ) THEN - 70 END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1610
SELECT 10 * + 21 * COUNT( ALL + 52 ) * 77 + - 57 AS col0, 95 + 26 AS col1
----
16113
121

skipif mysql # not compatible
query II rowsort label-1610
SELECT 10 * + 21 * COUNT ( ALL + 52 ) * 77 + - 57 AS col0, 95 + 26 AS col1
----
16113
121

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

skipif mysql # not compatible
query I rowsort label-1611
SELECT ALL + 57 + COUNT ( * ) AS col2
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-1612
SELECT ALL - COUNT( * ) + + MAX( - + 44 )
----
-45

skipif mysql # not compatible
query I rowsort label-1612
SELECT ALL - COUNT ( * ) + + MAX ( - + 44 )
----
-45

query I rowsort
SELECT ALL ( + 18 ) + - 49 AS col1
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-1614
SELECT ALL - CASE 61 WHEN + + 17 - - - 91 THEN + ( 86 ) * COALESCE ( + MIN( 22 ), - 67 * + 31, 67, CASE CASE 22 WHEN + 8 * 97 + - 52 * + ( - NULLIF ( - MIN( 11 ), - 78 ) * - 51 - 70 / + 17 ) THEN - 26 ELSE NULL END WHEN 8 * - 80 THEN 83 ELSE 47 + COUNT( * ) END / COUNT( * ) ) WHEN AVG ( + COALESCE ( 14, - ( + 2 ) ) ) - COUNT( * ) / + 17 THEN 69 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1614
SELECT ALL - CASE 61 WHEN + + 17 - - - 91 THEN + ( 86 ) * COALESCE ( + MIN ( 22 ), - 67 * + 31, 67, CASE CASE 22 WHEN + 8 * 97 + - 52 * + ( - NULLIF ( - MIN ( 11 ), - 78 ) * - 51 - 70 / + 17 ) THEN - 26 ELSE NULL END WHEN 8 * - 80 THEN 83 ELSE 47 + COUNT ( * ) END / COUNT ( * ) ) WHEN AVG ( + COALESCE ( 14, - ( + 2 ) ) ) - COUNT ( * ) / + 17 THEN 69 END
----
NULL

query I rowsort
SELECT DISTINCT - 76 + + 15 AS col1
----
-61

query I rowsort
SELECT 39 + + 76 AS col0
----
115

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

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

skipif mysql # not compatible
query I rowsort label-1618
SELECT ALL - MAX ( 68 ) + + 12 + - + 17 AS col0
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-1619
SELECT 26 - + - 84 + + ( 33 ) * - 58 * MAX( 10 ) AS col2
----
-19030

skipif mysql # not compatible
query I rowsort label-1619
SELECT 26 - + - 84 + + ( 33 ) * - 58 * MAX ( 10 ) AS col2
----
-19030

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1620
SELECT DISTINCT CAST( NULL AS DECIMAL ) * + - 39
----
NULL

skipif mysql # not compatible
query I rowsort label-1620
SELECT DISTINCT CAST ( NULL AS REAL ) * + - 39
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1621
SELECT COUNT( * ) * - - ( CAST( - 66 AS SIGNED ) ) * - - 4 + - 96
----
-360

skipif mysql # not compatible
query I rowsort label-1621
SELECT COUNT ( * ) * - - ( CAST ( - 66 AS INTEGER ) ) * - - 4 + - 96
----
-360

query I rowsort
SELECT ALL 76 * + 6 AS col2
----
456

query II rowsort
SELECT 46 AS col0, + 4 AS col2
----
46
4

query III rowsort
SELECT ALL + ( 28 ) + - 33 AS col0, 57 AS col2, + COALESCE ( + 65, + - 77 * + 20, - 88 + 73 ) + + 77 AS col0
----
-5
57
142

onlyif mysql # aggregate syntax: 
query I rowsort label-1625
SELECT DISTINCT + COUNT( * ) * 41 + + + 54 - - 81 + ( + + COUNT( * ) ) AS col2
----
177

skipif mysql # not compatible
query I rowsort label-1625
SELECT DISTINCT + COUNT ( * ) * 41 + + + 54 - - 81 + ( + + COUNT ( * ) ) AS col2
----
177

query I rowsort
SELECT ALL + NULLIF ( 68, + ( - 20 ) ) AS col0
----
68

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1627
SELECT ( 66 ) * - 8 AS col0, - CAST( - 26 AS SIGNED ) AS col1
----
-528
26

skipif mysql # not compatible
query II rowsort label-1627
SELECT ( 66 ) * - 8 AS col0, - CAST ( - 26 AS INTEGER ) AS col1
----
-528
26

query I rowsort
SELECT ALL - - ( + 71 ) * + + 97
----
6887

query I rowsort
SELECT - 11 - - 63 + - 86
----
-34

query I rowsort
SELECT 52 * - 26 * ( + 95 ) + - + 14 * 40
----
-129000

onlyif mysql # DIV for integer division: 
query I rowsort label-1631
SELECT - 39 * 7 DIV + - 35 AS col1
----
7

skipif mysql # not compatible
query I rowsort label-1631
SELECT - 39 * 7 / + - 35 AS col1
----
7

onlyif mysql # DIV for integer division: 
query I rowsort label-1632
SELECT DISTINCT + 3 DIV 21
----
0

skipif mysql # not compatible
query I rowsort label-1632
SELECT DISTINCT + 3 / 21
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1633
SELECT COALESCE ( - 97, 7 * + 15, - - 55, 59 ) + - 6 DIV 80 col0
----
-97

skipif mysql # not compatible
query I rowsort label-1633
SELECT COALESCE ( - 97, 7 * + 15, - - 55, 59 ) + - 6 / 80 col0
----
-97

query I rowsort
SELECT + - 64 + 28 * - 6
----
-232

onlyif mysql # aggregate syntax: 
query I rowsort label-1635
SELECT DISTINCT MAX( ALL 40 ) AS col1
----
40

skipif mysql # not compatible
query I rowsort label-1635
SELECT DISTINCT MAX ( ALL 40 ) AS col1
----
40

query I rowsort
SELECT ALL - 78 * + ( 54 ) AS col0
----
-4212

query I rowsort
SELECT + 28 + + NULLIF ( + 43, + + NULLIF ( COALESCE ( 56, 60 + 48 ), - ( ( 48 ) ) * 1 ) ) * - 63 AS col1
----
-2681

query I rowsort
SELECT DISTINCT + 51 * 99 + + 49 - + 2 AS col1
----
5096

query I rowsort
SELECT + 85 * - 39 + 4 AS col1
----
-3311

query II rowsort
SELECT + 55 + - - 27 + - 99 AS col1, 10 AS col2
----
-17
10

query I rowsort
SELECT ALL 24 * 63 AS col1
----
1512

query I rowsort
SELECT - NULLIF ( + 30, - 21 + - 19 )
----
-30

query I rowsort
SELECT - + COALESCE ( - 63, - 85 ) * 60 AS col0
----
3780

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1644
SELECT + COALESCE ( - 47, - + COUNT( - 51 ) ), - CAST( - - NULLIF ( + 40, + 92 * - + 64 ) AS SIGNED ) AS col2
----
-47
-40

skipif mysql # not compatible
query II rowsort label-1644
SELECT + COALESCE ( - 47, - + COUNT ( - 51 ) ), - CAST ( - - NULLIF ( + 40, + 92 * - + 64 ) AS INTEGER ) AS col2
----
-47
-40

query I rowsort
SELECT + 78 * + + 21
----
1638

onlyif mysql # aggregate syntax: 
query I rowsort label-1646
SELECT ALL MIN( DISTINCT - 30 ) * + 85 * - 89 + - COALESCE ( - MAX( ALL - ( - 7 ) ), - 46 * 85 - + 98 ) col1
----
226957

skipif mysql # not compatible
query I rowsort label-1646
SELECT ALL MIN ( DISTINCT - 30 ) * + 85 * - 89 + - COALESCE ( - MAX ( ALL - ( - 7 ) ), - 46 * 85 - + 98 ) col1
----
226957

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1648
SELECT ALL - ( + CASE WHEN NOT - MAX( + 54 ) IN ( + - COUNT( ALL + + 23 ) * + - 96 ) THEN - 19 WHEN - 69 NOT BETWEEN 64 + 20 * 18 AND ( NULL ) THEN + 11 ELSE NULL END ) * + 30 + 2
----
572

skipif mysql # not compatible
query I rowsort label-1648
SELECT ALL - ( + CASE WHEN NOT - MAX ( + 54 ) IN ( + - COUNT ( ALL + + 23 ) * + - 96 ) THEN - 19 WHEN - 69 NOT BETWEEN 64 + 20 * 18 AND ( NULL ) THEN + 11 ELSE NULL END ) * + 30 + 2
----
572

query I rowsort
SELECT NULLIF ( - 27, - 27 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1650
SELECT DISTINCT - COUNT( * ) * 76 + 97 + + 8 AS col0
----
29

skipif mysql # not compatible
query I rowsort label-1650
SELECT DISTINCT - COUNT ( * ) * 76 + 97 + + 8 AS col0
----
29

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1651
SELECT DISTINCT + NULLIF ( - 35, - + CASE 6 WHEN COUNT( * ) + 0 THEN + COALESCE ( + - 50, 94 ) DIV + 64 + 51 * 18 ELSE NULL END + - 27 DIV 83 ) * ( + COALESCE ( - ( 88 ), + 37, 31 ) * 71 ) + 92 DIV 51 AS col1
----
218681

skipif mysql # not compatible
query I rowsort label-1651
SELECT DISTINCT + NULLIF ( - 35, - + CASE 6 WHEN COUNT ( * ) + 0 THEN + COALESCE ( + - 50, 94 ) / + 64 + 51 * 18 ELSE NULL END + - 27 / 83 ) * ( + COALESCE ( - ( 88 ), + 37, 31 ) * 71 ) + 92 / 51 AS col1
----
218681

query I rowsort
SELECT - ( + 22 ) * - 21 - - 99
----
561

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1653
SELECT ALL + 99 * + + CAST( 57 AS SIGNED ) * - - MAX( 22 ), 32 * - CAST( + + 94 AS SIGNED ) + 47 + - COUNT( * ) AS col1
----
124146
-2962

skipif mysql # not compatible
query II rowsort label-1653
SELECT ALL + 99 * + + CAST ( 57 AS INTEGER ) * - - MAX ( 22 ), 32 * - CAST ( + + 94 AS INTEGER ) + 47 + - COUNT ( * ) AS col1
----
124146
-2962

onlyif mysql # DIV for integer division: 
query I rowsort label-1654
SELECT - 64 DIV - 50 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1654
SELECT - 64 / - 50 AS col2
----
1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1656
SELECT DISTINCT 17 * - COUNT( * ) - 71 AS col1
----
-88

skipif mysql # not compatible
query I rowsort label-1656
SELECT DISTINCT 17 * - COUNT ( * ) - 71 AS col1
----
-88

query I rowsort
SELECT ALL - 9 - - - 57
----
-66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1658
SELECT DISTINCT - - ( ( + 75 ) ) - - + CAST( NULL AS SIGNED ) - + 18 * + CASE + COUNT( * ) WHEN 78 THEN NULL WHEN + + 55 THEN + CAST( + 35 AS SIGNED ) END * - 40 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1658
SELECT DISTINCT - - ( ( + 75 ) ) - - + CAST ( NULL AS INTEGER ) - + 18 * + CASE + COUNT ( * ) WHEN 78 THEN NULL WHEN + + 55 THEN + CAST ( + 35 AS INTEGER ) END * - 40 AS col0
----
NULL

query I rowsort
SELECT - 9 + - 39
----
-48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1660
SELECT + - COUNT( * ) + + + 86 + + + COUNT( * ) * 71 * 80 * 3 DIV - 27 + + ( + 57 ) * - SUM( ALL - 64 * - 40 ) AS col2
----
-146466

skipif mysql # not compatible
query I rowsort label-1660
SELECT + - COUNT ( * ) + + + 86 + + + COUNT ( * ) * 71 * 80 * 3 / - 27 + + ( + 57 ) * - SUM ( ALL - 64 * - 40 ) AS col2
----
-146466

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1661
SELECT + - 79 * NULLIF ( + - CAST( + 75 AS SIGNED ), - 2 ) * 66 * + 28 * SUM( - 25 ) + - 29 * + 93 col0
----
-273737697

skipif mysql # not compatible
query I rowsort label-1661
SELECT + - 79 * NULLIF ( + - CAST ( + 75 AS INTEGER ), - 2 ) * 66 * + 28 * SUM ( - 25 ) + - 29 * + 93 col0
----
-273737697

onlyif mysql # aggregate syntax: 
query I rowsort label-1662
SELECT ALL - 74 * + 80 - + MAX( - NULLIF ( + 75, + 17 + - 66 ) )
----
-5845

skipif mysql # not compatible
query I rowsort label-1662
SELECT ALL - 74 * + 80 - + MAX ( - NULLIF ( + 75, + 17 + - 66 ) )
----
-5845

onlyif mysql # aggregate syntax: 
query I rowsort label-1663
SELECT - - SUM( ALL 76 ) col1
----
76

skipif mysql # not compatible
query I rowsort label-1663
SELECT - - SUM ( ALL 76 ) col1
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-1664
SELECT ALL + NULLIF ( - + 89, - - COUNT( * ) )
----
-89

skipif mysql # not compatible
query I rowsort label-1664
SELECT ALL + NULLIF ( - + 89, - - COUNT ( * ) )
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-1665
SELECT ALL - CASE + 8 WHEN - - 95 + - ( + - ( - - ( + - COUNT( - 54 ) ) ) ) * - + 1 + + 64 THEN NULL WHEN + 92 + - 29 THEN + 29 / 34 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1665
SELECT ALL - CASE + 8 WHEN - - 95 + - ( + - ( - - ( + - COUNT ( - 54 ) ) ) ) * - + 1 + + 64 THEN NULL WHEN + 92 + - 29 THEN + 29 / 34 END AS col0
----
NULL

query I rowsort
SELECT DISTINCT 24 * 5 col0
----
120

query I rowsort
SELECT DISTINCT - 29 * - 40 AS col2
----
1160

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1668
SELECT - - 18 * 63 AS col1, CAST( NULL AS SIGNED )
----
1134
NULL

skipif mysql # not compatible
query II rowsort label-1668
SELECT - - 18 * 63 AS col1, CAST ( NULL AS INTEGER )
----
1134
NULL

query I rowsort
SELECT ALL - - 32 * + 49 + + 32 AS col1
----
1600

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1673
SELECT - CASE - 20 WHEN + COUNT( * ) * + 32 THEN 74 WHEN - + ( + + 8 ) THEN NULL WHEN + 99 THEN + - 8 + 27 END * - 52 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1673
SELECT - CASE - 20 WHEN + COUNT ( * ) * + 32 THEN 74 WHEN - + ( + + 8 ) THEN NULL WHEN + 99 THEN + - 8 + 27 END * - 52 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1674
SELECT + 39 * - CAST( 73 AS SIGNED )
----
-2847

skipif mysql # not compatible
query I rowsort label-1674
SELECT + 39 * - CAST ( 73 AS INTEGER )
----
-2847

query II rowsort
SELECT ALL + 47 + 45 AS col1, 22
----
92
22

query I rowsort
SELECT - + 41 - 30
----
-71

query I rowsort
SELECT ALL + 97 + 10
----
107

onlyif mysql # aggregate syntax: 
query I rowsort label-1678
SELECT + + 92 * SUM( DISTINCT 31 ) col0
----
2852

skipif mysql # not compatible
query I rowsort label-1678
SELECT + + 92 * SUM ( DISTINCT 31 ) col0
----
2852

query I rowsort
SELECT + 54 * + + 97 AS col2
----
5238

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1681
SELECT CAST( + ( + 75 ) AS SIGNED ) col1
----
75

skipif mysql # not compatible
query I rowsort label-1681
SELECT CAST ( + ( + 75 ) AS INTEGER ) col1
----
75

query I rowsort
SELECT + 48 - 72
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-1683
SELECT DISTINCT + CASE - + 79 WHEN + 51 THEN NULL WHEN + + 63 THEN NULL WHEN - - MIN( + 33 ) THEN + 27 * 83 ELSE NULL END / 99 * + 25 + - NULLIF ( 19, 49 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1683
SELECT DISTINCT + CASE - + 79 WHEN + 51 THEN NULL WHEN + + 63 THEN NULL WHEN - - MIN ( + 33 ) THEN + 27 * 83 ELSE NULL END / 99 * + 25 + - NULLIF ( 19, 49 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1684
SELECT ALL - 93 DIV + ( + 83 ) + - 98 AS col2
----
-99

skipif mysql # not compatible
query I rowsort label-1684
SELECT ALL - 93 / + ( + 83 ) + - 98 AS col2
----
-99

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1686
SELECT CAST( ( + - 60 ) AS SIGNED ) AS col1
----
-60

skipif mysql # not compatible
query I rowsort label-1686
SELECT CAST ( ( + - 60 ) AS INTEGER ) AS col1
----
-60

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

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

query I rowsort
SELECT + 88 + + 86
----
174

onlyif mysql # DIV for integer division: 
query I rowsort label-1689
SELECT - 94 * ( 2 ) DIV + 4 - - 15
----
-32

skipif mysql # not compatible
query I rowsort label-1689
SELECT - 94 * ( 2 ) / + 4 - - 15
----
-32

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1691
SELECT - CASE + 93 WHEN + 31 - 69 THEN + COUNT( * ) END * 11 * + 42 + - 51 + - - 30 + 11 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1691
SELECT - CASE + 93 WHEN + 31 - 69 THEN + COUNT ( * ) END * 11 * + 42 + - 51 + - - 30 + 11 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1692
SELECT ALL + MAX( 1 ) * - 15 - CASE - - 12 WHEN - 5 THEN - CASE + 52 WHEN ( - 51 ) * + 18 THEN 98 + 55 WHEN - 63 THEN 28 + + 74 * 53 END / - 34 WHEN 8 THEN 66 END + + AVG ( DISTINCT - 98 ) * 64 - CASE 85 WHEN - 30 THEN - COUNT( * ) ELSE NULL END * - 26
----
NULL

skipif mysql # not compatible
query I rowsort label-1692
SELECT ALL + MAX ( 1 ) * - 15 - CASE - - 12 WHEN - 5 THEN - CASE + 52 WHEN ( - 51 ) * + 18 THEN 98 + 55 WHEN - 63 THEN 28 + + 74 * 53 END / - 34 WHEN 8 THEN 66 END + + AVG ( DISTINCT - 98 ) * 64 - CASE 85 WHEN - 30 THEN - COUNT ( * ) ELSE NULL END * - 26
----
NULL

query I rowsort
SELECT DISTINCT 29 * + 97 col1
----
2813

query I rowsort
SELECT + 58 * + 92 * + - 92 * ( 6 ) col0
----
-2945472

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1695
SELECT - COUNT( * ) + 17 + + + 41 - + 33 + ( - + CAST( NULL AS SIGNED ) ) / + - 19 * + - 69 + - MAX( ALL - 52 ) * 39
----
NULL

skipif mysql # not compatible
query I rowsort label-1695
SELECT - COUNT ( * ) + 17 + + + 41 - + 33 + ( - + CAST ( NULL AS INTEGER ) ) / + - 19 * + - 69 + - MAX ( ALL - 52 ) * 39
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1696
SELECT ALL 17 DIV 49 * + ( + - 78 )
----
0

skipif mysql # not compatible
query I rowsort label-1696
SELECT ALL 17 / 49 * + ( + - 78 )
----
0

query I rowsort
SELECT + 22 * + 77 AS col1
----
1694

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1698
SELECT - + CAST( - 24 AS SIGNED ) * - - ( - 18 )
----
-432

skipif mysql # not compatible
query I rowsort label-1698
SELECT - + CAST ( - 24 AS INTEGER ) * - - ( - 18 )
----
-432

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1699
SELECT + - 89, + CAST( NULL AS SIGNED ) + 24 AS col0
----
-89
NULL

skipif mysql # not compatible
query II rowsort label-1699
SELECT + - 89, + CAST ( NULL AS INTEGER ) + 24 AS col0
----
-89
NULL

query I rowsort
SELECT 72 * + + 27 + - 9
----
1935

query I rowsort
SELECT ALL + - 84 * 99
----
-8316

query I rowsort
SELECT - ( - 94 ) + + - 91 * + 53 AS col2
----
-4729

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1703
SELECT DISTINCT COUNT( * ) col1, - COALESCE ( + 50, + 51, 22 ) * - - 76 + - + ( - COUNT( * ) ) + - - CAST( NULL AS SIGNED ) / - 81 * COUNT( * )
----
1
NULL

skipif mysql # not compatible
query II rowsort label-1703
SELECT DISTINCT COUNT ( * ) col1, - COALESCE ( + 50, + 51, 22 ) * - - 76 + - + ( - COUNT ( * ) ) + - - CAST ( NULL AS INTEGER ) / - 81 * COUNT ( * )
----
1
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1704
SELECT DISTINCT - 75 * 49 * NULLIF ( - - CAST( NULL AS SIGNED ), - 12 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1704
SELECT DISTINCT - 75 * 49 * NULLIF ( - - CAST ( NULL AS INTEGER ), - 12 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1705
SELECT ALL - 2 AS col0, + ( ( + - COUNT( * ) ) ) - 11 AS col1
----
-2
-12

skipif mysql # not compatible
query II rowsort label-1705
SELECT ALL - 2 AS col0, + ( ( + - COUNT ( * ) ) ) - 11 AS col1
----
-2
-12

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1707
SELECT DISTINCT + CASE 56 WHEN ( + + COALESCE ( - + COALESCE ( + SUM( 9 ), 2 * + 54 + + 68, COUNT( * ) + 4 * - 62 ), - 70, 65 + + 16 * 68 ) ) * - CAST( NULL AS SIGNED ) THEN + CAST( NULL AS SIGNED ) ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1707
SELECT DISTINCT + CASE 56 WHEN ( + + COALESCE ( - + COALESCE ( + SUM ( 9 ), 2 * + 54 + + 68, COUNT ( * ) + 4 * - 62 ), - 70, 65 + + 16 * 68 ) ) * - CAST ( NULL AS INTEGER ) THEN + CAST ( NULL AS INTEGER ) ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1708
SELECT + COUNT( * ) + COALESCE ( COUNT( * ), 36, + - 13 * - ( 22 ) ) + - 3 * - 96
----
290

skipif mysql # not compatible
query I rowsort label-1708
SELECT + COUNT ( * ) + COALESCE ( COUNT ( * ), 36, + - 13 * - ( 22 ) ) + - 3 * - 96
----
290

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

skipif mysql # not compatible
query II rowsort label-1709
SELECT ALL COUNT ( * ) col0, - 16
----
1
-16

query I rowsort
SELECT CASE + ( + COALESCE ( - + 32, 86, + 81 ) ) WHEN 43 THEN + 53 END + 50
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1711
SELECT ALL - + 4 + + MIN( ALL + 99 ) + + 47 + - 11 DIV - 75
----
142

skipif mysql # not compatible
query I rowsort label-1711
SELECT ALL - + 4 + + MIN ( ALL + 99 ) + + 47 + - 11 / - 75
----
142

onlyif mysql # aggregate syntax: 
query I rowsort label-1712
SELECT 58 - + 46 * - COUNT( * )
----
104

skipif mysql # not compatible
query I rowsort label-1712
SELECT 58 - + 46 * - COUNT ( * )
----
104

query I rowsort
SELECT ALL + 26 + + - 48
----
-22

query I rowsort
SELECT 61 + 15 AS col1
----
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1715
SELECT ALL + - 0 + - CAST( NULL AS SIGNED ) + - 42 * - 89 * + + 34 * - 80 / - 12
----
NULL

skipif mysql # not compatible
query I rowsort label-1715
SELECT ALL + - 0 + - CAST ( NULL AS INTEGER ) + - 42 * - 89 * + + 34 * - 80 / - 12
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1716
SELECT DISTINCT MAX( DISTINCT - ( + 38 ) ) AS col1, CAST( NULL AS SIGNED )
----
-38
NULL

skipif mysql # not compatible
query II rowsort label-1716
SELECT DISTINCT MAX ( DISTINCT - ( + 38 ) ) AS col1, CAST ( NULL AS INTEGER )
----
-38
NULL

query I rowsort
SELECT ALL + 44 + + 32 AS col2
----
76

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1719
SELECT DISTINCT - NULLIF ( - 91, 28 - CAST( NULL AS SIGNED ) ) + - MIN( 90 ) + - 72 * + 69 + - 14 + 81 AS col1
----
-4900

skipif mysql # not compatible
query I rowsort label-1719
SELECT DISTINCT - NULLIF ( - 91, 28 - CAST ( NULL AS INTEGER ) ) + - MIN ( 90 ) + - 72 * + 69 + - 14 + 81 AS col1
----
-4900

query I rowsort
SELECT ALL + 71 + - + 14 * 71 * 7 AS col1
----
-6887

query I rowsort
SELECT 10 * + 4 AS col1
----
40

query I rowsort
SELECT 48 + + - 35 + - 82
----
-69

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

skipif mysql # not compatible
query I rowsort label-1723
SELECT + ( + CAST ( NULL AS REAL ) ) * COUNT ( * ) + + ( - 63 )
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-1724
SELECT 29 DIV - 6, 10 AS col1
----
-4
10

skipif mysql # not compatible
query II rowsort label-1724
SELECT 29 / - 6, 10 AS col1
----
-4
10

onlyif mysql # aggregate syntax: 
query I rowsort label-1725
SELECT - 40 * - - ( + COUNT( * ) ) + 49 + - COUNT( DISTINCT - 92 )
----
8

skipif mysql # not compatible
query I rowsort label-1725
SELECT - 40 * - - ( + COUNT ( * ) ) + 49 + - COUNT ( DISTINCT - 92 )
----
8

query II rowsort
SELECT 48, 7 AS col0
----
48
7

query II rowsort
SELECT ALL - 9 AS col1, NULLIF ( + - 78, + 33 ) col0
----
-9
-78

query II rowsort
SELECT ALL - 80 col1, 91 + 9
----
-80
100

query I rowsort
SELECT CASE - 52 WHEN + + 70 + + 91 THEN - 32 ELSE NULL END / - 54
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1731
SELECT ALL - 93, + MIN( DISTINCT 91 ) AS col2
----
-93
91

skipif mysql # not compatible
query II rowsort label-1731
SELECT ALL - 93, + MIN ( DISTINCT 91 ) AS col2
----
-93
91

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1732
SELECT DISTINCT CAST( + 12 AS SIGNED ) DIV - NULLIF ( 34, + + 0 + 26 + ( + 88 ) ) + 87, - ( - 95 ) AS col0
----
87
95

skipif mysql # not compatible
query II rowsort label-1732
SELECT DISTINCT CAST ( + 12 AS INTEGER ) / - NULLIF ( 34, + + 0 + 26 + ( + 88 ) ) + 87, - ( - 95 ) AS col0
----
87
95

query I rowsort
SELECT 70 + + - 50 col0
----
20

query I rowsort
SELECT DISTINCT 76 * - - 35 AS col1
----
2660

query II rowsort
SELECT 86, - 95 AS col2
----
86
-95

query I rowsort
SELECT 54 * - 57 AS col2
----
-3078

onlyif mysql # aggregate syntax: 
query II rowsort label-1737
SELECT 88 + + COUNT( * ) AS col1, - 27 AS col1
----
89
-27

skipif mysql # not compatible
query II rowsort label-1737
SELECT 88 + + COUNT ( * ) AS col1, - 27 AS col1
----
89
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-1738
SELECT - COUNT( * ) - - COUNT( DISTINCT - 79 ) * + + 32 + - MIN( ALL - 73 ) col1
----
104

skipif mysql # not compatible
query I rowsort label-1738
SELECT - COUNT ( * ) - - COUNT ( DISTINCT - 79 ) * + + 32 + - MIN ( ALL - 73 ) col1
----
104

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1739
SELECT ALL CAST( NULL AS SIGNED ) * 98 * + - 83 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1739
SELECT ALL CAST ( NULL AS INTEGER ) * 98 * + - 83 AS col0
----
NULL

query I rowsort
SELECT - 58 * - - 0
----
0

query I rowsort
SELECT ALL - 46 + + 69
----
23

query II rowsort
SELECT ALL - 83, - 62 AS col0
----
-83
-62

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1743
SELECT COUNT( * ) + + 72 + + 51 DIV + - 80
----
73

skipif mysql # not compatible
query I rowsort label-1743
SELECT COUNT ( * ) + + 72 + + 51 / + - 80
----
73

query I rowsort
SELECT ALL 64 + + + 53
----
117

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1745
SELECT DISTINCT ( NULLIF ( + + 78, - CAST( NULL AS SIGNED ) ) ) + + 92 + + - 24 + + 11 + - ( MIN( 30 ) ) + - 98 - 37 * - SUM( - CAST( NULL AS SIGNED ) ) * 5 * 77 * NULLIF ( 86, + 61 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1745
SELECT DISTINCT ( NULLIF ( + + 78, - CAST ( NULL AS INTEGER ) ) ) + + 92 + + - 24 + + 11 + - ( MIN ( 30 ) ) + - 98 - 37 * - SUM ( - CAST ( NULL AS INTEGER ) ) * 5 * 77 * NULLIF ( 86, + 61 )
----
NULL

query I rowsort
SELECT + COALESCE ( 52, - - 98 + + 79, 59 )
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-1747
SELECT ALL + COUNT( * ) + + + COUNT( * ) + 59 * 35 + 5 * + + 93 * 29
----
15552

skipif mysql # not compatible
query I rowsort label-1747
SELECT ALL + COUNT ( * ) + + + COUNT ( * ) + 59 * 35 + 5 * + + 93 * 29
----
15552

query I rowsort
SELECT 83 * - 67 + + - 59
----
-5620

onlyif mysql # aggregate syntax: 
query I rowsort label-1749
SELECT - 74 * + - COUNT( * ) - - + 33 * - NULLIF ( - + 60, + 37 + 34 * + 49 + ( 60 ) + ( 86 ) ) * + 77
----
152534

skipif mysql # not compatible
query I rowsort label-1749
SELECT - 74 * + - COUNT ( * ) - - + 33 * - NULLIF ( - + 60, + 37 + 34 * + 49 + ( 60 ) + ( 86 ) ) * + 77
----
152534

query I rowsort
SELECT ALL + 70 + + 93 AS col1
----
163

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1751
SELECT CAST( NULL AS DECIMAL ) * - - 94 * - 38 * + - 30
----
NULL

skipif mysql # not compatible
query I rowsort label-1751
SELECT CAST ( NULL AS REAL ) * - - 94 * - 38 * + - 30
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1752
SELECT ALL - CASE + COUNT( * ) WHEN - CASE + 81 WHEN + 54 * - + 74 - - 7 THEN CAST( NULL AS SIGNED ) + - 56 WHEN - - 28 THEN NULL WHEN + + 72 THEN NULL ELSE NULL END THEN NULL WHEN + MAX( ALL - 13 ) + 70 THEN ( 29 ) END * - NULLIF ( 64 + + SUM( ALL - 76 ) * - 57, 62 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1752
SELECT ALL - CASE + COUNT ( * ) WHEN - CASE + 81 WHEN + 54 * - + 74 - - 7 THEN CAST ( NULL AS INTEGER ) + - 56 WHEN - - 28 THEN NULL WHEN + + 72 THEN NULL ELSE NULL END THEN NULL WHEN + MAX ( ALL - 13 ) + 70 THEN ( 29 ) END * - NULLIF ( 64 + + SUM ( ALL - 76 ) * - 57, 62 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1753
SELECT ALL - COUNT( * ) * 33 * + 62 * - ( - 98 ), 52 + + 10 + + 4 col1
----
-200508
66

skipif mysql # not compatible
query II rowsort label-1753
SELECT ALL - COUNT ( * ) * 33 * + 62 * - ( - 98 ), 52 + + 10 + + 4 col1
----
-200508
66

onlyif mysql # aggregate syntax: 
query II rowsort label-1754
SELECT ALL + 39 - 86 AS col0, + 42 * + 55 + NULLIF ( 53, - COUNT( * ) )
----
-47
2363

skipif mysql # not compatible
query II rowsort label-1754
SELECT ALL + 39 - 86 AS col0, + 42 * + 55 + NULLIF ( 53, - COUNT ( * ) )
----
-47
2363

query I rowsort
SELECT 55 * - 13 * + 31 * - - 23 AS col2
----
-509795

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1756
SELECT 29 - + + 95 + - - 39 / CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1756
SELECT 29 - + + 95 + - - 39 / CAST ( NULL AS INTEGER ) AS col2
----
NULL

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

query I rowsort
SELECT ALL + 40 * + 60 * - 63 * + - 14
----
2116800

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

skipif mysql # not compatible
query I rowsort label-1759
SELECT DISTINCT - COUNT ( DISTINCT + 26 ) AS col0
----
-1

query I rowsort
SELECT DISTINCT + 22 * 25 AS col1
----
550

onlyif mysql # aggregate syntax: 
query I rowsort label-1761
SELECT ALL + 50 * + - MIN( 44 )
----
-2200

skipif mysql # not compatible
query I rowsort label-1761
SELECT ALL + 50 * + - MIN ( 44 )
----
-2200

onlyif mysql # aggregate syntax: 
query I rowsort label-1762
SELECT MAX( DISTINCT - + 36 ) - + 53 * + - 31
----
1607

skipif mysql # not compatible
query I rowsort label-1762
SELECT MAX ( DISTINCT - + 36 ) - + 53 * + - 31
----
1607

onlyif mysql # aggregate syntax: 
query I rowsort label-1763
SELECT ALL + COUNT( * ) * - COALESCE ( + 79, + - 14, - + 79 * + - ( + 87 ) + - - 18 ) AS col0
----
-79

skipif mysql # not compatible
query I rowsort label-1763
SELECT ALL + COUNT ( * ) * - COALESCE ( + 79, + - 14, - + 79 * + - ( + 87 ) + - - 18 ) AS col0
----
-79

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1764
SELECT 50 DIV - 70 + - - ( - ( - 1 ) ) AS col1, - 92 + - 62 * + + 21 * + CASE - 32 WHEN + - 20 THEN SUM( - 64 ) ELSE + 23 - - COUNT( 6 ) DIV 53 END - + 81 * 6 AS col1
----
1
-30524

skipif mysql # not compatible
query II rowsort label-1764
SELECT 50 / - 70 + - - ( - ( - 1 ) ) AS col1, - 92 + - 62 * + + 21 * + CASE - 32 WHEN + - 20 THEN SUM ( - 64 ) ELSE + 23 - - COUNT ( 6 ) / 53 END - + 81 * 6 AS col1
----
1
-30524

query I rowsort
SELECT 14 * + - 3 - + 18 AS col1
----
-60

query I rowsort
SELECT DISTINCT + 23 * + - 55 AS col0
----
-1265

onlyif mysql # aggregate syntax: 
query I rowsort label-1767
SELECT CASE - MAX( 39 ) WHEN + + COUNT( * ) * - 33 THEN + 84 WHEN + 85 * 60 THEN NULL ELSE NULL END / + 82 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1767
SELECT CASE - MAX ( 39 ) WHEN + + COUNT ( * ) * - 33 THEN + 84 WHEN + 85 * 60 THEN NULL ELSE NULL END / + 82 AS col2
----
NULL

query I rowsort
SELECT 63 + - 15 + + 34
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-1769
SELECT + COUNT( * ) * 29 * - 70 + 78 + - 74 * + 88 + - + 18 - 78 * - + NULLIF ( COUNT( * ), 54 + + 24 ) AS col1
----
-8404

skipif mysql # not compatible
query I rowsort label-1769
SELECT + COUNT ( * ) * 29 * - 70 + 78 + - 74 * + 88 + - + 18 - 78 * - + NULLIF ( COUNT ( * ), 54 + + 24 ) AS col1
----
-8404

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1770
SELECT - + 81 DIV + 91 AS col0, ( - + 61 ) * - CAST( NULL AS SIGNED ) col2
----
0
NULL

skipif mysql # not compatible
query II rowsort label-1770
SELECT - + 81 / + 91 AS col0, ( - + 61 ) * - CAST ( NULL AS INTEGER ) col2
----
0
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1771
SELECT ALL - 3 * 47 + - CAST( NULL AS SIGNED ) + - 17 * + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-1771
SELECT ALL - 3 * 47 + - CAST ( NULL AS INTEGER ) + - 17 * + COUNT ( * )
----
NULL

query I rowsort
SELECT ALL 38 * + 75 + - - 36
----
2886

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1774
SELECT + - CAST( ( - COUNT( * ) ) AS SIGNED ) + + 35 * + + COALESCE ( COUNT( * ), - + 15 * - 86, - 35 ) * 43 * + 1 * 70 AS col0
----
105351

skipif mysql # not compatible
query I rowsort label-1774
SELECT + - CAST ( ( - COUNT ( * ) ) AS INTEGER ) + + 35 * + + COALESCE ( COUNT ( * ), - + 15 * - 86, - 35 ) * 43 * + 1 * 70 AS col0
----
105351

onlyif mysql # DIV for integer division: 
query I rowsort label-1775
SELECT + 92 * - CASE - + 70 WHEN 70 + - 48 + + - 45 * - 52 THEN NULL ELSE - 14 DIV + 84 END
----
0

skipif mysql # not compatible
query I rowsort label-1775
SELECT + 92 * - CASE - + 70 WHEN 70 + - 48 + + - 45 * - 52 THEN NULL ELSE - 14 / + 84 END
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1776
SELECT ALL MAX( - 61 ) + - ( NULLIF ( + MAX( DISTINCT + CAST( NULL AS DECIMAL ) ), + 43 * - 4 + - 74 + - 45 - + COUNT( * ) * + 32 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1776
SELECT ALL MAX ( - 61 ) + - ( NULLIF ( + MAX ( DISTINCT + CAST ( NULL AS REAL ) ), + 43 * - 4 + - 74 + - 45 - + COUNT ( * ) * + 32 ) )
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1778
SELECT 54 * + CAST( 44 AS SIGNED ) + - 13 + + + 63 * CASE CAST( NULL AS SIGNED ) WHEN + - 28 + + + 65 THEN + 97 ELSE NULL END / + 19 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1778
SELECT 54 * + CAST ( 44 AS INTEGER ) + - 13 + + + 63 * CASE CAST ( NULL AS INTEGER ) WHEN + - 28 + + + 65 THEN + 97 ELSE NULL END / + 19 AS col2
----
NULL

query I rowsort
SELECT + + ( - 83 ) + - - 70 * - + 8 col2
----
-643

onlyif mysql # aggregate syntax: 
query I rowsort label-1780
SELECT DISTINCT 37 * + MIN( 66 ) col0
----
2442

skipif mysql # not compatible
query I rowsort label-1780
SELECT DISTINCT 37 * + MIN ( 66 ) col0
----
2442

onlyif mysql # aggregate syntax: 
query I rowsort label-1781
SELECT DISTINCT - 40 + ( - 41 ) - 97 + + COUNT( * ) * + 24
----
-154

skipif mysql # not compatible
query I rowsort label-1781
SELECT DISTINCT - 40 + ( - 41 ) - 97 + + COUNT ( * ) * + 24
----
-154

onlyif mysql # aggregate syntax: 
query I rowsort label-1782
SELECT DISTINCT + COUNT( + + 86 ) - - 41 AS col0
----
42

skipif mysql # not compatible
query I rowsort label-1782
SELECT DISTINCT + COUNT ( + + 86 ) - - 41 AS col0
----
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1783
SELECT - COALESCE ( - COUNT( * ), - 67 * CASE MIN( DISTINCT - + 81 ) WHEN - - CASE 27 WHEN CAST( NULL AS SIGNED ) * - 48 + + + COUNT( * ) + + + SUM( 68 ) THEN NULL WHEN + COUNT( * ) THEN + 0 ELSE NULL END * 6 THEN - 37 * 70 ELSE + 90 + - 74 END * 35 ) + 67 AS col1
----
68

skipif mysql # not compatible
query I rowsort label-1783
SELECT - COALESCE ( - COUNT ( * ), - 67 * CASE MIN ( DISTINCT - + 81 ) WHEN - - CASE 27 WHEN CAST ( NULL AS INTEGER ) * - 48 + + + COUNT ( * ) + + + SUM ( 68 ) THEN NULL WHEN + COUNT ( * ) THEN + 0 ELSE NULL END * 6 THEN - 37 * 70 ELSE + 90 + - 74 END * 35 ) + 67 AS col1
----
68

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1785
SELECT + 89 + - + 81 + + 86 + 14 + + + 42 * - COUNT( * ) col2
----
66

skipif mysql # not compatible
query I rowsort label-1785
SELECT + 89 + - + 81 + + 86 + 14 + + + 42 * - COUNT ( * ) col2
----
66

query I rowsort
SELECT + 66 + - 19 * + ( 12 )
----
-162

query I rowsort
SELECT ALL - 8 - - 0 * - 85 AS col1
----
-8

query I rowsort
SELECT DISTINCT 89 * - 49 * + 35 * + 94
----
-14347690

query I rowsort
SELECT DISTINCT NULLIF ( NULLIF ( + - 12, - + 1 ), ( 28 ) / + 49 ) AS col0
----
-12

onlyif mysql # DIV for integer division: 
query II rowsort label-1790
SELECT DISTINCT 6 * 55 DIV - - 52 AS col2, + 49 + + 54
----
6
103

skipif mysql # not compatible
query II rowsort label-1790
SELECT DISTINCT 6 * 55 / - - 52 AS col2, + 49 + + 54
----
6
103

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1792
SELECT ALL NULLIF ( - + ( 99 ), + 82 / - + 99 + - 16 + - + COUNT( * ) ) col2
----
-99

skipif mysql # not compatible
query I rowsort label-1792
SELECT ALL NULLIF ( - + ( 99 ), + 82 / - + 99 + - 16 + - + COUNT ( * ) ) col2
----
-99

query I rowsort
SELECT - 35 + - 54
----
-89

onlyif mysql # aggregate syntax: 
query II rowsort label-1794
SELECT ALL COUNT( * ) AS col0, - 27 + ( - 97 )
----
1
-124

skipif mysql # not compatible
query II rowsort label-1794
SELECT ALL COUNT ( * ) AS col0, - 27 + ( - 97 )
----
1
-124

onlyif mysql # DIV for integer division: 
query I rowsort label-1795
SELECT + 47 DIV - 9 AS col1
----
-5

skipif mysql # not compatible
query I rowsort label-1795
SELECT + 47 / - 9 AS col1
----
-5

query II rowsort
SELECT DISTINCT + NULLIF ( 70, + - 5 ), 72 AS col0
----
70
72

onlyif mysql # aggregate syntax: 
query I rowsort label-1797
SELECT + COUNT( * ) * - COALESCE ( ( - 42 ), - - 51 ) + - 79 + + 13
----
-24

skipif mysql # not compatible
query I rowsort label-1797
SELECT + COUNT ( * ) * - COALESCE ( ( - 42 ), - - 51 ) + - 79 + + 13
----
-24

onlyif mysql # DIV for integer division: 
query I rowsort label-1798
SELECT ALL 44 DIV 91 + + 61 + + + 57 AS col0
----
118

skipif mysql # not compatible
query I rowsort label-1798
SELECT ALL 44 / 91 + + 61 + + + 57 AS col0
----
118

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

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

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

query I rowsort
SELECT + ( - - 15 ) * + - 80 + - 81
----
-1281

onlyif mysql # aggregate syntax: 
query II rowsort label-1802
SELECT DISTINCT 56 * 61 + COUNT( * ) AS col0, - 42
----
3417
-42

skipif mysql # not compatible
query II rowsort label-1802
SELECT DISTINCT 56 * 61 + COUNT ( * ) AS col0, - 42
----
3417
-42

query I rowsort
SELECT - - 51 * 32 AS col0
----
1632

onlyif mysql # aggregate syntax: 
query I rowsort label-1804
SELECT ALL - COALESCE ( - CASE + COUNT( DISTINCT + - 76 ) WHEN COUNT( * ) * + + COUNT( * ) + - 55 - + 66 * - - 29 / - 27 THEN + 50 ELSE NULL END, + 82 * - - 80, 86 + - 21 ) * + COUNT( * ) + 35
----
-6525

skipif mysql # not compatible
query I rowsort label-1804
SELECT ALL - COALESCE ( - CASE + COUNT ( DISTINCT + - 76 ) WHEN COUNT ( * ) * + + COUNT ( * ) + - 55 - + 66 * - - 29 / - 27 THEN + 50 ELSE NULL END, + 82 * - - 80, 86 + - 21 ) * + COUNT ( * ) + 35
----
-6525

query I rowsort
SELECT DISTINCT + + COALESCE ( + 26, - - 45 - 78 ) AS col2
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-1806
SELECT ALL - + 85 * - 76 * + 22 * + - COUNT( * ) * - - 91 + - + 1
----
-12932921

skipif mysql # not compatible
query I rowsort label-1806
SELECT ALL - + 85 * - 76 * + 22 * + - COUNT ( * ) * - - 91 + - + 1
----
-12932921

query II rowsort
SELECT + 37 AS col2, 50 AS col2
----
37
50

query I rowsort
SELECT - 69 * 65 * - - 32 + - - 30
----
-143490

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1810
SELECT DISTINCT + - 67 * + 71 / - 12 + 6 + AVG ( ALL - - 13 ) + - - 8 * - + MAX( - - 19 ) * + COUNT( * ) * COUNT( * ) / + 70 * - 0 * - CASE - 34 WHEN - 73 THEN - CAST( 47 AS SIGNED ) / + 60 WHEN MAX( + NULLIF ( 57, 69 ) ) / - 77 THEN 80 * 85 ELSE NULL END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1810
SELECT DISTINCT + - 67 * + 71 / - 12 + 6 + AVG ( ALL - - 13 ) + - - 8 * - + MAX ( - - 19 ) * + COUNT ( * ) * COUNT ( * ) / + 70 * - 0 * - CASE - 34 WHEN - 73 THEN - CAST ( 47 AS INTEGER ) / + 60 WHEN MAX ( + NULLIF ( 57, 69 ) ) / - 77 THEN 80 * 85 ELSE NULL END col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1811
SELECT - 14 * + 11 - + 4 * - ( 47 ) + ( + 18 ) * + COUNT( * ) + + COUNT( * ) - - 30 AS col2
----
83

skipif mysql # not compatible
query I rowsort label-1811
SELECT - 14 * + 11 - + 4 * - ( 47 ) + ( + 18 ) * + COUNT ( * ) + + COUNT ( * ) - - 30 AS col2
----
83

query I rowsort
SELECT ALL 81 * - 21 + - 30
----
-1731

onlyif mysql # aggregate syntax: 
query I rowsort label-1813
SELECT ALL + + MAX( 65 ) AS col1
----
65

skipif mysql # not compatible
query I rowsort label-1813
SELECT ALL + + MAX ( 65 ) AS col1
----
65

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

query II rowsort
SELECT ALL 9 * + 71 + 47 AS col2, ( - NULLIF ( - 63, + 68 ) ) * + - 20 + + 2
----
686
-1258

onlyif mysql # aggregate syntax: 
query I rowsort label-1816
SELECT DISTINCT + COUNT( * ) * + 39 - + 61
----
-22

skipif mysql # not compatible
query I rowsort label-1816
SELECT DISTINCT + COUNT ( * ) * + 39 - + 61
----
-22

onlyif mysql # aggregate syntax: 
query II rowsort label-1817
SELECT ALL 83, - NULLIF ( 50, + 66 - - - 57 / COUNT( * ) * - COUNT( * ) ) * + 94 + - 93 + 28 AS col1
----
83
-4765

skipif mysql # not compatible
query II rowsort label-1817
SELECT ALL 83, - NULLIF ( 50, + 66 - - - 57 / COUNT ( * ) * - COUNT ( * ) ) * + 94 + - 93 + 28 AS col1
----
83
-4765

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

skipif mysql # not compatible
query I rowsort label-1818
SELECT DISTINCT - COUNT ( * ) / + + 96
----
0

query I rowsort
SELECT - 72 * 59 * - 28
----
118944

query I rowsort
SELECT DISTINCT 1 * + 74
----
74

query I rowsort
SELECT DISTINCT + 67 * - 70
----
-4690

query I rowsort
SELECT + 42 * + - 40 * - 63 col2
----
105840

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1824
SELECT DISTINCT 89 DIV + + CAST( 53 AS SIGNED ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1824
SELECT DISTINCT 89 / + + CAST ( 53 AS INTEGER ) AS col2
----
1

query II rowsort
SELECT + 12 * - 56 AS col0, - 21 AS col1
----
-672
-21

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

query I rowsort
SELECT DISTINCT 35 + 1
----
36

query I rowsort
SELECT ALL 94 + - 62
----
32

onlyif mysql # DIV for integer division: 
query I rowsort label-1829
SELECT 92 DIV - 48 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-1829
SELECT 92 / - 48 AS col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1830
SELECT 63 - 15 * COUNT( * ) - - NULLIF ( + CAST( - 58 AS SIGNED ), + COUNT( * ) + + + 40 ) AS col2
----
-10

skipif mysql # not compatible
query I rowsort label-1830
SELECT 63 - 15 * COUNT ( * ) - - NULLIF ( + CAST ( - 58 AS INTEGER ), + COUNT ( * ) + + + 40 ) AS col2
----
-10

query I rowsort
SELECT ALL 88 * - 34 AS col1
----
-2992

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1832
SELECT ALL 58 + - CASE NULLIF ( - 1, 36 - - 65 * + + CAST( NULL AS SIGNED ) ) WHEN - + 20 + + CASE + 89 WHEN + - 15 THEN NULL ELSE + + 13 + + + 46 - 90 * 14 / 26 END THEN 61 * 63 END - 37
----
NULL

skipif mysql # not compatible
query I rowsort label-1832
SELECT ALL 58 + - CASE NULLIF ( - 1, 36 - - 65 * + + CAST ( NULL AS INTEGER ) ) WHEN - + 20 + + CASE + 89 WHEN + - 15 THEN NULL ELSE + + 13 + + + 46 - 90 * 14 / 26 END THEN 61 * 63 END - 37
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1833
SELECT ALL 34 + - 43 + + 71 - - - ( + 78 ) DIV 36
----
60

skipif mysql # not compatible
query I rowsort label-1833
SELECT ALL 34 + - 43 + + 71 - - - ( + 78 ) / 36
----
60

query I rowsort
SELECT ALL - 51 + + 99 + + 37 AS col1
----
85

query I rowsort
SELECT ALL 52 * - + 36 * - 69 AS col2
----
129168

onlyif mysql # aggregate syntax: 
query I rowsort label-1836
SELECT ALL + - ( + + 50 ) + COUNT( * ) * - ( SUM( + - 39 ) ) col2
----
-11

skipif mysql # not compatible
query I rowsort label-1836
SELECT ALL + - ( + + 50 ) + COUNT ( * ) * - ( SUM ( + - 39 ) ) col2
----
-11

query I rowsort
SELECT 14 * - 15 - + 27 AS col1
----
-237

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1838
SELECT ALL - - 70 + + 46 - 26 * + + COALESCE ( - - 16, 1 + - COUNT( * ), 59 + + - 73, + - 93 + COUNT( - + CAST( NULL AS SIGNED ) ) + - + 13 ) * - - 60
----
-24844

skipif mysql # not compatible
query I rowsort label-1838
SELECT ALL - - 70 + + 46 - 26 * + + COALESCE ( - - 16, 1 + - COUNT ( * ), 59 + + - 73, + - 93 + COUNT ( - + CAST ( NULL AS INTEGER ) ) + - + 13 ) * - - 60
----
-24844

query I rowsort
SELECT + 18 + + 37 * + - 33
----
-1203

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1840
SELECT ALL 1 - - 38 - 15 * + 33 * CAST( - - SUM( - 28 ) AS SIGNED ) * + - 29 * - 37 - + 57 * + 82
----
14867145

skipif mysql # not compatible
query I rowsort label-1840
SELECT ALL 1 - - 38 - 15 * + 33 * CAST ( - - SUM ( - 28 ) AS INTEGER ) * + - 29 * - 37 - + 57 * + 82
----
14867145

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1842
SELECT ALL + + CAST( - 46 AS SIGNED ) - 15
----
-61

skipif mysql # not compatible
query I rowsort label-1842
SELECT ALL + + CAST ( - 46 AS INTEGER ) - 15
----
-61

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1844
SELECT - 67 + + 23 + 19 * + 64, - 96 DIV - 58 + + - 78 AS col1
----
1172
-77

skipif mysql # not compatible
query II rowsort label-1844
SELECT - 67 + + 23 + 19 * + 64, - 96 / - 58 + + - 78 AS col1
----
1172
-77

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1845
SELECT 37 + - - NULLIF ( 62, - + 23 ), + 36 + - CAST( NULL AS SIGNED ) AS col1
----
99
NULL

skipif mysql # not compatible
query II rowsort label-1845
SELECT 37 + - - NULLIF ( 62, - + 23 ), + 36 + - CAST ( NULL AS INTEGER ) AS col1
----
99
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1846
SELECT + 34 DIV + + 82 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1846
SELECT + 34 / + + 82 AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1847
SELECT + ( + 22 ) * - 29 DIV COUNT( * ) AS col0
----
-638

skipif mysql # not compatible
query I rowsort label-1847
SELECT + ( + 22 ) * - 29 / COUNT ( * ) AS col0
----
-638

onlyif mysql # aggregate syntax: 
query I rowsort label-1848
SELECT + 70 * + COUNT( * ) + SUM( + 89 ) + - MAX( 64 ) + + + ( - 63 )
----
32

skipif mysql # not compatible
query I rowsort label-1848
SELECT + 70 * + COUNT ( * ) + SUM ( + 89 ) + - MAX ( 64 ) + + + ( - 63 )
----
32

query I rowsort
SELECT 39 + + 25 AS col0
----
64

query I rowsort
SELECT 48 * + 10 * + 65
----
31200

query I rowsort
SELECT 54 - - 1
----
55

query I rowsort
SELECT 58 * - 0
----
0

query I rowsort
SELECT 64 + + CASE + 66 WHEN - 12 THEN NULL WHEN + 14 / 67 - - 26 THEN NULL ELSE - + 86 - - 96 END + - 94 + + - 68 AS col0
----
-88

onlyif mysql # DIV for integer division: 
query I rowsort label-1854
SELECT 38 DIV 63 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1854
SELECT 38 / 63 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1855
SELECT 48 * + - CASE + 75 WHEN - COUNT( * ) THEN NULL WHEN COUNT( * ) THEN + MIN( DISTINCT - - 99 ) ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1855
SELECT 48 * + - CASE + 75 WHEN - COUNT ( * ) THEN NULL WHEN COUNT ( * ) THEN + MIN ( DISTINCT - - 99 ) ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1856
SELECT 83 + - COUNT( * ) * - COALESCE ( + 82, - 84 ) * - 29 * - COUNT( * ) AS col2
----
2461

skipif mysql # not compatible
query I rowsort label-1856
SELECT 83 + - COUNT ( * ) * - COALESCE ( + 82, - 84 ) * - 29 * - COUNT ( * ) AS col2
----
2461

onlyif mysql # aggregate syntax: 
query I rowsort label-1857
SELECT 54 + + COUNT( * ) AS col1
----
55

skipif mysql # not compatible
query I rowsort label-1857
SELECT 54 + + COUNT ( * ) AS col1
----
55

query I rowsort
SELECT DISTINCT 12 * NULLIF ( - 11, - 36 ) AS col1
----
-132

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1860
SELECT 73 + COUNT( DISTINCT - + 45 )
----
74

skipif mysql # not compatible
query I rowsort label-1860
SELECT 73 + COUNT ( DISTINCT - + 45 )
----
74

query I rowsort
SELECT ALL - 19 + + 42
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-1862
SELECT DISTINCT 82 + + 23 + COUNT( * ) - - 77 + + 14 * - + 70 AS col1
----
-797

skipif mysql # not compatible
query I rowsort label-1862
SELECT DISTINCT 82 + + 23 + COUNT ( * ) - - 77 + + 14 * - + 70 AS col1
----
-797

onlyif mysql # aggregate syntax: 
query I rowsort label-1863
SELECT ALL NULLIF ( 30, - 83 * + + 34 + 80 ) + + + ( + MIN( ALL - - 87 ) ) AS col0
----
117

skipif mysql # not compatible
query I rowsort label-1863
SELECT ALL NULLIF ( 30, - 83 * + + 34 + 80 ) + + + ( + MIN ( ALL - - 87 ) ) AS col0
----
117

onlyif mysql # aggregate syntax: 
query II rowsort label-1864
SELECT DISTINCT 32 col0, COALESCE ( MIN( DISTINCT - - 44 ), - 81 )
----
32
44

skipif mysql # not compatible
query II rowsort label-1864
SELECT DISTINCT 32 col0, COALESCE ( MIN ( DISTINCT - - 44 ), - 81 )
----
32
44

onlyif mysql # aggregate syntax: 
query I rowsort label-1865
SELECT ALL + 38 + 82 + + 91 + + + 87 * MIN( DISTINCT - - 48 )
----
4387

skipif mysql # not compatible
query I rowsort label-1865
SELECT ALL + 38 + 82 + + 91 + + + 87 * MIN ( DISTINCT - - 48 )
----
4387

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1867
SELECT + 49 + - CAST( - + 33 AS SIGNED )
----
82

skipif mysql # not compatible
query I rowsort label-1867
SELECT + 49 + - CAST ( - + 33 AS INTEGER )
----
82

query I rowsort
SELECT ALL - 63 - - 32 col1
----
-31

query I rowsort
SELECT 27 * + + ( + - 88 )
----
-2376

onlyif mysql # aggregate syntax: 
query I rowsort label-1870
SELECT ALL 28 * 3 * COALESCE ( 72, - COUNT( - + 48 ), CASE 65 WHEN 64 THEN - - ( - + 68 ) END )
----
6048

skipif mysql # not compatible
query I rowsort label-1870
SELECT ALL 28 * 3 * COALESCE ( 72, - COUNT ( - + 48 ), CASE 65 WHEN 64 THEN - - ( - + 68 ) END )
----
6048

onlyif mysql # aggregate syntax: 
query I rowsort label-1871
SELECT 66 / 6 + - + MAX( DISTINCT - - 74 ) * + 13 + - 84 + + - 66 + - COUNT( * ) * + - COUNT( * ) * - + CASE + + 97 WHEN COUNT( * ) / + - 40 THEN + + ( 88 ) WHEN + 9 / + 39 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1871
SELECT 66 / 6 + - + MAX ( DISTINCT - - 74 ) * + 13 + - 84 + + - 66 + - COUNT ( * ) * + - COUNT ( * ) * - + CASE + + 97 WHEN COUNT ( * ) / + - 40 THEN + + ( 88 ) WHEN + 9 / + 39 THEN NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1872
SELECT DISTINCT - CAST( 94 AS SIGNED )
----
-94

skipif mysql # not compatible
query I rowsort label-1872
SELECT DISTINCT - CAST ( 94 AS INTEGER )
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-1873
SELECT ALL - COUNT( * ) - + - 93 + 91 + - 82 - 63 AS col1
----
38

skipif mysql # not compatible
query I rowsort label-1873
SELECT ALL - COUNT ( * ) - + - 93 + 91 + - 82 - 63 AS col1
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-1874
SELECT DISTINCT COUNT( * ) * + + 98 * MIN( ALL - 19 ) + - - SUM( + 88 ) AS col2
----
-1774

skipif mysql # not compatible
query I rowsort label-1874
SELECT DISTINCT COUNT ( * ) * + + 98 * MIN ( ALL - 19 ) + - - SUM ( + 88 ) AS col2
----
-1774

onlyif mysql # aggregate syntax: 
query I rowsort label-1875
SELECT + 91 * - 24 * COUNT( * ) * COUNT( * )
----
-2184

skipif mysql # not compatible
query I rowsort label-1875
SELECT + 91 * - 24 * COUNT ( * ) * COUNT ( * )
----
-2184

query I rowsort
SELECT - + 82 * 74 * + 51 + - 36 + + 36 AS col1
----
-309468

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1877
SELECT CAST( NULLIF ( 85, ( + NULLIF ( - + 38, + 53 ) ) ) AS SIGNED )
----
85

skipif mysql # not compatible
query I rowsort label-1877
SELECT CAST ( NULLIF ( 85, ( + NULLIF ( - + 38, + 53 ) ) ) AS INTEGER )
----
85

query I rowsort
SELECT ALL - 62 - - 38 * 38
----
1382

query I rowsort
SELECT CASE 29 WHEN + 89 THEN NULL WHEN 24 + - 19 THEN + + 0 WHEN - 62 * - 32 THEN + 55 ELSE + - COALESCE ( - 45, - - 1 ) END * + 83 - + - 99
----
3834

query I rowsort
SELECT NULLIF ( COALESCE ( + + 77, - - 73, - - 49 * 6 ), - 76 ) col0
----
77

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1881
SELECT + 67 * COUNT( * ) + + ( 59 ) - - COUNT( * ) + - - 74 DIV + NULLIF ( - 76, 13 * - - NULLIF ( + + 42, + 2 ) ) * + 90 AS col2, - 39 * + CASE 17 WHEN - 63 THEN 7 - + 88 END AS col0
----
127
NULL

skipif mysql # not compatible
query II rowsort label-1881
SELECT + 67 * COUNT ( * ) + + ( 59 ) - - COUNT ( * ) + - - 74 / + NULLIF ( - 76, 13 * - - NULLIF ( + + 42, + 2 ) ) * + 90 AS col2, - 39 * + CASE 17 WHEN - 63 THEN 7 - + 88 END AS col0
----
127
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1882
SELECT ALL + 49 + - 75 * + - 94 * - - CAST( NULL AS SIGNED ) / + 60
----
NULL

skipif mysql # not compatible
query I rowsort label-1882
SELECT ALL + 49 + - 75 * + - 94 * - - CAST ( NULL AS INTEGER ) / + 60
----
NULL

query II rowsort
SELECT + 93 AS col2, - 93
----
93
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-1884
SELECT DISTINCT - SUM( ALL 38 ) AS col1
----
-38

skipif mysql # not compatible
query I rowsort label-1884
SELECT DISTINCT - SUM ( ALL 38 ) AS col1
----
-38

query I rowsort
SELECT - NULLIF ( 38, + AVG ( 70 ) ) col1
----
-38

query I rowsort
SELECT ALL - 50 + + 60 col0
----
10

query I rowsort
SELECT - NULLIF ( 21, + + 61 ) AS col0
----
-21

onlyif mysql # aggregate syntax: 
query II rowsort label-1888
SELECT 83 * - + COUNT( * ), + 92 AS col2
----
-83
92

skipif mysql # not compatible
query II rowsort label-1888
SELECT 83 * - + COUNT ( * ), + 92 AS col2
----
-83
92

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1890
SELECT - 60 AS col1, COUNT( 18 ) col0
----
-60
1

skipif mysql # not compatible
query II rowsort label-1890
SELECT - 60 AS col1, COUNT ( 18 ) col0
----
-60
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1891
SELECT DISTINCT MAX( - - 66 ) AS col0
----
66

skipif mysql # not compatible
query I rowsort label-1891
SELECT DISTINCT MAX ( - - 66 ) AS col0
----
66

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1892
SELECT ALL - 23 + - 41 - CAST( NULL AS DECIMAL ) * + COUNT( * ) * - + 28 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1892
SELECT ALL - 23 + - 41 - CAST ( NULL AS REAL ) * + COUNT ( * ) * - + 28 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1893
SELECT 11, + 70 + + COALESCE ( - - MIN( 36 ), - 9 * - 60 * + ( + 17 ) ) AS col1
----
11
106

skipif mysql # not compatible
query II rowsort label-1893
SELECT 11, + 70 + + COALESCE ( - - MIN ( 36 ), - 9 * - 60 * + ( + 17 ) ) AS col1
----
11
106

query I rowsort
SELECT ALL 82 + + 22
----
104

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1895
SELECT ALL CASE ( 71 ) WHEN 30 + 23 - - CAST( - 75 AS SIGNED ) + - - 39 THEN + 29 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1895
SELECT ALL CASE ( 71 ) WHEN 30 + 23 - - CAST ( - 75 AS INTEGER ) + - - 39 THEN + 29 ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1896
SELECT - CASE MIN( + 8 ) WHEN - 19 THEN 42 WHEN 72 * + 11 THEN NULL END / ( 3 ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1896
SELECT - CASE MIN ( + 8 ) WHEN - 19 THEN 42 WHEN 72 * + 11 THEN NULL END / ( 3 ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1897
SELECT ALL + SUM( DISTINCT - 31 ) + + - 24 col0
----
-55

skipif mysql # not compatible
query I rowsort label-1897
SELECT ALL + SUM ( DISTINCT - 31 ) + + - 24 col0
----
-55

query I rowsort
SELECT ALL - 87 + + 41 AS col0
----
-46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1899
SELECT DISTINCT CASE + + 69 WHEN - - 46 THEN - - 58 + - CAST( NULL AS SIGNED ) / + - 75 * - ( - - 98 ) + COUNT( * ) WHEN 87 * + 56 THEN 37 END * 55 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1899
SELECT DISTINCT CASE + + 69 WHEN - - 46 THEN - - 58 + - CAST ( NULL AS INTEGER ) / + - 75 * - ( - - 98 ) + COUNT ( * ) WHEN 87 * + 56 THEN 37 END * 55 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1900
SELECT 35 AS col2, - CAST( + 49 AS SIGNED )
----
35
-49

skipif mysql # not compatible
query II rowsort label-1900
SELECT 35 AS col2, - CAST ( + 49 AS INTEGER )
----
35
-49

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1902
SELECT - ( CAST( - 95 AS SIGNED ) ) * - 89 col0
----
-8455

skipif mysql # not compatible
query I rowsort label-1902
SELECT - ( CAST ( - 95 AS INTEGER ) ) * - 89 col0
----
-8455

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1903
SELECT - 93 + + - 66 - - COUNT( ALL 5 ) * + 16 + - 97 * + CAST( NULL AS DECIMAL ) + MAX( DISTINCT + 32 ) + 7 + + 73 * - 94
----
NULL

skipif mysql # not compatible
query I rowsort label-1903
SELECT - 93 + + - 66 - - COUNT ( ALL 5 ) * + 16 + - 97 * + CAST ( NULL AS REAL ) + MAX ( DISTINCT + 32 ) + 7 + + 73 * - 94
----
NULL

query I rowsort
SELECT - 99 * + 73
----
-7227

query I rowsort
SELECT ALL - 88 - - 62 + - - 61
----
35

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1907
SELECT - 73 - 88 + + - 10 / + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1907
SELECT - 73 - 88 + + - 10 / + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1908
SELECT ALL NULLIF ( ( + - MIN( ALL 0 ) ), + + 70 + + COUNT( * ) ) * 20 + 99
----
99

skipif mysql # not compatible
query I rowsort label-1908
SELECT ALL NULLIF ( ( + - MIN ( ALL 0 ) ), + + 70 + + COUNT ( * ) ) * 20 + 99
----
99

query I rowsort
SELECT - 86 + - - 30 AS col0
----
-56

query I rowsort
SELECT ALL - + 87 - + + 93 + - 31 AS col1
----
-211

query I rowsort
SELECT - 0 + - - ( + 40 )
----
40

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

query I rowsort
SELECT + + 46 * - + NULLIF ( + 92, + - 11 * + + 9 )
----
-4232

query I rowsort
SELECT ALL + 40 * - + ( - 18 ) - - + 19
----
739

query II rowsort
SELECT ALL + 52 AS col2, - 16 col2
----
52
-16

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

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

query II rowsort
SELECT 17 col1, - 73 + 42 * 16
----
17
599

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

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

query I rowsort
SELECT + 58 * + + ( + 36 )
----
2088

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1920
SELECT + NULLIF ( COUNT( * ), + MIN( + 10 ) ) + - 23 DIV 20
----
0

skipif mysql # not compatible
query I rowsort label-1920
SELECT + NULLIF ( COUNT ( * ), + MIN ( + 10 ) ) + - 23 / 20
----
0

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

query I rowsort
SELECT DISTINCT 46 * + 13
----
598

onlyif mysql # aggregate syntax: 
query II rowsort label-1923
SELECT + 16 + + - 53 AS col2, 93 * - 3 * 86 * + - COUNT( * ) AS col2
----
-37
23994

skipif mysql # not compatible
query II rowsort label-1923
SELECT + 16 + + - 53 AS col2, 93 * - 3 * 86 * + - COUNT ( * ) AS col2
----
-37
23994

onlyif mysql # aggregate syntax: 
query I rowsort label-1924
SELECT + - 19 * 78 * + - 84 * - COUNT( * ) + + 97 AS col1
----
-124391

skipif mysql # not compatible
query I rowsort label-1924
SELECT + - 19 * 78 * + - 84 * - COUNT ( * ) + + 97 AS col1
----
-124391

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1926
SELECT ALL + CASE + 58 WHEN + + COUNT( * ) THEN - 47 DIV 35 ELSE - 93 END * + 27
----
-2511

skipif mysql # not compatible
query I rowsort label-1926
SELECT ALL + CASE + 58 WHEN + + COUNT ( * ) THEN - 47 / 35 ELSE - 93 END * + 27
----
-2511

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1928
SELECT ALL - 27 * COUNT( * ) + - - 98 * + ( 46 ) AS col1
----
4481

skipif mysql # not compatible
query I rowsort label-1928
SELECT ALL - 27 * COUNT ( * ) + - - 98 * + ( 46 ) AS col1
----
4481

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1929
SELECT ALL CAST( NULL AS DECIMAL ) * - 64 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1929
SELECT ALL CAST ( NULL AS REAL ) * - 64 col0
----
NULL

query I rowsort
SELECT ALL 10 * - 65 + + - 81 + - 54
----
-785

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1932
SELECT DISTINCT - MAX( + + NULLIF ( + 56, + 43 ) ) * - - 4 * - 12 * + + 62 + CAST( - COUNT( * ) AS SIGNED )
----
166655

skipif mysql # not compatible
query I rowsort label-1932
SELECT DISTINCT - MAX ( + + NULLIF ( + 56, + 43 ) ) * - - 4 * - 12 * + + 62 + CAST ( - COUNT ( * ) AS INTEGER )
----
166655

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1933
SELECT + COUNT( * ) * - COALESCE ( - - COUNT( * ), 61 DIV - + 7 * - 87 * + 30 - + + COALESCE ( + COUNT( * ), + - 88 ) * + 70 - + - 53 + - + 23 ) * - + 48 + + 0 + - 74 AS col1
----
-26

skipif mysql # not compatible
query I rowsort label-1933
SELECT + COUNT ( * ) * - COALESCE ( - - COUNT ( * ), 61 / - + 7 * - 87 * + 30 - + + COALESCE ( + COUNT ( * ), + - 88 ) * + 70 - + - 53 + - + 23 ) * - + 48 + + 0 + - 74 AS col1
----
-26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1934
SELECT + NULLIF ( 77, + 24 * - NULLIF ( 73, + COUNT( * ) + + + 22 + - 89 ) * + + CAST( NULL AS SIGNED ) ) AS col2
----
77

skipif mysql # not compatible
query I rowsort label-1934
SELECT + NULLIF ( 77, + 24 * - NULLIF ( 73, + COUNT ( * ) + + + 22 + - 89 ) * + + CAST ( NULL AS INTEGER ) ) AS col2
----
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1935
SELECT 18 * - + SUM( + - 33 ) + ( CAST( + 27 AS SIGNED ) ) * COUNT( * ) AS col0
----
621

skipif mysql # not compatible
query I rowsort label-1935
SELECT 18 * - + SUM ( + - 33 ) + ( CAST ( + 27 AS INTEGER ) ) * COUNT ( * ) AS col0
----
621

query I rowsort
SELECT + 53 + - + 73 * + 19
----
-1334

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1937
SELECT ALL 97 * COALESCE ( + 16, + - 10 DIV + + 87 ) + + COUNT( * ) AS col1
----
1553

skipif mysql # not compatible
query I rowsort label-1937
SELECT ALL 97 * COALESCE ( + 16, + - 10 / + + 87 ) + + COUNT ( * ) AS col1
----
1553

query I rowsort
SELECT - ( + 65 ) + 81
----
16

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1939
SELECT - 23 + 40 - 66 AS col0, + 21 + + 83 AS col2, 50 * 41 + + CAST( NULL AS SIGNED ) + - 33 AS col2
----
-49
104
NULL

skipif mysql # not compatible
query III rowsort label-1939
SELECT - 23 + 40 - 66 AS col0, + 21 + + 83 AS col2, 50 * 41 + + CAST ( NULL AS INTEGER ) + - 33 AS col2
----
-49
104
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1940
SELECT ALL 29 - 58 AS col0, COUNT( * ) col0
----
-29
1

skipif mysql # not compatible
query II rowsort label-1940
SELECT ALL 29 - 58 AS col0, COUNT ( * ) col0
----
-29
1

query I rowsort
SELECT - 99 + - + 15 col2
----
-114

query I rowsort
SELECT ALL + 56 - - 93 * 33 - + 75
----
3050

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1944
SELECT + MIN( DISTINCT + 58 ) + - 28 - - 1 + + NULLIF ( - + SUM( 27 ), - + 48 )
----
4

skipif mysql # not compatible
query I rowsort label-1944
SELECT + MIN ( DISTINCT + 58 ) + - 28 - - 1 + + NULLIF ( - + SUM ( 27 ), - + 48 )
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-1945
SELECT DISTINCT COALESCE ( - COUNT( * ), MIN( ( 61 ) ) * - 7 + 79 + 34 + + - 24 * 28 + 69 ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-1945
SELECT DISTINCT COALESCE ( - COUNT ( * ), MIN ( ( 61 ) ) * - 7 + 79 + 34 + + - 24 * 28 + 69 ) col0
----
-1

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1947
SELECT ALL - 36 - - MIN( DISTINCT COALESCE ( 12, - 22 ) ) + + 93 * - 5 AS col1
----
-489

skipif mysql # not compatible
query I rowsort label-1947
SELECT ALL - 36 - - MIN ( DISTINCT COALESCE ( 12, - 22 ) ) + + 93 * - 5 AS col1
----
-489

query I rowsort
SELECT ALL - - 51 - + 8 - - - 7
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-1949
SELECT - - 92 * - COUNT( DISTINCT 38 ) AS col1
----
-92

skipif mysql # not compatible
query I rowsort label-1949
SELECT - - 92 * - COUNT ( DISTINCT 38 ) AS col1
----
-92

query I rowsort
SELECT - 6 + + 15 * + 26
----
384

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1951
SELECT ALL - - COUNT( * ) * 74 * MAX( + + 68 ) + + 40 AS col0, 90 DIV - 24 AS col2
----
5072
-3

skipif mysql # not compatible
query II rowsort label-1951
SELECT ALL - - COUNT ( * ) * 74 * MAX ( + + 68 ) + + 40 AS col0, 90 / - 24 AS col2
----
5072
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-1952
SELECT DISTINCT - - NULLIF ( 37, 49 ) DIV + 12
----
3

skipif mysql # not compatible
query I rowsort label-1952
SELECT DISTINCT - - NULLIF ( 37, 49 ) / + 12
----
3

query I rowsort
SELECT - 59 * + 15 col0
----
-885

query I rowsort
SELECT - NULLIF ( 25, + - 98 ) AS col1
----
-25

query I rowsort
SELECT - 34 + + 7 AS col2
----
-27

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1956
SELECT ALL - + 71 DIV - + COALESCE ( - - COUNT( * ), COUNT( * ) * + + 59 DIV 9 - - COUNT( * ) * + + MIN( DISTINCT 40 ) + 98 + + 97 ) AS col2
----
71

skipif mysql # not compatible
query I rowsort label-1956
SELECT ALL - + 71 / - + COALESCE ( - - COUNT ( * ), COUNT ( * ) * + + 59 / 9 - - COUNT ( * ) * + + MIN ( DISTINCT 40 ) + 98 + + 97 ) AS col2
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-1957
SELECT CASE + ( + - 80 ) WHEN - 81 * 8 THEN 62 WHEN + 71 THEN - + 66 - 26 WHEN 96 * + 89 THEN - + COUNT( * ) ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1957
SELECT CASE + ( + - 80 ) WHEN - 81 * 8 THEN 62 WHEN + 71 THEN - + 66 - 26 WHEN 96 * + 89 THEN - + COUNT ( * ) ELSE NULL END AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1958
SELECT - + 9 DIV + 32 * 52
----
0

skipif mysql # not compatible
query I rowsort label-1958
SELECT - + 9 / + 32 * 52
----
0

query I rowsort
SELECT ALL - - 46 * 89 + + 57
----
4151

query I rowsort
SELECT ALL + 29 * - 95 + + - 16 AS col1
----
-2771

query I rowsort
SELECT - + 44 * + 52 + 34 + 1 + - 27 AS col0
----
-2280

onlyif mysql # aggregate syntax: 
query I rowsort label-1962
SELECT + - NULLIF ( MAX( 17 ), - 18 )
----
-17

skipif mysql # not compatible
query I rowsort label-1962
SELECT + - NULLIF ( MAX ( 17 ), - 18 )
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-1963
SELECT ALL + + MIN( DISTINCT + 45 )
----
45

skipif mysql # not compatible
query I rowsort label-1963
SELECT ALL + + MIN ( DISTINCT + 45 )
----
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1964
SELECT DISTINCT + CASE + 59 WHEN + 4 THEN CAST( NULL AS SIGNED ) WHEN + SUM( + + 97 ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1964
SELECT DISTINCT + CASE + 59 WHEN + 4 THEN CAST ( NULL AS INTEGER ) WHEN + SUM ( + + 97 ) THEN NULL END
----
NULL

query I rowsort
SELECT - - 90 * - 94 * + - ( + 18 )
----
152280

query I rowsort
SELECT ALL + + 53 col2
----
53

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1967
SELECT ALL ( + + 42 ) DIV - 16 + MIN( 19 ) AS col1, 45 AS col0
----
17
45

skipif mysql # not compatible
query II rowsort label-1967
SELECT ALL ( + + 42 ) / - 16 + MIN ( 19 ) AS col1, 45 AS col0
----
17
45

query I rowsort
SELECT + - 82 + - 8 + + 73
----
-17

onlyif mysql # DIV for integer division: 
query I rowsort label-1969
SELECT DISTINCT 54 DIV - 3 + 46 AS col0
----
28

skipif mysql # not compatible
query I rowsort label-1969
SELECT DISTINCT 54 / - 3 + 46 AS col0
----
28

onlyif mysql # aggregate syntax: 
query II rowsort label-1970
SELECT + 56 * - COUNT( * ) + + 57, COUNT( * )
----
1
1

skipif mysql # not compatible
query II rowsort label-1970
SELECT + 56 * - COUNT ( * ) + + 57, COUNT ( * )
----
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1971
SELECT CAST( COALESCE ( + 1, - AVG ( + 95 ), 41 + - 75 ) AS SIGNED ) col0
----
1

skipif mysql # not compatible
query I rowsort label-1971
SELECT CAST ( COALESCE ( + 1, - AVG ( + 95 ), 41 + - 75 ) AS INTEGER ) col0
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1972
SELECT ALL 37 DIV + 72 + COUNT( * ) * + 23, 32 - - - 17 AS col1
----
23
15

skipif mysql # not compatible
query II rowsort label-1972
SELECT ALL 37 / + 72 + COUNT ( * ) * + 23, 32 - - - 17 AS col1
----
23
15

query II rowsort
SELECT 36, + 97 AS col2
----
36
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1974
SELECT ALL 95 + CASE + 47 WHEN - 24 THEN NULL ELSE + CAST( ( + + 27 ) AS SIGNED ) - - 88 END + + 61
----
271

skipif mysql # not compatible
query I rowsort label-1974
SELECT ALL 95 + CASE + 47 WHEN - 24 THEN NULL ELSE + CAST ( ( + + 27 ) AS INTEGER ) - - 88 END + + 61
----
271

query II rowsort
SELECT 79 col2, - 81 AS col1
----
79
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-1976
SELECT ALL 71 DIV + + 43
----
1

skipif mysql # not compatible
query I rowsort label-1976
SELECT ALL 71 / + + 43
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-1977
SELECT 64 DIV - 18
----
-3

skipif mysql # not compatible
query I rowsort label-1977
SELECT 64 / - 18
----
-3

query I rowsort
SELECT + 62 * + 78 - 56 + - 3 AS col2
----
4777

onlyif mysql # aggregate syntax: 
query II rowsort label-1979
SELECT ALL - NULLIF ( - + 94, COUNT( * ) + - 9 ) col2, + ( 47 ) - - 60
----
94
107

skipif mysql # not compatible
query II rowsort label-1979
SELECT ALL - NULLIF ( - + 94, COUNT ( * ) + - 9 ) col2, + ( 47 ) - - 60
----
94
107

onlyif mysql # aggregate syntax: 
query II rowsort label-1980
SELECT DISTINCT - 5, - 94 * + + COUNT( * ) AS col0
----
-5
-94

skipif mysql # not compatible
query II rowsort label-1980
SELECT DISTINCT - 5, - 94 * + + COUNT ( * ) AS col0
----
-5
-94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1981
SELECT ALL 65 + - CAST( NULL AS SIGNED ) + + MAX( - - 97 ) / - - COUNT( DISTINCT - 79 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1981
SELECT ALL 65 + - CAST ( NULL AS INTEGER ) + + MAX ( - - 97 ) / - - COUNT ( DISTINCT - 79 ) AS col0
----
NULL

query I rowsort
SELECT ALL 24 * 31 AS col2
----
744

query II rowsort
SELECT DISTINCT - 50 AS col0, + 97
----
-50
97

onlyif mysql # aggregate syntax: 
query I rowsort label-1984
SELECT DISTINCT 94 - COUNT( DISTINCT + 57 ) AS col1
----
93

skipif mysql # not compatible
query I rowsort label-1984
SELECT DISTINCT 94 - COUNT ( DISTINCT + 57 ) AS col1
----
93

query II rowsort
SELECT 79 AS col0, 4 AS col1
----
79
4

query I rowsort
SELECT ALL 29 - - NULLIF ( 47, + 16 ) * + 88 AS col1
----
4165

query I rowsort
SELECT ALL 88 * 11 AS col1
----
968

query I rowsort
SELECT 73 * + 0 AS col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-1989
SELECT 88 * + + COUNT( * ) - 47 + + + 97 AS col2, 17
----
138
17

skipif mysql # not compatible
query II rowsort label-1989
SELECT 88 * + + COUNT ( * ) - 47 + + + 97 AS col2, 17
----
138
17

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1990
SELECT 60 col1, + CAST( - - 32 AS SIGNED ) AS col2
----
60
32

skipif mysql # not compatible
query II rowsort label-1990
SELECT 60 col1, + CAST ( - - 32 AS INTEGER ) AS col2
----
60
32

onlyif mysql # aggregate syntax: 
query I rowsort label-1991
SELECT 24 * + MAX( DISTINCT - 20 )
----
-480

skipif mysql # not compatible
query I rowsort label-1991
SELECT 24 * + MAX ( DISTINCT - 20 )
----
-480

query II rowsort
SELECT ALL 34 col0, 13 * - - 45 - 99 AS col1
----
34
486

onlyif mysql # aggregate syntax: 
query I rowsort label-1993
SELECT - SUM( + 18 ) * - + 73 AS col0
----
1314

skipif mysql # not compatible
query I rowsort label-1993
SELECT - SUM ( + 18 ) * - + 73 AS col0
----
1314

query I rowsort
SELECT DISTINCT + - 86 * - + 90 AS col2
----
7740

query I rowsort
SELECT + 44 * 13
----
572

query I rowsort
SELECT ALL - + 44 + + 11
----
-33

query I rowsort
SELECT + 71 + - 95
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-1998
SELECT + 84 + - 13 + - 52 * + COUNT( * ) * + 53
----
-2685

skipif mysql # not compatible
query I rowsort label-1998
SELECT + 84 + - 13 + - 52 * + COUNT ( * ) * + 53
----
-2685

query I rowsort
SELECT DISTINCT + 30 * + - 90
----
-2700

query I rowsort
SELECT ALL - - 44 + - - 12 AS col1
----
56

query II rowsort
SELECT + 8 AS col1, - 4
----
8
-4

query I rowsort
SELECT DISTINCT - 92 + + + 34 AS col0
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-2003
SELECT DISTINCT - - ( - MAX( ALL + 1 ) ) + - COUNT( * )
----
-2

skipif mysql # not compatible
query I rowsort label-2003
SELECT DISTINCT - - ( - MAX ( ALL + 1 ) ) + - COUNT ( * )
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-2004
SELECT COUNT( DISTINCT 21 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2004
SELECT COUNT ( DISTINCT 21 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2005
SELECT - 34 + + CASE - COUNT( * ) WHEN + ( 23 ) / - + 19 - + 53 * + 27 + 45 + - 57 THEN NULL ELSE - 98 * - MAX( ALL + 94 ) END
----
9178

skipif mysql # not compatible
query I rowsort label-2005
SELECT - 34 + + CASE - COUNT ( * ) WHEN + ( 23 ) / - + 19 - + 53 * + 27 + 45 + - 57 THEN NULL ELSE - 98 * - MAX ( ALL + 94 ) END
----
9178

onlyif mysql # DIV for integer division: 
query I rowsort label-2006
SELECT ALL - 48 DIV - + 65 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2006
SELECT ALL - 48 / - + 65 AS col1
----
0

query I rowsort
SELECT + - ( - + 45 ) * 19 + + 2 + ( - 56 ) col0
----
801

query I rowsort
SELECT DISTINCT - - 2 * - 76
----
-152

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

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

query I rowsort
SELECT 57 + - ( - - 82 )
----
-25

query I rowsort
SELECT 93 * + + 29 * + 44 col2
----
118668

query I rowsort
SELECT ALL + 64 * - 18 AS col0
----
-1152

onlyif mysql # aggregate syntax: 
query I rowsort label-2013
SELECT DISTINCT - COALESCE ( - 90, - 30 * COUNT( * ) - - 15 * 38 ) AS col1
----
90

skipif mysql # not compatible
query I rowsort label-2013
SELECT DISTINCT - COALESCE ( - 90, - 30 * COUNT ( * ) - - 15 * 38 ) AS col1
----
90

onlyif mysql # aggregate syntax: 
query II rowsort label-2014
SELECT 63 + - ( 94 ) - - 61 + - + 75 + + 11 * + 9 + 16 + 90 col2, COUNT( * )
----
160
1

skipif mysql # not compatible
query II rowsort label-2014
SELECT 63 + - ( 94 ) - - 61 + - + 75 + + 11 * + 9 + 16 + 90 col2, COUNT ( * )
----
160
1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2016
SELECT ALL - COALESCE ( + 0, + 57 + ( + 48 ), MAX( ALL - + 86 ) - - 29 )
----
0

skipif mysql # not compatible
query I rowsort label-2016
SELECT ALL - COALESCE ( + 0, + 57 + ( + 48 ), MAX ( ALL - + 86 ) - - 29 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2017
SELECT 79 + - MIN( ALL + 49 ) AS col0
----
30

skipif mysql # not compatible
query I rowsort label-2017
SELECT 79 + - MIN ( ALL + 49 ) AS col0
----
30

query I rowsort
SELECT 82 * - + 45 col1
----
-3690

query I rowsort
SELECT 18 * + + 12 AS col1
----
216

query I rowsort
SELECT 24 - + 74 + + 82 * - 40 * + 66 col1
----
-216530

query I rowsort
SELECT ALL 34 * - ( + 61 ) * + 53 AS col0
----
-109922

query I rowsort
SELECT 8 + + 88 - + - 65 AS col2
----
161

onlyif mysql # DIV for integer division: 
query I rowsort label-2023
SELECT ALL - 29 DIV + 40
----
0

skipif mysql # not compatible
query I rowsort label-2023
SELECT ALL - 29 / + 40
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2024
SELECT DISTINCT - NULLIF ( 75, - 74 ) * - + COUNT( * ) * - - 82
----
6150

skipif mysql # not compatible
query I rowsort label-2024
SELECT DISTINCT - NULLIF ( 75, - 74 ) * - + COUNT ( * ) * - - 82
----
6150

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2025
SELECT + ( - - COUNT( * ) ) * + - COUNT( * ) + - 88 - - - COUNT( * ) DIV - 80 AS col1
----
-89

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

query I rowsort
SELECT 16 + + 23 * - 12 AS col1
----
-260

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2027
SELECT ALL - CASE 69 WHEN - - COUNT( * ) THEN 3 - + 23 WHEN + + 24 / + - CAST( + 65 AS SIGNED ) + 99 + - 28 THEN NULL END * + 38
----
NULL

skipif mysql # not compatible
query I rowsort label-2027
SELECT ALL - CASE 69 WHEN - - COUNT ( * ) THEN 3 - + 23 WHEN + + 24 / + - CAST ( + 65 AS INTEGER ) + 99 + - 28 THEN NULL END * + 38
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2028
SELECT CAST( + ( + 43 ) AS SIGNED ) DIV 30 * + + 79
----
79

skipif mysql # not compatible
query I rowsort label-2028
SELECT CAST ( + ( + 43 ) AS INTEGER ) / 30 * + + 79
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-2029
SELECT 9 + COUNT( * ) AS col0
----
10

skipif mysql # not compatible
query I rowsort label-2029
SELECT 9 + COUNT ( * ) AS col0
----
10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2030
SELECT ALL - NULLIF ( - 96, - COUNT( * ) - COUNT( * ) ) + + 3 DIV 31 * + - ( 19 )
----
96

skipif mysql # not compatible
query I rowsort label-2030
SELECT ALL - NULLIF ( - 96, - COUNT ( * ) - COUNT ( * ) ) + + 3 / 31 * + - ( 19 )
----
96

query I rowsort
SELECT 96 * + 90
----
8640

query I rowsort
SELECT ALL - + 25 * + 16 + - 37 + + COALESCE ( + 8, - 51 * 75 + - 19 + + 40 ) * 74
----
155

onlyif mysql # aggregate syntax: 
query I rowsort label-2033
SELECT DISTINCT - 1 + CASE + - 33 WHEN - 8 THEN - - 79 WHEN + - 16 * - 61 * - AVG ( ( - ( - 11 ) ) ) - MIN( 52 ) THEN - 40 + - 77 - - 93 + - COUNT( * ) * + COUNT( * ) ELSE NULL END * - 83 + NULLIF ( ( + 22 ), - 25 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2033
SELECT DISTINCT - 1 + CASE + - 33 WHEN - 8 THEN - - 79 WHEN + - 16 * - 61 * - AVG ( ( - ( - 11 ) ) ) - MIN ( 52 ) THEN - 40 + - 77 - - 93 + - COUNT ( * ) * + COUNT ( * ) ELSE NULL END * - 83 + NULLIF ( ( + 22 ), - 25 ) AS col0
----
NULL

query I rowsort
SELECT ALL 52 + 29 AS col1
----
81

onlyif mysql # aggregate syntax: 
query II rowsort label-2035
SELECT SUM( + 44 ), ( - 14 ) AS col1
----
44
-14

skipif mysql # not compatible
query II rowsort label-2035
SELECT SUM ( + 44 ), ( - 14 ) AS col1
----
44
-14

query I rowsort
SELECT DISTINCT + - 79 + - 60
----
-139

query I rowsort
SELECT ALL - 62 + 48 AS col1
----
-14

query I rowsort
SELECT + 18 + - 16
----
2

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2040
SELECT DISTINCT 97 + + + COUNT( * ) * + - 7 col0
----
90

skipif mysql # not compatible
query I rowsort label-2040
SELECT DISTINCT 97 + + + COUNT ( * ) * + - 7 col0
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-2041
SELECT + 71 * - + 15 * + COUNT( * ) * - + 31 - - - 80 + - - COUNT( * ) AS col0
----
32936

skipif mysql # not compatible
query I rowsort label-2041
SELECT + 71 * - + 15 * + COUNT ( * ) * - + 31 - - - 80 + - - COUNT ( * ) AS col0
----
32936

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2042
SELECT ALL 10 * + COUNT( * ) DIV - + COUNT( ALL + 96 ) + - COALESCE ( - - 60, + + 55 + + CAST( NULL AS SIGNED ) ) + 24 * + ( - 44 ) * - 74 + - 30 AS col1
----
78044

skipif mysql # not compatible
query I rowsort label-2042
SELECT ALL 10 * + COUNT ( * ) / - + COUNT ( ALL + 96 ) + - COALESCE ( - - 60, + + 55 + + CAST ( NULL AS INTEGER ) ) + 24 * + ( - 44 ) * - 74 + - 30 AS col1
----
78044

query I rowsort
SELECT ALL 37 * - 66 - - 13
----
-2429

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2044
SELECT DISTINCT - + 74 * - CASE 49 WHEN - - COUNT( * ) * - COUNT( * ) THEN + - 43 * 42 WHEN + - 84 * + - 13 THEN NULL ELSE - 12 + - 23 END * + 47 + CAST( 59 AS SIGNED ) AS col1
----
-121671

skipif mysql # not compatible
query I rowsort label-2044
SELECT DISTINCT - + 74 * - CASE 49 WHEN - - COUNT ( * ) * - COUNT ( * ) THEN + - 43 * 42 WHEN + - 84 * + - 13 THEN NULL ELSE - 12 + - 23 END * + 47 + CAST ( 59 AS INTEGER ) AS col1
----
-121671

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2045
SELECT DISTINCT COUNT( * ) * + COUNT( DISTINCT + 97 ) * - 75 - + + CAST( 82 AS SIGNED ) AS col1
----
-157

skipif mysql # not compatible
query I rowsort label-2045
SELECT DISTINCT COUNT ( * ) * + COUNT ( DISTINCT + 97 ) * - 75 - + + CAST ( 82 AS INTEGER ) AS col1
----
-157

query I rowsort
SELECT + COALESCE ( - 5, + 66 ) AS col2
----
-5

query I rowsort
SELECT ALL 60 * + 41 col0
----
2460

query I rowsort
SELECT COALESCE ( + 74, + ( + 62 ) * + + NULLIF ( + - 5, - 70 * + + 16 ) * ( 50 ) + + - 25, - 51 ) AS col0
----
74

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

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

query I rowsort
SELECT - COALESCE ( - 96, 38 ) * + ( - 2 ) AS col0
----
-192

onlyif mysql # aggregate syntax: 
query II rowsort label-2051
SELECT + COUNT( * ) * + 91 * + 96 AS col1, - NULLIF ( - - 80, 9 * + 77 + + + ( 63 ) ) + - 43
----
8736
-123

skipif mysql # not compatible
query II rowsort label-2051
SELECT + COUNT ( * ) * + 91 * + 96 AS col1, - NULLIF ( - - 80, 9 * + 77 + + + ( 63 ) ) + - 43
----
8736
-123

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2053
SELECT CASE + - 49 WHEN 62 - ( - - 59 ) THEN 88 * - - COALESCE ( + - 28, - 40, - SUM( + 89 ) * + 82 + + CASE 7 WHEN - - COUNT( * ) THEN NULL ELSE - - 9 END ) / - - 52 - 67 + - 17 + ( COUNT( 35 ) ) ELSE + COUNT( 13 ) + - COUNT( ALL 83 ) * + 5 END
----
-4

skipif mysql # not compatible
query I rowsort label-2053
SELECT CASE + - 49 WHEN 62 - ( - - 59 ) THEN 88 * - - COALESCE ( + - 28, - 40, - SUM ( + 89 ) * + 82 + + CASE 7 WHEN - - COUNT ( * ) THEN NULL ELSE - - 9 END ) / - - 52 - 67 + - 17 + ( COUNT ( 35 ) ) ELSE + COUNT ( 13 ) + - COUNT ( ALL 83 ) * + 5 END
----
-4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2054
SELECT 97 * CAST( NULL AS SIGNED ) * + 34 + - + 43 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2054
SELECT 97 * CAST ( NULL AS INTEGER ) * + 34 + - + 43 AS col2
----
NULL

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

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

query I rowsort
SELECT DISTINCT + 88 * + + CASE - 66 WHEN 68 THEN - 55 END
----
NULL

query I rowsort
SELECT ALL + ( COALESCE ( + 3, - 9, - 11 ) )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2058
SELECT DISTINCT - ( + MAX( DISTINCT 81 ) ) * 75 + + 52
----
-6023

skipif mysql # not compatible
query I rowsort label-2058
SELECT DISTINCT - ( + MAX ( DISTINCT 81 ) ) * 75 + + 52
----
-6023

query I rowsort
SELECT DISTINCT - 43 * + 26 AS col2
----
-1118

query I rowsort
SELECT DISTINCT - 25 * 7
----
-175

query I rowsort
SELECT - - 18 * - 7 - 54 AS col0
----
-180

onlyif mysql # aggregate syntax: 
query I rowsort label-2062
SELECT + 86 * - COALESCE ( - - 58, + 79 ) + + - 23 * + COALESCE ( + 3, + 96 * + 86 + + + 42 + - 56, + + ( + COUNT( * ) ) ) AS col2
----
-5057

skipif mysql # not compatible
query I rowsort label-2062
SELECT + 86 * - COALESCE ( - - 58, + 79 ) + + - 23 * + COALESCE ( + 3, + 96 * + 86 + + + 42 + - 56, + + ( + COUNT ( * ) ) ) AS col2
----
-5057

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

skipif mysql # not compatible
query I rowsort label-2063
SELECT ALL - COUNT ( * ) + - - 59 + - 52 AS col1
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2064
SELECT + 64 AS col2, + 3 * - CASE - + 4 WHEN COUNT( * ) THEN NULL WHEN + 29 / - - 34 / + + 10 / NULLIF ( + - CAST( NULL AS SIGNED ), 24 ) * + + 67 / 73 THEN + 85 ELSE NULL END * - 98
----
64
NULL

skipif mysql # not compatible
query II rowsort label-2064
SELECT + 64 AS col2, + 3 * - CASE - + 4 WHEN COUNT ( * ) THEN NULL WHEN + 29 / - - 34 / + + 10 / NULLIF ( + - CAST ( NULL AS INTEGER ), 24 ) * + + 67 / 73 THEN + 85 ELSE NULL END * - 98
----
64
NULL

query I rowsort
SELECT ALL + - 65 + - 63 AS col2
----
-128

query I rowsort
SELECT DISTINCT - 5 + 5
----
0

query I rowsort
SELECT DISTINCT + 14 + + 81 + 98 + NULLIF ( - + 79, + - 10 ) * + - 29 AS col1
----
2484

query I rowsort
SELECT ALL + 92 + + 17
----
109

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

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

query I rowsort
SELECT - - 17 + 36 + 11 + 11 col0
----
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2071
SELECT - + COUNT( * ) + - 76 + - CAST( + - NULLIF ( - 15, ( SUM( ALL 16 ) ) ) AS SIGNED )
----
-92

skipif mysql # not compatible
query I rowsort label-2071
SELECT - + COUNT ( * ) + - 76 + - CAST ( + - NULLIF ( - 15, ( SUM ( ALL 16 ) ) ) AS INTEGER )
----
-92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2072
SELECT ALL ( - 39 ) - CAST( NULL AS SIGNED ) + 46 + - + 6 + + + COUNT( * ) + CAST( + + NULLIF ( + - COUNT( * ), 80 ) AS SIGNED ) / - - CASE - 36 WHEN ( - - 45 ) THEN + 84 WHEN - 64 THEN NULL ELSE + 71 END * + 83 + - 30
----
NULL

skipif mysql # not compatible
query I rowsort label-2072
SELECT ALL ( - 39 ) - CAST ( NULL AS INTEGER ) + 46 + - + 6 + + + COUNT ( * ) + CAST ( + + NULLIF ( + - COUNT ( * ), 80 ) AS INTEGER ) / - - CASE - 36 WHEN ( - - 45 ) THEN + 84 WHEN - 64 THEN NULL ELSE + 71 END * + 83 + - 30
----
NULL

query I rowsort
SELECT - 55 * + 77 AS col1
----
-4235

query II rowsort
SELECT + 69 + + 35 * 57 AS col2, 42 AS col1
----
2064
42

query I rowsort
SELECT DISTINCT - - 55 * + 26
----
1430

onlyif mysql # DIV for integer division: 
query I rowsort label-2076
SELECT ALL - 65 DIV - + 38 - + - 69
----
70

skipif mysql # not compatible
query I rowsort label-2076
SELECT ALL - 65 / - + 38 - + - 69
----
70

query I rowsort
SELECT + NULLIF ( - 46, 31 ) AS col1
----
-46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2078
SELECT CAST( - + NULLIF ( + 24, - 54 ) AS SIGNED )
----
-24

skipif mysql # not compatible
query I rowsort label-2078
SELECT CAST ( - + NULLIF ( + 24, - 54 ) AS INTEGER )
----
-24

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

skipif mysql # not compatible
query I rowsort label-2079
SELECT + AVG ( CAST ( NULL AS INTEGER ) ) * - 5
----
NULL

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

skipif mysql # not compatible
query I rowsort label-2080
SELECT ALL 6 * CAST ( NULL AS INTEGER )
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2082
SELECT + ( 41 ) * - + COUNT( * ) + + MAX( DISTINCT 43 ) AS col2
----
2

skipif mysql # not compatible
query I rowsort label-2082
SELECT + ( 41 ) * - + COUNT ( * ) + + MAX ( DISTINCT 43 ) AS col2
----
2

query I rowsort
SELECT ALL 70 * + 76
----
5320

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

skipif mysql # not compatible
query I rowsort label-2084
SELECT DISTINCT + COUNT ( ALL 19 ) col2
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2085
SELECT ALL COUNT( * ) * COALESCE ( - 82, - 10 - + 96, - 78 * 73 ) DIV - 75 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2085
SELECT ALL COUNT ( * ) * COALESCE ( - 82, - 10 - + 96, - 78 * 73 ) / - 75 AS col2
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2086
SELECT + 17 DIV 40
----
0

skipif mysql # not compatible
query I rowsort label-2086
SELECT + 17 / 40
----
0

query I rowsort
SELECT ALL - 58 * + - 53 + - + 58 col1
----
3016

query I rowsort
SELECT + 5 + - 12 AS col2
----
-7

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

skipif mysql # not compatible
query I rowsort label-2089
SELECT + CAST ( - - SUM ( DISTINCT 5 ) AS INTEGER )
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-2090
SELECT ALL + MIN( + 54 ) * ( COUNT( * ) ) + + + 36
----
90

skipif mysql # not compatible
query I rowsort label-2090
SELECT ALL + MIN ( + 54 ) * ( COUNT ( * ) ) + + + 36
----
90

query I rowsort
SELECT + 98 + + + ( 10 ) AS col0
----
108

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2092
SELECT - + CAST( + 27 AS SIGNED ) - + 74 AS col2
----
-101

skipif mysql # not compatible
query I rowsort label-2092
SELECT - + CAST ( + 27 AS INTEGER ) - + 74 AS col2
----
-101

query I rowsort
SELECT ALL + - ( - + CASE 9 WHEN - + 95 THEN - 70 ELSE NULL END ) * - 5 * - 79 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2094
SELECT - + MAX( DISTINCT - - 5 ) + NULLIF ( + + 62, + 37 ) AS col1
----
57

skipif mysql # not compatible
query I rowsort label-2094
SELECT - + MAX ( DISTINCT - - 5 ) + NULLIF ( + + 62, + 37 ) AS col1
----
57

query I rowsort
SELECT - - 7 + - - 27 * 10
----
277

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

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

query I rowsort
SELECT - 73 + 9 + + 15 * - + 35 + - - 44
----
-545

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2099
SELECT 48 + + - 71 * COUNT( * )
----
-23

skipif mysql # not compatible
query I rowsort label-2099
SELECT 48 + + - 71 * COUNT ( * )
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-2100
SELECT NULLIF ( - - 3, + COUNT( * ) ) * - COALESCE ( + - 74, ( - + 96 ) ) + - - 81
----
303

skipif mysql # not compatible
query I rowsort label-2100
SELECT NULLIF ( - - 3, + COUNT ( * ) ) * - COALESCE ( + - 74, ( - + 96 ) ) + - - 81
----
303

query II rowsort
SELECT - + 51, + ( - 72 ) AS col0
----
-51
-72

query I rowsort
SELECT 94 + + - 58 + + 89 + - - 69 + - ( + + 94 ) * + 67 - + 75 AS col2
----
-6179

onlyif mysql # aggregate syntax: 
query I rowsort label-2103
SELECT ALL - 60 - + - COUNT( - 81 ) AS col2
----
-59

skipif mysql # not compatible
query I rowsort label-2103
SELECT ALL - 60 - + - COUNT ( - 81 ) AS col2
----
-59

query II rowsort
SELECT DISTINCT 55 AS col2, 28 col1
----
55
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2105
SELECT - COUNT( * ) + + + 67 * + CASE ( + + 91 ) WHEN + 7 THEN - ( + - ( + + 99 ) ) * + CAST( 62 AS SIGNED ) + - ( - - ( - 49 ) ) + NULLIF ( + 86, + + ( + - 7 ) ) + 33 * + 78 ELSE NULL END * + 55 * ( + 27 * + ( CAST( NULL AS SIGNED ) ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2105
SELECT - COUNT ( * ) + + + 67 * + CASE ( + + 91 ) WHEN + 7 THEN - ( + - ( + + 99 ) ) * + CAST ( 62 AS INTEGER ) + - ( - - ( - 49 ) ) + NULLIF ( + 86, + + ( + - 7 ) ) + 33 * + 78 ELSE NULL END * + 55 * ( + 27 * + ( CAST ( NULL AS INTEGER ) ) ) AS col2
----
NULL

query I rowsort
SELECT 28 * + + NULLIF ( + 9, - 30 * + + 36 * + 99 ) + - 84
----
168

query I rowsort
SELECT ALL NULLIF ( + 40, 51 ) AS col0
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-2108
SELECT ALL - - AVG ( + + 38 ) - + 2 * - + 35 * CASE + 54 WHEN + + COALESCE ( - ( + 83 ), COUNT( * ) ) THEN NULL WHEN + - 74 * + 72 * + 30 + + 37 + + + 78 THEN - + 17 END / + 22
----
NULL

skipif mysql # not compatible
query I rowsort label-2108
SELECT ALL - - AVG ( + + 38 ) - + 2 * - + 35 * CASE + 54 WHEN + + COALESCE ( - ( + 83 ), COUNT ( * ) ) THEN NULL WHEN + - 74 * + 72 * + 30 + + 37 + + + 78 THEN - + 17 END / + 22
----
NULL

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

query I rowsort
SELECT ALL 19 - CASE 30 WHEN - 72 THEN + 35 WHEN 10 THEN + 66 + + NULLIF ( - - 48, ( + 7 ) ) END
----
NULL

query I rowsort
SELECT - 89 * 98 + + 48
----
-8674

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2112
SELECT ALL + NULLIF ( - - 14, - + CAST( NULL AS SIGNED ) ) DIV + 48 AS col1, + 60
----
0
60

skipif mysql # not compatible
query II rowsort label-2112
SELECT ALL + NULLIF ( - - 14, - + CAST ( NULL AS INTEGER ) ) / + 48 AS col1, + 60
----
0
60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2113
SELECT 73 DIV + + CASE + - 84 WHEN - - CASE + 52 WHEN - 34 DIV + + 85 THEN COUNT( * ) END * - 40 * CAST( NULL AS SIGNED ) * - 11 THEN NULL WHEN + - 93 THEN - + 60 DIV + 5 ELSE 64 + + 85 END
----
0

skipif mysql # not compatible
query I rowsort label-2113
SELECT 73 / + + CASE + - 84 WHEN - - CASE + 52 WHEN - 34 / + + 85 THEN COUNT ( * ) END * - 40 * CAST ( NULL AS INTEGER ) * - 11 THEN NULL WHEN + - 93 THEN - + 60 / + 5 ELSE 64 + + 85 END
----
0

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

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

query II rowsort
SELECT ALL 65 * + 13 AS col2, + 77 AS col2
----
845
77

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2117
SELECT ( + - 65 ) * - + SUM( 15 ) + - 95 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2117
SELECT ( + - 65 ) * - + SUM ( 15 ) + - 95 + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL + 43 * - + 8 AS col2
----
-344

onlyif mysql # aggregate syntax: 
query I rowsort label-2119
SELECT COUNT( * ) * + CASE COUNT( * ) WHEN + - 46 THEN - 56 * 82 + 22 END * - 86 + + 39 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2119
SELECT COUNT ( * ) * + CASE COUNT ( * ) WHEN + - 46 THEN - 56 * 82 + 22 END * - 86 + + 39 AS col0
----
NULL

query I rowsort
SELECT ALL 23 + + 86 - - 33
----
142

query I rowsort
SELECT ALL ( + 97 ) + 74 * 11 AS col2
----
911

query I rowsort
SELECT - 57 * - 95 * 90 + 74 col0
----
487424

query I rowsort
SELECT ALL COALESCE ( - - 85, + 12 ) + - + 61 AS col1
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-2124
SELECT SUM( - ( - 3 ) ) * + - 3 + 58 * 47
----
2717

skipif mysql # not compatible
query I rowsort label-2124
SELECT SUM ( - ( - 3 ) ) * + - 3 + 58 * 47
----
2717

query I rowsort
SELECT ALL ( + 66 ) + + - ( + 87 ) * - - 95 AS col1
----
-8199

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

skipif mysql # not compatible
query I rowsort label-2126
SELECT DISTINCT + 58 + + COUNT ( * ) AS col2
----
59

query I rowsort
SELECT ALL + 47 * 63
----
2961

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2129
SELECT ALL - 64 - - 68 DIV + + NULLIF ( - 77, + MAX( DISTINCT + - 61 ) )
----
-64

skipif mysql # not compatible
query I rowsort label-2129
SELECT ALL - 64 - - 68 / + + NULLIF ( - 77, + MAX ( DISTINCT + - 61 ) )
----
-64

query I rowsort
SELECT - - 94 col1
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-2131
SELECT DISTINCT - 81 * - ( - 90 ) * + COUNT( DISTINCT + 91 )
----
-7290

skipif mysql # not compatible
query I rowsort label-2131
SELECT DISTINCT - 81 * - ( - 90 ) * + COUNT ( DISTINCT + 91 )
----
-7290

onlyif mysql # DIV for integer division: 
query I rowsort label-2132
SELECT DISTINCT - 70 DIV - 75 - - - 27
----
-27

skipif mysql # not compatible
query I rowsort label-2132
SELECT DISTINCT - 70 / - 75 - - - 27
----
-27

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2134
SELECT DISTINCT + + 55 * + - 86 / + CASE 3 WHEN - + 74 THEN - CASE - 71 WHEN 70 THEN + 0 * + 58 * 43 ELSE + 51 - - COUNT( ALL + 47 ) + - - ( + COUNT( * ) ) END * + - 25 * CASE - + 22 WHEN + COUNT( * ) * + + COUNT( * ) + 84 THEN NULL ELSE + 66 * + 45 END WHEN 25 * 53 THEN CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) WHEN 45 * - CAST( 59 * - 14 AS SIGNED ) THEN NULL ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2134
SELECT DISTINCT + + 55 * + - 86 / + CASE 3 WHEN - + 74 THEN - CASE - 71 WHEN 70 THEN + 0 * + 58 * 43 ELSE + 51 - - COUNT ( ALL + 47 ) + - - ( + COUNT ( * ) ) END * + - 25 * CASE - + 22 WHEN + COUNT ( * ) * + + COUNT ( * ) + 84 THEN NULL ELSE + 66 * + 45 END WHEN 25 * 53 THEN CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) WHEN 45 * - CAST ( 59 * - 14 AS INTEGER ) THEN NULL ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT - 87 - 70 AS col1
----
-157

query II rowsort
SELECT 7 col2, - 67
----
7
-67

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2138
SELECT 92 + - + NULLIF ( + 83, - - 82 ) + COALESCE ( - - ( + 44 ), 98 + + - CAST( NULL AS SIGNED ) * 5 ) + 36, ( 98 ) * + - 37 * + COALESCE ( - 65, - 60 + 9 + CASE 31 WHEN + 5 THEN - COALESCE ( - 71, + 40 - - 94 ) END * - 2 ) AS col0
----
89
235690

skipif mysql # not compatible
query II rowsort label-2138
SELECT 92 + - + NULLIF ( + 83, - - 82 ) + COALESCE ( - - ( + 44 ), 98 + + - CAST ( NULL AS INTEGER ) * 5 ) + 36, ( 98 ) * + - 37 * + COALESCE ( - 65, - 60 + 9 + CASE 31 WHEN + 5 THEN - COALESCE ( - 71, + 40 - - 94 ) END * - 2 ) AS col0
----
89
235690

query I rowsort
SELECT DISTINCT - 83 + + ( 13 ) * + 33 col0
----
346

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2140
SELECT 1 + + - COALESCE ( 54, + CAST( - ( + - 92 ) AS SIGNED ) + - + 93 ) AS col1
----
-53

skipif mysql # not compatible
query I rowsort label-2140
SELECT 1 + + - COALESCE ( 54, + CAST ( - ( + - 92 ) AS INTEGER ) + - + 93 ) AS col1
----
-53

query I rowsort
SELECT ALL - 11 + + 21
----
10

query I rowsort
SELECT DISTINCT 70 * + - 22
----
-1540

query I rowsort
SELECT 91 * - + NULLIF ( - 57, + 29 * - 0 )
----
5187

onlyif mysql # aggregate syntax: 
query II rowsort label-2144
SELECT 27 + + 92 + + - 61 AS col2, COUNT( * ) * + - COUNT( + 73 ) * CASE - + 38 WHEN 2 - + 10 THEN 1 * - 55 END AS col0
----
58
NULL

skipif mysql # not compatible
query II rowsort label-2144
SELECT 27 + + 92 + + - 61 AS col2, COUNT ( * ) * + - COUNT ( + 73 ) * CASE - + 38 WHEN 2 - + 10 THEN 1 * - 55 END AS col0
----
58
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2145
SELECT 33 DIV 20 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2145
SELECT 33 / 20 AS col0
----
1

query II rowsort
SELECT + 70, + 36 * - 94 * - - 59 * - 4 + 33 AS col0
----
70
798657

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

skipif mysql # not compatible
query I rowsort label-2147
SELECT 3 / COUNT ( * ) + + ( - 35 )
----
-32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2148
SELECT DISTINCT + 65 * CAST( NULL AS SIGNED ) + - - 38 + 85 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2148
SELECT DISTINCT + 65 * CAST ( NULL AS INTEGER ) + - - 38 + 85 col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2149
SELECT DISTINCT MAX( - 54 ) * + ( - - 75 ) + + - CASE + 83 WHEN + - 60 THEN 54 END DIV - - 40 + + - 66 * - - 87 AS col1, + COUNT( * ) DIV + 6 col0
----
NULL
0

skipif mysql # not compatible
query II rowsort label-2149
SELECT DISTINCT MAX ( - 54 ) * + ( - - 75 ) + + - CASE + 83 WHEN + - 60 THEN 54 END / - - 40 + + - 66 * - - 87 AS col1, + COUNT ( * ) / + 6 col0
----
NULL
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2150
SELECT ALL + 62 * COUNT( * ) * - NULLIF ( + MAX( + 92 ), + ( + + 19 ) + + + 47 ) + + 56 * + 50 - - - 91 * COUNT( 11 ) AS col0
----
-2995

skipif mysql # not compatible
query I rowsort label-2150
SELECT ALL + 62 * COUNT ( * ) * - NULLIF ( + MAX ( + 92 ), + ( + + 19 ) + + + 47 ) + + 56 * + 50 - - - 91 * COUNT ( 11 ) AS col0
----
-2995

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2151
SELECT + COUNT( * ) * - ( + 2 ) * - - 3 - 69 + + CASE 62 WHEN COUNT( - 84 ) * - 88 THEN + 61 DIV + CAST( NULL AS SIGNED ) WHEN - + MIN( - + 29 ) - 83 + + CASE 33 WHEN - COUNT( * ) THEN 8 WHEN - 77 THEN NULL ELSE NULL END THEN NULL WHEN - - COUNT( * ) THEN NULL ELSE + - NULLIF ( + 34, + 43 + - COUNT( DISTINCT 5 + 65 ) * + 33 ) END + - MAX( ALL + 23 )
----
-132

skipif mysql # not compatible
query I rowsort label-2151
SELECT + COUNT ( * ) * - ( + 2 ) * - - 3 - 69 + + CASE 62 WHEN COUNT ( - 84 ) * - 88 THEN + 61 / + CAST ( NULL AS INTEGER ) WHEN - + MIN ( - + 29 ) - 83 + + CASE 33 WHEN - COUNT ( * ) THEN 8 WHEN - 77 THEN NULL ELSE NULL END THEN NULL WHEN - - COUNT ( * ) THEN NULL ELSE + - NULLIF ( + 34, + 43 + - COUNT ( DISTINCT 5 + 65 ) * + 33 ) END + - MAX ( ALL + 23 )
----
-132

onlyif mysql # aggregate syntax: 
query I rowsort label-2152
SELECT - + COUNT( * ) + - - 36 * ( + 60 ) - - 25
----
2184

skipif mysql # not compatible
query I rowsort label-2152
SELECT - + COUNT ( * ) + - - 36 * ( + 60 ) - - 25
----
2184

query I rowsort
SELECT ALL - 93 - - - 32
----
-125

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2155
SELECT - MAX( 89 )
----
-89

skipif mysql # not compatible
query I rowsort label-2155
SELECT - MAX ( 89 )
----
-89

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

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

query I rowsort
SELECT + - 61 * + - 14 + + 91
----
945

query I rowsort
SELECT + 35 + - 43 - - - 43 * 25 * - 37 * 72 AS col0
----
2863792

query I rowsort
SELECT DISTINCT - 41 * - 29
----
1189

onlyif mysql # DIV for integer division: 
query II rowsort label-2160
SELECT - 46 AS col2, - 18 DIV + - 72 AS col2
----
-46
0

skipif mysql # not compatible
query II rowsort label-2160
SELECT - 46 AS col2, - 18 / + - 72 AS col2
----
-46
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2161
SELECT + 62 * CAST( 98 AS SIGNED ) DIV + - ( - 53 ) AS col0
----
114

skipif mysql # not compatible
query I rowsort label-2161
SELECT + 62 * CAST ( 98 AS INTEGER ) / + - ( - 53 ) AS col0
----
114

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2162
SELECT ALL + 8 * + 87 + - ( ( + ( + CASE - + COUNT( * ) WHEN - ( + + ( + 24 ) ) THEN NULL WHEN - - 57 - NULLIF ( 32, + 48 * 6 / ( - 61 ) / + + 84 + - 9 ) * 61 + - + 6 THEN + 77 WHEN - 92 THEN NULL WHEN - 64 * + AVG ( CAST( NULL AS SIGNED ) ) THEN - 82 * + 64 END ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2162
SELECT ALL + 8 * + 87 + - ( ( + ( + CASE - + COUNT ( * ) WHEN - ( + + ( + 24 ) ) THEN NULL WHEN - - 57 - NULLIF ( 32, + 48 * 6 / ( - 61 ) / + + 84 + - 9 ) * 61 + - + 6 THEN + 77 WHEN - 92 THEN NULL WHEN - 64 * + AVG ( CAST ( NULL AS INTEGER ) ) THEN - 82 * + 64 END ) ) )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2163
SELECT + + 53 DIV COALESCE ( - - 8, 10 * COALESCE ( MIN( + 43 ), MIN( + 72 ) * + 79 * 93 ) DIV - - 87, + 72 ) AS col2, 69 AS col2
----
6
69

skipif mysql # not compatible
query II rowsort label-2163
SELECT + + 53 / COALESCE ( - - 8, 10 * COALESCE ( MIN ( + 43 ), MIN ( + 72 ) * + 79 * 93 ) / - - 87, + 72 ) AS col2, 69 AS col2
----
6
69

query I rowsort
SELECT - + 47 + - 13 AS col1
----
-60

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2165
SELECT ALL 83 DIV - - 62, + SUM( + 17 ) AS col1
----
1
17

skipif mysql # not compatible
query II rowsort label-2165
SELECT ALL 83 / - - 62, + SUM ( + 17 ) AS col1
----
1
17

onlyif mysql # aggregate syntax: 
query I rowsort label-2166
SELECT - CASE - - AVG ( - 96 ) WHEN - - 89 * + + 62 * 26 THEN - - 15 * + - 2 + + - 44 * 59 - - COUNT( * ) WHEN ( + 42 ) + ( + + 86 ) THEN 82 ELSE 86 + + + ( 75 ) * 9 END AS col0
----
-761

skipif mysql # not compatible
query I rowsort label-2166
SELECT - CASE - - AVG ( - 96 ) WHEN - - 89 * + + 62 * 26 THEN - - 15 * + - 2 + + - 44 * 59 - - COUNT ( * ) WHEN ( + 42 ) + ( + + 86 ) THEN 82 ELSE 86 + + + ( 75 ) * 9 END AS col0
----
-761

query I rowsort
SELECT + 24 * - 45 AS col1
----
-1080

onlyif mysql # aggregate syntax: 
query I rowsort label-2168
SELECT ALL - 79 + 53 * 91 + 31 + - + 7 * 45 + - COUNT( * )
----
4459

skipif mysql # not compatible
query I rowsort label-2168
SELECT ALL - 79 + 53 * 91 + 31 + - + 7 * 45 + - COUNT ( * )
----
4459

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2169
SELECT - CASE - ( - 12 ) WHEN + COALESCE ( 85, 71 * - 4 ) THEN - 66 WHEN - 81 THEN + - 6 * - 79 + + 26 + - 95 * - 34 END, 61 - + 46 * - + 72 * + - 2 * + - 87 * - CAST( - + 34 AS SIGNED ) AS col2
----
NULL
19593853

skipif mysql # not compatible
query II rowsort label-2169
SELECT - CASE - ( - 12 ) WHEN + COALESCE ( 85, 71 * - 4 ) THEN - 66 WHEN - 81 THEN + - 6 * - 79 + + 26 + - 95 * - 34 END, 61 - + 46 * - + 72 * + - 2 * + - 87 * - CAST ( - + 34 AS INTEGER ) AS col2
----
NULL
19593853

query I rowsort
SELECT - 70 * 10 AS col0
----
-700

onlyif mysql # aggregate syntax: 
query II rowsort label-2171
SELECT DISTINCT SUM( + 68 ) AS col0, 83 AS col0
----
68
83

skipif mysql # not compatible
query II rowsort label-2171
SELECT DISTINCT SUM ( + 68 ) AS col0, 83 AS col0
----
68
83

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2174
SELECT ALL + CASE 80 WHEN + 3 / - + 68 THEN NULL WHEN CAST( NULL AS SIGNED ) * 38 THEN - + 13 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2174
SELECT ALL + CASE 80 WHEN + 3 / - + 68 THEN NULL WHEN CAST ( NULL AS INTEGER ) * 38 THEN - + 13 ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT - + 19 * - 37 AS col0
----
703

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2177
SELECT ALL - - 51 * 10 + + - NULLIF ( - + 3, + + CASE - 32 WHEN 24 THEN NULL WHEN + 67 THEN - + COUNT( * ) ELSE NULL END / 63 - + 46 * + + 9 + - - 37 ) AS col1
----
513

skipif mysql # not compatible
query I rowsort label-2177
SELECT ALL - - 51 * 10 + + - NULLIF ( - + 3, + + CASE - 32 WHEN 24 THEN NULL WHEN + 67 THEN - + COUNT ( * ) ELSE NULL END / 63 - + 46 * + + 9 + - - 37 ) AS col1
----
513

query I rowsort
SELECT - CASE - 80 WHEN - - 56 THEN ( - 52 ) ELSE - 98 END * - 6
----
-588

onlyif mysql # aggregate syntax: 
query I rowsort label-2179
SELECT + 53 * - + SUM( + + 39 ) AS col0
----
-2067

skipif mysql # not compatible
query I rowsort label-2179
SELECT + 53 * - + SUM ( + + 39 ) AS col0
----
-2067

onlyif mysql # aggregate syntax: 
query I rowsort label-2180
SELECT ALL + + 59 * 37 * - SUM( ALL + - 50 ) AS col1
----
109150

skipif mysql # not compatible
query I rowsort label-2180
SELECT ALL + + 59 * 37 * - SUM ( ALL + - 50 ) AS col1
----
109150

query I rowsort
SELECT - - 92 * - 4
----
-368

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2182
SELECT ALL - MAX( DISTINCT 55 ) DIV + 79 + + 34 AS col2, 10
----
34
10

skipif mysql # not compatible
query II rowsort label-2182
SELECT ALL - MAX ( DISTINCT 55 ) / + 79 + + 34 AS col2, 10
----
34
10

onlyif mysql # DIV for integer division: 
query I rowsort label-2183
SELECT DISTINCT - 48 DIV - 36 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2183
SELECT DISTINCT - 48 / - 36 AS col1
----
1

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

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

query I rowsort
SELECT - - COALESCE ( - 1, - ( 53 ), + 30 + - 57 ) + + 79 * 38 AS col0
----
3001

query I rowsort
SELECT - + 57 * + - 27 AS col0
----
1539

query I rowsort
SELECT DISTINCT NULLIF ( 34, 71 + - 47 - + - 46 / 61 * - 66 ) col1
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-2188
SELECT - ( + COUNT( * ) ) - + 73 AS col2
----
-74

skipif mysql # not compatible
query I rowsort label-2188
SELECT - ( + COUNT ( * ) ) - + 73 AS col2
----
-74

query I rowsort
SELECT - + COALESCE ( 24, - + ( + - 52 ) )
----
-24

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2191
SELECT DISTINCT CAST( - - 53 AS SIGNED ) AS col2
----
53

skipif mysql # not compatible
query I rowsort label-2191
SELECT DISTINCT CAST ( - - 53 AS INTEGER ) AS col2
----
53

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2194
SELECT + 1 / CASE 23 WHEN + 66 * 30 + + AVG ( - - 91 ) THEN NULL WHEN + - COUNT( * ) * 80 + + + 2 / 77 THEN + 88 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2194
SELECT + 1 / CASE 23 WHEN + 66 * 30 + + AVG ( - - 91 ) THEN NULL WHEN + - COUNT ( * ) * 80 + + + 2 / 77 THEN + 88 END
----
NULL

query I rowsort
SELECT ALL 6 + + 86 * - 22 + 66
----
-1820

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2196
SELECT DISTINCT COUNT( DISTINCT CAST( + COALESCE ( + ( 29 ), ( - 29 ) + + 78 * + + 2, 88 ) AS SIGNED ) ), 42 AS col0
----
1
42

skipif mysql # not compatible
query II rowsort label-2196
SELECT DISTINCT COUNT ( DISTINCT CAST ( + COALESCE ( + ( 29 ), ( - 29 ) + + 78 * + + 2, 88 ) AS INTEGER ) ), 42 AS col0
----
1
42

onlyif mysql # aggregate syntax: 
query II rowsort label-2197
SELECT + 65 + SUM( - + 54 ) AS col1, 19 * + 50 AS col2
----
11
950

skipif mysql # not compatible
query II rowsort label-2197
SELECT + 65 + SUM ( - + 54 ) AS col1, 19 * + 50 AS col2
----
11
950

query I rowsort
SELECT + 70 - - ( - + 69 ) - 3
----
-2

query I rowsort
SELECT + 82 * + 72 AS col0
----
5904

onlyif mysql # aggregate syntax: 
query I rowsort label-2200
SELECT DISTINCT SUM( ALL - 77 ) AS col2
----
-77

skipif mysql # not compatible
query I rowsort label-2200
SELECT DISTINCT SUM ( ALL - 77 ) AS col2
----
-77

query I rowsort
SELECT + 58 + + 63 + + 94 + 39 AS col1
----
254

onlyif mysql # DIV for integer division: 
query I rowsort label-2202
SELECT ALL ( - 99 ) DIV - 92 + 78 AS col0
----
79

skipif mysql # not compatible
query I rowsort label-2202
SELECT ALL ( - 99 ) / - 92 + 78 AS col0
----
79

query I rowsort
SELECT + 34 + - - CASE WHEN NULL NOT IN ( 70 ) THEN 45 ELSE NULL END + - 88 + + + 74 * 13 * + 9 + + CASE 16 WHEN - + 94 * + ( - 12 ) - - 86 * + - NULLIF ( + ( 75 ), ( + 4 ) * + 11 - + 86 ) - 26 THEN 6 ELSE + 12 END * + 43 AS col2
----
NULL

query I rowsort
SELECT + 11 + - 83 + + - COALESCE ( + 27, - + NULLIF ( 91, - 3 * + 25 + + 23 ) ) AS col2
----
-99

query I rowsort
SELECT ALL - 49 * + 84
----
-4116

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2206
SELECT ALL ( + ( 39 ) ) * + COALESCE ( + CAST( + + SUM( 96 ) AS SIGNED ), ( + - NULLIF ( + 52, - 78 ) ) )
----
3744

skipif mysql # not compatible
query I rowsort label-2206
SELECT ALL ( + ( 39 ) ) * + COALESCE ( + CAST ( + + SUM ( 96 ) AS INTEGER ), ( + - NULLIF ( + 52, - 78 ) ) )
----
3744

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2208
SELECT DISTINCT - MAX( - 44 )
----
44

skipif mysql # not compatible
query I rowsort label-2208
SELECT DISTINCT - MAX ( - 44 )
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-2209
SELECT + 20 * CASE - - 63 WHEN + ( + COUNT( * ) ) * - + 99 * + COUNT( * ) / + 52 * - 78 THEN NULL WHEN + 88 THEN - MAX( + + 63 ) - 62 - - 38 ELSE NULL END - - 33 + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-2209
SELECT + 20 * CASE - - 63 WHEN + ( + COUNT ( * ) ) * - + 99 * + COUNT ( * ) / + 52 * - 78 THEN NULL WHEN + 88 THEN - MAX ( + + 63 ) - 62 - - 38 ELSE NULL END - - 33 + - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2210
SELECT ALL - + 7 AS col1, MAX( ALL + 55 ) AS col2
----
-7
55

skipif mysql # not compatible
query II rowsort label-2210
SELECT ALL - + 7 AS col1, MAX ( ALL + 55 ) AS col2
----
-7
55

onlyif mysql # aggregate syntax: 
query I rowsort label-2211
SELECT - + CASE 3 WHEN 45 / 90 THEN + 71 * - COUNT( * ) WHEN + CASE - 27 WHEN 82 THEN + 50 * + 93 WHEN - - 30 THEN - 75 * 39 ELSE COUNT( * ) END * 78 + 86 THEN 61 + - 99 WHEN 16 * - 47 + + 49 THEN NULL ELSE 20 END * + - 99 + NULLIF ( + 28, + 90 / - 64 ) - 99
----
1909

skipif mysql # not compatible
query I rowsort label-2211
SELECT - + CASE 3 WHEN 45 / 90 THEN + 71 * - COUNT ( * ) WHEN + CASE - 27 WHEN 82 THEN + 50 * + 93 WHEN - - 30 THEN - 75 * 39 ELSE COUNT ( * ) END * 78 + 86 THEN 61 + - 99 WHEN 16 * - 47 + + 49 THEN NULL ELSE 20 END * + - 99 + NULLIF ( + 28, + 90 / - 64 ) - 99
----
1909

query I rowsort
SELECT - ( - 42 ) * - 97
----
-4074

query I rowsort
SELECT - 51 * 69 col1
----
-3519

onlyif mysql # DIV for integer division: 
query I rowsort label-2214
SELECT 96 DIV + 15 + + 45 * - + 31
----
-1389

skipif mysql # not compatible
query I rowsort label-2214
SELECT 96 / + 15 + + 45 * - + 31
----
-1389

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2215
SELECT DISTINCT - CASE CAST( + 22 AS SIGNED ) WHEN 52 + - - 24 - + COUNT( * ) + + CAST( NULL AS SIGNED ) THEN NULL WHEN - 85 + + 48 + - - 85 THEN 16 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2215
SELECT DISTINCT - CASE CAST ( + 22 AS INTEGER ) WHEN 52 + - - 24 - + COUNT ( * ) + + CAST ( NULL AS INTEGER ) THEN NULL WHEN - 85 + + 48 + - - 85 THEN 16 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2216
SELECT + 17 * + SUM( - + 43 ) col0
----
-731

skipif mysql # not compatible
query I rowsort label-2216
SELECT + 17 * + SUM ( - + 43 ) col0
----
-731

onlyif mysql # aggregate syntax: 
query I rowsort label-2217
SELECT ALL + COUNT( * ) + + 49
----
50

skipif mysql # not compatible
query I rowsort label-2217
SELECT ALL + COUNT ( * ) + + 49
----
50

query I rowsort
SELECT 25 - + - 82 col0
----
107

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

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

query I rowsort
SELECT 17 + 47 * - 25
----
-1158

onlyif mysql # aggregate syntax: 
query I rowsort label-2221
SELECT DISTINCT + COUNT( + ( - - 11 ) ) + - - 70 * 58 * - 20
----
-81199

skipif mysql # not compatible
query I rowsort label-2221
SELECT DISTINCT + COUNT ( + ( - - 11 ) ) + - - 70 * 58 * - 20
----
-81199

query I rowsort
SELECT ALL - 0 + - - 34 AS col1
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-2223
SELECT 95 * 0 / - - 73 / + 12 + - CASE + + 58 WHEN - + 62 + 46 THEN + 57 * + - 80 * - + 61 WHEN SUM( + - COALESCE ( - 92, - 98 ) ) THEN + 57 * + 14 * - - ( - - 62 ) WHEN + 99 - + + 74 THEN NULL END + - - 12 * + + SUM( ALL 39 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2223
SELECT 95 * 0 / - - 73 / + 12 + - CASE + + 58 WHEN - + 62 + 46 THEN + 57 * + - 80 * - + 61 WHEN SUM ( + - COALESCE ( - 92, - 98 ) ) THEN + 57 * + 14 * - - ( - - 62 ) WHEN + 99 - + + 74 THEN NULL END + - - 12 * + + SUM ( ALL 39 ) AS col0
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2225
SELECT + - 23 * + - 60 + 60 + - 73 + COUNT( * ), + 95 AS col2
----
1368
95

skipif mysql # not compatible
query II rowsort label-2225
SELECT + - 23 * + - 60 + 60 + - 73 + COUNT ( * ), + 95 AS col2
----
1368
95

query I rowsort
SELECT DISTINCT + ( + 4 ) + + 72 AS col2
----
76

query II rowsort
SELECT DISTINCT 38 AS col1, 82 col2
----
38
82

onlyif mysql # aggregate syntax: 
query I rowsort label-2228
SELECT DISTINCT - SUM( 61 ) + 58
----
-3

skipif mysql # not compatible
query I rowsort label-2228
SELECT DISTINCT - SUM ( 61 ) + 58
----
-3

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

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

query I rowsort
SELECT 27 + - 83 + + 7 AS col0
----
-49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2231
SELECT ( - CAST( + 80 AS SIGNED ) ) + + 45 AS col1
----
-35

skipif mysql # not compatible
query I rowsort label-2231
SELECT ( - CAST ( + 80 AS INTEGER ) ) + + 45 AS col1
----
-35

query II rowsort
SELECT DISTINCT 3 AS col2, 10 AS col0
----
3
10

query I rowsort
SELECT 17 * - 35 AS col1
----
-595

onlyif mysql # aggregate syntax: 
query I rowsort label-2234
SELECT SUM( DISTINCT 20 ) * - COUNT( * ) AS col2
----
-20

skipif mysql # not compatible
query I rowsort label-2234
SELECT SUM ( DISTINCT 20 ) * - COUNT ( * ) AS col2
----
-20

query I rowsort
SELECT DISTINCT ( + - 95 ) - 53 + + 25 * - 87 AS col1
----
-2323

query II rowsort
SELECT ALL 12 AS col2, + 22
----
12
22

query I rowsort
SELECT 33 + 61
----
94

query II rowsort
SELECT DISTINCT 14 AS col0, + ( 19 ) AS col0
----
14
19

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2240
SELECT DISTINCT ( - 12 ) - COUNT( + + 85 ) * 74
----
-86

skipif mysql # not compatible
query I rowsort label-2240
SELECT DISTINCT ( - 12 ) - COUNT ( + + 85 ) * 74
----
-86

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2242
SELECT ( - + 7 ) + - 97 * + CAST( NULL AS SIGNED ) * - + SUM( ALL + ( + 86 ) ) * + 83 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2242
SELECT ( - + 7 ) + - 97 * + CAST ( NULL AS INTEGER ) * - + SUM ( ALL + ( + 86 ) ) * + 83 AS col1
----
NULL

query II rowsort
SELECT ALL - 81 AS col1, + 2 + - 37
----
-81
-35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2244
SELECT CASE + + 22 WHEN 93 * + + 1 + + 25 THEN COUNT( DISTINCT 18 ) * 77 / ( + 28 ) * + - 55 * - - COUNT( * ) - - CAST( - 61 AS SIGNED ) + - 70 * + 54 + - ( + ( + COUNT( * ) ) ) - - - 64 - + CASE + 54 WHEN ( + 83 ) THEN NULLIF ( + - 62, - ( - COUNT( ALL 91 ) ) ) * - 84 WHEN - ( + CASE 54 WHEN + 18 THEN - ( + 5 ) WHEN 31 THEN NULL ELSE NULL END ) THEN 27 + COALESCE ( CAST( NULL AS SIGNED ), 52 ) * - 88 ELSE 19 * - 15 END / 74 WHEN 44 THEN CASE - ( + 46 ) WHEN - 8 THEN 94 ELSE NULL END ELSE NULL END / 34 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2244
SELECT CASE + + 22 WHEN 93 * + + 1 + + 25 THEN COUNT ( DISTINCT 18 ) * 77 / ( + 28 ) * + - 55 * - - COUNT ( * ) - - CAST ( - 61 AS INTEGER ) + - 70 * + 54 + - ( + ( + COUNT ( * ) ) ) - - - 64 - + CASE + 54 WHEN ( + 83 ) THEN NULLIF ( + - 62, - ( - COUNT ( ALL 91 ) ) ) * - 84 WHEN - ( + CASE 54 WHEN + 18 THEN - ( + 5 ) WHEN 31 THEN NULL ELSE NULL END ) THEN 27 + COALESCE ( CAST ( NULL AS INTEGER ), 52 ) * - 88 ELSE 19 * - 15 END / 74 WHEN 44 THEN CASE - ( + 46 ) WHEN - 8 THEN 94 ELSE NULL END ELSE NULL END / 34 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2245
SELECT + + 99 * - - COUNT( * ) + - 38 * 94 * - + 64 + - 20 + - + 15
----
228672

skipif mysql # not compatible
query I rowsort label-2245
SELECT + + 99 * - - COUNT ( * ) + - 38 * 94 * - + 64 + - 20 + - + 15
----
228672

query II rowsort
SELECT ALL - 73, 95 AS col2
----
-73
95

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2247
SELECT ALL 58 + 77 + - 32 DIV 5 * - COUNT( * ) AS col2
----
141

skipif mysql # not compatible
query I rowsort label-2247
SELECT ALL 58 + 77 + - 32 / 5 * - COUNT ( * ) AS col2
----
141

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

skipif mysql # not compatible
query I rowsort label-2248
SELECT 63 / - 67 + + COUNT ( * )
----
1

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2250
SELECT + - 42 AS col1, + MIN( 42 )
----
-42
42

skipif mysql # not compatible
query II rowsort label-2250
SELECT + - 42 AS col1, + MIN ( 42 )
----
-42
42

onlyif mysql # aggregate syntax: 
query I rowsort label-2251
SELECT COUNT( * ) * + + 83 + - - 22
----
105

skipif mysql # not compatible
query I rowsort label-2251
SELECT COUNT ( * ) * + + 83 + - - 22
----
105

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

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

query I rowsort
SELECT ALL + 29 + - 73 AS col0
----
-44

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

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

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

skipif mysql # not compatible
query I rowsort label-2255
SELECT + ( + SUM ( ( - - 25 ) ) )
----
25

query I rowsort
SELECT DISTINCT + 47 * + 60
----
2820

query I rowsort
SELECT + 43 * 74 + - 83 AS col0
----
3099

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2258
SELECT 27 * + CAST( 11 AS SIGNED )
----
297

skipif mysql # not compatible
query I rowsort label-2258
SELECT 27 * + CAST ( 11 AS INTEGER )
----
297

query I rowsort
SELECT 11 * 18 AS col0
----
198

onlyif mysql # aggregate syntax: 
query I rowsort label-2260
SELECT 17 - - 18 * - COALESCE ( - 10, 71 * - 17 - - COUNT( * ) ) * 82 + 92 + - - 88
----
14957

skipif mysql # not compatible
query I rowsort label-2260
SELECT 17 - - 18 * - COALESCE ( - 10, 71 * - 17 - - COUNT ( * ) ) * 82 + 92 + - - 88
----
14957

onlyif mysql # DIV for integer division: 
query I rowsort label-2261
SELECT DISTINCT 82 * 55 DIV + 41 AS col1
----
110

skipif mysql # not compatible
query I rowsort label-2261
SELECT DISTINCT 82 * 55 / + 41 AS col1
----
110

onlyif mysql # aggregate syntax: 
query II rowsort label-2262
SELECT ALL COUNT( + - NULLIF ( 40, 48 + 79 + - - NULLIF ( 90, NULLIF ( + 49, + 46 ) ) + + + 96 / + + 10 * - - 22 ) ) AS col1, 12
----
1
12

skipif mysql # not compatible
query II rowsort label-2262
SELECT ALL COUNT ( + - NULLIF ( 40, 48 + 79 + - - NULLIF ( 90, NULLIF ( + 49, + 46 ) ) + + + 96 / + + 10 * - - 22 ) ) AS col1, 12
----
1
12

query I rowsort
SELECT ALL NULLIF ( - - 81, + 77 / + 52 )
----
81

onlyif mysql # DIV for integer division: 
query II rowsort label-2264
SELECT 42 DIV + 28, 59 AS col0
----
1
59

skipif mysql # not compatible
query II rowsort label-2264
SELECT 42 / + 28, 59 AS col0
----
1
59

onlyif mysql # aggregate syntax: 
query I rowsort label-2265
SELECT - COUNT( * ) * - 47 AS col0
----
47

skipif mysql # not compatible
query I rowsort label-2265
SELECT - COUNT ( * ) * - 47 AS col0
----
47

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

skipif mysql # not compatible
query I rowsort label-2266
SELECT ALL COUNT ( CAST ( + ( + + 78 ) AS INTEGER ) )
----
1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2268
SELECT - 81 - - COUNT( * ) AS col2
----
-80

skipif mysql # not compatible
query I rowsort label-2268
SELECT - 81 - - COUNT ( * ) AS col2
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-2269
SELECT - COUNT( DISTINCT 94 ) * - 18 * - 89 AS col1
----
-1602

skipif mysql # not compatible
query I rowsort label-2269
SELECT - COUNT ( DISTINCT 94 ) * - 18 * - 89 AS col1
----
-1602

query I rowsort
SELECT + ( - 25 ) * + 6
----
-150

query I rowsort
SELECT ALL NULLIF ( + + 2, - 69 ) AS col1
----
2

query I rowsort
SELECT - 45 + 96 AS col0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-2273
SELECT DISTINCT + 7 + + SUM( ALL + - 48 )
----
-41

skipif mysql # not compatible
query I rowsort label-2273
SELECT DISTINCT + 7 + + SUM ( ALL + - 48 )
----
-41

query I rowsort
SELECT DISTINCT - 49 + + - 28 AS col0
----
-77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2275
SELECT ALL COUNT( * ) * - - 97 - + 70 + - + 16 * + - NULLIF ( + 58, + - 2 * 42 ) * 44 * - 31 * COUNT( * ) + + 20 + - ( MIN( ALL + 74 ) ) * ( + + 58 ) / + - ( - - 9 ) + + CAST( NULL AS DECIMAL ) / - 65 - CASE - 39 WHEN - 48 + 66 THEN NULL WHEN + 76 THEN + COUNT( * ) END / + CAST( 82 - + 92 * - ( 99 * - 45 ) AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2275
SELECT ALL COUNT ( * ) * - - 97 - + 70 + - + 16 * + - NULLIF ( + 58, + - 2 * 42 ) * 44 * - 31 * COUNT ( * ) + + 20 + - ( MIN ( ALL + 74 ) ) * ( + + 58 ) / + - ( - - 9 ) + + CAST ( NULL AS REAL ) / - 65 - CASE - 39 WHEN - 48 + 66 THEN NULL WHEN + 76 THEN + COUNT ( * ) END / + CAST ( 82 - + 92 * - ( 99 * - 45 ) AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2276
SELECT - CAST( - 31 AS SIGNED ) * 25 * - COUNT( + 85 )
----
-775

skipif mysql # not compatible
query I rowsort label-2276
SELECT - CAST ( - 31 AS INTEGER ) * 25 * - COUNT ( + 85 )
----
-775

onlyif mysql # aggregate syntax: 
query I rowsort label-2277
SELECT ALL + - COUNT( * ) + 23 * - 35 + + + SUM( ALL 52 ) AS col2
----
-754

skipif mysql # not compatible
query I rowsort label-2277
SELECT ALL + - COUNT ( * ) + 23 * - 35 + + + SUM ( ALL 52 ) AS col2
----
-754

query I rowsort
SELECT ALL - 16 + 77 + + 75
----
136

onlyif mysql # aggregate syntax: 
query III rowsort label-2279
SELECT ALL 30 + + - 10 col0, - 40 AS col1, + 25 * COALESCE ( + 67, - + COUNT( * ) ) * + 88 - COUNT( * ) + ( + 29 ) AS col2
----
20
-40
147428

skipif mysql # not compatible
query III rowsort label-2279
SELECT ALL 30 + + - 10 col0, - 40 AS col1, + 25 * COALESCE ( + 67, - + COUNT ( * ) ) * + 88 - COUNT ( * ) + ( + 29 ) AS col2
----
20
-40
147428

onlyif mysql # aggregate syntax: 
query I rowsort label-2280
SELECT ALL + - 40 * + + 50 + COUNT( * ) col1
----
-1999

skipif mysql # not compatible
query I rowsort label-2280
SELECT ALL + - 40 * + + 50 + COUNT ( * ) col1
----
-1999

onlyif mysql # aggregate syntax: 
query I rowsort label-2281
SELECT - - 19 + - + MIN( + 65 )
----
-46

skipif mysql # not compatible
query I rowsort label-2281
SELECT - - 19 + - + MIN ( + 65 )
----
-46

query I rowsort
SELECT + - 55 + - 73 AS col2
----
-128

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2283
SELECT + + COALESCE ( + CAST( NULL AS SIGNED ), + COUNT( * ) + - 17 * + + 20 ) AS col2, + 14 AS col0
----
-339
14

skipif mysql # not compatible
query II rowsort label-2283
SELECT + + COALESCE ( + CAST ( NULL AS INTEGER ), + COUNT ( * ) + - 17 * + + 20 ) AS col2, + 14 AS col0
----
-339
14

query I rowsort
SELECT CASE - 92 WHEN - - 32 * - 34 THEN NULL WHEN - AVG ( - - 96 ) THEN - 29 + - 1 - - 82 - + 6 * + 29 ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2285
SELECT ALL + 87 * 6 * 78 * + 21 * - + 80 + COUNT( * ) + - - 72 * - + 92 + - - 39 + - + COUNT( * ) + + 36 * + 7 AS col0
----
-68409213

skipif mysql # not compatible
query I rowsort label-2285
SELECT ALL + 87 * 6 * 78 * + 21 * - + 80 + COUNT ( * ) + - - 72 * - + 92 + - - 39 + - + COUNT ( * ) + + 36 * + 7 AS col0
----
-68409213

query I rowsort
SELECT - CASE + - 94 WHEN + 19 + - COALESCE ( + - 50, + + 19 ) + - + 38 + + 57 + - 60 * + - 38 THEN - 24 / + 66 * 36 + - 23 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2287
SELECT DISTINCT + + CASE + 10 WHEN COALESCE ( + NULLIF ( - - COALESCE ( + - 35, ( - 81 ) - - 14, 91 ), + + 26 * - + ( - 84 ) * - - 39 ), 14 + + 10 + - 65 + + + SUM( - - 6 ) / + 91 - - 78, - 69 * + - 3 * - - COUNT( 54 ) ) + - 33 THEN - ( - 42 ) + 36 WHEN - 78 + 6 THEN 91 * 81 ELSE 88 + - COUNT( * ) * 71 END
----
17

skipif mysql # not compatible
query I rowsort label-2287
SELECT DISTINCT + + CASE + 10 WHEN COALESCE ( + NULLIF ( - - COALESCE ( + - 35, ( - 81 ) - - 14, 91 ), + + 26 * - + ( - 84 ) * - - 39 ), 14 + + 10 + - 65 + + + SUM ( - - 6 ) / + 91 - - 78, - 69 * + - 3 * - - COUNT ( 54 ) ) + - 33 THEN - ( - 42 ) + 36 WHEN - 78 + 6 THEN 91 * 81 ELSE 88 + - COUNT ( * ) * 71 END
----
17

query I rowsort
SELECT ALL + 58 * - 1 * - 73 + - 92 AS col2
----
4142

query I rowsort
SELECT ALL 32 * 77 + + - 85 + + + 98 AS col2
----
2477

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2291
SELECT ALL ( 65 ) * - ( - MIN( ALL - ( - 15 ) ) ) + SUM( DISTINCT + + 42 ) col1
----
1017

skipif mysql # not compatible
query I rowsort label-2291
SELECT ALL ( 65 ) * - ( - MIN ( ALL - ( - 15 ) ) ) + SUM ( DISTINCT + + 42 ) col1
----
1017

onlyif mysql # aggregate syntax: 
query I rowsort label-2292
SELECT ALL - - COALESCE ( + MAX( - 48 ), + 11 ) * + 10 + + 68 + - 55 - - COALESCE ( - 71, 93 * + - 84 ) AS col2
----
-538

skipif mysql # not compatible
query I rowsort label-2292
SELECT ALL - - COALESCE ( + MAX ( - 48 ), + 11 ) * + 10 + + 68 + - 55 - - COALESCE ( - 71, 93 * + - 84 ) AS col2
----
-538

onlyif mysql # aggregate syntax: 
query I rowsort label-2293
SELECT + + COUNT( * ) + - - NULLIF ( - 20, - - 12 ) * + COUNT( * ) * + 5 AS col2
----
-99

skipif mysql # not compatible
query I rowsort label-2293
SELECT + + COUNT ( * ) + - - NULLIF ( - 20, - - 12 ) * + COUNT ( * ) * + 5 AS col2
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-2294
SELECT + CASE + - 6 WHEN + - COUNT( ALL - - 24 ) + 69 THEN NULL ELSE + - 6 END
----
-6

skipif mysql # not compatible
query I rowsort label-2294
SELECT + CASE + - 6 WHEN + - COUNT ( ALL - - 24 ) + 69 THEN NULL ELSE + - 6 END
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-2295
SELECT + COUNT( ALL 39 ) + - COALESCE ( - CASE 23 WHEN + + 65 THEN - NULLIF ( + + ( + - 55 ), + 10 ) ELSE 81 END, 23 ) - 98 * + 60 * + - 45 AS col2
----
264682

skipif mysql # not compatible
query I rowsort label-2295
SELECT + COUNT ( ALL 39 ) + - COALESCE ( - CASE 23 WHEN + + 65 THEN - NULLIF ( + + ( + - 55 ), + 10 ) ELSE 81 END, 23 ) - 98 * + 60 * + - 45 AS col2
----
264682

query I rowsort
SELECT ALL ( 46 ) * + 6
----
276

query I rowsort
SELECT NULLIF ( + + 88, 80 ) col0
----
88

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2299
SELECT COUNT( * ), + 42 * + + 98 AS col0
----
1
4116

skipif mysql # not compatible
query II rowsort label-2299
SELECT COUNT ( * ), + 42 * + + 98 AS col0
----
1
4116

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

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

query I rowsort
SELECT + 12 + + 42
----
54

query II rowsort
SELECT ALL + 71, + 91 AS col1
----
71
91

onlyif mysql # aggregate syntax: 
query II rowsort label-2303
SELECT ALL COUNT( * ) AS col2, 31 * - 39 AS col2
----
1
-1209

skipif mysql # not compatible
query II rowsort label-2303
SELECT ALL COUNT ( * ) AS col2, 31 * - 39 AS col2
----
1
-1209

query I rowsort
SELECT ALL - 90 * 2 * - 61
----
10980

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2305
SELECT - 75 DIV 32 DIV 28 * - COUNT( * ) DIV + 74
----
0

skipif mysql # not compatible
query I rowsort label-2305
SELECT - 75 / 32 / 28 * - COUNT ( * ) / + 74
----
0

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2308
SELECT DISTINCT + - COALESCE ( + - 53, + 40 ) + COUNT( + 26 ) AS col0
----
54

skipif mysql # not compatible
query I rowsort label-2308
SELECT DISTINCT + - COALESCE ( + - 53, + 40 ) + COUNT ( + 26 ) AS col0
----
54

query I rowsort
SELECT - + 90 - 13 col0
----
-103

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

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

query II rowsort
SELECT + 15 AS col0, 67 * - 97 AS col2
----
15
-6499

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2312
SELECT - 6 + - - 24 - - 99 * + ( + 84 ) - + + 37 AS col2, SUM( ALL + COALESCE ( + 19, + 75 ) ) * + - 63 + + + CAST( NULL AS SIGNED ) * + 28 - + CAST( 30 AS SIGNED ) + + 4 * COUNT( * ) + 21
----
8297
NULL

skipif mysql # not compatible
query II rowsort label-2312
SELECT - 6 + - - 24 - - 99 * + ( + 84 ) - + + 37 AS col2, SUM ( ALL + COALESCE ( + 19, + 75 ) ) * + - 63 + + + CAST ( NULL AS INTEGER ) * + 28 - + CAST ( 30 AS INTEGER ) + + 4 * COUNT ( * ) + 21
----
8297
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2313
SELECT DISTINCT + CASE 8 WHEN + + 99 * COALESCE ( + ( - + 20 ), - COUNT( * ) ) THEN NULL WHEN COUNT( * ) * - 98 THEN - 70 END + + SUM( DISTINCT - 91 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2313
SELECT DISTINCT + CASE 8 WHEN + + 99 * COALESCE ( + ( - + 20 ), - COUNT ( * ) ) THEN NULL WHEN COUNT ( * ) * - 98 THEN - 70 END + + SUM ( DISTINCT - 91 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2314
SELECT ALL + + 25 + + 10 DIV - COUNT( * ) + 54 + + + 15 * + - 42 + + - ( - + COALESCE ( + + 97, - + 92 ) ) + + - 80 * 90 * 41
----
-295664

skipif mysql # not compatible
query I rowsort label-2314
SELECT ALL + + 25 + + 10 / - COUNT ( * ) + 54 + + + 15 * + - 42 + + - ( - + COALESCE ( + + 97, - + 92 ) ) + + - 80 * 90 * 41
----
-295664

query II rowsort
SELECT + 65, 49 AS col0
----
65
49

query I rowsort
SELECT DISTINCT - 44 col1
----
-44

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2318
SELECT ALL - 39 DIV - 93 + - 10 DIV - 97 - - 90 AS col0
----
90

skipif mysql # not compatible
query I rowsort label-2318
SELECT ALL - 39 / - 93 + - 10 / - 97 - - 90 AS col0
----
90

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

skipif mysql # not compatible
query I rowsort label-2319
SELECT + 9 + - - 48 + + 67 - CAST ( NULL AS INTEGER )
----
NULL

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2321
SELECT + 53 DIV 31 DIV - - COUNT( * ) - + + 99 - 61
----
-159

skipif mysql # not compatible
query I rowsort label-2321
SELECT + 53 / 31 / - - COUNT ( * ) - + + 99 - 61
----
-159

onlyif mysql # DIV for integer division: 
query I rowsort label-2322
SELECT - 75 DIV - + 84
----
0

skipif mysql # not compatible
query I rowsort label-2322
SELECT - 75 / - + 84
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2323
SELECT + CAST( - + 46 AS SIGNED ) AS col1
----
-46

skipif mysql # not compatible
query I rowsort label-2323
SELECT + CAST ( - + 46 AS INTEGER ) AS col1
----
-46

onlyif mysql # DIV for integer division: 
query I rowsort label-2324
SELECT - 18 DIV - 91 * - 65
----
0

skipif mysql # not compatible
query I rowsort label-2324
SELECT - 18 / - 91 * - 65
----
0

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

skipif mysql # not compatible
query I rowsort label-2325
SELECT ALL COUNT ( * ) / - 26 col0
----
0

query I rowsort
SELECT + NULLIF ( - 54, - - 79 ) AS col0
----
-54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2327
SELECT ALL + MIN( + CAST( + 2 AS SIGNED ) ) AS col1
----
2

skipif mysql # not compatible
query I rowsort label-2327
SELECT ALL + MIN ( + CAST ( + 2 AS INTEGER ) ) AS col1
----
2

query I rowsort
SELECT DISTINCT 65 * - - 51 AS col2
----
3315

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

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

query I rowsort
SELECT 55 * + 8
----
440

query II rowsort
SELECT ALL 64 + + + 61 col2, 41
----
125
41

onlyif mysql # aggregate syntax: 
query I rowsort label-2332
SELECT 45 * COUNT( 47 ) col0
----
45

skipif mysql # not compatible
query I rowsort label-2332
SELECT 45 * COUNT ( 47 ) col0
----
45

query I rowsort
SELECT 80 * - 17 * + 39
----
-53040

onlyif mysql # aggregate syntax: 
query II rowsort label-2334
SELECT 51 - - 77 col2, 73 + - COUNT( ALL + 62 )
----
128
72

skipif mysql # not compatible
query II rowsort label-2334
SELECT 51 - - 77 col2, 73 + - COUNT ( ALL + 62 )
----
128
72

query I rowsort
SELECT ALL 16 + - 11 + 36 AS col2
----
41

query I rowsort
SELECT ( - + 36 ) + - 84 * + 65
----
-5496

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

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

query I rowsort
SELECT DISTINCT 87 * + 22 AS col1
----
1914

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2339
SELECT 70 + - + 63, 93 DIV + COUNT( - 75 ) AS col0
----
7
93

skipif mysql # not compatible
query II rowsort label-2339
SELECT 70 + - + 63, 93 / + COUNT ( - 75 ) AS col0
----
7
93

onlyif mysql # aggregate syntax: 
query I rowsort label-2340
SELECT ALL - 59 + COALESCE ( 39, + 87 ) + + 6 + + NULLIF ( + MAX( ALL + 67 ), + COUNT( * ) ) AS col0
----
53

skipif mysql # not compatible
query I rowsort label-2340
SELECT ALL - 59 + COALESCE ( 39, + 87 ) + + 6 + + NULLIF ( + MAX ( ALL + 67 ), + COUNT ( * ) ) AS col0
----
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2341
SELECT 7 + - 58 - 45 * + 20 * - CAST( - + COUNT( * ) AS SIGNED ) AS col0
----
-951

skipif mysql # not compatible
query I rowsort label-2341
SELECT 7 + - 58 - 45 * + 20 * - CAST ( - + COUNT ( * ) AS INTEGER ) AS col0
----
-951

onlyif mysql # aggregate syntax: 
query I rowsort label-2342
SELECT ALL + COUNT( * ) + 15 * + 21
----
316

skipif mysql # not compatible
query I rowsort label-2342
SELECT ALL + COUNT ( * ) + 15 * + 21
----
316

query I rowsort
SELECT DISTINCT + 6 - + + 56
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-2344
SELECT ALL + - SUM( ALL - - ( + - 31 ) ) * - ( - 36 ) col0
----
1116

skipif mysql # not compatible
query I rowsort label-2344
SELECT ALL + - SUM ( ALL - - ( + - 31 ) ) * - ( - 36 ) col0
----
1116

query I rowsort
SELECT DISTINCT 35 * ( - - 59 )
----
2065

query I rowsort
SELECT DISTINCT 49 * 88 AS col2
----
4312

onlyif mysql # aggregate syntax: 
query I rowsort label-2347
SELECT MAX( - ( 54 ) ) * 4 AS col2
----
-216

skipif mysql # not compatible
query I rowsort label-2347
SELECT MAX ( - ( 54 ) ) * 4 AS col2
----
-216

query I rowsort
SELECT 97 + + 73 + - + 79
----
91

query I rowsort
SELECT DISTINCT - + 76 AS col1
----
-76

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2350
SELECT - 50 * - CAST( NULL AS DECIMAL ) + - ( - 83 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2350
SELECT - 50 * - CAST ( NULL AS REAL ) + - ( - 83 )
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2351
SELECT 87 * NULLIF ( + CAST( NULL AS DECIMAL ), - 38 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2351
SELECT 87 * NULLIF ( + CAST ( NULL AS REAL ), - 38 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2352
SELECT ALL - - NULLIF ( + + COUNT( * ), 11 ) - - - 97 AS col0
----
-96

skipif mysql # not compatible
query I rowsort label-2352
SELECT ALL - - NULLIF ( + + COUNT ( * ), 11 ) - - - 97 AS col0
----
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2353
SELECT - ( - - CAST( - - 94 AS SIGNED ) ) * - 29 AS col2
----
2726

skipif mysql # not compatible
query I rowsort label-2353
SELECT - ( - - CAST ( - - 94 AS INTEGER ) ) * - 29 AS col2
----
2726

onlyif mysql # DIV for integer division: 
query I rowsort label-2354
SELECT 35 DIV + 56 + - COALESCE ( - 97, - ( - 74 ), 91 ) * 79
----
7663

skipif mysql # not compatible
query I rowsort label-2354
SELECT 35 / + 56 + - COALESCE ( - 97, - ( - 74 ), 91 ) * 79
----
7663

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

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

query I rowsort
SELECT ALL - CASE - 66 WHEN - 52 / - 79 * + 44 * + - 81 * + 8 * + 42 THEN - 51 * - + 76 ELSE NULL END
----
NULL

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2358
SELECT + 37 * + COUNT( ALL 77 ) + MIN( DISTINCT - 28 ) * + - NULLIF ( + + 0, - 33 - 49 + + CAST( - 7 AS SIGNED ) * - 13 * + 3 + + MIN( ALL 59 ) ) AS col1
----
37

skipif mysql # not compatible
query I rowsort label-2358
SELECT + 37 * + COUNT ( ALL 77 ) + MIN ( DISTINCT - 28 ) * + - NULLIF ( + + 0, - 33 - 49 + + CAST ( - 7 AS INTEGER ) * - 13 * + 3 + + MIN ( ALL 59 ) ) AS col1
----
37

query I rowsort
SELECT 42 + + 86 * - 98 * - 58 AS col1
----
488866

onlyif mysql # aggregate syntax: 
query I rowsort label-2360
SELECT DISTINCT 82 + COUNT( * )
----
83

skipif mysql # not compatible
query I rowsort label-2360
SELECT DISTINCT 82 + COUNT ( * )
----
83

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2362
SELECT ALL - CASE - 13 WHEN + + 58 * + ( + 50 ) + + + NULLIF ( 32, + 47 + + 2 + + + 1 * - - 6 ) + + CASE - - 25 WHEN - + MIN( + + 59 ) THEN 32 * + CAST( NULL AS DECIMAL ) END THEN - 78 WHEN + + 32 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2362
SELECT ALL - CASE - 13 WHEN + + 58 * + ( + 50 ) + + + NULLIF ( 32, + 47 + + 2 + + + 1 * - - 6 ) + + CASE - - 25 WHEN - + MIN ( + + 59 ) THEN 32 * + CAST ( NULL AS REAL ) END THEN - 78 WHEN + + 32 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2363
SELECT ALL 17 + ( + 58 ), MIN( - 26 ) AS col0
----
75
-26

skipif mysql # not compatible
query II rowsort label-2363
SELECT ALL 17 + ( + 58 ), MIN ( - 26 ) AS col0
----
75
-26

query I rowsort
SELECT 61 + - 53
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-2365
SELECT ALL - 27 + - 14 - - ( + + MIN( + + 53 ) ) + + COUNT( * ) + COUNT( * ) + - 55 * + 96
----
-5266

skipif mysql # not compatible
query I rowsort label-2365
SELECT ALL - 27 + - 14 - - ( + + MIN ( + + 53 ) ) + + COUNT ( * ) + COUNT ( * ) + - 55 * + 96
----
-5266

query I rowsort
SELECT DISTINCT - ( 65 ) AS col2
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-2367
SELECT ALL COUNT( * ) + + + 14 - 7
----
8

skipif mysql # not compatible
query I rowsort label-2367
SELECT ALL COUNT ( * ) + + + 14 - 7
----
8

onlyif mysql # DIV for integer division: 
query I rowsort label-2368
SELECT ALL + 55 DIV 6 AS col1
----
9

skipif mysql # not compatible
query I rowsort label-2368
SELECT ALL + 55 / 6 AS col1
----
9

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2370
SELECT - 30 AS col1, - SUM( DISTINCT - 86 ) AS col0
----
-30
86

skipif mysql # not compatible
query II rowsort label-2370
SELECT - 30 AS col1, - SUM ( DISTINCT - 86 ) AS col0
----
-30
86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2371
SELECT + 41 * + - 56 * COALESCE ( + 5, + 92 / - 13 ) + 10 - - CAST( + - 58 AS DECIMAL ) * + 70 + 74 * + CASE - 54 WHEN + 79 THEN NULL WHEN + 67 * + 57 - - - CASE + 86 WHEN 34 THEN - + 38 WHEN + MIN( + 85 ) THEN + 11 * + 93 - + 4 ELSE NULL END + - + MAX( - CAST( + 14 AS SIGNED ) ) THEN + 80 / - COUNT( * ) - 46 ELSE NULL END + 81 * + 61 + + ( - NULLIF ( 71, - COUNT( * ) ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2371
SELECT + 41 * + - 56 * COALESCE ( + 5, + 92 / - 13 ) + 10 - - CAST ( + - 58 AS REAL ) * + 70 + 74 * + CASE - 54 WHEN + 79 THEN NULL WHEN + 67 * + 57 - - - CASE + 86 WHEN 34 THEN - + 38 WHEN + MIN ( + 85 ) THEN + 11 * + 93 - + 4 ELSE NULL END + - + MAX ( - CAST ( + 14 AS INTEGER ) ) THEN + 80 / - COUNT ( * ) - 46 ELSE NULL END + 81 * + 61 + + ( - NULLIF ( 71, - COUNT ( * ) ) ) AS col1
----
NULL

query I rowsort
SELECT ALL 35 * 71
----
2485

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2374
SELECT DISTINCT - COUNT( * ) - + - 83
----
82

skipif mysql # not compatible
query I rowsort label-2374
SELECT DISTINCT - COUNT ( * ) - + - 83
----
82

query I rowsort
SELECT - 41 + + + 74 AS col0
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-2376
SELECT DISTINCT 80 - MAX( DISTINCT + 26 ) AS col2
----
54

skipif mysql # not compatible
query I rowsort label-2376
SELECT DISTINCT 80 - MAX ( DISTINCT + 26 ) AS col2
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-2377
SELECT ALL 24 * - + 37 - + + 79 + - - 53 * + COUNT( * ) * - 64 * - COUNT( * ) AS col1
----
2425

skipif mysql # not compatible
query I rowsort label-2377
SELECT ALL 24 * - + 37 - + + 79 + - - 53 * + COUNT ( * ) * - 64 * - COUNT ( * ) AS col1
----
2425

onlyif mysql # aggregate syntax: 
query I rowsort label-2378
SELECT DISTINCT - NULLIF ( - + COUNT( * ), - 69 + + ( 30 ) + + 92 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2378
SELECT DISTINCT - NULLIF ( - + COUNT ( * ), - 69 + + ( 30 ) + + 92 ) AS col0
----
1

query I rowsort
SELECT 35 - + - 21
----
56

query I rowsort
SELECT - 82 * - 1
----
82

query I rowsort
SELECT + 21 * 17
----
357

query I rowsort
SELECT + 91 + + 62 AS col2
----
153

onlyif mysql # aggregate syntax: 
query I rowsort label-2383
SELECT ALL + SUM( DISTINCT + 12 )
----
12

skipif mysql # not compatible
query I rowsort label-2383
SELECT ALL + SUM ( DISTINCT + 12 )
----
12

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2385
SELECT COUNT( * ) * COUNT( * ) + - + 17
----
-16

skipif mysql # not compatible
query I rowsort label-2385
SELECT COUNT ( * ) * COUNT ( * ) + - + 17
----
-16

query I rowsort
SELECT ALL + - ( 3 ) * ( 30 ) AS col1
----
-90

onlyif mysql # DIV for integer division: 
query I rowsort label-2387
SELECT DISTINCT 27 DIV - 76 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2387
SELECT DISTINCT 27 / - 76 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2388
SELECT 50 - + - 87 + ( 24 ) + + - COUNT( * )
----
160

skipif mysql # not compatible
query I rowsort label-2388
SELECT 50 - + - 87 + ( 24 ) + + - COUNT ( * )
----
160

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

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

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

skipif mysql # not compatible
query I rowsort label-2390
SELECT - COUNT ( * ) * 67 / - 47 AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2391
SELECT ALL - 80 * + NULLIF ( + ( 74 ), + COUNT( * ) ) * 52 * + 46 + + 24 AS col2
----
-14160616

skipif mysql # not compatible
query I rowsort label-2391
SELECT ALL - 80 * + NULLIF ( + ( 74 ), + COUNT ( * ) ) * 52 * + 46 + + 24 AS col2
----
-14160616

onlyif mysql # aggregate syntax: 
query I rowsort label-2392
SELECT - 89 * - + 96 * - - COUNT( * ) AS col2
----
8544

skipif mysql # not compatible
query I rowsort label-2392
SELECT - 89 * - + 96 * - - COUNT ( * ) AS col2
----
8544

onlyif mysql # aggregate syntax: 
query I rowsort label-2393
SELECT ALL + 30 * + 57 + COUNT( + + 73 ) AS col0
----
1711

skipif mysql # not compatible
query I rowsort label-2393
SELECT ALL + 30 * + 57 + COUNT ( + + 73 ) AS col0
----
1711

query I rowsort
SELECT DISTINCT + 47 * + NULLIF ( - + ( + 97 ), - 83 ) + - - 63
----
-4496

onlyif mysql # DIV for integer division: 
query I rowsort label-2395
SELECT - 14 DIV - + 10 + 99 AS col1
----
100

skipif mysql # not compatible
query I rowsort label-2395
SELECT - 14 / - + 10 + 99 AS col1
----
100

query II rowsort
SELECT + 92 AS col0, - ( 2 ) * - 71
----
92
142

onlyif mysql # DIV for integer division: 
query I rowsort label-2397
SELECT + 77 DIV + 97 col2
----
0

skipif mysql # not compatible
query I rowsort label-2397
SELECT + 77 / + 97 col2
----
0

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

skipif mysql # not compatible
query I rowsort label-2398
SELECT - ( - COUNT ( * ) ) * + 0 + - + 62 * + COUNT ( * ) / - - 71
----
0

query I rowsort
SELECT + 53 * + 10 * + + 68
----
36040

onlyif mysql # aggregate syntax: 
query I rowsort label-2400
SELECT - MAX( DISTINCT - 94 ) * + - COALESCE ( - COUNT( + 74 ), 56 + - - COALESCE ( + 11, - 63 + + 32, ( + 90 ) ) ) * - 70
----
-6580

skipif mysql # not compatible
query I rowsort label-2400
SELECT - MAX ( DISTINCT - 94 ) * + - COALESCE ( - COUNT ( + 74 ), 56 + - - COALESCE ( + 11, - 63 + + 32, ( + 90 ) ) ) * - 70
----
-6580

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2401
SELECT COALESCE ( 11, - + 27 * + ( - - 22 ) + - + 29 + + - 86 + + 17 + + + 2 + - COUNT( * ) + + 1 + 46 DIV - + CAST( NULL AS SIGNED ) * + - 55 * 43 * CASE + 52 WHEN COUNT( * ) THEN 15 END * + 16 )
----
11

skipif mysql # not compatible
query I rowsort label-2401
SELECT COALESCE ( 11, - + 27 * + ( - - 22 ) + - + 29 + + - 86 + + 17 + + + 2 + - COUNT ( * ) + + 1 + 46 / - + CAST ( NULL AS INTEGER ) * + - 55 * 43 * CASE + 52 WHEN COUNT ( * ) THEN 15 END * + 16 )
----
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2402
SELECT NULLIF ( + COUNT( * ), + - 98 * - 49 / + ( - + CAST( NULL AS SIGNED ) ) - + ( + - 69 ) + 99 + + 31 )
----
1

skipif mysql # not compatible
query I rowsort label-2402
SELECT NULLIF ( + COUNT ( * ), + - 98 * - 49 / + ( - + CAST ( NULL AS INTEGER ) ) - + ( + - 69 ) + 99 + + 31 )
----
1

query I rowsort
SELECT ALL + 37 * + ( - + 76 ) + - + 98 AS col0
----
-2910

query II rowsort
SELECT DISTINCT + 0 AS col0, + 13 * + + 17 col1
----
0
221

query II rowsort
SELECT DISTINCT + 48, + 0 * - + 83 AS col2
----
48
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2406
SELECT - MAX( + 36 ) + - + 48 * + NULLIF ( - - COUNT( * ), AVG ( 35 ) ) + 47 AS col2
----
-37

skipif mysql # not compatible
query I rowsort label-2406
SELECT - MAX ( + 36 ) + - + 48 * + NULLIF ( - - COUNT ( * ), AVG ( 35 ) ) + 47 AS col2
----
-37

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

skipif mysql # not compatible
query I rowsort label-2407
SELECT - ( 31 ) * - COUNT ( * )
----
31

query I rowsort
SELECT - NULLIF ( 93, + 61 ) + - - 4 * + + 18
----
-21

query I rowsort
SELECT + NULLIF ( COALESCE ( + 60, 80 * - + 94, 66 - + 32, - 60 ), + 5 )
----
60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2410
SELECT - - 86 * + 31 + + ( - CAST( - 2 AS SIGNED ) ) AS col0
----
2668

skipif mysql # not compatible
query I rowsort label-2410
SELECT - - 86 * + 31 + + ( - CAST ( - 2 AS INTEGER ) ) AS col0
----
2668

onlyif mysql # aggregate syntax: 
query I rowsort label-2411
SELECT + COUNT( ALL - ( + - 93 ) ) * + + 6 * + 12 - 90 * + 26 * - 66 AS col0
----
154512

skipif mysql # not compatible
query I rowsort label-2411
SELECT + COUNT ( ALL - ( + - 93 ) ) * + + 6 * + 12 - 90 * + 26 * - 66 AS col0
----
154512

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

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

skipif mysql # not compatible
query I rowsort label-2413
SELECT - ( - 63 ) + + COUNT ( * ) AS col2
----
64

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

query I rowsort
SELECT - 30 + + 21
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-2416
SELECT ALL 69 DIV - ( 25 )
----
-2

skipif mysql # not compatible
query I rowsort label-2416
SELECT ALL 69 / - ( 25 )
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-2417
SELECT - COUNT( * ) * + 75 * - 55 - + COUNT( * ) + - - 88
----
4212

skipif mysql # not compatible
query I rowsort label-2417
SELECT - COUNT ( * ) * + 75 * - 55 - + COUNT ( * ) + - - 88
----
4212

query I rowsort
SELECT - NULLIF ( + + 81, 30 * 38 )
----
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-2419
SELECT ALL - 81 DIV + NULLIF ( - - 70, + 65 ) + - 98 * - 3 * - 26 col0
----
-7645

skipif mysql # not compatible
query I rowsort label-2419
SELECT ALL - 81 / + NULLIF ( - - 70, + 65 ) + - 98 * - 3 * - 26 col0
----
-7645

query I rowsort
SELECT - 96 + 3 AS col1
----
-93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2421
SELECT + + MAX( ALL 33 ) - + CAST( 85 AS SIGNED ) * - 18 * - + 14 + + COUNT( 35 ) + 97 AS col2, 31 - NULLIF ( + - 77, + 8 ) * + 60 * - 77
----
-21289
-355709

skipif mysql # not compatible
query II rowsort label-2421
SELECT + + MAX ( ALL 33 ) - + CAST ( 85 AS INTEGER ) * - 18 * - + 14 + + COUNT ( 35 ) + 97 AS col2, 31 - NULLIF ( + - 77, + 8 ) * + 60 * - 77
----
-21289
-355709

onlyif mysql # DIV for integer division: 
query I rowsort label-2422
SELECT ALL - + 13 DIV + 57 * 61
----
0

skipif mysql # not compatible
query I rowsort label-2422
SELECT ALL - + 13 / + 57 * 61
----
0

query I rowsort
SELECT - + 59 * 69 AS col1
----
-4071

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

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

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

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

query I rowsort
SELECT - - 84 * + 71 AS col2
----
5964

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

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

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

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

query II rowsort
SELECT ALL - 40 * + - 18 * + 82 * - 34, - 45 + 23 + - 42 col0
----
-2007360
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-2430
SELECT + - COUNT( * ) + - 61
----
-62

skipif mysql # not compatible
query I rowsort label-2430
SELECT + - COUNT ( * ) + - 61
----
-62

query I rowsort
SELECT ALL + - 34 * + - 18
----
612

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-2432
SELECT DISTINCT + NULLIF ( + CASE + COALESCE ( + 76, + COUNT( - + 23 ) ) WHEN + 41 THEN 44 ELSE + - 2 * + 75 + ( - 18 ) DIV NULLIF ( + 99, - 39 ) * + 88 + - COUNT( * ) END, - 42 * CAST( NULL AS DECIMAL ) + 99 * - ( - - 42 ) + + 51 ) col0
----
-151

skipif mysql # not compatible
query I rowsort label-2432
SELECT DISTINCT + NULLIF ( + CASE + COALESCE ( + 76, + COUNT ( - + 23 ) ) WHEN + 41 THEN 44 ELSE + - 2 * + 75 + ( - 18 ) / NULLIF ( + 99, - 39 ) * + 88 + - COUNT ( * ) END, - 42 * CAST ( NULL AS REAL ) + 99 * - ( - - 42 ) + + 51 ) col0
----
-151

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

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

query II rowsort
SELECT ALL 13, 81 + - 93 + - 49 * - 92 col2
----
13
4496

onlyif mysql # aggregate syntax: 
query II rowsort label-2435
SELECT 42, COUNT( * ) * - 35 + + 47 AS col2
----
42
12

skipif mysql # not compatible
query II rowsort label-2435
SELECT 42, COUNT ( * ) * - 35 + + 47 AS col2
----
42
12

onlyif mysql # aggregate syntax: 
query I rowsort label-2436
SELECT ALL - COUNT( * ) + - + 45 + + 25
----
-21

skipif mysql # not compatible
query I rowsort label-2436
SELECT ALL - COUNT ( * ) + - + 45 + + 25
----
-21

query I rowsort
SELECT ALL 43 + - 8 * - 78 + - 47
----
620

query II rowsort
SELECT - 1 + - 96 * - 23, - COALESCE ( 35, - 24, + 78 ) AS col2
----
2207
-35

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2439
SELECT + 77 + + MIN( + - 79 ) DIV - 39 AS col1
----
79

skipif mysql # not compatible
query I rowsort label-2439
SELECT + 77 + + MIN ( + - 79 ) / - 39 AS col1
----
79

query I rowsort
SELECT - ( 92 ) * 42
----
-3864

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2441
SELECT + ( CASE - 51 WHEN - + 27 * CAST( - 88 AS SIGNED ) * COUNT( * ) * - 54 + + SUM( 75 ) THEN NULL WHEN + + 50 THEN + 26 * + 26 WHEN 50 + 59 + - 40 + CAST( - - 8 AS SIGNED ) / CAST( - + ( 57 ) AS SIGNED ) * + 10 * + - 65 * 5 * - + 28 THEN NULL END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2441
SELECT + ( CASE - 51 WHEN - + 27 * CAST ( - 88 AS INTEGER ) * COUNT ( * ) * - 54 + + SUM ( 75 ) THEN NULL WHEN + + 50 THEN + 26 * + 26 WHEN 50 + 59 + - 40 + CAST ( - - 8 AS INTEGER ) / CAST ( - + ( 57 ) AS INTEGER ) * + 10 * + - 65 * 5 * - + 28 THEN NULL END ) AS col1
----
NULL

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

skipif mysql # not compatible
query I rowsort label-2442
SELECT ALL COUNT ( * ) / - 66 + - + 67 + - + 65 AS col1
----
-132

onlyif mysql # DIV for integer division: 
query I rowsort label-2443
SELECT 63 DIV 85 + - 32 + + 48 + 52
----
68

skipif mysql # not compatible
query I rowsort label-2443
SELECT 63 / 85 + - 32 + + 48 + 52
----
68

onlyif mysql # DIV for integer division: 
query I rowsort label-2444
SELECT ALL 59 DIV + 20 + 86 * - 31
----
-2664

skipif mysql # not compatible
query I rowsort label-2444
SELECT ALL 59 / + 20 + 86 * - 31
----
-2664

query I rowsort
SELECT DISTINCT 46 * + 59 AS col0
----
2714

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

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

query II rowsort
SELECT ( + 89 ) col0, 27
----
89
27

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2448
SELECT ( - 50 ) AS col1, + CAST( NULL AS SIGNED ) * + 40 AS col2
----
-50
NULL

skipif mysql # not compatible
query II rowsort label-2448
SELECT ( - 50 ) AS col1, + CAST ( NULL AS INTEGER ) * + 40 AS col2
----
-50
NULL

query I rowsort
SELECT - 45 + 44 * + 31
----
1319

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2450
SELECT ALL + CASE + - AVG ( ALL - 10 ) WHEN - COUNT( * ) THEN + + 3 WHEN CAST( NULL AS SIGNED ) THEN + 43 WHEN - 23 THEN - 38 * 73 + + AVG ( DISTINCT + 89 ) ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2450
SELECT ALL + CASE + - AVG ( ALL - 10 ) WHEN - COUNT ( * ) THEN + + 3 WHEN CAST ( NULL AS INTEGER ) THEN + 43 WHEN - 23 THEN - 38 * 73 + + AVG ( DISTINCT + 89 ) ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT ALL + + 53 col1
----
53

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

query I rowsort
SELECT DISTINCT + 52 * - 59
----
-3068

onlyif mysql # aggregate syntax: 
query II rowsort label-2454
SELECT + ( + 74 ), - MAX( - NULLIF ( - + 54, 96 * - + 8 ) ) - + COUNT( * ) AS col0
----
74
-55

skipif mysql # not compatible
query II rowsort label-2454
SELECT + ( + 74 ), - MAX ( - NULLIF ( - + 54, 96 * - + 8 ) ) - + COUNT ( * ) AS col0
----
74
-55

query II rowsort
SELECT - NULLIF ( - + 77, - AVG ( DISTINCT + + 99 ) ) * + 83 AS col1, - 80 * + - 51
----
6391
4080

query I rowsort
SELECT - 73 * 17
----
-1241

query I rowsort
SELECT - - 50 + 42 AS col1
----
92

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2459
SELECT ALL - 58 * - - MIN( ALL 19 )
----
-1102

skipif mysql # not compatible
query I rowsort label-2459
SELECT ALL - 58 * - - MIN ( ALL 19 )
----
-1102

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

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

query I rowsort
SELECT DISTINCT - 42 + - 23 * + - 61 AS col1
----
1361

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2462
SELECT DISTINCT CAST( + 90 AS SIGNED ) + - CAST( SUM( DISTINCT 36 ) AS SIGNED )
----
54

skipif mysql # not compatible
query I rowsort label-2462
SELECT DISTINCT CAST ( + 90 AS INTEGER ) + - CAST ( SUM ( DISTINCT 36 ) AS INTEGER )
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-2463
SELECT + NULLIF ( - 18, - 34 ) - 85 + - 35 * ( - - ( - 17 ) ) - + COUNT( DISTINCT - + 97 )
----
491

skipif mysql # not compatible
query I rowsort label-2463
SELECT + NULLIF ( - 18, - 34 ) - 85 + - 35 * ( - - ( - 17 ) ) - + COUNT ( DISTINCT - + 97 )
----
491

onlyif mysql # aggregate syntax: 
query I rowsort label-2464
SELECT - - ( - CASE + COUNT( * ) WHEN 99 * 60 + + + 67 * - 48 THEN NULL WHEN + + 10 THEN - 90 END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2464
SELECT - - ( - CASE + COUNT ( * ) WHEN 99 * 60 + + + 67 * - 48 THEN NULL WHEN + + 10 THEN - 90 END ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2465
SELECT - 81, + MAX( 47 ) AS col2
----
-81
47

skipif mysql # not compatible
query II rowsort label-2465
SELECT - 81, + MAX ( 47 ) AS col2
----
-81
47

onlyif mysql # aggregate syntax: 
query I rowsort label-2466
SELECT CASE - - 53 WHEN - AVG ( ALL + ( - 72 ) ) + - + COUNT( * ) * - - 34 THEN NULL WHEN - COALESCE ( + - 75, - - 18 ) THEN NULL ELSE + NULLIF ( - COUNT( DISTINCT + 58 ), - 61 ) END + 58 * 66 * - 49 * 44 + + 44 * + 12 * 25 AS col0
----
-8239969

skipif mysql # not compatible
query I rowsort label-2466
SELECT CASE - - 53 WHEN - AVG ( ALL + ( - 72 ) ) + - + COUNT ( * ) * - - 34 THEN NULL WHEN - COALESCE ( + - 75, - - 18 ) THEN NULL ELSE + NULLIF ( - COUNT ( DISTINCT + 58 ), - 61 ) END + 58 * 66 * - 49 * 44 + + 44 * + 12 * 25 AS col0
----
-8239969

query I rowsort
SELECT 65 * - 0
----
0

query I rowsort
SELECT 71 + - 56 * + - 81 col1
----
4607

query I rowsort
SELECT ALL 65 + - + 17
----
48

query II rowsort
SELECT ALL 24 + - 9 + 61 col2, - 44
----
76
-44

query I rowsort
SELECT 55 - CASE 25 WHEN - - 97 THEN + 86 + + 12 / - 81 * 48 END
----
NULL

query II rowsort
SELECT ALL 45 AS col1, - 51 AS col0
----
45
-51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-2473
SELECT ALL - COUNT( * ) + - CAST( NULL AS SIGNED ) / 38 col1, CAST( NULL AS SIGNED ) * + - 88 * COUNT( * ), - + COALESCE ( - 37, + + ( - COUNT( * ) ) ) AS col0
----
NULL
NULL
37

skipif mysql # not compatible
query III rowsort label-2473
SELECT ALL - COUNT ( * ) + - CAST ( NULL AS INTEGER ) / 38 col1, CAST ( NULL AS INTEGER ) * + - 88 * COUNT ( * ), - + COALESCE ( - 37, + + ( - COUNT ( * ) ) ) AS col0
----
NULL
NULL
37

query I rowsort
SELECT ALL - 68 * - 39 AS col2
----
2652

query I rowsort
SELECT DISTINCT 64 - + - 53
----
117

onlyif mysql # aggregate syntax: 
query I rowsort label-2476
SELECT 90 * + SUM( DISTINCT - 14 )
----
-1260

skipif mysql # not compatible
query I rowsort label-2476
SELECT 90 * + SUM ( DISTINCT - 14 )
----
-1260

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

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

query II rowsort
SELECT + 12 AS col0, ( 52 ) AS col2
----
12
52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2479
SELECT CASE 9 WHEN 96 * + - 92 * 45 - - CAST( + COUNT( * ) AS SIGNED ) + 42 + - COUNT( * ) + - 44 THEN - MIN( ALL 98 ) * - NULLIF ( - - 86, - + 98 ) * + ( - 43 ) * COUNT( * ) / 44 + - 45 + - - ( 51 ) * + CAST( NULL AS SIGNED ) * + + 93 END - + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-2479
SELECT CASE 9 WHEN 96 * + - 92 * 45 - - CAST ( + COUNT ( * ) AS INTEGER ) + 42 + - COUNT ( * ) + - 44 THEN - MIN ( ALL 98 ) * - NULLIF ( - - 86, - + 98 ) * + ( - 43 ) * COUNT ( * ) / 44 + - 45 + - - ( 51 ) * + CAST ( NULL AS INTEGER ) * + + 93 END - + COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2480
SELECT 80 * - 10 * - + ( + CASE + - 27 WHEN 66 * + + CAST( NULL AS SIGNED ) + - - 46 THEN + 55 * - - 75 + + 64 + + 94 END ) * - 41 / + AVG ( ALL + - CAST( NULL AS SIGNED ) ) + 25 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2480
SELECT 80 * - 10 * - + ( + CASE + - 27 WHEN 66 * + + CAST ( NULL AS INTEGER ) + - - 46 THEN + 55 * - - 75 + + 64 + + 94 END ) * - 41 / + AVG ( ALL + - CAST ( NULL AS INTEGER ) ) + 25 AS col2
----
NULL

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

skipif mysql # not compatible
query I rowsort label-2481
SELECT DISTINCT - COUNT ( ALL - - 84 ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2482
SELECT DISTINCT 45 * + SUM( ALL ( 22 ) )
----
990

skipif mysql # not compatible
query I rowsort label-2482
SELECT DISTINCT 45 * + SUM ( ALL ( 22 ) )
----
990

query II rowsort
SELECT ALL - + NULLIF ( + + 16, + - 53 ) col1, 72 AS col0
----
-16
72

query I rowsort
SELECT DISTINCT - - 86 AS col0
----
86

onlyif mysql # DIV for integer division: 
query II rowsort label-2485
SELECT COALESCE ( - - 2, + 51 DIV 5 * - + 55 * + 21 * 19, + 0 ) AS col0, 43 AS col1
----
2
43

skipif mysql # not compatible
query II rowsort label-2485
SELECT COALESCE ( - - 2, + 51 / 5 * - + 55 * + 21 * 19, + 0 ) AS col0, 43 AS col1
----
2
43

onlyif mysql # aggregate syntax: 
query I rowsort label-2486
SELECT ( - MIN( - 47 ) ) * - + 2 + 74 AS col0
----
-20

skipif mysql # not compatible
query I rowsort label-2486
SELECT ( - MIN ( - 47 ) ) * - + 2 + 74 AS col0
----
-20

query II rowsort
SELECT + - 17 AS col1, - 97 col1
----
-17
-97

query I rowsort
SELECT DISTINCT - - 21 + - 21
----
0

query I rowsort
SELECT ALL - - 59 + - 95 - - 53 * - 67 AS col0
----
-3587

onlyif mysql # aggregate syntax: 
query I rowsort label-2490
SELECT ALL 75 + COUNT( * ) + + + 49 + + 21 + + - 39
----
107

skipif mysql # not compatible
query I rowsort label-2490
SELECT ALL 75 + COUNT ( * ) + + + 49 + + 21 + + - 39
----
107

query I rowsort
SELECT 10 + - - 79 + - 79
----
10

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2493
SELECT - 88 * CAST( NULL AS SIGNED ) + - 39 + - + 11 * 12 * - 80 + - 57 - 42 + - NULLIF ( 27, - - 14 DIV 97 + + + 50 ) + - CAST( 96 AS SIGNED ) * - 27 * - 29 + - - 20 AS col2, 20 DIV + + ( + + 7 ) AS col2
----
NULL
2

skipif mysql # not compatible
query II rowsort label-2493
SELECT - 88 * CAST ( NULL AS INTEGER ) + - 39 + - + 11 * 12 * - 80 + - 57 - 42 + - NULLIF ( 27, - - 14 / 97 + + + 50 ) + - CAST ( 96 AS INTEGER ) * - 27 * - 29 + - - 20 AS col2, 20 / + + ( + + 7 ) AS col2
----
NULL
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2494
SELECT ALL + 38 + - + 35 * - + COALESCE ( 74, 77 + + - CAST( NULL AS SIGNED ) * - - 71 + - 30 - 54 + - COUNT( * ), + 28 ) col1, - 39 + + - 86 AS col2
----
2628
-125

skipif mysql # not compatible
query II rowsort label-2494
SELECT ALL + 38 + - + 35 * - + COALESCE ( 74, 77 + + - CAST ( NULL AS INTEGER ) * - - 71 + - 30 - 54 + - COUNT ( * ), + 28 ) col1, - 39 + + - 86 AS col2
----
2628
-125

onlyif mysql # aggregate syntax: 
query I rowsort label-2495
SELECT DISTINCT SUM( + 98 ) col2
----
98

skipif mysql # not compatible
query I rowsort label-2495
SELECT DISTINCT SUM ( + 98 ) col2
----
98

query I rowsort
SELECT 35 + + 62 * + ( - 52 ) AS col1
----
-3189

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2497
SELECT ALL - 47 * + CASE NULLIF ( + NULLIF ( - - COUNT( * ), + MAX( - ( CAST( NULL AS SIGNED ) ) ) ), + - 33 / + 89 - - - 28 + + 63 / - 22 - + ( + - 33 ) ) WHEN - - 63 THEN NULL WHEN + 8 * + 46 + - + 1 * 57 + - ( 62 ) + + 67 * - 83 * 21 + + 92 THEN COUNT( * ) ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2497
SELECT ALL - 47 * + CASE NULLIF ( + NULLIF ( - - COUNT ( * ), + MAX ( - ( CAST ( NULL AS INTEGER ) ) ) ), + - 33 / + 89 - - - 28 + + 63 / - 22 - + ( + - 33 ) ) WHEN - - 63 THEN NULL WHEN + 8 * + 46 + - + 1 * 57 + - ( 62 ) + + 67 * - 83 * 21 + + 92 THEN COUNT ( * ) ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2498
SELECT - ( MIN( + - 70 ) ) + + 47 AS col0
----
117

skipif mysql # not compatible
query I rowsort label-2498
SELECT - ( MIN ( + - 70 ) ) + + 47 AS col0
----
117

query I rowsort
SELECT 25 + + 26 * - - 54 + + + 76 AS col1
----
1505

query I rowsort
SELECT ALL + 99 + + - 80
----
19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2501
SELECT ALL 36 * + + 69 AS col0, 89 + COUNT( * ) + + COUNT( * ) + 32 + + CAST( + + 88 AS SIGNED ) DIV - COUNT( * ) + + COUNT( * )
----
2484
36

skipif mysql # not compatible
query II rowsort label-2501
SELECT ALL 36 * + + 69 AS col0, 89 + COUNT ( * ) + + COUNT ( * ) + 32 + + CAST ( + + 88 AS INTEGER ) / - COUNT ( * ) + + COUNT ( * )
----
2484
36

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2503
SELECT 64 + + 82 DIV ( + 93 ) AS col0, COALESCE ( - + COUNT( * ), + - 99 - - CASE 4 WHEN + ( - + 64 ) THEN 98 * - - 8 ELSE + - 88 END + - - 41 * - 90 * + 62 + - - COUNT( * ) )
----
64
-1

skipif mysql # not compatible
query II rowsort label-2503
SELECT 64 + + 82 / ( + 93 ) AS col0, COALESCE ( - + COUNT ( * ), + - 99 - - CASE 4 WHEN + ( - + 64 ) THEN 98 * - - 8 ELSE + - 88 END + - - 41 * - 90 * + 62 + - - COUNT ( * ) )
----
64
-1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-2504
SELECT ALL - 45 - 53 + + 14 - + COUNT( * ) * - + 7 DIV - + 34 * + - NULLIF ( - + 80, + 66 ) * - ( NULLIF ( - 96, + + MAX( - 63 ) * - - 22 * 74 * - 16 * - 46 * - + 84 * - CAST( NULL AS DECIMAL ) * 42 + COALESCE ( - COUNT( * ), + 23 * - - 88 DIV - 45 + 2, - + COUNT( - 3 ) ) * + ( - - COUNT( * ) ) ) ) AS col2
----
-84

skipif mysql # not compatible
query I rowsort label-2504
SELECT ALL - 45 - 53 + + 14 - + COUNT ( * ) * - + 7 / - + 34 * + - NULLIF ( - + 80, + 66 ) * - ( NULLIF ( - 96, + + MAX ( - 63 ) * - - 22 * 74 * - 16 * - 46 * - + 84 * - CAST ( NULL AS REAL ) * 42 + COALESCE ( - COUNT ( * ), + 23 * - - 88 / - 45 + 2, - + COUNT ( - 3 ) ) * + ( - - COUNT ( * ) ) ) ) AS col2
----
-84

query I rowsort
SELECT ALL 11 * 50 AS col2
----
550

onlyif mysql # DIV for integer division: 
query I rowsort label-2506
SELECT ALL + 9 DIV - 75 * 53
----
0

skipif mysql # not compatible
query I rowsort label-2506
SELECT ALL + 9 / - 75 * 53
----
0

query II rowsort
SELECT 61 + - - 30 + 19 + + 43 * - ( - 7 ) * - + 23, 80 AS col0
----
-6813
80

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2509
SELECT ALL + 0 * - CAST( + - 49 AS SIGNED ) * - 97
----
0

skipif mysql # not compatible
query I rowsort label-2509
SELECT ALL + 0 * - CAST ( + - 49 AS INTEGER ) * - 97
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2510
SELECT ALL - 37 * + COUNT( * ) DIV - - 75 * + + 99 DIV + 52 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2510
SELECT ALL - 37 * + COUNT ( * ) / - - 75 * + + 99 / + 52 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2511
SELECT 80 DIV - 54
----
-1

skipif mysql # not compatible
query I rowsort label-2511
SELECT 80 / - 54
----
-1

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2513
SELECT DISTINCT - ( - - 44 ) col2, + 93 * - - 78 * CAST( - 7 AS SIGNED ) AS col0
----
-44
-50778

skipif mysql # not compatible
query II rowsort label-2513
SELECT DISTINCT - ( - - 44 ) col2, + 93 * - - 78 * CAST ( - 7 AS INTEGER ) AS col0
----
-44
-50778

query I rowsort
SELECT ALL - 37 * - 6
----
222

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2515
SELECT - 94 * + 95 + - COALESCE ( - 71, + - 33 * - 46 DIV + 6 * + COUNT( * ) + + 38 + + MAX( - 90 ) ) AS col0
----
-8859

skipif mysql # not compatible
query I rowsort label-2515
SELECT - 94 * + 95 + - COALESCE ( - 71, + - 33 * - 46 / + 6 * + COUNT ( * ) + + 38 + + MAX ( - 90 ) ) AS col0
----
-8859

onlyif mysql # aggregate syntax: 
query I rowsort label-2516
SELECT DISTINCT - - CASE + COALESCE ( - 44, 54 * 79 - 84 ) WHEN COUNT( * ) * 87 + + ( - 58 ) THEN + 33 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2516
SELECT DISTINCT - - CASE + COALESCE ( - 44, 54 * 79 - 84 ) WHEN COUNT ( * ) * 87 + + ( - 58 ) THEN + 33 END AS col1
----
NULL

query I rowsort
SELECT 58 * + 6 + 79
----
427

query I rowsort
SELECT ALL - NULLIF ( - 8, + 95 ) AS col2
----
8

query I rowsort
SELECT 1 * - + ( - - 4 )
----
-4

query I rowsort
SELECT 45 + ( - 52 ) - + 10
----
-17

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2521
SELECT + MAX( DISTINCT - - 35 ) AS col2, 8 + 39 + - 64 DIV + 36 AS col2
----
35
46

skipif mysql # not compatible
query II rowsort label-2521
SELECT + MAX ( DISTINCT - - 35 ) AS col2, 8 + 39 + - 64 / + 36 AS col2
----
35
46

onlyif mysql # aggregate syntax: 
query I rowsort label-2522
SELECT DISTINCT + 86 * + + COUNT( * ) + 18
----
104

skipif mysql # not compatible
query I rowsort label-2522
SELECT DISTINCT + 86 * + + COUNT ( * ) + 18
----
104

query I rowsort
SELECT DISTINCT - 75 + + - ( - 35 ) + 69 - - + 7 * + + 96
----
701

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2524
SELECT + + 47 * - ( CASE + 31 WHEN - CAST( NULL AS SIGNED ) THEN NULL WHEN - 76 THEN NULL ELSE - COALESCE ( + + 74, CASE 5 WHEN - + COUNT( * ) THEN 50 WHEN - - 5 THEN NULL END ) * 96 END ) * - 70 + + 23
----
-23372137

skipif mysql # not compatible
query I rowsort label-2524
SELECT + + 47 * - ( CASE + 31 WHEN - CAST ( NULL AS INTEGER ) THEN NULL WHEN - 76 THEN NULL ELSE - COALESCE ( + + 74, CASE 5 WHEN - + COUNT ( * ) THEN 50 WHEN - - 5 THEN NULL END ) * 96 END ) * - 70 + + 23
----
-23372137

query I rowsort
SELECT DISTINCT 60 + - 73 AS col0
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-2526
SELECT ALL - MAX( - 97 ) + SUM( ALL - 93 ) * + 69
----
-6320

skipif mysql # not compatible
query I rowsort label-2526
SELECT ALL - MAX ( - 97 ) + SUM ( ALL - 93 ) * + 69
----
-6320

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2527
SELECT + 79 DIV - + COALESCE ( + COUNT( * ), + COUNT( * ) DIV + 10 ) AS col1
----
-79

skipif mysql # not compatible
query I rowsort label-2527
SELECT + 79 / - + COALESCE ( + COUNT ( * ), + COUNT ( * ) / + 10 ) AS col1
----
-79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2528
SELECT + COALESCE ( - + 89, + - 21 * + 22 + - COUNT( * ) * + - 81, + CAST( NULL AS SIGNED ) + - 20 * - 4 ) * + 64
----
-5696

skipif mysql # not compatible
query I rowsort label-2528
SELECT + COALESCE ( - + 89, + - 21 * + 22 + - COUNT ( * ) * + - 81, + CAST ( NULL AS INTEGER ) + - 20 * - 4 ) * + 64
----
-5696

query I rowsort
SELECT + 92 * - 75 AS col2
----
-6900

query I rowsort
SELECT ALL + 1 + - 17 AS col1
----
-16

query I rowsort
SELECT - - ( 6 )
----
6

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-2533
SELECT + - 21 * + 54, - 4 DIV - - 39 AS col1
----
-1134
0

skipif mysql # not compatible
query II rowsort label-2533
SELECT + - 21 * + 54, - 4 / - - 39 AS col1
----
-1134
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2534
SELECT ALL + 4 DIV - 89 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2534
SELECT ALL + 4 / - 89 AS col1
----
0

query I rowsort
SELECT DISTINCT ( + + 86 ) - - 69 AS col0
----
155

query I rowsort
SELECT + 24 + - - 54 AS col1
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-2537
SELECT - SUM( + 6 ) * + - 0 + + 78 AS col2
----
78

skipif mysql # not compatible
query I rowsort label-2537
SELECT - SUM ( + 6 ) * + - 0 + + 78 AS col2
----
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2538
SELECT - SUM( ALL - + 91 ) + - 57 * - COUNT( DISTINCT 25 ) * 77 + - + 79 + + COUNT( * ), COUNT( ALL - - 19 ) * + CAST( NULL AS SIGNED ) + - 53 AS col1
----
4402
NULL

skipif mysql # not compatible
query II rowsort label-2538
SELECT - SUM ( ALL - + 91 ) + - 57 * - COUNT ( DISTINCT 25 ) * 77 + - + 79 + + COUNT ( * ), COUNT ( ALL - - 19 ) * + CAST ( NULL AS INTEGER ) + - 53 AS col1
----
4402
NULL

query I rowsort
SELECT - 70 + + + 52 - 73
----
-91

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

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

query I rowsort
SELECT ALL + 14 * - + 38
----
-532

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

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

query I rowsort
SELECT - 46 + + 40
----
-6

query I rowsort
SELECT ALL NULLIF ( + + 80, + 91 )
----
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2545
SELECT DISTINCT CASE - CAST( NULL AS SIGNED ) WHEN + COUNT( * ) * - 15 THEN - 46 * + 41 - - + 90 + + + 44 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2545
SELECT DISTINCT CASE - CAST ( NULL AS INTEGER ) WHEN + COUNT ( * ) * - 15 THEN - 46 * + 41 - - + 90 + + + 44 ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2546
SELECT ALL COALESCE ( - + NULLIF ( COUNT( * ), - 52 + - - 68 ), - COUNT( * ), + 86, - 16 + 79 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-2546
SELECT ALL COALESCE ( - + NULLIF ( COUNT ( * ), - 52 + - - 68 ), - COUNT ( * ), + 86, - 16 + 79 ) AS col2
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2547
SELECT - CASE CAST( + - 91 AS SIGNED ) WHEN + - 20 THEN + - 25 END - + SUM( ALL + + 28 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2547
SELECT - CASE CAST ( + - 91 AS INTEGER ) WHEN + - 20 THEN + - 25 END - + SUM ( ALL + + 28 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2548
SELECT - ( + - 36 ) * + + COUNT( DISTINCT 79 ) + 19 * 64 * 52 AS col1
----
63268

skipif mysql # not compatible
query I rowsort label-2548
SELECT - ( + - 36 ) * + + COUNT ( DISTINCT 79 ) + 19 * 64 * 52 AS col1
----
63268

onlyif mysql # DIV for integer division: 
query I rowsort label-2549
SELECT - 63 DIV COALESCE ( - + 73, + + 31 ) DIV - 71
----
0

skipif mysql # not compatible
query I rowsort label-2549
SELECT - 63 / COALESCE ( - + 73, + + 31 ) / - 71
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2550
SELECT ALL + MAX( DISTINCT - - 41 ) * COUNT( * ) + - CAST( 73 AS SIGNED )
----
-32

skipif mysql # not compatible
query I rowsort label-2550
SELECT ALL + MAX ( DISTINCT - - 41 ) * COUNT ( * ) + - CAST ( 73 AS INTEGER )
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-2551
SELECT - ( CASE - 96 WHEN 96 THEN 62 + 49 ELSE NULL END ) * - 90 + + 2 + + 6 * - - COUNT( * ) * + + 93 + - ( + 14 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2551
SELECT - ( CASE - 96 WHEN 96 THEN 62 + 49 ELSE NULL END ) * - 90 + + 2 + + 6 * - - COUNT ( * ) * + + 93 + - ( + 14 ) AS col2
----
NULL

query I rowsort
SELECT - 80 * + 94
----
-7520

onlyif mysql # aggregate syntax: 
query II rowsort label-2553
SELECT + + ( - - MAX( DISTINCT - - 23 ) ), + 28 * COALESCE ( - ( - + 17 ), + - 13 ) * + + 8 AS col1
----
23
3808

skipif mysql # not compatible
query II rowsort label-2553
SELECT + + ( - - MAX ( DISTINCT - - 23 ) ), + 28 * COALESCE ( - ( - + 17 ), + - 13 ) * + + 8 AS col1
----
23
3808

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

skipif mysql # not compatible
query I rowsort label-2554
SELECT + + 37 / - 77 * COUNT ( * ) AS col1
----
0

query I rowsort
SELECT - 69 - - 45 + - 78 AS col0
----
-102

onlyif mysql # DIV for integer division: 
query I rowsort label-2556
SELECT - 96 DIV + + 78 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-2556
SELECT - 96 / + + 78 AS col0
----
-1

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2559
SELECT ALL 0 * + 71 - + + MIN( ALL 61 )
----
-61

skipif mysql # not compatible
query I rowsort label-2559
SELECT ALL 0 * + 71 - + + MIN ( ALL 61 )
----
-61

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

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

query I rowsort
SELECT + ( - 8 ) + + - 7
----
-15

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2563
SELECT ALL - MAX( DISTINCT ( - 10 ) ) * + 97 + + 40, CASE - 84 WHEN - COUNT( 94 ) THEN COUNT( * ) + - 95 ELSE NULL END - 56 + 62 AS col2
----
1010
NULL

skipif mysql # not compatible
query II rowsort label-2563
SELECT ALL - MAX ( DISTINCT ( - 10 ) ) * + 97 + + 40, CASE - 84 WHEN - COUNT ( 94 ) THEN COUNT ( * ) + - 95 ELSE NULL END - 56 + 62 AS col2
----
1010
NULL

query I rowsort
SELECT + 12 + - - 21 AS col2
----
33

onlyif mysql # aggregate syntax: 
query II rowsort label-2565
SELECT SUM( ALL + 81 ), - 75 AS col2
----
81
-75

skipif mysql # not compatible
query II rowsort label-2565
SELECT SUM ( ALL + 81 ), - 75 AS col2
----
81
-75

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2567
SELECT ALL CAST( NULL AS SIGNED ) * + ( + + 62 ) - + + 56, 35 + + COUNT( * ) AS col1
----
NULL
36

skipif mysql # not compatible
query II rowsort label-2567
SELECT ALL CAST ( NULL AS INTEGER ) * + ( + + 62 ) - + + 56, 35 + + COUNT ( * ) AS col1
----
NULL
36

query I rowsort
SELECT + ( 67 ) * - 60
----
-4020

query II rowsort
SELECT ALL 82 * 7 AS col0, + 67
----
574
67

onlyif mysql # DIV for integer division: 
query I rowsort label-2570
SELECT + ( + 28 ) DIV + 1 - - - 83 + - 85 AS col0
----
-140

skipif mysql # not compatible
query I rowsort label-2570
SELECT + ( + 28 ) / + 1 - - - 83 + - 85 AS col0
----
-140

onlyif mysql # DIV for integer division: 
query I rowsort label-2571
SELECT - 46 * 26 DIV + 84 col2
----
-14

skipif mysql # not compatible
query I rowsort label-2571
SELECT - 46 * 26 / + 84 col2
----
-14

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2574
SELECT + 93 + - - COUNT( * ) + 31 AS col2
----
125

skipif mysql # not compatible
query I rowsort label-2574
SELECT + 93 + - - COUNT ( * ) + 31 AS col2
----
125

onlyif mysql # aggregate syntax: 
query I rowsort label-2575
SELECT + 87 * SUM( - 6 )
----
-522

skipif mysql # not compatible
query I rowsort label-2575
SELECT + 87 * SUM ( - 6 )
----
-522

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

query II rowsort
SELECT 69, - 97 AS col0
----
69
-97

query I rowsort
SELECT ALL 69 + 58 col1
----
127

query II rowsort
SELECT + 75 + - 55, 65 AS col0
----
20
65

onlyif mysql # DIV for integer division: 
query I rowsort label-2580
SELECT - 80 - - 14 DIV + + 60 AS col1
----
-80

skipif mysql # not compatible
query I rowsort label-2580
SELECT - 80 - - 14 / + + 60 AS col1
----
-80

query I rowsort
SELECT DISTINCT 86 + - 56 AS col0
----
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2582
SELECT + CAST( - 51 AS SIGNED ) + - COUNT( * ) + MAX( - 39 ) col1
----
-91

skipif mysql # not compatible
query I rowsort label-2582
SELECT + CAST ( - 51 AS INTEGER ) + - COUNT ( * ) + MAX ( - 39 ) col1
----
-91

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2584
SELECT ALL + 95 col0, SUM( ALL - 86 )
----
95
-86

skipif mysql # not compatible
query II rowsort label-2584
SELECT ALL + 95 col0, SUM ( ALL - 86 )
----
95
-86

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2585
SELECT DISTINCT + 19 * - COUNT( * ) - - 37 - 67 + - 68 - + 64 DIV - - 41
----
-118

skipif mysql # not compatible
query I rowsort label-2585
SELECT DISTINCT + 19 * - COUNT ( * ) - - 37 - 67 + - 68 - + 64 / - - 41
----
-118

onlyif mysql # aggregate syntax: 
query II rowsort label-2586
SELECT + COUNT( * ) * - 71 * 16 + + + 13 col1, 26 AS col1
----
-1123
26

skipif mysql # not compatible
query II rowsort label-2586
SELECT + COUNT ( * ) * - 71 * 16 + + + 13 col1, 26 AS col1
----
-1123
26

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

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

query I rowsort
SELECT ALL 37 + ( + - 66 ) AS col2
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-2589
SELECT ALL - - 39 + - 53 + + NULLIF ( - 22, - COALESCE ( COUNT( * ), 9 + - 76 ) / - + COUNT( * ) / + 89 / + + 61 ) + + 15 * 79 AS col0
----
1149

skipif mysql # not compatible
query I rowsort label-2589
SELECT ALL - - 39 + - 53 + + NULLIF ( - 22, - COALESCE ( COUNT ( * ), 9 + - 76 ) / - + COUNT ( * ) / + 89 / + + 61 ) + + 15 * 79 AS col0
----
1149

onlyif mysql # DIV for integer division: 
query I rowsort label-2590
SELECT ALL + 36 DIV - 21
----
-1

skipif mysql # not compatible
query I rowsort label-2590
SELECT ALL + 36 / - 21
----
-1

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

skipif mysql # not compatible
query I rowsort label-2591
SELECT ALL - + CAST ( + 82 AS INTEGER ) AS col2
----
-82

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2593
SELECT + - 76 * - 66 + + COALESCE ( - - COUNT( DISTINCT 46 ), + ( - 80 ) ) * - 95 + - CASE + 50 WHEN + - SUM( ALL ( - 39 ) ) * + - COUNT( ALL - 63 ) THEN NULL WHEN 64 THEN NULL WHEN + - 89 + ( + - 68 ) THEN - + 99 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2593
SELECT + - 76 * - 66 + + COALESCE ( - - COUNT ( DISTINCT 46 ), + ( - 80 ) ) * - 95 + - CASE + 50 WHEN + - SUM ( ALL ( - 39 ) ) * + - COUNT ( ALL - 63 ) THEN NULL WHEN 64 THEN NULL WHEN + - 89 + ( + - 68 ) THEN - + 99 END AS col2
----
NULL

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

skipif mysql # not compatible
query I rowsort label-2594
SELECT MIN ( DISTINCT - 38 )
----
-38

query I rowsort
SELECT NULLIF ( - 30, - 56 ) + - + 52 + + - 91 * - - 54
----
-4996

query I rowsort
SELECT ALL - + 60 - - 39
----
-21

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2598
SELECT DISTINCT - NULLIF ( - + 26, + COUNT( * ) + + 73 ) - + + 71 + + 85
----
40

skipif mysql # not compatible
query I rowsort label-2598
SELECT DISTINCT - NULLIF ( - + 26, + COUNT ( * ) + + 73 ) - + + 71 + + 85
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-2599
SELECT ALL - + 85 * + COUNT( - 24 )
----
-85

skipif mysql # not compatible
query I rowsort label-2599
SELECT ALL - + 85 * + COUNT ( - 24 )
----
-85

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2601
SELECT + NULLIF ( + 62, + 29 * 35 + + - 79 + + 1 ) * - COALESCE ( 37, - COUNT( * ) )
----
-2294

skipif mysql # not compatible
query I rowsort label-2601
SELECT + NULLIF ( + 62, + 29 * 35 + + - 79 + + 1 ) * - COALESCE ( 37, - COUNT ( * ) )
----
-2294

query II rowsort
SELECT ALL + - 55 * 13 AS col2, - 49 * COALESCE ( + + 21, - 47 ) + - 88
----
-715
-1117

query I rowsort
SELECT 61 * + 1 * - - 10 AS col0
----
610

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2604
SELECT CASE + + 14 WHEN ( - 75 ) THEN 20 * + NULLIF ( + 53, + + 28 ) * + ( + CAST( - - SUM( - 66 ) AS SIGNED ) ) - + - 71 WHEN + 8 THEN NULL END * - + 24 * + 87 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2604
SELECT CASE + + 14 WHEN ( - 75 ) THEN 20 * + NULLIF ( + 53, + + 28 ) * + ( + CAST ( - - SUM ( - 66 ) AS INTEGER ) ) - + - 71 WHEN + 8 THEN NULL END * - + 24 * + 87 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2605
SELECT ( + 54 ) * - + NULLIF ( COUNT( * ), 67 * - + COUNT( * ) * + ( 56 ) ) * 46 * + 83 * - 13
----
2680236

skipif mysql # not compatible
query I rowsort label-2605
SELECT ( + 54 ) * - + NULLIF ( COUNT ( * ), 67 * - + COUNT ( * ) * + ( 56 ) ) * 46 * + 83 * - 13
----
2680236

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2606
SELECT ALL COALESCE ( - + 65, - 79 DIV - 14 + + 85, - - 71 ) * - COALESCE ( + + 77, - + 75 * 6 ) * - 0 * 26, NULLIF ( 40, - COUNT( * ) + ( 40 ) + + 48 + + 20 + + 51 * + 8 ) + - 6 + - 37 AS col2
----
0
-3

skipif mysql # not compatible
query II rowsort label-2606
SELECT ALL COALESCE ( - + 65, - 79 / - 14 + + 85, - - 71 ) * - COALESCE ( + + 77, - + 75 * 6 ) * - 0 * 26, NULLIF ( 40, - COUNT ( * ) + ( 40 ) + + 48 + + 20 + + 51 * + 8 ) + - 6 + - 37 AS col2
----
0
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2607
SELECT DISTINCT - 5 + + 34 - COALESCE ( - - 43, + - COUNT( * ), + 68 ) AS col1
----
-14

skipif mysql # not compatible
query I rowsort label-2607
SELECT DISTINCT - 5 + + 34 - COALESCE ( - - 43, + - COUNT ( * ), + 68 ) AS col1
----
-14

query I rowsort
SELECT DISTINCT 46 * + + 81 * + + ( 35 ) AS col2
----
130410

query I rowsort
SELECT 99 * - - 43
----
4257

query I rowsort
SELECT ALL 81 * + 3 * + 80
----
19440

query I rowsort
SELECT ALL 52 + 58 AS col0
----
110

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

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

query I rowsort
SELECT DISTINCT 28 + 8 + + - 83 + + + 87 + + - 24 * - 12 * 59
----
17032

query I rowsort
SELECT 89 + - - ( - + 53 ) col2
----
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2615
SELECT ALL ( + NULLIF ( - 63, + 59 ) ) + - - MIN( DISTINCT 76 ) * 70 + - 81 + + + CAST( - - 66 AS SIGNED ) * 96 - 46
----
11466

skipif mysql # not compatible
query I rowsort label-2615
SELECT ALL ( + NULLIF ( - 63, + 59 ) ) + - - MIN ( DISTINCT 76 ) * 70 + - 81 + + + CAST ( - - 66 AS INTEGER ) * 96 - 46
----
11466

onlyif mysql # DIV for integer division: 
query I rowsort label-2616
SELECT + ( - + COALESCE ( 94, + 81, + 32 ) ) DIV - 28 AS col1
----
3

skipif mysql # not compatible
query I rowsort label-2616
SELECT + ( - + COALESCE ( 94, + 81, + 32 ) ) / - 28 AS col1
----
3

query I rowsort
SELECT ALL + 4 + - - 65 * - NULLIF ( - 64, - 38 ) + - + ( 80 )
----
4084

query II rowsort
SELECT ALL + 24 - 23 col1, + 67
----
1
67

query I rowsort
SELECT ALL - - 37 * + - 22 AS col1
----
-814

onlyif mysql # aggregate syntax: 
query I rowsort label-2620
SELECT + 12 * - - 93 - - ( - - 60 ) + + 86 * - CASE + - ( 74 ) WHEN + COALESCE ( - ( 86 ), + 36 * - COALESCE ( + + 50, - + ( + 72 ) / - + 75 ) / - 37 * COUNT( 12 ) * - 83 ) * - 36 THEN 19 + - - 40 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2620
SELECT + 12 * - - 93 - - ( - - 60 ) + + 86 * - CASE + - ( 74 ) WHEN + COALESCE ( - ( 86 ), + 36 * - COALESCE ( + + 50, - + ( + 72 ) / - + 75 ) / - 37 * COUNT ( 12 ) * - 83 ) * - 36 THEN 19 + - - 40 END AS col1
----
NULL

query I rowsort
SELECT CASE 86 WHEN - 70 THEN 76 ELSE + 58 END AS col0
----
58

onlyif mysql # DIV for integer division: 
query I rowsort label-2622
SELECT ALL ( - 78 ) - - 8 + 86 DIV - 57 AS col0
----
-71

skipif mysql # not compatible
query I rowsort label-2622
SELECT ALL ( - 78 ) - - 8 + 86 / - 57 AS col0
----
-71

query I rowsort
SELECT - 58 * 49 AS col0
----
-2842

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2624
SELECT + 67 - + 9 AS col2, COUNT( * ) + CAST( NULL AS SIGNED )
----
58
NULL

skipif mysql # not compatible
query II rowsort label-2624
SELECT + 67 - + 9 AS col2, COUNT ( * ) + CAST ( NULL AS INTEGER )
----
58
NULL

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

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

query I rowsort
SELECT 56 * + 15
----
840

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2627
SELECT CASE 88 WHEN - - 53 + + CAST( NULL AS SIGNED ) THEN + 69 ELSE + - 96 * + 94 + 16 END + + 14 AS col1
----
-8994

skipif mysql # not compatible
query I rowsort label-2627
SELECT CASE 88 WHEN - - 53 + + CAST ( NULL AS INTEGER ) THEN + 69 ELSE + - 96 * + 94 + 16 END + + 14 AS col1
----
-8994

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2628
SELECT 90 - ( - - CASE + ( - 61 ) WHEN - COUNT( * ) * 65 - - NULLIF ( - 37, 40 ) + + + CAST( + + 52 AS SIGNED ) * - - 38 * + NULLIF ( CAST( - COUNT( * ) AS SIGNED ), + 93 ) THEN NULL WHEN + 20 + 25 * - 27 + + CAST( - CAST( + ( + 41 ) AS SIGNED ) AS SIGNED ) + - 64 * + - 30 - - 11 + - - 56 * - + 93 * - 75 / - 87 THEN - - COUNT( * ) WHEN 16 * SUM( 25 ) THEN - + 18 * 21 - + 57 + - ( + ( 14 ) ) * + 34 * - 96 END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2628
SELECT 90 - ( - - CASE + ( - 61 ) WHEN - COUNT ( * ) * 65 - - NULLIF ( - 37, 40 ) + + + CAST ( + + 52 AS INTEGER ) * - - 38 * + NULLIF ( CAST ( - COUNT ( * ) AS INTEGER ), + 93 ) THEN NULL WHEN + 20 + 25 * - 27 + + CAST ( - CAST ( + ( + 41 ) AS INTEGER ) AS INTEGER ) + - 64 * + - 30 - - 11 + - - 56 * - + 93 * - 75 / - 87 THEN - - COUNT ( * ) WHEN 16 * SUM ( 25 ) THEN - + 18 * 21 - + 57 + - ( + ( 14 ) ) * + 34 * - 96 END ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2629
SELECT ALL - 82 DIV 39 AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-2629
SELECT ALL - 82 / 39 AS col1
----
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2630
SELECT SUM( + 95 ) DIV + COUNT( DISTINCT 78 ) AS col2
----
95

skipif mysql # not compatible
query I rowsort label-2630
SELECT SUM ( + 95 ) / + COUNT ( DISTINCT 78 ) AS col2
----
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2631
SELECT + 83 AS col0, ( 83 ) + + + 80 + - + 8 DIV - 44 * SUM( - - CAST( + + 96 AS SIGNED ) ) * - 99 * + COUNT( * ) * - 92
----
83
163

skipif mysql # not compatible
query II rowsort label-2631
SELECT + 83 AS col0, ( 83 ) + + + 80 + - + 8 / - 44 * SUM ( - - CAST ( + + 96 AS INTEGER ) ) * - 99 * + COUNT ( * ) * - 92
----
83
163

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

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

query I rowsort
SELECT DISTINCT + 9 + - 87 AS col0
----
-78

query I rowsort
SELECT ALL - 55 + - 79 AS col1
----
-134

query I rowsort
SELECT 80 + - - 0
----
80

onlyif mysql # DIV for integer division: 
query I rowsort label-2636
SELECT ALL 23 DIV + 81 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2636
SELECT ALL 23 / + 81 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2637
SELECT 89 + - - NULLIF ( - 0, MIN( ALL - + 15 ) - 4 * - 74 + + - 63 + - + 39 + 3 ) + + COUNT( * ) * + + 65 * 5 * 10 AS col0
----
3339

skipif mysql # not compatible
query I rowsort label-2637
SELECT 89 + - - NULLIF ( - 0, MIN ( ALL - + 15 ) - 4 * - 74 + + - 63 + - + 39 + 3 ) + + COUNT ( * ) * + + 65 * 5 * 10 AS col0
----
3339

query I rowsort
SELECT ALL + 83 * - 8 AS col0
----
-664

query I rowsort
SELECT 96 * 84
----
8064

query I rowsort
SELECT DISTINCT + 10 + ( - 77 )
----
-67

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

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

query II rowsort
SELECT 7, CASE 35 WHEN - 45 THEN 95 ELSE NULL END / + 95 AS col0
----
7
NULL

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

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

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

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

query I rowsort
SELECT 34 + + 79 col1
----
113

query I rowsort
SELECT - 45 - - + 0 AS col0
----
-45

onlyif mysql # DIV for integer division: 
query II rowsort label-2647
SELECT DISTINCT - 75 + + 68 DIV + 43 AS col1, 7 * 75 col0
----
-74
525

skipif mysql # not compatible
query II rowsort label-2647
SELECT DISTINCT - 75 + + 68 / + 43 AS col1, 7 * 75 col0
----
-74
525

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2649
SELECT - 21 + - 58 * - MAX( ( + + 50 ) )
----
2879

skipif mysql # not compatible
query I rowsort label-2649
SELECT - 21 + - 58 * - MAX ( ( + + 50 ) )
----
2879

query I rowsort
SELECT - 80 * + 77
----
-6160

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2651
SELECT - - 45 col1, - CAST( - - 43 AS SIGNED ) AS col0
----
45
-43

skipif mysql # not compatible
query II rowsort label-2651
SELECT - - 45 col1, - CAST ( - - 43 AS INTEGER ) AS col0
----
45
-43

query II rowsort
SELECT ALL + 89, 56 col1
----
89
56

onlyif mysql # aggregate syntax: 
query I rowsort label-2653
SELECT - 2 + COUNT( * ) * - 77 + + 80
----
1

skipif mysql # not compatible
query I rowsort label-2653
SELECT - 2 + COUNT ( * ) * - 77 + + 80
----
1

query I rowsort
SELECT - 16 + 71
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-2655
SELECT ALL - SUM( 37 ) - 33
----
-70

skipif mysql # not compatible
query I rowsort label-2655
SELECT ALL - SUM ( 37 ) - 33
----
-70

query II rowsort
SELECT ALL 44 AS col0, 67
----
44
67

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

query I rowsort
SELECT - - 46 * 61 + - - 59 - + 10 + + 86 AS col2
----
2941

query I rowsort
SELECT + 43 * - + 32 AS col2
----
-1376

onlyif mysql # aggregate syntax: 
query I rowsort label-2660
SELECT + - 48 * - SUM( + 43 )
----
2064

skipif mysql # not compatible
query I rowsort label-2660
SELECT + - 48 * - SUM ( + 43 )
----
2064

onlyif mysql # DIV for integer division: 
query I rowsort label-2661
SELECT - 84 DIV 18 DIV - + 19 + 39 - 38 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2661
SELECT - 84 / 18 / - + 19 + 39 - 38 AS col1
----
1

query I rowsort
SELECT ALL + - 76 * - 29 AS col2
----
2204

onlyif mysql # aggregate syntax: 
query I rowsort label-2663
SELECT + + COUNT( - 48 ) + + 5 * - 0 + - 88 * + - COUNT( * )
----
89

skipif mysql # not compatible
query I rowsort label-2663
SELECT + + COUNT ( - 48 ) + + 5 * - 0 + - 88 * + - COUNT ( * )
----
89

onlyif mysql # aggregate syntax: 
query II rowsort label-2664
SELECT ALL + 35, + COALESCE ( - 73, - 80 + - COUNT( * ) ) AS col1
----
35
-73

skipif mysql # not compatible
query II rowsort label-2664
SELECT ALL + 35, + COALESCE ( - 73, - 80 + - COUNT ( * ) ) AS col1
----
35
-73

onlyif mysql # DIV for integer division: 
query I rowsort label-2665
SELECT ALL 48 DIV - + 9 col2
----
-5

skipif mysql # not compatible
query I rowsort label-2665
SELECT ALL 48 / - + 9 col2
----
-5

onlyif mysql # aggregate syntax: 
query II rowsort label-2666
SELECT - 63 AS col0, - COUNT( * ) * - + 24 - - - 4 AS col2
----
-63
20

skipif mysql # not compatible
query II rowsort label-2666
SELECT - 63 AS col0, - COUNT ( * ) * - + 24 - - - 4 AS col2
----
-63
20

query I rowsort
SELECT ALL 89 * - 66 AS col0
----
-5874

query I rowsort
SELECT + 59 * - ( 93 ) - + - 42 AS col2
----
-5445

query I rowsort
SELECT CASE - + 40 WHEN - - 65 THEN - 1 WHEN 14 THEN 58 END
----
NULL

query I rowsort
SELECT NULLIF ( - + COALESCE ( ( - 57 ), - 25 + - 56 ), + 26 - 12 )
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-2671
SELECT DISTINCT COUNT( * ) * - 52 + - - 36
----
-16

skipif mysql # not compatible
query I rowsort label-2671
SELECT DISTINCT COUNT ( * ) * - 52 + - - 36
----
-16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2672
SELECT ALL 69 * + - 42 + - 31 - - - NULLIF ( - 24, + - 24 * 12 + - SUM( 11 ) - - CAST( NULL AS SIGNED ) * - MAX( DISTINCT - 78 ) / + 15 * + MAX( - + 9 ) + + 21 + + 40 ) * 71 AS col1
----
-1225

skipif mysql # not compatible
query I rowsort label-2672
SELECT ALL 69 * + - 42 + - 31 - - - NULLIF ( - 24, + - 24 * 12 + - SUM ( 11 ) - - CAST ( NULL AS INTEGER ) * - MAX ( DISTINCT - 78 ) / + 15 * + MAX ( - + 9 ) + + 21 + + 40 ) * 71 AS col1
----
-1225

onlyif mysql # aggregate syntax: 
query I rowsort label-2673
SELECT + CASE - 22 WHEN + 86 + 78 - - - 10 THEN - + COUNT( - ( - + 91 ) ) ELSE - MAX( ALL - 95 ) END AS col0
----
95

skipif mysql # not compatible
query I rowsort label-2673
SELECT + CASE - 22 WHEN + 86 + 78 - - - 10 THEN - + COUNT ( - ( - + 91 ) ) ELSE - MAX ( ALL - 95 ) END AS col0
----
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2674
SELECT ALL CAST( + CASE COUNT( * ) WHEN + ( CASE + 82 WHEN + 84 - - 60 + ( - 73 ) + + + ( - - 52 ) + + 27 * + 72 THEN - 59 + + 9 ELSE NULL END ) THEN + 30 + + - 88 + - - COUNT( * ) + + + 47 + + 26 + + 38 * 77 WHEN CAST( NULL AS SIGNED ) + + - ( + 57 ) - + 49 + - - 13 THEN 29 END AS DECIMAL ) * - CASE + + 82 WHEN + 51 THEN NULL WHEN - 58 + - ( + 12 ) THEN + - COUNT( ALL - 6 ) * 30 + 30 + 94 END + - 41 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2674
SELECT ALL CAST ( + CASE COUNT ( * ) WHEN + ( CASE + 82 WHEN + 84 - - 60 + ( - 73 ) + + + ( - - 52 ) + + 27 * + 72 THEN - 59 + + 9 ELSE NULL END ) THEN + 30 + + - 88 + - - COUNT ( * ) + + + 47 + + 26 + + 38 * 77 WHEN CAST ( NULL AS INTEGER ) + + - ( + 57 ) - + 49 + - - 13 THEN 29 END AS REAL ) * - CASE + + 82 WHEN + 51 THEN NULL WHEN - 58 + - ( + 12 ) THEN + - COUNT ( ALL - 6 ) * 30 + 30 + 94 END + - 41 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2675
SELECT + MAX( ALL + 47 ) * 35 AS col2
----
1645

skipif mysql # not compatible
query I rowsort label-2675
SELECT + MAX ( ALL + 47 ) * 35 AS col2
----
1645

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2677
SELECT ALL 6 * AVG ( CAST( NULL AS SIGNED ) ) + - - 59 + 16 * + + 2 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2677
SELECT ALL 6 * AVG ( CAST ( NULL AS INTEGER ) ) + - - 59 + 16 * + + 2 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2678
SELECT ALL COUNT( * ) * + + 88 + MAX( - - 82 ) * + - 80
----
-6472

skipif mysql # not compatible
query I rowsort label-2678
SELECT ALL COUNT ( * ) * + + 88 + MAX ( - - 82 ) * + - 80
----
-6472

query I rowsort
SELECT - 64 * - 6 AS col0
----
384

onlyif mysql # DIV for integer division: 
query II rowsort label-2680
SELECT DISTINCT + 33 DIV - COALESCE ( + 95, 10 ), 25 * - 52 AS col2
----
0
-1300

skipif mysql # not compatible
query II rowsort label-2680
SELECT DISTINCT + 33 / - COALESCE ( + 95, 10 ), 25 * - 52 AS col2
----
0
-1300

query I rowsort
SELECT + 28 * + 68 * + 40 col0
----
76160

onlyif mysql # aggregate syntax: 
query II rowsort label-2682
SELECT - 4 - + 21 AS col2, + MIN( DISTINCT 69 ) AS col0
----
-25
69

skipif mysql # not compatible
query II rowsort label-2682
SELECT - 4 - + 21 AS col2, + MIN ( DISTINCT 69 ) AS col0
----
-25
69

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2684
SELECT ALL - CASE + 34 WHEN 19 + + ( COUNT( * ) ) THEN 19 * - 77 WHEN - 11 THEN 43 END - 82 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2684
SELECT ALL - CASE + 34 WHEN 19 + + ( COUNT ( * ) ) THEN 19 * - 77 WHEN - 11 THEN 43 END - 82 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2685
SELECT - + ( + 74 ) + - SUM( + 14 ) + + COUNT( * ) AS col0
----
-87

skipif mysql # not compatible
query I rowsort label-2685
SELECT - + ( + 74 ) + - SUM ( + 14 ) + + COUNT ( * ) AS col0
----
-87

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

skipif mysql # not compatible
query I rowsort label-2686
SELECT ALL - MIN ( 30 )
----
-30

query I rowsort
SELECT ALL CASE + + 56 WHEN + - 52 THEN NULL ELSE 88 * - + 89 END col2
----
-7832

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2690
SELECT DISTINCT + 53 DIV + + COUNT( + + 32 ) + - COUNT( + 97 ) AS col0
----
52

skipif mysql # not compatible
query I rowsort label-2690
SELECT DISTINCT + 53 / + + COUNT ( + + 32 ) + - COUNT ( + 97 ) AS col0
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-2691
SELECT + 77 * 52 + + - COUNT( - + 4 ) + - 59 + + 66
----
4010

skipif mysql # not compatible
query I rowsort label-2691
SELECT + 77 * 52 + + - COUNT ( - + 4 ) + - 59 + + 66
----
4010

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2692
SELECT + NULLIF ( + + CAST( NULL AS SIGNED ), COUNT( DISTINCT - ( + 31 ) ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2692
SELECT + NULLIF ( + + CAST ( NULL AS INTEGER ), COUNT ( DISTINCT - ( + 31 ) ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2693
SELECT - + COUNT( - + 70 ) DIV + COUNT( * ) + - 51 AS col1
----
-52

skipif mysql # not compatible
query I rowsort label-2693
SELECT - + COUNT ( - + 70 ) / + COUNT ( * ) + - 51 AS col1
----
-52

query I rowsort
SELECT + + 76 * + 55 * + + 21
----
87780

onlyif mysql # aggregate syntax: 
query I rowsort label-2695
SELECT - NULLIF ( + - 51, - - 35 + + 40 + + COUNT( * ) - - COUNT( * ) )
----
51

skipif mysql # not compatible
query I rowsort label-2695
SELECT - NULLIF ( + - 51, - - 35 + + 40 + + COUNT ( * ) - - COUNT ( * ) )
----
51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2696
SELECT ALL 96 DIV 6 DIV - COUNT( * ) + + 62 AS col0
----
46

skipif mysql # not compatible
query I rowsort label-2696
SELECT ALL 96 / 6 / - COUNT ( * ) + + 62 AS col0
----
46

onlyif mysql # DIV for integer division: 
query II rowsort label-2697
SELECT DISTINCT 58 DIV - 8 + - NULLIF ( + + 78, 23 ), - 68 col0
----
-85
-68

skipif mysql # not compatible
query II rowsort label-2697
SELECT DISTINCT 58 / - 8 + - NULLIF ( + + 78, 23 ), - 68 col0
----
-85
-68

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2699
SELECT DISTINCT 64 DIV SUM( - + 33 ) * COALESCE ( MIN( DISTINCT + - 39 ), + CAST( NULL AS SIGNED ) ) + 2 * - - 71 * + - 6 col0, CAST( NULL AS SIGNED )
----
-813
NULL

skipif mysql # not compatible
query II rowsort label-2699
SELECT DISTINCT 64 / SUM ( - + 33 ) * COALESCE ( MIN ( DISTINCT + - 39 ), + CAST ( NULL AS INTEGER ) ) + 2 * - - 71 * + - 6 col0, CAST ( NULL AS INTEGER )
----
-813
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-2700
SELECT DISTINCT - 59 DIV 61 + + 7 AS col1, - 57 col0
----
7
-57

skipif mysql # not compatible
query II rowsort label-2700
SELECT DISTINCT - 59 / 61 + + 7 AS col1, - 57 col0
----
7
-57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2701
SELECT DISTINCT COUNT( * ) DIV - 47
----
0

skipif mysql # not compatible
query I rowsort label-2701
SELECT DISTINCT COUNT ( * ) / - 47
----
0

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2703
SELECT - CAST( + - 38 AS SIGNED ) + - + 13 + - - 84 AS col1
----
109

skipif mysql # not compatible
query I rowsort label-2703
SELECT - CAST ( + - 38 AS INTEGER ) + - + 13 + - - 84 AS col1
----
109

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2704
SELECT ALL + 50 AS col1, - CAST( - ( + - 48 ) AS SIGNED )
----
50
-48

skipif mysql # not compatible
query II rowsort label-2704
SELECT ALL + 50 AS col1, - CAST ( - ( + - 48 ) AS INTEGER )
----
50
-48

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2706
SELECT COUNT( * ) * + 44 + 5, + COUNT( * ) AS col0
----
49
1

skipif mysql # not compatible
query II rowsort label-2706
SELECT COUNT ( * ) * + 44 + 5, + COUNT ( * ) AS col0
----
49
1

query I rowsort
SELECT ALL CASE + - 42 WHEN - + 30 / + 10 * - 56 THEN COALESCE ( + 15, 40 ) * - 10 + - + 4 * + 23 * - 40 END - - 32 - + - 29 * - 47 * + + 77 * + + 18
----
NULL

query I rowsort
SELECT NULLIF ( 1, 72 * + - 62 ) + ( + - 33 ) + + 55
----
23

query II rowsort
SELECT ALL 15 col1, + 58
----
15
58

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2711
SELECT ALL CASE - 71 WHEN + ( - 67 ) + 6 * + + 94 * 79 THEN + + COUNT( * ) * - 93 * 77 WHEN + 9 / + 90 / + 78 THEN NULL END * + 22
----
NULL

skipif mysql # not compatible
query I rowsort label-2711
SELECT ALL CASE - 71 WHEN + ( - 67 ) + 6 * + + 94 * 79 THEN + + COUNT ( * ) * - 93 * 77 WHEN + 9 / + 90 / + 78 THEN NULL END * + 22
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2712
SELECT 15 + + + 41 * + ( - NULLIF ( - CAST( NULL AS SIGNED ), SUM( - + 84 ) ) ) * + ( 51 ) - + 87 * + 83 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2712
SELECT 15 + + + 41 * + ( - NULLIF ( - CAST ( NULL AS INTEGER ), SUM ( - + 84 ) ) ) * + ( 51 ) - + 87 * + 83 AS col2
----
NULL

query I rowsort
SELECT - + 59 col1
----
-59

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

skipif mysql # not compatible
query I rowsort label-2714
SELECT + COUNT ( 61 ) * + COUNT ( DISTINCT + 20 ) AS col2
----
1

query I rowsort
SELECT - 20 + - 40 + - + 23
----
-83

query II rowsort
SELECT DISTINCT 74, 60 AS col0
----
74
60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2717
SELECT ALL + - 26 * + - 93 * - - MAX( DISTINCT - - CAST( NULL AS SIGNED ) ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2717
SELECT ALL + - 26 * + - 93 * - - MAX ( DISTINCT - - CAST ( NULL AS INTEGER ) ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2718
SELECT 85 + COUNT( DISTINCT - + 33 ) AS col1, + 78 * + COALESCE ( - - COUNT( * ), - 32, + 19 + - 18 ) AS col1
----
86
78

skipif mysql # not compatible
query II rowsort label-2718
SELECT 85 + COUNT ( DISTINCT - + 33 ) AS col1, + 78 * + COALESCE ( - - COUNT ( * ), - 32, + 19 + - 18 ) AS col1
----
86
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2719
SELECT ALL - 15 / + 50 + - CAST( + CAST( NULL AS SIGNED ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2719
SELECT ALL - 15 / + 50 + - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2720
SELECT ALL - ( COUNT( * ) ) * + + 81 * - 1 * + - 18 * ( - 97 ) AS col1
----
141426

skipif mysql # not compatible
query I rowsort label-2720
SELECT ALL - ( COUNT ( * ) ) * + + 81 * - 1 * + - 18 * ( - 97 ) AS col1
----
141426

onlyif mysql # aggregate syntax: 
query I rowsort label-2721
SELECT + MAX( + 49 ) AS col0
----
49

skipif mysql # not compatible
query I rowsort label-2721
SELECT + MAX ( + 49 ) AS col0
----
49

query I rowsort
SELECT ALL + COALESCE ( 30, - 66 )
----
30

query I rowsort
SELECT DISTINCT + - 96 * - - 17 + - - 85
----
-1547

query I rowsort
SELECT 64 + 32 + - - 3 AS col1
----
99

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

query I rowsort
SELECT + 14 + - + 26
----
-12

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2727
SELECT CAST( - 12 AS SIGNED ) + - + 6, ( + 4 ) AS col0
----
-18
4

skipif mysql # not compatible
query II rowsort label-2727
SELECT CAST ( - 12 AS INTEGER ) + - + 6, ( + 4 ) AS col0
----
-18
4

query II rowsort
SELECT ALL - - 94 AS col0, + 18 AS col1
----
94
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2729
SELECT - CASE 13 WHEN + + 46 THEN NULL WHEN + CASE + ( + MIN( DISTINCT + + CAST( NULL AS SIGNED ) ) ) WHEN - 24 THEN NULL WHEN - - ( 11 ) THEN NULL ELSE + 52 / - - 34 END + - 8 * + - 56 + - + 43 + 1 THEN + 26 ELSE + - 60 + - ( + COALESCE ( - 65, - - 73 + 84 ) ) END + - 74 + + 77
----
-2

skipif mysql # not compatible
query I rowsort label-2729
SELECT - CASE 13 WHEN + + 46 THEN NULL WHEN + CASE + ( + MIN ( DISTINCT + + CAST ( NULL AS INTEGER ) ) ) WHEN - 24 THEN NULL WHEN - - ( 11 ) THEN NULL ELSE + 52 / - - 34 END + - 8 * + - 56 + - + 43 + 1 THEN + 26 ELSE + - 60 + - ( + COALESCE ( - 65, - - 73 + 84 ) ) END + - 74 + + 77
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-2730
SELECT DISTINCT + COUNT( ALL 50 ) * 72 AS col0
----
72

skipif mysql # not compatible
query I rowsort label-2730
SELECT DISTINCT + COUNT ( ALL 50 ) * 72 AS col0
----
72

query I rowsort
SELECT 24 * + + 30 * + - ( + + 90 ) + - 79
----
-64879

onlyif mysql # aggregate syntax: 
query I rowsort label-2732
SELECT ALL - SUM( ALL + - 57 ) AS col2
----
57

skipif mysql # not compatible
query I rowsort label-2732
SELECT ALL - SUM ( ALL + - 57 ) AS col2
----
57

query I rowsort
SELECT ALL + 33 * - 5
----
-165

onlyif mysql # DIV for integer division: 
query I rowsort label-2734
SELECT - 97 DIV ( ( + 59 ) ) + 31
----
30

skipif mysql # not compatible
query I rowsort label-2734
SELECT - 97 / ( ( + 59 ) ) + 31
----
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2735
SELECT COUNT( * ) + + MIN( ALL - 27 ) - CAST( NULL AS SIGNED ) + 52 - + + 30 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2735
SELECT COUNT ( * ) + + MIN ( ALL - 27 ) - CAST ( NULL AS INTEGER ) + 52 - + + 30 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2736
SELECT ALL COUNT( * ) - ( + - 8 ) + - 64
----
-55

skipif mysql # not compatible
query I rowsort label-2736
SELECT ALL COUNT ( * ) - ( + - 8 ) + - 64
----
-55

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

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

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2739
SELECT ALL 80 / + CAST( NULL AS DECIMAL ) * + 49 * - - 38 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2739
SELECT ALL 80 / + CAST ( NULL AS REAL ) * + 49 * - - 38 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-2740
SELECT DISTINCT 72 AS col1, 3 DIV + + 19 col0
----
72
0

skipif mysql # not compatible
query II rowsort label-2740
SELECT DISTINCT 72 AS col1, 3 / + + 19 col0
----
72
0

query II rowsort
SELECT 21, 12 * 83 AS col1
----
21
996

onlyif mysql # aggregate syntax: 
query II rowsort label-2742
SELECT 27 col1, + COUNT( * ) - NULLIF ( - + 21, - 85 ) * - 45
----
27
-944

skipif mysql # not compatible
query II rowsort label-2742
SELECT 27 col1, + COUNT ( * ) - NULLIF ( - + 21, - 85 ) * - 45
----
27
-944

query I rowsort
SELECT + 4 + + + 58 + 88
----
150

query I rowsort
SELECT - 9 - 86 AS col1
----
-95

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

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

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

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

query I rowsort
SELECT ALL + 86 * + 96
----
8256

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

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

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

skipif mysql # not compatible
query I rowsort label-2749
SELECT ALL + 95 + + COUNT ( * ) / + COUNT ( * )
----
96

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

query II rowsort
SELECT - 8 AS col0, 66 * 77
----
-8
5082

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2752
SELECT 79 DIV - - 95 AS col0, - COUNT( ALL + 49 ) AS col1
----
0
-1

skipif mysql # not compatible
query II rowsort label-2752
SELECT 79 / - - 95 AS col0, - COUNT ( ALL + 49 ) AS col1
----
0
-1

onlyif mysql # DIV for integer division: 
query II rowsort label-2753
SELECT - 68 + + 39 - - + 24 + 22 col2, 89 DIV - + 63 AS col1
----
17
-1

skipif mysql # not compatible
query II rowsort label-2753
SELECT - 68 + + 39 - - + 24 + 22 col2, 89 / - + 63 AS col1
----
17
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-2754
SELECT ALL COUNT( * ) + + 20 AS col0, + MIN( + 87 )
----
21
87

skipif mysql # not compatible
query II rowsort label-2754
SELECT ALL COUNT ( * ) + + 20 AS col0, + MIN ( + 87 )
----
21
87

onlyif mysql # aggregate syntax: 
query II rowsort label-2755
SELECT ALL 51 + + 3 AS col2, 39 * - + NULLIF ( + - 38, MAX( ALL - 42 ) * 36 / - 31 * NULLIF ( - ( 49 ), + CASE - + COUNT( DISTINCT ( + 23 ) ) WHEN - + COALESCE ( + 86, + 74 ) THEN - 83 * 88 / 13 + + 30 END ) ) AS col2
----
54
1482

skipif mysql # not compatible
query II rowsort label-2755
SELECT ALL 51 + + 3 AS col2, 39 * - + NULLIF ( + - 38, MAX ( ALL - 42 ) * 36 / - 31 * NULLIF ( - ( 49 ), + CASE - + COUNT ( DISTINCT ( + 23 ) ) WHEN - + COALESCE ( + 86, + 74 ) THEN - 83 * 88 / 13 + + 30 END ) ) AS col2
----
54
1482

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2756
SELECT ALL - 70 DIV 30 + COUNT( * ) - 95, 41 AS col1
----
-96
41

skipif mysql # not compatible
query II rowsort label-2756
SELECT ALL - 70 / 30 + COUNT ( * ) - 95, 41 AS col1
----
-96
41

query I rowsort
SELECT DISTINCT 99 + 65 - 50 AS col1
----
114

query II rowsort
SELECT ALL + 4 AS col2, ( - 88 ) * 55 AS col2
----
4
-4840

query I rowsort
SELECT 48 * 69 AS col1
----
3312

query I rowsort
SELECT ALL - 68 + 24 + + + 97 + - 55
----
-2

query I rowsort
SELECT ALL - 10 * 43
----
-430

query I rowsort
SELECT ALL - ( - 16 ) - - 22
----
38

query I rowsort
SELECT 5 * + + 38 AS col0
----
190

query I rowsort
SELECT DISTINCT 94 * + 5
----
470

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

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

query I rowsort
SELECT + 6 * 40 + + - 50
----
190

onlyif mysql # aggregate syntax: 
query I rowsort label-2767
SELECT 18 * 43 * - CASE - 36 WHEN - + SUM( ALL 82 ) THEN NULL WHEN + 58 THEN 99 * - 95 WHEN 62 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2767
SELECT 18 * 43 * - CASE - 36 WHEN - + SUM ( ALL 82 ) THEN NULL WHEN + 58 THEN 99 * - 95 WHEN 62 THEN NULL END
----
NULL

query I rowsort
SELECT NULLIF ( 23, - 23 + + + 8 )
----
23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2769
SELECT ALL - COUNT( * ) * + 18 DIV - + 39 - - ( + COUNT( * ) ) + + 80
----
81

skipif mysql # not compatible
query I rowsort label-2769
SELECT ALL - COUNT ( * ) * + 18 / - + 39 - - ( + COUNT ( * ) ) + + 80
----
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2770
SELECT COALESCE ( 75, - 98 + - + ( - - NULLIF ( - NULLIF ( 91, + 66 ), 9 ) ) * 33, - - CAST( NULL AS SIGNED ) + - + 91 )
----
75

skipif mysql # not compatible
query I rowsort label-2770
SELECT COALESCE ( 75, - 98 + - + ( - - NULLIF ( - NULLIF ( 91, + 66 ), 9 ) ) * 33, - - CAST ( NULL AS INTEGER ) + - + 91 )
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-2771
SELECT ALL + ( - NULLIF ( + 55, - - 13 * + COUNT( DISTINCT 92 ) + - 28 ) )
----
-55

skipif mysql # not compatible
query I rowsort label-2771
SELECT ALL + ( - NULLIF ( + 55, - - 13 * + COUNT ( DISTINCT 92 ) + - 28 ) )
----
-55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2772
SELECT - 29 - - CASE COALESCE ( 20, + 98 + 91 - + 73 ) WHEN 81 * 71 + + - 42 THEN NULL WHEN + 78 THEN + NULLIF ( + 20, + COUNT( * ) ) / CAST( 98 AS SIGNED ) ELSE NULL END * - + COUNT( * ), + NULLIF ( + 13, - 62 ) col1
----
NULL
13

skipif mysql # not compatible
query II rowsort label-2772
SELECT - 29 - - CASE COALESCE ( 20, + 98 + 91 - + 73 ) WHEN 81 * 71 + + - 42 THEN NULL WHEN + 78 THEN + NULLIF ( + 20, + COUNT ( * ) ) / CAST ( 98 AS INTEGER ) ELSE NULL END * - + COUNT ( * ), + NULLIF ( + 13, - 62 ) col1
----
NULL
13

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2773
SELECT NULLIF ( + + 43, + CASE + 69 WHEN - ( - + 18 ) THEN NULL WHEN + NULLIF ( - COUNT( * ), - + CAST( NULL AS DECIMAL ) * - + ( + + 36 ) ) THEN NULL ELSE + - 7 END * + + 68 ) col1
----
43

skipif mysql # not compatible
query I rowsort label-2773
SELECT NULLIF ( + + 43, + CASE + 69 WHEN - ( - + 18 ) THEN NULL WHEN + NULLIF ( - COUNT ( * ), - + CAST ( NULL AS REAL ) * - + ( + + 36 ) ) THEN NULL ELSE + - 7 END * + + 68 ) col1
----
43

query I rowsort
SELECT DISTINCT + COALESCE ( 54, 57 + - ( ( 5 ) ) * 81 ) AS col2
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-2775
SELECT 66 * + + 76 * - COUNT( * ) + 33
----
-4983

skipif mysql # not compatible
query I rowsort label-2775
SELECT 66 * + + 76 * - COUNT ( * ) + 33
----
-4983

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

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

query I rowsort
SELECT DISTINCT - 84 * 29
----
-2436

query I rowsort
SELECT - 69 + + 36
----
-33

onlyif mysql # DIV for integer division: 
query I rowsort label-2779
SELECT 66 * + 2 + ( - 77 ) DIV - 53 AS col2
----
133

skipif mysql # not compatible
query I rowsort label-2779
SELECT 66 * + 2 + ( - 77 ) / - 53 AS col2
----
133

onlyif mysql # aggregate syntax: 
query II rowsort label-2780
SELECT - 51 - 32 AS col0, - NULLIF ( MIN( DISTINCT - 62 ), + + ( - 27 ) ) * + 42
----
-83
2604

skipif mysql # not compatible
query II rowsort label-2780
SELECT - 51 - 32 AS col0, - NULLIF ( MIN ( DISTINCT - 62 ), + + ( - 27 ) ) * + 42
----
-83
2604

query I rowsort
SELECT - 63 * - 36 col0
----
2268

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

skipif mysql # not compatible
query I rowsort label-2782
SELECT SUM ( ALL 2 )
----
2

query II rowsort
SELECT ALL + 59 + - 98 AS col1, + 23 * 84 * - 63 + 31 AS col2
----
-39
-121685

onlyif mysql # aggregate syntax: 
query I rowsort label-2784
SELECT DISTINCT - - COUNT( * ) + + 39 * 47 AS col2
----
1834

skipif mysql # not compatible
query I rowsort label-2784
SELECT DISTINCT - - COUNT ( * ) + + 39 * 47 AS col2
----
1834

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

skipif mysql # not compatible
query I rowsort label-2785
SELECT DISTINCT - COUNT ( * ) + + - 33 AS col0
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-2786
SELECT - - 21 + + COUNT( * ) * 86 col1
----
107

skipif mysql # not compatible
query I rowsort label-2786
SELECT - - 21 + + COUNT ( * ) * 86 col1
----
107

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

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

query II rowsort
SELECT ALL + ( - 77 ) + - - 23, 11 AS col1
----
-54
11

onlyif mysql # aggregate syntax: 
query I rowsort label-2789
SELECT - 69 + + - ( - - COUNT( - + CASE 91 WHEN + 76 THEN NULL ELSE 12 END ) ) + 27 AS col0
----
-43

skipif mysql # not compatible
query I rowsort label-2789
SELECT - 69 + + - ( - - COUNT ( - + CASE 91 WHEN + 76 THEN NULL ELSE 12 END ) ) + 27 AS col0
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-2790
SELECT + COUNT( * ) * + + 81 * - ( - COUNT( * ) ) * + ( + + 74 ) AS col0
----
5994

skipif mysql # not compatible
query I rowsort label-2790
SELECT + COUNT ( * ) * + + 81 * - ( - COUNT ( * ) ) * + ( + + 74 ) AS col0
----
5994

onlyif mysql # aggregate syntax: 
query I rowsort label-2791
SELECT - MIN( DISTINCT - 46 ) + + 60 + + ( - 99 ) * + - 67 AS col2
----
6739

skipif mysql # not compatible
query I rowsort label-2791
SELECT - MIN ( DISTINCT - 46 ) + + 60 + + ( - 99 ) * + - 67 AS col2
----
6739

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2792
SELECT + + COALESCE ( - - CAST( 84 AS SIGNED ), + - 33 * - 13 ) DIV - 18 - + 59
----
-63

skipif mysql # not compatible
query I rowsort label-2792
SELECT + + COALESCE ( - - CAST ( 84 AS INTEGER ), + - 33 * - 13 ) / - 18 - + 59
----
-63

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-2794
SELECT ALL CAST( NULL AS DECIMAL ) + + COUNT( * ) col2, 38 AS col1
----
NULL
38

skipif mysql # not compatible
query II rowsort label-2794
SELECT ALL CAST ( NULL AS REAL ) + + COUNT ( * ) col2, 38 AS col1
----
NULL
38

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2797
SELECT + + 3 + + COUNT( ALL + + 27 ) * - 38 AS col0
----
-35

skipif mysql # not compatible
query I rowsort label-2797
SELECT + + 3 + + COUNT ( ALL + + 27 ) * - 38 AS col0
----
-35

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2798
SELECT DISTINCT 71 - + COALESCE ( + SUM( ALL + ( 87 ) ), + 1 + 46 - COUNT( * ) * + ( COUNT( - + 76 ) ) DIV + 80 + 19 * + ( + 69 ) - - - COUNT( * ) ) + + ( 58 ) * + - COUNT( * ) * - 82 + - + 33 + - + 72 - + 11 * 95 AS col2
----
3590

skipif mysql # not compatible
query I rowsort label-2798
SELECT DISTINCT 71 - + COALESCE ( + SUM ( ALL + ( 87 ) ), + 1 + 46 - COUNT ( * ) * + ( COUNT ( - + 76 ) ) / + 80 + 19 * + ( + 69 ) - - - COUNT ( * ) ) + + ( 58 ) * + - COUNT ( * ) * - 82 + - + 33 + - + 72 - + 11 * 95 AS col2
----
3590

query I rowsort
SELECT DISTINCT 11 * - + 9
----
-99

query I rowsort
SELECT + 65 - - 74 AS col1
----
139

onlyif mysql # aggregate syntax: 
query II rowsort label-2801
SELECT ALL 31 AS col1, - COUNT( * ) * + + 38 AS col0
----
31
-38

skipif mysql # not compatible
query II rowsort label-2801
SELECT ALL 31 AS col1, - COUNT ( * ) * + + 38 AS col0
----
31
-38

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

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

query I rowsort
SELECT - 17 + - 79
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-2804
SELECT + 29 + - 60 + - 62 * 23 * + - ( + + 8 ) * 62 + MAX( DISTINCT - 63 ) AS col0
----
707202

skipif mysql # not compatible
query I rowsort label-2804
SELECT + 29 + - 60 + - 62 * 23 * + - ( + + 8 ) * 62 + MAX ( DISTINCT - 63 ) AS col0
----
707202

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2806
SELECT ALL - 89 DIV 33 - - 42 DIV + NULLIF ( - - NULLIF ( - - 66, + + COUNT( * ) ), + 65 ) * COUNT( * ) + - - COALESCE ( 75, 19, COALESCE ( + ( + 88 ), - 99 + 36 + - 27 + - 38 * + COALESCE ( - + 86, MIN( + 74 ) ) + - 61 * MAX( 62 ) ), + + 54 ) + - 97 * + 83 * + + 64 * - 5, + 28 * - 78 AS col1
----
2576393
-2184

skipif mysql # not compatible
query II rowsort label-2806
SELECT ALL - 89 / 33 - - 42 / + NULLIF ( - - NULLIF ( - - 66, + + COUNT ( * ) ), + 65 ) * COUNT ( * ) + - - COALESCE ( 75, 19, COALESCE ( + ( + 88 ), - 99 + 36 + - 27 + - 38 * + COALESCE ( - + 86, MIN ( + 74 ) ) + - 61 * MAX ( 62 ) ), + + 54 ) + - 97 * + 83 * + + 64 * - 5, + 28 * - 78 AS col1
----
2576393
-2184

query I rowsort
SELECT ALL - ( 9 ) * + + 73 * + 69 AS col1
----
-45333

onlyif mysql # aggregate syntax: 
query I rowsort label-2808
SELECT + 82 + - CASE 26 WHEN + - COALESCE ( + 66, 35, - 3 ) * 91 THEN + + 16 + - 39 WHEN - 43 * + - COUNT( * ) + + - 58 + 84 / - AVG ( ALL 32 ) THEN NULL WHEN - 52 * - SUM( DISTINCT 25 ) / + + 5 THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2808
SELECT + 82 + - CASE 26 WHEN + - COALESCE ( + 66, 35, - 3 ) * 91 THEN + + 16 + - 39 WHEN - 43 * + - COUNT ( * ) + + - 58 + 84 / - AVG ( ALL 32 ) THEN NULL WHEN - 52 * - SUM ( DISTINCT 25 ) / + + 5 THEN NULL END AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-2809
SELECT + 99 DIV ( 7 ) AS col0, + 98 AS col0
----
14
98

skipif mysql # not compatible
query II rowsort label-2809
SELECT + 99 / ( 7 ) AS col0, + 98 AS col0
----
14
98

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

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

query I rowsort
SELECT + NULLIF ( 81, + 20 )
----
81

onlyif mysql # DIV for integer division: 
query I rowsort label-2812
SELECT - 34 DIV - 77
----
0

skipif mysql # not compatible
query I rowsort label-2812
SELECT - 34 / - 77
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2813
SELECT ALL COUNT( * ) * - 91 * + CAST( - 12 AS SIGNED ) * + + 98
----
107016

skipif mysql # not compatible
query I rowsort label-2813
SELECT ALL COUNT ( * ) * - 91 * + CAST ( - 12 AS INTEGER ) * + + 98
----
107016

query I rowsort
SELECT + 46 * - 12 col0
----
-552

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2815
SELECT - COALESCE ( + 92, - CAST( + 67 AS SIGNED ) * 90 * + CASE 57 WHEN + 86 THEN NULL WHEN + 78 THEN - + 59 + + - COUNT( * ) END ) * - 27 * + 59 + 81 + + 11 * + ( - 47 ) + 33 AS col1
----
146153

skipif mysql # not compatible
query I rowsort label-2815
SELECT - COALESCE ( + 92, - CAST ( + 67 AS INTEGER ) * 90 * + CASE 57 WHEN + 86 THEN NULL WHEN + 78 THEN - + 59 + + - COUNT ( * ) END ) * - 27 * + 59 + 81 + + 11 * + ( - 47 ) + 33 AS col1
----
146153

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2816
SELECT + CAST( + ( - 71 ) AS SIGNED ), ( 99 ) AS col2
----
-71
99

skipif mysql # not compatible
query II rowsort label-2816
SELECT + CAST ( + ( - 71 ) AS INTEGER ), ( 99 ) AS col2
----
-71
99

onlyif mysql # aggregate syntax: 
query II rowsort label-2817
SELECT + 98 * - COUNT( * ) + + + COUNT( * ), 5 - + + SUM( + 82 ) AS col0
----
-97
-77

skipif mysql # not compatible
query II rowsort label-2817
SELECT + 98 * - COUNT ( * ) + + + COUNT ( * ), 5 - + + SUM ( + 82 ) AS col0
----
-97
-77

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2818
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + CAST( - - 7 AS SIGNED ) + + 69 - + 33 + - ( 85 ) + - 84 AS col1, - 53 col1
----
NULL
-53

skipif mysql # not compatible
query II rowsort label-2818
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + CAST ( - - 7 AS INTEGER ) + + 69 - + 33 + - ( 85 ) + - 84 AS col1, - 53 col1
----
NULL
-53

query II rowsort
SELECT DISTINCT + + 65 AS col2, 18
----
65
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2820
SELECT - COUNT( * ) * CAST( COALESCE ( - COUNT( * ), - AVG ( ALL - 82 ), - - COUNT( * ) + + 65 + + + COUNT( DISTINCT + ( 26 ) ) + - 40 ) AS SIGNED ) * + NULLIF ( + 81, + 66 - + COALESCE ( MAX( ALL - 76 ), - 91 + 45 ) ) - COUNT( DISTINCT + ( 16 ) ) + 47 - - - 97 + - - COUNT( * ) + + 11 + + + ( - + SUM( + 80 ) ) * - MIN( DISTINCT + + CAST( NULL AS SIGNED ) ) * 96 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2820
SELECT - COUNT ( * ) * CAST ( COALESCE ( - COUNT ( * ), - AVG ( ALL - 82 ), - - COUNT ( * ) + + 65 + + + COUNT ( DISTINCT + ( 26 ) ) + - 40 ) AS INTEGER ) * + NULLIF ( + 81, + 66 - + COALESCE ( MAX ( ALL - 76 ), - 91 + 45 ) ) - COUNT ( DISTINCT + ( 16 ) ) + 47 - - - 97 + - - COUNT ( * ) + + 11 + + + ( - + SUM ( + 80 ) ) * - MIN ( DISTINCT + + CAST ( NULL AS INTEGER ) ) * 96 AS col1
----
NULL

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2823
SELECT + NULLIF ( - - 68, - 56 * - NULLIF ( - 25, - CASE + 6 WHEN 2 * 3 THEN NULL ELSE + 11 END + + 85 ) * - 68 * 40 / 54 + + 79 - - 27 * + 85 + CASE + 22 WHEN + 44 THEN + COUNT( * ) + - + 26 ELSE - 63 * - 51 - 15 END - - COUNT( * ) ) AS col1
----
68

skipif mysql # not compatible
query I rowsort label-2823
SELECT + NULLIF ( - - 68, - 56 * - NULLIF ( - 25, - CASE + 6 WHEN 2 * 3 THEN NULL ELSE + 11 END + + 85 ) * - 68 * 40 / 54 + + 79 - - 27 * + 85 + CASE + 22 WHEN + 44 THEN + COUNT ( * ) + - + 26 ELSE - 63 * - 51 - 15 END - - COUNT ( * ) ) AS col1
----
68

query I rowsort
SELECT - + 67 + + 86 AS col2
----
19

query I rowsort
SELECT DISTINCT 2 * 14 + + ( + 34 ) * + 68 col0
----
2340

query I rowsort
SELECT ALL - - 39 * - - 78 AS col2
----
3042

query II rowsort
SELECT DISTINCT - 80, - 91 * + 95 AS col0
----
-80
-8645

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2828
SELECT + - 2 * 68 - - - 6 AS col2, + 67 * - CAST( - 48 AS SIGNED ) - + 85 DIV + 41 + - 72 * - 44
----
-142
6382

skipif mysql # not compatible
query II rowsort label-2828
SELECT + - 2 * 68 - - - 6 AS col2, + 67 * - CAST ( - 48 AS INTEGER ) - + 85 / + 41 + - 72 * - 44
----
-142
6382

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2829
SELECT ALL + CAST( NULL AS SIGNED ) * 52 * - - 9 AS col0, 3 + + 93
----
NULL
96

skipif mysql # not compatible
query II rowsort label-2829
SELECT ALL + CAST ( NULL AS INTEGER ) * 52 * - - 9 AS col0, 3 + + 93
----
NULL
96

onlyif mysql # aggregate syntax: 
query I rowsort label-2830
SELECT - - 73 - - 0 - 67 * COUNT( * ) * - 61 AS col1
----
4160

skipif mysql # not compatible
query I rowsort label-2830
SELECT - - 73 - - 0 - 67 * COUNT ( * ) * - 61 AS col1
----
4160

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

skipif mysql # not compatible
query I rowsort label-2831
SELECT - + COUNT ( ALL + - 55 ) AS col2
----
-1

query I rowsort
SELECT + + 66 + + 38 + - 6
----
98

query I rowsort
SELECT 8 * + ( - 33 )
----
-264

onlyif mysql # aggregate syntax: 
query I rowsort label-2834
SELECT ALL 0 * - COUNT( * ) * - 88 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2834
SELECT ALL 0 * - COUNT ( * ) * - 88 AS col0
----
0

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2836
SELECT - 60 * + 60 DIV - COUNT( * ) + - - 19 AS col0, + ( + ( + - CASE - 30 WHEN + 28 THEN 38 ELSE NULL END ) )
----
3619
NULL

skipif mysql # not compatible
query II rowsort label-2836
SELECT - 60 * + 60 / - COUNT ( * ) + - - 19 AS col0, + ( + ( + - CASE - 30 WHEN + 28 THEN 38 ELSE NULL END ) )
----
3619
NULL

query II rowsort
SELECT DISTINCT 51 + + 49 AS col1, ( 94 )
----
100
94

query I rowsort
SELECT DISTINCT 27 + + - 73
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-2839
SELECT - 15 * - 13 * - 36 - COUNT( * )
----
-7021

skipif mysql # not compatible
query I rowsort label-2839
SELECT - 15 * - 13 * - 36 - COUNT ( * )
----
-7021

query II rowsort
SELECT DISTINCT + 13 * 45 AS col0, - 27 + - + 82 - 61 AS col0
----
585
-170

query II rowsort
SELECT - 89 + + 48 col0, - 32 AS col2
----
-41
-32

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2843
SELECT ALL + COUNT( * ) * - - 36 DIV 33 + + COUNT( * ) AS col0, 2 * + MIN( + + CAST( NULL AS SIGNED ) ) + - 22 + - - NULLIF ( 47, + - 3 * + 16 )
----
2
NULL

skipif mysql # not compatible
query II rowsort label-2843
SELECT ALL + COUNT ( * ) * - - 36 / 33 + + COUNT ( * ) AS col0, 2 * + MIN ( + + CAST ( NULL AS INTEGER ) ) + - 22 + - - NULLIF ( 47, + - 3 * + 16 )
----
2
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2845
SELECT + 8 * + 68 - + - COALESCE ( + + NULLIF ( CAST( NULL AS SIGNED ), + COUNT( * ) ), + + 36 + 99 * + 4, 97 ) * 23
----
10480

skipif mysql # not compatible
query I rowsort label-2845
SELECT + 8 * + 68 - + - COALESCE ( + + NULLIF ( CAST ( NULL AS INTEGER ), + COUNT ( * ) ), + + 36 + 99 * + 4, 97 ) * 23
----
10480

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2846
SELECT - 64 * NULLIF ( - + COUNT( * ), + 85 ) + - 73 + + - 23 * + CAST( NULL AS DECIMAL ) * + 39 + 40 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2846
SELECT - 64 * NULLIF ( - + COUNT ( * ), + 85 ) + - 73 + + - 23 * + CAST ( NULL AS REAL ) * + 39 + 40 AS col2
----
NULL

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

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

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

query I rowsort
SELECT ALL + 91 * 54
----
4914

onlyif mysql # aggregate syntax: 
query I rowsort label-2850
SELECT 33 + - COUNT( DISTINCT + 29 )
----
32

skipif mysql # not compatible
query I rowsort label-2850
SELECT 33 + - COUNT ( DISTINCT + 29 )
----
32

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

query I rowsort
SELECT 92 * - 48
----
-4416

onlyif mysql # aggregate syntax: 
query I rowsort label-2853
SELECT ALL + 31 * + COALESCE ( - + 24, 11, ( 67 ) ) - 66 + COUNT( * ) AS col1
----
-809

skipif mysql # not compatible
query I rowsort label-2853
SELECT ALL + 31 * + COALESCE ( - + 24, 11, ( 67 ) ) - 66 + COUNT ( * ) AS col1
----
-809

onlyif mysql # aggregate syntax: 
query I rowsort label-2854
SELECT + SUM( - 69 ) + - 38 * + + 46 * + + 80 AS col0
----
-139909

skipif mysql # not compatible
query I rowsort label-2854
SELECT + SUM ( - 69 ) + - 38 * + + 46 * + + 80 AS col0
----
-139909

query I rowsort
SELECT DISTINCT + 98 * + 20
----
1960

query I rowsort
SELECT DISTINCT - ( + 89 ) * + 46
----
-4094

onlyif mysql # DIV for integer division: 
query I rowsort label-2857
SELECT 8 DIV - - 21 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2857
SELECT 8 / - - 21 AS col0
----
0

query I rowsort
SELECT DISTINCT + 88 * - 77
----
-6776

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2859
SELECT ALL CAST( - 40 AS SIGNED ) DIV - COALESCE ( + MAX( - - 3 ), + COALESCE ( - 64, - 46 + + 82 * + 46 DIV - 95 ) * + 72 )
----
13

skipif mysql # not compatible
query I rowsort label-2859
SELECT ALL CAST ( - 40 AS INTEGER ) / - COALESCE ( + MAX ( - - 3 ), + COALESCE ( - 64, - 46 + + 82 * + 46 / - 95 ) * + 72 )
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-2860
SELECT COUNT( * ) + + 87 + + - 26 + - - 67 AS col1
----
129

skipif mysql # not compatible
query I rowsort label-2860
SELECT COUNT ( * ) + + 87 + + - 26 + - - 67 AS col1
----
129

query I rowsort
SELECT 5 + - + 58 - + 78 * + 60 AS col2
----
-4733

query I rowsort
SELECT 43 * - 59
----
-2537

query I rowsort
SELECT 14 + + 73 AS col2
----
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2864
SELECT 49 + + 44 + + - CAST( + 57 AS SIGNED ) * - COUNT( * ) AS col1, + 61 AS col2
----
150
61

skipif mysql # not compatible
query II rowsort label-2864
SELECT 49 + + 44 + + - CAST ( + 57 AS INTEGER ) * - COUNT ( * ) AS col1, + 61 AS col2
----
150
61

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2865
SELECT 54 AS col2, 27 * - 65 * + 69 / 13 + + - CAST( NULL AS SIGNED ) + - + 0
----
54
NULL

skipif mysql # not compatible
query II rowsort label-2865
SELECT 54 AS col2, 27 * - 65 * + 69 / 13 + + - CAST ( NULL AS INTEGER ) + - + 0
----
54
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2866
SELECT ALL + 44 DIV - + 49 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2866
SELECT ALL + 44 / - + 49 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2867
SELECT 24 DIV 10
----
2

skipif mysql # not compatible
query I rowsort label-2867
SELECT 24 / 10
----
2

query I rowsort
SELECT DISTINCT 51 + + - 62
----
-11

onlyif mysql # DIV for integer division: 
query II rowsort label-2869
SELECT 39 + 4 + + 95 AS col0, + 50 DIV + + 82 - - - 40
----
138
-40

skipif mysql # not compatible
query II rowsort label-2869
SELECT 39 + 4 + + 95 AS col0, + 50 / + + 82 - - - 40
----
138
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-2870
SELECT ALL - MAX( ALL + 20 )
----
-20

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2871
SELECT ALL 30 * NULLIF ( + + ( 87 ), - 10 ) * - - 35 + 25 DIV + + 95
----
91350

skipif mysql # not compatible
query I rowsort label-2871
SELECT ALL 30 * NULLIF ( + + ( 87 ), - 10 ) * - - 35 + 25 / + + 95
----
91350

onlyif mysql # aggregate syntax: 
query II rowsort label-2872
SELECT ALL - 20, + 16 + 25 + + NULLIF ( - COUNT( * ), - 32 ) AS col1
----
-20
40

skipif mysql # not compatible
query II rowsort label-2872
SELECT ALL - 20, + 16 + 25 + + NULLIF ( - COUNT ( * ), - 32 ) AS col1
----
-20
40

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2874
SELECT ALL 67 * - 62 + - CAST( NULL AS SIGNED ) + + - 41 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2874
SELECT ALL 67 * - 62 + - CAST ( NULL AS INTEGER ) + + - 41 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2875
SELECT + SUM( + 27 ) AS col2
----
27

skipif mysql # not compatible
query I rowsort label-2875
SELECT + SUM ( + 27 ) AS col2
----
27

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2876
SELECT 22 * MIN( + - 12 ) DIV 64
----
-4

skipif mysql # not compatible
query I rowsort label-2876
SELECT 22 * MIN ( + - 12 ) / 64
----
-4

query I rowsort
SELECT + + 31 * + + 19 + 47 AS col2
----
636

query II rowsort
SELECT DISTINCT - + 70 AS col0, + 21 AS col1
----
-70
21

onlyif mysql # aggregate syntax: 
query I rowsort label-2879
SELECT - SUM( 98 )
----
-98

skipif mysql # not compatible
query I rowsort label-2879
SELECT - SUM ( 98 )
----
-98

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

skipif mysql # not compatible
query I rowsort label-2880
SELECT 12 + - + COUNT ( * ) AS col1
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-2881
SELECT ALL 92 - + + 76 * - COUNT( * ) + COUNT( * )
----
169

skipif mysql # not compatible
query I rowsort label-2881
SELECT ALL 92 - + + 76 * - COUNT ( * ) + COUNT ( * )
----
169

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2882
SELECT DISTINCT - 54 - CAST( - + CASE + COALESCE ( + 41, - + ( 6 ) / - 85 ) WHEN - 55 + - - 34 / + 71 + + 10 + 25 THEN + + 36 ELSE NULL END AS DECIMAL ) + 2
----
NULL

skipif mysql # not compatible
query I rowsort label-2882
SELECT DISTINCT - 54 - CAST ( - + CASE + COALESCE ( + 41, - + ( 6 ) / - 85 ) WHEN - 55 + - - 34 / + 71 + + 10 + 25 THEN + + 36 ELSE NULL END AS REAL ) + 2
----
NULL

query I rowsort
SELECT ALL + 21 * + COALESCE ( - 27, + 14 )
----
-567

onlyif mysql # aggregate syntax: 
query I rowsort label-2884
SELECT + - MIN( ALL - - 2 ) * 80 * + - 95 * - 17 - + NULLIF ( + 69, + 36 / + 20 + + + 61 - 92 + - 50 / - 49 ) AS col1
----
-258469

skipif mysql # not compatible
query I rowsort label-2884
SELECT + - MIN ( ALL - - 2 ) * 80 * + - 95 * - 17 - + NULLIF ( + 69, + 36 / + 20 + + + 61 - 92 + - 50 / - 49 ) AS col1
----
-258469

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2885
SELECT ( + CASE + 40 WHEN + 68 + + 16 * 96 THEN NULL WHEN + + 67 + + + 22 THEN NULL WHEN - 32 * + + 20 THEN NULL ELSE - + CAST( NULL AS SIGNED ) * - NULLIF ( + - 75, - + 51 ) - + ( + - 46 ) END ) - + + NULLIF ( 11, - 2 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2885
SELECT ( + CASE + 40 WHEN + 68 + + 16 * 96 THEN NULL WHEN + + 67 + + + 22 THEN NULL WHEN - 32 * + + 20 THEN NULL ELSE - + CAST ( NULL AS INTEGER ) * - NULLIF ( + - 75, - + 51 ) - + ( + - 46 ) END ) - + + NULLIF ( 11, - 2 ) AS col1
----
NULL

query I rowsort
SELECT ALL 95 * + 86
----
8170

query I rowsort
SELECT + ( + 86 ) * 6 * + + 50 AS col2
----
25800

onlyif mysql # DIV for integer division: 
query I rowsort label-2888
SELECT - - 64 * 60 DIV - + 32 - 52
----
-172

skipif mysql # not compatible
query I rowsort label-2888
SELECT - - 64 * 60 / - + 32 - 52
----
-172

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2889
SELECT + 82 * CAST( 25 AS SIGNED )
----
2050

skipif mysql # not compatible
query I rowsort label-2889
SELECT + 82 * CAST ( 25 AS INTEGER )
----
2050

query I rowsort
SELECT ALL CASE 24 WHEN + 37 THEN + CASE + 72 WHEN - 0 THEN - 64 WHEN + - 12 THEN - AVG ( + 52 ) END + + 66 ELSE NULL END + 16 AS col2
----
NULL

query I rowsort
SELECT DISTINCT ( - 78 ) + 89 * + - 79 + - 24 + - - 29
----
-7104

query II rowsort
SELECT 15 AS col0, - 56 * - 47 * + 94 * - 34
----
15
-8411872

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

query I rowsort
SELECT ALL + 39 + - + 44
----
-5

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2896
SELECT DISTINCT CAST( NULL AS DECIMAL ) * + 7
----
NULL

skipif mysql # not compatible
query I rowsort label-2896
SELECT DISTINCT CAST ( NULL AS REAL ) * + 7
----
NULL

query II rowsort
SELECT ALL 50 AS col1, 80 col0
----
50
80

query II rowsort
SELECT - 52, - 59 AS col1
----
-52
-59

query I rowsort
SELECT DISTINCT CASE + ( 4 ) WHEN - 10 THEN NULL ELSE 50 END
----
50

onlyif mysql # DIV for integer division: 
query I rowsort label-2900
SELECT - 69 DIV + 65 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-2900
SELECT - 69 / + 65 AS col2
----
-1

query I rowsort
SELECT ALL - ( 13 ) + - 70 + - + NULLIF ( - 74, + 62 ) + + 53
----
44

query I rowsort
SELECT - 86 * - + 85
----
7310

query I rowsort
SELECT - 57 + 24 + + 96 col0
----
63

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

query I rowsort
SELECT 77 * 8 + + - 73 + - 7 * 4 AS col1
----
515

onlyif mysql # DIV for integer division: 
query I rowsort label-2906
SELECT - 39 DIV - 75 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2906
SELECT - 39 / - 75 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2907
SELECT - 50 * + NULLIF ( - MAX( DISTINCT + 72 ), 70 ) AS col0
----
3600

skipif mysql # not compatible
query I rowsort label-2907
SELECT - 50 * + NULLIF ( - MAX ( DISTINCT + 72 ), 70 ) AS col0
----
3600

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2908
SELECT + 19 DIV 10 + + 55 + + ( 41 ) * + - SUM( - 43 ) AS col0
----
1819

skipif mysql # not compatible
query I rowsort label-2908
SELECT + 19 / 10 + + 55 + + ( 41 ) * + - SUM ( - 43 ) AS col0
----
1819

onlyif mysql # aggregate syntax: 
query II rowsort label-2909
SELECT + 61 AS col0, 76 + - COUNT( ALL - 39 ) AS col2
----
61
75

skipif mysql # not compatible
query II rowsort label-2909
SELECT + 61 AS col0, 76 + - COUNT ( ALL - 39 ) AS col2
----
61
75

query I rowsort
SELECT - ( - 12 ) + + NULLIF ( ( - 0 ), + - 56 ) AS col1
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-2911
SELECT ALL - NULLIF ( - 38, - + 26 * - + 33 + + + NULLIF ( + 61, - 23 ) + MIN( ALL 56 ) * - 94 + + 93 * 0 * - 91 ) * - 65 * 90
----
-222300

skipif mysql # not compatible
query I rowsort label-2911
SELECT ALL - NULLIF ( - 38, - + 26 * - + 33 + + + NULLIF ( + 61, - 23 ) + MIN ( ALL 56 ) * - 94 + + 93 * 0 * - 91 ) * - 65 * 90
----
-222300

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2912
SELECT - - 10 - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2912
SELECT - - 10 - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2913
SELECT + + 40 * - ( + COUNT( * ) ) DIV + + 99 * + MAX( 45 ) + - 80 + 85 - CAST( + 44 AS SIGNED ) * - 92 + - NULLIF ( - 45, + 38 ) AS col0, - MAX( DISTINCT - - 47 )
----
4098
-47

skipif mysql # not compatible
query II rowsort label-2913
SELECT + + 40 * - ( + COUNT ( * ) ) / + + 99 * + MAX ( 45 ) + - 80 + 85 - CAST ( + 44 AS INTEGER ) * - 92 + - NULLIF ( - 45, + 38 ) AS col0, - MAX ( DISTINCT - - 47 )
----
4098
-47

query II rowsort
SELECT + 95 AS col0, 27 - - NULLIF ( + 19, + - 83 ) * + 40 - + - 85
----
95
872

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2915
SELECT DISTINCT + 14 * ( + ( + - CAST( NULL AS DECIMAL ) ) ) / - 5 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2915
SELECT DISTINCT + 14 * ( + ( + - CAST ( NULL AS REAL ) ) ) / - 5 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2916
SELECT ALL + + 43 AS col2, COUNT( * ) - 94 AS col1
----
43
-93

skipif mysql # not compatible
query II rowsort label-2916
SELECT ALL + + 43 AS col2, COUNT ( * ) - 94 AS col1
----
43
-93

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

skipif mysql # not compatible
query I rowsort label-2917
SELECT + CAST ( COUNT ( * ) AS INTEGER ) * 93 AS col2
----
93

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2918
SELECT - 35 * - + NULLIF ( + CASE - 92 WHEN - 1 THEN NULL WHEN - - 47 THEN - CAST( + - 60 AS DECIMAL ) END, + - 51 ) * + 60
----
NULL

skipif mysql # not compatible
query I rowsort label-2918
SELECT - 35 * - + NULLIF ( + CASE - 92 WHEN - 1 THEN NULL WHEN - - 47 THEN - CAST ( + - 60 AS REAL ) END, + - 51 ) * + 60
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2919
SELECT + 9 - - COUNT( * ) * - 31 - 87 + + - 75
----
-184

skipif mysql # not compatible
query I rowsort label-2919
SELECT + 9 - - COUNT ( * ) * - 31 - 87 + + - 75
----
-184

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

skipif mysql # not compatible
query I rowsort label-2920
SELECT SUM ( ALL - 10 )
----
-10

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2922
SELECT ALL + 65, CAST( NULL AS SIGNED ) AS col0
----
65
NULL

skipif mysql # not compatible
query II rowsort label-2922
SELECT ALL + 65, CAST ( NULL AS INTEGER ) AS col0
----
65
NULL

query II rowsort
SELECT ( - - 12 ) AS col1, 87 * - 71
----
12
-6177

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2924
SELECT + - CASE + ( - CAST( NULL AS SIGNED ) ) WHEN + 19 THEN NULL ELSE - 73 + + COUNT( * ) END + + 44 DIV + + 15 AS col2
----
74

skipif mysql # not compatible
query I rowsort label-2924
SELECT + - CASE + ( - CAST ( NULL AS INTEGER ) ) WHEN + 19 THEN NULL ELSE - 73 + + COUNT ( * ) END + + 44 / + + 15 AS col2
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-2925
SELECT + CASE 28 WHEN + 4 THEN NULL ELSE + - 94 END * - COUNT( * ) AS col1
----
94

skipif mysql # not compatible
query I rowsort label-2925
SELECT + CASE 28 WHEN + 4 THEN NULL ELSE + - 94 END * - COUNT ( * ) AS col1
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-2926
SELECT ALL + - MIN( DISTINCT + 63 ) * 33 * + COUNT( * ) * + 49 + 47 + - 74 + + 81 AS col2
----
-101817

skipif mysql # not compatible
query I rowsort label-2926
SELECT ALL + - MIN ( DISTINCT + 63 ) * 33 * + COUNT ( * ) * + 49 + 47 + - 74 + + 81 AS col2
----
-101817

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2927
SELECT ALL - + COUNT( * ) * - CASE 32 WHEN + + 33 * + CAST( MAX( - COALESCE ( 56, 68 ) ) AS SIGNED ) + 15 + + + 88 + + COUNT( * ) * 40 * ( + 96 ) - + 5 THEN + 94 - - 7 - + 86 * ( - COUNT( * ) ) * - 18 * - + 65 + - 56 WHEN 95 - - 68 THEN NULL ELSE - 23 END + - 82 + 81 + - - 34 AS col0
----
10

skipif mysql # not compatible
query I rowsort label-2927
SELECT ALL - + COUNT ( * ) * - CASE 32 WHEN + + 33 * + CAST ( MAX ( - COALESCE ( 56, 68 ) ) AS INTEGER ) + 15 + + + 88 + + COUNT ( * ) * 40 * ( + 96 ) - + 5 THEN + 94 - - 7 - + 86 * ( - COUNT ( * ) ) * - 18 * - + 65 + - 56 WHEN 95 - - 68 THEN NULL ELSE - 23 END + - 82 + 81 + - - 34 AS col0
----
10

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

skipif mysql # not compatible
query I rowsort label-2928
SELECT MAX ( + - 84 )
----
-84

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

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

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

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

query II rowsort
SELECT + 23 + 39 col0, - 20
----
62
-20

query I rowsort
SELECT + NULLIF ( - 15, - + 31 + - 22 ) * - + 69
----
1035

query II rowsort
SELECT - ( + - 60 ) AS col1, 51
----
60
51

query I rowsort
SELECT + 17 + 43 * 41
----
1780

onlyif mysql # aggregate syntax: 
query I rowsort label-2935
SELECT DISTINCT COUNT( * ) + + 24 - - 60 col1
----
85

skipif mysql # not compatible
query I rowsort label-2935
SELECT DISTINCT COUNT ( * ) + + 24 - - 60 col1
----
85

query I rowsort
SELECT ALL NULLIF ( + - 6, - 46 )
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-2937
SELECT + MIN( - 71 ) + + - 89 * + + 0 AS col1
----
-71

skipif mysql # not compatible
query I rowsort label-2937
SELECT + MIN ( - 71 ) + + - 89 * + + 0 AS col1
----
-71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2938
SELECT - 45 + - + 6 + + 14 + + CAST( NULL AS SIGNED ) + - - 14 * - 66 + + + 59
----
NULL

skipif mysql # not compatible
query I rowsort label-2938
SELECT - 45 + - + 6 + + 14 + + CAST ( NULL AS INTEGER ) + - - 14 * - 66 + + + 59
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2939
SELECT - 63 + + + COUNT( - - 20 ) * - + 63 * + COUNT( * ) * - 90 AS col2
----
5607

skipif mysql # not compatible
query I rowsort label-2939
SELECT - 63 + + + COUNT ( - - 20 ) * - + 63 * + COUNT ( * ) * - 90 AS col2
----
5607

onlyif mysql # aggregate syntax: 
query I rowsort label-2940
SELECT DISTINCT CASE - 17 WHEN + 4 THEN - + 50 * - CASE + COUNT( * ) WHEN + 45 THEN - + 99 + - - COUNT( * ) WHEN AVG ( 90 ) THEN ( + AVG ( ALL + - 21 ) ) * 66 + - 64 * - AVG ( + CASE - ( - - 98 ) WHEN + 37 THEN - 75 WHEN - - ( 40 ) THEN NULL END ) + MIN( DISTINCT 24 ) WHEN 70 THEN NULL ELSE NULL END * + CASE - 25 WHEN 11 THEN 27 * NULLIF ( + - 83, 65 * + + 37 ) END + 49 + + 90 WHEN + - 0 THEN + 81 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2940
SELECT DISTINCT CASE - 17 WHEN + 4 THEN - + 50 * - CASE + COUNT ( * ) WHEN + 45 THEN - + 99 + - - COUNT ( * ) WHEN AVG ( 90 ) THEN ( + AVG ( ALL + - 21 ) ) * 66 + - 64 * - AVG ( + CASE - ( - - 98 ) WHEN + 37 THEN - 75 WHEN - - ( 40 ) THEN NULL END ) + MIN ( DISTINCT 24 ) WHEN 70 THEN NULL ELSE NULL END * + CASE - 25 WHEN 11 THEN 27 * NULLIF ( + - 83, 65 * + + 37 ) END + 49 + + 90 WHEN + - 0 THEN + 81 ELSE NULL END
----
NULL

query I rowsort
SELECT + 27 * + - 91 AS col1
----
-2457

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

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

query I rowsort
SELECT ALL + 76 * - 4
----
-304

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2944
SELECT ALL + COALESCE ( 28, - + 66 DIV - 49 * + 97, + + 96 DIV + - 19 ), 17 DIV 72 + - COUNT( * ) AS col2
----
28
-1

skipif mysql # not compatible
query II rowsort label-2944
SELECT ALL + COALESCE ( 28, - + 66 / - 49 * + 97, + + 96 / + - 19 ), 17 / 72 + - COUNT ( * ) AS col2
----
28
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-2945
SELECT DISTINCT + + MAX( ALL - - 94 ) AS col1, 60 * - - 91 AS col1
----
94
5460

skipif mysql # not compatible
query II rowsort label-2945
SELECT DISTINCT + + MAX ( ALL - - 94 ) AS col1, 60 * - - 91 AS col1
----
94
5460

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2948
SELECT - MIN( - 78 ) col2
----
78

skipif mysql # not compatible
query I rowsort label-2948
SELECT - MIN ( - 78 ) col2
----
78

onlyif mysql # DIV for integer division: 
query I rowsort label-2949
SELECT - + 92 DIV - 75 + + - ( 24 ) col2
----
-23

skipif mysql # not compatible
query I rowsort label-2949
SELECT - + 92 / - 75 + + - ( 24 ) col2
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-2950
SELECT + 33 * + COUNT( DISTINCT - 38 ) - + + 89
----
-56

skipif mysql # not compatible
query I rowsort label-2950
SELECT + 33 * + COUNT ( DISTINCT - 38 ) - + + 89
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-2951
SELECT 0 * + NULLIF ( - - 68, COUNT( - 0 ) ) * + 9
----
0

skipif mysql # not compatible
query I rowsort label-2951
SELECT 0 * + NULLIF ( - - 68, COUNT ( - 0 ) ) * + 9
----
0

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

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

skipif mysql # not compatible
query I rowsort label-2953
SELECT ALL - + COUNT ( * ) / 39 + - - 19
----
19

onlyif mysql # aggregate syntax: 
query II rowsort label-2954
SELECT DISTINCT + COALESCE ( + + 11, - ( 96 ) - + + 50, + 25 + - 66 * ( + 78 ) + - - 54 ) * + + ( - COUNT( * ) ), 84 AS col1
----
-11
84

skipif mysql # not compatible
query II rowsort label-2954
SELECT DISTINCT + COALESCE ( + + 11, - ( 96 ) - + + 50, + 25 + - 66 * ( + 78 ) + - - 54 ) * + + ( - COUNT ( * ) ), 84 AS col1
----
-11
84

query I rowsort
SELECT DISTINCT - + 84 + 30 AS col0
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-2956
SELECT 70 * - - ( - 78 ) * + MAX( DISTINCT ( + 93 ) ) * - 1 + + - COUNT( * ) * + 38 AS col2
----
507742

skipif mysql # not compatible
query I rowsort label-2956
SELECT 70 * - - ( - 78 ) * + MAX ( DISTINCT ( + 93 ) ) * - 1 + + - COUNT ( * ) * + 38 AS col2
----
507742

query I rowsort
SELECT ALL - 8 + 98 AS col1
----
90

query I rowsort
SELECT DISTINCT - COALESCE ( - 88, - 75 ) AS col0
----
88

query I rowsort
SELECT - 38 * - 65 - - + 98 AS col2
----
2568

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

query II rowsort
SELECT + 73, - 6 col2
----
73
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2962
SELECT CASE 88 WHEN 66 THEN NULL WHEN - 89 THEN - 15 WHEN 10 THEN NULL ELSE NULL END + - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2962
SELECT CASE 88 WHEN 66 THEN NULL WHEN - 89 THEN - 15 WHEN 10 THEN NULL ELSE NULL END + - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query II rowsort
SELECT + 25 AS col1, + 16
----
25
16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2964
SELECT 75 * + + CASE - COUNT( * ) WHEN + ( - COUNT( * ) ) THEN - 98 * + - 93 ELSE - - 75 + - - 29 * + - 4 + + + 5 - + 61 - - COALESCE ( + 66, + 71 DIV + 63 ) END + + 28 AS col2
----
683578

skipif mysql # not compatible
query I rowsort label-2964
SELECT 75 * + + CASE - COUNT ( * ) WHEN + ( - COUNT ( * ) ) THEN - 98 * + - 93 ELSE - - 75 + - - 29 * + - 4 + + + 5 - + 61 - - COALESCE ( + 66, + 71 / + 63 ) END + + 28 AS col2
----
683578

onlyif mysql # aggregate syntax: 
query II rowsort label-2965
SELECT 43 * + 0 * + 22 col0, - ( 37 ) - 11 + MAX( DISTINCT - 61 ) * - - 74
----
0
-4562

skipif mysql # not compatible
query II rowsort label-2965
SELECT 43 * + 0 * + 22 col0, - ( 37 ) - 11 + MAX ( DISTINCT - 61 ) * - - 74
----
0
-4562

onlyif mysql # DIV for integer division: 
query I rowsort label-2966
SELECT ALL 87 DIV - 51 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-2966
SELECT ALL 87 / - 51 AS col0
----
-1

query II rowsort
SELECT - 39, + 65 AS col0
----
-39
65

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

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

query I rowsort
SELECT DISTINCT 22 * + + 40 col1
----
880

query I rowsort
SELECT 33 * - 90 AS col2
----
-2970

query I rowsort
SELECT DISTINCT 86 * - - 71 AS col1
----
6106

query I rowsort
SELECT CASE - + 54 WHEN + 54 * 49 THEN + + 9 WHEN 53 THEN 23 WHEN - 32 + - 94 THEN NULL END / - - 43 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2973
SELECT MAX( + 93 ) DIV - 55 AS col2, + 79
----
-1
79

skipif mysql # not compatible
query II rowsort label-2973
SELECT MAX ( + 93 ) / - 55 AS col2, + 79
----
-1
79

query I rowsort
SELECT DISTINCT + 4 * 39
----
156

onlyif mysql # aggregate syntax: 
query II rowsort label-2975
SELECT ALL 14, 36 + + 35 - - 61 - + 85 * COUNT( * ) AS col1
----
14
47

skipif mysql # not compatible
query II rowsort label-2975
SELECT ALL 14, 36 + + 35 - - 61 - + 85 * COUNT ( * ) AS col1
----
14
47

query II rowsort
SELECT DISTINCT 29, 99 AS col2
----
29
99

query I rowsort
SELECT + 64 - - 75 - - 83 + + - ( 25 )
----
197

query I rowsort
SELECT 36 * + 5
----
180

query I rowsort
SELECT 54 * 61
----
3294

onlyif mysql # aggregate syntax: 
query I rowsort label-2980
SELECT + ( 59 ) + - SUM( 50 )
----
9

skipif mysql # not compatible
query I rowsort label-2980
SELECT + ( 59 ) + - SUM ( 50 )
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-2981
SELECT + NULLIF ( + - 70, + - COUNT( DISTINCT + - 25 ) )
----
-70

skipif mysql # not compatible
query I rowsort label-2981
SELECT + NULLIF ( + - 70, + - COUNT ( DISTINCT + - 25 ) )
----
-70

query II rowsort
SELECT ALL - 56 col2, + 84 + + 55 AS col1
----
-56
139

query I rowsort
SELECT ALL + 3 + - 23
----
-20

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2984
SELECT ALL + 81 * + + 68 + - 91 + + - 65 + - - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-2984
SELECT ALL + 81 * + + 68 + - 91 + + - 65 + - - CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT ALL 28 + 11 AS col2
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-2986
SELECT SUM( 14 ) AS col0
----
14

skipif mysql # not compatible
query I rowsort label-2986
SELECT SUM ( 14 ) AS col0
----
14

query I rowsort
SELECT 25 * + 21 * - 64 col1
----
-33600

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2988
SELECT DISTINCT + + ( + 44 ) + - COUNT( * ) * COUNT( * ) DIV - COUNT( * ) + + - 84 AS col2
----
-39

skipif mysql # not compatible
query I rowsort label-2988
SELECT DISTINCT + + ( + 44 ) + - COUNT ( * ) * COUNT ( * ) / - COUNT ( * ) + + - 84 AS col2
----
-39

query I rowsort
SELECT + 8 + + 68
----
76

onlyif mysql # DIV for integer division: 
query I rowsort label-2990
SELECT DISTINCT + 98 DIV + 70 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2990
SELECT DISTINCT + 98 / + 70 AS col2
----
1

query I rowsort
SELECT 43 * + 32 col1
----
1376

query II rowsort
SELECT ALL + 80 * + 50 col2, 21
----
4000
21

query I rowsort
SELECT DISTINCT - 26 * 31
----
-806

query I rowsort
SELECT 52 + + + 88 * 58 AS col2
----
5156

query I rowsort
SELECT DISTINCT 81 - + 21
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-2996
SELECT DISTINCT - 35 * + MAX( DISTINCT + 30 ) AS col0
----
-1050

skipif mysql # not compatible
query I rowsort label-2996
SELECT DISTINCT - 35 * + MAX ( DISTINCT + 30 ) AS col0
----
-1050

query I rowsort
SELECT 42 * + 13
----
546

query I rowsort
SELECT 78 * 86
----
6708

query I rowsort
SELECT 49 + - 90 + - 33 + + CASE + + 10 WHEN - - ( + NULLIF ( + AVG ( - 16 ), + 79 ) ) THEN NULL ELSE 40 END AS col2
----
-34

query I rowsort
SELECT ALL CASE 26 WHEN + + 82 THEN NULL ELSE + 79 + - 5 END
----
74

query I rowsort
SELECT ALL + 18 * 18 AS col2
----
324

onlyif mysql # aggregate syntax: 
query I rowsort label-3002
SELECT 74 + CASE + ( + 38 ) WHEN + 63 THEN - + COUNT( * ) ELSE + NULLIF ( - - COUNT( * ), - 12 + + + 26 ) END
----
75

skipif mysql # not compatible
query I rowsort label-3002
SELECT 74 + CASE + ( + 38 ) WHEN + 63 THEN - + COUNT ( * ) ELSE + NULLIF ( - - COUNT ( * ), - 12 + + + 26 ) END
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-3003
SELECT ALL MAX( - COALESCE ( + 50, + 40 * 64 + - 45 ) )
----
-50

skipif mysql # not compatible
query I rowsort label-3003
SELECT ALL MAX ( - COALESCE ( + 50, + 40 * 64 + - 45 ) )
----
-50

query I rowsort
SELECT - NULLIF ( + + 11, + 59 )
----
-11

query I rowsort
SELECT + 40 + + 45 AS col1
----
85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3006
SELECT + + 99 / + 73 + + SUM( + 70 ) + + - CAST( - 46 AS SIGNED ) + - - 23 * + 1 * + 82 + - CASE WHEN NOT CASE - NULLIF ( - 75, + COUNT( * ) ) WHEN + 30 - + 46 THEN - COUNT( * ) * 20 * 56 - 58 + + CAST( NULL AS SIGNED ) - - 64 * 33 * - - 45 + + + 44 * - 3 END IS NULL THEN 14 END * - COUNT( * ) * + 29 + - ( + 11 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3006
SELECT + + 99 / + 73 + + SUM ( + 70 ) + + - CAST ( - 46 AS INTEGER ) + - - 23 * + 1 * + 82 + - CASE WHEN NOT CASE - NULLIF ( - 75, + COUNT ( * ) ) WHEN + 30 - + 46 THEN - COUNT ( * ) * 20 * 56 - 58 + + CAST ( NULL AS INTEGER ) - - 64 * 33 * - - 45 + + + 44 * - 3 END IS NULL THEN 14 END * - COUNT ( * ) * + 29 + - ( + 11 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3007
SELECT - - CAST( + COUNT( * ) AS SIGNED ) * + NULLIF ( + - 29, - NULLIF ( + 90, - 29 * NULLIF ( + ( - + 22 ), - 40 + + - 83 * NULLIF ( - + 90, + 7 ) ) ) * + 22 ) AS col2
----
-29

skipif mysql # not compatible
query I rowsort label-3007
SELECT - - CAST ( + COUNT ( * ) AS INTEGER ) * + NULLIF ( + - 29, - NULLIF ( + 90, - 29 * NULLIF ( + ( - + 22 ), - 40 + + - 83 * NULLIF ( - + 90, + 7 ) ) ) * + 22 ) AS col2
----
-29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3008
SELECT + 62 + - + COUNT( * ) + - 63 + - CAST( + 11 AS SIGNED )
----
-13

skipif mysql # not compatible
query I rowsort label-3008
SELECT + 62 + - + COUNT ( * ) + - 63 + - CAST ( + 11 AS INTEGER )
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-3009
SELECT SUM( 55 ) AS col2
----
55

skipif mysql # not compatible
query I rowsort label-3009
SELECT SUM ( 55 ) AS col2
----
55

query II rowsort
SELECT + ( + 66 ) AS col1, 67
----
66
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3011
SELECT ALL - ( - 78 ) * - + CAST( + NULLIF ( COUNT( * ), - 51 ) AS SIGNED ) + - - 37 + + COALESCE ( - + 16, - 88 ) AS col0
----
-57

skipif mysql # not compatible
query I rowsort label-3011
SELECT ALL - ( - 78 ) * - + CAST ( + NULLIF ( COUNT ( * ), - 51 ) AS INTEGER ) + - - 37 + + COALESCE ( - + 16, - 88 ) AS col0
----
-57

query I rowsort
SELECT + - 86 * - + 56 + - + 27
----
4789

query I rowsort
SELECT ALL + - ( + 59 ) AS col2
----
-59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3014
SELECT ALL 12 * 55 * - 4 * + COUNT( * ) * - 25 DIV - COUNT( * )
----
-66000

skipif mysql # not compatible
query I rowsort label-3014
SELECT ALL 12 * 55 * - 4 * + COUNT ( * ) * - 25 / - COUNT ( * )
----
-66000

onlyif mysql # aggregate syntax: 
query I rowsort label-3015
SELECT + NULLIF ( 96, SUM( - - 43 ) )
----
96

skipif mysql # not compatible
query I rowsort label-3015
SELECT + NULLIF ( 96, SUM ( - - 43 ) )
----
96

query I rowsort
SELECT + NULLIF ( 79, + - 86 ) AS col2
----
79

query I rowsort
SELECT + NULLIF ( - + 12, - 28 ) * + 63 col0
----
-756

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3018
SELECT - CAST( NULL AS SIGNED ) + 36 + - 19 * + 0 * - 29 * + 3 * + + 66 * + 41 / + + 31 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3018
SELECT - CAST ( NULL AS INTEGER ) + 36 + - 19 * + 0 * - 29 * + 3 * + + 66 * + 41 / + + 31 AS col0
----
NULL

query I rowsort
SELECT DISTINCT + NULLIF ( - 55, + + 35 )
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-3020
SELECT MIN( ALL + 0 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3020
SELECT MIN ( ALL + 0 ) AS col0
----
0

query II rowsort
SELECT ALL 99 col0, - NULLIF ( + - 28, + + 42 ) AS col0
----
99
28

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3022
SELECT - 86 DIV 57 * 36 * + COUNT( DISTINCT - 85 ) * - + 47 DIV - NULLIF ( + - 1, - 9 ) AS col1
----
1692

skipif mysql # not compatible
query I rowsort label-3022
SELECT - 86 / 57 * 36 * + COUNT ( DISTINCT - 85 ) * - + 47 / - NULLIF ( + - 1, - 9 ) AS col1
----
1692

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3023
SELECT DISTINCT 10 DIV + + ( - + CASE 67 WHEN COUNT( * ) THEN + 10 + - ( ( + - 2 ) ) WHEN 25 * - 52 THEN NULL ELSE + - 12 * + 54 DIV + - 5 END )
----
0

skipif mysql # not compatible
query I rowsort label-3023
SELECT DISTINCT 10 / + + ( - + CASE 67 WHEN COUNT ( * ) THEN + 10 + - ( ( + - 2 ) ) WHEN 25 * - 52 THEN NULL ELSE + - 12 * + 54 / + - 5 END )
----
0

query I rowsort
SELECT DISTINCT - 32 * 69 AS col0
----
-2208

onlyif mysql # aggregate syntax: 
query I rowsort label-3025
SELECT DISTINCT MAX( + 94 ) AS col1
----
94

skipif mysql # not compatible
query I rowsort label-3025
SELECT DISTINCT MAX ( + 94 ) AS col1
----
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3026
SELECT - CAST( + + COALESCE ( 22, - 21 / 12 / - 69, COUNT( * ) / + - 0 * - 6 + 6 ) AS SIGNED ) AS col1
----
-22

skipif mysql # not compatible
query I rowsort label-3026
SELECT - CAST ( + + COALESCE ( 22, - 21 / 12 / - 69, COUNT ( * ) / + - 0 * - 6 + 6 ) AS INTEGER ) AS col1
----
-22

query I rowsort
SELECT - 33 * 76
----
-2508

onlyif mysql # aggregate syntax: 
query I rowsort label-3028
SELECT DISTINCT - COUNT( * ) + + 16 AS col1
----
15

skipif mysql # not compatible
query I rowsort label-3028
SELECT DISTINCT - COUNT ( * ) + + 16 AS col1
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-3029
SELECT ALL - 14 + ( COUNT( * ) ) * 52
----
38

skipif mysql # not compatible
query I rowsort label-3029
SELECT ALL - 14 + ( COUNT ( * ) ) * 52
----
38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3030
SELECT - CAST( 57 AS SIGNED ) * 87
----
-4959

skipif mysql # not compatible
query I rowsort label-3030
SELECT - CAST ( 57 AS INTEGER ) * 87
----
-4959

query I rowsort
SELECT + 2 * - 60
----
-120

onlyif mysql # aggregate syntax: 
query I rowsort label-3032
SELECT DISTINCT - 33 + + COUNT( DISTINCT 30 )
----
-32

skipif mysql # not compatible
query I rowsort label-3032
SELECT DISTINCT - 33 + + COUNT ( DISTINCT 30 )
----
-32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3033
SELECT DISTINCT CAST( 69 AS SIGNED )
----
69

skipif mysql # not compatible
query I rowsort label-3033
SELECT DISTINCT CAST ( 69 AS INTEGER )
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-3034
SELECT ALL - ( - 24 ) + COUNT( * ) * + CASE + COUNT( * ) WHEN 4 THEN 0 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3034
SELECT ALL - ( - 24 ) + COUNT ( * ) * + CASE + COUNT ( * ) WHEN 4 THEN 0 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3035
SELECT - 90 - NULLIF ( NULLIF ( SUM( DISTINCT 62 ), 40 * 53 ), - COUNT( * ) + - 78 ) * - 12 AS col2
----
654

skipif mysql # not compatible
query I rowsort label-3035
SELECT - 90 - NULLIF ( NULLIF ( SUM ( DISTINCT 62 ), 40 * 53 ), - COUNT ( * ) + - 78 ) * - 12 AS col2
----
654

onlyif mysql # aggregate syntax: 
query I rowsort label-3036
SELECT ALL NULLIF ( - COUNT( * ), 81 / - 32 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-3036
SELECT ALL NULLIF ( - COUNT ( * ), 81 / - 32 ) AS col2
----
-1

query I rowsort
SELECT - 66 * + 26 AS col0
----
-1716

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3038
SELECT ALL CAST( + 31 AS SIGNED ) * COUNT( * )
----
31

skipif mysql # not compatible
query I rowsort label-3038
SELECT ALL CAST ( + 31 AS INTEGER ) * COUNT ( * )
----
31

query I rowsort
SELECT DISTINCT ( - 77 ) col0
----
-77

onlyif mysql # DIV for integer division: 
query I rowsort label-3040
SELECT - CASE - 60 WHEN 28 THEN 83 DIV 12 + - 59 WHEN - 68 THEN NULL ELSE + 11 END + - 80 AS col2
----
-91

skipif mysql # not compatible
query I rowsort label-3040
SELECT - CASE - 60 WHEN 28 THEN 83 / 12 + - 59 WHEN - 68 THEN NULL ELSE + 11 END + - 80 AS col2
----
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3041
SELECT - NULLIF ( CAST( NULL AS SIGNED ), - 60 + - 45 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3041
SELECT - NULLIF ( CAST ( NULL AS INTEGER ), - 60 + - 45 ) AS col0
----
NULL

query I rowsort
SELECT - 31 + - 19 AS col0
----
-50

query I rowsort
SELECT + 36 - + 10
----
26

onlyif mysql # DIV for integer division: 
query I rowsort label-3044
SELECT - 20 DIV 40 + 65 AS col1
----
65

skipif mysql # not compatible
query I rowsort label-3044
SELECT - 20 / 40 + 65 AS col1
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-3045
SELECT + MAX( 75 )
----
75

skipif mysql # not compatible
query I rowsort label-3045
SELECT + MAX ( 75 )
----
75

query I rowsort
SELECT - 83 + - 43 AS col2
----
-126

onlyif mysql # DIV for integer division: 
query I rowsort label-3047
SELECT DISTINCT - 94 DIV + 57 - ( 13 ) AS col1
----
-14

skipif mysql # not compatible
query I rowsort label-3047
SELECT DISTINCT - 94 / + 57 - ( 13 ) AS col1
----
-14

onlyif mysql # DIV for integer division: 
query I rowsort label-3048
SELECT DISTINCT - 44 DIV 85 - 59 AS col0
----
-59

skipif mysql # not compatible
query I rowsort label-3048
SELECT DISTINCT - 44 / 85 - 59 AS col0
----
-59

query I rowsort
SELECT 26 * - 99 + + 64
----
-2510

onlyif mysql # DIV for integer division: 
query I rowsort label-3050
SELECT ALL 64 DIV - 95 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3050
SELECT ALL 64 / - 95 AS col1
----
0

query I rowsort
SELECT + 70 * 55 AS col2
----
3850

onlyif mysql # aggregate syntax: 
query I rowsort label-3052
SELECT + COALESCE ( MAX( ALL - 50 ), + 39 ) * 86
----
-4300

skipif mysql # not compatible
query I rowsort label-3052
SELECT + COALESCE ( MAX ( ALL - 50 ), + 39 ) * 86
----
-4300

query I rowsort
SELECT + NULLIF ( 35, - 25 / ( NULLIF ( ( - 77 ), 31 ) ) - ( - 41 ) )
----
35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3054
SELECT + CAST( + AVG ( DISTINCT 84 ) AS SIGNED ) + - 34 col0
----
50

skipif mysql # not compatible
query I rowsort label-3054
SELECT + CAST ( + AVG ( DISTINCT 84 ) AS INTEGER ) + - 34 col0
----
50

query I rowsort
SELECT + COALESCE ( 4, 67, + 42 * + 68 ) * ( 74 )
----
296

onlyif mysql # aggregate syntax: 
query I rowsort label-3056
SELECT 82 * + MAX( DISTINCT - 68 ) - - 37 * + 74
----
-2838

skipif mysql # not compatible
query I rowsort label-3056
SELECT 82 * + MAX ( DISTINCT - 68 ) - - 37 * + 74
----
-2838

query I rowsort
SELECT ALL 69 * + 42 AS col0
----
2898

onlyif mysql # aggregate syntax: 
query I rowsort label-3058
SELECT DISTINCT 49 * 34 + - COUNT( * ) * - 52
----
1718

skipif mysql # not compatible
query I rowsort label-3058
SELECT DISTINCT 49 * 34 + - COUNT ( * ) * - 52
----
1718

query I rowsort
SELECT + 74 * - 76 + 15 AS col2
----
-5609

onlyif mysql # aggregate syntax: 
query I rowsort label-3060
SELECT ALL + MIN( DISTINCT 78 )
----
78

skipif mysql # not compatible
query I rowsort label-3060
SELECT ALL + MIN ( DISTINCT 78 )
----
78

onlyif mysql # DIV for integer division: 
query I rowsort label-3061
SELECT ALL 24 * ( + 17 DIV + 12 ) + + 3
----
27

skipif mysql # not compatible
query I rowsort label-3061
SELECT ALL 24 * ( + 17 / + 12 ) + + 3
----
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3062
SELECT + NULLIF ( + COUNT( * ), - COUNT( * ) * - 46 + + NULLIF ( - SUM( ALL - 42 ), - MIN( CAST( NULL AS SIGNED ) ) ) ) * CAST( NULL AS SIGNED ) + + 13
----
NULL

skipif mysql # not compatible
query I rowsort label-3062
SELECT + NULLIF ( + COUNT ( * ), - COUNT ( * ) * - 46 + + NULLIF ( - SUM ( ALL - 42 ), - MIN ( CAST ( NULL AS INTEGER ) ) ) ) * CAST ( NULL AS INTEGER ) + + 13
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3063
SELECT 74 + NULLIF ( + COUNT( * ), - 15 * ( 38 ) )
----
75

skipif mysql # not compatible
query I rowsort label-3063
SELECT 74 + NULLIF ( + COUNT ( * ), - 15 * ( 38 ) )
----
75

query I rowsort
SELECT 9 - 38 * + 98 col2
----
-3715

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3065
SELECT CASE - COALESCE ( - 47, SUM( 87 ) ) WHEN CAST( NULL AS SIGNED ) THEN NULL WHEN COUNT( * ) THEN + 38 * 15 END + CASE - 75 - - 12 * 92 WHEN - CAST( 13 AS SIGNED ) * - 61 + - 12 * - 93 THEN COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3065
SELECT CASE - COALESCE ( - 47, SUM ( 87 ) ) WHEN CAST ( NULL AS INTEGER ) THEN NULL WHEN COUNT ( * ) THEN + 38 * 15 END + CASE - 75 - - 12 * 92 WHEN - CAST ( 13 AS INTEGER ) * - 61 + - 12 * - 93 THEN COUNT ( * ) ELSE NULL END
----
NULL

query I rowsort
SELECT - 61 * 40 - + 53 * + 15
----
-3235

onlyif mysql # aggregate syntax: 
query I rowsort label-3067
SELECT - + SUM( DISTINCT 8 ) AS col2
----
-8

skipif mysql # not compatible
query I rowsort label-3067
SELECT - + SUM ( DISTINCT 8 ) AS col2
----
-8

onlyif mysql # DIV for integer division: 
query I rowsort label-3068
SELECT + 44 DIV + COALESCE ( 78, + 75 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3068
SELECT + 44 / + COALESCE ( 78, + 75 ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3069
SELECT DISTINCT COUNT( * ) + 49 col1
----
50

skipif mysql # not compatible
query I rowsort label-3069
SELECT DISTINCT COUNT ( * ) + 49 col1
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-3070
SELECT ALL + 85 + - COUNT( * ) AS col0
----
84

skipif mysql # not compatible
query I rowsort label-3070
SELECT ALL + 85 + - COUNT ( * ) AS col0
----
84

query I rowsort
SELECT ALL ( 62 ) + - 33 * - 61
----
2075

onlyif mysql # DIV for integer division: 
query I rowsort label-3072
SELECT ALL + 16 DIV + 25
----
0

skipif mysql # not compatible
query I rowsort label-3072
SELECT ALL + 16 / + 25
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3073
SELECT DISTINCT MAX( DISTINCT - 91 )
----
-91

skipif mysql # not compatible
query I rowsort label-3073
SELECT DISTINCT MAX ( DISTINCT - 91 )
----
-91

query I rowsort
SELECT ALL + 36 * + 40 AS col0
----
1440

onlyif mysql # aggregate syntax: 
query I rowsort label-3075
SELECT - 24 + SUM( ALL + 56 )
----
32

skipif mysql # not compatible
query I rowsort label-3075
SELECT - 24 + SUM ( ALL + 56 )
----
32

query I rowsort
SELECT ALL + + 75 + 11 AS col1
----
86

query I rowsort
SELECT 31 * - 28
----
-868

onlyif mysql # aggregate syntax: 
query I rowsort label-3078
SELECT + 0 * + COUNT( * ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3078
SELECT + 0 * + COUNT ( * ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3079
SELECT DISTINCT - - 33 - - MIN( DISTINCT 17 ) AS col1
----
50

skipif mysql # not compatible
query I rowsort label-3079
SELECT DISTINCT - - 33 - - MIN ( DISTINCT 17 ) AS col1
----
50

query I rowsort
SELECT + 18 * 33
----
594

query I rowsort
SELECT DISTINCT + 51 - 25 AS col2
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-3082
SELECT + MAX( 35 ) AS col1
----
35

skipif mysql # not compatible
query I rowsort label-3082
SELECT + MAX ( 35 ) AS col1
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-3083
SELECT DISTINCT - CASE + + 32 WHEN COUNT( * ) / 94 THEN + 89 WHEN - NULLIF ( 20, - 38 ) THEN - 78 + - 65 ELSE NULL END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3083
SELECT DISTINCT - CASE + + 32 WHEN COUNT ( * ) / 94 THEN + 89 WHEN - NULLIF ( 20, - 38 ) THEN - 78 + - 65 ELSE NULL END col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3084
SELECT 58 / + CAST( NULL AS SIGNED ) * SUM( - CAST( NULL AS SIGNED ) ) - 48 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3084
SELECT 58 / + CAST ( NULL AS INTEGER ) * SUM ( - CAST ( NULL AS INTEGER ) ) - 48 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3085
SELECT 68 DIV - 70
----
0

skipif mysql # not compatible
query I rowsort label-3085
SELECT 68 / - 70
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3086
SELECT DISTINCT - 76 DIV + 42 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-3086
SELECT DISTINCT - 76 / + 42 AS col1
----
-1

query I rowsort
SELECT 52 * - - ( 2 ) AS col2
----
104

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3088
SELECT 58 / CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3088
SELECT 58 / CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3089
SELECT 94 * - 83 / - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3089
SELECT 94 * - 83 / - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT 22 + - ( + 55 ) + 90
----
57

query I rowsort
SELECT DISTINCT - 77 * + 73 AS col1
----
-5621

query I rowsort
SELECT CASE WHEN + 53 <> ( + 34 ) THEN 32 END * 65 - 80 col0
----
2000

query I rowsort
SELECT ALL - 59 * 58 col0
----
-3422

onlyif mysql # DIV for integer division: 
query I rowsort label-3094
SELECT DISTINCT + 4 + + + 78 - - 22 DIV - 13 AS col2
----
81

skipif mysql # not compatible
query I rowsort label-3094
SELECT DISTINCT + 4 + + + 78 - - 22 / - 13 AS col2
----
81

query I rowsort
SELECT DISTINCT - 50 + 95
----
45

query I rowsort
SELECT 93 * - 21 AS col1
----
-1953

query I rowsort
SELECT ALL - 87 + - - 41 AS col0
----
-46

query I rowsort
SELECT ALL 21 + + 27 + + 91
----
139

query I rowsort
SELECT 77 + 36
----
113

onlyif mysql # DIV for integer division: 
query I rowsort label-3100
SELECT 83 * 39 DIV 85 AS col2
----
38

skipif mysql # not compatible
query I rowsort label-3100
SELECT 83 * 39 / 85 AS col2
----
38

query I rowsort
SELECT 19 + + 59 AS col2
----
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3102
SELECT - 57 * + - CAST( NULL AS SIGNED ) * - 47 - 26
----
NULL

skipif mysql # not compatible
query I rowsort label-3102
SELECT - 57 * + - CAST ( NULL AS INTEGER ) * - 47 - 26
----
NULL

query I rowsort
SELECT ALL COALESCE ( 85, 30 * - 43, 91 ) + 61
----
146

query I rowsort
SELECT - 81 * + ( 80 ) * - 92 AS col0
----
596160

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3105
SELECT DISTINCT - 98 * CAST( - ( 77 ) AS SIGNED ) * + 44 + - 47 * 48
----
329768

skipif mysql # not compatible
query I rowsort label-3105
SELECT DISTINCT - 98 * CAST ( - ( 77 ) AS INTEGER ) * + 44 + - 47 * 48
----
329768

query I rowsort
SELECT DISTINCT - ( + 29 ) * + 60
----
-1740

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3107
SELECT ALL 65 - CASE + 65 WHEN - CAST( - CAST( 58 AS SIGNED ) AS DECIMAL ) / + 75 THEN - 71 ELSE CASE 94 WHEN 51 THEN 24 END END
----
NULL

skipif mysql # not compatible
query I rowsort label-3107
SELECT ALL 65 - CASE + 65 WHEN - CAST ( - CAST ( 58 AS INTEGER ) AS REAL ) / + 75 THEN - 71 ELSE CASE 94 WHEN 51 THEN 24 END END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3108
SELECT + 48 - + CAST( 30 AS SIGNED ) AS col2
----
18

skipif mysql # not compatible
query I rowsort label-3108
SELECT + 48 - + CAST ( 30 AS INTEGER ) AS col2
----
18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3109
SELECT COALESCE ( - 36, CAST( NULL AS SIGNED ), 80 + - 73 ) - - 81 * + 84
----
6768

skipif mysql # not compatible
query I rowsort label-3109
SELECT COALESCE ( - 36, CAST ( NULL AS INTEGER ), 80 + - 73 ) - - 81 * + 84
----
6768

onlyif mysql # aggregate syntax: 
query I rowsort label-3110
SELECT COUNT( ALL - 28 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3110
SELECT COUNT ( ALL - 28 ) AS col2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3111
SELECT DISTINCT CASE - 20 WHEN - CAST( 10 AS SIGNED ) THEN + 10 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3111
SELECT DISTINCT CASE - 20 WHEN - CAST ( 10 AS INTEGER ) THEN + 10 END AS col1
----
NULL

query I rowsort
SELECT ALL ( 18 )
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-3113
SELECT - COALESCE ( + 22, 94 + COALESCE ( 19, - 84 + + CASE COUNT( * ) + COUNT( * ) WHEN - 30 + 49 THEN - 53 * ( - ( - 66 ) ) ELSE NULL END, 22 ) * ( 91 ), ( 81 ) )
----
-22

skipif mysql # not compatible
query I rowsort label-3113
SELECT - COALESCE ( + 22, 94 + COALESCE ( 19, - 84 + + CASE COUNT ( * ) + COUNT ( * ) WHEN - 30 + 49 THEN - 53 * ( - ( - 66 ) ) ELSE NULL END, 22 ) * ( 91 ), ( 81 ) )
----
-22

query I rowsort
SELECT - 84 * - + 34 AS col2
----
2856

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3115
SELECT CAST( - 6 AS SIGNED ) AS col2
----
-6

skipif mysql # not compatible
query I rowsort label-3115
SELECT CAST ( - 6 AS INTEGER ) AS col2
----
-6

query I rowsort
SELECT - 98 - - 62 AS col2
----
-36

query I rowsort
SELECT 84 * - 8 + - 13 AS col2
----
-685

query I rowsort
SELECT 15 - + CASE 35 WHEN - 31 THEN + 9 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3119
SELECT DISTINCT - CAST( NULL AS SIGNED ) / + - COUNT( * ) + + 82
----
NULL

skipif mysql # not compatible
query I rowsort label-3119
SELECT DISTINCT - CAST ( NULL AS INTEGER ) / + - COUNT ( * ) + + 82
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3120
SELECT + COUNT( * ) * 93
----
93

skipif mysql # not compatible
query I rowsort label-3120
SELECT + COUNT ( * ) * 93
----
93

query I rowsort
SELECT - ( + + 81 )
----
-81

query I rowsort
SELECT 53 * - 37 + + 74 AS col2
----
-1887

query I rowsort
SELECT 42 + - + 88 + + 56 * + 31 AS col1
----
1690

onlyif mysql # aggregate syntax: 
query I rowsort label-3124
SELECT 78 - - COUNT( * ) + - 47 + - 14
----
18

skipif mysql # not compatible
query I rowsort label-3124
SELECT 78 - - COUNT ( * ) + - 47 + - 14
----
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3125
SELECT ALL - 90 * + - COUNT( * ) * + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3125
SELECT ALL - 90 * + - COUNT ( * ) * + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3126
SELECT 49 * MIN( 12 ) * + 69
----
40572

skipif mysql # not compatible
query I rowsort label-3126
SELECT 49 * MIN ( 12 ) * + 69
----
40572

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3127
SELECT + ( + + 30 ) * + - CAST( NULL AS SIGNED ) * MAX( DISTINCT 91 / 49 ) - 33
----
NULL

skipif mysql # not compatible
query I rowsort label-3127
SELECT + ( + + 30 ) * + - CAST ( NULL AS INTEGER ) * MAX ( DISTINCT 91 / 49 ) - 33
----
NULL

query I rowsort
SELECT 62 + - 38
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-3129
SELECT NULLIF ( - - SUM( + 30 ), 97 ) AS col1
----
30

skipif mysql # not compatible
query I rowsort label-3129
SELECT NULLIF ( - - SUM ( + 30 ), 97 ) AS col1
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-3130
SELECT ALL 98 * - - COALESCE ( - 34, 83 + - COUNT( * ) * + 91, - COUNT( * ) * 48 ) + + 64 AS col2
----
-3268

skipif mysql # not compatible
query I rowsort label-3130
SELECT ALL 98 * - - COALESCE ( - 34, 83 + - COUNT ( * ) * + 91, - COUNT ( * ) * 48 ) + + 64 AS col2
----
-3268

onlyif mysql # aggregate syntax: 
query I rowsort label-3131
SELECT + COUNT( * ) * - ( - - 64 ) * - 49 + - 70 * COUNT( * ) AS col0
----
3066

skipif mysql # not compatible
query I rowsort label-3131
SELECT + COUNT ( * ) * - ( - - 64 ) * - 49 + - 70 * COUNT ( * ) AS col0
----
3066

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-3132
SELECT ALL - CAST( NULL AS DECIMAL ), + CAST( + + CAST( NULL AS SIGNED ) AS SIGNED )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-3132
SELECT ALL - CAST ( NULL AS REAL ), + CAST ( + + CAST ( NULL AS INTEGER ) AS INTEGER )
----
NULL
NULL

query I rowsort
SELECT DISTINCT 72 * + 98 + 3
----
7059

onlyif mysql # aggregate syntax: 
query I rowsort label-3134
SELECT ALL COUNT( * ) * + 25 * - 96 + 39
----
-2361

skipif mysql # not compatible
query I rowsort label-3134
SELECT ALL COUNT ( * ) * + 25 * - 96 + 39
----
-2361

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3135
SELECT ALL 47 * + 1 + 30 + CAST( + 34 + + ( COALESCE ( + 10, 36 + - 78 ) + 88 ) AS SIGNED ) DIV 4
----
110

skipif mysql # not compatible
query I rowsort label-3135
SELECT ALL 47 * + 1 + 30 + CAST ( + 34 + + ( COALESCE ( + 10, 36 + - 78 ) + 88 ) AS INTEGER ) / 4
----
110

query I rowsort
SELECT - 45 + 14 + + COALESCE ( - 12, 11 * 7 ) * 83
----
-1027

query I rowsort
SELECT ALL - 98 * + + 52 + - 9 + - ( 15 )
----
-5120

onlyif mysql # aggregate syntax: 
query I rowsort label-3138
SELECT ALL + 15 * COUNT( 23 ) + - 94 col2
----
-79

skipif mysql # not compatible
query I rowsort label-3138
SELECT ALL + 15 * COUNT ( 23 ) + - 94 col2
----
-79

query I rowsort
SELECT - 74 * - 25 AS col1
----
1850

onlyif mysql # aggregate syntax: 
query I rowsort label-3140
SELECT ALL + COUNT( * ) * + 20 AS col2
----
20

skipif mysql # not compatible
query I rowsort label-3140
SELECT ALL + COUNT ( * ) * + 20 AS col2
----
20

query II rowsort
SELECT DISTINCT + 41, 12 AS col2
----
41
12

query I rowsort
SELECT DISTINCT + + ( - 0 ) col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3143
SELECT - - COUNT( * ) * CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3143
SELECT - - COUNT ( * ) * CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT - NULLIF ( - 45, + 10 )
----
45

query I rowsort
SELECT ALL ( + 74 ) AS col2
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-3146
SELECT - CASE 85 WHEN 40 * 37 THEN 81 + 56 * NULLIF ( - NULLIF ( 39, MAX( - 76 ) ), + COUNT( * ) + 1 ) WHEN 25 * + SUM( + 51 * + 36 ) THEN NULL END + 42
----
NULL

skipif mysql # not compatible
query I rowsort label-3146
SELECT - CASE 85 WHEN 40 * 37 THEN 81 + 56 * NULLIF ( - NULLIF ( 39, MAX ( - 76 ) ), + COUNT ( * ) + 1 ) WHEN 25 * + SUM ( + 51 * + 36 ) THEN NULL END + 42
----
NULL

query I rowsort
SELECT + 29 + 67
----
96

query I rowsort
SELECT + 82 + + 60 * + 47 * 39
----
110062

onlyif mysql # aggregate syntax: 
query II rowsort label-3149
SELECT ALL + 96 AS col0, 37 + + + COUNT( * )
----
96
38

skipif mysql # not compatible
query II rowsort label-3149
SELECT ALL + 96 AS col0, 37 + + + COUNT ( * )
----
96
38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3150
SELECT + - CAST( + 36 AS SIGNED ) + - - 89 AS col2
----
53

skipif mysql # not compatible
query I rowsort label-3150
SELECT + - CAST ( + 36 AS INTEGER ) + - - 89 AS col2
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-3151
SELECT DISTINCT - MAX( DISTINCT 61 ) AS col0
----
-61

skipif mysql # not compatible
query I rowsort label-3151
SELECT DISTINCT - MAX ( DISTINCT 61 ) AS col0
----
-61

query I rowsort
SELECT ALL COALESCE ( + 80, + 22 ) * 2 AS col1
----
160

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3153
SELECT ALL + ( - AVG ( DISTINCT + 57 ) ) * - CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3153
SELECT ALL + ( - AVG ( DISTINCT + 57 ) ) * - CAST ( NULL AS REAL ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT 97 * - 57 * + 75 * - 43 col1
----
17831025

query I rowsort
SELECT + + 37 * + 51 + + 88 AS col0
----
1975

query I rowsort
SELECT + + 26 * 87 col0
----
2262

query I rowsort
SELECT + 45 + + 82
----
127

query I rowsort
SELECT ALL 82 + + COALESCE ( - 25, - 55, ( 19 ) ) + 20 AS col2
----
77

query I rowsort
SELECT ALL 52 + + 50 - + ( + 62 ) + 69
----
109

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3160
SELECT DISTINCT 11 + - MIN( DISTINCT - + CAST( 17 AS SIGNED ) ) + - SUM( + 51 ) * 94 * + 92 AS col2
----
-441020

skipif mysql # not compatible
query I rowsort label-3160
SELECT DISTINCT 11 + - MIN ( DISTINCT - + CAST ( 17 AS INTEGER ) ) + - SUM ( + 51 ) * 94 * + 92 AS col2
----
-441020

query I rowsort
SELECT ALL NULLIF ( + + 26, - + 90 + - 60 ) AS col2
----
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3162
SELECT ALL - 14 / + + 34 + + + 62 + + 42 * + CASE + 39 WHEN + 97 * + COALESCE ( + CAST( COUNT( * ) AS SIGNED ), - AVG ( DISTINCT - 68 ) ) THEN 11 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3162
SELECT ALL - 14 / + + 34 + + + 62 + + 42 * + CASE + 39 WHEN + 97 * + COALESCE ( + CAST ( COUNT ( * ) AS INTEGER ), - AVG ( DISTINCT - 68 ) ) THEN 11 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3163
SELECT + CAST( NULL AS SIGNED ) / + CASE - 50 WHEN + 85 THEN 33 + 67 WHEN - 60 + - 7 THEN + 18 ELSE - 17 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3163
SELECT + CAST ( NULL AS INTEGER ) / + CASE - 50 WHEN + 85 THEN 33 + 67 WHEN - 60 + - 7 THEN + 18 ELSE - 17 END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3164
SELECT ALL 68 DIV 19 + COUNT( * ) * - 86 * 69 AS col1
----
-5931

skipif mysql # not compatible
query I rowsort label-3164
SELECT ALL 68 / 19 + COUNT ( * ) * - 86 * 69 AS col1
----
-5931

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3165
SELECT - COUNT( * ) * - COUNT( * ) * - - CAST( NULL AS SIGNED ) * + 67
----
NULL

skipif mysql # not compatible
query I rowsort label-3165
SELECT - COUNT ( * ) * - COUNT ( * ) * - - CAST ( NULL AS INTEGER ) * + 67
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3166
SELECT 32 DIV + + COUNT( * ) - - + 22
----
54

skipif mysql # not compatible
query I rowsort label-3166
SELECT 32 / + + COUNT ( * ) - - + 22
----
54

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3167
SELECT + CAST( NULL AS DECIMAL ) - - COALESCE ( - 85, - 31 * 94 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3167
SELECT + CAST ( NULL AS REAL ) - - COALESCE ( - 85, - 31 * 94 )
----
NULL

query I rowsort
SELECT - 86 * - + 13 * 57 * - - NULLIF ( 24, - ( 27 ) + 91 )
----
1529424

query I rowsort
SELECT DISTINCT 39 * ( - 71 ) AS col2
----
-2769

onlyif mysql # aggregate syntax: 
query II rowsort label-3170
SELECT ALL + SUM( 48 ) AS col0, - ( 55 ) - 4
----
48
-59

skipif mysql # not compatible
query II rowsort label-3170
SELECT ALL + SUM ( 48 ) AS col0, - ( 55 ) - 4
----
48
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-3171
SELECT ALL - CASE + - NULLIF ( - 12, 29 / - 24 ) WHEN 83 THEN + 56 ELSE + COUNT( * ) END * + 7 - 8
----
-15

skipif mysql # not compatible
query I rowsort label-3171
SELECT ALL - CASE + - NULLIF ( - 12, 29 / - 24 ) WHEN 83 THEN + 56 ELSE + COUNT ( * ) END * + 7 - 8
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-3172
SELECT CASE 55 WHEN + 61 * - 54 THEN + 9 * + ( - ( COUNT( * ) ) ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3172
SELECT CASE 55 WHEN + 61 * - 54 THEN + 9 * + ( - ( COUNT ( * ) ) ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3173
SELECT + + 48 * - - CASE - + ( MIN( DISTINCT + 24 ) ) WHEN 26 THEN - 13 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3173
SELECT + + 48 * - - CASE - + ( MIN ( DISTINCT + 24 ) ) WHEN 26 THEN - 13 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3174
SELECT ALL + - MAX( ALL - 90 ) AS col2
----
90

skipif mysql # not compatible
query I rowsort label-3174
SELECT ALL + - MAX ( ALL - 90 ) AS col2
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-3175
SELECT - 0 + + MAX( ALL 42 ) AS col2
----
42

skipif mysql # not compatible
query I rowsort label-3175
SELECT - 0 + + MAX ( ALL 42 ) AS col2
----
42

query I rowsort
SELECT DISTINCT + 4 * 37 * - 93 AS col0
----
-13764

query I rowsort
SELECT + ( + 45 ) - 41
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3178
SELECT - ( + ( - CASE + 50 WHEN + 4 THEN NULLIF ( CASE SUM( CAST( + ( 80 ) AS SIGNED ) ) WHEN ( COUNT( * ) ) THEN 3 ELSE NULL END, - 67 ) * COUNT( * ) WHEN 62 THEN 8 END ) ) * 8
----
NULL

skipif mysql # not compatible
query I rowsort label-3178
SELECT - ( + ( - CASE + 50 WHEN + 4 THEN NULLIF ( CASE SUM ( CAST ( + ( 80 ) AS INTEGER ) ) WHEN ( COUNT ( * ) ) THEN 3 ELSE NULL END, - 67 ) * COUNT ( * ) WHEN 62 THEN 8 END ) ) * 8
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3179
SELECT ALL + 76 DIV + 39 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3179
SELECT ALL + 76 / + 39 AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3180
SELECT ALL - 13 * - CASE - 19 WHEN 24 THEN NULL WHEN COUNT( ALL + 59 ) THEN 6 * - 99 + 96 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3180
SELECT ALL - 13 * - CASE - 19 WHEN 24 THEN NULL WHEN COUNT ( ALL + 59 ) THEN 6 * - 99 + 96 ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT + 54 * ( + + 61 ) AS col0
----
3294

query I rowsort
SELECT DISTINCT + + 26 * 13 AS col2
----
338

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3183
SELECT ALL - CAST( - 81 AS SIGNED ) AS col1
----
81

skipif mysql # not compatible
query I rowsort label-3183
SELECT ALL - CAST ( - 81 AS INTEGER ) AS col1
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-3184
SELECT ALL + 10 * + + MAX( ALL 35 ) AS col1
----
350

skipif mysql # not compatible
query I rowsort label-3184
SELECT ALL + 10 * + + MAX ( ALL 35 ) AS col1
----
350

onlyif mysql # aggregate syntax: 
query I rowsort label-3185
SELECT ALL - + COUNT( * ) * + - 19 * - 38
----
-722

skipif mysql # not compatible
query I rowsort label-3185
SELECT ALL - + COUNT ( * ) * + - 19 * - 38
----
-722

query I rowsort
SELECT - + 47 * + 21 - + 40 AS col2
----
-1027

onlyif mysql # aggregate syntax: 
query I rowsort label-3187
SELECT - COUNT( * ) - 97 col2
----
-98

skipif mysql # not compatible
query I rowsort label-3187
SELECT - COUNT ( * ) - 97 col2
----
-98

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3188
SELECT - MIN( ALL + 12 ) + - 51 DIV 5
----
-22

skipif mysql # not compatible
query I rowsort label-3188
SELECT - MIN ( ALL + 12 ) + - 51 / 5
----
-22

query I rowsort
SELECT - 73 * - + 58
----
4234

onlyif mysql # aggregate syntax: 
query I rowsort label-3190
SELECT ALL - 69 + + - CASE + - 28 WHEN + CASE 54 WHEN 29 * SUM( 43 ) THEN 61 END THEN 44 * CASE 44 * - 35 WHEN - 46 + 67 THEN 60 - 92 WHEN 31 - 66 THEN 59 END ELSE NULL END / 6
----
NULL

skipif mysql # not compatible
query I rowsort label-3190
SELECT ALL - 69 + + - CASE + - 28 WHEN + CASE 54 WHEN 29 * SUM ( 43 ) THEN 61 END THEN 44 * CASE 44 * - 35 WHEN - 46 + 67 THEN 60 - 92 WHEN 31 - 66 THEN 59 END ELSE NULL END / 6
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3191
SELECT DISTINCT ( - + COUNT( * ) ) AS col2, + 8 + - ( - 41 )
----
-1
49

skipif mysql # not compatible
query II rowsort label-3191
SELECT DISTINCT ( - + COUNT ( * ) ) AS col2, + 8 + - ( - 41 )
----
-1
49

onlyif mysql # aggregate syntax: 
query I rowsort label-3192
SELECT ALL - - 9 + - - COUNT( * ) + + COALESCE ( + 70, NULLIF ( 94, + NULLIF ( ( 53 ), 18 * 50 ) ), COUNT( * ) ) * - ( CASE - 18 WHEN + 13 + + 64 THEN + 11 END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3192
SELECT ALL - - 9 + - - COUNT ( * ) + + COALESCE ( + 70, NULLIF ( 94, + NULLIF ( ( 53 ), 18 * 50 ) ), COUNT ( * ) ) * - ( CASE - 18 WHEN + 13 + + 64 THEN + 11 END ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3193
SELECT + 88 - + 97 * - 75 * + CASE CAST( NULL AS SIGNED ) WHEN + 40 THEN 95 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3193
SELECT + 88 - + 97 * - 75 * + CASE CAST ( NULL AS INTEGER ) WHEN + 40 THEN 95 END AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3194
SELECT - CASE 83 WHEN - 84 * - 76 THEN - 53 * + 5 + 96 DIV 53 WHEN ( - 17 ) THEN - 21 ELSE + 78 END
----
-78

skipif mysql # not compatible
query I rowsort label-3194
SELECT - CASE 83 WHEN - 84 * - 76 THEN - 53 * + 5 + 96 / 53 WHEN ( - 17 ) THEN - 21 ELSE + 78 END
----
-78

query I rowsort
SELECT ALL + 72 + + - 8 AS col2
----
64

query II rowsort
SELECT DISTINCT - 18 + + + 41 + - 30, 39 AS col1
----
-7
39

query I rowsort
SELECT ALL + 63 + + 20 + - 17 * - 35
----
678

query I rowsort
SELECT + 40 + + 54 AS col2
----
94

query I rowsort
SELECT ALL 46 + - 54
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-3200
SELECT DISTINCT 5 * NULLIF ( + + COUNT( * ), + ( + MAX( DISTINCT 16 ) ) ) * + 51
----
255

skipif mysql # not compatible
query I rowsort label-3200
SELECT DISTINCT 5 * NULLIF ( + + COUNT ( * ), + ( + MAX ( DISTINCT 16 ) ) ) * + 51
----
255

onlyif mysql # aggregate syntax: 
query I rowsort label-3201
SELECT MAX( 21 ) + - COUNT( * )
----
20

skipif mysql # not compatible
query I rowsort label-3201
SELECT MAX ( 21 ) + - COUNT ( * )
----
20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3202
SELECT ( - 28 ) * - COALESCE ( - CAST( NULL AS SIGNED ), + 23, + 70 * 8 ) AS col0
----
644

skipif mysql # not compatible
query I rowsort label-3202
SELECT ( - 28 ) * - COALESCE ( - CAST ( NULL AS INTEGER ), + 23, + 70 * 8 ) AS col0
----
644

query II rowsort
SELECT ALL 38, 80 AS col2
----
38
80

query I rowsort
SELECT 77 + 72
----
149

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3205
SELECT + ( 86 ) / - 95 * - 31 * + CAST( NULL AS SIGNED ) + + 36 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3205
SELECT + ( 86 ) / - 95 * - 31 * + CAST ( NULL AS INTEGER ) + + 36 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3206
SELECT DISTINCT 27 DIV - 17 * + ( COUNT( * ) )
----
-1

skipif mysql # not compatible
query I rowsort label-3206
SELECT DISTINCT 27 / - 17 * + ( COUNT ( * ) )
----
-1

query II rowsort
SELECT ALL - 73 AS col1, 28 * + + 42 + - - 75 col0
----
-73
1251

onlyif mysql # aggregate syntax: 
query I rowsort label-3208
SELECT 38 * + + NULLIF ( + 99, - 38 * - 6 + + COUNT( * ) ) + - 84
----
3678

skipif mysql # not compatible
query I rowsort label-3208
SELECT 38 * + + NULLIF ( + 99, - 38 * - 6 + + COUNT ( * ) ) + - 84
----
3678

onlyif mysql # aggregate syntax: 
query I rowsort label-3209
SELECT 18 * - COUNT( * ) * 34 AS col1
----
-612

skipif mysql # not compatible
query I rowsort label-3209
SELECT 18 * - COUNT ( * ) * 34 AS col1
----
-612

onlyif mysql # aggregate syntax: 
query I rowsort label-3210
SELECT - 82 * + MAX( DISTINCT - 62 ) + - + 51
----
5033

skipif mysql # not compatible
query I rowsort label-3210
SELECT - 82 * + MAX ( DISTINCT - 62 ) + - + 51
----
5033

onlyif mysql # aggregate syntax: 
query I rowsort label-3211
SELECT ALL COUNT( * ) - + ( - 17 ) * + 61 * + 70 * CASE - 90 WHEN + 32 THEN 2 + + 48 WHEN - 80 THEN NULL ELSE NULL END + 63 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3211
SELECT ALL COUNT ( * ) - + ( - 17 ) * + 61 * + 70 * CASE - 90 WHEN + 32 THEN 2 + + 48 WHEN - 80 THEN NULL ELSE NULL END + 63 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3212
SELECT 2 DIV MIN( + + ( + - 81 ) )
----
0

skipif mysql # not compatible
query I rowsort label-3212
SELECT 2 / MIN ( + + ( + - 81 ) )
----
0

query I rowsort
SELECT ALL 45 * - 44
----
-1980

query I rowsort
SELECT 52 + 62
----
114

onlyif mysql # aggregate syntax: 
query I rowsort label-3215
SELECT 11 * + + 59 * CASE + + MAX( 35 ) WHEN - 67 THEN 98 WHEN - 20 + + 8 THEN NULL WHEN 90 * + 4 + 99 / + 54 THEN 54 * 30 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3215
SELECT 11 * + + 59 * CASE + + MAX ( 35 ) WHEN - 67 THEN 98 WHEN - 20 + + 8 THEN NULL WHEN 90 * + 4 + 99 / + 54 THEN 54 * 30 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3216
SELECT + COUNT( + 8 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-3216
SELECT + COUNT ( + 8 ) col2
----
1

query I rowsort
SELECT DISTINCT + ( + 92 ) * + 18 + ( + 8 ) AS col0
----
1664

onlyif mysql # aggregate syntax: 
query I rowsort label-3218
SELECT ALL - + NULLIF ( + ( - MAX( DISTINCT 55 ) ), COALESCE ( - COUNT( * ), + SUM( + 93 ) + 50 ) )
----
55

skipif mysql # not compatible
query I rowsort label-3218
SELECT ALL - + NULLIF ( + ( - MAX ( DISTINCT 55 ) ), COALESCE ( - COUNT ( * ), + SUM ( + 93 ) + 50 ) )
----
55

query I rowsort
SELECT DISTINCT 15 * - 59 * - - 21 + 62 AS col2
----
-18523

query II rowsort
SELECT DISTINCT - 62 AS col2, 32 AS col0
----
-62
32

onlyif mysql # aggregate syntax: 
query I rowsort label-3221
SELECT DISTINCT 34 * + COUNT( - 47 ) AS col1
----
34

skipif mysql # not compatible
query I rowsort label-3221
SELECT DISTINCT 34 * + COUNT ( - 47 ) AS col1
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-3222
SELECT ALL + MIN( - 0 ) + ( + 86 ) - 2 AS col1
----
84

skipif mysql # not compatible
query I rowsort label-3222
SELECT ALL + MIN ( - 0 ) + ( + 86 ) - 2 AS col1
----
84

query I rowsort
SELECT - 40 * + + 22 + + 19 + - 30
----
-891

query II rowsort
SELECT - 80 AS col2, 61
----
-80
61

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3225
SELECT ALL + - ( + ( + CAST( - CASE + 67 WHEN 53 * - 0 THEN NULL WHEN 12 THEN + 45 END AS DECIMAL ) ) ) + - 93
----
NULL

skipif mysql # not compatible
query I rowsort label-3225
SELECT ALL + - ( + ( + CAST ( - CASE + 67 WHEN 53 * - 0 THEN NULL WHEN 12 THEN + 45 END AS REAL ) ) ) + - 93
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3226
SELECT - 44 + - + 86 * + 76 + + COUNT( * ) AS col1
----
-6579

skipif mysql # not compatible
query I rowsort label-3226
SELECT - 44 + - + 86 * + 76 + + COUNT ( * ) AS col1
----
-6579

query I rowsort
SELECT + 27 + 96 + - - 82 col2
----
205

query II rowsort
SELECT - - 39 AS col1, 13
----
39
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3229
SELECT DISTINCT - CASE + - COUNT( * ) WHEN + NULLIF ( - 52, + ( - 20 ) ) + - 49 THEN NULL WHEN + CAST( - 45 AS SIGNED ) + + 28 THEN + CASE 46 WHEN 90 * - 91 THEN NULL WHEN 34 THEN - 35 END ELSE NULL END + + 2 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3229
SELECT DISTINCT - CASE + - COUNT ( * ) WHEN + NULLIF ( - 52, + ( - 20 ) ) + - 49 THEN NULL WHEN + CAST ( - 45 AS INTEGER ) + + 28 THEN + CASE 46 WHEN 90 * - 91 THEN NULL WHEN 34 THEN - 35 END ELSE NULL END + + 2 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3230
SELECT ALL - + 73 + ( + - SUM( ALL - 43 ) )
----
-30

skipif mysql # not compatible
query I rowsort label-3230
SELECT ALL - + 73 + ( + - SUM ( ALL - 43 ) )
----
-30

onlyif mysql # DIV for integer division: 
query I rowsort label-3231
SELECT 78 + - 51 + - 71 DIV 78 * - 0 * - - 48 col1
----
27

skipif mysql # not compatible
query I rowsort label-3231
SELECT 78 + - 51 + - 71 / 78 * - 0 * - - 48 col1
----
27

query I rowsort
SELECT ALL - 31 + + - 39 AS col2
----
-70

query I rowsort
SELECT 87 + + 70 AS col1
----
157

onlyif mysql # aggregate syntax: 
query II rowsort label-3234
SELECT - 73 AS col1, COUNT( * ) AS col1
----
-73
1

skipif mysql # not compatible
query II rowsort label-3234
SELECT - 73 AS col1, COUNT ( * ) AS col1
----
-73
1

onlyif mysql # aggregate syntax: 
query II rowsort label-3235
SELECT 40 col2, COUNT( * )
----
40
1

skipif mysql # not compatible
query II rowsort label-3235
SELECT 40 col2, COUNT ( * )
----
40
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3236
SELECT DISTINCT + 59 * + 90 col0, + NULLIF ( + 8, COUNT( * ) - - CAST( NULL AS SIGNED ) ) * + 17
----
5310
136

skipif mysql # not compatible
query II rowsort label-3236
SELECT DISTINCT + 59 * + 90 col0, + NULLIF ( + 8, COUNT ( * ) - - CAST ( NULL AS INTEGER ) ) * + 17
----
5310
136

onlyif mysql # aggregate syntax: 
query I rowsort label-3237
SELECT ALL - 5 + + COUNT( * ) - - + COUNT( * )
----
-3

skipif mysql # not compatible
query I rowsort label-3237
SELECT ALL - 5 + + COUNT ( * ) - - + COUNT ( * )
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3238
SELECT 3 * CASE + MIN( - 41 ) WHEN ( + - 35 ) + 38 * - 44 THEN NULL ELSE CASE 56 WHEN MAX( DISTINCT 93 ) * + 21 THEN 29 END END
----
NULL

skipif mysql # not compatible
query I rowsort label-3238
SELECT 3 * CASE + MIN ( - 41 ) WHEN ( + - 35 ) + 38 * - 44 THEN NULL ELSE CASE 56 WHEN MAX ( DISTINCT 93 ) * + 21 THEN 29 END END
----
NULL

query II rowsort
SELECT - 80, 41 col2
----
-80
41

query II rowsort
SELECT ALL 81, - ( - 6 ) AS col0
----
81
6

onlyif mysql # aggregate syntax: 
query I rowsort label-3241
SELECT 77 * - COUNT( * ) AS col0
----
-77

skipif mysql # not compatible
query I rowsort label-3241
SELECT 77 * - COUNT ( * ) AS col0
----
-77

query I rowsort
SELECT 22 + - - 16
----
38

query I rowsort
SELECT ALL 93 - - 52 * - + 10 AS col0
----
-427

query II rowsort
SELECT ALL 92, 15 + - - 42 AS col1
----
92
57

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3245
SELECT DISTINCT - 87 - - 45 * + CAST( NULL AS DECIMAL ) + + - 76
----
NULL

skipif mysql # not compatible
query I rowsort label-3245
SELECT DISTINCT - 87 - - 45 * + CAST ( NULL AS REAL ) + + - 76
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3246
SELECT DISTINCT COUNT( * ) AS col2, + 83
----
1
83

skipif mysql # not compatible
query II rowsort label-3246
SELECT DISTINCT COUNT ( * ) AS col2, + 83
----
1
83

query I rowsort
SELECT 28 * ( - 56 )
----
-1568

query I rowsort
SELECT ALL 50 * + - 52 AS col2
----
-2600

onlyif mysql # DIV for integer division: 
query I rowsort label-3249
SELECT - 40 DIV + - 82 - 82
----
-82

skipif mysql # not compatible
query I rowsort label-3249
SELECT - 40 / + - 82 - 82
----
-82

onlyif mysql # DIV for integer division: 
query II rowsort label-3250
SELECT + 63, 65 DIV + 88 * + + 21 AS col1
----
63
0

skipif mysql # not compatible
query II rowsort label-3250
SELECT + 63, 65 / + 88 * + + 21 AS col1
----
63
0

query II rowsort
SELECT ALL - 82, - 79 AS col2
----
-82
-79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3252
SELECT CASE - - 75 WHEN 97 / - SUM( DISTINCT + 12 ) * + + COALESCE ( + 48, + 83 + 50, - 70 ) / - 16 THEN CAST( NULL AS SIGNED ) WHEN 98 THEN NULL WHEN COUNT( * ) THEN NULL END * ( + 71 * 16 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3252
SELECT CASE - - 75 WHEN 97 / - SUM ( DISTINCT + 12 ) * + + COALESCE ( + 48, + 83 + 50, - 70 ) / - 16 THEN CAST ( NULL AS INTEGER ) WHEN 98 THEN NULL WHEN COUNT ( * ) THEN NULL END * ( + 71 * 16 )
----
NULL

query I rowsort
SELECT ( 58 ) AS col0
----
58

onlyif mysql # DIV for integer division: 
query II rowsort label-3254
SELECT ALL - 56 AS col2, 34 + - - 27 DIV + 11 AS col0
----
-56
36

skipif mysql # not compatible
query II rowsort label-3254
SELECT ALL - 56 AS col2, 34 + - - 27 / + 11 AS col0
----
-56
36

onlyif mysql # aggregate syntax: 
query I rowsort label-3255
SELECT ALL - 76 * - 49 * + COALESCE ( + + 37, + 15 * + COUNT( * ) + + 50 * + 23 )
----
137788

skipif mysql # not compatible
query I rowsort label-3255
SELECT ALL - 76 * - 49 * + COALESCE ( + + 37, + 15 * + COUNT ( * ) + + 50 * + 23 )
----
137788

onlyif mysql # aggregate syntax: 
query I rowsort label-3256
SELECT DISTINCT COUNT( * ) + - + COUNT( * ) * + 50 + + 96 col0
----
47

skipif mysql # not compatible
query I rowsort label-3256
SELECT DISTINCT COUNT ( * ) + - + COUNT ( * ) * + 50 + + 96 col0
----
47

query I rowsort
SELECT DISTINCT - 27 + + + 59
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-3258
SELECT ALL + 94 + COUNT( * )
----
95

skipif mysql # not compatible
query I rowsort label-3258
SELECT ALL + 94 + COUNT ( * )
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-3259
SELECT + 15 * - - ( COUNT( * ) ) AS col1
----
15

skipif mysql # not compatible
query I rowsort label-3259
SELECT + 15 * - - ( COUNT ( * ) ) AS col1
----
15

query I rowsort
SELECT DISTINCT 67 + + - 81
----
-14

query I rowsort
SELECT ALL - ( - 17 ) AS col1
----
17

query I rowsort
SELECT + ( + 85 ) col1
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-3263
SELECT ALL - CASE + COUNT( * ) WHEN + COUNT( * ) * + + 39 THEN NULL ELSE CASE - - COUNT( * ) WHEN 89 * + 18 + + 49 * - 95 THEN 91 WHEN - NULLIF ( + 73, + 17 ) * + 70 THEN NULL END + + 34 END * 49 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3263
SELECT ALL - CASE + COUNT ( * ) WHEN + COUNT ( * ) * + + 39 THEN NULL ELSE CASE - - COUNT ( * ) WHEN 89 * + 18 + + 49 * - 95 THEN 91 WHEN - NULLIF ( + 73, + 17 ) * + 70 THEN NULL END + + 34 END * 49 AS col2
----
NULL

query II rowsort
SELECT + 59, 80 - + 94 * + 16 AS col2
----
59
-1424

onlyif mysql # aggregate syntax: 
query I rowsort label-3265
SELECT ALL COUNT( * ) * - + 37 + + + 91 * 31
----
2784

skipif mysql # not compatible
query I rowsort label-3265
SELECT ALL COUNT ( * ) * - + 37 + + + 91 * 31
----
2784

onlyif mysql # aggregate syntax: 
query I rowsort label-3266
SELECT DISTINCT + 0 + + MIN( + 89 ) col2
----
89

skipif mysql # not compatible
query I rowsort label-3266
SELECT DISTINCT + 0 + + MIN ( + 89 ) col2
----
89

query I rowsort
SELECT DISTINCT 34 * 37
----
1258

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-3268
SELECT - - 84 AS col0, + CASE - COUNT( * ) WHEN + 85 DIV - 85 THEN - 83 WHEN - 43 + ( SUM( ALL CAST( + 51 AS DECIMAL ) ) ) THEN COUNT( * ) + + 44 ELSE NULL END DIV - 94
----
84
0

skipif mysql # not compatible
query II rowsort label-3268
SELECT - - 84 AS col0, + CASE - COUNT ( * ) WHEN + 85 / - 85 THEN - 83 WHEN - 43 + ( SUM ( ALL CAST ( + 51 AS REAL ) ) ) THEN COUNT ( * ) + + 44 ELSE NULL END / - 94
----
84
0

query II rowsort
SELECT ALL 47 + + - 15 AS col0, + 45 AS col0
----
32
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3270
SELECT DISTINCT + CAST( + COUNT( * ) AS SIGNED ) AS col0, + 52
----
1
52

skipif mysql # not compatible
query II rowsort label-3270
SELECT DISTINCT + CAST ( + COUNT ( * ) AS INTEGER ) AS col0, + 52
----
1
52

query I rowsort
SELECT + 53 - - 61
----
114

onlyif mysql # aggregate syntax: 
query I rowsort label-3272
SELECT - SUM( 67 )
----
-67

skipif mysql # not compatible
query I rowsort label-3272
SELECT - SUM ( 67 )
----
-67

query I rowsort
SELECT + 5 + - - ( - 46 ) + - 89 * + 41
----
-3690

onlyif mysql # DIV for integer division: 
query I rowsort label-3274
SELECT - 11 DIV 37 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3274
SELECT - 11 / 37 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3275
SELECT ALL - 0 DIV 64 col1
----
0

skipif mysql # not compatible
query I rowsort label-3275
SELECT ALL - 0 / 64 col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3276
SELECT ALL MIN( ALL - - 21 )
----
21

skipif mysql # not compatible
query I rowsort label-3276
SELECT ALL MIN ( ALL - - 21 )
----
21

onlyif mysql # aggregate syntax: 
query II rowsort label-3277
SELECT DISTINCT - SUM( + 47 ) * 43 - - + 47 * COUNT( * ), 66 * + COUNT( * ) + 48 AS col2
----
-1974
114

skipif mysql # not compatible
query II rowsort label-3277
SELECT DISTINCT - SUM ( + 47 ) * 43 - - + 47 * COUNT ( * ), 66 * + COUNT ( * ) + 48 AS col2
----
-1974
114

query I rowsort
SELECT - 75 - - + 85 - + 12
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-3279
SELECT ALL CASE 29 WHEN + 23 THEN + - COUNT( * ) * + 15 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3279
SELECT ALL CASE 29 WHEN + 23 THEN + - COUNT ( * ) * + 15 ELSE NULL END
----
NULL

query I rowsort
SELECT - 51 - - 25 AS col0
----
-26

query I rowsort
SELECT DISTINCT - 83 * + 62 AS col0
----
-5146

onlyif mysql # aggregate syntax: 
query I rowsort label-3282
SELECT DISTINCT MIN( ALL 41 )
----
41

skipif mysql # not compatible
query I rowsort label-3282
SELECT DISTINCT MIN ( ALL 41 )
----
41

onlyif mysql # DIV for integer division: 
query I rowsort label-3283
SELECT - 45 DIV 87
----
0

skipif mysql # not compatible
query I rowsort label-3283
SELECT - 45 / 87
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3284
SELECT DISTINCT SUM( DISTINCT + 13 )
----
13

skipif mysql # not compatible
query I rowsort label-3284
SELECT DISTINCT SUM ( DISTINCT + 13 )
----
13

query I rowsort
SELECT - 15 + - 36 + - 93 * + 35
----
-3306

query I rowsort
SELECT - 91 + - + 52 + - 91
----
-234

onlyif mysql # DIV for integer division: 
query I rowsort label-3287
SELECT ALL + 38 DIV + 13 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-3287
SELECT ALL + 38 / + 13 AS col2
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-3288
SELECT - 68 + COUNT( * ) - ( + + 24 ) * + 72 AS col0
----
-1795

skipif mysql # not compatible
query I rowsort label-3288
SELECT - 68 + COUNT ( * ) - ( + + 24 ) * + 72 AS col0
----
-1795

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3289
SELECT ALL - COUNT( * ) * - + 66 DIV - + 75 col1
----
0

skipif mysql # not compatible
query I rowsort label-3289
SELECT ALL - COUNT ( * ) * - + 66 / - + 75 col1
----
0

query I rowsort
SELECT NULLIF ( + + ( - - 18 ), + 72 * 12 ) AS col0
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-3291
SELECT + 90 * + 48 + + - 82 + - - 40 + + - COUNT( * ) * - COUNT( * ) * - ( + 46 ) AS col0
----
4232

skipif mysql # not compatible
query I rowsort label-3291
SELECT + 90 * + 48 + + - 82 + - - 40 + + - COUNT ( * ) * - COUNT ( * ) * - ( + 46 ) AS col0
----
4232

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3292
SELECT DISTINCT - 64 * + + NULLIF ( + - CAST( - 95 AS SIGNED ), + 27 - - 68 ) * 2 + 15 * - 70 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3292
SELECT DISTINCT - 64 * + + NULLIF ( + - CAST ( - 95 AS INTEGER ), + 27 - - 68 ) * 2 + 15 * - 70 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3293
SELECT ALL - 21 * 35 * + 79 + MIN( - 16 ) * - + 38 * 7
----
-53809

skipif mysql # not compatible
query I rowsort label-3293
SELECT ALL - 21 * 35 * + 79 + MIN ( - 16 ) * - + 38 * 7
----
-53809

onlyif mysql # DIV for integer division: 
query I rowsort label-3294
SELECT - 61 DIV - 55 + - 86 + 90 + - + 96 + + - COALESCE ( + 69, 43 * 63 ) * - 33 * + 63 * 25 AS col0
----
3586184

skipif mysql # not compatible
query I rowsort label-3294
SELECT - 61 / - 55 + - 86 + 90 + - + 96 + + - COALESCE ( + 69, 43 * 63 ) * - 33 * + 63 * 25 AS col0
----
3586184

query II rowsort
SELECT - ( - ( + COALESCE ( - 0, + 45 ) ) ), 49 * - + 65 * ( - 19 * - 34 ) + - 11 AS col2
----
0
-2057521

onlyif mysql # aggregate syntax: 
query I rowsort label-3296
SELECT DISTINCT + 42 * + 42 + - ( + COUNT( + 19 ) ) + - - ( + 42 )
----
1805

skipif mysql # not compatible
query I rowsort label-3296
SELECT DISTINCT + 42 * + 42 + - ( + COUNT ( + 19 ) ) + - - ( + 42 )
----
1805

query I rowsort
SELECT ALL + + CASE WHEN NOT 57 > 25 OR NOT NULL IS NOT NULL THEN - 40 ELSE 53 END AS col0
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-3298
SELECT + 86 * - COUNT( * ) + 94
----
8

skipif mysql # not compatible
query I rowsort label-3298
SELECT + 86 * - COUNT ( * ) + 94
----
8

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3299
SELECT ALL + 56 * 33 + 84, + NULLIF ( + + 79, - + 61 + + + CAST( NULL AS SIGNED ) * - 97 ) DIV 62 AS col1
----
1932
1

skipif mysql # not compatible
query II rowsort label-3299
SELECT ALL + 56 * 33 + 84, + NULLIF ( + + 79, - + 61 + + + CAST ( NULL AS INTEGER ) * - 97 ) / 62 AS col1
----
1932
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3300
SELECT ALL + ( - 81 ) * + 81 * - + 24 * + - 30 + - 66 - - + CAST( NULL AS SIGNED ) + 97 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3300
SELECT ALL + ( - 81 ) * + 81 * - + 24 * + - 30 + - 66 - - + CAST ( NULL AS INTEGER ) + 97 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3301
SELECT ALL + - NULLIF ( + SUM( + - 86 ), - - 0 )
----
86

skipif mysql # not compatible
query I rowsort label-3301
SELECT ALL + - NULLIF ( + SUM ( + - 86 ), - - 0 )
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-3302
SELECT + + COUNT( * ) + - 25 * - - 59
----
-1474

skipif mysql # not compatible
query I rowsort label-3302
SELECT + + COUNT ( * ) + - 25 * - - 59
----
-1474

query I rowsort
SELECT + 66 * + 40 AS col2
----
2640

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3304
SELECT + - CAST( NULL AS DECIMAL ) + + 74 + - COUNT( * ) * 35 * 21 * + SUM( DISTINCT + - 98 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3304
SELECT + - CAST ( NULL AS REAL ) + + 74 + - COUNT ( * ) * 35 * 21 * + SUM ( DISTINCT + - 98 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3305
SELECT ALL + NULLIF ( + 80, ( + 63 ) + - COALESCE ( - ( + + 76 ), + 81 - - 88 / - 89, + 12, 2 ) * - COUNT( * ) ) AS col2
----
80

skipif mysql # not compatible
query I rowsort label-3305
SELECT ALL + NULLIF ( + 80, ( + 63 ) + - COALESCE ( - ( + + 76 ), + 81 - - 88 / - 89, + 12, 2 ) * - COUNT ( * ) ) AS col2
----
80

query I rowsort
SELECT 41 * - + 76 + ( - 85 )
----
-3201

query I rowsort
SELECT + 35 - - 23 - + 80
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-3308
SELECT + 94 * - MAX( ALL - - 62 )
----
-5828

skipif mysql # not compatible
query I rowsort label-3308
SELECT + 94 * - MAX ( ALL - - 62 )
----
-5828

query I rowsort
SELECT ALL 27 * + 70 - - 91 AS col1
----
1981

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3310
SELECT ALL 25, + CAST( NULL AS SIGNED ) AS col2
----
25
NULL

skipif mysql # not compatible
query II rowsort label-3310
SELECT ALL 25, + CAST ( NULL AS INTEGER ) AS col2
----
25
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3311
SELECT - ( + - SUM( ALL + - CAST( NULL AS SIGNED ) ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3311
SELECT - ( + - SUM ( ALL + - CAST ( NULL AS INTEGER ) ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3312
SELECT ALL SUM( ALL - 98 ) AS col0
----
-98

skipif mysql # not compatible
query I rowsort label-3312
SELECT ALL SUM ( ALL - 98 ) AS col0
----
-98

query I rowsort
SELECT + 75 + 42 AS col0
----
117

query I rowsort
SELECT ALL 40 * 63 AS col0
----
2520

query I rowsort
SELECT + 51 + - 28
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-3316
SELECT ALL COALESCE ( + 60, - - MAX( - + 38 ) ) AS col1
----
60

skipif mysql # not compatible
query I rowsort label-3316
SELECT ALL COALESCE ( + 60, - - MAX ( - + 38 ) ) AS col1
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-3317
SELECT + MIN( ALL + 71 ) * NULLIF ( - 91, + COUNT( * ) + - COALESCE ( - 87, + 52, COUNT( * ) + 81 ) * + 48 ) AS col1
----
-6461

skipif mysql # not compatible
query I rowsort label-3317
SELECT + MIN ( ALL + 71 ) * NULLIF ( - 91, + COUNT ( * ) + - COALESCE ( - 87, + 52, COUNT ( * ) + 81 ) * + 48 ) AS col1
----
-6461

query I rowsort
SELECT - 4 * - 29 AS col0
----
116

onlyif mysql # aggregate syntax: 
query II rowsort label-3319
SELECT ALL COUNT( * ) AS col2, 55 AS col2
----
1
55

skipif mysql # not compatible
query II rowsort label-3319
SELECT ALL COUNT ( * ) AS col2, 55 AS col2
----
1
55

onlyif mysql # aggregate syntax: 
query I rowsort label-3320
SELECT DISTINCT SUM( ALL - 92 )
----
-92

skipif mysql # not compatible
query I rowsort label-3320
SELECT DISTINCT SUM ( ALL - 92 )
----
-92

query I rowsort
SELECT - 97 + 73 AS col0
----
-24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3322
SELECT + 68 * COALESCE ( + + 14, 68 DIV + ( 18 ), - + 83 * - + COUNT( * ) ) AS col0
----
952

skipif mysql # not compatible
query I rowsort label-3322
SELECT + 68 * COALESCE ( + + 14, 68 / + ( 18 ), - + 83 * - + COUNT ( * ) ) AS col0
----
952

onlyif mysql # aggregate syntax: 
query I rowsort label-3323
SELECT ALL SUM( 17 ) + + - 5
----
12

skipif mysql # not compatible
query I rowsort label-3323
SELECT ALL SUM ( 17 ) + + - 5
----
12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3324
SELECT ALL - 80 + - ( - + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3324
SELECT ALL - 80 + - ( - + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3325
SELECT DISTINCT CASE - 17 WHEN - ( - 2 ) THEN - + 84 + + + 15 WHEN + 58 + - MAX( ALL - 78 ) THEN 51 * + 68 + - 43 * - CAST( + 12 * - 75 AS SIGNED ) END + - 85 * ( + 84 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3325
SELECT DISTINCT CASE - 17 WHEN - ( - 2 ) THEN - + 84 + + + 15 WHEN + 58 + - MAX ( ALL - 78 ) THEN 51 * + 68 + - 43 * - CAST ( + 12 * - 75 AS INTEGER ) END + - 85 * ( + 84 )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3326
SELECT DISTINCT COUNT( * ), 59 AS col2
----
1
59

skipif mysql # not compatible
query II rowsort label-3326
SELECT DISTINCT COUNT ( * ), 59 AS col2
----
1
59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3327
SELECT ALL - COUNT( * ) DIV + - 36 + - 6 * - 28 AS col1
----
168

skipif mysql # not compatible
query I rowsort label-3327
SELECT ALL - COUNT ( * ) / + - 36 + - 6 * - 28 AS col1
----
168

onlyif mysql # aggregate syntax: 
query I rowsort label-3328
SELECT - ( - 18 ) - + ( ( + + 50 ) ) + + - 65 + - - MIN( ALL + - NULLIF ( 21, + 29 ) ) + 1 * NULLIF ( ( 92 ), 60 ) * 33
----
2918

skipif mysql # not compatible
query I rowsort label-3328
SELECT - ( - 18 ) - + ( ( + + 50 ) ) + + - 65 + - - MIN ( ALL + - NULLIF ( 21, + 29 ) ) + 1 * NULLIF ( ( 92 ), 60 ) * 33
----
2918

onlyif mysql # aggregate syntax: 
query II rowsort label-3329
SELECT + + 11 AS col0, ( 74 ) + COUNT( * )
----
11
75

skipif mysql # not compatible
query II rowsort label-3329
SELECT + + 11 AS col0, ( 74 ) + COUNT ( * )
----
11
75

query II rowsort
SELECT + 21 AS col1, 43 AS col0
----
21
43

query I rowsort
SELECT ALL 80 * - 42 AS col1
----
-3360

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3332
SELECT DISTINCT - 80 DIV - COUNT( * ) + + 77 + - 66 * - 51 + + 30
----
3553

skipif mysql # not compatible
query I rowsort label-3332
SELECT DISTINCT - 80 / - COUNT ( * ) + + 77 + - 66 * - 51 + + 30
----
3553

onlyif mysql # aggregate syntax: 
query I rowsort label-3333
SELECT DISTINCT + + CASE + - COUNT( * ) WHEN - 59 THEN + 57 ELSE - + 44 END
----
-44

skipif mysql # not compatible
query I rowsort label-3333
SELECT DISTINCT + + CASE + - COUNT ( * ) WHEN - 59 THEN + 57 ELSE - + 44 END
----
-44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3334
SELECT - 37 * - CAST( NULL AS SIGNED ) + + - ( - 79 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3334
SELECT - 37 * - CAST ( NULL AS INTEGER ) + + - ( - 79 )
----
NULL

query II rowsort
SELECT + + NULLIF ( - - 66, + + 31 ) AS col0, + 56 col1
----
66
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3336
SELECT COUNT( * ) - + 62 * + COALESCE ( 31, + COUNT( * ), + + COUNT( * ) ) + CAST( - 7 AS SIGNED ) + + 87 * 89 AS col1
----
5815

skipif mysql # not compatible
query I rowsort label-3336
SELECT COUNT ( * ) - + 62 * + COALESCE ( 31, + COUNT ( * ), + + COUNT ( * ) ) + CAST ( - 7 AS INTEGER ) + + 87 * 89 AS col1
----
5815

query I rowsort
SELECT ALL + 92 - + COALESCE ( - - 71, 28, - + 36 ) AS col1
----
21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3338
SELECT + COUNT( * ) * + + 82 DIV 98 * 77 * 97
----
0

skipif mysql # not compatible
query I rowsort label-3338
SELECT + COUNT ( * ) * + + 82 / 98 * 77 * 97
----
0

query I rowsort
SELECT DISTINCT - + ( + 86 ) AS col1
----
-86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3340
SELECT - COUNT( ALL 9 ) + - CAST( NULL AS SIGNED ) + + 78 * - CAST( - 87 AS SIGNED ), - 13 AS col2
----
NULL
-13

skipif mysql # not compatible
query II rowsort label-3340
SELECT - COUNT ( ALL 9 ) + - CAST ( NULL AS INTEGER ) + + 78 * - CAST ( - 87 AS INTEGER ), - 13 AS col2
----
NULL
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-3341
SELECT COALESCE ( - 73, - 58 ) * + COUNT( * )
----
-73

skipif mysql # not compatible
query I rowsort label-3341
SELECT COALESCE ( - 73, - 58 ) * + COUNT ( * )
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-3342
SELECT ALL COUNT( COALESCE ( + - 58, + + COALESCE ( + - 37, 7 * - + 35 ), 80 ) ) * - 75 / - CASE 52 WHEN 12 * 95 THEN ( 27 ) + + CASE 24 WHEN COALESCE ( - 68, + 0 ) THEN - COUNT( * ) WHEN 0 + + 71 THEN NULL ELSE 32 END END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3342
SELECT ALL COUNT ( COALESCE ( + - 58, + + COALESCE ( + - 37, 7 * - + 35 ), 80 ) ) * - 75 / - CASE 52 WHEN 12 * 95 THEN ( 27 ) + + CASE 24 WHEN COALESCE ( - 68, + 0 ) THEN - COUNT ( * ) WHEN 0 + + 71 THEN NULL ELSE 32 END END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3343
SELECT 87 * - + COALESCE ( ( + ( ( 97 ) ) ), - CASE + 47 WHEN + ( + ( COUNT( * ) ) ) THEN - ( 61 ) + - 63 * 39 ELSE 78 + 82 * - 1 END ) * 41 AS col0
----
-345999

skipif mysql # not compatible
query I rowsort label-3343
SELECT 87 * - + COALESCE ( ( + ( ( 97 ) ) ), - CASE + 47 WHEN + ( + ( COUNT ( * ) ) ) THEN - ( 61 ) + - 63 * 39 ELSE 78 + 82 * - 1 END ) * 41 AS col0
----
-345999

query I rowsort
SELECT DISTINCT + 1 * - + 74 * + - 65 AS col1
----
4810

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3345
SELECT COUNT( ( - 79 ) ) DIV + + 19 * - COUNT( * ) * 47
----
0

skipif mysql # not compatible
query I rowsort label-3345
SELECT COUNT ( ( - 79 ) ) / + + 19 * - COUNT ( * ) * 47
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3346
SELECT ( - COUNT( DISTINCT + + CAST( - ( - CAST( NULL AS SIGNED ) ) AS SIGNED ) ) ) DIV 47 + 44 * - COUNT( * ) * + - 12
----
528

skipif mysql # not compatible
query I rowsort label-3346
SELECT ( - COUNT ( DISTINCT + + CAST ( - ( - CAST ( NULL AS INTEGER ) ) AS INTEGER ) ) ) / 47 + 44 * - COUNT ( * ) * + - 12
----
528

onlyif mysql # aggregate syntax: 
query I rowsort label-3347
SELECT COUNT( * ) + 37 + 40
----
78

skipif mysql # not compatible
query I rowsort label-3347
SELECT COUNT ( * ) + 37 + 40
----
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3348
SELECT ALL CAST( - 77 AS SIGNED ) * - 33 AS col1
----
2541

skipif mysql # not compatible
query I rowsort label-3348
SELECT ALL CAST ( - 77 AS INTEGER ) * - 33 AS col1
----
2541

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3349
SELECT ( + - 57 ) + - COUNT( * ) DIV - - 43
----
-57

skipif mysql # not compatible
query I rowsort label-3349
SELECT ( + - 57 ) + - COUNT ( * ) / - - 43
----
-57

onlyif mysql # aggregate syntax: 
query II rowsort label-3350
SELECT ALL - COUNT( * ) + 42 AS col0, ( 43 )
----
41
43

skipif mysql # not compatible
query II rowsort label-3350
SELECT ALL - COUNT ( * ) + 42 AS col0, ( 43 )
----
41
43

query I rowsort
SELECT ALL 80 + + ( - 87 ) col0
----
-7

query I rowsort
SELECT ALL 56 + 64 AS col0
----
120

query I rowsort
SELECT DISTINCT 84 + - 0 * 50 AS col0
----
84

query I rowsort
SELECT 90 + - 47 col1
----
43

query I rowsort
SELECT - 85 + 27
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-3356
SELECT 80 - 21 + + + 46 + - 75 + + - MAX( - 18 ) * + 89 * - - 88 + 78 AS col2
----
141084

skipif mysql # not compatible
query I rowsort label-3356
SELECT 80 - 21 + + + 46 + - 75 + + - MAX ( - 18 ) * + 89 * - - 88 + 78 AS col2
----
141084

onlyif mysql # aggregate syntax: 
query I rowsort label-3357
SELECT - + CASE + ( COUNT( * ) ) WHEN + + ( + ( 88 ) ) THEN 0 ELSE - + 20 END AS col1
----
20

skipif mysql # not compatible
query I rowsort label-3357
SELECT - + CASE + ( COUNT ( * ) ) WHEN + + ( + ( 88 ) ) THEN 0 ELSE - + 20 END AS col1
----
20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3358
SELECT COUNT( ALL - 45 ) + + - ( CAST( 63 AS SIGNED ) ) * - - 33
----
-2078

skipif mysql # not compatible
query I rowsort label-3358
SELECT COUNT ( ALL - 45 ) + + - ( CAST ( 63 AS INTEGER ) ) * - - 33
----
-2078

query I rowsort
SELECT ALL 69 - 69 - + 19 col2
----
-19

query I rowsort
SELECT ALL - 57 - - ( 86 )
----
29

onlyif mysql # DIV for integer division: 
query I rowsort label-3361
SELECT ALL + 71 DIV - 47 + - 90
----
-91

skipif mysql # not compatible
query I rowsort label-3361
SELECT ALL + 71 / - 47 + - 90
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-3362
SELECT ALL + - COUNT( * ) * - 26
----
26

skipif mysql # not compatible
query I rowsort label-3362
SELECT ALL + - COUNT ( * ) * - 26
----
26

onlyif mysql # DIV for integer division: 
query I rowsort label-3363
SELECT + - 11 DIV - 49 DIV 45 * - + ( + 71 ) + + 93 - + 19 * 6 + - 84
----
-105

skipif mysql # not compatible
query I rowsort label-3363
SELECT + - 11 / - 49 / 45 * - + ( + 71 ) + + 93 - + 19 * 6 + - 84
----
-105

query I rowsort
SELECT ALL + + 47 - + - 41
----
88

onlyif mysql # DIV for integer division: 
query I rowsort label-3365
SELECT - 88 DIV 94 + + 71 AS col2
----
71

skipif mysql # not compatible
query I rowsort label-3365
SELECT - 88 / 94 + + 71 AS col2
----
71

query I rowsort
SELECT 82 * - 65
----
-5330

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3367
SELECT 69 + - COALESCE ( + + 56, + CASE + 16 WHEN - 29 + - NULLIF ( + 2, + ( + 39 ) + - 99 * + 25 ) THEN NULL ELSE - 95 * 33 + + 98 END + ( + 69 ), 49 ) + + 29 DIV - COUNT( * )
----
-16

skipif mysql # not compatible
query I rowsort label-3367
SELECT 69 + - COALESCE ( + + 56, + CASE + 16 WHEN - 29 + - NULLIF ( + 2, + ( + 39 ) + - 99 * + 25 ) THEN NULL ELSE - 95 * 33 + + 98 END + ( + 69 ), 49 ) + + 29 / - COUNT ( * )
----
-16

query I rowsort
SELECT - NULLIF ( + 9, - + 43 ) * + 38 AS col2
----
-342

query I rowsort
SELECT - 71 * 25
----
-1775

onlyif mysql # aggregate syntax: 
query I rowsort label-3370
SELECT + 10 + + COUNT( * ) AS col1
----
11

skipif mysql # not compatible
query I rowsort label-3370
SELECT + 10 + + COUNT ( * ) AS col1
----
11

query I rowsort
SELECT 50 * 41 + 40
----
2090

onlyif mysql # DIV for integer division: 
query I rowsort label-3372
SELECT ALL - - 22 DIV + + 14
----
1

skipif mysql # not compatible
query I rowsort label-3372
SELECT ALL - - 22 / + + 14
----
1

query I rowsort
SELECT 96 * + + 72
----
6912

onlyif mysql # aggregate syntax: 
query I rowsort label-3374
SELECT - COUNT( * ) * ( - 69 ) + - - 26 AS col0
----
95

skipif mysql # not compatible
query I rowsort label-3374
SELECT - COUNT ( * ) * ( - 69 ) + - - 26 AS col0
----
95

query I rowsort
SELECT DISTINCT - ( - ( + + 5 ) )
----
5

query I rowsort
SELECT 86 * 74 AS col2
----
6364

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3377
SELECT COUNT( * ) + - CAST( + 45 AS SIGNED ), - 44
----
-44
-44

skipif mysql # not compatible
query II rowsort label-3377
SELECT COUNT ( * ) + - CAST ( + 45 AS INTEGER ), - 44
----
-44
-44

query I rowsort
SELECT ALL + 79 + - 2
----
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3379
SELECT 51 * - CAST( + 10 AS SIGNED ) + + - 28
----
-538

skipif mysql # not compatible
query I rowsort label-3379
SELECT 51 * - CAST ( + 10 AS INTEGER ) + + - 28
----
-538

query I rowsort
SELECT 2 + + + 40
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-3381
SELECT DISTINCT - MAX( 98 ) AS col1
----
-98

skipif mysql # not compatible
query I rowsort label-3381
SELECT DISTINCT - MAX ( 98 ) AS col1
----
-98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3382
SELECT - CAST( + 35 AS SIGNED ) * 6 * - COALESCE ( + 36, 61 ) + + NULLIF ( 4, + 72 + - 79 * 40 ) + - 12 + - 71 * + 34 AS col1
----
5138

skipif mysql # not compatible
query I rowsort label-3382
SELECT - CAST ( + 35 AS INTEGER ) * 6 * - COALESCE ( + 36, 61 ) + + NULLIF ( 4, + 72 + - 79 * 40 ) + - 12 + - 71 * + 34 AS col1
----
5138

onlyif mysql # aggregate syntax: 
query I rowsort label-3383
SELECT ALL SUM( ALL + 37 ) + + COUNT( * )
----
38

skipif mysql # not compatible
query I rowsort label-3383
SELECT ALL SUM ( ALL + 37 ) + + COUNT ( * )
----
38

query I rowsort
SELECT 37 + + 64 + 22 * + + 90 AS col0
----
2081

onlyif mysql # aggregate syntax: 
query I rowsort label-3385
SELECT COUNT( * ) + + 70 AS col1
----
71

skipif mysql # not compatible
query I rowsort label-3385
SELECT COUNT ( * ) + + 70 AS col1
----
71

onlyif mysql # DIV for integer division: 
query I rowsort label-3386
SELECT 56 DIV 87
----
0

skipif mysql # not compatible
query I rowsort label-3386
SELECT 56 / 87
----
0

query I rowsort
SELECT ALL - 16 + + 54 AS col0
----
38

query I rowsort
SELECT 27 * 73
----
1971

query I rowsort
SELECT 62 * 15
----
930

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3390
SELECT - CASE + CAST( + MAX( - 0 ) AS SIGNED ) WHEN COUNT( * ) * + + CAST( NULL AS SIGNED ) * + - 55 + - 59 + + 71 * - + 60 THEN 3 + COUNT( * ) / + CAST( NULL AS SIGNED ) WHEN + 49 + 12 THEN NULL WHEN ( - COALESCE ( - SUM( - 65 ), 50 ) ) + - 20 / - 8 THEN 93 / - 51 + 85 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3390
SELECT - CASE + CAST ( + MAX ( - 0 ) AS INTEGER ) WHEN COUNT ( * ) * + + CAST ( NULL AS INTEGER ) * + - 55 + - 59 + + 71 * - + 60 THEN 3 + COUNT ( * ) / + CAST ( NULL AS INTEGER ) WHEN + 49 + 12 THEN NULL WHEN ( - COALESCE ( - SUM ( - 65 ), 50 ) ) + - 20 / - 8 THEN 93 / - 51 + 85 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3391
SELECT ALL MIN( ALL - 18 ) AS col0
----
-18

skipif mysql # not compatible
query I rowsort label-3391
SELECT ALL MIN ( ALL - 18 ) AS col0
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-3392
SELECT ALL COALESCE ( + COUNT( * ), + 18, + COUNT( * ) * 52 ) * + - 94 AS col1
----
-94

skipif mysql # not compatible
query I rowsort label-3392
SELECT ALL COALESCE ( + COUNT ( * ), + 18, + COUNT ( * ) * 52 ) * + - 94 AS col1
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-3393
SELECT 48 + - COUNT( * ) col1
----
47

skipif mysql # not compatible
query I rowsort label-3393
SELECT 48 + - COUNT ( * ) col1
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-3394
SELECT COUNT( * ) * + 5 + - + 36 AS col2
----
-31

skipif mysql # not compatible
query I rowsort label-3394
SELECT COUNT ( * ) * + 5 + - + 36 AS col2
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-3395
SELECT - + COUNT( ALL 6 )
----
-1

skipif mysql # not compatible
query I rowsort label-3395
SELECT - + COUNT ( ALL 6 )
----
-1

query I rowsort
SELECT ALL + 86 - - 61 AS col0
----
147

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3397
SELECT - + CAST( + - 94 AS SIGNED )
----
94

skipif mysql # not compatible
query I rowsort label-3397
SELECT - + CAST ( + - 94 AS INTEGER )
----
94

query II rowsort
SELECT ALL - 15, + 38 AS col0
----
-15
38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3399
SELECT - 83 AS col0, 62 * - 39 * CASE - NULLIF ( + 27, + 44 * - 24 + - - CAST( NULL AS SIGNED ) ) WHEN + 2 + + 29 THEN 10 * ( - 99 * - 98 ) - MAX( + 23 ) ELSE ( - 0 ) END + + 15 AS col0
----
-83
15

skipif mysql # not compatible
query II rowsort label-3399
SELECT - 83 AS col0, 62 * - 39 * CASE - NULLIF ( + 27, + 44 * - 24 + - - CAST ( NULL AS INTEGER ) ) WHEN + 2 + + 29 THEN 10 * ( - 99 * - 98 ) - MAX ( + 23 ) ELSE ( - 0 ) END + + 15 AS col0
----
-83
15

query I rowsort
SELECT + 86 - 66
----
20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3401
SELECT DISTINCT + - NULLIF ( - CAST( + 52 AS SIGNED ), + 37 ) AS col2
----
52

skipif mysql # not compatible
query I rowsort label-3401
SELECT DISTINCT + - NULLIF ( - CAST ( + 52 AS INTEGER ), + 37 ) AS col2
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-3402
SELECT DISTINCT + SUM( + - ( + 30 ) ) col1
----
-30

skipif mysql # not compatible
query I rowsort label-3402
SELECT DISTINCT + SUM ( + - ( + 30 ) ) col1
----
-30

onlyif mysql # DIV for integer division: 
query I rowsort label-3403
SELECT + - 4 DIV + 14
----
0

skipif mysql # not compatible
query I rowsort label-3403
SELECT + - 4 / + 14
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3404
SELECT DISTINCT COUNT( * ) * + - 33 + + + 10 AS col0
----
-23

skipif mysql # not compatible
query I rowsort label-3404
SELECT DISTINCT COUNT ( * ) * + - 33 + + + 10 AS col0
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-3405
SELECT ALL 52 * 29 + SUM( ALL + 24 ) + - COUNT( * ) * - + ( + COUNT( * ) )
----
1533

skipif mysql # not compatible
query I rowsort label-3405
SELECT ALL 52 * 29 + SUM ( ALL + 24 ) + - COUNT ( * ) * - + ( + COUNT ( * ) )
----
1533

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3406
SELECT ALL 17 * - 25, + CAST( NULL AS SIGNED ) col1
----
-425
NULL

skipif mysql # not compatible
query II rowsort label-3406
SELECT ALL 17 * - 25, + CAST ( NULL AS INTEGER ) col1
----
-425
NULL

query I rowsort
SELECT + 23 / 54 * - - AVG ( + + CASE 87 WHEN - - 7 THEN - + 79 * + 18 * NULLIF ( + + 88, 7 * + 61 ) / 32 ELSE NULL END )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3408
SELECT - 29 DIV - 60 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3408
SELECT - 29 / - 60 AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3409
SELECT + 40 * CAST( NULL AS SIGNED ) / - 96 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3409
SELECT + 40 * CAST ( NULL AS INTEGER ) / - 96 AS col2
----
NULL

query I rowsort
SELECT DISTINCT 16 * + 73
----
1168

query I rowsort
SELECT - 86 - + - 13 + - 42 + + 99 + 93
----
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3412
SELECT DISTINCT - NULLIF ( - + CASE - 84 WHEN 37 * + ( - 15 ) * - ( 91 ) / CAST( NULL AS SIGNED ) + + 61 * + 8 + 41 * 63 + + NULLIF ( 5, + 75 * + 44 ) * COUNT( * ) THEN - 88 WHEN - 75 THEN 54 + - 68 ELSE NULL END, 27 ) * 15 + + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3412
SELECT DISTINCT - NULLIF ( - + CASE - 84 WHEN 37 * + ( - 15 ) * - ( 91 ) / CAST ( NULL AS INTEGER ) + + 61 * + 8 + 41 * 63 + + NULLIF ( 5, + 75 * + 44 ) * COUNT ( * ) THEN - 88 WHEN - 75 THEN 54 + - 68 ELSE NULL END, 27 ) * 15 + + COUNT ( * ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT - ( + 68 ) + + 45 AS col1
----
-23

onlyif mysql # DIV for integer division: 
query I rowsort label-3414
SELECT DISTINCT - 66 + + 87 DIV - - 5 AS col1
----
-49

skipif mysql # not compatible
query I rowsort label-3414
SELECT DISTINCT - 66 + + 87 / - - 5 AS col1
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-3415
SELECT ALL COUNT( + 23 )
----
1

skipif mysql # not compatible
query I rowsort label-3415
SELECT ALL COUNT ( + 23 )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-3416
SELECT + 9 + + 6 AS col1, ( - - 80 ) + + COUNT( * )
----
15
81

skipif mysql # not compatible
query II rowsort label-3416
SELECT + 9 + + 6 AS col1, ( - - 80 ) + + COUNT ( * )
----
15
81

query II rowsort
SELECT - 53 AS col1, 26 col1
----
-53
26

query I rowsort
SELECT - 27 + - 75 * - 31 AS col2
----
2298

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-3419
SELECT 38, - 31 + + + 88 * COUNT( * ) AS col1, + ( - 46 ) DIV NULLIF ( + 95, 72 * - - 55 + - + 9 + - 36 * 6 ) + - 78 * - 88 AS col2
----
38
57
6864

skipif mysql # not compatible
query III rowsort label-3419
SELECT 38, - 31 + + + 88 * COUNT ( * ) AS col1, + ( - 46 ) / NULLIF ( + 95, 72 * - - 55 + - + 9 + - 36 * 6 ) + - 78 * - 88 AS col2
----
38
57
6864

onlyif mysql # aggregate syntax: 
query I rowsort label-3420
SELECT - 3 + + COUNT( * ) * - + 50 AS col1
----
-53

skipif mysql # not compatible
query I rowsort label-3420
SELECT - 3 + + COUNT ( * ) * - + 50 AS col1
----
-53

query I rowsort
SELECT - 9 * - 27
----
243

query I rowsort
SELECT ALL ( + COALESCE ( + 6, - - 50 ) ) AS col0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-3423
SELECT - + COUNT( * ) + 98 + - + CASE + 29 WHEN 17 THEN - - 24 * + + 7 - - COUNT( * ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3423
SELECT - + COUNT ( * ) + 98 + - + CASE + 29 WHEN 17 THEN - - 24 * + + 7 - - COUNT ( * ) END AS col0
----
NULL

query I rowsort
SELECT DISTINCT - - 81 * - 19 AS col2
----
-1539

query I rowsort
SELECT ALL - 15 - NULLIF ( + 81, + + ( + - 48 ) ) * + 23 AS col2
----
-1878

query I rowsort
SELECT - 76 * + 99 AS col0
----
-7524

query I rowsort
SELECT ALL - + 31 * - - 9
----
-279

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3428
SELECT DISTINCT - - COALESCE ( CAST( NULL AS SIGNED ), + - ( - ( - 18 ) ) * + 84 + + 81, - 54 ) * - 7 * - COALESCE ( + - 68, + 97 ) - + 93
----
681063

skipif mysql # not compatible
query I rowsort label-3428
SELECT DISTINCT - - COALESCE ( CAST ( NULL AS INTEGER ), + - ( - ( - 18 ) ) * + 84 + + 81, - 54 ) * - 7 * - COALESCE ( + - 68, + 97 ) - + 93
----
681063

query II rowsort
SELECT DISTINCT - 71 AS col2, 88 * - ( - 96 ) * - 22
----
-71
-185856

query I rowsort
SELECT ALL CASE WHEN ( + - 72 > NULL ) THEN 84 ELSE - - 73 END
----
73

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3431
SELECT + CAST( NULL AS DECIMAL ) + - ( - 92 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3431
SELECT + CAST ( NULL AS REAL ) + - ( - 92 )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3432
SELECT ALL 34 col1, COUNT( * ) AS col1
----
34
1

skipif mysql # not compatible
query II rowsort label-3432
SELECT ALL 34 col1, COUNT ( * ) AS col1
----
34
1

query I rowsort
SELECT - + 99 + + ( + 33 ) * + + 72 + - 55 AS col1
----
2222

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3434
SELECT CAST( - CAST( NULL AS SIGNED ) AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-3434
SELECT CAST ( - CAST ( NULL AS INTEGER ) AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3435
SELECT - CASE + - 94 WHEN - 26 THEN NULL WHEN + 64 * - ( + 71 ) + - 75 THEN + ( COUNT( * ) ) - + + 85 + 29 END * - 5
----
NULL

skipif mysql # not compatible
query I rowsort label-3435
SELECT - CASE + - 94 WHEN - 26 THEN NULL WHEN + 64 * - ( + 71 ) + - 75 THEN + ( COUNT ( * ) ) - + + 85 + 29 END * - 5
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3436
SELECT - - ( 61 ) + - COUNT( * )
----
60

skipif mysql # not compatible
query I rowsort label-3436
SELECT - - ( 61 ) + - COUNT ( * )
----
60

query I rowsort
SELECT + - 19 - + + 69
----
-88

onlyif mysql # DIV for integer division: 
query I rowsort label-3438
SELECT DISTINCT - 61 DIV + 90 * 1
----
0

skipif mysql # not compatible
query I rowsort label-3438
SELECT DISTINCT - 61 / + 90 * 1
----
0

query II rowsort
SELECT ALL - 42 AS col1, - 87 AS col1
----
-42
-87

query I rowsort
SELECT DISTINCT - 80 * + 54 * - 2 * + 96
----
829440

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3441
SELECT ALL + 81 / - CAST( + NULLIF ( - 38, + - NULLIF ( - 69, 77 + 24 + + 73 ) ) AS SIGNED ) + - 82 * - + MAX( - COALESCE ( + 82, 21 ) ) * + 63 + CAST( NULL AS SIGNED ) + ( 65 + + 49 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3441
SELECT ALL + 81 / - CAST ( + NULLIF ( - 38, + - NULLIF ( - 69, 77 + 24 + + 73 ) ) AS INTEGER ) + - 82 * - + MAX ( - COALESCE ( + 82, 21 ) ) * + 63 + CAST ( NULL AS INTEGER ) + ( 65 + + 49 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3442
SELECT 58 * + + MAX( ALL - 9 ) * 1 + - COUNT( * ) AS col0
----
-523

skipif mysql # not compatible
query I rowsort label-3442
SELECT 58 * + + MAX ( ALL - 9 ) * 1 + - COUNT ( * ) AS col0
----
-523

onlyif mysql # aggregate syntax: 
query I rowsort label-3443
SELECT ALL + + CASE + 93 WHEN - AVG ( + 96 ) * - AVG ( - + 84 ) + - MAX( DISTINCT 50 ) + + 1 THEN + + 26 * - - 33 + 28 + ( 70 ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3443
SELECT ALL + + CASE + 93 WHEN - AVG ( + 96 ) * - AVG ( - + 84 ) + - MAX ( DISTINCT 50 ) + + 1 THEN + + 26 * - - 33 + 28 + ( 70 ) END AS col2
----
NULL

query I rowsort
SELECT + + 42 * - 52 * - - 66
----
-144144

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3445
SELECT DISTINCT + 59 DIV - 9 + 7 + - - 62 AS col1, ( - MIN( + + 75 ) ) AS col2
----
63
-75

skipif mysql # not compatible
query II rowsort label-3445
SELECT DISTINCT + 59 / - 9 + 7 + - - 62 AS col1, ( - MIN ( + + 75 ) ) AS col2
----
63
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-3446
SELECT + COUNT( + - ( + 82 ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3446
SELECT + COUNT ( + - ( + 82 ) ) AS col0
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3447
SELECT + 17 + - 45 AS col2, 53 + 87 DIV + 64 + + COUNT( * ) + - 1
----
-28
54

skipif mysql # not compatible
query II rowsort label-3447
SELECT + 17 + - 45 AS col2, 53 + 87 / + 64 + + COUNT ( * ) + - 1
----
-28
54

query I rowsort
SELECT + 93 + - 98
----
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3449
SELECT + ( - CAST( - ( - 27 ) AS SIGNED ) )
----
-27

skipif mysql # not compatible
query I rowsort label-3449
SELECT + ( - CAST ( - ( - 27 ) AS INTEGER ) )
----
-27

query I rowsort
SELECT DISTINCT - 82 * - - 2 + + 3
----
-161

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3451
SELECT DISTINCT + ( MAX( - + ( + CASE 23 WHEN + + 34 * + + CAST( NULL AS DECIMAL ) THEN 61 + 1 WHEN - + ( + 29 ) THEN NULL END ) ) ) * + 44 * + COUNT( * ) + + 85
----
NULL

skipif mysql # not compatible
query I rowsort label-3451
SELECT DISTINCT + ( MAX ( - + ( + CASE 23 WHEN + + 34 * + + CAST ( NULL AS REAL ) THEN 61 + 1 WHEN - + ( + 29 ) THEN NULL END ) ) ) * + 44 * + COUNT ( * ) + + 85
----
NULL

query II rowsort
SELECT ALL - 89 * - 21 col2, 24
----
1869
24

query I rowsort
SELECT + 39 + + 1 - - 84 * 63
----
5332

query I rowsort
SELECT ALL - 49 * - + 48 - 22
----
2330

query I rowsort
SELECT + ( - - 59 ) AS col0
----
59

query I rowsort
SELECT + COALESCE ( 91, - + 78 ) + + + 1
----
92

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3457
SELECT NULLIF ( + 3, + + COALESCE ( + + 22, + - 52, + CAST( - 83 AS DECIMAL ) + + ( + 73 ) + 70, - 76 / - + 13 * - 38 + + AVG ( - 96 ) / + 54 ) )
----
3

skipif mysql # not compatible
query I rowsort label-3457
SELECT NULLIF ( + 3, + + COALESCE ( + + 22, + - 52, + CAST ( - 83 AS REAL ) + + ( + 73 ) + 70, - 76 / - + 13 * - 38 + + AVG ( - 96 ) / + 54 ) )
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3458
SELECT - MAX( ALL - + CAST( NULL AS SIGNED ) ) * - 46 * + - NULLIF ( 35, - ( + 59 ) ) * - 61 + + COUNT( - 13 ) * + 19
----
NULL

skipif mysql # not compatible
query I rowsort label-3458
SELECT - MAX ( ALL - + CAST ( NULL AS INTEGER ) ) * - 46 * + - NULLIF ( 35, - ( + 59 ) ) * - 61 + + COUNT ( - 13 ) * + 19
----
NULL

query II rowsort
SELECT ALL 97 * + 70 AS col2, + 97 * 97
----
6790
9409

query II rowsort
SELECT + 15 * - - 78 + - + 60 AS col1, + 62
----
1110
62

onlyif mysql # aggregate syntax: 
query I rowsort label-3461
SELECT NULLIF ( + 69, + - 3 / - + NULLIF ( - + 72, 77 ) - - CASE + + 26 WHEN MAX( DISTINCT - COALESCE ( - 36, - 99 ) ) THEN 98 + COUNT( * ) * + 1 END + + 27 )
----
69

skipif mysql # not compatible
query I rowsort label-3461
SELECT NULLIF ( + 69, + - 3 / - + NULLIF ( - + 72, 77 ) - - CASE + + 26 WHEN MAX ( DISTINCT - COALESCE ( - 36, - 99 ) ) THEN 98 + COUNT ( * ) * + 1 END + + 27 )
----
69

query I rowsort
SELECT - 85 + + 16 AS col0
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-3463
SELECT ALL 34 * COUNT( * ) - 10
----
24

skipif mysql # not compatible
query I rowsort label-3463
SELECT ALL 34 * COUNT ( * ) - 10
----
24

query I rowsort
SELECT DISTINCT 3 * 22
----
66

query I rowsort
SELECT - CASE - - 9 WHEN + 46 THEN - 52 ELSE NULL END AS col2
----
NULL

query II rowsort
SELECT 88 * + 38, - 85 col1
----
3344
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-3467
SELECT - MAX( ALL + - 90 )
----
90

skipif mysql # not compatible
query I rowsort label-3467
SELECT - MAX ( ALL + - 90 )
----
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3468
SELECT 37 * + 34 AS col0, 71 * 22 - NULLIF ( + CAST( + CASE + 11 WHEN - + 90 THEN NULL WHEN 67 THEN - - COUNT( * ) * COALESCE ( + 88, - 41 * 67 ) / - 79 END AS SIGNED ), - COUNT( * ) ) AS col1
----
1258
NULL

skipif mysql # not compatible
query II rowsort label-3468
SELECT 37 * + 34 AS col0, 71 * 22 - NULLIF ( + CAST ( + CASE + 11 WHEN - + 90 THEN NULL WHEN 67 THEN - - COUNT ( * ) * COALESCE ( + 88, - 41 * 67 ) / - 79 END AS INTEGER ), - COUNT ( * ) ) AS col1
----
1258
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3469
SELECT - ( + - CAST( 9 AS SIGNED ) ) + 4 + - 91
----
-78

skipif mysql # not compatible
query I rowsort label-3469
SELECT - ( + - CAST ( 9 AS INTEGER ) ) + 4 + - 91
----
-78

onlyif mysql # DIV for integer division: 
query I rowsort label-3470
SELECT 67 DIV - 7
----
-9

skipif mysql # not compatible
query I rowsort label-3470
SELECT 67 / - 7
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-3471
SELECT ALL + 73 + COUNT( * ) AS col2
----
74

skipif mysql # not compatible
query I rowsort label-3471
SELECT ALL + 73 + COUNT ( * ) AS col2
----
74

query I rowsort
SELECT ALL + - 15 + - 41 + ( - - 35 )
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-3473
SELECT ALL + - COUNT( ALL - 31 ) + + 41 AS col2
----
40

skipif mysql # not compatible
query I rowsort label-3473
SELECT ALL + - COUNT ( ALL - 31 ) + + 41 AS col2
----
40

query I rowsort
SELECT - COALESCE ( + 86, - 98 )
----
-86

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3475
SELECT ALL + 82 * - 73 + - 58 * 21 DIV CAST( + 42 AS SIGNED ) AS col1
----
-6015

skipif mysql # not compatible
query I rowsort label-3475
SELECT ALL + 82 * - 73 + - 58 * 21 / CAST ( + 42 AS INTEGER ) AS col1
----
-6015

onlyif mysql # aggregate syntax: 
query II rowsort label-3476
SELECT + COUNT( * ) + + COUNT( * ) AS col0, ( - 76 ) AS col0
----
2
-76

skipif mysql # not compatible
query II rowsort label-3476
SELECT + COUNT ( * ) + + COUNT ( * ) AS col0, ( - 76 ) AS col0
----
2
-76

query I rowsort
SELECT ALL - - 48 + - + 76 * + 82 + + - 52 + 77 * + + 54
----
-2078

query I rowsort
SELECT + 70 * 96 * 70
----
470400

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3479
SELECT 2 DIV 56 * 48 * - - COALESCE ( - COUNT( * ), 88 * 63 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3479
SELECT 2 / 56 * 48 * - - COALESCE ( - COUNT ( * ), 88 * 63 ) AS col1
----
0

query I rowsort
SELECT 5 - + 20 + 71 * + + 94
----
6659

query I rowsort
SELECT DISTINCT 5 + 55
----
60

query I rowsort
SELECT ALL ( + 64 ) * - 43 * + + 2 AS col2
----
-5504

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3483
SELECT ALL + COALESCE ( - 23, - 40 DIV - - MIN( - ( - 81 ) ) ) DIV + + 48 col2
----
0

skipif mysql # not compatible
query I rowsort label-3483
SELECT ALL + COALESCE ( - 23, - 40 / - - MIN ( - ( - 81 ) ) ) / + + 48 col2
----
0

query II rowsort
SELECT + 28, + 48 * 81 AS col2
----
28
3888

onlyif mysql # aggregate syntax: 
query I rowsort label-3485
SELECT ALL 57 * - 7 * + SUM( - - 28 ) * - 93
----
1038996

skipif mysql # not compatible
query I rowsort label-3485
SELECT ALL 57 * - 7 * + SUM ( - - 28 ) * - 93
----
1038996

query I rowsort
SELECT 37 * + - 70 AS col0
----
-2590

query II rowsort
SELECT DISTINCT - 14 AS col2, 48 AS col0
----
-14
48

query I rowsort
SELECT ALL - 30 * - 66
----
1980

onlyif mysql # aggregate syntax: 
query II rowsort label-3489
SELECT ALL COUNT( * ) * MIN( ALL + - 81 ), - 1 AS col1
----
-81
-1

skipif mysql # not compatible
query II rowsort label-3489
SELECT ALL COUNT ( * ) * MIN ( ALL + - 81 ), - 1 AS col1
----
-81
-1

query I rowsort
SELECT 27 - 12 AS col2
----
15

onlyif mysql # DIV for integer division: 
query II rowsort label-3491
SELECT + 52 AS col1, 21 DIV - + ( + 20 ) AS col2
----
52
-1

skipif mysql # not compatible
query II rowsort label-3491
SELECT + 52 AS col1, 21 / - + ( + 20 ) AS col2
----
52
-1

query II rowsort
SELECT ALL - 17 col2, + 57 + + 29 AS col1
----
-17
86

query II rowsort
SELECT DISTINCT - 23, 22 AS col1
----
-23
22

onlyif mysql # aggregate syntax: 
query I rowsort label-3494
SELECT 62 - - - 60 + - COUNT( * ) * + + 75 col2
----
-73

skipif mysql # not compatible
query I rowsort label-3494
SELECT 62 - - - 60 + - COUNT ( * ) * + + 75 col2
----
-73

query II rowsort
SELECT ALL - + 28 AS col1, + 56 * + 72 AS col2
----
-28
4032

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3496
SELECT - CASE WHEN + MAX( ( - CAST( 49 AS SIGNED ) ) ) BETWEEN + 5 * - 17 * 60 * - - 96 / 32 AND ( - - 94 ) THEN NULL ELSE 6 / + 72 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3496
SELECT - CASE WHEN + MAX ( ( - CAST ( 49 AS INTEGER ) ) ) BETWEEN + 5 * - 17 * 60 * - - 96 / 32 AND ( - - 94 ) THEN NULL ELSE 6 / + 72 END AS col1
----
NULL

query I rowsort
SELECT DISTINCT + 54 * 71
----
3834

query II rowsort
SELECT + 86 * 2 - - 83 + 80 col0, - 12
----
335
-12

query I rowsort
SELECT 13 + + + 32 AS col2
----
45

query I rowsort
SELECT ALL 69 + - 30
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-3501
SELECT - COALESCE ( - - 30, - + COUNT( * ), + 48 ) + - + ( - 51 ) * + 35 + 31 + - 28 * + COUNT( * ) AS col0
----
1758

skipif mysql # not compatible
query I rowsort label-3501
SELECT - COALESCE ( - - 30, - + COUNT ( * ), + 48 ) + - + ( - 51 ) * + 35 + 31 + - 28 * + COUNT ( * ) AS col0
----
1758

onlyif mysql # aggregate syntax: 
query I rowsort label-3502
SELECT COUNT( * ) - - + COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-3502
SELECT COUNT ( * ) - - + COUNT ( * )
----
2

query I rowsort
SELECT - 52 + - - 66
----
14

query I rowsort
SELECT DISTINCT 40 + + - 65 AS col2
----
-25

query I rowsort
SELECT DISTINCT - 80 + + 99 + + + 78 * 70 AS col1
----
5479

query I rowsort
SELECT ALL + 22 + - 93
----
-71

onlyif mysql # aggregate syntax: 
query II rowsort label-3507
SELECT + 88 + - - 7 - + - 43, MIN( DISTINCT - 41 ) * 99 AS col0
----
138
-4059

skipif mysql # not compatible
query II rowsort label-3507
SELECT + 88 + - - 7 - + - 43, MIN ( DISTINCT - 41 ) * 99 AS col0
----
138
-4059

query II rowsort
SELECT - 31 AS col0, - 51 + 63
----
-31
12

onlyif mysql # aggregate syntax: 
query II rowsort label-3509
SELECT DISTINCT 80 + + COUNT( * ) + 22 AS col0, 14 - - + 21 AS col2
----
103
35

skipif mysql # not compatible
query II rowsort label-3509
SELECT DISTINCT 80 + + COUNT ( * ) + 22 AS col0, 14 - - + 21 AS col2
----
103
35

onlyif mysql # aggregate syntax: 
query I rowsort label-3510
SELECT ALL - + NULLIF ( - COUNT( * ), + + AVG ( 61 ) - - ( + 62 ) ) + - - 52 AS col1
----
53

skipif mysql # not compatible
query I rowsort label-3510
SELECT ALL - + NULLIF ( - COUNT ( * ), + + AVG ( 61 ) - - ( + 62 ) ) + - - 52 AS col1
----
53

query II rowsort
SELECT - 92 AS col0, 9 + CASE - ( + - 35 ) WHEN - COALESCE ( + 17, - 18 - + 17 ) THEN 88 WHEN - 19 THEN NULL WHEN + + 40 * - 61 THEN NULL END - - 92
----
-92
NULL

query I rowsort
SELECT ALL + 87 + 81 + + 73 * 73
----
5497

query I rowsort
SELECT ALL + ( - 50 ) * + 59
----
-2950

query I rowsort
SELECT DISTINCT + 6 * + 36
----
216

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3515
SELECT 31 * COUNT( * ) * - + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3515
SELECT 31 * COUNT ( * ) * - + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT ALL - ( - - 55 ) AS col2
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-3517
SELECT ALL 71 * ( + - ( + + MAX( DISTINCT + + 20 ) ) ) - + ( - - COUNT( DISTINCT - 66 ) ) AS col1
----
-1421

skipif mysql # not compatible
query I rowsort label-3517
SELECT ALL 71 * ( + - ( + + MAX ( DISTINCT + + 20 ) ) ) - + ( - - COUNT ( DISTINCT - 66 ) ) AS col1
----
-1421

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3518
SELECT 21 * 88 * - + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3518
SELECT 21 * 88 * - + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT ALL - ( 16 )
----
-16

query I rowsort
SELECT 37 + + 62 AS col2
----
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3521
SELECT 53 * + + ( COUNT( * ) ) - + COUNT( * ) - - CASE + 23 WHEN - CAST( 91 AS SIGNED ) + - 3 * COUNT( DISTINCT + 75 ) * + 77 + - 50 + - + 23 - - 16 * + 56 * + 74 THEN NULL WHEN 93 THEN - COUNT( * ) / 1 END * - 36 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3521
SELECT 53 * + + ( COUNT ( * ) ) - + COUNT ( * ) - - CASE + 23 WHEN - CAST ( 91 AS INTEGER ) + - 3 * COUNT ( DISTINCT + 75 ) * + 77 + - 50 + - + 23 - - 16 * + 56 * + 74 THEN NULL WHEN 93 THEN - COUNT ( * ) / 1 END * - 36 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3522
SELECT ALL + 62 DIV - 58 * - COUNT( * ) col2
----
1

skipif mysql # not compatible
query I rowsort label-3522
SELECT ALL + 62 / - 58 * - COUNT ( * ) col2
----
1

query I rowsort
SELECT - 64 * 47 + + + 46 AS col0
----
-2962

onlyif mysql # aggregate syntax: 
query I rowsort label-3524
SELECT DISTINCT 9 * + COUNT( * ) * - COUNT( * )
----
-9

skipif mysql # not compatible
query I rowsort label-3524
SELECT DISTINCT 9 * + COUNT ( * ) * - COUNT ( * )
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-3525
SELECT DISTINCT + SUM( - 80 )
----
-80

skipif mysql # not compatible
query I rowsort label-3525
SELECT DISTINCT + SUM ( - 80 )
----
-80

onlyif mysql # aggregate syntax: 
query II rowsort label-3526
SELECT ALL 44 * MAX( ALL 55 ) * 73, + 17 AS col1
----
176660
17

skipif mysql # not compatible
query II rowsort label-3526
SELECT ALL 44 * MAX ( ALL 55 ) * 73, + 17 AS col1
----
176660
17

onlyif mysql # aggregate syntax: 
query II rowsort label-3527
SELECT DISTINCT - 45 * - COUNT( * ), 35 * 95 + + 76 AS col2
----
45
3401

skipif mysql # not compatible
query II rowsort label-3527
SELECT DISTINCT - 45 * - COUNT ( * ), 35 * 95 + + 76 AS col2
----
45
3401

query I rowsort
SELECT DISTINCT + - 11 * - 55 AS col1
----
605

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3529
SELECT ALL - - 49 + - 68 * + 81 / - CAST( NULL AS SIGNED ) * + - 70 + - 72
----
NULL

skipif mysql # not compatible
query I rowsort label-3529
SELECT ALL - - 49 + - 68 * + 81 / - CAST ( NULL AS INTEGER ) * + - 70 + - 72
----
NULL

query I rowsort
SELECT + CASE + ( - 67 ) WHEN - 75 * + ( - + 60 ) THEN NULL ELSE - 39 * + 40 + COALESCE ( - 5, + + 73, 83 ) END
----
-1565

onlyif mysql # aggregate syntax: 
query I rowsort label-3531
SELECT - MAX( DISTINCT - 93 )
----
93

skipif mysql # not compatible
query I rowsort label-3531
SELECT - MAX ( DISTINCT - 93 )
----
93

query I rowsort
SELECT + 83 * + + 73 AS col2
----
6059

onlyif mysql # aggregate syntax: 
query I rowsort label-3533
SELECT - + MIN( - 48 ) * 34 + - 33 + + - COUNT( DISTINCT - 42 )
----
1598

skipif mysql # not compatible
query I rowsort label-3533
SELECT - + MIN ( - 48 ) * 34 + - 33 + + - COUNT ( DISTINCT - 42 )
----
1598

query I rowsort
SELECT ALL + 17 + - 48 * - + 73 AS col1
----
3521

onlyif mysql # aggregate syntax: 
query II rowsort label-3535
SELECT + SUM( 40 ), COUNT( * ) AS col2
----
40
1

skipif mysql # not compatible
query II rowsort label-3535
SELECT + SUM ( 40 ), COUNT ( * ) AS col2
----
40
1

query I rowsort
SELECT ALL - - 57 + - 48
----
9

onlyif mysql # CAST syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-3537
SELECT + - 37 * - 7 + + + NULLIF ( + 3, CAST( + + 43 AS DECIMAL ) ) + - ( - 13 ) + 30 DIV 28 - + 0 * 83
----
276

skipif mysql # not compatible
query I rowsort label-3537
SELECT + - 37 * - 7 + + + NULLIF ( + 3, CAST ( + + 43 AS REAL ) ) + - ( - 13 ) + 30 / 28 - + 0 * 83
----
276

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3538
SELECT ALL + 26 + + ( + 27 ) + - COUNT( * ) + - 86 + + COUNT( * ) DIV + + 5 * + - 82 + - + 85 col1, 85 * + 1 AS col2
----
-119
85

skipif mysql # not compatible
query II rowsort label-3538
SELECT ALL + 26 + + ( + 27 ) + - COUNT ( * ) + - 86 + + COUNT ( * ) / + + 5 * + - 82 + - + 85 col1, 85 * + 1 AS col2
----
-119
85

query I rowsort
SELECT ALL - 51 + 30 * - - 63 AS col0
----
1839

onlyif mysql # aggregate syntax: 
query I rowsort label-3540
SELECT DISTINCT - 93 + - + MIN( - 80 ) + - - MAX( ALL + 58 ) AS col0
----
45

skipif mysql # not compatible
query I rowsort label-3540
SELECT DISTINCT - 93 + - + MIN ( - 80 ) + - - MAX ( ALL + 58 ) AS col0
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-3541
SELECT DISTINCT + COUNT( * ) + - - 94 + - + 11
----
84

skipif mysql # not compatible
query I rowsort label-3541
SELECT DISTINCT + COUNT ( * ) + - - 94 + - + 11
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-3542
SELECT - 25 * + CASE - - 88 WHEN NULLIF ( + COUNT( * ), COUNT( * ) ) - - 22 * - 51 * 81 * - - 18 THEN NULL WHEN 22 * - + 81 THEN NULL ELSE - 28 END
----
700

skipif mysql # not compatible
query I rowsort label-3542
SELECT - 25 * + CASE - - 88 WHEN NULLIF ( + COUNT ( * ), COUNT ( * ) ) - - 22 * - 51 * 81 * - - 18 THEN NULL WHEN 22 * - + 81 THEN NULL ELSE - 28 END
----
700

query I rowsort
SELECT DISTINCT - 49 * 76 - + - 40 AS col0
----
-3684

onlyif mysql # DIV for integer division: 
query II rowsort label-3544
SELECT ALL 69 + 62 + - + ( - + 48 ) DIV 25 col0, - 39 + + - ( + - COALESCE ( 62, + 56 DIV 51 + + 66, 62 ) )
----
132
23

skipif mysql # not compatible
query II rowsort label-3544
SELECT ALL 69 + 62 + - + ( - + 48 ) / 25 col0, - 39 + + - ( + - COALESCE ( 62, + 56 / 51 + + 66, 62 ) )
----
132
23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3545
SELECT + + 10 DIV + SUM( CASE 73 WHEN 21 THEN NULL ELSE - + 19 END ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3545
SELECT + + 10 / + SUM ( CASE 73 WHEN 21 THEN NULL ELSE - + 19 END ) AS col0
----
0

query I rowsort
SELECT + + 5 * - ( + - 0 ) AS col2
----
0

query I rowsort
SELECT ALL - 99 * + - 32 + + - 8 AS col2
----
3160

query I rowsort
SELECT CASE - 40 WHEN + 69 THEN - 44 WHEN + 92 THEN NULL END
----
NULL

query I rowsort
SELECT ALL - 30 - - 81
----
51

onlyif mysql # aggregate syntax: 
query II rowsort label-3550
SELECT 77 AS col2, COUNT( * )
----
77
1

skipif mysql # not compatible
query II rowsort label-3550
SELECT 77 AS col2, COUNT ( * )
----
77
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3551
SELECT DISTINCT COUNT( ALL + 85 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3551
SELECT DISTINCT COUNT ( ALL + 85 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3552
SELECT ALL - COUNT( + 44 ) - - ( + 35 ) AS col0
----
34

skipif mysql # not compatible
query I rowsort label-3552
SELECT ALL - COUNT ( + 44 ) - - ( + 35 ) AS col0
----
34

query I rowsort
SELECT + 46 * 46 * - 89 col0
----
-188324

onlyif mysql # aggregate syntax: 
query I rowsort label-3554
SELECT + COUNT( * ) * - + 32 AS col1
----
-32

skipif mysql # not compatible
query I rowsort label-3554
SELECT + COUNT ( * ) * - + 32 AS col1
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-3555
SELECT ALL CASE + + ( - - 13 ) WHEN + 56 THEN + SUM( ALL + 11 ) + + 18 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3555
SELECT ALL CASE + + ( - - 13 ) WHEN + 56 THEN + SUM ( ALL + 11 ) + + 18 ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3556
SELECT + COUNT( * ) + 22 AS col0
----
23

skipif mysql # not compatible
query I rowsort label-3556
SELECT + COUNT ( * ) + 22 AS col0
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-3557
SELECT - NULLIF ( + - 65, + COALESCE ( - + ( - COUNT( * ) ), - + COUNT( * ) ) ) AS col0
----
65

skipif mysql # not compatible
query I rowsort label-3557
SELECT - NULLIF ( + - 65, + COALESCE ( - + ( - COUNT ( * ) ), - + COUNT ( * ) ) ) AS col0
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-3558
SELECT ALL COUNT( ALL + 78 )
----
1

skipif mysql # not compatible
query I rowsort label-3558
SELECT ALL COUNT ( ALL + 78 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3559
SELECT + 63 + + COUNT( * ) AS col2
----
64

skipif mysql # not compatible
query I rowsort label-3559
SELECT + 63 + + COUNT ( * ) AS col2
----
64

query I rowsort
SELECT DISTINCT + 76 * 11
----
836

onlyif mysql # aggregate syntax: 
query I rowsort label-3561
SELECT ALL + MIN( - 97 ) AS col0
----
-97

skipif mysql # not compatible
query I rowsort label-3561
SELECT ALL + MIN ( - 97 ) AS col0
----
-97

query I rowsort
SELECT ALL + 58 * + 83 AS col0
----
4814

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3563
SELECT 4 DIV 88 - 84 DIV - COUNT( * ) col1
----
84

skipif mysql # not compatible
query I rowsort label-3563
SELECT 4 / 88 - 84 / - COUNT ( * ) col1
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-3564
SELECT DISTINCT 90 * - 16 * - + 33 + - MAX( + 67 )
----
47453

skipif mysql # not compatible
query I rowsort label-3564
SELECT DISTINCT 90 * - 16 * - + 33 + - MAX ( + 67 )
----
47453

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3565
SELECT + CAST( 36 AS SIGNED ) AS col1
----
36

skipif mysql # not compatible
query I rowsort label-3565
SELECT + CAST ( 36 AS INTEGER ) AS col1
----
36

query II rowsort
SELECT ( - - ( + 92 ) ) AS col0, - 31 AS col0
----
92
-31

query I rowsort
SELECT ALL 65 * ( + 2 ) + + 99
----
229

onlyif mysql # aggregate syntax: 
query I rowsort label-3568
SELECT - - CASE - 49 WHEN - 62 THEN - + 68 WHEN + - ( + 21 ) THEN COUNT( * ) END - + COUNT( * ) * - 89 * - NULLIF ( - - COUNT( * ), - + 49 - 9 * - 77 ) + - - 87 - 20 * 2
----
NULL

skipif mysql # not compatible
query I rowsort label-3568
SELECT - - CASE - 49 WHEN - 62 THEN - + 68 WHEN + - ( + 21 ) THEN COUNT ( * ) END - + COUNT ( * ) * - 89 * - NULLIF ( - - COUNT ( * ), - + 49 - 9 * - 77 ) + - - 87 - 20 * 2
----
NULL

query II rowsort
SELECT DISTINCT + - 33 AS col1, 92
----
-33
92

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-3570
SELECT - + 16 * 79 * 87 * CAST( NULL AS DECIMAL ) + - COUNT( * ), 13 AS col2
----
NULL
13

skipif mysql # not compatible
query II rowsort label-3570
SELECT - + 16 * 79 * 87 * CAST ( NULL AS REAL ) + - COUNT ( * ), 13 AS col2
----
NULL
13

onlyif mysql # aggregate syntax: 
query I rowsort label-3571
SELECT - + COUNT( * ) * - 52 col0
----
52

skipif mysql # not compatible
query I rowsort label-3571
SELECT - + COUNT ( * ) * - 52 col0
----
52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3572
SELECT DISTINCT CAST( - 97 AS SIGNED ) * + ( COUNT( * ) ) + - + 83 + - 95 - - ( 23 ) + + COALESCE ( - 67, - SUM( DISTINCT - 89 ) * + - ( - 87 ), + 12 ) DIV - 35
----
-251

skipif mysql # not compatible
query I rowsort label-3572
SELECT DISTINCT CAST ( - 97 AS INTEGER ) * + ( COUNT ( * ) ) + - + 83 + - 95 - - ( 23 ) + + COALESCE ( - 67, - SUM ( DISTINCT - 89 ) * + - ( - 87 ), + 12 ) / - 35
----
-251

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3573
SELECT - ( + + COALESCE ( NULLIF ( + + CAST( NULL AS SIGNED ), + COUNT( * ) ), - 12 ) ) AS col2
----
12

skipif mysql # not compatible
query I rowsort label-3573
SELECT - ( + + COALESCE ( NULLIF ( + + CAST ( NULL AS INTEGER ), + COUNT ( * ) ), - 12 ) ) AS col2
----
12

onlyif mysql # aggregate syntax: 
query II rowsort label-3574
SELECT DISTINCT + 91 col0, COUNT( * ) AS col1
----
91
1

skipif mysql # not compatible
query II rowsort label-3574
SELECT DISTINCT + 91 col0, COUNT ( * ) AS col1
----
91
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3575
SELECT - CASE - + 36 WHEN + - 69 / - - 12 + - ( - 77 ) THEN - + 21 - + - 68 + + COUNT( * ) * - COUNT( * ) ELSE NULL END - 44 * CAST( NULL AS SIGNED ) * CASE 72 WHEN + + 6 + COUNT( ALL 35 + + 94 ) * - 17 THEN ( + 10 ) * - 79 + + 43 ELSE - 23 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3575
SELECT - CASE - + 36 WHEN + - 69 / - - 12 + - ( - 77 ) THEN - + 21 - + - 68 + + COUNT ( * ) * - COUNT ( * ) ELSE NULL END - 44 * CAST ( NULL AS INTEGER ) * CASE 72 WHEN + + 6 + COUNT ( ALL 35 + + 94 ) * - 17 THEN ( + 10 ) * - 79 + + 43 ELSE - 23 END AS col0
----
NULL

query I rowsort
SELECT - 0 + - ( + 34 ) + 68
----
34

onlyif mysql # DIV for integer division: 
query I rowsort label-3577
SELECT - 70 DIV 60 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-3577
SELECT - 70 / 60 AS col0
----
-1

query I rowsort
SELECT ( + 12 ) AS col0
----
12

query I rowsort
SELECT - + 14 + - 90 - + 39 AS col1
----
-143

query I rowsort
SELECT ALL + 3 * + 28 AS col2
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-3581
SELECT - - COUNT( * ) + - 54 - - + ( - COUNT( * ) ) col2
----
-54

skipif mysql # not compatible
query I rowsort label-3581
SELECT - - COUNT ( * ) + - 54 - - + ( - COUNT ( * ) ) col2
----
-54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3582
SELECT + + 34 - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3582
SELECT + + 34 - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3583
SELECT - + 65 + NULLIF ( + 9, ( 86 ) * - + 43 + CAST( NULL AS SIGNED ) ) + - 18 col1, - 47 AS col0
----
-74
-47

skipif mysql # not compatible
query II rowsort label-3583
SELECT - + 65 + NULLIF ( + 9, ( 86 ) * - + 43 + CAST ( NULL AS INTEGER ) ) + - 18 col1, - 47 AS col0
----
-74
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-3584
SELECT ALL - 59 - + - 93 * COUNT( * ) * - COUNT( * ) col2
----
-152

skipif mysql # not compatible
query I rowsort label-3584
SELECT ALL - 59 - + - 93 * COUNT ( * ) * - COUNT ( * ) col2
----
-152

query I rowsort
SELECT DISTINCT COALESCE ( + - 97, + 89 * - - 95 ) AS col2
----
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3586
SELECT - - CASE COUNT( * ) WHEN CAST( NULL AS SIGNED ) THEN - CAST( NULL AS SIGNED ) + + - 22 * + COUNT( * ) END + 30 / CAST( - COUNT( * ) AS SIGNED ) + 83 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3586
SELECT - - CASE COUNT ( * ) WHEN CAST ( NULL AS INTEGER ) THEN - CAST ( NULL AS INTEGER ) + + - 22 * + COUNT ( * ) END + 30 / CAST ( - COUNT ( * ) AS INTEGER ) + 83 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3587
SELECT + 23 + 18 + 76 * - 86 + COUNT( * ) AS col2
----
-6494

skipif mysql # not compatible
query I rowsort label-3587
SELECT + 23 + 18 + 76 * - 86 + COUNT ( * ) AS col2
----
-6494

query I rowsort
SELECT ALL 34 * + 42 AS col0
----
1428

query II rowsort
SELECT DISTINCT 18 AS col2, + COALESCE ( - - 37, - - NULLIF ( - - 50, + ( + - 14 ) ), - 13 ) * - 89
----
18
-3293

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3590
SELECT - CAST( - 75 AS SIGNED )
----
75

skipif mysql # not compatible
query I rowsort label-3590
SELECT - CAST ( - 75 AS INTEGER )
----
75

query I rowsort
SELECT + 75 + 93 AS col1
----
168

query I rowsort
SELECT ALL 81 * + + 28 * 97
----
219996

onlyif mysql # DIV for integer division: 
query I rowsort label-3593
SELECT + 93 DIV + + 83 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3593
SELECT + 93 / + + 83 AS col2
----
1

query I rowsort
SELECT ALL 98 * - ( CASE + 50 WHEN - 83 THEN - CASE + 52 WHEN + 80 + - - 20 THEN 91 + 90 ELSE + 92 END * - 24 - + NULLIF ( - - 27, + 3 ) - 76 * 51 * ( CASE ( - 72 ) WHEN + 0 THEN 54 WHEN + 76 THEN NULL END / - 72 ) END ) col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3595
SELECT + 4 * COUNT( * ) * + 22 DIV - 97
----
0

skipif mysql # not compatible
query I rowsort label-3595
SELECT + 4 * COUNT ( * ) * + 22 / - 97
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3596
SELECT ALL COUNT( * ) * + - COUNT( DISTINCT ( 20 ) ) * + - 39 * + 38 * - - 1 AS col2
----
1482

skipif mysql # not compatible
query I rowsort label-3596
SELECT ALL COUNT ( * ) * + - COUNT ( DISTINCT ( 20 ) ) * + - 39 * + 38 * - - 1 AS col2
----
1482

query II rowsort
SELECT DISTINCT 86 AS col2, 81 AS col2
----
86
81

onlyif mysql # aggregate syntax: 
query I rowsort label-3598
SELECT ALL 68 + COUNT( 11 ) AS col0
----
69

skipif mysql # not compatible
query I rowsort label-3598
SELECT ALL 68 + COUNT ( 11 ) AS col0
----
69

query I rowsort
SELECT DISTINCT 97 + + - 48
----
49

query II rowsort
SELECT + 45 AS col1, + 30 * + NULLIF ( - - 42, - + 18 )
----
45
1260

onlyif mysql # DIV for integer division: 
query I rowsort label-3601
SELECT ALL - 99 DIV - - 86 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-3601
SELECT ALL - 99 / - - 86 AS col1
----
-1

query I rowsort
SELECT ALL 32 + - 87
----
-55

query II rowsort
SELECT ALL - 20 AS col1, 98 * - 47
----
-20
-4606

query I rowsort
SELECT 91 * 32
----
2912

onlyif mysql # aggregate syntax: 
query I rowsort label-3605
SELECT ALL 85 + - SUM( ALL - + 72 )
----
157

skipif mysql # not compatible
query I rowsort label-3605
SELECT ALL 85 + - SUM ( ALL - + 72 )
----
157

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3606
SELECT - 86 * 69 * - + 86 + - 57 * + COUNT( * ) - + ( + 56 ) + - + 71 + + ( + ( - - CAST( NULL AS SIGNED ) ) ) - MAX( - 17 ) + + COALESCE ( + COUNT( * ), 37 * 40 ) - 34 * 56
----
NULL

skipif mysql # not compatible
query I rowsort label-3606
SELECT - 86 * 69 * - + 86 + - 57 * + COUNT ( * ) - + ( + 56 ) + - + 71 + + ( + ( - - CAST ( NULL AS INTEGER ) ) ) - MAX ( - 17 ) + + COALESCE ( + COUNT ( * ), 37 * 40 ) - 34 * 56
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3607
SELECT DISTINCT - + MIN( DISTINCT + - 43 ) AS col0
----
43

skipif mysql # not compatible
query I rowsort label-3607
SELECT DISTINCT - + MIN ( DISTINCT + - 43 ) AS col0
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-3608
SELECT + - ( + COUNT( * ) ) * - 56 + 41 * + - 30 AS col0
----
-1174

skipif mysql # not compatible
query I rowsort label-3608
SELECT + - ( + COUNT ( * ) ) * - 56 + 41 * + - 30 AS col0
----
-1174

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-3609
SELECT DISTINCT - + CAST( 21 AS SIGNED ) AS col0, + NULLIF ( 82, CAST( - 79 AS DECIMAL ) )
----
-21
82

skipif mysql # not compatible
query II rowsort label-3609
SELECT DISTINCT - + CAST ( 21 AS INTEGER ) AS col0, + NULLIF ( 82, CAST ( - 79 AS REAL ) )
----
-21
82

onlyif mysql # aggregate syntax: 
query I rowsort label-3610
SELECT DISTINCT 6 + - + 19 - + MIN( 54 )
----
-67

skipif mysql # not compatible
query I rowsort label-3610
SELECT DISTINCT 6 + - + 19 - + MIN ( 54 )
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-3611
SELECT ALL + - 90 - - ( - 58 ) * + - COUNT( * ) col1
----
-32

skipif mysql # not compatible
query I rowsort label-3611
SELECT ALL + - 90 - - ( - 58 ) * + - COUNT ( * ) col1
----
-32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3612
SELECT + 99 AS col2, + ( - SUM( ALL - CAST( NULL AS SIGNED ) ) ) AS col1
----
99
NULL

skipif mysql # not compatible
query II rowsort label-3612
SELECT + 99 AS col2, + ( - SUM ( ALL - CAST ( NULL AS INTEGER ) ) ) AS col1
----
99
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3613
SELECT 54 * + ( + 26 ) + - COUNT( * ) AS col2, - 47 AS col1
----
1403
-47

skipif mysql # not compatible
query II rowsort label-3613
SELECT 54 * + ( + 26 ) + - COUNT ( * ) AS col2, - 47 AS col1
----
1403
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-3614
SELECT 57 * - MIN( ALL 99 )
----
-5643

skipif mysql # not compatible
query I rowsort label-3614
SELECT 57 * - MIN ( ALL 99 )
----
-5643

onlyif mysql # aggregate syntax: 
query I rowsort label-3615
SELECT ALL - + ( + 92 ) - - + ( + + NULLIF ( MAX( 93 ), + MIN( ALL + + 89 ) ) )
----
1

skipif mysql # not compatible
query I rowsort label-3615
SELECT ALL - + ( + 92 ) - - + ( + + NULLIF ( MAX ( 93 ), + MIN ( ALL + + 89 ) ) )
----
1

query II rowsort
SELECT - 0 AS col0, 42
----
0
42

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3617
SELECT + 57 * 79, 76 / + - 16 + - CAST( NULL AS DECIMAL ) col0
----
4503
NULL

skipif mysql # not compatible
query II rowsort label-3617
SELECT + 57 * 79, 76 / + - 16 + - CAST ( NULL AS REAL ) col0
----
4503
NULL

query I rowsort
SELECT ALL - 2 * - 28
----
56

query I rowsort
SELECT 21 * 24 * - + 99 AS col0
----
-49896

query II rowsort
SELECT 56 * - 99 AS col1, 10 * + 28 + 1 + - 13 * 23 AS col2
----
-5544
-18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3621
SELECT 30 - 28, + 87 * COALESCE ( - CAST( 83 AS SIGNED ), + ( + 91 ) ) - - CASE 40 WHEN ( - SUM( DISTINCT - - 41 ) ) THEN 89 * 60 * - 84 * CAST( NULL AS SIGNED ) + - AVG ( 20 + 73 ) ELSE CAST( NULL AS SIGNED ) END AS col0
----
2
NULL

skipif mysql # not compatible
query II rowsort label-3621
SELECT 30 - 28, + 87 * COALESCE ( - CAST ( 83 AS INTEGER ), + ( + 91 ) ) - - CASE 40 WHEN ( - SUM ( DISTINCT - - 41 ) ) THEN 89 * 60 * - 84 * CAST ( NULL AS INTEGER ) + - AVG ( 20 + 73 ) ELSE CAST ( NULL AS INTEGER ) END AS col0
----
2
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3622
SELECT ALL - 75 * - + 43 * - + MIN( - 14 ) AS col1
----
45150

skipif mysql # not compatible
query I rowsort label-3622
SELECT ALL - 75 * - + 43 * - + MIN ( - 14 ) AS col1
----
45150

query I rowsort
SELECT 46 * - + 30 * + 98 AS col1
----
-135240

onlyif mysql # aggregate syntax: 
query I rowsort label-3624
SELECT DISTINCT - 85 * - 54 * + COUNT( * ) AS col1
----
4590

skipif mysql # not compatible
query I rowsort label-3624
SELECT DISTINCT - 85 * - 54 * + COUNT ( * ) AS col1
----
4590

onlyif mysql # aggregate syntax: 
query I rowsort label-3625
SELECT ALL 45 + + COUNT( * ) AS col2
----
46

skipif mysql # not compatible
query I rowsort label-3625
SELECT ALL 45 + + COUNT ( * ) AS col2
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-3626
SELECT 72 + COUNT( * ) * + 0
----
72

skipif mysql # not compatible
query I rowsort label-3626
SELECT 72 + COUNT ( * ) * + 0
----
72

query I rowsort
SELECT DISTINCT - 58 + + 3 AS col0
----
-55

onlyif mysql # aggregate syntax: 
query II rowsort label-3628
SELECT 84 * + + COUNT( * ) AS col2, + 16
----
84
16

skipif mysql # not compatible
query II rowsort label-3628
SELECT 84 * + + COUNT ( * ) AS col2, + 16
----
84
16

query I rowsort
SELECT ALL - 40 + - 95 + - 60 + + 91 + - ( + 16 )
----
-120

query I rowsort
SELECT 62 * 86 * ( ( 76 ) )
----
405232

query I rowsort
SELECT DISTINCT 44 + + 46
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-3632
SELECT COALESCE ( 73, 79 ) * + - 57 + - COUNT( * ) - + + 13
----
-4175

skipif mysql # not compatible
query I rowsort label-3632
SELECT COALESCE ( 73, 79 ) * + - 57 + - COUNT ( * ) - + + 13
----
-4175

onlyif mysql # aggregate syntax: 
query II rowsort label-3633
SELECT MIN( DISTINCT - 33 ) AS col0, + 61 * + ( 12 )
----
-33
732

skipif mysql # not compatible
query II rowsort label-3633
SELECT MIN ( DISTINCT - 33 ) AS col0, + 61 * + ( 12 )
----
-33
732

onlyif mysql # aggregate syntax: 
query I rowsort label-3634
SELECT ALL COUNT( DISTINCT + 18 ) + - COUNT( - - COALESCE ( 76, 77, + 5, + - 66 / + - 59 ) ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3634
SELECT ALL COUNT ( DISTINCT + 18 ) + - COUNT ( - - COALESCE ( 76, 77, + 5, + - 66 / + - 59 ) ) AS col0
----
0

query II rowsort
SELECT ALL 46 + - 85 * + + 88 * - 89 * + 6 AS col1, - 79 * - - 72 AS col0
----
3994366
-5688

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3636
SELECT ALL + COUNT( * ) DIV - COUNT( * ) AS col1, + 82 + + COUNT( * ) AS col1
----
-1
83

skipif mysql # not compatible
query II rowsort label-3636
SELECT ALL + COUNT ( * ) / - COUNT ( * ) AS col1, + 82 + + COUNT ( * ) AS col1
----
-1
83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3637
SELECT CAST( NULL AS SIGNED ) / + 34 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3637
SELECT CAST ( NULL AS INTEGER ) / + 34 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3638
SELECT - 78 - + 21 + + CAST( + 12 AS SIGNED ) DIV - - 54
----
-99

skipif mysql # not compatible
query I rowsort label-3638
SELECT - 78 - + 21 + + CAST ( + 12 AS INTEGER ) / - - 54
----
-99

onlyif mysql # aggregate syntax: 
query II rowsort label-3639
SELECT ( ( - 17 ) ) * + + ( - COUNT( * ) ) AS col1, - COUNT( * ) + - COUNT( * )
----
17
-2

skipif mysql # not compatible
query II rowsort label-3639
SELECT ( ( - 17 ) ) * + + ( - COUNT ( * ) ) AS col1, - COUNT ( * ) + - COUNT ( * )
----
17
-2

query I rowsort
SELECT 95 * + 95 + + - ( + + 22 ) AS col0
----
9003

onlyif mysql # aggregate syntax: 
query I rowsort label-3641
SELECT + + COUNT( * ) * - - 39 + + + 29 - 62
----
6

skipif mysql # not compatible
query I rowsort label-3641
SELECT + + COUNT ( * ) * - - 39 + + + 29 - 62
----
6

onlyif mysql # aggregate syntax: 
query II rowsort label-3642
SELECT DISTINCT - 70 * COUNT( * ) AS col1, + 89
----
-70
89

skipif mysql # not compatible
query II rowsort label-3642
SELECT DISTINCT - 70 * COUNT ( * ) AS col1, + 89
----
-70
89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3643
SELECT CAST( - + 29 AS SIGNED ) - - + 99
----
70

skipif mysql # not compatible
query I rowsort label-3643
SELECT CAST ( - + 29 AS INTEGER ) - - + 99
----
70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3644
SELECT + COALESCE ( - - 17, - 97 - + 92 + 69 * + CAST( NULL AS SIGNED ) )
----
17

skipif mysql # not compatible
query I rowsort label-3644
SELECT + COALESCE ( - - 17, - 97 - + 92 + 69 * + CAST ( NULL AS INTEGER ) )
----
17

query I rowsort
SELECT ( - 60 ) + - 47 * 75
----
-3585

query I rowsort
SELECT ALL + 44 + + 30
----
74

query II rowsort
SELECT DISTINCT 19 AS col0, 84 * 81 col2
----
19
6804

query I rowsort
SELECT - 40 + + 84 AS col1
----
44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3649
SELECT DISTINCT + 17 * COUNT( * ) DIV - 7 AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-3649
SELECT DISTINCT + 17 * COUNT ( * ) / - 7 AS col1
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3650
SELECT ALL CAST( NULL AS SIGNED ) + - 70
----
NULL

skipif mysql # not compatible
query I rowsort label-3650
SELECT ALL CAST ( NULL AS INTEGER ) + - 70
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3651
SELECT - COALESCE ( - 10, - 99 + - + 83 - + COUNT( * ) * - 64 ) + 73
----
83

skipif mysql # not compatible
query I rowsort label-3651
SELECT - COALESCE ( - 10, - 99 + - + 83 - + COUNT ( * ) * - 64 ) + 73
----
83

query I rowsort
SELECT ALL + 99 + + 45 col2
----
144

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3653
SELECT - 10 + + + CAST( NULL AS SIGNED ) - 62 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3653
SELECT - 10 + + + CAST ( NULL AS INTEGER ) - 62 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3654
SELECT - NULLIF ( - 27, + 54 + + 89 + - 99 - ( - CASE + COALESCE ( - 21, - 91, - 44 ) WHEN 63 THEN + COUNT( * ) * + + 98 - CASE + + 66 WHEN - CASE - 41 WHEN - 79 THEN + NULLIF ( 77, 49 - 64 ) ELSE NULL END * - SUM( 58 * - 71 ) THEN - 20 * - CASE 99 WHEN 16 THEN 72 + 51 WHEN 69 * - COUNT( * ) + NULLIF ( + 63, 54 ) THEN 41 * 82 END WHEN 94 THEN NULL END + + MIN( 63 + 0 ) - 22 END ) + - COUNT( * ) * ( - NULLIF ( + 45, 40 * 95 ) ) * 55 )
----
27

skipif mysql # not compatible
query I rowsort label-3654
SELECT - NULLIF ( - 27, + 54 + + 89 + - 99 - ( - CASE + COALESCE ( - 21, - 91, - 44 ) WHEN 63 THEN + COUNT ( * ) * + + 98 - CASE + + 66 WHEN - CASE - 41 WHEN - 79 THEN + NULLIF ( 77, 49 - 64 ) ELSE NULL END * - SUM ( 58 * - 71 ) THEN - 20 * - CASE 99 WHEN 16 THEN 72 + 51 WHEN 69 * - COUNT ( * ) + NULLIF ( + 63, 54 ) THEN 41 * 82 END WHEN 94 THEN NULL END + + MIN ( 63 + 0 ) - 22 END ) + - COUNT ( * ) * ( - NULLIF ( + 45, 40 * 95 ) ) * 55 )
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-3655
SELECT - CASE + - 54 WHEN - - 34 * ( + COUNT( * ) ) + - 31 - - CASE - + 71 WHEN 58 THEN + 16 END + - SUM( - 36 ) + - 69 + - - COUNT( * ) + - COALESCE ( 39, - 48 ) THEN 48 + - 29 END * + 73 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3655
SELECT - CASE + - 54 WHEN - - 34 * ( + COUNT ( * ) ) + - 31 - - CASE - + 71 WHEN 58 THEN + 16 END + - SUM ( - 36 ) + - 69 + - - COUNT ( * ) + - COALESCE ( 39, - 48 ) THEN 48 + - 29 END * + 73 col0
----
NULL

query II rowsort
SELECT - 90 AS col1, 11 AS col0
----
-90
11

onlyif mysql # aggregate syntax: 
query I rowsort label-3657
SELECT ALL + 99 * + COUNT( * ) * + 44 col2
----
4356

skipif mysql # not compatible
query I rowsort label-3657
SELECT ALL + 99 * + COUNT ( * ) * + 44 col2
----
4356

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3658
SELECT DISTINCT - 27 + + COALESCE ( + - 91, NULLIF ( + 16, COUNT( * ) * + + 21 * - - 9 + 44 ) ) DIV MIN( - 89 )
----
-26

skipif mysql # not compatible
query I rowsort label-3658
SELECT DISTINCT - 27 + + COALESCE ( + - 91, NULLIF ( + 16, COUNT ( * ) * + + 21 * - - 9 + 44 ) ) / MIN ( - 89 )
----
-26

query I rowsort
SELECT DISTINCT + 54 * + 6
----
324

onlyif mysql # aggregate syntax: 
query II rowsort label-3660
SELECT - 55 AS col2, 58 * - + 42 * - + MIN( - 84 )
----
-55
-204624

skipif mysql # not compatible
query II rowsort label-3660
SELECT - 55 AS col2, 58 * - + 42 * - + MIN ( - 84 )
----
-55
-204624

query I rowsort
SELECT ALL + 37 * + 86
----
3182

onlyif mysql # aggregate syntax: 
query I rowsort label-3662
SELECT DISTINCT - 82 - - + NULLIF ( + - 80, - 94 * CASE + NULLIF ( - AVG ( DISTINCT + + 72 ), + - 41 ) WHEN - 89 * + 66 THEN NULL ELSE - + COUNT( * ) + 27 END * - 4 + + 1 + - COUNT( * ) ) - 79 * 76 * - 89 * 48
----
25648926

skipif mysql # not compatible
query I rowsort label-3662
SELECT DISTINCT - 82 - - + NULLIF ( + - 80, - 94 * CASE + NULLIF ( - AVG ( DISTINCT + + 72 ), + - 41 ) WHEN - 89 * + 66 THEN NULL ELSE - + COUNT ( * ) + 27 END * - 4 + + 1 + - COUNT ( * ) ) - 79 * 76 * - 89 * 48
----
25648926

query I rowsort
SELECT - 9 + + 94
----
85

onlyif mysql # DIV for integer division: 
query I rowsort label-3664
SELECT DISTINCT + 65 DIV + 56 + + - 39 + + 60
----
22

skipif mysql # not compatible
query I rowsort label-3664
SELECT DISTINCT + 65 / + 56 + + - 39 + + 60
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-3665
SELECT - + COUNT( * ) + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-3665
SELECT - + COUNT ( * ) + COUNT ( * )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3666
SELECT - CASE + COUNT( * ) WHEN + 26 THEN NULL ELSE 85 END * + + COUNT( * ) col2
----
-85

skipif mysql # not compatible
query I rowsort label-3666
SELECT - CASE + COUNT ( * ) WHEN + 26 THEN NULL ELSE 85 END * + + COUNT ( * ) col2
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-3667
SELECT + 50 * + 42 + + 5 + + - SUM( DISTINCT - 46 ) * - + MIN( ALL - 89 ) AS col0
----
6199

skipif mysql # not compatible
query I rowsort label-3667
SELECT + 50 * + 42 + + 5 + + - SUM ( DISTINCT - 46 ) * - + MIN ( ALL - 89 ) AS col0
----
6199

query I rowsort
SELECT DISTINCT + 58 * + ( 77 ) - - 61
----
4527

query I rowsort
SELECT DISTINCT + + 93 * + 32 * - 27 * 51 + - 59 - + - 63 * - 79 AS col1
----
-4102988

query I rowsort
SELECT + - 77 * + - 77 col2
----
5929

query I rowsort
SELECT - 26 * + + 39 + 68 col1
----
-946

query I rowsort
SELECT + + 2 * + 66 col1
----
132

query I rowsort
SELECT + ( + 7 ) + 27
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-3674
SELECT - MIN( DISTINCT - 83 ) AS col1
----
83

skipif mysql # not compatible
query I rowsort label-3674
SELECT - MIN ( DISTINCT - 83 ) AS col1
----
83

onlyif mysql # DIV for integer division: 
query I rowsort label-3675
SELECT DISTINCT + 89 DIV 25 AS col0
----
3

skipif mysql # not compatible
query I rowsort label-3675
SELECT DISTINCT + 89 / 25 AS col0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3676
SELECT ALL + 7 * - - COALESCE ( - 31, - CASE - CASE + + COALESCE ( + 35, + 41 ) WHEN + 9 + + - ( ( + COUNT( * ) ) ) THEN - 0 ELSE NULL END WHEN - + 65 THEN + 69 WHEN - + 84 THEN 89 END, - + 60 * - 23 ) - 83 + 18 * + 16 AS col1
----
-12

skipif mysql # not compatible
query I rowsort label-3676
SELECT ALL + 7 * - - COALESCE ( - 31, - CASE - CASE + + COALESCE ( + 35, + 41 ) WHEN + 9 + + - ( ( + COUNT ( * ) ) ) THEN - 0 ELSE NULL END WHEN - + 65 THEN + 69 WHEN - + 84 THEN 89 END, - + 60 * - 23 ) - 83 + 18 * + 16 AS col1
----
-12

onlyif mysql # aggregate syntax: 
query II rowsort label-3677
SELECT SUM( DISTINCT - - 21 ) col1, 9 + 79 AS col1
----
21
88

skipif mysql # not compatible
query II rowsort label-3677
SELECT SUM ( DISTINCT - - 21 ) col1, 9 + 79 AS col1
----
21
88

query I rowsort
SELECT DISTINCT 31 * + 90 + 52
----
2842

onlyif mysql # aggregate syntax: 
query I rowsort label-3679
SELECT DISTINCT + MIN( 29 ) * + 91 + - NULLIF ( - - 12, - + 26 ) + - 93 + 62 * - 39
----
116

skipif mysql # not compatible
query I rowsort label-3679
SELECT DISTINCT + MIN ( 29 ) * + 91 + - NULLIF ( - - 12, - + 26 ) + - 93 + 62 * - 39
----
116

query I rowsort
SELECT ALL + 13 + 93
----
106

query I rowsort
SELECT + ( - + 56 ) * - 7 + 57 col1
----
449

query I rowsort
SELECT ALL 16 + - ( + 86 )
----
-70

query I rowsort
SELECT - ( 1 )
----
-1

query I rowsort
SELECT ALL 68 + + + ( - 16 ) + + 51 * + 28 AS col1
----
1480

query I rowsort
SELECT + ( 32 ) - - 15 - 50 AS col0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3686
SELECT - 80 * CASE + + 34 WHEN - 0 THEN NULL WHEN - COUNT( * ) * - COUNT( DISTINCT ( - 76 ) ) THEN + 78 - + 45 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3686
SELECT - 80 * CASE + + 34 WHEN - 0 THEN NULL WHEN - COUNT ( * ) * - COUNT ( DISTINCT ( - 76 ) ) THEN + 78 - + 45 ELSE NULL END AS col2
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3687
SELECT + AVG ( ALL - NULLIF ( + + CAST( NULL AS DECIMAL ), - ( - + 6 ) + - 53 ) ) - 38, 49 - + 71 + + - 13 AS col0
----
NULL
-35

skipif mysql # not compatible
query II rowsort label-3687
SELECT + AVG ( ALL - NULLIF ( + + CAST ( NULL AS REAL ), - ( - + 6 ) + - 53 ) ) - 38, 49 - + 71 + + - 13 AS col0
----
NULL
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-3688
SELECT ALL NULLIF ( + 13, SUM( - 94 ) ) AS col0
----
13

skipif mysql # not compatible
query I rowsort label-3688
SELECT ALL NULLIF ( + 13, SUM ( - 94 ) ) AS col0
----
13

query I rowsort
SELECT DISTINCT 67 - + - 50 * - - 73
----
3717

onlyif mysql # aggregate syntax: 
query I rowsort label-3690
SELECT ALL ( + + CASE + + COUNT( * ) WHEN - - 43 THEN + + AVG ( + 15 ) END )
----
NULL

skipif mysql # not compatible
query I rowsort label-3690
SELECT ALL ( + + CASE + + COUNT ( * ) WHEN - - 43 THEN + + AVG ( + 15 ) END )
----
NULL

query I rowsort
SELECT - 96 - - 17 + + ( - 20 ) AS col1
----
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-3692
SELECT ALL - ( 41 ) DIV + 61
----
0

skipif mysql # not compatible
query I rowsort label-3692
SELECT ALL - ( 41 ) / + 61
----
0

query I rowsort
SELECT + 38 * CASE + 33 WHEN + NULLIF ( - 19, - + 42 - + 3 ) + - 78 + AVG ( DISTINCT 44 ) * - + ( - 94 ) + + 90 * 37 * - - 52 * - 34 + - 75 THEN 30 + + 53 END * 46
----
NULL

query II rowsort
SELECT ALL + ( 52 ) * - 32 - - - 0 * + 95, - 84 col1
----
-1664
-84

query I rowsort
SELECT - ( + 64 ) AS col0
----
-64

query I rowsort
SELECT - - 72 + - 18
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-3697
SELECT ALL + COUNT( ALL - 61 ) * - 67 + + + 75 AS col2
----
8

skipif mysql # not compatible
query I rowsort label-3697
SELECT ALL + COUNT ( ALL - 61 ) * - 67 + + + 75 AS col2
----
8

query II rowsort
SELECT ALL + NULLIF ( - 34, + 86 * NULLIF ( + 25, + 94 + - 73 ) / 24 + - + 60 ) AS col2, 32
----
-34
32

query I rowsort
SELECT DISTINCT + - 58 AS col1
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-3700
SELECT - - COALESCE ( - 70, + COUNT( * ), + 37 ) - + + 61
----
-131

skipif mysql # not compatible
query I rowsort label-3700
SELECT - - COALESCE ( - 70, + COUNT ( * ), + 37 ) - + + 61
----
-131

query I rowsort
SELECT + + 65 * - 6
----
-390

onlyif mysql # DIV for integer division: 
query I rowsort label-3702
SELECT ALL + 53 DIV + 84 - - 36 + + + 18 + 36
----
90

skipif mysql # not compatible
query I rowsort label-3702
SELECT ALL + 53 / + 84 - - 36 + + + 18 + 36
----
90

query I rowsort
SELECT + ( 93 ) AS col2
----
93

query I rowsort
SELECT - - 88 * + - 11 + + 3
----
-965

onlyif mysql # DIV for integer division: 
query I rowsort label-3705
SELECT + 17 DIV - 50 * + 68
----
0

skipif mysql # not compatible
query I rowsort label-3705
SELECT + 17 / - 50 * + 68
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3706
SELECT ALL - COUNT( * ) + + 54
----
53

skipif mysql # not compatible
query I rowsort label-3706
SELECT ALL - COUNT ( * ) + + 54
----
53

query I rowsort
SELECT ALL 28 + + 43 AS col1
----
71

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3708
SELECT MAX( 4 ) - + 17 DIV - + 48 AS col2
----
4

skipif mysql # not compatible
query I rowsort label-3708
SELECT MAX ( 4 ) - + 17 / - + 48 AS col2
----
4

query I rowsort
SELECT ALL + 72 * + 90
----
6480

onlyif mysql # aggregate syntax: 
query II rowsort label-3710
SELECT COUNT( - 12 ) + - 14 AS col1, 58
----
-13
58

skipif mysql # not compatible
query II rowsort label-3710
SELECT COUNT ( - 12 ) + - 14 AS col1, 58
----
-13
58

onlyif mysql # aggregate syntax: 
query II rowsort label-3711
SELECT ALL 69 + + 38 * + 81, + SUM( DISTINCT + 88 ) + - ( - - 58 ) AS col2
----
3147
30

skipif mysql # not compatible
query II rowsort label-3711
SELECT ALL 69 + + 38 * + 81, + SUM ( DISTINCT + 88 ) + - ( - - 58 ) AS col2
----
3147
30

query I rowsort
SELECT 0 * - 6 * + 26
----
0

query I rowsort
SELECT 84 + - - 8
----
92

query I rowsort
SELECT DISTINCT 61 * - 66 * 9 AS col2
----
-36234

onlyif mysql # aggregate syntax: 
query I rowsort label-3715
SELECT MAX( DISTINCT + + 65 ) * + + 70 AS col2
----
4550

skipif mysql # not compatible
query I rowsort label-3715
SELECT MAX ( DISTINCT + + 65 ) * + + 70 AS col2
----
4550

query I rowsort
SELECT - 58 + - 74 * - 20 * 21 AS col0
----
31022

onlyif mysql # aggregate syntax: 
query I rowsort label-3717
SELECT 80 * - 88 + + + COUNT( * )
----
-7039

skipif mysql # not compatible
query I rowsort label-3717
SELECT 80 * - 88 + + + COUNT ( * )
----
-7039

query I rowsort
SELECT ALL + 24 + - 50 AS col1
----
-26

onlyif mysql # aggregate syntax: 
query II rowsort label-3719
SELECT COUNT( 38 ) + 35 AS col0, 4 AS col0
----
36
4

skipif mysql # not compatible
query II rowsort label-3719
SELECT COUNT ( 38 ) + 35 AS col0, 4 AS col0
----
36
4

onlyif mysql # DIV for integer division: 
query I rowsort label-3720
SELECT ALL + 55 DIV + 78
----
0

skipif mysql # not compatible
query I rowsort label-3720
SELECT ALL + 55 / + 78
----
0

query I rowsort
SELECT + 8 + - 60 - + 15 AS col2
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-3722
SELECT COUNT( * ) * + 6 col1
----
6

skipif mysql # not compatible
query I rowsort label-3722
SELECT COUNT ( * ) * + 6 col1
----
6

query I rowsort
SELECT ( - CASE COALESCE ( - + 75, + + NULLIF ( - + 37, 55 + - 51 + - ( 25 ) + + 83 * - - 53 ) + - 40 * - 69 - + 22 * - ( + 58 ), - - 53 ) WHEN 93 THEN - - 26 + + ( + AVG ( ALL + 83 ) ) * - 39 WHEN + 61 THEN NULL END ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3724
SELECT 78 * + + COALESCE ( COUNT( * ), 61 ) - + 79 * - 90 * + ( 28 ) * + 99 + - MAX( DISTINCT 3 ) + 28
----
19709023

skipif mysql # not compatible
query I rowsort label-3724
SELECT 78 * + + COALESCE ( COUNT ( * ), 61 ) - + 79 * - 90 * + ( 28 ) * + 99 + - MAX ( DISTINCT 3 ) + 28
----
19709023

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3725
SELECT + CAST( + 33 AS SIGNED )
----
33

skipif mysql # not compatible
query I rowsort label-3725
SELECT + CAST ( + 33 AS INTEGER )
----
33

query I rowsort
SELECT 29 + - + 3
----
26

query I rowsort
SELECT DISTINCT - 81 + - 35 + ( - 24 )
----
-140

query I rowsort
SELECT ALL - 12 + + 53 AS col1
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-3729
SELECT 76 * - + 92 * - 89 + + 37 * - COUNT( * )
----
622251

skipif mysql # not compatible
query I rowsort label-3729
SELECT 76 * - + 92 * - 89 + + 37 * - COUNT ( * )
----
622251

query I rowsort
SELECT 55 * + + 98 AS col1
----
5390

query I rowsort
SELECT 91 * + 11 * - 56
----
-56056

query I rowsort
SELECT ALL - ( - 81 ) AS col0
----
81

query II rowsort
SELECT 28, 5 AS col2
----
28
5

onlyif mysql # aggregate syntax: 
query III rowsort label-3734
SELECT + 83 AS col0, 40 AS col2, ( - 56 ) + + + COUNT( * ) + + + 68
----
83
40
13

skipif mysql # not compatible
query III rowsort label-3734
SELECT + 83 AS col0, 40 AS col2, ( - 56 ) + + + COUNT ( * ) + + + 68
----
83
40
13

onlyif mysql # aggregate syntax: 
query I rowsort label-3735
SELECT DISTINCT - 95 - + MIN( 92 ) col0
----
-187

skipif mysql # not compatible
query I rowsort label-3735
SELECT DISTINCT - 95 - + MIN ( 92 ) col0
----
-187

onlyif mysql # DIV for integer division: 
query I rowsort label-3736
SELECT 0 DIV 15 * 98
----
0

skipif mysql # not compatible
query I rowsort label-3736
SELECT 0 / 15 * 98
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3737
SELECT DISTINCT + COUNT( * ) * 84
----
84

skipif mysql # not compatible
query I rowsort label-3737
SELECT DISTINCT + COUNT ( * ) * 84
----
84

query II rowsort
SELECT 28 AS col2, + 82
----
28
82

query I rowsort
SELECT ( - 23 ) + + 98
----
75

onlyif mysql # aggregate syntax: 
query II rowsort label-3740
SELECT DISTINCT MIN( + 77 ), - 45 AS col1
----
77
-45

skipif mysql # not compatible
query II rowsort label-3740
SELECT DISTINCT MIN ( + 77 ), - 45 AS col1
----
77
-45

query II rowsort
SELECT - 52 AS col0, 42
----
-52
42

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3742
SELECT COUNT( * ) DIV + 73 * + NULLIF ( ( + - 54 ), 9 ) * MAX( + 67 ) + 7 AS col0
----
7

skipif mysql # not compatible
query I rowsort label-3742
SELECT COUNT ( * ) / + 73 * + NULLIF ( ( + - 54 ), 9 ) * MAX ( + 67 ) + 7 AS col0
----
7

query I rowsort
SELECT 99 - 61
----
38

query II rowsort
SELECT ALL + 59 AS col2, 79
----
59
79

query I rowsort
SELECT DISTINCT - NULLIF ( 9, - 59 )
----
-9

query I rowsort
SELECT CASE - - COALESCE ( + 47, 94 + + 0 ) WHEN + - 82 + 0 THEN NULL ELSE 58 END
----
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3747
SELECT DISTINCT + COUNT( * ) + - + 20 + 26 - - 33 + 97 DIV + - 59 + - 52 col1
----
-13

skipif mysql # not compatible
query I rowsort label-3747
SELECT DISTINCT + COUNT ( * ) + - + 20 + 26 - - 33 + 97 / + - 59 + - 52 col1
----
-13

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3748
SELECT - 79 AS col0, + CASE - - 28 WHEN + 13 THEN - + 3 - + CAST( NULL AS SIGNED ) ELSE NULL END col0
----
-79
NULL

skipif mysql # not compatible
query II rowsort label-3748
SELECT - 79 AS col0, + CASE - - 28 WHEN + 13 THEN - + 3 - + CAST ( NULL AS INTEGER ) ELSE NULL END col0
----
-79
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3749
SELECT - COUNT( * ), 77 + - + 3 + - 87 * + COUNT( * ) * + - 12 * - ( 49 ) AS col1
----
-1
-51082

skipif mysql # not compatible
query II rowsort label-3749
SELECT - COUNT ( * ), 77 + - + 3 + - 87 * + COUNT ( * ) * + - 12 * - ( 49 ) AS col1
----
-1
-51082

query I rowsort
SELECT DISTINCT 57 + + + 41 + + 31
----
129

onlyif mysql # aggregate syntax: 
query I rowsort label-3751
SELECT + ( + COUNT( * ) ) - + 32
----
-31

skipif mysql # not compatible
query I rowsort label-3751
SELECT + ( + COUNT ( * ) ) - + 32
----
-31

onlyif mysql # aggregate syntax: 
query II rowsort label-3752
SELECT 96, - 97 + - - COUNT( * ) + + 89 AS col1
----
96
-7

skipif mysql # not compatible
query II rowsort label-3752
SELECT 96, - 97 + - - COUNT ( * ) + + 89 AS col1
----
96
-7

query I rowsort
SELECT - 5 * - - 54 * - 89
----
24030

query I rowsort
SELECT ALL 75 + - 81 + - - 74 AS col1
----
68

query I rowsort
SELECT ALL - ( + 81 ) + + + 61 AS col0
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-3756
SELECT + 63 + - 3 + + - COUNT( * ) * + + 51 col1
----
9

skipif mysql # not compatible
query I rowsort label-3756
SELECT + 63 + - 3 + + - COUNT ( * ) * + + 51 col1
----
9

query II rowsort
SELECT + + 10, 68 AS col0
----
10
68

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3758
SELECT + MAX( + 3 ) DIV + 29 * + 28 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3758
SELECT + MAX ( + 3 ) / + 29 * + 28 AS col0
----
0

query I rowsort
SELECT ALL + 23 * + 38 + + + 60 + - 12 AS col1
----
922

query I rowsort
SELECT ALL 36 * - + 59 * 99 * + 50 + + - 53
----
-10513853

onlyif mysql # aggregate syntax: 
query I rowsort label-3761
SELECT + + NULLIF ( + 3, - COUNT( * ) )
----
3

skipif mysql # not compatible
query I rowsort label-3761
SELECT + + NULLIF ( + 3, - COUNT ( * ) )
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3762
SELECT ALL + + CAST( - + COUNT( * ) AS SIGNED )
----
-1

skipif mysql # not compatible
query I rowsort label-3762
SELECT ALL + + CAST ( - + COUNT ( * ) AS INTEGER )
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3763
SELECT DISTINCT 87 DIV - COUNT( DISTINCT + 76 ) + - - ( + 20 ) * ( ( + - 17 ) )
----
-427

skipif mysql # not compatible
query I rowsort label-3763
SELECT DISTINCT 87 / - COUNT ( DISTINCT + 76 ) + - - ( + 20 ) * ( ( + - 17 ) )
----
-427

query I rowsort
SELECT COALESCE ( - 27, 91 )
----
-27

query I rowsort
SELECT ALL 93 * - - 42 col1
----
3906

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3766
SELECT + MIN( + ( + 94 ) ) - - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3766
SELECT + MIN ( + ( + 94 ) ) - - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT - ( 10 ) * 57 * + 36 col1
----
-20520

query I rowsort
SELECT NULLIF ( - 1, 41 ) AS col1
----
-1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3769
SELECT CASE + + CAST( NULL AS DECIMAL ) WHEN 7 THEN + + 15 + - + 37 + + 9 ELSE COUNT( * ) + + 12 END * - 26 * CAST( NULL AS DECIMAL ) + + 81 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3769
SELECT CASE + + CAST ( NULL AS REAL ) WHEN 7 THEN + + 15 + - + 37 + + 9 ELSE COUNT ( * ) + + 12 END * - 26 * CAST ( NULL AS REAL ) + + 81 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3770
SELECT ALL - COUNT( * ) * + 17
----
-17

skipif mysql # not compatible
query I rowsort label-3770
SELECT ALL - COUNT ( * ) * + 17
----
-17

query I rowsort
SELECT ALL + NULLIF ( + - 26, + - 18 )
----
-26

query I rowsort
SELECT ALL 51 * + 58
----
2958

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3773
SELECT - 21 - - 3 - + + SUM( DISTINCT - - 39 ) DIV 98 * + 55 DIV - - ( - ( - 54 ) ) AS col0
----
-18

skipif mysql # not compatible
query I rowsort label-3773
SELECT - 21 - - 3 - + + SUM ( DISTINCT - - 39 ) / 98 * + 55 / - - ( - ( - 54 ) ) AS col0
----
-18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3774
SELECT ALL + CAST( + + SUM( + - 39 ) AS SIGNED ) AS col1, 46
----
-39
46

skipif mysql # not compatible
query II rowsort label-3774
SELECT ALL + CAST ( + + SUM ( + - 39 ) AS INTEGER ) AS col1, 46
----
-39
46

onlyif mysql # aggregate syntax: 
query I rowsort label-3775
SELECT + 91 + - - COUNT( * ) * + - 86 AS col1
----
5

skipif mysql # not compatible
query I rowsort label-3775
SELECT + 91 + - - COUNT ( * ) * + - 86 AS col1
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-3776
SELECT + COUNT( * ) * 48 * 4 AS col0
----
192

skipif mysql # not compatible
query I rowsort label-3776
SELECT + COUNT ( * ) * 48 * 4 AS col0
----
192

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3777
SELECT - 15 * - 22 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3777
SELECT - 15 * - 22 * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3778
SELECT - 73 + 73 AS col0, - SUM( + - 62 ) AS col0
----
0
62

skipif mysql # not compatible
query II rowsort label-3778
SELECT - 73 + 73 AS col0, - SUM ( + - 62 ) AS col0
----
0
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3779
SELECT ALL CASE MAX( ALL 48 ) WHEN COUNT( * ) THEN NULL WHEN + 34 - + + 46 + ( + ( + ( 56 ) ) ) THEN - 52 ELSE - + 79 + + + CAST( + + 62 AS DECIMAL ) - + 39 * - CAST( NULL AS SIGNED ) + 78 * CAST( NULL AS DECIMAL ) * 99 + + - 66 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3779
SELECT ALL CASE MAX ( ALL 48 ) WHEN COUNT ( * ) THEN NULL WHEN + 34 - + + 46 + ( + ( + ( 56 ) ) ) THEN - 52 ELSE - + 79 + + + CAST ( + + 62 AS REAL ) - + 39 * - CAST ( NULL AS INTEGER ) + 78 * CAST ( NULL AS REAL ) * 99 + + - 66 END
----
NULL

query I rowsort
SELECT - 50 * - - 53 * - 17
----
45050

onlyif mysql # aggregate syntax: 
query I rowsort label-3781
SELECT - 79 * MIN( + + 41 ) AS col0
----
-3239

skipif mysql # not compatible
query I rowsort label-3781
SELECT - 79 * MIN ( + + 41 ) AS col0
----
-3239

onlyif mysql # aggregate syntax: 
query II rowsort label-3782
SELECT DISTINCT + COUNT( - 49 ) + - - 47 * + 74 + + 81, 21 * 43 AS col2
----
3560
903

skipif mysql # not compatible
query II rowsort label-3782
SELECT DISTINCT + COUNT ( - 49 ) + - - 47 * + 74 + + 81, 21 * 43 AS col2
----
3560
903

onlyif mysql # aggregate syntax: 
query I rowsort label-3783
SELECT - - ( - + COUNT( * ) ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-3783
SELECT - - ( - + COUNT ( * ) ) col2
----
-1

query I rowsort
SELECT - 44 + 64 AS col1
----
20

query I rowsort
SELECT ALL + 99 * 32 * - 92 AS col1
----
-291456

query I rowsort
SELECT ALL + 88 * + + ( - 79 ) AS col1
----
-6952

onlyif mysql # aggregate syntax: 
query I rowsort label-3787
SELECT - + 19 + + 98 + - COUNT( * ) - - 47 * + + 89 AS col2
----
4261

skipif mysql # not compatible
query I rowsort label-3787
SELECT - + 19 + + 98 + - COUNT ( * ) - - 47 * + + 89 AS col2
----
4261

onlyif mysql # aggregate syntax: 
query I rowsort label-3788
SELECT + - NULLIF ( + + 60, - 50 - - MIN( 26 ) + MIN( - - CASE 85 WHEN - 23 + 70 THEN 72 ELSE 24 END ) ) + - - 74
----
14

skipif mysql # not compatible
query I rowsort label-3788
SELECT + - NULLIF ( + + 60, - 50 - - MIN ( 26 ) + MIN ( - - CASE 85 WHEN - 23 + 70 THEN 72 ELSE 24 END ) ) + - - 74
----
14

query I rowsort
SELECT + 94 + 93 AS col0
----
187

onlyif mysql # aggregate syntax: 
query I rowsort label-3790
SELECT ALL - - COUNT( * ) + + + 85 * + 28 * - 26 + - + 45
----
-61924

skipif mysql # not compatible
query I rowsort label-3790
SELECT ALL - - COUNT ( * ) + + + 85 * + 28 * - 26 + - + 45
----
-61924

query I rowsort
SELECT - 47 * - 18 - + ( 62 )
----
784

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3792
SELECT ALL + 72 / + CAST( - + COUNT( * ) AS SIGNED ) + - - CAST( NULL AS SIGNED ) + - - 94 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3792
SELECT ALL + 72 / + CAST ( - + COUNT ( * ) AS INTEGER ) + - - CAST ( NULL AS INTEGER ) + - - 94 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3793
SELECT ALL + 61 + MIN( + + 67 ) * - - 60 + + COALESCE ( - 93, 72 - + 38 + 55 )
----
3988

skipif mysql # not compatible
query I rowsort label-3793
SELECT ALL + 61 + MIN ( + + 67 ) * - - 60 + + COALESCE ( - 93, 72 - + 38 + 55 )
----
3988

query I rowsort
SELECT ALL - 3 + + - 57 - + 74 AS col1
----
-134

query II rowsort
SELECT ALL + 23 + - 71 AS col1, 50
----
-48
50

query II rowsort
SELECT + 92 + 66 col1, - 73 + - 13 AS col2
----
158
-86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3797
SELECT + - 43 * COUNT( * ) AS col1, CAST( NULL AS SIGNED )
----
-43
NULL

skipif mysql # not compatible
query II rowsort label-3797
SELECT + - 43 * COUNT ( * ) AS col1, CAST ( NULL AS INTEGER )
----
-43
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3798
SELECT + CASE + 41 WHEN + 60 THEN 37 * + + 44 + + + SUM( ALL 66 ) + + 1 WHEN + 71 THEN NULL ELSE NULL END * - SUM( - 41 ) + - 50 + - 29 * 36 + ( - CAST( NULL AS SIGNED ) ) + + + NULLIF ( + - 24, - 38 + - + 80 - - 34 * CAST( - - ( CAST( - 83 AS SIGNED ) ) AS DECIMAL ) ) / - ( 10 * - MAX( CAST( + 78 AS SIGNED ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3798
SELECT + CASE + 41 WHEN + 60 THEN 37 * + + 44 + + + SUM ( ALL 66 ) + + 1 WHEN + 71 THEN NULL ELSE NULL END * - SUM ( - 41 ) + - 50 + - 29 * 36 + ( - CAST ( NULL AS INTEGER ) ) + + + NULLIF ( + - 24, - 38 + - + 80 - - 34 * CAST ( - - ( CAST ( - 83 AS INTEGER ) ) AS REAL ) ) / - ( 10 * - MAX ( CAST ( + 78 AS INTEGER ) ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3799
SELECT + MIN( ALL + + 66 ) + - 29 + CASE - - 68 WHEN CASE NULLIF ( 82, + - 81 * NULLIF ( + 10, + - 75 * CASE + - 18 WHEN - 99 THEN NULL WHEN - 78 * + CASE WHEN ( COUNT( * ) ) > 36 THEN NULL WHEN CASE 82 WHEN + 5 THEN - COALESCE ( 49, 14 * 61 + 61 * ( COUNT( * ) - 46 ) ) WHEN ( - COUNT( 73 ) ) / - ( - CASE ( - 31 ) WHEN 42 + 2 THEN NULL ELSE - ( 20 ) + 55 END + 50 * + 12 ) THEN NULL END BETWEEN COUNT( * ) * 29 AND 85 THEN ( COUNT( + 82 ) ) END THEN 70 WHEN COALESCE ( 83, - 59 / + 70, 84, 36 / + 65 ) + 48 THEN NULL WHEN 81 THEN NULL ELSE NULL END + + 57 - + SUM( - COALESCE ( ( + 67 ), + 15, ( 97 ) / 51 + + 55 * - 16 ) ) ) * 37 ) WHEN ( 77 ) THEN 44 END * 79 THEN 96 END + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3799
SELECT + MIN ( ALL + + 66 ) + - 29 + CASE - - 68 WHEN CASE NULLIF ( 82, + - 81 * NULLIF ( + 10, + - 75 * CASE + - 18 WHEN - 99 THEN NULL WHEN - 78 * + CASE WHEN ( COUNT ( * ) ) > 36 THEN NULL WHEN CASE 82 WHEN + 5 THEN - COALESCE ( 49, 14 * 61 + 61 * ( COUNT ( * ) - 46 ) ) WHEN ( - COUNT ( 73 ) ) / - ( - CASE ( - 31 ) WHEN 42 + 2 THEN NULL ELSE - ( 20 ) + 55 END + 50 * + 12 ) THEN NULL END BETWEEN COUNT ( * ) * 29 AND 85 THEN ( COUNT ( + 82 ) ) END THEN 70 WHEN COALESCE ( 83, - 59 / + 70, 84, 36 / + 65 ) + 48 THEN NULL WHEN 81 THEN NULL ELSE NULL END + + 57 - + SUM ( - COALESCE ( ( + 67 ), + 15, ( 97 ) / 51 + + 55 * - 16 ) ) ) * 37 ) WHEN ( 77 ) THEN 44 END * 79 THEN 96 END + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT ( + - 64 ) col1
----
-64

query I rowsort
SELECT DISTINCT 16 * + - 58
----
-928

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3802
SELECT + 14 * NULLIF ( - 94, + - COUNT( * ) * 0 + 23 ) + 21 * 95 AS col1, - 12 + - NULLIF ( + + CAST( - + ( - - ( - + 7 ) ) AS SIGNED ), - 99 * + NULLIF ( + ( + - 18 ), - 60 / - COUNT( * ) + + 91 ) ) - + + 90 + + 18 * COUNT( * )
----
679
-91

skipif mysql # not compatible
query II rowsort label-3802
SELECT + 14 * NULLIF ( - 94, + - COUNT ( * ) * 0 + 23 ) + 21 * 95 AS col1, - 12 + - NULLIF ( + + CAST ( - + ( - - ( - + 7 ) ) AS INTEGER ), - 99 * + NULLIF ( + ( + - 18 ), - 60 / - COUNT ( * ) + + 91 ) ) - + + 90 + + 18 * COUNT ( * )
----
679
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-3803
SELECT 50 / 72 + + + CASE WHEN NOT NULL NOT BETWEEN NULL AND - COUNT( * ) THEN 47 * 84 WHEN NOT - 18 + - - 46 + - MAX( DISTINCT - - 96 ) + - - 59 BETWEEN + - 0 AND NULL THEN NULL ELSE NULL END * - 10 + 43 / + 29
----
NULL

skipif mysql # not compatible
query I rowsort label-3803
SELECT 50 / 72 + + + CASE WHEN NOT NULL NOT BETWEEN NULL AND - COUNT ( * ) THEN 47 * 84 WHEN NOT - 18 + - - 46 + - MAX ( DISTINCT - - 96 ) + - - 59 BETWEEN + - 0 AND NULL THEN NULL ELSE NULL END * - 10 + 43 / + 29
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3804
SELECT ALL COUNT( * ) DIV - 44
----
0

skipif mysql # not compatible
query I rowsort label-3804
SELECT ALL COUNT ( * ) / - 44
----
0

query I rowsort
SELECT + ( - - 81 ) AS col2
----
81

query I rowsort
SELECT + ( + 77 ) AS col0
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-3807
SELECT NULLIF ( CASE - 85 WHEN - MIN( DISTINCT + ( 77 ) ) THEN NULL WHEN 46 THEN NULL ELSE - 69 END, COUNT( * ) + - 17 ) AS col1
----
-69

skipif mysql # not compatible
query I rowsort label-3807
SELECT NULLIF ( CASE - 85 WHEN - MIN ( DISTINCT + ( 77 ) ) THEN NULL WHEN 46 THEN NULL ELSE - 69 END, COUNT ( * ) + - 17 ) AS col1
----
-69

query I rowsort
SELECT + 62 * + + 9
----
558

query I rowsort
SELECT DISTINCT 2 * + CASE + 4 WHEN 37 THEN 94 ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3810
SELECT ALL - 80 * + - 86 + + 29 AS col1, - 22 * COUNT( * ) + + 95 AS col1
----
6909
73

skipif mysql # not compatible
query II rowsort label-3810
SELECT ALL - 80 * + - 86 + + 29 AS col1, - 22 * COUNT ( * ) + + 95 AS col1
----
6909
73

onlyif mysql # aggregate syntax: 
query I rowsort label-3811
SELECT DISTINCT ( - + COUNT( * ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-3811
SELECT DISTINCT ( - + COUNT ( * ) ) AS col2
----
-1

query I rowsort
SELECT - 40 * 17 * 31 * ( + + 37 ) + - 48
----
-780008

onlyif mysql # aggregate syntax: 
query I rowsort label-3813
SELECT DISTINCT - 51 * - + 30 - + 95 + 92 * - 72 + + 14 * + + COUNT( * ) col2
----
-5175

skipif mysql # not compatible
query I rowsort label-3813
SELECT DISTINCT - 51 * - + 30 - + 95 + 92 * - 72 + + 14 * + + COUNT ( * ) col2
----
-5175

onlyif mysql # aggregate syntax: 
query I rowsort label-3814
SELECT - COUNT( DISTINCT - + 24 ) * - + 17 + - - 87 AS col0
----
104

skipif mysql # not compatible
query I rowsort label-3814
SELECT - COUNT ( DISTINCT - + 24 ) * - + 17 + - - 87 AS col0
----
104

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3815
SELECT + COUNT( * ) * + SUM( - 32 ) * - 23 DIV + COUNT( * ) + 70 * + + 69
----
5566

skipif mysql # not compatible
query I rowsort label-3815
SELECT + COUNT ( * ) * + SUM ( - 32 ) * - 23 / + COUNT ( * ) + 70 * + + 69
----
5566

query I rowsort
SELECT 4 - - + 53 AS col2
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-3817
SELECT DISTINCT + - COUNT( * ) * - 51
----
51

skipif mysql # not compatible
query I rowsort label-3817
SELECT DISTINCT + - COUNT ( * ) * - 51
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-3818
SELECT + COUNT( * ) + + SUM( + + 86 ) * - SUM( 67 )
----
-5761

skipif mysql # not compatible
query I rowsort label-3818
SELECT + COUNT ( * ) + + SUM ( + + 86 ) * - SUM ( 67 )
----
-5761

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3819
SELECT ALL + 32 + - MIN( DISTINCT ( + 62 ) ) DIV 37
----
31

skipif mysql # not compatible
query I rowsort label-3819
SELECT ALL + 32 + - MIN ( DISTINCT ( + 62 ) ) / 37
----
31

onlyif mysql # DIV for integer division: 
query I rowsort label-3820
SELECT ALL + 16 DIV - 19 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3820
SELECT ALL + 16 / - 19 AS col1
----
0

query I rowsort
SELECT DISTINCT + + 31 * - + 41
----
-1271

onlyif mysql # aggregate syntax: 
query I rowsort label-3822
SELECT DISTINCT + + COUNT( * ) * + 86 col1
----
86

skipif mysql # not compatible
query I rowsort label-3822
SELECT DISTINCT + + COUNT ( * ) * + 86 col1
----
86

query I rowsort
SELECT - 20 * + 92
----
-1840

onlyif mysql # aggregate syntax: 
query II rowsort label-3824
SELECT ALL + SUM( 47 ) * - 53 AS col1, 36
----
-2491
36

skipif mysql # not compatible
query II rowsort label-3824
SELECT ALL + SUM ( 47 ) * - 53 AS col1, 36
----
-2491
36

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3825
SELECT CAST( NULL AS SIGNED ), - CAST( NULL AS SIGNED ) * - 96
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-3825
SELECT CAST ( NULL AS INTEGER ), - CAST ( NULL AS INTEGER ) * - 96
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3826
SELECT + MIN( + - 75 )
----
-75

skipif mysql # not compatible
query I rowsort label-3826
SELECT + MIN ( + - 75 )
----
-75

query I rowsort
SELECT + ( - 64 ) AS col0
----
-64

onlyif mysql # DIV for integer division: 
query I rowsort label-3828
SELECT 52 DIV 68
----
0

skipif mysql # not compatible
query I rowsort label-3828
SELECT 52 / 68
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3829
SELECT 1 + 15 DIV 69 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3829
SELECT 1 + 15 / 69 AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3830
SELECT COUNT( * ) * 6 * + - CAST( NULL AS SIGNED ) * + CAST( NULL AS SIGNED ) * + NULLIF ( - + 49, + - 60 * + 84 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3830
SELECT COUNT ( * ) * 6 * + - CAST ( NULL AS INTEGER ) * + CAST ( NULL AS INTEGER ) * + NULLIF ( - + 49, + - 60 * + 84 ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3831
SELECT DISTINCT 5 / - CASE - COUNT( * ) WHEN - 45 * - COALESCE ( COUNT( * ), SUM( DISTINCT - 48 ) * + 45 ) + - COUNT( ALL + CAST( CAST( 51 AS SIGNED ) AS DECIMAL ) ) + - 46 - - 19 * - - 50 THEN + 65 + + COUNT( * ) WHEN + + 55 THEN CASE - ( 89 ) WHEN - + 5 THEN NULL WHEN - 80 + + COALESCE ( + 57, 30, - 54 + - COUNT( * ) ) THEN - 65 ELSE NULL END * 84 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3831
SELECT DISTINCT 5 / - CASE - COUNT ( * ) WHEN - 45 * - COALESCE ( COUNT ( * ), SUM ( DISTINCT - 48 ) * + 45 ) + - COUNT ( ALL + CAST ( CAST ( 51 AS INTEGER ) AS REAL ) ) + - 46 - - 19 * - - 50 THEN + 65 + + COUNT ( * ) WHEN + + 55 THEN CASE - ( 89 ) WHEN - + 5 THEN NULL WHEN - 80 + + COALESCE ( + 57, 30, - 54 + - COUNT ( * ) ) THEN - 65 ELSE NULL END * 84 END AS col0
----
NULL

query I rowsort
SELECT ALL - ( + 35 ) AS col2
----
-35

onlyif mysql # DIV for integer division: 
query I rowsort label-3833
SELECT 74 + + - 82 DIV - 65 AS col2
----
75

skipif mysql # not compatible
query I rowsort label-3833
SELECT 74 + + - 82 / - 65 AS col2
----
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3834
SELECT SUM( - 18 ) * NULLIF ( - 41, 23 ) * COUNT( * ) * + MAX( DISTINCT 42 ) + + COUNT( * ) DIV + ( + + 22 ) + - + 93 * - - 88
----
22812

skipif mysql # not compatible
query I rowsort label-3834
SELECT SUM ( - 18 ) * NULLIF ( - 41, 23 ) * COUNT ( * ) * + MAX ( DISTINCT 42 ) + + COUNT ( * ) / + ( + + 22 ) + - + 93 * - - 88
----
22812

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3835
SELECT COUNT( - 5 ) + + 64 DIV 88 AS col0, - NULLIF ( - ( + - 0 ), + 33 + - MAX( ALL + 25 ) ) AS col1
----
1
0

skipif mysql # not compatible
query II rowsort label-3835
SELECT COUNT ( - 5 ) + + 64 / 88 AS col0, - NULLIF ( - ( + - 0 ), + 33 + - MAX ( ALL + 25 ) ) AS col1
----
1
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3836
SELECT 55 * - CAST( NULL AS SIGNED ) + + 60 / + 1, - 93 - - 2 col0
----
NULL
-91

skipif mysql # not compatible
query II rowsort label-3836
SELECT 55 * - CAST ( NULL AS INTEGER ) + + 60 / + 1, - 93 - - 2 col0
----
NULL
-91

query I rowsort
SELECT DISTINCT + 65 * - ( + 10 )
----
-650

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3838
SELECT - SUM( + COALESCE ( 82, + 20 ) ) DIV - 83 + - 61 + COUNT( * ) + - 87 AS col2
----
-147

skipif mysql # not compatible
query I rowsort label-3838
SELECT - SUM ( + COALESCE ( 82, + 20 ) ) / - 83 + - 61 + COUNT ( * ) + - 87 AS col2
----
-147

onlyif mysql # aggregate syntax: 
query I rowsort label-3839
SELECT - - 19 * + 33 * ( - COUNT( * ) ) + - 45 col1
----
-672

skipif mysql # not compatible
query I rowsort label-3839
SELECT - - 19 * + 33 * ( - COUNT ( * ) ) + - 45 col1
----
-672

query I rowsort
SELECT ALL + 97 + 36 + + + 12 AS col1
----
145

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3841
SELECT DISTINCT COUNT( * ) DIV 17 * + 88
----
0

skipif mysql # not compatible
query I rowsort label-3841
SELECT DISTINCT COUNT ( * ) / 17 * + 88
----
0

query II rowsort
SELECT ALL 41 * 45, + 45 AS col1
----
1845
45

query II rowsort
SELECT + NULLIF ( + 60, - AVG ( + 41 ) + ( + 96 ) ) + - 38 * - + 38 * + 21 AS col1, + 6
----
30384
6

query I rowsort
SELECT 67 * + 94 + 50 AS col2
----
6348

query I rowsort
SELECT ALL 12 * + + 4
----
48

query I rowsort
SELECT - 52 * - + 62
----
3224

query I rowsort
SELECT ALL COALESCE ( 11, - - 35 + + 20 )
----
11

onlyif mysql # aggregate syntax: 
query II rowsort label-3848
SELECT DISTINCT - 54 - - + 49, + SUM( DISTINCT - + 94 ) * + 71 AS col1
----
-5
-6674

skipif mysql # not compatible
query II rowsort label-3848
SELECT DISTINCT - 54 - - + 49, + SUM ( DISTINCT - + 94 ) * + 71 AS col1
----
-5
-6674

onlyif mysql # aggregate syntax: 
query I rowsort label-3849
SELECT ALL - 20 - - + SUM( - 2 )
----
-22

skipif mysql # not compatible
query I rowsort label-3849
SELECT ALL - 20 - - + SUM ( - 2 )
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-3850
SELECT + 18 * COUNT( * ) * 83 * - - 97 + + 96 AS col1
----
145014

skipif mysql # not compatible
query I rowsort label-3850
SELECT + 18 * COUNT ( * ) * 83 * - - 97 + + 96 AS col1
----
145014

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3851
SELECT + CAST( - + 94 AS SIGNED )
----
-94

skipif mysql # not compatible
query I rowsort label-3851
SELECT + CAST ( - + 94 AS INTEGER )
----
-94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3852
SELECT - + CAST( + - 14 AS SIGNED )
----
14

skipif mysql # not compatible
query I rowsort label-3852
SELECT - + CAST ( + - 14 AS INTEGER )
----
14

onlyif mysql # aggregate syntax: 
query II rowsort label-3853
SELECT - 41 + - - COUNT( * ), - 28 AS col0
----
-40
-28

skipif mysql # not compatible
query II rowsort label-3853
SELECT - 41 + - - COUNT ( * ), - 28 AS col0
----
-40
-28

query I rowsort
SELECT 98 + + - 64
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-3855
SELECT DISTINCT - MIN( DISTINCT + - 45 ) * + COALESCE ( - 40, + + 43 + + + 63 * 50 * + + 55 - + 91 ) AS col0
----
-1800

skipif mysql # not compatible
query I rowsort label-3855
SELECT DISTINCT - MIN ( DISTINCT + - 45 ) * + COALESCE ( - 40, + + 43 + + + 63 * 50 * + + 55 - + 91 ) AS col0
----
-1800

onlyif mysql # DIV for integer division: 
query I rowsort label-3856
SELECT DISTINCT - 68 DIV + ( - 48 )
----
1

skipif mysql # not compatible
query I rowsort label-3856
SELECT DISTINCT - 68 / + ( - 48 )
----
1

query I rowsort
SELECT ALL - 23 + + + 48 * - 20
----
-983

query I rowsort
SELECT 0 + + 74 AS col1
----
74

query I rowsort
SELECT DISTINCT - 50 * - - ( 73 ) * + + 30
----
-109500

onlyif mysql # aggregate syntax: 
query I rowsort label-3860
SELECT + SUM( DISTINCT + 29 ) AS col1
----
29

skipif mysql # not compatible
query I rowsort label-3860
SELECT + SUM ( DISTINCT + 29 ) AS col1
----
29

query I rowsort
SELECT - 81 * - 29 + + - 40 * 85 AS col0
----
-1051

onlyif mysql # aggregate syntax: 
query I rowsort label-3862
SELECT ALL - COUNT( * ) * + ( + + COUNT( * ) ) * - COUNT( * ) + 66 + - - 26
----
93

skipif mysql # not compatible
query I rowsort label-3862
SELECT ALL - COUNT ( * ) * + ( + + COUNT ( * ) ) * - COUNT ( * ) + 66 + - - 26
----
93

onlyif mysql # aggregate syntax: 
query II rowsort label-3863
SELECT 60 * + - 81 + + 74 AS col2, + 46 * + - 91 - - - ( - + COUNT( * ) ) AS col1
----
-4786
-4185

skipif mysql # not compatible
query II rowsort label-3863
SELECT 60 * + - 81 + + 74 AS col2, + 46 * + - 91 - - - ( - + COUNT ( * ) ) AS col1
----
-4786
-4185

onlyif mysql # aggregate syntax: 
query I rowsort label-3864
SELECT 90 * + CASE + ( 78 ) WHEN - COUNT( * ) THEN ( + - 95 ) END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3864
SELECT 90 * + CASE + ( 78 ) WHEN - COUNT ( * ) THEN ( + - 95 ) END col1
----
NULL

query I rowsort
SELECT ALL + 58 * 34 + 68 AS col0
----
2040

onlyif mysql # aggregate syntax: 
query II rowsort label-3866
SELECT DISTINCT ( 2 ) * - - 39 + + - 57 - - - 39 col2, COUNT( * ) * + COUNT( * ) AS col2
----
-18
1

skipif mysql # not compatible
query II rowsort label-3866
SELECT DISTINCT ( 2 ) * - - 39 + + - 57 - - - 39 col2, COUNT ( * ) * + COUNT ( * ) AS col2
----
-18
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3867
SELECT DISTINCT + 98 * + + ( + 56 ) + CAST( - 42 AS SIGNED ) AS col1
----
5446

skipif mysql # not compatible
query I rowsort label-3867
SELECT DISTINCT + 98 * + + ( + 56 ) + CAST ( - 42 AS INTEGER ) AS col1
----
5446

onlyif mysql # aggregate syntax: 
query I rowsort label-3868
SELECT ALL - COUNT( * ) * + 11 + - + 60 + - + 4
----
-75

skipif mysql # not compatible
query I rowsort label-3868
SELECT ALL - COUNT ( * ) * + 11 + - + 60 + - + 4
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-3869
SELECT 44 + - - 45 * + MIN( ALL 58 ) - + 44 AS col0
----
2610

skipif mysql # not compatible
query I rowsort label-3869
SELECT 44 + - - 45 * + MIN ( ALL 58 ) - + 44 AS col0
----
2610

onlyif mysql # aggregate syntax: 
query II rowsort label-3870
SELECT + 3, COUNT( ALL - 27 ) + 60 AS col1
----
3
61

skipif mysql # not compatible
query II rowsort label-3870
SELECT + 3, COUNT ( ALL - 27 ) + 60 AS col1
----
3
61

query I rowsort
SELECT DISTINCT - 9 * - - 28
----
-252

onlyif mysql # aggregate syntax: 
query I rowsort label-3872
SELECT ALL 30 * - + MAX( ALL 28 ) + - 78 AS col0
----
-918

skipif mysql # not compatible
query I rowsort label-3872
SELECT ALL 30 * - + MAX ( ALL 28 ) + - 78 AS col0
----
-918

query I rowsort
SELECT - 0 * - - 5
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3874
SELECT SUM( ALL + 56 ) col1
----
56

skipif mysql # not compatible
query I rowsort label-3874
SELECT SUM ( ALL + 56 ) col1
----
56

query I rowsort
SELECT - NULLIF ( + 56, 0 )
----
-56

query I rowsort
SELECT ALL + + 92 col0
----
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3877
SELECT ALL - CAST( NULL AS SIGNED ) * + ( - + COUNT( * ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3877
SELECT ALL - CAST ( NULL AS INTEGER ) * + ( - + COUNT ( * ) ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT + + 60 - 53 col2
----
7

query I rowsort
SELECT + NULLIF ( 38, - 42 * + 71 * - + 62 )
----
38

query I rowsort
SELECT + 93 * + 54 + NULLIF ( + 23, + - 43 ) + + 5 col1
----
5050

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3881
SELECT + CAST( 9 AS SIGNED )
----
9

skipif mysql # not compatible
query I rowsort label-3881
SELECT + CAST ( 9 AS INTEGER )
----
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3882
SELECT + COUNT( * ) DIV 72 DIV + COUNT( * ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3882
SELECT + COUNT ( * ) / 72 / + COUNT ( * ) AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3883
SELECT + CAST( + - COUNT( * ) AS SIGNED ) * - 82 AS col0
----
82

skipif mysql # not compatible
query I rowsort label-3883
SELECT + CAST ( + - COUNT ( * ) AS INTEGER ) * - 82 AS col0
----
82

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3884
SELECT ALL 42 DIV COUNT( * ) AS col2
----
42

skipif mysql # not compatible
query I rowsort label-3884
SELECT ALL 42 / COUNT ( * ) AS col2
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-3885
SELECT + COUNT( * ) - - 62 AS col2
----
63

skipif mysql # not compatible
query I rowsort label-3885
SELECT + COUNT ( * ) - - 62 AS col2
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-3886
SELECT + COUNT( * ) - - - 89 + - + COUNT( * ) * + 23 * COUNT( * ) AS col1
----
-111

skipif mysql # not compatible
query I rowsort label-3886
SELECT + COUNT ( * ) - - - 89 + - + COUNT ( * ) * + 23 * COUNT ( * ) AS col1
----
-111

onlyif mysql # aggregate syntax: 
query I rowsort label-3887
SELECT + - 78 * + COUNT( * )
----
-78

skipif mysql # not compatible
query I rowsort label-3887
SELECT + - 78 * + COUNT ( * )
----
-78

query I rowsort
SELECT + + 3 * 38
----
114

query I rowsort
SELECT DISTINCT 52 * - + 9
----
-468

query I rowsort
SELECT ALL + 91 + 37 * - NULLIF ( ( + 81 ), 8 + - + NULLIF ( 38, + 48 ) + - + 89 )
----
-2906

onlyif mysql # aggregate syntax: 
query I rowsort label-3891
SELECT ALL 87 * + COUNT( - 90 ) AS col2
----
87

skipif mysql # not compatible
query I rowsort label-3891
SELECT ALL 87 * + COUNT ( - 90 ) AS col2
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-3892
SELECT + 93 * MIN( 27 ) AS col0
----
2511

skipif mysql # not compatible
query I rowsort label-3892
SELECT + 93 * MIN ( 27 ) AS col0
----
2511

query I rowsort
SELECT - 98 * - 12 AS col0
----
1176

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3894
SELECT 82 col1, + COALESCE ( + - CAST( NULL AS SIGNED ), + 46 * - 19 )
----
82
-874

skipif mysql # not compatible
query II rowsort label-3894
SELECT 82 col1, + COALESCE ( + - CAST ( NULL AS INTEGER ), + 46 * - 19 )
----
82
-874

query I rowsort
SELECT - 68 * + 22
----
-1496

onlyif mysql # aggregate syntax: 
query II rowsort label-3896
SELECT DISTINCT + 41 AS col2, - ( + CASE - 5 WHEN + 3 * COUNT( * ) * + 91 THEN NULL ELSE - + COUNT( * ) END ) + + 23 * - + 60
----
41
-1379

skipif mysql # not compatible
query II rowsort label-3896
SELECT DISTINCT + 41 AS col2, - ( + CASE - 5 WHEN + 3 * COUNT ( * ) * + 91 THEN NULL ELSE - + COUNT ( * ) END ) + + 23 * - + 60
----
41
-1379

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3897
SELECT ALL COUNT( + 3 ) DIV 27 - COUNT( * ) + CAST( + ( 34 ) AS SIGNED ) * + 54 + - 83 + + COALESCE ( + 42, - - 99 ) * - - CAST( + COUNT( * ) AS SIGNED ) AS col0
----
1794

skipif mysql # not compatible
query I rowsort label-3897
SELECT ALL COUNT ( + 3 ) / 27 - COUNT ( * ) + CAST ( + ( 34 ) AS INTEGER ) * + 54 + - 83 + + COALESCE ( + 42, - - 99 ) * - - CAST ( + COUNT ( * ) AS INTEGER ) AS col0
----
1794

onlyif mysql # aggregate syntax: 
query I rowsort label-3898
SELECT ALL - 1 * + COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-3898
SELECT ALL - 1 * + COUNT ( * )
----
-1

query I rowsort
SELECT DISTINCT + ( - - 72 )
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-3900
SELECT DISTINCT + SUM( DISTINCT - + ( - + 45 ) ) * - - 31 + + 6
----
1401

skipif mysql # not compatible
query I rowsort label-3900
SELECT DISTINCT + SUM ( DISTINCT - + ( - + 45 ) ) * - - 31 + + 6
----
1401

query II rowsort
SELECT DISTINCT 38 * + 45 * - ( - + 32 ) AS col2, + 97 AS col2
----
54720
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3902
SELECT + 79 + COUNT( * ) + + COUNT( * ) * + + 88
----
168

skipif mysql # not compatible
query I rowsort label-3902
SELECT + 79 + COUNT ( * ) + + COUNT ( * ) * + + 88
----
168

query I rowsort
SELECT 93 * - 7 * - 27 * ( - 4 ) * - 48 + - 78 * 18
----
3373380

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3904
SELECT - COUNT( * ) * CAST( 76 AS SIGNED ) AS col1
----
-76

skipif mysql # not compatible
query I rowsort label-3904
SELECT - COUNT ( * ) * CAST ( 76 AS INTEGER ) AS col1
----
-76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3905
SELECT - 66 * + + ( + CAST( NULL AS SIGNED ) ) * + - 54 * COALESCE ( - + 10, - 50, 54 * 8 ) + + 21 * - COUNT( * ) * + 15 * + - 97 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3905
SELECT - 66 * + + ( + CAST ( NULL AS INTEGER ) ) * + - 54 * COALESCE ( - + 10, - 50, 54 * 8 ) + + 21 * - COUNT ( * ) * + 15 * + - 97 AS col2
----
NULL

query II rowsort
SELECT DISTINCT + + 63 AS col0, 81
----
63
81

query I rowsort
SELECT - + 50 + - NULLIF ( 57, - + ( + 12 ) * 24 ) * 13 * + - 28 AS col0
----
20698

query II rowsort
SELECT DISTINCT + 61 AS col2, 68 * - - 30 * - + 62 AS col0
----
61
-126480

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3909
SELECT ALL + ( + 12 ) DIV + + ( - + 60 ), CAST( NULL AS SIGNED ) DIV - COUNT( - - NULLIF ( - + CAST( NULL AS SIGNED ), - CAST( NULL AS SIGNED ) + - - 68 ) ) AS col2
----
0
NULL

skipif mysql # not compatible
query II rowsort label-3909
SELECT ALL + ( + 12 ) / + + ( - + 60 ), CAST ( NULL AS INTEGER ) / - COUNT ( - - NULLIF ( - + CAST ( NULL AS INTEGER ), - CAST ( NULL AS INTEGER ) + - - 68 ) ) AS col2
----
0
NULL

query I rowsort
SELECT ALL + 65 * - 96 AS col2
----
-6240

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3911
SELECT - COALESCE ( + COALESCE ( + 49, 84 + + + 71 * - CAST( NULL AS SIGNED ) ), - NULLIF ( + - 25, COUNT( * ) + - 15 ), + 19 ) + + - 46 * - - 67
----
-3131

skipif mysql # not compatible
query I rowsort label-3911
SELECT - COALESCE ( + COALESCE ( + 49, 84 + + + 71 * - CAST ( NULL AS INTEGER ) ), - NULLIF ( + - 25, COUNT ( * ) + - 15 ), + 19 ) + + - 46 * - - 67
----
-3131

query I rowsort
SELECT - ( - - ( - 55 ) ) * - + 42 * + - 65 - + 60 AS col1
----
150090

query II rowsort
SELECT 94, - 77 AS col1
----
94
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-3914
SELECT + COUNT( ( + + 65 ) ) * - 18 + COUNT( * ) AS col2
----
-17

skipif mysql # not compatible
query I rowsort label-3914
SELECT + COUNT ( ( + + 65 ) ) * - 18 + COUNT ( * ) AS col2
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-3915
SELECT ALL + MAX( DISTINCT 45 ) AS col2
----
45

skipif mysql # not compatible
query I rowsort label-3915
SELECT ALL + MAX ( DISTINCT 45 ) AS col2
----
45

query I rowsort
SELECT ALL - - 95 * + 12
----
1140

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3917
SELECT - COALESCE ( + CASE + 29 WHEN - - CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) THEN - + SUM( + + 98 ) END, 68 ) + - 39 + 12 AS col0
----
-95

skipif mysql # not compatible
query I rowsort label-3917
SELECT - COALESCE ( + CASE + 29 WHEN - - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) THEN - + SUM ( + + 98 ) END, 68 ) + - 39 + 12 AS col0
----
-95

query II rowsort
SELECT + 70 * + 68 AS col1, + 32 + 87
----
4760
119

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3919
SELECT - - 82 * + 70 + + + 27 * + 68 DIV - COUNT( * ) AS col2
----
3904

skipif mysql # not compatible
query I rowsort label-3919
SELECT - - 82 * + 70 + + + 27 * + 68 / - COUNT ( * ) AS col2
----
3904

query I rowsort
SELECT + 99 * - - 5 + 56
----
551

onlyif mysql # aggregate syntax: 
query I rowsort label-3921
SELECT ALL ( - ( + MAX( DISTINCT - 21 ) ) )
----
21

skipif mysql # not compatible
query I rowsort label-3921
SELECT ALL ( - ( + MAX ( DISTINCT - 21 ) ) )
----
21

query I rowsort
SELECT - + ( + - 58 )
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-3923
SELECT ALL + 23 * - 26 * - 54 + MIN( + - 73 )
----
32219

skipif mysql # not compatible
query I rowsort label-3923
SELECT ALL + 23 * - 26 * - 54 + MIN ( + - 73 )
----
32219

onlyif mysql # aggregate syntax: 
query I rowsort label-3924
SELECT - SUM( DISTINCT - + 53 )
----
53

skipif mysql # not compatible
query I rowsort label-3924
SELECT - SUM ( DISTINCT - + 53 )
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-3925
SELECT ALL 81 + + CASE - 96 WHEN + 50 / + 45 * + 93 THEN NULL WHEN - COUNT( * ) THEN + - 49 + - 28 END + - 98 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3925
SELECT ALL 81 + + CASE - 96 WHEN + 50 / + 45 * + 93 THEN NULL WHEN - COUNT ( * ) THEN + - 49 + - 28 END + - 98 AS col0
----
NULL

query I rowsort
SELECT + 87 + - 88
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3927
SELECT + ( COUNT( * ) ) * - ( - CASE + ( - + 14 ) WHEN - NULLIF ( ( + 17 ), - + 53 + 48 ) THEN - 59 ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-3927
SELECT + ( COUNT ( * ) ) * - ( - CASE + ( - + 14 ) WHEN - NULLIF ( ( + 17 ), - + 53 + 48 ) THEN - 59 ELSE NULL END )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3928
SELECT + 63 + MIN( DISTINCT 79 ) * + - SUM( ALL + 46 )
----
-3571

skipif mysql # not compatible
query I rowsort label-3928
SELECT + 63 + MIN ( DISTINCT 79 ) * + - SUM ( ALL + 46 )
----
-3571

query I rowsort
SELECT - ( + - ( 13 ) ) AS col1
----
13

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3930
SELECT ALL 33 * COUNT( * ) DIV - 59
----
0

skipif mysql # not compatible
query I rowsort label-3930
SELECT ALL 33 * COUNT ( * ) / - 59
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3931
SELECT ALL 45 + CAST( NULL AS SIGNED ) * - 28 * + + CAST( NULL AS SIGNED ) * 58 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3931
SELECT ALL 45 + CAST ( NULL AS INTEGER ) * - 28 * + + CAST ( NULL AS INTEGER ) * 58 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3932
SELECT ALL COUNT( * ) + + - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-3932
SELECT ALL COUNT ( * ) + + - COUNT ( * )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3933
SELECT ALL ( - COUNT( * ) ) + - MAX( 60 ) DIV + + 80 + - - 34
----
33

skipif mysql # not compatible
query I rowsort label-3933
SELECT ALL ( - COUNT ( * ) ) + - MAX ( 60 ) / + + 80 + - - 34
----
33

query I rowsort
SELECT + 33 + - 47
----
-14

query I rowsort
SELECT ALL 97 * - 11 col1
----
-1067

onlyif mysql # aggregate syntax: 
query I rowsort label-3936
SELECT + 9 + + 1 + - 94 / + 7 * - CASE - 52 WHEN - 23 THEN + 33 WHEN - + COUNT( * ) THEN - 59 * 33 * + - 32 + - 60 * + 91 * + NULLIF ( 90, + + 37 ) * - ( - - NULLIF ( 39, + 76 / - 90 * - 41 / COUNT( * ) ) ) ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3936
SELECT + 9 + + 1 + - 94 / + 7 * - CASE - 52 WHEN - 23 THEN + 33 WHEN - + COUNT ( * ) THEN - 59 * 33 * + - 32 + - 60 * + 91 * + NULLIF ( 90, + + 37 ) * - ( - - NULLIF ( 39, + 76 / - 90 * - 41 / COUNT ( * ) ) ) ELSE NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3937
SELECT ALL CAST( - - CAST( + MAX( - 5 ) AS SIGNED ) AS SIGNED ) - - 66 + + + NULLIF ( + + COUNT( * ), + 3 ) * - - 60 AS col1
----
121

skipif mysql # not compatible
query I rowsort label-3937
SELECT ALL CAST ( - - CAST ( + MAX ( - 5 ) AS INTEGER ) AS INTEGER ) - - 66 + + + NULLIF ( + + COUNT ( * ), + 3 ) * - - 60 AS col1
----
121

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3938
SELECT COUNT( * ) DIV 54 + + 56 AS col2
----
56

skipif mysql # not compatible
query I rowsort label-3938
SELECT COUNT ( * ) / 54 + + 56 AS col2
----
56

onlyif mysql # aggregate syntax: 
query II rowsort label-3939
SELECT COUNT( * ) * + 93 AS col2, - 30 * 93 AS col2
----
93
-2790

skipif mysql # not compatible
query II rowsort label-3939
SELECT COUNT ( * ) * + 93 AS col2, - 30 * 93 AS col2
----
93
-2790

query I rowsort
SELECT 60 * - - ( + 16 )
----
960

onlyif mysql # aggregate syntax: 
query II rowsort label-3941
SELECT ALL + 71 * + - 11 AS col1, - 30 + + NULLIF ( - 68, + + 6 * + COUNT( DISTINCT 67 ) + - 99 ) * + - 80 AS col1
----
-781
5410

skipif mysql # not compatible
query II rowsort label-3941
SELECT ALL + 71 * + - 11 AS col1, - 30 + + NULLIF ( - 68, + + 6 * + COUNT ( DISTINCT 67 ) + - 99 ) * + - 80 AS col1
----
-781
5410

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3942
SELECT DISTINCT - CASE + 68 WHEN + 70 * - 35 / - MAX( ALL - - 16 ) THEN NULL ELSE + 45 END - 94 + + 28 + + 62 + + 27 * + 10 + 44 * 46 + SUM( ALL 51 ) * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3942
SELECT DISTINCT - CASE + 68 WHEN + 70 * - 35 / - MAX ( ALL - - 16 ) THEN NULL ELSE + 45 END - 94 + + 28 + + 62 + + 27 * + 10 + 44 * 46 + SUM ( ALL 51 ) * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3943
SELECT DISTINCT + 16 / - CASE + AVG ( DISTINCT - 10 ) WHEN - COUNT( * ) THEN + 4 * - - 32 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3943
SELECT DISTINCT + 16 / - CASE + AVG ( DISTINCT - 10 ) WHEN - COUNT ( * ) THEN + 4 * - - 32 END AS col1
----
NULL

query I rowsort
SELECT ALL 79 * + 27 + 61 * 5
----
2438

onlyif mysql # aggregate syntax: 
query I rowsort label-3945
SELECT + + CASE - ( - 23 ) WHEN - 84 * + 22 - + 39 THEN + - 72 * + - COUNT( * ) + - 81 + - NULLIF ( + + 91, - + 26 ) - + 38 WHEN + COUNT( * ) THEN 57 ELSE - 59 - + 77 END
----
-136

skipif mysql # not compatible
query I rowsort label-3945
SELECT + + CASE - ( - 23 ) WHEN - 84 * + 22 - + 39 THEN + - 72 * + - COUNT ( * ) + - 81 + - NULLIF ( + + 91, - + 26 ) - + 38 WHEN + COUNT ( * ) THEN 57 ELSE - 59 - + 77 END
----
-136

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3946
SELECT DISTINCT - - COALESCE ( + 68, + COALESCE ( + 8, + ( 5 ), - 82 DIV - - 42 * 1 ) + + + 82 - - - COUNT( * ) * + 90, 50 )
----
68

skipif mysql # not compatible
query I rowsort label-3946
SELECT DISTINCT - - COALESCE ( + 68, + COALESCE ( + 8, + ( 5 ), - 82 / - - 42 * 1 ) + + + 82 - - - COUNT ( * ) * + 90, 50 )
----
68

query I rowsort
SELECT DISTINCT 77 + - 55 col2
----
22

query I rowsort
SELECT ALL + + ( - 87 ) + - 35 AS col0
----
-122

query I rowsort
SELECT DISTINCT - + ( - 17 )
----
17

query II rowsort
SELECT DISTINCT + 50 + + 31 AS col1, 41
----
81
41

onlyif mysql # aggregate syntax: 
query I rowsort label-3951
SELECT ALL - SUM( ALL - + ( - 48 ) ) + 13 col2
----
-35

skipif mysql # not compatible
query I rowsort label-3951
SELECT ALL - SUM ( ALL - + ( - 48 ) ) + 13 col2
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-3952
SELECT DISTINCT + + 88 + COUNT( * )
----
89

skipif mysql # not compatible
query I rowsort label-3952
SELECT DISTINCT + + 88 + COUNT ( * )
----
89

query II rowsort
SELECT - ( - 37 ) + - - 10 AS col2, - 38
----
47
-38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3954
SELECT MIN( - 12 ) * 40 * + - CAST( NULL AS SIGNED ) * - 59 + + - 60 * 62 * - 35 + + - 39
----
NULL

skipif mysql # not compatible
query I rowsort label-3954
SELECT MIN ( - 12 ) * 40 * + - CAST ( NULL AS INTEGER ) * - 59 + + - 60 * 62 * - 35 + + - 39
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3955
SELECT DISTINCT - 90 + - SUM( - - 29 ) col0
----
-119

skipif mysql # not compatible
query I rowsort label-3955
SELECT DISTINCT - 90 + - SUM ( - - 29 ) col0
----
-119

onlyif mysql # aggregate syntax: 
query I rowsort label-3956
SELECT ALL + 32 + COUNT( - 63 )
----
33

skipif mysql # not compatible
query I rowsort label-3956
SELECT ALL + 32 + COUNT ( - 63 )
----
33

query II rowsort
SELECT 50 AS col1, - CASE - 68 WHEN + 3 THEN NULL ELSE 5 END
----
50
-5

query I rowsort
SELECT DISTINCT - 92 + + + 30
----
-62

onlyif mysql # aggregate syntax: 
query II rowsort label-3959
SELECT DISTINCT 16 AS col1, COUNT( * )
----
16
1

skipif mysql # not compatible
query II rowsort label-3959
SELECT DISTINCT 16 AS col1, COUNT ( * )
----
16
1

query I rowsort
SELECT ALL - 74 + - ( + 38 ) - + - 49
----
-63

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3961
SELECT COUNT( * ) * - + 1 * + 45 AS col0, 82 DIV + 84 AS col1
----
-45
0

skipif mysql # not compatible
query II rowsort label-3961
SELECT COUNT ( * ) * - + 1 * + 45 AS col0, 82 / + 84 AS col1
----
-45
0

query II rowsort
SELECT ALL 76 AS col0, 21 * 36
----
76
756

query I rowsort
SELECT 38 - - 55 * 44 + + - 68 AS col0
----
2390

onlyif mysql # aggregate syntax: 
query I rowsort label-3964
SELECT COUNT( * ) * - - 65
----
65

skipif mysql # not compatible
query I rowsort label-3964
SELECT COUNT ( * ) * - - 65
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-3965
SELECT ( 8 ) * 32 - + 1 * + 57 + - + COALESCE ( + 77, + - 47 ) * COUNT( * ) * - + 86 AS col2
----
6821

skipif mysql # not compatible
query I rowsort label-3965
SELECT ( 8 ) * 32 - + 1 * + 57 + - + COALESCE ( + 77, + - 47 ) * COUNT ( * ) * - + 86 AS col2
----
6821

query I rowsort
SELECT ALL 20 * 78 * 61
----
95160

query I rowsort
SELECT ( + - 47 ) * + + 25 AS col0
----
-1175

onlyif mysql # aggregate syntax: 
query I rowsort label-3968
SELECT DISTINCT 49 * + - COUNT( * )
----
-49

skipif mysql # not compatible
query I rowsort label-3968
SELECT DISTINCT 49 * + - COUNT ( * )
----
-49

query I rowsort
SELECT ALL - 87 * - 91 + + - 89
----
7828

query I rowsort
SELECT ALL 63 * 91 AS col0
----
5733

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3971
SELECT MAX( 64 ) + - ( - + 88 ) DIV - 43 AS col1
----
62

skipif mysql # not compatible
query I rowsort label-3971
SELECT MAX ( 64 ) + - ( - + 88 ) / - 43 AS col1
----
62

query I rowsort
SELECT + 2 * 8 - 29
----
-13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3973
SELECT + CAST( NULL AS SIGNED ), 39 * COUNT( * ) AS col1
----
NULL
39

skipif mysql # not compatible
query II rowsort label-3973
SELECT + CAST ( NULL AS INTEGER ), 39 * COUNT ( * ) AS col1
----
NULL
39

onlyif mysql # aggregate syntax: 
query I rowsort label-3974
SELECT ( CASE + 83 WHEN + COUNT( ALL - 43 ) * 26 THEN + + ( + 1 ) END ) * + 21 + + 72 - - 28 + AVG ( + - 90 ) + + + 17 + - - 6 * + 61 + ( + MAX( 93 ) ) * + - 98 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3974
SELECT ( CASE + 83 WHEN + COUNT ( ALL - 43 ) * 26 THEN + + ( + 1 ) END ) * + 21 + + 72 - - 28 + AVG ( + - 90 ) + + + 17 + - - 6 * + 61 + ( + MAX ( 93 ) ) * + - 98 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3975
SELECT + 43 * - SUM( ALL - 23 ) + - 97 + + - 29 AS col2
----
863

skipif mysql # not compatible
query I rowsort label-3975
SELECT + 43 * - SUM ( ALL - 23 ) + - 97 + + - 29 AS col2
----
863

onlyif mysql # aggregate syntax: 
query I rowsort label-3976
SELECT DISTINCT COUNT( * ) + 43
----
44

skipif mysql # not compatible
query I rowsort label-3976
SELECT DISTINCT COUNT ( * ) + 43
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-3977
SELECT + + COUNT( DISTINCT 42 )
----
1

skipif mysql # not compatible
query I rowsort label-3977
SELECT + + COUNT ( DISTINCT 42 )
----
1

query I rowsort
SELECT 88 + 76 AS col2
----
164

query I rowsort
SELECT ALL 65 + + + 37 col0
----
102

onlyif mysql # aggregate syntax: 
query I rowsort label-3980
SELECT ALL - + COUNT( ALL 72 )
----
-1

skipif mysql # not compatible
query I rowsort label-3980
SELECT ALL - + COUNT ( ALL 72 )
----
-1

query I rowsort
SELECT ALL + - 28 + - 77
----
-105

onlyif mysql # DIV for integer division: 
query I rowsort label-3982
SELECT ALL + 10 DIV + 84 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3982
SELECT ALL + 10 / + 84 AS col0
----
0

query I rowsort
SELECT ALL 92 + + + ( + ( + 84 ) )
----
176

query I rowsort
SELECT + + ( + 35 ) AS col2
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-3985
SELECT + 85 * - 6 * + 40 * + COUNT( * )
----
-20400

skipif mysql # not compatible
query I rowsort label-3985
SELECT + 85 * - 6 * + 40 * + COUNT ( * )
----
-20400

onlyif mysql # aggregate syntax: 
query I rowsort label-3986
SELECT DISTINCT + MAX( + - 0 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3986
SELECT DISTINCT + MAX ( + - 0 ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3987
SELECT DISTINCT 69 + + SUM( ALL - 28 ) + + 64 + 28 - 33 * - 53 * + - ( - + COALESCE ( - 52, + 70 * + - 18 + - + COUNT( * ) + + ( - - 25 ), - + 49 ) ) AS col0
----
-90815

skipif mysql # not compatible
query I rowsort label-3987
SELECT DISTINCT 69 + + SUM ( ALL - 28 ) + + 64 + 28 - 33 * - 53 * + - ( - + COALESCE ( - 52, + 70 * + - 18 + - + COUNT ( * ) + + ( - - 25 ), - + 49 ) ) AS col0
----
-90815

onlyif mysql # DIV for integer division: 
query I rowsort label-3988
SELECT 28 DIV - 91
----
0

skipif mysql # not compatible
query I rowsort label-3988
SELECT 28 / - 91
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3989
SELECT ALL - ( 68 ) DIV + 58 col0
----
-1

skipif mysql # not compatible
query I rowsort label-3989
SELECT ALL - ( 68 ) / + 58 col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3990
SELECT DISTINCT SUM( ALL - + 4 ) AS col2
----
-4

skipif mysql # not compatible
query I rowsort label-3990
SELECT DISTINCT SUM ( ALL - + 4 ) AS col2
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-3991
SELECT ALL COUNT( DISTINCT + 80 )
----
1

skipif mysql # not compatible
query I rowsort label-3991
SELECT ALL COUNT ( DISTINCT + 80 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3992
SELECT ALL - COUNT( * ) - + + MAX( DISTINCT CAST( NULL AS SIGNED ) ) + - + 86 - + 27 * 85 * + 26 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3992
SELECT ALL - COUNT ( * ) - + + MAX ( DISTINCT CAST ( NULL AS INTEGER ) ) + - + 86 - + 27 * 85 * + 26 AS col2
----
NULL

query I rowsort
SELECT DISTINCT + 88 * 77
----
6776

query I rowsort
SELECT - 32 * ( + 71 ) col1
----
-2272

onlyif mysql # aggregate syntax: 
query I rowsort label-3995
SELECT - MAX( - 64 ) + + 46 * - 84 * - - 76
----
-293600

skipif mysql # not compatible
query I rowsort label-3995
SELECT - MAX ( - 64 ) + + 46 * - 84 * - - 76
----
-293600

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3996
SELECT ALL + MAX( DISTINCT + 58 ) * 8 * + 36 * - CASE 91 WHEN - + 9 + 90 THEN NULL WHEN - CAST( - ( - 1 ) AS SIGNED ) THEN - ( - COUNT( * ) ) - - 55 END * - 7 * + 65 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3996
SELECT ALL + MAX ( DISTINCT + 58 ) * 8 * + 36 * - CASE 91 WHEN - + 9 + 90 THEN NULL WHEN - CAST ( - ( - 1 ) AS INTEGER ) THEN - ( - COUNT ( * ) ) - - 55 END * - 7 * + 65 AS col0
----
NULL

query I rowsort
SELECT - 26 + 99
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-3998
SELECT - NULLIF ( - 31, - 7 ) * 61 * + CASE - 46 WHEN + SUM( - - 68 ) THEN - + AVG ( ALL - - 58 ) + - 11 WHEN ( + 95 ) / - NULLIF ( - CASE - + 66 WHEN 90 / 29 THEN NULL WHEN 97 * + 86 THEN COALESCE ( 75, + 98 ) END, - 89 * 80 ) THEN + - 21 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3998
SELECT - NULLIF ( - 31, - 7 ) * 61 * + CASE - 46 WHEN + SUM ( - - 68 ) THEN - + AVG ( ALL - - 58 ) + - 11 WHEN ( + 95 ) / - NULLIF ( - CASE - + 66 WHEN 90 / 29 THEN NULL WHEN 97 * + 86 THEN COALESCE ( 75, + 98 ) END, - 89 * 80 ) THEN + - 21 END AS col1
----
NULL

query I rowsort
SELECT ALL + 71 * + 14 col0
----
994

query I rowsort
SELECT - ( - + 58 ) + - - 42 AS col2
----
100

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4001
SELECT DISTINCT - 99 + - CAST( - COALESCE ( - - AVG ( ALL 37 ), + 0 ) AS SIGNED ) - + 43 AS col2, - CAST( 81 AS SIGNED )
----
-105
-81

skipif mysql # not compatible
query II rowsort label-4001
SELECT DISTINCT - 99 + - CAST ( - COALESCE ( - - AVG ( ALL 37 ), + 0 ) AS INTEGER ) - + 43 AS col2, - CAST ( 81 AS INTEGER )
----
-105
-81

query I rowsort
SELECT - + 77 * + - 65
----
5005

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4003
SELECT - 72 * MAX( DISTINCT 74 ) * CAST( NULL AS SIGNED ) + + + 19 + 24
----
NULL

skipif mysql # not compatible
query I rowsort label-4003
SELECT - 72 * MAX ( DISTINCT 74 ) * CAST ( NULL AS INTEGER ) + + + 19 + 24
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4004
SELECT + 59 * - COALESCE ( - MIN( + - 51 ), - - MAX( 1 ) ) + 61 + - 71 AS col0
----
-3019

skipif mysql # not compatible
query I rowsort label-4004
SELECT + 59 * - COALESCE ( - MIN ( + - 51 ), - - MAX ( 1 ) ) + 61 + - 71 AS col0
----
-3019

onlyif mysql # aggregate syntax: 
query I rowsort label-4005
SELECT ALL + 46 * - 74 * + + COALESCE ( - + 43, + + 82 * - 37, MIN( + 24 ) + + CASE + 91 WHEN - 83 THEN NULL WHEN - 46 THEN NULL ELSE + 25 END ) + - 20
----
146352

skipif mysql # not compatible
query I rowsort label-4005
SELECT ALL + 46 * - 74 * + + COALESCE ( - + 43, + + 82 * - 37, MIN ( + 24 ) + + CASE + 91 WHEN - 83 THEN NULL WHEN - 46 THEN NULL ELSE + 25 END ) + - 20
----
146352

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4006
SELECT - 66 * CAST( NULL AS SIGNED ) * + AVG ( - - ( 42 ) ) - + - CAST( 20 AS SIGNED ) + + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4006
SELECT - 66 * CAST ( NULL AS INTEGER ) * + AVG ( - - ( 42 ) ) - + - CAST ( 20 AS INTEGER ) + + COUNT ( * ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4007
SELECT + MAX( DISTINCT - 75 ) * + COALESCE ( 91, + ( 78 ) ) * - COUNT( * ) + 71 AS col0
----
6896

skipif mysql # not compatible
query I rowsort label-4007
SELECT + MAX ( DISTINCT - 75 ) * + COALESCE ( 91, + ( 78 ) ) * - COUNT ( * ) + 71 AS col0
----
6896

query II rowsort
SELECT + - 45 * - - 6 AS col1, 5
----
-270
5

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4009
SELECT ALL + CAST( ( + 66 ) AS SIGNED ) * + 81 AS col0, 53
----
5346
53

skipif mysql # not compatible
query II rowsort label-4009
SELECT ALL + CAST ( ( + 66 ) AS INTEGER ) * + 81 AS col0, 53
----
5346
53

query I rowsort
SELECT + + 70 * + 27 col1
----
1890

onlyif mysql # aggregate syntax: 
query I rowsort label-4011
SELECT DISTINCT + CASE + CASE - COALESCE ( COALESCE ( 51, - COUNT( * ) - + + 32 ), + 86, + 52 ) WHEN - - 21 + - NULLIF ( - 7, + 46 ) THEN NULL WHEN + ( - 42 ) * + + ( - + 37 ) * 54 * + 50 THEN + - 60 - + 89 ELSE 17 END WHEN + 80 * 75 THEN NULL WHEN - 54 * 76 THEN 79 / - + COALESCE ( - 48, + 57 / COUNT( * ) ) + 48 - + 45 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4011
SELECT DISTINCT + CASE + CASE - COALESCE ( COALESCE ( 51, - COUNT ( * ) - + + 32 ), + 86, + 52 ) WHEN - - 21 + - NULLIF ( - 7, + 46 ) THEN NULL WHEN + ( - 42 ) * + + ( - + 37 ) * 54 * + 50 THEN + - 60 - + 89 ELSE 17 END WHEN + 80 * 75 THEN NULL WHEN - 54 * 76 THEN 79 / - + COALESCE ( - 48, + 57 / COUNT ( * ) ) + 48 - + 45 END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4012
SELECT + CASE - - COALESCE ( + + 66, + 78 / - 65 ) WHEN 38 THEN + - 89 + + MIN( + 19 ) * - COUNT( * ) * + + CAST( + 27 AS SIGNED ) * - 22 WHEN 87 THEN + 98 WHEN 52 * + + 55 + 34 THEN NULL ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4012
SELECT + CASE - - COALESCE ( + + 66, + 78 / - 65 ) WHEN 38 THEN + - 89 + + MIN ( + 19 ) * - COUNT ( * ) * + + CAST ( + 27 AS INTEGER ) * - 22 WHEN 87 THEN + 98 WHEN 52 * + + 55 + 34 THEN NULL ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT + 82 * - 28
----
-2296

query I rowsort
SELECT + 52 * - COALESCE ( - 28, + 77, - + 43 * + - 13 )
----
1456

query I rowsort
SELECT + + 90 col2
----
90

onlyif mysql # DIV for integer division: 
query I rowsort label-4016
SELECT ALL 4 * 56 - 59 DIV - + 97 AS col0
----
224

skipif mysql # not compatible
query I rowsort label-4016
SELECT ALL 4 * 56 - 59 / - + 97 AS col0
----
224

query I rowsort
SELECT + NULLIF ( - 68, - - 49 ) AS col2
----
-68

query I rowsort
SELECT + 16 * 13 AS col1
----
208

onlyif mysql # aggregate syntax: 
query I rowsort label-4019
SELECT SUM( ALL + 67 )
----
67

skipif mysql # not compatible
query I rowsort label-4019
SELECT SUM ( ALL + 67 )
----
67

query I rowsort
SELECT ALL 74 * + 51
----
3774

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4021
SELECT - 86 * - CAST( NULLIF ( + 34, - - COUNT( * ) ) AS SIGNED ) AS col2
----
2924

skipif mysql # not compatible
query I rowsort label-4021
SELECT - 86 * - CAST ( NULLIF ( + 34, - - COUNT ( * ) ) AS INTEGER ) AS col2
----
2924

onlyif mysql # aggregate syntax: 
query I rowsort label-4022
SELECT ALL COUNT( ALL 14 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-4022
SELECT ALL COUNT ( ALL 14 ) col1
----
1

query I rowsort
SELECT DISTINCT 9 * + + 93 AS col1
----
837

onlyif mysql # aggregate syntax: 
query I rowsort label-4024
SELECT ALL COUNT( ALL 68 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4024
SELECT ALL COUNT ( ALL 68 ) AS col2
----
1

query I rowsort
SELECT + 33 + + - 54
----
-21

onlyif mysql # DIV for integer division: 
query I rowsort label-4026
SELECT - 38 DIV - ( - 18 )
----
-2

skipif mysql # not compatible
query I rowsort label-4026
SELECT - 38 / - ( - 18 )
----
-2

query I rowsort
SELECT + 50 * 63
----
3150

query I rowsort
SELECT ALL 56 * + - COALESCE ( + + 85, 90 ) AS col0
----
-4760

query I rowsort
SELECT DISTINCT 73 * - - 24 AS col1
----
1752

query I rowsort
SELECT ALL CASE 11 WHEN 91 THEN + + ( + 33 ) - - - 40 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4031
SELECT ALL - 12 DIV + COALESCE ( - + COUNT( * ), - 53 + - 17 + + ( + 83 ), 33, + 84 + - - 93 + + + 50 + - 57 ) AS col2
----
12

skipif mysql # not compatible
query I rowsort label-4031
SELECT ALL - 12 / + COALESCE ( - + COUNT ( * ), - 53 + - 17 + + ( + 83 ), 33, + 84 + - - 93 + + + 50 + - 57 ) AS col2
----
12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4032
SELECT - 2 DIV + COUNT( * ) col0
----
-2

skipif mysql # not compatible
query I rowsort label-4032
SELECT - 2 / + COUNT ( * ) col0
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4033
SELECT DISTINCT CAST( - 80 AS SIGNED ) + - - ( - + 97 ) AS col1
----
-177

skipif mysql # not compatible
query I rowsort label-4033
SELECT DISTINCT CAST ( - 80 AS INTEGER ) + - - ( - + 97 ) AS col1
----
-177

query I rowsort
SELECT DISTINCT - 94 * 75 * - - 87
----
-613350

query I rowsort
SELECT ALL + 67 + - 4 AS col2
----
63

onlyif mysql # DIV for integer division: 
query I rowsort label-4036
SELECT ALL - 12 DIV - + 78 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4036
SELECT ALL - 12 / - + 78 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4037
SELECT + 67 DIV - 78
----
0

skipif mysql # not compatible
query I rowsort label-4037
SELECT + 67 / - 78
----
0

query I rowsort
SELECT ALL - ( - + 7 ) + + 21
----
28

query I rowsort
SELECT - 37 - 9
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-4040
SELECT ALL + - COUNT( * ) + 85
----
84

skipif mysql # not compatible
query I rowsort label-4040
SELECT ALL + - COUNT ( * ) + 85
----
84

query I rowsort
SELECT ALL - - 69 * 35 * 46
----
111090

query II rowsort
SELECT - NULLIF ( + - 66, + 4 ) AS col2, - 82
----
66
-82

onlyif mysql # DIV for integer division: 
query I rowsort label-4043
SELECT ALL 36 DIV + 73 + + ( - 82 ) + + 42 AS col2
----
-40

skipif mysql # not compatible
query I rowsort label-4043
SELECT ALL 36 / + 73 + + ( - 82 ) + + 42 AS col2
----
-40

query I rowsort
SELECT DISTINCT - + 19 * + - COALESCE ( + + 61, + 25 ) + - 28 AS col0
----
1131

query I rowsort
SELECT - 40 * - 94 AS col1
----
3760

onlyif mysql # aggregate syntax: 
query I rowsort label-4046
SELECT - 53 + - CASE - 55 WHEN + + NULLIF ( 52, - NULLIF ( + 91, - 75 ) ) THEN - 10 WHEN - COUNT( * ) * + - 51 THEN COUNT( * ) + - 11 WHEN 12 + - 84 THEN - 6 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4046
SELECT - 53 + - CASE - 55 WHEN + + NULLIF ( 52, - NULLIF ( + 91, - 75 ) ) THEN - 10 WHEN - COUNT ( * ) * + - 51 THEN COUNT ( * ) + - 11 WHEN 12 + - 84 THEN - 6 END AS col0
----
NULL

query I rowsort
SELECT - 60 * - 59 + - 96
----
3444

onlyif mysql # aggregate syntax: 
query I rowsort label-4048
SELECT + + 33 * + + 23 * - 18 * - - 76 * - NULLIF ( - CASE 69 WHEN - 45 THEN NULL WHEN + COALESCE ( + + 59, - 90 * + - 3 * + 37, + ( - + 66 ) ) THEN - 8 END, - COUNT( 44 ) ) * COALESCE ( + 63, ( SUM( DISTINCT + 75 ) ) ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4048
SELECT + + 33 * + + 23 * - 18 * - - 76 * - NULLIF ( - CASE 69 WHEN - 45 THEN NULL WHEN + COALESCE ( + + 59, - 90 * + - 3 * + 37, + ( - + 66 ) ) THEN - 8 END, - COUNT ( 44 ) ) * COALESCE ( + 63, ( SUM ( DISTINCT + 75 ) ) ) col2
----
NULL

query II rowsort
SELECT ALL + 30, + 52 - - - 2 + + + 14 * - ( ( 5 ) ) AS col0
----
30
-20

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4050
SELECT ALL MIN( ALL - 62 ) DIV - 21 - - + 24 AS col2
----
26

skipif mysql # not compatible
query I rowsort label-4050
SELECT ALL MIN ( ALL - 62 ) / - 21 - - + 24 AS col2
----
26

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4051
SELECT DISTINCT - 0 DIV + ( COUNT( * ) ) AS col2, 7
----
0
7

skipif mysql # not compatible
query II rowsort label-4051
SELECT DISTINCT - 0 / + ( COUNT ( * ) ) AS col2, 7
----
0
7

onlyif mysql # DIV for integer division: 
query I rowsort label-4052
SELECT - + 89 + - ( + 15 ) DIV 53 col0
----
-89

skipif mysql # not compatible
query I rowsort label-4052
SELECT - + 89 + - ( + 15 ) / 53 col0
----
-89

query I rowsort
SELECT ALL + 69 * 58 * - ( - 69 )
----
276138

query II rowsort
SELECT + 8 AS col0, 8 AS col1
----
8
8

query II rowsort
SELECT 34 AS col0, + 18 * + 81 AS col2
----
34
1458

onlyif mysql # aggregate syntax: 
query I rowsort label-4056
SELECT - NULLIF ( 44, + - 16 / - + 74 ) * + - 15 + - COUNT( * )
----
659

skipif mysql # not compatible
query I rowsort label-4056
SELECT - NULLIF ( 44, + - 16 / - + 74 ) * + - 15 + - COUNT ( * )
----
659

onlyif mysql # DIV for integer division: 
query I rowsort label-4057
SELECT 9 DIV - ( + - 74 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4057
SELECT 9 / - ( + - 74 ) AS col2
----
0

query I rowsort
SELECT COALESCE ( + 99, + 78 ) * 60 col2
----
5940

onlyif mysql # aggregate syntax: 
query I rowsort label-4059
SELECT 47 + COUNT( * ) + - COALESCE ( + - 73, - - 17, + - COUNT( * ) * + 28 + + + 40 )
----
121

skipif mysql # not compatible
query I rowsort label-4059
SELECT 47 + COUNT ( * ) + - COALESCE ( + - 73, - - 17, + - COUNT ( * ) * + 28 + + + 40 )
----
121

query I rowsort
SELECT 54 * - 6 AS col0
----
-324

onlyif mysql # aggregate syntax: 
query II rowsort label-4061
SELECT + 71, 17 * - COUNT( * ) * - 19 AS col0
----
71
323

skipif mysql # not compatible
query II rowsort label-4061
SELECT + 71, 17 * - COUNT ( * ) * - 19 AS col0
----
71
323

query II rowsort
SELECT 61 AS col2, ( - 81 ) AS col0
----
61
-81

query I rowsort
SELECT 44 * ( - + 63 ) col1
----
-2772

query II rowsort
SELECT ALL 82, + 75 AS col2
----
82
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4065
SELECT ALL 84 AS col0, - 85 DIV + SUM( 34 ) + + MIN( - 56 )
----
84
-58

skipif mysql # not compatible
query II rowsort label-4065
SELECT ALL 84 AS col0, - 85 / + SUM ( 34 ) + + MIN ( - 56 )
----
84
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-4066
SELECT DISTINCT MIN( DISTINCT - 59 ) + ( - - 43 )
----
-16

skipif mysql # not compatible
query I rowsort label-4066
SELECT DISTINCT MIN ( DISTINCT - 59 ) + ( - - 43 )
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-4067
SELECT COUNT( ALL 82 ) + + COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-4067
SELECT COUNT ( ALL 82 ) + + COUNT ( * )
----
2

query I rowsort
SELECT DISTINCT 2 + + ( 24 )
----
26

query II rowsort
SELECT - 95 AS col1, ( - 84 )
----
-95
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-4070
SELECT COUNT( * ) - - 6 + + 65 + - ( - + 59 ) * - 90
----
-5238

skipif mysql # not compatible
query I rowsort label-4070
SELECT COUNT ( * ) - - 6 + + 65 + - ( - + 59 ) * - 90
----
-5238

onlyif mysql # aggregate syntax: 
query I rowsort label-4071
SELECT 47 + + MIN( DISTINCT - - 47 ) AS col0
----
94

skipif mysql # not compatible
query I rowsort label-4071
SELECT 47 + + MIN ( DISTINCT - - 47 ) AS col0
----
94

query I rowsort
SELECT ALL - 58 + + 3 - 92 * + - 4 AS col0
----
313

onlyif mysql # DIV for integer division: 
query II rowsort label-4073
SELECT DISTINCT + 22, + 6 DIV + 42 AS col1
----
22
0

skipif mysql # not compatible
query II rowsort label-4073
SELECT DISTINCT + 22, + 6 / + 42 AS col1
----
22
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4074
SELECT ALL + 89 + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4074
SELECT ALL + 89 + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4075
SELECT DISTINCT - MIN( DISTINCT + COALESCE ( + 34, - 65 DIV - 82 DIV + 36 ) ) + 67 col2
----
33

skipif mysql # not compatible
query I rowsort label-4075
SELECT DISTINCT - MIN ( DISTINCT + COALESCE ( + 34, - 65 / - 82 / + 36 ) ) + 67 col2
----
33

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4076
SELECT 4 * COUNT( * ) * - COUNT( * ) DIV + ( - + ( COUNT( * ) ) ) col2, 98
----
4
98

skipif mysql # not compatible
query II rowsort label-4076
SELECT 4 * COUNT ( * ) * - COUNT ( * ) / + ( - + ( COUNT ( * ) ) ) col2, 98
----
4
98

onlyif mysql # aggregate syntax: 
query I rowsort label-4077
SELECT + COUNT( * ) * 4
----
4

skipif mysql # not compatible
query I rowsort label-4077
SELECT + COUNT ( * ) * 4
----
4

query II rowsort
SELECT ALL - 52 AS col0, 24 AS col1
----
-52
24

onlyif mysql # aggregate syntax: 
query I rowsort label-4079
SELECT ALL - MAX( 96 )
----
-96

skipif mysql # not compatible
query I rowsort label-4079
SELECT ALL - MAX ( 96 )
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-4080
SELECT ALL - 82 * - COUNT( * ) * - 27 * + 14 * - 67
----
2076732

skipif mysql # not compatible
query I rowsort label-4080
SELECT ALL - 82 * - COUNT ( * ) * - 27 * + 14 * - 67
----
2076732

query I rowsort
SELECT 73 * + 97
----
7081

onlyif mysql # aggregate syntax: 
query I rowsort label-4082
SELECT ALL + 21 * COUNT( * ) AS col1
----
21

skipif mysql # not compatible
query I rowsort label-4082
SELECT ALL + 21 * COUNT ( * ) AS col1
----
21

query I rowsort
SELECT 12 * + 72 AS col0
----
864

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4084
SELECT 48 * CASE 18 WHEN - 24 + + - 29 THEN NULLIF ( + + 43, NULLIF ( 10, - CASE + - ( - + CASE + MIN( CAST( + 84 AS SIGNED ) ) WHEN + 73 * - CAST( NULL AS SIGNED ) THEN 62 - + COUNT( * ) ELSE NULL END ) WHEN + 6 * MIN( 21 ) / + COUNT( * ) THEN NULL WHEN + 30 + - - 8 + 87 THEN 76 + + 71 ELSE ( COALESCE ( + ( + ( 74 ) ), + 81, 17 * + 29 ) ) + MAX( - 92 ) END ) + + 53 / 11 ) WHEN 16 - 68 THEN 31 * CAST( 25 / + NULLIF ( + 53, + 97 / + 50 ) AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-4084
SELECT 48 * CASE 18 WHEN - 24 + + - 29 THEN NULLIF ( + + 43, NULLIF ( 10, - CASE + - ( - + CASE + MIN ( CAST ( + 84 AS INTEGER ) ) WHEN + 73 * - CAST ( NULL AS INTEGER ) THEN 62 - + COUNT ( * ) ELSE NULL END ) WHEN + 6 * MIN ( 21 ) / + COUNT ( * ) THEN NULL WHEN + 30 + - - 8 + 87 THEN 76 + + 71 ELSE ( COALESCE ( + ( + ( 74 ) ), + 81, 17 * + 29 ) ) + MAX ( - 92 ) END ) + + 53 / 11 ) WHEN 16 - 68 THEN 31 * CAST ( 25 / + NULLIF ( + 53, + 97 / + 50 ) AS INTEGER ) END
----
NULL

query I rowsort
SELECT 28 - + + ( - 40 ) - - + 51
----
119

onlyif mysql # aggregate syntax: 
query I rowsort label-4086
SELECT DISTINCT - COUNT( DISTINCT 80 )
----
-1

skipif mysql # not compatible
query I rowsort label-4086
SELECT DISTINCT - COUNT ( DISTINCT 80 )
----
-1

query I rowsort
SELECT 37 * - 42 AS col1
----
-1554

query I rowsort
SELECT ALL 21 * 20
----
420

onlyif mysql # DIV for integer division: 
query I rowsort label-4089
SELECT 44 DIV 89 * - + 2
----
0

skipif mysql # not compatible
query I rowsort label-4089
SELECT 44 / 89 * - + 2
----
0

query I rowsort
SELECT ALL + 39 + 3 - 6 col0
----
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4091
SELECT DISTINCT 56 * + - 44 * - COUNT( CAST( - 57 AS SIGNED ) ) * 80 * + CASE - 6 WHEN CAST( NULL AS SIGNED ) + - 1 + 55 THEN NULL ELSE - 90 * + + 28 END DIV - COUNT( ALL + 24 ) + + MIN( DISTINCT 28 ) + + - 97 DIV - + 99
----
496742428

skipif mysql # not compatible
query I rowsort label-4091
SELECT DISTINCT 56 * + - 44 * - COUNT ( CAST ( - 57 AS INTEGER ) ) * 80 * + CASE - 6 WHEN CAST ( NULL AS INTEGER ) + - 1 + 55 THEN NULL ELSE - 90 * + + 28 END / - COUNT ( ALL + 24 ) + + MIN ( DISTINCT 28 ) + + - 97 / - + 99
----
496742428

query I rowsort
SELECT ALL 15 + 15 AS col0
----
30

query II rowsort
SELECT DISTINCT - 66 + + 69 * 58 AS col1, - 99 AS col0
----
3936
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4094
SELECT ALL + CAST( NULL AS SIGNED ) * - 97 * COALESCE ( - 18, 80 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4094
SELECT ALL + CAST ( NULL AS INTEGER ) * - 97 * COALESCE ( - 18, 80 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4095
SELECT 34 DIV + 90
----
0

skipif mysql # not compatible
query I rowsort label-4095
SELECT 34 / + 90
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4096
SELECT ALL 79 + + + COUNT( * ) AS col1
----
80

skipif mysql # not compatible
query I rowsort label-4096
SELECT ALL 79 + + + COUNT ( * ) AS col1
----
80

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4097
SELECT DISTINCT 14 + - 89 AS col1, 11 DIV + - ( - 52 ) - + COUNT( * ) * - NULLIF ( + 50, - ( 62 ) * + + 48 + - + MAX( + 63 ) )
----
-75
50

skipif mysql # not compatible
query II rowsort label-4097
SELECT DISTINCT 14 + - 89 AS col1, 11 / + - ( - 52 ) - + COUNT ( * ) * - NULLIF ( + 50, - ( 62 ) * + + 48 + - + MAX ( + 63 ) )
----
-75
50

query I rowsort
SELECT 62 + - + 89
----
-27

query I rowsort
SELECT ALL - 49 * + 86 AS col2
----
-4214

onlyif mysql # aggregate syntax: 
query I rowsort label-4100
SELECT DISTINCT 59 + - 72 + 54 * - 41 * CASE - 78 WHEN - 63 THEN NULL WHEN - 59 - - COUNT( * ) / - 85 THEN 89 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4100
SELECT DISTINCT 59 + - 72 + 54 * - 41 * CASE - 78 WHEN - 63 THEN NULL WHEN - 59 - - COUNT ( * ) / - 85 THEN 89 ELSE NULL END AS col2
----
NULL

query II rowsort
SELECT DISTINCT + 60 + - - 35 + - - 87, + 70 * - 42 AS col1
----
182
-2940

onlyif mysql # aggregate syntax: 
query I rowsort label-4102
SELECT DISTINCT - 27 - + CASE + 35 WHEN + 56 / 52 + - + 98 + - 68 * - 99 THEN 41 * + - COUNT( + - 64 ) + - - COALESCE ( - 13, ( - MAX( ( + 54 ) ) ), - ( 50 ) ) WHEN 50 THEN NULL END * + 97
----
NULL

skipif mysql # not compatible
query I rowsort label-4102
SELECT DISTINCT - 27 - + CASE + 35 WHEN + 56 / 52 + - + 98 + - 68 * - 99 THEN 41 * + - COUNT ( + - 64 ) + - - COALESCE ( - 13, ( - MAX ( ( + 54 ) ) ), - ( 50 ) ) WHEN 50 THEN NULL END * + 97
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4103
SELECT ALL - SUM( ALL - COALESCE ( + + 96, + 8 ) ) * 68 + + 96 * 84 * + 33
----
272640

skipif mysql # not compatible
query I rowsort label-4103
SELECT ALL - SUM ( ALL - COALESCE ( + + 96, + 8 ) ) * 68 + + 96 * 84 * + 33
----
272640

onlyif mysql # aggregate syntax: 
query I rowsort label-4104
SELECT COUNT( * ) - - 40
----
41

skipif mysql # not compatible
query I rowsort label-4104
SELECT COUNT ( * ) - - 40
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-4105
SELECT - COALESCE ( + MAX( ( - + 8 ) ), - 93, - 79 + 80 ) - + 56
----
-48

skipif mysql # not compatible
query I rowsort label-4105
SELECT - COALESCE ( + MAX ( ( - + 8 ) ), - 93, - 79 + 80 ) - + 56
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-4106
SELECT ALL - 33 * COUNT( * ) * 6
----
-198

skipif mysql # not compatible
query I rowsort label-4106
SELECT ALL - 33 * COUNT ( * ) * 6
----
-198

onlyif mysql # aggregate syntax: 
query I rowsort label-4107
SELECT ALL CASE - - COALESCE ( 77, - 51 + 73 * 62 / + CASE 12 WHEN + COUNT( * ) THEN + 66 * 87 END - - 0 ) WHEN + 74 THEN + 62 * COUNT( * ) ELSE NULL END - 36 / - + 72 * MIN( ALL + 54 ) / 99 + - - 75 - + AVG ( - 90 ) / + 28 * + 93 * + - 86 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4107
SELECT ALL CASE - - COALESCE ( 77, - 51 + 73 * 62 / + CASE 12 WHEN + COUNT ( * ) THEN + 66 * 87 END - - 0 ) WHEN + 74 THEN + 62 * COUNT ( * ) ELSE NULL END - 36 / - + 72 * MIN ( ALL + 54 ) / 99 + - - 75 - + AVG ( - 90 ) / + 28 * + 93 * + - 86 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4108
SELECT DISTINCT + 0 * + - COUNT( ALL 87 ) + 52 AS col0
----
52

skipif mysql # not compatible
query I rowsort label-4108
SELECT DISTINCT + 0 * + - COUNT ( ALL 87 ) + 52 AS col0
----
52

query II rowsort
SELECT DISTINCT - ( - - 96 ) AS col0, - 77
----
-96
-77

query I rowsort
SELECT 88 * - + 41 AS col2
----
-3608

onlyif mysql # aggregate syntax: 
query II rowsort label-4111
SELECT - 76 * - 68 AS col0, - SUM( 74 ) + 50 + 10 AS col1
----
5168
-14

skipif mysql # not compatible
query II rowsort label-4111
SELECT - 76 * - 68 AS col0, - SUM ( 74 ) + 50 + 10 AS col1
----
5168
-14

onlyif mysql # DIV for integer division: 
query I rowsort label-4112
SELECT ALL + + 1 DIV + - 61
----
0

skipif mysql # not compatible
query I rowsort label-4112
SELECT ALL + + 1 / + - 61
----
0

query II rowsort
SELECT ALL + CASE NULLIF ( 3, 80 / - 21 ) WHEN + 31 THEN + 64 WHEN + 7 / - 69 + - 82 THEN NULL ELSE NULL END AS col1, - 81 AS col1
----
NULL
-81

query I rowsort
SELECT + 29 + + 30 AS col1
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-4115
SELECT MIN( ALL + 66 ) AS col2
----
66

skipif mysql # not compatible
query I rowsort label-4115
SELECT MIN ( ALL + 66 ) AS col2
----
66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4116
SELECT + 40 DIV + CASE - - COALESCE ( - 0, + 50 + + - 21 + SUM( DISTINCT - 62 ), - COUNT( * ) * COUNT( * ) ) WHEN 7 * + + 18 * - 0 DIV - 92 THEN - COUNT( * ) END AS col0
----
-40

skipif mysql # not compatible
query I rowsort label-4116
SELECT + 40 / + CASE - - COALESCE ( - 0, + 50 + + - 21 + SUM ( DISTINCT - 62 ), - COUNT ( * ) * COUNT ( * ) ) WHEN 7 * + + 18 * - 0 / - 92 THEN - COUNT ( * ) END AS col0
----
-40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4117
SELECT - 46 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4117
SELECT - 46 * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4118
SELECT + 57 + + - COUNT( * ) DIV + 94 AS col2
----
57

skipif mysql # not compatible
query I rowsort label-4118
SELECT + 57 + + - COUNT ( * ) / + 94 AS col2
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-4119
SELECT ALL - NULLIF ( + ( + COUNT( * ) ), + 92 + - 0 ) * + - COUNT( * ) + 26 AS col0
----
27

skipif mysql # not compatible
query I rowsort label-4119
SELECT ALL - NULLIF ( + ( + COUNT ( * ) ), + 92 + - 0 ) * + - COUNT ( * ) + 26 AS col0
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-4120
SELECT DISTINCT + 25 * - 33 * + ( - COUNT( * ) )
----
825

skipif mysql # not compatible
query I rowsort label-4120
SELECT DISTINCT + 25 * - 33 * + ( - COUNT ( * ) )
----
825

onlyif mysql # aggregate syntax: 
query I rowsort label-4121
SELECT - COUNT( + 15 ) + ( MAX( - 77 ) ) AS col0
----
-78

skipif mysql # not compatible
query I rowsort label-4121
SELECT - COUNT ( + 15 ) + ( MAX ( - 77 ) ) AS col0
----
-78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4122
SELECT ALL 73 * + CAST( NULL AS SIGNED ) / - 82 * 61 + + + AVG ( ALL - 24 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4122
SELECT ALL 73 * + CAST ( NULL AS INTEGER ) / - 82 * 61 + + + AVG ( ALL - 24 ) AS col2
----
NULL

query I rowsort
SELECT - 80 + - 33 AS col2
----
-113

query II rowsort
SELECT ALL + 98 col1, 27
----
98
27

query I rowsort
SELECT + NULLIF ( + - 46, + 69 ) AS col2
----
-46

onlyif mysql # aggregate syntax: 
query II rowsort label-4126
SELECT COUNT( * ), 35 + + 58 AS col0
----
1
93

skipif mysql # not compatible
query II rowsort label-4126
SELECT COUNT ( * ), 35 + + 58 AS col0
----
1
93

onlyif mysql # aggregate syntax: 
query I rowsort label-4127
SELECT + SUM( ALL - 24 ) * - - 27 + - 87 AS col1
----
-735

skipif mysql # not compatible
query I rowsort label-4127
SELECT + SUM ( ALL - 24 ) * - - 27 + - 87 AS col1
----
-735

onlyif mysql # aggregate syntax: 
query II rowsort label-4128
SELECT COUNT( * ) AS col2, ( - + 66 ) AS col1
----
1
-66

skipif mysql # not compatible
query II rowsort label-4128
SELECT COUNT ( * ) AS col2, ( - + 66 ) AS col1
----
1
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-4129
SELECT ALL 10 * COALESCE ( - - 18, - - 29 ) + - + ( - - MIN( 70 ) ) + - 38 AS col1
----
72

skipif mysql # not compatible
query I rowsort label-4129
SELECT ALL 10 * COALESCE ( - - 18, - - 29 ) + - + ( - - MIN ( 70 ) ) + - 38 AS col1
----
72

query I rowsort
SELECT ALL 79 * 31 + 43 + + + 9 * + 33
----
2789

query I rowsort
SELECT - 61 + - - 5 col1
----
-56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4132
SELECT - COALESCE ( + CAST( - + 72 AS SIGNED ), + 39 ) * + + COUNT( * ) * ( 63 ) * + 86 * CASE + 4 WHEN - 87 * COUNT( * ) * - - 67 - - + COUNT( CAST( NULL AS SIGNED ) ) THEN 90 WHEN + 76 + + AVG ( ALL + + 81 ) THEN + CAST( NULL AS SIGNED ) + + ( - 90 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-4132
SELECT - COALESCE ( + CAST ( - + 72 AS INTEGER ), + 39 ) * + + COUNT ( * ) * ( 63 ) * + 86 * CASE + 4 WHEN - 87 * COUNT ( * ) * - - 67 - - + COUNT ( CAST ( NULL AS INTEGER ) ) THEN 90 WHEN + 76 + + AVG ( ALL + + 81 ) THEN + CAST ( NULL AS INTEGER ) + + ( - 90 ) END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4133
SELECT ALL + 81 DIV 56
----
1

skipif mysql # not compatible
query I rowsort label-4133
SELECT ALL + 81 / 56
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4134
SELECT ALL ( + + COUNT( - 26 ) )
----
1

skipif mysql # not compatible
query I rowsort label-4134
SELECT ALL ( + + COUNT ( - 26 ) )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4135
SELECT - 30 * - - 58 + - + 24 * - - ( 35 ) + - 98 DIV - MIN( ALL - 44 ) AS col1
----
-2582

skipif mysql # not compatible
query I rowsort label-4135
SELECT - 30 * - - 58 + - + 24 * - - ( 35 ) + - 98 / - MIN ( ALL - 44 ) AS col1
----
-2582

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4136
SELECT ALL + CASE 36 WHEN + MAX( ALL - 42 ) THEN NULL WHEN - 26 * - 11 + + CAST( NULL AS SIGNED ) * - CASE + - 5 WHEN - 46 THEN + 14 ELSE NULL END + + + 48 - COUNT( * ) * - - COUNT( DISTINCT + 81 ) + - + 23 + + - 51 THEN - - 39 ELSE NULL END * + 70 * + COUNT( * ) + - 87 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4136
SELECT ALL + CASE 36 WHEN + MAX ( ALL - 42 ) THEN NULL WHEN - 26 * - 11 + + CAST ( NULL AS INTEGER ) * - CASE + - 5 WHEN - 46 THEN + 14 ELSE NULL END + + + 48 - COUNT ( * ) * - - COUNT ( DISTINCT + 81 ) + - + 23 + + - 51 THEN - - 39 ELSE NULL END * + 70 * + COUNT ( * ) + - 87 AS col0
----
NULL

query I rowsort
SELECT - + 61 + - - 17
----
-44

query I rowsort
SELECT DISTINCT - + 12 - - 25
----
13

query I rowsort
SELECT ALL - ( - 21 ) AS col0
----
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4140
SELECT - + 10 AS col1, CAST( + COUNT( * ) AS SIGNED )
----
-10
1

skipif mysql # not compatible
query II rowsort label-4140
SELECT - + 10 AS col1, CAST ( + COUNT ( * ) AS INTEGER )
----
-10
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4141
SELECT + - MAX( DISTINCT + CAST( NULL AS SIGNED ) ) + - 67 + 49 * ( - 71 ) * - - 53 - ( 85 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4141
SELECT + - MAX ( DISTINCT + CAST ( NULL AS INTEGER ) ) + - 67 + 49 * ( - 71 ) * - - 53 - ( 85 ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4142
SELECT - CAST( NULL AS SIGNED ) + - NULLIF ( + 32, - + 11 ), + 75 + - 97 * + 8 + 36 + 51 + 99 * 44 DIV - - 64 + - 84 AS col2
----
NULL
-630

skipif mysql # not compatible
query II rowsort label-4142
SELECT - CAST ( NULL AS INTEGER ) + - NULLIF ( + 32, - + 11 ), + 75 + - 97 * + 8 + 36 + 51 + 99 * 44 / - - 64 + - 84 AS col2
----
NULL
-630

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4143
SELECT - - 43 * - - 70 + + - COUNT( * ) + CASE COALESCE ( - 41, + NULLIF ( + 95, - 4 + ( - - 51 ) ) + CASE 74 WHEN 50 + - + 40 * - 58 THEN + COUNT( * ) WHEN - + COALESCE ( - 99, + CAST( NULL AS SIGNED ), - CAST( NULL AS SIGNED ) / - CASE - 75 WHEN 48 THEN NULL WHEN - 65 THEN + 24 ELSE NULL END + + 73 ) THEN - 74 WHEN + + CASE - ( - - 84 ) WHEN - 77 + + ( 41 ) - 2 THEN 43 WHEN COUNT( * ) THEN NULL END THEN 2 - 61 * - 41 END, ( 73 ) + 87 ) WHEN 42 THEN NULL WHEN 40 THEN + 53 + - 42 ELSE NULL END / + 91
----
NULL

skipif mysql # not compatible
query I rowsort label-4143
SELECT - - 43 * - - 70 + + - COUNT ( * ) + CASE COALESCE ( - 41, + NULLIF ( + 95, - 4 + ( - - 51 ) ) + CASE 74 WHEN 50 + - + 40 * - 58 THEN + COUNT ( * ) WHEN - + COALESCE ( - 99, + CAST ( NULL AS INTEGER ), - CAST ( NULL AS INTEGER ) / - CASE - 75 WHEN 48 THEN NULL WHEN - 65 THEN + 24 ELSE NULL END + + 73 ) THEN - 74 WHEN + + CASE - ( - - 84 ) WHEN - 77 + + ( 41 ) - 2 THEN 43 WHEN COUNT ( * ) THEN NULL END THEN 2 - 61 * - 41 END, ( 73 ) + 87 ) WHEN 42 THEN NULL WHEN 40 THEN + 53 + - 42 ELSE NULL END / + 91
----
NULL

query I rowsort
SELECT - 19 + - + 62 col0
----
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4145
SELECT DISTINCT ( + CAST( + 59 AS SIGNED ) )
----
59

skipif mysql # not compatible
query I rowsort label-4145
SELECT DISTINCT ( + CAST ( + 59 AS INTEGER ) )
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-4146
SELECT ALL + MIN( - 16 )
----
-16

skipif mysql # not compatible
query I rowsort label-4146
SELECT ALL + MIN ( - 16 )
----
-16

query I rowsort
SELECT - + 16 * - + 65
----
1040

onlyif mysql # aggregate syntax: 
query I rowsort label-4148
SELECT - COALESCE ( COUNT( * ), - 43 + 89 )
----
-1

skipif mysql # not compatible
query I rowsort label-4148
SELECT - COALESCE ( COUNT ( * ), - 43 + 89 )
----
-1

query I rowsort
SELECT + 22 * - - 15 AS col0
----
330

query I rowsort
SELECT ALL 45 * 64 AS col0
----
2880

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4151
SELECT CAST( MAX( ALL - + 47 ) AS SIGNED ) AS col2
----
-47

skipif mysql # not compatible
query I rowsort label-4151
SELECT CAST ( MAX ( ALL - + 47 ) AS INTEGER ) AS col2
----
-47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4152
SELECT + 86 DIV - - COUNT( * ) AS col0
----
86

skipif mysql # not compatible
query I rowsort label-4152
SELECT + 86 / - - COUNT ( * ) AS col0
----
86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4153
SELECT ALL CAST( + 20 AS SIGNED ) DIV - 38 DIV + - COUNT( * ) + 86 * - ( + COUNT( * ) ) col1
----
-86

skipif mysql # not compatible
query I rowsort label-4153
SELECT ALL CAST ( + 20 AS INTEGER ) / - 38 / + - COUNT ( * ) + 86 * - ( + COUNT ( * ) ) col1
----
-86

query I rowsort
SELECT + ( 36 ) AS col1
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-4155
SELECT ( - MAX( + - 11 ) ) AS col0
----
11

skipif mysql # not compatible
query I rowsort label-4155
SELECT ( - MAX ( + - 11 ) ) AS col0
----
11

onlyif mysql # DIV for integer division: 
query I rowsort label-4156
SELECT - 56 DIV 58 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4156
SELECT - 56 / 58 AS col2
----
0

query I rowsort
SELECT + 68 * 36 col0
----
2448

onlyif mysql # DIV for integer division: 
query I rowsort label-4158
SELECT DISTINCT 79 DIV - + 27 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-4158
SELECT DISTINCT 79 / - + 27 AS col2
----
-2

query I rowsort
SELECT ALL 6 * - 42 + 17 AS col2
----
-235

onlyif mysql # aggregate syntax: 
query I rowsort label-4160
SELECT CASE + COUNT( * ) WHEN NULLIF ( - - 3, + 80 ) + + 43 THEN NULL ELSE + ( + + COALESCE ( + + SUM( ALL + 23 ), + 59 * + 31 - - 19, - ( + - 45 ) ) ) + - COUNT( * ) END
----
22

skipif mysql # not compatible
query I rowsort label-4160
SELECT CASE + COUNT ( * ) WHEN NULLIF ( - - 3, + 80 ) + + 43 THEN NULL ELSE + ( + + COALESCE ( + + SUM ( ALL + 23 ), + 59 * + 31 - - 19, - ( + - 45 ) ) ) + - COUNT ( * ) END
----
22

query I rowsort
SELECT ALL 43 * 52 - + 3 * + 42 + + + 76 + + 60 AS col2
----
2246

onlyif mysql # aggregate syntax: 
query II rowsort label-4162
SELECT COALESCE ( - 18, - 78 * + COUNT( * ) - - 67 + 31 + - + 83 ) col0, MIN( - + 61 )
----
-18
-61

skipif mysql # not compatible
query II rowsort label-4162
SELECT COALESCE ( - 18, - 78 * + COUNT ( * ) - - 67 + 31 + - + 83 ) col0, MIN ( - + 61 )
----
-18
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-4163
SELECT DISTINCT + 77 * + COUNT( * ) * 52
----
4004

skipif mysql # not compatible
query I rowsort label-4163
SELECT DISTINCT + 77 * + COUNT ( * ) * 52
----
4004

onlyif mysql # aggregate syntax: 
query I rowsort label-4164
SELECT ALL + 77 * COUNT( * ) - + CASE - 5 WHEN - 56 THEN ( - 24 ) + ( + 63 ) END + - 8 - + COUNT( * ) - + + 67 * + + 4 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4164
SELECT ALL + 77 * COUNT ( * ) - + CASE - 5 WHEN - 56 THEN ( - 24 ) + ( + 63 ) END + - 8 - + COUNT ( * ) - + + 67 * + + 4 AS col2
----
NULL

query I rowsort
SELECT 32 * + 97 - 62 + 43
----
3085

query I rowsort
SELECT ALL - - 10 * 56 - 77 AS col1
----
483

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4167
SELECT - + 57 - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4167
SELECT - + 57 - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4168
SELECT - 64 * - + COUNT( * )
----
64

skipif mysql # not compatible
query I rowsort label-4168
SELECT - 64 * - + COUNT ( * )
----
64

onlyif mysql # DIV for integer division: 
query I rowsort label-4169
SELECT DISTINCT - - 60 DIV - 62 * - + 26
----
0

skipif mysql # not compatible
query I rowsort label-4169
SELECT DISTINCT - - 60 / - 62 * - + 26
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4170
SELECT - + COUNT( * ) * + 52 * + 37 + 88 + + - 89 AS col1
----
-1925

skipif mysql # not compatible
query I rowsort label-4170
SELECT - + COUNT ( * ) * + 52 * + 37 + 88 + + - 89 AS col1
----
-1925

query I rowsort
SELECT ALL - ( 11 ) * 82
----
-902

query I rowsort
SELECT ALL + CASE ( 13 ) WHEN + 41 THEN NULL ELSE 92 END AS col2
----
92

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4173
SELECT - 97 DIV COUNT( * )
----
-97

skipif mysql # not compatible
query I rowsort label-4173
SELECT - 97 / COUNT ( * )
----
-97

query II rowsort
SELECT - 67 * 50 AS col2, + 33 * + 62 * - - 65 col0
----
-3350
132990

query I rowsort
SELECT 50 - ( 35 )
----
15

onlyif mysql # aggregate syntax: 
query II rowsort label-4176
SELECT + COALESCE ( - - 94, + SUM( DISTINCT - 4 ), 19 * - + COUNT( - 72 ) ) AS col0, + 16 AS col1
----
94
16

skipif mysql # not compatible
query II rowsort label-4176
SELECT + COALESCE ( - - 94, + SUM ( DISTINCT - 4 ), 19 * - + COUNT ( - 72 ) ) AS col0, + 16 AS col1
----
94
16

onlyif mysql # DIV for integer division: 
query I rowsort label-4177
SELECT 9 DIV + + 50 + - - 96 AS col2
----
96

skipif mysql # not compatible
query I rowsort label-4177
SELECT 9 / + + 50 + - - 96 AS col2
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4178
SELECT DISTINCT + 31 + + 70 * - - NULLIF ( MAX( - - 75 ), + 1 * 31 + - - 26 + - + 0 + + 95 * - + ( COUNT( * ) ) + - 65 * + ( - 83 ) + - - COUNT( * ) * + COUNT( 36 ) ) AS col1
----
5281

skipif mysql # not compatible
query I rowsort label-4178
SELECT DISTINCT + 31 + + 70 * - - NULLIF ( MAX ( - - 75 ), + 1 * 31 + - - 26 + - + 0 + + 95 * - + ( COUNT ( * ) ) + - 65 * + ( - 83 ) + - - COUNT ( * ) * + COUNT ( 36 ) ) AS col1
----
5281

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4179
SELECT ALL ( + - CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4179
SELECT ALL ( + - CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

query I rowsort
SELECT 38 + - - 32
----
70

query I rowsort
SELECT DISTINCT 39 + + 0 - + 69 AS col2
----
-30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4182
SELECT ALL 98 + + SUM( DISTINCT 28 ) * - + 87 + CAST( + 21 AS SIGNED ) * 76 AS col1
----
-742

skipif mysql # not compatible
query I rowsort label-4182
SELECT ALL 98 + + SUM ( DISTINCT 28 ) * - + 87 + CAST ( + 21 AS INTEGER ) * 76 AS col1
----
-742

onlyif mysql # aggregate syntax: 
query I rowsort label-4183
SELECT ALL - CASE + 8 WHEN + SUM( ALL - + 95 ) * 24 THEN - + 40 + - 50 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4183
SELECT ALL - CASE + 8 WHEN + SUM ( ALL - + 95 ) * 24 THEN - + 40 + - 50 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4184
SELECT 89 DIV - ( + 36 ) + - 82 * + 34 * - 56 * + 84 AS col2
----
13114750

skipif mysql # not compatible
query I rowsort label-4184
SELECT 89 / - ( + 36 ) + - 82 * + 34 * - 56 * + 84 AS col2
----
13114750

onlyif mysql # aggregate syntax: 
query I rowsort label-4185
SELECT CASE - + 69 WHEN - 28 THEN + - MIN( + 65 ) WHEN - 62 + - 49 + NULLIF ( + 76, - 65 ) THEN NULL END * - + 24 * ( + 87 ) + - 0 - 69 - + 72 * ( - - 10 ) - + - 70
----
NULL

skipif mysql # not compatible
query I rowsort label-4185
SELECT CASE - + 69 WHEN - 28 THEN + - MIN ( + 65 ) WHEN - 62 + - 49 + NULLIF ( + 76, - 65 ) THEN NULL END * - + 24 * ( + 87 ) + - 0 - 69 - + 72 * ( - - 10 ) - + - 70
----
NULL

query II rowsort
SELECT + 14, + NULLIF ( - 83, 42 ) AS col1
----
14
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-4187
SELECT 37 + + ( - - MIN( DISTINCT - 62 ) ) + 91
----
66

skipif mysql # not compatible
query I rowsort label-4187
SELECT 37 + + ( - - MIN ( DISTINCT - 62 ) ) + 91
----
66

query I rowsort
SELECT ALL 38 - 12
----
26

query II rowsort
SELECT 53 * + 50 * - 86 + - 54 + - + 21 + - 4 AS col1, + 87 AS col0
----
-227979
87

query I rowsort
SELECT ALL 56 * + 46 * + - 42
----
-108192

query I rowsort
SELECT 78 * + 3 * + 61 AS col0
----
14274

query II rowsort
SELECT ALL - 27 col2, - 30 AS col2
----
-27
-30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4193
SELECT ( + - MIN( + + 36 ) ) * + + 5 + + + CAST( NULL AS SIGNED ) + + 45 + + + 3 + - 88 + + ( + 13 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4193
SELECT ( + - MIN ( + + 36 ) ) * + + 5 + + + CAST ( NULL AS INTEGER ) + + 45 + + + 3 + - 88 + + ( + 13 )
----
NULL

query I rowsort
SELECT 68 * - + 27
----
-1836

onlyif mysql # aggregate syntax: 
query I rowsort label-4195
SELECT COALESCE ( + 12, - + NULLIF ( + 29, + 98 + - - 56 + + COUNT( DISTINCT - 71 ) + + + 9 ) ) * 53 AS col0
----
636

skipif mysql # not compatible
query I rowsort label-4195
SELECT COALESCE ( + 12, - + NULLIF ( + 29, + 98 + - - 56 + + COUNT ( DISTINCT - 71 ) + + + 9 ) ) * 53 AS col0
----
636

onlyif mysql # aggregate syntax: 
query I rowsort label-4196
SELECT ALL 96 - + - 29 / + CASE 58 WHEN + + 66 THEN + - 93 WHEN COALESCE ( + - 27, - - 61 ) + + - MIN( DISTINCT + 8 ) + 51 / - COUNT( * ) THEN 79 / - + 66 + 16 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4196
SELECT ALL 96 - + - 29 / + CASE 58 WHEN + + 66 THEN + - 93 WHEN COALESCE ( + - 27, - - 61 ) + + - MIN ( DISTINCT + 8 ) + 51 / - COUNT ( * ) THEN 79 / - + 66 + 16 ELSE NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4197
SELECT ALL 9 / CAST( NULL AS SIGNED ) * + - 77 - 28 + 56 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4197
SELECT ALL 9 / CAST ( NULL AS INTEGER ) * + - 77 - 28 + 56 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4198
SELECT + 49 DIV + + COUNT( * ) AS col2
----
49

skipif mysql # not compatible
query I rowsort label-4198
SELECT + 49 / + + COUNT ( * ) AS col2
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-4199
SELECT + COUNT( ALL - - ( + 25 ) ) + - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-4199
SELECT + COUNT ( ALL - - ( + 25 ) ) + - COUNT ( * )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4200
SELECT DISTINCT + 79 DIV + 23
----
3

skipif mysql # not compatible
query I rowsort label-4200
SELECT DISTINCT + 79 / + 23
----
3

query I rowsort
SELECT ALL - + 83 * + 26 + + - 22 AS col2
----
-2180

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4202
SELECT 17 + - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4202
SELECT 17 + - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4203
SELECT DISTINCT - 98 * - MIN( + 5 ) + + 47 - - 93 * - ( 96 )
----
-8391

skipif mysql # not compatible
query I rowsort label-4203
SELECT DISTINCT - 98 * - MIN ( + 5 ) + + 47 - - 93 * - ( 96 )
----
-8391

onlyif mysql # aggregate syntax: 
query I rowsort label-4204
SELECT ALL + + 70 + - - ( + + 77 ) + SUM( ALL - - 84 )
----
231

skipif mysql # not compatible
query I rowsort label-4204
SELECT ALL + + 70 + - - ( + + 77 ) + SUM ( ALL - - 84 )
----
231

onlyif mysql # aggregate syntax: 
query I rowsort label-4205
SELECT ALL - + COUNT( * ) * + - 93
----
93

skipif mysql # not compatible
query I rowsort label-4205
SELECT ALL - + COUNT ( * ) * + - 93
----
93

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4206
SELECT ALL 98 * + + NULLIF ( 38, CAST( NULL AS DECIMAL ) + + + 73 + + - 71 ) + + 74 * - - 39
----
6610

skipif mysql # not compatible
query I rowsort label-4206
SELECT ALL 98 * + + NULLIF ( 38, CAST ( NULL AS REAL ) + + + 73 + + - 71 ) + + 74 * - - 39
----
6610

query I rowsort
SELECT 96 * - 94 * + 3 * ( - ( + 87 ) )
----
2355264

query I rowsort
SELECT - 38 + - 37
----
-75

onlyif mysql # aggregate syntax: 
query II rowsort label-4209
SELECT - + 42 col2, 66 * COUNT( * ) AS col2
----
-42
66

skipif mysql # not compatible
query II rowsort label-4209
SELECT - + 42 col2, 66 * COUNT ( * ) AS col2
----
-42
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4210
SELECT ALL + - 78 + - - 33 * + ( + ( + + SUM( - + 77 ) ) ) / + + 81 + + CASE CASE - AVG ( + 34 ) WHEN + 43 / + COALESCE ( + 1, 11 ) + + + CASE - 0 WHEN + CAST( 24 AS SIGNED ) * + MAX( 85 ) THEN - + 26 * - 34 - 12 + - 96 WHEN 94 THEN NULL END * - - COUNT( * ) + - 93 THEN COALESCE ( + 98, + 78 - 93 ) WHEN 37 + + 18 + + 83 + - 38 * 1 THEN NULL ELSE CAST( 94 AS DECIMAL ) END WHEN 15 THEN COUNT( * ) WHEN 47 THEN NULL END + 24 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4210
SELECT ALL + - 78 + - - 33 * + ( + ( + + SUM ( - + 77 ) ) ) / + + 81 + + CASE CASE - AVG ( + 34 ) WHEN + 43 / + COALESCE ( + 1, 11 ) + + + CASE - 0 WHEN + CAST ( 24 AS INTEGER ) * + MAX ( 85 ) THEN - + 26 * - 34 - 12 + - 96 WHEN 94 THEN NULL END * - - COUNT ( * ) + - 93 THEN COALESCE ( + 98, + 78 - 93 ) WHEN 37 + + 18 + + 83 + - 38 * 1 THEN NULL ELSE CAST ( 94 AS REAL ) END WHEN 15 THEN COUNT ( * ) WHEN 47 THEN NULL END + 24 AS col1
----
NULL

query I rowsort
SELECT - 65 * + 81 AS col0
----
-5265

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4212
SELECT + 4 + + COUNT( * ) DIV 95 * + 62 - 22 * + - 82 * 80 AS col2
----
144324

skipif mysql # not compatible
query I rowsort label-4212
SELECT + 4 + + COUNT ( * ) / 95 * + 62 - 22 * + - 82 * 80 AS col2
----
144324

query I rowsort
SELECT ALL + - 3 + + ( 95 )
----
92

query I rowsort
SELECT 65 + - 22 AS col0
----
43

query I rowsort
SELECT ALL - 2 + + 94 * + 9 + - 53 AS col2
----
791

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4216
SELECT ALL - COUNT( * ) DIV 64 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4216
SELECT ALL - COUNT ( * ) / 64 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4217
SELECT + 31 + COUNT( * )
----
32

skipif mysql # not compatible
query I rowsort label-4217
SELECT + 31 + COUNT ( * )
----
32

query I rowsort
SELECT ALL - + 90 + 74
----
-16

query II rowsort
SELECT DISTINCT 3 AS col2, ( + + 44 )
----
3
44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4220
SELECT ALL - 20 + + 1 + + COALESCE ( + ( ( - ( 93 ) ) ), + 13 + 67 + - 94 ) - + + CAST( NULL AS SIGNED ) * + 36 * - - 10 + - 49 + + CAST( COUNT( - 81 ) AS SIGNED ) * - 56 + - + 46 + 44 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4220
SELECT ALL - 20 + + 1 + + COALESCE ( + ( ( - ( 93 ) ) ), + 13 + 67 + - 94 ) - + + CAST ( NULL AS INTEGER ) * + 36 * - - 10 + - 49 + + CAST ( COUNT ( - 81 ) AS INTEGER ) * - 56 + - + 46 + 44 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4221
SELECT 54 + 90 + - + ( + CASE + + 21 WHEN - 35 THEN NULL WHEN + 91 + - - 70 + - 57 / + 92 - CASE + 91 WHEN 74 + - - 17 + + + 9 * + CAST( NULL AS DECIMAL ) * 0 / 41 THEN NULL ELSE - 96 * - - 66 * - COUNT( * ) * 53 - + 93 END THEN + - MIN( - ( - COALESCE ( 61, 47 ) ) ) ELSE + + 76 * - - 11 + 5 END ) * 75 + 98 AS col0
----
-62833

skipif mysql # not compatible
query I rowsort label-4221
SELECT 54 + 90 + - + ( + CASE + + 21 WHEN - 35 THEN NULL WHEN + 91 + - - 70 + - 57 / + 92 - CASE + 91 WHEN 74 + - - 17 + + + 9 * + CAST ( NULL AS REAL ) * 0 / 41 THEN NULL ELSE - 96 * - - 66 * - COUNT ( * ) * 53 - + 93 END THEN + - MIN ( - ( - COALESCE ( 61, 47 ) ) ) ELSE + + 76 * - - 11 + 5 END ) * 75 + 98 AS col0
----
-62833

query II rowsort
SELECT 26 AS col0, 60 AS col0
----
26
60

onlyif mysql # DIV for integer division: 
query I rowsort label-4223
SELECT ALL + ( - 65 ) DIV + + 52
----
-1

skipif mysql # not compatible
query I rowsort label-4223
SELECT ALL + ( - 65 ) / + + 52
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4224
SELECT COALESCE ( - 84, - 23 * 26 DIV - NULLIF ( 93, + 62 ) - 65 - ( + - CAST( NULL AS SIGNED ) ) + - 85 + + - 60 DIV + 70 - + ( - CAST( NULL AS SIGNED ) ), - - 72 * 20 + - MIN( - 34 ) ) DIV + MAX( + 86 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4224
SELECT COALESCE ( - 84, - 23 * 26 / - NULLIF ( 93, + 62 ) - 65 - ( + - CAST ( NULL AS INTEGER ) ) + - 85 + + - 60 / + 70 - + ( - CAST ( NULL AS INTEGER ) ), - - 72 * 20 + - MIN ( - 34 ) ) / + MAX ( + 86 ) AS col2
----
0

query I rowsort
SELECT 63 + 10
----
73

query II rowsort
SELECT - 9, - 94 AS col0
----
-9
-94

query I rowsort
SELECT 73 + 95 + - 60
----
108

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4228
SELECT ALL - 21 - CAST( NULL AS SIGNED ) + - 28 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4228
SELECT ALL - 21 - CAST ( NULL AS INTEGER ) + - 28 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4229
SELECT 47 * 50 DIV - 4 AS col1
----
-587

skipif mysql # not compatible
query I rowsort label-4229
SELECT 47 * 50 / - 4 AS col1
----
-587

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4230
SELECT MAX( ALL - 24 ) + + + COUNT( * ) * + - CAST( NULL AS SIGNED ) * + 32
----
NULL

skipif mysql # not compatible
query I rowsort label-4230
SELECT MAX ( ALL - 24 ) + + + COUNT ( * ) * + - CAST ( NULL AS INTEGER ) * + 32
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4231
SELECT 53 DIV 89 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4231
SELECT 53 / 89 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4232
SELECT MIN( DISTINCT - 79 ) * 50 * - 91 - 97 col0
----
359353

skipif mysql # not compatible
query I rowsort label-4232
SELECT MIN ( DISTINCT - 79 ) * 50 * - 91 - 97 col0
----
359353

query I rowsort
SELECT ALL - 77 * - 49 - + 69 col0
----
3704

onlyif mysql # aggregate syntax: 
query II rowsort label-4234
SELECT DISTINCT - 40 AS col0, + 62 * + COALESCE ( - COUNT( * ), - + 28 ) * + 17 * - + 35
----
-40
36890

skipif mysql # not compatible
query II rowsort label-4234
SELECT DISTINCT - 40 AS col0, + 62 * + COALESCE ( - COUNT ( * ), - + 28 ) * + 17 * - + 35
----
-40
36890

onlyif mysql # DIV for integer division: 
query I rowsort label-4235
SELECT ALL 10 * + ( - 33 ) - + 65 DIV - + 63
----
-329

skipif mysql # not compatible
query I rowsort label-4235
SELECT ALL 10 * + ( - 33 ) - + 65 / - + 63
----
-329

onlyif mysql # aggregate syntax: 
query II rowsort label-4236
SELECT + 30 AS col2, COUNT( * ) + + 36 * + + 64 * 7 * + 75
----
30
1209601

skipif mysql # not compatible
query II rowsort label-4236
SELECT + 30 AS col2, COUNT ( * ) + + 36 * + + 64 * 7 * + 75
----
30
1209601

query I rowsort
SELECT + ( - ( + COALESCE ( + - 1, + + 42 ) ) ) * - - 1 + - - 19 * 1
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-4238
SELECT COUNT( DISTINCT - + 79 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4238
SELECT COUNT ( DISTINCT - + 79 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-4239
SELECT COUNT( * ) col2, 16 AS col1
----
1
16

skipif mysql # not compatible
query II rowsort label-4239
SELECT COUNT ( * ) col2, 16 AS col1
----
1
16

onlyif mysql # aggregate syntax: 
query I rowsort label-4240
SELECT MIN( - 70 ) AS col2
----
-70

skipif mysql # not compatible
query I rowsort label-4240
SELECT MIN ( - 70 ) AS col2
----
-70

query I rowsort
SELECT 78 * - 34
----
-2652

onlyif mysql # aggregate syntax: 
query I rowsort label-4242
SELECT COUNT( * ) * + - 76
----
-76

skipif mysql # not compatible
query I rowsort label-4242
SELECT COUNT ( * ) * + - 76
----
-76

query I rowsort
SELECT + 72 * - 66 - - 76 + + 64 + + 67 * 70
----
78

query I rowsort
SELECT ALL - 61 * - - 12
----
-732

query I rowsort
SELECT + 77 - + 36 * + + 1 AS col2
----
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4246
SELECT ALL + CASE + + CAST( ( - CAST( COUNT( * ) AS SIGNED ) ) AS SIGNED ) WHEN + - COUNT( * ) * + COUNT( * ) / - 86 + ( 51 ) + + - COUNT( * ) * + COUNT( * ) THEN NULL WHEN + 28 THEN NULL WHEN + + AVG ( + 30 ) * + 53 * 40 THEN - 29 ELSE - 15 END * 43 * 51
----
-32895

skipif mysql # not compatible
query I rowsort label-4246
SELECT ALL + CASE + + CAST ( ( - CAST ( COUNT ( * ) AS INTEGER ) ) AS INTEGER ) WHEN + - COUNT ( * ) * + COUNT ( * ) / - 86 + ( 51 ) + + - COUNT ( * ) * + COUNT ( * ) THEN NULL WHEN + 28 THEN NULL WHEN + + AVG ( + 30 ) * + 53 * 40 THEN - 29 ELSE - 15 END * 43 * 51
----
-32895

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4247
SELECT DISTINCT + COUNT( * ) * 92 / + - COALESCE ( NULLIF ( - 31, - 65 * - 86 ), 70 * + 65 ) * CAST( NULL AS SIGNED ) / + 81, 77 * - + ( - + 29 ) AS col1
----
NULL
2233

skipif mysql # not compatible
query II rowsort label-4247
SELECT DISTINCT + COUNT ( * ) * 92 / + - COALESCE ( NULLIF ( - 31, - 65 * - 86 ), 70 * + 65 ) * CAST ( NULL AS INTEGER ) / + 81, 77 * - + ( - + 29 ) AS col1
----
NULL
2233

query II rowsort
SELECT + + 77, 18 AS col0
----
77
18

query II rowsort
SELECT ALL + 21 AS col0, 80
----
21
80

query I rowsort
SELECT + + 72 + - 55 AS col1
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-4251
SELECT - + MAX( ALL - 41 ) AS col2
----
41

skipif mysql # not compatible
query I rowsort label-4251
SELECT - + MAX ( ALL - 41 ) AS col2
----
41

query I rowsort
SELECT ALL + 92 + - 19 + - 83
----
-10

onlyif mysql # DIV for integer division: 
query I rowsort label-4253
SELECT ALL + 34 DIV + + 68 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4253
SELECT ALL + 34 / + + 68 AS col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4254
SELECT - MIN( ALL - 42 ), - 8 AS col2
----
42
-8

skipif mysql # not compatible
query II rowsort label-4254
SELECT - MIN ( ALL - 42 ), - 8 AS col2
----
42
-8

onlyif mysql # aggregate syntax: 
query II rowsort label-4255
SELECT 77 AS col0, MAX( DISTINCT + 44 )
----
77
44

skipif mysql # not compatible
query II rowsort label-4255
SELECT 77 AS col0, MAX ( DISTINCT + 44 )
----
77
44

onlyif mysql # aggregate syntax: 
query II rowsort label-4256
SELECT + 88 * COUNT( * ) * + SUM( ALL + 16 ) * + 87 - - - 92 AS col0, 62 AS col1
----
122404
62

skipif mysql # not compatible
query II rowsort label-4256
SELECT + 88 * COUNT ( * ) * + SUM ( ALL + 16 ) * + 87 - - - 92 AS col0, 62 AS col1
----
122404
62

onlyif mysql # aggregate syntax: 
query II rowsort label-4257
SELECT - ( NULLIF ( 57, + - 91 - SUM( DISTINCT + + 69 ) ) ), + NULLIF ( - - 35, AVG ( - ( 12 ) ) * - 42 * - + 4 * 69 * 45 ) AS col2
----
-57
35

skipif mysql # not compatible
query II rowsort label-4257
SELECT - ( NULLIF ( 57, + - 91 - SUM ( DISTINCT + + 69 ) ) ), + NULLIF ( - - 35, AVG ( - ( 12 ) ) * - 42 * - + 4 * 69 * 45 ) AS col2
----
-57
35

query I rowsort
SELECT - NULLIF ( + 20, - - 10 ) col0
----
-20

query I rowsort
SELECT + 2 * 14 * + 20 AS col1
----
560

onlyif mysql # aggregate syntax: 
query I rowsort label-4260
SELECT ALL ( COUNT( * ) ) + 6
----
7

skipif mysql # not compatible
query I rowsort label-4260
SELECT ALL ( COUNT ( * ) ) + 6
----
7

query I rowsort
SELECT DISTINCT - 9 + - 73 col2
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-4262
SELECT ALL + MIN( 2 ) + - + 55 * - - COUNT( * ) AS col0
----
-53

skipif mysql # not compatible
query I rowsort label-4262
SELECT ALL + MIN ( 2 ) + - + 55 * - - COUNT ( * ) AS col0
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-4263
SELECT ALL - + CASE - 51 WHEN 37 THEN + 11 WHEN - COUNT( * ) + 44 + + COUNT( * ) THEN 88 + + 40 WHEN + + 26 THEN NULL ELSE NULL END * AVG ( ALL + + 40 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4263
SELECT ALL - + CASE - 51 WHEN 37 THEN + 11 WHEN - COUNT ( * ) + 44 + + COUNT ( * ) THEN 88 + + 40 WHEN + + 26 THEN NULL ELSE NULL END * AVG ( ALL + + 40 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4264
SELECT COALESCE ( + + 10, - 78, - COUNT( * ) * + + 42 * 54 ) AS col2
----
10

skipif mysql # not compatible
query I rowsort label-4264
SELECT COALESCE ( + + 10, - 78, - COUNT ( * ) * + + 42 * 54 ) AS col2
----
10

query I rowsort
SELECT + + 71 * + 62
----
4402

query II rowsort
SELECT DISTINCT ( - + 86 ) AS col0, + 60
----
-86
60

query I rowsort
SELECT + 75 + 45 + 64 AS col0
----
184

onlyif mysql # DIV for integer division: 
query II rowsort label-4268
SELECT ALL 87 - 51 + + NULLIF ( - + 25, - 99 ) * 41 * + 55 - - 73 - 4 DIV - 53 + - 98 * - 15 AS col2, 96
----
-54796
96

skipif mysql # not compatible
query II rowsort label-4268
SELECT ALL 87 - 51 + + NULLIF ( - + 25, - 99 ) * 41 * + 55 - - 73 - 4 / - 53 + - 98 * - 15 AS col2, 96
----
-54796
96

query I rowsort
SELECT - NULLIF ( 94, + 56 * + ( + 21 ) * + - ( - 73 ) * + 26 + - 41 / + + 78 )
----
-94

query I rowsort
SELECT + 45 - + 51 AS col1
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-4271
SELECT + COUNT( * ) + 8
----
9

skipif mysql # not compatible
query I rowsort label-4271
SELECT + COUNT ( * ) + 8
----
9

query I rowsort
SELECT ALL ( 13 ) - + 90
----
-77

query I rowsort
SELECT - 97 + + + 99 + + 89 + 84 * - 64
----
-5285

onlyif mysql # aggregate syntax: 
query I rowsort label-4274
SELECT ALL - 90 - + - 81 * - - ( - COUNT( * ) )
----
-171

skipif mysql # not compatible
query I rowsort label-4274
SELECT ALL - 90 - + - 81 * - - ( - COUNT ( * ) )
----
-171

onlyif mysql # aggregate syntax: 
query I rowsort label-4275
SELECT DISTINCT + COUNT( * ) * 75
----
75

skipif mysql # not compatible
query I rowsort label-4275
SELECT DISTINCT + COUNT ( * ) * 75
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-4276
SELECT - ( - - 81 ) * + MIN( ( 82 ) )
----
-6642

skipif mysql # not compatible
query I rowsort label-4276
SELECT - ( - - 81 ) * + MIN ( ( 82 ) )
----
-6642

onlyif mysql # aggregate syntax: 
query I rowsort label-4277
SELECT - ( + - 36 ) - + + COUNT( ALL 69 ) - - 55
----
90

skipif mysql # not compatible
query I rowsort label-4277
SELECT - ( + - 36 ) - + + COUNT ( ALL 69 ) - - 55
----
90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4278
SELECT MIN( DISTINCT - 77 ) DIV - 54 + + - 56 AS col2
----
-55

skipif mysql # not compatible
query I rowsort label-4278
SELECT MIN ( DISTINCT - 77 ) / - 54 + + - 56 AS col2
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-4279
SELECT ( + COUNT( * ) ) * - NULLIF ( + SUM( ALL 60 ), + + 94 ) - 41
----
-101

skipif mysql # not compatible
query I rowsort label-4279
SELECT ( + COUNT ( * ) ) * - NULLIF ( + SUM ( ALL 60 ), + + 94 ) - 41
----
-101

query I rowsort
SELECT + ( COALESCE ( 39, 3 ) ) col0
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-4281
SELECT + ( - 4 ) + COUNT( + 26 ) AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-4281
SELECT + ( - 4 ) + COUNT ( + 26 ) AS col2
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4282
SELECT - 68 DIV - + 33 + + + 98 col2, + COUNT( * )
----
100
1

skipif mysql # not compatible
query II rowsort label-4282
SELECT - 68 / - + 33 + + + 98 col2, + COUNT ( * )
----
100
1

query II rowsort
SELECT ALL + 27 * + + 16 AS col2, - 2 AS col2
----
432
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-4284
SELECT - 61 DIV - + 29
----
2

skipif mysql # not compatible
query I rowsort label-4284
SELECT - 61 / - + 29
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-4285
SELECT DISTINCT + COUNT( * ) * + 60
----
60

skipif mysql # not compatible
query I rowsort label-4285
SELECT DISTINCT + COUNT ( * ) * + 60
----
60

query I rowsort
SELECT ( - 15 ) col1
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-4287
SELECT ALL + MIN( ALL - + 42 ) AS col2
----
-42

skipif mysql # not compatible
query I rowsort label-4287
SELECT ALL + MIN ( ALL - + 42 ) AS col2
----
-42

onlyif mysql # aggregate syntax: 
query II rowsort label-4288
SELECT + 5 * - + 3 + - COUNT( * ), 9 AS col0
----
-16
9

skipif mysql # not compatible
query II rowsort label-4288
SELECT + 5 * - + 3 + - COUNT ( * ), 9 AS col0
----
-16
9

query I rowsort
SELECT ALL + 28 * 62
----
1736

onlyif mysql # DIV for integer division: 
query I rowsort label-4290
SELECT - 75 + + - 84 + - 27 DIV - 74
----
-159

skipif mysql # not compatible
query I rowsort label-4290
SELECT - 75 + + - 84 + - 27 / - 74
----
-159

query I rowsort
SELECT ALL CASE + 4 WHEN - 58 THEN NULL ELSE + 32 * + 61 END * 83 + - 73 * NULLIF ( 26, - 47 ) + - - 97 + 82 AS col0
----
160297

query I rowsort
SELECT ALL + - 50 * + 65 * 86 * 73 * + - 54 + 25
----
1101789025

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-4293
SELECT 7 * NULLIF ( + 13, 86 ) * - NULLIF ( + 92, CAST( NULL AS DECIMAL ) * ( - 12 ) ) * + - 7 + 5 * 5 + - 26 AS col0, + COUNT( * ) * - 47 * - - AVG ( DISTINCT - 12 ) * + + CAST( NULL AS SIGNED )
----
58603
NULL

skipif mysql # not compatible
query II rowsort label-4293
SELECT 7 * NULLIF ( + 13, 86 ) * - NULLIF ( + 92, CAST ( NULL AS REAL ) * ( - 12 ) ) * + - 7 + 5 * 5 + - 26 AS col0, + COUNT ( * ) * - 47 * - - AVG ( DISTINCT - 12 ) * + + CAST ( NULL AS INTEGER )
----
58603
NULL

query II rowsort
SELECT - 41 * + 87 AS col1, 3 + 33
----
-3567
36

onlyif mysql # aggregate syntax: 
query I rowsort label-4295
SELECT - - 4 * - COUNT( * ) + - - COUNT( * ) * - + COALESCE ( + 96, - 9 ) AS col1
----
-100

skipif mysql # not compatible
query I rowsort label-4295
SELECT - - 4 * - COUNT ( * ) + - - COUNT ( * ) * - + COALESCE ( + 96, - 9 ) AS col1
----
-100

onlyif mysql # aggregate syntax: 
query II rowsort label-4296
SELECT ALL + COALESCE ( 56, - - SUM( - CASE + - 73 WHEN - 33 + 28 THEN NULL WHEN - + 10 THEN NULL WHEN 79 + - 76 THEN - 66 END ), + 48 ) AS col1, + 39 + - - 19 AS col0
----
56
58

skipif mysql # not compatible
query II rowsort label-4296
SELECT ALL + COALESCE ( 56, - - SUM ( - CASE + - 73 WHEN - 33 + 28 THEN NULL WHEN - + 10 THEN NULL WHEN 79 + - 76 THEN - 66 END ), + 48 ) AS col1, + 39 + - - 19 AS col0
----
56
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4297
SELECT + + CAST( 39 AS SIGNED ) AS col1
----
39

skipif mysql # not compatible
query I rowsort label-4297
SELECT + + CAST ( 39 AS INTEGER ) AS col1
----
39

query II rowsort
SELECT + + 27 * + 86 col1, - 7 AS col1
----
2322
-7

query I rowsort
SELECT 68 * 87 + + 60 col0
----
5976

query I rowsort
SELECT ALL - + 20 * - 43 + + ( - - 84 ) col2
----
944

onlyif mysql # aggregate syntax: 
query I rowsort label-4301
SELECT - 86 + - 63 + - COUNT( * ) AS col1
----
-150

skipif mysql # not compatible
query I rowsort label-4301
SELECT - 86 + - 63 + - COUNT ( * ) AS col1
----
-150

onlyif mysql # aggregate syntax: 
query I rowsort label-4302
SELECT DISTINCT + + SUM( ( 17 ) ) * - COUNT( * ) + + 31 AS col1
----
14

skipif mysql # not compatible
query I rowsort label-4302
SELECT DISTINCT + + SUM ( ( 17 ) ) * - COUNT ( * ) + + 31 AS col1
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-4303
SELECT DISTINCT COUNT( * ) * + MAX( - 90 ) - - + 29 - + 47
----
-108

skipif mysql # not compatible
query I rowsort label-4303
SELECT DISTINCT COUNT ( * ) * + MAX ( - 90 ) - - + 29 - + 47
----
-108

onlyif mysql # aggregate syntax: 
query II rowsort label-4304
SELECT ALL + COUNT( * ) * + 95 AS col2, ( 51 )
----
95
51

skipif mysql # not compatible
query II rowsort label-4304
SELECT ALL + COUNT ( * ) * + 95 AS col2, ( 51 )
----
95
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4305
SELECT DISTINCT + + ( COALESCE ( - 44, + 2 - NULLIF ( - + 56, - CASE CAST( NULL AS DECIMAL ) WHEN 22 THEN COUNT( * ) ELSE NULL END ) ) ) * - 1 + + 26 - - CAST( + 59 AS SIGNED ) col2
----
129

skipif mysql # not compatible
query I rowsort label-4305
SELECT DISTINCT + + ( COALESCE ( - 44, + 2 - NULLIF ( - + 56, - CASE CAST ( NULL AS REAL ) WHEN 22 THEN COUNT ( * ) ELSE NULL END ) ) ) * - 1 + + 26 - - CAST ( + 59 AS INTEGER ) col2
----
129

onlyif mysql # aggregate syntax: 
query II rowsort label-4306
SELECT + MIN( - - 92 ) AS col0, - 79
----
92
-79

skipif mysql # not compatible
query II rowsort label-4306
SELECT + MIN ( - - 92 ) AS col0, - 79
----
92
-79

query I rowsort
SELECT ALL 5 - - + 70 AS col0
----
75

query I rowsort
SELECT ALL NULLIF ( 5, + 93 )
----
5

query I rowsort
SELECT - - ( - 13 ) * - - 19 * + 2 AS col0
----
-494

query I rowsort
SELECT + + 50 + 35 + 14 AS col0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4311
SELECT - CASE - + ( + 74 ) WHEN + CASE - 91 WHEN - 99 THEN - + COUNT( * ) ELSE NULL END * - + 4 * - 67 THEN - - 2 * 52 * + 37 WHEN - - 2 THEN NULL ELSE NULL END + 7 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4311
SELECT - CASE - + ( + 74 ) WHEN + CASE - 91 WHEN - 99 THEN - + COUNT ( * ) ELSE NULL END * - + 4 * - 67 THEN - - 2 * 52 * + 37 WHEN - - 2 THEN NULL ELSE NULL END + 7 col1
----
NULL

query II rowsort
SELECT 51 AS col2, + 66 + + 76 AS col1
----
51
142

onlyif mysql # aggregate syntax: 
query I rowsort label-4313
SELECT + NULLIF ( + 95, + + NULLIF ( + ( + + COUNT( * ) ), + 20 + - 41 ) ) + + 17 + COUNT( * ) * + 87
----
199

skipif mysql # not compatible
query I rowsort label-4313
SELECT + NULLIF ( + 95, + + NULLIF ( + ( + + COUNT ( * ) ), + 20 + - 41 ) ) + + 17 + COUNT ( * ) * + 87
----
199

query II rowsort
SELECT ALL 53, 83 col1
----
53
83

onlyif mysql # aggregate syntax: 
query I rowsort label-4315
SELECT + COUNT( * ) + - 54
----
-53

skipif mysql # not compatible
query I rowsort label-4315
SELECT + COUNT ( * ) + - 54
----
-53

onlyif mysql # DIV for integer division: 
query I rowsort label-4316
SELECT ALL 16 DIV + 46 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4316
SELECT ALL 16 / + 46 AS col1
----
0

query I rowsort
SELECT + 21 + + 7
----
28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4318
SELECT DISTINCT 45 / CAST( NULL AS SIGNED ) / - - 7 * 1 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4318
SELECT DISTINCT 45 / CAST ( NULL AS INTEGER ) / - - 7 * 1 AS col0
----
NULL

query I rowsort
SELECT ALL 9 * + 52
----
468

query I rowsort
SELECT + NULLIF ( + 1, - 6 ) * 10 + - 76
----
-66

onlyif mysql # aggregate syntax: 
query II rowsort label-4321
SELECT DISTINCT COUNT( * ) * + 62 * + - 1, 14 AS col2
----
-62
14

skipif mysql # not compatible
query II rowsort label-4321
SELECT DISTINCT COUNT ( * ) * + 62 * + - 1, 14 AS col2
----
-62
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4322
SELECT + ( + + 95 ) * + COALESCE ( - 24, + + 87 + + 34 ) + CASE 56 WHEN - + COUNT( + 79 ) THEN NULL WHEN - ( + + 47 ) THEN 27 * + 24 + + 46 + COUNT( * ) + - + CASE - - CAST( NULL AS SIGNED ) WHEN + - CAST( NULL AS SIGNED ) THEN - - COALESCE ( 15, + 53 DIV 23 DIV + 85, + + 19 ) * - - SUM( ALL + - 18 ) * + 5 + + 9 - - 42 * + 39 * 72 WHEN + COUNT( * ) - + - 58 - 15 + + + 16 THEN 4 END + + SUM( - NULLIF ( 31, - 54 ) ) DIV - 93 + 99 ELSE + 92 END AS col0
----
-2188

skipif mysql # not compatible
query I rowsort label-4322
SELECT + ( + + 95 ) * + COALESCE ( - 24, + + 87 + + 34 ) + CASE 56 WHEN - + COUNT ( + 79 ) THEN NULL WHEN - ( + + 47 ) THEN 27 * + 24 + + 46 + COUNT ( * ) + - + CASE - - CAST ( NULL AS INTEGER ) WHEN + - CAST ( NULL AS INTEGER ) THEN - - COALESCE ( 15, + 53 / 23 / + 85, + + 19 ) * - - SUM ( ALL + - 18 ) * + 5 + + 9 - - 42 * + 39 * 72 WHEN + COUNT ( * ) - + - 58 - 15 + + + 16 THEN 4 END + + SUM ( - NULLIF ( 31, - 54 ) ) / - 93 + 99 ELSE + 92 END AS col0
----
-2188

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4323
SELECT + CAST( 26 AS SIGNED ) + - ( + 51 ) AS col0
----
-25

skipif mysql # not compatible
query I rowsort label-4323
SELECT + CAST ( 26 AS INTEGER ) + - ( + 51 ) AS col0
----
-25

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4324
SELECT + CASE + + 50 WHEN + + 26 + + - MAX( CAST( NULL AS DECIMAL ) ) + CASE COUNT( * ) WHEN - - 37 + + - MIN( ( + 59 ) ) / + + 82 * ( + 43 ) * - ( - 66 ) * - 12 THEN + 69 * + + 3 * 32 * - - 51 + - COALESCE ( - - 59, + - 71 ) + COUNT( * ) END THEN + 26 ELSE NULL END * + 46 * + 91 + + - 5 + - + NULLIF ( 1, 25 * - 4 * + + ( 66 ) ) - + 70 * - 52
----
NULL

skipif mysql # not compatible
query I rowsort label-4324
SELECT + CASE + + 50 WHEN + + 26 + + - MAX ( CAST ( NULL AS REAL ) ) + CASE COUNT ( * ) WHEN - - 37 + + - MIN ( ( + 59 ) ) / + + 82 * ( + 43 ) * - ( - 66 ) * - 12 THEN + 69 * + + 3 * 32 * - - 51 + - COALESCE ( - - 59, + - 71 ) + COUNT ( * ) END THEN + 26 ELSE NULL END * + 46 * + 91 + + - 5 + - + NULLIF ( 1, 25 * - 4 * + + ( 66 ) ) - + 70 * - 52
----
NULL

query I rowsort
SELECT - 44 + - 18 AS col1
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-4326
SELECT - ( + ( COUNT( * ) ) ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-4326
SELECT - ( + ( COUNT ( * ) ) ) col2
----
-1

query II rowsort
SELECT + ( + 21 ) * + 29 AS col0, 93
----
609
93

onlyif mysql # aggregate syntax: 
query I rowsort label-4328
SELECT ALL NULLIF ( - 52, CASE - 17 WHEN + MIN( DISTINCT - 35 ) THEN NULL ELSE + 62 END ) + - COUNT( * ) AS col0
----
-53

skipif mysql # not compatible
query I rowsort label-4328
SELECT ALL NULLIF ( - 52, CASE - 17 WHEN + MIN ( DISTINCT - 35 ) THEN NULL ELSE + 62 END ) + - COUNT ( * ) AS col0
----
-53

onlyif mysql # DIV for integer division: 
query I rowsort label-4329
SELECT ALL - 24 DIV - 6 + 87 AS col0
----
91

skipif mysql # not compatible
query I rowsort label-4329
SELECT ALL - 24 / - 6 + 87 AS col0
----
91

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4330
SELECT DISTINCT 82 DIV + COUNT( * ) + 41 AS col0, + ( 28 ) + COUNT( * ) DIV - 80
----
123
28

skipif mysql # not compatible
query II rowsort label-4330
SELECT DISTINCT 82 / + COUNT ( * ) + 41 AS col0, + ( 28 ) + COUNT ( * ) / - 80
----
123
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4331
SELECT + - 84 AS col0, CASE + - ( - + MIN( 59 ) ) WHEN 64 * - CAST( 23 AS SIGNED ) - + - COUNT( * ) THEN 65 END
----
-84
NULL

skipif mysql # not compatible
query II rowsort label-4331
SELECT + - 84 AS col0, CASE + - ( - + MIN ( 59 ) ) WHEN 64 * - CAST ( 23 AS INTEGER ) - + - COUNT ( * ) THEN 65 END
----
-84
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4332
SELECT ALL - 58 + - + 9 - COUNT( * ) DIV + 91, 77 col2
----
-67
77

skipif mysql # not compatible
query II rowsort label-4332
SELECT ALL - 58 + - + 9 - COUNT ( * ) / + 91, 77 col2
----
-67
77

query I rowsort
SELECT DISTINCT 47 + + 45 AS col2
----
92

query I rowsort
SELECT 78 * - 61 + - - 4
----
-4754

query I rowsort
SELECT ALL - 67 * + 19 AS col0
----
-1273

onlyif mysql # aggregate syntax: 
query II rowsort label-4336
SELECT DISTINCT - COUNT( * ) AS col1, + 64 col1
----
-1
64

skipif mysql # not compatible
query II rowsort label-4336
SELECT DISTINCT - COUNT ( * ) AS col1, + 64 col1
----
-1
64

onlyif mysql # aggregate syntax: 
query I rowsort label-4337
SELECT DISTINCT - + 34 * + + ( - MAX( ALL + 1 ) )
----
34

skipif mysql # not compatible
query I rowsort label-4337
SELECT DISTINCT - + 34 * + + ( - MAX ( ALL + 1 ) )
----
34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4338
SELECT ALL + CAST( + COALESCE ( + + 50, - + 57 ) AS SIGNED ) * + 55 * + 67 * CAST( 5 AS SIGNED ) - - - 12 * COUNT( * ) AS col2
----
921238

skipif mysql # not compatible
query I rowsort label-4338
SELECT ALL + CAST ( + COALESCE ( + + 50, - + 57 ) AS INTEGER ) * + 55 * + 67 * CAST ( 5 AS INTEGER ) - - - 12 * COUNT ( * ) AS col2
----
921238

onlyif mysql # aggregate syntax: 
query I rowsort label-4339
SELECT ALL + COUNT( * ) * + - 29
----
-29

skipif mysql # not compatible
query I rowsort label-4339
SELECT ALL + COUNT ( * ) * + - 29
----
-29

onlyif mysql # aggregate syntax: 
query II rowsort label-4340
SELECT DISTINCT - - COUNT( * ) AS col1, 27
----
1
27

skipif mysql # not compatible
query II rowsort label-4340
SELECT DISTINCT - - COUNT ( * ) AS col1, 27
----
1
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4341
SELECT NULLIF ( + + CAST( + COUNT( DISTINCT 42 ) AS SIGNED ), - + 41 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4341
SELECT NULLIF ( + + CAST ( + COUNT ( DISTINCT 42 ) AS INTEGER ), - + 41 ) AS col1
----
1

query I rowsort
SELECT + COALESCE ( + 34, + 7 * + - 9, - 95 + + ( - 18 ) * + 55 ) - 9 AS col1
----
25

query I rowsort
SELECT NULLIF ( + + ( 5 ), NULLIF ( 2, 60 ) - 32 ) AS col2
----
5

query I rowsort
SELECT ALL + + 4 * + 14
----
56

onlyif mysql # aggregate syntax: 
query II rowsort label-4345
SELECT DISTINCT 75 * + COUNT( * ) AS col2, - 42 AS col2
----
75
-42

skipif mysql # not compatible
query II rowsort label-4345
SELECT DISTINCT 75 * + COUNT ( * ) AS col2, - 42 AS col2
----
75
-42

query II rowsort
SELECT 72 * + 53 AS col1, 18 + + 86
----
3816
104

query I rowsort
SELECT ALL - 62 * + - 62
----
3844

query I rowsort
SELECT 62 + + 25 * + 10
----
312

query I rowsort
SELECT 72 + 42 AS col0
----
114

onlyif mysql # DIV for integer division: 
query I rowsort label-4350
SELECT 17 DIV - 25
----
0

skipif mysql # not compatible
query I rowsort label-4350
SELECT 17 / - 25
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4351
SELECT 88 + - - MIN( DISTINCT - - ( - 39 ) ) AS col2
----
49

skipif mysql # not compatible
query I rowsort label-4351
SELECT 88 + - - MIN ( DISTINCT - - ( - 39 ) ) AS col2
----
49

query I rowsort
SELECT CASE 65 WHEN - + 96 THEN NULL WHEN + 86 * + 99 THEN NULL ELSE + + 76 + - - ( - - 94 ) + - 72 - + - 19 + - 95 END + - 14 AS col0
----
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4353
SELECT ALL 78 * + 79 * + SUM( - 62 ) AS col1, + CAST( 44 AS SIGNED ) * + ( 65 ) AS col1
----
-382044
2860

skipif mysql # not compatible
query II rowsort label-4353
SELECT ALL 78 * + 79 * + SUM ( - 62 ) AS col1, + CAST ( 44 AS INTEGER ) * + ( 65 ) AS col1
----
-382044
2860

onlyif mysql # aggregate syntax: 
query II rowsort label-4354
SELECT 7 + - - 80, + 98 * COUNT( * ) * + + 2 AS col2
----
87
196

skipif mysql # not compatible
query II rowsort label-4354
SELECT 7 + - - 80, + 98 * COUNT ( * ) * + + 2 AS col2
----
87
196

onlyif mysql # aggregate syntax: 
query I rowsort label-4355
SELECT DISTINCT COUNT( * ) + - + 39 + - - 77 AS col1
----
39

skipif mysql # not compatible
query I rowsort label-4355
SELECT DISTINCT COUNT ( * ) + - + 39 + - - 77 AS col1
----
39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4356
SELECT ALL CAST( - 66 AS SIGNED ) + 91 AS col1
----
25

skipif mysql # not compatible
query I rowsort label-4356
SELECT ALL CAST ( - 66 AS INTEGER ) + 91 AS col1
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-4357
SELECT 86 + + 37 - COUNT( * ) * 17 + + ( - 18 ) col1
----
88

skipif mysql # not compatible
query I rowsort label-4357
SELECT 86 + + 37 - COUNT ( * ) * 17 + + ( - 18 ) col1
----
88

onlyif mysql # DIV for integer division: 
query I rowsort label-4358
SELECT ( - - 74 ) DIV 13 + 32 + - 12
----
25

skipif mysql # not compatible
query I rowsort label-4358
SELECT ( - - 74 ) / 13 + 32 + - 12
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-4359
SELECT - COUNT( * ) * ( - - 45 ) + - 94 * - 75
----
7005

skipif mysql # not compatible
query I rowsort label-4359
SELECT - COUNT ( * ) * ( - - 45 ) + - 94 * - 75
----
7005

query I rowsort
SELECT - 61 * + 41 + + 53 AS col1
----
-2448

query I rowsort
SELECT DISTINCT 20 * + 54 + + - 38 AS col2
----
1042

onlyif mysql # aggregate syntax: 
query I rowsort label-4362
SELECT ALL - + MIN( ALL - 21 )
----
21

skipif mysql # not compatible
query I rowsort label-4362
SELECT ALL - + MIN ( ALL - 21 )
----
21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4363
SELECT + 73 + 98 - + - 90 + - 6 + + 1 * COUNT( * ) DIV - 82 * 70 * + 14 + - - 74 + + 52
----
381

skipif mysql # not compatible
query I rowsort label-4363
SELECT + 73 + 98 - + - 90 + - 6 + + 1 * COUNT ( * ) / - 82 * 70 * + 14 + - - 74 + + 52
----
381

onlyif mysql # DIV for integer division: 
query I rowsort label-4364
SELECT ALL - 86 - + ( - 9 ) DIV + + 27
----
-86

skipif mysql # not compatible
query I rowsort label-4364
SELECT ALL - 86 - + ( - 9 ) / + + 27
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-4365
SELECT ALL - - 81 - - MIN( DISTINCT 95 ) AS col1
----
176

skipif mysql # not compatible
query I rowsort label-4365
SELECT ALL - - 81 - - MIN ( DISTINCT 95 ) AS col1
----
176

query I rowsort
SELECT 89 * + 87 + - 50 AS col1
----
7693

query I rowsort
SELECT + NULLIF ( 81, + 27 )
----
81

query I rowsort
SELECT DISTINCT + ( + 81 ) * - + 31 + 13 * + - 13 + - 64 AS col1
----
-2744

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4369
SELECT + 31 * CAST( - 35 AS SIGNED ) + + 6 - + 91 AS col2, 32
----
-1170
32

skipif mysql # not compatible
query II rowsort label-4369
SELECT + 31 * CAST ( - 35 AS INTEGER ) + + 6 - + 91 AS col2, 32
----
-1170
32

onlyif mysql # aggregate syntax: 
query I rowsort label-4370
SELECT ALL - 28 * - 51 - - COUNT( * ) col2
----
1429

skipif mysql # not compatible
query I rowsort label-4370
SELECT ALL - 28 * - 51 - - COUNT ( * ) col2
----
1429

onlyif mysql # aggregate syntax: 
query I rowsort label-4371
SELECT + MAX( DISTINCT - 92 ) + + 38 * 39
----
1390

skipif mysql # not compatible
query I rowsort label-4371
SELECT + MAX ( DISTINCT - 92 ) + + 38 * 39
----
1390

onlyif mysql # aggregate syntax: 
query I rowsort label-4372
SELECT DISTINCT NULLIF ( - 89, + COUNT( * ) * + 26 ) * MAX( + 75 )
----
-6675

skipif mysql # not compatible
query I rowsort label-4372
SELECT DISTINCT NULLIF ( - 89, + COUNT ( * ) * + 26 ) * MAX ( + 75 )
----
-6675

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4373
SELECT + ( + CASE - 50 WHEN ( - + 45 ) + + - COALESCE ( CAST( CAST( 8 AS SIGNED ) AS SIGNED ), - COUNT( * ) + - ( + - 86 ), - 29 ) + + 10 THEN NULL WHEN + SUM( - + ( - ( + 6 ) ) ) THEN + + ( - - 8 ) END ) * - 59 + + - 19 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4373
SELECT + ( + CASE - 50 WHEN ( - + 45 ) + + - COALESCE ( CAST ( CAST ( 8 AS INTEGER ) AS INTEGER ), - COUNT ( * ) + - ( + - 86 ), - 29 ) + + 10 THEN NULL WHEN + SUM ( - + ( - ( + 6 ) ) ) THEN + + ( - - 8 ) END ) * - 59 + + - 19 AS col0
----
NULL

query I rowsort
SELECT ALL 4 * + 42 col2
----
168

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4375
SELECT ALL 63 * + ( CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4375
SELECT ALL 63 * + ( CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4376
SELECT 82 * - + MIN( + 91 ) AS col0
----
-7462

skipif mysql # not compatible
query I rowsort label-4376
SELECT 82 * - + MIN ( + 91 ) AS col0
----
-7462

query I rowsort
SELECT ALL - NULLIF ( 35, - 71 * - + 77 * + 36 + - COALESCE ( + 51, + 7 ) + + 74 ) + 9 - 84 * ( - 18 ) * + 46 AS col1
----
69526

onlyif mysql # aggregate syntax: 
query I rowsort label-4378
SELECT - CASE + 93 WHEN - MAX( + - 67 ) + + + COALESCE ( + 60, + + SUM( 24 ) ) + - MIN( + + 95 ) + + 74 THEN - 81 WHEN + 41 + - ( 20 ) THEN + 32 * - 73 + + MIN( - ( 36 ) ) - - 16 * - 2 WHEN + 92 THEN - COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-4378
SELECT - CASE + 93 WHEN - MAX ( + - 67 ) + + + COALESCE ( + 60, + + SUM ( 24 ) ) + - MIN ( + + 95 ) + + 74 THEN - 81 WHEN + 41 + - ( 20 ) THEN + 32 * - 73 + + MIN ( - ( 36 ) ) - - 16 * - 2 WHEN + 92 THEN - COUNT ( * ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4379
SELECT 98 + + COUNT( * ) AS col0
----
99

skipif mysql # not compatible
query I rowsort label-4379
SELECT 98 + + COUNT ( * ) AS col0
----
99

query I rowsort
SELECT 72 * - 57
----
-4104

query I rowsort
SELECT 7 + - - 24
----
31

query I rowsort
SELECT ALL - 31 + - - 26
----
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4383
SELECT COUNT( * ) + + + CAST( - - 3 AS SIGNED ) + + 27
----
31

skipif mysql # not compatible
query I rowsort label-4383
SELECT COUNT ( * ) + + + CAST ( - - 3 AS INTEGER ) + + 27
----
31

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4384
SELECT ALL + 68 + + + CAST( NULL AS DECIMAL ) * - 17
----
NULL

skipif mysql # not compatible
query I rowsort label-4384
SELECT ALL + 68 + + + CAST ( NULL AS REAL ) * - 17
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4385
SELECT 19 AS col0, - 64 + + MIN( - - 70 )
----
19
6

skipif mysql # not compatible
query II rowsort label-4385
SELECT 19 AS col0, - 64 + + MIN ( - - 70 )
----
19
6

query I rowsort
SELECT ALL - 96 * - 1
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4387
SELECT DISTINCT 37 + - - 87 * + COUNT( * ) * + ( MAX( DISTINCT - 98 ) ) AS col0
----
-8489

skipif mysql # not compatible
query I rowsort label-4387
SELECT DISTINCT 37 + - - 87 * + COUNT ( * ) * + ( MAX ( DISTINCT - 98 ) ) AS col0
----
-8489

query I rowsort
SELECT DISTINCT - 14 + - 22
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-4389
SELECT ALL SUM( - ( - - 53 ) ) + 28 AS col2
----
-25

skipif mysql # not compatible
query I rowsort label-4389
SELECT ALL SUM ( - ( - - 53 ) ) + 28 AS col2
----
-25

query I rowsort
SELECT - 78 + + - 27 AS col1
----
-105

onlyif mysql # aggregate syntax: 
query I rowsort label-4391
SELECT + SUM( 73 ) + - 88 AS col2
----
-15

skipif mysql # not compatible
query I rowsort label-4391
SELECT + SUM ( 73 ) + - 88 AS col2
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-4392
SELECT - - 45 * COUNT( * )
----
45

skipif mysql # not compatible
query I rowsort label-4392
SELECT - - 45 * COUNT ( * )
----
45

query I rowsort
SELECT + - CASE ( 26 ) WHEN - 58 THEN - 45 END AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4394
SELECT DISTINCT + - 75 DIV - 54 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4394
SELECT DISTINCT + - 75 / - 54 AS col2
----
1

query I rowsort
SELECT DISTINCT - 93 * 56 AS col0
----
-5208

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4396
SELECT - 10 + + CAST( 93 AS SIGNED ) AS col0
----
83

skipif mysql # not compatible
query I rowsort label-4396
SELECT - 10 + + CAST ( 93 AS INTEGER ) AS col0
----
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4397
SELECT CAST( MIN( ALL + 98 ) AS SIGNED )
----
98

skipif mysql # not compatible
query I rowsort label-4397
SELECT CAST ( MIN ( ALL + 98 ) AS INTEGER )
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-4398
SELECT + - 43 * COUNT( * ) AS col0
----
-43

skipif mysql # not compatible
query I rowsort label-4398
SELECT + - 43 * COUNT ( * ) AS col0
----
-43

query I rowsort
SELECT + - 38 + - 22
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-4400
SELECT ALL + SUM( ALL + + ( 62 ) ) AS col1
----
62

skipif mysql # not compatible
query I rowsort label-4400
SELECT ALL + SUM ( ALL + + ( 62 ) ) AS col1
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-4401
SELECT - SUM( + 76 ) AS col1
----
-76

skipif mysql # not compatible
query I rowsort label-4401
SELECT - SUM ( + 76 ) AS col1
----
-76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4402
SELECT + - CASE + 75 WHEN - - CASE WHEN NOT - 98 BETWEEN + 20 + - 5 * - ( + + 82 ) * NULLIF ( - ( + 74 ), COALESCE ( - 83, + 45 - 81 ) ) * - + CAST( NULL AS SIGNED ) - - 12 AND NULL THEN - + 4 END THEN + ( + 19 ) WHEN - COUNT( DISTINCT 67 ) * 85 THEN NULL ELSE + + 18 + + 77 END - + 91 DIV - 74 AS col1
----
-94

skipif mysql # not compatible
query I rowsort label-4402
SELECT + - CASE + 75 WHEN - - CASE WHEN NOT - 98 BETWEEN + 20 + - 5 * - ( + + 82 ) * NULLIF ( - ( + 74 ), COALESCE ( - 83, + 45 - 81 ) ) * - + CAST ( NULL AS INTEGER ) - - 12 AND NULL THEN - + 4 END THEN + ( + 19 ) WHEN - COUNT ( DISTINCT 67 ) * 85 THEN NULL ELSE + + 18 + + 77 END - + 91 / - 74 AS col1
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-4403
SELECT DISTINCT 38 * - + 6 + + - COUNT( * ) + + 56 + + ( - 97 )
----
-270

skipif mysql # not compatible
query I rowsort label-4403
SELECT DISTINCT 38 * - + 6 + + - COUNT ( * ) + + 56 + + ( - 97 )
----
-270

query II rowsort
SELECT ALL + 27 AS col0, + 78 AS col0
----
27
78

query II rowsort
SELECT - 27 - - 25, - 49 * - + 35 + + CASE + 19 WHEN - 28 * 64 THEN NULL WHEN + ( - 96 ) + - - 11 + - + 98 + 96 THEN + + COALESCE ( - 84, + 29 ) END AS col0
----
-2
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4406
SELECT MIN( ALL + 7 ) AS col2
----
7

skipif mysql # not compatible
query I rowsort label-4406
SELECT MIN ( ALL + 7 ) AS col2
----
7

onlyif mysql # DIV for integer division: 
query I rowsort label-4407
SELECT - 45 DIV + 66
----
0

skipif mysql # not compatible
query I rowsort label-4407
SELECT - 45 / + 66
----
0

query II rowsort
SELECT - ( + 81 ) AS col1, 72
----
-81
72

onlyif mysql # aggregate syntax: 
query I rowsort label-4409
SELECT ALL 14 + MAX( + 90 )
----
104

skipif mysql # not compatible
query I rowsort label-4409
SELECT ALL 14 + MAX ( + 90 )
----
104

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4410
SELECT ALL - CAST( NULL AS SIGNED ) + - COUNT( * ) + 57 / + CAST( NULL AS DECIMAL ) + - + 30
----
NULL

skipif mysql # not compatible
query I rowsort label-4410
SELECT ALL - CAST ( NULL AS INTEGER ) + - COUNT ( * ) + 57 / + CAST ( NULL AS REAL ) + - + 30
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4411
SELECT + COUNT( * ) + + 35 + 7 * - + 57 - - 82 * + 89, 25 * + - ( COUNT( ALL + 57 ) ) - + 83 AS col0
----
6935
-108

skipif mysql # not compatible
query II rowsort label-4411
SELECT + COUNT ( * ) + + 35 + 7 * - + 57 - - 82 * + 89, 25 * + - ( COUNT ( ALL + 57 ) ) - + 83 AS col0
----
6935
-108

query I rowsort
SELECT - 55 * + 23 col2
----
-1265

onlyif mysql # aggregate syntax: 
query I rowsort label-4413
SELECT + 25 + - COUNT( * ) + - 68 AS col1
----
-44

skipif mysql # not compatible
query I rowsort label-4413
SELECT + 25 + - COUNT ( * ) + - 68 AS col1
----
-44

onlyif mysql # aggregate syntax: 
query II rowsort label-4414
SELECT 34 AS col2, 11 - - - 48 + + + COUNT( * ) AS col1
----
34
-36

skipif mysql # not compatible
query II rowsort label-4414
SELECT 34 AS col2, 11 - - - 48 + + + COUNT ( * ) AS col1
----
34
-36

query I rowsort
SELECT - 43 + - 46 AS col0
----
-89

onlyif mysql # DIV for integer division: 
query II rowsort label-4416
SELECT - 14 + - - 64 + - 68 DIV - 29, 16 * - + ( + 44 ) AS col0
----
52
-704

skipif mysql # not compatible
query II rowsort label-4416
SELECT - 14 + - - 64 + - 68 / - 29, 16 * - + ( + 44 ) AS col0
----
52
-704

query I rowsort
SELECT ALL + 88 * - + 81
----
-7128

query I rowsort
SELECT ALL + 39 * - 2
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-4419
SELECT - - COUNT( * ) * + - 42 + + 29 * + COUNT( * ) * - - 0 * - - 7 * + 95
----
-42

skipif mysql # not compatible
query I rowsort label-4419
SELECT - - COUNT ( * ) * + - 42 + + 29 * + COUNT ( * ) * - - 0 * - - 7 * + 95
----
-42

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4420
SELECT ALL + - 73 * CASE - - 59 WHEN + 0 / + + 81 * + 89 + - + 56 / - + 97 THEN CAST( NULL AS DECIMAL ) * 90 / + 39 * - 34 + SUM( DISTINCT 10 ) * - 73 + MIN( + 40 ) * - - ( - 40 ) / - NULLIF ( + - COUNT( * ), CASE - CASE - 29 WHEN 83 / + 81 THEN 47 WHEN + 56 THEN NULL ELSE + - 19 END WHEN ( 83 ) * + - 34 - - 97 THEN NULL WHEN - COUNT( * ) * - COUNT( 60 ) THEN NULL ELSE + - COUNT( * ) - + 15 - - + MIN( DISTINCT 18 ) END ) * + 92 WHEN - 66 THEN 0 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4420
SELECT ALL + - 73 * CASE - - 59 WHEN + 0 / + + 81 * + 89 + - + 56 / - + 97 THEN CAST ( NULL AS REAL ) * 90 / + 39 * - 34 + SUM ( DISTINCT 10 ) * - 73 + MIN ( + 40 ) * - - ( - 40 ) / - NULLIF ( + - COUNT ( * ), CASE - CASE - 29 WHEN 83 / + 81 THEN 47 WHEN + 56 THEN NULL ELSE + - 19 END WHEN ( 83 ) * + - 34 - - 97 THEN NULL WHEN - COUNT ( * ) * - COUNT ( 60 ) THEN NULL ELSE + - COUNT ( * ) - + 15 - - + MIN ( DISTINCT 18 ) END ) * + 92 WHEN - 66 THEN 0 END AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4421
SELECT - + ( - 18 ) + - - CAST( + - 58 AS SIGNED ) AS col0
----
-40

skipif mysql # not compatible
query I rowsort label-4421
SELECT - + ( - 18 ) + - - CAST ( + - 58 AS INTEGER ) AS col0
----
-40

onlyif mysql # DIV for integer division: 
query I rowsort label-4422
SELECT - + 72 DIV - 50 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4422
SELECT - + 72 / - 50 AS col1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4423
SELECT + CAST( + 49 AS SIGNED ) * - + 44 AS col1
----
-2156

skipif mysql # not compatible
query I rowsort label-4423
SELECT + CAST ( + 49 AS INTEGER ) * - + 44 AS col1
----
-2156

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4424
SELECT + + 9 + + + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4424
SELECT + + 9 + + + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query II rowsort
SELECT 0, - 31 AS col0
----
0
-31

query I rowsort
SELECT + - 34 + + + ( 15 )
----
-19

query I rowsort
SELECT + 14 * - 32 + - - 7 AS col2
----
-441

onlyif mysql # DIV for integer division: 
query I rowsort label-4428
SELECT ALL 83 DIV 79 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4428
SELECT ALL 83 / 79 AS col0
----
1

query I rowsort
SELECT - 53 * - ( - - 1 ) + 82 AS col1
----
135

onlyif mysql # aggregate syntax: 
query I rowsort label-4430
SELECT + 66 * MIN( DISTINCT 12 ) AS col2
----
792

skipif mysql # not compatible
query I rowsort label-4430
SELECT + 66 * MIN ( DISTINCT 12 ) AS col2
----
792

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4431
SELECT DISTINCT 84 DIV - COUNT( * ) + - 64 AS col1
----
-148

skipif mysql # not compatible
query I rowsort label-4431
SELECT DISTINCT 84 / - COUNT ( * ) + - 64 AS col1
----
-148

query I rowsort
SELECT ALL 10 * - ( + - 38 ) AS col2
----
380

query II rowsort
SELECT + 41 AS col1, 84 AS col1
----
41
84

query I rowsort
SELECT ( + 16 ) col0
----
16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4435
SELECT DISTINCT 11 * + - COUNT( * ) + + 28 DIV - 89
----
-11

skipif mysql # not compatible
query I rowsort label-4435
SELECT DISTINCT 11 * + - COUNT ( * ) + + 28 / - 89
----
-11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4436
SELECT + COALESCE ( + 92, + - ( 32 ), + COUNT( * ), + 62 + + CAST( + MIN( + 5 ) AS SIGNED ) ) AS col0
----
92

skipif mysql # not compatible
query I rowsort label-4436
SELECT + COALESCE ( + 92, + - ( 32 ), + COUNT ( * ), + 62 + + CAST ( + MIN ( + 5 ) AS INTEGER ) ) AS col0
----
92

query I rowsort
SELECT ALL 86 * - 81 + + 1 AS col1
----
-6965

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4438
SELECT DISTINCT ( - COUNT( + - 9 ) ) * + - 13 + - - MIN( NULLIF ( - 44, + 78 + - 75 + CAST( NULL AS SIGNED ) - + 85 * 54 ) ) DIV 59
----
13

skipif mysql # not compatible
query I rowsort label-4438
SELECT DISTINCT ( - COUNT ( + - 9 ) ) * + - 13 + - - MIN ( NULLIF ( - 44, + 78 + - 75 + CAST ( NULL AS INTEGER ) - + 85 * 54 ) ) / 59
----
13

query I rowsort
SELECT 97 + + 22 + + 2 * + - 29
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-4440
SELECT ALL 73 * + MIN( DISTINCT + 83 ) AS col2
----
6059

skipif mysql # not compatible
query I rowsort label-4440
SELECT ALL 73 * + MIN ( DISTINCT + 83 ) AS col2
----
6059

onlyif mysql # aggregate syntax: 
query I rowsort label-4441
SELECT - COUNT( * ) * ( 17 ) + - 63 AS col2
----
-80

skipif mysql # not compatible
query I rowsort label-4441
SELECT - COUNT ( * ) * ( 17 ) + - 63 AS col2
----
-80

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4442
SELECT 42 + 48 - 35 + + - ( - - CAST( NULL AS SIGNED ) ) * - + 70 / + 53 AS col1, 57 AS col2, 75 AS col2
----
NULL
57
75

skipif mysql # not compatible
query III rowsort label-4442
SELECT 42 + 48 - 35 + + - ( - - CAST ( NULL AS INTEGER ) ) * - + 70 / + 53 AS col1, 57 AS col2, 75 AS col2
----
NULL
57
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4443
SELECT DISTINCT ( + COALESCE ( - 23, - 47, - COUNT( * ) * - 51, + 76 * 59 DIV + 40 * + - 49 ) ) * - 77 * + - 78 * + 94 AS col1, + 71 AS col1
----
-12984972
71

skipif mysql # not compatible
query II rowsort label-4443
SELECT DISTINCT ( + COALESCE ( - 23, - 47, - COUNT ( * ) * - 51, + 76 * 59 / + 40 * + - 49 ) ) * - 77 * + - 78 * + 94 AS col1, + 71 AS col1
----
-12984972
71

query I rowsort
SELECT DISTINCT 86 * + 89 AS col0
----
7654

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4445
SELECT ALL - ( + CAST( - + 1 AS SIGNED ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4445
SELECT ALL - ( + CAST ( - + 1 AS INTEGER ) ) AS col0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4446
SELECT + 34 DIV - 81
----
0

skipif mysql # not compatible
query I rowsort label-4446
SELECT + 34 / - 81
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4447
SELECT ALL - 98 * - COUNT( * ) * CAST( NULL AS SIGNED ) * 71 * - - 37
----
NULL

skipif mysql # not compatible
query I rowsort label-4447
SELECT ALL - 98 * - COUNT ( * ) * CAST ( NULL AS INTEGER ) * 71 * - - 37
----
NULL

query I rowsort
SELECT - - CASE - 20 WHEN - 99 THEN + 88 ELSE 7 END AS col1
----
7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4449
SELECT COUNT( * ) * - 69 DIV MIN( DISTINCT + 4 ) + + 34 + + 19 AS col0
----
36

skipif mysql # not compatible
query I rowsort label-4449
SELECT COUNT ( * ) * - 69 / MIN ( DISTINCT + 4 ) + + 34 + + 19 AS col0
----
36

query II rowsort
SELECT 63 - + - 85, 62 AS col2
----
148
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4451
SELECT ALL 89 + - COUNT( * ) * + 31 + - SUM( DISTINCT 26 ) - + - 69 + + 28 * + 60 col1, + CAST( NULL AS SIGNED ) col0
----
1781
NULL

skipif mysql # not compatible
query II rowsort label-4451
SELECT ALL 89 + - COUNT ( * ) * + 31 + - SUM ( DISTINCT 26 ) - + - 69 + + 28 * + 60 col1, + CAST ( NULL AS INTEGER ) col0
----
1781
NULL

query I rowsort
SELECT ALL + - ( + - COALESCE ( + 31, - + 49 ) ) + 82
----
113

onlyif mysql # aggregate syntax: 
query I rowsort label-4453
SELECT - COUNT( * ) * + 50 + + - MIN( ALL 76 )
----
-126

skipif mysql # not compatible
query I rowsort label-4453
SELECT - COUNT ( * ) * + 50 + + - MIN ( ALL 76 )
----
-126

query I rowsort
SELECT + COALESCE ( + 45, - 35 * + - 90 + + 20 )
----
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4455
SELECT ALL - CAST( 31 AS SIGNED ) + + 54 * - + COUNT( * ) + + 24 * - + 42
----
-1093

skipif mysql # not compatible
query I rowsort label-4455
SELECT ALL - CAST ( 31 AS INTEGER ) + + 54 * - + COUNT ( * ) + + 24 * - + 42
----
-1093

query I rowsort
SELECT + - COALESCE ( + 23, - 88 ) AS col0
----
-23

query I rowsort
SELECT ALL + + 3 + - 97 * 16
----
-1549

onlyif mysql # aggregate syntax: 
query I rowsort label-4458
SELECT + COUNT( * ) + - 85 AS col0
----
-84

skipif mysql # not compatible
query I rowsort label-4458
SELECT + COUNT ( * ) + - 85 AS col0
----
-84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4459
SELECT + CAST( 59 AS SIGNED ) DIV 80 DIV 54 + - MIN( - - 17 ) * - - MAX( DISTINCT 5 ) - - 79
----
-6

skipif mysql # not compatible
query I rowsort label-4459
SELECT + CAST ( 59 AS INTEGER ) / 80 / 54 + - MIN ( - - 17 ) * - - MAX ( DISTINCT 5 ) - - 79
----
-6

query I rowsort
SELECT DISTINCT + + CASE + 77 WHEN 66 - + 21 THEN NULL ELSE + + ( 61 ) * 60 * - 7 END + + 16 AS col1
----
-25604

query I rowsort
SELECT DISTINCT - 0 + + 24 * - + 6 + - 38 * - 78 - - + 5
----
2825

onlyif mysql # aggregate syntax: 
query I rowsort label-4462
SELECT DISTINCT COUNT( * ) - + 40
----
-39

skipif mysql # not compatible
query I rowsort label-4462
SELECT DISTINCT COUNT ( * ) - + 40
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-4463
SELECT DISTINCT - NULLIF ( 41, - - 63 * + + COUNT( * ) + + 3 + + + 55 - + COUNT( * ) + - COUNT( * ) * - - 4 * - 20 / + 10 * 59 + - 54 ) AS col0
----
-41

skipif mysql # not compatible
query I rowsort label-4463
SELECT DISTINCT - NULLIF ( 41, - - 63 * + + COUNT ( * ) + + 3 + + + 55 - + COUNT ( * ) + - COUNT ( * ) * - - 4 * - 20 / + 10 * 59 + - 54 ) AS col0
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-4464
SELECT DISTINCT 15 * + COUNT( * )
----
15

skipif mysql # not compatible
query I rowsort label-4464
SELECT DISTINCT 15 * + COUNT ( * )
----
15

onlyif mysql # DIV for integer division: 
query I rowsort label-4465
SELECT DISTINCT - 55 DIV - - 95 col0
----
0

skipif mysql # not compatible
query I rowsort label-4465
SELECT DISTINCT - 55 / - - 95 col0
----
0

query I rowsort
SELECT 90 + + 38 AS col0
----
128

onlyif mysql # aggregate syntax: 
query II rowsort label-4467
SELECT ALL - 68 AS col0, 31 * - COUNT( * )
----
-68
-31

skipif mysql # not compatible
query II rowsort label-4467
SELECT ALL - 68 AS col0, 31 * - COUNT ( * )
----
-68
-31

query I rowsort
SELECT ALL COALESCE ( 36, + 33 + + 69 ) * 25 * - + 62 + - 32 AS col1
----
-55832

onlyif mysql # aggregate syntax: 
query I rowsort label-4469
SELECT COUNT( * ) - + - 52 AS col2
----
53

skipif mysql # not compatible
query I rowsort label-4469
SELECT COUNT ( * ) - + - 52 AS col2
----
53

query II rowsort
SELECT DISTINCT ( + 54 ) * 34 AS col1, + 85 * + - 36 * - ( - 32 )
----
1836
-97920

onlyif mysql # aggregate syntax: 
query II rowsort label-4471
SELECT 59 AS col0, COUNT( * )
----
59
1

skipif mysql # not compatible
query II rowsort label-4471
SELECT 59 AS col0, COUNT ( * )
----
59
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4472
SELECT + 23 * NULLIF ( + + COUNT( * ), - 37 + - 59 ) AS col1
----
23

skipif mysql # not compatible
query I rowsort label-4472
SELECT + 23 * NULLIF ( + + COUNT ( * ), - 37 + - 59 ) AS col1
----
23

query I rowsort
SELECT 9 + - ( - 45 ) AS col1
----
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4474
SELECT DISTINCT COALESCE ( + 94, 94 ) / ( + 80 ) + - CAST( NULL AS SIGNED ) + - 17 / - 91 * 72 * 36
----
NULL

skipif mysql # not compatible
query I rowsort label-4474
SELECT DISTINCT COALESCE ( + 94, 94 ) / ( + 80 ) + - CAST ( NULL AS INTEGER ) + - 17 / - 91 * 72 * 36
----
NULL

query I rowsort
SELECT 45 * + 37 AS col1
----
1665

query II rowsort
SELECT - 41 AS col0, 81 AS col0
----
-41
81

query I rowsort
SELECT DISTINCT + 45 * + 72 col2
----
3240

query I rowsort
SELECT 24 + + 75 AS col0
----
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4479
SELECT ALL + COALESCE ( + - 82, - + 16 * - 76 * - + COUNT( * ) + + 4 + 86 DIV + 19 + + 6 + + + NULLIF ( 34, + COUNT( ALL 73 ) * 1 ) DIV + + 95 * MIN( - 91 ) ) col0
----
-82

skipif mysql # not compatible
query I rowsort label-4479
SELECT ALL + COALESCE ( + - 82, - + 16 * - 76 * - + COUNT ( * ) + + 4 + 86 / + 19 + + 6 + + + NULLIF ( 34, + COUNT ( ALL 73 ) * 1 ) / + + 95 * MIN ( - 91 ) ) col0
----
-82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4480
SELECT DISTINCT CAST( NULL AS SIGNED ) + - ( + ( - 53 ) ) * + + 81 * + 11 - + + 47 + 77 - + + 50
----
NULL

skipif mysql # not compatible
query I rowsort label-4480
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - ( + ( - 53 ) ) * + + 81 * + 11 - + + 47 + 77 - + + 50
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4481
SELECT ALL + NULLIF ( - + 5, + 16 ) + - 96 - + MIN( ALL + 53 ) col1, 25 + - COUNT( * ) - + COALESCE ( COUNT( * ), + 55, 72, 7 )
----
-154
23

skipif mysql # not compatible
query II rowsort label-4481
SELECT ALL + NULLIF ( - + 5, + 16 ) + - 96 - + MIN ( ALL + 53 ) col1, 25 + - COUNT ( * ) - + COALESCE ( COUNT ( * ), + 55, 72, 7 )
----
-154
23

query I rowsort
SELECT ALL - 51 + + 57
----
6

onlyif mysql # DIV for integer division: 
query I rowsort label-4483
SELECT 3 DIV - + 37 * + 93 + - 18 AS col2
----
-18

skipif mysql # not compatible
query I rowsort label-4483
SELECT 3 / - + 37 * + 93 + - 18 AS col2
----
-18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4484
SELECT 47 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4484
SELECT 47 + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4485
SELECT - 6 * + COUNT( * ) + + 14 + - 64
----
-56

skipif mysql # not compatible
query I rowsort label-4485
SELECT - 6 * + COUNT ( * ) + + 14 + - 64
----
-56

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4486
SELECT - + COUNT( * ) DIV + + 64 * + - 37 + NULLIF ( + 73, - 65 * - - 73 )
----
73

skipif mysql # not compatible
query I rowsort label-4486
SELECT - + COUNT ( * ) / + + 64 * + - 37 + NULLIF ( + 73, - 65 * - - 73 )
----
73

query I rowsort
SELECT ALL 50 * + + 34 + + 4 col1
----
1704

query I rowsort
SELECT - 89 + + 20 + - - 25 * + 16 AS col1
----
331

onlyif mysql # aggregate syntax: 
query I rowsort label-4489
SELECT ALL - MAX( - 0 )
----
0

skipif mysql # not compatible
query I rowsort label-4489
SELECT ALL - MAX ( - 0 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4490
SELECT ALL + COUNT( * ) * - 46 * - COUNT( * ) + COUNT( * )
----
47

skipif mysql # not compatible
query I rowsort label-4490
SELECT ALL + COUNT ( * ) * - 46 * - COUNT ( * ) + COUNT ( * )
----
47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4491
SELECT - 62 * 73 DIV 93 * COALESCE ( + COUNT( * ), + 6 + - 2 )
----
-48

skipif mysql # not compatible
query I rowsort label-4491
SELECT - 62 * 73 / 93 * COALESCE ( + COUNT ( * ), + 6 + - 2 )
----
-48

query I rowsort
SELECT + 74 + + + 21 AS col0
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-4493
SELECT + CASE + - 22 WHEN - + 47 - - - MIN( 5 ) THEN NULL WHEN - 76 * + + 35 THEN NULL WHEN + 4 THEN - 49 + + - 20 * + + 8 WHEN NULLIF ( - 50, - - ( - 8 ) * - 63 ) + + 84 / 42 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4493
SELECT + CASE + - 22 WHEN - + 47 - - - MIN ( 5 ) THEN NULL WHEN - 76 * + + 35 THEN NULL WHEN + 4 THEN - 49 + + - 20 * + + 8 WHEN NULLIF ( - 50, - - ( - 8 ) * - 63 ) + + 84 / 42 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4494
SELECT 87 * + 44 + - SUM( DISTINCT + - ( 65 ) ) AS col1
----
3893

skipif mysql # not compatible
query I rowsort label-4494
SELECT 87 * + 44 + - SUM ( DISTINCT + - ( 65 ) ) AS col1
----
3893

query I rowsort
SELECT - 26 * - 53 * + 11
----
15158

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4496
SELECT - 96 + - 38 - 83 DIV - CAST( + 93 AS SIGNED ) * + 36
----
-134

skipif mysql # not compatible
query I rowsort label-4496
SELECT - 96 + - 38 - 83 / - CAST ( + 93 AS INTEGER ) * + 36
----
-134

query I rowsort
SELECT - 39 * 40 + 40 col2
----
-1520

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4498
SELECT - 48 DIV - + 35 AS col2, SUM( DISTINCT - 58 ) AS col1
----
1
-58

skipif mysql # not compatible
query II rowsort label-4498
SELECT - 48 / - + 35 AS col2, SUM ( DISTINCT - 58 ) AS col1
----
1
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-4499
SELECT - COUNT( * ) * + - 25 * + COUNT( * ) AS col2
----
25

skipif mysql # not compatible
query I rowsort label-4499
SELECT - COUNT ( * ) * + - 25 * + COUNT ( * ) AS col2
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-4500
SELECT + 17 + 82 * COUNT( * ) col2
----
99

skipif mysql # not compatible
query I rowsort label-4500
SELECT + 17 + 82 * COUNT ( * ) col2
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4501
SELECT ALL - + MIN( 34 ) * + + 32 AS col0
----
-1088

skipif mysql # not compatible
query I rowsort label-4501
SELECT ALL - + MIN ( 34 ) * + + 32 AS col0
----
-1088

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4502
SELECT + - 71 + - CAST( - 77 AS SIGNED ) DIV 67 col0
----
-70

skipif mysql # not compatible
query I rowsort label-4502
SELECT + - 71 + - CAST ( - 77 AS INTEGER ) / 67 col0
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-4503
SELECT DISTINCT - - 53 + 49 * - - COUNT( * )
----
102

skipif mysql # not compatible
query I rowsort label-4503
SELECT DISTINCT - - 53 + 49 * - - COUNT ( * )
----
102

query I rowsort
SELECT + NULLIF ( + + 17, 75 / + 25 )
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-4505
SELECT ALL - 16 + + SUM( 92 ) AS col0
----
76

skipif mysql # not compatible
query I rowsort label-4505
SELECT ALL - 16 + + SUM ( 92 ) AS col0
----
76

query I rowsort
SELECT - - COALESCE ( - + 39, 79 * 74, + 95 ) * - 97 - - 83 AS col0
----
3866

onlyif mysql # aggregate syntax: 
query I rowsort label-4507
SELECT ALL + COALESCE ( + - COUNT( * ), - - 61 )
----
-1

skipif mysql # not compatible
query I rowsort label-4507
SELECT ALL + COALESCE ( + - COUNT ( * ), - - 61 )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4508
SELECT - - CAST( - - 56 AS SIGNED ) AS col0
----
56

skipif mysql # not compatible
query I rowsort label-4508
SELECT - - CAST ( - - 56 AS INTEGER ) AS col0
----
56

query II rowsort
SELECT ALL 49 + - 90, 28 AS col0
----
-41
28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4510
SELECT ALL - CAST( + 12 AS SIGNED ) + + 73
----
61

skipif mysql # not compatible
query I rowsort label-4510
SELECT ALL - CAST ( + 12 AS INTEGER ) + + 73
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-4511
SELECT DISTINCT - 22 + - NULLIF ( 46, MAX( DISTINCT - 41 ) ) col1
----
-68

skipif mysql # not compatible
query I rowsort label-4511
SELECT DISTINCT - 22 + - NULLIF ( 46, MAX ( DISTINCT - 41 ) ) col1
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-4512
SELECT + CASE - - COUNT( * ) WHEN 70 THEN NULL ELSE + + 74 END * - - COUNT( * ) * + 51 + + - 85 - 83 AS col2
----
3606

skipif mysql # not compatible
query I rowsort label-4512
SELECT + CASE - - COUNT ( * ) WHEN 70 THEN NULL ELSE + + 74 END * - - COUNT ( * ) * + 51 + + - 85 - 83 AS col2
----
3606

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4513
SELECT + + CASE - 82 WHEN + - 73 THEN 23 * + 28 WHEN + 0 * + + 27 - COUNT( * ) + - 94 * - 66 * - COUNT( DISTINCT + CAST( NULL AS SIGNED ) ) THEN NULL END * 77
----
NULL

skipif mysql # not compatible
query I rowsort label-4513
SELECT + + CASE - 82 WHEN + - 73 THEN 23 * + 28 WHEN + 0 * + + 27 - COUNT ( * ) + - 94 * - 66 * - COUNT ( DISTINCT + CAST ( NULL AS INTEGER ) ) THEN NULL END * 77
----
NULL

query I rowsort
SELECT + - 9 - - 32 AS col0
----
23

onlyif mysql # DIV for integer division: 
query I rowsort label-4515
SELECT + + 34 DIV 95
----
0

skipif mysql # not compatible
query I rowsort label-4515
SELECT + + 34 / 95
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4516
SELECT ALL - CAST( NULL AS SIGNED ) / + 96 AS col1, + CAST( NULL AS SIGNED ) * + CAST( NULL AS SIGNED )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-4516
SELECT ALL - CAST ( NULL AS INTEGER ) / + 96 AS col1, + CAST ( NULL AS INTEGER ) * + CAST ( NULL AS INTEGER )
----
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4517
SELECT CAST( - 45 AS SIGNED ) AS col0
----
-45

skipif mysql # not compatible
query I rowsort label-4517
SELECT CAST ( - 45 AS INTEGER ) AS col0
----
-45

query I rowsort
SELECT + ( 88 ) AS col2
----
88

query I rowsort
SELECT + 38 - - 38 - 21 * + 42
----
-806

query I rowsort
SELECT ( - 34 ) AS col2
----
-34

query I rowsort
SELECT ( + - 56 ) AS col0
----
-56

query I rowsort
SELECT + 2 * 79 * 78 * - 42
----
-517608

onlyif mysql # aggregate syntax: 
query I rowsort label-4523
SELECT DISTINCT + SUM( DISTINCT - 95 )
----
-95

skipif mysql # not compatible
query I rowsort label-4523
SELECT DISTINCT + SUM ( DISTINCT - 95 )
----
-95

query I rowsort
SELECT ALL - 20 * + 10
----
-200

query I rowsort
SELECT - 72 * - + 40 * 80
----
230400

onlyif mysql # aggregate syntax: 
query I rowsort label-4526
SELECT ALL + 46 * - 37 * + COUNT( * ) + - 28
----
-1730

skipif mysql # not compatible
query I rowsort label-4526
SELECT ALL + 46 * - 37 * + COUNT ( * ) + - 28
----
-1730

onlyif mysql # aggregate syntax: 
query I rowsort label-4527
SELECT DISTINCT + MAX( ALL - 30 )
----
-30

skipif mysql # not compatible
query I rowsort label-4527
SELECT DISTINCT + MAX ( ALL - 30 )
----
-30

onlyif mysql # DIV for integer division: 
query II rowsort label-4528
SELECT + 86 AS col1, 90 DIV + NULLIF ( - 95, - - 97 ) AS col2
----
86
0

skipif mysql # not compatible
query II rowsort label-4528
SELECT + 86 AS col1, 90 / + NULLIF ( - 95, - - 97 ) AS col2
----
86
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4529
SELECT + CAST( - ( - + 97 ) AS SIGNED ), 87 * + 1 col2
----
97
87

skipif mysql # not compatible
query II rowsort label-4529
SELECT + CAST ( - ( - + 97 ) AS INTEGER ), 87 * + 1 col2
----
97
87

onlyif mysql # aggregate syntax: 
query I rowsort label-4530
SELECT ALL - COUNT( * ) * - + 21 AS col0
----
21

skipif mysql # not compatible
query I rowsort label-4530
SELECT ALL - COUNT ( * ) * - + 21 AS col0
----
21

query I rowsort
SELECT + 36 * + + 71
----
2556

query I rowsort
SELECT - + 0 * ( + 83 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4533
SELECT DISTINCT CAST( NULL AS SIGNED ) * - + 85 + + MIN( + 75 ) + - + 84 * 13 * - - 21
----
NULL

skipif mysql # not compatible
query I rowsort label-4533
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - + 85 + + MIN ( + 75 ) + - + 84 * 13 * - - 21
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4534
SELECT ALL 51 * + - 86 + COUNT( * )
----
-4385

skipif mysql # not compatible
query I rowsort label-4534
SELECT ALL 51 * + - 86 + COUNT ( * )
----
-4385

onlyif mysql # aggregate syntax: 
query I rowsort label-4535
SELECT - + CASE ( + COALESCE ( - + 1, 45, + - 32 ) ) WHEN 4 THEN - SUM( DISTINCT + 0 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4535
SELECT - + CASE ( + COALESCE ( - + 1, 45, + - 32 ) ) WHEN 4 THEN - SUM ( DISTINCT + 0 ) ELSE NULL END
----
NULL

query I rowsort
SELECT - 81 * 62
----
-5022

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4537
SELECT ALL + + MIN( DISTINCT + 65 ) DIV - MIN( DISTINCT - + 8 ) AS col2
----
8

skipif mysql # not compatible
query I rowsort label-4537
SELECT ALL + + MIN ( DISTINCT + 65 ) / - MIN ( DISTINCT - + 8 ) AS col2
----
8

onlyif mysql # DIV for integer division: 
query III rowsort label-4538
SELECT DISTINCT - NULLIF ( + 61, 4 ) + 17 DIV + ( 48 ) AS col2, 95 DIV 23 AS col0, - - 2 * - + 40
----
-61
4
-80

skipif mysql # not compatible
query III rowsort label-4538
SELECT DISTINCT - NULLIF ( + 61, 4 ) + 17 / + ( 48 ) AS col2, 95 / 23 AS col0, - - 2 * - + 40
----
-61
4
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-4539
SELECT - + 98 - COUNT( DISTINCT 50 ) + + 49 col1
----
-50

skipif mysql # not compatible
query I rowsort label-4539
SELECT - + 98 - COUNT ( DISTINCT 50 ) + + 49 col1
----
-50

query I rowsort
SELECT ALL + 35 * - 28 AS col2
----
-980

onlyif mysql # DIV for integer division: 
query I rowsort label-4541
SELECT + - 24 DIV - 86 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4541
SELECT + - 24 / - 86 AS col1
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4542
SELECT - 83 * 44 + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-4542
SELECT - 83 * 44 + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4543
SELECT ALL - - 83 * 10 DIV - + ( - - 78 )
----
-10

skipif mysql # not compatible
query I rowsort label-4543
SELECT ALL - - 83 * 10 / - + ( - - 78 )
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-4544
SELECT - ( - 88 ) + - 22 + + COUNT( * ) + + 55 + 89 + 33
----
244

skipif mysql # not compatible
query I rowsort label-4544
SELECT - ( - 88 ) + - 22 + + COUNT ( * ) + + 55 + 89 + 33
----
244

query I rowsort
SELECT - 10 + + + CASE - - ( + 97 ) WHEN 50 / 60 THEN 5 * + + 94 WHEN AVG ( ALL + - 26 ) THEN NULL ELSE NULL END + + 68 * 55 AS col2
----
NULL

query II rowsort
SELECT ALL 72 AS col2, + NULLIF ( + ( - + 80 ), + 42 ) * - + 98
----
72
7840

onlyif mysql # aggregate syntax: 
query I rowsort label-4547
SELECT - MIN( - 46 )
----
46

skipif mysql # not compatible
query I rowsort label-4547
SELECT - MIN ( - 46 )
----
46

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4548
SELECT 56 + 76 - - 89 * SUM( 48 ) + - - 17 * - CASE + - 95 WHEN + + 75 THEN + COUNT( * ) * 62 * CAST( NULL AS DECIMAL ) / + 72 END + + + 95
----
NULL

skipif mysql # not compatible
query I rowsort label-4548
SELECT 56 + 76 - - 89 * SUM ( 48 ) + - - 17 * - CASE + - 95 WHEN + + 75 THEN + COUNT ( * ) * 62 * CAST ( NULL AS REAL ) / + 72 END + + + 95
----
NULL

query I rowsort
SELECT 7 * - + 5 AS col2
----
-35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4550
SELECT NULLIF ( + 91, + ( - - 22 ) + + MAX( DISTINCT - 11 ) + - - 18 * CAST( NULL AS SIGNED ) * 78 ) + + - 27 AS col2
----
64

skipif mysql # not compatible
query I rowsort label-4550
SELECT NULLIF ( + 91, + ( - - 22 ) + + MAX ( DISTINCT - 11 ) + - - 18 * CAST ( NULL AS INTEGER ) * 78 ) + + - 27 AS col2
----
64

query II rowsort
SELECT DISTINCT - 68 - - + 74, + 55 AS col0
----
6
55

onlyif mysql # aggregate syntax: 
query I rowsort label-4552
SELECT COUNT( * ) + + 1 * - - 28 * 19
----
533

skipif mysql # not compatible
query I rowsort label-4552
SELECT COUNT ( * ) + + 1 * - - 28 * 19
----
533

onlyif mysql # aggregate syntax: 
query I rowsort label-4553
SELECT COUNT( * ) * + 34
----
34

skipif mysql # not compatible
query I rowsort label-4553
SELECT COUNT ( * ) * + 34
----
34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4554
SELECT 23 DIV + + 58 + + + SUM( - 88 ) * 65
----
-5720

skipif mysql # not compatible
query I rowsort label-4554
SELECT 23 / + + 58 + + + SUM ( - 88 ) * 65
----
-5720

query I rowsort
SELECT COALESCE ( - 93, - + 7 ) + + 19 + 1 AS col2
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-4556
SELECT ALL CASE 24 WHEN - + COUNT( * ) THEN NULL WHEN + - COALESCE ( + - 46, - + 29, + 24 ) THEN - + 27 + - 43 * + 49 + - - COALESCE ( - - COUNT( * ), ( - 75 ), - ( - 64 ) * - + ( - 38 ), + - 45 ) ELSE NULL END * 87 * - 17 + - 29 + - + 1 / + 4 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4556
SELECT ALL CASE 24 WHEN - + COUNT ( * ) THEN NULL WHEN + - COALESCE ( + - 46, - + 29, + 24 ) THEN - + 27 + - 43 * + 49 + - - COALESCE ( - - COUNT ( * ), ( - 75 ), - ( - 64 ) * - + ( - 38 ), + - 45 ) ELSE NULL END * 87 * - 17 + - 29 + - + 1 / + 4 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4557
SELECT COUNT( * ) + COUNT( * ) - - 75 + - NULLIF ( 38, - - COUNT( * ) + - 36 + - - 75 * + 68 + COUNT( ALL - 57 ) ) DIV - 83 * + + 8 * 65 + + 33 AS col2
----
110

skipif mysql # not compatible
query I rowsort label-4557
SELECT COUNT ( * ) + COUNT ( * ) - - 75 + - NULLIF ( 38, - - COUNT ( * ) + - 36 + - - 75 * + 68 + COUNT ( ALL - 57 ) ) / - 83 * + + 8 * 65 + + 33 AS col2
----
110

query II rowsort
SELECT DISTINCT ( - 87 ) * + 82 + - - 5 col2, - 44 * - 81
----
-7129
3564

onlyif mysql # aggregate syntax: 
query II rowsort label-4559
SELECT ALL - 96 AS col0, + COUNT( 17 ) AS col0
----
-96
1

skipif mysql # not compatible
query II rowsort label-4559
SELECT ALL - 96 AS col0, + COUNT ( 17 ) AS col0
----
-96
1

query I rowsort
SELECT ALL 2 + + 49 + + - 69 * + - 76
----
5295

query I rowsort
SELECT 24 * - 86 - - 76 AS col0
----
-1988

onlyif mysql # aggregate syntax: 
query I rowsort label-4562
SELECT 16 * + + 72 + - - COUNT( * ) col0
----
1153

skipif mysql # not compatible
query I rowsort label-4562
SELECT 16 * + + 72 + - - COUNT ( * ) col0
----
1153

onlyif mysql # aggregate syntax: 
query I rowsort label-4563
SELECT SUM( DISTINCT + + ( - 60 ) ) + + - 75 AS col0
----
-135

skipif mysql # not compatible
query I rowsort label-4563
SELECT SUM ( DISTINCT + + ( - 60 ) ) + + - 75 AS col0
----
-135

query II rowsort
SELECT + 84 AS col2, 77
----
84
77

onlyif mysql # DIV for integer division: 
query II rowsort label-4565
SELECT NULLIF ( - 51, 37 ) DIV - 84 + 42 * + + 46 AS col1, - 31 AS col2
----
1932
-31

skipif mysql # not compatible
query II rowsort label-4565
SELECT NULLIF ( - 51, 37 ) / - 84 + 42 * + + 46 AS col1, - 31 AS col2
----
1932
-31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4566
SELECT CAST( - - 69 AS SIGNED ) DIV - + MIN( ALL - - 93 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4566
SELECT CAST ( - - 69 AS INTEGER ) / - + MIN ( ALL - - 93 ) AS col0
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-4567
SELECT + 41 AS col0, 29 DIV + - 70 * ( 84 ) * - + 90
----
41
0

skipif mysql # not compatible
query II rowsort label-4567
SELECT + 41 AS col0, 29 / + - 70 * ( 84 ) * - + 90
----
41
0

query I rowsort
SELECT ALL 25 + + COALESCE ( - - 28, - 80 + + + 44 ) + + + NULLIF ( - 38, - - 21 )
----
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4569
SELECT - 3 * + + 78 + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4569
SELECT - 3 * + + 78 + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query II rowsort
SELECT ALL - - 26 AS col2, - 25 AS col2
----
26
-25

query I rowsort
SELECT DISTINCT - 21 + 84 + - 13 * + - 61 AS col2
----
856

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4572
SELECT + CAST( NULL AS SIGNED ) * + 14 * - - 3 + + + 44 * 50 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4572
SELECT + CAST ( NULL AS INTEGER ) * + 14 * - - 3 + + + 44 * 50 AS col1
----
NULL

query I rowsort
SELECT ALL - + 23 + + - 76 AS col2
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-4574
SELECT - NULLIF ( - - 39, - COUNT( ALL + - 74 ) * 4 + - 37 * - 11 ) col2
----
-39

skipif mysql # not compatible
query I rowsort label-4574
SELECT - NULLIF ( - - 39, - COUNT ( ALL + - 74 ) * 4 + - 37 * - 11 ) col2
----
-39

onlyif mysql # DIV for integer division: 
query I rowsort label-4575
SELECT DISTINCT + - 94 * 2 DIV + 87 AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-4575
SELECT DISTINCT + - 94 * 2 / + 87 AS col0
----
-2

query I rowsort
SELECT 2 * + 29 * - 14
----
-812

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4577
SELECT - 42 + + ( - CAST( NULL AS SIGNED ) ) + + - 86 * + ( + - 84 ) + - - AVG ( DISTINCT + 69 ) * - 27 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4577
SELECT - 42 + + ( - CAST ( NULL AS INTEGER ) ) + + - 86 * + ( + - 84 ) + - - AVG ( DISTINCT + 69 ) * - 27 col2
----
NULL

query II rowsort
SELECT ALL 44 AS col1, + 51 AS col1
----
44
51

query I rowsort
SELECT DISTINCT + 45 * - 32 AS col0
----
-1440

query I rowsort
SELECT ALL COALESCE ( + 18, + 31 + + + 24 )
----
18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4581
SELECT ALL + COUNT( * ) DIV + - 27 col0
----
0

skipif mysql # not compatible
query I rowsort label-4581
SELECT ALL + COUNT ( * ) / + - 27 col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4582
SELECT ALL + SUM( + ( + - 9 ) ) AS col1
----
-9

skipif mysql # not compatible
query I rowsort label-4582
SELECT ALL + SUM ( + ( + - 9 ) ) AS col1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-4583
SELECT DISTINCT + 90 * COUNT( * )
----
90

skipif mysql # not compatible
query I rowsort label-4583
SELECT DISTINCT + 90 * COUNT ( * )
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-4584
SELECT 91 * + ( + COUNT( * ) ) col2
----
91

skipif mysql # not compatible
query I rowsort label-4584
SELECT 91 * + ( + COUNT ( * ) ) col2
----
91

onlyif mysql # DIV for integer division: 
query I rowsort label-4585
SELECT 97 DIV + 68
----
1

skipif mysql # not compatible
query I rowsort label-4585
SELECT 97 / + 68
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4586
SELECT DISTINCT - NULLIF ( 41, + CASE - COUNT( * ) WHEN + + 86 THEN - - 61 END ) * 79
----
-3239

skipif mysql # not compatible
query I rowsort label-4586
SELECT DISTINCT - NULLIF ( 41, + CASE - COUNT ( * ) WHEN + + 86 THEN - - 61 END ) * 79
----
-3239

query I rowsort
SELECT 16 - - 60
----
76

query I rowsort
SELECT DISTINCT - 10 + - 34 * - + 45 AS col0
----
1520

onlyif mysql # aggregate syntax: 
query II rowsort label-4589
SELECT DISTINCT - COUNT( * ) * 69 + + 10 * + + 2 + 16 col0, 82
----
-33
82

skipif mysql # not compatible
query II rowsort label-4589
SELECT DISTINCT - COUNT ( * ) * 69 + + 10 * + + 2 + 16 col0, 82
----
-33
82

query I rowsort
SELECT 15 + + + 44 + + - 67 * 39 + - + 55 * 87 * - 20 * + + 81 AS col2
----
7749146

query I rowsort
SELECT 22 * + ( - 1 ) AS col1
----
-22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4592
SELECT 29 * - + COALESCE ( - CAST( + 16 AS SIGNED ), - 2 * - + 21 * 74 * - + 24, - ( + COUNT( * ) ), 83 * + 79 ) + + 2
----
466

skipif mysql # not compatible
query I rowsort label-4592
SELECT 29 * - + COALESCE ( - CAST ( + 16 AS INTEGER ), - 2 * - + 21 * 74 * - + 24, - ( + COUNT ( * ) ), 83 * + 79 ) + + 2
----
466

query I rowsort
SELECT 60 - - 91
----
151

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4594
SELECT DISTINCT - CAST( 69 AS SIGNED ) AS col0, 10 AS col0
----
-69
10

skipif mysql # not compatible
query II rowsort label-4594
SELECT DISTINCT - CAST ( 69 AS INTEGER ) AS col0, 10 AS col0
----
-69
10

query I rowsort
SELECT ALL 84 + + 31
----
115

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4596
SELECT DISTINCT 42 * + - CAST( NULL AS SIGNED ) * ( + 46 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4596
SELECT DISTINCT 42 * + - CAST ( NULL AS INTEGER ) * ( + 46 ) AS col0
----
NULL

query II rowsort
SELECT ALL - 92 + + 75 col2, 86 - + 32
----
-17
54

query I rowsort
SELECT + NULLIF ( - 39, NULLIF ( - CASE - + 92 WHEN - - 13 THEN + 4 ELSE NULL END, 18 ) ) AS col0
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-4599
SELECT MIN( DISTINCT - - 5 ) - 52
----
-47

skipif mysql # not compatible
query I rowsort label-4599
SELECT MIN ( DISTINCT - - 5 ) - 52
----
-47

query I rowsort
SELECT + 26 * 50 AS col0
----
1300

query I rowsort
SELECT + 70 * 0 * ( - + 84 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4602
SELECT + 8 * - 45 * + ( 45 ) * 28 - 90 + + - COUNT( * ) + CAST( 99 AS SIGNED )
----
-453592

skipif mysql # not compatible
query I rowsort label-4602
SELECT + 8 * - 45 * + ( 45 ) * 28 - 90 + + - COUNT ( * ) + CAST ( 99 AS INTEGER )
----
-453592

query I rowsort
SELECT ALL + ( - 99 )
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-4604
SELECT NULLIF ( - 19, 25 * - COUNT( * ) * 41 - + + 88 ) col2
----
-19

skipif mysql # not compatible
query I rowsort label-4604
SELECT NULLIF ( - 19, 25 * - COUNT ( * ) * 41 - + + 88 ) col2
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-4605
SELECT + + 72 * + COUNT( * )
----
72

skipif mysql # not compatible
query I rowsort label-4605
SELECT + + 72 * + COUNT ( * )
----
72

query I rowsort
SELECT + ( - 26 ) - 65 * - ( - + 49 ) AS col0
----
-3211

query I rowsort
SELECT ALL 85 * + - 65 AS col1
----
-5525

query I rowsort
SELECT - 29 - - 67
----
38

query I rowsort
SELECT + 10 + - 63
----
-53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4610
SELECT ALL ( 64 ) * + - ( + - CAST( + 61 AS SIGNED ) )
----
3904

skipif mysql # not compatible
query I rowsort label-4610
SELECT ALL ( 64 ) * + - ( + - CAST ( + 61 AS INTEGER ) )
----
3904

query II rowsort
SELECT 22, 77 AS col0
----
22
77

query I rowsort
SELECT + 3 + + - 99 AS col0
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-4613
SELECT ALL COUNT( 29 )
----
1

skipif mysql # not compatible
query I rowsort label-4613
SELECT ALL COUNT ( 29 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4614
SELECT ALL 85 + + 64 - + ( + 62 ) * COUNT( * )
----
87

skipif mysql # not compatible
query I rowsort label-4614
SELECT ALL 85 + + 64 - + ( + 62 ) * COUNT ( * )
----
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4615
SELECT DISTINCT COUNT( * ) AS col1, 64 * + 3 + - CAST( 58 AS SIGNED ) + - COALESCE ( + - 94, + + 79 ) * 64 * + 2 AS col1
----
1
12166

skipif mysql # not compatible
query II rowsort label-4615
SELECT DISTINCT COUNT ( * ) AS col1, 64 * + 3 + - CAST ( 58 AS INTEGER ) + - COALESCE ( + - 94, + + 79 ) * 64 * + 2 AS col1
----
1
12166

query I rowsort
SELECT - 32 + 6 AS col1
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-4617
SELECT - 49 * - COUNT( * ) AS col1
----
49

skipif mysql # not compatible
query I rowsort label-4617
SELECT - 49 * - COUNT ( * ) AS col1
----
49

query I rowsort
SELECT + 61 + + + 30 + - + 35 AS col0
----
56

query II rowsort
SELECT + 73, - 42 - + - 28 col2
----
73
-14

query I rowsort
SELECT DISTINCT 73 * 2 + - 24
----
122

query I rowsort
SELECT ALL 41 * - + 77 * + + 37 + + - 48 * + 82 * 71 AS col2
----
-396265

query I rowsort
SELECT - 14 * 44 AS col2
----
-616

onlyif mysql # aggregate syntax: 
query II rowsort label-4623
SELECT + COUNT( * ) AS col1, + 13
----
1
13

skipif mysql # not compatible
query II rowsort label-4623
SELECT + COUNT ( * ) AS col1, + 13
----
1
13

query II rowsort
SELECT DISTINCT + 89 AS col1, - 86
----
89
-86

query I rowsort
SELECT DISTINCT - 71 * - 95 - + - 19 AS col0
----
6764

query II rowsort
SELECT + 60, + 44 AS col1
----
60
44

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4627
SELECT + - CAST( - 36 AS SIGNED ) + 5 DIV + + 98 + 25
----
61

skipif mysql # not compatible
query I rowsort label-4627
SELECT + - CAST ( - 36 AS INTEGER ) + 5 / + + 98 + 25
----
61

query I rowsort
SELECT + 88 * 74 AS col2
----
6512

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4629
SELECT - CAST( NULL AS SIGNED ) * - COUNT( DISTINCT - - 67 ), - 92 AS col2
----
NULL
-92

skipif mysql # not compatible
query II rowsort label-4629
SELECT - CAST ( NULL AS INTEGER ) * - COUNT ( DISTINCT - - 67 ), - 92 AS col2
----
NULL
-92

query II rowsort
SELECT ALL + - 71, - 24 * NULLIF ( - - 29, + + ( - - 42 ) + 33 + - 25 ) AS col1
----
-71
-696

query II rowsort
SELECT + 44 AS col2, 51
----
44
51

onlyif mysql # aggregate syntax: 
query I rowsort label-4632
SELECT - + ( + COUNT( * ) ) * + 30 - - + 53 + - 10 AS col0
----
13

skipif mysql # not compatible
query I rowsort label-4632
SELECT - + ( + COUNT ( * ) ) * + 30 - - + 53 + - 10 AS col0
----
13

query I rowsort
SELECT + 90 * 36 AS col2
----
3240

onlyif mysql # aggregate syntax: 
query I rowsort label-4634
SELECT - COUNT( * ) * + - 89 * + + 74 + 97 AS col2
----
6683

skipif mysql # not compatible
query I rowsort label-4634
SELECT - COUNT ( * ) * + - 89 * + + 74 + 97 AS col2
----
6683

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4635
SELECT ALL CAST( - 61 AS SIGNED ) * 37
----
-2257

skipif mysql # not compatible
query I rowsort label-4635
SELECT ALL CAST ( - 61 AS INTEGER ) * 37
----
-2257

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4636
SELECT - MIN( 81 ) DIV 77
----
-1

skipif mysql # not compatible
query I rowsort label-4636
SELECT - MIN ( 81 ) / 77
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4637
SELECT + + 35 + + 9 + - + NULLIF ( + CAST( NULL AS SIGNED ), + 40 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4637
SELECT + + 35 + + 9 + - + NULLIF ( + CAST ( NULL AS INTEGER ), + 40 ) AS col1
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4638
SELECT ALL + CAST( NULL AS DECIMAL ) + 35
----
NULL

skipif mysql # not compatible
query I rowsort label-4638
SELECT ALL + CAST ( NULL AS REAL ) + 35
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4639
SELECT + + 65 * + COUNT( * ) + + 83 - + + 82 - - - COUNT( * ) * + NULLIF ( - - 7, - 88 * - 99 * - 69 + + - 5 + - + MAX( DISTINCT - - 68 ) * 95 ) * - 84 + + ( - 48 ) + 95 AS col1
----
701

skipif mysql # not compatible
query I rowsort label-4639
SELECT + + 65 * + COUNT ( * ) + + 83 - + + 82 - - - COUNT ( * ) * + NULLIF ( - - 7, - 88 * - 99 * - 69 + + - 5 + - + MAX ( DISTINCT - - 68 ) * 95 ) * - 84 + + ( - 48 ) + 95 AS col1
----
701

onlyif mysql # aggregate syntax: 
query I rowsort label-4640
SELECT ALL COUNT( - 5 ) + 26
----
27

skipif mysql # not compatible
query I rowsort label-4640
SELECT ALL COUNT ( - 5 ) + 26
----
27

query I rowsort
SELECT + 56 * - 98
----
-5488

query I rowsort
SELECT ALL 68 + + 26
----
94

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4643
SELECT - CAST( 77 AS SIGNED ) col0, 36
----
-77
36

skipif mysql # not compatible
query II rowsort label-4643
SELECT - CAST ( 77 AS INTEGER ) col0, 36
----
-77
36

onlyif mysql # aggregate syntax: 
query I rowsort label-4644
SELECT + 44 - + - COALESCE ( + ( - 92 ), 21 + + SUM( + - 98 ) * + - 50 + - ( + 87 ), + - 22 + - 15 )
----
-48

skipif mysql # not compatible
query I rowsort label-4644
SELECT + 44 - + - COALESCE ( + ( - 92 ), 21 + + SUM ( + - 98 ) * + - 50 + - ( + 87 ), + - 22 + - 15 )
----
-48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4645
SELECT - CAST( - ( - + ( + 14 ) ) AS SIGNED ) AS col2
----
-14

skipif mysql # not compatible
query I rowsort label-4645
SELECT - CAST ( - ( - + ( + 14 ) ) AS INTEGER ) AS col2
----
-14

query I rowsort
SELECT ALL 14 * 9 AS col0
----
126

query I rowsort
SELECT + 20 * - NULLIF ( 68, 78 ) AS col2
----
-1360

onlyif mysql # aggregate syntax: 
query II rowsort label-4648
SELECT + 26 * + 32 * - MIN( 3 ) col2, 92
----
-2496
92

skipif mysql # not compatible
query II rowsort label-4648
SELECT + 26 * + 32 * - MIN ( 3 ) col2, 92
----
-2496
92

query I rowsort
SELECT - 43 + - - 27
----
-16

query I rowsort
SELECT ALL 8 + ( 25 )
----
33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4651
SELECT - CAST( - 40 AS SIGNED ) AS col0
----
40

skipif mysql # not compatible
query I rowsort label-4651
SELECT - CAST ( - 40 AS INTEGER ) AS col0
----
40

query I rowsort
SELECT ALL 78 * + 37 * + - 5
----
-14430

query I rowsort
SELECT ALL NULLIF ( + 68, - - 44 ) AS col2
----
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4654
SELECT ALL CAST( - + 64 AS SIGNED ) - - 99 * + 43 AS col1
----
4193

skipif mysql # not compatible
query I rowsort label-4654
SELECT ALL CAST ( - + 64 AS INTEGER ) - - 99 * + 43 AS col1
----
4193

onlyif mysql # aggregate syntax: 
query II rowsort label-4655
SELECT DISTINCT COUNT( * ) * + + 13, + 72 AS col2
----
13
72

skipif mysql # not compatible
query II rowsort label-4655
SELECT DISTINCT COUNT ( * ) * + + 13, + 72 AS col2
----
13
72

onlyif mysql # DIV for integer division: 
query II rowsort label-4656
SELECT ALL - 30 DIV 93, 52 - - 87 AS col0
----
0
139

skipif mysql # not compatible
query II rowsort label-4656
SELECT ALL - 30 / 93, 52 - - 87 AS col0
----
0
139

onlyif mysql # aggregate syntax: 
query I rowsort label-4657
SELECT - COUNT( - 79 ) * + 13 AS col1
----
-13

skipif mysql # not compatible
query I rowsort label-4657
SELECT - COUNT ( - 79 ) * + 13 AS col1
----
-13

query I rowsort
SELECT + - 46 * - 22
----
1012

query I rowsort
SELECT - + 40 * + 51 col0
----
-2040

query II rowsort
SELECT ALL - + CASE + 27 WHEN - 55 THEN NULL WHEN - 39 * 71 + - 30 THEN + 3 END, - 53 * + 53 * + 46 * + 16 * + 22 + + 28 AS col0
----
NULL
-45483300

query I rowsort
SELECT DISTINCT + + 87 * + 39
----
3393

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4662
SELECT DISTINCT - ( 40 ) DIV + 78 * - MAX( - 15 )
----
0

skipif mysql # not compatible
query I rowsort label-4662
SELECT DISTINCT - ( 40 ) / + 78 * - MAX ( - 15 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4663
SELECT + ( - CAST( + - 10 AS SIGNED ) ) AS col0
----
10

skipif mysql # not compatible
query I rowsort label-4663
SELECT + ( - CAST ( + - 10 AS INTEGER ) ) AS col0
----
10

query II rowsort
SELECT DISTINCT - + 74 * - 77 AS col0, + 97
----
5698
97

query I rowsort
SELECT - 61 * 34
----
-2074

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4666
SELECT DISTINCT - - COUNT( * ) * COUNT( * ) + 19 + - 70 * - NULLIF ( - 83, - - CAST( NULL AS SIGNED ) ) AS col0
----
-5790

skipif mysql # not compatible
query I rowsort label-4666
SELECT DISTINCT - - COUNT ( * ) * COUNT ( * ) + 19 + - 70 * - NULLIF ( - 83, - - CAST ( NULL AS INTEGER ) ) AS col0
----
-5790

onlyif mysql # aggregate syntax: 
query I rowsort label-4667
SELECT + MAX( - + 0 ) * - 58 + - 74
----
-74

skipif mysql # not compatible
query I rowsort label-4667
SELECT + MAX ( - + 0 ) * - 58 + - 74
----
-74

query I rowsort
SELECT ALL - ( + 57 ) AS col2
----
-57

query I rowsort
SELECT 87 - + 37 AS col0
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-4670
SELECT DISTINCT - - MIN( + - 38 )
----
-38

skipif mysql # not compatible
query I rowsort label-4670
SELECT DISTINCT - - MIN ( + - 38 )
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-4671
SELECT DISTINCT + + 3 + 96 + + - NULLIF ( - 21, - COUNT( * ) + 61 + MAX( - 15 ) ) * - - 30 col1
----
729

skipif mysql # not compatible
query I rowsort label-4671
SELECT DISTINCT + + 3 + 96 + + - NULLIF ( - 21, - COUNT ( * ) + 61 + MAX ( - 15 ) ) * - - 30 col1
----
729

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4672
SELECT ALL CAST( + 17 AS SIGNED ) + - - COUNT( * )
----
18

skipif mysql # not compatible
query I rowsort label-4672
SELECT ALL CAST ( + 17 AS INTEGER ) + - - COUNT ( * )
----
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4673
SELECT - CAST( NULL AS SIGNED ) * - 55 + ( + AVG ( - - 94 ) ) * - CASE + 25 WHEN - CAST( MIN( 76 ) AS SIGNED ) THEN + + ( + 80 ) END + 76 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4673
SELECT - CAST ( NULL AS INTEGER ) * - 55 + ( + AVG ( - - 94 ) ) * - CASE + 25 WHEN - CAST ( MIN ( 76 ) AS INTEGER ) THEN + + ( + 80 ) END + 76 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4674
SELECT DISTINCT - COUNT( * ) DIV - 42
----
0

skipif mysql # not compatible
query I rowsort label-4674
SELECT DISTINCT - COUNT ( * ) / - 42
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4675
SELECT 35 DIV - 40 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4675
SELECT 35 / - 40 AS col2
----
0

query I rowsort
SELECT ALL 68 + 62
----
130

query I rowsort
SELECT 42 * - 7 AS col1
----
-294

onlyif mysql # aggregate syntax: 
query I rowsort label-4678
SELECT DISTINCT + ( 13 ) * + + 15 + COUNT( * ) * - + 21 * + - COUNT( * ) AS col0
----
216

skipif mysql # not compatible
query I rowsort label-4678
SELECT DISTINCT + ( 13 ) * + + 15 + COUNT ( * ) * - + 21 * + - COUNT ( * ) AS col0
----
216

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4679
SELECT ALL - COUNT( * ) + 0 + 18, CAST( NULL AS SIGNED ) AS col2
----
17
NULL

skipif mysql # not compatible
query II rowsort label-4679
SELECT ALL - COUNT ( * ) + 0 + 18, CAST ( NULL AS INTEGER ) AS col2
----
17
NULL

query I rowsort
SELECT 25 + - 33
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-4681
SELECT MAX( DISTINCT 27 ) - 66 AS col1
----
-39

skipif mysql # not compatible
query I rowsort label-4681
SELECT MAX ( DISTINCT 27 ) - 66 AS col1
----
-39

query I rowsort
SELECT ALL ( + - 56 ) + - + 59 AS col0
----
-115

query I rowsort
SELECT 31 * + 88
----
2728

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4684
SELECT 35 + + - 79 - + COUNT( DISTINCT 47 ) * + 6 - CASE - COUNT( * ) WHEN - 7 + + + 72 + - + COUNT( * ) THEN 3 + - - 79 * + COUNT( * ) + + 19 + ( + 67 ) ELSE + - 24 END + + 39 DIV 89
----
-26

skipif mysql # not compatible
query I rowsort label-4684
SELECT 35 + + - 79 - + COUNT ( DISTINCT 47 ) * + 6 - CASE - COUNT ( * ) WHEN - 7 + + + 72 + - + COUNT ( * ) THEN 3 + - - 79 * + COUNT ( * ) + + 19 + ( + 67 ) ELSE + - 24 END + + 39 / 89
----
-26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4685
SELECT 70 + + - CAST( + + 88 AS SIGNED ) + + 26
----
8

skipif mysql # not compatible
query I rowsort label-4685
SELECT 70 + + - CAST ( + + 88 AS INTEGER ) + + 26
----
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4686
SELECT 60 + - CAST( - 60 AS SIGNED ) + - COALESCE ( + COUNT( * ), + - 48, - - 7 + + 35 * - 59 ) AS col0
----
119

skipif mysql # not compatible
query I rowsort label-4686
SELECT 60 + - CAST ( - 60 AS INTEGER ) + - COALESCE ( + COUNT ( * ), + - 48, - - 7 + + 35 * - 59 ) AS col0
----
119

query I rowsort
SELECT ALL - ( 61 ) - - - 78
----
-139

onlyif mysql # aggregate syntax: 
query II rowsort label-4688
SELECT DISTINCT 28, + COUNT( * ) * 35 * - - 4 * + - 93 + + 82 + 17 AS col1
----
28
-12921

skipif mysql # not compatible
query II rowsort label-4688
SELECT DISTINCT 28, + COUNT ( * ) * 35 * - - 4 * + - 93 + + 82 + 17 AS col1
----
28
-12921

onlyif mysql # aggregate syntax: 
query I rowsort label-4689
SELECT ALL COUNT( DISTINCT + 77 ) - + 88
----
-87

skipif mysql # not compatible
query I rowsort label-4689
SELECT ALL COUNT ( DISTINCT + 77 ) - + 88
----
-87

query I rowsort
SELECT DISTINCT 13 * - 73
----
-949

query I rowsort
SELECT DISTINCT 84 - - 50 AS col0
----
134

query I rowsort
SELECT 56 + - + 79 - + 50
----
-73

query I rowsort
SELECT DISTINCT 60 * - + 59
----
-3540

query I rowsort
SELECT 5 + + 5 * + 34 AS col1
----
175

query I rowsort
SELECT ALL 12 * 63
----
756

query I rowsort
SELECT ALL 59 * 12
----
708

query I rowsort
SELECT ALL 76 + - 93
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-4698
SELECT ALL 52 + 40 * MAX( DISTINCT - 26 * 36 ) AS col2
----
-37388

skipif mysql # not compatible
query I rowsort label-4698
SELECT ALL 52 + 40 * MAX ( DISTINCT - 26 * 36 ) AS col2
----
-37388

onlyif mysql # aggregate syntax: 
query I rowsort label-4699
SELECT 81 + + COUNT( * ) col1
----
82

skipif mysql # not compatible
query I rowsort label-4699
SELECT 81 + + COUNT ( * ) col1
----
82

query I rowsort
SELECT 26 + 81 AS col2
----
107

onlyif mysql # aggregate syntax: 
query I rowsort label-4701
SELECT 91 * COALESCE ( - 29, 19 + 4, + COUNT( * ) * + 73 ) + - 75 * + 57
----
-6914

skipif mysql # not compatible
query I rowsort label-4701
SELECT 91 * COALESCE ( - 29, 19 + 4, + COUNT ( * ) * + 73 ) + - 75 * + 57
----
-6914

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4702
SELECT ALL + CAST( COUNT( 34 ) AS SIGNED ) + - 81
----
-80

skipif mysql # not compatible
query I rowsort label-4702
SELECT ALL + CAST ( COUNT ( 34 ) AS INTEGER ) + - 81
----
-80

query I rowsort
SELECT 16 + 48
----
64

query I rowsort
SELECT ALL COALESCE ( 15, 77 * 76 ) + - 60 * - 29
----
1755

query I rowsort
SELECT 26 + 21 * + 78 AS col2
----
1664

onlyif mysql # aggregate syntax: 
query I rowsort label-4706
SELECT DISTINCT 4 * COUNT( * )
----
4

skipif mysql # not compatible
query I rowsort label-4706
SELECT DISTINCT 4 * COUNT ( * )
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-4707
SELECT ALL - COUNT( * ) * + CASE - 11 * 78 WHEN - 57 THEN 90 ELSE + 34 END AS col1
----
-34

skipif mysql # not compatible
query I rowsort label-4707
SELECT ALL - COUNT ( * ) * + CASE - 11 * 78 WHEN - 57 THEN 90 ELSE + 34 END AS col1
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-4708
SELECT NULLIF ( - 94, + 19 * - MIN( - CASE - 4 WHEN - NULLIF ( + 84, - 31 ) THEN 51 END ) ) * - 97
----
9118

skipif mysql # not compatible
query I rowsort label-4708
SELECT NULLIF ( - 94, + 19 * - MIN ( - CASE - 4 WHEN - NULLIF ( + 84, - 31 ) THEN 51 END ) ) * - 97
----
9118

onlyif mysql # aggregate syntax: 
query I rowsort label-4709
SELECT 29 * - ( + 86 ) + + NULLIF ( COUNT( * ), + 74 )
----
-2493

skipif mysql # not compatible
query I rowsort label-4709
SELECT 29 * - ( + 86 ) + + NULLIF ( COUNT ( * ), + 74 )
----
-2493

query I rowsort
SELECT 61 + 11 AS col0
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-4711
SELECT ALL - COUNT( * ) - + 31
----
-32

skipif mysql # not compatible
query I rowsort label-4711
SELECT ALL - COUNT ( * ) - + 31
----
-32

query I rowsort
SELECT 70 + 24
----
94

query I rowsort
SELECT 41 * 43 AS col0
----
1763

onlyif mysql # aggregate syntax: 
query I rowsort label-4714
SELECT MAX( ALL 28 ) * - 86
----
-2408

skipif mysql # not compatible
query I rowsort label-4714
SELECT MAX ( ALL 28 ) * - 86
----
-2408

onlyif mysql # aggregate syntax: 
query I rowsort label-4715
SELECT ALL 78 * NULLIF ( COUNT( 85 ) * + 63, - 97 * + 26 ) col0
----
4914

skipif mysql # not compatible
query I rowsort label-4715
SELECT ALL 78 * NULLIF ( COUNT ( 85 ) * + 63, - 97 * + 26 ) col0
----
4914

query I rowsort
SELECT 66 * + ( - ( + 23 ) ) AS col2
----
-1518

onlyif mysql # DIV for integer division: 
query I rowsort label-4717
SELECT DISTINCT + 57 DIV + 34
----
1

skipif mysql # not compatible
query I rowsort label-4717
SELECT DISTINCT + 57 / + 34
----
1

query I rowsort
SELECT ALL + 39 * + ( - 36 )
----
-1404

query I rowsort
SELECT 50 - + 95 AS col1
----
-45

query I rowsort
SELECT ALL + 30 * 97 AS col2
----
2910

query I rowsort
SELECT 56 * 0 col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4722
SELECT 60 + - COALESCE ( 24 + + 49, CAST( CASE - 58 WHEN ( + SUM( DISTINCT - 65 ) ) * 87 - COALESCE ( 44, + 65 ) THEN 25 + 17 END AS SIGNED ) ) AS col1
----
-13

skipif mysql # not compatible
query I rowsort label-4722
SELECT 60 + - COALESCE ( 24 + + 49, CAST ( CASE - 58 WHEN ( + SUM ( DISTINCT - 65 ) ) * 87 - COALESCE ( 44, + 65 ) THEN 25 + 17 END AS INTEGER ) ) AS col1
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-4723
SELECT ALL NULLIF ( 1, 24 * COUNT( * ) + 97 * - 88 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4723
SELECT ALL NULLIF ( 1, 24 * COUNT ( * ) + 97 * - 88 ) AS col1
----
1

query I rowsort
SELECT + 89 * 57 AS col1
----
5073

query I rowsort
SELECT ALL NULLIF ( - 5, 67 ) AS col0
----
-5

query I rowsort
SELECT + + 38 * 70
----
2660

onlyif mysql # DIV for integer division: 
query I rowsort label-4727
SELECT + 20 - - 76 DIV 14 AS col1
----
25

skipif mysql # not compatible
query I rowsort label-4727
SELECT + 20 - - 76 / 14 AS col1
----
25

query I rowsort
SELECT ALL ( 12 ) * + 42 + 74 * - 31
----
-1790

query I rowsort
SELECT ALL 91 * + 67 + 78 AS col0
----
6175

query I rowsort
SELECT - 82 * + 12 AS col1
----
-984

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4731
SELECT - - 19 + - 40 DIV + MIN( DISTINCT + 15 ) col1
----
17

skipif mysql # not compatible
query I rowsort label-4731
SELECT - - 19 + - 40 / + MIN ( DISTINCT + 15 ) col1
----
17

query I rowsort
SELECT + 70 - + NULLIF ( 62, 92 + 23 ) * 98
----
-6006

onlyif mysql # aggregate syntax: 
query I rowsort label-4733
SELECT ALL NULLIF ( - COUNT( * ), ( - 89 ) + 62 ) * 45
----
-45

skipif mysql # not compatible
query I rowsort label-4733
SELECT ALL NULLIF ( - COUNT ( * ), ( - 89 ) + 62 ) * 45
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-4734
SELECT + 79 * COUNT( * ) col1
----
79

skipif mysql # not compatible
query I rowsort label-4734
SELECT + 79 * COUNT ( * ) col1
----
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4735
SELECT ALL + - CAST( + 1 AS SIGNED ) * 39 + + 7 AS col0
----
-32

skipif mysql # not compatible
query I rowsort label-4735
SELECT ALL + - CAST ( + 1 AS INTEGER ) * 39 + + 7 AS col0
----
-32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4736
SELECT DISTINCT + + 28 * + ( 13 * 84 ) + - CAST( - 75 AS SIGNED ) * COALESCE ( - 33 - - 29, - 53 * COUNT( * ) ) AS col2
----
30276

skipif mysql # not compatible
query I rowsort label-4736
SELECT DISTINCT + + 28 * + ( 13 * 84 ) + - CAST ( - 75 AS INTEGER ) * COALESCE ( - 33 - - 29, - 53 * COUNT ( * ) ) AS col2
----
30276

query I rowsort
SELECT + 36 + - 79
----
-43

query I rowsort
SELECT ALL - 72 * - 37 AS col1
----
2664

onlyif mysql # DIV for integer division: 
query I rowsort label-4739
SELECT + - 61 DIV - 97 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4739
SELECT + - 61 / - 97 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4740
SELECT DISTINCT + + 63 * + COUNT( * ) + - 14 AS col0
----
49

skipif mysql # not compatible
query I rowsort label-4740
SELECT DISTINCT + + 63 * + COUNT ( * ) + - 14 AS col0
----
49

query I rowsort
SELECT ALL + ( + 42 )
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-4742
SELECT COUNT( DISTINCT - 80 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4742
SELECT COUNT ( DISTINCT - 80 ) AS col2
----
1

query I rowsort
SELECT DISTINCT - 27 * 85 - 1 col2
----
-2296

query I rowsort
SELECT + - 17 * ( 58 ) col1
----
-986

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4745
SELECT + CASE + 46 WHEN COUNT( * ) * - 61 + - 51 * CASE ( - CASE - AVG ( ALL + 60 ) WHEN - 21 THEN NULLIF ( - COUNT( * ), + COUNT( * ) * + 4 - 71 ) END ) WHEN 95 THEN NULL WHEN + 46 THEN NULL ELSE - 86 / + 6 END THEN 37 WHEN 78 THEN 4 / + CAST( NULL AS SIGNED ) + - ( 71 ) ELSE NULL END / + 50
----
NULL

skipif mysql # not compatible
query I rowsort label-4745
SELECT + CASE + 46 WHEN COUNT ( * ) * - 61 + - 51 * CASE ( - CASE - AVG ( ALL + 60 ) WHEN - 21 THEN NULLIF ( - COUNT ( * ), + COUNT ( * ) * + 4 - 71 ) END ) WHEN 95 THEN NULL WHEN + 46 THEN NULL ELSE - 86 / + 6 END THEN 37 WHEN 78 THEN 4 / + CAST ( NULL AS INTEGER ) + - ( 71 ) ELSE NULL END / + 50
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4746
SELECT DISTINCT + MIN( ALL - - 43 )
----
43

skipif mysql # not compatible
query I rowsort label-4746
SELECT DISTINCT + MIN ( ALL - - 43 )
----
43

query I rowsort
SELECT + 21 + + 40 col2
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-4748
SELECT + 15 - + COUNT( * ) * COUNT( * ) AS col0
----
14

skipif mysql # not compatible
query I rowsort label-4748
SELECT + 15 - + COUNT ( * ) * COUNT ( * ) AS col0
----
14

onlyif mysql # DIV for integer division: 
query I rowsort label-4749
SELECT DISTINCT 21 DIV + + 19 col1
----
1

skipif mysql # not compatible
query I rowsort label-4749
SELECT DISTINCT 21 / + + 19 col1
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4750
SELECT + MIN( DISTINCT - - 34 ) * + MIN( DISTINCT NULLIF ( 47, + 82 ) ) + + COALESCE ( 6, 13 * + ( - 22 ) + - COALESCE ( - CASE + 90 WHEN - COUNT( * ) DIV + 31 THEN - NULLIF ( 95, AVG ( DISTINCT + NULLIF ( - 12, 93 ) ) ) ELSE NULL END, CASE - COUNT( * ) WHEN + 69 THEN - 71 DIV - 43 END DIV AVG ( ALL + 26 + + 60 ) ) )
----
1604

skipif mysql # not compatible
query I rowsort label-4750
SELECT + MIN ( DISTINCT - - 34 ) * + MIN ( DISTINCT NULLIF ( 47, + 82 ) ) + + COALESCE ( 6, 13 * + ( - 22 ) + - COALESCE ( - CASE + 90 WHEN - COUNT ( * ) / + 31 THEN - NULLIF ( 95, AVG ( DISTINCT + NULLIF ( - 12, 93 ) ) ) ELSE NULL END, CASE - COUNT ( * ) WHEN + 69 THEN - 71 / - 43 END / AVG ( ALL + 26 + + 60 ) ) )
----
1604

onlyif mysql # DIV for integer division: 
query I rowsort label-4751
SELECT ALL 55 DIV - 55 col0
----
-1

skipif mysql # not compatible
query I rowsort label-4751
SELECT ALL 55 / - 55 col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4752
SELECT SUM( + 25 ) * + ( + 81 + 70 ) + MAX( DISTINCT - 83 )
----
3692

skipif mysql # not compatible
query I rowsort label-4752
SELECT SUM ( + 25 ) * + ( + 81 + 70 ) + MAX ( DISTINCT - 83 )
----
3692

query I rowsort
SELECT ALL NULLIF ( 2, + 66 )
----
2

query I rowsort
SELECT ALL + 44 * - 14 col1
----
-616

query I rowsort
SELECT - NULLIF ( + 90, 27 ) + - 9 AS col1
----
-99

query I rowsort
SELECT ALL 49 * + 61 AS col1
----
2989

query I rowsort
SELECT - 37 - 20
----
-57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4758
SELECT - CAST( NULL AS SIGNED ) - + 38 / - 98
----
NULL

skipif mysql # not compatible
query I rowsort label-4758
SELECT - CAST ( NULL AS INTEGER ) - + 38 / - 98
----
NULL

query I rowsort
SELECT - COALESCE ( - 96, 85 ) * - 29
----
-2784

query I rowsort
SELECT - 31 * + 6 AS col2
----
-186

query I rowsort
SELECT DISTINCT + 26 + - - 3 AS col1
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-4762
SELECT ALL + COUNT( * ) + - + COUNT( * ) * 55
----
-54

skipif mysql # not compatible
query I rowsort label-4762
SELECT ALL + COUNT ( * ) + - + COUNT ( * ) * 55
----
-54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4763
SELECT - CAST( - + ( NULLIF ( - ( - CASE 4 WHEN 4 THEN 21 + + COUNT( * ) * - 91 END ), + MAX( 40 ) ) ) AS SIGNED ) + + 21
----
-49

skipif mysql # not compatible
query I rowsort label-4763
SELECT - CAST ( - + ( NULLIF ( - ( - CASE 4 WHEN 4 THEN 21 + + COUNT ( * ) * - 91 END ), + MAX ( 40 ) ) ) AS INTEGER ) + + 21
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-4764
SELECT - COUNT( * ) * - - 44
----
-44

skipif mysql # not compatible
query I rowsort label-4764
SELECT - COUNT ( * ) * - - 44
----
-44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4765
SELECT ALL - CAST( + - 94 AS SIGNED ) col1
----
94

skipif mysql # not compatible
query I rowsort label-4765
SELECT ALL - CAST ( + - 94 AS INTEGER ) col1
----
94

query I rowsort
SELECT DISTINCT + - 68 + + + 82
----
14

query I rowsort
SELECT - - 34 + 9 * - 7 AS col2
----
-29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4768
SELECT ALL + CAST( NULL AS SIGNED ) + 61 + COUNT( * ) * ( 85 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4768
SELECT ALL + CAST ( NULL AS INTEGER ) + 61 + COUNT ( * ) * ( 85 ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT - + 1 + - 67
----
-68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4770
SELECT - 80 + - 37 + 6 / CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4770
SELECT - 80 + - 37 + 6 / CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4771
SELECT + SUM( DISTINCT + + 68 ) + - MAX( 26 ) AS col0
----
42

skipif mysql # not compatible
query I rowsort label-4771
SELECT + SUM ( DISTINCT + + 68 ) + - MAX ( 26 ) AS col0
----
42

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4772
SELECT ALL - 46 DIV - 45 * COUNT( ALL 42 ) + COUNT( - 36 )
----
2

skipif mysql # not compatible
query I rowsort label-4772
SELECT ALL - 46 / - 45 * COUNT ( ALL 42 ) + COUNT ( - 36 )
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4773
SELECT - - 65 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4773
SELECT - - 65 + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4774
SELECT ALL + + CAST( 6 AS SIGNED )
----
6

skipif mysql # not compatible
query I rowsort label-4774
SELECT ALL + + CAST ( 6 AS INTEGER )
----
6

query I rowsort
SELECT DISTINCT + COALESCE ( 69, 30 )
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-4776
SELECT ALL + + MAX( ALL + 54 )
----
54

skipif mysql # not compatible
query I rowsort label-4776
SELECT ALL + + MAX ( ALL + 54 )
----
54

query I rowsort
SELECT - 54 / - - 43 + CASE + 86 WHEN 97 THEN 9 + 28 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4778
SELECT ALL - CASE + + 19 WHEN - COALESCE ( + 2, AVG ( DISTINCT 69 ) ) THEN - 18 + + 13 WHEN - 22 + 73 THEN NULL END / + CAST( - 8 + + 34 AS SIGNED ) - - 80
----
NULL

skipif mysql # not compatible
query I rowsort label-4778
SELECT ALL - CASE + + 19 WHEN - COALESCE ( + 2, AVG ( DISTINCT 69 ) ) THEN - 18 + + 13 WHEN - 22 + 73 THEN NULL END / + CAST ( - 8 + + 34 AS INTEGER ) - - 80
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4779
SELECT + - 24 + 21 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4779
SELECT + - 24 + 21 * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4780
SELECT DISTINCT + 30 DIV + + 38 - + 54 - 81 AS col0
----
-135

skipif mysql # not compatible
query I rowsort label-4780
SELECT DISTINCT + 30 / + + 38 - + 54 - 81 AS col0
----
-135

query II rowsort
SELECT DISTINCT + 93 AS col2, 21 * 49
----
93
1029

onlyif mysql # aggregate syntax: 
query I rowsort label-4782
SELECT ( - CASE - ( 19 ) WHEN 7 - - COUNT( * ) THEN NULL WHEN - MIN( 68 ) + 81 THEN + 33 * 20 ELSE 43 * 79 END ) AS col2
----
-3397

skipif mysql # not compatible
query I rowsort label-4782
SELECT ( - CASE - ( 19 ) WHEN 7 - - COUNT ( * ) THEN NULL WHEN - MIN ( 68 ) + 81 THEN + 33 * 20 ELSE 43 * 79 END ) AS col2
----
-3397

query I rowsort
SELECT 38 * - 73 * + 44 + - 41 AS col2
----
-122097

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4784
SELECT 66 * + + CASE WHEN + CAST( 62 AS SIGNED ) < 20 THEN - 54 WHEN NOT ( - 87 ) - 24 > ( 39 ) THEN NULL ELSE - ( SUM( DISTINCT 10 ) ) / - CASE + 61 WHEN - 10 THEN COUNT( * ) + 76 WHEN 24 THEN 52 END END + 2
----
NULL

skipif mysql # not compatible
query I rowsort label-4784
SELECT 66 * + + CASE WHEN + CAST ( 62 AS INTEGER ) < 20 THEN - 54 WHEN NOT ( - 87 ) - 24 > ( 39 ) THEN NULL ELSE - ( SUM ( DISTINCT 10 ) ) / - CASE + 61 WHEN - 10 THEN COUNT ( * ) + 76 WHEN 24 THEN 52 END END + 2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4785
SELECT DISTINCT + MAX( + 68 )
----
68

skipif mysql # not compatible
query I rowsort label-4785
SELECT DISTINCT + MAX ( + 68 )
----
68

query I rowsort
SELECT ALL + ( 1 ) * + - 0 * 64 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4787
SELECT + 91 + + COUNT( * ) AS col0
----
92

skipif mysql # not compatible
query I rowsort label-4787
SELECT + 91 + + COUNT ( * ) AS col0
----
92

query I rowsort
SELECT DISTINCT 15 * - 35 AS col1
----
-525

query I rowsort
SELECT ALL 49 * ( - - 6 )
----
294

onlyif mysql # DIV for integer division: 
query II rowsort label-4790
SELECT DISTINCT + 8, + 77 * - - 30 + 15 DIV + 77 AS col2
----
8
2310

skipif mysql # not compatible
query II rowsort label-4790
SELECT DISTINCT + 8, + 77 * - - 30 + 15 / + 77 AS col2
----
8
2310

onlyif mysql # aggregate syntax: 
query I rowsort label-4791
SELECT CASE 15 WHEN 38 THEN NULL WHEN 48 * - COUNT( * ) THEN NULL WHEN + 99 THEN 3 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4791
SELECT CASE 15 WHEN 38 THEN NULL WHEN 48 * - COUNT ( * ) THEN NULL WHEN + 99 THEN 3 END AS col0
----
NULL

query I rowsort
SELECT + ( - 3 ) + - 10 + - 70 AS col2
----
-83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4793
SELECT 60 * CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4793
SELECT 60 * CAST ( NULL AS INTEGER ) col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4794
SELECT 95 + - - CAST( + 35 AS SIGNED ) col0
----
130

skipif mysql # not compatible
query I rowsort label-4794
SELECT 95 + - - CAST ( + 35 AS INTEGER ) col0
----
130

query II rowsort
SELECT 73 col0, 64 col2
----
73
64

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4796
SELECT 5 + - 99 - + + 93 DIV - COUNT( DISTINCT + 70 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4796
SELECT 5 + - 99 - + + 93 / - COUNT ( DISTINCT + 70 ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4797
SELECT ALL MIN( ALL 52 ) + 34 + 54
----
140

skipif mysql # not compatible
query I rowsort label-4797
SELECT ALL MIN ( ALL 52 ) + 34 + 54
----
140

onlyif mysql # aggregate syntax: 
query I rowsort label-4798
SELECT DISTINCT 54 * - + 78 * - 52 * CASE 42 WHEN 88 + COUNT( * ) / - 36 THEN NULL WHEN ( 86 ) + MIN( ALL 95 ) THEN + 42 - + 80 WHEN 29 THEN ( 73 ) * - ( 85 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-4798
SELECT DISTINCT 54 * - + 78 * - 52 * CASE 42 WHEN 88 + COUNT ( * ) / - 36 THEN NULL WHEN ( 86 ) + MIN ( ALL 95 ) THEN + 42 - + 80 WHEN 29 THEN ( 73 ) * - ( 85 ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4799
SELECT ALL 66 + SUM( 6 )
----
72

skipif mysql # not compatible
query I rowsort label-4799
SELECT ALL 66 + SUM ( 6 )
----
72

query I rowsort
SELECT 85 * - 10
----
-850

query I rowsort
SELECT DISTINCT 1 + + - ( - + 56 ) + 41 * - 1
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-4802
SELECT NULLIF ( - - MAX( + - 60 ), 52 * + 47 )
----
-60

skipif mysql # not compatible
query I rowsort label-4802
SELECT NULLIF ( - - MAX ( + - 60 ), 52 * + 47 )
----
-60

onlyif mysql # DIV for integer division: 
query I rowsort label-4803
SELECT 20 DIV ( - ( 50 ) ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4803
SELECT 20 / ( - ( 50 ) ) AS col0
----
0

query I rowsort
SELECT 7 - 55 - + + 31 col0
----
-79

query I rowsort
SELECT - 55 + + - 10
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-4806
SELECT COUNT( * ) + 21 - 6
----
16

skipif mysql # not compatible
query I rowsort label-4806
SELECT COUNT ( * ) + 21 - 6
----
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4807
SELECT + 48 + - COALESCE ( CAST( NULL AS SIGNED ), 90 + COUNT( * ) ) + CASE 33 WHEN - CAST( NULL AS SIGNED ) THEN NULLIF ( - 1, + 64 - + 62 ) WHEN 87 THEN ( + 56 ) ELSE NULL END / + 89
----
NULL

skipif mysql # not compatible
query I rowsort label-4807
SELECT + 48 + - COALESCE ( CAST ( NULL AS INTEGER ), 90 + COUNT ( * ) ) + CASE 33 WHEN - CAST ( NULL AS INTEGER ) THEN NULLIF ( - 1, + 64 - + 62 ) WHEN 87 THEN ( + 56 ) ELSE NULL END / + 89
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4808
SELECT MIN( + 41 ) * - 28 AS col1
----
-1148

skipif mysql # not compatible
query I rowsort label-4808
SELECT MIN ( + 41 ) * - 28 AS col1
----
-1148

query I rowsort
SELECT ALL - - 23 + - 54 * + 52 - 67 AS col1
----
-2852

onlyif mysql # aggregate syntax: 
query I rowsort label-4810
SELECT DISTINCT + ( - - ( + - COUNT( * ) ) )
----
-1

skipif mysql # not compatible
query I rowsort label-4810
SELECT DISTINCT + ( - - ( + - COUNT ( * ) ) )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4811
SELECT ALL - - NULLIF ( - + CASE - + 65 WHEN + COUNT( * ) * + 39 THEN NULL WHEN COUNT( * ) * 0 THEN 17 ELSE NULL END, - ( + 54 ) - CASE 72 WHEN - 88 THEN - 60 * + 9 WHEN 30 THEN + 41 ELSE COUNT( * ) END * 85 ) - 4 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4811
SELECT ALL - - NULLIF ( - + CASE - + 65 WHEN + COUNT ( * ) * + 39 THEN NULL WHEN COUNT ( * ) * 0 THEN 17 ELSE NULL END, - ( + 54 ) - CASE 72 WHEN - 88 THEN - 60 * + 9 WHEN 30 THEN + 41 ELSE COUNT ( * ) END * 85 ) - 4 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4812
SELECT - 71 + - - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4812
SELECT - 71 + - - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4813
SELECT + - CAST( - 48 AS SIGNED ) AS col2
----
48

skipif mysql # not compatible
query I rowsort label-4813
SELECT + - CAST ( - 48 AS INTEGER ) AS col2
----
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4814
SELECT ALL - 90 * - 47 * CASE + CAST( + COUNT( * ) AS SIGNED ) WHEN ( 46 ) + + 3 THEN NULL WHEN - 40 THEN 8 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4814
SELECT ALL - 90 * - 47 * CASE + CAST ( + COUNT ( * ) AS INTEGER ) WHEN ( 46 ) + + 3 THEN NULL WHEN - 40 THEN 8 END AS col2
----
NULL

query I rowsort
SELECT 79 * + - 43 AS col0
----
-3397

query I rowsort
SELECT ALL - + 6 * + 80 * + 33 * 58 + + ( 65 )
----
-918655

onlyif mysql # aggregate syntax: 
query I rowsort label-4817
SELECT DISTINCT + SUM( ALL - 71 ) * + - ( COUNT( * ) ) AS col0
----
71

skipif mysql # not compatible
query I rowsort label-4817
SELECT DISTINCT + SUM ( ALL - 71 ) * + - ( COUNT ( * ) ) AS col0
----
71

onlyif mysql # aggregate syntax: 
query II rowsort label-4818
SELECT ALL - MAX( + + 30 ) AS col2, 78 AS col2
----
-30
78

skipif mysql # not compatible
query II rowsort label-4818
SELECT ALL - MAX ( + + 30 ) AS col2, 78 AS col2
----
-30
78

onlyif mysql # aggregate syntax: 
query I rowsort label-4819
SELECT - COUNT( DISTINCT + - 44 ) * + 4 * 2 + + 68 + + 7 AS col1
----
67

skipif mysql # not compatible
query I rowsort label-4819
SELECT - COUNT ( DISTINCT + - 44 ) * + 4 * 2 + + 68 + + 7 AS col1
----
67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4820
SELECT SUM( + 59 ) - + - 5 * - COUNT( * ) DIV + CASE 8 * + 74 WHEN 30 THEN + 72 ELSE + 91 END AS col1
----
59

skipif mysql # not compatible
query I rowsort label-4820
SELECT SUM ( + 59 ) - + - 5 * - COUNT ( * ) / + CASE 8 * + 74 WHEN 30 THEN + 72 ELSE + 91 END AS col1
----
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4821
SELECT DISTINCT - COALESCE ( 25, + - 87 * SUM( - 55 ), - 75 + CAST( - 29 + 23 AS SIGNED ) ) AS col1
----
-25

skipif mysql # not compatible
query I rowsort label-4821
SELECT DISTINCT - COALESCE ( 25, + - 87 * SUM ( - 55 ), - 75 + CAST ( - 29 + 23 AS INTEGER ) ) AS col1
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-4822
SELECT 7 * - + 37 * - ( NULLIF ( + 71, 42 ) ) + + COUNT( * )
----
18390

skipif mysql # not compatible
query I rowsort label-4822
SELECT 7 * - + 37 * - ( NULLIF ( + 71, 42 ) ) + + COUNT ( * )
----
18390

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4823
SELECT ALL - ( - 92 ) AS col1, - CAST( NULL AS SIGNED ) * - CAST( NULL AS SIGNED ) + 78
----
92
NULL

skipif mysql # not compatible
query II rowsort label-4823
SELECT ALL - ( - 92 ) AS col1, - CAST ( NULL AS INTEGER ) * - CAST ( NULL AS INTEGER ) + 78
----
92
NULL

query I rowsort
SELECT 60 + + + CASE WHEN + 65 IS NOT NULL THEN + 2 END
----
62

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4825
SELECT ALL 20 + + COALESCE ( - 89, + 38 * - COALESCE ( 52 * - COUNT( * ), COUNT( - 88 ), 10 ), - 59 ) DIV COUNT( * )
----
-69

skipif mysql # not compatible
query I rowsort label-4825
SELECT ALL 20 + + COALESCE ( - 89, + 38 * - COALESCE ( 52 * - COUNT ( * ), COUNT ( - 88 ), 10 ), - 59 ) / COUNT ( * )
----
-69

onlyif mysql # DIV for integer division: 
query I rowsort label-4826
SELECT 69 + + 28 DIV - - 11 AS col2
----
71

skipif mysql # not compatible
query I rowsort label-4826
SELECT 69 + + 28 / - - 11 AS col2
----
71

query II rowsort
SELECT ALL 96 + - 17 AS col0, - 73 AS col1
----
79
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-4828
SELECT 76 + COUNT( * ) + + + 76
----
153

skipif mysql # not compatible
query I rowsort label-4828
SELECT 76 + COUNT ( * ) + + + 76
----
153

query I rowsort
SELECT DISTINCT 13 * - 34 AS col2
----
-442

query I rowsort
SELECT DISTINCT - 26 + + 55
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-4831
SELECT ALL 48 + + COUNT( * ) AS col2
----
49

skipif mysql # not compatible
query I rowsort label-4831
SELECT ALL 48 + + COUNT ( * ) AS col2
----
49

query I rowsort
SELECT 95 + + 2
----
97

query I rowsort
SELECT ALL - 9 + + 50 * 80 * - 21 * 43 AS col1
----
-3612009

query I rowsort
SELECT ( + ( 41 ) ) + ( - 17 )
----
24

query I rowsort
SELECT ALL CASE WHEN NOT NULL = ( 62 ) THEN 43 * 14 END AS col2
----
NULL

query I rowsort
SELECT - 76 * 39 + + - 88
----
-3052

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4837
SELECT + MAX( ALL - + 27 ) + + NULLIF ( 73, 72 ) * + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-4837
SELECT + MAX ( ALL - + 27 ) + + NULLIF ( 73, 72 ) * + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4838
SELECT ALL + COALESCE ( + SUM( + 77 ), - 28, 56 ) + 82 AS col1
----
159

skipif mysql # not compatible
query I rowsort label-4838
SELECT ALL + COALESCE ( + SUM ( + 77 ), - 28, 56 ) + 82 AS col1
----
159

onlyif mysql # aggregate syntax: 
query I rowsort label-4839
SELECT + 36 + 14 * 38 * - MIN( DISTINCT - 73 )
----
38872

skipif mysql # not compatible
query I rowsort label-4839
SELECT + 36 + 14 * 38 * - MIN ( DISTINCT - 73 )
----
38872

onlyif mysql # aggregate syntax: 
query I rowsort label-4840
SELECT ALL 6 - + - COUNT( * ) * - NULLIF ( + - 7, - 96 - 4 ) AS col0
----
13

skipif mysql # not compatible
query I rowsort label-4840
SELECT ALL 6 - + - COUNT ( * ) * - NULLIF ( + - 7, - 96 - 4 ) AS col0
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-4841
SELECT 45 + - + 64 + - 3 * - - COALESCE ( MIN( DISTINCT - 67 ), - 55 ) AS col1
----
182

skipif mysql # not compatible
query I rowsort label-4841
SELECT 45 + - + 64 + - 3 * - - COALESCE ( MIN ( DISTINCT - 67 ), - 55 ) AS col1
----
182

query I rowsort
SELECT DISTINCT + 18 - 34 col0
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-4843
SELECT - 3 + COUNT( * ) + + 71
----
69

skipif mysql # not compatible
query I rowsort label-4843
SELECT - 3 + COUNT ( * ) + + 71
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-4844
SELECT ALL COUNT( DISTINCT - ( + 49 ) ) - - 6 * - 30
----
-179

skipif mysql # not compatible
query I rowsort label-4844
SELECT ALL COUNT ( DISTINCT - ( + 49 ) ) - - 6 * - 30
----
-179

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4845
SELECT DISTINCT - CAST( CAST( NULL AS DECIMAL ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4845
SELECT DISTINCT - CAST ( CAST ( NULL AS REAL ) AS INTEGER )
----
NULL

query I rowsort
SELECT ( - 61 ) * 31 * + 0 + - 39
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-4847
SELECT COUNT( * ) + ( - + MAX( 53 ) ) * 6
----
-317

skipif mysql # not compatible
query I rowsort label-4847
SELECT COUNT ( * ) + ( - + MAX ( 53 ) ) * 6
----
-317

query I rowsort
SELECT CASE - 16 WHEN - 74 THEN + + 88 * - 20 END + - 42 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4849
SELECT DISTINCT + 61 * 7 DIV + SUM( ALL - - ( - 59 ) ) + 45 AS col0
----
38

skipif mysql # not compatible
query I rowsort label-4849
SELECT DISTINCT + 61 * 7 / + SUM ( ALL - - ( - 59 ) ) + 45 AS col0
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-4850
SELECT + 52 + NULLIF ( + 6, + COUNT( * ) ) + - 32 AS col1
----
26

skipif mysql # not compatible
query I rowsort label-4850
SELECT + 52 + NULLIF ( + 6, + COUNT ( * ) ) + - 32 AS col1
----
26

query I rowsort
SELECT 94 * - - 56
----
5264

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4852
SELECT - 61 * CASE COALESCE ( + - NULLIF ( 37, 18 - - 22 ), + COUNT( * ) ) WHEN - 13 + - COUNT( * ) THEN NULL WHEN - 8 * 37 - 36 THEN CAST( NULL AS SIGNED ) / + 67 WHEN 58 + AVG ( + 5 ) * - 72 THEN NULL END + NULLIF ( ( 91 ), - 1 + CAST( NULL AS SIGNED ) ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4852
SELECT - 61 * CASE COALESCE ( + - NULLIF ( 37, 18 - - 22 ), + COUNT ( * ) ) WHEN - 13 + - COUNT ( * ) THEN NULL WHEN - 8 * 37 - 36 THEN CAST ( NULL AS INTEGER ) / + 67 WHEN 58 + AVG ( + 5 ) * - 72 THEN NULL END + NULLIF ( ( 91 ), - 1 + CAST ( NULL AS INTEGER ) ) col0
----
NULL

query I rowsort
SELECT ALL - - ( - - 46 )
----
46

query I rowsort
SELECT DISTINCT - ( + COALESCE ( - 70, - 6 ) )
----
70

query I rowsort
SELECT 71 + - + 70
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4856
SELECT MIN( ALL + 38 ) * - NULLIF ( - 92, - 41 * 3 ) + - 0 AS col0
----
3496

skipif mysql # not compatible
query I rowsort label-4856
SELECT MIN ( ALL + 38 ) * - NULLIF ( - 92, - 41 * 3 ) + - 0 AS col0
----
3496

query II rowsort
SELECT ALL - 96 AS col2, + 85 - - 19 + + 60
----
-96
164

onlyif mysql # aggregate syntax: 
query I rowsort label-4858
SELECT ALL - CASE - 6 WHEN - 1 + COUNT( * ) THEN + COUNT( * ) - - ( 81 ) * - 17 WHEN + 63 * 17 THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4858
SELECT ALL - CASE - 6 WHEN - 1 + COUNT ( * ) THEN + COUNT ( * ) - - ( 81 ) * - 17 WHEN + 63 * 17 THEN NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4859
SELECT COUNT( + + 95 )
----
1

skipif mysql # not compatible
query I rowsort label-4859
SELECT COUNT ( + + 95 )
----
1

query I rowsort
SELECT + CASE - 23 WHEN + 19 THEN - 84 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4861
SELECT - NULLIF ( - 31, + COUNT( * ) / - + 74 * - + 74 ) + 80 col0
----
111

skipif mysql # not compatible
query I rowsort label-4861
SELECT - NULLIF ( - 31, + COUNT ( * ) / - + 74 * - + 74 ) + 80 col0
----
111

query I rowsort
SELECT ALL + 85 * + 2
----
170

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4863
SELECT - NULLIF ( ( - 57 ), + + 71 + 6 * COALESCE ( + 92, 27 * ( - 6 ) + + COUNT( * ), + 58 ) ) * CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4863
SELECT - NULLIF ( ( - 57 ), + + 71 + 6 * COALESCE ( + 92, 27 * ( - 6 ) + + COUNT ( * ), + 58 ) ) * CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT + ( 22 ) AS col0
----
22

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4865
SELECT - ( + - 62 ) DIV COUNT( * ) + + 8
----
70

skipif mysql # not compatible
query I rowsort label-4865
SELECT - ( + - 62 ) / COUNT ( * ) + + 8
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-4866
SELECT - 42 * + COUNT( * )
----
-42

skipif mysql # not compatible
query I rowsort label-4866
SELECT - 42 * + COUNT ( * )
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-4867
SELECT COUNT( - - 27 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4867
SELECT COUNT ( - - 27 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4868
SELECT DISTINCT - MIN( DISTINCT + + 26 ) + - COUNT( * ) * + 64 AS col1
----
-90

skipif mysql # not compatible
query I rowsort label-4868
SELECT DISTINCT - MIN ( DISTINCT + + 26 ) + - COUNT ( * ) * + 64 AS col1
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-4869
SELECT + 7 + COUNT( * ) AS col2
----
8

skipif mysql # not compatible
query I rowsort label-4869
SELECT + 7 + COUNT ( * ) AS col2
----
8

query I rowsort
SELECT - 46 * + 1 AS col0
----
-46

query I rowsort
SELECT ( + 92 ) col1
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-4872
SELECT ALL 4 * COUNT( * )
----
4

skipif mysql # not compatible
query I rowsort label-4872
SELECT ALL 4 * COUNT ( * )
----
4

query I rowsort
SELECT - 74 * - - 59
----
-4366

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4874
SELECT ALL + 89 - - - CAST( NULL AS SIGNED ) - - - 56 + + 77
----
NULL

skipif mysql # not compatible
query I rowsort label-4874
SELECT ALL + 89 - - - CAST ( NULL AS INTEGER ) - - - 56 + + 77
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4875
SELECT ALL SUM( 56 ) AS col2
----
56

skipif mysql # not compatible
query I rowsort label-4875
SELECT ALL SUM ( 56 ) AS col2
----
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4876
SELECT DISTINCT + COUNT( ALL + + CAST( ( - - 79 ) AS SIGNED ) ) * - 28 * 57
----
-1596

skipif mysql # not compatible
query I rowsort label-4876
SELECT DISTINCT + COUNT ( ALL + + CAST ( ( - - 79 ) AS INTEGER ) ) * - 28 * 57
----
-1596

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4877
SELECT - + 34 + + ( - CAST( NULL AS SIGNED ) ) - 97 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4877
SELECT - + 34 + + ( - CAST ( NULL AS INTEGER ) ) - 97 AS col2
----
NULL

query I rowsort
SELECT + + 28 * 32 - + 39 * - 15 * - 87 + - 67 AS col1
----
-50066

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4879
SELECT - - CASE + + 48 WHEN + + 81 THEN - + 29 * - 93 * + 13 WHEN 84 * 24 - COALESCE ( + 64, 19 ) THEN NULL ELSE ( 79 ) * CAST( NULL AS SIGNED ) + + 70 * - 62 END + + COUNT( * ) / 42
----
NULL

skipif mysql # not compatible
query I rowsort label-4879
SELECT - - CASE + + 48 WHEN + + 81 THEN - + 29 * - 93 * + 13 WHEN 84 * 24 - COALESCE ( + 64, 19 ) THEN NULL ELSE ( 79 ) * CAST ( NULL AS INTEGER ) + + 70 * - 62 END + + COUNT ( * ) / 42
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4880
SELECT + COUNT( * ) + + 69
----
70

skipif mysql # not compatible
query I rowsort label-4880
SELECT + COUNT ( * ) + + 69
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-4881
SELECT + 46 * - 52 * - ( MAX( + 65 ) ) col1
----
155480

skipif mysql # not compatible
query I rowsort label-4881
SELECT + 46 * - 52 * - ( MAX ( + 65 ) ) col1
----
155480

onlyif mysql # aggregate syntax: 
query II rowsort label-4882
SELECT ALL + 21 AS col2, + COUNT( * )
----
21
1

skipif mysql # not compatible
query II rowsort label-4882
SELECT ALL + 21 AS col2, + COUNT ( * )
----
21
1

query II rowsort
SELECT - - 8 col1, 10 * - 19 + + 41 + - + 30 * - 84
----
8
2371

query I rowsort
SELECT - - ( 5 ) AS col2
----
5

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4885
SELECT + NULLIF ( COUNT( * ), 77 - - CAST( - + 70 AS DECIMAL ) ) - + 91 * - 48 AS col1
----
4369

skipif mysql # not compatible
query I rowsort label-4885
SELECT + NULLIF ( COUNT ( * ), 77 - - CAST ( - + 70 AS REAL ) ) - + 91 * - 48 AS col1
----
4369

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4886
SELECT ALL - CAST( NULL AS DECIMAL ) / 48 + - + 50 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4886
SELECT ALL - CAST ( NULL AS REAL ) / 48 + - + 50 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4887
SELECT + - 1 DIV + 74 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4887
SELECT + - 1 / + 74 AS col0
----
0

query I rowsort
SELECT + - 43 + - 2 * + 79 AS col1
----
-201

onlyif mysql # DIV for integer division: 
query I rowsort label-4889
SELECT ALL 3 DIV + 64 + - ( - 72 ) + 34 * 20 * 2 AS col1
----
1432

skipif mysql # not compatible
query I rowsort label-4889
SELECT ALL 3 / + 64 + - ( - 72 ) + 34 * 20 * 2 AS col1
----
1432

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4890
SELECT ALL 9 DIV - 28 * + + MAX( DISTINCT 43 ) + 75 DIV - 47 + 57 AS col2
----
56

skipif mysql # not compatible
query I rowsort label-4890
SELECT ALL 9 / - 28 * + + MAX ( DISTINCT 43 ) + 75 / - 47 + 57 AS col2
----
56

query I rowsort
SELECT ( + 77 ) AS col1
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-4892
SELECT + COUNT( * ) * - 69 * - 22
----
1518

skipif mysql # not compatible
query I rowsort label-4892
SELECT + COUNT ( * ) * - 69 * - 22
----
1518

query I rowsort
SELECT - NULLIF ( + 3, + 45 ) * 45 * - ( + 19 )
----
2565

query I rowsort
SELECT DISTINCT 15 * - 73 + 3 AS col0
----
-1092

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4895
SELECT ALL 90 * 74 * CAST( NULL AS DECIMAL ) + + 72 + + COALESCE ( 95, - 34 + + CAST( - NULLIF ( 57, - 10 ) AS SIGNED ) * - 72, + 27 + + 86, + 44 ) + 59 / + 88 * 93
----
NULL

skipif mysql # not compatible
query I rowsort label-4895
SELECT ALL 90 * 74 * CAST ( NULL AS REAL ) + + 72 + + COALESCE ( 95, - 34 + + CAST ( - NULLIF ( 57, - 10 ) AS INTEGER ) * - 72, + 27 + + 86, + 44 ) + 59 / + 88 * 93
----
NULL

query II rowsort
SELECT ALL + 24, 27 AS col1
----
24
27

onlyif mysql # aggregate syntax: 
query I rowsort label-4897
SELECT ( + + COALESCE ( + 66, + 78 + COUNT( * ) + + - 22 ) )
----
66

skipif mysql # not compatible
query I rowsort label-4897
SELECT ( + + COALESCE ( + 66, + 78 + COUNT ( * ) + + - 22 ) )
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-4898
SELECT ALL + 3 * + - 14 + - ( - COUNT( * ) )
----
-41

skipif mysql # not compatible
query I rowsort label-4898
SELECT ALL + 3 * + - 14 + - ( - COUNT ( * ) )
----
-41

query I rowsort
SELECT + 14 * - - 84 + 44
----
1220

onlyif mysql # aggregate syntax: 
query I rowsort label-4900
SELECT - 48 - + MIN( ALL - 86 ) AS col2
----
38

skipif mysql # not compatible
query I rowsort label-4900
SELECT - 48 - + MIN ( ALL - 86 ) AS col2
----
38

query I rowsort
SELECT + 19 + 13
----
32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4902
SELECT + CAST( - - CAST( NULL AS SIGNED ) AS SIGNED ) + CAST( NULL AS DECIMAL ) + + ( - COUNT( * ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4902
SELECT + CAST ( - - CAST ( NULL AS INTEGER ) AS INTEGER ) + CAST ( NULL AS REAL ) + + ( - COUNT ( * ) ) AS col2
----
NULL

query I rowsort
SELECT - 12 * + 13 AS col2
----
-156

query I rowsort
SELECT DISTINCT + 62 * - - 46 * + 19
----
54188

query I rowsort
SELECT DISTINCT 9 * + + 5
----
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4906
SELECT ALL + CASE - AVG ( 54 ) WHEN 55 THEN - COUNT( DISTINCT - 12 ) WHEN + 70 THEN - 25 + CAST( 56 + 41 AS SIGNED ) * COUNT( * ) ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4906
SELECT ALL + CASE - AVG ( 54 ) WHEN 55 THEN - COUNT ( DISTINCT - 12 ) WHEN + 70 THEN - 25 + CAST ( 56 + 41 AS INTEGER ) * COUNT ( * ) ELSE NULL END AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4907
SELECT - 80 * 18 + - - 48 DIV + - 50 - + - 0
----
-1440

skipif mysql # not compatible
query I rowsort label-4907
SELECT - 80 * 18 + - - 48 / + - 50 - + - 0
----
-1440

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-4908
SELECT DISTINCT + 49 AS col2, COALESCE ( 36, 69 * + ( COUNT( * ) ) + 53, + 48 - 38, + MIN( DISTINCT - 53 ) ) + CASE 69 WHEN 74 * - COALESCE ( CAST( COUNT( * ) AS DECIMAL ) * + COALESCE ( 43 / - 71 + ( 93 ) * + 94, 95, COALESCE ( 59, 8, + COUNT( * ), COALESCE ( + 98, SUM( + 86 ) + + COUNT( * ) * MAX( DISTINCT 44 + + 3 * - 9 ) ) ) ), + 40 ) THEN 24 - + CASE + 84 WHEN 34 THEN - ( COUNT( * ) ) + 57 WHEN - 60 * 87 THEN NULL WHEN + 23 THEN NULL ELSE NULL END END
----
49
NULL

skipif mysql # not compatible
query II rowsort label-4908
SELECT DISTINCT + 49 AS col2, COALESCE ( 36, 69 * + ( COUNT ( * ) ) + 53, + 48 - 38, + MIN ( DISTINCT - 53 ) ) + CASE 69 WHEN 74 * - COALESCE ( CAST ( COUNT ( * ) AS REAL ) * + COALESCE ( 43 / - 71 + ( 93 ) * + 94, 95, COALESCE ( 59, 8, + COUNT ( * ), COALESCE ( + 98, SUM ( + 86 ) + + COUNT ( * ) * MAX ( DISTINCT 44 + + 3 * - 9 ) ) ) ), + 40 ) THEN 24 - + CASE + 84 WHEN 34 THEN - ( COUNT ( * ) ) + 57 WHEN - 60 * 87 THEN NULL WHEN + 23 THEN NULL ELSE NULL END END
----
49
NULL

query I rowsort
SELECT DISTINCT - COALESCE ( 35, + 23 - 80 + 44 * + 56, - 18 )
----
-35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4910
SELECT NULLIF ( + 42, - 57 * + CAST( NULL AS SIGNED ) + - - 98 ) col1
----
42

skipif mysql # not compatible
query I rowsort label-4910
SELECT NULLIF ( + 42, - 57 * + CAST ( NULL AS INTEGER ) + - - 98 ) col1
----
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4911
SELECT + 21 + CAST( - - 67 AS SIGNED ) col0
----
88

skipif mysql # not compatible
query I rowsort label-4911
SELECT + 21 + CAST ( - - 67 AS INTEGER ) col0
----
88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4912
SELECT CASE + 93 WHEN - + 82 + 49 * - - 75 * - 97 + ( - 86 - - 9 ) THEN + CAST( 35 AS SIGNED ) * - AVG ( ALL + ( COALESCE ( - 68, - 0 / + 50 ) ) - 11 ) ELSE 53 END AS col1
----
53

skipif mysql # not compatible
query I rowsort label-4912
SELECT CASE + 93 WHEN - + 82 + 49 * - - 75 * - 97 + ( - 86 - - 9 ) THEN + CAST ( 35 AS INTEGER ) * - AVG ( ALL + ( COALESCE ( - 68, - 0 / + 50 ) ) - 11 ) ELSE 53 END AS col1
----
53

query II rowsort
SELECT - 57 AS col0, ( - 48 ) AS col1
----
-57
-48

query I rowsort
SELECT ALL - 53 + - + ( - 32 )
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-4915
SELECT - - 47 + + 74 * + MIN( DISTINCT - + 86 ) * - 35 AS col2
----
222787

skipif mysql # not compatible
query I rowsort label-4915
SELECT - - 47 + + 74 * + MIN ( DISTINCT - + 86 ) * - 35 AS col2
----
222787

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4916
SELECT + + 72 + 38 + ( - CAST( + - 73 AS SIGNED ) ) * - + 7 + COUNT( * ) AS col0
----
-400

skipif mysql # not compatible
query I rowsort label-4916
SELECT + + 72 + 38 + ( - CAST ( + - 73 AS INTEGER ) ) * - + 7 + COUNT ( * ) AS col0
----
-400

query II rowsort
SELECT ALL 19 AS col1, 70
----
19
70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4918
SELECT ALL - + CAST( - 3 AS SIGNED ) + - 55
----
-52

skipif mysql # not compatible
query I rowsort label-4918
SELECT ALL - + CAST ( - 3 AS INTEGER ) + - 55
----
-52

query I rowsort
SELECT DISTINCT 86 + COALESCE ( 57, + 59 )
----
143

onlyif mysql # aggregate syntax: 
query I rowsort label-4920
SELECT COUNT( ALL + + ( - - COALESCE ( - 23, + + 67 * + 81 ) ) ) * ( 21 ) AS col1
----
21

skipif mysql # not compatible
query I rowsort label-4920
SELECT COUNT ( ALL + + ( - - COALESCE ( - 23, + + 67 * + 81 ) ) ) * ( 21 ) AS col1
----
21

query I rowsort
SELECT ( - + 21 ) + - + ( 59 )
----
-80

query I rowsort
SELECT DISTINCT + 40 + 27 - + 38 * - 75
----
2917

query I rowsort
SELECT ALL 73 * 12 AS col0
----
876

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4924
SELECT ( + NULLIF ( - 31, + 18 ) ) * - 69 * - NULLIF ( + + 99, + CASE - 8 WHEN - 29 * ( - CAST( 5 AS SIGNED ) ) - MIN( 88 ) THEN NULL WHEN - 50 + + 28 THEN 94 END ) * - 58 + - 14 * 12 AS col0
----
12281970

skipif mysql # not compatible
query I rowsort label-4924
SELECT ( + NULLIF ( - 31, + 18 ) ) * - 69 * - NULLIF ( + + 99, + CASE - 8 WHEN - 29 * ( - CAST ( 5 AS INTEGER ) ) - MIN ( 88 ) THEN NULL WHEN - 50 + + 28 THEN 94 END ) * - 58 + - 14 * 12 AS col0
----
12281970

query II rowsort
SELECT ALL - 76 + - 38 AS col1, 28 AS col0
----
-114
28

onlyif mysql # aggregate syntax: 
query I rowsort label-4926
SELECT DISTINCT 90 * + COUNT( 56 ) * 80 + 58 * + 64 * - 34 * + 8
----
-1002464

skipif mysql # not compatible
query I rowsort label-4926
SELECT DISTINCT 90 * + COUNT ( 56 ) * 80 + 58 * + 64 * - 34 * + 8
----
-1002464

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4927
SELECT DISTINCT 2 DIV + NULLIF ( ( - + 92 ), - ( - COUNT( * ) ) )
----
0

skipif mysql # not compatible
query I rowsort label-4927
SELECT DISTINCT 2 / + NULLIF ( ( - + 92 ), - ( - COUNT ( * ) ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4928
SELECT ALL SUM( + + 34 ) - - 54 - + 77 * + + 7 AS col0
----
-451

skipif mysql # not compatible
query I rowsort label-4928
SELECT ALL SUM ( + + 34 ) - - 54 - + 77 * + + 7 AS col0
----
-451

query I rowsort
SELECT ALL 37 * - - 88 AS col0
----
3256

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4930
SELECT 77 DIV - COUNT( * ) + + 58 + 6
----
-13

skipif mysql # not compatible
query I rowsort label-4930
SELECT 77 / - COUNT ( * ) + + 58 + 6
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-4931
SELECT ALL COUNT( * ) - 62 + + 44 + - - 70 * - 65 * - NULLIF ( + 38, 88 / 11 + - 77 ) * COUNT( * ) AS col1
----
172883

skipif mysql # not compatible
query I rowsort label-4931
SELECT ALL COUNT ( * ) - 62 + + 44 + - - 70 * - 65 * - NULLIF ( + 38, 88 / 11 + - 77 ) * COUNT ( * ) AS col1
----
172883

onlyif mysql # aggregate syntax: 
query II rowsort label-4932
SELECT ALL - SUM( ALL ( + 86 ) ) col2, 31 * 70
----
-86
2170

skipif mysql # not compatible
query II rowsort label-4932
SELECT ALL - SUM ( ALL ( + 86 ) ) col2, 31 * 70
----
-86
2170

onlyif mysql # aggregate syntax: 
query I rowsort label-4933
SELECT ALL - COUNT( DISTINCT + 14 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-4933
SELECT ALL - COUNT ( DISTINCT + 14 ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4934
SELECT ALL SUM( 90 ) * + + 91 + - CASE - 34 WHEN + - 20 THEN - - 65 ELSE - 17 END
----
8207

skipif mysql # not compatible
query I rowsort label-4934
SELECT ALL SUM ( 90 ) * + + 91 + - CASE - 34 WHEN + - 20 THEN - - 65 ELSE - 17 END
----
8207

onlyif mysql # aggregate syntax: 
query II rowsort label-4935
SELECT DISTINCT - SUM( 65 ) AS col1, 86 AS col0
----
-65
86

skipif mysql # not compatible
query II rowsort label-4935
SELECT DISTINCT - SUM ( 65 ) AS col1, 86 AS col0
----
-65
86

onlyif mysql # aggregate syntax: 
query I rowsort label-4936
SELECT ALL + SUM( ALL 60 ) * - 65 AS col1
----
-3900

skipif mysql # not compatible
query I rowsort label-4936
SELECT ALL + SUM ( ALL 60 ) * - 65 AS col1
----
-3900

onlyif mysql # aggregate syntax: 
query I rowsort label-4937
SELECT - MAX( - + 56 ) * + 48
----
2688

skipif mysql # not compatible
query I rowsort label-4937
SELECT - MAX ( - + 56 ) * + 48
----
2688

query I rowsort
SELECT - 22 * 70 * + 12 + + 41 * 4
----
-18316

onlyif mysql # DIV for integer division: 
query I rowsort label-4939
SELECT + 31 DIV - 55 + - 21 AS col2
----
-21

skipif mysql # not compatible
query I rowsort label-4939
SELECT + 31 / - 55 + - 21 AS col2
----
-21

onlyif mysql # aggregate syntax: 
query II rowsort label-4940
SELECT - - MAX( + 17 ) AS col1, ( + 84 ) col1
----
17
84

skipif mysql # not compatible
query II rowsort label-4940
SELECT - - MAX ( + 17 ) AS col1, ( + 84 ) col1
----
17
84

query I rowsort
SELECT DISTINCT - ( + 79 ) * + 77
----
-6083

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-4942
SELECT + 49 / - - CAST( NULL AS DECIMAL ) col1, COUNT( * ) + - 25 + 47 * + - 9 * - 22 * - 62 + + 0 AS col2
----
NULL
-576996

skipif mysql # not compatible
query II rowsort label-4942
SELECT + 49 / - - CAST ( NULL AS REAL ) col1, COUNT ( * ) + - 25 + 47 * + - 9 * - 22 * - 62 + + 0 AS col2
----
NULL
-576996

onlyif mysql # aggregate syntax: 
query I rowsort label-4943
SELECT ALL NULLIF ( + 23, + ( + COALESCE ( + 66, + MIN( DISTINCT 1 ), 50 ) ) + 40 ) * - 97
----
-2231

skipif mysql # not compatible
query I rowsort label-4943
SELECT ALL NULLIF ( + 23, + ( + COALESCE ( + 66, + MIN ( DISTINCT 1 ), 50 ) ) + 40 ) * - 97
----
-2231

onlyif mysql # DIV for integer division: 
query II rowsort label-4944
SELECT ALL + - 9 + + 85, - 95 DIV + - 49 AS col2
----
76
1

skipif mysql # not compatible
query II rowsort label-4944
SELECT ALL + - 9 + + 85, - 95 / + - 49 AS col2
----
76
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4945
SELECT DISTINCT - 24 + + 6 + + - 59 - - 57 + - NULLIF ( + - SUM( 40 ), 30 * - 16 ) AS col2
----
20

skipif mysql # not compatible
query I rowsort label-4945
SELECT DISTINCT - 24 + + 6 + + - 59 - - 57 + - NULLIF ( + - SUM ( 40 ), 30 * - 16 ) AS col2
----
20

query II rowsort
SELECT - 38 + + 38 AS col0, + 91
----
0
91

query II rowsort
SELECT - 93 AS col2, 87
----
-93
87

onlyif mysql # aggregate syntax: 
query I rowsort label-4948
SELECT DISTINCT 32 + - 83 * + - COUNT( * )
----
115

skipif mysql # not compatible
query I rowsort label-4948
SELECT DISTINCT 32 + - 83 * + - COUNT ( * )
----
115

query I rowsort
SELECT 88 + - 32 + - 11 + + ( - NULLIF ( 32, - + 38 ) ) * ( + 63 ) * 4 + 44
----
-7975

query II rowsort
SELECT 41, 21 AS col2
----
41
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4951
SELECT ALL - 81 * - - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4951
SELECT ALL - 81 * - - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query II rowsort
SELECT + 61 AS col2, 89 AS col2
----
61
89

onlyif mysql # aggregate syntax: 
query I rowsort label-4953
SELECT 78 + 39 + - COUNT( * ) AS col0
----
116

skipif mysql # not compatible
query I rowsort label-4953
SELECT 78 + 39 + - COUNT ( * ) AS col0
----
116

query I rowsort
SELECT 14 * 29
----
406

query I rowsort
SELECT DISTINCT - 45 - - + 98 col2
----
53

query I rowsort
SELECT ALL - 59 col1
----
-59

onlyif mysql # aggregate syntax: 
query II rowsort label-4957
SELECT COUNT( * ) col1, + NULLIF ( 82, - 60 - - MIN( DISTINCT - 18 ) ) AS col0
----
1
82

skipif mysql # not compatible
query II rowsort label-4957
SELECT COUNT ( * ) col1, + NULLIF ( 82, - 60 - - MIN ( DISTINCT - 18 ) ) AS col0
----
1
82

onlyif mysql # aggregate syntax: 
query I rowsort label-4958
SELECT SUM( - 33 ) AS col1
----
-33

skipif mysql # not compatible
query I rowsort label-4958
SELECT SUM ( - 33 ) AS col1
----
-33

query I rowsort
SELECT 4 * + - 71 AS col2
----
-284

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4960
SELECT ALL 83 / - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4960
SELECT ALL 83 / - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4961
SELECT 82 * 73 - + COUNT( * ) AS col0
----
5985

skipif mysql # not compatible
query I rowsort label-4961
SELECT 82 * 73 - + COUNT ( * ) AS col0
----
5985

query I rowsort
SELECT DISTINCT - NULLIF ( + + 22, - 27 ) - 66 AS col2
----
-88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4963
SELECT ALL - ( + CAST( ( - 68 ) AS SIGNED ) ) col2
----
68

skipif mysql # not compatible
query I rowsort label-4963
SELECT ALL - ( + CAST ( ( - 68 ) AS INTEGER ) ) col2
----
68

query II rowsort
SELECT DISTINCT - 91 AS col0, 95 col2
----
-91
95

query I rowsort
SELECT DISTINCT - + 5 col0
----
-5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4966
SELECT ALL COUNT( * ) DIV + 59
----
0

skipif mysql # not compatible
query I rowsort label-4966
SELECT ALL COUNT ( * ) / + 59
----
0

query II rowsort
SELECT 14 * - + 97 + 22 AS col0, ( + + 81 ) - + 68
----
-1336
13

query I rowsort
SELECT - 37 * + + 98 + + - 90
----
-3716

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4969
SELECT ALL - + CAST( NULL AS SIGNED ) AS col0, + 79 AS col1
----
NULL
79

skipif mysql # not compatible
query II rowsort label-4969
SELECT ALL - + CAST ( NULL AS INTEGER ) AS col0, + 79 AS col1
----
NULL
79

query I rowsort
SELECT + 20 + 11 * + 35 * - - 84 AS col2
----
32360

query I rowsort
SELECT + COALESCE ( + 29, - 18 * 9, + - 73 + 70 ) AS col0
----
29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4972
SELECT DISTINCT CASE + 66 WHEN 82 + + - ( + + CAST( NULL AS SIGNED ) ) * - 63 THEN - - 56 / - 33 WHEN - 52 * + 26 + ( - 23 ) THEN 62 ELSE NULL END + 40 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4972
SELECT DISTINCT CASE + 66 WHEN 82 + + - ( + + CAST ( NULL AS INTEGER ) ) * - 63 THEN - - 56 / - 33 WHEN - 52 * + 26 + ( - 23 ) THEN 62 ELSE NULL END + 40 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4973
SELECT ALL ( + + 91 ) + ( + + 16 ) DIV + 55 AS col1
----
91

skipif mysql # not compatible
query I rowsort label-4973
SELECT ALL ( + + 91 ) + ( + + 16 ) / + 55 AS col1
----
91

query I rowsort
SELECT ALL 17 + 3 AS col1
----
20

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4975
SELECT + 61 * - - 95 + + - AVG ( + CAST( NULL AS SIGNED ) ), CASE + 59 WHEN + 95 THEN NULL ELSE 53 + - 21 * + 98 END col0
----
NULL
-2005

skipif mysql # not compatible
query II rowsort label-4975
SELECT + 61 * - - 95 + + - AVG ( + CAST ( NULL AS INTEGER ) ), CASE + 59 WHEN + 95 THEN NULL ELSE 53 + - 21 * + 98 END col0
----
NULL
-2005

query I rowsort
SELECT ALL + COALESCE ( - 30, + + 46, + 77 ) AS col0
----
-30

query I rowsort
SELECT DISTINCT - 83 + - ( 37 )
----
-120

onlyif mysql # aggregate syntax: 
query I rowsort label-4978
SELECT ALL 39 + + COUNT( * ) AS col0
----
40

skipif mysql # not compatible
query I rowsort label-4978
SELECT ALL 39 + + COUNT ( * ) AS col0
----
40

query I rowsort
SELECT - ( 29 ) AS col2
----
-29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4980
SELECT ALL + CASE CASE - 58 WHEN 29 THEN NULL ELSE 59 - - + 27 END WHEN - 11 - - CAST( - 88 AS SIGNED ) THEN NULL ELSE - 17 * + 84 + 52 END + + 72
----
-1304

skipif mysql # not compatible
query I rowsort label-4980
SELECT ALL + CASE CASE - 58 WHEN 29 THEN NULL ELSE 59 - - + 27 END WHEN - 11 - - CAST ( - 88 AS INTEGER ) THEN NULL ELSE - 17 * + 84 + 52 END + + 72
----
-1304

query I rowsort
SELECT + + 45 * + 80 AS col1
----
3600

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4982
SELECT - + CAST( NULL AS SIGNED ) * - + 4 * - - 89
----
NULL

skipif mysql # not compatible
query I rowsort label-4982
SELECT - + CAST ( NULL AS INTEGER ) * - + 4 * - - 89
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4983
SELECT - 14 AS col1, - COUNT( * )
----
-14
-1

skipif mysql # not compatible
query II rowsort label-4983
SELECT - 14 AS col1, - COUNT ( * )
----
-14
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4984
SELECT ALL 53 AS col1, 73 * SUM( + - CAST( NULL AS SIGNED ) )
----
53
NULL

skipif mysql # not compatible
query II rowsort label-4984
SELECT ALL 53 AS col1, 73 * SUM ( + - CAST ( NULL AS INTEGER ) )
----
53
NULL

query I rowsort
SELECT DISTINCT + ( - + ( + - 28 ) ) * - 91
----
-2548

onlyif mysql # aggregate syntax: 
query I rowsort label-4986
SELECT DISTINCT + - COUNT( * ) + + COUNT( * ) * + 32 AS col2
----
31

skipif mysql # not compatible
query I rowsort label-4986
SELECT DISTINCT + - COUNT ( * ) + + COUNT ( * ) * + 32 AS col2
----
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4987
SELECT + 86 * + CAST( NULL AS SIGNED ) * - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4987
SELECT + 86 * + CAST ( NULL AS INTEGER ) * - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4988
SELECT ALL - COUNT( * ) * - 69 DIV - 12 col2
----
-5

skipif mysql # not compatible
query I rowsort label-4988
SELECT ALL - COUNT ( * ) * - 69 / - 12 col2
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-4989
SELECT - CASE + 48 WHEN - + ( 65 ) * + 34 + MIN( ALL - ( - 78 ) ) THEN + NULLIF ( 4, COUNT( * ) ) + + COUNT( 70 ) WHEN CASE ( + 9 ) WHEN 75 * 36 THEN - ( + 92 ) ELSE NULL END THEN - MAX( 57 ) * - 72 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4989
SELECT - CASE + 48 WHEN - + ( 65 ) * + 34 + MIN ( ALL - ( - 78 ) ) THEN + NULLIF ( 4, COUNT ( * ) ) + + COUNT ( 70 ) WHEN CASE ( + 9 ) WHEN 75 * 36 THEN - ( + 92 ) ELSE NULL END THEN - MAX ( 57 ) * - 72 END AS col1
----
NULL

query I rowsort
SELECT DISTINCT 26 * - 62
----
-1612

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4991
SELECT ALL COALESCE ( 18, + + SUM( DISTINCT ( + 56 ) ) DIV COALESCE ( 4, - 78 ) ) AS col1
----
18

skipif mysql # not compatible
query I rowsort label-4991
SELECT ALL COALESCE ( 18, + + SUM ( DISTINCT ( + 56 ) ) / COALESCE ( 4, - 78 ) ) AS col1
----
18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4992
SELECT DISTINCT CASE - - 41 WHEN + CAST( NULL AS SIGNED ) + - 26 / - + 76 THEN + + 65 * + - 27 WHEN - 59 THEN + COALESCE ( + 19, COALESCE ( - CAST( 66 AS SIGNED ), COALESCE ( 96, - ( 33 ) ) ), CAST( + 95 AS SIGNED ) / - 95, 9 ) / - 56 - - 71 ELSE ( + ( COALESCE ( 30, 69 ) ) ) + 53 END
----
83

skipif mysql # not compatible
query I rowsort label-4992
SELECT DISTINCT CASE - - 41 WHEN + CAST ( NULL AS INTEGER ) + - 26 / - + 76 THEN + + 65 * + - 27 WHEN - 59 THEN + COALESCE ( + 19, COALESCE ( - CAST ( 66 AS INTEGER ), COALESCE ( 96, - ( 33 ) ) ), CAST ( + 95 AS INTEGER ) / - 95, 9 ) / - 56 - - 71 ELSE ( + ( COALESCE ( 30, 69 ) ) ) + 53 END
----
83

query I rowsort
SELECT ALL 20 - - 99 - - 94 * - 17
----
-1479

onlyif mysql # DIV for integer division: 
query I rowsort label-4994
SELECT + COALESCE ( 32, - 17 - ( 78 ) + + - 38 * + + 42 * - 18 * 55 + - 24 ) DIV 86
----
0

skipif mysql # not compatible
query I rowsort label-4994
SELECT + COALESCE ( 32, - 17 - ( 78 ) + + - 38 * + + 42 * - 18 * 55 + - 24 ) / 86
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4995
SELECT - 8 DIV + + 24
----
0

skipif mysql # not compatible
query I rowsort label-4995
SELECT - 8 / + + 24
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4996
SELECT ALL + 22 DIV + + SUM( DISTINCT + ( + ( + 71 ) ) ) * + COUNT( - - 8 )
----
0

skipif mysql # not compatible
query I rowsort label-4996
SELECT ALL + 22 / + + SUM ( DISTINCT + ( + ( + 71 ) ) ) * + COUNT ( - - 8 )
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4997
SELECT + COALESCE ( + 96, - 70 DIV CAST( + 59 AS SIGNED ) ) + 26 AS col2
----
122

skipif mysql # not compatible
query I rowsort label-4997
SELECT + COALESCE ( + 96, - 70 / CAST ( + 59 AS INTEGER ) ) + 26 AS col2
----
122

query I rowsort
SELECT - 25 + - 44
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-4999
SELECT - 84 * + COUNT( * )
----
-84

skipif mysql # not compatible
query I rowsort label-4999
SELECT - 84 * + COUNT ( * )
----
-84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5000
SELECT - 90 + - COUNT( * ) - + CAST( + - 16 AS SIGNED ) - 72 AS col0, + 96
----
-147
96

skipif mysql # not compatible
query II rowsort label-5000
SELECT - 90 + - COUNT ( * ) - + CAST ( + - 16 AS INTEGER ) - 72 AS col0, + 96
----
-147
96

query I rowsort
SELECT - 48 * - 53
----
2544

query I rowsort
SELECT DISTINCT - ( - 26 ) * - 90 AS col1
----
-2340

onlyif mysql # DIV for integer division: 
query I rowsort label-5003
SELECT ALL - 33 * 6 DIV - 54 AS col2
----
3

skipif mysql # not compatible
query I rowsort label-5003
SELECT ALL - 33 * 6 / - 54 AS col2
----
3

query I rowsort
SELECT - 18 * + 63
----
-1134

query I rowsort
SELECT DISTINCT - 39 * - 1 AS col1
----
39

onlyif mysql # DIV for integer division: 
query I rowsort label-5006
SELECT + 60 + + + ( + 76 ) + 7 DIV + - 48 * + 43
----
136

skipif mysql # not compatible
query I rowsort label-5006
SELECT + 60 + + + ( + 76 ) + 7 / + - 48 * + 43
----
136

query II rowsort
SELECT - 4 * 48 AS col1, - 40
----
-192
-40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5008
SELECT ALL - 8 * - AVG ( + 85 ) / 22 + - + 99 + - CAST( NULL AS SIGNED ) * + 48 + ( - 26 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5008
SELECT ALL - 8 * - AVG ( + 85 ) / 22 + - + 99 + - CAST ( NULL AS INTEGER ) * + 48 + ( - 26 )
----
NULL

query I rowsort
SELECT ALL 18 * - 51 * + 79 + - + ( - - 50 ) + - 76
----
-72648

query I rowsort
SELECT DISTINCT + ( + + 41 ) * - + 22 * + + 73 + + - 94
----
-65940

query I rowsort
SELECT ALL - 23 * 12
----
-276

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5012
SELECT DISTINCT + - 88 DIV - COUNT( * ) AS col2, 12 + - 43 AS col1
----
88
-31

skipif mysql # not compatible
query II rowsort label-5012
SELECT DISTINCT + - 88 / - COUNT ( * ) AS col2, 12 + - 43 AS col1
----
88
-31

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5013
SELECT + NULLIF ( + 36, + - COUNT( * ) ) * + ( - - ( + + 25 ) ) - - + 25 AS col2, 54 * 78 DIV 14 AS col2
----
925
300

skipif mysql # not compatible
query II rowsort label-5013
SELECT + NULLIF ( + 36, + - COUNT ( * ) ) * + ( - - ( + + 25 ) ) - - + 25 AS col2, 54 * 78 / 14 AS col2
----
925
300

onlyif mysql # DIV for integer division: 
query II rowsort label-5014
SELECT - - 74 DIV 77 AS col1, 77 * + 54 - - 21 AS col2
----
0
4179

skipif mysql # not compatible
query II rowsort label-5014
SELECT - - 74 / 77 AS col1, 77 * + 54 - - 21 AS col2
----
0
4179

query I rowsort
SELECT + 76 * - 95
----
-7220

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5016
SELECT ALL COALESCE ( + COUNT( * ), CAST( NULL AS SIGNED ) ) * - - SUM( 74 ) DIV COUNT( * )
----
74

skipif mysql # not compatible
query I rowsort label-5016
SELECT ALL COALESCE ( + COUNT ( * ), CAST ( NULL AS INTEGER ) ) * - - SUM ( 74 ) / COUNT ( * )
----
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5017
SELECT ALL + 5 * + 65 * ( - + 93 ) * + 84 * - + CASE 70 WHEN + ( + COUNT( * ) ) THEN - 15 + 80 * CAST( NULL AS SIGNED ) WHEN 87 + COUNT( * ) THEN NULL ELSE NULL END + - 68 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5017
SELECT ALL + 5 * + 65 * ( - + 93 ) * + 84 * - + CASE 70 WHEN + ( + COUNT ( * ) ) THEN - 15 + 80 * CAST ( NULL AS INTEGER ) WHEN 87 + COUNT ( * ) THEN NULL ELSE NULL END + - 68 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5018
SELECT - COALESCE ( + - 36, + 99 + - ( + COUNT( * ) ) ) * + - 5 - + 32 + + - 80 * - - 8 AS col2
----
-852

skipif mysql # not compatible
query I rowsort label-5018
SELECT - COALESCE ( + - 36, + 99 + - ( + COUNT ( * ) ) ) * + - 5 - + 32 + + - 80 * - - 8 AS col2
----
-852

onlyif mysql # aggregate syntax: 
query I rowsort label-5019
SELECT ALL + 78 * + MAX( 42 ) - - 67 + + - 75 * - - 99
----
-4082

skipif mysql # not compatible
query I rowsort label-5019
SELECT ALL + 78 * + MAX ( 42 ) - - 67 + + - 75 * - - 99
----
-4082

query I rowsort
SELECT + 56 - + 11
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-5021
SELECT DISTINCT 86 * + COALESCE ( + 13, - - COUNT( * ) )
----
1118

skipif mysql # not compatible
query I rowsort label-5021
SELECT DISTINCT 86 * + COALESCE ( + 13, - - COUNT ( * ) )
----
1118

onlyif mysql # aggregate syntax: 
query I rowsort label-5022
SELECT - ( - MAX( ALL + + 8 ) ) AS col2
----
8

skipif mysql # not compatible
query I rowsort label-5022
SELECT - ( - MAX ( ALL + + 8 ) ) AS col2
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-5023
SELECT + COUNT( * ) * + ( - 5 )
----
-5

skipif mysql # not compatible
query I rowsort label-5023
SELECT + COUNT ( * ) * + ( - 5 )
----
-5

query I rowsort
SELECT + 32 * + + 17 * + - 60
----
-32640

onlyif mysql # DIV for integer division: 
query I rowsort label-5025
SELECT DISTINCT 73 DIV 96 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5025
SELECT DISTINCT 73 / 96 AS col1
----
0

query I rowsort
SELECT + CASE + - 85 WHEN + 69 THEN NULL WHEN + - AVG ( DISTINCT + + 69 ) - - ( + - 27 ) * 19 * + - 57 THEN 6 END + - 42 * 79 AS col0
----
NULL

query I rowsort
SELECT - 85 - + + 66 AS col2
----
-151

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5028
SELECT - 2 + - CAST( - ( - - 65 ) AS SIGNED )
----
63

skipif mysql # not compatible
query I rowsort label-5028
SELECT - 2 + - CAST ( - ( - - 65 ) AS INTEGER )
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-5029
SELECT DISTINCT COUNT( * ) * - 0 * - ( - - 61 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5029
SELECT DISTINCT COUNT ( * ) * - 0 * - ( - - 61 ) AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5030
SELECT DISTINCT 19 DIV - 94 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5030
SELECT DISTINCT 19 / - 94 AS col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5031
SELECT ALL 13, MIN( + 78 ) AS col0
----
13
78

skipif mysql # not compatible
query II rowsort label-5031
SELECT ALL 13, MIN ( + 78 ) AS col0
----
13
78

query I rowsort
SELECT + 49 + + 44 + - 44 + - 71
----
-22

query I rowsort
SELECT + 66 * + 5 * 23 AS col0
----
7590

query I rowsort
SELECT ALL ( - CASE + ( - 42 ) WHEN + 86 + - - AVG ( ALL - 72 ) THEN NULL WHEN + 41 THEN - 73 ELSE NULL END ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5035
SELECT - ( - NULLIF ( - - 21, + + COUNT( + 20 ) ) ) col0, - COUNT( * ) + + - 26
----
21
-27

skipif mysql # not compatible
query II rowsort label-5035
SELECT - ( - NULLIF ( - - 21, + + COUNT ( + 20 ) ) ) col0, - COUNT ( * ) + + - 26
----
21
-27

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5036
SELECT - COUNT( * ) DIV + 42 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5036
SELECT - COUNT ( * ) / + 42 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5037
SELECT - COUNT( * ) * - 44 AS col0
----
44

skipif mysql # not compatible
query I rowsort label-5037
SELECT - COUNT ( * ) * - 44 AS col0
----
44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5038
SELECT DISTINCT + CASE 58 WHEN + 12 * + 79 THEN + COUNT( * ) WHEN + - 80 * - CAST( + 40 AS SIGNED ) + + 8 + + 72 THEN + COUNT( * ) ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5038
SELECT DISTINCT + CASE 58 WHEN + 12 * + 79 THEN + COUNT ( * ) WHEN + - 80 * - CAST ( + 40 AS INTEGER ) + + 8 + + 72 THEN + COUNT ( * ) ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT + 6 * - + 37 AS col0
----
-222

query I rowsort
SELECT - 49 + - 57 * 40 col0
----
-2329

query II rowsort
SELECT 34, 87 col2
----
34
87

onlyif mysql # DIV for integer division: 
query II rowsort label-5042
SELECT - 58 DIV 25 * - + 62 AS col1, 72 AS col1
----
124
72

skipif mysql # not compatible
query II rowsort label-5042
SELECT - 58 / 25 * - + 62 AS col1, 72 AS col1
----
124
72

query I rowsort
SELECT DISTINCT - 27 * + - ( + 41 ) * - 80
----
-88560

onlyif mysql # aggregate syntax: 
query I rowsort label-5044
SELECT ALL + MIN( DISTINCT 12 )
----
12

skipif mysql # not compatible
query I rowsort label-5044
SELECT ALL + MIN ( DISTINCT 12 )
----
12

query I rowsort
SELECT + + ( + 63 ) AS col0
----
63

onlyif mysql # DIV for integer division: 
query I rowsort label-5046
SELECT ALL + + 63 DIV - + 10 + + 67 AS col2
----
61

skipif mysql # not compatible
query I rowsort label-5046
SELECT ALL + + 63 / - + 10 + + 67 AS col2
----
61

query I rowsort
SELECT ALL + 94 * + 95
----
8930

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5048
SELECT - ( + + 76 ) * - + 20 DIV 2 + COUNT( * )
----
761

skipif mysql # not compatible
query I rowsort label-5048
SELECT - ( + + 76 ) * - + 20 / 2 + COUNT ( * )
----
761

onlyif mysql # aggregate syntax: 
query II rowsort label-5049
SELECT + - COALESCE ( + 54, - 81, - 15 + - + COUNT( * ) ), 23 AS col2
----
-54
23

skipif mysql # not compatible
query II rowsort label-5049
SELECT + - COALESCE ( + 54, - 81, - 15 + - + COUNT ( * ) ), 23 AS col2
----
-54
23

query I rowsort
SELECT + ( + 73 ) AS col1
----
73

query I rowsort
SELECT + 90 * + - 90 + + - 41
----
-8141

onlyif mysql # DIV for integer division: 
query II rowsort label-5052
SELECT - 61 - 47 DIV - + 61, - 10 AS col2
----
-61
-10

skipif mysql # not compatible
query II rowsort label-5052
SELECT - 61 - 47 / - + 61, - 10 AS col2
----
-61
-10

onlyif mysql # aggregate syntax: 
query II rowsort label-5053
SELECT ALL - 64, 79 + ( SUM( DISTINCT - 91 ) ) AS col1
----
-64
-12

skipif mysql # not compatible
query II rowsort label-5053
SELECT ALL - 64, 79 + ( SUM ( DISTINCT - 91 ) ) AS col1
----
-64
-12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5054
SELECT ALL + 34 * 41 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5054
SELECT ALL + 34 * 41 * CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 23 + - 44
----
-21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5056
SELECT CASE - + AVG ( 92 ) WHEN - CAST( NULL AS DECIMAL ) THEN - + 74 / - COUNT( * ) WHEN 42 + + MAX( ALL + 33 ) THEN - 34 * CAST( 93 * - COALESCE ( 37, 32 + SUM( DISTINCT 37 ) * 32, COUNT( * ), + ( 67 ) ) AS SIGNED ) END * - COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5056
SELECT CASE - + AVG ( 92 ) WHEN - CAST ( NULL AS REAL ) THEN - + 74 / - COUNT ( * ) WHEN 42 + + MAX ( ALL + 33 ) THEN - 34 * CAST ( 93 * - COALESCE ( 37, 32 + SUM ( DISTINCT 37 ) * 32, COUNT ( * ), + ( 67 ) ) AS INTEGER ) END * - COUNT ( * ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5057
SELECT ALL - COUNT( * ) - + 41 + - 67
----
-109

skipif mysql # not compatible
query I rowsort label-5057
SELECT ALL - COUNT ( * ) - + 41 + - 67
----
-109

query II rowsort
SELECT DISTINCT - 72 AS col2, 28
----
-72
28

query I rowsort
SELECT 15 * ( - 33 ) AS col2
----
-495

onlyif mysql # aggregate syntax: 
query I rowsort label-5060
SELECT + 2 * - - SUM( - 7 ) * + 69 * + 40 + - + NULLIF ( + - 41, CASE + 2 WHEN 53 * - 18 - + 37 * 2 THEN NULL WHEN - 77 * 6 + + 62 * ( 62 ) THEN - 44 END * 63 ) * MAX( ALL + ( - 78 ) )
----
-41838

skipif mysql # not compatible
query I rowsort label-5060
SELECT + 2 * - - SUM ( - 7 ) * + 69 * + 40 + - + NULLIF ( + - 41, CASE + 2 WHEN 53 * - 18 - + 37 * 2 THEN NULL WHEN - 77 * 6 + + 62 * ( 62 ) THEN - 44 END * 63 ) * MAX ( ALL + ( - 78 ) )
----
-41838

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5061
SELECT ALL MIN( ALL - + 16 ) DIV ( - ( + 25 ) ), COUNT( * ) * - 17 AS col0
----
0
-17

skipif mysql # not compatible
query II rowsort label-5061
SELECT ALL MIN ( ALL - + 16 ) / ( - ( + 25 ) ), COUNT ( * ) * - 17 AS col0
----
0
-17

query I rowsort
SELECT ALL - 82 - 14
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-5063
SELECT ALL NULLIF ( - 24, + MAX( + ( + - NULLIF ( - 14, 9 ) ) ) ) * + + 36 AS col2
----
-864

skipif mysql # not compatible
query I rowsort label-5063
SELECT ALL NULLIF ( - 24, + MAX ( + ( + - NULLIF ( - 14, 9 ) ) ) ) * + + 36 AS col2
----
-864

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5064
SELECT NULLIF ( - + 40, 66 ) DIV + COUNT( * ) AS col2, 51
----
-40
51

skipif mysql # not compatible
query II rowsort label-5064
SELECT NULLIF ( - + 40, 66 ) / + COUNT ( * ) AS col2, 51
----
-40
51

onlyif mysql # aggregate syntax: 
query I rowsort label-5065
SELECT COUNT( * ) * - 96 AS col1
----
-96

skipif mysql # not compatible
query I rowsort label-5065
SELECT COUNT ( * ) * - 96 AS col1
----
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5066
SELECT CAST( NULL AS SIGNED ) + - + 33 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5066
SELECT CAST ( NULL AS INTEGER ) + - + 33 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5067
SELECT 94 DIV + 75
----
1

skipif mysql # not compatible
query I rowsort label-5067
SELECT 94 / + 75
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5068
SELECT ALL MAX( DISTINCT - - 16 ) * - COALESCE ( + 64, + 16 ) * + 68 AS col2, 41 DIV - + 21
----
-69632
-1

skipif mysql # not compatible
query II rowsort label-5068
SELECT ALL MAX ( DISTINCT - - 16 ) * - COALESCE ( + 64, + 16 ) * + 68 AS col2, 41 / - + 21
----
-69632
-1

query II rowsort
SELECT 52 AS col2, 26
----
52
26

onlyif mysql # aggregate syntax: 
query I rowsort label-5070
SELECT ALL + COUNT( ALL + + 66 ) * - COUNT( * ) * - 15 AS col2
----
15

skipif mysql # not compatible
query I rowsort label-5070
SELECT ALL + COUNT ( ALL + + 66 ) * - COUNT ( * ) * - 15 AS col2
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-5071
SELECT DISTINCT NULLIF ( + 71, - 99 * - 92 + - COUNT( * ) ) + MIN( - + ( - 23 ) )
----
94

skipif mysql # not compatible
query I rowsort label-5071
SELECT DISTINCT NULLIF ( + 71, - 99 * - 92 + - COUNT ( * ) ) + MIN ( - + ( - 23 ) )
----
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5072
SELECT ALL 65 AS col2, CAST( NULL AS SIGNED ) * - COUNT( * ) AS col0
----
65
NULL

skipif mysql # not compatible
query II rowsort label-5072
SELECT ALL 65 AS col2, CAST ( NULL AS INTEGER ) * - COUNT ( * ) AS col0
----
65
NULL

query II rowsort
SELECT DISTINCT 71 AS col2, 33
----
71
33

query I rowsort
SELECT ALL 25 + - 14 AS col2
----
11

query I rowsort
SELECT 10 + + 42
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-5076
SELECT COUNT( * ) - + - COUNT( * ) * - + 80 AS col0
----
-79

skipif mysql # not compatible
query I rowsort label-5076
SELECT COUNT ( * ) - + - COUNT ( * ) * - + 80 AS col0
----
-79

query I rowsort
SELECT NULLIF ( 4, - - 25 ) * 60 * - 43 - + 84 + 43
----
-10361

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5078
SELECT CAST( MAX( ALL - 57 ) AS SIGNED ) + - - 20
----
-37

skipif mysql # not compatible
query I rowsort label-5078
SELECT CAST ( MAX ( ALL - 57 ) AS INTEGER ) + - - 20
----
-37

query I rowsort
SELECT ALL - 48 + 16 - + 56
----
-88

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5080
SELECT ALL - 90 + + NULLIF ( - 78, COUNT( * ) * + 22 ) * + COUNT( * ) * - CAST( NULL AS DECIMAL ) + + 89 * + COALESCE ( + - 48, 39 ) - 57 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5080
SELECT ALL - 90 + + NULLIF ( - 78, COUNT ( * ) * + 22 ) * + COUNT ( * ) * - CAST ( NULL AS REAL ) + + 89 * + COALESCE ( + - 48, 39 ) - 57 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5081
SELECT ALL + 79 DIV - 97 col0
----
0

skipif mysql # not compatible
query I rowsort label-5081
SELECT ALL + 79 / - 97 col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5082
SELECT DISTINCT MAX( ALL + 97 ) + + MIN( + 41 )
----
138

skipif mysql # not compatible
query I rowsort label-5082
SELECT DISTINCT MAX ( ALL + 97 ) + + MIN ( + 41 )
----
138

query I rowsort
SELECT + CASE - - ( - 16 ) WHEN + - AVG ( ALL + 40 ) * - 52 THEN NULL ELSE + - 39 END
----
-39

query I rowsort
SELECT 93 * - 98 * + + 34 * - 98 * - + 4 + + 69
----
-121471323

query I rowsort
SELECT ALL 78 + + + 55
----
133

query II rowsort
SELECT ALL - - 5, 67 AS col1
----
5
67

query II rowsort
SELECT 48, 79 - - 15 AS col2
----
48
94

onlyif mysql # aggregate syntax: 
query I rowsort label-5088
SELECT + - 42 / + + CASE COUNT( * ) WHEN + + 90 THEN - - AVG ( - ( - + 52 ) ) * - 45 - - 58 ELSE NULL END * - 70 / - 85 + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5088
SELECT + - 42 / + + CASE COUNT ( * ) WHEN + + 90 THEN - - AVG ( - ( - + 52 ) ) * - 45 - - 58 ELSE NULL END * - 70 / - 85 + COUNT ( * ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5089
SELECT - 49 * + + COUNT( 85 ) AS col1
----
-49

skipif mysql # not compatible
query I rowsort label-5089
SELECT - 49 * + + COUNT ( 85 ) AS col1
----
-49

onlyif mysql # aggregate syntax: 
query II rowsort label-5090
SELECT ALL - COUNT( * ), - 74 AS col1
----
-1
-74

skipif mysql # not compatible
query II rowsort label-5090
SELECT ALL - COUNT ( * ), - 74 AS col1
----
-1
-74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5091
SELECT + + COALESCE ( + 54, 47 + - COUNT( * ) ) * - CAST( - - 90 AS SIGNED ) + + 5
----
-4855

skipif mysql # not compatible
query I rowsort label-5091
SELECT + + COALESCE ( + 54, 47 + - COUNT ( * ) ) * - CAST ( - - 90 AS INTEGER ) + + 5
----
-4855

query II rowsort
SELECT ALL - 28 AS col0, 48
----
-28
48

query I rowsort
SELECT ALL + - 83 * + 79 AS col2
----
-6557

onlyif mysql # aggregate syntax: 
query II rowsort label-5094
SELECT - 47 * COUNT( * ) AS col2, COUNT( * ) AS col2
----
-47
1

skipif mysql # not compatible
query II rowsort label-5094
SELECT - 47 * COUNT ( * ) AS col2, COUNT ( * ) AS col2
----
-47
1

query I rowsort
SELECT 8 * + + 49 * 25
----
9800

onlyif mysql # aggregate syntax: 
query I rowsort label-5096
SELECT ALL + COUNT( * ) * - 35 col0
----
-35

skipif mysql # not compatible
query I rowsort label-5096
SELECT ALL + COUNT ( * ) * - 35 col0
----
-35

query I rowsort
SELECT 79 - + 66 AS col0
----
13

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5098
SELECT 85 * 98 AS col1, 45 * CAST( - - 77 AS SIGNED )
----
8330
3465

skipif mysql # not compatible
query II rowsort label-5098
SELECT 85 * 98 AS col1, 45 * CAST ( - - 77 AS INTEGER )
----
8330
3465

query I rowsort
SELECT DISTINCT + 18 * ( - 42 )
----
-756

onlyif mysql # aggregate syntax: 
query I rowsort label-5100
SELECT ALL - COUNT( DISTINCT - 52 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-5100
SELECT ALL - COUNT ( DISTINCT - 52 ) AS col0
----
-1

query I rowsort
SELECT 98 * + 31 AS col0
----
3038

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5102
SELECT DISTINCT - NULLIF ( + - 59, - + CASE + - 21 WHEN - + 76 * - 43 - NULLIF ( - 95, - 76 ) + - CAST( NULL AS DECIMAL ) THEN 54 WHEN - + 83 * 84 THEN NULL ELSE 70 END * COUNT( * ) + - 55 / - 51 ) + COUNT( * )
----
60

skipif mysql # not compatible
query I rowsort label-5102
SELECT DISTINCT - NULLIF ( + - 59, - + CASE + - 21 WHEN - + 76 * - 43 - NULLIF ( - 95, - 76 ) + - CAST ( NULL AS REAL ) THEN 54 WHEN - + 83 * 84 THEN NULL ELSE 70 END * COUNT ( * ) + - 55 / - 51 ) + COUNT ( * )
----
60

query I rowsort
SELECT 23 * - 1 col1
----
-23

query I rowsort
SELECT ALL - 1 + - - 21 + + 20
----
40

onlyif mysql # aggregate syntax: 
query II rowsort label-5105
SELECT DISTINCT SUM( ALL 55 ), MAX( 64 ) + + 69 + + 2 AS col2
----
55
135

skipif mysql # not compatible
query II rowsort label-5105
SELECT DISTINCT SUM ( ALL 55 ), MAX ( 64 ) + + 69 + + 2 AS col2
----
55
135

onlyif mysql # aggregate syntax: 
query I rowsort label-5106
SELECT 3 + COUNT( * )
----
4

skipif mysql # not compatible
query I rowsort label-5106
SELECT 3 + COUNT ( * )
----
4

query I rowsort
SELECT ALL - ( - - ( 61 ) ) + 74 col0
----
13

query I rowsort
SELECT 13 + - 10 * - NULLIF ( ( + 6 ), - 34 ) AS col1
----
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5109
SELECT 23 + - 84 * SUM( - + 63 ) - + + COUNT( * ) - + CASE + CAST( 71 AS SIGNED ) WHEN - 77 THEN + 77 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5109
SELECT 23 + - 84 * SUM ( - + 63 ) - + + COUNT ( * ) - + CASE + CAST ( 71 AS INTEGER ) WHEN - 77 THEN + 77 END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5110
SELECT CASE COUNT( * ) WHEN - CAST( NULL AS SIGNED ) THEN NULL ELSE + NULLIF ( - 60, - ( + ( COUNT( * ) ) ) ) DIV - - COUNT( * ) END - + + MIN( ALL + 34 )
----
-94

skipif mysql # not compatible
query I rowsort label-5110
SELECT CASE COUNT ( * ) WHEN - CAST ( NULL AS INTEGER ) THEN NULL ELSE + NULLIF ( - 60, - ( + ( COUNT ( * ) ) ) ) / - - COUNT ( * ) END - + + MIN ( ALL + 34 )
----
-94

query I rowsort
SELECT ALL ( + - 30 ) * ( + + 88 ) - - + 47 col2
----
-2593

query II rowsort
SELECT DISTINCT + 11 + - 94 col1, - 30 + - + 5 * - 18
----
-83
60

onlyif mysql # aggregate syntax: 
query II rowsort label-5113
SELECT DISTINCT - 91 + - ( - COALESCE ( + - 66, - 29 ) ) AS col2, - COUNT( * ) + + CASE + ( - 77 ) WHEN 90 * - 69 THEN NULL ELSE 5 END
----
-157
4

skipif mysql # not compatible
query II rowsort label-5113
SELECT DISTINCT - 91 + - ( - COALESCE ( + - 66, - 29 ) ) AS col2, - COUNT ( * ) + + CASE + ( - 77 ) WHEN 90 * - 69 THEN NULL ELSE 5 END
----
-157
4

onlyif mysql # aggregate syntax: 
query I rowsort label-5114
SELECT - + COUNT( * ) - - SUM( DISTINCT 13 ) - + - 94 * 51 * 62 AS col0
----
297240

skipif mysql # not compatible
query I rowsort label-5114
SELECT - + COUNT ( * ) - - SUM ( DISTINCT 13 ) - + - 94 * 51 * 62 AS col0
----
297240

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5115
SELECT - ( - + CAST( NULL AS DECIMAL ) ) * + 67 / + - 29 * + + 21 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5115
SELECT - ( - + CAST ( NULL AS REAL ) ) * + 67 / + - 29 * + + 21 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5116
SELECT ALL SUM( DISTINCT 10 ), - ( + ( + 91 ) ) AS col0
----
10
-91

skipif mysql # not compatible
query II rowsort label-5116
SELECT ALL SUM ( DISTINCT 10 ), - ( + ( + 91 ) ) AS col0
----
10
-91

query I rowsort
SELECT - - 61 + 15 - + ( + - ( 33 ) )
----
109

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5118
SELECT + - 56 * ( + CAST( NULL AS SIGNED ) ) - + 13 + - + ( - 63 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5118
SELECT + - 56 * ( + CAST ( NULL AS INTEGER ) ) - + 13 + - + ( - 63 )
----
NULL

query I rowsort
SELECT + - ( + + 11 ) AS col1
----
-11

onlyif mysql # aggregate syntax: 
query II rowsort label-5120
SELECT + - 12 * 35, 95 + + COUNT( * ) - 33 + + 61 - - 4 + 51 + - 54 * - 20 * - - 54 AS col2
----
-420
58499

skipif mysql # not compatible
query II rowsort label-5120
SELECT + - 12 * 35, 95 + + COUNT ( * ) - 33 + + 61 - - 4 + 51 + - 54 * - 20 * - - 54 AS col2
----
-420
58499

onlyif mysql # DIV for integer division: 
query I rowsort label-5121
SELECT DISTINCT + 73 DIV - - COALESCE ( 85, - - 29 - + 92 ) * + 89 + 10 AS col0
----
10

skipif mysql # not compatible
query I rowsort label-5121
SELECT DISTINCT + 73 / - - COALESCE ( 85, - - 29 - + 92 ) * + 89 + 10 AS col0
----
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5122
SELECT ALL 14 * + 54 * + ( - 52 ) + + - 65 - 67 - + + CASE - MIN( ALL 60 ) WHEN - - MIN( - + 92 ) THEN - NULLIF ( CAST( 59 AS SIGNED ), + 74 * CAST( NULL AS SIGNED ) ) * - 55 + 57 WHEN 84 THEN 96 END + - 44 * 59
----
NULL

skipif mysql # not compatible
query I rowsort label-5122
SELECT ALL 14 * + 54 * + ( - 52 ) + + - 65 - 67 - + + CASE - MIN ( ALL 60 ) WHEN - - MIN ( - + 92 ) THEN - NULLIF ( CAST ( 59 AS INTEGER ), + 74 * CAST ( NULL AS INTEGER ) ) * - 55 + 57 WHEN 84 THEN 96 END + - 44 * 59
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-5123
SELECT DISTINCT + - ( + - 12 ), + 1 DIV + 29 AS col2
----
12
0

skipif mysql # not compatible
query II rowsort label-5123
SELECT DISTINCT + - ( + - 12 ), + 1 / + 29 AS col2
----
12
0

query I rowsort
SELECT DISTINCT + 23 * - 83 * - 96 AS col2
----
183264

onlyif mysql # aggregate syntax: 
query I rowsort label-5125
SELECT MAX( - 99 ) AS col2
----
-99

skipif mysql # not compatible
query I rowsort label-5125
SELECT MAX ( - 99 ) AS col2
----
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-5126
SELECT + 50 DIV + - 16 AS col1
----
-3

skipif mysql # not compatible
query I rowsort label-5126
SELECT + 50 / + - 16 AS col1
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5127
SELECT + CAST( 24 AS SIGNED ) + - ( + - 15 ) - - ( + + 71 ) + - COUNT( DISTINCT - + 62 ) * - COUNT( * ) * - + 81 * - 68 AS col2
----
5618

skipif mysql # not compatible
query I rowsort label-5127
SELECT + CAST ( 24 AS INTEGER ) + - ( + - 15 ) - - ( + + 71 ) + - COUNT ( DISTINCT - + 62 ) * - COUNT ( * ) * - + 81 * - 68 AS col2
----
5618

onlyif mysql # aggregate syntax: 
query I rowsort label-5128
SELECT - ( 57 ) * - + COALESCE ( + COALESCE ( + 93, - 2 ), - - 2 ) + 80 * + 80 - - - 86 + + COUNT( * ) + - 38 AS col1
----
11578

skipif mysql # not compatible
query I rowsort label-5128
SELECT - ( 57 ) * - + COALESCE ( + COALESCE ( + 93, - 2 ), - - 2 ) + 80 * + 80 - - - 86 + + COUNT ( * ) + - 38 AS col1
----
11578

onlyif mysql # aggregate syntax: 
query I rowsort label-5129
SELECT ALL + COUNT( 75 )
----
1

skipif mysql # not compatible
query I rowsort label-5129
SELECT ALL + COUNT ( 75 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5130
SELECT COUNT( DISTINCT - CAST( - 32 AS SIGNED ) ) AS col0, 94 - 38
----
1
56

skipif mysql # not compatible
query II rowsort label-5130
SELECT COUNT ( DISTINCT - CAST ( - 32 AS INTEGER ) ) AS col0, 94 - 38
----
1
56

onlyif mysql # aggregate syntax: 
query I rowsort label-5131
SELECT + MIN( DISTINCT + 95 ) + 54 * + 58
----
3227

skipif mysql # not compatible
query I rowsort label-5131
SELECT + MIN ( DISTINCT + 95 ) + 54 * + 58
----
3227

query I rowsort
SELECT + 73 + - 60 AS col0
----
13

query I rowsort
SELECT ALL - 35 * - ( 6 ) * 32 + - CASE + - ( - ( + + 37 ) ) WHEN + - 43 * 83 THEN NULL WHEN + 55 THEN - 78 * - + 58 - 95 / 63 END + - 11
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5134
SELECT - COUNT( * ) * 2 + - COUNT( * ) AS col2, 93 * + CAST( + AVG ( DISTINCT + 52 ) AS SIGNED ) * + COUNT( * )
----
-3
4836

skipif mysql # not compatible
query II rowsort label-5134
SELECT - COUNT ( * ) * 2 + - COUNT ( * ) AS col2, 93 * + CAST ( + AVG ( DISTINCT + 52 ) AS INTEGER ) * + COUNT ( * )
----
-3
4836

onlyif mysql # aggregate syntax: 
query I rowsort label-5135
SELECT ALL - 85 * + COUNT( * ) + - - ( - 90 )
----
-175

skipif mysql # not compatible
query I rowsort label-5135
SELECT ALL - 85 * + COUNT ( * ) + - - ( - 90 )
----
-175

query I rowsort
SELECT - 26 + - + 41 + + + 20 - + - ( + - 37 ) * - 96 * - - 78 col2
----
277009

onlyif mysql # aggregate syntax: 
query I rowsort label-5137
SELECT ALL + MAX( - 41 ) col1
----
-41

skipif mysql # not compatible
query I rowsort label-5137
SELECT ALL + MAX ( - 41 ) col1
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-5138
SELECT DISTINCT COUNT( * ) + 46 * - + MAX( - 90 ) + - + 68 * SUM( DISTINCT - + 31 )
----
6249

skipif mysql # not compatible
query I rowsort label-5138
SELECT DISTINCT COUNT ( * ) + 46 * - + MAX ( - 90 ) + - + 68 * SUM ( DISTINCT - + 31 )
----
6249

query I rowsort
SELECT - ( - - 56 )
----
-56

query I rowsort
SELECT - 72 + + + 9
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-5141
SELECT ALL NULLIF ( - + 6, + + COUNT( * ) ) + 7 * ( - 1 ) AS col2
----
-13

skipif mysql # not compatible
query I rowsort label-5141
SELECT ALL NULLIF ( - + 6, + + COUNT ( * ) ) + 7 * ( - 1 ) AS col2
----
-13

onlyif mysql # aggregate syntax: 
query II rowsort label-5142
SELECT ALL - 43 - 74 - - COUNT( * ) AS col1, 99 * - 5 AS col2
----
-116
-495

skipif mysql # not compatible
query II rowsort label-5142
SELECT ALL - 43 - 74 - - COUNT ( * ) AS col1, 99 * - 5 AS col2
----
-116
-495

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5143
SELECT ALL CAST( - 30 AS SIGNED ) AS col0
----
-30

skipif mysql # not compatible
query I rowsort label-5143
SELECT ALL CAST ( - 30 AS INTEGER ) AS col0
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-5144
SELECT - - 65 + + + COUNT( * ) + + 65 * - 40 + - - 61 * + 39 * + 11
----
23635

skipif mysql # not compatible
query I rowsort label-5144
SELECT - - 65 + + + COUNT ( * ) + + 65 * - 40 + - - 61 * + 39 * + 11
----
23635

query II rowsort
SELECT - - 1 * - ( + 82 ) AS col0, + 14 + 94
----
-82
108

query I rowsort
SELECT + 27 + - 17 AS col2
----
10

query I rowsort
SELECT ALL + - 4 * 69
----
-276

query I rowsort
SELECT ALL + - 87 * - ( - 80 ) * - + 78
----
542880

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5149
SELECT DISTINCT CAST( - 98 AS SIGNED ) AS col1
----
-98

skipif mysql # not compatible
query I rowsort label-5149
SELECT DISTINCT CAST ( - 98 AS INTEGER ) AS col1
----
-98

onlyif mysql # DIV for integer division: 
query II rowsort label-5150
SELECT ALL - 8, 19 DIV 81 * - - 39 AS col0
----
-8
0

skipif mysql # not compatible
query II rowsort label-5150
SELECT ALL - 8, 19 / 81 * - - 39 AS col0
----
-8
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5151
SELECT ALL - + 75 * COUNT( * ) + - 9 + 0 * + 74 DIV 87 * + 84
----
-84

skipif mysql # not compatible
query I rowsort label-5151
SELECT ALL - + 75 * COUNT ( * ) + - 9 + 0 * + 74 / 87 * + 84
----
-84

query I rowsort
SELECT ALL + + 46 col2
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-5153
SELECT DISTINCT + - MIN( DISTINCT + 25 ) AS col0
----
-25

skipif mysql # not compatible
query I rowsort label-5153
SELECT DISTINCT + - MIN ( DISTINCT + 25 ) AS col0
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-5154
SELECT + - COALESCE ( + COUNT( * ), - 13 * SUM( 37 ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-5154
SELECT + - COALESCE ( + COUNT ( * ), - 13 * SUM ( 37 ) ) AS col2
----
-1

query I rowsort
SELECT - 87 * 82 AS col0
----
-7134

onlyif mysql # aggregate syntax: 
query I rowsort label-5156
SELECT DISTINCT - ( - CASE + - 56 WHEN COUNT( * ) THEN + 31 * - COALESCE ( - - 98, + ( 62 ) * 25, - 14 ) * COUNT( * ) + - CASE - 41 WHEN COUNT( * ) + + COUNT( * ) THEN NULL ELSE COUNT( * ) * + 70 END + - COUNT( * ) END ) / COUNT( * ) + - NULLIF ( + 27 + 10, - 16 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5156
SELECT DISTINCT - ( - CASE + - 56 WHEN COUNT ( * ) THEN + 31 * - COALESCE ( - - 98, + ( 62 ) * 25, - 14 ) * COUNT ( * ) + - CASE - 41 WHEN COUNT ( * ) + + COUNT ( * ) THEN NULL ELSE COUNT ( * ) * + 70 END + - COUNT ( * ) END ) / COUNT ( * ) + - NULLIF ( + 27 + 10, - 16 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5157
SELECT + 50 * - COUNT( * ) AS col2, + 78 DIV - ( + SUM( ALL - 84 ) ) + - - 41 AS col2
----
-50
41

skipif mysql # not compatible
query II rowsort label-5157
SELECT + 50 * - COUNT ( * ) AS col2, + 78 / - ( + SUM ( ALL - 84 ) ) + - - 41 AS col2
----
-50
41

query I rowsort
SELECT ALL 70 * 22 + - 10
----
1530

onlyif mysql # aggregate syntax: 
query I rowsort label-5159
SELECT + ( + SUM( 3 ) )
----
3

skipif mysql # not compatible
query I rowsort label-5159
SELECT + ( + SUM ( 3 ) )
----
3

query I rowsort
SELECT ( 52 ) AS col0
----
52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5161
SELECT ALL - ( - ( 3 ) ) * + COUNT( * ) + 81 * + - COALESCE ( - - 65, + + COUNT( DISTINCT 22 ) - + - 85 DIV + + COUNT( * ) * + 1, - 76 * + 90 ) AS col0
----
-5262

skipif mysql # not compatible
query I rowsort label-5161
SELECT ALL - ( - ( 3 ) ) * + COUNT ( * ) + 81 * + - COALESCE ( - - 65, + + COUNT ( DISTINCT 22 ) - + - 85 / + + COUNT ( * ) * + 1, - 76 * + 90 ) AS col0
----
-5262

onlyif mysql # DIV for integer division: 
query II rowsort label-5162
SELECT + 14 - - 44 * - + 67 * + - 14, 55 DIV - 97 - - + 20 AS col1
----
41286
20

skipif mysql # not compatible
query II rowsort label-5162
SELECT + 14 - - 44 * - + 67 * + - 14, 55 / - 97 - - + 20 AS col1
----
41286
20

onlyif mysql # aggregate syntax: 
query I rowsort label-5163
SELECT + 20 * - COUNT( * ) * ( - MAX( DISTINCT + 37 ) ) * + 21 * + + 17 * - 37 col0
----
-9774660

skipif mysql # not compatible
query I rowsort label-5163
SELECT + 20 * - COUNT ( * ) * ( - MAX ( DISTINCT + 37 ) ) * + 21 * + + 17 * - 37 col0
----
-9774660

query I rowsort
SELECT + 90 - + 74
----
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5165
SELECT CASE - CAST( NULL AS SIGNED ) WHEN - + 53 THEN NULL ELSE - 38 + + CASE - + 42 WHEN - 46 THEN - MIN( 38 ) * CAST( NULL AS DECIMAL ) END END
----
NULL

skipif mysql # not compatible
query I rowsort label-5165
SELECT CASE - CAST ( NULL AS INTEGER ) WHEN - + 53 THEN NULL ELSE - 38 + + CASE - + 42 WHEN - 46 THEN - MIN ( 38 ) * CAST ( NULL AS REAL ) END END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5166
SELECT - SUM( - + 3 ) DIV + 56
----
0

skipif mysql # not compatible
query I rowsort label-5166
SELECT - SUM ( - + 3 ) / + 56
----
0

query I rowsort
SELECT ALL + 48 * 27 + - 1
----
1295

query I rowsort
SELECT + 84 * 95 AS col2
----
7980

onlyif mysql # DIV for integer division: 
query I rowsort label-5169
SELECT DISTINCT 95 DIV 74
----
1

skipif mysql # not compatible
query I rowsort label-5169
SELECT DISTINCT 95 / 74
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5170
SELECT ALL NULLIF ( + CAST( NULL AS SIGNED ), 8 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5170
SELECT ALL NULLIF ( + CAST ( NULL AS INTEGER ), 8 )
----
NULL

query I rowsort
SELECT ALL + 11 * + 24
----
264

onlyif mysql # aggregate syntax: 
query I rowsort label-5172
SELECT 58 - - COUNT( * ) + - 39
----
20

skipif mysql # not compatible
query I rowsort label-5172
SELECT 58 - - COUNT ( * ) + - 39
----
20

query I rowsort
SELECT - 2 * + + 51 AS col1
----
-102

query I rowsort
SELECT 98 * + ( - + 40 ) AS col0
----
-3920

onlyif mysql # aggregate syntax: 
query I rowsort label-5175
SELECT - COUNT( * ) + - - 91 AS col2
----
90

skipif mysql # not compatible
query I rowsort label-5175
SELECT - COUNT ( * ) + - - 91 AS col2
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-5176
SELECT 57 - - COUNT( * ) AS col0
----
58

skipif mysql # not compatible
query I rowsort label-5176
SELECT 57 - - COUNT ( * ) AS col0
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-5177
SELECT DISTINCT 29 * + COUNT( * )
----
29

skipif mysql # not compatible
query I rowsort label-5177
SELECT DISTINCT 29 * + COUNT ( * )
----
29

query I rowsort
SELECT DISTINCT + ( 90 ) col2
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-5179
SELECT 36 + - - COUNT( * ) AS col0
----
37

skipif mysql # not compatible
query I rowsort label-5179
SELECT 36 + - - COUNT ( * ) AS col0
----
37

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5180
SELECT ALL COALESCE ( + 24, 69 DIV - 54 - + + COUNT( * ), CASE WHEN NOT 1 = - ( - NULLIF ( + - 54, - - 97 ) ) + + 22 + - + COUNT( * ) + - 87 * 80 THEN 19 ELSE NULL END * + 40 - + 51 * - 2 ) AS col2
----
24

skipif mysql # not compatible
query I rowsort label-5180
SELECT ALL COALESCE ( + 24, 69 / - 54 - + + COUNT ( * ), CASE WHEN NOT 1 = - ( - NULLIF ( + - 54, - - 97 ) ) + + 22 + - + COUNT ( * ) + - 87 * 80 THEN 19 ELSE NULL END * + 40 - + 51 * - 2 ) AS col2
----
24

query I rowsort
SELECT 13 * + 71 AS col0
----
923

onlyif mysql # aggregate syntax: 
query II rowsort label-5182
SELECT ALL + COUNT( * ) + COUNT( * ) * - + 67 * + + 66 AS col0, + 49
----
-4421
49

skipif mysql # not compatible
query II rowsort label-5182
SELECT ALL + COUNT ( * ) + COUNT ( * ) * - + 67 * + + 66 AS col0, + 49
----
-4421
49

query I rowsort
SELECT - 44 + - 22
----
-66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5184
SELECT - COUNT( * ) * + CAST( NULL AS SIGNED ) * 34 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5184
SELECT - COUNT ( * ) * + CAST ( NULL AS INTEGER ) * 34 AS col2
----
NULL

query I rowsort
SELECT 46 + - 56
----
-10

query I rowsort
SELECT ALL + 74 * + - 3
----
-222

onlyif mysql # DIV for integer division: 
query I rowsort label-5187
SELECT 92 DIV + 40
----
2

skipif mysql # not compatible
query I rowsort label-5187
SELECT 92 / + 40
----
2

query I rowsort
SELECT DISTINCT + - 34 + + - 38
----
-72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-5189
SELECT ALL - - 72 + - - 6 * + - 55 + - - 45, COUNT( * ) col0, 96 * + - 19 * CAST( - - ( - 15 ) AS SIGNED ) * - + 87 + + - COUNT( * ) + - 79 col0
----
-213
1
-2380400

skipif mysql # not compatible
query III rowsort label-5189
SELECT ALL - - 72 + - - 6 * + - 55 + - - 45, COUNT ( * ) col0, 96 * + - 19 * CAST ( - - ( - 15 ) AS INTEGER ) * - + 87 + + - COUNT ( * ) + - 79 col0
----
-213
1
-2380400

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5190
SELECT ( + 18 ) * + + CAST( 94 AS SIGNED ) * + - 76 * ( 17 ) * - - 57 + 27 - - COUNT( * )
----
-124605620

skipif mysql # not compatible
query I rowsort label-5190
SELECT ( + 18 ) * + + CAST ( 94 AS INTEGER ) * + - 76 * ( 17 ) * - - 57 + 27 - - COUNT ( * )
----
-124605620

query II rowsort
SELECT ALL ( + 8 ) + + 36, 13 AS col2
----
44
13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5192
SELECT ALL - 14 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5192
SELECT ALL - 14 * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5193
SELECT DISTINCT + MAX( 48 ) + 4 * + SUM( + 62 ) + + 23 AS col2
----
319

skipif mysql # not compatible
query I rowsort label-5193
SELECT DISTINCT + MAX ( 48 ) + 4 * + SUM ( + 62 ) + + 23 AS col2
----
319

onlyif mysql # aggregate syntax: 
query I rowsort label-5194
SELECT ALL COUNT( * ) + - 72 AS col0
----
-71

skipif mysql # not compatible
query I rowsort label-5194
SELECT ALL COUNT ( * ) + - 72 AS col0
----
-71

onlyif mysql # DIV for integer division: 
query II rowsort label-5195
SELECT 53 AS col2, 85 DIV 91
----
53
0

skipif mysql # not compatible
query II rowsort label-5195
SELECT 53 AS col2, 85 / 91
----
53
0

query I rowsort
SELECT ALL + 42 + - COALESCE ( 21, + 3 + ( + 94 ), + - 65 ) + - 66 AS col0
----
-45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5197
SELECT - 40 * 62 * - 84 - COALESCE ( - - 6, + COUNT( * ) DIV - - 23 + + NULLIF ( - 87, 86 * 90 + - NULLIF ( + 72, CAST( - COALESCE ( 60, - 22 ) AS SIGNED ) * 31 ) + + 13 ) DIV MAX( 93 ) + 54, - 88 ) + + 75 DIV 37
----
208316

skipif mysql # not compatible
query I rowsort label-5197
SELECT - 40 * 62 * - 84 - COALESCE ( - - 6, + COUNT ( * ) / - - 23 + + NULLIF ( - 87, 86 * 90 + - NULLIF ( + 72, CAST ( - COALESCE ( 60, - 22 ) AS INTEGER ) * 31 ) + + 13 ) / MAX ( 93 ) + 54, - 88 ) + + 75 / 37
----
208316

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5198
SELECT 23 + - + 21 * + - CAST( NULL AS SIGNED ) AS col0, 98 * + + 62 * + + COUNT( * ) AS col0
----
NULL
6076

skipif mysql # not compatible
query II rowsort label-5198
SELECT 23 + - + 21 * + - CAST ( NULL AS INTEGER ) AS col0, 98 * + + 62 * + + COUNT ( * ) AS col0
----
NULL
6076

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5199
SELECT COUNT( * ) * 30 * 10 DIV - - 91 - 66 * + 7 * - 52
----
24027

skipif mysql # not compatible
query I rowsort label-5199
SELECT COUNT ( * ) * 30 * 10 / - - 91 - 66 * + 7 * - 52
----
24027

query I rowsort
SELECT ALL 54 - - 83 AS col0
----
137

onlyif mysql # aggregate syntax: 
query II rowsort label-5201
SELECT DISTINCT + 52 * - - SUM( - 69 ), - 56 AS col2
----
-3588
-56

skipif mysql # not compatible
query II rowsort label-5201
SELECT DISTINCT + 52 * - - SUM ( - 69 ), - 56 AS col2
----
-3588
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-5202
SELECT CASE + ( - 46 ) WHEN + 18 THEN NULL WHEN + + 76 + - COUNT( * ) THEN NULL ELSE + 6 * + 77 END + - - 59 + + SUM( DISTINCT - 56 ) + 5 * 67 * + - 83 * - ( - 18 ) * 77 col0
----
-38537265

skipif mysql # not compatible
query I rowsort label-5202
SELECT CASE + ( - 46 ) WHEN + 18 THEN NULL WHEN + + 76 + - COUNT ( * ) THEN NULL ELSE + 6 * + 77 END + - - 59 + + SUM ( DISTINCT - 56 ) + 5 * 67 * + - 83 * - ( - 18 ) * 77 col0
----
-38537265

query I rowsort
SELECT 67 + - - 41 AS col2
----
108

onlyif mysql # aggregate syntax: 
query I rowsort label-5204
SELECT DISTINCT 53 * COALESCE ( - - 35, - + COUNT( ALL + - 48 ), + MAX( + 59 ) * + + 7 )
----
1855

skipif mysql # not compatible
query I rowsort label-5204
SELECT DISTINCT 53 * COALESCE ( - - 35, - + COUNT ( ALL + - 48 ), + MAX ( + 59 ) * + + 7 )
----
1855

query I rowsort
SELECT 44 + + + 44 AS col0
----
88

query II rowsort
SELECT - 81, 60 AS col2
----
-81
60

onlyif mysql # aggregate syntax: 
query II rowsort label-5207
SELECT ALL - 23 AS col0, + COUNT( * ) - + - 71 AS col0
----
-23
72

skipif mysql # not compatible
query II rowsort label-5207
SELECT ALL - 23 AS col0, + COUNT ( * ) - + - 71 AS col0
----
-23
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5208
SELECT - 33 * + 52 * + MIN( 24 ) + - CASE - CAST( + COALESCE ( - 37, + 16, + COUNT( * ) + CAST( NULL AS DECIMAL ) ) AS SIGNED ) WHEN 34 THEN - - ( - + 79 ) + NULLIF ( COUNT( * ), + 72 ) * 40 WHEN - 20 THEN NULLIF ( 31, MAX( ALL + 33 ) ) ELSE - 7 + 10 END + COUNT( * )
----
-41186

skipif mysql # not compatible
query I rowsort label-5208
SELECT - 33 * + 52 * + MIN ( 24 ) + - CASE - CAST ( + COALESCE ( - 37, + 16, + COUNT ( * ) + CAST ( NULL AS REAL ) ) AS INTEGER ) WHEN 34 THEN - - ( - + 79 ) + NULLIF ( COUNT ( * ), + 72 ) * 40 WHEN - 20 THEN NULLIF ( 31, MAX ( ALL + 33 ) ) ELSE - 7 + 10 END + COUNT ( * )
----
-41186

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5209
SELECT NULLIF ( + NULLIF ( - COALESCE ( 13, + + 95, - + 70 ), - 45 ), - 46 * 68 * ( + - 77 ) ) * + - COUNT( * ) * + 89 - 6 * + - COALESCE ( 46, - MIN( 32 ) DIV 63, 30 )
----
1433

skipif mysql # not compatible
query I rowsort label-5209
SELECT NULLIF ( + NULLIF ( - COALESCE ( 13, + + 95, - + 70 ), - 45 ), - 46 * 68 * ( + - 77 ) ) * + - COUNT ( * ) * + 89 - 6 * + - COALESCE ( 46, - MIN ( 32 ) / 63, 30 )
----
1433

onlyif mysql # aggregate syntax: 
query I rowsort label-5210
SELECT 89 + COUNT( * ) + + + 98 * - + 56 * + - 21
----
115338

skipif mysql # not compatible
query I rowsort label-5210
SELECT 89 + COUNT ( * ) + + + 98 * - + 56 * + - 21
----
115338

query I rowsort
SELECT - ( + + 87 )
----
-87

query II rowsort
SELECT DISTINCT + 63, 62 AS col1
----
63
62

query II rowsort
SELECT ALL 45 + ( - 85 ) AS col1, 77 + - 24
----
-40
53

onlyif mysql # aggregate syntax: 
query I rowsort label-5214
SELECT MAX( + ( - 95 ) ) + - + 1
----
-96

skipif mysql # not compatible
query I rowsort label-5214
SELECT MAX ( + ( - 95 ) ) + - + 1
----
-96

query I rowsort
SELECT DISTINCT COALESCE ( 92, + - 97 * - - 99 + - - 17, - - 1 ) AS col1
----
92

query I rowsort
SELECT + 42 * - - 48
----
2016

onlyif mysql # aggregate syntax: 
query I rowsort label-5217
SELECT + 25 + - COUNT( * )
----
24

skipif mysql # not compatible
query I rowsort label-5217
SELECT + 25 + - COUNT ( * )
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-5218
SELECT ALL + + 32 + - COUNT( * ) + + 93 AS col2
----
124

skipif mysql # not compatible
query I rowsort label-5218
SELECT ALL + + 32 + - COUNT ( * ) + + 93 AS col2
----
124

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5219
SELECT DISTINCT ( - 64 ) * + 46 * - 45 + - + NULLIF ( + 91, 8 + + 67 + 97 * + COUNT( * ) ) + - 36 * + + CAST( 14 AS SIGNED ) AS col1
----
131885

skipif mysql # not compatible
query I rowsort label-5219
SELECT DISTINCT ( - 64 ) * + 46 * - 45 + - + NULLIF ( + 91, 8 + + 67 + 97 * + COUNT ( * ) ) + - 36 * + + CAST ( 14 AS INTEGER ) AS col1
----
131885

onlyif mysql # aggregate syntax: 
query I rowsort label-5220
SELECT ALL COUNT( ALL + 75 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5220
SELECT ALL COUNT ( ALL + 75 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5221
SELECT - 91 + + + MIN( - 91 ) AS col2
----
-182

skipif mysql # not compatible
query I rowsort label-5221
SELECT - 91 + + + MIN ( - 91 ) AS col2
----
-182

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5222
SELECT DISTINCT - 56 AS col1, - CAST( NULL AS DECIMAL ) / + 21
----
-56
NULL

skipif mysql # not compatible
query II rowsort label-5222
SELECT DISTINCT - 56 AS col1, - CAST ( NULL AS REAL ) / + 21
----
-56
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5223
SELECT MAX( DISTINCT + 97 )
----
97

skipif mysql # not compatible
query I rowsort label-5223
SELECT MAX ( DISTINCT + 97 )
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5224
SELECT MAX( + 59 ) col0
----
59

skipif mysql # not compatible
query I rowsort label-5224
SELECT MAX ( + 59 ) col0
----
59

onlyif mysql # DIV for integer division: 
query II rowsort label-5225
SELECT 37 DIV - + 28 + + 46 * - 58 AS col1, 76 * 25 * + 2 DIV 1
----
-2669
3800

skipif mysql # not compatible
query II rowsort label-5225
SELECT 37 / - + 28 + + 46 * - 58 AS col1, 76 * 25 * + 2 / 1
----
-2669
3800

onlyif mysql # aggregate syntax: 
query I rowsort label-5226
SELECT ALL - SUM( ALL + + 58 ) AS col1
----
-58

skipif mysql # not compatible
query I rowsort label-5226
SELECT ALL - SUM ( ALL + + 58 ) AS col1
----
-58

query II rowsort
SELECT + 48, + 79 + 66 AS col2
----
48
145

onlyif mysql # aggregate syntax: 
query I rowsort label-5228
SELECT COALESCE ( + COUNT( * ), + 9, - - 34 ) * - - ( 14 ) + + - COUNT( * ) + + + 20 AS col0
----
33

skipif mysql # not compatible
query I rowsort label-5228
SELECT COALESCE ( + COUNT ( * ), + 9, - - 34 ) * - - ( 14 ) + + - COUNT ( * ) + + + 20 AS col0
----
33

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5229
SELECT DISTINCT - 66 * - CAST( - - 58 AS SIGNED ) - - 44 AS col2, - 75 + 91 + 11
----
3872
27

skipif mysql # not compatible
query II rowsort label-5229
SELECT DISTINCT - 66 * - CAST ( - - 58 AS INTEGER ) - - 44 AS col2, - 75 + 91 + 11
----
3872
27

query I rowsort
SELECT 32 * - 74 col0
----
-2368

query I rowsort
SELECT ALL - 10 * - + 86
----
860

onlyif mysql # DIV for integer division: 
query I rowsort label-5232
SELECT 39 DIV + 42 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5232
SELECT 39 / + 42 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5233
SELECT ALL - MAX( DISTINCT 47 ) col2
----
-47

skipif mysql # not compatible
query I rowsort label-5233
SELECT ALL - MAX ( DISTINCT 47 ) col2
----
-47

query II rowsort
SELECT + 17 AS col1, 5 AS col2
----
17
5

query II rowsort
SELECT + 68 col0, 92
----
68
92

onlyif mysql # aggregate syntax: 
query I rowsort label-5236
SELECT + COALESCE ( - COUNT( ALL 40 ), + + COUNT( * ), - 66 ) * + + 54 AS col1
----
-54

skipif mysql # not compatible
query I rowsort label-5236
SELECT + COALESCE ( - COUNT ( ALL 40 ), + + COUNT ( * ), - 66 ) * + + 54 AS col1
----
-54

query I rowsort
SELECT - 77 + - 97
----
-174

onlyif mysql # aggregate syntax: 
query II rowsort label-5238
SELECT COUNT( * ), - 41 col2
----
1
-41

skipif mysql # not compatible
query II rowsort label-5238
SELECT COUNT ( * ), - 41 col2
----
1
-41

query II rowsort
SELECT DISTINCT + - 89 AS col1, + 5 + 52 * + 65
----
-89
3385

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5240
SELECT DISTINCT + CAST( NULL AS SIGNED ) * COUNT( * ) + - + 59 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5240
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * COUNT ( * ) + - + 59 AS col1
----
NULL

query I rowsort
SELECT DISTINCT + 90 + ( 85 ) AS col1
----
175

onlyif mysql # aggregate syntax: 
query I rowsort label-5242
SELECT + 51 - + - COUNT( * ) AS col0
----
52

skipif mysql # not compatible
query I rowsort label-5242
SELECT + 51 - + - COUNT ( * ) AS col0
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-5243
SELECT ALL SUM( DISTINCT + 9 ) * + 16
----
144

skipif mysql # not compatible
query I rowsort label-5243
SELECT ALL SUM ( DISTINCT + 9 ) * + 16
----
144

onlyif mysql # aggregate syntax: 
query I rowsort label-5244
SELECT DISTINCT + - 68 + + + 49 + - 20 - 76 * 41 * 93 + - 10 * - 84 * - 68 * - 58 * 74 - - - 63 * 57 + + MIN( - 22 ) * - 98 - COUNT( * ) AS col0
----
244867777

skipif mysql # not compatible
query I rowsort label-5244
SELECT DISTINCT + - 68 + + + 49 + - 20 - 76 * 41 * 93 + - 10 * - 84 * - 68 * - 58 * 74 - - - 63 * 57 + + MIN ( - 22 ) * - 98 - COUNT ( * ) AS col0
----
244867777

query I rowsort
SELECT - 17 + + 20
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-5246
SELECT - - COUNT( + 53 ), + 27 - + 30 * + 11 AS col2
----
1
-303

skipif mysql # not compatible
query II rowsort label-5246
SELECT - - COUNT ( + 53 ), + 27 - + 30 * + 11 AS col2
----
1
-303

query I rowsort
SELECT + + 96 * - 68 col2
----
-6528

query I rowsort
SELECT + ( - + 26 ) AS col1
----
-26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5249
SELECT ALL 79 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5249
SELECT ALL 79 + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5250
SELECT + 62 DIV + 99 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5250
SELECT + 62 / + 99 AS col2
----
0

query II rowsort
SELECT - 37, 38 + + 60 * - 2 col0
----
-37
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-5252
SELECT ALL 19 * - + COUNT( * ) AS col0
----
-19

skipif mysql # not compatible
query I rowsort label-5252
SELECT ALL 19 * - + COUNT ( * ) AS col0
----
-19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5253
SELECT ALL - 80 + - COALESCE ( 28, - CAST( NULL AS SIGNED ) ) + + 52 AS col0
----
-56

skipif mysql # not compatible
query I rowsort label-5253
SELECT ALL - 80 + - COALESCE ( 28, - CAST ( NULL AS INTEGER ) ) + + 52 AS col0
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-5254
SELECT + COUNT( * ) * + 91
----
91

skipif mysql # not compatible
query I rowsort label-5254
SELECT + COUNT ( * ) * + 91
----
91

query I rowsort
SELECT + 91 + - + 66 * + 10 AS col0
----
-569

onlyif mysql # aggregate syntax: 
query I rowsort label-5256
SELECT - 88 * - - 3 + - COUNT( * ) + - - COUNT( * )
----
-264

skipif mysql # not compatible
query I rowsort label-5256
SELECT - 88 * - - 3 + - COUNT ( * ) + - - COUNT ( * )
----
-264

onlyif mysql # aggregate syntax: 
query I rowsort label-5257
SELECT + 85 * + 37 * - + COALESCE ( + MAX( ALL 85 ), - 89 )
----
-267325

skipif mysql # not compatible
query I rowsort label-5257
SELECT + 85 * + 37 * - + COALESCE ( + MAX ( ALL 85 ), - 89 )
----
-267325

onlyif mysql # aggregate syntax: 
query I rowsort label-5258
SELECT 42 * - SUM( ALL 55 ) * + 59 - - ( + 76 ) * 81 AS col0
----
-130134

skipif mysql # not compatible
query I rowsort label-5258
SELECT 42 * - SUM ( ALL 55 ) * + 59 - - ( + 76 ) * 81 AS col0
----
-130134

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5259
SELECT ALL 25 * - - 13 * - COUNT( * ) AS col2, + 19 + + CAST( NULL AS SIGNED )
----
-325
NULL

skipif mysql # not compatible
query II rowsort label-5259
SELECT ALL 25 * - - 13 * - COUNT ( * ) AS col2, + 19 + + CAST ( NULL AS INTEGER )
----
-325
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5260
SELECT - COUNT( * ) + + - 9 AS col2
----
-10

skipif mysql # not compatible
query I rowsort label-5260
SELECT - COUNT ( * ) + + - 9 AS col2
----
-10

query I rowsort
SELECT ( - - 96 ) AS col1
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-5262
SELECT 79 * + MIN( + 65 ) + - 22 * COUNT( ALL - 98 ) AS col0
----
5113

skipif mysql # not compatible
query I rowsort label-5262
SELECT 79 * + MIN ( + 65 ) + - 22 * COUNT ( ALL - 98 ) AS col0
----
5113

onlyif mysql # DIV for integer division: 
query I rowsort label-5263
SELECT ALL - 7 DIV 18
----
0

skipif mysql # not compatible
query I rowsort label-5263
SELECT ALL - 7 / 18
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5264
SELECT + ( MAX( + 4 ) ) * 8 - + + 78
----
-46

skipif mysql # not compatible
query I rowsort label-5264
SELECT + ( MAX ( + 4 ) ) * 8 - + + 78
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-5265
SELECT NULLIF ( - 85, + 35 * + 32 * + 25 ) * ( + 42 ) + + 18 - - COUNT( * ) * + 56 + 34 AS col2
----
-3462

skipif mysql # not compatible
query I rowsort label-5265
SELECT NULLIF ( - 85, + 35 * + 32 * + 25 ) * ( + 42 ) + + 18 - - COUNT ( * ) * + 56 + 34 AS col2
----
-3462

query I rowsort
SELECT ALL - 80 * 26 AS col2
----
-2080

onlyif mysql # aggregate syntax: 
query I rowsort label-5267
SELECT NULLIF ( - - 91, + COALESCE ( - 17, + 2 / + 73 ) + COUNT( * ) ) AS col1
----
91

skipif mysql # not compatible
query I rowsort label-5267
SELECT NULLIF ( - - 91, + COALESCE ( - 17, + 2 / + 73 ) + COUNT ( * ) ) AS col1
----
91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5268
SELECT ALL 77 DIV 47 DIV + 70 * - SUM( ALL + ( + - 58 ) ) * + - 74 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5268
SELECT ALL 77 / 47 / + 70 * - SUM ( ALL + ( + - 58 ) ) * + - 74 AS col0
----
0

query I rowsort
SELECT - ( - 51 ) + ( 25 ) col2
----
76

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5270
SELECT - - MAX( DISTINCT 78 ) DIV MIN( DISTINCT 47 ) + - 40 AS col1
----
-39

skipif mysql # not compatible
query I rowsort label-5270
SELECT - - MAX ( DISTINCT 78 ) / MIN ( DISTINCT 47 ) + - 40 AS col1
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-5271
SELECT - COUNT( * ) + + 3 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-5271
SELECT - COUNT ( * ) + + 3 AS col1
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5272
SELECT ALL 66 * - + COUNT( * ) + - ( - 14 ) DIV - - 40
----
-66

skipif mysql # not compatible
query I rowsort label-5272
SELECT ALL 66 * - + COUNT ( * ) + - ( - 14 ) / - - 40
----
-66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5273
SELECT CAST( + NULLIF ( - 2, - COUNT( * ) * AVG ( ALL 88 ) ) AS SIGNED ) AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-5273
SELECT CAST ( + NULLIF ( - 2, - COUNT ( * ) * AVG ( ALL 88 ) ) AS INTEGER ) AS col1
----
-2

query I rowsort
SELECT - 10 + 30
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-5275
SELECT - + 72 * - 89 + + COUNT( * ) AS col2
----
6409

skipif mysql # not compatible
query I rowsort label-5275
SELECT - + 72 * - 89 + + COUNT ( * ) AS col2
----
6409

onlyif mysql # aggregate syntax: 
query I rowsort label-5276
SELECT DISTINCT + - 45 * + + 71 + + - SUM( DISTINCT - 13 ) AS col1
----
-3182

skipif mysql # not compatible
query I rowsort label-5276
SELECT DISTINCT + - 45 * + + 71 + + - SUM ( DISTINCT - 13 ) AS col1
----
-3182

onlyif mysql # aggregate syntax: 
query I rowsort label-5277
SELECT ALL + + ( + 9 ) * ( - 96 ) + + 76 + COUNT( * )
----
-787

skipif mysql # not compatible
query I rowsort label-5277
SELECT ALL + + ( + 9 ) * ( - 96 ) + + 76 + COUNT ( * )
----
-787

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5278
SELECT - CAST( - + 33 AS DECIMAL ) * - CASE + - 60 WHEN 95 THEN - NULLIF ( 63, - 47 * + 44 ) ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5278
SELECT - CAST ( - + 33 AS REAL ) * - CASE + - 60 WHEN 95 THEN - NULLIF ( 63, - 47 * + 44 ) ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT ALL - ( 88 ) * + 93
----
-8184

onlyif mysql # aggregate syntax: 
query I rowsort label-5280
SELECT DISTINCT - 84 - - - 84 * 92 + 79 * - COUNT( * ) AS col1
----
-7891

skipif mysql # not compatible
query I rowsort label-5280
SELECT DISTINCT - 84 - - - 84 * 92 + 79 * - COUNT ( * ) AS col1
----
-7891

onlyif mysql # aggregate syntax: 
query I rowsort label-5281
SELECT ALL CASE 75 WHEN - - 21 THEN NULL WHEN COUNT( * ) * - - 59 * 69 * 73 - + - 75 THEN + - 80 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5281
SELECT ALL CASE 75 WHEN - - 21 THEN NULL WHEN COUNT ( * ) * - - 59 * 69 * 73 - + - 75 THEN + - 80 END
----
NULL

query I rowsort
SELECT - - 46 * + 91 AS col0
----
4186

onlyif mysql # DIV for integer division: 
query I rowsort label-5283
SELECT + 56 DIV + 75 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5283
SELECT + 56 / + 75 AS col1
----
0

query I rowsort
SELECT - 67 * - 38 * + - 5
----
-12730

query I rowsort
SELECT + 73 + - ( - 9 )
----
82

onlyif mysql # DIV for integer division: 
query II rowsort label-5286
SELECT ALL 37 AS col1, - 84 - + 30 DIV - 34 + 97
----
37
13

skipif mysql # not compatible
query II rowsort label-5286
SELECT ALL 37 AS col1, - 84 - + 30 / - 34 + 97
----
37
13

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5287
SELECT ALL 88 AS col0, CAST( NULL AS SIGNED )
----
88
NULL

skipif mysql # not compatible
query II rowsort label-5287
SELECT ALL 88 AS col0, CAST ( NULL AS INTEGER )
----
88
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5288
SELECT 42 / 17 * CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5288
SELECT 42 / 17 * CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT 66 * - 57 AS col0
----
-3762

onlyif mysql # aggregate syntax: 
query II rowsort label-5290
SELECT 85 col0, NULLIF ( + + 61, + MIN( ALL + - ( + 94 ) ) ) AS col0
----
85
61

skipif mysql # not compatible
query II rowsort label-5290
SELECT 85 col0, NULLIF ( + + 61, + MIN ( ALL + - ( + 94 ) ) ) AS col0
----
85
61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5291
SELECT 83 + - 5 * CAST( + 19 AS SIGNED )
----
-12

skipif mysql # not compatible
query I rowsort label-5291
SELECT 83 + - 5 * CAST ( + 19 AS INTEGER )
----
-12

query I rowsort
SELECT ALL 65 + - 57
----
8

query I rowsort
SELECT DISTINCT 24 * - 6 AS col0
----
-144

query I rowsort
SELECT 67 * - 72 AS col2
----
-4824

query I rowsort
SELECT ALL 36 + + - 54 col0
----
-18

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5296
SELECT 85, ( + 88 ) + 77 * + COALESCE ( - 74, - 53 - 3 DIV + COALESCE ( 99, 67 * + MIN( 91 ) * - NULLIF ( + 42, - + 66 * + 59 ) * + 78 + 62 ) * COUNT( * ) ) * 49 col2
----
85
-279114

skipif mysql # not compatible
query II rowsort label-5296
SELECT 85, ( + 88 ) + 77 * + COALESCE ( - 74, - 53 - 3 / + COALESCE ( 99, 67 * + MIN ( 91 ) * - NULLIF ( + 42, - + 66 * + 59 ) * + 78 + 62 ) * COUNT ( * ) ) * 49 col2
----
85
-279114

onlyif mysql # aggregate syntax: 
query I rowsort label-5297
SELECT ALL + 21 + - MIN( DISTINCT - + 37 ) AS col2
----
58

skipif mysql # not compatible
query I rowsort label-5297
SELECT ALL + 21 + - MIN ( DISTINCT - + 37 ) AS col2
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-5298
SELECT ALL 30 + - 93 * + COUNT( ALL - 47 )
----
-63

skipif mysql # not compatible
query I rowsort label-5298
SELECT ALL 30 + - 93 * + COUNT ( ALL - 47 )
----
-63

query II rowsort
SELECT - ( - 12 ) - 57 AS col2, - 6 AS col2
----
-45
-6

query I rowsort
SELECT - 69 * - 87
----
6003

query II rowsort
SELECT + 48 AS col0, 24
----
48
24

query I rowsort
SELECT + 78 + 51 - + 31
----
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5303
SELECT ALL - + 38 + - 50 - + + CASE + 50 WHEN + 84 + - + 98 * + 96 + + 37 * + 74 * - + 20 THEN - + CAST( - 20 AS SIGNED ) + + COALESCE ( - 59, + COUNT( * ) - + 48 ) ELSE 20 END AS col1
----
-108

skipif mysql # not compatible
query I rowsort label-5303
SELECT ALL - + 38 + - 50 - + + CASE + 50 WHEN + 84 + - + 98 * + 96 + + 37 * + 74 * - + 20 THEN - + CAST ( - 20 AS INTEGER ) + + COALESCE ( - 59, + COUNT ( * ) - + 48 ) ELSE 20 END AS col1
----
-108

query I rowsort
SELECT + + NULLIF ( + 87, - 76 )
----
87

query II rowsort
SELECT ALL - 56 AS col0, + 75 AS col1
----
-56
75

onlyif mysql # DIV for integer division: 
query I rowsort label-5306
SELECT ALL 96 DIV 5 + + + 2
----
21

skipif mysql # not compatible
query I rowsort label-5306
SELECT ALL 96 / 5 + + + 2
----
21

onlyif mysql # aggregate syntax: 
query II rowsort label-5307
SELECT + COUNT( * ) - + + ( 73 ) AS col2, + 63
----
-72
63

skipif mysql # not compatible
query II rowsort label-5307
SELECT + COUNT ( * ) - + + ( 73 ) AS col2, + 63
----
-72
63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5308
SELECT - + CAST( 78 AS SIGNED ) AS col0
----
-78

skipif mysql # not compatible
query I rowsort label-5308
SELECT - + CAST ( 78 AS INTEGER ) AS col0
----
-78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5309
SELECT DISTINCT COUNT( * ) - + NULLIF ( - - CAST( NULL AS SIGNED ), - 43 * 33 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5309
SELECT DISTINCT COUNT ( * ) - + NULLIF ( - - CAST ( NULL AS INTEGER ), - 43 * 33 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5310
SELECT ALL ( + ( COUNT( * ) ) ) col0
----
1

skipif mysql # not compatible
query I rowsort label-5310
SELECT ALL ( + ( COUNT ( * ) ) ) col0
----
1

query II rowsort
SELECT + 62 + - 71 * - 67 AS col0, 69 + + 93 AS col1
----
4819
162

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5312
SELECT + 2 DIV + + 34 DIV + - COUNT( DISTINCT - 11 )
----
0

skipif mysql # not compatible
query I rowsort label-5312
SELECT + 2 / + + 34 / + - COUNT ( DISTINCT - 11 )
----
0

query II rowsort
SELECT - 82 AS col1, 96 col1
----
-82
96

query I rowsort
SELECT 84 + - + 75 + - 50 AS col1
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-5315
SELECT 32 * - COUNT( * ) AS col0
----
-32

skipif mysql # not compatible
query I rowsort label-5315
SELECT 32 * - COUNT ( * ) AS col0
----
-32

query I rowsort
SELECT DISTINCT 91 * - + 71 AS col1
----
-6461

onlyif mysql # DIV for integer division: 
query I rowsort label-5317
SELECT ALL - 24 DIV + - 56 * - - 57 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5317
SELECT ALL - 24 / + - 56 * - - 57 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5318
SELECT 58 * + COUNT( * )
----
58

skipif mysql # not compatible
query I rowsort label-5318
SELECT 58 * + COUNT ( * )
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-5319
SELECT 29 + COUNT( * ) AS col1
----
30

skipif mysql # not compatible
query I rowsort label-5319
SELECT 29 + COUNT ( * ) AS col1
----
30

query I rowsort
SELECT DISTINCT - 6 * 72
----
-432

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5321
SELECT 38 + - 33 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5321
SELECT 38 + - 33 + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5322
SELECT 48 + - 8 * - - COUNT( * ) - + - 71 * + - 41 / CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5322
SELECT 48 + - 8 * - - COUNT ( * ) - + - 71 * + - 41 / CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT - 35 + + 9
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-5324
SELECT ALL - 17 + + COUNT( * ) + + 29 AS col2
----
13

skipif mysql # not compatible
query I rowsort label-5324
SELECT ALL - 17 + + COUNT ( * ) + + 29 AS col2
----
13

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5325
SELECT DISTINCT 89 DIV + COUNT( * ) AS col1
----
89

skipif mysql # not compatible
query I rowsort label-5325
SELECT DISTINCT 89 / + COUNT ( * ) AS col1
----
89

query I rowsort
SELECT + 22 * - 19 + - 6 AS col0
----
-424

query I rowsort
SELECT - COALESCE ( 48, 43 + + + ( - 46 ) * 27 ) * - - 21
----
-1008

onlyif mysql # aggregate syntax: 
query II rowsort label-5328
SELECT ALL 0 + + + MAX( + + ( + 92 ) ), + ( + COUNT( * ) ) * - 70 * + COUNT( * ) col2
----
92
-70

skipif mysql # not compatible
query II rowsort label-5328
SELECT ALL 0 + + + MAX ( + + ( + 92 ) ), + ( + COUNT ( * ) ) * - 70 * + COUNT ( * ) col2
----
92
-70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5329
SELECT COUNT( * ) * - 51 / - 75 / - - COALESCE ( + 30, + 97 * 73 - 77 ) * + SUM( DISTINCT CAST( NULL AS SIGNED ) ) + - + 1 * 64 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5329
SELECT COUNT ( * ) * - 51 / - 75 / - - COALESCE ( + 30, + 97 * 73 - 77 ) * + SUM ( DISTINCT CAST ( NULL AS INTEGER ) ) + - + 1 * 64 AS col0
----
NULL

query I rowsort
SELECT - 83 + + 8 AS col1
----
-75

query I rowsort
SELECT - 94 * 35 + 36 + - 44 AS col2
----
-3298

onlyif mysql # aggregate syntax: 
query I rowsort label-5332
SELECT DISTINCT CASE + + COUNT( * ) WHEN - - 13 THEN NULL WHEN 75 * 61 * + - 34 THEN - 24 * ( 65 ) + - 80 + - 81 + + - ( - 57 ) / + 70 * - 58 WHEN + - COALESCE ( + + 54, - 65 + NULLIF ( COUNT( * ), 88 + 6 ) + + COUNT( * ), + 72, 10 ) / 23 THEN - 40 ELSE NULL END - 6 * MAX( ALL + 80 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5332
SELECT DISTINCT CASE + + COUNT ( * ) WHEN - - 13 THEN NULL WHEN 75 * 61 * + - 34 THEN - 24 * ( 65 ) + - 80 + - 81 + + - ( - 57 ) / + 70 * - 58 WHEN + - COALESCE ( + + 54, - 65 + NULLIF ( COUNT ( * ), 88 + 6 ) + + COUNT ( * ), + 72, 10 ) / 23 THEN - 40 ELSE NULL END - 6 * MAX ( ALL + 80 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5333
SELECT - - 7 * 11 * + 19 + + 49 - - 81 * + COUNT( * ) * + ( - 95 ) * - COUNT( * ) + - 50
----
9157

skipif mysql # not compatible
query I rowsort label-5333
SELECT - - 7 * 11 * + 19 + + 49 - - 81 * + COUNT ( * ) * + ( - 95 ) * - COUNT ( * ) + - 50
----
9157

query I rowsort
SELECT ALL 3 - - + 42 + + 84
----
129

query I rowsort
SELECT DISTINCT - ( 24 )
----
-24

query I rowsort
SELECT ALL - - COALESCE ( 82, + - 21 )
----
82

query I rowsort
SELECT + 8 + - 26 + ( 8 ) + + 76 * 92
----
6982

onlyif mysql # aggregate syntax: 
query I rowsort label-5338
SELECT ALL + CASE COUNT( * ) WHEN - - 4 * + 62 THEN + 54 WHEN 28 + + - 60 THEN + COUNT( * ) + + 23 END * - 4 + - + 26
----
NULL

skipif mysql # not compatible
query I rowsort label-5338
SELECT ALL + CASE COUNT ( * ) WHEN - - 4 * + 62 THEN + 54 WHEN 28 + + - 60 THEN + COUNT ( * ) + + 23 END * - 4 + - + 26
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5339
SELECT - MIN( - ( 8 ) ) + + 19
----
27

skipif mysql # not compatible
query I rowsort label-5339
SELECT - MIN ( - ( 8 ) ) + + 19
----
27

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5340
SELECT DISTINCT ( COUNT( * ) ) DIV + 25 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5340
SELECT DISTINCT ( COUNT ( * ) ) / + 25 AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5341
SELECT - 38 + + + 60 + CAST( - CAST( NULL AS SIGNED ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5341
SELECT - 38 + + + 60 + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5342
SELECT ALL CAST( NULL AS SIGNED ) * 22
----
NULL

skipif mysql # not compatible
query I rowsort label-5342
SELECT ALL CAST ( NULL AS INTEGER ) * 22
----
NULL

query I rowsort
SELECT + 26 * - 15
----
-390

onlyif mysql # aggregate syntax: 
query II rowsort label-5344
SELECT - MIN( - 70 ) * + 62 col1, - 32 AS col2
----
4340
-32

skipif mysql # not compatible
query II rowsort label-5344
SELECT - MIN ( - 70 ) * + 62 col1, - 32 AS col2
----
4340
-32

query I rowsort
SELECT ALL - 20 + + + 47
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-5346
SELECT DISTINCT + 66 + - 71 + 53 + + + 33 + + COUNT( * ) * 86 * - - 55 AS col1
----
4811

skipif mysql # not compatible
query I rowsort label-5346
SELECT DISTINCT + 66 + - 71 + 53 + + + 33 + + COUNT ( * ) * 86 * - - 55 AS col1
----
4811

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5347
SELECT + MAX( + CAST( + + 1 AS SIGNED ) ) - + - 2 + - 63 DIV 66 DIV - + 86 - - 31 AS col2
----
34

skipif mysql # not compatible
query I rowsort label-5347
SELECT + MAX ( + CAST ( + + 1 AS INTEGER ) ) - + - 2 + - 63 / 66 / - + 86 - - 31 AS col2
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-5348
SELECT ALL CASE 79 WHEN 71 THEN - - 85 / + CASE - ( + SUM( ALL - + 29 ) ) WHEN + 69 THEN NULL WHEN - - COUNT( * ) THEN NULL WHEN + 41 THEN + 32 - - + COUNT( * ) ELSE NULL END * 29 - + - 15 * + 98 END + - 13 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5348
SELECT ALL CASE 79 WHEN 71 THEN - - 85 / + CASE - ( + SUM ( ALL - + 29 ) ) WHEN + 69 THEN NULL WHEN - - COUNT ( * ) THEN NULL WHEN + 41 THEN + 32 - - + COUNT ( * ) ELSE NULL END * 29 - + - 15 * + 98 END + - 13 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5349
SELECT DISTINCT CASE COUNT( * ) WHEN - - 0 THEN + + COUNT( * ) * + AVG ( + 94 ) * - - COUNT( * ) - 81 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5349
SELECT DISTINCT CASE COUNT ( * ) WHEN - - 0 THEN + + COUNT ( * ) * + AVG ( + 94 ) * - - COUNT ( * ) - 81 END AS col0
----
NULL

query I rowsort
SELECT ALL - 21 + - - 0
----
-21

onlyif mysql # DIV for integer division: 
query I rowsort label-5351
SELECT DISTINCT + 76 DIV + - 70
----
-1

skipif mysql # not compatible
query I rowsort label-5351
SELECT DISTINCT + 76 / + - 70
----
-1

query I rowsort
SELECT ( - + 22 ) col1
----
-22

query II rowsort
SELECT + 94 * + NULLIF ( + 26, - COALESCE ( - ( - 91 ), 2 ) / 47 ) AS col0, 86
----
2444
86

query II rowsort
SELECT + + 73 AS col1, NULLIF ( + 73, 38 )
----
73
73

query I rowsort
SELECT + - 54 + 60 * 58 * - 45 AS col2
----
-156654

query I rowsort
SELECT ALL + 32 * + 6 - - 61 AS col0
----
253

onlyif mysql # aggregate syntax: 
query I rowsort label-5357
SELECT ALL + + COUNT( DISTINCT 12 ) * 27 + + COALESCE ( + 62, - + 56 * + 0 + 0 ) + + + 7 AS col1
----
96

skipif mysql # not compatible
query I rowsort label-5357
SELECT ALL + + COUNT ( DISTINCT 12 ) * 27 + + COALESCE ( + 62, - + 56 * + 0 + 0 ) + + + 7 AS col1
----
96

query I rowsort
SELECT DISTINCT + 46 * + 63 * 95 - 98 - 3 * + 43 + 34 AS col2
----
275117

onlyif mysql # aggregate syntax: 
query II rowsort label-5359
SELECT DISTINCT + COUNT( * ) AS col1, - 72 * 44 AS col1
----
1
-3168

skipif mysql # not compatible
query II rowsort label-5359
SELECT DISTINCT + COUNT ( * ) AS col1, - 72 * 44 AS col1
----
1
-3168

onlyif mysql # aggregate syntax: 
query I rowsort label-5360
SELECT ALL + - COUNT( ALL - 14 )
----
-1

skipif mysql # not compatible
query I rowsort label-5360
SELECT ALL + - COUNT ( ALL - 14 )
----
-1

query I rowsort
SELECT ALL 57 * + 69 AS col1
----
3933

onlyif mysql # aggregate syntax: 
query I rowsort label-5362
SELECT + - 2 * + COUNT( * )
----
-2

skipif mysql # not compatible
query I rowsort label-5362
SELECT + - 2 * + COUNT ( * )
----
-2

query I rowsort
SELECT - ( + 41 ) - + 49
----
-90

onlyif mysql # DIV for integer division: 
query I rowsort label-5364
SELECT ALL 14 DIV + - 16 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5364
SELECT ALL 14 / + - 16 AS col0
----
0

query I rowsort
SELECT - - 58 + 82
----
140

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5366
SELECT - + CAST( NULL AS SIGNED ) * 42 + + 25 - + 56 + - + CAST( + CAST( - - 23 AS SIGNED ) AS SIGNED ) + - COUNT( * ) - - COUNT( * ) + - 92 * COALESCE ( - - COUNT( * ), 27 ) * 49 + 10 + + 38 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5366
SELECT - + CAST ( NULL AS INTEGER ) * 42 + + 25 - + 56 + - + CAST ( + CAST ( - - 23 AS INTEGER ) AS INTEGER ) + - COUNT ( * ) - - COUNT ( * ) + - 92 * COALESCE ( - - COUNT ( * ), 27 ) * 49 + 10 + + 38 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5367
SELECT ALL - 72 * - 45 * + 51 - - SUM( ALL - 52 )
----
165188

skipif mysql # not compatible
query I rowsort label-5367
SELECT ALL - 72 * - 45 * + 51 - - SUM ( ALL - 52 )
----
165188

query I rowsort
SELECT ALL + - 76 col2
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-5369
SELECT DISTINCT + COUNT( - 29 )
----
1

skipif mysql # not compatible
query I rowsort label-5369
SELECT DISTINCT + COUNT ( - 29 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5370
SELECT ALL + - COUNT( ALL + + 95 )
----
-1

skipif mysql # not compatible
query I rowsort label-5370
SELECT ALL + - COUNT ( ALL + + 95 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5371
SELECT ALL 3 * - 70 + - COUNT( + - ( - 23 ) ) AS col2
----
-211

skipif mysql # not compatible
query I rowsort label-5371
SELECT ALL 3 * - 70 + - COUNT ( + - ( - 23 ) ) AS col2
----
-211

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5372
SELECT + 42 * + 38 * - CAST( + ( 49 ) AS SIGNED ) * ( 87 ) + - 59 AS col0
----
-6803807

skipif mysql # not compatible
query I rowsort label-5372
SELECT + 42 * + 38 * - CAST ( + ( 49 ) AS INTEGER ) * ( 87 ) + - 59 AS col0
----
-6803807

query I rowsort
SELECT + 97 + - + 81
----
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5374
SELECT DISTINCT CAST( - - COUNT( DISTINCT + 65 ) AS SIGNED ) * 36 + - + 75 + SUM( ALL NULLIF ( ( - 17 ), + 18 * + + 54 ) ) * + 38 + + 29 + - - 53 - - - 98 + - + 84 DIV - + ( - 50 ) AS col1
----
-702

skipif mysql # not compatible
query I rowsort label-5374
SELECT DISTINCT CAST ( - - COUNT ( DISTINCT + 65 ) AS INTEGER ) * 36 + - + 75 + SUM ( ALL NULLIF ( ( - 17 ), + 18 * + + 54 ) ) * + 38 + + 29 + - - 53 - - - 98 + - + 84 / - + ( - 50 ) AS col1
----
-702

onlyif mysql # aggregate syntax: 
query I rowsort label-5375
SELECT ALL COUNT( * ) + 25 * - 85 + - 33 + - + 83 AS col1
----
-2240

skipif mysql # not compatible
query I rowsort label-5375
SELECT ALL COUNT ( * ) + 25 * - 85 + - 33 + - + 83 AS col1
----
-2240

query I rowsort
SELECT + 61 + - 16 * 13 AS col0
----
-147

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5377
SELECT - 44 AS col0, - CAST( NULL AS SIGNED ) + - + ( - 24 ) AS col1
----
-44
NULL

skipif mysql # not compatible
query II rowsort label-5377
SELECT - 44 AS col0, - CAST ( NULL AS INTEGER ) + - + ( - 24 ) AS col1
----
-44
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5378
SELECT - CAST( NULL AS DECIMAL ) - - NULLIF ( + 39, + - NULLIF ( + - 74, 51 / - ( + 80 ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5378
SELECT - CAST ( NULL AS REAL ) - - NULLIF ( + 39, + - NULLIF ( + - 74, 51 / - ( + 80 ) ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5379
SELECT - CAST( 17 AS SIGNED )
----
-17

skipif mysql # not compatible
query I rowsort label-5379
SELECT - CAST ( 17 AS INTEGER )
----
-17

query I rowsort
SELECT ALL + 89 + 18
----
107

query I rowsort
SELECT DISTINCT 54 + - + 28
----
26

onlyif mysql # DIV for integer division: 
query I rowsort label-5382
SELECT ALL 13 DIV - 80 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5382
SELECT ALL 13 / - 80 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5383
SELECT - 25 DIV - 15
----
1

skipif mysql # not compatible
query I rowsort label-5383
SELECT - 25 / - 15
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-5384
SELECT DISTINCT ( COALESCE ( MAX( + 3 ), COUNT( * ) * + 25 ) ), 69 AS col1
----
3
69

skipif mysql # not compatible
query II rowsort label-5384
SELECT DISTINCT ( COALESCE ( MAX ( + 3 ), COUNT ( * ) * + 25 ) ), 69 AS col1
----
3
69

query I rowsort
SELECT - ( - 23 ) AS col1
----
23

query II rowsort
SELECT 9 AS col0, 16
----
9
16

query I rowsort
SELECT ALL 7 + - - 78 * - - 95 + - 61
----
7356

onlyif mysql # aggregate syntax: 
query I rowsort label-5388
SELECT + COUNT( * ) + 97 + 24 * - 54
----
-1198

skipif mysql # not compatible
query I rowsort label-5388
SELECT + COUNT ( * ) + 97 + 24 * - 54
----
-1198

query I rowsort
SELECT + 71 * - 55 AS col1
----
-3905

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5390
SELECT - 94 - 73 * - CAST( NULL AS DECIMAL ) / + 10 + - + 39 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5390
SELECT - 94 - 73 * - CAST ( NULL AS REAL ) / + 10 + - + 39 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5391
SELECT DISTINCT NULLIF ( + 60, + COUNT( * ) / + 78 - 74 * - 12 + + 15 ) AS col1
----
60

skipif mysql # not compatible
query I rowsort label-5391
SELECT DISTINCT NULLIF ( + 60, + COUNT ( * ) / + 78 - 74 * - 12 + + 15 ) AS col1
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-5392
SELECT + ( + - ( - + MAX( ALL 78 ) ) ) + + + 34
----
112

skipif mysql # not compatible
query I rowsort label-5392
SELECT + ( + - ( - + MAX ( ALL 78 ) ) ) + + + 34
----
112

onlyif mysql # aggregate syntax: 
query II rowsort label-5393
SELECT - ( + - COUNT( * ) ) * - ( + 38 ) AS col1, - COUNT( - - 39 )
----
-38
-1

skipif mysql # not compatible
query II rowsort label-5393
SELECT - ( + - COUNT ( * ) ) * - ( + 38 ) AS col1, - COUNT ( - - 39 )
----
-38
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5394
SELECT ( + - 82 ) * + 8 + + - ( ( COUNT( * ) ) ) AS col2
----
-657

skipif mysql # not compatible
query I rowsort label-5394
SELECT ( + - 82 ) * + 8 + + - ( ( COUNT ( * ) ) ) AS col2
----
-657

onlyif mysql # aggregate syntax: 
query II rowsort label-5395
SELECT ALL + 24 AS col0, 61 + + - COUNT( * )
----
24
60

skipif mysql # not compatible
query II rowsort label-5395
SELECT ALL + 24 AS col0, 61 + + - COUNT ( * )
----
24
60

query I rowsort
SELECT ALL + 68 * 64
----
4352

onlyif mysql # aggregate syntax: 
query I rowsort label-5397
SELECT - COUNT( DISTINCT - - 90 ) * + COUNT( * ) * - 33 - - 96 + - 28 * - MIN( DISTINCT 50 ) + - 85
----
1444

skipif mysql # not compatible
query I rowsort label-5397
SELECT - COUNT ( DISTINCT - - 90 ) * + COUNT ( * ) * - 33 - - 96 + - 28 * - MIN ( DISTINCT 50 ) + - 85
----
1444

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5398
SELECT + - CAST( - 54 AS SIGNED )
----
54

skipif mysql # not compatible
query I rowsort label-5398
SELECT + - CAST ( - 54 AS INTEGER )
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-5399
SELECT - - COUNT( * ) * + 17
----
17

skipif mysql # not compatible
query I rowsort label-5399
SELECT - - COUNT ( * ) * + 17
----
17

query I rowsort
SELECT + 47 * COALESCE ( + 77, + - 27 ) + ( NULLIF ( + 98, 65 / - 11 * - 13 - + - 61 ) ) col0
----
3717

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5401
SELECT 94 col1, CAST( - ( - 22 ) AS SIGNED ) AS col0
----
94
22

skipif mysql # not compatible
query II rowsort label-5401
SELECT 94 col1, CAST ( - ( - 22 ) AS INTEGER ) AS col0
----
94
22

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5402
SELECT ALL + 32 + 36 * + 98 DIV 1 * 83 DIV + - COUNT( * )
----
-292792

skipif mysql # not compatible
query I rowsort label-5402
SELECT ALL + 32 + 36 * + 98 / 1 * 83 / + - COUNT ( * )
----
-292792

onlyif mysql # aggregate syntax: 
query I rowsort label-5403
SELECT ALL + COUNT( * ) * 3
----
3

skipif mysql # not compatible
query I rowsort label-5403
SELECT ALL + COUNT ( * ) * 3
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-5404
SELECT DISTINCT + 82 + - 80 DIV + 54 AS col1
----
81

skipif mysql # not compatible
query I rowsort label-5404
SELECT DISTINCT + 82 + - 80 / + 54 AS col1
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-5405
SELECT DISTINCT - COUNT( * ) + - CASE - ( + + 13 ) WHEN - 68 * - 80 THEN 7 + - COUNT( * ) END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5405
SELECT DISTINCT - COUNT ( * ) + - CASE - ( + + 13 ) WHEN - 68 * - 80 THEN 7 + - COUNT ( * ) END col2
----
NULL

query I rowsort
SELECT + 40 * - - 11 - + + ( - 48 )
----
488

query I rowsort
SELECT ALL + + 35 + 68 AS col1
----
103

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5408
SELECT 32 * - + CASE - COUNT( * ) WHEN + + 39 THEN - - 67 WHEN - 97 * + 31 * - + ( - 85 ) THEN 81 ELSE 86 * CAST( NULL AS DECIMAL ) - 98 * - 17 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5408
SELECT 32 * - + CASE - COUNT ( * ) WHEN + + 39 THEN - - 67 WHEN - 97 * + 31 * - + ( - 85 ) THEN 81 ELSE 86 * CAST ( NULL AS REAL ) - 98 * - 17 END
----
NULL

query I rowsort
SELECT 38 + CASE 49 WHEN + 99 THEN - NULLIF ( - 20, + + 27 ) ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT 14 + + 63
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-5411
SELECT ( + 60 ) * - + 17 + - 4 * COUNT( * ) AS col1
----
-1024

skipif mysql # not compatible
query I rowsort label-5411
SELECT ( + 60 ) * - + 17 + - 4 * COUNT ( * ) AS col1
----
-1024

onlyif mysql # aggregate syntax: 
query I rowsort label-5412
SELECT COUNT( - + 12 ) * 92 + - 15 AS col2
----
77

skipif mysql # not compatible
query I rowsort label-5412
SELECT COUNT ( - + 12 ) * 92 + - 15 AS col2
----
77

query I rowsort
SELECT DISTINCT 8 * + 18 * 73 AS col0
----
10512

onlyif mysql # aggregate syntax: 
query I rowsort label-5414
SELECT ALL + 94 * + MAX( 50 ) AS col0
----
4700

skipif mysql # not compatible
query I rowsort label-5414
SELECT ALL + 94 * + MAX ( 50 ) AS col0
----
4700

query II rowsort
SELECT 92 + - - 26 col1, + ( + + 4 )
----
118
4

query I rowsort
SELECT ( 81 ) + 12 * - - 80 AS col0
----
1041

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5417
SELECT 11 * + 35, - ( + CASE + + CASE + 69 WHEN + COUNT( * ) THEN NULL ELSE + ( - - 79 ) END WHEN + COUNT( + 34 ) * 28 + + + 86 + 9 THEN - + CAST( 19 AS SIGNED ) ELSE NULL END ) AS col1
----
385
NULL

skipif mysql # not compatible
query II rowsort label-5417
SELECT 11 * + 35, - ( + CASE + + CASE + 69 WHEN + COUNT ( * ) THEN NULL ELSE + ( - - 79 ) END WHEN + COUNT ( + 34 ) * 28 + + + 86 + 9 THEN - + CAST ( 19 AS INTEGER ) ELSE NULL END ) AS col1
----
385
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5418
SELECT 18 + - COUNT( * ) * - - 77 AS col0
----
-59

skipif mysql # not compatible
query I rowsort label-5418
SELECT 18 + - COUNT ( * ) * - - 77 AS col0
----
-59

query I rowsort
SELECT 1 * + 15
----
15

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5420
SELECT ALL 33 / - CASE + 65 WHEN - COUNT( - 10 ) THEN NULL WHEN - + COALESCE ( + + COALESCE ( - 19, - + AVG ( ALL + ( + 56 ) ) ), 59 - ( + 64 ) ) - + - COUNT( * ) * + 87 * + 97 + - + 48 THEN - + 64 + - - CAST( - COUNT( * ) AS DECIMAL ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-5420
SELECT ALL 33 / - CASE + 65 WHEN - COUNT ( - 10 ) THEN NULL WHEN - + COALESCE ( + + COALESCE ( - 19, - + AVG ( ALL + ( + 56 ) ) ), 59 - ( + 64 ) ) - + - COUNT ( * ) * + 87 * + 97 + - + 48 THEN - + 64 + - - CAST ( - COUNT ( * ) AS REAL ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5421
SELECT DISTINCT - - 67 * 58 + - COUNT( * ) AS col0
----
3885

skipif mysql # not compatible
query I rowsort label-5421
SELECT DISTINCT - - 67 * 58 + - COUNT ( * ) AS col0
----
3885

query I rowsort
SELECT DISTINCT 51 * 19 AS col2
----
969

query I rowsort
SELECT ALL NULLIF ( 8, - - ( - 94 ) )
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-5424
SELECT CASE + - 86 WHEN - 17 THEN + COUNT( * ) + - 95 - - + SUM( + 34 ) ELSE NULL END * + 13 + - + 59 * + - 77 + 10 / + ( + 86 ) + - - 40 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5424
SELECT CASE + - 86 WHEN - 17 THEN + COUNT ( * ) + - 95 - - + SUM ( + 34 ) ELSE NULL END * + 13 + - + 59 * + - 77 + 10 / + ( + 86 ) + - - 40 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5425
SELECT - 39 - - CASE COUNT( * ) WHEN + - 56 THEN + 22 ELSE NULL END / 62
----
NULL

skipif mysql # not compatible
query I rowsort label-5425
SELECT - 39 - - CASE COUNT ( * ) WHEN + - 56 THEN + 22 ELSE NULL END / 62
----
NULL

query I rowsort
SELECT + 13 * 70 * + 56
----
50960

onlyif mysql # aggregate syntax: 
query II rowsort label-5427
SELECT COALESCE ( + 35, - 49 * - ( - 30 ) ) col0, 27 * + + COUNT( * ) AS col1
----
35
27

skipif mysql # not compatible
query II rowsort label-5427
SELECT COALESCE ( + 35, - 49 * - ( - 30 ) ) col0, 27 * + + COUNT ( * ) AS col1
----
35
27

query II rowsort
SELECT DISTINCT - 78 * 24, 54 AS col1
----
-1872
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5429
SELECT ALL - - 12 + - ( 79 ) * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5429
SELECT ALL - - 12 + - ( 79 ) * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5430
SELECT + COUNT( DISTINCT + ( 17 ) )
----
1

skipif mysql # not compatible
query I rowsort label-5430
SELECT + COUNT ( DISTINCT + ( 17 ) )
----
1

onlyif mysql # DIV for integer division: 
query II rowsort label-5431
SELECT ALL - ( - 18 ) AS col0, + 42 * - + ( COALESCE ( 10, CASE + 20 WHEN - 27 - + 6 * + - COALESCE ( + - ( + 47 ), 22 * + - 7 ) + 9 THEN + 51 + - + 68 ELSE - - 76 * 97 END * + 54 DIV - 19 + 97, + 42 * + 83 ) ) AS col2
----
18
-420

skipif mysql # not compatible
query II rowsort label-5431
SELECT ALL - ( - 18 ) AS col0, + 42 * - + ( COALESCE ( 10, CASE + 20 WHEN - 27 - + 6 * + - COALESCE ( + - ( + 47 ), 22 * + - 7 ) + 9 THEN + 51 + - + 68 ELSE - - 76 * 97 END * + 54 / - 19 + 97, + 42 * + 83 ) ) AS col2
----
18
-420

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5432
SELECT ALL 62 + + CASE - + CAST( NULL AS SIGNED ) WHEN NULLIF ( - 3, - 87 * - 69 + COUNT( * ) / + 41 + + COUNT( * ) ) * + - 19 * - 56 THEN 0 + 43 - + - MAX( ALL 89 ) + + + 47 * 82 * + - COUNT( * ) / - CASE - + CAST( NULL AS SIGNED ) WHEN + 5 THEN NULL ELSE + 59 END - + 51 END + 2
----
NULL

skipif mysql # not compatible
query I rowsort label-5432
SELECT ALL 62 + + CASE - + CAST ( NULL AS INTEGER ) WHEN NULLIF ( - 3, - 87 * - 69 + COUNT ( * ) / + 41 + + COUNT ( * ) ) * + - 19 * - 56 THEN 0 + 43 - + - MAX ( ALL 89 ) + + + 47 * 82 * + - COUNT ( * ) / - CASE - + CAST ( NULL AS INTEGER ) WHEN + 5 THEN NULL ELSE + 59 END - + 51 END + 2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5433
SELECT ALL - - CAST( NULL AS SIGNED ) + + - 49 / - 94
----
NULL

skipif mysql # not compatible
query I rowsort label-5433
SELECT ALL - - CAST ( NULL AS INTEGER ) + + - 49 / - 94
----
NULL

query II rowsort
SELECT + ( 95 ), 37 AS col1
----
95
37

onlyif mysql # aggregate syntax: 
query I rowsort label-5435
SELECT ALL + ( + 55 ) + ( COUNT( ALL - 34 ) ) * + 24
----
79

skipif mysql # not compatible
query I rowsort label-5435
SELECT ALL + ( + 55 ) + ( COUNT ( ALL - 34 ) ) * + 24
----
79

query I rowsort
SELECT - 68 + - - ( + - 7 ) AS col1
----
-75

query I rowsort
SELECT 42 + 56 AS col0
----
98

query I rowsort
SELECT 77 * + 23 * + 71 AS col2
----
125741

onlyif mysql # aggregate syntax: 
query I rowsort label-5439
SELECT ALL - 61 * ( + COUNT( * ) ) AS col0
----
-61

skipif mysql # not compatible
query I rowsort label-5439
SELECT ALL - 61 * ( + COUNT ( * ) ) AS col0
----
-61

query II rowsort
SELECT 10, 58 AS col0
----
10
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5441
SELECT + 14 * - + CASE + CASE CAST( NULL AS SIGNED ) WHEN - - 23 THEN + + 58 - + 36 / ( - 9 ) / + COUNT( * ) WHEN COUNT( * ) + - + COUNT( * ) * 44 * - 61 THEN NULL ELSE 19 + + 4 * + 79 END WHEN - 38 * - + COUNT( - - 19 ) THEN NULL WHEN - - COUNT( * ) THEN 72 * - COUNT( * ) END * + 43 + 91 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5441
SELECT + 14 * - + CASE + CASE CAST ( NULL AS INTEGER ) WHEN - - 23 THEN + + 58 - + 36 / ( - 9 ) / + COUNT ( * ) WHEN COUNT ( * ) + - + COUNT ( * ) * 44 * - 61 THEN NULL ELSE 19 + + 4 * + 79 END WHEN - 38 * - + COUNT ( - - 19 ) THEN NULL WHEN - - COUNT ( * ) THEN 72 * - COUNT ( * ) END * + 43 + 91 AS col0
----
NULL

query I rowsort
SELECT DISTINCT - 80 * + - 20
----
1600

query I rowsort
SELECT ALL + 89 + + 59
----
148

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5444
SELECT ALL - 34 + 0 + 0 * - - ( - - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5444
SELECT ALL - 34 + 0 + 0 * - - ( - - CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT 67 * 0 AS col0
----
0

query I rowsort
SELECT ALL - 62 * - 84
----
5208

query I rowsort
SELECT DISTINCT - ( 74 ) AS col0
----
-74

query I rowsort
SELECT 92 * - 55 AS col1
----
-5060

query I rowsort
SELECT 63 - 30 - + 57 * - 41 + 35 AS col2
----
2405

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5450
SELECT COUNT( * ) / - + CAST( NULL AS SIGNED ) / - + 26 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5450
SELECT COUNT ( * ) / - + CAST ( NULL AS INTEGER ) / - + 26 AS col2
----
NULL

query I rowsort
SELECT ALL + 99 * - 15
----
-1485

query I rowsort
SELECT ALL 53 * - 57 AS col2
----
-3021

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5453
SELECT 98 - - 72 * + SUM( DISTINCT + CAST( NULL AS SIGNED ) ) * 77 - - 0 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5453
SELECT 98 - - 72 * + SUM ( DISTINCT + CAST ( NULL AS INTEGER ) ) * 77 - - 0 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5454
SELECT ALL MAX( + 6 ) col0
----
6

skipif mysql # not compatible
query I rowsort label-5454
SELECT ALL MAX ( + 6 ) col0
----
6

query II rowsort
SELECT DISTINCT 76 AS col0, - ( 47 ) * + 92 * - 0 AS col2
----
76
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5456
SELECT DISTINCT + MAX( ALL + + ( CAST( 9 AS SIGNED ) ) ) AS col0
----
9

skipif mysql # not compatible
query I rowsort label-5456
SELECT DISTINCT + MAX ( ALL + + ( CAST ( 9 AS INTEGER ) ) ) AS col0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-5457
SELECT ALL - + 48 * 87 * + 7 - - COUNT( * )
----
-29231

skipif mysql # not compatible
query I rowsort label-5457
SELECT ALL - + 48 * 87 * + 7 - - COUNT ( * )
----
-29231

onlyif mysql # aggregate syntax: 
query II rowsort label-5458
SELECT - 9 + + - 77 + - 29 * + - 77 * + COUNT( 30 ) AS col2, 12
----
2147
12

skipif mysql # not compatible
query II rowsort label-5458
SELECT - 9 + + - 77 + - 29 * + - 77 * + COUNT ( 30 ) AS col2, 12
----
2147
12

query I rowsort
SELECT - 36 + + 87
----
51

query I rowsort
SELECT 71 - - - 72 AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5461
SELECT DISTINCT + + NULLIF ( - 49, - COUNT( * ) )
----
-49

skipif mysql # not compatible
query I rowsort label-5461
SELECT DISTINCT + + NULLIF ( - 49, - COUNT ( * ) )
----
-49

query I rowsort
SELECT ALL + + COALESCE ( + 5, + + ( + 98 ) )
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-5463
SELECT DISTINCT + + 13 * - - 76 + - + ( + + COUNT( ALL 98 ) ) - + CASE - COUNT( * ) WHEN + 37 THEN - 19 * - 24 + - 36 + + 18 WHEN - + 41 THEN 58 + - + 28 * - + 97 WHEN 49 THEN + 76 + + 70 ELSE NULL END + - 85 * + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5463
SELECT DISTINCT + + 13 * - - 76 + - + ( + + COUNT ( ALL 98 ) ) - + CASE - COUNT ( * ) WHEN + 37 THEN - 19 * - 24 + - 36 + + 18 WHEN - + 41 THEN 58 + - + 28 * - + 97 WHEN 49 THEN + 76 + + 70 ELSE NULL END + - 85 * + COUNT ( * ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5464
SELECT + - 30 + - - COUNT( * ) * - + ( + 32 )
----
-62

skipif mysql # not compatible
query I rowsort label-5464
SELECT + - 30 + - - COUNT ( * ) * - + ( + 32 )
----
-62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5465
SELECT ALL - - 48 * + + ( - - 44 ) + + NULLIF ( + CASE + COUNT( DISTINCT CAST( - - 12 AS SIGNED ) ) WHEN + 60 THEN 68 + - + 25 * + + 67 * + - ( + + 15 ) END, + 11 - + - 54 + 82 ) - 19
----
NULL

skipif mysql # not compatible
query I rowsort label-5465
SELECT ALL - - 48 * + + ( - - 44 ) + + NULLIF ( + CASE + COUNT ( DISTINCT CAST ( - - 12 AS INTEGER ) ) WHEN + 60 THEN 68 + - + 25 * + + 67 * + - ( + + 15 ) END, + 11 - + - 54 + 82 ) - 19
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5466
SELECT + 39 * + COUNT( * ) + - 6
----
33

skipif mysql # not compatible
query I rowsort label-5466
SELECT + 39 * + COUNT ( * ) + - 6
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-5467
SELECT + SUM( 4 )
----
4

skipif mysql # not compatible
query I rowsort label-5467
SELECT + SUM ( 4 )
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-5468
SELECT DISTINCT - MAX( DISTINCT + 87 ) * ( - 7 ) AS col1
----
609

skipif mysql # not compatible
query I rowsort label-5468
SELECT DISTINCT - MAX ( DISTINCT + 87 ) * ( - 7 ) AS col1
----
609

onlyif mysql # aggregate syntax: 
query I rowsort label-5469
SELECT ALL - ( + - ( - + COUNT( * ) ) ) * + MAX( - 6 ) + - 91
----
-85

skipif mysql # not compatible
query I rowsort label-5469
SELECT ALL - ( + - ( - + COUNT ( * ) ) ) * + MAX ( - 6 ) + - 91
----
-85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5470
SELECT + 66 DIV + COUNT( * )
----
66

skipif mysql # not compatible
query I rowsort label-5470
SELECT + 66 / + COUNT ( * )
----
66

query I rowsort
SELECT + + ( + 6 ) AS col1
----
6

query I rowsort
SELECT ALL - 67 * + ( - - NULLIF ( - 74, 8 + + 73 ) ) * - - 58 + + + 62 + - 65 * - + 15
----
288601

onlyif mysql # aggregate syntax: 
query I rowsort label-5473
SELECT MAX( DISTINCT + - 15 )
----
-15

skipif mysql # not compatible
query I rowsort label-5473
SELECT MAX ( DISTINCT + - 15 )
----
-15

query I rowsort
SELECT ALL 72 * - 25 - + 13 col2
----
-1813

onlyif mysql # aggregate syntax: 
query I rowsort label-5475
SELECT COUNT( ALL 82 )
----
1

skipif mysql # not compatible
query I rowsort label-5475
SELECT COUNT ( ALL 82 )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5476
SELECT ALL - 30 * - CAST( - - 30 AS SIGNED )
----
900

skipif mysql # not compatible
query I rowsort label-5476
SELECT ALL - 30 * - CAST ( - - 30 AS INTEGER )
----
900

query I rowsort
SELECT DISTINCT + ( + + 78 ) AS col2
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-5478
SELECT COUNT( DISTINCT - 34 )
----
1

skipif mysql # not compatible
query I rowsort label-5478
SELECT COUNT ( DISTINCT - 34 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5479
SELECT - 78 * - COUNT( DISTINCT - + 19 ) AS col2
----
78

skipif mysql # not compatible
query I rowsort label-5479
SELECT - 78 * - COUNT ( DISTINCT - + 19 ) AS col2
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-5480
SELECT ALL + COUNT( * ) * + + 85
----
85

skipif mysql # not compatible
query I rowsort label-5480
SELECT ALL + COUNT ( * ) * + + 85
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-5481
SELECT + COUNT( ALL + + 70 ) + 42 - + - 9 * COUNT( * ) AS col0
----
52

skipif mysql # not compatible
query I rowsort label-5481
SELECT + COUNT ( ALL + + 70 ) + 42 - + - 9 * COUNT ( * ) AS col0
----
52

query I rowsort
SELECT DISTINCT + 13 * + 1 AS col1
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-5483
SELECT DISTINCT COALESCE ( COUNT( * ), - - 69 * + + 79 + + - 66 )
----
1

skipif mysql # not compatible
query I rowsort label-5483
SELECT DISTINCT COALESCE ( COUNT ( * ), - - 69 * + + 79 + + - 66 )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5484
SELECT ALL + 68 DIV 97 * - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-5484
SELECT ALL + 68 / 97 * - COUNT ( * )
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5485
SELECT - 12 + 82 col1, MIN( ALL 76 ) AS col1
----
70
76

skipif mysql # not compatible
query II rowsort label-5485
SELECT - 12 + 82 col1, MIN ( ALL 76 ) AS col1
----
70
76

onlyif mysql # aggregate syntax: 
query I rowsort label-5486
SELECT ALL CASE COALESCE ( + 25, - - 47 ) WHEN + 60 + + + 12 / - ( + 86 ) THEN NULL WHEN - - ( - - CASE - + 8 WHEN - 77 THEN NULL ELSE - - 90 - 86 - + + 7 * + 48 END ) + - 67 / - - 77 THEN NULL ELSE + SUM( - 38 ) END
----
-38

skipif mysql # not compatible
query I rowsort label-5486
SELECT ALL CASE COALESCE ( + 25, - - 47 ) WHEN + 60 + + + 12 / - ( + 86 ) THEN NULL WHEN - - ( - - CASE - + 8 WHEN - 77 THEN NULL ELSE - - 90 - 86 - + + 7 * + 48 END ) + - 67 / - - 77 THEN NULL ELSE + SUM ( - 38 ) END
----
-38

onlyif mysql # aggregate syntax: 
query II rowsort label-5487
SELECT ALL COALESCE ( - 8, 79, COUNT( * ) ) AS col0, + 26 AS col0
----
-8
26

skipif mysql # not compatible
query II rowsort label-5487
SELECT ALL COALESCE ( - 8, 79, COUNT ( * ) ) AS col0, + 26 AS col0
----
-8
26

onlyif mysql # aggregate syntax: 
query II rowsort label-5488
SELECT - 82 * - COUNT( * ), + 21 + + + 58 AS col1
----
82
79

skipif mysql # not compatible
query II rowsort label-5488
SELECT - 82 * - COUNT ( * ), + 21 + + + 58 AS col1
----
82
79

onlyif mysql # DIV for integer division: 
query I rowsort label-5489
SELECT - 81 DIV - 21 AS col0
----
3

skipif mysql # not compatible
query I rowsort label-5489
SELECT - 81 / - 21 AS col0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5490
SELECT ALL + 80 + - 50 - + COUNT( * ) AS col0
----
29

skipif mysql # not compatible
query I rowsort label-5490
SELECT ALL + 80 + - 50 - + COUNT ( * ) AS col0
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-5491
SELECT - - 0 * COUNT( * ) * - + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-5491
SELECT - - 0 * COUNT ( * ) * - + COUNT ( * )
----
0

query I rowsort
SELECT ALL + - 41 + 16
----
-25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5493
SELECT DISTINCT + CAST( - SUM( - CAST( NULL AS SIGNED ) ) AS DECIMAL ) * 85 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5493
SELECT DISTINCT + CAST ( - SUM ( - CAST ( NULL AS INTEGER ) ) AS REAL ) * 85 AS col2
----
NULL

query I rowsort
SELECT + + 68 * + 87
----
5916

query I rowsort
SELECT NULLIF ( 99, + + 3 )
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-5496
SELECT + ( - COUNT( * ) ) * + 73
----
-73

skipif mysql # not compatible
query I rowsort label-5496
SELECT + ( - COUNT ( * ) ) * + 73
----
-73

query II rowsort
SELECT DISTINCT + 9 col2, 4 + - + 89
----
9
-85

onlyif mysql # DIV for integer division: 
query I rowsort label-5498
SELECT ALL 14 DIV + 94 col0
----
0

skipif mysql # not compatible
query I rowsort label-5498
SELECT ALL 14 / + 94 col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5499
SELECT + ( 97 ) * - 23 AS col1, - CAST( NULL AS SIGNED )
----
-2231
NULL

skipif mysql # not compatible
query II rowsort label-5499
SELECT + ( 97 ) * - 23 AS col1, - CAST ( NULL AS INTEGER )
----
-2231
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5500
SELECT + COALESCE ( + - 65, 27 - + 93 DIV - 15 )
----
-65

skipif mysql # not compatible
query I rowsort label-5500
SELECT + COALESCE ( + - 65, 27 - + 93 / - 15 )
----
-65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5501
SELECT + CAST( - CAST( + 49 AS SIGNED ) AS SIGNED )
----
-49

skipif mysql # not compatible
query I rowsort label-5501
SELECT + CAST ( - CAST ( + 49 AS INTEGER ) AS INTEGER )
----
-49

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5502
SELECT + ( + + ( + 73 ) ) + + + 21 * - 66 * + + 15 + + - COUNT( 7 ) + + + COALESCE ( + 16, - - MIN( + + 6 ) + + + 59 ) / + + NULLIF ( + 43, - COUNT( * ) + + 49 * - 64 ) * + CAST( + - CASE 72 WHEN - NULLIF ( + - 56, + 82 ) * + - COUNT( * ) / 40 + 22 THEN NULL WHEN - 32 THEN 44 + 56 END AS DECIMAL ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5502
SELECT + ( + + ( + 73 ) ) + + + 21 * - 66 * + + 15 + + - COUNT ( 7 ) + + + COALESCE ( + 16, - - MIN ( + + 6 ) + + + 59 ) / + + NULLIF ( + 43, - COUNT ( * ) + + 49 * - 64 ) * + CAST ( + - CASE 72 WHEN - NULLIF ( + - 56, + 82 ) * + - COUNT ( * ) / 40 + 22 THEN NULL WHEN - 32 THEN 44 + 56 END AS REAL ) col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5503
SELECT + 78 DIV + 36 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-5503
SELECT + 78 / + 36 AS col2
----
2

onlyif mysql # aggregate syntax: 
query II rowsort label-5504
SELECT ALL COUNT( ALL - - 88 ) * + 3 col1, ( - + 88 ) col2
----
3
-88

skipif mysql # not compatible
query II rowsort label-5504
SELECT ALL COUNT ( ALL - - 88 ) * + 3 col1, ( - + 88 ) col2
----
3
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-5505
SELECT + COUNT( * ) + + 40 AS col2
----
41

skipif mysql # not compatible
query I rowsort label-5505
SELECT + COUNT ( * ) + + 40 AS col2
----
41

query I rowsort
SELECT - 54 - 20 * - 69 + + 24 AS col1
----
1350

onlyif mysql # aggregate syntax: 
query I rowsort label-5507
SELECT - NULLIF ( - 21, + 98 * + 17 - - MAX( - + 74 ) + 6 ) * 26 + + 28
----
574

skipif mysql # not compatible
query I rowsort label-5507
SELECT - NULLIF ( - 21, + 98 * + 17 - - MAX ( - + 74 ) + 6 ) * 26 + + 28
----
574

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5508
SELECT ALL + 56, - CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) AS col1
----
56
NULL

skipif mysql # not compatible
query II rowsort label-5508
SELECT ALL + 56, - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) AS col1
----
56
NULL

query I rowsort
SELECT ALL 7 * - 48
----
-336

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5510
SELECT + CAST( + CASE + MIN( - + 36 ) WHEN - + 72 * - - 94 * + + COUNT( * ) THEN 14 WHEN ( + 35 ) THEN NULL END AS SIGNED ) AS col0, + 37
----
NULL
37

skipif mysql # not compatible
query II rowsort label-5510
SELECT + CAST ( + CASE + MIN ( - + 36 ) WHEN - + 72 * - - 94 * + + COUNT ( * ) THEN 14 WHEN ( + 35 ) THEN NULL END AS INTEGER ) AS col0, + 37
----
NULL
37

onlyif mysql # aggregate syntax: 
query I rowsort label-5511
SELECT ALL + MAX( - ( - 74 ) ) AS col1
----
74

skipif mysql # not compatible
query I rowsort label-5511
SELECT ALL + MAX ( - ( - 74 ) ) AS col1
----
74

query I rowsort
SELECT NULLIF ( - + 55, - 81 * 49 )
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-5513
SELECT ALL MIN( ALL - 5 )
----
-5

skipif mysql # not compatible
query I rowsort label-5513
SELECT ALL MIN ( ALL - 5 )
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-5514
SELECT - 88 * + MIN( ALL - + 51 )
----
4488

skipif mysql # not compatible
query I rowsort label-5514
SELECT - 88 * + MIN ( ALL - + 51 )
----
4488

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5515
SELECT ALL + 52 * - + COALESCE ( - 5, + - 94 ) + - NULLIF ( 80, - CAST( - - 19 AS SIGNED ) ) AS col1, + 55 * - 80 AS col2
----
180
-4400

skipif mysql # not compatible
query II rowsort label-5515
SELECT ALL + 52 * - + COALESCE ( - 5, + - 94 ) + - NULLIF ( 80, - CAST ( - - 19 AS INTEGER ) ) AS col1, + 55 * - 80 AS col2
----
180
-4400

onlyif mysql # aggregate syntax: 
query I rowsort label-5516
SELECT MAX( - 50 )
----
-50

skipif mysql # not compatible
query I rowsort label-5516
SELECT MAX ( - 50 )
----
-50

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5517
SELECT ALL + COUNT( * ) * COALESCE ( + 84, + 80 DIV - 49, + 81 ) + - - 31
----
115

skipif mysql # not compatible
query I rowsort label-5517
SELECT ALL + COUNT ( * ) * COALESCE ( + 84, + 80 / - 49, + 81 ) + - - 31
----
115

query I rowsort
SELECT ALL + + 80 + - 63
----
17

query I rowsort
SELECT DISTINCT 97 * 81
----
7857

query I rowsort
SELECT ALL 2 + - + 50
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-5521
SELECT ALL + + ( + 8 ) + + MIN( - 21 ) AS col0
----
-13

skipif mysql # not compatible
query I rowsort label-5521
SELECT ALL + + ( + 8 ) + + MIN ( - 21 ) AS col0
----
-13

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5522
SELECT COALESCE ( NULLIF ( + CAST( NULL AS SIGNED ), - + 55 ), + 40 ) - 90 AS col1, + 46
----
-50
46

skipif mysql # not compatible
query II rowsort label-5522
SELECT COALESCE ( NULLIF ( + CAST ( NULL AS INTEGER ), - + 55 ), + 40 ) - 90 AS col1, + 46
----
-50
46

query I rowsort
SELECT 80 * + 36 AS col2
----
2880

onlyif mysql # aggregate syntax: 
query I rowsort label-5524
SELECT + CASE - 72 WHEN - 72 + + COUNT( * ) + + + 60 + CASE + 95 WHEN 48 - - - NULLIF ( + 32, 6 ) THEN + 6 * + - 57 WHEN - + 70 THEN NULL ELSE + 18 * - - 0 END * - NULLIF ( 85, + COALESCE ( - + COUNT( * ), + - 61 * + 32, - + 95 ) ) * + 51 - - - COUNT( * ) THEN NULL WHEN 51 THEN - 89 + + 58 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5524
SELECT + CASE - 72 WHEN - 72 + + COUNT ( * ) + + + 60 + CASE + 95 WHEN 48 - - - NULLIF ( + 32, 6 ) THEN + 6 * + - 57 WHEN - + 70 THEN NULL ELSE + 18 * - - 0 END * - NULLIF ( 85, + COALESCE ( - + COUNT ( * ), + - 61 * + 32, - + 95 ) ) * + 51 - - - COUNT ( * ) THEN NULL WHEN 51 THEN - 89 + + 58 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5525
SELECT 13 + + COUNT( ALL - - 15 )
----
14

skipif mysql # not compatible
query I rowsort label-5525
SELECT 13 + + COUNT ( ALL - - 15 )
----
14

query I rowsort
SELECT + 91 * + + 48 * + - 87 + - 26 AS col0
----
-380042

onlyif mysql # aggregate syntax: 
query I rowsort label-5527
SELECT - - COUNT( 35 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5527
SELECT - - COUNT ( 35 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5528
SELECT ( + - 23 ) + - + COUNT( * )
----
-24

skipif mysql # not compatible
query I rowsort label-5528
SELECT ( + - 23 ) + - + COUNT ( * )
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-5529
SELECT + 48 + - 9 - - 17 * + MIN( DISTINCT 37 ) col1
----
668

skipif mysql # not compatible
query I rowsort label-5529
SELECT + 48 + - 9 - - 17 * + MIN ( DISTINCT 37 ) col1
----
668

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5530
SELECT ALL - CAST( NULL AS SIGNED ) - 97 + - + 88 + - 79 + 79 + - 91 * + 36 * - 2 + + SUM( ALL CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5530
SELECT ALL - CAST ( NULL AS INTEGER ) - 97 + - + 88 + - 79 + 79 + - 91 * + 36 * - 2 + + SUM ( ALL CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5531
SELECT - 57 DIV 98 * 20, 22 * - CAST( NULL AS SIGNED ) AS col1
----
0
NULL

skipif mysql # not compatible
query II rowsort label-5531
SELECT - 57 / 98 * 20, 22 * - CAST ( NULL AS INTEGER ) AS col1
----
0
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5532
SELECT DISTINCT - + 96 DIV - 42 + + 2 AS col1
----
4

skipif mysql # not compatible
query I rowsort label-5532
SELECT DISTINCT - + 96 / - 42 + + 2 AS col1
----
4

query I rowsort
SELECT DISTINCT - - 71 - + 59 + - - 35 + + - 59
----
-12

query I rowsort
SELECT DISTINCT - 50 * 31
----
-1550

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5535
SELECT - CAST( NULL AS SIGNED ) / + 22 * + - 99 * - 0 + - 83 * 96 * - 30 - - - 24 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5535
SELECT - CAST ( NULL AS INTEGER ) / + 22 * + - 99 * - 0 + - 83 * 96 * - 30 - - - 24 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5536
SELECT DISTINCT + 48 * - ( + + COUNT( * ) )
----
-48

skipif mysql # not compatible
query I rowsort label-5536
SELECT DISTINCT + 48 * - ( + + COUNT ( * ) )
----
-48

query I rowsort
SELECT 57 * - 34
----
-1938

onlyif mysql # aggregate syntax: 
query I rowsort label-5538
SELECT CASE COUNT( * ) WHEN - 77 THEN - 72 WHEN - 95 THEN NULL ELSE 47 END * - - 85 * - 38
----
-151810

skipif mysql # not compatible
query I rowsort label-5538
SELECT CASE COUNT ( * ) WHEN - 77 THEN - 72 WHEN - 95 THEN NULL ELSE 47 END * - - 85 * - 38
----
-151810

onlyif mysql # DIV for integer division: 
query I rowsort label-5539
SELECT DISTINCT + 30 * 39 DIV - 71
----
-16

skipif mysql # not compatible
query I rowsort label-5539
SELECT DISTINCT + 30 * 39 / - 71
----
-16

onlyif mysql # aggregate syntax: 
query II rowsort label-5540
SELECT ALL - COUNT( * ) col2, + 49
----
-1
49

skipif mysql # not compatible
query II rowsort label-5540
SELECT ALL - COUNT ( * ) col2, + 49
----
-1
49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5541
SELECT - 1 * 56 + + CAST( - 81 AS SIGNED ) - + + CASE 83 WHEN - 85 + - + 15 THEN + 78 * - 99 * + 9 / + AVG ( ALL COALESCE ( + 15, + + 97, 97 ) ) WHEN 12 THEN NULL END * - + COUNT( * ) * - ( + 53 ) * - - 85 * - COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5541
SELECT - 1 * 56 + + CAST ( - 81 AS INTEGER ) - + + CASE 83 WHEN - 85 + - + 15 THEN + 78 * - 99 * + 9 / + AVG ( ALL COALESCE ( + 15, + + 97, 97 ) ) WHEN 12 THEN NULL END * - + COUNT ( * ) * - ( + 53 ) * - - 85 * - COUNT ( * ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5542
SELECT SUM( ALL 46 ) * + - ( 25 )
----
-1150

skipif mysql # not compatible
query I rowsort label-5542
SELECT SUM ( ALL 46 ) * + - ( 25 )
----
-1150

query II rowsort
SELECT 50, 97 * - - 23 AS col0
----
50
2231

onlyif mysql # aggregate syntax: 
query II rowsort label-5544
SELECT ALL - COUNT( * ), - COUNT( * )
----
-1
-1

skipif mysql # not compatible
query II rowsort label-5544
SELECT ALL - COUNT ( * ), - COUNT ( * )
----
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5545
SELECT ALL - 13 + + 44 + + COUNT( * ) + 76 AS col0
----
108

skipif mysql # not compatible
query I rowsort label-5545
SELECT ALL - 13 + + 44 + + COUNT ( * ) + 76 AS col0
----
108

query I rowsort
SELECT DISTINCT - COALESCE ( 17, - 38 * + 68 * + 82 + - - 96 )
----
-17

query I rowsort
SELECT DISTINCT - 95 + + 99 AS col1
----
4

query I rowsort
SELECT 21 * - ( - + 40 ) AS col0
----
840

onlyif mysql # aggregate syntax: 
query I rowsort label-5549
SELECT ALL 94 + + MIN( ALL - 23 ) AS col2
----
71

skipif mysql # not compatible
query I rowsort label-5549
SELECT ALL 94 + + MIN ( ALL - 23 ) AS col2
----
71

query I rowsort
SELECT 98 + 6
----
104

query II rowsort
SELECT 88 AS col1, - 32 AS col0
----
88
-32

query I rowsort
SELECT ( + - 5 ) - + - 58
----
53

query I rowsort
SELECT DISTINCT ( 5 ) + + - 36 col2
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-5554
SELECT ALL 72 + 78 + - MAX( ALL - + 93 ) * - 50
----
-4500

skipif mysql # not compatible
query I rowsort label-5554
SELECT ALL 72 + 78 + - MAX ( ALL - + 93 ) * - 50
----
-4500

query II rowsort
SELECT ALL 58 AS col2, + 70 * - 38 * - 7
----
58
18620

query II rowsort
SELECT 31 AS col2, + 60
----
31
60

onlyif mysql # DIV for integer division: 
query I rowsort label-5557
SELECT DISTINCT - 61 * + ( 0 ) DIV + 19
----
0

skipif mysql # not compatible
query I rowsort label-5557
SELECT DISTINCT - 61 * + ( 0 ) / + 19
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5558
SELECT ALL + 86 + + CASE + COALESCE ( 94, - - 2 ) WHEN + - 92 + - - COUNT( * ) + + 18 + 35 * - + ( + COUNT( * ) ) + - 23 - - 30 * + 22 * - 81 / + + 66 / - CAST( + 17 AS SIGNED ) THEN + 83 WHEN + COUNT( * ) THEN + 41 + + - 62 END + + + 86 + MAX( DISTINCT 67 ) + + 7
----
NULL

skipif mysql # not compatible
query I rowsort label-5558
SELECT ALL + 86 + + CASE + COALESCE ( 94, - - 2 ) WHEN + - 92 + - - COUNT ( * ) + + 18 + 35 * - + ( + COUNT ( * ) ) + - 23 - - 30 * + 22 * - 81 / + + 66 / - CAST ( + 17 AS INTEGER ) THEN + 83 WHEN + COUNT ( * ) THEN + 41 + + - 62 END + + + 86 + MAX ( DISTINCT 67 ) + + 7
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5559
SELECT ALL + CASE MAX( DISTINCT - 74 ) WHEN 26 * + 72 * - 32 + - ( + NULLIF ( - + 61, + 29 * - - 61 / 5 / - MAX( + CAST( NULL AS SIGNED ) ) + + 87 - - COUNT( * ) ) ) * - 80 THEN + 92 WHEN + 27 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5559
SELECT ALL + CASE MAX ( DISTINCT - 74 ) WHEN 26 * + 72 * - 32 + - ( + NULLIF ( - + 61, + 29 * - - 61 / 5 / - MAX ( + CAST ( NULL AS INTEGER ) ) + + 87 - - COUNT ( * ) ) ) * - 80 THEN + 92 WHEN + 27 THEN NULL ELSE NULL END
----
NULL

query II rowsort
SELECT DISTINCT 98 AS col0, 4
----
98
4

query I rowsort
SELECT 36 * - - 49 + 86
----
1850

query I rowsort
SELECT CASE + + 16 WHEN 24 THEN - 86 ELSE - 34 + - + 61 END
----
-95

query I rowsort
SELECT ALL - ( - 75 ) AS col0
----
75

query II rowsort
SELECT ( + - 31 ), - 59 AS col1
----
-31
-59

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5565
SELECT + CAST( NULL AS SIGNED ) col0, 76
----
NULL
76

skipif mysql # not compatible
query II rowsort label-5565
SELECT + CAST ( NULL AS INTEGER ) col0, 76
----
NULL
76

onlyif mysql # aggregate syntax: 
query II rowsort label-5566
SELECT - - 28, 49 + + - COUNT( * ) AS col1
----
28
48

skipif mysql # not compatible
query II rowsort label-5566
SELECT - - 28, 49 + + - COUNT ( * ) AS col1
----
28
48

onlyif mysql # aggregate syntax: 
query I rowsort label-5567
SELECT ALL - 45 * + - MIN( ALL - 61 )
----
-2745

skipif mysql # not compatible
query I rowsort label-5567
SELECT ALL - 45 * + - MIN ( ALL - 61 )
----
-2745

query I rowsort
SELECT - 46 * 82 col1
----
-3772

query I rowsort
SELECT ALL 15 * 12 - - 30 AS col2
----
210

query I rowsort
SELECT ALL - 52 * 54 AS col0
----
-2808

query I rowsort
SELECT + 12 * - 72
----
-864

query I rowsort
SELECT - - COALESCE ( - - 64, - 70 )
----
64

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5573
SELECT ALL - COALESCE ( - + COALESCE ( + 23, - - 34, 56 * - + 24 * 76 DIV - 51 + - SUM( + 13 ) ), COUNT( * ), - + 51, + + 67 + - 85 )
----
23

skipif mysql # not compatible
query I rowsort label-5573
SELECT ALL - COALESCE ( - + COALESCE ( + 23, - - 34, 56 * - + 24 * 76 / - 51 + - SUM ( + 13 ) ), COUNT ( * ), - + 51, + + 67 + - 85 )
----
23

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5574
SELECT 5 DIV 54 col1, + CAST( NULL AS SIGNED )
----
0
NULL

skipif mysql # not compatible
query II rowsort label-5574
SELECT 5 / 54 col1, + CAST ( NULL AS INTEGER )
----
0
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5575
SELECT COUNT( * ) * - 87 * 46 - 42 * - 97
----
72

skipif mysql # not compatible
query I rowsort label-5575
SELECT COUNT ( * ) * - 87 * 46 - 42 * - 97
----
72

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5576
SELECT ALL - MIN( - 75 ) DIV 87 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5576
SELECT ALL - MIN ( - 75 ) / 87 AS col1
----
0

query I rowsort
SELECT DISTINCT - 18 col0
----
-18

query I rowsort
SELECT ALL - NULLIF ( 28, + 61 )
----
-28

onlyif mysql # aggregate syntax: 
query II rowsort label-5579
SELECT DISTINCT - ( + COUNT( * ) ) * - 77 AS col1, 21 AS col0
----
77
21

skipif mysql # not compatible
query II rowsort label-5579
SELECT DISTINCT - ( + COUNT ( * ) ) * - 77 AS col1, 21 AS col0
----
77
21

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5580
SELECT DISTINCT - ( + 88 ) AS col0, CASE CAST( NULL AS SIGNED ) WHEN 51 + + + 17 THEN - + 53 ELSE NULL END
----
-88
NULL

skipif mysql # not compatible
query II rowsort label-5580
SELECT DISTINCT - ( + 88 ) AS col0, CASE CAST ( NULL AS INTEGER ) WHEN 51 + + + 17 THEN - + 53 ELSE NULL END
----
-88
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5581
SELECT 11 - + 93 * + 34 * CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5581
SELECT 11 - + 93 * + 34 * CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT ALL - 9 * + - 5 AS col0
----
45

onlyif mysql # aggregate syntax: 
query II rowsort label-5583
SELECT DISTINCT - SUM( DISTINCT + 50 ), 23 AS col2
----
-50
23

skipif mysql # not compatible
query II rowsort label-5583
SELECT DISTINCT - SUM ( DISTINCT + 50 ), 23 AS col2
----
-50
23

query I rowsort
SELECT DISTINCT - 13 * + 37 + - 37 * + + 66 * + + 9 + + 49 * - 72
----
-25987

onlyif mysql # aggregate syntax: 
query I rowsort label-5585
SELECT ALL + 63 * - COUNT( * ) + + MAX( + + 64 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5585
SELECT ALL + 63 * - COUNT ( * ) + + MAX ( + + 64 ) AS col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5586
SELECT ALL + CAST( CASE + + 40 WHEN - 47 / + 4 + - + COUNT( * ) * - ( - 4 ) * MIN( 99 ) + + 96 * + + COUNT( * ) THEN + 58 / + 99 ELSE NULL END AS SIGNED ) * - 45 + 24 + + + COUNT( * ) * ( - 11 ) + + 22 + + COALESCE ( - COUNT( ALL + 96 ), + 23 + + COUNT( * ) + - 26 ) * 55 + - 40
----
NULL

skipif mysql # not compatible
query I rowsort label-5586
SELECT ALL + CAST ( CASE + + 40 WHEN - 47 / + 4 + - + COUNT ( * ) * - ( - 4 ) * MIN ( 99 ) + + 96 * + + COUNT ( * ) THEN + 58 / + 99 ELSE NULL END AS INTEGER ) * - 45 + 24 + + + COUNT ( * ) * ( - 11 ) + + 22 + + COALESCE ( - COUNT ( ALL + 96 ), + 23 + + COUNT ( * ) + - 26 ) * 55 + - 40
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5587
SELECT - COUNT( * ) * 79 + 53 + - + 95
----
-121

skipif mysql # not compatible
query I rowsort label-5587
SELECT - COUNT ( * ) * 79 + 53 + - + 95
----
-121

onlyif mysql # aggregate syntax: 
query I rowsort label-5588
SELECT + COUNT( * ) - + ( - + 24 ) + - CASE - ( ( + 39 ) ) WHEN - 86 * - 69 THEN NULL WHEN MAX( DISTINCT + - 53 ) THEN ( - - 19 ) END - + ( + 2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5588
SELECT + COUNT ( * ) - + ( - + 24 ) + - CASE - ( ( + 39 ) ) WHEN - 86 * - 69 THEN NULL WHEN MAX ( DISTINCT + - 53 ) THEN ( - - 19 ) END - + ( + 2 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5589
SELECT + - 63 + - - CASE + 78 WHEN 27 THEN NULL ELSE + COUNT( * ) END AS col0
----
-62

skipif mysql # not compatible
query I rowsort label-5589
SELECT + - 63 + - - CASE + 78 WHEN 27 THEN NULL ELSE + COUNT ( * ) END AS col0
----
-62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5590
SELECT ALL NULLIF ( - ( - MAX( + 65 ) ), 27 * - COUNT( DISTINCT + + 67 ) * NULLIF ( - ( + MAX( ALL + + 65 ) ), 28 - + - 90 - - 14 - 92 * 86 ) + + + 44 - 41 + - 59 - - - CAST( NULL AS SIGNED ) DIV - COALESCE ( - + CAST( + 49 AS SIGNED ), + 14 ) * - ( + MAX( ALL + 38 ) ) + - 15 ) DIV ( - 56 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-5590
SELECT ALL NULLIF ( - ( - MAX ( + 65 ) ), 27 * - COUNT ( DISTINCT + + 67 ) * NULLIF ( - ( + MAX ( ALL + + 65 ) ), 28 - + - 90 - - 14 - 92 * 86 ) + + + 44 - 41 + - 59 - - - CAST ( NULL AS INTEGER ) / - COALESCE ( - + CAST ( + 49 AS INTEGER ), + 14 ) * - ( + MAX ( ALL + 38 ) ) + - 15 ) / ( - 56 ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-5591
SELECT - 89 + COUNT( * ) col0, 54
----
-88
54

skipif mysql # not compatible
query II rowsort label-5591
SELECT - 89 + COUNT ( * ) col0, 54
----
-88
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5592
SELECT + CAST( NULL AS SIGNED ) + 72 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5592
SELECT + CAST ( NULL AS INTEGER ) + 72 col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5593
SELECT - - COALESCE ( - 83, - 53 - + 96 DIV + ( + 31 ) ) AS col2
----
-83

skipif mysql # not compatible
query I rowsort label-5593
SELECT - - COALESCE ( - 83, - 53 - + 96 / + ( + 31 ) ) AS col2
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-5594
SELECT DISTINCT - MAX( + - 44 ) - - - 38
----
6

skipif mysql # not compatible
query I rowsort label-5594
SELECT DISTINCT - MAX ( + - 44 ) - - - 38
----
6

query I rowsort
SELECT ALL 47 * 64 + + + 20 AS col1
----
3028

query I rowsort
SELECT ALL COALESCE ( 36, - 79, - + ( + 5 ) ) AS col2
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-5597
SELECT + - 19 - + + COUNT( + 99 ) AS col1
----
-20

skipif mysql # not compatible
query I rowsort label-5597
SELECT + - 19 - + + COUNT ( + 99 ) AS col1
----
-20

query II rowsort
SELECT + - 61 * + 54 AS col2, + 54 * + 51 col1
----
-3294
2754

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5599
SELECT ALL - 56 * - - 82, CASE - CAST( NULL AS SIGNED ) WHEN - 23 THEN 68 * + - SUM( DISTINCT 46 ) + + 34 - + + 39 + + - 16 ELSE NULL END AS col0
----
-4592
NULL

skipif mysql # not compatible
query II rowsort label-5599
SELECT ALL - 56 * - - 82, CASE - CAST ( NULL AS INTEGER ) WHEN - 23 THEN 68 * + - SUM ( DISTINCT 46 ) + + 34 - + + 39 + + - 16 ELSE NULL END AS col0
----
-4592
NULL

query I rowsort
SELECT - - 68 col2
----
68

onlyif mysql # aggregate syntax: 
query II rowsort label-5601
SELECT + COUNT( * ) + CASE + 0 WHEN 15 THEN - - 15 END col1, - 65
----
NULL
-65

skipif mysql # not compatible
query II rowsort label-5601
SELECT + COUNT ( * ) + CASE + 0 WHEN 15 THEN - - 15 END col1, - 65
----
NULL
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-5602
SELECT + 10 * + ( - 67 ) + - 93 + - COUNT( * ) col1
----
-764

skipif mysql # not compatible
query I rowsort label-5602
SELECT + 10 * + ( - 67 ) + - 93 + - COUNT ( * ) col1
----
-764

onlyif mysql # aggregate syntax: 
query I rowsort label-5603
SELECT + COUNT( ALL - - 38 ) * - + 66 AS col0
----
-66

skipif mysql # not compatible
query I rowsort label-5603
SELECT + COUNT ( ALL - - 38 ) * - + 66 AS col0
----
-66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5604
SELECT + ( 50 ) + + 37 - + COUNT( * ) DIV 80
----
87

skipif mysql # not compatible
query I rowsort label-5604
SELECT + ( 50 ) + + 37 - + COUNT ( * ) / 80
----
87

query I rowsort
SELECT - 55 - - 26 * 34 + - ( 12 )
----
817

onlyif mysql # aggregate syntax: 
query I rowsort label-5606
SELECT ALL MIN( ALL + + ( - 37 ) ) AS col2
----
-37

skipif mysql # not compatible
query I rowsort label-5606
SELECT ALL MIN ( ALL + + ( - 37 ) ) AS col2
----
-37

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5607
SELECT DISTINCT + COUNT( * ) + + 14 - + 73 DIV + COUNT( * ) * + COUNT( * )
----
-58

skipif mysql # not compatible
query I rowsort label-5607
SELECT DISTINCT + COUNT ( * ) + + 14 - + 73 / + COUNT ( * ) * + COUNT ( * )
----
-58

query II rowsort
SELECT DISTINCT 84, - 52 AS col1
----
84
-52

query I rowsort
SELECT + ( + 53 ) AS col0
----
53

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5610
SELECT - 93 * - + CAST( NULL AS DECIMAL ) / - + SUM( + CAST( NULL AS DECIMAL ) ) + + 75
----
NULL

skipif mysql # not compatible
query I rowsort label-5610
SELECT - 93 * - + CAST ( NULL AS REAL ) / - + SUM ( + CAST ( NULL AS REAL ) ) + + 75
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5611
SELECT ALL CAST( 12 AS SIGNED ) DIV + 82 + + 52 * + - 91 col0
----
-4732

skipif mysql # not compatible
query I rowsort label-5611
SELECT ALL CAST ( 12 AS INTEGER ) / + 82 + + 52 * + - 91 col0
----
-4732

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5612
SELECT 13 DIV - 57 * - + 6 + - - 92 - + + 25 + - MAX( - 24 ) AS col2
----
91

skipif mysql # not compatible
query I rowsort label-5612
SELECT 13 / - 57 * - + 6 + - - 92 - + + 25 + - MAX ( - 24 ) AS col2
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-5613
SELECT ALL + 86 * + + NULLIF ( + + 95, 98 * + - SUM( ALL + 1 ) * - + 79 + - 83 / 43 ) + + ( + 99 )
----
8269

skipif mysql # not compatible
query I rowsort label-5613
SELECT ALL + 86 * + + NULLIF ( + + 95, 98 * + - SUM ( ALL + 1 ) * - + 79 + - 83 / 43 ) + + ( + 99 )
----
8269

query I rowsort
SELECT ( - 28 ) AS col1
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-5615
SELECT - COUNT( * ) * + 13 + - 45 + + 62 AS col0
----
4

skipif mysql # not compatible
query I rowsort label-5615
SELECT - COUNT ( * ) * + 13 + - 45 + + 62 AS col0
----
4

query I rowsort
SELECT - 65 * - - 14
----
-910

onlyif mysql # DIV for integer division: 
query I rowsort label-5617
SELECT DISTINCT + 23 DIV 4
----
5

skipif mysql # not compatible
query I rowsort label-5617
SELECT DISTINCT + 23 / 4
----
5

query II rowsort
SELECT DISTINCT + 53 * 5 * 29 + 87 + - ( + - 59 ) AS col1, - 95 AS col1
----
7831
-95

query II rowsort
SELECT DISTINCT + 59 AS col2, - 72 AS col0
----
59
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-5620
SELECT ALL + COUNT( * ) * + 4
----
4

skipif mysql # not compatible
query I rowsort label-5620
SELECT ALL + COUNT ( * ) * + 4
----
4

onlyif mysql # DIV for integer division: 
query I rowsort label-5621
SELECT ALL 79 * 0 - - - 47 + - - ( - + 16 ) + - ( ( - 34 ) ) DIV 30 * 49 AS col1
----
-14

skipif mysql # not compatible
query I rowsort label-5621
SELECT ALL 79 * 0 - - - 47 + - - ( - + 16 ) + - ( ( - 34 ) ) / 30 * 49 AS col1
----
-14

query I rowsort
SELECT DISTINCT - 28 * + 21
----
-588

onlyif mysql # DIV for integer division: 
query I rowsort label-5623
SELECT ALL + - 95 * - + ( + - 88 ) + - 66 + 72 DIV 50 - + 31
----
-8456

skipif mysql # not compatible
query I rowsort label-5623
SELECT ALL + - 95 * - + ( + - 88 ) + - 66 + 72 / 50 - + 31
----
-8456

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5624
SELECT - + 90 + + 64 * + 57 * + 82 / + 93 * - - CAST( NULL AS SIGNED ) AS col0, COALESCE ( - 16, + 59 - 46, + 0 ) * + 37 AS col0
----
NULL
-592

skipif mysql # not compatible
query II rowsort label-5624
SELECT - + 90 + + 64 * + 57 * + 82 / + 93 * - - CAST ( NULL AS INTEGER ) AS col0, COALESCE ( - 16, + 59 - 46, + 0 ) * + 37 AS col0
----
NULL
-592

query II rowsort
SELECT - 23 * - 29 - - + 6 AS col2, 75
----
673
75

query II rowsort
SELECT + 16 AS col0, 85
----
16
85

query I rowsort
SELECT - - ( 2 ) + - 19
----
-17

query I rowsort
SELECT + + 51 * - 99 + 74 AS col1
----
-4975

query I rowsort
SELECT - + 40 * - 85 AS col2
----
3400

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5630
SELECT DISTINCT COALESCE ( - 59, - - 84 DIV ( ( - COUNT( * ) ) ) * - 19 + - 62 ) AS col1
----
-59

skipif mysql # not compatible
query I rowsort label-5630
SELECT DISTINCT COALESCE ( - 59, - - 84 / ( ( - COUNT ( * ) ) ) * - 19 + - 62 ) AS col1
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-5631
SELECT - ( + 0 ) + + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-5631
SELECT - ( + 0 ) + + COUNT ( * )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5632
SELECT + 37 + - CAST( 5 AS SIGNED ) + + + 44 * 9 - + - 45
----
473

skipif mysql # not compatible
query I rowsort label-5632
SELECT + 37 + - CAST ( 5 AS INTEGER ) + + + 44 * 9 - + - 45
----
473

onlyif mysql # aggregate syntax: 
query I rowsort label-5633
SELECT DISTINCT - 63 * + NULLIF ( MAX( 79 ), - + 52 * AVG ( DISTINCT 15 ) ) * - 39 AS col1
----
194103

skipif mysql # not compatible
query I rowsort label-5633
SELECT DISTINCT - 63 * + NULLIF ( MAX ( 79 ), - + 52 * AVG ( DISTINCT 15 ) ) * - 39 AS col1
----
194103

onlyif mysql # DIV for integer division: 
query I rowsort label-5634
SELECT DISTINCT + - 77 DIV 49
----
-1

skipif mysql # not compatible
query I rowsort label-5634
SELECT DISTINCT + - 77 / 49
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-5635
SELECT + 64 DIV + 35 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5635
SELECT + 64 / + 35 AS col1
----
1

query I rowsort
SELECT - - 13 * - 52
----
-676

onlyif mysql # aggregate syntax: 
query I rowsort label-5637
SELECT DISTINCT + 2 * COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-5637
SELECT DISTINCT + 2 * COUNT ( * )
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5638
SELECT ALL + 44 + + SUM( + - 52 ) * - COALESCE ( - MAX( ALL - 76 ), - + 74 DIV COALESCE ( 74, COUNT( * ) + + ( 0 ) + 57, + 79 * - + 77 ) * + 42, + + 55 * - + 35 + 34 + 8 * + 69 ) * - 31 + - 87 DIV - COUNT( * ) + 29 col1
----
-122352

skipif mysql # not compatible
query I rowsort label-5638
SELECT ALL + 44 + + SUM ( + - 52 ) * - COALESCE ( - MAX ( ALL - 76 ), - + 74 / COALESCE ( 74, COUNT ( * ) + + ( 0 ) + 57, + 79 * - + 77 ) * + 42, + + 55 * - + 35 + 34 + 8 * + 69 ) * - 31 + - 87 / - COUNT ( * ) + 29 col1
----
-122352

query I rowsort
SELECT - + ( + 30 ) col0
----
-30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5640
SELECT + - 33 + + + CAST( + 26 AS SIGNED ) col0
----
-7

skipif mysql # not compatible
query I rowsort label-5640
SELECT + - 33 + + + CAST ( + 26 AS INTEGER ) col0
----
-7

onlyif mysql # DIV for integer division: 
query I rowsort label-5641
SELECT + ( + 19 ) DIV 62 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5641
SELECT + ( + 19 ) / 62 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5642
SELECT ALL NULLIF ( 73, + 73 ) + + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5642
SELECT ALL NULLIF ( 73, + 73 ) + + COUNT ( * ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5643
SELECT - CASE - ( COUNT( * ) ) WHEN + 44 THEN + 83 / + 46 WHEN + 23 THEN NULL ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5643
SELECT - CASE - ( COUNT ( * ) ) WHEN + 44 THEN + 83 / + 46 WHEN + 23 THEN NULL ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5644
SELECT DISTINCT + 72 * ( SUM( + ( - - 75 ) ) )
----
5400

skipif mysql # not compatible
query I rowsort label-5644
SELECT DISTINCT + 72 * ( SUM ( + ( - - 75 ) ) )
----
5400

query I rowsort
SELECT ALL 14 + 85 + - 5
----
94

onlyif mysql # aggregate syntax: 
query II rowsort label-5646
SELECT DISTINCT NULLIF ( 29, - 13 ) + + COUNT( * ), MAX( - 55 ) + 33 col2
----
30
-22

skipif mysql # not compatible
query II rowsort label-5646
SELECT DISTINCT NULLIF ( 29, - 13 ) + + COUNT ( * ), MAX ( - 55 ) + 33 col2
----
30
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-5647
SELECT ALL 78 + - + COUNT( + - 18 ) + - + 88 * - + MAX( - 58 ) AS col2
----
-5027

skipif mysql # not compatible
query I rowsort label-5647
SELECT ALL 78 + - + COUNT ( + - 18 ) + - + 88 * - + MAX ( - 58 ) AS col2
----
-5027

query I rowsort
SELECT + 60 - 91 * + 22 + 74
----
-1868

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5649
SELECT ALL COUNT( * ) * + + 5 * - 4 * - - COUNT( * ) * - 3 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5649
SELECT ALL COUNT ( * ) * + + 5 * - 4 * - - COUNT ( * ) * - 3 * - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 46 * - 89 * - 88 AS col2
----
360272

onlyif mysql # aggregate syntax: 
query I rowsort label-5651
SELECT DISTINCT CASE + 51 WHEN - + 58 THEN + + COUNT( * ) ELSE NULL END * + 37
----
NULL

skipif mysql # not compatible
query I rowsort label-5651
SELECT DISTINCT CASE + 51 WHEN - + 58 THEN + + COUNT ( * ) ELSE NULL END * + 37
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5652
SELECT ALL + 19 - CAST( - - 26 AS SIGNED ) AS col0
----
-7

skipif mysql # not compatible
query I rowsort label-5652
SELECT ALL + 19 - CAST ( - - 26 AS INTEGER ) AS col0
----
-7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5653
SELECT ( + - CAST( NULL AS SIGNED ) ) - 58
----
NULL

skipif mysql # not compatible
query I rowsort label-5653
SELECT ( + - CAST ( NULL AS INTEGER ) ) - 58
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5654
SELECT ALL NULLIF ( + + COUNT( * ), 39 * - 8 ) * - 49 * + + 99
----
-4851

skipif mysql # not compatible
query I rowsort label-5654
SELECT ALL NULLIF ( + + COUNT ( * ), 39 * - 8 ) * - 49 * + + 99
----
-4851

onlyif mysql # aggregate syntax: 
query II rowsort label-5655
SELECT + COUNT( * ) * + ( - 54 ) - + 98, 37 AS col0
----
-152
37

skipif mysql # not compatible
query II rowsort label-5655
SELECT + COUNT ( * ) * + ( - 54 ) - + 98, 37 AS col0
----
-152
37

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5656
SELECT ALL - COALESCE ( + 32, 95 * COUNT( * ) + 19 - 60 * + 35 DIV COUNT( ALL - 67 ) - MIN( 16 ) * - 96 ), - 96 AS col1
----
-32
-96

skipif mysql # not compatible
query II rowsort label-5656
SELECT ALL - COALESCE ( + 32, 95 * COUNT ( * ) + 19 - 60 * + 35 / COUNT ( ALL - 67 ) - MIN ( 16 ) * - 96 ), - 96 AS col1
----
-32
-96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5657
SELECT + 49 DIV - NULLIF ( + - 78, - MIN( ALL ( - 62 ) ) ) * + - COUNT( * ) + + - 93 AS col0
----
-93

skipif mysql # not compatible
query I rowsort label-5657
SELECT + 49 / - NULLIF ( + - 78, - MIN ( ALL ( - 62 ) ) ) * + - COUNT ( * ) + + - 93 AS col0
----
-93

query I rowsort
SELECT 1 * + 27 AS col0
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-5659
SELECT + + MIN( + 2 ) col2
----
2

skipif mysql # not compatible
query I rowsort label-5659
SELECT + + MIN ( + 2 ) col2
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5660
SELECT COUNT( * ) + - 70 * COUNT( * ) DIV 36 * + MAX( + 17 ) col0
----
-16

skipif mysql # not compatible
query I rowsort label-5660
SELECT COUNT ( * ) + - 70 * COUNT ( * ) / 36 * + MAX ( + 17 ) col0
----
-16

query I rowsort
SELECT + + NULLIF ( - 80, - 28 )
----
-80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5662
SELECT ALL - CAST( + COUNT( * ) AS SIGNED ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-5662
SELECT ALL - CAST ( + COUNT ( * ) AS INTEGER ) col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5663
SELECT - ( - + MAX( - + 69 ) ) * + ( + + 9 ) + + + 13 * + + 39 * - - ( + 85 ) * - - 67
----
2886744

skipif mysql # not compatible
query I rowsort label-5663
SELECT - ( - + MAX ( - + 69 ) ) * + ( + + 9 ) + + + 13 * + + 39 * - - ( + 85 ) * - - 67
----
2886744

onlyif mysql # aggregate syntax: 
query I rowsort label-5664
SELECT 93 - + COUNT( * ) + + 71 + + 82 * + 23 * + 33 AS col2
----
62401

skipif mysql # not compatible
query I rowsort label-5664
SELECT 93 - + COUNT ( * ) + + 71 + + 82 * + 23 * + 33 AS col2
----
62401

query I rowsort
SELECT 80 * + 96 AS col1
----
7680

onlyif mysql # DIV for integer division: 
query II rowsort label-5666
SELECT ALL + + 54 DIV + 72 AS col1, 68 AS col0
----
0
68

skipif mysql # not compatible
query II rowsort label-5666
SELECT ALL + + 54 / + 72 AS col1, 68 AS col0
----
0
68

onlyif mysql # DIV for integer division: 
query I rowsort label-5667
SELECT ALL + 25 * 81 DIV - 93 + + 87 AS col0
----
66

skipif mysql # not compatible
query I rowsort label-5667
SELECT ALL + 25 * 81 / - 93 + + 87 AS col0
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-5668
SELECT DISTINCT - - COUNT( * ) * + 10
----
10

skipif mysql # not compatible
query I rowsort label-5668
SELECT DISTINCT - - COUNT ( * ) * + 10
----
10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5669
SELECT ALL + + 79 * + - 38 DIV - COUNT( * ) AS col1
----
3002

skipif mysql # not compatible
query I rowsort label-5669
SELECT ALL + + 79 * + - 38 / - COUNT ( * ) AS col1
----
3002

onlyif mysql # aggregate syntax: 
query I rowsort label-5670
SELECT ALL - + COUNT( DISTINCT 9 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-5670
SELECT ALL - + COUNT ( DISTINCT 9 ) AS col1
----
-1

query I rowsort
SELECT - 65 * 76 + - 27 col1
----
-4967

query I rowsort
SELECT 49 * 7
----
343

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5673
SELECT ALL + 23 + - COUNT( ALL - CAST( NULL AS SIGNED ) ) + - 15 + - - CASE + - 54 WHEN COUNT( * ) / + NULLIF ( 89, - 5 + CASE - + 90 WHEN - 42 THEN + COALESCE ( + COUNT( * ), + 85 ) WHEN + - 64 + + 12 THEN + - 68 + - + 74 * + COUNT( DISTINCT 81 ) * 29 * - COUNT( * ) + ( + 93 ) END + - 98 ) - - 43 THEN 68 + - 82 ELSE NULL END + + CAST( 80 AS DECIMAL ) * 62 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5673
SELECT ALL + 23 + - COUNT ( ALL - CAST ( NULL AS INTEGER ) ) + - 15 + - - CASE + - 54 WHEN COUNT ( * ) / + NULLIF ( 89, - 5 + CASE - + 90 WHEN - 42 THEN + COALESCE ( + COUNT ( * ), + 85 ) WHEN + - 64 + + 12 THEN + - 68 + - + 74 * + COUNT ( DISTINCT 81 ) * 29 * - COUNT ( * ) + ( + 93 ) END + - 98 ) - - 43 THEN 68 + - 82 ELSE NULL END + + CAST ( 80 AS REAL ) * 62 AS col1
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5674
SELECT CAST( NULL AS DECIMAL ) * - 58 + - 59
----
NULL

skipif mysql # not compatible
query I rowsort label-5674
SELECT CAST ( NULL AS REAL ) * - 58 + - 59
----
NULL

query I rowsort
SELECT ( - + 43 )
----
-43

query I rowsort
SELECT ALL + 73 + + - 47 * 91 * + + 1 * + 83 * + 62
----
-22009369

query I rowsort
SELECT 72 * + 42
----
3024

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5678
SELECT DISTINCT + 40 + 22 + + 16 * + + 61 * CAST( - + MIN( - 53 ) AS SIGNED ) DIV + 85 AS col0
----
670

skipif mysql # not compatible
query I rowsort label-5678
SELECT DISTINCT + 40 + 22 + + 16 * + + 61 * CAST ( - + MIN ( - 53 ) AS INTEGER ) / + 85 AS col0
----
670

onlyif mysql # DIV for integer division: 
query I rowsort label-5679
SELECT DISTINCT ( + 59 ) DIV - ( 25 )
----
-2

skipif mysql # not compatible
query I rowsort label-5679
SELECT DISTINCT ( + 59 ) / - ( 25 )
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-5680
SELECT ALL 90 + - 46 * - 45 + COUNT( * ) AS col0
----
2161

skipif mysql # not compatible
query I rowsort label-5680
SELECT ALL 90 + - 46 * - 45 + COUNT ( * ) AS col0
----
2161

onlyif mysql # aggregate syntax: 
query I rowsort label-5681
SELECT 11 + + - 70 * + 48 * + MAX( 94 )
----
-315829

skipif mysql # not compatible
query I rowsort label-5681
SELECT 11 + + - 70 * + 48 * + MAX ( 94 )
----
-315829

query I rowsort
SELECT ALL - 13 + - 45 AS col0
----
-58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5683
SELECT COALESCE ( - + 33, - COUNT( * ) * - ( + CAST( NULL AS SIGNED ) ) + - SUM( DISTINCT 42 ) + + 80 ) + + ( COUNT( * ) ) AS col1
----
-32

skipif mysql # not compatible
query I rowsort label-5683
SELECT COALESCE ( - + 33, - COUNT ( * ) * - ( + CAST ( NULL AS INTEGER ) ) + - SUM ( DISTINCT 42 ) + + 80 ) + + ( COUNT ( * ) ) AS col1
----
-32

query I rowsort
SELECT 92 + - + 67 AS col2
----
25

onlyif mysql # DIV for integer division: 
query I rowsort label-5685
SELECT DISTINCT + ( 28 ) * ( - + 79 ) DIV 28 + - - 6 + 0 col0
----
-73

skipif mysql # not compatible
query I rowsort label-5685
SELECT DISTINCT + ( 28 ) * ( - + 79 ) / 28 + - - 6 + 0 col0
----
-73

query I rowsort
SELECT 1 + + + 19 AS col2
----
20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5687
SELECT ALL CAST( NULL AS SIGNED ) * + + 69 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5687
SELECT ALL CAST ( NULL AS INTEGER ) * + + 69 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5688
SELECT COUNT( * ) + - 50 AS col2
----
-49

skipif mysql # not compatible
query I rowsort label-5688
SELECT COUNT ( * ) + - 50 AS col2
----
-49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5689
SELECT CAST( NULL AS SIGNED ) - - + ( - 46 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5689
SELECT CAST ( NULL AS INTEGER ) - - + ( - 46 )
----
NULL

query I rowsort
SELECT 20 + - 4 + - 4 + - - 64 AS col2
----
76

query I rowsort
SELECT ALL - ( + 54 ) * - 70 AS col2
----
3780

onlyif mysql # DIV for integer division: 
query I rowsort label-5692
SELECT ALL 18 DIV + 70 col1
----
0

skipif mysql # not compatible
query I rowsort label-5692
SELECT ALL 18 / + 70 col1
----
0

query I rowsort
SELECT 17 * - 28 AS col1
----
-476

query I rowsort
SELECT 55 + - ( - 16 ) + - 92 + - 68
----
-89

query II rowsort
SELECT ALL - 91 col1, - 68 * 47 + - 11 + + + 40 * + 42 + 50
----
-91
-1477

onlyif mysql # aggregate syntax: 
query I rowsort label-5696
SELECT - 16 * - MAX( DISTINCT - 20 )
----
-320

skipif mysql # not compatible
query I rowsort label-5696
SELECT - 16 * - MAX ( DISTINCT - 20 )
----
-320

query I rowsort
SELECT ALL 13 * + 35 + 95
----
550

query I rowsort
SELECT ALL + 18 * 5 - - ( - 5 ) + - 49 * + 17
----
-748

query I rowsort
SELECT DISTINCT - - 31 AS col1
----
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5700
SELECT DISTINCT 71 + + - CAST( + 32 AS SIGNED ) DIV - SUM( ALL COALESCE ( 13, + 6 ) ) AS col2
----
73

skipif mysql # not compatible
query I rowsort label-5700
SELECT DISTINCT 71 + + - CAST ( + 32 AS INTEGER ) / - SUM ( ALL COALESCE ( 13, + 6 ) ) AS col2
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-5701
SELECT DISTINCT + 79 + - MIN( DISTINCT + 15 ) * 70 AS col1
----
-971

skipif mysql # not compatible
query I rowsort label-5701
SELECT DISTINCT + 79 + - MIN ( DISTINCT + 15 ) * 70 AS col1
----
-971

query II rowsort
SELECT + - 87, 2 + 96 + + 77 + - + 5 * - + 17 * + - 1 AS col2
----
-87
90

onlyif mysql # aggregate syntax: 
query I rowsort label-5703
SELECT + SUM( + 38 ) AS col1
----
38

skipif mysql # not compatible
query I rowsort label-5703
SELECT + SUM ( + 38 ) AS col1
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-5704
SELECT + 43 * + - 30 * + COUNT( * ) + + 92 AS col1
----
-1198

skipif mysql # not compatible
query I rowsort label-5704
SELECT + 43 * + - 30 * + COUNT ( * ) + + 92 AS col1
----
-1198

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5705
SELECT ALL - CAST( + 39 AS SIGNED ) + 53 AS col2
----
14

skipif mysql # not compatible
query I rowsort label-5705
SELECT ALL - CAST ( + 39 AS INTEGER ) + 53 AS col2
----
14

query I rowsort
SELECT + + 20 col0
----
20

query I rowsort
SELECT + COALESCE ( + 14, - - 32 )
----
14

onlyif mysql # aggregate syntax: 
query II rowsort label-5708
SELECT - SUM( - ( - 87 ) ) + + - 59 * 46 AS col0, - 78 * + - 57 AS col2
----
-2801
4446

skipif mysql # not compatible
query II rowsort label-5708
SELECT - SUM ( - ( - 87 ) ) + + - 59 * 46 AS col0, - 78 * + - 57 AS col2
----
-2801
4446

query I rowsort
SELECT + 76 * + 93 + - + 79 - + 77 AS col0
----
6912

query I rowsort
SELECT ALL - - NULLIF ( + 33, + 85 * + 99 + 36 )
----
33

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5711
SELECT 97 DIV + + COUNT( * )
----
97

skipif mysql # not compatible
query I rowsort label-5711
SELECT 97 / + + COUNT ( * )
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5712
SELECT DISTINCT - 86 + COUNT( * )
----
-85

skipif mysql # not compatible
query I rowsort label-5712
SELECT DISTINCT - 86 + COUNT ( * )
----
-85

query I rowsort
SELECT ALL + - 47 + - - 89
----
42

query I rowsort
SELECT ALL - - 84 * + + 54 AS col2
----
4536

query I rowsort
SELECT DISTINCT 87 + 99 AS col1
----
186

query II rowsort
SELECT - - 35, + 18 AS col1
----
35
18

query I rowsort
SELECT ALL + ( + 99 ) * 70
----
6930

query I rowsort
SELECT 11 + + 24
----
35

onlyif mysql # aggregate syntax: 
query II rowsort label-5719
SELECT DISTINCT COUNT( * ) AS col1, + COUNT( * ) + - 18 + + + 3 * 18 AS col1
----
1
37

skipif mysql # not compatible
query II rowsort label-5719
SELECT DISTINCT COUNT ( * ) AS col1, + COUNT ( * ) + - 18 + + + 3 * 18 AS col1
----
1
37

query I rowsort
SELECT + 61 * + 0 AS col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5721
SELECT ALL COUNT( * ) AS col0, 14 + + + 25 + + NULLIF ( 87, - - 4 ) AS col0
----
1
126

skipif mysql # not compatible
query II rowsort label-5721
SELECT ALL COUNT ( * ) AS col0, 14 + + + 25 + + NULLIF ( 87, - - 4 ) AS col0
----
1
126

onlyif mysql # aggregate syntax: 
query I rowsort label-5722
SELECT DISTINCT SUM( ALL 11 )
----
11

skipif mysql # not compatible
query I rowsort label-5722
SELECT DISTINCT SUM ( ALL 11 )
----
11

query II rowsort
SELECT - 43, 30 AS col1
----
-43
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5724
SELECT ALL CASE - ( 43 ) WHEN + CAST( NULL AS SIGNED ) + 91 THEN - - 74 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5724
SELECT ALL CASE - ( 43 ) WHEN + CAST ( NULL AS INTEGER ) + 91 THEN - - 74 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5725
SELECT ALL 77 * + + 39 DIV + - COUNT( * ) AS col0
----
-3003

skipif mysql # not compatible
query I rowsort label-5725
SELECT ALL 77 * + + 39 / + - COUNT ( * ) AS col0
----
-3003

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5726
SELECT - 6, 4 DIV + + NULLIF ( - 24, - 69 + - CAST( - 55 AS SIGNED ) + + - 24 ) + 23 AS col2
----
-6
23

skipif mysql # not compatible
query II rowsort label-5726
SELECT - 6, 4 / + + NULLIF ( - 24, - 69 + - CAST ( - 55 AS INTEGER ) + + - 24 ) + 23 AS col2
----
-6
23

query I rowsort
SELECT - 94 * - + 46
----
4324

query I rowsort
SELECT - 71 - + 88 AS col0
----
-159

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5729
SELECT - SUM( DISTINCT - - 37 ) col1, 7 DIV - 17 + ( + - 26 ) DIV + - 31 * - 17 AS col2
----
-37
0

skipif mysql # not compatible
query II rowsort label-5729
SELECT - SUM ( DISTINCT - - 37 ) col1, 7 / - 17 + ( + - 26 ) / + - 31 * - 17 AS col2
----
-37
0

query II rowsort
SELECT ALL - 92 * 92 AS col1, 62 + - 81 - - - 47 AS col0
----
-8464
-66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5731
SELECT - 64 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5731
SELECT - 64 * CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - 22 * + 93 + + 43 AS col2
----
-2003

onlyif mysql # aggregate syntax: 
query I rowsort label-5733
SELECT ALL MAX( + - 63 ) * + 38
----
-2394

skipif mysql # not compatible
query I rowsort label-5733
SELECT ALL MAX ( + - 63 ) * + 38
----
-2394

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5734
SELECT - + 27 * + COALESCE ( - + COUNT( * ), + 55 ) DIV + 96 DIV + 34 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5734
SELECT - + 27 * + COALESCE ( - + COUNT ( * ), + 55 ) / + 96 / + 34 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5735
SELECT ALL - 47 * - + COUNT( * ) AS col1
----
47

skipif mysql # not compatible
query I rowsort label-5735
SELECT ALL - 47 * - + COUNT ( * ) AS col1
----
47

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5736
SELECT ALL + + 64 AS col0, - COALESCE ( - + COALESCE ( + - 39, COUNT( * ) DIV - - COUNT( * ), + 68 * + MIN( + + ( + - 48 ) ) + + + 80 ), - 39 )
----
64
-39

skipif mysql # not compatible
query II rowsort label-5736
SELECT ALL + + 64 AS col0, - COALESCE ( - + COALESCE ( + - 39, COUNT ( * ) / - - COUNT ( * ), + 68 * + MIN ( + + ( + - 48 ) ) + + + 80 ), - 39 )
----
64
-39

query II rowsort
SELECT + 41 AS col0, + 66 AS col0
----
41
66

query I rowsort
SELECT + 41 * - + 42 + - ( - 47 )
----
-1675

onlyif mysql # DIV for integer division: 
query I rowsort label-5739
SELECT DISTINCT + CASE WHEN + NULLIF ( 56, + 14 ) > + 41 THEN 48 DIV 25 END AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5739
SELECT DISTINCT + CASE WHEN + NULLIF ( 56, + 14 ) > + 41 THEN 48 / 25 END AS col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5740
SELECT - 56 * NULLIF ( + CAST( - - COUNT( * ) AS SIGNED ), + + CAST( NULL AS SIGNED ) ) - + 56 AS col2
----
-112

skipif mysql # not compatible
query I rowsort label-5740
SELECT - 56 * NULLIF ( + CAST ( - - COUNT ( * ) AS INTEGER ), + + CAST ( NULL AS INTEGER ) ) - + 56 AS col2
----
-112

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5741
SELECT - 61 + COALESCE ( + 83, + + 52, + COUNT( * ) * COALESCE ( - MIN( ALL - 66 ), - 3, 30 DIV ( - - 43 ) + + COUNT( * ) ) ) AS col2
----
22

skipif mysql # not compatible
query I rowsort label-5741
SELECT - 61 + COALESCE ( + 83, + + 52, + COUNT ( * ) * COALESCE ( - MIN ( ALL - 66 ), - 3, 30 / ( - - 43 ) + + COUNT ( * ) ) ) AS col2
----
22

query II rowsort
SELECT + 41 AS col0, 6 + 40 col1
----
41
46

query I rowsort
SELECT ALL 14 * - 10 AS col0
----
-140

onlyif mysql # aggregate syntax: 
query I rowsort label-5744
SELECT + MIN( DISTINCT + 44 ) AS col2
----
44

skipif mysql # not compatible
query I rowsort label-5744
SELECT + MIN ( DISTINCT + 44 ) AS col2
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-5745
SELECT ALL + ( + ( - COUNT( * ) ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-5745
SELECT ALL + ( + ( - COUNT ( * ) ) ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-5746
SELECT ALL + + COUNT( * ) AS col1, - ( - 6 ) AS col2
----
1
6

skipif mysql # not compatible
query II rowsort label-5746
SELECT ALL + + COUNT ( * ) AS col1, - ( - 6 ) AS col2
----
1
6

query II rowsort
SELECT + 98 AS col0, - 80 AS col2
----
98
-80

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5748
SELECT ALL + MIN( ALL + 96 ) AS col2, 5 DIV + - 69 AS col1
----
96
0

skipif mysql # not compatible
query II rowsort label-5748
SELECT ALL + MIN ( ALL + 96 ) AS col2, 5 / + - 69 AS col1
----
96
0

query II rowsort
SELECT ALL + ( - + 0 ), - 32 AS col1
----
0
-32

query II rowsort
SELECT - + 37 AS col0, 16 AS col0
----
-37
16

onlyif mysql # aggregate syntax: 
query I rowsort label-5751
SELECT SUM( 86 )
----
86

skipif mysql # not compatible
query I rowsort label-5751
SELECT SUM ( 86 )
----
86

query I rowsort
SELECT + 49 * - 43 AS col0
----
-2107

onlyif mysql # aggregate syntax: 
query I rowsort label-5753
SELECT 86 * 78 + + MAX( + 62 ) col0
----
6770

skipif mysql # not compatible
query I rowsort label-5753
SELECT 86 * 78 + + MAX ( + 62 ) col0
----
6770

onlyif mysql # DIV for integer division: 
query II rowsort label-5754
SELECT - 67 DIV + 46 AS col2, - 52 DIV + 35
----
-1
-1

skipif mysql # not compatible
query II rowsort label-5754
SELECT - 67 / + 46 AS col2, - 52 / + 35
----
-1
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5755
SELECT ALL ( CAST( + COUNT( DISTINCT - 90 ) AS SIGNED ) ) - - 66
----
67

skipif mysql # not compatible
query I rowsort label-5755
SELECT ALL ( CAST ( + COUNT ( DISTINCT - 90 ) AS INTEGER ) ) - - 66
----
67

query I rowsort
SELECT + 31 - - 47 * - 99
----
-4622

onlyif mysql # aggregate syntax: 
query I rowsort label-5757
SELECT ALL CASE + - SUM( DISTINCT - 66 ) WHEN + 2 THEN NULL WHEN 66 THEN NULL ELSE - - 89 + 88 - 70 * MIN( + + 22 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-5757
SELECT ALL CASE + - SUM ( DISTINCT - 66 ) WHEN + 2 THEN NULL WHEN 66 THEN NULL ELSE - - 89 + 88 - 70 * MIN ( + + 22 ) END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5758
SELECT + COUNT( * ) + + + CAST( 22 AS SIGNED ) AS col2
----
23

skipif mysql # not compatible
query I rowsort label-5758
SELECT + COUNT ( * ) + + + CAST ( 22 AS INTEGER ) AS col2
----
23

query I rowsort
SELECT ALL - 60 * + 46
----
-2760

onlyif mysql # aggregate syntax: 
query II rowsort label-5760
SELECT ALL COUNT( + + 3 ) * + 85 * + 90 * - + COUNT( * ) + - 77 * - 47 AS col2, - 98
----
-4031
-98

skipif mysql # not compatible
query II rowsort label-5760
SELECT ALL COUNT ( + + 3 ) * + 85 * + 90 * - + COUNT ( * ) + - 77 * - 47 AS col2, - 98
----
-4031
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-5761
SELECT + 54 * - 89 * - + COUNT( * ) AS col2
----
4806

skipif mysql # not compatible
query I rowsort label-5761
SELECT + 54 * - 89 * - + COUNT ( * ) AS col2
----
4806

query I rowsort
SELECT + 71 + 60 * + + 60 * + 33
----
118871

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-5763
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - + CAST( NULL AS DECIMAL ) AS col0, 13
----
NULL
13

skipif mysql # not compatible
query II rowsort label-5763
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - + CAST ( NULL AS REAL ) AS col0, 13
----
NULL
13

onlyif mysql # aggregate syntax: 
query I rowsort label-5764
SELECT ALL ( + MAX( + 65 ) )
----
65

skipif mysql # not compatible
query I rowsort label-5764
SELECT ALL ( + MAX ( + 65 ) )
----
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-5765
SELECT DISTINCT ( + COUNT( * ) ), 84 AS col1, - COUNT( - - CAST( NULL AS SIGNED ) ) + - 0 col0
----
1
84
0

skipif mysql # not compatible
query III rowsort label-5765
SELECT DISTINCT ( + COUNT ( * ) ), 84 AS col1, - COUNT ( - - CAST ( NULL AS INTEGER ) ) + - 0 col0
----
1
84
0

query I rowsort
SELECT ALL ( 44 ) + - 74 AS col2
----
-30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5767
SELECT - CAST( 90 AS SIGNED ) AS col1, COALESCE ( + - 26, - 63, + CASE NULLIF ( 76, - 73 + + 6 + + MIN( - 71 ) ) WHEN - 59 THEN + 77 WHEN + 24 * COUNT( * ) THEN 80 END + 69 ) AS col2
----
-90
-26

skipif mysql # not compatible
query II rowsort label-5767
SELECT - CAST ( 90 AS INTEGER ) AS col1, COALESCE ( + - 26, - 63, + CASE NULLIF ( 76, - 73 + + 6 + + MIN ( - 71 ) ) WHEN - 59 THEN + 77 WHEN + 24 * COUNT ( * ) THEN 80 END + 69 ) AS col2
----
-90
-26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5768
SELECT ALL 85 / + - CAST( NULL AS SIGNED ) + - AVG ( 83 ) * + 91 * + + NULLIF ( 3, + - COUNT( DISTINCT - CAST( + - ( 94 ) AS SIGNED ) ) * + NULLIF ( - COUNT( * ), + CAST( - + CAST( NULL AS SIGNED ) AS SIGNED ) ) / + - 33 - 46 * - - ( 57 ) - + 97 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5768
SELECT ALL 85 / + - CAST ( NULL AS INTEGER ) + - AVG ( 83 ) * + 91 * + + NULLIF ( 3, + - COUNT ( DISTINCT - CAST ( + - ( 94 ) AS INTEGER ) ) * + NULLIF ( - COUNT ( * ), + CAST ( - + CAST ( NULL AS INTEGER ) AS INTEGER ) ) / + - 33 - 46 * - - ( 57 ) - + 97 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5769
SELECT COALESCE ( + COALESCE ( 52, - 53, - + COUNT( * ) + - 40 + + + 21 - + SUM( - 78 ) * - + 26 + + 51 ), - 67 + - + CAST( NULL AS SIGNED ) * 9 + + - 15 ) / - - 44 + + 92 + - CASE + COUNT( * ) WHEN - 23 THEN - + COUNT( * ) ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5769
SELECT COALESCE ( + COALESCE ( 52, - 53, - + COUNT ( * ) + - 40 + + + 21 - + SUM ( - 78 ) * - + 26 + + 51 ), - 67 + - + CAST ( NULL AS INTEGER ) * 9 + + - 15 ) / - - 44 + + 92 + - CASE + COUNT ( * ) WHEN - 23 THEN - + COUNT ( * ) ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT ( + - 70 )
----
-70

query I rowsort
SELECT - 78 + 91 AS col0
----
13

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5772
SELECT ALL - 58 / 63 * MIN( 80 ) + - 60 * + CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5772
SELECT ALL - 58 / 63 * MIN ( 80 ) + - 60 * + CAST ( NULL AS REAL ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5773
SELECT DISTINCT + + CAST( - + 72 AS SIGNED ) AS col1
----
-72

skipif mysql # not compatible
query I rowsort label-5773
SELECT DISTINCT + + CAST ( - + 72 AS INTEGER ) AS col1
----
-72

query I rowsort
SELECT - 31 * 30 - + + 81
----
-1011

query I rowsort
SELECT ALL - - 68 * - ( + 52 )
----
-3536

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5776
SELECT DISTINCT + 8 DIV - 75 + + NULLIF ( - MIN( DISTINCT - + 29 ), - 15 * + COUNT( + COALESCE ( - 34, 75 ) ) )
----
29

skipif mysql # not compatible
query I rowsort label-5776
SELECT DISTINCT + 8 / - 75 + + NULLIF ( - MIN ( DISTINCT - + 29 ), - 15 * + COUNT ( + COALESCE ( - 34, 75 ) ) )
----
29

query I rowsort
SELECT ALL + - 20 col2
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-5778
SELECT - 84 * - 49 + - COUNT( * ) + 83 col2
----
4198

skipif mysql # not compatible
query I rowsort label-5778
SELECT - 84 * - 49 + - COUNT ( * ) + 83 col2
----
4198

query II rowsort
SELECT + 8 * - + 20 AS col2, 87
----
-160
87

query I rowsort
SELECT 40 * 99 AS col2
----
3960

query I rowsort
SELECT 30 * + 50 col2
----
1500

query I rowsort
SELECT ALL 1 * - 3 col1
----
-3

query I rowsort
SELECT 36 + 71 AS col1
----
107

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5784
SELECT ALL COUNT( * ) * 12 DIV - 81 AS col0, + 73 AS col0
----
0
73

skipif mysql # not compatible
query II rowsort label-5784
SELECT ALL COUNT ( * ) * 12 / - 81 AS col0, + 73 AS col0
----
0
73

query II rowsort
SELECT - 93, - NULLIF ( 95, - - CASE + - ( + 49 ) WHEN 1 + - 63 THEN NULL ELSE - - 3 END ) AS col2
----
-93
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-5786
SELECT ALL COUNT( * ) * - COUNT( * ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-5786
SELECT ALL COUNT ( * ) * - COUNT ( * ) col1
----
-1

query I rowsort
SELECT 20 * + - 11
----
-220

onlyif mysql # DIV for integer division: 
query II rowsort label-5788
SELECT - 51 AS col2, + 7 DIV - 84 * - 95
----
-51
0

skipif mysql # not compatible
query II rowsort label-5788
SELECT - 51 AS col2, + 7 / - 84 * - 95
----
-51
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5789
SELECT ALL 42 + - COUNT( * )
----
41

skipif mysql # not compatible
query I rowsort label-5789
SELECT ALL 42 + - COUNT ( * )
----
41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5790
SELECT 71 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5790
SELECT 71 + + CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT - 62 AS col0, - 4
----
-62
-4

query I rowsort
SELECT DISTINCT 53 + - 75 + + 70 + + 28 - - 49 * + + 25 col1
----
1301

query I rowsort
SELECT DISTINCT ( + 24 ) + - + 10 * - 97
----
994

query I rowsort
SELECT DISTINCT - 84 + + - 35
----
-119

query II rowsort
SELECT ( - 4 ) * + 25, + 64 - - 98 AS col2
----
-100
162

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5796
SELECT ALL CAST( NULL AS SIGNED ) / + 83 * 93 + + 25 + + + 64 * - + MAX( - 75 ) + ( 15 ) / 29
----
NULL

skipif mysql # not compatible
query I rowsort label-5796
SELECT ALL CAST ( NULL AS INTEGER ) / + 83 * 93 + + 25 + + + 64 * - + MAX ( - 75 ) + ( 15 ) / 29
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5797
SELECT DISTINCT 37 * + 3 + CAST( NULL AS SIGNED ) * 93
----
NULL

skipif mysql # not compatible
query I rowsort label-5797
SELECT DISTINCT 37 * + 3 + CAST ( NULL AS INTEGER ) * 93
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5798
SELECT ALL + MIN( DISTINCT + + 12 ) + 85 col0
----
97

skipif mysql # not compatible
query I rowsort label-5798
SELECT ALL + MIN ( DISTINCT + + 12 ) + 85 col0
----
97

query I rowsort
SELECT + 16 - + 85 * 85 AS col0
----
-7209

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5800
SELECT 1 * - 74 * - + CAST( NULL AS SIGNED ) / + 24 * 4 + - 67 + 13 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5800
SELECT 1 * - 74 * - + CAST ( NULL AS INTEGER ) / + 24 * 4 + - 67 + 13 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5801
SELECT MIN( - 80 ) AS col2
----
-80

skipif mysql # not compatible
query I rowsort label-5801
SELECT MIN ( - 80 ) AS col2
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-5802
SELECT DISTINCT COUNT( * ) * - - 59 * 27 * + - 93
----
-148149

skipif mysql # not compatible
query I rowsort label-5802
SELECT DISTINCT COUNT ( * ) * - - 59 * 27 * + - 93
----
-148149

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5803
SELECT ALL + 45 - + - CASE 81 WHEN 60 THEN - AVG ( ALL - - 11 ) * 54 * - + COALESCE ( - - CAST( NULL AS SIGNED ), 66, + - 66 + - 91 * - 27 ) + - + 87 + 44 WHEN - - 10 + + - 13 THEN + + 71 END * - 46
----
NULL

skipif mysql # not compatible
query I rowsort label-5803
SELECT ALL + 45 - + - CASE 81 WHEN 60 THEN - AVG ( ALL - - 11 ) * 54 * - + COALESCE ( - - CAST ( NULL AS INTEGER ), 66, + - 66 + - 91 * - 27 ) + - + 87 + 44 WHEN - - 10 + + - 13 THEN + + 71 END * - 46
----
NULL

query I rowsort
SELECT DISTINCT + 87 - + + 16 AS col2
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-5805
SELECT ALL - CASE - NULLIF ( + + ( + 92 ), - COUNT( 96 ) + - - 9 ) WHEN + NULLIF ( 9, 91 ) THEN - COUNT( + 27 ) WHEN + - 57 THEN NULL WHEN - COUNT( + 99 ) THEN 14 * - COUNT( * ) * 80 - CASE - ( MAX( ALL 72 ) ) WHEN - 78 THEN NULL ELSE - - 79 * 96 * + - AVG ( DISTINCT - 93 ) - 82 + - 51 END * + + COUNT( * ) * + NULLIF ( 60, - COUNT( * ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-5805
SELECT ALL - CASE - NULLIF ( + + ( + 92 ), - COUNT ( 96 ) + - - 9 ) WHEN + NULLIF ( 9, 91 ) THEN - COUNT ( + 27 ) WHEN + - 57 THEN NULL WHEN - COUNT ( + 99 ) THEN 14 * - COUNT ( * ) * 80 - CASE - ( MAX ( ALL 72 ) ) WHEN - 78 THEN NULL ELSE - - 79 * 96 * + - AVG ( DISTINCT - 93 ) - 82 + - 51 END * + + COUNT ( * ) * + NULLIF ( 60, - COUNT ( * ) ) END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5806
SELECT ALL - 65 - - COUNT( * ) DIV - 78 AS col0, - SUM( ALL + 4 )
----
-65
-4

skipif mysql # not compatible
query II rowsort label-5806
SELECT ALL - 65 - - COUNT ( * ) / - 78 AS col0, - SUM ( ALL + 4 )
----
-65
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-5807
SELECT - + ( 28 ) * - COUNT( DISTINCT + 60 ) - - ( COUNT( * ) ) * + - 10 + + - 33 * - - COUNT( * )
----
-15

skipif mysql # not compatible
query I rowsort label-5807
SELECT - + ( 28 ) * - COUNT ( DISTINCT + 60 ) - - ( COUNT ( * ) ) * + - 10 + + - 33 * - - COUNT ( * )
----
-15

query I rowsort
SELECT + 1 * + + ( - 62 ) + + - ( - - 30 ) AS col1
----
-92

query II rowsort
SELECT ALL - 62 AS col0, + 57 + + 92 AS col2
----
-62
149

query I rowsort
SELECT DISTINCT + - 98 * - ( - - 35 ) + + 48 * + - 94
----
-1082

query I rowsort
SELECT + 59 + 30
----
89

onlyif mysql # DIV for integer division: 
query II rowsort label-5812
SELECT ALL + 23 DIV + 41 AS col0, - 62
----
0
-62

skipif mysql # not compatible
query II rowsort label-5812
SELECT ALL + 23 / + 41 AS col0, - 62
----
0
-62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5813
SELECT COUNT( * ) * 44, CASE - - NULLIF ( + 64, - 83 * 87 * COUNT( * ) ) WHEN + 6 - - AVG ( - 47 ) THEN NULL WHEN + + CAST( - 69 AS SIGNED ) THEN + COALESCE ( + 20, COUNT( + 41 ) + - COUNT( + 35 ), ( 14 ) ) / 38 / + 46 / + - 67 - 0 ELSE NULL END AS col0
----
44
NULL

skipif mysql # not compatible
query II rowsort label-5813
SELECT COUNT ( * ) * 44, CASE - - NULLIF ( + 64, - 83 * 87 * COUNT ( * ) ) WHEN + 6 - - AVG ( - 47 ) THEN NULL WHEN + + CAST ( - 69 AS INTEGER ) THEN + COALESCE ( + 20, COUNT ( + 41 ) + - COUNT ( + 35 ), ( 14 ) ) / 38 / + 46 / + - 67 - 0 ELSE NULL END AS col0
----
44
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5814
SELECT 10 + 58 + + 18 DIV + + 11 + + - MIN( 23 ) + 88 * + NULLIF ( + 44, + COALESCE ( - ( COALESCE ( - 38, ( + - 26 ), 75 * COALESCE ( - + 0, - COUNT( DISTINCT 11 ) ) ) ), + COUNT( + 31 ), + + 79 + + + ( - 34 ) + - - 51 * 62 * + COALESCE ( - AVG ( DISTINCT - - ( + 34 ) ), - 88 ) ) ) * + + 21
----
81358

skipif mysql # not compatible
query I rowsort label-5814
SELECT 10 + 58 + + 18 / + + 11 + + - MIN ( 23 ) + 88 * + NULLIF ( + 44, + COALESCE ( - ( COALESCE ( - 38, ( + - 26 ), 75 * COALESCE ( - + 0, - COUNT ( DISTINCT 11 ) ) ) ), + COUNT ( + 31 ), + + 79 + + + ( - 34 ) + - - 51 * 62 * + COALESCE ( - AVG ( DISTINCT - - ( + 34 ) ), - 88 ) ) ) * + + 21
----
81358

onlyif mysql # DIV for integer division: 
query I rowsort label-5815
SELECT 20 DIV - + 95 * - 26 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5815
SELECT 20 / - + 95 * - 26 AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5816
SELECT CASE WHEN NOT ( NULL ) IN ( - SUM( DISTINCT - ( - + 35 ) ) ) THEN 3 DIV - 40 ELSE + 71 END DIV + 27
----
2

skipif mysql # not compatible
query I rowsort label-5816
SELECT CASE WHEN NOT ( NULL ) IN ( - SUM ( DISTINCT - ( - + 35 ) ) ) THEN 3 / - 40 ELSE + 71 END / + 27
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5817
SELECT ALL + ( + - ( + + 5 ) ) + + COUNT( * ) * + ( - 91 ) + + 21 DIV + + 3 + 78
----
-11

skipif mysql # not compatible
query I rowsort label-5817
SELECT ALL + ( + - ( + + 5 ) ) + + COUNT ( * ) * + ( - 91 ) + + 21 / + + 3 + 78
----
-11

query II rowsort
SELECT 26 + + 3 col0, - 48 * 12 AS col0
----
29
-576

query I rowsort
SELECT 65 * 22
----
1430

query I rowsort
SELECT 60 * - 88 + + - 15 col2
----
-5295

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5821
SELECT 45 + CAST( NULL AS SIGNED ) - - 17 * + - NULLIF ( COALESCE ( COALESCE ( 11, 92 ), - - 39 * - 63 - - COUNT( * ) * + ( - - 62 ) + - 69 + 53 ), AVG ( ALL 8 ) ) * COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5821
SELECT 45 + CAST ( NULL AS INTEGER ) - - 17 * + - NULLIF ( COALESCE ( COALESCE ( 11, 92 ), - - 39 * - 63 - - COUNT ( * ) * + ( - - 62 ) + - 69 + 53 ), AVG ( ALL 8 ) ) * COUNT ( * ) AS col2
----
NULL

query I rowsort
SELECT ALL - 61 + 2 AS col2
----
-59

query I rowsort
SELECT ALL 94 * + 35
----
3290

query I rowsort
SELECT 55 + 3 AS col2
----
58

query I rowsort
SELECT ALL 12 + - 55
----
-43

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5826
SELECT ALL 88 + + 80 * + ( - 40 ) + 32 DIV 91 + COUNT( ALL - - NULLIF ( + 66, + - 23 ) )
----
-3111

skipif mysql # not compatible
query I rowsort label-5826
SELECT ALL 88 + + 80 * + ( - 40 ) + 32 / 91 + COUNT ( ALL - - NULLIF ( + 66, + - 23 ) )
----
-3111

query I rowsort
SELECT 71 + - 68 * 30 AS col1
----
-1969

query I rowsort
SELECT ALL + 70 * 78 AS col0
----
5460

onlyif mysql # aggregate syntax: 
query I rowsort label-5829
SELECT DISTINCT 17 + + NULLIF ( - + 14, + - COUNT( * ) / + + COALESCE ( 29, + + 83 + 23, + 43 ) ) col1
----
3

skipif mysql # not compatible
query I rowsort label-5829
SELECT DISTINCT 17 + + NULLIF ( - + 14, + - COUNT ( * ) / + + COALESCE ( 29, + + 83 + 23, + 43 ) ) col1
----
3

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5830
SELECT CAST( NULL AS DECIMAL ) * + MAX( ALL + 8 ) + - 38 + ( + COUNT( - + 50 ) ) * 84
----
NULL

skipif mysql # not compatible
query I rowsort label-5830
SELECT CAST ( NULL AS REAL ) * + MAX ( ALL + 8 ) + - 38 + ( + COUNT ( - + 50 ) ) * 84
----
NULL

query I rowsort
SELECT - + 92 col1
----
-92

query I rowsort
SELECT ALL - 10 + + + 3 col1
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-5833
SELECT + NULLIF ( + 94, COUNT( * ) ) + 93
----
187

skipif mysql # not compatible
query I rowsort label-5833
SELECT + NULLIF ( + 94, COUNT ( * ) ) + 93
----
187

onlyif mysql # aggregate syntax: 
query I rowsort label-5834
SELECT + MIN( + - 43 ) + + + 32
----
-11

skipif mysql # not compatible
query I rowsort label-5834
SELECT + MIN ( + - 43 ) + + + 32
----
-11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5835
SELECT + COUNT( * ) + + CAST( + 93 AS SIGNED ) AS col1
----
94

skipif mysql # not compatible
query I rowsort label-5835
SELECT + COUNT ( * ) + + CAST ( + 93 AS INTEGER ) AS col1
----
94

query I rowsort
SELECT - 83 - + 46
----
-129

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5837
SELECT DISTINCT + 8 * - - 31 * - 47 DIV - COUNT( * ), MAX( - 61 ) + + - 40 AS col2
----
11656
-101

skipif mysql # not compatible
query II rowsort label-5837
SELECT DISTINCT + 8 * - - 31 * - 47 / - COUNT ( * ), MAX ( - 61 ) + + - 40 AS col2
----
11656
-101

query I rowsort
SELECT ALL - - NULLIF ( + 53, + + ( - 67 ) ) - - - 19 AS col0
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-5839
SELECT ALL - COUNT( ALL + + 32 )
----
-1

skipif mysql # not compatible
query I rowsort label-5839
SELECT ALL - COUNT ( ALL + + 32 )
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-5840
SELECT DISTINCT 37 DIV + 77 + + 22 AS col0
----
22

skipif mysql # not compatible
query I rowsort label-5840
SELECT DISTINCT 37 / + 77 + + 22 AS col0
----
22

query I rowsort
SELECT DISTINCT - - 42 col0
----
42

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5842
SELECT + + 3 DIV - 60, + ( - - 26 ) * COUNT( * ) + + 28 AS col2
----
0
54

skipif mysql # not compatible
query II rowsort label-5842
SELECT + + 3 / - 60, + ( - - 26 ) * COUNT ( * ) + + 28 AS col2
----
0
54

query I rowsort
SELECT ALL 55 * - - 18 AS col0
----
990

onlyif mysql # aggregate syntax: 
query I rowsort label-5844
SELECT - 99 * - COUNT( * ) AS col2
----
99

skipif mysql # not compatible
query I rowsort label-5844
SELECT - 99 * - COUNT ( * ) AS col2
----
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5845
SELECT - 13 * + 54 + + 21 * NULLIF ( - CASE + 69 WHEN - 57 THEN + + 55 WHEN + 92 * 76 / - COUNT( * ) * - 54 * - CAST( - 83 AS SIGNED ) THEN - 72 - + 63 END, + 87 ) - - - 97
----
NULL

skipif mysql # not compatible
query I rowsort label-5845
SELECT - 13 * + 54 + + 21 * NULLIF ( - CASE + 69 WHEN - 57 THEN + + 55 WHEN + 92 * 76 / - COUNT ( * ) * - 54 * - CAST ( - 83 AS INTEGER ) THEN - 72 - + 63 END, + 87 ) - - - 97
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5846
SELECT + 66 * - 20 + 63 * + CAST( 90 AS SIGNED ) AS col0
----
4350

skipif mysql # not compatible
query I rowsort label-5846
SELECT + 66 * - 20 + 63 * + CAST ( 90 AS INTEGER ) AS col0
----
4350

onlyif mysql # DIV for integer division: 
query I rowsort label-5847
SELECT - 8 + + + ( - ( - ( ( - 49 ) ) ) ) DIV - 10 AS col2
----
-4

skipif mysql # not compatible
query I rowsort label-5847
SELECT - 8 + + + ( - ( - ( ( - 49 ) ) ) ) / - 10 AS col2
----
-4

onlyif mysql # aggregate syntax: 
query II rowsort label-5848
SELECT - 89 * - - 55 + - 46 AS col1, + COUNT( * )
----
-4941
1

skipif mysql # not compatible
query II rowsort label-5848
SELECT - 89 * - - 55 + - 46 AS col1, + COUNT ( * )
----
-4941
1

onlyif mysql # aggregate syntax: 
query II rowsort label-5849
SELECT MAX( - ( + 85 ) ) AS col1, - COALESCE ( - + 83, + + COUNT( * ), + 18 * + 8 ) * - 9
----
-85
-747

skipif mysql # not compatible
query II rowsort label-5849
SELECT MAX ( - ( + 85 ) ) AS col1, - COALESCE ( - + 83, + + COUNT ( * ), + 18 * + 8 ) * - 9
----
-85
-747

onlyif mysql # aggregate syntax: 
query I rowsort label-5850
SELECT ALL + 35 * - ( - 74 ) + - 72 * 63 * + 96 * + + COUNT( * ) - - 53 col2
----
-432813

skipif mysql # not compatible
query I rowsort label-5850
SELECT ALL + 35 * - ( - 74 ) + - 72 * 63 * + 96 * + + COUNT ( * ) - - 53 col2
----
-432813

onlyif mysql # aggregate syntax: 
query I rowsort label-5851
SELECT MAX( - + 46 ) col2
----
-46

skipif mysql # not compatible
query I rowsort label-5851
SELECT MAX ( - + 46 ) col2
----
-46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5852
SELECT + ( + + NULLIF ( 27, + + 57 * - - NULLIF ( - 56, + 30 / - ( - CAST( 44 AS SIGNED ) ) ) ) )
----
27

skipif mysql # not compatible
query I rowsort label-5852
SELECT + ( + + NULLIF ( 27, + + 57 * - - NULLIF ( - 56, + 30 / - ( - CAST ( 44 AS INTEGER ) ) ) ) )
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-5853
SELECT - COUNT( * ) * 44 AS col0
----
-44

skipif mysql # not compatible
query I rowsort label-5853
SELECT - COUNT ( * ) * 44 AS col0
----
-44

query I rowsort
SELECT - ( 87 ) + + ( 3 ) AS col0
----
-84

query I rowsort
SELECT DISTINCT + 56 * - 38 AS col1
----
-2128

query I rowsort
SELECT DISTINCT CASE 91 WHEN 9 + - 2 THEN - 1 * 88 * + + 54 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5857
SELECT ALL - 29 + - + 75 + - + CASE - - CASE + + 86 WHEN NULLIF ( + - 98, + 74 - - + 56 + + SUM( + 38 ) + - AVG ( 58 ) * - - 23 * - 99 + + + 88 * 74 ) + + - 2 THEN - 52 ELSE NULL END WHEN - NULLIF ( + + SUM( DISTINCT + 91 ), + - 72 ) THEN 96 / ( - 64 ) WHEN + - 55 THEN 68 + - NULLIF ( - + 22, - - CAST( - - 80 AS DECIMAL ) + - 28 ) + - - 12 + - 67 - CAST( NULL AS SIGNED ) END + - 37 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5857
SELECT ALL - 29 + - + 75 + - + CASE - - CASE + + 86 WHEN NULLIF ( + - 98, + 74 - - + 56 + + SUM ( + 38 ) + - AVG ( 58 ) * - - 23 * - 99 + + + 88 * 74 ) + + - 2 THEN - 52 ELSE NULL END WHEN - NULLIF ( + + SUM ( DISTINCT + 91 ), + - 72 ) THEN 96 / ( - 64 ) WHEN + - 55 THEN 68 + - NULLIF ( - + 22, - - CAST ( - - 80 AS REAL ) + - 28 ) + - - 12 + - 67 - CAST ( NULL AS INTEGER ) END + - 37 AS col2
----
NULL

query I rowsort
SELECT - 18 * + 84
----
-1512

query I rowsort
SELECT DISTINCT - 56 * - 69 AS col2
----
3864

onlyif mysql # DIV for integer division: 
query II rowsort label-5860
SELECT 30 col0, 31 + - 23 DIV 45 * + ( - + 55 ) AS col0
----
30
31

skipif mysql # not compatible
query II rowsort label-5860
SELECT 30 col0, 31 + - 23 / 45 * + ( - + 55 ) AS col0
----
30
31

query I rowsort
SELECT ALL - 30 + - - NULLIF ( + 91, + 7 ) AS col1
----
61

query I rowsort
SELECT - 82 * - - 70 AS col1
----
-5740

onlyif mysql # aggregate syntax: 
query II rowsort label-5863
SELECT 11 AS col1, 77 + CASE - 8 WHEN 63 THEN - 20 + + SUM( + + 80 ) WHEN 78 * + 94 THEN NULL ELSE NULL END AS col0
----
11
NULL

skipif mysql # not compatible
query II rowsort label-5863
SELECT 11 AS col1, 77 + CASE - 8 WHEN 63 THEN - 20 + + SUM ( + + 80 ) WHEN 78 * + 94 THEN NULL ELSE NULL END AS col0
----
11
NULL

query I rowsort
SELECT ALL + 66 + 17
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-5865
SELECT - COUNT( DISTINCT + + 99 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-5865
SELECT - COUNT ( DISTINCT + + 99 ) AS col2
----
-1

query II rowsort
SELECT - 54, + 96 AS col1
----
-54
96

onlyif mysql # aggregate syntax: 
query II rowsort label-5867
SELECT ALL COUNT( * ) col2, + 1
----
1
1

skipif mysql # not compatible
query II rowsort label-5867
SELECT ALL COUNT ( * ) col2, + 1
----
1
1

query I rowsort
SELECT - - 67 * - 52
----
-3484

query I rowsort
SELECT - + 93 - - 83
----
-10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5870
SELECT ALL CAST( - + 32 AS SIGNED )
----
-32

skipif mysql # not compatible
query I rowsort label-5870
SELECT ALL CAST ( - + 32 AS INTEGER )
----
-32

query I rowsort
SELECT ALL 44 * - - 59 + - - 98 + - 24 col2
----
2670

query I rowsort
SELECT + 83 * + 37 AS col0
----
3071

onlyif mysql # aggregate syntax: 
query I rowsort label-5873
SELECT ALL MIN( DISTINCT + 65 ) * + NULLIF ( 84, + 97 + + AVG ( - - 97 ) ) * - 62 + - + 83
----
-338603

skipif mysql # not compatible
query I rowsort label-5873
SELECT ALL MIN ( DISTINCT + 65 ) * + NULLIF ( 84, + 97 + + AVG ( - - 97 ) ) * - 62 + - + 83
----
-338603

onlyif mysql # DIV for integer division: 
query I rowsort label-5874
SELECT - 10 * - - 23 + 38 DIV 96
----
-230

skipif mysql # not compatible
query I rowsort label-5874
SELECT - 10 * - - 23 + 38 / 96
----
-230

onlyif mysql # aggregate syntax: 
query I rowsort label-5875
SELECT MIN( + ( 97 ) ) AS col0
----
97

skipif mysql # not compatible
query I rowsort label-5875
SELECT MIN ( + ( 97 ) ) AS col0
----
97

query I rowsort
SELECT ALL - + 14 * + 85 AS col0
----
-1190

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5877
SELECT + + COUNT( - 44 ) DIV - - 72 * + 9
----
0

skipif mysql # not compatible
query I rowsort label-5877
SELECT + + COUNT ( - 44 ) / - - 72 * + 9
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5878
SELECT ALL - + 95 DIV - 16 + - ( - - 73 ) AS col0
----
-68

skipif mysql # not compatible
query I rowsort label-5878
SELECT ALL - + 95 / - 16 + - ( - - 73 ) AS col0
----
-68

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5879
SELECT DISTINCT + 15 DIV + 99 * 97 + - 13 + - NULLIF ( - - 78, + 85 + 31 + ( 56 ) ), 15 * + COUNT( * ) AS col0
----
-91
15

skipif mysql # not compatible
query II rowsort label-5879
SELECT DISTINCT + 15 / + 99 * 97 + - 13 + - NULLIF ( - - 78, + 85 + 31 + ( 56 ) ), 15 * + COUNT ( * ) AS col0
----
-91
15

query I rowsort
SELECT + 67 - + 47
----
20

onlyif mysql # DIV for integer division: 
query I rowsort label-5881
SELECT - 79 DIV 98
----
0

skipif mysql # not compatible
query I rowsort label-5881
SELECT - 79 / 98
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5882
SELECT + 84 DIV - - 38
----
2

skipif mysql # not compatible
query I rowsort label-5882
SELECT + 84 / - - 38
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5883
SELECT ALL + 41 DIV - 76 * + 62 + - 39 * 75 + + COUNT( * ) col2, + 45 * 93 AS col0
----
-2924
4185

skipif mysql # not compatible
query II rowsort label-5883
SELECT ALL + 41 / - 76 * + 62 + - 39 * 75 + + COUNT ( * ) col2, + 45 * 93 AS col0
----
-2924
4185

query I rowsort
SELECT ALL - 57 * + + 9 + + + 6 AS col0
----
-507

onlyif mysql # aggregate syntax: 
query II rowsort label-5885
SELECT + CASE - 22 WHEN - COUNT( * ) THEN + COUNT( * ) ELSE NULL END AS col2, + SUM( + - 53 ) + - NULLIF ( + 49, - 59 * + COUNT( * ) ) AS col2
----
NULL
-102

skipif mysql # not compatible
query II rowsort label-5885
SELECT + CASE - 22 WHEN - COUNT ( * ) THEN + COUNT ( * ) ELSE NULL END AS col2, + SUM ( + - 53 ) + - NULLIF ( + 49, - 59 * + COUNT ( * ) ) AS col2
----
NULL
-102

onlyif mysql # aggregate syntax: 
query I rowsort label-5886
SELECT + CASE + 58 WHEN - 94 + NULLIF ( + 60, + 48 ) THEN NULL WHEN + 43 THEN NULL WHEN + 48 + ( - + 10 ) + - - 36 - - + 71 * - + 74 + - 48 + - 6 + - - 85 * - 94 + + - 70 THEN + 43 + + + 69 END * - CASE 30 WHEN - COUNT( * ) THEN + COUNT( DISTINCT ( + 69 ) ) * - + MIN( DISTINCT + 74 ) WHEN 3 THEN NULL ELSE NULL END + + 61
----
NULL

skipif mysql # not compatible
query I rowsort label-5886
SELECT + CASE + 58 WHEN - 94 + NULLIF ( + 60, + 48 ) THEN NULL WHEN + 43 THEN NULL WHEN + 48 + ( - + 10 ) + - - 36 - - + 71 * - + 74 + - 48 + - 6 + - - 85 * - 94 + + - 70 THEN + 43 + + + 69 END * - CASE 30 WHEN - COUNT ( * ) THEN + COUNT ( DISTINCT ( + 69 ) ) * - + MIN ( DISTINCT + 74 ) WHEN 3 THEN NULL ELSE NULL END + + 61
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5887
SELECT + CASE - 77 WHEN - 91 * + - 82 + + 80 - + + COUNT( * ) THEN + 63 / - + 27 * 95 / 52 * + + 97 + - - 90 WHEN 50 * + 79 THEN + 85 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5887
SELECT + CASE - 77 WHEN - 91 * + - 82 + + 80 - + + COUNT ( * ) THEN + 63 / - + 27 * 95 / 52 * + + 97 + - - 90 WHEN 50 * + 79 THEN + 85 END
----
NULL

query I rowsort
SELECT + 31 * - 50 AS col2
----
-1550

onlyif mysql # aggregate syntax: 
query I rowsort label-5889
SELECT - 22 * + COUNT( * ) + - 46 * - 8
----
346

skipif mysql # not compatible
query I rowsort label-5889
SELECT - 22 * + COUNT ( * ) + - 46 * - 8
----
346

onlyif mysql # DIV for integer division: 
query I rowsort label-5890
SELECT ALL 19 * - + 3 DIV - 85
----
0

skipif mysql # not compatible
query I rowsort label-5890
SELECT ALL 19 * - + 3 / - 85
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5891
SELECT DISTINCT 15 * 19 + - - 8 * - MIN( DISTINCT - 85 ) + - 22 * 4
----
877

skipif mysql # not compatible
query I rowsort label-5891
SELECT DISTINCT 15 * 19 + - - 8 * - MIN ( DISTINCT - 85 ) + - 22 * 4
----
877

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5892
SELECT DISTINCT CAST( NULL AS SIGNED ) * 8 * 44
----
NULL

skipif mysql # not compatible
query I rowsort label-5892
SELECT DISTINCT CAST ( NULL AS INTEGER ) * 8 * 44
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5893
SELECT 61 * 61 / + COUNT( * ) - - + CAST( NULL AS DECIMAL ) + - - CASE - - NULLIF ( MIN( DISTINCT - - 39 ), - + 77 ) WHEN + - ( - ( - + 63 ) ) - ( - + 53 ) THEN + COUNT( * ) WHEN 49 THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5893
SELECT 61 * 61 / + COUNT ( * ) - - + CAST ( NULL AS REAL ) + - - CASE - - NULLIF ( MIN ( DISTINCT - - 39 ), - + 77 ) WHEN + - ( - ( - + 63 ) ) - ( - + 53 ) THEN + COUNT ( * ) WHEN 49 THEN NULL END AS col2
----
NULL

query I rowsort
SELECT ALL 83 * + 31 AS col2
----
2573

onlyif mysql # aggregate syntax: 
query I rowsort label-5895
SELECT COALESCE ( - - ( 7 ), + COUNT( - + 43 ), COUNT( * ) ) col2
----
7

skipif mysql # not compatible
query I rowsort label-5895
SELECT COALESCE ( - - ( 7 ), + COUNT ( - + 43 ), COUNT ( * ) ) col2
----
7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5896
SELECT + 65 + + - COALESCE ( + - NULLIF ( 75, - - 36 * - 78 ), + + 20, - 45 DIV - - NULLIF ( + 54, - AVG ( DISTINCT - + 48 ) + - + 65 + + + COUNT( * ) DIV 26 ) )
----
140

skipif mysql # not compatible
query I rowsort label-5896
SELECT + 65 + + - COALESCE ( + - NULLIF ( 75, - - 36 * - 78 ), + + 20, - 45 / - - NULLIF ( + 54, - AVG ( DISTINCT - + 48 ) + - + 65 + + + COUNT ( * ) / 26 ) )
----
140

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5897
SELECT ALL CAST( NULL AS SIGNED ) * - 4 - + - 76 - - 56 + 84 * MIN( 72 ) + + CASE - 64 WHEN + 77 THEN + CAST( + 68 AS SIGNED ) * + + 30 + - - 1 + - - COALESCE ( + 14, MAX( ALL - 79 ) * - 43 + 25 + + - ( - 87 ) ) END * + 56 / + 90 * - 83 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5897
SELECT ALL CAST ( NULL AS INTEGER ) * - 4 - + - 76 - - 56 + 84 * MIN ( 72 ) + + CASE - 64 WHEN + 77 THEN + CAST ( + 68 AS INTEGER ) * + + 30 + - - 1 + - - COALESCE ( + 14, MAX ( ALL - 79 ) * - 43 + 25 + + - ( - 87 ) ) END * + 56 / + 90 * - 83 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5898
SELECT + SUM( - 66 ) + - - COUNT( * ) AS col2
----
-65

skipif mysql # not compatible
query I rowsort label-5898
SELECT + SUM ( - 66 ) + - - COUNT ( * ) AS col2
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-5899
SELECT MIN( ALL + 64 ) * - 57 + + 3 * 10 * - + 58 AS col1
----
-5388

skipif mysql # not compatible
query I rowsort label-5899
SELECT MIN ( ALL + 64 ) * - 57 + + 3 * 10 * - + 58 AS col1
----
-5388

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5900
SELECT - 64 - + 13 * - - CAST( + - 45 AS SIGNED ) AS col0, - 82 - - 25 AS col2
----
521
-57

skipif mysql # not compatible
query II rowsort label-5900
SELECT - 64 - + 13 * - - CAST ( + - 45 AS INTEGER ) AS col0, - 82 - - 25 AS col2
----
521
-57

query I rowsort
SELECT DISTINCT NULLIF ( 89, - - 87 ) AS col1
----
89

onlyif mysql # DIV for integer division: 
query I rowsort label-5902
SELECT + NULLIF ( - 76, + 55 ) + - + 82 DIV + 31 AS col2
----
-78

skipif mysql # not compatible
query I rowsort label-5902
SELECT + NULLIF ( - 76, + 55 ) + - + 82 / + 31 AS col2
----
-78

query II rowsort
SELECT - 68, 60 AS col1
----
-68
60

query II rowsort
SELECT ALL - 19 * - + 29 AS col1, - 1
----
551
-1

query I rowsort
SELECT - + 13 + 14
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5906
SELECT - + 97 * + COUNT( * ) - - 8 AS col1
----
-89

skipif mysql # not compatible
query I rowsort label-5906
SELECT - + 97 * + COUNT ( * ) - - 8 AS col1
----
-89

onlyif mysql # DIV for integer division: 
query I rowsort label-5907
SELECT DISTINCT 74 DIV - 1 AS col2
----
-74

skipif mysql # not compatible
query I rowsort label-5907
SELECT DISTINCT 74 / - 1 AS col2
----
-74

query I rowsort
SELECT - 18 + + 52
----
34

query I rowsort
SELECT - + 64 * - - 79 AS col2
----
-5056

query I rowsort
SELECT ALL - + CASE - 90 WHEN 65 THEN NULL ELSE + 39 END * + 61 AS col2
----
-2379

onlyif mysql # aggregate syntax: 
query II rowsort label-5911
SELECT DISTINCT 89 AS col0, MIN( + - 98 )
----
89
-98

skipif mysql # not compatible
query II rowsort label-5911
SELECT DISTINCT 89 AS col0, MIN ( + - 98 )
----
89
-98

onlyif mysql # aggregate syntax: 
query II rowsort label-5912
SELECT - COUNT( * ) + 12 + 60 + 59 * - 61 - - 64 * + + 3 col0, + 58
----
-3336
58

skipif mysql # not compatible
query II rowsort label-5912
SELECT - COUNT ( * ) + 12 + 60 + 59 * - 61 - - 64 * + + 3 col0, + 58
----
-3336
58

onlyif mysql # aggregate syntax: 
query I rowsort label-5913
SELECT 39 + - 37 * 8 * - COUNT( * )
----
335

skipif mysql # not compatible
query I rowsort label-5913
SELECT 39 + - 37 * 8 * - COUNT ( * )
----
335

query II rowsort
SELECT - 17, 50 + - + 47 AS col2
----
-17
3

onlyif mysql # aggregate syntax: 
query II rowsort label-5915
SELECT 57, + COUNT( * ) + + + 75 + + + 17 * - 89 * + 15 AS col1
----
57
-22619

skipif mysql # not compatible
query II rowsort label-5915
SELECT 57, + COUNT ( * ) + + + 75 + + + 17 * - 89 * + 15 AS col1
----
57
-22619

onlyif mysql # DIV for integer division: 
query I rowsort label-5916
SELECT ALL - 75 DIV 86 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5916
SELECT ALL - 75 / 86 AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5917
SELECT 50 AS col0, + 23 - 37 - + 77 + - 76 - + + 41 DIV - - MIN( ALL + - 95 ) + - MIN( + 64 ) * 34
----
50
-2343

skipif mysql # not compatible
query II rowsort label-5917
SELECT 50 AS col0, + 23 - 37 - + 77 + - 76 - + + 41 / - - MIN ( ALL + - 95 ) + - MIN ( + 64 ) * 34
----
50
-2343

query I rowsort
SELECT ALL - - 62 * + 22 * - ( + 70 ) AS col2
----
-95480

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5919
SELECT + 21 * - CAST( NULL AS SIGNED ) * + 0
----
NULL

skipif mysql # not compatible
query I rowsort label-5919
SELECT + 21 * - CAST ( NULL AS INTEGER ) * + 0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5920
SELECT DISTINCT - CASE - + 30 WHEN COUNT( * ) THEN - 87 * + 12 / + 88 END + - 76 + + + 98
----
NULL

skipif mysql # not compatible
query I rowsort label-5920
SELECT DISTINCT - CASE - + 30 WHEN COUNT ( * ) THEN - 87 * + 12 / + 88 END + - 76 + + + 98
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5921
SELECT ALL + SUM( - ( 19 ) ) + + + ( - 32 ) AS col1
----
-51

skipif mysql # not compatible
query I rowsort label-5921
SELECT ALL + SUM ( - ( 19 ) ) + + + ( - 32 ) AS col1
----
-51

query II rowsort
SELECT - - 96, + 26 + - 80 * - - 54 * + - 60 AS col1
----
96
259226

onlyif mysql # aggregate syntax: 
query I rowsort label-5923
SELECT ALL 87 + ( - SUM( - 96 ) ) AS col2
----
183

skipif mysql # not compatible
query I rowsort label-5923
SELECT ALL 87 + ( - SUM ( - 96 ) ) AS col2
----
183

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5924
SELECT DISTINCT - 23 + + MAX( 65 ) - ( NULLIF ( + 97, - 63 ) ) + - 92 DIV - - NULLIF ( - 33, 94 * 92 )
----
-53

skipif mysql # not compatible
query I rowsort label-5924
SELECT DISTINCT - 23 + + MAX ( 65 ) - ( NULLIF ( + 97, - 63 ) ) + - 92 / - - NULLIF ( - 33, 94 * 92 )
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-5925
SELECT + + SUM( DISTINCT + NULLIF ( - - 56, + - ( - 64 ) ) ) col0
----
56

skipif mysql # not compatible
query I rowsort label-5925
SELECT + + SUM ( DISTINCT + NULLIF ( - - 56, + - ( - 64 ) ) ) col0
----
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5926
SELECT ALL - MAX( - 10 ) + + CAST( + 90 AS SIGNED ) + 48 + + 74 * + 1 + + - 70 * + 14 - CAST( + + ( + 24 ) AS SIGNED ) * - + COUNT( - 23 ) - 9
----
-743

skipif mysql # not compatible
query I rowsort label-5926
SELECT ALL - MAX ( - 10 ) + + CAST ( + 90 AS INTEGER ) + 48 + + 74 * + 1 + + - 70 * + 14 - CAST ( + + ( + 24 ) AS INTEGER ) * - + COUNT ( - 23 ) - 9
----
-743

onlyif mysql # aggregate syntax: 
query II rowsort label-5927
SELECT DISTINCT - ( + 26 ) AS col1, + 72 * + + COUNT( * )
----
-26
72

skipif mysql # not compatible
query II rowsort label-5927
SELECT DISTINCT - ( + 26 ) AS col1, + 72 * + + COUNT ( * )
----
-26
72

query I rowsort
SELECT 39 * 10
----
390

query I rowsort
SELECT ALL - 74 * - - 9
----
-666

query I rowsort
SELECT DISTINCT 37 + + + 50
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-5931
SELECT DISTINCT - MAX( - 79 ) * COUNT( * ) AS col0
----
79

skipif mysql # not compatible
query I rowsort label-5931
SELECT DISTINCT - MAX ( - 79 ) * COUNT ( * ) AS col0
----
79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5932
SELECT ALL - CAST( SUM( ALL - - NULLIF ( + 15, - 26 ) ) AS SIGNED )
----
-15

skipif mysql # not compatible
query I rowsort label-5932
SELECT ALL - CAST ( SUM ( ALL - - NULLIF ( + 15, - 26 ) ) AS INTEGER )
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-5933
SELECT 64 * + COUNT( * ) / + CASE + AVG ( - 25 ) WHEN COALESCE ( - ( + + COUNT( * ) ), - 23 + - 96, 51 + + 27 - + 83 + + NULLIF ( 41, + + MAX( DISTINCT + + 23 ) + 36 ) * AVG ( ALL - 28 ) * 10 * - 11 * + - 14 * + ( + ( 33 ) ) - + 89 + COUNT( * ), + NULLIF ( 21, + 87 ) * - + 50 + + + 91 - SUM( - 42 ) - - - COALESCE ( - + 34, 48 + 71 * 10 ) * 28 ) / + 27 THEN + COALESCE ( - 43, 39 ) + 94 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5933
SELECT 64 * + COUNT ( * ) / + CASE + AVG ( - 25 ) WHEN COALESCE ( - ( + + COUNT ( * ) ), - 23 + - 96, 51 + + 27 - + 83 + + NULLIF ( 41, + + MAX ( DISTINCT + + 23 ) + 36 ) * AVG ( ALL - 28 ) * 10 * - 11 * + - 14 * + ( + ( 33 ) ) - + 89 + COUNT ( * ), + NULLIF ( 21, + 87 ) * - + 50 + + + 91 - SUM ( - 42 ) - - - COALESCE ( - + 34, 48 + 71 * 10 ) * 28 ) / + 27 THEN + COALESCE ( - 43, 39 ) + 94 END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5934
SELECT ( + - 48 ) * - 8 + + 74 + + 69 + - COALESCE ( + 96, + ( - - COUNT( * ) ) + - NULLIF ( - 26, + COUNT( * ) ) * - AVG ( - 34 ) DIV + - COALESCE ( - 84, 79 + + CAST( NULL AS SIGNED ) ) + CAST( NULL AS SIGNED ), + 4 ) + COUNT( DISTINCT + NULLIF ( + 65, + CAST( + 40 AS SIGNED ) ) ) * + + 23 AS col2
----
454

skipif mysql # not compatible
query I rowsort label-5934
SELECT ( + - 48 ) * - 8 + + 74 + + 69 + - COALESCE ( + 96, + ( - - COUNT ( * ) ) + - NULLIF ( - 26, + COUNT ( * ) ) * - AVG ( - 34 ) / + - COALESCE ( - 84, 79 + + CAST ( NULL AS INTEGER ) ) + CAST ( NULL AS INTEGER ), + 4 ) + COUNT ( DISTINCT + NULLIF ( + 65, + CAST ( + 40 AS INTEGER ) ) ) * + + 23 AS col2
----
454

onlyif mysql # DIV for integer division: 
query I rowsort label-5935
SELECT ALL 36 DIV 84
----
0

skipif mysql # not compatible
query I rowsort label-5935
SELECT ALL 36 / 84
----
0

query I rowsort
SELECT 64 * - 75 AS col0
----
-4800

onlyif mysql # aggregate syntax: 
query II rowsort label-5937
SELECT DISTINCT 88 * - COUNT( * ) AS col2, 16 AS col0
----
-88
16

skipif mysql # not compatible
query II rowsort label-5937
SELECT DISTINCT 88 * - COUNT ( * ) AS col2, 16 AS col0
----
-88
16

query I rowsort
SELECT DISTINCT 64 * + 28 AS col0
----
1792

query I rowsort
SELECT ALL ( - - 37 ) * - 82
----
-3034

query I rowsort
SELECT DISTINCT + 98 - - 30
----
128

onlyif mysql # aggregate syntax: 
query II rowsort label-5941
SELECT ALL + COUNT( ALL + + 12 ) col2, - 85
----
1
-85

skipif mysql # not compatible
query II rowsort label-5941
SELECT ALL + COUNT ( ALL + + 12 ) col2, - 85
----
1
-85

query II rowsort
SELECT - 60 * 94, 44 + - 48 AS col0
----
-5640
-4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5943
SELECT ALL - 46 + - 67 + CAST( NULL AS SIGNED ) / - MIN( DISTINCT 86 ) / 33
----
NULL

skipif mysql # not compatible
query I rowsort label-5943
SELECT ALL - 46 + - 67 + CAST ( NULL AS INTEGER ) / - MIN ( DISTINCT 86 ) / 33
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5944
SELECT 41 * - + ( - - 32 ) * + COUNT( * ) + + 38 + - COALESCE ( + 54, - ( - 61 ), 63 ) + 14 * - 82 * 20 - - MAX( DISTINCT + 67 ) + 74 * + - 20 * COUNT( * ) AS col0, - 14
----
-25701
-14

skipif mysql # not compatible
query II rowsort label-5944
SELECT 41 * - + ( - - 32 ) * + COUNT ( * ) + + 38 + - COALESCE ( + 54, - ( - 61 ), 63 ) + 14 * - 82 * 20 - - MAX ( DISTINCT + 67 ) + 74 * + - 20 * COUNT ( * ) AS col0, - 14
----
-25701
-14

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5945
SELECT 34 DIV - 56 + + 59 col1, 1 + + + CASE + + 96 WHEN + 59 * + COUNT( * ) THEN NULL ELSE 45 END
----
59
46

skipif mysql # not compatible
query II rowsort label-5945
SELECT 34 / - 56 + + 59 col1, 1 + + + CASE + + 96 WHEN + 59 * + COUNT ( * ) THEN NULL ELSE 45 END
----
59
46

onlyif mysql # DIV for integer division: 
query I rowsort label-5946
SELECT ALL 93 + 79 - - + 4 * - 94 DIV 82 AS col0
----
168

skipif mysql # not compatible
query I rowsort label-5946
SELECT ALL 93 + 79 - - + 4 * - 94 / 82 AS col0
----
168

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5947
SELECT 64 - CAST( + + 32 AS SIGNED ) AS col1
----
32

skipif mysql # not compatible
query I rowsort label-5947
SELECT 64 - CAST ( + + 32 AS INTEGER ) AS col1
----
32

query I rowsort
SELECT ALL - + 51 + - 4 * + 98 * + 34 AS col0
----
-13379

query I rowsort
SELECT 13 + - + 88
----
-75

query I rowsort
SELECT COALESCE ( - 73, 75 ) * + 63
----
-4599

query I rowsort
SELECT - + ( - 59 )
----
59

query I rowsort
SELECT 30 + - - 59
----
89

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-5953
SELECT ALL - 20 AS col1, + COUNT( * ) * + 4 DIV 42 AS col2, COALESCE ( + + 44, + MAX( ALL + 72 ) ) DIV - 2
----
-20
0
-22

skipif mysql # not compatible
query III rowsort label-5953
SELECT ALL - 20 AS col1, + COUNT ( * ) * + 4 / 42 AS col2, COALESCE ( + + 44, + MAX ( ALL + 72 ) ) / - 2
----
-20
0
-22

query I rowsort
SELECT ALL - CASE + 14 WHEN - 91 / + 80 THEN 83 END col1
----
NULL

query I rowsort
SELECT DISTINCT 31 * 60 AS col2
----
1860

query II rowsort
SELECT + 89 AS col1, 59 + + - 57 * - 50
----
89
2909

query II rowsort
SELECT DISTINCT 76 * - + 84 - + + 33 AS col2, - 33
----
-6417
-33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5958
SELECT + 38 * 89 * - CAST( NULLIF ( 59, 3 ) AS SIGNED ) + - 78 AS col2
----
-199616

skipif mysql # not compatible
query I rowsort label-5958
SELECT + 38 * 89 * - CAST ( NULLIF ( 59, 3 ) AS INTEGER ) + - 78 AS col2
----
-199616

query I rowsort
SELECT DISTINCT - 25 * 74 * 6
----
-11100

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5960
SELECT COUNT( * ) * CASE - - COUNT( + + 81 ) WHEN + ( + 65 ) * + CASE COUNT( * ) WHEN - + COALESCE ( + + 36, + - 34 + - - COUNT( * ) ) * - + 99 + - + 53 * 66 THEN + - 12 + + + COUNT( * ) END * + 17 - + CASE 73 WHEN + 37 THEN NULL WHEN 58 * - - 14 * CAST( NULL AS SIGNED ) * - COUNT( * ) / - 47 THEN + - 30 END + + 9 * - 79 * + 59 + + 4 * - 65 + CAST( NULL AS SIGNED ) - - 0 / + 73 THEN + + 32 * - + 53 + - - COALESCE ( 39, COALESCE ( + 63, 9 ) / 94 ) WHEN 37 * 95 THEN NULL END - - 34
----
NULL

skipif mysql # not compatible
query I rowsort label-5960
SELECT COUNT ( * ) * CASE - - COUNT ( + + 81 ) WHEN + ( + 65 ) * + CASE COUNT ( * ) WHEN - + COALESCE ( + + 36, + - 34 + - - COUNT ( * ) ) * - + 99 + - + 53 * 66 THEN + - 12 + + + COUNT ( * ) END * + 17 - + CASE 73 WHEN + 37 THEN NULL WHEN 58 * - - 14 * CAST ( NULL AS INTEGER ) * - COUNT ( * ) / - 47 THEN + - 30 END + + 9 * - 79 * + 59 + + 4 * - 65 + CAST ( NULL AS INTEGER ) - - 0 / + 73 THEN + + 32 * - + 53 + - - COALESCE ( 39, COALESCE ( + 63, 9 ) / 94 ) WHEN 37 * 95 THEN NULL END - - 34
----
NULL

query I rowsort
SELECT 64 + + - ( + 95 ) + - - 1 * + 88
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-5962
SELECT MAX( + 0 ) * - 71 - + - 55 * 93 AS col0
----
5115

skipif mysql # not compatible
query I rowsort label-5962
SELECT MAX ( + 0 ) * - 71 - + - 55 * 93 AS col0
----
5115

query II rowsort
SELECT DISTINCT - 38 AS col0, 17
----
-38
17

onlyif mysql # aggregate syntax: 
query II rowsort label-5964
SELECT ALL - 9, 75 * + COUNT( * ) col0
----
-9
75

skipif mysql # not compatible
query II rowsort label-5964
SELECT ALL - 9, 75 * + COUNT ( * ) col0
----
-9
75

query I rowsort
SELECT DISTINCT + 26 * + 31 AS col2
----
806

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5966
SELECT COUNT( - ( - 97 ) ) * - - 47 + - CAST( + 33 AS SIGNED ) AS col2, 53 DIV + COUNT( DISTINCT 37 ) AS col0
----
14
53

skipif mysql # not compatible
query II rowsort label-5966
SELECT COUNT ( - ( - 97 ) ) * - - 47 + - CAST ( + 33 AS INTEGER ) AS col2, 53 / + COUNT ( DISTINCT 37 ) AS col0
----
14
53

query I rowsort
SELECT ALL - COALESCE ( + + 48, - 90 )
----
-48

onlyif mysql # aggregate syntax: 
query II rowsort label-5968
SELECT DISTINCT - 28 AS col1, - COUNT( * ) + - 63 + - - 66 AS col2
----
-28
2

skipif mysql # not compatible
query II rowsort label-5968
SELECT DISTINCT - 28 AS col1, - COUNT ( * ) + - 63 + - - 66 AS col2
----
-28
2

onlyif mysql # aggregate syntax: 
query I rowsort label-5969
SELECT ALL - NULLIF ( - COUNT( * ), + 49 - - 89 / - - 16 * + 28 * MAX( ALL 94 ) )
----
1

skipif mysql # not compatible
query I rowsort label-5969
SELECT ALL - NULLIF ( - COUNT ( * ), + 49 - - 89 / - - 16 * + 28 * MAX ( ALL 94 ) )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5970
SELECT - - COUNT( * ) DIV - + COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-5970
SELECT - - COUNT ( * ) / - + COUNT ( * )
----
-1

query I rowsort
SELECT - + 19 + 57
----
38

query I rowsort
SELECT - + 61 * 56
----
-3416

query I rowsort
SELECT + 36 - - 25 AS col1
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-5974
SELECT + 80 + 96 - - 63 * - CASE - - CASE - CASE + 65 WHEN + - MIN( DISTINCT - - 68 ) + 3 THEN 34 END WHEN + 74 * - 47 + - + 83 * - COUNT( * ) THEN NULL WHEN - 8 THEN NULL ELSE + COUNT( * ) END WHEN + 77 / + COUNT( * ) * + 23 * COALESCE ( - - 11, + 61 ) * + 61 * - 28 * - - 77 + + + MIN( ALL + 62 ) * - 4 THEN NULL WHEN + ( + COUNT( * ) ) * 25 THEN NULL ELSE - 35 END * + 16
----
35456

skipif mysql # not compatible
query I rowsort label-5974
SELECT + 80 + 96 - - 63 * - CASE - - CASE - CASE + 65 WHEN + - MIN ( DISTINCT - - 68 ) + 3 THEN 34 END WHEN + 74 * - 47 + - + 83 * - COUNT ( * ) THEN NULL WHEN - 8 THEN NULL ELSE + COUNT ( * ) END WHEN + 77 / + COUNT ( * ) * + 23 * COALESCE ( - - 11, + 61 ) * + 61 * - 28 * - - 77 + + + MIN ( ALL + 62 ) * - 4 THEN NULL WHEN + ( + COUNT ( * ) ) * 25 THEN NULL ELSE - 35 END * + 16
----
35456

onlyif mysql # aggregate syntax: 
query I rowsort label-5975
SELECT ALL 19 * + - COUNT( * ) AS col2
----
-19

skipif mysql # not compatible
query I rowsort label-5975
SELECT ALL 19 * + - COUNT ( * ) AS col2
----
-19

query II rowsort
SELECT 49 AS col2, - 89 * + 41 AS col1
----
49
-3649

query I rowsort
SELECT + + 29 + - - 52 AS col0
----
81

query II rowsort
SELECT - COALESCE ( + - 34, + 90 ), + 68 * 96 AS col0
----
34
6528

query I rowsort
SELECT + - 54 + - + 39
----
-93

onlyif mysql # aggregate syntax: 
query II rowsort label-5980
SELECT - + COUNT( * ) AS col0, - 83 AS col0
----
-1
-83

skipif mysql # not compatible
query II rowsort label-5980
SELECT - + COUNT ( * ) AS col0, - 83 AS col0
----
-1
-83

query II rowsort
SELECT + 47 AS col2, + ( 95 ) AS col2
----
47
95

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5982
SELECT - + MAX( 90 ) + + 33 * - CAST( NULL AS DECIMAL ) + 55 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5982
SELECT - + MAX ( 90 ) + + 33 * - CAST ( NULL AS REAL ) + 55 AS col2
----
NULL

query I rowsort
SELECT ALL + 74 + - - ( ( - + 69 ) )
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-5984
SELECT - 66 * - - MIN( DISTINCT - + 48 ) * + - 15 col2
----
-47520

skipif mysql # not compatible
query I rowsort label-5984
SELECT - 66 * - - MIN ( DISTINCT - + 48 ) * + - 15 col2
----
-47520

onlyif mysql # DIV for integer division: 
query I rowsort label-5985
SELECT DISTINCT 61 - 3 + + ( + 89 ) DIV + 18 - + 9 * + 94
----
-784

skipif mysql # not compatible
query I rowsort label-5985
SELECT DISTINCT 61 - 3 + + ( + 89 ) / + 18 - + 9 * + 94
----
-784

query II rowsort
SELECT ALL + 11 - 68 AS col1, + 95 + - - 99 - - - 66 AS col0
----
-57
128

onlyif mysql # aggregate syntax: 
query I rowsort label-5987
SELECT + COUNT( * ) * - 95
----
-95

skipif mysql # not compatible
query I rowsort label-5987
SELECT + COUNT ( * ) * - 95
----
-95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5988
SELECT DISTINCT CAST( NULL AS SIGNED ) - + + 74 + + + COUNT( * ) * + MAX( DISTINCT 2 ) + + COALESCE ( + AVG ( - - 44 ), - 49, - - COUNT( * ), + + 42 ) * + 73 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5988
SELECT DISTINCT CAST ( NULL AS INTEGER ) - + + 74 + + + COUNT ( * ) * + MAX ( DISTINCT 2 ) + + COALESCE ( + AVG ( - - 44 ), - 49, - - COUNT ( * ), + + 42 ) * + 73 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5989
SELECT ALL NULLIF ( - - 36, - MAX( DISTINCT + 94 ) )
----
36

skipif mysql # not compatible
query I rowsort label-5989
SELECT ALL NULLIF ( - - 36, - MAX ( DISTINCT + 94 ) )
----
36

onlyif mysql # DIV for integer division: 
query I rowsort label-5990
SELECT - ( + + ( + 72 ) ) DIV + - 48
----
1

skipif mysql # not compatible
query I rowsort label-5990
SELECT - ( + + ( + 72 ) ) / + - 48
----
1

query I rowsort
SELECT ALL 60 * 29 AS col1
----
1740

onlyif mysql # aggregate syntax: 
query I rowsort label-5992
SELECT + SUM( ALL 17 ) * - - 55 * + 63 AS col2
----
58905

skipif mysql # not compatible
query I rowsort label-5992
SELECT + SUM ( ALL 17 ) * - - 55 * + 63 AS col2
----
58905

onlyif mysql # aggregate syntax: 
query I rowsort label-5993
SELECT - ( - + COUNT( * ) ) * ( + 68 ) col1
----
68

skipif mysql # not compatible
query I rowsort label-5993
SELECT - ( - + COUNT ( * ) ) * ( + 68 ) col1
----
68

query II rowsort
SELECT ( + - 27 ) AS col2, - 90 + + 43 AS col1
----
-27
-47

query I rowsort
SELECT ( 9 ) AS col0
----
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5996
SELECT COUNT( * ) * 44 + + 63 + + + ( - COALESCE ( + COUNT( * ), 69 * NULLIF ( 97, + ( NULLIF ( - 97, - 90 ) ) * - - 10 ) * 33 * 71 + - + 10 DIV + 94 + - 44 ) ) AS col0
----
106

skipif mysql # not compatible
query I rowsort label-5996
SELECT COUNT ( * ) * 44 + + 63 + + + ( - COALESCE ( + COUNT ( * ), 69 * NULLIF ( 97, + ( NULLIF ( - 97, - 90 ) ) * - - 10 ) * 33 * 71 + - + 10 / + 94 + - 44 ) ) AS col0
----
106

query I rowsort
SELECT + 34 * + - 32 + - - 98
----
-990

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5998
SELECT ( CAST( - 69 AS SIGNED ) ) AS col2
----
-69

skipif mysql # not compatible
query I rowsort label-5998
SELECT ( CAST ( - 69 AS INTEGER ) ) AS col2
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-5999
SELECT - 6 + COUNT( ALL - 62 )
----
-5

skipif mysql # not compatible
query I rowsort label-5999
SELECT - 6 + COUNT ( ALL - 62 )
----
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6000
SELECT ALL + CASE + 70 WHEN - - 69 THEN NULL WHEN - ( + 52 ) - - - 9 + + 30 THEN + - COALESCE ( - 62, + MAX( DISTINCT 56 ) + - ( 22 ), - 61 * + 91, + COUNT( * ) * - - ( 90 ) ) * CAST( NULL AS DECIMAL ) / + - 12 ELSE NULL END * CAST( - - 58 AS SIGNED ) * - 91
----
NULL

skipif mysql # not compatible
query I rowsort label-6000
SELECT ALL + CASE + 70 WHEN - - 69 THEN NULL WHEN - ( + 52 ) - - - 9 + + 30 THEN + - COALESCE ( - 62, + MAX ( DISTINCT 56 ) + - ( 22 ), - 61 * + 91, + COUNT ( * ) * - - ( 90 ) ) * CAST ( NULL AS REAL ) / + - 12 ELSE NULL END * CAST ( - - 58 AS INTEGER ) * - 91
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6001
SELECT - SUM( DISTINCT - 57 ) * + CASE 55 WHEN - + ( - + 92 ) * + 54 + COUNT( * ) THEN 89 * + 51 * 52 END + + + 53 * 80 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6001
SELECT - SUM ( DISTINCT - 57 ) * + CASE 55 WHEN - + ( - + 92 ) * + 54 + COUNT ( * ) THEN 89 * + 51 * 52 END + + + 53 * 80 AS col0
----
NULL

query I rowsort
SELECT NULLIF ( - - NULLIF ( - 46, + 49 + + 20 * - + 55 * 93 ), + + 32 )
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-6003
SELECT - CASE - ( - - 47 ) WHEN - - 64 THEN + + COUNT( * ) * + - COUNT( 0 ) WHEN - 11 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6003
SELECT - CASE - ( - - 47 ) WHEN - - 64 THEN + + COUNT ( * ) * + - COUNT ( 0 ) WHEN - 11 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6004
SELECT - COUNT( * ) * + 90 * + 15 + + 18 + 6 - - ( NULLIF ( - - 1, - COUNT( - 4 ) ) ) col0
----
-1325

skipif mysql # not compatible
query I rowsort label-6004
SELECT - COUNT ( * ) * + 90 * + 15 + + 18 + 6 - - ( NULLIF ( - - 1, - COUNT ( - 4 ) ) ) col0
----
-1325

onlyif mysql # aggregate syntax: 
query I rowsort label-6005
SELECT ALL - + 49 * ( 98 ) + COUNT( * ) + + COUNT( DISTINCT + 89 )
----
-4800

skipif mysql # not compatible
query I rowsort label-6005
SELECT ALL - + 49 * ( 98 ) + COUNT ( * ) + + COUNT ( DISTINCT + 89 )
----
-4800

query I rowsort
SELECT - 51 * - 42 AS col0
----
2142

onlyif mysql # aggregate syntax: 
query I rowsort label-6007
SELECT - - 28 * 14 * - + 39 * 2 + + 53 * - CASE + 71 WHEN + + 4 + - 27 THEN + 52 WHEN - - 92 * + - 94 + + - ( COUNT( ALL - 80 ) ) THEN 47 / - ( - - 23 ) END * 79
----
NULL

skipif mysql # not compatible
query I rowsort label-6007
SELECT - - 28 * 14 * - + 39 * 2 + + 53 * - CASE + 71 WHEN + + 4 + - 27 THEN + 52 WHEN - - 92 * + - 94 + + - ( COUNT ( ALL - 80 ) ) THEN 47 / - ( - - 23 ) END * 79
----
NULL

query I rowsort
SELECT ALL + - ( - 72 )
----
72

onlyif mysql # DIV for integer division: 
query I rowsort label-6009
SELECT - 78 DIV + 40 + ( - 95 ) * 65
----
-6176

skipif mysql # not compatible
query I rowsort label-6009
SELECT - 78 / + 40 + ( - 95 ) * 65
----
-6176

onlyif mysql # aggregate syntax: 
query I rowsort label-6010
SELECT ALL - 13 * - 87 + + - CASE 74 WHEN + 80 * + 72 * + 22 + - + 85 + + + 14 * 96 + - + 97 THEN - 82 * - - CASE - 32 WHEN ( - 72 ) / 14 * 74 * + 43 + 18 THEN + COUNT( * ) END END + - - 25 + - 98 * - 80 * - - 76 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6010
SELECT ALL - 13 * - 87 + + - CASE 74 WHEN + 80 * + 72 * + 22 + - + 85 + + + 14 * 96 + - + 97 THEN - 82 * - - CASE - 32 WHEN ( - 72 ) / 14 * 74 * + 43 + 18 THEN + COUNT ( * ) END END + - - 25 + - 98 * - 80 * - - 76 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6011
SELECT SUM( 44 ) AS col1
----
44

skipif mysql # not compatible
query I rowsort label-6011
SELECT SUM ( 44 ) AS col1
----
44

query I rowsort
SELECT - + NULLIF ( 54, + - 38 + - - 0 + 75 - - 60 ) col0
----
-54

query I rowsort
SELECT + - 58 * + + 61 col2
----
-3538

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6014
SELECT DISTINCT - - COUNT( * ) DIV + - 78
----
0

skipif mysql # not compatible
query I rowsort label-6014
SELECT DISTINCT - - COUNT ( * ) / + - 78
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6015
SELECT - 80 - - + 48 + - + CAST( 58 AS DECIMAL ) * MAX( ALL + 40 ) / - + ( ( CAST( NULL AS SIGNED ) ) ) + + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6015
SELECT - 80 - - + 48 + - + CAST ( 58 AS REAL ) * MAX ( ALL + 40 ) / - + ( ( CAST ( NULL AS INTEGER ) ) ) + + COUNT ( * ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6016
SELECT ALL - 12 * - - COUNT( * ) AS col0, - ( + 66 ) AS col1
----
-12
-66

skipif mysql # not compatible
query II rowsort label-6016
SELECT ALL - 12 * - - COUNT ( * ) AS col0, - ( + 66 ) AS col1
----
-12
-66

query I rowsort
SELECT DISTINCT 38 * - - 58 AS col1
----
2204

onlyif mysql # aggregate syntax: 
query I rowsort label-6018
SELECT ALL - + COUNT( ALL + 63 ) * + ( 96 ) + 60 - + 21 + + - 22 * + - 58
----
1219

skipif mysql # not compatible
query I rowsort label-6018
SELECT ALL - + COUNT ( ALL + 63 ) * + ( 96 ) + 60 - + 21 + + - 22 * + - 58
----
1219

query I rowsort
SELECT - ( + + 93 )
----
-93

query I rowsort
SELECT DISTINCT 25 - 21 AS col0
----
4

query I rowsort
SELECT ALL 84 * + 45
----
3780

query I rowsort
SELECT + 19 + 2 AS col0
----
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6023
SELECT + ( SUM( ALL + - 98 ) ) + CASE 7 WHEN - 28 + + COUNT( + + CAST( + - ( 38 ) AS SIGNED ) ) THEN 45 + 96 + 84 - - NULLIF ( + 90, + + 8 ) * - COUNT( * ) + + + 10 - - - 63 * ( 58 ) WHEN + 8 THEN - ( - MIN( - - 2 ) ) ELSE + 50 END * + + MAX( ALL - 21 ) - + 87 AS col1
----
-1235

skipif mysql # not compatible
query I rowsort label-6023
SELECT + ( SUM ( ALL + - 98 ) ) + CASE 7 WHEN - 28 + + COUNT ( + + CAST ( + - ( 38 ) AS INTEGER ) ) THEN 45 + 96 + 84 - - NULLIF ( + 90, + + 8 ) * - COUNT ( * ) + + + 10 - - - 63 * ( 58 ) WHEN + 8 THEN - ( - MIN ( - - 2 ) ) ELSE + 50 END * + + MAX ( ALL - 21 ) - + 87 AS col1
----
-1235

onlyif mysql # DIV for integer division: 
query I rowsort label-6024
SELECT ALL - 56 DIV + 67 + - 32 * - 3 AS col0
----
96

skipif mysql # not compatible
query I rowsort label-6024
SELECT ALL - 56 / + 67 + - 32 * - 3 AS col0
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-6025
SELECT ALL - SUM( ALL - - 25 ) * + 92
----
-2300

skipif mysql # not compatible
query I rowsort label-6025
SELECT ALL - SUM ( ALL - - 25 ) * + 92
----
-2300

onlyif mysql # aggregate syntax: 
query II rowsort label-6026
SELECT 95, 42 - COUNT( * ) AS col2
----
95
41

skipif mysql # not compatible
query II rowsort label-6026
SELECT 95, 42 - COUNT ( * ) AS col2
----
95
41

query I rowsort
SELECT ALL 70 * + 5 AS col2
----
350

onlyif mysql # aggregate syntax: 
query II rowsort label-6028
SELECT 5 * - + NULLIF ( + 69, + SUM( DISTINCT + 73 ) ) AS col0, 53
----
-345
53

skipif mysql # not compatible
query II rowsort label-6028
SELECT 5 * - + NULLIF ( + 69, + SUM ( DISTINCT + 73 ) ) AS col0, 53
----
-345
53

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6029
SELECT - 85 * 33 + - - 24 DIV - COALESCE ( - + 4, - + 41 * - + ( + + COUNT( * ) ), - 66 )
----
-2799

skipif mysql # not compatible
query I rowsort label-6029
SELECT - 85 * 33 + - - 24 / - COALESCE ( - + 4, - + 41 * - + ( + + COUNT ( * ) ), - 66 )
----
-2799

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6030
SELECT DISTINCT 5 + 47 * 83 * + 0 + - ( - 99 ) * 66 + - CASE + 71 WHEN COALESCE ( + - 98, - + COUNT( * ) * + 35 / + - 41 + COUNT( * ) + - 91, - CAST( 36 AS SIGNED ) * + 50 * + 92 * - 39 + + 71 * + - 94 + + 87 + - + COALESCE ( 27, - ( 64 ) * 25, - COUNT( * ), + 58 * - - 80 ), - - AVG ( DISTINCT - - ( + - 31 ) ) ) * + - 52 THEN - AVG ( ALL 82 ) + - 82 * 34 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6030
SELECT DISTINCT 5 + 47 * 83 * + 0 + - ( - 99 ) * 66 + - CASE + 71 WHEN COALESCE ( + - 98, - + COUNT ( * ) * + 35 / + - 41 + COUNT ( * ) + - 91, - CAST ( 36 AS INTEGER ) * + 50 * + 92 * - 39 + + 71 * + - 94 + + 87 + - + COALESCE ( 27, - ( 64 ) * 25, - COUNT ( * ), + 58 * - - 80 ), - - AVG ( DISTINCT - - ( + - 31 ) ) ) * + - 52 THEN - AVG ( ALL 82 ) + - 82 * 34 END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6031
SELECT 3 DIV - + 33 + - - 85 + + - 99 * + COUNT( * ) AS col1
----
-14

skipif mysql # not compatible
query I rowsort label-6031
SELECT 3 / - + 33 + - - 85 + + - 99 * + COUNT ( * ) AS col1
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-6032
SELECT DISTINCT ( + 66 ) + + 53 * + 84 * COUNT( * ) + 87 AS col2
----
4605

skipif mysql # not compatible
query I rowsort label-6032
SELECT DISTINCT ( + 66 ) + + 53 * + 84 * COUNT ( * ) + 87 AS col2
----
4605

query II rowsort
SELECT + + 93 AS col0, - 23
----
93
-23

query I rowsort
SELECT ALL + 48 + + + 35 + - + 57
----
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6035
SELECT DISTINCT COUNT( * ) + + + CAST( NULL AS SIGNED ) * 99 * + 28 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6035
SELECT DISTINCT COUNT ( * ) + + + CAST ( NULL AS INTEGER ) * 99 * + 28 AS col2
----
NULL

query I rowsort
SELECT + - ( + 7 ) col2
----
-7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6037
SELECT ALL + 67 + NULLIF ( - ( CAST( + COUNT( * ) AS SIGNED ) ), 93 )
----
66

skipif mysql # not compatible
query I rowsort label-6037
SELECT ALL + 67 + NULLIF ( - ( CAST ( + COUNT ( * ) AS INTEGER ) ), 93 )
----
66

query I rowsort
SELECT - + 37 * + 78 - 1 + - + 86
----
-2973

query I rowsort
SELECT ALL - - 54 AS col0
----
54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6040
SELECT ALL - COALESCE ( 89, + - 50 + - COALESCE ( - ( - 62 ), - ( - 71 ) - - CASE + + 15 WHEN + COUNT( * ) * + + 53 THEN + 72 WHEN - CAST( NULL AS SIGNED ) THEN + 34 ELSE + 85 * + 50 - + 11 + + ( - CAST( - 19 AS SIGNED ) ) + + - 95 + - 0 * - CAST( NULL AS SIGNED ) + + - 59 END DIV 9 * CAST( 98 AS SIGNED ) * 45 ) )
----
-89

skipif mysql # not compatible
query I rowsort label-6040
SELECT ALL - COALESCE ( 89, + - 50 + - COALESCE ( - ( - 62 ), - ( - 71 ) - - CASE + + 15 WHEN + COUNT ( * ) * + + 53 THEN + 72 WHEN - CAST ( NULL AS INTEGER ) THEN + 34 ELSE + 85 * + 50 - + 11 + + ( - CAST ( - 19 AS INTEGER ) ) + + - 95 + - 0 * - CAST ( NULL AS INTEGER ) + + - 59 END / 9 * CAST ( 98 AS INTEGER ) * 45 ) )
----
-89

query I rowsort
SELECT ( + ( + - 17 ) )
----
-17

query II rowsort
SELECT DISTINCT - 91 col0, 2
----
-91
2

query I rowsort
SELECT ALL + 7 - + 48
----
-41

query I rowsort
SELECT 50 + 77
----
127

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6045
SELECT - + 1 * + 11 + 86 + - MAX( DISTINCT + 51 ) * - - 37 * - - COALESCE ( - + 81, - + 18 DIV + 56 + + 38 + + COALESCE ( - - 85, - 47, + COUNT( * ) * + + COUNT( * ) + + 83 + - CAST( + ( + ( + 14 ) ) AS SIGNED ) * + - 92 ) * 40 DIV - + 66 + - + 42 + + 5 ) AS col1
----
152922

skipif mysql # not compatible
query I rowsort label-6045
SELECT - + 1 * + 11 + 86 + - MAX ( DISTINCT + 51 ) * - - 37 * - - COALESCE ( - + 81, - + 18 / + 56 + + 38 + + COALESCE ( - - 85, - 47, + COUNT ( * ) * + + COUNT ( * ) + + 83 + - CAST ( + ( + ( + 14 ) ) AS INTEGER ) * + - 92 ) * 40 / - + 66 + - + 42 + + 5 ) AS col1
----
152922

query I rowsort
SELECT 39 - + 46
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-6047
SELECT ( 97 ) + - - 29 + + ( - SUM( ALL - 43 ) )
----
169

skipif mysql # not compatible
query I rowsort label-6047
SELECT ( 97 ) + - - 29 + + ( - SUM ( ALL - 43 ) )
----
169

onlyif mysql # aggregate syntax: 
query II rowsort label-6048
SELECT + 5 * 59 + - 13 + - MIN( + - 62 ) AS col2, 47 col1
----
344
47

skipif mysql # not compatible
query II rowsort label-6048
SELECT + 5 * 59 + - 13 + - MIN ( + - 62 ) AS col2, 47 col1
----
344
47

query I rowsort
SELECT ALL + ( + 44 ) AS col1
----
44

query I rowsort
SELECT 65 + 61
----
126

query I rowsort
SELECT 36 * + - ( - 15 )
----
540

query II rowsort
SELECT - 74 col1, + ( - - 93 )
----
-74
93

query II rowsort
SELECT DISTINCT 75, - 81 AS col1
----
75
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-6054
SELECT ALL - 84 DIV - 77
----
1

skipif mysql # not compatible
query I rowsort label-6054
SELECT ALL - 84 / - 77
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-6055
SELECT 90 DIV - 54 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-6055
SELECT 90 / - 54 AS col1
----
-1

onlyif mysql # DIV for integer division: 
query II rowsort label-6056
SELECT - 82 AS col1, 34 DIV + - 75 + 25
----
-82
25

skipif mysql # not compatible
query II rowsort label-6056
SELECT - 82 AS col1, 34 / + - 75 + 25
----
-82
25

query I rowsort
SELECT 74 * - + COALESCE ( - 86, 19 )
----
6364

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6058
SELECT 80 DIV MAX( 72 )
----
1

skipif mysql # not compatible
query I rowsort label-6058
SELECT 80 / MAX ( 72 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6059
SELECT - 91 AS col1, 47 * - 41 * - COUNT( 9 ) * ( - - 82 ) + - ( 59 ) - - 15 * CAST( NULLIF ( - + 12, + 14 ) AS SIGNED ) + + 54
----
-91
157829

skipif mysql # not compatible
query II rowsort label-6059
SELECT - 91 AS col1, 47 * - 41 * - COUNT ( 9 ) * ( - - 82 ) + - ( 59 ) - - 15 * CAST ( NULLIF ( - + 12, + 14 ) AS INTEGER ) + + 54
----
-91
157829

query II rowsort
SELECT ALL + 21 + + 2 + 92 * - 91 AS col0, 35
----
-8349
35

onlyif mysql # aggregate syntax: 
query II rowsort label-6061
SELECT - 50 AS col0, - 60 * - 3 + ( - COUNT( * ) ) col0
----
-50
179

skipif mysql # not compatible
query II rowsort label-6061
SELECT - 50 AS col0, - 60 * - 3 + ( - COUNT ( * ) ) col0
----
-50
179

query II rowsort
SELECT 43, + 84 AS col2
----
43
84

query I rowsort
SELECT 15 * - ( + - 81 ) AS col1
----
1215

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6064
SELECT ALL 64 + - 74 * - 4 + + COALESCE ( - 98, 89, NULLIF ( MIN( - - 21 ), - CAST( NULL AS DECIMAL ) ) * 68 + - 3 ) - 29 * 83 * ( 74 ) AS col2
----
-177856

skipif mysql # not compatible
query I rowsort label-6064
SELECT ALL 64 + - 74 * - 4 + + COALESCE ( - 98, 89, NULLIF ( MIN ( - - 21 ), - CAST ( NULL AS REAL ) ) * 68 + - 3 ) - 29 * 83 * ( 74 ) AS col2
----
-177856

onlyif mysql # aggregate syntax: 
query I rowsort label-6065
SELECT ALL COUNT( * ) + + COUNT( ALL + 41 )
----
2

skipif mysql # not compatible
query I rowsort label-6065
SELECT ALL COUNT ( * ) + + COUNT ( ALL + 41 )
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6066
SELECT + 59 AS col1, CAST( - 94 AS SIGNED ) * 24 + - 60 col2
----
59
-2316

skipif mysql # not compatible
query II rowsort label-6066
SELECT + 59 AS col1, CAST ( - 94 AS INTEGER ) * 24 + - 60 col2
----
59
-2316

onlyif mysql # DIV for integer division: 
query II rowsort label-6067
SELECT ALL - 69, + 43 DIV - 98 + 76 + + 80 + 46 + 22 + + ( 29 ) DIV + - 17 AS col1
----
-69
223

skipif mysql # not compatible
query II rowsort label-6067
SELECT ALL - 69, + 43 / - 98 + 76 + + 80 + 46 + 22 + + ( 29 ) / + - 17 AS col1
----
-69
223

onlyif mysql # aggregate syntax: 
query I rowsort label-6068
SELECT 57 * + + 46 + 45 - + ( - 69 ) + + 73 + - 90 + - - COUNT( DISTINCT 17 ) AS col0
----
2720

skipif mysql # not compatible
query I rowsort label-6068
SELECT 57 * + + 46 + 45 - + ( - 69 ) + + 73 + - 90 + - - COUNT ( DISTINCT 17 ) AS col0
----
2720

query I rowsort
SELECT ALL - + 64 + 85 col0
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-6070
SELECT CASE WHEN NOT ( NOT - 17 <= ( - COALESCE ( + 8, 90 + - 47 ) * 93 * - 19 ) ) THEN NULL WHEN ( + MAX( ALL 0 ) * - 78 ) BETWEEN + ( 73 ) AND ( - 41 ) THEN + + ( - AVG ( DISTINCT + + 14 ) ) ELSE - - 53 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6070
SELECT CASE WHEN NOT ( NOT - 17 <= ( - COALESCE ( + 8, 90 + - 47 ) * 93 * - 19 ) ) THEN NULL WHEN ( + MAX ( ALL 0 ) * - 78 ) BETWEEN + ( 73 ) AND ( - 41 ) THEN + + ( - AVG ( DISTINCT + + 14 ) ) ELSE - - 53 END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6071
SELECT DISTINCT - 36, - SUM( 88 ) AS col0
----
-36
-88

skipif mysql # not compatible
query II rowsort label-6071
SELECT DISTINCT - 36, - SUM ( 88 ) AS col0
----
-36
-88

onlyif mysql # aggregate syntax: 
query II rowsort label-6072
SELECT + - 54 AS col1, COUNT( * ) * 44 + - COUNT( - 41 ) AS col2
----
-54
43

skipif mysql # not compatible
query II rowsort label-6072
SELECT + - 54 AS col1, COUNT ( * ) * 44 + - COUNT ( - 41 ) AS col2
----
-54
43

query I rowsort
SELECT DISTINCT - 69 * 79
----
-5451

query I rowsort
SELECT - ( - 10 ) * - 33 * + + 10 AS col1
----
-3300

onlyif mysql # DIV for integer division: 
query I rowsort label-6075
SELECT + 35 DIV 28 + + 39
----
40

skipif mysql # not compatible
query I rowsort label-6075
SELECT + 35 / 28 + + 39
----
40

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6076
SELECT + 21, 21, 8 * + 76 + - + CAST( 66 AS SIGNED ) - - 37 col0
----
21
21
579

skipif mysql # not compatible
query III rowsort label-6076
SELECT + 21, 21, 8 * + 76 + - + CAST ( 66 AS INTEGER ) - - 37 col0
----
21
21
579

onlyif mysql # aggregate syntax: 
query I rowsort label-6077
SELECT - COALESCE ( + + 98, COUNT( * ) + - COUNT( ALL - 44 ) * - + 77 * - 70, + + 59 ) AS col0
----
-98

skipif mysql # not compatible
query I rowsort label-6077
SELECT - COALESCE ( + + 98, COUNT ( * ) + - COUNT ( ALL - 44 ) * - + 77 * - 70, + + 59 ) AS col0
----
-98

onlyif mysql # aggregate syntax: 
query II rowsort label-6078
SELECT 80 AS col1, - 97 * - 10 * - 40 * SUM( + + 54 ) AS col0
----
80
-2095200

skipif mysql # not compatible
query II rowsort label-6078
SELECT 80 AS col1, - 97 * - 10 * - 40 * SUM ( + + 54 ) AS col0
----
80
-2095200

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6079
SELECT DISTINCT COUNT( * ) * 24 DIV + 93
----
0

skipif mysql # not compatible
query I rowsort label-6079
SELECT DISTINCT COUNT ( * ) * 24 / + 93
----
0

query I rowsort
SELECT ALL - 75 * + 18
----
-1350

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6081
SELECT CAST( MAX( DISTINCT - 45 ) AS SIGNED )
----
-45

skipif mysql # not compatible
query I rowsort label-6081
SELECT CAST ( MAX ( DISTINCT - 45 ) AS INTEGER )
----
-45

query I rowsort
SELECT DISTINCT ( ( - 51 ) )
----
-51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6083
SELECT 45 * + ( - + 57 ) * - COALESCE ( + + 67, + 27 DIV COUNT( * ), - 13 ) AS col1
----
171855

skipif mysql # not compatible
query I rowsort label-6083
SELECT 45 * + ( - + 57 ) * - COALESCE ( + + 67, + 27 / COUNT ( * ), - 13 ) AS col1
----
171855

onlyif mysql # aggregate syntax: 
query I rowsort label-6084
SELECT 93 * 46 * - COUNT( * ) AS col1
----
-4278

skipif mysql # not compatible
query I rowsort label-6084
SELECT 93 * 46 * - COUNT ( * ) AS col1
----
-4278

onlyif mysql # aggregate syntax: 
query I rowsort label-6085
SELECT 64 - - + COUNT( * ) + + ( 46 )
----
111

skipif mysql # not compatible
query I rowsort label-6085
SELECT 64 - - + COUNT ( * ) + + ( 46 )
----
111

query I rowsort
SELECT 83 * - 90 col2
----
-7470

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6087
SELECT ALL - CASE - + 75 WHEN 43 + - CAST( - COUNT( * ) AS SIGNED ) THEN - - 39 DIV + NULLIF ( + 69, - COALESCE ( 43, + 64 ) * - + 3 + 13 + + - 99 * 32 DIV - - MIN( DISTINCT - ( - 72 ) ) ) ELSE + - 43 END + - - COUNT( * )
----
44

skipif mysql # not compatible
query I rowsort label-6087
SELECT ALL - CASE - + 75 WHEN 43 + - CAST ( - COUNT ( * ) AS INTEGER ) THEN - - 39 / + NULLIF ( + 69, - COALESCE ( 43, + 64 ) * - + 3 + 13 + + - 99 * 32 / - - MIN ( DISTINCT - ( - 72 ) ) ) ELSE + - 43 END + - - COUNT ( * )
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-6088
SELECT - COUNT( * ) + + 99 AS col0
----
98

skipif mysql # not compatible
query I rowsort label-6088
SELECT - COUNT ( * ) + + 99 AS col0
----
98

query I rowsort
SELECT ALL - 90 + - + 55 + - - 92 AS col2
----
-53

onlyif mysql # DIV for integer division: 
query I rowsort label-6090
SELECT DISTINCT + NULLIF ( 49, - 82 * - 42 ) DIV 77 + + 48
----
48

skipif mysql # not compatible
query I rowsort label-6090
SELECT DISTINCT + NULLIF ( 49, - 82 * - 42 ) / 77 + + 48
----
48

query I rowsort
SELECT - 47 * - 40
----
1880

onlyif mysql # aggregate syntax: 
query I rowsort label-6092
SELECT ALL + 18 * 7 * COUNT( * )
----
126

skipif mysql # not compatible
query I rowsort label-6092
SELECT ALL + 18 * 7 * COUNT ( * )
----
126

query I rowsort
SELECT ALL - - 87 * + + 68 + + - 83 + - - 22 AS col2
----
5855

onlyif mysql # aggregate syntax: 
query I rowsort label-6094
SELECT ALL + - COUNT( * ) * + COUNT( * ) * - + 6 + 49
----
55

skipif mysql # not compatible
query I rowsort label-6094
SELECT ALL + - COUNT ( * ) * + COUNT ( * ) * - + 6 + 49
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-6095
SELECT ALL + 31 * 14 + + COUNT( * ) AS col0
----
435

skipif mysql # not compatible
query I rowsort label-6095
SELECT ALL + 31 * 14 + + COUNT ( * ) AS col0
----
435

onlyif mysql # aggregate syntax: 
query I rowsort label-6096
SELECT ALL + 65 * - 10 - 79 * - 10 + - + NULLIF ( + 69, - + 2 ) * NULLIF ( + COUNT( * ), - + 64 ) * COUNT( * )
----
71

skipif mysql # not compatible
query I rowsort label-6096
SELECT ALL + 65 * - 10 - 79 * - 10 + - + NULLIF ( + 69, - + 2 ) * NULLIF ( + COUNT ( * ), - + 64 ) * COUNT ( * )
----
71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6097
SELECT - - 0 * + 73 - + CAST( - 38 AS SIGNED ) * 44 * - COUNT( * ) * - 18 col0, - ( + + 55 ) DIV + 95 + ( + COUNT( DISTINCT - - 21 ) ) AS col0
----
30096
1

skipif mysql # not compatible
query II rowsort label-6097
SELECT - - 0 * + 73 - + CAST ( - 38 AS INTEGER ) * 44 * - COUNT ( * ) * - 18 col0, - ( + + 55 ) / + 95 + ( + COUNT ( DISTINCT - - 21 ) ) AS col0
----
30096
1

query I rowsort
SELECT - + 1 * + - 24 - - - 10 + + - 30 * 39 * - 13 * + 72
----
1095134

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6099
SELECT + CASE + 34 WHEN - - 70 - ( 59 ) THEN NULL WHEN - NULLIF ( - + 83, + CAST( 6 AS SIGNED ) ) THEN NULLIF ( - - 13, 64 ) WHEN - 63 THEN NULL ELSE + ( - 96 ) END AS col0, 85 * SUM( + ( - ( 51 ) ) ) AS col2
----
-96
-4335

skipif mysql # not compatible
query II rowsort label-6099
SELECT + CASE + 34 WHEN - - 70 - ( 59 ) THEN NULL WHEN - NULLIF ( - + 83, + CAST ( 6 AS INTEGER ) ) THEN NULLIF ( - - 13, 64 ) WHEN - 63 THEN NULL ELSE + ( - 96 ) END AS col0, 85 * SUM ( + ( - ( 51 ) ) ) AS col2
----
-96
-4335

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6100
SELECT 85 / + COUNT( * ) * - COUNT( * ) * + ( - 31 ) + - 18 - - ( + 77 ) * + 88 * + COUNT( - 16 ) + - CAST( NULL AS SIGNED ) * - CAST( NULL AS SIGNED ) + + + 67 + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-6100
SELECT 85 / + COUNT ( * ) * - COUNT ( * ) * + ( - 31 ) + - 18 - - ( + 77 ) * + 88 * + COUNT ( - 16 ) + - CAST ( NULL AS INTEGER ) * - CAST ( NULL AS INTEGER ) + + + 67 + COUNT ( * )
----
NULL

query I rowsort
SELECT + 3 * - - 29 AS col0
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-6102
SELECT + NULLIF ( + COUNT( * ), - COUNT( * ) ) + - - 69 + - 62 AS col2
----
8

skipif mysql # not compatible
query I rowsort label-6102
SELECT + NULLIF ( + COUNT ( * ), - COUNT ( * ) ) + - - 69 + - 62 AS col2
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-6103
SELECT + - COUNT( * ) - - 63
----
62

skipif mysql # not compatible
query I rowsort label-6103
SELECT + - COUNT ( * ) - - 63
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-6104
SELECT DISTINCT + MAX( - 46 )
----
-46

skipif mysql # not compatible
query I rowsort label-6104
SELECT DISTINCT + MAX ( - 46 )
----
-46

onlyif mysql # DIV for integer division: 
query I rowsort label-6105
SELECT + 87 DIV - 96 * - 3 + - - 89
----
89

skipif mysql # not compatible
query I rowsort label-6105
SELECT + 87 / - 96 * - 3 + - - 89
----
89

query I rowsort
SELECT ALL + ( + - 59 ) * - 51 AS col2
----
3009

onlyif mysql # aggregate syntax: 
query I rowsort label-6107
SELECT + ( COUNT( + + 99 ) ) col1
----
1

skipif mysql # not compatible
query I rowsort label-6107
SELECT + ( COUNT ( + + 99 ) ) col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6108
SELECT - CASE + 11 WHEN + COALESCE ( 13, COUNT( + 54 ) * + - 42 * + 11 - - ( + COUNT( * ) ) + + ( - 52 ) / + COUNT( * ), + 25 ) THEN NULL WHEN MAX( - + CAST( NULL AS DECIMAL ) ) THEN + 7 + 30 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6108
SELECT - CASE + 11 WHEN + COALESCE ( 13, COUNT ( + 54 ) * + - 42 * + 11 - - ( + COUNT ( * ) ) + + ( - 52 ) / + COUNT ( * ), + 25 ) THEN NULL WHEN MAX ( - + CAST ( NULL AS REAL ) ) THEN + 7 + 30 END AS col0
----
NULL

query II rowsort
SELECT DISTINCT + 26 AS col1, + 11 + + - 85
----
26
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-6110
SELECT + 6 * - + 7 * + ( - 36 ) + + COUNT( * ) AS col2
----
1513

skipif mysql # not compatible
query I rowsort label-6110
SELECT + 6 * - + 7 * + ( - 36 ) + + COUNT ( * ) AS col2
----
1513

query I rowsort
SELECT - 25 - + 92 AS col1
----
-117

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6112
SELECT ALL 90 + - 15 DIV + CAST( + 43 AS SIGNED ) AS col1
----
90

skipif mysql # not compatible
query I rowsort label-6112
SELECT ALL 90 + - 15 / + CAST ( + 43 AS INTEGER ) AS col1
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-6113
SELECT + 96 + + COUNT( * ) + - 18
----
79

skipif mysql # not compatible
query I rowsort label-6113
SELECT + 96 + + COUNT ( * ) + - 18
----
79

query I rowsort
SELECT ALL 1 + - 44
----
-43

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6115
SELECT ALL 54 + + - CAST( - CAST( NULL AS DECIMAL ) AS SIGNED ) * + - 7 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6115
SELECT ALL 54 + + - CAST ( - CAST ( NULL AS REAL ) AS INTEGER ) * + - 7 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6116
SELECT - MAX( DISTINCT + 93 ) + + 94 + - COUNT( * ) + 65
----
65

skipif mysql # not compatible
query I rowsort label-6116
SELECT - MAX ( DISTINCT + 93 ) + + 94 + - COUNT ( * ) + 65
----
65

query II rowsort
SELECT 76 AS col2, 24 AS col0
----
76
24

onlyif mysql # aggregate syntax: 
query I rowsort label-6118
SELECT ALL COUNT( * ) + 46 - + - 62 + + 83 AS col0
----
192

skipif mysql # not compatible
query I rowsort label-6118
SELECT ALL COUNT ( * ) + 46 - + - 62 + + 83 AS col0
----
192

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6119
SELECT - 18 + + SUM( 73 ) DIV - - 91 + COALESCE ( 8, - + 37, + 16 ) + + - COUNT( * ) col0
----
-11

skipif mysql # not compatible
query I rowsort label-6119
SELECT - 18 + + SUM ( 73 ) / - - 91 + COALESCE ( 8, - + 37, + 16 ) + + - COUNT ( * ) col0
----
-11

query I rowsort
SELECT ALL - 49 * - 10 AS col1
----
490

query I rowsort
SELECT - 23 + + 11
----
-12

query I rowsort
SELECT - 82 * - 23
----
1886

onlyif mysql # aggregate syntax: 
query I rowsort label-6123
SELECT ALL 88 - - + SUM( 0 ) + + + MAX( 77 ) col1
----
165

skipif mysql # not compatible
query I rowsort label-6123
SELECT ALL 88 - - + SUM ( 0 ) + + + MAX ( 77 ) col1
----
165

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6124
SELECT DISTINCT CAST( + COUNT( * ) AS SIGNED ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6124
SELECT DISTINCT CAST ( + COUNT ( * ) AS INTEGER ) AS col0
----
1

query I rowsort
SELECT DISTINCT + - 46 * + + 2
----
-92

query I rowsort
SELECT - - 75 + + 87 AS col2
----
162

query I rowsort
SELECT ALL + + ( + 55 )
----
55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6128
SELECT - - 30 / - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6128
SELECT - - 30 / - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6129
SELECT - 78 * CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6129
SELECT - 78 * CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6130
SELECT ALL + + 21 DIV + + MIN( + 83 ) * - + 39
----
0

skipif mysql # not compatible
query I rowsort label-6130
SELECT ALL + + 21 / + + MIN ( + 83 ) * - + 39
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6131
SELECT - 13 * + 75 + COUNT( * ) * - + 82 + 40 + 27 + - 68 * 70 AS col2
----
-5750

skipif mysql # not compatible
query I rowsort label-6131
SELECT - 13 * + 75 + COUNT ( * ) * - + 82 + 40 + 27 + - 68 * 70 AS col2
----
-5750

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6132
SELECT - 50 DIV SUM( + 49 ) - 50 + 12 * + + 85 + + 69
----
1038

skipif mysql # not compatible
query I rowsort label-6132
SELECT - 50 / SUM ( + 49 ) - 50 + 12 * + + 85 + + 69
----
1038

query I rowsort
SELECT ALL + - ( - 45 )
----
45

onlyif mysql # DIV for integer division: 
query I rowsort label-6134
SELECT ALL + 75 DIV - 94
----
0

skipif mysql # not compatible
query I rowsort label-6134
SELECT ALL + 75 / - 94
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6135
SELECT DISTINCT + NULLIF ( + CASE + 64 WHEN - ( + 64 ) / ( 28 ) THEN - 67 WHEN + + 85 - + 58 * - COUNT( * ) THEN - CAST( - - 51 AS SIGNED ) ELSE NULL END, + + ( + 97 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6135
SELECT DISTINCT + NULLIF ( + CASE + 64 WHEN - ( + 64 ) / ( 28 ) THEN - 67 WHEN + + 85 - + 58 * - COUNT ( * ) THEN - CAST ( - - 51 AS INTEGER ) ELSE NULL END, + + ( + 97 ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6136
SELECT ALL 88 * + 0 - - - NULLIF ( CAST( NULL AS SIGNED ), - - 74 ) + 93
----
NULL

skipif mysql # not compatible
query I rowsort label-6136
SELECT ALL 88 * + 0 - - - NULLIF ( CAST ( NULL AS INTEGER ), - - 74 ) + 93
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6137
SELECT - - 89 * - - COUNT( * ) - + COUNT( ALL - 56 )
----
88

skipif mysql # not compatible
query I rowsort label-6137
SELECT - - 89 * - - COUNT ( * ) - + COUNT ( ALL - 56 )
----
88

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6138
SELECT DISTINCT + COUNT( * ) * - NULLIF ( 79, - 60 + 65 - COUNT( * ) ) DIV - 80 + 6 + - - 28 * + - 37
----
-1030

skipif mysql # not compatible
query I rowsort label-6138
SELECT DISTINCT + COUNT ( * ) * - NULLIF ( 79, - 60 + 65 - COUNT ( * ) ) / - 80 + 6 + - - 28 * + - 37
----
-1030

query II rowsort
SELECT 84 AS col0, 54
----
84
54

query I rowsort
SELECT 98 * + 0 + + 34
----
34

query II rowsort
SELECT ALL + - 50 AS col1, - 86 * - 0 + - 43
----
-50
-43

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6142
SELECT ALL + COUNT( * ) * - 64 * + ( + COUNT( * ) ) * - - NULLIF ( + - COUNT( * ), MIN( ALL - 3 ) ) + - NULLIF ( 49, + COALESCE ( MAX( - - 94 ), + - 82 ) * - + 13 * + + 10 * - + 41 DIV + 70 + 56 ) + 63 DIV COALESCE ( + 67, + + 56, + 87 ) DIV + 3 * - 22
----
15

skipif mysql # not compatible
query I rowsort label-6142
SELECT ALL + COUNT ( * ) * - 64 * + ( + COUNT ( * ) ) * - - NULLIF ( + - COUNT ( * ), MIN ( ALL - 3 ) ) + - NULLIF ( 49, + COALESCE ( MAX ( - - 94 ), + - 82 ) * - + 13 * + + 10 * - + 41 / + 70 + 56 ) + 63 / COALESCE ( + 67, + + 56, + 87 ) / + 3 * - 22
----
15

query I rowsort
SELECT ALL + 66 * 73 + 94 AS col2
----
4912

query I rowsort
SELECT ALL + 98 * - 89
----
-8722

onlyif mysql # aggregate syntax: 
query I rowsort label-6145
SELECT + CASE 0 WHEN 11 THEN COUNT( * ) ELSE - 15 END * 69 * COUNT( * ) * 99
----
-102465

skipif mysql # not compatible
query I rowsort label-6145
SELECT + CASE 0 WHEN 11 THEN COUNT ( * ) ELSE - 15 END * 69 * COUNT ( * ) * 99
----
-102465

onlyif mysql # aggregate syntax: 
query I rowsort label-6146
SELECT DISTINCT + ( - COUNT( ALL + 71 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-6146
SELECT DISTINCT + ( - COUNT ( ALL + 71 ) )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6147
SELECT DISTINCT NULLIF ( - ( 20 ), - 15 * - 17 ) * - + 56 * - 11 * - CAST( NULL AS SIGNED ) * 89
----
NULL

skipif mysql # not compatible
query I rowsort label-6147
SELECT DISTINCT NULLIF ( - ( 20 ), - 15 * - 17 ) * - + 56 * - 11 * - CAST ( NULL AS INTEGER ) * 89
----
NULL

query I rowsort
SELECT DISTINCT 13 + 44 + - + 85 + 2
----
-26

query I rowsort
SELECT ALL 48 + + - 10 AS col0
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-6150
SELECT DISTINCT COUNT( * ) * 20 * - 65
----
-1300

skipif mysql # not compatible
query I rowsort label-6150
SELECT DISTINCT COUNT ( * ) * 20 * - 65
----
-1300

query II rowsort
SELECT ALL NULLIF ( + 25, - 47 ) * + 49 AS col1, 18
----
1225
18

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6152
SELECT CAST( NULL AS DECIMAL ) + ( - + 80 ) - 88 AS col0, 69 AS col1
----
NULL
69

skipif mysql # not compatible
query II rowsort label-6152
SELECT CAST ( NULL AS REAL ) + ( - + 80 ) - 88 AS col0, 69 AS col1
----
NULL
69

query I rowsort
SELECT DISTINCT 47 * - 70
----
-3290

onlyif mysql # DIV for integer division: 
query I rowsort label-6154
SELECT DISTINCT - 73 DIV 42 col2
----
-1

skipif mysql # not compatible
query I rowsort label-6154
SELECT DISTINCT - 73 / 42 col2
----
-1

query I rowsort
SELECT 34 - + + 71
----
-37

query I rowsort
SELECT NULLIF ( - 90, - - 59 * 3 ) + - 15
----
-105

query I rowsort
SELECT + 40 - + 64 AS col1
----
-24

query I rowsort
SELECT ALL 9 - + - 59 * + 41 + 8
----
2436

query I rowsort
SELECT ALL + 90 * + 27 * + 47 * 54 AS col2
----
6167340

onlyif mysql # aggregate syntax: 
query I rowsort label-6160
SELECT - COUNT( * ) + - 0 col2
----
-1

skipif mysql # not compatible
query I rowsort label-6160
SELECT - COUNT ( * ) + - 0 col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6161
SELECT DISTINCT 94 * - ( + COUNT( * ) ) AS col1
----
-94

skipif mysql # not compatible
query I rowsort label-6161
SELECT DISTINCT 94 * - ( + COUNT ( * ) ) AS col1
----
-94

query II rowsort
SELECT DISTINCT + 97 * - 40 col1, + 92 AS col1
----
-3880
92

query II rowsort
SELECT 41 * + - 10 + 23 * 37 AS col1, + 27 AS col1
----
441
27

onlyif mysql # DIV for integer division: 
query I rowsort label-6164
SELECT ALL + 61 + + - 68 DIV + ( + + 91 ) AS col0
----
61

skipif mysql # not compatible
query I rowsort label-6164
SELECT ALL + 61 + + - 68 / + ( + + 91 ) AS col0
----
61

query I rowsort
SELECT DISTINCT + 45 + 97 + + 80 AS col2
----
222

onlyif mysql # aggregate syntax: 
query I rowsort label-6166
SELECT ALL - + ( - + COUNT( * ) ) + - 63 AS col2
----
-62

skipif mysql # not compatible
query I rowsort label-6166
SELECT ALL - + ( - + COUNT ( * ) ) + - 63 AS col2
----
-62

query I rowsort
SELECT ALL - ( + 20 ) AS col2
----
-20

onlyif mysql # DIV for integer division: 
query I rowsort label-6168
SELECT ALL + 94 + - 52 DIV - 9
----
99

skipif mysql # not compatible
query I rowsort label-6168
SELECT ALL + 94 + - 52 / - 9
----
99

query I rowsort
SELECT DISTINCT - 39 + + 33
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-6170
SELECT DISTINCT NULLIF ( + - 83, + - COUNT( ALL + + 28 ) ) * - ( - 22 )
----
-1826

skipif mysql # not compatible
query I rowsort label-6170
SELECT DISTINCT NULLIF ( + - 83, + - COUNT ( ALL + + 28 ) ) * - ( - 22 )
----
-1826

query I rowsort
SELECT ALL 60 + + CASE + 34 WHEN + 8 THEN + ( - 23 ) END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6172
SELECT ( 47 ) * - + 49 * - ( + 41 ) + + 28 - + COUNT( * ) + - - 54, 79 + + COUNT( * ) + - + COALESCE ( COUNT( * ), + 17 + + - 59 + + COALESCE ( + 28, + 10, - 3 ) ) col2
----
94504
79

skipif mysql # not compatible
query II rowsort label-6172
SELECT ( 47 ) * - + 49 * - ( + 41 ) + + 28 - + COUNT ( * ) + - - 54, 79 + + COUNT ( * ) + - + COALESCE ( COUNT ( * ), + 17 + + - 59 + + COALESCE ( + 28, + 10, - 3 ) ) col2
----
94504
79

onlyif mysql # aggregate syntax: 
query I rowsort label-6173
SELECT COUNT( * ) + + 13 * 42 * + + COALESCE ( + ( - 9 ), ( + 43 ) * + - 34 + + - 47 - 19 )
----
-4913

skipif mysql # not compatible
query I rowsort label-6173
SELECT COUNT ( * ) + + 13 * 42 * + + COALESCE ( + ( - 9 ), ( + 43 ) * + - 34 + + - 47 - 19 )
----
-4913

query I rowsort
SELECT 18 + 38 col2
----
56

onlyif mysql # aggregate syntax: 
query II rowsort label-6175
SELECT DISTINCT + 49 * ( 74 ) AS col2, - MAX( - - 53 ) AS col1
----
3626
-53

skipif mysql # not compatible
query II rowsort label-6175
SELECT DISTINCT + 49 * ( 74 ) AS col2, - MAX ( - - 53 ) AS col1
----
3626
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-6176
SELECT ALL MIN( ALL + - 64 ) AS col2
----
-64

skipif mysql # not compatible
query I rowsort label-6176
SELECT ALL MIN ( ALL + - 64 ) AS col2
----
-64

query I rowsort
SELECT DISTINCT 88 * - 21
----
-1848

onlyif mysql # DIV for integer division: 
query I rowsort label-6178
SELECT 14 DIV 29 * 16 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6178
SELECT 14 / 29 * 16 AS col0
----
0

query I rowsort
SELECT 50 * 52
----
2600

query I rowsort
SELECT - NULLIF ( + 3, - + 56 )
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-6181
SELECT - MIN( 11 )
----
-11

skipif mysql # not compatible
query I rowsort label-6181
SELECT - MIN ( 11 )
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-6182
SELECT COUNT( DISTINCT - 14 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6182
SELECT COUNT ( DISTINCT - 14 ) AS col0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6183
SELECT ALL - ( - CAST( NULL AS SIGNED ) ) * + CASE + - 7 WHEN + 42 THEN + 44 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6183
SELECT ALL - ( - CAST ( NULL AS INTEGER ) ) * + CASE + - 7 WHEN + 42 THEN + 44 END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6184
SELECT ALL 69 * - COALESCE ( + ( COUNT( * ) ), - COUNT( * ), + + 96 * + - COUNT( * ), + 22 ) col2, - 85 + 36 * - - 3
----
-69
23

skipif mysql # not compatible
query II rowsort label-6184
SELECT ALL 69 * - COALESCE ( + ( COUNT ( * ) ), - COUNT ( * ), + + 96 * + - COUNT ( * ), + 22 ) col2, - 85 + 36 * - - 3
----
-69
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6185
SELECT - 13 * + CAST( - + MIN( 50 ) AS SIGNED ) col0
----
650

skipif mysql # not compatible
query I rowsort label-6185
SELECT - 13 * + CAST ( - + MIN ( 50 ) AS INTEGER ) col0
----
650

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6186
SELECT ALL ( + COUNT( * ) ) * + COUNT( * ) DIV + 87 DIV - ( + 3 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6186
SELECT ALL ( + COUNT ( * ) ) * + COUNT ( * ) / + 87 / - ( + 3 ) AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6187
SELECT ALL - CAST( + 84 AS SIGNED ) + + - COUNT( * ) * + COUNT( * ) AS col0
----
-85

skipif mysql # not compatible
query I rowsort label-6187
SELECT ALL - CAST ( + 84 AS INTEGER ) + + - COUNT ( * ) * + COUNT ( * ) AS col0
----
-85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6188
SELECT ALL - + 54 + + 34 + - COUNT( * ) + - + 40 * + COUNT( * ) * - 72 AS col1, - 27 + CAST( - COUNT( * ) AS SIGNED ) - - - 26 col1
----
2859
-54

skipif mysql # not compatible
query II rowsort label-6188
SELECT ALL - + 54 + + 34 + - COUNT ( * ) + - + 40 * + COUNT ( * ) * - 72 AS col1, - 27 + CAST ( - COUNT ( * ) AS INTEGER ) - - - 26 col1
----
2859
-54

onlyif mysql # aggregate syntax: 
query II rowsort label-6189
SELECT - 36 + 73 + - 74 + - + 33 * - 56 + - COUNT( * ), 89 AS col1
----
1810
89

skipif mysql # not compatible
query II rowsort label-6189
SELECT - 36 + 73 + - 74 + - + 33 * - 56 + - COUNT ( * ), 89 AS col1
----
1810
89

onlyif mysql # aggregate syntax: 
query I rowsort label-6190
SELECT DISTINCT + 26 + - COUNT( * )
----
25

skipif mysql # not compatible
query I rowsort label-6190
SELECT DISTINCT + 26 + - COUNT ( * )
----
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6191
SELECT 54 + - + CAST( NULL AS SIGNED ) + - - 70 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6191
SELECT 54 + - + CAST ( NULL AS INTEGER ) + - - 70 AS col1
----
NULL

query II rowsort
SELECT 44 col2, - 79
----
44
-79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6193
SELECT ALL 62 * + + COALESCE ( 53, 47 * + NULLIF ( + COUNT( DISTINCT 19 ), + - 74 + - CAST( 32 AS SIGNED ) - + 98 * 12 + + 23 ) * + - 36 * + 67 ) + - + 14 AS col2
----
3272

skipif mysql # not compatible
query I rowsort label-6193
SELECT ALL 62 * + + COALESCE ( 53, 47 * + NULLIF ( + COUNT ( DISTINCT 19 ), + - 74 + - CAST ( 32 AS INTEGER ) - + 98 * 12 + + 23 ) * + - 36 * + 67 ) + - + 14 AS col2
----
3272

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6194
SELECT + CAST( NULL AS SIGNED ) + + 3
----
NULL

skipif mysql # not compatible
query I rowsort label-6194
SELECT + CAST ( NULL AS INTEGER ) + + 3
----
NULL

query I rowsort
SELECT - ( - 58 ) col0
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-6196
SELECT COUNT( * ) * - 6 * + + 21 + - 71 - + 29 + + 14 + - 9
----
-221

skipif mysql # not compatible
query I rowsort label-6196
SELECT COUNT ( * ) * - 6 * + + 21 + - 71 - + 29 + + 14 + - 9
----
-221

query I rowsort
SELECT + 20 - - + 55 + - 92 * - 54 + 31
----
5074

query I rowsort
SELECT DISTINCT - - 94 AS col1
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-6199
SELECT ALL - ( - COUNT( * ) ) * - 26
----
-26

skipif mysql # not compatible
query I rowsort label-6199
SELECT ALL - ( - COUNT ( * ) ) * - 26
----
-26

query I rowsort
SELECT DISTINCT - 93 * - 74 * - 86 + + 28
----
-591824

onlyif mysql # aggregate syntax: 
query I rowsort label-6201
SELECT DISTINCT + 24 * + + COUNT( * )
----
24

skipif mysql # not compatible
query I rowsort label-6201
SELECT DISTINCT + 24 * + + COUNT ( * )
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-6202
SELECT + SUM( DISTINCT + ( + 97 ) ) AS col0
----
97

skipif mysql # not compatible
query I rowsort label-6202
SELECT + SUM ( DISTINCT + ( + 97 ) ) AS col0
----
97

query I rowsort
SELECT - ( + + 2 ) + + ( + 76 )
----
74

query I rowsort
SELECT ALL ( + - 16 ) * + + 58 + - 22 + + - 8 AS col2
----
-958

onlyif mysql # aggregate syntax: 
query I rowsort label-6205
SELECT MAX( ALL + 66 ) AS col1
----
66

skipif mysql # not compatible
query I rowsort label-6205
SELECT MAX ( ALL + 66 ) AS col1
----
66

query I rowsort
SELECT + 54 * + + 35
----
1890

query I rowsort
SELECT - 95 * 53
----
-5035

onlyif mysql # aggregate syntax: 
query II rowsort label-6208
SELECT + 32 AS col2, COUNT( * ) - - 59
----
32
60

skipif mysql # not compatible
query II rowsort label-6208
SELECT + 32 AS col2, COUNT ( * ) - - 59
----
32
60

query I rowsort
SELECT ALL + COALESCE ( ( + 77 ), ( + 53 ) * ( - - 89 ) )
----
77

query I rowsort
SELECT - 59 * - 62 AS col1
----
3658

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6211
SELECT ALL - COUNT( * ) DIV 30
----
0

skipif mysql # not compatible
query I rowsort label-6211
SELECT ALL - COUNT ( * ) / 30
----
0

query I rowsort
SELECT DISTINCT + CASE + ( + 77 ) WHEN - 27 THEN NULL WHEN + 20 THEN + + 63 ELSE NULL END
----
NULL

query I rowsort
SELECT + 30 * + 76 + + 62 * - + 46 - + NULLIF ( - 71, AVG ( ( - 88 ) ) ) * + 62 AS col1
----
3830

onlyif mysql # aggregate syntax: 
query II rowsort label-6214
SELECT COUNT( * ) AS col1, + COUNT( DISTINCT + + 67 ) AS col1
----
1
1

skipif mysql # not compatible
query II rowsort label-6214
SELECT COUNT ( * ) AS col1, + COUNT ( DISTINCT + + 67 ) AS col1
----
1
1

query I rowsort
SELECT - 64 * + + 12 AS col0
----
-768

query I rowsort
SELECT - 29 * 3 AS col0
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-6217
SELECT DISTINCT CASE + COUNT( * ) WHEN + 19 THEN NULL ELSE - 0 + - 76 END
----
-76

skipif mysql # not compatible
query I rowsort label-6217
SELECT DISTINCT CASE + COUNT ( * ) WHEN + 19 THEN NULL ELSE - 0 + - 76 END
----
-76

query I rowsort
SELECT + 23 * 72 AS col2
----
1656

onlyif mysql # aggregate syntax: 
query I rowsort label-6219
SELECT - + 43 - - + COUNT( * ) AS col2
----
-42

skipif mysql # not compatible
query I rowsort label-6219
SELECT - + 43 - - + COUNT ( * ) AS col2
----
-42

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6220
SELECT DISTINCT - + MIN( 67 ) * - - 48 * + COUNT( * ) DIV COUNT( * ) * 99 * - - 91 AS col2
----
-28972944

skipif mysql # not compatible
query I rowsort label-6220
SELECT DISTINCT - + MIN ( 67 ) * - - 48 * + COUNT ( * ) / COUNT ( * ) * 99 * - - 91 AS col2
----
-28972944

onlyif mysql # aggregate syntax: 
query I rowsort label-6221
SELECT DISTINCT + + 98 + + - COUNT( * ) AS col1
----
97

skipif mysql # not compatible
query I rowsort label-6221
SELECT DISTINCT + + 98 + + - COUNT ( * ) AS col1
----
97

query II rowsort
SELECT ALL - 12 AS col2, 70 * - 34
----
-12
-2380

query II rowsort
SELECT DISTINCT 40 AS col1, - 59 * ( + - 66 ) + + 28 AS col2
----
40
3922

onlyif mysql # aggregate syntax: 
query I rowsort label-6224
SELECT DISTINCT + COUNT( * ) + - ( - + 22 )
----
23

skipif mysql # not compatible
query I rowsort label-6224
SELECT DISTINCT + COUNT ( * ) + - ( - + 22 )
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-6225
SELECT - - SUM( ALL - 56 )
----
-56

skipif mysql # not compatible
query I rowsort label-6225
SELECT - - SUM ( ALL - 56 )
----
-56

query I rowsort
SELECT + + 86 * + 74
----
6364

onlyif mysql # aggregate syntax: 
query I rowsort label-6227
SELECT + COUNT( * ) - - MIN( DISTINCT 95 ) AS col0
----
96

skipif mysql # not compatible
query I rowsort label-6227
SELECT + COUNT ( * ) - - MIN ( DISTINCT 95 ) AS col0
----
96

query I rowsort
SELECT - NULLIF ( + 5, 99 * + 69 * 51 ) col2
----
-5

onlyif mysql # aggregate syntax: 
query II rowsort label-6229
SELECT ALL - 5 + 96 AS col1, 74 * - + 43 + + COUNT( * ) + + 79
----
91
-3102

skipif mysql # not compatible
query II rowsort label-6229
SELECT ALL - 5 + 96 AS col1, 74 * - + 43 + + COUNT ( * ) + + 79
----
91
-3102

query I rowsort
SELECT ALL - 47 + - 36 * - 10
----
313

onlyif mysql # aggregate syntax: 
query I rowsort label-6231
SELECT - + ( 92 ) + COUNT( * )
----
-91

skipif mysql # not compatible
query I rowsort label-6231
SELECT - + ( 92 ) + COUNT ( * )
----
-91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6232
SELECT DISTINCT - COALESCE ( + COUNT( * ), + + 9 * - COUNT( 75 ) DIV CASE + + 32 WHEN 10 THEN - ( 16 ) + - - 93 WHEN + 5 * - - 33 THEN NULL WHEN - 38 * + 72 THEN NULL ELSE 30 - - 27 + CAST( NULL AS SIGNED ) * - - 56 DIV + 56 * + + 3 + - 52 END DIV + - 7 * - 58 * - + 59 DIV - 89 + COUNT( * ) + - - 26 )
----
-1

skipif mysql # not compatible
query I rowsort label-6232
SELECT DISTINCT - COALESCE ( + COUNT ( * ), + + 9 * - COUNT ( 75 ) / CASE + + 32 WHEN 10 THEN - ( 16 ) + - - 93 WHEN + 5 * - - 33 THEN NULL WHEN - 38 * + 72 THEN NULL ELSE 30 - - 27 + CAST ( NULL AS INTEGER ) * - - 56 / + 56 * + + 3 + - 52 END / + - 7 * - 58 * - + 59 / - 89 + COUNT ( * ) + - - 26 )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6233
SELECT + - 67 + + CAST( + - COUNT( * ) AS SIGNED )
----
-68

skipif mysql # not compatible
query I rowsort label-6233
SELECT + - 67 + + CAST ( + - COUNT ( * ) AS INTEGER )
----
-68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6234
SELECT ALL + - COALESCE ( - CAST( NULL AS SIGNED ), + 20 )
----
-20

skipif mysql # not compatible
query I rowsort label-6234
SELECT ALL + - COALESCE ( - CAST ( NULL AS INTEGER ), + 20 )
----
-20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6235
SELECT - + 89 + - CAST( - COUNT( * ) AS SIGNED ) col2
----
-88

skipif mysql # not compatible
query I rowsort label-6235
SELECT - + 89 + - CAST ( - COUNT ( * ) AS INTEGER ) col2
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-6236
SELECT + + MAX( DISTINCT - 8 ) * COUNT( * ) * - + 42 * 21
----
7056

skipif mysql # not compatible
query I rowsort label-6236
SELECT + + MAX ( DISTINCT - 8 ) * COUNT ( * ) * - + 42 * 21
----
7056

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6237
SELECT + CAST( - + SUM( DISTINCT - + 45 ) AS SIGNED ) + - 81
----
-36

skipif mysql # not compatible
query I rowsort label-6237
SELECT + CAST ( - + SUM ( DISTINCT - + 45 ) AS INTEGER ) + - 81
----
-36

onlyif mysql # DIV for integer division: 
query I rowsort label-6238
SELECT ALL - 20 DIV + - 73 + + 69 + 7
----
76

skipif mysql # not compatible
query I rowsort label-6238
SELECT ALL - 20 / + - 73 + + 69 + 7
----
76

query II rowsort
SELECT ( - ( - 97 ) ) AS col0, 97 AS col0
----
97
97

onlyif mysql # aggregate syntax: 
query I rowsort label-6240
SELECT + COALESCE ( 54, - 64 + ( - COUNT( * ) ) * + 84 * 67 * 83, - 40 - 14 ) AS col0
----
54

skipif mysql # not compatible
query I rowsort label-6240
SELECT + COALESCE ( 54, - 64 + ( - COUNT ( * ) ) * + 84 * 67 * 83, - 40 - 14 ) AS col0
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-6241
SELECT 94 * 30 + + ( COUNT( * ) ) col2
----
2821

skipif mysql # not compatible
query I rowsort label-6241
SELECT 94 * 30 + + ( COUNT ( * ) ) col2
----
2821

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6242
SELECT + CAST( NULL AS SIGNED ) + - 21 * + 38 + + 49 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6242
SELECT + CAST ( NULL AS INTEGER ) + - 21 * + 38 + + 49 AS col1
----
NULL

query I rowsort
SELECT + 83 + - - ( + 73 ) col1
----
156

onlyif mysql # aggregate syntax: 
query I rowsort label-6244
SELECT DISTINCT COUNT( * ) * 7 - - - 47
----
-40

skipif mysql # not compatible
query I rowsort label-6244
SELECT DISTINCT COUNT ( * ) * 7 - - - 47
----
-40

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6245
SELECT + CAST( + 60 AS SIGNED ) AS col1, 45 + 74 + + + 59 + - CAST( - + 46 AS SIGNED ) / - - 20 - - + 83 + + CASE + ( + 13 ) WHEN + 40 THEN + 1 END * + 59 AS col1
----
60
NULL

skipif mysql # not compatible
query II rowsort label-6245
SELECT + CAST ( + 60 AS INTEGER ) AS col1, 45 + 74 + + + 59 + - CAST ( - + 46 AS INTEGER ) / - - 20 - - + 83 + + CASE + ( + 13 ) WHEN + 40 THEN + 1 END * + 59 AS col1
----
60
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6246
SELECT - CAST( AVG ( - ( + 79 ) ) AS SIGNED ) * - - 88 - - + COUNT( * )
----
6953

skipif mysql # not compatible
query I rowsort label-6246
SELECT - CAST ( AVG ( - ( + 79 ) ) AS INTEGER ) * - - 88 - - + COUNT ( * )
----
6953

onlyif mysql # aggregate syntax: 
query I rowsort label-6247
SELECT CASE - NULLIF ( 53, - 91 ) WHEN 16 * + - 47 - + NULLIF ( - 23, 77 * + 62 / 6 + COUNT( * ) * + 5 * 65 + - 47 ) THEN + 72 / 93 + 48 + + 97 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6247
SELECT CASE - NULLIF ( 53, - 91 ) WHEN 16 * + - 47 - + NULLIF ( - 23, 77 * + 62 / 6 + COUNT ( * ) * + 5 * 65 + - 47 ) THEN + 72 / 93 + 48 + + 97 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6248
SELECT 32 * - 42 + - 5 AS col0, 92 + - - 86 + - + 11 * 37 * + + 33 + COUNT( * ) * + ( 42 ) AS col1
----
-1349
-13211

skipif mysql # not compatible
query II rowsort label-6248
SELECT 32 * - 42 + - 5 AS col0, 92 + - - 86 + - + 11 * 37 * + + 33 + COUNT ( * ) * + ( 42 ) AS col1
----
-1349
-13211

query I rowsort
SELECT + 65 * + - 2 AS col1
----
-130

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6250
SELECT + ( + CAST( NULL AS SIGNED ) ) AS col0, + 33 * - - 84 AS col0
----
NULL
2772

skipif mysql # not compatible
query II rowsort label-6250
SELECT + ( + CAST ( NULL AS INTEGER ) ) AS col0, + 33 * - - 84 AS col0
----
NULL
2772

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6251
SELECT COALESCE ( + 75, - CAST( 58 AS SIGNED ) * + 44 + 10 + COUNT( * ) * + - 61 )
----
75

skipif mysql # not compatible
query I rowsort label-6251
SELECT COALESCE ( + 75, - CAST ( 58 AS INTEGER ) * + 44 + 10 + COUNT ( * ) * + - 61 )
----
75

query I rowsort
SELECT - 5 + 13 AS col2
----
8

onlyif mysql # DIV for integer division: 
query I rowsort label-6253
SELECT - 6 * - + 20 DIV - 2 + - 61
----
-121

skipif mysql # not compatible
query I rowsort label-6253
SELECT - 6 * - + 20 / - 2 + - 61
----
-121

query I rowsort
SELECT COALESCE ( - - NULLIF ( - 42, + - 53 ), 7 )
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-6255
SELECT DISTINCT - NULLIF ( + + 90, + AVG ( + + 55 ) / COUNT( * ) ) * - 1 - - 85 + + + 25 * - - 5 * + 17 + - 66 + - + 66
----
2168

skipif mysql # not compatible
query I rowsort label-6255
SELECT DISTINCT - NULLIF ( + + 90, + AVG ( + + 55 ) / COUNT ( * ) ) * - 1 - - 85 + + + 25 * - - 5 * + 17 + - 66 + - + 66
----
2168

query I rowsort
SELECT ALL ( + 39 ) AS col0
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-6257
SELECT ALL 6 * 13 + + 61 / + 56 * - - CASE COUNT( * ) WHEN + - 69 * + 7 - 89 + - + 38 THEN 5 WHEN + + ( - - 96 ) * + ( 80 ) * + ( - 69 ) THEN NULL WHEN + 4 * - + ( - 20 ) / + 96 + + 52 + - 44 * - ( 34 ) * + 22 + + - 7 + + - MAX( - 86 ) + 17 THEN - MIN( - 10 ) * + - NULLIF ( + COUNT( DISTINCT 91 ), - 94 - CASE - 62 WHEN - 65 * 81 + 39 THEN NULL ELSE + + SUM( DISTINCT 87 ) END * 61 ) / - COUNT( * ) ELSE NULL END / - - 73
----
NULL

skipif mysql # not compatible
query I rowsort label-6257
SELECT ALL 6 * 13 + + 61 / + 56 * - - CASE COUNT ( * ) WHEN + - 69 * + 7 - 89 + - + 38 THEN 5 WHEN + + ( - - 96 ) * + ( 80 ) * + ( - 69 ) THEN NULL WHEN + 4 * - + ( - 20 ) / + 96 + + 52 + - 44 * - ( 34 ) * + 22 + + - 7 + + - MAX ( - 86 ) + 17 THEN - MIN ( - 10 ) * + - NULLIF ( + COUNT ( DISTINCT 91 ), - 94 - CASE - 62 WHEN - 65 * 81 + 39 THEN NULL ELSE + + SUM ( DISTINCT 87 ) END * 61 ) / - COUNT ( * ) ELSE NULL END / - - 73
----
NULL

query I rowsort
SELECT - 86 * 93 AS col0
----
-7998

query I rowsort
SELECT ALL - 57 * - 97 + 29 + 2
----
5560

onlyif mysql # aggregate syntax: 
query I rowsort label-6260
SELECT ALL + SUM( 81 ) AS col1
----
81

skipif mysql # not compatible
query I rowsort label-6260
SELECT ALL + SUM ( 81 ) AS col1
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-6261
SELECT + + 95 + - + COUNT( * ) * - 14 * COUNT( * )
----
109

skipif mysql # not compatible
query I rowsort label-6261
SELECT + + 95 + - + COUNT ( * ) * - 14 * COUNT ( * )
----
109

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6262
SELECT + + 37 DIV NULLIF ( - - 55, - 88 + + - 93 ) + - + COUNT( * ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-6262
SELECT + + 37 / NULLIF ( - - 55, - 88 + + - 93 ) + - + COUNT ( * ) col1
----
-1

query I rowsort
SELECT - + 31 + - 77
----
-108

onlyif mysql # aggregate syntax: 
query I rowsort label-6264
SELECT - - MAX( + ( + - 10 ) ) * - 47
----
470

skipif mysql # not compatible
query I rowsort label-6264
SELECT - - MAX ( + ( + - 10 ) ) * - 47
----
470

query I rowsort
SELECT - - 56 + - + 94 + + - 13
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-6266
SELECT DISTINCT - NULLIF ( - - 77, + 85 ) * COUNT( * ) AS col1
----
-77

skipif mysql # not compatible
query I rowsort label-6266
SELECT DISTINCT - NULLIF ( - - 77, + 85 ) * COUNT ( * ) AS col1
----
-77

query I rowsort
SELECT DISTINCT + - 78 + - 51
----
-129

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6268
SELECT - 98 + - - 25 + 64 DIV + 46 + - ( - COALESCE ( - SUM( ALL 79 ), 40 ) ) + + - COUNT( * ) + + 42 + 8 + - 24 + - 33 + + 27 * - 26 * 49 * 6 AS col2
----
-206547

skipif mysql # not compatible
query I rowsort label-6268
SELECT - 98 + - - 25 + 64 / + 46 + - ( - COALESCE ( - SUM ( ALL 79 ), 40 ) ) + + - COUNT ( * ) + + 42 + 8 + - 24 + - 33 + + 27 * - 26 * 49 * 6 AS col2
----
-206547

onlyif mysql # aggregate syntax: 
query I rowsort label-6269
SELECT ALL + NULLIF ( - 34, - + 62 - - 98 - 54 + - 38 * - COUNT( * ) + - 23 ) - - + 7 AS col2
----
-27

skipif mysql # not compatible
query I rowsort label-6269
SELECT ALL + NULLIF ( - 34, - + 62 - - 98 - 54 + - 38 * - COUNT ( * ) + - 23 ) - - + 7 AS col2
----
-27

onlyif mysql # aggregate syntax: 
query II rowsort label-6270
SELECT ALL ( + + COUNT( * ) ) - + ( - - COUNT( * ) ) * + 23 AS col1, 45 + + COUNT( * ) AS col2
----
-22
46

skipif mysql # not compatible
query II rowsort label-6270
SELECT ALL ( + + COUNT ( * ) ) - + ( - - COUNT ( * ) ) * + 23 AS col1, 45 + + COUNT ( * ) AS col2
----
-22
46

onlyif mysql # aggregate syntax: 
query I rowsort label-6271
SELECT - MIN( ALL - 64 )
----
64

skipif mysql # not compatible
query I rowsort label-6271
SELECT - MIN ( ALL - 64 )
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-6272
SELECT - ( + + 70 ) + + + COUNT( * )
----
-69

skipif mysql # not compatible
query I rowsort label-6272
SELECT - ( + + 70 ) + + + COUNT ( * )
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-6273
SELECT ALL + 75 - + + 47 + - COUNT( * ) * - 39 * + ( - 18 )
----
-674

skipif mysql # not compatible
query I rowsort label-6273
SELECT ALL + 75 - + + 47 + - COUNT ( * ) * - 39 * + ( - 18 )
----
-674

query I rowsort
SELECT + 91 * - - 45 AS col1
----
4095

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6275
SELECT COUNT( * ) + CAST( + - 21 AS SIGNED ) AS col0
----
-20

skipif mysql # not compatible
query I rowsort label-6275
SELECT COUNT ( * ) + CAST ( + - 21 AS INTEGER ) AS col0
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-6276
SELECT DISTINCT COUNT( * ) * + + 62 AS col0
----
62

skipif mysql # not compatible
query I rowsort label-6276
SELECT DISTINCT COUNT ( * ) * + + 62 AS col0
----
62

onlyif mysql # DIV for integer division: 
query I rowsort label-6277
SELECT DISTINCT + 17 DIV + 22 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6277
SELECT DISTINCT + 17 / + 22 AS col1
----
0

query II rowsort
SELECT ALL - 73 AS col1, + 64
----
-73
64

onlyif mysql # aggregate syntax: 
query I rowsort label-6279
SELECT COUNT( * ) * - 78
----
-78

skipif mysql # not compatible
query I rowsort label-6279
SELECT COUNT ( * ) * - 78
----
-78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6280
SELECT DISTINCT + 90 * - + CAST( NULL AS SIGNED ) / 20 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6280
SELECT DISTINCT + 90 * - + CAST ( NULL AS INTEGER ) / 20 AS col0
----
NULL

query II rowsort
SELECT ALL - 89 AS col0, 49
----
-89
49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6282
SELECT DISTINCT CAST( NULL AS SIGNED ) / - COUNT( * ) * - ( - + 1 ) * - 24 + + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6282
SELECT DISTINCT CAST ( NULL AS INTEGER ) / - COUNT ( * ) * - ( - + 1 ) * - 24 + + COUNT ( * ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6283
SELECT NULLIF ( + + 54, - ( + + 0 ) * + ( + 42 ) ) DIV + MIN( + - 88 ) * - 99, - ( + 17 ) * + - 13 AS col0
----
0
221

skipif mysql # not compatible
query II rowsort label-6283
SELECT NULLIF ( + + 54, - ( + + 0 ) * + ( + 42 ) ) / + MIN ( + - 88 ) * - 99, - ( + 17 ) * + - 13 AS col0
----
0
221

onlyif mysql # aggregate syntax: 
query II rowsort label-6284
SELECT ALL - 63, + COUNT( * ) * + + NULLIF ( + COUNT( * ), 37 - - 61 + - 86 - - + 35 ) * - 0 AS col1
----
-63
0

skipif mysql # not compatible
query II rowsort label-6284
SELECT ALL - 63, + COUNT ( * ) * + + NULLIF ( + COUNT ( * ), 37 - - 61 + - 86 - - + 35 ) * - 0 AS col1
----
-63
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6285
SELECT MIN( - 12 ) * 84 col0
----
-1008

skipif mysql # not compatible
query I rowsort label-6285
SELECT MIN ( - 12 ) * 84 col0
----
-1008

query II rowsort
SELECT ( 83 ) * - - 46 col2, 0 AS col2
----
3818
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6287
SELECT 8 * COUNT( * ) col1
----
8

skipif mysql # not compatible
query I rowsort label-6287
SELECT 8 * COUNT ( * ) col1
----
8

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6288
SELECT DISTINCT CAST( + - ( 42 ) AS SIGNED ) DIV 77 - + 69
----
-69

skipif mysql # not compatible
query I rowsort label-6288
SELECT DISTINCT CAST ( + - ( 42 ) AS INTEGER ) / 77 - + 69
----
-69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6289
SELECT DISTINCT 41 + CAST( 72 AS SIGNED ) * - 83 DIV + CASE + + 40 WHEN COUNT( * ) THEN 92 END AS col0, - 94 * - + CAST( - 2 AS SIGNED ) + - 16 DIV + + COUNT( * )
----
NULL
-204

skipif mysql # not compatible
query II rowsort label-6289
SELECT DISTINCT 41 + CAST ( 72 AS INTEGER ) * - 83 / + CASE + + 40 WHEN COUNT ( * ) THEN 92 END AS col0, - 94 * - + CAST ( - 2 AS INTEGER ) + - 16 / + + COUNT ( * )
----
NULL
-204

query II rowsort
SELECT + 5, 34 AS col0
----
5
34

query I rowsort
SELECT ALL 76 + - 94 AS col1
----
-18

query II rowsort
SELECT + 8, + 95 AS col0
----
8
95

query II rowsort
SELECT + 97 AS col1, + 25 AS col2
----
97
25

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6294
SELECT ALL 49 * COUNT( * ) + - 57 + - - 92 - - 10 * - 24 DIV - COUNT( DISTINCT - - 28 ) AS col1, 47 AS col2
----
324
47

skipif mysql # not compatible
query II rowsort label-6294
SELECT ALL 49 * COUNT ( * ) + - 57 + - - 92 - - 10 * - 24 / - COUNT ( DISTINCT - - 28 ) AS col1, 47 AS col2
----
324
47

query I rowsort
SELECT 66 * + + 58 + - 3
----
3825

onlyif mysql # aggregate syntax: 
query II rowsort label-6296
SELECT - COUNT( * ), MIN( 70 ) AS col2
----
-1
70

skipif mysql # not compatible
query II rowsort label-6296
SELECT - COUNT ( * ), MIN ( 70 ) AS col2
----
-1
70

query I rowsort
SELECT 8 - - 89 AS col0
----
97

query II rowsort
SELECT - 3, - ( + 68 ) AS col2
----
-3
-68

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6299
SELECT DISTINCT - MAX( ALL - 67 ) + - CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6299
SELECT DISTINCT - MAX ( ALL - 67 ) + - CAST ( NULL AS REAL ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6300
SELECT ALL - COUNT( * ) - - 55 * 15
----
824

skipif mysql # not compatible
query I rowsort label-6300
SELECT ALL - COUNT ( * ) - - 55 * 15
----
824

onlyif mysql # aggregate syntax: 
query I rowsort label-6301
SELECT COUNT( * ) + - 51 * + 73 * - 53 col1
----
197320

skipif mysql # not compatible
query I rowsort label-6301
SELECT COUNT ( * ) + - 51 * + 73 * - 53 col1
----
197320

query I rowsort
SELECT ALL + 45 - - 19 * - + 93 AS col1
----
-1722

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6303
SELECT CASE - 68 WHEN 3 * - + 49 + - 40 THEN + ( - + 47 ) + 82 + + CAST( + 20 AS SIGNED ) * - + 70 + + 22 WHEN + 44 THEN NULL END / + + 45 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6303
SELECT CASE - 68 WHEN 3 * - + 49 + - 40 THEN + ( - + 47 ) + 82 + + CAST ( + 20 AS INTEGER ) * - + 70 + + 22 WHEN + 44 THEN NULL END / + + 45 col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6304
SELECT ALL 79 DIV + + 46 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6304
SELECT ALL 79 / + + 46 AS col1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-6305
SELECT 57 DIV + + 17 - - - 76
----
-73

skipif mysql # not compatible
query I rowsort label-6305
SELECT 57 / + + 17 - - - 76
----
-73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6306
SELECT COUNT( * ) * - ( - 78 ) - - CAST( NULL AS SIGNED ) + COALESCE ( - 89, - - SUM( - - 10 ) ) + - 81 * + + 83 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6306
SELECT COUNT ( * ) * - ( - 78 ) - - CAST ( NULL AS INTEGER ) + COALESCE ( - 89, - - SUM ( - - 10 ) ) + - 81 * + + 83 AS col0
----
NULL

query I rowsort
SELECT ALL 13 * + 27 * - 96 AS col1
----
-33696

onlyif mysql # aggregate syntax: 
query I rowsort label-6308
SELECT DISTINCT SUM( - 70 )
----
-70

skipif mysql # not compatible
query I rowsort label-6308
SELECT DISTINCT SUM ( - 70 )
----
-70

query I rowsort
SELECT 18 * - - 98
----
1764

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6310
SELECT ALL - CASE - AVG ( + 20 ) WHEN - ( 17 ) * + + 94 * + ( 38 ) - 42 THEN + CAST( + 42 AS DECIMAL ) + - NULLIF ( - COUNT( * ), + 19 ) WHEN ( - - 40 ) THEN 14 + + + 72 - - 19 + + COUNT( * ) + - COUNT( * ) / COUNT( + 47 ) * - ( - 10 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-6310
SELECT ALL - CASE - AVG ( + 20 ) WHEN - ( 17 ) * + + 94 * + ( 38 ) - 42 THEN + CAST ( + 42 AS REAL ) + - NULLIF ( - COUNT ( * ), + 19 ) WHEN ( - - 40 ) THEN 14 + + + 72 - - 19 + + COUNT ( * ) + - COUNT ( * ) / COUNT ( + 47 ) * - ( - 10 ) END
----
NULL

query I rowsort
SELECT NULLIF ( + 72, - - 15 ) * + + 66 + 50
----
4802

query I rowsort
SELECT - 93 * - 36 + - 67 AS col1
----
3281

query I rowsort
SELECT 8 * + 82
----
656

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6314
SELECT - 55 * 42 DIV - MIN( ALL 15 ) + - + 83 - - NULLIF ( - 31, COUNT( * ) * - - 19 DIV + + MAX( - + 33 ) * + 79 - + 99 ) + + + 51 * - 87 * + 54 - - - 32 AS col0
----
-239590

skipif mysql # not compatible
query I rowsort label-6314
SELECT - 55 * 42 / - MIN ( ALL 15 ) + - + 83 - - NULLIF ( - 31, COUNT ( * ) * - - 19 / + + MAX ( - + 33 ) * + 79 - + 99 ) + + + 51 * - 87 * + 54 - - - 32 AS col0
----
-239590

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6315
SELECT 69 DIV + + 92 + + + 84 + - 23 + + 90 + NULLIF ( - - 0, + + 38 ) + + COUNT( * ) + - COUNT( * ) * + 23 AS col1
----
129

skipif mysql # not compatible
query I rowsort label-6315
SELECT 69 / + + 92 + + + 84 + - 23 + + 90 + NULLIF ( - - 0, + + 38 ) + + COUNT ( * ) + - COUNT ( * ) * + 23 AS col1
----
129

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6316
SELECT 32 * + 84 - + - 5 DIV - ( + 23 ) + ( + 53 ) + CASE + 19 WHEN CAST( NULL AS SIGNED ) THEN NULL ELSE 2 + - 60 END col1
----
2683

skipif mysql # not compatible
query I rowsort label-6316
SELECT 32 * + 84 - + - 5 / - ( + 23 ) + ( + 53 ) + CASE + 19 WHEN CAST ( NULL AS INTEGER ) THEN NULL ELSE 2 + - 60 END col1
----
2683

onlyif mysql # aggregate syntax: 
query II rowsort label-6317
SELECT DISTINCT - MAX( DISTINCT - - 63 ), 67 AS col0
----
-63
67

skipif mysql # not compatible
query II rowsort label-6317
SELECT DISTINCT - MAX ( DISTINCT - - 63 ), 67 AS col0
----
-63
67

onlyif mysql # aggregate syntax: 
query II rowsort label-6318
SELECT COUNT( * ) + - + 44 col0, COALESCE ( - + 35, + + COALESCE ( - 65, + MIN( 2 ) ) + + - 37 * 29, - 51 ) AS col0
----
-43
-35

skipif mysql # not compatible
query II rowsort label-6318
SELECT COUNT ( * ) + - + 44 col0, COALESCE ( - + 35, + + COALESCE ( - 65, + MIN ( 2 ) ) + + - 37 * 29, - 51 ) AS col0
----
-43
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-6319
SELECT ALL - MIN( - 55 ) AS col1
----
55

skipif mysql # not compatible
query I rowsort label-6319
SELECT ALL - MIN ( - 55 ) AS col1
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-6320
SELECT COUNT( * ) * + + 97 + COUNT( * ) AS col1
----
98

skipif mysql # not compatible
query I rowsort label-6320
SELECT COUNT ( * ) * + + 97 + COUNT ( * ) AS col1
----
98

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6321
SELECT ALL 82 + - + CAST( - - 28 AS SIGNED ) DIV + COALESCE ( 41, - 3 )
----
82

skipif mysql # not compatible
query I rowsort label-6321
SELECT ALL 82 + - + CAST ( - - 28 AS INTEGER ) / + COALESCE ( 41, - 3 )
----
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6322
SELECT MIN( ALL - 12 ) AS col1, 0 + - CAST( NULL AS SIGNED ) AS col0
----
-12
NULL

skipif mysql # not compatible
query II rowsort label-6322
SELECT MIN ( ALL - 12 ) AS col1, 0 + - CAST ( NULL AS INTEGER ) AS col0
----
-12
NULL

query I rowsort
SELECT 33 * 96 * - + 96 col1
----
-304128

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6324
SELECT ALL 47 + + CAST( - 30 AS SIGNED )
----
17

skipif mysql # not compatible
query I rowsort label-6324
SELECT ALL 47 + + CAST ( - 30 AS INTEGER )
----
17

query I rowsort
SELECT 44 + + 41 AS col2
----
85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6326
SELECT ALL CASE ( ( - 9 ) ) WHEN + 11 + + + 49 - 59 - + 3 THEN - ( - MAX( + 27 ) ) * 2 * - CAST( NULL AS SIGNED ) * + 66 / - 77 - 72 END + + CAST( 86 AS DECIMAL ) * - 67
----
NULL

skipif mysql # not compatible
query I rowsort label-6326
SELECT ALL CASE ( ( - 9 ) ) WHEN + 11 + + + 49 - 59 - + 3 THEN - ( - MAX ( + 27 ) ) * 2 * - CAST ( NULL AS INTEGER ) * + 66 / - 77 - 72 END + + CAST ( 86 AS REAL ) * - 67
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6327
SELECT DISTINCT + 93 DIV - 80 + - 8 AS col0
----
-9

skipif mysql # not compatible
query I rowsort label-6327
SELECT DISTINCT + 93 / - 80 + - 8 AS col0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-6328
SELECT ALL - COUNT( + 72 )
----
-1

skipif mysql # not compatible
query I rowsort label-6328
SELECT ALL - COUNT ( + 72 )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6329
SELECT ALL - + CASE - - ( + CAST( - NULLIF ( - + 79, + + 66 ) AS SIGNED ) ) WHEN - - 21 THEN NULL WHEN 7 THEN + 59 * 16 + + CASE - + 95 WHEN + - CASE - ( - 81 ) WHEN MAX( ALL + - 64 ) * CAST( NULL AS DECIMAL ) THEN - + 4 * 6 * - - COUNT( * ) END * MIN( ALL - 7 ) + COUNT( * ) + - 55 THEN + - 99 END + + 24 / - - 11 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6329
SELECT ALL - + CASE - - ( + CAST ( - NULLIF ( - + 79, + + 66 ) AS INTEGER ) ) WHEN - - 21 THEN NULL WHEN 7 THEN + 59 * 16 + + CASE - + 95 WHEN + - CASE - ( - 81 ) WHEN MAX ( ALL + - 64 ) * CAST ( NULL AS REAL ) THEN - + 4 * 6 * - - COUNT ( * ) END * MIN ( ALL - 7 ) + COUNT ( * ) + - 55 THEN + - 99 END + + 24 / - - 11 END AS col0
----
NULL

query I rowsort
SELECT + + 54 + + ( + 59 )
----
113

query I rowsort
SELECT + ( 41 ) AS col1
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-6332
SELECT ALL - 68 - - + CASE + + 24 WHEN - 80 + + 26 + - 47 THEN - AVG ( - 41 ) + + - COUNT( * ) WHEN - + 70 THEN NULL END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6332
SELECT ALL - 68 - - + CASE + + 24 WHEN - 80 + + 26 + - 47 THEN - AVG ( - 41 ) + + - COUNT ( * ) WHEN - + 70 THEN NULL END col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6333
SELECT ALL COUNT( * ) * - 6 AS col2
----
-6

skipif mysql # not compatible
query I rowsort label-6333
SELECT ALL COUNT ( * ) * - 6 AS col2
----
-6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6334
SELECT ALL CAST( + 48 AS SIGNED ), + COUNT( * ) AS col0
----
48
1

skipif mysql # not compatible
query II rowsort label-6334
SELECT ALL CAST ( + 48 AS INTEGER ), + COUNT ( * ) AS col0
----
48
1

query I rowsort
SELECT DISTINCT - 24 * + 55 - + 19
----
-1339

onlyif mysql # aggregate syntax: 
query I rowsort label-6336
SELECT - - 55 * - + ( - 17 ) + + 33 * 84 + COALESCE ( - 92, + 84 * + 56 * 59 ) + + COUNT( * ) + - + 80 * 85
----
-3184

skipif mysql # not compatible
query I rowsort label-6336
SELECT - - 55 * - + ( - 17 ) + + 33 * 84 + COALESCE ( - 92, + 84 * + 56 * 59 ) + + COUNT ( * ) + - + 80 * 85
----
-3184

onlyif mysql # aggregate syntax: 
query I rowsort label-6337
SELECT ALL 76 * COUNT( * ) + + + 82
----
158

skipif mysql # not compatible
query I rowsort label-6337
SELECT ALL 76 * COUNT ( * ) + + + 82
----
158

onlyif mysql # aggregate syntax: 
query I rowsort label-6338
SELECT + 20 + COUNT( ALL - + CASE - + 54 WHEN 0 * + + 11 + 4 * - + 0 / + ( - 57 ) THEN + + 37 END )
----
20

skipif mysql # not compatible
query I rowsort label-6338
SELECT + 20 + COUNT ( ALL - + CASE - + 54 WHEN 0 * + + 11 + 4 * - + 0 / + ( - 57 ) THEN + + 37 END )
----
20

onlyif mysql # aggregate syntax: 
query II rowsort label-6339
SELECT + - 36 + + COUNT( + - 12 ) + - COUNT( * ) AS col0, + 43
----
-36
43

skipif mysql # not compatible
query II rowsort label-6339
SELECT + - 36 + + COUNT ( + - 12 ) + - COUNT ( * ) AS col0, + 43
----
-36
43

onlyif mysql # aggregate syntax: 
query I rowsort label-6340
SELECT ALL - MIN( DISTINCT + 12 )
----
-12

skipif mysql # not compatible
query I rowsort label-6340
SELECT ALL - MIN ( DISTINCT + 12 )
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-6341
SELECT DISTINCT SUM( DISTINCT + 34 )
----
34

skipif mysql # not compatible
query I rowsort label-6341
SELECT DISTINCT SUM ( DISTINCT + 34 )
----
34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6342
SELECT ALL - COALESCE ( - + 22, + + 52 + CAST( NULL AS SIGNED ) + + 77 ) * - - 3
----
66

skipif mysql # not compatible
query I rowsort label-6342
SELECT ALL - COALESCE ( - + 22, + + 52 + CAST ( NULL AS INTEGER ) + + 77 ) * - - 3
----
66

onlyif mysql # DIV for integer division: 
query I rowsort label-6343
SELECT + 60 DIV + 76
----
0

skipif mysql # not compatible
query I rowsort label-6343
SELECT + 60 / + 76
----
0

query I rowsort
SELECT - 54 + + 88
----
34

query I rowsort
SELECT ALL - 45 * + 39
----
-1755

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6346
SELECT + 24 DIV 69 * MAX( ALL - + CAST( - 25 AS SIGNED ) ) * COUNT( * ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6346
SELECT + 24 / 69 * MAX ( ALL - + CAST ( - 25 AS INTEGER ) ) * COUNT ( * ) AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6347
SELECT ALL + CAST( + COUNT( * ) AS SIGNED ) + + + ( 1 ) AS col2
----
2

skipif mysql # not compatible
query I rowsort label-6347
SELECT ALL + CAST ( + COUNT ( * ) AS INTEGER ) + + + ( 1 ) AS col2
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-6348
SELECT DISTINCT - NULLIF ( NULLIF ( + - 38, + 34 + 43 ), - 77 + + COUNT( * ) * + 36 ) * - 6 * + COUNT( * )
----
-228

skipif mysql # not compatible
query I rowsort label-6348
SELECT DISTINCT - NULLIF ( NULLIF ( + - 38, + 34 + 43 ), - 77 + + COUNT ( * ) * + 36 ) * - 6 * + COUNT ( * )
----
-228

onlyif mysql # aggregate syntax: 
query I rowsort label-6349
SELECT ALL - NULLIF ( - 27, + 16 ) * COUNT( * ) + + NULLIF ( 85, - 15 * + - 55 ) AS col2
----
112

skipif mysql # not compatible
query I rowsort label-6349
SELECT ALL - NULLIF ( - 27, + 16 ) * COUNT ( * ) + + NULLIF ( 85, - 15 * + - 55 ) AS col2
----
112

query I rowsort
SELECT ( - 44 ) col0
----
-44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6351
SELECT ALL - 86 * - 14 * + + 36 + - CAST( + NULLIF ( - + 91, - 8 * COUNT( * ) + + + 6 * + 39 * 73 ) AS SIGNED ) + - ( + COUNT( * ) ) * - - 56 * 77
----
39123

skipif mysql # not compatible
query I rowsort label-6351
SELECT ALL - 86 * - 14 * + + 36 + - CAST ( + NULLIF ( - + 91, - 8 * COUNT ( * ) + + + 6 * + 39 * 73 ) AS INTEGER ) + - ( + COUNT ( * ) ) * - - 56 * 77
----
39123

onlyif mysql # DIV for integer division: 
query I rowsort label-6352
SELECT ALL ( + + 41 ) * 91 DIV - 87
----
-42

skipif mysql # not compatible
query I rowsort label-6352
SELECT ALL ( + + 41 ) * 91 / - 87
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-6353
SELECT ALL COUNT( * ) * + 55 * 43 + 70
----
2435

skipif mysql # not compatible
query I rowsort label-6353
SELECT ALL COUNT ( * ) * + 55 * 43 + 70
----
2435

onlyif mysql # aggregate syntax: 
query II rowsort label-6354
SELECT ALL + COUNT( * ), + COUNT( * )
----
1
1

skipif mysql # not compatible
query II rowsort label-6354
SELECT ALL + COUNT ( * ), + COUNT ( * )
----
1
1

query I rowsort
SELECT ( - 0 ) AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6356
SELECT DISTINCT - NULLIF ( 95, + 72 ) * + + 44 + + 83 + + CAST( NULL AS SIGNED ) + - - 53 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6356
SELECT DISTINCT - NULLIF ( 95, + 72 ) * + + 44 + + 83 + + CAST ( NULL AS INTEGER ) + - - 53 AS col2
----
NULL

query I rowsort
SELECT ALL 63 * - 24 * - 9 + - 28 + 82 AS col2
----
13662

query I rowsort
SELECT - 52 * 23 AS col2
----
-1196

onlyif mysql # aggregate syntax: 
query I rowsort label-6359
SELECT + SUM( + 80 )
----
80

skipif mysql # not compatible
query I rowsort label-6359
SELECT + SUM ( + 80 )
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-6360
SELECT - COUNT( * ) - 21 AS col0
----
-22

skipif mysql # not compatible
query I rowsort label-6360
SELECT - COUNT ( * ) - 21 AS col0
----
-22

query I rowsort
SELECT DISTINCT + NULLIF ( ( + 14 ), 33 * AVG ( ALL 79 * - 24 ) )
----
14

query I rowsort
SELECT ALL - 11 * + 63
----
-693

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6363
SELECT - 4 DIV + COUNT( * ) AS col0
----
-4

skipif mysql # not compatible
query I rowsort label-6363
SELECT - 4 / + COUNT ( * ) AS col0
----
-4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6364
SELECT ALL - 93 * + NULLIF ( 64 DIV COUNT( * ), - 8 - CAST( NULL AS SIGNED ) ) - 20 * - 12
----
-5712

skipif mysql # not compatible
query I rowsort label-6364
SELECT ALL - 93 * + NULLIF ( 64 / COUNT ( * ), - 8 - CAST ( NULL AS INTEGER ) ) - 20 * - 12
----
-5712

query I rowsort
SELECT ALL + ( ( - 23 ) )
----
-23

query I rowsort
SELECT DISTINCT - 93 * 76
----
-7068

query I rowsort
SELECT DISTINCT - 20 * + 19
----
-380

onlyif mysql # aggregate syntax: 
query I rowsort label-6368
SELECT DISTINCT + NULLIF ( + CASE 39 WHEN - 69 * 20 + - SUM( 98 ) THEN - 99 + + 31 END, SUM( ALL + 45 ) * 69 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6368
SELECT DISTINCT + NULLIF ( + CASE 39 WHEN - 69 * 20 + - SUM ( 98 ) THEN - 99 + + 31 END, SUM ( ALL + 45 ) * 69 )
----
NULL

query I rowsort
SELECT - 74 * 69 col0
----
-5106

query I rowsort
SELECT ALL - 2 * 34 AS col2
----
-68

query I rowsort
SELECT ALL + 48 * 38
----
1824

query I rowsort
SELECT DISTINCT - 94 * + 70 AS col1
----
-6580

query I rowsort
SELECT 48 * 21 + - 24 AS col1
----
984

query I rowsort
SELECT - NULLIF ( - 97, + 70 )
----
97

query I rowsort
SELECT ALL 61 * 37 - + 73
----
2184

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6376
SELECT - 38 DIV COUNT( * )
----
-38

skipif mysql # not compatible
query I rowsort label-6376
SELECT - 38 / COUNT ( * )
----
-38

onlyif mysql # DIV for integer division: 
query I rowsort label-6377
SELECT DISTINCT 67 DIV - ( - 52 )
----
1

skipif mysql # not compatible
query I rowsort label-6377
SELECT DISTINCT 67 / - ( - 52 )
----
1

query I rowsort
SELECT + 79 * + 18 AS col2
----
1422

onlyif mysql # DIV for integer division: 
query I rowsort label-6379
SELECT ALL 85 DIV 97 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6379
SELECT ALL 85 / 97 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6380
SELECT MIN( ALL - 47 ) AS col0
----
-47

skipif mysql # not compatible
query I rowsort label-6380
SELECT MIN ( ALL - 47 ) AS col0
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-6381
SELECT + 67 + - 79 * CASE + 68 * - 92 WHEN + 71 * - 91 THEN NULL WHEN - 31 * COUNT( * ) THEN 97 * - 27 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6381
SELECT + 67 + - 79 * CASE + 68 * - 92 WHEN + 71 * - 91 THEN NULL WHEN - 31 * COUNT ( * ) THEN 97 * - 27 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6382
SELECT DISTINCT CAST( 66 AS SIGNED )
----
66

skipif mysql # not compatible
query I rowsort label-6382
SELECT DISTINCT CAST ( 66 AS INTEGER )
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-6383
SELECT ALL - COUNT( * ) + + 35
----
34

skipif mysql # not compatible
query I rowsort label-6383
SELECT ALL - COUNT ( * ) + + 35
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-6384
SELECT ALL COUNT( ALL 87 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6384
SELECT ALL COUNT ( ALL 87 ) AS col0
----
1

query I rowsort
SELECT DISTINCT 14 * + 28 AS col2
----
392

query I rowsort
SELECT ALL 25 + 52 col0
----
77

query I rowsort
SELECT - 31 + 46
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-6388
SELECT + 54 * NULLIF ( ( + ( COUNT( * ) ) ), + 98 + - ( + 78 - - COALESCE ( COUNT( * ) + - 90, + 1 * 41, + 27 * 91 ) ) ) AS col0
----
54

skipif mysql # not compatible
query I rowsort label-6388
SELECT + 54 * NULLIF ( ( + ( COUNT ( * ) ) ), + 98 + - ( + 78 - - COALESCE ( COUNT ( * ) + - 90, + 1 * 41, + 27 * 91 ) ) ) AS col0
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-6389
SELECT DISTINCT 60 + - 5 * COUNT( * )
----
55

skipif mysql # not compatible
query I rowsort label-6389
SELECT DISTINCT 60 + - 5 * COUNT ( * )
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-6390
SELECT - CASE - 97 WHEN 23 THEN - MAX( + 33 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-6390
SELECT - CASE - 97 WHEN 23 THEN - MAX ( + 33 ) END
----
NULL

query I rowsort
SELECT ALL 12 + + 28
----
40

query I rowsort
SELECT + 18 * 20 AS col2
----
360

query I rowsort
SELECT + 77 + - 30 * 35
----
-973

query I rowsort
SELECT DISTINCT 47 + 36 AS col1
----
83

query I rowsort
SELECT DISTINCT 6 + + 16 AS col2
----
22

query I rowsort
SELECT DISTINCT - 96 * - 86
----
8256

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6397
SELECT DISTINCT - 59 DIV CAST( 98 AS SIGNED ) + 88 * + 97 col0
----
8536

skipif mysql # not compatible
query I rowsort label-6397
SELECT DISTINCT - 59 / CAST ( 98 AS INTEGER ) + 88 * + 97 col0
----
8536

query I rowsort
SELECT 79 * - ( - 64 * - 61 ) + - 10 AS col0
----
-308426

onlyif mysql # DIV for integer division: 
query I rowsort label-6399
SELECT ALL 90 DIV 42 - + 85 AS col1
----
-83

skipif mysql # not compatible
query I rowsort label-6399
SELECT ALL 90 / 42 - + 85 AS col1
----
-83

query I rowsort
SELECT DISTINCT 64 * - 24
----
-1536

query I rowsort
SELECT 6 * ( - 66 ) + 87 * 77 AS col1
----
6303

onlyif mysql # aggregate syntax: 
query I rowsort label-6402
SELECT + MIN( ALL + 12 ) * + 70 AS col0
----
840

skipif mysql # not compatible
query I rowsort label-6402
SELECT + MIN ( ALL + 12 ) * + 70 AS col0
----
840

onlyif mysql # DIV for integer division: 
query I rowsort label-6403
SELECT + 14 DIV 87 + ( - 18 ) AS col0
----
-18

skipif mysql # not compatible
query I rowsort label-6403
SELECT + 14 / 87 + ( - 18 ) AS col0
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-6404
SELECT ALL NULLIF ( COUNT( * ), + COUNT( * ) ) - - 84 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6404
SELECT ALL NULLIF ( COUNT ( * ), + COUNT ( * ) ) - - 84 AS col0
----
NULL

query I rowsort
SELECT - NULLIF ( + 43, 50 * 64 ) + - 13 * 69
----
-940

onlyif mysql # aggregate syntax: 
query I rowsort label-6406
SELECT ALL - COUNT( * ) - 69 AS col0
----
-70

skipif mysql # not compatible
query I rowsort label-6406
SELECT ALL - COUNT ( * ) - 69 AS col0
----
-70

query I rowsort
SELECT DISTINCT - 90 * 37
----
-3330

query I rowsort
SELECT DISTINCT - - 83 col1
----
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6409
SELECT COALESCE ( 91, - COUNT( * ), 65 + 97 ) * 68 + - CASE 75 WHEN + 27 * + MIN( 88 / 79 ) + 80 THEN CAST( CAST( NULL AS SIGNED ) AS SIGNED ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6409
SELECT COALESCE ( 91, - COUNT ( * ), 65 + 97 ) * 68 + - CASE 75 WHEN + 27 * + MIN ( 88 / 79 ) + 80 THEN CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) END AS col1
----
NULL

query I rowsort
SELECT + 75 + - 38 * COALESCE ( 71, + 9 * 18, - 78 ) col0
----
-2623

query I rowsort
SELECT 76 + 80 / + CASE 66 / NULLIF ( - 31 * + 97, - COALESCE ( - 43, ( + 55 ) ) ) + 32 WHEN - 41 THEN NULL WHEN + 6 THEN NULL WHEN 89 THEN 86 + + 90 / + 27 ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6412
SELECT 6 * + CASE 78 WHEN 93 THEN NULL ELSE + 16 + + 57 * COUNT( * ) END AS col0
----
438

skipif mysql # not compatible
query I rowsort label-6412
SELECT 6 * + CASE 78 WHEN 93 THEN NULL ELSE + 16 + + 57 * COUNT ( * ) END AS col0
----
438

query I rowsort
SELECT DISTINCT - ( ( 77 ) ) * + 80
----
-6160

onlyif mysql # DIV for integer division: 
query I rowsort label-6414
SELECT DISTINCT - 47 DIV 92 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6414
SELECT DISTINCT - 47 / 92 AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6415
SELECT DISTINCT + - CAST( NULL AS SIGNED ) + 8
----
NULL

skipif mysql # not compatible
query I rowsort label-6415
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) + 8
----
NULL

query I rowsort
SELECT ALL - - 81 * + 87
----
7047

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6417
SELECT ALL - - 64 + + CASE - 52 WHEN + COUNT( * ) * 96 THEN NULL WHEN + 26 + 3 THEN NULL ELSE CASE 40 WHEN - 44 / + COUNT( * ) THEN NULL ELSE - ( - 5 ) * + CAST( 33 * + 55 AS SIGNED ) END END * COUNT( * ) AS col0
----
9139

skipif mysql # not compatible
query I rowsort label-6417
SELECT ALL - - 64 + + CASE - 52 WHEN + COUNT ( * ) * 96 THEN NULL WHEN + 26 + 3 THEN NULL ELSE CASE 40 WHEN - 44 / + COUNT ( * ) THEN NULL ELSE - ( - 5 ) * + CAST ( 33 * + 55 AS INTEGER ) END END * COUNT ( * ) AS col0
----
9139

query I rowsort
SELECT ALL - 56 + + 57 col1
----
1

query I rowsort
SELECT ALL + 34 + NULLIF ( - 94 - 21 * 92, + 44 ) AS col2
----
-1992

onlyif mysql # aggregate syntax: 
query I rowsort label-6420
SELECT COUNT( * ) * 81 col2
----
81

skipif mysql # not compatible
query I rowsort label-6420
SELECT COUNT ( * ) * 81 col2
----
81

onlyif mysql # DIV for integer division: 
query I rowsort label-6421
SELECT - 0 DIV + 40 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6421
SELECT - 0 / + 40 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6422
SELECT ALL - MAX( DISTINCT - 92 ) + 38
----
130

skipif mysql # not compatible
query I rowsort label-6422
SELECT ALL - MAX ( DISTINCT - 92 ) + 38
----
130

query I rowsort
SELECT 18 * - 51 AS col0
----
-918

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6424
SELECT ALL ( + - COUNT( + 29 ) ) DIV 83
----
0

skipif mysql # not compatible
query I rowsort label-6424
SELECT ALL ( + - COUNT ( + 29 ) ) / 83
----
0

query I rowsort
SELECT 24 + - 25
----
-1

query I rowsort
SELECT DISTINCT + 37 + 1 AS col1
----
38

onlyif mysql # DIV for integer division: 
query I rowsort label-6427
SELECT DISTINCT ( 29 ) DIV - ( - 85 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6427
SELECT DISTINCT ( 29 ) / - ( - 85 ) AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6428
SELECT DISTINCT + 28 DIV + - 99 * 80
----
0

skipif mysql # not compatible
query I rowsort label-6428
SELECT DISTINCT + 28 / + - 99 * 80
----
0

query I rowsort
SELECT DISTINCT 6 + 70 AS col2
----
76

query I rowsort
SELECT DISTINCT 24 * + 23 AS col2
----
552

onlyif mysql # aggregate syntax: 
query I rowsort label-6431
SELECT ALL - MAX( ALL - NULLIF ( + 10, 0 * 61 ) ) - 67 AS col1
----
-57

skipif mysql # not compatible
query I rowsort label-6431
SELECT ALL - MAX ( ALL - NULLIF ( + 10, 0 * 61 ) ) - 67 AS col1
----
-57

query I rowsort
SELECT ALL 59 * - 28
----
-1652

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6433
SELECT DISTINCT MAX( + + CAST( - 53 AS SIGNED ) ) - 44
----
-97

skipif mysql # not compatible
query I rowsort label-6433
SELECT DISTINCT MAX ( + + CAST ( - 53 AS INTEGER ) ) - 44
----
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6434
SELECT ( - 88 ) + MAX( ALL CAST( - 91 AS SIGNED ) ) col1
----
-179

skipif mysql # not compatible
query I rowsort label-6434
SELECT ( - 88 ) + MAX ( ALL CAST ( - 91 AS INTEGER ) ) col1
----
-179

query I rowsort
SELECT ALL 5 * 13 col1
----
65

query I rowsort
SELECT 49 * + 70
----
3430

query I rowsort
SELECT ALL - 75 - - 20
----
-55

query I rowsort
SELECT ALL + ( - - 76 ) * 24
----
1824

onlyif mysql # aggregate syntax: 
query I rowsort label-6439
SELECT ALL 93 - - COUNT( DISTINCT - 76 ) * 89 col0
----
182

skipif mysql # not compatible
query I rowsort label-6439
SELECT ALL 93 - - COUNT ( DISTINCT - 76 ) * 89 col0
----
182

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6440
SELECT DISTINCT 58 DIV MAX( ALL + 33 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6440
SELECT DISTINCT 58 / MAX ( ALL + 33 ) AS col1
----
1

query I rowsort
SELECT 21 * + 95 + + 80 * 12
----
2955

query I rowsort
SELECT ALL + 37 * + + 94 * + 68
----
236504

onlyif mysql # aggregate syntax: 
query I rowsort label-6443
SELECT - MAX( DISTINCT - 25 ) * - 92 AS col2
----
-2300

skipif mysql # not compatible
query I rowsort label-6443
SELECT - MAX ( DISTINCT - 25 ) * - 92 AS col2
----
-2300

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6444
SELECT ALL CAST( NULL AS SIGNED ) * + MAX( 68 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6444
SELECT ALL CAST ( NULL AS INTEGER ) * + MAX ( 68 )
----
NULL

query I rowsort
SELECT 31 - - 2 AS col0
----
33

onlyif mysql # DIV for integer division: 
query I rowsort label-6446
SELECT 90 * + - 70 + + 9 DIV 3
----
-6297

skipif mysql # not compatible
query I rowsort label-6446
SELECT 90 * + - 70 + + 9 / 3
----
-6297

query I rowsort
SELECT ALL - 45 + 55
----
10

query I rowsort
SELECT ALL - + 29 * 40
----
-1160

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6449
SELECT DISTINCT + 18 + + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6449
SELECT DISTINCT + 18 + + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6450
SELECT + + MIN( + - 52 )
----
-52

skipif mysql # not compatible
query I rowsort label-6450
SELECT + + MIN ( + - 52 )
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-6451
SELECT DISTINCT - 43 + + - 12 + COUNT( * )
----
-54

skipif mysql # not compatible
query I rowsort label-6451
SELECT DISTINCT - 43 + + - 12 + COUNT ( * )
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-6452
SELECT DISTINCT + - COUNT( * ) + + - 19 * + COUNT( * )
----
-20

skipif mysql # not compatible
query I rowsort label-6452
SELECT DISTINCT + - COUNT ( * ) + + - 19 * + COUNT ( * )
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-6453
SELECT DISTINCT 27 + - - 93 + 59 * + COALESCE ( + 6, - COUNT( * ), - 89 * - 78 ) AS col2
----
474

skipif mysql # not compatible
query I rowsort label-6453
SELECT DISTINCT 27 + - - 93 + 59 * + COALESCE ( + 6, - COUNT ( * ), - 89 * - 78 ) AS col2
----
474

query I rowsort
SELECT DISTINCT - 63 + - 96
----
-159

query I rowsort
SELECT 4 * - COALESCE ( 63, + 4 * + 68 ) * 36 + - 37
----
-9109

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6456
SELECT - CAST( - CAST( NULL AS DECIMAL ) AS DECIMAL ) * + CASE 69 WHEN - 98 THEN 68 / - 13 ELSE - CASE 12 WHEN 55 THEN - 78 / + MIN( ALL 64 ) - CAST( NULL AS SIGNED ) * 73 WHEN - COALESCE ( - NULLIF ( ( + 97 ), 16 ), + 80 / + 13 ) + 12 * 65 THEN NULL WHEN 89 THEN ( 51 ) / 73 + + COUNT( * ) * - 43 END END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6456
SELECT - CAST ( - CAST ( NULL AS REAL ) AS REAL ) * + CASE 69 WHEN - 98 THEN 68 / - 13 ELSE - CASE 12 WHEN 55 THEN - 78 / + MIN ( ALL 64 ) - CAST ( NULL AS INTEGER ) * 73 WHEN - COALESCE ( - NULLIF ( ( + 97 ), 16 ), + 80 / + 13 ) + 12 * 65 THEN NULL WHEN 89 THEN ( 51 ) / 73 + + COUNT ( * ) * - 43 END END AS col2
----
NULL

query II rowsort
SELECT - 12 AS col1, 59 + - + 55 * + 39 AS col0
----
-12
-2086

onlyif mysql # aggregate syntax: 
query I rowsort label-6458
SELECT ALL + ( + - 81 ) + - 96 * - ( COUNT( * ) )
----
15

skipif mysql # not compatible
query I rowsort label-6458
SELECT ALL + ( + - 81 ) + - 96 * - ( COUNT ( * ) )
----
15

onlyif mysql # DIV for integer division: 
query I rowsort label-6459
SELECT 27 + + + 10 + - 16 DIV 71
----
37

skipif mysql # not compatible
query I rowsort label-6459
SELECT 27 + + + 10 + - 16 / 71
----
37

onlyif mysql # DIV for integer division: 
query I rowsort label-6460
SELECT DISTINCT + 41 DIV + 31 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6460
SELECT DISTINCT + 41 / + 31 AS col0
----
1

query I rowsort
SELECT DISTINCT + 96 * ( - 40 ) AS col0
----
-3840

onlyif mysql # aggregate syntax: 
query I rowsort label-6462
SELECT 53 * - SUM( ALL + 0 ) * 31 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6462
SELECT 53 * - SUM ( ALL + 0 ) * 31 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6463
SELECT DISTINCT + ( - - 74 ) - - COALESCE ( - 96, MIN( DISTINCT + ( + 99 ) ) + - 42, COUNT( * ) - + 66 ) AS col1
----
-22

skipif mysql # not compatible
query I rowsort label-6463
SELECT DISTINCT + ( - - 74 ) - - COALESCE ( - 96, MIN ( DISTINCT + ( + 99 ) ) + - 42, COUNT ( * ) - + 66 ) AS col1
----
-22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6464
SELECT AVG ( - 20 ) + + 59 + + 63 / CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6464
SELECT AVG ( - 20 ) + + 59 + + 63 / CAST ( NULL AS INTEGER ) col1
----
NULL

query I rowsort
SELECT 42 * - 2 * + 96
----
-8064

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6466
SELECT CASE + 7 WHEN + 45 THEN NULL ELSE + CAST( NULL AS DECIMAL ) END * 61
----
NULL

skipif mysql # not compatible
query I rowsort label-6466
SELECT CASE + 7 WHEN + 45 THEN NULL ELSE + CAST ( NULL AS REAL ) END * 61
----
NULL

query I rowsort
SELECT ALL - 24 - - + 43
----
19

query I rowsort
SELECT 52 * + + 18 AS col2
----
936

onlyif mysql # DIV for integer division: 
query I rowsort label-6469
SELECT DISTINCT + 61 DIV 54
----
1

skipif mysql # not compatible
query I rowsort label-6469
SELECT DISTINCT + 61 / 54
----
1

query I rowsort
SELECT - ( + + 19 ) + + 69
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-6471
SELECT ALL COUNT( DISTINCT + 68 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6471
SELECT ALL COUNT ( DISTINCT + 68 ) AS col1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-6472
SELECT ALL 76 DIV + + 32 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-6472
SELECT ALL 76 / + + 32 AS col1
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6473
SELECT - 81 * 62 DIV + COUNT( * )
----
-5022

skipif mysql # not compatible
query I rowsort label-6473
SELECT - 81 * 62 / + COUNT ( * )
----
-5022

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6474
SELECT ALL - 79 DIV - + COALESCE ( - COUNT( * ), + 26 ) * + COUNT( - 32 * 32 ) AS col0
----
-79

skipif mysql # not compatible
query I rowsort label-6474
SELECT ALL - 79 / - + COALESCE ( - COUNT ( * ), + 26 ) * + COUNT ( - 32 * 32 ) AS col0
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-6475
SELECT - CASE + 20 WHEN - 56 THEN NULL ELSE COUNT( * ) + + 91 * 36 END * 94
----
-308038

skipif mysql # not compatible
query I rowsort label-6475
SELECT - CASE + 20 WHEN - 56 THEN NULL ELSE COUNT ( * ) + + 91 * 36 END * 94
----
-308038

onlyif mysql # aggregate syntax: 
query I rowsort label-6476
SELECT ALL CASE + MAX( + 87 ) WHEN - 57 * 81 THEN 33 + ( + COUNT( * ) ) WHEN + NULLIF ( - COUNT( * ), COUNT( * ) + - 32 ) + - 16 THEN 34 + + 94 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6476
SELECT ALL CASE + MAX ( + 87 ) WHEN - 57 * 81 THEN 33 + ( + COUNT ( * ) ) WHEN + NULLIF ( - COUNT ( * ), COUNT ( * ) + - 32 ) + - 16 THEN 34 + + 94 END
----
NULL

query I rowsort
SELECT ALL 69 * - + 94 * + 61 AS col1
----
-395646

query I rowsort
SELECT DISTINCT CASE + 30 WHEN + 7 + - CASE 7 WHEN 27 THEN ( - 90 ) + + 26 ELSE NULL END THEN - 17 WHEN - 99 + + 60 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6479
SELECT - 61 + - MIN( ALL 7 ) + + 63
----
-5

skipif mysql # not compatible
query I rowsort label-6479
SELECT - 61 + - MIN ( ALL 7 ) + + 63
----
-5

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6480
SELECT ALL + 64, 71 DIV + NULLIF ( + COUNT( * ), 29 ) col0
----
64
71

skipif mysql # not compatible
query II rowsort label-6480
SELECT ALL + 64, 71 / + NULLIF ( + COUNT ( * ), 29 ) col0
----
64
71

onlyif mysql # aggregate syntax: 
query I rowsort label-6481
SELECT ALL + + 14 * + COUNT( - 34 )
----
14

skipif mysql # not compatible
query I rowsort label-6481
SELECT ALL + + 14 * + COUNT ( - 34 )
----
14

query I rowsort
SELECT + 6 * + 41 + 92 + + 70 AS col0
----
408

query II rowsort
SELECT 31 AS col0, + 49
----
31
49

query II rowsort
SELECT + + 69 AS col2, 82 AS col0
----
69
82

query I rowsort
SELECT ALL - 74 * - + 45 + + NULLIF ( 86, + 67 + 64 ) AS col1
----
3416

onlyif mysql # aggregate syntax: 
query II rowsort label-6486
SELECT 74 AS col1, + COUNT( * ) - - + 43 AS col1
----
74
44

skipif mysql # not compatible
query II rowsort label-6486
SELECT 74 AS col1, + COUNT ( * ) - - + 43 AS col1
----
74
44

query I rowsort
SELECT + - 69 + ( 26 )
----
-43

query II rowsort
SELECT ALL + 5 AS col0, - 22
----
5
-22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6489
SELECT ALL + - 58 * + 35 - - 18 + CAST( NULL AS SIGNED ) / 82 + 25
----
NULL

skipif mysql # not compatible
query I rowsort label-6489
SELECT ALL + - 58 * + 35 - - 18 + CAST ( NULL AS INTEGER ) / 82 + 25
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6490
SELECT + + 94 + + COUNT( * )
----
95

skipif mysql # not compatible
query I rowsort label-6490
SELECT + + 94 + + COUNT ( * )
----
95

query I rowsort
SELECT - 31 * - 40 + - 44 col1
----
1196

onlyif mysql # aggregate syntax: 
query I rowsort label-6492
SELECT ALL - 37 * - 41 * COUNT( * ) * 29 + + MAX( + 21 - 60 )
----
43954

skipif mysql # not compatible
query I rowsort label-6492
SELECT ALL - 37 * - 41 * COUNT ( * ) * 29 + + MAX ( + 21 - 60 )
----
43954

query I rowsort
SELECT ALL + - 26 * 33 * 74 + + 12
----
-63480

query II rowsort
SELECT ALL + 13, 81 AS col1
----
13
81

onlyif mysql # DIV for integer division: 
query I rowsort label-6495
SELECT ALL 34 DIV - - 25 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6495
SELECT ALL 34 / - - 25 AS col2
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-6496
SELECT + 4 DIV - + 54 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6496
SELECT + 4 / - + 54 AS col1
----
0

query I rowsort
SELECT + + 42 * 29 * + 54 - + 78 * + 38
----
62808

query II rowsort
SELECT + - 64, - 79 AS col1
----
-64
-79

query I rowsort
SELECT - 87 + 36 * - - 42
----
1425

query I rowsort
SELECT ALL + + 8 * + - 7 + - + 47 AS col1
----
-103

onlyif mysql # aggregate syntax: 
query II rowsort label-6501
SELECT + 14 AS col0, - COUNT( * ) * + 17 AS col1
----
14
-17

skipif mysql # not compatible
query II rowsort label-6501
SELECT + 14 AS col0, - COUNT ( * ) * + 17 AS col1
----
14
-17

query I rowsort
SELECT - ( 50 ) AS col2
----
-50

onlyif mysql # DIV for integer division: 
query I rowsort label-6503
SELECT ALL 0 DIV 44 + + + 59
----
59

skipif mysql # not compatible
query I rowsort label-6503
SELECT ALL 0 / 44 + + + 59
----
59

query I rowsort
SELECT + ( + - COALESCE ( 23, - + ( + 91 ) ) ) AS col1
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-6505
SELECT - ( - SUM( - 24 ) )
----
-24

skipif mysql # not compatible
query I rowsort label-6505
SELECT - ( - SUM ( - 24 ) )
----
-24

query II rowsort
SELECT ALL - 55 - + 97 AS col0, 54
----
-152
54

onlyif mysql # aggregate syntax: 
query I rowsort label-6507
SELECT - NULLIF ( - NULLIF ( + 56, - - 93 * COUNT( * ) ), + COUNT( * ) + - 82 )
----
56

skipif mysql # not compatible
query I rowsort label-6507
SELECT - NULLIF ( - NULLIF ( + 56, - - 93 * COUNT ( * ) ), + COUNT ( * ) + - 82 )
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-6508
SELECT SUM( - 32 )
----
-32

skipif mysql # not compatible
query I rowsort label-6508
SELECT SUM ( - 32 )
----
-32

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6509
SELECT - COALESCE ( + COUNT( * ), - 23 ) * + CASE - 67 WHEN 17 * + COUNT( * ) THEN COUNT( * ) WHEN + CAST( + 22 AS DECIMAL ) * 4 + + 57 THEN NULL ELSE 50 END - - 89
----
39

skipif mysql # not compatible
query I rowsort label-6509
SELECT - COALESCE ( + COUNT ( * ), - 23 ) * + CASE - 67 WHEN 17 * + COUNT ( * ) THEN COUNT ( * ) WHEN + CAST ( + 22 AS REAL ) * 4 + + 57 THEN NULL ELSE 50 END - - 89
----
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6510
SELECT ALL COUNT( - CAST( + 16 AS SIGNED ) )
----
1

skipif mysql # not compatible
query I rowsort label-6510
SELECT ALL COUNT ( - CAST ( + 16 AS INTEGER ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6511
SELECT ALL CASE + 50 WHEN - + 41 * - NULLIF ( - 40, COUNT( * ) ) * - 36 + + 72 THEN NULL ELSE SUM( DISTINCT 75 ) END
----
75

skipif mysql # not compatible
query I rowsort label-6511
SELECT ALL CASE + 50 WHEN - + 41 * - NULLIF ( - 40, COUNT ( * ) ) * - 36 + + 72 THEN NULL ELSE SUM ( DISTINCT 75 ) END
----
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6512
SELECT - CAST( + SUM( + 4 ) AS SIGNED ) * + 67 - - 72 col1
----
-196

skipif mysql # not compatible
query I rowsort label-6512
SELECT - CAST ( + SUM ( + 4 ) AS INTEGER ) * + 67 - - 72 col1
----
-196

query I rowsort
SELECT DISTINCT + 75 * ( + 97 ) AS col1
----
7275

onlyif mysql # aggregate syntax: 
query I rowsort label-6514
SELECT DISTINCT + 66 * + 92 * MAX( DISTINCT 68 )
----
412896

skipif mysql # not compatible
query I rowsort label-6514
SELECT DISTINCT + 66 * + 92 * MAX ( DISTINCT 68 )
----
412896

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6515
SELECT ALL 46 DIV + + MAX( + + 2 ) AS col2
----
23

skipif mysql # not compatible
query I rowsort label-6515
SELECT ALL 46 / + + MAX ( + + 2 ) AS col2
----
23

query I rowsort
SELECT ALL ( 93 ) AS col1
----
93

query I rowsort
SELECT ALL CASE + 88 WHEN 20 - - 64 THEN NULL ELSE + 73 END AS col2
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-6518
SELECT ALL - 57 * COUNT( * ) * COUNT( * )
----
-57

skipif mysql # not compatible
query I rowsort label-6518
SELECT ALL - 57 * COUNT ( * ) * COUNT ( * )
----
-57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6519
SELECT - 58 DIV + + 83 + + - 14 * + COUNT( * ) * + NULLIF ( + COUNT( * ), - 63 )
----
-14

skipif mysql # not compatible
query I rowsort label-6519
SELECT - 58 / + + 83 + + - 14 * + COUNT ( * ) * + NULLIF ( + COUNT ( * ), - 63 )
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-6520
SELECT - - 59 + - - COUNT( * ) * + 40 + 9 + ( COUNT( * ) ) * 86 col2
----
194

skipif mysql # not compatible
query I rowsort label-6520
SELECT - - 59 + - - COUNT ( * ) * + 40 + 9 + ( COUNT ( * ) ) * 86 col2
----
194

onlyif mysql # aggregate syntax: 
query I rowsort label-6521
SELECT - + SUM( DISTINCT - + 62 ) + - NULLIF ( + 66, - 3 )
----
-4

skipif mysql # not compatible
query I rowsort label-6521
SELECT - + SUM ( DISTINCT - + 62 ) + - NULLIF ( + 66, - 3 )
----
-4

query I rowsort
SELECT ALL + 78 + + 4 AS col1
----
82

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6523
SELECT DISTINCT COUNT( * ) DIV 89 * - 92 * 65 + 47 AS col2
----
47

skipif mysql # not compatible
query I rowsort label-6523
SELECT DISTINCT COUNT ( * ) / 89 * - 92 * 65 + 47 AS col2
----
47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6524
SELECT DISTINCT - - COUNT( * ) DIV 81 + - COUNT( - 56 ) * - NULLIF ( - NULLIF ( COUNT( * ), COUNT( * ) * 17 + - 97 ), + 87 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-6524
SELECT DISTINCT - - COUNT ( * ) / 81 + - COUNT ( - 56 ) * - NULLIF ( - NULLIF ( COUNT ( * ), COUNT ( * ) * 17 + - 97 ), + 87 ) AS col1
----
-1

query I rowsort
SELECT DISTINCT - 60 / - 66 + + + CASE + + 4 WHEN 41 + 2 THEN 84 WHEN - 44 THEN - 22 WHEN - 71 + - 93 * 22 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6526
SELECT DISTINCT 65 * - MAX( - 65 ) - - + 89 col1
----
4314

skipif mysql # not compatible
query I rowsort label-6526
SELECT DISTINCT 65 * - MAX ( - 65 ) - - + 89 col1
----
4314

query I rowsort
SELECT - 74 * + 93 AS col1
----
-6882

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6528
SELECT + - SUM( ALL CAST( - - 13 AS SIGNED ) ) * + + CAST( NULL AS SIGNED ) * 50
----
NULL

skipif mysql # not compatible
query I rowsort label-6528
SELECT + - SUM ( ALL CAST ( - - 13 AS INTEGER ) ) * + + CAST ( NULL AS INTEGER ) * 50
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6529
SELECT CAST( 25 AS SIGNED ), + 18 DIV + 14 AS col0
----
25
1

skipif mysql # not compatible
query II rowsort label-6529
SELECT CAST ( 25 AS INTEGER ), + 18 / + 14 AS col0
----
25
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6530
SELECT + + SUM( + 97 )
----
97

skipif mysql # not compatible
query I rowsort label-6530
SELECT + + SUM ( + 97 )
----
97

query I rowsort
SELECT - + 97 - 49 AS col0
----
-146

query I rowsort
SELECT + 80 * + 31
----
2480

query I rowsort
SELECT DISTINCT + 51 col0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-6534
SELECT DISTINCT - MIN( + 69 ) * + + 82
----
-5658

skipif mysql # not compatible
query I rowsort label-6534
SELECT DISTINCT - MIN ( + 69 ) * + + 82
----
-5658

onlyif mysql # aggregate syntax: 
query I rowsort label-6535
SELECT DISTINCT + - NULLIF ( - COUNT( * ), 7 )
----
1

skipif mysql # not compatible
query I rowsort label-6535
SELECT DISTINCT + - NULLIF ( - COUNT ( * ), 7 )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6536
SELECT DISTINCT 84 DIV + - COUNT( * )
----
-84

skipif mysql # not compatible
query I rowsort label-6536
SELECT DISTINCT 84 / + - COUNT ( * )
----
-84

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6537
SELECT CASE + + 15 WHEN - 64 THEN + 40 + + + CAST( NULL AS DECIMAL ) WHEN - 72 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6537
SELECT CASE + + 15 WHEN - 64 THEN + 40 + + + CAST ( NULL AS REAL ) WHEN - 72 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6538
SELECT COALESCE ( + 44, + + COUNT( * ) * - + 88, - COUNT( * ) ) AS col1
----
44

skipif mysql # not compatible
query I rowsort label-6538
SELECT COALESCE ( + 44, + + COUNT ( * ) * - + 88, - COUNT ( * ) ) AS col1
----
44

query I rowsort
SELECT 60 * 65 + + 67 - + 60 * + - 23
----
5347

query I rowsort
SELECT + 24 - 97 + + 84 AS col1
----
11

query I rowsort
SELECT 81 * + 94
----
7614

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6542
SELECT ALL 83 * + NULLIF ( + 94, - COUNT( * ) * - + 65 / + CAST( + 94 AS SIGNED ) )
----
7802

skipif mysql # not compatible
query I rowsort label-6542
SELECT ALL 83 * + NULLIF ( + 94, - COUNT ( * ) * - + 65 / + CAST ( + 94 AS INTEGER ) )
----
7802

onlyif mysql # aggregate syntax: 
query I rowsort label-6543
SELECT ALL 0 * - NULLIF ( 18, - 84 * - 59 * - COUNT( * ) + + 54 * 41 )
----
0

skipif mysql # not compatible
query I rowsort label-6543
SELECT ALL 0 * - NULLIF ( 18, - 84 * - 59 * - COUNT ( * ) + + 54 * 41 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6544
SELECT 58 * - MAX( DISTINCT + 66 ) * - 92 AS col1
----
352176

skipif mysql # not compatible
query I rowsort label-6544
SELECT 58 * - MAX ( DISTINCT + 66 ) * - 92 AS col1
----
352176

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6545
SELECT DISTINCT COUNT( * ) DIV - + 88
----
0

skipif mysql # not compatible
query I rowsort label-6545
SELECT DISTINCT COUNT ( * ) / - + 88
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6546
SELECT ALL COUNT( + - 28 ) * + ( - + 85 )
----
-85

skipif mysql # not compatible
query I rowsort label-6546
SELECT ALL COUNT ( + - 28 ) * + ( - + 85 )
----
-85

onlyif mysql # aggregate syntax: 
query II rowsort label-6547
SELECT MIN( DISTINCT + 35 ) + - 57 AS col2, + 22 AS col2
----
-22
22

skipif mysql # not compatible
query II rowsort label-6547
SELECT MIN ( DISTINCT + 35 ) + - 57 AS col2, + 22 AS col2
----
-22
22

query I rowsort
SELECT ALL 47 * - 50 AS col0
----
-2350

query I rowsort
SELECT DISTINCT 5 * ( + 73 ) col2
----
365

onlyif mysql # aggregate syntax: 
query I rowsort label-6550
SELECT ALL - COUNT( * ) + - 55 * - CASE CASE - 75 WHEN + 15 THEN - 17 / 27 END WHEN 79 * 34 + + 97 THEN + SUM( 30 ) - + 30 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6550
SELECT ALL - COUNT ( * ) + - 55 * - CASE CASE - 75 WHEN + 15 THEN - 17 / 27 END WHEN 79 * 34 + + 97 THEN + SUM ( 30 ) - + 30 END
----
NULL

query I rowsort
SELECT ALL 40 * + 85 * 41 * - - 50 AS col0
----
6970000

query I rowsort
SELECT ( 85 ) * + 22 AS col0
----
1870

onlyif mysql # aggregate syntax: 
query II rowsort label-6553
SELECT - 53 AS col2, - COUNT( * )
----
-53
-1

skipif mysql # not compatible
query II rowsort label-6553
SELECT - 53 AS col2, - COUNT ( * )
----
-53
-1

query II rowsort
SELECT 7 AS col1, + 69
----
7
69

query I rowsort
SELECT + 26 * + 21
----
546

query I rowsort
SELECT ALL + 33 + 84 + 58 AS col0
----
175

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6557
SELECT ALL 48 + + COALESCE ( + 79, - - COUNT( * ), 39, 34 DIV - SUM( ALL 15 * + COALESCE ( + 47, + 86, - 23 DIV - 52 ) ) - - 94 )
----
127

skipif mysql # not compatible
query I rowsort label-6557
SELECT ALL 48 + + COALESCE ( + 79, - - COUNT ( * ), 39, 34 / - SUM ( ALL 15 * + COALESCE ( + 47, + 86, - 23 / - 52 ) ) - - 94 )
----
127

query I rowsort
SELECT ALL - + 47 * - 71 + - + 51 AS col1
----
3286

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6559
SELECT - 92 DIV - 80 DIV - - COUNT( * ) - 60 - + + 83 AS col1
----
-142

skipif mysql # not compatible
query I rowsort label-6559
SELECT - 92 / - 80 / - - COUNT ( * ) - 60 - + + 83 AS col1
----
-142

onlyif mysql # aggregate syntax: 
query I rowsort label-6560
SELECT ALL - - 22 + + COUNT( * ) * 30
----
52

skipif mysql # not compatible
query I rowsort label-6560
SELECT ALL - - 22 + + COUNT ( * ) * 30
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-6561
SELECT ALL + MAX( DISTINCT 37 ) + - - MIN( DISTINCT + 3 ) * - 21 AS col0
----
-26

skipif mysql # not compatible
query I rowsort label-6561
SELECT ALL + MAX ( DISTINCT 37 ) + - - MIN ( DISTINCT + 3 ) * - 21 AS col0
----
-26

query II rowsort
SELECT 41 AS col0, + 54 AS col0
----
41
54

query I rowsort
SELECT + 59 + - + 69 * + 55 AS col2
----
-3736

onlyif mysql # aggregate syntax: 
query I rowsort label-6564
SELECT ALL + - 43 - COUNT( * ) + + 9
----
-35

skipif mysql # not compatible
query I rowsort label-6564
SELECT ALL + - 43 - COUNT ( * ) + + 9
----
-35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6565
SELECT ALL - CASE COUNT( * ) WHEN CAST( NULL AS SIGNED ) THEN NULL WHEN 60 + - - CAST( NULL AS SIGNED ) * ( - 0 ) THEN NULLIF ( 43, - 6 * - 21 + - 95 ) ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6565
SELECT ALL - CASE COUNT ( * ) WHEN CAST ( NULL AS INTEGER ) THEN NULL WHEN 60 + - - CAST ( NULL AS INTEGER ) * ( - 0 ) THEN NULLIF ( 43, - 6 * - 21 + - 95 ) ELSE NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6566
SELECT + 86 * + 29 + + CAST( - + 0 AS SIGNED )
----
2494

skipif mysql # not compatible
query I rowsort label-6566
SELECT + 86 * + 29 + + CAST ( - + 0 AS INTEGER )
----
2494

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6567
SELECT COUNT( * ) DIV - 18 + + 24 * 1 + 20 AS col2
----
44

skipif mysql # not compatible
query I rowsort label-6567
SELECT COUNT ( * ) / - 18 + + 24 * 1 + 20 AS col2
----
44

query I rowsort
SELECT 76 * - 84 AS col2
----
-6384

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6569
SELECT DISTINCT - COALESCE ( 1, - + CAST( NULL AS SIGNED ) * - - 29 DIV 77 + 85, COUNT( * ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-6569
SELECT DISTINCT - COALESCE ( 1, - + CAST ( NULL AS INTEGER ) * - - 29 / 77 + 85, COUNT ( * ) ) AS col2
----
-1

query I rowsort
SELECT 24 + + 65
----
89

query I rowsort
SELECT ALL + 65 - 19
----
46

onlyif mysql # DIV for integer division: 
query I rowsort label-6572
SELECT DISTINCT + + 38 DIV + ( + 38 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6572
SELECT DISTINCT + + 38 / + ( + 38 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6573
SELECT 53 * CASE CASE - + 89 WHEN 31 * + 38 + + COUNT( * ) THEN NULL WHEN 90 THEN 43 + - COALESCE ( - 20, + 94, COALESCE ( 6, + COUNT( * ) * CASE + 59 WHEN 67 / 13 + 31 THEN COUNT( * ) ELSE NULL END ) * 64 ) WHEN + 33 / - 99 THEN - 49 * 77 END WHEN AVG ( ALL + 80 ) THEN ( 28 ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6573
SELECT 53 * CASE CASE - + 89 WHEN 31 * + 38 + + COUNT ( * ) THEN NULL WHEN 90 THEN 43 + - COALESCE ( - 20, + 94, COALESCE ( 6, + COUNT ( * ) * CASE + 59 WHEN 67 / 13 + 31 THEN COUNT ( * ) ELSE NULL END ) * 64 ) WHEN + 33 / - 99 THEN - 49 * 77 END WHEN AVG ( ALL + 80 ) THEN ( 28 ) END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6574
SELECT ALL - CASE + 55 WHEN - 20 THEN + COUNT( * ) WHEN + 73 THEN NULL ELSE + 92 END AS col0
----
-92

skipif mysql # not compatible
query I rowsort label-6574
SELECT ALL - CASE + 55 WHEN - 20 THEN + COUNT ( * ) WHEN + 73 THEN NULL ELSE + 92 END AS col0
----
-92

query II rowsort
SELECT 11 AS col0, 99
----
11
99

query I rowsort
SELECT 72 + - 35 - + 83 AS col1
----
-46

query I rowsort
SELECT ALL - 92 * - 43 col0
----
3956

query I rowsort
SELECT 43 * 56 AS col2
----
2408

query I rowsort
SELECT DISTINCT 42 * + 78 * - - 7 AS col1
----
22932

query II rowsort
SELECT 41, - COALESCE ( 29, - + 94 ) AS col0
----
41
-29

query I rowsort
SELECT ALL - ( + + 42 ) * - 32 AS col1
----
1344

query I rowsort
SELECT 68 * - + CASE 39 WHEN - 72 THEN - 6 WHEN + + 44 THEN NULL WHEN - 48 THEN ( - 75 ) WHEN + COALESCE ( 24, + 1, 20 ) + - 50 THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT 94 + - + 4 * - + 46
----
278

query I rowsort
SELECT ALL + 20 + - 68 + - + 31 AS col2
----
-79

query I rowsort
SELECT ALL 29 + + - ( - + 21 ) AS col1
----
50

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6586
SELECT - 40 AS col2, AVG ( + CAST( NULL AS SIGNED ) ) + - 20 col0
----
-40
NULL

skipif mysql # not compatible
query II rowsort label-6586
SELECT - 40 AS col2, AVG ( + CAST ( NULL AS INTEGER ) ) + - 20 col0
----
-40
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6587
SELECT DISTINCT COUNT( * ) + - 42 AS col1
----
-41

skipif mysql # not compatible
query I rowsort label-6587
SELECT DISTINCT COUNT ( * ) + - 42 AS col1
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-6588
SELECT ALL 93 + - NULLIF ( 38, + - 31 + AVG ( DISTINCT - 18 ) + NULLIF ( + 30 + MIN( ALL 25 ) * NULLIF ( + MIN( DISTINCT 85 ) * 99, 82 + + 58 ), - 9 ) ) + 67 AS col0
----
122

skipif mysql # not compatible
query I rowsort label-6588
SELECT ALL 93 + - NULLIF ( 38, + - 31 + AVG ( DISTINCT - 18 ) + NULLIF ( + 30 + MIN ( ALL 25 ) * NULLIF ( + MIN ( DISTINCT 85 ) * 99, 82 + + 58 ), - 9 ) ) + 67 AS col0
----
122

onlyif mysql # DIV for integer division: 
query II rowsort label-6589
SELECT DISTINCT 2, 42 * + 78 * - + 54 * + - 27 + 87 DIV - 69 AS col1
----
2
4776407

skipif mysql # not compatible
query II rowsort label-6589
SELECT DISTINCT 2, 42 * + 78 * - + 54 * + - 27 + 87 / - 69 AS col1
----
2
4776407

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6590
SELECT DISTINCT COUNT( * ) * CASE 63 WHEN - - 63 THEN NULL WHEN - 68 * - 57 / 14 THEN MAX( DISTINCT - 48 ) ELSE SUM( ( 11 ) ) END / - COALESCE ( + CAST( NULL AS SIGNED ) * MIN( - 16 ), - ( + 93 ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6590
SELECT DISTINCT COUNT ( * ) * CASE 63 WHEN - - 63 THEN NULL WHEN - 68 * - 57 / 14 THEN MAX ( DISTINCT - 48 ) ELSE SUM ( ( 11 ) ) END / - COALESCE ( + CAST ( NULL AS INTEGER ) * MIN ( - 16 ), - ( + 93 ) ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6591
SELECT SUM( DISTINCT + 90 ) + + MAX( ALL ( + 38 ) ) * + - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6591
SELECT SUM ( DISTINCT + 90 ) + + MAX ( ALL ( + 38 ) ) * + - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query II rowsort
SELECT DISTINCT - + 78 + - + 22 col0, 74 AS col0
----
-100
74

query I rowsort
SELECT - + 98 col1
----
-98

query I rowsort
SELECT DISTINCT - 71 + + + 22 AS col1
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-6595
SELECT ALL + NULLIF ( - COUNT( * ), + - ( NULLIF ( + 87, + MIN( ALL ( + 33 ) ) * COALESCE ( - 71, + SUM( - 68 ) ) - 94 ) ) ) * 52
----
-52

skipif mysql # not compatible
query I rowsort label-6595
SELECT ALL + NULLIF ( - COUNT ( * ), + - ( NULLIF ( + 87, + MIN ( ALL ( + 33 ) ) * COALESCE ( - 71, + SUM ( - 68 ) ) - 94 ) ) ) * 52
----
-52

query I rowsort
SELECT + 34 + - - 98 AS col1
----
132

onlyif mysql # aggregate syntax: 
query I rowsort label-6597
SELECT - COALESCE ( - ( + COUNT( * ) ), - 0, 44 )
----
1

skipif mysql # not compatible
query I rowsort label-6597
SELECT - COALESCE ( - ( + COUNT ( * ) ), - 0, 44 )
----
1

query I rowsort
SELECT - 26 + 56 AS col1
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-6599
SELECT ALL 96 - + ( COUNT( * ) ) AS col0
----
95

skipif mysql # not compatible
query I rowsort label-6599
SELECT ALL 96 - + ( COUNT ( * ) ) AS col0
----
95

query I rowsort
SELECT - 65 * + 36 * 58
----
-135720

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6601
SELECT 5, 64 - + COUNT( * ) * + + CAST( + - CAST( 69 AS SIGNED ) AS SIGNED ) col2
----
5
133

skipif mysql # not compatible
query II rowsort label-6601
SELECT 5, 64 - + COUNT ( * ) * + + CAST ( + - CAST ( 69 AS INTEGER ) AS INTEGER ) col2
----
5
133

query I rowsort
SELECT + + CASE + 6 WHEN - + COALESCE ( 61, + 6 * 47 + + 45 * + ( - 12 + 30 ) - ( 67 + 39 ) ) + - ( 18 ) * 41 THEN NULL ELSE + 98 * 92 END AS col0
----
9016

query I rowsort
SELECT ALL - COALESCE ( 50, - 87 ) * 56
----
-2800

onlyif mysql # aggregate syntax: 
query I rowsort label-6604
SELECT 39 * - CASE - COUNT( * ) WHEN CASE + 52 WHEN - ( 29 ) * + COALESCE ( + 77, ( 80 ) ) + 70 * 88 THEN - 67 + + 44 WHEN - 48 * COUNT( * ) THEN NULL END THEN NULL WHEN - 50 THEN 17 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6604
SELECT 39 * - CASE - COUNT ( * ) WHEN CASE + 52 WHEN - ( 29 ) * + COALESCE ( + 77, ( 80 ) ) + 70 * 88 THEN - 67 + + 44 WHEN - 48 * COUNT ( * ) THEN NULL END THEN NULL WHEN - 50 THEN 17 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6605
SELECT ALL - CAST( NULL AS SIGNED ) * + - ( + NULLIF ( + 52, + CASE - - 92 WHEN 63 THEN CAST( NULL AS SIGNED ) * + 71 - 54 * 64 END ) ) + - 42 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6605
SELECT ALL - CAST ( NULL AS INTEGER ) * + - ( + NULLIF ( + 52, + CASE - - 92 WHEN 63 THEN CAST ( NULL AS INTEGER ) * + 71 - 54 * 64 END ) ) + - 42 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6606
SELECT DISTINCT 7 * + + COUNT( * ) AS col1, 99
----
7
99

skipif mysql # not compatible
query II rowsort label-6606
SELECT DISTINCT 7 * + + COUNT ( * ) AS col1, 99
----
7
99

query I rowsort
SELECT COALESCE ( + - 56, - 39 ) * + 81 * 63 AS col1
----
-285768

query I rowsort
SELECT 72 * 93 * + 16 * + 85 AS col0
----
9106560

query II rowsort
SELECT - 89 - - 31 col0, 97 + 52 * 17
----
-58
981

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6610
SELECT ALL 35 * + 83 + 32, 90 + - - 71 + + CASE - + 36 WHEN 96 THEN 99 * - CAST( NULL AS SIGNED ) WHEN - 33 THEN NULL END + + COUNT( * ) * - 83 AS col0
----
2937
NULL

skipif mysql # not compatible
query II rowsort label-6610
SELECT ALL 35 * + 83 + 32, 90 + - - 71 + + CASE - + 36 WHEN 96 THEN 99 * - CAST ( NULL AS INTEGER ) WHEN - 33 THEN NULL END + + COUNT ( * ) * - 83 AS col0
----
2937
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6611
SELECT + ( + + 23 ) * - - 64 - + COUNT( * ) + - COUNT( * ) * - - 93 - + 2
----
1376

skipif mysql # not compatible
query I rowsort label-6611
SELECT + ( + + 23 ) * - - 64 - + COUNT ( * ) + - COUNT ( * ) * - - 93 - + 2
----
1376

onlyif mysql # DIV for integer division: 
query I rowsort label-6612
SELECT - ( 18 ) DIV - - 26 + 94 * 95 AS col1
----
8930

skipif mysql # not compatible
query I rowsort label-6612
SELECT - ( 18 ) / - - 26 + 94 * 95 AS col1
----
8930

onlyif mysql # aggregate syntax: 
query I rowsort label-6613
SELECT ALL - 71 + + COUNT( * ) * + ( - 48 ) AS col2
----
-119

skipif mysql # not compatible
query I rowsort label-6613
SELECT ALL - 71 + + COUNT ( * ) * + ( - 48 ) AS col2
----
-119

onlyif mysql # aggregate syntax: 
query I rowsort label-6614
SELECT - COUNT( * ) - - - 45 + - 75 + - 55
----
-176

skipif mysql # not compatible
query I rowsort label-6614
SELECT - COUNT ( * ) - - - 45 + - 75 + - 55
----
-176

onlyif mysql # aggregate syntax: 
query I rowsort label-6615
SELECT - 29 * - + COUNT( + - 97 ) * 88 * 78
----
199056

skipif mysql # not compatible
query I rowsort label-6615
SELECT - 29 * - + COUNT ( + - 97 ) * 88 * 78
----
199056

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6616
SELECT - COUNT( * ) * + CASE - + 15 WHEN NULLIF ( 47, + CAST( NULL AS SIGNED ) * COUNT( * ) ) * + 74 THEN NULL ELSE + 91 / ( - 25 ) - CAST( NULL AS SIGNED ) END / 54 - + 99
----
NULL

skipif mysql # not compatible
query I rowsort label-6616
SELECT - COUNT ( * ) * + CASE - + 15 WHEN NULLIF ( 47, + CAST ( NULL AS INTEGER ) * COUNT ( * ) ) * + 74 THEN NULL ELSE + 91 / ( - 25 ) - CAST ( NULL AS INTEGER ) END / 54 - + 99
----
NULL

query I rowsort
SELECT ALL - 71 + + 60
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-6618
SELECT ALL NULLIF ( - 64, - MIN( - 85 ) ) AS col2
----
-64

skipif mysql # not compatible
query I rowsort label-6618
SELECT ALL NULLIF ( - 64, - MIN ( - 85 ) ) AS col2
----
-64

query I rowsort
SELECT DISTINCT + 44 * ( + - 74 ) col1
----
-3256

query I rowsort
SELECT DISTINCT 0 - - - CASE 92 WHEN - 44 THEN NULL WHEN + + 2 * - 29 + - 76 + + 18 THEN NULL ELSE - 24 - 54 END
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-6621
SELECT DISTINCT - + COUNT( * ) - + ( - NULLIF ( 87, + + 75 ) ) * + - 57
----
-4960

skipif mysql # not compatible
query I rowsort label-6621
SELECT DISTINCT - + COUNT ( * ) - + ( - NULLIF ( 87, + + 75 ) ) * + - 57
----
-4960

query I rowsort
SELECT DISTINCT - 39 - + 17
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-6623
SELECT - COALESCE ( + 85, + + MIN( + 3 ), + - 33 ) * 72 * ( 77 ) AS col1
----
-471240

skipif mysql # not compatible
query I rowsort label-6623
SELECT - COALESCE ( + 85, + + MIN ( + 3 ), + - 33 ) * 72 * ( 77 ) AS col1
----
-471240

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6624
SELECT DISTINCT - 48 * - CASE + 0 WHEN + - ( + ( - COUNT( DISTINCT - CAST( NULL AS SIGNED ) ) ) ) * 90 + - 61 THEN NULL ELSE + COUNT( * ) END * NULLIF ( - 35 + COUNT( * ) * 75, + 62 ) + 69 AS col2
----
1989

skipif mysql # not compatible
query I rowsort label-6624
SELECT DISTINCT - 48 * - CASE + 0 WHEN + - ( + ( - COUNT ( DISTINCT - CAST ( NULL AS INTEGER ) ) ) ) * 90 + - 61 THEN NULL ELSE + COUNT ( * ) END * NULLIF ( - 35 + COUNT ( * ) * 75, + 62 ) + 69 AS col2
----
1989

onlyif mysql # aggregate syntax: 
query I rowsort label-6625
SELECT - - CASE - ( - + 22 ) WHEN + 19 * + 47 + - 87 THEN + MAX( DISTINCT ( + 12 ) ) * MIN( ALL + 15 ) END + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-6625
SELECT - - CASE - ( - + 22 ) WHEN + 19 * + 47 + - 87 THEN + MAX ( DISTINCT ( + 12 ) ) * MIN ( ALL + 15 ) END + COUNT ( * )
----
NULL

query II rowsort
SELECT DISTINCT - 78 - - 44, 98 * - 18 AS col0
----
-34
-1764

query I rowsort
SELECT ALL + 15 * - 38 AS col0
----
-570

query I rowsort
SELECT + + 9 + + 7 * - 87 AS col0
----
-600

query I rowsort
SELECT DISTINCT 16 * + - 25
----
-400

onlyif mysql # DIV for integer division: 
query I rowsort label-6630
SELECT + + 60 DIV + 6 + + 12
----
22

skipif mysql # not compatible
query I rowsort label-6630
SELECT + + 60 / + 6 + + 12
----
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6631
SELECT ALL 74 * + + ( + 82 ) / - 51 - 53 + - CAST( NULL AS SIGNED ) + - + 35 + - 2 * - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-6631
SELECT ALL 74 * + + ( + 82 ) / - 51 - 53 + - CAST ( NULL AS INTEGER ) + - + 35 + - 2 * - COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6632
SELECT DISTINCT - CASE + 28 WHEN + - COUNT( * ) * + + CAST( NULL AS SIGNED ) / - 68 THEN 38 WHEN + AVG ( DISTINCT + 2 ) + - 80 * 83 THEN NULL WHEN - 31 * - COUNT( * ) THEN + 57 * MIN( DISTINCT - 18 * + 9 ) - CAST( 44 AS DECIMAL ) END * - 54 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6632
SELECT DISTINCT - CASE + 28 WHEN + - COUNT ( * ) * + + CAST ( NULL AS INTEGER ) / - 68 THEN 38 WHEN + AVG ( DISTINCT + 2 ) + - 80 * 83 THEN NULL WHEN - 31 * - COUNT ( * ) THEN + 57 * MIN ( DISTINCT - 18 * + 9 ) - CAST ( 44 AS REAL ) END * - 54 AS col1
----
NULL

query I rowsort
SELECT + - 85 * 85 + - 7 - + - 71 + + 21 * 82 AS col1
----
-5439

onlyif mysql # DIV for integer division: 
query I rowsort label-6634
SELECT + - ( + + 68 ) DIV + 22 - - - 88 + 44 * 92
----
3957

skipif mysql # not compatible
query I rowsort label-6634
SELECT + - ( + + 68 ) / + 22 - - - 88 + 44 * 92
----
3957

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6635
SELECT + 40 + + - CAST( NULL AS SIGNED ) - + ( + 84 ) / - CAST( NULL AS SIGNED ) + - 79 * 74 - - 94 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6635
SELECT + 40 + + - CAST ( NULL AS INTEGER ) - + ( + 84 ) / - CAST ( NULL AS INTEGER ) + - 79 * 74 - - 94 AS col0
----
NULL

query I rowsort
SELECT + 72 * 73
----
5256

onlyif mysql # aggregate syntax: 
query I rowsort label-6637
SELECT + 66 + 33 * ( + 77 ) * - COUNT( - 72 ) + MAX( DISTINCT - - 68 ) - - 45 AS col2
----
-2362

skipif mysql # not compatible
query I rowsort label-6637
SELECT + 66 + 33 * ( + 77 ) * - COUNT ( - 72 ) + MAX ( DISTINCT - - 68 ) - - 45 AS col2
----
-2362

query II rowsort
SELECT ALL 6 * 70 + + 82 AS col0, + 64 - 35
----
502
29

query II rowsort
SELECT DISTINCT + 45, + 20 + - 60 AS col2
----
45
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-6640
SELECT ALL 99 * - 92 + + + COUNT( * ) AS col2
----
-9107

skipif mysql # not compatible
query I rowsort label-6640
SELECT ALL 99 * - 92 + + + COUNT ( * ) AS col2
----
-9107

query I rowsort
SELECT ( 57 ) AS col2
----
57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6642
SELECT COUNT( * ) * 24 + - - 10 DIV - ( + 39 )
----
24

skipif mysql # not compatible
query I rowsort label-6642
SELECT COUNT ( * ) * 24 + - - 10 / - ( + 39 )
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-6643
SELECT + NULLIF ( COUNT( DISTINCT + - 48 ), + + CASE - 64 WHEN 18 THEN CASE - COUNT( * ) WHEN 28 THEN + 35 ELSE NULL END END ) * + 64
----
64

skipif mysql # not compatible
query I rowsort label-6643
SELECT + NULLIF ( COUNT ( DISTINCT + - 48 ), + + CASE - 64 WHEN 18 THEN CASE - COUNT ( * ) WHEN 28 THEN + 35 ELSE NULL END END ) * + 64
----
64

onlyif mysql # DIV for integer division: 
query II rowsort label-6644
SELECT + 30 DIV 70 + + 62, + 5 col2
----
62
5

skipif mysql # not compatible
query II rowsort label-6644
SELECT + 30 / 70 + + 62, + 5 col2
----
62
5

query I rowsort
SELECT ALL 17 * - 95
----
-1615

query I rowsort
SELECT + ( + 97 ) AS col2
----
97

query I rowsort
SELECT DISTINCT + COALESCE ( + 4, + CASE - 40 WHEN + + 28 * + 29 THEN + 89 + + 93 + 45 WHEN 55 * + 26 THEN NULL WHEN + 63 * 34 THEN 85 + - 71 END )
----
4

query I rowsort
SELECT ALL + 42 * 51 + - - 36
----
2178

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6649
SELECT + CAST( 38 AS SIGNED ) * - - 29
----
1102

skipif mysql # not compatible
query I rowsort label-6649
SELECT + CAST ( 38 AS INTEGER ) * - - 29
----
1102

query I rowsort
SELECT ALL 81 * 81
----
6561

onlyif mysql # aggregate syntax: 
query I rowsort label-6651
SELECT + COALESCE ( + 4, + 47 + 19 ) * 45 + - 8 + 53 + - COUNT( * ) * ( - 84 ) * 21
----
1989

skipif mysql # not compatible
query I rowsort label-6651
SELECT + COALESCE ( + 4, + 47 + 19 ) * 45 + - 8 + 53 + - COUNT ( * ) * ( - 84 ) * 21
----
1989

onlyif mysql # aggregate syntax: 
query I rowsort label-6652
SELECT ALL + SUM( 97 ) AS col1
----
97

skipif mysql # not compatible
query I rowsort label-6652
SELECT ALL + SUM ( 97 ) AS col1
----
97

query I rowsort
SELECT - 69 + CASE + + 72 WHEN 41 THEN NULL WHEN - 71 THEN + 94 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6654
SELECT NULLIF ( + + MIN( - 91 ), - - 45 + - 30 * - COUNT( * ) ) AS col0
----
-91

skipif mysql # not compatible
query I rowsort label-6654
SELECT NULLIF ( + + MIN ( - 91 ), - - 45 + - 30 * - COUNT ( * ) ) AS col0
----
-91

query I rowsort
SELECT ALL - ( 62 ) * + 80 + 12 AS col0
----
-4948

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6656
SELECT - 72 * - + CAST( NULL AS SIGNED ) * - 2
----
NULL

skipif mysql # not compatible
query I rowsort label-6656
SELECT - 72 * - + CAST ( NULL AS INTEGER ) * - 2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6657
SELECT DISTINCT - 33 AS col0, - COUNT( 97 )
----
-33
-1

skipif mysql # not compatible
query II rowsort label-6657
SELECT DISTINCT - 33 AS col0, - COUNT ( 97 )
----
-33
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6658
SELECT - + 30 * + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6658
SELECT - + 30 * + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6659
SELECT - + 24 * COUNT( * )
----
-24

skipif mysql # not compatible
query I rowsort label-6659
SELECT - + 24 * COUNT ( * )
----
-24

query I rowsort
SELECT ALL + + 36 * - 4 AS col1
----
-144

onlyif mysql # aggregate syntax: 
query I rowsort label-6661
SELECT - + 13 + MAX( + - 17 ) AS col2
----
-30

skipif mysql # not compatible
query I rowsort label-6661
SELECT - + 13 + MAX ( + - 17 ) AS col2
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-6662
SELECT - MAX( 21 ) + 91 AS col0
----
70

skipif mysql # not compatible
query I rowsort label-6662
SELECT - MAX ( 21 ) + 91 AS col0
----
70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6663
SELECT - + ( - ( + COUNT( * ) ) ) - 50 DIV + COALESCE ( 13, + 85 * - 20 - 25 )
----
-2

skipif mysql # not compatible
query I rowsort label-6663
SELECT - + ( - ( + COUNT ( * ) ) ) - 50 / + COALESCE ( 13, + 85 * - 20 - 25 )
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-6664
SELECT - SUM( ALL - 73 ) * - 2 - + + ( 97 ) * + 39 AS col1
----
-3929

skipif mysql # not compatible
query I rowsort label-6664
SELECT - SUM ( ALL - 73 ) * - 2 - + + ( 97 ) * + 39 AS col1
----
-3929

onlyif mysql # aggregate syntax: 
query I rowsort label-6665
SELECT ALL + MIN( - + 42 ) * - 1 * + 88 - 30
----
3666

skipif mysql # not compatible
query I rowsort label-6665
SELECT ALL + MIN ( - + 42 ) * - 1 * + 88 - 30
----
3666

onlyif mysql # aggregate syntax: 
query I rowsort label-6666
SELECT - SUM( + 55 ) AS col1
----
-55

skipif mysql # not compatible
query I rowsort label-6666
SELECT - SUM ( + 55 ) AS col1
----
-55

query I rowsort
SELECT - + 72 + - 11
----
-83

query I rowsort
SELECT DISTINCT - ( - - NULLIF ( - 31, 91 * - 35 * + 22 + + + 35 * 3 ) )
----
31

query I rowsort
SELECT - 41 * - 90 + - ( - - ( 93 ) )
----
3597

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6670
SELECT + - 97 + - ( 51 ), 65 - CASE + - 46 WHEN ( - CAST( NULL AS SIGNED ) ) THEN - 62 ELSE NULL END AS col1
----
-148
NULL

skipif mysql # not compatible
query II rowsort label-6670
SELECT + - 97 + - ( 51 ), 65 - CASE + - 46 WHEN ( - CAST ( NULL AS INTEGER ) ) THEN - 62 ELSE NULL END AS col1
----
-148
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6671
SELECT ( + + SUM( DISTINCT + ( - 46 ) ) ) AS col2
----
-46

skipif mysql # not compatible
query I rowsort label-6671
SELECT ( + + SUM ( DISTINCT + ( - 46 ) ) ) AS col2
----
-46

query I rowsort
SELECT CASE - 85 WHEN - 93 + - 49 THEN + - 9 END + 92
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6673
SELECT - - 2 AS col1, + COUNT( * ) AS col0
----
2
1

skipif mysql # not compatible
query II rowsort label-6673
SELECT - - 2 AS col1, + COUNT ( * ) AS col0
----
2
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6674
SELECT + 38 DIV NULLIF ( - - 82, + 98 + 88 ) * - COUNT( * ) DIV + ( + - ( + COUNT( * ) ) ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6674
SELECT + 38 / NULLIF ( - - 82, + 98 + 88 ) * - COUNT ( * ) / + ( + - ( + COUNT ( * ) ) ) AS col1
----
0

query II rowsort
SELECT ALL - 42 + - 29 + + - 8 AS col0, + 14 + 95
----
-79
109

query I rowsort
SELECT + 77 * 6 + - 80 AS col1
----
382

query I rowsort
SELECT DISTINCT 19 + 80
----
99

query I rowsort
SELECT ALL 77 * - + 75 AS col1
----
-5775

query I rowsort
SELECT ALL 36 * + 29 AS col0
----
1044

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6680
SELECT 71 DIV CAST( - CAST( - 44 AS SIGNED ) AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-6680
SELECT 71 / CAST ( - CAST ( - 44 AS INTEGER ) AS INTEGER )
----
1

query I rowsort
SELECT ALL - 34 + + 5 + 61 - + - 58 * + - 36 AS col0
----
-2056

query I rowsort
SELECT 78 * + + 99 AS col0
----
7722

query I rowsort
SELECT + 39 * - 95 + + 8
----
-3697

query I rowsort
SELECT ( + 78 ) * + - CASE - ( 14 ) WHEN + 68 THEN + - 69 + 88 ELSE + 29 END - + 61
----
-2323

onlyif mysql # aggregate syntax: 
query I rowsort label-6685
SELECT ALL 70 - + 71 * - + MAX( ALL - + 19 ) * - 28 * - - 47 AS col1
----
1775354

skipif mysql # not compatible
query I rowsort label-6685
SELECT ALL 70 - + 71 * - + MAX ( ALL - + 19 ) * - 28 * - - 47 AS col1
----
1775354

onlyif mysql # aggregate syntax: 
query II rowsort label-6686
SELECT + COUNT( * ) * + COUNT( * ) - - MAX( - + 43 ), + 93 * + - ( - 74 ) AS col2
----
-42
6882

skipif mysql # not compatible
query II rowsort label-6686
SELECT + COUNT ( * ) * + COUNT ( * ) - - MAX ( - + 43 ), + 93 * + - ( - 74 ) AS col2
----
-42
6882

query I rowsort
SELECT ALL ( + 4 ) * + 42 + 39
----
207

query I rowsort
SELECT 72 * 95 + 62
----
6902

query I rowsort
SELECT ALL 28 * + - 67
----
-1876

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6690
SELECT 92 * - CASE WHEN + 40 <= + 62 * SUM( - COALESCE ( + + 50, + - 17, + 10 * 84 ) ) / 48 + AVG ( CAST( NULL AS SIGNED ) + - 22 ) THEN NULL ELSE MIN( 7 ) + - 84 END col1
----
7084

skipif mysql # not compatible
query I rowsort label-6690
SELECT 92 * - CASE WHEN + 40 <= + 62 * SUM ( - COALESCE ( + + 50, + - 17, + 10 * 84 ) ) / 48 + AVG ( CAST ( NULL AS INTEGER ) + - 22 ) THEN NULL ELSE MIN ( 7 ) + - 84 END col1
----
7084

onlyif mysql # aggregate syntax: 
query I rowsort label-6691
SELECT + - 12 * + 1 + - + 96 + - MAX( DISTINCT 56 ) + 65
----
-99

skipif mysql # not compatible
query I rowsort label-6691
SELECT + - 12 * + 1 + - + 96 + - MAX ( DISTINCT 56 ) + 65
----
-99

onlyif mysql # aggregate syntax: 
query II rowsort label-6692
SELECT + 70 - + COUNT( * ) AS col0, + 12
----
69
12

skipif mysql # not compatible
query II rowsort label-6692
SELECT + 70 - + COUNT ( * ) AS col0, + 12
----
69
12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6693
SELECT + CAST( - 78 AS SIGNED ) AS col2
----
-78

skipif mysql # not compatible
query I rowsort label-6693
SELECT + CAST ( - 78 AS INTEGER ) AS col2
----
-78

query I rowsort
SELECT + ( + 88 ) * 45 - + NULLIF ( - 21, - 62 + + 69 - 32 ) * - - 49
----
4989

onlyif mysql # DIV for integer division: 
query I rowsort label-6695
SELECT 76 DIV 52
----
1

skipif mysql # not compatible
query I rowsort label-6695
SELECT 76 / 52
----
1

query I rowsort
SELECT 19 * + 11 * - 16 AS col1
----
-3344

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6697
SELECT + 36 + CAST( - 92 AS SIGNED )
----
-56

skipif mysql # not compatible
query I rowsort label-6697
SELECT + 36 + CAST ( - 92 AS INTEGER )
----
-56

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6698
SELECT DISTINCT + 20 * - + 1 DIV + COUNT( * ) - + 47
----
-67

skipif mysql # not compatible
query I rowsort label-6698
SELECT DISTINCT + 20 * - + 1 / + COUNT ( * ) - + 47
----
-67

query II rowsort
SELECT 68 + 77, - 76 col2
----
145
-76

query I rowsort
SELECT 99 * + 10
----
990

query I rowsort
SELECT 45 * - CASE - - 9 WHEN 31 THEN + COALESCE ( + 62, - 0 + - 26 * - 58 + - 22 ) END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6702
SELECT + 12 + - COUNT( * ) AS col1, - 56
----
11
-56

skipif mysql # not compatible
query II rowsort label-6702
SELECT + 12 + - COUNT ( * ) AS col1, - 56
----
11
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-6703
SELECT - COUNT( ALL + 76 ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-6703
SELECT - COUNT ( ALL + 76 ) col0
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6704
SELECT ALL - - 29 DIV - - 38, 19 * - 77 * - 89 * + 55 * ( - - ( - 6 ) ) * + COUNT( * ) AS col2
----
0
-42968310

skipif mysql # not compatible
query II rowsort label-6704
SELECT ALL - - 29 / - - 38, 19 * - 77 * - 89 * + 55 * ( - - ( - 6 ) ) * + COUNT ( * ) AS col2
----
0
-42968310

query I rowsort
SELECT + 95 * - 52 AS col1
----
-4940

onlyif mysql # DIV for integer division: 
query I rowsort label-6706
SELECT 37 + + 88 DIV 74 * + 76 AS col2
----
113

skipif mysql # not compatible
query I rowsort label-6706
SELECT 37 + + 88 / 74 * + 76 AS col2
----
113

query I rowsort
SELECT 24 * - 39
----
-936

query I rowsort
SELECT 55 - 63 + - CASE + 94 WHEN + - 15 THEN ( 42 ) * ( + 74 ) WHEN 65 / 28 THEN ( 73 ) * 69 WHEN 19 * 82 THEN NULL END * 48 AS col0
----
NULL

query I rowsort
SELECT ALL - + ( - 39 ) + - 33 AS col2
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-6710
SELECT - 61 + + COUNT( * ) + + 59 + + 0
----
-1

skipif mysql # not compatible
query I rowsort label-6710
SELECT - 61 + + COUNT ( * ) + + 59 + + 0
----
-1

query I rowsort
SELECT DISTINCT COALESCE ( + 53, - 79 ) AS col2
----
53

query I rowsort
SELECT ALL - - 16 + + 34 + 38 AS col0
----
88

query I rowsort
SELECT 71 + 75 AS col2
----
146

query I rowsort
SELECT ALL + 2 + - 96
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-6715
SELECT DISTINCT - 47 + + + 81 + + COUNT( * ) - 26
----
9

skipif mysql # not compatible
query I rowsort label-6715
SELECT DISTINCT - 47 + + + 81 + + COUNT ( * ) - 26
----
9

query I rowsort
SELECT 52 + + + 98
----
150

query I rowsort
SELECT 61 + - 6 + - 35 col2
----
20

query I rowsort
SELECT DISTINCT - ( - + 82 )
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-6719
SELECT ALL - COUNT( * ) - COUNT( * )
----
-2

skipif mysql # not compatible
query I rowsort label-6719
SELECT ALL - COUNT ( * ) - COUNT ( * )
----
-2

query I rowsort
SELECT 13 * 52
----
676

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6721
SELECT ALL - CAST( + NULLIF ( 32, - 16 + - + 28 * - + 32 + 7 ) AS SIGNED ) AS col2
----
-32

skipif mysql # not compatible
query I rowsort label-6721
SELECT ALL - CAST ( + NULLIF ( 32, - 16 + - + 28 * - + 32 + 7 ) AS INTEGER ) AS col2
----
-32

onlyif mysql # DIV for integer division: 
query I rowsort label-6722
SELECT + 22 DIV + 57 + + 24 AS col2
----
24

skipif mysql # not compatible
query I rowsort label-6722
SELECT + 22 / + 57 + + 24 AS col2
----
24

onlyif mysql # DIV for integer division: 
query II rowsort label-6723
SELECT ALL - 12 DIV - ( - 62 ) AS col1, 19 AS col1
----
0
19

skipif mysql # not compatible
query II rowsort label-6723
SELECT ALL - 12 / - ( - 62 ) AS col1, 19 AS col1
----
0
19

onlyif mysql # aggregate syntax: 
query I rowsort label-6724
SELECT DISTINCT - ( + - CASE + 81 WHEN - 77 THEN - 57 * 97 + + - MAX( DISTINCT + 1 ) END )
----
NULL

skipif mysql # not compatible
query I rowsort label-6724
SELECT DISTINCT - ( + - CASE + 81 WHEN - 77 THEN - 57 * 97 + + - MAX ( DISTINCT + 1 ) END )
----
NULL

query I rowsort
SELECT ALL 64 * + 66
----
4224

query I rowsort
SELECT 3 * - - 34 AS col2
----
102

query I rowsort
SELECT 15 * ( - + 29 ) AS col1
----
-435

onlyif mysql # aggregate syntax: 
query I rowsort label-6728
SELECT 4 * - 27 + + NULLIF ( + COUNT( * ), - 11 )
----
-107

skipif mysql # not compatible
query I rowsort label-6728
SELECT 4 * - 27 + + NULLIF ( + COUNT ( * ), - 11 )
----
-107

onlyif mysql # aggregate syntax: 
query I rowsort label-6729
SELECT ALL - CASE + 83 WHEN SUM( - 12 ) / - 95 + - 61 + - COUNT( * ) + - ( + COUNT( DISTINCT - 69 ) ) THEN + 21 + - 37 / 83 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6729
SELECT ALL - CASE + 83 WHEN SUM ( - 12 ) / - 95 + - 61 + - COUNT ( * ) + - ( + COUNT ( DISTINCT - 69 ) ) THEN + 21 + - 37 / 83 END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6730
SELECT COUNT( * ), + 6 * 26 + - COUNT( * ) + CASE COUNT( * ) WHEN - CASE + 81 WHEN 10 THEN + - COUNT( * ) ELSE + ( 18 ) END THEN ( 22 ) WHEN CAST( NULL AS SIGNED ) * 4 THEN NULL END + - 81 AS col0
----
1
NULL

skipif mysql # not compatible
query II rowsort label-6730
SELECT COUNT ( * ), + 6 * 26 + - COUNT ( * ) + CASE COUNT ( * ) WHEN - CASE + 81 WHEN 10 THEN + - COUNT ( * ) ELSE + ( 18 ) END THEN ( 22 ) WHEN CAST ( NULL AS INTEGER ) * 4 THEN NULL END + - 81 AS col0
----
1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6731
SELECT + COUNT( DISTINCT + 64 ) + + - 82 AS col1
----
-81

skipif mysql # not compatible
query I rowsort label-6731
SELECT + COUNT ( DISTINCT + 64 ) + + - 82 AS col1
----
-81

query II rowsort
SELECT ALL - 1, - 62 col0
----
-1
-62

query II rowsort
SELECT + - 44, - 76 + - 68 AS col1
----
-44
-144

query I rowsort
SELECT ( - + 90 ) col0
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-6735
SELECT DISTINCT - + CASE + 10 WHEN - - COUNT( * ) + - 59 THEN NULL WHEN 89 + + - 13 + + 39 * + 66 THEN - 69 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6735
SELECT DISTINCT - + CASE + 10 WHEN - - COUNT ( * ) + - 59 THEN NULL WHEN 89 + + - 13 + + 39 * + 66 THEN - 69 END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6736
SELECT ALL - COALESCE ( - MAX( - 77 ), + 32 DIV + ( + MIN( 78 ) ) )
----
-77

skipif mysql # not compatible
query I rowsort label-6736
SELECT ALL - COALESCE ( - MAX ( - 77 ), + 32 / + ( + MIN ( 78 ) ) )
----
-77

query II rowsort
SELECT 70 AS col1, 9 AS col2
----
70
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6738
SELECT CAST( NULL AS SIGNED ) * + + 78 * ( + 73 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6738
SELECT CAST ( NULL AS INTEGER ) * + + 78 * ( + 73 ) AS col0
----
NULL

query I rowsort
SELECT + 0 - 53
----
-53

query I rowsort
SELECT DISTINCT - 8 + + - 19 col2
----
-27

query I rowsort
SELECT + ( + 73 )
----
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6742
SELECT ALL 67 + MAX( - CAST( NULL AS SIGNED ) ) + 68 + + 21 + + - 44 + ( - 46 ) + - - 18 - - 20
----
NULL

skipif mysql # not compatible
query I rowsort label-6742
SELECT ALL 67 + MAX ( - CAST ( NULL AS INTEGER ) ) + 68 + + 21 + + - 44 + ( - 46 ) + - - 18 - - 20
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6743
SELECT + + COUNT( ALL + 68 ) + CAST( + 80 AS SIGNED ) * + - 7, + 45 AS col1
----
-559
45

skipif mysql # not compatible
query II rowsort label-6743
SELECT + + COUNT ( ALL + 68 ) + CAST ( + 80 AS INTEGER ) * + - 7, + 45 AS col1
----
-559
45

query II rowsort
SELECT + ( 49 ) - - 22 AS col1, - COALESCE ( - + 25, - + 84 ) + + 52 AS col1
----
71
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6745
SELECT DISTINCT + - 51 DIV + 91 + COALESCE ( - + CASE - 87 WHEN CAST( + + NULLIF ( 81, - 24 DIV - 68 ) AS SIGNED ) * - COALESCE ( 25, + 31 + + 3 DIV 46, + 0 ) THEN NULL WHEN 66 THEN + 38 * 60 + 47 * + 37 ELSE 25 + ( + 28 ) END, + COUNT( * ) + + 17 * - ( + 73 ) ) + - 47
----
-100

skipif mysql # not compatible
query I rowsort label-6745
SELECT DISTINCT + - 51 / + 91 + COALESCE ( - + CASE - 87 WHEN CAST ( + + NULLIF ( 81, - 24 / - 68 ) AS INTEGER ) * - COALESCE ( 25, + 31 + + 3 / 46, + 0 ) THEN NULL WHEN 66 THEN + 38 * 60 + 47 * + 37 ELSE 25 + ( + 28 ) END, + COUNT ( * ) + + 17 * - ( + 73 ) ) + - 47
----
-100

query I rowsort
SELECT ALL - - 89 + 4 * - + 23 AS col2
----
-3

query II rowsort
SELECT DISTINCT 5, 1 AS col0
----
5
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6748
SELECT + COUNT( * ) DIV + MAX( 98 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6748
SELECT + COUNT ( * ) / + MAX ( 98 ) AS col1
----
0

query II rowsort
SELECT - NULLIF ( + + 84, + 13 ) + - 27 col0, - ( - 2 ) AS col2
----
-111
2

onlyif mysql # aggregate syntax: 
query II rowsort label-6750
SELECT - 10 col2, + COUNT( * )
----
-10
1

skipif mysql # not compatible
query II rowsort label-6750
SELECT - 10 col2, + COUNT ( * )
----
-10
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6751
SELECT - COALESCE ( - COUNT( * ), + - 13 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6751
SELECT - COALESCE ( - COUNT ( * ), + - 13 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6752
SELECT ALL MIN( DISTINCT 69 )
----
69

skipif mysql # not compatible
query I rowsort label-6752
SELECT ALL MIN ( DISTINCT 69 )
----
69

query II rowsort
SELECT 95 AS col1, 27 AS col0
----
95
27

onlyif mysql # aggregate syntax: 
query I rowsort label-6754
SELECT - ( - - NULLIF ( - - COUNT( * ), + - 49 ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-6754
SELECT - ( - - NULLIF ( - - COUNT ( * ), + - 49 ) ) AS col1
----
-1

query II rowsort
SELECT ALL 22, + 59 AS col1
----
22
59

onlyif mysql # aggregate syntax: 
query II rowsort label-6756
SELECT 4, COUNT( * ) AS col0
----
4
1

skipif mysql # not compatible
query II rowsort label-6756
SELECT 4, COUNT ( * ) AS col0
----
4
1

onlyif mysql # aggregate syntax: 
query II rowsort label-6757
SELECT ALL CASE 47 WHEN + 61 THEN + - 1 END AS col2, NULLIF ( + 50, - + NULLIF ( AVG ( - 78 ), - COALESCE ( + 79, 84, + 4 * + 92 + 67 * 28, AVG ( DISTINCT 42 ) + - SUM( - 96 ) * 59 ) ) * - 82 )
----
NULL
50

skipif mysql # not compatible
query II rowsort label-6757
SELECT ALL CASE 47 WHEN + 61 THEN + - 1 END AS col2, NULLIF ( + 50, - + NULLIF ( AVG ( - 78 ), - COALESCE ( + 79, 84, + 4 * + 92 + 67 * 28, AVG ( DISTINCT 42 ) + - SUM ( - 96 ) * 59 ) ) * - 82 )
----
NULL
50

onlyif mysql # aggregate syntax: 
query II rowsort label-6758
SELECT ALL + COUNT( * ) AS col2, + 0 + + COALESCE ( COUNT( * ), - 81, 76 ) AS col0
----
1
1

skipif mysql # not compatible
query II rowsort label-6758
SELECT ALL + COUNT ( * ) AS col2, + 0 + + COALESCE ( COUNT ( * ), - 81, 76 ) AS col0
----
1
1

onlyif mysql # aggregate syntax: 
query II rowsort label-6759
SELECT ALL + 70, ( + - COUNT( * ) ) * - + 58 * 92 AS col1
----
70
5336

skipif mysql # not compatible
query II rowsort label-6759
SELECT ALL + 70, ( + - COUNT ( * ) ) * - + 58 * 92 AS col1
----
70
5336

query II rowsort
SELECT ( - 42 ) AS col1, 63 AS col1
----
-42
63

onlyif mysql # aggregate syntax: 
query I rowsort label-6761
SELECT ALL + MIN( DISTINCT + 37 ) AS col2
----
37

skipif mysql # not compatible
query I rowsort label-6761
SELECT ALL + MIN ( DISTINCT + 37 ) AS col2
----
37

query I rowsort
SELECT - 46 * - 16
----
736

onlyif mysql # aggregate syntax: 
query I rowsort label-6763
SELECT + 92 * + NULLIF ( - 47, + 59 / - 34 * + 15 * - - 26 - - 58 + ( + MIN( + 77 ) ) ) + + NULLIF ( 85, 92 ) AS col0
----
-4239

skipif mysql # not compatible
query I rowsort label-6763
SELECT + 92 * + NULLIF ( - 47, + 59 / - 34 * + 15 * - - 26 - - 58 + ( + MIN ( + 77 ) ) ) + + NULLIF ( 85, 92 ) AS col0
----
-4239

onlyif mysql # aggregate syntax: 
query I rowsort label-6764
SELECT ALL + COUNT( DISTINCT + - 19 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-6764
SELECT ALL + COUNT ( DISTINCT + - 19 ) col2
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-6765
SELECT - 11 DIV 63 * - 35 * + 24
----
0

skipif mysql # not compatible
query I rowsort label-6765
SELECT - 11 / 63 * - 35 * + 24
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6766
SELECT COALESCE ( + + 59, + - 30 + ( + - 13 ) * + + COUNT( * ) ) AS col2
----
59

skipif mysql # not compatible
query I rowsort label-6766
SELECT COALESCE ( + + 59, + - 30 + ( + - 13 ) * + + COUNT ( * ) ) AS col2
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-6767
SELECT + MIN( ALL - + 70 )
----
-70

skipif mysql # not compatible
query I rowsort label-6767
SELECT + MIN ( ALL - + 70 )
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-6768
SELECT NULLIF ( COUNT( * ), - 13 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-6768
SELECT NULLIF ( COUNT ( * ), - 13 ) col2
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-6769
SELECT + COUNT( * ), 40 + - 32 * COUNT( * ) - + 96 + 98 - - - MIN( + ( - - 72 ) ) - - + 86 AS col1
----
1
24

skipif mysql # not compatible
query II rowsort label-6769
SELECT + COUNT ( * ), 40 + - 32 * COUNT ( * ) - + 96 + 98 - - - MIN ( + ( - - 72 ) ) - - + 86 AS col1
----
1
24

onlyif mysql # aggregate syntax: 
query I rowsort label-6770
SELECT ALL + MIN( ALL 87 ) AS col2
----
87

skipif mysql # not compatible
query I rowsort label-6770
SELECT ALL + MIN ( ALL 87 ) AS col2
----
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6771
SELECT - NULLIF ( + + COUNT( ALL - 10 ), + - CAST( NULL AS SIGNED ) ) - + + 35 AS col1
----
-36

skipif mysql # not compatible
query I rowsort label-6771
SELECT - NULLIF ( + + COUNT ( ALL - 10 ), + - CAST ( NULL AS INTEGER ) ) - + + 35 AS col1
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-6772
SELECT ALL + 31 * + COUNT( * ) AS col1
----
31

skipif mysql # not compatible
query I rowsort label-6772
SELECT ALL + 31 * + COUNT ( * ) AS col1
----
31

query I rowsort
SELECT - - 26 * - 31 + - 1 + + 74 + - 4 * + + 13 + 50 - 58 * + + 59
----
-4157

query I rowsort
SELECT DISTINCT + - 69 * + 91 + + 64 + - - 6 AS col0
----
-6209

query I rowsort
SELECT - + 51 * 94
----
-4794

query I rowsort
SELECT - + 93 + 88 AS col1
----
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6777
SELECT + CAST( NULL AS SIGNED ) AS col2, - MAX( + 76 ) * 7 + + COALESCE ( 12, + + ( - COUNT( * ) ) + - 39 * - 83 + + - 32 ) + + COUNT( * ) col1
----
NULL
-519

skipif mysql # not compatible
query II rowsort label-6777
SELECT + CAST ( NULL AS INTEGER ) AS col2, - MAX ( + 76 ) * 7 + + COALESCE ( 12, + + ( - COUNT ( * ) ) + - 39 * - 83 + + - 32 ) + + COUNT ( * ) col1
----
NULL
-519

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6778
SELECT ALL + 71 * 96 * - - CAST( - 43 AS SIGNED ) + + COUNT( * ) DIV + 79 - - ( + + 85 )
----
-293003

skipif mysql # not compatible
query I rowsort label-6778
SELECT ALL + 71 * 96 * - - CAST ( - 43 AS INTEGER ) + + COUNT ( * ) / + 79 - - ( + + 85 )
----
-293003

onlyif mysql # DIV for integer division: 
query I rowsort label-6779
SELECT - 80 DIV - - 51
----
-1

skipif mysql # not compatible
query I rowsort label-6779
SELECT - 80 / - - 51
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6780
SELECT - 94 * - CAST( - 51 AS SIGNED ) AS col2
----
-4794

skipif mysql # not compatible
query I rowsort label-6780
SELECT - 94 * - CAST ( - 51 AS INTEGER ) AS col2
----
-4794

query I rowsort
SELECT + ( + + 18 ) * + + 20
----
360

onlyif mysql # aggregate syntax: 
query I rowsort label-6782
SELECT DISTINCT - 96 * SUM( - 88 ) + - + 5 + - 93 * + 78 AS col0
----
1189

skipif mysql # not compatible
query I rowsort label-6782
SELECT DISTINCT - 96 * SUM ( - 88 ) + - + 5 + - 93 * + 78 AS col0
----
1189

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6783
SELECT ALL + SUM( DISTINCT - 49 ) * 22 * 82 + 96 - - + 46 + + 13 DIV 40 - - 65 + + + ( + - ( + 44 ) ) - 21 * 73
----
-89766

skipif mysql # not compatible
query I rowsort label-6783
SELECT ALL + SUM ( DISTINCT - 49 ) * 22 * 82 + 96 - - + 46 + + 13 / 40 - - 65 + + + ( + - ( + 44 ) ) - 21 * 73
----
-89766

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6784
SELECT 40 AS col1, + CASE 94 WHEN - - COUNT( * ) * - 58 THEN NULL WHEN + 16 * + 62 + + 90 + CAST( - 69 AS SIGNED ) / 42 + + 46 * 4 THEN + 82 WHEN 10 THEN 50 ELSE - NULLIF ( + 77, 33 ) END AS col0
----
40
-77

skipif mysql # not compatible
query II rowsort label-6784
SELECT 40 AS col1, + CASE 94 WHEN - - COUNT ( * ) * - 58 THEN NULL WHEN + 16 * + 62 + + 90 + CAST ( - 69 AS INTEGER ) / 42 + + 46 * 4 THEN + 82 WHEN 10 THEN 50 ELSE - NULLIF ( + 77, 33 ) END AS col0
----
40
-77

query I rowsort
SELECT DISTINCT - + 86 * - - 73 - - ( 67 ) + + 13 + - 11 AS col0
----
-6209

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6786
SELECT + 34 + NULLIF ( + ( - + 64 ), - ( + 66 ) + + CAST( NULL AS DECIMAL ) ) - - 62 - - 36 * 44
----
1616

skipif mysql # not compatible
query I rowsort label-6786
SELECT + 34 + NULLIF ( + ( - + 64 ), - ( + 66 ) + + CAST ( NULL AS REAL ) ) - - 62 - - 36 * 44
----
1616

onlyif mysql # aggregate syntax: 
query II rowsort label-6787
SELECT ALL + COUNT( * ) AS col2, ( - + 5 )
----
1
-5

skipif mysql # not compatible
query II rowsort label-6787
SELECT ALL + COUNT ( * ) AS col2, ( - + 5 )
----
1
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6788
SELECT + COUNT( + + CAST( + + 79 AS SIGNED ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6788
SELECT + COUNT ( + + CAST ( + + 79 AS INTEGER ) ) AS col0
----
1

query I rowsort
SELECT ALL - - 82 + - - 73
----
155

onlyif mysql # aggregate syntax: 
query I rowsort label-6790
SELECT - ( - SUM( DISTINCT - - 73 ) )
----
73

skipif mysql # not compatible
query I rowsort label-6790
SELECT - ( - SUM ( DISTINCT - - 73 ) )
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-6791
SELECT ALL MAX( + 28 ) col1
----
28

skipif mysql # not compatible
query I rowsort label-6791
SELECT ALL MAX ( + 28 ) col1
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-6792
SELECT - ( - - NULLIF ( + - 48, + + COUNT( * ) + + 35 * - - 42 * 13 + 4 - + 46 + 76 ) ) + + 20 * 4
----
128

skipif mysql # not compatible
query I rowsort label-6792
SELECT - ( - - NULLIF ( + - 48, + + COUNT ( * ) + + 35 * - - 42 * 13 + 4 - + 46 + 76 ) ) + + 20 * 4
----
128

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6793
SELECT + COUNT( * ) + - 56, 5 DIV 48 + + + 16 * 32 AS col1
----
-55
512

skipif mysql # not compatible
query II rowsort label-6793
SELECT + COUNT ( * ) + - 56, 5 / 48 + + + 16 * 32 AS col1
----
-55
512

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-6794
SELECT - COALESCE ( + 36, 74 + CAST( + ( + - MAX( ALL + + 6 ) ) AS SIGNED ) ) AS col2, 60 col0, + 81
----
-36
60
81

skipif mysql # not compatible
query III rowsort label-6794
SELECT - COALESCE ( + 36, 74 + CAST ( + ( + - MAX ( ALL + + 6 ) ) AS INTEGER ) ) AS col2, 60 col0, + 81
----
-36
60
81

onlyif mysql # aggregate syntax: 
query I rowsort label-6795
SELECT + 1 + + 9 + + COUNT( * ) AS col0
----
11

skipif mysql # not compatible
query I rowsort label-6795
SELECT + 1 + + 9 + + COUNT ( * ) AS col0
----
11

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6796
SELECT ALL 65 * + 49, 28 + + 8 + + 50 * + COALESCE ( - - 46, + COUNT( * ) DIV 99, + - 38 * - - 99 ) AS col0
----
3185
2336

skipif mysql # not compatible
query II rowsort label-6796
SELECT ALL 65 * + 49, 28 + + 8 + + 50 * + COALESCE ( - - 46, + COUNT ( * ) / 99, + - 38 * - - 99 ) AS col0
----
3185
2336

query I rowsort
SELECT + ( - + NULLIF ( - ( 16 ), - + 89 ) ) + 60 AS col2
----
76

onlyif mysql # aggregate syntax: 
query II rowsort label-6798
SELECT DISTINCT MIN( DISTINCT + - 7 ) AS col1, - 49
----
-7
-49

skipif mysql # not compatible
query II rowsort label-6798
SELECT DISTINCT MIN ( DISTINCT + - 7 ) AS col1, - 49
----
-7
-49

query I rowsort
SELECT + 29 + - 89 - 21 + 38 * 55
----
2009

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6800
SELECT ALL + COUNT( * ) DIV + 93 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6800
SELECT ALL + COUNT ( * ) / + 93 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6801
SELECT + COUNT( * ) + + - 11 AS col1
----
-10

skipif mysql # not compatible
query I rowsort label-6801
SELECT + COUNT ( * ) + + - 11 AS col1
----
-10

query I rowsort
SELECT - 23 + - + 72
----
-95

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6803
SELECT + CAST( + CASE - - 70 WHEN - - 49 THEN - 60 * - + 63 WHEN - - 36 THEN NULL ELSE NULL END AS DECIMAL ) * - 20 + + - ( - 67 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6803
SELECT + CAST ( + CASE - - 70 WHEN - - 49 THEN - 60 * - + 63 WHEN - - 36 THEN NULL ELSE NULL END AS REAL ) * - 20 + + - ( - 67 ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6804
SELECT ALL ( - 6 ) DIV - 49
----
0

skipif mysql # not compatible
query I rowsort label-6804
SELECT ALL ( - 6 ) / - 49
----
0

query I rowsort
SELECT + 70 * 49 * 32 * 27
----
2963520

onlyif mysql # aggregate syntax: 
query I rowsort label-6806
SELECT COUNT( * ) * COALESCE ( 89, + + 64 ) + COUNT( * )
----
90

skipif mysql # not compatible
query I rowsort label-6806
SELECT COUNT ( * ) * COALESCE ( 89, + + 64 ) + COUNT ( * )
----
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6807
SELECT DISTINCT - CAST( + - 45 AS SIGNED ) * CAST( NULL AS SIGNED ) + + ( + + 38 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6807
SELECT DISTINCT - CAST ( + - 45 AS INTEGER ) * CAST ( NULL AS INTEGER ) + + ( + + 38 ) AS col1
----
NULL

query I rowsort
SELECT - 39 + + 34 AS col0
----
-5

query I rowsort
SELECT + NULLIF ( + - 39, 21 )
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-6810
SELECT ALL + COUNT( - 90 )
----
1

skipif mysql # not compatible
query I rowsort label-6810
SELECT ALL + COUNT ( - 90 )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6811
SELECT ALL + - COUNT( * ) DIV - ( + - 79 ) + - + 30
----
-30

skipif mysql # not compatible
query I rowsort label-6811
SELECT ALL + - COUNT ( * ) / - ( + - 79 ) + - + 30
----
-30

onlyif mysql # DIV for integer division: 
query II rowsort label-6812
SELECT + 69 * 79 AS col0, 17 * - 24 * + 16 * - 80 * - 35 + + - 24 + 17 + 60 DIV + 23 AS col2
----
5451
-18278405

skipif mysql # not compatible
query II rowsort label-6812
SELECT + 69 * 79 AS col0, 17 * - 24 * + 16 * - 80 * - 35 + + - 24 + 17 + 60 / + 23 AS col2
----
5451
-18278405

onlyif mysql # aggregate syntax: 
query I rowsort label-6813
SELECT + - 70 * + 79 + - + COUNT( * ) + + CASE 20 WHEN - ( - - 66 ) - - - COUNT( * ) + 61 THEN NULL WHEN + 48 * - - 67 * - 86 THEN 60 ELSE + 55 * 4 END + + 75 * 26 AS col2
----
-3361

skipif mysql # not compatible
query I rowsort label-6813
SELECT + - 70 * + 79 + - + COUNT ( * ) + + CASE 20 WHEN - ( - - 66 ) - - - COUNT ( * ) + 61 THEN NULL WHEN + 48 * - - 67 * - 86 THEN 60 ELSE + 55 * 4 END + + 75 * 26 AS col2
----
-3361

onlyif mysql # aggregate syntax: 
query I rowsort label-6814
SELECT COUNT( - 5 )
----
1

skipif mysql # not compatible
query I rowsort label-6814
SELECT COUNT ( - 5 )
----
1

query I rowsort
SELECT - 66 + - + 88 + - 94 * + 28
----
-2786

onlyif mysql # aggregate syntax: 
query I rowsort label-6816
SELECT + COUNT( * ) * - + 90 * + 94 + + - 93
----
-8553

skipif mysql # not compatible
query I rowsort label-6816
SELECT + COUNT ( * ) * - + 90 * + 94 + + - 93
----
-8553

onlyif mysql # DIV for integer division: 
query I rowsort label-6817
SELECT ALL + + 10 DIV 42 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6817
SELECT ALL + + 10 / 42 AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6818
SELECT + COUNT( * ) DIV + MIN( ALL - 90 )
----
0

skipif mysql # not compatible
query I rowsort label-6818
SELECT + COUNT ( * ) / + MIN ( ALL - 90 )
----
0

query I rowsort
SELECT ALL + - 43 - - + 90 * + 47 + 25
----
4212

query I rowsort
SELECT DISTINCT - + 6 AS col0
----
-6

query II rowsort
SELECT ALL 85 - 84, 12 AS col0
----
1
12

onlyif mysql # aggregate syntax: 
query II rowsort label-6822
SELECT DISTINCT + - 67 * + 48 + - 92 AS col0, + COALESCE ( - COUNT( * ), 93 ) * 44 * - + 11 + - COUNT( * ) - 70 * + 45
----
-3308
-2667

skipif mysql # not compatible
query II rowsort label-6822
SELECT DISTINCT + - 67 * + 48 + - 92 AS col0, + COALESCE ( - COUNT ( * ), 93 ) * 44 * - + 11 + - COUNT ( * ) - 70 * + 45
----
-3308
-2667

onlyif mysql # aggregate syntax: 
query I rowsort label-6823
SELECT - MIN( DISTINCT + 56 ) - + 16 AS col1
----
-72

skipif mysql # not compatible
query I rowsort label-6823
SELECT - MIN ( DISTINCT + 56 ) - + 16 AS col1
----
-72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6824
SELECT CASE + 60 WHEN + 52 THEN - NULLIF ( 24, AVG ( DISTINCT + 40 ) * + 15 ) WHEN + COUNT( * ) * - 57 THEN NULL WHEN - 74 THEN + 26 * - 11 END * CAST( 14 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6824
SELECT CASE + 60 WHEN + 52 THEN - NULLIF ( 24, AVG ( DISTINCT + 40 ) * + 15 ) WHEN + COUNT ( * ) * - 57 THEN NULL WHEN - 74 THEN + 26 * - 11 END * CAST ( 14 AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT COALESCE ( + 97, - 95 * - 46 - + + 36 )
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-6826
SELECT ALL + MIN( ALL - 76 ) * + 20
----
-1520

skipif mysql # not compatible
query I rowsort label-6826
SELECT ALL + MIN ( ALL - 76 ) * + 20
----
-1520

query I rowsort
SELECT + NULLIF ( + 68, + 58 )
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-6828
SELECT - SUM( DISTINCT - ( + - COALESCE ( + 0, + - 45 ) ) ) * - 9 + + ( + 48 ) + - - 46 * 80 * - COALESCE ( + 74, - + 6 * + 45 + + COUNT( * ) ) * - 27 + + 94 * - 44
----
7348552

skipif mysql # not compatible
query I rowsort label-6828
SELECT - SUM ( DISTINCT - ( + - COALESCE ( + 0, + - 45 ) ) ) * - 9 + + ( + 48 ) + - - 46 * 80 * - COALESCE ( + 74, - + 6 * + 45 + + COUNT ( * ) ) * - 27 + + 94 * - 44
----
7348552

query II rowsort
SELECT - 8 AS col2, + 77
----
-8
77

query I rowsort
SELECT DISTINCT + 25 * - 88
----
-2200

query II rowsort
SELECT ALL 12, + 67 AS col0
----
12
67

query II rowsort
SELECT - 66 AS col0, 86
----
-66
86

query II rowsort
SELECT ALL 22 AS col1, + 33
----
22
33

query II rowsort
SELECT - 74 AS col0, + 35 + - 92 AS col1
----
-74
-57

query I rowsort
SELECT NULLIF ( + 79, + 78 * + + 52 ) * 9
----
711

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6836
SELECT ALL 76 AS col1, AVG ( ALL - 89 ) + + + 16 + + - CASE COUNT( COALESCE ( 79, 70 * + 64 ) ) WHEN + - COUNT( * ) * - - MIN( DISTINCT - + 77 ) + SUM( 56 ) THEN NULL WHEN ( - 98 ) THEN NULL ELSE CAST( NULL AS SIGNED ) END * 18
----
76
NULL

skipif mysql # not compatible
query II rowsort label-6836
SELECT ALL 76 AS col1, AVG ( ALL - 89 ) + + + 16 + + - CASE COUNT ( COALESCE ( 79, 70 * + 64 ) ) WHEN + - COUNT ( * ) * - - MIN ( DISTINCT - + 77 ) + SUM ( 56 ) THEN NULL WHEN ( - 98 ) THEN NULL ELSE CAST ( NULL AS INTEGER ) END * 18
----
76
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6837
SELECT COALESCE ( + 81, + - 62 ) * ( - 59 ) * COUNT( * )
----
-4779

skipif mysql # not compatible
query I rowsort label-6837
SELECT COALESCE ( + 81, + - 62 ) * ( - 59 ) * COUNT ( * )
----
-4779

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6838
SELECT DISTINCT CASE - 18 WHEN - 14 + - 6 THEN - - COUNT( * ) + - 23 * - 45 + - CASE - + 87 WHEN + 66 * - AVG ( ALL 23 ) THEN + NULLIF ( - 7, + 79 * + CASE 1 WHEN + 14 THEN NULL WHEN 94 THEN MAX( + CAST( NULL AS SIGNED ) ) END ) END END + - 39
----
NULL

skipif mysql # not compatible
query I rowsort label-6838
SELECT DISTINCT CASE - 18 WHEN - 14 + - 6 THEN - - COUNT ( * ) + - 23 * - 45 + - CASE - + 87 WHEN + 66 * - AVG ( ALL 23 ) THEN + NULLIF ( - 7, + 79 * + CASE 1 WHEN + 14 THEN NULL WHEN 94 THEN MAX ( + CAST ( NULL AS INTEGER ) ) END ) END END + - 39
----
NULL

query I rowsort
SELECT + ( 14 ) AS col2
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-6840
SELECT 68 + + 68 * COUNT( * ) + - + COALESCE ( - 89, + 83 )
----
225

skipif mysql # not compatible
query I rowsort label-6840
SELECT 68 + + 68 * COUNT ( * ) + - + COALESCE ( - 89, + 83 )
----
225

query I rowsort
SELECT + 36 * + + 37 AS col2
----
1332

onlyif mysql # aggregate syntax: 
query I rowsort label-6842
SELECT ALL - 79 + + + 88 * + COUNT( * ) AS col1
----
9

skipif mysql # not compatible
query I rowsort label-6842
SELECT ALL - 79 + + + 88 * + COUNT ( * ) AS col1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-6843
SELECT + 80 + - + ( + - COUNT( * ) ) AS col2
----
81

skipif mysql # not compatible
query I rowsort label-6843
SELECT + 80 + - + ( + - COUNT ( * ) ) AS col2
----
81

query I rowsort
SELECT ALL + 30 + + 95 AS col1
----
125

query I rowsort
SELECT + - 80 * - 90 + + 65 + - 32
----
7233

query II rowsort
SELECT ALL - 34 AS col0, - 26
----
-34
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-6847
SELECT + MAX( - - 51 ) AS col0
----
51

skipif mysql # not compatible
query I rowsort label-6847
SELECT + MAX ( - - 51 ) AS col0
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6848
SELECT - CASE + 40 WHEN - + 67 - NULLIF ( - + CAST( - + 67 AS SIGNED ), - + 30 ) + 76 + - 5 * + 68 THEN - - 48 END + + 6 * + 28
----
NULL

skipif mysql # not compatible
query I rowsort label-6848
SELECT - CASE + 40 WHEN - + 67 - NULLIF ( - + CAST ( - + 67 AS INTEGER ), - + 30 ) + 76 + - 5 * + 68 THEN - - 48 END + + 6 * + 28
----
NULL

query II rowsort
SELECT ALL - - 13 AS col0, + 69 + + 86 + ( ( 2 ) ) AS col2
----
13
157

query I rowsort
SELECT + 53 - + 17
----
36

query I rowsort
SELECT - ( 72 ) AS col0
----
-72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6852
SELECT ALL - + NULLIF ( - 90, + COUNT( * ) * ( - 46 ) * + - CAST( - AVG ( DISTINCT 60 ) AS SIGNED ) * - 28 * + 7 + 24 * + 98 )
----
90

skipif mysql # not compatible
query I rowsort label-6852
SELECT ALL - + NULLIF ( - 90, + COUNT ( * ) * ( - 46 ) * + - CAST ( - AVG ( DISTINCT 60 ) AS INTEGER ) * - 28 * + 7 + 24 * + 98 )
----
90

query I rowsort
SELECT 93 * 26 * 37 AS col1
----
89466

query I rowsort
SELECT DISTINCT - 57 / + NULLIF ( CASE - - ( 57 ) WHEN 41 * + - 47 THEN - NULLIF ( - + 35, + CASE 25 WHEN + 76 * - + 51 THEN NULL ELSE - + 90 END ) * 76 + - 67 * 12 END, 17 + 57 ) col2
----
NULL

query I rowsort
SELECT DISTINCT - COALESCE ( - + 60, + - 26 ) * - + 37
----
-2220

onlyif mysql # aggregate syntax: 
query II rowsort label-6856
SELECT ALL SUM( - + 23 ) col2, 67
----
-23
67

skipif mysql # not compatible
query II rowsort label-6856
SELECT ALL SUM ( - + 23 ) col2, 67
----
-23
67

onlyif mysql # DIV for integer division: 
query I rowsort label-6857
SELECT 15 DIV + 32 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6857
SELECT 15 / + 32 AS col0
----
0

query I rowsort
SELECT 86 + + 59
----
145

query I rowsort
SELECT 22 * + 99 AS col2
----
2178

onlyif mysql # DIV for integer division: 
query I rowsort label-6860
SELECT 5 DIV + 12 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6860
SELECT 5 / + 12 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6861
SELECT 41 DIV - 1 AS col1
----
-41

skipif mysql # not compatible
query I rowsort label-6861
SELECT 41 / - 1 AS col1
----
-41

onlyif mysql # DIV for integer division: 
query I rowsort label-6862
SELECT 12 + + 70 DIV - 85 AS col2
----
12

skipif mysql # not compatible
query I rowsort label-6862
SELECT 12 + + 70 / - 85 AS col2
----
12

onlyif mysql # aggregate syntax: 
query II rowsort label-6863
SELECT COUNT( * ) + NULLIF ( 99, + 3 ) AS col2, - 87 * + 76 col2
----
100
-6612

skipif mysql # not compatible
query II rowsort label-6863
SELECT COUNT ( * ) + NULLIF ( 99, + 3 ) AS col2, - 87 * + 76 col2
----
100
-6612

onlyif mysql # aggregate syntax: 
query I rowsort label-6864
SELECT ALL + MIN( ALL - 77 ) + - 58 AS col0
----
-135

skipif mysql # not compatible
query I rowsort label-6864
SELECT ALL + MIN ( ALL - 77 ) + - 58 AS col0
----
-135

onlyif mysql # aggregate syntax: 
query I rowsort label-6865
SELECT 31 + COUNT( * ) AS col0
----
32

skipif mysql # not compatible
query I rowsort label-6865
SELECT 31 + COUNT ( * ) AS col0
----
32

query I rowsort
SELECT 11 * 27 AS col2
----
297

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6867
SELECT - MIN( ALL - - ( + + CAST( NULL AS SIGNED ) ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6867
SELECT - MIN ( ALL - - ( + + CAST ( NULL AS INTEGER ) ) ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT - NULLIF ( 83, - 52 * 75 + 99 ) + + + 1 AS col2
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-6869
SELECT + + 14 + - 15 + + COUNT( * ) * - - 9
----
8

skipif mysql # not compatible
query I rowsort label-6869
SELECT + + 14 + - 15 + + COUNT ( * ) * - - 9
----
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6870
SELECT - 60 * - 70 col1, - 5 * - + 18 - - CASE - 60 WHEN CAST( NULL AS SIGNED ) THEN COUNT( * ) END AS col0
----
4200
NULL

skipif mysql # not compatible
query II rowsort label-6870
SELECT - 60 * - 70 col1, - 5 * - + 18 - - CASE - 60 WHEN CAST ( NULL AS INTEGER ) THEN COUNT ( * ) END AS col0
----
4200
NULL

query I rowsort
SELECT DISTINCT 99 * - - 87 * + + 80 col2
----
689040

query I rowsort
SELECT ALL + - 17 col1
----
-17

query I rowsort
SELECT + 87 + - 49 AS col2
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-6874
SELECT ALL + - COUNT( * ) * 18 * COUNT( * ) - 90 + - 82 col1
----
-190

skipif mysql # not compatible
query I rowsort label-6874
SELECT ALL + - COUNT ( * ) * 18 * COUNT ( * ) - 90 + - 82 col1
----
-190

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6875
SELECT ALL + CAST( - 51 AS SIGNED )
----
-51

skipif mysql # not compatible
query I rowsort label-6875
SELECT ALL + CAST ( - 51 AS INTEGER )
----
-51

onlyif mysql # DIV for integer division: 
query I rowsort label-6876
SELECT - - 93 DIV + - 84
----
-1

skipif mysql # not compatible
query I rowsort label-6876
SELECT - - 93 / + - 84
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-6877
SELECT + - 87 DIV - 95 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6877
SELECT + - 87 / - 95 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6878
SELECT + NULLIF ( + ( 58 ), - 88 ) * + - 76 + NULLIF ( 73, + 40 * + COUNT( * ) ) + - - 47
----
-4288

skipif mysql # not compatible
query I rowsort label-6878
SELECT + NULLIF ( + ( 58 ), - 88 ) * + - 76 + NULLIF ( 73, + 40 * + COUNT ( * ) ) + - - 47
----
-4288

query I rowsort
SELECT DISTINCT + - COALESCE ( ( + + 41 ), NULLIF ( + 96, + + 53 ) )
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-6880
SELECT + - COUNT( * ) + - 56 - - 83 + - - 35 * 99 * + ( + - 52 ) AS col0
----
-180154

skipif mysql # not compatible
query I rowsort label-6880
SELECT + - COUNT ( * ) + - 56 - - 83 + - - 35 * 99 * + ( + - 52 ) AS col0
----
-180154

onlyif mysql # aggregate syntax: 
query I rowsort label-6881
SELECT - 59 * - MIN( - 32 ) * 44 AS col1
----
-83072

skipif mysql # not compatible
query I rowsort label-6881
SELECT - 59 * - MIN ( - 32 ) * 44 AS col1
----
-83072

onlyif mysql # DIV for integer division: 
query I rowsort label-6882
SELECT DISTINCT - 4 DIV 45 * + 78
----
0

skipif mysql # not compatible
query I rowsort label-6882
SELECT DISTINCT - 4 / 45 * + 78
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6883
SELECT + 54 * - CAST( NULL AS SIGNED ) + + 20 * + 27 * COUNT( * ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6883
SELECT + 54 * - CAST ( NULL AS INTEGER ) + + 20 * + 27 * COUNT ( * ) col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6884
SELECT DISTINCT - - 38 * 88 DIV + ( - + 51 )
----
-65

skipif mysql # not compatible
query I rowsort label-6884
SELECT DISTINCT - - 38 * 88 / + ( - + 51 )
----
-65

query I rowsort
SELECT + CASE WHEN NOT ( 30 ) >= NULL THEN NULL ELSE 2 END * + 48 + + + 83 * 97 + 12
----
8159

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6886
SELECT ALL - 53 * - + COUNT( * ) DIV 81 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6886
SELECT ALL - 53 * - + COUNT ( * ) / 81 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6887
SELECT DISTINCT + COUNT( ALL 8 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6887
SELECT DISTINCT + COUNT ( ALL 8 ) AS col0
----
1

query I rowsort
SELECT + 64 * - + 19 - - 20 AS col0
----
-1196

onlyif mysql # aggregate syntax: 
query I rowsort label-6889
SELECT - CASE 71 WHEN - SUM( - 59 ) * 73 * - 80 + - - 27 + 17 THEN NULL WHEN - 7 THEN 3 WHEN 40 THEN + COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-6889
SELECT - CASE 71 WHEN - SUM ( - 59 ) * 73 * - 80 + - - 27 + 17 THEN NULL WHEN - 7 THEN 3 WHEN 40 THEN + COUNT ( * ) END
----
NULL

query I rowsort
SELECT - 24 + 79
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-6891
SELECT DISTINCT MIN( + 14 )
----
14

skipif mysql # not compatible
query I rowsort label-6891
SELECT DISTINCT MIN ( + 14 )
----
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6892
SELECT + 94 * CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6892
SELECT + 94 * CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT - 0 + + 84
----
84

onlyif mysql # aggregate syntax: 
query II rowsort label-6894
SELECT COUNT( * ) AS col0, 6 * + + ( - 4 ) * - 8 - + 40 AS col1
----
1
152

skipif mysql # not compatible
query II rowsort label-6894
SELECT COUNT ( * ) AS col0, 6 * + + ( - 4 ) * - 8 - + 40 AS col1
----
1
152

query I rowsort
SELECT - 64 * + - 95 AS col2
----
6080

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6896
SELECT - 23 - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6896
SELECT - 23 - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6897
SELECT ALL SUM( - 26 )
----
-26

skipif mysql # not compatible
query I rowsort label-6897
SELECT ALL SUM ( - 26 )
----
-26

query I rowsort
SELECT ALL - 91 * + 36 AS col0
----
-3276

query I rowsort
SELECT ALL - 18 + - + 68 AS col2
----
-86

onlyif mysql # DIV for integer division: 
query I rowsort label-6900
SELECT + 28 DIV + + 26 col2
----
1

skipif mysql # not compatible
query I rowsort label-6900
SELECT + 28 / + + 26 col2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6901
SELECT - 34 * ( + CAST( 57 AS SIGNED ) ) * 70 * - 52 AS col2
----
7054320

skipif mysql # not compatible
query I rowsort label-6901
SELECT - 34 * ( + CAST ( 57 AS INTEGER ) ) * 70 * - 52 AS col2
----
7054320

onlyif mysql # aggregate syntax: 
query I rowsort label-6902
SELECT - 44 * 77 - - + 41 + - 37 * + COUNT( * ) + + 56 AS col0
----
-3328

skipif mysql # not compatible
query I rowsort label-6902
SELECT - 44 * 77 - - + 41 + - 37 * + COUNT ( * ) + + 56 AS col0
----
-3328

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6903
SELECT COALESCE ( - COUNT( * ), + 0 DIV 5 ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-6903
SELECT COALESCE ( - COUNT ( * ), + 0 / 5 ) col0
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-6904
SELECT + 87 AS col0, 4 + - COUNT( * ) * - + COUNT( * )
----
87
5

skipif mysql # not compatible
query II rowsort label-6904
SELECT + 87 AS col0, 4 + - COUNT ( * ) * - + COUNT ( * )
----
87
5

query I rowsort
SELECT ALL - 52 * - 87 col2
----
4524

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6906
SELECT DISTINCT - - 65 - - - COALESCE ( CAST( + - 44 AS SIGNED ), - 79, - 92 - - COALESCE ( + 45, COUNT( DISTINCT + 39 ) ) ) + 47 + + CASE - 16 WHEN + 22 * CAST( NULL AS DECIMAL ) * SUM( ALL 47 ) THEN 99 / - 51 ELSE CAST( NULL AS DECIMAL ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6906
SELECT DISTINCT - - 65 - - - COALESCE ( CAST ( + - 44 AS INTEGER ), - 79, - 92 - - COALESCE ( + 45, COUNT ( DISTINCT + 39 ) ) ) + 47 + + CASE - 16 WHEN + 22 * CAST ( NULL AS REAL ) * SUM ( ALL 47 ) THEN 99 / - 51 ELSE CAST ( NULL AS REAL ) END AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6907
SELECT ALL - ( - COALESCE ( COUNT( * ), + - 69 * + ( + + 1 ) + - 1 + + 5 * + 48 DIV - + COUNT( * ), + - ( - COUNT( * ) ) ) ) col0
----
1

skipif mysql # not compatible
query I rowsort label-6907
SELECT ALL - ( - COALESCE ( COUNT ( * ), + - 69 * + ( + + 1 ) + - 1 + + 5 * + 48 / - + COUNT ( * ), + - ( - COUNT ( * ) ) ) ) col0
----
1

query I rowsort
SELECT - - 91 * - 6
----
-546

query I rowsort
SELECT DISTINCT + - ( + + 85 )
----
-85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6910
SELECT - CASE - - 63 WHEN - 74 THEN 30 * - 63 + 5 + + 13 / - ( 98 ) * - - ( - ( - ( - COUNT( 12 ) ) ) ) * - 84 * + COUNT( * ) - ( - COUNT( * ) ) WHEN + COALESCE ( 67, NULLIF ( + 25, SUM( DISTINCT 7 ) ), 40 * AVG ( ALL 14 ) ) / 16 THEN 87 * + 51 WHEN COUNT( * ) - + ( ( - 33 ) ) THEN NULL ELSE NULL END * ( + 9 + + CAST( + 74 AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6910
SELECT - CASE - - 63 WHEN - 74 THEN 30 * - 63 + 5 + + 13 / - ( 98 ) * - - ( - ( - ( - COUNT ( 12 ) ) ) ) * - 84 * + COUNT ( * ) - ( - COUNT ( * ) ) WHEN + COALESCE ( 67, NULLIF ( + 25, SUM ( DISTINCT 7 ) ), 40 * AVG ( ALL 14 ) ) / 16 THEN 87 * + 51 WHEN COUNT ( * ) - + ( ( - 33 ) ) THEN NULL ELSE NULL END * ( + 9 + + CAST ( + 74 AS INTEGER ) )
----
NULL

query I rowsort
SELECT ALL 18 * - + 57
----
-1026

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6912
SELECT ALL - - COALESCE ( + COUNT( * ), + 48 ) * + ( ( - - 3 ) ) + - 87 + - 84 + - 21 + + 80 DIV + 12 AS col1
----
-183

skipif mysql # not compatible
query I rowsort label-6912
SELECT ALL - - COALESCE ( + COUNT ( * ), + 48 ) * + ( ( - - 3 ) ) + - 87 + - 84 + - 21 + + 80 / + 12 AS col1
----
-183

query I rowsort
SELECT + 52 * CASE 1 WHEN - 85 * + 73 * + 40 THEN - 1 / 87 + 8 - + 28 WHEN ( + 48 ) + - 87 + 51 + + + 79 THEN 23 END + 94 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6914
SELECT DISTINCT + 13 * + MAX( + 12 ) * 58 + - 3 * 41 AS col0
----
8925

skipif mysql # not compatible
query I rowsort label-6914
SELECT DISTINCT + 13 * + MAX ( + 12 ) * 58 + - 3 * 41 AS col0
----
8925

onlyif mysql # DIV for integer division: 
query I rowsort label-6915
SELECT + - 15 DIV 32 * + 97 + - 61 - + 67 + - 37
----
-165

skipif mysql # not compatible
query I rowsort label-6915
SELECT + - 15 / 32 * + 97 + - 61 - + 67 + - 37
----
-165

onlyif mysql # aggregate syntax: 
query I rowsort label-6916
SELECT - 1 + - - CASE 71 WHEN + 79 * + 78 THEN 28 / - SUM( 80 ) + - + 67 + - 59 END * + NULLIF ( ( - + 1 ), + + 21 ) * - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-6916
SELECT - 1 + - - CASE 71 WHEN + 79 * + 78 THEN 28 / - SUM ( 80 ) + - + 67 + - 59 END * + NULLIF ( ( - + 1 ), + + 21 ) * - COUNT ( * )
----
NULL

query I rowsort
SELECT + 83 - NULLIF ( + + 97, + 98 ) + 61 AS col1
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-6918
SELECT 95 * - 93 * - 91 * + COUNT( * ) + 6 AS col0
----
803991

skipif mysql # not compatible
query I rowsort label-6918
SELECT 95 * - 93 * - 91 * + COUNT ( * ) + 6 AS col0
----
803991

query I rowsort
SELECT + ( - + 15 )
----
-15

onlyif mysql # DIV for integer division: 
query I rowsort label-6920
SELECT + 64 DIV + 58 col2
----
1

skipif mysql # not compatible
query I rowsort label-6920
SELECT + 64 / + 58 col2
----
1

query I rowsort
SELECT ALL 35 * ( 15 ) AS col0
----
525

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6922
SELECT ALL - 20 * - 8 + 11 + - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6922
SELECT ALL - 20 * - 8 + 11 + - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6923
SELECT CAST( NULL AS SIGNED ) - + COALESCE ( - + 70, 49 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6923
SELECT CAST ( NULL AS INTEGER ) - + COALESCE ( - + 70, 49 )
----
NULL

query I rowsort
SELECT 21 + - 2 AS col2
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-6925
SELECT 56 * - SUM( 59 )
----
-3304

skipif mysql # not compatible
query I rowsort label-6925
SELECT 56 * - SUM ( 59 )
----
-3304

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6926
SELECT CAST( NULL AS SIGNED ) + - ( - 43 ) + 46 / + - 84
----
NULL

skipif mysql # not compatible
query I rowsort label-6926
SELECT CAST ( NULL AS INTEGER ) + - ( - 43 ) + 46 / + - 84
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6927
SELECT CAST( NULL AS SIGNED ) + - 75
----
NULL

skipif mysql # not compatible
query I rowsort label-6927
SELECT CAST ( NULL AS INTEGER ) + - 75
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6928
SELECT - 49 AS col1, SUM( + 0 ) + 78 - - + 30 * 65 + + CAST( - 62 AS SIGNED ) + + + ( COUNT( * ) ) + - 77 AS col1
----
-49
1890

skipif mysql # not compatible
query II rowsort label-6928
SELECT - 49 AS col1, SUM ( + 0 ) + 78 - - + 30 * 65 + + CAST ( - 62 AS INTEGER ) + + + ( COUNT ( * ) ) + - 77 AS col1
----
-49
1890

query I rowsort
SELECT ALL - ( + 5 )
----
-5

query I rowsort
SELECT + 56 + ( + 27 ) AS col1
----
83

query II rowsort
SELECT ALL - 84 AS col0, + 96 AS col2
----
-84
96

query II rowsort
SELECT ALL + + 1 * + + 4 AS col2, + 43
----
4
43

onlyif mysql # aggregate syntax: 
query I rowsort label-6933
SELECT ( - - 71 ) + - - ( - SUM( + + 11 ) )
----
60

skipif mysql # not compatible
query I rowsort label-6933
SELECT ( - - 71 ) + - - ( - SUM ( + + 11 ) )
----
60

query II rowsort
SELECT ALL 77 AS col2, - 93 * - 19 * - - 33 + + 82 AS col0
----
77
58393

query II rowsort
SELECT ALL 61 AS col2, 91 AS col1
----
61
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6936
SELECT 22 * + CAST( NULL AS SIGNED ) * + 5
----
NULL

skipif mysql # not compatible
query I rowsort label-6936
SELECT 22 * + CAST ( NULL AS INTEGER ) * + 5
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6937
SELECT 53 DIV - 59 * - + MAX( + + 57 ) + + 1 DIV + - 50 - 44 AS col2
----
-44

skipif mysql # not compatible
query I rowsort label-6937
SELECT 53 / - 59 * - + MAX ( + + 57 ) + + 1 / + - 50 - 44 AS col2
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-6938
SELECT + COUNT( DISTINCT + 59 )
----
1

skipif mysql # not compatible
query I rowsort label-6938
SELECT + COUNT ( DISTINCT + 59 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6939
SELECT ALL - COUNT( * ) * - 28 * + + 1 * - NULLIF ( + + MIN( - 30 ), - 9 * 35 + ( - + 82 ) + + 92 ) * - - 69
----
57960

skipif mysql # not compatible
query I rowsort label-6939
SELECT ALL - COUNT ( * ) * - 28 * + + 1 * - NULLIF ( + + MIN ( - 30 ), - 9 * 35 + ( - + 82 ) + + 92 ) * - - 69
----
57960

query I rowsort
SELECT ALL - - 29 * + 70 AS col1
----
2030

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6941
SELECT ALL - - CAST( NULL AS SIGNED ) AS col2, 8 * + 79
----
NULL
632

skipif mysql # not compatible
query II rowsort label-6941
SELECT ALL - - CAST ( NULL AS INTEGER ) AS col2, 8 * + 79
----
NULL
632

query I rowsort
SELECT + ( + 21 ) * + 25 * - 87 AS col2
----
-45675

onlyif mysql # aggregate syntax: 
query I rowsort label-6943
SELECT DISTINCT + COUNT( * ) + + 27 + - + 18 * 47 * - 52 * - 42 * + ( + + MAX( ALL + 90 ) )
----
-166289732

skipif mysql # not compatible
query I rowsort label-6943
SELECT DISTINCT + COUNT ( * ) + + 27 + - + 18 * 47 * - 52 * - 42 * + ( + + MAX ( ALL + 90 ) )
----
-166289732

onlyif mysql # aggregate syntax: 
query I rowsort label-6944
SELECT DISTINCT + COUNT( * ) * - 80
----
-80

skipif mysql # not compatible
query I rowsort label-6944
SELECT DISTINCT + COUNT ( * ) * - 80
----
-80

query I rowsort
SELECT 99 * + 11 * 78
----
84942

onlyif mysql # aggregate syntax: 
query II rowsort label-6946
SELECT COUNT( * ) * + COUNT( * ) AS col1, 12
----
1
12

skipif mysql # not compatible
query II rowsort label-6946
SELECT COUNT ( * ) * + COUNT ( * ) AS col1, 12
----
1
12

onlyif mysql # aggregate syntax: 
query I rowsort label-6947
SELECT DISTINCT NULLIF ( + - ( + 65 ), - COALESCE ( + 20, + ( - COUNT( * ) ), + + 85 ) ) * 35 * + 93 AS col2
----
-211575

skipif mysql # not compatible
query I rowsort label-6947
SELECT DISTINCT NULLIF ( + - ( + 65 ), - COALESCE ( + 20, + ( - COUNT ( * ) ), + + 85 ) ) * 35 * + 93 AS col2
----
-211575

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6948
SELECT DISTINCT - MAX( + 23 ) + + 6 * 86 DIV - 81
----
-29

skipif mysql # not compatible
query I rowsort label-6948
SELECT DISTINCT - MAX ( + 23 ) + + 6 * 86 / - 81
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-6949
SELECT ALL + COUNT( * ) * 49 * - 73 AS col2
----
-3577

skipif mysql # not compatible
query I rowsort label-6949
SELECT ALL + COUNT ( * ) * 49 * - 73 AS col2
----
-3577

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6950
SELECT - COALESCE ( + - 0, - + NULLIF ( + COALESCE ( 34, + COUNT( * ) * - NULLIF ( 69, - 33 ) + CAST( NULL AS SIGNED ) * - 8, 47 * + COALESCE ( - - 70, 15, CASE + ( - ( SUM( + 67 ) ) ) WHEN - 55 * 5 + - CAST( 54 AS SIGNED ) THEN 98 * 52 + + 9 * NULLIF ( COALESCE ( - COUNT( * ), + 19 DIV - 62, - 88 ) * + 14, - ( - 55 ) ) ELSE - MIN( ALL 77 ) * - NULLIF ( 58 + 26, ( 37 ) ) END + 45 ) + + 54, + 19 + 16 ), + COUNT( * ) - - CAST( NULL AS SIGNED ) ) ) * COALESCE ( 86, + 41, 73 ) + 8 * 25
----
200

skipif mysql # not compatible
query I rowsort label-6950
SELECT - COALESCE ( + - 0, - + NULLIF ( + COALESCE ( 34, + COUNT ( * ) * - NULLIF ( 69, - 33 ) + CAST ( NULL AS INTEGER ) * - 8, 47 * + COALESCE ( - - 70, 15, CASE + ( - ( SUM ( + 67 ) ) ) WHEN - 55 * 5 + - CAST ( 54 AS INTEGER ) THEN 98 * 52 + + 9 * NULLIF ( COALESCE ( - COUNT ( * ), + 19 / - 62, - 88 ) * + 14, - ( - 55 ) ) ELSE - MIN ( ALL 77 ) * - NULLIF ( 58 + 26, ( 37 ) ) END + 45 ) + + 54, + 19 + 16 ), + COUNT ( * ) - - CAST ( NULL AS INTEGER ) ) ) * COALESCE ( 86, + 41, 73 ) + 8 * 25
----
200

onlyif mysql # aggregate syntax: 
query I rowsort label-6951
SELECT ( 55 ) + + COUNT( * ) * + 30
----
85

skipif mysql # not compatible
query I rowsort label-6951
SELECT ( 55 ) + + COUNT ( * ) * + 30
----
85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6952
SELECT COALESCE ( + 90, - COALESCE ( + - 27, CASE + ( + 72 ) WHEN + 47 THEN - - 71 ELSE NULL END + - - 7 * - 32 - + NULLIF ( - 92, - CAST( NULL AS SIGNED ) ) * + + COUNT( * ) * 78, 4 * + 20 ) - + 91, + 90 * + 33, - 46 + 55 ) * - 79 AS col0
----
-7110

skipif mysql # not compatible
query I rowsort label-6952
SELECT COALESCE ( + 90, - COALESCE ( + - 27, CASE + ( + 72 ) WHEN + 47 THEN - - 71 ELSE NULL END + - - 7 * - 32 - + NULLIF ( - 92, - CAST ( NULL AS INTEGER ) ) * + + COUNT ( * ) * 78, 4 * + 20 ) - + 91, + 90 * + 33, - 46 + 55 ) * - 79 AS col0
----
-7110

query I rowsort
SELECT DISTINCT 28 - 44 + 76
----
60

onlyif mysql # aggregate syntax: 
query II rowsort label-6954
SELECT COUNT( * ) * COUNT( * ), - 31 + + + ( + 7 ) AS col1
----
1
-24

skipif mysql # not compatible
query II rowsort label-6954
SELECT COUNT ( * ) * COUNT ( * ), - 31 + + + ( + 7 ) AS col1
----
1
-24

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6955
SELECT DISTINCT - CAST( NULL AS DECIMAL ) * 80 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6955
SELECT DISTINCT - CAST ( NULL AS REAL ) * 80 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6956
SELECT DISTINCT - CASE + COALESCE ( 88, + ( + - 53 ) / - - 49 + 83 * - 40 + - NULLIF ( + 92, - + CASE - 99 WHEN - + 96 THEN CAST( - 15 AS SIGNED ) / 26 + + 41 END ) * - 17, + SUM( ALL + 99 ) ) WHEN - 65 + - 5 * 61 THEN 11 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6956
SELECT DISTINCT - CASE + COALESCE ( 88, + ( + - 53 ) / - - 49 + 83 * - 40 + - NULLIF ( + 92, - + CASE - 99 WHEN - + 96 THEN CAST ( - 15 AS INTEGER ) / 26 + + 41 END ) * - 17, + SUM ( ALL + 99 ) ) WHEN - 65 + - 5 * 61 THEN 11 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6957
SELECT DISTINCT - 69 * COUNT( ALL + 86 ) AS col1
----
-69

skipif mysql # not compatible
query I rowsort label-6957
SELECT DISTINCT - 69 * COUNT ( ALL + 86 ) AS col1
----
-69

query I rowsort
SELECT ( - - 75 ) * - 39 + - 99 + 29 + + 42 * - 13
----
-3541

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6959
SELECT - COALESCE ( - - 36, - CAST( - 2 AS SIGNED ) + + 70 * + + COUNT( * ), - 49 + 50 ) AS col0
----
-36

skipif mysql # not compatible
query I rowsort label-6959
SELECT - COALESCE ( - - 36, - CAST ( - 2 AS INTEGER ) + + 70 * + + COUNT ( * ), - 49 + 50 ) AS col0
----
-36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6960
SELECT ALL + 50 + + - 41 + - ( + 47 ) * - + CAST( NULL AS SIGNED ) * COUNT( - - CASE - CASE - 26 WHEN NULLIF ( - ( + 24 ), NULLIF ( + - CASE 71 WHEN - 4 THEN - 31 + - 87 ELSE NULL END, 47 * + 97 ) ) * 27 THEN 26 + - 30 / 95 END WHEN 33 THEN NULL ELSE + 5 END ) - + 73
----
NULL

skipif mysql # not compatible
query I rowsort label-6960
SELECT ALL + 50 + + - 41 + - ( + 47 ) * - + CAST ( NULL AS INTEGER ) * COUNT ( - - CASE - CASE - 26 WHEN NULLIF ( - ( + 24 ), NULLIF ( + - CASE 71 WHEN - 4 THEN - 31 + - 87 ELSE NULL END, 47 * + 97 ) ) * 27 THEN 26 + - 30 / 95 END WHEN 33 THEN NULL ELSE + 5 END ) - + 73
----
NULL

query I rowsort
SELECT - 56 - - 93
----
37

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6962
SELECT ALL COALESCE ( + 57, 10 DIV + - NULLIF ( + 27, + SUM( DISTINCT - - 63 ) DIV + - 86 * - CASE - - COUNT( * ) WHEN 97 * - 26 - - 87 + + 56 * 12 THEN COUNT( * ) + 25 * 27 ELSE NULL END + 38 ) * 28 + 54 * + MAX( + 93 ) + ( - 83 + 73 ) * 91, - 71 ) AS col2
----
57

skipif mysql # not compatible
query I rowsort label-6962
SELECT ALL COALESCE ( + 57, 10 / + - NULLIF ( + 27, + SUM ( DISTINCT - - 63 ) / + - 86 * - CASE - - COUNT ( * ) WHEN 97 * - 26 - - 87 + + 56 * 12 THEN COUNT ( * ) + 25 * 27 ELSE NULL END + 38 ) * 28 + 54 * + MAX ( + 93 ) + ( - 83 + 73 ) * 91, - 71 ) AS col2
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-6963
SELECT DISTINCT - COUNT( * ) + 33
----
32

skipif mysql # not compatible
query I rowsort label-6963
SELECT DISTINCT - COUNT ( * ) + 33
----
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6964
SELECT ALL - + 93 + + + 50 * CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6964
SELECT ALL - + 93 + + + 50 * CAST ( NULL AS INTEGER ) col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6965
SELECT + 81 * 39 + + 3 + + 28 + 5 + - 55 * + 46 * 8 + - 25 + - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6965
SELECT + 81 * 39 + + 3 + + 28 + 5 + - 55 * + 46 * 8 + - 25 + - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6966
SELECT + COALESCE ( + ( + + 90 ), 63 ) * + + 15 DIV - COUNT( * )
----
-1350

skipif mysql # not compatible
query I rowsort label-6966
SELECT + COALESCE ( + ( + + 90 ), 63 ) * + + 15 / - COUNT ( * )
----
-1350

onlyif mysql # aggregate syntax: 
query I rowsort label-6967
SELECT ALL + 93 * + - CASE - 80 WHEN 48 THEN NULL WHEN - - 35 THEN NULLIF ( + 99, - 83 ) END * - ( - + NULLIF ( - 48, 56 ) ) * SUM( ALL + ( - 47 ) ) + + 84 + CASE + 51 WHEN 81 THEN + 24 * 76 WHEN 65 THEN NULL ELSE 8 + + 47 * COUNT( * ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6967
SELECT ALL + 93 * + - CASE - 80 WHEN 48 THEN NULL WHEN - - 35 THEN NULLIF ( + 99, - 83 ) END * - ( - + NULLIF ( - 48, 56 ) ) * SUM ( ALL + ( - 47 ) ) + + 84 + CASE + 51 WHEN 81 THEN + 24 * 76 WHEN 65 THEN NULL ELSE 8 + + 47 * COUNT ( * ) END AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6968
SELECT COALESCE ( - + 55, + SUM( DISTINCT - - 73 ), - - COUNT( * ) * - 32 - 86 + - 89 ) DIV - - 16 + + 10 DIV - 75 AS col1
----
-3

skipif mysql # not compatible
query I rowsort label-6968
SELECT COALESCE ( - + 55, + SUM ( DISTINCT - - 73 ), - - COUNT ( * ) * - 32 - 86 + - 89 ) / - - 16 + + 10 / - 75 AS col1
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-6969
SELECT 23 * - ( + - 65 ) * - 57 * - + 94 + + 91 - + 65 DIV - 43 AS col0
----
8010302

skipif mysql # not compatible
query I rowsort label-6969
SELECT 23 * - ( + - 65 ) * - 57 * - + 94 + + 91 - + 65 / - 43 AS col0
----
8010302

query I rowsort
SELECT + 63 + - + 52
----
11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6971
SELECT 35 DIV - COUNT( * ) AS col0
----
-35

skipif mysql # not compatible
query I rowsort label-6971
SELECT 35 / - COUNT ( * ) AS col0
----
-35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6972
SELECT ALL + CAST( 46 AS SIGNED ) * - - COUNT( * ) * 59 + - COALESCE ( + + 21, + 9 * + 68 ) + - - ( - CAST( + 50 AS SIGNED ) ) * - + 84 DIV 1 * + SUM( ALL 84 ) + + 95 - - 5 * + 2 + CASE + 88 WHEN + COALESCE ( 37, COUNT( DISTINCT 58 ), COUNT( DISTINCT + 64 ) + 34 ) + 29 DIV - CAST( 7 + - 30 AS SIGNED ) THEN NULL ELSE + COALESCE ( 35, 48, 3 ) END + 22 * - 53 AS col0
----
354467

skipif mysql # not compatible
query I rowsort label-6972
SELECT ALL + CAST ( 46 AS INTEGER ) * - - COUNT ( * ) * 59 + - COALESCE ( + + 21, + 9 * + 68 ) + - - ( - CAST ( + 50 AS INTEGER ) ) * - + 84 / 1 * + SUM ( ALL 84 ) + + 95 - - 5 * + 2 + CASE + 88 WHEN + COALESCE ( 37, COUNT ( DISTINCT 58 ), COUNT ( DISTINCT + 64 ) + 34 ) + 29 / - CAST ( 7 + - 30 AS INTEGER ) THEN NULL ELSE + COALESCE ( 35, 48, 3 ) END + 22 * - 53 AS col0
----
354467

query II rowsort
SELECT 6 * + 91 * 89, 85 AS col2
----
48594
85

query I rowsort
SELECT ALL 77 * CASE + 4 WHEN - ( + + 38 ) THEN NULL WHEN 12 THEN 90 WHEN - 47 THEN 26 WHEN 35 THEN NULL END
----
NULL

query I rowsort
SELECT 15 + + 18 + + 57 * 89 * - 3
----
-15186

query I rowsort
SELECT DISTINCT + 81 * + + 13 * + + 96 * - - 3 - 98
----
303166

query I rowsort
SELECT DISTINCT - ( - - 19 ) AS col2
----
-19

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6978
SELECT - 14 DIV - 2 + + MAX( - 89 ) + + ( - 52 ) + + 92 * + 8 * - 98 AS col2
----
-72262

skipif mysql # not compatible
query I rowsort label-6978
SELECT - 14 / - 2 + + MAX ( - 89 ) + + ( - 52 ) + + 92 * + 8 * - 98 AS col2
----
-72262

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6979
SELECT ALL - 48 * + 27 - + + 99, + COUNT( * ) * 64 * + CAST( + COUNT( * ) AS SIGNED ) AS col1
----
-1395
64

skipif mysql # not compatible
query II rowsort label-6979
SELECT ALL - 48 * + 27 - + + 99, + COUNT ( * ) * 64 * + CAST ( + COUNT ( * ) AS INTEGER ) AS col1
----
-1395
64

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6980
SELECT DISTINCT + 73 col1, - CAST( NULL AS DECIMAL ) * + 45 AS col1
----
73
NULL

skipif mysql # not compatible
query II rowsort label-6980
SELECT DISTINCT + 73 col1, - CAST ( NULL AS REAL ) * + 45 AS col1
----
73
NULL

query I rowsort
SELECT DISTINCT + ( + 76 ) AS col0
----
76

query I rowsort
SELECT - CASE - 99 WHEN - 69 THEN + 50 + - + 48 * - 63 * - 89 / + 67 END + - + 44
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6983
SELECT - 82 * + CASE COUNT( * ) WHEN - AVG ( ALL - + 91 ) * - - 31 * - 31 THEN + + COUNT( * ) WHEN 87 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6983
SELECT - 82 * + CASE COUNT ( * ) WHEN - AVG ( ALL - + 91 ) * - - 31 * - 31 THEN + + COUNT ( * ) WHEN 87 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6984
SELECT COUNT( DISTINCT - 57 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-6984
SELECT COUNT ( DISTINCT - 57 ) col1
----
1

query I rowsort
SELECT ALL + 87 * + 28
----
2436

query I rowsort
SELECT ALL - 32 - - 33
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6987
SELECT - NULLIF ( 4, + 54 ) * - COUNT( * ) AS col1
----
4

skipif mysql # not compatible
query I rowsort label-6987
SELECT - NULLIF ( 4, + 54 ) * - COUNT ( * ) AS col1
----
4

query I rowsort
SELECT ALL 46 * - 16 * + 94
----
-69184

onlyif mysql # aggregate syntax: 
query I rowsort label-6989
SELECT ALL COALESCE ( - + 4, 85 * COUNT( * ), + 25 )
----
-4

skipif mysql # not compatible
query I rowsort label-6989
SELECT ALL COALESCE ( - + 4, 85 * COUNT ( * ), + 25 )
----
-4

query II rowsort
SELECT - 47 AS col1, 38
----
-47
38

onlyif mysql # aggregate syntax: 
query II rowsort label-6991
SELECT ALL 49, COALESCE ( + COUNT( * ), + 90 - + CASE 90 WHEN + - 18 THEN - 93 END ) + + + 17 AS col2
----
49
18

skipif mysql # not compatible
query II rowsort label-6991
SELECT ALL 49, COALESCE ( + COUNT ( * ), + 90 - + CASE 90 WHEN + - 18 THEN - 93 END ) + + + 17 AS col2
----
49
18

query I rowsort
SELECT - + 9 + 25 AS col2
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-6993
SELECT + + COUNT( * ) - + + 36 col0
----
-35

skipif mysql # not compatible
query I rowsort label-6993
SELECT + + COUNT ( * ) - + + 36 col0
----
-35

query I rowsort
SELECT - - 34 + 7 AS col1
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-6995
SELECT + - 29 - + - 49 + - COUNT( * ) + + + COUNT( * ) * - + 93
----
-74

skipif mysql # not compatible
query I rowsort label-6995
SELECT + - 29 - + - 49 + - COUNT ( * ) + + + COUNT ( * ) * - + 93
----
-74

onlyif mysql # DIV for integer division: 
query I rowsort label-6996
SELECT - + 59 DIV COALESCE ( - 29, - 84 * 98 )
----
2

skipif mysql # not compatible
query I rowsort label-6996
SELECT - + 59 / COALESCE ( - 29, - 84 * 98 )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-6997
SELECT + MIN( 6 ) * - COUNT( * ) + - 87 AS col0
----
-93

skipif mysql # not compatible
query I rowsort label-6997
SELECT + MIN ( 6 ) * - COUNT ( * ) + - 87 AS col0
----
-93

query I rowsort
SELECT ALL ( + + 92 ) + - - 46
----
138

onlyif mysql # aggregate syntax: 
query I rowsort label-6999
SELECT - COUNT( * ) + + ( - 82 ) AS col1
----
-83

skipif mysql # not compatible
query I rowsort label-6999
SELECT - COUNT ( * ) + + ( - 82 ) AS col1
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-7000
SELECT ALL + 79 + + - ( COUNT( * ) ) + + 60 AS col0
----
138

skipif mysql # not compatible
query I rowsort label-7000
SELECT ALL + 79 + + - ( COUNT ( * ) ) + + 60 AS col0
----
138

onlyif mysql # aggregate syntax: 
query I rowsort label-7001
SELECT DISTINCT + COUNT( ALL - 40 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7001
SELECT DISTINCT + COUNT ( ALL - 40 ) AS col0
----
1

query I rowsort
SELECT ALL ( + 92 ) + - 25 col0
----
67

query I rowsort
SELECT ALL - + 25 + + 8
----
-17

onlyif mysql # DIV for integer division: 
query II rowsort label-7004
SELECT DISTINCT 13 AS col1, ( + 3 ) + + - 5 DIV + 84
----
13
3

skipif mysql # not compatible
query II rowsort label-7004
SELECT DISTINCT 13 AS col1, ( + 3 ) + + - 5 / + 84
----
13
3

query I rowsort
SELECT + 67 + + 93 col0
----
160

query I rowsort
SELECT ALL + 7 + + + COALESCE ( - - 34, - 61, 97 + 79 * + - 46 ) AS col0
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-7007
SELECT SUM( - 11 ) AS col2
----
-11

skipif mysql # not compatible
query I rowsort label-7007
SELECT SUM ( - 11 ) AS col2
----
-11

query I rowsort
SELECT DISTINCT CASE + 43 WHEN - 22 * 44 THEN + ( - + 62 ) WHEN 89 * 88 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7009
SELECT - NULLIF ( - - ( - COUNT( * ) ), + ( + 15 ) * 6 + 33 + - 73 + - 92 + + 87 * - 70 ), 67 AS col1
----
1
67

skipif mysql # not compatible
query II rowsort label-7009
SELECT - NULLIF ( - - ( - COUNT ( * ) ), + ( + 15 ) * 6 + 33 + - 73 + - 92 + + 87 * - 70 ), 67 AS col1
----
1
67

onlyif mysql # aggregate syntax: 
query II rowsort label-7010
SELECT + + 58 * - ( + ( - MIN( 41 ) ) ) * - 54 + - ( - + 58 ) + COUNT( * ) * NULLIF ( + 13, + + COUNT( * ) ) * - 37 + + + 73 AS col0, 31 - - 9 AS col0
----
-128762
40

skipif mysql # not compatible
query II rowsort label-7010
SELECT + + 58 * - ( + ( - MIN ( 41 ) ) ) * - 54 + - ( - + 58 ) + COUNT ( * ) * NULLIF ( + 13, + + COUNT ( * ) ) * - 37 + + + 73 AS col0, 31 - - 9 AS col0
----
-128762
40

onlyif mysql # aggregate syntax: 
query I rowsort label-7011
SELECT + - 78 + COUNT( * ) + 99 + - COUNT( 59 ) * + 64
----
-42

skipif mysql # not compatible
query I rowsort label-7011
SELECT + - 78 + COUNT ( * ) + 99 + - COUNT ( 59 ) * + 64
----
-42

query I rowsort
SELECT ALL 87 + ( + - 84 ) * - 92
----
7815

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query III rowsort label-7013
SELECT DISTINCT CAST( - 6 AS SIGNED ) DIV + - COUNT( * ) - 32, - 7 AS col2, + 60 AS col1
----
-26
-7
60

skipif mysql # not compatible
query III rowsort label-7013
SELECT DISTINCT CAST ( - 6 AS INTEGER ) / + - COUNT ( * ) - 32, - 7 AS col2, + 60 AS col1
----
-26
-7
60

query I rowsort
SELECT ALL - 63 * - 97
----
6111

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7015
SELECT + ( - - COALESCE ( NULLIF ( - 18, - + 27 ), - MAX( COALESCE ( + + 42, CAST( - 8 AS SIGNED ), - 38 + + 8 + + + 50 + - 36 + - 73 + - + 64 * + 69 + 53 + - ( 84 ) DIV CASE + 50 WHEN - 7 THEN NULL WHEN 1 * - 37 THEN 92 END ) ) + 14 ) ) AS col1
----
-18

skipif mysql # not compatible
query I rowsort label-7015
SELECT + ( - - COALESCE ( NULLIF ( - 18, - + 27 ), - MAX ( COALESCE ( + + 42, CAST ( - 8 AS INTEGER ), - 38 + + 8 + + + 50 + - 36 + - 73 + - + 64 * + 69 + 53 + - ( 84 ) / CASE + 50 WHEN - 7 THEN NULL WHEN 1 * - 37 THEN 92 END ) ) + 14 ) ) AS col1
----
-18

query I rowsort
SELECT - 88 * - + 88
----
7744

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7017
SELECT ALL + 1 * + CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7017
SELECT ALL + 1 * + CAST ( NULL AS REAL ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7018
SELECT + CAST( - AVG ( ALL + 27 ) AS SIGNED ) AS col0
----
-27

skipif mysql # not compatible
query I rowsort label-7018
SELECT + CAST ( - AVG ( ALL + 27 ) AS INTEGER ) AS col0
----
-27

query II rowsort
SELECT DISTINCT 23 * - 16 AS col0, - 55 * + - 93 col0
----
-368
5115

onlyif mysql # aggregate syntax: 
query I rowsort label-7020
SELECT 1 * - COUNT( * ) - - 26
----
25

skipif mysql # not compatible
query I rowsort label-7020
SELECT 1 * - COUNT ( * ) - - 26
----
25

onlyif mysql # aggregate syntax: 
query II rowsort label-7021
SELECT SUM( ALL - 63 ) * 65 + + - 51 AS col2, - 68 + - 84 - - COUNT( * )
----
-4146
-151

skipif mysql # not compatible
query II rowsort label-7021
SELECT SUM ( ALL - 63 ) * 65 + + - 51 AS col2, - 68 + - 84 - - COUNT ( * )
----
-4146
-151

onlyif mysql # aggregate syntax: 
query I rowsort label-7022
SELECT DISTINCT MIN( DISTINCT - 15 ) * + 41
----
-615

skipif mysql # not compatible
query I rowsort label-7022
SELECT DISTINCT MIN ( DISTINCT - 15 ) * + 41
----
-615

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7023
SELECT ALL CAST( NULL AS SIGNED ) * + 71 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7023
SELECT ALL CAST ( NULL AS INTEGER ) * + 71 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7024
SELECT - ( - ( + 7 ) ) * NULLIF ( COUNT( * ), + + 18 )
----
7

skipif mysql # not compatible
query I rowsort label-7024
SELECT - ( - ( + 7 ) ) * NULLIF ( COUNT ( * ), + + 18 )
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-7025
SELECT - COUNT( * ) + - NULLIF ( - + 10, - - NULLIF ( 75, 8 + + COUNT( * ) ) + 2 )
----
9

skipif mysql # not compatible
query I rowsort label-7025
SELECT - COUNT ( * ) + - NULLIF ( - + 10, - - NULLIF ( 75, 8 + + COUNT ( * ) ) + 2 )
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7026
SELECT - 88 * + + NULLIF ( 38, - - 6 * + CAST( NULL AS SIGNED ) ) AS col1
----
-3344

skipif mysql # not compatible
query I rowsort label-7026
SELECT - 88 * + + NULLIF ( 38, - - 6 * + CAST ( NULL AS INTEGER ) ) AS col1
----
-3344

onlyif mysql # aggregate syntax: 
query I rowsort label-7027
SELECT - CASE COUNT( * ) WHEN - 51 + + - 8 THEN - 57 END + - 11 + + 34 * 93 * - 95 / 33 * - 80
----
NULL

skipif mysql # not compatible
query I rowsort label-7027
SELECT - CASE COUNT ( * ) WHEN - 51 + + - 8 THEN - 57 END + - 11 + + 34 * 93 * - 95 / 33 * - 80
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7028
SELECT - ( 36 ) * - 86 + - + 87 + 80 - - COUNT( * ) DIV + 23 + - 1 + 66 col0
----
3154

skipif mysql # not compatible
query I rowsort label-7028
SELECT - ( 36 ) * - 86 + - + 87 + 80 - - COUNT ( * ) / + 23 + - 1 + 66 col0
----
3154

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7029
SELECT DISTINCT + 11 * + CAST( 35 AS SIGNED ) * - 29 DIV - + COUNT( * ) + + 6 + + + 97 + COUNT( * ) col2
----
11269

skipif mysql # not compatible
query I rowsort label-7029
SELECT DISTINCT + 11 * + CAST ( 35 AS INTEGER ) * - 29 / - + COUNT ( * ) + + 6 + + + 97 + COUNT ( * ) col2
----
11269

query I rowsort
SELECT ALL - + 22 * 54 col0
----
-1188

onlyif mysql # DIV for integer division: 
query I rowsort label-7031
SELECT - + 48 DIV - NULLIF ( 13, 8 )
----
3

skipif mysql # not compatible
query I rowsort label-7031
SELECT - + 48 / - NULLIF ( 13, 8 )
----
3

query I rowsort
SELECT ALL - 37 + + + 30 AS col2
----
-7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7033
SELECT - 61 * CAST( - MIN( ALL + + CAST( 73 AS SIGNED ) ) AS SIGNED ) * - ( - 16 ) + - 30 AS col2
----
71218

skipif mysql # not compatible
query I rowsort label-7033
SELECT - 61 * CAST ( - MIN ( ALL + + CAST ( 73 AS INTEGER ) ) AS INTEGER ) * - ( - 16 ) + - 30 AS col2
----
71218

onlyif mysql # aggregate syntax: 
query I rowsort label-7034
SELECT DISTINCT - 26 * + - COUNT( * ) * - AVG ( + 70 ) + + ( CASE + 61 WHEN - - 60 * + - ( - + 32 ) THEN 54 * 2 + + CASE + COUNT( 26 ) WHEN 10 THEN 22 * 83 - + 32 + 79 ELSE NULL END + - 33 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-7034
SELECT DISTINCT - 26 * + - COUNT ( * ) * - AVG ( + 70 ) + + ( CASE + 61 WHEN - - 60 * + - ( - + 32 ) THEN 54 * 2 + + CASE + COUNT ( 26 ) WHEN 10 THEN 22 * 83 - + 32 + 79 ELSE NULL END + - 33 END )
----
NULL

query I rowsort
SELECT ALL + NULLIF ( - + 55, + 82 ) AS col1
----
-55

query I rowsort
SELECT DISTINCT + COALESCE ( + 76, 46 ) + 99 AS col0
----
175

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7037
SELECT ( + CAST( - 44 AS SIGNED ) ) AS col0
----
-44

skipif mysql # not compatible
query I rowsort label-7037
SELECT ( + CAST ( - 44 AS INTEGER ) ) AS col0
----
-44

query I rowsort
SELECT - 45 * + 29 * - CASE 11 WHEN 83 THEN + AVG ( + + 43 ) * + 40 + 40 + 32 * - ( 29 ) + - + 19 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7039
SELECT ALL + MAX( + 87 )
----
87

skipif mysql # not compatible
query I rowsort label-7039
SELECT ALL + MAX ( + 87 )
----
87

onlyif mysql # aggregate syntax: 
query II rowsort label-7040
SELECT - NULLIF ( - 99, 61 + - - MAX( ALL - 18 ) ) AS col1, 36 + 95
----
99
131

skipif mysql # not compatible
query II rowsort label-7040
SELECT - NULLIF ( - 99, 61 + - - MAX ( ALL - 18 ) ) AS col1, 36 + 95
----
99
131

onlyif mysql # aggregate syntax: 
query I rowsort label-7041
SELECT ALL - 31 - COUNT( - - 64 )
----
-32

skipif mysql # not compatible
query I rowsort label-7041
SELECT ALL - 31 - COUNT ( - - 64 )
----
-32

query I rowsort
SELECT ALL 12 - - 9
----
21

query I rowsort
SELECT ALL 83 * - 49
----
-4067

query I rowsort
SELECT 50 - 84
----
-34

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7045
SELECT - 6 DIV - 14 + COUNT( * ) + + 77 + + 63 + - COUNT( * ) AS col2, 16 AS col2
----
140
16

skipif mysql # not compatible
query II rowsort label-7045
SELECT - 6 / - 14 + COUNT ( * ) + + 77 + + 63 + - COUNT ( * ) AS col2, 16 AS col2
----
140
16

onlyif mysql # aggregate syntax: 
query I rowsort label-7046
SELECT + COALESCE ( + ( - + 52 ), - 31 + + - 31, 11 ) * + - 71 + + MIN( + CASE + - 91 WHEN + + 30 THEN - 54 END ) * 89 - + COUNT( * ) * - + 26
----
NULL

skipif mysql # not compatible
query I rowsort label-7046
SELECT + COALESCE ( + ( - + 52 ), - 31 + + - 31, 11 ) * + - 71 + + MIN ( + CASE + - 91 WHEN + + 30 THEN - 54 END ) * 89 - + COUNT ( * ) * - + 26
----
NULL

query I rowsort
SELECT 34 + + 44 AS col0
----
78

query I rowsort
SELECT 6 * + 71 * - 93 + + 38 + + 18 * + 12 AS col0
----
-39364

query I rowsort
SELECT ALL 34 + 15 + - 39 col0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-7050
SELECT ALL 10 + - 38 + - COUNT( * ) + - 10 + + 18 * + + 15 * - + 96 + - COUNT( + + 12 ) AS col1
----
-25960

skipif mysql # not compatible
query I rowsort label-7050
SELECT ALL 10 + - 38 + - COUNT ( * ) + - 10 + + 18 * + + 15 * - + 96 + - COUNT ( + + 12 ) AS col1
----
-25960

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7051
SELECT NULLIF ( - COUNT( * ), - - 7 * - 47 ) + + CAST( NULL AS SIGNED ) * - 28 / + SUM( + 44 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7051
SELECT NULLIF ( - COUNT ( * ), - - 7 * - 47 ) + + CAST ( NULL AS INTEGER ) * - 28 / + SUM ( + 44 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7052
SELECT COUNT( ALL + 78 ) DIV + 88, - COUNT( * ) + 43 AS col1
----
0
42

skipif mysql # not compatible
query II rowsort label-7052
SELECT COUNT ( ALL + 78 ) / + 88, - COUNT ( * ) + 43 AS col1
----
0
42

query I rowsort
SELECT 91 * + - 46 col1
----
-4186

onlyif mysql # aggregate syntax: 
query I rowsort label-7054
SELECT 94 + + MAX( ALL - - 48 ) AS col0
----
142

skipif mysql # not compatible
query I rowsort label-7054
SELECT 94 + + MAX ( ALL - - 48 ) AS col0
----
142

query II rowsort
SELECT DISTINCT - 90 * 86 - 43 col0, 73
----
-7783
73

onlyif mysql # aggregate syntax: 
query I rowsort label-7056
SELECT ALL + COUNT( * ) + - 52 AS col2
----
-51

skipif mysql # not compatible
query I rowsort label-7056
SELECT ALL + COUNT ( * ) + - 52 AS col2
----
-51

query I rowsort
SELECT ALL - + ( - - 0 ) col2
----
0

query I rowsort
SELECT + ( + 53 ) + + 57 + + + 14
----
124

onlyif mysql # aggregate syntax: 
query I rowsort label-7059
SELECT DISTINCT - COUNT( * ) + MAX( DISTINCT - 19 ) AS col2
----
-20

skipif mysql # not compatible
query I rowsort label-7059
SELECT DISTINCT - COUNT ( * ) + MAX ( DISTINCT - 19 ) AS col2
----
-20

onlyif mysql # aggregate syntax: 
query II rowsort label-7060
SELECT DISTINCT 1 * + COUNT( * ) * - ( - + 32 ) * - + 32 AS col2, - COUNT( * ) AS col0
----
-1024
-1

skipif mysql # not compatible
query II rowsort label-7060
SELECT DISTINCT 1 * + COUNT ( * ) * - ( - + 32 ) * - + 32 AS col2, - COUNT ( * ) AS col0
----
-1024
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7061
SELECT ALL COUNT( * ) + + - COUNT( DISTINCT 82 ) + + 57 * - - 48 * - - COUNT( * )
----
2736

skipif mysql # not compatible
query I rowsort label-7061
SELECT ALL COUNT ( * ) + + - COUNT ( DISTINCT 82 ) + + 57 * - - 48 * - - COUNT ( * )
----
2736

query II rowsort
SELECT ALL - 2, 35 + - 1 AS col2
----
-2
34

query I rowsort
SELECT - 89 + 42 * 19 * + 25 + 87 + + 36 + - 48
----
19936

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7064
SELECT - 58 - 99 * + NULLIF ( + 1, + + 74 * + + CAST( + NULLIF ( 55, + 99 + + 85 * + COUNT( + CASE + 47 WHEN + + 84 - 8 THEN NULL WHEN + - 73 THEN + 84 END ) + + 73 + + COALESCE ( + 68, ( - 68 ) ) ) AS SIGNED ) ) * + COUNT( * ) AS col2
----
-157

skipif mysql # not compatible
query I rowsort label-7064
SELECT - 58 - 99 * + NULLIF ( + 1, + + 74 * + + CAST ( + NULLIF ( 55, + 99 + + 85 * + COUNT ( + CASE + 47 WHEN + + 84 - 8 THEN NULL WHEN + - 73 THEN + 84 END ) + + 73 + + COALESCE ( + 68, ( - 68 ) ) ) AS INTEGER ) ) * + COUNT ( * ) AS col2
----
-157

query I rowsort
SELECT 91 + - - 99
----
190

onlyif mysql # aggregate syntax: 
query I rowsort label-7066
SELECT ALL + + 57 - - + COUNT( * )
----
58

skipif mysql # not compatible
query I rowsort label-7066
SELECT ALL + + 57 - - + COUNT ( * )
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-7067
SELECT DISTINCT - + 45 * 82 * + COUNT( * ) * COUNT( * ) + - 69
----
-3759

skipif mysql # not compatible
query I rowsort label-7067
SELECT DISTINCT - + 45 * 82 * + COUNT ( * ) * COUNT ( * ) + - 69
----
-3759

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7068
SELECT + 38 + 32 * - 90 * ( - ( + CAST( CASE - 36 WHEN + + 97 THEN 62 WHEN 34 THEN - - 41 END AS SIGNED ) ) ) + + ( + + 46 ) * 78 + - NULLIF ( + 21, + 9 ) / - CASE 33 WHEN + 35 THEN - 83 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7068
SELECT + 38 + 32 * - 90 * ( - ( + CAST ( CASE - 36 WHEN + + 97 THEN 62 WHEN 34 THEN - - 41 END AS INTEGER ) ) ) + + ( + + 46 ) * 78 + - NULLIF ( + 21, + 9 ) / - CASE 33 WHEN + 35 THEN - 83 END AS col1
----
NULL

query I rowsort
SELECT CASE + 17 WHEN + 30 THEN 13 + + - 60 - - 53 ELSE + 70 * - - 1 + 22 END + + 74 + 0 * - + 7 * - 83
----
166

query I rowsort
SELECT ALL - - ( - - 70 ) * + + 47
----
3290

onlyif mysql # aggregate syntax: 
query I rowsort label-7071
SELECT ALL + ( ( - + ( COUNT( * ) ) ) ) * COUNT( * ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-7071
SELECT ALL + ( ( - + ( COUNT ( * ) ) ) ) * COUNT ( * ) col0
----
-1

query I rowsort
SELECT 21 * ( 92 ) AS col2
----
1932

query II rowsort
SELECT ALL 11 AS col1, - 90 - - 73 AS col0
----
11
-17

onlyif mysql # DIV for integer division: 
query I rowsort label-7074
SELECT ALL 70 DIV 84 * - - 91
----
0

skipif mysql # not compatible
query I rowsort label-7074
SELECT ALL 70 / 84 * - - 91
----
0

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-7075
SELECT ALL - 14, - CASE - 63 WHEN - - CASE 98 WHEN 5 * - + ( - - 71 ) + + 58 + ( NULLIF ( + ( 9 ), + 80 + + + 92 - - + 39 ) ) * - 61 THEN NULL WHEN + CAST( NULL AS SIGNED ) + 57 THEN 8 ELSE NULL END / + + CAST( NULL AS DECIMAL ) + + 19 + + 44 THEN NULL WHEN + 13 THEN 87 ELSE NULL END - - 67 AS col1
----
-14
NULL

skipif mysql # not compatible
query II rowsort label-7075
SELECT ALL - 14, - CASE - 63 WHEN - - CASE 98 WHEN 5 * - + ( - - 71 ) + + 58 + ( NULLIF ( + ( 9 ), + 80 + + + 92 - - + 39 ) ) * - 61 THEN NULL WHEN + CAST ( NULL AS INTEGER ) + 57 THEN 8 ELSE NULL END / + + CAST ( NULL AS REAL ) + + 19 + + 44 THEN NULL WHEN + 13 THEN 87 ELSE NULL END - - 67 AS col1
----
-14
NULL

query I rowsort
SELECT ALL 23 * - 47 AS col2
----
-1081

onlyif mysql # aggregate syntax: 
query I rowsort label-7077
SELECT ALL + 28 + ( MIN( + 11 ) ) + + - 25
----
14

skipif mysql # not compatible
query I rowsort label-7077
SELECT ALL + 28 + ( MIN ( + 11 ) ) + + - 25
----
14

query I rowsort
SELECT ALL - 74 + 29 AS col2
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-7079
SELECT MAX( ALL - ( 7 ) )
----
-7

skipif mysql # not compatible
query I rowsort label-7079
SELECT MAX ( ALL - ( 7 ) )
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-7080
SELECT COUNT( * ) - 82 * + COUNT( * ) * 21 AS col0
----
-1721

skipif mysql # not compatible
query I rowsort label-7080
SELECT COUNT ( * ) - 82 * + COUNT ( * ) * 21 AS col0
----
-1721

query II rowsort
SELECT + 87 AS col1, + 99
----
87
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7082
SELECT COUNT( * ) col1, - CAST( + + 9 AS SIGNED )
----
1
-9

skipif mysql # not compatible
query II rowsort label-7082
SELECT COUNT ( * ) col1, - CAST ( + + 9 AS INTEGER )
----
1
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7083
SELECT + COUNT( - 2 ) * CAST( 91 AS SIGNED ) + - - 77
----
168

skipif mysql # not compatible
query I rowsort label-7083
SELECT + COUNT ( - 2 ) * CAST ( 91 AS INTEGER ) + - - 77
----
168

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7084
SELECT COUNT( * ), + 63 * - 88 * + 62 DIV - + 31 AS col2
----
1
11088

skipif mysql # not compatible
query II rowsort label-7084
SELECT COUNT ( * ), + 63 * - 88 * + 62 / - + 31 AS col2
----
1
11088

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7085
SELECT 66 DIV - 31 + - ( - + 80 ) - COUNT( + 65 )
----
77

skipif mysql # not compatible
query I rowsort label-7085
SELECT 66 / - 31 + - ( - + 80 ) - COUNT ( + 65 )
----
77

query I rowsort
SELECT DISTINCT - 57 * + 21
----
-1197

onlyif mysql # aggregate syntax: 
query I rowsort label-7087
SELECT ( + - COUNT( * ) ) - 60
----
-61

skipif mysql # not compatible
query I rowsort label-7087
SELECT ( + - COUNT ( * ) ) - 60
----
-61

query I rowsort
SELECT ALL 94 - 18
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-7089
SELECT - MAX( - 90 ) * + 78 AS col2
----
7020

skipif mysql # not compatible
query I rowsort label-7089
SELECT - MAX ( - 90 ) * + 78 AS col2
----
7020

onlyif mysql # aggregate syntax: 
query I rowsort label-7090
SELECT ( COUNT( * ) ) + - 29
----
-28

skipif mysql # not compatible
query I rowsort label-7090
SELECT ( COUNT ( * ) ) + - 29
----
-28

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7091
SELECT DISTINCT + 9 DIV + MAX( DISTINCT - 51 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7091
SELECT DISTINCT + 9 / + MAX ( DISTINCT - 51 ) AS col0
----
0

query I rowsort
SELECT 19 - + 75 * - 22
----
1669

onlyif mysql # aggregate syntax: 
query I rowsort label-7093
SELECT ALL + 76 * - + NULLIF ( COUNT( * ), COUNT( * ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7093
SELECT ALL + 76 * - + NULLIF ( COUNT ( * ), COUNT ( * ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7094
SELECT NULLIF ( + MIN( ALL 43 ), + ( - 21 ) ) * - 70 AS col1, 39 * - 75 * COUNT( ALL + + 41 )
----
-3010
-2925

skipif mysql # not compatible
query II rowsort label-7094
SELECT NULLIF ( + MIN ( ALL 43 ), + ( - 21 ) ) * - 70 AS col1, 39 * - 75 * COUNT ( ALL + + 41 )
----
-3010
-2925

query II rowsort
SELECT DISTINCT 4 AS col2, 14
----
4
14

query II rowsort
SELECT ALL 49, 33 AS col0
----
49
33

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-7097
SELECT COUNT( * ) AS col2, + NULLIF ( - 76, + 48 + - CASE CAST( NULL AS DECIMAL ) WHEN 85 THEN - 66 - + - 31 + + NULLIF ( 67, 38 ) + + 19 + + 6 * + 38 WHEN COALESCE ( - - 8, + COALESCE ( + - 3, - 41 * + 79 ) ) THEN NULL ELSE NULL END ) * 32
----
1
-2432

skipif mysql # not compatible
query II rowsort label-7097
SELECT COUNT ( * ) AS col2, + NULLIF ( - 76, + 48 + - CASE CAST ( NULL AS REAL ) WHEN 85 THEN - 66 - + - 31 + + NULLIF ( 67, 38 ) + + 19 + + 6 * + 38 WHEN COALESCE ( - - 8, + COALESCE ( + - 3, - 41 * + 79 ) ) THEN NULL ELSE NULL END ) * 32
----
1
-2432

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7098
SELECT ALL 92 - + 63 - + 78 * + + CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7098
SELECT ALL 92 - + 63 - + 78 * + + CAST ( NULL AS REAL ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7099
SELECT ALL + COUNT( * ) * - + COUNT( * ) * + + 90
----
-90

skipif mysql # not compatible
query I rowsort label-7099
SELECT ALL + COUNT ( * ) * - + COUNT ( * ) * + + 90
----
-90

query I rowsort
SELECT ALL 19 * 99
----
1881

query I rowsort
SELECT - + 13 * 75 * + - 55 AS col2
----
53625

query I rowsort
SELECT + - 44 - + + 40 + - ( 97 ) AS col0
----
-181

onlyif mysql # DIV for integer division: 
query II rowsort label-7103
SELECT DISTINCT + 59 + + 97 col2, 51 * 56 DIV + + 45
----
156
63

skipif mysql # not compatible
query II rowsort label-7103
SELECT DISTINCT + 59 + + 97 col2, 51 * 56 / + + 45
----
156
63

query I rowsort
SELECT ALL + 42 + - 63
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-7105
SELECT - COUNT( * ) - - 36 + + + 14 AS col2
----
49

skipif mysql # not compatible
query I rowsort label-7105
SELECT - COUNT ( * ) - - 36 + + + 14 AS col2
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-7106
SELECT ALL NULLIF ( COUNT( * ), 37 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7106
SELECT ALL NULLIF ( COUNT ( * ), 37 ) AS col2
----
1

query I rowsort
SELECT DISTINCT + 15 + - 12
----
3

query I rowsort
SELECT ALL + 42 + 32
----
74

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7109
SELECT DISTINCT CAST( NULL AS DECIMAL ) * + COUNT( * ) * - COUNT( * ) + + 86 * + ( - - 91 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7109
SELECT DISTINCT CAST ( NULL AS REAL ) * + COUNT ( * ) * - COUNT ( * ) + + 86 * + ( - - 91 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7110
SELECT DISTINCT 46 * 11 + - 89 + + COUNT( * )
----
418

skipif mysql # not compatible
query I rowsort label-7110
SELECT DISTINCT 46 * 11 + - 89 + + COUNT ( * )
----
418

query I rowsort
SELECT ALL 96 * - 43 + + 72 AS col0
----
-4056

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7112
SELECT + 9 * + - 13 * 46 * - 76 + - + COUNT( * ) + + 17 * + + COUNT( * ) * CAST( 8 AS SIGNED ) * + 41 col1
----
414607

skipif mysql # not compatible
query I rowsort label-7112
SELECT + 9 * + - 13 * 46 * - 76 + - + COUNT ( * ) + + 17 * + + COUNT ( * ) * CAST ( 8 AS INTEGER ) * + 41 col1
----
414607

onlyif mysql # aggregate syntax: 
query I rowsort label-7113
SELECT DISTINCT 66 * - 14 * ( + ( - ( + COUNT( * ) ) ) ) + 29
----
953

skipif mysql # not compatible
query I rowsort label-7113
SELECT DISTINCT 66 * - 14 * ( + ( - ( + COUNT ( * ) ) ) ) + 29
----
953

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7114
SELECT + MIN( - CAST( NULL AS SIGNED ) ) AS col0, + 36 * + 24 - + CASE + + 61 WHEN + COUNT( * ) + - + 47 + + 36 + 79 / - 39 + + 33 * - 27 THEN NULL WHEN - COALESCE ( + 40, + - ( + 65 ), - 30 ) + + 52 + + + COUNT( * ) / 24 * 6 * - ( - 8 / + 80 ) THEN 79 * COUNT( * ) END AS col1
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-7114
SELECT + MIN ( - CAST ( NULL AS INTEGER ) ) AS col0, + 36 * + 24 - + CASE + + 61 WHEN + COUNT ( * ) + - + 47 + + 36 + 79 / - 39 + + 33 * - 27 THEN NULL WHEN - COALESCE ( + 40, + - ( + 65 ), - 30 ) + + 52 + + + COUNT ( * ) / 24 * 6 * - ( - 8 / + 80 ) THEN 79 * COUNT ( * ) END AS col1
----
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7115
SELECT + - 60 * - 97 + + - 42 DIV - 28
----
5821

skipif mysql # not compatible
query I rowsort label-7115
SELECT + - 60 * - 97 + + - 42 / - 28
----
5821

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7116
SELECT - - COALESCE ( ( + + ( + + 97 ) ), - COUNT( * ) * 79, + - MAX( DISTINCT - ( + ( + ( + - CAST( - 13 AS SIGNED ) ) ) ) ) + + 57 ) + + + CAST( + - 48 AS SIGNED )
----
49

skipif mysql # not compatible
query I rowsort label-7116
SELECT - - COALESCE ( ( + + ( + + 97 ) ), - COUNT ( * ) * 79, + - MAX ( DISTINCT - ( + ( + ( + - CAST ( - 13 AS INTEGER ) ) ) ) ) + + 57 ) + + + CAST ( + - 48 AS INTEGER )
----
49

query I rowsort
SELECT - - ( - 55 ) * + 39 + - 47 AS col2
----
-2192

query I rowsort
SELECT + + 85 * ( + 71 )
----
6035

query I rowsort
SELECT ALL + + 3 * + - ( 61 ) AS col1
----
-183

onlyif mysql # aggregate syntax: 
query I rowsort label-7120
SELECT + - COUNT( + ( + 57 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-7120
SELECT + - COUNT ( + ( + 57 ) )
----
-1

query I rowsort
SELECT NULLIF ( 37, + 71 - ( 55 ) ) AS col1
----
37

query I rowsort
SELECT DISTINCT + - 36 * - 40 + 11 * 13 AS col2
----
1583

onlyif mysql # aggregate syntax: 
query I rowsort label-7123
SELECT DISTINCT + - SUM( DISTINCT - + 15 )
----
15

skipif mysql # not compatible
query I rowsort label-7123
SELECT DISTINCT + - SUM ( DISTINCT - + 15 )
----
15

query I rowsort
SELECT + 7 + 54 AS col1
----
61

query I rowsort
SELECT DISTINCT + + 46 AS col2
----
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7126
SELECT DISTINCT + - CAST( - 44 AS SIGNED ) * - - 15
----
660

skipif mysql # not compatible
query I rowsort label-7126
SELECT DISTINCT + - CAST ( - 44 AS INTEGER ) * - - 15
----
660

query I rowsort
SELECT + - 59 * 37
----
-2183

onlyif mysql # aggregate syntax: 
query I rowsort label-7128
SELECT - COUNT( * ) * + 72 + 82 + + - 65
----
-55

skipif mysql # not compatible
query I rowsort label-7128
SELECT - COUNT ( * ) * + 72 + 82 + + - 65
----
-55

onlyif mysql # aggregate syntax: 
query II rowsort label-7129
SELECT ( + 66 ) AS col0, 88 + + - COUNT( * ) AS col2
----
66
87

skipif mysql # not compatible
query II rowsort label-7129
SELECT ( + 66 ) AS col0, 88 + + - COUNT ( * ) AS col2
----
66
87

onlyif mysql # aggregate syntax: 
query II rowsort label-7130
SELECT - - MIN( ALL + 37 ) AS col2, - 21 AS col1
----
37
-21

skipif mysql # not compatible
query II rowsort label-7130
SELECT - - MIN ( ALL + 37 ) AS col2, - 21 AS col1
----
37
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-7131
SELECT - + ( - 8 ) + COUNT( + + 80 )
----
9

skipif mysql # not compatible
query I rowsort label-7131
SELECT - + ( - 8 ) + COUNT ( + + 80 )
----
9

query II rowsort
SELECT + - 67 - - + 39 + - 82 * + + 11 * + - 32 AS col2, 10 * + - 19
----
28836
-190

query I rowsort
SELECT + NULLIF ( 26, - 46 + - 54 * + - 63 )
----
26

query I rowsort
SELECT - CASE 61 WHEN + + 98 THEN - - 69 + - 73 END AS col0
----
NULL

query II rowsort
SELECT ALL 53 + + ( 75 ), + 75 AS col1
----
128
75

query I rowsort
SELECT ALL 24 + + 45 + 57 AS col0
----
126

query I rowsort
SELECT + 35 + - + 88 AS col0
----
-53

query I rowsort
SELECT DISTINCT 59 + - 31
----
28

query I rowsort
SELECT ALL ( 23 ) + - - 71 * - - 83
----
5916

onlyif mysql # aggregate syntax: 
query II rowsort label-7140
SELECT 91 AS col0, + COUNT( * ) AS col0
----
91
1

skipif mysql # not compatible
query II rowsort label-7140
SELECT 91 AS col0, + COUNT ( * ) AS col0
----
91
1

query I rowsort
SELECT + 88 + - - 23 + 36 AS col2
----
147

onlyif mysql # aggregate syntax: 
query I rowsort label-7142
SELECT + 99 * + COUNT( * )
----
99

skipif mysql # not compatible
query I rowsort label-7142
SELECT + 99 * + COUNT ( * )
----
99

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7143
SELECT - ( + CAST( NULL AS SIGNED ) ) + + 7 AS col2, 83 AS col1
----
NULL
83

skipif mysql # not compatible
query II rowsort label-7143
SELECT - ( + CAST ( NULL AS INTEGER ) ) + + 7 AS col2, 83 AS col1
----
NULL
83

onlyif mysql # aggregate syntax: 
query II rowsort label-7144
SELECT ALL COUNT( * ), 46 + + 51 col1
----
1
97

skipif mysql # not compatible
query II rowsort label-7144
SELECT ALL COUNT ( * ), 46 + + 51 col1
----
1
97

onlyif mysql # aggregate syntax: 
query I rowsort label-7145
SELECT DISTINCT 5 + NULLIF ( 11, - - COUNT( * ) ) + + 30 AS col1
----
46

skipif mysql # not compatible
query I rowsort label-7145
SELECT DISTINCT 5 + NULLIF ( 11, - - COUNT ( * ) ) + + 30 AS col1
----
46

query II rowsort
SELECT 86, 18 AS col1
----
86
18

query I rowsort
SELECT ALL + 11 + + - 91
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-7148
SELECT ALL + MAX( 81 ) AS col0
----
81

skipif mysql # not compatible
query I rowsort label-7148
SELECT ALL + MAX ( 81 ) AS col0
----
81

onlyif mysql # aggregate syntax: 
query II rowsort label-7149
SELECT DISTINCT + 26, + SUM( + + 10 ) AS col0
----
26
10

skipif mysql # not compatible
query II rowsort label-7149
SELECT DISTINCT + 26, + SUM ( + + 10 ) AS col0
----
26
10

onlyif mysql # DIV for integer division: 
query I rowsort label-7150
SELECT ALL 54 DIV - ( - 81 ) - + - ( ( - 35 ) ) AS col0
----
-35

skipif mysql # not compatible
query I rowsort label-7150
SELECT ALL 54 / - ( - 81 ) - + - ( ( - 35 ) ) AS col0
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-7151
SELECT + + CASE + 85 WHEN - - 31 * + COUNT( * ) * - 38 + - 35 THEN + 15 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7151
SELECT + + CASE + 85 WHEN - - 31 * + COUNT ( * ) * - 38 + - 35 THEN + 15 END
----
NULL

query II rowsort
SELECT + 88 AS col1, 10 + + NULLIF ( 88, - 11 )
----
88
98

onlyif mysql # aggregate syntax: 
query I rowsort label-7153
SELECT + - COUNT( * ) - - ( 8 ) * 58 * + + 21 - 61
----
9682

skipif mysql # not compatible
query I rowsort label-7153
SELECT + - COUNT ( * ) - - ( 8 ) * 58 * + + 21 - 61
----
9682

onlyif mysql # DIV for integer division: 
query I rowsort label-7154
SELECT - - 15 * + 37 + 33 DIV 5 DIV + 35 AS col1
----
555

skipif mysql # not compatible
query I rowsort label-7154
SELECT - - 15 * + 37 + 33 / 5 / + 35 AS col1
----
555

onlyif mysql # aggregate syntax: 
query I rowsort label-7155
SELECT ALL - COALESCE ( - COUNT( * ), + ( - - 66 ) ) * + 17 * + - 49
----
-833

skipif mysql # not compatible
query I rowsort label-7155
SELECT ALL - COALESCE ( - COUNT ( * ), + ( - - 66 ) ) * + 17 * + - 49
----
-833

query II rowsort
SELECT ALL + 46, - 7 AS col2
----
46
-7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7157
SELECT - MIN( DISTINCT - + 49 ) DIV - 71 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7157
SELECT - MIN ( DISTINCT - + 49 ) / - 71 AS col1
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-7158
SELECT DISTINCT + 48 AS col1, + 23 DIV - - 39 * 55 AS col1
----
48
0

skipif mysql # not compatible
query II rowsort label-7158
SELECT DISTINCT + 48 AS col1, + 23 / - - 39 * 55 AS col1
----
48
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7159
SELECT + 18 / + + 48 / + + CASE + ( + + COUNT( * ) ) WHEN COUNT( * ) * 16 * 93 THEN - 68 WHEN - 42 + - 34 THEN NULL ELSE NULL END, + ( 85 ) AS col0
----
NULL
85

skipif mysql # not compatible
query II rowsort label-7159
SELECT + 18 / + + 48 / + + CASE + ( + + COUNT ( * ) ) WHEN COUNT ( * ) * 16 * 93 THEN - 68 WHEN - 42 + - 34 THEN NULL ELSE NULL END, + ( 85 ) AS col0
----
NULL
85

query I rowsort
SELECT + + 15 AS col0
----
15

query I rowsort
SELECT 59 * + 50 col1
----
2950

query I rowsort
SELECT + + ( 55 ) AS col1
----
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7163
SELECT 22 * + + NULLIF ( - 51, 35 ) + + 36 - + CAST( - + COALESCE ( - + ( + 66 ), + - 47, + 95 * + MAX( ALL - 54 ) / 97 + + - 77 ) AS SIGNED ) + 42 + MAX( - - 8 ) AS col0
----
-1102

skipif mysql # not compatible
query I rowsort label-7163
SELECT 22 * + + NULLIF ( - 51, 35 ) + + 36 - + CAST ( - + COALESCE ( - + ( + 66 ), + - 47, + 95 * + MAX ( ALL - 54 ) / 97 + + - 77 ) AS INTEGER ) + 42 + MAX ( - - 8 ) AS col0
----
-1102

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7164
SELECT 38 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7164
SELECT 38 * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7165
SELECT ALL 38 + + + CAST( - 10 AS SIGNED ) * MAX( + - 12 ) + 99
----
257

skipif mysql # not compatible
query I rowsort label-7165
SELECT ALL 38 + + + CAST ( - 10 AS INTEGER ) * MAX ( + - 12 ) + 99
----
257

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7166
SELECT 59 AS col1, + COUNT( - 44 ) - - CAST( NULL AS SIGNED )
----
59
NULL

skipif mysql # not compatible
query II rowsort label-7166
SELECT 59 AS col1, + COUNT ( - 44 ) - - CAST ( NULL AS INTEGER )
----
59
NULL

query I rowsort
SELECT DISTINCT - ( 89 ) + 71
----
-18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7168
SELECT DISTINCT + CASE CASE - 44 WHEN - ( - + 62 ) THEN NULL ELSE + 9 + - 48 - + - COUNT( * ) + + - COUNT( * ) + + + 67 * + CAST( NULL AS SIGNED ) * - 19 END WHEN - - COUNT( * ) THEN - - 12 / 4 * + - 20 + - 99 + - ( 16 ) * - 94 ELSE NULL END + + + 67
----
NULL

skipif mysql # not compatible
query I rowsort label-7168
SELECT DISTINCT + CASE CASE - 44 WHEN - ( - + 62 ) THEN NULL ELSE + 9 + - 48 - + - COUNT ( * ) + + - COUNT ( * ) + + + 67 * + CAST ( NULL AS INTEGER ) * - 19 END WHEN - - COUNT ( * ) THEN - - 12 / 4 * + - 20 + - 99 + - ( 16 ) * - 94 ELSE NULL END + + + 67
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7169
SELECT 40 - + 22 + + - 68 + - ( + 25 ) DIV + + COUNT( * )
----
-75

skipif mysql # not compatible
query I rowsort label-7169
SELECT 40 - + 22 + + - 68 + - ( + 25 ) / + + COUNT ( * )
----
-75

query I rowsort
SELECT 85 * - + 91 * - + 93 col0
----
719355

query I rowsort
SELECT ALL 64 + + - 93 AS col0
----
-29

query I rowsort
SELECT 75 - - 57 AS col2
----
132

onlyif mysql # aggregate syntax: 
query I rowsort label-7173
SELECT ALL 58 * + 98 * - - 20 * - COUNT( * ) AS col1
----
-113680

skipif mysql # not compatible
query I rowsort label-7173
SELECT ALL 58 * + 98 * - - 20 * - COUNT ( * ) AS col1
----
-113680

query II rowsort
SELECT DISTINCT 69 * - - 77, 27 * - 51 col0
----
5313
-1377

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7175
SELECT COUNT( CAST( - - 8 AS SIGNED ) ) + - - 0 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7175
SELECT COUNT ( CAST ( - - 8 AS INTEGER ) ) + - - 0 AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7176
SELECT ALL 4 - + 17 * - - MIN( DISTINCT - + 51 ) AS col2
----
871

skipif mysql # not compatible
query I rowsort label-7176
SELECT ALL 4 - + 17 * - - MIN ( DISTINCT - + 51 ) AS col2
----
871

onlyif mysql # aggregate syntax: 
query I rowsort label-7177
SELECT DISTINCT MAX( DISTINCT + 80 ) * + - 16 AS col1
----
-1280

skipif mysql # not compatible
query I rowsort label-7177
SELECT DISTINCT MAX ( DISTINCT + 80 ) * + - 16 AS col1
----
-1280

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7178
SELECT - 40 DIV - + 15 + + COUNT( * )
----
3

skipif mysql # not compatible
query I rowsort label-7178
SELECT - 40 / - + 15 + + COUNT ( * )
----
3

query I rowsort
SELECT - - 33 * + 72 - - 46
----
2422

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7180
SELECT 69 * + 11 - + + 3 * - 53 AS col1, CAST( NULL AS SIGNED ) / - 51 * 82 + - ( - 65 ) + + 64 AS col1
----
918
NULL

skipif mysql # not compatible
query II rowsort label-7180
SELECT 69 * + 11 - + + 3 * - 53 AS col1, CAST ( NULL AS INTEGER ) / - 51 * 82 + - ( - 65 ) + + 64 AS col1
----
918
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7181
SELECT ALL - MAX( ALL - 49 ) col1, MAX( + + 34 ) AS col2
----
49
34

skipif mysql # not compatible
query II rowsort label-7181
SELECT ALL - MAX ( ALL - 49 ) col1, MAX ( + + 34 ) AS col2
----
49
34

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7182
SELECT ALL - + 36 * + 47 * + 67 * - + COALESCE ( - - 97, + 5, - CAST( NULL AS SIGNED ) + 49 ) + - 30, - 66 + + 99 col0
----
10996278
33

skipif mysql # not compatible
query II rowsort label-7182
SELECT ALL - + 36 * + 47 * + 67 * - + COALESCE ( - - 97, + 5, - CAST ( NULL AS INTEGER ) + 49 ) + - 30, - 66 + + 99 col0
----
10996278
33

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7183
SELECT CAST( NULL AS DECIMAL ) * - 76 * - NULLIF ( - 22, 80 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7183
SELECT CAST ( NULL AS REAL ) * - 76 * - NULLIF ( - 22, 80 ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7184
SELECT DISTINCT 68 * + + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7184
SELECT DISTINCT 68 * + + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7185
SELECT DISTINCT - COUNT( ALL - 78 )
----
-1

skipif mysql # not compatible
query I rowsort label-7185
SELECT DISTINCT - COUNT ( ALL - 78 )
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7186
SELECT ALL - + COUNT( * ) * + COUNT( * ) + + 55 DIV + 70 AS col2, - 93
----
-1
-93

skipif mysql # not compatible
query II rowsort label-7186
SELECT ALL - + COUNT ( * ) * + COUNT ( * ) + + 55 / + 70 AS col2, - 93
----
-1
-93

query I rowsort
SELECT 14 + - 2 + + + 50 AS col1
----
62

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7188
SELECT - 25 * + COALESCE ( - 68, + 6 * - ( CASE + + 55 WHEN - COUNT( * ) DIV - COUNT( * ) * - NULLIF ( + ( 12 ), 70 ) * 27 * 17 * - - 1 - - - COALESCE ( COUNT( + 24 ), - 34 DIV - 55 + - 91 + 16, 18 + + COUNT( * ) ) * + COUNT( * ) THEN 9 * ( + ( - COUNT( * ) ) ) - 61 DIV + 22 WHEN + 50 DIV ( 50 ) THEN + 36 WHEN + 37 + + 59 THEN NULL ELSE NULL END ) + 13 )
----
1700

skipif mysql # not compatible
query I rowsort label-7188
SELECT - 25 * + COALESCE ( - 68, + 6 * - ( CASE + + 55 WHEN - COUNT ( * ) / - COUNT ( * ) * - NULLIF ( + ( 12 ), 70 ) * 27 * 17 * - - 1 - - - COALESCE ( COUNT ( + 24 ), - 34 / - 55 + - 91 + 16, 18 + + COUNT ( * ) ) * + COUNT ( * ) THEN 9 * ( + ( - COUNT ( * ) ) ) - 61 / + 22 WHEN + 50 / ( 50 ) THEN + 36 WHEN + 37 + + 59 THEN NULL ELSE NULL END ) + 13 )
----
1700

onlyif mysql # aggregate syntax: 
query II rowsort label-7189
SELECT - + 88 * 60 + - 31 + - 16 col0, COUNT( * ) AS col0
----
-5327
1

skipif mysql # not compatible
query II rowsort label-7189
SELECT - + 88 * 60 + - 31 + - 16 col0, COUNT ( * ) AS col0
----
-5327
1

query I rowsort
SELECT ALL + - 31 + 23
----
-8

query I rowsort
SELECT ALL - 76 + 28 AS col0
----
-48

query I rowsort
SELECT ALL - + ( - 81 ) col0
----
81

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7193
SELECT CAST( CASE 11 WHEN + 76 * + 2 THEN NULL WHEN - - 21 THEN + 19 ELSE NULL END AS DECIMAL ) + + 77
----
NULL

skipif mysql # not compatible
query I rowsort label-7193
SELECT CAST ( CASE 11 WHEN + 76 * + 2 THEN NULL WHEN - - 21 THEN + 19 ELSE NULL END AS REAL ) + + 77
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7194
SELECT ALL - 83 DIV - - 87
----
0

skipif mysql # not compatible
query I rowsort label-7194
SELECT ALL - 83 / - - 87
----
0

query I rowsort
SELECT 59 + - - 87 AS col1
----
146

onlyif mysql # aggregate syntax: 
query I rowsort label-7196
SELECT ALL + 10 + + + CASE - 44 WHEN - 59 THEN 52 WHEN - - MIN( ALL - 74 ) * + 73 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7196
SELECT ALL + 10 + + + CASE - 44 WHEN - 59 THEN 52 WHEN - - MIN ( ALL - 74 ) * + 73 THEN NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7197
SELECT 10 * + ( - + COUNT( CAST( + 52 AS SIGNED ) ) ) + + 55 * + ( - 66 )
----
-3640

skipif mysql # not compatible
query I rowsort label-7197
SELECT 10 * + ( - + COUNT ( CAST ( + 52 AS INTEGER ) ) ) + + 55 * + ( - 66 )
----
-3640

query I rowsort
SELECT 75 - 32
----
43

query I rowsort
SELECT ALL + 83 * - 57 AS col2
----
-4731

query I rowsort
SELECT DISTINCT + 65 * - - 96 col0
----
6240

query I rowsort
SELECT ALL - 11 - - 57
----
46

query I rowsort
SELECT DISTINCT 99 * - 12
----
-1188

onlyif mysql # aggregate syntax: 
query I rowsort label-7203
SELECT ALL - 20 * - + MIN( 91 ) col1
----
1820

skipif mysql # not compatible
query I rowsort label-7203
SELECT ALL - 20 * - + MIN ( 91 ) col1
----
1820

query I rowsort
SELECT 84 + - + 53 AS col2
----
31

query II rowsort
SELECT ALL 80 AS col2, - 70
----
80
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-7206
SELECT COUNT( DISTINCT + + ( + - 69 ) ) + + + 97
----
98

skipif mysql # not compatible
query I rowsort label-7206
SELECT COUNT ( DISTINCT + + ( + - 69 ) ) + + + 97
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-7207
SELECT ALL MAX( 75 )
----
75

skipif mysql # not compatible
query I rowsort label-7207
SELECT ALL MAX ( 75 )
----
75

onlyif mysql # aggregate syntax: 
query II rowsort label-7208
SELECT DISTINCT COUNT( * ), + 57 AS col2
----
1
57

skipif mysql # not compatible
query II rowsort label-7208
SELECT DISTINCT COUNT ( * ), + 57 AS col2
----
1
57

onlyif mysql # aggregate syntax: 
query I rowsort label-7209
SELECT DISTINCT MAX( 48 ) AS col1
----
48

skipif mysql # not compatible
query I rowsort label-7209
SELECT DISTINCT MAX ( 48 ) AS col1
----
48

query I rowsort
SELECT 10 * - ( - + 9 ) AS col1
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-7211
SELECT ALL NULLIF ( - COUNT( * ), 4 * - 10 * - 21 )
----
-1

skipif mysql # not compatible
query I rowsort label-7211
SELECT ALL NULLIF ( - COUNT ( * ), 4 * - 10 * - 21 )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7212
SELECT ( CAST( NULL AS SIGNED ) ) + 45 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7212
SELECT ( CAST ( NULL AS INTEGER ) ) + 45 col2
----
NULL

query I rowsort
SELECT 50 * 87 col0
----
4350

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7214
SELECT + CAST( + - 70 AS SIGNED ) + + 43
----
-27

skipif mysql # not compatible
query I rowsort label-7214
SELECT + CAST ( + - 70 AS INTEGER ) + + 43
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-7215
SELECT ALL + 93 * - 69 * 11 * 94 * + COUNT( * ) col1
----
-6635178

skipif mysql # not compatible
query I rowsort label-7215
SELECT ALL + 93 * - 69 * 11 * 94 * + COUNT ( * ) col1
----
-6635178

onlyif mysql # DIV for integer division: 
query I rowsort label-7216
SELECT 81 DIV + 60 - 18 AS col0
----
-17

skipif mysql # not compatible
query I rowsort label-7216
SELECT 81 / + 60 - 18 AS col0
----
-17

onlyif mysql # aggregate syntax: 
query II rowsort label-7217
SELECT ALL + 24, - MIN( ALL 71 ) col0
----
24
-71

skipif mysql # not compatible
query II rowsort label-7217
SELECT ALL + 24, - MIN ( ALL 71 ) col0
----
24
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-7218
SELECT - MAX( ALL 66 ) AS col1
----
-66

skipif mysql # not compatible
query I rowsort label-7218
SELECT - MAX ( ALL 66 ) AS col1
----
-66

query I rowsort
SELECT ALL - - 77 * 73 + 39
----
5660

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7220
SELECT + + COUNT( 77 ) DIV + + COUNT( * ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7220
SELECT + + COUNT ( 77 ) / + + COUNT ( * ) AS col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7221
SELECT + CAST( NULL AS SIGNED ) - - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-7221
SELECT + CAST ( NULL AS INTEGER ) - - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7222
SELECT 80 * - COUNT( * ) + - + 38 + 98 + - COUNT( * )
----
-21

skipif mysql # not compatible
query I rowsort label-7222
SELECT 80 * - COUNT ( * ) + - + 38 + 98 + - COUNT ( * )
----
-21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7223
SELECT DISTINCT - 34 * + - 28 * + 57 * - 7 * + COUNT( * ) + + CASE + + 55 WHEN + + 21 THEN NULL ELSE + CAST( NULL AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-7223
SELECT DISTINCT - 34 * + - 28 * + 57 * - 7 * + COUNT ( * ) + + CASE + + 55 WHEN + + 21 THEN NULL ELSE + CAST ( NULL AS INTEGER ) END
----
NULL

query II rowsort
SELECT DISTINCT 54 * + 58 + + + 45, + 33 * 92 AS col2
----
3177
3036

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7225
SELECT ALL + - 63 AS col1, - NULLIF ( + + 5, - 79 * - - 16 * - - 74 + 27 + 98 * + + CAST( NULL AS SIGNED ) ) - 35
----
-63
-40

skipif mysql # not compatible
query II rowsort label-7225
SELECT ALL + - 63 AS col1, - NULLIF ( + + 5, - 79 * - - 16 * - - 74 + 27 + 98 * + + CAST ( NULL AS INTEGER ) ) - 35
----
-63
-40

query I rowsort
SELECT + 0 * + 43 AS col1
----
0

query II rowsort
SELECT + 2 col1, 47 col1
----
2
47

query I rowsort
SELECT + NULLIF ( + + 35, + + NULLIF ( - 3, - 29 ) ) AS col1
----
35

query I rowsort
SELECT - 82 + 85 * - 29 + + 62 + - 60
----
-2545

onlyif mysql # aggregate syntax: 
query I rowsort label-7230
SELECT MIN( DISTINCT - NULLIF ( 51, - 73 * + + 35 ) ) AS col0
----
-51

skipif mysql # not compatible
query I rowsort label-7230
SELECT MIN ( DISTINCT - NULLIF ( 51, - 73 * + + 35 ) ) AS col0
----
-51

query I rowsort
SELECT + 81 * + 49 + 6 * + 96 - - 24 AS col0
----
4569

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7232
SELECT DISTINCT 76 * + 51 * - CAST( 2 AS SIGNED ) AS col1, - 5 + 90 + - 6 / + ( + 93 ) * + 3 + + CAST( NULL AS SIGNED ) + 3 AS col2
----
-7752
NULL

skipif mysql # not compatible
query II rowsort label-7232
SELECT DISTINCT 76 * + 51 * - CAST ( 2 AS INTEGER ) AS col1, - 5 + 90 + - 6 / + ( + 93 ) * + 3 + + CAST ( NULL AS INTEGER ) + 3 AS col2
----
-7752
NULL

query I rowsort
SELECT DISTINCT 94 * + 53 * - 10 col2
----
-49820

onlyif mysql # aggregate syntax: 
query I rowsort label-7234
SELECT - NULLIF ( + ( + 76 ), - 80 * ( - 9 ) + + 28 + - ( - + 76 ) + + - COUNT( * ) * - 82 * - - 34 ) * - 40 + + 38 AS col2
----
3078

skipif mysql # not compatible
query I rowsort label-7234
SELECT - NULLIF ( + ( + 76 ), - 80 * ( - 9 ) + + 28 + - ( - + 76 ) + + - COUNT ( * ) * - 82 * - - 34 ) * - 40 + + 38 AS col2
----
3078

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7235
SELECT ALL CASE + 19 WHEN - - 72 * + SUM( ALL + 73 ) THEN + + 5 + - CAST( NULL AS SIGNED ) + + + 29 + - - 66 * - - 2 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7235
SELECT ALL CASE + 19 WHEN - - 72 * + SUM ( ALL + 73 ) THEN + + 5 + - CAST ( NULL AS INTEGER ) + + + 29 + - - 66 * - - 2 END
----
NULL

query II rowsort
SELECT - 70 AS col0, 84 * 50
----
-70
4200

onlyif mysql # aggregate syntax: 
query I rowsort label-7237
SELECT ALL 29 - SUM( ALL + NULLIF ( - 97, ( - 48 ) ) ) - - - 93 + + 92 - + 34 * 84
----
-2731

skipif mysql # not compatible
query I rowsort label-7237
SELECT ALL 29 - SUM ( ALL + NULLIF ( - 97, ( - 48 ) ) ) - - - 93 + + 92 - + 34 * 84
----
-2731

query II rowsort
SELECT - 25 col0, 65 * 56 * + + 70
----
-25
254800

onlyif mysql # aggregate syntax: 
query I rowsort label-7239
SELECT ALL - 80 - - + 70 - - + 46 * 59 * + COUNT( * ) + - 18 + - 76 * - + COUNT( * ) AS col1
----
2762

skipif mysql # not compatible
query I rowsort label-7239
SELECT ALL - 80 - - + 70 - - + 46 * 59 * + COUNT ( * ) + - 18 + - 76 * - + COUNT ( * ) AS col1
----
2762

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7240
SELECT + CASE - 17 WHEN 56 - - + 75 - CAST( NULL AS DECIMAL ) * + + 55 * + CAST( - COUNT( * ) AS SIGNED ) THEN + + 91 END * 39 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7240
SELECT + CASE - 17 WHEN 56 - - + 75 - CAST ( NULL AS REAL ) * + + 55 * + CAST ( - COUNT ( * ) AS INTEGER ) THEN + + 91 END * 39 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7241
SELECT ALL + MIN( - ( - 38 ) ) DIV - - 55
----
0

skipif mysql # not compatible
query I rowsort label-7241
SELECT ALL + MIN ( - ( - 38 ) ) / - - 55
----
0

query I rowsort
SELECT ALL NULLIF ( 15, - - 17 ) col1
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-7243
SELECT - MIN( ALL + 54 ) * + - 77 AS col1
----
4158

skipif mysql # not compatible
query I rowsort label-7243
SELECT - MIN ( ALL + 54 ) * + - 77 AS col1
----
4158

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7244
SELECT - CAST( NULL AS DECIMAL ) + 50
----
NULL

skipif mysql # not compatible
query I rowsort label-7244
SELECT - CAST ( NULL AS REAL ) + 50
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7245
SELECT - 45 * + - CASE + ( - + 47 ) WHEN - ( - 91 ) * - ( COUNT( * ) ) / - CASE - 14 WHEN - 94 THEN NULL WHEN - COUNT( * ) / + 45 + + + MAX( ALL 0 ) + 5 * NULLIF ( - 90, + COUNT( * ) + - 31 + - 5 ) THEN - + 51 ELSE NULL END + - 0 * + + 4 THEN - 3 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7245
SELECT - 45 * + - CASE + ( - + 47 ) WHEN - ( - 91 ) * - ( COUNT ( * ) ) / - CASE - 14 WHEN - 94 THEN NULL WHEN - COUNT ( * ) / + 45 + + + MAX ( ALL 0 ) + 5 * NULLIF ( - 90, + COUNT ( * ) + - 31 + - 5 ) THEN - + 51 ELSE NULL END + - 0 * + + 4 THEN - 3 END AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7246
SELECT DISTINCT - 62 * + 64 * + CAST( - + 27 AS SIGNED ) AS col2
----
107136

skipif mysql # not compatible
query I rowsort label-7246
SELECT DISTINCT - 62 * + 64 * + CAST ( - + 27 AS INTEGER ) AS col2
----
107136

query I rowsort
SELECT - 15 * + NULLIF ( + 44, 70 + + 84 / + 22 ) AS col1
----
-660

onlyif mysql # DIV for integer division: 
query I rowsort label-7248
SELECT ALL - 90 + + 4 DIV - - 48 AS col0
----
-90

skipif mysql # not compatible
query I rowsort label-7248
SELECT ALL - 90 + + 4 / - - 48 AS col0
----
-90

query II rowsort
SELECT - 35 - - - 67 AS col0, - 89
----
-102
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-7250
SELECT - 48 - + COUNT( ( - - 18 ) ) + + - COUNT( * ) * + 69
----
-118

skipif mysql # not compatible
query I rowsort label-7250
SELECT - 48 - + COUNT ( ( - - 18 ) ) + + - COUNT ( * ) * + 69
----
-118

query I rowsort
SELECT DISTINCT + - 2 * + 70 AS col0
----
-140

query I rowsort
SELECT - NULLIF ( + CASE 1 WHEN + 52 THEN NULL ELSE + + 74 END, - 38 )
----
-74

onlyif mysql # aggregate syntax: 
query II rowsort label-7253
SELECT - + 6 + COUNT( * ) + - 52 * + 30 AS col2, - 82 * + - 7 AS col1
----
-1565
574

skipif mysql # not compatible
query II rowsort label-7253
SELECT - + 6 + COUNT ( * ) + - 52 * + 30 AS col2, - 82 * + - 7 AS col1
----
-1565
574

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7254
SELECT - - MAX( ALL - 21 ) DIV - - 89 * - 78 * 1 + + + 29 * + 84
----
2436

skipif mysql # not compatible
query I rowsort label-7254
SELECT - - MAX ( ALL - 21 ) / - - 89 * - 78 * 1 + + + 29 * + 84
----
2436

onlyif mysql # aggregate syntax: 
query I rowsort label-7255
SELECT + 85 * - - 64 - 74 + - CASE + 7 WHEN + COUNT( * ) THEN - + 83 - + CASE 52 WHEN 8 THEN NULL WHEN 60 * - - 50 + 75 + - 34 THEN + 95 / - - 78 + + 42 + + + NULLIF ( + 77, - 85 ) + COUNT( * ) + + + 76 * - - 90 + - 69 * 53 - + 42 + + COUNT( * ) / 99 END + - 66 ELSE NULL END - - 14 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7255
SELECT + 85 * - - 64 - 74 + - CASE + 7 WHEN + COUNT ( * ) THEN - + 83 - + CASE 52 WHEN 8 THEN NULL WHEN 60 * - - 50 + 75 + - 34 THEN + 95 / - - 78 + + 42 + + + NULLIF ( + 77, - 85 ) + COUNT ( * ) + + + 76 * - - 90 + - 69 * 53 - + 42 + + COUNT ( * ) / 99 END + - 66 ELSE NULL END - - 14 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7256
SELECT ALL + CASE 24 WHEN - + 57 THEN NULL WHEN - + 38 THEN + 85 - + COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-7256
SELECT ALL + CASE 24 WHEN - + 57 THEN NULL WHEN - + 38 THEN + 85 - + COUNT ( * ) END
----
NULL

query I rowsort
SELECT + + ( + + 51 )
----
51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7258
SELECT + COUNT( * ) DIV 56 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7258
SELECT + COUNT ( * ) / 56 AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7259
SELECT ALL - - 3 DIV 88 + 73 + + 22 AS col1
----
95

skipif mysql # not compatible
query I rowsort label-7259
SELECT ALL - - 3 / 88 + 73 + + 22 AS col1
----
95

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7260
SELECT DISTINCT - 87 * + 62 + - 82 + + + COUNT( * ) DIV + + NULLIF ( 39, 72 )
----
-5476

skipif mysql # not compatible
query I rowsort label-7260
SELECT DISTINCT - 87 * + 62 + - 82 + + + COUNT ( * ) / + + NULLIF ( 39, 72 )
----
-5476

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7261
SELECT DISTINCT + 44 / + 48 + - COUNT( * ) + + 72 + 19 * - ( + + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7261
SELECT DISTINCT + 44 / + 48 + - COUNT ( * ) + + 72 + 19 * - ( + + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7262
SELECT ALL ( - 42 ) * 9 + - 49 AS col0, + MIN( ALL 21 )
----
-427
21

skipif mysql # not compatible
query II rowsort label-7262
SELECT ALL ( - 42 ) * 9 + - 49 AS col0, + MIN ( ALL 21 )
----
-427
21

onlyif mysql # DIV for integer division: 
query I rowsort label-7263
SELECT + 74 DIV 47 + - + 25 + + COALESCE ( + 14, 1, - 19 )
----
-10

skipif mysql # not compatible
query I rowsort label-7263
SELECT + 74 / 47 + - + 25 + + COALESCE ( + 14, 1, - 19 )
----
-10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7264
SELECT DISTINCT - 37 DIV - 11 + + - COUNT( * ) + + ( 39 ) AS col1
----
41

skipif mysql # not compatible
query I rowsort label-7264
SELECT DISTINCT - 37 / - 11 + + - COUNT ( * ) + + ( 39 ) AS col1
----
41

onlyif mysql # DIV for integer division: 
query I rowsort label-7265
SELECT DISTINCT 51 DIV - - 75 + + 17 AS col0
----
17

skipif mysql # not compatible
query I rowsort label-7265
SELECT DISTINCT 51 / - - 75 + + 17 AS col0
----
17

query I rowsort
SELECT DISTINCT + NULLIF ( - + 67, - - 85 ) * 5
----
-335

onlyif mysql # aggregate syntax: 
query I rowsort label-7267
SELECT - ( 17 ) * + 97 * COUNT( * ) + 4 * 9 + 28
----
-1585

skipif mysql # not compatible
query I rowsort label-7267
SELECT - ( 17 ) * + 97 * COUNT ( * ) + 4 * 9 + 28
----
-1585

onlyif mysql # aggregate syntax: 
query I rowsort label-7268
SELECT ALL - COUNT( + 35 ) * - 75
----
75

skipif mysql # not compatible
query I rowsort label-7268
SELECT ALL - COUNT ( + 35 ) * - 75
----
75

query I rowsort
SELECT - - 88 + - + 14 * + 21 AS col0
----
-206

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7270
SELECT CASE 23 WHEN + 96 * + - 44 THEN NULL ELSE 5 + - + CAST( ( + COUNT( * ) ) AS SIGNED ) END AS col0
----
4

skipif mysql # not compatible
query I rowsort label-7270
SELECT CASE 23 WHEN + 96 * + - 44 THEN NULL ELSE 5 + - + CAST ( ( + COUNT ( * ) ) AS INTEGER ) END AS col0
----
4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7271
SELECT + 77 + - + COUNT( + 82 ) + - 14 DIV + 43 AS col2
----
76

skipif mysql # not compatible
query I rowsort label-7271
SELECT + 77 + - + COUNT ( + 82 ) + - 14 / + 43 AS col2
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-7272
SELECT COUNT( * ) * - - 52 + - 0
----
52

skipif mysql # not compatible
query I rowsort label-7272
SELECT COUNT ( * ) * - - 52 + - 0
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-7273
SELECT ( + MIN( - 66 ) ) AS col1
----
-66

skipif mysql # not compatible
query I rowsort label-7273
SELECT ( + MIN ( - 66 ) ) AS col1
----
-66

onlyif mysql # DIV for integer division: 
query I rowsort label-7274
SELECT + 39 * 20 * 13 DIV - 35 + - 12 + 43
----
-258

skipif mysql # not compatible
query I rowsort label-7274
SELECT + 39 * 20 * 13 / - 35 + - 12 + 43
----
-258

query I rowsort
SELECT + ( 69 ) + - 44 * 52 AS col1
----
-2219

query I rowsort
SELECT 57 * + 84 + + ( + - 3 )
----
4785

query I rowsort
SELECT - 52 * + 51 AS col2
----
-2652

query II rowsort
SELECT + ( - 35 ) * + - 93 AS col0, - 9
----
3255
-9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7279
SELECT - ( 70 ) * + COUNT( * ) DIV + ( 98 ) + 40 DIV 58 + + 87 + 3 + - 2 AS col0
----
88

skipif mysql # not compatible
query I rowsort label-7279
SELECT - ( 70 ) * + COUNT ( * ) / + ( 98 ) + 40 / 58 + + 87 + 3 + - 2 AS col0
----
88

query I rowsort
SELECT + 16 * - 93
----
-1488

onlyif mysql # aggregate syntax: 
query I rowsort label-7281
SELECT ALL COUNT( * ) + - 79 + - 38 + - - 73 + + - 58 AS col1
----
-101

skipif mysql # not compatible
query I rowsort label-7281
SELECT ALL COUNT ( * ) + - 79 + - 38 + - - 73 + + - 58 AS col1
----
-101

query I rowsort
SELECT ALL + 22 + - 53 + 14 + + 23 AS col2
----
6

query I rowsort
SELECT DISTINCT + 74 + 9 - 4
----
79

query I rowsort
SELECT DISTINCT - 82 + + + 20
----
-62

query II rowsort
SELECT 20 + - 10 AS col2, 99 AS col0
----
10
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7286
SELECT + COUNT( * ) / + 11 + + CAST( NULL AS SIGNED ) + - 1 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7286
SELECT + COUNT ( * ) / + 11 + + CAST ( NULL AS INTEGER ) + - 1 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7287
SELECT 79 + 96 * + + CAST( + 42 AS SIGNED ) + + MIN( DISTINCT + 9 )
----
4120

skipif mysql # not compatible
query I rowsort label-7287
SELECT 79 + 96 * + + CAST ( + 42 AS INTEGER ) + + MIN ( DISTINCT + 9 )
----
4120

onlyif mysql # aggregate syntax: 
query I rowsort label-7288
SELECT - 96 + 4 * - COUNT( * )
----
-100

skipif mysql # not compatible
query I rowsort label-7288
SELECT - 96 + 4 * - COUNT ( * )
----
-100

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7289
SELECT ALL + - NULLIF ( - CAST( NULL AS SIGNED ), 22 * - - ( 70 ) ) * - + NULLIF ( + COUNT( * ), + 38 ) + - 77 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7289
SELECT ALL + - NULLIF ( - CAST ( NULL AS INTEGER ), 22 * - - ( 70 ) ) * - + NULLIF ( + COUNT ( * ), + 38 ) + - 77 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7290
SELECT ALL - 0 + COUNT( * ) * - 43 * 59 AS col2
----
-2537

skipif mysql # not compatible
query I rowsort label-7290
SELECT ALL - 0 + COUNT ( * ) * - 43 * 59 AS col2
----
-2537

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7291
SELECT ALL NULLIF ( + 60, CAST( NULL AS SIGNED ) * - - 46 + - - 9 ) AS col1, 12 AS col2
----
60
12

skipif mysql # not compatible
query II rowsort label-7291
SELECT ALL NULLIF ( + 60, CAST ( NULL AS INTEGER ) * - - 46 + - - 9 ) AS col1, 12 AS col2
----
60
12

query I rowsort
SELECT + 71 + - 63 + 92 AS col2
----
100

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7293
SELECT + CAST( NULL AS SIGNED ) - 54 / - 57 + 57 + + - CASE + 1 WHEN - 72 THEN NULL WHEN - 53 THEN NULL ELSE + COUNT( + + 63 ) * COUNT( * ) * CASE 3 WHEN - 66 THEN + 42 WHEN - COUNT( * ) * - - 85 - - COUNT( * ) * + 62 * - 49 THEN NULL WHEN 46 * MAX( - CAST( NULL AS SIGNED ) ) + COUNT( + 37 ) * + ( - 20 ) THEN NULL ELSE NULL END END + + MIN( + NULLIF ( 11, 52 ) - 9 ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7293
SELECT + CAST ( NULL AS INTEGER ) - 54 / - 57 + 57 + + - CASE + 1 WHEN - 72 THEN NULL WHEN - 53 THEN NULL ELSE + COUNT ( + + 63 ) * COUNT ( * ) * CASE 3 WHEN - 66 THEN + 42 WHEN - COUNT ( * ) * - - 85 - - COUNT ( * ) * + 62 * - 49 THEN NULL WHEN 46 * MAX ( - CAST ( NULL AS INTEGER ) ) + COUNT ( + 37 ) * + ( - 20 ) THEN NULL ELSE NULL END END + + MIN ( + NULLIF ( 11, 52 ) - 9 ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7294
SELECT 28 * + MAX( - 41 ) * 8 * - 22 * + 62
----
12526976

skipif mysql # not compatible
query I rowsort label-7294
SELECT 28 * + MAX ( - 41 ) * 8 * - 22 * + 62
----
12526976

query I rowsort
SELECT + - 46 * + ( - 86 ) + + 70
----
4026

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7296
SELECT DISTINCT + 31 - - CAST( NULL AS SIGNED ) col2, COALESCE ( + 68, + + SUM( - - 65 ) - + + 8 * + - 29 + - 4 + - 94 * 16 * - 12 ) AS col1
----
NULL
68

skipif mysql # not compatible
query II rowsort label-7296
SELECT DISTINCT + 31 - - CAST ( NULL AS INTEGER ) col2, COALESCE ( + 68, + + SUM ( - - 65 ) - + + 8 * + - 29 + - 4 + - 94 * 16 * - 12 ) AS col1
----
NULL
68

query I rowsort
SELECT ALL - ( + 79 ) AS col2
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-7298
SELECT 69 * + ( COUNT( ALL - 70 ) ) AS col2
----
69

skipif mysql # not compatible
query I rowsort label-7298
SELECT 69 * + ( COUNT ( ALL - 70 ) ) AS col2
----
69

query I rowsort
SELECT ALL 41 * + + 89
----
3649

query II rowsort
SELECT DISTINCT - 10 col2, 9 * + - ( 74 ) AS col0
----
-10
-666

query I rowsort
SELECT ALL - NULLIF ( 15, 28 ) AS col1
----
-15

query I rowsort
SELECT DISTINCT 76 * 80 AS col2
----
6080

onlyif mysql # aggregate syntax: 
query II rowsort label-7303
SELECT ALL - 61 * - - 75 * + 5 AS col2, - COUNT( * ) AS col1
----
-22875
-1

skipif mysql # not compatible
query II rowsort label-7303
SELECT ALL - 61 * - - 75 * + 5 AS col2, - COUNT ( * ) AS col1
----
-22875
-1

query I rowsort
SELECT ALL - 52 * + 19
----
-988

query I rowsort
SELECT 68 * + + 58
----
3944

query II rowsort
SELECT ALL 82 * + 67 * - - 43 * - 45 AS col1, - 38 - 19 + + - 22 * 67 AS col0
----
-10630890
-1531

query I rowsort
SELECT DISTINCT 40 * - 94
----
-3760

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7308
SELECT 13 DIV + + COUNT( * ) AS col1
----
13

skipif mysql # not compatible
query I rowsort label-7308
SELECT 13 / + + COUNT ( * ) AS col1
----
13

query I rowsort
SELECT 84 * + + 64
----
5376

query I rowsort
SELECT 19 * + + 32 AS col0
----
608

onlyif mysql # DIV for integer division: 
query II rowsort label-7311
SELECT 56 AS col0, 63 DIV 22 + 21 - 39 DIV - 25 AS col1
----
56
24

skipif mysql # not compatible
query II rowsort label-7311
SELECT 56 AS col0, 63 / 22 + 21 - 39 / - 25 AS col1
----
56
24

onlyif mysql # DIV for integer division: 
query I rowsort label-7312
SELECT 3 DIV - 20 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7312
SELECT 3 / - 20 AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7313
SELECT DISTINCT ( MIN( 8 ) ) + - ( + 96 ) DIV - 5 AS col0, - 2 AS col1
----
27
-2

skipif mysql # not compatible
query II rowsort label-7313
SELECT DISTINCT ( MIN ( 8 ) ) + - ( + 96 ) / - 5 AS col0, - 2 AS col1
----
27
-2

query I rowsort
SELECT ( - + 45 ) * + + 32 AS col2
----
-1440

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7315
SELECT ALL CAST( NULL AS SIGNED ) * + 94 * NULLIF ( - 29, 6 * + 31 * 36 * + + 73 * 80 + - - 3 + + 4 * + 29 + - 97 / + + 15 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7315
SELECT ALL CAST ( NULL AS INTEGER ) * + 94 * NULLIF ( - 29, 6 * + 31 * 36 * + + 73 * 80 + - - 3 + + 4 * + 29 + - 97 / + + 15 ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT ( - + 58 ) + - - 15
----
-43

query I rowsort
SELECT ALL - 44 + - - 97 AS col1
----
53

query I rowsort
SELECT - CASE - - 92 WHEN - 43 THEN ( - 11 ) - 18 WHEN - 63 THEN NULL ELSE 69 END + - 1 - - 33
----
-37

query I rowsort
SELECT NULLIF ( + 26, + ( + 87 ) ) AS col1
----
26

query I rowsort
SELECT ALL 23 * + - 72
----
-1656

onlyif mysql # aggregate syntax: 
query II rowsort label-7321
SELECT - + 48 AS col2, COUNT( * ) AS col1
----
-48
1

skipif mysql # not compatible
query II rowsort label-7321
SELECT - + 48 AS col2, COUNT ( * ) AS col1
----
-48
1

query II rowsort
SELECT ALL + 91, 16 col2
----
91
16

onlyif mysql # aggregate syntax: 
query II rowsort label-7323
SELECT - - COUNT( * ), 1
----
1
1

skipif mysql # not compatible
query II rowsort label-7323
SELECT - - COUNT ( * ), 1
----
1
1

query I rowsort
SELECT ALL 80 + + 75 - + 63 + - 27 * - + 72 AS col0
----
2036

onlyif mysql # aggregate syntax: 
query I rowsort label-7325
SELECT DISTINCT 85 + + COUNT( * ) - - 61 AS col0
----
147

skipif mysql # not compatible
query I rowsort label-7325
SELECT DISTINCT 85 + + COUNT ( * ) - - 61 AS col0
----
147

query I rowsort
SELECT ALL + + 22 - - 70
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-7327
SELECT ALL SUM( - - 22 ) AS col2
----
22

skipif mysql # not compatible
query I rowsort label-7327
SELECT ALL SUM ( - - 22 ) AS col2
----
22

query I rowsort
SELECT 73 + + 23
----
96

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7329
SELECT ALL - NULLIF ( + + 35, - - 45 + - - CAST( NULL AS SIGNED ) ) DIV + + 50
----
0

skipif mysql # not compatible
query I rowsort label-7329
SELECT ALL - NULLIF ( + + 35, - - 45 + - - CAST ( NULL AS INTEGER ) ) / + + 50
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7330
SELECT DISTINCT - COUNT( ALL + 46 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-7330
SELECT DISTINCT - COUNT ( ALL + 46 ) AS col0
----
-1

query I rowsort
SELECT + 60 + NULLIF ( + 89, - + AVG ( + 83 ) ) AS col0
----
149

query I rowsort
SELECT ALL + 68 - 17
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-7333
SELECT 53 + MIN( DISTINCT 61 )
----
114

skipif mysql # not compatible
query I rowsort label-7333
SELECT 53 + MIN ( DISTINCT 61 )
----
114

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-7334
SELECT - ( + COUNT( + - COALESCE ( 20, - CAST( NULL AS DECIMAL ) * + 62 ) ) ) DIV - SUM( - 1 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-7334
SELECT - ( + COUNT ( + - COALESCE ( 20, - CAST ( NULL AS REAL ) * + 62 ) ) ) / - SUM ( - 1 ) AS col1
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7335
SELECT ALL - - COUNT( * ) DIV - 54
----
0

skipif mysql # not compatible
query I rowsort label-7335
SELECT ALL - - COUNT ( * ) / - 54
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7336
SELECT + - 13 DIV ( 18 ) + COALESCE ( - - COUNT( * ), + - 40 + + 37 ) + + 37
----
38

skipif mysql # not compatible
query I rowsort label-7336
SELECT + - 13 / ( 18 ) + COALESCE ( - - COUNT ( * ), + - 40 + + 37 ) + + 37
----
38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7337
SELECT + 38 * - + COUNT( * ) * - 62 * - 38 + 15 - - - 5 + + CAST( + 56 AS SIGNED ) AS col0, 22 AS col2
----
-89462
22

skipif mysql # not compatible
query II rowsort label-7337
SELECT + 38 * - + COUNT ( * ) * - 62 * - 38 + 15 - - - 5 + + CAST ( + 56 AS INTEGER ) AS col0, 22 AS col2
----
-89462
22

query I rowsort
SELECT DISTINCT - 44 * + 74 AS col0
----
-3256

query I rowsort
SELECT DISTINCT - + 75 AS col2
----
-75

query II rowsort
SELECT DISTINCT - 4, 62 AS col1
----
-4
62

query I rowsort
SELECT ALL + 65 * - - 62 AS col1
----
4030

query I rowsort
SELECT ALL - NULLIF ( 73, 8 )
----
-73

onlyif mysql # DIV for integer division: 
query I rowsort label-7343
SELECT + 31 * 40 + 32 + + 17 DIV 75 + + 94 AS col2
----
1366

skipif mysql # not compatible
query I rowsort label-7343
SELECT + 31 * 40 + 32 + + 17 / 75 + + 94 AS col2
----
1366

onlyif mysql # aggregate syntax: 
query I rowsort label-7344
SELECT 3 * + 65 * + - COUNT( DISTINCT + 89 )
----
-195

skipif mysql # not compatible
query I rowsort label-7344
SELECT 3 * + 65 * + - COUNT ( DISTINCT + 89 )
----
-195

query I rowsort
SELECT 84 * - - 71 - 67
----
5897

query I rowsort
SELECT ALL - COALESCE ( - 95, - 5, - 31, - 96 + - - 27 + 25 + ( - 73 ) )
----
95

query I rowsort
SELECT 29 * 55
----
1595

query I rowsort
SELECT 85 * - 86 + + 74
----
-7236

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7349
SELECT - 93 * - COUNT( * ) + + ( - + 13 ) * - 69 + - COUNT( * ) DIV - COUNT( * ) + - 40
----
951

skipif mysql # not compatible
query I rowsort label-7349
SELECT - 93 * - COUNT ( * ) + + ( - + 13 ) * - 69 + - COUNT ( * ) / - COUNT ( * ) + - 40
----
951

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7350
SELECT ALL - COALESCE ( + 93, - CAST( NULL AS SIGNED ), - 77 ) DIV + 93
----
-1

skipif mysql # not compatible
query I rowsort label-7350
SELECT ALL - COALESCE ( + 93, - CAST ( NULL AS INTEGER ), - 77 ) / + 93
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7351
SELECT DISTINCT + MIN( - 98 ) + + SUM( - - 40 ) * + 34 AS col2
----
1262

skipif mysql # not compatible
query I rowsort label-7351
SELECT DISTINCT + MIN ( - 98 ) + + SUM ( - - 40 ) * + 34 AS col2
----
1262

query I rowsort
SELECT DISTINCT - 13 * ( - 57 )
----
741

query I rowsort
SELECT ALL + ( + 17 ) + - 44
----
-27

onlyif mysql # aggregate syntax: 
query II rowsort label-7354
SELECT DISTINCT - COUNT( * ) * - 67 AS col1, 73
----
67
73

skipif mysql # not compatible
query II rowsort label-7354
SELECT DISTINCT - COUNT ( * ) * - 67 AS col1, 73
----
67
73

query I rowsort
SELECT 31 * - 27 + - 8 + + 36 AS col0
----
-809

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7356
SELECT - 74 / - + CAST( NULL AS SIGNED ) * + 98 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7356
SELECT - 74 / - + CAST ( NULL AS INTEGER ) * + 98 AS col0
----
NULL

query I rowsort
SELECT COALESCE ( - ( + 92 ), + + 59 )
----
-92

query I rowsort
SELECT + - 13 + + 66
----
53

onlyif mysql # aggregate syntax: 
query II rowsort label-7359
SELECT ALL + 33 - 9 * - + MIN( ALL - 29 ) AS col1, 92
----
-228
92

skipif mysql # not compatible
query II rowsort label-7359
SELECT ALL + 33 - 9 * - + MIN ( ALL - 29 ) AS col1, 92
----
-228
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7360
SELECT + - 52 * - - 1 AS col2, - CAST( NULL AS SIGNED ) + + NULLIF ( 37, + 56 + + 6 ) + COUNT( * ) AS col0
----
-52
NULL

skipif mysql # not compatible
query II rowsort label-7360
SELECT + - 52 * - - 1 AS col2, - CAST ( NULL AS INTEGER ) + + NULLIF ( 37, + 56 + + 6 ) + COUNT ( * ) AS col0
----
-52
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7361
SELECT + + 78 + 91 DIV - 18
----
73

skipif mysql # not compatible
query I rowsort label-7361
SELECT + + 78 + 91 / - 18
----
73

onlyif mysql # aggregate syntax: 
query II rowsort label-7362
SELECT ALL - COUNT( * ) * CASE + - 68 WHEN - 92 THEN NULL WHEN + COALESCE ( - 19, COUNT( * ) ) THEN - 12 ELSE COUNT( ALL 64 ) + - 94 + + - 4 * + 58 END + - 43 AS col2, 50
----
282
50

skipif mysql # not compatible
query II rowsort label-7362
SELECT ALL - COUNT ( * ) * CASE + - 68 WHEN - 92 THEN NULL WHEN + COALESCE ( - 19, COUNT ( * ) ) THEN - 12 ELSE COUNT ( ALL 64 ) + - 94 + + - 4 * + 58 END + - 43 AS col2, 50
----
282
50

onlyif mysql # aggregate syntax: 
query I rowsort label-7363
SELECT - COUNT( DISTINCT - - 58 ) * + - 6 * - 88
----
-528

skipif mysql # not compatible
query I rowsort label-7363
SELECT - COUNT ( DISTINCT - - 58 ) * + - 6 * - 88
----
-528

query I rowsort
SELECT + 53 * + + 82
----
4346

query I rowsort
SELECT ( + + 19 )
----
19

query I rowsort
SELECT + + 37 + 87 col1
----
124

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7367
SELECT - - COUNT( * ) * - - 2 * + 69 DIV - - COUNT( * ) AS col0
----
138

skipif mysql # not compatible
query I rowsort label-7367
SELECT - - COUNT ( * ) * - - 2 * + 69 / - - COUNT ( * ) AS col0
----
138

query I rowsort
SELECT DISTINCT 59 * + 10 * - 76 + ( + - 41 ) AS col0
----
-44881

query I rowsort
SELECT ALL ( - 55 ) AS col0
----
-55

query I rowsort
SELECT - NULLIF ( - - 30, + - 76 + + 41 - 21 + 53 ) AS col1
----
-30

query I rowsort
SELECT ( - - ( 29 ) )
----
29

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7372
SELECT - 76 DIV - CAST( 76 AS SIGNED ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7372
SELECT - 76 / - CAST ( 76 AS INTEGER ) AS col2
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7373
SELECT + COUNT( ALL - + 82 ) * + + NULLIF ( - SUM( 48 ), 44 DIV + 51 - + + COUNT( - + 50 ) * + 57 - - 35 + 94 * - + MAX( DISTINCT + + ( + 51 ) ) ) DIV - 93
----
0

skipif mysql # not compatible
query I rowsort label-7373
SELECT + COUNT ( ALL - + 82 ) * + + NULLIF ( - SUM ( 48 ), 44 / + 51 - + + COUNT ( - + 50 ) * + 57 - - 35 + 94 * - + MAX ( DISTINCT + + ( + 51 ) ) ) / - 93
----
0

query I rowsort
SELECT + 47 - - - 48
----
-1

query I rowsort
SELECT + ( - - 31 )
----
31

query II rowsort
SELECT - 29 * - ( + + NULLIF ( 54, + + 0 ) ), - ( + 56 ) AS col1
----
1566
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-7377
SELECT DISTINCT + 52 * + + 30 + COUNT( * ) * + 42 AS col2
----
1602

skipif mysql # not compatible
query I rowsort label-7377
SELECT DISTINCT + 52 * + + 30 + COUNT ( * ) * + 42 AS col2
----
1602

query I rowsort
SELECT ALL + 69 * + - 17 + + 10 * - 42
----
-1593

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7379
SELECT ALL - 35 * + NULLIF ( - - 24, - CAST( NULL AS SIGNED ) * - - COUNT( * ) + - COUNT( * ) ) AS col1
----
-840

skipif mysql # not compatible
query I rowsort label-7379
SELECT ALL - 35 * + NULLIF ( - - 24, - CAST ( NULL AS INTEGER ) * - - COUNT ( * ) + - COUNT ( * ) ) AS col1
----
-840

query II rowsort
SELECT ALL + 38, + 41 AS col1
----
38
41

query I rowsort
SELECT - 34 * - 33 * - - ( + 13 ) AS col1
----
14586

query I rowsort
SELECT ALL + ( - - ( + 94 ) ) AS col1
----
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7383
SELECT ALL - MIN( DISTINCT + + 47 ) * + + NULLIF ( ( - 7 ), - 66 * - + 30 / CAST( NULL AS SIGNED ) - - - 57 ) + + 69 * COUNT( * ) + 46 + + - 38 AS col0
----
406

skipif mysql # not compatible
query I rowsort label-7383
SELECT ALL - MIN ( DISTINCT + + 47 ) * + + NULLIF ( ( - 7 ), - 66 * - + 30 / CAST ( NULL AS INTEGER ) - - - 57 ) + + 69 * COUNT ( * ) + 46 + + - 38 AS col0
----
406

query I rowsort
SELECT NULLIF ( + 12, + 12 )
----
NULL

query I rowsort
SELECT ALL + 42 * 38 + + 87 + + 98 * 10 AS col2
----
2663

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7386
SELECT + CAST( - + 56 AS SIGNED ) AS col1
----
-56

skipif mysql # not compatible
query I rowsort label-7386
SELECT + CAST ( - + 56 AS INTEGER ) AS col1
----
-56

query I rowsort
SELECT COALESCE ( 90, 53, 69 )
----
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7388
SELECT + CAST( + + 29 AS SIGNED )
----
29

skipif mysql # not compatible
query I rowsort label-7388
SELECT + CAST ( + + 29 AS INTEGER )
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-7389
SELECT COALESCE ( 92, - + SUM( ALL + 13 ) * - 48 )
----
92

skipif mysql # not compatible
query I rowsort label-7389
SELECT COALESCE ( 92, - + SUM ( ALL + 13 ) * - 48 )
----
92

query I rowsort
SELECT DISTINCT + ( - 13 ) AS col1
----
-13

onlyif mysql # aggregate syntax: 
query II rowsort label-7391
SELECT 75, 99 * - COUNT( * ) AS col2
----
75
-99

skipif mysql # not compatible
query II rowsort label-7391
SELECT 75, 99 * - COUNT ( * ) AS col2
----
75
-99

query II rowsort
SELECT - 88 - + 44 + - 50, 90 AS col1
----
-182
90

onlyif mysql # aggregate syntax: 
query I rowsort label-7393
SELECT - + MIN( 10 ) * + COALESCE ( 60, + - 87 * + 33 * 57 )
----
-600

skipif mysql # not compatible
query I rowsort label-7393
SELECT - + MIN ( 10 ) * + COALESCE ( 60, + - 87 * + 33 * 57 )
----
-600

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7394
SELECT - COALESCE ( - 81, + 48 ) DIV + SUM( + - 73 ) AS col1, + 31 * 53 - + CASE - - 3 WHEN 11 THEN - + 37 WHEN + COUNT( * ) THEN NULL ELSE NULL END + + - 1 DIV - ( MAX( + + 51 ) )
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-7394
SELECT - COALESCE ( - 81, + 48 ) / + SUM ( + - 73 ) AS col1, + 31 * 53 - + CASE - - 3 WHEN 11 THEN - + 37 WHEN + COUNT ( * ) THEN NULL ELSE NULL END + + - 1 / - ( MAX ( + + 51 ) )
----
-1
NULL

query I rowsort
SELECT DISTINCT + 70 * - 83
----
-5810

onlyif mysql # aggregate syntax: 
query I rowsort label-7396
SELECT - MIN( - - 75 ) AS col2
----
-75

skipif mysql # not compatible
query I rowsort label-7396
SELECT - MIN ( - - 75 ) AS col2
----
-75

query I rowsort
SELECT ALL + - 51 * + 87 AS col0
----
-4437

onlyif mysql # aggregate syntax: 
query I rowsort label-7398
SELECT - - COUNT( * ) + - - COUNT( * ) AS col1
----
2

skipif mysql # not compatible
query I rowsort label-7398
SELECT - - COUNT ( * ) + - - COUNT ( * ) AS col1
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7399
SELECT - - COUNT( * ) DIV + COUNT( * ) + - 67 + 10 - + COUNT( * ) + 14 col0
----
-43

skipif mysql # not compatible
query I rowsort label-7399
SELECT - - COUNT ( * ) / + COUNT ( * ) + - 67 + 10 - + COUNT ( * ) + 14 col0
----
-43

query I rowsort
SELECT ALL + 10 * - 2
----
-20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7401
SELECT - + CAST( NULL AS SIGNED ) + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7401
SELECT - + CAST ( NULL AS INTEGER ) + COUNT ( * ) AS col2
----
NULL

query I rowsort
SELECT + + 41 - - + 16 AS col2
----
57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7403
SELECT ALL + CAST( + - 46 AS SIGNED )
----
-46

skipif mysql # not compatible
query I rowsort label-7403
SELECT ALL + CAST ( + - 46 AS INTEGER )
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-7404
SELECT - - SUM( - 95 ) + - - 98 + + + 99 col0
----
102

skipif mysql # not compatible
query I rowsort label-7404
SELECT - - SUM ( - 95 ) + - - 98 + + + 99 col0
----
102

query I rowsort
SELECT - COALESCE ( 24, - + 91 ) AS col2
----
-24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7406
SELECT - COUNT( * ) DIV - - COUNT( 96 )
----
-1

skipif mysql # not compatible
query I rowsort label-7406
SELECT - COUNT ( * ) / - - COUNT ( 96 )
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-7407
SELECT - + 96 + - ( + 80 ) DIV 71
----
-97

skipif mysql # not compatible
query I rowsort label-7407
SELECT - + 96 + - ( + 80 ) / 71
----
-97

onlyif mysql # aggregate syntax: 
query II rowsort label-7408
SELECT ALL ( - - COUNT( ALL + + 91 ) ) AS col1, + 2 col1
----
1
2

skipif mysql # not compatible
query II rowsort label-7408
SELECT ALL ( - - COUNT ( ALL + + 91 ) ) AS col1, + 2 col1
----
1
2

onlyif mysql # aggregate syntax: 
query I rowsort label-7409
SELECT DISTINCT - NULLIF ( COUNT( * ), + + 78 ) / + 90 + + - COUNT( * ) - - MAX( - - 7 ) + + + COUNT( * ) + - - CASE 9 WHEN - 75 THEN NULL WHEN + 45 THEN 7 END * COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7409
SELECT DISTINCT - NULLIF ( COUNT ( * ), + + 78 ) / + 90 + + - COUNT ( * ) - - MAX ( - - 7 ) + + + COUNT ( * ) + - - CASE 9 WHEN - 75 THEN NULL WHEN + 45 THEN 7 END * COUNT ( * ) AS col1
----
NULL

query I rowsort
SELECT + 31 + + 58 AS col2
----
89

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7411
SELECT ALL COUNT( ALL 99 ) DIV - 89 * ( - ( - 73 ) ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7411
SELECT ALL COUNT ( ALL 99 ) / - 89 * ( - ( - 73 ) ) AS col1
----
0

query I rowsort
SELECT + 45 + 34
----
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7413
SELECT + - 14 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7413
SELECT + - 14 * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-7414
SELECT 37 AS col1, - 73 + + 95 DIV - 78 AS col0
----
37
-74

skipif mysql # not compatible
query II rowsort label-7414
SELECT 37 AS col1, - 73 + + 95 / - 78 AS col0
----
37
-74

query I rowsort
SELECT - ( + 75 ) AS col0
----
-75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7416
SELECT ALL COUNT( DISTINCT - - ( 54 ) ) + - 6 + - - CAST( + - 43 AS SIGNED ) + + 19 + + 92 + COUNT( + 83 ) * + - CAST( NULL AS SIGNED ) + - ( 60 ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7416
SELECT ALL COUNT ( DISTINCT - - ( 54 ) ) + - 6 + - - CAST ( + - 43 AS INTEGER ) + + 19 + + 92 + COUNT ( + 83 ) * + - CAST ( NULL AS INTEGER ) + - ( 60 ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7417
SELECT - COUNT( * ) + - 27
----
-28

skipif mysql # not compatible
query I rowsort label-7417
SELECT - COUNT ( * ) + - 27
----
-28

query I rowsort
SELECT ALL 59 * + 28 * + 94
----
155288

onlyif mysql # aggregate syntax: 
query I rowsort label-7419
SELECT ALL 52 + SUM( DISTINCT 35 ) + + 51 + 47 AS col1
----
185

skipif mysql # not compatible
query I rowsort label-7419
SELECT ALL 52 + SUM ( DISTINCT 35 ) + + 51 + 47 AS col1
----
185

onlyif mysql # aggregate syntax: 
query I rowsort label-7420
SELECT ALL COUNT( * ) + 83 + - ( + + 92 )
----
-8

skipif mysql # not compatible
query I rowsort label-7420
SELECT ALL COUNT ( * ) + 83 + - ( + + 92 )
----
-8

query II rowsort
SELECT DISTINCT - 71 AS col1, + 66
----
-71
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7422
SELECT DISTINCT 81 + + CAST( + 0 AS SIGNED ) DIV COUNT( * ) AS col2
----
81

skipif mysql # not compatible
query I rowsort label-7422
SELECT DISTINCT 81 + + CAST ( + 0 AS INTEGER ) / COUNT ( * ) AS col2
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-7423
SELECT DISTINCT - MIN( DISTINCT 46 )
----
-46

skipif mysql # not compatible
query I rowsort label-7423
SELECT DISTINCT - MIN ( DISTINCT 46 )
----
-46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7424
SELECT DISTINCT ( 32 ) + CAST( NULL AS SIGNED ) / 92 AS col1, COUNT( * ) * + 48 AS col0
----
NULL
48

skipif mysql # not compatible
query II rowsort label-7424
SELECT DISTINCT ( 32 ) + CAST ( NULL AS INTEGER ) / 92 AS col1, COUNT ( * ) * + 48 AS col0
----
NULL
48

query I rowsort
SELECT - 22 * - - 93 + + 45 + 66 + - 99
----
-2034

onlyif mysql # aggregate syntax: 
query II rowsort label-7426
SELECT + 29, 50 - - MAX( 91 ) + - COUNT( ALL - 31 ) AS col2
----
29
140

skipif mysql # not compatible
query II rowsort label-7426
SELECT + 29, 50 - - MAX ( 91 ) + - COUNT ( ALL - 31 ) AS col2
----
29
140

query I rowsort
SELECT 48 * 95 AS col1
----
4560

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7428
SELECT ALL ( + COUNT( * ) ) DIV 13
----
0

skipif mysql # not compatible
query I rowsort label-7428
SELECT ALL ( + COUNT ( * ) ) / 13
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7429
SELECT ALL - 99, - 81 * NULLIF ( + - 91, + 52 ) * COUNT( * ) + + + ( - 91 ) AS col0
----
-99
7280

skipif mysql # not compatible
query II rowsort label-7429
SELECT ALL - 99, - 81 * NULLIF ( + - 91, + 52 ) * COUNT ( * ) + + + ( - 91 ) AS col0
----
-99
7280

onlyif mysql # aggregate syntax: 
query I rowsort label-7430
SELECT DISTINCT - MIN( ALL - 9 ) AS col1
----
9

skipif mysql # not compatible
query I rowsort label-7430
SELECT DISTINCT - MIN ( ALL - 9 ) AS col1
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7431
SELECT ALL + - 15 * + AVG ( + CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7431
SELECT ALL + - 15 * + AVG ( + CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7432
SELECT CASE + COUNT( * ) WHEN + + 3 THEN ( - 28 ) WHEN COUNT( * ) THEN - COALESCE ( - + 65, - 83 * - 81 + + 14 * - NULLIF ( + 24, 60 DIV + 84 ) + - 30 * - + COUNT( * ), 83 * + 60 - - - 63 ) ELSE + + 58 + - - ( + ( + 19 ) ) END + CASE 97 WHEN 24 THEN 76 ELSE + + COUNT( + ( + 47 ) ) DIV - 79 END AS col2
----
65

skipif mysql # not compatible
query I rowsort label-7432
SELECT CASE + COUNT ( * ) WHEN + + 3 THEN ( - 28 ) WHEN COUNT ( * ) THEN - COALESCE ( - + 65, - 83 * - 81 + + 14 * - NULLIF ( + 24, 60 / + 84 ) + - 30 * - + COUNT ( * ), 83 * + 60 - - - 63 ) ELSE + + 58 + - - ( + ( + 19 ) ) END + CASE 97 WHEN 24 THEN 76 ELSE + + COUNT ( + ( + 47 ) ) / - 79 END AS col2
----
65

query II rowsort
SELECT 46, + 49 AS col1
----
46
49

query I rowsort
SELECT + 13 + - - 51 + 81 col1
----
145

query I rowsort
SELECT + + COALESCE ( 48, - 39 * 85 + - 24 ) AS col0
----
48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7436
SELECT - + CAST( + + 27 AS SIGNED )
----
-27

skipif mysql # not compatible
query I rowsort label-7436
SELECT - + CAST ( + + 27 AS INTEGER )
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-7437
SELECT 48 + + - COUNT( * ) * - - 50 AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-7437
SELECT 48 + + - COUNT ( * ) * - - 50 AS col0
----
-2

query III rowsort
SELECT ALL 89 AS col0, 43 * + - 54 * + + 61 AS col1, 96 * - - 90 + + 14 AS col0
----
89
-141642
8654

query II rowsort
SELECT + 0, - 27 AS col1
----
0
-27

query II rowsort
SELECT DISTINCT - 79 col0, 30 AS col2
----
-79
30

onlyif mysql # aggregate syntax: 
query I rowsort label-7441
SELECT - COUNT( - 2 )
----
-1

skipif mysql # not compatible
query I rowsort label-7441
SELECT - COUNT ( - 2 )
----
-1

query I rowsort
SELECT ALL NULLIF ( - ( 28 ), + 58 ) col2
----
-28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7443
SELECT + COUNT( * ) * - + 92 + 72 - - CAST( + 32 AS SIGNED ) + + 95 * + CAST( + 47 AS SIGNED ) * - - CAST( - - 61 AS SIGNED ) + + COUNT( * ) + - COUNT( * ) DIV + + 29 * - - 19 AS col1
----
272378

skipif mysql # not compatible
query I rowsort label-7443
SELECT + COUNT ( * ) * - + 92 + 72 - - CAST ( + 32 AS INTEGER ) + + 95 * + CAST ( + 47 AS INTEGER ) * - - CAST ( - - 61 AS INTEGER ) + + COUNT ( * ) + - COUNT ( * ) / + + 29 * - - 19 AS col1
----
272378

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7444
SELECT ALL + - NULLIF ( 83, + + 59 ) + COALESCE ( NULLIF ( + CAST( + + 69 AS SIGNED ), + 5 ), + 64 * 21 * + - 70 + 67 )
----
-14

skipif mysql # not compatible
query I rowsort label-7444
SELECT ALL + - NULLIF ( 83, + + 59 ) + COALESCE ( NULLIF ( + CAST ( + + 69 AS INTEGER ), + 5 ), + 64 * 21 * + - 70 + 67 )
----
-14

query I rowsort
SELECT 7 - + 12 * 84 * 76 * 12 AS col2
----
-919289

query I rowsort
SELECT ALL + 7 + 15 + - 71 * + 16 AS col1
----
-1114

query I rowsort
SELECT 78 * 76 * - 40 AS col2
----
-237120

onlyif mysql # aggregate syntax: 
query I rowsort label-7448
SELECT DISTINCT - 44 + - COUNT( - 35 )
----
-45

skipif mysql # not compatible
query I rowsort label-7448
SELECT DISTINCT - 44 + - COUNT ( - 35 )
----
-45

query I rowsort
SELECT ALL 11 + - 36
----
-25

onlyif mysql # DIV for integer division: 
query I rowsort label-7450
SELECT ALL 29 DIV + 21
----
1

skipif mysql # not compatible
query I rowsort label-7450
SELECT ALL 29 / + 21
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7451
SELECT DISTINCT - 90 + - 44 * + COUNT( * ) AS col1
----
-134

skipif mysql # not compatible
query I rowsort label-7451
SELECT DISTINCT - 90 + - 44 * + COUNT ( * ) AS col1
----
-134

onlyif mysql # DIV for integer division: 
query I rowsort label-7452
SELECT - 81 DIV + + 65 + + 18
----
17

skipif mysql # not compatible
query I rowsort label-7452
SELECT - 81 / + + 65 + + 18
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-7453
SELECT COALESCE ( - + 8, - 3 + - COUNT( * ) * 98 * NULLIF ( - ( ( - 32 ) ), - 39 * - - 71 - ( + 99 ) ) + 94 + - 21 * + CASE 0 WHEN - 69 THEN NULL WHEN + + CASE + + 40 WHEN NULLIF ( + 45, COUNT( * ) ) THEN NULL WHEN - + 78 THEN + NULLIF ( - ( - 76 ), - ( + 41 ) * + 4 + - ( 0 ) - AVG ( COALESCE ( - 92, + 7 ) ) * 1 ) * COUNT( * ) ELSE NULL END THEN + COUNT( * ) WHEN 53 * 34 + + 60 * + 93 THEN NULL ELSE NULL END, 56 ) + - 8 AS col2
----
-16

skipif mysql # not compatible
query I rowsort label-7453
SELECT COALESCE ( - + 8, - 3 + - COUNT ( * ) * 98 * NULLIF ( - ( ( - 32 ) ), - 39 * - - 71 - ( + 99 ) ) + 94 + - 21 * + CASE 0 WHEN - 69 THEN NULL WHEN + + CASE + + 40 WHEN NULLIF ( + 45, COUNT ( * ) ) THEN NULL WHEN - + 78 THEN + NULLIF ( - ( - 76 ), - ( + 41 ) * + 4 + - ( 0 ) - AVG ( COALESCE ( - 92, + 7 ) ) * 1 ) * COUNT ( * ) ELSE NULL END THEN + COUNT ( * ) WHEN 53 * 34 + + 60 * + 93 THEN NULL ELSE NULL END, 56 ) + - 8 AS col2
----
-16

query I rowsort
SELECT DISTINCT ( + 67 ) * + 72 * 40
----
192960

query I rowsort
SELECT ALL 63 - + 54 - - 27
----
36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7456
SELECT ALL CAST( NULL AS SIGNED ) * + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7456
SELECT ALL CAST ( NULL AS INTEGER ) * + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT NULLIF ( 65, ( - 80 ) ) * 21 col2
----
1365

query I rowsort
SELECT ALL 98 - - + 39 + - 47 * - - 34 + - + 76
----
-1537

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7459
SELECT DISTINCT + CASE - 18 WHEN + - MAX( DISTINCT 61 ) * + COUNT( * ) + - 99 / CAST( NULL AS DECIMAL ) THEN + 71 ELSE NULL END * + + 40
----
NULL

skipif mysql # not compatible
query I rowsort label-7459
SELECT DISTINCT + CASE - 18 WHEN + - MAX ( DISTINCT 61 ) * + COUNT ( * ) + - 99 / CAST ( NULL AS REAL ) THEN + 71 ELSE NULL END * + + 40
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7460
SELECT 17 DIV + - COUNT( * )
----
-17

skipif mysql # not compatible
query I rowsort label-7460
SELECT 17 / + - COUNT ( * )
----
-17

query I rowsort
SELECT ALL - COALESCE ( 41, 79 * - - 65 ) col0
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-7462
SELECT + + ( + MIN( DISTINCT - - 3 ) ) AS col2
----
3

skipif mysql # not compatible
query I rowsort label-7462
SELECT + + ( + MIN ( DISTINCT - - 3 ) ) AS col2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7463
SELECT - 36 - - 74 * + - COUNT( * )
----
-110

skipif mysql # not compatible
query I rowsort label-7463
SELECT - 36 - - 74 * + - COUNT ( * )
----
-110

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7464
SELECT MIN( + 10 ) DIV + - COUNT( * ) AS col1
----
-10

skipif mysql # not compatible
query I rowsort label-7464
SELECT MIN ( + 10 ) / + - COUNT ( * ) AS col1
----
-10

query I rowsort
SELECT 27 * - 26 AS col0
----
-702

query I rowsort
SELECT 86 * - 37
----
-3182

onlyif mysql # aggregate syntax: 
query I rowsort label-7467
SELECT ALL NULLIF ( + 73, + 52 * SUM( - 96 ) / - + 46 ) + + 98 * 85 * + 39 * - 39
----
-12669857

skipif mysql # not compatible
query I rowsort label-7467
SELECT ALL NULLIF ( + 73, + 52 * SUM ( - 96 ) / - + 46 ) + + 98 * 85 * + 39 * - 39
----
-12669857

query I rowsort
SELECT + 86 - 56
----
30

onlyif mysql # DIV for integer division: 
query I rowsort label-7469
SELECT 42 DIV 68
----
0

skipif mysql # not compatible
query I rowsort label-7469
SELECT 42 / 68
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7470
SELECT DISTINCT - 25 * - 18 * CAST( COUNT( * ) AS SIGNED ) AS col2
----
450

skipif mysql # not compatible
query I rowsort label-7470
SELECT DISTINCT - 25 * - 18 * CAST ( COUNT ( * ) AS INTEGER ) AS col2
----
450

query I rowsort
SELECT 76 + + - 63
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-7472
SELECT COALESCE ( - COUNT( * ), + 82 * 29 * 23 + - 99 ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-7472
SELECT COALESCE ( - COUNT ( * ), + 82 * 29 * 23 + - 99 ) col0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-7473
SELECT ALL 10 + - ( + 50 ) + ( + - 52 ) - + 49 DIV 22 * - 57 * 88 col1
----
9940

skipif mysql # not compatible
query I rowsort label-7473
SELECT ALL 10 + - ( + 50 ) + ( + - 52 ) - + 49 / 22 * - 57 * 88 col1
----
9940

onlyif mysql # aggregate syntax: 
query II rowsort label-7474
SELECT 22 + COUNT( * ) + - - 93 AS col2, + 34
----
116
34

skipif mysql # not compatible
query II rowsort label-7474
SELECT 22 + COUNT ( * ) + - - 93 AS col2, + 34
----
116
34

query I rowsort
SELECT 65 - - 65
----
130

onlyif mysql # aggregate syntax: 
query I rowsort label-7476
SELECT - - COUNT( 52 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-7476
SELECT - - COUNT ( 52 ) AS col1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7477
SELECT + CAST( NULL AS SIGNED ) + + 59 + + 61 + - + 4 + + + ( - 49 ) * 51 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7477
SELECT + CAST ( NULL AS INTEGER ) + + 59 + + 61 + - + 4 + + + ( - 49 ) * 51 AS col2
----
NULL

query I rowsort
SELECT - 30 * 54
----
-1620

onlyif mysql # aggregate syntax: 
query II rowsort label-7479
SELECT - CASE + COUNT( * ) WHEN - ( - 23 ) THEN NULL WHEN 78 * - 96 + - 82 THEN + - 19 ELSE NULL END AS col0, 2 col0
----
NULL
2

skipif mysql # not compatible
query II rowsort label-7479
SELECT - CASE + COUNT ( * ) WHEN - ( - 23 ) THEN NULL WHEN 78 * - 96 + - 82 THEN + - 19 ELSE NULL END AS col0, 2 col0
----
NULL
2

onlyif mysql # aggregate syntax: 
query II rowsort label-7480
SELECT 6 AS col0, - COUNT( * )
----
6
-1

skipif mysql # not compatible
query II rowsort label-7480
SELECT 6 AS col0, - COUNT ( * )
----
6
-1

query I rowsort
SELECT - 94 + - 92
----
-186

query I rowsort
SELECT - 70 + - 21 * - 46
----
896

onlyif mysql # DIV for integer division: 
query I rowsort label-7483
SELECT DISTINCT - 85 DIV + + 96 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7483
SELECT DISTINCT - 85 / + + 96 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7484
SELECT ALL SUM( ALL - - 72 ) AS col1
----
72

skipif mysql # not compatible
query I rowsort label-7484
SELECT ALL SUM ( ALL - - 72 ) AS col1
----
72

query I rowsort
SELECT - 64 * 4 col2
----
-256

query I rowsort
SELECT DISTINCT - ( + 77 ) - - + 95
----
18

query II rowsort
SELECT - 73, + 52 AS col1
----
-73
52

onlyif mysql # aggregate syntax: 
query I rowsort label-7488
SELECT ( - ( - COUNT( + 5 ) ) )
----
1

skipif mysql # not compatible
query I rowsort label-7488
SELECT ( - ( - COUNT ( + 5 ) ) )
----
1

query I rowsort
SELECT DISTINCT + ( + CASE - 98 WHEN + 64 THEN NULL WHEN + - 7 THEN - 51 ELSE NULL END )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7490
SELECT - 28 * - NULLIF ( COUNT( * ), + 99 ) AS col1
----
28

skipif mysql # not compatible
query I rowsort label-7490
SELECT - 28 * - NULLIF ( COUNT ( * ), + 99 ) AS col1
----
28

query I rowsort
SELECT ALL - 68 * + ( + + 55 ) AS col1
----
-3740

query I rowsort
SELECT DISTINCT + ( + - 54 ) * 26
----
-1404

onlyif mysql # aggregate syntax: 
query I rowsort label-7493
SELECT - COUNT( * ) * - NULLIF ( + - 56, 57 )
----
-56

skipif mysql # not compatible
query I rowsort label-7493
SELECT - COUNT ( * ) * - NULLIF ( + - 56, 57 )
----
-56

query I rowsort
SELECT DISTINCT + ( 60 ) AS col0
----
60

query I rowsort
SELECT DISTINCT 9 * - 65
----
-585

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7496
SELECT - - 58 / NULLIF ( - CAST( NULL AS SIGNED ), + COALESCE ( - 91, 66 ) ) * + COUNT( * ) + - - 8 * - COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7496
SELECT - - 58 / NULLIF ( - CAST ( NULL AS INTEGER ), + COALESCE ( - 91, 66 ) ) * + COUNT ( * ) + - - 8 * - COUNT ( * ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7497
SELECT + 6, COUNT( * ) AS col2
----
6
1

skipif mysql # not compatible
query II rowsort label-7497
SELECT + 6, COUNT ( * ) AS col2
----
6
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7498
SELECT + 27 * - 45 - - 74, 28 * - CAST( NULL AS SIGNED ) * + + CASE + 95 WHEN + - 38 THEN ( - COUNT( ALL + + ( 92 ) ) ) ELSE NULL END + + 44 + + - CASE + 21 WHEN SUM( + 99 ) / 69 - + - 4 + - + AVG ( ALL - - 29 ) THEN AVG ( 76 ) * - CAST( + 60 AS SIGNED ) + 0 ELSE + 63 * + 67 + 58 + + - COUNT( * ) * ( 16 ) - + 70 * ( 28 ) END * - 56 col1
----
-1141
NULL

skipif mysql # not compatible
query II rowsort label-7498
SELECT + 27 * - 45 - - 74, 28 * - CAST ( NULL AS INTEGER ) * + + CASE + 95 WHEN + - 38 THEN ( - COUNT ( ALL + + ( 92 ) ) ) ELSE NULL END + + 44 + + - CASE + 21 WHEN SUM ( + 99 ) / 69 - + - 4 + - + AVG ( ALL - - 29 ) THEN AVG ( 76 ) * - CAST ( + 60 AS INTEGER ) + 0 ELSE + 63 * + 67 + 58 + + - COUNT ( * ) * ( 16 ) - + 70 * ( 28 ) END * - 56 col1
----
-1141
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7499
SELECT + + 53 - 2 + - - COUNT( * ) - COUNT( * ) * 33 * + 75 AS col2
----
-2423

skipif mysql # not compatible
query I rowsort label-7499
SELECT + + 53 - 2 + - - COUNT ( * ) - COUNT ( * ) * 33 * + 75 AS col2
----
-2423

query I rowsort
SELECT DISTINCT + 57 * - + 52 + + - 3 + + ( + + 13 ) AS col2
----
-2954

onlyif mysql # aggregate syntax: 
query II rowsort label-7501
SELECT DISTINCT 89 * - COUNT( * ) + + 82, - 94 * + 17 - + 64 AS col1
----
-7
-1662

skipif mysql # not compatible
query II rowsort label-7501
SELECT DISTINCT 89 * - COUNT ( * ) + + 82, - 94 * + 17 - + 64 AS col1
----
-7
-1662

query I rowsort
SELECT ALL 56 * - 78 + + 53 * - ( 69 )
----
-8025

query I rowsort
SELECT + 97 + 8
----
105

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7504
SELECT + CAST( NULL AS SIGNED ), SUM( DISTINCT 41 ) * 16 * + - 47 * ( - 62 ) - - 93 + - 67 * + + 33 AS col2
----
NULL
1909466

skipif mysql # not compatible
query II rowsort label-7504
SELECT + CAST ( NULL AS INTEGER ), SUM ( DISTINCT 41 ) * 16 * + - 47 * ( - 62 ) - - 93 + - 67 * + + 33 AS col2
----
NULL
1909466

query I rowsort
SELECT - 50 * + 31
----
-1550

onlyif mysql # aggregate syntax: 
query I rowsort label-7506
SELECT + COUNT( * ) * - MAX( ALL - 45 ) + - - COUNT( * ) + + 73 * + 50 * + 23
----
83996

skipif mysql # not compatible
query I rowsort label-7506
SELECT + COUNT ( * ) * - MAX ( ALL - 45 ) + - - COUNT ( * ) + + 73 * + 50 * + 23
----
83996

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7507
SELECT DISTINCT + 42 * 23 + + 97 AS col1, ( - COALESCE ( - COUNT( * ), 96 - - 40 * - SUM( DISTINCT + 64 ), - + 15 - - 98 + + 61 + - 31 + 79 * + - NULLIF ( - 5, - 52 ) * - - 85 * - CAST( + - ( + - 87 ) AS SIGNED ) DIV + 89 ) ) AS col0
----
1063
1

skipif mysql # not compatible
query II rowsort label-7507
SELECT DISTINCT + 42 * 23 + + 97 AS col1, ( - COALESCE ( - COUNT ( * ), 96 - - 40 * - SUM ( DISTINCT + 64 ), - + 15 - - 98 + + 61 + - 31 + 79 * + - NULLIF ( - 5, - 52 ) * - - 85 * - CAST ( + - ( + - 87 ) AS INTEGER ) / + 89 ) ) AS col0
----
1063
1

onlyif mysql # aggregate syntax: 
query II rowsort label-7508
SELECT + - SUM( DISTINCT - 99 ) + ( 0 ) AS col1, + 2 - + + 35 + + 39
----
99
6

skipif mysql # not compatible
query II rowsort label-7508
SELECT + - SUM ( DISTINCT - 99 ) + ( 0 ) AS col1, + 2 - + + 35 + + 39
----
99
6

onlyif mysql # aggregate syntax: 
query I rowsort label-7509
SELECT ALL + 71 + - 60 * SUM( DISTINCT 87 )
----
-5149

skipif mysql # not compatible
query I rowsort label-7509
SELECT ALL + 71 + - 60 * SUM ( DISTINCT 87 )
----
-5149

query I rowsort
SELECT DISTINCT 65 - 68 AS col0
----
-3

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-7511
SELECT ALL SUM( + 70 ), + 99 * ( + + CAST( NULL AS DECIMAL ) ) AS col1
----
70
NULL

skipif mysql # not compatible
query II rowsort label-7511
SELECT ALL SUM ( + 70 ), + 99 * ( + + CAST ( NULL AS REAL ) ) AS col1
----
70
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7512
SELECT ALL MIN( DISTINCT + - 28 ) * - - 93 * - 63 AS col2
----
164052

skipif mysql # not compatible
query I rowsort label-7512
SELECT ALL MIN ( DISTINCT + - 28 ) * - - 93 * - 63 AS col2
----
164052

onlyif mysql # DIV for integer division: 
query I rowsort label-7513
SELECT + 94 DIV 57
----
1

skipif mysql # not compatible
query I rowsort label-7513
SELECT + 94 / 57
----
1

query II rowsort
SELECT ALL 0 * - + 48 AS col1, 61 * + 60 + + + 12 + 0
----
0
3672

query I rowsort
SELECT + 11 * - + 8 col2
----
-88

query I rowsort
SELECT DISTINCT + 26 - + - 1 + - + 13
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-7517
SELECT + 82 * - - MIN( - 52 ) AS col0
----
-4264

skipif mysql # not compatible
query I rowsort label-7517
SELECT + 82 * - - MIN ( - 52 ) AS col0
----
-4264

query I rowsort
SELECT ALL 93 * + + 23 AS col2
----
2139

query I rowsort
SELECT + 58 - - 87 + + 78
----
223

onlyif mysql # DIV for integer division: 
query I rowsort label-7520
SELECT + 76 + - 60 DIV + 88 + 32 + - 15 AS col1
----
93

skipif mysql # not compatible
query I rowsort label-7520
SELECT + 76 + - 60 / + 88 + 32 + - 15 AS col1
----
93

query I rowsort
SELECT + 52 * + 95
----
4940

onlyif mysql # aggregate syntax: 
query I rowsort label-7522
SELECT - 58 + + + CASE + - ( + + COALESCE ( + ( 57 ), + - 2, - 73 ) ) WHEN COUNT( * ) THEN + 39 * + COALESCE ( + + 49, 22 * + 95 / - 68 * + 55 ) + + 19 END + - 30
----
NULL

skipif mysql # not compatible
query I rowsort label-7522
SELECT - 58 + + + CASE + - ( + + COALESCE ( + ( 57 ), + - 2, - 73 ) ) WHEN COUNT ( * ) THEN + 39 * + COALESCE ( + + 49, 22 * + 95 / - 68 * + 55 ) + + 19 END + - 30
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7523
SELECT ALL - 36 * + SUM( 81 ) AS col2
----
-2916

skipif mysql # not compatible
query I rowsort label-7523
SELECT ALL - 36 * + SUM ( 81 ) AS col2
----
-2916

query II rowsort
SELECT - 22 + 85 AS col2, - 75
----
63
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-7525
SELECT - MIN( ALL 5 ) - 89
----
-94

skipif mysql # not compatible
query I rowsort label-7525
SELECT - MIN ( ALL 5 ) - 89
----
-94

query I rowsort
SELECT - 74 * - 13 AS col1
----
962

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7527
SELECT + CAST( - 32 AS SIGNED )
----
-32

skipif mysql # not compatible
query I rowsort label-7527
SELECT + CAST ( - 32 AS INTEGER )
----
-32

query I rowsort
SELECT DISTINCT + + 58 col1
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-7529
SELECT 82 * + 0 + + - ( + 35 ) + CASE + - 71 WHEN - 97 THEN 85 + - 96 + + ( - 45 ) * - 73 END * - COUNT( * ) * 60 + - + 79 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7529
SELECT 82 * + 0 + + - ( + 35 ) + CASE + - 71 WHEN - 97 THEN 85 + - 96 + + ( - 45 ) * - 73 END * - COUNT ( * ) * 60 + - + 79 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7530
SELECT ALL 4 DIV - 31 + - 94 AS col2
----
-94

skipif mysql # not compatible
query I rowsort label-7530
SELECT ALL 4 / - 31 + - 94 AS col2
----
-94

query I rowsort
SELECT DISTINCT - 91 * + ( - 74 ) AS col0
----
6734

onlyif mysql # DIV for integer division: 
query II rowsort label-7532
SELECT - 68 DIV 95 AS col2, 24 + + 75 * 23 * + 4 AS col1
----
0
6924

skipif mysql # not compatible
query II rowsort label-7532
SELECT - 68 / 95 AS col2, 24 + + 75 * 23 * + 4 AS col1
----
0
6924

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7533
SELECT DISTINCT + - 91 DIV - + 58 * + COUNT( * ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-7533
SELECT DISTINCT + - 91 / - + 58 * + COUNT ( * ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7534
SELECT - 82 * MIN( DISTINCT COALESCE ( - 87, - 91 * - 60 + + 42 ) ) AS col1
----
7134

skipif mysql # not compatible
query I rowsort label-7534
SELECT - 82 * MIN ( DISTINCT COALESCE ( - 87, - 91 * - 60 + + 42 ) ) AS col1
----
7134

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7535
SELECT ALL + 31 * 48 + + COUNT( * ) - + - ( + 11 ) + + CAST( + 0 AS SIGNED ) * 11 * 19 * 55 col1
----
1500

skipif mysql # not compatible
query I rowsort label-7535
SELECT ALL + 31 * 48 + + COUNT ( * ) - + - ( + 11 ) + + CAST ( + 0 AS INTEGER ) * 11 * 19 * 55 col1
----
1500

query I rowsort
SELECT - + 61 - + 15 col0
----
-76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7537
SELECT ALL - ( - + MAX( CAST( - 92 AS SIGNED ) ) ) AS col0
----
-92

skipif mysql # not compatible
query I rowsort label-7537
SELECT ALL - ( - + MAX ( CAST ( - 92 AS INTEGER ) ) ) AS col0
----
-92

query I rowsort
SELECT ALL - CASE + + 83 WHEN + 89 + + - NULLIF ( - + 32, 81 - + 54 ) * + 49 THEN NULL WHEN - 85 THEN - 43 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7539
SELECT DISTINCT - 42 * - - CASE + 23 WHEN - + NULLIF ( - + 45, - 2 / - + 53 ) * + SUM( - - 42 ) * COUNT( * ) + 57 + - + 90 * COALESCE ( 99, - 32, - CASE 66 WHEN - 41 THEN NULL WHEN + - COUNT( * ) * - 59 THEN - - 0 ELSE NULL END * - - 53 ) * 54 + + COALESCE ( - + 59, + 45 * 20 + + 80, - ( - + 81 ) / - - 16 + + + COUNT( * ) * - 91 + + 21 - ( + 50 ) ) / COUNT( * ) THEN NULL WHEN + 20 THEN CASE - 80 WHEN 89 * + 85 + - ( 34 ) THEN NULL WHEN 34 + - 95 THEN 61 ELSE 39 END ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7539
SELECT DISTINCT - 42 * - - CASE + 23 WHEN - + NULLIF ( - + 45, - 2 / - + 53 ) * + SUM ( - - 42 ) * COUNT ( * ) + 57 + - + 90 * COALESCE ( 99, - 32, - CASE 66 WHEN - 41 THEN NULL WHEN + - COUNT ( * ) * - 59 THEN - - 0 ELSE NULL END * - - 53 ) * 54 + + COALESCE ( - + 59, + 45 * 20 + + 80, - ( - + 81 ) / - - 16 + + + COUNT ( * ) * - 91 + + 21 - ( + 50 ) ) / COUNT ( * ) THEN NULL WHEN + 20 THEN CASE - 80 WHEN 89 * + 85 + - ( 34 ) THEN NULL WHEN 34 + - 95 THEN 61 ELSE 39 END ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7540
SELECT ALL 15 - 48 + NULLIF ( 80, COUNT( * ) ) * + - 85
----
-6833

skipif mysql # not compatible
query I rowsort label-7540
SELECT ALL 15 - 48 + NULLIF ( 80, COUNT ( * ) ) * + - 85
----
-6833

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-7541
SELECT ALL - - 20 * + 83 + CASE + CASE + COUNT( * ) WHEN 28 * COUNT( * ) DIV - MIN( DISTINCT - - 43 ) * - - 57 THEN NULL ELSE COUNT( * ) END WHEN + + COUNT( * ) THEN + + 20 + - 8 WHEN - + CAST( 94 AS DECIMAL ) THEN + 48 WHEN + + 95 + + 59 DIV - + 22 * - 8 * 35 THEN + ( - - 11 ) * 39 DIV + - 32 * SUM( DISTINCT + 33 ) END * CASE + MAX( - 82 ) WHEN + 50 * + 57 * 50 * 81 + - ( CAST( NULL AS SIGNED ) ) THEN + 16 ELSE 27 END + 3 DIV - COUNT( 55 )
----
1981

skipif mysql # not compatible
query I rowsort label-7541
SELECT ALL - - 20 * + 83 + CASE + CASE + COUNT ( * ) WHEN 28 * COUNT ( * ) / - MIN ( DISTINCT - - 43 ) * - - 57 THEN NULL ELSE COUNT ( * ) END WHEN + + COUNT ( * ) THEN + + 20 + - 8 WHEN - + CAST ( 94 AS REAL ) THEN + 48 WHEN + + 95 + + 59 / - + 22 * - 8 * 35 THEN + ( - - 11 ) * 39 / + - 32 * SUM ( DISTINCT + 33 ) END * CASE + MAX ( - 82 ) WHEN + 50 * + 57 * 50 * 81 + - ( CAST ( NULL AS INTEGER ) ) THEN + 16 ELSE 27 END + 3 / - COUNT ( 55 )
----
1981

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7542
SELECT DISTINCT - AVG ( DISTINCT - - 95 ) * + + CAST( NULL AS SIGNED ) * ( - 10 ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7542
SELECT DISTINCT - AVG ( DISTINCT - - 95 ) * + + CAST ( NULL AS INTEGER ) * ( - 10 ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7543
SELECT 93 * - - MIN( DISTINCT + + 54 ) AS col0, - 5 * + CASE 78 WHEN - - AVG ( DISTINCT 7 ) / ( - 42 ) THEN + + 84 END AS col1
----
5022
NULL

skipif mysql # not compatible
query II rowsort label-7543
SELECT 93 * - - MIN ( DISTINCT + + 54 ) AS col0, - 5 * + CASE 78 WHEN - - AVG ( DISTINCT 7 ) / ( - 42 ) THEN + + 84 END AS col1
----
5022
NULL

query I rowsort
SELECT 12 + - - 5 + - 9
----
8

query II rowsort
SELECT NULLIF ( + 48, - 97 * + 49 + + 23 ) - - 38 col0, + 62 + 28 col1
----
86
90

query I rowsort
SELECT ALL 99 * 42
----
4158

query I rowsort
SELECT 47 + - 70
----
-23

query I rowsort
SELECT ALL 92 * + 20
----
1840

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7549
SELECT CAST( + ( + COALESCE ( - CASE 52 WHEN COUNT( * ) THEN + ( + + ( 41 ) ) WHEN + 56 * + 39 THEN NULL WHEN + - 7 THEN NULL WHEN + CASE + 30 WHEN 21 THEN + - 67 * - COALESCE ( + 9, 62 ) + + CAST( NULL AS SIGNED ) * + - 62 END - COUNT( * ) THEN NULL END, + - COUNT( * ) * + 20 + 56, COALESCE ( COUNT( - + 10 ), - 39 ) * + - 62 - AVG ( DISTINCT - + 75 ) + - + 40 * + + 7 + + 38 ) ) AS SIGNED ) DIV 84 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7549
SELECT CAST ( + ( + COALESCE ( - CASE 52 WHEN COUNT ( * ) THEN + ( + + ( 41 ) ) WHEN + 56 * + 39 THEN NULL WHEN + - 7 THEN NULL WHEN + CASE + 30 WHEN 21 THEN + - 67 * - COALESCE ( + 9, 62 ) + + CAST ( NULL AS INTEGER ) * + - 62 END - COUNT ( * ) THEN NULL END, + - COUNT ( * ) * + 20 + 56, COALESCE ( COUNT ( - + 10 ), - 39 ) * + - 62 - AVG ( DISTINCT - + 75 ) + - + 40 * + + 7 + + 38 ) ) AS INTEGER ) / 84 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7550
SELECT ALL 39 + + NULLIF ( COUNT( * ), - - SUM( DISTINCT - 60 ) * + + COUNT( * ) + - 58 ) AS col2
----
40

skipif mysql # not compatible
query I rowsort label-7550
SELECT ALL 39 + + NULLIF ( COUNT ( * ), - - SUM ( DISTINCT - 60 ) * + + COUNT ( * ) + - 58 ) AS col2
----
40

onlyif mysql # aggregate syntax: 
query II rowsort label-7551
SELECT DISTINCT 85, SUM( + - 10 ) AS col2
----
85
-10

skipif mysql # not compatible
query II rowsort label-7551
SELECT DISTINCT 85, SUM ( + - 10 ) AS col2
----
85
-10

query I rowsort
SELECT 43 + - 91
----
-48

query II rowsort
SELECT 6 AS col0, - 11
----
6
-11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7554
SELECT ALL CAST( + - 19 AS SIGNED )
----
-19

skipif mysql # not compatible
query I rowsort label-7554
SELECT ALL CAST ( + - 19 AS INTEGER )
----
-19

query I rowsort
SELECT DISTINCT + 64 + 56
----
120

onlyif mysql # aggregate syntax: 
query I rowsort label-7556
SELECT ALL - - 64 + - COUNT( * ) AS col2
----
63

skipif mysql # not compatible
query I rowsort label-7556
SELECT ALL - - 64 + - COUNT ( * ) AS col2
----
63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7557
SELECT + 56 DIV - - 16 - - SUM( ALL + 38 )
----
41

skipif mysql # not compatible
query I rowsort label-7557
SELECT + 56 / - - 16 - - SUM ( ALL + 38 )
----
41

onlyif mysql # aggregate syntax: 
query II rowsort label-7558
SELECT DISTINCT - NULLIF ( - COUNT( * ), - 24 + - 91 + - ( - 38 ) + - 26 + - 40 ) AS col2, - 53
----
1
-53

skipif mysql # not compatible
query II rowsort label-7558
SELECT DISTINCT - NULLIF ( - COUNT ( * ), - 24 + - 91 + - ( - 38 ) + - 26 + - 40 ) AS col2, - 53
----
1
-53

query I rowsort
SELECT ALL - - 13 col2
----
13

query I rowsort
SELECT 2 + - + 33
----
-31

query II rowsort
SELECT + 75, - ( + 31 ) AS col2
----
75
-31

query II rowsort
SELECT + 14 AS col0, + 56 + - 11 * + COALESCE ( - - 81, - 82 + - 22 ) AS col0
----
14
-835

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7563
SELECT - - 55 DIV 11 + + SUM( + 77 ) + + 0 - - 46 AS col2
----
128

skipif mysql # not compatible
query I rowsort label-7563
SELECT - - 55 / 11 + + SUM ( + 77 ) + + 0 - - 46 AS col2
----
128

query I rowsort
SELECT DISTINCT + 77 - + 54 AS col2
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-7565
SELECT 20 * + - COUNT( * ) * + ( 67 ) AS col2
----
-1340

skipif mysql # not compatible
query I rowsort label-7565
SELECT 20 * + - COUNT ( * ) * + ( 67 ) AS col2
----
-1340

query I rowsort
SELECT + 96 + NULLIF ( + - 0, + + 98 )
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-7567
SELECT ALL - ( + - COUNT( * ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7567
SELECT ALL - ( + - COUNT ( * ) ) AS col0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7568
SELECT 93 / - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7568
SELECT 93 / - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7569
SELECT COUNT( * ) DIV + + COUNT( * ) col2
----
1

skipif mysql # not compatible
query I rowsort label-7569
SELECT COUNT ( * ) / + + COUNT ( * ) col2
----
1

query I rowsort
SELECT 17 * + 69 + - - 14 AS col0
----
1187

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7571
SELECT DISTINCT + 26 DIV CAST( - + 90 AS SIGNED ) * 70 * CASE 75 WHEN + + 8 THEN + COALESCE ( - CASE + - 73 WHEN + 86 THEN - 39 END, 14 + 62 + + - 41 ) WHEN + 64 * COUNT( * ) THEN NULL ELSE - - 98 END
----
0

skipif mysql # not compatible
query I rowsort label-7571
SELECT DISTINCT + 26 / CAST ( - + 90 AS INTEGER ) * 70 * CASE 75 WHEN + + 8 THEN + COALESCE ( - CASE + - 73 WHEN + 86 THEN - 39 END, 14 + 62 + + - 41 ) WHEN + 64 * COUNT ( * ) THEN NULL ELSE - - 98 END
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7572
SELECT - 10, + 82 * 96 * CAST( - ( 70 ) AS SIGNED ) * 94 AS col1
----
-10
-51797760

skipif mysql # not compatible
query II rowsort label-7572
SELECT - 10, + 82 * 96 * CAST ( - ( 70 ) AS INTEGER ) * 94 AS col1
----
-10
-51797760

onlyif mysql # aggregate syntax: 
query II rowsort label-7573
SELECT ALL 12, + MIN( - 24 ) col2
----
12
-24

skipif mysql # not compatible
query II rowsort label-7573
SELECT ALL 12, + MIN ( - 24 ) col2
----
12
-24

query I rowsort
SELECT DISTINCT 58 * 98 AS col1
----
5684

onlyif mysql # aggregate syntax: 
query I rowsort label-7575
SELECT COUNT( DISTINCT + 30 ) + + + 41
----
42

skipif mysql # not compatible
query I rowsort label-7575
SELECT COUNT ( DISTINCT + 30 ) + + + 41
----
42

query I rowsort
SELECT DISTINCT + 37 + + 33
----
70

query I rowsort
SELECT ALL - ( + 64 ) + + 9 col2
----
-55

query II rowsort
SELECT - 24, - 72 AS col0
----
-24
-72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7579
SELECT 37 - + 60 * + - 18 * 90 * ( - CAST( + 89 AS SIGNED ) )
----
-8650763

skipif mysql # not compatible
query I rowsort label-7579
SELECT 37 - + 60 * + - 18 * 90 * ( - CAST ( + 89 AS INTEGER ) )
----
-8650763

query I rowsort
SELECT 47 - - - 77
----
-30

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7581
SELECT - 90 AS col1, - CAST( - 98 AS SIGNED ) AS col1
----
-90
98

skipif mysql # not compatible
query II rowsort label-7581
SELECT - 90 AS col1, - CAST ( - 98 AS INTEGER ) AS col1
----
-90
98

query II rowsort
SELECT - + 40, 27 * + 19 col1
----
-40
513

onlyif mysql # aggregate syntax: 
query I rowsort label-7583
SELECT ALL - COUNT( ALL 72 )
----
-1

skipif mysql # not compatible
query I rowsort label-7583
SELECT ALL - COUNT ( ALL 72 )
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-7584
SELECT DISTINCT + + 83 DIV - 98 + 2 * + - 33 - - - 29 + 23
----
-72

skipif mysql # not compatible
query I rowsort label-7584
SELECT DISTINCT + + 83 / - 98 + 2 * + - 33 - - - 29 + 23
----
-72

query I rowsort
SELECT ALL - ( - - 41 ) * + 60 + + 94
----
-2366

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7586
SELECT ALL - 30 * + 1 DIV - + COUNT( * ) + - 72 col2
----
-42

skipif mysql # not compatible
query I rowsort label-7586
SELECT ALL - 30 * + 1 / - + COUNT ( * ) + - 72 col2
----
-42

query I rowsort
SELECT + + ( + - 18 ) AS col0
----
-18

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7588
SELECT + CASE + 73 WHEN - - CAST( + 40 AS DECIMAL ) + + + MIN( + 22 ) * + 48 * + 9 THEN NULL WHEN + 14 THEN NULL WHEN + 61 / 10 * + + 44 * - 23 + - COUNT( * ) + - 18 * - COUNT( * ) - 38 + MIN( ALL 5 ) * + NULLIF ( + - 2, - - 65 ) + + MIN( + 13 ) - 56 + + + 3 + 51 * + 26 * - 16 THEN - - 0 * - ( COUNT( * ) ) ELSE + - 79 END AS col1
----
-79

skipif mysql # not compatible
query I rowsort label-7588
SELECT + CASE + 73 WHEN - - CAST ( + 40 AS REAL ) + + + MIN ( + 22 ) * + 48 * + 9 THEN NULL WHEN + 14 THEN NULL WHEN + 61 / 10 * + + 44 * - 23 + - COUNT ( * ) + - 18 * - COUNT ( * ) - 38 + MIN ( ALL 5 ) * + NULLIF ( + - 2, - - 65 ) + + MIN ( + 13 ) - 56 + + + 3 + 51 * + 26 * - 16 THEN - - 0 * - ( COUNT ( * ) ) ELSE + - 79 END AS col1
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-7589
SELECT - 3 * 20 * + COUNT( 90 )
----
-60

skipif mysql # not compatible
query I rowsort label-7589
SELECT - 3 * 20 * + COUNT ( 90 )
----
-60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7590
SELECT 66 / + 19 * - 14 + - + 49 + 14 * MAX( ALL - + 48 ) / - CAST( NULL AS SIGNED ) * + + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7590
SELECT 66 / + 19 * - 14 + - + 49 + 14 * MAX ( ALL - + 48 ) / - CAST ( NULL AS INTEGER ) * + + COUNT ( * ) AS col1
----
NULL

query II rowsort
SELECT + 54 AS col1, - 73 + - 57
----
54
-130

onlyif mysql # aggregate syntax: 
query I rowsort label-7592
SELECT - COUNT( * ) * 47 * - COUNT( * ) + ( + + ( + 69 ) ) + COUNT( * ) * 78 * - + ( 12 )
----
-820

skipif mysql # not compatible
query I rowsort label-7592
SELECT - COUNT ( * ) * 47 * - COUNT ( * ) + ( + + ( + 69 ) ) + COUNT ( * ) * 78 * - + ( 12 )
----
-820

query I rowsort
SELECT DISTINCT - 48 * - ( + 37 ) AS col0
----
1776

query II rowsort
SELECT 74 AS col2, 74
----
74
74

query II rowsort
SELECT ALL + + 27, ( - - 18 ) * - - 36 AS col2
----
27
648

onlyif mysql # aggregate syntax: 
query I rowsort label-7596
SELECT + - SUM( + 99 ) AS col1
----
-99

skipif mysql # not compatible
query I rowsort label-7596
SELECT + - SUM ( + 99 ) AS col1
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-7597
SELECT DISTINCT + + 44 * - COUNT( - 5 ) AS col0
----
-44

skipif mysql # not compatible
query I rowsort label-7597
SELECT DISTINCT + + 44 * - COUNT ( - 5 ) AS col0
----
-44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7598
SELECT + - CAST( NULL AS SIGNED ) AS col2, - ( COALESCE ( 28, COUNT( * ) + - COUNT( ALL 31 ), - COUNT( + 76 ) + 55 * - 47 * + - COUNT( * ) ) ) * - 9
----
NULL
252

skipif mysql # not compatible
query II rowsort label-7598
SELECT + - CAST ( NULL AS INTEGER ) AS col2, - ( COALESCE ( 28, COUNT ( * ) + - COUNT ( ALL 31 ), - COUNT ( + 76 ) + 55 * - 47 * + - COUNT ( * ) ) ) * - 9
----
NULL
252

query I rowsort
SELECT + 19 - - 42
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-7600
SELECT + - 59 * - + MAX( ALL - 12 ) AS col1
----
-708

skipif mysql # not compatible
query I rowsort label-7600
SELECT + - 59 * - + MAX ( ALL - 12 ) AS col1
----
-708

query I rowsort
SELECT - 17 * - 10 - + 77 * - 20 col0
----
1710

query I rowsort
SELECT DISTINCT ( - - 46 ) * - 76 AS col1
----
-3496

onlyif mysql # aggregate syntax: 
query I rowsort label-7603
SELECT 49 * - 5 + + COUNT( * ) AS col2
----
-244

skipif mysql # not compatible
query I rowsort label-7603
SELECT 49 * - 5 + + COUNT ( * ) AS col2
----
-244

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7604
SELECT + NULLIF ( + + 47, - + 91 + + + COALESCE ( 37, + - 16 / - 15 + + + 69, CAST( NULL AS SIGNED ) * ( - COUNT( * ) ), - 15 ) * COUNT( * ) * - 25 + + AVG ( + ( - 17 ) ) ) AS col2, COUNT( * ) AS col1
----
47
1

skipif mysql # not compatible
query II rowsort label-7604
SELECT + NULLIF ( + + 47, - + 91 + + + COALESCE ( 37, + - 16 / - 15 + + + 69, CAST ( NULL AS INTEGER ) * ( - COUNT ( * ) ), - 15 ) * COUNT ( * ) * - 25 + + AVG ( + ( - 17 ) ) ) AS col2, COUNT ( * ) AS col1
----
47
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7605
SELECT + 11 * - COUNT( * ) * 50
----
-550

skipif mysql # not compatible
query I rowsort label-7605
SELECT + 11 * - COUNT ( * ) * 50
----
-550

query I rowsort
SELECT ALL - 13 * + + 29 * ( + - 77 ) col1
----
29029

query I rowsort
SELECT ALL 35 * + ( - 47 )
----
-1645

onlyif mysql # aggregate syntax: 
query I rowsort label-7608
SELECT - 5 - SUM( ALL - - 88 )
----
-93

skipif mysql # not compatible
query I rowsort label-7608
SELECT - 5 - SUM ( ALL - - 88 )
----
-93

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7609
SELECT DISTINCT COALESCE ( - 93, + - ( - COUNT( * ) ) * 1 * 85 DIV - 1 * - - 73, 52 ) + - 11 col2
----
-104

skipif mysql # not compatible
query I rowsort label-7609
SELECT DISTINCT COALESCE ( - 93, + - ( - COUNT ( * ) ) * 1 * 85 / - 1 * - - 73, 52 ) + - 11 col2
----
-104

onlyif mysql # DIV for integer division: 
query II rowsort label-7610
SELECT ALL - 77 DIV - NULLIF ( ( - ( + - 84 ) ), 43 * - 87 * + 18 DIV + 59 + - + 53 ), - 79 AS col0
----
0
-79

skipif mysql # not compatible
query II rowsort label-7610
SELECT ALL - 77 / - NULLIF ( ( - ( + - 84 ) ), 43 * - 87 * + 18 / + 59 + - + 53 ), - 79 AS col0
----
0
-79

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7611
SELECT - 99 DIV NULLIF ( SUM( ALL + ( 65 ) ), + - 14 )
----
-1

skipif mysql # not compatible
query I rowsort label-7611
SELECT - 99 / NULLIF ( SUM ( ALL + ( 65 ) ), + - 14 )
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-7612
SELECT - 34 DIV - 49
----
0

skipif mysql # not compatible
query I rowsort label-7612
SELECT - 34 / - 49
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7613
SELECT - 45 + CASE - 62 WHEN - + 87 THEN + COALESCE ( NULLIF ( + 48, + 44 / - 58 ), + - 93 + - COUNT( 67 ), - - 96 * + 86 + + 67 + + 41 + + 73 ) * - 81 * 17 + - COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7613
SELECT - 45 + CASE - 62 WHEN - + 87 THEN + COALESCE ( NULLIF ( + 48, + 44 / - 58 ), + - 93 + - COUNT ( 67 ), - - 96 * + 86 + + 67 + + 41 + + 73 ) * - 81 * 17 + - COUNT ( * ) ELSE NULL END
----
NULL

query I rowsort
SELECT - 51 * + 52
----
-2652

onlyif mysql # DIV for integer division: 
query II rowsort label-7615
SELECT ALL - 78 DIV + 42, - 14 AS col0
----
-1
-14

skipif mysql # not compatible
query II rowsort label-7615
SELECT ALL - 78 / + 42, - 14 AS col0
----
-1
-14

onlyif mysql # aggregate syntax: 
query II rowsort label-7616
SELECT ALL + 23 + - COUNT( * ) AS col1, 93
----
22
93

skipif mysql # not compatible
query II rowsort label-7616
SELECT ALL + 23 + - COUNT ( * ) AS col1, 93
----
22
93

onlyif mysql # aggregate syntax: 
query I rowsort label-7617
SELECT - COUNT( * ) + + + 78 - - 86
----
163

skipif mysql # not compatible
query I rowsort label-7617
SELECT - COUNT ( * ) + + + 78 - - 86
----
163

query I rowsort
SELECT - ( + COALESCE ( - 47, + 23 ) ) - + 73
----
-26

query I rowsort
SELECT - 98 + + COALESCE ( + 46, + 79 ) AS col2
----
-52

query I rowsort
SELECT - ( - 95 ) * - 3
----
-285

onlyif mysql # aggregate syntax: 
query I rowsort label-7621
SELECT ALL - COALESCE ( - + ( - NULLIF ( 64, + 52 ) ), - + MAX( ALL ( ( + 87 ) ) ) * - 60 ) * 40 + + - 73
----
-2633

skipif mysql # not compatible
query I rowsort label-7621
SELECT ALL - COALESCE ( - + ( - NULLIF ( 64, + 52 ) ), - + MAX ( ALL ( ( + 87 ) ) ) * - 60 ) * 40 + + - 73
----
-2633

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7622
SELECT ALL + 70 - CAST( - 34 AS SIGNED )
----
104

skipif mysql # not compatible
query I rowsort label-7622
SELECT ALL + 70 - CAST ( - 34 AS INTEGER )
----
104

query I rowsort
SELECT - 78 * - - ( - 9 ) AS col1
----
702

query I rowsort
SELECT - - 74 + - 24 AS col1
----
50

query I rowsort
SELECT + 75 * + 82
----
6150

query I rowsort
SELECT - + 99 * - 31 - - 43 col2
----
3112

query I rowsort
SELECT DISTINCT + - 93 col1
----
-93

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7628
SELECT + + 49 DIV + 43 - - MIN( ALL - 43 )
----
-42

skipif mysql # not compatible
query I rowsort label-7628
SELECT + + 49 / + 43 - - MIN ( ALL - 43 )
----
-42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7629
SELECT ALL + CAST( NULL AS SIGNED ) * + MAX( - 63 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7629
SELECT ALL + CAST ( NULL AS INTEGER ) * + MAX ( - 63 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7630
SELECT + MAX( - 42 ) + - - 54 + + - 54 * 15 AS col0
----
-798

skipif mysql # not compatible
query I rowsort label-7630
SELECT + MAX ( - 42 ) + - - 54 + + - 54 * 15 AS col0
----
-798

onlyif mysql # DIV for integer division: 
query I rowsort label-7631
SELECT ALL - 27 DIV 57 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7631
SELECT ALL - 27 / 57 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7632
SELECT + - 89 * + 71 * + + COUNT( * ) + 89 + - 7 - + NULLIF ( + 74, - 74 ) * + 51
----
-10011

skipif mysql # not compatible
query I rowsort label-7632
SELECT + - 89 * + 71 * + + COUNT ( * ) + 89 + - 7 - + NULLIF ( + 74, - 74 ) * + 51
----
-10011

onlyif mysql # DIV for integer division: 
query I rowsort label-7633
SELECT - ( + 7 ) DIV + 34
----
0

skipif mysql # not compatible
query I rowsort label-7633
SELECT - ( + 7 ) / + 34
----
0

query I rowsort
SELECT - 17 + - 60
----
-77

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7635
SELECT CASE 44 WHEN 7 DIV - 54 THEN NULL WHEN 21 + 40 + + 89 THEN - + 93 * + 52 ELSE - 70 END * + + ( + 1 ) DIV MAX( 75 ) + 88 - - - 5 DIV + 87, - 61 AS col0
----
88
-61

skipif mysql # not compatible
query II rowsort label-7635
SELECT CASE 44 WHEN 7 / - 54 THEN NULL WHEN 21 + 40 + + 89 THEN - + 93 * + 52 ELSE - 70 END * + + ( + 1 ) / MAX ( 75 ) + 88 - - - 5 / + 87, - 61 AS col0
----
88
-61

query I rowsort
SELECT ALL 61 * + 4 col0
----
244

query I rowsort
SELECT + + 92 - 28
----
64

query I rowsort
SELECT + NULLIF ( 84, CASE - 66 WHEN + 11 THEN NULL ELSE 96 * + 70 - - - 56 + + - 22 * - 34 + - 79 END ) AS col1
----
84

query I rowsort
SELECT + ( - - 67 )
----
67

onlyif mysql # aggregate syntax: 
query II rowsort label-7640
SELECT + COUNT( DISTINCT + 60 ) * - 97 - - 82 AS col1, COALESCE ( + 71, - ( - - COUNT( * ) ) ) AS col1
----
-15
71

skipif mysql # not compatible
query II rowsort label-7640
SELECT + COUNT ( DISTINCT + 60 ) * - 97 - - 82 AS col1, COALESCE ( + 71, - ( - - COUNT ( * ) ) ) AS col1
----
-15
71

query I rowsort
SELECT + 82 + - 31 + 1
----
52

query I rowsort
SELECT + NULLIF ( + 66, ( - + 14 ) / + + 78 )
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-7643
SELECT + 58 + 91 - COUNT( * ) col1
----
148

skipif mysql # not compatible
query I rowsort label-7643
SELECT + 58 + 91 - COUNT ( * ) col1
----
148

query I rowsort
SELECT + NULLIF ( + 40, + 91 - + 3 ) AS col2
----
40

onlyif mysql # aggregate syntax: 
query II rowsort label-7645
SELECT DISTINCT + 99 AS col1, + MAX( DISTINCT + 88 ) * + 54
----
99
4752

skipif mysql # not compatible
query II rowsort label-7645
SELECT DISTINCT + 99 AS col1, + MAX ( DISTINCT + 88 ) * + 54
----
99
4752

query II rowsort
SELECT + 66 AS col1, 97 + - 18 AS col2
----
66
79

onlyif mysql # aggregate syntax: 
query II rowsort label-7647
SELECT - 28 + + MAX( ALL + + ( + 37 ) ), - 7 AS col1
----
9
-7

skipif mysql # not compatible
query II rowsort label-7647
SELECT - 28 + + MAX ( ALL + + ( + 37 ) ), - 7 AS col1
----
9
-7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7648
SELECT ALL 80 * + - 58 + - CAST( + 44 AS SIGNED ) - 13 AS col0
----
-4697

skipif mysql # not compatible
query I rowsort label-7648
SELECT ALL 80 * + - 58 + - CAST ( + 44 AS INTEGER ) - 13 AS col0
----
-4697

query I rowsort
SELECT DISTINCT 15 * - 46
----
-690

onlyif mysql # aggregate syntax: 
query I rowsort label-7650
SELECT - 19 + + - MAX( - - 69 ) * - + 75 + + 29
----
5185

skipif mysql # not compatible
query I rowsort label-7650
SELECT - 19 + + - MAX ( - - 69 ) * - + 75 + + 29
----
5185

query I rowsort
SELECT - 76 - 96
----
-172

query I rowsort
SELECT 46 * + 5
----
230

onlyif mysql # aggregate syntax: 
query I rowsort label-7653
SELECT - MAX( ALL - + ( - 85 ) ) col2
----
-85

skipif mysql # not compatible
query I rowsort label-7653
SELECT - MAX ( ALL - + ( - 85 ) ) col2
----
-85

onlyif mysql # aggregate syntax: 
query II rowsort label-7654
SELECT - MIN( - ( - ( 73 ) ) ) - + - CASE - COUNT( * ) WHEN + 95 THEN + 4 ELSE NULL END, - 97 AS col2
----
NULL
-97

skipif mysql # not compatible
query II rowsort label-7654
SELECT - MIN ( - ( - ( 73 ) ) ) - + - CASE - COUNT ( * ) WHEN + 95 THEN + 4 ELSE NULL END, - 97 AS col2
----
NULL
-97

onlyif mysql # aggregate syntax: 
query II rowsort label-7655
SELECT 60 col1, + SUM( DISTINCT - + 13 ) * + - 15 AS col2
----
60
195

skipif mysql # not compatible
query II rowsort label-7655
SELECT 60 col1, + SUM ( DISTINCT - + 13 ) * + - 15 AS col2
----
60
195

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7656
SELECT DISTINCT - 8 AS col0, 49 DIV COUNT( * ) + + ( + 70 ) AS col0
----
-8
119

skipif mysql # not compatible
query II rowsort label-7656
SELECT DISTINCT - 8 AS col0, 49 / COUNT ( * ) + + ( + 70 ) AS col0
----
-8
119

query II rowsort
SELECT ALL - + 3 * - 48 + 21, ( + NULLIF ( + - 51, - + 57 / 86 ) ) * + ( + 81 ) + - 45 AS col2
----
165
-4176

query I rowsort
SELECT ( - 71 ) * - 84
----
5964

query II rowsort
SELECT ALL 77 AS col2, 89 * + - 95 col2
----
77
-8455

query I rowsort
SELECT 56 + + - 77
----
-21

query I rowsort
SELECT 3 + + 12 AS col1
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-7662
SELECT ALL - + 11 * + COUNT( * ) * - 71 AS col0
----
781

skipif mysql # not compatible
query I rowsort label-7662
SELECT ALL - + 11 * + COUNT ( * ) * - 71 AS col0
----
781

onlyif mysql # aggregate syntax: 
query II rowsort label-7663
SELECT - 48 * + + MIN( - ( 3 ) ) + - 2 + - COUNT( * ), + 31 * 30 * + 33 + - 25 col1
----
141
30665

skipif mysql # not compatible
query II rowsort label-7663
SELECT - 48 * + + MIN ( - ( 3 ) ) + - 2 + - COUNT ( * ), + 31 * 30 * + 33 + - 25 col1
----
141
30665

query II rowsort
SELECT + 39 AS col0, 33 AS col2
----
39
33

onlyif mysql # aggregate syntax: 
query II rowsort label-7665
SELECT ALL + - 98 + 79 * + - 71, - 71 + - 34 - - COUNT( * ) AS col2
----
-5707
-104

skipif mysql # not compatible
query II rowsort label-7665
SELECT ALL + - 98 + 79 * + - 71, - 71 + - 34 - - COUNT ( * ) AS col2
----
-5707
-104

onlyif mysql # aggregate syntax: 
query I rowsort label-7666
SELECT + - CASE + COUNT( * ) WHEN + + ( - - 4 ) * 88 * + CASE + COUNT( * ) WHEN 88 + + - COUNT( * ) + 1 + - - AVG ( ALL - 11 ) THEN + 24 * - COUNT( * ) * + + ( - - ( + 86 ) ) - - - 67 * - 46 * + 65 + - 22 WHEN COUNT( * ) * - AVG ( - + 39 ) * + 79 + 93 + + 31 + + ( - NULLIF ( + - 36, + 53 ) ) * + + 40 + + 40 + + 79 * - 6 THEN - 85 ELSE NULL END * + AVG ( + 68 ) + 39 * COUNT( * ) THEN - MIN( DISTINCT + 89 ) + 56 ELSE COUNT( * ) END AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-7666
SELECT + - CASE + COUNT ( * ) WHEN + + ( - - 4 ) * 88 * + CASE + COUNT ( * ) WHEN 88 + + - COUNT ( * ) + 1 + - - AVG ( ALL - 11 ) THEN + 24 * - COUNT ( * ) * + + ( - - ( + 86 ) ) - - - 67 * - 46 * + 65 + - 22 WHEN COUNT ( * ) * - AVG ( - + 39 ) * + 79 + 93 + + 31 + + ( - NULLIF ( + - 36, + 53 ) ) * + + 40 + + 40 + + 79 * - 6 THEN - 85 ELSE NULL END * + AVG ( + 68 ) + 39 * COUNT ( * ) THEN - MIN ( DISTINCT + 89 ) + 56 ELSE COUNT ( * ) END AS col2
----
-1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7667
SELECT CAST( NULL AS DECIMAL ) + + 62 * ( 66 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7667
SELECT CAST ( NULL AS REAL ) + + 62 * ( 66 ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7668
SELECT + 15 * - 78 * - - COALESCE ( 99, 45 * + + 7 * + 59 DIV - NULLIF ( + + 16, + 1 ) ) AS col0
----
-115830

skipif mysql # not compatible
query I rowsort label-7668
SELECT + 15 * - 78 * - - COALESCE ( 99, 45 * + + 7 * + 59 / - NULLIF ( + + 16, + 1 ) ) AS col0
----
-115830

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7669
SELECT ( 53 ) * ( - 37 ) + + + CASE + 66 WHEN 19 THEN NULL WHEN - 20 / COUNT( * ) THEN 24 / + ( COUNT( DISTINCT - + 37 ) ) + - 87 - + 31 ELSE - - AVG ( + CAST( NULL AS DECIMAL ) ) END + + COALESCE ( - 91, + - MAX( ALL - 39 ) * - 94 + + 9, - 40 ) * + - 43 * - 1 + 12
----
NULL

skipif mysql # not compatible
query I rowsort label-7669
SELECT ( 53 ) * ( - 37 ) + + + CASE + 66 WHEN 19 THEN NULL WHEN - 20 / COUNT ( * ) THEN 24 / + ( COUNT ( DISTINCT - + 37 ) ) + - 87 - + 31 ELSE - - AVG ( + CAST ( NULL AS REAL ) ) END + + COALESCE ( - 91, + - MAX ( ALL - 39 ) * - 94 + + 9, - 40 ) * + - 43 * - 1 + 12
----
NULL

query I rowsort
SELECT DISTINCT - - 69 * - 18
----
-1242

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7671
SELECT ALL COUNT( ALL - 38 ) DIV 86 + 90 AS col0
----
90

skipif mysql # not compatible
query I rowsort label-7671
SELECT ALL COUNT ( ALL - 38 ) / 86 + 90 AS col0
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-7672
SELECT ALL - ( - + COUNT( * ) ) + COUNT( * ) + + 24 AS col1
----
26

skipif mysql # not compatible
query I rowsort label-7672
SELECT ALL - ( - + COUNT ( * ) ) + COUNT ( * ) + + 24 AS col1
----
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7673
SELECT DISTINCT + SUM( DISTINCT + + CAST( NULL AS SIGNED ) ) + 60 + - CASE 39 WHEN + ( 1 ) THEN NULL WHEN + - 59 THEN NULL WHEN - 62 - + + 93 THEN - 94 + 94 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7673
SELECT DISTINCT + SUM ( DISTINCT + + CAST ( NULL AS INTEGER ) ) + 60 + - CASE 39 WHEN + ( 1 ) THEN NULL WHEN + - 59 THEN NULL WHEN - 62 - + + 93 THEN - 94 + 94 END AS col0
----
NULL

query I rowsort
SELECT ALL 76 + + 64 - - 77
----
217

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7675
SELECT MIN( + 21 ) DIV + - 53
----
0

skipif mysql # not compatible
query I rowsort label-7675
SELECT MIN ( + 21 ) / + - 53
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7676
SELECT 28 - SUM( DISTINCT - + 80 ) * + 38 AS col2, COUNT( * )
----
3068
1

skipif mysql # not compatible
query II rowsort label-7676
SELECT 28 - SUM ( DISTINCT - + 80 ) * + 38 AS col2, COUNT ( * )
----
3068
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7677
SELECT SUM( - 8 ) * 85 AS col0
----
-680

skipif mysql # not compatible
query I rowsort label-7677
SELECT SUM ( - 8 ) * 85 AS col0
----
-680

query I rowsort
SELECT ALL 40 + - 33 AS col0
----
7

query I rowsort
SELECT 87 * - - 33 - + 7 AS col0
----
2864

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7680
SELECT - 77 * - 86 + + 82 + + 22 - + CAST( + - ( - COUNT( * ) ) AS SIGNED ) - + COUNT( 96 ) - - 16 + 99 DIV + 9 - + 5 * + 66 AS col2, 37 AS col0
----
6421
37

skipif mysql # not compatible
query II rowsort label-7680
SELECT - 77 * - 86 + + 82 + + 22 - + CAST ( + - ( - COUNT ( * ) ) AS INTEGER ) - + COUNT ( 96 ) - - 16 + 99 / + 9 - + 5 * + 66 AS col2, 37 AS col0
----
6421
37

query I rowsort
SELECT DISTINCT - ( - ( + 37 ) ) AS col0
----
37

query I rowsort
SELECT ALL - 24 * - 63
----
1512

onlyif mysql # aggregate syntax: 
query II rowsort label-7683
SELECT 63 * + 73 AS col2, ( + MAX( ALL 48 ) )
----
4599
48

skipif mysql # not compatible
query II rowsort label-7683
SELECT 63 * + 73 AS col2, ( + MAX ( ALL 48 ) )
----
4599
48

query I rowsort
SELECT DISTINCT 39 - 27 + 89 col1
----
101

onlyif mysql # aggregate syntax: 
query I rowsort label-7685
SELECT 53 * + - CASE + COALESCE ( - 66, COUNT( * ) + - 56 ) WHEN + 67 THEN 20 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7685
SELECT 53 * + - CASE + COALESCE ( - 66, COUNT ( * ) + - 56 ) WHEN + 67 THEN 20 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7686
SELECT CAST( + 30 AS SIGNED ) + - SUM( - + 53 ) col1
----
83

skipif mysql # not compatible
query I rowsort label-7686
SELECT CAST ( + 30 AS INTEGER ) + - SUM ( - + 53 ) col1
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-7687
SELECT ( - COUNT( * ) ) + - 55 * + + 50 AS col2
----
-2751

skipif mysql # not compatible
query I rowsort label-7687
SELECT ( - COUNT ( * ) ) + - 55 * + + 50 AS col2
----
-2751

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7688
SELECT DISTINCT + COUNT( * ) DIV + + 41 + + SUM( ALL - - 79 ) DIV + 83 - - 82 AS col2
----
82

skipif mysql # not compatible
query I rowsort label-7688
SELECT DISTINCT + COUNT ( * ) / + + 41 + + SUM ( ALL - - 79 ) / + 83 - - 82 AS col2
----
82

onlyif mysql # DIV for integer division: 
query II rowsort label-7689
SELECT - 97 DIV + - 36 AS col1, - 84 AS col1
----
2
-84

skipif mysql # not compatible
query II rowsort label-7689
SELECT - 97 / + - 36 AS col1, - 84 AS col1
----
2
-84

query I rowsort
SELECT - 24 + - - 18 col1
----
-6

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7691
SELECT + MAX( DISTINCT + 92 ) DIV + SUM( - 63 ) AS col1, + ( + - 50 ) AS col1
----
-1
-50

skipif mysql # not compatible
query II rowsort label-7691
SELECT + MAX ( DISTINCT + 92 ) / + SUM ( - 63 ) AS col1, + ( + - 50 ) AS col1
----
-1
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-7692
SELECT + SUM( ALL 68 ) * + 85
----
5780

skipif mysql # not compatible
query I rowsort label-7692
SELECT + SUM ( ALL 68 ) * + 85
----
5780

onlyif mysql # aggregate syntax: 
query I rowsort label-7693
SELECT DISTINCT + COUNT( * ) + + COALESCE ( ( + 21 ), 46 * + 66 ) AS col0
----
22

skipif mysql # not compatible
query I rowsort label-7693
SELECT DISTINCT + COUNT ( * ) + + COALESCE ( ( + 21 ), 46 * + 66 ) AS col0
----
22

query I rowsort
SELECT - 13 + + + 34 * + 13 + - 37 + - 79
----
313

onlyif mysql # aggregate syntax: 
query I rowsort label-7695
SELECT ALL SUM( ALL + 81 ) + + ( - - 81 )
----
162

skipif mysql # not compatible
query I rowsort label-7695
SELECT ALL SUM ( ALL + 81 ) + + ( - - 81 )
----
162

onlyif mysql # aggregate syntax: 
query II rowsort label-7696
SELECT DISTINCT - + COUNT( * ) * - + 7, 29 AS col2
----
7
29

skipif mysql # not compatible
query II rowsort label-7696
SELECT DISTINCT - + COUNT ( * ) * - + 7, 29 AS col2
----
7
29

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7697
SELECT - COUNT( - 60 ) DIV + - 49 + - 9 DIV + 49 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7697
SELECT - COUNT ( - 60 ) / + - 49 + - 9 / + 49 AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7698
SELECT DISTINCT - COALESCE ( 57, + - 87 ) * - 38 + - CAST( + 14 AS SIGNED ) * + + 1 * - 68 + - - 76 * - ( - 62 )
----
7830

skipif mysql # not compatible
query I rowsort label-7698
SELECT DISTINCT - COALESCE ( 57, + - 87 ) * - 38 + - CAST ( + 14 AS INTEGER ) * + + 1 * - 68 + - - 76 * - ( - 62 )
----
7830

onlyif mysql # aggregate syntax: 
query I rowsort label-7699
SELECT ALL - ( - MIN( - 60 ) ) AS col1
----
-60

skipif mysql # not compatible
query I rowsort label-7699
SELECT ALL - ( - MIN ( - 60 ) ) AS col1
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-7700
SELECT ALL + 91 * + - 91 * - - COUNT( 81 )
----
-8281

skipif mysql # not compatible
query I rowsort label-7700
SELECT ALL + 91 * + - 91 * - - COUNT ( 81 )
----
-8281

query I rowsort
SELECT 37 + + 53
----
90

onlyif mysql # DIV for integer division: 
query I rowsort label-7702
SELECT 92 * - 38 + + 66 DIV 27
----
-3494

skipif mysql # not compatible
query I rowsort label-7702
SELECT 92 * - 38 + + 66 / 27
----
-3494

query I rowsort
SELECT 82 + + 68 col2
----
150

onlyif mysql # DIV for integer division: 
query I rowsort label-7704
SELECT ALL - COALESCE ( - 35, + ( + - 45 ) DIV - - COALESCE ( + 63, - NULLIF ( + CASE 29 WHEN - 44 * - AVG ( 50 ) * ( + + 18 ) THEN NULL WHEN 32 THEN NULL ELSE 47 END, + - 82 ) ), + 90 )
----
35

skipif mysql # not compatible
query I rowsort label-7704
SELECT ALL - COALESCE ( - 35, + ( + - 45 ) / - - COALESCE ( + 63, - NULLIF ( + CASE 29 WHEN - 44 * - AVG ( 50 ) * ( + + 18 ) THEN NULL WHEN 32 THEN NULL ELSE 47 END, + - 82 ) ), + 90 )
----
35

onlyif mysql # DIV for integer division: 
query I rowsort label-7705
SELECT 53 DIV - 76 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7705
SELECT 53 / - 76 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7706
SELECT DISTINCT + 47 DIV - 4 AS col1
----
-11

skipif mysql # not compatible
query I rowsort label-7706
SELECT DISTINCT + 47 / - 4 AS col1
----
-11

query I rowsort
SELECT - 56 * + 76
----
-4256

query I rowsort
SELECT + 21 * + 45 AS col1
----
945

query I rowsort
SELECT ALL + 29 * - + 54
----
-1566

query I rowsort
SELECT DISTINCT 85 * + - 80
----
-6800

onlyif mysql # aggregate syntax: 
query I rowsort label-7711
SELECT - ( + 70 ) + COUNT( * )
----
-69

skipif mysql # not compatible
query I rowsort label-7711
SELECT - ( + 70 ) + COUNT ( * )
----
-69

query I rowsort
SELECT ALL 98 * - 25 + + 26 AS col0
----
-2424

query I rowsort
SELECT ALL - 81 * + + 95 AS col0
----
-7695

query I rowsort
SELECT ALL ( 85 ) AS col2
----
85

onlyif mysql # aggregate syntax: 
query II rowsort label-7715
SELECT DISTINCT 23, - 42 * + COUNT( * ) AS col0
----
23
-42

skipif mysql # not compatible
query II rowsort label-7715
SELECT DISTINCT 23, - 42 * + COUNT ( * ) AS col0
----
23
-42

query I rowsort
SELECT + + 20 + - 32 + 71 AS col2
----
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7717
SELECT ALL 87 + - CAST( NULL AS SIGNED ) + - - NULLIF ( + 92, 90 + + 72 ) / + ( 99 ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7717
SELECT ALL 87 + - CAST ( NULL AS INTEGER ) + - - NULLIF ( + 92, 90 + + 72 ) / + ( 99 ) col0
----
NULL

query I rowsort
SELECT + 70 * - 33
----
-2310

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7719
SELECT + - 1 - + + 98 * + CAST( NULL AS SIGNED ) / - 34
----
NULL

skipif mysql # not compatible
query I rowsort label-7719
SELECT + - 1 - + + 98 * + CAST ( NULL AS INTEGER ) / - 34
----
NULL

query I rowsort
SELECT + 53 + + - 7
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-7721
SELECT ALL NULLIF ( 78, + + 74 ) * - COUNT( * )
----
-78

skipif mysql # not compatible
query I rowsort label-7721
SELECT ALL NULLIF ( 78, + + 74 ) * - COUNT ( * )
----
-78

query I rowsort
SELECT ALL 71 + 97
----
168

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7723
SELECT DISTINCT - ( - + 43 ) * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7723
SELECT DISTINCT - ( - + 43 ) * - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + + 60 * + 36 AS col2
----
2160

onlyif mysql # DIV for integer division: 
query I rowsort label-7725
SELECT + - 44 DIV 18
----
-2

skipif mysql # not compatible
query I rowsort label-7725
SELECT + - 44 / 18
----
-2

query I rowsort
SELECT - NULLIF ( + + 82, - 92 / + 83 / + 6 + ( 60 ) ) AS col1
----
-82

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7727
SELECT 0, + CAST( - 85 AS SIGNED ) + - 16 + 85 AS col0
----
0
-16

skipif mysql # not compatible
query II rowsort label-7727
SELECT 0, + CAST ( - 85 AS INTEGER ) + - 16 + 85 AS col0
----
0
-16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7728
SELECT + COUNT( * ) * + COALESCE ( - MAX( 22 ), 1 ) DIV 69
----
0

skipif mysql # not compatible
query I rowsort label-7728
SELECT + COUNT ( * ) * + COALESCE ( - MAX ( 22 ), 1 ) / 69
----
0

query I rowsort
SELECT - ( + - 83 ) * - 21
----
-1743

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7730
SELECT - CAST( - COUNT( * ) AS DECIMAL ) + + + AVG ( DISTINCT - 45 ) + + 60 + 92 + CASE - 21 WHEN 22 THEN - + COUNT( * ) WHEN + 79 THEN 91 END * - 41
----
NULL

skipif mysql # not compatible
query I rowsort label-7730
SELECT - CAST ( - COUNT ( * ) AS REAL ) + + + AVG ( DISTINCT - 45 ) + + 60 + 92 + CASE - 21 WHEN 22 THEN - + COUNT ( * ) WHEN + 79 THEN 91 END * - 41
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7731
SELECT DISTINCT 58 DIV + 33
----
1

skipif mysql # not compatible
query I rowsort label-7731
SELECT DISTINCT 58 / + 33
----
1

query I rowsort
SELECT ( + 28 ) AS col0
----
28

onlyif mysql # DIV for integer division: 
query I rowsort label-7733
SELECT ALL - 33 DIV - 84
----
0

skipif mysql # not compatible
query I rowsort label-7733
SELECT ALL - 33 / - 84
----
0

query I rowsort
SELECT + 99 * - + 14
----
-1386

onlyif mysql # aggregate syntax: 
query II rowsort label-7735
SELECT ALL + 92, COUNT( * ) AS col0
----
92
1

skipif mysql # not compatible
query II rowsort label-7735
SELECT ALL + 92, COUNT ( * ) AS col0
----
92
1

query I rowsort
SELECT DISTINCT + 71 * - + 26 * + + 70 - - 27 * + + 35
----
-128275

query II rowsort
SELECT DISTINCT + 98, 46 col0
----
98
46

onlyif mysql # aggregate syntax: 
query I rowsort label-7738
SELECT ALL + SUM( 4 ) * + 45 AS col0
----
180

skipif mysql # not compatible
query I rowsort label-7738
SELECT ALL + SUM ( 4 ) * + 45 AS col0
----
180

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7739
SELECT DISTINCT 37 * MIN( - 70 ) - COALESCE ( - CAST( NULL AS SIGNED ), - NULLIF ( + 75, + 46 ) * 99 ) AS col2
----
4835

skipif mysql # not compatible
query I rowsort label-7739
SELECT DISTINCT 37 * MIN ( - 70 ) - COALESCE ( - CAST ( NULL AS INTEGER ), - NULLIF ( + 75, + 46 ) * 99 ) AS col2
----
4835

onlyif mysql # aggregate syntax: 
query I rowsort label-7740
SELECT + COUNT( * ) * + 52
----
52

skipif mysql # not compatible
query I rowsort label-7740
SELECT + COUNT ( * ) * + 52
----
52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7741
SELECT COALESCE ( + 34, - CAST( - COUNT( * ) AS SIGNED ) + + + 99 * + CAST( NULL AS SIGNED ) * + 74 )
----
34

skipif mysql # not compatible
query I rowsort label-7741
SELECT COALESCE ( + 34, - CAST ( - COUNT ( * ) AS INTEGER ) + + + 99 * + CAST ( NULL AS INTEGER ) * + 74 )
----
34

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7742
SELECT ALL + 61 * CAST( NULL AS DECIMAL ) * - 81 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7742
SELECT ALL + 61 * CAST ( NULL AS REAL ) * - 81 AS col2
----
NULL

query I rowsort
SELECT NULLIF ( 56, - + 58 )
----
56

query I rowsort
SELECT 61 * + 5 + - ( 72 ) AS col1
----
233

onlyif mysql # aggregate syntax: 
query I rowsort label-7745
SELECT NULLIF ( + 91, + + COUNT( * ) * COUNT( * ) * + + 3 / 37 )
----
91

skipif mysql # not compatible
query I rowsort label-7745
SELECT NULLIF ( + 91, + + COUNT ( * ) * COUNT ( * ) * + + 3 / 37 )
----
91

query I rowsort
SELECT ALL 15 * - + 20
----
-300

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7747
SELECT - CAST( NULL AS DECIMAL ) / + - CAST( NULL AS SIGNED ) * - - 80
----
NULL

skipif mysql # not compatible
query I rowsort label-7747
SELECT - CAST ( NULL AS REAL ) / + - CAST ( NULL AS INTEGER ) * - - 80
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7748
SELECT - MAX( + 73 ) + + - CAST( + - SUM( + 16 ) AS SIGNED ) AS col2
----
-57

skipif mysql # not compatible
query I rowsort label-7748
SELECT - MAX ( + 73 ) + + - CAST ( + - SUM ( + 16 ) AS INTEGER ) AS col2
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-7749
SELECT - + ( - 92 ) - + 95 + 48 * COALESCE ( COUNT( * ), + 0 + ( - 47 ) ) AS col1
----
45

skipif mysql # not compatible
query I rowsort label-7749
SELECT - + ( - 92 ) - + 95 + 48 * COALESCE ( COUNT ( * ), + 0 + ( - 47 ) ) AS col1
----
45

query II rowsort
SELECT DISTINCT 17 * + 93 * - 33 + + 39 * + 70 * - 31 col0, 83
----
-136803
83

onlyif mysql # DIV for integer division: 
query I rowsort label-7751
SELECT DISTINCT + + 29 * 65 * 59 + + 3 + - - 84 DIV 61 + + 67 + - 95
----
111191

skipif mysql # not compatible
query I rowsort label-7751
SELECT DISTINCT + + 29 * 65 * 59 + + 3 + - - 84 / 61 + + 67 + - 95
----
111191

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7752
SELECT ALL - - 63 * + COUNT( * ) + + ( + CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7752
SELECT ALL - - 63 * + COUNT ( * ) + + ( + CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

query I rowsort
SELECT - 45 + 18
----
-27

query I rowsort
SELECT ALL + + 91 * 57 AS col1
----
5187

onlyif mysql # aggregate syntax: 
query I rowsort label-7755
SELECT - 72 + + ( SUM( 34 ) ) AS col2
----
-38

skipif mysql # not compatible
query I rowsort label-7755
SELECT - 72 + + ( SUM ( 34 ) ) AS col2
----
-38

onlyif mysql # aggregate syntax: 
query II rowsort label-7756
SELECT DISTINCT 16 * - 65 * 55 * 83 + - + ( + 65 ) - + 85 * - MAX( ALL + 49 ) AS col0, + 88 AS col1
----
-4743500
88

skipif mysql # not compatible
query II rowsort label-7756
SELECT DISTINCT 16 * - 65 * 55 * 83 + - + ( + 65 ) - + 85 * - MAX ( ALL + 49 ) AS col0, + 88 AS col1
----
-4743500
88

query I rowsort
SELECT DISTINCT + 28 + 36
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-7758
SELECT CASE 98 WHEN + ( - SUM( DISTINCT + 54 ) ) THEN NULL WHEN 45 THEN - 99 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7758
SELECT CASE 98 WHEN + ( - SUM ( DISTINCT + 54 ) ) THEN NULL WHEN 45 THEN - 99 END AS col0
----
NULL

query I rowsort
SELECT + 4 * - 4 + 81 AS col1
----
65

query I rowsort
SELECT + - 89 + + 4 AS col0
----
-85

query I rowsort
SELECT - 47 + - 31 * - + 32
----
945

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7762
SELECT + COUNT( * ) * - 93 DIV 86
----
-1

skipif mysql # not compatible
query I rowsort label-7762
SELECT + COUNT ( * ) * - 93 / 86
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7763
SELECT + ( - + MIN( 75 ) ) * - 14 - + COUNT( * ) AS col1
----
1049

skipif mysql # not compatible
query I rowsort label-7763
SELECT + ( - + MIN ( 75 ) ) * - 14 - + COUNT ( * ) AS col1
----
1049

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7764
SELECT ALL 17 * - CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7764
SELECT ALL 17 * - CAST ( NULL AS REAL ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7765
SELECT + NULLIF ( - COUNT( * ), - 10 ) + + ( CAST( NULL AS SIGNED ) ) + - 65 / + CASE + + CASE + 68 WHEN + + 96 THEN - 64 WHEN + ( - 56 ) THEN - COUNT( ALL - 98 ) END WHEN - ( + - 26 ) + + 10 THEN + 52 - - 78 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7765
SELECT + NULLIF ( - COUNT ( * ), - 10 ) + + ( CAST ( NULL AS INTEGER ) ) + - 65 / + CASE + + CASE + 68 WHEN + + 96 THEN - 64 WHEN + ( - 56 ) THEN - COUNT ( ALL - 98 ) END WHEN - ( + - 26 ) + + 10 THEN + 52 - - 78 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7766
SELECT + 99 + - CASE COUNT( ALL 58 ) WHEN 8 THEN NULL WHEN - ( 98 ) THEN + AVG ( + - 36 ) * + + COUNT( * ) * + - 53 * + 20 + + COUNT( * ) * + 69 - - 98 WHEN - 17 - 68 THEN NULL ELSE NULL END * + 33 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7766
SELECT + 99 + - CASE COUNT ( ALL 58 ) WHEN 8 THEN NULL WHEN - ( 98 ) THEN + AVG ( + - 36 ) * + + COUNT ( * ) * + - 53 * + 20 + + COUNT ( * ) * + 69 - - 98 WHEN - 17 - 68 THEN NULL ELSE NULL END * + 33 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7767
SELECT ALL MAX( - 52 ) AS col2
----
-52

skipif mysql # not compatible
query I rowsort label-7767
SELECT ALL MAX ( - 52 ) AS col2
----
-52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7768
SELECT + 2 DIV MIN( ALL + NULLIF ( - + 59, + 13 ) ) + - - 96
----
96

skipif mysql # not compatible
query I rowsort label-7768
SELECT + 2 / MIN ( ALL + NULLIF ( - + 59, + 13 ) ) + - - 96
----
96

query II rowsort
SELECT + 75 * - 88 AS col0, + 96 col2
----
-6600
96

onlyif mysql # DIV for integer division: 
query I rowsort label-7770
SELECT ALL 81 * + + 27 DIV 26 * - + 0
----
0

skipif mysql # not compatible
query I rowsort label-7770
SELECT ALL 81 * + + 27 / 26 * - + 0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7771
SELECT + 93 + + CAST( NULL AS SIGNED ) AS col2, - 25 AS col0
----
NULL
-25

skipif mysql # not compatible
query II rowsort label-7771
SELECT + 93 + + CAST ( NULL AS INTEGER ) AS col2, - 25 AS col0
----
NULL
-25

query I rowsort
SELECT DISTINCT 16 * 99 AS col2
----
1584

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7773
SELECT + CASE - - ( - - 41 ) WHEN + + COUNT( DISTINCT - 44 ) * + 72 * + 42 THEN + 36 WHEN + - 40 + - - 97 - + + 86 + + + 11 THEN + + CAST( NULL AS SIGNED ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7773
SELECT + CASE - - ( - - 41 ) WHEN + + COUNT ( DISTINCT - 44 ) * + 72 * + 42 THEN + 36 WHEN + - 40 + - - 97 - + + 86 + + + 11 THEN + + CAST ( NULL AS INTEGER ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7774
SELECT MAX( ALL + 60 ) * 95 + - 90 * - 52 * - 61 AS col2
----
-279780

skipif mysql # not compatible
query I rowsort label-7774
SELECT MAX ( ALL + 60 ) * 95 + - 90 * - 52 * - 61 AS col2
----
-279780

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-7775
SELECT CASE + 62 WHEN - - 24 * 71 + - 10 + + 66 * + CAST( NULL AS DECIMAL ) - + 78 THEN 79 END + + CAST( NULL AS SIGNED ) AS col0, + 9
----
NULL
9

skipif mysql # not compatible
query II rowsort label-7775
SELECT CASE + 62 WHEN - - 24 * 71 + - 10 + + 66 * + CAST ( NULL AS REAL ) - + 78 THEN 79 END + + CAST ( NULL AS INTEGER ) AS col0, + 9
----
NULL
9

onlyif mysql # DIV for integer division: 
query I rowsort label-7776
SELECT 10 DIV - + 5
----
-2

skipif mysql # not compatible
query I rowsort label-7776
SELECT 10 / - + 5
----
-2

query I rowsort
SELECT ALL 15 + 29 + + - NULLIF ( ( + 66 ), ( + - 15 ) ) * 76 AS col0
----
-4972

query I rowsort
SELECT ALL 68 + 81
----
149

query I rowsort
SELECT ALL - - 2 AS col2
----
2

query I rowsort
SELECT DISTINCT + 73 + - 43 AS col2
----
30

onlyif mysql # aggregate syntax: 
query II rowsort label-7781
SELECT ALL 46 + 0, + COUNT( * ) AS col2
----
46
1

skipif mysql # not compatible
query II rowsort label-7781
SELECT ALL 46 + 0, + COUNT ( * ) AS col2
----
46
1

query I rowsort
SELECT ALL - + 64 + + 1 * - CASE WHEN 81 BETWEEN NULL AND NULL THEN 89 / - 81 END
----
NULL

query I rowsort
SELECT 54 * - 5 + - + 92 + - 26 AS col1
----
-388

onlyif mysql # aggregate syntax: 
query I rowsort label-7784
SELECT ALL + 79 + + COUNT( * )
----
80

skipif mysql # not compatible
query I rowsort label-7784
SELECT ALL + 79 + + COUNT ( * )
----
80

query I rowsort
SELECT DISTINCT - ( + + 95 ) AS col2
----
-95

query I rowsort
SELECT COALESCE ( 66, 63 )
----
66

query I rowsort
SELECT - 1 + 6
----
5

onlyif mysql # DIV for integer division: 
query I rowsort label-7788
SELECT 87 DIV - 99 + - 16
----
-16

skipif mysql # not compatible
query I rowsort label-7788
SELECT 87 / - 99 + - 16
----
-16

query I rowsort
SELECT - 15 * + 62 AS col0
----
-930

onlyif mysql # aggregate syntax: 
query I rowsort label-7790
SELECT ALL + ( 94 ) - - COUNT( * )
----
95

skipif mysql # not compatible
query I rowsort label-7790
SELECT ALL + ( 94 ) - - COUNT ( * )
----
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7791
SELECT - CASE 27 WHEN - CAST( - 34 AS SIGNED ) * + NULLIF ( + + 27, + - 89 * - + 4 ) THEN NULL ELSE + + 15 * - - COUNT( * ) * - 88 END AS col0
----
1320

skipif mysql # not compatible
query I rowsort label-7791
SELECT - CASE 27 WHEN - CAST ( - 34 AS INTEGER ) * + NULLIF ( + + 27, + - 89 * - + 4 ) THEN NULL ELSE + + 15 * - - COUNT ( * ) * - 88 END AS col0
----
1320

onlyif mysql # DIV for integer division: 
query II rowsort label-7792
SELECT + 42 DIV + + 47 AS col1, - NULLIF ( - 95, 66 + + 99 ) col2
----
0
95

skipif mysql # not compatible
query II rowsort label-7792
SELECT + 42 / + + 47 AS col1, - NULLIF ( - 95, 66 + + 99 ) col2
----
0
95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7793
SELECT ALL - 32 * + + 24 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7793
SELECT ALL - 32 * + + 24 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7794
SELECT 47 * + CASE - 48 WHEN 50 / + CAST( NULL AS SIGNED ) * + 42 + - + 84 * 85 THEN NULL WHEN - - 71 THEN NULL ELSE - 23 END
----
-1081

skipif mysql # not compatible
query I rowsort label-7794
SELECT 47 * + CASE - 48 WHEN 50 / + CAST ( NULL AS INTEGER ) * + 42 + - + 84 * 85 THEN NULL WHEN - - 71 THEN NULL ELSE - 23 END
----
-1081

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7795
SELECT DISTINCT - MAX( - 70 ) * + ( + 99 ) + 47 DIV - CASE + 63 WHEN + 81 THEN + 77 WHEN + 78 + + + 68 THEN NULL WHEN + + 42 THEN NULL ELSE MAX( DISTINCT 59 ) DIV 12 DIV - - 51 * + COUNT( * ) * 49 * 33 DIV - 23 * - 1 - - 4 END + - + 74 AS col0
----
6845

skipif mysql # not compatible
query I rowsort label-7795
SELECT DISTINCT - MAX ( - 70 ) * + ( + 99 ) + 47 / - CASE + 63 WHEN + 81 THEN + 77 WHEN + 78 + + + 68 THEN NULL WHEN + + 42 THEN NULL ELSE MAX ( DISTINCT 59 ) / 12 / - - 51 * + COUNT ( * ) * 49 * 33 / - 23 * - 1 - - 4 END + - + 74 AS col0
----
6845

query I rowsort
SELECT DISTINCT + 78 * - - 54 col2
----
4212

query II rowsort
SELECT - 4 col1, - 42 - - - 46 AS col1
----
-4
-88

query II rowsort
SELECT ALL 5, 85 AS col2
----
5
85

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7799
SELECT 33 AS col1, 85 + 15 - 16 DIV MAX( 86 ) + - COUNT( * )
----
33
99

skipif mysql # not compatible
query II rowsort label-7799
SELECT 33 AS col1, 85 + 15 - 16 / MAX ( 86 ) + - COUNT ( * )
----
33
99

query II rowsort
SELECT 49 AS col1, 32
----
49
32

onlyif mysql # aggregate syntax: 
query I rowsort label-7801
SELECT ALL + 98 + - CASE - SUM( - 31 ) WHEN + - 63 + + + ( 86 ) / + 20 THEN + 72 ELSE NULL END / - 70 * + ( + - 9 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7801
SELECT ALL + 98 + - CASE - SUM ( - 31 ) WHEN + - 63 + + + ( 86 ) / + 20 THEN + 72 ELSE NULL END / - 70 * + ( + - 9 )
----
NULL

query I rowsort
SELECT DISTINCT - ( + + 27 )
----
-27

query I rowsort
SELECT ALL 98 + 16 AS col2
----
114

query I rowsort
SELECT 97 - + 46 col2
----
51

onlyif mysql # DIV for integer division: 
query I rowsort label-7805
SELECT DISTINCT - 25 DIV - 76 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7805
SELECT DISTINCT - 25 / - 76 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7806
SELECT ALL SUM( - - 35 ) + + COUNT( ALL + COALESCE ( 60, + + 11 ) ) * - COUNT( * )
----
34

skipif mysql # not compatible
query I rowsort label-7806
SELECT ALL SUM ( - - 35 ) + + COUNT ( ALL + COALESCE ( 60, + + 11 ) ) * - COUNT ( * )
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-7807
SELECT DISTINCT 27 + - + COALESCE ( + COUNT( * ), 97 + 98 ) AS col1
----
26

skipif mysql # not compatible
query I rowsort label-7807
SELECT DISTINCT 27 + - + COALESCE ( + COUNT ( * ), 97 + 98 ) AS col1
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-7808
SELECT ALL - COUNT( - + 51 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-7808
SELECT ALL - COUNT ( - + 51 ) AS col2
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7809
SELECT COUNT( * ) * - - 75 * 0 * + COALESCE ( COUNT( * ), + 77, CAST( NULL AS SIGNED ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7809
SELECT COUNT ( * ) * - - 75 * 0 * + COALESCE ( COUNT ( * ), + 77, CAST ( NULL AS INTEGER ) ) AS col2
----
0

query I rowsort
SELECT ALL + 44 + ( - 85 )
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-7811
SELECT + COUNT( * ) * - 33 * + + 42 * - 32
----
44352

skipif mysql # not compatible
query I rowsort label-7811
SELECT + COUNT ( * ) * - 33 * + + 42 * - 32
----
44352

query I rowsort
SELECT + - ( - 27 ) AS col1
----
27

query I rowsort
SELECT - 74 * - 34
----
2516

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7814
SELECT + 14 + - 65 - 40 DIV - 44 * COUNT( DISTINCT + 89 )
----
-51

skipif mysql # not compatible
query I rowsort label-7814
SELECT + 14 + - 65 - 40 / - 44 * COUNT ( DISTINCT + 89 )
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-7815
SELECT MAX( - 74 ) AS col0
----
-74

skipif mysql # not compatible
query I rowsort label-7815
SELECT MAX ( - 74 ) AS col0
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-7816
SELECT ALL - MIN( DISTINCT - + 38 )
----
38

skipif mysql # not compatible
query I rowsort label-7816
SELECT ALL - MIN ( DISTINCT - + 38 )
----
38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7817
SELECT - 29 * + CAST( + 78 AS SIGNED ) - 76 * 24 + - NULLIF ( - SUM( - 75 ), + + CAST( NULL AS DECIMAL ) * - - 85 ) AS col2
----
-4161

skipif mysql # not compatible
query I rowsort label-7817
SELECT - 29 * + CAST ( + 78 AS INTEGER ) - 76 * 24 + - NULLIF ( - SUM ( - 75 ), + + CAST ( NULL AS REAL ) * - - 85 ) AS col2
----
-4161

query I rowsort
SELECT + 41 + - 81 AS col0
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-7819
SELECT ALL - 8 - - + COUNT( * ) AS col1
----
-7

skipif mysql # not compatible
query I rowsort label-7819
SELECT ALL - 8 - - + COUNT ( * ) AS col1
----
-7

query I rowsort
SELECT DISTINCT - + 15 AS col0
----
-15

query I rowsort
SELECT ( - 95 ) + + 12 + - 21
----
-104

onlyif mysql # aggregate syntax: 
query I rowsort label-7822
SELECT - 63 * COUNT( * ) * 69
----
-4347

skipif mysql # not compatible
query I rowsort label-7822
SELECT - 63 * COUNT ( * ) * 69
----
-4347

onlyif mysql # DIV for integer division: 
query I rowsort label-7823
SELECT ALL 33 DIV 69 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7823
SELECT ALL 33 / 69 AS col0
----
0

query I rowsort
SELECT DISTINCT - 0 - 59 AS col1
----
-59

query II rowsort
SELECT 26 AS col2, - 7 + - 30
----
26
-37

onlyif mysql # aggregate syntax: 
query II rowsort label-7826
SELECT + + COUNT( * ) * + 86 * - CASE 6 WHEN COUNT( * ) THEN + NULLIF ( + 26, 45 ) WHEN - - ( - 84 ) THEN NULL WHEN + + 62 * - + MIN( DISTINCT 29 ) THEN NULL ELSE NULL END * - + 20 + - 4 - + 25 + + 42 * + 9 + + 12 + + NULLIF ( 80, + 49 * - COUNT( * ) ) + - - 74 col2, + 55 AS col1
----
NULL
55

skipif mysql # not compatible
query II rowsort label-7826
SELECT + + COUNT ( * ) * + 86 * - CASE 6 WHEN COUNT ( * ) THEN + NULLIF ( + 26, 45 ) WHEN - - ( - 84 ) THEN NULL WHEN + + 62 * - + MIN ( DISTINCT 29 ) THEN NULL ELSE NULL END * - + 20 + - 4 - + 25 + + 42 * + 9 + + 12 + + NULLIF ( 80, + 49 * - COUNT ( * ) ) + - - 74 col2, + 55 AS col1
----
NULL
55

onlyif mysql # aggregate syntax: 
query II rowsort label-7827
SELECT ALL - ( 33 ) - - + 56 AS col1, + 72 * CASE 35 WHEN + + 91 THEN NULL ELSE + - 64 * - 14 - + 82 + + + COALESCE ( 38, - 22 * + + 27 + COUNT( * ), 36 ) END
----
23
61344

skipif mysql # not compatible
query II rowsort label-7827
SELECT ALL - ( 33 ) - - + 56 AS col1, + 72 * CASE 35 WHEN + + 91 THEN NULL ELSE + - 64 * - 14 - + 82 + + + COALESCE ( 38, - 22 * + + 27 + COUNT ( * ), 36 ) END
----
23
61344

onlyif mysql # aggregate syntax: 
query I rowsort label-7828
SELECT 2 + - CASE 91 WHEN + 0 - + - 42 + + + 98 THEN NULL WHEN 32 + COUNT( * ) THEN + 62 + - MAX( + 30 ) ELSE NULL END - 2 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7828
SELECT 2 + - CASE 91 WHEN + 0 - + - 42 + + + 98 THEN NULL WHEN 32 + COUNT ( * ) THEN + 62 + - MAX ( + 30 ) ELSE NULL END - 2 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7829
SELECT CAST( NULL AS SIGNED ) * + 56 * SUM( + - 74 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7829
SELECT CAST ( NULL AS INTEGER ) * + 56 * SUM ( + - 74 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7830
SELECT ALL - + ( 0 ) * 92 DIV - + 35
----
0

skipif mysql # not compatible
query I rowsort label-7830
SELECT ALL - + ( 0 ) * 92 / - + 35
----
0

query I rowsort
SELECT + 57 + + 19
----
76

query I rowsort
SELECT ( - 12 ) + - NULLIF ( + 60, 44 )
----
-72

query I rowsort
SELECT ALL + 32 * - - 87 AS col0
----
2784

onlyif mysql # aggregate syntax: 
query II rowsort label-7834
SELECT ALL COUNT( * ) * - 9, 40 AS col0
----
-9
40

skipif mysql # not compatible
query II rowsort label-7834
SELECT ALL COUNT ( * ) * - 9, 40 AS col0
----
-9
40

onlyif mysql # aggregate syntax: 
query I rowsort label-7835
SELECT ALL MAX( DISTINCT + 29 ) AS col2
----
29

skipif mysql # not compatible
query I rowsort label-7835
SELECT ALL MAX ( DISTINCT + 29 ) AS col2
----
29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7836
SELECT 76 + 58 * + SUM( - + CAST( + 79 AS SIGNED ) ) AS col0
----
-4506

skipif mysql # not compatible
query I rowsort label-7836
SELECT 76 + 58 * + SUM ( - + CAST ( + 79 AS INTEGER ) ) AS col0
----
-4506

query I rowsort
SELECT - 58 + + 68 + - 92
----
-82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7838
SELECT ALL + 2 + - 28 + 71 * 59 * + MIN( + + 8 ) + - COUNT( * ) + + - 93 * + CAST( - NULLIF ( - CASE 16 WHEN - + 1 + + ( 14 ) THEN + - 91 + + 98 WHEN + COUNT( * ) * + COUNT( * ) * 25 THEN NULL END, - 85 ) AS SIGNED ) * - 47 * 12 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7838
SELECT ALL + 2 + - 28 + 71 * 59 * + MIN ( + + 8 ) + - COUNT ( * ) + + - 93 * + CAST ( - NULLIF ( - CASE 16 WHEN - + 1 + + ( 14 ) THEN + - 91 + + 98 WHEN + COUNT ( * ) * + COUNT ( * ) * 25 THEN NULL END, - 85 ) AS INTEGER ) * - 47 * 12 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7839
SELECT - COALESCE ( + 44, + ( MAX( ALL + 11 ) ) ) + - 97 * + + COALESCE ( 50, - + 11, + CAST( NULL AS SIGNED ) ) * - - 76
----
-368644

skipif mysql # not compatible
query I rowsort label-7839
SELECT - COALESCE ( + 44, + ( MAX ( ALL + 11 ) ) ) + - 97 * + + COALESCE ( 50, - + 11, + CAST ( NULL AS INTEGER ) ) * - - 76
----
-368644

query I rowsort
SELECT - 10 + + 87 + - + 7 AS col1
----
70

query I rowsort
SELECT ALL - 29 + 19
----
-10

query II rowsort
SELECT ALL + 2 + + + 72 AS col1, 43 * + - 56 AS col1
----
74
-2408

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7843
SELECT NULLIF ( - 45, + 83 + - ( + 97 ) + + - MAX( + 30 ) ), + CASE + - CAST( NULL AS SIGNED ) WHEN - 39 / - - 42 THEN - - 26 + + 61 END * 81 * 56 AS col2
----
-45
NULL

skipif mysql # not compatible
query II rowsort label-7843
SELECT NULLIF ( - 45, + 83 + - ( + 97 ) + + - MAX ( + 30 ) ), + CASE + - CAST ( NULL AS INTEGER ) WHEN - 39 / - - 42 THEN - - 26 + + 61 END * 81 * 56 AS col2
----
-45
NULL

query I rowsort
SELECT ALL - 39 * + 6 * - 60
----
14040

onlyif mysql # aggregate syntax: 
query I rowsort label-7845
SELECT ALL 74 * - COUNT( * ) + + 68
----
-6

skipif mysql # not compatible
query I rowsort label-7845
SELECT ALL 74 * - COUNT ( * ) + + 68
----
-6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7846
SELECT - 67 * 2 * 61 DIV + COUNT( - + 17 ) + - 59 AS col2
----
-8233

skipif mysql # not compatible
query I rowsort label-7846
SELECT - 67 * 2 * 61 / + COUNT ( - + 17 ) + - 59 AS col2
----
-8233

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7847
SELECT 39 * + - 30 + - - CAST( NULL AS DECIMAL ) - - 76 AS col0, + 67
----
NULL
67

skipif mysql # not compatible
query II rowsort label-7847
SELECT 39 * + - 30 + - - CAST ( NULL AS REAL ) - - 76 AS col0, + 67
----
NULL
67

query I rowsort
SELECT + 67 * + NULLIF ( - 91, + 67 )
----
-6097

query I rowsort
SELECT DISTINCT + - COALESCE ( 95, - - 99, + 36 * 53 ) AS col0
----
-95

query I rowsort
SELECT DISTINCT + COALESCE ( + - 4, - 80 )
----
-4

onlyif mysql # aggregate syntax: 
query II rowsort label-7851
SELECT ALL - - COUNT( * ) * + MAX( + + 14 ) - - 96 * + 61 * - MAX( DISTINCT - 85 ) AS col1, 92 - - COALESCE ( - 67, + - 76 * + 49 )
----
497774
25

skipif mysql # not compatible
query II rowsort label-7851
SELECT ALL - - COUNT ( * ) * + MAX ( + + 14 ) - - 96 * + 61 * - MAX ( DISTINCT - 85 ) AS col1, 92 - - COALESCE ( - 67, + - 76 * + 49 )
----
497774
25

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7852
SELECT - 34 * 40 - MIN( ALL + 85 ) DIV - 20
----
-1356

skipif mysql # not compatible
query I rowsort label-7852
SELECT - 34 * 40 - MIN ( ALL + 85 ) / - 20
----
-1356

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7853
SELECT DISTINCT 82 * - - CAST( + + 18 AS SIGNED ) * + + ( - CAST( + 66 AS SIGNED ) ) AS col0
----
-97416

skipif mysql # not compatible
query I rowsort label-7853
SELECT DISTINCT 82 * - - CAST ( + + 18 AS INTEGER ) * + + ( - CAST ( + 66 AS INTEGER ) ) AS col0
----
-97416

query I rowsort
SELECT ALL + + 18 * - 67 AS col0
----
-1206

query II rowsort
SELECT ALL + 71 * - 30, + 85 AS col0
----
-2130
85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7856
SELECT DISTINCT CAST( NULL AS SIGNED ) * - 22 + - - 45 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7856
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - 22 + - - 45 AS col0
----
NULL

query I rowsort
SELECT + COALESCE ( + - 69, 9, 72 + - 71, + - 72 ) AS col0
----
-69

onlyif mysql # DIV for integer division: 
query I rowsort label-7858
SELECT + 97 DIV 49 * + 10 AS col0
----
10

skipif mysql # not compatible
query I rowsort label-7858
SELECT + 97 / 49 * + 10 AS col0
----
10

query I rowsort
SELECT ALL + + CASE + 12 WHEN - + 25 THEN - 59 WHEN + 45 / + ( + + 47 ) THEN + 97 END
----
NULL

query I rowsort
SELECT + 54 * - + 81
----
-4374

query I rowsort
SELECT DISTINCT 41 + + 95 + - 70
----
66

query II rowsort
SELECT + 96 * - 62 + + 4 AS col2, CASE - 30 WHEN 95 + + + 5 / + 46 * + + 61 THEN NULL WHEN + + COALESCE ( ( + 76 ), - - 78 ) THEN NULL ELSE - 61 + 25 + + 4 * + - 64 * + + 70 * + 92 + 8 + - 85 END
----
-5948
-1648753

query II rowsort
SELECT - COALESCE ( + 52, + 37, 81 - - 61 ), 31 AS col0
----
-52
31

query I rowsort
SELECT ALL 52 + + 15 AS col0
----
67

query I rowsort
SELECT ALL 28 + 24 + + 90 + 19
----
161

onlyif mysql # aggregate syntax: 
query I rowsort label-7866
SELECT - ( ( COUNT( * ) ) )
----
-1

skipif mysql # not compatible
query I rowsort label-7866
SELECT - ( ( COUNT ( * ) ) )
----
-1

query I rowsort
SELECT - 40 + ( + - 3 ) * 6 col1
----
-58

query II rowsort
SELECT DISTINCT 6, 87 AS col0
----
6
87

query I rowsort
SELECT ALL + 98 + 94 * 77 AS col0
----
7336

query I rowsort
SELECT ALL COALESCE ( 73, + 35 )
----
73

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7871
SELECT 96, + 34 DIV MIN( 94 ) AS col2
----
96
0

skipif mysql # not compatible
query II rowsort label-7871
SELECT 96, + 34 / MIN ( 94 ) AS col2
----
96
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7872
SELECT DISTINCT 51 + - COUNT( * ) AS col0
----
50

skipif mysql # not compatible
query I rowsort label-7872
SELECT DISTINCT 51 + - COUNT ( * ) AS col0
----
50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7873
SELECT + CAST( NULL AS SIGNED ) / 43
----
NULL

skipif mysql # not compatible
query I rowsort label-7873
SELECT + CAST ( NULL AS INTEGER ) / 43
----
NULL

query I rowsort
SELECT - 50 * - 96 AS col0
----
4800

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7875
SELECT - 70 * + ( + + CASE + 97 WHEN - CAST( NULL AS SIGNED ) THEN NULL ELSE + 75 * + 58 END ) AS col0
----
-304500

skipif mysql # not compatible
query I rowsort label-7875
SELECT - 70 * + ( + + CASE + 97 WHEN - CAST ( NULL AS INTEGER ) THEN NULL ELSE + 75 * + 58 END ) AS col0
----
-304500

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7876
SELECT ALL - 91 DIV 9 + + + CASE + CASE + 36 WHEN COUNT( * ) THEN 12 - 96 END WHEN + COUNT( * ) * + 18 * 73 THEN NULL ELSE - 83 * 12 * - - 27 END - + - 24 DIV 64 * - + 94 + COUNT( * ) DIV + + 10 AS col0
----
-26902

skipif mysql # not compatible
query I rowsort label-7876
SELECT ALL - 91 / 9 + + + CASE + CASE + 36 WHEN COUNT ( * ) THEN 12 - 96 END WHEN + COUNT ( * ) * + 18 * 73 THEN NULL ELSE - 83 * 12 * - - 27 END - + - 24 / 64 * - + 94 + COUNT ( * ) / + + 10 AS col0
----
-26902

query I rowsort
SELECT - + 55 * 52
----
-2860

onlyif mysql # aggregate syntax: 
query I rowsort label-7878
SELECT DISTINCT + + COALESCE ( 24, + - SUM( DISTINCT - 0 ) ) * - - MIN( - - 1 )
----
24

skipif mysql # not compatible
query I rowsort label-7878
SELECT DISTINCT + + COALESCE ( 24, + - SUM ( DISTINCT - 0 ) ) * - - MIN ( - - 1 )
----
24

query I rowsort
SELECT ALL + COALESCE ( - 30, 61 ) AS col2
----
-30

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7880
SELECT DISTINCT - - 69 DIV 18 * + 86 - - 14 - 58 * - 17 + + COUNT( * ) DIV - + 68 AS col0, + 64 * - 9 * + 74
----
1258
-42624

skipif mysql # not compatible
query II rowsort label-7880
SELECT DISTINCT - - 69 / 18 * + 86 - - 14 - 58 * - 17 + + COUNT ( * ) / - + 68 AS col0, + 64 * - 9 * + 74
----
1258
-42624

query II rowsort
SELECT - - 22 * + - 66 * 83 col2, + 79 + + + 33 * + 88
----
-120516
2983

query I rowsort
SELECT DISTINCT + + 15 * + - 63
----
-945

onlyif mysql # DIV for integer division: 
query I rowsort label-7883
SELECT ALL + 62 DIV 57 - + - 5 DIV - - 65
----
1

skipif mysql # not compatible
query I rowsort label-7883
SELECT ALL + 62 / 57 - + - 5 / - - 65
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7884
SELECT - - COALESCE ( + - ( - - 46 ), 57 * - COUNT( * ), - + 88 ) + - + 19 col1
----
-65

skipif mysql # not compatible
query I rowsort label-7884
SELECT - - COALESCE ( + - ( - - 46 ), 57 * - COUNT ( * ), - + 88 ) + - + 19 col1
----
-65

onlyif mysql # aggregate syntax: 
query II rowsort label-7885
SELECT - MAX( DISTINCT - 33 ) * + 58 AS col0, - 6
----
1914
-6

skipif mysql # not compatible
query II rowsort label-7885
SELECT - MAX ( DISTINCT - 33 ) * + 58 AS col0, - 6
----
1914
-6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7886
SELECT + 86 * + ( - COUNT( ALL - CAST( NULL AS SIGNED ) ) )
----
0

skipif mysql # not compatible
query I rowsort label-7886
SELECT + 86 * + ( - COUNT ( ALL - CAST ( NULL AS INTEGER ) ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7887
SELECT - - ( - + 84 ) * + 93 + COUNT( * ) AS col2
----
-7811

skipif mysql # not compatible
query I rowsort label-7887
SELECT - - ( - + 84 ) * + 93 + COUNT ( * ) AS col2
----
-7811

query I rowsort
SELECT + 95 - - 76 * 65
----
5035

query I rowsort
SELECT - + 54 * - + 93 + - 69
----
4953

onlyif mysql # DIV for integer division: 
query I rowsort label-7890
SELECT - 39 + + + 62 + - + 10 DIV - + 91 - - + 59 DIV 61 AS col1
----
23

skipif mysql # not compatible
query I rowsort label-7890
SELECT - 39 + + + 62 + - + 10 / - + 91 - - + 59 / 61 AS col1
----
23

query I rowsort
SELECT DISTINCT 83 * 44
----
3652

onlyif mysql # aggregate syntax: 
query II rowsort label-7892
SELECT DISTINCT + - 26 AS col0, + 70 * - COUNT( * ) AS col0
----
-26
-70

skipif mysql # not compatible
query II rowsort label-7892
SELECT DISTINCT + - 26 AS col0, + 70 * - COUNT ( * ) AS col0
----
-26
-70

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7893
SELECT ALL CAST( NULL AS DECIMAL ) * - + CAST( - 60 AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7893
SELECT ALL CAST ( NULL AS REAL ) * - + CAST ( - 60 AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7894
SELECT COUNT( * ) * + - 93 + - CAST( NULL AS DECIMAL ) * - MIN( + 71 ) * + + 68 / - 30 + + CAST( - + ( MAX( DISTINCT - + 41 ) ) AS SIGNED ) * - 5 * - COUNT( * ) / - - MIN( + CAST( NULL AS SIGNED ) ) + 41 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7894
SELECT COUNT ( * ) * + - 93 + - CAST ( NULL AS REAL ) * - MIN ( + 71 ) * + + 68 / - 30 + + CAST ( - + ( MAX ( DISTINCT - + 41 ) ) AS INTEGER ) * - 5 * - COUNT ( * ) / - - MIN ( + CAST ( NULL AS INTEGER ) ) + 41 AS col1
----
NULL

query I rowsort
SELECT DISTINCT + 19 * + + NULLIF ( - 32, 31 )
----
-608

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7896
SELECT + 92 * + - 70 + - 0 - + NULLIF ( - + CAST( NULL AS SIGNED ), - + 23 ) * 25 - - - ( - + 65 ) * ( + - 55 ) * + 12 * + ( - 65 ) * 8 + 86 + + - 10 * 21 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7896
SELECT + 92 * + - 70 + - 0 - + NULLIF ( - + CAST ( NULL AS INTEGER ), - + 23 ) * 25 - - - ( - + 65 ) * ( + - 55 ) * + 12 * + ( - 65 ) * 8 + 86 + + - 10 * 21 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7897
SELECT DISTINCT 39, + MAX( ALL + ( + 49 ) ) AS col2
----
39
49

skipif mysql # not compatible
query II rowsort label-7897
SELECT DISTINCT 39, + MAX ( ALL + ( + 49 ) ) AS col2
----
39
49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7898
SELECT ALL 11 + - 45 + - CAST( 26 AS SIGNED ) AS col1, - COUNT( DISTINCT 38 )
----
-60
-1

skipif mysql # not compatible
query II rowsort label-7898
SELECT ALL 11 + - 45 + - CAST ( 26 AS INTEGER ) AS col1, - COUNT ( DISTINCT 38 )
----
-60
-1

query I rowsort
SELECT DISTINCT + 56 * COALESCE ( - 3, + + 8 )
----
-168

query I rowsort
SELECT ALL - 2 + 24 AS col1
----
22

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7901
SELECT 65 col2, - CAST( 89 AS SIGNED )
----
65
-89

skipif mysql # not compatible
query II rowsort label-7901
SELECT 65 col2, - CAST ( 89 AS INTEGER )
----
65
-89

query II rowsort
SELECT 60, - 43 + + - 22 AS col1
----
60
-65

query II rowsort
SELECT ALL 22 AS col1, 40
----
22
40

query I rowsort
SELECT 97 + + + 37
----
134

query I rowsort
SELECT ( - 1 ) + - 95 AS col2
----
-96

query II rowsort
SELECT 42 - - - COALESCE ( 89, 63 ) + 48 * + 13, + 98 AS col2
----
577
98

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7907
SELECT DISTINCT ( CAST( NULL AS DECIMAL ) ) - - + 89
----
NULL

skipif mysql # not compatible
query I rowsort label-7907
SELECT DISTINCT ( CAST ( NULL AS REAL ) ) - - + 89
----
NULL

query II rowsort
SELECT ALL 31 AS col1, 7 * - CASE - ( + 74 ) WHEN - AVG ( + + 95 ) THEN 57 / - 43 / 32 * - - 83 + - + 11 END
----
31
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7909
SELECT 16 + + 75 / - CASE 28 WHEN + 91 + - COUNT( * ) + + 77 THEN 84 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7909
SELECT 16 + + 75 / - CASE 28 WHEN + 91 + - COUNT ( * ) + + 77 THEN 84 END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7910
SELECT ALL 33 AS col2, 65 * - + 6 * - 53 * + COUNT( ALL 23 ) * - 92 + + - CASE + - 42 WHEN 33 + - + COUNT( * ) THEN + MIN( ALL 74 ) + COUNT( * ) WHEN + - 1 * + + 40 THEN NULL ELSE 98 END
----
33
-1901738

skipif mysql # not compatible
query II rowsort label-7910
SELECT ALL 33 AS col2, 65 * - + 6 * - 53 * + COUNT ( ALL 23 ) * - 92 + + - CASE + - 42 WHEN 33 + - + COUNT ( * ) THEN + MIN ( ALL 74 ) + COUNT ( * ) WHEN + - 1 * + + 40 THEN NULL ELSE 98 END
----
33
-1901738

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7911
SELECT 39 * CAST( - 21 AS SIGNED ) AS col2
----
-819

skipif mysql # not compatible
query I rowsort label-7911
SELECT 39 * CAST ( - 21 AS INTEGER ) AS col2
----
-819

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7912
SELECT DISTINCT 66 col1, CAST( 31 AS SIGNED )
----
66
31

skipif mysql # not compatible
query II rowsort label-7912
SELECT DISTINCT 66 col1, CAST ( 31 AS INTEGER )
----
66
31

query I rowsort
SELECT 15 + 48 AS col0
----
63

query I rowsort
SELECT 18 * + 13
----
234

onlyif mysql # aggregate syntax: 
query I rowsort label-7915
SELECT + - COALESCE ( ( COUNT( * ) ), + + 23 )
----
-1

skipif mysql # not compatible
query I rowsort label-7915
SELECT + - COALESCE ( ( COUNT ( * ) ), + + 23 )
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-7916
SELECT + 52 DIV 11 AS col1
----
4

skipif mysql # not compatible
query I rowsort label-7916
SELECT + 52 / 11 AS col1
----
4

query II rowsort
SELECT ALL - - 26 AS col0, 72 * 23
----
26
1656

onlyif mysql # aggregate syntax: 
query II rowsort label-7918
SELECT + 56, NULLIF ( 43, - 81 + + - 95 * - + 15 * - 5 + - NULLIF ( - ( - + COUNT( * ) ), + + 77 ) ) col2
----
56
43

skipif mysql # not compatible
query II rowsort label-7918
SELECT + 56, NULLIF ( 43, - 81 + + - 95 * - + 15 * - 5 + - NULLIF ( - ( - + COUNT ( * ) ), + + 77 ) ) col2
----
56
43

onlyif mysql # aggregate syntax: 
query I rowsort label-7919
SELECT + COUNT( * ) * - 25 * 4
----
-100

skipif mysql # not compatible
query I rowsort label-7919
SELECT + COUNT ( * ) * - 25 * 4
----
-100

onlyif mysql # DIV for integer division: 
query I rowsort label-7920
SELECT 85 + 10 DIV - - 44 AS col2
----
85

skipif mysql # not compatible
query I rowsort label-7920
SELECT 85 + 10 / - - 44 AS col2
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-7921
SELECT ALL - 88 * MIN( ALL - 70 )
----
6160

skipif mysql # not compatible
query I rowsort label-7921
SELECT ALL - 88 * MIN ( ALL - 70 )
----
6160

onlyif mysql # DIV for integer division: 
query I rowsort label-7922
SELECT DISTINCT 88 DIV - 5 AS col0
----
-17

skipif mysql # not compatible
query I rowsort label-7922
SELECT DISTINCT 88 / - 5 AS col0
----
-17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7923
SELECT ALL + COUNT( * ) + + ( - 98 ) + - + 19 + - 49 + - - CASE 26 WHEN 70 THEN + - 10 WHEN + COUNT( ALL 25 ) THEN NULL END AS col0, + ( + 8 ) + + - 48 + + - ( - + 47 ) * - + COUNT( * ) * + + ( + 47 ) + - CAST( NULL AS SIGNED ) + - + COALESCE ( - 46, 10 ) + 72 - 55 * + 32 / - + 58 * CAST( NULL AS SIGNED ) * 34
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-7923
SELECT ALL + COUNT ( * ) + + ( - 98 ) + - + 19 + - 49 + - - CASE 26 WHEN 70 THEN + - 10 WHEN + COUNT ( ALL 25 ) THEN NULL END AS col0, + ( + 8 ) + + - 48 + + - ( - + 47 ) * - + COUNT ( * ) * + + ( + 47 ) + - CAST ( NULL AS INTEGER ) + - + COALESCE ( - 46, 10 ) + 72 - 55 * + 32 / - + 58 * CAST ( NULL AS INTEGER ) * 34
----
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7924
SELECT + COUNT( * ) / + CASE - + NULLIF ( - 29, COALESCE ( + 74, + NULLIF ( - + COUNT( * ), + CAST( NULL AS SIGNED ) ) / + 5 + + 49 ) ) WHEN 67 / + - 87 * - COUNT( * ) THEN - + 1 + + NULLIF ( - 34, + SUM( DISTINCT - 27 ) + 74 + 11 * + 66 ) * - 99 WHEN + 4 + + 34 - - 58 + + AVG ( DISTINCT + 18 ) * 63 * + 73 THEN 96 + - - COALESCE ( + 12, 96 ) END * MAX( - 20 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7924
SELECT + COUNT ( * ) / + CASE - + NULLIF ( - 29, COALESCE ( + 74, + NULLIF ( - + COUNT ( * ), + CAST ( NULL AS INTEGER ) ) / + 5 + + 49 ) ) WHEN 67 / + - 87 * - COUNT ( * ) THEN - + 1 + + NULLIF ( - 34, + SUM ( DISTINCT - 27 ) + 74 + 11 * + 66 ) * - 99 WHEN + 4 + + 34 - - 58 + + AVG ( DISTINCT + 18 ) * 63 * + 73 THEN 96 + - - COALESCE ( + 12, 96 ) END * MAX ( - 20 )
----
NULL

query I rowsort
SELECT ALL - 44 + - + 40 * - 84
----
3316

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7926
SELECT DISTINCT + 86 + - 96 + - ( - ( 42 ) ) + - 30 * - + 56 - CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7926
SELECT DISTINCT + 86 + - 96 + - ( - ( 42 ) ) + - 30 * - + 56 - CAST ( NULL AS REAL ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7927
SELECT ALL - 28 * NULLIF ( + MAX( DISTINCT 37 ), 24 * + + CAST( NULL AS DECIMAL ) + + 13 ) - 86 * + + ( + 99 )
----
-9550

skipif mysql # not compatible
query I rowsort label-7927
SELECT ALL - 28 * NULLIF ( + MAX ( DISTINCT 37 ), 24 * + + CAST ( NULL AS REAL ) + + 13 ) - 86 * + + ( + 99 )
----
-9550

onlyif mysql # aggregate syntax: 
query I rowsort label-7928
SELECT ALL + + ( + COALESCE ( + 29, - COUNT( * ), + 88 * 14 ) ) + + 9 AS col1
----
38

skipif mysql # not compatible
query I rowsort label-7928
SELECT ALL + + ( + COALESCE ( + 29, - COUNT ( * ), + 88 * 14 ) ) + + 9 AS col1
----
38

query I rowsort
SELECT ALL + + 46 * + + 56 AS col1
----
2576

query II rowsort
SELECT 38, + 70 AS col1
----
38
70

onlyif mysql # aggregate syntax: 
query I rowsort label-7931
SELECT DISTINCT + COUNT( * ) + - 27
----
-26

skipif mysql # not compatible
query I rowsort label-7931
SELECT DISTINCT + COUNT ( * ) + - 27
----
-26

query II rowsort
SELECT - 63 col1, + 82 * + 46 * + 30 AS col0
----
-63
113160

query I rowsort
SELECT ALL - 70 + - 51 + - + 82 * + 5 + 70 + + - 16
----
-477

onlyif mysql # aggregate syntax: 
query I rowsort label-7934
SELECT ALL + 15 + - 78 + + - SUM( DISTINCT - 26 ) * + - 75 - - 1 * 66 + 23
----
-1924

skipif mysql # not compatible
query I rowsort label-7934
SELECT ALL + 15 + - 78 + + - SUM ( DISTINCT - 26 ) * + - 75 - - 1 * 66 + 23
----
-1924

query I rowsort
SELECT 66 - - 57 AS col1
----
123

query I rowsort
SELECT + 88 * 47 + - 78
----
4058

query I rowsort
SELECT DISTINCT + 97 + 50 + - 63
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-7938
SELECT 85 * + + 78 * - ( - COUNT( * ) )
----
6630

skipif mysql # not compatible
query I rowsort label-7938
SELECT 85 * + + 78 * - ( - COUNT ( * ) )
----
6630

onlyif mysql # aggregate syntax: 
query I rowsort label-7939
SELECT ALL + 16 + - COALESCE ( + - 67, - 26, + + ( + MAX( ALL 49 ) ) )
----
83

skipif mysql # not compatible
query I rowsort label-7939
SELECT ALL + 16 + - COALESCE ( + - 67, - 26, + + ( + MAX ( ALL 49 ) ) )
----
83

query I rowsort
SELECT DISTINCT - 98 + 18 * 41
----
640

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7941
SELECT 7 + + COUNT( * ) * + 95 DIV + 93
----
8

skipif mysql # not compatible
query I rowsort label-7941
SELECT 7 + + COUNT ( * ) * + 95 / + 93
----
8

query II rowsort
SELECT 10 * + 42, 27 AS col0
----
420
27

query I rowsort
SELECT ALL - 80 * 85 * + + 9 AS col1
----
-61200

onlyif mysql # aggregate syntax: 
query I rowsort label-7944
SELECT DISTINCT MIN( 51 ) AS col0
----
51

skipif mysql # not compatible
query I rowsort label-7944
SELECT DISTINCT MIN ( 51 ) AS col0
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7945
SELECT ALL 98 - CAST( NULL AS SIGNED ) + - - 12 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7945
SELECT ALL 98 - CAST ( NULL AS INTEGER ) + - - 12 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7946
SELECT 36 * 19, + 76 * CAST( + + NULLIF ( + - MIN( + 66 ), + ( - + 15 ) - + + 1 ) AS SIGNED ) AS col1
----
684
-5016

skipif mysql # not compatible
query II rowsort label-7946
SELECT 36 * 19, + 76 * CAST ( + + NULLIF ( + - MIN ( + 66 ), + ( - + 15 ) - + + 1 ) AS INTEGER ) AS col1
----
684
-5016

query I rowsort
SELECT DISTINCT 33 - + 93 AS col0
----
-60

query I rowsort
SELECT DISTINCT - 62 * 94 * - 7 * + - 26 col0
----
-1060696

onlyif mysql # aggregate syntax: 
query I rowsort label-7949
SELECT ALL MIN( 66 ) AS col2
----
66

skipif mysql # not compatible
query I rowsort label-7949
SELECT ALL MIN ( 66 ) AS col2
----
66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7950
SELECT 53 * + 88 DIV - - COUNT( * )
----
4664

skipif mysql # not compatible
query I rowsort label-7950
SELECT 53 * + 88 / - - COUNT ( * )
----
4664

onlyif mysql # DIV for integer division: 
query II rowsort label-7951
SELECT ALL 88 DIV 98 * - 27 AS col2, 90 AS col1
----
0
90

skipif mysql # not compatible
query II rowsort label-7951
SELECT ALL 88 / 98 * - 27 AS col2, 90 AS col1
----
0
90

onlyif mysql # DIV for integer division: 
query I rowsort label-7952
SELECT - 58 DIV - - 59 + 43 AS col0
----
43

skipif mysql # not compatible
query I rowsort label-7952
SELECT - 58 / - - 59 + 43 AS col0
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-7953
SELECT + 67 - - COUNT( * ) * + 88
----
155

skipif mysql # not compatible
query I rowsort label-7953
SELECT + 67 - - COUNT ( * ) * + 88
----
155

query I rowsort
SELECT 33 * - + 25
----
-825

query I rowsort
SELECT ALL + 9 * - + 31 * - ( + 87 ) + - + 99
----
24174

query II rowsort
SELECT 63 - + 94 AS col1, 83 AS col1
----
-31
83

query II rowsort
SELECT - ( 23 ) AS col1, 40
----
-23
40

query I rowsort
SELECT DISTINCT 19 * + - 51 * - - 36 AS col0
----
-34884

query II rowsort
SELECT ALL + 59 * - 26 AS col2, COALESCE ( + 40, - 36 )
----
-1534
40

query I rowsort
SELECT + 7 * - + 55
----
-385

query I rowsort
SELECT ALL + 45 * ( + + CASE 73 WHEN - + 72 + - + 92 * + + ( - + 16 ) THEN - - 17 END ) + 97 AS col0
----
NULL

query I rowsort
SELECT + 2 * - + 27 - + 63
----
-117

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7963
SELECT ALL - - CAST( - + 63 AS SIGNED ) AS col1
----
-63

skipif mysql # not compatible
query I rowsort label-7963
SELECT ALL - - CAST ( - + 63 AS INTEGER ) AS col1
----
-63

query I rowsort
SELECT + 43 * - - 3 AS col2
----
129

query I rowsort
SELECT ALL - 16 * 31 + 18 col2
----
-478

query I rowsort
SELECT - + 22 * + 94 * - 59 - 63
----
121949

onlyif mysql # DIV for integer division: 
query I rowsort label-7967
SELECT ALL - - 6 DIV 80 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7967
SELECT ALL - - 6 / 80 AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7968
SELECT ALL + NULLIF ( - CAST( - 25 AS SIGNED ), + 95 ) AS col2
----
25

skipif mysql # not compatible
query I rowsort label-7968
SELECT ALL + NULLIF ( - CAST ( - 25 AS INTEGER ), + 95 ) AS col2
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-7969
SELECT + CASE 18 WHEN - 21 THEN NULL WHEN + COUNT( DISTINCT + - 11 ) * ( + 92 ) + + 82 THEN + - 63 * ( - 49 ) * - 95 + - 33 * 67 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7969
SELECT + CASE 18 WHEN - 21 THEN NULL WHEN + COUNT ( DISTINCT + - 11 ) * ( + 92 ) + + 82 THEN + - 63 * ( - 49 ) * - 95 + - 33 * 67 END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7970
SELECT - AVG ( + + 44 ) * - AVG ( ALL CAST( NULL AS SIGNED ) ) + 49 * ( - 72 ) + + 46 + + 2 / - 74 * - + ( 95 ) * 7 * - - NULLIF ( CAST( + - 70 AS DECIMAL ), - CAST( NULL AS SIGNED ) + + 8 + + 24 + + + COALESCE ( - NULLIF ( 65, - - CAST( NULL AS SIGNED ) ), NULLIF ( - COUNT( * ), - + 86 ) ) / + 45 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7970
SELECT - AVG ( + + 44 ) * - AVG ( ALL CAST ( NULL AS INTEGER ) ) + 49 * ( - 72 ) + + 46 + + 2 / - 74 * - + ( 95 ) * 7 * - - NULLIF ( CAST ( + - 70 AS REAL ), - CAST ( NULL AS INTEGER ) + + 8 + + 24 + + + COALESCE ( - NULLIF ( 65, - - CAST ( NULL AS INTEGER ) ), NULLIF ( - COUNT ( * ), - + 86 ) ) / + 45 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7971
SELECT DISTINCT + COUNT( - 29 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7971
SELECT DISTINCT + COUNT ( - 29 ) AS col2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7972
SELECT DISTINCT - 57 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7972
SELECT DISTINCT - 57 * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7973
SELECT - COUNT( * ) * + - ( + 14 ) + + ( + 17 ) col0
----
31

skipif mysql # not compatible
query I rowsort label-7973
SELECT - COUNT ( * ) * + - ( + 14 ) + + ( + 17 ) col0
----
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7974
SELECT + CASE - CAST( - 28 AS SIGNED ) WHEN - MIN( + 35 ) + - 76 THEN + 33 * + 25 - 39 ELSE NULL END * - 32 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7974
SELECT + CASE - CAST ( - 28 AS INTEGER ) WHEN - MIN ( + 35 ) + - 76 THEN + 33 * + 25 - 39 ELSE NULL END * - 32 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7975
SELECT - 57 * + 89 DIV + - COUNT( * ) col2, 57 + + + 80 + - 94
----
5073
43

skipif mysql # not compatible
query II rowsort label-7975
SELECT - 57 * + 89 / + - COUNT ( * ) col2, 57 + + + 80 + - 94
----
5073
43

onlyif mysql # aggregate syntax: 
query I rowsort label-7976
SELECT DISTINCT MIN( ALL - 48 )
----
-48

skipif mysql # not compatible
query I rowsort label-7976
SELECT DISTINCT MIN ( ALL - 48 )
----
-48

query I rowsort
SELECT ALL - 85 - + + 82 AS col0
----
-167

query I rowsort
SELECT + 28 * 44 AS col2
----
1232

query I rowsort
SELECT - 45 + - 43 AS col1
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-7980
SELECT ALL CASE + 89 WHEN - + NULLIF ( - + 79, + 82 ) THEN - 23 * + 3 + + COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-7980
SELECT ALL CASE + 89 WHEN - + NULLIF ( - + 79, + 82 ) THEN - 23 * + 3 + + COUNT ( * ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7981
SELECT ALL COALESCE ( + - COUNT( ALL - 71 ), + 75 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-7981
SELECT ALL COALESCE ( + - COUNT ( ALL - 71 ), + 75 ) AS col0
----
-1

query I rowsort
SELECT - 98 * - 71 AS col0
----
6958

onlyif mysql # aggregate syntax: 
query I rowsort label-7983
SELECT ALL MIN( ALL + - 70 ) AS col2
----
-70

skipif mysql # not compatible
query I rowsort label-7983
SELECT ALL MIN ( ALL + - 70 ) AS col2
----
-70

query I rowsort
SELECT ALL ( + - 99 )
----
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-7985
SELECT - 91 - - - 27 + + 92 DIV - - 76 AS col2
----
-117

skipif mysql # not compatible
query I rowsort label-7985
SELECT - 91 - - - 27 + + 92 / - - 76 AS col2
----
-117

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7986
SELECT ALL COALESCE ( - + 73, - - COUNT( * ) * - + 71 DIV - 76 )
----
-73

skipif mysql # not compatible
query I rowsort label-7986
SELECT ALL COALESCE ( - + 73, - - COUNT ( * ) * - + 71 / - 76 )
----
-73

onlyif mysql # aggregate syntax: 
query II rowsort label-7987
SELECT DISTINCT CASE - 1 WHEN + - COUNT( * ) THEN - 78 ELSE NULL END AS col1, + 44 AS col0
----
-78
44

skipif mysql # not compatible
query II rowsort label-7987
SELECT DISTINCT CASE - 1 WHEN + - COUNT ( * ) THEN - 78 ELSE NULL END AS col1, + 44 AS col0
----
-78
44

onlyif mysql # aggregate syntax: 
query I rowsort label-7988
SELECT - MIN( 79 )
----
-79

skipif mysql # not compatible
query I rowsort label-7988
SELECT - MIN ( 79 )
----
-79

query II rowsort
SELECT - 84 AS col1, + 41 * - 15 AS col2
----
-84
-615

query I rowsort
SELECT - 51 + 5
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-7991
SELECT + - 44 * - - 44 - - SUM( + + 39 ) AS col0
----
-1897

skipif mysql # not compatible
query I rowsort label-7991
SELECT + - 44 * - - 44 - - SUM ( + + 39 ) AS col0
----
-1897

query I rowsort
SELECT - 64 + 85
----
21

query I rowsort
SELECT - 91 + - ( 1 ) * + 44 AS col1
----
-135

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7994
SELECT ALL + + CASE + - COUNT( * ) WHEN + 92 * + 15 + - - MIN( ALL - 46 ) THEN 56 WHEN AVG ( - 4 ) THEN NULL WHEN - + 8 THEN NULL ELSE NULL END + + + CAST( NULL AS SIGNED ) * CAST( - COUNT( * ) AS SIGNED ) - + 25
----
NULL

skipif mysql # not compatible
query I rowsort label-7994
SELECT ALL + + CASE + - COUNT ( * ) WHEN + 92 * + 15 + - - MIN ( ALL - 46 ) THEN 56 WHEN AVG ( - 4 ) THEN NULL WHEN - + 8 THEN NULL ELSE NULL END + + + CAST ( NULL AS INTEGER ) * CAST ( - COUNT ( * ) AS INTEGER ) - + 25
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7995
SELECT ALL 31 + - + 2 + 87 * - + CAST( + 51 AS SIGNED )
----
-4408

skipif mysql # not compatible
query I rowsort label-7995
SELECT ALL 31 + - + 2 + 87 * - + CAST ( + 51 AS INTEGER )
----
-4408

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7996
SELECT ALL - 97 + - 78 + + 61 - - - CASE 17 WHEN 31 THEN 20 + + - 25 + 30 + - 18 + + MIN( + + 6 ) + + - 19 + + 13 * + - 88 + - COUNT( * ) - - 31 * 49 * - 36 * - 38 * + COUNT( * ) + + 53 END + - + 53 * COUNT( - CAST( + ( - - 88 ) AS SIGNED ) ) * 12 * 10 - + 51
----
NULL

skipif mysql # not compatible
query I rowsort label-7996
SELECT ALL - 97 + - 78 + + 61 - - - CASE 17 WHEN 31 THEN 20 + + - 25 + 30 + - 18 + + MIN ( + + 6 ) + + - 19 + + 13 * + - 88 + - COUNT ( * ) - - 31 * 49 * - 36 * - 38 * + COUNT ( * ) + + 53 END + - + 53 * COUNT ( - CAST ( + ( - - 88 ) AS INTEGER ) ) * 12 * 10 - + 51
----
NULL

query I rowsort
SELECT + - 92 + 16 AS col1
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-7998
SELECT - - 6 * - MIN( 24 ) * - 96 * + 56
----
774144

skipif mysql # not compatible
query I rowsort label-7998
SELECT - - 6 * - MIN ( 24 ) * - 96 * + 56
----
774144

onlyif mysql # aggregate syntax: 
query I rowsort label-7999
SELECT COUNT( * ) * - - ( - 60 ) + - - 44 AS col1
----
-16

skipif mysql # not compatible
query I rowsort label-7999
SELECT COUNT ( * ) * - - ( - 60 ) + - - 44 AS col1
----
-16

onlyif mysql # DIV for integer division: 
query I rowsort label-8000
SELECT ALL 79 DIV - + 31 + + 9 AS col0
----
7

skipif mysql # not compatible
query I rowsort label-8000
SELECT ALL 79 / - + 31 + + 9 AS col0
----
7

onlyif mysql # aggregate syntax: 
query III rowsort label-8001
SELECT - 80 col0, ( - COUNT( * ) ) + - COUNT( * ) col1, + 42
----
-80
-2
42

skipif mysql # not compatible
query III rowsort label-8001
SELECT - 80 col0, ( - COUNT ( * ) ) + - COUNT ( * ) col1, + 42
----
-80
-2
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8002
SELECT + COUNT( * ) / + COALESCE ( + CAST( NULL AS SIGNED ), + 8 + + 82 * 5 * - - 87 + + CASE MAX( - NULLIF ( + ( + 81 ), + 62 ) ) WHEN - - 26 THEN - 77 WHEN 76 + - 28 THEN NULL WHEN 78 + 51 + - COUNT( * ) THEN NULL END + - CASE + + 44 WHEN 66 THEN - + ( - + 25 ) ELSE - 93 END * CASE + 80 WHEN 38 * ( ( + 81 ) ) - + CAST( NULL AS SIGNED ) THEN - 83 WHEN + + ( + - 40 ) THEN + 75 * + + 83 + + - 47 * 78 ELSE NULL END * - MAX( + 66 ) ) * - COALESCE ( - CASE + + 85 WHEN + + SUM( + 35 ) - + 18 - - 44 * - 78 THEN NULL WHEN - COUNT( * ) * - 39 THEN - CASE + CAST( 62 AS SIGNED ) WHEN 67 THEN NULL ELSE COUNT( * ) END * + SUM( DISTINCT - 24 ) ELSE 23 END, NULLIF ( 12, - AVG ( DISTINCT 14 ) / - 79 + COALESCE ( 36 - 85, SUM( 45 ) ) ) ) + + AVG ( 77 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8002
SELECT + COUNT ( * ) / + COALESCE ( + CAST ( NULL AS INTEGER ), + 8 + + 82 * 5 * - - 87 + + CASE MAX ( - NULLIF ( + ( + 81 ), + 62 ) ) WHEN - - 26 THEN - 77 WHEN 76 + - 28 THEN NULL WHEN 78 + 51 + - COUNT ( * ) THEN NULL END + - CASE + + 44 WHEN 66 THEN - + ( - + 25 ) ELSE - 93 END * CASE + 80 WHEN 38 * ( ( + 81 ) ) - + CAST ( NULL AS INTEGER ) THEN - 83 WHEN + + ( + - 40 ) THEN + 75 * + + 83 + + - 47 * 78 ELSE NULL END * - MAX ( + 66 ) ) * - COALESCE ( - CASE + + 85 WHEN + + SUM ( + 35 ) - + 18 - - 44 * - 78 THEN NULL WHEN - COUNT ( * ) * - 39 THEN - CASE + CAST ( 62 AS INTEGER ) WHEN 67 THEN NULL ELSE COUNT ( * ) END * + SUM ( DISTINCT - 24 ) ELSE 23 END, NULLIF ( 12, - AVG ( DISTINCT 14 ) / - 79 + COALESCE ( 36 - 85, SUM ( 45 ) ) ) ) + + AVG ( 77 )
----
NULL

query II rowsort
SELECT - 14, - 34 AS col0
----
-14
-34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8004
SELECT + COALESCE ( 2, COUNT( * ) * CAST( NULL AS SIGNED ), CASE + - 21 WHEN + + 19 THEN NULL WHEN - 15 THEN NULL WHEN - - 88 THEN 93 WHEN - - 30 + CAST( 62 AS SIGNED ) THEN NULL END, - 94 DIV SUM( ALL 39 ) ) * + - COUNT( * ) AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-8004
SELECT + COALESCE ( 2, COUNT ( * ) * CAST ( NULL AS INTEGER ), CASE + - 21 WHEN + + 19 THEN NULL WHEN - 15 THEN NULL WHEN - - 88 THEN 93 WHEN - - 30 + CAST ( 62 AS INTEGER ) THEN NULL END, - 94 / SUM ( ALL 39 ) ) * + - COUNT ( * ) AS col1
----
-2

query I rowsort
SELECT ALL ( 94 ) * 88 - 68 col2
----
8204

query I rowsort
SELECT ALL + 37 * + 99 * + ( 92 ) - + 50
----
336946

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8007
SELECT + ( CAST( + 19 AS SIGNED ) )
----
19

skipif mysql # not compatible
query I rowsort label-8007
SELECT + ( CAST ( + 19 AS INTEGER ) )
----
19

query I rowsort
SELECT ALL 70 * + - NULLIF ( - NULLIF ( - - 36, + 91 ), - 49 ) col1
----
2520

query II rowsort
SELECT ( - + 90 ), 2 - 67 AS col0
----
-90
-65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8010
SELECT + CASE NULLIF ( - 39, + 85 ) WHEN - + 53 THEN - AVG ( ALL - CAST( NULL AS SIGNED ) ) * 11 WHEN + - ( 9 ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8010
SELECT + CASE NULLIF ( - 39, + 85 ) WHEN - + 53 THEN - AVG ( ALL - CAST ( NULL AS INTEGER ) ) * 11 WHEN + - ( 9 ) THEN NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8011
SELECT CASE - + 37 WHEN 6 THEN SUM( ALL + 75 ) + + 20 + - - 34 + + CAST( NULL AS SIGNED ) * - - MIN( + 39 ) * + 11 * 75 + 78 * + + 0 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8011
SELECT CASE - + 37 WHEN 6 THEN SUM ( ALL + 75 ) + + 20 + - - 34 + + CAST ( NULL AS INTEGER ) * - - MIN ( + 39 ) * + 11 * 75 + 78 * + + 0 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8012
SELECT DISTINCT + SUM( + + 59 )
----
59

skipif mysql # not compatible
query I rowsort label-8012
SELECT DISTINCT + SUM ( + + 59 )
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-8013
SELECT + NULLIF ( 1, + 2 ) * + 35 * - + COUNT( * ) * 60 col2
----
-2100

skipif mysql # not compatible
query I rowsort label-8013
SELECT + NULLIF ( 1, + 2 ) * + 35 * - + COUNT ( * ) * 60 col2
----
-2100

onlyif mysql # aggregate syntax: 
query I rowsort label-8014
SELECT + 98 * - SUM( ALL + 36 ) * + COUNT( * )
----
-3528

skipif mysql # not compatible
query I rowsort label-8014
SELECT + 98 * - SUM ( ALL + 36 ) * + COUNT ( * )
----
-3528

query I rowsort
SELECT + 74 * 37 AS col1
----
2738

query I rowsort
SELECT DISTINCT 15 * - - 68 * - 2 AS col2
----
-2040

query I rowsort
SELECT + 38 * - 96 AS col2
----
-3648

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8018
SELECT ALL + 51 * - 34 + + MIN( + + CAST( 88 AS SIGNED ) ) + - 90 - 92 + 51 * COUNT( * ) + + CAST( NULL AS SIGNED ) + + ( - 27 ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8018
SELECT ALL + 51 * - 34 + + MIN ( + + CAST ( 88 AS INTEGER ) ) + - 90 - 92 + 51 * COUNT ( * ) + + CAST ( NULL AS INTEGER ) + + ( - 27 ) col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8019
SELECT DISTINCT - 59 + COALESCE ( - 5, + 30, 53 * + 34 + - - COUNT( * ) * - COUNT( * ) + - COALESCE ( + 27, - 58 + + 2 * 4 ) - 35 * + 89 + + - MAX( ALL - + 40 ) ) * 0 * CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8019
SELECT DISTINCT - 59 + COALESCE ( - 5, + 30, 53 * + 34 + - - COUNT ( * ) * - COUNT ( * ) + - COALESCE ( + 27, - 58 + + 2 * 4 ) - 35 * + 89 + + - MAX ( ALL - + 40 ) ) * 0 * CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8020
SELECT ALL + 1 + - - COUNT( + CAST( NULL AS DECIMAL ) ) - - + ( + 88 ) * 65
----
5721

skipif mysql # not compatible
query I rowsort label-8020
SELECT ALL + 1 + - - COUNT ( + CAST ( NULL AS REAL ) ) - - + ( + 88 ) * 65
----
5721

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8021
SELECT ALL - CASE + 97 WHEN - 96 * - 92 THEN + ( + 71 ) WHEN - ( + 80 ) + - 58 + + 39 + + - 21 + + SUM( 4 ) THEN + CASE - 39 WHEN 84 THEN NULL WHEN + + 59 * - COUNT( * ) + - 50 THEN NULL WHEN 9 THEN - + CAST( + 21 AS DECIMAL ) + 20 END END
----
NULL

skipif mysql # not compatible
query I rowsort label-8021
SELECT ALL - CASE + 97 WHEN - 96 * - 92 THEN + ( + 71 ) WHEN - ( + 80 ) + - 58 + + 39 + + - 21 + + SUM ( 4 ) THEN + CASE - 39 WHEN 84 THEN NULL WHEN + + 59 * - COUNT ( * ) + - 50 THEN NULL WHEN 9 THEN - + CAST ( + 21 AS REAL ) + 20 END END
----
NULL

query I rowsort
SELECT - COALESCE ( + 35, NULLIF ( - 41, + 22 + 71 ) ) AS col2
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-8023
SELECT ALL - + COUNT( * ) + - 67 AS col1
----
-68

skipif mysql # not compatible
query I rowsort label-8023
SELECT ALL - + COUNT ( * ) + - 67 AS col1
----
-68

query II rowsort
SELECT ALL + 66 + 1 AS col1, 64 - + + 82 + + - 49
----
67
-67

query I rowsort
SELECT DISTINCT + 49 * ( + - 35 )
----
-1715

query I rowsort
SELECT - ( - 50 ) - + 66
----
-16

onlyif mysql # aggregate syntax: 
query II rowsort label-8027
SELECT DISTINCT - 58 - - - SUM( DISTINCT 91 ) - 31 AS col1, 26 * 11 * 67 + + 64 + 33 AS col0
----
-180
19259

skipif mysql # not compatible
query II rowsort label-8027
SELECT DISTINCT - 58 - - - SUM ( DISTINCT 91 ) - 31 AS col1, 26 * 11 * 67 + + 64 + 33 AS col0
----
-180
19259

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8028
SELECT DISTINCT 49 / + + 91 + + + COUNT( * ) + - 55 + + CASE + - 64 WHEN + + MIN( DISTINCT - + 81 ) * 99 THEN NULL WHEN 15 / - ( - 73 ) * - 1 + - 7 THEN + 14 * + - CAST( 67 AS SIGNED ) END + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8028
SELECT DISTINCT 49 / + + 91 + + + COUNT ( * ) + - 55 + + CASE + - 64 WHEN + + MIN ( DISTINCT - + 81 ) * 99 THEN NULL WHEN 15 / - ( - 73 ) * - 1 + - 7 THEN + 14 * + - CAST ( 67 AS INTEGER ) END + - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8029
SELECT ALL ( - 2 ) DIV + SUM( ALL - 74 )
----
0

skipif mysql # not compatible
query I rowsort label-8029
SELECT ALL ( - 2 ) / + SUM ( ALL - 74 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8030
SELECT 75 + + 41 + - + 14 DIV + 73 * + ( 53 ) AS col0
----
116

skipif mysql # not compatible
query I rowsort label-8030
SELECT 75 + + 41 + - + 14 / + 73 * + ( 53 ) AS col0
----
116

onlyif mysql # aggregate syntax: 
query I rowsort label-8031
SELECT 21 * - + 14 * 4 - NULLIF ( + ( - CASE 89 WHEN - 81 THEN + 70 + - 37 WHEN 88 * - 57 - 59 THEN NULL ELSE NULL END ), 13 * 55 * + SUM( - 7 ) + MAX( + ( 40 ) ) ) - - - CASE - 1 WHEN + - 35 * - 32 + 44 THEN + + 90 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8031
SELECT 21 * - + 14 * 4 - NULLIF ( + ( - CASE 89 WHEN - 81 THEN + 70 + - 37 WHEN 88 * - 57 - 59 THEN NULL ELSE NULL END ), 13 * 55 * + SUM ( - 7 ) + MAX ( + ( 40 ) ) ) - - - CASE - 1 WHEN + - 35 * - 32 + 44 THEN + + 90 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8032
SELECT ALL - 84 - - + 43 + 55 - - + COUNT( * )
----
15

skipif mysql # not compatible
query I rowsort label-8032
SELECT ALL - 84 - - + 43 + 55 - - + COUNT ( * )
----
15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8033
SELECT 81 * - 20 DIV - COUNT( * ) AS col1
----
1620

skipif mysql # not compatible
query I rowsort label-8033
SELECT 81 * - 20 / - COUNT ( * ) AS col1
----
1620

query I rowsort
SELECT + 88 * - 45 + + 78 + - 82 AS col2
----
-3964

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8035
SELECT ALL NULLIF ( + 24, + 40 ) DIV 99 * COALESCE ( + MAX( ALL - 20 ), - + 10 DIV + - 13 ) * - 19 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8035
SELECT ALL NULLIF ( + 24, + 40 ) / 99 * COALESCE ( + MAX ( ALL - 20 ), - + 10 / + - 13 ) * - 19 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8036
SELECT MAX( ALL - 7 ) + + + 92 + + 45 AS col0
----
130

skipif mysql # not compatible
query I rowsort label-8036
SELECT MAX ( ALL - 7 ) + + + 92 + + 45 AS col0
----
130

onlyif mysql # DIV for integer division: 
query I rowsort label-8037
SELECT ( + - 47 ) DIV + - 15 AS col0
----
3

skipif mysql # not compatible
query I rowsort label-8037
SELECT ( + - 47 ) / + - 15 AS col0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8038
SELECT ALL COUNT( * ) * + COUNT( * ) * - ( + 99 ) * - 14 + + + CASE - ( - 78 ) WHEN - 6 * - - COUNT( * ) THEN - 96 + + COALESCE ( - 85, - COUNT( DISTINCT + + 79 ), 25 ) + 31 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8038
SELECT ALL COUNT ( * ) * + COUNT ( * ) * - ( + 99 ) * - 14 + + + CASE - ( - 78 ) WHEN - 6 * - - COUNT ( * ) THEN - 96 + + COALESCE ( - 85, - COUNT ( DISTINCT + + 79 ), 25 ) + 31 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8039
SELECT 7 * COALESCE ( - + 82, + - COUNT( * ) + - - 53 ) AS col1
----
-574

skipif mysql # not compatible
query I rowsort label-8039
SELECT 7 * COALESCE ( - + 82, + - COUNT ( * ) + - - 53 ) AS col1
----
-574

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-8040
SELECT 58 / - 75 + + CAST( NULL AS DECIMAL ), + COUNT( + - 94 ) AS col2
----
NULL
1

skipif mysql # not compatible
query II rowsort label-8040
SELECT 58 / - 75 + + CAST ( NULL AS REAL ), + COUNT ( + - 94 ) AS col2
----
NULL
1

onlyif mysql # aggregate syntax: 
query II rowsort label-8041
SELECT DISTINCT - NULLIF ( - 43, - 49 + + COUNT( * ) * + NULLIF ( - AVG ( + 85 ), + + COALESCE ( + COUNT( * ), - 40, + + 4 ) + + 52 ) - + - 64 ) AS col1, 1 * 29 + - SUM( - - 30 )
----
43
-1

skipif mysql # not compatible
query II rowsort label-8041
SELECT DISTINCT - NULLIF ( - 43, - 49 + + COUNT ( * ) * + NULLIF ( - AVG ( + 85 ), + + COALESCE ( + COUNT ( * ), - 40, + + 4 ) + + 52 ) - + - 64 ) AS col1, 1 * 29 + - SUM ( - - 30 )
----
43
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-8042
SELECT ALL - 90 AS col1, - 79 + - NULLIF ( + SUM( DISTINCT - + 55 ), - + COUNT( * ) )
----
-90
-24

skipif mysql # not compatible
query II rowsort label-8042
SELECT ALL - 90 AS col1, - 79 + - NULLIF ( + SUM ( DISTINCT - + 55 ), - + COUNT ( * ) )
----
-90
-24

query II rowsort
SELECT 66 AS col2, 5 AS col0
----
66
5

onlyif mysql # aggregate syntax: 
query I rowsort label-8044
SELECT ALL MIN( DISTINCT 95 ) * - - COUNT( * )
----
95

skipif mysql # not compatible
query I rowsort label-8044
SELECT ALL MIN ( DISTINCT 95 ) * - - COUNT ( * )
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-8045
SELECT DISTINCT NULLIF ( 62, + COUNT( * ) * - 93 * - - COUNT( * ) ) + + 25 * + + 76 + + 38 col0
----
2000

skipif mysql # not compatible
query I rowsort label-8045
SELECT DISTINCT NULLIF ( 62, + COUNT ( * ) * - 93 * - - COUNT ( * ) ) + + 25 * + + 76 + + 38 col0
----
2000

onlyif mysql # aggregate syntax: 
query I rowsort label-8046
SELECT COUNT( * ) * 70 col0
----
70

skipif mysql # not compatible
query I rowsort label-8046
SELECT COUNT ( * ) * 70 col0
----
70

onlyif mysql # DIV for integer division: 
query I rowsort label-8047
SELECT - 93 * - - 54 + - 20 + + 10 + + 90 DIV - + 15 AS col2
----
-5038

skipif mysql # not compatible
query I rowsort label-8047
SELECT - 93 * - - 54 + - 20 + + 10 + + 90 / - + 15 AS col2
----
-5038

query I rowsort
SELECT ALL 9 + 89 + - 63 AS col1
----
35

query I rowsort
SELECT 31 + + 57 AS col2
----
88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8050
SELECT COALESCE ( - 1, - SUM( DISTINCT - COALESCE ( 95, + CAST( NULL AS SIGNED ) + + 98 ) ) + - + 20 ) * - + 96
----
96

skipif mysql # not compatible
query I rowsort label-8050
SELECT COALESCE ( - 1, - SUM ( DISTINCT - COALESCE ( 95, + CAST ( NULL AS INTEGER ) + + 98 ) ) + - + 20 ) * - + 96
----
96

onlyif mysql # DIV for integer division: 
query I rowsort label-8051
SELECT ALL 2 DIV + 77
----
0

skipif mysql # not compatible
query I rowsort label-8051
SELECT ALL 2 / + 77
----
0

query I rowsort
SELECT ( 83 ) + - 37 AS col1
----
46

onlyif mysql # DIV for integer division: 
query I rowsort label-8053
SELECT DISTINCT 20 + - ( + 60 ) DIV 9
----
14

skipif mysql # not compatible
query I rowsort label-8053
SELECT DISTINCT 20 + - ( + 60 ) / 9
----
14

query I rowsort
SELECT ALL + 60 * - 72
----
-4320

query I rowsort
SELECT DISTINCT - 5 * 8
----
-40

query I rowsort
SELECT DISTINCT 1 * + 61
----
61

query I rowsort
SELECT ALL 60 + 70 AS col1
----
130

query I rowsort
SELECT ALL 19 * - 70
----
-1330

query I rowsort
SELECT 56 + + 89 col1
----
145

query I rowsort
SELECT 1 - - 9 AS col0
----
10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8061
SELECT 75 + COUNT( * ) DIV + 37 AS col2
----
75

skipif mysql # not compatible
query I rowsort label-8061
SELECT 75 + COUNT ( * ) / + 37 AS col2
----
75

query I rowsort
SELECT 91 * - 87 AS col0
----
-7917

onlyif mysql # aggregate syntax: 
query I rowsort label-8063
SELECT DISTINCT + 43 * ( - COUNT( * ) )
----
-43

skipif mysql # not compatible
query I rowsort label-8063
SELECT DISTINCT + 43 * ( - COUNT ( * ) )
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-8064
SELECT 1 + 15 * - COUNT( * ) AS col0
----
-14

skipif mysql # not compatible
query I rowsort label-8064
SELECT 1 + 15 * - COUNT ( * ) AS col0
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-8065
SELECT + SUM( 43 ) AS col0
----
43

skipif mysql # not compatible
query I rowsort label-8065
SELECT + SUM ( 43 ) AS col0
----
43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8066
SELECT CAST( + 11 AS SIGNED ) * + 64 AS col0
----
704

skipif mysql # not compatible
query I rowsort label-8066
SELECT CAST ( + 11 AS INTEGER ) * + 64 AS col0
----
704

query I rowsort
SELECT 25 * 39 + - 48
----
927

onlyif mysql # aggregate syntax: 
query I rowsort label-8068
SELECT DISTINCT - MIN( DISTINCT + 51 ) AS col0
----
-51

skipif mysql # not compatible
query I rowsort label-8068
SELECT DISTINCT - MIN ( DISTINCT + 51 ) AS col0
----
-51

query I rowsort
SELECT ALL + ( 24 ) * 76
----
1824

onlyif mysql # DIV for integer division: 
query I rowsort label-8070
SELECT - 71 DIV - 28 + - 64 AS col1
----
-62

skipif mysql # not compatible
query I rowsort label-8070
SELECT - 71 / - 28 + - 64 AS col1
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-8071
SELECT ALL - SUM( DISTINCT 36 ) AS col0
----
-36

skipif mysql # not compatible
query I rowsort label-8071
SELECT ALL - SUM ( DISTINCT 36 ) AS col0
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-8072
SELECT ALL - CASE COUNT( * ) WHEN + 6 * + 22 THEN 7 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8072
SELECT ALL - CASE COUNT ( * ) WHEN + 6 * + 22 THEN 7 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8073
SELECT DISTINCT 86 + CASE - 84 WHEN MAX( ( - 49 ) ) * - 30 + + COUNT( * ) THEN + 17 * + 92 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8073
SELECT DISTINCT 86 + CASE - 84 WHEN MAX ( ( - 49 ) ) * - 30 + + COUNT ( * ) THEN + 17 * + 92 END
----
NULL

query I rowsort
SELECT DISTINCT - ( - 81 ) + 89 col0
----
170

query I rowsort
SELECT 9 * 7
----
63

query I rowsort
SELECT 45 * 18 AS col1
----
810

query I rowsort
SELECT ALL - 90 + 52
----
-38

query I rowsort
SELECT DISTINCT - ( 90 ) AS col1
----
-90

onlyif mysql # DIV for integer division: 
query I rowsort label-8079
SELECT DISTINCT - ( - 91 ) DIV 24 AS col2
----
3

skipif mysql # not compatible
query I rowsort label-8079
SELECT DISTINCT - ( - 91 ) / 24 AS col2
----
3

query I rowsort
SELECT ALL 85 + 67 col2
----
152

query I rowsort
SELECT 35 - - 62 AS col1
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-8082
SELECT DISTINCT 61 + + ( + 59 + 88 * - COUNT( 21 ) ) AS col0
----
32

skipif mysql # not compatible
query I rowsort label-8082
SELECT DISTINCT 61 + + ( + 59 + 88 * - COUNT ( 21 ) ) AS col0
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-8083
SELECT COUNT( * ) * + ( + 63 ) AS col0
----
63

skipif mysql # not compatible
query I rowsort label-8083
SELECT COUNT ( * ) * + ( + 63 ) AS col0
----
63

query I rowsort
SELECT ALL 79 * + 75 AS col1
----
5925

onlyif mysql # aggregate syntax: 
query I rowsort label-8085
SELECT ALL + COUNT( * ) + 26 AS col2
----
27

skipif mysql # not compatible
query I rowsort label-8085
SELECT ALL + COUNT ( * ) + 26 AS col2
----
27

query I rowsort
SELECT - + 76 col1
----
-76

query I rowsort
SELECT + 67 + + 88 * 64
----
5699

onlyif mysql # aggregate syntax: 
query I rowsort label-8088
SELECT + 71 * COUNT( * ) col2
----
71

skipif mysql # not compatible
query I rowsort label-8088
SELECT + 71 * COUNT ( * ) col2
----
71

query I rowsort
SELECT + - 60 * - 19 AS col1
----
1140

query I rowsort
SELECT + + 55 * + 49 AS col1
----
2695

onlyif mysql # aggregate syntax: 
query I rowsort label-8091
SELECT ALL COUNT( ALL + ( - 7 ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8091
SELECT ALL COUNT ( ALL + ( - 7 ) ) AS col1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8092
SELECT + CAST( NULL AS SIGNED ) + - 17 * 39
----
NULL

skipif mysql # not compatible
query I rowsort label-8092
SELECT + CAST ( NULL AS INTEGER ) + - 17 * 39
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8093
SELECT + COALESCE ( COUNT( * ), 39, + 54 * - 36 - + 94, 11 )
----
1

skipif mysql # not compatible
query I rowsort label-8093
SELECT + COALESCE ( COUNT ( * ), 39, + 54 * - 36 - + 94, 11 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8094
SELECT ALL COUNT( * ) - + 25 * 18
----
-449

skipif mysql # not compatible
query I rowsort label-8094
SELECT ALL COUNT ( * ) - + 25 * 18
----
-449

query I rowsort
SELECT + + 94 * - 80 AS col1
----
-7520

onlyif mysql # DIV for integer division: 
query I rowsort label-8096
SELECT + 83 DIV + 29 col0
----
2

skipif mysql # not compatible
query I rowsort label-8096
SELECT + 83 / + 29 col0
----
2

query I rowsort
SELECT DISTINCT - 66 * 64
----
-4224

query I rowsort
SELECT ALL + + 84 * + 46 AS col2
----
3864

onlyif mysql # aggregate syntax: 
query I rowsort label-8099
SELECT ALL + COALESCE ( - 11, + 99, MIN( DISTINCT 63 ), COUNT( * ) )
----
-11

skipif mysql # not compatible
query I rowsort label-8099
SELECT ALL + COALESCE ( - 11, + 99, MIN ( DISTINCT 63 ), COUNT ( * ) )
----
-11

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8100
SELECT ALL - CAST( NULL AS DECIMAL ) * 99 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8100
SELECT ALL - CAST ( NULL AS REAL ) * 99 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8101
SELECT ALL 84 * - COUNT( * ) AS col1
----
-84

skipif mysql # not compatible
query I rowsort label-8101
SELECT ALL 84 * - COUNT ( * ) AS col1
----
-84

query I rowsort
SELECT DISTINCT + 6 * - 60
----
-360

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8103
SELECT + CAST( NULL AS SIGNED ) - - COUNT( * ) / - 33
----
NULL

skipif mysql # not compatible
query I rowsort label-8103
SELECT + CAST ( NULL AS INTEGER ) - - COUNT ( * ) / - 33
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8104
SELECT + SUM( + 5 ) DIV - 51
----
0

skipif mysql # not compatible
query I rowsort label-8104
SELECT + SUM ( + 5 ) / - 51
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8105
SELECT - 93 DIV - 44
----
2

skipif mysql # not compatible
query I rowsort label-8105
SELECT - 93 / - 44
----
2

query I rowsort
SELECT + 5 - + - 76 * 65 AS col2
----
4945

onlyif mysql # aggregate syntax: 
query I rowsort label-8107
SELECT ALL SUM( DISTINCT - 13 ) * 10 AS col1
----
-130

skipif mysql # not compatible
query I rowsort label-8107
SELECT ALL SUM ( DISTINCT - 13 ) * 10 AS col1
----
-130

query I rowsort
SELECT + ( 46 ) AS col0
----
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8109
SELECT DISTINCT + CAST( ( - COUNT( * ) ) AS SIGNED ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-8109
SELECT DISTINCT + CAST ( ( - COUNT ( * ) ) AS INTEGER ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8110
SELECT ALL - 1 * COUNT( + 53 ) + 85 * - 90 col1
----
-7651

skipif mysql # not compatible
query I rowsort label-8110
SELECT ALL - 1 * COUNT ( + 53 ) + 85 * - 90 col1
----
-7651

onlyif mysql # aggregate syntax: 
query I rowsort label-8111
SELECT ALL NULLIF ( 78, + COUNT( * ) / COUNT( * ) ) * - 93 + SUM( ALL 86 ) * 52
----
-2782

skipif mysql # not compatible
query I rowsort label-8111
SELECT ALL NULLIF ( 78, + COUNT ( * ) / COUNT ( * ) ) * - 93 + SUM ( ALL 86 ) * 52
----
-2782

onlyif mysql # aggregate syntax: 
query I rowsort label-8112
SELECT 58 * 93 - COUNT( * ) AS col1
----
5393

skipif mysql # not compatible
query I rowsort label-8112
SELECT 58 * 93 - COUNT ( * ) AS col1
----
5393

onlyif mysql # aggregate syntax: 
query I rowsort label-8113
SELECT + 22 + + - 43 + MIN( + ( 24 ) ) * + 89 AS col0
----
2115

skipif mysql # not compatible
query I rowsort label-8113
SELECT + 22 + + - 43 + MIN ( + ( 24 ) ) * + 89 AS col0
----
2115

onlyif mysql # DIV for integer division: 
query I rowsort label-8114
SELECT - 47 DIV - 17 - - 38
----
40

skipif mysql # not compatible
query I rowsort label-8114
SELECT - 47 / - 17 - - 38
----
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8115
SELECT NULLIF ( - NULLIF ( - CAST( NULL AS SIGNED ), - 88 ), - CAST( COUNT( * ) AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8115
SELECT NULLIF ( - NULLIF ( - CAST ( NULL AS INTEGER ), - 88 ), - CAST ( COUNT ( * ) AS INTEGER ) ) AS col0
----
NULL

query I rowsort
SELECT ALL + 86 * - - 55 + + 78 AS col2
----
4808

onlyif mysql # aggregate syntax: 
query I rowsort label-8117
SELECT COALESCE ( + 13, 73, - COUNT( * ) + 88 ) AS col1
----
13

skipif mysql # not compatible
query I rowsort label-8117
SELECT COALESCE ( + 13, 73, - COUNT ( * ) + 88 ) AS col1
----
13

query I rowsort
SELECT DISTINCT 56 * - 74 * 67 AS col0
----
-277648

query I rowsort
SELECT - 68 + + 75
----
7

query I rowsort
SELECT DISTINCT + ( + + 74 )
----
74

query I rowsort
SELECT ALL + 9 * - 62 + 10
----
-548

query I rowsort
SELECT COALESCE ( - 84, 79 )
----
-84

query I rowsort
SELECT DISTINCT + - 16 col2
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-8124
SELECT ALL NULLIF ( 68, COALESCE ( 53, 4 * - 42, 59 ) / + 18 ) * - COUNT( * ) - + ( + 47 ) * + COUNT( * )
----
-115

skipif mysql # not compatible
query I rowsort label-8124
SELECT ALL NULLIF ( 68, COALESCE ( 53, 4 * - 42, 59 ) / + 18 ) * - COUNT ( * ) - + ( + 47 ) * + COUNT ( * )
----
-115

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8125
SELECT - CAST( + - 98 AS SIGNED ) + + 5 AS col0
----
103

skipif mysql # not compatible
query I rowsort label-8125
SELECT - CAST ( + - 98 AS INTEGER ) + + 5 AS col0
----
103

onlyif mysql # DIV for integer division: 
query I rowsort label-8126
SELECT - - 89 DIV - 92
----
0

skipif mysql # not compatible
query I rowsort label-8126
SELECT - - 89 / - 92
----
0

query I rowsort
SELECT + - 84 * + 21
----
-1764

onlyif mysql # aggregate syntax: 
query I rowsort label-8128
SELECT ALL - MAX( - + 43 ) * 56
----
2408

skipif mysql # not compatible
query I rowsort label-8128
SELECT ALL - MAX ( - + 43 ) * 56
----
2408

query I rowsort
SELECT - 31 + - + 83 - 45 AS col1
----
-159

query I rowsort
SELECT - + 14 * - 67 + + 84 * 62
----
6146

query I rowsort
SELECT + + 9 * + + 87
----
783

onlyif mysql # aggregate syntax: 
query I rowsort label-8132
SELECT - COUNT( * ) + - 30 + COUNT( * ) * 4 * + 44 AS col2
----
145

skipif mysql # not compatible
query I rowsort label-8132
SELECT - COUNT ( * ) + - 30 + COUNT ( * ) * 4 * + 44 AS col2
----
145

query I rowsort
SELECT DISTINCT 84 * - - 52 + + 91
----
4459

query I rowsort
SELECT DISTINCT - ( 57 ) * 6
----
-342

query I rowsort
SELECT DISTINCT - + 78 * - + 90 - - 73
----
7093

onlyif mysql # aggregate syntax: 
query I rowsort label-8136
SELECT + MIN( DISTINCT + - 42 ) * - 84
----
3528

skipif mysql # not compatible
query I rowsort label-8136
SELECT + MIN ( DISTINCT + - 42 ) * - 84
----
3528

query I rowsort
SELECT + - ( 14 ) + 68 * - 73
----
-4978

onlyif mysql # aggregate syntax: 
query I rowsort label-8138
SELECT DISTINCT - 26 * - 79 * MAX( ALL 47 ) AS col2
----
96538

skipif mysql # not compatible
query I rowsort label-8138
SELECT DISTINCT - 26 * - 79 * MAX ( ALL 47 ) AS col2
----
96538

onlyif mysql # aggregate syntax: 
query I rowsort label-8139
SELECT - SUM( + ( 51 ) )
----
-51

skipif mysql # not compatible
query I rowsort label-8139
SELECT - SUM ( + ( 51 ) )
----
-51

query I rowsort
SELECT + + 57 + + 13 * 55
----
772

query I rowsort
SELECT - 47 + + 5 + 85 AS col2
----
43

query I rowsort
SELECT ALL CASE + 9 WHEN 61 / - NULLIF ( 68, - 76 ) THEN 84 ELSE NULL END + - CASE 13 WHEN 63 THEN + ( + 68 ) + 86 END / 27
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8143
SELECT + COUNT( * ) - - 8
----
9

skipif mysql # not compatible
query I rowsort label-8143
SELECT + COUNT ( * ) - - 8
----
9

query I rowsort
SELECT DISTINCT + 80 + - 8 AS col1
----
72

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8145
SELECT ALL COUNT( + 48 ) * + CASE - 40 WHEN - 22 * + 96 + 34 * - COALESCE ( 27 * 91, 39 * + COUNT( * ) - 32 ) THEN NULL WHEN - 99 + 79 THEN NULL WHEN 99 THEN NULL ELSE 57 * 21 + - NULLIF ( 42, + 7 + 32 * + 66 ) END + - COUNT( * ) DIV - 34
----
1155

skipif mysql # not compatible
query I rowsort label-8145
SELECT ALL COUNT ( + 48 ) * + CASE - 40 WHEN - 22 * + 96 + 34 * - COALESCE ( 27 * 91, 39 * + COUNT ( * ) - 32 ) THEN NULL WHEN - 99 + 79 THEN NULL WHEN 99 THEN NULL ELSE 57 * 21 + - NULLIF ( 42, + 7 + 32 * + 66 ) END + - COUNT ( * ) / - 34
----
1155

onlyif mysql # aggregate syntax: 
query I rowsort label-8146
SELECT ALL COUNT( ALL + + 75 )
----
1

skipif mysql # not compatible
query I rowsort label-8146
SELECT ALL COUNT ( ALL + + 75 )
----
1

query I rowsort
SELECT - ( + + 13 ) AS col1
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-8148
SELECT DISTINCT COUNT( ALL 64 )
----
1

skipif mysql # not compatible
query I rowsort label-8148
SELECT DISTINCT COUNT ( ALL 64 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8149
SELECT ALL 46 + - CAST( NULL AS SIGNED ) + - - 65 + - SUM( - 14 ) / 33 * - 53
----
NULL

skipif mysql # not compatible
query I rowsort label-8149
SELECT ALL 46 + - CAST ( NULL AS INTEGER ) + - - 65 + - SUM ( - 14 ) / 33 * - 53
----
NULL

query I rowsort
SELECT + 51 + + 67 AS col1
----
118

onlyif mysql # aggregate syntax: 
query I rowsort label-8151
SELECT 63 * - + 68 * - 23 * + 83 + MIN( + 5 ) AS col2
----
8178161

skipif mysql # not compatible
query I rowsort label-8151
SELECT 63 * - + 68 * - 23 * + 83 + MIN ( + 5 ) AS col2
----
8178161

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8152
SELECT + 81 DIV + + 74 * + COUNT( * ) + + 57 * - 83
----
-4730

skipif mysql # not compatible
query I rowsort label-8152
SELECT + 81 / + + 74 * + COUNT ( * ) + + 57 * - 83
----
-4730

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8153
SELECT ALL - ( - + 15 ) DIV - ( ( 59 ) ) + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-8153
SELECT ALL - ( - + 15 ) / - ( ( 59 ) ) + COUNT ( * )
----
1

query I rowsort
SELECT + 15 * 38 * - + 89
----
-50730

query I rowsort
SELECT + 92 * - - 23
----
2116

query II rowsort
SELECT ALL + 6, + 38 AS col2
----
6
38

query I rowsort
SELECT + 9 + - - 99
----
108

onlyif mysql # aggregate syntax: 
query I rowsort label-8158
SELECT DISTINCT 15 * + COUNT( * ) * - - 41
----
615

skipif mysql # not compatible
query I rowsort label-8158
SELECT DISTINCT 15 * + COUNT ( * ) * - - 41
----
615

onlyif mysql # aggregate syntax: 
query II rowsort label-8159
SELECT + 21 AS col0, - COUNT( DISTINCT 3 )
----
21
-1

skipif mysql # not compatible
query II rowsort label-8159
SELECT + 21 AS col0, - COUNT ( DISTINCT 3 )
----
21
-1

onlyif mysql # DIV for integer division: 
query II rowsort label-8160
SELECT 77 AS col2, - 22 + - 28 DIV 1 AS col0
----
77
-50

skipif mysql # not compatible
query II rowsort label-8160
SELECT 77 AS col2, - 22 + - 28 / 1 AS col0
----
77
-50

query I rowsort
SELECT 93 * + 3 * + - 38 * + 21 col1
----
-222642

query I rowsort
SELECT - 62 + 45 / + 93 + CASE ( - 67 ) + 70 WHEN ( + 58 ) THEN + CASE 73 WHEN 5 / - 17 THEN 59 ELSE - 65 * - 73 END WHEN 91 * - 51 THEN 42 END AS col1
----
NULL

query I rowsort
SELECT ALL - 82 * + 61
----
-5002

query I rowsort
SELECT ALL - CASE - 9 WHEN - 87 + 90 * 57 THEN NULL WHEN + 1 * 53 THEN + 53 ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT ALL - - 30 * ( + - 34 ) AS col1
----
-1020

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8166
SELECT 85 - NULLIF ( - 50, - 12 + CAST( NULL AS SIGNED ) ) + + 4 DIV 89
----
135

skipif mysql # not compatible
query I rowsort label-8166
SELECT 85 - NULLIF ( - 50, - 12 + CAST ( NULL AS INTEGER ) ) + + 4 / 89
----
135

query I rowsort
SELECT ALL - NULLIF ( + 4, - ( - 34 ) ) * - 15 AS col1
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-8168
SELECT - 29 * - COALESCE ( - - 90, + MIN( 61 ) + - 62 * 61, - 23 * 97 + 23 * + 73 )
----
2610

skipif mysql # not compatible
query I rowsort label-8168
SELECT - 29 * - COALESCE ( - - 90, + MIN ( 61 ) + - 62 * 61, - 23 * 97 + 23 * + 73 )
----
2610

query I rowsort
SELECT ALL + ( + 75 ) * - 27
----
-2025

onlyif mysql # DIV for integer division: 
query I rowsort label-8170
SELECT + 56 DIV - 57 * - 99
----
0

skipif mysql # not compatible
query I rowsort label-8170
SELECT + 56 / - 57 * - 99
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8171
SELECT + ( COUNT( * ) ) DIV 19 * + 29 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8171
SELECT + ( COUNT ( * ) ) / 19 * + 29 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8172
SELECT 31 DIV - 4
----
-7

skipif mysql # not compatible
query I rowsort label-8172
SELECT 31 / - 4
----
-7

query I rowsort
SELECT ALL + + 13 + + 92 * 87 AS col0
----
8017

query I rowsort
SELECT - 6 * - 1
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-8175
SELECT - SUM( - 60 ) col2
----
60

skipif mysql # not compatible
query I rowsort label-8175
SELECT - SUM ( - 60 ) col2
----
60

query I rowsort
SELECT + 15 + - 15
----
0

query II rowsort
SELECT DISTINCT 73 AS col0, 86 * - - 77 AS col1
----
73
6622

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8178
SELECT ALL + 45 + - + 30 + + + 5 + CAST( 88 + 78 AS SIGNED )
----
186

skipif mysql # not compatible
query I rowsort label-8178
SELECT ALL + 45 + - + 30 + + + 5 + CAST ( 88 + 78 AS INTEGER )
----
186

onlyif mysql # aggregate syntax: 
query I rowsort label-8179
SELECT ALL 52 * + COUNT( 46 )
----
52

skipif mysql # not compatible
query I rowsort label-8179
SELECT ALL 52 * + COUNT ( 46 )
----
52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8180
SELECT DISTINCT CAST( NULL AS SIGNED ) + + 95
----
NULL

skipif mysql # not compatible
query I rowsort label-8180
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + 95
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8181
SELECT ALL COUNT( DISTINCT + 16 ) + - CAST( + 42 AS SIGNED ) + 73 col2
----
32

skipif mysql # not compatible
query I rowsort label-8181
SELECT ALL COUNT ( DISTINCT + 16 ) + - CAST ( + 42 AS INTEGER ) + 73 col2
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-8182
SELECT DISTINCT - NULLIF ( - ( - ( 20 ) ), 13 ) * COUNT( * )
----
-20

skipif mysql # not compatible
query I rowsort label-8182
SELECT DISTINCT - NULLIF ( - ( - ( 20 ) ), 13 ) * COUNT ( * )
----
-20

query I rowsort
SELECT DISTINCT 5 + + 28 * 97 - + 99 * - 68 AS col0
----
9453

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8184
SELECT ALL - 4 * + 23, + 67 / - CASE COUNT( * ) WHEN CAST( NULL AS SIGNED ) + COUNT( * ) THEN - 81 / 14 END / 48 + + ( + CAST( + 28 AS SIGNED ) ) / - 91 AS col1
----
-92
NULL

skipif mysql # not compatible
query II rowsort label-8184
SELECT ALL - 4 * + 23, + 67 / - CASE COUNT ( * ) WHEN CAST ( NULL AS INTEGER ) + COUNT ( * ) THEN - 81 / 14 END / 48 + + ( + CAST ( + 28 AS INTEGER ) ) / - 91 AS col1
----
-92
NULL

query I rowsort
SELECT 9 + + + NULLIF ( + + 82, + - 92 )
----
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8186
SELECT 45 * CASE + ( - 42 ) WHEN - CAST( 75 AS SIGNED ) THEN + 79 + 65 END / 21
----
NULL

skipif mysql # not compatible
query I rowsort label-8186
SELECT 45 * CASE + ( - 42 ) WHEN - CAST ( 75 AS INTEGER ) THEN + 79 + 65 END / 21
----
NULL

query II rowsort
SELECT 16 * 82, - 35 + 61 * - 64 AS col1
----
1312
-3939

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8188
SELECT ALL 10 + CAST( NULL AS SIGNED ) + MAX( DISTINCT + + 94 ) + 36 * + 35
----
NULL

skipif mysql # not compatible
query I rowsort label-8188
SELECT ALL 10 + CAST ( NULL AS INTEGER ) + MAX ( DISTINCT + + 94 ) + 36 * + 35
----
NULL

query I rowsort
SELECT 25 - 92
----
-67

query I rowsort
SELECT 35 + 96
----
131

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8191
SELECT DISTINCT - CASE 97 WHEN + 21 THEN NULL ELSE - CAST( NULL AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-8191
SELECT DISTINCT - CASE 97 WHEN + 21 THEN NULL ELSE - CAST ( NULL AS INTEGER ) END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8192
SELECT ALL - ( + - 36 ) - + + CASE + + 76 WHEN 95 + + 3 THEN NULL WHEN ( 1 ) * 33 THEN 8 + 51 DIV 69 ELSE + ( - COUNT( * ) ) + 52 DIV - 16 END AS col1
----
40

skipif mysql # not compatible
query I rowsort label-8192
SELECT ALL - ( + - 36 ) - + + CASE + + 76 WHEN 95 + + 3 THEN NULL WHEN ( 1 ) * 33 THEN 8 + 51 / 69 ELSE + ( - COUNT ( * ) ) + 52 / - 16 END AS col1
----
40

query I rowsort
SELECT DISTINCT 39 * 46
----
1794

query I rowsort
SELECT ALL 56 - 44
----
12

query I rowsort
SELECT ALL 32 * + - 29 AS col0
----
-928

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8196
SELECT DISTINCT 3 * - ( + 90 ) / - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8196
SELECT DISTINCT 3 * - ( + 90 ) / - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8197
SELECT + 1 DIV - 40 + 57 AS col1
----
57

skipif mysql # not compatible
query I rowsort label-8197
SELECT + 1 / - 40 + 57 AS col1
----
57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8198
SELECT CASE + + NULLIF ( - 39, + + 49 ) WHEN 32 THEN NULL WHEN 1 THEN NULL WHEN NULLIF ( 44, 58 * 32 ) DIV 5 THEN 62 * 1 ELSE 49 END DIV + COUNT( * ) col0
----
49

skipif mysql # not compatible
query I rowsort label-8198
SELECT CASE + + NULLIF ( - 39, + + 49 ) WHEN 32 THEN NULL WHEN 1 THEN NULL WHEN NULLIF ( 44, 58 * 32 ) / 5 THEN 62 * 1 ELSE 49 END / + COUNT ( * ) col0
----
49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8199
SELECT DISTINCT + 11 * CASE - 15 WHEN + - 51 * 53 THEN NULL WHEN + 81 THEN NULL WHEN 77 / 21 + - MAX( - 46 + + CAST( NULL AS SIGNED ) * 25 ) THEN 31 END * + 91 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8199
SELECT DISTINCT + 11 * CASE - 15 WHEN + - 51 * 53 THEN NULL WHEN + 81 THEN NULL WHEN 77 / 21 + - MAX ( - 46 + + CAST ( NULL AS INTEGER ) * 25 ) THEN 31 END * + 91 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8200
SELECT ALL 21 * + - 72 * + AVG ( ALL + CAST( NULL AS SIGNED ) ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8200
SELECT ALL 21 * + - 72 * + AVG ( ALL + CAST ( NULL AS INTEGER ) ) col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8201
SELECT 47 * - ( - CASE + - 0 WHEN 82 THEN 17 * COUNT( * ) ELSE NULL END ) + 52 * MIN( ALL - CAST( - 80 AS SIGNED ) ) + 73 * + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8201
SELECT 47 * - ( - CASE + - 0 WHEN 82 THEN 17 * COUNT ( * ) ELSE NULL END ) + 52 * MIN ( ALL - CAST ( - 80 AS INTEGER ) ) + 73 * + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8202
SELECT - 60 * 3 + + 74 * - COUNT( * ) AS col1
----
-254

skipif mysql # not compatible
query I rowsort label-8202
SELECT - 60 * 3 + + 74 * - COUNT ( * ) AS col1
----
-254

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8203
SELECT + - ( 64 ) * 22 + - + COUNT( * ) * CAST( 53 + NULLIF ( - 73, SUM( ALL + 98 ) * + 62 ) AS SIGNED ) + ( + 76 )
----
-1312

skipif mysql # not compatible
query I rowsort label-8203
SELECT + - ( 64 ) * 22 + - + COUNT ( * ) * CAST ( 53 + NULLIF ( - 73, SUM ( ALL + 98 ) * + 62 ) AS INTEGER ) + ( + 76 )
----
-1312

query I rowsort
SELECT + 13 * + 27 + 32 AS col2
----
383

onlyif mysql # aggregate syntax: 
query I rowsort label-8205
SELECT ALL - COUNT( DISTINCT - 97 ) * - 37
----
37

skipif mysql # not compatible
query I rowsort label-8205
SELECT ALL - COUNT ( DISTINCT - 97 ) * - 37
----
37

query I rowsort
SELECT + 27 * + 48
----
1296

query I rowsort
SELECT ALL + ( - + 58 ) * 14 * - - 33 + 32
----
-26764

query I rowsort
SELECT - 94 * ( - 65 ) + 96 + 24 AS col1
----
6230

onlyif mysql # aggregate syntax: 
query I rowsort label-8209
SELECT - 93 * - NULLIF ( + 72, + COUNT( * ) ) AS col1
----
6696

skipif mysql # not compatible
query I rowsort label-8209
SELECT - 93 * - NULLIF ( + 72, + COUNT ( * ) ) AS col1
----
6696

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8210
SELECT - CASE + 56 WHEN + 67 / CASE CAST( NULL AS SIGNED ) WHEN SUM( ALL - 90 ) THEN COUNT( * ) ELSE 68 END + CAST( + 17 AS SIGNED ) THEN + ( 17 ) * 40 + 23 ELSE NULL END * - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8210
SELECT - CASE + 56 WHEN + 67 / CASE CAST ( NULL AS INTEGER ) WHEN SUM ( ALL - 90 ) THEN COUNT ( * ) ELSE 68 END + CAST ( + 17 AS INTEGER ) THEN + ( 17 ) * 40 + 23 ELSE NULL END * - COUNT ( * )
----
NULL

query I rowsort
SELECT ALL 46 + + CASE NULLIF ( + NULLIF ( 22, + 56 ), 67 ) WHEN 28 THEN - 55 * + 37 END
----
NULL

query I rowsort
SELECT + 29 + + 44 * - - 70 AS col2
----
3109

query I rowsort
SELECT 77 * - + 51 + - + 23 * 3
----
-3996

onlyif mysql # aggregate syntax: 
query II rowsort label-8214
SELECT DISTINCT + 44 + + 37 col1, + 5 + + + COUNT( * )
----
81
6

skipif mysql # not compatible
query II rowsort label-8214
SELECT DISTINCT + 44 + + 37 col1, + 5 + + + COUNT ( * )
----
81
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8215
SELECT + COALESCE ( + 3, - 84 + - 73 ) + CAST( + 11 + + 70 * COUNT( DISTINCT - 99 ) AS SIGNED ) AS col1
----
84

skipif mysql # not compatible
query I rowsort label-8215
SELECT + COALESCE ( + 3, - 84 + - 73 ) + CAST ( + 11 + + 70 * COUNT ( DISTINCT - 99 ) AS INTEGER ) AS col1
----
84

query I rowsort
SELECT ALL + 16 + + 40 + - 45 + - 26
----
-15

query I rowsort
SELECT 56 + - - 43 * + 1 + 72 AS col2
----
171

query I rowsort
SELECT 35 + + 88 AS col2
----
123

query I rowsort
SELECT 39 * + 8
----
312

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8220
SELECT - CASE 59 WHEN - 47 * CAST( + 74 AS SIGNED ) THEN NULL ELSE + COALESCE ( COUNT( * ), 84, 23 ) * 78 + CAST( 35 + 79 AS SIGNED ) END AS col2
----
-192

skipif mysql # not compatible
query I rowsort label-8220
SELECT - CASE 59 WHEN - 47 * CAST ( + 74 AS INTEGER ) THEN NULL ELSE + COALESCE ( COUNT ( * ), 84, 23 ) * 78 + CAST ( 35 + 79 AS INTEGER ) END AS col2
----
-192

onlyif mysql # aggregate syntax: 
query I rowsort label-8221
SELECT 45 + COUNT( * ) AS col2
----
46

skipif mysql # not compatible
query I rowsort label-8221
SELECT 45 + COUNT ( * ) AS col2
----
46

query I rowsort
SELECT ALL + 63 + + 33
----
96

query I rowsort
SELECT 54 + - NULLIF ( + 83, + 72 * + 9 ) - 26
----
-55

query I rowsort
SELECT 29 * - + 30 * + + 28 AS col2
----
-24360

onlyif mysql # aggregate syntax: 
query I rowsort label-8225
SELECT 35 + + COUNT( * )
----
36

skipif mysql # not compatible
query I rowsort label-8225
SELECT 35 + + COUNT ( * )
----
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8226
SELECT ALL - 27 * + 65 * - COUNT( * ) * + + CAST( - COUNT( * ) AS SIGNED ) * - 66
----
115830

skipif mysql # not compatible
query I rowsort label-8226
SELECT ALL - 27 * + 65 * - COUNT ( * ) * + + CAST ( - COUNT ( * ) AS INTEGER ) * - 66
----
115830

query I rowsort
SELECT DISTINCT - 18 * - 54
----
972

query I rowsort
SELECT DISTINCT + 55 * - 39 AS col0
----
-2145

query I rowsort
SELECT ALL + 73 * - 90 AS col0
----
-6570

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8230
SELECT - 50 * 10 * + - CAST( + 39 AS SIGNED )
----
19500

skipif mysql # not compatible
query I rowsort label-8230
SELECT - 50 * 10 * + - CAST ( + 39 AS INTEGER )
----
19500

onlyif mysql # aggregate syntax: 
query I rowsort label-8231
SELECT DISTINCT + 55 * + + COUNT( - 89 ) AS col1
----
55

skipif mysql # not compatible
query I rowsort label-8231
SELECT DISTINCT + 55 * + + COUNT ( - 89 ) AS col1
----
55

query I rowsort
SELECT CASE - 38 WHEN + + 67 THEN + - 96 END AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8233
SELECT + CAST( NULL AS SIGNED ) * - + 82 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8233
SELECT + CAST ( NULL AS INTEGER ) * - + 82 col0
----
NULL

query I rowsort
SELECT - + 27 * + + 90 AS col0
----
-2430

query I rowsort
SELECT DISTINCT + + 76 col0
----
76

query I rowsort
SELECT DISTINCT + + 55 * - - ( 98 ) + - 40
----
5350

onlyif mysql # aggregate syntax: 
query I rowsort label-8237
SELECT DISTINCT + 83 * - + MAX( 76 )
----
-6308

skipif mysql # not compatible
query I rowsort label-8237
SELECT DISTINCT + 83 * - + MAX ( 76 )
----
-6308

onlyif mysql # aggregate syntax: 
query I rowsort label-8238
SELECT + CASE - 54 WHEN COUNT( * ) + 53 * 21 THEN NULL ELSE 88 * + 16 END * 3 + + 61
----
4285

skipif mysql # not compatible
query I rowsort label-8238
SELECT + CASE - 54 WHEN COUNT ( * ) + 53 * 21 THEN NULL ELSE 88 * + 16 END * 3 + + 61
----
4285

onlyif mysql # aggregate syntax: 
query I rowsort label-8239
SELECT + - 44 + + COUNT( * ) AS col1
----
-43

skipif mysql # not compatible
query I rowsort label-8239
SELECT + - 44 + + COUNT ( * ) AS col1
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-8240
SELECT ALL - COALESCE ( 21, - + 76 + - + 35 + - 78 ) * - 58 + + COUNT( * )
----
1219

skipif mysql # not compatible
query I rowsort label-8240
SELECT ALL - COALESCE ( 21, - + 76 + - + 35 + - 78 ) * - 58 + + COUNT ( * )
----
1219

onlyif mysql # aggregate syntax: 
query I rowsort label-8241
SELECT ALL + 18 * - COUNT( * ) + - ( 68 )
----
-86

skipif mysql # not compatible
query I rowsort label-8241
SELECT ALL + 18 * - COUNT ( * ) + - ( 68 )
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-8242
SELECT + - 0 - - COUNT( + - 35 ) * 81 AS col2
----
81

skipif mysql # not compatible
query I rowsort label-8242
SELECT + - 0 - - COUNT ( + - 35 ) * 81 AS col2
----
81

query I rowsort
SELECT DISTINCT ( - 45 ) * 90 + - 80
----
-4130

query I rowsort
SELECT DISTINCT + + 6 * + ( - ( - - 14 ) ) + 58 + 31 col0
----
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8245
SELECT DISTINCT + 87 * - CAST( 69 AS SIGNED ) * + - 68 * - 55 + + 69 AS col2
----
-22451151

skipif mysql # not compatible
query I rowsort label-8245
SELECT DISTINCT + 87 * - CAST ( 69 AS INTEGER ) * + - 68 * - 55 + + 69 AS col2
----
-22451151

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8246
SELECT ALL + - 7 * 84 + + - CAST( NULL AS SIGNED ) + - 77 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8246
SELECT ALL + - 7 * 84 + + - CAST ( NULL AS INTEGER ) + - 77 AS col2
----
NULL

query I rowsort
SELECT ALL - + 41 * - 89 + + - 20 + + 50
----
3679

onlyif mysql # aggregate syntax: 
query I rowsort label-8248
SELECT DISTINCT - MAX( ALL - 2 )
----
2

skipif mysql # not compatible
query I rowsort label-8248
SELECT DISTINCT - MAX ( ALL - 2 )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-8249
SELECT MAX( 75 )
----
75

skipif mysql # not compatible
query I rowsort label-8249
SELECT MAX ( 75 )
----
75

onlyif mysql # aggregate syntax: 
query II rowsort label-8250
SELECT MAX( + - 84 ) AS col1, - 69 col0
----
-84
-69

skipif mysql # not compatible
query II rowsort label-8250
SELECT MAX ( + - 84 ) AS col1, - 69 col0
----
-84
-69

query I rowsort
SELECT ALL 34 - ( 93 )
----
-59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8252
SELECT - CASE + + COUNT( * ) WHEN 70 THEN NULL WHEN + + 37 + - + 94 THEN - 65 ELSE - CAST( - 11 AS SIGNED ) END AS col0
----
-11

skipif mysql # not compatible
query I rowsort label-8252
SELECT - CASE + + COUNT ( * ) WHEN 70 THEN NULL WHEN + + 37 + - + 94 THEN - 65 ELSE - CAST ( - 11 AS INTEGER ) END AS col0
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-8253
SELECT ALL MAX( - 7 ) - - - 81 AS col1
----
-88

skipif mysql # not compatible
query I rowsort label-8253
SELECT ALL MAX ( - 7 ) - - - 81 AS col1
----
-88

query I rowsort
SELECT ALL + 41 * + - 46 * + - 47
----
88642

onlyif mysql # aggregate syntax: 
query I rowsort label-8255
SELECT DISTINCT NULLIF ( + 32, + ( SUM( ALL + 37 ) ) * 11 ) AS col1
----
32

skipif mysql # not compatible
query I rowsort label-8255
SELECT DISTINCT NULLIF ( + 32, + ( SUM ( ALL + 37 ) ) * 11 ) AS col1
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-8256
SELECT ALL + 32 - + COUNT( * )
----
31

skipif mysql # not compatible
query I rowsort label-8256
SELECT ALL + 32 - + COUNT ( * )
----
31

query I rowsort
SELECT DISTINCT 92 * + 27
----
2484

onlyif mysql # aggregate syntax: 
query I rowsort label-8258
SELECT ALL CASE COUNT( + + 27 ) WHEN - 80 * + + COUNT( * ) + + 70 - + 54 * - ( - 76 * + 92 ) THEN 20 * - 50 WHEN - 31 * + 64 THEN NULL ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8258
SELECT ALL CASE COUNT ( + + 27 ) WHEN - 80 * + + COUNT ( * ) + + 70 - + 54 * - ( - 76 * + 92 ) THEN 20 * - 50 WHEN - 31 * + 64 THEN NULL ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT DISTINCT ( + + 70 ) AS col2
----
70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8260
SELECT - 21 * - + COALESCE ( - + COUNT( DISTINCT 79 ), - + 51 * + COUNT( ALL - 66 ) * - 72, - 23 * + ( - 4 * 49 ) + + 10 ) DIV - 91
----
0

skipif mysql # not compatible
query I rowsort label-8260
SELECT - 21 * - + COALESCE ( - + COUNT ( DISTINCT 79 ), - + 51 * + COUNT ( ALL - 66 ) * - 72, - 23 * + ( - 4 * 49 ) + + 10 ) / - 91
----
0

query I rowsort
SELECT ALL 27 * + 92 * - 49 AS col1
----
-121716

query I rowsort
SELECT + 9 + 95
----
104

query II rowsort
SELECT 22 AS col0, 71 - - 28
----
22
99

query I rowsort
SELECT ALL CASE + 89 WHEN + 56 THEN + 49 * - - ( - 88 ) * + 92 + - 75 * + 57 + 60 ELSE 24 END AS col0
----
24

onlyif mysql # aggregate syntax: 
query II rowsort label-8265
SELECT - 67 AS col2, + 62 + - CASE + - 75 WHEN MIN( ALL + ( 74 ) ) THEN NULL WHEN - 32 * + 92 THEN NULL WHEN 10 * 19 THEN 89 ELSE NULL END AS col1
----
-67
NULL

skipif mysql # not compatible
query II rowsort label-8265
SELECT - 67 AS col2, + 62 + - CASE + - 75 WHEN MIN ( ALL + ( 74 ) ) THEN NULL WHEN - 32 * + 92 THEN NULL WHEN 10 * 19 THEN 89 ELSE NULL END AS col1
----
-67
NULL

query I rowsort
SELECT - 91 * 52 AS col1
----
-4732

onlyif mysql # DIV for integer division: 
query I rowsort label-8267
SELECT ALL - 97 DIV 1 DIV 4
----
-24

skipif mysql # not compatible
query I rowsort label-8267
SELECT ALL - 97 / 1 / 4
----
-24

query I rowsort
SELECT ALL ( - 52 ) AS col0
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-8269
SELECT - CASE + 42 WHEN - 15 THEN - COUNT( * ) WHEN + COUNT( * ) THEN + COUNT( * ) * 48 + 84 * + 47 END + 99 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8269
SELECT - CASE + 42 WHEN - 15 THEN - COUNT ( * ) WHEN + COUNT ( * ) THEN + COUNT ( * ) * 48 + 84 * + 47 END + 99 AS col2
----
NULL

query I rowsort
SELECT - ( - 65 ) * + 72 col2
----
4680

query I rowsort
SELECT ALL - - 98 * - ( - - 0 )
----
0

query II rowsort
SELECT + 62 AS col2, ( 57 ) AS col2
----
62
57

query I rowsort
SELECT - 53 + - 74 + + 79 + 10 * + 9
----
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8274
SELECT + 15 * - COALESCE ( + 5, + - CAST( NULL AS SIGNED ) * + - 95 * - - COUNT( * ) ) - 63
----
-138

skipif mysql # not compatible
query I rowsort label-8274
SELECT + 15 * - COALESCE ( + 5, + - CAST ( NULL AS INTEGER ) * + - 95 * - - COUNT ( * ) ) - 63
----
-138

onlyif mysql # DIV for integer division: 
query II rowsort label-8275
SELECT + 85, 66 DIV + + 52 + + 9 + - + 71 + - 95 * 87 col0
----
85
-8326

skipif mysql # not compatible
query II rowsort label-8275
SELECT + 85, 66 / + + 52 + + 9 + - + 71 + - 95 * 87 col0
----
85
-8326

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8276
SELECT + CAST( - 65 AS SIGNED ) AS col2
----
-65

skipif mysql # not compatible
query I rowsort label-8276
SELECT + CAST ( - 65 AS INTEGER ) AS col2
----
-65

query I rowsort
SELECT - - 15 + 28
----
43

onlyif mysql # DIV for integer division: 
query I rowsort label-8278
SELECT ALL - 71 DIV + + 77 + - 14 AS col2
----
-14

skipif mysql # not compatible
query I rowsort label-8278
SELECT ALL - 71 / + + 77 + - 14 AS col2
----
-14

query I rowsort
SELECT + + 40 + - 7 AS col1
----
33

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8280
SELECT + 23 * + 73 + 0 DIV - NULLIF ( - COUNT( * ), + 40 ) + + 28 + 46
----
1753

skipif mysql # not compatible
query I rowsort label-8280
SELECT + 23 * + 73 + 0 / - NULLIF ( - COUNT ( * ), + 40 ) + + 28 + 46
----
1753

query II rowsort
SELECT 23, 31 AS col2
----
23
31

onlyif mysql # DIV for integer division: 
query I rowsort label-8282
SELECT DISTINCT 89 DIV - 21 + - 4
----
-8

skipif mysql # not compatible
query I rowsort label-8282
SELECT DISTINCT 89 / - 21 + - 4
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-8283
SELECT - + 80 + 47 * 22 + + COUNT( * )
----
955

skipif mysql # not compatible
query I rowsort label-8283
SELECT - + 80 + 47 * 22 + + COUNT ( * )
----
955

query I rowsort
SELECT + 38 * - + 11 * + - 41 AS col2
----
17138

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8285
SELECT ALL + CAST( + COUNT( * ) AS SIGNED ) * + 28 AS col2
----
28

skipif mysql # not compatible
query I rowsort label-8285
SELECT ALL + CAST ( + COUNT ( * ) AS INTEGER ) * + 28 AS col2
----
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8286
SELECT CASE + MAX( NULLIF ( - 45, + - CAST( 79 AS SIGNED ) ) ) WHEN CASE 61 WHEN 65 THEN 25 / + 15 END THEN NULL WHEN 78 THEN NULL ELSE MIN( DISTINCT - CAST( NULL AS SIGNED ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-8286
SELECT CASE + MAX ( NULLIF ( - 45, + - CAST ( 79 AS INTEGER ) ) ) WHEN CASE 61 WHEN 65 THEN 25 / + 15 END THEN NULL WHEN 78 THEN NULL ELSE MIN ( DISTINCT - CAST ( NULL AS INTEGER ) ) END
----
NULL

query I rowsort
SELECT DISTINCT + 84 * 91 + 73 + + 24 - - 99 + - 8
----
7832

onlyif mysql # aggregate syntax: 
query I rowsort label-8288
SELECT + NULLIF ( + 62, + + 58 * - 18 * - 39 - - COUNT( * ) + 34 * - 83 / 68 )
----
62

skipif mysql # not compatible
query I rowsort label-8288
SELECT + NULLIF ( + 62, + + 58 * - 18 * - 39 - - COUNT ( * ) + 34 * - 83 / 68 )
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-8289
SELECT + COUNT( DISTINCT ( - 9 ) )
----
1

skipif mysql # not compatible
query I rowsort label-8289
SELECT + COUNT ( DISTINCT ( - 9 ) )
----
1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8290
SELECT ALL + 41 * 40 + - 37 + + 82 * + 44 - - + CAST( NULL AS DECIMAL ) - 39
----
NULL

skipif mysql # not compatible
query I rowsort label-8290
SELECT ALL + 41 * 40 + - 37 + + 82 * + 44 - - + CAST ( NULL AS REAL ) - 39
----
NULL

query II rowsort
SELECT + 5 * + 93, - 54 * - - COALESCE ( 30, - 19 ) AS col0
----
465
-1620

query I rowsort
SELECT - 17 + 99 AS col1
----
82

query II rowsort
SELECT ALL 87 * - 64 AS col1, + 0
----
-5568
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8294
SELECT + MAX( + 57 ) + - 69 AS col0
----
-12

skipif mysql # not compatible
query I rowsort label-8294
SELECT + MAX ( + 57 ) + - 69 AS col0
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-8295
SELECT + 71 * COUNT( * ) + - 26 + 46
----
91

skipif mysql # not compatible
query I rowsort label-8295
SELECT + 71 * COUNT ( * ) + - 26 + 46
----
91

query II rowsort
SELECT 44 * 61 col1, + 85 AS col2
----
2684
85

query I rowsort
SELECT 79 + - 52 - + 80 AS col2
----
-53

query II rowsort
SELECT 98 * - + ( + - 35 ), + 1 * - ( + + 24 ) AS col2
----
3430
-24

query I rowsort
SELECT ALL 73 + 16 AS col2
----
89

onlyif mysql # DIV for integer division: 
query I rowsort label-8300
SELECT DISTINCT - 92 + + 95 DIV - 99
----
-92

skipif mysql # not compatible
query I rowsort label-8300
SELECT DISTINCT - 92 + + 95 / - 99
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-8301
SELECT ALL + COUNT( * ) + - 22 + - + 35 AS col0
----
-56

skipif mysql # not compatible
query I rowsort label-8301
SELECT ALL + COUNT ( * ) + - 22 + - + 35 AS col0
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-8302
SELECT 88 / - CASE - 63 WHEN + 66 * - COALESCE ( - 34, - MIN( ALL - 37 ) + - MIN( DISTINCT 31 ), 48 ) THEN ( - 22 ) ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8302
SELECT 88 / - CASE - 63 WHEN + 66 * - COALESCE ( - 34, - MIN ( ALL - 37 ) + - MIN ( DISTINCT 31 ), 48 ) THEN ( - 22 ) ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8303
SELECT ALL CASE 46 WHEN - + NULLIF ( - - ( - 94 ), - + SUM( + 91 ) + 89 ) + - 87 * + 22 THEN 32 WHEN 94 THEN NULL WHEN 14 THEN NULL END + 57
----
NULL

skipif mysql # not compatible
query I rowsort label-8303
SELECT ALL CASE 46 WHEN - + NULLIF ( - - ( - 94 ), - + SUM ( + 91 ) + 89 ) + - 87 * + 22 THEN 32 WHEN 94 THEN NULL WHEN 14 THEN NULL END + 57
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8304
SELECT ALL - COALESCE ( - 62, COUNT( * ) * - CASE + 48 WHEN + 52 * + 63 THEN 94 WHEN - 0 THEN NULL ELSE 0 END * - 49, + 23 + 87, + 87 ) + 11 AS col1
----
73

skipif mysql # not compatible
query I rowsort label-8304
SELECT ALL - COALESCE ( - 62, COUNT ( * ) * - CASE + 48 WHEN + 52 * + 63 THEN 94 WHEN - 0 THEN NULL ELSE 0 END * - 49, + 23 + 87, + 87 ) + 11 AS col1
----
73

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8305
SELECT COUNT( * ) DIV + COUNT( * ) AS col2, COUNT( * ) col2
----
1
1

skipif mysql # not compatible
query II rowsort label-8305
SELECT COUNT ( * ) / + COUNT ( * ) AS col2, COUNT ( * ) col2
----
1
1

query I rowsort
SELECT 62 * - 96 + - 89 AS col1
----
-6041

query I rowsort
SELECT 21 * 78
----
1638

onlyif mysql # DIV for integer division: 
query I rowsort label-8308
SELECT ALL - - 4 DIV - 78 * - 15 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8308
SELECT ALL - - 4 / - 78 * - 15 AS col1
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8309
SELECT ALL 56 + CAST( NULL AS DECIMAL ) / 45 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8309
SELECT ALL 56 + CAST ( NULL AS REAL ) / 45 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8310
SELECT ALL - + MAX( DISTINCT + 30 ) + + 0 + + COUNT( * )
----
-29

skipif mysql # not compatible
query I rowsort label-8310
SELECT ALL - + MAX ( DISTINCT + 30 ) + + 0 + + COUNT ( * )
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-8311
SELECT + - NULLIF ( - COUNT( * ), 7 - - - NULLIF ( + 67, 6 ) + + + 49 / 3 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8311
SELECT + - NULLIF ( - COUNT ( * ), 7 - - - NULLIF ( + 67, 6 ) + + + 49 / 3 ) AS col2
----
1

query I rowsort
SELECT ALL - ( - 96 )
----
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8313
SELECT ALL + CAST( NULL AS SIGNED ) * - 12 * - 5 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8313
SELECT ALL + CAST ( NULL AS INTEGER ) * - 12 * - 5 AS col0
----
NULL

query I rowsort
SELECT + COALESCE ( + 85, + 59 ) AS col1
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-8315
SELECT - 70 * - 11 * - 79 / + 88 + 7 + - ( - CASE - 12 WHEN + 52 THEN 86 WHEN 56 * 92 THEN ( - 2 ) + + ( - COALESCE ( SUM( ALL - 78 ), 10 ) ) END ) / 92 + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8315
SELECT - 70 * - 11 * - 79 / + 88 + 7 + - ( - CASE - 12 WHEN + 52 THEN 86 WHEN 56 * 92 THEN ( - 2 ) + + ( - COALESCE ( SUM ( ALL - 78 ), 10 ) ) END ) / 92 + - COUNT ( * )
----
NULL

query II rowsort
SELECT DISTINCT + + 62 - + 23 - + NULLIF ( - 50, 84 ) AS col0, 58 * + 9 * 34 - + 0
----
89
17748

onlyif mysql # aggregate syntax: 
query I rowsort label-8317
SELECT 54 + + + MAX( ALL + - 78 )
----
-24

skipif mysql # not compatible
query I rowsort label-8317
SELECT 54 + + + MAX ( ALL + - 78 )
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-8318
SELECT + COUNT( ALL + 49 )
----
1

skipif mysql # not compatible
query I rowsort label-8318
SELECT + COUNT ( ALL + 49 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8319
SELECT 64 * + - 39 * CASE - NULLIF ( + - 18, 19 * 50 + COUNT( * ) ) WHEN 22 THEN NULL WHEN + 42 THEN + 55 + 74 WHEN 24 THEN NULL END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8319
SELECT 64 * + - 39 * CASE - NULLIF ( + - 18, 19 * 50 + COUNT ( * ) ) WHEN 22 THEN NULL WHEN + 42 THEN + 55 + 74 WHEN 24 THEN NULL END col2
----
NULL

query I rowsort
SELECT 38 - 11 AS col0
----
27

query II rowsort
SELECT ALL - 15 col0, - 30
----
-15
-30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8322
SELECT ALL 40 DIV - 45 * COALESCE ( + 3, + CASE + 45 WHEN + 0 THEN 15 * 31 WHEN + 56 + + 28 THEN 37 * + SUM( ALL 76 * - 71 ) WHEN - 78 * 30 - - 18 * 73 THEN - 95 END )
----
0

skipif mysql # not compatible
query I rowsort label-8322
SELECT ALL 40 / - 45 * COALESCE ( + 3, + CASE + 45 WHEN + 0 THEN 15 * 31 WHEN + 56 + + 28 THEN 37 * + SUM ( ALL 76 * - 71 ) WHEN - 78 * 30 - - 18 * 73 THEN - 95 END )
----
0

query I rowsort
SELECT 54 * 36
----
1944

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8324
SELECT DISTINCT - CAST( + MIN( DISTINCT + + 86 ) AS SIGNED )
----
-86

skipif mysql # not compatible
query I rowsort label-8324
SELECT DISTINCT - CAST ( + MIN ( DISTINCT + + 86 ) AS INTEGER )
----
-86

query I rowsort
SELECT 73 - 65 + 17 * - 13 AS col2
----
-213

query I rowsort
SELECT 44 * 7
----
308

query I rowsort
SELECT 54 * - - 64 AS col2
----
3456

onlyif mysql # DIV for integer division: 
query II rowsort label-8328
SELECT 69, - 90 DIV - 47 AS col2
----
69
1

skipif mysql # not compatible
query II rowsort label-8328
SELECT 69, - 90 / - 47 AS col2
----
69
1

query I rowsort
SELECT ALL 98 + + 5 AS col0
----
103

query II rowsort
SELECT ALL 64, 97 AS col2
----
64
97

query II rowsort
SELECT DISTINCT + 97 + + - 36 * - 25 + + + 90 AS col0, 49 AS col0
----
1087
49

query I rowsort
SELECT ALL 67 + + - 83
----
-16

query I rowsort
SELECT DISTINCT 85 + + 13 AS col1
----
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8334
SELECT DISTINCT 97 + 88 + + CAST( NULL AS SIGNED ) - - - 6 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8334
SELECT DISTINCT 97 + 88 + + CAST ( NULL AS INTEGER ) - - - 6 AS col2
----
NULL

query I rowsort
SELECT 69 + + + 17
----
86

query I rowsort
SELECT 97 * - + 16 * - 16 * 54 AS col2
----
1340928

onlyif mysql # aggregate syntax: 
query I rowsort label-8337
SELECT ALL MIN( + 53 ) + - MIN( - 53 ) AS col0
----
106

skipif mysql # not compatible
query I rowsort label-8337
SELECT ALL MIN ( + 53 ) + - MIN ( - 53 ) AS col0
----
106

query II rowsort
SELECT ALL + 56 col1, 79 * + 68 * + 71
----
56
381412

query I rowsort
SELECT 0 + + 0
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-8340
SELECT DISTINCT 69, - COUNT( - CAST( NULL AS DECIMAL ) ) * + MAX( DISTINCT + 48 ) AS col1
----
69
0

skipif mysql # not compatible
query II rowsort label-8340
SELECT DISTINCT 69, - COUNT ( - CAST ( NULL AS REAL ) ) * + MAX ( DISTINCT + 48 ) AS col1
----
69
0

query I rowsort
SELECT 20 * - 53 AS col1
----
-1060

query I rowsort
SELECT - 71 + - - 96
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-8343
SELECT ALL - NULLIF ( + 13, - COUNT( * ) / 51 ) AS col2
----
-13

skipif mysql # not compatible
query I rowsort label-8343
SELECT ALL - NULLIF ( + 13, - COUNT ( * ) / 51 ) AS col2
----
-13

query I rowsort
SELECT - + ( - - ( 36 ) ) col1
----
-36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8345
SELECT ALL + 69 * - CAST( NULL AS SIGNED ) - MAX( - - 66 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8345
SELECT ALL + 69 * - CAST ( NULL AS INTEGER ) - MAX ( - - 66 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8346
SELECT ALL - SUM( DISTINCT + 99 )
----
-99

skipif mysql # not compatible
query I rowsort label-8346
SELECT ALL - SUM ( DISTINCT + 99 )
----
-99

query I rowsort
SELECT DISTINCT + + 54 * 1 - - 77 AS col1
----
131

onlyif mysql # aggregate syntax: 
query I rowsort label-8348
SELECT 79 * + + 7 + - COUNT( * ) AS col1
----
552

skipif mysql # not compatible
query I rowsort label-8348
SELECT 79 * + + 7 + - COUNT ( * ) AS col1
----
552

query I rowsort
SELECT - 29 * - 77 col0
----
2233

query I rowsort
SELECT 38 + 19 * + - 54 + + 56
----
-932

query I rowsort
SELECT - + 68 * + ( + - 81 ) + + - 23 AS col1
----
5485

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8352
SELECT COUNT( * ) DIV - - 57 * + - COUNT( * ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8352
SELECT COUNT ( * ) / - - 57 * + - COUNT ( * ) AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8353
SELECT - NULLIF ( + 44, + + 1 - - - 10 ) DIV + 66 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8353
SELECT - NULLIF ( + 44, + + 1 - - - 10 ) / + 66 AS col1
----
0

query II rowsort
SELECT ALL + 73 * + 96, 70 AS col0
----
7008
70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8355
SELECT DISTINCT CAST( + 17 AS SIGNED ) * - 2 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8355
SELECT DISTINCT CAST ( + 17 AS INTEGER ) * - 2 * + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + 0 * + - 96 + 56
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-8357
SELECT COUNT( + + 45 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8357
SELECT COUNT ( + + 45 ) AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8358
SELECT - CASE - - ( + SUM( DISTINCT - 21 ) ) WHEN - MIN( ALL - 6 ) THEN + 87 WHEN - + CAST( 16 AS SIGNED ) * - MIN( ALL 81 ) THEN NULL END * 7
----
NULL

skipif mysql # not compatible
query I rowsort label-8358
SELECT - CASE - - ( + SUM ( DISTINCT - 21 ) ) WHEN - MIN ( ALL - 6 ) THEN + 87 WHEN - + CAST ( 16 AS INTEGER ) * - MIN ( ALL 81 ) THEN NULL END * 7
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8359
SELECT ALL + 10 + + 64 * 97 + - + COUNT( * ) DIV + 20 + + + 47
----
6265

skipif mysql # not compatible
query I rowsort label-8359
SELECT ALL + 10 + + 64 * 97 + - + COUNT ( * ) / + 20 + + + 47
----
6265

query I rowsort
SELECT - 80 + + 61 AS col0
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-8361
SELECT DISTINCT - COUNT( * ) + + + NULLIF ( - 27, + 88 * - + 85 + + 25 - + 42 ) AS col0
----
-28

skipif mysql # not compatible
query I rowsort label-8361
SELECT DISTINCT - COUNT ( * ) + + + NULLIF ( - 27, + 88 * - + 85 + + 25 - + 42 ) AS col0
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-8362
SELECT ALL CASE - 29 WHEN - - 62 + - COUNT( * ) * - 34 * - 56 THEN 80 * - 39 + - 29 WHEN 48 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8362
SELECT ALL CASE - 29 WHEN - - 62 + - COUNT ( * ) * - 34 * - 56 THEN 80 * - 39 + - 29 WHEN 48 THEN NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8363
SELECT + 81 * - 25 * - ( + 48 ) + + COUNT( * ) * + 40 * SUM( - - ( CAST( - 7 AS SIGNED ) ) )
----
96920

skipif mysql # not compatible
query I rowsort label-8363
SELECT + 81 * - 25 * - ( + 48 ) + + COUNT ( * ) * + 40 * SUM ( - - ( CAST ( - 7 AS INTEGER ) ) )
----
96920

onlyif mysql # aggregate syntax: 
query I rowsort label-8364
SELECT ALL + 10 + - MAX( 88 ) + + 72 * + - 28 + - + 40 + - - 45
----
-2089

skipif mysql # not compatible
query I rowsort label-8364
SELECT ALL + 10 + - MAX ( 88 ) + + 72 * + - 28 + - + 40 + - - 45
----
-2089

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8365
SELECT DISTINCT SUM( - 56 ) DIV - - COUNT( * ) col2
----
-56

skipif mysql # not compatible
query I rowsort label-8365
SELECT DISTINCT SUM ( - 56 ) / - - COUNT ( * ) col2
----
-56

query I rowsort
SELECT ALL 44 + + + 66 + - 8
----
102

query I rowsort
SELECT DISTINCT NULLIF ( 43, - 87 ) AS col2
----
43

query I rowsort
SELECT - NULLIF ( + + 21, - 3 * + 58 * - - 35 + 74 ) * - 8 AS col0
----
168

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8369
SELECT DISTINCT + 66 * + 1 * + COALESCE ( CAST( NULL AS SIGNED ), + - 18 * + 29 * + - COUNT( * ) + COUNT( ALL 58 ) * NULLIF ( 15, 23 ) ) AS col1
----
35442

skipif mysql # not compatible
query I rowsort label-8369
SELECT DISTINCT + 66 * + 1 * + COALESCE ( CAST ( NULL AS INTEGER ), + - 18 * + 29 * + - COUNT ( * ) + COUNT ( ALL 58 ) * NULLIF ( 15, 23 ) ) AS col1
----
35442

query I rowsort
SELECT + 2 + + 16
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-8371
SELECT ALL + 22 * MAX( 64 ) AS col2
----
1408

skipif mysql # not compatible
query I rowsort label-8371
SELECT ALL + 22 * MAX ( 64 ) AS col2
----
1408

onlyif mysql # DIV for integer division: 
query I rowsort label-8372
SELECT - + 17 DIV 68 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8372
SELECT - + 17 / 68 AS col1
----
0

query I rowsort
SELECT ALL + + 20 * - 37 AS col1
----
-740

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8374
SELECT DISTINCT 17 DIV - 77 + - + MAX( - - 62 ) col2, - CAST( NULL AS SIGNED )
----
-62
NULL

skipif mysql # not compatible
query II rowsort label-8374
SELECT DISTINCT 17 / - 77 + - + MAX ( - - 62 ) col2, - CAST ( NULL AS INTEGER )
----
-62
NULL

query I rowsort
SELECT + 91 * - - 88 AS col2
----
8008

onlyif mysql # aggregate syntax: 
query I rowsort label-8376
SELECT - + NULLIF ( 83, 88 * - 92 * - - 93 ) * - - COUNT( * )
----
-83

skipif mysql # not compatible
query I rowsort label-8376
SELECT - + NULLIF ( 83, 88 * - 92 * - - 93 ) * - - COUNT ( * )
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-8377
SELECT + - MAX( DISTINCT - + 77 ) AS col2
----
77

skipif mysql # not compatible
query I rowsort label-8377
SELECT + - MAX ( DISTINCT - + 77 ) AS col2
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-8378
SELECT + MAX( - 2 ) + - + 21 + - - 52 + + 23 AS col1
----
52

skipif mysql # not compatible
query I rowsort label-8378
SELECT + MAX ( - 2 ) + - + 21 + - - 52 + + 23 AS col1
----
52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8379
SELECT ALL + 55 * COUNT( * ) DIV - - 8 - 77 + - + 44 + + CAST( + + 82 AS SIGNED ) * - COALESCE ( 27, - COALESCE ( 9, 75, + 84 ), 61 ) * - 35 + 93 AS col0
----
77468

skipif mysql # not compatible
query I rowsort label-8379
SELECT ALL + 55 * COUNT ( * ) / - - 8 - 77 + - + 44 + + CAST ( + + 82 AS INTEGER ) * - COALESCE ( 27, - COALESCE ( 9, 75, + 84 ), 61 ) * - 35 + 93 AS col0
----
77468

query I rowsort
SELECT + 94 * 55 * - 90 col0
----
-465300

onlyif mysql # DIV for integer division: 
query II rowsort label-8381
SELECT ALL 63 * + 10 AS col1, 78 DIV - 85 AS col2
----
630
0

skipif mysql # not compatible
query II rowsort label-8381
SELECT ALL 63 * + 10 AS col1, 78 / - 85 AS col2
----
630
0

query I rowsort
SELECT DISTINCT 99 * + - 91
----
-9009

query I rowsort
SELECT + ( - + 86 )
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-8384
SELECT + COUNT( * ) * - - 8 * + + COALESCE ( + + MAX( - ( + 75 ) ), + CASE + + COALESCE ( + - MAX( 40 ), COUNT( * ) * ( + CASE 93 WHEN + ( - 34 ) * + 87 - + 83 THEN NULL ELSE + AVG ( 35 ) END ), - 25 + 1 ) WHEN 91 / + NULLIF ( + 22, AVG ( DISTINCT + 4 ) ) THEN MIN( ALL 92 ) END + - NULLIF ( + 80, - 26 ) )
----
-600

skipif mysql # not compatible
query I rowsort label-8384
SELECT + COUNT ( * ) * - - 8 * + + COALESCE ( + + MAX ( - ( + 75 ) ), + CASE + + COALESCE ( + - MAX ( 40 ), COUNT ( * ) * ( + CASE 93 WHEN + ( - 34 ) * + 87 - + 83 THEN NULL ELSE + AVG ( 35 ) END ), - 25 + 1 ) WHEN 91 / + NULLIF ( + 22, AVG ( DISTINCT + 4 ) ) THEN MIN ( ALL 92 ) END + - NULLIF ( + 80, - 26 ) )
----
-600

onlyif mysql # aggregate syntax: 
query I rowsort label-8385
SELECT + 59 * COUNT( * ) + - + ( - COUNT( * ) )
----
60

skipif mysql # not compatible
query I rowsort label-8385
SELECT + 59 * COUNT ( * ) + - + ( - COUNT ( * ) )
----
60

query I rowsort
SELECT ( - ( + 60 ) ) AS col1
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-8387
SELECT + NULLIF ( - + 76, + - COUNT( * ) + + 67 ) AS col0
----
-76

skipif mysql # not compatible
query I rowsort label-8387
SELECT + NULLIF ( - + 76, + - COUNT ( * ) + + 67 ) AS col0
----
-76

onlyif mysql # aggregate syntax: 
query II rowsort label-8388
SELECT - COUNT( * ) + + 54 * + 28, - 31 AS col0
----
1511
-31

skipif mysql # not compatible
query II rowsort label-8388
SELECT - COUNT ( * ) + + 54 * + 28, - 31 AS col0
----
1511
-31

query I rowsort
SELECT ALL 77 * - 58 + 32 AS col2
----
-4434

query I rowsort
SELECT + ( + 10 ) col1
----
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8391
SELECT + ( - 63 ) * - CAST( + COUNT( * ) AS SIGNED )
----
63

skipif mysql # not compatible
query I rowsort label-8391
SELECT + ( - 63 ) * - CAST ( + COUNT ( * ) AS INTEGER )
----
63

query II rowsort
SELECT ALL + 99 AS col2, + 28 * + 27
----
99
756

onlyif mysql # aggregate syntax: 
query I rowsort label-8393
SELECT DISTINCT 46 * + - CASE - + 59 WHEN - 34 THEN - - CASE - 10 WHEN - 45 * - COUNT( * ) THEN 84 * - COUNT( * ) END END / + NULLIF ( ( 54 ) - - 42, 63 ) + - SUM( ALL - COALESCE ( 31, ( + 55 ) ) ) / 36 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8393
SELECT DISTINCT 46 * + - CASE - + 59 WHEN - 34 THEN - - CASE - 10 WHEN - 45 * - COUNT ( * ) THEN 84 * - COUNT ( * ) END END / + NULLIF ( ( 54 ) - - 42, 63 ) + - SUM ( ALL - COALESCE ( 31, ( + 55 ) ) ) / 36 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8394
SELECT ALL - 51 * - + 58 * + 26 col1, 40 + + CASE - - COUNT( + - 14 ) WHEN + - COUNT( * ) THEN - + 42 * - 86 + - 82 END / - 70
----
76908
NULL

skipif mysql # not compatible
query II rowsort label-8394
SELECT ALL - 51 * - + 58 * + 26 col1, 40 + + CASE - - COUNT ( + - 14 ) WHEN + - COUNT ( * ) THEN - + 42 * - 86 + - 82 END / - 70
----
76908
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8395
SELECT CASE 88 WHEN + 2 THEN + + MAX( DISTINCT - 42 ) WHEN + - 60 THEN NULL END AS col0, COUNT( * ) AS col0
----
NULL
1

skipif mysql # not compatible
query II rowsort label-8395
SELECT CASE 88 WHEN + 2 THEN + + MAX ( DISTINCT - 42 ) WHEN + - 60 THEN NULL END AS col0, COUNT ( * ) AS col0
----
NULL
1

query I rowsort
SELECT ALL COALESCE ( 51, - + 15 ) * - + 28 + + 71 + - 79
----
-1436

query I rowsort
SELECT DISTINCT 89 * + 68 + - 55 * 79
----
1707

onlyif mysql # aggregate syntax: 
query I rowsort label-8398
SELECT ALL - COUNT( * ) * ( + ( 77 ) ) * + - ( - + 53 ) + + 22 + + 16 + - 27 - 7
----
-4077

skipif mysql # not compatible
query I rowsort label-8398
SELECT ALL - COUNT ( * ) * ( + ( 77 ) ) * + - ( - + 53 ) + + 22 + + 16 + - 27 - 7
----
-4077

query I rowsort
SELECT DISTINCT 64 * + 71 + + 76 - + 51
----
4569

query I rowsort
SELECT ALL 15 * - - 3
----
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8401
SELECT - CAST( 75 AS SIGNED ) col2
----
-75

skipif mysql # not compatible
query I rowsort label-8401
SELECT - CAST ( 75 AS INTEGER ) col2
----
-75

query I rowsort
SELECT ALL 76 * + 76 - + - 87 - + 35 * - 88
----
8943

onlyif mysql # aggregate syntax: 
query I rowsort label-8403
SELECT + ( - 84 ) - 23 + - ( - 61 ) + CASE + + 43 WHEN 53 * - 19 + COUNT( DISTINCT - 37 ) THEN NULL WHEN - 7 - COUNT( * ) THEN 85 WHEN + 77 THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8403
SELECT + ( - 84 ) - 23 + - ( - 61 ) + CASE + + 43 WHEN 53 * - 19 + COUNT ( DISTINCT - 37 ) THEN NULL WHEN - 7 - COUNT ( * ) THEN 85 WHEN + 77 THEN NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8404
SELECT DISTINCT - + 18 * - 30 + - MIN( DISTINCT 9 ) - - ( - CASE 25 WHEN - - 74 * + 27 THEN NULL ELSE - MIN( ALL 2 ) + 73 DIV + 38 END ) + - 46 * + 94 col1
----
-3792

skipif mysql # not compatible
query I rowsort label-8404
SELECT DISTINCT - + 18 * - 30 + - MIN ( DISTINCT 9 ) - - ( - CASE 25 WHEN - - 74 * + 27 THEN NULL ELSE - MIN ( ALL 2 ) + 73 / + 38 END ) + - 46 * + 94 col1
----
-3792

query I rowsort
SELECT ALL - 82 * + 51 + + 56 + + + 55
----
-4071

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8406
SELECT ALL CAST( - 14 AS SIGNED )
----
-14

skipif mysql # not compatible
query I rowsort label-8406
SELECT ALL CAST ( - 14 AS INTEGER )
----
-14

query I rowsort
SELECT ALL + - 84 * + + 92 AS col1
----
-7728

onlyif mysql # aggregate syntax: 
query I rowsort label-8408
SELECT - 19 + SUM( - 12 ) + + 48 * - 97 * - MIN( - + 18 )
----
-83839

skipif mysql # not compatible
query I rowsort label-8408
SELECT - 19 + SUM ( - 12 ) + + 48 * - 97 * - MIN ( - + 18 )
----
-83839

onlyif mysql # aggregate syntax: 
query II rowsort label-8409
SELECT 81 AS col0, + COUNT( * ) + - 94
----
81
-93

skipif mysql # not compatible
query II rowsort label-8409
SELECT 81 AS col0, + COUNT ( * ) + - 94
----
81
-93

query I rowsort
SELECT - + 61 + - 39 - + 14 AS col0
----
-114

query I rowsort
SELECT ALL - 50 * - + 46 * 81 AS col0
----
186300

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8412
SELECT - - 44 + + - COALESCE ( + - COUNT( * ), + 59 * - - CAST( + + 51 AS SIGNED ) + - 10 ) + + 74 * + - ( + + 24 ) + + 2
----
-1729

skipif mysql # not compatible
query I rowsort label-8412
SELECT - - 44 + + - COALESCE ( + - COUNT ( * ), + 59 * - - CAST ( + + 51 AS INTEGER ) + - 10 ) + + 74 * + - ( + + 24 ) + + 2
----
-1729

query I rowsort
SELECT + ( - - 68 )
----
68

query I rowsort
SELECT ( ( 57 ) ) + 9
----
66

query I rowsort
SELECT + 69 + - + 88
----
-19

onlyif mysql # DIV for integer division: 
query I rowsort label-8416
SELECT 86 DIV + 46 - + 72 + 65 * ( - ( - 21 ) )
----
1294

skipif mysql # not compatible
query I rowsort label-8416
SELECT 86 / + 46 - + 72 + 65 * ( - ( - 21 ) )
----
1294

query I rowsort
SELECT - 82 + - 8 AS col1
----
-90

query I rowsort
SELECT ALL + - 13 + + COALESCE ( 61, - 50 * 46 + + - 54 + + 19 + - - 80, - 56 ) AS col2
----
48

query I rowsort
SELECT DISTINCT - 92 + + + 65 + - COALESCE ( + ( 77 ), 33 ) + 33 * + 26 * 11 AS col0
----
9334

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8420
SELECT ALL 35 + + CASE - 19 WHEN - 17 * + CAST( NULL AS SIGNED ) - 21 THEN + - 95 + + COUNT( * ) ELSE - 17 * - 78 END
----
1361

skipif mysql # not compatible
query I rowsort label-8420
SELECT ALL 35 + + CASE - 19 WHEN - 17 * + CAST ( NULL AS INTEGER ) - 21 THEN + - 95 + + COUNT ( * ) ELSE - 17 * - 78 END
----
1361

onlyif mysql # aggregate syntax: 
query I rowsort label-8421
SELECT + 9 * + + 72 + - CASE + 15 WHEN + 14 * + + 32 + - SUM( ALL + - 30 ) THEN 5 - + 26 ELSE COUNT( * ) * + COUNT( * ) END
----
647

skipif mysql # not compatible
query I rowsort label-8421
SELECT + 9 * + + 72 + - CASE + 15 WHEN + 14 * + + 32 + - SUM ( ALL + - 30 ) THEN 5 - + 26 ELSE COUNT ( * ) * + COUNT ( * ) END
----
647

query I rowsort
SELECT 38 * + 57 * + 76
----
164616

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8423
SELECT CASE + 75 WHEN - 58 THEN - + 19 - - - 67 WHEN CAST( + + 7 AS SIGNED ) THEN + 34 ELSE NULL END * - CASE MAX( + 96 ) WHEN - 47 / MIN( - 99 ) - 49 THEN - 55 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8423
SELECT CASE + 75 WHEN - 58 THEN - + 19 - - - 67 WHEN CAST ( + + 7 AS INTEGER ) THEN + 34 ELSE NULL END * - CASE MAX ( + 96 ) WHEN - 47 / MIN ( - 99 ) - 49 THEN - 55 END AS col1
----
NULL

query I rowsort
SELECT ALL 22 + 68 - 89 col2
----
1

query I rowsort
SELECT ALL 81 + 59 * + 54 - 28 + 28 AS col1
----
3267

onlyif mysql # aggregate syntax: 
query I rowsort label-8426
SELECT ALL COUNT( 65 ) * - 95 AS col1
----
-95

skipif mysql # not compatible
query I rowsort label-8426
SELECT ALL COUNT ( 65 ) * - 95 AS col1
----
-95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8427
SELECT DISTINCT COALESCE ( + - 43, - - CAST( 67 AS SIGNED ), AVG ( ALL ( + 11 ) ) DIV + + ( + 67 ) - 69 ) * COUNT( * ) AS col2
----
-43

skipif mysql # not compatible
query I rowsort label-8427
SELECT DISTINCT COALESCE ( + - 43, - - CAST ( 67 AS INTEGER ), AVG ( ALL ( + 11 ) ) / + + ( + 67 ) - 69 ) * COUNT ( * ) AS col2
----
-43

onlyif mysql # aggregate syntax: 
query II rowsort label-8428
SELECT DISTINCT - 21 AS col1, COUNT( - 30 )
----
-21
1

skipif mysql # not compatible
query II rowsort label-8428
SELECT DISTINCT - 21 AS col1, COUNT ( - 30 )
----
-21
1

query I rowsort
SELECT 95 - + - 73
----
168

query II rowsort
SELECT 85 AS col1, 84
----
85
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8431
SELECT 11 * + CAST( CAST( NULL AS SIGNED ) AS SIGNED ) * - - 32 + + NULLIF ( 7, + - COUNT( * ) * - 56 - + 89 * - + 52 * COUNT( * ) ) + CASE - ( ( 51 ) ) WHEN + 42 THEN - 26 * - ( - 92 ) ELSE 2 + 3 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8431
SELECT 11 * + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) * - - 32 + + NULLIF ( 7, + - COUNT ( * ) * - 56 - + 89 * - + 52 * COUNT ( * ) ) + CASE - ( ( 51 ) ) WHEN + 42 THEN - 26 * - ( - 92 ) ELSE 2 + 3 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8432
SELECT 66 col1, COUNT( * ) * CAST( NULL AS SIGNED ) + COUNT( * ) * 20 + 41 + - 18 + CAST( NULL AS SIGNED ) * + 90 + 22 * MIN( DISTINCT 88 ) * + ( + 40 ) AS col1
----
66
NULL

skipif mysql # not compatible
query II rowsort label-8432
SELECT 66 col1, COUNT ( * ) * CAST ( NULL AS INTEGER ) + COUNT ( * ) * 20 + 41 + - 18 + CAST ( NULL AS INTEGER ) * + 90 + 22 * MIN ( DISTINCT 88 ) * + ( + 40 ) AS col1
----
66
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-8433
SELECT 1 AS col0, 94 + + + 2 + COALESCE ( - 34, 32 ) DIV - 60
----
1
96

skipif mysql # not compatible
query II rowsort label-8433
SELECT 1 AS col0, 94 + + + 2 + COALESCE ( - 34, 32 ) / - 60
----
1
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8434
SELECT CASE 30 WHEN CAST( + 82 AS SIGNED ) THEN NULL WHEN 62 THEN CASE - 96 WHEN + - 52 + - 22 THEN - - CAST( NULL AS SIGNED ) + - NULLIF ( 52, COUNT( ALL 41 ) - 24 * 52 ) - 31 * - 91 * 4 ELSE NULL END WHEN 79 THEN NULL ELSE 79 END + - CAST( CASE + 72 WHEN + 83 + - ( 46 ) THEN NULL WHEN + COALESCE ( 77, - ( - COUNT( * ) ) + + 30, 30, ( - 9 ) - + 34 / ( 21 ) ) / 1 THEN + COUNT( * ) END + 51 AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8434
SELECT CASE 30 WHEN CAST ( + 82 AS INTEGER ) THEN NULL WHEN 62 THEN CASE - 96 WHEN + - 52 + - 22 THEN - - CAST ( NULL AS INTEGER ) + - NULLIF ( 52, COUNT ( ALL 41 ) - 24 * 52 ) - 31 * - 91 * 4 ELSE NULL END WHEN 79 THEN NULL ELSE 79 END + - CAST ( CASE + 72 WHEN + 83 + - ( 46 ) THEN NULL WHEN + COALESCE ( 77, - ( - COUNT ( * ) ) + + 30, 30, ( - 9 ) - + 34 / ( 21 ) ) / 1 THEN + COUNT ( * ) END + 51 AS REAL ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8435
SELECT 98 DIV - 80 DIV - COUNT( * ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8435
SELECT 98 / - 80 / - COUNT ( * ) AS col1
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8436
SELECT ALL 61 DIV - SUM( - 92 ) * COALESCE ( + 56, + 20 ) * + 78 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8436
SELECT ALL 61 / - SUM ( - 92 ) * COALESCE ( + 56, + 20 ) * + 78 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8437
SELECT 4 + + ( + 81 ) * - COUNT( * ) * + COUNT( * ) AS col0
----
-77

skipif mysql # not compatible
query I rowsort label-8437
SELECT 4 + + ( + 81 ) * - COUNT ( * ) * + COUNT ( * ) AS col0
----
-77

onlyif mysql # aggregate syntax: 
query II rowsort label-8438
SELECT ALL 25, + 51 * NULLIF ( - 13, CASE + COUNT( * ) WHEN COUNT( * ) THEN - 32 * COUNT( * ) + + NULLIF ( + COUNT( * ), + ( MAX( - 81 ) ) + NULLIF ( COALESCE ( + 23, + 20 * - 31, 63 ), 28 * - 2 ) ) END ) - - 69 * - COUNT( * ) col0
----
25
-732

skipif mysql # not compatible
query II rowsort label-8438
SELECT ALL 25, + 51 * NULLIF ( - 13, CASE + COUNT ( * ) WHEN COUNT ( * ) THEN - 32 * COUNT ( * ) + + NULLIF ( + COUNT ( * ), + ( MAX ( - 81 ) ) + NULLIF ( COALESCE ( + 23, + 20 * - 31, 63 ), 28 * - 2 ) ) END ) - - 69 * - COUNT ( * ) col0
----
25
-732

query I rowsort
SELECT - - 21 * + - 79 + 31 + - 9
----
-1637

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8440
SELECT CAST( NULL AS SIGNED ) + + + ( - 31 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8440
SELECT CAST ( NULL AS INTEGER ) + + + ( - 31 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8441
SELECT - 51 * + + ( + + COUNT( * ) ) AS col0
----
-51

skipif mysql # not compatible
query I rowsort label-8441
SELECT - 51 * + + ( + + COUNT ( * ) ) AS col0
----
-51

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8442
SELECT - 88 AS col1, 60 DIV + COUNT( * ) AS col1
----
-88
60

skipif mysql # not compatible
query II rowsort label-8442
SELECT - 88 AS col1, 60 / + COUNT ( * ) AS col1
----
-88
60

query I rowsort
SELECT + 73 + 89 + - - 37
----
199

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8444
SELECT CASE - 56 WHEN - 37 * - 46 * - 78 - + 26 THEN CAST( NULL AS DECIMAL ) * + 94 * COALESCE ( - + COUNT( * ), + CASE WHEN ( - 25 ) >= + COALESCE ( CASE - COALESCE ( - 90, + ( - COUNT( * ) ), - 70, 10 ) WHEN 68 THEN NULL ELSE + COUNT( * ) END, - AVG ( - 8 ) ) THEN NULL WHEN + 23 IS NULL THEN - 82 * 33 + - CASE 2 WHEN 95 * + CAST( NULL AS SIGNED ) THEN - 44 + 61 END END * 38, 18 ) * 26 WHEN + 66 THEN 90 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8444
SELECT CASE - 56 WHEN - 37 * - 46 * - 78 - + 26 THEN CAST ( NULL AS REAL ) * + 94 * COALESCE ( - + COUNT ( * ), + CASE WHEN ( - 25 ) >= + COALESCE ( CASE - COALESCE ( - 90, + ( - COUNT ( * ) ), - 70, 10 ) WHEN 68 THEN NULL ELSE + COUNT ( * ) END, - AVG ( - 8 ) ) THEN NULL WHEN + 23 IS NULL THEN - 82 * 33 + - CASE 2 WHEN 95 * + CAST ( NULL AS INTEGER ) THEN - 44 + 61 END END * 38, 18 ) * 26 WHEN + 66 THEN 90 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8445
SELECT DISTINCT + - 90 * COUNT( * ) * - 64 + + 34, - 78 + + - 36 AS col2
----
5794
-114

skipif mysql # not compatible
query II rowsort label-8445
SELECT DISTINCT + - 90 * COUNT ( * ) * - 64 + + 34, - 78 + + - 36 AS col2
----
5794
-114

onlyif mysql # aggregate syntax: 
query I rowsort label-8446
SELECT + COUNT( * ) * 83 + - 50
----
33

skipif mysql # not compatible
query I rowsort label-8446
SELECT + COUNT ( * ) * 83 + - 50
----
33

query I rowsort
SELECT + 0 + - 51 + + 98
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-8448
SELECT ALL + MAX( CASE WHEN NOT NULL IS NULL THEN 44 END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8448
SELECT ALL + MAX ( CASE WHEN NOT NULL IS NULL THEN 44 END ) AS col1
----
NULL

query I rowsort
SELECT - 67 * - 43 - + NULLIF ( 98, - + 62 )
----
2783

query I rowsort
SELECT DISTINCT - 94 + 93 AS col1
----
-1

query II rowsort
SELECT - 80 AS col1, 56
----
-80
56

query II rowsort
SELECT ALL + 23 + + 23 AS col0, - 62 * + 12
----
46
-744

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8453
SELECT DISTINCT - 69 * - 88 AS col0, NULLIF ( + 49, CAST( - + MIN( - 60 ) AS SIGNED ) ) * - CAST( NULL AS SIGNED ) + - 39
----
6072
NULL

skipif mysql # not compatible
query II rowsort label-8453
SELECT DISTINCT - 69 * - 88 AS col0, NULLIF ( + 49, CAST ( - + MIN ( - 60 ) AS INTEGER ) ) * - CAST ( NULL AS INTEGER ) + - 39
----
6072
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8454
SELECT DISTINCT + 42 + - 93 * + 97 + - COALESCE ( 35, - - 78 * + 75 ) DIV - COUNT( * ) * + COUNT( * ) AS col1
----
-8944

skipif mysql # not compatible
query I rowsort label-8454
SELECT DISTINCT + 42 + - 93 * + 97 + - COALESCE ( 35, - - 78 * + 75 ) / - COUNT ( * ) * + COUNT ( * ) AS col1
----
-8944

query II rowsort
SELECT DISTINCT - 78 + + 2 AS col1, + 77 AS col1
----
-76
77

query I rowsort
SELECT ALL 27 + 39 AS col0
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-8457
SELECT ALL - 51 * - + MIN( ALL + 19 ) * 40
----
38760

skipif mysql # not compatible
query I rowsort label-8457
SELECT ALL - 51 * - + MIN ( ALL + 19 ) * 40
----
38760

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8458
SELECT + 62 * + - 4 + - COUNT( * ) DIV - 43 + - ( + 96 ) AS col2
----
-344

skipif mysql # not compatible
query I rowsort label-8458
SELECT + 62 * + - 4 + - COUNT ( * ) / - 43 + - ( + 96 ) AS col2
----
-344

onlyif mysql # aggregate syntax: 
query I rowsort label-8459
SELECT 98 - + + COALESCE ( + 63, 28 * - + COUNT( - 85 ) ) AS col2
----
35

skipif mysql # not compatible
query I rowsort label-8459
SELECT 98 - + + COALESCE ( + 63, 28 * - + COUNT ( - 85 ) ) AS col2
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-8460
SELECT DISTINCT - COALESCE ( + 50, - NULLIF ( + 54, 78 + - + 34 ) * + 92 * - 51 * - 64 * CASE + + 62 WHEN + ( + 42 ) - + NULLIF ( COUNT( NULLIF ( 4, 26 ) ) + + MIN( ALL + 99 ), + COUNT( * ) ) * COUNT( DISTINCT 95 ) THEN 19 ELSE NULL END ) AS col1
----
-50

skipif mysql # not compatible
query I rowsort label-8460
SELECT DISTINCT - COALESCE ( + 50, - NULLIF ( + 54, 78 + - + 34 ) * + 92 * - 51 * - 64 * CASE + + 62 WHEN + ( + 42 ) - + NULLIF ( COUNT ( NULLIF ( 4, 26 ) ) + + MIN ( ALL + 99 ), + COUNT ( * ) ) * COUNT ( DISTINCT 95 ) THEN 19 ELSE NULL END ) AS col1
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-8461
SELECT MIN( 22 ) AS col1
----
22

skipif mysql # not compatible
query I rowsort label-8461
SELECT MIN ( 22 ) AS col1
----
22

query II rowsort
SELECT 88 * - 51, 2 AS col2
----
-4488
2

query I rowsort
SELECT DISTINCT 20 * - ( + + 68 )
----
-1360

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8464
SELECT ALL - 62 - - MAX( DISTINCT - 57 ) + + + 10 * - - 40 DIV + - COUNT( * ) + + + 50
----
-469

skipif mysql # not compatible
query I rowsort label-8464
SELECT ALL - 62 - - MAX ( DISTINCT - 57 ) + + + 10 * - - 40 / + - COUNT ( * ) + + + 50
----
-469

query I rowsort
SELECT 14 * 67
----
938

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8466
SELECT DISTINCT - - 76 * CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-8466
SELECT DISTINCT - - 76 * CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8467
SELECT + 88 * - 92 DIV + + COALESCE ( - COUNT( * ), + 39 )
----
8096

skipif mysql # not compatible
query I rowsort label-8467
SELECT + 88 * - 92 / + + COALESCE ( - COUNT ( * ), + 39 )
----
8096

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8468
SELECT - COUNT( 58 ) * + 91 DIV + 87 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-8468
SELECT - COUNT ( 58 ) * + 91 / + 87 AS col1
----
-1

query I rowsort
SELECT ALL 27 * - ( + 88 ) AS col0
----
-2376

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8470
SELECT + 10 - + - 87 + COUNT( * ) + + CASE - 95 WHEN - + 48 * - CAST( + 1 AS SIGNED ) THEN NULL WHEN - COUNT( * ) - - 59 / 64 THEN - + 73 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8470
SELECT + 10 - + - 87 + COUNT ( * ) + + CASE - 95 WHEN - + 48 * - CAST ( + 1 AS INTEGER ) THEN NULL WHEN - COUNT ( * ) - - 59 / 64 THEN - + 73 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8471
SELECT DISTINCT COUNT( DISTINCT 71 ) AS col2, + 7
----
1
7

skipif mysql # not compatible
query II rowsort label-8471
SELECT DISTINCT COUNT ( DISTINCT 71 ) AS col2, + 7
----
1
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8472
SELECT ALL + CAST( NULL AS SIGNED ) * + 8 * + + 5 + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8472
SELECT ALL + CAST ( NULL AS INTEGER ) * + 8 * + + 5 + COUNT ( * )
----
NULL

query I rowsort
SELECT ALL 68 + + 10
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-8474
SELECT CASE COUNT( + 83 ) WHEN 65 + - - 53 THEN 7 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8474
SELECT CASE COUNT ( + 83 ) WHEN 65 + - - 53 THEN 7 ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT ALL - 47 + + ( + 64 ) col1
----
17

onlyif mysql # DIV for integer division: 
query I rowsort label-8476
SELECT + + 78 DIV - 22 AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-8476
SELECT + + 78 / - 22 AS col2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8477
SELECT ALL + 67 + - ( + COALESCE ( - 73, - 59 ) ) + SUM( - 86 ) + + + 88 * - + 84 + + - 74
----
-7412

skipif mysql # not compatible
query I rowsort label-8477
SELECT ALL + 67 + - ( + COALESCE ( - 73, - 59 ) ) + SUM ( - 86 ) + + + 88 * - + 84 + + - 74
----
-7412

onlyif mysql # DIV for integer division: 
query I rowsort label-8478
SELECT ALL 30 DIV - + NULLIF ( 55, + 30 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8478
SELECT ALL 30 / - + NULLIF ( 55, + 30 ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8479
SELECT ALL - 98 + 63 * - COUNT( * ) col0
----
-161

skipif mysql # not compatible
query I rowsort label-8479
SELECT ALL - 98 + 63 * - COUNT ( * ) col0
----
-161

query II rowsort
SELECT + + 92 + - 83 AS col0, 55 AS col1
----
9
55

query I rowsort
SELECT + 73 - - - 40 AS col0
----
33

query I rowsort
SELECT + - 18 + + 90 AS col2
----
72

onlyif mysql # DIV for integer division: 
query II rowsort label-8483
SELECT - 87 DIV + 32 AS col2, + 12 DIV + - 31 AS col0
----
-2
0

skipif mysql # not compatible
query II rowsort label-8483
SELECT - 87 / + 32 AS col2, + 12 / + - 31 AS col0
----
-2
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8484
SELECT + COUNT( * ) + + 96 AS col0, COUNT( DISTINCT - 53 )
----
97
1

skipif mysql # not compatible
query II rowsort label-8484
SELECT + COUNT ( * ) + + 96 AS col0, COUNT ( DISTINCT - 53 )
----
97
1

query I rowsort
SELECT - 1 * - 14 AS col1
----
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8486
SELECT + CAST( NULL AS SIGNED ) + - MAX( 98 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8486
SELECT + CAST ( NULL AS INTEGER ) + - MAX ( 98 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8487
SELECT ALL - ( - ( + - 17 ) ) * 12 - + 46 * 73 * ( - COUNT( * ) ) + + COUNT( DISTINCT - 82 )
----
3155

skipif mysql # not compatible
query I rowsort label-8487
SELECT ALL - ( - ( + - 17 ) ) * 12 - + 46 * 73 * ( - COUNT ( * ) ) + + COUNT ( DISTINCT - 82 )
----
3155

query I rowsort
SELECT DISTINCT 11 + 34
----
45

query II rowsort
SELECT ALL 78 AS col1, ( + - 34 ) AS col1
----
78
-34

onlyif mysql # aggregate syntax: 
query II rowsort label-8490
SELECT - ( + + ( COUNT( * ) ) ) AS col2, - 62
----
-1
-62

skipif mysql # not compatible
query II rowsort label-8490
SELECT - ( + + ( COUNT ( * ) ) ) AS col2, - 62
----
-1
-62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8491
SELECT + 40 + + - CAST( NULL AS SIGNED ) + + 76 * 48 + - 15
----
NULL

skipif mysql # not compatible
query I rowsort label-8491
SELECT + 40 + + - CAST ( NULL AS INTEGER ) + + 76 * 48 + - 15
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8492
SELECT ALL 46 - 34 + COUNT( + 46 ) * 2 * - 65
----
-118

skipif mysql # not compatible
query I rowsort label-8492
SELECT ALL 46 - 34 + COUNT ( + 46 ) * 2 * - 65
----
-118

query I rowsort
SELECT 92 * - ( 97 ) + 95 AS col0
----
-8829

onlyif mysql # aggregate syntax: 
query II rowsort label-8494
SELECT ( MAX( + 64 ) ) col1, 99
----
64
99

skipif mysql # not compatible
query II rowsort label-8494
SELECT ( MAX ( + 64 ) ) col1, 99
----
64
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8495
SELECT - 62 + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8495
SELECT - 62 + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT - 80 * + - NULLIF ( 67, - - 25 + + 18 )
----
5360

onlyif mysql # DIV for integer division: 
query I rowsort label-8497
SELECT DISTINCT 97 DIV 30 AS col1
----
3

skipif mysql # not compatible
query I rowsort label-8497
SELECT DISTINCT 97 / 30 AS col1
----
3

onlyif mysql # DIV for integer division: 
query II rowsort label-8498
SELECT ALL + 33 col0, 40 DIV - 15 * + + 95 DIV - - NULLIF ( 68, 22 - + 14 ) AS col1
----
33
-2

skipif mysql # not compatible
query II rowsort label-8498
SELECT ALL + 33 col0, 40 / - 15 * + + 95 / - - NULLIF ( 68, 22 - + 14 ) AS col1
----
33
-2

query II rowsort
SELECT COALESCE ( + 48, - + 48 ) col1, - 89
----
48
-89

query I rowsort
SELECT - 44 * + - 36
----
1584

query I rowsort
SELECT - 20 * + - 21 AS col1
----
420

query I rowsort
SELECT - 37 - + 97 col1
----
-134

onlyif mysql # DIV for integer division: 
query II rowsort label-8503
SELECT - 72 DIV 5 + - 25, 35 AS col1
----
-39
35

skipif mysql # not compatible
query II rowsort label-8503
SELECT - 72 / 5 + - 25, 35 AS col1
----
-39
35

query II rowsort
SELECT ALL + + 11, + 38 AS col0
----
11
38

query II rowsort
SELECT ALL + 94, 25 AS col2
----
94
25

onlyif mysql # aggregate syntax: 
query I rowsort label-8506
SELECT - 86 * + COUNT( * ) - COUNT( * ) - - + 59
----
-28

skipif mysql # not compatible
query I rowsort label-8506
SELECT - 86 * + COUNT ( * ) - COUNT ( * ) - - + 59
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-8507
SELECT - + ( + 23 ) + + - COUNT( * )
----
-24

skipif mysql # not compatible
query I rowsort label-8507
SELECT - + ( + 23 ) + + - COUNT ( * )
----
-24

query II rowsort
SELECT 38, + 66 AS col0
----
38
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8509
SELECT + NULLIF ( CAST( - SUM( 77 ) AS SIGNED ), 60 * - + 13 ) AS col2
----
-77

skipif mysql # not compatible
query I rowsort label-8509
SELECT + NULLIF ( CAST ( - SUM ( 77 ) AS INTEGER ), 60 * - + 13 ) AS col2
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-8510
SELECT ALL + COUNT( ALL - + 67 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8510
SELECT ALL + COUNT ( ALL - + 67 ) AS col0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-8511
SELECT - + 82 + 7 DIV - COALESCE ( - 66, - 39 * - 21 ) AS col2
----
-82

skipif mysql # not compatible
query I rowsort label-8511
SELECT - + 82 + 7 / - COALESCE ( - 66, - 39 * - 21 ) AS col2
----
-82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8512
SELECT ALL + + 6 * 61 + 72 * - + SUM( + 93 ) * + CASE + + 81 WHEN - 90 * + 20 * CAST( NULL AS SIGNED ) THEN - MAX( ALL + + 0 ) END / + - 52
----
NULL

skipif mysql # not compatible
query I rowsort label-8512
SELECT ALL + + 6 * 61 + 72 * - + SUM ( + 93 ) * + CASE + + 81 WHEN - 90 * + 20 * CAST ( NULL AS INTEGER ) THEN - MAX ( ALL + + 0 ) END / + - 52
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8513
SELECT + 58 + + COUNT( * ) + CAST( NULL AS SIGNED ) + NULLIF ( + 23, + 84 ) * - - 10
----
NULL

skipif mysql # not compatible
query I rowsort label-8513
SELECT + 58 + + COUNT ( * ) + CAST ( NULL AS INTEGER ) + NULLIF ( + 23, + 84 ) * - - 10
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8514
SELECT + 71 + + - CAST( NULL AS SIGNED ) + - - 88 / - + COUNT( * ) * - 35 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8514
SELECT + 71 + + - CAST ( NULL AS INTEGER ) + - - 88 / - + COUNT ( * ) * - 35 AS col2
----
NULL

query I rowsort
SELECT + 85 + + - 88 AS col1
----
-3

query I rowsort
SELECT + - 55 * + 0 AS col1
----
0

query I rowsort
SELECT + + 50 * - - 71 AS col1
----
3550

query II rowsort
SELECT + 70, - 99 AS col1
----
70
-99

query I rowsort
SELECT ALL - 75 - 54 AS col2
----
-129

onlyif mysql # aggregate syntax: 
query II rowsort label-8520
SELECT DISTINCT COUNT( * ) AS col1, 54
----
1
54

skipif mysql # not compatible
query II rowsort label-8520
SELECT DISTINCT COUNT ( * ) AS col1, 54
----
1
54

query I rowsort
SELECT + ( + - 2 ) * 63 * ( - 65 ) AS col2
----
8190

query I rowsort
SELECT - ( - 79 )
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-8523
SELECT DISTINCT COALESCE ( - COUNT( * ), + COUNT( * ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-8523
SELECT DISTINCT COALESCE ( - COUNT ( * ), + COUNT ( * ) ) AS col2
----
-1

query I rowsort
SELECT + ( + 82 ) * - 14 AS col2
----
-1148

query I rowsort
SELECT - COALESCE ( + 69, + + 26 )
----
-69

query I rowsort
SELECT ALL 92 - NULLIF ( + + 63, - 5 ) + + 37 + + + ( - 46 ) AS col0
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-8527
SELECT + MAX( ALL + - 72 ) * + 34 col1
----
-2448

skipif mysql # not compatible
query I rowsort label-8527
SELECT + MAX ( ALL + - 72 ) * + 34 col1
----
-2448

query I rowsort
SELECT - 62 * - 60
----
3720

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8529
SELECT + 68 * - - COUNT( * ) DIV - 70
----
0

skipif mysql # not compatible
query I rowsort label-8529
SELECT + 68 * - - COUNT ( * ) / - 70
----
0

query I rowsort
SELECT DISTINCT 91 * + 71 col0
----
6461

query I rowsort
SELECT - 59 * - 0 + 5 AS col2
----
5

onlyif mysql # aggregate syntax: 
query II rowsort label-8532
SELECT DISTINCT + MIN( 43 ) AS col2, 99 * + 16 AS col2
----
43
1584

skipif mysql # not compatible
query II rowsort label-8532
SELECT DISTINCT + MIN ( 43 ) AS col2, 99 * + 16 AS col2
----
43
1584

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8533
SELECT CAST( + 52 AS SIGNED ) col1
----
52

skipif mysql # not compatible
query I rowsort label-8533
SELECT CAST ( + 52 AS INTEGER ) col1
----
52

onlyif mysql # DIV for integer division: 
query I rowsort label-8534
SELECT 90 DIV + - 52 + 31
----
30

skipif mysql # not compatible
query I rowsort label-8534
SELECT 90 / + - 52 + 31
----
30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8535
SELECT ALL + - ( - COALESCE ( - + 78, 76 DIV 1 + + + CASE WHEN NULL NOT IN ( + MIN( 90 ), 25 * 12 * COUNT( * ) * + 88 ) THEN NULL ELSE 70 + - ( + 42 ) * ( 25 ) END ) ) col2
----
-78

skipif mysql # not compatible
query I rowsort label-8535
SELECT ALL + - ( - COALESCE ( - + 78, 76 / 1 + + + CASE WHEN NULL NOT IN ( + MIN ( 90 ), 25 * 12 * COUNT ( * ) * + 88 ) THEN NULL ELSE 70 + - ( + 42 ) * ( 25 ) END ) ) col2
----
-78

query I rowsort
SELECT 50 * 2
----
100

query I rowsort
SELECT + 79 * - 27 AS col1
----
-2133

onlyif mysql # aggregate syntax: 
query I rowsort label-8538
SELECT + + COUNT( - 30 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8538
SELECT + + COUNT ( - 30 ) AS col2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8539
SELECT ALL - - 46 + + ( + CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8539
SELECT ALL - - 46 + + ( + CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8540
SELECT DISTINCT + + 83 + 19 * - CAST( NULL AS SIGNED ) * + + COUNT( * ) * + COUNT( * ) + MAX( - - 75 ) + + + MAX( 36 ) + + SUM( ALL + CAST( - - NULLIF ( 84, + 7 ) AS SIGNED ) ) / 49 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8540
SELECT DISTINCT + + 83 + 19 * - CAST ( NULL AS INTEGER ) * + + COUNT ( * ) * + COUNT ( * ) + MAX ( - - 75 ) + + + MAX ( 36 ) + + SUM ( ALL + CAST ( - - NULLIF ( 84, + 7 ) AS INTEGER ) ) / 49 AS col0
----
NULL

query I rowsort
SELECT 98 + - - 11 AS col2
----
109

onlyif mysql # DIV for integer division: 
query I rowsort label-8542
SELECT 29 DIV - 16 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-8542
SELECT 29 / - 16 AS col0
----
-1

query I rowsort
SELECT ALL + - 33 + + - 70
----
-103

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8544
SELECT DISTINCT + - CAST( NULL AS SIGNED ) * - 67 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8544
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) * - 67 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8545
SELECT ALL - 31 + COUNT( * ) * + 81 + + CAST( + COUNT( * ) AS SIGNED ) + 57 AS col0
----
108

skipif mysql # not compatible
query I rowsort label-8545
SELECT ALL - 31 + COUNT ( * ) * + 81 + + CAST ( + COUNT ( * ) AS INTEGER ) + 57 AS col0
----
108

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8546
SELECT COUNT( * ) + - - 24 * + + 43 DIV + + COUNT( * ) AS col0, 38 * 89
----
1033
3382

skipif mysql # not compatible
query II rowsort label-8546
SELECT COUNT ( * ) + - - 24 * + + 43 / + + COUNT ( * ) AS col0, 38 * 89
----
1033
3382

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8547
SELECT + COUNT( * ) / 73 * - + CASE + + CAST( - 70 AS SIGNED ) WHEN + 16 THEN 20 WHEN + 0 * - + COUNT( * ) THEN - 7 * + 42 * + 97 END * CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8547
SELECT + COUNT ( * ) / 73 * - + CASE + + CAST ( - 70 AS INTEGER ) WHEN + 16 THEN 20 WHEN + 0 * - + COUNT ( * ) THEN - 7 * + 42 * + 97 END * CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8548
SELECT ALL - + 41 + + SUM( - + 11 ) DIV - COUNT( * ) AS col0
----
-30

skipif mysql # not compatible
query I rowsort label-8548
SELECT ALL - + 41 + + SUM ( - + 11 ) / - COUNT ( * ) AS col0
----
-30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8549
SELECT 98 * + + CASE - + SUM( + - 6 ) WHEN 90 * 24 + - - 71 - - 97 THEN NULL WHEN + ( 4 ) / + 27 - 0 THEN 22 END * - CAST( NULL AS SIGNED ) + 90 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8549
SELECT 98 * + + CASE - + SUM ( + - 6 ) WHEN 90 * 24 + - - 71 - - 97 THEN NULL WHEN + ( 4 ) / + 27 - 0 THEN 22 END * - CAST ( NULL AS INTEGER ) + 90 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8550
SELECT + CASE 6 WHEN - 27 * - ( + ( - COUNT( * ) ) ) * + AVG ( DISTINCT + - 14 ) * - 96 THEN NULL WHEN - 19 THEN + COUNT( * ) / + - COUNT( * ) / - 54 * CASE 70 WHEN - 41 THEN + 53 ELSE NULL END - CAST( 68 AS SIGNED ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8550
SELECT + CASE 6 WHEN - 27 * - ( + ( - COUNT ( * ) ) ) * + AVG ( DISTINCT + - 14 ) * - 96 THEN NULL WHEN - 19 THEN + COUNT ( * ) / + - COUNT ( * ) / - 54 * CASE 70 WHEN - 41 THEN + 53 ELSE NULL END - CAST ( 68 AS INTEGER ) END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8551
SELECT + COUNT( * ) - 36 * - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8551
SELECT + COUNT ( * ) - 36 * - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT 78 - - - ( - 75 ) AS col1
----
153

onlyif mysql # aggregate syntax: 
query I rowsort label-8553
SELECT ALL MAX( ALL 44 )
----
44

skipif mysql # not compatible
query I rowsort label-8553
SELECT ALL MAX ( ALL 44 )
----
44

onlyif mysql # aggregate syntax: 
query II rowsort label-8554
SELECT DISTINCT + CASE + - 13 WHEN - 19 THEN NULL ELSE + + COUNT( * ) * 6 END AS col2, - 53 * + 30
----
6
-1590

skipif mysql # not compatible
query II rowsort label-8554
SELECT DISTINCT + CASE + - 13 WHEN - 19 THEN NULL ELSE + + COUNT ( * ) * 6 END AS col2, - 53 * + 30
----
6
-1590

query I rowsort
SELECT ALL 75 - - 57 AS col1
----
132

onlyif mysql # DIV for integer division: 
query I rowsort label-8556
SELECT ALL 79 * - 84 + NULLIF ( + 95, 4 + - + 5 DIV - 97 ) DIV - - 93
----
-6635

skipif mysql # not compatible
query I rowsort label-8556
SELECT ALL 79 * - 84 + NULLIF ( + 95, 4 + - + 5 / - 97 ) / - - 93
----
-6635

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8557
SELECT DISTINCT - 10 - - COUNT( * ) DIV + 55
----
-10

skipif mysql # not compatible
query I rowsort label-8557
SELECT DISTINCT - 10 - - COUNT ( * ) / + 55
----
-10

onlyif mysql # DIV for integer division: 
query I rowsort label-8558
SELECT 98 - - 56 + - 83 DIV 66 AS col0
----
153

skipif mysql # not compatible
query I rowsort label-8558
SELECT 98 - - 56 + - 83 / 66 AS col0
----
153

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8559
SELECT COALESCE ( + - COUNT( - + 57 ), 51 * + 21 + - 41, COALESCE ( 39, - + 76 * 32 + 4 ) * + ( - + 63 ) * + + ( - - COUNT( * ) ) + + 24 ) - CAST( ( + COUNT( ALL + 40 ) ) AS SIGNED ) * + NULLIF ( 4 DIV 45, CAST( - 82 AS SIGNED ) * 96 )
----
-1

skipif mysql # not compatible
query I rowsort label-8559
SELECT COALESCE ( + - COUNT ( - + 57 ), 51 * + 21 + - 41, COALESCE ( 39, - + 76 * 32 + 4 ) * + ( - + 63 ) * + + ( - - COUNT ( * ) ) + + 24 ) - CAST ( ( + COUNT ( ALL + 40 ) ) AS INTEGER ) * + NULLIF ( 4 / 45, CAST ( - 82 AS INTEGER ) * 96 )
----
-1

query I rowsort
SELECT ( 90 ) * 70 AS col2
----
6300

onlyif mysql # aggregate syntax: 
query I rowsort label-8561
SELECT 88 + + - COUNT( * )
----
87

skipif mysql # not compatible
query I rowsort label-8561
SELECT 88 + + - COUNT ( * )
----
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8562
SELECT CASE - 1 WHEN + 4 THEN COUNT( * ) - - 50 WHEN + 8 / CAST( NULL AS SIGNED ) * - CASE 15 WHEN + 26 THEN NULL WHEN + 75 THEN NULL ELSE + 48 / 50 - - + 71 - - - NULLIF ( + NULLIF ( + 26, MIN( ALL + 47 ) + ( 23 ) ), COUNT( * ) ) * 44 END - 47 THEN NULL ELSE NULL END + 21
----
NULL

skipif mysql # not compatible
query I rowsort label-8562
SELECT CASE - 1 WHEN + 4 THEN COUNT ( * ) - - 50 WHEN + 8 / CAST ( NULL AS INTEGER ) * - CASE 15 WHEN + 26 THEN NULL WHEN + 75 THEN NULL ELSE + 48 / 50 - - + 71 - - - NULLIF ( + NULLIF ( + 26, MIN ( ALL + 47 ) + ( 23 ) ), COUNT ( * ) ) * 44 END - 47 THEN NULL ELSE NULL END + 21
----
NULL

query I rowsort
SELECT ALL + 30 * - 71 AS col0
----
-2130

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8564
SELECT COALESCE ( CAST( - - 17 AS SIGNED ), + + 18 + + - CASE WHEN NOT ( NULL ) BETWEEN ( + - ( 34 ) ) AND 49 * - COUNT( * ) THEN COALESCE ( - 72, 50 ) END, COUNT( * ) ) * 76
----
1292

skipif mysql # not compatible
query I rowsort label-8564
SELECT COALESCE ( CAST ( - - 17 AS INTEGER ), + + 18 + + - CASE WHEN NOT ( NULL ) BETWEEN ( + - ( 34 ) ) AND 49 * - COUNT ( * ) THEN COALESCE ( - 72, 50 ) END, COUNT ( * ) ) * 76
----
1292

onlyif mysql # DIV for integer division: 
query I rowsort label-8565
SELECT DISTINCT 97 DIV - 17 col0
----
-5

skipif mysql # not compatible
query I rowsort label-8565
SELECT DISTINCT 97 / - 17 col0
----
-5

query I rowsort
SELECT ALL 9 + 42
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-8567
SELECT SUM( DISTINCT 63 ) * + - 48 + + 18 + - ( + + 67 ) * + + COUNT( ALL + 21 )
----
-3073

skipif mysql # not compatible
query I rowsort label-8567
SELECT SUM ( DISTINCT 63 ) * + - 48 + + 18 + - ( + + 67 ) * + + COUNT ( ALL + 21 )
----
-3073

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8568
SELECT DISTINCT 44 + - - CASE - 76 WHEN + COUNT( * ) THEN NULL ELSE - 18 * - - 43 END + 83 DIV + - 37 AS col2
----
-732

skipif mysql # not compatible
query I rowsort label-8568
SELECT DISTINCT 44 + - - CASE - 76 WHEN + COUNT ( * ) THEN NULL ELSE - 18 * - - 43 END + 83 / + - 37 AS col2
----
-732

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8569
SELECT COUNT( * ) * CAST( + 44 AS SIGNED ) AS col1
----
44

skipif mysql # not compatible
query I rowsort label-8569
SELECT COUNT ( * ) * CAST ( + 44 AS INTEGER ) AS col1
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-8570
SELECT NULLIF ( + + 16, + + 31 ) * + - COUNT( * ) * - - 92 - 90 AS col1
----
-1562

skipif mysql # not compatible
query I rowsort label-8570
SELECT NULLIF ( + + 16, + + 31 ) * + - COUNT ( * ) * - - 92 - 90 AS col1
----
-1562

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8571
SELECT COUNT( * ) DIV - + ( 45 ) + + + 18
----
18

skipif mysql # not compatible
query I rowsort label-8571
SELECT COUNT ( * ) / - + ( 45 ) + + + 18
----
18

query I rowsort
SELECT ALL 96 + + - 39 - + 49 AS col2
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-8573
SELECT - + 90 * 73 * + - MIN( DISTINCT 71 ) * + 44 + - 78 AS col0
----
20524602

skipif mysql # not compatible
query I rowsort label-8573
SELECT - + 90 * 73 * + - MIN ( DISTINCT 71 ) * + 44 + - 78 AS col0
----
20524602

query I rowsort
SELECT DISTINCT + 93 * + 51 AS col0
----
4743

query I rowsort
SELECT ALL 60 + + 86
----
146

query I rowsort
SELECT DISTINCT - NULLIF ( - 82, + 70 + + 33 )
----
82

query I rowsort
SELECT DISTINCT 78 + + 96 AS col2
----
174

query I rowsort
SELECT DISTINCT - + 82
----
-82

query I rowsort
SELECT + 26 + - - 43 AS col2
----
69

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8580
SELECT + - COALESCE ( 37, CASE 5 WHEN 94 THEN NULL WHEN + 34 + - COUNT( DISTINCT 31 ) DIV - 29 THEN - COUNT( * ) * + NULLIF ( - ( COALESCE ( - COUNT( * ), 96, 47, + COALESCE ( 47, 88 + + 54, - MAX( DISTINCT 64 ) ) * - MAX( + 62 ) + 51 ) ), + 2 ) * - 27 END DIV - 71, 57 * + 85 - + 77 )
----
-37

skipif mysql # not compatible
query I rowsort label-8580
SELECT + - COALESCE ( 37, CASE 5 WHEN 94 THEN NULL WHEN + 34 + - COUNT ( DISTINCT 31 ) / - 29 THEN - COUNT ( * ) * + NULLIF ( - ( COALESCE ( - COUNT ( * ), 96, 47, + COALESCE ( 47, 88 + + 54, - MAX ( DISTINCT 64 ) ) * - MAX ( + 62 ) + 51 ) ), + 2 ) * - 27 END / - 71, 57 * + 85 - + 77 )
----
-37

query I rowsort
SELECT + COALESCE ( - - 52, - 50 + + 88 ) + 95
----
147

query I rowsort
SELECT ( CASE - 68 WHEN + ( + NULLIF ( 7, - - 74 ) ) + 37 THEN + 14 WHEN 73 THEN NULL END ) * - - 0 * + ( + 62 ) - + 30 AS col0
----
NULL

query I rowsort
SELECT - 6 + + - 0 - ( - - 48 ) * - + 44 + + 13
----
2119

query I rowsort
SELECT ALL - 28 * - 22
----
616

onlyif mysql # aggregate syntax: 
query I rowsort label-8585
SELECT - 33 * + 10 * + 62 + + COUNT( * ) AS col2
----
-20459

skipif mysql # not compatible
query I rowsort label-8585
SELECT - 33 * + 10 * + 62 + + COUNT ( * ) AS col2
----
-20459

onlyif mysql # aggregate syntax: 
query I rowsort label-8586
SELECT ALL - 84 * 89 - + SUM( - 56 )
----
-7420

skipif mysql # not compatible
query I rowsort label-8586
SELECT ALL - 84 * 89 - + SUM ( - 56 )
----
-7420

onlyif mysql # aggregate syntax: 
query I rowsort label-8587
SELECT MAX( DISTINCT 9 ) * + 62 * 20 + - MIN( - - 52 ) + + + ( 5 ) + 56 * - 77 + 4
----
6805

skipif mysql # not compatible
query I rowsort label-8587
SELECT MAX ( DISTINCT 9 ) * + 62 * 20 + - MIN ( - - 52 ) + + + ( 5 ) + 56 * - 77 + 4
----
6805

query I rowsort
SELECT ALL - 67 * 44 * 64
----
-188672

onlyif mysql # aggregate syntax: 
query I rowsort label-8589
SELECT - SUM( - 10 ) AS col0
----
10

skipif mysql # not compatible
query I rowsort label-8589
SELECT - SUM ( - 10 ) AS col0
----
10

query I rowsort
SELECT 98 + + + 39
----
137

onlyif mysql # aggregate syntax: 
query I rowsort label-8591
SELECT 8 + - 94 + - COUNT( * ) AS col1
----
-87

skipif mysql # not compatible
query I rowsort label-8591
SELECT 8 + - 94 + - COUNT ( * ) AS col1
----
-87

onlyif mysql # aggregate syntax: 
query II rowsort label-8592
SELECT DISTINCT COUNT( * ) AS col1, COUNT( * ) col0
----
1
1

skipif mysql # not compatible
query II rowsort label-8592
SELECT DISTINCT COUNT ( * ) AS col1, COUNT ( * ) col0
----
1
1

onlyif mysql # aggregate syntax: 
query II rowsort label-8593
SELECT ALL MIN( ALL + 82 ) AS col2, + 35
----
82
35

skipif mysql # not compatible
query II rowsort label-8593
SELECT ALL MIN ( ALL + 82 ) AS col2, + 35
----
82
35

onlyif mysql # aggregate syntax: 
query II rowsort label-8594
SELECT - 86, MIN( + 66 ) + - + CASE 9 WHEN - - 78 * + 85 THEN - ( - 64 ) + + COUNT( * ) * + 20 WHEN - MAX( ALL - ( 10 ) ) * + 77 THEN NULL END AS col1
----
-86
NULL

skipif mysql # not compatible
query II rowsort label-8594
SELECT - 86, MIN ( + 66 ) + - + CASE 9 WHEN - - 78 * + 85 THEN - ( - 64 ) + + COUNT ( * ) * + 20 WHEN - MAX ( ALL - ( 10 ) ) * + 77 THEN NULL END AS col1
----
-86
NULL

query II rowsort
SELECT 20, - 32 col0
----
20
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-8596
SELECT DISTINCT - SUM( + 28 ) + + 48 + 38 col1
----
58

skipif mysql # not compatible
query I rowsort label-8596
SELECT DISTINCT - SUM ( + 28 ) + + 48 + 38 col1
----
58

query I rowsort
SELECT ALL + 34 + 50
----
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8598
SELECT DISTINCT CAST( - - COALESCE ( - 62, + 87 ) AS SIGNED ) + - CAST( - 24 AS SIGNED )
----
-38

skipif mysql # not compatible
query I rowsort label-8598
SELECT DISTINCT CAST ( - - COALESCE ( - 62, + 87 ) AS INTEGER ) + - CAST ( - 24 AS INTEGER )
----
-38

onlyif mysql # aggregate syntax: 
query II rowsort label-8599
SELECT DISTINCT COUNT( * ) AS col0, COUNT( * )
----
1
1

skipif mysql # not compatible
query II rowsort label-8599
SELECT DISTINCT COUNT ( * ) AS col0, COUNT ( * )
----
1
1

query I rowsort
SELECT 97 - - 11 * - 94 - - 79 AS col1
----
-858

query II rowsort
SELECT 50, - 78 AS col0
----
50
-78

query I rowsort
SELECT ALL - 98 * + - 57
----
5586

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8603
SELECT ALL + CAST( NULL AS SIGNED ) + - CAST( - CASE - 54 WHEN - - 92 / 41 + - 35 + - - 8 THEN - 10 END AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8603
SELECT ALL + CAST ( NULL AS INTEGER ) + - CAST ( - CASE - 54 WHEN - - 92 / 41 + - 35 + - - 8 THEN - 10 END AS INTEGER )
----
NULL

query I rowsort
SELECT - 61 - + - 43 AS col2
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-8605
SELECT ALL - MAX( ALL - + ( - 16 ) ) * - 34 - 21 col2
----
523

skipif mysql # not compatible
query I rowsort label-8605
SELECT ALL - MAX ( ALL - + ( - 16 ) ) * - 34 - 21 col2
----
523

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8606
SELECT - 26 * 17 DIV + + 34 - + + COUNT( * )
----
-14

skipif mysql # not compatible
query I rowsort label-8606
SELECT - 26 * 17 / + + 34 - + + COUNT ( * )
----
-14

query II rowsort
SELECT ALL + + 5 col2, + 44 * 19 AS col2
----
5
836

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8608
SELECT MIN( DISTINCT - CAST( - 23 AS SIGNED ) ) AS col1
----
23

skipif mysql # not compatible
query I rowsort label-8608
SELECT MIN ( DISTINCT - CAST ( - 23 AS INTEGER ) ) AS col1
----
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8609
SELECT ALL - 35 * + - MAX( - + CAST( NULL AS SIGNED ) ) + 26 / - 4 * - 3 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8609
SELECT ALL - 35 * + - MAX ( - + CAST ( NULL AS INTEGER ) ) + 26 / - 4 * - 3 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8610
SELECT DISTINCT + - SUM( DISTINCT - - ( + 66 ) )
----
-66

skipif mysql # not compatible
query I rowsort label-8610
SELECT DISTINCT + - SUM ( DISTINCT - - ( + 66 ) )
----
-66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8611
SELECT ALL + ( + CAST( - - 89 AS SIGNED ) )
----
89

skipif mysql # not compatible
query I rowsort label-8611
SELECT ALL + ( + CAST ( - - 89 AS INTEGER ) )
----
89

query II rowsort
SELECT 0 AS col0, - 77 AS col1
----
0
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-8613
SELECT + - 45 - - COUNT( * )
----
-44

skipif mysql # not compatible
query I rowsort label-8613
SELECT + - 45 - - COUNT ( * )
----
-44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8614
SELECT - 54 * 7 - - 19 + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8614
SELECT - 54 * 7 - - 19 + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query II rowsort
SELECT + - 38 AS col2, 97
----
-38
97

query II rowsort
SELECT ALL + - 7, - 67 AS col1
----
-7
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-8617
SELECT DISTINCT 24 * NULLIF ( 83, 85 * + + AVG ( + - 32 ) + - - COUNT( * ) * 4 ) - COUNT( DISTINCT 80 ) AS col0
----
1991

skipif mysql # not compatible
query I rowsort label-8617
SELECT DISTINCT 24 * NULLIF ( 83, 85 * + + AVG ( + - 32 ) + - - COUNT ( * ) * 4 ) - COUNT ( DISTINCT 80 ) AS col0
----
1991

onlyif mysql # aggregate syntax: 
query I rowsort label-8618
SELECT + 81 / - - 61 / + 21 * CASE - - 12 WHEN 0 THEN - 4 WHEN + - 92 THEN + NULLIF ( COUNT( - ( 56 ) ), - + 25 ) * + 55 + ( + 97 ) + - COUNT( * ) * 19 END + + ( - COUNT( * ) ) / - 53 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8618
SELECT + 81 / - - 61 / + 21 * CASE - - 12 WHEN 0 THEN - 4 WHEN + - 92 THEN + NULLIF ( COUNT ( - ( 56 ) ), - + 25 ) * + 55 + ( + 97 ) + - COUNT ( * ) * 19 END + + ( - COUNT ( * ) ) / - 53 col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8619
SELECT ALL - 79 DIV + 97
----
0

skipif mysql # not compatible
query I rowsort label-8619
SELECT ALL - 79 / + 97
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8620
SELECT DISTINCT + - 56, 41 * - 64 * - MIN( - - 73 ) AS col1
----
-56
191552

skipif mysql # not compatible
query II rowsort label-8620
SELECT DISTINCT + - 56, 41 * - 64 * - MIN ( - - 73 ) AS col1
----
-56
191552

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8621
SELECT ALL + 99 * CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8621
SELECT ALL + 99 * CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT ALL - 88 * - 64
----
5632

onlyif mysql # aggregate syntax: 
query I rowsort label-8623
SELECT + - COUNT( * ) + - NULLIF ( + NULLIF ( - 77, - 88 + 92 * 23 * + AVG ( ALL + - ( 19 ) ) * - 76 - ( + ( + - 57 ) ) ), - COUNT( * ) ) AS col2
----
76

skipif mysql # not compatible
query I rowsort label-8623
SELECT + - COUNT ( * ) + - NULLIF ( + NULLIF ( - 77, - 88 + 92 * 23 * + AVG ( ALL + - ( 19 ) ) * - 76 - ( + ( + - 57 ) ) ), - COUNT ( * ) ) AS col2
----
76

query II rowsort
SELECT + 83 AS col0, - ( 17 ) - 75 AS col2
----
83
-92

query I rowsort
SELECT + ( - + 78 ) - + 81 AS col1
----
-159

query I rowsort
SELECT + 75 - + - 55 AS col0
----
130

onlyif mysql # aggregate syntax: 
query II rowsort label-8627
SELECT DISTINCT 98 + - 50 AS col0, 94 * - - MAX( DISTINCT 57 ) + - + 2
----
48
5356

skipif mysql # not compatible
query II rowsort label-8627
SELECT DISTINCT 98 + - 50 AS col0, 94 * - - MAX ( DISTINCT 57 ) + - + 2
----
48
5356

query I rowsort
SELECT ALL - 75 * 70 AS col2
----
-5250

query I rowsort
SELECT + 27 + + - 4 AS col2
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-8630
SELECT DISTINCT - CASE 3 WHEN ( - 69 ) THEN - 17 WHEN + + ( + 89 ) THEN MIN( - 60 ) + + 6 ELSE NULL END + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8630
SELECT DISTINCT - CASE 3 WHEN ( - 69 ) THEN - 17 WHEN + + ( + 89 ) THEN MIN ( - 60 ) + + 6 ELSE NULL END + - COUNT ( * )
----
NULL

query I rowsort
SELECT ALL + 3 + - 45 * + 39
----
-1752

onlyif mysql # aggregate syntax: 
query I rowsort label-8632
SELECT - 21 - - COUNT( * ) AS col0
----
-20

skipif mysql # not compatible
query I rowsort label-8632
SELECT - 21 - - COUNT ( * ) AS col0
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-8633
SELECT ALL MIN( 52 ) AS col2
----
52

skipif mysql # not compatible
query I rowsort label-8633
SELECT ALL MIN ( 52 ) AS col2
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-8634
SELECT ALL SUM( DISTINCT - 10 ) + 85 * + + 25 AS col2
----
2115

skipif mysql # not compatible
query I rowsort label-8634
SELECT ALL SUM ( DISTINCT - 10 ) + 85 * + + 25 AS col2
----
2115

query II rowsort
SELECT - ( - 61 ) AS col2, 46 + + 92 * 0
----
61
46

query I rowsort
SELECT ALL ( + - 3 ) AS col2
----
-3

query I rowsort
SELECT DISTINCT ( - 70 ) AS col1
----
-70

query I rowsort
SELECT ALL + 40 - - + 1
----
41

query I rowsort
SELECT DISTINCT COALESCE ( + 87, + + 52, 95 )
----
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8640
SELECT ALL - COUNT( * ) / - + 82 * - 95 - + 80 * 61 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8640
SELECT ALL - COUNT ( * ) / - + 82 * - 95 - + 80 * 61 * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8641
SELECT - 86 * 60 + - - ( - NULLIF ( + COALESCE ( - COUNT( + 83 ), + 42 * - 65 + - + 81, - + CAST( NULL AS SIGNED ) * - + 81 + 83 * - 64 * + 39 ), - + 11 ) ) AS col2
----
-5159

skipif mysql # not compatible
query I rowsort label-8641
SELECT - 86 * 60 + - - ( - NULLIF ( + COALESCE ( - COUNT ( + 83 ), + 42 * - 65 + - + 81, - + CAST ( NULL AS INTEGER ) * - + 81 + 83 * - 64 * + 39 ), - + 11 ) ) AS col2
----
-5159

onlyif mysql # aggregate syntax: 
query II rowsort label-8642
SELECT ( - 11 ), 76 * SUM( 52 ) AS col2
----
-11
3952

skipif mysql # not compatible
query II rowsort label-8642
SELECT ( - 11 ), 76 * SUM ( 52 ) AS col2
----
-11
3952

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8643
SELECT DISTINCT - - 97 * - COUNT( 52 ) * - 69 + 68 AS col0, 63 + 28 DIV 32
----
6761
63

skipif mysql # not compatible
query II rowsort label-8643
SELECT DISTINCT - - 97 * - COUNT ( 52 ) * - 69 + 68 AS col0, 63 + 28 / 32
----
6761
63

query I rowsort
SELECT - 52 * + + ( 10 ) * + 15 + - 97 * - 41
----
-3823

query I rowsort
SELECT + - 83 * + 8 AS col0
----
-664

query I rowsort
SELECT - + 72 + - 39
----
-111

query I rowsort
SELECT DISTINCT - 50 * 79 AS col1
----
-3950

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8648
SELECT ALL + AVG ( ( - CAST( NULL AS SIGNED ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8648
SELECT ALL + AVG ( ( - CAST ( NULL AS INTEGER ) ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8649
SELECT ALL + + CAST( + 16 AS SIGNED ) AS col2
----
16

skipif mysql # not compatible
query I rowsort label-8649
SELECT ALL + + CAST ( + 16 AS INTEGER ) AS col2
----
16

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8650
SELECT - 51 / - - 76 / + + 58 + + - CAST( NULL AS DECIMAL ) * - 86 * - CASE + 3 WHEN - - 70 / - - 4 + - 80 * + 12 * - 14 * + 57 - + 34 THEN NULL WHEN 59 + - MAX( + ( 15 ) ) THEN - ( - 65 ) * 37 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8650
SELECT - 51 / - - 76 / + + 58 + + - CAST ( NULL AS REAL ) * - 86 * - CASE + 3 WHEN - - 70 / - - 4 + - 80 * + 12 * - 14 * + 57 - + 34 THEN NULL WHEN 59 + - MAX ( + ( 15 ) ) THEN - ( - 65 ) * 37 END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8651
SELECT - 55 * + COUNT( * ) * + - MAX( DISTINCT + + ( + 45 ) ) * - - 83 + + CAST( NULL AS SIGNED ) * + AVG ( - + 82 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8651
SELECT - 55 * + COUNT ( * ) * + - MAX ( DISTINCT + + ( + 45 ) ) * - - 83 + + CAST ( NULL AS INTEGER ) * + AVG ( - + 82 ) AS col2
----
NULL

query I rowsort
SELECT + 24 + + - 39 * - 68
----
2676

query I rowsort
SELECT + - 55 col0
----
-55

onlyif mysql # DIV for integer division: 
query I rowsort label-8654
SELECT - 82 DIV 59
----
-1

skipif mysql # not compatible
query I rowsort label-8654
SELECT - 82 / 59
----
-1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8655
SELECT + COALESCE ( - 19, AVG ( - + 83 ) * 76 DIV + CAST( NULL AS SIGNED ) - 8, 55, + + 88 DIV + - 97 ) AS col0
----
-19

skipif mysql # not compatible
query I rowsort label-8655
SELECT + COALESCE ( - 19, AVG ( - + 83 ) * 76 / + CAST ( NULL AS INTEGER ) - 8, 55, + + 88 / + - 97 ) AS col0
----
-19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8656
SELECT ALL 94 * - 17 * - 40 + + - CAST( NULL AS SIGNED ) + + 26 * + 72 + 30
----
NULL

skipif mysql # not compatible
query I rowsort label-8656
SELECT ALL 94 * - 17 * - 40 + + - CAST ( NULL AS INTEGER ) + + 26 * + 72 + 30
----
NULL

query I rowsort
SELECT - ( 98 ) AS col1
----
-98

query I rowsort
SELECT ALL 0 * - 77 * + + 88 + + ( - + 2 ) col1
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8659
SELECT DISTINCT 69 * + 7 + - 70 col1, + CAST( - AVG ( ALL + 68 ) AS SIGNED ) + + COUNT( - 71 ) * + 82
----
413
14

skipif mysql # not compatible
query II rowsort label-8659
SELECT DISTINCT 69 * + 7 + - 70 col1, + CAST ( - AVG ( ALL + 68 ) AS INTEGER ) + + COUNT ( - 71 ) * + 82
----
413
14

onlyif mysql # aggregate syntax: 
query I rowsort label-8660
SELECT CASE 42 WHEN + ( - - COUNT( + - 86 ) ) - - + 18 THEN NULL WHEN + - 84 / + COUNT( DISTINCT - 18 ) THEN 6 ELSE - COUNT( * ) END
----
-1

skipif mysql # not compatible
query I rowsort label-8660
SELECT CASE 42 WHEN + ( - - COUNT ( + - 86 ) ) - - + 18 THEN NULL WHEN + - 84 / + COUNT ( DISTINCT - 18 ) THEN 6 ELSE - COUNT ( * ) END
----
-1

query I rowsort
SELECT 34 * - 73 + + 86
----
-2396

query I rowsort
SELECT ALL 27 * - + NULLIF ( 4, 82 * + - 24 ) AS col2
----
-108

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8663
SELECT DISTINCT CAST( NULL AS SIGNED ) + - 19 + - 70 * + 62 AS col0, + 1 AS col0
----
NULL
1

skipif mysql # not compatible
query II rowsort label-8663
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - 19 + - 70 * + 62 AS col0, + 1 AS col0
----
NULL
1

onlyif mysql # aggregate syntax: 
query II rowsort label-8664
SELECT ALL SUM( ALL 1 ) + 87 AS col2, - ( + - 97 ) * + 18 * + - 56 col1
----
88
-97776

skipif mysql # not compatible
query II rowsort label-8664
SELECT ALL SUM ( ALL 1 ) + 87 AS col2, - ( + - 97 ) * + 18 * + - 56 col1
----
88
-97776

onlyif mysql # aggregate syntax: 
query I rowsort label-8665
SELECT COUNT( * ) * - + 65
----
-65

skipif mysql # not compatible
query I rowsort label-8665
SELECT COUNT ( * ) * - + 65
----
-65

onlyif mysql # aggregate syntax: 
query II rowsort label-8666
SELECT 2 AS col2, COALESCE ( - 45, 52 - - - 43 ) - 19 * + COUNT( * ) * + 48 AS col0
----
2
-957

skipif mysql # not compatible
query II rowsort label-8666
SELECT 2 AS col2, COALESCE ( - 45, 52 - - - 43 ) - 19 * + COUNT ( * ) * + 48 AS col0
----
2
-957

query I rowsort
SELECT 52 + + 29 AS col1
----
81

query I rowsort
SELECT DISTINCT + 27 * - 25
----
-675

onlyif mysql # aggregate syntax: 
query I rowsort label-8669
SELECT 58 * 83 * - CASE - - 36 WHEN 41 + + + 56 * + + 2 * ( - SUM( DISTINCT - ( 15 ) ) ) * + - 46 + + 95 THEN 16 END * + - 98 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8669
SELECT 58 * 83 * - CASE - - 36 WHEN 41 + + + 56 * + + 2 * ( - SUM ( DISTINCT - ( 15 ) ) ) * + - 46 + + 95 THEN 16 END * + - 98 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8670
SELECT ALL ( + 92 ) * + + 88, + MIN( DISTINCT - 77 ) AS col1
----
8096
-77

skipif mysql # not compatible
query II rowsort label-8670
SELECT ALL ( + 92 ) * + + 88, + MIN ( DISTINCT - 77 ) AS col1
----
8096
-77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8671
SELECT COUNT( ALL - CAST( NULL AS SIGNED ) ) + + - 79 * - - NULLIF ( + CASE - 96 WHEN + 9 - CASE - 32 WHEN + 51 * + - 83 THEN NULL ELSE COUNT( ALL + 31 ) END THEN CASE - 41 WHEN + + ( - 2 ) + - 9 + - 78 THEN 7 * 96 + - 39 WHEN 15 THEN 41 + + CASE 53 + - 60 * 8 WHEN + 58 THEN + 13 END ELSE 29 END END, 90 * - 73 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8671
SELECT COUNT ( ALL - CAST ( NULL AS INTEGER ) ) + + - 79 * - - NULLIF ( + CASE - 96 WHEN + 9 - CASE - 32 WHEN + 51 * + - 83 THEN NULL ELSE COUNT ( ALL + 31 ) END THEN CASE - 41 WHEN + + ( - 2 ) + - 9 + - 78 THEN 7 * 96 + - 39 WHEN 15 THEN 41 + + CASE 53 + - 60 * 8 WHEN + 58 THEN + 13 END ELSE 29 END END, 90 * - 73 )
----
NULL

query I rowsort
SELECT ALL + - 32 - - 95 AS col1
----
63

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8673
SELECT + ( + 4 ) DIV - CAST( + 11 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-8673
SELECT + ( + 4 ) / - CAST ( + 11 AS INTEGER )
----
0

query I rowsort
SELECT ALL - ( + 23 )
----
-23

onlyif mysql # aggregate syntax: 
query II rowsort label-8675
SELECT + 72 AS col0, COUNT( * )
----
72
1

skipif mysql # not compatible
query II rowsort label-8675
SELECT + 72 AS col0, COUNT ( * )
----
72
1

query II rowsort
SELECT - 22 AS col0, 2 AS col0
----
-22
2

onlyif mysql # aggregate syntax: 
query I rowsort label-8677
SELECT DISTINCT - + CASE 19 WHEN + - 82 + 40 THEN - 16 * + - 44 + + 85 WHEN + 14 THEN - + 43 WHEN - COUNT( * ) THEN - CASE + 31 WHEN + 69 + 56 THEN - - 84 END / + + COUNT( * ) + 85 - - + 6 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8677
SELECT DISTINCT - + CASE 19 WHEN + - 82 + 40 THEN - 16 * + - 44 + + 85 WHEN + 14 THEN - + 43 WHEN - COUNT ( * ) THEN - CASE + 31 WHEN + 69 + 56 THEN - - 84 END / + + COUNT ( * ) + 85 - - + 6 ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8678
SELECT ALL - MIN( ALL 37 ) col1
----
-37

skipif mysql # not compatible
query I rowsort label-8678
SELECT ALL - MIN ( ALL 37 ) col1
----
-37

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8679
SELECT DISTINCT - + CASE - 5 WHEN 2 * - + 13 - + + 17 * - - 84 + + 86 * - 93 * + AVG ( ALL + + 42 ) THEN - 33 * + + 85 * + 81 + - 75 / 26 * - 17 END, CAST( NULL AS SIGNED )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-8679
SELECT DISTINCT - + CASE - 5 WHEN 2 * - + 13 - + + 17 * - - 84 + + 86 * - 93 * + AVG ( ALL + + 42 ) THEN - 33 * + + 85 * + 81 + - 75 / 26 * - 17 END, CAST ( NULL AS INTEGER )
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8680
SELECT + 52 * NULLIF ( - COUNT( * ), + 24 - 16 ) * + + 6
----
-312

skipif mysql # not compatible
query I rowsort label-8680
SELECT + 52 * NULLIF ( - COUNT ( * ), + 24 - 16 ) * + + 6
----
-312

query I rowsort
SELECT 67 * 86 AS col0
----
5762

query I rowsort
SELECT ALL + 5 + 15
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-8683
SELECT + - SUM( + 19 ) col2
----
-19

skipif mysql # not compatible
query I rowsort label-8683
SELECT + - SUM ( + 19 ) col2
----
-19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8684
SELECT CASE + 75 WHEN - - 10 * - + 36 THEN NULL WHEN - CAST( NULL AS SIGNED ) THEN + 34 / + - 36 / - - 29 * - - 45 + 4 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8684
SELECT CASE + 75 WHEN - - 10 * - + 36 THEN NULL WHEN - CAST ( NULL AS INTEGER ) THEN + 34 / + - 36 / - - 29 * - - 45 + 4 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8685
SELECT ALL + 55 + MIN( DISTINCT + 90 ) AS col1
----
145

skipif mysql # not compatible
query I rowsort label-8685
SELECT ALL + 55 + MIN ( DISTINCT + 90 ) AS col1
----
145

query I rowsort
SELECT 47 * + 50
----
2350

query II rowsort
SELECT ALL + 2 + + - 75, 46 AS col0
----
-73
46

onlyif mysql # aggregate syntax: 
query I rowsort label-8688
SELECT COUNT( * ) * ( + 52 ) * + 97
----
5044

skipif mysql # not compatible
query I rowsort label-8688
SELECT COUNT ( * ) * ( + 52 ) * + 97
----
5044

onlyif mysql # DIV for integer division: 
query I rowsort label-8689
SELECT 97 + + 2 DIV + 59 + + - 23 + 81
----
155

skipif mysql # not compatible
query I rowsort label-8689
SELECT 97 + + 2 / + 59 + + - 23 + 81
----
155

query I rowsort
SELECT ALL - 3 + - + 28
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-8691
SELECT COUNT( * ) - + 59 + 58
----
0

skipif mysql # not compatible
query I rowsort label-8691
SELECT COUNT ( * ) - + 59 + 58
----
0

query I rowsort
SELECT ( + 20 ) * + 62
----
1240

query I rowsort
SELECT DISTINCT + 58 - 21
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-8694
SELECT ALL 32 * + COUNT( * ) * - 4 col0
----
-128

skipif mysql # not compatible
query I rowsort label-8694
SELECT ALL 32 * + COUNT ( * ) * - 4 col0
----
-128

onlyif mysql # aggregate syntax: 
query I rowsort label-8695
SELECT 32 + + 8 + + + COUNT( * )
----
41

skipif mysql # not compatible
query I rowsort label-8695
SELECT 32 + + 8 + + + COUNT ( * )
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-8696
SELECT ALL - COUNT( * ) - + COUNT( * ) + - 52
----
-54

skipif mysql # not compatible
query I rowsort label-8696
SELECT ALL - COUNT ( * ) - + COUNT ( * ) + - 52
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-8697
SELECT COUNT( * ) + - SUM( DISTINCT + 12 )
----
-11

skipif mysql # not compatible
query I rowsort label-8697
SELECT COUNT ( * ) + - SUM ( DISTINCT + 12 )
----
-11

query I rowsort
SELECT ALL 26 - + 41 + 43
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-8699
SELECT COUNT( * ) * CASE - ( 8 ) WHEN - + SUM( - - 30 ) - AVG ( + ( + 96 ) ) THEN + - ( - 81 ) END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8699
SELECT COUNT ( * ) * CASE - ( 8 ) WHEN - + SUM ( - - 30 ) - AVG ( + ( + 96 ) ) THEN + - ( - 81 ) END col2
----
NULL

query I rowsort
SELECT 58 - - - 25 + - 75 AS col0
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-8701
SELECT MIN( 37 )
----
37

skipif mysql # not compatible
query I rowsort label-8701
SELECT MIN ( 37 )
----
37

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8702
SELECT - CAST( NULL AS DECIMAL ) + 69 + 7 + + 58 * - 77 * - 31 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8702
SELECT - CAST ( NULL AS REAL ) + 69 + 7 + + 58 * - 77 * - 31 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8703
SELECT ALL 74 * + - 0 AS col1, COUNT( * ) * - 15 AS col1
----
0
-15

skipif mysql # not compatible
query II rowsort label-8703
SELECT ALL 74 * + - 0 AS col1, COUNT ( * ) * - 15 AS col1
----
0
-15

query I rowsort
SELECT - 43 * + 42 * 42 + + 70 AS col0
----
-75782

query I rowsort
SELECT 36 + 7 * - 38 AS col1
----
-230

query I rowsort
SELECT DISTINCT - ( 20 )
----
-20

onlyif mysql # aggregate syntax: 
query II rowsort label-8707
SELECT ALL + 11 * + 80 * - + 66 - + 40 + - 84 - COUNT( * ) + + + 43 * - 41 * - - 98 AS col1, 70
----
-230979
70

skipif mysql # not compatible
query II rowsort label-8707
SELECT ALL + 11 * + 80 * - + 66 - + 40 + - 84 - COUNT ( * ) + + + 43 * - 41 * - - 98 AS col1, 70
----
-230979
70

onlyif mysql # DIV for integer division: 
query II rowsort label-8708
SELECT 13 DIV - 46, 38 DIV 68
----
0
0

skipif mysql # not compatible
query II rowsort label-8708
SELECT 13 / - 46, 38 / 68
----
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8709
SELECT ALL - 0 * + 64 * 2 * + - SUM( ALL + 11 ) + 4 + - - COUNT( * ) DIV 30 AS col1
----
4

skipif mysql # not compatible
query I rowsort label-8709
SELECT ALL - 0 * + 64 * 2 * + - SUM ( ALL + 11 ) + 4 + - - COUNT ( * ) / 30 AS col1
----
4

onlyif mysql # DIV for integer division: 
query I rowsort label-8710
SELECT 20 DIV - 47 + - - 45 + 53 + - - 5 * + - 58 AS col2
----
-192

skipif mysql # not compatible
query I rowsort label-8710
SELECT 20 / - 47 + - - 45 + 53 + - - 5 * + - 58 AS col2
----
-192

onlyif mysql # aggregate syntax: 
query I rowsort label-8711
SELECT DISTINCT 75 * - ( - - 3 ) + + 36 * - + COUNT( * ) * - + MAX( + + 99 ) col1
----
3339

skipif mysql # not compatible
query I rowsort label-8711
SELECT DISTINCT 75 * - ( - - 3 ) + + 36 * - + COUNT ( * ) * - + MAX ( + + 99 ) col1
----
3339

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8712
SELECT ALL - AVG ( DISTINCT + 81 ) * - COUNT( * ) * - 93 * 49 * + 44 * + 70 + - 54 + ( + CASE + 50 WHEN - 89 THEN CAST( 97 AS SIGNED ) + - + 49 END ) / - - 8 / + MAX( DISTINCT 50 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8712
SELECT ALL - AVG ( DISTINCT + 81 ) * - COUNT ( * ) * - 93 * 49 * + 44 * + 70 + - 54 + ( + CASE + 50 WHEN - 89 THEN CAST ( 97 AS INTEGER ) + - + 49 END ) / - - 8 / + MAX ( DISTINCT 50 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8713
SELECT + COUNT( COALESCE ( + 22, 25 ) )
----
1

skipif mysql # not compatible
query I rowsort label-8713
SELECT + COUNT ( COALESCE ( + 22, 25 ) )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-8714
SELECT 36 DIV 34 + 57
----
58

skipif mysql # not compatible
query I rowsort label-8714
SELECT 36 / 34 + 57
----
58

onlyif mysql # DIV for integer division: 
query I rowsort label-8715
SELECT ALL + + 44 * + - 47 + 33 DIV + - 26 + + + 17 AS col2
----
-2052

skipif mysql # not compatible
query I rowsort label-8715
SELECT ALL + + 44 * + - 47 + 33 / + - 26 + + + 17 AS col2
----
-2052

query I rowsort
SELECT DISTINCT 83 * - + 88 + - 37
----
-7341

onlyif mysql # DIV for integer division: 
query I rowsort label-8717
SELECT ALL - + 13 DIV - - 80 col0
----
0

skipif mysql # not compatible
query I rowsort label-8717
SELECT ALL - + 13 / - - 80 col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8718
SELECT - ( 86 ) * - + COUNT( * ) * - COUNT( DISTINCT 31 ) + + 31
----
-55

skipif mysql # not compatible
query I rowsort label-8718
SELECT - ( 86 ) * - + COUNT ( * ) * - COUNT ( DISTINCT 31 ) + + 31
----
-55

query I rowsort
SELECT DISTINCT - + 52 col2
----
-52

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8720
SELECT ALL - 92 * CASE - 57 WHEN - ( 88 ) THEN + 67 END + - - 5 + + 9 - + 32 * - + 29 / 29 * - + 2 * CAST( - CAST( - 0 AS SIGNED ) AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8720
SELECT ALL - 92 * CASE - 57 WHEN - ( 88 ) THEN + 67 END + - - 5 + + 9 - + 32 * - + 29 / 29 * - + 2 * CAST ( - CAST ( - 0 AS INTEGER ) AS REAL ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8721
SELECT MAX( ALL 77 )
----
77

skipif mysql # not compatible
query I rowsort label-8721
SELECT MAX ( ALL 77 )
----
77

query I rowsort
SELECT 23 + - 54
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-8723
SELECT - 98 + + MAX( ALL - 93 ) AS col1
----
-191

skipif mysql # not compatible
query I rowsort label-8723
SELECT - 98 + + MAX ( ALL - 93 ) AS col1
----
-191

onlyif mysql # aggregate syntax: 
query II rowsort label-8724
SELECT COUNT( * ) * - 24 + - COUNT( * ) AS col0, + 62
----
-25
62

skipif mysql # not compatible
query II rowsort label-8724
SELECT COUNT ( * ) * - 24 + - COUNT ( * ) AS col0, + 62
----
-25
62

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8725
SELECT 71 * - 23 * + COALESCE ( 77, + - 48 DIV + NULLIF ( - - COUNT( * ), + 33 + - + 23 ) ) * + 5 + - 55 * 39 AS col2
----
-630850

skipif mysql # not compatible
query I rowsort label-8725
SELECT 71 * - 23 * + COALESCE ( 77, + - 48 / + NULLIF ( - - COUNT ( * ), + 33 + - + 23 ) ) * + 5 + - 55 * 39 AS col2
----
-630850

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8726
SELECT COUNT( * ) AS col0, - COALESCE ( 33, + COUNT( * ), - MAX( DISTINCT + 58 ) + COUNT( * ) * - + CAST( NULL AS SIGNED ) ) + - 73 AS col2
----
1
-106

skipif mysql # not compatible
query II rowsort label-8726
SELECT COUNT ( * ) AS col0, - COALESCE ( 33, + COUNT ( * ), - MAX ( DISTINCT + 58 ) + COUNT ( * ) * - + CAST ( NULL AS INTEGER ) ) + - 73 AS col2
----
1
-106

onlyif mysql # aggregate syntax: 
query I rowsort label-8727
SELECT + COUNT( * ) * + 73 + - COUNT( * ) + + + 79 + 52 * - 6 + - 45 + + - ( - - 32 ) AS col0
----
-238

skipif mysql # not compatible
query I rowsort label-8727
SELECT + COUNT ( * ) * + 73 + - COUNT ( * ) + + + 79 + 52 * - 6 + - 45 + + - ( - - 32 ) AS col0
----
-238

onlyif mysql # aggregate syntax: 
query I rowsort label-8728
SELECT ALL + NULLIF ( 76, - AVG ( + 25 ) - COUNT( * ) ) * - + COUNT( * ) AS col0
----
-76

skipif mysql # not compatible
query I rowsort label-8728
SELECT ALL + NULLIF ( 76, - AVG ( + 25 ) - COUNT ( * ) ) * - + COUNT ( * ) AS col0
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-8729
SELECT - 62 + + + COUNT( * ) - + 36 AS col2
----
-97

skipif mysql # not compatible
query I rowsort label-8729
SELECT - 62 + + + COUNT ( * ) - + 36 AS col2
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-8730
SELECT ALL + MAX( ALL 56 )
----
56

skipif mysql # not compatible
query I rowsort label-8730
SELECT ALL + MAX ( ALL 56 )
----
56

query I rowsort
SELECT - 38 + + 27 AS col2
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-8732
SELECT ALL - COUNT( * ) - + + 14
----
-15

skipif mysql # not compatible
query I rowsort label-8732
SELECT ALL - COUNT ( * ) - + + 14
----
-15

query I rowsort
SELECT DISTINCT + 54 * + 80 AS col2
----
4320

onlyif mysql # aggregate syntax: 
query I rowsort label-8734
SELECT DISTINCT + SUM( DISTINCT - + 88 )
----
-88

skipif mysql # not compatible
query I rowsort label-8734
SELECT DISTINCT + SUM ( DISTINCT - + 88 )
----
-88

query I rowsort
SELECT ALL 26 - + 80 AS col0
----
-54

query I rowsort
SELECT - 32 * + 36
----
-1152

onlyif mysql # aggregate syntax: 
query I rowsort label-8737
SELECT ALL COUNT( DISTINCT - - 72 )
----
1

skipif mysql # not compatible
query I rowsort label-8737
SELECT ALL COUNT ( DISTINCT - - 72 )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8738
SELECT DISTINCT COALESCE ( CASE - ( + 83 ) WHEN CASE + + AVG ( 97 ) WHEN - ( + + MAX( + + 42 ) ) THEN - + 45 * + - 10 * + + COUNT( * ) + + ( + 56 ) DIV + 85 ELSE NULL END + - 82 THEN + - 12 + - ( + + COUNT( - 71 ) ) WHEN + COUNT( * ) THEN + 5 DIV - 34 WHEN - 28 THEN NULL ELSE NULL END, - COUNT( * ) * - 96 )
----
96

skipif mysql # not compatible
query I rowsort label-8738
SELECT DISTINCT COALESCE ( CASE - ( + 83 ) WHEN CASE + + AVG ( 97 ) WHEN - ( + + MAX ( + + 42 ) ) THEN - + 45 * + - 10 * + + COUNT ( * ) + + ( + 56 ) / + 85 ELSE NULL END + - 82 THEN + - 12 + - ( + + COUNT ( - 71 ) ) WHEN + COUNT ( * ) THEN + 5 / - 34 WHEN - 28 THEN NULL ELSE NULL END, - COUNT ( * ) * - 96 )
----
96

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8739
SELECT + 84 + + - 25 + - + NULLIF ( ( 56 ), - 60 ) + - - 15 * - - 70 + - CAST( + 83 AS SIGNED ) AS col2, 62
----
970
62

skipif mysql # not compatible
query II rowsort label-8739
SELECT + 84 + + - 25 + - + NULLIF ( ( 56 ), - 60 ) + - - 15 * - - 70 + - CAST ( + 83 AS INTEGER ) AS col2, 62
----
970
62

onlyif mysql # DIV for integer division: 
query I rowsort label-8740
SELECT ALL - 9 DIV 11
----
0

skipif mysql # not compatible
query I rowsort label-8740
SELECT ALL - 9 / 11
----
0

query I rowsort
SELECT - 96 / - CASE - 92 WHEN + - 52 * 43 * + ( 90 ) - + - 62 THEN NULL WHEN + 28 THEN - 48 END * ( - 67 ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT - 91 * - + 90
----
8190

query I rowsort
SELECT + 79 * + ( + 83 ) * - 1 + + - 25 AS col0
----
-6582

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8744
SELECT ALL 49 * CAST( - 12 AS SIGNED ) AS col0, - 65 DIV - - 29 + - 41 AS col2
----
-588
-43

skipif mysql # not compatible
query II rowsort label-8744
SELECT ALL 49 * CAST ( - 12 AS INTEGER ) AS col0, - 65 / - - 29 + - 41 AS col2
----
-588
-43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8745
SELECT ALL - - CAST( NULL AS SIGNED ) / + - 97 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8745
SELECT ALL - - CAST ( NULL AS INTEGER ) / + - 97 AS col0
----
NULL

query I rowsort
SELECT DISTINCT + 4 + + - 63
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-8747
SELECT ALL MAX( ALL - 84 ) AS col0
----
-84

skipif mysql # not compatible
query I rowsort label-8747
SELECT ALL MAX ( ALL - 84 ) AS col0
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-8748
SELECT DISTINCT + COUNT( ALL 3 )
----
1

skipif mysql # not compatible
query I rowsort label-8748
SELECT DISTINCT + COUNT ( ALL 3 )
----
1

query III rowsort
SELECT - 6 AS col1, + 44 * - 35, - - 30 * - 76 AS col1
----
-6
-1540
-2280

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8750
SELECT - - CAST( + 40 AS SIGNED ) - 94
----
-54

skipif mysql # not compatible
query I rowsort label-8750
SELECT - - CAST ( + 40 AS INTEGER ) - 94
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-8751
SELECT - 7 * COUNT( * ) AS col2
----
-7

skipif mysql # not compatible
query I rowsort label-8751
SELECT - 7 * COUNT ( * ) AS col2
----
-7

onlyif mysql # aggregate syntax: 
query II rowsort label-8752
SELECT + MIN( 90 ) + + 96, - COUNT( * ) * - 33 * + 68 * 44 AS col1
----
186
98736

skipif mysql # not compatible
query II rowsort label-8752
SELECT + MIN ( 90 ) + + 96, - COUNT ( * ) * - 33 * + 68 * 44 AS col1
----
186
98736

onlyif mysql # aggregate syntax: 
query I rowsort label-8753
SELECT DISTINCT 47 + 95 + + 6 + + CASE + COUNT( * ) WHEN - - ( + ( - 0 ) ) + + COALESCE ( + 60, 39 + + 5 ) THEN - 68 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8753
SELECT DISTINCT 47 + 95 + + 6 + + CASE + COUNT ( * ) WHEN - - ( + ( - 0 ) ) + + COALESCE ( + 60, 39 + + 5 ) THEN - 68 END
----
NULL

query II rowsort
SELECT ALL - 17 col0, 12 + + 89
----
-17
101

onlyif mysql # aggregate syntax: 
query I rowsort label-8755
SELECT DISTINCT ( - SUM( ALL + - 32 ) )
----
32

skipif mysql # not compatible
query I rowsort label-8755
SELECT DISTINCT ( - SUM ( ALL + - 32 ) )
----
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8756
SELECT + - 10 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8756
SELECT + - 10 * + CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT - - 7, 98 AS col2
----
7
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8758
SELECT ALL CAST( + - 16 AS SIGNED ) + + 68 AS col1
----
52

skipif mysql # not compatible
query I rowsort label-8758
SELECT ALL CAST ( + - 16 AS INTEGER ) + + 68 AS col1
----
52

onlyif mysql # aggregate syntax: 
query II rowsort label-8759
SELECT + + 83 * + + COUNT( * ) * - - 51, COUNT( * ) + 26 AS col0
----
4233
27

skipif mysql # not compatible
query II rowsort label-8759
SELECT + + 83 * + + COUNT ( * ) * - - 51, COUNT ( * ) + 26 AS col0
----
4233
27

query I rowsort
SELECT DISTINCT - 77 + 38
----
-39

query I rowsort
SELECT + COALESCE ( - 31, - - 18 * 26 ) AS col1
----
-31

onlyif mysql # aggregate syntax: 
query II rowsort label-8762
SELECT + COUNT( * ) * - 4 * 68 + + 41 - - 38 AS col2, 98 * + 27 AS col2
----
-193
2646

skipif mysql # not compatible
query II rowsort label-8762
SELECT + COUNT ( * ) * - 4 * 68 + + 41 - - 38 AS col2, 98 * + 27 AS col2
----
-193
2646

query I rowsort
SELECT DISTINCT - 6 * + 74
----
-444

query I rowsort
SELECT ( - - 61 ) * - 52 + - ( + 66 )
----
-3238

query I rowsort
SELECT + 45 * - 2 col0
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-8766
SELECT DISTINCT - 54 * - 92 - + - ( CASE + 88 WHEN - COUNT( * ) THEN + - 93 WHEN - AVG ( ALL 41 ) THEN + + 52 + + 86 + + - 8 * - COUNT( DISTINCT 6 ) * + - 50 * 7 + - + 90 WHEN - + 0 THEN - - 97 END ) + - + NULLIF ( - COUNT( * ), + ( - 45 ) * 18 + 44 ) * 93
----
NULL

skipif mysql # not compatible
query I rowsort label-8766
SELECT DISTINCT - 54 * - 92 - + - ( CASE + 88 WHEN - COUNT ( * ) THEN + - 93 WHEN - AVG ( ALL 41 ) THEN + + 52 + + 86 + + - 8 * - COUNT ( DISTINCT 6 ) * + - 50 * 7 + - + 90 WHEN - + 0 THEN - - 97 END ) + - + NULLIF ( - COUNT ( * ), + ( - 45 ) * 18 + 44 ) * 93
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8767
SELECT ALL COALESCE ( 16, - 13 + 45 * - - 81 * + 48 * - 60 ) * + COUNT( * ) * COALESCE ( 77, + 63 * - MAX( ALL + 12 ), MIN( DISTINCT + 31 ) * + 16 - - 58 + + CASE 20 WHEN - 92 * - 51 THEN + 47 ELSE NULL END * ( 67 ) )
----
1232

skipif mysql # not compatible
query I rowsort label-8767
SELECT ALL COALESCE ( 16, - 13 + 45 * - - 81 * + 48 * - 60 ) * + COUNT ( * ) * COALESCE ( 77, + 63 * - MAX ( ALL + 12 ), MIN ( DISTINCT + 31 ) * + 16 - - 58 + + CASE 20 WHEN - 92 * - 51 THEN + 47 ELSE NULL END * ( 67 ) )
----
1232

onlyif mysql # aggregate syntax: 
query I rowsort label-8768
SELECT ALL 88 * COUNT( * ) - + 24 AS col1
----
64

skipif mysql # not compatible
query I rowsort label-8768
SELECT ALL 88 * COUNT ( * ) - + 24 AS col1
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-8769
SELECT DISTINCT + SUM( ALL - 97 )
----
-97

skipif mysql # not compatible
query I rowsort label-8769
SELECT DISTINCT + SUM ( ALL - 97 )
----
-97

query II rowsort
SELECT COALESCE ( 87, + + 93, + 97 ) AS col2, - 25
----
87
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-8771
SELECT + 79 + - + ( 61 ) + - SUM( DISTINCT 40 ) AS col1
----
-22

skipif mysql # not compatible
query I rowsort label-8771
SELECT + 79 + - + ( 61 ) + - SUM ( DISTINCT 40 ) AS col1
----
-22

query II rowsort
SELECT + 56 AS col0, + 55
----
56
55

query I rowsort
SELECT + 55 + - 36 + - 35 AS col1
----
-16

onlyif mysql # aggregate syntax: 
query II rowsort label-8774
SELECT COUNT( * ), 26 AS col1
----
1
26

skipif mysql # not compatible
query II rowsort label-8774
SELECT COUNT ( * ), 26 AS col1
----
1
26

query I rowsort
SELECT + 73 - - 9 * - 45 * + 37 * - - 43
----
-644282

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8776
SELECT DISTINCT - 5 * + + 58 DIV - COUNT( * ) AS col2
----
290

skipif mysql # not compatible
query I rowsort label-8776
SELECT DISTINCT - 5 * + + 58 / - COUNT ( * ) AS col2
----
290

query I rowsort
SELECT DISTINCT - 96 * - 87
----
8352

onlyif mysql # DIV for integer division: 
query I rowsort label-8778
SELECT DISTINCT 13 * 47 DIV 21 AS col0
----
29

skipif mysql # not compatible
query I rowsort label-8778
SELECT DISTINCT 13 * 47 / 21 AS col0
----
29

query I rowsort
SELECT - + 55 + + 18 AS col1
----
-37

onlyif mysql # aggregate syntax: 
query II rowsort label-8780
SELECT DISTINCT + COUNT( * ) col0, - 19 AS col1
----
1
-19

skipif mysql # not compatible
query II rowsort label-8780
SELECT DISTINCT + COUNT ( * ) col0, - 19 AS col1
----
1
-19

query I rowsort
SELECT ALL - - 46 + 88
----
134

onlyif mysql # aggregate syntax: 
query I rowsort label-8782
SELECT - + CASE - 70 WHEN ( + + 85 ) THEN COUNT( * ) WHEN + 63 THEN NULL ELSE NULL END + - 84 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8782
SELECT - + CASE - 70 WHEN ( + + 85 ) THEN COUNT ( * ) WHEN + 63 THEN NULL ELSE NULL END + - 84 AS col2
----
NULL

query I rowsort
SELECT - 66 + + 81
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-8784
SELECT ALL + + 33 + + CASE - 33 WHEN - 85 THEN NULL WHEN + 26 / + COUNT( * ) THEN + CASE + 73 WHEN + + 26 THEN - 29 WHEN + + MIN( - + 74 ) THEN NULL ELSE + COUNT( * ) - - 96 * - 55 * - 5 END ELSE - 12 + + MIN( - 74 ) * + - 43 + - + 0 + COALESCE ( COALESCE ( + 46, 13 ), 72 ) * 95 END
----
7573

skipif mysql # not compatible
query I rowsort label-8784
SELECT ALL + + 33 + + CASE - 33 WHEN - 85 THEN NULL WHEN + 26 / + COUNT ( * ) THEN + CASE + 73 WHEN + + 26 THEN - 29 WHEN + + MIN ( - + 74 ) THEN NULL ELSE + COUNT ( * ) - - 96 * - 55 * - 5 END ELSE - 12 + + MIN ( - 74 ) * + - 43 + - + 0 + COALESCE ( COALESCE ( + 46, 13 ), 72 ) * 95 END
----
7573

onlyif mysql # aggregate syntax: 
query II rowsort label-8785
SELECT - - SUM( ALL + - 7 ), + 22 AS col2
----
-7
22

skipif mysql # not compatible
query II rowsort label-8785
SELECT - - SUM ( ALL + - 7 ), + 22 AS col2
----
-7
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8786
SELECT - 19 * + CAST( + MIN( - 97 ) AS SIGNED ) AS col1
----
1843

skipif mysql # not compatible
query I rowsort label-8786
SELECT - 19 * + CAST ( + MIN ( - 97 ) AS INTEGER ) AS col1
----
1843

onlyif mysql # aggregate syntax: 
query I rowsort label-8787
SELECT ALL - COUNT( * ) * COUNT( * ) + COALESCE ( - 87, - 52 ) AS col2
----
-88

skipif mysql # not compatible
query I rowsort label-8787
SELECT ALL - COUNT ( * ) * COUNT ( * ) + COALESCE ( - 87, - 52 ) AS col2
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-8788
SELECT ALL + + MAX( - 91 ) + MAX( ALL 61 )
----
-30

skipif mysql # not compatible
query I rowsort label-8788
SELECT ALL + + MAX ( - 91 ) + MAX ( ALL 61 )
----
-30

query I rowsort
SELECT - + 54 + - 83 * 76
----
-6362

onlyif mysql # DIV for integer division: 
query I rowsort label-8790
SELECT DISTINCT + + 79 DIV - + 27
----
-2

skipif mysql # not compatible
query I rowsort label-8790
SELECT DISTINCT + + 79 / - + 27
----
-2

onlyif mysql # aggregate syntax: 
query II rowsort label-8791
SELECT ALL 36 col1, 13 * 80 * + + CASE + 72 WHEN - COUNT( ALL + 69 ) + - 63 THEN NULL WHEN + 29 * - NULLIF ( + 96, 78 ) + + 53 * - COUNT( * ) THEN + 81 * + AVG ( ALL - 88 ) ELSE NULL END + + 61 + + 68 AS col1
----
36
NULL

skipif mysql # not compatible
query II rowsort label-8791
SELECT ALL 36 col1, 13 * 80 * + + CASE + 72 WHEN - COUNT ( ALL + 69 ) + - 63 THEN NULL WHEN + 29 * - NULLIF ( + 96, 78 ) + + 53 * - COUNT ( * ) THEN + 81 * + AVG ( ALL - 88 ) ELSE NULL END + + 61 + + 68 AS col1
----
36
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8792
SELECT 3 AS col2, 86 * - - COUNT( * ) AS col2
----
3
86

skipif mysql # not compatible
query II rowsort label-8792
SELECT 3 AS col2, 86 * - - COUNT ( * ) AS col2
----
3
86

query I rowsort
SELECT DISTINCT - 66 - 76
----
-142

onlyif mysql # DIV for integer division: 
query I rowsort label-8794
SELECT + - 69 DIV + - 65 - - 0 * - 66 + - 15 col0
----
-14

skipif mysql # not compatible
query I rowsort label-8794
SELECT + - 69 / + - 65 - - 0 * - 66 + - 15 col0
----
-14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8795
SELECT COALESCE ( - CASE + COUNT( * ) WHEN 46 * 11 * + 92 - 82 THEN + - CAST( 58 AS SIGNED ) * - 57 - + - 33 ELSE + - 95 + - 78 + + + 93 END, + + COUNT( * ) DIV + - CAST( NULL AS SIGNED ) ) AS col0
----
80

skipif mysql # not compatible
query I rowsort label-8795
SELECT COALESCE ( - CASE + COUNT ( * ) WHEN 46 * 11 * + 92 - 82 THEN + - CAST ( 58 AS INTEGER ) * - 57 - + - 33 ELSE + - 95 + - 78 + + + 93 END, + + COUNT ( * ) / + - CAST ( NULL AS INTEGER ) ) AS col0
----
80

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8796
SELECT - SUM( ALL - - 87 ) DIV + 93 - 79 - - ( + 38 ) - - 0 + - 94 * - - 73
----
-6903

skipif mysql # not compatible
query I rowsort label-8796
SELECT - SUM ( ALL - - 87 ) / + 93 - 79 - - ( + 38 ) - - 0 + - 94 * - - 73
----
-6903

onlyif mysql # aggregate syntax: 
query I rowsort label-8797
SELECT COUNT( * ) + - - MAX( + 84 ) AS col1
----
85

skipif mysql # not compatible
query I rowsort label-8797
SELECT COUNT ( * ) + - - MAX ( + 84 ) AS col1
----
85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8798
SELECT DISTINCT - CAST( + ( - CAST( NULL AS SIGNED ) ) AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8798
SELECT DISTINCT - CAST ( + ( - CAST ( NULL AS INTEGER ) ) AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT 51 * - 22 AS col1
----
-1122

onlyif mysql # aggregate syntax: 
query I rowsort label-8800
SELECT COUNT( ALL - 57 ) * + ( + - 40 )
----
-40

skipif mysql # not compatible
query I rowsort label-8800
SELECT COUNT ( ALL - 57 ) * + ( + - 40 )
----
-40

query I rowsort
SELECT ALL NULLIF ( 22, + + 55 - 98 + - 86 * + 61 ) * + 30 + - 94 * 59 AS col0
----
-4886

query I rowsort
SELECT ALL 50 * - 43 * + - 40
----
86000

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8803
SELECT COUNT( * ) DIV + + 37
----
0

skipif mysql # not compatible
query I rowsort label-8803
SELECT COUNT ( * ) / + + 37
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8804
SELECT + 52 * + - 68 * + COUNT( * ) + - - 6
----
-3530

skipif mysql # not compatible
query I rowsort label-8804
SELECT + 52 * + - 68 * + COUNT ( * ) + - - 6
----
-3530

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8805
SELECT ALL 43 + + + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8805
SELECT ALL 43 + + + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT ALL 55 * + ( - 44 ) AS col0
----
-2420

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8807
SELECT DISTINCT 72 + 21 + - CAST( - 92 AS SIGNED ) + 99 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8807
SELECT DISTINCT 72 + 21 + - CAST ( - 92 AS INTEGER ) + 99 * CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT + + 48 + - 24
----
24

onlyif mysql # aggregate syntax: 
query II rowsort label-8809
SELECT DISTINCT + COUNT( * ) + + 51, COUNT( * ) AS col2
----
52
1

skipif mysql # not compatible
query II rowsort label-8809
SELECT DISTINCT + COUNT ( * ) + + 51, COUNT ( * ) AS col2
----
52
1

query II rowsort
SELECT DISTINCT - 71 + ( - - 55 ), 97 * - 31 * - 79 AS col0
----
-16
237553

query I rowsort
SELECT COALESCE ( 69, - 37 * + + 95 ) + - + 83 AS col0
----
-14

query I rowsort
SELECT DISTINCT - 21 * - 41 AS col2
----
861

onlyif mysql # aggregate syntax: 
query I rowsort label-8813
SELECT ALL + - 6 + + SUM( 90 ) * - - 41 AS col2
----
3684

skipif mysql # not compatible
query I rowsort label-8813
SELECT ALL + - 6 + + SUM ( 90 ) * - - 41 AS col2
----
3684

onlyif mysql # aggregate syntax: 
query I rowsort label-8814
SELECT - + NULLIF ( + + MIN( - 1 ), + - 4 )
----
1

skipif mysql # not compatible
query I rowsort label-8814
SELECT - + NULLIF ( + + MIN ( - 1 ), + - 4 )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-8815
SELECT ALL - 88 + + 12 AS col1, - ( - MAX( + 89 ) ) col2
----
-76
89

skipif mysql # not compatible
query II rowsort label-8815
SELECT ALL - 88 + + 12 AS col1, - ( - MAX ( + 89 ) ) col2
----
-76
89

onlyif mysql # aggregate syntax: 
query II rowsort label-8816
SELECT 91 * 29, + COUNT( * ) AS col0
----
2639
1

skipif mysql # not compatible
query II rowsort label-8816
SELECT 91 * 29, + COUNT ( * ) AS col0
----
2639
1

query I rowsort
SELECT ALL - CASE - COALESCE ( 65, 20, - 41 ) WHEN + 58 THEN 72 END * + + 36 * + 36 AS col2
----
NULL

query I rowsort
SELECT ALL + 28 - 41 + + ( + 22 ) AS col1
----
9

query I rowsort
SELECT - 53 * 1 col1
----
-53

query I rowsort
SELECT - 97 + - 36 + 35 AS col1
----
-98

query I rowsort
SELECT 90 + + 60
----
150

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8822
SELECT + CAST( NULL AS SIGNED ) * - 48 + - 22 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8822
SELECT + CAST ( NULL AS INTEGER ) * - 48 + - 22 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8823
SELECT ( - COUNT( * ) ) + + 9
----
8

skipif mysql # not compatible
query I rowsort label-8823
SELECT ( - COUNT ( * ) ) + + 9
----
8

onlyif mysql # DIV for integer division: 
query I rowsort label-8824
SELECT ALL + + 1 DIV + 77 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8824
SELECT ALL + + 1 / + 77 AS col0
----
0

query I rowsort
SELECT DISTINCT + 94 * + + 33
----
3102

query I rowsort
SELECT 26 - + - 90 + ( + 9 ) * 8
----
188

onlyif mysql # DIV for integer division: 
query I rowsort label-8827
SELECT ALL + 22 DIV + 66
----
0

skipif mysql # not compatible
query I rowsort label-8827
SELECT ALL + 22 / + 66
----
0

query I rowsort
SELECT 33 * + 54 AS col1
----
1782

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8829
SELECT ALL + COUNT( * ) DIV 33 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8829
SELECT ALL + COUNT ( * ) / 33 AS col2
----
0

query I rowsort
SELECT ALL 10 * 66
----
660

query I rowsort
SELECT ALL 27 * 34
----
918

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8832
SELECT DISTINCT - CAST( - 80 AS SIGNED )
----
80

skipif mysql # not compatible
query I rowsort label-8832
SELECT DISTINCT - CAST ( - 80 AS INTEGER )
----
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8833
SELECT ALL - CAST( NULL AS SIGNED ) * + 48 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8833
SELECT ALL - CAST ( NULL AS INTEGER ) * + 48 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8834
SELECT 32 * + - COUNT( * )
----
-32

skipif mysql # not compatible
query I rowsort label-8834
SELECT 32 * + - COUNT ( * )
----
-32

query II rowsort
SELECT + 43 AS col2, + 17 AS col0
----
43
17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8836
SELECT - 4 * - 48 - - ( + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8836
SELECT - 4 * - 48 - - ( + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8837
SELECT ALL + COUNT( * ) * + - 36 * - + NULLIF ( 25, + COUNT( * ) ) AS col2
----
900

skipif mysql # not compatible
query I rowsort label-8837
SELECT ALL + COUNT ( * ) * + - 36 * - + NULLIF ( 25, + COUNT ( * ) ) AS col2
----
900

query I rowsort
SELECT DISTINCT 2 + 68 AS col0
----
70

query II rowsort
SELECT ALL - 96, 52 col0
----
-96
52

query I rowsort
SELECT ALL 96 * - - 43
----
4128

query I rowsort
SELECT ALL + 87 + + 51
----
138

query II rowsort
SELECT DISTINCT - 33 + + 29 + - 57 * - 14, 94 AS col0
----
794
94

query I rowsort
SELECT ALL 95 * + 66 col2
----
6270

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8844
SELECT + COUNT( * ) DIV + - 77 - 4 * - ( - + 39 )
----
-156

skipif mysql # not compatible
query I rowsort label-8844
SELECT + COUNT ( * ) / + - 77 - 4 * - ( - + 39 )
----
-156

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8845
SELECT + CAST( + 15 AS SIGNED ) + + 76 + + 93 * + - 84 * + 71 * ( + + 39 ) AS col0
----
-21631337

skipif mysql # not compatible
query I rowsort label-8845
SELECT + CAST ( + 15 AS INTEGER ) + + 76 + + 93 * + - 84 * + 71 * ( + + 39 ) AS col0
----
-21631337

query I rowsort
SELECT ALL - 92 + - 40 AS col1
----
-132

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8847
SELECT DISTINCT - 48 * + ( + 17 ) + 19 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8847
SELECT DISTINCT - 48 * + ( + 17 ) + 19 * - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 5 + + - 72 + - 81
----
-148

query I rowsort
SELECT ALL 84 - 45 col0
----
39

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8850
SELECT 52 AS col0, CAST( 54 AS SIGNED ) * - - 84
----
52
4536

skipif mysql # not compatible
query II rowsort label-8850
SELECT 52 AS col0, CAST ( 54 AS INTEGER ) * - - 84
----
52
4536

onlyif mysql # aggregate syntax: 
query I rowsort label-8851
SELECT ALL - COUNT( DISTINCT + 55 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-8851
SELECT ALL - COUNT ( DISTINCT + 55 ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-8852
SELECT ALL + - MAX( - 65 ) - COUNT( * ) - + + 44 AS col2, - COALESCE ( 7, + + 32, COUNT( * ) + + - 48 )
----
20
-7

skipif mysql # not compatible
query II rowsort label-8852
SELECT ALL + - MAX ( - 65 ) - COUNT ( * ) - + + 44 AS col2, - COALESCE ( 7, + + 32, COUNT ( * ) + + - 48 )
----
20
-7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8853
SELECT + - COUNT( * ) DIV + 83
----
0

skipif mysql # not compatible
query I rowsort label-8853
SELECT + - COUNT ( * ) / + 83
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8854
SELECT ALL - 40 DIV - + 92
----
0

skipif mysql # not compatible
query I rowsort label-8854
SELECT ALL - 40 / - + 92
----
0

query I rowsort
SELECT + + 71 + + 98 - 51 * - 87 * + 93 + - - 12 * + 40
----
413290

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8856
SELECT - - CAST( NULL AS DECIMAL ) AS col0, - 30 AS col1
----
NULL
-30

skipif mysql # not compatible
query II rowsort label-8856
SELECT - - CAST ( NULL AS REAL ) AS col0, - 30 AS col1
----
NULL
-30

query II rowsort
SELECT - + 59 AS col0, + 58 - + - 86 AS col0
----
-59
144

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8858
SELECT - - CASE WHEN ( NULL ) = - 39 THEN NULL WHEN NOT + 39 + + 86 > NULL THEN MAX( + 70 ) + + + 89 - - COUNT( * ) + - + COUNT( ALL 53 ) + - - 57 + + ( - - 26 ) * - 30 ELSE NULL END + + CAST( + + 9 AS SIGNED ) + + 50 / 23 * - 88 * + COUNT( * ) / COALESCE ( - 30, 44 - - 18 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8858
SELECT - - CASE WHEN ( NULL ) = - 39 THEN NULL WHEN NOT + 39 + + 86 > NULL THEN MAX ( + 70 ) + + + 89 - - COUNT ( * ) + - + COUNT ( ALL 53 ) + - - 57 + + ( - - 26 ) * - 30 ELSE NULL END + + CAST ( + + 9 AS INTEGER ) + + 50 / 23 * - 88 * + COUNT ( * ) / COALESCE ( - 30, 44 - - 18 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8859
SELECT MAX( ALL - 69 ) AS col0
----
-69

skipif mysql # not compatible
query I rowsort label-8859
SELECT MAX ( ALL - 69 ) AS col0
----
-69

query I rowsort
SELECT - - 5 col2
----
5

query II rowsort
SELECT ALL + 49, + 28 AS col0
----
49
28

onlyif mysql # aggregate syntax: 
query I rowsort label-8862
SELECT + 17 * 20 * - COUNT( - - 16 ) * - - 38 * - 24 + NULLIF ( + + 53, + 86 )
----
310133

skipif mysql # not compatible
query I rowsort label-8862
SELECT + 17 * 20 * - COUNT ( - - 16 ) * - - 38 * - 24 + NULLIF ( + + 53, + 86 )
----
310133

onlyif mysql # aggregate syntax: 
query I rowsort label-8863
SELECT DISTINCT CASE + COUNT( * ) WHEN + 25 * - 48 + - + 36 + COUNT( * ) THEN AVG ( DISTINCT - ( - + CASE + - 56 WHEN - 50 THEN - 2 WHEN 65 THEN NULL ELSE NULL END ) ) ELSE NULL END * COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8863
SELECT DISTINCT CASE + COUNT ( * ) WHEN + 25 * - 48 + - + 36 + COUNT ( * ) THEN AVG ( DISTINCT - ( - + CASE + - 56 WHEN - 50 THEN - 2 WHEN 65 THEN NULL ELSE NULL END ) ) ELSE NULL END * COUNT ( * ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT + 99 * ( - 19 ) * + 14
----
-26334

query I rowsort
SELECT - 98 + - 89
----
-187

onlyif mysql # aggregate syntax: 
query I rowsort label-8866
SELECT ALL NULLIF ( + SUM( ALL - - ( - 49 ) ), - + 5 * - 93 - + 1 ) * + 18 * + - 95 AS col2
----
83790

skipif mysql # not compatible
query I rowsort label-8866
SELECT ALL NULLIF ( + SUM ( ALL - - ( - 49 ) ), - + 5 * - 93 - + 1 ) * + 18 * + - 95 AS col2
----
83790

onlyif mysql # aggregate syntax: 
query I rowsort label-8867
SELECT DISTINCT NULLIF ( + - 37, 16 - - CASE 73 WHEN - 5 THEN + 23 * + ( + 89 ) * - CASE + 35 WHEN - 88 THEN NULL WHEN + COALESCE ( 16, + + 46 ) THEN 77 WHEN + 73 THEN NULL WHEN - 9 + + 89 THEN COUNT( * ) + - + NULLIF ( + COUNT( * ), 69 ) / + 52 END ELSE NULL END * + ( 38 - 65 ) ) AS col1
----
-37

skipif mysql # not compatible
query I rowsort label-8867
SELECT DISTINCT NULLIF ( + - 37, 16 - - CASE 73 WHEN - 5 THEN + 23 * + ( + 89 ) * - CASE + 35 WHEN - 88 THEN NULL WHEN + COALESCE ( 16, + + 46 ) THEN 77 WHEN + 73 THEN NULL WHEN - 9 + + 89 THEN COUNT ( * ) + - + NULLIF ( + COUNT ( * ), 69 ) / + 52 END ELSE NULL END * + ( 38 - 65 ) ) AS col1
----
-37

query I rowsort
SELECT - NULLIF ( + - 92, - 80 ) AS col1
----
92

query I rowsort
SELECT + 4 + + + 98 AS col2
----
102

onlyif mysql # aggregate syntax: 
query I rowsort label-8870
SELECT ( + NULLIF ( + MIN( - ( + - 34 ) ), - 82 / 19 - + ( - 74 ) ) )
----
34

skipif mysql # not compatible
query I rowsort label-8870
SELECT ( + NULLIF ( + MIN ( - ( + - 34 ) ), - 82 / 19 - + ( - 74 ) ) )
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-8871
SELECT - 74 + - 82 + - COUNT( * )
----
-157

skipif mysql # not compatible
query I rowsort label-8871
SELECT - 74 + - 82 + - COUNT ( * )
----
-157

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8872
SELECT ALL + CASE CAST( NULL AS SIGNED ) WHEN + + MIN( ALL 36 ) + - COUNT( * ) THEN NULL ELSE 26 DIV 82 * - 76 END
----
0

skipif mysql # not compatible
query I rowsort label-8872
SELECT ALL + CASE CAST ( NULL AS INTEGER ) WHEN + + MIN ( ALL 36 ) + - COUNT ( * ) THEN NULL ELSE 26 / 82 * - 76 END
----
0

query I rowsort
SELECT DISTINCT + 46 * + 53
----
2438

query I rowsort
SELECT ALL + NULLIF ( 78, + 81 + - 21 * + ( - ( + + 71 ) ) )
----
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8875
SELECT + 43 * 78 + + COALESCE ( - ( ( - MAX( ALL CAST( + 16 AS SIGNED ) ) ) ), + + 58 DIV 71 * + - COUNT( * ) - - ( 57 ), 12 ) * + 13
----
3562

skipif mysql # not compatible
query I rowsort label-8875
SELECT + 43 * 78 + + COALESCE ( - ( ( - MAX ( ALL CAST ( + 16 AS INTEGER ) ) ) ), + + 58 / 71 * + - COUNT ( * ) - - ( 57 ), 12 ) * + 13
----
3562

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8876
SELECT ALL - 64 / + 31 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8876
SELECT ALL - 64 / + 31 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8877
SELECT ALL 74 * - 10 + - COUNT( * ) AS col1
----
-741

skipif mysql # not compatible
query I rowsort label-8877
SELECT ALL 74 * - 10 + - COUNT ( * ) AS col1
----
-741

query I rowsort
SELECT DISTINCT - 46 * - + 60 * + - 79 AS col2
----
-218040

query I rowsort
SELECT ALL + 92 * - - ( + 8 ) AS col2
----
736

onlyif mysql # aggregate syntax: 
query I rowsort label-8880
SELECT - MIN( ALL - 48 ) * + 88 col1
----
4224

skipif mysql # not compatible
query I rowsort label-8880
SELECT - MIN ( ALL - 48 ) * + 88 col1
----
4224

query II rowsort
SELECT ALL + 86 * + + 65 * + - 5 + + - 15, - 75 AS col2
----
-27965
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-8882
SELECT ALL 27 * + COUNT( * ) + - 92 - - 45 * + 48
----
2095

skipif mysql # not compatible
query I rowsort label-8882
SELECT ALL 27 * + COUNT ( * ) + - 92 - - 45 * + 48
----
2095

query I rowsort
SELECT - ( + 25 ) * 99 AS col0
----
-2475

query I rowsort
SELECT - ( - + 67 ) AS col1
----
67

query I rowsort
SELECT DISTINCT + ( 62 ) AS col1
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-8886
SELECT + - 50 * - MIN( - 18 ) AS col0
----
-900

skipif mysql # not compatible
query I rowsort label-8886
SELECT + - 50 * - MIN ( - 18 ) AS col0
----
-900

onlyif mysql # aggregate syntax: 
query I rowsort label-8887
SELECT DISTINCT COUNT( * ) * + 9 AS col1
----
9

skipif mysql # not compatible
query I rowsort label-8887
SELECT DISTINCT COUNT ( * ) * + 9 AS col1
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8888
SELECT ALL CAST( 27 AS SIGNED ) col0
----
27

skipif mysql # not compatible
query I rowsort label-8888
SELECT ALL CAST ( 27 AS INTEGER ) col0
----
27

onlyif mysql # DIV for integer division: 
query I rowsort label-8889
SELECT ALL + - 60 DIV 97 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8889
SELECT ALL + - 60 / 97 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8890
SELECT CASE - - 58 WHEN 96 / - + ( - COUNT( * ) ) - + 16 THEN + ( + 18 ) WHEN + 20 THEN + + 29 WHEN - AVG ( + 67 ) * - - 36 * 37 THEN + 93 * 66 + 40 + 63 * - - CAST( 96 AS SIGNED ) + - 47 + + 9 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8890
SELECT CASE - - 58 WHEN 96 / - + ( - COUNT ( * ) ) - + 16 THEN + ( + 18 ) WHEN + 20 THEN + + 29 WHEN - AVG ( + 67 ) * - - 36 * 37 THEN + 93 * 66 + 40 + 63 * - - CAST ( 96 AS INTEGER ) + - 47 + + 9 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8891
SELECT - COUNT( - 56 ) * + 35
----
-35

skipif mysql # not compatible
query I rowsort label-8891
SELECT - COUNT ( - 56 ) * + 35
----
-35

query I rowsort
SELECT ALL 31 * ( + 54 )
----
1674

onlyif mysql # aggregate syntax: 
query I rowsort label-8893
SELECT + COUNT( * ) - - MIN( DISTINCT - 89 ) AS col0
----
-88

skipif mysql # not compatible
query I rowsort label-8893
SELECT + COUNT ( * ) - - MIN ( DISTINCT - 89 ) AS col0
----
-88

onlyif mysql # DIV for integer division: 
query I rowsort label-8894
SELECT + 16 DIV 92 * + ( - COALESCE ( ( - 51 ), + + 67 ) ) col1
----
0

skipif mysql # not compatible
query I rowsort label-8894
SELECT + 16 / 92 * + ( - COALESCE ( ( - 51 ), + + 67 ) ) col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8895
SELECT - CAST( 46 AS SIGNED )
----
-46

skipif mysql # not compatible
query I rowsort label-8895
SELECT - CAST ( 46 AS INTEGER )
----
-46

query I rowsort
SELECT + 63 + - 98 AS col1
----
-35

query I rowsort
SELECT DISTINCT 33 + - 50 AS col0
----
-17

query I rowsort
SELECT DISTINCT 92 + + 1 col2
----
93

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8899
SELECT ALL 27 + - - 7 + + 12 DIV - 67 DIV + COALESCE ( + + COUNT( * ), 72 * 27 )
----
34

skipif mysql # not compatible
query I rowsort label-8899
SELECT ALL 27 + - - 7 + + 12 / - 67 / + COALESCE ( + + COUNT ( * ), 72 * 27 )
----
34

query I rowsort
SELECT DISTINCT 86 * + 10 AS col2
----
860

onlyif mysql # aggregate syntax: 
query I rowsort label-8901
SELECT DISTINCT MIN( ALL 21 ) + + - ( COALESCE ( + CASE + 72 WHEN + MAX( ALL 81 ) THEN - 55 * + 50 WHEN - 61 THEN - - 28 END, - + ( - + 5 ) * 95 ) )
----
-454

skipif mysql # not compatible
query I rowsort label-8901
SELECT DISTINCT MIN ( ALL 21 ) + + - ( COALESCE ( + CASE + 72 WHEN + MAX ( ALL 81 ) THEN - 55 * + 50 WHEN - 61 THEN - - 28 END, - + ( - + 5 ) * 95 ) )
----
-454

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8902
SELECT ALL + 59 * + 82 * 2 * - COUNT( ALL + CAST( NULL AS SIGNED ) ) * - + 6 * - 44
----
0

skipif mysql # not compatible
query I rowsort label-8902
SELECT ALL + 59 * + 82 * 2 * - COUNT ( ALL + CAST ( NULL AS INTEGER ) ) * - + 6 * - 44
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8903
SELECT DISTINCT 96 DIV 65 * + NULLIF ( - 36, 62 * MIN( ALL - + 97 ) + + - 7 ) * 99 + + - COUNT( * ) col0
----
-3565

skipif mysql # not compatible
query I rowsort label-8903
SELECT DISTINCT 96 / 65 * + NULLIF ( - 36, 62 * MIN ( ALL - + 97 ) + + - 7 ) * 99 + + - COUNT ( * ) col0
----
-3565

query I rowsort
SELECT DISTINCT 50 * - 52 col1
----
-2600

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8905
SELECT ALL 2 DIV + 68 * - 12 * - 91 + 43 AS col0, + MAX( + 44 )
----
43
44

skipif mysql # not compatible
query II rowsort label-8905
SELECT ALL 2 / + 68 * - 12 * - 91 + 43 AS col0, + MAX ( + 44 )
----
43
44

query I rowsort
SELECT + 73 + + - 31 AS col2
----
42

query I rowsort
SELECT ALL 85 * + - 69 AS col1
----
-5865

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8908
SELECT CAST( - 65 AS SIGNED ) AS col2
----
-65

skipif mysql # not compatible
query I rowsort label-8908
SELECT CAST ( - 65 AS INTEGER ) AS col2
----
-65

query I rowsort
SELECT - 96 * - + 30 AS col2
----
2880

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8910
SELECT CAST( NULL AS DECIMAL ) AS col0, 66 + - 43 AS col0
----
NULL
23

skipif mysql # not compatible
query II rowsort label-8910
SELECT CAST ( NULL AS REAL ) AS col0, 66 + - 43 AS col0
----
NULL
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8911
SELECT ALL ( - COUNT( * ) ) DIV - 49 - - 98 * - + NULLIF ( 51, CAST( - - MIN( ALL + - 24 ) AS SIGNED ) ) + 35, + CAST( 34 AS SIGNED ) * - - 27 + + 99 + - + 80 + + AVG ( DISTINCT - 99 ) + - - 96 * - + ( + - COUNT( * ) ) + + 29 - + 99 + COUNT( * ) + - CASE 88 WHEN - 93 THEN + 40 WHEN 16 THEN - 39 * - 62 + - 61 * 12 END * + 35 * + 96 AS col0
----
-4963
NULL

skipif mysql # not compatible
query II rowsort label-8911
SELECT ALL ( - COUNT ( * ) ) / - 49 - - 98 * - + NULLIF ( 51, CAST ( - - MIN ( ALL + - 24 ) AS INTEGER ) ) + 35, + CAST ( 34 AS INTEGER ) * - - 27 + + 99 + - + 80 + + AVG ( DISTINCT - 99 ) + - - 96 * - + ( + - COUNT ( * ) ) + + 29 - + 99 + COUNT ( * ) + - CASE 88 WHEN - 93 THEN + 40 WHEN 16 THEN - 39 * - 62 + - 61 * 12 END * + 35 * + 96 AS col0
----
-4963
NULL

query I rowsort
SELECT + 43 * - 32 AS col1
----
-1376

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8913
SELECT DISTINCT - - MIN( DISTINCT - - 24 ) DIV 43 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8913
SELECT DISTINCT - - MIN ( DISTINCT - - 24 ) / 43 AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8914
SELECT ALL 83 DIV - COUNT( * ) - ( + NULLIF ( + - MIN( ALL 75 ), + ( - 80 ) ) ) - + 8
----
-16

skipif mysql # not compatible
query I rowsort label-8914
SELECT ALL 83 / - COUNT ( * ) - ( + NULLIF ( + - MIN ( ALL 75 ), + ( - 80 ) ) ) - + 8
----
-16

query I rowsort
SELECT ALL - 1 * - 69 AS col2
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-8916
SELECT DISTINCT - - CASE + 41 WHEN + 88 THEN NULL ELSE + + 48 - 59 + - ( 73 ) END * MAX( 88 ) AS col0
----
-7392

skipif mysql # not compatible
query I rowsort label-8916
SELECT DISTINCT - - CASE + 41 WHEN + 88 THEN NULL ELSE + + 48 - 59 + - ( 73 ) END * MAX ( 88 ) AS col0
----
-7392

onlyif mysql # aggregate syntax: 
query I rowsort label-8917
SELECT + - 31 * + + 14 * + 77 + - - COUNT( * )
----
-33417

skipif mysql # not compatible
query I rowsort label-8917
SELECT + - 31 * + + 14 * + 77 + - - COUNT ( * )
----
-33417

onlyif mysql # aggregate syntax: 
query I rowsort label-8918
SELECT COUNT( * ) * 43 AS col0
----
43

skipif mysql # not compatible
query I rowsort label-8918
SELECT COUNT ( * ) * 43 AS col0
----
43

query I rowsort
SELECT ALL - ( + 10 ) * - - 39
----
-390

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8920
SELECT - 49 + - 16 - - - CASE - + 75 WHEN - 78 + + + ( 64 ) THEN - 74 END, + CAST( NULL AS SIGNED ) - - - 95 * AVG ( + 7 ) col1
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-8920
SELECT - 49 + - 16 - - - CASE - + 75 WHEN - 78 + + + ( 64 ) THEN - 74 END, + CAST ( NULL AS INTEGER ) - - - 95 * AVG ( + 7 ) col1
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8921
SELECT + + MIN( - - 47 )
----
47

skipif mysql # not compatible
query I rowsort label-8921
SELECT + + MIN ( - - 47 )
----
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8922
SELECT - 63 + NULLIF ( - 12, + 86 ) - - 67 * CAST( NULL AS SIGNED ) + + 98
----
NULL

skipif mysql # not compatible
query I rowsort label-8922
SELECT - 63 + NULLIF ( - 12, + 86 ) - - 67 * CAST ( NULL AS INTEGER ) + + 98
----
NULL

query I rowsort
SELECT ALL + 49 * 69 AS col0
----
3381

query I rowsort
SELECT + 42 * + 97 - + 13 AS col0
----
4061

onlyif mysql # aggregate syntax: 
query I rowsort label-8925
SELECT ALL NULLIF ( 38, - 1 * - MAX( ALL - + 62 ) * NULLIF ( - 28, - 51 * 75 + + 32 - + COUNT( DISTINCT - 93 ) * + COALESCE ( 80, - + 26 * - 67 + + COALESCE ( - ( - 43 ), + 27 - - 95, 86 ) ) ) + - 50 + + NULLIF ( CASE COUNT( * ) WHEN 93 THEN NULL WHEN - 26 * ( 67 ) THEN 28 END, - 56 ) * - 18 )
----
38

skipif mysql # not compatible
query I rowsort label-8925
SELECT ALL NULLIF ( 38, - 1 * - MAX ( ALL - + 62 ) * NULLIF ( - 28, - 51 * 75 + + 32 - + COUNT ( DISTINCT - 93 ) * + COALESCE ( 80, - + 26 * - 67 + + COALESCE ( - ( - 43 ), + 27 - - 95, 86 ) ) ) + - 50 + + NULLIF ( CASE COUNT ( * ) WHEN 93 THEN NULL WHEN - 26 * ( 67 ) THEN 28 END, - 56 ) * - 18 )
----
38

query II rowsort
SELECT ALL 56, ( + 87 ) AS col0
----
56
87

query I rowsort
SELECT + 8 * + 7
----
56

query I rowsort
SELECT DISTINCT 47 + 80 * 86
----
6927

onlyif mysql # DIV for integer division: 
query II rowsort label-8929
SELECT DISTINCT - 96 AS col0, + 7 DIV - 81 + - 6 - + 13 - - 18 + + ( + 15 ) DIV 73 * - - 19 AS col2
----
-96
-1

skipif mysql # not compatible
query II rowsort label-8929
SELECT DISTINCT - 96 AS col0, + 7 / - 81 + - 6 - + 13 - - 18 + + ( + 15 ) / 73 * - - 19 AS col2
----
-96
-1

query I rowsort
SELECT ALL + 97 + 0
----
97

query II rowsort
SELECT ALL 17 col0, + CASE + 53 WHEN - 46 + + 21 + - + 30 + + 62 THEN COALESCE ( - 61, - 56 ) ELSE NULL END AS col0
----
17
NULL

query I rowsort
SELECT 23 * - 3
----
-69

query I rowsort
SELECT DISTINCT - 81 + - + 54
----
-135

query II rowsort
SELECT - 74 AS col1, 89
----
-74
89

query I rowsort
SELECT DISTINCT 92 + - + 22
----
70

query I rowsort
SELECT ALL 51 + + ( 31 ) AS col1
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-8937
SELECT ( + 27 ) + 25 + - 70 + ( + 71 ) * - COUNT( * ) * CASE - 51 WHEN - + 21 THEN NULL WHEN - 0 THEN - - 30 ELSE NULL END * 50 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8937
SELECT ( + 27 ) + 25 + - 70 + ( + 71 ) * - COUNT ( * ) * CASE - 51 WHEN - + 21 THEN NULL WHEN - 0 THEN - - 30 ELSE NULL END * 50 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8938
SELECT ALL 84, + COUNT( * ) AS col1
----
84
1

skipif mysql # not compatible
query II rowsort label-8938
SELECT ALL 84, + COUNT ( * ) AS col1
----
84
1

query II rowsort
SELECT 53 AS col1, + 58
----
53
58

query I rowsort
SELECT DISTINCT + NULLIF ( + - 40, + 9 ) + - + ( + 64 ) col2
----
-104

query I rowsort
SELECT ALL - 64 * - 99 col1
----
6336

onlyif mysql # aggregate syntax: 
query I rowsort label-8942
SELECT DISTINCT 38 + - 66 - - COUNT( * ) col2
----
-27

skipif mysql # not compatible
query I rowsort label-8942
SELECT DISTINCT 38 + - 66 - - COUNT ( * ) col2
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-8943
SELECT COUNT( * ) + 99
----
100

skipif mysql # not compatible
query I rowsort label-8943
SELECT COUNT ( * ) + 99
----
100

query I rowsort
SELECT 51 * - + 66 * - - 92
----
-309672

onlyif mysql # aggregate syntax: 
query I rowsort label-8945
SELECT SUM( ALL - 19 ) * 37
----
-703

skipif mysql # not compatible
query I rowsort label-8945
SELECT SUM ( ALL - 19 ) * 37
----
-703

onlyif mysql # DIV for integer division: 
query I rowsort label-8946
SELECT 57 + - ( + 62 ) DIV 28
----
55

skipif mysql # not compatible
query I rowsort label-8946
SELECT 57 + - ( + 62 ) / 28
----
55

query I rowsort
SELECT DISTINCT 2 - + 69 AS col1
----
-67

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8948
SELECT + 5, - 70 - + - COUNT( DISTINCT - ( - - ( 37 ) ) ) DIV + + 42 AS col1
----
5
-70

skipif mysql # not compatible
query II rowsort label-8948
SELECT + 5, - 70 - + - COUNT ( DISTINCT - ( - - ( 37 ) ) ) / + + 42 AS col1
----
5
-70

query II rowsort
SELECT 64 AS col1, - 42 + - 40 + - 32 AS col1
----
64
-114

query I rowsort
SELECT 86 * 78 AS col0
----
6708

onlyif mysql # aggregate syntax: 
query I rowsort label-8951
SELECT COUNT( 92 ) * COUNT( * ) + + 70 + 31 * + 14 - - 66 + - 21 * - COUNT( * )
----
592

skipif mysql # not compatible
query I rowsort label-8951
SELECT COUNT ( 92 ) * COUNT ( * ) + + 70 + 31 * + 14 - - 66 + - 21 * - COUNT ( * )
----
592

onlyif mysql # aggregate syntax: 
query II rowsort label-8952
SELECT ALL - - 23 AS col0, + SUM( - 14 ) AS col2
----
23
-14

skipif mysql # not compatible
query II rowsort label-8952
SELECT ALL - - 23 AS col0, + SUM ( - 14 ) AS col2
----
23
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-8953
SELECT ALL - NULLIF ( + COUNT( * ), 19 )
----
-1

skipif mysql # not compatible
query I rowsort label-8953
SELECT ALL - NULLIF ( + COUNT ( * ), 19 )
----
-1

query II rowsort
SELECT ALL - - 6, 11 + + 70 + - 1 * - 28 * - 97 AS col0
----
6
-2635

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8955
SELECT ALL - COUNT( * ), COALESCE ( - 26, + CAST( MIN( - - 78 ) AS SIGNED ) ) + - + 10 AS col0
----
-1
-36

skipif mysql # not compatible
query II rowsort label-8955
SELECT ALL - COUNT ( * ), COALESCE ( - 26, + CAST ( MIN ( - - 78 ) AS INTEGER ) ) + - + 10 AS col0
----
-1
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-8956
SELECT ALL 50 * COUNT( ALL + 55 ) AS col1
----
50

skipif mysql # not compatible
query I rowsort label-8956
SELECT ALL 50 * COUNT ( ALL + 55 ) AS col1
----
50

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8957
SELECT 9 AS col2, 54 - CAST( NULL AS SIGNED )
----
9
NULL

skipif mysql # not compatible
query II rowsort label-8957
SELECT 9 AS col2, 54 - CAST ( NULL AS INTEGER )
----
9
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8958
SELECT ALL - + MIN( DISTINCT - NULLIF ( + 76, + + 20 ) ), 7 AS col2
----
76
7

skipif mysql # not compatible
query II rowsort label-8958
SELECT ALL - + MIN ( DISTINCT - NULLIF ( + 76, + + 20 ) ), 7 AS col2
----
76
7

query I rowsort
SELECT - 47 * + 63 AS col0
----
-2961

query II rowsort
SELECT + + 67 AS col2, 77 AS col1
----
67
77

onlyif mysql # aggregate syntax: 
query II rowsort label-8961
SELECT 46, + SUM( ALL 13 ) AS col1
----
46
13

skipif mysql # not compatible
query II rowsort label-8961
SELECT 46, + SUM ( ALL 13 ) AS col1
----
46
13

onlyif mysql # aggregate syntax: 
query I rowsort label-8962
SELECT CASE - - 41 WHEN + - ( 35 ) / + - 78 / + + CASE 97 WHEN - ( + 77 ) + - 47 THEN NULL WHEN 75 - - + 69 - + - 97 * - COUNT( * ) + NULLIF ( + 17, - 44 ) * + + COUNT( * ) THEN + 73 / + COUNT( + ( - 42 ) ) END / ( + - 36 ) * - 87 + + - 29 - - CASE + 88 WHEN COALESCE ( + 78, MAX( ALL COALESCE ( + 94, 27 * 68 ) ) * + 83 + 89 * - 71 ) THEN + 1 WHEN - 82 * + 13 THEN NULL END THEN + 8 + - 0 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8962
SELECT CASE - - 41 WHEN + - ( 35 ) / + - 78 / + + CASE 97 WHEN - ( + 77 ) + - 47 THEN NULL WHEN 75 - - + 69 - + - 97 * - COUNT ( * ) + NULLIF ( + 17, - 44 ) * + + COUNT ( * ) THEN + 73 / + COUNT ( + ( - 42 ) ) END / ( + - 36 ) * - 87 + + - 29 - - CASE + 88 WHEN COALESCE ( + 78, MAX ( ALL COALESCE ( + 94, 27 * 68 ) ) * + 83 + 89 * - 71 ) THEN + 1 WHEN - 82 * + 13 THEN NULL END THEN + 8 + - 0 END AS col0
----
NULL

query I rowsort
SELECT ALL - - 92 + - 19
----
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8964
SELECT + + COALESCE ( + - 20, - 40 * - 86 + - COUNT( * ) * + + CAST( NULL AS SIGNED ) * + COUNT( * ) )
----
-20

skipif mysql # not compatible
query I rowsort label-8964
SELECT + + COALESCE ( + - 20, - 40 * - 86 + - COUNT ( * ) * + + CAST ( NULL AS INTEGER ) * + COUNT ( * ) )
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-8965
SELECT DISTINCT + - COUNT( * ) * 69 col1
----
-69

skipif mysql # not compatible
query I rowsort label-8965
SELECT DISTINCT + - COUNT ( * ) * 69 col1
----
-69

onlyif mysql # DIV for integer division: 
query I rowsort label-8966
SELECT 52 DIV + 98 * - - 50
----
0

skipif mysql # not compatible
query I rowsort label-8966
SELECT 52 / + 98 * - - 50
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8967
SELECT ALL + CAST( - - 1 AS SIGNED ) + + 99
----
100

skipif mysql # not compatible
query I rowsort label-8967
SELECT ALL + CAST ( - - 1 AS INTEGER ) + + 99
----
100

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8968
SELECT 39 - - CAST( - + 42 AS SIGNED ) AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-8968
SELECT 39 - - CAST ( - + 42 AS INTEGER ) AS col2
----
-3

query I rowsort
SELECT - ( - 5 ) * + - 18 * NULLIF ( - 82, - 27 ) + + 83 AS col0
----
7463

query I rowsort
SELECT ALL - + 88 * 95
----
-8360

onlyif mysql # aggregate syntax: 
query I rowsort label-8971
SELECT ALL + 31 + SUM( DISTINCT 33 ) AS col1
----
64

skipif mysql # not compatible
query I rowsort label-8971
SELECT ALL + 31 + SUM ( DISTINCT 33 ) AS col1
----
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8972
SELECT DISTINCT + ( + + ( CAST( NULL AS SIGNED ) ) ) + + 84 * + 6 + - 74 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8972
SELECT DISTINCT + ( + + ( CAST ( NULL AS INTEGER ) ) ) + + 84 * + 6 + - 74 AS col2
----
NULL

query I rowsort
SELECT DISTINCT - 50 + 64 + - 15 AS col1
----
-1

query I rowsort
SELECT 70 * - - 40
----
2800

onlyif mysql # aggregate syntax: 
query I rowsort label-8975
SELECT ALL + 5 - - MIN( DISTINCT - 93 )
----
-88

skipif mysql # not compatible
query I rowsort label-8975
SELECT ALL + 5 - - MIN ( DISTINCT - 93 )
----
-88

onlyif mysql # DIV for integer division: 
query I rowsort label-8976
SELECT DISTINCT - 42 DIV 15
----
-2

skipif mysql # not compatible
query I rowsort label-8976
SELECT DISTINCT - 42 / 15
----
-2

query II rowsort
SELECT 60 + 83 AS col0, + 78
----
143
78

query I rowsort
SELECT ALL - 33 * + + 23 col0
----
-759

onlyif mysql # aggregate syntax: 
query I rowsort label-8979
SELECT 67 * + - SUM( + 35 ) AS col1
----
-2345

skipif mysql # not compatible
query I rowsort label-8979
SELECT 67 * + - SUM ( + 35 ) AS col1
----
-2345

query I rowsort
SELECT ALL - 69 - - 29
----
-40

query I rowsort
SELECT DISTINCT 96 * + 23
----
2208

onlyif mysql # DIV for integer division: 
query II rowsort label-8982
SELECT DISTINCT + 42 DIV - 76, + 73 col0
----
0
73

skipif mysql # not compatible
query II rowsort label-8982
SELECT DISTINCT + 42 / - 76, + 73 col0
----
0
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8983
SELECT DISTINCT - 88 - + 64 - - + COALESCE ( ( - - ( COUNT( * ) ) ), + CAST( NULL AS SIGNED ) * + NULLIF ( - 23, + 54 * 98 ), + 17 ), 49 AS col2
----
-151
49

skipif mysql # not compatible
query II rowsort label-8983
SELECT DISTINCT - 88 - + 64 - - + COALESCE ( ( - - ( COUNT ( * ) ) ), + CAST ( NULL AS INTEGER ) * + NULLIF ( - 23, + 54 * 98 ), + 17 ), 49 AS col2
----
-151
49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8984
SELECT 95 + - CAST( NULL AS SIGNED ) col1, + ( - + ( + - ( + 55 ) ) ) AS col2
----
NULL
55

skipif mysql # not compatible
query II rowsort label-8984
SELECT 95 + - CAST ( NULL AS INTEGER ) col1, + ( - + ( + - ( + 55 ) ) ) AS col2
----
NULL
55

query II rowsort
SELECT DISTINCT + 15 * - 46, - 38 + - 28 * + - 68 * + 70 AS col1
----
-690
133242

query I rowsort
SELECT + 65 * - 93 col1
----
-6045

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8987
SELECT + 20 DIV 19 - - + 34 - - COALESCE ( - 87, + 70, COUNT( - 72 ) DIV 71 * - 19, - + 55 DIV COUNT( * ) * 40 ) * - 17 * COUNT( * ) - + + 24
----
1490

skipif mysql # not compatible
query I rowsort label-8987
SELECT + 20 / 19 - - + 34 - - COALESCE ( - 87, + 70, COUNT ( - 72 ) / 71 * - 19, - + 55 / COUNT ( * ) * 40 ) * - 17 * COUNT ( * ) - + + 24
----
1490

query I rowsort
SELECT + ( - 45 ) col1
----
-45

query II rowsort
SELECT + + ( - 31 ) AS col1, - 90 AS col2
----
-31
-90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8990
SELECT ALL - COUNT( * ) DIV + + 47 * + 76 col1
----
0

skipif mysql # not compatible
query I rowsort label-8990
SELECT ALL - COUNT ( * ) / + + 47 * + 76 col1
----
0

query I rowsort
SELECT + - 13 * 13
----
-169

onlyif mysql # aggregate syntax: 
query II rowsort label-8992
SELECT + 40 - CASE + COUNT( * ) WHEN 55 THEN NULL ELSE - + 51 + 76 END + - 2 col2, 81 col1
----
13
81

skipif mysql # not compatible
query II rowsort label-8992
SELECT + 40 - CASE + COUNT ( * ) WHEN 55 THEN NULL ELSE - + 51 + 76 END + - 2 col2, 81 col1
----
13
81

onlyif mysql # aggregate syntax: 
query II rowsort label-8993
SELECT ALL - + COUNT( * ) * + 36 * - 14 + 32 * - 18, + AVG ( 50 ) / - CASE - 64 WHEN + 63 + - + 65 THEN NULL WHEN + 34 THEN 53 * - + 58 + - COALESCE ( + 90, - SUM( + 34 ) / 25 - + 5 + - 42 * + 14 + + + 63 * + 42 + + 89, + - 50 + - + 74 - 39 ) WHEN 2 + 0 THEN NULL END + COUNT( * ) - ( + 65 ) AS col0
----
-72
NULL

skipif mysql # not compatible
query II rowsort label-8993
SELECT ALL - + COUNT ( * ) * + 36 * - 14 + 32 * - 18, + AVG ( 50 ) / - CASE - 64 WHEN + 63 + - + 65 THEN NULL WHEN + 34 THEN 53 * - + 58 + - COALESCE ( + 90, - SUM ( + 34 ) / 25 - + 5 + - 42 * + 14 + + + 63 * + 42 + + 89, + - 50 + - + 74 - 39 ) WHEN 2 + 0 THEN NULL END + COUNT ( * ) - ( + 65 ) AS col0
----
-72
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8994
SELECT ALL + CAST( + COUNT( * ) AS SIGNED ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8994
SELECT ALL + CAST ( + COUNT ( * ) AS INTEGER ) AS col2
----
1

query I rowsort
SELECT + + 86 - + COALESCE ( - 54, - + 50 * - 4 + + + 11 )
----
140

onlyif mysql # aggregate syntax: 
query I rowsort label-8996
SELECT DISTINCT + COUNT( + 87 )
----
1

skipif mysql # not compatible
query I rowsort label-8996
SELECT DISTINCT + COUNT ( + 87 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8997
SELECT - MIN( 26 ) AS col1
----
-26

skipif mysql # not compatible
query I rowsort label-8997
SELECT - MIN ( 26 ) AS col1
----
-26

query I rowsort
SELECT ALL + 36 + + + 24 + + - 5 * 0
----
60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8999
SELECT + COUNT( * ) + + - 18 + + 23 + + - 1 * 4 + - COUNT( * ) DIV - ( + - 58 )
----
2

skipif mysql # not compatible
query I rowsort label-8999
SELECT + COUNT ( * ) + + - 18 + + 23 + + - 1 * 4 + - COUNT ( * ) / - ( + - 58 )
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9000
SELECT ALL NULLIF ( - NULLIF ( + CAST( NULL AS SIGNED ), 61 ), + - 99 + - + 66 + COUNT( * ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9000
SELECT ALL NULLIF ( - NULLIF ( + CAST ( NULL AS INTEGER ), 61 ), + - 99 + - + 66 + COUNT ( * ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9001
SELECT - CASE + COUNT( + 29 ) WHEN - 6 THEN + 43 END + + CASE + ( 58 ) WHEN + 88 THEN + + 20 * 30 + - 58 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9001
SELECT - CASE + COUNT ( + 29 ) WHEN - 6 THEN + 43 END + + CASE + ( 58 ) WHEN + 88 THEN + + 20 * 30 + - 58 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9002
SELECT ALL + COUNT( * ) - + COUNT( * ) * - - ( - 89 ) AS col2
----
90

skipif mysql # not compatible
query I rowsort label-9002
SELECT ALL + COUNT ( * ) - + COUNT ( * ) * - - ( - 89 ) AS col2
----
90

query I rowsort
SELECT - ( 8 ) * - 76
----
608

query II rowsort
SELECT 16, - 11 AS col0
----
16
-11

query I rowsort
SELECT ALL + 1 * - 26
----
-26

query I rowsort
SELECT - 73 * 91
----
-6643

onlyif mysql # aggregate syntax: 
query I rowsort label-9007
SELECT - COUNT( * ) * ( COUNT( * ) )
----
-1

skipif mysql # not compatible
query I rowsort label-9007
SELECT - COUNT ( * ) * ( COUNT ( * ) )
----
-1

query I rowsort
SELECT ALL NULLIF ( 76, - 80 + 54 * - 37 ) AS col0
----
76

query I rowsort
SELECT - 37 + - + 11 col1
----
-48

query I rowsort
SELECT DISTINCT ( + - 33 )
----
-33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9011
SELECT ALL ( - - ( NULLIF ( - CASE - 45 WHEN + - MAX( DISTINCT ( 62 ) ) + - COALESCE ( + CAST( NULL AS SIGNED ), SUM( 7 ) * - + 59 * 13 * 75 + + 94 * - - 73 ) THEN 42 + 62 + + 36 DIV - + 89 ELSE - + NULLIF ( - 70, + 18 ) END, + 79 * + 73 ) ) )
----
-70

skipif mysql # not compatible
query I rowsort label-9011
SELECT ALL ( - - ( NULLIF ( - CASE - 45 WHEN + - MAX ( DISTINCT ( 62 ) ) + - COALESCE ( + CAST ( NULL AS INTEGER ), SUM ( 7 ) * - + 59 * 13 * 75 + + 94 * - - 73 ) THEN 42 + 62 + + 36 / - + 89 ELSE - + NULLIF ( - 70, + 18 ) END, + 79 * + 73 ) ) )
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-9012
SELECT - 1 + + COUNT( * ) - - 19 AS col2
----
19

skipif mysql # not compatible
query I rowsort label-9012
SELECT - 1 + + COUNT ( * ) - - 19 AS col2
----
19

onlyif mysql # aggregate syntax: 
query II rowsort label-9013
SELECT ALL MAX( - + ( + 99 ) ), - 49 AS col2
----
-99
-49

skipif mysql # not compatible
query II rowsort label-9013
SELECT ALL MAX ( - + ( + 99 ) ), - 49 AS col2
----
-99
-49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9014
SELECT DISTINCT - + MIN( DISTINCT - 38 ) DIV - 65 + 89 * - ( - - 6 ) AS col1
----
-534

skipif mysql # not compatible
query I rowsort label-9014
SELECT DISTINCT - + MIN ( DISTINCT - 38 ) / - 65 + 89 * - ( - - 6 ) AS col1
----
-534

onlyif mysql # DIV for integer division: 
query I rowsort label-9015
SELECT ALL - + 33 DIV + 85 + + - 5
----
-5

skipif mysql # not compatible
query I rowsort label-9015
SELECT ALL - + 33 / + 85 + + - 5
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-9016
SELECT ALL + + SUM( DISTINCT + + 65 ) col1
----
65

skipif mysql # not compatible
query I rowsort label-9016
SELECT ALL + + SUM ( DISTINCT + + 65 ) col1
----
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9017
SELECT DISTINCT - + COUNT( * ) DIV - 79 * - 60 * + CAST( - 71 AS SIGNED ) + + 62 * COUNT( * ) * ( - - 90 )
----
5580

skipif mysql # not compatible
query I rowsort label-9017
SELECT DISTINCT - + COUNT ( * ) / - 79 * - 60 * + CAST ( - 71 AS INTEGER ) + + 62 * COUNT ( * ) * ( - - 90 )
----
5580

onlyif mysql # aggregate syntax: 
query II rowsort label-9018
SELECT + ( SUM( + + 99 ) ) + - 44, - ( MIN( DISTINCT - ( + 90 ) ) ) AS col0
----
55
90

skipif mysql # not compatible
query II rowsort label-9018
SELECT + ( SUM ( + + 99 ) ) + - 44, - ( MIN ( DISTINCT - ( + 90 ) ) ) AS col0
----
55
90

onlyif mysql # aggregate syntax: 
query I rowsort label-9019
SELECT ALL + - 83 * + MAX( ALL 89 ) + - COUNT( * ) * + - 38 AS col0
----
-7349

skipif mysql # not compatible
query I rowsort label-9019
SELECT ALL + - 83 * + MAX ( ALL 89 ) + - COUNT ( * ) * + - 38 AS col0
----
-7349

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9020
SELECT - 41 * - 56 * 94 * - CAST( + + 41 AS SIGNED ) AS col2
----
-8848784

skipif mysql # not compatible
query I rowsort label-9020
SELECT - 41 * - 56 * 94 * - CAST ( + + 41 AS INTEGER ) AS col2
----
-8848784

query II rowsort
SELECT + - 99 AS col1, + 56 + + 36
----
-99
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9022
SELECT DISTINCT + + CAST( 86 AS SIGNED )
----
86

skipif mysql # not compatible
query I rowsort label-9022
SELECT DISTINCT + + CAST ( 86 AS INTEGER )
----
86

query II rowsort
SELECT - 20, 15 - - 92 + 50 col0
----
-20
157

query I rowsort
SELECT + ( + + 15 )
----
15

query I rowsort
SELECT ALL 22 * - 29
----
-638

query I rowsort
SELECT ALL 86 * - 76 * + 5 AS col1
----
-32680

query I rowsort
SELECT - COALESCE ( + - 15, - 36 )
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-9028
SELECT DISTINCT MAX( ( + 63 ) )
----
63

skipif mysql # not compatible
query I rowsort label-9028
SELECT DISTINCT MAX ( ( + 63 ) )
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-9029
SELECT COUNT( ALL + - 28 )
----
1

skipif mysql # not compatible
query I rowsort label-9029
SELECT COUNT ( ALL + - 28 )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9030
SELECT + ( + 79 ) DIV - 85
----
0

skipif mysql # not compatible
query I rowsort label-9030
SELECT + ( + 79 ) / - 85
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9031
SELECT ALL COALESCE ( + 15, - SUM( DISTINCT + 26 ) )
----
15

skipif mysql # not compatible
query I rowsort label-9031
SELECT ALL COALESCE ( + 15, - SUM ( DISTINCT + 26 ) )
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-9032
SELECT + COUNT( * ) - - 34 AS col2
----
35

skipif mysql # not compatible
query I rowsort label-9032
SELECT + COUNT ( * ) - - 34 AS col2
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-9033
SELECT MIN( ALL - 90 ) AS col1
----
-90

skipif mysql # not compatible
query I rowsort label-9033
SELECT MIN ( ALL - 90 ) AS col1
----
-90

query I rowsort
SELECT 11 * + 96 AS col0
----
1056

query I rowsort
SELECT ALL 72 * - + 93 AS col1
----
-6696

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9036
SELECT 92 / - CAST( NULL AS SIGNED ) / 61 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9036
SELECT 92 / - CAST ( NULL AS INTEGER ) / 61 AS col1
----
NULL

query I rowsort
SELECT 55 - + 35 * - - 61 * 97 AS col2
----
-207040

query I rowsort
SELECT - 0 * + 56 AS col0
----
0

query I rowsort
SELECT 86 + + + 16 * - 45
----
-634

query I rowsort
SELECT ALL + - 48 + + 95 * - 32 AS col1
----
-3088

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9041
SELECT DISTINCT + + CAST( NULL AS SIGNED ) + - 45
----
NULL

skipif mysql # not compatible
query I rowsort label-9041
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) + - 45
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9042
SELECT DISTINCT + ( - 72 ) + - 26 * COUNT( * )
----
-98

skipif mysql # not compatible
query I rowsort label-9042
SELECT DISTINCT + ( - 72 ) + - 26 * COUNT ( * )
----
-98

query I rowsort
SELECT DISTINCT + 72 + + 56 + - 1 - 25 AS col0
----
102

onlyif mysql # aggregate syntax: 
query I rowsort label-9044
SELECT - 72 * COUNT( ALL - + 47 ) AS col1
----
-72

skipif mysql # not compatible
query I rowsort label-9044
SELECT - 72 * COUNT ( ALL - + 47 ) AS col1
----
-72

query I rowsort
SELECT + - 35 col0
----
-35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9046
SELECT 84 * + + MAX( - 14 ) + + - 33 - - 80 + + CAST( - CAST( - - 98 AS SIGNED ) AS SIGNED )
----
-1227

skipif mysql # not compatible
query I rowsort label-9046
SELECT 84 * + + MAX ( - 14 ) + + - 33 - - 80 + + CAST ( - CAST ( - - 98 AS INTEGER ) AS INTEGER )
----
-1227

onlyif mysql # aggregate syntax: 
query I rowsort label-9047
SELECT + 85 * + CASE + 25 WHEN - COUNT( * ) THEN NULL WHEN 54 THEN + SUM( - 96 ) END - + 45 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9047
SELECT + 85 * + CASE + 25 WHEN - COUNT ( * ) THEN NULL WHEN 54 THEN + SUM ( - 96 ) END - + 45 AS col0
----
NULL

query I rowsort
SELECT DISTINCT - + 91 col2
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-9049
SELECT ALL - NULLIF ( + ( + 21 ), + MIN( ALL - 5 ) - - + 91 ) AS col2
----
-21

skipif mysql # not compatible
query I rowsort label-9049
SELECT ALL - NULLIF ( + ( + 21 ), + MIN ( ALL - 5 ) - - + 91 ) AS col2
----
-21

onlyif mysql # aggregate syntax: 
query II rowsort label-9050
SELECT DISTINCT - 19 - + - COUNT( * ) + 81, 88 AS col2
----
63
88

skipif mysql # not compatible
query II rowsort label-9050
SELECT DISTINCT - 19 - + - COUNT ( * ) + 81, 88 AS col2
----
63
88

query I rowsort
SELECT ALL - ( + 63 ) AS col2
----
-63

query II rowsort
SELECT 60 + - 24 - + ( + 8 ) + 95, 64 AS col0
----
123
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9053
SELECT + COUNT( * ) * + ( - SUM( DISTINCT - + 43 ) ) - - + 46 - + CAST( - COALESCE ( - COUNT( * ), + 94, - COUNT( * ) ) AS SIGNED ) + + COALESCE ( - NULLIF ( + + ( + 33 ), + 97 - + + 17 ), + 95, + NULLIF ( + 53, 41 * + CASE 83 WHEN 33 * NULLIF ( + + COUNT( * ), + - 48 * 89 * - 32 * - 18 * - - 30 + - 55 ) + MIN( + 44 + 5 * - 67 ) THEN NULL WHEN - 61 THEN NULL ELSE - 84 * 70 + - COALESCE ( 34 + 26, - 26 ) END ) * - 27 ) + 96 * 59 * ( 29 * ( ( - 60 ) * + 13 ) ) AS col1
----
-128119625

skipif mysql # not compatible
query I rowsort label-9053
SELECT + COUNT ( * ) * + ( - SUM ( DISTINCT - + 43 ) ) - - + 46 - + CAST ( - COALESCE ( - COUNT ( * ), + 94, - COUNT ( * ) ) AS INTEGER ) + + COALESCE ( - NULLIF ( + + ( + 33 ), + 97 - + + 17 ), + 95, + NULLIF ( + 53, 41 * + CASE 83 WHEN 33 * NULLIF ( + + COUNT ( * ), + - 48 * 89 * - 32 * - 18 * - - 30 + - 55 ) + MIN ( + 44 + 5 * - 67 ) THEN NULL WHEN - 61 THEN NULL ELSE - 84 * 70 + - COALESCE ( 34 + 26, - 26 ) END ) * - 27 ) + 96 * 59 * ( 29 * ( ( - 60 ) * + 13 ) ) AS col1
----
-128119625

onlyif mysql # aggregate syntax: 
query I rowsort label-9054
SELECT 67 * - + COUNT( * )
----
-67

skipif mysql # not compatible
query I rowsort label-9054
SELECT 67 * - + COUNT ( * )
----
-67

query I rowsort
SELECT 5 * ( + 82 ) * - 92 + + + 21 AS col2
----
-37699

onlyif mysql # DIV for integer division: 
query I rowsort label-9056
SELECT ALL 38 DIV - 57 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9056
SELECT ALL 38 / - 57 AS col0
----
0

query I rowsort
SELECT + 63 * - 37 + + 5 * + - 82 + + 13
----
-2728

onlyif mysql # aggregate syntax: 
query I rowsort label-9058
SELECT ALL NULLIF ( COUNT( * ), - COUNT( * ) / - + 65 + - - AVG ( ALL - 50 ) ) * + - 77 AS col1
----
-77

skipif mysql # not compatible
query I rowsort label-9058
SELECT ALL NULLIF ( COUNT ( * ), - COUNT ( * ) / - + 65 + - - AVG ( ALL - 50 ) ) * + - 77 AS col1
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-9059
SELECT 82 + ( COUNT( * ) )
----
83

skipif mysql # not compatible
query I rowsort label-9059
SELECT 82 + ( COUNT ( * ) )
----
83

query II rowsort
SELECT - 54, - 96 AS col0
----
-54
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-9061
SELECT 92 + CASE - - 94 WHEN + + 49 + - 17 * - + 75 * - - 52 THEN + + 86 * - 20 * + - 61 + + 65 + + - COUNT( * ) WHEN 95 THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9061
SELECT 92 + CASE - - 94 WHEN + + 49 + - 17 * - + 75 * - - 52 THEN + + 86 * - 20 * + - 61 + + 65 + + - COUNT ( * ) WHEN 95 THEN NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9062
SELECT 95 * - 8 * - 18 AS col0, 51 * - + MIN( - 11 )
----
13680
561

skipif mysql # not compatible
query II rowsort label-9062
SELECT 95 * - 8 * - 18 AS col0, 51 * - + MIN ( - 11 )
----
13680
561

query I rowsort
SELECT 30 + 46
----
76

query I rowsort
SELECT 37 * - 88
----
-3256

query I rowsort
SELECT ALL NULLIF ( ( - 1 ), - + 92 / - 33 ) + + + 42 * - + 80 AS col2
----
-3361

query I rowsort
SELECT ALL 90 + 24 + 94 AS col2
----
208

query I rowsort
SELECT ALL + ( - + 12 )
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-9068
SELECT ALL + + COUNT( * ) + 87
----
88

skipif mysql # not compatible
query I rowsort label-9068
SELECT ALL + + COUNT ( * ) + 87
----
88

onlyif mysql # DIV for integer division: 
query I rowsort label-9069
SELECT 14 + 89 DIV - + 83
----
13

skipif mysql # not compatible
query I rowsort label-9069
SELECT 14 + 89 / - + 83
----
13

onlyif mysql # DIV for integer division: 
query I rowsort label-9070
SELECT 3 + 56 DIV - + 1 col2
----
-53

skipif mysql # not compatible
query I rowsort label-9070
SELECT 3 + 56 / - + 1 col2
----
-53

onlyif mysql # DIV for integer division: 
query I rowsort label-9071
SELECT 19 DIV - ( - + 49 )
----
0

skipif mysql # not compatible
query I rowsort label-9071
SELECT 19 / - ( - + 49 )
----
0

query I rowsort
SELECT - 14 * + 73 AS col2
----
-1022

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9073
SELECT - 33 DIV 77 * COUNT( + 36 ) + - 69 AS col2
----
-69

skipif mysql # not compatible
query I rowsort label-9073
SELECT - 33 / 77 * COUNT ( + 36 ) + - 69 AS col2
----
-69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9074
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + 55 * ( - - COUNT( * ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9074
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + 55 * ( - - COUNT ( * ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9075
SELECT ALL - + ( + COUNT( ALL - 66 ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-9075
SELECT ALL - + ( + COUNT ( ALL - 66 ) ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9076
SELECT + MAX( - 32 ) * - + 91 * - ( + 65 ) + + 75 AS col2
----
-189205

skipif mysql # not compatible
query I rowsort label-9076
SELECT + MAX ( - 32 ) * - + 91 * - ( + 65 ) + + 75 AS col2
----
-189205

onlyif mysql # aggregate syntax: 
query I rowsort label-9077
SELECT SUM( DISTINCT + 94 ) AS col2
----
94

skipif mysql # not compatible
query I rowsort label-9077
SELECT SUM ( DISTINCT + 94 ) AS col2
----
94

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9078
SELECT 96 + + + 86 - + 32 * + 56 - - COALESCE ( + + 55, - 90, COUNT( * ) - 1 + + - COUNT( * ) + - 74 * + 2 * + 72 DIV + COUNT( * ) ) + + 90 AS col1
----
-1465

skipif mysql # not compatible
query I rowsort label-9078
SELECT 96 + + + 86 - + 32 * + 56 - - COALESCE ( + + 55, - 90, COUNT ( * ) - 1 + + - COUNT ( * ) + - 74 * + 2 * + 72 / + COUNT ( * ) ) + + 90 AS col1
----
-1465

onlyif mysql # aggregate syntax: 
query I rowsort label-9079
SELECT 67 * + ( 51 ) * - 4 - + + 31 * + NULLIF ( 79, NULLIF ( + COUNT( * ), - - 76 ) )
----
-16117

skipif mysql # not compatible
query I rowsort label-9079
SELECT 67 * + ( 51 ) * - 4 - + + 31 * + NULLIF ( 79, NULLIF ( + COUNT ( * ), - - 76 ) )
----
-16117

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9080
SELECT - 59 * + 46 * - + ( + 45 ) + ( - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9080
SELECT - 59 * + 46 * - + ( + 45 ) + ( - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9081
SELECT ALL - ( + CAST( - - 90 AS SIGNED ) )
----
-90

skipif mysql # not compatible
query I rowsort label-9081
SELECT ALL - ( + CAST ( - - 90 AS INTEGER ) )
----
-90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9082
SELECT DISTINCT - CAST( ( - - 5 ) AS SIGNED ) AS col0
----
-5

skipif mysql # not compatible
query I rowsort label-9082
SELECT DISTINCT - CAST ( ( - - 5 ) AS INTEGER ) AS col0
----
-5

query I rowsort
SELECT ALL - 70 * + 58
----
-4060

query I rowsort
SELECT - 73 * + 45 * + ( 82 )
----
-269370

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9085
SELECT ALL + COUNT( * ) AS col1, - 48 DIV + - 18
----
1
2

skipif mysql # not compatible
query II rowsort label-9085
SELECT ALL + COUNT ( * ) AS col1, - 48 / + - 18
----
1
2

query II rowsort
SELECT 48 AS col1, NULLIF ( + 20, + + 48 + + + 80 + - 86 / 70 * - 10 / - 8 ) AS col2
----
48
20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9087
SELECT - NULLIF ( - 59, - - 72 ) / - 69 * + CAST( NULL AS SIGNED ) - + + 71 + - 22 + 59 + - COUNT( * ) * - + ( 23 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9087
SELECT - NULLIF ( - 59, - - 72 ) / - 69 * + CAST ( NULL AS INTEGER ) - + + 71 + - 22 + 59 + - COUNT ( * ) * - + ( 23 ) AS col0
----
NULL

query I rowsort
SELECT + 43 * + 24
----
1032

onlyif mysql # aggregate syntax: 
query I rowsort label-9089
SELECT + 61 + 83 * - 28 * - - NULLIF ( + - COALESCE ( - + 35, COUNT( - - ( 49 ) ) ), - - 64 ) * 15 - + 80
----
-1220119

skipif mysql # not compatible
query I rowsort label-9089
SELECT + 61 + 83 * - 28 * - - NULLIF ( + - COALESCE ( - + 35, COUNT ( - - ( 49 ) ) ), - - 64 ) * 15 - + 80
----
-1220119

query I rowsort
SELECT + 19 * - NULLIF ( - + 39, + - 61 )
----
741

query I rowsort
SELECT ALL - 80 + - 82 * + 58 * + 9
----
-42884

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9092
SELECT DISTINCT CASE 91 WHEN - + COUNT( * ) THEN 0 WHEN - ( - 27 ) THEN NULL WHEN - + NULLIF ( + 32, + 22 * CAST( NULL AS SIGNED ) ) THEN NULL ELSE NULL END / MIN( - + 17 ) * - - 44
----
NULL

skipif mysql # not compatible
query I rowsort label-9092
SELECT DISTINCT CASE 91 WHEN - + COUNT ( * ) THEN 0 WHEN - ( - 27 ) THEN NULL WHEN - + NULLIF ( + 32, + 22 * CAST ( NULL AS INTEGER ) ) THEN NULL ELSE NULL END / MIN ( - + 17 ) * - - 44
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9093
SELECT - 7 - + + 83 DIV + 88 col0
----
-7

skipif mysql # not compatible
query I rowsort label-9093
SELECT - 7 - + + 83 / + 88 col0
----
-7

query I rowsort
SELECT + + 10 - + 37
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-9095
SELECT ALL - NULLIF ( - 30, - 77 ) + COUNT( ALL 95 ) + + 26 AS col2
----
57

skipif mysql # not compatible
query I rowsort label-9095
SELECT ALL - NULLIF ( - 30, - 77 ) + COUNT ( ALL 95 ) + + 26 AS col2
----
57

onlyif mysql # DIV for integer division: 
query I rowsort label-9096
SELECT DISTINCT + 83 - - 32 DIV + 58
----
83

skipif mysql # not compatible
query I rowsort label-9096
SELECT DISTINCT + 83 - - 32 / + 58
----
83

onlyif mysql # aggregate syntax: 
query II rowsort label-9097
SELECT ( - 26 ) AS col0, - SUM( ( 23 ) )
----
-26
-23

skipif mysql # not compatible
query II rowsort label-9097
SELECT ( - 26 ) AS col0, - SUM ( ( 23 ) )
----
-26
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-9098
SELECT - - MAX( - 5 ) col0
----
-5

skipif mysql # not compatible
query I rowsort label-9098
SELECT - - MAX ( - 5 ) col0
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-9099
SELECT ALL - NULLIF ( + COUNT( * ), - 19 )
----
-1

skipif mysql # not compatible
query I rowsort label-9099
SELECT ALL - NULLIF ( + COUNT ( * ), - 19 )
----
-1

query I rowsort
SELECT - 75 + COALESCE ( + + 60, 57 )
----
-15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9101
SELECT + 45 * + COUNT( * ) DIV 84 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9101
SELECT + 45 * + COUNT ( * ) / 84 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9102
SELECT - COUNT( * ) col0, SUM( DISTINCT - - 63 ) / - + COUNT( * ) + - CAST( NULL AS SIGNED ) - - + COUNT( * ) * MAX( + - 59 ) + - 15 AS col2
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-9102
SELECT - COUNT ( * ) col0, SUM ( DISTINCT - - 63 ) / - + COUNT ( * ) + - CAST ( NULL AS INTEGER ) - - + COUNT ( * ) * MAX ( + - 59 ) + - 15 AS col2
----
-1
NULL

query II rowsort
SELECT - 15, 98 + + 49 AS col1
----
-15
147

onlyif mysql # aggregate syntax: 
query I rowsort label-9104
SELECT + + 84 * + COUNT( * ) + + + 28
----
112

skipif mysql # not compatible
query I rowsort label-9104
SELECT + + 84 * + COUNT ( * ) + + + 28
----
112

onlyif mysql # aggregate syntax: 
query I rowsort label-9105
SELECT ALL - + ( - 12 ) * - - 57 * COUNT( * ) + + + 60
----
744

skipif mysql # not compatible
query I rowsort label-9105
SELECT ALL - + ( - 12 ) * - - 57 * COUNT ( * ) + + + 60
----
744

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9106
SELECT DISTINCT + CASE - COALESCE ( + + 98, + + 69 + + NULLIF ( - - 84, - 33 * - - 86 ) ) WHEN - - COUNT( * ) THEN ( + ( + COUNT( * ) ) ) WHEN ( 78 ) THEN NULL WHEN + NULLIF ( + 82, + - 45 - - NULLIF ( - 44, - - NULLIF ( - - 4, - COUNT( * ) ) - - + 89 * + + AVG ( - + 91 ) * + - MAX( - + 49 ) * + - 64 + - COUNT( ALL + 60 ) + 72 + 64 * + 65 / + 23 + 18 ) ) * - CAST( NULL AS SIGNED ) THEN - 65 * - 5 + - 91 ELSE + 56 END AS col2
----
56

skipif mysql # not compatible
query I rowsort label-9106
SELECT DISTINCT + CASE - COALESCE ( + + 98, + + 69 + + NULLIF ( - - 84, - 33 * - - 86 ) ) WHEN - - COUNT ( * ) THEN ( + ( + COUNT ( * ) ) ) WHEN ( 78 ) THEN NULL WHEN + NULLIF ( + 82, + - 45 - - NULLIF ( - 44, - - NULLIF ( - - 4, - COUNT ( * ) ) - - + 89 * + + AVG ( - + 91 ) * + - MAX ( - + 49 ) * + - 64 + - COUNT ( ALL + 60 ) + 72 + 64 * + 65 / + 23 + 18 ) ) * - CAST ( NULL AS INTEGER ) THEN - 65 * - 5 + - 91 ELSE + 56 END AS col2
----
56

onlyif mysql # aggregate syntax: 
query II rowsort label-9107
SELECT + 4 AS col1, MIN( ALL ( - + 15 ) )
----
4
-15

skipif mysql # not compatible
query II rowsort label-9107
SELECT + 4 AS col1, MIN ( ALL ( - + 15 ) )
----
4
-15

onlyif mysql # aggregate syntax: 
query III rowsort label-9108
SELECT - 38 AS col0, 22, - COUNT( + + 60 ) AS col0
----
-38
22
-1

skipif mysql # not compatible
query III rowsort label-9108
SELECT - 38 AS col0, 22, - COUNT ( + + 60 ) AS col0
----
-38
22
-1

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9109
SELECT DISTINCT + CAST( NULL AS DECIMAL ) col2, + 70
----
NULL
70

skipif mysql # not compatible
query II rowsort label-9109
SELECT DISTINCT + CAST ( NULL AS REAL ) col2, + 70
----
NULL
70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9110
SELECT - 14 / - 75 * - 40 * - - 24 + 35 - - - CAST( NULL AS SIGNED ) AS col1, + COALESCE ( - COUNT( * ), + 56 * + - COALESCE ( + CASE - - ( - 65 ) WHEN COUNT( * ) + - COUNT( * ) THEN 10 * MIN( 99 ) * + + 29 * 25 END, CAST( NULL AS SIGNED ) ) * + 86, + 94 )
----
NULL
-1

skipif mysql # not compatible
query II rowsort label-9110
SELECT - 14 / - 75 * - 40 * - - 24 + 35 - - - CAST ( NULL AS INTEGER ) AS col1, + COALESCE ( - COUNT ( * ), + 56 * + - COALESCE ( + CASE - - ( - 65 ) WHEN COUNT ( * ) + - COUNT ( * ) THEN 10 * MIN ( 99 ) * + + 29 * 25 END, CAST ( NULL AS INTEGER ) ) * + 86, + 94 )
----
NULL
-1

query I rowsort
SELECT + + 32 + - 51
----
-19

onlyif mysql # DIV for integer division: 
query I rowsort label-9112
SELECT + + COALESCE ( + 29, 95 + COALESCE ( 5, 20 * 9 DIV + 34 ) + + 88 + + 67 ) AS col2
----
29

skipif mysql # not compatible
query I rowsort label-9112
SELECT + + COALESCE ( + 29, 95 + COALESCE ( 5, 20 * 9 / + 34 ) + + 88 + + 67 ) AS col2
----
29

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9113
SELECT + SUM( DISTINCT + 8 ) DIV - 1 - - 97 AS col2
----
89

skipif mysql # not compatible
query I rowsort label-9113
SELECT + SUM ( DISTINCT + 8 ) / - 1 - - 97 AS col2
----
89

onlyif mysql # aggregate syntax: 
query II rowsort label-9114
SELECT + - 57 + 27 AS col2, - COUNT( * )
----
-30
-1

skipif mysql # not compatible
query II rowsort label-9114
SELECT + - 57 + 27 AS col2, - COUNT ( * )
----
-30
-1

query I rowsort
SELECT - ( + - 26 ) * - + 1
----
-26

query II rowsort
SELECT ALL 63 * + 10 AS col2, 5 AS col2
----
630
5

query I rowsort
SELECT ( ( - 57 ) )
----
-57

query I rowsort
SELECT + 27 * + - 13 AS col2
----
-351

query I rowsort
SELECT ( + - 89 ) AS col0
----
-89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9120
SELECT + ( + 39 ) / + CAST( NULL AS SIGNED ) + - 35 * 25 + - ( 71 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9120
SELECT + ( + 39 ) / + CAST ( NULL AS INTEGER ) + - 35 * 25 + - ( 71 ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9121
SELECT ALL 92 * - 42 + - COUNT( * ) * - 82 + CAST( CASE + - 34 WHEN + + 68 THEN - MAX( 21 ) + - 31 WHEN - + 66 + + AVG ( 52 ) THEN 49 END AS SIGNED ) + COUNT( * ) + 74 / - 21
----
NULL

skipif mysql # not compatible
query I rowsort label-9121
SELECT ALL 92 * - 42 + - COUNT ( * ) * - 82 + CAST ( CASE + - 34 WHEN + + 68 THEN - MAX ( 21 ) + - 31 WHEN - + 66 + + AVG ( 52 ) THEN 49 END AS INTEGER ) + COUNT ( * ) + 74 / - 21
----
NULL

query I rowsort
SELECT ALL + CASE 64 WHEN - - 51 * - 62 THEN - - 39 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9123
SELECT ALL + 84 * 95 + 11 - - - 61 * 41 * + COUNT( * ) * + - 93 * + + 37 col1
----
8613932

skipif mysql # not compatible
query I rowsort label-9123
SELECT ALL + 84 * 95 + 11 - - - 61 * 41 * + COUNT ( * ) * + - 93 * + + 37 col1
----
8613932

onlyif mysql # aggregate syntax: 
query II rowsort label-9124
SELECT + MIN( + 30 ) + - - 89 * + ( - + 57 ), + 96 * - 50 AS col2
----
-5043
-4800

skipif mysql # not compatible
query II rowsort label-9124
SELECT + MIN ( + 30 ) + - - 89 * + ( - + 57 ), + 96 * - 50 AS col2
----
-5043
-4800

query I rowsort
SELECT ALL 36 * + 96 + - 56
----
3400

onlyif mysql # aggregate syntax: 
query I rowsort label-9126
SELECT COALESCE ( + COUNT( * ), - 33 )
----
1

skipif mysql # not compatible
query I rowsort label-9126
SELECT COALESCE ( + COUNT ( * ), - 33 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9127
SELECT + 54 * - - 54 + + - MIN( - + 75 ) + 15 * - 90 AS col0
----
1641

skipif mysql # not compatible
query I rowsort label-9127
SELECT + 54 * - - 54 + + - MIN ( - + 75 ) + 15 * - 90 AS col0
----
1641

onlyif mysql # aggregate syntax: 
query I rowsort label-9128
SELECT COALESCE ( + - 5, - + COUNT( * ) )
----
-5

skipif mysql # not compatible
query I rowsort label-9128
SELECT COALESCE ( + - 5, - + COUNT ( * ) )
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-9129
SELECT COALESCE ( 69, - 46 ) * - COUNT( * ) + - 65 + MIN( 84 ) AS col0
----
-50

skipif mysql # not compatible
query I rowsort label-9129
SELECT COALESCE ( 69, - 46 ) * - COUNT ( * ) + - 65 + MIN ( 84 ) AS col0
----
-50

query I rowsort
SELECT - 79 * + - 64 - - 65
----
5121

onlyif mysql # DIV for integer division: 
query I rowsort label-9131
SELECT ALL - 91 * 50 * 60 DIV ( + - 60 ) + - - 94
----
4644

skipif mysql # not compatible
query I rowsort label-9131
SELECT ALL - 91 * 50 * 60 / ( + - 60 ) + - - 94
----
4644

onlyif mysql # DIV for integer division: 
query I rowsort label-9132
SELECT - 20 + 39 DIV + + 58
----
-20

skipif mysql # not compatible
query I rowsort label-9132
SELECT - 20 + 39 / + + 58
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-9133
SELECT - 31 * 65 * + ( + COUNT( * ) ) AS col0
----
-2015

skipif mysql # not compatible
query I rowsort label-9133
SELECT - 31 * 65 * + ( + COUNT ( * ) ) AS col0
----
-2015

onlyif mysql # aggregate syntax: 
query I rowsort label-9134
SELECT ALL + COUNT( * ) * 76
----
76

skipif mysql # not compatible
query I rowsort label-9134
SELECT ALL + COUNT ( * ) * 76
----
76

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9135
SELECT DISTINCT + SUM( - 49 ) * - 47 + - + 97 + 73 DIV - - 7
----
2216

skipif mysql # not compatible
query I rowsort label-9135
SELECT DISTINCT + SUM ( - 49 ) * - 47 + - + 97 + 73 / - - 7
----
2216

query I rowsort
SELECT ALL ( 10 ) AS col1
----
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9137
SELECT ALL + CAST( NULL AS SIGNED ) * 29 / + + 91
----
NULL

skipif mysql # not compatible
query I rowsort label-9137
SELECT ALL + CAST ( NULL AS INTEGER ) * 29 / + + 91
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9138
SELECT - 7 + - - COUNT( * ) + + + 16 * + 29
----
458

skipif mysql # not compatible
query I rowsort label-9138
SELECT - 7 + - - COUNT ( * ) + + + 16 * + 29
----
458

onlyif mysql # aggregate syntax: 
query I rowsort label-9139
SELECT - + 37 + + + 15 + - CASE - - 73 WHEN - MIN( + ( COALESCE ( + 99, 93 ) ) ) / - - 31 THEN + 45 + - 4 + + + ( COUNT( * ) ) + + ( 14 ) + 96 + + 27 + - 64 - 8 / 23 * + 93 + COUNT( * ) + + 70 + - - 25 + - 43 * - 13 / - + 58 * - COALESCE ( 14, - + 15 + - 38, 31 / - AVG ( ALL + 77 ) ) * 22 * 18 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9139
SELECT - + 37 + + + 15 + - CASE - - 73 WHEN - MIN ( + ( COALESCE ( + 99, 93 ) ) ) / - - 31 THEN + 45 + - 4 + + + ( COUNT ( * ) ) + + ( 14 ) + 96 + + 27 + - 64 - 8 / 23 * + 93 + COUNT ( * ) + + 70 + - - 25 + - 43 * - 13 / - + 58 * - COALESCE ( 14, - + 15 + - 38, 31 / - AVG ( ALL + 77 ) ) * 22 * 18 END AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9140
SELECT - + 73 DIV - 27 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-9140
SELECT - + 73 / - 27 AS col0
----
2

query I rowsort
SELECT - - ( - CASE - 51 WHEN + 16 * 43 + + 80 * 56 THEN NULL ELSE - 33 END ) + - 26 AS col1
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-9142
SELECT + - 99 + COUNT( * ) + + 78 + 75
----
55

skipif mysql # not compatible
query I rowsort label-9142
SELECT + - 99 + COUNT ( * ) + + 78 + 75
----
55

query I rowsort
SELECT ALL COALESCE ( 18, 8 ) AS col1
----
18

onlyif mysql # DIV for integer division: 
query I rowsort label-9144
SELECT - 96 DIV 15
----
-6

skipif mysql # not compatible
query I rowsort label-9144
SELECT - 96 / 15
----
-6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9145
SELECT ALL + 2 DIV + COUNT( * ) col0
----
2

skipif mysql # not compatible
query I rowsort label-9145
SELECT ALL + 2 / + COUNT ( * ) col0
----
2

query I rowsort
SELECT - + 21 + - - 49 col2
----
28

query I rowsort
SELECT - - 47 + - 65
----
-18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9148
SELECT - + CAST( NULL AS SIGNED ) + + COUNT( * ) AS col0, + 13 AS col2
----
NULL
13

skipif mysql # not compatible
query II rowsort label-9148
SELECT - + CAST ( NULL AS INTEGER ) + + COUNT ( * ) AS col0, + 13 AS col2
----
NULL
13

query I rowsort
SELECT + + 72 * - 75
----
-5400

onlyif mysql # DIV for integer division: 
query I rowsort label-9150
SELECT ALL + 66 * + - 4 DIV 34 DIV - 87 + - - 16 + + 49
----
65

skipif mysql # not compatible
query I rowsort label-9150
SELECT ALL + 66 * + - 4 / 34 / - 87 + - - 16 + + 49
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-9151
SELECT + 54 + - COUNT( * ) + - MIN( ALL 10 ) * + - 57 * + COALESCE ( - + 5, - 76 ) * 8 * - 30 * - 83 * + COUNT( - + 27 ) AS col2
----
-56771947

skipif mysql # not compatible
query I rowsort label-9151
SELECT + 54 + - COUNT ( * ) + - MIN ( ALL 10 ) * + - 57 * + COALESCE ( - + 5, - 76 ) * 8 * - 30 * - 83 * + COUNT ( - + 27 ) AS col2
----
-56771947

onlyif mysql # aggregate syntax: 
query I rowsort label-9152
SELECT ALL - COUNT( * ) * 60 * COUNT( * ) col1
----
-60

skipif mysql # not compatible
query I rowsort label-9152
SELECT ALL - COUNT ( * ) * 60 * COUNT ( * ) col1
----
-60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9153
SELECT - 12 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9153
SELECT - 12 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9154
SELECT - + 21 DIV 21 * - 13 + + - 26 + 16
----
3

skipif mysql # not compatible
query I rowsort label-9154
SELECT - + 21 / 21 * - 13 + + - 26 + 16
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9155
SELECT - NULLIF ( - - ( SUM( ALL - - 93 ) ), COUNT( * ) * 55 ) + 66 col1
----
-27

skipif mysql # not compatible
query I rowsort label-9155
SELECT - NULLIF ( - - ( SUM ( ALL - - 93 ) ), COUNT ( * ) * 55 ) + 66 col1
----
-27

query I rowsort
SELECT 86 + + 78
----
164

query I rowsort
SELECT ALL - 42 + - 8 col2
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-9158
SELECT ALL CASE - 81 WHEN + - 60 * - + COUNT( * ) + + + 38 THEN - COUNT( + - 18 ) + - 74 WHEN + 49 THEN NULL ELSE - 50 + + COUNT( * ) END + + + 44 + 23
----
18

skipif mysql # not compatible
query I rowsort label-9158
SELECT ALL CASE - 81 WHEN + - 60 * - + COUNT ( * ) + + + 38 THEN - COUNT ( + - 18 ) + - 74 WHEN + 49 THEN NULL ELSE - 50 + + COUNT ( * ) END + + + 44 + 23
----
18

query I rowsort
SELECT + 51 * + CASE + 78 WHEN - + 29 THEN - - 63 ELSE NULL END + - 81 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9160
SELECT + 28, - COUNT( ALL 96 ) AS col1
----
28
-1

skipif mysql # not compatible
query II rowsort label-9160
SELECT + 28, - COUNT ( ALL 96 ) AS col1
----
28
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-9161
SELECT + 31, - SUM( + 59 ) * 49 * - 97 AS col0
----
31
280427

skipif mysql # not compatible
query II rowsort label-9161
SELECT + 31, - SUM ( + 59 ) * 49 * - 97 AS col0
----
31
280427

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9162
SELECT ALL MIN( DISTINCT - 52 ) + 3 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9162
SELECT ALL MIN ( DISTINCT - 52 ) + 3 + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9163
SELECT CAST( NULL AS DECIMAL ) + + - 23 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9163
SELECT CAST ( NULL AS REAL ) + + - 23 col1
----
NULL

query I rowsort
SELECT 95 * 55
----
5225

onlyif mysql # aggregate syntax: 
query I rowsort label-9165
SELECT ALL 49 + 89 + + SUM( - + 90 )
----
48

skipif mysql # not compatible
query I rowsort label-9165
SELECT ALL 49 + 89 + + SUM ( - + 90 )
----
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9166
SELECT ALL COUNT( * ) DIV - CAST( + MIN( 44 ) AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-9166
SELECT ALL COUNT ( * ) / - CAST ( + MIN ( 44 ) AS INTEGER )
----
0

query I rowsort
SELECT ( + 24 ) * + COALESCE ( - - 37, - ( 4 ) - + 35, - - 76 * + + 76 )
----
888

onlyif mysql # aggregate syntax: 
query I rowsort label-9168
SELECT DISTINCT 55 - - ( - MAX( 55 ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9168
SELECT DISTINCT 55 - - ( - MAX ( 55 ) ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9169
SELECT ALL COUNT( * ) * + 91 AS col2
----
91

skipif mysql # not compatible
query I rowsort label-9169
SELECT ALL COUNT ( * ) * + 91 AS col2
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-9170
SELECT 46 * + - COUNT( * )
----
-46

skipif mysql # not compatible
query I rowsort label-9170
SELECT 46 * + - COUNT ( * )
----
-46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9171
SELECT + 44 - 32 + + 51 * CAST( + 17 AS SIGNED )
----
879

skipif mysql # not compatible
query I rowsort label-9171
SELECT + 44 - 32 + + 51 * CAST ( + 17 AS INTEGER )
----
879

query I rowsort
SELECT 9 + ( 38 ) AS col2
----
47

query I rowsort
SELECT - 67 * 13 AS col0
----
-871

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9174
SELECT - 99 AS col0, CAST( + - 3 AS SIGNED ) col0
----
-99
-3

skipif mysql # not compatible
query II rowsort label-9174
SELECT - 99 AS col0, CAST ( + - 3 AS INTEGER ) col0
----
-99
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9175
SELECT ALL - MIN( ALL 57 ) DIV 42 * + + 42
----
-42

skipif mysql # not compatible
query I rowsort label-9175
SELECT ALL - MIN ( ALL 57 ) / 42 * + + 42
----
-42

query I rowsort
SELECT DISTINCT + - 5 * - 20
----
100

query I rowsort
SELECT 14 * + 75 AS col0
----
1050

query I rowsort
SELECT - COALESCE ( - 36, + 79 - - 26, 18 )
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-9179
SELECT - 57 - 19 * - SUM( ALL + 29 ) + + 76 + 47 AS col0
----
617

skipif mysql # not compatible
query I rowsort label-9179
SELECT - 57 - 19 * - SUM ( ALL + 29 ) + + 76 + 47 AS col0
----
617

query I rowsort
SELECT ALL + 54 + + - 43 col1
----
11

onlyif mysql # DIV for integer division: 
query I rowsort label-9181
SELECT 96 DIV + + 46 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-9181
SELECT 96 / + + 46 AS col2
----
2

query I rowsort
SELECT ALL 10 + 14
----
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9183
SELECT + COUNT( * ) DIV + CAST( + 29 AS SIGNED ) + - 83, - 41 AS col0
----
-83
-41

skipif mysql # not compatible
query II rowsort label-9183
SELECT + COUNT ( * ) / + CAST ( + 29 AS INTEGER ) + - 83, - 41 AS col0
----
-83
-41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9184
SELECT 85 + CAST( NULL AS SIGNED ) * + 21
----
NULL

skipif mysql # not compatible
query I rowsort label-9184
SELECT 85 + CAST ( NULL AS INTEGER ) * + 21
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9185
SELECT + 21 * + ( 13 ) + + - ( - 49 ) + + 36 * - - COUNT( * ) AS col1
----
358

skipif mysql # not compatible
query I rowsort label-9185
SELECT + 21 * + ( 13 ) + + - ( - 49 ) + + 36 * - - COUNT ( * ) AS col1
----
358

onlyif mysql # aggregate syntax: 
query I rowsort label-9186
SELECT COUNT( * ) * - 90 AS col0
----
-90

skipif mysql # not compatible
query I rowsort label-9186
SELECT COUNT ( * ) * - 90 AS col0
----
-90

onlyif mysql # DIV for integer division: 
query I rowsort label-9187
SELECT - 71 DIV 63 DIV 44 + + NULLIF ( 11, - 98 ) AS col2
----
11

skipif mysql # not compatible
query I rowsort label-9187
SELECT - 71 / 63 / 44 + + NULLIF ( 11, - 98 ) AS col2
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-9188
SELECT ALL + 48 - + COUNT( * )
----
47

skipif mysql # not compatible
query I rowsort label-9188
SELECT ALL + 48 - + COUNT ( * )
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-9189
SELECT DISTINCT - SUM( DISTINCT 3 ) AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-9189
SELECT DISTINCT - SUM ( DISTINCT 3 ) AS col2
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-9190
SELECT DISTINCT 55 DIV + 42 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9190
SELECT DISTINCT 55 / + 42 AS col0
----
1

query I rowsort
SELECT 58 * - 1 + - 27
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-9192
SELECT 85 * + SUM( 34 ) + + - COUNT( * ) * + 26 * + COALESCE ( + 31, + 37 ) AS col1
----
2084

skipif mysql # not compatible
query I rowsort label-9192
SELECT 85 * + SUM ( 34 ) + + - COUNT ( * ) * + 26 * + COALESCE ( + 31, + 37 ) AS col1
----
2084

query I rowsort
SELECT 20 + ( + 84 ) AS col0
----
104

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9194
SELECT + COALESCE ( - - 0, - 23 * + COALESCE ( - COUNT( * ), + MIN( DISTINCT 49 ) ) * - 24, + 77 ) * + - CASE - + 85 WHEN + CAST( - COUNT( * ) AS SIGNED ) * 63 + + 75 + - + COUNT( * ) * 83 * + 66 THEN + 62 + - 83 ELSE + + 8 END - + 4 * + 84 * - 95 + - 18 col0
----
31902

skipif mysql # not compatible
query I rowsort label-9194
SELECT + COALESCE ( - - 0, - 23 * + COALESCE ( - COUNT ( * ), + MIN ( DISTINCT 49 ) ) * - 24, + 77 ) * + - CASE - + 85 WHEN + CAST ( - COUNT ( * ) AS INTEGER ) * 63 + + 75 + - + COUNT ( * ) * 83 * + 66 THEN + 62 + - 83 ELSE + + 8 END - + 4 * + 84 * - 95 + - 18 col0
----
31902

query I rowsort
SELECT - 42 + + - 73 AS col0
----
-115

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9196
SELECT MIN( + 0 ) DIV - + 71 * 88 + 11
----
11

skipif mysql # not compatible
query I rowsort label-9196
SELECT MIN ( + 0 ) / - + 71 * 88 + 11
----
11

query I rowsort
SELECT ( - ( + 40 ) ) * 93
----
-3720

query I rowsort
SELECT DISTINCT + ( + + 25 ) * - 53 AS col1
----
-1325

onlyif mysql # DIV for integer division: 
query I rowsort label-9199
SELECT DISTINCT - 24 DIV + + 36 * + - 10 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9199
SELECT DISTINCT - 24 / + + 36 * + - 10 AS col1
----
0

query I rowsort
SELECT ALL + 91 * + 38
----
3458

query I rowsort
SELECT DISTINCT - 32 * + - 73
----
2336

onlyif mysql # aggregate syntax: 
query I rowsort label-9202
SELECT + 91 + - - COUNT( * ) + + + MAX( - + 54 ) * - - MIN( ALL 0 ) * + 26 + - 79 * 93 AS col0
----
-7255

skipif mysql # not compatible
query I rowsort label-9202
SELECT + 91 + - - COUNT ( * ) + + + MAX ( - + 54 ) * - - MIN ( ALL 0 ) * + 26 + - 79 * 93 AS col0
----
-7255

query I rowsort
SELECT - 0 * - 99 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9204
SELECT ALL ( 91 ) + ( - + 2 ) DIV 36 * - 38 AS col2
----
91

skipif mysql # not compatible
query I rowsort label-9204
SELECT ALL ( 91 ) + ( - + 2 ) / 36 * - 38 AS col2
----
91

query I rowsort
SELECT 83 + 50 - + 28 * + + 63
----
-1631

onlyif mysql # aggregate syntax: 
query I rowsort label-9206
SELECT + 67 + + - SUM( + + 76 )
----
-9

skipif mysql # not compatible
query I rowsort label-9206
SELECT + 67 + + - SUM ( + + 76 )
----
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9207
SELECT - COALESCE ( + 66, - 47 * 11, + MAX( ALL + NULLIF ( - 14, - CAST( NULL AS SIGNED ) ) ) * - + 2 )
----
-66

skipif mysql # not compatible
query I rowsort label-9207
SELECT - COALESCE ( + 66, - 47 * 11, + MAX ( ALL + NULLIF ( - 14, - CAST ( NULL AS INTEGER ) ) ) * - + 2 )
----
-66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9208
SELECT ALL + + 15 + - + 3 * + + 54 * + + CASE WHEN 5 <= + 95 * SUM( ALL - ( 52 ) ) + + COUNT( * ) + CASE COUNT( * ) WHEN + 91 * + 82 + + - 93 + 57 + AVG ( 43 ) * - 10 * ( - 41 ) * - - 74 * 30 THEN NULL WHEN + 74 THEN NULL WHEN - COUNT( * ) * 95 - - CASE + 43 WHEN - + 28 - - + NULLIF ( 55, 11 / - - CAST( NULL AS SIGNED ) ) THEN - CAST( - 85 AS SIGNED ) + + COUNT( * ) * 17 ELSE 88 END + - 68 THEN 75 + CASE NULLIF ( + CASE + ( 12 ) WHEN + CASE + 26 WHEN - CASE - MAX( DISTINCT + 90 ) WHEN 46 + + 47 THEN COUNT( * ) END * ( - 57 ) THEN CAST( - 61 AS SIGNED ) WHEN 94 THEN NULL ELSE NULL END THEN NULL ELSE 21 + - 42 END, 21 * - 3 ) WHEN 44 THEN - COUNT( * ) WHEN + 72 THEN ( + 28 ) END * ( MAX( ALL CAST( NULL AS SIGNED ) ) - 90 ) END THEN + CASE ( + ( 81 ) ) WHEN 84 + CAST( NULL AS SIGNED ) THEN NULL WHEN - 19 THEN 49 ELSE NULL END WHEN NOT NULL NOT IN ( + 2 ) THEN - 12 END + 70
----
NULL

skipif mysql # not compatible
query I rowsort label-9208
SELECT ALL + + 15 + - + 3 * + + 54 * + + CASE WHEN 5 <= + 95 * SUM ( ALL - ( 52 ) ) + + COUNT ( * ) + CASE COUNT ( * ) WHEN + 91 * + 82 + + - 93 + 57 + AVG ( 43 ) * - 10 * ( - 41 ) * - - 74 * 30 THEN NULL WHEN + 74 THEN NULL WHEN - COUNT ( * ) * 95 - - CASE + 43 WHEN - + 28 - - + NULLIF ( 55, 11 / - - CAST ( NULL AS INTEGER ) ) THEN - CAST ( - 85 AS INTEGER ) + + COUNT ( * ) * 17 ELSE 88 END + - 68 THEN 75 + CASE NULLIF ( + CASE + ( 12 ) WHEN + CASE + 26 WHEN - CASE - MAX ( DISTINCT + 90 ) WHEN 46 + + 47 THEN COUNT ( * ) END * ( - 57 ) THEN CAST ( - 61 AS INTEGER ) WHEN 94 THEN NULL ELSE NULL END THEN NULL ELSE 21 + - 42 END, 21 * - 3 ) WHEN 44 THEN - COUNT ( * ) WHEN + 72 THEN ( + 28 ) END * ( MAX ( ALL CAST ( NULL AS INTEGER ) ) - 90 ) END THEN + CASE ( + ( 81 ) ) WHEN 84 + CAST ( NULL AS INTEGER ) THEN NULL WHEN - 19 THEN 49 ELSE NULL END WHEN NOT NULL NOT IN ( + 2 ) THEN - 12 END + 70
----
NULL

query I rowsort
SELECT + - 78 + - 44 AS col1
----
-122

query II rowsort
SELECT DISTINCT - 67 * + 2, 29 AS col0
----
-134
29

query I rowsort
SELECT DISTINCT 82 / + + CASE + + NULLIF ( - 2, + 84 ) WHEN + 83 THEN + - 52 END / - + 18
----
NULL

query I rowsort
SELECT - 74 + + 57
----
-17

query I rowsort
SELECT ALL 80 * - 96 AS col0
----
-7680

query I rowsort
SELECT + 86 * 43 col1
----
3698

onlyif mysql # aggregate syntax: 
query I rowsort label-9215
SELECT - 92 + 7 * - + 78 - 15 * CASE WHEN COUNT( DISTINCT - 18 ) IN ( - 96 * + 28 + + 66, + 26, 71 ) THEN - 67 * + + 28 * + 62 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9215
SELECT - 92 + 7 * - + 78 - 15 * CASE WHEN COUNT ( DISTINCT - 18 ) IN ( - 96 * + 28 + + 66, + 26, 71 ) THEN - 67 * + + 28 * + 62 ELSE NULL END
----
NULL

query I rowsort
SELECT - 68 + - 11 AS col2
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-9217
SELECT ALL + SUM( - 91 ) + 36 * ( - - 70 ) AS col1
----
2429

skipif mysql # not compatible
query I rowsort label-9217
SELECT ALL + SUM ( - 91 ) + 36 * ( - - 70 ) AS col1
----
2429

query I rowsort
SELECT - 44 + ( 8 ) + 51 col2
----
15

query I rowsort
SELECT - 56 * + 73 col1
----
-4088

query I rowsort
SELECT DISTINCT COALESCE ( 99, + 71 + + - 30 )
----
99

query I rowsort
SELECT ALL + ( - 91 ) AS col0
----
-91

query I rowsort
SELECT - 32 + - 17 AS col2
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-9223
SELECT - 91 * + - COUNT( * ) AS col1
----
91

skipif mysql # not compatible
query I rowsort label-9223
SELECT - 91 * + - COUNT ( * ) AS col1
----
91

query I rowsort
SELECT 53 * + - 70 + 74 + 88 + + - 92 * 68 col1
----
-9804

onlyif mysql # aggregate syntax: 
query II rowsort label-9225
SELECT ALL - 80 * - ( + SUM( + + 92 ) ) * 17, - 76 + + 12 AS col2
----
125120
-64

skipif mysql # not compatible
query II rowsort label-9225
SELECT ALL - 80 * - ( + SUM ( + + 92 ) ) * 17, - 76 + + 12 AS col2
----
125120
-64

onlyif mysql # DIV for integer division: 
query I rowsort label-9226
SELECT DISTINCT - 7 DIV 51
----
0

skipif mysql # not compatible
query I rowsort label-9226
SELECT DISTINCT - 7 / 51
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9227
SELECT - COUNT( * ) * - ( + 50 )
----
50

skipif mysql # not compatible
query I rowsort label-9227
SELECT - COUNT ( * ) * - ( + 50 )
----
50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9228
SELECT NULLIF ( CAST( - 84 AS SIGNED ), + COUNT( * ) + 45 )
----
-84

skipif mysql # not compatible
query I rowsort label-9228
SELECT NULLIF ( CAST ( - 84 AS INTEGER ), + COUNT ( * ) + 45 )
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-9229
SELECT NULLIF ( - MAX( - 82 ), + + 98 ) col2
----
82

skipif mysql # not compatible
query I rowsort label-9229
SELECT NULLIF ( - MAX ( - 82 ), + + 98 ) col2
----
82

query I rowsort
SELECT - 37 * - ( + 40 ) * - 58 AS col1
----
-85840

query I rowsort
SELECT ALL - COALESCE ( - 62, + 42 ) * - + 7 * + - 10
----
4340

query I rowsort
SELECT + 60 * + 80 * + + 68 + - 32 AS col2
----
326368

query I rowsort
SELECT ALL - - 63 * + 98
----
6174

query I rowsort
SELECT DISTINCT - - 13 * 23
----
299

query I rowsort
SELECT DISTINCT - 2 * 35 + - + 53
----
-123

query II rowsort
SELECT - 29, + 77 + + - 80 + - 65 AS col2
----
-29
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-9237
SELECT - 29 - - 37 + - 40 + 37 + - 46 - - - 35 - - COUNT( * ) * - ( + - 45 )
----
-31

skipif mysql # not compatible
query I rowsort label-9237
SELECT - 29 - - 37 + - 40 + 37 + - 46 - - - 35 - - COUNT ( * ) * - ( + - 45 )
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-9238
SELECT + ( COALESCE ( ( SUM( - - 14 ) ), 12 ) ) AS col1
----
14

skipif mysql # not compatible
query I rowsort label-9238
SELECT + ( COALESCE ( ( SUM ( - - 14 ) ), 12 ) ) AS col1
----
14

onlyif mysql # aggregate syntax: 
query II rowsort label-9239
SELECT - 42 + - 81 - - SUM( + + 76 ) * + + 48 AS col2, - 33 + + 98
----
3525
65

skipif mysql # not compatible
query II rowsort label-9239
SELECT - 42 + - 81 - - SUM ( + + 76 ) * + + 48 AS col2, - 33 + + 98
----
3525
65

query I rowsort
SELECT + - 84 * - - 98 col0
----
-8232

query I rowsort
SELECT - CASE - - 87 WHEN - + 32 * + - 20 THEN 98 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9242
SELECT ALL 4 + - 9 * - 15 * + 62 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9242
SELECT ALL 4 + - 9 * - 15 * + 62 * + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL - 29 + 48 col0
----
19

query I rowsort
SELECT + - ( + 73 ) * - 69 AS col0
----
5037

onlyif mysql # aggregate syntax: 
query II rowsort label-9245
SELECT ALL - 18 * + 65 * + + 38 AS col1, COUNT( * ) - + 12 AS col1
----
-44460
-11

skipif mysql # not compatible
query II rowsort label-9245
SELECT ALL - 18 * + 65 * + + 38 AS col1, COUNT ( * ) - + 12 AS col1
----
-44460
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-9246
SELECT + + COUNT( * ) - 16
----
-15

skipif mysql # not compatible
query I rowsort label-9246
SELECT + + COUNT ( * ) - 16
----
-15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9247
SELECT DISTINCT - ( + 16 ) * - CAST( 38 AS SIGNED ) - 76 + + - 11 * + - 63
----
1225

skipif mysql # not compatible
query I rowsort label-9247
SELECT DISTINCT - ( + 16 ) * - CAST ( 38 AS INTEGER ) - 76 + + - 11 * + - 63
----
1225

query I rowsort
SELECT - + ( - + 94 ) AS col2
----
94

onlyif mysql # aggregate syntax: 
query II rowsort label-9249
SELECT + 45 + - COUNT( * ), - ( + 20 ) AS col2
----
44
-20

skipif mysql # not compatible
query II rowsort label-9249
SELECT + 45 + - COUNT ( * ), - ( + 20 ) AS col2
----
44
-20

query I rowsort
SELECT + 68 * + - 95
----
-6460

query I rowsort
SELECT + 32 * - - 26
----
832

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9252
SELECT ALL - CAST( 1 AS SIGNED ) * - ( + CAST( + 69 AS SIGNED ) ) AS col2
----
69

skipif mysql # not compatible
query I rowsort label-9252
SELECT ALL - CAST ( 1 AS INTEGER ) * - ( + CAST ( + 69 AS INTEGER ) ) AS col2
----
69

query I rowsort
SELECT ALL 91 * - 30
----
-2730

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9254
SELECT - 62 DIV - 79 + COUNT( * ) * - 75 AS col2
----
-75

skipif mysql # not compatible
query I rowsort label-9254
SELECT - 62 / - 79 + COUNT ( * ) * - 75 AS col2
----
-75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9255
SELECT DISTINCT + CASE + COUNT( * ) WHEN - 94 + + + 76 * + - 44 THEN NULL WHEN + 7 * 78 + MIN( + CAST( 97 AS SIGNED ) ) THEN + + 51 * 23 * + - 78 + - - ( + 90 ) ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9255
SELECT DISTINCT + CASE + COUNT ( * ) WHEN - 94 + + + 76 * + - 44 THEN NULL WHEN + 7 * 78 + MIN ( + CAST ( 97 AS INTEGER ) ) THEN + + 51 * 23 * + - 78 + - - ( + 90 ) ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT + 49 + + 53 * + 97
----
5190

onlyif mysql # aggregate syntax: 
query I rowsort label-9257
SELECT 94 * + - 84 + COUNT( * )
----
-7895

skipif mysql # not compatible
query I rowsort label-9257
SELECT 94 * + - 84 + COUNT ( * )
----
-7895

query I rowsort
SELECT - 18 * + 38 + - 58 AS col2
----
-742

query II rowsort
SELECT ALL + 81, + 28 AS col0
----
81
28

onlyif mysql # aggregate syntax: 
query I rowsort label-9260
SELECT - 60 + 32 * + COUNT( * ) + COALESCE ( + 32, + 60, + + 28 ) + 89 + 12 + + 0 AS col2
----
105

skipif mysql # not compatible
query I rowsort label-9260
SELECT - 60 + 32 * + COUNT ( * ) + COALESCE ( + 32, + 60, + + 28 ) + 89 + 12 + + 0 AS col2
----
105

onlyif mysql # aggregate syntax: 
query I rowsort label-9261
SELECT 94 * - 52 + - ( - COUNT( * ) ) + + + 35
----
-4852

skipif mysql # not compatible
query I rowsort label-9261
SELECT 94 * - 52 + - ( - COUNT ( * ) ) + + + 35
----
-4852

query II rowsort
SELECT ALL + + 52 AS col1, - 84
----
52
-84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9263
SELECT - - 77 * CAST( NULL AS SIGNED ) * + COUNT( * ) * + 50
----
NULL

skipif mysql # not compatible
query I rowsort label-9263
SELECT - - 77 * CAST ( NULL AS INTEGER ) * + COUNT ( * ) * + 50
----
NULL

query I rowsort
SELECT + + 83 * - 15 - + 56 AS col0
----
-1301

query II rowsort
SELECT + + 10, 88 AS col0
----
10
88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9266
SELECT DISTINCT + 54 * COUNT( * ) * - CAST( - 70 AS SIGNED ) + 85
----
3865

skipif mysql # not compatible
query I rowsort label-9266
SELECT DISTINCT + 54 * COUNT ( * ) * - CAST ( - 70 AS INTEGER ) + 85
----
3865

query I rowsort
SELECT ALL - + 44 * ( - - 87 ) col2
----
-3828

onlyif mysql # aggregate syntax: 
query II rowsort label-9268
SELECT ALL SUM( DISTINCT + 36 ), 58 + + + 39 + + 14 + + 62 + 87 + + 85 AS col1
----
36
345

skipif mysql # not compatible
query II rowsort label-9268
SELECT ALL SUM ( DISTINCT + 36 ), 58 + + + 39 + + 14 + + 62 + 87 + + 85 AS col1
----
36
345

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9269
SELECT + COUNT( * ) + - 5 + - CAST( NULL AS SIGNED ) * - - 60
----
NULL

skipif mysql # not compatible
query I rowsort label-9269
SELECT + COUNT ( * ) + - 5 + - CAST ( NULL AS INTEGER ) * - - 60
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9270
SELECT + NULLIF ( + ( - + ( + 88 ) ), - 41 ) * + 80 + + COUNT( * ) AS col2
----
-7039

skipif mysql # not compatible
query I rowsort label-9270
SELECT + NULLIF ( + ( - + ( + 88 ) ), - 41 ) * + 80 + + COUNT ( * ) AS col2
----
-7039

query I rowsort
SELECT + 12 * 68 + + 68 AS col0
----
884

query I rowsort
SELECT + 51 + 26
----
77

query I rowsort
SELECT NULLIF ( - 94, - 9 ) + + - 76 + - 29 * 39 col0
----
-1301

onlyif mysql # aggregate syntax: 
query I rowsort label-9274
SELECT COUNT( * ) * + 92
----
92

skipif mysql # not compatible
query I rowsort label-9274
SELECT COUNT ( * ) * + 92
----
92

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9275
SELECT ALL + 25 DIV + CAST( - COALESCE ( 26, - ( + 31 ) - - + 23, + - 87, - + 70 * 38 + + 89 ) AS SIGNED ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9275
SELECT ALL + 25 / + CAST ( - COALESCE ( 26, - ( + 31 ) - - + 23, + - 87, - + 70 * 38 + + 89 ) AS INTEGER ) AS col0
----
0

query II rowsort
SELECT ALL 86 * - 68 AS col2, 69 + 71 * - 23 + + - 34
----
-5848
-1598

query I rowsort
SELECT DISTINCT ( + 71 ) * 29
----
2059

onlyif mysql # aggregate syntax: 
query I rowsort label-9278
SELECT DISTINCT + COUNT( * ) * + 37
----
37

skipif mysql # not compatible
query I rowsort label-9278
SELECT DISTINCT + COUNT ( * ) * + 37
----
37

query I rowsort
SELECT 4 * + 74 AS col1
----
296

onlyif mysql # aggregate syntax: 
query II rowsort label-9280
SELECT 40 * + MIN( DISTINCT - 60 ) AS col1, 70 + - 58 + + 83 + - ( - 54 ) * 28 + + MAX( 51 ) + - COUNT( * ) * - 87 * - 52 * + SUM( ALL + + 62 )
----
-2400
-278830

skipif mysql # not compatible
query II rowsort label-9280
SELECT 40 * + MIN ( DISTINCT - 60 ) AS col1, 70 + - 58 + + 83 + - ( - 54 ) * 28 + + MAX ( 51 ) + - COUNT ( * ) * - 87 * - 52 * + SUM ( ALL + + 62 )
----
-2400
-278830

query I rowsort
SELECT 30 * + 43 AS col2
----
1290

query I rowsort
SELECT ALL 7 + - 55 + 88
----
40

onlyif mysql # aggregate syntax: 
query II rowsort label-9283
SELECT DISTINCT 72 * - COUNT( * ), 82 col0
----
-72
82

skipif mysql # not compatible
query II rowsort label-9283
SELECT DISTINCT 72 * - COUNT ( * ), 82 col0
----
-72
82

query I rowsort
SELECT ALL - 0 + 99 * 91
----
9009

query I rowsort
SELECT ALL - 3 + - 23 + 45
----
19

query I rowsort
SELECT DISTINCT 18 * + 82 AS col0
----
1476

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9287
SELECT 71 DIV - CASE + 8 WHEN + + 98 THEN NULL ELSE COUNT( * ) END AS col2
----
-71

skipif mysql # not compatible
query I rowsort label-9287
SELECT 71 / - CASE + 8 WHEN + + 98 THEN NULL ELSE COUNT ( * ) END AS col2
----
-71

query II rowsort
SELECT - 67 * 57 AS col1, 11 AS col0
----
-3819
11

query I rowsort
SELECT + ( + - ( + 93 ) )
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-9290
SELECT 47 + - - COUNT( * ) * + 72 * 59 * - 64 + - 69 AS col2
----
-271894

skipif mysql # not compatible
query I rowsort label-9290
SELECT 47 + - - COUNT ( * ) * + 72 * 59 * - 64 + - 69 AS col2
----
-271894

query I rowsort
SELECT DISTINCT - - 83 + - 75
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-9292
SELECT ALL + - COUNT( * ) + 89 * - 39
----
-3472

skipif mysql # not compatible
query I rowsort label-9292
SELECT ALL + - COUNT ( * ) + 89 * - 39
----
-3472

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9293
SELECT - CAST( NULL AS SIGNED ) * 50, - 42 AS col1
----
NULL
-42

skipif mysql # not compatible
query II rowsort label-9293
SELECT - CAST ( NULL AS INTEGER ) * 50, - 42 AS col1
----
NULL
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-9294
SELECT ALL - 51 * SUM( - - ( + 83 ) )
----
-4233

skipif mysql # not compatible
query I rowsort label-9294
SELECT ALL - 51 * SUM ( - - ( + 83 ) )
----
-4233

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9295
SELECT DISTINCT + + 71 DIV MIN( DISTINCT - 33 ) AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-9295
SELECT DISTINCT + + 71 / MIN ( DISTINCT - 33 ) AS col1
----
-2

onlyif mysql # aggregate syntax: 
query II rowsort label-9296
SELECT ALL - 2 - - - COUNT( * ), - 20 * + 23 - + 52 + - 62 * - + 2 + + - 2 AS col0
----
-3
-390

skipif mysql # not compatible
query II rowsort label-9296
SELECT ALL - 2 - - - COUNT ( * ), - 20 * + 23 - + 52 + - 62 * - + 2 + + - 2 AS col0
----
-3
-390

query I rowsort
SELECT + NULLIF ( - - 84, - 34 ) AS col2
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-9298
SELECT DISTINCT + + 95 - + - MAX( ALL + - 33 ) AS col2
----
62

skipif mysql # not compatible
query I rowsort label-9298
SELECT DISTINCT + + 95 - + - MAX ( ALL + - 33 ) AS col2
----
62

query I rowsort
SELECT + 27 + - 22
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-9300
SELECT + - MIN( + 15 ) * + 24 * + 4 + + 90 * + 77 * 99 * + - 59
----
-40479570

skipif mysql # not compatible
query I rowsort label-9300
SELECT + - MIN ( + 15 ) * + 24 * + 4 + + 90 * + 77 * 99 * + - 59
----
-40479570

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9301
SELECT - COUNT( * ) * - ( - - 57 ) * - 48 + - MAX( + 23 ) DIV - - 6 AS col0
----
-2739

skipif mysql # not compatible
query I rowsort label-9301
SELECT - COUNT ( * ) * - ( - - 57 ) * - 48 + - MAX ( + 23 ) / - - 6 AS col0
----
-2739

query I rowsort
SELECT - 19 + ( 21 ) AS col2
----
2

query I rowsort
SELECT DISTINCT + 44 * - 1 + - ( ( + 57 ) ) + 50 * - 55 AS col2
----
-2851

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9304
SELECT ALL - 66 - - CAST( NULL AS SIGNED ) - 30 + CAST( 57 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9304
SELECT ALL - 66 - - CAST ( NULL AS INTEGER ) - 30 + CAST ( 57 AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9305
SELECT DISTINCT + COUNT( * ) * + COUNT( * ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9305
SELECT DISTINCT + COUNT ( * ) * + COUNT ( * ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9306
SELECT 14 * + COUNT( * )
----
14

skipif mysql # not compatible
query I rowsort label-9306
SELECT 14 * + COUNT ( * )
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-9307
SELECT ALL COUNT( - + 17 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9307
SELECT ALL COUNT ( - + 17 ) AS col2
----
1

query II rowsort
SELECT DISTINCT 74 AS col1, 62 AS col1
----
74
62

onlyif mysql # DIV for integer division: 
query I rowsort label-9309
SELECT 4 DIV + 96 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9309
SELECT 4 / + 96 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9310
SELECT 14 + + ( - + COUNT( * ) )
----
13

skipif mysql # not compatible
query I rowsort label-9310
SELECT 14 + + ( - + COUNT ( * ) )
----
13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9311
SELECT DISTINCT + 76 + - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9311
SELECT DISTINCT + 76 + - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9312
SELECT 30 DIV + SUM( DISTINCT + 56 ) col0
----
0

skipif mysql # not compatible
query I rowsort label-9312
SELECT 30 / + SUM ( DISTINCT + 56 ) col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9313
SELECT ( - 99 ) * + - 14 + 98 * - ( + ( + 42 ) ) + COUNT( * )
----
-2729

skipif mysql # not compatible
query I rowsort label-9313
SELECT ( - 99 ) * + - 14 + 98 * - ( + ( + 42 ) ) + COUNT ( * )
----
-2729

query I rowsort
SELECT ALL 37 + - 90 AS col2
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-9315
SELECT COUNT( * ) - + + 2 + 23
----
22

skipif mysql # not compatible
query I rowsort label-9315
SELECT COUNT ( * ) - + + 2 + 23
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-9316
SELECT DISTINCT SUM( - + 42 )
----
-42

skipif mysql # not compatible
query I rowsort label-9316
SELECT DISTINCT SUM ( - + 42 )
----
-42

query I rowsort
SELECT DISTINCT 31 * + 7
----
217

query I rowsort
SELECT ALL 90 + - 96
----
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9319
SELECT ALL - 59 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9319
SELECT ALL - 59 + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9320
SELECT ALL COUNT( ALL + 97 )
----
1

skipif mysql # not compatible
query I rowsort label-9320
SELECT ALL COUNT ( ALL + 97 )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-9321
SELECT DISTINCT 95 * - MIN( DISTINCT - 29 ), - COUNT( - 39 ) * - 72 + + COUNT( * ) AS col2
----
2755
73

skipif mysql # not compatible
query II rowsort label-9321
SELECT DISTINCT 95 * - MIN ( DISTINCT - 29 ), - COUNT ( - 39 ) * - 72 + + COUNT ( * ) AS col2
----
2755
73

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9322
SELECT 52 DIV - CAST( - 34 AS SIGNED ) + - 84
----
-83

skipif mysql # not compatible
query I rowsort label-9322
SELECT 52 / - CAST ( - 34 AS INTEGER ) + - 84
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-9323
SELECT COUNT( * ) * + 22 - - 95
----
117

skipif mysql # not compatible
query I rowsort label-9323
SELECT COUNT ( * ) * + 22 - - 95
----
117

query I rowsort
SELECT ALL - - 25 col0
----
25

query I rowsort
SELECT - 65 * + + ( + - ( 96 ) ) AS col1
----
6240

query I rowsort
SELECT 2 * - - 1 + - 67 col1
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-9327
SELECT - MIN( 71 )
----
-71

skipif mysql # not compatible
query I rowsort label-9327
SELECT - MIN ( 71 )
----
-71

query I rowsort
SELECT DISTINCT ( - 94 ) * - COALESCE ( - 64, + 41 ) - 68 AS col0
----
-6084

onlyif mysql # aggregate syntax: 
query I rowsort label-9329
SELECT ALL + + MIN( + 69 )
----
69

skipif mysql # not compatible
query I rowsort label-9329
SELECT ALL + + MIN ( + 69 )
----
69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9330
SELECT + + 36 + 45 * NULLIF ( ( - ( + + 12 ) ), CASE 45 WHEN + CAST( NULL AS SIGNED ) THEN NULL WHEN - 38 THEN NULL ELSE 66 END ) AS col0
----
-504

skipif mysql # not compatible
query I rowsort label-9330
SELECT + + 36 + 45 * NULLIF ( ( - ( + + 12 ) ), CASE 45 WHEN + CAST ( NULL AS INTEGER ) THEN NULL WHEN - 38 THEN NULL ELSE 66 END ) AS col0
----
-504

onlyif mysql # aggregate syntax: 
query I rowsort label-9331
SELECT ALL - 81 * - - 54 - ( + + MAX( ALL 93 ) ) AS col2
----
-4467

skipif mysql # not compatible
query I rowsort label-9331
SELECT ALL - 81 * - - 54 - ( + + MAX ( ALL 93 ) ) AS col2
----
-4467

query I rowsort
SELECT DISTINCT + NULLIF ( 16, + 43 + + - 51 ) AS col2
----
16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9333
SELECT + - CASE + 55 WHEN + 40 / + + 7 * - - 27 * - - 29 + 4 * ( + 62 ) * - 58 THEN - + 13 WHEN - 90 / 14 - + 86 + - + 79 + - 6 * + ( - + 11 ) * 25 + - + CAST( NULL AS SIGNED ) + - 77 THEN NULL END + + + 54 + - - 6 / - AVG ( - 48 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9333
SELECT + - CASE + 55 WHEN + 40 / + + 7 * - - 27 * - - 29 + 4 * ( + 62 ) * - 58 THEN - + 13 WHEN - 90 / 14 - + 86 + - + 79 + - 6 * + ( - + 11 ) * 25 + - + CAST ( NULL AS INTEGER ) + - 77 THEN NULL END + + + 54 + - - 6 / - AVG ( - 48 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9334
SELECT + 67 * MIN( DISTINCT + 90 ) * - + 99 + - SUM( ALL 76 ) + COUNT( * ) * + ( - 0 ) * + COUNT( * ) + + - COUNT( * ) * 69
----
-597115

skipif mysql # not compatible
query I rowsort label-9334
SELECT + 67 * MIN ( DISTINCT + 90 ) * - + 99 + - SUM ( ALL 76 ) + COUNT ( * ) * + ( - 0 ) * + COUNT ( * ) + + - COUNT ( * ) * 69
----
-597115

onlyif mysql # aggregate syntax: 
query I rowsort label-9335
SELECT ALL COUNT( * ) * 61
----
61

skipif mysql # not compatible
query I rowsort label-9335
SELECT ALL COUNT ( * ) * 61
----
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9336
SELECT - + 79 * + 78 * + + CAST( - MIN( + 63 ) AS SIGNED ) * + ( + 34 ) + + - COUNT( * ) AS col0, 76
----
13199003
76

skipif mysql # not compatible
query II rowsort label-9336
SELECT - + 79 * + 78 * + + CAST ( - MIN ( + 63 ) AS INTEGER ) * + ( + 34 ) + + - COUNT ( * ) AS col0, 76
----
13199003
76

query I rowsort
SELECT - NULLIF ( 75, - 38 ) + + + 7
----
-68

query I rowsort
SELECT DISTINCT + - 82 AS col2
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-9339
SELECT ALL 21 * + MAX( + + 30 ) * - + 70 AS col1
----
-44100

skipif mysql # not compatible
query I rowsort label-9339
SELECT ALL 21 * + MAX ( + + 30 ) * - + 70 AS col1
----
-44100

query I rowsort
SELECT DISTINCT + - 26 col2
----
-26

onlyif mysql # DIV for integer division: 
query I rowsort label-9341
SELECT ALL - 62 DIV + 52 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-9341
SELECT ALL - 62 / + 52 AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9342
SELECT + 10 * COUNT( * ) col2
----
10

skipif mysql # not compatible
query I rowsort label-9342
SELECT + 10 * COUNT ( * ) col2
----
10

query I rowsort
SELECT - 68 + + - ( + + 75 ) * + 68 AS col1
----
-5168

query I rowsort
SELECT - NULLIF ( 69, 76 + 67 * - + 89 )
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-9345
SELECT + 74 + COUNT( * ) AS col0
----
75

skipif mysql # not compatible
query I rowsort label-9345
SELECT + 74 + COUNT ( * ) AS col0
----
75

query I rowsort
SELECT + 50 + - - 14 + 12 AS col0
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-9347
SELECT ALL + 72 * + - COUNT( * )
----
-72

skipif mysql # not compatible
query I rowsort label-9347
SELECT ALL + 72 * + - COUNT ( * )
----
-72

query I rowsort
SELECT DISTINCT NULLIF ( - 8, + - 92 )
----
-8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9349
SELECT DISTINCT MIN( 20 ) + + + ( - + COALESCE ( + - 25, - 55 + + - ( + 24 ) + - 87 * - - 12 + COUNT( * ) + 54 DIV - COUNT( DISTINCT - 36 ) * - - 95, - 34 ) ) + 83
----
128

skipif mysql # not compatible
query I rowsort label-9349
SELECT DISTINCT MIN ( 20 ) + + + ( - + COALESCE ( + - 25, - 55 + + - ( + 24 ) + - 87 * - - 12 + COUNT ( * ) + 54 / - COUNT ( DISTINCT - 36 ) * - - 95, - 34 ) ) + 83
----
128

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9350
SELECT DISTINCT CAST( NULL AS SIGNED ) + - - 52
----
NULL

skipif mysql # not compatible
query I rowsort label-9350
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - - 52
----
NULL

query II rowsort
SELECT ALL ( + 98 ) col1, + 9 * - 42
----
98
-378

query I rowsort
SELECT ALL - 27 + + 94
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-9353
SELECT DISTINCT + 54 + COUNT( * ) / CASE + 34 WHEN + + SUM( DISTINCT + - 66 ) * - + 39 THEN NULL WHEN 84 THEN COUNT( * ) - + ( 41 ) * + 91 + 74 + + ( + AVG ( + - 12 ) ) ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9353
SELECT DISTINCT + 54 + COUNT ( * ) / CASE + 34 WHEN + + SUM ( DISTINCT + - 66 ) * - + 39 THEN NULL WHEN 84 THEN COUNT ( * ) - + ( 41 ) * + 91 + 74 + + ( + AVG ( + - 12 ) ) ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT + + 26 + - 70 + + 5 - 5 * + + 45
----
-264

onlyif mysql # aggregate syntax: 
query I rowsort label-9355
SELECT DISTINCT - SUM( - 32 ) * 49 + - + 63 + + 36
----
1541

skipif mysql # not compatible
query I rowsort label-9355
SELECT DISTINCT - SUM ( - 32 ) * 49 + - + 63 + + 36
----
1541

onlyif mysql # DIV for integer division: 
query I rowsort label-9356
SELECT ALL - ( + 33 ) DIV - - ( - 74 ) * 71 * - 91
----
0

skipif mysql # not compatible
query I rowsort label-9356
SELECT ALL - ( + 33 ) / - - ( - 74 ) * 71 * - 91
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9357
SELECT ALL - - COUNT( * ) DIV 2 - + 43 - + + 86
----
-129

skipif mysql # not compatible
query I rowsort label-9357
SELECT ALL - - COUNT ( * ) / 2 - + 43 - + + 86
----
-129

onlyif mysql # aggregate syntax: 
query I rowsort label-9358
SELECT ALL + SUM( + 42 ) * 86 col1
----
3612

skipif mysql # not compatible
query I rowsort label-9358
SELECT ALL + SUM ( + 42 ) * 86 col1
----
3612

onlyif mysql # aggregate syntax: 
query II rowsort label-9359
SELECT DISTINCT - 2 * + COUNT( * ) AS col1, 86 AS col0
----
-2
86

skipif mysql # not compatible
query II rowsort label-9359
SELECT DISTINCT - 2 * + COUNT ( * ) AS col1, 86 AS col0
----
-2
86

query I rowsort
SELECT DISTINCT + + NULLIF ( + 93, + + 7 ) AS col0
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-9361
SELECT CASE - 82 WHEN - 46 THEN NULL ELSE + ( - - 26 ) + - CASE - 29 WHEN + 44 THEN - MIN( + 55 ) * + 61 + - 86 * + + 29 WHEN 76 THEN NULL END END
----
NULL

skipif mysql # not compatible
query I rowsort label-9361
SELECT CASE - 82 WHEN - 46 THEN NULL ELSE + ( - - 26 ) + - CASE - 29 WHEN + 44 THEN - MIN ( + 55 ) * + 61 + - 86 * + + 29 WHEN 76 THEN NULL END END
----
NULL

query I rowsort
SELECT ALL + 50 * + + 42
----
2100

onlyif mysql # aggregate syntax: 
query II rowsort label-9363
SELECT + + 39 * + 62 + COUNT( * ) * + 10 - + 37 AS col0, + 49 AS col2
----
2391
49

skipif mysql # not compatible
query II rowsort label-9363
SELECT + + 39 * + 62 + COUNT ( * ) * + 10 - + 37 AS col0, + 49 AS col2
----
2391
49

query I rowsort
SELECT ALL + + ( + 31 ) AS col2
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-9365
SELECT + CASE 26 WHEN 37 + ( + 71 ) THEN NULL WHEN - - 60 THEN NULL WHEN 44 THEN + + 54 END + - - COUNT( * ) - + ( + 66 ) / + + 65 + + COUNT( * ) / - 70 + 69 * 93 + - ( + 6 ) * ( + - 54 ) * 2 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9365
SELECT + CASE 26 WHEN 37 + ( + 71 ) THEN NULL WHEN - - 60 THEN NULL WHEN 44 THEN + + 54 END + - - COUNT ( * ) - + ( + 66 ) / + + 65 + + COUNT ( * ) / - 70 + 69 * 93 + - ( + 6 ) * ( + - 54 ) * 2 col2
----
NULL

query I rowsort
SELECT + - 5 col1
----
-5

query I rowsort
SELECT + 86 * + 77 AS col0
----
6622

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9368
SELECT + CAST( + - CAST( - 60 AS SIGNED ) AS SIGNED ) AS col0, 4
----
60
4

skipif mysql # not compatible
query II rowsort label-9368
SELECT + CAST ( + - CAST ( - 60 AS INTEGER ) AS INTEGER ) AS col0, 4
----
60
4

query I rowsort
SELECT + 33 + + 41
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-9370
SELECT + 50 * COUNT( * )
----
50

skipif mysql # not compatible
query I rowsort label-9370
SELECT + 50 * COUNT ( * )
----
50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9371
SELECT DISTINCT + 46 * + 13 + - CAST( + CASE - 96 WHEN - 63 THEN NULL WHEN + AVG ( - + 38 ) + - 52 THEN - 24 WHEN - 77 THEN COUNT( * ) ELSE + 80 END AS SIGNED ) + 59 AS col1
----
577

skipif mysql # not compatible
query I rowsort label-9371
SELECT DISTINCT + 46 * + 13 + - CAST ( + CASE - 96 WHEN - 63 THEN NULL WHEN + AVG ( - + 38 ) + - 52 THEN - 24 WHEN - 77 THEN COUNT ( * ) ELSE + 80 END AS INTEGER ) + 59 AS col1
----
577

query I rowsort
SELECT - ( + 95 ) AS col0
----
-95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9373
SELECT - NULLIF ( + COUNT( * ), 88 * - - SUM( ALL + CAST( NULL AS SIGNED ) ) ) + - + 99
----
-100

skipif mysql # not compatible
query I rowsort label-9373
SELECT - NULLIF ( + COUNT ( * ), 88 * - - SUM ( ALL + CAST ( NULL AS INTEGER ) ) ) + - + 99
----
-100

query I rowsort
SELECT + 20 * - + 50
----
-1000

onlyif mysql # aggregate syntax: 
query I rowsort label-9375
SELECT DISTINCT - 68 * - + COUNT( * ) + - 22 AS col2
----
46

skipif mysql # not compatible
query I rowsort label-9375
SELECT DISTINCT - 68 * - + COUNT ( * ) + - 22 AS col2
----
46

query I rowsort
SELECT + CASE + 71 WHEN 63 THEN NULL ELSE + 56 + - 47 END * - 84 + 63
----
-693

query I rowsort
SELECT + 55 + 30 AS col2
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-9378
SELECT DISTINCT COUNT( - 20 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9378
SELECT DISTINCT COUNT ( - 20 ) AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9379
SELECT + 84 - + MAX( ALL + CAST( NULL AS SIGNED ) ) - CASE + 79 WHEN - 69 THEN + 42 * + 94 WHEN - 55 THEN NULL END + - 80 - - 55 * + 9 * 72 + 45
----
NULL

skipif mysql # not compatible
query I rowsort label-9379
SELECT + 84 - + MAX ( ALL + CAST ( NULL AS INTEGER ) ) - CASE + 79 WHEN - 69 THEN + 42 * + 94 WHEN - 55 THEN NULL END + - 80 - - 55 * + 9 * 72 + 45
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9380
SELECT COUNT( + 32 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9380
SELECT COUNT ( + 32 ) AS col0
----
1

query II rowsort
SELECT 85 AS col2, + 66
----
85
66

query I rowsort
SELECT ALL + 96 - - 64
----
160

query I rowsort
SELECT ALL - 41 * - + 12 AS col0
----
492

onlyif mysql # aggregate syntax: 
query I rowsort label-9384
SELECT DISTINCT + 97 - + + ( 29 ) + - - 71 + - COUNT( * ) col2
----
138

skipif mysql # not compatible
query I rowsort label-9384
SELECT DISTINCT + 97 - + + ( 29 ) + - - 71 + - COUNT ( * ) col2
----
138

query I rowsort
SELECT DISTINCT - + 77 * 82 AS col2
----
-6314

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9386
SELECT ALL 69 - - COUNT( * ) * - NULLIF ( - 55, - - CAST( NULL AS SIGNED ) ) + - + 42 * - 0 * + SUM( - 13 ) AS col1
----
124

skipif mysql # not compatible
query I rowsort label-9386
SELECT ALL 69 - - COUNT ( * ) * - NULLIF ( - 55, - - CAST ( NULL AS INTEGER ) ) + - + 42 * - 0 * + SUM ( - 13 ) AS col1
----
124

onlyif mysql # aggregate syntax: 
query I rowsort label-9387
SELECT DISTINCT CASE + COUNT( * ) WHEN - 28 THEN + + ( + ( + 41 ) ) WHEN 45 THEN NULL ELSE + 70 END
----
70

skipif mysql # not compatible
query I rowsort label-9387
SELECT DISTINCT CASE + COUNT ( * ) WHEN - 28 THEN + + ( + ( + 41 ) ) WHEN 45 THEN NULL ELSE + 70 END
----
70

query I rowsort
SELECT 12 + - 24
----
-12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9389
SELECT CAST( - + 63 AS SIGNED )
----
-63

skipif mysql # not compatible
query I rowsort label-9389
SELECT CAST ( - + 63 AS INTEGER )
----
-63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9390
SELECT - 18 * - 12 - + COUNT( * ) DIV - 72
----
216

skipif mysql # not compatible
query I rowsort label-9390
SELECT - 18 * - 12 - + COUNT ( * ) / - 72
----
216

query I rowsort
SELECT + ( + 95 ) col1
----
95

query I rowsort
SELECT + 51 * - + 55 + + 93 + + + 75 + + 94 AS col2
----
-2543

onlyif mysql # aggregate syntax: 
query I rowsort label-9393
SELECT ALL + + ( + 61 ) + - COUNT( * ) AS col1
----
60

skipif mysql # not compatible
query I rowsort label-9393
SELECT ALL + + ( + 61 ) + - COUNT ( * ) AS col1
----
60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9394
SELECT - 38 * 3 + - COUNT( * ) DIV - 19 * - + 3 + + 1
----
-113

skipif mysql # not compatible
query I rowsort label-9394
SELECT - 38 * 3 + - COUNT ( * ) / - 19 * - + 3 + + 1
----
-113

onlyif mysql # aggregate syntax: 
query I rowsort label-9395
SELECT ALL - COUNT( ALL + + 8 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-9395
SELECT ALL - COUNT ( ALL + + 8 ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-9396
SELECT ALL - 61 AS col2, - SUM( ALL + 88 ) * - 78 - - 76
----
-61
6940

skipif mysql # not compatible
query II rowsort label-9396
SELECT ALL - 61 AS col2, - SUM ( ALL + 88 ) * - 78 - - 76
----
-61
6940

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9397
SELECT + 52 DIV SUM( + 14 )
----
3

skipif mysql # not compatible
query I rowsort label-9397
SELECT + 52 / SUM ( + 14 )
----
3

query I rowsort
SELECT DISTINCT + - 17 + - 94
----
-111

query I rowsort
SELECT ALL + 44 + - 10
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-9400
SELECT 14 * SUM( DISTINCT 41 )
----
574

skipif mysql # not compatible
query I rowsort label-9400
SELECT 14 * SUM ( DISTINCT 41 )
----
574

onlyif mysql # aggregate syntax: 
query II rowsort label-9401
SELECT + 65, MIN( ALL 67 ) AS col2
----
65
67

skipif mysql # not compatible
query II rowsort label-9401
SELECT + 65, MIN ( ALL 67 ) AS col2
----
65
67

onlyif mysql # aggregate syntax: 
query I rowsort label-9402
SELECT 8 * - - 53 * + 4 * + 19 + NULLIF ( - - 57, - - SUM( ALL 46 ) ) + + + 74 * - 31 AS col0
----
29987

skipif mysql # not compatible
query I rowsort label-9402
SELECT 8 * - - 53 * + 4 * + 19 + NULLIF ( - - 57, - - SUM ( ALL 46 ) ) + + + 74 * - 31 AS col0
----
29987

query I rowsort
SELECT ALL - 99 * 69 col0
----
-6831

query I rowsort
SELECT ALL + ( - 4 ) + - ( + - 54 ) AS col0
----
50

query I rowsort
SELECT ALL 73 + 17 - 37 + - 2 AS col1
----
51

query I rowsort
SELECT DISTINCT 8 + - - 83
----
91

onlyif mysql # aggregate syntax: 
query II rowsort label-9407
SELECT 39 * NULLIF ( 81, + COUNT( * ) ) AS col0, 74
----
3159
74

skipif mysql # not compatible
query II rowsort label-9407
SELECT 39 * NULLIF ( 81, + COUNT ( * ) ) AS col0, 74
----
3159
74

query I rowsort
SELECT DISTINCT 72 - + 12 AS col0
----
60

query I rowsort
SELECT ALL + 37 * - 56
----
-2072

onlyif mysql # aggregate syntax: 
query I rowsort label-9410
SELECT DISTINCT 36 * 47 * COUNT( * )
----
1692

skipif mysql # not compatible
query I rowsort label-9410
SELECT DISTINCT 36 * 47 * COUNT ( * )
----
1692

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9411
SELECT COUNT( * ) + + + 38 DIV + + 75 col1
----
1

skipif mysql # not compatible
query I rowsort label-9411
SELECT COUNT ( * ) + + + 38 / + + 75 col1
----
1

query I rowsort
SELECT ALL + 93 - 29 AS col2
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-9413
SELECT ALL - MIN( - 89 ) col2
----
89

skipif mysql # not compatible
query I rowsort label-9413
SELECT ALL - MIN ( - 89 ) col2
----
89

query I rowsort
SELECT 47 + + + 25 + + 78 AS col1
----
150

onlyif mysql # aggregate syntax: 
query I rowsort label-9415
SELECT ALL + 13 - COUNT( * ) * - 78 * 34 * + - 28 * 12 * + 11 + + 73
----
-9801706

skipif mysql # not compatible
query I rowsort label-9415
SELECT ALL + 13 - COUNT ( * ) * - 78 * 34 * + - 28 * 12 * + 11 + + 73
----
-9801706

onlyif mysql # aggregate syntax: 
query I rowsort label-9416
SELECT ALL - MIN( DISTINCT - 18 ) col0
----
18

skipif mysql # not compatible
query I rowsort label-9416
SELECT ALL - MIN ( DISTINCT - 18 ) col0
----
18

query I rowsort
SELECT + ( + - 17 ) + + - 94 AS col2
----
-111

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9418
SELECT ALL - ( + CAST( - NULLIF ( - 92, - - 29 - - 11 ) AS SIGNED ) )
----
-92

skipif mysql # not compatible
query I rowsort label-9418
SELECT ALL - ( + CAST ( - NULLIF ( - 92, - - 29 - - 11 ) AS INTEGER ) )
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-9419
SELECT DISTINCT MIN( DISTINCT 96 )
----
96

skipif mysql # not compatible
query I rowsort label-9419
SELECT DISTINCT MIN ( DISTINCT 96 )
----
96

onlyif mysql # DIV for integer division: 
query I rowsort label-9420
SELECT 96 DIV + 72
----
1

skipif mysql # not compatible
query I rowsort label-9420
SELECT 96 / + 72
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9421
SELECT COALESCE ( + 64, + 35 * 42, COUNT( * ) ) * 1 * - + 64
----
-4096

skipif mysql # not compatible
query I rowsort label-9421
SELECT COALESCE ( + 64, + 35 * 42, COUNT ( * ) ) * 1 * - + 64
----
-4096

query I rowsort
SELECT 70 + + ( - + 93 )
----
-23

onlyif mysql # DIV for integer division: 
query I rowsort label-9423
SELECT ALL 3 DIV + - 61 * 98
----
0

skipif mysql # not compatible
query I rowsort label-9423
SELECT ALL 3 / + - 61 * 98
----
0

query I rowsort
SELECT 17 + 30 * 63 AS col1
----
1907

onlyif mysql # aggregate syntax: 
query I rowsort label-9425
SELECT DISTINCT - + 57 + + MAX( + 41 ) * + COUNT( * ) * + - 48 col1
----
-2025

skipif mysql # not compatible
query I rowsort label-9425
SELECT DISTINCT - + 57 + + MAX ( + 41 ) * + COUNT ( * ) * + - 48 col1
----
-2025

query I rowsort
SELECT DISTINCT - ( + + 59 ) AS col2
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-9427
SELECT ALL COUNT( DISTINCT + 15 )
----
1

skipif mysql # not compatible
query I rowsort label-9427
SELECT ALL COUNT ( DISTINCT + 15 )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9428
SELECT ALL - 28 + - CAST( - + NULLIF ( - - 24, 45 ) AS SIGNED ) AS col2
----
-4

skipif mysql # not compatible
query I rowsort label-9428
SELECT ALL - 28 + - CAST ( - + NULLIF ( - - 24, 45 ) AS INTEGER ) AS col2
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-9429
SELECT MAX( ALL + - 59 )
----
-59

skipif mysql # not compatible
query I rowsort label-9429
SELECT MAX ( ALL + - 59 )
----
-59

query II rowsort
SELECT ALL - 55 AS col1, - 91
----
-55
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9431
SELECT DISTINCT + 17 * - 71 + - - 69 + + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9431
SELECT DISTINCT + 17 * - 71 + - - 69 + + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9432
SELECT ALL + 82 * - 50 + - NULLIF ( 20, + MAX( 42 ) - + + MAX( DISTINCT - - CAST( NULL AS SIGNED ) ) + - 77 + + 43 ) * - 15 + + - 9 + - + 54 + + SUM( 76 )
----
-3787

skipif mysql # not compatible
query I rowsort label-9432
SELECT ALL + 82 * - 50 + - NULLIF ( 20, + MAX ( 42 ) - + + MAX ( DISTINCT - - CAST ( NULL AS INTEGER ) ) + - 77 + + 43 ) * - 15 + + - 9 + - + 54 + + SUM ( 76 )
----
-3787

query II rowsort
SELECT + - 19, + ( + + 10 ) AS col1
----
-19
10

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9434
SELECT + CAST( NULL AS SIGNED ) AS col2, + 16 AS col0
----
NULL
16

skipif mysql # not compatible
query II rowsort label-9434
SELECT + CAST ( NULL AS INTEGER ) AS col2, + 16 AS col0
----
NULL
16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9435
SELECT 23 * 78 * + + COALESCE ( - - 14, - COUNT( * ), + SUM( ALL 62 ) DIV - ( - 40 ) * - 35 )
----
25116

skipif mysql # not compatible
query I rowsort label-9435
SELECT 23 * 78 * + + COALESCE ( - - 14, - COUNT ( * ), + SUM ( ALL 62 ) / - ( - 40 ) * - 35 )
----
25116

query I rowsort
SELECT 59 * - 79
----
-4661

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9437
SELECT ALL + CAST( NULL AS DECIMAL ) / COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-9437
SELECT ALL + CAST ( NULL AS REAL ) / COUNT ( * )
----
NULL

query I rowsort
SELECT DISTINCT + 31 + - - 77
----
108

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9439
SELECT ALL + 13 - - 37 DIV - 67 * - COUNT( ALL - 25 )
----
13

skipif mysql # not compatible
query I rowsort label-9439
SELECT ALL + 13 - - 37 / - 67 * - COUNT ( ALL - 25 )
----
13

query I rowsort
SELECT 48 + + - 65 AS col1
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-9441
SELECT 84 * 1 * + 72 * + + COUNT( * )
----
6048

skipif mysql # not compatible
query I rowsort label-9441
SELECT 84 * 1 * + 72 * + + COUNT ( * )
----
6048

query I rowsort
SELECT ALL - 41 * 66 * 80 AS col2
----
-216480

onlyif mysql # aggregate syntax: 
query II rowsort label-9443
SELECT - ( 44 ) * + 58, - 36 * MIN( - + 85 ) AS col0
----
-2552
3060

skipif mysql # not compatible
query II rowsort label-9443
SELECT - ( 44 ) * + 58, - 36 * MIN ( - + 85 ) AS col0
----
-2552
3060

query I rowsort
SELECT DISTINCT - 50 * - 42 col0
----
2100

query I rowsort
SELECT - 66 + 93 + - - 14 AS col1
----
41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9446
SELECT ALL NULLIF ( 54, + CAST( NULL AS SIGNED ) * + - 67 )
----
54

skipif mysql # not compatible
query I rowsort label-9446
SELECT ALL NULLIF ( 54, + CAST ( NULL AS INTEGER ) * + - 67 )
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-9447
SELECT DISTINCT CASE COUNT( + + 25 ) WHEN - 52 THEN + AVG ( 8 ) + - + 90 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9447
SELECT DISTINCT CASE COUNT ( + + 25 ) WHEN - 52 THEN + AVG ( 8 ) + - + 90 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9448
SELECT - 48 + - + COUNT( * ) * - ( + SUM( 12 ) )
----
-36

skipif mysql # not compatible
query I rowsort label-9448
SELECT - 48 + - + COUNT ( * ) * - ( + SUM ( 12 ) )
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-9449
SELECT + NULLIF ( + 7, + COUNT( * ) ) * 11 + - 19 * COUNT( * )
----
58

skipif mysql # not compatible
query I rowsort label-9449
SELECT + NULLIF ( + 7, + COUNT ( * ) ) * 11 + - 19 * COUNT ( * )
----
58

query II rowsort
SELECT DISTINCT - 90 + + 72 AS col0, 90 * 95 AS col0
----
-18
8550

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9451
SELECT ALL - 32 + 32 * - 27 / CAST( NULL AS SIGNED ) + - SUM( ALL + + 50 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9451
SELECT ALL - 32 + 32 * - 27 / CAST ( NULL AS INTEGER ) + - SUM ( ALL + + 50 )
----
NULL

query I rowsort
SELECT + - 26 - - 65
----
39

query I rowsort
SELECT - - 34 col2
----
34

query I rowsort
SELECT + + ( + 67 ) - - - 88 + + + 43
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-9455
SELECT DISTINCT 76 + + MAX( ALL 72 ) + + + 35 * - - 82
----
3018

skipif mysql # not compatible
query I rowsort label-9455
SELECT DISTINCT 76 + + MAX ( ALL 72 ) + + + 35 * - - 82
----
3018

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9456
SELECT ALL - CASE 72 WHEN + 41 THEN + COUNT( * ) * - ( 71 ) ELSE + COUNT( * ) * + 4 * - - 11 + + + 20 * + + 0 + + - 27 * + + 35 END + - CAST( + - 98 AS SIGNED ) AS col0
----
999

skipif mysql # not compatible
query I rowsort label-9456
SELECT ALL - CASE 72 WHEN + 41 THEN + COUNT ( * ) * - ( 71 ) ELSE + COUNT ( * ) * + 4 * - - 11 + + + 20 * + + 0 + + - 27 * + + 35 END + - CAST ( + - 98 AS INTEGER ) AS col0
----
999

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9457
SELECT ALL 94 + + 71 + - MIN( ALL - + 88 ) DIV 91
----
165

skipif mysql # not compatible
query I rowsort label-9457
SELECT ALL 94 + + 71 + - MIN ( ALL - + 88 ) / 91
----
165

query I rowsort
SELECT + 34 * + + 63
----
2142

onlyif mysql # DIV for integer division: 
query I rowsort label-9459
SELECT DISTINCT 3 DIV + - 62 * 92 * + - 18 + - - 61 AS col1
----
61

skipif mysql # not compatible
query I rowsort label-9459
SELECT DISTINCT 3 / + - 62 * 92 * + - 18 + - - 61 AS col1
----
61

query III rowsort
SELECT ALL + - ( - + 25 ) AS col2, 27 AS col1, - 76 AS col2
----
25
27
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-9461
SELECT COUNT( * ) * + - ( - COUNT( * ) ) + + 80
----
81

skipif mysql # not compatible
query I rowsort label-9461
SELECT COUNT ( * ) * + - ( - COUNT ( * ) ) + + 80
----
81

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9462
SELECT COALESCE ( + 67, + 30 ) DIV - COUNT( * ) - + 40 AS col0, + COUNT( * ) DIV NULLIF ( - 22, - - 63 + - - AVG ( ALL - - ( - + 51 ) ) + + 92 )
----
-107
0

skipif mysql # not compatible
query II rowsort label-9462
SELECT COALESCE ( + 67, + 30 ) / - COUNT ( * ) - + 40 AS col0, + COUNT ( * ) / NULLIF ( - 22, - - 63 + - - AVG ( ALL - - ( - + 51 ) ) + + 92 )
----
-107
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9463
SELECT - 35 * + 55 + - MAX( ALL + ( + 50 ) ) + + 26 * - - 6 + - ( + - 23 ) * + 90 AS col2
----
251

skipif mysql # not compatible
query I rowsort label-9463
SELECT - 35 * + 55 + - MAX ( ALL + ( + 50 ) ) + + 26 * - - 6 + - ( + - 23 ) * + 90 AS col2
----
251

query I rowsort
SELECT + ( - + 31 ) AS col1
----
-31

query II rowsort
SELECT ALL + 75, + 20 + + 0 AS col2
----
75
20

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9466
SELECT ALL + 78 AS col0, CAST( NULL AS SIGNED ) AS col0
----
78
NULL

skipif mysql # not compatible
query II rowsort label-9466
SELECT ALL + 78 AS col0, CAST ( NULL AS INTEGER ) AS col0
----
78
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9467
SELECT DISTINCT ( 58 ) * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9467
SELECT DISTINCT ( 58 ) * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9468
SELECT ( + SUM( DISTINCT - 30 ) ), 33 AS col1
----
-30
33

skipif mysql # not compatible
query II rowsort label-9468
SELECT ( + SUM ( DISTINCT - 30 ) ), 33 AS col1
----
-30
33

onlyif mysql # aggregate syntax: 
query I rowsort label-9469
SELECT 18 * - + ( - NULLIF ( - - COUNT( * ), - 46 ) ) + 37 col1
----
55

skipif mysql # not compatible
query I rowsort label-9469
SELECT 18 * - + ( - NULLIF ( - - COUNT ( * ), - 46 ) ) + 37 col1
----
55

query I rowsort
SELECT + ( - - 76 )
----
76

query I rowsort
SELECT NULLIF ( + + 30, + - 41 + - 29 )
----
30

onlyif mysql # DIV for integer division: 
query I rowsort label-9472
SELECT 36 * + 59 DIV - - 59 + - 20
----
16

skipif mysql # not compatible
query I rowsort label-9472
SELECT 36 * + 59 / - - 59 + - 20
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-9473
SELECT ALL + NULLIF ( + 5, + SUM( ALL + + 86 ) * 74 )
----
5

skipif mysql # not compatible
query I rowsort label-9473
SELECT ALL + NULLIF ( + 5, + SUM ( ALL + + 86 ) * 74 )
----
5

query II rowsort
SELECT + 85 AS col2, + ( + - 79 ) AS col1
----
85
-79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9475
SELECT DISTINCT + SUM( - - NULLIF ( + 98, + CAST( 13 AS SIGNED ) * + 68 ) ) AS col1
----
98

skipif mysql # not compatible
query I rowsort label-9475
SELECT DISTINCT + SUM ( - - NULLIF ( + 98, + CAST ( 13 AS INTEGER ) * + 68 ) ) AS col1
----
98

onlyif mysql # aggregate syntax: 
query II rowsort label-9476
SELECT ALL + COUNT( * ), - 42 * - + CASE - 70 WHEN + ( + 6 ) THEN - 7 WHEN + COUNT( * ) THEN - 22 + ( + - MIN( ALL - 50 ) ) + 43 + - 79 * - 63 END AS col2
----
1
NULL

skipif mysql # not compatible
query II rowsort label-9476
SELECT ALL + COUNT ( * ), - 42 * - + CASE - 70 WHEN + ( + 6 ) THEN - 7 WHEN + COUNT ( * ) THEN - 22 + ( + - MIN ( ALL - 50 ) ) + 43 + - 79 * - 63 END AS col2
----
1
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9477
SELECT - CAST( NULL AS SIGNED ) + + - COUNT( * ) + COALESCE ( - 88, 81 / 14 + 77 + 93 + - 60 / 75 ) / - 97 * + COUNT( * ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9477
SELECT - CAST ( NULL AS INTEGER ) + + - COUNT ( * ) + COALESCE ( - 88, 81 / 14 + 77 + 93 + - 60 / 75 ) / - 97 * + COUNT ( * ) col1
----
NULL

query II rowsort
SELECT + 47 col2, - 71 AS col1
----
47
-71

onlyif mysql # aggregate syntax: 
query II rowsort label-9479
SELECT COUNT( * ), 30 AS col2
----
1
30

skipif mysql # not compatible
query II rowsort label-9479
SELECT COUNT ( * ), 30 AS col2
----
1
30

onlyif mysql # DIV for integer division: 
query I rowsort label-9480
SELECT + 54 DIV 13 AS col1
----
4

skipif mysql # not compatible
query I rowsort label-9480
SELECT + 54 / 13 AS col1
----
4

query I rowsort
SELECT - 60 * 2
----
-120

query I rowsort
SELECT - 71 + COALESCE ( ( - 70 ), - ( - 20 ) )
----
-141

onlyif mysql # aggregate syntax: 
query I rowsort label-9483
SELECT ALL + 27 * 48 - COUNT( * ) * + 96 AS col0
----
1200

skipif mysql # not compatible
query I rowsort label-9483
SELECT ALL + 27 * 48 - COUNT ( * ) * + 96 AS col0
----
1200

query I rowsort
SELECT - + 21 + + 36 + 54 AS col0
----
69

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9485
SELECT ALL 95 AS col0, - 19 DIV COUNT( * ) AS col0
----
95
-19

skipif mysql # not compatible
query II rowsort label-9485
SELECT ALL 95 AS col0, - 19 / COUNT ( * ) AS col0
----
95
-19

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9486
SELECT - - 47 DIV 15 * + COUNT( * ) col1
----
3

skipif mysql # not compatible
query I rowsort label-9486
SELECT - - 47 / 15 * + COUNT ( * ) col1
----
3

query I rowsort
SELECT + - 41 + - 79 col2
----
-120

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9488
SELECT ALL - CAST( NULL AS SIGNED ) + COUNT( - - 13 ) AS col0, - CAST( + 65 AS SIGNED ) + - - 50 DIV 26 * + 42
----
NULL
-23

skipif mysql # not compatible
query II rowsort label-9488
SELECT ALL - CAST ( NULL AS INTEGER ) + COUNT ( - - 13 ) AS col0, - CAST ( + 65 AS INTEGER ) + - - 50 / 26 * + 42
----
NULL
-23

query I rowsort
SELECT DISTINCT - + 86 * 75 AS col2
----
-6450

query I rowsort
SELECT ALL + - ( - 62 ) + 14 AS col1
----
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9491
SELECT - CAST( - + 74 AS SIGNED ) + + + 48 AS col2
----
122

skipif mysql # not compatible
query I rowsort label-9491
SELECT - CAST ( - + 74 AS INTEGER ) + + + 48 AS col2
----
122

query I rowsort
SELECT DISTINCT + 50 * + + 75 * ( + ( + - 61 ) )
----
-228750

onlyif mysql # aggregate syntax: 
query I rowsort label-9493
SELECT DISTINCT + COUNT( * ) + 99 + + + 0 AS col0
----
100

skipif mysql # not compatible
query I rowsort label-9493
SELECT DISTINCT + COUNT ( * ) + 99 + + + 0 AS col0
----
100

query I rowsort
SELECT ALL + 0 + 49 + + ( + 96 )
----
145

query II rowsort
SELECT - 30 AS col1, 19
----
-30
19

query II rowsort
SELECT COALESCE ( - 32, + - 81 ) AS col1, + 98
----
-32
98

onlyif mysql # aggregate syntax: 
query I rowsort label-9497
SELECT DISTINCT - ( ( + + COUNT( ALL 84 ) ) )
----
-1

skipif mysql # not compatible
query I rowsort label-9497
SELECT DISTINCT - ( ( + + COUNT ( ALL 84 ) ) )
----
-1

query I rowsort
SELECT ALL + 50 * - 77 AS col2
----
-3850

onlyif mysql # aggregate syntax: 
query I rowsort label-9499
SELECT - - COUNT( * ) * + 6 AS col2
----
6

skipif mysql # not compatible
query I rowsort label-9499
SELECT - - COUNT ( * ) * + 6 AS col2
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-9500
SELECT ALL SUM( + 49 ) AS col2
----
49

skipif mysql # not compatible
query I rowsort label-9500
SELECT ALL SUM ( + 49 ) AS col2
----
49

query I rowsort
SELECT + + 65 + 21
----
86

query I rowsort
SELECT ALL + 59 + - 59
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9503
SELECT - MAX( DISTINCT - 19 )
----
19

skipif mysql # not compatible
query I rowsort label-9503
SELECT - MAX ( DISTINCT - 19 )
----
19

query I rowsort
SELECT ALL - 84 - + + 63 * 44 + 13
----
-2843

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9505
SELECT ALL - - COALESCE ( + + CAST( NULL AS SIGNED ), 40 ) * COALESCE ( + 73, - + COUNT( * ) * ( + 7 ), + 54 DIV - 27 ) * 51
----
148920

skipif mysql # not compatible
query I rowsort label-9505
SELECT ALL - - COALESCE ( + + CAST ( NULL AS INTEGER ), 40 ) * COALESCE ( + 73, - + COUNT ( * ) * ( + 7 ), + 54 / - 27 ) * 51
----
148920

query I rowsort
SELECT DISTINCT - 31 * - 39 * - 83 AS col1
----
-100347

query I rowsort
SELECT + ( 91 ) AS col2
----
91

onlyif mysql # DIV for integer division: 
query I rowsort label-9508
SELECT ALL + 59 DIV - 4 - 97 AS col1
----
-111

skipif mysql # not compatible
query I rowsort label-9508
SELECT ALL + 59 / - 4 - 97 AS col1
----
-111

query I rowsort
SELECT + 74 * 73 col0
----
5402

onlyif mysql # aggregate syntax: 
query I rowsort label-9510
SELECT - 44 - + COUNT( * )
----
-45

skipif mysql # not compatible
query I rowsort label-9510
SELECT - 44 - + COUNT ( * )
----
-45

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9511
SELECT + CAST( - + 88 AS SIGNED ) AS col1, NULLIF ( ( + - 2 ), - 89 ) + + 22
----
-88
20

skipif mysql # not compatible
query II rowsort label-9511
SELECT + CAST ( - + 88 AS INTEGER ) AS col1, NULLIF ( ( + - 2 ), - 89 ) + + 22
----
-88
20

onlyif mysql # DIV for integer division: 
query I rowsort label-9512
SELECT ALL 14 DIV - - 92 col2
----
0

skipif mysql # not compatible
query I rowsort label-9512
SELECT ALL 14 / - - 92 col2
----
0

query I rowsort
SELECT 50 * + 14 * 48 * + 24 - + ( + + 67 )
----
806333

query II rowsort
SELECT 55 * 7 AS col2, - 29 AS col1
----
385
-29

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9515
SELECT DISTINCT COUNT( - - 61 ) DIV + NULLIF ( - - 65, - 14 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9515
SELECT DISTINCT COUNT ( - - 61 ) / + NULLIF ( - - 65, - 14 ) AS col2
----
0

query I rowsort
SELECT ALL 84 * + + 53 col0
----
4452

onlyif mysql # aggregate syntax: 
query I rowsort label-9517
SELECT DISTINCT COUNT( * ) * + 35
----
35

skipif mysql # not compatible
query I rowsort label-9517
SELECT DISTINCT COUNT ( * ) * + 35
----
35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9518
SELECT CAST( 21 AS SIGNED ) - - - CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) + 95 * - 93 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9518
SELECT CAST ( 21 AS INTEGER ) - - - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) + 95 * - 93 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9519
SELECT DISTINCT 90 * COUNT( * ) AS col1, - 65 * + + 72
----
90
-4680

skipif mysql # not compatible
query II rowsort label-9519
SELECT DISTINCT 90 * COUNT ( * ) AS col1, - 65 * + + 72
----
90
-4680

onlyif mysql # aggregate syntax: 
query I rowsort label-9520
SELECT DISTINCT COUNT( * ) * + ( 87 )
----
87

skipif mysql # not compatible
query I rowsort label-9520
SELECT DISTINCT COUNT ( * ) * + ( 87 )
----
87

onlyif mysql # DIV for integer division: 
query II rowsort label-9521
SELECT 73 + + 99, + 68 DIV + 88 col1
----
172
0

skipif mysql # not compatible
query II rowsort label-9521
SELECT 73 + + 99, + 68 / + 88 col1
----
172
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9522
SELECT 80 * AVG ( DISTINCT + - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9522
SELECT 80 * AVG ( DISTINCT + - CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT - ( - - 56 ) AS col2
----
-56

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9524
SELECT ALL 13 + 91 + + + 50 DIV SUM( + 69 ) AS col0
----
104

skipif mysql # not compatible
query I rowsort label-9524
SELECT ALL 13 + 91 + + + 50 / SUM ( + 69 ) AS col0
----
104

onlyif mysql # aggregate syntax: 
query I rowsort label-9525
SELECT SUM( DISTINCT 55 ) AS col1
----
55

skipif mysql # not compatible
query I rowsort label-9525
SELECT SUM ( DISTINCT 55 ) AS col1
----
55

query I rowsort
SELECT ALL + + 88 + - + 12 * 21 AS col1
----
-164

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-9527
SELECT ALL 36 + CAST( NULL AS DECIMAL ) AS col2, + SUM( 69 )
----
NULL
69

skipif mysql # not compatible
query II rowsort label-9527
SELECT ALL 36 + CAST ( NULL AS REAL ) AS col2, + SUM ( 69 )
----
NULL
69

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9528
SELECT ALL - 40 * + COALESCE ( 41, + 86 + MIN( DISTINCT - 80 ) * 97, + 5 * + 72 - + 73 + + 77 + + MIN( 21 ) * - - 37 - + - ( + 0 ) * 74 DIV COUNT( * ) ) * + COUNT( * ) + + 85
----
-1555

skipif mysql # not compatible
query I rowsort label-9528
SELECT ALL - 40 * + COALESCE ( 41, + 86 + MIN ( DISTINCT - 80 ) * 97, + 5 * + 72 - + 73 + + 77 + + MIN ( 21 ) * - - 37 - + - ( + 0 ) * 74 / COUNT ( * ) ) * + COUNT ( * ) + + 85
----
-1555

query I rowsort
SELECT ALL - + 83 + - 75 AS col2
----
-158

query I rowsort
SELECT DISTINCT - - 58 * - + 70 * + 92 AS col2
----
-373520

query I rowsort
SELECT 81 - + - 6 AS col1
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-9532
SELECT - COUNT( * ) * - - 11
----
-11

skipif mysql # not compatible
query I rowsort label-9532
SELECT - COUNT ( * ) * - - 11
----
-11

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9533
SELECT ALL - + ( + 98 ) * CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-9533
SELECT ALL - + ( + 98 ) * CAST ( NULL AS REAL )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9534
SELECT CAST( + 65 AS SIGNED ) DIV - 34 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-9534
SELECT CAST ( + 65 AS INTEGER ) / - 34 AS col1
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9535
SELECT + CASE - 93 WHEN + + CAST( - ( 26 ) AS SIGNED ) * - 77 * + - 92 THEN + COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-9535
SELECT + CASE - 93 WHEN + + CAST ( - ( 26 ) AS INTEGER ) * - 77 * + - 92 THEN + COUNT ( * ) END
----
NULL

query I rowsort
SELECT ALL + CASE - 11 WHEN + 96 * - 25 THEN - 52 END AS col2
----
NULL

query I rowsort
SELECT + 73 * NULLIF ( 43, + 56 * 40 * + 33 ) AS col2
----
3139

onlyif mysql # aggregate syntax: 
query I rowsort label-9538
SELECT 50 - + ( + + COUNT( * ) )
----
49

skipif mysql # not compatible
query I rowsort label-9538
SELECT 50 - + ( + + COUNT ( * ) )
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-9539
SELECT CASE - COUNT( * ) WHEN - 83 * - COALESCE ( - - COALESCE ( - + ( + COUNT( * ) ), - 95 ), + COUNT( * ), + 49 ) THEN NULL ELSE 36 END
----
36

skipif mysql # not compatible
query I rowsort label-9539
SELECT CASE - COUNT ( * ) WHEN - 83 * - COALESCE ( - - COALESCE ( - + ( + COUNT ( * ) ), - 95 ), + COUNT ( * ), + 49 ) THEN NULL ELSE 36 END
----
36

query I rowsort
SELECT ALL - 44 * 22 + + 76
----
-892

onlyif mysql # aggregate syntax: 
query I rowsort label-9541
SELECT - CASE - 67 WHEN - COUNT( * ) THEN 99 - - - ( - + 84 ) * + 43 ELSE NULL END - + ( + - 33 ) / - 13
----
NULL

skipif mysql # not compatible
query I rowsort label-9541
SELECT - CASE - 67 WHEN - COUNT ( * ) THEN 99 - - - ( - + 84 ) * + 43 ELSE NULL END - + ( + - 33 ) / - 13
----
NULL

query I rowsort
SELECT 58 + 27 AS col0
----
85

query I rowsort
SELECT 29 + - 42 AS col1
----
-13

query I rowsort
SELECT 33 * + 40 AS col0
----
1320

onlyif mysql # aggregate syntax: 
query I rowsort label-9545
SELECT 39 + + - 21 * + COUNT( * ) AS col1
----
18

skipif mysql # not compatible
query I rowsort label-9545
SELECT 39 + + - 21 * + COUNT ( * ) AS col1
----
18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9546
SELECT 74 * - - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9546
SELECT 74 * - - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT 48 + - 12 col0
----
36

query I rowsort
SELECT 93 - + + 26
----
67

query I rowsort
SELECT ALL 8 * - 8 AS col2
----
-64

onlyif mysql # DIV for integer division: 
query I rowsort label-9550
SELECT 64 DIV - 77 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9550
SELECT 64 / - 77 AS col1
----
0

query II rowsort
SELECT ALL - 9 * ( - 23 ), ( + 34 ) AS col1
----
207
34

query I rowsort
SELECT ALL - ( + 88 )
----
-88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9553
SELECT + CAST( NULL AS SIGNED ) * + 74 + ( + - 55 ) + - 14 + 87 * - 77 * - COUNT( * ) + + + 23 * 75, + MIN( 98 ) + - - 90 AS col0
----
NULL
188

skipif mysql # not compatible
query II rowsort label-9553
SELECT + CAST ( NULL AS INTEGER ) * + 74 + ( + - 55 ) + - 14 + 87 * - 77 * - COUNT ( * ) + + + 23 * 75, + MIN ( 98 ) + - - 90 AS col0
----
NULL
188

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9554
SELECT ALL - 91 * COALESCE ( - - 56, + 76 + + NULLIF ( 31, - + 99 ) ) * - 87 - 8 * + - COALESCE ( 4, - 7 + - - CAST( NULL AS SIGNED ) ) - + ( 35 ) AS col1
----
443349

skipif mysql # not compatible
query I rowsort label-9554
SELECT ALL - 91 * COALESCE ( - - 56, + 76 + + NULLIF ( 31, - + 99 ) ) * - 87 - 8 * + - COALESCE ( 4, - 7 + - - CAST ( NULL AS INTEGER ) ) - + ( 35 ) AS col1
----
443349

query I rowsort
SELECT ALL 61 + + 32
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-9556
SELECT ALL - 82 * + COUNT( * ) * + 61
----
-5002

skipif mysql # not compatible
query I rowsort label-9556
SELECT ALL - 82 * + COUNT ( * ) * + 61
----
-5002

query I rowsort
SELECT 90 * - 47 AS col2
----
-4230

onlyif mysql # aggregate syntax: 
query I rowsort label-9558
SELECT ( + COUNT( - 62 ) ) + 6
----
7

skipif mysql # not compatible
query I rowsort label-9558
SELECT ( + COUNT ( - 62 ) ) + 6
----
7

query II rowsort
SELECT 34 AS col2, 81
----
34
81

onlyif mysql # aggregate syntax: 
query I rowsort label-9560
SELECT COUNT( * ) * 28 + 24 - - - COUNT( * )
----
51

skipif mysql # not compatible
query I rowsort label-9560
SELECT COUNT ( * ) * 28 + 24 - - - COUNT ( * )
----
51

query I rowsort
SELECT DISTINCT 60 + + 41 AS col0
----
101

query I rowsort
SELECT 25 * + 17 col2
----
425

query I rowsort
SELECT DISTINCT 36 + 25 AS col0
----
61

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9564
SELECT ALL MAX( DISTINCT - CAST( NULL AS DECIMAL ) ) * + COUNT( * ) * + - MIN( - ( 5 ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9564
SELECT ALL MAX ( DISTINCT - CAST ( NULL AS REAL ) ) * + COUNT ( * ) * + - MIN ( - ( 5 ) ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT + 66 + - + 40 - + 64
----
-38

query I rowsort
SELECT DISTINCT - 2 * 45 col1
----
-90

onlyif mysql # aggregate syntax: 
query II rowsort label-9567
SELECT MIN( 75 ) + - - 94, 13 AS col0
----
169
13

skipif mysql # not compatible
query II rowsort label-9567
SELECT MIN ( 75 ) + - - 94, 13 AS col0
----
169
13

query I rowsort
SELECT DISTINCT + 33 + - 31
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-9569
SELECT - MAX( ALL + - 31 ) * + COUNT( * ) + + 43
----
74

skipif mysql # not compatible
query I rowsort label-9569
SELECT - MAX ( ALL + - 31 ) * + COUNT ( * ) + + 43
----
74

query I rowsort
SELECT ALL 38 + - 1 AS col2
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-9571
SELECT MIN( DISTINCT - + 15 )
----
-15

skipif mysql # not compatible
query I rowsort label-9571
SELECT MIN ( DISTINCT - + 15 )
----
-15

query I rowsort
SELECT ALL + 84 * + + ( 64 )
----
5376

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9573
SELECT CAST( + 96 AS SIGNED ) + + - COALESCE ( - + 12, - - COUNT( * ) DIV + 74 + - - 78 + + SUM( DISTINCT + 50 ) + - 80 DIV + + 52 ) AS col0
----
108

skipif mysql # not compatible
query I rowsort label-9573
SELECT CAST ( + 96 AS INTEGER ) + + - COALESCE ( - + 12, - - COUNT ( * ) / + 74 + - - 78 + + SUM ( DISTINCT + 50 ) + - 80 / + + 52 ) AS col0
----
108

onlyif mysql # aggregate syntax: 
query I rowsort label-9574
SELECT 40 + - - 92 + - COUNT( * ) col2
----
131

skipif mysql # not compatible
query I rowsort label-9574
SELECT 40 + - - 92 + - COUNT ( * ) col2
----
131

onlyif mysql # aggregate syntax: 
query II rowsort label-9575
SELECT DISTINCT COUNT( 22 ) - + 7 * - 88 + 17 AS col1, + COUNT( * ) - - 61 col0
----
634
62

skipif mysql # not compatible
query II rowsort label-9575
SELECT DISTINCT COUNT ( 22 ) - + 7 * - 88 + 17 AS col1, + COUNT ( * ) - - 61 col0
----
634
62

query II rowsort
SELECT 86 + - + ( 36 ) + - 91 + - - 26 - + + 35 AS col1, 18 + 99 col1
----
-50
117

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9577
SELECT ALL - - 56 - + 0 + ( + 22 ) * - 38 * + COUNT( * ) + + COUNT( * ) - - 85 + NULLIF ( + 57, ( - 8 ) * - - AVG ( ALL 50 ) + + 81 * CAST( - + COUNT( * ) AS SIGNED ) ) * + 85 AS col1
----
4151

skipif mysql # not compatible
query I rowsort label-9577
SELECT ALL - - 56 - + 0 + ( + 22 ) * - 38 * + COUNT ( * ) + + COUNT ( * ) - - 85 + NULLIF ( + 57, ( - 8 ) * - - AVG ( ALL 50 ) + + 81 * CAST ( - + COUNT ( * ) AS INTEGER ) ) * + 85 AS col1
----
4151

query I rowsort
SELECT DISTINCT - NULLIF ( - 57, - - 79 )
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-9579
SELECT ALL - - 81 * + + COUNT( * ) AS col2
----
81

skipif mysql # not compatible
query I rowsort label-9579
SELECT ALL - - 81 * + + COUNT ( * ) AS col2
----
81

query I rowsort
SELECT 65 + - - 69 * + 75
----
5240

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9581
SELECT + 93 + 80 + CAST( 38 AS SIGNED ) / + CAST( NULL AS SIGNED ) col2, 41 + CAST( NULL AS SIGNED )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-9581
SELECT + 93 + 80 + CAST ( 38 AS INTEGER ) / + CAST ( NULL AS INTEGER ) col2, 41 + CAST ( NULL AS INTEGER )
----
NULL
NULL

query II rowsort
SELECT 91 AS col2, + 72 AS col1
----
91
72

query I rowsort
SELECT + 37 * 6
----
222

query I rowsort
SELECT 57 * 42 * + 20
----
47880

onlyif mysql # aggregate syntax: 
query I rowsort label-9585
SELECT ALL + 86 * - MAX( - 48 )
----
4128

skipif mysql # not compatible
query I rowsort label-9585
SELECT ALL + 86 * - MAX ( - 48 )
----
4128

query II rowsort
SELECT 87 AS col1, 67 AS col1
----
87
67

onlyif mysql # aggregate syntax: 
query I rowsort label-9587
SELECT - NULLIF ( - COUNT( * ), + - COUNT( * ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9587
SELECT - NULLIF ( - COUNT ( * ), + - COUNT ( * ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9588
SELECT - 27 + - 77, ( CASE + COUNT( * ) WHEN CASE - 67 WHEN + 30 * + 62 * + - COUNT( * ) THEN NULL WHEN 85 * 9 / + 29 * 35 THEN 53 ELSE + COUNT( * ) END * NULLIF ( - SUM( - 79 ), + - 42 * COUNT( * ) * + ( - 17 ) ) + - 78 * - 27 + 99 + 58 / + ( + - 70 ) THEN - + 3 END ) + 93 * COUNT( * ) + + 66 AS col2
----
-104
NULL

skipif mysql # not compatible
query II rowsort label-9588
SELECT - 27 + - 77, ( CASE + COUNT ( * ) WHEN CASE - 67 WHEN + 30 * + 62 * + - COUNT ( * ) THEN NULL WHEN 85 * 9 / + 29 * 35 THEN 53 ELSE + COUNT ( * ) END * NULLIF ( - SUM ( - 79 ), + - 42 * COUNT ( * ) * + ( - 17 ) ) + - 78 * - 27 + 99 + 58 / + ( + - 70 ) THEN - + 3 END ) + 93 * COUNT ( * ) + + 66 AS col2
----
-104
NULL

query I rowsort
SELECT ALL - 13 * + 63 col2
----
-819

onlyif mysql # aggregate syntax: 
query I rowsort label-9590
SELECT - MAX( - - 37 ) * 8
----
-296

skipif mysql # not compatible
query I rowsort label-9590
SELECT - MAX ( - - 37 ) * 8
----
-296

onlyif mysql # aggregate syntax: 
query I rowsort label-9591
SELECT ALL MAX( 48 ) col1
----
48

skipif mysql # not compatible
query I rowsort label-9591
SELECT ALL MAX ( 48 ) col1
----
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9592
SELECT - 69 AS col1, + CAST( 12 AS SIGNED ) - - 4 + - ( + 13 ) - + CAST( - CASE + 70 WHEN - 55 THEN + COALESCE ( 62, - - 56, - COUNT( ALL - + 51 ), 10 / 26 * - + 86 + + 94, COALESCE ( - + 37, 87, + 62 + + ( - 14 ), 14 ) ) ELSE + + 30 END AS SIGNED ) * + - COUNT( * ) * COUNT( ALL 4 ) + - 39
----
-69
-66

skipif mysql # not compatible
query II rowsort label-9592
SELECT - 69 AS col1, + CAST ( 12 AS INTEGER ) - - 4 + - ( + 13 ) - + CAST ( - CASE + 70 WHEN - 55 THEN + COALESCE ( 62, - - 56, - COUNT ( ALL - + 51 ), 10 / 26 * - + 86 + + 94, COALESCE ( - + 37, 87, + 62 + + ( - 14 ), 14 ) ) ELSE + + 30 END AS INTEGER ) * + - COUNT ( * ) * COUNT ( ALL 4 ) + - 39
----
-69
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-9593
SELECT DISTINCT MAX( 21 )
----
21

skipif mysql # not compatible
query I rowsort label-9593
SELECT DISTINCT MAX ( 21 )
----
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9594
SELECT DISTINCT NULLIF ( - CAST( + 68 AS SIGNED ), - 0 + - 6 ) AS col2
----
-68

skipif mysql # not compatible
query I rowsort label-9594
SELECT DISTINCT NULLIF ( - CAST ( + 68 AS INTEGER ), - 0 + - 6 ) AS col2
----
-68

query II rowsort
SELECT 25 col2, - 92 AS col0
----
25
-92

query I rowsort
SELECT ALL + COALESCE ( + 82, + 52, - 71 + + - 73 )
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-9597
SELECT - COUNT( * ) * 3 AS col0
----
-3

skipif mysql # not compatible
query I rowsort label-9597
SELECT - COUNT ( * ) * 3 AS col0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9598
SELECT NULLIF ( + CAST( NULL AS SIGNED ), + - 89 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9598
SELECT NULLIF ( + CAST ( NULL AS INTEGER ), + - 89 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9599
SELECT ALL 83 * + - 58 + - 24 - + ( + - 23 ) + - NULLIF ( - 85, 92 DIV + - SUM( - ( 78 ) ) ) + - 7 - + + NULLIF ( + + 39, 24 + - 83 ) DIV 53 AS col1, + SUM( ALL - 48 )
----
-4737
-48

skipif mysql # not compatible
query II rowsort label-9599
SELECT ALL 83 * + - 58 + - 24 - + ( + - 23 ) + - NULLIF ( - 85, 92 / + - SUM ( - ( 78 ) ) ) + - 7 - + + NULLIF ( + + 39, 24 + - 83 ) / 53 AS col1, + SUM ( ALL - 48 )
----
-4737
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-9600
SELECT 24 * - ( - 29 ) * - + 21 - + + COUNT( * )
----
-14617

skipif mysql # not compatible
query I rowsort label-9600
SELECT 24 * - ( - 29 ) * - + 21 - + + COUNT ( * )
----
-14617

query I rowsort
SELECT ALL - 51 * 43
----
-2193

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9602
SELECT + 30 + - + 20 * - 4 + CASE + - 37 WHEN - CASE - - 3 WHEN MAX( ALL - 10 ) THEN + - 21 * - + 40 / - - CAST( NULL AS SIGNED ) ELSE NULL END THEN + MAX( ALL - CAST( - 41 AS DECIMAL ) ) * - 43 WHEN - - 64 + 2 THEN - 6 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9602
SELECT + 30 + - + 20 * - 4 + CASE + - 37 WHEN - CASE - - 3 WHEN MAX ( ALL - 10 ) THEN + - 21 * - + 40 / - - CAST ( NULL AS INTEGER ) ELSE NULL END THEN + MAX ( ALL - CAST ( - 41 AS REAL ) ) * - 43 WHEN - - 64 + 2 THEN - 6 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9603
SELECT ALL + COUNT( * ) * - 90 + - + CAST( - + 0 AS SIGNED ) AS col0
----
-90

skipif mysql # not compatible
query I rowsort label-9603
SELECT ALL + COUNT ( * ) * - 90 + - + CAST ( - + 0 AS INTEGER ) AS col0
----
-90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9604
SELECT DISTINCT MAX( + CAST( NULL AS SIGNED ) ) * - 93 * + 8
----
NULL

skipif mysql # not compatible
query I rowsort label-9604
SELECT DISTINCT MAX ( + CAST ( NULL AS INTEGER ) ) * - 93 * + 8
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9605
SELECT ALL - - 65 * + CAST( 82 AS SIGNED ) + MIN( - + 48 ) * - 46 + - 74 + - 41 + - 7 * COUNT( * ) * - 6 + + + 60
----
7525

skipif mysql # not compatible
query I rowsort label-9605
SELECT ALL - - 65 * + CAST ( 82 AS INTEGER ) + MIN ( - + 48 ) * - 46 + - 74 + - 41 + - 7 * COUNT ( * ) * - 6 + + + 60
----
7525

onlyif mysql # aggregate syntax: 
query II rowsort label-9606
SELECT ALL + + COUNT( * ), - 19 * + COALESCE ( COUNT( DISTINCT + 64 ), 90 * + 52 ) * ( + 24 ) AS col2
----
1
-456

skipif mysql # not compatible
query II rowsort label-9606
SELECT ALL + + COUNT ( * ), - 19 * + COALESCE ( COUNT ( DISTINCT + 64 ), 90 * + 52 ) * ( + 24 ) AS col2
----
1
-456

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9607
SELECT DISTINCT + - 67 * + + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-9607
SELECT DISTINCT + - 67 * + + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9608
SELECT - 50 * - 51 - + + 82 * + + 88 * - COUNT( * ) - + 18 * + ( + COUNT( * ) ) - - + 82
----
9830

skipif mysql # not compatible
query I rowsort label-9608
SELECT - 50 * - 51 - + + 82 * + + 88 * - COUNT ( * ) - + 18 * + ( + COUNT ( * ) ) - - + 82
----
9830

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9609
SELECT - + CAST( NULL AS SIGNED ) * + COUNT( * ) * + + ( - ( + COALESCE ( ( - - SUM( ALL - - 27 ) ), + 49, + + 15 ) ) ) + + 93 + + 10 + + NULLIF ( 52, + - 28 ) + + 53 / + 25 + - 80 + - 25 * + 59 + 69, + CASE 77 WHEN - + ( - 55 ) THEN - 95 END
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-9609
SELECT - + CAST ( NULL AS INTEGER ) * + COUNT ( * ) * + + ( - ( + COALESCE ( ( - - SUM ( ALL - - 27 ) ), + 49, + + 15 ) ) ) + + 93 + + 10 + + NULLIF ( 52, + - 28 ) + + 53 / + 25 + - 80 + - 25 * + 59 + 69, + CASE 77 WHEN - + ( - 55 ) THEN - 95 END
----
NULL
NULL

query II rowsort
SELECT - - 49 + COALESCE ( 53, 6 ), COALESCE ( - 42, + 2, - ( - - 42 ) ) AS col2
----
102
-42

query I rowsort
SELECT DISTINCT - - 80 * 70 + + 39 - 30 AS col1
----
5609

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9612
SELECT ALL 58 DIV - MAX( DISTINCT + 17 ) AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-9612
SELECT ALL 58 / - MAX ( DISTINCT + 17 ) AS col2
----
-3

query I rowsort
SELECT - 28 * - 88 AS col2
----
2464

query II rowsort
SELECT - 43 col0, - 41 AS col0
----
-43
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-9615
SELECT + + MIN( ALL + 23 )
----
23

skipif mysql # not compatible
query I rowsort label-9615
SELECT + + MIN ( ALL + 23 )
----
23

query I rowsort
SELECT ALL + + 11 AS col2
----
11

onlyif mysql # DIV for integer division: 
query I rowsort label-9617
SELECT + - 8 DIV - + 7 col1
----
1

skipif mysql # not compatible
query I rowsort label-9617
SELECT + - 8 / - + 7 col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9618
SELECT + + COUNT( * ) + ( + - 49 ) + + - 44 / + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9618
SELECT + + COUNT ( * ) + ( + - 49 ) + + - 44 / + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - 17 - + 15 AS col2
----
-32

onlyif mysql # aggregate syntax: 
query II rowsort label-9620
SELECT 87 AS col1, - COUNT( ALL + 4 ) AS col2
----
87
-1

skipif mysql # not compatible
query II rowsort label-9620
SELECT 87 AS col1, - COUNT ( ALL + 4 ) AS col2
----
87
-1

query II rowsort
SELECT ALL 77 AS col1, - 72
----
77
-72

query I rowsort
SELECT + 31 + 28 col1
----
59

query I rowsort
SELECT + 5 * + + 50
----
250

query I rowsort
SELECT + 21 + 93 AS col2
----
114

onlyif mysql # aggregate syntax: 
query I rowsort label-9625
SELECT DISTINCT MAX( DISTINCT + + 60 )
----
60

skipif mysql # not compatible
query I rowsort label-9625
SELECT DISTINCT MAX ( DISTINCT + + 60 )
----
60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9626
SELECT + CASE - COUNT( * ) WHEN + 22 * + 5 - + CASE + + COUNT( * ) WHEN COUNT( * ) DIV + + 26 + + + 27 THEN + 39 * 10 WHEN - COUNT( * ) DIV - - 40 + + ( CAST( 33 AS SIGNED ) ) * 96 THEN + ( - 74 ) END + + 20 * + + 0 + + 2 THEN NULL ELSE + 86 DIV - - 43 + + + CAST( - ( - - 56 ) AS SIGNED ) END * + - 44 * - - 43 + - 12 AS col2
----
102156

skipif mysql # not compatible
query I rowsort label-9626
SELECT + CASE - COUNT ( * ) WHEN + 22 * + 5 - + CASE + + COUNT ( * ) WHEN COUNT ( * ) / + + 26 + + + 27 THEN + 39 * 10 WHEN - COUNT ( * ) / - - 40 + + ( CAST ( 33 AS INTEGER ) ) * 96 THEN + ( - 74 ) END + + 20 * + + 0 + + 2 THEN NULL ELSE + 86 / - - 43 + + + CAST ( - ( - - 56 ) AS INTEGER ) END * + - 44 * - - 43 + - 12 AS col2
----
102156

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9627
SELECT ALL 79 + CAST( NULL AS SIGNED ) * - - 75
----
NULL

skipif mysql # not compatible
query I rowsort label-9627
SELECT ALL 79 + CAST ( NULL AS INTEGER ) * - - 75
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9628
SELECT ALL - SUM( 98 ) + 31 * + ( - 64 )
----
-2082

skipif mysql # not compatible
query I rowsort label-9628
SELECT ALL - SUM ( 98 ) + 31 * + ( - 64 )
----
-2082

query II rowsort
SELECT + 67 + - 50 * - 47 + - ( - - 69 ) AS col2, 56
----
2348
56

query I rowsort
SELECT ALL 73 + 73 + + 20 AS col1
----
166

onlyif mysql # aggregate syntax: 
query I rowsort label-9631
SELECT ALL COALESCE ( + 98, + 46 * ( 7 ) + + 10 + + COUNT( * ) ) AS col1
----
98

skipif mysql # not compatible
query I rowsort label-9631
SELECT ALL COALESCE ( + 98, + 46 * ( 7 ) + + 10 + + COUNT ( * ) ) AS col1
----
98

query I rowsort
SELECT DISTINCT 90 + - - 67 - + - ( - 98 ) AS col0
----
59

onlyif mysql # DIV for integer division: 
query I rowsort label-9633
SELECT + CASE 76 WHEN + 38 * + + 68 + 61 THEN NULL ELSE - 66 DIV 67 DIV + + 23 END + 17 * 83 DIV 56 AS col1
----
25

skipif mysql # not compatible
query I rowsort label-9633
SELECT + CASE 76 WHEN + 38 * + + 68 + 61 THEN NULL ELSE - 66 / 67 / + + 23 END + 17 * 83 / 56 AS col1
----
25

query I rowsort
SELECT DISTINCT 67 * + 93 * + 31 AS col0
----
193161

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9635
SELECT ALL 25 + 22 + - ( + + 92 ) / - 32 * - CAST( NULL AS DECIMAL ) * + 20 + + 97
----
NULL

skipif mysql # not compatible
query I rowsort label-9635
SELECT ALL 25 + 22 + - ( + + 92 ) / - 32 * - CAST ( NULL AS REAL ) * + 20 + + 97
----
NULL

query I rowsort
SELECT + 31 + - ( 70 ) AS col2
----
-39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9637
SELECT + CAST( NULL AS SIGNED ) + + + COUNT( * ) * - 7 + + 5 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9637
SELECT + CAST ( NULL AS INTEGER ) + + + COUNT ( * ) * - 7 + + 5 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9638
SELECT - 13 - + 2 + - 31 + - 94 * 45 + + COALESCE ( 20, + NULLIF ( + + 10, + NULLIF ( MIN( + 81 ), + COUNT( * ) ) ) DIV COUNT( * ) DIV - - COUNT( * ) * - + CAST( NULL AS SIGNED ) + 32 ) AS col2, - COUNT( * ) * 37 * 64
----
-4256
-2368

skipif mysql # not compatible
query II rowsort label-9638
SELECT - 13 - + 2 + - 31 + - 94 * 45 + + COALESCE ( 20, + NULLIF ( + + 10, + NULLIF ( MIN ( + 81 ), + COUNT ( * ) ) ) / COUNT ( * ) / - - COUNT ( * ) * - + CAST ( NULL AS INTEGER ) + 32 ) AS col2, - COUNT ( * ) * 37 * 64
----
-4256
-2368

query I rowsort
SELECT ALL + 20 * - 79 * + 4
----
-6320

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9640
SELECT CAST( ( 96 ) AS SIGNED ) AS col1, 35 + - COUNT( * ) + + 76
----
96
110

skipif mysql # not compatible
query II rowsort label-9640
SELECT CAST ( ( 96 ) AS INTEGER ) AS col1, 35 + - COUNT ( * ) + + 76
----
96
110

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9641
SELECT CAST( NULL AS SIGNED ) * 38 / - ( 78 ) + 29 col0, CAST( 18 AS SIGNED )
----
NULL
18

skipif mysql # not compatible
query II rowsort label-9641
SELECT CAST ( NULL AS INTEGER ) * 38 / - ( 78 ) + 29 col0, CAST ( 18 AS INTEGER )
----
NULL
18

query I rowsort
SELECT DISTINCT + ( 1 )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9643
SELECT - CASE + 21 WHEN - 64 * 85 THEN + + 69 + - 0 ELSE - 77 END DIV - + 32 + + 47
----
45

skipif mysql # not compatible
query I rowsort label-9643
SELECT - CASE + 21 WHEN - 64 * 85 THEN + + 69 + - 0 ELSE - 77 END / - + 32 + + 47
----
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9644
SELECT - - 64 + - - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9644
SELECT - - 64 + - - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT - 59 * + + 13
----
-767

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9646
SELECT DISTINCT + + 39 * 61 + + 76 + + 69 - - - 30 * CASE 66 WHEN + 67 / - 41 THEN AVG ( + 67 ) * + + CAST( NULL AS SIGNED ) - + 29 END * - 6 * - 49
----
NULL

skipif mysql # not compatible
query I rowsort label-9646
SELECT DISTINCT + + 39 * 61 + + 76 + + 69 - - - 30 * CASE 66 WHEN + 67 / - 41 THEN AVG ( + 67 ) * + + CAST ( NULL AS INTEGER ) - + 29 END * - 6 * - 49
----
NULL

query I rowsort
SELECT - - 12 * - 89 * 64 AS col1
----
-68352

onlyif mysql # aggregate syntax: 
query I rowsort label-9648
SELECT ALL + COALESCE ( + COUNT( * ), - 68, + COUNT( DISTINCT + 88 ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9648
SELECT ALL + COALESCE ( + COUNT ( * ), - 68, + COUNT ( DISTINCT + 88 ) ) AS col1
----
1

query II rowsort
SELECT + + ( + 95 ) AS col2, 28 * + 43 AS col0
----
95
1204

onlyif mysql # aggregate syntax: 
query II rowsort label-9650
SELECT ALL + 57 * + COUNT( * ), 25 * - 15 col1
----
57
-375

skipif mysql # not compatible
query II rowsort label-9650
SELECT ALL + 57 * + COUNT ( * ), 25 * - 15 col1
----
57
-375

onlyif mysql # aggregate syntax: 
query I rowsort label-9651
SELECT ALL + + 97 * 30 * ( + - NULLIF ( + 94, - ( COUNT( - 2 ) ) / 46 ) ) AS col0
----
-273540

skipif mysql # not compatible
query I rowsort label-9651
SELECT ALL + + 97 * 30 * ( + - NULLIF ( + 94, - ( COUNT ( - 2 ) ) / 46 ) ) AS col0
----
-273540

onlyif mysql # aggregate syntax: 
query II rowsort label-9652
SELECT - COUNT( * ) + + 50 AS col1, COUNT( * ) AS col2
----
49
1

skipif mysql # not compatible
query II rowsort label-9652
SELECT - COUNT ( * ) + + 50 AS col1, COUNT ( * ) AS col2
----
49
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9653
SELECT + COUNT( * ) + + - 93
----
-92

skipif mysql # not compatible
query I rowsort label-9653
SELECT + COUNT ( * ) + + - 93
----
-92

query I rowsort
SELECT + 98 + 56 + - 58 AS col1
----
96

query II rowsort
SELECT DISTINCT 77 + 84 * - 4 AS col1, 57 AS col0
----
-259
57

onlyif mysql # aggregate syntax: 
query II rowsort label-9656
SELECT 50, COUNT( * ) AS col2
----
50
1

skipif mysql # not compatible
query II rowsort label-9656
SELECT 50, COUNT ( * ) AS col2
----
50
1

query I rowsort
SELECT ALL 85 + 14 AS col0
----
99

onlyif mysql # DIV for integer division: 
query I rowsort label-9658
SELECT ALL - 50 DIV 82 col2
----
0

skipif mysql # not compatible
query I rowsort label-9658
SELECT ALL - 50 / 82 col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9659
SELECT SUM( 25 ) + + - 78 AS col0
----
-53

skipif mysql # not compatible
query I rowsort label-9659
SELECT SUM ( 25 ) + + - 78 AS col0
----
-53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9660
SELECT ALL MIN( - + CAST( NULL AS SIGNED ) ) * 88 * - 22
----
NULL

skipif mysql # not compatible
query I rowsort label-9660
SELECT ALL MIN ( - + CAST ( NULL AS INTEGER ) ) * 88 * - 22
----
NULL

query I rowsort
SELECT DISTINCT 91 + - 44 + 87 * + 44 AS col2
----
3875

query II rowsort
SELECT 42, 57 col0
----
42
57

onlyif mysql # aggregate syntax: 
query II rowsort label-9663
SELECT - 23 AS col1, COUNT( * ) col2
----
-23
1

skipif mysql # not compatible
query II rowsort label-9663
SELECT - 23 AS col1, COUNT ( * ) col2
----
-23
1

query II rowsort
SELECT ( 48 ) + 91, - 21 + 31 AS col2
----
139
10

onlyif mysql # aggregate syntax: 
query I rowsort label-9665
SELECT COUNT( * ) + + - 0 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9665
SELECT COUNT ( * ) + + - 0 AS col1
----
1

query II rowsort
SELECT - 34 AS col2, 15 * + - 61 AS col2
----
-34
-915

query I rowsort
SELECT DISTINCT 48 + 56
----
104

query II rowsort
SELECT DISTINCT 90 AS col0, + 83 AS col2
----
90
83

onlyif mysql # aggregate syntax: 
query I rowsort label-9669
SELECT ALL SUM( DISTINCT 71 ) - 91
----
-20

skipif mysql # not compatible
query I rowsort label-9669
SELECT ALL SUM ( DISTINCT 71 ) - 91
----
-20

query III rowsort
SELECT ALL 44, 47 / CASE + 39 WHEN - - 18 + + - 31 THEN + 27 ELSE NULL END + + + 2 * - 52 AS col1, + 72 * - - 58 - - 9 AS col0
----
44
NULL
4185

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9671
SELECT DISTINCT - 60 AS col2, + CAST( - 96 AS SIGNED )
----
-60
-96

skipif mysql # not compatible
query II rowsort label-9671
SELECT DISTINCT - 60 AS col2, + CAST ( - 96 AS INTEGER )
----
-60
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-9672
SELECT ALL COUNT( * ) - + 73 - 57 AS col0
----
-129

skipif mysql # not compatible
query I rowsort label-9672
SELECT ALL COUNT ( * ) - + 73 - 57 AS col0
----
-129

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9673
SELECT ALL 4 * - CAST( NULL AS SIGNED ) * 71 + 42 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9673
SELECT ALL 4 * - CAST ( NULL AS INTEGER ) * 71 + 42 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9674
SELECT NULLIF ( + + COUNT( * ), 74 ) DIV - + 64 + 1 col1
----
1

skipif mysql # not compatible
query I rowsort label-9674
SELECT NULLIF ( + + COUNT ( * ), 74 ) / - + 64 + 1 col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9675
SELECT ALL + 96 * 44 + - + ( + - MAX( DISTINCT + 21 ) )
----
4245

skipif mysql # not compatible
query I rowsort label-9675
SELECT ALL + 96 * 44 + - + ( + - MAX ( DISTINCT + 21 ) )
----
4245

query I rowsort
SELECT + 83 * - + 63
----
-5229

onlyif mysql # aggregate syntax: 
query I rowsort label-9677
SELECT ALL + 21 * + 30 * - COUNT( * ) + + MAX( ALL + 35 ) AS col0
----
-595

skipif mysql # not compatible
query I rowsort label-9677
SELECT ALL + 21 * + 30 * - COUNT ( * ) + + MAX ( ALL + 35 ) AS col0
----
-595

query I rowsort
SELECT DISTINCT - 63 * + + 17 * + + 94 * - 5 + + 76 - 99
----
503347

query I rowsort
SELECT ALL + 52 * - + 20 - 2
----
-1042

query I rowsort
SELECT - 24 - 30 * - 98
----
2916

query II rowsort
SELECT + NULLIF ( + 35, 74 ) AS col2, 8
----
35
8

query I rowsort
SELECT ALL - + 16 AS col0
----
-16

query I rowsort
SELECT ALL - - NULLIF ( 68, - + 5 ) col0
----
68

query I rowsort
SELECT - 4 + - ( ( - + 9 ) ) - - 25
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-9685
SELECT ALL - MIN( + - 42 )
----
42

skipif mysql # not compatible
query I rowsort label-9685
SELECT ALL - MIN ( + - 42 )
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-9686
SELECT + CASE COUNT( * ) WHEN + 90 * 43 * - 47 THEN NULL WHEN + - ( - + 57 ) THEN + 50 * - 71 * - 15 * - 51 / - 58 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9686
SELECT + CASE COUNT ( * ) WHEN + 90 * 43 * - 47 THEN NULL WHEN + - ( - + 57 ) THEN + 50 * - 71 * - 15 * - 51 / - 58 END AS col1
----
NULL

query I rowsort
SELECT ALL + + 94 * - 48 AS col2
----
-4512

query II rowsort
SELECT DISTINCT - - 5, + 62 * 47 AS col2
----
5
2914

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9689
SELECT DISTINCT - 37 + - ( - - 58 ) DIV + NULLIF ( + 71, COUNT( DISTINCT + - 33 ) + + 53 + - - 86 + - 18 + - 12 DIV - CAST( NULL AS SIGNED ) ) * - CAST( - - 20 AS SIGNED ) + + + 64 - - COUNT( * )
----
28

skipif mysql # not compatible
query I rowsort label-9689
SELECT DISTINCT - 37 + - ( - - 58 ) / + NULLIF ( + 71, COUNT ( DISTINCT + - 33 ) + + 53 + - - 86 + - 18 + - 12 / - CAST ( NULL AS INTEGER ) ) * - CAST ( - - 20 AS INTEGER ) + + + 64 - - COUNT ( * )
----
28

query I rowsort
SELECT DISTINCT + 9 + - + 3
----
6

query II rowsort
SELECT DISTINCT - 46 * + - 46 AS col1, ( - 58 ) AS col2
----
2116
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-9692
SELECT ALL + 92 + + + 29 * + COUNT( * )
----
121

skipif mysql # not compatible
query I rowsort label-9692
SELECT ALL + 92 + + + 29 * + COUNT ( * )
----
121

onlyif mysql # aggregate syntax: 
query II rowsort label-9693
SELECT 64 + - + 98, COUNT( * ) AS col0
----
-34
1

skipif mysql # not compatible
query II rowsort label-9693
SELECT 64 + - + 98, COUNT ( * ) AS col0
----
-34
1

query I rowsort
SELECT 73 + + + 50
----
123

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9695
SELECT 83 + - 85 + + CAST( 46 AS SIGNED ) * 0 * - MAX( + 91 )
----
-2

skipif mysql # not compatible
query I rowsort label-9695
SELECT 83 + - 85 + + CAST ( 46 AS INTEGER ) * 0 * - MAX ( + 91 )
----
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9696
SELECT 93 + MAX( + + 48 ) + - 13 + + 0 * + - ( - + 32 ) * 94 * - - 36 * 9 - - MIN( DISTINCT - - ( - 43 ) ) DIV + - COUNT( * ) + MIN( ALL + - 35 ) * COUNT( * ) * 33 * 14 DIV + + 79
----
-33

skipif mysql # not compatible
query I rowsort label-9696
SELECT 93 + MAX ( + + 48 ) + - 13 + + 0 * + - ( - + 32 ) * 94 * - - 36 * 9 - - MIN ( DISTINCT - - ( - 43 ) ) / + - COUNT ( * ) + MIN ( ALL + - 35 ) * COUNT ( * ) * 33 * 14 / + + 79
----
-33

query I rowsort
SELECT ALL 96 - - + 59 + + - 32 + - 40
----
83

query I rowsort
SELECT 99 * - 11 * - 51
----
55539

onlyif mysql # aggregate syntax: 
query I rowsort label-9699
SELECT ( COUNT( * ) ) + - 1 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9699
SELECT ( COUNT ( * ) ) + - 1 AS col0
----
0

query I rowsort
SELECT ( + 49 ) * + 1 AS col1
----
49

query I rowsort
SELECT 8 + - - 68 AS col2
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-9702
SELECT - MIN( 40 ) col0
----
-40

skipif mysql # not compatible
query I rowsort label-9702
SELECT - MIN ( 40 ) col0
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-9703
SELECT ALL + 67 * COUNT( * )
----
67

skipif mysql # not compatible
query I rowsort label-9703
SELECT ALL + 67 * COUNT ( * )
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-9704
SELECT + CASE + CASE + 69 WHEN + COUNT( * ) * - 60 * - 37 * - ( - 25 ) * + - 88 * + 58 THEN + COUNT( * ) END WHEN - 6 + + 82 THEN + 77 WHEN 14 THEN NULL END + + 49 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9704
SELECT + CASE + CASE + 69 WHEN + COUNT ( * ) * - 60 * - 37 * - ( - 25 ) * + - 88 * + 58 THEN + COUNT ( * ) END WHEN - 6 + + 82 THEN + 77 WHEN 14 THEN NULL END + + 49 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9705
SELECT CAST( NULL AS SIGNED ) - + ( + 78 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9705
SELECT CAST ( NULL AS INTEGER ) - + ( + 78 ) AS col0
----
NULL

query I rowsort
SELECT - 81 * - 81
----
6561

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9707
SELECT ALL - - ( 7 ), CAST( + COUNT( * ) AS SIGNED ) AS col1
----
7
1

skipif mysql # not compatible
query II rowsort label-9707
SELECT ALL - - ( 7 ), CAST ( + COUNT ( * ) AS INTEGER ) AS col1
----
7
1

query I rowsort
SELECT 40 * 1 * + 52
----
2080

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9709
SELECT ALL - 40 DIV + NULLIF ( ( + + 6 ), - 69 ) + + + COUNT( * )
----
-5

skipif mysql # not compatible
query I rowsort label-9709
SELECT ALL - 40 / + NULLIF ( ( + + 6 ), - 69 ) + + + COUNT ( * )
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-9710
SELECT - 21 * - 65 + - 36 - - COUNT( * ) * 53 + - COUNT( * ) + + - 61 + - - COUNT( * ) + + - 15 * + + NULLIF ( 97, + 35 )
----
-134

skipif mysql # not compatible
query I rowsort label-9710
SELECT - 21 * - 65 + - 36 - - COUNT ( * ) * 53 + - COUNT ( * ) + + - 61 + - - COUNT ( * ) + + - 15 * + + NULLIF ( 97, + 35 )
----
-134

onlyif mysql # aggregate syntax: 
query I rowsort label-9711
SELECT 80 * + 60 * ( ( 48 ) ) + 94 - - COUNT( * ) * 12
----
230506

skipif mysql # not compatible
query I rowsort label-9711
SELECT 80 * + 60 * ( ( 48 ) ) + 94 - - COUNT ( * ) * 12
----
230506

query I rowsort
SELECT DISTINCT - 68 * + - 93 + + 26 AS col2
----
6350

query I rowsort
SELECT + 38 * 50
----
1900

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9714
SELECT ALL + + 54 DIV + 29 * - COUNT( * ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-9714
SELECT ALL + + 54 / + 29 * - COUNT ( * ) AS col1
----
-1

query I rowsort
SELECT + 46 * + 89 + - 32 + 75 AS col1
----
4137

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9716
SELECT ALL 81 * 64 * ( + 11 ) + + - 79 - - 76 / - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-9716
SELECT ALL 81 * 64 * ( + 11 ) + + - 79 - - 76 / - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-9717
SELECT SUM( + + COALESCE ( 25, - 52, 98 ) ) * + 75 + 40 DIV - CASE CASE + COALESCE ( + 6, + + MAX( 73 ), - 14 DIV + 82 - + + 12 ) WHEN - 18 + - 17 * - 72 THEN CAST( NULL AS SIGNED ) + + - ( - 27 ) + NULLIF ( + CAST( NULL AS DECIMAL ), 49 * + + 91 + CAST( - 95 AS DECIMAL ) + + + 20 ) * + 40 END WHEN 12 + - COUNT( * ) THEN + CASE WHEN NULL IS NULL THEN MAX( + 41 ) ELSE NULL END WHEN - 15 * + - ( - 54 ) THEN NULL ELSE - 95 - + 15 + - 9 END * 33 + + + 69 AS col1
----
1944

skipif mysql # not compatible
query I rowsort label-9717
SELECT SUM ( + + COALESCE ( 25, - 52, 98 ) ) * + 75 + 40 / - CASE CASE + COALESCE ( + 6, + + MAX ( 73 ), - 14 / + 82 - + + 12 ) WHEN - 18 + - 17 * - 72 THEN CAST ( NULL AS INTEGER ) + + - ( - 27 ) + NULLIF ( + CAST ( NULL AS REAL ), 49 * + + 91 + CAST ( - 95 AS REAL ) + + + 20 ) * + 40 END WHEN 12 + - COUNT ( * ) THEN + CASE WHEN NULL IS NULL THEN MAX ( + 41 ) ELSE NULL END WHEN - 15 * + - ( - 54 ) THEN NULL ELSE - 95 - + 15 + - 9 END * 33 + + + 69 AS col1
----
1944

onlyif mysql # aggregate syntax: 
query II rowsort label-9718
SELECT ALL 50 + 39 * 54 AS col0, COALESCE ( - - COUNT( * ), - + 15 ) * 14 * - + 98 AS col1
----
2156
-1372

skipif mysql # not compatible
query II rowsort label-9718
SELECT ALL 50 + 39 * 54 AS col0, COALESCE ( - - COUNT ( * ), - + 15 ) * 14 * - + 98 AS col1
----
2156
-1372

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9719
SELECT + 56 * 56 DIV MAX( - 68 ) AS col1
----
-46

skipif mysql # not compatible
query I rowsort label-9719
SELECT + 56 * 56 / MAX ( - 68 ) AS col1
----
-46

query I rowsort
SELECT + CASE + + 43 WHEN - + 35 * + 23 THEN + 71 END AS col0
----
NULL

query I rowsort
SELECT - 38 + + 16 + + 86
----
64

query I rowsort
SELECT - ( + - 49 ) AS col0
----
49

query I rowsort
SELECT DISTINCT - 15 * - 77
----
1155

onlyif mysql # aggregate syntax: 
query I rowsort label-9724
SELECT ALL + ( + - COALESCE ( - - 45, + 91 ) ) - - + 82 + + + COUNT( * ) * 69 AS col0
----
106

skipif mysql # not compatible
query I rowsort label-9724
SELECT ALL + ( + - COALESCE ( - - 45, + 91 ) ) - - + 82 + + + COUNT ( * ) * 69 AS col0
----
106

onlyif mysql # aggregate syntax: 
query I rowsort label-9725
SELECT DISTINCT - COUNT( * ) * ( 95 ) col0
----
-95

skipif mysql # not compatible
query I rowsort label-9725
SELECT DISTINCT - COUNT ( * ) * ( 95 ) col0
----
-95

query I rowsort
SELECT - 61 * - - 97
----
-5917

onlyif mysql # aggregate syntax: 
query I rowsort label-9727
SELECT - 78 + - - MIN( 24 ) * - 41 * 19 + - + 3 * + 63 + + 40 * - 86
----
-22403

skipif mysql # not compatible
query I rowsort label-9727
SELECT - 78 + - - MIN ( 24 ) * - 41 * 19 + - + 3 * + 63 + + 40 * - 86
----
-22403

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9728
SELECT DISTINCT - CAST( 27 AS SIGNED ) * - - 20 * + COUNT( * ) AS col0
----
-540

skipif mysql # not compatible
query I rowsort label-9728
SELECT DISTINCT - CAST ( 27 AS INTEGER ) * - - 20 * + COUNT ( * ) AS col0
----
-540

query I rowsort
SELECT - 54 + - + 73 * + 28 col0
----
-2098

onlyif mysql # aggregate syntax: 
query I rowsort label-9730
SELECT ALL MIN( DISTINCT + 68 ) AS col1
----
68

skipif mysql # not compatible
query I rowsort label-9730
SELECT ALL MIN ( DISTINCT + 68 ) AS col1
----
68

query I rowsort
SELECT - ( - 66 ) AS col2
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-9732
SELECT + COUNT( * ) * + + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-9732
SELECT + COUNT ( * ) * + + COUNT ( * )
----
1

query I rowsort
SELECT ALL - 98 * - 91 * + NULLIF ( - 82, - ( + 8 ) ) * 57
----
-41682732

onlyif mysql # aggregate syntax: 
query I rowsort label-9734
SELECT - COUNT( * ) + + 72 col2
----
71

skipif mysql # not compatible
query I rowsort label-9734
SELECT - COUNT ( * ) + + 72 col2
----
71

query I rowsort
SELECT - 95 * + 82 AS col0
----
-7790

query I rowsort
SELECT + 1 + 18
----
19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9737
SELECT - 12 DIV CAST( + + 42 AS SIGNED ) * - + COUNT( * ) * - + 27 + - COUNT( * ) + - 38 AS col0
----
-39

skipif mysql # not compatible
query I rowsort label-9737
SELECT - 12 / CAST ( + + 42 AS INTEGER ) * - + COUNT ( * ) * - + 27 + - COUNT ( * ) + - 38 AS col0
----
-39

onlyif mysql # DIV for integer division: 
query I rowsort label-9738
SELECT DISTINCT + 53 DIV + 63 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9738
SELECT DISTINCT + 53 / + 63 AS col0
----
0

query I rowsort
SELECT ALL ( + 95 ) AS col1
----
95

onlyif mysql # DIV for integer division: 
query I rowsort label-9740
SELECT DISTINCT 41 DIV 3
----
13

skipif mysql # not compatible
query I rowsort label-9740
SELECT DISTINCT 41 / 3
----
13

onlyif mysql # DIV for integer division: 
query I rowsort label-9741
SELECT ALL 76 * ( 75 DIV 12 ) AS col0
----
456

skipif mysql # not compatible
query I rowsort label-9741
SELECT ALL 76 * ( 75 / 12 ) AS col0
----
456

query I rowsort
SELECT ALL 35 + 58 * 82
----
4791

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9743
SELECT ALL ( NULLIF ( - CAST( NULL AS SIGNED ), 71 * - COUNT( * ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9743
SELECT ALL ( NULLIF ( - CAST ( NULL AS INTEGER ), 71 * - COUNT ( * ) ) )
----
NULL

query I rowsort
SELECT + 58 * 54
----
3132

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9745
SELECT - 29 - + 77 DIV COUNT( * ) AS col2
----
-106

skipif mysql # not compatible
query I rowsort label-9745
SELECT - 29 - + 77 / COUNT ( * ) AS col2
----
-106

query I rowsort
SELECT 36 * 72 - + 89 AS col2
----
2503

query I rowsort
SELECT ( 42 ) AS col2
----
42

query I rowsort
SELECT ALL 16 * - COALESCE ( - 45, 44, + 76 ) AS col2
----
720

query I rowsort
SELECT - 22 * 34 col0
----
-748

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9750
SELECT + ( COALESCE ( 59, - 67 * + 58 - - 77 ) ) DIV - 89 + COUNT( + 25 )
----
1

skipif mysql # not compatible
query I rowsort label-9750
SELECT + ( COALESCE ( 59, - 67 * + 58 - - 77 ) ) / - 89 + COUNT ( + 25 )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9751
SELECT ( CAST( - 61 AS SIGNED ) ) AS col1
----
-61

skipif mysql # not compatible
query I rowsort label-9751
SELECT ( CAST ( - 61 AS INTEGER ) ) AS col1
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-9752
SELECT DISTINCT - COUNT( 93 ) * 90 AS col1
----
-90

skipif mysql # not compatible
query I rowsort label-9752
SELECT DISTINCT - COUNT ( 93 ) * 90 AS col1
----
-90

onlyif mysql # DIV for integer division: 
query I rowsort label-9753
SELECT DISTINCT 71 * 87 + 36 DIV 23 AS col1
----
6178

skipif mysql # not compatible
query I rowsort label-9753
SELECT DISTINCT 71 * 87 + 36 / 23 AS col1
----
6178

onlyif mysql # aggregate syntax: 
query I rowsort label-9754
SELECT ALL 40 * + 27 + + COALESCE ( COUNT( * ), 37, 38 ) AS col1
----
1081

skipif mysql # not compatible
query I rowsort label-9754
SELECT ALL 40 * + 27 + + COALESCE ( COUNT ( * ), 37, 38 ) AS col1
----
1081

onlyif mysql # DIV for integer division: 
query I rowsort label-9755
SELECT + COALESCE ( 86, COALESCE ( 87, - 82 + 73 DIV 13 ) * 8 )
----
86

skipif mysql # not compatible
query I rowsort label-9755
SELECT + COALESCE ( 86, COALESCE ( 87, - 82 + 73 / 13 ) * 8 )
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-9756
SELECT ALL - 64 * + NULLIF ( + CASE - 5 WHEN + 23 + 56 THEN NULL WHEN 81 THEN NULL WHEN CASE 68 WHEN - COUNT( * ) * - 80 THEN 55 WHEN 38 + + 59 THEN NULL ELSE NULL END / + ( 24 ) + - 50 / ( 41 * + 52 ) THEN - COUNT( 4 ) ELSE NULL END * 99, + COALESCE ( + 84, 7 ) * - 64 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9756
SELECT ALL - 64 * + NULLIF ( + CASE - 5 WHEN + 23 + 56 THEN NULL WHEN 81 THEN NULL WHEN CASE 68 WHEN - COUNT ( * ) * - 80 THEN 55 WHEN 38 + + 59 THEN NULL ELSE NULL END / + ( 24 ) + - 50 / ( 41 * + 52 ) THEN - COUNT ( 4 ) ELSE NULL END * 99, + COALESCE ( + 84, 7 ) * - 64 ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT 33 * + COALESCE ( - ( 96 ), 94 ) + - 1
----
-3169

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9758
SELECT + CAST( 48 AS SIGNED ) - 39 * + COUNT( * )
----
9

skipif mysql # not compatible
query I rowsort label-9758
SELECT + CAST ( 48 AS INTEGER ) - 39 * + COUNT ( * )
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-9759
SELECT DISTINCT - 52 * + COUNT( * ) + - 66 * - 28 AS col1
----
1796

skipif mysql # not compatible
query I rowsort label-9759
SELECT DISTINCT - 52 * + COUNT ( * ) + - 66 * - 28 AS col1
----
1796

query I rowsort
SELECT 73 * + 73 - + 59 AS col1
----
5270

onlyif mysql # aggregate syntax: 
query I rowsort label-9761
SELECT + MIN( - 90 ) AS col0
----
-90

skipif mysql # not compatible
query I rowsort label-9761
SELECT + MIN ( - 90 ) AS col0
----
-90

query I rowsort
SELECT ALL 83 * 93 - 54 AS col0
----
7665

onlyif mysql # aggregate syntax: 
query I rowsort label-9763
SELECT + CASE COUNT( * ) WHEN - 49 * 38 THEN + ( - 47 ) WHEN 69 * + CASE + 81 WHEN 66 THEN NULL WHEN + 71 - - 68 * + COALESCE ( NULLIF ( - 88, - 71 ), - 22, 46 ) THEN 80 ELSE 8 END + - 99 THEN COUNT( * ) * 74 ELSE + 66 - COUNT( * ) END + 91 * - MIN( ALL + 59 ) AS col2
----
-5304

skipif mysql # not compatible
query I rowsort label-9763
SELECT + CASE COUNT ( * ) WHEN - 49 * 38 THEN + ( - 47 ) WHEN 69 * + CASE + 81 WHEN 66 THEN NULL WHEN + 71 - - 68 * + COALESCE ( NULLIF ( - 88, - 71 ), - 22, 46 ) THEN 80 ELSE 8 END + - 99 THEN COUNT ( * ) * 74 ELSE + 66 - COUNT ( * ) END + 91 * - MIN ( ALL + 59 ) AS col2
----
-5304

onlyif mysql # aggregate syntax: 
query I rowsort label-9764
SELECT ALL COUNT( * ) * 85
----
85

skipif mysql # not compatible
query I rowsort label-9764
SELECT ALL COUNT ( * ) * 85
----
85

query I rowsort
SELECT ALL - ( + 10 ) * 60 - + 68 AS col0
----
-668

onlyif mysql # DIV for integer division: 
query I rowsort label-9766
SELECT + 2 - 91 DIV - ( - 71 * + 46 ) AS col2
----
2

skipif mysql # not compatible
query I rowsort label-9766
SELECT + 2 - 91 / - ( - 71 * + 46 ) AS col2
----
2

query I rowsort
SELECT + 61 * 21
----
1281

query I rowsort
SELECT ALL 67 * 64
----
4288

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9769
SELECT - CAST( - 84 AS SIGNED ) AS col0
----
84

skipif mysql # not compatible
query I rowsort label-9769
SELECT - CAST ( - 84 AS INTEGER ) AS col0
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-9770
SELECT ALL COALESCE ( + 79, + 23, + 57 * + NULLIF ( 2 * - 47, SUM( - 72 ) + MIN( - 28 + 50 ) ) ) AS col0
----
79

skipif mysql # not compatible
query I rowsort label-9770
SELECT ALL COALESCE ( + 79, + 23, + 57 * + NULLIF ( 2 * - 47, SUM ( - 72 ) + MIN ( - 28 + 50 ) ) ) AS col0
----
79

query I rowsort
SELECT ALL 61 * 41
----
2501

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9772
SELECT ALL MIN( + CAST( + 59 AS SIGNED ) )
----
59

skipif mysql # not compatible
query I rowsort label-9772
SELECT ALL MIN ( + CAST ( + 59 AS INTEGER ) )
----
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9773
SELECT + CAST( NULL AS SIGNED ) / 86 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9773
SELECT + CAST ( NULL AS INTEGER ) / 86 AS col1
----
NULL

query I rowsort
SELECT - 31 * 44 AS col2
----
-1364

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9775
SELECT + CAST( NULL AS SIGNED ) + 55
----
NULL

skipif mysql # not compatible
query I rowsort label-9775
SELECT + CAST ( NULL AS INTEGER ) + 55
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9776
SELECT - COUNT( * ) / - ( CAST( NULL AS DECIMAL ) * - 84 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9776
SELECT - COUNT ( * ) / - ( CAST ( NULL AS REAL ) * - 84 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9777
SELECT DISTINCT SUM( DISTINCT 88 ) AS col0
----
88

skipif mysql # not compatible
query I rowsort label-9777
SELECT DISTINCT SUM ( DISTINCT 88 ) AS col0
----
88

query I rowsort
SELECT ALL COALESCE ( - 59, + 61, - 60 + + 13 )
----
-59

query I rowsort
SELECT + 19 + 95
----
114

query I rowsort
SELECT + 95 + - 59
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-9781
SELECT DISTINCT MIN( - 30 ) AS col2
----
-30

skipif mysql # not compatible
query I rowsort label-9781
SELECT DISTINCT MIN ( - 30 ) AS col2
----
-30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9782
SELECT ALL + CAST( - COUNT( * ) AS SIGNED ) * - 69
----
69

skipif mysql # not compatible
query I rowsort label-9782
SELECT ALL + CAST ( - COUNT ( * ) AS INTEGER ) * - 69
----
69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9783
SELECT DISTINCT ( + CAST( + 43 AS SIGNED ) ) AS col0
----
43

skipif mysql # not compatible
query I rowsort label-9783
SELECT DISTINCT ( + CAST ( + 43 AS INTEGER ) ) AS col0
----
43

query I rowsort
SELECT DISTINCT + + 30 * 14 AS col1
----
420

query I rowsort
SELECT DISTINCT 42 + 74 AS col2
----
116

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9786
SELECT ALL + - 80 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9786
SELECT ALL + - 80 + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9787
SELECT - + CAST( + SUM( 86 ) AS SIGNED ) + 79 * 19 AS col0
----
1415

skipif mysql # not compatible
query I rowsort label-9787
SELECT - + CAST ( + SUM ( 86 ) AS INTEGER ) + 79 * 19 AS col0
----
1415

onlyif mysql # aggregate syntax: 
query I rowsort label-9788
SELECT + MAX( DISTINCT + 46 )
----
46

skipif mysql # not compatible
query I rowsort label-9788
SELECT + MAX ( DISTINCT + 46 )
----
46

query I rowsort
SELECT 38 + - 10
----
28

query I rowsort
SELECT - 43 + 67 * - 59 AS col2
----
-3996

query I rowsort
SELECT ALL + - 88 + 81 AS col0
----
-7

query I rowsort
SELECT 72 + - 55 AS col2
----
17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9793
SELECT - 26 - + CAST( 87 AS SIGNED ) AS col0
----
-113

skipif mysql # not compatible
query I rowsort label-9793
SELECT - 26 - + CAST ( 87 AS INTEGER ) AS col0
----
-113

query I rowsort
SELECT - ( 45 ) AS col1
----
-45

query I rowsort
SELECT 18 + - 40
----
-22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9796
SELECT ALL - + CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9796
SELECT ALL - + CAST ( NULL AS INTEGER ) col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9797
SELECT ALL + 58 + + 93 DIV - ( COALESCE ( 18, - COUNT( * ) + 79, + 27 ) * + 12 )
----
58

skipif mysql # not compatible
query I rowsort label-9797
SELECT ALL + 58 + + 93 / - ( COALESCE ( 18, - COUNT ( * ) + 79, + 27 ) * + 12 )
----
58

query I rowsort
SELECT + 93 * + 26
----
2418

query I rowsort
SELECT DISTINCT + + 46 + - 3 AS col2
----
43

query I rowsort
SELECT DISTINCT - 8 * ( + 44 ) AS col1
----
-352

query I rowsort
SELECT 87 + 34 AS col0
----
121

query I rowsort
SELECT ALL + 97 - 49 * - 61 AS col2
----
3086

onlyif mysql # aggregate syntax: 
query I rowsort label-9803
SELECT - COUNT( ALL - 76 ) * - NULLIF ( 85 * - 7, + 67 - COUNT( * ) * 25 )
----
-595

skipif mysql # not compatible
query I rowsort label-9803
SELECT - COUNT ( ALL - 76 ) * - NULLIF ( 85 * - 7, + 67 - COUNT ( * ) * 25 )
----
-595

onlyif mysql # aggregate syntax: 
query I rowsort label-9804
SELECT 18 * ( MIN( - 36 ) ) col2
----
-648

skipif mysql # not compatible
query I rowsort label-9804
SELECT 18 * ( MIN ( - 36 ) ) col2
----
-648

query I rowsort
SELECT 20 * - 52 AS col0
----
-1040

query I rowsort
SELECT ALL + 6 * + 92 AS col0
----
552

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9807
SELECT 33 * + 7 + - CAST( + CASE 90 WHEN - 79 THEN COUNT( * ) WHEN COUNT( * ) * + 17 THEN NULL ELSE NULL END AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9807
SELECT 33 * + 7 + - CAST ( + CASE 90 WHEN - 79 THEN COUNT ( * ) WHEN COUNT ( * ) * + 17 THEN NULL ELSE NULL END AS INTEGER )
----
NULL

query I rowsort
SELECT 93 * + + 83 AS col0
----
7719

query I rowsort
SELECT ALL + 33 * - - 51 * 23 AS col0
----
38709

onlyif mysql # aggregate syntax: 
query I rowsort label-9810
SELECT ALL 56 - - 62 + - COUNT( * )
----
117

skipif mysql # not compatible
query I rowsort label-9810
SELECT ALL 56 - - 62 + - COUNT ( * )
----
117

query I rowsort
SELECT DISTINCT + 15 * - 3 col1
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-9812
SELECT COUNT( * ) * 94
----
94

skipif mysql # not compatible
query I rowsort label-9812
SELECT COUNT ( * ) * 94
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-9813
SELECT - 22 * + + MAX( 73 ) + - MIN( + ( + 99 ) + - 46 ) * COUNT( * )
----
-1659

skipif mysql # not compatible
query I rowsort label-9813
SELECT - 22 * + + MAX ( 73 ) + - MIN ( + ( + 99 ) + - 46 ) * COUNT ( * )
----
-1659

query I rowsort
SELECT 70 * 96 + + 62 AS col2
----
6782

query I rowsort
SELECT ( + 32 ) * 45 AS col1
----
1440

onlyif mysql # DIV for integer division: 
query I rowsort label-9816
SELECT ALL ( + ( 84 ) ) DIV - 57 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-9816
SELECT ALL ( + ( 84 ) ) / - 57 AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9817
SELECT COUNT( * ) * ( 77 ) * 68
----
5236

skipif mysql # not compatible
query I rowsort label-9817
SELECT COUNT ( * ) * ( 77 ) * 68
----
5236

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9818
SELECT CAST( NULL AS SIGNED ) + 70 + - MAX( - 47 + 17 ) / SUM( + 21 ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9818
SELECT CAST ( NULL AS INTEGER ) + 70 + - MAX ( - 47 + 17 ) / SUM ( + 21 ) col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9819
SELECT ALL CAST( - - ( - 75 ) AS SIGNED ) * - 31 col1
----
2325

skipif mysql # not compatible
query I rowsort label-9819
SELECT ALL CAST ( - - ( - 75 ) AS INTEGER ) * - 31 col1
----
2325

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9820
SELECT ( - NULLIF ( + 75, - ( 49 ) ) ) DIV COUNT( * )
----
-75

skipif mysql # not compatible
query I rowsort label-9820
SELECT ( - NULLIF ( + 75, - ( 49 ) ) ) / COUNT ( * )
----
-75

query I rowsort
SELECT ALL 59 + + - 20 - 54 AS col1
----
-15

query I rowsort
SELECT ALL - 13 + + 65 - + 55 AS col1
----
-3

query I rowsort
SELECT - 14 * - + 87 * 88 AS col0
----
107184

query I rowsort
SELECT DISTINCT - COALESCE ( - 25, 39 * - 83 + 52, 41 )
----
25

query I rowsort
SELECT - ( - 38 ) AS col0
----
38

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9826
SELECT ALL MIN( CAST( NULL AS DECIMAL ) ) + 34 * 95 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9826
SELECT ALL MIN ( CAST ( NULL AS REAL ) ) + 34 * 95 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9827
SELECT ( 19 ) * COUNT( * )
----
19

skipif mysql # not compatible
query I rowsort label-9827
SELECT ( 19 ) * COUNT ( * )
----
19

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9828
SELECT ALL + ( - - 42 ) + 44 DIV COALESCE ( + 14, + SUM( 10 ) ) col1
----
45

skipif mysql # not compatible
query I rowsort label-9828
SELECT ALL + ( - - 42 ) + 44 / COALESCE ( + 14, + SUM ( 10 ) ) col1
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-9829
SELECT ALL + 12 - - COUNT( * ) AS col1
----
13

skipif mysql # not compatible
query I rowsort label-9829
SELECT ALL + 12 - - COUNT ( * ) AS col1
----
13

query I rowsort
SELECT ALL 60 * - 24 * 80
----
-115200

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9831
SELECT + 99 + + + CAST( 51 AS SIGNED )
----
150

skipif mysql # not compatible
query I rowsort label-9831
SELECT + 99 + + + CAST ( 51 AS INTEGER )
----
150

onlyif mysql # aggregate syntax: 
query I rowsort label-9832
SELECT COUNT( * ) * - 46 * + COUNT( * )
----
-46

skipif mysql # not compatible
query I rowsort label-9832
SELECT COUNT ( * ) * - 46 * + COUNT ( * )
----
-46

query I rowsort
SELECT - CASE 7 WHEN - 98 THEN NULL WHEN + 11 + + COALESCE ( - 32, + 62, - 57, - 38 ) * 52 THEN NULL WHEN - 56 THEN + 98 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9834
SELECT CAST( + - 80 AS SIGNED ) AS col1
----
-80

skipif mysql # not compatible
query I rowsort label-9834
SELECT CAST ( + - 80 AS INTEGER ) AS col1
----
-80

query I rowsort
SELECT 93 * - + 61 AS col2
----
-5673

query II rowsort
SELECT ALL - 28 AS col2, + 94 col1
----
-28
94

onlyif mysql # aggregate syntax: 
query II rowsort label-9837
SELECT ALL - COUNT( * ) AS col0, + 93 + - 4 + ( - 3 + MIN( ALL + CASE 0 WHEN - 97 + + 67 * + 87 THEN ( - 48 ) WHEN + ( 24 ) THEN NULL ELSE NULL END ) ) * + 30
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-9837
SELECT ALL - COUNT ( * ) AS col0, + 93 + - 4 + ( - 3 + MIN ( ALL + CASE 0 WHEN - 97 + + 67 * + 87 THEN ( - 48 ) WHEN + ( 24 ) THEN NULL ELSE NULL END ) ) * + 30
----
-1
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9838
SELECT 12 - - SUM( ALL + CAST( 35 AS SIGNED ) )
----
47

skipif mysql # not compatible
query I rowsort label-9838
SELECT 12 - - SUM ( ALL + CAST ( 35 AS INTEGER ) )
----
47

onlyif mysql # DIV for integer division: 
query I rowsort label-9839
SELECT ALL - 74 DIV + 83 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9839
SELECT ALL - 74 / + 83 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9840
SELECT 18 * - COUNT( * ) AS col1
----
-18

skipif mysql # not compatible
query I rowsort label-9840
SELECT 18 * - COUNT ( * ) AS col1
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-9841
SELECT - 18 * - 64 * - ( + 70 ) + ( - SUM( DISTINCT ( - 21 ) ) ) AS col1
----
-80619

skipif mysql # not compatible
query I rowsort label-9841
SELECT - 18 * - 64 * - ( + 70 ) + ( - SUM ( DISTINCT ( - 21 ) ) ) AS col1
----
-80619

query I rowsort
SELECT 92 * - 25
----
-2300

onlyif mysql # aggregate syntax: 
query I rowsort label-9843
SELECT COUNT( * ) * + 29 * - 82 * 41
----
-97498

skipif mysql # not compatible
query I rowsort label-9843
SELECT COUNT ( * ) * + 29 * - 82 * 41
----
-97498

onlyif mysql # aggregate syntax: 
query I rowsort label-9844
SELECT ALL - CASE - + 83 WHEN - - 95 - - 16 THEN - COUNT( * ) * 45 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9844
SELECT ALL - CASE - + 83 WHEN - - 95 - - 16 THEN - COUNT ( * ) * 45 ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9845
SELECT + 72 AS col2, - MIN( ALL + 1 ) AS col0
----
72
-1

skipif mysql # not compatible
query II rowsort label-9845
SELECT + 72 AS col2, - MIN ( ALL + 1 ) AS col0
----
72
-1

query I rowsort
SELECT 8 * + 94
----
752

onlyif mysql # aggregate syntax: 
query I rowsort label-9847
SELECT 18 * - + COUNT( * ) AS col0
----
-18

skipif mysql # not compatible
query I rowsort label-9847
SELECT 18 * - + COUNT ( * ) AS col0
----
-18

query I rowsort
SELECT ALL + 66 + + 14 col0
----
80

query II rowsort
SELECT ALL - 92 AS col0, - 64
----
-92
-64

query II rowsort
SELECT + 35, 44 AS col0
----
35
44

query I rowsort
SELECT DISTINCT + 85 + - 78 * - 79 AS col0
----
6247

onlyif mysql # aggregate syntax: 
query I rowsort label-9852
SELECT COALESCE ( 99, + CASE 46 WHEN - 86 * COUNT( ALL + 67 ) THEN NULL ELSE 49 * + COUNT( * ) END, 93 + - COUNT( * ) ) * + COALESCE ( + MAX( + 72 ), + 75 * 19, - COUNT( * ), - 70 ) AS col2
----
7128

skipif mysql # not compatible
query I rowsort label-9852
SELECT COALESCE ( 99, + CASE 46 WHEN - 86 * COUNT ( ALL + 67 ) THEN NULL ELSE 49 * + COUNT ( * ) END, 93 + - COUNT ( * ) ) * + COALESCE ( + MAX ( + 72 ), + 75 * 19, - COUNT ( * ), - 70 ) AS col2
----
7128

query I rowsort
SELECT ALL + CASE + + 64 WHEN + - 86 * 88 THEN NULL ELSE 92 END + + 58 AS col1
----
150

query I rowsort
SELECT ALL COALESCE ( - ( 24 ), 12 )
----
-24

query I rowsort
SELECT - 53 + - + 88 * - - 66 AS col0
----
-5861

query I rowsort
SELECT DISTINCT CASE WHEN + AVG ( ALL 46 ) >= NULL THEN 35 END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9857
SELECT ALL - 57 + - 49 DIV + + COUNT( * ) AS col1
----
-106

skipif mysql # not compatible
query I rowsort label-9857
SELECT ALL - 57 + - 49 / + + COUNT ( * ) AS col1
----
-106

query I rowsort
SELECT - - 51 + + 41 + - - 47 * 20 AS col0
----
1032

query I rowsort
SELECT + + 46 * + - ( + + 8 ) * - 93
----
34224

query I rowsort
SELECT - - COALESCE ( + 20, 5 + + 64 )
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-9861
SELECT - + 76 + MAX( + 90 )
----
14

skipif mysql # not compatible
query I rowsort label-9861
SELECT - + 76 + MAX ( + 90 )
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-9862
SELECT + - CASE + + 4 WHEN - 72 + 8 * - 53 THEN + AVG ( - 75 ) WHEN + 59 + CASE 6 WHEN COUNT( 48 ) THEN - 66 END THEN NULL END - + CASE + COUNT( * ) WHEN ( - 99 ) - + 41 / 85 THEN NULL WHEN 6 THEN 60 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9862
SELECT + - CASE + + 4 WHEN - 72 + 8 * - 53 THEN + AVG ( - 75 ) WHEN + 59 + CASE 6 WHEN COUNT ( 48 ) THEN - 66 END THEN NULL END - + CASE + COUNT ( * ) WHEN ( - 99 ) - + 41 / 85 THEN NULL WHEN 6 THEN 60 END
----
NULL

query I rowsort
SELECT + - 2 + - 41
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-9864
SELECT ALL COUNT( DISTINCT 74 ) + - COALESCE ( COUNT( * ), 61 * COUNT( * ) ) + - 48
----
-48

skipif mysql # not compatible
query I rowsort label-9864
SELECT ALL COUNT ( DISTINCT 74 ) + - COALESCE ( COUNT ( * ), 61 * COUNT ( * ) ) + - 48
----
-48

query I rowsort
SELECT + ( - 44 ) * 23 * - 60 AS col0
----
60720

query I rowsort
SELECT + + 27 + 36
----
63

query I rowsort
SELECT DISTINCT - 63 - + - 77
----
14

query I rowsort
SELECT ALL + 30 * - 18 AS col1
----
-540

query I rowsort
SELECT DISTINCT 49 * - 1
----
-49

query I rowsort
SELECT + 88 + - 57
----
31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9871
SELECT DISTINCT - CAST( + + 2 AS SIGNED ) AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-9871
SELECT DISTINCT - CAST ( + + 2 AS INTEGER ) AS col2
----
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9872
SELECT + - 75 DIV 9 - + COALESCE ( + NULLIF ( COUNT( * ), - 66 * 21 ), 18 )
----
-9

skipif mysql # not compatible
query I rowsort label-9872
SELECT + - 75 / 9 - + COALESCE ( + NULLIF ( COUNT ( * ), - 66 * 21 ), 18 )
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-9873
SELECT + ( + MIN( ALL 99 ) )
----
99

skipif mysql # not compatible
query I rowsort label-9873
SELECT + ( + MIN ( ALL 99 ) )
----
99

query I rowsort
SELECT - + 95 + - - 4
----
-91

query II rowsort
SELECT ALL 77 col0, - 70 * + 50 AS col0
----
77
-3500

query I rowsort
SELECT + ( - - 53 )
----
53

onlyif mysql # aggregate syntax: 
query II rowsort label-9877
SELECT ALL + MAX( - - 10 ) AS col1, 1
----
10
1

skipif mysql # not compatible
query II rowsort label-9877
SELECT ALL + MAX ( - - 10 ) AS col1, 1
----
10
1

query I rowsort
SELECT - 14 + - + 2
----
-16

query I rowsort
SELECT - 32 * - 53
----
1696

onlyif mysql # aggregate syntax: 
query I rowsort label-9880
SELECT ALL + 50 * - COUNT( * ) + - ( + 47 ) AS col0
----
-97

skipif mysql # not compatible
query I rowsort label-9880
SELECT ALL + 50 * - COUNT ( * ) + - ( + 47 ) AS col0
----
-97

query I rowsort
SELECT + ( + ( - 46 ) ) AS col2
----
-46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9882
SELECT - 13 * + ( - CASE MAX( ( 28 ) ) WHEN + 11 * + 38 THEN + 79 WHEN - 51 THEN + 87 + - 99 END ) + 75 * - CAST( COUNT( 99 ) * MIN( - 57 ) AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9882
SELECT - 13 * + ( - CASE MAX ( ( 28 ) ) WHEN + 11 * + 38 THEN + 79 WHEN - 51 THEN + 87 + - 99 END ) + 75 * - CAST ( COUNT ( 99 ) * MIN ( - 57 ) AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9883
SELECT CASE - - ( - 26 ) WHEN + 38 THEN + 62 WHEN - COUNT( * ) + - 7 * 74 THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9883
SELECT CASE - - ( - 26 ) WHEN + 38 THEN + 62 WHEN - COUNT ( * ) + - 7 * 74 THEN NULL END AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9884
SELECT 7 DIV 96 + + + 30
----
30

skipif mysql # not compatible
query I rowsort label-9884
SELECT 7 / 96 + + + 30
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-9885
SELECT ALL - 57 * + + 88 + + 37 * - COUNT( * ) + - CASE + 81 WHEN + COUNT( * ) * + 60 THEN NULL WHEN 23 * - 3 + + 93 THEN - 93 + COUNT( * ) WHEN + COUNT( 89 ) THEN - 3 * 56 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9885
SELECT ALL - 57 * + + 88 + + 37 * - COUNT ( * ) + - CASE + 81 WHEN + COUNT ( * ) * + 60 THEN NULL WHEN 23 * - 3 + + 93 THEN - 93 + COUNT ( * ) WHEN + COUNT ( 89 ) THEN - 3 * 56 END
----
NULL

query I rowsort
SELECT ALL + CASE WHEN NOT ( NULL ) > - 49 THEN NULL ELSE + 65 END
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-9887
SELECT COALESCE ( - COUNT( * ), - 4 )
----
-1

skipif mysql # not compatible
query I rowsort label-9887
SELECT COALESCE ( - COUNT ( * ), - 4 )
----
-1

query I rowsort
SELECT - 90 + + 89
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9889
SELECT DISTINCT + COUNT( DISTINCT - 91 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9889
SELECT DISTINCT + COUNT ( DISTINCT - 91 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9890
SELECT ALL 56 * - - COUNT( * ) + 46 AS col2
----
102

skipif mysql # not compatible
query I rowsort label-9890
SELECT ALL 56 * - - COUNT ( * ) + 46 AS col2
----
102

query I rowsort
SELECT - 66 + 87 * - 76 + + 2 * 68 AS col1
----
-6542

onlyif mysql # aggregate syntax: 
query I rowsort label-9892
SELECT DISTINCT - 99 * - + COUNT( * )
----
99

skipif mysql # not compatible
query I rowsort label-9892
SELECT DISTINCT - 99 * - + COUNT ( * )
----
99

query I rowsort
SELECT NULLIF ( 46, 81 * + + ( - 87 ) - 53 * 19 )
----
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9894
SELECT - 18 + + COALESCE ( + 38, + 85 * CASE - 86 WHEN - 18 THEN NULL WHEN 78 THEN NULL WHEN - 79 - + CASE ( 27 ) - NULLIF ( 98, + 17 * - 50 ) WHEN 1 * AVG ( DISTINCT + 44 ) THEN NULL WHEN 43 + + CAST( - 24 AS SIGNED ) THEN 86 * + 2 ELSE NULL END * + 35 THEN COALESCE ( + 87, + 54 + 95 ) DIV + 13 - - 4 * + COUNT( * ) END, + 47 ) + - 5 * 34 AS col1
----
-150

skipif mysql # not compatible
query I rowsort label-9894
SELECT - 18 + + COALESCE ( + 38, + 85 * CASE - 86 WHEN - 18 THEN NULL WHEN 78 THEN NULL WHEN - 79 - + CASE ( 27 ) - NULLIF ( 98, + 17 * - 50 ) WHEN 1 * AVG ( DISTINCT + 44 ) THEN NULL WHEN 43 + + CAST ( - 24 AS INTEGER ) THEN 86 * + 2 ELSE NULL END * + 35 THEN COALESCE ( + 87, + 54 + 95 ) / + 13 - - 4 * + COUNT ( * ) END, + 47 ) + - 5 * 34 AS col1
----
-150

onlyif mysql # aggregate syntax: 
query I rowsort label-9895
SELECT ALL - 91 * - - COALESCE ( + - 33, 71 ) + + COUNT( * ) * 65 AS col2
----
3068

skipif mysql # not compatible
query I rowsort label-9895
SELECT ALL - 91 * - - COALESCE ( + - 33, 71 ) + + COUNT ( * ) * 65 AS col2
----
3068

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9896
SELECT - COUNT( * ) * CAST( + 32 AS SIGNED ) + - ( - 97 ) + 40 * ( - 37 )
----
-1415

skipif mysql # not compatible
query I rowsort label-9896
SELECT - COUNT ( * ) * CAST ( + 32 AS INTEGER ) + - ( - 97 ) + 40 * ( - 37 )
----
-1415

query I rowsort
SELECT - 79 + + 91
----
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9898
SELECT ALL - 61 * + CAST( NULL AS SIGNED ) - + 11 + + - COUNT( * ) + 99 * - ( 86 / - 59 + MIN( ALL + ( - 33 ) + 50 ) ) * - 21 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9898
SELECT ALL - 61 * + CAST ( NULL AS INTEGER ) - + 11 + + - COUNT ( * ) + 99 * - ( 86 / - 59 + MIN ( ALL + ( - 33 ) + 50 ) ) * - 21 AS col0
----
NULL

query I rowsort
SELECT - + 39 * + + 27 AS col2
----
-1053

query I rowsort
SELECT ALL - - 52 * 29
----
1508

onlyif mysql # aggregate syntax: 
query I rowsort label-9901
SELECT DISTINCT 94 - + 99 + - MIN( - 32 ) - 96
----
-69

skipif mysql # not compatible
query I rowsort label-9901
SELECT DISTINCT 94 - + 99 + - MIN ( - 32 ) - 96
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-9902
SELECT - COUNT( DISTINCT + 96 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-9902
SELECT - COUNT ( DISTINCT + 96 ) AS col2
----
-1

query I rowsort
SELECT - - 79 * - 19 AS col1
----
-1501

query I rowsort
SELECT + 81 * + - 36 * - ( + 14 ) * - 1 AS col0
----
-40824

query I rowsort
SELECT - ( + 75 ) AS col1
----
-75

query I rowsort
SELECT - 25 - 0
----
-25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9907
SELECT + + CAST( NULL AS SIGNED ) * 57 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9907
SELECT + + CAST ( NULL AS INTEGER ) * 57 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9908
SELECT ALL 78 * 38 * - 33 * + COALESCE ( + 97, CASE CASE CAST( NULL AS SIGNED ) WHEN + ( 50 ) - + NULLIF ( - 36, + 57 * 20 ) THEN NULL ELSE - 63 END WHEN 14 THEN NULL WHEN 29 THEN - 9 * - 84 + - 89 WHEN + 0 + - 51 THEN NULL END DIV + 97 )
----
-9487764

skipif mysql # not compatible
query I rowsort label-9908
SELECT ALL 78 * 38 * - 33 * + COALESCE ( + 97, CASE CASE CAST ( NULL AS INTEGER ) WHEN + ( 50 ) - + NULLIF ( - 36, + 57 * 20 ) THEN NULL ELSE - 63 END WHEN 14 THEN NULL WHEN 29 THEN - 9 * - 84 + - 89 WHEN + 0 + - 51 THEN NULL END / + 97 )
----
-9487764

query I rowsort
SELECT - + COALESCE ( + + 28, 42 + - 91, + 44 * - 65 )
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-9910
SELECT + 66 * - COUNT( * )
----
-66

skipif mysql # not compatible
query I rowsort label-9910
SELECT + 66 * - COUNT ( * )
----
-66

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9911
SELECT ALL 5 * - 72 AS col0, CAST( NULL AS SIGNED )
----
-360
NULL

skipif mysql # not compatible
query II rowsort label-9911
SELECT ALL 5 * - 72 AS col0, CAST ( NULL AS INTEGER )
----
-360
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9912
SELECT ALL - - 84 * + - 77 - - 8 DIV + - 11 * + COUNT( * ) AS col0
----
-6468

skipif mysql # not compatible
query I rowsort label-9912
SELECT ALL - - 84 * + - 77 - - 8 / + - 11 * + COUNT ( * ) AS col0
----
-6468

onlyif mysql # aggregate syntax: 
query I rowsort label-9913
SELECT ALL + 94 + + COUNT( * )
----
95

skipif mysql # not compatible
query I rowsort label-9913
SELECT ALL + 94 + + COUNT ( * )
----
95

query I rowsort
SELECT DISTINCT 3 * - 94 AS col0
----
-282

onlyif mysql # aggregate syntax: 
query I rowsort label-9915
SELECT - CASE - 92 WHEN 15 THEN 12 - + COUNT( * ) * 73 WHEN 26 THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9915
SELECT - CASE - 92 WHEN 15 THEN 12 - + COUNT ( * ) * 73 WHEN 26 THEN NULL END AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9916
SELECT + 32 DIV - + 9
----
-3

skipif mysql # not compatible
query I rowsort label-9916
SELECT + 32 / - + 9
----
-3

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9917
SELECT ALL + CAST( NULL AS DECIMAL ) / 64 + + 95 * + - 52 + COUNT( * ) * + 7 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9917
SELECT ALL + CAST ( NULL AS REAL ) / 64 + + 95 * + - 52 + COUNT ( * ) * + 7 AS col0
----
NULL

query II rowsort
SELECT + 20 * 55 * - - 41, 93 * - + 46 AS col2
----
45100
-4278

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9919
SELECT ALL + 29 DIV + ( + - COUNT( * ) ) + + - 10 AS col1
----
-39

skipif mysql # not compatible
query I rowsort label-9919
SELECT ALL + 29 / + ( + - COUNT ( * ) ) + + - 10 AS col1
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-9920
SELECT DISTINCT + MAX( ALL 40 )
----
40

skipif mysql # not compatible
query I rowsort label-9920
SELECT DISTINCT + MAX ( ALL 40 )
----
40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9921
SELECT ALL + MAX( + - 54 ) DIV + 46 + 20 AS col2
----
19

skipif mysql # not compatible
query I rowsort label-9921
SELECT ALL + MAX ( + - 54 ) / + 46 + 20 AS col2
----
19

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9922
SELECT ALL COUNT( * ) / - - COUNT( * ) + + 77 + + + CAST( NULL AS DECIMAL ) - 31
----
NULL

skipif mysql # not compatible
query I rowsort label-9922
SELECT ALL COUNT ( * ) / - - COUNT ( * ) + + 77 + + + CAST ( NULL AS REAL ) - 31
----
NULL

query II rowsort
SELECT DISTINCT - 85 AS col2, 4 col1
----
-85
4

onlyif mysql # DIV for integer division: 
query I rowsort label-9924
SELECT - 33 * - - 22 - + 60 - + 58 DIV + + 5
----
-797

skipif mysql # not compatible
query I rowsort label-9924
SELECT - 33 * - - 22 - + 60 - + 58 / + + 5
----
-797

onlyif mysql # aggregate syntax: 
query I rowsort label-9925
SELECT COUNT( * ) * + - 28
----
-28

skipif mysql # not compatible
query I rowsort label-9925
SELECT COUNT ( * ) * + - 28
----
-28

query II rowsort
SELECT + 43 AS col0, - ( + 73 ) col0
----
43
-73

onlyif mysql # DIV for integer division: 
query I rowsort label-9927
SELECT 78 DIV - 81 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9927
SELECT 78 / - 81 AS col1
----
0

query I rowsort
SELECT ALL - + 77 AS col2
----
-77

query I rowsort
SELECT + 21 * - + 16 - 82 + + + 58 + + 96
----
-264

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9930
SELECT + - 15 * - ( - - COUNT( - 87 ) ) - - - MIN( - 32 ) - ( COUNT( * ) + - CAST( NULL AS SIGNED ) ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9930
SELECT + - 15 * - ( - - COUNT ( - 87 ) ) - - - MIN ( - 32 ) - ( COUNT ( * ) + - CAST ( NULL AS INTEGER ) ) col2
----
NULL

query I rowsort
SELECT + 87 + + 42
----
129

onlyif mysql # DIV for integer division: 
query I rowsort label-9932
SELECT ALL + - 37 DIV 81
----
0

skipif mysql # not compatible
query I rowsort label-9932
SELECT ALL + - 37 / 81
----
0

query I rowsort
SELECT 48 + 97 + - ( - + 64 ) AS col2
----
209

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9934
SELECT - + CAST( - 37 AS SIGNED ) AS col2
----
37

skipif mysql # not compatible
query I rowsort label-9934
SELECT - + CAST ( - 37 AS INTEGER ) AS col2
----
37

onlyif mysql # DIV for integer division: 
query I rowsort label-9935
SELECT - 84 DIV + + 12 + - 72 AS col1
----
-79

skipif mysql # not compatible
query I rowsort label-9935
SELECT - 84 / + + 12 + - 72 AS col1
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-9936
SELECT 41 + + NULLIF ( - - COUNT( * ), + - 68 ) + - - 33 - - 39 * + 68 AS col0
----
2727

skipif mysql # not compatible
query I rowsort label-9936
SELECT 41 + + NULLIF ( - - COUNT ( * ), + - 68 ) + - - 33 - - 39 * + 68 AS col0
----
2727

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9937
SELECT - 37 + + - 81 * + COUNT( * ) + COUNT( 24 ) * - CAST( COUNT( * ) + + 32 AS SIGNED ) col1
----
-151

skipif mysql # not compatible
query I rowsort label-9937
SELECT - 37 + + - 81 * + COUNT ( * ) + COUNT ( 24 ) * - CAST ( COUNT ( * ) + + 32 AS INTEGER ) col1
----
-151

query I rowsort
SELECT + 50 + - 23 + 3 AS col2
----
30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9939
SELECT ALL - 28 + + - 1 DIV - + MAX( - 45 ) AS col1
----
-28

skipif mysql # not compatible
query I rowsort label-9939
SELECT ALL - 28 + + - 1 / - + MAX ( - 45 ) AS col1
----
-28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9940
SELECT COALESCE ( 34, - - 8, - COUNT( * ) * 11 ) + - ( CAST( NULL AS SIGNED ) ) * 88
----
NULL

skipif mysql # not compatible
query I rowsort label-9940
SELECT COALESCE ( 34, - - 8, - COUNT ( * ) * 11 ) + - ( CAST ( NULL AS INTEGER ) ) * 88
----
NULL

query I rowsort
SELECT DISTINCT - + NULLIF ( + + 55, + - 16 ) + - + 63 AS col0
----
-118

onlyif mysql # DIV for integer division: 
query I rowsort label-9942
SELECT 31 + 85 DIV 47 - - 98
----
130

skipif mysql # not compatible
query I rowsort label-9942
SELECT 31 + 85 / 47 - - 98
----
130

query II rowsort
SELECT DISTINCT 4 col2, 8
----
4
8

onlyif mysql # aggregate syntax: 
query II rowsort label-9944
SELECT ALL 56 AS col1, SUM( ALL 16 ) * - 63 * 82 * COUNT( * )
----
56
-82656

skipif mysql # not compatible
query II rowsort label-9944
SELECT ALL 56 AS col1, SUM ( ALL 16 ) * - 63 * 82 * COUNT ( * )
----
56
-82656

query I rowsort
SELECT 8 * 77 AS col2
----
616

query I rowsort
SELECT 47 + + 70
----
117

onlyif mysql # aggregate syntax: 
query I rowsort label-9947
SELECT DISTINCT NULLIF ( - 51, + 74 - - 27 + 9 + - COUNT( * ) ) * - COUNT( * ) AS col0
----
51

skipif mysql # not compatible
query I rowsort label-9947
SELECT DISTINCT NULLIF ( - 51, + 74 - - 27 + 9 + - COUNT ( * ) ) * - COUNT ( * ) AS col0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-9948
SELECT 21 * + COALESCE ( + 42, 21 ) * + 98 * - COUNT( * ) * 42
----
-3630312

skipif mysql # not compatible
query I rowsort label-9948
SELECT 21 * + COALESCE ( + 42, 21 ) * + 98 * - COUNT ( * ) * 42
----
-3630312

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9949
SELECT ALL + MIN( ALL - 7 ) + - NULLIF ( + 46, - + 26 / + COUNT( * ) + CAST( 72 AS SIGNED ) ) - + COALESCE ( SUM( 61 ) + - 99, NULLIF ( - 99, + CAST( + 2 AS SIGNED ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9949
SELECT ALL + MIN ( ALL - 7 ) + - NULLIF ( + 46, - + 26 / + COUNT ( * ) + CAST ( 72 AS INTEGER ) ) - + COALESCE ( SUM ( 61 ) + - 99, NULLIF ( - 99, + CAST ( + 2 AS INTEGER ) ) )
----
NULL

query I rowsort
SELECT DISTINCT 2 * - 94 col1
----
-188

query I rowsort
SELECT DISTINCT + 26 * + + 97 AS col2
----
2522

onlyif mysql # aggregate syntax: 
query I rowsort label-9952
SELECT NULLIF ( + 90, + + 14 + + NULLIF ( + COALESCE ( + COUNT( * ), + AVG ( DISTINCT 18 ) ), 34 ) ) * 98 AS col1
----
8820

skipif mysql # not compatible
query I rowsort label-9952
SELECT NULLIF ( + 90, + + 14 + + NULLIF ( + COALESCE ( + COUNT ( * ), + AVG ( DISTINCT 18 ) ), 34 ) ) * 98 AS col1
----
8820

query I rowsort
SELECT ALL ( - 57 ) * - + 91 AS col0
----
5187

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9954
SELECT ALL 7 - + 43 + + + MAX( + - CAST( 72 AS SIGNED ) ) - + 82 + - 98 * 15 * - 53
----
77720

skipif mysql # not compatible
query I rowsort label-9954
SELECT ALL 7 - + 43 + + + MAX ( + - CAST ( 72 AS INTEGER ) ) - + 82 + - 98 * 15 * - 53
----
77720

query I rowsort
SELECT 33 + - 86 + + 63
----
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9956
SELECT CAST( - 52 AS SIGNED ) * 51 col1
----
-2652

skipif mysql # not compatible
query I rowsort label-9956
SELECT CAST ( - 52 AS INTEGER ) * 51 col1
----
-2652

onlyif mysql # aggregate syntax: 
query I rowsort label-9957
SELECT - 67 * - 1 * 81 + - COUNT( * )
----
5426

skipif mysql # not compatible
query I rowsort label-9957
SELECT - 67 * - 1 * 81 + - COUNT ( * )
----
5426

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9958
SELECT CAST( - 25 AS SIGNED ) - + CAST( NULL AS SIGNED ) * 73 + - + 80
----
NULL

skipif mysql # not compatible
query I rowsort label-9958
SELECT CAST ( - 25 AS INTEGER ) - + CAST ( NULL AS INTEGER ) * 73 + - + 80
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9959
SELECT ALL + CASE + 36 WHEN - 2 - COUNT( * ) * + + COUNT( * ) * ( 82 ) THEN NULL WHEN + CASE + 20 WHEN 26 THEN + 63 + + 80 * 43 END * 68 - MIN( ALL 84 - - 56 ) THEN + 93 * + MAX( ALL 43 / + 70 ) ELSE NULL END - - CASE 90 WHEN + 56 THEN NULL ELSE + 98 END / 61 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9959
SELECT ALL + CASE + 36 WHEN - 2 - COUNT ( * ) * + + COUNT ( * ) * ( 82 ) THEN NULL WHEN + CASE + 20 WHEN 26 THEN + 63 + + 80 * 43 END * 68 - MIN ( ALL 84 - - 56 ) THEN + 93 * + MAX ( ALL 43 / + 70 ) ELSE NULL END - - CASE 90 WHEN + 56 THEN NULL ELSE + 98 END / 61 AS col2
----
NULL

query II rowsort
SELECT 69 AS col0, 9
----
69
9

query I rowsort
SELECT 38 + + + CASE - 98 WHEN + 12 THEN + 7 - - 11 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9962
SELECT + 18 * + ( + COUNT( * ) ) AS col2
----
18

skipif mysql # not compatible
query I rowsort label-9962
SELECT + 18 * + ( + COUNT ( * ) ) AS col2
----
18

query II rowsort
SELECT DISTINCT - + 93 AS col1, - 50 + 94 AS col1
----
-93
44

query I rowsort
SELECT - 5 * 44 + - 64 + 18 AS col1
----
-266

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-9965
SELECT ALL - 73, - CAST( NULL AS SIGNED ) + + + CASE + - 11 WHEN AVG ( + 19 ) THEN NULL WHEN COALESCE ( 95, + CAST( NULL AS DECIMAL ) ) + 79 THEN - 75 + 23 WHEN 8 + 36 THEN NULL ELSE NULL END / 49 col1
----
-73
NULL

skipif mysql # not compatible
query II rowsort label-9965
SELECT ALL - 73, - CAST ( NULL AS INTEGER ) + + + CASE + - 11 WHEN AVG ( + 19 ) THEN NULL WHEN COALESCE ( 95, + CAST ( NULL AS REAL ) ) + 79 THEN - 75 + 23 WHEN 8 + 36 THEN NULL ELSE NULL END / 49 col1
----
-73
NULL

query I rowsort
SELECT 76 * + 73
----
5548

onlyif mysql # aggregate syntax: 
query I rowsort label-9967
SELECT DISTINCT + 51 * - + SUM( - 8 ) AS col0
----
408

skipif mysql # not compatible
query I rowsort label-9967
SELECT DISTINCT + 51 * - + SUM ( - 8 ) AS col0
----
408

query I rowsort
SELECT 53 + - + 83 * - 68 AS col1
----
5697

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9969
SELECT DISTINCT 62, + 28 DIV + + CAST( 76 AS SIGNED ) AS col0
----
62
0

skipif mysql # not compatible
query II rowsort label-9969
SELECT DISTINCT 62, + 28 / + + CAST ( 76 AS INTEGER ) AS col0
----
62
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9970
SELECT ALL + 58 + - 37 + - MAX( + 91 ) DIV + 43
----
19

skipif mysql # not compatible
query I rowsort label-9970
SELECT ALL + 58 + - 37 + - MAX ( + 91 ) / + 43
----
19

query I rowsort
SELECT DISTINCT - 99 + - 72
----
-171

onlyif mysql # aggregate syntax: 
query I rowsort label-9972
SELECT - COUNT( * ) * - + COUNT( * ) + + 89 * + 43
----
3828

skipif mysql # not compatible
query I rowsort label-9972
SELECT - COUNT ( * ) * - + COUNT ( * ) + + 89 * + 43
----
3828

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9973
SELECT DISTINCT + + 67 DIV + COALESCE ( CAST( - 49 AS SIGNED ), - 76 ) + + - 12
----
-13

skipif mysql # not compatible
query I rowsort label-9973
SELECT DISTINCT + + 67 / + COALESCE ( CAST ( - 49 AS INTEGER ), - 76 ) + + - 12
----
-13

query I rowsort
SELECT + 23 - - 36 AS col1
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-9975
SELECT COUNT( * ) * + + 54
----
54

skipif mysql # not compatible
query I rowsort label-9975
SELECT COUNT ( * ) * + + 54
----
54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9976
SELECT ALL + CASE 33 WHEN 34 + + - 60 * - + 18 * + 68 THEN NULL WHEN - 92 THEN NULL WHEN + 2 + + 10 DIV COUNT( + 85 ) THEN COALESCE ( 38, 22 - + 42 * + 99, - CASE - ( + CAST( - ( + 85 ) AS SIGNED ) ) WHEN + ( 95 ) + 9 THEN 32 + - 9 * + 14 WHEN - CAST( 26 AS SIGNED ) THEN NULL ELSE NULL END * 87, - 73 ) WHEN 13 THEN 78 + - 50 ELSE + CASE 52 WHEN + 82 THEN NULL ELSE ( 8 ) DIV - 13 END END + ( - 97 ) DIV + 43 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-9976
SELECT ALL + CASE 33 WHEN 34 + + - 60 * - + 18 * + 68 THEN NULL WHEN - 92 THEN NULL WHEN + 2 + + 10 / COUNT ( + 85 ) THEN COALESCE ( 38, 22 - + 42 * + 99, - CASE - ( + CAST ( - ( + 85 ) AS INTEGER ) ) WHEN + ( 95 ) + 9 THEN 32 + - 9 * + 14 WHEN - CAST ( 26 AS INTEGER ) THEN NULL ELSE NULL END * 87, - 73 ) WHEN 13 THEN 78 + - 50 ELSE + CASE 52 WHEN + 82 THEN NULL ELSE ( 8 ) / - 13 END END + ( - 97 ) / + 43 AS col2
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-9977
SELECT 11 * - COUNT( * )
----
-11

skipif mysql # not compatible
query I rowsort label-9977
SELECT 11 * - COUNT ( * )
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-9978
SELECT ALL - ( + NULLIF ( + + COUNT( * ), - ( + COALESCE ( - 69, + 60 * 44 ) ) ) ) + 59 AS col2
----
58

skipif mysql # not compatible
query I rowsort label-9978
SELECT ALL - ( + NULLIF ( + + COUNT ( * ), - ( + COALESCE ( - 69, + 60 * 44 ) ) ) ) + 59 AS col2
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-9979
SELECT - 49 - MIN( DISTINCT + + 20 ) AS col0
----
-69

skipif mysql # not compatible
query I rowsort label-9979
SELECT - 49 - MIN ( DISTINCT + + 20 ) AS col0
----
-69

query I rowsort
SELECT ALL CASE + 75 WHEN - ( + + 50 ) * + 0 + - - 71 THEN - - 17 * 85 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9981
SELECT DISTINCT + ( 54 ) - + SUM( + - 45 ) + - COUNT( * )
----
98

skipif mysql # not compatible
query I rowsort label-9981
SELECT DISTINCT + ( 54 ) - + SUM ( + - 45 ) + - COUNT ( * )
----
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9982
SELECT - 13 * + + 67 * + 0 / + CASE + 25 WHEN - 65 / 18 * 64 + - MIN( ALL 27 + 77 ) * 25 THEN 72 WHEN + 86 / + ( CAST( NULL AS SIGNED ) / + 13 ) + + 29 THEN NULL END * + 94 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9982
SELECT - 13 * + + 67 * + 0 / + CASE + 25 WHEN - 65 / 18 * 64 + - MIN ( ALL 27 + 77 ) * 25 THEN 72 WHEN + 86 / + ( CAST ( NULL AS INTEGER ) / + 13 ) + + 29 THEN NULL END * + 94 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9983
SELECT COUNT( * ) * + + 7 + - 52 * + 42
----
-2177

skipif mysql # not compatible
query I rowsort label-9983
SELECT COUNT ( * ) * + + 7 + - 52 * + 42
----
-2177

query I rowsort
SELECT NULLIF ( + + 59, + 42 )
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-9985
SELECT - MAX( DISTINCT + 36 ) * 14 + 32 + + - 43 * + 0 * + 41 AS col1
----
-472

skipif mysql # not compatible
query I rowsort label-9985
SELECT - MAX ( DISTINCT + 36 ) * 14 + 32 + + - 43 * + 0 * + 41 AS col1
----
-472

query I rowsort
SELECT DISTINCT 95 * - 26
----
-2470

query I rowsort
SELECT DISTINCT + ( + 43 )
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-9988
SELECT ALL + SUM( ALL 16 ) AS col2
----
16

skipif mysql # not compatible
query I rowsort label-9988
SELECT ALL + SUM ( ALL 16 ) AS col2
----
16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9989
SELECT - ( + COUNT( * ) ) DIV 94 + - 3 + 9 * + - 88
----
-795

skipif mysql # not compatible
query I rowsort label-9989
SELECT - ( + COUNT ( * ) ) / 94 + - 3 + 9 * + - 88
----
-795

onlyif mysql # aggregate syntax: 
query I rowsort label-9990
SELECT ALL COUNT( * ) * - + 13 col1
----
-13

skipif mysql # not compatible
query I rowsort label-9990
SELECT ALL COUNT ( * ) * - + 13 col1
----
-13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9991
SELECT ALL - CAST( NULL AS SIGNED ) * + 56 / 13 * + - COUNT( ALL + 34 ) + - 40 * - 98 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9991
SELECT ALL - CAST ( NULL AS INTEGER ) * + 56 / 13 * + - COUNT ( ALL + 34 ) + - 40 * - 98 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9992
SELECT + + COUNT( + 46 ) * MIN( DISTINCT - - 92 ) DIV ( - COUNT( - 17 ) ) DIV 2 - + 81
----
-127

skipif mysql # not compatible
query I rowsort label-9992
SELECT + + COUNT ( + 46 ) * MIN ( DISTINCT - - 92 ) / ( - COUNT ( - 17 ) ) / 2 - + 81
----
-127

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9993
SELECT - 69 / CAST( NULL AS SIGNED ) * - - 97 * 92 + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-9993
SELECT - 69 / CAST ( NULL AS INTEGER ) * - - 97 * 92 + - COUNT ( * )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9994
SELECT + - 2 DIV + - 80 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9994
SELECT + - 2 / + - 80 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9995
SELECT ALL + 41 * + - 72 * - ( + ( - ( + NULLIF ( 99, + 33 ) ) ) ) + + MIN( ALL - 51 )
----
-292299

skipif mysql # not compatible
query I rowsort label-9995
SELECT ALL + 41 * + - 72 * - ( + ( - ( + NULLIF ( 99, + 33 ) ) ) ) + + MIN ( ALL - 51 )
----
-292299

onlyif mysql # aggregate syntax: 
query I rowsort label-9996
SELECT + MIN( NULLIF ( ( + ( 90 ) ), - 23 * + - 46 / - ( - 6 ) ) )
----
90

skipif mysql # not compatible
query I rowsort label-9996
SELECT + MIN ( NULLIF ( ( + ( 90 ) ), - 23 * + - 46 / - ( - 6 ) ) )
----
90

onlyif mysql # aggregate syntax: 
query II rowsort label-9997
SELECT DISTINCT + COUNT( + 97 ) AS col1, 26
----
1
26

skipif mysql # not compatible
query II rowsort label-9997
SELECT DISTINCT + COUNT ( + 97 ) AS col1, 26
----
1
26

query I rowsort
SELECT - 74 * + 53 - - 88 + 69 + - 69 AS col0
----
-3834

query I rowsort
SELECT DISTINCT - ( - 77 ) * - + 23
----
-1771

