sqllogictest
Artifact Content
Not logged in

Artifact 05cd46d69fbe825cce4d88b4d1c0d239fd988ba5:


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