sqllogictest
Artifact Content
Not logged in

Artifact 9e36cc3bb0da0951e659c7688f8963777a1816db:


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)

query I rowsort
SELECT 59 * - - 79 + 96
----
4757

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2
SELECT ALL CASE 40 WHEN + 14 THEN NULL WHEN 80 THEN 29 / + 8 + 96 ELSE NULL END / + MIN( DISTINCT - ( + + 86 ) ) - 48 + - 50
----
NULL

skipif mysql # not compatible
query I rowsort label-2
SELECT ALL CASE 40 WHEN + 14 THEN NULL WHEN 80 THEN 29 / + 8 + 96 ELSE NULL END / + MIN ( DISTINCT - ( + + 86 ) ) - 48 + - 50
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-4
SELECT + 42 * - + NULLIF ( COALESCE ( + 3, - 71 + COUNT( * ) ), + 9 ) * + COUNT( * ) AS col1
----
-126

skipif mysql # not compatible
query I rowsort label-4
SELECT + 42 * - + NULLIF ( COALESCE ( + 3, - 71 + COUNT ( * ) ), + 9 ) * + COUNT ( * ) AS col1
----
-126

query I rowsort
SELECT + - 49 * + ( - 43 ) + + 99
----
2206

query I rowsort
SELECT + + 38 - 41 * - 39
----
1637

onlyif mysql # DIV for integer division: 
query I rowsort label-7
SELECT - - 0 DIV 45 + - 45 AS col0
----
-45

skipif mysql # not compatible
query I rowsort label-7
SELECT - - 0 / 45 + - 45 AS col0
----
-45

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

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

query I rowsort
SELECT ALL + 8 * 51 + + 40 AS col1
----
448

onlyif mysql # aggregate syntax: 
query I rowsort label-10
SELECT + ( + 13 ) - COUNT( DISTINCT - - 73 ) AS col2
----
12

skipif mysql # not compatible
query I rowsort label-10
SELECT + ( + 13 ) - COUNT ( DISTINCT - - 73 ) AS col2
----
12

query I rowsort
SELECT - 56 * 31
----
-1736

query I rowsort
SELECT ALL - 45 * + 26 col0
----
-1170

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

skipif mysql # not compatible
query I rowsort label-13
SELECT + 44 + + COUNT ( * ) / + 80
----
44

query I rowsort
SELECT NULLIF ( 95, + + 85 / 24 )
----
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-15
SELECT ALL - MIN( + + ( - - 1 ) ) * 82 * 0 + 8 * + 92 + + - 29 + CAST( + - 48 AS SIGNED ) + - 24 * 22
----
131

skipif mysql # not compatible
query I rowsort label-15
SELECT ALL - MIN ( + + ( - - 1 ) ) * 82 * 0 + 8 * + 92 + + - 29 + CAST ( + - 48 AS INTEGER ) + - 24 * 22
----
131

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-17
SELECT - CASE + 78 WHEN + - 51 + - 38 THEN NULL WHEN + 81 + + COALESCE ( + - 26, + COALESCE ( - - 98, - 99 ) * + + 18 * + MIN( + NULLIF ( - 27, + 39 + + - 80 ) ) ) + - + 85 * + 21 + + COUNT( * ) THEN - ( - 35 ) ELSE NULL END * 17 + ( - 88 )
----
NULL

skipif mysql # not compatible
query I rowsort label-17
SELECT - CASE + 78 WHEN + - 51 + - 38 THEN NULL WHEN + 81 + + COALESCE ( + - 26, + COALESCE ( - - 98, - 99 ) * + + 18 * + MIN ( + NULLIF ( - 27, + 39 + + - 80 ) ) ) + - + 85 * + 21 + + COUNT ( * ) THEN - ( - 35 ) ELSE NULL END * 17 + ( - 88 )
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-19
SELECT ALL + 74 * COUNT( * ) + - 79 AS col0
----
-5

skipif mysql # not compatible
query I rowsort label-19
SELECT ALL + 74 * COUNT ( * ) + - 79 AS col0
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-20
SELECT DISTINCT - 91 * MIN( - - 73 ) + - - 91 AS col1
----
-6552

skipif mysql # not compatible
query I rowsort label-20
SELECT DISTINCT - 91 * MIN ( - - 73 ) + - - 91 AS col1
----
-6552

query II rowsort
SELECT 66 + - ( + - 1 ), 33 AS col1
----
67
33

query I rowsort
SELECT 76 + + ( - 7 ) AS col1
----
69

query II rowsort
SELECT - 10 AS col2, - 77 * - 15 * + 14 AS col0
----
-10
16170

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

skipif mysql # not compatible
query I rowsort label-24
SELECT DISTINCT + 92 / - COUNT ( * )
----
-92

onlyif mysql # DIV for integer division: 
query I rowsort label-25
SELECT 66 DIV 84 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-25
SELECT 66 / 84 AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-26
SELECT COUNT( * ) DIV - 52 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-26
SELECT COUNT ( * ) / - 52 AS col1
----
0

query I rowsort
SELECT 72 * NULLIF ( - 57, + 42 )
----
-4104

onlyif mysql # DIV for integer division: 
query I rowsort label-28
SELECT DISTINCT + 55 DIV - + 36 + 10
----
9

skipif mysql # not compatible
query I rowsort label-28
SELECT DISTINCT + 55 / - + 36 + 10
----
9

query I rowsort
SELECT ( 50 ) - + - 24
----
74

query I rowsort
SELECT DISTINCT ( + + 72 ) AS col0
----
72

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-31
SELECT ALL - SUM( 28 ) * + ( - - COUNT( - 75 ) ) + 43 + - 69 * 62 + - 68 - + 15 * + 86 DIV + 1
----
-5621

skipif mysql # not compatible
query I rowsort label-31
SELECT ALL - SUM ( 28 ) * + ( - - COUNT ( - 75 ) ) + 43 + - 69 * 62 + - 68 - + 15 * + 86 / + 1
----
-5621

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-33
SELECT DISTINCT - - NULLIF ( - SUM( + 40 ), - MAX( ALL - + 32 ) ) AS col2
----
-40

skipif mysql # not compatible
query I rowsort label-33
SELECT DISTINCT - - NULLIF ( - SUM ( + 40 ), - MAX ( ALL - + 32 ) ) AS col2
----
-40

query I rowsort
SELECT DISTINCT - + 24 * + + 50 AS col0
----
-1200

query I rowsort
SELECT 64 + + 49 * + 18 * - 19
----
-16694

query I rowsort
SELECT - 57 * 6 * + + 41 - - 15 col1
----
-14007

onlyif mysql # aggregate syntax: 
query I rowsort label-37
SELECT ALL - CASE + 4 WHEN - 54 THEN NULL WHEN + + 33 THEN - 29 + - COUNT( * ) WHEN - 91 * - 60 + + + 50 * - COUNT( * ) + + 13 THEN NULL ELSE NULL END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-37
SELECT ALL - CASE + 4 WHEN - 54 THEN NULL WHEN + + 33 THEN - 29 + - COUNT ( * ) WHEN - 91 * - 60 + + + 50 * - COUNT ( * ) + + 13 THEN NULL ELSE NULL END col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-38
SELECT ALL + ( + - 23 ) DIV - 28
----
0

skipif mysql # not compatible
query I rowsort label-38
SELECT ALL + ( + - 23 ) / - 28
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-39
SELECT + CAST( NULL AS DECIMAL ) + - 48 * + - COALESCE ( + + 64, + - 79 )
----
NULL

skipif mysql # not compatible
query I rowsort label-39
SELECT + CAST ( NULL AS REAL ) + - 48 * + - COALESCE ( + + 64, + - 79 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-40
SELECT DISTINCT ( + + CASE - COUNT( * ) WHEN 22 THEN NULL WHEN + ( + 23 ) - + - 0 / + CAST( - COUNT( * ) AS DECIMAL ) / + 5 THEN - ( COUNT( * ) ) ELSE NULL END ) * + NULLIF ( + + 60, - 91 * 89 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-40
SELECT DISTINCT ( + + CASE - COUNT ( * ) WHEN 22 THEN NULL WHEN + ( + 23 ) - + - 0 / + CAST ( - COUNT ( * ) AS REAL ) / + 5 THEN - ( COUNT ( * ) ) ELSE NULL END ) * + NULLIF ( + + 60, - 91 * 89 ) AS col0
----
NULL

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-42
SELECT NULLIF ( + 13, MIN( DISTINCT + 35 ) DIV NULLIF ( 11, + 95 ) + - 58 + + 29 * ( - 67 ) - 11 + - 46 ) DIV 29 + + COUNT( * ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-42
SELECT NULLIF ( + 13, MIN ( DISTINCT + 35 ) / NULLIF ( 11, + 95 ) + - 58 + + 29 * ( - 67 ) - 11 + - 46 ) / 29 + + COUNT ( * ) AS col0
----
1

query II rowsort
SELECT 41 * - 35, 83 * - 76 AS col2
----
-1435
-6308

query I rowsort
SELECT 77 + 52 + + 38
----
167

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-45
SELECT ALL CAST( - 96 AS SIGNED ) + - 20 + + ( - 18 ) * 51
----
-1034

skipif mysql # not compatible
query I rowsort label-45
SELECT ALL CAST ( - 96 AS INTEGER ) + - 20 + + ( - 18 ) * 51
----
-1034

onlyif mysql # aggregate syntax: 
query I rowsort label-46
SELECT DISTINCT COUNT( * ) - + 56
----
-55

skipif mysql # not compatible
query I rowsort label-46
SELECT DISTINCT COUNT ( * ) - + 56
----
-55

query I rowsort
SELECT 92 * - 74 col1
----
-6808

query I rowsort
SELECT DISTINCT + 6 - + + 37 * + - 22 AS col1
----
820

query I rowsort
SELECT ALL + 79 * + 84 AS col2
----
6636

query I rowsort
SELECT - 53 + - + 50
----
-103

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-51
SELECT COALESCE ( + COALESCE ( MIN( DISTINCT 21 ), + - 26 ), - 87 * COUNT( * ) ) - - + 13 DIV ( - NULLIF ( + 78, - 86 DIV - - 15 ) ) + - 84
----
-63

skipif mysql # not compatible
query I rowsort label-51
SELECT COALESCE ( + COALESCE ( MIN ( DISTINCT 21 ), + - 26 ), - 87 * COUNT ( * ) ) - - + 13 / ( - NULLIF ( + 78, - 86 / - - 15 ) ) + - 84
----
-63

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

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

query I rowsort
SELECT 33 * - 14 AS col2
----
-462

query II rowsort
SELECT + 3 + + 88, 38 col0
----
91
38

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-55
SELECT DISTINCT + 11 DIV + CASE WHEN NOT NULL IN ( + 82, - COUNT( * ) * + ( + AVG ( DISTINCT + 10 ) ) ) THEN NULL ELSE 2 END DIV - COUNT( * )
----
-5

skipif mysql # not compatible
query I rowsort label-55
SELECT DISTINCT + 11 / + CASE WHEN NOT NULL IN ( + 82, - COUNT ( * ) * + ( + AVG ( DISTINCT + 10 ) ) ) THEN NULL ELSE 2 END / - COUNT ( * )
----
-5

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-57
SELECT + 60 DIV + 68 * + + 61 * 63 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-57
SELECT + 60 / + 68 * + + 61 * 63 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-58
SELECT ALL + 7 * + 12 + + 81 + + + ( - COUNT( * ) ) + 0 * - 24 + 77
----
241

skipif mysql # not compatible
query I rowsort label-58
SELECT ALL + 7 * + 12 + + 81 + + + ( - COUNT ( * ) ) + 0 * - 24 + 77
----
241

query I rowsort
SELECT + NULLIF ( + 29, - 46 ) AS col0
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-60
SELECT DISTINCT - + 31 * 36 + 45 + + 30 + - COUNT( * )
----
-1042

skipif mysql # not compatible
query I rowsort label-60
SELECT DISTINCT - + 31 * 36 + 45 + + 30 + - COUNT ( * )
----
-1042

query I rowsort
SELECT 81 - + 55
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-62
SELECT MAX( ALL 20 ) AS col1
----
20

skipif mysql # not compatible
query I rowsort label-62
SELECT MAX ( ALL 20 ) AS col1
----
20

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

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

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

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

query I rowsort
SELECT + 91 - 0 + - ( + 89 ) * - 91
----
8190

onlyif mysql # aggregate syntax: 
query II rowsort label-66
SELECT ALL + 92 AS col0, 29 * + ( - - COUNT( * ) ) AS col2
----
92
29

skipif mysql # not compatible
query II rowsort label-66
SELECT ALL + 92 AS col0, 29 * + ( - - COUNT ( * ) ) AS col2
----
92
29

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

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

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

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

query I rowsort
SELECT ALL 49 - 10 - + 45
----
-6

query I rowsort
SELECT ALL 25 * - - 24 col0
----
600

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-71
SELECT - COALESCE ( + 83, - COUNT( * ) DIV + - 86 ) + + 4 AS col2
----
-79

skipif mysql # not compatible
query I rowsort label-71
SELECT - COALESCE ( + 83, - COUNT ( * ) / + - 86 ) + + 4 AS col2
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-72
SELECT + COUNT( * ) + + 64 - 56 + - 49 * - 24
----
1185

skipif mysql # not compatible
query I rowsort label-72
SELECT + COUNT ( * ) + + 64 - 56 + - 49 * - 24
----
1185

query I rowsort
SELECT + 13 - 81 + - 90
----
-158

query II rowsort
SELECT 60 AS col2, 85 + COALESCE ( + 73, + 63 )
----
60
158

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-75
SELECT ALL - 92 * + SUM( 89 ) DIV - - COUNT( * )
----
-8188

skipif mysql # not compatible
query I rowsort label-75
SELECT ALL - 92 * + SUM ( 89 ) / - - COUNT ( * )
----
-8188

query I rowsort
SELECT DISTINCT 48 * 32
----
1536

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-77
SELECT 77 col1, COUNT( * ) DIV 66
----
77
0

skipif mysql # not compatible
query II rowsort label-77
SELECT 77 col1, COUNT ( * ) / 66
----
77
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-78
SELECT ALL 83 * COUNT( * ) DIV + 36
----
2

skipif mysql # not compatible
query I rowsort label-78
SELECT ALL 83 * COUNT ( * ) / + 36
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-79
SELECT + 53 + + 30 DIV 13 * + - 60 + + 92 AS col1
----
25

skipif mysql # not compatible
query I rowsort label-79
SELECT + 53 + + 30 / 13 * + - 60 + + 92 AS col1
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-80
SELECT + 56 + + - 14 + + ( + COALESCE ( MIN( ALL - 72 ), + 84 ) ) + + 7 - - 71 + - 96 * + CASE + - COUNT( * ) WHEN - NULLIF ( 5, + 62 ) * 57 * - COALESCE ( - 63, 65 ) + + 76 THEN + ( 36 ) - + COUNT( * ) END * MIN( 84 )
----
NULL

skipif mysql # not compatible
query I rowsort label-80
SELECT + 56 + + - 14 + + ( + COALESCE ( MIN ( ALL - 72 ), + 84 ) ) + + 7 - - 71 + - 96 * + CASE + - COUNT ( * ) WHEN - NULLIF ( 5, + 62 ) * 57 * - COALESCE ( - 63, 65 ) + + 76 THEN + ( 36 ) - + COUNT ( * ) END * MIN ( 84 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-81
SELECT + + 51 + 56 - + ( 63 ) * - + ( - 59 ) * + 63 - - 14 DIV - + 35 * + + 97
----
-234064

skipif mysql # not compatible
query I rowsort label-81
SELECT + + 51 + 56 - + ( 63 ) * - + ( - 59 ) * + 63 - - 14 / - + 35 * + + 97
----
-234064

query I rowsort
SELECT - - 70 * - NULLIF ( + 39, - + 88 )
----
-2730

query I rowsort
SELECT ALL + 12 + - 16 AS col2
----
-4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-84
SELECT + 54 - - 6 + CAST( NULL AS SIGNED ) / + COALESCE ( - + 81, CAST( NULL AS SIGNED ) + + 49 ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-84
SELECT + 54 - - 6 + CAST ( NULL AS INTEGER ) / + COALESCE ( - + 81, CAST ( NULL AS INTEGER ) + + 49 ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-85
SELECT ALL COUNT( * ) * - CASE + 54 WHEN COUNT( * ) THEN - 90 * + 89 + 45 + - 48 WHEN COUNT( * ) * + COUNT( * ) + NULLIF ( 85, + 11 + - 68 ) + 0 + - 87 THEN + - COUNT( * ) + ( - 78 ) ELSE NULL END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-85
SELECT ALL COUNT ( * ) * - CASE + 54 WHEN COUNT ( * ) THEN - 90 * + 89 + 45 + - 48 WHEN COUNT ( * ) * + COUNT ( * ) + NULLIF ( 85, + 11 + - 68 ) + 0 + - 87 THEN + - COUNT ( * ) + ( - 78 ) ELSE NULL END col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-86
SELECT DISTINCT + MIN( DISTINCT + - 59 ) + + + 54 + - CASE + - 98 WHEN + CASE 56 WHEN ( - COUNT( * ) ) THEN + + 12 ELSE + 86 DIV - - NULLIF ( 76, MIN( - 65 ) + 25 * 10 ) + + 31 END * + 32 DIV 32 THEN + 56 + 1 ELSE CAST( 65 AS SIGNED ) DIV - 73 - 88 * 95 END + + 77 * 92 * - 22 col1
----
-147493

skipif mysql # not compatible
query I rowsort label-86
SELECT DISTINCT + MIN ( DISTINCT + - 59 ) + + + 54 + - CASE + - 98 WHEN + CASE 56 WHEN ( - COUNT ( * ) ) THEN + + 12 ELSE + 86 / - - NULLIF ( 76, MIN ( - 65 ) + 25 * 10 ) + + 31 END * + 32 / 32 THEN + 56 + 1 ELSE CAST ( 65 AS INTEGER ) / - 73 - 88 * 95 END + + 77 * 92 * - 22 col1
----
-147493

onlyif mysql # aggregate syntax: 
query I rowsort label-87
SELECT - - CASE + + COALESCE ( 42, + 81 * + + ( - - 33 ) - + COUNT( * ) + + 50 * + 11 + - 73 ) WHEN - 25 THEN + - 42 ELSE NULL END + - ( - 43 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-87
SELECT - - CASE + + COALESCE ( 42, + 81 * + + ( - - 33 ) - + COUNT ( * ) + + 50 * + 11 + - 73 ) WHEN - 25 THEN + - 42 ELSE NULL END + - ( - 43 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-88
SELECT + 10 / + + CASE - COALESCE ( + - MAX( + 73 ), MAX( DISTINCT + 52 ) + - COUNT( * ) ) WHEN - COUNT( DISTINCT - + 52 ) / + 41 * 54 THEN COUNT( * ) END / - 0 + + ( - 86 ) * + - 76 * 49 - - 92 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-88
SELECT + 10 / + + CASE - COALESCE ( + - MAX ( + 73 ), MAX ( DISTINCT + 52 ) + - COUNT ( * ) ) WHEN - COUNT ( DISTINCT - + 52 ) / + 41 * 54 THEN COUNT ( * ) END / - 0 + + ( - 86 ) * + - 76 * 49 - - 92 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-89
SELECT - + 11 * - COUNT( * ) * + 68
----
748

skipif mysql # not compatible
query I rowsort label-89
SELECT - + 11 * - COUNT ( * ) * + 68
----
748

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-90
SELECT ALL - + 39 DIV MIN( ALL + 75 )
----
0

skipif mysql # not compatible
query I rowsort label-90
SELECT ALL - + 39 / MIN ( ALL + 75 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-91
SELECT DISTINCT + COUNT( * ) * COALESCE ( 16, 71 + COUNT( * ) + 72 + - MAX( + 62 ) * + + 93 - + 13, 85 + + + 67 ) - - - 33
----
-17

skipif mysql # not compatible
query I rowsort label-91
SELECT DISTINCT + COUNT ( * ) * COALESCE ( 16, 71 + COUNT ( * ) + 72 + - MAX ( + 62 ) * + + 93 - + 13, 85 + + + 67 ) - - - 33
----
-17

onlyif mysql # DIV for integer division: 
query I rowsort label-92
SELECT DISTINCT 21 DIV + 68 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-92
SELECT DISTINCT 21 / + 68 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-93
SELECT ALL + CASE 12 WHEN + CASE ( - + 72 ) WHEN - 66 THEN - - NULLIF ( 72, + - CAST( NULL AS SIGNED ) + + MAX( + 95 ) + 93 - + 69 + + 57 - 84 - + 56 + AVG ( ALL + + 2 ) + - + 74 * + 83 * - COALESCE ( + 91, - 23 + + ( SUM( DISTINCT 80 ) ) ) / - 82 ) END + + 27 THEN - 52 ELSE + 30 END
----
30

skipif mysql # not compatible
query I rowsort label-93
SELECT ALL + CASE 12 WHEN + CASE ( - + 72 ) WHEN - 66 THEN - - NULLIF ( 72, + - CAST ( NULL AS INTEGER ) + + MAX ( + 95 ) + 93 - + 69 + + 57 - 84 - + 56 + AVG ( ALL + + 2 ) + - + 74 * + 83 * - COALESCE ( + 91, - 23 + + ( SUM ( DISTINCT 80 ) ) ) / - 82 ) END + + 27 THEN - 52 ELSE + 30 END
----
30

query II rowsort
SELECT DISTINCT + 8 col1, + 71
----
8
71

query I rowsort
SELECT ALL + 23 * 17 * + - 78 AS col2
----
-30498

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-96
SELECT - CAST( - COUNT( * ) AS SIGNED ) * + 5 + 80 + - 41 col0
----
44

skipif mysql # not compatible
query I rowsort label-96
SELECT - CAST ( - COUNT ( * ) AS INTEGER ) * + 5 + 80 + - 41 col0
----
44

query I rowsort
SELECT DISTINCT + 6 * + ( 91 )
----
546

onlyif mysql # aggregate syntax: 
query I rowsort label-98
SELECT COALESCE ( + - 35, - 12, + + COUNT( * ) )
----
-35

skipif mysql # not compatible
query I rowsort label-98
SELECT COALESCE ( + - 35, - 12, + + COUNT ( * ) )
----
-35

query I rowsort
SELECT - 82 * - 23 + + - ( + 66 ) AS col2
----
1820

onlyif mysql # aggregate syntax: 
query I rowsort label-100
SELECT NULLIF ( 75, - + 97 + + 73 + + AVG ( 18 ) * - 39 * + 71 * + - MIN( + 25 ) ) AS col0
----
75

skipif mysql # not compatible
query I rowsort label-100
SELECT NULLIF ( 75, - + 97 + + 73 + + AVG ( 18 ) * - 39 * + 71 * + - MIN ( + 25 ) ) AS col0
----
75

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

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

query I rowsort
SELECT DISTINCT - 6 * + 11 * 97 * - 65
----
416130

query I rowsort
SELECT - 60 * 33 AS col0
----
-1980

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-104
SELECT ALL + 56 AS col0, COALESCE ( + 33, 78, + + 70 ) * - + CAST( + + 76 AS SIGNED )
----
56
-2508

skipif mysql # not compatible
query II rowsort label-104
SELECT ALL + 56 AS col0, COALESCE ( + 33, 78, + + 70 ) * - + CAST ( + + 76 AS INTEGER )
----
56
-2508

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

query I rowsort
SELECT DISTINCT 69 * + - 59 + + 35 AS col1
----
-4036

query II rowsort
SELECT ALL 62 col1, 37 AS col2
----
62
37

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-108
SELECT - AVG ( ALL + 62 ) * CASE 10 WHEN - 36 * + COUNT( * ) / - 70 * 87 THEN NULL WHEN + 53 THEN - CASE 3 WHEN + NULLIF ( - - 4, 14 * + 54 ) THEN - - 72 * 50 + 59 WHEN - SUM( DISTINCT - CAST( + 49 AS DECIMAL ) ) THEN NULL END + 65 WHEN - 4 THEN 52 + + 12 ELSE NULL END + NULLIF ( - ( + ( + ( 49 ) ) ) + - 97, AVG ( + 83 ) * 34 )
----
NULL

skipif mysql # not compatible
query I rowsort label-108
SELECT - AVG ( ALL + 62 ) * CASE 10 WHEN - 36 * + COUNT ( * ) / - 70 * 87 THEN NULL WHEN + 53 THEN - CASE 3 WHEN + NULLIF ( - - 4, 14 * + 54 ) THEN - - 72 * 50 + 59 WHEN - SUM ( DISTINCT - CAST ( + 49 AS REAL ) ) THEN NULL END + 65 WHEN - 4 THEN 52 + + 12 ELSE NULL END + NULLIF ( - ( + ( + ( 49 ) ) ) + - 97, AVG ( + 83 ) * 34 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-109
SELECT ALL - 61 DIV + MAX( 5 ) col0
----
-12

skipif mysql # not compatible
query I rowsort label-109
SELECT ALL - 61 / + MAX ( 5 ) col0
----
-12

onlyif mysql # aggregate syntax: 
query II rowsort label-110
SELECT MIN( + - 26 ) AS col1, - COUNT( * )
----
-26
-1

skipif mysql # not compatible
query II rowsort label-110
SELECT MIN ( + - 26 ) AS col1, - COUNT ( * )
----
-26
-1

query II rowsort
SELECT 75, - ( 3 ) AS col1
----
75
-3

query II rowsort
SELECT - 2 + + 41 - + 99 + 11 * + - 47 * - 27, 61 AS col1
----
13899
61

query I rowsort
SELECT + + 16 * - - 73 * + 2 + 33 + + 11 AS col0
----
2380

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-114
SELECT DISTINCT + CASE - 49 WHEN MIN( DISTINCT + 69 ) THEN - NULLIF ( + 17, - CASE - 58 WHEN + - 49 * - SUM( ALL - - ( + ( + + ( + 8 ) ) ) ) + + - 29 + - 79 + + 35 * + 88 / 94 THEN - - COUNT( * ) WHEN 30 + MAX( + 32 ) THEN + 48 + 38 END / 36 ) ELSE + CASE + ( 2 ) WHEN - ( 48 ) THEN 17 WHEN 60 + 58 THEN CASE 93 WHEN 0 * 63 + 36 THEN + 11 WHEN - ( 86 ) * + CAST( NULL AS SIGNED ) THEN NULL ELSE NULL END END END + + COUNT( * ) * 95 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-114
SELECT DISTINCT + CASE - 49 WHEN MIN ( DISTINCT + 69 ) THEN - NULLIF ( + 17, - CASE - 58 WHEN + - 49 * - SUM ( ALL - - ( + ( + + ( + 8 ) ) ) ) + + - 29 + - 79 + + 35 * + 88 / 94 THEN - - COUNT ( * ) WHEN 30 + MAX ( + 32 ) THEN + 48 + 38 END / 36 ) ELSE + CASE + ( 2 ) WHEN - ( 48 ) THEN 17 WHEN 60 + 58 THEN CASE 93 WHEN 0 * 63 + 36 THEN + 11 WHEN - ( 86 ) * + CAST ( NULL AS INTEGER ) THEN NULL ELSE NULL END END END + + COUNT ( * ) * 95 AS col0
----
NULL

query I rowsort
SELECT + 42 * + 66
----
2772

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

skipif mysql # not compatible
query I rowsort label-116
SELECT DISTINCT - 92 + + COUNT ( * ) - + - 13
----
-78

query I rowsort
SELECT DISTINCT - 33 + + + 61 * - 13 * + - 26 + - 73 * - 28
----
22629

onlyif mysql # aggregate syntax: 
query I rowsort label-118
SELECT ALL COUNT( * ) + - COUNT( + 21 ) + + ( - COUNT( DISTINCT 30 ) ) + + CASE + ( - - 40 ) WHEN + 19 * ( - - 21 ) THEN NULL ELSE - 88 END + + COUNT( * ) AS col1
----
-88

skipif mysql # not compatible
query I rowsort label-118
SELECT ALL COUNT ( * ) + - COUNT ( + 21 ) + + ( - COUNT ( DISTINCT 30 ) ) + + CASE + ( - - 40 ) WHEN + 19 * ( - - 21 ) THEN NULL ELSE - 88 END + + COUNT ( * ) AS col1
----
-88

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

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

query I rowsort
SELECT + + 20 * 39 * 51
----
39780

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-121
SELECT - 1 + COUNT( * ) DIV ( 57 ) AS col2, + ( + - ( + 87 ) ) * 60 AS col0
----
-1
-5220

skipif mysql # not compatible
query II rowsort label-121
SELECT - 1 + COUNT ( * ) / ( 57 ) AS col2, + ( + - ( + 87 ) ) * 60 AS col0
----
-1
-5220

query I rowsort
SELECT DISTINCT - ( - 74 ) * - 99 * + 40 + 11
----
-293029

query I rowsort
SELECT ALL + 76 / - 95 - CASE - + 70 WHEN - ( - + 38 ) THEN NULL WHEN + 7 * - 72 THEN - 60 - + 98 + AVG ( ALL + 42 ) + + - 49 + 66 * + - 67 END
----
NULL

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-125
SELECT ALL 28 * NULLIF ( - + 93, - CASE - + 43 WHEN 84 THEN - 97 - - COUNT( * ) WHEN - CASE 37 WHEN - CAST( NULL AS SIGNED ) * + 97 * - 83 - 77 THEN + 4 * + + 84 - + 91 + - 55 - + COUNT( * ) END * ( + - 64 ) + CAST( + 55 AS SIGNED ) THEN + 82 ELSE 7 + CAST( - 71 AS DECIMAL ) * 35 END ) * 88
----
-229152

skipif mysql # not compatible
query I rowsort label-125
SELECT ALL 28 * NULLIF ( - + 93, - CASE - + 43 WHEN 84 THEN - 97 - - COUNT ( * ) WHEN - CASE 37 WHEN - CAST ( NULL AS INTEGER ) * + 97 * - 83 - 77 THEN + 4 * + + 84 - + 91 + - 55 - + COUNT ( * ) END * ( + - 64 ) + CAST ( + 55 AS INTEGER ) THEN + 82 ELSE 7 + CAST ( - 71 AS REAL ) * 35 END ) * 88
----
-229152

query II rowsort
SELECT 57 * + ( - - 1 ) * + 80 - 98 AS col0, + 64 - + + 28 + - 28 + 52
----
4462
60

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

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

query I rowsort
SELECT ALL 73 - + + 82 + + - 61 * 68 AS col1
----
-4157

query II rowsort
SELECT 47 - - + 21 AS col2, - 59
----
68
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-130
SELECT DISTINCT - NULLIF ( + + COUNT( * ), 95 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-130
SELECT DISTINCT - NULLIF ( + + COUNT ( * ), 95 ) AS col2
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-131
SELECT 28 * - + 26 - 76 + + CAST( + 86 AS SIGNED ) DIV 60 * - ( + + 59 ) * COALESCE ( COUNT( * ), - 66 * 86, 95 * 97 - + 72 ) + + 83 * - - 93 AS col1
----
6856

skipif mysql # not compatible
query I rowsort label-131
SELECT 28 * - + 26 - 76 + + CAST ( + 86 AS INTEGER ) / 60 * - ( + + 59 ) * COALESCE ( COUNT ( * ), - 66 * 86, 95 * 97 - + 72 ) + + 83 * - - 93 AS col1
----
6856

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-132
SELECT ALL - ( - + COUNT( * ) ), CAST( NULL AS SIGNED ) * + - 87 AS col1
----
1
NULL

skipif mysql # not compatible
query II rowsort label-132
SELECT ALL - ( - + COUNT ( * ) ), CAST ( NULL AS INTEGER ) * + - 87 AS col1
----
1
NULL

query I rowsort
SELECT ALL 66 + + 37 + + + 66
----
169

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-134
SELECT ALL + COALESCE ( - 6, - 36 DIV 28 DIV + 85 * + 18 * + 84, - - ( + - 12 ), - COUNT( * ) * 32 ) * - 57 * + 48 AS col1
----
16416

skipif mysql # not compatible
query I rowsort label-134
SELECT ALL + COALESCE ( - 6, - 36 / 28 / + 85 * + 18 * + 84, - - ( + - 12 ), - COUNT ( * ) * 32 ) * - 57 * + 48 AS col1
----
16416

query I rowsort
SELECT DISTINCT + 47 + + 23 AS col2
----
70

onlyif mysql # DIV for integer division: 
query II rowsort label-136
SELECT 7 * - + 49 AS col0, 57 * - - 61 - + 99 DIV ( + 24 ) + 20
----
-343
3493

skipif mysql # not compatible
query II rowsort label-136
SELECT 7 * - + 49 AS col0, 57 * - - 61 - + 99 / ( + 24 ) + 20
----
-343
3493

query I rowsort
SELECT 11 * 50 * - 85 * + + 95 * + 68 AS col1
----
-302005000

query I rowsort
SELECT ALL + 29 + - 94 * + - 42 AS col0
----
3977

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-139
SELECT DISTINCT - CASE 13 WHEN 68 + + + 54 + 26 / COALESCE ( 3, + - NULLIF ( 73, + AVG ( ALL - 36 ) ) ) THEN ( 89 ) WHEN + 20 THEN NULLIF ( - + CAST( + 16 AS SIGNED ), NULLIF ( - + ( - + 20 ), 26 / + 95 ) + 6 ) ELSE - 67 END * MIN( ALL 8 )
----
536

skipif mysql # not compatible
query I rowsort label-139
SELECT DISTINCT - CASE 13 WHEN 68 + + + 54 + 26 / COALESCE ( 3, + - NULLIF ( 73, + AVG ( ALL - 36 ) ) ) THEN ( 89 ) WHEN + 20 THEN NULLIF ( - + CAST ( + 16 AS INTEGER ), NULLIF ( - + ( - + 20 ), 26 / + 95 ) + 6 ) ELSE - 67 END * MIN ( ALL 8 )
----
536

query II rowsort
SELECT 91 + + 96 AS col2, 97 AS col2
----
187
97

query I rowsort
SELECT ALL - + 15 * 29 * - - 87 AS col2
----
-37845

query I rowsort
SELECT ALL + CASE - - 13 WHEN 85 * - + 97 THEN NULL WHEN + + 92 THEN - 76 END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-143
SELECT ALL + CAST( + 72 AS SIGNED ) + - SUM( DISTINCT - ( + 7 ) ) + + 40 + + 41 * - 14 * + 21 * 35 - + + COALESCE ( + CAST( + - 70 AS SIGNED ), 10 + + 68 + CASE + - 77 WHEN - ( + 9 ) * - 8 * 43 + 55 + + 73 THEN - 31 + + 44 WHEN + COUNT( * ) * - 80 THEN - 15 END * + COUNT( * ), 10 * COUNT( * ) ) + 95 * ( - ( - COUNT( DISTINCT 33 ) ) DIV 94 ) AS col2
----
-421701

skipif mysql # not compatible
query I rowsort label-143
SELECT ALL + CAST ( + 72 AS INTEGER ) + - SUM ( DISTINCT - ( + 7 ) ) + + 40 + + 41 * - 14 * + 21 * 35 - + + COALESCE ( + CAST ( + - 70 AS INTEGER ), 10 + + 68 + CASE + - 77 WHEN - ( + 9 ) * - 8 * 43 + 55 + + 73 THEN - 31 + + 44 WHEN + COUNT ( * ) * - 80 THEN - 15 END * + COUNT ( * ), 10 * COUNT ( * ) ) + 95 * ( - ( - COUNT ( DISTINCT 33 ) ) / 94 ) AS col2
----
-421701

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-144
SELECT DISTINCT 62 / - 99 + 28 * - 82 + + - 49 + + + 63 * - CASE - 35 WHEN + 77 * - 30 THEN - 54 + 7 + - 46 + CASE + - NULLIF ( 84, - + 33 ) WHEN 41 * + + 17 + - - 27 * + CAST( NULL AS SIGNED ) - - 29 + - MIN( + 40 ) / 42 THEN 17 * - 76 END ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-144
SELECT DISTINCT 62 / - 99 + 28 * - 82 + + - 49 + + + 63 * - CASE - 35 WHEN + 77 * - 30 THEN - 54 + 7 + - 46 + CASE + - NULLIF ( 84, - + 33 ) WHEN 41 * + + 17 + - - 27 * + CAST ( NULL AS INTEGER ) - - 29 + - MIN ( + 40 ) / 42 THEN 17 * - 76 END ELSE NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-145
SELECT ALL + SUM( ALL - 72 ) AS col0, - 78 * - CAST( NULL AS SIGNED ) * + 50 AS col1
----
-72
NULL

skipif mysql # not compatible
query II rowsort label-145
SELECT ALL + SUM ( ALL - 72 ) AS col0, - 78 * - CAST ( NULL AS INTEGER ) * + 50 AS col1
----
-72
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-146
SELECT DISTINCT + + 10 - + COUNT( * ) + + + 31
----
40

skipif mysql # not compatible
query I rowsort label-146
SELECT DISTINCT + + 10 - + COUNT ( * ) + + + 31
----
40

query I rowsort
SELECT 69 + - + NULLIF ( - 57, - 62 * 53 )
----
126

query I rowsort
SELECT DISTINCT - - 97 * 6
----
582

query I rowsort
SELECT 87 + + 29
----
116

query I rowsort
SELECT 46 * - - 0 col0
----
0

query II rowsort
SELECT ALL 46 * 44, 40 col0
----
2024
40

query I rowsort
SELECT - 16 + + 29
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-153
SELECT - - NULLIF ( 85, + MAX( DISTINCT - 82 ) + + - 93 + + 49 / + 17 + + 7 )
----
85

skipif mysql # not compatible
query I rowsort label-153
SELECT - - NULLIF ( 85, + MAX ( DISTINCT - 82 ) + + - 93 + + 49 / + 17 + + 7 )
----
85

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-155
SELECT 25 * 1 + - - 4 DIV + - 75 + 85
----
110

skipif mysql # not compatible
query I rowsort label-155
SELECT 25 * 1 + - - 4 / + - 75 + 85
----
110

query I rowsort
SELECT ALL + + 55 * - 80 AS col1
----
-4400

query I rowsort
SELECT - ( - + 42 ) * + 67 AS col2
----
2814

onlyif mysql # aggregate syntax: 
query I rowsort label-158
SELECT 67 + + 38 + - - 90 * + COUNT( * ) AS col0
----
195

skipif mysql # not compatible
query I rowsort label-158
SELECT 67 + + 38 + - - 90 * + COUNT ( * ) AS col0
----
195

query I rowsort
SELECT - 13 * - - 62 + + + 5 AS col1
----
-801

query I rowsort
SELECT 86 * - 97 AS col0
----
-8342

onlyif mysql # DIV for integer division: 
query I rowsort label-161
SELECT 60 DIV - 25 + - 82 + 5 * + 85 AS col0
----
341

skipif mysql # not compatible
query I rowsort label-161
SELECT 60 / - 25 + - 82 + 5 * + 85 AS col0
----
341

query II rowsort
SELECT DISTINCT - 8, 31 AS col1
----
-8
31

query II rowsort
SELECT ALL 66 + ( + 9 ) AS col0, + 3 * + 42 * - 55
----
75
-6930

onlyif mysql # DIV for integer division: 
query I rowsort label-164
SELECT COALESCE ( + 24, - - 38 + + 16 DIV - 48 * - 98 ) + - 97 AS col2
----
-73

skipif mysql # not compatible
query I rowsort label-164
SELECT COALESCE ( + 24, - - 38 + + 16 / - 48 * - 98 ) + - 97 AS col2
----
-73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-165
SELECT ALL 60 + - - COUNT( * ) + - - 47 + - CAST( - 7 AS SIGNED ) * - + 56 * + - 30 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-165
SELECT ALL 60 + - - COUNT ( * ) + - - 47 + - CAST ( - 7 AS INTEGER ) * - + 56 * + - 30 * + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 11 + - 41
----
-30

onlyif mysql # aggregate syntax: 
query III rowsort label-167
SELECT - 92 * + - 66 + + 31 AS col2, ( - CASE - 28 WHEN + 3 - + COUNT( * ) * + 92 + - 36 THEN - + 82 WHEN + 89 + - 97 THEN NULL ELSE - + 10 END ), + 41 + - ( - - COUNT( * ) ) AS col2
----
6103
10
40

skipif mysql # not compatible
query III rowsort label-167
SELECT - 92 * + - 66 + + 31 AS col2, ( - CASE - 28 WHEN + 3 - + COUNT ( * ) * + 92 + - 36 THEN - + 82 WHEN + 89 + - 97 THEN NULL ELSE - + 10 END ), + 41 + - ( - - COUNT ( * ) ) AS col2
----
6103
10
40

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-168
SELECT CASE + + 89 WHEN + COUNT( * ) THEN NULL WHEN 63 + + - MIN( - 99 ) + ( + ( - NULLIF ( - 70, CASE + 42 WHEN - + 22 * - MIN( DISTINCT - 80 ) THEN 10 + + 62 ELSE - - COUNT( * ) END ) ) ) THEN 39 - + 36 + + CASE CAST( + - 87 AS DECIMAL ) WHEN + 62 THEN 73 / 24 END / 67 WHEN - 37 THEN NULL END * 40 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-168
SELECT CASE + + 89 WHEN + COUNT ( * ) THEN NULL WHEN 63 + + - MIN ( - 99 ) + ( + ( - NULLIF ( - 70, CASE + 42 WHEN - + 22 * - MIN ( DISTINCT - 80 ) THEN 10 + + 62 ELSE - - COUNT ( * ) END ) ) ) THEN 39 - + 36 + + CASE CAST ( + - 87 AS REAL ) WHEN + 62 THEN 73 / 24 END / 67 WHEN - 37 THEN NULL END * 40 AS col2
----
NULL

query I rowsort
SELECT ALL - ( - 90 ) + - 51
----
39

query II rowsort
SELECT DISTINCT - + 54 AS col2, + 28
----
-54
28

query I rowsort
SELECT ALL + 94 + 24 AS col0
----
118

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-173
SELECT ALL - COUNT( * ) col1, 56 DIV - 16 - + - 87 - 17
----
-1
67

skipif mysql # not compatible
query II rowsort label-173
SELECT ALL - COUNT ( * ) col1, 56 / - 16 - + - 87 - 17
----
-1
67

query I rowsort
SELECT DISTINCT ( 61 ) - - - CASE - 21 WHEN + 52 THEN NULL WHEN - 7 * - 55 THEN ( - - 42 ) + + - 82 + 97 END * - 40 + - ( + + 35 ) col0
----
NULL

query I rowsort
SELECT ALL + 44 * 92 col0
----
4048

onlyif mysql # aggregate syntax: 
query I rowsort label-176
SELECT - 91 * + 59 + + - COUNT( * ) * - + 92 + 91 + + + 60
----
-5126

skipif mysql # not compatible
query I rowsort label-176
SELECT - 91 * + 59 + + - COUNT ( * ) * - + 92 + 91 + + + 60
----
-5126

onlyif mysql # DIV for integer division: 
query I rowsort label-177
SELECT ALL - 42 * + + 45 * - - 50 + + 10 DIV + 80 AS col1
----
-94500

skipif mysql # not compatible
query I rowsort label-177
SELECT ALL - 42 * + + 45 * - - 50 + + 10 / + 80 AS col1
----
-94500

query I rowsort
SELECT ( + CASE + 49 WHEN 0 / + 27 THEN NULL WHEN + 2 THEN 76 END ) AS col1
----
NULL

query I rowsort
SELECT ALL - + ( + 83 ) * - COALESCE ( + 33, + 81 ) AS col2
----
2739

onlyif mysql # aggregate syntax: 
query I rowsort label-180
SELECT ALL - CASE 22 WHEN - 99 THEN NULL ELSE + + COUNT( * ) + + 78 + - 92 + + + 56 - - 80 + 20 END
----
-143

skipif mysql # not compatible
query I rowsort label-180
SELECT ALL - CASE 22 WHEN - 99 THEN NULL ELSE + + COUNT ( * ) + + 78 + - 92 + + + 56 - - 80 + 20 END
----
-143

query II rowsort
SELECT + 98 AS col0, - 14
----
98
-14

query II rowsort
SELECT DISTINCT + 68, 70 AS col2
----
68
70

query I rowsort
SELECT - ( - 35 ) + + 63 + - 48
----
50

query II rowsort
SELECT 3, 33 col0
----
3
33

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

skipif mysql # not compatible
query I rowsort label-185
SELECT - COUNT ( * ) / - 84
----
0

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

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

query I rowsort
SELECT ALL + 64 + 78
----
142

onlyif mysql # aggregate syntax: 
query I rowsort label-188
SELECT - COUNT( * ) * - ( - - NULLIF ( 48, + 66 / 33 + - + 8 ) )
----
48

skipif mysql # not compatible
query I rowsort label-188
SELECT - COUNT ( * ) * - ( - - NULLIF ( 48, + 66 / 33 + - + 8 ) )
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-189
SELECT ALL MAX( - 83 ) * - COUNT( * )
----
83

skipif mysql # not compatible
query I rowsort label-189
SELECT ALL MAX ( - 83 ) * - COUNT ( * )
----
83

query I rowsort
SELECT ALL - 93 * 67 AS col0
----
-6231

query I rowsort
SELECT ALL - 29 * - 20 + 85
----
665

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-192
SELECT ALL 20 * - + ( + 83 ) + - 37 + 8 + 76 + - 28 * COUNT( * ) * + CAST( NULL AS SIGNED ) * 13 * 87 * - 20 / + 38 * - + 81 / - COUNT( * ) * 59 + + COUNT( * ) + - - 70 * + ( 71 ) / + - 36 + + - 41 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-192
SELECT ALL 20 * - + ( + 83 ) + - 37 + 8 + 76 + - 28 * COUNT ( * ) * + CAST ( NULL AS INTEGER ) * 13 * 87 * - 20 / + 38 * - + 81 / - COUNT ( * ) * 59 + + COUNT ( * ) + - - 70 * + ( 71 ) / + - 36 + + - 41 AS col1
----
NULL

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-195
SELECT - COUNT( * ) - 92, 98 col2
----
-93
98

skipif mysql # not compatible
query II rowsort label-195
SELECT - COUNT ( * ) - 92, 98 col2
----
-93
98

query I rowsort
SELECT + NULLIF ( 39, + 70 ) AS col1
----
39

query I rowsort
SELECT CASE 30 WHEN - - 37 + - 20 + - 92 * - ( - 82 ) - - ( + + 28 ) THEN 41 WHEN - 24 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-198
SELECT CASE 13 WHEN - 23 / - 53 - - COUNT( * ) THEN 4 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-198
SELECT CASE 13 WHEN - 23 / - 53 - - COUNT ( * ) THEN 4 ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT - 51 * 62 + - - ( + 98 )
----
-3064

query II rowsort
SELECT + 1 * + + 92 AS col1, 77 AS col2
----
92
77

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-201
SELECT DISTINCT + ( - CASE - ( 82 ) WHEN - + 78 THEN 27 * + 32 + + 41 + + 88 / + - ( + + CAST( - 0 AS SIGNED ) ) * - 52 - + + 15 * 90 WHEN 80 THEN + + 37 ELSE NULL END ) AS col0, - 84 AS col2
----
NULL
-84

skipif mysql # not compatible
query II rowsort label-201
SELECT DISTINCT + ( - CASE - ( 82 ) WHEN - + 78 THEN 27 * + 32 + + 41 + + 88 / + - ( + + CAST ( - 0 AS INTEGER ) ) * - 52 - + + 15 * 90 WHEN 80 THEN + + 37 ELSE NULL END ) AS col0, - 84 AS col2
----
NULL
-84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-202
SELECT ALL 69 * + - COALESCE ( + 52, 31 * + + 34 + - ( + 30 ) + 38 + + NULLIF ( + ( CAST( NULL AS SIGNED ) ), - COUNT( * ) / - 9 - + - 3 ) ) * - 87 - 6 - 15 AS col0, + 90 + 1 + + 32 - + - COUNT( * ) * + 28 * - NULLIF ( - 17, - 59 ) AS col2
----
312135
599

skipif mysql # not compatible
query II rowsort label-202
SELECT ALL 69 * + - COALESCE ( + 52, 31 * + + 34 + - ( + 30 ) + 38 + + NULLIF ( + ( CAST ( NULL AS INTEGER ) ), - COUNT ( * ) / - 9 - + - 3 ) ) * - 87 - 6 - 15 AS col0, + 90 + 1 + + 32 - + - COUNT ( * ) * + 28 * - NULLIF ( - 17, - 59 ) AS col2
----
312135
599

onlyif mysql # aggregate syntax: 
query I rowsort label-203
SELECT + NULLIF ( - 23, COUNT( * ) * + + 62 ) AS col1
----
-23

skipif mysql # not compatible
query I rowsort label-203
SELECT + NULLIF ( - 23, COUNT ( * ) * + + 62 ) AS col1
----
-23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-204
SELECT DISTINCT - + 77 * - CAST( NULL AS SIGNED ) - + - 89 * - 21
----
NULL

skipif mysql # not compatible
query I rowsort label-204
SELECT DISTINCT - + 77 * - CAST ( NULL AS INTEGER ) - + - 89 * - 21
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-205
SELECT ALL MAX( DISTINCT + ( - + ( + - 5 ) ) ) * + + ( ( - 92 ) )
----
-460

skipif mysql # not compatible
query I rowsort label-205
SELECT ALL MAX ( DISTINCT + ( - + ( + - 5 ) ) ) * + + ( ( - 92 ) )
----
-460

query I rowsort
SELECT + 77 * 86 - - 31
----
6653

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

query I rowsort
SELECT + ( - 64 ) * - + 42 AS col0
----
2688

query I rowsort
SELECT + 75 + 5
----
80

query I rowsort
SELECT - + 27 - + 41 + - 58 - + 86 * + - 48 * 67 AS col1
----
276450

query I rowsort
SELECT ALL + ( - - 54 ) AS col0
----
54

query I rowsort
SELECT + - 16 * - - ( 76 ) AS col2
----
-1216

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-213
SELECT - + CASE + 13 WHEN - + AVG ( DISTINCT - 24 ) THEN NULL WHEN - + CASE + 70 WHEN 86 THEN - 34 + - - CASE + 80 WHEN - COUNT( * ) * - + 91 THEN + - 63 END WHEN + + 55 + + 36 THEN NULL END + - NULLIF ( - 79, + + 59 - 25 ) THEN 10 DIV 51 DIV - - 97 ELSE + 0 + + 42 + - COUNT( * ) END
----
-41

skipif mysql # not compatible
query I rowsort label-213
SELECT - + CASE + 13 WHEN - + AVG ( DISTINCT - 24 ) THEN NULL WHEN - + CASE + 70 WHEN 86 THEN - 34 + - - CASE + 80 WHEN - COUNT ( * ) * - + 91 THEN + - 63 END WHEN + + 55 + + 36 THEN NULL END + - NULLIF ( - 79, + + 59 - 25 ) THEN 10 / 51 / - - 97 ELSE + 0 + + 42 + - COUNT ( * ) END
----
-41

onlyif mysql # DIV for integer division: 
query II rowsort label-214
SELECT DISTINCT + 77 DIV + 75 AS col0, 49 * + 19 AS col1
----
1
931

skipif mysql # not compatible
query II rowsort label-214
SELECT DISTINCT + 77 / + 75 AS col0, 49 * + 19 AS col1
----
1
931

onlyif mysql # DIV for integer division: 
query II rowsort label-215
SELECT - 34 * + + 20, 94 DIV 65 col1
----
-680
1

skipif mysql # not compatible
query II rowsort label-215
SELECT - 34 * + + 20, 94 / 65 col1
----
-680
1

onlyif mysql # aggregate syntax: 
query I rowsort label-216
SELECT - COUNT( * ) + - 30
----
-31

skipif mysql # not compatible
query I rowsort label-216
SELECT - COUNT ( * ) + - 30
----
-31

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

skipif mysql # not compatible
query I rowsort label-217
SELECT + COUNT ( DISTINCT + + 77 ) * - - 90 AS col2
----
90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-218
SELECT - 61 DIV SUM( DISTINCT 55 )
----
-1

skipif mysql # not compatible
query I rowsort label-218
SELECT - 61 / SUM ( DISTINCT 55 )
----
-1

query I rowsort
SELECT + + 89 + 38 AS col1
----
127

query I rowsort
SELECT DISTINCT NULLIF ( CASE + - 26 WHEN - 47 THEN NULL WHEN + 58 THEN 34 END, - ( - 90 ) * + 45 - - 71 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-221
SELECT - NULLIF ( - NULLIF ( 71, 69 ), 71 ) + COUNT( * ) * 70 AS col1
----
141

skipif mysql # not compatible
query I rowsort label-221
SELECT - NULLIF ( - NULLIF ( 71, 69 ), 71 ) + COUNT ( * ) * 70 AS col1
----
141

query I rowsort
SELECT DISTINCT + 60 + + 61
----
121

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

onlyif mysql # aggregate syntax: 
query I rowsort label-224
SELECT - 85 + + 26 * - + MAX( - 96 ) AS col1
----
2411

skipif mysql # not compatible
query I rowsort label-224
SELECT - 85 + + 26 * - + MAX ( - 96 ) AS col1
----
2411

query I rowsort
SELECT ALL 91 + + ( 44 ) + + - 20
----
115

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-226
SELECT DISTINCT 49 + 66 * - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-226
SELECT DISTINCT 49 + 66 * - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-227
SELECT ALL + COUNT( * ) + 34 + 48 * + - 34 AS col2
----
-1597

skipif mysql # not compatible
query I rowsort label-227
SELECT ALL + COUNT ( * ) + 34 + 48 * + - 34 AS col2
----
-1597

onlyif mysql # aggregate syntax: 
query I rowsort label-228
SELECT - 55 + - COUNT( * ) + 52 * + 94 AS col2
----
4832

skipif mysql # not compatible
query I rowsort label-228
SELECT - 55 + - COUNT ( * ) + 52 * + 94 AS col2
----
4832

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-229
SELECT ALL 53 DIV - + 80 + + 92, - SUM( ALL 81 ) + + 73 AS col2
----
92
-8

skipif mysql # not compatible
query II rowsort label-229
SELECT ALL 53 / - + 80 + + 92, - SUM ( ALL 81 ) + + 73 AS col2
----
92
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-230
SELECT + SUM( ALL - - 90 ) * ( - 7 ) * + - 70 + + + 85 + + - 40 - + ( - 71 ) + - ( ( - - 77 ) ) * + - COUNT( * ) * - - 36 * 78
----
260432

skipif mysql # not compatible
query I rowsort label-230
SELECT + SUM ( ALL - - 90 ) * ( - 7 ) * + - 70 + + + 85 + + - 40 - + ( - 71 ) + - ( ( - - 77 ) ) * + - COUNT ( * ) * - - 36 * 78
----
260432

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

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

query I rowsort
SELECT - 95 + 90 * 1 + - 1 + - 32
----
-38

onlyif mysql # DIV for integer division: 
query I rowsort label-233
SELECT 34 DIV + ( - - 78 ) - + 23 + + 61 AS col1
----
38

skipif mysql # not compatible
query I rowsort label-233
SELECT 34 / + ( - - 78 ) - + 23 + + 61 AS col1
----
38

onlyif mysql # DIV for integer division: 
query I rowsort label-234
SELECT DISTINCT 65 DIV + 56 - + + 6 col2
----
-5

skipif mysql # not compatible
query I rowsort label-234
SELECT DISTINCT 65 / + 56 - + + 6 col2
----
-5

query II rowsort
SELECT - 47 * + 57 * 16, 21 AS col1
----
-42864
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-236
SELECT ALL - CASE - 65 WHEN 58 + - - 55 THEN + 13 + COUNT( * ) + - - 13 WHEN - COALESCE ( - + 44, + - 89, + MAX( DISTINCT - 23 ) * - + AVG ( ALL 85 ) ) * - - 67 THEN + 60 * - - CAST( NULL AS SIGNED ) * 55 + - ( + ( + + 96 ) ) WHEN - - 86 THEN NULL ELSE COALESCE ( + 58, - SUM( - 69 ) * 87, - ( MAX( 38 ) ) ) * - 99 END * CASE 60 WHEN 73 THEN 93 WHEN - 64 THEN NULL ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-236
SELECT ALL - CASE - 65 WHEN 58 + - - 55 THEN + 13 + COUNT ( * ) + - - 13 WHEN - COALESCE ( - + 44, + - 89, + MAX ( DISTINCT - 23 ) * - + AVG ( ALL 85 ) ) * - - 67 THEN + 60 * - - CAST ( NULL AS INTEGER ) * 55 + - ( + ( + + 96 ) ) WHEN - - 86 THEN NULL ELSE COALESCE ( + 58, - SUM ( - 69 ) * 87, - ( MAX ( 38 ) ) ) * - 99 END * CASE 60 WHEN 73 THEN 93 WHEN - 64 THEN NULL ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT ALL + 8 * + + 75
----
600

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-238
SELECT + 93 + + 87 * - - CASE - + 71 WHEN - 15 * 76 THEN - + CAST( NULL AS SIGNED ) END * 32 + 7 * COUNT( * ) + 38 AS col0, + CAST( NULL AS SIGNED ) + - 37 + - 53 * + 81 + + + 93
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-238
SELECT + 93 + + 87 * - - CASE - + 71 WHEN - 15 * 76 THEN - + CAST ( NULL AS INTEGER ) END * 32 + 7 * COUNT ( * ) + 38 AS col0, + CAST ( NULL AS INTEGER ) + - 37 + - 53 * + 81 + + + 93
----
NULL
NULL

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-240
SELECT - - COUNT( * ) DIV 97 * COUNT( * ) DIV + 86 * 51 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-240
SELECT - - COUNT ( * ) / 97 * COUNT ( * ) / + 86 * 51 AS col0
----
0

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

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

query I rowsort
SELECT + + 31 * 92
----
2852

query II rowsort
SELECT - 20 * + 35 + + 90, - 92 AS col0
----
-610
-92

query I rowsort
SELECT DISTINCT + 92 * + + 60 AS col1
----
5520

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

query I rowsort
SELECT DISTINCT + 48 * 67 AS col0
----
3216

onlyif mysql # aggregate syntax: 
query II rowsort label-247
SELECT ALL - 21 AS col0, - 74 * - NULLIF ( 93, 19 * 68 + - 85 * 23 * - COUNT( * ) + + + 74 / - - 66 + + + 57 * - 61 * 43 * - 8 + COUNT( * ) + + + ( + + 22 ) ) * - 56 * - 20 AS col2
----
-21
7707840

skipif mysql # not compatible
query II rowsort label-247
SELECT ALL - 21 AS col0, - 74 * - NULLIF ( 93, 19 * 68 + - 85 * 23 * - COUNT ( * ) + + + 74 / - - 66 + + + 57 * - 61 * 43 * - 8 + COUNT ( * ) + + + ( + + 22 ) ) * - 56 * - 20 AS col2
----
-21
7707840

onlyif mysql # aggregate syntax: 
query I rowsort label-248
SELECT DISTINCT MAX( DISTINCT 59 ) + + COUNT( ALL - + 82 )
----
60

skipif mysql # not compatible
query I rowsort label-248
SELECT DISTINCT MAX ( DISTINCT 59 ) + + COUNT ( ALL - + 82 )
----
60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-249
SELECT 4 * - 9 + - + ( - 35 ) - 18 + 61 DIV + + COUNT( ALL 74 ) + + - 40 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-249
SELECT 4 * - 9 + - + ( - 35 ) - 18 + 61 / + + COUNT ( ALL 74 ) + + - 40 AS col1
----
2

query I rowsort
SELECT ALL + 99 + + 66 col1
----
165

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-251
SELECT ALL + 40 + + CASE 47 WHEN - 16 THEN + - 16 * - + CAST( NULL AS SIGNED ) + - 85 WHEN + - 56 + + 47 + - AVG ( ALL 32 ) - + + AVG ( ALL + - 64 ) * + COUNT( * ) + 48 THEN - + 80 END + + - COUNT( * ) * + 39 * - + 29 * + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-251
SELECT ALL + 40 + + CASE 47 WHEN - 16 THEN + - 16 * - + CAST ( NULL AS INTEGER ) + - 85 WHEN + - 56 + + 47 + - AVG ( ALL 32 ) - + + AVG ( ALL + - 64 ) * + COUNT ( * ) + 48 THEN - + 80 END + + - COUNT ( * ) * + 39 * - + 29 * + - COUNT ( * )
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-252
SELECT ALL - 66 + - 33 DIV 11, - 98 AS col0
----
-69
-98

skipif mysql # not compatible
query II rowsort label-252
SELECT ALL - 66 + - 33 / 11, - 98 AS col0
----
-69
-98

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-254
SELECT 34 DIV - - 15
----
2

skipif mysql # not compatible
query I rowsort label-254
SELECT 34 / - - 15
----
2

query I rowsort
SELECT DISTINCT 38 + + 40
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-256
SELECT ALL SUM( - 9 ) + + 77 * + 13 + - 38
----
954

skipif mysql # not compatible
query I rowsort label-256
SELECT ALL SUM ( - 9 ) + + 77 * + 13 + - 38
----
954

onlyif mysql # aggregate syntax: 
query I rowsort label-257
SELECT ALL - COUNT( * ) + + ( + 36 ) * + 52 AS col0
----
1871

skipif mysql # not compatible
query I rowsort label-257
SELECT ALL - COUNT ( * ) + + ( + 36 ) * + 52 AS col0
----
1871

query I rowsort
SELECT DISTINCT 85 + 72
----
157

query II rowsort
SELECT ALL 76, - 95 AS col2
----
76
-95

onlyif mysql # DIV for integer division: 
query I rowsort label-260
SELECT DISTINCT 2 DIV - 27 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-260
SELECT DISTINCT 2 / - 27 AS col0
----
0

query I rowsort
SELECT 4 - 62
----
-58

query II rowsort
SELECT DISTINCT 82, 48 AS col2
----
82
48

query I rowsort
SELECT ALL 37 + - 50
----
-13

onlyif mysql # DIV for integer division: 
query I rowsort label-264
SELECT 82 DIV 36 col1
----
2

skipif mysql # not compatible
query I rowsort label-264
SELECT 82 / 36 col1
----
2

onlyif mysql # DIV for integer division: 
query II rowsort label-265
SELECT 17 AS col2, + 38 DIV ( + NULLIF ( ( 62 ), - 21 ) ) + + - 7
----
17
-7

skipif mysql # not compatible
query II rowsort label-265
SELECT 17 AS col2, + 38 / ( + NULLIF ( ( 62 ), - 21 ) ) + + - 7
----
17
-7

query I rowsort
SELECT 27 + + ( + + 80 ) AS col1
----
107

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

skipif mysql # not compatible
query I rowsort label-267
SELECT 36 + + ( + + COUNT ( * ) ) AS col0
----
37

query II rowsort
SELECT DISTINCT 49 AS col2, + 93 AS col2
----
49
93

onlyif mysql # aggregate syntax: 
query I rowsort label-269
SELECT ALL - ( + 20 ) - - 99 + - - 0 * 45 + + COUNT( * )
----
80

skipif mysql # not compatible
query I rowsort label-269
SELECT ALL - ( + 20 ) - - 99 + - - 0 * 45 + + COUNT ( * )
----
80

query I rowsort
SELECT 17 * + + 13
----
221

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-271
SELECT ALL - CASE + 59 WHEN - + 64 * - COUNT( * ) THEN - AVG ( ALL - ( + 44 ) ) / - 92 + + 57 + - 52 WHEN - NULLIF ( + 96, - 20 + + + 26 ) + + 16 THEN - 79 + - - ( + NULLIF ( + + CAST( NULL AS SIGNED ), - 2 / 44 ) ) * - 52 + + 30 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-271
SELECT ALL - CASE + 59 WHEN - + 64 * - COUNT ( * ) THEN - AVG ( ALL - ( + 44 ) ) / - 92 + + 57 + - 52 WHEN - NULLIF ( + 96, - 20 + + + 26 ) + + 16 THEN - 79 + - - ( + NULLIF ( + + CAST ( NULL AS INTEGER ), - 2 / 44 ) ) * - 52 + + 30 ELSE NULL END
----
NULL

query II rowsort
SELECT 16 AS col0, 86 AS col2
----
16
86

onlyif mysql # aggregate syntax: 
query I rowsort label-273
SELECT ALL - SUM( DISTINCT + 82 ) AS col1
----
-82

skipif mysql # not compatible
query I rowsort label-273
SELECT ALL - SUM ( DISTINCT + 82 ) AS col1
----
-82

query I rowsort
SELECT 7 * + 46 AS col2
----
322

query I rowsort
SELECT ALL - CASE + 65 WHEN + 90 THEN NULL WHEN 8 THEN NULL WHEN + + 30 * - 88 THEN - - 44 ELSE - + 7 * 87 END col1
----
609

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-276
SELECT CAST( NULL AS SIGNED ) - - 69
----
NULL

skipif mysql # not compatible
query I rowsort label-276
SELECT CAST ( NULL AS INTEGER ) - - 69
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-277
SELECT 90 * 9 AS col1, + MAX( + 3 ) - + 28 col2
----
810
-25

skipif mysql # not compatible
query II rowsort label-277
SELECT 90 * 9 AS col1, + MAX ( + 3 ) - + 28 col2
----
810
-25

query I rowsort
SELECT ALL - ( + - 82 ) AS col0
----
82

query I rowsort
SELECT DISTINCT - 22 * 51
----
-1122

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-280
SELECT 69 + COUNT( ALL - 29 ) + - 69 + - 76 + - 39 DIV - - COUNT( * ) + - 83
----
-197

skipif mysql # not compatible
query I rowsort label-280
SELECT 69 + COUNT ( ALL - 29 ) + - 69 + - 76 + - 39 / - - COUNT ( * ) + - 83
----
-197

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

skipif mysql # not compatible
query I rowsort label-281
SELECT ALL 24 + - + COUNT ( * ) AS col1
----
23

query II rowsort
SELECT 46 - - 16, 58 * - 2 + 41 - + - 53 * + 4 * - 44 AS col0
----
62
-9403

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-283
SELECT ALL + NULLIF ( - + 15, + 46 * - - 98 ) * - - NULLIF ( + ( + 25 ), + COUNT( * ) + + COALESCE ( - 3, + 6 ) * - CAST( + + 72 AS SIGNED ) ) AS col2
----
-375

skipif mysql # not compatible
query I rowsort label-283
SELECT ALL + NULLIF ( - + 15, + 46 * - - 98 ) * - - NULLIF ( + ( + 25 ), + COUNT ( * ) + + COALESCE ( - 3, + 6 ) * - CAST ( + + 72 AS INTEGER ) ) AS col2
----
-375

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-284
SELECT + 89 AS col0, + CAST( NULL AS SIGNED ) AS col1
----
89
NULL

skipif mysql # not compatible
query II rowsort label-284
SELECT + 89 AS col0, + CAST ( NULL AS INTEGER ) AS col1
----
89
NULL

query I rowsort
SELECT DISTINCT - ( - 18 ) + 72
----
90

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-286
SELECT - COUNT( * ), 92 DIV + - COALESCE ( - 85, COALESCE ( 26, 41 DIV - 40 ) * - 67 ) * - COUNT( * ) AS col1
----
-1
-1

skipif mysql # not compatible
query II rowsort label-286
SELECT - COUNT ( * ), 92 / + - COALESCE ( - 85, COALESCE ( 26, 41 / - 40 ) * - 67 ) * - COUNT ( * ) AS col1
----
-1
-1

query I rowsort
SELECT 15 * - 32
----
-480

query II rowsort
SELECT ALL 12 AS col0, - 45 AS col2
----
12
-45

query II rowsort
SELECT - 23, + 91 AS col2
----
-23
91

query II rowsort
SELECT 14 * + + 54 * 98 + + 86 AS col0, 29
----
74174
29

query I rowsort
SELECT ALL - + 42 + + 62
----
20

query I rowsort
SELECT DISTINCT + 87 + + 90 AS col0
----
177

query I rowsort
SELECT DISTINCT 61 - 48
----
13

query II rowsort
SELECT 85 * + 51 AS col1, 22
----
4335
22

query I rowsort
SELECT 91 + 81
----
172

onlyif mysql # aggregate syntax: 
query I rowsort label-296
SELECT COUNT( * ) * 49 * - - 0 * COUNT( * ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-296
SELECT COUNT ( * ) * 49 * - - 0 * COUNT ( * ) AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-297
SELECT COALESCE ( - - 31, 17 + - 67 - + COUNT( * ) * - 94 * + - ( - + COUNT( * ) ) - + 16 * - 33 ) + ( - + 16 ) + COUNT( * ) DIV - 23
----
15

skipif mysql # not compatible
query I rowsort label-297
SELECT COALESCE ( - - 31, 17 + - 67 - + COUNT ( * ) * - 94 * + - ( - + COUNT ( * ) ) - + 16 * - 33 ) + ( - + 16 ) + COUNT ( * ) / - 23
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-298
SELECT ALL 60 * - COUNT( * ) * + 67 AS col2
----
-4020

skipif mysql # not compatible
query I rowsort label-298
SELECT ALL 60 * - COUNT ( * ) * + 67 AS col2
----
-4020

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-300
SELECT ALL SUM( DISTINCT - + 58 ) DIV 98 * - 60
----
0

skipif mysql # not compatible
query I rowsort label-300
SELECT ALL SUM ( DISTINCT - + 58 ) / 98 * - 60
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-301
SELECT COUNT( * ) + + + 12 col2, - MIN( DISTINCT 60 ) * + + 75 - - 82 + + + 47
----
13
-4371

skipif mysql # not compatible
query II rowsort label-301
SELECT COUNT ( * ) + + + 12 col2, - MIN ( DISTINCT 60 ) * + + 75 - - 82 + + + 47
----
13
-4371

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-303
SELECT NULLIF ( + 34, - 27 ) + 6 - + - MIN( DISTINCT 14 ) AS col1
----
54

skipif mysql # not compatible
query I rowsort label-303
SELECT NULLIF ( + 34, - 27 ) + 6 - + - MIN ( DISTINCT 14 ) AS col1
----
54

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

skipif mysql # not compatible
query I rowsort label-304
SELECT ALL COUNT ( * ) / - 66
----
0

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

skipif mysql # not compatible
query I rowsort label-305
SELECT COUNT ( * ) / - 69
----
0

query II rowsort
SELECT 45 + - + 70 AS col1, 89 * - 67
----
-25
-5963

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-307
SELECT 72 DIV + 25 + + COUNT( DISTINCT + + 75 ) + + + CAST( + - 46 AS SIGNED ) col0
----
-43

skipif mysql # not compatible
query I rowsort label-307
SELECT 72 / + 25 + + COUNT ( DISTINCT + + 75 ) + + + CAST ( + - 46 AS INTEGER ) col0
----
-43

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

skipif mysql # not compatible
query I rowsort label-308
SELECT - 2 * CAST ( NULL AS INTEGER ) + + + 59
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-309
SELECT ALL - COUNT( * ) * + 59 + - ( - 73 ) AS col2
----
14

skipif mysql # not compatible
query I rowsort label-309
SELECT ALL - COUNT ( * ) * + 59 + - ( - 73 ) AS col2
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-310
SELECT + COUNT( * ) + - 33
----
-32

skipif mysql # not compatible
query I rowsort label-310
SELECT + COUNT ( * ) + - 33
----
-32

query I rowsort
SELECT ALL 11 * 88 + 46
----
1014

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-312
SELECT SUM( - CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-312
SELECT SUM ( - CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT + - 99 AS col2
----
-99

query I rowsort
SELECT ALL - ( + - 72 ) * - 66 + 46 + 87
----
-4619

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-315
SELECT ALL 98 * COUNT( * ) + 72 DIV 30 * - 56 * + 15 + + 20 AS col1
----
-1562

skipif mysql # not compatible
query I rowsort label-315
SELECT ALL 98 * COUNT ( * ) + 72 / 30 * - 56 * + 15 + + 20 AS col1
----
-1562

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

skipif mysql # not compatible
query I rowsort label-316
SELECT ALL - ( + 17 ) / - + COUNT ( * ) + - - 30 AS col0
----
47

query I rowsort
SELECT DISTINCT + - 45 AS col1
----
-45

query I rowsort
SELECT DISTINCT 69 * COALESCE ( + 79, 68 ) + + 14 AS col2
----
5465

query I rowsort
SELECT ALL + 85 * 6 + ( - 15 ) - + 74 * - + 22 * - 77 * 99
----
-12409749

onlyif mysql # aggregate syntax: 
query I rowsort label-320
SELECT + - ( - COALESCE ( - 66, + COUNT( * ) ) )
----
-66

skipif mysql # not compatible
query I rowsort label-320
SELECT + - ( - COALESCE ( - 66, + COUNT ( * ) ) )
----
-66

query I rowsort
SELECT DISTINCT + 88 * + 9 * + 40 * - 58 AS col0
----
-1837440

query I rowsort
SELECT - ( 53 ) * + 22
----
-1166

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-323
SELECT ALL 65 AS col0, + ( + COALESCE ( - + 8, 87 + - ( + - 82 ), + CAST( - 6 AS SIGNED ) ) ) * 35 + - + 7
----
65
-287

skipif mysql # not compatible
query II rowsort label-323
SELECT ALL 65 AS col0, + ( + COALESCE ( - + 8, 87 + - ( + - 82 ), + CAST ( - 6 AS INTEGER ) ) ) * 35 + - + 7
----
65
-287

query I rowsort
SELECT - 17 * - 92 * - + 84 + - 64 col1
----
-131440

query I rowsort
SELECT DISTINCT + 2 - + 97 + - ( - 28 )
----
-67

query I rowsort
SELECT - 32 + 93 AS col1
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-327
SELECT - ( - 87 ) / 44 * + MAX( DISTINCT - 3 ) * 7 + - CASE + - COUNT( * ) WHEN 32 THEN 56 WHEN + + 41 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-327
SELECT - ( - 87 ) / 44 * + MAX ( DISTINCT - 3 ) * 7 + - CASE + - COUNT ( * ) WHEN 32 THEN 56 WHEN + + 41 THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT + 8 * 63
----
504

query I rowsort
SELECT - 78 - + 59 AS col1
----
-137

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-332
SELECT - MAX( - 10 ) AS col1
----
10

skipif mysql # not compatible
query I rowsort label-332
SELECT - MAX ( - 10 ) AS col1
----
10

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

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

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

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

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

query I rowsort
SELECT - 12 * - 72 * - 20 AS col1
----
-17280

query I rowsort
SELECT + 18 * 55 * + 24
----
23760

onlyif mysql # DIV for integer division: 
query II rowsort label-338
SELECT 41 AS col1, + ( - 13 ) DIV 65 AS col1
----
41
0

skipif mysql # not compatible
query II rowsort label-338
SELECT 41 AS col1, + ( - 13 ) / 65 AS col1
----
41
0

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

skipif mysql # not compatible
query II rowsort label-339
SELECT - COUNT ( * ), - 25 AS col2
----
-1
-25

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

query II rowsort
SELECT ALL 62, 56 col0
----
62
56

query I rowsort
SELECT + + 49 * 68 - + - 38 col1
----
3370

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-344
SELECT MIN( 57 )
----
57

skipif mysql # not compatible
query I rowsort label-344
SELECT MIN ( 57 )
----
57

onlyif mysql # DIV for integer division: 
query I rowsort label-345
SELECT ALL + 61 DIV + + 47 + - 1
----
0

skipif mysql # not compatible
query I rowsort label-345
SELECT ALL + 61 / + + 47 + - 1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-346
SELECT DISTINCT + MAX( COALESCE ( - 31, - + 65, - - 22 ) ) DIV - - MAX( ALL 39 ) + - NULLIF ( 41, - MAX( ALL 85 ) - COUNT( * ) ) + - 23 + + 27
----
-37

skipif mysql # not compatible
query I rowsort label-346
SELECT DISTINCT + MAX ( COALESCE ( - 31, - + 65, - - 22 ) ) / - - MAX ( ALL 39 ) + - NULLIF ( 41, - MAX ( ALL 85 ) - COUNT ( * ) ) + - 23 + + 27
----
-37

onlyif mysql # DIV for integer division: 
query I rowsort label-347
SELECT ALL - 32 DIV - - NULLIF ( - - 20, - 32 ) + + 44
----
43

skipif mysql # not compatible
query I rowsort label-347
SELECT ALL - 32 / - - NULLIF ( - - 20, - 32 ) + + 44
----
43

onlyif mysql # DIV for integer division: 
query III rowsort label-348
SELECT + 89 DIV 60 + 12, - 43 AS col0, - 49 AS col0
----
13
-43
-49

skipif mysql # not compatible
query III rowsort label-348
SELECT + 89 / 60 + 12, - 43 AS col0, - 49 AS col0
----
13
-43
-49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-349
SELECT + COUNT( * ) + - 32 + - CAST( 20 AS SIGNED ) * - + COUNT( * ) + + SUM( ALL - 83 ) AS col2
----
-94

skipif mysql # not compatible
query I rowsort label-349
SELECT + COUNT ( * ) + - 32 + - CAST ( 20 AS INTEGER ) * - + COUNT ( * ) + + SUM ( ALL - 83 ) AS col2
----
-94

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

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

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

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

query I rowsort
SELECT 48 * + + 19 + 66 + - - 53 AS col2
----
1031

onlyif mysql # aggregate syntax: 
query II rowsort label-353
SELECT + COALESCE ( - 28, + + 19 ) AS col0, 80 * COUNT( * ) + - COUNT( * )
----
-28
79

skipif mysql # not compatible
query II rowsort label-353
SELECT + COALESCE ( - 28, + + 19 ) AS col0, 80 * COUNT ( * ) + - COUNT ( * )
----
-28
79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-354
SELECT ALL + + SUM( ALL CAST( - 4 AS SIGNED ) ) col1, + ( - 9 ) + - 43
----
-4
-52

skipif mysql # not compatible
query II rowsort label-354
SELECT ALL + + SUM ( ALL CAST ( - 4 AS INTEGER ) ) col1, + ( - 9 ) + - 43
----
-4
-52

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-356
SELECT ALL + ( + 37 ) * + CAST( - + 1 AS SIGNED ) - COUNT( * ) AS col2
----
-38

skipif mysql # not compatible
query I rowsort label-356
SELECT ALL + ( + 37 ) * + CAST ( - + 1 AS INTEGER ) - COUNT ( * ) AS col2
----
-38

query I rowsort
SELECT + 78 * + - 46
----
-3588

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-359
SELECT DISTINCT COUNT( * ) * MIN( - + 41 ) + - 85 DIV 11 * 12 - 47
----
-172

skipif mysql # not compatible
query I rowsort label-359
SELECT DISTINCT COUNT ( * ) * MIN ( - + 41 ) + - 85 / 11 * 12 - 47
----
-172

onlyif mysql # aggregate syntax: 
query I rowsort label-360
SELECT + 35 + 71 + 87 * - 11 * - COALESCE ( + + COUNT( * ), - - COUNT( ALL + 25 ) ) - + COUNT( * ) * + 66 AS col2
----
997

skipif mysql # not compatible
query I rowsort label-360
SELECT + 35 + 71 + 87 * - 11 * - COALESCE ( + + COUNT ( * ), - - COUNT ( ALL + 25 ) ) - + COUNT ( * ) * + 66 AS col2
----
997

query I rowsort
SELECT ALL 25 * 24 - + + 11 col2
----
589

query I rowsort
SELECT + COALESCE ( - ( - + 87 ), - + 26 ) * 42
----
3654

query II rowsort
SELECT - 91 + + 8 AS col2, + 66 AS col2
----
-83
66

onlyif mysql # aggregate syntax: 
query I rowsort label-364
SELECT CASE - 18 WHEN + 12 / 91 * + COUNT( * ) + 99 THEN NULL WHEN - 61 * - 32 + - 69 THEN + - 65 + SUM( - + 53 ) * - 39 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-364
SELECT CASE - 18 WHEN + 12 / 91 * + COUNT ( * ) + 99 THEN NULL WHEN - 61 * - 32 + - 69 THEN + - 65 + SUM ( - + 53 ) * - 39 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-365
SELECT + ( + COUNT( * ) ) + - 45 - + COUNT( DISTINCT - - 3 )
----
-45

skipif mysql # not compatible
query I rowsort label-365
SELECT + ( + COUNT ( * ) ) + - 45 - + COUNT ( DISTINCT - - 3 )
----
-45

query I rowsort
SELECT - 85 * + ( + 17 )
----
-1445

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-368
SELECT 89 * - NULLIF ( + 26, + 69 ) + + 15 * - 70 * 86 * + + ( + 60 ) * 60 * + ( - NULLIF ( + + 5, + - ( - COUNT( * ) ) - - - COUNT( * ) ) ) + + 70 + ( ( - + COUNT( * ) ) )
----
1625397755

skipif mysql # not compatible
query I rowsort label-368
SELECT 89 * - NULLIF ( + 26, + 69 ) + + 15 * - 70 * 86 * + + ( + 60 ) * 60 * + ( - NULLIF ( + + 5, + - ( - COUNT ( * ) ) - - - COUNT ( * ) ) ) + + 70 + ( ( - + COUNT ( * ) ) )
----
1625397755

query I rowsort
SELECT ALL NULLIF ( + 63, 91 ) AS col1
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-370
SELECT ALL + COUNT( DISTINCT + 73 ) * - + COUNT( ALL + 61 ) * - + 31
----
31

skipif mysql # not compatible
query I rowsort label-370
SELECT ALL + COUNT ( DISTINCT + 73 ) * - + COUNT ( ALL + 61 ) * - + 31
----
31

onlyif mysql # DIV for integer division: 
query II rowsort label-371
SELECT - 13 DIV 48 AS col1, 76 DIV + 37 AS col2
----
0
2

skipif mysql # not compatible
query II rowsort label-371
SELECT - 13 / 48 AS col1, 76 / + 37 AS col2
----
0
2

query I rowsort
SELECT - 30 + - 77
----
-107

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-373
SELECT 26 + - + 0 - - 93 + - 76 * - - COUNT( * ) col0, - 83 / - 88 * - ( + 43 ) * - - CASE + 70 WHEN + - 60 THEN NULL ELSE CAST( + 36 AS SIGNED ) END * - 62 + - + MAX( + + CAST( NULL AS SIGNED ) )
----
43
NULL

skipif mysql # not compatible
query II rowsort label-373
SELECT 26 + - + 0 - - 93 + - 76 * - - COUNT ( * ) col0, - 83 / - 88 * - ( + 43 ) * - - CASE + 70 WHEN + - 60 THEN NULL ELSE CAST ( + 36 AS INTEGER ) END * - 62 + - + MAX ( + + CAST ( NULL AS INTEGER ) )
----
43
NULL

query I rowsort
SELECT 45 + - 61
----
-16

query II rowsort
SELECT 6 + + + 41 AS col1, 64 AS col1
----
47
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-376
SELECT ALL 76 + + 60 + ( + CAST( - 50 AS SIGNED ) ) - + + NULLIF ( + 14, 30 + - AVG ( ALL + 74 ) ) - - - 97 AS col0
----
-25

skipif mysql # not compatible
query I rowsort label-376
SELECT ALL 76 + + 60 + ( + CAST ( - 50 AS INTEGER ) ) - + + NULLIF ( + 14, 30 + - AVG ( ALL + 74 ) ) - - - 97 AS col0
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-377
SELECT ALL - + 90 + + ( - MIN( + + 86 ) ) * - 85 AS col0
----
7220

skipif mysql # not compatible
query I rowsort label-377
SELECT ALL - + 90 + + ( - MIN ( + + 86 ) ) * - 85 AS col0
----
7220

query I rowsort
SELECT DISTINCT + + 77 * + 88 + + ( + - 28 ) AS col1
----
6748

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-379
SELECT + + COUNT( * ) DIV - + 68 + + 31 * - COALESCE ( + ( 7 ), + - 79 * + 71 * COALESCE ( - + SUM( 24 ), + 82 ) ) + - CAST( + 72 AS SIGNED ) + - CAST( NULLIF ( 78, + - 72 - + 31 * - 68 ) AS SIGNED ) + 21 + - CASE + AVG ( DISTINCT - 4 ) WHEN + 25 THEN NULL WHEN - 53 THEN NULL ELSE + 33 + + MAX( - 94 ) END * + 89 * 53
----
287391

skipif mysql # not compatible
query I rowsort label-379
SELECT + + COUNT ( * ) / - + 68 + + 31 * - COALESCE ( + ( 7 ), + - 79 * + 71 * COALESCE ( - + SUM ( 24 ), + 82 ) ) + - CAST ( + 72 AS INTEGER ) + - CAST ( NULLIF ( 78, + - 72 - + 31 * - 68 ) AS INTEGER ) + 21 + - CASE + AVG ( DISTINCT - 4 ) WHEN + 25 THEN NULL WHEN - 53 THEN NULL ELSE + 33 + + MAX ( - 94 ) END * + 89 * 53
----
287391

onlyif mysql # aggregate syntax: 
query I rowsort label-380
SELECT ALL - 82 * + COUNT( * ) + - 81
----
-163

skipif mysql # not compatible
query I rowsort label-380
SELECT ALL - 82 * + COUNT ( * ) + - 81
----
-163

query I rowsort
SELECT ALL 79 - - 49 - - + 45 + + + 69
----
242

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-382
SELECT DISTINCT - - COALESCE ( - 99, - - 94 * + CAST( NULL AS SIGNED ) + - 27 ) AS col0
----
-99

skipif mysql # not compatible
query I rowsort label-382
SELECT DISTINCT - - COALESCE ( - 99, - - 94 * + CAST ( NULL AS INTEGER ) + - 27 ) AS col0
----
-99

query I rowsort
SELECT 0 * - 74
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-384
SELECT DISTINCT - 99 DIV - 96, - 42 * + MIN( + + 14 ) * 56 col2
----
1
-32928

skipif mysql # not compatible
query II rowsort label-384
SELECT DISTINCT - 99 / - 96, - 42 * + MIN ( + + 14 ) * 56 col2
----
1
-32928

onlyif mysql # aggregate syntax: 
query I rowsort label-385
SELECT COUNT( ALL + 63 ) + 38
----
39

skipif mysql # not compatible
query I rowsort label-385
SELECT COUNT ( ALL + 63 ) + 38
----
39

query I rowsort
SELECT ALL - 55 - 12 AS col2
----
-67

query I rowsort
SELECT 80 * 77
----
6160

query II rowsort
SELECT 23 * - + 23 col1, + 55 * - + 53
----
-529
-2915

query I rowsort
SELECT + 42 * - 87
----
-3654

query II rowsort
SELECT 94 AS col1, + 27
----
94
27

query I rowsort
SELECT ALL 73 * + - 85 AS col1
----
-6205

query II rowsort
SELECT 67, + 15 AS col2
----
67
15

onlyif mysql # DIV for integer division: 
query I rowsort label-393
SELECT 30 DIV + - 86
----
0

skipif mysql # not compatible
query I rowsort label-393
SELECT 30 / + - 86
----
0

query I rowsort
SELECT 1 * - - 21
----
21

query II rowsort
SELECT 75 AS col1, 1
----
75
1

query I rowsort
SELECT ALL CASE - + 45 WHEN + 60 THEN - + ( - 69 ) WHEN + 94 + + 80 + + + 17 THEN NULL ELSE NULL END * + + 99 AS col1
----
NULL

query II rowsort
SELECT ( - 84 ) * - + 82, + CASE - AVG ( - 31 ) WHEN - 36 THEN + 99 * + + 5 + + + 81 / - ( 29 ) * + 15 / 31 * + 66 + - 70 WHEN 65 * 27 THEN + 64 END AS col2
----
6888
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-398
SELECT DISTINCT - CASE - - COUNT( * ) WHEN + 20 * - 39 THEN 14 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-398
SELECT DISTINCT - CASE - - COUNT ( * ) WHEN + 20 * - 39 THEN 14 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-399
SELECT DISTINCT COALESCE ( + 88, + COUNT( * ) * + 39 - - COUNT( * ) + - 82 * - 39 - + - 46 + - 62 * + COUNT( DISTINCT - CASE CASE + 33 WHEN + - 15 THEN + 28 - - 51 ELSE NULL END WHEN + 54 THEN - - 58 ELSE - + 15 END ) * - COALESCE ( - 23, + - 3 ) * NULLIF ( 26, 50 DIV + 82 ) + + + 93 + - 70 DIV + 11 - 4 ) * + 89
----
7832

skipif mysql # not compatible
query I rowsort label-399
SELECT DISTINCT COALESCE ( + 88, + COUNT ( * ) * + 39 - - COUNT ( * ) + - 82 * - 39 - + - 46 + - 62 * + COUNT ( DISTINCT - CASE CASE + 33 WHEN + - 15 THEN + 28 - - 51 ELSE NULL END WHEN + 54 THEN - - 58 ELSE - + 15 END ) * - COALESCE ( - 23, + - 3 ) * NULLIF ( 26, 50 / + 82 ) + + + 93 + - 70 / + 11 - 4 ) * + 89
----
7832

query I rowsort
SELECT NULLIF ( 65, - 10 ) * + - 20
----
-1300

query I rowsort
SELECT - 70 * 51 + - - 43 AS col0
----
-3527

onlyif mysql # aggregate syntax: 
query I rowsort label-402
SELECT ALL COUNT( * ) + + + COUNT( * ) + 24 * - + 72 AS col1
----
-1726

skipif mysql # not compatible
query I rowsort label-402
SELECT ALL COUNT ( * ) + + + COUNT ( * ) + 24 * - + 72 AS col1
----
-1726

query I rowsort
SELECT ALL + 49 + + 10 * + 87 + - 67 * 53 * - 98 * + + 70 + + + 15 + COALESCE ( + 11, - 50 )
----
24360805

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-404
SELECT CAST( NULL AS SIGNED ) * ( - - 6 ) / + 27 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-404
SELECT CAST ( NULL AS INTEGER ) * ( - - 6 ) / + 27 AS col1
----
NULL

query I rowsort
SELECT DISTINCT + 40 + 33
----
73

query I rowsort
SELECT ALL - 22 * - 22
----
484

query I rowsort
SELECT ALL 65 + + COALESCE ( + + 41, - 42 )
----
106

onlyif mysql # aggregate syntax: 
query I rowsort label-408
SELECT DISTINCT COALESCE ( + COUNT( * ), + + 43 ) + 53 - + + 21 + COALESCE ( 36, + 48 - + + 20 - + 46 + - 87 + - 95 ) * 27 + - 98
----
907

skipif mysql # not compatible
query I rowsort label-408
SELECT DISTINCT COALESCE ( + COUNT ( * ), + + 43 ) + 53 - + + 21 + COALESCE ( 36, + 48 - + + 20 - + 46 + - 87 + - 95 ) * 27 + - 98
----
907

onlyif mysql # aggregate syntax: 
query I rowsort label-409
SELECT DISTINCT - ( - COUNT( * ) ) + + 1 * 34 * + - 4 AS col2
----
-135

skipif mysql # not compatible
query I rowsort label-409
SELECT DISTINCT - ( - COUNT ( * ) ) + + 1 * 34 * + - 4 AS col2
----
-135

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-410
SELECT - 35 * + CAST( 61 AS SIGNED )
----
-2135

skipif mysql # not compatible
query I rowsort label-410
SELECT - 35 * + CAST ( 61 AS INTEGER )
----
-2135

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

onlyif mysql # DIV for integer division: 
query I rowsort label-412
SELECT + ( - - 94 ) DIV 59 + + + 10 AS col1
----
11

skipif mysql # not compatible
query I rowsort label-412
SELECT + ( - - 94 ) / 59 + + + 10 AS col1
----
11

query I rowsort
SELECT + 83 - + 11
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-414
SELECT ALL + + 75 + - - CASE - COUNT( * ) WHEN + 18 + 53 THEN + + 52 ELSE - + 47 END
----
28

skipif mysql # not compatible
query I rowsort label-414
SELECT ALL + + 75 + - - CASE - COUNT ( * ) WHEN + 18 + 53 THEN + + 52 ELSE - + 47 END
----
28

onlyif mysql # DIV for integer division: 
query I rowsort label-415
SELECT - 10 DIV 81 + - 73 AS col1
----
-73

skipif mysql # not compatible
query I rowsort label-415
SELECT - 10 / 81 + - 73 AS col1
----
-73

onlyif mysql # DIV for integer division: 
query I rowsort label-416
SELECT 89 DIV - 93 * + 49 - - 52
----
52

skipif mysql # not compatible
query I rowsort label-416
SELECT 89 / - 93 * + 49 - - 52
----
52

query I rowsort
SELECT ALL + + 75 - + 76 AS col1
----
-1

query I rowsort
SELECT - + NULLIF ( 84, + NULLIF ( + 94, + 46 ) )
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-419
SELECT DISTINCT - COUNT( * ) * - COUNT( * ) - 94 AS col1
----
-93

skipif mysql # not compatible
query I rowsort label-419
SELECT DISTINCT - COUNT ( * ) * - COUNT ( * ) - 94 AS col1
----
-93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-420
SELECT DISTINCT - CASE + CAST( - + 50 AS SIGNED ) WHEN + 33 + 22 THEN NULL ELSE + 82 + 33 END AS col0
----
-115

skipif mysql # not compatible
query I rowsort label-420
SELECT DISTINCT - CASE + CAST ( - + 50 AS INTEGER ) WHEN + 33 + 22 THEN NULL ELSE + 82 + 33 END AS col0
----
-115

query I rowsort
SELECT 18 + + 61 AS col1
----
79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-422
SELECT + ( + + NULLIF ( - COUNT( ALL - CAST( NULL AS SIGNED ) ), - 14 ) ) AS col1, - CASE + 63 WHEN + - 85 THEN - 42 - - COUNT( * ) * - - COALESCE ( + 80, + + 99, 28 * + 37 + + 69 ) END / - 26 AS col0
----
0
NULL

skipif mysql # not compatible
query II rowsort label-422
SELECT + ( + + NULLIF ( - COUNT ( ALL - CAST ( NULL AS INTEGER ) ), - 14 ) ) AS col1, - CASE + 63 WHEN + - 85 THEN - 42 - - COUNT ( * ) * - - COALESCE ( + 80, + + 99, 28 * + 37 + + 69 ) END / - 26 AS col0
----
0
NULL

query I rowsort
SELECT DISTINCT - - 33 * + - 25
----
-825

onlyif mysql # aggregate syntax: 
query I rowsort label-424
SELECT 38 * + + 0 + - 65 + - 32 + - 19 + - COUNT( * ) * - 51
----
-65

skipif mysql # not compatible
query I rowsort label-424
SELECT 38 * + + 0 + - 65 + - 32 + - 19 + - COUNT ( * ) * - 51
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-425
SELECT MIN( ALL - 63 ) AS col1
----
-63

skipif mysql # not compatible
query I rowsort label-425
SELECT MIN ( ALL - 63 ) AS col1
----
-63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-426
SELECT + 12 * 59 + + + 50 + - - CAST( NULL AS SIGNED ) * + - 50 + ( 76 ) + - + 89 * + + 24 / + MIN( + + 78 ) - - - 2 * + 79 - + 65 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-426
SELECT + 12 * 59 + + + 50 + - - CAST ( NULL AS INTEGER ) * + - 50 + ( 76 ) + - + 89 * + + 24 / + MIN ( + + 78 ) - - - 2 * + 79 - + 65 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-427
SELECT - ( - 43 ) - 13 + + COUNT( * ) * + 76 + 70
----
176

skipif mysql # not compatible
query I rowsort label-427
SELECT - ( - 43 ) - 13 + + COUNT ( * ) * + 76 + 70
----
176

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-428
SELECT DISTINCT - 98 * + NULLIF ( - 64, - - CAST( NULL AS DECIMAL ) )
----
6272

skipif mysql # not compatible
query I rowsort label-428
SELECT DISTINCT - 98 * + NULLIF ( - 64, - - CAST ( NULL AS REAL ) )
----
6272

query I rowsort
SELECT DISTINCT - NULLIF ( 18, - 99 * - 49 )
----
-18

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

onlyif mysql # aggregate syntax: 
query I rowsort label-431
SELECT COUNT( * ) + 4 AS col1
----
5

skipif mysql # not compatible
query I rowsort label-431
SELECT COUNT ( * ) + 4 AS col1
----
5

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

query II rowsort
SELECT DISTINCT - 52 col2, COALESCE ( ( + 61 ), - - 4 * - + 78, + 35 ) AS col0
----
-52
61

query I rowsort
SELECT ALL 20 + - 27
----
-7

onlyif mysql # aggregate syntax: 
query II rowsort label-435
SELECT 29 + + 51, + COUNT( * ) AS col1
----
80
1

skipif mysql # not compatible
query II rowsort label-435
SELECT 29 + + 51, + COUNT ( * ) AS col1
----
80
1

onlyif mysql # DIV for integer division: 
query I rowsort label-436
SELECT 0 DIV 45 DIV + 97
----
0

skipif mysql # not compatible
query I rowsort label-436
SELECT 0 / 45 / + 97
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-437
SELECT 36 * + 41 * - COUNT( * )
----
-1476

skipif mysql # not compatible
query I rowsort label-437
SELECT 36 * + 41 * - COUNT ( * )
----
-1476

onlyif mysql # aggregate syntax: 
query I rowsort label-438
SELECT ALL ( + + 58 ) + - 27 + + CASE + 36 WHEN ( - ( COUNT( * ) ) ) THEN - - 1 * - 33 END * ( + 21 )
----
NULL

skipif mysql # not compatible
query I rowsort label-438
SELECT ALL ( + + 58 ) + - 27 + + CASE + 36 WHEN ( - ( COUNT ( * ) ) ) THEN - - 1 * - 33 END * ( + 21 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-439
SELECT ALL MAX( DISTINCT 51 ) + - 0
----
51

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-440
SELECT + 90 + - - COUNT( * ) / - - NULLIF ( CAST( NULL AS DECIMAL ), - 63 )
----
NULL

skipif mysql # not compatible
query I rowsort label-440
SELECT + 90 + - - COUNT ( * ) / - - NULLIF ( CAST ( NULL AS REAL ), - 63 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-441
SELECT + COALESCE ( 28, COUNT( * ) )
----
28

skipif mysql # not compatible
query I rowsort label-441
SELECT + COALESCE ( 28, COUNT ( * ) )
----
28

onlyif mysql # DIV for integer division: 
query I rowsort label-442
SELECT + 7 DIV - 55 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-442
SELECT + 7 / - 55 AS col0
----
0

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

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

query I rowsort
SELECT ALL 77 * - ( - 49 )
----
3773

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

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

query I rowsort
SELECT ALL 71 + - 84 * + 62 AS col1
----
-5137

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-448
SELECT + COUNT( * ) + + 45
----
46

skipif mysql # not compatible
query I rowsort label-448
SELECT + COUNT ( * ) + + 45
----
46

query II rowsort
SELECT 95 AS col0, - 28
----
95
-28

query II rowsort
SELECT 90 AS col0, + 70 + - 91 AS col0
----
90
-21

query I rowsort
SELECT + 81 + 92
----
173

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-452
SELECT + 36 AS col1, + CAST( + CASE - 98 WHEN + 81 THEN + AVG ( 11 ) ELSE NULL END AS SIGNED ) AS col2
----
36
NULL

skipif mysql # not compatible
query II rowsort label-452
SELECT + 36 AS col1, + CAST ( + CASE - 98 WHEN + 81 THEN + AVG ( 11 ) ELSE NULL END AS INTEGER ) AS col2
----
36
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-453
SELECT - + 27 AS col0, + 70 + COUNT( * )
----
-27
71

skipif mysql # not compatible
query II rowsort label-453
SELECT - + 27 AS col0, + 70 + COUNT ( * )
----
-27
71

query I rowsort
SELECT + 95 + - - 70 AS col2
----
165

onlyif mysql # aggregate syntax: 
query I rowsort label-455
SELECT - CASE - 75 WHEN NULLIF ( - 87, - 33 ) THEN - 16 WHEN + 21 THEN + + SUM( ALL - 0 ) ELSE - 77 END - 93
----
-16

skipif mysql # not compatible
query I rowsort label-455
SELECT - CASE - 75 WHEN NULLIF ( - 87, - 33 ) THEN - 16 WHEN + 21 THEN + + SUM ( ALL - 0 ) ELSE - 77 END - 93
----
-16

query I rowsort
SELECT ALL - 66 * - 24
----
1584

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-457
SELECT ALL - ( + CASE - - 49 WHEN - - ( 62 ) THEN CAST( NULL AS SIGNED ) END ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-457
SELECT ALL - ( + CASE - - 49 WHEN - - ( 62 ) THEN CAST ( NULL AS INTEGER ) END ) col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-458
SELECT - - 69 + - NULLIF ( 32, - CAST( NULL AS SIGNED ) ) + + 62 + + - 5
----
94

skipif mysql # not compatible
query I rowsort label-458
SELECT - - 69 + - NULLIF ( 32, - CAST ( NULL AS INTEGER ) ) + + 62 + + - 5
----
94

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-459
SELECT - - 10 * + CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-459
SELECT - - 10 * + CAST ( NULL AS REAL ) AS col0
----
NULL

query I rowsort
SELECT ALL NULLIF ( - - 16, - 93 + - - 71 ) AS col2
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-461
SELECT + 97 * COUNT( * ) + - + COUNT( * ) + + 10 * - 13 * + MAX( + 38 )
----
-4844

skipif mysql # not compatible
query I rowsort label-461
SELECT + 97 * COUNT ( * ) + - + COUNT ( * ) + + 10 * - 13 * + MAX ( + 38 )
----
-4844

query I rowsort
SELECT + - 50 * - - 71 * - 83 - + 22
----
294628

onlyif mysql # aggregate syntax: 
query I rowsort label-463
SELECT - MIN( DISTINCT - 38 ) + + - COUNT( * ) + 33 AS col2
----
70

skipif mysql # not compatible
query I rowsort label-463
SELECT - MIN ( DISTINCT - 38 ) + + - COUNT ( * ) + 33 AS col2
----
70

onlyif mysql # aggregate syntax: 
query II rowsort label-464
SELECT + 77 AS col1, CASE 27 WHEN + COUNT( * ) * 71 THEN ( - CASE + 48 WHEN + 52 THEN ( 64 ) END ) + - - 72 END
----
77
NULL

skipif mysql # not compatible
query II rowsort label-464
SELECT + 77 AS col1, CASE 27 WHEN + COUNT ( * ) * 71 THEN ( - CASE + 48 WHEN + 52 THEN ( 64 ) END ) + - - 72 END
----
77
NULL

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

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

query I rowsort
SELECT ALL + + CASE - + 76 WHEN + - ( - ( + ( + 19 ) ) ) THEN + - 7 END AS col1
----
NULL

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-469
SELECT ( - - COUNT( * ) ) AS col0, 6 DIV 79
----
1
0

skipif mysql # not compatible
query II rowsort label-469
SELECT ( - - COUNT ( * ) ) AS col0, 6 / 79
----
1
0

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-471
SELECT DISTINCT - 56 * + 7 * ( - - CAST( - COUNT( * ) AS SIGNED ) ) + + 81 AS col1
----
473

skipif mysql # not compatible
query I rowsort label-471
SELECT DISTINCT - 56 * + 7 * ( - - CAST ( - COUNT ( * ) AS INTEGER ) ) + + 81 AS col1
----
473

query I rowsort
SELECT NULLIF ( + - 64, + 4 * + 67 - + - 23 + 5 + - + 6 * + 96 ) AS col2
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-473
SELECT ALL + 23 * 36 + + - COALESCE ( CASE + - AVG ( - NULLIF ( 21, + + 71 - + + 67 ) ) WHEN - COUNT( * ) THEN 39 ELSE + ( 76 ) END, + ( 79 ) * SUM( ALL - + 19 ) ) * - 33 + + 36 AS col0
----
3372

skipif mysql # not compatible
query I rowsort label-473
SELECT ALL + 23 * 36 + + - COALESCE ( CASE + - AVG ( - NULLIF ( 21, + + 71 - + + 67 ) ) WHEN - COUNT ( * ) THEN 39 ELSE + ( 76 ) END, + ( 79 ) * SUM ( ALL - + 19 ) ) * - 33 + + 36 AS col0
----
3372

query I rowsort
SELECT - 66 * - 89 * 67
----
393558

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-475
SELECT + COALESCE ( CAST( 29 AS SIGNED ), + + NULLIF ( + + COUNT( - CAST( - + 49 AS DECIMAL ) ), + 18 ) )
----
29

skipif mysql # not compatible
query I rowsort label-475
SELECT + COALESCE ( CAST ( 29 AS INTEGER ), + + NULLIF ( + + COUNT ( - CAST ( - + 49 AS REAL ) ), + 18 ) )
----
29

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-477
SELECT ALL - COALESCE ( 80, 21 + - COUNT( * ) ) * + 50 + + 4 + - 7 * + ( + + 72 )
----
-4500

skipif mysql # not compatible
query I rowsort label-477
SELECT ALL - COALESCE ( 80, 21 + - COUNT ( * ) ) * + 50 + + 4 + - 7 * + ( + + 72 )
----
-4500

onlyif mysql # aggregate syntax: 
query I rowsort label-478
SELECT COALESCE ( + 63, - 35 * + COUNT( * ) - - ( - + 10 ) ) AS col0
----
63

skipif mysql # not compatible
query I rowsort label-478
SELECT COALESCE ( + 63, - 35 * + COUNT ( * ) - - ( - + 10 ) ) AS col0
----
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-479
SELECT ALL COUNT( ALL - - 86 ) * + COUNT( * ) + - + 68 + + - 14 + MIN( ALL + COALESCE ( + + 48, + 25 ) ) * + CASE NULLIF ( + ( + 65 ), 62 + - CASE + - 83 WHEN - 97 THEN 2 END - + 4 + - + 80 * + 80 * 19 * - - CAST( + 46 AS SIGNED ) ) WHEN COUNT( + - 64 ) THEN - COUNT( * ) * + - 0 - - 39 / - 41 + + - 7 / - - 49 WHEN - CAST( NULL AS SIGNED ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-479
SELECT ALL COUNT ( ALL - - 86 ) * + COUNT ( * ) + - + 68 + + - 14 + MIN ( ALL + COALESCE ( + + 48, + 25 ) ) * + CASE NULLIF ( + ( + 65 ), 62 + - CASE + - 83 WHEN - 97 THEN 2 END - + 4 + - + 80 * + 80 * 19 * - - CAST ( + 46 AS INTEGER ) ) WHEN COUNT ( + - 64 ) THEN - COUNT ( * ) * + - 0 - - 39 / - 41 + + - 7 / - - 49 WHEN - CAST ( NULL AS INTEGER ) THEN NULL END
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-481
SELECT DISTINCT CAST( 99 AS SIGNED ) col2, 19 * + 24 * - 79 * + 87 * - COALESCE ( 18, + 94 DIV 95 ) + 42 + - 98 DIV + + 3 AS col1
----
99
56413594

skipif mysql # not compatible
query II rowsort label-481
SELECT DISTINCT CAST ( 99 AS INTEGER ) col2, 19 * + 24 * - 79 * + 87 * - COALESCE ( 18, + 94 / 95 ) + 42 + - 98 / + + 3 AS col1
----
99
56413594

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-482
SELECT + MAX( ALL + 13 ) DIV + 9
----
1

skipif mysql # not compatible
query I rowsort label-482
SELECT + MAX ( ALL + 13 ) / + 9
----
1

query I rowsort
SELECT - 0 * - 88
----
0

query I rowsort
SELECT ALL 33 * + - 77 - - 25 AS col1
----
-2516

query I rowsort
SELECT DISTINCT + 28 * - 41
----
-1148

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-486
SELECT + - 59 + + 69 DIV + 9 - 74 * - 41 AS col2, - 38 DIV + + ( - ( MIN( ALL + 77 ) ) ) AS col1
----
2982
0

skipif mysql # not compatible
query II rowsort label-486
SELECT + - 59 + + 69 / + 9 - 74 * - 41 AS col2, - 38 / + + ( - ( MIN ( ALL + 77 ) ) ) AS col1
----
2982
0

query I rowsort
SELECT ALL + 95 * - 54 + + + 97 AS col1
----
-5033

query I rowsort
SELECT + + 89 * 59
----
5251

onlyif mysql # aggregate syntax: 
query I rowsort label-489
SELECT ALL - ( - 21 ) - - MIN( ALL + 62 ) AS col2
----
83

skipif mysql # not compatible
query I rowsort label-489
SELECT ALL - ( - 21 ) - - MIN ( ALL + 62 ) AS col2
----
83

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

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

query I rowsort
SELECT ALL + CASE - 88 WHEN 65 * 92 + - AVG ( ALL - 58 ) * - + 24 THEN - ( - 39 ) / + 50 WHEN - 93 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-492
SELECT ALL + COUNT( * ) - - CASE - 77 WHEN + 13 THEN - 8 WHEN + 47 THEN + + 68 END * + 4 * - - 3 * - 97 * - 64
----
NULL

skipif mysql # not compatible
query I rowsort label-492
SELECT ALL + COUNT ( * ) - - CASE - 77 WHEN + 13 THEN - 8 WHEN + 47 THEN + + 68 END * + 4 * - - 3 * - 97 * - 64
----
NULL

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

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

query II rowsort
SELECT + 72 * - + 44, + 93 col1
----
-3168
93

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

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

query I rowsort
SELECT NULLIF ( 15, - - 43 + 73 / 62 / - 82 )
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-497
SELECT - CASE + - 5 WHEN + - COUNT( * ) THEN - - 53 END * - 30 * - 56
----
NULL

skipif mysql # not compatible
query I rowsort label-497
SELECT - CASE + - 5 WHEN + - COUNT ( * ) THEN - - 53 END * - 30 * - 56
----
NULL

query I rowsort
SELECT - - CASE - 51 WHEN 7 * + - 74 THEN NULL ELSE + 19 END
----
19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-499
SELECT CAST( + + 85 AS SIGNED ) AS col1
----
85

skipif mysql # not compatible
query I rowsort label-499
SELECT CAST ( + + 85 AS INTEGER ) AS col1
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-500
SELECT ALL - ( SUM( + + 87 ) ) + - 46
----
-133

skipif mysql # not compatible
query I rowsort label-500
SELECT ALL - ( SUM ( + + 87 ) ) + - 46
----
-133

query I rowsort
SELECT ALL 14 * + 0 col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-502
SELECT + CAST( NULL AS SIGNED ) AS col1, 78
----
NULL
78

skipif mysql # not compatible
query II rowsort label-502
SELECT + CAST ( NULL AS INTEGER ) AS col1, 78
----
NULL
78

query I rowsort
SELECT + 96 + + 85
----
181

query I rowsort
SELECT - 2 * - + 98 * - 48
----
-9408

onlyif mysql # DIV for integer division: 
query II rowsort label-505
SELECT 20, + 73 DIV 84 AS col0
----
20
0

skipif mysql # not compatible
query II rowsort label-505
SELECT 20, + 73 / 84 AS col0
----
20
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-506
SELECT ALL - CAST( - 10 AS SIGNED ) + + + 81 AS col1
----
91

skipif mysql # not compatible
query I rowsort label-506
SELECT ALL - CAST ( - 10 AS INTEGER ) + + + 81 AS col1
----
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-507
SELECT 26 * + 95 * + + 4 + + 80 + - + 7 * + NULLIF ( + - 99, + - 42 ) * 48 + + 22 + - - COUNT( * ) * 8 * - - 88 * + 44 + - + 26 + 15 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-507
SELECT 26 * + 95 * + + 4 + + 80 + - + 7 * + NULLIF ( + - 99, + - 42 ) * 48 + + 22 + - - COUNT ( * ) * 8 * - - 88 * + 44 + - + 26 + 15 * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-508
SELECT ALL + 90 DIV + - 93 col2
----
0

skipif mysql # not compatible
query I rowsort label-508
SELECT ALL + 90 / + - 93 col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-509
SELECT + 81, COUNT( + - 33 ) * - + 66 AS col0
----
81
-66

skipif mysql # not compatible
query II rowsort label-509
SELECT + 81, COUNT ( + - 33 ) * - + 66 AS col0
----
81
-66

query I rowsort
SELECT ALL 48 + + 2 * 9 AS col0
----
66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-511
SELECT 54 * + 8 DIV - COUNT( * )
----
-432

skipif mysql # not compatible
query I rowsort label-511
SELECT 54 * + 8 / - COUNT ( * )
----
-432

query I rowsort
SELECT 64 * 51 * + - 84 * + 58 + - - 22
----
-15902186

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-513
SELECT + 20 * + - 33 DIV COUNT( * ) + + - 0 * - - 94 AS col2
----
-660

skipif mysql # not compatible
query I rowsort label-513
SELECT + 20 * + - 33 / COUNT ( * ) + + - 0 * - - 94 AS col2
----
-660

query I rowsort
SELECT ALL - 64 - 55 + - + COALESCE ( + + 40, - 32, 49 )
----
-159

query I rowsort
SELECT ALL + 0 * - 94 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-516
SELECT 54 * + CASE 28 WHEN + + 61 * + ( - COALESCE ( - 85, - 52 * - + 49 * + - 55 ) ) THEN NULL WHEN 53 * 45 + 34 THEN NULL ELSE - 70 + - 20 * + 74 * + - COUNT( * ) END
----
76140

skipif mysql # not compatible
query I rowsort label-516
SELECT 54 * + CASE 28 WHEN + + 61 * + ( - COALESCE ( - 85, - 52 * - + 49 * + - 55 ) ) THEN NULL WHEN 53 * 45 + 34 THEN NULL ELSE - 70 + - 20 * + 74 * + - COUNT ( * ) END
----
76140

query I rowsort
SELECT 89 * - 81
----
-7209

onlyif mysql # aggregate syntax: 
query II rowsort label-518
SELECT 20 col1, - 55 + - COUNT( * ) AS col1
----
20
-56

skipif mysql # not compatible
query II rowsort label-518
SELECT 20 col1, - 55 + - COUNT ( * ) AS col1
----
20
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-519
SELECT ALL + + 1 * + + 57 * - MIN( DISTINCT + + 0 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-519
SELECT ALL + + 1 * + + 57 * - MIN ( DISTINCT + + 0 ) AS col0
----
0

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

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

query I rowsort
SELECT + + 4 * 50 + - - 74 + - - 78 - ( - 7 )
----
359

query II rowsort
SELECT - 32 AS col2, - 1 * + 27 col2
----
-32
-27

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-523
SELECT DISTINCT + COALESCE ( + MAX( 66 ), + + 35 * + 76 + - 32 DIV + + 97, 86 ) AS col0
----
66

skipif mysql # not compatible
query I rowsort label-523
SELECT DISTINCT + COALESCE ( + MAX ( 66 ), + + 35 * + 76 + - 32 / + + 97, 86 ) AS col0
----
66

onlyif mysql # DIV for integer division: 
query I rowsort label-524
SELECT 36 + - 65 + - 84 DIV - + 90 AS col0
----
-29

skipif mysql # not compatible
query I rowsort label-524
SELECT 36 + - 65 + - 84 / - + 90 AS col0
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-525
SELECT + 26 * + ( - 0 ) * - + COUNT( * ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-525
SELECT + 26 * + ( - 0 ) * - + COUNT ( * ) AS col0
----
0

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

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

query I rowsort
SELECT ALL - 22 + + 5
----
-17

query I rowsort
SELECT + 93 + - + 62
----
31

query I rowsort
SELECT ALL + + 84 + 19
----
103

query I rowsort
SELECT ALL + 47 * 57
----
2679

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-531
SELECT CAST( + ( - MIN( ALL - + ( - - 20 ) ) ) AS SIGNED ) + + + 8 AS col1
----
28

skipif mysql # not compatible
query I rowsort label-531
SELECT CAST ( + ( - MIN ( ALL - + ( - - 20 ) ) ) AS INTEGER ) + + + 8 AS col1
----
28

query I rowsort
SELECT ALL 46 + 83 + 13 - 99
----
43

query I rowsort
SELECT - ( 44 ) col2
----
-44

onlyif mysql # aggregate syntax: 
query II rowsort label-534
SELECT DISTINCT - 29 + + MIN( - 39 ), COUNT( * ) AS col2
----
-68
1

skipif mysql # not compatible
query II rowsort label-534
SELECT DISTINCT - 29 + + MIN ( - 39 ), COUNT ( * ) AS col2
----
-68
1

query I rowsort
SELECT 39 + + 62 + + - 36 + + + 36
----
101

onlyif mysql # aggregate syntax: 
query I rowsort label-536
SELECT ALL 8 + COUNT( * ) * + 17
----
25

skipif mysql # not compatible
query I rowsort label-536
SELECT ALL 8 + COUNT ( * ) * + 17
----
25

onlyif mysql # aggregate syntax: 
query II rowsort label-537
SELECT ( + COUNT( * ) ) + + 63 * + - 97 * + 96 + ( + + 45 ), - 42 * - COUNT( * ) AS col2
----
-586610
42

skipif mysql # not compatible
query II rowsort label-537
SELECT ( + COUNT ( * ) ) + + 63 * + - 97 * + 96 + ( + + 45 ), - 42 * - COUNT ( * ) AS col2
----
-586610
42

query II rowsort
SELECT DISTINCT 43 + + 92 AS col2, COALESCE ( 93, - 56 ) - - 1
----
135
94

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-539
SELECT ALL 72 + - + 98 DIV 74 DIV + 62 * COUNT( * ) AS col0
----
72

skipif mysql # not compatible
query I rowsort label-539
SELECT ALL 72 + - + 98 / 74 / + 62 * COUNT ( * ) AS col0
----
72

query I rowsort
SELECT ALL 37 * - ( + 51 ) AS col1
----
-1887

query I rowsort
SELECT ALL - 31 - - 81 - 7 AS col1
----
43

query II rowsort
SELECT DISTINCT + 77 * - + 51 AS col0, 20 + 87 + - 91
----
-3927
16

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-545
SELECT + 78 DIV 15 - + CASE - 29 WHEN + + 72 + + - 16 THEN NULL ELSE + - SUM( 56 ) END + + COUNT( - CAST( + 26 AS SIGNED ) ) AS col1
----
62

skipif mysql # not compatible
query I rowsort label-545
SELECT + 78 / 15 - + CASE - 29 WHEN + + 72 + + - 16 THEN NULL ELSE + - SUM ( 56 ) END + + COUNT ( - CAST ( + 26 AS INTEGER ) ) AS col1
----
62

onlyif mysql # DIV for integer division: 
query I rowsort label-546
SELECT 89 DIV + 4
----
22

skipif mysql # not compatible
query I rowsort label-546
SELECT 89 / + 4
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-547
SELECT ( ( + 89 ) ) * 35 + COUNT( * ) AS col0
----
3116

skipif mysql # not compatible
query I rowsort label-547
SELECT ( ( + 89 ) ) * 35 + COUNT ( * ) AS col0
----
3116

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-548
SELECT DISTINCT 0 * - NULLIF ( CAST( NULL AS SIGNED ), 9 + + 39 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-548
SELECT DISTINCT 0 * - NULLIF ( CAST ( NULL AS INTEGER ), 9 + + 39 ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-549
SELECT - 74 DIV - - 86 * + + 83 col1
----
0

skipif mysql # not compatible
query I rowsort label-549
SELECT - 74 / - - 86 * + + 83 col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-550
SELECT DISTINCT - - 3 * 52, - COUNT( * ) AS col2
----
156
-1

skipif mysql # not compatible
query II rowsort label-550
SELECT DISTINCT - - 3 * 52, - COUNT ( * ) AS col2
----
156
-1

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

onlyif mysql # aggregate syntax: 
query I rowsort label-552
SELECT + + 42 * + 63 + COUNT( * ) AS col2
----
2647

skipif mysql # not compatible
query I rowsort label-552
SELECT + + 42 * + 63 + COUNT ( * ) AS col2
----
2647

onlyif mysql # aggregate syntax: 
query I rowsort label-553
SELECT - 2 - + NULLIF ( - + 29, - - NULLIF ( - + 94, - 95 + + COUNT( * ) + + 87 * + + 99 - - 35 ) ) + - - 18
----
45

skipif mysql # not compatible
query I rowsort label-553
SELECT - 2 - + NULLIF ( - + 29, - - NULLIF ( - + 94, - 95 + + COUNT ( * ) + + 87 * + + 99 - - 35 ) ) + - - 18
----
45

onlyif mysql # aggregate syntax: 
query II rowsort label-554
SELECT + 24 * 36 * + 26 * + 25 AS col2, + COUNT( * ) AS col2
----
561600
1

skipif mysql # not compatible
query II rowsort label-554
SELECT + 24 * 36 * + 26 * + 25 AS col2, + COUNT ( * ) AS col2
----
561600
1

query I rowsort
SELECT - + CASE + 85 WHEN + - 68 THEN 85 * 54 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-556
SELECT - - ( + - NULLIF ( + ( + 79 ), - - ( COUNT( + + 15 ) ) + - 59 ) )
----
-79

skipif mysql # not compatible
query I rowsort label-556
SELECT - - ( + - NULLIF ( + ( + 79 ), - - ( COUNT ( + + 15 ) ) + - 59 ) )
----
-79

query I rowsort
SELECT ALL - + 61 + 40
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-558
SELECT DISTINCT + 93 + - COUNT( ALL + 73 ) AS col2
----
92

skipif mysql # not compatible
query I rowsort label-558
SELECT DISTINCT + 93 + - COUNT ( ALL + 73 ) AS col2
----
92

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

skipif mysql # not compatible
query I rowsort label-559
SELECT ALL + COUNT ( + + 40 ) * + 92 AS col2
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-560
SELECT - 91 * + 21 + + + COUNT( * ) AS col2
----
-1910

skipif mysql # not compatible
query I rowsort label-560
SELECT - 91 * + 21 + + + COUNT ( * ) AS col2
----
-1910

query I rowsort
SELECT ALL + - 48 + - 44
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-562
SELECT DISTINCT + - COUNT( * ) * + + 22 + + 74
----
52

skipif mysql # not compatible
query I rowsort label-562
SELECT DISTINCT + - COUNT ( * ) * + + 22 + + 74
----
52

query II rowsort
SELECT DISTINCT 48 + 87, + 3 - - + 6 + - + 16 AS col1
----
135
-7

query I rowsort
SELECT DISTINCT + COALESCE ( + CASE - + 33 WHEN - 6 THEN - + 98 WHEN - 49 THEN - ( 60 ) ELSE - - ( + - 20 ) END, - 64 )
----
-20

onlyif mysql # aggregate syntax: 
query II rowsort label-565
SELECT + ( 87 ) * SUM( + 46 ), - 21 AS col1
----
4002
-21

skipif mysql # not compatible
query II rowsort label-565
SELECT + ( 87 ) * SUM ( + 46 ), - 21 AS col1
----
4002
-21

query I rowsort
SELECT - 79 - + 30 + + 51 + 12 - 94
----
-140

query II rowsort
SELECT - 91 - - 73 + - 72 AS col2, + 6
----
-90
6

query I rowsort
SELECT + 97 * 75
----
7275

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

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

query I rowsort
SELECT ALL + CASE - 77 WHEN + 12 * 79 - 98 + + 26 + - 23 THEN + 7 * - + 42 WHEN + 34 THEN - 17 - - + 28 - + 23 + ( - - 65 ) * - 65 * 95 END - - + 95 + - 20 + + 88
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-571
SELECT DISTINCT - 8 DIV + - 49
----
0

skipif mysql # not compatible
query I rowsort label-571
SELECT DISTINCT - 8 / + - 49
----
0

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

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

query I rowsort
SELECT ALL 55 - + 51 AS col1
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-574
SELECT + 61 * + CASE - + 21 WHEN + NULLIF ( + ( - COUNT( * ) ), 77 ) * - - 37 * 85 + - 2 THEN NULL ELSE - ( - - 32 ) * + + 58 END AS col1
----
-113216

skipif mysql # not compatible
query I rowsort label-574
SELECT + 61 * + CASE - + 21 WHEN + NULLIF ( + ( - COUNT ( * ) ), 77 ) * - - 37 * 85 + - 2 THEN NULL ELSE - ( - - 32 ) * + + 58 END AS col1
----
-113216

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-575
SELECT ALL - CASE + CAST( - 60 AS SIGNED ) WHEN 92 THEN + 65 * + COUNT( * ) + - - 28 + + CASE - 83 WHEN - 37 THEN + 59 * - 69 + + - 25 * + + 40 WHEN - + 53 THEN NULL WHEN + - 13 THEN NULL ELSE 97 END * - 24 END * + - 54 * - + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-575
SELECT ALL - CASE + CAST ( - 60 AS INTEGER ) WHEN 92 THEN + 65 * + COUNT ( * ) + - - 28 + + CASE - 83 WHEN - 37 THEN + 59 * - 69 + + - 25 * + + 40 WHEN - + 53 THEN NULL WHEN + - 13 THEN NULL ELSE 97 END * - 24 END * + - 54 * - + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-576
SELECT + COUNT( * ) - + 26 * 50 + + COALESCE ( + - 23, + + ( - AVG ( DISTINCT 52 ) ) DIV 61, + + 9 ) + - 70 AS col2
----
-1392

skipif mysql # not compatible
query I rowsort label-576
SELECT + COUNT ( * ) - + 26 * 50 + + COALESCE ( + - 23, + + ( - AVG ( DISTINCT 52 ) ) / 61, + + 9 ) + - 70 AS col2
----
-1392

onlyif mysql # DIV for integer division: 
query I rowsort label-577
SELECT 36 DIV - 44 + + 71
----
71

skipif mysql # not compatible
query I rowsort label-577
SELECT 36 / - 44 + + 71
----
71

query I rowsort
SELECT 0 * - + ( - + 86 ) - + 52 + - 22 AS col1
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-579
SELECT ALL 81 * 4 - - 5 + + 74 * - SUM( ALL 68 ) AS col1
----
-4703

skipif mysql # not compatible
query I rowsort label-579
SELECT ALL 81 * 4 - - 5 + + 74 * - SUM ( ALL 68 ) AS col1
----
-4703

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-582
SELECT CASE + COUNT( * ) WHEN + COUNT( * ) THEN + - 25 * - 94 * ( + - 63 ) - - ( + + 80 ) + - - 20 * + 86 - 16 DIV - - 3 WHEN NULLIF ( + 54, - 61 + ( 45 ) + + COALESCE ( - 35, + MAX( + 98 ) * - + 28, 58 ) ) + CAST( NULL AS DECIMAL ) THEN + COUNT( * ) WHEN - ( 67 ) THEN NULL ELSE 75 END col1
----
-146255

skipif mysql # not compatible
query I rowsort label-582
SELECT CASE + COUNT ( * ) WHEN + COUNT ( * ) THEN + - 25 * - 94 * ( + - 63 ) - - ( + + 80 ) + - - 20 * + 86 - 16 / - - 3 WHEN NULLIF ( + 54, - 61 + ( 45 ) + + COALESCE ( - 35, + MAX ( + 98 ) * - + 28, 58 ) ) + CAST ( NULL AS REAL ) THEN + COUNT ( * ) WHEN - ( 67 ) THEN NULL ELSE 75 END col1
----
-146255

onlyif mysql # aggregate syntax: 
query I rowsort label-583
SELECT COUNT( * ) * 27 + + - 6 col2
----
21

skipif mysql # not compatible
query I rowsort label-583
SELECT COUNT ( * ) * 27 + + - 6 col2
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-584
SELECT CASE + 79 WHEN + COUNT( - 22 ) - MIN( - 46 ) THEN + NULLIF ( + - 34, 94 / 69 + - AVG ( - - 43 ) + COUNT( * ) ) WHEN - CASE + 34 WHEN 72 / AVG ( ALL - 12 ) THEN - COUNT( * ) ELSE NULL END THEN NULL WHEN COUNT( * ) THEN ( - ( - 67 ) ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-584
SELECT CASE + 79 WHEN + COUNT ( - 22 ) - MIN ( - 46 ) THEN + NULLIF ( + - 34, 94 / 69 + - AVG ( - - 43 ) + COUNT ( * ) ) WHEN - CASE + 34 WHEN 72 / AVG ( ALL - 12 ) THEN - COUNT ( * ) ELSE NULL END THEN NULL WHEN COUNT ( * ) THEN ( - ( - 67 ) ) END AS col2
----
NULL

query I rowsort
SELECT + 11 * 90 + + 32
----
1022

query I rowsort
SELECT DISTINCT + NULLIF ( 25, - + 90 + + - 39 ) AS col1
----
25

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

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

query I rowsort
SELECT DISTINCT + - COALESCE ( - 83, + 77 )
----
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query II rowsort label-589
SELECT ALL - - 1 * - SUM( CAST( - 40 AS SIGNED ) ) + + 92 + + COUNT( * ) + - NULLIF ( - 10, - 36 ) DIV 95 DIV 19 * + ( - - 20 ) DIV 69 * - - 0, + CASE COUNT( * ) WHEN COALESCE ( + + COALESCE ( - ( CAST( NULL AS DECIMAL ) ), + - 18 ), + + ( + ( - CASE - - ( COUNT( * ) ) WHEN + + COUNT( * ) - + + ( + 77 ) THEN + 30 * 37 + + - 71 + 80 * - 70 + - 68 * 14 WHEN - 33 * + 37 THEN NULL ELSE NULL END ) ) * 71 ) THEN + 28 * - 55 ELSE 65 END AS col0
----
133
65

skipif mysql # not compatible
query II rowsort label-589
SELECT ALL - - 1 * - SUM ( CAST ( - 40 AS INTEGER ) ) + + 92 + + COUNT ( * ) + - NULLIF ( - 10, - 36 ) / 95 / 19 * + ( - - 20 ) / 69 * - - 0, + CASE COUNT ( * ) WHEN COALESCE ( + + COALESCE ( - ( CAST ( NULL AS REAL ) ), + - 18 ), + + ( + ( - CASE - - ( COUNT ( * ) ) WHEN + + COUNT ( * ) - + + ( + 77 ) THEN + 30 * 37 + + - 71 + 80 * - 70 + - 68 * 14 WHEN - 33 * + 37 THEN NULL ELSE NULL END ) ) * 71 ) THEN + 28 * - 55 ELSE 65 END AS col0
----
133
65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-590
SELECT DISTINCT 84 * 95 + - + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-590
SELECT DISTINCT 84 * 95 + - + CAST ( NULL AS INTEGER ) AS col2
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-592
SELECT + 48 + + + 64 + + - COUNT( * )
----
111

skipif mysql # not compatible
query I rowsort label-592
SELECT + 48 + + + 64 + + - COUNT ( * )
----
111

onlyif mysql # DIV for integer division: 
query I rowsort label-593
SELECT + ( + - 15 ) * 3 DIV + - 81
----
0

skipif mysql # not compatible
query I rowsort label-593
SELECT + ( + - 15 ) * 3 / + - 81
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-594
SELECT ALL COUNT( * ) * - 86 * - COALESCE ( CAST( + + 20 AS SIGNED ), - 36 ) AS col2
----
1720

skipif mysql # not compatible
query I rowsort label-594
SELECT ALL COUNT ( * ) * - 86 * - COALESCE ( CAST ( + + 20 AS INTEGER ), - 36 ) AS col2
----
1720

query I rowsort
SELECT ALL + 30 * 26 + + ( - 46 ) + - 49 * + 91 AS col2
----
-3725

onlyif mysql # aggregate syntax: 
query I rowsort label-596
SELECT DISTINCT 62 + + 12 * + 82 + - + COUNT( * ) AS col1
----
1045

skipif mysql # not compatible
query I rowsort label-596
SELECT DISTINCT 62 + + 12 * + 82 + - + COUNT ( * ) AS col1
----
1045

query I rowsort
SELECT - - 51 * - 7
----
-357

query I rowsort
SELECT + - 40 + 91 AS col0
----
51

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

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

query I rowsort
SELECT ALL - COALESCE ( 23, - 25 * - ( 26 ), 67 + 87 ) AS col2
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-601
SELECT - - ( - MAX( DISTINCT 46 ) )
----
-46

skipif mysql # not compatible
query I rowsort label-601
SELECT - - ( - MAX ( DISTINCT 46 ) )
----
-46

query I rowsort
SELECT + 64 + NULLIF ( 87, 88 )
----
151

onlyif mysql # aggregate syntax: 
query I rowsort label-603
SELECT MAX( 77 )
----
77

skipif mysql # not compatible
query I rowsort label-603
SELECT MAX ( 77 )
----
77

query I rowsort
SELECT + 77 + - 12
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-605
SELECT - 67 + 61 - - - 30 * + - COUNT( * )
----
24

skipif mysql # not compatible
query I rowsort label-605
SELECT - 67 + 61 - - - 30 * + - COUNT ( * )
----
24

query I rowsort
SELECT ALL - 95 - - + 39 AS col2
----
-56

query I rowsort
SELECT DISTINCT 91 * + 2 * + 34 AS col0
----
6188

query I rowsort
SELECT - 20 * 11 AS col0
----
-220

query I rowsort
SELECT ALL - 4 * - - 6 AS col2
----
-24

query I rowsort
SELECT - COALESCE ( - - 97, - ( - + 72 ) ) + - 92 col1
----
-189

query I rowsort
SELECT - 90 + + 3 + + - 59
----
-146

onlyif mysql # DIV for integer division: 
query I rowsort label-612
SELECT + 7 DIV - 14 * 11
----
0

skipif mysql # not compatible
query I rowsort label-612
SELECT + 7 / - 14 * 11
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-613
SELECT DISTINCT - 59 DIV + - 14 AS col0
----
4

skipif mysql # not compatible
query I rowsort label-613
SELECT DISTINCT - 59 / + - 14 AS col0
----
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-614
SELECT - 54 * CAST( 73 AS SIGNED )
----
-3942

skipif mysql # not compatible
query I rowsort label-614
SELECT - 54 * CAST ( 73 AS INTEGER )
----
-3942

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-615
SELECT - COUNT( DISTINCT 70 ) DIV - 24 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-615
SELECT - COUNT ( DISTINCT 70 ) / - 24 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-616
SELECT DISTINCT - 60 DIV - - 20 AS col1
----
-3

skipif mysql # not compatible
query I rowsort label-616
SELECT DISTINCT - 60 / - - 20 AS col1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-617
SELECT + SUM( + 65 ) AS col0
----
65

skipif mysql # not compatible
query I rowsort label-617
SELECT + SUM ( + 65 ) AS col0
----
65

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-619
SELECT ALL - + MIN( - 99 ) * - + ( + 41 ) - 70 AS col2
----
-4129

skipif mysql # not compatible
query I rowsort label-619
SELECT ALL - + MIN ( - 99 ) * - + ( + 41 ) - 70 AS col2
----
-4129

onlyif mysql # aggregate syntax: 
query I rowsort label-620
SELECT - 36 - - + ( - 70 ) + ( + ( + - 24 ) ) * + COUNT( ALL + + 51 ) * + - COUNT( * ) AS col0
----
-82

skipif mysql # not compatible
query I rowsort label-620
SELECT - 36 - - + ( - 70 ) + ( + ( + - 24 ) ) * + COUNT ( ALL + + 51 ) * + - COUNT ( * ) AS col0
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-621
SELECT DISTINCT + + CASE + - 82 WHEN - COUNT( - + 11 ) THEN + + AVG ( + 66 ) END * + COUNT( * ) + 6
----
NULL

skipif mysql # not compatible
query I rowsort label-621
SELECT DISTINCT + + CASE + - 82 WHEN - COUNT ( - + 11 ) THEN + + AVG ( + 66 ) END * + COUNT ( * ) + 6
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-623
SELECT + MAX( ALL - - 76 ) + + 19
----
95

skipif mysql # not compatible
query I rowsort label-623
SELECT + MAX ( ALL - - 76 ) + + 19
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-624
SELECT DISTINCT + - COUNT( * ) * 58 + - - COUNT( * ) + - 35 AS col2
----
-92

skipif mysql # not compatible
query I rowsort label-624
SELECT DISTINCT + - COUNT ( * ) * 58 + - - COUNT ( * ) + - 35 AS col2
----
-92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-625
SELECT - ( NULLIF ( - + ( + - 7 ), COUNT( * ) * 35 ) ) * + 29 - - + 78 + CASE + 75 WHEN + 38 THEN + 57 / 15 + 73 WHEN - CAST( + 52 AS SIGNED ) THEN NULL WHEN ( - 1 ) THEN + 50 END + - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-625
SELECT - ( NULLIF ( - + ( + - 7 ), COUNT ( * ) * 35 ) ) * + 29 - - + 78 + CASE + 75 WHEN + 38 THEN + 57 / 15 + 73 WHEN - CAST ( + 52 AS INTEGER ) THEN NULL WHEN ( - 1 ) THEN + 50 END + - COUNT ( * ) AS col0
----
NULL

query I rowsort
SELECT ALL 69 * - - 8
----
552

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-628
SELECT DISTINCT 96 - + + 37 + + COUNT( * ) + + 68 AS col1
----
128

skipif mysql # not compatible
query I rowsort label-628
SELECT DISTINCT 96 - + + 37 + + COUNT ( * ) + + 68 AS col1
----
128

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-629
SELECT 45 * + CAST( NULL AS SIGNED ) col0, CAST( NULL AS SIGNED ) + + 50 * + - MIN( 71 ) AS col2
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-629
SELECT 45 * + CAST ( NULL AS INTEGER ) col0, CAST ( NULL AS INTEGER ) + + 50 * + - MIN ( 71 ) AS col2
----
NULL
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-631
SELECT ALL + 36 DIV 70
----
0

skipif mysql # not compatible
query I rowsort label-631
SELECT ALL + 36 / 70
----
0

query I rowsort
SELECT 35 * + 81 AS col1
----
2835

onlyif mysql # DIV for integer division: 
query I rowsort label-633
SELECT ( 14 ) DIV 47 col1
----
0

skipif mysql # not compatible
query I rowsort label-633
SELECT ( 14 ) / 47 col1
----
0

query I rowsort
SELECT ( + 27 ) - + 85 + + 50 * - - 63
----
3092

query I rowsort
SELECT 48 * - 96 * - 3
----
13824

query I rowsort
SELECT 83 * - 5
----
-415

query I rowsort
SELECT ALL - 73 * 16 AS col1
----
-1168

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

onlyif mysql # aggregate syntax: 
query I rowsort label-639
SELECT ALL - 46 * + 90 * - - 39 * - ( + - ( + COUNT( * ) ) )
----
-161460

skipif mysql # not compatible
query I rowsort label-639
SELECT ALL - 46 * + 90 * - - 39 * - ( + - ( + COUNT ( * ) ) )
----
-161460

onlyif mysql # aggregate syntax: 
query I rowsort label-640
SELECT ALL 36 + + + 59 * - MIN( DISTINCT + - 41 ) col0
----
2455

skipif mysql # not compatible
query I rowsort label-640
SELECT ALL 36 + + + 59 * - MIN ( DISTINCT + - 41 ) col0
----
2455

onlyif mysql # aggregate syntax: 
query I rowsort label-641
SELECT DISTINCT - COUNT( * ) + 76 AS col1
----
75

skipif mysql # not compatible
query I rowsort label-641
SELECT DISTINCT - COUNT ( * ) + 76 AS col1
----
75

query I rowsort
SELECT ALL + 74 + 98 + - 14 col0
----
158

query I rowsort
SELECT 89 - + 8 + + - 17 AS col0
----
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-644
SELECT CASE - 13 WHEN - + 35 THEN - 73 ELSE NULL END + + - COUNT( * ) + + 18 + 12 * - - CAST( 51 AS SIGNED ) / 17
----
NULL

skipif mysql # not compatible
query I rowsort label-644
SELECT CASE - 13 WHEN - + 35 THEN - 73 ELSE NULL END + + - COUNT ( * ) + + 18 + 12 * - - CAST ( 51 AS INTEGER ) / 17
----
NULL

query II rowsort
SELECT + - ( 91 ) AS col2, 18 * 54
----
-91
972

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-646
SELECT ALL + 55 + + 76 - - + 91 * + + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-646
SELECT ALL + 55 + + 76 - - + 91 * + + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-647
SELECT + - COUNT( * ) * + 24 * 90 + 70 + NULLIF ( - COUNT( * ), - 29 ) + + + 68 + ( - 95 )
----
-2118

skipif mysql # not compatible
query I rowsort label-647
SELECT + - COUNT ( * ) * + 24 * 90 + 70 + NULLIF ( - COUNT ( * ), - 29 ) + + + 68 + ( - 95 )
----
-2118

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-650
SELECT DISTINCT + COUNT( * ) * + ( 45 ) + - - COUNT( * ) * + 62 + + 27
----
134

skipif mysql # not compatible
query I rowsort label-650
SELECT DISTINCT + COUNT ( * ) * + ( 45 ) + - - COUNT ( * ) * + 62 + + 27
----
134

query I rowsort
SELECT ALL + 95 + - 98 AS col2
----
-3

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-653
SELECT ALL 1 - - - CASE 99 WHEN 60 THEN + 68 WHEN + 43 * + + 42 * NULLIF ( - 19, - + 38 * + CAST( + 55 AS DECIMAL ) * - 67 + + 2 ) + ( + CAST( - 95 AS SIGNED ) ) THEN NULL ELSE + 19 * - NULLIF ( - NULLIF ( 46, - + 39 + + AVG ( + 12 ) ), 10 + 48 + 26 + - - NULLIF ( - + 10, - 95 * + - COUNT( * ) * - - 52 ) / ( + COALESCE ( + 11, 41 ) ) ) - + COALESCE ( 54, + 82 ) END + + 37
----
-782

skipif mysql # not compatible
query I rowsort label-653
SELECT ALL 1 - - - CASE 99 WHEN 60 THEN + 68 WHEN + 43 * + + 42 * NULLIF ( - 19, - + 38 * + CAST ( + 55 AS REAL ) * - 67 + + 2 ) + ( + CAST ( - 95 AS INTEGER ) ) THEN NULL ELSE + 19 * - NULLIF ( - NULLIF ( 46, - + 39 + + AVG ( + 12 ) ), 10 + 48 + 26 + - - NULLIF ( - + 10, - 95 * + - COUNT ( * ) * - - 52 ) / ( + COALESCE ( + 11, 41 ) ) ) - + COALESCE ( 54, + 82 ) END + + 37
----
-782

query I rowsort
SELECT ALL - 3 * + 19 col2
----
-57

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-656
SELECT + - CASE MIN( + - 8 ) WHEN - - 81 THEN + - 51 ELSE - - 45 END
----
-45

skipif mysql # not compatible
query I rowsort label-656
SELECT + - CASE MIN ( + - 8 ) WHEN - - 81 THEN + - 51 ELSE - - 45 END
----
-45

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-659
SELECT 62 * + + MIN( - 85 )
----
-5270

skipif mysql # not compatible
query I rowsort label-659
SELECT 62 * + + MIN ( - 85 )
----
-5270

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

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

query I rowsort
SELECT DISTINCT - 55 * + ( 9 ) col1
----
-495

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-662
SELECT 68 * 13 DIV COUNT( * ) - + COALESCE ( - 96, - COUNT( - ( - + 89 ) ), 94 ) DIV - 86 + 9 + + COUNT( * )
----
893

skipif mysql # not compatible
query I rowsort label-662
SELECT 68 * 13 / COUNT ( * ) - + COALESCE ( - 96, - COUNT ( - ( - + 89 ) ), 94 ) / - 86 + 9 + + COUNT ( * )
----
893

query II rowsort
SELECT DISTINCT 9 AS col1, - 70 + - - 71 * + 43 * - 51
----
9
-155773

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

skipif mysql # not compatible
query I rowsort label-664
SELECT ALL ( - + 69 ) / 90 * + 64 - - COUNT ( * ) AS col0
----
1

query II rowsort
SELECT - 16, - 95 + + 8 * + 51 + + - 61 AS col2
----
-16
252

onlyif mysql # aggregate syntax: 
query I rowsort label-666
SELECT 45 + + - COALESCE ( + - 61, + - ( - COUNT( * ) ) + + + COUNT( * ) ) AS col2
----
106

skipif mysql # not compatible
query I rowsort label-666
SELECT 45 + + - COALESCE ( + - 61, + - ( - COUNT ( * ) ) + + + COUNT ( * ) ) AS col2
----
106

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-667
SELECT COUNT( * ) DIV - - 60 col1
----
0

skipif mysql # not compatible
query I rowsort label-667
SELECT COUNT ( * ) / - - 60 col1
----
0

query I rowsort
SELECT ( - 43 ) * + 73 AS col0
----
-3139

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-669
SELECT CASE + - 3 WHEN 31 THEN 42 - + 67 ELSE NULL END + 27 + + COALESCE ( 28, 33 * - 90 + + - 88, - CAST( + + 57 AS SIGNED ) * - COUNT( * ) ) AS col1, - 84 - COALESCE ( + 26, - 65 ) DIV - - 85
----
NULL
-84

skipif mysql # not compatible
query II rowsort label-669
SELECT CASE + - 3 WHEN 31 THEN 42 - + 67 ELSE NULL END + 27 + + COALESCE ( 28, 33 * - 90 + + - 88, - CAST ( + + 57 AS INTEGER ) * - COUNT ( * ) ) AS col1, - 84 - COALESCE ( + 26, - 65 ) / - - 85
----
NULL
-84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-670
SELECT CAST( 26 AS SIGNED ) - ( - - COUNT( - + 73 ) ) * + 71 AS col0
----
-45

skipif mysql # not compatible
query I rowsort label-670
SELECT CAST ( 26 AS INTEGER ) - ( - - COUNT ( - + 73 ) ) * + 71 AS col0
----
-45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-671
SELECT DISTINCT CAST( NULL AS SIGNED ) + - 40 + + MAX( + 62 ) AS col2, 97 AS col2
----
NULL
97

skipif mysql # not compatible
query II rowsort label-671
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - 40 + + MAX ( + 62 ) AS col2, 97 AS col2
----
NULL
97

onlyif mysql # DIV for integer division: 
query I rowsort label-672
SELECT ( - - 47 ) DIV + + 28 + + - 72 AS col2
----
-71

skipif mysql # not compatible
query I rowsort label-672
SELECT ( - - 47 ) / + + 28 + + - 72 AS col2
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-673
SELECT ALL 36 + SUM( DISTINCT - 29 ) col2
----
7

skipif mysql # not compatible
query I rowsort label-673
SELECT ALL 36 + SUM ( DISTINCT - 29 ) col2
----
7

query I rowsort
SELECT ALL - 42 + + 11 AS col0
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-675
SELECT MAX( + + 6 ) + - 15 + - 66
----
-75

skipif mysql # not compatible
query I rowsort label-675
SELECT MAX ( + + 6 ) + - 15 + - 66
----
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-676
SELECT ALL 89 DIV COALESCE ( - 17, - + 99 + + + CASE 90 WHEN - 23 * + 82 THEN 38 END ) DIV 19 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-676
SELECT ALL 89 / COALESCE ( - 17, - + 99 + + + CASE 90 WHEN - 23 * + 82 THEN 38 END ) / 19 AS col0
----
0

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

skipif mysql # not compatible
query I rowsort label-677
SELECT ( - ( - 36 ) ) / + + 54 - + CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT 69 AS col2, + 91 * + + 93
----
69
8463

query II rowsort
SELECT 4 AS col1, + 14
----
4
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-680
SELECT DISTINCT COUNT( * ) + - CAST( NULL AS SIGNED ) / - 77 + - 40 + COUNT( * ) * + COUNT( * ) AS col1, + 98 + COALESCE ( - - 71, - NULLIF ( - 4, - 44 ), 71 + + CAST( + 82 AS SIGNED ), 22 ) + - - 89 + + 40 * 5
----
NULL
458

skipif mysql # not compatible
query II rowsort label-680
SELECT DISTINCT COUNT ( * ) + - CAST ( NULL AS INTEGER ) / - 77 + - 40 + COUNT ( * ) * + COUNT ( * ) AS col1, + 98 + COALESCE ( - - 71, - NULLIF ( - 4, - 44 ), 71 + + CAST ( + 82 AS INTEGER ), 22 ) + - - 89 + + 40 * 5
----
NULL
458

onlyif mysql # aggregate syntax: 
query I rowsort label-681
SELECT ALL 82 + COUNT( * )
----
83

skipif mysql # not compatible
query I rowsort label-681
SELECT ALL 82 + COUNT ( * )
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-682
SELECT - SUM( ALL 10 ) AS col1
----
-10

skipif mysql # not compatible
query I rowsort label-682
SELECT - SUM ( ALL 10 ) AS col1
----
-10

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-683
SELECT 12 AS col2, - 14 DIV + 43 + 44 * - COUNT( + 5 ) - - + 25 AS col1
----
12
-19

skipif mysql # not compatible
query II rowsort label-683
SELECT 12 AS col2, - 14 / + 43 + 44 * - COUNT ( + 5 ) - - + 25 AS col1
----
12
-19

query II rowsort
SELECT ALL - - 44 AS col1, - 18 AS col2
----
44
-18

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

skipif mysql # not compatible
query I rowsort label-685
SELECT 62 / + COUNT ( * ) + ( 64 )
----
126

onlyif mysql # aggregate syntax: 
query II rowsort label-686
SELECT DISTINCT - - 84 AS col0, ( + 68 ) * - COALESCE ( - + COUNT( * ), + - 45 ) AS col2
----
84
68

skipif mysql # not compatible
query II rowsort label-686
SELECT DISTINCT - - 84 AS col0, ( + 68 ) * - COALESCE ( - + COUNT ( * ), + - 45 ) AS col2
----
84
68

query I rowsort
SELECT DISTINCT - 66 * + 68 - + 87 * 19 - + 55 col0
----
-6196

onlyif mysql # aggregate syntax: 
query I rowsort label-688
SELECT COUNT( * ) * - - 95 AS col0
----
95

skipif mysql # not compatible
query I rowsort label-688
SELECT COUNT ( * ) * - - 95 AS col0
----
95

query I rowsort
SELECT ALL + + 23 * + 12
----
276

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-691
SELECT ALL + + NULLIF ( + + 24, + 84 ) * - + COALESCE ( + NULLIF ( + 72, 54 ), + 50 ) * + CASE + ( NULLIF ( 57, AVG ( DISTINCT + + 60 ) / + COUNT( * ) * - MIN( ALL + - 57 ) ) ) WHEN + COUNT( * ) THEN + 36 ELSE NULL END - 38 - - ( 55 ) - + 16 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-691
SELECT ALL + + NULLIF ( + + 24, + 84 ) * - + COALESCE ( + NULLIF ( + 72, 54 ), + 50 ) * + CASE + ( NULLIF ( 57, AVG ( DISTINCT + + 60 ) / + COUNT ( * ) * - MIN ( ALL + - 57 ) ) ) WHEN + COUNT ( * ) THEN + 36 ELSE NULL END - 38 - - ( 55 ) - + 16 AS col2
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-693
SELECT - - CASE - 20 WHEN 73 THEN - - 61 / - - 56 * 37 END * COUNT( * ) * - CASE 67 WHEN - 52 + - COUNT( * ) * CASE + - 82 WHEN - COALESCE ( + + 39, - 45 ) THEN + - 84 / + ( + 63 ) + + 60 * 50 + + 64 + ( + 76 ) * 21 WHEN - + 74 THEN NULL END - + + 77 THEN - COUNT( * ) - + + ( + ( + + 89 ) ) * - 99 WHEN + 21 THEN CASE 91 WHEN ( - 66 ) THEN - 79 + - COUNT( * ) END END
----
NULL

skipif mysql # not compatible
query I rowsort label-693
SELECT - - CASE - 20 WHEN 73 THEN - - 61 / - - 56 * 37 END * COUNT ( * ) * - CASE 67 WHEN - 52 + - COUNT ( * ) * CASE + - 82 WHEN - COALESCE ( + + 39, - 45 ) THEN + - 84 / + ( + 63 ) + + 60 * 50 + + 64 + ( + 76 ) * 21 WHEN - + 74 THEN NULL END - + + 77 THEN - COUNT ( * ) - + + ( + ( + + 89 ) ) * - 99 WHEN + 21 THEN CASE 91 WHEN ( - 66 ) THEN - 79 + - COUNT ( * ) END END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-694
SELECT - - 3 - + COUNT( + - 7 ) AS col2, - 25 - + 73 * - COUNT( 90 ) + - 29
----
2
19

skipif mysql # not compatible
query II rowsort label-694
SELECT - - 3 - + COUNT ( + - 7 ) AS col2, - 25 - + 73 * - COUNT ( 90 ) + - 29
----
2
19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-695
SELECT - + COALESCE ( + CASE - - 12 WHEN + COALESCE ( + - 27, + 82 * 67, + 23 / - 89 ) * 16 THEN - MAX( DISTINCT 50 ) WHEN - 63 THEN NULL ELSE NULL END, 17 * + 65, - 18, - COALESCE ( + 72, - CAST( + + 87 AS SIGNED ) ) ) - - + COUNT( * )
----
-1104

skipif mysql # not compatible
query I rowsort label-695
SELECT - + COALESCE ( + CASE - - 12 WHEN + COALESCE ( + - 27, + 82 * 67, + 23 / - 89 ) * 16 THEN - MAX ( DISTINCT 50 ) WHEN - 63 THEN NULL ELSE NULL END, 17 * + 65, - 18, - COALESCE ( + 72, - CAST ( + + 87 AS INTEGER ) ) ) - - + COUNT ( * )
----
-1104

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-697
SELECT DISTINCT + - COUNT( * ) DIV + 29 * + 63 AS col1, + 46 + 5
----
0
51

skipif mysql # not compatible
query II rowsort label-697
SELECT DISTINCT + - COUNT ( * ) / + 29 * + 63 AS col1, + 46 + 5
----
0
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-698
SELECT + + 22 AS col1, 35 * CAST( NULL AS SIGNED ) * - ( - 21 ) + 73 + + 16 + + - 82 * COUNT( * )
----
22
NULL

skipif mysql # not compatible
query II rowsort label-698
SELECT + + 22 AS col1, 35 * CAST ( NULL AS INTEGER ) * - ( - 21 ) + 73 + + 16 + + - 82 * COUNT ( * )
----
22
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-699
SELECT ALL - MIN( DISTINCT - 90 ) * - 19 * 27, - NULLIF ( 71, - + 41 * + 4 / 33 ) AS col1
----
-46170
-71

skipif mysql # not compatible
query II rowsort label-699
SELECT ALL - MIN ( DISTINCT - 90 ) * - 19 * 27, - NULLIF ( 71, - + 41 * + 4 / 33 ) AS col1
----
-46170
-71

query I rowsort
SELECT - - 51 * + 67
----
3417

onlyif mysql # aggregate syntax: 
query I rowsort label-701
SELECT 72 * + - MIN( 21 ) + 34 + - + 50 * + 62 AS col2
----
-4578

skipif mysql # not compatible
query I rowsort label-701
SELECT 72 * + - MIN ( 21 ) + 34 + - + 50 * + 62 AS col2
----
-4578

query I rowsort
SELECT - 85 * + 35 AS col1
----
-2975

onlyif mysql # aggregate syntax: 
query II rowsort label-703
SELECT ALL + 73 + - 37 + + 15 - + - 65 + - 6 AS col0, - COUNT( * )
----
110
-1

skipif mysql # not compatible
query II rowsort label-703
SELECT ALL + 73 + - 37 + + 15 - + - 65 + - 6 AS col0, - COUNT ( * )
----
110
-1

query I rowsort
SELECT + 84 + + 75 AS col1
----
159

query I rowsort
SELECT ALL 49 + - 26
----
23

query I rowsort
SELECT - CASE 96 WHEN + 63 * + 81 THEN NULL WHEN + - 69 THEN + + 81 ELSE NULL END * - 80 - + + 50
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-707
SELECT ALL + ( - NULLIF ( + 8, 56 + - 67 ) ) + - COUNT( * ) * - + 97
----
89

skipif mysql # not compatible
query I rowsort label-707
SELECT ALL + ( - NULLIF ( + 8, 56 + - 67 ) ) + - COUNT ( * ) * - + 97
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-708
SELECT DISTINCT MAX( DISTINCT + 65 ) + 41
----
106

skipif mysql # not compatible
query I rowsort label-708
SELECT DISTINCT MAX ( DISTINCT + 65 ) + 41
----
106

onlyif mysql # aggregate syntax: 
query I rowsort label-709
SELECT ALL 42 + + 54 * + ( COALESCE ( 55, - 5 * - COUNT( * ) - - 78 ) ) AS col0
----
3012

skipif mysql # not compatible
query I rowsort label-709
SELECT ALL 42 + + 54 * + ( COALESCE ( 55, - 5 * - COUNT ( * ) - - 78 ) ) AS col0
----
3012

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

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

skipif mysql # not compatible
query I rowsort label-711
SELECT + CAST ( NULL AS REAL ) * - + 36
----
NULL

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

query I rowsort
SELECT - 95 + - ( 57 )
----
-152

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-714
SELECT - COALESCE ( + 98, + 5 + + + ( - - 40 ), - 80 * 43 * + CASE + 39 WHEN + - NULLIF ( + 73, - - 31 ) + ( - AVG ( DISTINCT + - 60 ) ) THEN 46 WHEN - 89 * - CAST( - 46 AS SIGNED ) THEN - ( - + 42 ) * - CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) + - + NULLIF ( - 31, - 75 * - 58 - - - AVG ( + ( - 15 ) ) ) END ) AS col2
----
-98

skipif mysql # not compatible
query I rowsort label-714
SELECT - COALESCE ( + 98, + 5 + + + ( - - 40 ), - 80 * 43 * + CASE + 39 WHEN + - NULLIF ( + 73, - - 31 ) + ( - AVG ( DISTINCT + - 60 ) ) THEN 46 WHEN - 89 * - CAST ( - 46 AS INTEGER ) THEN - ( - + 42 ) * - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) + - + NULLIF ( - 31, - 75 * - 58 - - - AVG ( + ( - 15 ) ) ) END ) AS col2
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-715
SELECT + 94 * + SUM( + 85 )
----
7990

skipif mysql # not compatible
query I rowsort label-715
SELECT + 94 * + SUM ( + 85 )
----
7990

query I rowsort
SELECT ALL - 11 - + 16 AS col0
----
-27

query I rowsort
SELECT + - 17 * - 11 AS col1
----
187

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-719
SELECT + - COUNT( 20 ) - + CAST( - - CAST( NULL AS SIGNED ) AS DECIMAL ) + - - 2 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-719
SELECT + - COUNT ( 20 ) - + CAST ( - - CAST ( NULL AS INTEGER ) AS REAL ) + - - 2 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-720
SELECT + - ( 50 ) * NULLIF ( 30, + + AVG ( - + 31 ) * SUM( + 2 ) ) + - 94 + + + 2 + + 1 - - 82 * 55 + + 87
----
3006

skipif mysql # not compatible
query I rowsort label-720
SELECT + - ( 50 ) * NULLIF ( 30, + + AVG ( - + 31 ) * SUM ( + 2 ) ) + - 94 + + + 2 + + 1 - - 82 * 55 + + 87
----
3006

onlyif mysql # aggregate syntax: 
query I rowsort label-721
SELECT + COUNT( DISTINCT 62 ) * 93
----
93

skipif mysql # not compatible
query I rowsort label-721
SELECT + COUNT ( DISTINCT 62 ) * 93
----
93

query I rowsort
SELECT - 12 * - + 37 + - 62 + + - 22 AS col0
----
360

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-723
SELECT - - 66 * 0 * + CAST( COUNT( * ) AS SIGNED ) AS col0, - COALESCE ( + NULLIF ( 71, ( + 33 ) * - 36 + - + 51 ), + COUNT( * ) - 99 * + ( - - 27 ) )
----
0
-71

skipif mysql # not compatible
query II rowsort label-723
SELECT - - 66 * 0 * + CAST ( COUNT ( * ) AS INTEGER ) AS col0, - COALESCE ( + NULLIF ( 71, ( + 33 ) * - 36 + - + 51 ), + COUNT ( * ) - 99 * + ( - - 27 ) )
----
0
-71

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

onlyif mysql # aggregate syntax: 
query I rowsort label-725
SELECT ALL - ( + NULLIF ( - COUNT( * ), + 18 ) ) * + COUNT( * ) + - - COALESCE ( 64, COUNT( * ) + + + COUNT( * ) + 3 ) + - 50
----
15

skipif mysql # not compatible
query I rowsort label-725
SELECT ALL - ( + NULLIF ( - COUNT ( * ), + 18 ) ) * + COUNT ( * ) + - - COALESCE ( 64, COUNT ( * ) + + + COUNT ( * ) + 3 ) + - 50
----
15

query I rowsort
SELECT + - NULLIF ( - 51, + 85 )
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-727
SELECT - MIN( + 73 ) + + 17 AS col2
----
-56

skipif mysql # not compatible
query I rowsort label-727
SELECT - MIN ( + 73 ) + + 17 AS col2
----
-56

query II rowsort
SELECT ALL + 1 * - + 28 + 52 AS col1, 91 AS col2
----
24
91

query I rowsort
SELECT ALL 29 * + 14 * - - 44 + - + ( + 8 )
----
17856

query I rowsort
SELECT - ( - 36 ) - + NULLIF ( - 11, + - 69 * + 60 + - 46 ) + 36 * + 52 * - 56 * + 61
----
-6394705

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-731
SELECT DISTINCT CASE CAST( + + 5 AS SIGNED ) WHEN - 53 THEN 81 ELSE 96 END
----
96

skipif mysql # not compatible
query I rowsort label-731
SELECT DISTINCT CASE CAST ( + + 5 AS INTEGER ) WHEN - 53 THEN 81 ELSE 96 END
----
96

query I rowsort
SELECT ALL - 14 * - NULLIF ( + 8, - - 31 + - 23 + + - 65 + + 80 )
----
112

onlyif mysql # aggregate syntax: 
query I rowsort label-733
SELECT DISTINCT - 97 * - 43 * - MIN( ALL + 61 )
----
-254431

skipif mysql # not compatible
query I rowsort label-733
SELECT DISTINCT - 97 * - 43 * - MIN ( ALL + 61 )
----
-254431

query I rowsort
SELECT ALL 16 * + 89 + - + 69 AS col1
----
1355

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-736
SELECT ALL + 43 - - NULLIF ( 43, - COUNT( * ) + CAST( NULL AS SIGNED ) ) AS col0
----
86

skipif mysql # not compatible
query I rowsort label-736
SELECT ALL + 43 - - NULLIF ( 43, - COUNT ( * ) + CAST ( NULL AS INTEGER ) ) AS col0
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-737
SELECT - NULLIF ( - COUNT( * ), 93 * + 51 * MAX( - 29 ) - - COUNT( * ) ) + - 4
----
-3

skipif mysql # not compatible
query I rowsort label-737
SELECT - NULLIF ( - COUNT ( * ), 93 * + 51 * MAX ( - 29 ) - - COUNT ( * ) ) + - 4
----
-3

query I rowsort
SELECT DISTINCT ( - 99 ) col1
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-739
SELECT ALL 29 - 56 + + + 3 * + + 66 + ( - - COUNT( * ) )
----
172

skipif mysql # not compatible
query I rowsort label-739
SELECT ALL 29 - 56 + + + 3 * + + 66 + ( - - COUNT ( * ) )
----
172

onlyif mysql # aggregate syntax: 
query I rowsort label-740
SELECT - 35 * - CASE 59 WHEN + + 43 - 20 THEN COUNT( * ) * COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-740
SELECT - 35 * - CASE 59 WHEN + + 43 - 20 THEN COUNT ( * ) * COUNT ( * ) ELSE NULL END
----
NULL

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-743
SELECT + COALESCE ( + ( + 10 ), - - CAST( + 69 AS SIGNED ) + 1 + - + COUNT( * ) * + 46 DIV 98 ) + COUNT( + 53 ), ( - 83 ) AS col2
----
11
-83

skipif mysql # not compatible
query II rowsort label-743
SELECT + COALESCE ( + ( + 10 ), - - CAST ( + 69 AS INTEGER ) + 1 + - + COUNT ( * ) * + 46 / 98 ) + COUNT ( + 53 ), ( - 83 ) AS col2
----
11
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-744
SELECT 11 + + COUNT( * ) - + 18
----
-6

skipif mysql # not compatible
query I rowsort label-744
SELECT 11 + + COUNT ( * ) - + 18
----
-6

onlyif mysql # aggregate syntax: 
query II rowsort label-745
SELECT ALL - 16 * + + SUM( - 45 ) * + 2 + + 43 col1, - 23
----
1483
-23

skipif mysql # not compatible
query II rowsort label-745
SELECT ALL - 16 * + + SUM ( - 45 ) * + 2 + + 43 col1, - 23
----
1483
-23

query I rowsort
SELECT 98 * - 86 AS col1
----
-8428

onlyif mysql # aggregate syntax: 
query I rowsort label-747
SELECT 42 * 94 * COUNT( DISTINCT + 85 )
----
3948

skipif mysql # not compatible
query I rowsort label-747
SELECT 42 * 94 * COUNT ( DISTINCT + 85 )
----
3948

query I rowsort
SELECT - + 44 AS col0
----
-44

onlyif mysql # aggregate syntax: 
query II rowsort label-749
SELECT COUNT( * ), + NULLIF ( ( + 80 ), - - 7 * + MIN( ALL + 87 ) ) col0
----
1
80

skipif mysql # not compatible
query II rowsort label-749
SELECT COUNT ( * ), + NULLIF ( ( + 80 ), - - 7 * + MIN ( ALL + 87 ) ) col0
----
1
80

query I rowsort
SELECT - 64 * + NULLIF ( 44, - + 38 * + + AVG ( DISTINCT + 43 ) )
----
-2816

onlyif mysql # aggregate syntax: 
query I rowsort label-751
SELECT ALL - - SUM( + 94 ) * - + 89 + + 72 AS col2
----
-8294

skipif mysql # not compatible
query I rowsort label-751
SELECT ALL - - SUM ( + 94 ) * - + 89 + + 72 AS col2
----
-8294

onlyif mysql # aggregate syntax: 
query I rowsort label-752
SELECT ( + COUNT( * ) ) + 97 + - - 22 AS col1
----
120

skipif mysql # not compatible
query I rowsort label-752
SELECT ( + COUNT ( * ) ) + 97 + - - 22 AS col1
----
120

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

skipif mysql # not compatible
query I rowsort label-753
SELECT ALL - ( - MAX ( ALL - 58 ) )
----
-58

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

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

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

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

query I rowsort
SELECT DISTINCT - 31 + 48
----
17

onlyif mysql # DIV for integer division: 
query I rowsort label-757
SELECT + 83 - - - 48 - - 86 DIV + 11
----
42

skipif mysql # not compatible
query I rowsort label-757
SELECT + 83 - - - 48 - - 86 / + 11
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-758
SELECT + - MIN( - 8 ) AS col2
----
8

skipif mysql # not compatible
query I rowsort label-758
SELECT + - MIN ( - 8 ) AS col2
----
8

query I rowsort
SELECT 47 * - + 80 col1
----
-3760

onlyif mysql # DIV for integer division: 
query I rowsort label-760
SELECT + + 58 DIV + + 47 + 55 AS col1
----
56

skipif mysql # not compatible
query I rowsort label-760
SELECT + + 58 / + + 47 + 55 AS col1
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-761
SELECT DISTINCT COUNT( * ) + + 58 + + - 75 * 92
----
-6841

skipif mysql # not compatible
query I rowsort label-761
SELECT DISTINCT COUNT ( * ) + + 58 + + - 75 * 92
----
-6841

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-762
SELECT ALL 36 DIV 1 + + 12 - COUNT( * ) AS col1
----
47

skipif mysql # not compatible
query I rowsort label-762
SELECT ALL 36 / 1 + + 12 - COUNT ( * ) AS col1
----
47

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

skipif mysql # not compatible
query I rowsort label-763
SELECT + COUNT ( DISTINCT - 59 ) AS col0
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-764
SELECT ALL + 48 + - 68 - + COUNT( * ) * + 89 DIV + - 6
----
-6

skipif mysql # not compatible
query I rowsort label-764
SELECT ALL + 48 + - 68 - + COUNT ( * ) * + 89 / + - 6
----
-6

query I rowsort
SELECT ( + + 38 ) * 86 + 33 AS col1
----
3301

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-766
SELECT 77 AS col1, 82 + - 4 DIV 33 + COUNT( + CAST( NULL AS SIGNED ) ) AS col0
----
77
82

skipif mysql # not compatible
query II rowsort label-766
SELECT 77 AS col1, 82 + - 4 / 33 + COUNT ( + CAST ( NULL AS INTEGER ) ) AS col0
----
77
82

query I rowsort
SELECT ALL + 55 + + 19 AS col2
----
74

query I rowsort
SELECT 92 * + + 90 * - + 56
----
-463680

query II rowsort
SELECT + 25 AS col0, + 84
----
25
84

onlyif mysql # aggregate syntax: 
query II rowsort label-770
SELECT ALL 7 - - 92 AS col1, COUNT( ALL 57 ) * 45 + - - 20 + SUM( 79 )
----
99
144

skipif mysql # not compatible
query II rowsort label-770
SELECT ALL 7 - - 92 AS col1, COUNT ( ALL 57 ) * 45 + - - 20 + SUM ( 79 )
----
99
144

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

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

query II rowsort
SELECT + 78 AS col0, 49
----
78
49

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

skipif mysql # not compatible
query II rowsort label-773
SELECT 15 AS col2, COUNT ( * ) col2
----
15
1

query II rowsort
SELECT - 36 AS col2, 82 AS col1
----
-36
82

query I rowsort
SELECT ALL 71 - - 98 AS col1
----
169

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-776
SELECT ALL + COUNT( * ) - - - 65 - + - 77 DIV CAST( - - 41 AS SIGNED ) + 18 DIV 47
----
-63

skipif mysql # not compatible
query I rowsort label-776
SELECT ALL + COUNT ( * ) - - - 65 - + - 77 / CAST ( - - 41 AS INTEGER ) + 18 / 47
----
-63

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-777
SELECT DISTINCT 94, - 23 * - + ( + CAST( NULL AS SIGNED ) ) + + 9 AS col0
----
94
NULL

skipif mysql # not compatible
query II rowsort label-777
SELECT DISTINCT 94, - 23 * - + ( + CAST ( NULL AS INTEGER ) ) + + 9 AS col0
----
94
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-779
SELECT ALL + - COUNT( * ) * + 81 + - COALESCE ( - + 46, - MIN( + + 59 ) * + - 23 ) * 57 * 75 col0
----
196569

skipif mysql # not compatible
query I rowsort label-779
SELECT ALL + - COUNT ( * ) * + 81 + - COALESCE ( - + 46, - MIN ( + + 59 ) * + - 23 ) * 57 * 75 col0
----
196569

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-780
SELECT 67 DIV - 44, + 41 + + COALESCE ( 30, - 30, + 72 ) * - CAST( + 37 AS SIGNED ) * 95 AS col1
----
-1
-105409

skipif mysql # not compatible
query II rowsort label-780
SELECT 67 / - 44, + 41 + + COALESCE ( 30, - 30, + 72 ) * - CAST ( + 37 AS INTEGER ) * 95 AS col1
----
-1
-105409

onlyif mysql # DIV for integer division: 
query I rowsort label-781
SELECT + 30 DIV + 70 * 65 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-781
SELECT + 30 / + 70 * 65 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-782
SELECT COUNT( * ) - - + COUNT( * ) + - 13 * 5 * + - 45 * + - 98 * + + 56
----
-16052398

skipif mysql # not compatible
query I rowsort label-782
SELECT COUNT ( * ) - - + COUNT ( * ) + - 13 * 5 * + - 45 * + - 98 * + + 56
----
-16052398

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

skipif mysql # not compatible
query I rowsort label-783
SELECT - ( - + COUNT ( * ) ) / - ( + - 57 ) / - + 10
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-784
SELECT DISTINCT - MIN( DISTINCT - 40 ) AS col2
----
40

skipif mysql # not compatible
query I rowsort label-784
SELECT DISTINCT - MIN ( DISTINCT - 40 ) AS col2
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-785
SELECT 85 + + - COUNT( ALL - + 87 ) + - - 65 * + 46 * 14 AS col1
----
41944

skipif mysql # not compatible
query I rowsort label-785
SELECT 85 + + - COUNT ( ALL - + 87 ) + - - 65 * + 46 * 14 AS col1
----
41944

onlyif mysql # aggregate syntax: 
query I rowsort label-786
SELECT - 37 - - ( - COUNT( * ) )
----
-38

skipif mysql # not compatible
query I rowsort label-786
SELECT - 37 - - ( - COUNT ( * ) )
----
-38

query II rowsort
SELECT + 17, 93 * + + CASE - 57 WHEN + 0 THEN + 66 * ( 68 ) END * - 64 * + 99 + + + 18 col2
----
17
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-788
SELECT + + MIN( - - 62 ) DIV - 91 + - + 45 + - NULLIF ( 81, - - 64 ) - - - 13 + 3 AS col1, 6
----
-136
6

skipif mysql # not compatible
query II rowsort label-788
SELECT + + MIN ( - - 62 ) / - 91 + - + 45 + - NULLIF ( 81, - - 64 ) - - - 13 + 3 AS col1, 6
----
-136
6

onlyif mysql # aggregate syntax: 
query I rowsort label-789
SELECT ALL 48 * 93 + + COUNT( * ) AS col0
----
4465

skipif mysql # not compatible
query I rowsort label-789
SELECT ALL 48 * 93 + + COUNT ( * ) AS col0
----
4465

onlyif mysql # aggregate syntax: 
query I rowsort label-790
SELECT 88 * - - 40 * - COUNT( * ) + 76
----
-3444

skipif mysql # not compatible
query I rowsort label-790
SELECT 88 * - - 40 * - COUNT ( * ) + 76
----
-3444

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-791
SELECT + 12 DIV - - SUM( DISTINCT 75 ) - - 3 + - 81 col0
----
-78

skipif mysql # not compatible
query I rowsort label-791
SELECT + 12 / - - SUM ( DISTINCT 75 ) - - 3 + - 81 col0
----
-78

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

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

query I rowsort
SELECT + 30 + - 54
----
-24

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-794
SELECT ALL + 14 * 51, + CAST( + 1 AS SIGNED ) DIV - 23 * ( - 83 ) - 67 AS col2
----
714
-67

skipif mysql # not compatible
query II rowsort label-794
SELECT ALL + 14 * 51, + CAST ( + 1 AS INTEGER ) / - 23 * ( - 83 ) - 67 AS col2
----
714
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-795
SELECT 89 * - COUNT( ALL + 21 )
----
-89

skipif mysql # not compatible
query I rowsort label-795
SELECT 89 * - COUNT ( ALL + 21 )
----
-89

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-797
SELECT CASE - + 9 WHEN - + ( + COUNT( * ) ) THEN - - 30 * COUNT( * ) * - 15 * COUNT( * ) / + + 13 WHEN 16 THEN - 30 ELSE NULL END / + 32 + + 2 * MIN( DISTINCT 42 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-797
SELECT CASE - + 9 WHEN - + ( + COUNT ( * ) ) THEN - - 30 * COUNT ( * ) * - 15 * COUNT ( * ) / + + 13 WHEN 16 THEN - 30 ELSE NULL END / + 32 + + 2 * MIN ( DISTINCT 42 ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-798
SELECT CAST( NULL AS SIGNED ) * + + 0 col1, - ( 38 ) AS col2
----
NULL
-38

skipif mysql # not compatible
query II rowsort label-798
SELECT CAST ( NULL AS INTEGER ) * + + 0 col1, - ( 38 ) AS col2
----
NULL
-38

onlyif mysql # DIV for integer division: 
query I rowsort label-799
SELECT ALL + 79 DIV + 30
----
2

skipif mysql # not compatible
query I rowsort label-799
SELECT ALL + 79 / + 30
----
2

query I rowsort
SELECT ALL 53 * - - 45 AS col1
----
2385

onlyif mysql # aggregate syntax: 
query I rowsort label-801
SELECT - COUNT( * ) * - 7 + 0 + + ( + 87 ) * + + 29 * + ( - 71 )
----
-179126

skipif mysql # not compatible
query I rowsort label-801
SELECT - COUNT ( * ) * - 7 + 0 + + ( + 87 ) * + + 29 * + ( - 71 )
----
-179126

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-802
SELECT + 94 * 55 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-802
SELECT + 94 * 55 * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-803
SELECT - COUNT( DISTINCT - - CAST( 8 AS DECIMAL ) )
----
-1

skipif mysql # not compatible
query I rowsort label-803
SELECT - COUNT ( DISTINCT - - CAST ( 8 AS REAL ) )
----
-1

query II rowsort
SELECT - 88 + 31, - 12 + - - 89 AS col2
----
-57
77

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-805
SELECT + 58 * 33 col2, + COALESCE ( + 90, 67 - - 46 + - 66 ) * - + 70 - + 91 + + - COUNT( * ) + - 5 + - 3 DIV + - 56 - 42 * + 66 + + 79 + - 26
----
1914
-9116

skipif mysql # not compatible
query II rowsort label-805
SELECT + 58 * 33 col2, + COALESCE ( + 90, 67 - - 46 + - 66 ) * - + 70 - + 91 + + - COUNT ( * ) + - 5 + - 3 / + - 56 - 42 * + 66 + + 79 + - 26
----
1914
-9116

onlyif mysql # aggregate syntax: 
query I rowsort label-806
SELECT - + 5 + 87 * + + NULLIF ( + COUNT( * ), - 83 ) AS col1
----
82

skipif mysql # not compatible
query I rowsort label-806
SELECT - + 5 + 87 * + + NULLIF ( + COUNT ( * ), - 83 ) AS col1
----
82

query I rowsort
SELECT + - CASE - - 5 WHEN ( - 91 ) THEN ( - + 41 ) WHEN + ( - 11 ) + 9 THEN NULL ELSE + 85 * - 38 * + 88 END + - 72
----
284168

query I rowsort
SELECT ALL - + 1 + - 82 AS col1
----
-83

query I rowsort
SELECT + + 19 + 90 + + - 87 * - 35 col0
----
3154

query II rowsort
SELECT DISTINCT CASE + - 4 WHEN 89 THEN NULL WHEN 0 THEN NULL WHEN 74 * + + 0 THEN 16 - + 86 + + 19 * + + 52 END AS col2, 34 AS col2
----
NULL
34

onlyif mysql # aggregate syntax: 
query III rowsort label-811
SELECT ALL + 33 * + 84, 64 AS col0, COUNT( + 28 ) + - NULLIF ( 10, - 81 - + 81 / 91 * ( - MAX( + COALESCE ( - + ( + 38 ), + 18 * + 5 ) ) ) / + 24 ) AS col0
----
2772
64
-9

skipif mysql # not compatible
query III rowsort label-811
SELECT ALL + 33 * + 84, 64 AS col0, COUNT ( + 28 ) + - NULLIF ( 10, - 81 - + 81 / 91 * ( - MAX ( + COALESCE ( - + ( + 38 ), + 18 * + 5 ) ) ) / + 24 ) AS col0
----
2772
64
-9

query I rowsort
SELECT DISTINCT + ( + - 17 ) + - - 71
----
54

query I rowsort
SELECT DISTINCT - 42 + + 32 + - 73 AS col2
----
-83

onlyif mysql # DIV for integer division: 
query I rowsort label-814
SELECT + 52 * - 67 * 34 + - 86 + 86 DIV 82 - + 97 + + - 38 AS col2
----
-118676

skipif mysql # not compatible
query I rowsort label-814
SELECT + 52 * - 67 * 34 + - 86 + 86 / 82 - + 97 + + - 38 AS col2
----
-118676

onlyif mysql # aggregate syntax: 
query II rowsort label-815
SELECT - + 78 + - ( 18 ), - SUM( DISTINCT 94 ) AS col1
----
-96
-94

skipif mysql # not compatible
query II rowsort label-815
SELECT - + 78 + - ( 18 ), - SUM ( DISTINCT 94 ) AS col1
----
-96
-94

query II rowsort
SELECT ALL + - ( + + 48 ) * - 97 * + - ( 70 ) AS col0, 22 col0
----
-325920
22

query I rowsort
SELECT - - 3 + - + 63 AS col2
----
-60

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-818
SELECT DISTINCT + 40 * + 78 AS col1, 24 - + CAST( NULL AS SIGNED ) * + 39
----
3120
NULL

skipif mysql # not compatible
query II rowsort label-818
SELECT DISTINCT + 40 * + 78 AS col1, 24 - + CAST ( NULL AS INTEGER ) * + 39
----
3120
NULL

query I rowsort
SELECT - + ( - 23 ) * 14 + + 22 * 76 AS col1
----
1994

query II rowsort
SELECT - + 12 * + 23, 32 + 19 + 45 AS col2
----
-276
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-821
SELECT ALL - 48 + + SUM( ALL + - 18 ) + CAST( NULL AS SIGNED ) * 98 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-821
SELECT ALL - 48 + + SUM ( ALL + - 18 ) + CAST ( NULL AS INTEGER ) * 98 AS col1
----
NULL

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

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

query II rowsort
SELECT ALL 71 + 3 AS col2, 59 AS col2
----
74
59

onlyif mysql # aggregate syntax: 
query I rowsort label-824
SELECT DISTINCT + SUM( DISTINCT 5 ) AS col0
----
5

skipif mysql # not compatible
query I rowsort label-824
SELECT DISTINCT + SUM ( DISTINCT 5 ) AS col0
----
5

query I rowsort
SELECT ( 70 ) col1
----
70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-826
SELECT 83 DIV - ( + - COUNT( ALL - 24 ) ) + - 0 DIV + 29 * + + 89
----
83

skipif mysql # not compatible
query I rowsort label-826
SELECT 83 / - ( + - COUNT ( ALL - 24 ) ) + - 0 / + 29 * + + 89
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-827
SELECT COALESCE ( - 62, + MAX( ALL + + ( + NULLIF ( 62, 81 ) ) ) * + - 53, + 4, - 22 )
----
-62

skipif mysql # not compatible
query I rowsort label-827
SELECT COALESCE ( - 62, + MAX ( ALL + + ( + NULLIF ( 62, 81 ) ) ) * + - 53, + 4, - 22 )
----
-62

query I rowsort
SELECT + NULLIF ( - 49, - AVG ( 48 ) ) AS col2
----
-49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-829
SELECT DISTINCT + 65 * + SUM( DISTINCT 63 ) * 58 + 98 + + 67 + + 70 + - + 64 * - + CAST( ( + 77 ) AS SIGNED ) + 5
----
242678

skipif mysql # not compatible
query I rowsort label-829
SELECT DISTINCT + 65 * + SUM ( DISTINCT 63 ) * 58 + 98 + + 67 + + 70 + - + 64 * - + CAST ( ( + 77 ) AS INTEGER ) + 5
----
242678

onlyif mysql # aggregate syntax: 
query I rowsort label-830
SELECT - ( COALESCE ( + 77, 15 * - 94 ) ) - - 68 * - COUNT( * ) AS col2
----
-145

skipif mysql # not compatible
query I rowsort label-830
SELECT - ( COALESCE ( + 77, 15 * - 94 ) ) - - 68 * - COUNT ( * ) AS col2
----
-145

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

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

query I rowsort
SELECT ALL + 84 * 86
----
7224

onlyif mysql # aggregate syntax: 
query I rowsort label-833
SELECT NULLIF ( + 85, - MIN( + - ( 61 ) ) ) AS col2
----
85

skipif mysql # not compatible
query I rowsort label-833
SELECT NULLIF ( + 85, - MIN ( + - ( 61 ) ) ) AS col2
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-834
SELECT DISTINCT + MIN( 85 ) AS col1
----
85

skipif mysql # not compatible
query I rowsort label-834
SELECT DISTINCT + MIN ( 85 ) AS col1
----
85

query I rowsort
SELECT + 71 - + - 34
----
105

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-836
SELECT NULLIF ( - + 86, - + 68 ) AS col1, CAST( - MAX( DISTINCT - CAST( NULL AS DECIMAL ) ) AS SIGNED ) + - 44 * 74
----
-86
NULL

skipif mysql # not compatible
query II rowsort label-836
SELECT NULLIF ( - + 86, - + 68 ) AS col1, CAST ( - MAX ( DISTINCT - CAST ( NULL AS REAL ) ) AS INTEGER ) + - 44 * 74
----
-86
NULL

query I rowsort
SELECT + NULLIF ( - 11, - - 71 )
----
-11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-838
SELECT - 0 - - NULLIF ( + MIN( DISTINCT CASE WHEN NOT 18 IS NULL THEN + CAST( - 98 AS SIGNED ) + 90 * 41 END ), + ( - COUNT( * ) ) )
----
3592

skipif mysql # not compatible
query I rowsort label-838
SELECT - 0 - - NULLIF ( + MIN ( DISTINCT CASE WHEN NOT 18 IS NULL THEN + CAST ( - 98 AS INTEGER ) + 90 * 41 END ), + ( - COUNT ( * ) ) )
----
3592

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-839
SELECT + MIN( ALL - ( 96 ) ) DIV 20
----
-4

skipif mysql # not compatible
query I rowsort label-839
SELECT + MIN ( ALL - ( 96 ) ) / 20
----
-4

query II rowsort
SELECT ALL + 61 * 68 + + + 4 * 90 col0, + 79 col0
----
4508
79

query I rowsort
SELECT - 76 * - 71 AS col0
----
5396

query I rowsort
SELECT + 41 * + + 92
----
3772

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-843
SELECT DISTINCT - + CAST( + 87 AS SIGNED ) * ( + 70 ) + SUM( ALL + 89 )
----
-6001

skipif mysql # not compatible
query I rowsort label-843
SELECT DISTINCT - + CAST ( + 87 AS INTEGER ) * ( + 70 ) + SUM ( ALL + 89 )
----
-6001

onlyif mysql # aggregate syntax: 
query I rowsort label-844
SELECT DISTINCT + 32 * - MIN( - 47 ) + - 17
----
1487

skipif mysql # not compatible
query I rowsort label-844
SELECT DISTINCT + 32 * - MIN ( - 47 ) + - 17
----
1487

onlyif mysql # aggregate syntax: 
query II rowsort label-845
SELECT - COUNT( * ) AS col1, 52 + + - 38
----
-1
14

skipif mysql # not compatible
query II rowsort label-845
SELECT - COUNT ( * ) AS col1, 52 + + - 38
----
-1
14

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-849
SELECT - 29 AS col1, - COUNT( * ) * 43
----
-29
-43

skipif mysql # not compatible
query II rowsort label-849
SELECT - 29 AS col1, - COUNT ( * ) * 43
----
-29
-43

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

skipif mysql # not compatible
query I rowsort label-850
SELECT + - COUNT ( * ) + - 97 AS col1
----
-98

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-851
SELECT - 96, - CAST( NULL AS SIGNED ) AS col0
----
-96
NULL

skipif mysql # not compatible
query II rowsort label-851
SELECT - 96, - CAST ( NULL AS INTEGER ) AS col0
----
-96
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-852
SELECT ALL 2 + + + 67 * + 91 * + CASE - ( + 63 ) WHEN + 38 * ( 17 ) THEN NULL WHEN CAST( + + 36 AS SIGNED ) THEN - 42 WHEN - + COALESCE ( CASE - CAST( NULL AS DECIMAL ) WHEN + 28 THEN NULL WHEN 33 THEN - 56 END, 85 * AVG ( + 39 ), - + CAST( - + COUNT( * ) AS SIGNED ) * - - 68 ) - 59 + - - 63 - + - 32 * - AVG ( DISTINCT - 1 ) * + 41 - + - 45 THEN + 90 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-852
SELECT ALL 2 + + + 67 * + 91 * + CASE - ( + 63 ) WHEN + 38 * ( 17 ) THEN NULL WHEN CAST ( + + 36 AS INTEGER ) THEN - 42 WHEN - + COALESCE ( CASE - CAST ( NULL AS REAL ) WHEN + 28 THEN NULL WHEN 33 THEN - 56 END, 85 * AVG ( + 39 ), - + CAST ( - + COUNT ( * ) AS INTEGER ) * - - 68 ) - 59 + - - 63 - + - 32 * - AVG ( DISTINCT - 1 ) * + 41 - + - 45 THEN + 90 ELSE NULL END AS col0
----
NULL

query II rowsort
SELECT + 40 AS col1, 1 AS col0
----
40
1

onlyif mysql # aggregate syntax: 
query I rowsort label-854
SELECT ALL + 83 * 71 + + COUNT( * ) * - - 88 + + 74
----
6055

skipif mysql # not compatible
query I rowsort label-854
SELECT ALL + 83 * 71 + + COUNT ( * ) * - - 88 + + 74
----
6055

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-855
SELECT + CAST( - ( - - 9 ) AS SIGNED ) + + + COUNT( * ) DIV 35 AS col1
----
-9

skipif mysql # not compatible
query I rowsort label-855
SELECT + CAST ( - ( - - 9 ) AS INTEGER ) + + + COUNT ( * ) / 35 AS col1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-856
SELECT - CASE + + ( 46 ) WHEN - COUNT( * ) + - COUNT( * ) + - + 78 * - NULLIF ( + 33, + 87 ) * - 49 * ( - + NULLIF ( + 3, + 78 * 0 ) ) / + 92 THEN + - 64 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-856
SELECT - CASE + + ( 46 ) WHEN - COUNT ( * ) + - COUNT ( * ) + - + 78 * - NULLIF ( + 33, + 87 ) * - 49 * ( - + NULLIF ( + 3, + 78 * 0 ) ) / + 92 THEN + - 64 ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT DISTINCT 87 - 49
----
38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-858
SELECT - NULLIF ( - - CAST( NULL AS SIGNED ), 37 - + 99 ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-858
SELECT - NULLIF ( - - CAST ( NULL AS INTEGER ), 37 - + 99 ) col0
----
NULL

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-861
SELECT 96 DIV - 45 + - - 79 AS col1
----
77

skipif mysql # not compatible
query I rowsort label-861
SELECT 96 / - 45 + - - 79 AS col1
----
77

onlyif mysql # DIV for integer division: 
query I rowsort label-862
SELECT + 72 DIV 5 DIV - + 71 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-862
SELECT + 72 / 5 / - + 71 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-863
SELECT ALL - MAX( DISTINCT + 85 ) * 66
----
-5610

skipif mysql # not compatible
query I rowsort label-863
SELECT ALL - MAX ( DISTINCT + 85 ) * 66
----
-5610

query I rowsort
SELECT ALL + 97 * 23 AS col1
----
2231

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-866
SELECT - 55 * - 5 * - 93 * MAX( + 20 )
----
-511500

skipif mysql # not compatible
query I rowsort label-866
SELECT - 55 * - 5 * - 93 * MAX ( + 20 )
----
-511500

query II rowsort
SELECT DISTINCT 13 * + 60, + 33 + - 26 * - 18 AS col0
----
780
501

onlyif mysql # aggregate syntax: 
query I rowsort label-868
SELECT DISTINCT 89 * COUNT( * ) * + 92
----
8188

skipif mysql # not compatible
query I rowsort label-868
SELECT DISTINCT 89 * COUNT ( * ) * + 92
----
8188

query I rowsort
SELECT ALL 7 * - 66 AS col0
----
-462

query II rowsort
SELECT 8 * 22 AS col0, - 59
----
176
-59

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

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

query I rowsort
SELECT 98 * - 77
----
-7546

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-875
SELECT ALL - CASE + - 48 WHEN + + COUNT( * ) THEN COALESCE ( + + COALESCE ( - 14, - 33 ), - 10 ) END + 4 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-875
SELECT ALL - CASE + - 48 WHEN + + COUNT ( * ) THEN COALESCE ( + + COALESCE ( - 14, - 33 ), - 10 ) END + 4 col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-876
SELECT 14 + SUM( DISTINCT + 57 ) * - 33 AS col0, 53
----
-1867
53

skipif mysql # not compatible
query II rowsort label-876
SELECT 14 + SUM ( DISTINCT + 57 ) * - 33 AS col0, 53
----
-1867
53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-877
SELECT ALL - CASE + 80 WHEN + + 79 - 99 THEN - ( 86 ) WHEN CAST( NULL AS SIGNED ) THEN - 25 ELSE - 57 END
----
57

skipif mysql # not compatible
query I rowsort label-877
SELECT ALL - CASE + 80 WHEN + + 79 - 99 THEN - ( 86 ) WHEN CAST ( NULL AS INTEGER ) THEN - 25 ELSE - 57 END
----
57

query I rowsort
SELECT ALL + 97 + 23 AS col0
----
120

onlyif mysql # aggregate syntax: 
query I rowsort label-879
SELECT + MIN( ALL 45 ) AS col1
----
45

skipif mysql # not compatible
query I rowsort label-879
SELECT + MIN ( ALL 45 ) AS col1
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-880
SELECT ( + COUNT( * ) ) * + 54 + + 56 + - 20 col2
----
90

skipif mysql # not compatible
query I rowsort label-880
SELECT ( + COUNT ( * ) ) * + 54 + + 56 + - 20 col2
----
90

query I rowsort
SELECT DISTINCT - 6 * 2
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-882
SELECT - - CASE + 38 WHEN + 81 + + + 13 THEN + 90 * - COALESCE ( + COUNT( * ), 88 * - + 86 * 98 + - ( + + 93 ) * - 12 / 6 ) / 99 WHEN + 14 + + 76 THEN + - 71 * + ( + + 4 ) ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-882
SELECT - - CASE + 38 WHEN + 81 + + + 13 THEN + 90 * - COALESCE ( + COUNT ( * ), 88 * - + 86 * 98 + - ( + + 93 ) * - 12 / 6 ) / 99 WHEN + 14 + + 76 THEN + - 71 * + ( + + 4 ) ELSE NULL END AS col1
----
NULL

query II rowsort
SELECT 80 + 49, ( 24 ) AS col0
----
129
24

query I rowsort
SELECT - 43 * - + 3 - - 85
----
214

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-885
SELECT - 56 * - + CAST( NULL AS SIGNED ) - NULLIF ( + 27, - - 77 ) * 23
----
NULL

skipif mysql # not compatible
query I rowsort label-885
SELECT - 56 * - + CAST ( NULL AS INTEGER ) - NULLIF ( + 27, - - 77 ) * 23
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-886
SELECT 60 / - 57 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-886
SELECT 60 / - 57 + CAST ( NULL AS INTEGER )
----
NULL

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-888
SELECT ( - 86 ) * CASE + COALESCE ( - 12, - COUNT( * ) ) WHEN - + 56 THEN - 89 WHEN 52 THEN NULL ELSE COALESCE ( ( 35 ), + - 58, 22 ) * 18 / AVG ( + 46 ) + CAST( NULL AS SIGNED ) + + - 77 END * - CASE 46 WHEN - 10 + ( + 46 ) THEN + COUNT( * ) + 58 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-888
SELECT ( - 86 ) * CASE + COALESCE ( - 12, - COUNT ( * ) ) WHEN - + 56 THEN - 89 WHEN 52 THEN NULL ELSE COALESCE ( ( 35 ), + - 58, 22 ) * 18 / AVG ( + 46 ) + CAST ( NULL AS INTEGER ) + + - 77 END * - CASE 46 WHEN - 10 + ( + 46 ) THEN + COUNT ( * ) + 58 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-889
SELECT DISTINCT - - COUNT( * ) DIV 43 + + - 97 + + 59 DIV 71
----
-97

skipif mysql # not compatible
query I rowsort label-889
SELECT DISTINCT - - COUNT ( * ) / 43 + + - 97 + + 59 / 71
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-890
SELECT + 92 * + MAX( - + 39 ) col0
----
-3588

skipif mysql # not compatible
query I rowsort label-890
SELECT + 92 * + MAX ( - + 39 ) col0
----
-3588

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-891
SELECT DISTINCT 71 - - 55, + NULLIF ( - 41, + 34 * + + 6 DIV 26 + - 65 + + - 29 ) + + SUM( - + 69 ) + + + COUNT( * ) - 20 * - ( - ( + 73 ) ) * 96 - - 15 DIV + 9 + + 20 + - 33 + - - 72 AS col1
----
126
-140209

skipif mysql # not compatible
query II rowsort label-891
SELECT DISTINCT 71 - - 55, + NULLIF ( - 41, + 34 * + + 6 / 26 + - 65 + + - 29 ) + + SUM ( - + 69 ) + + + COUNT ( * ) - 20 * - ( - ( + 73 ) ) * 96 - - 15 / + 9 + + 20 + - 33 + - - 72 AS col1
----
126
-140209

onlyif mysql # aggregate syntax: 
query I rowsort label-892
SELECT 29 + + COUNT( 52 ) AS col2
----
30

skipif mysql # not compatible
query I rowsort label-892
SELECT 29 + + COUNT ( 52 ) AS col2
----
30

query I rowsort
SELECT - 59 * 20 AS col0
----
-1180

onlyif mysql # aggregate syntax: 
query I rowsort label-894
SELECT - - ( + SUM( DISTINCT + 58 ) ) AS col1
----
58

skipif mysql # not compatible
query I rowsort label-894
SELECT - - ( + SUM ( DISTINCT + 58 ) ) AS col1
----
58

query II rowsort
SELECT - 53 col1, + 72
----
-53
72

query I rowsort
SELECT 89 + + + 13 + - 51 AS col1
----
51

query I rowsort
SELECT DISTINCT 72 * + 10 * - 72
----
-51840

onlyif mysql # DIV for integer division: 
query II rowsort label-898
SELECT DISTINCT 96 DIV + ( + 85 ), 89 AS col0
----
1
89

skipif mysql # not compatible
query II rowsort label-898
SELECT DISTINCT 96 / + ( + 85 ), 89 AS col0
----
1
89

onlyif mysql # aggregate syntax: 
query II rowsort label-899
SELECT DISTINCT - 40 AS col2, + 44 * 72 * MAX( + - 7 ) + - 64 + - 21 * + 22 AS col0
----
-40
-22702

skipif mysql # not compatible
query II rowsort label-899
SELECT DISTINCT - 40 AS col2, + 44 * 72 * MAX ( + - 7 ) + - 64 + - 21 * + 22 AS col0
----
-40
-22702

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-900
SELECT ALL - 20 * NULLIF ( 71, + 81 - + - 72 + + + CASE - COUNT( * ) WHEN - 98 - + ( + 46 ) + - + CAST( 29 AS SIGNED ) THEN NULL WHEN 17 THEN + 5 - COUNT( * ) ELSE NULL END * + - COUNT( * ) * - 63 )
----
-1420

skipif mysql # not compatible
query I rowsort label-900
SELECT ALL - 20 * NULLIF ( 71, + 81 - + - 72 + + + CASE - COUNT ( * ) WHEN - 98 - + ( + 46 ) + - + CAST ( 29 AS INTEGER ) THEN NULL WHEN 17 THEN + 5 - COUNT ( * ) ELSE NULL END * + - COUNT ( * ) * - 63 )
----
-1420

query I rowsort
SELECT DISTINCT 60 + - 18
----
42

onlyif mysql # DIV for integer division: 
query I rowsort label-902
SELECT 98 DIV + + 22 AS col0
----
4

skipif mysql # not compatible
query I rowsort label-902
SELECT 98 / + + 22 AS col0
----
4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-903
SELECT MAX( + - 79 ) DIV + 95 + ( 38 ) + + ( - 29 ) + - - COUNT( * ) * 29 * - 50 + - - 33 + - 99 AS col2
----
-1507

skipif mysql # not compatible
query I rowsort label-903
SELECT MAX ( + - 79 ) / + 95 + ( 38 ) + + ( - 29 ) + - - COUNT ( * ) * 29 * - 50 + - - 33 + - 99 AS col2
----
-1507

query I rowsort
SELECT ALL 95 + NULLIF ( + 95, + 53 ) AS col1
----
190

query II rowsort
SELECT 43 * + + ( + 14 ) col0, - 8 * - - 42 AS col2
----
602
-336

query I rowsort
SELECT ALL - 3 + - - 97
----
94

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

skipif mysql # not compatible
query I rowsort label-907
SELECT 66 / - 42 - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT ALL 59 + + 19 - + + 39 + + ( ( 20 ) )
----
59

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

query I rowsort
SELECT DISTINCT 52 * 27
----
1404

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-911
SELECT ALL + - MAX( DISTINCT + 9 ) + + - 45 DIV + 98 AS col0
----
-9

skipif mysql # not compatible
query I rowsort label-911
SELECT ALL + - MAX ( DISTINCT + 9 ) + + - 45 / + 98 AS col0
----
-9

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-912
SELECT DISTINCT - - CAST( NULL AS DECIMAL ) + - + 61 * 57 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-912
SELECT DISTINCT - - CAST ( NULL AS REAL ) + - + 61 * 57 AS col0
----
NULL

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

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

query I rowsort
SELECT DISTINCT + 18 + - + 1
----
17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-915
SELECT DISTINCT - CASE + CAST( + + 99 AS SIGNED ) WHEN + 29 / - + ( + COUNT( * ) ) THEN NULL WHEN COUNT( * ) THEN - NULLIF ( - 67, + - MAX( 34 ) + 12 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-915
SELECT DISTINCT - CASE + CAST ( + + 99 AS INTEGER ) WHEN + 29 / - + ( + COUNT ( * ) ) THEN NULL WHEN COUNT ( * ) THEN - NULLIF ( - 67, + - MAX ( 34 ) + 12 ) ELSE NULL END
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-917
SELECT DISTINCT - + CAST( + 24 AS SIGNED ) * - 4
----
96

skipif mysql # not compatible
query I rowsort label-917
SELECT DISTINCT - + CAST ( + 24 AS INTEGER ) * - 4
----
96

onlyif mysql # DIV for integer division: 
query I rowsort label-918
SELECT ALL + 25 - + 87 * 82 DIV - 80
----
114

skipif mysql # not compatible
query I rowsort label-918
SELECT ALL + 25 - + 87 * 82 / - 80
----
114

onlyif mysql # aggregate syntax: 
query I rowsort label-919
SELECT ALL - MAX( ALL + 28 ) * - - 65 + + 62
----
-1758

skipif mysql # not compatible
query I rowsort label-919
SELECT ALL - MAX ( ALL + 28 ) * - - 65 + + 62
----
-1758

query I rowsort
SELECT ALL - - 10 * - + NULLIF ( - - 81, + + 13 ) AS col2
----
-810

onlyif mysql # aggregate syntax: 
query I rowsort label-921
SELECT DISTINCT + - COUNT( * ) - - COUNT( * ) + - 45 + - 5 + + - 50 + + + 24 + + - 60
----
-136

skipif mysql # not compatible
query I rowsort label-921
SELECT DISTINCT + - COUNT ( * ) - - COUNT ( * ) + - 45 + - 5 + + - 50 + + + 24 + + - 60
----
-136

query I rowsort
SELECT DISTINCT - - 85 * + 35 AS col1
----
2975

query I rowsort
SELECT - 90 - + 32
----
-122

query II rowsort
SELECT ALL 37 AS col2, 39 AS col1
----
37
39

query I rowsort
SELECT 54 + 65
----
119

onlyif mysql # aggregate syntax: 
query I rowsort label-926
SELECT CASE + 63 WHEN - 73 THEN - 18 * - MAX( - 54 ) END / COUNT( * ) * + 35 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-926
SELECT CASE + 63 WHEN - 73 THEN - 18 * - MAX ( - 54 ) END / COUNT ( * ) * + 35 AS col1
----
NULL

query I rowsort
SELECT - 47 + - 96 + - 22 AS col2
----
-165

query I rowsort
SELECT + 57 * + 3
----
171

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-929
SELECT + CAST( - + 76 AS SIGNED ) + + SUM( ALL 13 ) col2
----
-63

skipif mysql # not compatible
query I rowsort label-929
SELECT + CAST ( - + 76 AS INTEGER ) + + SUM ( ALL 13 ) col2
----
-63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-930
SELECT ALL MAX( ALL + 81 ) DIV + 66 col2
----
1

skipif mysql # not compatible
query I rowsort label-930
SELECT ALL MAX ( ALL + 81 ) / + 66 col2
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-931
SELECT DISTINCT MAX( DISTINCT + + 90 ) AS col0, - 88
----
90
-88

skipif mysql # not compatible
query II rowsort label-931
SELECT DISTINCT MAX ( DISTINCT + + 90 ) AS col0, - 88
----
90
-88

query I rowsort
SELECT 98 * 54 * + 12 AS col1
----
63504

onlyif mysql # DIV for integer division: 
query I rowsort label-933
SELECT ALL + 34 DIV - 71
----
0

skipif mysql # not compatible
query I rowsort label-933
SELECT ALL + 34 / - 71
----
0

query I rowsort
SELECT DISTINCT NULLIF ( - + 96, + - 38 * 36 / + + 6 )
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-935
SELECT ALL CASE - 23 WHEN ( 67 ) THEN CASE + 9 WHEN + + 97 + 8 + + - COUNT( * ) THEN NULL ELSE - + 15 END ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-935
SELECT ALL CASE - 23 WHEN ( 67 ) THEN CASE + 9 WHEN + + 97 + 8 + + - COUNT ( * ) THEN NULL ELSE - + 15 END ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-936
SELECT ALL 90 + - + 69 + - 50 * + COUNT( * ), 23 AS col0
----
-29
23

skipif mysql # not compatible
query II rowsort label-936
SELECT ALL 90 + - + 69 + - 50 * + COUNT ( * ), 23 AS col0
----
-29
23

query I rowsort
SELECT + 95 + - 70 AS col0
----
25

onlyif mysql # DIV for integer division: 
query I rowsort label-938
SELECT ALL - 61 * 70 DIV 96 AS col2
----
-44

skipif mysql # not compatible
query I rowsort label-938
SELECT ALL - 61 * 70 / 96 AS col2
----
-44

query I rowsort
SELECT - 7 * - 97 col0
----
679

query I rowsort
SELECT DISTINCT 19 + + ( + 71 ) * 88 * - + 37
----
-231157

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-942
SELECT DISTINCT + ( - 76 ) * - + 26 + + COUNT( * ) + - 62
----
1915

skipif mysql # not compatible
query I rowsort label-942
SELECT DISTINCT + ( - 76 ) * - + 26 + + COUNT ( * ) + - 62
----
1915

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-943
SELECT ALL + 95 * - 61 + 27 + - 99 DIV CASE - 45 WHEN + 65 + + CASE - 36 WHEN - 31 * - 51 + COUNT( * ) + + - 26 THEN NULL WHEN - - CAST( NULL AS SIGNED ) DIV + 26 * - 37 + 59 THEN + 18 * - 64 ELSE - - 76 END THEN + + 98 DIV 3 - - ( + COUNT( * ) ) - - - MAX( - - CAST( - 35 AS SIGNED ) ) ELSE 51 + - 30 + - - 90 END
----
-5768

skipif mysql # not compatible
query I rowsort label-943
SELECT ALL + 95 * - 61 + 27 + - 99 / CASE - 45 WHEN + 65 + + CASE - 36 WHEN - 31 * - 51 + COUNT ( * ) + + - 26 THEN NULL WHEN - - CAST ( NULL AS INTEGER ) / + 26 * - 37 + 59 THEN + 18 * - 64 ELSE - - 76 END THEN + + 98 / 3 - - ( + COUNT ( * ) ) - - - MAX ( - - CAST ( - 35 AS INTEGER ) ) ELSE 51 + - 30 + - - 90 END
----
-5768

onlyif mysql # aggregate syntax: 
query I rowsort label-944
SELECT CASE - 19 WHEN - - COUNT( * ) - 52 * - + ( - + 34 ) + 23 * COUNT( * ) THEN 30 END
----
NULL

skipif mysql # not compatible
query I rowsort label-944
SELECT CASE - 19 WHEN - - COUNT ( * ) - 52 * - + ( - + 34 ) + 23 * COUNT ( * ) THEN 30 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-945
SELECT CASE 79 WHEN + CASE - - 58 WHEN + 13 * + + COUNT( * ) - - 37 - 54 THEN NULL ELSE + + 83 * - ( + 80 ) - 8 + - - 9 * - - CAST( NULL AS SIGNED ) * 64 + - 72 END / - - 44 THEN ( - 93 ) WHEN 46 - 92 THEN - 50 ELSE 80 END AS col0
----
80

skipif mysql # not compatible
query I rowsort label-945
SELECT CASE 79 WHEN + CASE - - 58 WHEN + 13 * + + COUNT ( * ) - - 37 - 54 THEN NULL ELSE + + 83 * - ( + 80 ) - 8 + - - 9 * - - CAST ( NULL AS INTEGER ) * 64 + - 72 END / - - 44 THEN ( - 93 ) WHEN 46 - 92 THEN - 50 ELSE 80 END AS col0
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-946
SELECT ALL - COUNT( * ) * + - 64 + ( 81 ) + COUNT( ALL 27 ) AS col2
----
146

skipif mysql # not compatible
query I rowsort label-946
SELECT ALL - COUNT ( * ) * + - 64 + ( 81 ) + COUNT ( ALL 27 ) AS col2
----
146

onlyif mysql # aggregate syntax: 
query I rowsort label-947
SELECT - ( + 11 ) * MIN( DISTINCT + 86 ) * - - NULLIF ( - 37, + 54 ) * NULLIF ( 27, - 17 ) - - COUNT( + + ( 15 ) ) - + 88 + - NULLIF ( + 61, - COUNT( * ) ) - + - 10 + - 98 + - - 34
----
944852

skipif mysql # not compatible
query I rowsort label-947
SELECT - ( + 11 ) * MIN ( DISTINCT + 86 ) * - - NULLIF ( - 37, + 54 ) * NULLIF ( 27, - 17 ) - - COUNT ( + + ( 15 ) ) - + 88 + - NULLIF ( + 61, - COUNT ( * ) ) - + - 10 + - 98 + - - 34
----
944852

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-948
SELECT + + MIN( + 8 ) DIV - + 31
----
0

skipif mysql # not compatible
query I rowsort label-948
SELECT + + MIN ( + 8 ) / - + 31
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-949
SELECT ALL - COUNT( * ) * + 48 - + 69 + - 86 + + ( - ( 89 ) ) * - COUNT( DISTINCT 82 ) + - 11 - 56 AS col1
----
-181

skipif mysql # not compatible
query I rowsort label-949
SELECT ALL - COUNT ( * ) * + 48 - + 69 + - 86 + + ( - ( 89 ) ) * - COUNT ( DISTINCT 82 ) + - 11 - 56 AS col1
----
-181

query I rowsort
SELECT + + 51 * - + 47 + - 20 AS col2
----
-2417

query I rowsort
SELECT + COALESCE ( + + 55, - + 51, - 83 ) AS col0
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-952
SELECT ALL + SUM( DISTINCT - - 13 ) AS col1
----
13

skipif mysql # not compatible
query I rowsort label-952
SELECT ALL + SUM ( DISTINCT - - 13 ) AS col1
----
13

query I rowsort
SELECT + COALESCE ( NULLIF ( - 42, + + 78 ), 78 * 92 * + 83 ) + - ( + 81 )
----
-123

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-954
SELECT ALL + 95 * + - SUM( ( + + 63 ) ) AS col2, CAST( NULL AS SIGNED )
----
-5985
NULL

skipif mysql # not compatible
query II rowsort label-954
SELECT ALL + 95 * + - SUM ( ( + + 63 ) ) AS col2, CAST ( NULL AS INTEGER )
----
-5985
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-955
SELECT ALL + 73 DIV - 78
----
0

skipif mysql # not compatible
query I rowsort label-955
SELECT ALL + 73 / - 78
----
0

query II rowsort
SELECT DISTINCT + + 30 AS col0, - 11 + 44 AS col0
----
30
33

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-957
SELECT + 98, + 19 + - CAST( NULL AS SIGNED ) + - - 85 * COALESCE ( - 72, - 88 ) AS col0
----
98
NULL

skipif mysql # not compatible
query II rowsort label-957
SELECT + 98, + 19 + - CAST ( NULL AS INTEGER ) + - - 85 * COALESCE ( - 72, - 88 ) AS col0
----
98
NULL

query II rowsort
SELECT DISTINCT 26 AS col0, 90
----
26
90

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

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

query I rowsort
SELECT + + 49 * - - 23 * + + 2
----
2254

query I rowsort
SELECT - NULLIF ( - 10, + 42 ) AS col2
----
10

query I rowsort
SELECT - - 69 + 15 AS col1
----
84

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

onlyif mysql # aggregate syntax: 
query I rowsort label-964
SELECT - 68 * + + 73 * MAX( + + 84 ) + COALESCE ( - 7, + - 2, + 93 * + 49 + + - 83 )
----
-416983

skipif mysql # not compatible
query I rowsort label-964
SELECT - 68 * + + 73 * MAX ( + + 84 ) + COALESCE ( - 7, + - 2, + 93 * + 49 + + - 83 )
----
-416983

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-965
SELECT - COALESCE ( + + COUNT( * ), 58, - - 35 ) DIV + COUNT( * ) + 9 AS col1
----
8

skipif mysql # not compatible
query I rowsort label-965
SELECT - COALESCE ( + + COUNT ( * ), 58, - - 35 ) / + COUNT ( * ) + 9 AS col1
----
8

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

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

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

query I rowsort
SELECT ALL NULLIF ( + - 54, + 31 + - 4 )
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-969
SELECT ALL + COUNT( * ) + - SUM( DISTINCT + 5 )
----
-4

skipif mysql # not compatible
query I rowsort label-969
SELECT ALL + COUNT ( * ) + - SUM ( DISTINCT + 5 )
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-970
SELECT DISTINCT - MAX( DISTINCT - 91 ) + - 85 AS col0
----
6

skipif mysql # not compatible
query I rowsort label-970
SELECT DISTINCT - MAX ( DISTINCT - 91 ) + - 85 AS col0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-971
SELECT DISTINCT + 20 + + + 32 + - + CASE - NULLIF ( + + 28, - COUNT( * ) ) WHEN + 98 THEN + - 87 ELSE + COUNT( ALL 12 ) - 84 * + - 95 END
----
-7929

skipif mysql # not compatible
query I rowsort label-971
SELECT DISTINCT + 20 + + + 32 + - + CASE - NULLIF ( + + 28, - COUNT ( * ) ) WHEN + 98 THEN + - 87 ELSE + COUNT ( ALL 12 ) - 84 * + - 95 END
----
-7929

query II rowsort
SELECT - 48 * - 48 AS col0, - 69 * - + 90 AS col2
----
2304
6210

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-975
SELECT DISTINCT + COUNT( * ) + - + 75 AS col1
----
-74

skipif mysql # not compatible
query I rowsort label-975
SELECT DISTINCT + COUNT ( * ) + - + 75 AS col1
----
-74

query I rowsort
SELECT - 53 + - 10 + + + 60 AS col2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-977
SELECT DISTINCT - MIN( ALL - 30 ) + - ( + - 99 ) AS col0
----
129

skipif mysql # not compatible
query I rowsort label-977
SELECT DISTINCT - MIN ( ALL - 30 ) + - ( + - 99 ) AS col0
----
129

query II rowsort
SELECT ALL + 3 + 84 AS col0, - 49
----
87
-49

onlyif mysql # DIV for integer division: 
query II rowsort label-979
SELECT ALL 31 DIV - 38 + - 27 AS col1, + 71 AS col0
----
-27
71

skipif mysql # not compatible
query II rowsort label-979
SELECT ALL 31 / - 38 + - 27 AS col1, + 71 AS col0
----
-27
71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-980
SELECT - 76 + + 90, - CAST( NULL AS SIGNED ) + SUM( ALL CAST( NULL AS SIGNED ) ) AS col0
----
14
NULL

skipif mysql # not compatible
query II rowsort label-980
SELECT - 76 + + 90, - CAST ( NULL AS INTEGER ) + SUM ( ALL CAST ( NULL AS INTEGER ) ) AS col0
----
14
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-981
SELECT DISTINCT - NULLIF ( 67, - - 3 ) * + 17 - + 97 * + - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-981
SELECT DISTINCT - NULLIF ( 67, - - 3 ) * + 17 - + 97 * + - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-982
SELECT DISTINCT - ( + + COUNT( * ) ) DIV - 82 - + COUNT( * ) + + 5 * - 54 * - 40 + - 57 * + COALESCE ( 24, - + 42 )
----
9431

skipif mysql # not compatible
query I rowsort label-982
SELECT DISTINCT - ( + + COUNT ( * ) ) / - 82 - + COUNT ( * ) + + 5 * - 54 * - 40 + - 57 * + COALESCE ( 24, - + 42 )
----
9431

query I rowsort
SELECT DISTINCT 35 * - 87 * + ( + 97 ) AS col0
----
-295365

onlyif mysql # DIV for integer division: 
query I rowsort label-984
SELECT DISTINCT + + 55 DIV + 59 * - 81 - 6 + + 13 AS col0
----
7

skipif mysql # not compatible
query I rowsort label-984
SELECT DISTINCT + + 55 / + 59 * - 81 - 6 + + 13 AS col0
----
7

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

query I rowsort
SELECT ALL + 83 * + 60 col1
----
4980

query I rowsort
SELECT DISTINCT + + 1 col0
----
1

query I rowsort
SELECT + 50 * 92 + + 67 AS col1
----
4667

onlyif mysql # aggregate syntax: 
query I rowsort label-989
SELECT ALL - CASE + 13 WHEN - 37 THEN NULL ELSE - ( - COUNT( + 68 ) ) END * + 85 + - + COUNT( - 65 ) AS col2
----
-86

skipif mysql # not compatible
query I rowsort label-989
SELECT ALL - CASE + 13 WHEN - 37 THEN NULL ELSE - ( - COUNT ( + 68 ) ) END * + 85 + - + COUNT ( - 65 ) AS col2
----
-86

query II rowsort
SELECT + - 78 * + 58 + + 19, 72 AS col2
----
-4505
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-991
SELECT + - ( 57 ) * + 16 * - - 76 * + - MIN( + CAST( NULL AS SIGNED ) ) + + - 10 col2, + 68 * - CASE - - 82 WHEN 92 THEN NULL WHEN 55 THEN NULL WHEN - NULLIF ( + 89, - 99 ) * + - 24 / + 51 + + 89 - + 48 + - 51 - - 2 - CAST( NULL AS SIGNED ) THEN - 78 END * 35 + + COUNT( * ) - + NULLIF ( + - 31, - + COUNT( * ) ) * - COUNT( * ) - 33 col0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-991
SELECT + - ( 57 ) * + 16 * - - 76 * + - MIN ( + CAST ( NULL AS INTEGER ) ) + + - 10 col2, + 68 * - CASE - - 82 WHEN 92 THEN NULL WHEN 55 THEN NULL WHEN - NULLIF ( + 89, - 99 ) * + - 24 / + 51 + + 89 - + 48 + - 51 - - 2 - CAST ( NULL AS INTEGER ) THEN - 78 END * 35 + + COUNT ( * ) - + NULLIF ( + - 31, - + COUNT ( * ) ) * - COUNT ( * ) - 33 col0
----
NULL
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-993
SELECT + + 3 * + - CAST( + + 58 AS SIGNED ) col2
----
-174

skipif mysql # not compatible
query I rowsort label-993
SELECT + + 3 * + - CAST ( + + 58 AS INTEGER ) col2
----
-174

query I rowsort
SELECT ALL + NULLIF ( - 9, 92 / + 24 ) * 1 * - 59 * - 74 + 60
----
-39234

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-995
SELECT - 2, 95 + - 41 DIV + - 99 + 56 + 19 * + 98 * - + COUNT( * ) * - 76 * 43 AS col0
----
-2
6085167

skipif mysql # not compatible
query II rowsort label-995
SELECT - 2, 95 + - 41 / + - 99 + 56 + 19 * + 98 * - + COUNT ( * ) * - 76 * 43 AS col0
----
-2
6085167

onlyif mysql # aggregate syntax: 
query III rowsort label-996
SELECT ALL 84 + + MIN( 74 ) col0, 73 AS col2, + 77
----
158
73
77

skipif mysql # not compatible
query III rowsort label-996
SELECT ALL 84 + + MIN ( 74 ) col0, 73 AS col2, + 77
----
158
73
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-997
SELECT 27 * + + CAST( NULL AS SIGNED ) AS col2
----
NULL

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

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

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

query II rowsort
SELECT DISTINCT 12 AS col1, 37 AS col0
----
12
37

query I rowsort
SELECT 1 + + 38 AS col2
----
39

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

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

query III rowsort
SELECT - 17, COALESCE ( + 83, 44 ) * ( + 9 ) AS col1, 56 col2
----
-17
747
56

onlyif mysql # DIV for integer division: 
query II rowsort label-1003
SELECT 27 AS col1, 96 DIV 17 AS col1
----
27
5

skipif mysql # not compatible
query II rowsort label-1003
SELECT 27 AS col1, 96 / 17 AS col1
----
27
5

query I rowsort
SELECT ALL + 7 + + + 70
----
77

onlyif mysql # aggregate syntax: 
query II rowsort label-1005
SELECT ( + 24 ) + COUNT( * ), + SUM( + 75 ) AS col1
----
25
75

skipif mysql # not compatible
query II rowsort label-1005
SELECT ( + 24 ) + COUNT ( * ), + SUM ( + 75 ) AS col1
----
25
75

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1007
SELECT ALL 18 + 59 + COUNT( * )
----
78

skipif mysql # not compatible
query I rowsort label-1007
SELECT ALL 18 + 59 + COUNT ( * )
----
78

onlyif mysql # DIV for integer division: 
query I rowsort label-1008
SELECT DISTINCT CASE + + 57 WHEN - 22 THEN NULL ELSE + + 39 END DIV + 93 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1008
SELECT DISTINCT CASE + + 57 WHEN - 22 THEN NULL ELSE + + 39 END / + 93 AS col0
----
0

query I rowsort
SELECT ALL + 71 - + ( + + 12 ) * + 75 * + NULLIF ( - 12, - - 40 * - ( - - 16 ) - + 81 ) AS col1
----
10871

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1010
SELECT 42 * MIN( DISTINCT - + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1010
SELECT 42 * MIN ( DISTINCT - + CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT ALL + 99 * - 4
----
-396

onlyif mysql # aggregate syntax: 
query II rowsort label-1012
SELECT DISTINCT + 90 - - COUNT( - - 93 ), + 78 AS col0
----
91
78

skipif mysql # not compatible
query II rowsort label-1012
SELECT DISTINCT + 90 - - COUNT ( - - 93 ), + 78 AS col0
----
91
78

query II rowsort
SELECT 99 AS col1, 43 col1
----
99
43

onlyif mysql # aggregate syntax: 
query II rowsort label-1014
SELECT MIN( 17 ) + + - 99, + 29 + + 10 + + 57 * - - 45 AS col2
----
-82
2604

skipif mysql # not compatible
query II rowsort label-1014
SELECT MIN ( 17 ) + + - 99, + 29 + + 10 + + 57 * - - 45 AS col2
----
-82
2604

query I rowsort
SELECT 32 * - + 17
----
-544

query I rowsort
SELECT 71 + + - 99 AS col2
----
-28

query II rowsort
SELECT DISTINCT - 32 col0, 32
----
-32
32

query II rowsort
SELECT ALL - 24 AS col2, - 57 AS col1
----
-24
-57

onlyif mysql # DIV for integer division: 
query I rowsort label-1019
SELECT + 34 DIV - - ( + 36 ) + - + 3 AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-1019
SELECT + 34 / - - ( + 36 ) + - + 3 AS col2
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1020
SELECT ALL - + 3 DIV + 93 * COUNT( * ) AS col2, - 54 + - + COUNT( * )
----
0
-55

skipif mysql # not compatible
query II rowsort label-1020
SELECT ALL - + 3 / + 93 * COUNT ( * ) AS col2, - 54 + - + COUNT ( * )
----
0
-55

query I rowsort
SELECT ALL + - 91 * 80
----
-7280

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

query I rowsort
SELECT DISTINCT + + 66 * 67 AS col1
----
4422

onlyif mysql # aggregate syntax: 
query II rowsort label-1024
SELECT - MAX( + 35 ) * 89 AS col2, - 20
----
-3115
-20

skipif mysql # not compatible
query II rowsort label-1024
SELECT - MAX ( + 35 ) * 89 AS col2, - 20
----
-3115
-20

query I rowsort
SELECT ALL 53 + + 71
----
124

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1026
SELECT MAX( + CAST( NULL AS SIGNED ) ) + + 21 + + CASE 22 WHEN + - 34 + - 67 THEN NULL WHEN - - ( + 84 ) THEN NULL WHEN + 24 THEN + 70 + 17 END + - - 67 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1026
SELECT MAX ( + CAST ( NULL AS INTEGER ) ) + + 21 + + CASE 22 WHEN + - 34 + - 67 THEN NULL WHEN - - ( + 84 ) THEN NULL WHEN + 24 THEN + 70 + 17 END + - - 67 col0
----
NULL

query I rowsort
SELECT 29 + - 50
----
-21

query I rowsort
SELECT ALL - 30 + + 90 AS col1
----
60

query I rowsort
SELECT - + 23 * - 82 + 10
----
1896

query I rowsort
SELECT ALL + - 24 + - - 0 AS col0
----
-24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1031
SELECT - COUNT( * ) * - + 53 + + 80 DIV - + ( - - 65 ) AS col1
----
52

skipif mysql # not compatible
query I rowsort label-1031
SELECT - COUNT ( * ) * - + 53 + + 80 / - + ( - - 65 ) AS col1
----
52

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

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

query I rowsort
SELECT ALL 78 + - 32 AS col0
----
46

query I rowsort
SELECT 98 * + - 36
----
-3528

query I rowsort
SELECT 12 * - 44 + 7
----
-521

onlyif mysql # DIV for integer division: 
query I rowsort label-1036
SELECT 17 DIV - 93
----
0

skipif mysql # not compatible
query I rowsort label-1036
SELECT 17 / - 93
----
0

query I rowsort
SELECT DISTINCT 66 - + COALESCE ( + 62, - + 96 * 1, 80 )
----
4

query I rowsort
SELECT DISTINCT 77 * - - 14
----
1078

onlyif mysql # aggregate syntax: 
query I rowsort label-1039
SELECT DISTINCT NULLIF ( - 95, - 49 ) * ( - + COUNT( * ) ) + - ( - 58 ) - 63 AS col0
----
90

skipif mysql # not compatible
query I rowsort label-1039
SELECT DISTINCT NULLIF ( - 95, - 49 ) * ( - + COUNT ( * ) ) + - ( - 58 ) - 63 AS col0
----
90

query I rowsort
SELECT ALL 95 * + - 97 * - 66 AS col2
----
608190

query II rowsort
SELECT 43 * + 62 AS col0, - 94 + 36
----
2666
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-1042
SELECT DISTINCT - 31 DIV 88
----
0

skipif mysql # not compatible
query I rowsort label-1042
SELECT DISTINCT - 31 / 88
----
0

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1044
SELECT 77 * - 33 AS col0, 18 DIV - 48 AS col0
----
-2541
0

skipif mysql # not compatible
query II rowsort label-1044
SELECT 77 * - 33 AS col0, 18 / - 48 AS col0
----
-2541
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1045
SELECT MAX( ALL - 97 ) - - MIN( ( + + 20 ) ) + + 60 * + ( - 72 ) AS col1
----
-4397

skipif mysql # not compatible
query I rowsort label-1045
SELECT MAX ( ALL - 97 ) - - MIN ( ( + + 20 ) ) + + 60 * + ( - 72 ) AS col1
----
-4397

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1046
SELECT ALL CAST( - 95 AS SIGNED ) * - 78 + + 56 + 55 AS col1
----
7521

skipif mysql # not compatible
query I rowsort label-1046
SELECT ALL CAST ( - 95 AS INTEGER ) * - 78 + + 56 + 55 AS col1
----
7521

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1048
SELECT DISTINCT - NULLIF ( + 57, - CASE + 93 WHEN + + ( - 97 ) THEN - 72 + 32 WHEN 7 THEN - + 44 + - 52 + CAST( NULL AS SIGNED ) + + 47 * - - 18 * + 75 ELSE NULL END ) * + + 28
----
-1596

skipif mysql # not compatible
query I rowsort label-1048
SELECT DISTINCT - NULLIF ( + 57, - CASE + 93 WHEN + + ( - 97 ) THEN - 72 + 32 WHEN 7 THEN - + 44 + - 52 + CAST ( NULL AS INTEGER ) + + 47 * - - 18 * + 75 ELSE NULL END ) * + + 28
----
-1596

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1049
SELECT CASE NULLIF ( + - COALESCE ( - 44, + + 9 ), - - 15 ) WHEN 10 THEN + 19 ELSE + + 69 + + + 39 END + CAST( - + 32 AS SIGNED )
----
76

skipif mysql # not compatible
query I rowsort label-1049
SELECT CASE NULLIF ( + - COALESCE ( - 44, + + 9 ), - - 15 ) WHEN 10 THEN + 19 ELSE + + 69 + + + 39 END + CAST ( - + 32 AS INTEGER )
----
76

query I rowsort
SELECT ALL - + 76 * 84 AS col0
----
-6384

query I rowsort
SELECT 28 * - - 70 + 92 + + 73
----
2125

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1052
SELECT COUNT( * ) / - 42 + + + CAST( NULL AS DECIMAL ) * - - 74 * 70
----
NULL

skipif mysql # not compatible
query I rowsort label-1052
SELECT COUNT ( * ) / - 42 + + + CAST ( NULL AS REAL ) * - - 74 * 70
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1053
SELECT ALL - 48 * + 41 + - 83 + - 2 * - CASE SUM( - 64 ) WHEN + 44 / + 50 THEN NULL ELSE - 69 + ( + ( 62 ) ) END + + 14
----
-2051

skipif mysql # not compatible
query I rowsort label-1053
SELECT ALL - 48 * + 41 + - 83 + - 2 * - CASE SUM ( - 64 ) WHEN + 44 / + 50 THEN NULL ELSE - 69 + ( + ( 62 ) ) END + + 14
----
-2051

query I rowsort
SELECT + 7 * - 91 + + 44
----
-593

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1055
SELECT DISTINCT - 34 DIV + 18 + + 12 + COUNT( * ) AS col1, + 12 col0
----
12
12

skipif mysql # not compatible
query II rowsort label-1055
SELECT DISTINCT - 34 / + 18 + + 12 + COUNT ( * ) AS col1, + 12 col0
----
12
12

query I rowsort
SELECT ALL - 1 * 55 AS col2
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-1057
SELECT DISTINCT 21 * + - COUNT( * ) + + - 20 AS col2
----
-41

skipif mysql # not compatible
query I rowsort label-1057
SELECT DISTINCT 21 * + - COUNT ( * ) + + - 20 AS col2
----
-41

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1059
SELECT - 57 * CAST( + 68 AS SIGNED ) * 22 - + 2 AS col1
----
-85274

skipif mysql # not compatible
query I rowsort label-1059
SELECT - 57 * CAST ( + 68 AS INTEGER ) * 22 - + 2 AS col1
----
-85274

onlyif mysql # aggregate syntax: 
query I rowsort label-1060
SELECT ALL - ( - MAX( 3 ) ) * NULLIF ( + - 46, + 58 * 59 - - - 44 + 65 * 97 ) + - 30 - 15 AS col2
----
-183

skipif mysql # not compatible
query I rowsort label-1060
SELECT ALL - ( - MAX ( 3 ) ) * NULLIF ( + - 46, + 58 * 59 - - - 44 + 65 * 97 ) + - 30 - 15 AS col2
----
-183

onlyif mysql # aggregate syntax: 
query I rowsort label-1061
SELECT ALL + - COUNT( * ) * + + NULLIF ( 96, + 63 * + - 3 + + 84 ) + - + CASE NULLIF ( 30, - + 93 + - 66 ) WHEN + 4 / + 35 + 82 * COUNT( * ) / + 69 * 4 + 67 * - 38 / - 2 + - 73 THEN NULL WHEN - 37 THEN + 72 * + + 41 ELSE NULL END * + 34
----
NULL

skipif mysql # not compatible
query I rowsort label-1061
SELECT ALL + - COUNT ( * ) * + + NULLIF ( 96, + 63 * + - 3 + + 84 ) + - + CASE NULLIF ( 30, - + 93 + - 66 ) WHEN + 4 / + 35 + 82 * COUNT ( * ) / + 69 * 4 + 67 * - 38 / - 2 + - 73 THEN NULL WHEN - 37 THEN + 72 * + + 41 ELSE NULL END * + 34
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1062
SELECT ALL - COUNT( * ) + + - 80 + - 44 AS col0
----
-125

skipif mysql # not compatible
query I rowsort label-1062
SELECT ALL - COUNT ( * ) + + - 80 + - 44 AS col0
----
-125

query I rowsort
SELECT - 75 * - 40 - + 40 col1
----
2960

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1064
SELECT ALL + 71 - + 13 DIV + ( + 53 ) - + - COUNT( + 5 ) * COUNT( * ) * - 22 * + - 47
----
1105

skipif mysql # not compatible
query I rowsort label-1064
SELECT ALL + 71 - + 13 / + ( + 53 ) - + - COUNT ( + 5 ) * COUNT ( * ) * - 22 * + - 47
----
1105

query I rowsort
SELECT ALL - 16 * - - 91
----
-1456

onlyif mysql # aggregate syntax: 
query I rowsort label-1066
SELECT - 31 * + ( - MIN( ALL + 79 ) ) AS col1
----
2449

skipif mysql # not compatible
query I rowsort label-1066
SELECT - 31 * + ( - MIN ( ALL + 79 ) ) AS col1
----
2449

query I rowsort
SELECT DISTINCT COALESCE ( - ( + 7 ), 85 * + 77 * 28, - 91 )
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-1068
SELECT DISTINCT - SUM( 90 ) - + + 99 col0
----
-189

skipif mysql # not compatible
query I rowsort label-1068
SELECT DISTINCT - SUM ( 90 ) - + + 99 col0
----
-189

query I rowsort
SELECT + 65 * 50 * + 90 AS col0
----
292500

query I rowsort
SELECT - 77 + + + 96
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-1071
SELECT + 83 - - - SUM( ALL - 82 ) AS col0
----
165

skipif mysql # not compatible
query I rowsort label-1071
SELECT + 83 - - - SUM ( ALL - 82 ) AS col0
----
165

onlyif mysql # aggregate syntax: 
query I rowsort label-1072
SELECT - 53 + ( - MIN( - 75 ) ) AS col0
----
22

skipif mysql # not compatible
query I rowsort label-1072
SELECT - 53 + ( - MIN ( - 75 ) ) AS col0
----
22

query II rowsort
SELECT DISTINCT 82, 46 AS col1
----
82
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1074
SELECT + 47 + + - 98 + + 87 AS col2, - ( - 4 ) + - - 51 * 97 * + 68 * + ( - 27 ) * + CAST( 84 AS SIGNED ) + COUNT( * )
----
36
-762946123

skipif mysql # not compatible
query II rowsort label-1074
SELECT + 47 + + - 98 + + 87 AS col2, - ( - 4 ) + - - 51 * 97 * + 68 * + ( - 27 ) * + CAST ( 84 AS INTEGER ) + COUNT ( * )
----
36
-762946123

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1075
SELECT + NULLIF ( - CAST( NULL AS SIGNED ), 57 ) + + 62
----
NULL

skipif mysql # not compatible
query I rowsort label-1075
SELECT + NULLIF ( - CAST ( NULL AS INTEGER ), 57 ) + + 62
----
NULL

query I rowsort
SELECT ALL 35 * + 17
----
595

onlyif mysql # aggregate syntax: 
query I rowsort label-1077
SELECT - CASE - + 5 WHEN - 54 + - MIN( - 78 ) THEN - - 40 WHEN - 3 * - 33 + + - 3 THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1077
SELECT - CASE - + 5 WHEN - 54 + - MIN ( - 78 ) THEN - - 40 WHEN - 3 * - 33 + + - 3 THEN NULL END AS col1
----
NULL

query I rowsort
SELECT + 99 + - 52 * + - 3 AS col0
----
255

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1080
SELECT ALL 23 * - COUNT( * ) * + 47 col1
----
-1081

skipif mysql # not compatible
query I rowsort label-1080
SELECT ALL 23 * - COUNT ( * ) * + 47 col1
----
-1081

query I rowsort
SELECT DISTINCT 29 + 92
----
121

query I rowsort
SELECT + 63 * - 46 AS col1
----
-2898

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1083
SELECT + SUM( ALL 18 ) DIV 4
----
4

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

query I rowsort
SELECT + 45 + + 57
----
102

query I rowsort
SELECT - 63 * + 38 AS col0
----
-2394

onlyif mysql # DIV for integer division: 
query I rowsort label-1086
SELECT ALL 86 DIV 55 + + 28
----
29

skipif mysql # not compatible
query I rowsort label-1086
SELECT ALL 86 / 55 + + 28
----
29

onlyif mysql # DIV for integer division: 
query I rowsort label-1087
SELECT ALL 54 DIV 96 + 89 * - 7 AS col1
----
-623

skipif mysql # not compatible
query I rowsort label-1087
SELECT ALL 54 / 96 + 89 * - 7 AS col1
----
-623

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

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

query I rowsort
SELECT ALL - 10 * - 5
----
50

query I rowsort
SELECT + 27 * - 5 AS col2
----
-135

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1091
SELECT ALL 23 DIV 94 + - SUM( - 43 )
----
43

skipif mysql # not compatible
query I rowsort label-1091
SELECT ALL 23 / 94 + - SUM ( - 43 )
----
43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1092
SELECT ALL + CASE + CAST( 89 AS SIGNED ) WHEN - 29 THEN NULL ELSE COALESCE ( COUNT( * ), + 96, - ( CAST( NULL AS SIGNED ) ) ) END
----
1

skipif mysql # not compatible
query I rowsort label-1092
SELECT ALL + CASE + CAST ( 89 AS INTEGER ) WHEN - 29 THEN NULL ELSE COALESCE ( COUNT ( * ), + 96, - ( CAST ( NULL AS INTEGER ) ) ) END
----
1

query I rowsort
SELECT ALL - 1 * + 0 + 71 * + 43
----
3053

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1096
SELECT DISTINCT - 74 * 31 + - COUNT( * ) * COUNT( * )
----
-2295

skipif mysql # not compatible
query I rowsort label-1096
SELECT DISTINCT - 74 * 31 + - COUNT ( * ) * COUNT ( * )
----
-2295

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

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

query I rowsort
SELECT - 73 + + 58 * + 99
----
5669

onlyif mysql # aggregate syntax: 
query I rowsort label-1099
SELECT ( + SUM( DISTINCT - 91 ) ) AS col1
----
-91

skipif mysql # not compatible
query I rowsort label-1099
SELECT ( + SUM ( DISTINCT - 91 ) ) AS col1
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-1100
SELECT ALL + MIN( DISTINCT - 90 ) AS col2
----
-90

skipif mysql # not compatible
query I rowsort label-1100
SELECT ALL + MIN ( DISTINCT - 90 ) AS col2
----
-90

onlyif mysql # DIV for integer division: 
query I rowsort label-1101
SELECT COALESCE ( - 71, + 6 DIV + 98 )
----
-71

skipif mysql # not compatible
query I rowsort label-1101
SELECT COALESCE ( - 71, + 6 / + 98 )
----
-71

query I rowsort
SELECT - 37 + 98 AS col0
----
61

onlyif mysql # DIV for integer division: 
query I rowsort label-1103
SELECT ALL + 48 DIV + 29 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1103
SELECT ALL + 48 / + 29 AS col1
----
1

query I rowsort
SELECT - 13 + + 73 AS col2
----
60

query I rowsort
SELECT DISTINCT + 30 * - ( + 55 * - 50 )
----
82500

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1106
SELECT DISTINCT + COUNT( DISTINCT + 99 ) DIV 67
----
0

skipif mysql # not compatible
query I rowsort label-1106
SELECT DISTINCT + COUNT ( DISTINCT + 99 ) / 67
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1108
SELECT - SUM( ALL 2 ) + 52 AS col1
----
50

skipif mysql # not compatible
query I rowsort label-1108
SELECT - SUM ( ALL 2 ) + 52 AS col1
----
50

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

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

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

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

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

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

query I rowsort
SELECT - 77 * 61 AS col0
----
-4697

query I rowsort
SELECT DISTINCT - 67 * 63 AS col2
----
-4221

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1114
SELECT ALL CAST( 89 AS SIGNED ) AS col0
----
89

skipif mysql # not compatible
query I rowsort label-1114
SELECT ALL CAST ( 89 AS INTEGER ) AS col0
----
89

query I rowsort
SELECT DISTINCT - 58 * - 43
----
2494

query I rowsort
SELECT ALL - 86 * + 32
----
-2752

query I rowsort
SELECT - 41 + 5 col1
----
-36

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

skipif mysql # not compatible
query I rowsort label-1118
SELECT ALL - 50 + COUNT ( * ) AS col1
----
-49

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1120
SELECT - CASE 62 WHEN 23 THEN 79 + ( - 22 + COUNT( * ) ) WHEN 78 THEN NULL ELSE + 52 * - 49 END - + 84 AS col2
----
2464

skipif mysql # not compatible
query I rowsort label-1120
SELECT - CASE 62 WHEN 23 THEN 79 + ( - 22 + COUNT ( * ) ) WHEN 78 THEN NULL ELSE + 52 * - 49 END - + 84 AS col2
----
2464

query I rowsort
SELECT DISTINCT + 17 + - 25
----
-8

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

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

query I rowsort
SELECT ALL + 25 + - 83
----
-58

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

skipif mysql # not compatible
query I rowsort label-1124
SELECT DISTINCT + 56 + + COUNT ( DISTINCT 96 ) AS col0
----
57

query I rowsort
SELECT - 80 - 8 AS col2
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-1126
SELECT ALL ( + MAX( DISTINCT ( - 79 ) ) ) * 82
----
-6478

skipif mysql # not compatible
query I rowsort label-1126
SELECT ALL ( + MAX ( DISTINCT ( - 79 ) ) ) * 82
----
-6478

query I rowsort
SELECT DISTINCT + 76 + - 62 * + 49 col1
----
-2962

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1128
SELECT ALL ( - CAST( NULL AS DECIMAL ) ) + COUNT( * ) AS col2
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1129
SELECT NULLIF ( + 18, - COUNT( * ) ) * 34
----
612

skipif mysql # not compatible
query I rowsort label-1129
SELECT NULLIF ( + 18, - COUNT ( * ) ) * 34
----
612

query I rowsort
SELECT + 30 - 54
----
-24

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1133
SELECT ALL COUNT( * ) - 75
----
-74

skipif mysql # not compatible
query I rowsort label-1133
SELECT ALL COUNT ( * ) - 75
----
-74

query I rowsort
SELECT DISTINCT - 49 - - 83 * - ( - 2 )
----
117

onlyif mysql # aggregate syntax: 
query I rowsort label-1135
SELECT + MIN( + 27 ) * 54 AS col1
----
1458

skipif mysql # not compatible
query I rowsort label-1135
SELECT + MIN ( + 27 ) * 54 AS col1
----
1458

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

skipif mysql # not compatible
query I rowsort label-1136
SELECT DISTINCT - ( + COUNT ( * ) ) * 70 AS col1
----
-70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1137
SELECT DISTINCT COUNT( CAST( 96 AS SIGNED ) ) - 61 * - 79 AS col1
----
4820

skipif mysql # not compatible
query I rowsort label-1137
SELECT DISTINCT COUNT ( CAST ( 96 AS INTEGER ) ) - 61 * - 79 AS col1
----
4820

query I rowsort
SELECT ALL + 44 * - 6 AS col1
----
-264

query I rowsort
SELECT 81 * + 24 * - 29 + - 53
----
-56429

query I rowsort
SELECT ALL ( - 90 ) * 78 AS col1
----
-7020

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1141
SELECT COALESCE ( + 23, 8 * CAST( NULL AS SIGNED ) + - NULLIF ( + 15, - 67 * - 75 + - ( CASE + NULLIF ( COUNT( * ), - COUNT( - ( 10 ) ) ) WHEN 12 THEN NULL WHEN NULLIF ( + COUNT( * ), - 25 ) THEN + 4 / - 21 ELSE NULL END ) ) * 29 ) * 96
----
2208

skipif mysql # not compatible
query I rowsort label-1141
SELECT COALESCE ( + 23, 8 * CAST ( NULL AS INTEGER ) + - NULLIF ( + 15, - 67 * - 75 + - ( CASE + NULLIF ( COUNT ( * ), - COUNT ( - ( 10 ) ) ) WHEN 12 THEN NULL WHEN NULLIF ( + COUNT ( * ), - 25 ) THEN + 4 / - 21 ELSE NULL END ) ) * 29 ) * 96
----
2208

query I rowsort
SELECT ALL ( - 63 ) * - 10 col0
----
630

query I rowsort
SELECT 42 - 35 AS col1
----
7

query I rowsort
SELECT ALL ( + + 6 ) * 76 AS col1
----
456

query I rowsort
SELECT DISTINCT 71 + + 13
----
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1146
SELECT DISTINCT CAST( NULL AS SIGNED ) + 43 + 16 * 24 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1146
SELECT DISTINCT CAST ( NULL AS INTEGER ) + 43 + 16 * 24 AS col0
----
NULL

query I rowsort
SELECT DISTINCT + 0 + + + 29
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-1148
SELECT ALL + SUM( DISTINCT + 83 ) + 13 AS col0
----
96

skipif mysql # not compatible
query I rowsort label-1148
SELECT ALL + SUM ( DISTINCT + 83 ) + 13 AS col0
----
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1149
SELECT COUNT( * ) * - + COALESCE ( - 37, COUNT( + CAST( NULL AS SIGNED ) ) ) + 97 DIV 19
----
42

skipif mysql # not compatible
query I rowsort label-1149
SELECT COUNT ( * ) * - + COALESCE ( - 37, COUNT ( + CAST ( NULL AS INTEGER ) ) ) + 97 / 19
----
42

query I rowsort
SELECT 87 - + 37 * - 9 AS col2
----
420

query I rowsort
SELECT DISTINCT + 91 * + 89 * + 2
----
16198

onlyif mysql # aggregate syntax: 
query I rowsort label-1152
SELECT 61 + + + MIN( ALL COALESCE ( - 83, + 21, 32 + - 33 ) ) AS col2
----
-22

skipif mysql # not compatible
query I rowsort label-1152
SELECT 61 + + + MIN ( ALL COALESCE ( - 83, + 21, 32 + - 33 ) ) AS col2
----
-22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1153
SELECT ALL + - 69 + + + ( - 32 ) * CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1153
SELECT ALL + - 69 + + + ( - 32 ) * CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT + 12 * + ( - 22 )
----
-264

onlyif mysql # aggregate syntax: 
query I rowsort label-1155
SELECT ALL + ( - + COUNT( * ) ) + - COUNT( ALL + NULLIF ( 72, - 31 ) ) AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-1155
SELECT ALL + ( - + COUNT ( * ) ) + - COUNT ( ALL + NULLIF ( 72, - 31 ) ) AS col0
----
-2

query I rowsort
SELECT - 51 + - 68 * - 32
----
2125

query I rowsort
SELECT DISTINCT + 27 + 81 AS col2
----
108

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1158
SELECT DISTINCT ( - - COUNT( ALL CAST( NULL AS SIGNED ) ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1158
SELECT DISTINCT ( - - COUNT ( ALL CAST ( NULL AS INTEGER ) ) ) AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1159
SELECT DISTINCT - + 44 + 73 + NULLIF ( COALESCE ( 65, - 3 * 64 - 79 ) + COUNT( * ) / + ( - 1 + 95 / - CAST( NULL AS SIGNED ) ), 72 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1159
SELECT DISTINCT - + 44 + 73 + NULLIF ( COALESCE ( 65, - 3 * 64 - 79 ) + COUNT ( * ) / + ( - 1 + 95 / - CAST ( NULL AS INTEGER ) ), 72 )
----
NULL

query I rowsort
SELECT ALL - 14 - - 10 + + 89 * - 85 AS col0
----
-7569

onlyif mysql # aggregate syntax: 
query I rowsort label-1161
SELECT 83 + COUNT( * ) * 71 AS col1
----
154

skipif mysql # not compatible
query I rowsort label-1161
SELECT 83 + COUNT ( * ) * 71 AS col1
----
154

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

skipif mysql # not compatible
query I rowsort label-1162
SELECT + CAST ( NULL AS INTEGER ) / 28
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1163
SELECT CAST( NULL AS SIGNED ) + COUNT( * ) + 21 * 31 / 87 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1163
SELECT CAST ( NULL AS INTEGER ) + COUNT ( * ) + 21 * 31 / 87 AS col1
----
NULL

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

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

query I rowsort
SELECT ALL - - NULLIF ( 29, - 0 - - 24 ) - 37
----
-8

onlyif mysql # DIV for integer division: 
query I rowsort label-1166
SELECT - 68 DIV + - 3 + 15 + 79
----
116

skipif mysql # not compatible
query I rowsort label-1166
SELECT - 68 / + - 3 + 15 + 79
----
116

query I rowsort
SELECT 21 * + - 32 AS col0
----
-672

query I rowsort
SELECT ALL 20 * + 48 * + 5 + 80 * - 4
----
4480

query I rowsort
SELECT 52 + + + 56 * + 60 AS col2
----
3412

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1170
SELECT ALL + + MAX( ALL - 48 ) DIV - SUM( ALL - 69 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1170
SELECT ALL + + MAX ( ALL - 48 ) / - SUM ( ALL - 69 ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1171
SELECT ALL - + COALESCE ( 39, 39 * - NULLIF ( + 84 * - MIN( 76 ), 23 ) ) col2
----
-39

skipif mysql # not compatible
query I rowsort label-1171
SELECT ALL - + COALESCE ( 39, 39 * - NULLIF ( + 84 * - MIN ( 76 ), 23 ) ) col2
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-1172
SELECT + 93 * + COUNT( * ) + 76
----
169

skipif mysql # not compatible
query I rowsort label-1172
SELECT + 93 * + COUNT ( * ) + 76
----
169

onlyif mysql # aggregate syntax: 
query I rowsort label-1173
SELECT ALL + NULLIF ( + 23, MAX( ALL + 95 ) ) * + 90
----
2070

skipif mysql # not compatible
query I rowsort label-1173
SELECT ALL + NULLIF ( + 23, MAX ( ALL + 95 ) ) * + 90
----
2070

query I rowsort
SELECT + 17 * - 83 * 91 AS col0
----
-128401

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1175
SELECT 76 DIV - COUNT( * ) - COUNT( * ) * - 12
----
-64

skipif mysql # not compatible
query I rowsort label-1175
SELECT 76 / - COUNT ( * ) - COUNT ( * ) * - 12
----
-64

query I rowsort
SELECT DISTINCT 13 * + 35 AS col0
----
455

onlyif mysql # aggregate syntax: 
query I rowsort label-1177
SELECT - COUNT( * ) * + 7 + + - 74 AS col0
----
-81

skipif mysql # not compatible
query I rowsort label-1177
SELECT - COUNT ( * ) * + 7 + + - 74 AS col0
----
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-1178
SELECT 26 DIV + 66
----
0

skipif mysql # not compatible
query I rowsort label-1178
SELECT 26 / + 66
----
0

query I rowsort
SELECT 62 + + ( 50 ) + 37
----
149

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

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

query I rowsort
SELECT ( + 98 ) * + - 36 * + 15 + 39
----
-52881

onlyif mysql # DIV for integer division: 
query I rowsort label-1182
SELECT - 50 DIV - 14 + - 75
----
-72

skipif mysql # not compatible
query I rowsort label-1182
SELECT - 50 / - 14 + - 75
----
-72

query I rowsort
SELECT 52 + - - 67 AS col2
----
119

onlyif mysql # aggregate syntax: 
query I rowsort label-1184
SELECT ALL 30 + + COUNT( + 46 ) - 34 AS col0
----
-3

skipif mysql # not compatible
query I rowsort label-1184
SELECT ALL 30 + + COUNT ( + 46 ) - 34 AS col0
----
-3

query I rowsort
SELECT ALL 94 * 48 AS col0
----
4512

query I rowsort
SELECT + 62 * + 19 + + ( 24 )
----
1202

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1188
SELECT ALL 12 + + - ( + + 28 ) - + COUNT( * )
----
-17

skipif mysql # not compatible
query I rowsort label-1188
SELECT ALL 12 + + - ( + + 28 ) - + COUNT ( * )
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-1189
SELECT ALL - COUNT( 73 ) + 66 AS col2
----
65

skipif mysql # not compatible
query I rowsort label-1189
SELECT ALL - COUNT ( 73 ) + 66 AS col2
----
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1190
SELECT CAST( NULL AS SIGNED ) * + ( + 63 ) + + 40 * SUM( DISTINCT - 81 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1190
SELECT CAST ( NULL AS INTEGER ) * + ( + 63 ) + + 40 * SUM ( DISTINCT - 81 )
----
NULL

query II rowsort
SELECT 92 AS col1, 18
----
92
18

query I rowsort
SELECT ALL 59 + - 25 AS col1
----
34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1193
SELECT CAST( - - 76 AS SIGNED ) + + - 56
----
20

skipif mysql # not compatible
query I rowsort label-1193
SELECT CAST ( - - 76 AS INTEGER ) + + - 56
----
20

query I rowsort
SELECT DISTINCT 93 + 44 + NULLIF ( 49, COALESCE ( + 25, AVG ( ALL + 79 ) + - 77, 69 + 12 ) ) + NULLIF ( + 97, 70 + + 66 )
----
283

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

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

query I rowsort
SELECT 6 + + 44
----
50

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1198
SELECT ALL 52 AS col1, + 31 DIV 21 DIV 43 - - ( + 25 ) * 38
----
52
950

skipif mysql # not compatible
query II rowsort label-1198
SELECT ALL 52 AS col1, + 31 / 21 / 43 - - ( + 25 ) * 38
----
52
950

query I rowsort
SELECT ALL + 98 + - - 90
----
188

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

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

query II rowsort
SELECT - - 87 AS col0, ( NULLIF ( 51, + 25 ) )
----
87
51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1202
SELECT ALL - 23 - 77 * 16 DIV - COUNT( * ) col2
----
1209

skipif mysql # not compatible
query I rowsort label-1202
SELECT ALL - 23 - 77 * 16 / - COUNT ( * ) col2
----
1209

query I rowsort
SELECT ALL - 17 - - + 85 AS col0
----
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1204
SELECT - - 12 * + CAST( - 20 AS SIGNED ) * 17 AS col0
----
-4080

skipif mysql # not compatible
query I rowsort label-1204
SELECT - - 12 * + CAST ( - 20 AS INTEGER ) * 17 AS col0
----
-4080

query II rowsort
SELECT ALL 58 AS col0, 1 col2
----
58
1

query I rowsort
SELECT + + 43 - - - 72 AS col1
----
-29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1207
SELECT - + 64 AS col1, + 75 * CAST( NULL AS SIGNED ) * - CAST( - COALESCE ( 11, - CASE AVG ( DISTINCT 67 ) WHEN 54 * MIN( ALL + 81 ) - 43 THEN NULL WHEN 42 - + 79 THEN 67 / + AVG ( ALL - 5 ) ELSE NULL END + + COALESCE ( 44 + 59 * - SUM( + 32 ), + COUNT( * ) ) ) AS SIGNED ) AS col1
----
-64
NULL

skipif mysql # not compatible
query II rowsort label-1207
SELECT - + 64 AS col1, + 75 * CAST ( NULL AS INTEGER ) * - CAST ( - COALESCE ( 11, - CASE AVG ( DISTINCT 67 ) WHEN 54 * MIN ( ALL + 81 ) - 43 THEN NULL WHEN 42 - + 79 THEN 67 / + AVG ( ALL - 5 ) ELSE NULL END + + COALESCE ( 44 + 59 * - SUM ( + 32 ), + COUNT ( * ) ) ) AS INTEGER ) AS col1
----
-64
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1208
SELECT DISTINCT - 73 DIV + CAST( + 3 AS SIGNED ) + 88 * 21
----
1824

skipif mysql # not compatible
query I rowsort label-1208
SELECT DISTINCT - 73 / + CAST ( + 3 AS INTEGER ) + 88 * 21
----
1824

query I rowsort
SELECT + - 68 - 75 + - - 59 * 12 * - 21 AS col1
----
-15011

query I rowsort
SELECT + ( - 84 ) * 67
----
-5628

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

skipif mysql # not compatible
query I rowsort label-1211
SELECT - COUNT ( * ) + - - 38 AS col0
----
37

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

skipif mysql # not compatible
query I rowsort label-1212
SELECT DISTINCT - + COUNT ( * ) * + 2 AS col1
----
-2

query I rowsort
SELECT ALL + 82 - + + 54 - + + 89 * 61
----
-5401

query I rowsort
SELECT + 51 * + - 87
----
-4437

query I rowsort
SELECT - ( 54 ) col0
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-1216
SELECT DISTINCT COALESCE ( COUNT( * ), - - 87 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1216
SELECT DISTINCT COALESCE ( COUNT ( * ), - - 87 ) AS col2
----
1

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

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

query I rowsort
SELECT - + ( 69 ) * - 18
----
1242

query I rowsort
SELECT - - 66 + - 73 - + 11 * 91 AS col2
----
-1008

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

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

query I rowsort
SELECT - 78 * + 82 AS col2
----
-6396

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1224
SELECT + SUM( ALL - + 38 ) AS col0, 72 AS col2
----
-38
72

skipif mysql # not compatible
query II rowsort label-1224
SELECT + SUM ( ALL - + 38 ) AS col0, 72 AS col2
----
-38
72

onlyif mysql # aggregate syntax: 
query I rowsort label-1225
SELECT DISTINCT + COALESCE ( 52, + ( - 36 ) - MIN( - 60 + 68 ) )
----
52

skipif mysql # not compatible
query I rowsort label-1225
SELECT DISTINCT + COALESCE ( 52, + ( - 36 ) - MIN ( - 60 + 68 ) )
----
52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1226
SELECT DISTINCT - 8 * 27 AS col0, CAST( NULL AS SIGNED ) + 86 + 33 * CASE 71 WHEN - 54 THEN NULL WHEN MAX( ALL 3 ) THEN - CASE 82 WHEN 51 THEN 18 / 61 + + 59 WHEN 84 * - AVG ( ALL NULLIF ( 38, 69 * - 15 ) / + NULLIF ( 66, + 96 ) ) THEN NULL END WHEN - COUNT( * ) THEN NULL ELSE 84 * 37 END col1
----
-216
NULL

skipif mysql # not compatible
query II rowsort label-1226
SELECT DISTINCT - 8 * 27 AS col0, CAST ( NULL AS INTEGER ) + 86 + 33 * CASE 71 WHEN - 54 THEN NULL WHEN MAX ( ALL 3 ) THEN - CASE 82 WHEN 51 THEN 18 / 61 + + 59 WHEN 84 * - AVG ( ALL NULLIF ( 38, 69 * - 15 ) / + NULLIF ( 66, + 96 ) ) THEN NULL END WHEN - COUNT ( * ) THEN NULL ELSE 84 * 37 END col1
----
-216
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1227
SELECT DISTINCT CAST( NULL AS DECIMAL ) * 88 + - 10
----
NULL

skipif mysql # not compatible
query I rowsort label-1227
SELECT DISTINCT CAST ( NULL AS REAL ) * 88 + - 10
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1229
SELECT - 1 DIV + - 3
----
0

skipif mysql # not compatible
query I rowsort label-1229
SELECT - 1 / + - 3
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1230
SELECT ALL 15 * - 23 + - SUM( - 10 ) col0
----
-335

skipif mysql # not compatible
query I rowsort label-1230
SELECT ALL 15 * - 23 + - SUM ( - 10 ) col0
----
-335

onlyif mysql # aggregate syntax: 
query I rowsort label-1231
SELECT ALL COALESCE ( + + 27, + 58 + COALESCE ( + 86, + 80 ), 47 ) * 30 + - 28 * MAX( DISTINCT 18 + - 38 )
----
1370

skipif mysql # not compatible
query I rowsort label-1231
SELECT ALL COALESCE ( + + 27, + 58 + COALESCE ( + 86, + 80 ), 47 ) * 30 + - 28 * MAX ( DISTINCT 18 + - 38 )
----
1370

query I rowsort
SELECT ALL - 91 * 75
----
-6825

onlyif mysql # DIV for integer division: 
query I rowsort label-1233
SELECT + 70 DIV 64 * + 72 AS col0
----
72

skipif mysql # not compatible
query I rowsort label-1233
SELECT + 70 / 64 * + 72 AS col0
----
72

query I rowsort
SELECT COALESCE ( + 78, 81, - 42 + 96 )
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-1235
SELECT COALESCE ( 82, + 29 * + 34 * COUNT( * ) + + COUNT( * ) * 88 ) AS col2
----
82

skipif mysql # not compatible
query I rowsort label-1235
SELECT COALESCE ( 82, + 29 * + 34 * COUNT ( * ) + + COUNT ( * ) * 88 ) AS col2
----
82

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1237
SELECT DISTINCT COUNT( * ) * + - 5 + 44 DIV 26 + + 65 AS col2
----
61

skipif mysql # not compatible
query I rowsort label-1237
SELECT DISTINCT COUNT ( * ) * + - 5 + 44 / 26 + + 65 AS col2
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-1238
SELECT + 82 * - CASE + - 68 WHEN - 8 THEN ( + 65 ) WHEN - 44 + - COUNT( * ) THEN NULL END + - 86
----
NULL

skipif mysql # not compatible
query I rowsort label-1238
SELECT + 82 * - CASE + - 68 WHEN - 8 THEN ( + 65 ) WHEN - 44 + - COUNT ( * ) THEN NULL END + - 86
----
NULL

query I rowsort
SELECT ALL 95 * 10 - 64 + + + CASE - 19 WHEN - 58 THEN + 14 END * 24
----
NULL

query I rowsort
SELECT + + 58 + + 49 + + 57 AS col1
----
164

query I rowsort
SELECT ALL + - 90 * - - 33 - + 71
----
-3041

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1242
SELECT DISTINCT - CASE - 4 WHEN + COUNT( * ) + COUNT( * ) + + ( - 97 + - 12 / 81 ) THEN NULL ELSE NULLIF ( CAST( NULL AS SIGNED ), 72 * 51 ) / + 56 + 43 END * - 77
----
NULL

skipif mysql # not compatible
query I rowsort label-1242
SELECT DISTINCT - CASE - 4 WHEN + COUNT ( * ) + COUNT ( * ) + + ( - 97 + - 12 / 81 ) THEN NULL ELSE NULLIF ( CAST ( NULL AS INTEGER ), 72 * 51 ) / + 56 + 43 END * - 77
----
NULL

query I rowsort
SELECT + 69 - + - 95
----
164

query I rowsort
SELECT - - NULLIF ( 23, - - ( 31 ) * 59 )
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-1245
SELECT + 83 - + + COUNT( * ) AS col1
----
82

skipif mysql # not compatible
query I rowsort label-1245
SELECT + 83 - + + COUNT ( * ) AS col1
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-1246
SELECT + COUNT( * ) + CASE - 22 WHEN - 48 + 68 THEN NULL WHEN - 27 THEN - 47 ELSE 7 * 94 END col2
----
659

skipif mysql # not compatible
query I rowsort label-1246
SELECT + COUNT ( * ) + CASE - 22 WHEN - 48 + 68 THEN NULL WHEN - 27 THEN - 47 ELSE 7 * 94 END col2
----
659

query I rowsort
SELECT ALL + NULLIF ( - - 95, - + 23 ) * + ( + 47 ) AS col2
----
4465

onlyif mysql # aggregate syntax: 
query I rowsort label-1248
SELECT + + 6 * - COUNT( * ) + + + 1
----
-5

skipif mysql # not compatible
query I rowsort label-1248
SELECT + + 6 * - COUNT ( * ) + + + 1
----
-5

query I rowsort
SELECT - + 0 * ( + NULLIF ( - + ( + 41 ), - 64 ) ) AS col1
----
0

query I rowsort
SELECT + + 56 + - - 71
----
127

onlyif mysql # aggregate syntax: 
query I rowsort label-1251
SELECT + - MIN( + 0 ) + 34 AS col0
----
34

skipif mysql # not compatible
query I rowsort label-1251
SELECT + - MIN ( + 0 ) + 34 AS col0
----
34

query I rowsort
SELECT + - 79 + 86 + 98
----
105

onlyif mysql # aggregate syntax: 
query I rowsort label-1253
SELECT - - 73 * SUM( DISTINCT - 29 ) AS col2
----
-2117

skipif mysql # not compatible
query I rowsort label-1253
SELECT - - 73 * SUM ( DISTINCT - 29 ) AS col2
----
-2117

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1254
SELECT ALL AVG ( ALL - + CAST( NULL AS SIGNED ) ), - CASE + 43 WHEN 4 THEN NULL ELSE - 66 END + + 51 col2
----
NULL
117

skipif mysql # not compatible
query II rowsort label-1254
SELECT ALL AVG ( ALL - + CAST ( NULL AS INTEGER ) ), - CASE + 43 WHEN 4 THEN NULL ELSE - 66 END + + 51 col2
----
NULL
117

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

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

query I rowsort
SELECT - + 99 * + 55 col2
----
-5445

query I rowsort
SELECT ALL - 94 * - - 18
----
-1692

query I rowsort
SELECT DISTINCT - 40 * + 98 AS col0
----
-3920

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1259
SELECT ALL + 86 + - CAST( NULL AS SIGNED ) * + COUNT( * ) AS col0, + ( + - 49 ) + COUNT( * )
----
NULL
-48

skipif mysql # not compatible
query II rowsort label-1259
SELECT ALL + 86 + - CAST ( NULL AS INTEGER ) * + COUNT ( * ) AS col0, + ( + - 49 ) + COUNT ( * )
----
NULL
-48

query I rowsort
SELECT + 48 + - + 47
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-1261
SELECT DISTINCT + 78 DIV - 8 + 44 AS col0
----
35

skipif mysql # not compatible
query I rowsort label-1261
SELECT DISTINCT + 78 / - 8 + 44 AS col0
----
35

onlyif mysql # DIV for integer division: 
query I rowsort label-1262
SELECT ALL 98 DIV 78 + 82 * + 78 AS col2
----
6397

skipif mysql # not compatible
query I rowsort label-1262
SELECT ALL 98 / 78 + 82 * + 78 AS col2
----
6397

onlyif mysql # DIV for integer division: 
query I rowsort label-1263
SELECT DISTINCT 36 DIV 68 + + CASE 94 WHEN 40 THEN NULL WHEN + 79 THEN NULL ELSE - 41 END AS col0
----
-41

skipif mysql # not compatible
query I rowsort label-1263
SELECT DISTINCT 36 / 68 + + CASE 94 WHEN 40 THEN NULL WHEN + 79 THEN NULL ELSE - 41 END AS col0
----
-41

query I rowsort
SELECT DISTINCT 48 * 28 * + 39 * - 90 AS col0
----
-4717440

onlyif mysql # DIV for integer division: 
query I rowsort label-1265
SELECT ALL 42 DIV - - 18 + 92 * 32 - - 70 * + 38 col1
----
5606

skipif mysql # not compatible
query I rowsort label-1265
SELECT ALL 42 / - - 18 + 92 * 32 - - 70 * + 38 col1
----
5606

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1267
SELECT ALL AVG ( ALL - + 70 ) / - ( - CAST( NULL AS DECIMAL ) ) + - 85
----
NULL

skipif mysql # not compatible
query I rowsort label-1267
SELECT ALL AVG ( ALL - + 70 ) / - ( - CAST ( NULL AS REAL ) ) + - 85
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1268
SELECT COUNT( DISTINCT - 60 ) * - - AVG ( DISTINCT + 82 ) + + CAST( NULL AS SIGNED ) + - 92
----
NULL

skipif mysql # not compatible
query I rowsort label-1268
SELECT COUNT ( DISTINCT - 60 ) * - - AVG ( DISTINCT + 82 ) + + CAST ( NULL AS INTEGER ) + - 92
----
NULL

query I rowsort
SELECT DISTINCT - 5 - + - ( + - 56 ) AS col2
----
-61

query I rowsort
SELECT ALL - NULLIF ( 26, - - 3 * - + 88 )
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-1271
SELECT ALL - 60 * + - 37 * MIN( ALL - 91 )
----
-202020

skipif mysql # not compatible
query I rowsort label-1271
SELECT ALL - 60 * + - 37 * MIN ( ALL - 91 )
----
-202020

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1272
SELECT 86 + 90 + - 27 * 5 / 22 * CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1272
SELECT 86 + 90 + - 27 * 5 / 22 * CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT ALL 23 * - - 30 AS col1
----
690

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1275
SELECT ALL ( + MIN( 54 ) ) - 25 DIV - 66 * 41 + + 88 col2
----
142

skipif mysql # not compatible
query I rowsort label-1275
SELECT ALL ( + MIN ( 54 ) ) - 25 / - 66 * 41 + + 88 col2
----
142

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1276
SELECT - NULLIF ( - - COUNT( * ), + 58 * + 40 ) * - - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1276
SELECT - NULLIF ( - - COUNT ( * ), + 58 * + 40 ) * - - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1277
SELECT COUNT( * ) + - - 32
----
33

skipif mysql # not compatible
query I rowsort label-1277
SELECT COUNT ( * ) + - - 32
----
33

onlyif mysql # DIV for integer division: 
query I rowsort label-1278
SELECT ALL - + 70 - - - ( 14 ) DIV - 98
----
-70

skipif mysql # not compatible
query I rowsort label-1278
SELECT ALL - + 70 - - - ( 14 ) / - 98
----
-70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1279
SELECT + CASE + 72 WHEN + 6 THEN NULL ELSE + CAST( + 15 AS SIGNED ) END col0
----
15

skipif mysql # not compatible
query I rowsort label-1279
SELECT + CASE + 72 WHEN + 6 THEN NULL ELSE + CAST ( + 15 AS INTEGER ) END col0
----
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1280
SELECT + COALESCE ( CAST( + COUNT( DISTINCT - 83 ) AS SIGNED ), + - ( COUNT( * ) ) * 4 ) * + 15 col0
----
15

skipif mysql # not compatible
query I rowsort label-1280
SELECT + COALESCE ( CAST ( + COUNT ( DISTINCT - 83 ) AS INTEGER ), + - ( COUNT ( * ) ) * 4 ) * + 15 col0
----
15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1281
SELECT + 20 DIV - MIN( - - 15 ) DIV - COUNT( * ) * + COUNT( DISTINCT 14 ) * ( - COUNT( ALL 89 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-1281
SELECT + 20 / - MIN ( - - 15 ) / - COUNT ( * ) * + COUNT ( DISTINCT 14 ) * ( - COUNT ( ALL 89 ) )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1282
SELECT ALL - + 78 * COUNT( * ) + + 16 AS col1
----
-62

skipif mysql # not compatible
query I rowsort label-1282
SELECT ALL - + 78 * COUNT ( * ) + + 16 AS col1
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-1283
SELECT ALL SUM( DISTINCT 47 ) AS col2
----
47

skipif mysql # not compatible
query I rowsort label-1283
SELECT ALL SUM ( DISTINCT 47 ) AS col2
----
47

query II rowsort
SELECT - + 19 AS col2, ( + 52 ) AS col1
----
-19
52

query I rowsort
SELECT ALL 0 * + - 89 + 68 - + 47 AS col1
----
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1286
SELECT ALL 44 + - 79 + 9 + - COUNT( * ) * CAST( NULL AS SIGNED ) + + 29 * - 79 * - 57
----
NULL

skipif mysql # not compatible
query I rowsort label-1286
SELECT ALL 44 + - 79 + 9 + - COUNT ( * ) * CAST ( NULL AS INTEGER ) + + 29 * - 79 * - 57
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1288
SELECT - - COUNT( + ( + ( 21 ) ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1288
SELECT - - COUNT ( + ( + ( 21 ) ) ) AS col2
----
1

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

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

query I rowsort
SELECT + 27 + + + 2 AS col0
----
29

query I rowsort
SELECT ALL - ( - 22 ) * + + 65
----
1430

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1292
SELECT CASE 73 WHEN + CAST( NULL AS SIGNED ) THEN - 99 + - 33 * 18 WHEN + 51 + 56 THEN NULL WHEN + 72 * 47 + - 95 THEN 16 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1292
SELECT CASE 73 WHEN + CAST ( NULL AS INTEGER ) THEN - 99 + - 33 * 18 WHEN + 51 + 56 THEN NULL WHEN + 72 * 47 + - 95 THEN 16 ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1293
SELECT - COUNT( * ) + NULLIF ( - + 21, 86 ) AS col2
----
-22

skipif mysql # not compatible
query I rowsort label-1293
SELECT - COUNT ( * ) + NULLIF ( - + 21, 86 ) AS col2
----
-22

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1295
SELECT DISTINCT + COUNT( * ) * + 73 * 72 * - - 32 + + 54 + - 9 * ( - 93 * 43 ) * 61 AS col0
----
2363697

skipif mysql # not compatible
query I rowsort label-1295
SELECT DISTINCT + COUNT ( * ) * + 73 * 72 * - - 32 + + 54 + - 9 * ( - 93 * 43 ) * 61 AS col0
----
2363697

onlyif mysql # aggregate syntax: 
query I rowsort label-1296
SELECT ALL 89 + + + 61 * - + SUM( - 80 ) AS col2
----
4969

skipif mysql # not compatible
query I rowsort label-1296
SELECT ALL 89 + + + 61 * - + SUM ( - 80 ) AS col2
----
4969

onlyif mysql # DIV for integer division: 
query I rowsort label-1297
SELECT ALL 2 + + + 93 DIV + 76 AS col1
----
3

skipif mysql # not compatible
query I rowsort label-1297
SELECT ALL 2 + + + 93 / + 76 AS col1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1298
SELECT COUNT( * ) - 50
----
-49

skipif mysql # not compatible
query I rowsort label-1298
SELECT COUNT ( * ) - 50
----
-49

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

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

query I rowsort
SELECT ALL 7 + 14
----
21

query II rowsort
SELECT - 60 AS col1, + 31
----
-60
31

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1303
SELECT ( - + 31 ) DIV - + 95
----
0

skipif mysql # not compatible
query I rowsort label-1303
SELECT ( - + 31 ) / - + 95
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-1304
SELECT 87 * + 75 AS col2, + 21 + - MAX( - - 24 ) col1
----
6525
-3

skipif mysql # not compatible
query II rowsort label-1304
SELECT 87 * + 75 AS col2, + 21 + - MAX ( - - 24 ) col1
----
6525
-3

query I rowsort
SELECT ALL 77 - + - 53
----
130

query II rowsort
SELECT + 25 AS col2, - ( 29 )
----
25
-29

query I rowsort
SELECT ALL - 92 * 41
----
-3772

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1308
SELECT CAST( - + 97 AS SIGNED ) DIV - 48 col0
----
2

skipif mysql # not compatible
query I rowsort label-1308
SELECT CAST ( - + 97 AS INTEGER ) / - 48 col0
----
2

query I rowsort
SELECT ALL 0 * - ( - 96 )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1310
SELECT DISTINCT - COUNT( + 58 ) * 57 DIV + - 95 AS col0, 28
----
0
28

skipif mysql # not compatible
query II rowsort label-1310
SELECT DISTINCT - COUNT ( + 58 ) * 57 / + - 95 AS col0, 28
----
0
28

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

query I rowsort
SELECT ALL 93 * + 84 AS col0
----
7812

query I rowsort
SELECT 2 * 90
----
180

query II rowsort
SELECT + 91, + 98 AS col1
----
91
98

query II rowsort
SELECT 21 AS col1, 69
----
21
69

onlyif mysql # aggregate syntax: 
query I rowsort label-1316
SELECT 72 + + 33 + + + COALESCE ( + 70, 89 - + 69 + 87 ) * COUNT( * )
----
175

skipif mysql # not compatible
query I rowsort label-1316
SELECT 72 + + 33 + + + COALESCE ( + 70, 89 - + 69 + 87 ) * COUNT ( * )
----
175

query I rowsort
SELECT 3 * - + 91 AS col1
----
-273

query II rowsort
SELECT 99 AS col2, 76
----
99
76

onlyif mysql # DIV for integer division: 
query I rowsort label-1319
SELECT ALL + 95 DIV - - 18
----
5

skipif mysql # not compatible
query I rowsort label-1319
SELECT ALL + 95 / - - 18
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-1320
SELECT - COUNT( * ) + - 37 * COALESCE ( + + 47, - + COUNT( - 13 ) + 50 ) + 23 * - COUNT( * )
----
-1763

skipif mysql # not compatible
query I rowsort label-1320
SELECT - COUNT ( * ) + - 37 * COALESCE ( + + 47, - + COUNT ( - 13 ) + 50 ) + 23 * - COUNT ( * )
----
-1763

query I rowsort
SELECT - 59 * - 85 + - 80 AS col2
----
4935

onlyif mysql # DIV for integer division: 
query II rowsort label-1322
SELECT - 22 AS col1, - ( + + 16 ) DIV + 27 * COALESCE ( - 55, - 64 + 55, 31 )
----
-22
0

skipif mysql # not compatible
query II rowsort label-1322
SELECT - 22 AS col1, - ( + + 16 ) / + 27 * COALESCE ( - 55, - 64 + 55, 31 )
----
-22
0

query III rowsort
SELECT DISTINCT - 92 + - 31 col1, ( 1 ), 91 AS col2
----
-123
1
91

query I rowsort
SELECT 21 + - 30 * + 65
----
-1929

query I rowsort
SELECT + 67 - + - 2 - - - 0
----
69

query I rowsort
SELECT 52 * 43
----
2236

onlyif mysql # aggregate syntax: 
query I rowsort label-1327
SELECT + COUNT( * ) + 36 * 4
----
145

skipif mysql # not compatible
query I rowsort label-1327
SELECT + COUNT ( * ) + 36 * 4
----
145

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1328
SELECT DISTINCT + CASE - COUNT( * ) WHEN + + 34 - + 61 THEN - 79 / - 52 + NULLIF ( + ( - 95 ), - 64 + - ( 11 ) ) / - ( - 37 * 35 + 14 ) END + - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1328
SELECT DISTINCT + CASE - COUNT ( * ) WHEN + + 34 - + 61 THEN - 79 / - 52 + NULLIF ( + ( - 95 ), - 64 + - ( 11 ) ) / - ( - 37 * 35 + 14 ) END + - CAST ( NULL AS INTEGER ) AS col2
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1330
SELECT 90 + - - COUNT( * )
----
91

skipif mysql # not compatible
query I rowsort label-1330
SELECT 90 + - - COUNT ( * )
----
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1331
SELECT - 29, + CAST( NULL AS SIGNED ) / - ( - COUNT( * ) ) * - COALESCE ( + 60, - COUNT( * ) + + 92 * + 81 ) + COUNT( 46 + + 50 ) * - COUNT( * ) AS col2
----
-29
NULL

skipif mysql # not compatible
query II rowsort label-1331
SELECT - 29, + CAST ( NULL AS INTEGER ) / - ( - COUNT ( * ) ) * - COALESCE ( + 60, - COUNT ( * ) + + 92 * + 81 ) + COUNT ( 46 + + 50 ) * - COUNT ( * ) AS col2
----
-29
NULL

query I rowsort
SELECT 55 + - 41 * - 51
----
2146

onlyif mysql # aggregate syntax: 
query I rowsort label-1333
SELECT ALL COUNT( 80 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1333
SELECT ALL COUNT ( 80 ) AS col1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1334
SELECT ALL - 68 + - CAST( + 78 AS SIGNED )
----
-146

skipif mysql # not compatible
query I rowsort label-1334
SELECT ALL - 68 + - CAST ( + 78 AS INTEGER )
----
-146

onlyif mysql # aggregate syntax: 
query I rowsort label-1335
SELECT DISTINCT 31 * - MAX( + - 68 ) AS col0
----
2108

skipif mysql # not compatible
query I rowsort label-1335
SELECT DISTINCT 31 * - MAX ( + - 68 ) AS col0
----
2108

query I rowsort
SELECT 42 + - 20 AS col2
----
22

query I rowsort
SELECT 45 * 80
----
3600

onlyif mysql # aggregate syntax: 
query I rowsort label-1338
SELECT MIN( - + NULLIF ( - 38, + 92 ) ) * + + COUNT( * ) + - 7 AS col2
----
31

skipif mysql # not compatible
query I rowsort label-1338
SELECT MIN ( - + NULLIF ( - 38, + 92 ) ) * + + COUNT ( * ) + - 7 AS col2
----
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1339
SELECT 51 + 37 * - COUNT( * ) + - - 73 + - 39 * - 67 * - 74 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1339
SELECT 51 + 37 * - COUNT ( * ) + - - 73 + - 39 * - 67 * - 74 * - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 90 + - 30 AS col0
----
60

query I rowsort
SELECT DISTINCT 95 * + 15 AS col1
----
1425

onlyif mysql # aggregate syntax: 
query II rowsort label-1342
SELECT ALL COUNT( * ) * - + 35, - SUM( - 34 ) * + COUNT( 19 ) * - - MIN( ALL 47 ) + + ( + 47 ) + COUNT( * ) * - 53 AS col0
----
-35
1592

skipif mysql # not compatible
query II rowsort label-1342
SELECT ALL COUNT ( * ) * - + 35, - SUM ( - 34 ) * + COUNT ( 19 ) * - - MIN ( ALL 47 ) + + ( + 47 ) + COUNT ( * ) * - 53 AS col0
----
-35
1592

onlyif mysql # aggregate syntax: 
query II rowsort label-1343
SELECT + NULLIF ( - 4, + MIN( + 55 ) ) + - 98 AS col1, + 27 - + - 23 AS col1
----
-102
50

skipif mysql # not compatible
query II rowsort label-1343
SELECT + NULLIF ( - 4, + MIN ( + 55 ) ) + - 98 AS col1, + 27 - + - 23 AS col1
----
-102
50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1344
SELECT DISTINCT - CAST( NULL AS SIGNED ) * 26 - - - 31
----
NULL

skipif mysql # not compatible
query I rowsort label-1344
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * 26 - - - 31
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1345
SELECT ALL + COUNT( 47 ), - 71 AS col0
----
1
-71

skipif mysql # not compatible
query II rowsort label-1345
SELECT ALL + COUNT ( 47 ), - 71 AS col0
----
1
-71

onlyif mysql # DIV for integer division: 
query I rowsort label-1346
SELECT 24 DIV - 11 + - + 74 AS col2
----
-76

skipif mysql # not compatible
query I rowsort label-1346
SELECT 24 / - 11 + - + 74 AS col2
----
-76

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

skipif mysql # not compatible
query I rowsort label-1347
SELECT + 40 / + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + 58 + + - NULLIF ( - - 17, + - 85 )
----
41

onlyif mysql # DIV for integer division: 
query I rowsort label-1349
SELECT DISTINCT - 57 DIV + - 43
----
1

skipif mysql # not compatible
query I rowsort label-1349
SELECT DISTINCT - 57 / + - 43
----
1

query I rowsort
SELECT + + 18 + + 31 AS col1
----
49

query I rowsort
SELECT ALL - 7 * + 45 * + - 62 col2
----
19530

onlyif mysql # aggregate syntax: 
query I rowsort label-1352
SELECT DISTINCT - + CASE + - 89 WHEN 57 * + - COUNT( * ) THEN NULL ELSE 96 + + 81 END * + + 56 + 40 AS col2
----
-9872

skipif mysql # not compatible
query I rowsort label-1352
SELECT DISTINCT - + CASE + - 89 WHEN 57 * + - COUNT ( * ) THEN NULL ELSE 96 + + 81 END * + + 56 + 40 AS col2
----
-9872

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1353
SELECT ALL + + 3 * - + COUNT( * ) + MIN( DISTINCT - 69 ) * + NULLIF ( - - 14, - MIN( - 99 ) DIV + 7 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1353
SELECT ALL + + 3 * - + COUNT ( * ) + MIN ( DISTINCT - 69 ) * + NULLIF ( - - 14, - MIN ( - 99 ) / + 7 ) AS col0
----
NULL

query I rowsort
SELECT + - ( NULLIF ( + 78, 9 + 50 ) )
----
-78

query I rowsort
SELECT DISTINCT - 84 * - - 8 + - 93 + - 8 AS col2
----
-773

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1356
SELECT - - 94 * - ( + - NULLIF ( - 22, - COUNT( * ) * - + 49 * - + 9 * 66 ) ) * ( CAST( NULL AS DECIMAL ) * CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1356
SELECT - - 94 * - ( + - NULLIF ( - 22, - COUNT ( * ) * - + 49 * - + 9 * 66 ) ) * ( CAST ( NULL AS REAL ) * CAST ( NULL AS REAL ) )
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1358
SELECT - COUNT( * ) * - 76 * 45 + 42 + 50, 40 col1
----
3512
40

skipif mysql # not compatible
query II rowsort label-1358
SELECT - COUNT ( * ) * - 76 * 45 + 42 + 50, 40 col1
----
3512
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1359
SELECT - 65 + - 36 + + 92 + NULLIF ( CASE + CAST( + 89 AS SIGNED ) WHEN - ( 20 ) * 36 - - 36 * + 76 THEN + CAST( - 28 AS SIGNED ) ELSE NULL END, - 64 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1359
SELECT - 65 + - 36 + + 92 + NULLIF ( CASE + CAST ( + 89 AS INTEGER ) WHEN - ( 20 ) * 36 - - 36 * + 76 THEN + CAST ( - 28 AS INTEGER ) ELSE NULL END, - 64 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1360
SELECT DISTINCT - + SUM( ALL + 50 ) + 23 DIV + - 42 * + - 22 * + + 9
----
-50

skipif mysql # not compatible
query I rowsort label-1360
SELECT DISTINCT - + SUM ( ALL + 50 ) + 23 / + - 42 * + - 22 * + + 9
----
-50

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

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

query I rowsort
SELECT - 18 * 21 col1
----
-378

query I rowsort
SELECT ALL - 47 + - + 58 + - 54
----
-159

query I rowsort
SELECT + 15 * + - 25 + + - ( - - 58 ) * + 22 AS col1
----
-1651

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1366
SELECT ALL + CAST( 60 AS SIGNED ) * - CASE + + 9 WHEN 80 THEN 7 ELSE - + ( + COALESCE ( COUNT( * ), - 9, + 25, - 21 + 32 * + 58 ) ) * + 22 END * ( COUNT( * ) ) + ( 68 - - COUNT( * ) ) AS col1
----
1389

skipif mysql # not compatible
query I rowsort label-1366
SELECT ALL + CAST ( 60 AS INTEGER ) * - CASE + + 9 WHEN 80 THEN 7 ELSE - + ( + COALESCE ( COUNT ( * ), - 9, + 25, - 21 + 32 * + 58 ) ) * + 22 END * ( COUNT ( * ) ) + ( 68 - - COUNT ( * ) ) AS col1
----
1389

query I rowsort
SELECT DISTINCT + 82 * + 85
----
6970

query II rowsort
SELECT - 49, - 87 AS col2
----
-49
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-1369
SELECT - 54 * MAX( - 14 )
----
756

skipif mysql # not compatible
query I rowsort label-1369
SELECT - 54 * MAX ( - 14 )
----
756

query II rowsort
SELECT 8, 56 AS col2
----
8
56

query I rowsort
SELECT - 72 + + 7 * - 66
----
-534

query I rowsort
SELECT + ( 94 ) + - 93 AS col2
----
1

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

query I rowsort
SELECT ALL - 37 - + - 78 AS col0
----
41

onlyif mysql # DIV for integer division: 
query I rowsort label-1375
SELECT - 18 DIV 33 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1375
SELECT - 18 / 33 AS col0
----
0

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

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

query II rowsort
SELECT - 15 AS col2, - ( + + 75 ) AS col1
----
-15
-75

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1379
SELECT - 71 - + 22 * + 81 + 29 - + 5 + - + 54 DIV + 94 + + 18
----
-1811

skipif mysql # not compatible
query I rowsort label-1379
SELECT - 71 - + 22 * + 81 + 29 - + 5 + - + 54 / + 94 + + 18
----
-1811

onlyif mysql # aggregate syntax: 
query II rowsort label-1380
SELECT ALL 23 AS col2, + CASE COUNT( * ) WHEN - + 90 THEN NULL ELSE 10 END col2
----
23
10

skipif mysql # not compatible
query II rowsort label-1380
SELECT ALL 23 AS col2, + CASE COUNT ( * ) WHEN - + 90 THEN NULL ELSE 10 END col2
----
23
10

query II rowsort
SELECT 46, 51 * - ( + + 35 ) AS col0
----
46
-1785

query I rowsort
SELECT DISTINCT ( - 3 ) AS col2
----
-3

query I rowsort
SELECT DISTINCT ( 47 ) col2
----
47

query II rowsort
SELECT - 81 AS col0, - 15 col0
----
-81
-15

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

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

query I rowsort
SELECT + 34 * + + ( - - 97 ) AS col2
----
3298

onlyif mysql # DIV for integer division: 
query II rowsort label-1387
SELECT ALL - 88 DIV + 7 + + 26, 43 AS col1
----
14
43

skipif mysql # not compatible
query II rowsort label-1387
SELECT ALL - 88 / + 7 + + 26, 43 AS col1
----
14
43

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1388
SELECT CAST( NULL AS SIGNED ), - 68 AS col2
----
NULL
-68

skipif mysql # not compatible
query II rowsort label-1388
SELECT CAST ( NULL AS INTEGER ), - 68 AS col2
----
NULL
-68

onlyif mysql # aggregate syntax: 
query II rowsort label-1389
SELECT ALL + 45, - COUNT( * ) + - + 14 col1
----
45
-15

skipif mysql # not compatible
query II rowsort label-1389
SELECT ALL + 45, - COUNT ( * ) + - + 14 col1
----
45
-15

query II rowsort
SELECT + 50, 24 col0
----
50
24

query I rowsort
SELECT + - 73 * - 4 col2
----
292

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

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

query I rowsort
SELECT + 36 * 53 + - 63 * - 13 col2
----
2727

query I rowsort
SELECT + 80 + - 74
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-1395
SELECT CASE - - ( - - 28 ) WHEN + - 74 THEN + COALESCE ( 34, + 42, 95 ) + - 80 WHEN 1 + - 86 THEN 9 * COUNT( * ) ELSE - COALESCE ( 93, - ( 29 ), - 73 - - 58, - 7 ) * NULLIF ( 65 * - ( + 6 ) - + 69 * - 36, - 55 ) + + 51 END
----
-194691

skipif mysql # not compatible
query I rowsort label-1395
SELECT CASE - - ( - - 28 ) WHEN + - 74 THEN + COALESCE ( 34, + 42, 95 ) + - 80 WHEN 1 + - 86 THEN 9 * COUNT ( * ) ELSE - COALESCE ( 93, - ( 29 ), - 73 - - 58, - 7 ) * NULLIF ( 65 * - ( + 6 ) - + 69 * - 36, - 55 ) + + 51 END
----
-194691

onlyif mysql # aggregate syntax: 
query I rowsort label-1396
SELECT + 93 + - CASE - + 92 WHEN + - ( + COUNT( * ) ) + + 95 THEN + 61 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1396
SELECT + 93 + - CASE - + 92 WHEN + - ( + COUNT ( * ) ) + + 95 THEN + 61 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1397
SELECT - - ( COUNT( * ) ) DIV + MIN( DISTINCT + 35 ) + - COUNT( * ) * + MAX( - ( 71 ) )
----
71

skipif mysql # not compatible
query I rowsort label-1397
SELECT - - ( COUNT ( * ) ) / + MIN ( DISTINCT + 35 ) + - COUNT ( * ) * + MAX ( - ( 71 ) )
----
71

query I rowsort
SELECT ALL 96 * - - 25 + + 0 * - 58 * - + 82
----
2400

onlyif mysql # aggregate syntax: 
query I rowsort label-1399
SELECT + + 46 + - CASE 59 WHEN + - 69 * - + COUNT( DISTINCT + - 53 ) THEN - 70 + - ( + CASE - 52 WHEN ( 67 ) + ( 4 ) * + ( 70 + COUNT( * ) ) THEN NULL ELSE 26 + + COUNT( 72 ) END ) END - 14
----
NULL

skipif mysql # not compatible
query I rowsort label-1399
SELECT + + 46 + - CASE 59 WHEN + - 69 * - + COUNT ( DISTINCT + - 53 ) THEN - 70 + - ( + CASE - 52 WHEN ( 67 ) + ( 4 ) * + ( 70 + COUNT ( * ) ) THEN NULL ELSE 26 + + COUNT ( 72 ) END ) END - 14
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1400
SELECT ALL + 40 DIV + 39 + CAST( - 6 AS SIGNED ) * MAX( DISTINCT + 47 ) + 79 + - 35 DIV 85 AS col0
----
-202

skipif mysql # not compatible
query I rowsort label-1400
SELECT ALL + 40 / + 39 + CAST ( - 6 AS INTEGER ) * MAX ( DISTINCT + 47 ) + 79 + - 35 / 85 AS col0
----
-202

onlyif mysql # aggregate syntax: 
query I rowsort label-1401
SELECT ALL + COALESCE ( - 65, + 42 + MIN( DISTINCT + - ( 73 ) ) + - + ( + COUNT( * ) ), - COUNT( + 18 ) * ( COUNT( * ) - 64 ) )
----
-65

skipif mysql # not compatible
query I rowsort label-1401
SELECT ALL + COALESCE ( - 65, + 42 + MIN ( DISTINCT + - ( 73 ) ) + - + ( + COUNT ( * ) ), - COUNT ( + 18 ) * ( COUNT ( * ) - 64 ) )
----
-65

query I rowsort
SELECT ALL 55 * + - 2 - + 62
----
-172

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

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

query I rowsort
SELECT ALL 8 * + - 60 * - 88 - + - 70 AS col1
----
42310

onlyif mysql # DIV for integer division: 
query II rowsort label-1405
SELECT + 52 * 0 DIV 75, ( 45 ) AS col0
----
0
45

skipif mysql # not compatible
query II rowsort label-1405
SELECT + 52 * 0 / 75, ( 45 ) AS col0
----
0
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1406
SELECT ALL COALESCE ( + 19, + COUNT( * ) * CASE + - 59 WHEN - 69 THEN NULL WHEN - 97 THEN - ( COUNT( DISTINCT + 42 ) ) * 76 END * COUNT( * ), 11 ) * + CAST( + 81 AS SIGNED ) AS col1
----
1539

skipif mysql # not compatible
query I rowsort label-1406
SELECT ALL COALESCE ( + 19, + COUNT ( * ) * CASE + - 59 WHEN - 69 THEN NULL WHEN - 97 THEN - ( COUNT ( DISTINCT + 42 ) ) * 76 END * COUNT ( * ), 11 ) * + CAST ( + 81 AS INTEGER ) AS col1
----
1539

onlyif mysql # aggregate syntax: 
query I rowsort label-1407
SELECT + COUNT( * ) * + + 22 + - COUNT( + - 41 ) AS col1
----
21

skipif mysql # not compatible
query I rowsort label-1407
SELECT + COUNT ( * ) * + + 22 + - COUNT ( + - 41 ) AS col1
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-1408
SELECT + NULLIF ( - 32, + + 58 ) + + - NULLIF ( - COUNT( * ), - 17 ) col0
----
-31

skipif mysql # not compatible
query I rowsort label-1408
SELECT + NULLIF ( - 32, + + 58 ) + + - NULLIF ( - COUNT ( * ), - 17 ) col0
----
-31

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1409
SELECT 90 + 3, + 46 + - CAST( NULL AS SIGNED ) AS col2
----
93
NULL

skipif mysql # not compatible
query II rowsort label-1409
SELECT 90 + 3, + 46 + - CAST ( NULL AS INTEGER ) AS col2
----
93
NULL

query I rowsort
SELECT 61 * 93 AS col2
----
5673

query I rowsort
SELECT 80 + + + 0
----
80

onlyif mysql # DIV for integer division: 
query II rowsort label-1412
SELECT ALL - 33 * 1 DIV + ( + + 7 ), - 61 * - 99 AS col2
----
-4
6039

skipif mysql # not compatible
query II rowsort label-1412
SELECT ALL - 33 * 1 / + ( + + 7 ), - 61 * - 99 AS col2
----
-4
6039

onlyif mysql # aggregate syntax: 
query I rowsort label-1413
SELECT 86 * 48 * - ( - COUNT( * ) ) * - 63 * - - 38 + + 18 + + 60 col2
----
-9882354

skipif mysql # not compatible
query I rowsort label-1413
SELECT 86 * 48 * - ( - COUNT ( * ) ) * - 63 * - - 38 + + 18 + + 60 col2
----
-9882354

query I rowsort
SELECT 90 + - - 80 + 97 * + 18
----
1916

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1415
SELECT 5 DIV + - 7 * - COUNT( * ) * + 35
----
0

skipif mysql # not compatible
query I rowsort label-1415
SELECT 5 / + - 7 * - COUNT ( * ) * + 35
----
0

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1417
SELECT 76 + COALESCE ( 77, - COUNT( * ), + + ( - + 7 ) - + MIN( DISTINCT 64 ) + + 75 ) DIV + 6 AS col1
----
88

skipif mysql # not compatible
query I rowsort label-1417
SELECT 76 + COALESCE ( 77, - COUNT ( * ), + + ( - + 7 ) - + MIN ( DISTINCT 64 ) + + 75 ) / + 6 AS col1
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-1418
SELECT 86 + + - CASE + 90 WHEN + 47 THEN + MIN( - + 12 ) END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1418
SELECT 86 + + - CASE + 90 WHEN + 47 THEN + MIN ( - + 12 ) END col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1419
SELECT ALL + COUNT( DISTINCT - 34 ) + + + 6 + + 12
----
19

skipif mysql # not compatible
query I rowsort label-1419
SELECT ALL + COUNT ( DISTINCT - 34 ) + + + 6 + + 12
----
19

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

skipif mysql # not compatible
query I rowsort label-1420
SELECT 95 / 63
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-1421
SELECT 31 DIV 5 AS col0
----
6

skipif mysql # not compatible
query I rowsort label-1421
SELECT 31 / 5 AS col0
----
6

query I rowsort
SELECT 2 + ( - + 42 ) AS col1
----
-40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1423
SELECT ALL + 70 * + - CASE + - CAST( + 6 AS SIGNED ) WHEN 60 + - 98 THEN 32 / + + COUNT( * ) WHEN - 37 / COUNT( * ) THEN - 18 END * ( + COUNT( * ) * + NULLIF ( + MIN( ALL + 97 ), - 17 ) ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1423
SELECT ALL + 70 * + - CASE + - CAST ( + 6 AS INTEGER ) WHEN 60 + - 98 THEN 32 / + + COUNT ( * ) WHEN - 37 / COUNT ( * ) THEN - 18 END * ( + COUNT ( * ) * + NULLIF ( + MIN ( ALL + 97 ), - 17 ) ) col0
----
NULL

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

skipif mysql # not compatible
query I rowsort label-1424
SELECT DISTINCT - COUNT ( * ) + COUNT ( * ) AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1425
SELECT ALL - 7 DIV 13 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1425
SELECT ALL - 7 / 13 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1426
SELECT - + 69 DIV - - ( + 32 ) + + + 94 + - + COALESCE ( - 66, - + 20, + MIN( DISTINCT + CAST( 12 AS SIGNED ) ) ) + 58 DIV 21 * - 15
----
128

skipif mysql # not compatible
query I rowsort label-1426
SELECT - + 69 / - - ( + 32 ) + + + 94 + - + COALESCE ( - 66, - + 20, + MIN ( DISTINCT + CAST ( 12 AS INTEGER ) ) ) + 58 / 21 * - 15
----
128

onlyif mysql # DIV for integer division: 
query II rowsort label-1427
SELECT ALL 37 + + + 26, 79 DIV + - ( 11 ) AS col0
----
63
-7

skipif mysql # not compatible
query II rowsort label-1427
SELECT ALL 37 + + + 26, 79 / + - ( 11 ) AS col0
----
63
-7

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

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

query I rowsort
SELECT + ( - 1 ) + CASE 16 WHEN + ( + + 30 ) - 38 * - + 44 THEN + 69 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1430
SELECT + COALESCE ( - - COUNT( ALL - 44 ), + 52, + 56 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-1430
SELECT + COALESCE ( - - COUNT ( ALL - 44 ), + 52, + 56 ) AS col0
----
1

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

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

query I rowsort
SELECT ALL - + 44 + + + 62 + 53 * - 69 * - 42 * - - 93 - + 8 + + 35 - 16 - 8 AS col0
----
14284263

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1433
SELECT + + ( + NULLIF ( 94, + 53 + + CAST( NULL AS DECIMAL ) / 22 * + - 54 ) ) col1
----
94

skipif mysql # not compatible
query I rowsort label-1433
SELECT + + ( + NULLIF ( 94, + 53 + + CAST ( NULL AS REAL ) / 22 * + - 54 ) ) col1
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-1434
SELECT + - CASE + SUM( DISTINCT - + 8 ) WHEN - 24 * 32 THEN 83 * + - 72 + COUNT( * ) END * + - 86 + 68 + 34 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1434
SELECT + - CASE + SUM ( DISTINCT - + 8 ) WHEN - 24 * 32 THEN 83 * + - 72 + COUNT ( * ) END * + - 86 + 68 + 34 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1435
SELECT DISTINCT - 22 * + - CAST( NULL AS SIGNED ) - + - 41
----
NULL

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1437
SELECT ALL - 11 * + CASE + + 17 WHEN - - 73 THEN NULL WHEN NULLIF ( - 7, - 4 ) THEN + + 42 / - + MIN( ( + 98 ) ) * + 86 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1437
SELECT ALL - 11 * + CASE + + 17 WHEN - - 73 THEN NULL WHEN NULLIF ( - 7, - 4 ) THEN + + 42 / - + MIN ( ( + 98 ) ) * + 86 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1438
SELECT 96 * + CASE - + 18 WHEN ( + COUNT( * ) ) * + 40 * + COUNT( DISTINCT 44 ) THEN NULL ELSE + 8 END
----
768

skipif mysql # not compatible
query I rowsort label-1438
SELECT 96 * + CASE - + 18 WHEN ( + COUNT ( * ) ) * + 40 * + COUNT ( DISTINCT 44 ) THEN NULL ELSE + 8 END
----
768

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1439
SELECT ALL + CAST( NULL AS DECIMAL ) - - - 2 - 36 - - ( + 15 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1439
SELECT ALL + CAST ( NULL AS REAL ) - - - 2 - 36 - - ( + 15 ) AS col1
----
NULL

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

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

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

skipif mysql # not compatible
query I rowsort label-1441
SELECT DISTINCT - + COUNT ( 61 ) AS col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1442
SELECT ( + + 77 ) * + - 4 * + 2 AS col1, COUNT( CAST( - 83 AS SIGNED ) )
----
-616
1

skipif mysql # not compatible
query II rowsort label-1442
SELECT ( + + 77 ) * + - 4 * + 2 AS col1, COUNT ( CAST ( - 83 AS INTEGER ) )
----
-616
1

onlyif mysql # aggregate syntax: 
query II rowsort label-1443
SELECT MAX( 56 ) AS col2, - 42
----
56
-42

skipif mysql # not compatible
query II rowsort label-1443
SELECT MAX ( 56 ) AS col2, - 42
----
56
-42

query I rowsort
SELECT ALL 37 - + 97 AS col2
----
-60

onlyif mysql # DIV for integer division: 
query I rowsort label-1445
SELECT 61 DIV COALESCE ( - 72, + ( + 4 ) ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1445
SELECT 61 / COALESCE ( - 72, + ( + 4 ) ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1446
SELECT MIN( ALL + + 90 ) * + 79
----
7110

skipif mysql # not compatible
query I rowsort label-1446
SELECT MIN ( ALL + + 90 ) * + 79
----
7110

query I rowsort
SELECT DISTINCT 72 * 23 AS col1
----
1656

onlyif mysql # DIV for integer division: 
query I rowsort label-1448
SELECT DISTINCT 83 DIV 2 AS col2
----
41

skipif mysql # not compatible
query I rowsort label-1448
SELECT DISTINCT 83 / 2 AS col2
----
41

onlyif mysql # aggregate syntax: 
query II rowsort label-1449
SELECT ALL 9, - 62 * - SUM( + + 2 ) AS col0
----
9
124

skipif mysql # not compatible
query II rowsort label-1449
SELECT ALL 9, - 62 * - SUM ( + + 2 ) AS col0
----
9
124

query I rowsort
SELECT DISTINCT 36 * - 97
----
-3492

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1451
SELECT MIN( ALL + 86 ) - 96 - - + 7 * + CAST( NULL AS SIGNED ) / + 53 + + 82
----
NULL

skipif mysql # not compatible
query I rowsort label-1451
SELECT MIN ( ALL + 86 ) - 96 - - + 7 * + CAST ( NULL AS INTEGER ) / + 53 + + 82
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1452
SELECT DISTINCT 30 + + ( - COUNT( ALL 97 ) ) + - 28 AS col2, + COALESCE ( MIN( + 60 ), - + 12 )
----
1
60

skipif mysql # not compatible
query II rowsort label-1452
SELECT DISTINCT 30 + + ( - COUNT ( ALL 97 ) ) + - 28 AS col2, + COALESCE ( MIN ( + 60 ), - + 12 )
----
1
60

query I rowsort
SELECT 86 * - + 73
----
-6278

onlyif mysql # aggregate syntax: 
query I rowsort label-1454
SELECT DISTINCT 64 + - + 96 + + + ( - - MIN( - 94 ) )
----
-126

skipif mysql # not compatible
query I rowsort label-1454
SELECT DISTINCT 64 + - + 96 + + + ( - - MIN ( - 94 ) )
----
-126

query II rowsort
SELECT - 77 AS col2, 39
----
-77
39

query I rowsort
SELECT 31 + + 53
----
84

query I rowsort
SELECT ALL - 2 + 70
----
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1458
SELECT COUNT( * ) * - CAST( NULLIF ( - - ( 22 ), - 52 * - CAST( 18 AS SIGNED ) * + 10 + 2 ) AS SIGNED ) * 25 AS col0
----
-550

skipif mysql # not compatible
query I rowsort label-1458
SELECT COUNT ( * ) * - CAST ( NULLIF ( - - ( 22 ), - 52 * - CAST ( 18 AS INTEGER ) * + 10 + 2 ) AS INTEGER ) * 25 AS col0
----
-550

query I rowsort
SELECT DISTINCT 29 + - + 30 AS col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1460
SELECT DISTINCT - CASE + COUNT( * ) WHEN MAX( ALL + + 37 ) THEN + ( - CAST( NULL AS SIGNED ) ) * + + 94 ELSE NULL END + - 73
----
NULL

skipif mysql # not compatible
query I rowsort label-1460
SELECT DISTINCT - CASE + COUNT ( * ) WHEN MAX ( ALL + + 37 ) THEN + ( - CAST ( NULL AS INTEGER ) ) * + + 94 ELSE NULL END + - 73
----
NULL

query I rowsort
SELECT DISTINCT + 30 + - 66 AS col2
----
-36

query II rowsort
SELECT DISTINCT 93 AS col2, - 66 + 75 * + - 32 * + 15 + + - 11 AS col1
----
93
-36077

query I rowsort
SELECT ALL - - 96 + - COALESCE ( 17, - ( + 56 ) ) AS col1
----
79

onlyif mysql # aggregate syntax: 
query II rowsort label-1464
SELECT ALL - 52 AS col1, 27 + - - CASE + 53 WHEN CASE 3 WHEN + NULLIF ( - 28, ( - 37 ) ) THEN + 29 + MIN( 11 ) / + ( 38 ) END THEN - 53 END AS col2
----
-52
NULL

skipif mysql # not compatible
query II rowsort label-1464
SELECT ALL - 52 AS col1, 27 + - - CASE + 53 WHEN CASE 3 WHEN + NULLIF ( - 28, ( - 37 ) ) THEN + 29 + MIN ( 11 ) / + ( 38 ) END THEN - 53 END AS col2
----
-52
NULL

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

skipif mysql # not compatible
query I rowsort label-1465
SELECT - - MAX ( ALL - 11 )
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-1466
SELECT - + NULLIF ( 28, - COUNT( + + 22 ) ) AS col2
----
-28

skipif mysql # not compatible
query I rowsort label-1466
SELECT - + NULLIF ( 28, - COUNT ( + + 22 ) ) AS col2
----
-28

onlyif mysql # aggregate syntax: 
query II rowsort label-1467
SELECT ALL + + 59 * + 23 - - + 49 AS col2, MIN( 73 ) AS col0
----
1406
73

skipif mysql # not compatible
query II rowsort label-1467
SELECT ALL + + 59 * + 23 - - + 49 AS col2, MIN ( 73 ) AS col0
----
1406
73

query II rowsort
SELECT ALL - 44 AS col1, 90
----
-44
90

query II rowsort
SELECT + 70, - 47 col2
----
70
-47

query II rowsort
SELECT ALL - 78 * + 77 - - 60, - CASE - - 86 WHEN - 92 + 86 + 62 THEN - 59 END AS col2
----
-5946
NULL

query I rowsort
SELECT 41 * 79 AS col0
----
3239

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1472
SELECT - COUNT( * ) * - - CAST( NULL AS SIGNED ) - - 62 + - - NULLIF ( + + 17, - 12 + ( - 29 ) + + 66 * + 24 ) + - 2
----
NULL

skipif mysql # not compatible
query I rowsort label-1472
SELECT - COUNT ( * ) * - - CAST ( NULL AS INTEGER ) - - 62 + - - NULLIF ( + + 17, - 12 + ( - 29 ) + + 66 * + 24 ) + - 2
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1474
SELECT + ( + CAST( NULL AS SIGNED ) ) * - + 45 + + 94 + - - COUNT( * ) AS col0, 73
----
NULL
73

skipif mysql # not compatible
query II rowsort label-1474
SELECT + ( + CAST ( NULL AS INTEGER ) ) * - + 45 + + 94 + - - COUNT ( * ) AS col0, 73
----
NULL
73

onlyif mysql # aggregate syntax: 
query I rowsort label-1475
SELECT - - COUNT( * ) + ( 65 ) + - 8 * SUM( ALL NULLIF ( - + 15, + + 94 ) ) AS col0
----
186

skipif mysql # not compatible
query I rowsort label-1475
SELECT - - COUNT ( * ) + ( 65 ) + - 8 * SUM ( ALL NULLIF ( - + 15, + + 94 ) ) AS col0
----
186

query I rowsort
SELECT DISTINCT - - 74 * + ( - 12 ) AS col1
----
-888

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

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

query II rowsort
SELECT ALL 31 * 80, + 30 * - ( + 96 ) AS col1
----
2480
-2880

onlyif mysql # aggregate syntax: 
query I rowsort label-1479
SELECT DISTINCT - 60 * + MIN( 78 )
----
-4680

skipif mysql # not compatible
query I rowsort label-1479
SELECT DISTINCT - 60 * + MIN ( 78 )
----
-4680

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1480
SELECT + CASE WHEN + ( + 15 ) IS NOT NULL THEN + 17 + COUNT( * ) ELSE 10 END DIV - 81 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1480
SELECT + CASE WHEN + ( + 15 ) IS NOT NULL THEN + 17 + COUNT ( * ) ELSE 10 END / - 81 AS col1
----
0

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

skipif mysql # not compatible
query I rowsort label-1481
SELECT ALL + COUNT ( * ) + - + 60 / ( 22 ) * - 27
----
55

query I rowsort
SELECT - COALESCE ( - 63, + 48, 49 ) * + - 19 AS col0
----
-1197

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1483
SELECT + 59 DIV 58 * + ( - 98 ) * - COUNT( * ) AS col0
----
98

skipif mysql # not compatible
query I rowsort label-1483
SELECT + 59 / 58 * + ( - 98 ) * - COUNT ( * ) AS col0
----
98

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1484
SELECT + 18 + - - 71 + + + 42 DIV CAST( + - 47 AS SIGNED )
----
89

skipif mysql # not compatible
query I rowsort label-1484
SELECT + 18 + - - 71 + + + 42 / CAST ( + - 47 AS INTEGER )
----
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1485
SELECT ALL 24 + CASE - 38 WHEN - 29 * - - NULLIF ( MIN( DISTINCT - 5 ), 47 * - 75 ) / 91 THEN NULL ELSE - - CAST( - 95 AS SIGNED ) END
----
-71

skipif mysql # not compatible
query I rowsort label-1485
SELECT ALL 24 + CASE - 38 WHEN - 29 * - - NULLIF ( MIN ( DISTINCT - 5 ), 47 * - 75 ) / 91 THEN NULL ELSE - - CAST ( - 95 AS INTEGER ) END
----
-71

query I rowsort
SELECT + 6 * + 59 AS col1
----
354

query I rowsort
SELECT ALL ( - + 92 ) * + 68 AS col2
----
-6256

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

skipif mysql # not compatible
query I rowsort label-1488
SELECT + 23 / COUNT ( * ) col1
----
23

query I rowsort
SELECT DISTINCT + 98 + - 94 AS col1
----
4

query II rowsort
SELECT ALL 30 AS col1, - 91 + - 96 AS col1
----
30
-187

onlyif mysql # aggregate syntax: 
query I rowsort label-1491
SELECT - NULLIF ( + - 93, + 40 * COUNT( * ) + + AVG ( DISTINCT - - 26 ) ) AS col1
----
93

skipif mysql # not compatible
query I rowsort label-1491
SELECT - NULLIF ( + - 93, + 40 * COUNT ( * ) + + AVG ( DISTINCT - - 26 ) ) AS col1
----
93

onlyif mysql # aggregate syntax: 
query II rowsort label-1492
SELECT - CASE + + MIN( ALL 76 ) WHEN 44 + 82 * + 65 THEN - COUNT( * ) ELSE NULL END, 30 col0
----
NULL
30

skipif mysql # not compatible
query II rowsort label-1492
SELECT - CASE + + MIN ( ALL 76 ) WHEN 44 + 82 * + 65 THEN - COUNT ( * ) ELSE NULL END, 30 col0
----
NULL
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1493
SELECT ALL ( ( 1 ) ) * - 77 * CASE + CAST( + 15 AS SIGNED ) WHEN - 78 THEN - - COUNT( * ) DIV - - 55 ELSE - 71 + - 73 END
----
11088

skipif mysql # not compatible
query I rowsort label-1493
SELECT ALL ( ( 1 ) ) * - 77 * CASE + CAST ( + 15 AS INTEGER ) WHEN - 78 THEN - - COUNT ( * ) / - - 55 ELSE - 71 + - 73 END
----
11088

query I rowsort
SELECT - 87 + 19 AS col0
----
-68

query I rowsort
SELECT + ( + 46 ) + + 87 col0
----
133

onlyif mysql # aggregate syntax: 
query I rowsort label-1496
SELECT DISTINCT 58 - COUNT( * ) * + + 21
----
37

skipif mysql # not compatible
query I rowsort label-1496
SELECT DISTINCT 58 - COUNT ( * ) * + + 21
----
37

query II rowsort
SELECT ALL 80, + 77 AS col0
----
80
77

onlyif mysql # aggregate syntax: 
query I rowsort label-1498
SELECT + - COALESCE ( - NULLIF ( - 33, + CASE WHEN - 89 NOT BETWEEN - + COALESCE ( + + 64, + 48 ) * + - 14 + + 11 + COALESCE ( 39, COUNT( * ), 98 * ( + 87 ) + 36 ) * 79 AND 28 THEN COUNT( * ) + - ( 87 + 71 ) END - 15 / ( 14 ) ), 27, SUM( 28 ) ) + 34
----
1

skipif mysql # not compatible
query I rowsort label-1498
SELECT + - COALESCE ( - NULLIF ( - 33, + CASE WHEN - 89 NOT BETWEEN - + COALESCE ( + + 64, + 48 ) * + - 14 + + 11 + COALESCE ( 39, COUNT ( * ), 98 * ( + 87 ) + 36 ) * 79 AND 28 THEN COUNT ( * ) + - ( 87 + 71 ) END - 15 / ( 14 ) ), 27, SUM ( 28 ) ) + 34
----
1

query II rowsort
SELECT ALL + - 43 AS col2, - 88
----
-43
-88

onlyif mysql # DIV for integer division: 
query I rowsort label-1500
SELECT ALL - COALESCE ( 13, + - ( + 58 ) ) DIV + + 13 - + + 63 + - - ( + 54 ) AS col1
----
-10

skipif mysql # not compatible
query I rowsort label-1500
SELECT ALL - COALESCE ( 13, + - ( + 58 ) ) / + + 13 - + + 63 + - - ( + 54 ) AS col1
----
-10

onlyif mysql # DIV for integer division: 
query I rowsort label-1501
SELECT - 6 DIV 87 + 41 AS col1
----
41

skipif mysql # not compatible
query I rowsort label-1501
SELECT - 6 / 87 + 41 AS col1
----
41

onlyif mysql # DIV for integer division: 
query I rowsort label-1502
SELECT 92 DIV + 74 + 69 + - 24 * + + 38
----
-842

skipif mysql # not compatible
query I rowsort label-1502
SELECT 92 / + 74 + 69 + - 24 * + + 38
----
-842

query I rowsort
SELECT - - 34 * 44 AS col2
----
1496

query II rowsort
SELECT 8, 18 * + 64 AS col1
----
8
1152

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1506
SELECT - 32 + - COUNT( - - 13 )
----
-33

skipif mysql # not compatible
query I rowsort label-1506
SELECT - 32 + - COUNT ( - - 13 )
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-1507
SELECT + 75 * - + MAX( - 95 ) * 0 + - COUNT( * ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-1507
SELECT + 75 * - + MAX ( - 95 ) * 0 + - COUNT ( * ) AS col1
----
-1

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1509
SELECT ALL - 73 * + 58 + + COUNT( ALL + CAST( + - 36 AS DECIMAL ) ) - - - 46 AS col0
----
-4279

skipif mysql # not compatible
query I rowsort label-1509
SELECT ALL - 73 * + 58 + + COUNT ( ALL + CAST ( + - 36 AS REAL ) ) - - - 46 AS col0
----
-4279

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1510
SELECT ALL - CASE 35 WHEN - CASE - 84 WHEN - + 7 THEN 78 ELSE NULL END - 17 * - CAST( NULL AS SIGNED ) THEN NULL ELSE + 89 END * 91
----
-8099

skipif mysql # not compatible
query I rowsort label-1510
SELECT ALL - CASE 35 WHEN - CASE - 84 WHEN - + 7 THEN 78 ELSE NULL END - 17 * - CAST ( NULL AS INTEGER ) THEN NULL ELSE + 89 END * 91
----
-8099

onlyif mysql # aggregate syntax: 
query I rowsort label-1511
SELECT DISTINCT + COALESCE ( NULLIF ( 57, - 7 / COUNT( * ) + - 35 - + 97 * + ( + COUNT( + ( ( - + 29 ) ) ) ) ), 44 )
----
57

skipif mysql # not compatible
query I rowsort label-1511
SELECT DISTINCT + COALESCE ( NULLIF ( 57, - 7 / COUNT ( * ) + - 35 - + 97 * + ( + COUNT ( + ( ( - + 29 ) ) ) ) ), 44 )
----
57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1512
SELECT DISTINCT 19 * - MAX( ALL - 40 ) DIV - - 8 + + 45 * + 14 * + 44 + + COUNT( - 19 )
----
27816

skipif mysql # not compatible
query I rowsort label-1512
SELECT DISTINCT 19 * - MAX ( ALL - 40 ) / - - 8 + + 45 * + 14 * + 44 + + COUNT ( - 19 )
----
27816

onlyif mysql # aggregate syntax: 
query I rowsort label-1513
SELECT ALL 88 * 13 + - COUNT( * )
----
1143

skipif mysql # not compatible
query I rowsort label-1513
SELECT ALL 88 * 13 + - COUNT ( * )
----
1143

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1514
SELECT NULLIF ( + 82, - + 72 * - CAST( NULL AS SIGNED ) * - + 1 + + + 27 + - - 12 ) col0, 22 * - + 16 + ( COUNT( * ) ) col1
----
82
-351

skipif mysql # not compatible
query II rowsort label-1514
SELECT NULLIF ( + 82, - + 72 * - CAST ( NULL AS INTEGER ) * - + 1 + + + 27 + - - 12 ) col0, 22 * - + 16 + ( COUNT ( * ) ) col1
----
82
-351

onlyif mysql # aggregate syntax: 
query I rowsort label-1515
SELECT NULLIF ( - + COUNT( * ), - + ( - 77 ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-1515
SELECT NULLIF ( - + COUNT ( * ), - + ( - 77 ) ) AS col2
----
-1

query I rowsort
SELECT NULLIF ( + 65, - 51 ) AS col0
----
65

query I rowsort
SELECT - 18 * - 99
----
1782

onlyif mysql # aggregate syntax: 
query I rowsort label-1518
SELECT CASE + 79 WHEN - 41 * - + 65 - 44 - + COUNT( * ) THEN NULL WHEN COALESCE ( - 26, ( MAX( DISTINCT - 14 ) ) * + AVG ( ALL 70 ), - 54 ) + - 44 THEN + 18 ELSE 27 + 42 END AS col0
----
69

skipif mysql # not compatible
query I rowsort label-1518
SELECT CASE + 79 WHEN - 41 * - + 65 - 44 - + COUNT ( * ) THEN NULL WHEN COALESCE ( - 26, ( MAX ( DISTINCT - 14 ) ) * + AVG ( ALL 70 ), - 54 ) + - 44 THEN + 18 ELSE 27 + 42 END AS col0
----
69

query I rowsort
SELECT DISTINCT - 12 * + 62 + - 12 AS col1
----
-756

onlyif mysql # aggregate syntax: 
query I rowsort label-1520
SELECT ALL + SUM( ALL + 3 ) * 27 - + 91 - + CASE + MAX( + - 87 ) WHEN + 57 * + - 3 * + 14 + - + ( + + ( - COUNT( * ) ) ) THEN NULL WHEN COUNT( * ) THEN 91 + 30 END + + 67 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1520
SELECT ALL + SUM ( ALL + 3 ) * 27 - + 91 - + CASE + MAX ( + - 87 ) WHEN + 57 * + - 3 * + 14 + - + ( + + ( - COUNT ( * ) ) ) THEN NULL WHEN COUNT ( * ) THEN 91 + 30 END + + 67 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1521
SELECT DISTINCT + ( - MIN( - - 73 ) ) - 23 AS col0
----
-96

skipif mysql # not compatible
query I rowsort label-1521
SELECT DISTINCT + ( - MIN ( - - 73 ) ) - 23 AS col0
----
-96

query II rowsort
SELECT + - 48 + 99 col1, - 68 * - 2
----
51
136

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1523
SELECT + 91 DIV + + 34 + + + COUNT( * ) AS col0
----
3

skipif mysql # not compatible
query I rowsort label-1523
SELECT + 91 / + + 34 + + + COUNT ( * ) AS col0
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1524
SELECT ALL + 68 DIV 27, + COUNT( * ) AS col0
----
2
1

skipif mysql # not compatible
query II rowsort label-1524
SELECT ALL + 68 / 27, + COUNT ( * ) AS col0
----
2
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1525
SELECT DISTINCT - + 21 - ( - 64 ) * + 62 / - 53 + - CAST( NULL AS SIGNED ) * - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-1525
SELECT DISTINCT - + 21 - ( - 64 ) * + 62 / - 53 + - CAST ( NULL AS INTEGER ) * - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1526
SELECT DISTINCT 87 * COUNT( * ), - ( - 62 ) AS col0
----
87
62

skipif mysql # not compatible
query II rowsort label-1526
SELECT DISTINCT 87 * COUNT ( * ), - ( - 62 ) AS col0
----
87
62

onlyif mysql # aggregate syntax: 
query I rowsort label-1527
SELECT + - 29 + COUNT( * ) * - + 81 AS col1
----
-110

skipif mysql # not compatible
query I rowsort label-1527
SELECT + - 29 + COUNT ( * ) * - + 81 AS col1
----
-110

onlyif mysql # aggregate syntax: 
query I rowsort label-1528
SELECT ALL - + 70 / - 30 * - - 71 + CASE - 50 WHEN COUNT( ALL 79 ) * 57 - + 62 THEN - COUNT( * ) * - 27 - ( - 84 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1528
SELECT ALL - + 70 / - 30 * - - 71 + CASE - 50 WHEN COUNT ( ALL 79 ) * 57 - + 62 THEN - COUNT ( * ) * - 27 - ( - 84 ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1529
SELECT DISTINCT SUM( + + NULLIF ( - + 36, - 88 ) )
----
-36

skipif mysql # not compatible
query I rowsort label-1529
SELECT DISTINCT SUM ( + + NULLIF ( - + 36, - 88 ) )
----
-36

query I rowsort
SELECT DISTINCT ( - - 17 ) AS col1
----
17

query I rowsort
SELECT - NULLIF ( + 37, + 58 * - - 64 ) - + 26 AS col1
----
-63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1532
SELECT + SUM( DISTINCT ( 28 ) ) DIV + 34 + - 13 + NULLIF ( + 94, + AVG ( - ( - 51 ) ) ) - + 73 + - 39 DIV + 57 AS col1
----
8

skipif mysql # not compatible
query I rowsort label-1532
SELECT + SUM ( DISTINCT ( 28 ) ) / + 34 + - 13 + NULLIF ( + 94, + AVG ( - ( - 51 ) ) ) - + 73 + - 39 / + 57 AS col1
----
8

query I rowsort
SELECT ALL 76 * + 75 AS col0
----
5700

onlyif mysql # aggregate syntax: 
query I rowsort label-1534
SELECT SUM( ALL - 40 ) * + - COUNT( * ) + 39 - - MIN( ALL + 30 ) - - - 36 - + - 71 col2
----
144

skipif mysql # not compatible
query I rowsort label-1534
SELECT SUM ( ALL - 40 ) * + - COUNT ( * ) + 39 - - MIN ( ALL + 30 ) - - - 36 - + - 71 col2
----
144

query I rowsort
SELECT ALL - CASE + 56 WHEN + - 76 - - - 99 THEN - 20 * + COALESCE ( + + NULLIF ( 92, - 71 ), + NULLIF ( - 5, - 97 * 4 ) * + ( 26 ), 39, - 88 ) + 28 ELSE - 86 END AS col1
----
86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1536
SELECT DISTINCT 61 + + CAST( 46 AS SIGNED ) * + 84 - - 96 + 30 - + + NULLIF ( - + 2, 33 )
----
4053

skipif mysql # not compatible
query I rowsort label-1536
SELECT DISTINCT 61 + + CAST ( 46 AS INTEGER ) * + 84 - - 96 + 30 - + + NULLIF ( - + 2, 33 )
----
4053

onlyif mysql # DIV for integer division: 
query II rowsort label-1537
SELECT + 42 AS col1, - 32 * + 1 + + 87 DIV + 46 + 90 AS col2
----
42
59

skipif mysql # not compatible
query II rowsort label-1537
SELECT + 42 AS col1, - 32 * + 1 + + 87 / + 46 + 90 AS col2
----
42
59

query I rowsort
SELECT 6 - + 64
----
-58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1539
SELECT - COUNT( * ) * + 4 * 28 - - 38 DIV + 22 AS col1
----
-111

skipif mysql # not compatible
query I rowsort label-1539
SELECT - COUNT ( * ) * + 4 * 28 - - 38 / + 22 AS col1
----
-111

onlyif mysql # aggregate syntax: 
query II rowsort label-1540
SELECT + 53 AS col2, 32 + COUNT( * )
----
53
33

skipif mysql # not compatible
query II rowsort label-1540
SELECT + 53 AS col2, 32 + COUNT ( * )
----
53
33

query I rowsort
SELECT 89 + 10
----
99

query I rowsort
SELECT 96 * - 94 * 49 AS col1
----
-442176

onlyif mysql # aggregate syntax: 
query II rowsort label-1543
SELECT DISTINCT - 70 * - MAX( - 24 ), 79 - + 72 AS col1
----
-1680
7

skipif mysql # not compatible
query II rowsort label-1543
SELECT DISTINCT - 70 * - MAX ( - 24 ), 79 - + 72 AS col1
----
-1680
7

query I rowsort
SELECT ( - ( + 84 ) ) + - 70 col1
----
-154

query I rowsort
SELECT 16 * - 65 + + 61 col2
----
-979

query II rowsort
SELECT ALL - 86 AS col2, ( - - 13 ) AS col1
----
-86
13

query I rowsort
SELECT 24 + + 50 AS col2
----
74

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

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

query I rowsort
SELECT 50 + 33
----
83

onlyif mysql # aggregate syntax: 
query II rowsort label-1550
SELECT 38 AS col0, - MAX( - 40 ) - - - 55 * + 58 + - 82
----
38
-3232

skipif mysql # not compatible
query II rowsort label-1550
SELECT 38 AS col0, - MAX ( - 40 ) - - - 55 * + 58 + - 82
----
38
-3232

onlyif mysql # aggregate syntax: 
query II rowsort label-1551
SELECT ALL + NULLIF ( - + 1, - + COUNT( * ) + - - 95 ) * ( - 41 ), - 63 AS col1
----
41
-63

skipif mysql # not compatible
query II rowsort label-1551
SELECT ALL + NULLIF ( - + 1, - + COUNT ( * ) + - - 95 ) * ( - 41 ), - 63 AS col1
----
41
-63

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

query I rowsort
SELECT 70 + - 9 col0
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-1554
SELECT DISTINCT + COALESCE ( - 29, + 88, COUNT( * ) + - 1 * + 38 * - + 86 * - + 43 ) * + + 32
----
-928

skipif mysql # not compatible
query I rowsort label-1554
SELECT DISTINCT + COALESCE ( - 29, + 88, COUNT ( * ) + - 1 * + 38 * - + 86 * - + 43 ) * + + 32
----
-928

query I rowsort
SELECT DISTINCT - 95 * - 88 + 87 AS col0
----
8447

query I rowsort
SELECT - CASE - + 65 WHEN - 75 * 11 THEN + 76 ELSE 3 END * - 6 AS col0
----
18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1557
SELECT 50 + CAST( 92 AS SIGNED ) AS col2
----
142

skipif mysql # not compatible
query I rowsort label-1557
SELECT 50 + CAST ( 92 AS INTEGER ) AS col2
----
142

query II rowsort
SELECT - 8 - - 37 * - 65, 29 AS col0
----
-2413
29

query II rowsort
SELECT COALESCE ( + + ( + 91 ), - 29 * + - 37 * - 25 * - 23 ) - - 87, 88 col1
----
178
88

query I rowsort
SELECT + 30 * 15
----
450

query II rowsort
SELECT ALL ( + 52 ) + + + 46 AS col1, + 20
----
98
20

query II rowsort
SELECT DISTINCT 5 AS col0, ( + - 29 ) * - 23 AS col2
----
5
667

query I rowsort
SELECT 65 + 44
----
109

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1564
SELECT DISTINCT COUNT( * ) * + CAST( - 75 AS SIGNED ) * - 58 * 30 * - 23 * - - 46 + - + 33
----
-138069033

skipif mysql # not compatible
query I rowsort label-1564
SELECT DISTINCT COUNT ( * ) * + CAST ( - 75 AS INTEGER ) * - 58 * 30 * - 23 * - - 46 + - + 33
----
-138069033

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-1565
SELECT ALL - 68, + 43 + + 55 + + + 37 + - - COUNT( * ) * - NULLIF ( - CASE - 20 WHEN + - 92 THEN NULL WHEN + + CAST( + 49 AS DECIMAL ) THEN + + 18 END, 13 * 68 ) + CAST( NULL AS SIGNED ) * + 21 AS col1
----
-68
NULL

skipif mysql # not compatible
query II rowsort label-1565
SELECT ALL - 68, + 43 + + 55 + + + 37 + - - COUNT ( * ) * - NULLIF ( - CASE - 20 WHEN + - 92 THEN NULL WHEN + + CAST ( + 49 AS REAL ) THEN + + 18 END, 13 * 68 ) + CAST ( NULL AS INTEGER ) * + 21 AS col1
----
-68
NULL

query I rowsort
SELECT + NULLIF ( - 33, 71 + 49 ) * + 15 - + 91 + - - 75
----
-511

query I rowsort
SELECT ALL + 60 + - 47
----
13

query II rowsort
SELECT + 45 col1, + 98 col2
----
45
98

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1569
SELECT COUNT( * ) DIV 46 + 52 AS col1, + COUNT( * ) * + - MAX( DISTINCT - 23 ) + + 60 AS col1
----
52
83

skipif mysql # not compatible
query II rowsort label-1569
SELECT COUNT ( * ) / 46 + 52 AS col1, + COUNT ( * ) * + - MAX ( DISTINCT - 23 ) + + 60 AS col1
----
52
83

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1570
SELECT + 34 DIV - COALESCE ( - - COUNT( * ), 42 ) + + 95
----
61

skipif mysql # not compatible
query I rowsort label-1570
SELECT + 34 / - COALESCE ( - - COUNT ( * ), 42 ) + + 95
----
61

query I rowsort
SELECT ALL 72 * + 22 * - + 71
----
-112464

onlyif mysql # aggregate syntax: 
query I rowsort label-1572
SELECT MAX( DISTINCT + 9 ) * 17
----
153

skipif mysql # not compatible
query I rowsort label-1572
SELECT MAX ( DISTINCT + 9 ) * 17
----
153

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1573
SELECT CAST( NULL AS SIGNED ) + 74 AS col1, - COUNT( * )
----
NULL
-1

skipif mysql # not compatible
query II rowsort label-1573
SELECT CAST ( NULL AS INTEGER ) + 74 AS col1, - COUNT ( * )
----
NULL
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-1574
SELECT MIN( - 94 ) AS col1, - 94 * - 59
----
-94
5546

skipif mysql # not compatible
query II rowsort label-1574
SELECT MIN ( - 94 ) AS col1, - 94 * - 59
----
-94
5546

onlyif mysql # aggregate syntax: 
query I rowsort label-1575
SELECT 5 * - COALESCE ( - 43, + ( + MIN( - 29 ) ) + COUNT( 96 ) + - 37 ) AS col1
----
215

skipif mysql # not compatible
query I rowsort label-1575
SELECT 5 * - COALESCE ( - 43, + ( + MIN ( - 29 ) ) + COUNT ( 96 ) + - 37 ) AS col1
----
215

query II rowsort
SELECT ALL 12 * 11 AS col0, 38 col2
----
132
38

query I rowsort
SELECT ALL - 44 col2
----
-44

onlyif mysql # aggregate syntax: 
query II rowsort label-1578
SELECT + MAX( 10 ) AS col0, COUNT( * ) * 18 col0
----
10
18

skipif mysql # not compatible
query II rowsort label-1578
SELECT + MAX ( 10 ) AS col0, COUNT ( * ) * 18 col0
----
10
18

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1580
SELECT 20 * - CASE - 34 WHEN - 34 THEN NULL WHEN - - 61 THEN + + SUM( DISTINCT COALESCE ( - 37, 52 ) ) * - COALESCE ( + - MAX( ALL 6 ), + + 92 + - 43 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1580
SELECT 20 * - CASE - 34 WHEN - 34 THEN NULL WHEN - - 61 THEN + + SUM ( DISTINCT COALESCE ( - 37, 52 ) ) * - COALESCE ( + - MAX ( ALL 6 ), + + 92 + - 43 ) END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1581
SELECT 56 * - 61, 32 - NULLIF ( + ( 10 ), - + 11 * 7 + - SUM( - + CAST( NULL AS SIGNED ) ) ) col1
----
-3416
22

skipif mysql # not compatible
query II rowsort label-1581
SELECT 56 * - 61, 32 - NULLIF ( + ( 10 ), - + 11 * 7 + - SUM ( - + CAST ( NULL AS INTEGER ) ) ) col1
----
-3416
22

query I rowsort
SELECT DISTINCT 52 * 50 AS col2
----
2600

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1584
SELECT ALL MIN( + 35 ) * + + 56 + 89 col1
----
2049

skipif mysql # not compatible
query I rowsort label-1584
SELECT ALL MIN ( + 35 ) * + + 56 + 89 col1
----
2049

onlyif mysql # aggregate syntax: 
query I rowsort label-1585
SELECT 76 * + 22 + + + COUNT( * ) AS col1
----
1673

skipif mysql # not compatible
query I rowsort label-1585
SELECT 76 * + 22 + + + COUNT ( * ) AS col1
----
1673

query I rowsort
SELECT ALL - 65 * - ( 29 )
----
1885

onlyif mysql # aggregate syntax: 
query I rowsort label-1587
SELECT + 88 * + + 21 * COUNT( + - 41 ) * - - 64
----
118272

skipif mysql # not compatible
query I rowsort label-1587
SELECT + 88 * + + 21 * COUNT ( + - 41 ) * - - 64
----
118272

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

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

query I rowsort
SELECT + - 10 * - 0
----
0

query I rowsort
SELECT - 71 + - 96 + 58
----
-109

query I rowsort
SELECT - - 47 - 59 + + 73 AS col2
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-1592
SELECT - MAX( DISTINCT + - 95 ) + 18 AS col2
----
113

skipif mysql # not compatible
query I rowsort label-1592
SELECT - MAX ( DISTINCT + - 95 ) + 18 AS col2
----
113

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

skipif mysql # not compatible
query I rowsort label-1593
SELECT ALL + + 78 + - COUNT ( - 83 ) AS col2
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-1594
SELECT ALL 98 + - + ( - ( - - 28 ) ) * 84 * - + MIN( 13 ) AS col0
----
-30478

skipif mysql # not compatible
query I rowsort label-1594
SELECT ALL 98 + - + ( - ( - - 28 ) ) * 84 * - + MIN ( 13 ) AS col0
----
-30478

query I rowsort
SELECT DISTINCT - + 49 + - 65 + - 27
----
-141

onlyif mysql # DIV for integer division: 
query I rowsort label-1596
SELECT ALL + 64 + - ( + 28 ) DIV - 38
----
64

skipif mysql # not compatible
query I rowsort label-1596
SELECT ALL + 64 + - ( + 28 ) / - 38
----
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1597
SELECT - + CASE + 74 WHEN COUNT( + 74 ) THEN - ( - 95 ) * + - 93 END * CAST( - 76 AS SIGNED ) + + 74 + 22 * - COUNT( - - ( + - 64 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1597
SELECT - + CASE + 74 WHEN COUNT ( + 74 ) THEN - ( - 95 ) * + - 93 END * CAST ( - 76 AS INTEGER ) + + 74 + 22 * - COUNT ( - - ( + - 64 ) )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1598
SELECT ALL - - COUNT( DISTINCT 4 ) + 83 * - 75, COUNT( * ) AS col0
----
-6224
1

skipif mysql # not compatible
query II rowsort label-1598
SELECT ALL - - COUNT ( DISTINCT 4 ) + 83 * - 75, COUNT ( * ) AS col0
----
-6224
1

onlyif mysql # aggregate syntax: 
query II rowsort label-1599
SELECT DISTINCT + - 36 + + 31 AS col1, + 56 * - 97 * + COUNT( * ) AS col2
----
-5
-5432

skipif mysql # not compatible
query II rowsort label-1599
SELECT DISTINCT + - 36 + + 31 AS col1, + 56 * - 97 * + COUNT ( * ) AS col2
----
-5
-5432

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1600
SELECT - NULLIF ( CAST( NULL AS SIGNED ), - 18 * - + 62 * 12 * - 63 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1600
SELECT - NULLIF ( CAST ( NULL AS INTEGER ), - 18 * - + 62 * 12 * - 63 )
----
NULL

query I rowsort
SELECT - - 9 - + - 64
----
73

query I rowsort
SELECT DISTINCT - 0 col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1603
SELECT ALL ( + - ( - MAX( ALL 90 ) ) ) AS col2
----
90

skipif mysql # not compatible
query I rowsort label-1603
SELECT ALL ( + - ( - MAX ( ALL 90 ) ) ) AS col2
----
90

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

skipif mysql # not compatible
query II rowsort label-1604
SELECT - 0 * 19 AS col0, - COUNT ( * )
----
0
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1605
SELECT ( - CASE 18 WHEN - 94 THEN NULL ELSE + - ( 24 ) * - 43 - - + CASE + - 22 WHEN - 75 THEN + 76 * + CAST( NULL AS SIGNED ) + - SUM( DISTINCT - - 97 ) ELSE NULL END - + CAST( COUNT( * ) AS SIGNED ) * + MAX( 55 ) * + 91 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-1605
SELECT ( - CASE 18 WHEN - 94 THEN NULL ELSE + - ( 24 ) * - 43 - - + CASE + - 22 WHEN - 75 THEN + 76 * + CAST ( NULL AS INTEGER ) + - SUM ( DISTINCT - - 97 ) ELSE NULL END - + CAST ( COUNT ( * ) AS INTEGER ) * + MAX ( 55 ) * + 91 END )
----
NULL

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

skipif mysql # not compatible
query I rowsort label-1606
SELECT + MAX ( - 60 )
----
-60

query I rowsort
SELECT ALL - 46 * + 78 * + + 55 - 36
----
-197376

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1609
SELECT 15 * CASE - COALESCE ( - 61, - ( - 6 ), - COUNT( * ) ) WHEN + 57 THEN 65 - CASE 34 WHEN 75 / + AVG ( - + 53 ) * + 72 THEN + 56 WHEN CASE + 37 WHEN 94 THEN 68 END * COALESCE ( - 12 / 77, + 60 + 86 ) + 12 THEN NULL END WHEN 91 / - 41 + + COALESCE ( + 79, + 41 * - 71, 16 * - AVG ( - 86 * - 84 ) ) THEN - 74 * - ( - ( + 20 ) ) + ( 90 ) ELSE NULL END * 58 - 1
----
NULL

skipif mysql # not compatible
query I rowsort label-1609
SELECT 15 * CASE - COALESCE ( - 61, - ( - 6 ), - COUNT ( * ) ) WHEN + 57 THEN 65 - CASE 34 WHEN 75 / + AVG ( - + 53 ) * + 72 THEN + 56 WHEN CASE + 37 WHEN 94 THEN 68 END * COALESCE ( - 12 / 77, + 60 + 86 ) + 12 THEN NULL END WHEN 91 / - 41 + + COALESCE ( + 79, + 41 * - 71, 16 * - AVG ( - 86 * - 84 ) ) THEN - 74 * - ( - ( + 20 ) ) + ( 90 ) ELSE NULL END * 58 - 1
----
NULL

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

skipif mysql # not compatible
query I rowsort label-1610
SELECT DISTINCT COUNT ( * ) / + 8
----
0

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

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

query I rowsort
SELECT ALL + 69 * + 41 - - + ( - 28 ) + - 16 * 27 AS col0
----
2369

onlyif mysql # DIV for integer division: 
query I rowsort label-1613
SELECT + 77 DIV + 83
----
0

skipif mysql # not compatible
query I rowsort label-1613
SELECT + 77 / + 83
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1614
SELECT 52 * + - 41 + + + 53 + + COUNT( * ) col0
----
-2078

skipif mysql # not compatible
query I rowsort label-1614
SELECT 52 * + - 41 + + + 53 + + COUNT ( * ) col0
----
-2078

query I rowsort
SELECT + 53 - + 42
----
11

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

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

query I rowsort
SELECT - 99 + - 36 + - 56
----
-191

onlyif mysql # aggregate syntax: 
query II rowsort label-1618
SELECT + COALESCE ( + MIN( ALL 71 ), - 91 * + + 4 ), 30 + - + CASE COUNT( ALL - 12 ) WHEN - 5 THEN NULL WHEN + 19 THEN + CASE - 32 WHEN + 98 THEN + 87 + ( + 1 ) WHEN 92 * - 8 THEN - SUM( 47 ) WHEN 72 THEN 71 ELSE NULL END * - 21 WHEN + 12 / COALESCE ( 99 * - 75, 51 * 94, + COUNT( * ) ) - 24 THEN + 44 * + 58 + COUNT( * ) / + 45 END AS col0
----
71
NULL

skipif mysql # not compatible
query II rowsort label-1618
SELECT + COALESCE ( + MIN ( ALL 71 ), - 91 * + + 4 ), 30 + - + CASE COUNT ( ALL - 12 ) WHEN - 5 THEN NULL WHEN + 19 THEN + CASE - 32 WHEN + 98 THEN + 87 + ( + 1 ) WHEN 92 * - 8 THEN - SUM ( 47 ) WHEN 72 THEN 71 ELSE NULL END * - 21 WHEN + 12 / COALESCE ( 99 * - 75, 51 * 94, + COUNT ( * ) ) - 24 THEN + 44 * + 58 + COUNT ( * ) / + 45 END AS col0
----
71
NULL

query I rowsort
SELECT + 17 * - 29
----
-493

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

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

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

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

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

query I rowsort
SELECT + 87 * + 39 AS col0
----
3393

onlyif mysql # aggregate syntax: 
query I rowsort label-1624
SELECT + NULLIF ( + 65, + - 27 + 53 + - 64 * MAX( + 41 ) + - ( - 11 ) ) + - 18 AS col0
----
47

skipif mysql # not compatible
query I rowsort label-1624
SELECT + NULLIF ( + 65, + - 27 + 53 + - 64 * MAX ( + 41 ) + - ( - 11 ) ) + - 18 AS col0
----
47

onlyif mysql # aggregate syntax: 
query II rowsort label-1625
SELECT + 72 + 55 + + 10, - 2 + - COUNT( * ) AS col1
----
137
-3

skipif mysql # not compatible
query II rowsort label-1625
SELECT + 72 + 55 + + 10, - 2 + - COUNT ( * ) AS col1
----
137
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1626
SELECT ALL NULLIF ( - 38, - COUNT( * ) ) DIV + 65
----
0

skipif mysql # not compatible
query I rowsort label-1626
SELECT ALL NULLIF ( - 38, - COUNT ( * ) ) / + 65
----
0

query I rowsort
SELECT + 85 * + 58 + + 48 AS col1
----
4978

onlyif mysql # aggregate syntax: 
query I rowsort label-1628
SELECT ALL COUNT( * ) + - - 82
----
83

skipif mysql # not compatible
query I rowsort label-1628
SELECT ALL COUNT ( * ) + - - 82
----
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1629
SELECT ALL COALESCE ( + 51, CAST( NULL AS SIGNED ) * + 38 * + COALESCE ( + + 33, - 67 DIV + ( - + 33 ) * COUNT( * ) * 21 DIV CAST( 92 AS SIGNED ) - 55 ) + + + 2 + + 28 ) + + 58
----
109

skipif mysql # not compatible
query I rowsort label-1629
SELECT ALL COALESCE ( + 51, CAST ( NULL AS INTEGER ) * + 38 * + COALESCE ( + + 33, - 67 / + ( - + 33 ) * COUNT ( * ) * 21 / CAST ( 92 AS INTEGER ) - 55 ) + + + 2 + + 28 ) + + 58
----
109

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

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

query I rowsort
SELECT DISTINCT 0 + + + 73
----
73

query I rowsort
SELECT ALL + 93 + 46
----
139

query I rowsort
SELECT - 71 - 68 AS col1
----
-139

onlyif mysql # DIV for integer division: 
query II rowsort label-1635
SELECT ALL 45 DIV + ( 61 ) * + - NULLIF ( + - 50, - + 44 DIV - + 93 + - 85 ) AS col2, 3 DIV 54 * + 16 + + + 28 AS col2
----
0
28

skipif mysql # not compatible
query II rowsort label-1635
SELECT ALL 45 / + ( 61 ) * + - NULLIF ( + - 50, - + 44 / - + 93 + - 85 ) AS col2, 3 / 54 * + 16 + + + 28 AS col2
----
0
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1636
SELECT - + CAST( + CASE - ( - 15 ) WHEN + + 32 THEN NULL WHEN - 13 * - 78 * + 50 + - - 22 * + COALESCE ( + 32, 25 ) + + COUNT( * ) + COUNT( * ) + - 23 * - 6 THEN NULL WHEN - 25 THEN COUNT( * ) * 99 ELSE NULL END AS SIGNED ) * - 91 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1636
SELECT - + CAST ( + CASE - ( - 15 ) WHEN + + 32 THEN NULL WHEN - 13 * - 78 * + 50 + - - 22 * + COALESCE ( + 32, 25 ) + + COUNT ( * ) + COUNT ( * ) + - 23 * - 6 THEN NULL WHEN - 25 THEN COUNT ( * ) * 99 ELSE NULL END AS INTEGER ) * - 91 AS col1
----
NULL

query II rowsort
SELECT - 80 AS col2, ( 11 )
----
-80
11

query I rowsort
SELECT - 98 + - 73 * - + 68 + - - 97 col0
----
4963

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

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

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

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

query I rowsort
SELECT - 66 * 46 * 9
----
-27324

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1642
SELECT 57 DIV + + 91 + - 20 + MAX( - 5 )
----
-25

skipif mysql # not compatible
query I rowsort label-1642
SELECT 57 / + + 91 + - 20 + MAX ( - 5 )
----
-25

onlyif mysql # aggregate syntax: 
query II rowsort label-1643
SELECT + NULLIF ( 39, + - COUNT( * ) ) * + 81, + CASE - 20 WHEN - + 58 - + + 89 THEN + COUNT( * ) ELSE - 72 END * - - 22 + 21 + + 66 * MIN( - 17 ) AS col0
----
3159
-2685

skipif mysql # not compatible
query II rowsort label-1643
SELECT + NULLIF ( 39, + - COUNT ( * ) ) * + 81, + CASE - 20 WHEN - + 58 - + + 89 THEN + COUNT ( * ) ELSE - 72 END * - - 22 + 21 + + 66 * MIN ( - 17 ) AS col0
----
3159
-2685

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1644
SELECT CAST( CASE + COUNT( * ) WHEN - - MIN( DISTINCT - 84 ) THEN NULL WHEN 17 * 53 THEN - + 34 WHEN - 83 THEN NULL END AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1644
SELECT CAST ( CASE + COUNT ( * ) WHEN - - MIN ( DISTINCT - 84 ) THEN NULL WHEN 17 * 53 THEN - + 34 WHEN - 83 THEN NULL END AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1645
SELECT DISTINCT + CASE + CAST( NULL AS SIGNED ) WHEN - 27 * + + 19 THEN NULL ELSE - - 56 * - + 13 + - COUNT( * ) + + - 94 + + - 46 + - NULLIF ( + 86, - - COUNT( * ) * + 86 ) * - 29 + - ( 79 ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1645
SELECT DISTINCT + CASE + CAST ( NULL AS INTEGER ) WHEN - 27 * + + 19 THEN NULL ELSE - - 56 * - + 13 + - COUNT ( * ) + + - 94 + + - 46 + - NULLIF ( + 86, - - COUNT ( * ) * + 86 ) * - 29 + - ( 79 ) END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1646
SELECT CAST( NULL AS SIGNED ), CAST( NULL AS SIGNED ) + - + COUNT( * ) * + COALESCE ( - + 37, + 13 ) + - 28 * - + COUNT( * ) * - - COUNT( * ) col2
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-1646
SELECT CAST ( NULL AS INTEGER ), CAST ( NULL AS INTEGER ) + - + COUNT ( * ) * + COALESCE ( - + 37, + 13 ) + - 28 * - + COUNT ( * ) * - - COUNT ( * ) col2
----
NULL
NULL

query I rowsort
SELECT - 0 * - 5
----
0

query II rowsort
SELECT ALL + 11, - 43 AS col2
----
11
-43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1649
SELECT ALL ( - COUNT( * ) ) / + 59 + - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1649
SELECT ALL ( - COUNT ( * ) ) / + 59 + - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1650
SELECT ALL + CASE + 5 WHEN + + 63 THEN - CAST( + + 2 AS SIGNED ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1650
SELECT ALL + CASE + 5 WHEN + + 63 THEN - CAST ( + + 2 AS INTEGER ) END AS col2
----
NULL

query I rowsort
SELECT + COALESCE ( 70, 24 ) AS col1
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-1652
SELECT 22 * 54 - + COUNT( * ) col1
----
1187

skipif mysql # not compatible
query I rowsort label-1652
SELECT 22 * 54 - + COUNT ( * ) col1
----
1187

query II rowsort
SELECT + 37 col0, - 16
----
37
-16

onlyif mysql # DIV for integer division: 
query I rowsort label-1654
SELECT - 70 DIV - - 82 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1654
SELECT - 70 / - - 82 AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1655
SELECT + CAST( + 68 AS SIGNED ) + - 11 AS col1
----
57

skipif mysql # not compatible
query I rowsort label-1655
SELECT + CAST ( + 68 AS INTEGER ) + - 11 AS col1
----
57

query II rowsort
SELECT + + 7 AS col1, + 65 * + 41
----
7
2665

onlyif mysql # aggregate syntax: 
query II rowsort label-1657
SELECT ALL 27 + + 74 AS col1, + COUNT( * ) * - + 14 AS col2
----
101
-14

skipif mysql # not compatible
query II rowsort label-1657
SELECT ALL 27 + + 74 AS col1, + COUNT ( * ) * - + 14 AS col2
----
101
-14

query II rowsort
SELECT DISTINCT - 66, 1 AS col1
----
-66
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1659
SELECT DISTINCT + + MAX( ALL + + 98 ) + 90 AS col2
----
188

skipif mysql # not compatible
query I rowsort label-1659
SELECT DISTINCT + + MAX ( ALL + + 98 ) + 90 AS col2
----
188

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1660
SELECT DISTINCT - + CAST( 99 AS SIGNED ) + - + 83 AS col0
----
-182

skipif mysql # not compatible
query I rowsort label-1660
SELECT DISTINCT - + CAST ( 99 AS INTEGER ) + - + 83 AS col0
----
-182

onlyif mysql # aggregate syntax: 
query I rowsort label-1661
SELECT DISTINCT - 75 + + COUNT( * ) + 3 * - + SUM( 76 )
----
-302

skipif mysql # not compatible
query I rowsort label-1661
SELECT DISTINCT - 75 + + COUNT ( * ) + 3 * - + SUM ( 76 )
----
-302

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1662
SELECT ALL - 64 + - CAST( + AVG ( - 95 ) AS SIGNED ) - - 52
----
83

skipif mysql # not compatible
query I rowsort label-1662
SELECT ALL - 64 + - CAST ( + AVG ( - 95 ) AS INTEGER ) - - 52
----
83

query I rowsort
SELECT DISTINCT 72 + + 49
----
121

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1664
SELECT - 77 * - + COUNT( * ) + 45 + 23 + 31 + 80 + + CAST( NULL AS SIGNED ) col2, 35 AS col2
----
NULL
35

skipif mysql # not compatible
query II rowsort label-1664
SELECT - 77 * - + COUNT ( * ) + 45 + 23 + 31 + 80 + + CAST ( NULL AS INTEGER ) col2, 35 AS col2
----
NULL
35

query II rowsort
SELECT - - 63, 62 AS col1
----
63
62

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1667
SELECT + COUNT( - 85 ) + - - 96 col0
----
97

skipif mysql # not compatible
query I rowsort label-1667
SELECT + COUNT ( - 85 ) + - - 96 col0
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-1668
SELECT ALL MIN( DISTINCT + 88 ) - 64 AS col0
----
24

skipif mysql # not compatible
query I rowsort label-1668
SELECT ALL MIN ( DISTINCT + 88 ) - 64 AS col0
----
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1669
SELECT - + CASE + ( 1 ) WHEN - 7 THEN - COALESCE ( 21, + 49 ) * + CAST( NULL AS SIGNED ) DIV NULLIF ( - - 2, - 42 - - CAST( NULL AS SIGNED ) ) * - - COUNT( ALL + - 68 ) + 58 ELSE + SUM( ALL 32 ) * + 57 END AS col1
----
-1824

skipif mysql # not compatible
query I rowsort label-1669
SELECT - + CASE + ( 1 ) WHEN - 7 THEN - COALESCE ( 21, + 49 ) * + CAST ( NULL AS INTEGER ) / NULLIF ( - - 2, - 42 - - CAST ( NULL AS INTEGER ) ) * - - COUNT ( ALL + - 68 ) + 58 ELSE + SUM ( ALL 32 ) * + 57 END AS col1
----
-1824

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

query I rowsort
SELECT DISTINCT 5 - + - 49 - 12
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-1672
SELECT DISTINCT NULLIF ( MIN( ALL + - 86 ), MAX( + + 41 ) + - 90 + - 96 ) * + 87 AS col1
----
-7482

skipif mysql # not compatible
query I rowsort label-1672
SELECT DISTINCT NULLIF ( MIN ( ALL + - 86 ), MAX ( + + 41 ) + - 90 + - 96 ) * + 87 AS col1
----
-7482

onlyif mysql # aggregate syntax: 
query I rowsort label-1673
SELECT 95 - - + 72 * 52 + 31 + + 54 - 3 * + ( 52 ) * + 48 * 31 * + MAX( ALL 75 ) + MAX( ALL 48 ) * 81
----
-17401788

skipif mysql # not compatible
query I rowsort label-1673
SELECT 95 - - + 72 * 52 + 31 + + 54 - 3 * + ( 52 ) * + 48 * 31 * + MAX ( ALL 75 ) + MAX ( ALL 48 ) * 81
----
-17401788

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1675
SELECT 43 * - CAST( + 21 AS SIGNED ) AS col2
----
-903

skipif mysql # not compatible
query I rowsort label-1675
SELECT 43 * - CAST ( + 21 AS INTEGER ) AS col2
----
-903

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1676
SELECT NULLIF ( - 62, - 58 * - 65 ) * + CAST( NULLIF ( 1, - COUNT( * ) / SUM( ALL 3 ) + - 20 + + 90 ) AS SIGNED )
----
-62

skipif mysql # not compatible
query I rowsort label-1676
SELECT NULLIF ( - 62, - 58 * - 65 ) * + CAST ( NULLIF ( 1, - COUNT ( * ) / SUM ( ALL 3 ) + - 20 + + 90 ) AS INTEGER )
----
-62

query II rowsort
SELECT 59 * 14 AS col1, 34 AS col2
----
826
34

query I rowsort
SELECT 30 - - - 25 + - - ( - 71 )
----
-66

query I rowsort
SELECT ( + - 11 ) * - - 61 AS col0
----
-671

query I rowsort
SELECT DISTINCT 41 + - + 54
----
-13

query I rowsort
SELECT ALL 76 + 18 AS col0
----
94

onlyif mysql # aggregate syntax: 
query II rowsort label-1682
SELECT DISTINCT - MAX( 55 ) AS col0, ( + 45 ) * NULLIF ( + - 79, 27 + 42 * 38 * - ( 30 ) )
----
-55
-3555

skipif mysql # not compatible
query II rowsort label-1682
SELECT DISTINCT - MAX ( 55 ) AS col0, ( + 45 ) * NULLIF ( + - 79, 27 + 42 * 38 * - ( 30 ) )
----
-55
-3555

onlyif mysql # aggregate syntax: 
query I rowsort label-1683
SELECT 27 * + 19 + ( - NULLIF ( + COUNT( * ), - COUNT( * ) + - NULLIF ( - 69, COUNT( * ) ) ) ) AS col0
----
512

skipif mysql # not compatible
query I rowsort label-1683
SELECT 27 * + 19 + ( - NULLIF ( + COUNT ( * ), - COUNT ( * ) + - NULLIF ( - 69, COUNT ( * ) ) ) ) AS col0
----
512

onlyif mysql # aggregate syntax: 
query I rowsort label-1684
SELECT MIN( DISTINCT 16 ) * + - 30 * - 57 + + 82 + 57 + 12 - + 97
----
27414

skipif mysql # not compatible
query I rowsort label-1684
SELECT MIN ( DISTINCT 16 ) * + - 30 * - 57 + + 82 + 57 + 12 - + 97
----
27414

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1686
SELECT + NULLIF ( 37, + COALESCE ( + 92, + CAST( NULL AS SIGNED ) ) * - 76 )
----
37

skipif mysql # not compatible
query I rowsort label-1686
SELECT + NULLIF ( 37, + COALESCE ( + 92, + CAST ( NULL AS INTEGER ) ) * - 76 )
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-1687
SELECT 32 + COUNT( * ) + - 39 + - ( + + CASE + COUNT( * ) WHEN + SUM( + 86 ) + + 5 THEN 34 END ) / + - 57 * - + 98 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1687
SELECT 32 + COUNT ( * ) + - 39 + - ( + + CASE + COUNT ( * ) WHEN + SUM ( + 86 ) + + 5 THEN 34 END ) / + - 57 * - + 98 AS col1
----
NULL

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

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

query I rowsort
SELECT DISTINCT + 26 + - 71 AS col0
----
-45

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

skipif mysql # not compatible
query I rowsort label-1690
SELECT ALL + + CAST ( NULL AS REAL ) + + 60
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1691
SELECT DISTINCT - 35 DIV 41, - 64 * 17 * + COALESCE ( - 87, - - 97 * 18 DIV + - 52, + NULLIF ( COUNT( * ), + COUNT( * ) ) ) col0
----
0
94656

skipif mysql # not compatible
query II rowsort label-1691
SELECT DISTINCT - 35 / 41, - 64 * 17 * + COALESCE ( - 87, - - 97 * 18 / + - 52, + NULLIF ( COUNT ( * ), + COUNT ( * ) ) ) col0
----
0
94656

query I rowsort
SELECT - 31 * + 97 * 11 AS col0
----
-33077

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

query I rowsort
SELECT + 83 + - 30 - - + 80 - + - 87
----
220

query I rowsort
SELECT ALL - + 17 * - 47
----
799

query II rowsort
SELECT + 97 * - 34 AS col0, + 0 * + COALESCE ( 51, - + 39 )
----
-3298
0

query I rowsort
SELECT + 67 * - 53
----
-3551

query I rowsort
SELECT - 33 + - 52
----
-85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1699
SELECT 95 + + + ( NULLIF ( 57, 99 ) ) + 94 + - - MAX( DISTINCT 30 ) DIV + - 92 col1
----
246

skipif mysql # not compatible
query I rowsort label-1699
SELECT 95 + + + ( NULLIF ( 57, 99 ) ) + 94 + - - MAX ( DISTINCT 30 ) / + - 92 col1
----
246

query I rowsort
SELECT 5 + - COALESCE ( - + 87, - 78, 69 )
----
92

query II rowsort
SELECT 74 AS col1, 94
----
74
94

query I rowsort
SELECT 50 + - + 3 AS col1
----
47

query I rowsort
SELECT ALL 36 * 74 AS col1
----
2664

onlyif mysql # aggregate syntax: 
query II rowsort label-1704
SELECT DISTINCT COUNT( * ) AS col1, 20 AS col2
----
1
20

skipif mysql # not compatible
query II rowsort label-1704
SELECT DISTINCT COUNT ( * ) AS col1, 20 AS col2
----
1
20

query I rowsort
SELECT ALL 88 + + 9 AS col1
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-1706
SELECT 40 + - + 42 * + - 27 * ( + - 98 ) + + 49 * + COUNT( * ) AS col2
----
-111043

skipif mysql # not compatible
query I rowsort label-1706
SELECT 40 + - + 42 * + - 27 * ( + - 98 ) + + 49 * + COUNT ( * ) AS col2
----
-111043

query I rowsort
SELECT ALL 0 * - NULLIF ( - + 48, + ( - - 86 ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1708
SELECT COALESCE ( + 40, - 61 - 84 + COUNT( * ) - + - 4 ) + 3 * ( + 7 ) - - + 60
----
121

skipif mysql # not compatible
query I rowsort label-1708
SELECT COALESCE ( + 40, - 61 - 84 + COUNT ( * ) - + - 4 ) + 3 * ( + 7 ) - - + 60
----
121

query I rowsort
SELECT DISTINCT 35 * 89
----
3115

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1711
SELECT + 74 DIV COUNT( * ) + - COUNT( * ) + 75 * COUNT( * ) * + 65 AS col0
----
4948

skipif mysql # not compatible
query I rowsort label-1711
SELECT + 74 / COUNT ( * ) + - COUNT ( * ) + 75 * COUNT ( * ) * + 65 AS col0
----
4948

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1712
SELECT ALL 93 * - - CAST( - 86 AS SIGNED ) * COUNT( * ) + + - CASE 56 WHEN + - 65 * - 97 + + - CAST( - + 58 AS SIGNED ) THEN 35 + + COUNT( * ) + - + 12 / - 10 + - COUNT( * ) * - 14 / + 53 END + 72 + + 42 * - 40 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1712
SELECT ALL 93 * - - CAST ( - 86 AS INTEGER ) * COUNT ( * ) + + - CASE 56 WHEN + - 65 * - 97 + + - CAST ( - + 58 AS INTEGER ) THEN 35 + + COUNT ( * ) + - + 12 / - 10 + - COUNT ( * ) * - 14 / + 53 END + 72 + + 42 * - 40 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1713
SELECT + 28 * 85 * - CASE + 54 WHEN + 26 * 86 THEN NULL WHEN COUNT( * ) THEN 10 END * - + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1713
SELECT + 28 * 85 * - CASE + 54 WHEN + 26 * 86 THEN NULL WHEN COUNT ( * ) THEN 10 END * - + COUNT ( * ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1714
SELECT + MIN( DISTINCT + 39 ) AS col1
----
39

skipif mysql # not compatible
query I rowsort label-1714
SELECT + MIN ( DISTINCT + 39 ) AS col1
----
39

query I rowsort
SELECT ALL 69 * - - 27 + + 48 * - 71
----
-1545

onlyif mysql # aggregate syntax: 
query II rowsort label-1716
SELECT ALL + - 48 AS col0, + 17 * COUNT( * ) AS col2
----
-48
17

skipif mysql # not compatible
query II rowsort label-1716
SELECT ALL + - 48 AS col0, + 17 * COUNT ( * ) AS col2
----
-48
17

query II rowsort
SELECT DISTINCT + 36 AS col0, 55
----
36
55

query I rowsort
SELECT + 92 * ( 20 )
----
1840

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1719
SELECT DISTINCT + ( + 7 ) * - - CAST( ( - + 75 ) AS SIGNED ) AS col1
----
-525

skipif mysql # not compatible
query I rowsort label-1719
SELECT DISTINCT + ( + 7 ) * - - CAST ( ( - + 75 ) AS INTEGER ) AS col1
----
-525

onlyif mysql # aggregate syntax: 
query I rowsort label-1720
SELECT ALL MAX( - 13 ) * + NULLIF ( - 67, + 78 ) - - 53 * + - 66 col0
----
-2627

skipif mysql # not compatible
query I rowsort label-1720
SELECT ALL MAX ( - 13 ) * + NULLIF ( - 67, + 78 ) - - 53 * + - 66 col0
----
-2627

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1721
SELECT + - 42 - - 57 + + MAX( + NULLIF ( - + ( + 93 ), + + 33 * - 23 * - 8 ) ) * + 36 * + + CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1721
SELECT + - 42 - - 57 + + MAX ( + NULLIF ( - + ( + 93 ), + + 33 * - 23 * - 8 ) ) * + 36 * + + CAST ( NULL AS INTEGER ) col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1722
SELECT + + 67 - + 50 * - NULLIF ( - + 41, - - CASE - - CASE 84 WHEN 34 * + COUNT( + + 1 ) * - - 0 * 24 * + CAST( COUNT( * ) AS DECIMAL ) + - 16 THEN + 6 * + 57 + 89 END WHEN ( - 50 ) * - COUNT( * ) THEN - ( - 37 ) WHEN + ( + 72 ) THEN - 63 + 30 END + + 10 )
----
-1983

skipif mysql # not compatible
query I rowsort label-1722
SELECT + + 67 - + 50 * - NULLIF ( - + 41, - - CASE - - CASE 84 WHEN 34 * + COUNT ( + + 1 ) * - - 0 * 24 * + CAST ( COUNT ( * ) AS REAL ) + - 16 THEN + 6 * + 57 + 89 END WHEN ( - 50 ) * - COUNT ( * ) THEN - ( - 37 ) WHEN + ( + 72 ) THEN - 63 + 30 END + + 10 )
----
-1983

query I rowsort
SELECT - + 62 * - 74 + - 49 + 12 col0
----
4551

query I rowsort
SELECT ALL - + CASE + - 17 WHEN + 61 THEN + 42 * + 13 END * 96 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1725
SELECT COUNT( * ) * - 45 * - 53 + - + 59 AS col0
----
2326

skipif mysql # not compatible
query I rowsort label-1725
SELECT COUNT ( * ) * - 45 * - 53 + - + 59 AS col0
----
2326

query II rowsort
SELECT 79, 97 * - 32 AS col0
----
79
-3104

query I rowsort
SELECT ALL + + 12 AS col2
----
12

query I rowsort
SELECT ALL + 12 * - + 97 * - 84 + - 97 AS col1
----
97679

query I rowsort
SELECT DISTINCT + 64 * - 57 + + 49 - + - 62
----
-3537

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

query I rowsort
SELECT ALL - 40 * + ( - 7 ) * + 90 col1
----
25200

query I rowsort
SELECT - - 35 * - - ( + 95 ) + + 47 * - 8 AS col1
----
2949

onlyif mysql # DIV for integer division: 
query I rowsort label-1733
SELECT ALL - 29 DIV - + 55
----
0

skipif mysql # not compatible
query I rowsort label-1733
SELECT ALL - 29 / - + 55
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1734
SELECT - + COALESCE ( - COALESCE ( - NULLIF ( + - 29, - MIN( 19 ) ), - + 99 * + 55 * 94 - - - 77 - 25 + 40 + 62 DIV + 61 * 78, + 78 * + 98 - - 0 + - 57 * 59 ), - COALESCE ( 4, 40, + 19 + COUNT( * ) ) * 73, - 29 ) col0
----
29

skipif mysql # not compatible
query I rowsort label-1734
SELECT - + COALESCE ( - COALESCE ( - NULLIF ( + - 29, - MIN ( 19 ) ), - + 99 * + 55 * 94 - - - 77 - 25 + 40 + 62 / + 61 * 78, + 78 * + 98 - - 0 + - 57 * 59 ), - COALESCE ( 4, 40, + 19 + COUNT ( * ) ) * 73, - 29 ) col0
----
29

query I rowsort
SELECT DISTINCT - 7 * ( - - 70 )
----
-490

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-1736
SELECT - 30 + + - 87 + - - 10 * + 1 col0, 20 * + ( NULLIF ( - - 39, + + NULLIF ( - 3, + MAX( + 39 ) - + + COALESCE ( + NULLIF ( - - CASE + ( - COUNT( * ) ) WHEN + 55 THEN - 62 * CAST( 77 + + 76 AS SIGNED ) + + 86 WHEN - CAST( - 81 AS DECIMAL ) THEN NULL ELSE + CAST( NULL AS SIGNED ) END, - COUNT( * ) + + NULLIF ( - 48, CASE 99 WHEN COUNT( * ) * + 88 THEN - 21 * COUNT( * ) ELSE 16 END ) / 70 ), + 17, + COUNT( DISTINCT - 60 ) ) + 90 ) * - 69 ) ) + 61
----
-107
841

skipif mysql # not compatible
query II rowsort label-1736
SELECT - 30 + + - 87 + - - 10 * + 1 col0, 20 * + ( NULLIF ( - - 39, + + NULLIF ( - 3, + MAX ( + 39 ) - + + COALESCE ( + NULLIF ( - - CASE + ( - COUNT ( * ) ) WHEN + 55 THEN - 62 * CAST ( 77 + + 76 AS INTEGER ) + + 86 WHEN - CAST ( - 81 AS REAL ) THEN NULL ELSE + CAST ( NULL AS INTEGER ) END, - COUNT ( * ) + + NULLIF ( - 48, CASE 99 WHEN COUNT ( * ) * + 88 THEN - 21 * COUNT ( * ) ELSE 16 END ) / 70 ), + 17, + COUNT ( DISTINCT - 60 ) ) + 90 ) * - 69 ) ) + 61
----
-107
841

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

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

query I rowsort
SELECT - 1 * - 41
----
41

onlyif mysql # aggregate syntax: 
query II rowsort label-1739
SELECT DISTINCT + COUNT( * ) + 9, 15 AS col0
----
10
15

skipif mysql # not compatible
query II rowsort label-1739
SELECT DISTINCT + COUNT ( * ) + 9, 15 AS col0
----
10
15

query I rowsort
SELECT ALL 88 + - + 51 AS col1
----
37

query I rowsort
SELECT DISTINCT + 81 + 14 col2
----
95

onlyif mysql # DIV for integer division: 
query II rowsort label-1742
SELECT ALL 82 + - 8 + + 14 DIV + 4 AS col2, 56 * + 96 - - 12
----
77
5388

skipif mysql # not compatible
query II rowsort label-1742
SELECT ALL 82 + - 8 + + 14 / + 4 AS col2, 56 * + 96 - - 12
----
77
5388

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

query I rowsort
SELECT - 58 + + 18 col2
----
-40

query I rowsort
SELECT - COALESCE ( + 80, + 87 )
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-1746
SELECT - 35 + - COUNT( * ) * + 99 * + ( - 74 )
----
7291

skipif mysql # not compatible
query I rowsort label-1746
SELECT - 35 + - COUNT ( * ) * + 99 * + ( - 74 )
----
7291

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1747
SELECT - COUNT( * ) + + 88 DIV + 7 col1
----
11

skipif mysql # not compatible
query I rowsort label-1747
SELECT - COUNT ( * ) + + 88 / + 7 col1
----
11

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1750
SELECT + CASE - 20 WHEN - 37 THEN + MIN( DISTINCT + 49 ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1750
SELECT + CASE - 20 WHEN - 37 THEN + MIN ( DISTINCT + 49 ) END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1751
SELECT + NULLIF ( + COALESCE ( 35, + ( - - 3 ) ), - CASE + 50 WHEN 73 * - + COUNT( DISTINCT - + 18 ) THEN NULL WHEN - COUNT( * ) THEN 1 END ) * 77 + - 50 - 68 + MIN( ALL 2 ) AS col2, 10 * + - 18
----
2579
-180

skipif mysql # not compatible
query II rowsort label-1751
SELECT + NULLIF ( + COALESCE ( 35, + ( - - 3 ) ), - CASE + 50 WHEN 73 * - + COUNT ( DISTINCT - + 18 ) THEN NULL WHEN - COUNT ( * ) THEN 1 END ) * 77 + - 50 - 68 + MIN ( ALL 2 ) AS col2, 10 * + - 18
----
2579
-180

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

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

query I rowsort
SELECT + - 40 * - 65 col1
----
2600

onlyif mysql # aggregate syntax: 
query I rowsort label-1754
SELECT ALL + SUM( ALL - - ( - 53 ) ) AS col2
----
-53

skipif mysql # not compatible
query I rowsort label-1754
SELECT ALL + SUM ( ALL - - ( - 53 ) ) AS col2
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-1755
SELECT + 29 * COUNT( * ) + - 38 + - 25 - + 34 * - 24 - 3 * - - ( - 45 ) * 98 AS col1
----
14012

skipif mysql # not compatible
query I rowsort label-1755
SELECT + 29 * COUNT ( * ) + - 38 + - 25 - + 34 * - 24 - 3 * - - ( - 45 ) * 98 AS col1
----
14012

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1756
SELECT + - COUNT( * ) DIV ( 25 ) + + - 98 DIV - 49
----
2

skipif mysql # not compatible
query I rowsort label-1756
SELECT + - COUNT ( * ) / ( 25 ) + + - 98 / - 49
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-1757
SELECT + + 21 + - MIN( ALL + 18 ) AS col1
----
3

skipif mysql # not compatible
query I rowsort label-1757
SELECT + + 21 + - MIN ( ALL + 18 ) AS col1
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1758
SELECT + 45 * - + 15 - CAST( - 48 AS SIGNED ) + - 88
----
-715

skipif mysql # not compatible
query I rowsort label-1758
SELECT + 45 * - + 15 - CAST ( - 48 AS INTEGER ) + - 88
----
-715

onlyif mysql # aggregate syntax: 
query I rowsort label-1759
SELECT + 66 * - ( - - COUNT( * ) ) * - 81 * - - 60
----
320760

skipif mysql # not compatible
query I rowsort label-1759
SELECT + 66 * - ( - - COUNT ( * ) ) * - 81 * - - 60
----
320760

query I rowsort
SELECT DISTINCT + + 5 AS col2
----
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1761
SELECT + - 39 * 23 DIV COALESCE ( + + 91, + COUNT( * ) DIV - NULLIF ( + ( - SUM( + 64 ) ), + + SUM( DISTINCT + 53 ) ) * + - ( + COUNT( * ) ) )
----
-9

skipif mysql # not compatible
query I rowsort label-1761
SELECT + - 39 * 23 / COALESCE ( + + 91, + COUNT ( * ) / - NULLIF ( + ( - SUM ( + 64 ) ), + + SUM ( DISTINCT + 53 ) ) * + - ( + COUNT ( * ) ) )
----
-9

query I rowsort
SELECT + + 80 + + 48
----
128

query II rowsort
SELECT DISTINCT - + 87 * - - 97, + 96 AS col0
----
-8439
96

query I rowsort
SELECT ALL - ( 26 ) * + 8 AS col1
----
-208

onlyif mysql # aggregate syntax: 
query I rowsort label-1765
SELECT DISTINCT + - MIN( COALESCE ( + - 12, + - 55 + 62 ) ) AS col0
----
12

skipif mysql # not compatible
query I rowsort label-1765
SELECT DISTINCT + - MIN ( COALESCE ( + - 12, + - 55 + 62 ) ) AS col0
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-1766
SELECT - SUM( ALL + 59 ) col2
----
-59

skipif mysql # not compatible
query I rowsort label-1766
SELECT - SUM ( ALL + 59 ) col2
----
-59

onlyif mysql # aggregate syntax: 
query II rowsort label-1767
SELECT - + 16 * - 46 + - - 7 + + + 49 AS col1, + COUNT( * )
----
792
1

skipif mysql # not compatible
query II rowsort label-1767
SELECT - + 16 * - 46 + - - 7 + + + 49 AS col1, + COUNT ( * )
----
792
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1768
SELECT COALESCE ( COUNT( * ), - ( - + 66 ), 9 DIV 20 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1768
SELECT COALESCE ( COUNT ( * ), - ( - + 66 ), 9 / 20 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1769
SELECT MIN( - + 82 ) AS col1
----
-82

skipif mysql # not compatible
query I rowsort label-1769
SELECT MIN ( - + 82 ) AS col1
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-1770
SELECT ALL - CASE + + 78 WHEN 99 + + - 22 THEN NULL WHEN 88 THEN 10 END * - + ( + COUNT( * ) ) + + 88
----
NULL

skipif mysql # not compatible
query I rowsort label-1770
SELECT ALL - CASE + + 78 WHEN 99 + + - 22 THEN NULL WHEN 88 THEN 10 END * - + ( + COUNT ( * ) ) + + 88
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1771
SELECT DISTINCT COUNT( * ) * 98 AS col1
----
98

skipif mysql # not compatible
query I rowsort label-1771
SELECT DISTINCT COUNT ( * ) * 98 AS col1
----
98

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1773
SELECT DISTINCT CAST( NULL AS SIGNED ), - 7 AS col1
----
NULL
-7

skipif mysql # not compatible
query II rowsort label-1773
SELECT DISTINCT CAST ( NULL AS INTEGER ), - 7 AS col1
----
NULL
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-1774
SELECT DISTINCT COALESCE ( - - 93, + 28 + - MAX( DISTINCT 8 ) ) AS col1
----
93

skipif mysql # not compatible
query I rowsort label-1774
SELECT DISTINCT COALESCE ( - - 93, + 28 + - MAX ( DISTINCT 8 ) ) AS col1
----
93

query I rowsort
SELECT 59 + - 45
----
14

query I rowsort
SELECT ( 72 ) * + 93 AS col1
----
6696

query II rowsort
SELECT 29 AS col0, 99
----
29
99

onlyif mysql # aggregate syntax: 
query I rowsort label-1778
SELECT 75 + + + 89 + - MAX( - - 52 ) + ( - 86 ) * - 77
----
6734

skipif mysql # not compatible
query I rowsort label-1778
SELECT 75 + + + 89 + - MAX ( - - 52 ) + ( - 86 ) * - 77
----
6734

onlyif mysql # aggregate syntax: 
query I rowsort label-1779
SELECT DISTINCT + 58 * - COUNT( * ) * - 22 * - - 73 AS col0
----
93148

skipif mysql # not compatible
query I rowsort label-1779
SELECT DISTINCT + 58 * - COUNT ( * ) * - 22 * - - 73 AS col0
----
93148

query I rowsort
SELECT DISTINCT + 49 * + 40 AS col2
----
1960

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

skipif mysql # not compatible
query I rowsort label-1781
SELECT ALL + COUNT ( * ) - - 92 AS col0
----
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1782
SELECT ALL - 4 * - CASE + + ( - 35 ) WHEN - + 90 THEN NULL WHEN 49 THEN + + CAST( + - 29 AS SIGNED ) + AVG ( 48 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1782
SELECT ALL - 4 * - CASE + + ( - 35 ) WHEN - + 90 THEN NULL WHEN 49 THEN + + CAST ( + - 29 AS INTEGER ) + AVG ( 48 ) END
----
NULL

query I rowsort
SELECT 74 + - NULLIF ( - - 30, - 42 )
----
44

query II rowsort
SELECT ALL 33, - 34 AS col1
----
33
-34

query I rowsort
SELECT DISTINCT - 87 * 55 AS col1
----
-4785

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1787
SELECT DISTINCT + COUNT( * ) - + CASE - - COUNT( DISTINCT + ( + 46 ) ) WHEN 6 + + + 54 / - 80 THEN SUM( + 46 ) / - + 21 WHEN + + 89 * - + 12 + 49 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1787
SELECT DISTINCT + COUNT ( * ) - + CASE - - COUNT ( DISTINCT + ( + 46 ) ) WHEN 6 + + + 54 / - 80 THEN SUM ( + 46 ) / - + 21 WHEN + + 89 * - + 12 + 49 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1788
SELECT ALL - - COUNT( DISTINCT - 75 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1788
SELECT ALL - - COUNT ( DISTINCT - 75 ) AS col1
----
1

query I rowsort
SELECT 84 + - 43 + + 55 + 80 AS col1
----
176

onlyif mysql # DIV for integer division: 
query II rowsort label-1790
SELECT + 50 * 56 - + 77 AS col0, - 58 DIV + 8 AS col1
----
2723
-7

skipif mysql # not compatible
query II rowsort label-1790
SELECT + 50 * 56 - + 77 AS col0, - 58 / + 8 AS col1
----
2723
-7

query I rowsort
SELECT DISTINCT + 23 * + - 13 - - 55
----
-244

query II rowsort
SELECT ALL - + 94 AS col0, 52 + - 1
----
-94
51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1793
SELECT ALL + 95 DIV + MAX( DISTINCT + 18 ) col0
----
5

skipif mysql # not compatible
query I rowsort label-1793
SELECT ALL + 95 / + MAX ( DISTINCT + 18 ) col0
----
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1794
SELECT CASE - 70 WHEN - MIN( ALL + CAST( NULL AS SIGNED ) ) / AVG ( 31 ) THEN 75 + + 98 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1794
SELECT CASE - 70 WHEN - MIN ( ALL + CAST ( NULL AS INTEGER ) ) / AVG ( 31 ) THEN 75 + + 98 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1795
SELECT DISTINCT + CASE 27 WHEN - COUNT( * ) - - 35 THEN NULL ELSE + 14 END + + 33
----
47

skipif mysql # not compatible
query I rowsort label-1795
SELECT DISTINCT + CASE 27 WHEN - COUNT ( * ) - - 35 THEN NULL ELSE + 14 END + + 33
----
47

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1798
SELECT - 52 DIV COUNT( * ) - COUNT( * ) + + 17 DIV ( + + 36 ) AS col2
----
-53

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

query I rowsort
SELECT 35 - 76
----
-41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1800
SELECT - 1 * - 61 + + MIN( + - CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1800
SELECT - 1 * - 61 + + MIN ( + - CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1801
SELECT DISTINCT + 21 + - CAST( NULL AS SIGNED ) * + - 97 * - - 59 - - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1801
SELECT DISTINCT + 21 + - CAST ( NULL AS INTEGER ) * + - 97 * - - 59 - - COUNT ( * ) AS col0
----
NULL

query II rowsort
SELECT + 40, 57 + - 89 + - + 36 + + 28 * 47 * + 48 AS col0
----
40
63100

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1803
SELECT DISTINCT 47 AS col1, - 36 + + CAST( + 62 AS SIGNED ) + - 99 * - 18
----
47
1808

skipif mysql # not compatible
query II rowsort label-1803
SELECT DISTINCT 47 AS col1, - 36 + + CAST ( + 62 AS INTEGER ) + - 99 * - 18
----
47
1808

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1804
SELECT ALL CAST( - + 62 AS SIGNED ) + + 0 * + 11
----
-62

skipif mysql # not compatible
query I rowsort label-1804
SELECT ALL CAST ( - + 62 AS INTEGER ) + + 0 * + 11
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-1805
SELECT DISTINCT 71 * + MIN( 73 )
----
5183

skipif mysql # not compatible
query I rowsort label-1805
SELECT DISTINCT 71 * + MIN ( 73 )
----
5183

query II rowsort
SELECT - 8, 80 AS col1
----
-8
80

onlyif mysql # aggregate syntax: 
query II rowsort label-1807
SELECT - 9 AS col1, MIN( DISTINCT 20 )
----
-9
20

skipif mysql # not compatible
query II rowsort label-1807
SELECT - 9 AS col1, MIN ( DISTINCT 20 )
----
-9
20

query I rowsort
SELECT 78 * + 37
----
2886

onlyif mysql # aggregate syntax: 
query II rowsort label-1809
SELECT ALL 23 - - 53 * + - 9 * 10 AS col1, ( COUNT( * ) ) AS col2
----
-4747
1

skipif mysql # not compatible
query II rowsort label-1809
SELECT ALL 23 - - 53 * + - 9 * 10 AS col1, ( COUNT ( * ) ) AS col2
----
-4747
1

query I rowsort
SELECT ( - - 24 ) * + + 86
----
2064

query I rowsort
SELECT ALL 70 * + + 66
----
4620

query II rowsort
SELECT DISTINCT 76, + 46 + - - 45 + - 6 AS col0
----
76
85

onlyif mysql # DIV for integer division: 
query II rowsort label-1813
SELECT ALL 28, - 32 DIV + ( 73 ) * - + 80 + + - 76 AS col0
----
28
-76

skipif mysql # not compatible
query II rowsort label-1813
SELECT ALL 28, - 32 / + ( 73 ) * - + 80 + + - 76 AS col0
----
28
-76

query II rowsort
SELECT 6, - ( - + 2 ) AS col0
----
6
2

onlyif mysql # aggregate syntax: 
query II rowsort label-1815
SELECT ( - 79 ) * + + 64 * - - 18, + COUNT( * ) col1
----
-91008
1

skipif mysql # not compatible
query II rowsort label-1815
SELECT ( - 79 ) * + + 64 * - - 18, + COUNT ( * ) col1
----
-91008
1

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

skipif mysql # not compatible
query II rowsort label-1816
SELECT 0 / + 55 AS col0, 25 / + COUNT ( * )
----
0
25

onlyif mysql # DIV for integer division: 
query II rowsort label-1817
SELECT DISTINCT + 18 DIV 75 AS col1, 25 * + 75 AS col0
----
0
1875

skipif mysql # not compatible
query II rowsort label-1817
SELECT DISTINCT + 18 / 75 AS col1, 25 * + 75 AS col0
----
0
1875

onlyif mysql # aggregate syntax: 
query II rowsort label-1818
SELECT ALL 20 AS col2, - 23 - - 12 + + 15 * SUM( ALL 79 ) * COUNT( - - 94 ) * + 10
----
20
11839

skipif mysql # not compatible
query II rowsort label-1818
SELECT ALL 20 AS col2, - 23 - - 12 + + 15 * SUM ( ALL 79 ) * COUNT ( - - 94 ) * + 10
----
20
11839

query I rowsort
SELECT 9 + - 80
----
-71

onlyif mysql # DIV for integer division: 
query I rowsort label-1820
SELECT ALL + - CASE - + 74 WHEN - + 98 THEN NULL WHEN - 32 THEN 72 * - + 75 ELSE - + 62 END * 4 + 95 + + 19 DIV - 85 + 77
----
420

skipif mysql # not compatible
query I rowsort label-1820
SELECT ALL + - CASE - + 74 WHEN - + 98 THEN NULL WHEN - 32 THEN 72 * - + 75 ELSE - + 62 END * 4 + 95 + + 19 / - 85 + 77
----
420

query I rowsort
SELECT ( + 83 ) * 96
----
7968

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1822
SELECT - COALESCE ( - CAST( NULL AS SIGNED ), - + 83, 59 ) col0
----
83

skipif mysql # not compatible
query I rowsort label-1822
SELECT - COALESCE ( - CAST ( NULL AS INTEGER ), - + 83, 59 ) col0
----
83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1823
SELECT ALL + + CAST( 67 AS SIGNED ) * + 28 AS col0
----
1876

skipif mysql # not compatible
query I rowsort label-1823
SELECT ALL + + CAST ( 67 AS INTEGER ) * + 28 AS col0
----
1876

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1824
SELECT + MAX( + 97 ) * + COUNT( * ) DIV - COUNT( * ) - - - 68 DIV - - 15
----
-101

skipif mysql # not compatible
query I rowsort label-1824
SELECT + MAX ( + 97 ) * + COUNT ( * ) / - COUNT ( * ) - - - 68 / - - 15
----
-101

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1826
SELECT - 75 + 17 * + + 50 + COUNT( - CAST( NULL AS SIGNED ) ) col2
----
775

skipif mysql # not compatible
query I rowsort label-1826
SELECT - 75 + 17 * + + 50 + COUNT ( - CAST ( NULL AS INTEGER ) ) col2
----
775

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1827
SELECT ALL + 52 * - 74 + COUNT( * ) + 20 DIV - + COUNT( * ) AS col2
----
-3867

skipif mysql # not compatible
query I rowsort label-1827
SELECT ALL + 52 * - 74 + COUNT ( * ) + 20 / - + COUNT ( * ) AS col2
----
-3867

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1828
SELECT DISTINCT - + CAST( NULL AS SIGNED ), + 42 + - 3 col1
----
NULL
39

skipif mysql # not compatible
query II rowsort label-1828
SELECT DISTINCT - + CAST ( NULL AS INTEGER ), + 42 + - 3 col1
----
NULL
39

query I rowsort
SELECT 70 + + 23 * + - 30 * + 48 AS col2
----
-33050

query I rowsort
SELECT 53 * + 28 + - + 61 AS col0
----
1423

query I rowsort
SELECT ALL - + 30 * + ( - 52 ) + 5
----
1565

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1832
SELECT - COUNT( 80 ) DIV - COUNT( * ) + - + 63 + 33
----
-29

skipif mysql # not compatible
query I rowsort label-1832
SELECT - COUNT ( 80 ) / - COUNT ( * ) + - + 63 + 33
----
-29

query I rowsort
SELECT - 86 * - 41 - - 93 col0
----
3619

query I rowsort
SELECT 50 + + ( + + 27 ) AS col0
----
77

query II rowsort
SELECT + 99 * 18 + + 17 + - - COALESCE ( 71, 30 ) AS col2, 9 * + 82 * 90 + - 82 AS col1
----
1870
66338

query I rowsort
SELECT 26 * - 56 - - 85 + - 58
----
-1429

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1837
SELECT DISTINCT + 94 + - ( - 19 ) + NULLIF ( COUNT( * ), - + 44 * - SUM( DISTINCT + 51 ) DIV COUNT( * ) ) + - + CAST( NULL AS SIGNED ), + 49 DIV - + COALESCE ( + + 52, + 23, MAX( DISTINCT + - ( + - 74 ) ) + + 99 - 78 * 75 ) AS col2
----
NULL
0

skipif mysql # not compatible
query II rowsort label-1837
SELECT DISTINCT + 94 + - ( - 19 ) + NULLIF ( COUNT ( * ), - + 44 * - SUM ( DISTINCT + 51 ) / COUNT ( * ) ) + - + CAST ( NULL AS INTEGER ), + 49 / - + COALESCE ( + + 52, + 23, MAX ( DISTINCT + - ( + - 74 ) ) + + 99 - 78 * 75 ) AS col2
----
NULL
0

query I rowsort
SELECT DISTINCT 24 * - 20
----
-480

query I rowsort
SELECT + NULLIF ( 91, - - 22 ) + - NULLIF ( + + 34, - 85 - + 47 / 96 / + 58 ) AS col2
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-1840
SELECT - 42 * - COALESCE ( - 23, - 5 * + NULLIF ( 34, + ( + + MAX( 53 ) ) ) )
----
-966

skipif mysql # not compatible
query I rowsort label-1840
SELECT - 42 * - COALESCE ( - 23, - 5 * + NULLIF ( 34, + ( + + MAX ( 53 ) ) ) )
----
-966

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

skipif mysql # not compatible
query I rowsort label-1841
SELECT + MIN ( 93 )
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-1842
SELECT - 35 + + 43 - + + 86 * + - COUNT( * ) * + 80
----
6888

skipif mysql # not compatible
query I rowsort label-1842
SELECT - 35 + + 43 - + + 86 * + - COUNT ( * ) * + 80
----
6888

onlyif mysql # aggregate syntax: 
query I rowsort label-1843
SELECT + 0 * + + COUNT( * ) * 34
----
0

skipif mysql # not compatible
query I rowsort label-1843
SELECT + 0 * + + COUNT ( * ) * 34
----
0

query I rowsort
SELECT 4 * + - 32 + 58
----
-70

query I rowsort
SELECT + 59 * + 83 + 40 * 12
----
5377

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1846
SELECT DISTINCT COALESCE ( + - COUNT( * ), + 73 * + - 84 DIV - 82 + + + MIN( ALL CASE - + 15 WHEN - 53 THEN NULL WHEN - 84 THEN - 5 + - 64 WHEN - ( - 35 ) * 58 + 80 THEN NULL ELSE + + 21 * + 67 END ) - 35, - 99, - 53 * + 66 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-1846
SELECT DISTINCT COALESCE ( + - COUNT ( * ), + 73 * + - 84 / - 82 + + + MIN ( ALL CASE - + 15 WHEN - 53 THEN NULL WHEN - 84 THEN - 5 + - 64 WHEN - ( - 35 ) * 58 + 80 THEN NULL ELSE + + 21 * + 67 END ) - 35, - 99, - 53 * + 66 ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1847
SELECT + COUNT( * ) + - 86 col2
----
-85

skipif mysql # not compatible
query I rowsort label-1847
SELECT + COUNT ( * ) + - 86 col2
----
-85

query I rowsort
SELECT ALL NULLIF ( - - 31, - 79 ) AS col1
----
31

onlyif mysql # DIV for integer division: 
query I rowsort label-1849
SELECT ALL 76 DIV 19 AS col2
----
4

skipif mysql # not compatible
query I rowsort label-1849
SELECT ALL 76 / 19 AS col2
----
4

query I rowsort
SELECT + 82 + - 39 AS col2
----
43

query I rowsort
SELECT ALL 22 - + 43 AS col2
----
-21

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1853
SELECT + 28 + + + 70 * + 98 * - 46 * - COUNT( * ) col2
----
315588

skipif mysql # not compatible
query I rowsort label-1853
SELECT + 28 + + + 70 * + 98 * - 46 * - COUNT ( * ) col2
----
315588

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1854
SELECT - ( - COUNT( * ) ) col2, COUNT( * ) DIV - 45 col1
----
1
0

skipif mysql # not compatible
query II rowsort label-1854
SELECT - ( - COUNT ( * ) ) col2, COUNT ( * ) / - 45 col1
----
1
0

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

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

query I rowsort
SELECT + + 34 * 36 + - 2
----
1222

query I rowsort
SELECT ALL + 28 + + 24
----
52

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1860
SELECT ALL 29 + + 18 - - SUM( + 45 )
----
92

skipif mysql # not compatible
query I rowsort label-1860
SELECT ALL 29 + + 18 - - SUM ( + 45 )
----
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1861
SELECT DISTINCT + CASE + COUNT( * ) WHEN - 11 - - COALESCE ( + COUNT( * ), + CAST( + 72 AS SIGNED ) * - - 49 - - 86, + 39 ) THEN + 23 WHEN 91 / + - 5 * + NULLIF ( - 72, + + COUNT( * ) ) + ( ( - - 98 ) ) + + COUNT( ( + 74 ) ) + - 50 THEN NULL ELSE COUNT( * ) * - COALESCE ( - 60 * 63, + 39 * + COUNT( * ) - - 91 ) END AS col1
----
3780

skipif mysql # not compatible
query I rowsort label-1861
SELECT DISTINCT + CASE + COUNT ( * ) WHEN - 11 - - COALESCE ( + COUNT ( * ), + CAST ( + 72 AS INTEGER ) * - - 49 - - 86, + 39 ) THEN + 23 WHEN 91 / + - 5 * + NULLIF ( - 72, + + COUNT ( * ) ) + ( ( - - 98 ) ) + + COUNT ( ( + 74 ) ) + - 50 THEN NULL ELSE COUNT ( * ) * - COALESCE ( - 60 * 63, + 39 * + COUNT ( * ) - - 91 ) END AS col1
----
3780

query I rowsort
SELECT + - 7 * - + 91 AS col0
----
637

query I rowsort
SELECT - + 2 + + 35
----
33

query I rowsort
SELECT + + 32 * - ( 17 ) * + - 22 + - 23
----
11945

query I rowsort
SELECT + - 61 * 96 * + + 34 + - - 61
----
-199043

query I rowsort
SELECT DISTINCT - 63 * + - 66 + 91 AS col2
----
4249

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1867
SELECT - CAST( - ( + - 80 ) AS SIGNED ) * + 37
----
-2960

skipif mysql # not compatible
query I rowsort label-1867
SELECT - CAST ( - ( + - 80 ) AS INTEGER ) * + 37
----
-2960

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1869
SELECT ALL + MIN( ALL + 70 ) * - ( + 22 ) * + - 1 * COUNT( * )
----
1540

skipif mysql # not compatible
query I rowsort label-1869
SELECT ALL + MIN ( ALL + 70 ) * - ( + 22 ) * + - 1 * COUNT ( * )
----
1540

query II rowsort
SELECT + 36 AS col0, 78
----
36
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1871
SELECT ALL - 91 * - 40 * 86 * + ( - 18 ) - - CAST( - - 49 AS SIGNED )
----
-5634671

skipif mysql # not compatible
query I rowsort label-1871
SELECT ALL - 91 * - 40 * 86 * + ( - 18 ) - - CAST ( - - 49 AS INTEGER )
----
-5634671

query II rowsort
SELECT ALL + 94 AS col0, + 2 - + 39 AS col0
----
94
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-1873
SELECT - COUNT( * ) - - - ( + 5 ) AS col0
----
-6

skipif mysql # not compatible
query I rowsort label-1873
SELECT - COUNT ( * ) - - - ( + 5 ) AS col0
----
-6

onlyif mysql # aggregate syntax: 
query II rowsort label-1874
SELECT - 95 + - 28 - + - 28 * - + 51 * 28 * + 5 AS col2, 81 + - COUNT( * ) AS col0
----
-200043
80

skipif mysql # not compatible
query II rowsort label-1874
SELECT - 95 + - 28 - + - 28 * - + 51 * 28 * + 5 AS col2, 81 + - COUNT ( * ) AS col0
----
-200043
80

onlyif mysql # aggregate syntax: 
query I rowsort label-1875
SELECT NULLIF ( + SUM( 43 ), - + 55 )
----
43

skipif mysql # not compatible
query I rowsort label-1875
SELECT NULLIF ( + SUM ( 43 ), - + 55 )
----
43

query I rowsort
SELECT + 17 * + ( - ( + - 33 ) ) + + - 58 AS col1
----
503

query I rowsort
SELECT DISTINCT + NULLIF ( 68, - 3 ) AS col2
----
68

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1879
SELECT DISTINCT + NULLIF ( - SUM( DISTINCT COALESCE ( + 70, + ( - 37 ) - 85 ) ), + - 86 * + 42 ), + MIN( ALL + - 56 ) * - 75 AS col0
----
-70
4200

skipif mysql # not compatible
query II rowsort label-1879
SELECT DISTINCT + NULLIF ( - SUM ( DISTINCT COALESCE ( + 70, + ( - 37 ) - 85 ) ), + - 86 * + 42 ), + MIN ( ALL + - 56 ) * - 75 AS col0
----
-70
4200

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

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

query II rowsort
SELECT + 59 AS col0, 39
----
59
39

query I rowsort
SELECT - 41 - - - 10 AS col0
----
-51

query I rowsort
SELECT - 58 * + - 92 col2
----
5336

query II rowsort
SELECT - 70 AS col1, 95 - + + 73
----
-70
22

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1886
SELECT + 10 DIV 34
----
0

skipif mysql # not compatible
query I rowsort label-1886
SELECT + 10 / 34
----
0

query I rowsort
SELECT ALL - 10 * - - 0
----
0

query I rowsort
SELECT - 22 * + - 23
----
506

query II rowsort
SELECT + 28 * 53 * - 12 AS col0, + 32 - + 61 AS col1
----
-17808
-29

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

skipif mysql # not compatible
query I rowsort label-1890
SELECT COUNT ( - 52 )
----
1

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

query I rowsort
SELECT DISTINCT + 65 * - + 55 AS col1
----
-3575

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1893
SELECT DISTINCT - COUNT( * ) DIV - COUNT( DISTINCT - 3 )
----
1

skipif mysql # not compatible
query I rowsort label-1893
SELECT DISTINCT - COUNT ( * ) / - COUNT ( DISTINCT - 3 )
----
1

query I rowsort
SELECT ALL 60 + + + 22
----
82

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

skipif mysql # not compatible
query I rowsort label-1895
SELECT ALL - + 24 / 14
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-1896
SELECT - - COUNT( DISTINCT 11 ) + - COUNT( * ) AS col1, + 21 AS col1
----
0
21

skipif mysql # not compatible
query II rowsort label-1896
SELECT - - COUNT ( DISTINCT 11 ) + - COUNT ( * ) AS col1, + 21 AS col1
----
0
21

query I rowsort
SELECT ALL - 17 + + - 32 + - 33
----
-82

query I rowsort
SELECT + 66 - 63 + + 26 AS col0
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-1899
SELECT ALL COUNT( - 80 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1899
SELECT ALL COUNT ( - 80 ) AS col1
----
1

query I rowsort
SELECT + - 36 + - + 27 AS col1
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-1901
SELECT + COALESCE ( + 58, 5, COUNT( * ) ) + + NULLIF ( + - 59, + + COUNT( * ) / + - 57 * 53 )
----
-1

skipif mysql # not compatible
query I rowsort label-1901
SELECT + COALESCE ( + 58, 5, COUNT ( * ) ) + + NULLIF ( + - 59, + + COUNT ( * ) / + - 57 * 53 )
----
-1

query I rowsort
SELECT + 93 * - + 0 AS col0
----
0

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

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

query II rowsort
SELECT DISTINCT + + 72, 3 AS col1
----
72
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1905
SELECT DISTINCT - 64 DIV - + 84 * CAST( + 78 AS SIGNED ) * - + ( 14 ) + MIN( - 6 ) + 24 + CASE - + 39 WHEN 53 * + 41 DIV + 36 * + + 65 * 85 + ( - 21 ) THEN - 19 + + 83 ELSE - - 0 END - MAX( + 78 ) AS col2
----
-60

skipif mysql # not compatible
query I rowsort label-1905
SELECT DISTINCT - 64 / - + 84 * CAST ( + 78 AS INTEGER ) * - + ( 14 ) + MIN ( - 6 ) + 24 + CASE - + 39 WHEN 53 * + 41 / + 36 * + + 65 * 85 + ( - 21 ) THEN - 19 + + 83 ELSE - - 0 END - MAX ( + 78 ) AS col2
----
-60

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1907
SELECT - ( - 8 ) / 81 / + CAST( NULL AS SIGNED ) / + CAST( NULL AS SIGNED ) + + 28 - - - 16 * + 44 * - 40 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1907
SELECT - ( - 8 ) / 81 / + CAST ( NULL AS INTEGER ) / + CAST ( NULL AS INTEGER ) + + 28 - - - 16 * + 44 * - 40 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1908
SELECT ALL + 90 - COALESCE ( + - 93, - COUNT( * ) * + 96 + 72 ), - 10 AS col2
----
183
-10

skipif mysql # not compatible
query II rowsort label-1908
SELECT ALL + 90 - COALESCE ( + - 93, - COUNT ( * ) * + 96 + 72 ), - 10 AS col2
----
183
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-1909
SELECT MIN( + + 86 ) AS col2
----
86

skipif mysql # not compatible
query I rowsort label-1909
SELECT MIN ( + + 86 ) AS col2
----
86

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1911
SELECT 69 * - 5 col1, NULLIF ( - COUNT( * ), - 84 )
----
-345
-1

skipif mysql # not compatible
query II rowsort label-1911
SELECT 69 * - 5 col1, NULLIF ( - COUNT ( * ), - 84 )
----
-345
-1

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1913
SELECT CAST( NULL AS SIGNED ) + - 55 * 75
----
NULL

skipif mysql # not compatible
query I rowsort label-1913
SELECT CAST ( NULL AS INTEGER ) + - 55 * 75
----
NULL

query I rowsort
SELECT + 7 * + - 73 * 30 + + - 51 AS col0
----
-15381

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1915
SELECT ALL - 13 - + CAST( + + 45 AS SIGNED )
----
-58

skipif mysql # not compatible
query I rowsort label-1915
SELECT ALL - 13 - + CAST ( + + 45 AS INTEGER )
----
-58

query I rowsort
SELECT ALL + 4 * + 82 AS col0
----
328

query I rowsort
SELECT DISTINCT 12 * 42 * + 47 AS col1
----
23688

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

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

query I rowsort
SELECT DISTINCT 5 * - 47 * - 22 * + 14 * + - 76
----
-5500880

query I rowsort
SELECT 87 + + 78
----
165

query I rowsort
SELECT 93 * 69 AS col1
----
6417

query I rowsort
SELECT ALL - 41 * 74 AS col0
----
-3034

query I rowsort
SELECT 64 + 51 + 80 + + 73 * + ( - 12 )
----
-681

query I rowsort
SELECT 74 + 46
----
120

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1925
SELECT DISTINCT - NULLIF ( - 50, CAST( NULL AS SIGNED ) )
----
50

skipif mysql # not compatible
query I rowsort label-1925
SELECT DISTINCT - NULLIF ( - 50, CAST ( NULL AS INTEGER ) )
----
50

query I rowsort
SELECT 83 * + 99 * - 42 AS col1
----
-345114

query I rowsort
SELECT ALL + 78 + + 96 + - - NULLIF ( - + 55, + + 15 ) * + - ( - + 15 )
----
-651

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1928
SELECT ALL + COALESCE ( + 76, 2 ) + + 93 * - 5 - + COUNT( * ) DIV ( - 98 ) AS col0
----
-389

skipif mysql # not compatible
query I rowsort label-1928
SELECT ALL + COALESCE ( + 76, 2 ) + + 93 * - 5 - + COUNT ( * ) / ( - 98 ) AS col0
----
-389

onlyif mysql # aggregate syntax: 
query I rowsort label-1929
SELECT 99 + - - COUNT( * ) AS col0
----
100

skipif mysql # not compatible
query I rowsort label-1929
SELECT 99 + - - COUNT ( * ) AS col0
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-1930
SELECT ALL - - 63 + - + MIN( 63 ) + + 53 AS col2
----
53

skipif mysql # not compatible
query I rowsort label-1930
SELECT ALL - - 63 + - + MIN ( 63 ) + + 53 AS col2
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-1931
SELECT DISTINCT 53 * - 92 * + 33 + - COUNT( + 69 )
----
-160909

skipif mysql # not compatible
query I rowsort label-1931
SELECT DISTINCT 53 * - 92 * + 33 + - COUNT ( + 69 )
----
-160909

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

skipif mysql # not compatible
query I rowsort label-1932
SELECT - MAX ( DISTINCT - - ( 17 ) )
----
-17

query I rowsort
SELECT 63 * - + 17
----
-1071

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1934
SELECT 7 + + 97 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1934
SELECT 7 + + 97 + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT + + 21 + 25
----
46

query I rowsort
SELECT ALL - + 59 + 60 AS col0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-1937
SELECT - 77 + + - 64 DIV - + 14 AS col1
----
-73

skipif mysql # not compatible
query I rowsort label-1937
SELECT - 77 + + - 64 / - + 14 AS col1
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-1938
SELECT 86 * - 50 + - 75 + + 58 * - - MAX( DISTINCT + 45 ) AS col2
----
-1765

skipif mysql # not compatible
query I rowsort label-1938
SELECT 86 * - 50 + - 75 + + 58 * - - MAX ( DISTINCT + 45 ) AS col2
----
-1765

query I rowsort
SELECT ALL + CASE + 25 WHEN ( + - 32 ) * 83 + - 52 THEN 84 WHEN - 30 THEN NULL END AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1940
SELECT ( - 30 ) * - CAST( + 28 AS SIGNED ), 16 AS col1
----
840
16

skipif mysql # not compatible
query II rowsort label-1940
SELECT ( - 30 ) * - CAST ( + 28 AS INTEGER ), 16 AS col1
----
840
16

onlyif mysql # aggregate syntax: 
query I rowsort label-1941
SELECT CASE 36 WHEN + - MIN( 68 ) THEN NULL WHEN 79 THEN - 23 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1941
SELECT CASE 36 WHEN + - MIN ( 68 ) THEN NULL WHEN 79 THEN - 23 END AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1942
SELECT ALL + - 79 - + - 13 + + - MIN( + COALESCE ( + + 35, - 95 * - 68, + 83 ) ) DIV - - 7
----
-71

skipif mysql # not compatible
query I rowsort label-1942
SELECT ALL + - 79 - + - 13 + + - MIN ( + COALESCE ( + + 35, - 95 * - 68, + 83 ) ) / - - 7
----
-71

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1943
SELECT DISTINCT + + 54 DIV - 72 + + 39 + 91 AS col1, COUNT( * )
----
130
1

skipif mysql # not compatible
query II rowsort label-1943
SELECT DISTINCT + + 54 / - 72 + + 39 + 91 AS col1, COUNT ( * )
----
130
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1944
SELECT 12 - 42 + - - MIN( - NULLIF ( + 68, + 40 ) ) - + + 61 * + 9
----
-647

skipif mysql # not compatible
query I rowsort label-1944
SELECT 12 - 42 + - - MIN ( - NULLIF ( + 68, + 40 ) ) - + + 61 * + 9
----
-647

query I rowsort
SELECT 55 * - 14 * - - 46 + - 38 col2
----
-35458

query I rowsort
SELECT - COALESCE ( + 13, 75 * - 81 )
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-1947
SELECT ALL 7 * - 40 * - CASE - - 42 WHEN COUNT( ALL - 55 ) THEN - 93 END * + - AVG ( ALL + 37 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1947
SELECT ALL 7 * - 40 * - CASE - - 42 WHEN COUNT ( ALL - 55 ) THEN - 93 END * + - AVG ( ALL + 37 ) AS col1
----
NULL

query I rowsort
SELECT 49 * ( 26 ) AS col0
----
1274

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1949
SELECT + 92 AS col1, CAST( + 29 AS SIGNED ) AS col1
----
92
29

skipif mysql # not compatible
query II rowsort label-1949
SELECT + 92 AS col1, CAST ( + 29 AS INTEGER ) AS col1
----
92
29

query II rowsort
SELECT ALL - 33 AS col1, 87
----
-33
87

query I rowsort
SELECT ALL 64 + + 1 AS col1
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-1952
SELECT ALL 41 + + + COUNT( * ) + - - 85
----
127

skipif mysql # not compatible
query I rowsort label-1952
SELECT ALL 41 + + + COUNT ( * ) + - - 85
----
127

query I rowsort
SELECT 68 + ( + 97 ) col2
----
165

query I rowsort
SELECT 73 * + - 81 * + + 74 + + COALESCE ( - 21, - + 73 - 35 )
----
-437583

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1955
SELECT ALL COUNT( 97 ) DIV - + 77 - + 33 DIV + + 19
----
-1

skipif mysql # not compatible
query I rowsort label-1955
SELECT ALL COUNT ( 97 ) / - + 77 - + 33 / + + 19
----
-1

query I rowsort
SELECT DISTINCT 52 + 54
----
106

query I rowsort
SELECT DISTINCT + 65 * - 39 AS col0
----
-2535

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1958
SELECT ALL - COALESCE ( - COUNT( * ), - 58 * + 57, - 11 - - + 80 ) + + CAST( NULL AS SIGNED ) + - 98 + ( - 68 ) * + - COALESCE ( - 92, - + 53 * - COUNT( * ) + - - 46, - 88 * + + 23 * 80 ) * + 97 + + 95 * 67
----
NULL

skipif mysql # not compatible
query I rowsort label-1958
SELECT ALL - COALESCE ( - COUNT ( * ), - 58 * + 57, - 11 - - + 80 ) + + CAST ( NULL AS INTEGER ) + - 98 + ( - 68 ) * + - COALESCE ( - 92, - + 53 * - COUNT ( * ) + - - 46, - 88 * + + 23 * 80 ) * + 97 + + 95 * 67
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1959
SELECT ALL + MIN( DISTINCT - - 2 ) + + 29
----
31

skipif mysql # not compatible
query I rowsort label-1959
SELECT ALL + MIN ( DISTINCT - - 2 ) + + 29
----
31

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1961
SELECT ALL COUNT( ALL - 33 ) * + 22 + - 20 + + - 10 + COUNT( * ) DIV + 41 * + 56 * - - 58
----
-8

skipif mysql # not compatible
query I rowsort label-1961
SELECT ALL COUNT ( ALL - 33 ) * + 22 + - 20 + + - 10 + COUNT ( * ) / + 41 * + 56 * - - 58
----
-8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1962
SELECT CAST( NULL AS SIGNED ) / 38 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1962
SELECT CAST ( NULL AS INTEGER ) / 38 col0
----
NULL

query I rowsort
SELECT 12 - + + 16 col2
----
-4

query I rowsort
SELECT ALL 33 * - 7 AS col0
----
-231

query I rowsort
SELECT DISTINCT + 8 * + 75 * + 60
----
36000

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1966
SELECT - 51 - - 6 - + - NULLIF ( - 29, + NULLIF ( + NULLIF ( ( - + 17 ), + + ( 79 ) ), - + CAST( NULL AS SIGNED ) * 33 ) + - 1 * COUNT( * ) * - - 51 * 57 / - 48 ) AS col2
----
-74

skipif mysql # not compatible
query I rowsort label-1966
SELECT - 51 - - 6 - + - NULLIF ( - 29, + NULLIF ( + NULLIF ( ( - + 17 ), + + ( 79 ) ), - + CAST ( NULL AS INTEGER ) * 33 ) + - 1 * COUNT ( * ) * - - 51 * 57 / - 48 ) AS col2
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-1967
SELECT DISTINCT - - 69 + + COUNT( * ) * - 72 * - 1 AS col0
----
141

skipif mysql # not compatible
query I rowsort label-1967
SELECT DISTINCT - - 69 + + COUNT ( * ) * - 72 * - 1 AS col0
----
141

query I rowsort
SELECT 21 * + 62
----
1302

query I rowsort
SELECT ALL - 84 - - - ( - 29 ) AS col0
----
-55

query I rowsort
SELECT ALL + 34 * 32 AS col2
----
1088

query I rowsort
SELECT - 14 - + 17 AS col0
----
-31

query I rowsort
SELECT DISTINCT + 1 * + + 42
----
42

onlyif mysql # DIV for integer division: 
query I rowsort label-1973
SELECT ALL + 90 DIV + 25
----
3

skipif mysql # not compatible
query I rowsort label-1973
SELECT ALL + 90 / + 25
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1974
SELECT ALL + SUM( 13 ) * + CASE + 25 WHEN 54 * - 56 / - 85 - - - 53 * + 43 THEN NULL WHEN - 22 * + + CAST( - NULLIF ( - 55, + 47 * - 3 / + 88 ) AS SIGNED ) - 6 + 33 THEN COALESCE ( + COALESCE ( SUM( + 73 ), - 72 + + 91 ), + - 70 ) ELSE CAST( 83 AS SIGNED ) * 65 END AS col0
----
70135

skipif mysql # not compatible
query I rowsort label-1974
SELECT ALL + SUM ( 13 ) * + CASE + 25 WHEN 54 * - 56 / - 85 - - - 53 * + 43 THEN NULL WHEN - 22 * + + CAST ( - NULLIF ( - 55, + 47 * - 3 / + 88 ) AS INTEGER ) - 6 + 33 THEN COALESCE ( + COALESCE ( SUM ( + 73 ), - 72 + + 91 ), + - 70 ) ELSE CAST ( 83 AS INTEGER ) * 65 END AS col0
----
70135

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1975
SELECT - + 62 * NULLIF ( COUNT( * ), 78 * 45 ) + - 68 + + 86 + + 0 AS col0, 97 * + 36 + + CAST( NULL AS SIGNED ) / 77 + - + CASE - + 40 WHEN - - 89 THEN + 64 WHEN 96 / - + ( + 32 ) THEN NULL ELSE + 28 END
----
-44
NULL

skipif mysql # not compatible
query II rowsort label-1975
SELECT - + 62 * NULLIF ( COUNT ( * ), 78 * 45 ) + - 68 + + 86 + + 0 AS col0, 97 * + 36 + + CAST ( NULL AS INTEGER ) / 77 + - + CASE - + 40 WHEN - - 89 THEN + 64 WHEN 96 / - + ( + 32 ) THEN NULL ELSE + 28 END
----
-44
NULL

query I rowsort
SELECT ALL NULLIF ( - - 6, - + 72 * 33 )
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-1977
SELECT - NULLIF ( 86, - ( - ( 49 ) ) * + - COALESCE ( - - ( - 64 ), + 87 / + - SUM( ALL 69 ) - + CASE 38 WHEN 73 THEN 60 WHEN - 89 THEN NULL WHEN + + 85 THEN NULL ELSE AVG ( ALL 33 ) / + 78 - + CASE - - ( - 12 ) WHEN - - 82 THEN 33 ELSE 76 * 28 END END ) ) + 4 * - 12 AS col2
----
-134

skipif mysql # not compatible
query I rowsort label-1977
SELECT - NULLIF ( 86, - ( - ( 49 ) ) * + - COALESCE ( - - ( - 64 ), + 87 / + - SUM ( ALL 69 ) - + CASE 38 WHEN 73 THEN 60 WHEN - 89 THEN NULL WHEN + + 85 THEN NULL ELSE AVG ( ALL 33 ) / + 78 - + CASE - - ( - 12 ) WHEN - - 82 THEN 33 ELSE 76 * 28 END END ) ) + 4 * - 12 AS col2
----
-134

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1978
SELECT - - 2 DIV CAST( 80 AS SIGNED ), COUNT( DISTINCT + 7 ) AS col2
----
0
1

skipif mysql # not compatible
query II rowsort label-1978
SELECT - - 2 / CAST ( 80 AS INTEGER ), COUNT ( DISTINCT + 7 ) AS col2
----
0
1

query I rowsort
SELECT - - 43 + - + 29
----
14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1980
SELECT DISTINCT + COUNT( * ) * - 22 DIV - ( - - 88 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1980
SELECT DISTINCT + COUNT ( * ) * - 22 / - ( - - 88 ) AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1981
SELECT ALL COUNT( DISTINCT - 31 ) DIV + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-1981
SELECT ALL COUNT ( DISTINCT - 31 ) / + COUNT ( * )
----
1

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

query II rowsort
SELECT ALL + 49 AS col2, 55 AS col1
----
49
55

onlyif mysql # aggregate syntax: 
query I rowsort label-1984
SELECT + SUM( - 76 ) * + 78 * CASE 82 WHEN - 31 THEN + + 43 / - - 65 + + 39 * + 23 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1984
SELECT + SUM ( - 76 ) * + 78 * CASE 82 WHEN - 31 THEN + + 43 / - - 65 + + 39 * + 23 END
----
NULL

query I rowsort
SELECT DISTINCT 55 * 94 + + 12
----
5182

query I rowsort
SELECT ALL 30 * + - 2 * 49 + + + 37 AS col2
----
-2903

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1987
SELECT - COALESCE ( - - 11, 7 + - - CAST( 33 AS SIGNED ) ) * + - 21 AS col2, - 1 * - CAST( + 73 AS SIGNED )
----
231
73

skipif mysql # not compatible
query II rowsort label-1987
SELECT - COALESCE ( - - 11, 7 + - - CAST ( 33 AS INTEGER ) ) * + - 21 AS col2, - 1 * - CAST ( + 73 AS INTEGER )
----
231
73

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1988
SELECT NULLIF ( - NULLIF ( - ( - CAST( - + CAST( NULL AS SIGNED ) AS DECIMAL ) ), - 50 ), + 75 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1988
SELECT NULLIF ( - NULLIF ( - ( - CAST ( - + CAST ( NULL AS INTEGER ) AS REAL ) ), - 50 ), + 75 )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1989
SELECT 87 * - - 25 * ( - + 43 ) + - SUM( ALL - - 40 ) AS col1, + 89
----
-93565
89

skipif mysql # not compatible
query II rowsort label-1989
SELECT 87 * - - 25 * ( - + 43 ) + - SUM ( ALL - - 40 ) AS col1, + 89
----
-93565
89

query I rowsort
SELECT DISTINCT - 84 * + 52 + + 67
----
-4301

query I rowsort
SELECT ALL + 34 * - 27 + + 39 * - 3
----
-1035

query I rowsort
SELECT ALL - 51 * - 18 + 63 + - - 3
----
984

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

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

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

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

query I rowsort
SELECT + - 98 + - 17 + + 90
----
-25

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1997
SELECT - 96 * ( - 39 ) + - MAX( + 18 ) * - + COUNT( * )
----
3762

skipif mysql # not compatible
query I rowsort label-1997
SELECT - 96 * ( - 39 ) + - MAX ( + 18 ) * - + COUNT ( * )
----
3762

query II rowsort
SELECT 91 AS col0, + 14 AS col0
----
91
14

onlyif mysql # aggregate syntax: 
query I rowsort label-1999
SELECT - 25 * COUNT( * ) * + - 40 * - 52 + + + NULLIF ( - + 94, - 18 + + 84 ) + - + ( - NULLIF ( + + 17, - 79 ) ) col0
----
-52077

skipif mysql # not compatible
query I rowsort label-1999
SELECT - 25 * COUNT ( * ) * + - 40 * - 52 + + + NULLIF ( - + 94, - 18 + + 84 ) + - + ( - NULLIF ( + + 17, - 79 ) ) col0
----
-52077

query I rowsort
SELECT DISTINCT 11 * + 53
----
583

query I rowsort
SELECT DISTINCT + + 56 * + 63 - - 20
----
3548

query II rowsort
SELECT DISTINCT 64 AS col2, + 12 AS col0
----
64
12

onlyif mysql # aggregate syntax: 
query I rowsort label-2003
SELECT + 98 + - COALESCE ( 90, + - ( - 1 ) ) * 34 + - COUNT( * ) + + 29 AS col2
----
-2934

skipif mysql # not compatible
query I rowsort label-2003
SELECT + 98 + - COALESCE ( 90, + - ( - 1 ) ) * 34 + - COUNT ( * ) + + 29 AS col2
----
-2934

query II rowsort
SELECT - 20 AS col1, 67 AS col1
----
-20
67

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2006
SELECT ALL - COALESCE ( + 31, 83 DIV + CAST( NULL AS SIGNED ) DIV 3, + 35 * - 75 ) AS col1, + COUNT( * )
----
-31
1

skipif mysql # not compatible
query II rowsort label-2006
SELECT ALL - COALESCE ( + 31, 83 / + CAST ( NULL AS INTEGER ) / 3, + 35 * - 75 ) AS col1, + COUNT ( * )
----
-31
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2007
SELECT MAX( - 95 ) AS col0
----
-95

skipif mysql # not compatible
query I rowsort label-2007
SELECT MAX ( - 95 ) AS col0
----
-95

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

skipif mysql # not compatible
query I rowsort label-2008
SELECT - - COUNT ( - + 54 ) / 32 + ( + COUNT ( * ) )
----
1

query I rowsort
SELECT - - NULLIF ( + 89, 87 + + - 30 ) + - + 23 AS col1
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-2010
SELECT ALL - NULLIF ( + + COALESCE ( - COUNT( * ), - + COUNT( * ), + COUNT( * ) + + ( 86 ) * + + 33 * - 70, + 70 ), + 41 * 59 + + 41 * 81 + - ( 15 ) * - 22 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2010
SELECT ALL - NULLIF ( + + COALESCE ( - COUNT ( * ), - + COUNT ( * ), + COUNT ( * ) + + ( 86 ) * + + 33 * - 70, + 70 ), + 41 * 59 + + 41 * 81 + - ( 15 ) * - 22 ) AS col1
----
1

query I rowsort
SELECT + + 73 * - 86 * - 92 + 63 + + 26
----
577665

query I rowsort
SELECT ALL - 87 + + 65 AS col0
----
-22

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2013
SELECT DISTINCT 89 + - 57 + 45 + 21 * 93 * - 37 * + - COUNT( * ) - 14 + + COALESCE ( 0, - - 30 * 8 * - - 18 DIV - 30 )
----
72324

skipif mysql # not compatible
query I rowsort label-2013
SELECT DISTINCT 89 + - 57 + 45 + 21 * 93 * - 37 * + - COUNT ( * ) - 14 + + COALESCE ( 0, - - 30 * 8 * - - 18 / - 30 )
----
72324

query I rowsort
SELECT ALL + 82 * - - 5 col2
----
410

query I rowsort
SELECT DISTINCT + 9 + - 23 * - 30 + 79 AS col2
----
778

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

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

query I rowsort
SELECT + 30 - - 58 AS col1
----
88

query I rowsort
SELECT - ( + 99 ) * - 28 + + 1
----
2773

onlyif mysql # DIV for integer division: 
query I rowsort label-2019
SELECT ALL 63 DIV + 62 + - 89 - - - 12
----
-100

skipif mysql # not compatible
query I rowsort label-2019
SELECT ALL 63 / + 62 + - 89 - - - 12
----
-100

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

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

query I rowsort
SELECT ALL - 83 * 56 AS col0
----
-4648

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2022
SELECT ALL - 7 DIV 69 + - CAST( - 93 AS SIGNED )
----
93

skipif mysql # not compatible
query I rowsort label-2022
SELECT ALL - 7 / 69 + - CAST ( - 93 AS INTEGER )
----
93

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

skipif mysql # not compatible
query I rowsort label-2023
SELECT - 69 + + 25 + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2024
SELECT DISTINCT 75 DIV - + CASE - + 26 WHEN - 58 THEN + COUNT( * ) * - + 48 * + CASE + 11 WHEN 39 + - 8 THEN NULL WHEN - 22 * + + COUNT( DISTINCT - - CAST( - 53 AS SIGNED ) ) + + 38 THEN - - 7 + + MAX( + 83 ) * + + 85 + - SUM( COALESCE ( + + 31, + NULLIF ( - 3, + NULLIF ( 15, + + ( 69 ) + 12 ) ) ) ) DIV + 76 ELSE + MIN( DISTINCT - 58 ) * - 31 END ELSE COUNT( * ) END + - 63
----
-138

skipif mysql # not compatible
query I rowsort label-2024
SELECT DISTINCT 75 / - + CASE - + 26 WHEN - 58 THEN + COUNT ( * ) * - + 48 * + CASE + 11 WHEN 39 + - 8 THEN NULL WHEN - 22 * + + COUNT ( DISTINCT - - CAST ( - 53 AS INTEGER ) ) + + 38 THEN - - 7 + + MAX ( + 83 ) * + + 85 + - SUM ( COALESCE ( + + 31, + NULLIF ( - 3, + NULLIF ( 15, + + ( 69 ) + 12 ) ) ) ) / + 76 ELSE + MIN ( DISTINCT - 58 ) * - 31 END ELSE COUNT ( * ) END + - 63
----
-138

query I rowsort
SELECT ALL 40 * 86
----
3440

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-2026
SELECT ALL - 47 DIV - NULLIF ( + - 33, COUNT( * ) * - 31 * - 49 * COUNT( ALL + 98 ) * - + CAST( 0 AS DECIMAL ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-2026
SELECT ALL - 47 / - NULLIF ( + - 33, COUNT ( * ) * - 31 * - 49 * COUNT ( ALL + 98 ) * - + CAST ( 0 AS REAL ) ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2027
SELECT ( - SUM( ( 97 ) ) ) AS col1
----
-97

skipif mysql # not compatible
query I rowsort label-2027
SELECT ( - SUM ( ( 97 ) ) ) AS col1
----
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2028
SELECT - 92 + CAST( NULL AS SIGNED ) + - NULLIF ( - 49, + NULLIF ( - 63, + NULLIF ( + COUNT( * ), + AVG ( ALL + 36 ) - 33 + 71 ) ) / - COUNT( * ) ) * - 14 + + + 6
----
NULL

skipif mysql # not compatible
query I rowsort label-2028
SELECT - 92 + CAST ( NULL AS INTEGER ) + - NULLIF ( - 49, + NULLIF ( - 63, + NULLIF ( + COUNT ( * ), + AVG ( ALL + 36 ) - 33 + 71 ) ) / - COUNT ( * ) ) * - 14 + + + 6
----
NULL

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2030
SELECT DISTINCT + COALESCE ( - - NULLIF ( + CASE + ( + 24 ) WHEN - 91 * + 4 * - 56 * + + 88 * - 53 * - COUNT( * ) THEN NULL WHEN 96 THEN NULL WHEN - - 79 * - - CAST( + + 76 AS SIGNED ) + COUNT( - 61 ) - - 6 + + COUNT( * ) * ( - 94 ) + + - 3 THEN - 56 * 61 ELSE NULL END, + + MIN( + + ( + 30 ) ) + 0 ), - NULLIF ( COUNT( * ), - NULLIF ( 98, + 53 / 92 ) ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-2030
SELECT DISTINCT + COALESCE ( - - NULLIF ( + CASE + ( + 24 ) WHEN - 91 * + 4 * - 56 * + + 88 * - 53 * - COUNT ( * ) THEN NULL WHEN 96 THEN NULL WHEN - - 79 * - - CAST ( + + 76 AS INTEGER ) + COUNT ( - 61 ) - - 6 + + COUNT ( * ) * ( - 94 ) + + - 3 THEN - 56 * 61 ELSE NULL END, + + MIN ( + + ( + 30 ) ) + 0 ), - NULLIF ( COUNT ( * ), - NULLIF ( 98, + 53 / 92 ) ) ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2031
SELECT ALL + 98 * + COUNT( * ) - + 8 * + 75
----
-502

skipif mysql # not compatible
query I rowsort label-2031
SELECT ALL + 98 * + COUNT ( * ) - + 8 * + 75
----
-502

onlyif mysql # aggregate syntax: 
query I rowsort label-2032
SELECT - MAX( ALL - 4 ) * + 29
----
116

skipif mysql # not compatible
query I rowsort label-2032
SELECT - MAX ( ALL - 4 ) * + 29
----
116

query II rowsort
SELECT ALL - 6 * - 14 AS col2, + 56 + - 6 + 98 AS col1
----
84
148

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

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

query I rowsort
SELECT + 23 * + 35 * + 7
----
5635

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2036
SELECT - + NULLIF ( 79, + 80 * CAST( - 92 AS SIGNED ) * 15 * - 75 )
----
-79

skipif mysql # not compatible
query I rowsort label-2036
SELECT - + NULLIF ( 79, + 80 * CAST ( - 92 AS INTEGER ) * 15 * - 75 )
----
-79

query I rowsort
SELECT DISTINCT + 24 + - 54 - - ( + 26 ) AS col2
----
-4

onlyif mysql # DIV for integer division: 
query I rowsort label-2038
SELECT DISTINCT + 80 DIV + 89 * - + 9 + 47 + + 22 * 0 AS col2
----
47

skipif mysql # not compatible
query I rowsort label-2038
SELECT DISTINCT + 80 / + 89 * - + 9 + 47 + + 22 * 0 AS col2
----
47

onlyif mysql # aggregate syntax: 
query II rowsort label-2039
SELECT + 12 - - COUNT( * ) col2, 46 * - - 22 + + 2 AS col0
----
13
1014

skipif mysql # not compatible
query II rowsort label-2039
SELECT + 12 - - COUNT ( * ) col2, 46 * - - 22 + + 2 AS col0
----
13
1014

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2040
SELECT DISTINCT - 99 * - + SUM( - 91 ) AS col0, - CAST( + 30 AS SIGNED ) col0
----
-9009
-30

skipif mysql # not compatible
query II rowsort label-2040
SELECT DISTINCT - 99 * - + SUM ( - 91 ) AS col0, - CAST ( + 30 AS INTEGER ) col0
----
-9009
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-2041
SELECT MAX( + 53 ) * + + 24
----
1272

skipif mysql # not compatible
query I rowsort label-2041
SELECT MAX ( + 53 ) * + + 24
----
1272

onlyif mysql # DIV for integer division: 
query I rowsort label-2042
SELECT ALL + 30 + - - 65 DIV - ( - 89 ) * CASE ( + - ( + ( + 48 ) ) ) WHEN + 60 THEN NULL WHEN + 5 THEN NULL WHEN 24 THEN NULL ELSE - 91 END AS col2
----
30

skipif mysql # not compatible
query I rowsort label-2042
SELECT ALL + 30 + - - 65 / - ( - 89 ) * CASE ( + - ( + ( + 48 ) ) ) WHEN + 60 THEN NULL WHEN + 5 THEN NULL WHEN 24 THEN NULL ELSE - 91 END AS col2
----
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2043
SELECT CAST( 4 AS SIGNED ) * + + 19 + 68
----
144

skipif mysql # not compatible
query I rowsort label-2043
SELECT CAST ( 4 AS INTEGER ) * + + 19 + 68
----
144

query I rowsort
SELECT ALL 24 + + ( - 26 )
----
-2

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2045
SELECT DISTINCT 42 * CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2045
SELECT DISTINCT 42 * CAST ( NULL AS REAL ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2046
SELECT AVG ( 82 ) + + CASE - 3 WHEN - + 62 THEN NULL WHEN + 1 THEN - - 50 + 17 ELSE NULL END, - 91 * - 54 * - - MAX( + - 55 ) + - - COUNT( ALL + - 92 ) - 52 * + 85 + ( + 13 ) + 6 AS col2
----
NULL
-274670

skipif mysql # not compatible
query II rowsort label-2046
SELECT AVG ( 82 ) + + CASE - 3 WHEN - + 62 THEN NULL WHEN + 1 THEN - - 50 + 17 ELSE NULL END, - 91 * - 54 * - - MAX ( + - 55 ) + - - COUNT ( ALL + - 92 ) - 52 * + 85 + ( + 13 ) + 6 AS col2
----
NULL
-274670

query I rowsort
SELECT 3 - 25
----
-22

query I rowsort
SELECT 13 - 28
----
-15

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

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

query II rowsort
SELECT ALL 55, - 20 AS col0
----
55
-20

query II rowsort
SELECT ALL 7, 71 col1
----
7
71

query I rowsort
SELECT ALL - CASE 48 WHEN 6 THEN + 21 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2053
SELECT ALL COUNT( * ) - 46
----
-45

skipif mysql # not compatible
query I rowsort label-2053
SELECT ALL COUNT ( * ) - 46
----
-45

query I rowsort
SELECT 22 + + - 77 AS col0
----
-55

query I rowsort
SELECT 93 * 80
----
7440

query I rowsort
SELECT 28 * + 99 col1
----
2772

query I rowsort
SELECT ALL - 52 * ( + 42 )
----
-2184

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2058
SELECT DISTINCT - COALESCE ( + 45, - 81 * + + CAST( + 70 AS SIGNED ) ) * + + 83 - COUNT( * ) + + 2 * + 9
----
-3718

skipif mysql # not compatible
query I rowsort label-2058
SELECT DISTINCT - COALESCE ( + 45, - 81 * + + CAST ( + 70 AS INTEGER ) ) * + + 83 - COUNT ( * ) + + 2 * + 9
----
-3718

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2060
SELECT ALL - COUNT( * ) AS col2, - 49 * COUNT( * ) col0
----
-1
-49

skipif mysql # not compatible
query II rowsort label-2060
SELECT ALL - COUNT ( * ) AS col2, - 49 * COUNT ( * ) col0
----
-1
-49

query II rowsort
SELECT 45 AS col0, - ( + 86 )
----
45
-86

query I rowsort
SELECT DISTINCT - 69 * + 31 AS col1
----
-2139

onlyif mysql # DIV for integer division: 
query I rowsort label-2063
SELECT ALL - - 37 DIV + 36 + 68 AS col0
----
69

skipif mysql # not compatible
query I rowsort label-2063
SELECT ALL - - 37 / + 36 + 68 AS col0
----
69

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

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

query I rowsort
SELECT 86 + 44
----
130

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2066
SELECT + CASE 10 WHEN + - CAST( NULL AS SIGNED ) + + COALESCE ( + 16, - + 22 * + ( + 67 ) / 26 + + + 77 + + CASE - 59 WHEN - + COUNT( * ) THEN + SUM( DISTINCT - 40 ) WHEN 86 + - 66 THEN NULL ELSE CAST( NULL AS DECIMAL ) END - - + 90 / - COALESCE ( - ( ( + 91 ) ), - 24 ) ) + + 1 THEN NULL WHEN - + COUNT( ALL - 41 ) * + 0 * MIN( - 80 ) THEN + 64 + 23 WHEN - 84 - + 88 THEN 74 ELSE - 49 * COUNT( * ) END
----
-49

skipif mysql # not compatible
query I rowsort label-2066
SELECT + CASE 10 WHEN + - CAST ( NULL AS INTEGER ) + + COALESCE ( + 16, - + 22 * + ( + 67 ) / 26 + + + 77 + + CASE - 59 WHEN - + COUNT ( * ) THEN + SUM ( DISTINCT - 40 ) WHEN 86 + - 66 THEN NULL ELSE CAST ( NULL AS REAL ) END - - + 90 / - COALESCE ( - ( ( + 91 ) ), - 24 ) ) + + 1 THEN NULL WHEN - + COUNT ( ALL - 41 ) * + 0 * MIN ( - 80 ) THEN + 64 + 23 WHEN - 84 - + 88 THEN 74 ELSE - 49 * COUNT ( * ) END
----
-49

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2067
SELECT 45 / + CAST( NULL AS DECIMAL ) + - + 68 + + COUNT( * ) + 38 / - 78 * + COUNT( * ) * - 28
----
NULL

skipif mysql # not compatible
query I rowsort label-2067
SELECT 45 / + CAST ( NULL AS REAL ) + - + 68 + + COUNT ( * ) + 38 / - 78 * + COUNT ( * ) * - 28
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2068
SELECT + 16 AS col1, NULLIF ( 5, - + COUNT( - 89 ) * - - 31 + 84 )
----
16
5

skipif mysql # not compatible
query II rowsort label-2068
SELECT + 16 AS col1, NULLIF ( 5, - + COUNT ( - 89 ) * - - 31 + 84 )
----
16
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2069
SELECT NULLIF ( + SUM( - 16 ), COUNT( * ) ) * + - MAX( DISTINCT 74 ) + + + ( + CAST( - 11 AS SIGNED ) ) + - ( - COUNT( * ) ) DIV ( + + 41 ) + - 83 * 43 + + - ( + - ( + COALESCE ( 3, + 83 ) ) ) AS col2
----
-2393

skipif mysql # not compatible
query I rowsort label-2069
SELECT NULLIF ( + SUM ( - 16 ), COUNT ( * ) ) * + - MAX ( DISTINCT 74 ) + + + ( + CAST ( - 11 AS INTEGER ) ) + - ( - COUNT ( * ) ) / ( + + 41 ) + - 83 * 43 + + - ( + - ( + COALESCE ( 3, + 83 ) ) ) AS col2
----
-2393

query I rowsort
SELECT - 30 + 5
----
-25

query I rowsort
SELECT ALL - + 32 * - 93
----
2976

onlyif mysql # aggregate syntax: 
query I rowsort label-2072
SELECT DISTINCT MIN( + 62 ) AS col0
----
62

skipif mysql # not compatible
query I rowsort label-2072
SELECT DISTINCT MIN ( + 62 ) AS col0
----
62

query I rowsort
SELECT ALL - 20 + 76
----
56

onlyif mysql # aggregate syntax: 
query II rowsort label-2074
SELECT + + 92 * + 84 + + 36 AS col0, - 15 * - COUNT( * ) AS col0
----
7764
15

skipif mysql # not compatible
query II rowsort label-2074
SELECT + + 92 * + 84 + + 36 AS col0, - 15 * - COUNT ( * ) AS col0
----
7764
15

onlyif mysql # aggregate syntax: 
query I rowsort label-2075
SELECT ALL - - COUNT( + - 69 ) + + + 53 AS col2
----
54

skipif mysql # not compatible
query I rowsort label-2075
SELECT ALL - - COUNT ( + - 69 ) + + + 53 AS col2
----
54

query I rowsort
SELECT DISTINCT + - ( 1 ) + - - 34 * - 16 AS col2
----
-545

query I rowsort
SELECT ALL - 70 + ( + - 70 )
----
-140

query II rowsort
SELECT + 10 + - 7 * - 40 AS col2, + 39 AS col0
----
290
39

onlyif mysql # aggregate syntax: 
query I rowsort label-2079
SELECT ALL - - 90 * - MIN( DISTINCT + 74 ) + + 15 AS col0
----
-6645

skipif mysql # not compatible
query I rowsort label-2079
SELECT ALL - - 90 * - MIN ( DISTINCT + 74 ) + + 15 AS col0
----
-6645

onlyif mysql # aggregate syntax: 
query I rowsort label-2080
SELECT - CASE - COUNT( * ) WHEN - 85 / 85 THEN - - NULLIF ( + 93, - 99 ) END
----
-93

skipif mysql # not compatible
query I rowsort label-2080
SELECT - CASE - COUNT ( * ) WHEN - 85 / 85 THEN - - NULLIF ( + 93, - 99 ) END
----
-93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2081
SELECT ( CAST( NULL AS SIGNED ) ) + ( - + NULLIF ( 28, 20 * - COUNT( * ) * - 15 ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2081
SELECT ( CAST ( NULL AS INTEGER ) ) + ( - + NULLIF ( 28, 20 * - COUNT ( * ) * - 15 ) ) AS col2
----
NULL

query I rowsort
SELECT ( - 25 ) + - + ( - - ( 90 ) ) AS col1
----
-115

onlyif mysql # aggregate syntax: 
query I rowsort label-2083
SELECT DISTINCT COUNT( * ) + - 19 AS col2
----
-18

skipif mysql # not compatible
query I rowsort label-2083
SELECT DISTINCT COUNT ( * ) + - 19 AS col2
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-2084
SELECT 84 * - MIN( DISTINCT 36 ) AS col1
----
-3024

skipif mysql # not compatible
query I rowsort label-2084
SELECT 84 * - MIN ( DISTINCT 36 ) AS col1
----
-3024

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2085
SELECT DISTINCT COUNT( * ) * - CAST( 12 AS SIGNED ) AS col2
----
-12

skipif mysql # not compatible
query I rowsort label-2085
SELECT DISTINCT COUNT ( * ) * - CAST ( 12 AS INTEGER ) AS col2
----
-12

query I rowsort
SELECT DISTINCT 0 col2
----
0

query I rowsort
SELECT DISTINCT 0 - 56
----
-56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2088
SELECT 38 * + - COALESCE ( - CASE - - 58 WHEN - + CAST( + - 31 AS SIGNED ) * 74 THEN + - ( COUNT( * ) ) ELSE + 71 * + + CAST( + + 59 AS SIGNED ) END, 5 ) * 78 AS col0
----
12416196

skipif mysql # not compatible
query I rowsort label-2088
SELECT 38 * + - COALESCE ( - CASE - - 58 WHEN - + CAST ( + - 31 AS INTEGER ) * 74 THEN + - ( COUNT ( * ) ) ELSE + 71 * + + CAST ( + + 59 AS INTEGER ) END, 5 ) * 78 AS col0
----
12416196

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2089
SELECT COALESCE ( MIN( ALL 19 ), + CASE - - 41 WHEN - - 44 - - 96 - + 94 / 59 THEN + - 60 + 19 + - COUNT( + + 4 ) WHEN - 47 THEN NULL END * COUNT( * ) - ( - - CAST( 97 AS SIGNED ) ), 63 + + - ( + 9 ) )
----
19

skipif mysql # not compatible
query I rowsort label-2089
SELECT COALESCE ( MIN ( ALL 19 ), + CASE - - 41 WHEN - - 44 - - 96 - + 94 / 59 THEN + - 60 + 19 + - COUNT ( + + 4 ) WHEN - 47 THEN NULL END * COUNT ( * ) - ( - - CAST ( 97 AS INTEGER ) ), 63 + + - ( + 9 ) )
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-2090
SELECT ALL - COUNT( DISTINCT - 35 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-2090
SELECT ALL - COUNT ( DISTINCT - 35 ) AS col1
----
-1

query I rowsort
SELECT + 63 * + 6 AS col2
----
378

onlyif mysql # aggregate syntax: 
query I rowsort label-2092
SELECT DISTINCT - 17 * MAX( DISTINCT - 20 )
----
340

skipif mysql # not compatible
query I rowsort label-2092
SELECT DISTINCT - 17 * MAX ( DISTINCT - 20 )
----
340

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2093
SELECT + NULLIF ( + COUNT( * ), CAST( NULL AS DECIMAL ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2093
SELECT + NULLIF ( + COUNT ( * ), CAST ( NULL AS REAL ) ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2094
SELECT ALL + CASE - 54 WHEN - 89 * - - 21 + - COUNT( - + 66 ) THEN NULL WHEN + 70 THEN + - 90 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2094
SELECT ALL + CASE - 54 WHEN - 89 * - - 21 + - COUNT ( - + 66 ) THEN NULL WHEN + 70 THEN + - 90 ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT + 9 * 19 * + 45 AS col1
----
7695

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2097
SELECT DISTINCT + 46 * + COUNT( * ) * + + COUNT( * ) + - 45 * + 75 + - 78 AS col1
----
-3407

skipif mysql # not compatible
query I rowsort label-2097
SELECT DISTINCT + 46 * + COUNT ( * ) * + + COUNT ( * ) + - 45 * + 75 + - 78 AS col1
----
-3407

query I rowsort
SELECT + 36 + + - 54 + + ( - 57 )
----
-75

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2100
SELECT + - 60 * + MIN( - 21 ) + + - 96 + - 58 AS col0
----
1106

skipif mysql # not compatible
query I rowsort label-2100
SELECT + - 60 * + MIN ( - 21 ) + + - 96 + - 58 AS col0
----
1106

query I rowsort
SELECT DISTINCT 93 * + 28 + 88 * - - 80 + - 20 AS col1
----
9624

onlyif mysql # aggregate syntax: 
query I rowsort label-2102
SELECT ALL + 52 * COUNT( * ) + + - 48
----
4

skipif mysql # not compatible
query I rowsort label-2102
SELECT ALL + 52 * COUNT ( * ) + + - 48
----
4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2103
SELECT ALL - SUM( ALL 1 ) * - 94 * - NULLIF ( + 31, - - 95 ) + - + 99 * + 11 * - 38 + - SUM( + 3 ) DIV 1 - 2 * SUM( + - 82 )
----
38629

skipif mysql # not compatible
query I rowsort label-2103
SELECT ALL - SUM ( ALL 1 ) * - 94 * - NULLIF ( + 31, - - 95 ) + - + 99 * + 11 * - 38 + - SUM ( + 3 ) / 1 - 2 * SUM ( + - 82 )
----
38629

onlyif mysql # aggregate syntax: 
query I rowsort label-2104
SELECT DISTINCT COUNT( * ) * - + 82 + + + 69
----
-13

skipif mysql # not compatible
query I rowsort label-2104
SELECT DISTINCT COUNT ( * ) * - + 82 + + + 69
----
-13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2105
SELECT ALL + - COALESCE ( + 12, - + 56 DIV NULLIF ( + - CAST( + + 92 AS SIGNED ), - 90 + + CAST( NULL AS SIGNED ) * 81 ) DIV + 29 + - 2, COUNT( * ) ) col2
----
-12

skipif mysql # not compatible
query I rowsort label-2105
SELECT ALL + - COALESCE ( + 12, - + 56 / NULLIF ( + - CAST ( + + 92 AS INTEGER ), - 90 + + CAST ( NULL AS INTEGER ) * 81 ) / + 29 + - 2, COUNT ( * ) ) col2
----
-12

query I rowsort
SELECT - 94 * - 42 AS col1
----
3948

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2107
SELECT + 34 - + COUNT( * ), ( + COALESCE ( CAST( NULL AS SIGNED ), - - MIN( DISTINCT - - 96 ) + - ( + COUNT( * ) ), 66 ) ) * 72 AS col0
----
33
6840

skipif mysql # not compatible
query II rowsort label-2107
SELECT + 34 - + COUNT ( * ), ( + COALESCE ( CAST ( NULL AS INTEGER ), - - MIN ( DISTINCT - - 96 ) + - ( + COUNT ( * ) ), 66 ) ) * 72 AS col0
----
33
6840

query I rowsort
SELECT DISTINCT - 90 col2
----
-90

query I rowsort
SELECT - 47 - - 14 AS col0
----
-33

onlyif mysql # aggregate syntax: 
query II rowsort label-2110
SELECT - + 2 * CASE + 5 WHEN + 14 THEN + - 23 WHEN - - 8 THEN NULL END + - 60, SUM( ALL - 45 ) AS col2
----
NULL
-45

skipif mysql # not compatible
query II rowsort label-2110
SELECT - + 2 * CASE + 5 WHEN + 14 THEN + - 23 WHEN - - 8 THEN NULL END + - 60, SUM ( ALL - 45 ) AS col2
----
NULL
-45

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

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

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

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

query I rowsort
SELECT - 71 * - - 91 col2
----
-6461

query I rowsort
SELECT DISTINCT NULLIF ( - 94, - 50 )
----
-94

onlyif mysql # aggregate syntax: 
query II rowsort label-2115
SELECT ALL + COALESCE ( + + 78, - - ( - NULLIF ( - 6, 62 ) ) * + 8 * + 39, + COUNT( * ) ) - - + COUNT( * ), COUNT( * ) AS col2
----
79
1

skipif mysql # not compatible
query II rowsort label-2115
SELECT ALL + COALESCE ( + + 78, - - ( - NULLIF ( - 6, 62 ) ) * + 8 * + 39, + COUNT ( * ) ) - - + COUNT ( * ), COUNT ( * ) AS col2
----
79
1

onlyif mysql # aggregate syntax: 
query II rowsort label-2116
SELECT ALL COUNT( * ), + 16 * 51 AS col0
----
1
816

skipif mysql # not compatible
query II rowsort label-2116
SELECT ALL COUNT ( * ), + 16 * 51 AS col0
----
1
816

query I rowsort
SELECT DISTINCT - 78 * + - 63 * 21 * - - ( 98 )
----
10113012

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2118
SELECT ALL + 24 - CAST( NULL AS SIGNED ) - 87 + + - 15 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2118
SELECT ALL + 24 - CAST ( NULL AS INTEGER ) - 87 + + - 15 AS col0
----
NULL

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

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

query I rowsort
SELECT + 47 * + 34 AS col1
----
1598

onlyif mysql # aggregate syntax: 
query I rowsort label-2121
SELECT DISTINCT + SUM( DISTINCT 82 ) * ( 32 ) * - 72 AS col1
----
-188928

skipif mysql # not compatible
query I rowsort label-2121
SELECT DISTINCT + SUM ( DISTINCT 82 ) * ( 32 ) * - 72 AS col1
----
-188928

onlyif mysql # aggregate syntax: 
query I rowsort label-2122
SELECT - 17 + - 94 + - MIN( ALL + 75 ) AS col2
----
-186

skipif mysql # not compatible
query I rowsort label-2122
SELECT - 17 + - 94 + - MIN ( ALL + 75 ) AS col2
----
-186

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

skipif mysql # not compatible
query I rowsort label-2123
SELECT + 81 * - - 57 * + COUNT ( * ) AS col2
----
4617

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2124
SELECT - 93 + + + 17 + - 21 + + 94 / CASE - + 57 WHEN COALESCE ( - + CAST( NULL AS DECIMAL ), + 7, 20 * 94 ) THEN NULL WHEN + COALESCE ( + ( 90 ), - 82 / - 41 - - COUNT( DISTINCT 31 ) ) THEN - ( - 35 ) END * - ( - 35 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2124
SELECT - 93 + + + 17 + - 21 + + 94 / CASE - + 57 WHEN COALESCE ( - + CAST ( NULL AS REAL ), + 7, 20 * 94 ) THEN NULL WHEN + COALESCE ( + ( 90 ), - 82 / - 41 - - COUNT ( DISTINCT 31 ) ) THEN - ( - 35 ) END * - ( - 35 ) AS col0
----
NULL

query I rowsort
SELECT - 69 + + 89 AS col0
----
20

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2126
SELECT + 46 + + 73 * - + 90 / CAST( NULL AS DECIMAL ) - - - 38 * - 71 * + + 38 + + 63 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2126
SELECT + 46 + + 73 * - + 90 / CAST ( NULL AS REAL ) - - - 38 * - 71 * + + 38 + + 63 AS col1
----
NULL

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

query II rowsort
SELECT DISTINCT 24 AS col1, + 59 AS col1
----
24
59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2129
SELECT DISTINCT + ( - 23 ) DIV + 95 * + 3 * + - 17 - + COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-2129
SELECT DISTINCT + ( - 23 ) / + 95 * + 3 * + - 17 - + COUNT ( * )
----
-1

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

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

query I rowsort
SELECT + NULLIF ( + ( + 83 ), + - 67 )
----
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2132
SELECT + 54 + + - CASE + - COALESCE ( 20, - 35 ) WHEN + 62 THEN - COUNT( * ) + 94 - ( + + 3 ) * 51 * + 63 + + CAST( - 97 AS SIGNED ) - 0 * - 97 * - + 48 WHEN + COUNT( * ) THEN NULL WHEN - 89 THEN NULL ELSE + 15 END * 74
----
-1056

skipif mysql # not compatible
query I rowsort label-2132
SELECT + 54 + + - CASE + - COALESCE ( 20, - 35 ) WHEN + 62 THEN - COUNT ( * ) + 94 - ( + + 3 ) * 51 * + 63 + + CAST ( - 97 AS INTEGER ) - 0 * - 97 * - + 48 WHEN + COUNT ( * ) THEN NULL WHEN - 89 THEN NULL ELSE + 15 END * 74
----
-1056

query II rowsort
SELECT 37, + 10 col1
----
37
10

onlyif mysql # DIV for integer division: 
query I rowsort label-2134
SELECT + 63 DIV 39 + + - 29 + - 14 col0
----
-42

skipif mysql # not compatible
query I rowsort label-2134
SELECT + 63 / 39 + + - 29 + - 14 col0
----
-42

onlyif mysql # aggregate syntax: 
query II rowsort label-2135
SELECT 39 * + CASE + 70 WHEN MIN( - 93 ) + - 32 THEN + + 64 ELSE NULL END + - COUNT( * ) col0, 77 * - 58
----
NULL
-4466

skipif mysql # not compatible
query II rowsort label-2135
SELECT 39 * + CASE + 70 WHEN MIN ( - 93 ) + - 32 THEN + + 64 ELSE NULL END + - COUNT ( * ) col0, 77 * - 58
----
NULL
-4466

query I rowsort
SELECT + 20 * + - 71
----
-1420

query I rowsort
SELECT + + 28 col2
----
28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2138
SELECT + + 64 / + + ( - 38 ) * + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2138
SELECT + + 64 / + + ( - 38 ) * + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2139
SELECT + + ( + 58 ) DIV 44 + + + 5
----
6

skipif mysql # not compatible
query I rowsort label-2139
SELECT + + ( + 58 ) / 44 + + + 5
----
6

query I rowsort
SELECT DISTINCT - 63 * + CASE - - 38 WHEN + 27 / - 11 + 63 THEN - 48 END + + + 85 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2141
SELECT + + 69 * + CAST( + 20 AS SIGNED ) + 33
----
1413

skipif mysql # not compatible
query I rowsort label-2141
SELECT + + 69 * + CAST ( + 20 AS INTEGER ) + 33
----
1413

onlyif mysql # aggregate syntax: 
query I rowsort label-2142
SELECT DISTINCT + + CASE + - COALESCE ( + ( + 98 ), - 46, 94 ) WHEN - COALESCE ( 77, - 32 ) THEN NULL ELSE COUNT( * ) END
----
1

skipif mysql # not compatible
query I rowsort label-2142
SELECT DISTINCT + + CASE + - COALESCE ( + ( + 98 ), - 46, 94 ) WHEN - COALESCE ( 77, - 32 ) THEN NULL ELSE COUNT ( * ) END
----
1

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

skipif mysql # not compatible
query I rowsort label-2143
SELECT ALL + ( CAST ( - 48 AS INTEGER ) ) AS col2
----
-48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2144
SELECT - + 57 - - COUNT( * ) DIV + - 34 + - 96
----
-153

skipif mysql # not compatible
query I rowsort label-2144
SELECT - + 57 - - COUNT ( * ) / + - 34 + - 96
----
-153

onlyif mysql # aggregate syntax: 
query II rowsort label-2145
SELECT DISTINCT + COUNT( * ) * - 6 - - - 54 AS col2, - 81
----
-60
-81

skipif mysql # not compatible
query II rowsort label-2145
SELECT DISTINCT + COUNT ( * ) * - 6 - - - 54 AS col2, - 81
----
-60
-81

query I rowsort
SELECT ALL + ( - + 94 ) * + 65 * 82 - - 71
----
-500949

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2147
SELECT + CAST( 50 AS SIGNED ) * - - 84
----
4200

skipif mysql # not compatible
query I rowsort label-2147
SELECT + CAST ( 50 AS INTEGER ) * - - 84
----
4200

query II rowsort
SELECT ALL 65 * - 68 AS col2, + 3
----
-4420
3

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

query I rowsort
SELECT - 53 + 2 col2
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-2151
SELECT - 29 + + - MIN( ALL 87 ) AS col2
----
-116

skipif mysql # not compatible
query I rowsort label-2151
SELECT - 29 + + - MIN ( ALL 87 ) AS col2
----
-116

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-2152
SELECT + CAST( NULL AS DECIMAL ) / 94 * + - NULLIF ( - 56, + + 6 + - - 76 ), MIN( DISTINCT - 67 ) * - + MIN( DISTINCT - + 45 ) - - 91 AS col1
----
NULL
-2924

skipif mysql # not compatible
query II rowsort label-2152
SELECT + CAST ( NULL AS REAL ) / 94 * + - NULLIF ( - 56, + + 6 + - - 76 ), MIN ( DISTINCT - 67 ) * - + MIN ( DISTINCT - + 45 ) - - 91 AS col1
----
NULL
-2924

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2155
SELECT - 23 * + COUNT( * ) AS col2, 39 AS col1
----
-23
39

skipif mysql # not compatible
query II rowsort label-2155
SELECT - 23 * + COUNT ( * ) AS col2, 39 AS col1
----
-23
39

query I rowsort
SELECT - 82 * - 18 AS col1
----
1476

query II rowsort
SELECT DISTINCT ( 83 ) col2, - 70 + 65
----
83
-5

query II rowsort
SELECT ALL 61 AS col0, 73 * + 73
----
61
5329

query II rowsort
SELECT - 62, + 44 + + 76 AS col2
----
-62
120

query II rowsort
SELECT DISTINCT 19 AS col1, CASE - 40 WHEN 71 THEN - + 74 ELSE NULL END
----
19
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2161
SELECT ALL - COUNT( ALL NULLIF ( - 57, 29 ) ) + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-2161
SELECT ALL - COUNT ( ALL NULLIF ( - 57, 29 ) ) + COUNT ( * )
----
0

query I rowsort
SELECT ALL + 90 + 6 col2
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-2163
SELECT + 91 - + SUM( ALL + NULLIF ( 80, + 58 * 64 + - 78 ) ) * - 71
----
5771

skipif mysql # not compatible
query I rowsort label-2163
SELECT + 91 - + SUM ( ALL + NULLIF ( 80, + 58 * 64 + - 78 ) ) * - 71
----
5771

query I rowsort
SELECT - 0 * - 19 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2165
SELECT + 55 * - + COUNT( * ) * - 9 - - + 78 AS col1
----
573

skipif mysql # not compatible
query I rowsort label-2165
SELECT + 55 * - + COUNT ( * ) * - 9 - - + 78 AS col1
----
573

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

query II rowsort
SELECT ALL - 41, 44 AS col2
----
-41
44

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2168
SELECT 87 / - 67 + 65 + + + CAST( NULL AS DECIMAL ) - - 67
----
NULL

skipif mysql # not compatible
query I rowsort label-2168
SELECT 87 / - 67 + 65 + + + CAST ( NULL AS REAL ) - - 67
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2169
SELECT ALL - - MAX( DISTINCT + 83 ), + 94 + + 62 + 12 AS col2
----
83
168

skipif mysql # not compatible
query II rowsort label-2169
SELECT ALL - - MAX ( DISTINCT + 83 ), + 94 + + 62 + 12 AS col2
----
83
168

onlyif mysql # aggregate syntax: 
query I rowsort label-2170
SELECT DISTINCT - COALESCE ( + MIN( ALL 2 ), 63 + ( + 42 ), + MAX( DISTINCT - 34 ) ) AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-2170
SELECT DISTINCT - COALESCE ( + MIN ( ALL 2 ), 63 + ( + 42 ), + MAX ( DISTINCT - 34 ) ) AS col1
----
-2

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2172
SELECT + 30 DIV 98 + - 51 * - NULLIF ( - + 65, + 27 ) * - 4 + + + 20 + + COUNT( * ) DIV 15 col0
----
13280

skipif mysql # not compatible
query I rowsort label-2172
SELECT + 30 / 98 + - 51 * - NULLIF ( - + 65, + 27 ) * - 4 + + + 20 + + COUNT ( * ) / 15 col0
----
13280

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2173
SELECT 23 - CASE COUNT( DISTINCT - ( - 41 ) ) WHEN MAX( ALL - 16 ) THEN NULL ELSE 81 END * + SUM( - 2 ) * + 38 - - - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2173
SELECT 23 - CASE COUNT ( DISTINCT - ( - 41 ) ) WHEN MAX ( ALL - 16 ) THEN NULL ELSE 81 END * + SUM ( - 2 ) * + 38 - - - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2174
SELECT + COALESCE ( + 65, + + 56 DIV 6 * COALESCE ( + CASE - 65 WHEN + 70 + - 88 + + 43 THEN - CAST( + 38 AS SIGNED ) DIV - 22 WHEN 0 THEN 76 + COUNT( * ) ELSE ( + 12 ) END, 77, + 36 ) * - + 62 + - + 57 * 3 * - 7 * 45 ) AS col1
----
65

skipif mysql # not compatible
query I rowsort label-2174
SELECT + COALESCE ( + 65, + + 56 / 6 * COALESCE ( + CASE - 65 WHEN + 70 + - 88 + + 43 THEN - CAST ( + 38 AS INTEGER ) / - 22 WHEN 0 THEN 76 + COUNT ( * ) ELSE ( + 12 ) END, 77, + 36 ) * - + 62 + - + 57 * 3 * - 7 * 45 ) AS col1
----
65

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2175
SELECT - COALESCE ( + 77, - + 77 DIV + + 69 - SUM( DISTINCT - 77 ) - + + SUM( - 60 ) + + + 5 + MIN( DISTINCT 58 ) * - + 27 * + + 16 * COUNT( - 81 ) DIV - 67 + - - 97 + - 18 * - 16 * + - 49 + - + MAX( ALL + + 43 ) - + + 80 * - 35, COUNT( * ) ) * ( COUNT( * ) )
----
-77

skipif mysql # not compatible
query I rowsort label-2175
SELECT - COALESCE ( + 77, - + 77 / + + 69 - SUM ( DISTINCT - 77 ) - + + SUM ( - 60 ) + + + 5 + MIN ( DISTINCT 58 ) * - + 27 * + + 16 * COUNT ( - 81 ) / - 67 + - - 97 + - 18 * - 16 * + - 49 + - + MAX ( ALL + + 43 ) - + + 80 * - 35, COUNT ( * ) ) * ( COUNT ( * ) )
----
-77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2176
SELECT NULLIF ( - COUNT( * ), - 28 * - - 86 / - CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) * - + ( - 62 ) + + CAST( + + 66 AS DECIMAL ) ) + + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-2176
SELECT NULLIF ( - COUNT ( * ), - 28 * - - 86 / - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) * - + ( - 62 ) + + CAST ( + + 66 AS REAL ) ) + + COUNT ( * )
----
0

query II rowsort
SELECT + 64 AS col1, 90 * + 88
----
64
7920

query I rowsort
SELECT - 54 * 90 * - 47 + ( 5 )
----
228425

query II rowsort
SELECT ALL - - 96, 53 col2
----
96
53

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2181
SELECT ALL - MIN( + 97 ) AS col1
----
-97

skipif mysql # not compatible
query I rowsort label-2181
SELECT ALL - MIN ( + 97 ) AS col1
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-2182
SELECT COUNT( * ) + COUNT( - 42 ) col0
----
2

skipif mysql # not compatible
query I rowsort label-2182
SELECT COUNT ( * ) + COUNT ( - 42 ) col0
----
2

query I rowsort
SELECT 83 - + + 37 AS col1
----
46

query I rowsort
SELECT ( - 33 ) - + 6
----
-39

query I rowsort
SELECT ALL 64 * 14 col0
----
896

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2186
SELECT 12 * + 93 * + - CAST( NULL AS SIGNED ) AS col0
----
NULL

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2187
SELECT ALL 76 DIV CAST( - 10 AS SIGNED )
----
-7

skipif mysql # not compatible
query I rowsort label-2187
SELECT ALL 76 / CAST ( - 10 AS INTEGER )
----
-7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2188
SELECT ALL + NULLIF ( - COUNT( * ), + 47 * - 93 * MAX( 45 ) * - 63 * - 56 DIV - 14 * + 53 + + 56 ) + + - COALESCE ( ( + 49 ), 42 DIV 45 )
----
-50

skipif mysql # not compatible
query I rowsort label-2188
SELECT ALL + NULLIF ( - COUNT ( * ), + 47 * - 93 * MAX ( 45 ) * - 63 * - 56 / - 14 * + 53 + + 56 ) + + - COALESCE ( ( + 49 ), 42 / 45 )
----
-50

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

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

query I rowsort
SELECT ALL - 71 + - - 97 AS col2
----
26

query I rowsort
SELECT 37 - + + 2
----
35

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2193
SELECT 56 DIV - 74 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2193
SELECT 56 / - 74 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2194
SELECT CAST( NULL AS DECIMAL ) + + MIN( + 25 ) + - - 76
----
NULL

skipif mysql # not compatible
query I rowsort label-2194
SELECT CAST ( NULL AS REAL ) + + MIN ( + 25 ) + - - 76
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2195
SELECT 66 - - CAST( + + 82 AS SIGNED ) AS col1
----
148

skipif mysql # not compatible
query I rowsort label-2195
SELECT 66 - - CAST ( + + 82 AS INTEGER ) AS col1
----
148

onlyif mysql # aggregate syntax: 
query I rowsort label-2196
SELECT ALL 72 + - + COUNT( * ) + + - 90 + - + 47 - - - 9 AS col0
----
-75

skipif mysql # not compatible
query I rowsort label-2196
SELECT ALL 72 + - + COUNT ( * ) + + - 90 + - + 47 - - - 9 AS col0
----
-75

query I rowsort
SELECT - 11 * 84
----
-924

onlyif mysql # aggregate syntax: 
query I rowsort label-2198
SELECT COUNT( * ) + + NULLIF ( - + 22, + 42 )
----
-21

skipif mysql # not compatible
query I rowsort label-2198
SELECT COUNT ( * ) + + NULLIF ( - + 22, + 42 )
----
-21

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

skipif mysql # not compatible
query I rowsort label-2199
SELECT ALL - COUNT ( * ) + + 6 AS col2
----
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2200
SELECT ALL - SUM( ALL + 47 ) AS col2, - ( + 18 ) - - ( + - 96 ) + - 2 * - 16 / + 26 + 49 + + 37 + + MIN( DISTINCT + - 30 ) * - CAST( NULL AS SIGNED ) AS col2
----
-47
NULL

skipif mysql # not compatible
query II rowsort label-2200
SELECT ALL - SUM ( ALL + 47 ) AS col2, - ( + 18 ) - - ( + - 96 ) + - 2 * - 16 / + 26 + 49 + + 37 + + MIN ( DISTINCT + - 30 ) * - CAST ( NULL AS INTEGER ) AS col2
----
-47
NULL

query I rowsort
SELECT + ( + - NULLIF ( 69, 53 ) ) AS col1
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-2202
SELECT COUNT( * ) + - COUNT( DISTINCT - 32 ) col0
----
0

skipif mysql # not compatible
query I rowsort label-2202
SELECT COUNT ( * ) + - COUNT ( DISTINCT - 32 ) col0
----
0

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2204
SELECT + + AVG ( CAST( NULL AS DECIMAL ) ), + 19 AS col1
----
NULL
19

skipif mysql # not compatible
query II rowsort label-2204
SELECT + + AVG ( CAST ( NULL AS REAL ) ), + 19 AS col1
----
NULL
19

onlyif mysql # aggregate syntax: 
query II rowsort label-2205
SELECT + NULLIF ( + + MIN( ALL + - 87 ), + COUNT( * ) ) * - + 0 + + + 24 + + COUNT( * ), - 56 AS col0
----
25
-56

skipif mysql # not compatible
query II rowsort label-2205
SELECT + NULLIF ( + + MIN ( ALL + - 87 ), + COUNT ( * ) ) * - + 0 + + + 24 + + COUNT ( * ), - 56 AS col0
----
25
-56

onlyif mysql # DIV for integer division: 
query I rowsort label-2206
SELECT 46 DIV + 69 + - + 78 * 15
----
-1170

skipif mysql # not compatible
query I rowsort label-2206
SELECT 46 / + 69 + - + 78 * 15
----
-1170

query I rowsort
SELECT ALL 85 * - 56 * 58 + - 74
----
-276154

onlyif mysql # aggregate syntax: 
query I rowsort label-2208
SELECT + COUNT( + 27 ) + 11 + + 66 * 96 AS col2
----
6348

skipif mysql # not compatible
query I rowsort label-2208
SELECT + COUNT ( + 27 ) + 11 + + 66 * 96 AS col2
----
6348

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

skipif mysql # not compatible
query I rowsort label-2209
SELECT DISTINCT - COUNT ( * ) / - COUNT ( * ) col0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2210
SELECT 86 DIV 81 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2210
SELECT 86 / 81 AS col2
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-2211
SELECT 22 * 71 * + + 39 AS col1, 70 + - SUM( ALL - + 6 ) * 61 AS col0
----
60918
436

skipif mysql # not compatible
query II rowsort label-2211
SELECT 22 * 71 * + + 39 AS col1, 70 + - SUM ( ALL - + 6 ) * 61 AS col0
----
60918
436

onlyif mysql # aggregate syntax: 
query I rowsort label-2212
SELECT 93 + 93 + - 98 + - 11 * 51 * - MAX( ALL - + 24 ) AS col2
----
-13376

skipif mysql # not compatible
query I rowsort label-2212
SELECT 93 + 93 + - 98 + - 11 * 51 * - MAX ( ALL - + 24 ) AS col2
----
-13376

query I rowsort
SELECT DISTINCT 29 * + 41 AS col0
----
1189

onlyif mysql # aggregate syntax: 
query I rowsort label-2214
SELECT COUNT( * ) + 10 AS col0
----
11

skipif mysql # not compatible
query I rowsort label-2214
SELECT COUNT ( * ) + 10 AS col0
----
11

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2216
SELECT ALL - COUNT( * ) + - - 26 * - - ( + ( - CASE + - SUM( DISTINCT - 81 ) WHEN + COALESCE ( - 6, 15 + 13 ) / + COUNT( * ) * - 30 THEN + 87 WHEN + ( - + 45 ) + + 11 * - - 91 * + 81 THEN 67 WHEN + + COUNT( * ) THEN NULL END ) ) / - 39 * - ( CAST( NULL AS SIGNED ) ) - + 64
----
NULL

skipif mysql # not compatible
query I rowsort label-2216
SELECT ALL - COUNT ( * ) + - - 26 * - - ( + ( - CASE + - SUM ( DISTINCT - 81 ) WHEN + COALESCE ( - 6, 15 + 13 ) / + COUNT ( * ) * - 30 THEN + 87 WHEN + ( - + 45 ) + + 11 * - - 91 * + 81 THEN 67 WHEN + + COUNT ( * ) THEN NULL END ) ) / - 39 * - ( CAST ( NULL AS INTEGER ) ) - + 64
----
NULL

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

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

query I rowsort
SELECT ALL 58 + + 52
----
110

query I rowsort
SELECT + 64 + + + 42 * - - 51 + + 69 * - + 16
----
1102

query I rowsort
SELECT ALL - COALESCE ( + ( 90 ), 32 ) * - + 48 AS col2
----
4320

query I rowsort
SELECT ALL 10 + - COALESCE ( + + 27, + 60 ) * - - 86 AS col1
----
-2312

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2222
SELECT + 16 + 52 * CAST( 18 AS SIGNED )
----
952

skipif mysql # not compatible
query I rowsort label-2222
SELECT + 16 + 52 * CAST ( 18 AS INTEGER )
----
952

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

skipif mysql # not compatible
query I rowsort label-2223
SELECT ALL 22 + + + COUNT ( * ) AS col2
----
23

query I rowsort
SELECT - COALESCE ( 35, - 71 + + 71 )
----
-35

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2226
SELECT - CASE + ( + 61 ) WHEN + COUNT( * ) THEN - + 54 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2226
SELECT - CASE + ( + 61 ) WHEN + COUNT ( * ) THEN - + 54 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-2227
SELECT ALL ( + - COALESCE ( - + 43, + - 64 ) ) + + 42 + - - NULLIF ( + 81, CAST( NULL AS DECIMAL ) - - ( + 4 ) ) DIV + - ( - + 92 ) AS col0
----
85

skipif mysql # not compatible
query I rowsort label-2227
SELECT ALL ( + - COALESCE ( - + 43, + - 64 ) ) + + 42 + - - NULLIF ( + 81, CAST ( NULL AS REAL ) - - ( + 4 ) ) / + - ( - + 92 ) AS col0
----
85

query II rowsort
SELECT - 85 AS col0, 35 + + ( - 99 ) + 75 AS col0
----
-85
11

onlyif mysql # aggregate syntax: 
query I rowsort label-2229
SELECT + - 2 * + ( - NULLIF ( 37, - + COUNT( * ) ) ) + + - 67 + 18 + COUNT( * ) * + - 14 * - 89 + ( + 9 ) + - + 85
----
1195

skipif mysql # not compatible
query I rowsort label-2229
SELECT + - 2 * + ( - NULLIF ( 37, - + COUNT ( * ) ) ) + + - 67 + 18 + COUNT ( * ) * + - 14 * - 89 + ( + 9 ) + - + 85
----
1195

query II rowsort
SELECT ALL 46 AS col0, ( + 63 ) AS col0
----
46
63

onlyif mysql # aggregate syntax: 
query I rowsort label-2231
SELECT - SUM( - 65 )
----
65

skipif mysql # not compatible
query I rowsort label-2231
SELECT - SUM ( - 65 )
----
65

query I rowsort
SELECT - 31 + 61
----
30

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2233
SELECT - CAST( NULL AS SIGNED ) AS col1, 86
----
NULL
86

skipif mysql # not compatible
query II rowsort label-2233
SELECT - CAST ( NULL AS INTEGER ) AS col1, 86
----
NULL
86

onlyif mysql # aggregate syntax: 
query I rowsort label-2234
SELECT + MIN( DISTINCT - 26 ) * - 35
----
910

skipif mysql # not compatible
query I rowsort label-2234
SELECT + MIN ( DISTINCT - 26 ) * - 35
----
910

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

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

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

query I rowsort
SELECT - - 83 col2
----
83

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2240
SELECT - 21 DIV MIN( + + 86 ) + - + COUNT( * ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-2240
SELECT - 21 / MIN ( + + 86 ) + - + COUNT ( * ) AS col1
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-2241
SELECT DISTINCT 90 DIV + - 76 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-2241
SELECT DISTINCT 90 / + - 76 AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2242
SELECT - - MAX( - 39 ) - - 54 * 59 AS col1
----
3147

skipif mysql # not compatible
query I rowsort label-2242
SELECT - - MAX ( - 39 ) - - 54 * 59 AS col1
----
3147

onlyif mysql # aggregate syntax: 
query II rowsort label-2243
SELECT ALL + 42 AS col1, MIN( 57 )
----
42
57

skipif mysql # not compatible
query II rowsort label-2243
SELECT ALL + 42 AS col1, MIN ( 57 )
----
42
57

query I rowsort
SELECT - 94 * + 88 AS col2
----
-8272

onlyif mysql # DIV for integer division: 
query I rowsort label-2245
SELECT COALESCE ( ( + 65 ), + 17 * - 69, + - 46 DIV + + 74 ) AS col2
----
65

skipif mysql # not compatible
query I rowsort label-2245
SELECT COALESCE ( ( + 65 ), + 17 * - 69, + - 46 / + + 74 ) AS col2
----
65

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2247
SELECT - 17 DIV 20 DIV - 70 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2247
SELECT - 17 / 20 / - 70 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2248
SELECT ALL - 29 * SUM( CAST( + + 34 AS SIGNED ) ) + + + 7 * + 63 * - 12 + + 64 DIV 8 AS col2, 63 DIV + - 4 AS col2
----
-6270
-15

skipif mysql # not compatible
query II rowsort label-2248
SELECT ALL - 29 * SUM ( CAST ( + + 34 AS INTEGER ) ) + + + 7 * + 63 * - 12 + + 64 / 8 AS col2, 63 / + - 4 AS col2
----
-6270
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-2249
SELECT - 28 - SUM( - 66 ) AS col0
----
38

skipif mysql # not compatible
query I rowsort label-2249
SELECT - 28 - SUM ( - 66 ) AS col0
----
38

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

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

query I rowsort
SELECT - 57 + - 19 AS col0
----
-76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2252
SELECT ALL 69 - + 75 * + 79 * CASE + 83 WHEN + 25 THEN NULL WHEN + - 45 * + CAST( NULL AS SIGNED ) THEN NULL WHEN - + 60 * - 77 * + + MIN( ALL - 52 ) THEN - + 26 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2252
SELECT ALL 69 - + 75 * + 79 * CASE + 83 WHEN + 25 THEN NULL WHEN + - 45 * + CAST ( NULL AS INTEGER ) THEN NULL WHEN - + 60 * - 77 * + + MIN ( ALL - 52 ) THEN - + 26 END AS col1
----
NULL

query I rowsort
SELECT + ( - + 38 ) - - 29 * + - 85 * - 53 * + - 57 * - + 16 + - 81 AS col1
----
119148121

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2255
SELECT + 7 + NULLIF ( - COUNT( * ), + 98 ) + - 89 AS col1
----
-83

skipif mysql # not compatible
query I rowsort label-2255
SELECT + 7 + NULLIF ( - COUNT ( * ), + 98 ) + - 89 AS col1
----
-83

query I rowsort
SELECT - + 31 col2
----
-31

query I rowsort
SELECT + COALESCE ( + 72, + 7 + 19 * - - 19 ) + + - 50 AS col0
----
22

query I rowsort
SELECT - ( - 44 ) + - 60 * 22
----
-1276

query I rowsort
SELECT + - 95 + - 13 * + + 28 - - 56 * + + 36 * + 85 + - ( + - ( 24 ) ) - + 66 col1
----
170859

onlyif mysql # aggregate syntax: 
query II rowsort label-2260
SELECT + + 90 * 2 * 15 * + + 81 AS col1, COUNT( * ) AS col1
----
218700
1

skipif mysql # not compatible
query II rowsort label-2260
SELECT + + 90 * 2 * 15 * + + 81 AS col1, COUNT ( * ) AS col1
----
218700
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2261
SELECT + + COALESCE ( - 56, + CAST( NULL AS SIGNED ) DIV + 17 DIV + 35 ) + SUM( + 32 ) - - CAST( + COUNT( * ) AS SIGNED ) + + + 94
----
71

skipif mysql # not compatible
query I rowsort label-2261
SELECT + + COALESCE ( - 56, + CAST ( NULL AS INTEGER ) / + 17 / + 35 ) + SUM ( + 32 ) - - CAST ( + COUNT ( * ) AS INTEGER ) + + + 94
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-2262
SELECT - - COUNT( - 47 )
----
1

skipif mysql # not compatible
query I rowsort label-2262
SELECT - - COUNT ( - 47 )
----
1

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

skipif mysql # not compatible
query II rowsort label-2263
SELECT ALL + COUNT ( * ) * + 3 AS col0, 79 + + 15 * 1 / - 41
----
3
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2264
SELECT + 9 * - CAST( - 23 AS SIGNED )
----
207

skipif mysql # not compatible
query I rowsort label-2264
SELECT + 9 * - CAST ( - 23 AS INTEGER )
----
207

onlyif mysql # aggregate syntax: 
query I rowsort label-2265
SELECT ALL ( - - COUNT( * ) ) * 68 * + - 36 + - 86 * + 92 AS col2
----
-10360

skipif mysql # not compatible
query I rowsort label-2265
SELECT ALL ( - - COUNT ( * ) ) * 68 * + - 36 + - 86 * + 92 AS col2
----
-10360

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2266
SELECT + 23 + 79 - - 37 * - 61 * - CAST( - COUNT( * ) AS SIGNED ) * + + 12 + - + COUNT( - 81 ) AS col0
----
-26983

skipif mysql # not compatible
query I rowsort label-2266
SELECT + 23 + 79 - - 37 * - 61 * - CAST ( - COUNT ( * ) AS INTEGER ) * + + 12 + - + COUNT ( - 81 ) AS col0
----
-26983

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2267
SELECT DISTINCT + CASE - + 92 WHEN - 62 / - + 18 + + 51 + + + 67 / + - 41 + + COUNT( * ) + - CASE CAST( + - 64 AS SIGNED ) WHEN 30 THEN NULL ELSE + 46 END - - ( + 29 ) * + + 44 - + 99 THEN NULL WHEN - COUNT( * ) / - COUNT( * ) + - 56 THEN - 4 WHEN + CAST( + 17 AS SIGNED ) / 14 THEN NULL WHEN CAST( NULL AS DECIMAL ) THEN NULL ELSE + 65 END
----
65

skipif mysql # not compatible
query I rowsort label-2267
SELECT DISTINCT + CASE - + 92 WHEN - 62 / - + 18 + + 51 + + + 67 / + - 41 + + COUNT ( * ) + - CASE CAST ( + - 64 AS INTEGER ) WHEN 30 THEN NULL ELSE + 46 END - - ( + 29 ) * + + 44 - + 99 THEN NULL WHEN - COUNT ( * ) / - COUNT ( * ) + - 56 THEN - 4 WHEN + CAST ( + 17 AS INTEGER ) / 14 THEN NULL WHEN CAST ( NULL AS REAL ) THEN NULL ELSE + 65 END
----
65

query I rowsort
SELECT + - 63 * - ( + + 52 ) AS col2
----
3276

query I rowsort
SELECT + 50 + - - ( - 62 )
----
-12

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2271
SELECT - MAX( + + 30 ) * - + 49 + + 92 AS col1
----
1562

skipif mysql # not compatible
query I rowsort label-2271
SELECT - MAX ( + + 30 ) * - + 49 + + 92 AS col1
----
1562

onlyif mysql # DIV for integer division: 
query I rowsort label-2272
SELECT 74 DIV + + COALESCE ( - 40, - AVG ( + - 63 ), COALESCE ( + - 12, + 33 ) ) + 4
----
3

skipif mysql # not compatible
query I rowsort label-2272
SELECT 74 / + + COALESCE ( - 40, - AVG ( + - 63 ), COALESCE ( + - 12, + 33 ) ) + 4
----
3

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2274
SELECT 28 + MAX( - 81 ) + + 94
----
41

skipif mysql # not compatible
query I rowsort label-2274
SELECT 28 + MAX ( - 81 ) + + 94
----
41

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

query II rowsort
SELECT + 97, + 61 AS col0
----
97
61

onlyif mysql # aggregate syntax: 
query I rowsort label-2277
SELECT 3 * + NULLIF ( 45, - + 59 ) * - ( 60 ) + 37 + + + ( + ( - 90 ) ) + - 91 + - MIN( 5 ) - + 23 * - - 25 * + 74 AS col0
----
-50799

skipif mysql # not compatible
query I rowsort label-2277
SELECT 3 * + NULLIF ( 45, - + 59 ) * - ( 60 ) + 37 + + + ( + ( - 90 ) ) + - 91 + - MIN ( 5 ) - + 23 * - - 25 * + 74 AS col0
----
-50799

query I rowsort
SELECT 56 + - + 15 - - 35 * 1 * 38 AS col2
----
1371

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2279
SELECT NULLIF ( - CASE + 78 WHEN - 14 THEN + CAST( + 81 AS DECIMAL ) * + CASE 91 WHEN COUNT( * ) THEN NULL WHEN + 34 THEN 0 * 99 / + CASE - 84 WHEN + 71 THEN - NULLIF ( + - 67, + 48 ) WHEN - COUNT( * ) THEN NULL WHEN 81 THEN 97 ELSE 39 * - MAX( DISTINCT 72 ) * - - 88 * + 75 + - 61 / + + 32 END END ELSE NULL END, + 74 * + - 45 + - - 84 * + 25 + - 33 + 40 * 23 ) + - 95
----
NULL

skipif mysql # not compatible
query I rowsort label-2279
SELECT NULLIF ( - CASE + 78 WHEN - 14 THEN + CAST ( + 81 AS REAL ) * + CASE 91 WHEN COUNT ( * ) THEN NULL WHEN + 34 THEN 0 * 99 / + CASE - 84 WHEN + 71 THEN - NULLIF ( + - 67, + 48 ) WHEN - COUNT ( * ) THEN NULL WHEN 81 THEN 97 ELSE 39 * - MAX ( DISTINCT 72 ) * - - 88 * + 75 + - 61 / + + 32 END END ELSE NULL END, + 74 * + - 45 + - - 84 * + 25 + - 33 + 40 * 23 ) + - 95
----
NULL

query II rowsort
SELECT + 11, - 69 AS col0
----
11
-69

query I rowsort
SELECT 75 * 71
----
5325

query I rowsort
SELECT ALL + 40 - + 89 + - 29 * 17 AS col1
----
-542

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2283
SELECT 53 * - CAST( 75 AS SIGNED )
----
-3975

skipif mysql # not compatible
query I rowsort label-2283
SELECT 53 * - CAST ( 75 AS INTEGER )
----
-3975

onlyif mysql # aggregate syntax: 
query I rowsort label-2284
SELECT DISTINCT - COUNT( ALL + 37 )
----
-1

skipif mysql # not compatible
query I rowsort label-2284
SELECT DISTINCT - COUNT ( ALL + 37 )
----
-1

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

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

query I rowsort
SELECT 65 * - 25
----
-1625

query I rowsort
SELECT ALL + 13 * 73 AS col1
----
949

query I rowsort
SELECT 72 + - 56 - + - ( + + 51 ) * - + 9 col2
----
-443

onlyif mysql # aggregate syntax: 
query I rowsort label-2289
SELECT ALL + 40 - - 91 * - COUNT( - + 4 ) AS col0
----
-51

skipif mysql # not compatible
query I rowsort label-2289
SELECT ALL + 40 - - 91 * - COUNT ( - + 4 ) AS col0
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-2290
SELECT - MAX( + ( + CASE + 50 WHEN - + 70 THEN - 66 WHEN + + 19 THEN NULL END ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2290
SELECT - MAX ( + ( + CASE + 50 WHEN - + 70 THEN - 66 WHEN + + 19 THEN NULL END ) )
----
NULL

query II rowsort
SELECT - 64 AS col2, 79 col1
----
-64
79

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2293
SELECT + ( MIN( DISTINCT 52 ) ) AS col1, - COUNT( * )
----
52
-1

skipif mysql # not compatible
query II rowsort label-2293
SELECT + ( MIN ( DISTINCT 52 ) ) AS col1, - COUNT ( * )
----
52
-1

query I rowsort
SELECT 20 + + 50 + + - 78 + + + 8 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2295
SELECT ALL - 55 * 36 * CASE - MAX( 45 ) WHEN + + 9 THEN - ( + 96 ) ELSE NULL END - COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2295
SELECT ALL - 55 * 36 * CASE - MAX ( 45 ) WHEN + + 9 THEN - ( + 96 ) ELSE NULL END - COUNT ( * ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2296
SELECT - - COALESCE ( - COALESCE ( + 26, + 16 + + COUNT( * ), + 23 ), 1 DIV + 99 + - 17 + 45 * + CAST( NULL AS SIGNED ) * - + 76 * - - ( - - COUNT( * ) ), + 22 ) AS col2, + 47 col0
----
-26
47

skipif mysql # not compatible
query II rowsort label-2296
SELECT - - COALESCE ( - COALESCE ( + 26, + 16 + + COUNT ( * ), + 23 ), 1 / + 99 + - 17 + 45 * + CAST ( NULL AS INTEGER ) * - + 76 * - - ( - - COUNT ( * ) ), + 22 ) AS col2, + 47 col0
----
-26
47

query I rowsort
SELECT + NULLIF ( + + 31, 15 ) + + 16
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-2298
SELECT DISTINCT + + MIN( DISTINCT - - 39 ) * 66 AS col0
----
2574

skipif mysql # not compatible
query I rowsort label-2298
SELECT DISTINCT + + MIN ( DISTINCT - - 39 ) * 66 AS col0
----
2574

query II rowsort
SELECT DISTINCT 43 AS col1, - COALESCE ( + - 66, - - 63, + 0, - 4 - - 21 ) - + - 59 + - - 98 AS col2
----
43
223

query II rowsort
SELECT ALL + + ( - - 82 ) * 72, - 4 + 72 + - COALESCE ( 86, + 49, - 54 ) AS col1
----
5904
-18

query I rowsort
SELECT ALL 51 + + 53
----
104

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

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

query I rowsort
SELECT - NULLIF ( - 34, - 79 + + 16 ) AS col2
----
34

query I rowsort
SELECT ALL - 12 + + 10 + - ( 70 ) + 18 + - + NULLIF ( 64, - 91 ) * + - 2
----
74

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

query I rowsort
SELECT + 0 + NULLIF ( + + 92, - - 88 - - NULLIF ( + 28, + 28 ) ) * - + 86 + + - 92
----
-8004

onlyif mysql # aggregate syntax: 
query II rowsort label-2307
SELECT ALL 42 + + SUM( - + 66 ) + - 89, CASE SUM( + 63 ) WHEN 43 + - 19 THEN NULL WHEN + + 23 THEN - 39 END AS col0
----
-113
NULL

skipif mysql # not compatible
query II rowsort label-2307
SELECT ALL 42 + + SUM ( - + 66 ) + - 89, CASE SUM ( + 63 ) WHEN 43 + - 19 THEN NULL WHEN + + 23 THEN - 39 END AS col0
----
-113
NULL

query II rowsort
SELECT + 32, - 20 * + - 25 AS col0
----
32
500

query II rowsort
SELECT DISTINCT COALESCE ( - - 6, - 88, - ( - 98 ) ) + + + 75 AS col2, COALESCE ( + + 36, 11 + + NULLIF ( - - 61, + NULLIF ( - 49, 36 ) * + - 68 ), - - 63 ) * - 84 * 97 AS col2
----
81
-293328

query I rowsort
SELECT ( + 85 ) * + - 77
----
-6545

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2311
SELECT ALL - COUNT( * ), MIN( + 25 ) DIV - 9 - + 64 AS col1
----
-1
-66

skipif mysql # not compatible
query II rowsort label-2311
SELECT ALL - COUNT ( * ), MIN ( + 25 ) / - 9 - + 64 AS col1
----
-1
-66

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

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

query I rowsort
SELECT DISTINCT ( 29 ) + + 82
----
111

onlyif mysql # aggregate syntax: 
query I rowsort label-2314
SELECT ( + 56 ) * + COUNT( * ) * + 58 + - 83 col0
----
3165

skipif mysql # not compatible
query I rowsort label-2314
SELECT ( + 56 ) * + COUNT ( * ) * + 58 + - 83 col0
----
3165

onlyif mysql # aggregate syntax: 
query I rowsort label-2315
SELECT + MIN( DISTINCT - ( - 28 ) ) col0
----
28

skipif mysql # not compatible
query I rowsort label-2315
SELECT + MIN ( DISTINCT - ( - 28 ) ) col0
----
28

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2317
SELECT ALL 93 - + MAX( - 80 )
----
173

skipif mysql # not compatible
query I rowsort label-2317
SELECT ALL 93 - + MAX ( - 80 )
----
173

onlyif mysql # aggregate syntax: 
query II rowsort label-2318
SELECT DISTINCT - 79, MIN( DISTINCT - 8 ) AS col1
----
-79
-8

skipif mysql # not compatible
query II rowsort label-2318
SELECT DISTINCT - 79, MIN ( DISTINCT - 8 ) AS col1
----
-79
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-2319
SELECT 53 - - 71 * + 70 + - COUNT( * )
----
5022

skipif mysql # not compatible
query I rowsort label-2319
SELECT 53 - - 71 * + 70 + - COUNT ( * )
----
5022

onlyif mysql # DIV for integer division: 
query I rowsort label-2320
SELECT DISTINCT 98 DIV 70 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2320
SELECT DISTINCT 98 / 70 AS col0
----
1

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

skipif mysql # not compatible
query I rowsort label-2321
SELECT 65 / - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL - 81 * - - 31 AS col0
----
-2511

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2324
SELECT ( - - 70 ) * + + 43 * COUNT( * ) * + + 97
----
291970

skipif mysql # not compatible
query I rowsort label-2324
SELECT ( - - 70 ) * + + 43 * COUNT ( * ) * + + 97
----
291970

query I rowsort
SELECT - 98 * + NULLIF ( + 40, - 2 * + + 4 ) col2
----
-3920

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2326
SELECT + 71 AS col2, + CAST( - - 48 AS SIGNED ) AS col2
----
71
48

skipif mysql # not compatible
query II rowsort label-2326
SELECT + 71 AS col2, + CAST ( - - 48 AS INTEGER ) AS col2
----
71
48

query I rowsort
SELECT + 16 * - - 89
----
1424

query I rowsort
SELECT - 64 * + 25 * - 27 col1
----
43200

onlyif mysql # DIV for integer division: 
query I rowsort label-2329
SELECT DISTINCT - 65 + 16 + - + 4 - + + 33 DIV - + 98 + - 54 AS col1
----
-107

skipif mysql # not compatible
query I rowsort label-2329
SELECT DISTINCT - 65 + 16 + - + 4 - + + 33 / - + 98 + - 54 AS col1
----
-107

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2330
SELECT ALL + 32 + - + 1 + CAST( - - COALESCE ( 76, 7 ) AS SIGNED ) AS col0, + 46 AS col0
----
107
46

skipif mysql # not compatible
query II rowsort label-2330
SELECT ALL + 32 + - + 1 + CAST ( - - COALESCE ( 76, 7 ) AS INTEGER ) AS col0, + 46 AS col0
----
107
46

query II rowsort
SELECT DISTINCT + 19 AS col2, 25 * - 54
----
19
-1350

query I rowsort
SELECT ( 26 ) + + 76 col1
----
102

onlyif mysql # aggregate syntax: 
query I rowsort label-2333
SELECT ALL - + MIN( 0 ) * 97 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2333
SELECT ALL - + MIN ( 0 ) * 97 AS col1
----
0

query I rowsort
SELECT ALL + 83 + + + 39
----
122

query I rowsort
SELECT - 71 + - + 51
----
-122

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

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

query I rowsort
SELECT - + 70 col2
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-2338
SELECT - ( + COALESCE ( + + 67, - + 68 ) ) + + - 33 + - COUNT( ALL - 26 ) * 12
----
-112

skipif mysql # not compatible
query I rowsort label-2338
SELECT - ( + COALESCE ( + + 67, - + 68 ) ) + + - 33 + - COUNT ( ALL - 26 ) * 12
----
-112

query I rowsort
SELECT ALL - + 5 * 33 AS col2
----
-165

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2340
SELECT ALL - COUNT( + 7 ) * + 51 * 1 DIV 43 + - 51 + - 4 DIV - + 34 + - 8 DIV - NULLIF ( - 16, + - 76 ) * + 75 * ( - 71 ) * - 9 + - 52 * + + 72
----
-3796

skipif mysql # not compatible
query I rowsort label-2340
SELECT ALL - COUNT ( + 7 ) * + 51 * 1 / 43 + - 51 + - 4 / - + 34 + - 8 / - NULLIF ( - 16, + - 76 ) * + 75 * ( - 71 ) * - 9 + - 52 * + + 72
----
-3796

query II rowsort
SELECT DISTINCT 57, 13 + + 0 col0
----
57
13

query I rowsort
SELECT ALL + ( + 48 ) AS col0
----
48

query I rowsort
SELECT ALL 94 + 71 AS col1
----
165

onlyif mysql # aggregate syntax: 
query I rowsort label-2344
SELECT COALESCE ( + COUNT( * ), - ( + 46 ) + 35 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-2344
SELECT COALESCE ( + COUNT ( * ), - ( + 46 ) + 35 ) col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2345
SELECT + MIN( + 31 ) AS col1
----
31

skipif mysql # not compatible
query I rowsort label-2345
SELECT + MIN ( + 31 ) AS col1
----
31

query I rowsort
SELECT 75 * + 3 * + - 55 + - - ( - 72 )
----
-12447

onlyif mysql # aggregate syntax: 
query I rowsort label-2347
SELECT - 40 * + 75 + COUNT( * )
----
-2999

skipif mysql # not compatible
query I rowsort label-2347
SELECT - 40 * + 75 + COUNT ( * )
----
-2999

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

skipif mysql # not compatible
query I rowsort label-2348
SELECT + 34 * + COUNT ( ALL + 71 ) AS col1
----
34

query I rowsort
SELECT ALL 46 * 52 * - - 76 AS col1
----
181792

onlyif mysql # aggregate syntax: 
query I rowsort label-2350
SELECT + 51 + + 32 / + CASE ( - 17 ) WHEN - 62 + + COUNT( DISTINCT - + 51 ) + - 98 * 78 / + SUM( - 67 ) THEN NULL WHEN + - 25 THEN NULL WHEN + 33 THEN - 23 + 56 + - + 11 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2350
SELECT + 51 + + 32 / + CASE ( - 17 ) WHEN - 62 + + COUNT ( DISTINCT - + 51 ) + - 98 * 78 / + SUM ( - 67 ) THEN NULL WHEN + - 25 THEN NULL WHEN + 33 THEN - 23 + 56 + - + 11 END
----
NULL

query I rowsort
SELECT DISTINCT + 53 * 82 - + 50 * + - 65 AS col0
----
7596

onlyif mysql # aggregate syntax: 
query I rowsort label-2352
SELECT + 96 * - ( - 12 ) + COUNT( * ) AS col0
----
1153

skipif mysql # not compatible
query I rowsort label-2352
SELECT + 96 * - ( - 12 ) + COUNT ( * ) AS col0
----
1153

onlyif mysql # aggregate syntax: 
query I rowsort label-2353
SELECT ALL 92 * + COUNT( ALL + 30 )
----
92

skipif mysql # not compatible
query I rowsort label-2353
SELECT ALL 92 * + COUNT ( ALL + 30 )
----
92

query II rowsort
SELECT - 98 * + - 23 AS col2, 31
----
2254
31

onlyif mysql # aggregate syntax: 
query I rowsort label-2355
SELECT 49 * 87 * + 11 + 60 + COUNT( * )
----
46954

skipif mysql # not compatible
query I rowsort label-2355
SELECT 49 * 87 * + 11 + 60 + COUNT ( * )
----
46954

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

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

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

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

query I rowsort
SELECT - + 2 + 91
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-2359
SELECT ALL 53 * - 73 + NULLIF ( - + COUNT( DISTINCT + 21 ), - 6 )
----
-3870

skipif mysql # not compatible
query I rowsort label-2359
SELECT ALL 53 * - 73 + NULLIF ( - + COUNT ( DISTINCT + 21 ), - 6 )
----
-3870

onlyif mysql # DIV for integer division: 
query I rowsort label-2360
SELECT ALL 45 DIV 16 + - 6 AS col0
----
-4

skipif mysql # not compatible
query I rowsort label-2360
SELECT ALL 45 / 16 + - 6 AS col0
----
-4

query I rowsort
SELECT DISTINCT + ( + 51 ) AS col0
----
51

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

skipif mysql # not compatible
query I rowsort label-2362
SELECT DISTINCT 68 + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + 55 * + 22 AS col2
----
1210

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2364
SELECT - NULLIF ( + NULLIF ( + + ( + - 61 ), - + 67 ), + COUNT( * ) ) + - 16, 64 DIV - 10 + 87 col1
----
45
81

skipif mysql # not compatible
query II rowsort label-2364
SELECT - NULLIF ( + NULLIF ( + + ( + - 61 ), - + 67 ), + COUNT ( * ) ) + - 16, 64 / - 10 + 87 col1
----
45
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2365
SELECT - + CASE + 6 WHEN + 33 THEN NULL ELSE NULLIF ( CAST( - + 87 AS SIGNED ), 80 - NULLIF ( + CASE - 60 WHEN - 55 THEN - ( - + 52 ) * + 42 ELSE CASE + COUNT( * ) WHEN + - 65 THEN NULL WHEN 96 THEN ( - + 80 ) WHEN ( + 12 ) THEN NULL ELSE - - 14 / + MIN( - - ( 47 ) ) * + + 20 / + + COUNT( * ) + - 81 END END, + 84 + - 13 ) ) END AS col1
----
87

skipif mysql # not compatible
query I rowsort label-2365
SELECT - + CASE + 6 WHEN + 33 THEN NULL ELSE NULLIF ( CAST ( - + 87 AS INTEGER ), 80 - NULLIF ( + CASE - 60 WHEN - 55 THEN - ( - + 52 ) * + 42 ELSE CASE + COUNT ( * ) WHEN + - 65 THEN NULL WHEN 96 THEN ( - + 80 ) WHEN ( + 12 ) THEN NULL ELSE - - 14 / + MIN ( - - ( 47 ) ) * + + 20 / + + COUNT ( * ) + - 81 END END, + 84 + - 13 ) ) END AS col1
----
87

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2367
SELECT ALL + 51 + + + COALESCE ( - ( + 63 ), + CAST( NULL AS SIGNED ) ) + 3 AS col0
----
-9

skipif mysql # not compatible
query I rowsort label-2367
SELECT ALL + 51 + + + COALESCE ( - ( + 63 ), + CAST ( NULL AS INTEGER ) ) + 3 AS col0
----
-9

query I rowsort
SELECT - 14 + + 2
----
-12

onlyif mysql # DIV for integer division: 
query I rowsort label-2369
SELECT - 0 DIV + - 91 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2369
SELECT - 0 / + - 91 AS col0
----
0

query I rowsort
SELECT + 12 * + 52 AS col0
----
624

query I rowsort
SELECT - 64 - - 76 AS col0
----
12

query I rowsort
SELECT - 70 * - - 52 AS col0
----
-3640

onlyif mysql # aggregate syntax: 
query I rowsort label-2373
SELECT - 82 * + - COALESCE ( + COUNT( * ), - COUNT( * ) + - 39 )
----
82

skipif mysql # not compatible
query I rowsort label-2373
SELECT - 82 * + - COALESCE ( + COUNT ( * ), - COUNT ( * ) + - 39 )
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-2374
SELECT - MIN( DISTINCT - - 69 ) + - ( + + 55 ) + - 29 * - 30
----
746

skipif mysql # not compatible
query I rowsort label-2374
SELECT - MIN ( DISTINCT - - 69 ) + - ( + + 55 ) + - 29 * - 30
----
746

onlyif mysql # aggregate syntax: 
query I rowsort label-2375
SELECT ALL + 53 * - + 32 * + COUNT( * )
----
-1696

skipif mysql # not compatible
query I rowsort label-2375
SELECT ALL + 53 * - + 32 * + COUNT ( * )
----
-1696

query I rowsort
SELECT ALL - 26 * - 23 AS col2
----
598

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2378
SELECT ALL + NULLIF ( + - COUNT( * ), + ( - 2 ) / - 72 ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-2378
SELECT ALL + NULLIF ( + - COUNT ( * ), + ( - 2 ) / - 72 ) col1
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-2379
SELECT ALL - 54 * - MAX( COALESCE ( NULLIF ( - + 86, 20 ), 82 * + 96 + + 90 + - 51 - 56 ) ) AS col2, - 99
----
-4644
-99

skipif mysql # not compatible
query II rowsort label-2379
SELECT ALL - 54 * - MAX ( COALESCE ( NULLIF ( - + 86, 20 ), 82 * + 96 + + 90 + - 51 - 56 ) ) AS col2, - 99
----
-4644
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2380
SELECT + 92 * - + NULLIF ( - 59, - COALESCE ( 81, + ( + 90 ), 77 ) ) - + + CAST( + 40 AS SIGNED )
----
5388

skipif mysql # not compatible
query I rowsort label-2380
SELECT + 92 * - + NULLIF ( - 59, - COALESCE ( 81, + ( + 90 ), 77 ) ) - + + CAST ( + 40 AS INTEGER )
----
5388

query II rowsort
SELECT + 62, + 89 AS col2
----
62
89

query I rowsort
SELECT + 80 * - ( + 14 )
----
-1120

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

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

query I rowsort
SELECT ( - - 96 ) AS col0
----
96

query I rowsort
SELECT ALL + 68 * 13 AS col0
----
884

query I rowsort
SELECT - + 62 * 31
----
-1922

query I rowsort
SELECT ALL 14 * - 19 * - 61 * + - 69 + - 61 col1
----
-1119655

query I rowsort
SELECT DISTINCT + - 56 * - 77 + - 86 col1
----
4226

onlyif mysql # aggregate syntax: 
query II rowsort label-2390
SELECT ALL - - 38 * - ( - 24 ) * + + 9 col1, - 92 + - COUNT( * )
----
8208
-93

skipif mysql # not compatible
query II rowsort label-2390
SELECT ALL - - 38 * - ( - 24 ) * + + 9 col1, - 92 + - COUNT ( * )
----
8208
-93

query I rowsort
SELECT + 73 * - + 58
----
-4234

onlyif mysql # aggregate syntax: 
query I rowsort label-2392
SELECT DISTINCT + COUNT( 32 ) * - MAX( ALL - 36 ) - - ( + NULLIF ( + - 2, + + 0 * - 58 ) ) + - + 9 * 4 + COUNT( DISTINCT + 88 )
----
-1

skipif mysql # not compatible
query I rowsort label-2392
SELECT DISTINCT + COUNT ( 32 ) * - MAX ( ALL - 36 ) - - ( + NULLIF ( + - 2, + + 0 * - 58 ) ) + - + 9 * 4 + COUNT ( DISTINCT + 88 )
----
-1

query II rowsort
SELECT ALL + - 3 * + 5 + + + 86 - 35 col0, + 35 AS col1
----
36
35

query I rowsort
SELECT - + 10 + + + 13
----
3

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

skipif mysql # not compatible
query I rowsort label-2395
SELECT + - 49 * + + 0 + + + COUNT ( * ) / - 42
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2396
SELECT + 9 - + COALESCE ( - CAST( NULL AS SIGNED ), 43 ) + + ( 82 ) * + - MIN( 97 ) * + 76 + + 73
----
-604465

skipif mysql # not compatible
query I rowsort label-2396
SELECT + 9 - + COALESCE ( - CAST ( NULL AS INTEGER ), 43 ) + + ( 82 ) * + - MIN ( 97 ) * + 76 + + 73
----
-604465

onlyif mysql # aggregate syntax: 
query I rowsort label-2397
SELECT + 53 + COUNT( * ) - - - 32 * + 57
----
-1770

skipif mysql # not compatible
query I rowsort label-2397
SELECT + 53 + COUNT ( * ) - - - 32 * + 57
----
-1770

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2398
SELECT COUNT( * ), COUNT( * ) + COALESCE ( 58, + - 87 * ( COALESCE ( + 67, - + 20 ) ) DIV 55 DIV - 33 + - 42 + - 26, + COUNT( * ) ) + + 94 - 85 * 64 DIV - 94 AS col0
----
1
210

skipif mysql # not compatible
query II rowsort label-2398
SELECT COUNT ( * ), COUNT ( * ) + COALESCE ( 58, + - 87 * ( COALESCE ( + 67, - + 20 ) ) / 55 / - 33 + - 42 + - 26, + COUNT ( * ) ) + + 94 - 85 * 64 / - 94 AS col0
----
1
210

query I rowsort
SELECT + 67 + - 74 * 70 AS col1
----
-5113

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2400
SELECT ALL NULLIF ( + - CAST( NULL AS SIGNED ), 78 ) AS col1, - MIN( ALL + + 16 ) AS col2
----
NULL
-16

skipif mysql # not compatible
query II rowsort label-2400
SELECT ALL NULLIF ( + - CAST ( NULL AS INTEGER ), 78 ) AS col1, - MIN ( ALL + + 16 ) AS col2
----
NULL
-16

query I rowsort
SELECT DISTINCT + 22 - + 5 * + 5 + + + 19
----
16

query II rowsort
SELECT ALL 24 col1, + 78 * 67
----
24
5226

onlyif mysql # DIV for integer division: 
query II rowsort label-2403
SELECT DISTINCT - 31 DIV + 2 + - 4 AS col1, + 50
----
-19
50

skipif mysql # not compatible
query II rowsort label-2403
SELECT DISTINCT - 31 / + 2 + - 4 AS col1, + 50
----
-19
50

onlyif mysql # DIV for integer division: 
query I rowsort label-2404
SELECT - ( - 89 ) DIV 15 * + + 0 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2404
SELECT - ( - 89 ) / 15 * + + 0 AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2405
SELECT NULLIF ( + CAST( NULL AS SIGNED ), + 92 ) * + - 83 + + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2405
SELECT NULLIF ( + CAST ( NULL AS INTEGER ), + 92 ) * + - 83 + + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT ALL 83 * - + 87 * - COALESCE ( - - 28, 4, - 78 ) * + + 59
----
11929092

query I rowsort
SELECT 21 * - 44
----
-924

query I rowsort
SELECT ( + 22 ) + + 88
----
110

onlyif mysql # aggregate syntax: 
query I rowsort label-2409
SELECT ALL COUNT( * ) * + 32 * + + COUNT( * ) col2
----
32

skipif mysql # not compatible
query I rowsort label-2409
SELECT ALL COUNT ( * ) * + 32 * + + COUNT ( * ) col2
----
32

query I rowsort
SELECT 66 + - 58
----
8

query I rowsort
SELECT 72 * 54 AS col1
----
3888

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2412
SELECT 75 + - - 15 + - - 2 * + - COUNT( * ) DIV + 9 col0
----
90

skipif mysql # not compatible
query I rowsort label-2412
SELECT 75 + - - 15 + - - 2 * + - COUNT ( * ) / + 9 col0
----
90

onlyif mysql # DIV for integer division: 
query I rowsort label-2413
SELECT ALL + 95 DIV + 59
----
1

skipif mysql # not compatible
query I rowsort label-2413
SELECT ALL + 95 / + 59
----
1

query I rowsort
SELECT DISTINCT + 77 * 32
----
2464

query I rowsort
SELECT ALL 74 + - + 98 + + 52 AS col2
----
28

onlyif mysql # DIV for integer division: 
query I rowsort label-2416
SELECT ALL 33 + - + 26 DIV - 99
----
33

skipif mysql # not compatible
query I rowsort label-2416
SELECT ALL 33 + - + 26 / - 99
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-2417
SELECT DISTINCT - COALESCE ( + NULLIF ( + - SUM( 41 ), - + 39 ), + 70 ) + 68
----
109

skipif mysql # not compatible
query I rowsort label-2417
SELECT DISTINCT - COALESCE ( + NULLIF ( + - SUM ( 41 ), - + 39 ), + 70 ) + 68
----
109

onlyif mysql # aggregate syntax: 
query I rowsort label-2418
SELECT ALL + MAX( ALL + 54 ) + - + 50
----
4

skipif mysql # not compatible
query I rowsort label-2418
SELECT ALL + MAX ( ALL + 54 ) + - + 50
----
4

onlyif mysql # DIV for integer division: 
query I rowsort label-2419
SELECT + 37 DIV + 53 + - 92 AS col1
----
-92

skipif mysql # not compatible
query I rowsort label-2419
SELECT + 37 / + 53 + - 92 AS col1
----
-92

query I rowsort
SELECT DISTINCT + 78 * 74 AS col2
----
5772

query I rowsort
SELECT - 44 + - 96
----
-140

query I rowsort
SELECT - 49 * NULLIF ( 91, - COALESCE ( - + 37, - 38 ) + 13 )
----
-4459

onlyif mysql # aggregate syntax: 
query I rowsort label-2423
SELECT 50 * - COUNT( * ) + 31 col0
----
-19

skipif mysql # not compatible
query I rowsort label-2423
SELECT 50 * - COUNT ( * ) + 31 col0
----
-19

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2425
SELECT + CAST( + 54 AS SIGNED ) AS col2, + 63 AS col0
----
54
63

skipif mysql # not compatible
query II rowsort label-2425
SELECT + CAST ( + 54 AS INTEGER ) AS col2, + 63 AS col0
----
54
63

query I rowsort
SELECT ALL + 84 - ( - - 65 ) AS col0
----
19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2427
SELECT DISTINCT + 62 * - + 54 + CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2427
SELECT DISTINCT + 62 * - + 54 + CAST ( NULL AS INTEGER ) col2
----
NULL

query I rowsort
SELECT - 74 * 97 * + 94 AS col1
----
-674732

query I rowsort
SELECT ALL + 13 * + + 87 AS col0
----
1131

query I rowsort
SELECT DISTINCT + COALESCE ( - 20, - - COALESCE ( - + 55, + 77 - - 12 ), + 88 ) * - 28 * + - 5 AS col0
----
-2800

onlyif mysql # aggregate syntax: 
query I rowsort label-2431
SELECT + 10 * - 37 * COUNT( * ) * + 92 / - CASE - ( - 45 ) WHEN COUNT( DISTINCT - 59 ) THEN - 16 * 92 * MAX( DISTINCT 16 ) + 80 * ( + - 7 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-2431
SELECT + 10 * - 37 * COUNT ( * ) * + 92 / - CASE - ( - 45 ) WHEN COUNT ( DISTINCT - 59 ) THEN - 16 * 92 * MAX ( DISTINCT 16 ) + 80 * ( + - 7 ) END
----
NULL

query I rowsort
SELECT + ( + - 63 ) col0
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-2433
SELECT ALL SUM( 23 ) AS col1
----
23

skipif mysql # not compatible
query I rowsort label-2433
SELECT ALL SUM ( 23 ) AS col1
----
23

onlyif mysql # DIV for integer division: 
query I rowsort label-2434
SELECT DISTINCT 70 DIV + + 38
----
1

skipif mysql # not compatible
query I rowsort label-2434
SELECT DISTINCT 70 / + + 38
----
1

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2436
SELECT CAST( 75 AS SIGNED ) + 12
----
87

skipif mysql # not compatible
query I rowsort label-2436
SELECT CAST ( 75 AS INTEGER ) + 12
----
87

query II rowsort
SELECT - 49, - ( + 73 ) AS col0
----
-49
-73

query I rowsort
SELECT 85 * + + 38
----
3230

onlyif mysql # aggregate syntax: 
query I rowsort label-2439
SELECT 56 + + + SUM( + - 52 ) + + + ( - 13 ) * - - SUM( DISTINCT - - 94 ) AS col0
----
-1218

skipif mysql # not compatible
query I rowsort label-2439
SELECT 56 + + + SUM ( + - 52 ) + + + ( - 13 ) * - - SUM ( DISTINCT - - 94 ) AS col0
----
-1218

query I rowsort
SELECT ALL 63 * - 12
----
-756

query I rowsort
SELECT DISTINCT 92 * + 49 AS col2
----
4508

query I rowsort
SELECT ALL + 6 * - 17 + + 44 - + 58
----
-116

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2443
SELECT ALL - 23 * 6 + - ( - ( - 61 ) ) col1, CAST( NULL AS DECIMAL ) AS col1
----
-199
NULL

skipif mysql # not compatible
query II rowsort label-2443
SELECT ALL - 23 * 6 + - ( - ( - 61 ) ) col1, CAST ( NULL AS REAL ) AS col1
----
-199
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2444
SELECT + CASE 14 WHEN + - CAST( NULL AS SIGNED ) + - + ( COUNT( * ) ) + + + 76 THEN + 15 ELSE + - 61 END AS col0
----
-61

skipif mysql # not compatible
query I rowsort label-2444
SELECT + CASE 14 WHEN + - CAST ( NULL AS INTEGER ) + - + ( COUNT ( * ) ) + + + 76 THEN + 15 ELSE + - 61 END AS col0
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-2445
SELECT DISTINCT COUNT( * ) * - + 21 * + + 2 + - 84
----
-126

skipif mysql # not compatible
query I rowsort label-2445
SELECT DISTINCT COUNT ( * ) * - + 21 * + + 2 + - 84
----
-126

query I rowsort
SELECT 0 - + 44 * + 65 * + 44
----
-125840

onlyif mysql # aggregate syntax: 
query I rowsort label-2447
SELECT ALL - 13 * + 51 * COALESCE ( + COALESCE ( + 84, - 53, - 36 ), - + 92 * 32, + 41 ) + + MIN( + 11 )
----
-55681

skipif mysql # not compatible
query I rowsort label-2447
SELECT ALL - 13 * + 51 * COALESCE ( + COALESCE ( + 84, - 53, - 36 ), - + 92 * 32, + 41 ) + + MIN ( + 11 )
----
-55681

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2449
SELECT + COALESCE ( + 28, - MIN( + 74 ) )
----
28

skipif mysql # not compatible
query I rowsort label-2449
SELECT + COALESCE ( + 28, - MIN ( + 74 ) )
----
28

query I rowsort
SELECT - + ( - + 0 ) * - 78 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2451
SELECT ALL + - 71 * + 13 * - MIN( DISTINCT + 1 ) + + CAST( 42 AS SIGNED )
----
965

skipif mysql # not compatible
query I rowsort label-2451
SELECT ALL + - 71 * + 13 * - MIN ( DISTINCT + 1 ) + + CAST ( 42 AS INTEGER )
----
965

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2452
SELECT COALESCE ( + 94, + 80 + ( + MIN( DISTINCT - 28 ) ) DIV + ( 61 ) DIV 3 + - CAST( NULL AS SIGNED ) ) AS col0
----
94

skipif mysql # not compatible
query I rowsort label-2452
SELECT COALESCE ( + 94, + 80 + ( + MIN ( DISTINCT - 28 ) ) / + ( 61 ) / 3 + - CAST ( NULL AS INTEGER ) ) AS col0
----
94

onlyif mysql # DIV for integer division: 
query I rowsort label-2453
SELECT ALL 91 DIV 70 + 46 AS col0
----
47

skipif mysql # not compatible
query I rowsort label-2453
SELECT ALL 91 / 70 + 46 AS col0
----
47

onlyif mysql # DIV for integer division: 
query I rowsort label-2454
SELECT DISTINCT - 97 DIV 70 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-2454
SELECT DISTINCT - 97 / 70 AS col2
----
-1

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2456
SELECT - + 28 - CASE + COUNT( * ) WHEN 92 * CAST( - - 17 AS SIGNED ) + + + 85 + 28 - 42 THEN + COUNT( * ) ELSE NULL END + + 92 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2456
SELECT - + 28 - CASE + COUNT ( * ) WHEN 92 * CAST ( - - 17 AS INTEGER ) + + + 85 + 28 - 42 THEN + COUNT ( * ) ELSE NULL END + + 92 AS col0
----
NULL

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

query I rowsort
SELECT ALL - 64 * + - 82 AS col1
----
5248

query I rowsort
SELECT DISTINCT + 6 * + 24
----
144

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-2461
SELECT + + 83 + 17 DIV - 70, - 8 AS col1
----
83
-8

skipif mysql # not compatible
query II rowsort label-2461
SELECT + + 83 + 17 / - 70, - 8 AS col1
----
83
-8

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

query I rowsort
SELECT + 11 * + - 27
----
-297

query I rowsort
SELECT - - 9 * + + 32
----
288

onlyif mysql # aggregate syntax: 
query I rowsort label-2465
SELECT DISTINCT + - COUNT( ALL + 59 )
----
-1

skipif mysql # not compatible
query I rowsort label-2465
SELECT DISTINCT + - COUNT ( ALL + 59 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2466
SELECT - 83 * - 71 * - + 83 - + 24 * 61 + + - COUNT( * )
----
-490584

skipif mysql # not compatible
query I rowsort label-2466
SELECT - 83 * - 71 * - + 83 - + 24 * 61 + + - COUNT ( * )
----
-490584

query I rowsort
SELECT + 8 - + 55 AS col2
----
-47

query II rowsort
SELECT - 51 + + + 76 * 68, 99 + - 89 - + 57 + 23 AS col2
----
5117
-24

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2470
SELECT DISTINCT SUM( - + 91 ) AS col1
----
-91

skipif mysql # not compatible
query I rowsort label-2470
SELECT DISTINCT SUM ( - + 91 ) AS col1
----
-91

onlyif mysql # aggregate syntax: 
query II rowsort label-2471
SELECT DISTINCT COUNT( * ) col2, + NULLIF ( + 4, - + 46 ) * - 62 + - 31 * + 21 AS col0
----
1
-899

skipif mysql # not compatible
query II rowsort label-2471
SELECT DISTINCT COUNT ( * ) col2, + NULLIF ( + 4, - + 46 ) * - 62 + - 31 * + 21 AS col0
----
1
-899

query I rowsort
SELECT ALL 29 * - + 24 AS col0
----
-696

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2473
SELECT ALL CASE + 39 WHEN + 27 THEN + ( CAST( NULL AS SIGNED ) ) - 69 + - 41 - ( + 77 ) ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2473
SELECT ALL CASE + 39 WHEN + 27 THEN + ( CAST ( NULL AS INTEGER ) ) - 69 + - 41 - ( + 77 ) ELSE NULL END AS col1
----
NULL

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

query I rowsort
SELECT ALL + 95 + + + 27 * - 47 + - 78 AS col0
----
-1252

query II rowsort
SELECT 23 AS col1, - 22 * 96 * + 40 - 24 AS col0
----
23
-84504

onlyif mysql # aggregate syntax: 
query I rowsort label-2477
SELECT + SUM( DISTINCT - + 75 ) + 98 AS col0
----
23

skipif mysql # not compatible
query I rowsort label-2477
SELECT + SUM ( DISTINCT - + 75 ) + 98 AS col0
----
23

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

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

query II rowsort
SELECT - 50 col1, + 59
----
-50
59

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

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

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

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

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

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

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

query I rowsort
SELECT + 22 * + 65
----
1430

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2485
SELECT DISTINCT CAST( + 86 AS SIGNED ) AS col1
----
86

skipif mysql # not compatible
query I rowsort label-2485
SELECT DISTINCT CAST ( + 86 AS INTEGER ) AS col1
----
86

query I rowsort
SELECT DISTINCT 45 + + 12 col2
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-2487
SELECT - CASE - + 32 WHEN - COUNT( * ) * - 69 * - 42 + + - 73 THEN - 15 - ( - 70 ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2487
SELECT - CASE - + 32 WHEN - COUNT ( * ) * - 69 * - 42 + + - 73 THEN - 15 - ( - 70 ) END AS col0
----
NULL

query I rowsort
SELECT ALL 80 + 16
----
96

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

skipif mysql # not compatible
query I rowsort label-2489
SELECT - 86 * + ( + MIN ( CAST ( NULL AS INTEGER ) ) )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2490
SELECT + 79 + + 92 DIV 82
----
80

skipif mysql # not compatible
query I rowsort label-2490
SELECT + 79 + + 92 / 82
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-2491
SELECT ALL COUNT( * ) * 22 * + 19
----
418

skipif mysql # not compatible
query I rowsort label-2491
SELECT ALL COUNT ( * ) * 22 * + 19
----
418

onlyif mysql # aggregate syntax: 
query I rowsort label-2492
SELECT + + 87 * - - 55 * + 23 + - + MIN( ALL + 6 ) AS col1
----
110049

skipif mysql # not compatible
query I rowsort label-2492
SELECT + + 87 * - - 55 * + 23 + - + MIN ( ALL + 6 ) AS col1
----
110049

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2493
SELECT ALL + 65 DIV NULLIF ( + 85, - - NULLIF ( - 9, + - ( + COALESCE ( - - 19, - 97 * - + COUNT( * ) * - ( - 12 ), 95 - 81 * - + 82 - 12 ) ) + - + 90 ) ) * - 42 * 89 + + 16 - 4 - + 75 * 62
----
-4638

skipif mysql # not compatible
query I rowsort label-2493
SELECT ALL + 65 / NULLIF ( + 85, - - NULLIF ( - 9, + - ( + COALESCE ( - - 19, - 97 * - + COUNT ( * ) * - ( - 12 ), 95 - 81 * - + 82 - 12 ) ) + - + 90 ) ) * - 42 * 89 + + 16 - 4 - + 75 * 62
----
-4638

query I rowsort
SELECT + - 57 + + 6 AS col2
----
-51

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

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

query I rowsort
SELECT + - NULLIF ( + 60, + 65 ) * NULLIF ( - + ( 86 ), - 60 )
----
5160

onlyif mysql # aggregate syntax: 
query I rowsort label-2497
SELECT - MIN( DISTINCT 95 ) * + 31 + + 32 - - 52
----
-2861

skipif mysql # not compatible
query I rowsort label-2497
SELECT - MIN ( DISTINCT 95 ) * + 31 + + 32 - - 52
----
-2861

onlyif mysql # DIV for integer division: 
query I rowsort label-2498
SELECT ALL - 52 DIV - 88 * 5 * + 68
----
0

skipif mysql # not compatible
query I rowsort label-2498
SELECT ALL - 52 / - 88 * 5 * + 68
----
0

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

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

query I rowsort
SELECT - + 41 + + 2 AS col1
----
-39

query I rowsort
SELECT + NULLIF ( + + 12, - 18 + - 76 ) col1
----
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2502
SELECT DISTINCT + + COALESCE ( CASE COUNT( * ) WHEN 75 + + + 65 THEN - - 88 / + COUNT( * ) WHEN - 12 THEN - + 66 WHEN 44 THEN NULL ELSE NULL END, CASE - CAST( NULL AS SIGNED ) WHEN - 41 * - 84 * + 99 * - COALESCE ( - + 3, - 79 / + - 45 ) - + 40 + - 14 THEN 68 WHEN - 22 THEN + COUNT( * ) + - 36 END * + NULLIF ( - NULLIF ( - 73, + - CAST( NULL AS DECIMAL ) + + - CAST( + 45 AS DECIMAL ) ), - 72 ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2502
SELECT DISTINCT + + COALESCE ( CASE COUNT ( * ) WHEN 75 + + + 65 THEN - - 88 / + COUNT ( * ) WHEN - 12 THEN - + 66 WHEN 44 THEN NULL ELSE NULL END, CASE - CAST ( NULL AS INTEGER ) WHEN - 41 * - 84 * + 99 * - COALESCE ( - + 3, - 79 / + - 45 ) - + 40 + - 14 THEN 68 WHEN - 22 THEN + COUNT ( * ) + - 36 END * + NULLIF ( - NULLIF ( - 73, + - CAST ( NULL AS REAL ) + + - CAST ( + 45 AS REAL ) ), - 72 ) ) AS col0
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2504
SELECT ALL - 16 * - + CASE + + NULLIF ( - - 72, - 53 / 54 * - NULLIF ( + 39, - + 31 - + 88 ) ) WHEN COUNT( * ) + + COUNT( * ) + 27 + - COUNT( - 79 ) + - COUNT( * ) THEN + - 95 END + - COUNT( * ) - - 83 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2504
SELECT ALL - 16 * - + CASE + + NULLIF ( - - 72, - 53 / 54 * - NULLIF ( + 39, - + 31 - + 88 ) ) WHEN COUNT ( * ) + + COUNT ( * ) + 27 + - COUNT ( - 79 ) + - COUNT ( * ) THEN + - 95 END + - COUNT ( * ) - - 83 AS col0
----
NULL

query I rowsort
SELECT ALL + 26 * 55 AS col0
----
1430

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2506
SELECT - 88 * - + CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2506
SELECT - 88 * - + CAST ( NULL AS REAL ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2507
SELECT ALL 26 * - 12 * + CAST( NULL AS SIGNED ) / + 42 / - + 23 + + ( + 34 ) - + ( + 37 ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2507
SELECT ALL 26 * - 12 * + CAST ( NULL AS INTEGER ) / + 42 / - + 23 + + ( + 34 ) - + ( + 37 ) col1
----
NULL

query I rowsort
SELECT - 28 * + 37
----
-1036

onlyif mysql # aggregate syntax: 
query I rowsort label-2509
SELECT ALL NULLIF ( COUNT( ALL 58 ), + - 23 * + MAX( ALL + - 48 ) * + + ( - COUNT( * ) ) )
----
1

skipif mysql # not compatible
query I rowsort label-2509
SELECT ALL NULLIF ( COUNT ( ALL 58 ), + - 23 * + MAX ( ALL + - 48 ) * + + ( - COUNT ( * ) ) )
----
1

query I rowsort
SELECT DISTINCT - NULLIF ( + - 31, ( + 6 ) ) * - + 7 + + 85 AS col2
----
-132

query I rowsort
SELECT DISTINCT + 19 - - 11 * + 43 * 80
----
37859

query I rowsort
SELECT ALL - 64 * + 21 AS col1
----
-1344

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2513
SELECT ALL + COUNT( * ) - 73 + - - 57 AS col1, CAST( + NULLIF ( 15, - 67 ) AS SIGNED ) AS col1
----
-15
15

skipif mysql # not compatible
query II rowsort label-2513
SELECT ALL + COUNT ( * ) - 73 + - - 57 AS col1, CAST ( + NULLIF ( 15, - 67 ) AS INTEGER ) AS col1
----
-15
15

query I rowsort
SELECT DISTINCT - 46 * + 2 col1
----
-92

onlyif mysql # aggregate syntax: 
query II rowsort label-2515
SELECT 90 + - 22 AS col0, SUM( ALL + - 90 ) AS col2
----
68
-90

skipif mysql # not compatible
query II rowsort label-2515
SELECT 90 + - 22 AS col0, SUM ( ALL + - 90 ) AS col2
----
68
-90

query II rowsort
SELECT 26 * + + 57 AS col2, ( 32 ) + - 22
----
1482
10

onlyif mysql # DIV for integer division: 
query I rowsort label-2517
SELECT 67 + 47 DIV + - 17 AS col1
----
65

skipif mysql # not compatible
query I rowsort label-2517
SELECT 67 + 47 / + - 17 AS col1
----
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2518
SELECT DISTINCT - - 38 * - COUNT( CAST( - - 91 AS SIGNED ) )
----
-38

skipif mysql # not compatible
query I rowsort label-2518
SELECT DISTINCT - - 38 * - COUNT ( CAST ( - - 91 AS INTEGER ) )
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-2519
SELECT DISTINCT - - MIN( DISTINCT - - CASE WHEN NOT ( NOT + + 74 <= - + 90 * 69 ) THEN - 82 WHEN NOT + 29 IS NOT NULL THEN - - 83 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-2519
SELECT DISTINCT - - MIN ( DISTINCT - - CASE WHEN NOT ( NOT + + 74 <= - + 90 * 69 ) THEN - 82 WHEN NOT + 29 IS NOT NULL THEN - - 83 END )
----
NULL

query II rowsort
SELECT ALL - ( + - 88 ) AS col2, - 47 + + + 48
----
88
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2521
SELECT DISTINCT 52 DIV + + 49
----
1

skipif mysql # not compatible
query I rowsort label-2521
SELECT DISTINCT 52 / + + 49
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2522
SELECT ALL - + 12 DIV 89 DIV + - ( - 63 ) + - 45
----
-45

skipif mysql # not compatible
query I rowsort label-2522
SELECT ALL - + 12 / 89 / + - ( - 63 ) + - 45
----
-45

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

skipif mysql # not compatible
query I rowsort label-2523
SELECT - 70 * COUNT ( * )
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-2524
SELECT COALESCE ( + 2, + + MAX( ALL 87 ) + + - 33 * + 49, 37 ) * - - 94 - - 0 AS col1
----
188

skipif mysql # not compatible
query I rowsort label-2524
SELECT COALESCE ( + 2, + + MAX ( ALL 87 ) + + - 33 * + 49, 37 ) * - - 94 - - 0 AS col1
----
188

query I rowsort
SELECT 69 * + - 25
----
-1725

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2526
SELECT + MIN( ALL 12 ) AS col2, - 24 + + 67 * 4 + - - 56 + + - COUNT( * ) * CAST( NULL AS SIGNED ) * - 82
----
12
NULL

skipif mysql # not compatible
query II rowsort label-2526
SELECT + MIN ( ALL 12 ) AS col2, - 24 + + 67 * 4 + - - 56 + + - COUNT ( * ) * CAST ( NULL AS INTEGER ) * - 82
----
12
NULL

query I rowsort
SELECT ALL + 81 * - 23 * + + 74
----
-137862

query I rowsort
SELECT DISTINCT - - 85 col2
----
85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2529
SELECT DISTINCT - 62 + - CAST( NULL AS SIGNED ) + 2 * - CAST( 27 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2529
SELECT DISTINCT - 62 + - CAST ( NULL AS INTEGER ) + 2 * - CAST ( 27 AS INTEGER )
----
NULL

query I rowsort
SELECT ALL ( + + 59 ) + 62 AS col1
----
121

query I rowsort
SELECT ALL 18 + 45 * + 0
----
18

query II rowsort
SELECT - 16 * - 2 + 70 AS col0, - 59
----
102
-59

query I rowsort
SELECT NULLIF ( - ( - + 76 ), + 78 * - - 57 ) + - 77
----
-1

query II rowsort
SELECT 97 AS col1, + 98
----
97
98

onlyif mysql # DIV for integer division: 
query I rowsort label-2535
SELECT 85 DIV - - 73 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2535
SELECT 85 / - - 73 AS col2
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2536
SELECT ( - 29 ) + 3 * 96 + 51 DIV - 88 AS col2
----
259

skipif mysql # not compatible
query I rowsort label-2536
SELECT ( - 29 ) + 3 * 96 + 51 / - 88 AS col2
----
259

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2538
SELECT MAX( - 80 ) + + 7 AS col2
----
-73

skipif mysql # not compatible
query I rowsort label-2538
SELECT MAX ( - 80 ) + + 7 AS col2
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-2539
SELECT ALL - 32 + + 68 * ( COUNT( * ) ) AS col1
----
36

skipif mysql # not compatible
query I rowsort label-2539
SELECT ALL - 32 + + 68 * ( COUNT ( * ) ) AS col1
----
36

onlyif mysql # DIV for integer division: 
query I rowsort label-2540
SELECT ALL 52 DIV - 86
----
0

skipif mysql # not compatible
query I rowsort label-2540
SELECT ALL 52 / - 86
----
0

query I rowsort
SELECT DISTINCT 69 - + 65
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-2542
SELECT DISTINCT 45 - - 84 * - COUNT( * )
----
-39

skipif mysql # not compatible
query I rowsort label-2542
SELECT DISTINCT 45 - - 84 * - COUNT ( * )
----
-39

query I rowsort
SELECT ALL 4 * - 93
----
-372

query I rowsort
SELECT 10 + + 67
----
77

query I rowsort
SELECT 19 + + 52 col0
----
71

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2546
SELECT ( + - 15 ) DIV - - MIN( 75 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2546
SELECT ( + - 15 ) / - - MIN ( 75 ) AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2547
SELECT 26 DIV - - 36
----
0

skipif mysql # not compatible
query I rowsort label-2547
SELECT 26 / - - 36
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2548
SELECT ( 75 ) + + - COUNT( * ) / + ( + CASE + 22 WHEN COUNT( * ) THEN MAX( - 13 ) / - 14 ELSE NULL END ) * + 40 * - + 5 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2548
SELECT ( 75 ) + + - COUNT ( * ) / + ( + CASE + 22 WHEN COUNT ( * ) THEN MAX ( - 13 ) / - 14 ELSE NULL END ) * + 40 * - + 5 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2549
SELECT ALL 44 - 42 * + 46 * AVG ( ALL - CAST( NULL AS SIGNED ) ) * - + 69 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2549
SELECT ALL 44 - 42 * + 46 * AVG ( ALL - CAST ( NULL AS INTEGER ) ) * - + 69 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2550
SELECT DISTINCT - SUM( DISTINCT - + 79 ) AS col0
----
79

skipif mysql # not compatible
query I rowsort label-2550
SELECT DISTINCT - SUM ( DISTINCT - + 79 ) AS col0
----
79

query I rowsort
SELECT ALL - - 52 * 34 AS col1
----
1768

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2552
SELECT COUNT( * ), - ( - - CAST( - COUNT( * ) AS SIGNED ) ) AS col2
----
1
1

skipif mysql # not compatible
query II rowsort label-2552
SELECT COUNT ( * ), - ( - - CAST ( - COUNT ( * ) AS INTEGER ) ) AS col2
----
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2553
SELECT - NULLIF ( - COUNT( * ), - 84 * SUM( - 82 ) )
----
1

skipif mysql # not compatible
query I rowsort label-2553
SELECT - NULLIF ( - COUNT ( * ), - 84 * SUM ( - 82 ) )
----
1

query I rowsort
SELECT ( + - 91 ) * - + 60 AS col1
----
5460

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2556
SELECT + NULLIF ( - 78, + + NULLIF ( + 74, + 24 - - + 77 ) / COUNT( * ) * COUNT( * ) ) AS col2
----
-78

skipif mysql # not compatible
query I rowsort label-2556
SELECT + NULLIF ( - 78, + + NULLIF ( + 74, + 24 - - + 77 ) / COUNT ( * ) * COUNT ( * ) ) AS col2
----
-78

query I rowsort
SELECT - 64 * + 95 * 28 * + 14 * - 88 + - 58 AS col1
----
209735622

onlyif mysql # DIV for integer division: 
query I rowsort label-2558
SELECT 61 DIV 15
----
4

skipif mysql # not compatible
query I rowsort label-2558
SELECT 61 / 15
----
4

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

skipif mysql # not compatible
query I rowsort label-2559
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) + - 72
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2560
SELECT ALL 71 + + ( - + ( + + CAST( NULL AS SIGNED ) ) ) + COUNT( * ) + - 64 + - 7 / 80 - + + 80 * + 61 + - 10 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2560
SELECT ALL 71 + + ( - + ( + + CAST ( NULL AS INTEGER ) ) ) + COUNT ( * ) + - 64 + - 7 / 80 - + + 80 * + 61 + - 10 AS col2
----
NULL

query I rowsort
SELECT ALL + - 68 + 61 AS col0
----
-7

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2563
SELECT 89 * - ( + 88 ) + - COUNT( * ) * + ( 49 )
----
-7881

skipif mysql # not compatible
query I rowsort label-2563
SELECT 89 * - ( + 88 ) + - COUNT ( * ) * + ( 49 )
----
-7881

query I rowsort
SELECT + NULLIF ( + 84, 95 * + 58 ) AS col0
----
84

query I rowsort
SELECT ALL 71 + - 58 col2
----
13

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

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

query II rowsort
SELECT 65 * - 11 AS col2, 35 AS col1
----
-715
35

query I rowsort
SELECT ALL 64 * - - 86
----
5504

query I rowsort
SELECT ALL + 36 - - - 36 AS col0
----
0

query I rowsort
SELECT DISTINCT 70 - + 68 col2
----
2

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2572
SELECT ALL 4 - + 71 AS col1, - 71 * + - ( + - CAST( 98 AS SIGNED ) ) + - 21
----
-67
-6979

skipif mysql # not compatible
query II rowsort label-2572
SELECT ALL 4 - + 71 AS col1, - 71 * + - ( + - CAST ( 98 AS INTEGER ) ) + - 21
----
-67
-6979

query I rowsort
SELECT + CASE - 52 WHEN + 19 THEN + 15 END * + 46 * + 9 * + 94 * - 70
----
NULL

query I rowsort
SELECT + 63 - + 77 col1
----
-14

query I rowsort
SELECT - NULLIF ( 31, 56 )
----
-31

query I rowsort
SELECT + 56 * - 53 AS col0
----
-2968

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2578
SELECT ALL - MAX( - + 26 ) * COALESCE ( - + COUNT( * ), - - NULLIF ( - MIN( ALL 90 ), - COUNT( * ) ) * + + 85 ) AS col1
----
-26

skipif mysql # not compatible
query I rowsort label-2578
SELECT ALL - MAX ( - + 26 ) * COALESCE ( - + COUNT ( * ), - - NULLIF ( - MIN ( ALL 90 ), - COUNT ( * ) ) * + + 85 ) AS col1
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-2579
SELECT + - CASE - - 37 WHEN ( - 19 ) * + 45 + + 0 THEN - 98 - + + 93 * - COUNT( * ) ELSE NULL END + + ( 24 ) - - 22 + + + 2 * - COALESCE ( 60, + 75 + - 60, + 25 ) * + + 11 / 76 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2579
SELECT + - CASE - - 37 WHEN ( - 19 ) * + 45 + + 0 THEN - 98 - + + 93 * - COUNT ( * ) ELSE NULL END + + ( 24 ) - - 22 + + + 2 * - COALESCE ( 60, + 75 + - 60, + 25 ) * + + 11 / 76 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2580
SELECT ALL - COALESCE ( + 61, + 58 + + + 79, - + 18 + COUNT( * ) ) AS col1
----
-61

skipif mysql # not compatible
query I rowsort label-2580
SELECT ALL - COALESCE ( + 61, + 58 + + + 79, - + 18 + COUNT ( * ) ) AS col1
----
-61

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2581
SELECT + + 0 * 91 DIV - ( 19 ) AS col0, - COUNT( * ) + + ( + SUM( DISTINCT + 22 ) ) - - - 79 + - + 90 AS col0
----
0
-148

skipif mysql # not compatible
query II rowsort label-2581
SELECT + + 0 * 91 / - ( 19 ) AS col0, - COUNT ( * ) + + ( + SUM ( DISTINCT + 22 ) ) - - - 79 + - + 90 AS col0
----
0
-148

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2582
SELECT ALL - AVG ( DISTINCT 13 ) + - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2582
SELECT ALL - AVG ( DISTINCT 13 ) + - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2583
SELECT - - 20 DIV 5
----
4

skipif mysql # not compatible
query I rowsort label-2583
SELECT - - 20 / 5
----
4

query II rowsort
SELECT + 61 * - 42 AS col1, - ( - + 7 )
----
-2562
7

query I rowsort
SELECT + 75 * + 24 AS col0
----
1800

query I rowsort
SELECT DISTINCT - 23 + - - NULLIF ( 36, 12 * - 26 - - - 92 )
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-2587
SELECT DISTINCT - - 82 + COUNT( * ) AS col1
----
83

skipif mysql # not compatible
query I rowsort label-2587
SELECT DISTINCT - - 82 + COUNT ( * ) AS col1
----
83

query I rowsort
SELECT - + 68 * 44
----
-2992

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-2589
SELECT + COALESCE ( 39, - 19, - 74 ), + CASE CAST( NULL AS DECIMAL ) WHEN - 8 * - 88 + + 93 + + 14 THEN NULL WHEN - - 80 * CAST( NULL AS SIGNED ) * ( + - 89 ) + - - 45 * 45 - CAST( - NULLIF ( MAX( ALL CAST( NULL AS SIGNED ) ), + + 28 * - 46 + - 4 ) AS SIGNED ) * + 54 THEN 15 * COUNT( * ) * + 31 WHEN 37 + - - 49 THEN NULL END AS col1
----
39
NULL

skipif mysql # not compatible
query II rowsort label-2589
SELECT + COALESCE ( 39, - 19, - 74 ), + CASE CAST ( NULL AS REAL ) WHEN - 8 * - 88 + + 93 + + 14 THEN NULL WHEN - - 80 * CAST ( NULL AS INTEGER ) * ( + - 89 ) + - - 45 * 45 - CAST ( - NULLIF ( MAX ( ALL CAST ( NULL AS INTEGER ) ), + + 28 * - 46 + - 4 ) AS INTEGER ) * + 54 THEN 15 * COUNT ( * ) * + 31 WHEN 37 + - - 49 THEN NULL END AS col1
----
39
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2590
SELECT + - SUM( CAST( + 2 AS SIGNED ) ) AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-2590
SELECT + - SUM ( CAST ( + 2 AS INTEGER ) ) AS col2
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2591
SELECT ALL 40 * CAST( NULL AS SIGNED ) + COUNT( * ) * - - 74 + 51
----
NULL

skipif mysql # not compatible
query I rowsort label-2591
SELECT ALL 40 * CAST ( NULL AS INTEGER ) + COUNT ( * ) * - - 74 + 51
----
NULL

query I rowsort
SELECT - + 79 * - 59 - 72
----
4589

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2594
SELECT - - CASE - COALESCE ( - 42, 46 + + 8 ) WHEN + 69 THEN - 64 - NULLIF ( + 87, 80 ) WHEN + + 85 * + + COALESCE ( - COALESCE ( 74, 70 ), - 18 * - - 53 - - + 66 + - - 16 + + COUNT( * ) + - + 37 / + - 29 ) * + 73 * - + MIN( - 22 ) * + - 2 + + + ( + - 12 ) * + 34 + - - ( + 62 ) - + 58 + + + 13 + 97 + - 89 * + 47 THEN NULL ELSE - 67 / + 31 END * + CASE - + 46 WHEN + 20 THEN 90 END * 24 + + + 59
----
NULL

skipif mysql # not compatible
query I rowsort label-2594
SELECT - - CASE - COALESCE ( - 42, 46 + + 8 ) WHEN + 69 THEN - 64 - NULLIF ( + 87, 80 ) WHEN + + 85 * + + COALESCE ( - COALESCE ( 74, 70 ), - 18 * - - 53 - - + 66 + - - 16 + + COUNT ( * ) + - + 37 / + - 29 ) * + 73 * - + MIN ( - 22 ) * + - 2 + + + ( + - 12 ) * + 34 + - - ( + 62 ) - + 58 + + + 13 + 97 + - 89 * + 47 THEN NULL ELSE - 67 / + 31 END * + CASE - + 46 WHEN + 20 THEN 90 END * 24 + + + 59
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2595
SELECT + COUNT( + 74 )
----
1

skipif mysql # not compatible
query I rowsort label-2595
SELECT + COUNT ( + 74 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2596
SELECT ALL 45 * - 15 - - COUNT( * ) * 33 AS col0
----
-642

skipif mysql # not compatible
query I rowsort label-2596
SELECT ALL 45 * - 15 - - COUNT ( * ) * 33 AS col0
----
-642

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2598
SELECT DISTINCT COALESCE ( - 71, - 80 - + - 13 ) * - + 0 - - COUNT( * ) * 70 AS col2
----
70

skipif mysql # not compatible
query I rowsort label-2598
SELECT DISTINCT COALESCE ( - 71, - 80 - + - 13 ) * - + 0 - - COUNT ( * ) * 70 AS col2
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-2599
SELECT + 70 * + 2 * 96 * - 2 * - 58 * - + AVG ( DISTINCT CASE - 15 WHEN + 74 THEN - 39 END ) - + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-2599
SELECT + 70 * + 2 * 96 * - 2 * - 58 * - + AVG ( DISTINCT CASE - 15 WHEN + 74 THEN - 39 END ) - + + COUNT ( * )
----
NULL

query I rowsort
SELECT NULLIF ( - 85, 67 * - + 84 + + 55 ) AS col2
----
-85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2601
SELECT - CAST( 98 AS SIGNED ) * - COUNT( * ) AS col2, - CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) * - - 16 + + 50
----
98
NULL

skipif mysql # not compatible
query II rowsort label-2601
SELECT - CAST ( 98 AS INTEGER ) * - COUNT ( * ) AS col2, - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) * - - 16 + + 50
----
98
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2602
SELECT ALL + COUNT( * ) / - CASE - 95 WHEN + + 64 + - 9 * + - 53 * + 46 THEN 68 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2602
SELECT ALL + COUNT ( * ) / - CASE - 95 WHEN + + 64 + - 9 * + - 53 * + 46 THEN 68 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2603
SELECT + CASE + - ( + 59 ) WHEN + - 80 THEN 95 WHEN + - 33 * 83 / + 43 * + 46 + + NULLIF ( + 5, + + 41 ) THEN + - ( + COUNT( * ) ) * - - 66 * + 43 + + - 50 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2603
SELECT + CASE + - ( + 59 ) WHEN + - 80 THEN 95 WHEN + - 33 * 83 / + 43 * + 46 + + NULLIF ( + 5, + + 41 ) THEN + - ( + COUNT ( * ) ) * - - 66 * + 43 + + - 50 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2604
SELECT + 13 * - - CAST( NULL AS SIGNED ) + + - 64 + + 25
----
NULL

skipif mysql # not compatible
query I rowsort label-2604
SELECT + 13 * - - CAST ( NULL AS INTEGER ) + + - 64 + + 25
----
NULL

query I rowsort
SELECT - 39 + 78
----
39

query II rowsort
SELECT ALL 51 * - + 30 * - 37, + 39 col2
----
56610
39

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

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

query II rowsort
SELECT DISTINCT 13 AS col2, 13 AS col2
----
13
13

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

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

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

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

query I rowsort
SELECT - - 46 * 24 * 32 - - 94 AS col2
----
35422

onlyif mysql # aggregate syntax: 
query I rowsort label-2612
SELECT + - COUNT( * ) + - - NULLIF ( 50, + + 86 + 66 )
----
49

skipif mysql # not compatible
query I rowsort label-2612
SELECT + - COUNT ( * ) + - - NULLIF ( 50, + + 86 + 66 )
----
49

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

skipif mysql # not compatible
query I rowsort label-2613
SELECT ( - MAX ( ALL 60 ) )
----
-60

query I rowsort
SELECT ALL + 60 + NULLIF ( 14, 85 ) AS col1
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-2615
SELECT + SUM( ALL + + 97 ) + + COUNT( * ) * - 47 AS col2
----
50

skipif mysql # not compatible
query I rowsort label-2615
SELECT + SUM ( ALL + + 97 ) + + COUNT ( * ) * - 47 AS col2
----
50

onlyif mysql # DIV for integer division: 
query I rowsort label-2616
SELECT DISTINCT + + 76 + 84 DIV - 66 AS col0
----
75

skipif mysql # not compatible
query I rowsort label-2616
SELECT DISTINCT + + 76 + 84 / - 66 AS col0
----
75

query I rowsort
SELECT DISTINCT 8 * - 47 AS col2
----
-376

onlyif mysql # aggregate syntax: 
query I rowsort label-2618
SELECT DISTINCT + 77 + - - 81 + - CASE + 25 WHEN + 45 * + COALESCE ( - COUNT( * ), - - 91 * + 76 + - - 86, + AVG ( NULLIF ( + - 25, + + 8 ) ) + - - NULLIF ( - - 33, - 91 ) + - 37 - + 4 - - 76 + - 71 ) THEN NULL ELSE + + 71 * 10 + + - 84 - 9 * 69 * + ( - - COUNT( * ) ) + + 72 END
----
81

skipif mysql # not compatible
query I rowsort label-2618
SELECT DISTINCT + 77 + - - 81 + - CASE + 25 WHEN + 45 * + COALESCE ( - COUNT ( * ), - - 91 * + 76 + - - 86, + AVG ( NULLIF ( + - 25, + + 8 ) ) + - - NULLIF ( - - 33, - 91 ) + - 37 - + 4 - - 76 + - 71 ) THEN NULL ELSE + + 71 * 10 + + - 84 - 9 * 69 * + ( - - COUNT ( * ) ) + + 72 END
----
81

query I rowsort
SELECT ALL - 2 + - + 38
----
-40

query I rowsort
SELECT ALL + 44 + NULLIF ( + 52, + + 43 )
----
96

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

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

query I rowsort
SELECT + + 64 * 85 AS col2
----
5440

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2623
SELECT DISTINCT - CAST( NULL AS SIGNED ) * 89
----
NULL

skipif mysql # not compatible
query I rowsort label-2623
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * 89
----
NULL

query I rowsort
SELECT ALL 92 + + NULLIF ( 57, 19 )
----
149

query I rowsort
SELECT + 62 + - 36 * 29 + - 98 + + 17 AS col2
----
-1063

onlyif mysql # DIV for integer division: 
query I rowsort label-2626
SELECT + 96 DIV - 69 - + 74 AS col2
----
-75

skipif mysql # not compatible
query I rowsort label-2626
SELECT + 96 / - 69 - + 74 AS col2
----
-75

query II rowsort
SELECT ALL + 10, 70 AS col2
----
10
70

query I rowsort
SELECT ALL + NULLIF ( + 60, - 23 )
----
60

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2629
SELECT + 91 DIV 82 + - 40 * - + 11 AS col2, COUNT( * )
----
441
1

skipif mysql # not compatible
query II rowsort label-2629
SELECT + 91 / 82 + - 40 * - + 11 AS col2, COUNT ( * )
----
441
1

query II rowsort
SELECT DISTINCT + 17 AS col0, - 70 AS col1
----
17
-70

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2632
SELECT - COUNT( * ) + + 60 * - - 19 - - + 30 col0
----
1169

skipif mysql # not compatible
query I rowsort label-2632
SELECT - COUNT ( * ) + + 60 * - - 19 - - + 30 col0
----
1169

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2633
SELECT - CAST( + - COUNT( * ) AS SIGNED ) * - NULLIF ( COUNT( * ), + 28 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-2633
SELECT - CAST ( + - COUNT ( * ) AS INTEGER ) * - NULLIF ( COUNT ( * ), + 28 ) AS col1
----
-1

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2635
SELECT 10 * 29 * + 17 * + 79 + + - 62 - + - 6 * CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2635
SELECT 10 * 29 * + 17 * + 79 + + - 62 - + - 6 * CAST ( NULL AS INTEGER ) AS col0
----
NULL

query II rowsort
SELECT 94, 30 + - - 62 AS col0
----
94
92

onlyif mysql # aggregate syntax: 
query II rowsort label-2637
SELECT COUNT( * ) * - + 69, 41 AS col2
----
-69
41

skipif mysql # not compatible
query II rowsort label-2637
SELECT COUNT ( * ) * - + 69, 41 AS col2
----
-69
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2638
SELECT ALL + COALESCE ( + ( + ( - CASE + NULLIF ( - 69, - + 50 ) WHEN + 9 THEN 36 WHEN 4 * - - 44 + COUNT( * ) - + 32 / AVG ( ALL + - 15 ) THEN NULL END ) ), + 28 + - CAST( NULL AS SIGNED ) - - + 72 - 78 / 72 ) * COUNT( * ) + COALESCE ( 24, 77 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2638
SELECT ALL + COALESCE ( + ( + ( - CASE + NULLIF ( - 69, - + 50 ) WHEN + 9 THEN 36 WHEN 4 * - - 44 + COUNT ( * ) - + 32 / AVG ( ALL + - 15 ) THEN NULL END ) ), + 28 + - CAST ( NULL AS INTEGER ) - - + 72 - 78 / 72 ) * COUNT ( * ) + COALESCE ( 24, 77 )
----
NULL

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

skipif mysql # not compatible
query I rowsort label-2639
SELECT ALL - MAX ( - 72 )
----
72

onlyif mysql # aggregate syntax: 
query III rowsort label-2640
SELECT ALL - 35, + COUNT( * ) AS col2, 32 AS col2
----
-35
1
32

skipif mysql # not compatible
query III rowsort label-2640
SELECT ALL - 35, + COUNT ( * ) AS col2, 32 AS col2
----
-35
1
32

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2641
SELECT ALL - 74, 87 col1, + + CAST( NULL AS SIGNED ) AS col1
----
-74
87
NULL

skipif mysql # not compatible
query III rowsort label-2641
SELECT ALL - 74, 87 col1, + + CAST ( NULL AS INTEGER ) AS col1
----
-74
87
NULL

query I rowsort
SELECT 9 * + 54 * - 48 * + 41 * 64
----
-61212672

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2643
SELECT ALL - 10 * + CAST( + - ( - 16 ) AS SIGNED ) AS col1
----
-160

skipif mysql # not compatible
query I rowsort label-2643
SELECT ALL - 10 * + CAST ( + - ( - 16 ) AS INTEGER ) AS col1
----
-160

query II rowsort
SELECT ALL - 80, - 68 AS col1
----
-80
-68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2645
SELECT ALL - CASE + 5 WHEN + CAST( NULL AS SIGNED ) THEN ( - NULLIF ( 21, 57 ) ) ELSE NULL END + 37 * + 44 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2645
SELECT ALL - CASE + 5 WHEN + CAST ( NULL AS INTEGER ) THEN ( - NULLIF ( 21, 57 ) ) ELSE NULL END + 37 * + 44 col1
----
NULL

query I rowsort
SELECT 35 * - + ( 84 )
----
-2940

query I rowsort
SELECT DISTINCT - 66 + - - 99
----
33

query I rowsort
SELECT ALL + 89 + + 83 col0
----
172

onlyif mysql # aggregate syntax: 
query I rowsort label-2649
SELECT COALESCE ( + COUNT( * ), - + 66 + 3 * + 6 + - 59 )
----
1

skipif mysql # not compatible
query I rowsort label-2649
SELECT COALESCE ( + COUNT ( * ), - + 66 + 3 * + 6 + - 59 )
----
1

query I rowsort
SELECT + 4 * - 49 AS col1
----
-196

query I rowsort
SELECT ALL - ( ( + 73 ) ) * + + 44
----
-3212

query I rowsort
SELECT 36 - + 53 + 38
----
21

query I rowsort
SELECT ALL + + 74 + + 16 * 38 AS col1
----
682

onlyif mysql # DIV for integer division: 
query I rowsort label-2654
SELECT ALL - 54 + 31 DIV + - ( - 41 ) AS col0
----
-54

skipif mysql # not compatible
query I rowsort label-2654
SELECT ALL - 54 + 31 / + - ( - 41 ) AS col0
----
-54

onlyif mysql # aggregate syntax: 
query II rowsort label-2655
SELECT ALL - 48 + 61 AS col2, - ( + - 56 ) * COUNT( * ) col1
----
13
56

skipif mysql # not compatible
query II rowsort label-2655
SELECT ALL - 48 + 61 AS col2, - ( + - 56 ) * COUNT ( * ) col1
----
13
56

onlyif mysql # aggregate syntax: 
query I rowsort label-2656
SELECT - ( - + NULLIF ( 35, + COALESCE ( - CASE + 85 WHEN + 13 + 77 - ( 28 ) + - - 5 * + 57 - MIN( DISTINCT 55 ) + - + ( - 66 ) + + 99 * 17 * + 8 THEN 9 * COUNT( * ) - - MAX( - ( 99 ) ) END, + COUNT( * ) ) ) )
----
35

skipif mysql # not compatible
query I rowsort label-2656
SELECT - ( - + NULLIF ( 35, + COALESCE ( - CASE + 85 WHEN + 13 + 77 - ( 28 ) + - - 5 * + 57 - MIN ( DISTINCT 55 ) + - + ( - 66 ) + + 99 * 17 * + 8 THEN 9 * COUNT ( * ) - - MAX ( - ( 99 ) ) END, + COUNT ( * ) ) ) )
----
35

query I rowsort
SELECT ALL + 73 + - 79
----
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2658
SELECT CAST( + - 19 AS SIGNED ) - + + 61 AS col1
----
-80

skipif mysql # not compatible
query I rowsort label-2658
SELECT CAST ( + - 19 AS INTEGER ) - + + 61 AS col1
----
-80

query II rowsort
SELECT DISTINCT - 18 AS col2, 99 AS col2
----
-18
99

query I rowsort
SELECT DISTINCT + 46 - - ( + + 7 )
----
53

query II rowsort
SELECT - + 92, 82 AS col1
----
-92
82

onlyif mysql # aggregate syntax: 
query I rowsort label-2662
SELECT - - MIN( DISTINCT 30 )
----
30

skipif mysql # not compatible
query I rowsort label-2662
SELECT - - MIN ( DISTINCT 30 )
----
30

query I rowsort
SELECT 84 + 17 AS col0
----
101

onlyif mysql # aggregate syntax: 
query I rowsort label-2664
SELECT ALL COUNT( * ) * - 55 * - 3 AS col0
----
165

skipif mysql # not compatible
query I rowsort label-2664
SELECT ALL COUNT ( * ) * - 55 * - 3 AS col0
----
165

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2665
SELECT ALL SUM( + 5 ) col0, + 31 + - 16 - 41 DIV - 57 * ( + COUNT( * ) )
----
5
15

skipif mysql # not compatible
query II rowsort label-2665
SELECT ALL SUM ( + 5 ) col0, + 31 + - 16 - 41 / - 57 * ( + COUNT ( * ) )
----
5
15

query I rowsort
SELECT DISTINCT 76 * + + 46 * - - 56
----
195776

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2668
SELECT ALL 88 * + 78 DIV - COUNT( * ) AS col2
----
-6864

skipif mysql # not compatible
query I rowsort label-2668
SELECT ALL 88 * + 78 / - COUNT ( * ) AS col2
----
-6864

query I rowsort
SELECT ALL 5 * + 7 AS col0
----
35

onlyif mysql # DIV for integer division: 
query I rowsort label-2670
SELECT 84 DIV - 63 col2
----
-1

skipif mysql # not compatible
query I rowsort label-2670
SELECT 84 / - 63 col2
----
-1

query I rowsort
SELECT DISTINCT - 61 col0
----
-61

query I rowsort
SELECT ALL + 42 + 91
----
133

query I rowsort
SELECT 42 * 96 - + - 99 AS col0
----
4131

onlyif mysql # aggregate syntax: 
query I rowsort label-2674
SELECT DISTINCT - 70 * - MIN( - + 39 ) * - + COUNT( * ) * 94
----
256620

skipif mysql # not compatible
query I rowsort label-2674
SELECT DISTINCT - 70 * - MIN ( - + 39 ) * - + COUNT ( * ) * 94
----
256620

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2675
SELECT 35 + + 42 DIV + 54 * + + COUNT( * ) * + + MIN( DISTINCT 82 )
----
35

skipif mysql # not compatible
query I rowsort label-2675
SELECT 35 + + 42 / + 54 * + + COUNT ( * ) * + + MIN ( DISTINCT 82 )
----
35

query I rowsort
SELECT 44 + 3 AS col0
----
47

onlyif mysql # aggregate syntax: 
query II rowsort label-2677
SELECT 15 + - MIN( - 60 ) AS col2, 11 + - 23 * + 27 col1
----
75
-610

skipif mysql # not compatible
query II rowsort label-2677
SELECT 15 + - MIN ( - 60 ) AS col2, 11 + - 23 * + 27 col1
----
75
-610

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2678
SELECT ALL - CAST( + 18 AS SIGNED ) * 59
----
-1062

skipif mysql # not compatible
query I rowsort label-2678
SELECT ALL - CAST ( + 18 AS INTEGER ) * 59
----
-1062

query I rowsort
SELECT ALL - 57 + - + 71
----
-128

onlyif mysql # aggregate syntax: 
query I rowsort label-2680
SELECT + COUNT( * ) + - 50 * + 41 * 45 AS col2
----
-92249

skipif mysql # not compatible
query I rowsort label-2680
SELECT + COUNT ( * ) + - 50 * + 41 * 45 AS col2
----
-92249

onlyif mysql # aggregate syntax: 
query II rowsort label-2681
SELECT ALL + - ( - 71 ) + - NULLIF ( - - MAX( - 73 ), - 36 + - 9 ), + 60 + + 8 AS col1
----
144
68

skipif mysql # not compatible
query II rowsort label-2681
SELECT ALL + - ( - 71 ) + - NULLIF ( - - MAX ( - 73 ), - 36 + - 9 ), + 60 + + 8 AS col1
----
144
68

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2683
SELECT - MIN( DISTINCT - 78 ) AS col0, - 90
----
78
-90

skipif mysql # not compatible
query II rowsort label-2683
SELECT - MIN ( DISTINCT - 78 ) AS col0, - 90
----
78
-90

query II rowsort
SELECT ALL + 17 - + 34 AS col2, + 97
----
-17
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2685
SELECT ALL - + 59 - 75 + + + CASE 86 WHEN + 75 + 94 THEN COUNT( * ) / + - 60 - - 35 + - 90 - 2 / + 2 ELSE NULL END * - - 64 * 46 + 63 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2685
SELECT ALL - + 59 - 75 + + + CASE 86 WHEN + 75 + 94 THEN COUNT ( * ) / + - 60 - - 35 + - 90 - 2 / + 2 ELSE NULL END * - - 64 * 46 + 63 AS col2
----
NULL

query I rowsort
SELECT + 35 * - ( - + 7 ) + - 4 AS col0
----
241

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2687
SELECT ALL + + 34 DIV - - COUNT( * ) AS col0, 65
----
34
65

skipif mysql # not compatible
query II rowsort label-2687
SELECT ALL + + 34 / - - COUNT ( * ) AS col0, 65
----
34
65

onlyif mysql # aggregate syntax: 
query I rowsort label-2688
SELECT + COUNT( * ) + - 55 AS col0
----
-54

skipif mysql # not compatible
query I rowsort label-2688
SELECT + COUNT ( * ) + - 55 AS col0
----
-54

onlyif mysql # aggregate syntax: 
query II rowsort label-2689
SELECT - COUNT( DISTINCT - 91 ), - COUNT( ALL + 86 ) - - + 40 AS col2
----
-1
39

skipif mysql # not compatible
query II rowsort label-2689
SELECT - COUNT ( DISTINCT - 91 ), - COUNT ( ALL + 86 ) - - + 40 AS col2
----
-1
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2690
SELECT DISTINCT + CASE - CAST( NULL AS SIGNED ) WHEN + + 94 THEN - + 0 WHEN + + COUNT( * ) THEN + COUNT( ALL + 19 ) / - COUNT( * ) * + AVG ( 22 ) + - 33 / NULLIF ( + 75, + + 87 ) / - 56 + - ( + - 59 ) + ( 10 ) - 56 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2690
SELECT DISTINCT + CASE - CAST ( NULL AS INTEGER ) WHEN + + 94 THEN - + 0 WHEN + + COUNT ( * ) THEN + COUNT ( ALL + 19 ) / - COUNT ( * ) * + AVG ( 22 ) + - 33 / NULLIF ( + 75, + + 87 ) / - 56 + - ( + - 59 ) + ( 10 ) - 56 ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT - + 79 + - 58 AS col2
----
-137

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2692
SELECT ALL - 18 * - CAST( + 99 AS SIGNED )
----
1782

skipif mysql # not compatible
query I rowsort label-2692
SELECT ALL - 18 * - CAST ( + 99 AS INTEGER )
----
1782

query I rowsort
SELECT + 76 + + - 29 col0
----
47

query I rowsort
SELECT + 70 - + 89 AS col0
----
-19

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2695
SELECT ALL SUM( - 28 ) DIV - 11
----
2

skipif mysql # not compatible
query I rowsort label-2695
SELECT ALL SUM ( - 28 ) / - 11
----
2

onlyif mysql # aggregate syntax: 
query II rowsort label-2696
SELECT DISTINCT + COUNT( * ) AS col1, 62
----
1
62

skipif mysql # not compatible
query II rowsort label-2696
SELECT DISTINCT + COUNT ( * ) AS col1, 62
----
1
62

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2698
SELECT - 44 / + CASE - + 94 WHEN + 4 + - + ( 23 ) * + 30 / - CAST( NULL AS SIGNED ) * - 5 THEN NULL WHEN CAST( NULL AS SIGNED ) THEN NULL WHEN + - 55 THEN COUNT( * ) END * + COUNT( * ) - - 98 + - 65 + - + 7
----
NULL

skipif mysql # not compatible
query I rowsort label-2698
SELECT - 44 / + CASE - + 94 WHEN + 4 + - + ( 23 ) * + 30 / - CAST ( NULL AS INTEGER ) * - 5 THEN NULL WHEN CAST ( NULL AS INTEGER ) THEN NULL WHEN + - 55 THEN COUNT ( * ) END * + COUNT ( * ) - - 98 + - 65 + - + 7
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2699
SELECT DISTINCT - 11 * 96 + + 13 + - COUNT( ALL 49 ) * SUM( - 90 ) * 74, COUNT( * ) - + - 9 + - + 24 * - - 17 col0
----
5617
-398

skipif mysql # not compatible
query II rowsort label-2699
SELECT DISTINCT - 11 * 96 + + 13 + - COUNT ( ALL 49 ) * SUM ( - 90 ) * 74, COUNT ( * ) - + - 9 + - + 24 * - - 17 col0
----
5617
-398

onlyif mysql # aggregate syntax: 
query I rowsort label-2700
SELECT DISTINCT + 33 * - COALESCE ( - ( + 1 ), + - MIN( + 19 ) + + 51 ) + + COUNT( * )
----
34

skipif mysql # not compatible
query I rowsort label-2700
SELECT DISTINCT + 33 * - COALESCE ( - ( + 1 ), + - MIN ( + 19 ) + + 51 ) + + COUNT ( * )
----
34

query II rowsort
SELECT ALL + 0 * - 67 + - 71 AS col0, 93
----
-71
93

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2702
SELECT CASE 77 WHEN + COALESCE ( - - 33, + 33 ) THEN NULL ELSE ( 57 ) + + - 20 DIV + - 1 + - MIN( DISTINCT 52 ) END, 32 col0
----
25
32

skipif mysql # not compatible
query II rowsort label-2702
SELECT CASE 77 WHEN + COALESCE ( - - 33, + 33 ) THEN NULL ELSE ( 57 ) + + - 20 / + - 1 + - MIN ( DISTINCT 52 ) END, 32 col0
----
25
32

onlyif mysql # DIV for integer division: 
query I rowsort label-2703
SELECT + 26 DIV - 24
----
-1

skipif mysql # not compatible
query I rowsort label-2703
SELECT + 26 / - 24
----
-1

query I rowsort
SELECT ALL + ( + 92 ) * - - 37 + + 50 * - + 42 + 75
----
1379

onlyif mysql # aggregate syntax: 
query I rowsort label-2705
SELECT + 25 * + COUNT( * ) + - - 67 + 15 AS col0
----
107

skipif mysql # not compatible
query I rowsort label-2705
SELECT + 25 * + COUNT ( * ) + - - 67 + 15 AS col0
----
107

query II rowsort
SELECT DISTINCT + 47 AS col0, 59 + + 90 AS col0
----
47
149

onlyif mysql # aggregate syntax: 
query I rowsort label-2707
SELECT ALL 98 * + 92 + + CASE - AVG ( + - 45 ) WHEN CASE 25 WHEN + 63 THEN COUNT( DISTINCT 73 ) END * + - 62 + - 60 * + + 4 - + 74 THEN + + 17 * - 27 * 83 - 63 ELSE NULL END + - 28 * - SUM( ALL 54 ) * 43 + - MAX( 22 ) - - COUNT( * ) - - - AVG ( + + 89 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2707
SELECT ALL 98 * + 92 + + CASE - AVG ( + - 45 ) WHEN CASE 25 WHEN + 63 THEN COUNT ( DISTINCT 73 ) END * + - 62 + - 60 * + + 4 - + 74 THEN + + 17 * - 27 * 83 - 63 ELSE NULL END + - 28 * - SUM ( ALL 54 ) * 43 + - MAX ( 22 ) - - COUNT ( * ) - - - AVG ( + + 89 )
----
NULL

query II rowsort
SELECT + 46 AS col2, - 28 AS col0
----
46
-28

query I rowsort
SELECT DISTINCT + COALESCE ( 17, - 72 ) col2
----
17

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2710
SELECT DISTINCT - NULLIF ( + 33, + - 16 + - 98 + 22 ) * MAX( + 1 ) - - 55 DIV + COUNT( * )
----
22

skipif mysql # not compatible
query I rowsort label-2710
SELECT DISTINCT - NULLIF ( + 33, + - 16 + - 98 + 22 ) * MAX ( + 1 ) - - 55 / + COUNT ( * )
----
22

query II rowsort
SELECT 74, - 18 AS col2
----
74
-18

onlyif mysql # aggregate syntax: 
query II rowsort label-2712
SELECT ALL - 91 * - + CASE - 86 WHEN - 4 + + - COUNT( * ) THEN 70 + + - 91 ELSE - 58 END - CASE 15 WHEN + 77 THEN - - 5 * + 16 ELSE 7 * - + 29 + + + CASE + - MAX( ALL + 51 ) WHEN ( + COUNT( + 32 ) ) * - 7 + + - 54 + SUM( - 18 ) THEN NULL ELSE - 11 * + 91 - - 56 END END, + ( + + 61 ) + 70 * + ( + 99 ) AS col0
----
-4130
6991

skipif mysql # not compatible
query II rowsort label-2712
SELECT ALL - 91 * - + CASE - 86 WHEN - 4 + + - COUNT ( * ) THEN 70 + + - 91 ELSE - 58 END - CASE 15 WHEN + 77 THEN - - 5 * + 16 ELSE 7 * - + 29 + + + CASE + - MAX ( ALL + 51 ) WHEN ( + COUNT ( + 32 ) ) * - 7 + + - 54 + SUM ( - 18 ) THEN NULL ELSE - 11 * + 91 - - 56 END END, + ( + + 61 ) + 70 * + ( + 99 ) AS col0
----
-4130
6991

query I rowsort
SELECT + ( - - 82 ) AS col1
----
82

query I rowsort
SELECT + - 65 - + + 78
----
-143

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2715
SELECT ALL - + ( CASE + 38 WHEN COUNT( * ) + + 14 + - + NULLIF ( + 55, - 44 ) THEN CAST( NULL AS SIGNED ) WHEN - COUNT( * ) THEN NULL ELSE - 67 END ) * + ( ( - - ( + COUNT( * ) ) ) ) * - + 33 + + 82 - + 99 AS col1
----
-2228

skipif mysql # not compatible
query I rowsort label-2715
SELECT ALL - + ( CASE + 38 WHEN COUNT ( * ) + + 14 + - + NULLIF ( + 55, - 44 ) THEN CAST ( NULL AS INTEGER ) WHEN - COUNT ( * ) THEN NULL ELSE - 67 END ) * + ( ( - - ( + COUNT ( * ) ) ) ) * - + 33 + + 82 - + 99 AS col1
----
-2228

query I rowsort
SELECT + + 91 - + + 65 AS col2
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-2717
SELECT + 42 * + 72 * 40 * - 35 * - COUNT( * ) * + COUNT( * ) AS col0
----
4233600

skipif mysql # not compatible
query I rowsort label-2717
SELECT + 42 * + 72 * 40 * - 35 * - COUNT ( * ) * + COUNT ( * ) AS col0
----
4233600

onlyif mysql # DIV for integer division: 
query II rowsort label-2718
SELECT ALL 42 AS col0, + 64 DIV ( ( - 78 ) ) AS col2
----
42
0

skipif mysql # not compatible
query II rowsort label-2718
SELECT ALL 42 AS col0, + 64 / ( ( - 78 ) ) AS col2
----
42
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2719
SELECT - 69 DIV 60 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-2719
SELECT - 69 / 60 AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2720
SELECT ALL - COUNT( * ) * - 79 * + - NULLIF ( + CASE + - 87 WHEN + COUNT( * ) * 66 / 85 THEN - 78 WHEN 94 + + + 69 + - - 4 THEN NULL END, + ( ( 97 ) ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2720
SELECT ALL - COUNT ( * ) * - 79 * + - NULLIF ( + CASE + - 87 WHEN + COUNT ( * ) * 66 / 85 THEN - 78 WHEN 94 + + + 69 + - - 4 THEN NULL END, + ( ( 97 ) ) ) AS col2
----
NULL

query I rowsort
SELECT ALL NULLIF ( 36, - + 8 / - 21 + 8 ) AS col1
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-2722
SELECT DISTINCT SUM( ALL + + 33 )
----
33

skipif mysql # not compatible
query I rowsort label-2722
SELECT DISTINCT SUM ( ALL + + 33 )
----
33

query I rowsort
SELECT - 76 * - NULLIF ( - 72, + 75 + 23 ) AS col0
----
-5472

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

skipif mysql # not compatible
query I rowsort label-2724
SELECT DISTINCT + 69 / - COUNT ( * )
----
-69

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

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

query I rowsort
SELECT DISTINCT + 60 + + - 24
----
36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2727
SELECT - CAST( NULL AS SIGNED ) + - - ( + 14 ) + + 26 * + 91 * + 44 * 35
----
NULL

skipif mysql # not compatible
query I rowsort label-2727
SELECT - CAST ( NULL AS INTEGER ) + - - ( + 14 ) + + 26 * + 91 * + 44 * 35
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2728
SELECT ALL + COUNT( * ) + - ( + 95 ) * + 21 AS col2
----
-1994

skipif mysql # not compatible
query I rowsort label-2728
SELECT ALL + COUNT ( * ) + - ( + 95 ) * + 21 AS col2
----
-1994

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2729
SELECT ALL - 87 * + CAST( + 71 AS SIGNED ) AS col2
----
-6177

skipif mysql # not compatible
query I rowsort label-2729
SELECT ALL - 87 * + CAST ( + 71 AS INTEGER ) AS col2
----
-6177

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2731
SELECT ALL + CASE - COUNT( * ) WHEN COUNT( * ) THEN NULL WHEN COALESCE ( - 13, MIN( 12 ), - - 96, + CASE - - COUNT( * ) WHEN 64 THEN NULL WHEN + 41 THEN 92 ELSE - 55 END ) * 58 * - + CAST( NULL AS SIGNED ) - - 18 + - + CAST( NULL AS SIGNED ) THEN ( + COUNT( * ) ) WHEN 97 / + - 28 * - 75 + + - 58 THEN COUNT( * ) ELSE 40 + - CAST( 10 AS SIGNED ) END * 38
----
1140

skipif mysql # not compatible
query I rowsort label-2731
SELECT ALL + CASE - COUNT ( * ) WHEN COUNT ( * ) THEN NULL WHEN COALESCE ( - 13, MIN ( 12 ), - - 96, + CASE - - COUNT ( * ) WHEN 64 THEN NULL WHEN + 41 THEN 92 ELSE - 55 END ) * 58 * - + CAST ( NULL AS INTEGER ) - - 18 + - + CAST ( NULL AS INTEGER ) THEN ( + COUNT ( * ) ) WHEN 97 / + - 28 * - 75 + + - 58 THEN COUNT ( * ) ELSE 40 + - CAST ( 10 AS INTEGER ) END * 38
----
1140

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2732
SELECT ALL - COUNT( * ) DIV 51 + + 52 - - + 29 AS col1
----
81

skipif mysql # not compatible
query I rowsort label-2732
SELECT ALL - COUNT ( * ) / 51 + + 52 - - + 29 AS col1
----
81

query I rowsort
SELECT - 87 * - 57 AS col2
----
4959

query I rowsort
SELECT DISTINCT + 70 * 5 * + 56
----
19600

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

onlyif mysql # DIV for integer division: 
query II rowsort label-2736
SELECT - 21 DIV + 43 * - 59 + + - 38, - 85 - + - 44 AS col2
----
-38
-41

skipif mysql # not compatible
query II rowsort label-2736
SELECT - 21 / + 43 * - 59 + + - 38, - 85 - + - 44 AS col2
----
-38
-41

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

query II rowsort
SELECT ( + 92 ) col1, - 30 col2
----
92
-30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2739
SELECT + - 30 - - COUNT( * ), - NULLIF ( CAST( + + 6 AS SIGNED ), + + 98 * - + ( - 25 ) - + 91 + 17 * 80 * - 45 ) AS col2
----
-29
-6

skipif mysql # not compatible
query II rowsort label-2739
SELECT + - 30 - - COUNT ( * ), - NULLIF ( CAST ( + + 6 AS INTEGER ), + + 98 * - + ( - 25 ) - + 91 + 17 * 80 * - 45 ) AS col2
----
-29
-6

query I rowsort
SELECT DISTINCT - 19 * + 47 - - 65
----
-828

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2742
SELECT + - 80 + 1 DIV + COALESCE ( + - 78, - 60 ) col1
----
-80

skipif mysql # not compatible
query I rowsort label-2742
SELECT + - 80 + 1 / + COALESCE ( + - 78, - 60 ) col1
----
-80

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2743
SELECT ALL - COALESCE ( + 71, + 79 * + + 38 ) * - 59 * + - 89 - + 94, - CAST( + 62 AS SIGNED ) AS col2
----
-372915
-62

skipif mysql # not compatible
query II rowsort label-2743
SELECT ALL - COALESCE ( + 71, + 79 * + + 38 ) * - 59 * + - 89 - + 94, - CAST ( + 62 AS INTEGER ) AS col2
----
-372915
-62

query I rowsort
SELECT + 59 * + 63
----
3717

onlyif mysql # aggregate syntax: 
query I rowsort label-2745
SELECT DISTINCT COUNT( * ) * - + 74 + COUNT( * ) AS col1
----
-73

skipif mysql # not compatible
query I rowsort label-2745
SELECT DISTINCT COUNT ( * ) * - + 74 + COUNT ( * ) AS col1
----
-73

query I rowsort
SELECT - 71 * + + 39 + + + 64 + + 57
----
-2648

query I rowsort
SELECT + - 65 * + 72 + + 16
----
-4664

query I rowsort
SELECT + 86 - - 38
----
124

query I rowsort
SELECT + + 3 * + + 8
----
24

query I rowsort
SELECT + - 28 * + 50 * 29 col1
----
-40600

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2751
SELECT ALL - 23 * - - 11 DIV COUNT( ALL + + 94 ) * 78 * + + ( COUNT( * ) ) * - + COUNT( * ) + - + MAX( + + 14 )
----
19720

skipif mysql # not compatible
query I rowsort label-2751
SELECT ALL - 23 * - - 11 / COUNT ( ALL + + 94 ) * 78 * + + ( COUNT ( * ) ) * - + COUNT ( * ) + - + MAX ( + + 14 )
----
19720

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2753
SELECT + 66 + - + 90 - + 87 + - 59 DIV + - 68 - - MAX( ALL - 0 ) col2, + COALESCE ( - - 1, + 22, - + 5, 9 ) * + + COUNT( * )
----
-111
1

skipif mysql # not compatible
query II rowsort label-2753
SELECT + 66 + - + 90 - + 87 + - 59 / + - 68 - - MAX ( ALL - 0 ) col2, + COALESCE ( - - 1, + 22, - + 5, 9 ) * + + COUNT ( * )
----
-111
1

onlyif mysql # aggregate syntax: 
query II rowsort label-2754
SELECT - 6 * + - 38, - 29 * + COUNT( * ) col2
----
228
-29

skipif mysql # not compatible
query II rowsort label-2754
SELECT - 6 * + - 38, - 29 * + COUNT ( * ) col2
----
228
-29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2755
SELECT 90 * + CAST( + MAX( DISTINCT + - 73 ) AS SIGNED ), 27 AS col1
----
-6570
27

skipif mysql # not compatible
query II rowsort label-2755
SELECT 90 * + CAST ( + MAX ( DISTINCT + - 73 ) AS INTEGER ), 27 AS col1
----
-6570
27

query I rowsort
SELECT + 80 + + ( + - 72 ) AS col1
----
8

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

query I rowsort
SELECT - + 36 col2
----
-36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2759
SELECT ALL 59 + + CAST( - - CAST( COALESCE ( + + COUNT( * ), - + 59, + 80 + + COALESCE ( - CASE - ( + 6 ) WHEN - - 10 * - 18 + - + ( 5 ) THEN + 73 END, - 82 / 68 * - - 37 + - + 80 ) ) AS DECIMAL ) AS SIGNED ) * - - 98
----
157

skipif mysql # not compatible
query I rowsort label-2759
SELECT ALL 59 + + CAST ( - - CAST ( COALESCE ( + + COUNT ( * ), - + 59, + 80 + + COALESCE ( - CASE - ( + 6 ) WHEN - - 10 * - 18 + - + ( 5 ) THEN + 73 END, - 82 / 68 * - - 37 + - + 80 ) ) AS REAL ) AS INTEGER ) * - - 98
----
157

onlyif mysql # aggregate syntax: 
query I rowsort label-2760
SELECT ( - CASE + - 77 WHEN + 15 + - 80 * + + 35 * 41 * + 78 + - 53 THEN + 78 WHEN + + COUNT( * ) THEN NULL END ) + - 71 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2760
SELECT ( - CASE + - 77 WHEN + 15 + - 80 * + + 35 * 41 * + 78 + - 53 THEN + 78 WHEN + + COUNT ( * ) THEN NULL END ) + - 71 AS col2
----
NULL

query II rowsort
SELECT - 23 AS col0, 6 col2
----
-23
6

query I rowsort
SELECT DISTINCT 88 * - 88 col0
----
-7744

onlyif mysql # aggregate syntax: 
query I rowsort label-2763
SELECT ALL + 56 * CASE + 36 WHEN + - SUM( + 19 ) + + 80 THEN NULL WHEN + 50 / NULLIF ( - 65, - NULLIF ( + 68, 18 + + 27 ) * + 29 * 63 - SUM( - + 73 ) + 23 + - 62 ) THEN NULL ELSE + 55 * + - 31 END * - 85 + - 81
----
8115719

skipif mysql # not compatible
query I rowsort label-2763
SELECT ALL + 56 * CASE + 36 WHEN + - SUM ( + 19 ) + + 80 THEN NULL WHEN + 50 / NULLIF ( - 65, - NULLIF ( + 68, 18 + + 27 ) * + 29 * 63 - SUM ( - + 73 ) + 23 + - 62 ) THEN NULL ELSE + 55 * + - 31 END * - 85 + - 81
----
8115719

onlyif mysql # aggregate syntax: 
query I rowsort label-2764
SELECT DISTINCT 81 + - 50 + ( - 65 ) * 36 * + NULLIF ( - 75, + COUNT( * ) * - 31 ) col0
----
175531

skipif mysql # not compatible
query I rowsort label-2764
SELECT DISTINCT 81 + - 50 + ( - 65 ) * 36 * + NULLIF ( - 75, + COUNT ( * ) * - 31 ) col0
----
175531

onlyif mysql # aggregate syntax: 
query I rowsort label-2765
SELECT ALL - 83 + + + 86 * + 86 * - + MIN( DISTINCT - 12 )
----
88669

skipif mysql # not compatible
query I rowsort label-2765
SELECT ALL - 83 + + + 86 * + 86 * - + MIN ( DISTINCT - 12 )
----
88669

query I rowsort
SELECT 25 + + 91 AS col2
----
116

query II rowsort
SELECT DISTINCT 16 + + 97 + - 38 * 20 + + 45, 68 + COALESCE ( + - 17, + 38 - + 47 ) AS col2
----
-602
51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2768
SELECT 35 + - 33 DIV 81 * - COUNT( * ) + 87 + + 87 AS col1
----
209

skipif mysql # not compatible
query I rowsort label-2768
SELECT 35 + - 33 / 81 * - COUNT ( * ) + 87 + + 87 AS col1
----
209

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2769
SELECT 44 + COALESCE ( + 46, + 39 DIV - 80, MIN( + 95 ) )
----
90

skipif mysql # not compatible
query I rowsort label-2769
SELECT 44 + COALESCE ( + 46, + 39 / - 80, MIN ( + 95 ) )
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-2770
SELECT ALL - CASE - - 60 WHEN + + 81 * COUNT( * ) * + 81 * 76 * - 26 THEN - + 89 WHEN - + 92 THEN NULL END + 45 + - 76 + SUM( ALL + + 14 ) + 2 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2770
SELECT ALL - CASE - - 60 WHEN + + 81 * COUNT ( * ) * + 81 * 76 * - 26 THEN - + 89 WHEN - + 92 THEN NULL END + 45 + - 76 + SUM ( ALL + + 14 ) + 2 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2771
SELECT COALESCE ( 41, + ( + 97 ) + - - CAST( NULL AS SIGNED ) - + 50 + + ( COUNT( * ) ), - CAST( NULL AS SIGNED ) * + 0 ) + 89 DIV + + 26 col0
----
44

skipif mysql # not compatible
query I rowsort label-2771
SELECT COALESCE ( 41, + ( + 97 ) + - - CAST ( NULL AS INTEGER ) - + 50 + + ( COUNT ( * ) ), - CAST ( NULL AS INTEGER ) * + 0 ) + 89 / + + 26 col0
----
44

query I rowsort
SELECT 18 * - 84 AS col0
----
-1512

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2774
SELECT DISTINCT - ( - 91 ) * - + 91 - + SUM( ALL - - CAST( - 16 AS SIGNED ) )
----
-8265

skipif mysql # not compatible
query I rowsort label-2774
SELECT DISTINCT - ( - 91 ) * - + 91 - + SUM ( ALL - - CAST ( - 16 AS INTEGER ) )
----
-8265

onlyif mysql # DIV for integer division: 
query I rowsort label-2775
SELECT DISTINCT 74 DIV 7
----
10

skipif mysql # not compatible
query I rowsort label-2775
SELECT DISTINCT 74 / 7
----
10

onlyif mysql # DIV for integer division: 
query I rowsort label-2776
SELECT ALL + 48 - + 74 DIV - - 89 AS col0
----
48

skipif mysql # not compatible
query I rowsort label-2776
SELECT ALL + 48 - + 74 / - - 89 AS col0
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-2777
SELECT ALL - 93 * NULLIF ( + 44, + 60 * 95 + + COALESCE ( + 89, + 44 ) * + 77 / + MAX( DISTINCT + 67 ) ) AS col2
----
-4092

skipif mysql # not compatible
query I rowsort label-2777
SELECT ALL - 93 * NULLIF ( + 44, + 60 * 95 + + COALESCE ( + 89, + 44 ) * + 77 / + MAX ( DISTINCT + 67 ) ) AS col2
----
-4092

query I rowsort
SELECT 44 * + 53 AS col1
----
2332

onlyif mysql # DIV for integer division: 
query I rowsort label-2779
SELECT ALL - 21 DIV - - 17
----
-1

skipif mysql # not compatible
query I rowsort label-2779
SELECT ALL - 21 / - - 17
----
-1

query II rowsort
SELECT 27 AS col2, + 81
----
27
81

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

query I rowsort
SELECT NULLIF ( 38, + 54 ) * - 88 + 45 AS col2
----
-3299

query I rowsort
SELECT DISTINCT + 31 * + 46 AS col1
----
1426

query I rowsort
SELECT 43 * 98 AS col1
----
4214

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2786
SELECT CASE NULLIF ( + 48, 73 ) WHEN + 3 * MAX( CAST( NULL AS SIGNED ) ) THEN + 38 WHEN CAST( 73 AS SIGNED ) THEN 97 WHEN - 99 * 35 THEN 40 END * 26 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2786
SELECT CASE NULLIF ( + 48, 73 ) WHEN + 3 * MAX ( CAST ( NULL AS INTEGER ) ) THEN + 38 WHEN CAST ( 73 AS INTEGER ) THEN 97 WHEN - 99 * 35 THEN 40 END * 26 AS col2
----
NULL

query I rowsort
SELECT DISTINCT + 31 * 75 AS col0
----
2325

onlyif mysql # aggregate syntax: 
query I rowsort label-2788
SELECT MAX( 44 ) * 16 AS col2
----
704

skipif mysql # not compatible
query I rowsort label-2788
SELECT MAX ( 44 ) * 16 AS col2
----
704

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2789
SELECT ALL - 86 DIV NULLIF ( - COUNT( * ), - 33 )
----
86

skipif mysql # not compatible
query I rowsort label-2789
SELECT ALL - 86 / NULLIF ( - COUNT ( * ), - 33 )
----
86

onlyif mysql # DIV for integer division: 
query I rowsort label-2790
SELECT 65 DIV + 15 AS col0
----
4

skipif mysql # not compatible
query I rowsort label-2790
SELECT 65 / + 15 AS col0
----
4

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

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

query I rowsort
SELECT DISTINCT 24 * + 38 AS col2
----
912

query I rowsort
SELECT ALL 83 + - 35 AS col0
----
48

query I rowsort
SELECT ALL 42 + + 72
----
114

query I rowsort
SELECT 84 - 17
----
67

onlyif mysql # DIV for integer division: 
query I rowsort label-2796
SELECT 90 DIV - 38
----
-2

skipif mysql # not compatible
query I rowsort label-2796
SELECT 90 / - 38
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-2797
SELECT DISTINCT - MAX( ALL + ( + 14 ) ) * 28 AS col1
----
-392

skipif mysql # not compatible
query I rowsort label-2797
SELECT DISTINCT - MAX ( ALL + ( + 14 ) ) * 28 AS col1
----
-392

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

skipif mysql # not compatible
query I rowsort label-2798
SELECT ALL + 14 + - 68 / + COUNT ( * ) AS col0
----
-54

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

query I rowsort
SELECT ( ( - 6 ) ) * + 81
----
-486

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

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

query I rowsort
SELECT ( - 95 ) * + 94 AS col0
----
-8930

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

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

query I rowsort
SELECT ALL 22 * 35
----
770

query I rowsort
SELECT ALL 33 * + 39 AS col1
----
1287

query I rowsort
SELECT DISTINCT 68 * 84 AS col2
----
5712

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

skipif mysql # not compatible
query I rowsort label-2807
SELECT 53 * + COUNT ( 50 * 45 ) AS col0
----
53

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

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

query I rowsort
SELECT - 25 * 44 + - 88
----
-1188

onlyif mysql # aggregate syntax: 
query I rowsort label-2810
SELECT - 79 * - 28 + COUNT( * ) AS col1
----
2213

skipif mysql # not compatible
query I rowsort label-2810
SELECT - 79 * - 28 + COUNT ( * ) AS col1
----
2213

query I rowsort
SELECT - 63 * - 10 AS col0
----
630

onlyif mysql # aggregate syntax: 
query I rowsort label-2812
SELECT MAX( ALL 95 ) * - 96 AS col1
----
-9120

skipif mysql # not compatible
query I rowsort label-2812
SELECT MAX ( ALL 95 ) * - 96 AS col1
----
-9120

onlyif mysql # aggregate syntax: 
query I rowsort label-2813
SELECT + SUM( + 57 ) * 65 + 30 * 38 AS col2
----
4845

skipif mysql # not compatible
query I rowsort label-2813
SELECT + SUM ( + 57 ) * 65 + 30 * 38 AS col2
----
4845

query I rowsort
SELECT + 85 + - 33
----
52

query I rowsort
SELECT ALL - - 25 * 14 AS col1
----
350

query I rowsort
SELECT ( 85 ) + - 31
----
54

onlyif mysql # DIV for integer division: 
query I rowsort label-2817
SELECT ALL + 98 DIV 87 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2817
SELECT ALL + 98 / 87 AS col0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2818
SELECT + 29 * 30 + - CAST( 33 AS SIGNED ) col0
----
837

skipif mysql # not compatible
query I rowsort label-2818
SELECT + 29 * 30 + - CAST ( 33 AS INTEGER ) col0
----
837

query I rowsort
SELECT ALL 12 * 90 + + 86 * 41 AS col2
----
4606

query I rowsort
SELECT + - 71 * - 52 - - 78
----
3770

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

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

query I rowsort
SELECT ALL - 31 * 97
----
-3007

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

skipif mysql # not compatible
query I rowsort label-2823
SELECT DISTINCT + + 45 * - COUNT ( * ) AS col2
----
-45

query I rowsort
SELECT + ( + 29 ) * 81
----
2349

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2826
SELECT DISTINCT 95 * 11 + - MIN( DISTINCT 22 ) AS col0
----
1023

skipif mysql # not compatible
query I rowsort label-2826
SELECT DISTINCT 95 * 11 + - MIN ( DISTINCT 22 ) AS col0
----
1023

query I rowsort
SELECT ALL 32 * + 97 + + 12 AS col0
----
3116

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

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

query I rowsort
SELECT - + 2 + + 72
----
70

query I rowsort
SELECT ALL + - 40 + 59 * - 72
----
-4288

onlyif mysql # aggregate syntax: 
query I rowsort label-2831
SELECT DISTINCT COALESCE ( 32, COUNT( * ) * 50 ) + - 67 * - 26
----
1774

skipif mysql # not compatible
query I rowsort label-2831
SELECT DISTINCT COALESCE ( 32, COUNT ( * ) * 50 ) + - 67 * - 26
----
1774

query I rowsort
SELECT ALL 88 + + 57
----
145

query I rowsort
SELECT - 94 * - 86 AS col0
----
8084

onlyif mysql # aggregate syntax: 
query I rowsort label-2834
SELECT ALL COALESCE ( - COUNT( * ), - 42 )
----
-1

skipif mysql # not compatible
query I rowsort label-2834
SELECT ALL COALESCE ( - COUNT ( * ), - 42 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2835
SELECT - 28 * + ( CASE 78 WHEN + MIN( - ( + 23 ) ) * + 93 THEN - 72 + + COALESCE ( + 25 + + 82, + 35 + 45 * 53 ) END ) + - COUNT( * ) * - 48
----
NULL

skipif mysql # not compatible
query I rowsort label-2835
SELECT - 28 * + ( CASE 78 WHEN + MIN ( - ( + 23 ) ) * + 93 THEN - 72 + + COALESCE ( + 25 + + 82, + 35 + 45 * 53 ) END ) + - COUNT ( * ) * - 48
----
NULL

query I rowsort
SELECT DISTINCT - 38 * + COALESCE ( - 45, - 86, - 68 ) * ( - 37 + - 25 * + 91 )
----
-3953520

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2837
SELECT DISTINCT CASE WHEN NOT - COALESCE ( + 72, ( + CASE + 0 WHEN 99 + COUNT( * ) THEN NULL WHEN 82 * + 18 + 46 THEN 2 DIV 15 - + 47 ELSE AVG ( ALL - 36 ) END ) - 17 ) IS NULL THEN + 48 * MAX( + 65 DIV + 11 ) ELSE NULL END
----
240

skipif mysql # not compatible
query I rowsort label-2837
SELECT DISTINCT CASE WHEN NOT - COALESCE ( + 72, ( + CASE + 0 WHEN 99 + COUNT ( * ) THEN NULL WHEN 82 * + 18 + 46 THEN 2 / 15 - + 47 ELSE AVG ( ALL - 36 ) END ) - 17 ) IS NULL THEN + 48 * MAX ( + 65 / + 11 ) ELSE NULL END
----
240

query I rowsort
SELECT - 58 * + 28
----
-1624

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2839
SELECT ALL CAST( NULL AS SIGNED ) - - - MAX( ALL ( 11 ) ) + 82
----
NULL

skipif mysql # not compatible
query I rowsort label-2839
SELECT ALL CAST ( NULL AS INTEGER ) - - - MAX ( ALL ( 11 ) ) + 82
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2840
SELECT - 10 DIV + + 83 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2840
SELECT - 10 / + + 83 AS col1
----
0

query I rowsort
SELECT + 28 + - - COALESCE ( 64, 11 ) AS col0
----
92

query I rowsort
SELECT ALL - 20 * ( 15 )
----
-300

onlyif mysql # aggregate syntax: 
query I rowsort label-2843
SELECT ALL + ( - NULLIF ( - CASE - ( - 99 ) WHEN + CASE + 85 WHEN COUNT( * ) + 12 * COUNT( * ) THEN 51 / + COALESCE ( + COUNT( * ) * + 82, + ( + COUNT( * ) ) + 16 ) + + ( + 63 ) * MAX( DISTINCT + 70 ) ELSE - AVG ( 64 ) END * - 59 + 77 THEN - COUNT( * ) ELSE 47 END, COUNT( ALL 69 ) * - 63 + 24 ) ) - COUNT( * ) AS col1
----
46

skipif mysql # not compatible
query I rowsort label-2843
SELECT ALL + ( - NULLIF ( - CASE - ( - 99 ) WHEN + CASE + 85 WHEN COUNT ( * ) + 12 * COUNT ( * ) THEN 51 / + COALESCE ( + COUNT ( * ) * + 82, + ( + COUNT ( * ) ) + 16 ) + + ( + 63 ) * MAX ( DISTINCT + 70 ) ELSE - AVG ( 64 ) END * - 59 + 77 THEN - COUNT ( * ) ELSE 47 END, COUNT ( ALL 69 ) * - 63 + 24 ) ) - COUNT ( * ) AS col1
----
46

query I rowsort
SELECT + 21 + - 10 * 36
----
-339

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2846
SELECT + MAX( ALL - 42 ) + + 58 * - 94 AS col2
----
-5494

skipif mysql # not compatible
query I rowsort label-2846
SELECT + MAX ( ALL - 42 ) + + 58 * - 94 AS col2
----
-5494

query I rowsort
SELECT - COALESCE ( + 56, - 65 + + 34, + 61 * + 15 )
----
-56

query I rowsort
SELECT - 68 * + + ( - ( 17 ) )
----
1156

query I rowsort
SELECT + 74 + 1 + 25 * - 21
----
-450

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

query I rowsort
SELECT ALL 9 * - 39 AS col2
----
-351

onlyif mysql # DIV for integer division: 
query I rowsort label-2852
SELECT DISTINCT 22 DIV - ( 19 ) + + 88 * 66
----
5807

skipif mysql # not compatible
query I rowsort label-2852
SELECT DISTINCT 22 / - ( 19 ) + + 88 * 66
----
5807

query I rowsort
SELECT DISTINCT + 68 * - 74 * 70
----
-352240

query I rowsort
SELECT ALL - COALESCE ( - - 95, 90, - 42 ) * 56 AS col0
----
-5320

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2855
SELECT ALL + CAST( NULL AS SIGNED ) * - COUNT( * ) / + 83 + + ( COUNT( * ) ) * - 4 + 50 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2855
SELECT ALL + CAST ( NULL AS INTEGER ) * - COUNT ( * ) / + 83 + + ( COUNT ( * ) ) * - 4 + 50 AS col0
----
NULL

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

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

query I rowsort
SELECT ALL - ( 39 ) * 33 + 94
----
-1193

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2858
SELECT ALL 93 * CAST( NULL AS SIGNED ) + - 52 * ( + 1 + ( - 29 - 0 ) / 50 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2858
SELECT ALL 93 * CAST ( NULL AS INTEGER ) + - 52 * ( + 1 + ( - 29 - 0 ) / 50 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2859
SELECT DISTINCT CASE + - 85 WHEN 80 * 79 THEN 25 + 70 ELSE - COUNT( * ) END * MAX( DISTINCT 72 * 65 ) + 92 AS col1
----
-4588

skipif mysql # not compatible
query I rowsort label-2859
SELECT DISTINCT CASE + - 85 WHEN 80 * 79 THEN 25 + 70 ELSE - COUNT ( * ) END * MAX ( DISTINCT 72 * 65 ) + 92 AS col1
----
-4588

onlyif mysql # DIV for integer division: 
query I rowsort label-2860
SELECT ALL + + 80 DIV + 50 + 73 AS col0
----
74

skipif mysql # not compatible
query I rowsort label-2860
SELECT ALL + + 80 / + 50 + 73 AS col0
----
74

query I rowsort
SELECT DISTINCT + 87 * - ( + 71 ) + - 26 * + 9 + 10
----
-6401

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2862
SELECT DISTINCT - CAST( + + NULLIF ( CAST( NULL AS SIGNED ), + 83 ) AS SIGNED ) / 93
----
NULL

skipif mysql # not compatible
query I rowsort label-2862
SELECT DISTINCT - CAST ( + + NULLIF ( CAST ( NULL AS INTEGER ), + 83 ) AS INTEGER ) / 93
----
NULL

query I rowsort
SELECT COALESCE ( + 11, - 85 ) AS col2
----
11

query I rowsort
SELECT ALL + + 81 * - 3 * - 2 - - 68 * - 22
----
-1010

onlyif mysql # aggregate syntax: 
query I rowsort label-2865
SELECT - + 65 * + + 15 * + 5 + + MIN( ALL 4 ) * + 78 AS col0
----
-4563

skipif mysql # not compatible
query I rowsort label-2865
SELECT - + 65 * + + 15 * + 5 + + MIN ( ALL 4 ) * + 78 AS col0
----
-4563

query I rowsort
SELECT ALL + 59 * - 31 AS col1
----
-1829

query I rowsort
SELECT ( - 73 ) * + + 67 + + NULLIF ( - 23, + 39 * ( - NULLIF ( 35, 67 - 94 ) ) )
----
-4914

onlyif mysql # DIV for integer division: 
query I rowsort label-2868
SELECT - 88 + + 6 DIV - ( 25 )
----
-88

skipif mysql # not compatible
query I rowsort label-2868
SELECT - 88 + + 6 / - ( 25 )
----
-88

query I rowsort
SELECT DISTINCT - ( + 64 ) * - + 83
----
5312

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2870
SELECT ALL + CAST( - + 14 AS SIGNED ) * - 66 - 8
----
916

skipif mysql # not compatible
query I rowsort label-2870
SELECT ALL + CAST ( - + 14 AS INTEGER ) * - 66 - 8
----
916

onlyif mysql # aggregate syntax: 
query I rowsort label-2871
SELECT - MIN( ALL - + 20 ) AS col1
----
20

skipif mysql # not compatible
query I rowsort label-2871
SELECT - MIN ( ALL - + 20 ) AS col1
----
20

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2873
SELECT - 34 - 13 DIV 54 AS col0
----
-34

skipif mysql # not compatible
query I rowsort label-2873
SELECT - 34 - 13 / 54 AS col0
----
-34

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

query I rowsort
SELECT DISTINCT 58 * - - 8
----
464

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2877
SELECT DISTINCT CAST( NULL AS SIGNED ), 39 + + - 56 AS col1
----
NULL
-17

skipif mysql # not compatible
query II rowsort label-2877
SELECT DISTINCT CAST ( NULL AS INTEGER ), 39 + + - 56 AS col1
----
NULL
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-2878
SELECT DISTINCT CASE + 3 WHEN ( - 29 ) THEN ( 39 ) WHEN - NULLIF ( + 12, + 35 ) THEN CASE COUNT( 99 ) WHEN - NULLIF ( 28, 96 ) * - 76 THEN NULL WHEN + 30 THEN - ( 79 ) END * 59 - 83 * - 56 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2878
SELECT DISTINCT CASE + 3 WHEN ( - 29 ) THEN ( 39 ) WHEN - NULLIF ( + 12, + 35 ) THEN CASE COUNT ( 99 ) WHEN - NULLIF ( 28, 96 ) * - 76 THEN NULL WHEN + 30 THEN - ( 79 ) END * 59 - 83 * - 56 ELSE NULL END
----
NULL

query I rowsort
SELECT ALL - 89 * - - 27 AS col0
----
-2403

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2881
SELECT - MAX( DISTINCT 3 ) - + + COUNT( * )
----
-4

skipif mysql # not compatible
query I rowsort label-2881
SELECT - MAX ( DISTINCT 3 ) - + + COUNT ( * )
----
-4

query I rowsort
SELECT - 68 * + 63 AS col1
----
-4284

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2883
SELECT - MAX( ALL - ( - CASE 60 WHEN + 69 * + CAST( NULL AS SIGNED ) THEN NULL ELSE 76 END ) ) * CAST( COALESCE ( + 8, - 44 ) AS SIGNED )
----
-608

skipif mysql # not compatible
query I rowsort label-2883
SELECT - MAX ( ALL - ( - CASE 60 WHEN + 69 * + CAST ( NULL AS INTEGER ) THEN NULL ELSE 76 END ) ) * CAST ( COALESCE ( + 8, - 44 ) AS INTEGER )
----
-608

query I rowsort
SELECT ALL + 89 * + 37 * 42 AS col2
----
138306

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2885
SELECT ALL CAST( NULL AS SIGNED ), - 98 AS col2
----
NULL
-98

skipif mysql # not compatible
query II rowsort label-2885
SELECT ALL CAST ( NULL AS INTEGER ), - 98 AS col2
----
NULL
-98

query II rowsort
SELECT - 8, 65 AS col2
----
-8
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2887
SELECT - COALESCE ( CAST( + + 37 AS SIGNED ), SUM( ALL CAST( 9 AS SIGNED ) ) + 9 DIV - ( + 51 ), CAST( COALESCE ( + 8, MIN( 25 ) * 30 + 78 ) AS SIGNED ) + 10 ) AS col0
----
-37

skipif mysql # not compatible
query I rowsort label-2887
SELECT - COALESCE ( CAST ( + + 37 AS INTEGER ), SUM ( ALL CAST ( 9 AS INTEGER ) ) + 9 / - ( + 51 ), CAST ( COALESCE ( + 8, MIN ( 25 ) * 30 + 78 ) AS INTEGER ) + 10 ) AS col0
----
-37

query I rowsort
SELECT DISTINCT + 72 * - 3 * + 87 * 24 AS col0
----
-451008

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2890
SELECT - COUNT( * ) * NULLIF ( - 39, 83 - + 80 ) * COUNT( * )
----
39

skipif mysql # not compatible
query I rowsort label-2890
SELECT - COUNT ( * ) * NULLIF ( - 39, 83 - + 80 ) * COUNT ( * )
----
39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2891
SELECT ALL + MIN( ALL - NULLIF ( 55, - 52 + + 67 ) ) + 92 DIV 45
----
-53

skipif mysql # not compatible
query I rowsort label-2891
SELECT ALL + MIN ( ALL - NULLIF ( 55, - 52 + + 67 ) ) + 92 / 45
----
-53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2892
SELECT - 0, CAST( NULL AS SIGNED ) + + - MIN( 15 ) + 29 AS col2
----
0
NULL

skipif mysql # not compatible
query II rowsort label-2892
SELECT - 0, CAST ( NULL AS INTEGER ) + + - MIN ( 15 ) + 29 AS col2
----
0
NULL

query I rowsort
SELECT ALL - 50 + - 94 - - 56 AS col1
----
-88

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

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

query I rowsort
SELECT ALL + 76 + - 36 col2
----
40

onlyif mysql # DIV for integer division: 
query I rowsort label-2896
SELECT DISTINCT 29 DIV - 90
----
0

skipif mysql # not compatible
query I rowsort label-2896
SELECT DISTINCT 29 / - 90
----
0

query I rowsort
SELECT + 34 + + 11
----
45

query I rowsort
SELECT + 57 * - 94 + - - 43
----
-5315

onlyif mysql # DIV for integer division: 
query I rowsort label-2899
SELECT + ( + 69 ) DIV - - 45 col0
----
1

skipif mysql # not compatible
query I rowsort label-2899
SELECT + ( + 69 ) / - - 45 col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2900
SELECT ALL 87 + - - SUM( ALL + 67 ) AS col1
----
154

skipif mysql # not compatible
query I rowsort label-2900
SELECT ALL 87 + - - SUM ( ALL + 67 ) AS col1
----
154

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2902
SELECT COALESCE ( COALESCE ( - 27, 5, + 19, COUNT( * ) ), - 30 )
----
-27

skipif mysql # not compatible
query I rowsort label-2902
SELECT COALESCE ( COALESCE ( - 27, 5, + 19, COUNT ( * ) ), - 30 )
----
-27

query I rowsort
SELECT - 83 + 33 * + 39 AS col0
----
1204

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2904
SELECT ALL + 54 + - CAST( + + ( - COUNT( * ) ) AS SIGNED ) AS col0
----
55

skipif mysql # not compatible
query I rowsort label-2904
SELECT ALL + 54 + - CAST ( + + ( - COUNT ( * ) ) AS INTEGER ) AS col0
----
55

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2906
SELECT + COUNT( * ) * - + 10 + 97 + - NULLIF ( 70, 1 + - 28 )
----
17

skipif mysql # not compatible
query I rowsort label-2906
SELECT + COUNT ( * ) * - + 10 + 97 + - NULLIF ( 70, 1 + - 28 )
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-2907
SELECT 94 * - COUNT( * ) + - 0 * + 20 + - 39 * + COALESCE ( COALESCE ( + 81, COALESCE ( - 60, - 95 ) - 8 * - 75, 51 + 99 ), ( 40 ) + + 34 ) AS col0
----
-3253

skipif mysql # not compatible
query I rowsort label-2907
SELECT 94 * - COUNT ( * ) + - 0 * + 20 + - 39 * + COALESCE ( COALESCE ( + 81, COALESCE ( - 60, - 95 ) - 8 * - 75, 51 + 99 ), ( 40 ) + + 34 ) AS col0
----
-3253

query I rowsort
SELECT ALL - - CASE + + 59 WHEN ( 13 ) THEN AVG ( DISTINCT 25 ) WHEN 18 THEN - 76 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2909
SELECT ALL 53 - - - COALESCE ( - 95, - - MAX( DISTINCT - 47 ) ) AS col2
----
148

skipif mysql # not compatible
query I rowsort label-2909
SELECT ALL 53 - - - COALESCE ( - 95, - - MAX ( DISTINCT - 47 ) ) AS col2
----
148

onlyif mysql # aggregate syntax: 
query I rowsort label-2910
SELECT 48 + + NULLIF ( - COALESCE ( 66, + 63 ), + COUNT( - 71 ) ) AS col2
----
-18

skipif mysql # not compatible
query I rowsort label-2910
SELECT 48 + + NULLIF ( - COALESCE ( 66, + 63 ), + COUNT ( - 71 ) ) AS col2
----
-18

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2913
SELECT ALL ( + 76 ) DIV + - 10 + 2
----
-5

skipif mysql # not compatible
query I rowsort label-2913
SELECT ALL ( + 76 ) / + - 10 + 2
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-2914
SELECT ALL - 3 * + + MAX( ALL - - 31 ) AS col0
----
-93

skipif mysql # not compatible
query I rowsort label-2914
SELECT ALL - 3 * + + MAX ( ALL - - 31 ) AS col0
----
-93

query I rowsort
SELECT DISTINCT + 48 * - 13 * - 11 AS col2
----
6864

query I rowsort
SELECT 94 * + 84 + + 53
----
7949

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2917
SELECT CAST( NULL AS SIGNED ) * - + COUNT( * ) AS col2, - 28 AS col1
----
NULL
-28

skipif mysql # not compatible
query II rowsort label-2917
SELECT CAST ( NULL AS INTEGER ) * - + COUNT ( * ) AS col2, - 28 AS col1
----
NULL
-28

query I rowsort
SELECT + 82 * - 33 + - COALESCE ( - 27, 98, 98 * 82 ) * 30
----
-1896

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

skipif mysql # not compatible
query I rowsort label-2919
SELECT CAST ( NULL AS INTEGER ) / + 70
----
NULL

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

skipif mysql # not compatible
query I rowsort label-2920
SELECT 73 + + CAST ( NULL AS INTEGER ) + + 47 AS col0
----
NULL

query I rowsort
SELECT 79 * - + 13 AS col0
----
-1027

query I rowsort
SELECT CASE - NULLIF ( - 30, + + 98 ) WHEN 69 / + 1 + 53 THEN 93 ELSE NULL END + 22 AS col0
----
NULL

query I rowsort
SELECT ALL 44 + 83 + 94 * - 8 * + 69 + - 70 * + COALESCE ( - 4 * ( - 62 ), - 58 * 20 )
----
-69121

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2924
SELECT 69 + + - CAST( + 71 AS SIGNED ) + - 78 AS col2
----
-80

skipif mysql # not compatible
query I rowsort label-2924
SELECT 69 + + - CAST ( + 71 AS INTEGER ) + - 78 AS col2
----
-80

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2925
SELECT ALL + 58 + + SUM( + + 46 ) + + COUNT( * ) DIV 5 AS col1
----
104

skipif mysql # not compatible
query I rowsort label-2925
SELECT ALL + 58 + + SUM ( + + 46 ) + + COUNT ( * ) / 5 AS col1
----
104

query I rowsort
SELECT + NULLIF ( - + NULLIF ( + + 23, - - 48 / - 68 ), 14 / - ( 45 * - 25 ) ) AS col0
----
-23

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2928
SELECT - 74 + + - 86 DIV + + 95 col1
----
-74

skipif mysql # not compatible
query I rowsort label-2928
SELECT - 74 + + - 86 / + + 95 col1
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-2929
SELECT - - SUM( - + 95 ) AS col2
----
-95

skipif mysql # not compatible
query I rowsort label-2929
SELECT - - SUM ( - + 95 ) AS col2
----
-95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2930
SELECT CAST( - COUNT( * ) AS SIGNED ) / - - CASE SUM( - 45 ) WHEN + 95 THEN 46 * + 89 WHEN 20 - 17 THEN 75 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2930
SELECT CAST ( - COUNT ( * ) AS INTEGER ) / - - CASE SUM ( - 45 ) WHEN + 95 THEN 46 * + 89 WHEN 20 - 17 THEN 75 END AS col0
----
NULL

query I rowsort
SELECT - 88 + - 9 + - 37 + 96
----
-38

query I rowsort
SELECT 48 + 14 + ( - 88 ) * + 52
----
-4514

query I rowsort
SELECT ALL + - ( 93 ) * + 31 * 75
----
-216225

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

query I rowsort
SELECT + 24 + - + 53 * - + 90
----
4794

query I rowsort
SELECT DISTINCT + ( - 44 ) * 46
----
-2024

onlyif mysql # aggregate syntax: 
query I rowsort label-2937
SELECT ALL COUNT( DISTINCT - 24 ) col0
----
1

skipif mysql # not compatible
query I rowsort label-2937
SELECT ALL COUNT ( DISTINCT - 24 ) col0
----
1

query I rowsort
SELECT DISTINCT + + 46 * + ( - 97 ) AS col0
----
-4462

query I rowsort
SELECT DISTINCT - - 16 col2
----
16

query I rowsort
SELECT ALL - 3 - COALESCE ( + + 39, + 78 * + 12 ) AS col2
----
-42

onlyif mysql # aggregate syntax: 
query II rowsort label-2941
SELECT + 90 * - 88, + ( + - COUNT( * ) ) AS col2
----
-7920
-1

skipif mysql # not compatible
query II rowsort label-2941
SELECT + 90 * - 88, + ( + - COUNT ( * ) ) AS col2
----
-7920
-1

query I rowsort
SELECT ALL + + 34 * - 68 - + 55 + - 17 AS col0
----
-2384

query I rowsort
SELECT - NULLIF ( + + 42, 57 + 53 ) * - 13
----
546

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2946
SELECT - ( + 88 ) DIV + 62 col0
----
-1

skipif mysql # not compatible
query I rowsort label-2946
SELECT - ( + 88 ) / + 62 col0
----
-1

query I rowsort
SELECT - 70 * - 75 * + CASE - 67 WHEN 3 + + 6 * 54 THEN - 90 WHEN 2 THEN - 3 - 73 / - 69 END * + 54 + 44
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2948
SELECT + 40 * - + COUNT( * ) - ( + MAX( DISTINCT + 46 ) ) + 45 DIV + 34 AS col2
----
-85

skipif mysql # not compatible
query I rowsort label-2948
SELECT + 40 * - + COUNT ( * ) - ( + MAX ( DISTINCT + 46 ) ) + 45 / + 34 AS col2
----
-85

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

onlyif mysql # aggregate syntax: 
query III rowsort label-2950
SELECT DISTINCT - 67 AS col1, ( + COUNT( * ) ), + - 19 AS col0
----
-67
1
-19

skipif mysql # not compatible
query III rowsort label-2950
SELECT DISTINCT - 67 AS col1, ( + COUNT ( * ) ), + - 19 AS col0
----
-67
1
-19

query I rowsort
SELECT DISTINCT 40 * - 80 * + 30
----
-96000

onlyif mysql # aggregate syntax: 
query I rowsort label-2952
SELECT DISTINCT 58 * + 82 * COUNT( * ) * - 9 * NULLIF ( - MIN( - 55 ), 28 )
----
-2354220

skipif mysql # not compatible
query I rowsort label-2952
SELECT DISTINCT 58 * + 82 * COUNT ( * ) * - 9 * NULLIF ( - MIN ( - 55 ), 28 )
----
-2354220

query I rowsort
SELECT ALL ( + + 20 ) * - 27 * - 9 AS col1
----
4860

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2955
SELECT 7 * + 60 * 6 + - MAX( - - CAST( 36 AS SIGNED ) ) AS col0
----
2484

skipif mysql # not compatible
query I rowsort label-2955
SELECT 7 * + 60 * 6 + - MAX ( - - CAST ( 36 AS INTEGER ) ) AS col0
----
2484

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-2956
SELECT + 41, 43 - + 88 * - CASE 36 WHEN - 41 THEN NULL WHEN CAST( 37 AS DECIMAL ) THEN + 93 ELSE + NULLIF ( + 32, COUNT( * ) * 34 + COUNT( * ) ) + - 12 * CAST( NULL AS SIGNED ) END + COALESCE ( 71 - + COUNT( * ), CAST( NULL AS SIGNED ) ) / + 7 AS col2
----
41
NULL

skipif mysql # not compatible
query II rowsort label-2956
SELECT + 41, 43 - + 88 * - CASE 36 WHEN - 41 THEN NULL WHEN CAST ( 37 AS REAL ) THEN + 93 ELSE + NULLIF ( + 32, COUNT ( * ) * 34 + COUNT ( * ) ) + - 12 * CAST ( NULL AS INTEGER ) END + COALESCE ( 71 - + COUNT ( * ), CAST ( NULL AS INTEGER ) ) / + 7 AS col2
----
41
NULL

query II rowsort
SELECT 87, 88 AS col0
----
87
88

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

skipif mysql # not compatible
query I rowsort label-2958
SELECT + MIN ( + - 32 )
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-2959
SELECT - CASE - + CASE + 60 WHEN - - 96 THEN + 56 * + COALESCE ( - 24 / COUNT( * ), 11, + COUNT( * ) + - 53 ) + + MIN( - 74 ) * 72 END WHEN - 34 + - 72 THEN NULL WHEN - 63 THEN - 17 * - AVG ( ALL 16 * 87 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2959
SELECT - CASE - + CASE + 60 WHEN - - 96 THEN + 56 * + COALESCE ( - 24 / COUNT ( * ), 11, + COUNT ( * ) + - 53 ) + + MIN ( - 74 ) * 72 END WHEN - 34 + - 72 THEN NULL WHEN - 63 THEN - 17 * - AVG ( ALL 16 * 87 ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2960
SELECT MAX( ALL + 9 ) + 38 AS col0
----
47

skipif mysql # not compatible
query I rowsort label-2960
SELECT MAX ( ALL + 9 ) + 38 AS col0
----
47

query I rowsort
SELECT 63 + + 16 AS col0
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-2962
SELECT ALL 3 + - COUNT( * ) + + + 14 * + 27 * - 18 - + 35 * - 26
----
-5892

skipif mysql # not compatible
query I rowsort label-2962
SELECT ALL 3 + - COUNT ( * ) + + + 14 * + 27 * - 18 - + 35 * - 26
----
-5892

query I rowsort
SELECT DISTINCT - 26 + + ( + 38 ) col2
----
12

query II rowsort
SELECT ALL 63, - 50 AS col2
----
63
-50

query I rowsort
SELECT DISTINCT 56 + 6 - - 45 * - 59 + + 8 * 36
----
-2305

onlyif mysql # aggregate syntax: 
query I rowsort label-2966
SELECT + 67 * - COUNT( * ) * + 86
----
-5762

skipif mysql # not compatible
query I rowsort label-2966
SELECT + 67 * - COUNT ( * ) * + 86
----
-5762

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2967
SELECT - MIN( ALL 37 ) DIV 65
----
0

skipif mysql # not compatible
query I rowsort label-2967
SELECT - MIN ( ALL 37 ) / 65
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2968
SELECT ALL + 48 + - - COUNT( * ) * COUNT( * ) col1, 28 AS col2
----
49
28

skipif mysql # not compatible
query II rowsort label-2968
SELECT ALL + 48 + - - COUNT ( * ) * COUNT ( * ) col1, 28 AS col2
----
49
28

query I rowsort
SELECT + - 68 - + 89
----
-157

query I rowsort
SELECT + 29 * - 47 - + 40
----
-1403

query I rowsort
SELECT + + 93 - + - 26 AS col0
----
119

onlyif mysql # DIV for integer division: 
query II rowsort label-2972
SELECT ALL 8 AS col2, - 69 DIV + ( - 85 ) + + - 78 AS col2
----
8
-78

skipif mysql # not compatible
query II rowsort label-2972
SELECT ALL 8 AS col2, - 69 / + ( - 85 ) + + - 78 AS col2
----
8
-78

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

skipif mysql # not compatible
query I rowsort label-2973
SELECT ALL + CAST ( NULL AS REAL ) - + 44
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2974
SELECT DISTINCT COALESCE ( + 72, - COUNT( * ), + 12 + COUNT( * ) + 72 ) * + 62 AS col0
----
4464

skipif mysql # not compatible
query I rowsort label-2974
SELECT DISTINCT COALESCE ( + 72, - COUNT ( * ), + 12 + COUNT ( * ) + 72 ) * + 62 AS col0
----
4464

onlyif mysql # aggregate syntax: 
query II rowsort label-2975
SELECT 26, - 79 * COUNT( ALL - 35 ) * 49 AS col0
----
26
-3871

skipif mysql # not compatible
query II rowsort label-2975
SELECT 26, - 79 * COUNT ( ALL - 35 ) * 49 AS col0
----
26
-3871

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2977
SELECT COUNT( * ) * COUNT( ALL 15 ) * ( 72 ) * 56 + + 91 * + 90 + 89 * CASE - ( 54 ) WHEN NULLIF ( COUNT( * ), + 90 ) THEN MAX( 36 ) + - 28 WHEN 71 * - 76 THEN + 60 * 87 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2977
SELECT COUNT ( * ) * COUNT ( ALL 15 ) * ( 72 ) * 56 + + 91 * + 90 + 89 * CASE - ( 54 ) WHEN NULLIF ( COUNT ( * ), + 90 ) THEN MAX ( 36 ) + - 28 WHEN 71 * - 76 THEN + 60 * 87 ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT - + 86 * - - 25 AS col0
----
-2150

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2979
SELECT DISTINCT - + CAST( + 19 AS SIGNED ) * 51 DIV - + 2 + - 53
----
431

skipif mysql # not compatible
query I rowsort label-2979
SELECT DISTINCT - + CAST ( + 19 AS INTEGER ) * 51 / - + 2 + - 53
----
431

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

skipif mysql # not compatible
query I rowsort label-2980
SELECT - + CAST ( NULL AS INTEGER ) + 23 + + 56 col0
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2982
SELECT - 29 DIV 88 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2982
SELECT - 29 / 88 AS col1
----
0

query I rowsort
SELECT DISTINCT - 93 * + 65 AS col1
----
-6045

onlyif mysql # aggregate syntax: 
query I rowsort label-2984
SELECT COALESCE ( - - 67, + COUNT( * ) )
----
67

skipif mysql # not compatible
query I rowsort label-2984
SELECT COALESCE ( - - 67, + COUNT ( * ) )
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-2985
SELECT COUNT( * ) * + - 85 + 96 AS col2
----
11

skipif mysql # not compatible
query I rowsort label-2985
SELECT COUNT ( * ) * + - 85 + 96 AS col2
----
11

onlyif mysql # DIV for integer division: 
query II rowsort label-2986
SELECT ALL + 88 * 86 + + 5 DIV 63 col2, - ( - 48 ) AS col0
----
7568
48

skipif mysql # not compatible
query II rowsort label-2986
SELECT ALL + 88 * 86 + + 5 / 63 col2, - ( - 48 ) AS col0
----
7568
48

query I rowsort
SELECT DISTINCT + ( 36 ) col1
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-2988
SELECT COALESCE ( ( + 73 ), + 22 - - SUM( + - 85 ) )
----
73

skipif mysql # not compatible
query I rowsort label-2988
SELECT COALESCE ( ( + 73 ), + 22 - - SUM ( + - 85 ) )
----
73

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2989
SELECT + 36 DIV + + COUNT( DISTINCT - + 93 ) + - 60 + - + 91 AS col1
----
-115

skipif mysql # not compatible
query I rowsort label-2989
SELECT + 36 / + + COUNT ( DISTINCT - + 93 ) + - 60 + - + 91 AS col1
----
-115

onlyif mysql # aggregate syntax: 
query I rowsort label-2990
SELECT COALESCE ( + 7, - 8 * - - 43 - COUNT( * ), - 22 )
----
7

skipif mysql # not compatible
query I rowsort label-2990
SELECT COALESCE ( + 7, - 8 * - - 43 - COUNT ( * ), - 22 )
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-2991
SELECT + 34 + + CASE - 99 WHEN - + 84 * ( 64 ) THEN NULL WHEN CASE WHEN - 10 < ( + 79 ) THEN COUNT( * ) ELSE NULL END + + 65 THEN ( - ( + ( 30 ) ) ) ELSE 6 END
----
40

skipif mysql # not compatible
query I rowsort label-2991
SELECT + 34 + + CASE - 99 WHEN - + 84 * ( 64 ) THEN NULL WHEN CASE WHEN - 10 < ( + 79 ) THEN COUNT ( * ) ELSE NULL END + + 65 THEN ( - ( + ( 30 ) ) ) ELSE 6 END
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-2992
SELECT CASE - + 7 WHEN - COUNT( * ) THEN - 42 WHEN 49 * + 34 + 28 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2992
SELECT CASE - + 7 WHEN - COUNT ( * ) THEN - 42 WHEN 49 * + 34 + 28 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2993
SELECT ALL 61 * + - MAX( DISTINCT 27 ) + - 84 * + + COUNT( * ) * - + 95
----
6333

skipif mysql # not compatible
query I rowsort label-2993
SELECT ALL 61 * + - MAX ( DISTINCT 27 ) + - 84 * + + COUNT ( * ) * - + 95
----
6333

query II rowsort
SELECT + 94 AS col2, 56 AS col1
----
94
56

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

query I rowsort
SELECT - ( 39 ) * + 96 AS col0
----
-3744

onlyif mysql # aggregate syntax: 
query II rowsort label-2997
SELECT DISTINCT + 1 col1, 9 * COUNT( * ) + 21
----
1
30

skipif mysql # not compatible
query II rowsort label-2997
SELECT DISTINCT + 1 col1, 9 * COUNT ( * ) + 21
----
1
30

onlyif mysql # aggregate syntax: 
query II rowsort label-2998
SELECT ALL + NULLIF ( 13, 4 * - COUNT( * ) ), + COUNT( - 87 ) + + 56 AS col0
----
13
57

skipif mysql # not compatible
query II rowsort label-2998
SELECT ALL + NULLIF ( 13, 4 * - COUNT ( * ) ), + COUNT ( - 87 ) + + 56 AS col0
----
13
57

onlyif mysql # aggregate syntax: 
query I rowsort label-2999
SELECT ALL COUNT( * ) * 52 + 18
----
70

skipif mysql # not compatible
query I rowsort label-2999
SELECT ALL COUNT ( * ) * 52 + 18
----
70

query I rowsort
SELECT AVG ( DISTINCT - + CASE + - 11 WHEN + 82 + - 4 THEN - 96 WHEN - 43 * - 16 THEN NULL ELSE NULL END )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3001
SELECT ALL 3 * - 53 * COALESCE ( + - MAX( DISTINCT - 15 ), - COALESCE ( + 53, 24 ) + + 37 ) AS col1
----
-2385

skipif mysql # not compatible
query I rowsort label-3001
SELECT ALL 3 * - 53 * COALESCE ( + - MAX ( DISTINCT - 15 ), - COALESCE ( + 53, 24 ) + + 37 ) AS col1
----
-2385

query I rowsort
SELECT DISTINCT 73 * - 46 * + + NULLIF ( - - 66, - 92 ) * - 61 * + ( - 43 ) + 29 AS col2
----
-581330215

onlyif mysql # aggregate syntax: 
query I rowsort label-3003
SELECT - MIN( DISTINCT COALESCE ( - 37, + ( 89 ), - - 11 * + 72 ) ) AS col0
----
37

skipif mysql # not compatible
query I rowsort label-3003
SELECT - MIN ( DISTINCT COALESCE ( - 37, + ( 89 ), - - 11 * + 72 ) ) AS col0
----
37

query I rowsort
SELECT - ( - 6 )
----
6

query I rowsort
SELECT + 44 * - + 52 AS col1
----
-2288

query II rowsort
SELECT ALL 50 * 33 AS col2, 35 col2
----
1650
35

query II rowsort
SELECT 79, 93 AS col1
----
79
93

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3009
SELECT + - 64 * - - COUNT( * ) * - 27
----
1728

skipif mysql # not compatible
query I rowsort label-3009
SELECT + - 64 * - - COUNT ( * ) * - 27
----
1728

onlyif mysql # aggregate syntax: 
query I rowsort label-3010
SELECT ALL - + CASE + + 80 WHEN - 75 THEN 66 END * - - 99 * + 51 * + 79 + 60 / + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3010
SELECT ALL - + CASE + + 80 WHEN - 75 THEN 66 END * - - 99 * + 51 * + 79 + 60 / + COUNT ( * ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3011
SELECT + NULLIF ( + COUNT( * ), COUNT( * ) ) + + 19
----
NULL

skipif mysql # not compatible
query I rowsort label-3011
SELECT + NULLIF ( + COUNT ( * ), COUNT ( * ) ) + + 19
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3012
SELECT ALL 94 * - COUNT( * ) - COUNT( DISTINCT + 1 ) AS col2
----
-95

skipif mysql # not compatible
query I rowsort label-3012
SELECT ALL 94 * - COUNT ( * ) - COUNT ( DISTINCT + 1 ) AS col2
----
-95

query I rowsort
SELECT ALL - - 46 * + 55 AS col1
----
2530

onlyif mysql # aggregate syntax: 
query I rowsort label-3014
SELECT + - ( - 99 ) + + COUNT( * ) AS col2
----
100

skipif mysql # not compatible
query I rowsort label-3014
SELECT + - ( - 99 ) + + COUNT ( * ) AS col2
----
100

onlyif mysql # DIV for integer division: 
query I rowsort label-3015
SELECT DISTINCT - 76 DIV + 96
----
0

skipif mysql # not compatible
query I rowsort label-3015
SELECT DISTINCT - 76 / + 96
----
0

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3017
SELECT ALL CAST( - 43 AS SIGNED ) * + 97 + + + 96 + 87 + + + 39 AS col0
----
-3949

skipif mysql # not compatible
query I rowsort label-3017
SELECT ALL CAST ( - 43 AS INTEGER ) * + 97 + + + 96 + 87 + + + 39 AS col0
----
-3949

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3018
SELECT + + 37 * - + 3 * + CAST( - - COUNT( * ) AS SIGNED ), 18 * - + 8 * 63 + - ( - 68 + + 68 ) AS col1
----
-111
-9072

skipif mysql # not compatible
query II rowsort label-3018
SELECT + + 37 * - + 3 * + CAST ( - - COUNT ( * ) AS INTEGER ), 18 * - + 8 * 63 + - ( - 68 + + 68 ) AS col1
----
-111
-9072

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3019
SELECT - - CAST( NULL AS SIGNED ) + - 76 * + + 92 AS col0
----
NULL

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

query II rowsort
SELECT 96, + 86 AS col0
----
96
86

onlyif mysql # aggregate syntax: 
query I rowsort label-3021
SELECT ALL + ( ( - - COUNT( * ) ) ) * 26 * 74 AS col2
----
1924

skipif mysql # not compatible
query I rowsort label-3021
SELECT ALL + ( ( - - COUNT ( * ) ) ) * 26 * 74 AS col2
----
1924

query I rowsort
SELECT DISTINCT + CASE WHEN NULL NOT BETWEEN ( 37 ) AND ( 64 + - - 2 * - 32 * 1 ) THEN + 69 * - 71 + + 91 ELSE - 87 * 71 - 92 END col1
----
-6269

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3024
SELECT ALL + - NULLIF ( 10, + 35 / - CAST( NULL AS SIGNED ) - - + 50 ) AS col1
----
-10

skipif mysql # not compatible
query I rowsort label-3024
SELECT ALL + - NULLIF ( 10, + 35 / - CAST ( NULL AS INTEGER ) - - + 50 ) AS col1
----
-10

query I rowsort
SELECT + 79 * + 81
----
6399

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3027
SELECT + 52 * - COUNT( * ) * - 48 * COUNT( * )
----
2496

skipif mysql # not compatible
query I rowsort label-3027
SELECT + 52 * - COUNT ( * ) * - 48 * COUNT ( * )
----
2496

onlyif mysql # aggregate syntax: 
query I rowsort label-3028
SELECT + COUNT( * ) - - CASE CASE 16 WHEN 30 / 13 THEN - + 19 + - 82 WHEN + 71 * + 85 THEN MIN( 35 ) END WHEN 77 * 4 + 80 * COUNT( * ) THEN + 35 + + ( 35 ) * 67 WHEN + 27 THEN COUNT( * ) + - 92 ELSE NULL END / - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3028
SELECT + COUNT ( * ) - - CASE CASE 16 WHEN 30 / 13 THEN - + 19 + - 82 WHEN + 71 * + 85 THEN MIN ( 35 ) END WHEN 77 * 4 + 80 * COUNT ( * ) THEN + 35 + + ( 35 ) * 67 WHEN + 27 THEN COUNT ( * ) + - 92 ELSE NULL END / - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3029
SELECT ALL 88 DIV COUNT( DISTINCT 45 ) DIV + - 42 + 73 col1
----
71

skipif mysql # not compatible
query I rowsort label-3029
SELECT ALL 88 / COUNT ( DISTINCT 45 ) / + - 42 + 73 col1
----
71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3030
SELECT - 22 - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3030
SELECT - 22 - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3031
SELECT DISTINCT - COUNT( 48 ), + 40 - + 3 * - ( - + 94 ) * + COUNT( * ) + - 60 AS col0
----
-1
-302

skipif mysql # not compatible
query II rowsort label-3031
SELECT DISTINCT - COUNT ( 48 ), + 40 - + 3 * - ( - + 94 ) * + COUNT ( * ) + - 60 AS col0
----
-1
-302

onlyif mysql # aggregate syntax: 
query I rowsort label-3032
SELECT ALL - NULLIF ( + 58, + - 23 * 49 + - - SUM( 78 ) ) AS col0
----
-58

skipif mysql # not compatible
query I rowsort label-3032
SELECT ALL - NULLIF ( + 58, + - 23 * 49 + - - SUM ( 78 ) ) AS col0
----
-58

query II rowsort
SELECT ALL - 45 + + 29 col0, 66 col0
----
-16
66

query I rowsort
SELECT 79 * + 64 AS col1
----
5056

query I rowsort
SELECT ALL - CASE - + 69 WHEN + 25 * + 63 THEN 97 + 63 - 53 * 17 ELSE - 32 END AS col2
----
32

query I rowsort
SELECT ALL 62 - + 7 AS col2
----
55

query I rowsort
SELECT 88 - - ( + 85 ) AS col0
----
173

query I rowsort
SELECT 94 + + 48
----
142

onlyif mysql # DIV for integer division: 
query I rowsort label-3039
SELECT 98 DIV 3 AS col1
----
32

skipif mysql # not compatible
query I rowsort label-3039
SELECT 98 / 3 AS col1
----
32

query I rowsort
SELECT 78 * + 46
----
3588

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3041
SELECT ALL + + COUNT( * ) DIV + 33 + - + 98 AS col1, - 72
----
-98
-72

skipif mysql # not compatible
query II rowsort label-3041
SELECT ALL + + COUNT ( * ) / + 33 + - + 98 AS col1, - 72
----
-98
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-3042
SELECT 3 + + 99 + + - COUNT( 42 ) + - 70
----
31

skipif mysql # not compatible
query I rowsort label-3042
SELECT 3 + + 99 + + - COUNT ( 42 ) + - 70
----
31

query I rowsort
SELECT - 25 + - + 6
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-3044
SELECT DISTINCT SUM( ALL - - 61 ) * + 97 + + 86
----
6003

skipif mysql # not compatible
query I rowsort label-3044
SELECT DISTINCT SUM ( ALL - - 61 ) * + 97 + + 86
----
6003

onlyif mysql # aggregate syntax: 
query I rowsort label-3045
SELECT - - CASE + + 15 WHEN - - COUNT( * ) THEN MIN( ALL - 41 ) ELSE - - 91 END
----
91

skipif mysql # not compatible
query I rowsort label-3045
SELECT - - CASE + + 15 WHEN - - COUNT ( * ) THEN MIN ( ALL - 41 ) ELSE - - 91 END
----
91

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

skipif mysql # not compatible
query I rowsort label-3046
SELECT DISTINCT ( + + COALESCE ( + 88, - COUNT ( * ) ) )
----
88

query I rowsort
SELECT ALL - - 27 * 81 AS col0
----
2187

onlyif mysql # DIV for integer division: 
query I rowsort label-3048
SELECT + 0 * + 73 DIV + 89
----
0

skipif mysql # not compatible
query I rowsort label-3048
SELECT + 0 * + 73 / + 89
----
0

query I rowsort
SELECT 36 - COALESCE ( - 69, - 99 ) + + 15
----
120

onlyif mysql # aggregate syntax: 
query II rowsort label-3050
SELECT 95 * + 0 + 78 col2, - COUNT( * ) * - ( 45 ) col1
----
78
45

skipif mysql # not compatible
query II rowsort label-3050
SELECT 95 * + 0 + 78 col2, - COUNT ( * ) * - ( 45 ) col1
----
78
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3051
SELECT 82 - - CASE MIN( + ( - 20 ) ) WHEN + 63 + CAST( 21 AS SIGNED ) THEN 60 * COALESCE ( CAST( NULL AS SIGNED ), COUNT( * ) ) + + 94 END + 21 * 40 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3051
SELECT 82 - - CASE MIN ( + ( - 20 ) ) WHEN + 63 + CAST ( 21 AS INTEGER ) THEN 60 * COALESCE ( CAST ( NULL AS INTEGER ), COUNT ( * ) ) + + 94 END + 21 * 40 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3052
SELECT CAST( ( - NULLIF ( + + 48, + + 47 + + COALESCE ( - 29, - 36 * + 60 ) ) ) AS SIGNED )
----
-48

skipif mysql # not compatible
query I rowsort label-3052
SELECT CAST ( ( - NULLIF ( + + 48, + + 47 + + COALESCE ( - 29, - 36 * + 60 ) ) ) AS INTEGER )
----
-48

query I rowsort
SELECT DISTINCT + + 85 + + - 78 AS col2
----
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3054
SELECT ALL 94 / CAST( - - CASE + 22 WHEN + - ( + ( - CAST( - 53 AS SIGNED ) ) ) THEN NULLIF ( CASE 43 WHEN + 34 * - 12 + - 59 / + 50 THEN - NULLIF ( + 45, + 94 ) * 20 + + ( 97 + 48 * 3 ) WHEN COUNT( * ) THEN NULL ELSE NULL END, - 24 ) WHEN 10 * + 12 THEN + CAST( NULL AS SIGNED ) WHEN 48 THEN NULL ELSE NULL END AS SIGNED ) * 98 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3054
SELECT ALL 94 / CAST ( - - CASE + 22 WHEN + - ( + ( - CAST ( - 53 AS INTEGER ) ) ) THEN NULLIF ( CASE 43 WHEN + 34 * - 12 + - 59 / + 50 THEN - NULLIF ( + 45, + 94 ) * 20 + + ( 97 + 48 * 3 ) WHEN COUNT ( * ) THEN NULL ELSE NULL END, - 24 ) WHEN 10 * + 12 THEN + CAST ( NULL AS INTEGER ) WHEN 48 THEN NULL ELSE NULL END AS INTEGER ) * 98 AS col0
----
NULL

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

skipif mysql # not compatible
query I rowsort label-3055
SELECT 75 / - COUNT ( * )
----
-75

query I rowsort
SELECT ALL + 20 + + 57
----
77

query I rowsort
SELECT ALL - 39 + 11
----
-28

query II rowsort
SELECT 51 - - 86 AS col2, 42
----
137
42

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3059
SELECT ALL ( + COUNT( - + 85 ) ) DIV 26
----
0

skipif mysql # not compatible
query I rowsort label-3059
SELECT ALL ( + COUNT ( - + 85 ) ) / 26
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3061
SELECT COALESCE ( 51, + 24 ) * + SUM( 12 ) AS col1
----
612

skipif mysql # not compatible
query I rowsort label-3061
SELECT COALESCE ( 51, + 24 ) * + SUM ( 12 ) AS col1
----
612

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3062
SELECT DISTINCT 81 * + CAST( NULL AS SIGNED ) * CASE - - 94 WHEN + + 23 * + 52 THEN NULL WHEN 56 * 24 * + CAST( - COUNT( * ) AS SIGNED ) + MAX( COALESCE ( 83, - 73, 77 ) ) - 60 THEN + 60 * MIN( DISTINCT CAST( NULL AS SIGNED ) ) WHEN - 41 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3062
SELECT DISTINCT 81 * + CAST ( NULL AS INTEGER ) * CASE - - 94 WHEN + + 23 * + 52 THEN NULL WHEN 56 * 24 * + CAST ( - COUNT ( * ) AS INTEGER ) + MAX ( COALESCE ( 83, - 73, 77 ) ) - 60 THEN + 60 * MIN ( DISTINCT CAST ( NULL AS INTEGER ) ) WHEN - 41 THEN NULL END
----
NULL

query I rowsort
SELECT 39 * 99 * 83 + - 7 AS col2
----
320456

query II rowsort
SELECT 3, 99 + - + 8 AS col2
----
3
91

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3065
SELECT + 79 AS col0, - 44 + - COUNT( * ) DIV 55 AS col2
----
79
-44

skipif mysql # not compatible
query II rowsort label-3065
SELECT + 79 AS col0, - 44 + - COUNT ( * ) / 55 AS col2
----
79
-44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3066
SELECT + 28 DIV + 51 + + 46 * - COUNT( ALL - 28 ) + + COUNT( ALL - 18 )
----
-45

skipif mysql # not compatible
query I rowsort label-3066
SELECT + 28 / + 51 + + 46 * - COUNT ( ALL - 28 ) + + COUNT ( ALL - 18 )
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-3067
SELECT DISTINCT COUNT( - + 3 ) * - + 30 + + 51 * + ( 73 ) * + - ( - COUNT( * ) ) - + MIN( ALL + 13 ) * ( 72 * - ( 47 ) ) AS col1
----
47685

skipif mysql # not compatible
query I rowsort label-3067
SELECT DISTINCT COUNT ( - + 3 ) * - + 30 + + 51 * + ( 73 ) * + - ( - COUNT ( * ) ) - + MIN ( ALL + 13 ) * ( 72 * - ( 47 ) ) AS col1
----
47685

onlyif mysql # aggregate syntax: 
query I rowsort label-3068
SELECT + COUNT( * ) * + CASE + + 91 WHEN + 19 * 78 THEN NULL ELSE NULLIF ( + 67, 61 * 51 ) END + 29 AS col1
----
96

skipif mysql # not compatible
query I rowsort label-3068
SELECT + COUNT ( * ) * + CASE + + 91 WHEN + 19 * 78 THEN NULL ELSE NULLIF ( + 67, 61 * 51 ) END + 29 AS col1
----
96

query I rowsort
SELECT ALL 80 - - 57 AS col2
----
137

query I rowsort
SELECT DISTINCT 39 - 97
----
-58

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

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

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

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3076
SELECT DISTINCT 73 DIV - 92 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3076
SELECT DISTINCT 73 / - 92 AS col1
----
0

query I rowsort
SELECT 48 * 92 AS col2
----
4416

query II rowsort
SELECT ALL - + 92 AS col1, 67 AS col2
----
-92
67

query I rowsort
SELECT DISTINCT + - 37 * 39 - - ( + COALESCE ( 31, - 88 ) ) AS col1
----
-1412

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3081
SELECT 71 + + 95 * - + 6 - 35 * 64 * + COALESCE ( + NULLIF ( + 17, COUNT( + ( + 47 ) ) ), COUNT( * ) ) AS col0
----
-38579

skipif mysql # not compatible
query I rowsort label-3081
SELECT 71 + + 95 * - + 6 - 35 * 64 * + COALESCE ( + NULLIF ( + 17, COUNT ( + ( + 47 ) ) ), COUNT ( * ) ) AS col0
----
-38579

onlyif mysql # aggregate syntax: 
query III rowsort label-3082
SELECT + 7 + - - 83 * - - 94 * + + 2, - COUNT( * ) * + - 10 AS col0, 21 col2
----
15611
10
21

skipif mysql # not compatible
query III rowsort label-3082
SELECT + 7 + - - 83 * - - 94 * + + 2, - COUNT ( * ) * + - 10 AS col0, 21 col2
----
15611
10
21

query I rowsort
SELECT - 25 - - 56 AS col1
----
31

query I rowsort
SELECT DISTINCT + 82 + - - 74 * 31 + + 3 * + 78 * 3 * - 82 AS col1
----
-55188

query I rowsort
SELECT ALL - - 83 + - + 60 * + 61 + - 18 + + + 35
----
-3560

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

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

query I rowsort
SELECT - 57 + + 66 + - 76 * + 17
----
-1283

onlyif mysql # DIV for integer division: 
query II rowsort label-3088
SELECT 75, 76 DIV 1 AS col2
----
75
76

skipif mysql # not compatible
query II rowsort label-3088
SELECT 75, 76 / 1 AS col2
----
75
76

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3089
SELECT ALL COALESCE ( - - 95, + 17 ) + 44 AS col2, CAST( + 28 AS SIGNED )
----
139
28

skipif mysql # not compatible
query II rowsort label-3089
SELECT ALL COALESCE ( - - 95, + 17 ) + 44 AS col2, CAST ( + 28 AS INTEGER )
----
139
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3090
SELECT 20 + + 13 - + 77 + - + CASE - 52 WHEN + - 21 + + NULLIF ( + 72, 0 ) / - 15 THEN NULL WHEN + 75 + - ( COUNT( * ) ) THEN 27 * 97 ELSE 73 END + - CAST( 4 AS SIGNED ) * - 76
----
187

skipif mysql # not compatible
query I rowsort label-3090
SELECT 20 + + 13 - + 77 + - + CASE - 52 WHEN + - 21 + + NULLIF ( + 72, 0 ) / - 15 THEN NULL WHEN + 75 + - ( COUNT ( * ) ) THEN 27 * 97 ELSE 73 END + - CAST ( 4 AS INTEGER ) * - 76
----
187

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3091
SELECT - CASE - - 50 WHEN + 65 + + + NULLIF ( + 7, 39 + COUNT( * ) ) * + AVG ( DISTINCT 81 ) THEN COUNT( DISTINCT + 34 ) WHEN MAX( + 82 ) - 75 THEN 51 * CAST( NULL AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-3091
SELECT - CASE - - 50 WHEN + 65 + + + NULLIF ( + 7, 39 + COUNT ( * ) ) * + AVG ( DISTINCT 81 ) THEN COUNT ( DISTINCT + 34 ) WHEN MAX ( + 82 ) - 75 THEN 51 * CAST ( NULL AS INTEGER ) END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3092
SELECT CASE 45 WHEN + 60 THEN - 9 ELSE - ( - CAST( - 45 AS SIGNED ) ) END + + + COUNT( * ) AS col2
----
-44

skipif mysql # not compatible
query I rowsort label-3092
SELECT CASE 45 WHEN + 60 THEN - 9 ELSE - ( - CAST ( - 45 AS INTEGER ) ) END + + + COUNT ( * ) AS col2
----
-44

query I rowsort
SELECT 44 * 3
----
132

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3094
SELECT DISTINCT COALESCE ( 91, - CASE + 48 WHEN + + 19 / - - CAST( - - COUNT( * ) AS SIGNED ) THEN + - CASE - 19 WHEN + ( 87 ) THEN NULL WHEN - 11 + + 75 THEN 49 END WHEN - CAST( + ( - 80 ) AS SIGNED ) THEN NULL END + - 78, 98 * 7 )
----
91

skipif mysql # not compatible
query I rowsort label-3094
SELECT DISTINCT COALESCE ( 91, - CASE + 48 WHEN + + 19 / - - CAST ( - - COUNT ( * ) AS INTEGER ) THEN + - CASE - 19 WHEN + ( 87 ) THEN NULL WHEN - 11 + + 75 THEN 49 END WHEN - CAST ( + ( - 80 ) AS INTEGER ) THEN NULL END + - 78, 98 * 7 )
----
91

query I rowsort
SELECT ALL + 44 - 7 AS col2
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-3096
SELECT + ( - - 1 ) * COALESCE ( - 23, + + 16, - - 83 * - 9 * + 22 + - 40 + MIN( - 93 ) )
----
-23

skipif mysql # not compatible
query I rowsort label-3096
SELECT + ( - - 1 ) * COALESCE ( - 23, + + 16, - - 83 * - 9 * + 22 + - 40 + MIN ( - 93 ) )
----
-23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3097
SELECT + CAST( 9 AS SIGNED ) * + 80 - COUNT( * ) AS col2, + 10
----
719
10

skipif mysql # not compatible
query II rowsort label-3097
SELECT + CAST ( 9 AS INTEGER ) * + 80 - COUNT ( * ) AS col2, + 10
----
719
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3098
SELECT + CASE - + 62 WHEN - ( - 30 ) THEN + COUNT( + 79 ) WHEN - 78 THEN NULL END * - ( + 31 ) + + CAST( NULL AS SIGNED ) - - 83 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3098
SELECT + CASE - + 62 WHEN - ( - 30 ) THEN + COUNT ( + 79 ) WHEN - 78 THEN NULL END * - ( + 31 ) + + CAST ( NULL AS INTEGER ) - - 83 AS col0
----
NULL

query I rowsort
SELECT CASE - 15 WHEN - - 4 THEN NULL ELSE + 69 END
----
69

query I rowsort
SELECT ALL 27 * - 30
----
-810

query I rowsort
SELECT + 33 - + + 24 AS col2
----
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3102
SELECT + 38 DIV 80 AS col2, + COUNT( * ) * 22 * - - COUNT( * )
----
0
22

skipif mysql # not compatible
query II rowsort label-3102
SELECT + 38 / 80 AS col2, + COUNT ( * ) * 22 * - - COUNT ( * )
----
0
22

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

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

query I rowsort
SELECT DISTINCT 32 * 49 col1
----
1568

onlyif mysql # aggregate syntax: 
query I rowsort label-3105
SELECT + NULLIF ( 56, + COALESCE ( 86, + - 15 / 90 + - COUNT( * ) ) + MAX( ALL - - 80 ) ) AS col0
----
56

skipif mysql # not compatible
query I rowsort label-3105
SELECT + NULLIF ( 56, + COALESCE ( 86, + - 15 / 90 + - COUNT ( * ) ) + MAX ( ALL - - 80 ) ) AS col0
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-3106
SELECT DISTINCT + - MAX( DISTINCT 5 ) AS col0
----
-5

skipif mysql # not compatible
query I rowsort label-3106
SELECT DISTINCT + - MAX ( DISTINCT 5 ) AS col0
----
-5

query II rowsort
SELECT + 30 - + + 58 AS col0, 93 AS col1
----
-28
93

onlyif mysql # aggregate syntax: 
query II rowsort label-3108
SELECT - + NULLIF ( + - 1, - COUNT( * ) ) * + 91 AS col2, ( + - 0 ) col2
----
NULL
0

skipif mysql # not compatible
query II rowsort label-3108
SELECT - + NULLIF ( + - 1, - COUNT ( * ) ) * + 91 AS col2, ( + - 0 ) col2
----
NULL
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3109
SELECT ALL - COUNT( * ) * + 28 + + CAST( - CAST( 20 AS DECIMAL ) AS SIGNED ) AS col2
----
-48

skipif mysql # not compatible
query I rowsort label-3109
SELECT ALL - COUNT ( * ) * + 28 + + CAST ( - CAST ( 20 AS REAL ) AS INTEGER ) AS col2
----
-48

query I rowsort
SELECT DISTINCT + 97 * + 63 + + 53
----
6164

query I rowsort
SELECT DISTINCT + NULLIF ( 22, - 15 / - - NULLIF ( + 65, + 64 ) + + AVG ( 8 ) * - - 87 + 42 ) + 91 * 27 AS col2
----
2479

onlyif mysql # aggregate syntax: 
query I rowsort label-3112
SELECT ALL + - MAX( + + CASE 8 WHEN + 55 THEN NULL WHEN + ( - + 57 ) * 77 THEN + 22 ELSE NULL END ) * + + 5
----
NULL

skipif mysql # not compatible
query I rowsort label-3112
SELECT ALL + - MAX ( + + CASE 8 WHEN + 55 THEN NULL WHEN + ( - + 57 ) * 77 THEN + 22 ELSE NULL END ) * + + 5
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3113
SELECT + - 58 DIV + ( + - CASE + ( + 29 ) WHEN 91 THEN NULL ELSE 99 END )
----
0

skipif mysql # not compatible
query I rowsort label-3113
SELECT + - 58 / + ( + - CASE + ( + 29 ) WHEN 91 THEN NULL ELSE 99 END )
----
0

query II rowsort
SELECT ALL 88 + + 31, - ( + 82 ) AS col0
----
119
-82

query I rowsort
SELECT ALL - 94 + + 76 + ( - - 57 ) * - - 18 * - 9
----
-9252

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3116
SELECT - - NULLIF ( - NULLIF ( + 77, 85 + - - CAST( - + 36 AS SIGNED ) * 88 + - COUNT( * ) ), - - COALESCE ( - 96, - 48 * - 92 ) )
----
-77

skipif mysql # not compatible
query I rowsort label-3116
SELECT - - NULLIF ( - NULLIF ( + 77, 85 + - - CAST ( - + 36 AS INTEGER ) * 88 + - COUNT ( * ) ), - - COALESCE ( - 96, - 48 * - 92 ) )
----
-77

query I rowsort
SELECT ALL + - 84 + 81 + + 20 AS col1
----
17

query I rowsort
SELECT ALL - 3 * + 11 AS col1
----
-33

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3119
SELECT + 85 + + COUNT( * ) + 92 * 44, COUNT( * ) * + COUNT( * ) * - MIN( - 68 ) - - 54 DIV 66 AS col2
----
4134
68

skipif mysql # not compatible
query II rowsort label-3119
SELECT + 85 + + COUNT ( * ) + 92 * 44, COUNT ( * ) * + COUNT ( * ) * - MIN ( - 68 ) - - 54 / 66 AS col2
----
4134
68

onlyif mysql # aggregate syntax: 
query I rowsort label-3120
SELECT - COUNT( DISTINCT - 44 ) * - CASE - ( 55 ) WHEN + 93 * - 1 THEN COUNT( * ) WHEN - + 41 THEN - 14 ELSE + 5 * COUNT( * ) END AS col2
----
5

skipif mysql # not compatible
query I rowsort label-3120
SELECT - COUNT ( DISTINCT - 44 ) * - CASE - ( 55 ) WHEN + 93 * - 1 THEN COUNT ( * ) WHEN - + 41 THEN - 14 ELSE + 5 * COUNT ( * ) END AS col2
----
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3121
SELECT ALL + + 55 + 5 + + + COUNT( * ) + - CAST( - + 5 AS SIGNED )
----
66

skipif mysql # not compatible
query I rowsort label-3121
SELECT ALL + + 55 + 5 + + + COUNT ( * ) + - CAST ( - + 5 AS INTEGER )
----
66

query II rowsort
SELECT - + 31 - - 73 AS col2, + 24 AS col2
----
42
24

onlyif mysql # DIV for integer division: 
query I rowsort label-3123
SELECT DISTINCT - 3 DIV 51 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3123
SELECT DISTINCT - 3 / 51 AS col2
----
0

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-3126
SELECT ALL - 12 DIV + CASE + 52 WHEN + + 30 THEN NULL WHEN + 29 + 29 + + CAST( NULL AS DECIMAL ) * - MIN( ALL 35 ) THEN NULL ELSE + 34 END AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3126
SELECT ALL - 12 / + CASE + 52 WHEN + + 30 THEN NULL WHEN + 29 + 29 + + CAST ( NULL AS REAL ) * - MIN ( ALL 35 ) THEN NULL ELSE + 34 END AS col0
----
0

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

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

query I rowsort
SELECT - ( + 80 ) - + 45 + - + 17 AS col2
----
-142

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3129
SELECT DISTINCT CASE + - 46 WHEN SUM( + 52 ) THEN + + MIN( - 16 ) WHEN + AVG ( DISTINCT 31 ) * 96 * + CAST( COUNT( * ) AS SIGNED ) THEN COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3129
SELECT DISTINCT CASE + - 46 WHEN SUM ( + 52 ) THEN + + MIN ( - 16 ) WHEN + AVG ( DISTINCT 31 ) * 96 * + CAST ( COUNT ( * ) AS INTEGER ) THEN COUNT ( * ) ELSE NULL END
----
NULL

query I rowsort
SELECT ALL ( + + 95 ) AS col0
----
95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3131
SELECT - 63 + - ( - CASE - - 72 WHEN ( - 87 ) THEN NULL WHEN + - 75 + + CAST( - 29 AS SIGNED ) + - - 63 - - 87 * - 58 THEN + 35 / + 15 + 94 ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-3131
SELECT - 63 + - ( - CASE - - 72 WHEN ( - 87 ) THEN NULL WHEN + - 75 + + CAST ( - 29 AS INTEGER ) + - - 63 - - 87 * - 58 THEN + 35 / + 15 + 94 ELSE NULL END )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3132
SELECT - COALESCE ( - COALESCE ( - 79, 55 ), + CASE - 22 WHEN 79 + 0 THEN NULL WHEN + - CAST( + - 6 AS SIGNED ) - - COUNT( * ) * 21 THEN NULL WHEN + 6 THEN 2 END, 8 ) + + SUM( ALL 68 ) * + 26
----
1689

skipif mysql # not compatible
query I rowsort label-3132
SELECT - COALESCE ( - COALESCE ( - 79, 55 ), + CASE - 22 WHEN 79 + 0 THEN NULL WHEN + - CAST ( + - 6 AS INTEGER ) - - COUNT ( * ) * 21 THEN NULL WHEN + 6 THEN 2 END, 8 ) + + SUM ( ALL 68 ) * + 26
----
1689

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

query I rowsort
SELECT - ( + 48 ) * - 56 * - 61 * - 69
----
11313792

query I rowsort
SELECT + 63 * NULLIF ( - - 60, 54 + + 60 )
----
3780

query I rowsort
SELECT 14 * - + 8 * - + 94 + - 92 AS col2
----
10436

query I rowsort
SELECT + 97 * - 45 AS col0
----
-4365

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3138
SELECT 50 DIV + 44 + - ( - + 2 ) * + - 67, + CAST( 78 AS SIGNED ) DIV - COUNT( DISTINCT + 9 ) + + 15 AS col1
----
-133
-63

skipif mysql # not compatible
query II rowsort label-3138
SELECT 50 / + 44 + - ( - + 2 ) * + - 67, + CAST ( 78 AS INTEGER ) / - COUNT ( DISTINCT + 9 ) + + 15 AS col1
----
-133
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-3139
SELECT - 27 * + MAX( ALL + ( - 26 ) )
----
702

skipif mysql # not compatible
query I rowsort label-3139
SELECT - 27 * + MAX ( ALL + ( - 26 ) )
----
702

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3140
SELECT ALL 73 / - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-3140
SELECT ALL 73 / - CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT - - 18 * + - 5 + 88
----
-2

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3144
SELECT DISTINCT + - CAST( NULL AS SIGNED ) * 99 + - 62 * + COALESCE ( + 48, SUM( + + 13 ) * - - 43 + - 19 + + - 43 ) * MIN( CASE 11 WHEN 22 THEN NULL WHEN 30 + 2 * 30 THEN + 55 END - + 48 * - ( 76 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3144
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) * 99 + - 62 * + COALESCE ( + 48, SUM ( + + 13 ) * - - 43 + - 19 + + - 43 ) * MIN ( CASE 11 WHEN 22 THEN NULL WHEN 30 + 2 * 30 THEN + 55 END - + 48 * - ( 76 ) )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3145
SELECT + - 48 DIV - 93
----
0

skipif mysql # not compatible
query I rowsort label-3145
SELECT + - 48 / - 93
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3146
SELECT + COUNT( * ) + ( + 23 ) * + 78 AS col0
----
1795

skipif mysql # not compatible
query I rowsort label-3146
SELECT + COUNT ( * ) + ( + 23 ) * + 78 AS col0
----
1795

onlyif mysql # aggregate syntax: 
query I rowsort label-3147
SELECT + MIN( DISTINCT 43 ) AS col0
----
43

skipif mysql # not compatible
query I rowsort label-3147
SELECT + MIN ( DISTINCT 43 ) AS col0
----
43

query I rowsort
SELECT - + ( - 83 ) * - 9 + + 69 col1
----
-678

onlyif mysql # DIV for integer division: 
query I rowsort label-3149
SELECT - 12 * 96 DIV 65 + + NULLIF ( - 47, 23 ) + 84 AS col0
----
20

skipif mysql # not compatible
query I rowsort label-3149
SELECT - 12 * 96 / 65 + + NULLIF ( - 47, 23 ) + 84 AS col0
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-3150
SELECT + + 29 * 70 * + + 44 + + 61 - - MAX( - 39 ) * - 41 col2
----
90980

skipif mysql # not compatible
query I rowsort label-3150
SELECT + + 29 * 70 * + + 44 + + 61 - - MAX ( - 39 ) * - 41 col2
----
90980

query I rowsort
SELECT + + 21 + 2 AS col0
----
23

query II rowsort
SELECT 61, - 12 AS col1
----
61
-12

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3153
SELECT + - 46 + - COUNT( - 49 ), - 59 + 52 DIV 11 * 60 AS col0
----
-47
181

skipif mysql # not compatible
query II rowsort label-3153
SELECT + - 46 + - COUNT ( - 49 ), - 59 + 52 / 11 * 60 AS col0
----
-47
181

query I rowsort
SELECT + 5 + + - 96 - + + 59 + 71 * - 38 + + 73 AS col1
----
-2775

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3155
SELECT + 10 * + 59 * + - 67 * - COUNT( * ) + + 61 DIV 58
----
39531

skipif mysql # not compatible
query I rowsort label-3155
SELECT + 10 * + 59 * + - 67 * - COUNT ( * ) + + 61 / 58
----
39531

onlyif mysql # DIV for integer division: 
query I rowsort label-3156
SELECT ALL 89 - 70 + ( - 38 ) + - 34 DIV 47 * - + 80 + + 1 AS col2
----
-18

skipif mysql # not compatible
query I rowsort label-3156
SELECT ALL 89 - 70 + ( - 38 ) + - 34 / 47 * - + 80 + + 1 AS col2
----
-18

query I rowsort
SELECT ALL + 44 - - 71 AS col2
----
115

onlyif mysql # aggregate syntax: 
query I rowsort label-3158
SELECT 72 * + + 65 * NULLIF ( - - 19, - - COUNT( * ) * 75 ) AS col1
----
88920

skipif mysql # not compatible
query I rowsort label-3158
SELECT 72 * + + 65 * NULLIF ( - - 19, - - COUNT ( * ) * 75 ) AS col1
----
88920

onlyif mysql # aggregate syntax: 
query I rowsort label-3159
SELECT 62 * - SUM( ALL - 92 ) * - 61 + 12 col1
----
-347932

skipif mysql # not compatible
query I rowsort label-3159
SELECT 62 * - SUM ( ALL - 92 ) * - 61 + 12 col1
----
-347932

query I rowsort
SELECT 98 + + 55 - - 49
----
202

onlyif mysql # aggregate syntax: 
query III rowsort label-3161
SELECT ALL 34, COUNT( * ) AS col0, 79 + - 91 * - 3 * - 86 + + - 96 - 72 + - 74 * - 19 AS col0
----
34
1
-22161

skipif mysql # not compatible
query III rowsort label-3161
SELECT ALL 34, COUNT ( * ) AS col0, 79 + - 91 * - 3 * - 86 + + - 96 - 72 + - 74 * - 19 AS col0
----
34
1
-22161

query I rowsort
SELECT 7 + - 30 + + - 81 AS col1
----
-104

query I rowsort
SELECT 88 * 58
----
5104

onlyif mysql # aggregate syntax: 
query I rowsort label-3164
SELECT DISTINCT - 37 + - 66 + + + 23 * MAX( DISTINCT + 35 ) * - 8
----
-6543

skipif mysql # not compatible
query I rowsort label-3164
SELECT DISTINCT - 37 + - 66 + + + 23 * MAX ( DISTINCT + 35 ) * - 8
----
-6543

onlyif mysql # DIV for integer division: 
query I rowsort label-3165
SELECT DISTINCT + 64 DIV + + 82 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3165
SELECT DISTINCT + 64 / + + 82 AS col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3166
SELECT 30 AS col2, + NULLIF ( - COUNT( * ), 93 )
----
30
-1

skipif mysql # not compatible
query II rowsort label-3166
SELECT 30 AS col2, + NULLIF ( - COUNT ( * ), 93 )
----
30
-1

query II rowsort
SELECT 11 AS col2, - 68 - 69 AS col2
----
11
-137

onlyif mysql # aggregate syntax: 
query I rowsort label-3168
SELECT + COUNT( + 32 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-3168
SELECT + COUNT ( + 32 ) col1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3169
SELECT ALL + - CAST( + 64 AS SIGNED ) + CASE + - CAST( - + 30 AS SIGNED ) WHEN - 95 THEN NULL ELSE - 82 END col1
----
-146

skipif mysql # not compatible
query I rowsort label-3169
SELECT ALL + - CAST ( + 64 AS INTEGER ) + CASE + - CAST ( - + 30 AS INTEGER ) WHEN - 95 THEN NULL ELSE - 82 END col1
----
-146

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3170
SELECT + 25 * - CAST( + 31 AS SIGNED )
----
-775

skipif mysql # not compatible
query I rowsort label-3170
SELECT + 25 * - CAST ( + 31 AS INTEGER )
----
-775

query I rowsort
SELECT 26 - - 36 AS col2
----
62

query II rowsort
SELECT + 39 AS col2, + 71 AS col2
----
39
71

query I rowsort
SELECT ALL + - 5 + + + 51 AS col0
----
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3174
SELECT - + COUNT( * ) * - + 0 - - - COUNT( * ) + + ( + 34 ) DIV + 84 * - CASE - - 10 WHEN - CASE MAX( - 36 ) WHEN 91 DIV + ( + 90 ) + - CASE 19 WHEN + 40 - COUNT( * ) * 19 THEN NULL WHEN CAST( COUNT( * ) AS SIGNED ) THEN NULL WHEN - 20 THEN NULL ELSE - 70 + 17 END THEN 97 * - 99 + 19 ELSE NULL END * + 8 THEN 49 * 71 ELSE - 36 + COUNT( * ) END DIV + COUNT( * ) - - 19
----
18

skipif mysql # not compatible
query I rowsort label-3174
SELECT - + COUNT ( * ) * - + 0 - - - COUNT ( * ) + + ( + 34 ) / + 84 * - CASE - - 10 WHEN - CASE MAX ( - 36 ) WHEN 91 / + ( + 90 ) + - CASE 19 WHEN + 40 - COUNT ( * ) * 19 THEN NULL WHEN CAST ( COUNT ( * ) AS INTEGER ) THEN NULL WHEN - 20 THEN NULL ELSE - 70 + 17 END THEN 97 * - 99 + 19 ELSE NULL END * + 8 THEN 49 * 71 ELSE - 36 + COUNT ( * ) END / + COUNT ( * ) - - 19
----
18

query I rowsort
SELECT ALL + - 89 + - 13 * - + 55 AS col0
----
626

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3177
SELECT + + COUNT( * ), MAX( - 98 ) AS col1
----
1
-98

skipif mysql # not compatible
query II rowsort label-3177
SELECT + + COUNT ( * ), MAX ( - 98 ) AS col1
----
1
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-3178
SELECT ALL - CASE + - 9 WHEN + COUNT( * ) THEN + - 42 WHEN + 81 + + - MAX( - NULLIF ( + 51, + 27 ) ) THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3178
SELECT ALL - CASE + - 9 WHEN + COUNT ( * ) THEN + - 42 WHEN + 81 + + - MAX ( - NULLIF ( + 51, + 27 ) ) THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT 49 * 63
----
3087

query I rowsort
SELECT + ( - + 93 ) * + ( + 50 ) * - ( + 19 ) + + 10 AS col0
----
88360

query II rowsort
SELECT + 28 - + 64 AS col0, + 37 AS col0
----
-36
37

query I rowsort
SELECT ALL - 12 - - 13 AS col1
----
1

query II rowsort
SELECT DISTINCT - 53 * - 48 AS col1, - 90
----
2544
-90

onlyif mysql # DIV for integer division: 
query I rowsort label-3184
SELECT - 94 DIV + 2 AS col2
----
-47

skipif mysql # not compatible
query I rowsort label-3184
SELECT - 94 / + 2 AS col2
----
-47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3185
SELECT DISTINCT + - CAST( - 80 AS SIGNED ) * - - 81 + - 81
----
6399

skipif mysql # not compatible
query I rowsort label-3185
SELECT DISTINCT + - CAST ( - 80 AS INTEGER ) * - - 81 + - 81
----
6399

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3186
SELECT DISTINCT 23 * + COUNT( * ) DIV + + 33 * - 16
----
0

skipif mysql # not compatible
query I rowsort label-3186
SELECT DISTINCT 23 * + COUNT ( * ) / + + 33 * - 16
----
0

query I rowsort
SELECT CASE - NULLIF ( 55, - 38 ) WHEN + - 66 * + CASE - 46 WHEN - 44 THEN NULL WHEN 30 THEN + 64 / - - 34 + - - 91 WHEN 74 THEN NULL END THEN - 55 ELSE NULL END - - 67 * 46 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3188
SELECT COUNT( * ) * - 81 AS col2
----
-81

skipif mysql # not compatible
query I rowsort label-3188
SELECT COUNT ( * ) * - 81 AS col2
----
-81

query I rowsort
SELECT 78 - 33
----
45

query I rowsort
SELECT ALL NULLIF ( - 50, - 98 ) + 98 + - + 56 * - 10 AS col0
----
608

query I rowsort
SELECT ( - 90 ) + + 79 * ( 30 )
----
2280

onlyif mysql # aggregate syntax: 
query I rowsort label-3192
SELECT DISTINCT 33 + COUNT( * ) * - 65
----
-32

skipif mysql # not compatible
query I rowsort label-3192
SELECT DISTINCT 33 + COUNT ( * ) * - 65
----
-32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3193
SELECT ALL - ( - CAST( + 94 AS SIGNED ) ) * COUNT( * ) - + 26 * + 17 AS col1
----
-348

skipif mysql # not compatible
query I rowsort label-3193
SELECT ALL - ( - CAST ( + 94 AS INTEGER ) ) * COUNT ( * ) - + 26 * + 17 AS col1
----
-348

query I rowsort
SELECT DISTINCT 9 * + 11
----
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3195
SELECT MIN( 27 ) + 1 DIV + COUNT( * ) * + ( COUNT( DISTINCT + 86 ) ) * COUNT( * ) AS col0
----
28

skipif mysql # not compatible
query I rowsort label-3195
SELECT MIN ( 27 ) + 1 / + COUNT ( * ) * + ( COUNT ( DISTINCT + 86 ) ) * COUNT ( * ) AS col0
----
28

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3197
SELECT ALL MIN( - + 18 ) * + 52 AS col2
----
-936

skipif mysql # not compatible
query I rowsort label-3197
SELECT ALL MIN ( - + 18 ) * + 52 AS col2
----
-936

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3198
SELECT 32 + - + ( - ( + MIN( + 79 ) ) ) + + - ( - + 71 ) DIV 77 + 19
----
130

skipif mysql # not compatible
query I rowsort label-3198
SELECT 32 + - + ( - ( + MIN ( + 79 ) ) ) + + - ( - + 71 ) / 77 + 19
----
130

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3199
SELECT 42 DIV MAX( ALL 85 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3199
SELECT 42 / MAX ( ALL 85 ) AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3200
SELECT - - 81 DIV 14 + - 8 * MAX( ALL - NULLIF ( COALESCE ( - + 86, 41 ), 80 ) ) * + + 56 + + - COALESCE ( + + 92, COUNT( * ) * - NULLIF ( 73, 71 * 20 ), + ( + CASE + 69 WHEN 36 * 72 THEN 53 ELSE NULL END ) ) AS col0
----
-38615

skipif mysql # not compatible
query I rowsort label-3200
SELECT - - 81 / 14 + - 8 * MAX ( ALL - NULLIF ( COALESCE ( - + 86, 41 ), 80 ) ) * + + 56 + + - COALESCE ( + + 92, COUNT ( * ) * - NULLIF ( 73, 71 * 20 ), + ( + CASE + 69 WHEN 36 * 72 THEN 53 ELSE NULL END ) ) AS col0
----
-38615

onlyif mysql # aggregate syntax: 
query I rowsort label-3201
SELECT ALL COUNT( * ) * 30 col1
----
30

skipif mysql # not compatible
query I rowsort label-3201
SELECT ALL COUNT ( * ) * 30 col1
----
30

query I rowsort
SELECT ALL + + 24 * 87 + - 44 + - 87
----
1957

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3203
SELECT ALL - 17 * - MIN( DISTINCT + 2 ) + + 13 + + - 90 + + 98 + + + 85, CAST( NULLIF ( 96, 29 ) AS SIGNED ) AS col2
----
140
96

skipif mysql # not compatible
query II rowsort label-3203
SELECT ALL - 17 * - MIN ( DISTINCT + 2 ) + + 13 + + - 90 + + 98 + + + 85, CAST ( NULLIF ( 96, 29 ) AS INTEGER ) AS col2
----
140
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3204
SELECT - CAST( + - 42 AS SIGNED ) + + NULLIF ( + - 33, - 38 - + + CAST( NULL AS SIGNED ) ) + - 56 AS col0
----
-47

skipif mysql # not compatible
query I rowsort label-3204
SELECT - CAST ( + - 42 AS INTEGER ) + + NULLIF ( + - 33, - 38 - + + CAST ( NULL AS INTEGER ) ) + - 56 AS col0
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-3205
SELECT + 85 * - - COUNT( * ) * - 88 - - + 90
----
-7390

skipif mysql # not compatible
query I rowsort label-3205
SELECT + 85 * - - COUNT ( * ) * - 88 - - + 90
----
-7390

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3206
SELECT ALL + MAX( - 85 ) DIV MAX( ALL - 6 )
----
14

skipif mysql # not compatible
query I rowsort label-3206
SELECT ALL + MAX ( - 85 ) / MAX ( ALL - 6 )
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-3207
SELECT + COUNT( * ) * + 87 + - - 11 + - + 79 * - 28 col1
----
2310

skipif mysql # not compatible
query I rowsort label-3207
SELECT + COUNT ( * ) * + 87 + - - 11 + - + 79 * - 28 col1
----
2310

query II rowsort
SELECT DISTINCT + + 39 * + + 49 - + - ( + - ( - ( 5 ) ) ) + - - 8, 58 AS col2
----
1924
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3209
SELECT + COUNT( * ) + 91 * CASE + + 10 WHEN + + 51 / + - NULLIF ( + + 51, 58 + COUNT( * ) ) * 92 THEN - CAST( NULL AS SIGNED ) WHEN - 5 - 28 THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3209
SELECT + COUNT ( * ) + 91 * CASE + + 10 WHEN + + 51 / + - NULLIF ( + + 51, 58 + COUNT ( * ) ) * 92 THEN - CAST ( NULL AS INTEGER ) WHEN - 5 - 28 THEN NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3210
SELECT - MAX( DISTINCT ( 1 ) ) * - + 11 + + 66
----
77

skipif mysql # not compatible
query I rowsort label-3210
SELECT - MAX ( DISTINCT ( 1 ) ) * - + 11 + + 66
----
77

query I rowsort
SELECT ALL + - 48 col1
----
-48

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3213
SELECT ALL + 64 * - MIN( + 92 )
----
-5888

skipif mysql # not compatible
query I rowsort label-3213
SELECT ALL + 64 * - MIN ( + 92 )
----
-5888

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3215
SELECT - - 20 DIV + 84
----
0

skipif mysql # not compatible
query I rowsort label-3215
SELECT - - 20 / + 84
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3216
SELECT - MIN( ( - - 11 ) ) * + 2 AS col0
----
-22

skipif mysql # not compatible
query I rowsort label-3216
SELECT - MIN ( ( - - 11 ) ) * + 2 AS col0
----
-22

query II rowsort
SELECT DISTINCT CASE + 8 WHEN - 95 / + 58 THEN + 99 * + 7 END col1, 96 AS col1
----
NULL
96

query I rowsort
SELECT ALL NULLIF ( 61, 74 / 15 / + 9 + - 29 ) AS col0
----
61

query I rowsort
SELECT + 22 + + - 54 + + + 8 col0
----
-24

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

skipif mysql # not compatible
query I rowsort label-3220
SELECT ALL COUNT ( * ) + - - 18 AS col1
----
19

query II rowsort
SELECT - 28 col0, ( + + 66 )
----
-28
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3222
SELECT DISTINCT - 9 + + - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3222
SELECT DISTINCT - 9 + + - CAST ( NULL AS INTEGER ) AS col1
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3224
SELECT DISTINCT COUNT( * ) + + 40 col1
----
41

skipif mysql # not compatible
query I rowsort label-3224
SELECT DISTINCT COUNT ( * ) + + 40 col1
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-3225
SELECT DISTINCT 86 * - - COUNT( * ) AS col0
----
86

skipif mysql # not compatible
query I rowsort label-3225
SELECT DISTINCT 86 * - - COUNT ( * ) AS col0
----
86

query I rowsort
SELECT + 56 + 60 + + CASE ( + - 8 ) WHEN 43 THEN + - 14 * - - 95 * 26 END / + 72 * 23
----
NULL

query I rowsort
SELECT ALL 14 + + - 59 * + - 15 + - + 25 * + 37
----
-26

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

query I rowsort
SELECT DISTINCT + + 51 * - 12 AS col2
----
-612

onlyif mysql # aggregate syntax: 
query I rowsort label-3230
SELECT COUNT( - + 42 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3230
SELECT COUNT ( - + 42 ) AS col2
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-3231
SELECT DISTINCT - COALESCE ( + 9, - 81 ) DIV 87 - + 44 AS col0
----
-44

skipif mysql # not compatible
query I rowsort label-3231
SELECT DISTINCT - COALESCE ( + 9, - 81 ) / 87 - + 44 AS col0
----
-44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3232
SELECT ALL 52 * - CAST( NULL AS SIGNED ) * 71 * 48 * + 97
----
NULL

skipif mysql # not compatible
query I rowsort label-3232
SELECT ALL 52 * - CAST ( NULL AS INTEGER ) * 71 * 48 * + 97
----
NULL

query I rowsort
SELECT - - 34 + + 90 AS col0
----
124

onlyif mysql # DIV for integer division: 
query I rowsort label-3234
SELECT + 49 DIV - 81 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3234
SELECT + 49 / - 81 AS col1
----
0

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

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

query I rowsort
SELECT + 50 * + 53 - + + 34 + 0 + + + 17
----
2633

onlyif mysql # aggregate syntax: 
query I rowsort label-3237
SELECT - + MAX( - 67 ) * 6 AS col0
----
402

skipif mysql # not compatible
query I rowsort label-3237
SELECT - + MAX ( - 67 ) * 6 AS col0
----
402

query I rowsort
SELECT - 99 * 37 col0
----
-3663

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3239
SELECT ALL + SUM( CAST( + 28 AS SIGNED ) ) DIV 23 col1
----
1

skipif mysql # not compatible
query I rowsort label-3239
SELECT ALL + SUM ( CAST ( + 28 AS INTEGER ) ) / 23 col1
----
1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3241
SELECT - 26 - - 80 - - COUNT( + 22 ) * - - 18 AS col1
----
72

skipif mysql # not compatible
query I rowsort label-3241
SELECT - 26 - - 80 - - COUNT ( + 22 ) * - - 18 AS col1
----
72

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

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

query I rowsort
SELECT 68 * + 38 * + 70 - + 96 + 18 + - + ( - - 65 ) * - + 72 AS col2
----
185482

onlyif mysql # aggregate syntax: 
query I rowsort label-3244
SELECT ALL ( - - 6 ) * - ( - - 11 ) + + - COUNT( * ) + + + 53 AS col1
----
-14

skipif mysql # not compatible
query I rowsort label-3244
SELECT ALL ( - - 6 ) * - ( - - 11 ) + + - COUNT ( * ) + + + 53 AS col1
----
-14

onlyif mysql # aggregate syntax: 
query II rowsort label-3245
SELECT COALESCE ( + - COUNT( * ), + - 7, - ( - 51 ) * + 54 + + - 3 ) AS col2, 3 AS col1
----
-1
3

skipif mysql # not compatible
query II rowsort label-3245
SELECT COALESCE ( + - COUNT ( * ), + - 7, - ( - 51 ) * + 54 + + - 3 ) AS col2, 3 AS col1
----
-1
3

query I rowsort
SELECT ALL 99 * + - 46 AS col2
----
-4554

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3247
SELECT DISTINCT 35 * - COUNT( * ) DIV + 91 + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-3247
SELECT DISTINCT 35 * - COUNT ( * ) / + 91 + COUNT ( * )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-3248
SELECT - 69 + - 86 * 83 DIV + 65 + - 90 AS col1
----
-268

skipif mysql # not compatible
query I rowsort label-3248
SELECT - 69 + - 86 * 83 / + 65 + - 90 AS col1
----
-268

query I rowsort
SELECT ALL 9 * + + 53 + - + 21 AS col0
----
456

query I rowsort
SELECT ALL + 11 * + + 81 * + 89 + 89 - + + 29
----
79359

query I rowsort
SELECT - 80 * - 4 AS col2
----
320

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3253
SELECT - 44 - - 29 + - 29 DIV - 64 * + - 28
----
-15

skipif mysql # not compatible
query I rowsort label-3253
SELECT - 44 - - 29 + - 29 / - 64 * + - 28
----
-15

query II rowsort
SELECT - ( - - 73 ) AS col0, - 83 AS col0
----
-73
-83

query I rowsort
SELECT DISTINCT ( 3 ) AS col2
----
3

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3257
SELECT DISTINCT + - 32 - + - 33 * - + 13 DIV + + COUNT( - 37 )
----
-461

skipif mysql # not compatible
query I rowsort label-3257
SELECT DISTINCT + - 32 - + - 33 * - + 13 / + + COUNT ( - 37 )
----
-461

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3258
SELECT ALL + NULLIF ( - - COALESCE ( 42, + 63, 69 ), - 61 * + + 1 * + CAST( - 27 AS SIGNED ) - - 67 + 92 * - + 33 ) AS col0, 93
----
42
93

skipif mysql # not compatible
query II rowsort label-3258
SELECT ALL + NULLIF ( - - COALESCE ( 42, + 63, 69 ), - 61 * + + 1 * + CAST ( - 27 AS INTEGER ) - - 67 + 92 * - + 33 ) AS col0, 93
----
42
93

query I rowsort
SELECT ALL 41 * - - 34 * - 43 + - 26
----
-59968

onlyif mysql # aggregate syntax: 
query I rowsort label-3260
SELECT + 15 * - - COUNT( * ) + - 31 + - 75 + - CASE - 55 WHEN - 12 * 57 THEN + + 3 WHEN 13 THEN NULL ELSE NULL END / + 2 + + COUNT( DISTINCT + 59 ) * - + MIN( DISTINCT - 83 ) / + 70 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3260
SELECT + 15 * - - COUNT ( * ) + - 31 + - 75 + - CASE - 55 WHEN - 12 * 57 THEN + + 3 WHEN 13 THEN NULL ELSE NULL END / + 2 + + COUNT ( DISTINCT + 59 ) * - + MIN ( DISTINCT - 83 ) / + 70 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3261
SELECT - 98 DIV 38 + - - 23 AS col2
----
21

skipif mysql # not compatible
query I rowsort label-3261
SELECT - 98 / 38 + - - 23 AS col2
----
21

query II rowsort
SELECT DISTINCT - + ( + - 8 ), 84 AS col2
----
8
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3263
SELECT + 60 + COALESCE ( 40, + CAST( NULL AS SIGNED ) )
----
100

skipif mysql # not compatible
query I rowsort label-3263
SELECT + 60 + COALESCE ( 40, + CAST ( NULL AS INTEGER ) )
----
100

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3264
SELECT DISTINCT - 75 * - ( 3 ) * + CAST( - ( 12 ) AS SIGNED ) AS col2
----
-2700

skipif mysql # not compatible
query I rowsort label-3264
SELECT DISTINCT - 75 * - ( 3 ) * + CAST ( - ( 12 ) AS INTEGER ) AS col2
----
-2700

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3265
SELECT + NULLIF ( 20, + COALESCE ( + CAST( NULL AS SIGNED ), - 49 ) ) * + 33 * COUNT( * ) + - 61 AS col2
----
599

skipif mysql # not compatible
query I rowsort label-3265
SELECT + NULLIF ( 20, + COALESCE ( + CAST ( NULL AS INTEGER ), - 49 ) ) * + 33 * COUNT ( * ) + - 61 AS col2
----
599

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

query I rowsort
SELECT DISTINCT - 81 + - 27 - + + 24 AS col2
----
-132

query II rowsort
SELECT 7 AS col0, 85
----
7
85

query I rowsort
SELECT ALL 87 + + 87
----
174

query I rowsort
SELECT 82 * - 61 AS col2
----
-5002

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3272
SELECT DISTINCT 58 + 51 + - + 22 - + + CAST( 30 AS SIGNED )
----
57

skipif mysql # not compatible
query I rowsort label-3272
SELECT DISTINCT 58 + 51 + - + 22 - + + CAST ( 30 AS INTEGER )
----
57

query I rowsort
SELECT ALL 16 + + 90
----
106

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

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

query I rowsort
SELECT ALL 51 + 8 + + + 42 col2
----
101

query I rowsort
SELECT ALL - ( - + 72 ) + + 10 + - 56 - + 37 * - - 43 + + 84
----
-1481

query I rowsort
SELECT 13 + - + 50 * - + 19 col0
----
963

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

skipif mysql # not compatible
query I rowsort label-3278
SELECT ALL - MIN ( ALL - - 50 )
----
-50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3279
SELECT DISTINCT + NULLIF ( 98, + + MAX( DISTINCT + - 2 ) + + + CAST( - 58 AS SIGNED ) ) * + - 86 + - - 54 * - 67 AS col0
----
-12046

skipif mysql # not compatible
query I rowsort label-3279
SELECT DISTINCT + NULLIF ( 98, + + MAX ( DISTINCT + - 2 ) + + + CAST ( - 58 AS INTEGER ) ) * + - 86 + - - 54 * - 67 AS col0
----
-12046

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3280
SELECT ALL - 92 + - 38 DIV + COUNT( ALL + + 15 )
----
-130

skipif mysql # not compatible
query I rowsort label-3280
SELECT ALL - 92 + - 38 / + COUNT ( ALL + + 15 )
----
-130

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

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

query I rowsort
SELECT 13 * 19 AS col1
----
247

query I rowsort
SELECT DISTINCT + 19 * 64
----
1216

query I rowsort
SELECT DISTINCT + 74 - - 60
----
134

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-3285
SELECT DISTINCT - CAST( NULL AS DECIMAL ) * - COUNT( DISTINCT - 10 ) AS col0, - 58 - - - 40 + - 3
----
NULL
-101

skipif mysql # not compatible
query II rowsort label-3285
SELECT DISTINCT - CAST ( NULL AS REAL ) * - COUNT ( DISTINCT - 10 ) AS col0, - 58 - - - 40 + - 3
----
NULL
-101

query I rowsort
SELECT + 51 + - 22 AS col2
----
29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3287
SELECT - SUM( ALL + ( CAST( - 69 AS SIGNED ) ) )
----
69

skipif mysql # not compatible
query I rowsort label-3287
SELECT - SUM ( ALL + ( CAST ( - 69 AS INTEGER ) ) )
----
69

query II rowsort
SELECT ( - 87 ) + - - 53 AS col2, 8 AS col0
----
-34
8

query I rowsort
SELECT ALL - ( + 49 ) * - 3 AS col0
----
147

query I rowsort
SELECT + ( - + 4 ) * + 68 AS col1
----
-272

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3291
SELECT 87 * + + CAST( NULL AS SIGNED ) + 23
----
NULL

skipif mysql # not compatible
query I rowsort label-3291
SELECT 87 * + + CAST ( NULL AS INTEGER ) + 23
----
NULL

query I rowsort
SELECT ALL - 93 * - 19 col2
----
1767

onlyif mysql # aggregate syntax: 
query I rowsort label-3293
SELECT ALL - + MIN( DISTINCT - 13 ) * - 20
----
-260

skipif mysql # not compatible
query I rowsort label-3293
SELECT ALL - + MIN ( DISTINCT - 13 ) * - 20
----
-260

query I rowsort
SELECT ALL + 1 * - 61 + + 97 AS col1
----
36

query I rowsort
SELECT + 20 * + + 18 + - 0 AS col2
----
360

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3296
SELECT 38 / - NULLIF ( - + 17, 30 * ( - NULLIF ( + 37, - MIN( ALL + NULLIF ( + CAST( NULL AS SIGNED ), + 59 ) ) * + CASE - MAX( - + 86 ) WHEN - + 35 + - CAST( - 15 AS SIGNED ) * 91 THEN + 80 ELSE 68 END ) ) + - 26 ) + + CASE WHEN NOT 25 = NULL THEN CAST( NULL AS SIGNED ) * - 97 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3296
SELECT 38 / - NULLIF ( - + 17, 30 * ( - NULLIF ( + 37, - MIN ( ALL + NULLIF ( + CAST ( NULL AS INTEGER ), + 59 ) ) * + CASE - MAX ( - + 86 ) WHEN - + 35 + - CAST ( - 15 AS INTEGER ) * 91 THEN + 80 ELSE 68 END ) ) + - 26 ) + + CASE WHEN NOT 25 = NULL THEN CAST ( NULL AS INTEGER ) * - 97 END
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3298
SELECT DISTINCT CAST( + - ( - COUNT( * ) ) AS SIGNED ) + + 45 AS col1
----
46

skipif mysql # not compatible
query I rowsort label-3298
SELECT DISTINCT CAST ( + - ( - COUNT ( * ) ) AS INTEGER ) + + 45 AS col1
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-3299
SELECT - ( COUNT( * ) ) - - - ( - ( 37 ) ) AS col0
----
36

skipif mysql # not compatible
query I rowsort label-3299
SELECT - ( COUNT ( * ) ) - - - ( - ( 37 ) ) AS col0
----
36

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3302
SELECT + 16 col1, COUNT( * ) + - MIN( - 48 ) + - + MAX( DISTINCT + 53 ) * + COUNT( * ) + + 80 col0
----
16
76

skipif mysql # not compatible
query II rowsort label-3302
SELECT + 16 col1, COUNT ( * ) + - MIN ( - 48 ) + - + MAX ( DISTINCT + 53 ) * + COUNT ( * ) + + 80 col0
----
16
76

onlyif mysql # aggregate syntax: 
query I rowsort label-3303
SELECT DISTINCT 99 + + COUNT( * )
----
100

skipif mysql # not compatible
query I rowsort label-3303
SELECT DISTINCT 99 + + COUNT ( * )
----
100

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

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

query I rowsort
SELECT 5 * - ( + 38 ) + + 25 - - 88 * + - 60 * - + 97
----
511995

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3306
SELECT 17 * 65 AS col1, - CAST( NULL AS DECIMAL ) col0
----
1105
NULL

skipif mysql # not compatible
query II rowsort label-3306
SELECT 17 * 65 AS col1, - CAST ( NULL AS REAL ) col0
----
1105
NULL

query I rowsort
SELECT ALL 45 * 44
----
1980

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-3308
SELECT 49, COALESCE ( - 90, + - 39 ) * + - MAX( + - 11 ) + + 97 - - + CAST( NULL AS DECIMAL ) col2
----
49
NULL

skipif mysql # not compatible
query II rowsort label-3308
SELECT 49, COALESCE ( - 90, + - 39 ) * + - MAX ( + - 11 ) + + 97 - - + CAST ( NULL AS REAL ) col2
----
49
NULL

query I rowsort
SELECT ALL 98 - + 55 AS col2
----
43

query I rowsort
SELECT 7 * + 35
----
245

onlyif mysql # DIV for integer division: 
query I rowsort label-3311
SELECT 42 * 72 DIV 38 AS col0
----
79

skipif mysql # not compatible
query I rowsort label-3311
SELECT 42 * 72 / 38 AS col0
----
79

onlyif mysql # DIV for integer division: 
query II rowsort label-3312
SELECT DISTINCT - 45 col0, + 47 DIV COALESCE ( + - 88, - 28 ) AS col1
----
-45
0

skipif mysql # not compatible
query II rowsort label-3312
SELECT DISTINCT - 45 col0, + 47 / COALESCE ( + - 88, - 28 ) AS col1
----
-45
0

query I rowsort
SELECT ( + 14 ) + + 54 AS col1
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-3314
SELECT ALL - COUNT( 34 )
----
-1

skipif mysql # not compatible
query I rowsort label-3314
SELECT ALL - COUNT ( 34 )
----
-1

query II rowsort
SELECT ALL 46 AS col0, + 98 AS col0
----
46
98

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

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

query I rowsort
SELECT - NULLIF ( 46, + 54 )
----
-46

onlyif mysql # DIV for integer division: 
query I rowsort label-3318
SELECT 51 DIV 35
----
1

skipif mysql # not compatible
query I rowsort label-3318
SELECT 51 / 35
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3319
SELECT NULLIF ( + 36, ( - COUNT( * ) ) + - - SUM( + 76 ) ) + - COUNT( * )
----
35

skipif mysql # not compatible
query I rowsort label-3319
SELECT NULLIF ( + 36, ( - COUNT ( * ) ) + - - SUM ( + 76 ) ) + - COUNT ( * )
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-3320
SELECT ALL - 57 * 8 + COUNT( * )
----
-455

skipif mysql # not compatible
query I rowsort label-3320
SELECT ALL - 57 * 8 + COUNT ( * )
----
-455

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

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

query II rowsort
SELECT - + 77 AS col1, 84 + 66 AS col1
----
-77
150

query I rowsort
SELECT - 29 + 55 + 79 AS col2
----
105

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3324
SELECT ALL - CASE 10 WHEN + 70 DIV - + 77 THEN + + 3 + + 68 * COALESCE ( + + 16, - 22 DIV + + 34 ) WHEN - + 95 THEN + 64 + + COALESCE ( + - COUNT( * ), - 8 DIV 96 + - 2 ) * MAX( + 19 + - 53 ) ELSE CAST( + 67 AS SIGNED ) END * + 89 AS col0
----
-5963

skipif mysql # not compatible
query I rowsort label-3324
SELECT ALL - CASE 10 WHEN + 70 / - + 77 THEN + + 3 + + 68 * COALESCE ( + + 16, - 22 / + + 34 ) WHEN - + 95 THEN + 64 + + COALESCE ( + - COUNT ( * ), - 8 / 96 + - 2 ) * MAX ( + 19 + - 53 ) ELSE CAST ( + 67 AS INTEGER ) END * + 89 AS col0
----
-5963

query I rowsort
SELECT - - 53 + + 67 AS col2
----
120

query II rowsort
SELECT ALL - 47 + 8, 6 AS col1
----
-39
6

onlyif mysql # aggregate syntax: 
query I rowsort label-3327
SELECT - + 36 + COUNT( * ) + - 0 * 59 * - 20 AS col0
----
-35

skipif mysql # not compatible
query I rowsort label-3327
SELECT - + 36 + COUNT ( * ) + - 0 * 59 * - 20 AS col0
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-3328
SELECT ALL + + MIN( 12 ) + - - 52 col2
----
64

skipif mysql # not compatible
query I rowsort label-3328
SELECT ALL + + MIN ( 12 ) + - - 52 col2
----
64

query I rowsort
SELECT - ( - 76 ) AS col0
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-3330
SELECT - - ( + - 37 ) + + - ( + COUNT( * ) )
----
-38

skipif mysql # not compatible
query I rowsort label-3330
SELECT - - ( + - 37 ) + + - ( + COUNT ( * ) )
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-3331
SELECT ALL + 56 + - 23 + - MAX( 7 ) * + 28 + - ( - 50 )
----
-113

skipif mysql # not compatible
query I rowsort label-3331
SELECT ALL + 56 + - 23 + - MAX ( 7 ) * + 28 + - ( - 50 )
----
-113

onlyif mysql # aggregate syntax: 
query I rowsort label-3332
SELECT - 92 + - 77 * + + COUNT( * ) - - MAX( DISTINCT + - 48 ) + - 38 * + 83 AS col0
----
-3371

skipif mysql # not compatible
query I rowsort label-3332
SELECT - 92 + - 77 * + + COUNT ( * ) - - MAX ( DISTINCT + - 48 ) + - 38 * + 83 AS col0
----
-3371

onlyif mysql # aggregate syntax: 
query I rowsort label-3333
SELECT ALL - + COALESCE ( + 21, + - 77 + + - ( 62 ), + - 89 * - COUNT( * ) * - 20 + - + 60 ) + + + 84
----
63

skipif mysql # not compatible
query I rowsort label-3333
SELECT ALL - + COALESCE ( + 21, + - 77 + + - ( 62 ), + - 89 * - COUNT ( * ) * - 20 + - + 60 ) + + + 84
----
63

query I rowsort
SELECT - 31 * - 60 AS col2
----
1860

onlyif mysql # DIV for integer division: 
query II rowsort label-3335
SELECT ALL + + 84 AS col2, - 48 DIV - 91 + + + ( + - 18 )
----
84
-18

skipif mysql # not compatible
query II rowsort label-3335
SELECT ALL + + 84 AS col2, - 48 / - 91 + + + ( + - 18 )
----
84
-18

onlyif mysql # DIV for integer division: 
query II rowsort label-3336
SELECT + 56 AS col0, 13 DIV + 65 AS col1
----
56
0

skipif mysql # not compatible
query II rowsort label-3336
SELECT + 56 AS col0, 13 / + 65 AS col1
----
56
0

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3338
SELECT 9 * 98 * - + 92 * - CAST( NULL AS SIGNED ) + - 46 * + 27 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3338
SELECT 9 * 98 * - + 92 * - CAST ( NULL AS INTEGER ) + - 46 * + 27 AS col0
----
NULL

query I rowsort
SELECT NULLIF ( + 58, 26 * 79 * + 33 + 32 )
----
58

query I rowsort
SELECT - 40 * + 41
----
-1640

query I rowsort
SELECT NULLIF ( + 46, - 10 )
----
46

onlyif mysql # aggregate syntax: 
query II rowsort label-3342
SELECT NULLIF ( - + 61, - ( - + 58 ) * + 71 ) col2, - COUNT( * ) + + 59 + 0 AS col1
----
-61
58

skipif mysql # not compatible
query II rowsort label-3342
SELECT NULLIF ( - + 61, - ( - + 58 ) * + 71 ) col2, - COUNT ( * ) + + 59 + 0 AS col1
----
-61
58

onlyif mysql # aggregate syntax: 
query II rowsort label-3343
SELECT + 92 + + 58 AS col1, 28 + - COUNT( * ) * + 33 - ( + - 86 ) + - 31 + - CASE 32 WHEN + 5 THEN 80 END
----
150
NULL

skipif mysql # not compatible
query II rowsort label-3343
SELECT + 92 + + 58 AS col1, 28 + - COUNT ( * ) * + 33 - ( + - 86 ) + - 31 + - CASE 32 WHEN + 5 THEN 80 END
----
150
NULL

query I rowsort
SELECT ALL + 19 * + 42 - + 4 AS col2
----
794

onlyif mysql # aggregate syntax: 
query I rowsort label-3345
SELECT CASE + COUNT( * ) WHEN 36 THEN NULL WHEN + + 93 THEN NULL ELSE + - 76 END
----
-76

skipif mysql # not compatible
query I rowsort label-3345
SELECT CASE + COUNT ( * ) WHEN 36 THEN NULL WHEN + + 93 THEN NULL ELSE + - 76 END
----
-76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3346
SELECT DISTINCT - COUNT( * ) * CAST( - 86 AS SIGNED ) col1
----
86

skipif mysql # not compatible
query I rowsort label-3346
SELECT DISTINCT - COUNT ( * ) * CAST ( - 86 AS INTEGER ) col1
----
86

query I rowsort
SELECT 65 * - 39 + + 61 + + + 6
----
-2468

onlyif mysql # aggregate syntax: 
query I rowsort label-3348
SELECT CASE + COUNT( * ) WHEN + - COUNT( * ) THEN - COUNT( * ) WHEN - - 29 * 72 * + - 49 THEN NULL ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3348
SELECT CASE + COUNT ( * ) WHEN + - COUNT ( * ) THEN - COUNT ( * ) WHEN - - 29 * 72 * + - 49 THEN NULL ELSE NULL END AS col2
----
NULL

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

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

query I rowsort
SELECT ALL 44 * + - 79
----
-3476

query I rowsort
SELECT + 50 * + 97
----
4850

onlyif mysql # aggregate syntax: 
query I rowsort label-3352
SELECT ALL + CASE - + COUNT( * ) WHEN 35 THEN + - COUNT( 28 ) WHEN - + COUNT( * ) THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3352
SELECT ALL + CASE - + COUNT ( * ) WHEN 35 THEN + - COUNT ( 28 ) WHEN - + COUNT ( * ) THEN NULL ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3353
SELECT + COALESCE ( ( - CASE 82 WHEN + CAST( + 94 AS SIGNED ) * - ( + 0 ) + 27 THEN + COUNT( - 55 ) - - + 76 ELSE - - NULLIF ( + 86, - 24 / + 63 + 58 * ( CAST( ( + COUNT( * ) ) AS DECIMAL ) + + 51 ) ) + 95 END ), 86 )
----
-181

skipif mysql # not compatible
query I rowsort label-3353
SELECT + COALESCE ( ( - CASE 82 WHEN + CAST ( + 94 AS INTEGER ) * - ( + 0 ) + 27 THEN + COUNT ( - 55 ) - - + 76 ELSE - - NULLIF ( + 86, - 24 / + 63 + 58 * ( CAST ( ( + COUNT ( * ) ) AS REAL ) + + 51 ) ) + 95 END ), 86 )
----
-181

onlyif mysql # aggregate syntax: 
query I rowsort label-3354
SELECT MIN( ALL - COALESCE ( - 59, 99 ) ) AS col0
----
59

skipif mysql # not compatible
query I rowsort label-3354
SELECT MIN ( ALL - COALESCE ( - 59, 99 ) ) AS col0
----
59

query I rowsort
SELECT + 14 * - 24 * - ( + 22 )
----
7392

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

skipif mysql # not compatible
query I rowsort label-3356
SELECT SUM ( + 15 )
----
15

query I rowsort
SELECT - + 2 AS col1
----
-2

query I rowsort
SELECT ALL + 37 + + + 22
----
59

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

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

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

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

query II rowsort
SELECT DISTINCT 92 + - 33, 76 + + 99 AS col0
----
59
175

query I rowsort
SELECT ALL - 46 + 34 * + ( - 4 ) + 36
----
-146

query I rowsort
SELECT ALL + 76 + - + 13
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-3364
SELECT + 49 * + COUNT( * ) + 92
----
141

skipif mysql # not compatible
query I rowsort label-3364
SELECT + 49 * + COUNT ( * ) + 92
----
141

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3365
SELECT + 93 * - + AVG ( CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3365
SELECT + 93 * - + AVG ( CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3367
SELECT + - 5 - - 15 * COALESCE ( - - 89, - 89 ) + + COUNT( * ) * + NULLIF ( + COUNT( * ), - 1 * - - 86 )
----
1331

skipif mysql # not compatible
query I rowsort label-3367
SELECT + - 5 - - 15 * COALESCE ( - - 89, - 89 ) + + COUNT ( * ) * + NULLIF ( + COUNT ( * ), - 1 * - - 86 )
----
1331

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3368
SELECT DISTINCT CAST( 19 AS SIGNED ) AS col1, 21 * - CAST( - 48 AS SIGNED )
----
19
1008

skipif mysql # not compatible
query II rowsort label-3368
SELECT DISTINCT CAST ( 19 AS INTEGER ) AS col1, 21 * - CAST ( - 48 AS INTEGER )
----
19
1008

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

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

query I rowsort
SELECT DISTINCT + 91 * + 5 + 16
----
471

onlyif mysql # aggregate syntax: 
query II rowsort label-3371
SELECT SUM( 19 ) AS col1, - 52
----
19
-52

skipif mysql # not compatible
query II rowsort label-3371
SELECT SUM ( 19 ) AS col1, - 52
----
19
-52

query I rowsort
SELECT 41 * 52 + - - 81 * - 63
----
-2971

onlyif mysql # DIV for integer division: 
query I rowsort label-3373
SELECT + 12 DIV 79 + - 75 AS col0
----
-75

skipif mysql # not compatible
query I rowsort label-3373
SELECT + 12 / 79 + - 75 AS col0
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-3374
SELECT - 34 * - COALESCE ( + - COUNT( * ), - - 12 )
----
-34

skipif mysql # not compatible
query I rowsort label-3374
SELECT - 34 * - COALESCE ( + - COUNT ( * ), - - 12 )
----
-34

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3376
SELECT DISTINCT + CASE NULLIF ( 21, + + 35 ) WHEN 86 THEN - - 94 WHEN - 93 * 2 + + 57 THEN NULL END / COUNT( * ) + - + NULLIF ( 22, + + 45 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3376
SELECT DISTINCT + CASE NULLIF ( 21, + + 35 ) WHEN 86 THEN - - 94 WHEN - 93 * 2 + + 57 THEN NULL END / COUNT ( * ) + - + NULLIF ( 22, + + 45 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3377
SELECT - MAX( - + 20 ) * + - 73 + + 78
----
-1382

skipif mysql # not compatible
query I rowsort label-3377
SELECT - MAX ( - + 20 ) * + - 73 + + 78
----
-1382

onlyif mysql # aggregate syntax: 
query I rowsort label-3378
SELECT ALL + COUNT( 77 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3378
SELECT ALL + COUNT ( 77 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-3379
SELECT - 98 * COUNT( * ) * 95, 97 AS col2
----
-9310
97

skipif mysql # not compatible
query II rowsort label-3379
SELECT - 98 * COUNT ( * ) * 95, 97 AS col2
----
-9310
97

onlyif mysql # DIV for integer division: 
query I rowsort label-3380
SELECT DISTINCT + 88 DIV - 50
----
-1

skipif mysql # not compatible
query I rowsort label-3380
SELECT DISTINCT + 88 / - 50
----
-1

query I rowsort
SELECT - 62 * - 11 AS col2
----
682

query I rowsort
SELECT 79 * + 55 + + - 17 * COALESCE ( - 51, + 79 ) + 6
----
5218

onlyif mysql # aggregate syntax: 
query I rowsort label-3383
SELECT ( - SUM( + 54 ) ) AS col2
----
-54

skipif mysql # not compatible
query I rowsort label-3383
SELECT ( - SUM ( + 54 ) ) AS col2
----
-54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3384
SELECT ALL - CAST( - 75 AS SIGNED )
----
75

skipif mysql # not compatible
query I rowsort label-3384
SELECT ALL - CAST ( - 75 AS INTEGER )
----
75

onlyif mysql # DIV for integer division: 
query I rowsort label-3385
SELECT 32 DIV - 32
----
-1

skipif mysql # not compatible
query I rowsort label-3385
SELECT 32 / - 32
----
-1

query I rowsort
SELECT 98 * - 21 - - COALESCE ( - - 92, - 28 )
----
-1966

onlyif mysql # aggregate syntax: 
query I rowsort label-3387
SELECT ALL + 71 + 74 + - COUNT( * ) * 54 * ( 96 ) * 2 + + 27 + CASE COUNT( * ) WHEN + 59 + 81 THEN - + 18 ELSE - 36 * 74 END - - 12 + + COALESCE ( + - 99, - COALESCE ( ( 17 ), 71 + 44, 21 * 86 + - COUNT( * ) ) * 63 - + 47 * ( + 31 * 62 + + 78 ) ) - COUNT( ALL 63 ) * 48
----
-12995

skipif mysql # not compatible
query I rowsort label-3387
SELECT ALL + 71 + 74 + - COUNT ( * ) * 54 * ( 96 ) * 2 + + 27 + CASE COUNT ( * ) WHEN + 59 + 81 THEN - + 18 ELSE - 36 * 74 END - - 12 + + COALESCE ( + - 99, - COALESCE ( ( 17 ), 71 + 44, 21 * 86 + - COUNT ( * ) ) * 63 - + 47 * ( + 31 * 62 + + 78 ) ) - COUNT ( ALL 63 ) * 48
----
-12995

onlyif mysql # aggregate syntax: 
query I rowsort label-3388
SELECT DISTINCT 61 + + COUNT( * )
----
62

skipif mysql # not compatible
query I rowsort label-3388
SELECT DISTINCT 61 + + COUNT ( * )
----
62

query I rowsort
SELECT DISTINCT - 8 + + - 8 * - + 79 AS col2
----
624

onlyif mysql # aggregate syntax: 
query I rowsort label-3390
SELECT ALL 37 + COUNT( * ) + 35 + - + 38 * 46 AS col0
----
-1675

skipif mysql # not compatible
query I rowsort label-3390
SELECT ALL 37 + COUNT ( * ) + 35 + - + 38 * 46 AS col0
----
-1675

onlyif mysql # aggregate syntax: 
query II rowsort label-3391
SELECT ALL + - ( - + ( - COALESCE ( 95, + ( + - 98 ), COUNT( * ) * + ( - ( - - 11 ) ) ) ) ) + - 9 AS col1, COUNT( * )
----
-104
1

skipif mysql # not compatible
query II rowsort label-3391
SELECT ALL + - ( - + ( - COALESCE ( 95, + ( + - 98 ), COUNT ( * ) * + ( - ( - - 11 ) ) ) ) ) + - 9 AS col1, COUNT ( * )
----
-104
1

query I rowsort
SELECT - 20 - 51 AS col2
----
-71

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

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

query I rowsort
SELECT - 64 + + - 50
----
-114

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

skipif mysql # not compatible
query I rowsort label-3395
SELECT - - MAX ( DISTINCT 52 )
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-3396
SELECT ALL + NULLIF ( - COUNT( * ), COUNT( ALL + + 32 ) * - - 38 + + 47 )
----
-1

skipif mysql # not compatible
query I rowsort label-3396
SELECT ALL + NULLIF ( - COUNT ( * ), COUNT ( ALL + + 32 ) * - - 38 + + 47 )
----
-1

query I rowsort
SELECT 73 + + + 34 + 6 AS col1
----
113

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

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

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

skipif mysql # not compatible
query I rowsort label-3399
SELECT CAST ( NULL AS INTEGER ) + + - 90 + + 38 AS col0
----
NULL

query I rowsort
SELECT + COALESCE ( + 8, + 49 * - - 56 )
----
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3401
SELECT + COUNT( * ) + + 47 + + 5 * - + CAST( NULL AS SIGNED ) - + CAST( 92 AS SIGNED ) * NULLIF ( - + 50, - - 59 ) * + 92 + - - COALESCE ( - 15, - 1 ) * + 66 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3401
SELECT + COUNT ( * ) + + 47 + + 5 * - + CAST ( NULL AS INTEGER ) - + CAST ( 92 AS INTEGER ) * NULLIF ( - + 50, - - 59 ) * + 92 + - - COALESCE ( - 15, - 1 ) * + 66 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3402
SELECT ALL + SUM( 89 ) + - 19 + COUNT( * ) * + + COALESCE ( - 63, + 54, - NULLIF ( - - 10, COALESCE ( 20, + ( - 25 ) * 52 + + - CAST( + - 47 AS SIGNED ) / + 97 ) ) ) * - - 12 * 97 * 33 AS col2
----
-2419886

skipif mysql # not compatible
query I rowsort label-3402
SELECT ALL + SUM ( 89 ) + - 19 + COUNT ( * ) * + + COALESCE ( - 63, + 54, - NULLIF ( - - 10, COALESCE ( 20, + ( - 25 ) * 52 + + - CAST ( + - 47 AS INTEGER ) / + 97 ) ) ) * - - 12 * 97 * 33 AS col2
----
-2419886

onlyif mysql # aggregate syntax: 
query I rowsort label-3403
SELECT ALL + CASE WHEN NOT COUNT( + 41 ) IS NOT NULL THEN + 21 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3403
SELECT ALL + CASE WHEN NOT COUNT ( + 41 ) IS NOT NULL THEN + 21 ELSE NULL END AS col0
----
NULL

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

skipif mysql # not compatible
query I rowsort label-3404
SELECT CAST ( NULL AS INTEGER ) + + 78 / + 80 - - 77
----
NULL

query I rowsort
SELECT 88 + + + 7 + - 51
----
44

query I rowsort
SELECT 19 * + 8
----
152

query I rowsort
SELECT DISTINCT - 71 - + + 64 AS col0
----
-135

query I rowsort
SELECT 26 + + - 11
----
15

onlyif mysql # DIV for integer division: 
query I rowsort label-3409
SELECT ALL 22 - COALESCE ( - 84, 30, + ( - ( ( + 66 ) ) ) + + 63 DIV - - 63 + - 78 * + 7 * - - 93 ) + + 48 * + + 58 col2
----
2890

skipif mysql # not compatible
query I rowsort label-3409
SELECT ALL 22 - COALESCE ( - 84, 30, + ( - ( ( + 66 ) ) ) + + 63 / - - 63 + - 78 * + 7 * - - 93 ) + + 48 * + + 58 col2
----
2890

query I rowsort
SELECT 33 * - 92
----
-3036

onlyif mysql # aggregate syntax: 
query I rowsort label-3411
SELECT ALL NULLIF ( + + 75, - + 28 ) * - - 69 * - 82 + - + COUNT( * ) * - + MIN( - 60 )
----
-424410

skipif mysql # not compatible
query I rowsort label-3411
SELECT ALL NULLIF ( + + 75, - + 28 ) * - - 69 * - 82 + - + COUNT ( * ) * - + MIN ( - 60 )
----
-424410

query I rowsort
SELECT DISTINCT ( - + 99 ) * - NULLIF ( - 12, AVG ( 76 ) )
----
-1188

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

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

query I rowsort
SELECT 2 * - + COALESCE ( 8, 64, + 0 * 54 ) + + + 39
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-3415
SELECT ALL - MAX( DISTINCT + 76 )
----
-76

skipif mysql # not compatible
query I rowsort label-3415
SELECT ALL - MAX ( DISTINCT + 76 )
----
-76

query II rowsort
SELECT 57 * 1, + 24 * 4 AS col2
----
57
96

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

skipif mysql # not compatible
query II rowsort label-3417
SELECT 61 + - + COUNT ( * ) AS col2, 75 AS col1
----
60
75

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3418
SELECT DISTINCT - CASE + 91 WHEN - CAST( NULL AS SIGNED ) THEN + 59 ELSE NULL END AS col0, + 30 * - 46 AS col0
----
NULL
-1380

skipif mysql # not compatible
query II rowsort label-3418
SELECT DISTINCT - CASE + 91 WHEN - CAST ( NULL AS INTEGER ) THEN + 59 ELSE NULL END AS col0, + 30 * - 46 AS col0
----
NULL
-1380

onlyif mysql # aggregate syntax: 
query I rowsort label-3419
SELECT ALL - 2 + + 48 + - - COUNT( * ) + - + MIN( ALL 79 ) AS col2
----
-32

skipif mysql # not compatible
query I rowsort label-3419
SELECT ALL - 2 + + 48 + - - COUNT ( * ) + - + MIN ( ALL 79 ) AS col2
----
-32

query I rowsort
SELECT ALL - 39 + + 30 - - 54 * + 79
----
4257

query I rowsort
SELECT DISTINCT 14 + 26 AS col2
----
40

query I rowsort
SELECT DISTINCT - 30 * + 56 AS col2
----
-1680

query I rowsort
SELECT DISTINCT 32 + - 88 * + 51
----
-4456

query I rowsort
SELECT DISTINCT + 67 + 38 AS col1
----
105

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3425
SELECT ALL - 20 * + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3425
SELECT ALL - 20 * + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3426
SELECT DISTINCT + - SUM( + + 7 ) + + + CAST( 57 AS SIGNED ) col2
----
50

skipif mysql # not compatible
query I rowsort label-3426
SELECT DISTINCT + - SUM ( + + 7 ) + + + CAST ( 57 AS INTEGER ) col2
----
50

query I rowsort
SELECT 95 * 11
----
1045

onlyif mysql # aggregate syntax: 
query I rowsort label-3428
SELECT - COUNT( * ) * + - MIN( - - 37 ) + - 33 AS col1
----
4

skipif mysql # not compatible
query I rowsort label-3428
SELECT - COUNT ( * ) * + - MIN ( - - 37 ) + - 33 AS col1
----
4

query II rowsort
SELECT ALL + 68 + + 11 col1, - 36
----
79
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-3430
SELECT DISTINCT + + COUNT( * ) * + NULLIF ( 26, + 35 )
----
26

skipif mysql # not compatible
query I rowsort label-3430
SELECT DISTINCT + + COUNT ( * ) * + NULLIF ( 26, + 35 )
----
26

query I rowsort
SELECT DISTINCT + - 78 - - - 46
----
-124

query I rowsort
SELECT DISTINCT ( + 42 )
----
42

query I rowsort
SELECT DISTINCT + 75 - 80 AS col2
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-3434
SELECT ALL - + 36 * - + 9 * + + MAX( 27 )
----
8748

skipif mysql # not compatible
query I rowsort label-3434
SELECT ALL - + 36 * - + 9 * + + MAX ( 27 )
----
8748

query II rowsort
SELECT - ( + 88 ) AS col2, 80 AS col1
----
-88
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3436
SELECT + NULLIF ( - 40, CAST( - ( 33 ) AS SIGNED ) / - 91 + - - 8 - - 8 * - 56 ) * + + AVG ( + 81 ) * - 3 + - + 84 - + 97 * - + CAST( NULL AS SIGNED ) * - COALESCE ( - + 32, - + CAST( 42 AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3436
SELECT + NULLIF ( - 40, CAST ( - ( 33 ) AS INTEGER ) / - 91 + - - 8 - - 8 * - 56 ) * + + AVG ( + 81 ) * - 3 + - + 84 - + 97 * - + CAST ( NULL AS INTEGER ) * - COALESCE ( - + 32, - + CAST ( 42 AS INTEGER ) )
----
NULL

query I rowsort
SELECT - - ( 70 ) AS col1
----
70

query I rowsort
SELECT ALL 99 * + 67 * 65
----
431145

query I rowsort
SELECT 7 - - 35 col1
----
42

query II rowsort
SELECT DISTINCT CASE - 94 WHEN + 85 THEN + - 57 + + 28 ELSE - 45 + + 49 + + 2 END, 58 + - - 83 col2
----
6
141

onlyif mysql # DIV for integer division: 
query I rowsort label-3441
SELECT 32 DIV - 96
----
0

skipif mysql # not compatible
query I rowsort label-3441
SELECT 32 / - 96
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3442
SELECT ALL COALESCE ( - ( 92 ), + + 62 * 30, - 14 - + 58 + 53 + 36 + - - 77 + + COUNT( * ) * - - 23 DIV - - 50 * - 19 * - - 38 + MIN( DISTINCT - - 61 ) * - 60 * + 3 * NULLIF ( - 85, + 82 ) * + 51 )
----
-92

skipif mysql # not compatible
query I rowsort label-3442
SELECT ALL COALESCE ( - ( 92 ), + + 62 * 30, - 14 - + 58 + 53 + 36 + - - 77 + + COUNT ( * ) * - - 23 / - - 50 * - 19 * - - 38 + MIN ( DISTINCT - - 61 ) * - 60 * + 3 * NULLIF ( - 85, + 82 ) * + 51 )
----
-92

query II rowsort
SELECT ALL 75 AS col1, + 73 + + 80 AS col0
----
75
153

onlyif mysql # aggregate syntax: 
query I rowsort label-3444
SELECT - MIN( ALL - 99 )
----
99

skipif mysql # not compatible
query I rowsort label-3444
SELECT - MIN ( ALL - 99 )
----
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3445
SELECT COALESCE ( - - 96, 56 + + COALESCE ( - 77, - ( - 1 ), + 27 * + + ( 0 ) DIV - NULLIF ( - 56, - - 32 + + COALESCE ( 55, ( 14 ) - 3 ) + - - 97 + - - ( - 68 ) + - COUNT( * ) * + CAST( + 41 AS SIGNED ) * ( COUNT( * ) ) ) * 27 ) )
----
96

skipif mysql # not compatible
query I rowsort label-3445
SELECT COALESCE ( - - 96, 56 + + COALESCE ( - 77, - ( - 1 ), + 27 * + + ( 0 ) / - NULLIF ( - 56, - - 32 + + COALESCE ( 55, ( 14 ) - 3 ) + - - 97 + - - ( - 68 ) + - COUNT ( * ) * + CAST ( + 41 AS INTEGER ) * ( COUNT ( * ) ) ) * 27 ) )
----
96

onlyif mysql # DIV for integer division: 
query I rowsort label-3446
SELECT 15 DIV - - 82 * - 10 + 32 AS col1
----
32

skipif mysql # not compatible
query I rowsort label-3446
SELECT 15 / - - 82 * - 10 + 32 AS col1
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-3447
SELECT + 27 - + + 23 * - MIN( + 90 ) AS col0
----
2097

skipif mysql # not compatible
query I rowsort label-3447
SELECT + 27 - + + 23 * - MIN ( + 90 ) AS col0
----
2097

onlyif mysql # DIV for integer division: 
query I rowsort label-3448
SELECT ALL 33 DIV + 80 * 53
----
0

skipif mysql # not compatible
query I rowsort label-3448
SELECT ALL 33 / + 80 * 53
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3449
SELECT + 39 DIV + 71
----
0

skipif mysql # not compatible
query I rowsort label-3449
SELECT + 39 / + 71
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3450
SELECT + MAX( + 42 )
----
42

skipif mysql # not compatible
query I rowsort label-3450
SELECT + MAX ( + 42 )
----
42

onlyif mysql # DIV for integer division: 
query I rowsort label-3451
SELECT ALL 28 * 94 * + - NULLIF ( + 80, - 67 ) + 41 DIV + - 35
----
-210561

skipif mysql # not compatible
query I rowsort label-3451
SELECT ALL 28 * 94 * + - NULLIF ( + 80, - 67 ) + 41 / + - 35
----
-210561

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3452
SELECT CASE + + 80 WHEN - CAST( NULL AS SIGNED ) THEN - COUNT( DISTINCT - 22 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-3452
SELECT CASE + + 80 WHEN - CAST ( NULL AS INTEGER ) THEN - COUNT ( DISTINCT - 22 ) END
----
NULL

query I rowsort
SELECT + 15 * + 35 * 87 + - - 80
----
45755

query I rowsort
SELECT ALL 79 * + 39 * 60
----
184860

onlyif mysql # aggregate syntax: 
query I rowsort label-3455
SELECT + CASE + NULLIF ( + + 14, + + 54 * ( + 90 ) ) WHEN - COUNT( * ) + - 90 * - 28 THEN - 47 + 87 + AVG ( - 49 ) / + + SUM( + 5 ) WHEN + + 25 * + MAX( DISTINCT - + 21 ) * - 86 + + 99 * - COUNT( * ) THEN NULL ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3455
SELECT + CASE + NULLIF ( + + 14, + + 54 * ( + 90 ) ) WHEN - COUNT ( * ) + - 90 * - 28 THEN - 47 + 87 + AVG ( - 49 ) / + + SUM ( + 5 ) WHEN + + 25 * + MAX ( DISTINCT - + 21 ) * - 86 + + 99 * - COUNT ( * ) THEN NULL ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3456
SELECT + 31 * - COUNT( * )
----
-31

skipif mysql # not compatible
query I rowsort label-3456
SELECT + 31 * - COUNT ( * )
----
-31

query II rowsort
SELECT 89 AS col1, 20 * 21 col2
----
89
420

query I rowsort
SELECT - 2 * + 82
----
-164

query I rowsort
SELECT + NULLIF ( 25, - + 99 * 48 + 2 ) AS col2
----
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3460
SELECT 20 * CAST( NULL AS SIGNED ) + + - NULLIF ( + - 82, CAST( NULL AS SIGNED ) ) * - COUNT( * ) + - 98
----
NULL

skipif mysql # not compatible
query I rowsort label-3460
SELECT 20 * CAST ( NULL AS INTEGER ) + + - NULLIF ( + - 82, CAST ( NULL AS INTEGER ) ) * - COUNT ( * ) + - 98
----
NULL

query I rowsort
SELECT DISTINCT + + 94 AS col2
----
94

query I rowsort
SELECT + ( - 62 ) * 13 - - + 31 + - 89 * 26 col0
----
-3089

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3463
SELECT DISTINCT + NULLIF ( - 70, - + 44 + - ( + + COALESCE ( 50, + 43, + + 18 ) ) ) AS col0, CAST( NULL AS SIGNED ) * + ( + 35 ) * - 63 AS col0
----
-70
NULL

skipif mysql # not compatible
query II rowsort label-3463
SELECT DISTINCT + NULLIF ( - 70, - + 44 + - ( + + COALESCE ( 50, + 43, + + 18 ) ) ) AS col0, CAST ( NULL AS INTEGER ) * + ( + 35 ) * - 63 AS col0
----
-70
NULL

query I rowsort
SELECT ALL - - 13 * + 35 AS col1
----
455

onlyif mysql # DIV for integer division: 
query I rowsort label-3465
SELECT ALL - 37 DIV - - 81 * + 51
----
0

skipif mysql # not compatible
query I rowsort label-3465
SELECT ALL - 37 / - - 81 * + 51
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3466
SELECT ALL - SUM( ALL + - 19 ) AS col0
----
19

skipif mysql # not compatible
query I rowsort label-3466
SELECT ALL - SUM ( ALL + - 19 ) AS col0
----
19

query I rowsort
SELECT ALL - ( + - 76 ) AS col1
----
76

query I rowsort
SELECT - + 93 * - 56 AS col2
----
5208

query I rowsort
SELECT ALL - 71 * - 72
----
5112

query I rowsort
SELECT ALL + + 33 * 65 AS col1
----
2145

onlyif mysql # aggregate syntax: 
query I rowsort label-3471
SELECT + + 7 + + COUNT( * ) AS col1
----
8

skipif mysql # not compatible
query I rowsort label-3471
SELECT + + 7 + + COUNT ( * ) AS col1
----
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3472
SELECT - 85 * - + CAST( NULL AS SIGNED ) + + - COUNT( ALL + - 26 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3472
SELECT - 85 * - + CAST ( NULL AS INTEGER ) + + - COUNT ( ALL + - 26 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3473
SELECT ALL + 10 * + CASE + + NULLIF ( 34, 0 ) WHEN + AVG ( - 79 ) THEN - + 20 + COUNT( * ) / 21 WHEN 70 - - + COALESCE ( ( ( + + 90 ) ), + MIN( ALL - - 40 ) * + - COUNT( * ) - - 70 ) THEN NULL END * + 16 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3473
SELECT ALL + 10 * + CASE + + NULLIF ( 34, 0 ) WHEN + AVG ( - 79 ) THEN - + 20 + COUNT ( * ) / 21 WHEN 70 - - + COALESCE ( ( ( + + 90 ) ), + MIN ( ALL - - 40 ) * + - COUNT ( * ) - - 70 ) THEN NULL END * + 16 col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3474
SELECT ALL - - COUNT( * ) * + + 44 + - COUNT( * ) - + + 8 DIV + - 94 AS col2
----
43

skipif mysql # not compatible
query I rowsort label-3474
SELECT ALL - - COUNT ( * ) * + + 44 + - COUNT ( * ) - + + 8 / + - 94 AS col2
----
43

query I rowsort
SELECT - 81 + + 23
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-3476
SELECT DISTINCT MIN( + + 65 ) AS col0
----
65

skipif mysql # not compatible
query I rowsort label-3476
SELECT DISTINCT MIN ( + + 65 ) AS col0
----
65

query II rowsort
SELECT ALL ( 66 ) AS col0, - ( + 66 )
----
66
-66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3478
SELECT - 58 + CAST( NULL AS SIGNED ) * - 40 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3478
SELECT - 58 + CAST ( NULL AS INTEGER ) * - 40 AS col0
----
NULL

query II rowsort
SELECT 33 AS col2, ( 90 ) AS col1
----
33
90

query I rowsort
SELECT - 34 + 81
----
47

query I rowsort
SELECT ALL - 83 + - 35 + 48
----
-70

query I rowsort
SELECT ALL ( 1 )
----
1

query II rowsort
SELECT 14 AS col2, 78
----
14
78

onlyif mysql # aggregate syntax: 
query I rowsort label-3484
SELECT + COUNT( * ) + - + 54 * + ( - 5 )
----
271

skipif mysql # not compatible
query I rowsort label-3484
SELECT + COUNT ( * ) + - + 54 * + ( - 5 )
----
271

query I rowsort
SELECT ALL ( 86 ) AS col2
----
86

query I rowsort
SELECT - 98 * 33 AS col1
----
-3234

query I rowsort
SELECT + 4 + - 34
----
-30

query I rowsort
SELECT DISTINCT - 39 + - 10 * + 36 AS col2
----
-399

onlyif mysql # aggregate syntax: 
query I rowsort label-3489
SELECT - MIN( ALL - 90 ) AS col0
----
90

skipif mysql # not compatible
query I rowsort label-3489
SELECT - MIN ( ALL - 90 ) AS col0
----
90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3490
SELECT DISTINCT + COUNT( * ) DIV - COUNT( * ) + - COUNT( * ) + + ( - 8 )
----
-10

skipif mysql # not compatible
query I rowsort label-3490
SELECT DISTINCT + COUNT ( * ) / - COUNT ( * ) + - COUNT ( * ) + + ( - 8 )
----
-10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3491
SELECT CAST( + MIN( + 42 ) AS SIGNED )
----
42

skipif mysql # not compatible
query I rowsort label-3491
SELECT CAST ( + MIN ( + 42 ) AS INTEGER )
----
42

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3492
SELECT DISTINCT COUNT( * ) DIV + 96 + - - 72 + 0 * + 96 + + 27 * - 90 col1
----
-2358

skipif mysql # not compatible
query I rowsort label-3492
SELECT DISTINCT COUNT ( * ) / + 96 + - - 72 + 0 * + 96 + + 27 * - 90 col1
----
-2358

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3493
SELECT + 29 * - 49 + - 72 * 31 DIV + COUNT( * )
----
-3653

skipif mysql # not compatible
query I rowsort label-3493
SELECT + 29 * - 49 + - 72 * 31 / + COUNT ( * )
----
-3653

onlyif mysql # aggregate syntax: 
query I rowsort label-3494
SELECT + ( NULLIF ( - 36, + + MIN( DISTINCT + NULLIF ( - - 81, + + 58 * + 73 ) ) + COUNT( * ) ) ) AS col1
----
-36

skipif mysql # not compatible
query I rowsort label-3494
SELECT + ( NULLIF ( - 36, + + MIN ( DISTINCT + NULLIF ( - - 81, + + 58 * + 73 ) ) + COUNT ( * ) ) ) AS col1
----
-36

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3495
SELECT DISTINCT + COUNT( + 59 ) DIV - - MAX( DISTINCT - ( - + 84 ) ) - - + 2 AS col2, + ( 91 )
----
2
91

skipif mysql # not compatible
query II rowsort label-3495
SELECT DISTINCT + COUNT ( + 59 ) / - - MAX ( DISTINCT - ( - + 84 ) ) - - + 2 AS col2, + ( 91 )
----
2
91

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3496
SELECT ALL + 6 DIV 22 - 65 + - 26 * 7 + ( - MAX( DISTINCT 82 ) ) + - 37, 60 AS col1
----
-366
60

skipif mysql # not compatible
query II rowsort label-3496
SELECT ALL + 6 / 22 - 65 + - 26 * 7 + ( - MAX ( DISTINCT 82 ) ) + - 37, 60 AS col1
----
-366
60

onlyif mysql # aggregate syntax: 
query I rowsort label-3497
SELECT + 44 * + CASE + 4 WHEN - ( - - 67 ) THEN + COALESCE ( - - MAX( ALL - 15 ), + 54 ) * + 89 * + COUNT( * ) + - - 65 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3497
SELECT + 44 * + CASE + 4 WHEN - ( - - 67 ) THEN + COALESCE ( - - MAX ( ALL - 15 ), + 54 ) * + 89 * + COUNT ( * ) + - - 65 END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3498
SELECT + 13 * ( CAST( NULL AS SIGNED ) ) * + MAX( - - 22 ) + + 3 + + + NULLIF ( + 67, + 27 * COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3498
SELECT + 13 * ( CAST ( NULL AS INTEGER ) ) * + MAX ( - - 22 ) + + 3 + + + NULLIF ( + 67, + 27 * COUNT ( * ) )
----
NULL

query I rowsort
SELECT ALL - 27 * - 96
----
2592

onlyif mysql # aggregate syntax: 
query I rowsort label-3500
SELECT + + COUNT( * ) + 90
----
91

skipif mysql # not compatible
query I rowsort label-3500
SELECT + + COUNT ( * ) + 90
----
91

onlyif mysql # aggregate syntax: 
query II rowsort label-3501
SELECT ALL + COUNT( * ), 96 - - NULLIF ( - 26, - + COUNT( * ) ) AS col2
----
1
70

skipif mysql # not compatible
query II rowsort label-3501
SELECT ALL + COUNT ( * ), 96 - - NULLIF ( - 26, - + COUNT ( * ) ) AS col2
----
1
70

onlyif mysql # aggregate syntax: 
query II rowsort label-3502
SELECT DISTINCT + - COUNT( * ) AS col2, + 37 AS col0
----
-1
37

skipif mysql # not compatible
query II rowsort label-3502
SELECT DISTINCT + - COUNT ( * ) AS col2, + 37 AS col0
----
-1
37

query I rowsort
SELECT ALL + + ( + 7 ) AS col1
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-3504
SELECT ALL 94 * - CASE - + 98 WHEN - 82 THEN + - CASE - - COUNT( ALL + 31 ) WHEN - COUNT( * ) THEN + 84 WHEN - + 88 - + 68 THEN + ( - 78 ) WHEN - COALESCE ( 75, SUM( ALL + 96 ) * 64 ) - - 39 THEN 46 END END * + - 32 + - COUNT( * ) - + 82 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3504
SELECT ALL 94 * - CASE - + 98 WHEN - 82 THEN + - CASE - - COUNT ( ALL + 31 ) WHEN - COUNT ( * ) THEN + 84 WHEN - + 88 - + 68 THEN + ( - 78 ) WHEN - COALESCE ( 75, SUM ( ALL + 96 ) * 64 ) - - 39 THEN 46 END END * + - 32 + - COUNT ( * ) - + 82 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3505
SELECT DISTINCT SUM( - 64 ) * + 76
----
-4864

skipif mysql # not compatible
query I rowsort label-3505
SELECT DISTINCT SUM ( - 64 ) * + 76
----
-4864

query I rowsort
SELECT + - 47 * 26
----
-1222

query I rowsort
SELECT 31 * - - 85 + - 4 + - ( - CASE WHEN NOT + 18 > - 18 THEN NULL ELSE + 1 END ) * + 81 + - 27 * - + 94 + 6 AS col0
----
5256

onlyif mysql # aggregate syntax: 
query II rowsort label-3508
SELECT ALL COUNT( * ) AS col2, MIN( ALL - - 98 )
----
1
98

skipif mysql # not compatible
query II rowsort label-3508
SELECT ALL COUNT ( * ) AS col2, MIN ( ALL - - 98 )
----
1
98

query I rowsort
SELECT - COALESCE ( - 24, + 9 ) + ( + - 15 ) AS col0
----
9

query II rowsort
SELECT ALL + 9 AS col0, + ( - + 38 ) * + 51 col0
----
9
-1938

query I rowsort
SELECT DISTINCT 39 * - + 68 * - + 23 + + - 67 - + 47 * - 28 * 73 AS col1
----
156997

query I rowsort
SELECT ALL + + 68 * + 63 AS col0
----
4284

onlyif mysql # aggregate syntax: 
query I rowsort label-3513
SELECT DISTINCT - - COUNT( * ) * - - 84 * + 91 + NULLIF ( - + 30, - 72 )
----
7614

skipif mysql # not compatible
query I rowsort label-3513
SELECT DISTINCT - - COUNT ( * ) * - - 84 * + 91 + NULLIF ( - + 30, - 72 )
----
7614

onlyif mysql # aggregate syntax: 
query I rowsort label-3514
SELECT DISTINCT - 18 * + 51 + + MAX( - 98 ) AS col0
----
-1016

skipif mysql # not compatible
query I rowsort label-3514
SELECT DISTINCT - 18 * + 51 + + MAX ( - 98 ) AS col0
----
-1016

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3515
SELECT DISTINCT COUNT( * ) DIV + 52
----
0

skipif mysql # not compatible
query I rowsort label-3515
SELECT DISTINCT COUNT ( * ) / + 52
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3516
SELECT - 34 DIV + ( - 66 )
----
0

skipif mysql # not compatible
query I rowsort label-3516
SELECT - 34 / + ( - 66 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3517
SELECT ALL + CAST( NULL AS SIGNED ) * + 55, 45 AS col1
----
NULL
45

skipif mysql # not compatible
query II rowsort label-3517
SELECT ALL + CAST ( NULL AS INTEGER ) * + 55, 45 AS col1
----
NULL
45

onlyif mysql # DIV for integer division: 
query I rowsort label-3518
SELECT ( + 16 ) DIV - 34 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3518
SELECT ( + 16 ) / - 34 AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3519
SELECT 61 DIV + 44 AS col2, COUNT( * ) * - 53
----
1
-53

skipif mysql # not compatible
query II rowsort label-3519
SELECT 61 / + 44 AS col2, COUNT ( * ) * - 53
----
1
-53

query II rowsort
SELECT ALL + 16 + - + 6 AS col0, - 93 - + 11
----
10
-104

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3521
SELECT CAST( NULL AS SIGNED ) * - MAX( + 49 ) * 23 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3521
SELECT CAST ( NULL AS INTEGER ) * - MAX ( + 49 ) * 23 AS col1
----
NULL

query I rowsort
SELECT 70 * + - 90 * - ( + 69 ) * + 75
----
32602500

query II rowsort
SELECT 41 - + - 91 col2, 12 * + 95 AS col2
----
132
1140

query I rowsort
SELECT 60 * 67
----
4020

query II rowsort
SELECT 41 + 82 AS col0, - 20 AS col0
----
123
-20

onlyif mysql # DIV for integer division: 
query I rowsort label-3526
SELECT 90 DIV 86 + + 17
----
18

skipif mysql # not compatible
query I rowsort label-3526
SELECT 90 / 86 + + 17
----
18

query I rowsort
SELECT + 25 * + 3 - + 42
----
33

query I rowsort
SELECT 92 + - + 77 - + 4 AS col2
----
11

query I rowsort
SELECT DISTINCT + 8 * - + 5 AS col0
----
-40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3530
SELECT ALL + ( + 91 ) * + CAST( NULL AS SIGNED ) / 28 * + 95 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3530
SELECT ALL + ( + 91 ) * + CAST ( NULL AS INTEGER ) / 28 * + 95 AS col0
----
NULL

query I rowsort
SELECT + 42 * - + 7 + - 2 AS col1
----
-296

onlyif mysql # aggregate syntax: 
query II rowsort label-3532
SELECT ALL - 81 * 9 AS col0, + 33 * + - MAX( 91 ) + + - 22 * + COUNT( * )
----
-729
-3025

skipif mysql # not compatible
query II rowsort label-3532
SELECT ALL - 81 * 9 AS col0, + 33 * + - MAX ( 91 ) + + - 22 * + COUNT ( * )
----
-729
-3025

query I rowsort
SELECT DISTINCT + - 4 * + 92
----
-368

onlyif mysql # aggregate syntax: 
query I rowsort label-3534
SELECT ALL + COUNT( * ) * + - 96 + - + 36 AS col1
----
-132

skipif mysql # not compatible
query I rowsort label-3534
SELECT ALL + COUNT ( * ) * + - 96 + - + 36 AS col1
----
-132

onlyif mysql # aggregate syntax: 
query I rowsort label-3535
SELECT DISTINCT - MIN( DISTINCT CASE 73 WHEN - + 14 THEN - 48 ELSE NULL END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3535
SELECT DISTINCT - MIN ( DISTINCT CASE 73 WHEN - + 14 THEN - 48 ELSE NULL END ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3536
SELECT + 21 DIV - 43 + - + 42, COUNT( * ) AS col0
----
-42
1

skipif mysql # not compatible
query II rowsort label-3536
SELECT + 21 / - 43 + - + 42, COUNT ( * ) AS col0
----
-42
1

query I rowsort
SELECT DISTINCT - + 65 col2
----
-65

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3538
SELECT COUNT( * ) DIV 28, - 67 AS col0
----
0
-67

skipif mysql # not compatible
query II rowsort label-3538
SELECT COUNT ( * ) / 28, - 67 AS col0
----
0
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-3539
SELECT COUNT( * ) * + 86 + COUNT( * ) + - - COUNT( DISTINCT + - 56 ) + - - ( + 9 ) * + 85
----
853

skipif mysql # not compatible
query I rowsort label-3539
SELECT COUNT ( * ) * + 86 + COUNT ( * ) + - - COUNT ( DISTINCT + - 56 ) + - - ( + 9 ) * + 85
----
853

onlyif mysql # DIV for integer division: 
query I rowsort label-3540
SELECT - COALESCE ( - 90, 44 ) * ( - 41 ) - - - ( + 50 ) DIV 36 AS col2
----
-3691

skipif mysql # not compatible
query I rowsort label-3540
SELECT - COALESCE ( - 90, 44 ) * ( - 41 ) - - - ( + 50 ) / 36 AS col2
----
-3691

query I rowsort
SELECT ( - + 73 )
----
-73

query I rowsort
SELECT + 80 + + 1 * + 22 + - - 30 - 29 + + 59
----
162

onlyif mysql # aggregate syntax: 
query I rowsort label-3543
SELECT ALL + 94 + - 92 * - COUNT( * )
----
186

skipif mysql # not compatible
query I rowsort label-3543
SELECT ALL + 94 + - 92 * - COUNT ( * )
----
186

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3544
SELECT 11 * - CAST( NULL AS SIGNED ) * + - SUM( - 25 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3544
SELECT 11 * - CAST ( NULL AS INTEGER ) * + - SUM ( - 25 ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3545
SELECT ALL AVG ( - + 70 ) + 23 + + - 48 * CAST( NULL AS SIGNED ) * + 26 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3545
SELECT ALL AVG ( - + 70 ) + 23 + + - 48 * CAST ( NULL AS INTEGER ) * + 26 AS col1
----
NULL

query I rowsort
SELECT DISTINCT - ( + - 98 ) * + 74 AS col2
----
7252

query I rowsort
SELECT 38 * - 44 + - + 2
----
-1674

query I rowsort
SELECT 42 - + 92 + - 45 AS col0
----
-95

query I rowsort
SELECT + 54 * - ( + 50 ) * 50 - - 51 AS col1
----
-134949

query I rowsort
SELECT 25 + - 80 + + 73 * - 85
----
-6260

onlyif mysql # aggregate syntax: 
query I rowsort label-3551
SELECT ALL 10 + 17 + CASE - 73 WHEN 88 THEN NULL ELSE COUNT( * ) END + - + COUNT( * ) * - + MAX( - 64 ) * + + 44 AS col2
----
-2788

skipif mysql # not compatible
query I rowsort label-3551
SELECT ALL 10 + 17 + CASE - 73 WHEN 88 THEN NULL ELSE COUNT ( * ) END + - + COUNT ( * ) * - + MAX ( - 64 ) * + + 44 AS col2
----
-2788

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3552
SELECT COALESCE ( + - 73, + 12, - 94 DIV + 18 + - + CAST( + + 21 AS SIGNED ) ) + + 16 AS col2
----
-57

skipif mysql # not compatible
query I rowsort label-3552
SELECT COALESCE ( + - 73, + 12, - 94 / + 18 + - + CAST ( + + 21 AS INTEGER ) ) + + 16 AS col2
----
-57

query II rowsort
SELECT ALL 26, + 46 col0
----
26
46

query I rowsort
SELECT 51 + + 53
----
104

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3555
SELECT ALL 74 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3555
SELECT ALL 74 + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL + 94 * - - 44 * - 32
----
-132352

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3557
SELECT ALL CAST( + COALESCE ( + AVG ( ALL + - 41 ), + 18 + 25 + - 9 - + CAST( - - 67 AS SIGNED ) - - 4 + + + 10 * 30 ) AS SIGNED ) - 52 AS col1
----
-93

skipif mysql # not compatible
query I rowsort label-3557
SELECT ALL CAST ( + COALESCE ( + AVG ( ALL + - 41 ), + 18 + 25 + - 9 - + CAST ( - - 67 AS INTEGER ) - - 4 + + + 10 * 30 ) AS INTEGER ) - 52 AS col1
----
-93

query I rowsort
SELECT ALL + 85 - + + 17
----
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3559
SELECT CAST( 69 AS SIGNED ) * 30 * 62 AS col2
----
128340

skipif mysql # not compatible
query I rowsort label-3559
SELECT CAST ( 69 AS INTEGER ) * 30 * 62 AS col2
----
128340

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3560
SELECT ALL 68 DIV COALESCE ( + 1, - 54 + 39 * + + COUNT( * ) DIV + 51, 97 - + 2 )
----
68

skipif mysql # not compatible
query I rowsort label-3560
SELECT ALL 68 / COALESCE ( + 1, - 54 + 39 * + + COUNT ( * ) / + 51, 97 - + 2 )
----
68

query I rowsort
SELECT ALL 3 * - 97
----
-291

query I rowsort
SELECT 86 + + 99
----
185

query I rowsort
SELECT DISTINCT + 76 * + 19
----
1444

onlyif mysql # aggregate syntax: 
query I rowsort label-3564
SELECT ALL - COUNT( * ) - 59 AS col2
----
-60

skipif mysql # not compatible
query I rowsort label-3564
SELECT ALL - COUNT ( * ) - 59 AS col2
----
-60

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3565
SELECT 26 AS col1, + COUNT( * ) - - + 8 + - 90 * 27 DIV + 90
----
26
-18

skipif mysql # not compatible
query II rowsort label-3565
SELECT 26 AS col1, + COUNT ( * ) - - + 8 + - 90 * 27 / + 90
----
26
-18

query I rowsort
SELECT ALL 67 * + 39 AS col2
----
2613

query I rowsort
SELECT DISTINCT - - 4 AS col1
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-3568
SELECT ALL COUNT( * ) * 11 * - CASE + ( - 15 ) WHEN - COALESCE ( - 47, - 93 ) THEN NULL ELSE + - COUNT( + + ( - 77 ) ) END AS col1
----
11

skipif mysql # not compatible
query I rowsort label-3568
SELECT ALL COUNT ( * ) * 11 * - CASE + ( - 15 ) WHEN - COALESCE ( - 47, - 93 ) THEN NULL ELSE + - COUNT ( + + ( - 77 ) ) END AS col1
----
11

query I rowsort
SELECT DISTINCT - ( 68 ) AS col1
----
-68

onlyif mysql # aggregate syntax: 
query II rowsort label-3570
SELECT - 81, MIN( ALL - ( + 96 ) ) AS col1
----
-81
-96

skipif mysql # not compatible
query II rowsort label-3570
SELECT - 81, MIN ( ALL - ( + 96 ) ) AS col1
----
-81
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-3571
SELECT + 19 DIV + + 74 - - ( 81 ) AS col1
----
81

skipif mysql # not compatible
query I rowsort label-3571
SELECT + 19 / + + 74 - - ( 81 ) AS col1
----
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3572
SELECT + COALESCE ( - MIN( DISTINCT - 53 ), - - COUNT( * ), + CAST( 94 AS SIGNED ) * - + 88 DIV - - CAST( 2 AS SIGNED ) * + - 81 ) * - 58 * + 42 AS col0
----
-129108

skipif mysql # not compatible
query I rowsort label-3572
SELECT + COALESCE ( - MIN ( DISTINCT - 53 ), - - COUNT ( * ), + CAST ( 94 AS INTEGER ) * - + 88 / - - CAST ( 2 AS INTEGER ) * + - 81 ) * - 58 * + 42 AS col0
----
-129108

onlyif mysql # aggregate syntax: 
query II rowsort label-3573
SELECT DISTINCT - + 54 col0, NULLIF ( + 45, - COUNT( * ) * + 67 + + + 97 ) * - 89 + + ( 15 ) AS col1
----
-54
-3990

skipif mysql # not compatible
query II rowsort label-3573
SELECT DISTINCT - + 54 col0, NULLIF ( + 45, - COUNT ( * ) * + 67 + + + 97 ) * - 89 + + ( 15 ) AS col1
----
-54
-3990

onlyif mysql # aggregate syntax: 
query II rowsort label-3574
SELECT - ( - - MAX( + + 92 ) ) AS col2, 45 AS col1
----
-92
45

skipif mysql # not compatible
query II rowsort label-3574
SELECT - ( - - MAX ( + + 92 ) ) AS col2, 45 AS col1
----
-92
45

query I rowsort
SELECT CASE 14 WHEN + 68 + + 31 / 77 THEN - - 53 WHEN + 91 THEN NULL ELSE NULL END * 4 + - + ( - 34 ) + + - AVG ( DISTINCT - 42 )
----
NULL

query II rowsort
SELECT ALL + - 27 * - 8 + 45 col0, - 22 col0
----
261
-22

onlyif mysql # aggregate syntax: 
query II rowsort label-3577
SELECT DISTINCT - COUNT( * ) AS col2, - ( + + 39 ) AS col1
----
-1
-39

skipif mysql # not compatible
query II rowsort label-3577
SELECT DISTINCT - COUNT ( * ) AS col2, - ( + + 39 ) AS col1
----
-1
-39

onlyif mysql # DIV for integer division: 
query I rowsort label-3578
SELECT DISTINCT 47 * + + 50 + - 83 DIV - 72
----
2351

skipif mysql # not compatible
query I rowsort label-3578
SELECT DISTINCT 47 * + + 50 + - 83 / - 72
----
2351

query I rowsort
SELECT ALL + - 29 * + + 44 + 93
----
-1183

onlyif mysql # aggregate syntax: 
query I rowsort label-3580
SELECT - 6 * - - 35 + - 69 + + + 77 * 65 - + 91 * MAX( ALL 80 ) AS col2
----
-2554

skipif mysql # not compatible
query I rowsort label-3580
SELECT - 6 * - - 35 + - 69 + + + 77 * 65 - + 91 * MAX ( ALL 80 ) AS col2
----
-2554

query I rowsort
SELECT ALL - + 97 + - NULLIF ( 23, - 45 + 49 ) AS col2
----
-120

onlyif mysql # aggregate syntax: 
query I rowsort label-3582
SELECT ALL + MAX( + 27 ) * + 82
----
2214

skipif mysql # not compatible
query I rowsort label-3582
SELECT ALL + MAX ( + 27 ) * + 82
----
2214

onlyif mysql # DIV for integer division: 
query I rowsort label-3583
SELECT - 78 DIV - + 97
----
0

skipif mysql # not compatible
query I rowsort label-3583
SELECT - 78 / - + 97
----
0

query I rowsort
SELECT ALL - 42 + + + 31 AS col1
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-3585
SELECT ALL - + NULLIF ( 68, + COALESCE ( 99, - + 75, 76 ) * 1 * - 72 - COUNT( + 83 ) * - 60 ) + - 15
----
-83

skipif mysql # not compatible
query I rowsort label-3585
SELECT ALL - + NULLIF ( 68, + COALESCE ( 99, - + 75, 76 ) * 1 * - 72 - COUNT ( + 83 ) * - 60 ) + - 15
----
-83

query I rowsort
SELECT - - 62 + - + 26
----
36

onlyif mysql # DIV for integer division: 
query I rowsort label-3587
SELECT - - 93 DIV 81 DIV - 76 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3587
SELECT - - 93 / 81 / - 76 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3588
SELECT + + 87 + + COUNT( * )
----
88

skipif mysql # not compatible
query I rowsort label-3588
SELECT + + 87 + + COUNT ( * )
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-3589
SELECT + 87 * + 43 + - COUNT( * )
----
3740

skipif mysql # not compatible
query I rowsort label-3589
SELECT + 87 * + 43 + - COUNT ( * )
----
3740

onlyif mysql # aggregate syntax: 
query I rowsort label-3590
SELECT ALL ( - COUNT( * ) ) + + 88 AS col2
----
87

skipif mysql # not compatible
query I rowsort label-3590
SELECT ALL ( - COUNT ( * ) ) + + 88 AS col2
----
87

onlyif mysql # DIV for integer division: 
query I rowsort label-3591
SELECT DISTINCT 69 DIV + - 38 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-3591
SELECT DISTINCT 69 / + - 38 AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3592
SELECT DISTINCT 4 * - COUNT( * )
----
-4

skipif mysql # not compatible
query I rowsort label-3592
SELECT DISTINCT 4 * - COUNT ( * )
----
-4

onlyif mysql # aggregate syntax: 
query III rowsort label-3593
SELECT - MIN( DISTINCT NULLIF ( - 83, - 59 ) ) AS col0, - 32 AS col2, 85 * 1 + - 38 + + 3 * + 98 - - 87 AS col2
----
83
-32
428

skipif mysql # not compatible
query III rowsort label-3593
SELECT - MIN ( DISTINCT NULLIF ( - 83, - 59 ) ) AS col0, - 32 AS col2, 85 * 1 + - 38 + + 3 * + 98 - - 87 AS col2
----
83
-32
428

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3594
SELECT ALL + ( + COUNT( * ) ) - + - 56 - - - COALESCE ( 76, CASE 11 WHEN 57 THEN 63 WHEN - CAST( NULL AS SIGNED ) THEN NULL ELSE NULL END DIV + - 18 ) + 56 * - 88 * + 4
----
-19731

skipif mysql # not compatible
query I rowsort label-3594
SELECT ALL + ( + COUNT ( * ) ) - + - 56 - - - COALESCE ( 76, CASE 11 WHEN 57 THEN 63 WHEN - CAST ( NULL AS INTEGER ) THEN NULL ELSE NULL END / + - 18 ) + 56 * - 88 * + 4
----
-19731

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3595
SELECT DISTINCT 98 * CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3595
SELECT DISTINCT 98 * CAST ( NULL AS INTEGER ) col0
----
NULL

query II rowsort
SELECT ALL 56 - 89, - 33 AS col1
----
-33
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-3597
SELECT DISTINCT 15 * - - MIN( DISTINCT 15 )
----
225

skipif mysql # not compatible
query I rowsort label-3597
SELECT DISTINCT 15 * - - MIN ( DISTINCT 15 )
----
225

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3598
SELECT ALL 27 * + COUNT( - + 38 ) * + 8 + CASE - 64 WHEN + 68 THEN 46 + + CASE 96 WHEN + 76 THEN 25 END WHEN + + MAX( + ( - 96 ) ) THEN NULL WHEN + 13 THEN + 48 / - - ( - - 11 ) + + + CAST( 50 AS DECIMAL ) END + - - 46 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3598
SELECT ALL 27 * + COUNT ( - + 38 ) * + 8 + CASE - 64 WHEN + 68 THEN 46 + + CASE 96 WHEN + 76 THEN 25 END WHEN + + MAX ( + ( - 96 ) ) THEN NULL WHEN + 13 THEN + 48 / - - ( - - 11 ) + + + CAST ( 50 AS REAL ) END + - - 46 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3599
SELECT - COUNT( * ) - + + 32 * - - COALESCE ( - - 51, 31 + - CAST( - + 73 AS SIGNED ), - 46 + + 60 ) - + 4 - - + 28 * 53 * 39 col2
----
56239

skipif mysql # not compatible
query I rowsort label-3599
SELECT - COUNT ( * ) - + + 32 * - - COALESCE ( - - 51, 31 + - CAST ( - + 73 AS INTEGER ), - 46 + + 60 ) - + 4 - - + 28 * 53 * 39 col2
----
56239

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3600
SELECT + ( 8 ) * + 5 * - CAST( NULL AS SIGNED ) * 19 * - 3
----
NULL

skipif mysql # not compatible
query I rowsort label-3600
SELECT + ( 8 ) * + 5 * - CAST ( NULL AS INTEGER ) * 19 * - 3
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3601
SELECT DISTINCT 62 * - CASE - ( 42 ) WHEN 42 / + + CAST( NULL AS SIGNED ) / + - 2 * + 38 THEN + + 50 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3601
SELECT DISTINCT 62 * - CASE - ( 42 ) WHEN 42 / + + CAST ( NULL AS INTEGER ) / + - 2 * + 38 THEN + + 50 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3602
SELECT + 8 * - 63 * CAST( - 62 AS SIGNED )
----
31248

skipif mysql # not compatible
query I rowsort label-3602
SELECT + 8 * - 63 * CAST ( - 62 AS INTEGER )
----
31248

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3603
SELECT DISTINCT 26 * 77, 34 DIV 29 * COUNT( * ) AS col2
----
2002
1

skipif mysql # not compatible
query II rowsort label-3603
SELECT DISTINCT 26 * 77, 34 / 29 * COUNT ( * ) AS col2
----
2002
1

query I rowsort
SELECT + 55 - - 67
----
122

query I rowsort
SELECT + 72 * - ( + 74 ) AS col1
----
-5328

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3606
SELECT DISTINCT - COUNT( * ) * - 66 + + 90 + + COUNT( * ) - + + 7 DIV - + 11
----
157

skipif mysql # not compatible
query I rowsort label-3606
SELECT DISTINCT - COUNT ( * ) * - 66 + + 90 + + COUNT ( * ) - + + 7 / - + 11
----
157

onlyif mysql # aggregate syntax: 
query I rowsort label-3607
SELECT ALL CASE - - MAX( + 65 ) WHEN - 72 THEN + 36 ELSE + - 87 END AS col1
----
-87

skipif mysql # not compatible
query I rowsort label-3607
SELECT ALL CASE - - MAX ( + 65 ) WHEN - 72 THEN + 36 ELSE + - 87 END AS col1
----
-87

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3608
SELECT ALL - ( - + 73 ) col2, - ( 70 ) + - NULLIF ( CAST( NULL AS SIGNED ), CAST( NULL AS SIGNED ) ) col0
----
73
NULL

skipif mysql # not compatible
query II rowsort label-3608
SELECT ALL - ( - + 73 ) col2, - ( 70 ) + - NULLIF ( CAST ( NULL AS INTEGER ), CAST ( NULL AS INTEGER ) ) col0
----
73
NULL

query I rowsort
SELECT + - 15 + - 30 + - 57
----
-102

onlyif mysql # aggregate syntax: 
query II rowsort label-3610
SELECT + - MIN( + 37 ) * - 7 + + 21 AS col1, 31 * 64 + + + 46 + 27 - 93
----
280
1964

skipif mysql # not compatible
query II rowsort label-3610
SELECT + - MIN ( + 37 ) * - 7 + + 21 AS col1, 31 * 64 + + + 46 + 27 - 93
----
280
1964

onlyif mysql # DIV for integer division: 
query I rowsort label-3611
SELECT + 91 DIV + 23 + + NULLIF ( ( + 75 ), - 77 ) + 31 * - - 39 AS col1
----
1287

skipif mysql # not compatible
query I rowsort label-3611
SELECT + 91 / + 23 + + NULLIF ( ( + 75 ), - 77 ) + 31 * - - 39 AS col1
----
1287

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3612
SELECT DISTINCT + + ( ( + + 46 ) ) * 89 AS col0, COUNT( * ) + + - 72 + - - 87 - AVG ( ALL - 56 ) * COUNT( * ) + - CASE + 49 WHEN 6 * + 76 + - + CAST( NULL AS SIGNED ) THEN NULL WHEN - COUNT( DISTINCT + + CAST( NULL AS SIGNED ) ) + 23 THEN NULL ELSE - + 43 * 32 - + 97 + - ( + 65 ) * + + CASE - 77 WHEN 5 THEN - 56 * + 26 ELSE NULL END / + COUNT( * ) + 20 + + 78 END * COALESCE ( COUNT( * ), - 60 - 90, + 42 * 27 - 98 * ( - 83 + 47 / 7 ), - ( NULLIF ( 61, 83 + 88 ) ) ) * 94
----
4094
NULL

skipif mysql # not compatible
query II rowsort label-3612
SELECT DISTINCT + + ( ( + + 46 ) ) * 89 AS col0, COUNT ( * ) + + - 72 + - - 87 - AVG ( ALL - 56 ) * COUNT ( * ) + - CASE + 49 WHEN 6 * + 76 + - + CAST ( NULL AS INTEGER ) THEN NULL WHEN - COUNT ( DISTINCT + + CAST ( NULL AS INTEGER ) ) + 23 THEN NULL ELSE - + 43 * 32 - + 97 + - ( + 65 ) * + + CASE - 77 WHEN 5 THEN - 56 * + 26 ELSE NULL END / + COUNT ( * ) + 20 + + 78 END * COALESCE ( COUNT ( * ), - 60 - 90, + 42 * 27 - 98 * ( - 83 + 47 / 7 ), - ( NULLIF ( 61, 83 + 88 ) ) ) * 94
----
4094
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3613
SELECT ALL - - 51 * - ( - 26 ) / - 3 + - 3 + + + COALESCE ( - 77, + 23 * - 32 ) * CAST( NULL AS SIGNED ) + 72 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3613
SELECT ALL - - 51 * - ( - 26 ) / - 3 + - 3 + + + COALESCE ( - 77, + 23 * - 32 ) * CAST ( NULL AS INTEGER ) + 72 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3614
SELECT + NULLIF ( - + 48, 97 ) * + 29 AS col0, + COUNT( * ) DIV - 47 AS col1
----
-1392
0

skipif mysql # not compatible
query II rowsort label-3614
SELECT + NULLIF ( - + 48, 97 ) * + 29 AS col0, + COUNT ( * ) / - 47 AS col1
----
-1392
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3615
SELECT DISTINCT - 92 * - 1 * + MIN( - - 45 ) * + 33 + - 74 * + 77 AS col1
----
130922

skipif mysql # not compatible
query I rowsort label-3615
SELECT DISTINCT - 92 * - 1 * + MIN ( - - 45 ) * + 33 + - 74 * + 77 AS col1
----
130922

query I rowsort
SELECT ALL + - 79 col1
----
-79

query I rowsort
SELECT + - 57 * - - 99 AS col1
----
-5643

query I rowsort
SELECT 99 * + 1 + ( + 44 ) + + NULLIF ( - 73, ( - 59 ) ) AS col0
----
70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3619
SELECT DISTINCT NULLIF ( CAST( NULL AS SIGNED ), 55 * - 38 + + 10 + AVG ( 48 ) * + - 95 * - - 62 ) * NULLIF ( + COUNT( * ), + - ( + 53 ) * - - 11 ) AS col2, - ( + 23 ) AS col2
----
NULL
-23

skipif mysql # not compatible
query II rowsort label-3619
SELECT DISTINCT NULLIF ( CAST ( NULL AS INTEGER ), 55 * - 38 + + 10 + AVG ( 48 ) * + - 95 * - - 62 ) * NULLIF ( + COUNT ( * ), + - ( + 53 ) * - - 11 ) AS col2, - ( + 23 ) AS col2
----
NULL
-23

onlyif mysql # aggregate syntax: 
query II rowsort label-3620
SELECT + ( 69 ) AS col0, MAX( - ( + + ( + + 68 ) ) )
----
69
-68

skipif mysql # not compatible
query II rowsort label-3620
SELECT + ( 69 ) AS col0, MAX ( - ( + + ( + + 68 ) ) )
----
69
-68

query I rowsort
SELECT + + 97 + 34 AS col0
----
131

query I rowsort
SELECT - 85 * + 95 AS col1
----
-8075

query I rowsort
SELECT + - 22 + 31 + - 78 AS col0
----
-69

query I rowsort
SELECT 84 * - ( + 33 ) - + 72 col1
----
-2844

onlyif mysql # aggregate syntax: 
query I rowsort label-3625
SELECT COALESCE ( COUNT( ALL + 56 ), MAX( - 0 ) * 28 - COALESCE ( CASE 60 WHEN + 34 + + 26 THEN - - 80 + 50 END, - COUNT( * ) + - + 16 ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3625
SELECT COALESCE ( COUNT ( ALL + 56 ), MAX ( - 0 ) * 28 - COALESCE ( CASE 60 WHEN + 34 + + 26 THEN - - 80 + 50 END, - COUNT ( * ) + - + 16 ) ) AS col1
----
1

query I rowsort
SELECT - 46 * - 64 * + 5 - - + 31
----
14751

onlyif mysql # aggregate syntax: 
query I rowsort label-3627
SELECT ALL + COALESCE ( + 38, + 34 + + + 49 + - + 27 * + COUNT( * ) ) * 70 - 23 + - 55 * + + ( + - 35 ) - + 23 * 80 + CASE + 44 WHEN + 22 * + + 43 + COUNT( * ) + 33 * 67 - + 63 THEN - + COUNT( * ) WHEN - 18 * + - 48 * + 78 + 74 * + ( + ( 62 ) - + 79 ) THEN - COUNT( - 8 ) + COUNT( * ) END * - 45 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3627
SELECT ALL + COALESCE ( + 38, + 34 + + + 49 + - + 27 * + COUNT ( * ) ) * 70 - 23 + - 55 * + + ( + - 35 ) - + 23 * 80 + CASE + 44 WHEN + 22 * + + 43 + COUNT ( * ) + 33 * 67 - + 63 THEN - + COUNT ( * ) WHEN - 18 * + - 48 * + 78 + 74 * + ( + ( 62 ) - + 79 ) THEN - COUNT ( - 8 ) + COUNT ( * ) END * - 45 col2
----
NULL

query I rowsort
SELECT ALL - 93 * 8
----
-744

onlyif mysql # aggregate syntax: 
query I rowsort label-3629
SELECT ALL + MAX( ALL - 32 ) col2
----
-32

skipif mysql # not compatible
query I rowsort label-3629
SELECT ALL + MAX ( ALL - 32 ) col2
----
-32

query I rowsort
SELECT - 21 * 95 AS col2
----
-1995

onlyif mysql # aggregate syntax: 
query I rowsort label-3631
SELECT ALL - 94 * + COALESCE ( + 65, + MAX( - + 62 ) + 28 )
----
-6110

skipif mysql # not compatible
query I rowsort label-3631
SELECT ALL - 94 * + COALESCE ( + 65, + MAX ( - + 62 ) + 28 )
----
-6110

onlyif mysql # aggregate syntax: 
query I rowsort label-3632
SELECT - 33 + COUNT( * ) * + 0 AS col2
----
-33

skipif mysql # not compatible
query I rowsort label-3632
SELECT - 33 + COUNT ( * ) * + 0 AS col2
----
-33

query I rowsort
SELECT ALL 20 * - + 7 - - + 96
----
-44

query I rowsort
SELECT - 85 * + 63 * - + 52 AS col1
----
278460

query I rowsort
SELECT ALL 49 * 56 AS col0
----
2744

query I rowsort
SELECT DISTINCT + 50 + + - 80 - 97 * + 50 * + 67
----
-324980

query I rowsort
SELECT ALL 43 * + 74
----
3182

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3638
SELECT - CAST( - ( - 61 ) AS SIGNED )
----
-61

skipif mysql # not compatible
query I rowsort label-3638
SELECT - CAST ( - ( - 61 ) AS INTEGER )
----
-61

query I rowsort
SELECT - 83 + + 31
----
-52

query I rowsort
SELECT - - 69 * - 64 AS col0
----
-4416

onlyif mysql # aggregate syntax: 
query I rowsort label-3641
SELECT + 57 + - + COUNT( * ) AS col1
----
56

skipif mysql # not compatible
query I rowsort label-3641
SELECT + 57 + - + COUNT ( * ) AS col1
----
56

query I rowsort
SELECT ALL 27 * - CASE + 32 WHEN 42 * 96 / + 63 * - 50 * + - 56 * - 78 + + 41 THEN + 37 + + 35 END AS col2
----
NULL

query II rowsort
SELECT - 50, + 82 - 20 AS col2
----
-50
62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3644
SELECT + 71 + - NULLIF ( 35, + 52 * - 16 + - 5 ) + - 37 * CAST( + - 70 AS SIGNED ) * - + 13
----
-33634

skipif mysql # not compatible
query I rowsort label-3644
SELECT + 71 + - NULLIF ( 35, + 52 * - 16 + - 5 ) + - 37 * CAST ( + - 70 AS INTEGER ) * - + 13
----
-33634

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3645
SELECT DISTINCT + + 42 DIV 92 * + + 68 * + - 11 + + + COUNT( * ) - + - 56
----
57

skipif mysql # not compatible
query I rowsort label-3645
SELECT DISTINCT + + 42 / 92 * + + 68 * + - 11 + + + COUNT ( * ) - + - 56
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-3646
SELECT ALL + 42 * - NULLIF ( - + 25, - ( + COUNT( * ) ) )
----
1050

skipif mysql # not compatible
query I rowsort label-3646
SELECT ALL + 42 * - NULLIF ( - + 25, - ( + COUNT ( * ) ) )
----
1050

onlyif mysql # aggregate syntax: 
query II rowsort label-3647
SELECT NULLIF ( 86, + 15 ) * - ( + 39 ) + - COUNT( * ) + 52 * - 54, - ( + COUNT( * ) ) + - + 94 + + + 4 col0
----
-6163
-91

skipif mysql # not compatible
query II rowsort label-3647
SELECT NULLIF ( 86, + 15 ) * - ( + 39 ) + - COUNT ( * ) + 52 * - 54, - ( + COUNT ( * ) ) + - + 94 + + + 4 col0
----
-6163
-91

query I rowsort
SELECT 65 - - 11 AS col0
----
76

query I rowsort
SELECT ( - + ( + - 19 ) )
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-3650
SELECT DISTINCT - + MIN( - - 38 ) AS col0
----
-38

skipif mysql # not compatible
query I rowsort label-3650
SELECT DISTINCT - + MIN ( - - 38 ) AS col0
----
-38

query I rowsort
SELECT + 49 + - 56 * + + 82 AS col0
----
-4543

query I rowsort
SELECT DISTINCT - 79 - 57 col0
----
-136

query I rowsort
SELECT ALL CASE WHEN NOT NULL IS NOT NULL THEN 95 ELSE NULL END * - 61 AS col1
----
-5795

query I rowsort
SELECT + 79 * - 55 + - + 9 AS col0
----
-4354

query I rowsort
SELECT DISTINCT + 52 - - - 85 + - 50 + + 43 AS col0
----
-40

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3656
SELECT ALL - 25, CAST( NULL AS SIGNED ) AS col2
----
-25
NULL

skipif mysql # not compatible
query II rowsort label-3656
SELECT ALL - 25, CAST ( NULL AS INTEGER ) AS col2
----
-25
NULL

query II rowsort
SELECT ALL - 96 AS col0, 93
----
-96
93

onlyif mysql # DIV for integer division: 
query I rowsort label-3658
SELECT 76 + + + 75 * + 95 + + 99 + - + 11 DIV + 82 AS col2
----
7300

skipif mysql # not compatible
query I rowsort label-3658
SELECT 76 + + + 75 * + 95 + + 99 + - + 11 / + 82 AS col2
----
7300

query I rowsort
SELECT 80 * - + 65 AS col1
----
-5200

query I rowsort
SELECT 86 + + ( + + 60 ) AS col1
----
146

query II rowsort
SELECT ALL - 21, 59 + 20 col1
----
-21
79

query I rowsort
SELECT 69 * - 11 * + 18 * 6
----
-81972

onlyif mysql # aggregate syntax: 
query II rowsort label-3663
SELECT - 90 AS col2, + MIN( DISTINCT 35 ) AS col1
----
-90
35

skipif mysql # not compatible
query II rowsort label-3663
SELECT - 90 AS col2, + MIN ( DISTINCT 35 ) AS col1
----
-90
35

query I rowsort
SELECT DISTINCT + 18 + 75 AS col2
----
93

query I rowsort
SELECT 75 - + 17 AS col2
----
58

query I rowsort
SELECT - 42 * - 81 AS col2
----
3402

query I rowsort
SELECT - NULLIF ( + 8, + + 69 )
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-3668
SELECT + 51 + 11 * - COUNT( * ) * + - 30
----
381

skipif mysql # not compatible
query I rowsort label-3668
SELECT + 51 + 11 * - COUNT ( * ) * + - 30
----
381

query I rowsort
SELECT DISTINCT + 71 + + - 25
----
46

query I rowsort
SELECT ALL + + 20 + + 74 col2
----
94

query I rowsort
SELECT + 8 - ( + + NULLIF ( 21, - + 4 ) )
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-3672
SELECT NULLIF ( + ( - ( + COALESCE ( + 72, - - 9 * - COUNT( * ) ) ) ), - - 39 / - 10 )
----
-72

skipif mysql # not compatible
query I rowsort label-3672
SELECT NULLIF ( + ( - ( + COALESCE ( + 72, - - 9 * - COUNT ( * ) ) ) ), - - 39 / - 10 )
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-3673
SELECT ALL MIN( + 98 ) * + ( - + 57 ) + + 18 col1
----
-5568

skipif mysql # not compatible
query I rowsort label-3673
SELECT ALL MIN ( + 98 ) * + ( - + 57 ) + + 18 col1
----
-5568

query I rowsort
SELECT ALL + 77 + ( + 6 ) AS col1
----
83

query I rowsort
SELECT - 75 + + + 94 AS col2
----
19

onlyif mysql # aggregate syntax: 
query II rowsort label-3676
SELECT - 40, MIN( ALL + 50 ) * 40 + + - 77 - - - 41 + 1 * 36 AS col0
----
-40
1918

skipif mysql # not compatible
query II rowsort label-3676
SELECT - 40, MIN ( ALL + 50 ) * 40 + + - 77 - - - 41 + 1 * 36 AS col0
----
-40
1918

onlyif mysql # DIV for integer division: 
query I rowsort label-3677
SELECT 34 + 32 DIV 63 * + ( + 89 )
----
34

skipif mysql # not compatible
query I rowsort label-3677
SELECT 34 + 32 / 63 * + ( + 89 )
----
34

query I rowsort
SELECT - ( - 68 ) * 39 AS col1
----
2652

query I rowsort
SELECT ALL - 86 * - 14 + 81 AS col2
----
1285

query I rowsort
SELECT DISTINCT ( - 25 ) * + 71 AS col0
----
-1775

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query III rowsort label-3681
SELECT DISTINCT - - 89 col0, - 25 + - 13 DIV + 22 + + 75 + CAST( + - 34 AS SIGNED ) AS col2, + + 17 DIV COUNT( * ) - - - 36 AS col0
----
89
16
-19

skipif mysql # not compatible
query III rowsort label-3681
SELECT DISTINCT - - 89 col0, - 25 + - 13 / + 22 + + 75 + CAST ( + - 34 AS INTEGER ) AS col2, + + 17 / COUNT ( * ) - - - 36 AS col0
----
89
16
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-3682
SELECT ALL - SUM( DISTINCT 85 )
----
-85

skipif mysql # not compatible
query I rowsort label-3682
SELECT ALL - SUM ( DISTINCT 85 )
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-3683
SELECT - 44 * + COUNT( * ) * 16 + - 95
----
-799

skipif mysql # not compatible
query I rowsort label-3683
SELECT - 44 * + COUNT ( * ) * 16 + - 95
----
-799

onlyif mysql # aggregate syntax: 
query II rowsort label-3684
SELECT ALL - + COUNT( * ) AS col1, 19 - 72 col0
----
-1
-53

skipif mysql # not compatible
query II rowsort label-3684
SELECT ALL - + COUNT ( * ) AS col1, 19 - 72 col0
----
-1
-53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3685
SELECT DISTINCT - CASE 90 WHEN 80 THEN NULL WHEN CAST( - + 97 AS SIGNED ) / + COUNT( * ) - - 80 * + 58 * - 67 THEN - 41 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3685
SELECT DISTINCT - CASE 90 WHEN 80 THEN NULL WHEN CAST ( - + 97 AS INTEGER ) / + COUNT ( * ) - - 80 * + 58 * - 67 THEN - 41 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3686
SELECT + SUM( ALL - 23 ) * + + COUNT( * ) * - 81 + - 34 + - + 74 AS col0
----
1755

skipif mysql # not compatible
query I rowsort label-3686
SELECT + SUM ( ALL - 23 ) * + + COUNT ( * ) * - 81 + - 34 + - + 74 AS col0
----
1755

onlyif mysql # DIV for integer division: 
query I rowsort label-3687
SELECT ALL 40 DIV - + 80 * + + CASE 43 WHEN + - 44 THEN NULL ELSE 76 * - 45 END
----
0

skipif mysql # not compatible
query I rowsort label-3687
SELECT ALL 40 / - + 80 * + + CASE 43 WHEN + - 44 THEN NULL ELSE 76 * - 45 END
----
0

query I rowsort
SELECT 41 + 75
----
116

onlyif mysql # aggregate syntax: 
query I rowsort label-3689
SELECT CASE + - COALESCE ( CASE 99 WHEN 34 - - NULLIF ( + 15, - - 71 ) THEN NULL WHEN - 43 * 50 + - + COUNT( + 53 ) THEN 85 END, + COUNT( ALL - - 37 ) * + COUNT( * ) ) WHEN + - 69 THEN + + 7 * - COUNT( * ) + - 60 * - 41 + COUNT( + 71 ) WHEN + + 66 - + - COUNT( * ) THEN + + COUNT( DISTINCT - - 42 ) END / 91 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3689
SELECT CASE + - COALESCE ( CASE 99 WHEN 34 - - NULLIF ( + 15, - - 71 ) THEN NULL WHEN - 43 * 50 + - + COUNT ( + 53 ) THEN 85 END, + COUNT ( ALL - - 37 ) * + COUNT ( * ) ) WHEN + - 69 THEN + + 7 * - COUNT ( * ) + - 60 * - 41 + COUNT ( + 71 ) WHEN + + 66 - + - COUNT ( * ) THEN + + COUNT ( DISTINCT - - 42 ) END / 91 AS col1
----
NULL

query I rowsort
SELECT ALL 4 * - 11
----
-44

query I rowsort
SELECT DISTINCT 39 * + 19 * + 90
----
66690

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3692
SELECT 58 * + + 71 - - 98 + - + 77 DIV - MIN( - 59 ) + 99 * + - 37 * - - 46 * - 80 + + COUNT( * ) * 74
----
13484129

skipif mysql # not compatible
query I rowsort label-3692
SELECT 58 * + + 71 - - 98 + - + 77 / - MIN ( - 59 ) + 99 * + - 37 * - - 46 * - 80 + + COUNT ( * ) * 74
----
13484129

onlyif mysql # aggregate syntax: 
query I rowsort label-3693
SELECT ALL MAX( DISTINCT 43 ) + + + 87
----
130

skipif mysql # not compatible
query I rowsort label-3693
SELECT ALL MAX ( DISTINCT 43 ) + + + 87
----
130

query I rowsort
SELECT DISTINCT 3 + - 26 AS col2
----
-23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3695
SELECT ALL + 4 DIV + 32 DIV + + COUNT( * ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3695
SELECT ALL + 4 / + 32 / + + COUNT ( * ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3696
SELECT MAX( - + 46 ) + - COUNT( * ) + + 16
----
-31

skipif mysql # not compatible
query I rowsort label-3696
SELECT MAX ( - + 46 ) + - COUNT ( * ) + + 16
----
-31

query I rowsort
SELECT 20 + - + 35
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-3698
SELECT - COUNT( ALL - 27 )
----
-1

skipif mysql # not compatible
query I rowsort label-3698
SELECT - COUNT ( ALL - 27 )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3699
SELECT + COUNT( * ) + + CAST( NULL AS SIGNED ) * 48 * - 83 + + 31 * - 7
----
NULL

skipif mysql # not compatible
query I rowsort label-3699
SELECT + COUNT ( * ) + + CAST ( NULL AS INTEGER ) * 48 * - 83 + + 31 * - 7
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3700
SELECT ALL + 42 + + - 13 + + CAST( NULL AS SIGNED ) + + 41 / 27 AS col0, 59 * - 91
----
NULL
-5369

skipif mysql # not compatible
query II rowsort label-3700
SELECT ALL + 42 + + - 13 + + CAST ( NULL AS INTEGER ) + + 41 / 27 AS col0, 59 * - 91
----
NULL
-5369

query I rowsort
SELECT + 79 + - - 95
----
174

query I rowsort
SELECT ALL - - 80 + - + 13 AS col2
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-3703
SELECT ( 49 ) + + COUNT( * ) + + 53 AS col0
----
103

skipif mysql # not compatible
query I rowsort label-3703
SELECT ( 49 ) + + COUNT ( * ) + + 53 AS col0
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-3704
SELECT DISTINCT MAX( DISTINCT - + 55 )
----
-55

skipif mysql # not compatible
query I rowsort label-3704
SELECT DISTINCT MAX ( DISTINCT - + 55 )
----
-55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3705
SELECT ALL + 75 * - 22 DIV COUNT( * ) AS col0
----
-1650

skipif mysql # not compatible
query I rowsort label-3705
SELECT ALL + 75 * - 22 / COUNT ( * ) AS col0
----
-1650

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3706
SELECT ALL - - 88 - + CAST( - + 82 AS SIGNED )
----
170

skipif mysql # not compatible
query I rowsort label-3706
SELECT ALL - - 88 - + CAST ( - + 82 AS INTEGER )
----
170

query I rowsort
SELECT - - 20 + - + ( + + 58 ) * + + 55 AS col2
----
-3170

query I rowsort
SELECT - + 9 + + + 11 AS col1
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3709
SELECT - + COALESCE ( + - 25, 12 + - CAST( - 45 AS SIGNED ) * - + COUNT( ALL + 23 ) ) + 57 * + 71 AS col1
----
4072

skipif mysql # not compatible
query I rowsort label-3709
SELECT - + COALESCE ( + - 25, 12 + - CAST ( - 45 AS INTEGER ) * - + COUNT ( ALL + 23 ) ) + 57 * + 71 AS col1
----
4072

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3710
SELECT - - 71 + - 99 + - - COALESCE ( + 57, COUNT( * ), + 87 DIV + 45 )
----
29

skipif mysql # not compatible
query I rowsort label-3710
SELECT - - 71 + - 99 + - - COALESCE ( + 57, COUNT ( * ), + 87 / + 45 )
----
29

query I rowsort
SELECT ALL + + 0 - - 76 AS col2
----
76

onlyif mysql # DIV for integer division: 
query II rowsort label-3712
SELECT - + 60 DIV - + 87, + 8 AS col2
----
0
8

skipif mysql # not compatible
query II rowsort label-3712
SELECT - + 60 / - + 87, + 8 AS col2
----
0
8

query II rowsort
SELECT - 18 + + 42 AS col1, - 8 * 71 AS col0
----
24
-568

onlyif mysql # DIV for integer division: 
query I rowsort label-3714
SELECT DISTINCT + 32 DIV - + 13
----
-2

skipif mysql # not compatible
query I rowsort label-3714
SELECT DISTINCT + 32 / - + 13
----
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3715
SELECT DISTINCT + COUNT( * ) DIV 45
----
0

skipif mysql # not compatible
query I rowsort label-3715
SELECT DISTINCT + COUNT ( * ) / 45
----
0

query II rowsort
SELECT ALL 75 * - 18 AS col2, + 12
----
-1350
12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3717
SELECT - 45 + 2 DIV + NULLIF ( 32, 58 - - 38 * - COUNT( * ) + 51 * 13 DIV + + 83 ) + - 0 + 66
----
21

skipif mysql # not compatible
query I rowsort label-3717
SELECT - 45 + 2 / + NULLIF ( 32, 58 - - 38 * - COUNT ( * ) + 51 * 13 / + + 83 ) + - 0 + 66
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-3718
SELECT ALL - SUM( 12 ) * - MAX( ALL + ( - 57 ) ) col2
----
-684

skipif mysql # not compatible
query I rowsort label-3718
SELECT ALL - SUM ( 12 ) * - MAX ( ALL + ( - 57 ) ) col2
----
-684

onlyif mysql # aggregate syntax: 
query I rowsort label-3719
SELECT DISTINCT - 53 * - - 55 * - COUNT( * )
----
2915

skipif mysql # not compatible
query I rowsort label-3719
SELECT DISTINCT - 53 * - - 55 * - COUNT ( * )
----
2915

onlyif mysql # aggregate syntax: 
query I rowsort label-3720
SELECT - MAX( DISTINCT - 35 ) * + 36 * 96 col0
----
120960

skipif mysql # not compatible
query I rowsort label-3720
SELECT - MAX ( DISTINCT - 35 ) * + 36 * 96 col0
----
120960

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3721
SELECT ALL ( + - 96 ) * COUNT( 18 ) + - AVG ( - 54 ) * MAX( ALL 77 ) * - 79 + - CAST( NULL AS SIGNED ) + + 97 AS col2, + 71 + + 39 * + 29 * + 3 * + - COUNT( * ) * + 88
----
NULL
-298513

skipif mysql # not compatible
query II rowsort label-3721
SELECT ALL ( + - 96 ) * COUNT ( 18 ) + - AVG ( - 54 ) * MAX ( ALL 77 ) * - 79 + - CAST ( NULL AS INTEGER ) + + 97 AS col2, + 71 + + 39 * + 29 * + 3 * + - COUNT ( * ) * + 88
----
NULL
-298513

query I rowsort
SELECT DISTINCT + 90 * + 26 col2
----
2340

onlyif mysql # aggregate syntax: 
query I rowsort label-3723
SELECT + SUM( + 85 ) AS col1
----
85

skipif mysql # not compatible
query I rowsort label-3723
SELECT + SUM ( + 85 ) AS col1
----
85

query II rowsort
SELECT + ( + + ( - - 70 ) ) * 77 AS col1, 39 AS col1
----
5390
39

onlyif mysql # aggregate syntax: 
query I rowsort label-3725
SELECT ALL COUNT( * ) * - MIN( - + 73 ) + - + ( 54 )
----
19

skipif mysql # not compatible
query I rowsort label-3725
SELECT ALL COUNT ( * ) * - MIN ( - + 73 ) + - + ( 54 )
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-3726
SELECT CASE - - 23 WHEN + AVG ( ALL + 34 ) THEN + 4 * - 97 + COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-3726
SELECT CASE - - 23 WHEN + AVG ( ALL + 34 ) THEN + 4 * - 97 + COUNT ( * ) END
----
NULL

query I rowsort
SELECT + NULLIF ( - 12, - 49 / + + 90 )
----
-12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3728
SELECT - ( CAST( 53 AS SIGNED ) ) * 9 AS col1
----
-477

skipif mysql # not compatible
query I rowsort label-3728
SELECT - ( CAST ( 53 AS INTEGER ) ) * 9 AS col1
----
-477

onlyif mysql # aggregate syntax: 
query I rowsort label-3729
SELECT + 26 + - 72 * + COUNT( * ) * + - 36
----
2618

skipif mysql # not compatible
query I rowsort label-3729
SELECT + 26 + - 72 * + COUNT ( * ) * + - 36
----
2618

onlyif mysql # aggregate syntax: 
query I rowsort label-3730
SELECT COUNT( DISTINCT - - 18 )
----
1

skipif mysql # not compatible
query I rowsort label-3730
SELECT COUNT ( DISTINCT - - 18 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3731
SELECT - MIN( + 32 ) * + + 42 - + - 87 * - 3 + + + CASE - 37 WHEN + 3 THEN NULL ELSE - 62 + 19 + - - 7 + - 16 + CAST( NULL AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-3731
SELECT - MIN ( + 32 ) * + + 42 - + - 87 * - 3 + + + CASE - 37 WHEN + 3 THEN NULL ELSE - 62 + 19 + - - 7 + - 16 + CAST ( NULL AS INTEGER ) END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3732
SELECT ALL - COUNT( * ) DIV 90 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3732
SELECT ALL - COUNT ( * ) / 90 AS col1
----
0

query I rowsort
SELECT DISTINCT + 68 * + 2
----
136

query I rowsort
SELECT + - 99 * - 53
----
5247

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3735
SELECT + ( - 96 ) * MIN( ALL + 94 ) * + MIN( - CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3735
SELECT + ( - 96 ) * MIN ( ALL + 94 ) * + MIN ( - CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3736
SELECT + + MIN( ALL 12 ) + - ( + + 34 ) AS col1
----
-22

skipif mysql # not compatible
query I rowsort label-3736
SELECT + + MIN ( ALL 12 ) + - ( + + 34 ) AS col1
----
-22

query II rowsort
SELECT DISTINCT - 74, + 18 AS col0
----
-74
18

onlyif mysql # aggregate syntax: 
query I rowsort label-3738
SELECT + - 80 + + 8 + - + 11 * - COUNT( * ) + 65
----
4

skipif mysql # not compatible
query I rowsort label-3738
SELECT + - 80 + + 8 + - + 11 * - COUNT ( * ) + 65
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-3739
SELECT + COUNT( * ) - - - 59 col0
----
-58

skipif mysql # not compatible
query I rowsort label-3739
SELECT + COUNT ( * ) - - - 59 col0
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-3740
SELECT + - 97 * 23 * - COUNT( * ) * 13 - - - 33 AS col1
----
28970

skipif mysql # not compatible
query I rowsort label-3740
SELECT + - 97 * 23 * - COUNT ( * ) * 13 - - - 33 AS col1
----
28970

query I rowsort
SELECT DISTINCT - 92 * + 30
----
-2760

onlyif mysql # aggregate syntax: 
query I rowsort label-3742
SELECT - CASE - 22 WHEN - COUNT( ALL 30 ) THEN + - 13 + COUNT( * ) ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3742
SELECT - CASE - 22 WHEN - COUNT ( ALL 30 ) THEN + - 13 + COUNT ( * ) ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT + + 53 + - 86 AS col0
----
-33

onlyif mysql # DIV for integer division: 
query I rowsort label-3744
SELECT - - 48 DIV + + 97 - + 93
----
-93

skipif mysql # not compatible
query I rowsort label-3744
SELECT - - 48 / + + 97 - + 93
----
-93

query I rowsort
SELECT ALL + 42 * - + 5 + - + 87 AS col1
----
-297

query I rowsort
SELECT + - ( 75 ) + - + 5 * 92
----
-535

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3747
SELECT ALL COALESCE ( + 19, - 42 * COUNT( * ) DIV 51 * 12 - + + 32, - - 74 DIV + 69 + - 55 - - 27 DIV + - 19 * + 12 * + 65 ) DIV + 23 + + - 92 + - + 31 * 38 AS col2
----
-1270

skipif mysql # not compatible
query I rowsort label-3747
SELECT ALL COALESCE ( + 19, - 42 * COUNT ( * ) / 51 * 12 - + + 32, - - 74 / + 69 + - 55 - - 27 / + - 19 * + 12 * + 65 ) / + 23 + + - 92 + - + 31 * 38 AS col2
----
-1270

onlyif mysql # DIV for integer division: 
query I rowsort label-3748
SELECT DISTINCT 97 DIV + 79 + + 44 + 77
----
122

skipif mysql # not compatible
query I rowsort label-3748
SELECT DISTINCT 97 / + 79 + + 44 + 77
----
122

onlyif mysql # aggregate syntax: 
query I rowsort label-3749
SELECT ALL - 4 * - COUNT( * ) AS col1
----
4

skipif mysql # not compatible
query I rowsort label-3749
SELECT ALL - 4 * - COUNT ( * ) AS col1
----
4

onlyif mysql # DIV for integer division: 
query I rowsort label-3750
SELECT - 56 DIV + + 57 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3750
SELECT - 56 / + + 57 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3751
SELECT ALL 72 DIV - 82 + + 97
----
97

skipif mysql # not compatible
query I rowsort label-3751
SELECT ALL 72 / - 82 + + 97
----
97

query I rowsort
SELECT - 3 * + 89 AS col0
----
-267

onlyif mysql # DIV for integer division: 
query I rowsort label-3753
SELECT ALL - 62 DIV + 14 + + - 70 AS col2
----
-74

skipif mysql # not compatible
query I rowsort label-3753
SELECT ALL - 62 / + 14 + + - 70 AS col2
----
-74

query I rowsort
SELECT ( + 88 ) AS col1
----
88

query I rowsort
SELECT ALL + 41 * 70 AS col0
----
2870

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3756
SELECT - 67 + - CASE + 36 WHEN COUNT( * ) THEN - 13 + + - 78 + 35 WHEN + - 90 THEN - 62 WHEN - COALESCE ( + 18, - 5 + 81 + - 61 * - - 21 - COUNT( * ) + - 72 - + - 56 * - ( + 31 ) + + 17, - + 35 + 25 ) * - 18 THEN NULL ELSE 98 DIV - 17 END + + 19 * - 86 * 40
----
-65422

skipif mysql # not compatible
query I rowsort label-3756
SELECT - 67 + - CASE + 36 WHEN COUNT ( * ) THEN - 13 + + - 78 + 35 WHEN + - 90 THEN - 62 WHEN - COALESCE ( + 18, - 5 + 81 + - 61 * - - 21 - COUNT ( * ) + - 72 - + - 56 * - ( + 31 ) + + 17, - + 35 + 25 ) * - 18 THEN NULL ELSE 98 / - 17 END + + 19 * - 86 * 40
----
-65422

onlyif mysql # aggregate syntax: 
query I rowsort label-3757
SELECT 20 + - 98 + - COUNT( * ) + - - 53 * + ( + 79 ) AS col0
----
4108

skipif mysql # not compatible
query I rowsort label-3757
SELECT 20 + - 98 + - COUNT ( * ) + - - 53 * + ( + 79 ) AS col0
----
4108

query I rowsort
SELECT - ( + - 80 ) * + 32 + 5
----
2565

onlyif mysql # aggregate syntax: 
query II rowsort label-3759
SELECT 37 * + - 60 * - 56 + 41 AS col2, 81 * COUNT( * ) * + 66 + - 31 + + + 40
----
124361
5355

skipif mysql # not compatible
query II rowsort label-3759
SELECT 37 * + - 60 * - 56 + 41 AS col2, 81 * COUNT ( * ) * + 66 + - 31 + + + 40
----
124361
5355

query I rowsort
SELECT NULLIF ( - 52, - 53 ) + - - 51 + - 76 + - 74
----
-151

onlyif mysql # DIV for integer division: 
query II rowsort label-3761
SELECT 17 DIV + 20 AS col2, 32 * 58 * 95
----
0
176320

skipif mysql # not compatible
query II rowsort label-3761
SELECT 17 / + 20 AS col2, 32 * 58 * 95
----
0
176320

query I rowsort
SELECT + 33 * + + 73 AS col2
----
2409

query I rowsort
SELECT ALL - 7 * - 83
----
581

onlyif mysql # aggregate syntax: 
query I rowsort label-3764
SELECT 9 + COUNT( * ) + + 68 * + 42 + + 87
----
2953

skipif mysql # not compatible
query I rowsort label-3764
SELECT 9 + COUNT ( * ) + + 68 * + 42 + + 87
----
2953

onlyif mysql # aggregate syntax: 
query I rowsort label-3765
SELECT ALL - MAX( + 80 ) AS col0
----
-80

skipif mysql # not compatible
query I rowsort label-3765
SELECT ALL - MAX ( + 80 ) AS col0
----
-80

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3766
SELECT + 0 * + 16 col1, 52 - CAST( NULL AS SIGNED ) + 93 AS col1
----
0
NULL

skipif mysql # not compatible
query II rowsort label-3766
SELECT + 0 * + 16 col1, 52 - CAST ( NULL AS INTEGER ) + 93 AS col1
----
0
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3767
SELECT ALL + CAST( 74 AS SIGNED ) * - - 86 * - + 65 * - - 50 + 37 AS col1
----
-20682963

skipif mysql # not compatible
query I rowsort label-3767
SELECT ALL + CAST ( 74 AS INTEGER ) * - - 86 * - + 65 * - - 50 + 37 AS col1
----
-20682963

query II rowsort
SELECT DISTINCT 78 * 10 AS col2, + 93
----
780
93

onlyif mysql # aggregate syntax: 
query I rowsort label-3769
SELECT + 18 + + - 46 * + COUNT( * )
----
-28

skipif mysql # not compatible
query I rowsort label-3769
SELECT + 18 + + - 46 * + COUNT ( * )
----
-28

query I rowsort
SELECT 65 * + 41
----
2665

query I rowsort
SELECT - 49 * - - 54 + 99
----
-2547

onlyif mysql # aggregate syntax: 
query I rowsort label-3772
SELECT DISTINCT + 80 + - COUNT( * )
----
79

skipif mysql # not compatible
query I rowsort label-3772
SELECT DISTINCT + 80 + - COUNT ( * )
----
79

query I rowsort
SELECT ALL 75 + - + 75
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3774
SELECT 76 + - 35 DIV 47 AS col1
----
76

skipif mysql # not compatible
query I rowsort label-3774
SELECT 76 + - 35 / 47 AS col1
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-3775
SELECT DISTINCT 86 + - - ( + + COUNT( * ) ) * 51
----
137

skipif mysql # not compatible
query I rowsort label-3775
SELECT DISTINCT 86 + - - ( + + COUNT ( * ) ) * 51
----
137

onlyif mysql # aggregate syntax: 
query I rowsort label-3776
SELECT ( - COUNT( * ) ) + - NULLIF ( - 41, 95 * + - 24 + - 41 )
----
40

skipif mysql # not compatible
query I rowsort label-3776
SELECT ( - COUNT ( * ) ) + - NULLIF ( - 41, 95 * + - 24 + - 41 )
----
40

query I rowsort
SELECT 89 * ( 13 )
----
1157

query I rowsort
SELECT ALL 21 + + + 62
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-3779
SELECT 66 * COUNT( - 44 ) * 16 col2
----
1056

skipif mysql # not compatible
query I rowsort label-3779
SELECT 66 * COUNT ( - 44 ) * 16 col2
----
1056

query I rowsort
SELECT DISTINCT 74 + + - 11
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-3781
SELECT 79 - + MIN( + + 17 ) * + - 28
----
555

skipif mysql # not compatible
query I rowsort label-3781
SELECT 79 - + MIN ( + + 17 ) * + - 28
----
555

onlyif mysql # aggregate syntax: 
query II rowsort label-3782
SELECT 14 * - + 42 * COUNT( ALL 47 ) * - 61 AS col2, COUNT( * ) * + + 56 AS col0
----
35868
56

skipif mysql # not compatible
query II rowsort label-3782
SELECT 14 * - + 42 * COUNT ( ALL 47 ) * - 61 AS col2, COUNT ( * ) * + + 56 AS col0
----
35868
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3783
SELECT 36 * 41 + 54 * + + CAST( NULL AS SIGNED ) * + 58 * - - COALESCE ( + + 93, + + ( - AVG ( DISTINCT 4 ) ) - - 1 * + COALESCE ( 33, - + CAST( + + COUNT( * ) AS SIGNED ) ) + + + 34 ) * ( + ( - - 68 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3783
SELECT 36 * 41 + 54 * + + CAST ( NULL AS INTEGER ) * + 58 * - - COALESCE ( + + 93, + + ( - AVG ( DISTINCT 4 ) ) - - 1 * + COALESCE ( 33, - + CAST ( + + COUNT ( * ) AS INTEGER ) ) + + + 34 ) * ( + ( - - 68 ) )
----
NULL

query I rowsort
SELECT ALL - 0 - 44 AS col2
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-3785
SELECT ALL - CASE - + COUNT( * ) WHEN - COUNT( * ) THEN 52 * + 79 ELSE NULL END AS col0
----
-4108

skipif mysql # not compatible
query I rowsort label-3785
SELECT ALL - CASE - + COUNT ( * ) WHEN - COUNT ( * ) THEN 52 * + 79 ELSE NULL END AS col0
----
-4108

query II rowsort
SELECT 0 AS col0, - 56
----
0
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-3787
SELECT 4 * + COUNT( * ) * - 77 * - 82 AS col0
----
25256

skipif mysql # not compatible
query I rowsort label-3787
SELECT 4 * + COUNT ( * ) * - 77 * - 82 AS col0
----
25256

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3788
SELECT ALL - CAST( + - 70 AS SIGNED ) col2
----
70

skipif mysql # not compatible
query I rowsort label-3788
SELECT ALL - CAST ( + - 70 AS INTEGER ) col2
----
70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3789
SELECT DISTINCT - CAST( + COUNT( * ) AS DECIMAL ) * ( - CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3789
SELECT DISTINCT - CAST ( + COUNT ( * ) AS REAL ) * ( - CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3790
SELECT ALL + NULLIF ( + 7, - CAST( + - 76 AS SIGNED ) + - 32 ) - 8 * + COUNT( * ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-3790
SELECT ALL + NULLIF ( + 7, - CAST ( + - 76 AS INTEGER ) + - 32 ) - 8 * + COUNT ( * ) AS col0
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3791
SELECT 29 * + ( - COUNT( * ) ) AS col0, 38 DIV 2 + 21 + + 39
----
-29
79

skipif mysql # not compatible
query II rowsort label-3791
SELECT 29 * + ( - COUNT ( * ) ) AS col0, 38 / 2 + 21 + + 39
----
-29
79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3792
SELECT DISTINCT + CASE AVG ( + 3 ) WHEN + ( ( - 82 ) ) THEN + + 14 * CASE 16 WHEN - + COUNT( * ) THEN - 91 WHEN + + 15 * ( - 78 ) THEN NULL WHEN - + COUNT( * ) * 23 THEN + 50 END * + 17 - 92 WHEN - CAST( NULL AS SIGNED ) THEN + 16 END * + MIN( - 54 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3792
SELECT DISTINCT + CASE AVG ( + 3 ) WHEN + ( ( - 82 ) ) THEN + + 14 * CASE 16 WHEN - + COUNT ( * ) THEN - 91 WHEN + + 15 * ( - 78 ) THEN NULL WHEN - + COUNT ( * ) * 23 THEN + 50 END * + 17 - 92 WHEN - CAST ( NULL AS INTEGER ) THEN + 16 END * + MIN ( - 54 ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3793
SELECT + - 88 * - - 48 / - 90 * + + CAST( ( + NULLIF ( + + COUNT( * ), + 84 + - + 65 ) ) AS DECIMAL ) + 65 + 14 * - - COUNT( * ) * + + MIN( - 63 ) * + + ( 77 ) / - 34 + + CAST( NULL AS SIGNED ) + + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3793
SELECT + - 88 * - - 48 / - 90 * + + CAST ( ( + NULLIF ( + + COUNT ( * ), + 84 + - + 65 ) ) AS REAL ) + 65 + 14 * - - COUNT ( * ) * + + MIN ( - 63 ) * + + ( 77 ) / - 34 + + CAST ( NULL AS INTEGER ) + + - CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT 1 * + + 38 + - 63 AS col1, 74
----
-25
74

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3795
SELECT ALL - 58 * + ( - MIN( DISTINCT - CAST( NULL AS DECIMAL ) ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3795
SELECT ALL - 58 * + ( - MIN ( DISTINCT - CAST ( NULL AS REAL ) ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3796
SELECT MAX( 21 ) col0
----
21

skipif mysql # not compatible
query I rowsort label-3796
SELECT MAX ( 21 ) col0
----
21

onlyif mysql # DIV for integer division: 
query I rowsort label-3797
SELECT DISTINCT + ( - COALESCE ( - 62, - 39 * 2 - - 66 - - 84 DIV + 99 ) ) AS col0
----
62

skipif mysql # not compatible
query I rowsort label-3797
SELECT DISTINCT + ( - COALESCE ( - 62, - 39 * 2 - - 66 - - 84 / + 99 ) ) AS col0
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-3798
SELECT DISTINCT - - 40 * COUNT( * )
----
40

skipif mysql # not compatible
query I rowsort label-3798
SELECT DISTINCT - - 40 * COUNT ( * )
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-3799
SELECT DISTINCT - CASE + 28 WHEN + COUNT( * ) * + 81 THEN NULL ELSE 87 END
----
-87

skipif mysql # not compatible
query I rowsort label-3799
SELECT DISTINCT - CASE + 28 WHEN + COUNT ( * ) * + 81 THEN NULL ELSE 87 END
----
-87

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3800
SELECT - 41 + - 41 + + CASE - + 44 WHEN - COUNT( * ) + + 4 * + 78 DIV + 58 * - 46 * NULLIF ( - - 51, - 24 ) * + 89 + - ( - 52 ) + + + AVG ( 25 ) * - 59 - + 6 * + + 67 THEN - + 54 END * - ( 59 ) AS col2, 97 DIV + 1 AS col2
----
NULL
97

skipif mysql # not compatible
query II rowsort label-3800
SELECT - 41 + - 41 + + CASE - + 44 WHEN - COUNT ( * ) + + 4 * + 78 / + 58 * - 46 * NULLIF ( - - 51, - 24 ) * + 89 + - ( - 52 ) + + + AVG ( 25 ) * - 59 - + 6 * + + 67 THEN - + 54 END * - ( 59 ) AS col2, 97 / + 1 AS col2
----
NULL
97

query I rowsort
SELECT 3 + 76 col0
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-3802
SELECT ALL - 51 + COUNT( * ) AS col0
----
-50

skipif mysql # not compatible
query I rowsort label-3802
SELECT ALL - 51 + COUNT ( * ) AS col0
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-3803
SELECT - - SUM( - 29 )
----
-29

skipif mysql # not compatible
query I rowsort label-3803
SELECT - - SUM ( - 29 )
----
-29

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3804
SELECT - - NULLIF ( - CASE + 44 WHEN - MIN( + 36 ) THEN + ( + 83 ) + + 21 ELSE - + 52 + 21 DIV NULLIF ( + 88, + 77 - + + 10 ) END, + + 67 ) AS col0
----
52

skipif mysql # not compatible
query I rowsort label-3804
SELECT - - NULLIF ( - CASE + 44 WHEN - MIN ( + 36 ) THEN + ( + 83 ) + + 21 ELSE - + 52 + 21 / NULLIF ( + 88, + 77 - + + 10 ) END, + + 67 ) AS col0
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-3805
SELECT ALL - - COUNT( * ) + - - 48 AS col0
----
49

skipif mysql # not compatible
query I rowsort label-3805
SELECT ALL - - COUNT ( * ) + - - 48 AS col0
----
49

query I rowsort
SELECT + 91 * - 96
----
-8736

query I rowsort
SELECT ALL 75 * + 35
----
2625

query I rowsort
SELECT ALL 34 + - 85
----
-51

query I rowsort
SELECT 79 - - 48 col2
----
127

query II rowsort
SELECT 61, + 38 AS col1
----
61
38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3811
SELECT DISTINCT 80 * + CASE 96 WHEN - + CAST( NULL AS SIGNED ) * - 14 * - 93 THEN 53 WHEN + 0 * + 81 * + - ( - COALESCE ( 36, 30 - + - AVG ( ALL - 80 ) + + - 62, + 74 ) ) THEN NULL END * + 52 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3811
SELECT DISTINCT 80 * + CASE 96 WHEN - + CAST ( NULL AS INTEGER ) * - 14 * - 93 THEN 53 WHEN + 0 * + 81 * + - ( - COALESCE ( 36, 30 - + - AVG ( ALL - 80 ) + + - 62, + 74 ) ) THEN NULL END * + 52 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3812
SELECT 66 DIV + MIN( ALL 66 )
----
1

skipif mysql # not compatible
query I rowsort label-3812
SELECT 66 / + MIN ( ALL 66 )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3813
SELECT 69 + - CAST( - 0 AS SIGNED ) + - 37 col0
----
32

skipif mysql # not compatible
query I rowsort label-3813
SELECT 69 + - CAST ( - 0 AS INTEGER ) + - 37 col0
----
32

query II rowsort
SELECT DISTINCT 70, - 44 AS col2
----
70
-44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3815
SELECT COUNT( ALL + 14 ) + + 92 + - + 46 * + 36 DIV 46 DIV + + ( - 95 ) + - 22
----
71

skipif mysql # not compatible
query I rowsort label-3815
SELECT COUNT ( ALL + 14 ) + + 92 + - + 46 * + 36 / 46 / + + ( - 95 ) + - 22
----
71

query II rowsort
SELECT 91 AS col0, 35 * + ( ( - NULLIF ( 38, - + 43 * - 18 ) ) )
----
91
-1330

onlyif mysql # aggregate syntax: 
query II rowsort label-3817
SELECT DISTINCT - 33, - COUNT( * ) AS col1
----
-33
-1

skipif mysql # not compatible
query II rowsort label-3817
SELECT DISTINCT - 33, - COUNT ( * ) AS col1
----
-33
-1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3818
SELECT CASE - COUNT( * ) WHEN - 6 + 38 THEN 89 WHEN + 69 THEN + CAST( - - 17 AS DECIMAL ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-3818
SELECT CASE - COUNT ( * ) WHEN - 6 + 38 THEN 89 WHEN + 69 THEN + CAST ( - - 17 AS REAL ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3819
SELECT ALL - SUM( + 31 )
----
-31

skipif mysql # not compatible
query I rowsort label-3819
SELECT ALL - SUM ( + 31 )
----
-31

query I rowsort
SELECT CASE - 33 WHEN - 56 THEN + - 34 END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3821
SELECT - 44 DIV 45 + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-3821
SELECT - 44 / 45 + COUNT ( * )
----
1

query I rowsort
SELECT + 7 + + 11 AS col1
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-3823
SELECT ALL + COUNT( * ) * + 86 - 88 + - 41 + - 37 AS col2
----
-80

skipif mysql # not compatible
query I rowsort label-3823
SELECT ALL + COUNT ( * ) * + 86 - 88 + - 41 + - 37 AS col2
----
-80

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3824
SELECT 68 * + 40 + + 67 + - COUNT( * ) DIV + 88 DIV 59 * + 81
----
2787

skipif mysql # not compatible
query I rowsort label-3824
SELECT 68 * + 40 + + 67 + - COUNT ( * ) / + 88 / 59 * + 81
----
2787

query I rowsort
SELECT + + 93 * + 20 col1
----
1860

query I rowsort
SELECT ALL + 87 * - 49 AS col1
----
-4263

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3827
SELECT DISTINCT + COUNT( * ), ( + MAX( DISTINCT - 15 ) ) DIV + 6 col1
----
1
-2

skipif mysql # not compatible
query II rowsort label-3827
SELECT DISTINCT + COUNT ( * ), ( + MAX ( DISTINCT - 15 ) ) / + 6 col1
----
1
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3828
SELECT ALL 54 * + 26 + - COUNT( * ) - - 33 DIV 65
----
1403

skipif mysql # not compatible
query I rowsort label-3828
SELECT ALL 54 * + 26 + - COUNT ( * ) - - 33 / 65
----
1403

query I rowsort
SELECT - 59 + 88
----
29

onlyif mysql # aggregate syntax: 
query II rowsort label-3830
SELECT ALL + 90, 85 * - - COUNT( * ) * COUNT( * ) AS col0
----
90
85

skipif mysql # not compatible
query II rowsort label-3830
SELECT ALL + 90, 85 * - - COUNT ( * ) * COUNT ( * ) AS col0
----
90
85

query I rowsort
SELECT ALL + 16 * - 82 + 42
----
-1270

query I rowsort
SELECT ALL - + 62 + + + 10 AS col2
----
-52

onlyif mysql # DIV for integer division: 
query I rowsort label-3833
SELECT + 39 DIV + - 95 + 79 - - + 88 * 48 AS col2
----
4303

skipif mysql # not compatible
query I rowsort label-3833
SELECT + 39 / + - 95 + 79 - - + 88 * 48 AS col2
----
4303

onlyif mysql # aggregate syntax: 
query I rowsort label-3834
SELECT + 58 * 17 + + - MAX( + 20 ) AS col1
----
966

skipif mysql # not compatible
query I rowsort label-3834
SELECT + 58 * 17 + + - MAX ( + 20 ) AS col1
----
966

query I rowsort
SELECT - ( - + ( 78 ) )
----
78

query I rowsort
SELECT DISTINCT - 64 + + 86 AS col2
----
22

query I rowsort
SELECT DISTINCT 40 + + - 72 + - 97
----
-129

query I rowsort
SELECT ALL - + 87 + + 32
----
-55

query II rowsort
SELECT - 89 + - 32 AS col0, 61
----
-121
61

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3840
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col1, - 64 AS col0
----
NULL
-64

skipif mysql # not compatible
query II rowsort label-3840
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col1, - 64 AS col0
----
NULL
-64

onlyif mysql # DIV for integer division: 
query II rowsort label-3841
SELECT - 16 + + 41, 25 DIV + - 9 AS col0
----
25
-2

skipif mysql # not compatible
query II rowsort label-3841
SELECT - 16 + + 41, 25 / + - 9 AS col0
----
25
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-3842
SELECT ALL NULLIF ( - SUM( - + 69 ), + - 36 * + + 45 / + 84 ) AS col1
----
69

skipif mysql # not compatible
query I rowsort label-3842
SELECT ALL NULLIF ( - SUM ( - + 69 ), + - 36 * + + 45 / + 84 ) AS col1
----
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3843
SELECT ALL + COUNT( * ) - + + CAST( NULL AS SIGNED ) - + ( COUNT( ALL + 4 ) ) + - 18 * + - 66 * - 66 * - ( + 10 ) AS col2, 31
----
NULL
31

skipif mysql # not compatible
query II rowsort label-3843
SELECT ALL + COUNT ( * ) - + + CAST ( NULL AS INTEGER ) - + ( COUNT ( ALL + 4 ) ) + - 18 * + - 66 * - 66 * - ( + 10 ) AS col2, 31
----
NULL
31

onlyif mysql # aggregate syntax: 
query I rowsort label-3844
SELECT - COUNT( * ) * - 95 * 66 AS col1
----
6270

skipif mysql # not compatible
query I rowsort label-3844
SELECT - COUNT ( * ) * - 95 * 66 AS col1
----
6270

query I rowsort
SELECT - 10 * + 92 col0
----
-920

query I rowsort
SELECT DISTINCT + 0 - + 30
----
-30

query I rowsort
SELECT - NULLIF ( + 62, + - 37 ) AS col0
----
-62

query II rowsort
SELECT + 62 + - 0, + 38 * + 48 col2
----
62
1824

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3849
SELECT - ( + 98 ) * - COALESCE ( - COUNT( * ), - 94, + 95 DIV + 58 - CASE 92 WHEN + + 75 + + 29 THEN + 61 ELSE + CASE + - ( + + 90 ) WHEN 69 THEN - + ( 61 ) * CAST( NULL AS SIGNED ) + + + 73 WHEN - CAST( NULL AS SIGNED ) THEN NULL END END - + + ( + - MIN( - 28 ) ) + - 24 + + 61 + ( 69 ) + - 83 * - 89 * 20 + + 90 * + 50 ) - + 18 AS col2
----
-116

skipif mysql # not compatible
query I rowsort label-3849
SELECT - ( + 98 ) * - COALESCE ( - COUNT ( * ), - 94, + 95 / + 58 - CASE 92 WHEN + + 75 + + 29 THEN + 61 ELSE + CASE + - ( + + 90 ) WHEN 69 THEN - + ( 61 ) * CAST ( NULL AS INTEGER ) + + + 73 WHEN - CAST ( NULL AS INTEGER ) THEN NULL END END - + + ( + - MIN ( - 28 ) ) + - 24 + + 61 + ( 69 ) + - 83 * - 89 * 20 + + 90 * + 50 ) - + 18 AS col2
----
-116

onlyif mysql # aggregate syntax: 
query I rowsort label-3850
SELECT DISTINCT + COUNT( * ) - - 3 + COALESCE ( + 67, - + 12 )
----
71

skipif mysql # not compatible
query I rowsort label-3850
SELECT DISTINCT + COUNT ( * ) - - 3 + COALESCE ( + 67, - + 12 )
----
71

query I rowsort
SELECT - 67 + + 56
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-3852
SELECT DISTINCT 79 - - + COUNT( * ) + + - 12
----
68

skipif mysql # not compatible
query I rowsort label-3852
SELECT DISTINCT 79 - - + COUNT ( * ) + + - 12
----
68

query I rowsort
SELECT DISTINCT ( + 58 ) AS col2
----
58

query I rowsort
SELECT ALL - 10 * + 25 * + 23
----
-5750

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3855
SELECT - 40 DIV - + 77 - + 21 - - 44 * ( MIN( ALL + - 67 ) ) + COUNT( * ) + - + ( - + COUNT( * ) ) DIV + 79 - - - 77
----
-3045

skipif mysql # not compatible
query I rowsort label-3855
SELECT - 40 / - + 77 - + 21 - - 44 * ( MIN ( ALL + - 67 ) ) + COUNT ( * ) + - + ( - + COUNT ( * ) ) / + 79 - - - 77
----
-3045

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3856
SELECT + COUNT( DISTINCT + ( - 99 ) ) DIV 98 + + + CASE + ( 82 ) WHEN - 97 + + 13 THEN - + 11 * 50 - - - NULLIF ( - 81, + COUNT( ALL + 30 ) ) + + + 8 + + COUNT( * ) ELSE + - 66 END
----
-66

skipif mysql # not compatible
query I rowsort label-3856
SELECT + COUNT ( DISTINCT + ( - 99 ) ) / 98 + + + CASE + ( 82 ) WHEN - 97 + + 13 THEN - + 11 * 50 - - - NULLIF ( - 81, + COUNT ( ALL + 30 ) ) + + + 8 + + COUNT ( * ) ELSE + - 66 END
----
-66

onlyif mysql # aggregate syntax: 
query II rowsort label-3857
SELECT - 8 * COUNT( * ) * 60, - 69 AS col2
----
-480
-69

skipif mysql # not compatible
query II rowsort label-3857
SELECT - 8 * COUNT ( * ) * 60, - 69 AS col2
----
-480
-69

query I rowsort
SELECT - 90 * + 84 * + 86 + + 83
----
-650077

onlyif mysql # aggregate syntax: 
query II rowsort label-3859
SELECT + ( + 66 ), - COUNT( * ) - + 80 AS col0
----
66
-81

skipif mysql # not compatible
query II rowsort label-3859
SELECT + ( + 66 ), - COUNT ( * ) - + 80 AS col0
----
66
-81

query I rowsort
SELECT ALL + 84 col1
----
84

query I rowsort
SELECT - 84 * - 91
----
7644

onlyif mysql # DIV for integer division: 
query I rowsort label-3862
SELECT ALL 2 DIV 70 + 18 AS col1
----
18

skipif mysql # not compatible
query I rowsort label-3862
SELECT ALL 2 / 70 + 18 AS col1
----
18

query I rowsort
SELECT + 43 * + 54 AS col0
----
2322

onlyif mysql # aggregate syntax: 
query I rowsort label-3864
SELECT DISTINCT - 20 * - + COUNT( * )
----
20

skipif mysql # not compatible
query I rowsort label-3864
SELECT DISTINCT - 20 * - + COUNT ( * )
----
20

query I rowsort
SELECT + 70 * - - 40
----
2800

onlyif mysql # aggregate syntax: 
query I rowsort label-3866
SELECT ALL - 79 * + + COUNT( * ) + - - 20 + - COUNT( * ) - + 53 + 44
----
-69

skipif mysql # not compatible
query I rowsort label-3866
SELECT ALL - 79 * + + COUNT ( * ) + - - 20 + - COUNT ( * ) - + 53 + 44
----
-69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3867
SELECT + - 70 * + CAST( NULL AS SIGNED ) * + 90
----
NULL

skipif mysql # not compatible
query I rowsort label-3867
SELECT + - 70 * + CAST ( NULL AS INTEGER ) * + 90
----
NULL

query II rowsort
SELECT - ( + 66 ) AS col1, + 95 col1
----
-66
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3869
SELECT + - NULLIF ( - - 7, + 45 - COUNT( * ) - + 91 + - CASE - + COUNT( * ) WHEN 55 THEN NULL WHEN + - 6 * + 99 - + CASE - 9 WHEN - 77 - MAX( ALL 21 ) * - 88 THEN + 73 ELSE NULL END THEN - + ( + - 16 ) WHEN + + 83 THEN NULL ELSE NULL END * + + CAST( NULL AS SIGNED ) )
----
-7

skipif mysql # not compatible
query I rowsort label-3869
SELECT + - NULLIF ( - - 7, + 45 - COUNT ( * ) - + 91 + - CASE - + COUNT ( * ) WHEN 55 THEN NULL WHEN + - 6 * + 99 - + CASE - 9 WHEN - 77 - MAX ( ALL 21 ) * - 88 THEN + 73 ELSE NULL END THEN - + ( + - 16 ) WHEN + + 83 THEN NULL ELSE NULL END * + + CAST ( NULL AS INTEGER ) )
----
-7

query I rowsort
SELECT ALL + - 63 AS col2
----
-63

onlyif mysql # aggregate syntax: 
query III rowsort label-3871
SELECT ALL - COUNT( * ) * - 30 AS col2, - 41 + + + CASE + 89 WHEN 38 * + - AVG ( + 22 ) THEN MAX( ALL + 56 ) END, - 50 AS col2
----
30
NULL
-50

skipif mysql # not compatible
query III rowsort label-3871
SELECT ALL - COUNT ( * ) * - 30 AS col2, - 41 + + + CASE + 89 WHEN 38 * + - AVG ( + 22 ) THEN MAX ( ALL + 56 ) END, - 50 AS col2
----
30
NULL
-50

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3872
SELECT + 73 DIV - - COUNT( * ) AS col2
----
73

skipif mysql # not compatible
query I rowsort label-3872
SELECT + 73 / - - COUNT ( * ) AS col2
----
73

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3873
SELECT ALL + + 22 DIV + 83 + + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-3873
SELECT ALL + + 22 / + 83 + + COUNT ( * )
----
1

query II rowsort
SELECT - ( - ( - - 15 ) ), 59 AS col1
----
15
59

onlyif mysql # aggregate syntax: 
query II rowsort label-3875
SELECT COUNT( * ), - COUNT( ALL - 79 ) AS col0
----
1
-1

skipif mysql # not compatible
query II rowsort label-3875
SELECT COUNT ( * ), - COUNT ( ALL - 79 ) AS col0
----
1
-1

query I rowsort
SELECT - 10 * - 71 AS col2
----
710

query I rowsort
SELECT + 22 * - 6
----
-132

query I rowsort
SELECT - 86 * + - 74 AS col1
----
6364

query I rowsort
SELECT ALL ( - 51 ) AS col1
----
-51

query I rowsort
SELECT DISTINCT - 59 * + 77 * + 63 AS col2
----
-286209

query I rowsort
SELECT + 57 + + 3
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-3882
SELECT DISTINCT MAX( - + COALESCE ( - 73, + 91 ) )
----
73

skipif mysql # not compatible
query I rowsort label-3882
SELECT DISTINCT MAX ( - + COALESCE ( - 73, + 91 ) )
----
73

query I rowsort
SELECT ALL 56 * 0 AS col1
----
0

query I rowsort
SELECT 14 + + 90
----
104

query II rowsort
SELECT ALL 26 AS col1, - ( + 17 ) + 57 col1
----
26
40

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3886
SELECT ALL 28 AS col2, CAST( - + 45 AS SIGNED ) * + 53 AS col2
----
28
-2385

skipif mysql # not compatible
query II rowsort label-3886
SELECT ALL 28 AS col2, CAST ( - + 45 AS INTEGER ) * + 53 AS col2
----
28
-2385

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3887
SELECT CAST( + MIN( ALL 98 ) AS SIGNED ) * + 86 AS col0
----
8428

skipif mysql # not compatible
query I rowsort label-3887
SELECT CAST ( + MIN ( ALL 98 ) AS INTEGER ) * + 86 AS col0
----
8428

onlyif mysql # DIV for integer division: 
query II rowsort label-3888
SELECT 4 + + - 44 DIV 34 col1, 22 * + 69 * + 99 * - + 56
----
3
-8415792

skipif mysql # not compatible
query II rowsort label-3888
SELECT 4 + + - 44 / 34 col1, 22 * + 69 * + 99 * - + 56
----
3
-8415792

query I rowsort
SELECT 13 + + + 68
----
81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3890
SELECT COUNT( * ) DIV - 51 * - NULLIF ( - 1, 3 ) + - - 71 col0
----
71

skipif mysql # not compatible
query I rowsort label-3890
SELECT COUNT ( * ) / - 51 * - NULLIF ( - 1, 3 ) + - - 71 col0
----
71

query I rowsort
SELECT DISTINCT - ( 72 )
----
-72

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3892
SELECT ALL - 79 + + COALESCE ( 45, + CAST( NULL AS SIGNED ) DIV - - 53 ) + 24 - + 86 * + + NULLIF ( - 29, + 89 ) + - 37
----
2447

skipif mysql # not compatible
query I rowsort label-3892
SELECT ALL - 79 + + COALESCE ( 45, + CAST ( NULL AS INTEGER ) / - - 53 ) + 24 - + 86 * + + NULLIF ( - 29, + 89 ) + - 37
----
2447

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3893
SELECT + COALESCE ( - 98, 49 - + 95 DIV ( + 32 ) - - 86 + CAST( - 52 AS SIGNED ) * + 44 * - 57 * 3 + - 36 ) * - ( + 8 )
----
784

skipif mysql # not compatible
query I rowsort label-3893
SELECT + COALESCE ( - 98, 49 - + 95 / ( + 32 ) - - 86 + CAST ( - 52 AS INTEGER ) * + 44 * - 57 * 3 + - 36 ) * - ( + 8 )
----
784

query I rowsort
SELECT DISTINCT + NULLIF ( - 32, + + ( + CASE - 88 WHEN + 85 THEN - 12 + + - COALESCE ( + 91, - 96, 1 ) ELSE NULL END ) + 36 ) * - 36 * - 46 + - 90
----
-53082

query II rowsort
SELECT - 5, 51 AS col0
----
-5
51

query I rowsort
SELECT ALL + 79 + - 18 + 66 + + 41 AS col1
----
168

onlyif mysql # aggregate syntax: 
query I rowsort label-3897
SELECT + SUM( ALL + 11 )
----
11

skipif mysql # not compatible
query I rowsort label-3897
SELECT + SUM ( ALL + 11 )
----
11

query I rowsort
SELECT - ( + 48 ) * - - 46 - - 9 AS col1
----
-2199

query I rowsort
SELECT - 77 * 23 col0
----
-1771

query I rowsort
SELECT + 99 * - + ( - - 85 ) * - 74 + 51 + + 87 * 96
----
631113

onlyif mysql # aggregate syntax: 
query I rowsort label-3901
SELECT 86 * - 38 * NULLIF ( CASE + - 59 WHEN - 48 THEN + 83 * + 0 * - 80 + + 82 WHEN - 45 * - - MIN( DISTINCT + - 49 ) + - 12 + + 24 THEN NULL END, - 54 ) / NULLIF ( + 15, + CASE NULLIF ( - 70, + - 38 ) WHEN 53 THEN NULL ELSE 42 END + - 10 ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3901
SELECT 86 * - 38 * NULLIF ( CASE + - 59 WHEN - 48 THEN + 83 * + 0 * - 80 + + 82 WHEN - 45 * - - MIN ( DISTINCT + - 49 ) + - 12 + + 24 THEN NULL END, - 54 ) / NULLIF ( + 15, + CASE NULLIF ( - 70, + - 38 ) WHEN 53 THEN NULL ELSE 42 END + - 10 ) col2
----
NULL

query I rowsort
SELECT + 86 * + + 48 + 96
----
4224

onlyif mysql # aggregate syntax: 
query I rowsort label-3903
SELECT ALL - CASE 32 WHEN + 74 THEN 32 + 65 WHEN + COUNT( * ) + 72 THEN NULL ELSE - - 70 END AS col2
----
-70

skipif mysql # not compatible
query I rowsort label-3903
SELECT ALL - CASE 32 WHEN + 74 THEN 32 + 65 WHEN + COUNT ( * ) + 72 THEN NULL ELSE - - 70 END AS col2
----
-70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3904
SELECT ALL - - CAST( NULL AS SIGNED ) AS col1, NULLIF ( + + 2, - 14 * SUM( ALL + 0 ) * - 94 * 61 * 12 + - COALESCE ( 7, - 2 + - - 18 + + + ( - COUNT( * ) ) + - - 73 * 41 ) + + 36 + - 35 - + 66 )
----
NULL
2

skipif mysql # not compatible
query II rowsort label-3904
SELECT ALL - - CAST ( NULL AS INTEGER ) AS col1, NULLIF ( + + 2, - 14 * SUM ( ALL + 0 ) * - 94 * 61 * 12 + - COALESCE ( 7, - 2 + - - 18 + + + ( - COUNT ( * ) ) + - - 73 * 41 ) + + 36 + - 35 - + 66 )
----
NULL
2

onlyif mysql # aggregate syntax: 
query I rowsort label-3905
SELECT ALL - COUNT( DISTINCT - 4 )
----
-1

skipif mysql # not compatible
query I rowsort label-3905
SELECT ALL - COUNT ( DISTINCT - 4 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3906
SELECT + 71 + + SUM( DISTINCT - ( + + 41 ) ) AS col0
----
30

skipif mysql # not compatible
query I rowsort label-3906
SELECT + 71 + + SUM ( DISTINCT - ( + + 41 ) ) AS col0
----
30

query I rowsort
SELECT ALL + 3 - - - 88 col0
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-3908
SELECT + 10 * + + 74 * + ( - 19 ) * - 70 - - COUNT( + 22 )
----
984201

skipif mysql # not compatible
query I rowsort label-3908
SELECT + 10 * + + 74 * + ( - 19 ) * - 70 - - COUNT ( + 22 )
----
984201

query I rowsort
SELECT 55 * + 31 * + NULLIF ( 8, + 72 + - - 14 ) * 71 - + 25 + + 49
----
968464

onlyif mysql # DIV for integer division: 
query I rowsort label-3910
SELECT ( + + 12 ) * - - NULLIF ( + 96, - + 51 ) + + - ( 42 ) DIV 73 * - 86 * 76 AS col0
----
1152

skipif mysql # not compatible
query I rowsort label-3910
SELECT ( + + 12 ) * - - NULLIF ( + 96, - + 51 ) + + - ( 42 ) / 73 * - 86 * 76 AS col0
----
1152

query I rowsort
SELECT DISTINCT - 70 - + ( - 47 ) AS col1
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-3912
SELECT 18 * SUM( DISTINCT + + 11 ) + - 36 * + 41 AS col2
----
-1278

skipif mysql # not compatible
query I rowsort label-3912
SELECT 18 * SUM ( DISTINCT + + 11 ) + - 36 * + 41 AS col2
----
-1278

query I rowsort
SELECT DISTINCT 10 * + - 85 AS col1
----
-850

query I rowsort
SELECT DISTINCT 22 - - + 54 AS col0
----
76

query I rowsort
SELECT ALL 56 * + 63
----
3528

query I rowsort
SELECT 23 * 29
----
667

onlyif mysql # DIV for integer division: 
query I rowsort label-3917
SELECT 30 DIV 58
----
0

skipif mysql # not compatible
query I rowsort label-3917
SELECT 30 / 58
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3918
SELECT 1 + COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-3918
SELECT 1 + COUNT ( * )
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-3919
SELECT DISTINCT 44 DIV + 75 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3919
SELECT DISTINCT 44 / + 75 AS col1
----
0

query I rowsort
SELECT ( + 88 ) + + 3
----
91

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3921
SELECT 49 + 71 * 28 + + COUNT( * ) + + + 58 + - 42 * 68 DIV ( - + COUNT( * ) ), - 67 AS col1
----
4952
-67

skipif mysql # not compatible
query II rowsort label-3921
SELECT 49 + 71 * 28 + + COUNT ( * ) + + + 58 + - 42 * 68 / ( - + COUNT ( * ) ), - 67 AS col1
----
4952
-67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3922
SELECT COUNT( * ) DIV + - 48 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3922
SELECT COUNT ( * ) / + - 48 AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3923
SELECT 55 DIV - + 73 * - 48 * - 63
----
0

skipif mysql # not compatible
query I rowsort label-3923
SELECT 55 / - + 73 * - 48 * - 63
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3924
SELECT DISTINCT 8 DIV 40
----
0

skipif mysql # not compatible
query I rowsort label-3924
SELECT DISTINCT 8 / 40
----
0

query I rowsort
SELECT DISTINCT + 38 * - 22
----
-836

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3926
SELECT DISTINCT CAST( NULL AS SIGNED ) + - - COUNT( * ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3926
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - - COUNT ( * ) col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3927
SELECT + ( - ( COALESCE ( - 58, - 17 + + + CASE 3 WHEN 11 * 66 + 62 - - 29 + - ( - 35 ) THEN NULL WHEN - 61 - COUNT( * ) THEN NULL WHEN - + 16 * + + COUNT( * ) + 32 THEN + - 0 * + + CASE - 82 WHEN 34 + + - 73 - - 52 * - 63 THEN + 87 WHEN 88 / - - 75 THEN + 45 END * 66 + - CAST( 67 AS SIGNED ) ELSE NULL END + - 60 ) ) ) + + + 64
----
122

skipif mysql # not compatible
query I rowsort label-3927
SELECT + ( - ( COALESCE ( - 58, - 17 + + + CASE 3 WHEN 11 * 66 + 62 - - 29 + - ( - 35 ) THEN NULL WHEN - 61 - COUNT ( * ) THEN NULL WHEN - + 16 * + + COUNT ( * ) + 32 THEN + - 0 * + + CASE - 82 WHEN 34 + + - 73 - - 52 * - 63 THEN + 87 WHEN 88 / - - 75 THEN + 45 END * 66 + - CAST ( 67 AS INTEGER ) ELSE NULL END + - 60 ) ) ) + + + 64
----
122

query I rowsort
SELECT ALL - - 31 + - 52 * 78 + ( - 97 ) AS col0
----
-4122

query I rowsort
SELECT + NULLIF ( + + 34, - - 72 / - AVG ( ALL - - 79 ) ) AS col0
----
34

query I rowsort
SELECT 75 + - 10
----
65

query I rowsort
SELECT DISTINCT - + 18
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-3932
SELECT - COUNT( * ) * 55 * - 3 + 1
----
166

skipif mysql # not compatible
query I rowsort label-3932
SELECT - COUNT ( * ) * 55 * - 3 + 1
----
166

query I rowsort
SELECT + + 36 col0
----
36

onlyif mysql # aggregate syntax: 
query II rowsort label-3934
SELECT ALL COUNT( * ) * - 37 * 21 - - 41, 13 AS col0
----
-736
13

skipif mysql # not compatible
query II rowsort label-3934
SELECT ALL COUNT ( * ) * - 37 * 21 - - 41, 13 AS col0
----
-736
13

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3935
SELECT 0 DIV COUNT( * ) + - + 39 AS col1
----
-39

skipif mysql # not compatible
query I rowsort label-3935
SELECT 0 / COUNT ( * ) + - + 39 AS col1
----
-39

query I rowsort
SELECT + NULLIF ( 17, + - 73 )
----
17

query II rowsort
SELECT 23 * - + 39 AS col0, - 22 AS col1
----
-897
-22

onlyif mysql # aggregate syntax: 
query II rowsort label-3938
SELECT 70 * - - 21, ( MAX( ALL 42 ) ) * - + 89 col1
----
1470
-3738

skipif mysql # not compatible
query II rowsort label-3938
SELECT 70 * - - 21, ( MAX ( ALL 42 ) ) * - + 89 col1
----
1470
-3738

onlyif mysql # aggregate syntax: 
query II rowsort label-3939
SELECT - 82 * + + COALESCE ( + 65, - 31 + + 77 * - 94 + - 22 ), + ( + NULLIF ( - - MIN( ALL + + 99 ), 7 * - + 42 + + 43 - - 37 ) ) + - 48 col1
----
-5330
51

skipif mysql # not compatible
query II rowsort label-3939
SELECT - 82 * + + COALESCE ( + 65, - 31 + + 77 * - 94 + - 22 ), + ( + NULLIF ( - - MIN ( ALL + + 99 ), 7 * - + 42 + + 43 - - 37 ) ) + - 48 col1
----
-5330
51

onlyif mysql # DIV for integer division: 
query I rowsort label-3940
SELECT NULLIF ( - 91, + + 43 ) DIV + - 68 + + 72 AS col2
----
73

skipif mysql # not compatible
query I rowsort label-3940
SELECT NULLIF ( - 91, + + 43 ) / + - 68 + + 72 AS col2
----
73

query I rowsort
SELECT ALL - 14 * - 10 * - 85
----
-11900

query I rowsort
SELECT ALL + NULLIF ( 82, - 45 / + - 83 ) AS col0
----
82

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3943
SELECT - 51 - - 38 - - 70 DIV - COUNT( * ) AS col0
----
-83

skipif mysql # not compatible
query I rowsort label-3943
SELECT - 51 - - 38 - - 70 / - COUNT ( * ) AS col0
----
-83

onlyif mysql # aggregate syntax: 
query II rowsort label-3944
SELECT ALL + 75 AS col2, - MIN( - 57 ) AS col1
----
75
57

skipif mysql # not compatible
query II rowsort label-3944
SELECT ALL + 75 AS col2, - MIN ( - 57 ) AS col1
----
75
57

onlyif mysql # aggregate syntax: 
query II rowsort label-3945
SELECT DISTINCT CASE - + 54 WHEN - 85 * + 73 * + 44 * + + 27 - 21 * - 57 THEN NULL WHEN - 82 * + + ( - ( MIN( 44 ) ) ) - 18 THEN 89 END AS col2, - 12
----
NULL
-12

skipif mysql # not compatible
query II rowsort label-3945
SELECT DISTINCT CASE - + 54 WHEN - 85 * + 73 * + 44 * + + 27 - 21 * - 57 THEN NULL WHEN - 82 * + + ( - ( MIN ( 44 ) ) ) - 18 THEN 89 END AS col2, - 12
----
NULL
-12

query I rowsort
SELECT - 91 + - 21 col1
----
-112

onlyif mysql # aggregate syntax: 
query I rowsort label-3947
SELECT ALL 3 * - COUNT( * ) * - + ( + CASE + CASE 50 WHEN ( + - 23 ) THEN NULL ELSE + + COALESCE ( 75, + - 73 ) END WHEN - 35 + 60 THEN + + 35 WHEN - COUNT( * ) * - + 0 THEN NULL END ) * + 74 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3947
SELECT ALL 3 * - COUNT ( * ) * - + ( + CASE + CASE 50 WHEN ( + - 23 ) THEN NULL ELSE + + COALESCE ( 75, + - 73 ) END WHEN - 35 + 60 THEN + + 35 WHEN - COUNT ( * ) * - + 0 THEN NULL END ) * + 74 AS col0
----
NULL

query I rowsort
SELECT - 9 * + 22 AS col1
----
-198

query I rowsort
SELECT + 67 + + 74
----
141

onlyif mysql # aggregate syntax: 
query I rowsort label-3950
SELECT - MAX( DISTINCT + 5 )
----
-5

skipif mysql # not compatible
query I rowsort label-3950
SELECT - MAX ( DISTINCT + 5 )
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-3951
SELECT DISTINCT COUNT( * ) * - 2 AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-3951
SELECT DISTINCT COUNT ( * ) * - 2 AS col0
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3952
SELECT DISTINCT CAST( + 65 AS SIGNED ) + 14 * + 84
----
1241

skipif mysql # not compatible
query I rowsort label-3952
SELECT DISTINCT CAST ( + 65 AS INTEGER ) + 14 * + 84
----
1241

query II rowsort
SELECT ALL 44 AS col2, - 92 col1
----
44
-92

onlyif mysql # DIV for integer division: 
query I rowsort label-3954
SELECT - COALESCE ( 32, - + 89 DIV 33 ) AS col2
----
-32

skipif mysql # not compatible
query I rowsort label-3954
SELECT - COALESCE ( 32, - + 89 / 33 ) AS col2
----
-32

query I rowsort
SELECT DISTINCT - COALESCE ( + 66, + - 39 * + 41 * - ( + + 91 ) + + 69 )
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-3956
SELECT + + 57 + + - COUNT( * ) * + 9 + - COUNT( * ) AS col2
----
47

skipif mysql # not compatible
query I rowsort label-3956
SELECT + + 57 + + - COUNT ( * ) * + 9 + - COUNT ( * ) AS col2
----
47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3957
SELECT ALL 6 DIV - COUNT( * )
----
-6

skipif mysql # not compatible
query I rowsort label-3957
SELECT ALL 6 / - COUNT ( * )
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-3958
SELECT CASE + + 10 WHEN - 70 THEN + 45 * - 14 - + 17 WHEN + 47 THEN 53 / - COUNT( * ) / - 11 * 56 * 50 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3958
SELECT CASE + + 10 WHEN - 70 THEN + 45 * - 14 - + 17 WHEN + 47 THEN 53 / - COUNT ( * ) / - 11 * 56 * 50 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3959
SELECT ALL + COUNT( * ) * + 45 * - 28 - - 31 col1
----
-1229

skipif mysql # not compatible
query I rowsort label-3959
SELECT ALL + COUNT ( * ) * + 45 * - 28 - - 31 col1
----
-1229

query I rowsort
SELECT + - 33 * 95
----
-3135

onlyif mysql # aggregate syntax: 
query I rowsort label-3961
SELECT DISTINCT + SUM( DISTINCT 8 )
----
8

skipif mysql # not compatible
query I rowsort label-3961
SELECT DISTINCT + SUM ( DISTINCT 8 )
----
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3962
SELECT + + 58 * - CAST( + 25 AS SIGNED ) AS col1
----
-1450

skipif mysql # not compatible
query I rowsort label-3962
SELECT + + 58 * - CAST ( + 25 AS INTEGER ) AS col1
----
-1450

query I rowsort
SELECT DISTINCT + + 91 AS col2
----
91

query I rowsort
SELECT ALL 95 * 92 AS col2
----
8740

query II rowsort
SELECT DISTINCT + + 74, 7 AS col1
----
74
7

query I rowsort
SELECT + 83 * + ( 67 ) AS col1
----
5561

onlyif mysql # aggregate syntax: 
query I rowsort label-3967
SELECT - 53 * - CASE 39 WHEN 58 THEN NULL WHEN 2 * - 14 * + COUNT( * ) * - 89 - - 22 + - - 47 THEN + 31 * - 10 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3967
SELECT - 53 * - CASE 39 WHEN 58 THEN NULL WHEN 2 * - 14 * + COUNT ( * ) * - 89 - - 22 + - - 47 THEN + 31 * - 10 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3968
SELECT - COALESCE ( + - 85, + COUNT( * ) * - 68 * + 55, + + 1 ) * - 38 - + - 83
----
-3147

skipif mysql # not compatible
query I rowsort label-3968
SELECT - COALESCE ( + - 85, + COUNT ( * ) * - 68 * + 55, + + 1 ) * - 38 - + - 83
----
-3147

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3969
SELECT + + 6 + - CAST( - + 40 AS SIGNED ) AS col0
----
46

skipif mysql # not compatible
query I rowsort label-3969
SELECT + + 6 + - CAST ( - + 40 AS INTEGER ) AS col0
----
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3970
SELECT - - ( 31 ) - CAST( NULL AS SIGNED ) * + - 66
----
NULL

skipif mysql # not compatible
query I rowsort label-3970
SELECT - - ( 31 ) - CAST ( NULL AS INTEGER ) * + - 66
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3971
SELECT 31 * - CASE + 83 WHEN + NULLIF ( - 51, - CAST( + + ( + ( + 24 ) ) AS SIGNED ) + + 16 - + - 32 * MIN( DISTINCT COALESCE ( + - 63, + - 33 ) ) / + 66 ) THEN 85 ELSE NULL END + - + 79 AS col1, - COUNT( * ) + + 89 col2
----
NULL
88

skipif mysql # not compatible
query II rowsort label-3971
SELECT 31 * - CASE + 83 WHEN + NULLIF ( - 51, - CAST ( + + ( + ( + 24 ) ) AS INTEGER ) + + 16 - + - 32 * MIN ( DISTINCT COALESCE ( + - 63, + - 33 ) ) / + 66 ) THEN 85 ELSE NULL END + - + 79 AS col1, - COUNT ( * ) + + 89 col2
----
NULL
88

onlyif mysql # aggregate syntax: 
query I rowsort label-3972
SELECT - 27 * - 35 + + + 73 * + 99 - - + 14 + COUNT( * ) * + ( - 69 ) col2
----
8117

skipif mysql # not compatible
query I rowsort label-3972
SELECT - 27 * - 35 + + + 73 * + 99 - - + 14 + COUNT ( * ) * + ( - 69 ) col2
----
8117

query I rowsort
SELECT ALL + - ( + 43 ) AS col0
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-3974
SELECT 55 * SUM( DISTINCT 12 ) + 16 + - - 23 AS col1
----
699

skipif mysql # not compatible
query I rowsort label-3974
SELECT 55 * SUM ( DISTINCT 12 ) + 16 + - - 23 AS col1
----
699

query II rowsort
SELECT ALL + 75 AS col1, - 87 AS col1
----
75
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-3976
SELECT - 27 + - - COUNT( * ) + 23 AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-3976
SELECT - 27 + - - COUNT ( * ) + 23 AS col2
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-3977
SELECT ALL + 55 DIV COALESCE ( - - 16, 64 * + 70 + - - 94 + - 71 - - 8 * - 77 + - + 82 + + + 1 )
----
3

skipif mysql # not compatible
query I rowsort label-3977
SELECT ALL + 55 / COALESCE ( - - 16, 64 * + 70 + - - 94 + - 71 - - 8 * - 77 + - + 82 + + + 1 )
----
3

onlyif mysql # DIV for integer division: 
query II rowsort label-3978
SELECT - 45 DIV + 59 AS col0, 33 AS col0
----
0
33

skipif mysql # not compatible
query II rowsort label-3978
SELECT - 45 / + 59 AS col0, 33 AS col0
----
0
33

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3979
SELECT - 4 + - 9 + + + 50 - + - 35 AS col2, + 89 + NULLIF ( ( CAST( NULL AS SIGNED ) ), + 73 * 51 + + + 78 )
----
72
NULL

skipif mysql # not compatible
query II rowsort label-3979
SELECT - 4 + - 9 + + + 50 - + - 35 AS col2, + 89 + NULLIF ( ( CAST ( NULL AS INTEGER ) ), + 73 * 51 + + + 78 )
----
72
NULL

query II rowsort
SELECT ALL + 65, 73 AS col0
----
65
73

query I rowsort
SELECT - 91 * - + ( 93 ) AS col0
----
8463

onlyif mysql # DIV for integer division: 
query I rowsort label-3982
SELECT - 9 DIV + 1 AS col2
----
-9

skipif mysql # not compatible
query I rowsort label-3982
SELECT - 9 / + 1 AS col2
----
-9

query I rowsort
SELECT DISTINCT - 61 * 27 + ( 36 ) + - 38 AS col0
----
-1649

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3984
SELECT - COALESCE ( + SUM( + CAST( + 68 AS SIGNED ) ), + COALESCE ( CAST( NULL AS SIGNED ), - 95 ) * 7 )
----
-68

skipif mysql # not compatible
query I rowsort label-3984
SELECT - COALESCE ( + SUM ( + CAST ( + 68 AS INTEGER ) ), + COALESCE ( CAST ( NULL AS INTEGER ), - 95 ) * 7 )
----
-68

query I rowsort
SELECT - 61 * + - 53
----
3233

query I rowsort
SELECT ALL ( + ( - 4 ) ) AS col1
----
-4

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3987
SELECT DISTINCT + ( - 13 ) + - 37 DIV - + 49, + ( - - 57 ) * - COUNT( ALL - 33 ) AS col2
----
-13
-57

skipif mysql # not compatible
query II rowsort label-3987
SELECT DISTINCT + ( - 13 ) + - 37 / - + 49, + ( - - 57 ) * - COUNT ( ALL - 33 ) AS col2
----
-13
-57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3988
SELECT ALL + 93 + - COUNT( * ) + + - COUNT( * ) + + ( - COUNT( * ) ) * + 83 + 16 + - 59 * + + 80 * - 6 + - CAST( NULL AS SIGNED ) / 64 * - - 75 * 47
----
NULL

skipif mysql # not compatible
query I rowsort label-3988
SELECT ALL + 93 + - COUNT ( * ) + + - COUNT ( * ) + + ( - COUNT ( * ) ) * + 83 + 16 + - 59 * + + 80 * - 6 + - CAST ( NULL AS INTEGER ) / 64 * - - 75 * 47
----
NULL

query I rowsort
SELECT + 90 * - + 9 col2
----
-810

query II rowsort
SELECT - 2 * - + 69 AS col0, 25
----
138
25

onlyif mysql # aggregate syntax: 
query II rowsort label-3991
SELECT - 19 + + 63 + + - 93 + 34 * + + 1 + + 19 / ( - CASE + + 83 WHEN + - COUNT( * ) + - - 83 + - + 41 THEN - 89 + - 19 * + + 47 * - 48 WHEN - COUNT( * ) / COUNT( * ) + 7 + - + MAX( DISTINCT - 16 ) THEN NULL WHEN - COUNT( DISTINCT - - NULLIF ( + - 20, + - ( + + 60 ) + - - 65 ) ) + + 38 THEN + 43 ELSE NULL END ) * 94 / + 30, - 57 col2
----
NULL
-57

skipif mysql # not compatible
query II rowsort label-3991
SELECT - 19 + + 63 + + - 93 + 34 * + + 1 + + 19 / ( - CASE + + 83 WHEN + - COUNT ( * ) + - - 83 + - + 41 THEN - 89 + - 19 * + + 47 * - 48 WHEN - COUNT ( * ) / COUNT ( * ) + 7 + - + MAX ( DISTINCT - 16 ) THEN NULL WHEN - COUNT ( DISTINCT - - NULLIF ( + - 20, + - ( + + 60 ) + - - 65 ) ) + + 38 THEN + 43 ELSE NULL END ) * 94 / + 30, - 57 col2
----
NULL
-57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3992
SELECT - - CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3992
SELECT - - CAST ( NULL AS INTEGER ) col1
----
NULL

query II rowsort
SELECT DISTINCT 0 - + 75 AS col2, 54
----
-75
54

query I rowsort
SELECT + COALESCE ( - ( + + 69 ), 83 - 92 ) AS col1
----
-69

onlyif mysql # aggregate syntax: 
query II rowsort label-3995
SELECT ALL + 51 AS col0, - CASE + + 43 WHEN - + NULLIF ( - - 3, - - 54 + + + 43 ) / + 83 THEN + + ( 65 ) + - 96 + - + 7 * 56 * + - 84 * + 4 * + COUNT( * ) + COUNT( * ) + - 1 ELSE NULL END
----
51
NULL

skipif mysql # not compatible
query II rowsort label-3995
SELECT ALL + 51 AS col0, - CASE + + 43 WHEN - + NULLIF ( - - 3, - - 54 + + + 43 ) / + 83 THEN + + ( 65 ) + - 96 + - + 7 * 56 * + - 84 * + 4 * + COUNT ( * ) + COUNT ( * ) + - 1 ELSE NULL END
----
51
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3996
SELECT DISTINCT - COALESCE ( + - 98, COUNT( - 51 ), + - COUNT( * ) * 48 ) - - 70 * 15 + NULLIF ( + - 15, 97 )
----
1133

skipif mysql # not compatible
query I rowsort label-3996
SELECT DISTINCT - COALESCE ( + - 98, COUNT ( - 51 ), + - COUNT ( * ) * 48 ) - - 70 * 15 + NULLIF ( + - 15, 97 )
----
1133

onlyif mysql # aggregate syntax: 
query I rowsort label-3997
SELECT + ( + - COUNT( * ) ) + - 99 AS col0
----
-100

skipif mysql # not compatible
query I rowsort label-3997
SELECT + ( + - COUNT ( * ) ) + - 99 AS col0
----
-100

onlyif mysql # DIV for integer division: 
query I rowsort label-3998
SELECT + 67 DIV 20
----
3

skipif mysql # not compatible
query I rowsort label-3998
SELECT + 67 / 20
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3999
SELECT + + COUNT( * ) * 73 + - 29 + + + CAST( - + 70 AS SIGNED )
----
-26

skipif mysql # not compatible
query I rowsort label-3999
SELECT + + COUNT ( * ) * 73 + - 29 + + + CAST ( - + 70 AS INTEGER )
----
-26

onlyif mysql # aggregate syntax: 
query II rowsort label-4000
SELECT ALL + + 7, - 82 * + COUNT( * ) AS col2
----
7
-82

skipif mysql # not compatible
query II rowsort label-4000
SELECT ALL + + 7, - 82 * + COUNT ( * ) AS col2
----
7
-82

query I rowsort
SELECT + - 5 + 71 + 54 col2
----
120

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4002
SELECT ALL + - CAST( NULL AS SIGNED ) AS col1, + ( 57 ) AS col1
----
NULL
57

skipif mysql # not compatible
query II rowsort label-4002
SELECT ALL + - CAST ( NULL AS INTEGER ) AS col1, + ( 57 ) AS col1
----
NULL
57

onlyif mysql # DIV for integer division: 
query I rowsort label-4003
SELECT + - 60 DIV 30 AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-4003
SELECT + - 60 / 30 AS col1
----
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-4004
SELECT ALL 73 DIV - 48 col1
----
-1

skipif mysql # not compatible
query I rowsort label-4004
SELECT ALL 73 / - 48 col1
----
-1

query I rowsort
SELECT NULLIF ( + - 64, + 79 + + 42 ) * + - 94 + 93 * - 9 * - - 86
----
-65966

onlyif mysql # aggregate syntax: 
query I rowsort label-4006
SELECT ALL - - COUNT( - 40 )
----
1

skipif mysql # not compatible
query I rowsort label-4006
SELECT ALL - - COUNT ( - 40 )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4007
SELECT ALL - - CAST( + 82 AS SIGNED ) AS col0
----
82

skipif mysql # not compatible
query I rowsort label-4007
SELECT ALL - - CAST ( + 82 AS INTEGER ) AS col0
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-4008
SELECT ALL + 0 + - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-4008
SELECT ALL + 0 + - COUNT ( * )
----
-1

query I rowsort
SELECT DISTINCT 92 * - 3 col0
----
-276

query I rowsort
SELECT DISTINCT 51 + + - 69
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-4011
SELECT ALL 86 + 35 * - 74 * - ( - COUNT( * ) ) - - + 25
----
-2479

skipif mysql # not compatible
query I rowsort label-4011
SELECT ALL 86 + 35 * - 74 * - ( - COUNT ( * ) ) - - + 25
----
-2479

query I rowsort
SELECT 49 * + + CASE + 99 WHEN COALESCE ( + 58, - + 28 * 96, 71 ) THEN NULL ELSE 11 * - + 31 + ( - 11 ) * - + 75 * 12 END * - + 37 * - 60
----
1039828020

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4013
SELECT ALL + ( CAST( + 14 AS SIGNED ) ) + + 12 AS col1
----
26

skipif mysql # not compatible
query I rowsort label-4013
SELECT ALL + ( CAST ( + 14 AS INTEGER ) ) + + 12 AS col1
----
26

query I rowsort
SELECT ALL 50 + + + 6
----
56

onlyif mysql # DIV for integer division: 
query I rowsort label-4015
SELECT DISTINCT + 6 DIV - + 84 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4015
SELECT DISTINCT + 6 / - + 84 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4016
SELECT ALL - MAX( + 91 ) col1
----
-91

skipif mysql # not compatible
query I rowsort label-4016
SELECT ALL - MAX ( + 91 ) col1
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-4017
SELECT DISTINCT 85 + COALESCE ( - 23, + - 37 + NULLIF ( 3, MIN( ALL - 30 ) * - 2 ) - - 58 ) + - + 39 * - 19
----
803

skipif mysql # not compatible
query I rowsort label-4017
SELECT DISTINCT 85 + COALESCE ( - 23, + - 37 + NULLIF ( 3, MIN ( ALL - 30 ) * - 2 ) - - 58 ) + - + 39 * - 19
----
803

query I rowsort
SELECT DISTINCT + 79 - 89
----
-10

query I rowsort
SELECT ALL + 89 * + 19 AS col2
----
1691

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4020
SELECT 80 + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4020
SELECT 80 + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT 29 * + 90 AS col0
----
2610

onlyif mysql # aggregate syntax: 
query I rowsort label-4022
SELECT ALL - 60 * COUNT( * ) - - NULLIF ( 44, + - 47 - - 71 * - - ( + 56 ) ) AS col2
----
-16

skipif mysql # not compatible
query I rowsort label-4022
SELECT ALL - 60 * COUNT ( * ) - - NULLIF ( 44, + - 47 - - 71 * - - ( + 56 ) ) AS col2
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-4023
SELECT ALL + COUNT( * ) * - - 35
----
35

skipif mysql # not compatible
query I rowsort label-4023
SELECT ALL + COUNT ( * ) * - - 35
----
35

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4024
SELECT + AVG ( DISTINCT + - CAST( NULL AS SIGNED ) ), ( 8 ) + - ( 34 ) - - 90 AS col1
----
NULL
64

skipif mysql # not compatible
query II rowsort label-4024
SELECT + AVG ( DISTINCT + - CAST ( NULL AS INTEGER ) ), ( 8 ) + - ( 34 ) - - 90 AS col1
----
NULL
64

query I rowsort
SELECT - ( + + 91 ) AS col0
----
-91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4026
SELECT 68 + + 36 + - + CAST( COUNT( * ) AS SIGNED ) * 18
----
86

skipif mysql # not compatible
query I rowsort label-4026
SELECT 68 + + 36 + - + CAST ( COUNT ( * ) AS INTEGER ) * 18
----
86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4027
SELECT ( + - 85 ) * + 38 - + 80 * COALESCE ( - 13, - - COALESCE ( + 64, - 67 ) - 91 + + MAX( ALL CAST( - 47 AS SIGNED ) ) + COUNT( * ) * + 56 * - ( + + 14 ) - + 56 - - SUM( ALL + CASE + + 78 WHEN - 93 THEN NULL ELSE 85 * + 47 END ) + + + COUNT( * ) * + + 47 + - 7 * + 58 ) AS col1
----
-2190

skipif mysql # not compatible
query I rowsort label-4027
SELECT ( + - 85 ) * + 38 - + 80 * COALESCE ( - 13, - - COALESCE ( + 64, - 67 ) - 91 + + MAX ( ALL CAST ( - 47 AS INTEGER ) ) + COUNT ( * ) * + 56 * - ( + + 14 ) - + 56 - - SUM ( ALL + CASE + + 78 WHEN - 93 THEN NULL ELSE 85 * + 47 END ) + + + COUNT ( * ) * + + 47 + - 7 * + 58 ) AS col1
----
-2190

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4028
SELECT ALL CAST( - + 94 AS SIGNED ) AS col2
----
-94

skipif mysql # not compatible
query I rowsort label-4028
SELECT ALL CAST ( - + 94 AS INTEGER ) AS col2
----
-94

query II rowsort
SELECT + 47 - 12 + 37, + 33 AS col1
----
72
33

query II rowsort
SELECT + ( + - 47 ) AS col2, 42
----
-47
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4031
SELECT - 61 + + 89 + - COALESCE ( - ( + 47 ), - 6 ) + + + CAST( NULL AS SIGNED ) * + 84 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4031
SELECT - 61 + + 89 + - COALESCE ( - ( + 47 ), - 6 ) + + + CAST ( NULL AS INTEGER ) * + 84 AS col0
----
NULL

query I rowsort
SELECT - - ( + 53 ) AS col1
----
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4033
SELECT 78 * + - CASE SUM( 92 ) WHEN + + 77 * COUNT( * ) / - + 68 * 16 + + CAST( + - 22 AS SIGNED ) * + 95 + + COUNT( * ) - + - 54 THEN NULL WHEN COUNT( * ) * - 97 THEN NULL ELSE - + 74 END * + 92 * 89
----
47261136

skipif mysql # not compatible
query I rowsort label-4033
SELECT 78 * + - CASE SUM ( 92 ) WHEN + + 77 * COUNT ( * ) / - + 68 * 16 + + CAST ( + - 22 AS INTEGER ) * + 95 + + COUNT ( * ) - + - 54 THEN NULL WHEN COUNT ( * ) * - 97 THEN NULL ELSE - + 74 END * + 92 * 89
----
47261136

query I rowsort
SELECT ALL 14 * - - 38 + + - 71
----
461

query I rowsort
SELECT - + 24 col0
----
-24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4036
SELECT ALL 41 + - + CAST( + - 91 AS SIGNED )
----
132

skipif mysql # not compatible
query I rowsort label-4036
SELECT ALL 41 + - + CAST ( + - 91 AS INTEGER )
----
132

onlyif mysql # DIV for integer division: 
query I rowsort label-4037
SELECT - 60 DIV - 74 * + 53 - + 66 AS col0
----
-66

skipif mysql # not compatible
query I rowsort label-4037
SELECT - 60 / - 74 * + 53 - + 66 AS col0
----
-66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4038
SELECT ALL + - CAST( - - 34 AS SIGNED ) + + + 19 + + ( + 84 ) + COALESCE ( 47, - 5 ) AS col2
----
116

skipif mysql # not compatible
query I rowsort label-4038
SELECT ALL + - CAST ( - - 34 AS INTEGER ) + + + 19 + + ( + 84 ) + COALESCE ( 47, - 5 ) AS col2
----
116

onlyif mysql # aggregate syntax: 
query I rowsort label-4039
SELECT ( + ( 30 ) ) + COUNT( * ) AS col2
----
31

skipif mysql # not compatible
query I rowsort label-4039
SELECT ( + ( 30 ) ) + COUNT ( * ) AS col2
----
31

query II rowsort
SELECT ALL - 12 + 34, 33 AS col0
----
22
33

query I rowsort
SELECT ALL + 43 + + NULLIF ( + 94, - - 0 * 56 ) * - + 85 AS col1
----
-7947

query II rowsort
SELECT 46 col1, + 60
----
46
60

query I rowsort
SELECT 4 + + 73
----
77

query I rowsort
SELECT 49 - - 88 AS col2
----
137

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4045
SELECT ALL 80 + + NULLIF ( - ( + + 88 ), + 23 * 26 ) + - CAST( NULL AS SIGNED ) + - 72
----
NULL

skipif mysql # not compatible
query I rowsort label-4045
SELECT ALL 80 + + NULLIF ( - ( + + 88 ), + 23 * 26 ) + - CAST ( NULL AS INTEGER ) + - 72
----
NULL

query I rowsort
SELECT 20 * + + 62
----
1240

onlyif mysql # aggregate syntax: 
query I rowsort label-4047
SELECT ALL SUM( + 49 ) + - COUNT( + 60 )
----
48

skipif mysql # not compatible
query I rowsort label-4047
SELECT ALL SUM ( + 49 ) + - COUNT ( + 60 )
----
48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4048
SELECT ALL 32 + + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4048
SELECT ALL 32 + + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL 44 * + - 49 AS col0
----
-2156

query I rowsort
SELECT ( + 41 ) + 63 col2
----
104

query I rowsort
SELECT ALL - NULLIF ( - ( + 81 ), + CASE + - 98 WHEN - - 5 THEN NULL ELSE 98 * - - 39 END )
----
81

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4052
SELECT DISTINCT ( 85 ) * + CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4052
SELECT DISTINCT ( 85 ) * + CAST ( NULL AS REAL ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT 31 - + 98
----
-67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4054
SELECT 83 + NULLIF ( - ( - 84 ), 90 ) * CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4054
SELECT 83 + NULLIF ( - ( - 84 ), 90 ) * CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4055
SELECT ALL 95 AS col0, COUNT( * ) * - 34 col2
----
95
-34

skipif mysql # not compatible
query II rowsort label-4055
SELECT ALL 95 AS col0, COUNT ( * ) * - 34 col2
----
95
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-4056
SELECT ALL + COUNT( * ) * + + 10 AS col1
----
10

skipif mysql # not compatible
query I rowsort label-4056
SELECT ALL + COUNT ( * ) * + + 10 AS col1
----
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4057
SELECT DISTINCT + 19, ( + + 76 ) * - 73 * - 32 DIV COUNT( 72 ) * + 32 + NULLIF ( - 52, - + 70 DIV + 94 - - 91 * 72 * CAST( - 8 AS SIGNED ) + 88 ) AS col0
----
19
5681100

skipif mysql # not compatible
query II rowsort label-4057
SELECT DISTINCT + 19, ( + + 76 ) * - 73 * - 32 / COUNT ( 72 ) * + 32 + NULLIF ( - 52, - + 70 / + 94 - - 91 * 72 * CAST ( - 8 AS INTEGER ) + 88 ) AS col0
----
19
5681100

onlyif mysql # aggregate syntax: 
query II rowsort label-4058
SELECT DISTINCT + COUNT( * ), - MAX( DISTINCT - 49 ) * - CASE + - 65 WHEN - + ( + 88 ) * + COALESCE ( - 74, 67 ) THEN 91 END / + + 14 + ( - + 8 ) AS col2
----
1
NULL

skipif mysql # not compatible
query II rowsort label-4058
SELECT DISTINCT + COUNT ( * ), - MAX ( DISTINCT - 49 ) * - CASE + - 65 WHEN - + ( + 88 ) * + COALESCE ( - 74, 67 ) THEN 91 END / + + 14 + ( - + 8 ) AS col2
----
1
NULL

query II rowsort
SELECT - 9, - 87 * - + 9 AS col1
----
-9
783

onlyif mysql # aggregate syntax: 
query I rowsort label-4060
SELECT ALL - 60 * - ( + COUNT( * ) )
----
60

skipif mysql # not compatible
query I rowsort label-4060
SELECT ALL - 60 * - ( + COUNT ( * ) )
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-4061
SELECT ALL - - COUNT( * ) * MAX( + 73 ) * + 74 * + - 0 + - - 6 * - - 19 * - COUNT( * ) + 50
----
-64

skipif mysql # not compatible
query I rowsort label-4061
SELECT ALL - - COUNT ( * ) * MAX ( + 73 ) * + 74 * + - 0 + - - 6 * - - 19 * - COUNT ( * ) + 50
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-4062
SELECT ALL - ( MAX( ALL - 38 ) )
----
38

skipif mysql # not compatible
query I rowsort label-4062
SELECT ALL - ( MAX ( ALL - 38 ) )
----
38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4063
SELECT - + CAST( - + CAST( NULL AS SIGNED ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4063
SELECT - + CAST ( - + CAST ( NULL AS INTEGER ) AS INTEGER )
----
NULL

query I rowsort
SELECT - 45 + + 13 AS col1
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-4065
SELECT 16 - + CASE - 10 WHEN - + 19 + 52 THEN + - 97 WHEN + COUNT( ALL + 36 ) + + 71 THEN NULL END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4065
SELECT 16 - + CASE - 10 WHEN - + 19 + 52 THEN + - 97 WHEN + COUNT ( ALL + 36 ) + + 71 THEN NULL END col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4066
SELECT - COUNT( - 87 ) DIV 89 + + ( + COUNT( * ) ) * + 25 AS col2
----
25

skipif mysql # not compatible
query I rowsort label-4066
SELECT - COUNT ( - 87 ) / 89 + + ( + COUNT ( * ) ) * + 25 AS col2
----
25

query I rowsort
SELECT + ( ( + 49 ) ) + - 78
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-4068
SELECT ALL - 13 + - COUNT( * ) AS col1
----
-14

skipif mysql # not compatible
query I rowsort label-4068
SELECT ALL - 13 + - COUNT ( * ) AS col1
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-4069
SELECT DISTINCT + + NULLIF ( 97, + 79 ) * - 62 * COUNT( * ) * + - 55 * - COUNT( * )
----
-330770

skipif mysql # not compatible
query I rowsort label-4069
SELECT DISTINCT + + NULLIF ( 97, + 79 ) * - 62 * COUNT ( * ) * + - 55 * - COUNT ( * )
----
-330770

query I rowsort
SELECT ALL - - 29 + 85 AS col0
----
114

query I rowsort
SELECT ALL NULLIF ( + 71, - - 53 ) AS col1
----
71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4072
SELECT - + CAST( NULL AS SIGNED ) AS col0, + ( - 9 ) / - CASE + 36 WHEN - - 26 - 93 THEN NULL WHEN - + 32 + 46 + + 46 * - SUM( DISTINCT - 45 ) * - 26 * + 98 - + 56 THEN NULL ELSE - 73 * - - CASE - 76 WHEN + - 47 THEN - 88 / + 95 WHEN + + NULLIF ( + - 40, 3 ) THEN - - ( MAX( + + 68 ) ) * + 57 + + 41 ELSE NULL END END
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-4072
SELECT - + CAST ( NULL AS INTEGER ) AS col0, + ( - 9 ) / - CASE + 36 WHEN - - 26 - 93 THEN NULL WHEN - + 32 + 46 + + 46 * - SUM ( DISTINCT - 45 ) * - 26 * + 98 - + 56 THEN NULL ELSE - 73 * - - CASE - 76 WHEN + - 47 THEN - 88 / + 95 WHEN + + NULLIF ( + - 40, 3 ) THEN - - ( MAX ( + + 68 ) ) * + 57 + + 41 ELSE NULL END END
----
NULL
NULL

query I rowsort
SELECT ALL - 72 + 66
----
-6

onlyif mysql # aggregate syntax: 
query II rowsort label-4074
SELECT - 23, 69 * + - 36 * COUNT( * ) * + - 88 AS col2
----
-23
218592

skipif mysql # not compatible
query II rowsort label-4074
SELECT - 23, 69 * + - 36 * COUNT ( * ) * + - 88 AS col2
----
-23
218592

onlyif mysql # aggregate syntax: 
query II rowsort label-4075
SELECT COALESCE ( + - MIN( - 41 ), - COUNT( * ) * - COALESCE ( - 50, 6 * + 32 + - 47 * + COUNT( * ) ) + 85 ), - 78 AS col0
----
41
-78

skipif mysql # not compatible
query II rowsort label-4075
SELECT COALESCE ( + - MIN ( - 41 ), - COUNT ( * ) * - COALESCE ( - 50, 6 * + 32 + - 47 * + COUNT ( * ) ) + 85 ), - 78 AS col0
----
41
-78

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4076
SELECT + SUM( - 19 ) + - 34 + - 34 AS col1, - COUNT( * ) DIV + 40 AS col1
----
-87
0

skipif mysql # not compatible
query II rowsort label-4076
SELECT + SUM ( - 19 ) + - 34 + - 34 AS col1, - COUNT ( * ) / + 40 AS col1
----
-87
0

query I rowsort
SELECT DISTINCT + 24 * + 23
----
552

query I rowsort
SELECT COALESCE ( 85, - 97 * + 72 * + ( - - 25 ) )
----
85

query I rowsort
SELECT ALL 39 * ( + + 53 ) AS col2
----
2067

query I rowsort
SELECT NULLIF ( - 72, 77 * + ( 87 ) + + ( + 85 ) - - + 45 + + + 33 )
----
-72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4081
SELECT DISTINCT - 1 * - NULLIF ( - COUNT( * ), COALESCE ( - COUNT( * ), + + 3, + 61 ) ) - COUNT( * ) + + CAST( - CASE - 51 WHEN - + 73 THEN + 48 WHEN + 16 THEN NULL END AS SIGNED ) + - 48 * COALESCE ( - COUNT( * ), - - MIN( DISTINCT + ( 83 ) ) + + 35 + - - MAX( ALL + - 20 ), + 31 ) + - 24 + MAX( - 47 ) * + 50
----
NULL

skipif mysql # not compatible
query I rowsort label-4081
SELECT DISTINCT - 1 * - NULLIF ( - COUNT ( * ), COALESCE ( - COUNT ( * ), + + 3, + 61 ) ) - COUNT ( * ) + + CAST ( - CASE - 51 WHEN - + 73 THEN + 48 WHEN + 16 THEN NULL END AS INTEGER ) + - 48 * COALESCE ( - COUNT ( * ), - - MIN ( DISTINCT + ( 83 ) ) + + 35 + - - MAX ( ALL + - 20 ), + 31 ) + - 24 + MAX ( - 47 ) * + 50
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4082
SELECT ALL - 68 * CAST( + - 76 AS SIGNED ) * + SUM( 73 ) - - COUNT( * )
----
377265

skipif mysql # not compatible
query I rowsort label-4082
SELECT ALL - 68 * CAST ( + - 76 AS INTEGER ) * + SUM ( 73 ) - - COUNT ( * )
----
377265

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4083
SELECT CASE - + CASE - CAST( NULL AS DECIMAL ) WHEN - + 72 THEN - ( + ( 97 ) ) * - + 79 / + ( + 27 ) END WHEN 28 THEN NULL ELSE - + 81 END
----
-81

skipif mysql # not compatible
query I rowsort label-4083
SELECT CASE - + CASE - CAST ( NULL AS REAL ) WHEN - + 72 THEN - ( + ( 97 ) ) * - + 79 / + ( + 27 ) END WHEN 28 THEN NULL ELSE - + 81 END
----
-81

query I rowsort
SELECT - 3 - - 12 - + 2 AS col0
----
7

query I rowsort
SELECT + 67 * 3 AS col1
----
201

onlyif mysql # DIV for integer division: 
query I rowsort label-4086
SELECT ALL 90 DIV + + 85 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4086
SELECT ALL 90 / + + 85 AS col1
----
1

query I rowsort
SELECT + 96 * - 96
----
-9216

onlyif mysql # aggregate syntax: 
query I rowsort label-4088
SELECT COUNT( - 32 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4088
SELECT COUNT ( - 32 ) AS col0
----
1

query I rowsort
SELECT + ( + + 11 ) AS col0
----
11

onlyif mysql # aggregate syntax: 
query II rowsort label-4090
SELECT + MIN( DISTINCT - 98 ) AS col0, 23
----
-98
23

skipif mysql # not compatible
query II rowsort label-4090
SELECT + MIN ( DISTINCT - 98 ) AS col0, 23
----
-98
23

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4091
SELECT + 31 * + CAST( NULL AS DECIMAL ), 19 AS col0
----
NULL
19

skipif mysql # not compatible
query II rowsort label-4091
SELECT + 31 * + CAST ( NULL AS REAL ), 19 AS col0
----
NULL
19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4092
SELECT ALL - MIN( + - 23 ) DIV + - ( + 89 ) + + 79 + 64 * 30 * + COUNT( * ) * + - 67 AS col1, + 4 * - - CAST( - 43 AS SIGNED ) + 58 + + 9 * + 70 + ( 28 ) * 15 col2
----
-128561
936

skipif mysql # not compatible
query II rowsort label-4092
SELECT ALL - MIN ( + - 23 ) / + - ( + 89 ) + + 79 + 64 * 30 * + COUNT ( * ) * + - 67 AS col1, + 4 * - - CAST ( - 43 AS INTEGER ) + 58 + + 9 * + 70 + ( 28 ) * 15 col2
----
-128561
936

onlyif mysql # aggregate syntax: 
query I rowsort label-4093
SELECT MIN( ALL + 19 ) col1
----
19

skipif mysql # not compatible
query I rowsort label-4093
SELECT MIN ( ALL + 19 ) col1
----
19

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4094
SELECT ALL SUM( DISTINCT - 39 ) DIV + 82 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4094
SELECT ALL SUM ( DISTINCT - 39 ) / + 82 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4095
SELECT DISTINCT - 11 * COUNT( ALL CAST( NULL AS SIGNED ) ) DIV + 79
----
0

skipif mysql # not compatible
query I rowsort label-4095
SELECT DISTINCT - 11 * COUNT ( ALL CAST ( NULL AS INTEGER ) ) / + 79
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4096
SELECT DISTINCT MAX( - - 26 ) AS col1, + 12 + + + 69 DIV + 76
----
26
12

skipif mysql # not compatible
query II rowsort label-4096
SELECT DISTINCT MAX ( - - 26 ) AS col1, + 12 + + + 69 / + 76
----
26
12

onlyif mysql # aggregate syntax: 
query I rowsort label-4097
SELECT ALL 50 * + COUNT( * ) * - 76
----
-3800

skipif mysql # not compatible
query I rowsort label-4097
SELECT ALL 50 * + COUNT ( * ) * - 76
----
-3800

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4098
SELECT + 20 + - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4098
SELECT + 20 + - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4099
SELECT + + 97 * - + COUNT( * ) + - 34
----
-131

skipif mysql # not compatible
query I rowsort label-4099
SELECT + + 97 * - + COUNT ( * ) + - 34
----
-131

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4100
SELECT + CAST( NULL AS SIGNED ) + + + 20 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4100
SELECT + CAST ( NULL AS INTEGER ) + + + 20 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4101
SELECT DISTINCT 78 + 71 + - - 77 / + CASE - 59 WHEN + MAX( ALL 45 ) THEN 8 END + - 45 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4101
SELECT DISTINCT 78 + 71 + - - 77 / + CASE - 59 WHEN + MAX ( ALL 45 ) THEN 8 END + - 45 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4102
SELECT + 47 + - 91 + - COUNT( * ) - + 28 col1
----
-73

skipif mysql # not compatible
query I rowsort label-4102
SELECT + 47 + - 91 + - COUNT ( * ) - + 28 col1
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-4103
SELECT - COUNT( * ) - - ( - 59 )
----
-60

skipif mysql # not compatible
query I rowsort label-4103
SELECT - COUNT ( * ) - - ( - 59 )
----
-60

query I rowsort
SELECT DISTINCT 35 + + + 27
----
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4105
SELECT ALL COUNT( DISTINCT + CAST( 88 AS SIGNED ) )
----
1

skipif mysql # not compatible
query I rowsort label-4105
SELECT ALL COUNT ( DISTINCT + CAST ( 88 AS INTEGER ) )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4106
SELECT - 92 DIV + 42 AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-4106
SELECT - 92 / + 42 AS col0
----
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4107
SELECT ALL 62 + - 22 * - - 96 DIV + COUNT( * ) AS col0
----
-2050

skipif mysql # not compatible
query I rowsort label-4107
SELECT ALL 62 + - 22 * - - 96 / + COUNT ( * ) AS col0
----
-2050

onlyif mysql # DIV for integer division: 
query I rowsort label-4108
SELECT + + 96 + + - 97 DIV + 16 + - - 37 AS col1
----
127

skipif mysql # not compatible
query I rowsort label-4108
SELECT + + 96 + + - 97 / + 16 + - - 37 AS col1
----
127

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4109
SELECT + MAX( CAST( NULL AS SIGNED ) ) * + + 87 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4109
SELECT + MAX ( CAST ( NULL AS INTEGER ) ) * + + 87 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4110
SELECT + - COUNT( * ) + - ( ( + 73 ) )
----
-74

skipif mysql # not compatible
query I rowsort label-4110
SELECT + - COUNT ( * ) + - ( ( + 73 ) )
----
-74

query I rowsort
SELECT DISTINCT - + 84 + + 21 AS col2
----
-63

query I rowsort
SELECT - 45 * + 41 * 66
----
-121770

query I rowsort
SELECT ALL ( - COALESCE ( + + NULLIF ( + 15, - 83 ), + - 91 * + - 19 ) )
----
-15

query I rowsort
SELECT - 63 - + 41 + + + ( + + 44 ) AS col0
----
-60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4115
SELECT DISTINCT COUNT( + ( + 39 ) ) * COALESCE ( + 25, - 29 * 77 DIV + 18, - COUNT( * ) * 22 - + + 52 )
----
25

skipif mysql # not compatible
query I rowsort label-4115
SELECT DISTINCT COUNT ( + ( + 39 ) ) * COALESCE ( + 25, - 29 * 77 / + 18, - COUNT ( * ) * 22 - + + 52 )
----
25

query I rowsort
SELECT ALL 27 * - 91
----
-2457

query I rowsort
SELECT - 39 + - 95 AS col0
----
-134

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4118
SELECT 66 DIV - - 1 + + 68 * - 96 * - COUNT( * ) col0
----
6594

skipif mysql # not compatible
query I rowsort label-4118
SELECT 66 / - - 1 + + 68 * - 96 * - COUNT ( * ) col0
----
6594

query I rowsort
SELECT - 9 * 92
----
-828

onlyif mysql # aggregate syntax: 
query I rowsort label-4120
SELECT - 79 + + 30 + - ( + - MIN( + + 25 ) )
----
-24

skipif mysql # not compatible
query I rowsort label-4120
SELECT - 79 + + 30 + - ( + - MIN ( + + 25 ) )
----
-24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4121
SELECT + CASE SUM( + 19 ) WHEN - - CAST( - 60 AS SIGNED ) THEN - 22 / - COALESCE ( + + COUNT( * ), - 68 * + 11 ) + + MAX( 63 ) * 61 END / + 55 + + 6 + 47 - + 49 + 64 / - 31
----
NULL

skipif mysql # not compatible
query I rowsort label-4121
SELECT + CASE SUM ( + 19 ) WHEN - - CAST ( - 60 AS INTEGER ) THEN - 22 / - COALESCE ( + + COUNT ( * ), - 68 * + 11 ) + + MAX ( 63 ) * 61 END / + 55 + + 6 + 47 - + 49 + 64 / - 31
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4122
SELECT ALL + ( - SUM( DISTINCT 90 ) )
----
-90

skipif mysql # not compatible
query I rowsort label-4122
SELECT ALL + ( - SUM ( DISTINCT 90 ) )
----
-90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4123
SELECT ALL - 75 * - 53 * + 68 * - + CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4123
SELECT ALL - 75 * - 53 * + 68 * - + CAST ( NULL AS INTEGER ) col0
----
NULL

query II rowsort
SELECT 39 * - 1 + - - 30 AS col0, 92 AS col0
----
-9
92

onlyif mysql # aggregate syntax: 
query I rowsort label-4125
SELECT DISTINCT - 57 * COUNT( * ) AS col0
----
-57

skipif mysql # not compatible
query I rowsort label-4125
SELECT DISTINCT - 57 * COUNT ( * ) AS col0
----
-57

query I rowsort
SELECT ALL + ( + 32 )
----
32

query I rowsort
SELECT ALL - 76 * - + 12
----
912

onlyif mysql # aggregate syntax: 
query I rowsort label-4128
SELECT - COUNT( * ) + - + 45 AS col2
----
-46

skipif mysql # not compatible
query I rowsort label-4128
SELECT - COUNT ( * ) + - + 45 AS col2
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-4129
SELECT ALL - SUM( DISTINCT + 72 ) * + + 78 + + + 94
----
-5522

skipif mysql # not compatible
query I rowsort label-4129
SELECT ALL - SUM ( DISTINCT + 72 ) * + + 78 + + + 94
----
-5522

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4130
SELECT + - NULLIF ( - 92, 56 * 3 + COUNT( * ) + - 6 ) AS col1, 55 + 73 DIV COUNT( * )
----
92
128

skipif mysql # not compatible
query II rowsort label-4130
SELECT + - NULLIF ( - 92, 56 * 3 + COUNT ( * ) + - 6 ) AS col1, 55 + 73 / COUNT ( * )
----
92
128

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4131
SELECT + CASE 38 WHEN 10 * + + 36 - + MAX( DISTINCT - + 15 ) DIV - 2 THEN + 38 DIV + - 40 * + 87 ELSE 76 * - + 69 * 60 + - 70 END * - - COUNT( * ) + - 52
----
-314762

skipif mysql # not compatible
query I rowsort label-4131
SELECT + CASE 38 WHEN 10 * + + 36 - + MAX ( DISTINCT - + 15 ) / - 2 THEN + 38 / + - 40 * + 87 ELSE 76 * - + 69 * 60 + - 70 END * - - COUNT ( * ) + - 52
----
-314762

onlyif mysql # aggregate syntax: 
query I rowsort label-4132
SELECT + COUNT( + - 94 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4132
SELECT + COUNT ( + - 94 ) AS col0
----
1

query I rowsort
SELECT 43 + + 60 AS col0
----
103

query II rowsort
SELECT ALL 80 + + ( 52 ), - 32 AS col1
----
132
-32

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4135
SELECT ALL + 8 + - ( - 99 ) + + COUNT( * ) DIV + 19, 4 * + - 16 AS col2
----
107
-64

skipif mysql # not compatible
query II rowsort label-4135
SELECT ALL + 8 + - ( - 99 ) + + COUNT ( * ) / + 19, 4 * + - 16 AS col2
----
107
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-4136
SELECT DISTINCT + 38 + - COUNT( * ) * 2 AS col2
----
36

skipif mysql # not compatible
query I rowsort label-4136
SELECT DISTINCT + 38 + - COUNT ( * ) * 2 AS col2
----
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4137
SELECT ALL 51 + CAST( NULL AS SIGNED ) * ( COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4137
SELECT ALL 51 + CAST ( NULL AS INTEGER ) * ( COUNT ( * ) )
----
NULL

query I rowsort
SELECT 2 - - - 49 AS col0
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-4139
SELECT 91 * 17 * + 30 * - + 39 - - 21 + + 73 * + + ( COUNT( * ) )
----
-1809896

skipif mysql # not compatible
query I rowsort label-4139
SELECT 91 * 17 * + 30 * - + 39 - - 21 + + 73 * + + ( COUNT ( * ) )
----
-1809896

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4140
SELECT CASE - + 73 WHEN ( - 95 ) * + 55 * - COALESCE ( 5, - 59 + + 18 * - 25, - - 4 ) + + 10 * COUNT( * ) * - ( + - 93 ) - 88 / + 44 * + - CAST( - 38 AS SIGNED ) - + - COALESCE ( - + 33, + COALESCE ( - + 83, + 7 ) + - 93 + + 49 * COUNT( * ) ) THEN NULL WHEN + 26 * + 41 THEN NULL WHEN + 52 + - CAST( + - 22 AS SIGNED ) + 82 THEN - + 15 ELSE - COUNT( * ) * - + 59 * 75 + 62 + - - ( 34 ) * + COUNT( - 19 ) + + 27 * + COALESCE ( - 77 + - 35 * 29, SUM( DISTINCT 50 ) ) END
----
-24963

skipif mysql # not compatible
query I rowsort label-4140
SELECT CASE - + 73 WHEN ( - 95 ) * + 55 * - COALESCE ( 5, - 59 + + 18 * - 25, - - 4 ) + + 10 * COUNT ( * ) * - ( + - 93 ) - 88 / + 44 * + - CAST ( - 38 AS INTEGER ) - + - COALESCE ( - + 33, + COALESCE ( - + 83, + 7 ) + - 93 + + 49 * COUNT ( * ) ) THEN NULL WHEN + 26 * + 41 THEN NULL WHEN + 52 + - CAST ( + - 22 AS INTEGER ) + 82 THEN - + 15 ELSE - COUNT ( * ) * - + 59 * 75 + 62 + - - ( 34 ) * + COUNT ( - 19 ) + + 27 * + COALESCE ( - 77 + - 35 * 29, SUM ( DISTINCT 50 ) ) END
----
-24963

onlyif mysql # aggregate syntax: 
query I rowsort label-4141
SELECT DISTINCT COUNT( * ) * - + 82
----
-82

skipif mysql # not compatible
query I rowsort label-4141
SELECT DISTINCT COUNT ( * ) * - + 82
----
-82

query I rowsort
SELECT - 79 + - 29 * - 10 + + 93
----
304

query II rowsort
SELECT DISTINCT 97 AS col1, 62 + 91
----
97
153

query II rowsort
SELECT 48 + - 75 AS col1, + 17 col2
----
-27
17

query II rowsort
SELECT ALL 6 AS col1, - 75 + + ( 81 )
----
6
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4146
SELECT ALL CASE - 3 WHEN - 55 THEN NULL WHEN - CAST( NULL AS SIGNED ) + + 55 - + - CAST( + 14 AS SIGNED ) THEN - 56 + - 30 END / 33 + + - 94 + - - 48 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4146
SELECT ALL CASE - 3 WHEN - 55 THEN NULL WHEN - CAST ( NULL AS INTEGER ) + + 55 - + - CAST ( + 14 AS INTEGER ) THEN - 56 + - 30 END / 33 + + - 94 + - - 48 AS col0
----
NULL

query I rowsort
SELECT 58 * - + 12 AS col2
----
-696

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4148
SELECT 75 AS col1, 78 + - 6 - + CASE - CAST( NULL AS SIGNED ) WHEN - + 74 THEN + 96 * + - MAX( DISTINCT 21 ) * - 62 - + CASE + ( - 23 ) WHEN - 38 * 98 / - 70 * + + 26 THEN + - 45 * + COALESCE ( 49, + 36 ) * + - 24 * - MIN( ALL + NULLIF ( - 40, + 1 ) ) ELSE NULL END + 5 END + - 50 + 79 * + - 6 + + - COUNT( * ) * - COUNT( * ) * COUNT( * ) col1
----
75
NULL

skipif mysql # not compatible
query II rowsort label-4148
SELECT 75 AS col1, 78 + - 6 - + CASE - CAST ( NULL AS INTEGER ) WHEN - + 74 THEN + 96 * + - MAX ( DISTINCT 21 ) * - 62 - + CASE + ( - 23 ) WHEN - 38 * 98 / - 70 * + + 26 THEN + - 45 * + COALESCE ( 49, + 36 ) * + - 24 * - MIN ( ALL + NULLIF ( - 40, + 1 ) ) ELSE NULL END + 5 END + - 50 + 79 * + - 6 + + - COUNT ( * ) * - COUNT ( * ) * COUNT ( * ) col1
----
75
NULL

query I rowsort
SELECT 64 + - 51
----
13

onlyif mysql # aggregate syntax: 
query II rowsort label-4150
SELECT DISTINCT 15 * - ( NULLIF ( - 37, + + 53 ) ) * - COUNT( * ) * - NULLIF ( - NULLIF ( 72, - - 47 ), 29 ), 22 * - - 51 AS col0
----
-39960
1122

skipif mysql # not compatible
query II rowsort label-4150
SELECT DISTINCT 15 * - ( NULLIF ( - 37, + + 53 ) ) * - COUNT ( * ) * - NULLIF ( - NULLIF ( 72, - - 47 ), 29 ), 22 * - - 51 AS col0
----
-39960
1122

onlyif mysql # aggregate syntax: 
query I rowsort label-4151
SELECT ( + + 43 ) * COUNT( * ) + + 62
----
105

skipif mysql # not compatible
query I rowsort label-4151
SELECT ( + + 43 ) * COUNT ( * ) + + 62
----
105

onlyif mysql # DIV for integer division: 
query I rowsort label-4152
SELECT 77 DIV 20 * 64
----
192

skipif mysql # not compatible
query I rowsort label-4152
SELECT 77 / 20 * 64
----
192

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4153
SELECT ( + + 47 ) * SUM( - CAST( NULL AS SIGNED ) ) * - ( + 36 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4153
SELECT ( + + 47 ) * SUM ( - CAST ( NULL AS INTEGER ) ) * - ( + 36 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4154
SELECT + NULLIF ( + 31, + + 84 ) DIV 79 DIV - + COUNT( * ) + - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-4154
SELECT + NULLIF ( + 31, + + 84 ) / 79 / - + COUNT ( * ) + - COUNT ( * )
----
-1

query I rowsort
SELECT + 73 col0
----
73

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4156
SELECT 5, + COUNT( * ) + + NULLIF ( 98, - 47 ) + COUNT( * ) * - 72 DIV + 69 AS col2
----
5
98

skipif mysql # not compatible
query II rowsort label-4156
SELECT 5, + COUNT ( * ) + + NULLIF ( 98, - 47 ) + COUNT ( * ) * - 72 / + 69 AS col2
----
5
98

onlyif mysql # DIV for integer division: 
query I rowsort label-4157
SELECT ALL + 99 DIV - + 17
----
-5

skipif mysql # not compatible
query I rowsort label-4157
SELECT ALL + 99 / - + 17
----
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-4158
SELECT DISTINCT + 17 DIV 37 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4158
SELECT DISTINCT + 17 / 37 AS col0
----
0

query II rowsort
SELECT 34 col1, - 33 AS col1
----
34
-33

query II rowsort
SELECT ALL - ( - 2 ) AS col1, 16
----
2
16

query I rowsort
SELECT ALL - + 35 + 34
----
-1

query I rowsort
SELECT ALL - + 22 + - + 39
----
-61

onlyif mysql # aggregate syntax: 
query II rowsort label-4163
SELECT ALL - COUNT( * ) AS col1, - 49
----
-1
-49

skipif mysql # not compatible
query II rowsort label-4163
SELECT ALL - COUNT ( * ) AS col1, - 49
----
-1
-49

query I rowsort
SELECT ALL + 37 + + - 80 - + 72 AS col2
----
-115

query I rowsort
SELECT - 38 - - + ( - - 98 ) AS col0
----
60

query I rowsort
SELECT ALL + 26 * + 31 * + + 99
----
79794

query II rowsort
SELECT DISTINCT - - 12 col2, - 20 AS col0
----
12
-20

query I rowsort
SELECT DISTINCT + - 93 + - 88 AS col2
----
-181

query II rowsort
SELECT DISTINCT - - 96 AS col1, 93 AS col1
----
96
93

onlyif mysql # aggregate syntax: 
query I rowsort label-4170
SELECT - CASE 38 WHEN - 67 + - 88 + 78 - + 94 THEN NULL WHEN - - 62 THEN NULL ELSE + 56 * COUNT( * ) + - 32 END * + + 13 - + 80 * - - 1 * 91 - + 49 AS col0
----
-7641

skipif mysql # not compatible
query I rowsort label-4170
SELECT - CASE 38 WHEN - 67 + - 88 + 78 - + 94 THEN NULL WHEN - - 62 THEN NULL ELSE + 56 * COUNT ( * ) + - 32 END * + + 13 - + 80 * - - 1 * 91 - + 49 AS col0
----
-7641

query I rowsort
SELECT + 5 * - 2 * - 91
----
910

onlyif mysql # aggregate syntax: 
query I rowsort label-4172
SELECT 70 + COUNT( ALL - 54 )
----
71

skipif mysql # not compatible
query I rowsort label-4172
SELECT 70 + COUNT ( ALL - 54 )
----
71

query I rowsort
SELECT DISTINCT ( - 82 ) AS col0
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-4174
SELECT NULLIF ( + 33, 58 + 35 ) + + - COUNT( * )
----
32

skipif mysql # not compatible
query I rowsort label-4174
SELECT NULLIF ( + 33, 58 + 35 ) + + - COUNT ( * )
----
32

query I rowsort
SELECT ( + CASE 80 WHEN + + 99 THEN NULL WHEN - 88 THEN + 46 END ) - 16 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4176
SELECT DISTINCT 80 DIV - - 99 + + + 53 * COUNT( * ) col2, 83
----
53
83

skipif mysql # not compatible
query II rowsort label-4176
SELECT DISTINCT 80 / - - 99 + + + 53 * COUNT ( * ) col2, 83
----
53
83

query II rowsort
SELECT - 41 AS col1, - 8 * - 89 AS col2
----
-41
712

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4178
SELECT COUNT( * ) DIV + + 53, - 27 - + 57 AS col2
----
0
-84

skipif mysql # not compatible
query II rowsort label-4178
SELECT COUNT ( * ) / + + 53, - 27 - + 57 AS col2
----
0
-84

query II rowsort
SELECT DISTINCT - 98, 89 * 17 col2
----
-98
1513

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4180
SELECT DISTINCT + 33 DIV COUNT( * )
----
33

skipif mysql # not compatible
query I rowsort label-4180
SELECT DISTINCT + 33 / COUNT ( * )
----
33

query I rowsort
SELECT ALL 10 * + - 36 AS col2
----
-360

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4182
SELECT ALL 80 * + NULLIF ( ( 92 ), - 62 * + - 72 * + 22 - 48 + - 79 + + 76 + - AVG ( + CAST( - + 92 AS SIGNED ) ) ) * - NULLIF ( - 59, - 70 ) AS col1
----
434240

skipif mysql # not compatible
query I rowsort label-4182
SELECT ALL 80 * + NULLIF ( ( 92 ), - 62 * + - 72 * + 22 - 48 + - 79 + + 76 + - AVG ( + CAST ( - + 92 AS INTEGER ) ) ) * - NULLIF ( - 59, - 70 ) AS col1
----
434240

onlyif mysql # DIV for integer division: 
query I rowsort label-4183
SELECT 23 DIV - + 23
----
-1

skipif mysql # not compatible
query I rowsort label-4183
SELECT 23 / - + 23
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4184
SELECT 58 * + + CASE - ( + 46 ) WHEN COUNT( * ) * + 66 + - 42 THEN 10 ELSE + ( - + 99 ) * 58 END
----
-333036

skipif mysql # not compatible
query I rowsort label-4184
SELECT 58 * + + CASE - ( + 46 ) WHEN COUNT ( * ) * + 66 + - 42 THEN 10 ELSE + ( - + 99 ) * 58 END
----
-333036

query I rowsort
SELECT 29 + 26
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-4186
SELECT ALL 74 * - - MIN( 19 ) AS col1
----
1406

skipif mysql # not compatible
query I rowsort label-4186
SELECT ALL 74 * - - MIN ( 19 ) AS col1
----
1406

onlyif mysql # aggregate syntax: 
query I rowsort label-4187
SELECT - SUM( ALL - 34 )
----
34

skipif mysql # not compatible
query I rowsort label-4187
SELECT - SUM ( ALL - 34 )
----
34

query II rowsort
SELECT DISTINCT + 84 * + 94 * - 93 col2, + 6
----
-734328
6

query I rowsort
SELECT ALL ( - + ( - 42 ) ) + - 82 AS col1
----
-40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4190
SELECT ALL 80 * - - 12 * - + 75 + - + 94 + - - 66 + 46 * + + 31 + + - CAST( + 23 AS SIGNED ) AS col0
----
-70625

skipif mysql # not compatible
query I rowsort label-4190
SELECT ALL 80 * - - 12 * - + 75 + - + 94 + - - 66 + 46 * + + 31 + + - CAST ( + 23 AS INTEGER ) AS col0
----
-70625

onlyif mysql # aggregate syntax: 
query I rowsort label-4191
SELECT + 99 * + + ( 43 ) + - - 96 * - + COUNT( * ) - - 87 * - - ( + COUNT( * ) ) AS col0
----
4248

skipif mysql # not compatible
query I rowsort label-4191
SELECT + 99 * + + ( 43 ) + - - 96 * - + COUNT ( * ) - - 87 * - - ( + COUNT ( * ) ) AS col0
----
4248

query I rowsort
SELECT 63 + ( - - 58 ) * - 1 * + + 61 AS col1
----
-3475

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4193
SELECT ALL 98 * - 77 + - - COALESCE ( 3, 44 ) + + - CASE - 95 WHEN 63 * + 38 THEN NULL WHEN 8 + - - 33 + CAST( NULL AS SIGNED ) THEN - 87 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4193
SELECT ALL 98 * - 77 + - - COALESCE ( 3, 44 ) + + - CASE - 95 WHEN 63 * + 38 THEN NULL WHEN 8 + - - 33 + CAST ( NULL AS INTEGER ) THEN - 87 ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4194
SELECT + ( - + 78 ) + + COALESCE ( + + 79, - 26 + - 53 - - ( - 52 ) + - 46 - - - 83 * + ( + - 12 ) + + - MIN( - 35 ) * + - 58, + 96 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4194
SELECT + ( - + 78 ) + + COALESCE ( + + 79, - 26 + - 53 - - ( - 52 ) + - 46 - - - 83 * + ( + - 12 ) + + - MIN ( - 35 ) * + - 58, + 96 ) AS col1
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4195
SELECT - COUNT( * ) DIV - + SUM( DISTINCT - COALESCE ( + COALESCE ( - 17, - 60 ), 88 ) ) * + 62 * + 71 + + - 43 - + COUNT( * )
----
-44

skipif mysql # not compatible
query I rowsort label-4195
SELECT - COUNT ( * ) / - + SUM ( DISTINCT - COALESCE ( + COALESCE ( - 17, - 60 ), 88 ) ) * + 62 * + 71 + + - 43 - + COUNT ( * )
----
-44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4196
SELECT ALL + COUNT( - 34 ) * COALESCE ( - 49, - - COUNT( + - 72 ) DIV - 54, - 78 ) + - 27 + - 48 + + - 70 * - 84 + - ( + 61 ) - + 31 * - CASE - + 66 WHEN + - COUNT( * ) THEN - 54 * + + 35 + - + 0 ELSE - 33 END * + 13 AS col1
----
-7604

skipif mysql # not compatible
query I rowsort label-4196
SELECT ALL + COUNT ( - 34 ) * COALESCE ( - 49, - - COUNT ( + - 72 ) / - 54, - 78 ) + - 27 + - 48 + + - 70 * - 84 + - ( + 61 ) - + 31 * - CASE - + 66 WHEN + - COUNT ( * ) THEN - 54 * + + 35 + - + 0 ELSE - 33 END * + 13 AS col1
----
-7604

query I rowsort
SELECT DISTINCT + - 44 AS col0
----
-44

query I rowsort
SELECT ALL 83 * - + 95 + - 39
----
-7924

query II rowsort
SELECT - 87 * + 82 - + 44 + 25 + - - 97 col2, 53 AS col2
----
-7056
53

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4200
SELECT DISTINCT - 0 * - 99 DIV - 48 * + 69 + - NULLIF ( + - 21, - + COUNT( * ) ) + 35 * 15 AS col1
----
546

skipif mysql # not compatible
query I rowsort label-4200
SELECT DISTINCT - 0 * - 99 / - 48 * + 69 + - NULLIF ( + - 21, - + COUNT ( * ) ) + 35 * 15 AS col1
----
546

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4201
SELECT ALL - + 20 DIV + COALESCE ( + 66, 74 ) * SUM( - - 8 )
----
0

skipif mysql # not compatible
query I rowsort label-4201
SELECT ALL - + 20 / + COALESCE ( + 66, 74 ) * SUM ( - - 8 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4202
SELECT + - CAST( NULL AS SIGNED ) * - 42 + 41
----
NULL

skipif mysql # not compatible
query I rowsort label-4202
SELECT + - CAST ( NULL AS INTEGER ) * - 42 + 41
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4203
SELECT + 2 * COUNT( * ) AS col1
----
2

skipif mysql # not compatible
query I rowsort label-4203
SELECT + 2 * COUNT ( * ) AS col1
----
2

onlyif mysql # aggregate syntax: 
query II rowsort label-4204
SELECT - ( 99 ) * + - 39 - + COALESCE ( 48, - - 15 + COUNT( * ) ) col2, MAX( + - 89 ) AS col2
----
3813
-89

skipif mysql # not compatible
query II rowsort label-4204
SELECT - ( 99 ) * + - 39 - + COALESCE ( 48, - - 15 + COUNT ( * ) ) col2, MAX ( + - 89 ) AS col2
----
3813
-89

query I rowsort
SELECT - - 21 * + 81 * 81 + - - 23 + + - 71 * - 77 * 63 - + ( + - 61 ) * 92
----
487837

onlyif mysql # aggregate syntax: 
query I rowsort label-4206
SELECT DISTINCT + SUM( + - 49 ) - - 38
----
-11

skipif mysql # not compatible
query I rowsort label-4206
SELECT DISTINCT + SUM ( + - 49 ) - - 38
----
-11

onlyif mysql # aggregate syntax: 
query II rowsort label-4207
SELECT DISTINCT - COALESCE ( + COUNT( * ), ( 87 ) - + COUNT( * ) ) col1, COUNT( * ) AS col2
----
-1
1

skipif mysql # not compatible
query II rowsort label-4207
SELECT DISTINCT - COALESCE ( + COUNT ( * ), ( 87 ) - + COUNT ( * ) ) col1, COUNT ( * ) AS col2
----
-1
1

query I rowsort
SELECT - NULLIF ( + 45, - - 49 + 51 )
----
-45

query I rowsort
SELECT DISTINCT + + 48 * - 35
----
-1680

onlyif mysql # aggregate syntax: 
query I rowsort label-4210
SELECT ALL + COALESCE ( - 44, + + 42 * + + COUNT( * ) ) AS col0
----
-44

skipif mysql # not compatible
query I rowsort label-4210
SELECT ALL + COALESCE ( - 44, + + 42 * + + COUNT ( * ) ) AS col0
----
-44

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4211
SELECT ALL + COUNT( * ) * - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-4211
SELECT ALL + COUNT ( * ) * - CAST ( NULL AS REAL )
----
NULL

query II rowsort
SELECT - 46, - 8 col0
----
-46
-8

onlyif mysql # DIV for integer division: 
query I rowsort label-4213
SELECT ALL COALESCE ( - - 22, - 75 DIV + - 79 + 13 ) AS col2
----
22

skipif mysql # not compatible
query I rowsort label-4213
SELECT ALL COALESCE ( - - 22, - 75 / + - 79 + 13 ) AS col2
----
22

query I rowsort
SELECT - 62 - - 61
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-4215
SELECT + 68 DIV - 73
----
0

skipif mysql # not compatible
query I rowsort label-4215
SELECT + 68 / - 73
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4216
SELECT ALL ( SUM( DISTINCT - 46 ) )
----
-46

skipif mysql # not compatible
query I rowsort label-4216
SELECT ALL ( SUM ( DISTINCT - 46 ) )
----
-46

query I rowsort
SELECT - 80 * 72
----
-5760

query I rowsort
SELECT + 86 + - ( - 87 ) * - + ( + - ( 61 ) ) + + - 59 AS col1
----
5334

query I rowsort
SELECT ALL 68 + - 12 * + 60
----
-652

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4220
SELECT ALL 27 DIV - COUNT( * )
----
-27

skipif mysql # not compatible
query I rowsort label-4220
SELECT ALL 27 / - COUNT ( * )
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-4221
SELECT - SUM( 83 ) AS col1
----
-83

skipif mysql # not compatible
query I rowsort label-4221
SELECT - SUM ( 83 ) AS col1
----
-83

query I rowsort
SELECT ALL + 71 + + + 80
----
151

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4223
SELECT + 2 DIV COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-4223
SELECT + 2 / COUNT ( * )
----
2

query I rowsort
SELECT - 14 * - 60 AS col1
----
840

onlyif mysql # aggregate syntax: 
query I rowsort label-4225
SELECT - CASE - 34 WHEN - CASE 78 WHEN + 42 THEN NULL WHEN 17 * - 10 + - - COUNT( * ) THEN 29 ELSE + - NULLIF ( + - 23, - 50 ) END THEN NULL WHEN + - 42 THEN + 39 * + - 82 END * - - 29 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4225
SELECT - CASE - 34 WHEN - CASE 78 WHEN + 42 THEN NULL WHEN 17 * - 10 + - - COUNT ( * ) THEN 29 ELSE + - NULLIF ( + - 23, - 50 ) END THEN NULL WHEN + - 42 THEN + 39 * + - 82 END * - - 29 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4226
SELECT + NULLIF ( ( + COUNT( + + 10 ) ), + + 97 + + 45 )
----
1

skipif mysql # not compatible
query I rowsort label-4226
SELECT + NULLIF ( ( + COUNT ( + + 10 ) ), + + 97 + + 45 )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4227
SELECT CAST( - 33 AS SIGNED ) AS col1
----
-33

skipif mysql # not compatible
query I rowsort label-4227
SELECT CAST ( - 33 AS INTEGER ) AS col1
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-4228
SELECT DISTINCT + 36 * - MAX( 92 ) AS col2
----
-3312

skipif mysql # not compatible
query I rowsort label-4228
SELECT DISTINCT + 36 * - MAX ( 92 ) AS col2
----
-3312

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4229
SELECT ALL + NULLIF ( CAST( NULL AS SIGNED ), 56 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4229
SELECT ALL + NULLIF ( CAST ( NULL AS INTEGER ), 56 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4230
SELECT DISTINCT COUNT( * ) DIV - 94 - + 25 * + + 19 + - 30 + - ( + COUNT( * ) )
----
-506

skipif mysql # not compatible
query I rowsort label-4230
SELECT DISTINCT COUNT ( * ) / - 94 - + 25 * + + 19 + - 30 + - ( + COUNT ( * ) )
----
-506

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4231
SELECT ALL + + CAST( - CAST( NULL AS SIGNED ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4231
SELECT ALL + + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT + + 95 col0
----
95

query I rowsort
SELECT DISTINCT + NULLIF ( - 62, + 48 )
----
-62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4234
SELECT + 56 * 1 + - - 29 + - 86 + CAST( - NULLIF ( + 87, - COUNT( * ) * - + COALESCE ( COUNT( * ), 76 + + 64, + 36 ) / 39 + + 48 * + NULLIF ( + COUNT( * ), + 76 * 95 + + - 42 ) ) AS SIGNED ) * - 46 AS col1
----
4001

skipif mysql # not compatible
query I rowsort label-4234
SELECT + 56 * 1 + - - 29 + - 86 + CAST ( - NULLIF ( + 87, - COUNT ( * ) * - + COALESCE ( COUNT ( * ), 76 + + 64, + 36 ) / 39 + + 48 * + NULLIF ( + COUNT ( * ), + 76 * 95 + + - 42 ) ) AS INTEGER ) * - 46 AS col1
----
4001

query I rowsort
SELECT - - ( + 64 ) * - 67 + + 18 * - 17
----
-4594

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4236
SELECT 49 col2, MAX( - 38 ) + 45 DIV 41 DIV + COUNT( * ) - - 73 * + 9 * COUNT( * ) * - - 78
----
49
51209

skipif mysql # not compatible
query II rowsort label-4236
SELECT 49 col2, MAX ( - 38 ) + 45 / 41 / + COUNT ( * ) - - 73 * + 9 * COUNT ( * ) * - - 78
----
49
51209

query I rowsort
SELECT ALL + ( + 97 ) AS col0
----
97

query II rowsort
SELECT + + 84, 93 col1
----
84
93

query I rowsort
SELECT + 14 + 33
----
47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4240
SELECT + + 88 DIV + 60 * - - COUNT( 28 )
----
1

skipif mysql # not compatible
query I rowsort label-4240
SELECT + + 88 / + 60 * - - COUNT ( 28 )
----
1

query I rowsort
SELECT ALL + ( 92 ) * - 44 * - + 32 AS col1
----
129536

query I rowsort
SELECT DISTINCT 2 * - - 36
----
72

query I rowsort
SELECT - 92 * 81 - + 27
----
-7479

query I rowsort
SELECT DISTINCT + + ( 65 )
----
65

query I rowsort
SELECT + + 30 * + 79 + - 78 AS col2
----
2292

query I rowsort
SELECT ALL + 65 * + ( + - NULLIF ( - 21, - 1 ) ) + + 25 AS col1
----
1390

onlyif mysql # aggregate syntax: 
query I rowsort label-4247
SELECT MIN( + ( + + 30 ) ) AS col0
----
30

skipif mysql # not compatible
query I rowsort label-4247
SELECT MIN ( + ( + + 30 ) ) AS col0
----
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4248
SELECT - 36 * 72 + 91 + - CAST( NULL AS SIGNED ) * - 2 * - 30 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4248
SELECT - 36 * 72 + 91 + - CAST ( NULL AS INTEGER ) * - 2 * - 30 AS col0
----
NULL

query I rowsort
SELECT ALL ( - 17 )
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-4250
SELECT + 56 * + SUM( + + ( - + 62 ) ) AS col1
----
-3472

skipif mysql # not compatible
query I rowsort label-4250
SELECT + 56 * + SUM ( + + ( - + 62 ) ) AS col1
----
-3472

query I rowsort
SELECT DISTINCT - 30 * 20 * - 4
----
2400

query I rowsort
SELECT ALL + 75 + - 65
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-4253
SELECT DISTINCT ( + ( + 78 ) ) + + - CASE WHEN + 97 IS NULL THEN COUNT( * ) + 63 END + 70 + - - 76 + + + 92 + - 24 / - 37 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4253
SELECT DISTINCT ( + ( + 78 ) ) + + - CASE WHEN + 97 IS NULL THEN COUNT ( * ) + 63 END + 70 + - - 76 + + + 92 + - 24 / - 37 AS col2
----
NULL

query I rowsort
SELECT ALL - 12 + - 39 AS col1
----
-51

query I rowsort
SELECT - 26 * - - 23
----
-598

onlyif mysql # aggregate syntax: 
query I rowsort label-4256
SELECT ALL ( + MIN( + 16 ) )
----
16

skipif mysql # not compatible
query I rowsort label-4256
SELECT ALL ( + MIN ( + 16 ) )
----
16

onlyif mysql # aggregate syntax: 
query II rowsort label-4257
SELECT + COUNT( * ) + - 78 AS col1, + 76
----
-77
76

skipif mysql # not compatible
query II rowsort label-4257
SELECT + COUNT ( * ) + - 78 AS col1, + 76
----
-77
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4258
SELECT - 90 + ( 80 ) + + + 99 / - 36 - 94 * - 76 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4258
SELECT - 90 + ( 80 ) + + + 99 / - 36 - 94 * - 76 * CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT - 96 * + 10 AS col0, 56 * ( + 22 ) AS col0
----
-960
1232

query I rowsort
SELECT 73 + + 39 AS col1
----
112

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4261
SELECT ALL + COUNT( * ) + + + ( COUNT( * ) ) DIV - 95 * 56
----
1

skipif mysql # not compatible
query I rowsort label-4261
SELECT ALL + COUNT ( * ) + + + ( COUNT ( * ) ) / - 95 * 56
----
1

query I rowsort
SELECT 82 + - - 2 + - 71
----
13

query I rowsort
SELECT 89 + - 14
----
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4264
SELECT DISTINCT - 95 - + + COUNT( - - 33 ) - + 15 + + + CAST( NULL AS SIGNED ) * 59 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4264
SELECT DISTINCT - 95 - + + COUNT ( - - 33 ) - + 15 + + + CAST ( NULL AS INTEGER ) * 59 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4265
SELECT ALL COUNT( * ) * - 93 AS col2
----
-93

skipif mysql # not compatible
query I rowsort label-4265
SELECT ALL COUNT ( * ) * - 93 AS col2
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-4266
SELECT ALL - - COUNT( * ) - + 30 AS col1
----
-29

skipif mysql # not compatible
query I rowsort label-4266
SELECT ALL - - COUNT ( * ) - + 30 AS col1
----
-29

query I rowsort
SELECT ALL ( - 38 ) * - 39
----
1482

query I rowsort
SELECT 45 * - 91 AS col1
----
-4095

onlyif mysql # aggregate syntax: 
query I rowsort label-4269
SELECT ALL + - 36 * 54 * COUNT( * )
----
-1944

skipif mysql # not compatible
query I rowsort label-4269
SELECT ALL + - 36 * 54 * COUNT ( * )
----
-1944

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4270
SELECT - COUNT( * ) * + 57 DIV + + 70 + + 38 - + 0 AS col0
----
38

skipif mysql # not compatible
query I rowsort label-4270
SELECT - COUNT ( * ) * + 57 / + + 70 + + 38 - + 0 AS col0
----
38

query I rowsort
SELECT ALL - 97 * + 31 + 22
----
-2985

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4272
SELECT 53 * + - CAST( ( COUNT( * ) ) AS SIGNED )
----
-53

skipif mysql # not compatible
query I rowsort label-4272
SELECT 53 * + - CAST ( ( COUNT ( * ) ) AS INTEGER )
----
-53

query I rowsort
SELECT DISTINCT - + NULLIF ( 89, + ( 60 ) ) * + 95
----
-8455

onlyif mysql # aggregate syntax: 
query I rowsort label-4274
SELECT DISTINCT - COUNT( DISTINCT + 15 ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-4274
SELECT DISTINCT - COUNT ( DISTINCT + 15 ) col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4275
SELECT ALL - - ( + NULLIF ( + SUM( DISTINCT - + ( - 22 ) ), - - 95 + - NULLIF ( - - 33, + 94 + - 41 * + - 92 ) ) ) AS col1
----
22

skipif mysql # not compatible
query I rowsort label-4275
SELECT ALL - - ( + NULLIF ( + SUM ( DISTINCT - + ( - 22 ) ), - - 95 + - NULLIF ( - - 33, + 94 + - 41 * + - 92 ) ) ) AS col1
----
22

query I rowsort
SELECT + CASE 96 WHEN + 55 THEN - 17 ELSE - + 2 END AS col0
----
-2

query I rowsort
SELECT ALL 31 + 77 + - 61 AS col1
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-4278
SELECT MAX( ALL + 19 )
----
19

skipif mysql # not compatible
query I rowsort label-4278
SELECT MAX ( ALL + 19 )
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-4279
SELECT + 14 * 72 + 72 * COUNT( * ) AS col2
----
1080

skipif mysql # not compatible
query I rowsort label-4279
SELECT + 14 * 72 + 72 * COUNT ( * ) AS col2
----
1080

query I rowsort
SELECT ALL - 21 * - + 64 col0
----
1344

onlyif mysql # aggregate syntax: 
query I rowsort label-4281
SELECT DISTINCT 10 + + - 91 - + 76 + - 1 * + COUNT( * ) * 85 * - 3
----
98

skipif mysql # not compatible
query I rowsort label-4281
SELECT DISTINCT 10 + + - 91 - + 76 + - 1 * + COUNT ( * ) * 85 * - 3
----
98

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4282
SELECT ALL CAST( NULL AS DECIMAL ) + + + 61 + 92 + - 66 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4282
SELECT ALL CAST ( NULL AS REAL ) + + + 61 + 92 + - 66 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4283
SELECT - 99 AS col0, 40 + - + MAX( ALL - 4 ) + - 81 AS col2
----
-99
-37

skipif mysql # not compatible
query II rowsort label-4283
SELECT - 99 AS col0, 40 + - + MAX ( ALL - 4 ) + - 81 AS col2
----
-99
-37

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4284
SELECT ALL 45 + + - CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4284
SELECT ALL 45 + + - CAST ( NULL AS REAL ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4285
SELECT ALL + 89 + + 13 + + - 58 + MIN( - 11 ) AS col0
----
33

skipif mysql # not compatible
query I rowsort label-4285
SELECT ALL + 89 + + 13 + + - 58 + MIN ( - 11 ) AS col0
----
33

query I rowsort
SELECT ALL 15 * + 44 AS col0
----
660

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4287
SELECT 83 + - + CAST( ( + 3 ) AS SIGNED )
----
80

skipif mysql # not compatible
query I rowsort label-4287
SELECT 83 + - + CAST ( ( + 3 ) AS INTEGER )
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-4288
SELECT 67 - - COUNT( * ) * COUNT( * )
----
68

skipif mysql # not compatible
query I rowsort label-4288
SELECT 67 - - COUNT ( * ) * COUNT ( * )
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-4289
SELECT DISTINCT - COUNT( * ) - + + 49
----
-50

skipif mysql # not compatible
query I rowsort label-4289
SELECT DISTINCT - COUNT ( * ) - + + 49
----
-50

query II rowsort
SELECT 93 AS col0, 84 AS col2
----
93
84

onlyif mysql # aggregate syntax: 
query I rowsort label-4291
SELECT DISTINCT 8 - + MAX( DISTINCT + 83 )
----
-75

skipif mysql # not compatible
query I rowsort label-4291
SELECT DISTINCT 8 - + MAX ( DISTINCT + 83 )
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-4292
SELECT ALL - 81 * - COUNT( DISTINCT - 45 ) col2
----
81

skipif mysql # not compatible
query I rowsort label-4292
SELECT ALL - 81 * - COUNT ( DISTINCT - 45 ) col2
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-4293
SELECT 98 * - NULLIF ( - + COUNT( * ), 73 ) AS col1
----
98

skipif mysql # not compatible
query I rowsort label-4293
SELECT 98 * - NULLIF ( - + COUNT ( * ), 73 ) AS col1
----
98

query I rowsort
SELECT DISTINCT 43 - + 93
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-4295
SELECT DISTINCT - CASE + - COUNT( * ) WHEN 43 THEN 61 END * + 20 + - ( - + 1 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4295
SELECT DISTINCT - CASE + - COUNT ( * ) WHEN 43 THEN 61 END * + 20 + - ( - + 1 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4296
SELECT ALL - MAX( - 11 ) * 67
----
737

skipif mysql # not compatible
query I rowsort label-4296
SELECT ALL - MAX ( - 11 ) * 67
----
737

onlyif mysql # aggregate syntax: 
query II rowsort label-4297
SELECT ALL - + ( + - COUNT( * ) ) * - 1 AS col0, + COUNT( * )
----
-1
1

skipif mysql # not compatible
query II rowsort label-4297
SELECT ALL - + ( + - COUNT ( * ) ) * - 1 AS col0, + COUNT ( * )
----
-1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4298
SELECT - COUNT( - 50 ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-4298
SELECT - COUNT ( - 50 ) col1
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4299
SELECT CAST( NULL AS SIGNED ) * + 95 * - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4299
SELECT CAST ( NULL AS INTEGER ) * + 95 * - COUNT ( * )
----
NULL

query I rowsort
SELECT + 29 * 33
----
957

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4301
SELECT - 92 * - CASE + - 93 WHEN - CAST( + 98 AS SIGNED ) THEN NULL WHEN 43 * + 14 * + - 77 + - 29 + - - CASE - AVG ( 48 ) WHEN + COUNT( * ) THEN NULL WHEN + + 14 THEN 26 * - COALESCE ( + COUNT( * ), - 25, + 54 ) WHEN COALESCE ( + + 63, + SUM( 83 ) / - - 58 * - 91 + + - 96 / 29, + ( - 0 ) * - - 25 ) / 96 + + 87 THEN NULL END THEN + 10 ELSE NULL END + - 19 * + 98
----
NULL

skipif mysql # not compatible
query I rowsort label-4301
SELECT - 92 * - CASE + - 93 WHEN - CAST ( + 98 AS INTEGER ) THEN NULL WHEN 43 * + 14 * + - 77 + - 29 + - - CASE - AVG ( 48 ) WHEN + COUNT ( * ) THEN NULL WHEN + + 14 THEN 26 * - COALESCE ( + COUNT ( * ), - 25, + 54 ) WHEN COALESCE ( + + 63, + SUM ( 83 ) / - - 58 * - 91 + + - 96 / 29, + ( - 0 ) * - - 25 ) / 96 + + 87 THEN NULL END THEN + 10 ELSE NULL END + - 19 * + 98
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4302
SELECT 22 DIV - 22 + + + COUNT( * ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4302
SELECT 22 / - 22 + + + COUNT ( * ) AS col2
----
0

query I rowsort
SELECT DISTINCT - + ( - 83 )
----
83

query I rowsort
SELECT ALL + 77 * 58 AS col0
----
4466

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4305
SELECT ALL - 57 col2, COUNT( * ) + - 92 + + 70 * + - ( - COALESCE ( + 45, - + MIN( DISTINCT - 65 ) * - CASE - + 87 WHEN CASE 38 WHEN COUNT( - 95 ) THEN NULL WHEN 16 THEN + 43 WHEN - CAST( NULL AS SIGNED ) THEN NULL WHEN - 36 THEN + 5 + + 11 END + - 67 THEN - 13 WHEN + 0 THEN NULL ELSE NULL END, - 44, + 29 + 44 + + 21 ) ) * 96 + - + 21 AS col2
----
-57
302288

skipif mysql # not compatible
query II rowsort label-4305
SELECT ALL - 57 col2, COUNT ( * ) + - 92 + + 70 * + - ( - COALESCE ( + 45, - + MIN ( DISTINCT - 65 ) * - CASE - + 87 WHEN CASE 38 WHEN COUNT ( - 95 ) THEN NULL WHEN 16 THEN + 43 WHEN - CAST ( NULL AS INTEGER ) THEN NULL WHEN - 36 THEN + 5 + + 11 END + - 67 THEN - 13 WHEN + 0 THEN NULL ELSE NULL END, - 44, + 29 + 44 + + 21 ) ) * 96 + - + 21 AS col2
----
-57
302288

onlyif mysql # aggregate syntax: 
query I rowsort label-4306
SELECT ALL + 86 * - - NULLIF ( + COUNT( * ), + 98 ) * - COALESCE ( + COUNT( * ), 99 ) AS col2
----
-86

skipif mysql # not compatible
query I rowsort label-4306
SELECT ALL + 86 * - - NULLIF ( + COUNT ( * ), + 98 ) * - COALESCE ( + COUNT ( * ), 99 ) AS col2
----
-86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-4307
SELECT CAST( COUNT( * ) AS SIGNED ) * - CAST( NULL AS SIGNED ) / + 91 + - + CAST( NULL AS DECIMAL ), + COUNT( * ) AS col1
----
NULL
1

skipif mysql # not compatible
query II rowsort label-4307
SELECT CAST ( COUNT ( * ) AS INTEGER ) * - CAST ( NULL AS INTEGER ) / + 91 + - + CAST ( NULL AS REAL ), + COUNT ( * ) AS col1
----
NULL
1

query I rowsort
SELECT ALL + 16 + + + 6
----
22

query I rowsort
SELECT + - NULLIF ( 22, + 40 + + 85 )
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-4310
SELECT ALL - 25 * 18 * 73 + 7 * + 26 + + 32 + - + COUNT( * ) col1
----
-32637

skipif mysql # not compatible
query I rowsort label-4310
SELECT ALL - 25 * 18 * 73 + 7 * + 26 + + 32 + - + COUNT ( * ) col1
----
-32637

query I rowsort
SELECT 70 * - + 15 AS col0
----
-1050

query I rowsort
SELECT - + 93 * - 74 + - 44
----
6838

onlyif mysql # aggregate syntax: 
query I rowsort label-4313
SELECT ALL - - COALESCE ( + 13, - 91 * - + 1 - + 68 * 23 - + - 92 + MAX( ALL - 42 ) ) AS col2
----
13

skipif mysql # not compatible
query I rowsort label-4313
SELECT ALL - - COALESCE ( + 13, - 91 * - + 1 - + 68 * 23 - + - 92 + MAX ( ALL - 42 ) ) AS col2
----
13

query I rowsort
SELECT DISTINCT - ( + 24 ) AS col0
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-4315
SELECT + COUNT( * ) + 81 * + - 26 * - MAX( + 30 ) * + 22 + - ( + + 38 )
----
1389923

skipif mysql # not compatible
query I rowsort label-4315
SELECT + COUNT ( * ) + 81 * + - 26 * - MAX ( + 30 ) * + 22 + - ( + + 38 )
----
1389923

onlyif mysql # aggregate syntax: 
query I rowsort label-4316
SELECT ALL COUNT( * ) + + + 84
----
85

skipif mysql # not compatible
query I rowsort label-4316
SELECT ALL COUNT ( * ) + + + 84
----
85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4317
SELECT DISTINCT - COALESCE ( CAST( CAST( + MAX( DISTINCT 0 ) AS SIGNED ) AS SIGNED ), - ( - 16 ) + + NULLIF ( - 81, + + 26 ) + + 60 - 14, + 28 - + + COUNT( - 64 ), + 60 * 95 * + 50 + - COALESCE ( 8, 65 + + COUNT( * ) ) + + CAST( - - 63 AS SIGNED ) DIV MAX( ALL - + 64 ) + - 24 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4317
SELECT DISTINCT - COALESCE ( CAST ( CAST ( + MAX ( DISTINCT 0 ) AS INTEGER ) AS INTEGER ), - ( - 16 ) + + NULLIF ( - 81, + + 26 ) + + 60 - 14, + 28 - + + COUNT ( - 64 ), + 60 * 95 * + 50 + - COALESCE ( 8, 65 + + COUNT ( * ) ) + + CAST ( - - 63 AS INTEGER ) / MAX ( ALL - + 64 ) + - 24 ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4318
SELECT + COUNT( + 0 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4318
SELECT + COUNT ( + 0 ) AS col2
----
1

query I rowsort
SELECT 86 + COALESCE ( - 58, + 3 ) * - 83
----
4900

onlyif mysql # aggregate syntax: 
query I rowsort label-4320
SELECT ALL 68 - 55 * - COUNT( * )
----
123

skipif mysql # not compatible
query I rowsort label-4320
SELECT ALL 68 - 55 * - COUNT ( * )
----
123

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4321
SELECT 40, NULLIF ( - + 87, - ( - 70 ) * - SUM( ALL 6 ) ) - + 99 + - 99 DIV - 96 AS col2
----
40
-185

skipif mysql # not compatible
query II rowsort label-4321
SELECT 40, NULLIF ( - + 87, - ( - 70 ) * - SUM ( ALL 6 ) ) - + 99 + - 99 / - 96 AS col2
----
40
-185

onlyif mysql # aggregate syntax: 
query II rowsort label-4322
SELECT - MIN( ALL - 91 ) + - 75 * - 91 AS col2, + 67 AS col2
----
6916
67

skipif mysql # not compatible
query II rowsort label-4322
SELECT - MIN ( ALL - 91 ) + - 75 * - 91 AS col2, + 67 AS col2
----
6916
67

query II rowsort
SELECT + 56 * 60 * + ( - 0 ), - 43 AS col0
----
0
-43

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4324
SELECT ALL 61 * - 36 AS col1, - 34 + - - 41 * - CAST( NULL AS SIGNED ) AS col1
----
-2196
NULL

skipif mysql # not compatible
query II rowsort label-4324
SELECT ALL 61 * - 36 AS col1, - 34 + - - 41 * - CAST ( NULL AS INTEGER ) AS col1
----
-2196
NULL

query III rowsort
SELECT 89 AS col0, - 27 * 14 * + - 26, + + 10 AS col1
----
89
9828
10

query I rowsort
SELECT + 32 - 45
----
-13

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4327
SELECT ALL 22 AS col1, - NULLIF ( CAST( NULL AS SIGNED ), + - 88 )
----
22
NULL

skipif mysql # not compatible
query II rowsort label-4327
SELECT ALL 22 AS col1, - NULLIF ( CAST ( NULL AS INTEGER ), + - 88 )
----
22
NULL

query II rowsort
SELECT DISTINCT 24, + 44 AS col2
----
24
44

onlyif mysql # aggregate syntax: 
query I rowsort label-4329
SELECT - COUNT( - - 46 )
----
-1

skipif mysql # not compatible
query I rowsort label-4329
SELECT - COUNT ( - - 46 )
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-4330
SELECT DISTINCT 43 - - ( + + 44 ) * 36 col1, - 22 * + MAX( ALL + + 86 ) col2
----
1627
-1892

skipif mysql # not compatible
query II rowsort label-4330
SELECT DISTINCT 43 - - ( + + 44 ) * 36 col1, - 22 * + MAX ( ALL + + 86 ) col2
----
1627
-1892

query II rowsort
SELECT DISTINCT 79 AS col2, 0 AS col1
----
79
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4332
SELECT DISTINCT SUM( - ( + 75 ) ) * - 20 * - 13 AS col0
----
-19500

skipif mysql # not compatible
query I rowsort label-4332
SELECT DISTINCT SUM ( - ( + 75 ) ) * - 20 * - 13 AS col0
----
-19500

query I rowsort
SELECT DISTINCT - 77 - 49
----
-126

query I rowsort
SELECT + ( - 46 ) * + 87 AS col2
----
-4002

query I rowsort
SELECT + 89 * + + 51
----
4539

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4336
SELECT + CAST( NULL AS SIGNED ) + - 19, 95 + - 74 AS col1
----
NULL
21

skipif mysql # not compatible
query II rowsort label-4336
SELECT + CAST ( NULL AS INTEGER ) + - 19, 95 + - 74 AS col1
----
NULL
21

onlyif mysql # aggregate syntax: 
query I rowsort label-4337
SELECT + MIN( DISTINCT + + 40 ) * + + 0
----
0

skipif mysql # not compatible
query I rowsort label-4337
SELECT + MIN ( DISTINCT + + 40 ) * + + 0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4338
SELECT + MIN( - - 79 ) + - 8 AS col0
----
71

skipif mysql # not compatible
query I rowsort label-4338
SELECT + MIN ( - - 79 ) + - 8 AS col0
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-4339
SELECT - NULLIF ( - COUNT( * ), - 21 ) - + + 89 + 34 * - 42 AS col1
----
-1516

skipif mysql # not compatible
query I rowsort label-4339
SELECT - NULLIF ( - COUNT ( * ), - 21 ) - + + 89 + 34 * - 42 AS col1
----
-1516

query I rowsort
SELECT - - 78 / + CASE WHEN NOT 20 IS NULL THEN NULL ELSE 75 END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4341
SELECT - 23 * + COALESCE ( SUM( + 42 ), + - 72 + + 60 ) AS col1, 53 * + 41
----
-966
2173

skipif mysql # not compatible
query II rowsort label-4341
SELECT - 23 * + COALESCE ( SUM ( + 42 ), + - 72 + + 60 ) AS col1, 53 * + 41
----
-966
2173

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4342
SELECT + 67 + + 39 DIV - - 34 DIV + COUNT( * ) AS col0
----
68

skipif mysql # not compatible
query I rowsort label-4342
SELECT + 67 + + 39 / - - 34 / + COUNT ( * ) AS col0
----
68

query II rowsort
SELECT DISTINCT + 80, - 20 AS col1
----
80
-20

query I rowsort
SELECT ALL - - 69 + - 42
----
27

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4345
SELECT + + CAST( NULL AS DECIMAL ) + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4345
SELECT + + CAST ( NULL AS REAL ) + + COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4346
SELECT ALL + - 5 * 36 * + 34 * - CAST( + 26 AS SIGNED ) + - CAST( NULL AS SIGNED ) - - 49 + + ( + 69 ) + - 35 / - + COUNT( * ) * - 2 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4346
SELECT ALL + - 5 * 36 * + 34 * - CAST ( + 26 AS INTEGER ) + - CAST ( NULL AS INTEGER ) - - 49 + + ( + 69 ) + - 35 / - + COUNT ( * ) * - 2 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4347
SELECT + 98 DIV - 11 - + - 45 + + MAX( + 23 ) + - - 91 * 49
----
4519

skipif mysql # not compatible
query I rowsort label-4347
SELECT + 98 / - 11 - + - 45 + + MAX ( + 23 ) + - - 91 * 49
----
4519

query II rowsort
SELECT 18 AS col2, + 14 AS col1
----
18
14

onlyif mysql # aggregate syntax: 
query I rowsort label-4349
SELECT DISTINCT - MIN( DISTINCT + + 1 ) * + 11 + + 34 * 61 * + - 78 + + - COUNT( * ) AS col0
----
-161784

skipif mysql # not compatible
query I rowsort label-4349
SELECT DISTINCT - MIN ( DISTINCT + + 1 ) * + 11 + + 34 * 61 * + - 78 + + - COUNT ( * ) AS col0
----
-161784

query I rowsort
SELECT - + 99 * + 22
----
-2178

query I rowsort
SELECT ALL + ( + NULLIF ( - + 47, + 29 ) ) AS col1
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-4352
SELECT COALESCE ( - ( - - COALESCE ( - 7, - 12 + - 96 + 2 + - 83 + - 44 - + COUNT( * ) ) ), 8 * 93, - + COUNT( * ) )
----
7

skipif mysql # not compatible
query I rowsort label-4352
SELECT COALESCE ( - ( - - COALESCE ( - 7, - 12 + - 96 + 2 + - 83 + - 44 - + COUNT ( * ) ) ), 8 * 93, - + COUNT ( * ) )
----
7

onlyif mysql # DIV for integer division: 
query I rowsort label-4353
SELECT ALL + 80 DIV - 10 AS col1
----
-8

skipif mysql # not compatible
query I rowsort label-4353
SELECT ALL + 80 / - 10 AS col1
----
-8

query I rowsort
SELECT ALL 92 * + 37 - + - 18
----
3422

query II rowsort
SELECT DISTINCT - 71 * + 0 AS col0, + 78 + 16 - + 18 + + 93
----
0
169

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4356
SELECT + CAST( NULL AS DECIMAL ) * - 56 + + - AVG ( + 74 ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4356
SELECT + CAST ( NULL AS REAL ) * - 56 + + - AVG ( + 74 ) col1
----
NULL

query I rowsort
SELECT ALL - 25 * + NULLIF ( 67, 43 ) - 28 AS col1
----
-1703

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4358
SELECT - 37 + + ( - 71 ) DIV - 5 * COUNT( * ) + - - CASE - - 60 WHEN + + COUNT( 37 ) - + 24 + 13 THEN COALESCE ( 86, 21 ) ELSE + 14 DIV + 66 * - 72 - - 2 * + 31 END + 44 * - 54 - - 51 + + MIN( ALL 12 ) * - 37 * + ( + + 79 ) AS col2
----
-37362

skipif mysql # not compatible
query I rowsort label-4358
SELECT - 37 + + ( - 71 ) / - 5 * COUNT ( * ) + - - CASE - - 60 WHEN + + COUNT ( 37 ) - + 24 + 13 THEN COALESCE ( 86, 21 ) ELSE + 14 / + 66 * - 72 - - 2 * + 31 END + 44 * - 54 - - 51 + + MIN ( ALL 12 ) * - 37 * + ( + + 79 ) AS col2
----
-37362

query I rowsort
SELECT DISTINCT ( 91 )
----
91

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4360
SELECT ALL CAST( CASE - 21 WHEN + + NULLIF ( + 35, + - 3 ) * - + 89 - 74 * MIN( ( + + 30 ) ) * - 6 THEN + 79 * - + 10 * - 47 - 53 WHEN + 15 THEN - 61 * COALESCE ( ( + 25 ), 79 ) END AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4360
SELECT ALL CAST ( CASE - 21 WHEN + + NULLIF ( + 35, + - 3 ) * - + 89 - 74 * MIN ( ( + + 30 ) ) * - 6 THEN + 79 * - + 10 * - 47 - 53 WHEN + 15 THEN - 61 * COALESCE ( ( + 25 ), 79 ) END AS REAL ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4361
SELECT - COUNT( ALL - 37 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-4361
SELECT - COUNT ( ALL - 37 ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4362
SELECT + COUNT( DISTINCT - + ( - ( + + 14 ) ) ) + + ( + 55 ) col2
----
56

skipif mysql # not compatible
query I rowsort label-4362
SELECT + COUNT ( DISTINCT - + ( - ( + + 14 ) ) ) + + ( + 55 ) col2
----
56

query I rowsort
SELECT DISTINCT ( + 86 ) * + 17
----
1462

query I rowsort
SELECT DISTINCT ( - 59 ) + - 65 AS col1
----
-124

onlyif mysql # aggregate syntax: 
query I rowsort label-4365
SELECT + - COUNT( * ) * + 98 AS col0
----
-98

skipif mysql # not compatible
query I rowsort label-4365
SELECT + - COUNT ( * ) * + 98 AS col0
----
-98

query I rowsort
SELECT ALL + NULLIF ( - + 74, + 65 - - 9 ) + 18 * + + 61 col0
----
1024

onlyif mysql # aggregate syntax: 
query I rowsort label-4367
SELECT DISTINCT + - COUNT( * ) * - + 54 col1
----
54

skipif mysql # not compatible
query I rowsort label-4367
SELECT DISTINCT + - COUNT ( * ) * - + 54 col1
----
54

query I rowsort
SELECT ALL + 41 + - 90 col1
----
-49

query I rowsort
SELECT DISTINCT - 77 + + 49 * 37 col1
----
1736

onlyif mysql # aggregate syntax: 
query I rowsort label-4370
SELECT - + SUM( DISTINCT 27 ) col1
----
-27

skipif mysql # not compatible
query I rowsort label-4370
SELECT - + SUM ( DISTINCT 27 ) col1
----
-27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4371
SELECT + CAST( 64 AS SIGNED ) * + 52 + + + CAST( - + 73 AS SIGNED ) AS col0
----
3255

skipif mysql # not compatible
query I rowsort label-4371
SELECT + CAST ( 64 AS INTEGER ) * + 52 + + + CAST ( - + 73 AS INTEGER ) AS col0
----
3255

onlyif mysql # aggregate syntax: 
query I rowsort label-4372
SELECT ALL MIN( + - ( + NULLIF ( - 90, 82 ) ) ) + - - 15 * + - 2 + - - COUNT( ALL 6 ) col2
----
61

skipif mysql # not compatible
query I rowsort label-4372
SELECT ALL MIN ( + - ( + NULLIF ( - 90, 82 ) ) ) + - - 15 * + - 2 + - - COUNT ( ALL 6 ) col2
----
61

query I rowsort
SELECT + 1 * - 3
----
-3

query I rowsort
SELECT + 40 - - - 64 + 62 AS col2
----
38

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4375
SELECT + 53 DIV - 16 * + COUNT( * ) AS col1
----
-3

skipif mysql # not compatible
query I rowsort label-4375
SELECT + 53 / - 16 * + COUNT ( * ) AS col1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4376
SELECT + - 89 * COUNT( * ) * + COUNT( * ) AS col1
----
-89

skipif mysql # not compatible
query I rowsort label-4376
SELECT + - 89 * COUNT ( * ) * + COUNT ( * ) AS col1
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-4377
SELECT + 67 * 46 + - - ( - 55 ) * + NULLIF ( + 55, + MIN( - - 10 ) )
----
57

skipif mysql # not compatible
query I rowsort label-4377
SELECT + 67 * 46 + - - ( - 55 ) * + NULLIF ( + 55, + MIN ( - - 10 ) )
----
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4378
SELECT ALL - 63 DIV - + 41 + - COUNT( * ) + + ( 46 ) * 41 + + CAST( + 90 AS SIGNED ) AS col0
----
1976

skipif mysql # not compatible
query I rowsort label-4378
SELECT ALL - 63 / - + 41 + - COUNT ( * ) + + ( 46 ) * 41 + + CAST ( + 90 AS INTEGER ) AS col0
----
1976

onlyif mysql # aggregate syntax: 
query I rowsort label-4379
SELECT DISTINCT + 75 * - SUM( ALL COALESCE ( + 72, 23 ) ) AS col1
----
-5400

skipif mysql # not compatible
query I rowsort label-4379
SELECT DISTINCT + 75 * - SUM ( ALL COALESCE ( + 72, 23 ) ) AS col1
----
-5400

onlyif mysql # aggregate syntax: 
query I rowsort label-4380
SELECT ALL + CASE 10 WHEN 7 * - 11 * CASE - - COUNT( * ) WHEN - 59 THEN NULL WHEN - - 37 THEN NULL ELSE + - 48 + - 56 END * - 8 * + COUNT( * ) + - - ( - 52 ) + + 37 / - 96 THEN - - 67 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4380
SELECT ALL + CASE 10 WHEN 7 * - 11 * CASE - - COUNT ( * ) WHEN - 59 THEN NULL WHEN - - 37 THEN NULL ELSE + - 48 + - 56 END * - 8 * + COUNT ( * ) + - - ( - 52 ) + + 37 / - 96 THEN - - 67 ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4381
SELECT + + 53 * + + 19, - COUNT( * ) * 8 AS col0
----
1007
-8

skipif mysql # not compatible
query II rowsort label-4381
SELECT + + 53 * + + 19, - COUNT ( * ) * 8 AS col0
----
1007
-8

query I rowsort
SELECT DISTINCT 82 * ( - - 9 ) * 71
----
52398

query I rowsort
SELECT ALL 68 * - - ( + 40 ) AS col0
----
2720

query I rowsort
SELECT 93 * - + 22 AS col1
----
-2046

query I rowsort
SELECT ALL 86 * + 89 AS col2
----
7654

onlyif mysql # aggregate syntax: 
query II rowsort label-4386
SELECT 22 AS col1, MAX( - NULLIF ( + 7, - + ( + 92 ) / 16 ) ) AS col0
----
22
-7

skipif mysql # not compatible
query II rowsort label-4386
SELECT 22 AS col1, MAX ( - NULLIF ( + 7, - + ( + 92 ) / 16 ) ) AS col0
----
22
-7

query I rowsort
SELECT ALL 32 * + + 26
----
832

onlyif mysql # aggregate syntax: 
query II rowsort label-4388
SELECT DISTINCT - 15 AS col1, - COALESCE ( + 54, + - ( - COUNT( * ) ) ) * + COUNT( * ) * + + 67 * - ( - 32 ) * + COUNT( * ) + 29 + + 23
----
-15
-115724

skipif mysql # not compatible
query II rowsort label-4388
SELECT DISTINCT - 15 AS col1, - COALESCE ( + 54, + - ( - COUNT ( * ) ) ) * + COUNT ( * ) * + + 67 * - ( - 32 ) * + COUNT ( * ) + 29 + + 23
----
-15
-115724

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4389
SELECT ALL - CASE - + 73 WHEN + 62 THEN CASE 73 WHEN + 71 * + 2 + 46 DIV - 7 THEN + 56 + SUM( ALL - 22 ) ELSE + - CAST( + - CAST( NULL AS SIGNED ) AS SIGNED ) * - 89 * + 4 + 66 + + - 55 * COALESCE ( 57, - - 98 + - 94 DIV 97 * + 11 ) END WHEN 97 THEN NULL ELSE 52 END AS col2
----
-52

skipif mysql # not compatible
query I rowsort label-4389
SELECT ALL - CASE - + 73 WHEN + 62 THEN CASE 73 WHEN + 71 * + 2 + 46 / - 7 THEN + 56 + SUM ( ALL - 22 ) ELSE + - CAST ( + - CAST ( NULL AS INTEGER ) AS INTEGER ) * - 89 * + 4 + 66 + + - 55 * COALESCE ( 57, - - 98 + - 94 / 97 * + 11 ) END WHEN 97 THEN NULL ELSE 52 END AS col2
----
-52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4390
SELECT 2 + MAX( ALL - 4 ) DIV + 78
----
2

skipif mysql # not compatible
query I rowsort label-4390
SELECT 2 + MAX ( ALL - 4 ) / + 78
----
2

query I rowsort
SELECT ALL - 22 * 53 * - 41 AS col2
----
47806

query I rowsort
SELECT 8 * + 46 * - 49
----
-18032

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4393
SELECT DISTINCT - 50 DIV - MIN( DISTINCT 68 )
----
0

skipif mysql # not compatible
query I rowsort label-4393
SELECT DISTINCT - 50 / - MIN ( DISTINCT 68 )
----
0

query I rowsort
SELECT ALL - COALESCE ( + 11, - 78 - + ( 36 ) * - 67 - + 98 )
----
-11

query II rowsort
SELECT 3, - 87 AS col0
----
3
-87

query I rowsort
SELECT 1 + 18 AS col2
----
19

onlyif mysql # aggregate syntax: 
query II rowsort label-4397
SELECT ALL + SUM( 28 ) * + COUNT( ALL + + 71 ), + NULLIF ( - - 66, - 23 ) AS col1
----
28
66

skipif mysql # not compatible
query II rowsort label-4397
SELECT ALL + SUM ( 28 ) * + COUNT ( ALL + + 71 ), + NULLIF ( - - 66, - 23 ) AS col1
----
28
66

onlyif mysql # aggregate syntax: 
query I rowsort label-4398
SELECT 8 * - CASE 35 WHEN + CASE - 9 WHEN - 40 THEN - - 11 * + 2 - MIN( 97 ) * - ( - 7 ) END * 52 * + 49 THEN - 62 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4398
SELECT 8 * - CASE 35 WHEN + CASE - 9 WHEN - 40 THEN - - 11 * + 2 - MIN ( 97 ) * - ( - 7 ) END * 52 * + 49 THEN - 62 ELSE NULL END
----
NULL

query II rowsort
SELECT 52 AS col2, + 79 AS col0
----
52
79

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4400
SELECT ALL + - 98 + - COUNT( * ) + COUNT( * ) DIV - + NULLIF ( - 57, - 47 DIV - COUNT( * ) * COUNT( + 21 ) + - - 34 ) AS col1
----
-99

skipif mysql # not compatible
query I rowsort label-4400
SELECT ALL + - 98 + - COUNT ( * ) + COUNT ( * ) / - + NULLIF ( - 57, - 47 / - COUNT ( * ) * COUNT ( + 21 ) + - - 34 ) AS col1
----
-99

query I rowsort
SELECT ALL + 79 + - + 98
----
-19

query I rowsort
SELECT - + 43 col2
----
-43

query I rowsort
SELECT - + 58 AS col1
----
-58

query II rowsort
SELECT + ( + 89 ) - - 50, - 12 col1
----
139
-12

query I rowsort
SELECT + 51 + 77 + + 97
----
225

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4406
SELECT ALL - CAST( NULL AS SIGNED ) + - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4406
SELECT ALL - CAST ( NULL AS INTEGER ) + - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4407
SELECT - 60 * - 89 + 5 * + + COUNT( * )
----
5345

skipif mysql # not compatible
query I rowsort label-4407
SELECT - 60 * - 89 + 5 * + + COUNT ( * )
----
5345

query I rowsort
SELECT + 65 + 84 + + + ( - - 21 ) * + 95 AS col2
----
2144

query I rowsort
SELECT ALL 4 - 76 col2
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-4410
SELECT - ( - SUM( 8 ) ) + 27 AS col0
----
35

skipif mysql # not compatible
query I rowsort label-4410
SELECT - ( - SUM ( 8 ) ) + 27 AS col0
----
35

query I rowsort
SELECT ALL - 93 * 18
----
-1674

query I rowsort
SELECT DISTINCT + 35 - + 83
----
-48

query I rowsort
SELECT DISTINCT 75 * - 83 AS col0
----
-6225

query I rowsort
SELECT 63 * 24
----
1512

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4415
SELECT MIN( + 34 ) DIV + 35 + - - 77
----
77

skipif mysql # not compatible
query I rowsort label-4415
SELECT MIN ( + 34 ) / + 35 + - - 77
----
77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4416
SELECT + 23 DIV COUNT( * ) AS col1
----
23

skipif mysql # not compatible
query I rowsort label-4416
SELECT + 23 / COUNT ( * ) AS col1
----
23

query I rowsort
SELECT ALL - + ( + + 25 ) AS col0
----
-25

onlyif mysql # DIV for integer division: 
query I rowsort label-4418
SELECT - 77 DIV + 96 + + 65 + 67 * + 68 * + 1 * ( - + 68 ) AS col1
----
-309743

skipif mysql # not compatible
query I rowsort label-4418
SELECT - 77 / + 96 + + 65 + 67 * + 68 * + 1 * ( - + 68 ) AS col1
----
-309743

onlyif mysql # DIV for integer division: 
query I rowsort label-4419
SELECT ALL 21 DIV + 73 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4419
SELECT ALL 21 / + 73 AS col2
----
0

query I rowsort
SELECT ALL 38 - + + 78 AS col0
----
-40

query I rowsort
SELECT 92 * 21 AS col0
----
1932

query I rowsort
SELECT ALL 32 * - 81
----
-2592

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4423
SELECT + AVG ( - + CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4423
SELECT + AVG ( - + CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

query I rowsort
SELECT ALL 79 * - + 62
----
-4898

onlyif mysql # aggregate syntax: 
query II rowsort label-4425
SELECT 18 * + 22 * 92 * + + 31 AS col2, SUM( - + 97 )
----
1129392
-97

skipif mysql # not compatible
query II rowsort label-4425
SELECT 18 * + 22 * 92 * + + 31 AS col2, SUM ( - + 97 )
----
1129392
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4426
SELECT ALL - SUM( DISTINCT - CAST( 32 AS SIGNED ) )
----
32

skipif mysql # not compatible
query I rowsort label-4426
SELECT ALL - SUM ( DISTINCT - CAST ( 32 AS INTEGER ) )
----
32

query I rowsort
SELECT 8 * + - 99 AS col0
----
-792

query II rowsort
SELECT 43 * + 2 AS col2, - 49 AS col0
----
86
-49

query I rowsort
SELECT DISTINCT - NULLIF ( + - 2, - 72 ) + - 46 AS col2
----
-44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4430
SELECT ALL COALESCE ( + CAST( NULL AS SIGNED ), 44 ) + 13
----
57

skipif mysql # not compatible
query I rowsort label-4430
SELECT ALL COALESCE ( + CAST ( NULL AS INTEGER ), 44 ) + 13
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-4431
SELECT ALL - 1 + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-4431
SELECT ALL - 1 + COUNT ( * )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4432
SELECT 33 + - 48 + COUNT( ALL COALESCE ( - 46, 15 ) ) + - SUM( - ( 54 ) )
----
40

skipif mysql # not compatible
query I rowsort label-4432
SELECT 33 + - 48 + COUNT ( ALL COALESCE ( - 46, 15 ) ) + - SUM ( - ( 54 ) )
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-4433
SELECT DISTINCT COUNT( * ) + - + 9
----
-8

skipif mysql # not compatible
query I rowsort label-4433
SELECT DISTINCT COUNT ( * ) + - + 9
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-4434
SELECT ALL - COUNT( + 24 )
----
-1

skipif mysql # not compatible
query I rowsort label-4434
SELECT ALL - COUNT ( + 24 )
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-4435
SELECT ALL - 49 DIV - + 64 col2
----
0

skipif mysql # not compatible
query I rowsort label-4435
SELECT ALL - 49 / - + 64 col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4436
SELECT + COUNT( * ) DIV 68 + 99 col1
----
99

skipif mysql # not compatible
query I rowsort label-4436
SELECT + COUNT ( * ) / 68 + 99 col1
----
99

query I rowsort
SELECT DISTINCT + + 33 * - 74
----
-2442

query II rowsort
SELECT - 92 + + 72 AS col2, - 13
----
-20
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-4439
SELECT COUNT( DISTINCT + 15 ) * 66
----
66

skipif mysql # not compatible
query I rowsort label-4439
SELECT COUNT ( DISTINCT + 15 ) * 66
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-4440
SELECT DISTINCT - - 20 * - - 24 * + + 20 - - - COUNT( * ) * + 85 AS col1
----
9515

skipif mysql # not compatible
query I rowsort label-4440
SELECT DISTINCT - - 20 * - - 24 * + + 20 - - - COUNT ( * ) * + 85 AS col1
----
9515

query I rowsort
SELECT - 58 * + 7 * - 12
----
4872

onlyif mysql # aggregate syntax: 
query II rowsort label-4442
SELECT DISTINCT ( - - COUNT( * ) ), 72 AS col1
----
1
72

skipif mysql # not compatible
query II rowsort label-4442
SELECT DISTINCT ( - - COUNT ( * ) ), 72 AS col1
----
1
72

onlyif mysql # aggregate syntax: 
query I rowsort label-4443
SELECT DISTINCT - - 28 * + 38 * + COALESCE ( + + 53, - SUM( DISTINCT - COALESCE ( 98, + 2 ) ) ) AS col2
----
56392

skipif mysql # not compatible
query I rowsort label-4443
SELECT DISTINCT - - 28 * + 38 * + COALESCE ( + + 53, - SUM ( DISTINCT - COALESCE ( 98, + 2 ) ) ) AS col2
----
56392

query I rowsort
SELECT ALL + 6 - 75 AS col2
----
-69

query I rowsort
SELECT - + 26 * + + 42
----
-1092

onlyif mysql # aggregate syntax: 
query I rowsort label-4446
SELECT + SUM( DISTINCT - ( - 19 ) ) AS col1
----
19

skipif mysql # not compatible
query I rowsort label-4446
SELECT + SUM ( DISTINCT - ( - 19 ) ) AS col1
----
19

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4447
SELECT - - 51 - - 77 * NULLIF ( 74, + 95 ) DIV - 86 + 22 + 76 - + 98 * - MAX( - + 76 ) * 41 * - + 82 - + + 96 + + 92 AS col1
----
25040255

skipif mysql # not compatible
query I rowsort label-4447
SELECT - - 51 - - 77 * NULLIF ( 74, + 95 ) / - 86 + 22 + 76 - + 98 * - MAX ( - + 76 ) * 41 * - + 82 - + + 96 + + 92 AS col1
----
25040255

query I rowsort
SELECT + - 87 * - 18
----
1566

query I rowsort
SELECT COALESCE ( 93, - ( - - 41 ) * 74 * 52 * + 73 + NULLIF ( - + NULLIF ( 0, + 73 * + 67 ), - ( - 2 ) ) )
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-4450
SELECT COALESCE ( + COUNT( * ), + 5, 64 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4450
SELECT COALESCE ( + COUNT ( * ), + 5, 64 ) AS col1
----
1

query I rowsort
SELECT DISTINCT 98 * 29 AS col1
----
2842

onlyif mysql # aggregate syntax: 
query I rowsort label-4452
SELECT - COUNT( * ) * 18
----
-18

skipif mysql # not compatible
query I rowsort label-4452
SELECT - COUNT ( * ) * 18
----
-18

onlyif mysql # aggregate syntax: 
query II rowsort label-4453
SELECT DISTINCT + 49 * - + 6 * - - 75, SUM( DISTINCT - + CASE - + 48 WHEN + - 43 * + 67 THEN - 7 END ) * + 25 AS col1
----
-22050
NULL

skipif mysql # not compatible
query II rowsort label-4453
SELECT DISTINCT + 49 * - + 6 * - - 75, SUM ( DISTINCT - + CASE - + 48 WHEN + - 43 * + 67 THEN - 7 END ) * + 25 AS col1
----
-22050
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4454
SELECT ALL + 37, + COUNT( * ) AS col2
----
37
1

skipif mysql # not compatible
query II rowsort label-4454
SELECT ALL + 37, + COUNT ( * ) AS col2
----
37
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4455
SELECT - CASE - 8 WHEN + - 44 * 14 THEN - 97 + - 73 + ( - 39 ) + + - CAST( NULL AS SIGNED ) WHEN 60 THEN - + 53 * - 28 - - 14 + COUNT( * ) ELSE + - 50 END + + + 48 AS col1
----
98

skipif mysql # not compatible
query I rowsort label-4455
SELECT - CASE - 8 WHEN + - 44 * 14 THEN - 97 + - 73 + ( - 39 ) + + - CAST ( NULL AS INTEGER ) WHEN 60 THEN - + 53 * - 28 - - 14 + COUNT ( * ) ELSE + - 50 END + + + 48 AS col1
----
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4456
SELECT + 73 * + NULLIF ( - 66, + MIN( + 27 ) / - - CAST( + 60 AS SIGNED ) + - - 18 ) AS col2
----
-4818

skipif mysql # not compatible
query I rowsort label-4456
SELECT + 73 * + NULLIF ( - 66, + MIN ( + 27 ) / - - CAST ( + 60 AS INTEGER ) + - - 18 ) AS col2
----
-4818

query I rowsort
SELECT COALESCE ( + 48, + 7 )
----
48

onlyif mysql # DIV for integer division: 
query I rowsort label-4458
SELECT + 91 DIV + + 13
----
7

skipif mysql # not compatible
query I rowsort label-4458
SELECT + 91 / + + 13
----
7

query I rowsort
SELECT DISTINCT + 49 * + 70 + + 29 AS col1
----
3459

onlyif mysql # aggregate syntax: 
query I rowsort label-4460
SELECT COALESCE ( 24, - + ( + - CASE + - ( + MIN( 82 ) ) WHEN - 99 THEN NULL WHEN 3 THEN 86 END ), + ( - 55 ) ) * - - ( - 5 ) + + 62 AS col1
----
-58

skipif mysql # not compatible
query I rowsort label-4460
SELECT COALESCE ( 24, - + ( + - CASE + - ( + MIN ( 82 ) ) WHEN - 99 THEN NULL WHEN 3 THEN 86 END ), + ( - 55 ) ) * - - ( - 5 ) + + 62 AS col1
----
-58

query I rowsort
SELECT NULLIF ( + + 10, + ( + + 75 ) ) AS col2
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-4462
SELECT + 43 - + COUNT( * ) AS col1
----
42

skipif mysql # not compatible
query I rowsort label-4462
SELECT + 43 - + COUNT ( * ) AS col1
----
42

query I rowsort
SELECT + 14 + - + 72 AS col0
----
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-4464
SELECT DISTINCT ( 85 ) DIV - 55 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-4464
SELECT DISTINCT ( 85 ) / - 55 AS col1
----
-1

query II rowsort
SELECT ALL + 39 * + 7 + + - 36 AS col1, + 92 AS col1
----
237
92

query I rowsort
SELECT + 7 * 37 AS col0
----
259

onlyif mysql # aggregate syntax: 
query I rowsort label-4467
SELECT COUNT( - 63 )
----
1

skipif mysql # not compatible
query I rowsort label-4467
SELECT COUNT ( - 63 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4468
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + SUM( DISTINCT + CAST( + + 57 AS SIGNED ) ) * - 34 + + 23
----
NULL

skipif mysql # not compatible
query I rowsort label-4468
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + SUM ( DISTINCT + CAST ( + + 57 AS INTEGER ) ) * - 34 + + 23
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4469
SELECT MAX( + ( + 81 ) )
----
81

skipif mysql # not compatible
query I rowsort label-4469
SELECT MAX ( + ( + 81 ) )
----
81

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4470
SELECT - 53 * - CAST( NULL AS SIGNED ) + 87 col2, + 40 AS col2
----
NULL
40

skipif mysql # not compatible
query II rowsort label-4470
SELECT - 53 * - CAST ( NULL AS INTEGER ) + 87 col2, + 40 AS col2
----
NULL
40

onlyif mysql # aggregate syntax: 
query I rowsort label-4471
SELECT COUNT( + 18 )
----
1

skipif mysql # not compatible
query I rowsort label-4471
SELECT COUNT ( + 18 )
----
1

query I rowsort
SELECT + 47 * + 97 AS col0
----
4559

onlyif mysql # aggregate syntax: 
query I rowsort label-4473
SELECT MIN( 29 ) AS col2
----
29

skipif mysql # not compatible
query I rowsort label-4473
SELECT MIN ( 29 ) AS col2
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-4474
SELECT - MAX( + 84 ) * 68
----
-5712

skipif mysql # not compatible
query I rowsort label-4474
SELECT - MAX ( + 84 ) * 68
----
-5712

query I rowsort
SELECT - NULLIF ( 22, + 46 )
----
-22

query I rowsort
SELECT ALL 53 - 96
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-4477
SELECT + COUNT( * ) * 75
----
75

skipif mysql # not compatible
query I rowsort label-4477
SELECT + COUNT ( * ) * 75
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-4478
SELECT + COUNT( * ) - 16
----
-15

skipif mysql # not compatible
query I rowsort label-4478
SELECT + COUNT ( * ) - 16
----
-15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4479
SELECT DISTINCT CASE 34 WHEN 23 THEN NULL WHEN - MAX( DISTINCT CAST( NULL AS SIGNED ) ) THEN COALESCE ( 1, COUNT( * ) * + 64 ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4479
SELECT DISTINCT CASE 34 WHEN 23 THEN NULL WHEN - MAX ( DISTINCT CAST ( NULL AS INTEGER ) ) THEN COALESCE ( 1, COUNT ( * ) * + 64 ) END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4480
SELECT ALL NULLIF ( - COUNT( 11 ), + CASE 12 WHEN + 10 + - 23 THEN NULL WHEN ( 18 ) THEN NULL WHEN - 27 THEN 27 END ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4480
SELECT ALL NULLIF ( - COUNT ( 11 ), + CASE 12 WHEN + 10 + - 23 THEN NULL WHEN ( 18 ) THEN NULL WHEN - 27 THEN 27 END ) AS col0
----
-1

query I rowsort
SELECT ALL 17 - + 26 AS col2
----
-9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4482
SELECT DISTINCT 10 DIV - COUNT( * )
----
-10

skipif mysql # not compatible
query I rowsort label-4482
SELECT DISTINCT 10 / - COUNT ( * )
----
-10

query I rowsort
SELECT + 75 + - 42
----
33

query I rowsort
SELECT - 81 * 75 AS col1
----
-6075

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4485
SELECT + CASE - CAST( NULL AS SIGNED ) WHEN + 60 * + 65 + + 90 THEN 11 + COUNT( * ) ELSE NULL END + + 77 * 72 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4485
SELECT + CASE - CAST ( NULL AS INTEGER ) WHEN + 60 * + 65 + + 90 THEN 11 + COUNT ( * ) ELSE NULL END + + 77 * 72 col2
----
NULL

query I rowsort
SELECT - 57 - 0
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-4487
SELECT ALL + 26 * COUNT( 26 )
----
26

skipif mysql # not compatible
query I rowsort label-4487
SELECT ALL + 26 * COUNT ( 26 )
----
26

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4488
SELECT DISTINCT 75 DIV + COUNT( * ) AS col2
----
75

skipif mysql # not compatible
query I rowsort label-4488
SELECT DISTINCT 75 / + COUNT ( * ) AS col2
----
75

query I rowsort
SELECT ALL - 63 * + 19 AS col0
----
-1197

query I rowsort
SELECT ALL 9 * 13
----
117

query I rowsort
SELECT DISTINCT 68 * - 37 AS col1
----
-2516

query I rowsort
SELECT ALL - ( + 40 ) + + ( ( - 17 ) ) * ( 48 )
----
-856

onlyif mysql # DIV for integer division: 
query I rowsort label-4493
SELECT - 97 + + 9 DIV 16
----
-97

skipif mysql # not compatible
query I rowsort label-4493
SELECT - 97 + + 9 / 16
----
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4494
SELECT ALL - 63 * - CASE 90 * 67 WHEN - CAST( + 13 AS SIGNED ) * COUNT( * ) THEN - CAST( + 41 AS SIGNED ) WHEN 72 + 30 * + ( 63 + 92 / + 23 ) THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4494
SELECT ALL - 63 * - CASE 90 * 67 WHEN - CAST ( + 13 AS INTEGER ) * COUNT ( * ) THEN - CAST ( + 41 AS INTEGER ) WHEN 72 + 30 * + ( 63 + 92 / + 23 ) THEN NULL END AS col1
----
NULL

query I rowsort
SELECT DISTINCT NULLIF ( - 32, 46 ) AS col1
----
-32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4496
SELECT DISTINCT + COUNT( * ) DIV + SUM( ALL ( - 31 ) * 99 ) + 99 AS col1
----
99

skipif mysql # not compatible
query I rowsort label-4496
SELECT DISTINCT + COUNT ( * ) / + SUM ( ALL ( - 31 ) * 99 ) + 99 AS col1
----
99

onlyif mysql # DIV for integer division: 
query I rowsort label-4497
SELECT ALL + 22 DIV + 34 + 70 col0
----
70

skipif mysql # not compatible
query I rowsort label-4497
SELECT ALL + 22 / + 34 + 70 col0
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-4498
SELECT + MAX( DISTINCT - 88 ) AS col0
----
-88

skipif mysql # not compatible
query I rowsort label-4498
SELECT + MAX ( DISTINCT - 88 ) AS col0
----
-88

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4499
SELECT DISTINCT + 89 DIV 33 + - ( + COUNT( * ) + 65 ) AS col0
----
-64

skipif mysql # not compatible
query I rowsort label-4499
SELECT DISTINCT + 89 / 33 + - ( + COUNT ( * ) + 65 ) AS col0
----
-64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4500
SELECT DISTINCT CASE 5 WHEN - CAST( + 91 AS SIGNED ) / COUNT( * ) THEN + 45 WHEN 44 + 73 THEN NULL ELSE NULL END / - 28 + + 58 * + 67 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4500
SELECT DISTINCT CASE 5 WHEN - CAST ( + 91 AS INTEGER ) / COUNT ( * ) THEN + 45 WHEN 44 + 73 THEN NULL ELSE NULL END / - 28 + + 58 * + 67 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4501
SELECT ALL - 56 DIV 83 + + 35 * 66
----
2310

skipif mysql # not compatible
query I rowsort label-4501
SELECT ALL - 56 / 83 + + 35 * 66
----
2310

query I rowsort
SELECT ALL + ( + 35 ) * 32
----
1120

onlyif mysql # aggregate syntax: 
query I rowsort label-4503
SELECT + CASE + 70 WHEN - 90 + + COUNT( * ) THEN NULL WHEN 86 THEN NULL WHEN 50 THEN - 12 * + 5 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4503
SELECT + CASE + 70 WHEN - 90 + + COUNT ( * ) THEN NULL WHEN 86 THEN NULL WHEN 50 THEN - 12 * + 5 END AS col1
----
NULL

query I rowsort
SELECT ( 38 ) col0
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-4505
SELECT ALL + COUNT( - 95 )
----
1

skipif mysql # not compatible
query I rowsort label-4505
SELECT ALL + COUNT ( - 95 )
----
1

query I rowsort
SELECT - 11 * - 7 - 38 AS col0
----
39

query I rowsort
SELECT - + 75 * 86 + 74 AS col2
----
-6376

query I rowsort
SELECT - 95 * - 13
----
1235

query I rowsort
SELECT DISTINCT + + 69 AS col1
----
69

onlyif mysql # DIV for integer division: 
query I rowsort label-4510
SELECT ALL 48 DIV - 52 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4510
SELECT ALL 48 / - 52 AS col1
----
0

query I rowsort
SELECT + - 61 * 20 col2
----
-1220

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4512
SELECT ALL - 50 DIV - COALESCE ( + 3 * COUNT( * ), + 93 ) AS col2
----
16

skipif mysql # not compatible
query I rowsort label-4512
SELECT ALL - 50 / - COALESCE ( + 3 * COUNT ( * ), + 93 ) AS col2
----
16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4513
SELECT DISTINCT - - MAX( DISTINCT 66 ) DIV - ( 2 + COUNT( * ) ) col1
----
-22

skipif mysql # not compatible
query I rowsort label-4513
SELECT DISTINCT - - MAX ( DISTINCT 66 ) / - ( 2 + COUNT ( * ) ) col1
----
-22

query I rowsort
SELECT ALL ( NULLIF ( 40, + 78 ) ) AS col2
----
40

query I rowsort
SELECT + - 12 - 97
----
-109

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4516
SELECT DISTINCT CASE - 21 WHEN - 48 THEN - 63 + CAST( NULL AS SIGNED ) ELSE 13 END AS col2
----
13

skipif mysql # not compatible
query I rowsort label-4516
SELECT DISTINCT CASE - 21 WHEN - 48 THEN - 63 + CAST ( NULL AS INTEGER ) ELSE 13 END AS col2
----
13

query I rowsort
SELECT 69 * - 93 AS col0
----
-6417

query I rowsort
SELECT 12 * - 82
----
-984

query I rowsort
SELECT ALL 37 * 71
----
2627

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4520
SELECT CASE 50 WHEN 31 THEN CASE + 65 WHEN + 70 THEN 45 * CAST( NULL AS DECIMAL ) END * ( 50 * - 41 ) END + CAST( COALESCE ( 3, + 34 ) AS DECIMAL ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4520
SELECT CASE 50 WHEN 31 THEN CASE + 65 WHEN + 70 THEN 45 * CAST ( NULL AS REAL ) END * ( 50 * - 41 ) END + CAST ( COALESCE ( 3, + 34 ) AS REAL ) col0
----
NULL

query I rowsort
SELECT 92 * 38 AS col1
----
3496

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4522
SELECT ALL + SUM( ALL - CAST( 55 AS SIGNED ) )
----
-55

skipif mysql # not compatible
query I rowsort label-4522
SELECT ALL + SUM ( ALL - CAST ( 55 AS INTEGER ) )
----
-55

query I rowsort
SELECT DISTINCT 82 + - 60 AS col2
----
22

query I rowsort
SELECT ALL - 74 + 11
----
-63

onlyif mysql # DIV for integer division: 
query I rowsort label-4525
SELECT ALL + 95 DIV 21 AS col0
----
4

skipif mysql # not compatible
query I rowsort label-4525
SELECT ALL + 95 / 21 AS col0
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-4526
SELECT DISTINCT COUNT( * ) + - 82 + 48
----
-33

skipif mysql # not compatible
query I rowsort label-4526
SELECT DISTINCT COUNT ( * ) + - 82 + 48
----
-33

onlyif mysql # DIV for integer division: 
query I rowsort label-4527
SELECT 21 DIV - 34 col0
----
0

skipif mysql # not compatible
query I rowsort label-4527
SELECT 21 / - 34 col0
----
0

query I rowsort
SELECT ALL 56 + + 69 AS col2
----
125

query I rowsort
SELECT 27 * - 1 col0
----
-27

onlyif mysql # DIV for integer division: 
query I rowsort label-4530
SELECT ALL - 78 * ( + 93 ) DIV 19 AS col0
----
-381

skipif mysql # not compatible
query I rowsort label-4530
SELECT ALL - 78 * ( + 93 ) / 19 AS col0
----
-381

query I rowsort
SELECT ALL 20 + - 75 AS col2
----
-55

query I rowsort
SELECT 17 * + 82
----
1394

query I rowsort
SELECT ALL + 5 + + - 47 - 72 * + ( 23 ) * - 40
----
66198

query I rowsort
SELECT 27 - + 57 + 84 AS col1
----
54

query I rowsort
SELECT ALL NULLIF ( 56, - NULLIF ( 68, 8 + - 89 / + 70 ) * - 92 ) * 1 AS col1
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-4536
SELECT COUNT( * ) * - COUNT( - 75 ) - 97 AS col2
----
-98

skipif mysql # not compatible
query I rowsort label-4536
SELECT COUNT ( * ) * - COUNT ( - 75 ) - 97 AS col2
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-4537
SELECT DISTINCT + COUNT( * ) * + 84 * + 3
----
252

skipif mysql # not compatible
query I rowsort label-4537
SELECT DISTINCT + COUNT ( * ) * + 84 * + 3
----
252

query I rowsort
SELECT 6 * + 2 * 37 + 82
----
526

onlyif mysql # aggregate syntax: 
query I rowsort label-4539
SELECT MAX( - 45 ) - + NULLIF ( ( MIN( 43 ) ) + + 37, - 95 * - 14 ) AS col1
----
-125

skipif mysql # not compatible
query I rowsort label-4539
SELECT MAX ( - 45 ) - + NULLIF ( ( MIN ( 43 ) ) + + 37, - 95 * - 14 ) AS col1
----
-125

query I rowsort
SELECT ALL - + 58 AS col0
----
-58

query I rowsort
SELECT DISTINCT + + 13 * + 0
----
0

query I rowsort
SELECT DISTINCT - ( + - 94 ) - 94 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4543
SELECT ALL - 10 DIV - 85 * + 71
----
0

skipif mysql # not compatible
query I rowsort label-4543
SELECT ALL - 10 / - 85 * + 71
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4544
SELECT - COUNT( + ( + 5 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-4544
SELECT - COUNT ( + ( + 5 ) )
----
-1

query I rowsort
SELECT DISTINCT - 77 * + 26 + + 79
----
-1923

onlyif mysql # aggregate syntax: 
query I rowsort label-4546
SELECT - CASE 51 WHEN 26 THEN COUNT( * ) WHEN + ( + 75 ) THEN NULL WHEN 59 + SUM( - 54 + - CASE - 67 + - NULLIF ( - 64, + 52 ) / 33 WHEN 87 THEN - 46 + 73 END ) THEN 13 END * 4 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4546
SELECT - CASE 51 WHEN 26 THEN COUNT ( * ) WHEN + ( + 75 ) THEN NULL WHEN 59 + SUM ( - 54 + - CASE - 67 + - NULLIF ( - 64, + 52 ) / 33 WHEN 87 THEN - 46 + 73 END ) THEN 13 END * 4 AS col2
----
NULL

query I rowsort
SELECT + ( + 62 ) + 69 * + 41
----
2891

query I rowsort
SELECT 14 + + + 49 + + 95 AS col2
----
158

onlyif mysql # aggregate syntax: 
query I rowsort label-4549
SELECT - + SUM( DISTINCT - - 88 )
----
-88

skipif mysql # not compatible
query I rowsort label-4549
SELECT - + SUM ( DISTINCT - - 88 )
----
-88

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4550
SELECT + COALESCE ( - 89, MAX( 82 ) + - 25 ) DIV COUNT( * )
----
-89

skipif mysql # not compatible
query I rowsort label-4550
SELECT + COALESCE ( - 89, MAX ( 82 ) + - 25 ) / COUNT ( * )
----
-89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4551
SELECT ALL - - CAST( + 11 AS SIGNED ) + COUNT( * ) * + COUNT( * )
----
12

skipif mysql # not compatible
query I rowsort label-4551
SELECT ALL - - CAST ( + 11 AS INTEGER ) + COUNT ( * ) * + COUNT ( * )
----
12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4552
SELECT COUNT( * ) * 27 DIV COUNT( * ) AS col0
----
27

skipif mysql # not compatible
query I rowsort label-4552
SELECT COUNT ( * ) * 27 / COUNT ( * ) AS col0
----
27

query I rowsort
SELECT ALL ( + - 60 ) + - 53 * 89 AS col2
----
-4777

onlyif mysql # DIV for integer division: 
query I rowsort label-4554
SELECT - 40 - - - 52 DIV + 60
----
-40

skipif mysql # not compatible
query I rowsort label-4554
SELECT - 40 - - - 52 / + 60
----
-40

onlyif mysql # DIV for integer division: 
query I rowsort label-4555
SELECT ALL - + 4 DIV 21
----
0

skipif mysql # not compatible
query I rowsort label-4555
SELECT ALL - + 4 / 21
----
0

query I rowsort
SELECT 83 + + + 34 + 37
----
154

query I rowsort
SELECT 92 + - - 73
----
165

onlyif mysql # aggregate syntax: 
query I rowsort label-4558
SELECT COUNT( * ) - + 69 AS col2
----
-68

skipif mysql # not compatible
query I rowsort label-4558
SELECT COUNT ( * ) - + 69 AS col2
----
-68

onlyif mysql # DIV for integer division: 
query II rowsort label-4559
SELECT DISTINCT 47 AS col2, 62 DIV + 47 + + 61
----
47
62

skipif mysql # not compatible
query II rowsort label-4559
SELECT DISTINCT 47 AS col2, 62 / + 47 + + 61
----
47
62

query I rowsort
SELECT 1 + + - 25 AS col2
----
-24

query I rowsort
SELECT 37 - - 54
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-4562
SELECT COUNT( * ) + - - 78 AS col1
----
79

skipif mysql # not compatible
query I rowsort label-4562
SELECT COUNT ( * ) + - - 78 AS col1
----
79

onlyif mysql # DIV for integer division: 
query I rowsort label-4563
SELECT ALL 20 + - 54 DIV 8
----
14

skipif mysql # not compatible
query I rowsort label-4563
SELECT ALL 20 + - 54 / 8
----
14

query I rowsort
SELECT DISTINCT 79 + - + 15
----
64

query I rowsort
SELECT ALL 2 - 55
----
-53

query I rowsort
SELECT 27 + 20 AS col1
----
47

query I rowsort
SELECT ALL 14 * 95 AS col2
----
1330

query II rowsort
SELECT ALL 64 AS col0, ( + - 36 ) col2
----
64
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-4569
SELECT ( + ( COUNT( * ) ) ) + 18 * 82 AS col0
----
1477

skipif mysql # not compatible
query I rowsort label-4569
SELECT ( + ( COUNT ( * ) ) ) + 18 * 82 AS col0
----
1477

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4570
SELECT 10 * 37 / + - CAST( NULL AS SIGNED ) + 89 * 20
----
NULL

skipif mysql # not compatible
query I rowsort label-4570
SELECT 10 * 37 / + - CAST ( NULL AS INTEGER ) + 89 * 20
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4571
SELECT ALL + COUNT( * ) * + + 7 - + 75 AS col1
----
-68

skipif mysql # not compatible
query I rowsort label-4571
SELECT ALL + COUNT ( * ) * + + 7 - + 75 AS col1
----
-68

query I rowsort
SELECT 52 * - - ( + 52 )
----
2704

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4573
SELECT + 41 DIV + 89 + + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-4573
SELECT + 41 / + 89 + + COUNT ( * )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4574
SELECT MAX( - - 35 )
----
35

skipif mysql # not compatible
query I rowsort label-4574
SELECT MAX ( - - 35 )
----
35

onlyif mysql # DIV for integer division: 
query I rowsort label-4575
SELECT 74 DIV + + 44 + - ( + 3 ) AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-4575
SELECT 74 / + + 44 + - ( + 3 ) AS col0
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-4576
SELECT COUNT( * ) * + 56 AS col0
----
56

skipif mysql # not compatible
query I rowsort label-4576
SELECT COUNT ( * ) * + 56 AS col0
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-4577
SELECT + MIN( + 17 ) AS col1
----
17

skipif mysql # not compatible
query I rowsort label-4577
SELECT + MIN ( + 17 ) AS col1
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-4578
SELECT DISTINCT MIN( ALL 50 ) * - 54 * - COUNT( * )
----
2700

skipif mysql # not compatible
query I rowsort label-4578
SELECT DISTINCT MIN ( ALL 50 ) * - 54 * - COUNT ( * )
----
2700

query I rowsort
SELECT ALL + + 11 * 32 AS col1
----
352

onlyif mysql # DIV for integer division: 
query I rowsort label-4580
SELECT DISTINCT - 17 DIV + 47 * 86 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4580
SELECT DISTINCT - 17 / + 47 * 86 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4581
SELECT + + MAX( + + 12 ) * 57 * + CASE + 91 * + 40 WHEN 89 * - COUNT( * ) THEN NULL ELSE 27 END
----
18468

skipif mysql # not compatible
query I rowsort label-4581
SELECT + + MAX ( + + 12 ) * 57 * + CASE + 91 * + 40 WHEN 89 * - COUNT ( * ) THEN NULL ELSE 27 END
----
18468

query I rowsort
SELECT - + 53 + + 39 col0
----
-14

query I rowsort
SELECT ALL - - NULLIF ( + 22, + 12 ) * 73
----
1606

onlyif mysql # aggregate syntax: 
query I rowsort label-4584
SELECT + + COUNT( * ) - - CASE + 42 WHEN + 86 * - AVG ( ALL + 65 / + 81 ) THEN COUNT( * ) * + 97 ELSE + COUNT( * ) END
----
2

skipif mysql # not compatible
query I rowsort label-4584
SELECT + + COUNT ( * ) - - CASE + 42 WHEN + 86 * - AVG ( ALL + 65 / + 81 ) THEN COUNT ( * ) * + 97 ELSE + COUNT ( * ) END
----
2

query I rowsort
SELECT + ( - + ( 17 ) ) col1
----
-17

query I rowsort
SELECT - 58 + + - 77 - + 59 col0
----
-194

query I rowsort
SELECT DISTINCT - 65 + + 45 * + 27
----
1150

onlyif mysql # aggregate syntax: 
query I rowsort label-4588
SELECT ALL + - 31 + + + 86 + + COUNT( DISTINCT - 32 ) AS col1
----
56

skipif mysql # not compatible
query I rowsort label-4588
SELECT ALL + - 31 + + + 86 + + COUNT ( DISTINCT - 32 ) AS col1
----
56

query I rowsort
SELECT DISTINCT + + 81 AS col1
----
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4590
SELECT ALL - COUNT( * ) + + + CAST( + 70 AS SIGNED ) AS col0
----
69

skipif mysql # not compatible
query I rowsort label-4590
SELECT ALL - COUNT ( * ) + + + CAST ( + 70 AS INTEGER ) AS col0
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-4591
SELECT - - 27 + - ( - MIN( 13 ) )
----
40

skipif mysql # not compatible
query I rowsort label-4591
SELECT - - 27 + - ( - MIN ( 13 ) )
----
40

onlyif mysql # aggregate syntax: 
query II rowsort label-4592
SELECT - - 21, COUNT( + + 46 ) AS col2
----
21
1

skipif mysql # not compatible
query II rowsort label-4592
SELECT - - 21, COUNT ( + + 46 ) AS col2
----
21
1

query I rowsort
SELECT DISTINCT - + 2 + - 7 AS col1
----
-9

onlyif mysql # aggregate syntax: 
query II rowsort label-4594
SELECT + COUNT( * ) col2, 39
----
1
39

skipif mysql # not compatible
query II rowsort label-4594
SELECT + COUNT ( * ) col2, 39
----
1
39

query I rowsort
SELECT ALL - 71 + - 8 * + + ( 62 )
----
-567

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4596
SELECT - + CAST( NULLIF ( - 91, - 98 ) AS SIGNED ) * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4596
SELECT - + CAST ( NULLIF ( - 91, - 98 ) AS INTEGER ) * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4597
SELECT SUM( + 35 ) AS col0
----
35

skipif mysql # not compatible
query I rowsort label-4597
SELECT SUM ( + 35 ) AS col0
----
35

query I rowsort
SELECT ALL ( + 27 ) AS col1
----
27

query I rowsort
SELECT DISTINCT COALESCE ( - ( + 62 ), + 49 * 65, 78 * 93 + 91, 25 * 34 )
----
-62

onlyif mysql # DIV for integer division: 
query I rowsort label-4600
SELECT - 8 DIV + 99 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4600
SELECT - 8 / + 99 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4601
SELECT DISTINCT NULLIF ( - 76, - 1 / + COUNT( * ) + + 40 * 29 ) * + CASE 58 WHEN COUNT( * ) + CAST( NULL AS SIGNED ) * 76 THEN + COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-4601
SELECT DISTINCT NULLIF ( - 76, - 1 / + COUNT ( * ) + + 40 * 29 ) * + CASE 58 WHEN COUNT ( * ) + CAST ( NULL AS INTEGER ) * 76 THEN + COUNT ( * ) END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4602
SELECT DISTINCT + 60 DIV CAST( 18 AS SIGNED ) AS col1
----
3

skipif mysql # not compatible
query I rowsort label-4602
SELECT DISTINCT + 60 / CAST ( 18 AS INTEGER ) AS col1
----
3

query I rowsort
SELECT - 96 * + + 21 AS col0
----
-2016

query I rowsort
SELECT - 55 * 41
----
-2255

query I rowsort
SELECT - 72 - - 41 AS col1
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-4606
SELECT - CASE + 19 WHEN + + 92 THEN 85 * COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4606
SELECT - CASE + 19 WHEN + + 92 THEN 85 * COUNT ( * ) ELSE NULL END
----
NULL

query I rowsort
SELECT + 54 * 99
----
5346

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4608
SELECT ALL 60 * - + CAST( - 17 AS SIGNED )
----
1020

skipif mysql # not compatible
query I rowsort label-4608
SELECT ALL 60 * - + CAST ( - 17 AS INTEGER )
----
1020

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4609
SELECT + 25 + COUNT( * ) DIV CAST( + - 16 AS SIGNED ) + - MIN( ALL ( ( ( 32 ) ) ) )
----
-7

skipif mysql # not compatible
query I rowsort label-4609
SELECT + 25 + COUNT ( * ) / CAST ( + - 16 AS INTEGER ) + - MIN ( ALL ( ( ( 32 ) ) ) )
----
-7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4610
SELECT - MIN( - CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4610
SELECT - MIN ( - CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

query I rowsort
SELECT ALL - 70 * - 22 * - - 67 AS col2
----
103180

onlyif mysql # aggregate syntax: 
query I rowsort label-4612
SELECT + COUNT( * ) * + 53 - - + 57
----
110

skipif mysql # not compatible
query I rowsort label-4612
SELECT + COUNT ( * ) * + 53 - - + 57
----
110

query I rowsort
SELECT ALL + + COALESCE ( + 97, 87, - - 75 + 12 * 19 )
----
97

query I rowsort
SELECT DISTINCT + + ( + 32 )
----
32

onlyif mysql # DIV for integer division: 
query I rowsort label-4615
SELECT + - 88 DIV + NULLIF ( - 20, 96 * 66 ) + - 60 * 47 AS col2
----
-2816

skipif mysql # not compatible
query I rowsort label-4615
SELECT + - 88 / + NULLIF ( - 20, 96 * 66 ) + - 60 * 47 AS col2
----
-2816

query I rowsort
SELECT + - 82 * - - 48 AS col2
----
-3936

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4617
SELECT + SUM( ALL - CAST( NULL AS SIGNED ) ) AS col2, COUNT( + CAST( NULL AS SIGNED ) ) * 34 col2
----
NULL
0

skipif mysql # not compatible
query II rowsort label-4617
SELECT + SUM ( ALL - CAST ( NULL AS INTEGER ) ) AS col2, COUNT ( + CAST ( NULL AS INTEGER ) ) * 34 col2
----
NULL
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4618
SELECT + 21 * + COUNT( * ) + - 89 + + - 57 + 50 * ( - 45 - - CAST( NULL AS DECIMAL ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4618
SELECT + 21 * + COUNT ( * ) + - 89 + + - 57 + 50 * ( - 45 - - CAST ( NULL AS REAL ) ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4619
SELECT ALL 3 DIV 80
----
0

skipif mysql # not compatible
query I rowsort label-4619
SELECT ALL 3 / 80
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4620
SELECT + 73 DIV - 84 - - 26
----
26

skipif mysql # not compatible
query I rowsort label-4620
SELECT + 73 / - 84 - - 26
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-4621
SELECT ALL 25 * + + ( + - 78 ) + + - 38 + - 73 * + COUNT( * ) * COALESCE ( + 76, + COALESCE ( 81, + 82, + COUNT( * ) ) ) + 79 AS col2
----
-7457

skipif mysql # not compatible
query I rowsort label-4621
SELECT ALL 25 * + + ( + - 78 ) + + - 38 + - 73 * + COUNT ( * ) * COALESCE ( + 76, + COALESCE ( 81, + 82, + COUNT ( * ) ) ) + 79 AS col2
----
-7457

query I rowsort
SELECT ALL + ( 84 ) * 24 AS col2
----
2016

query I rowsort
SELECT + - ( + 40 ) AS col0
----
-40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4624
SELECT ALL - 89 * + COUNT( * ) - 75 + 91 * COUNT( * ) DIV 82 + + 90 AS col0
----
-73

skipif mysql # not compatible
query I rowsort label-4624
SELECT ALL - 89 * + COUNT ( * ) - 75 + 91 * COUNT ( * ) / 82 + + 90 AS col0
----
-73

query I rowsort
SELECT - ( + ( - 80 ) )
----
80

query I rowsort
SELECT + 2 + + - 24 AS col0
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-4627
SELECT - 32 - - + ( COUNT( * ) ) AS col2
----
-31

skipif mysql # not compatible
query I rowsort label-4627
SELECT - 32 - - + ( COUNT ( * ) ) AS col2
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-4628
SELECT - 67 * ( - 34 ) * - MAX( + 74 ) AS col0
----
-168572

skipif mysql # not compatible
query I rowsort label-4628
SELECT - 67 * ( - 34 ) * - MAX ( + 74 ) AS col0
----
-168572

query I rowsort
SELECT ALL + 46 * + 21 AS col2
----
966

query I rowsort
SELECT - 85 + - + NULLIF ( 49, + 47 * + 3 ) AS col1
----
-134

onlyif mysql # DIV for integer division: 
query I rowsort label-4631
SELECT ALL + ( - + 19 ) - 19 * - 42 DIV - 2
----
-418

skipif mysql # not compatible
query I rowsort label-4631
SELECT ALL + ( - + 19 ) - 19 * - 42 / - 2
----
-418

query I rowsort
SELECT + 97 * - 16
----
-1552

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4633
SELECT - 61 + - COUNT( DISTINCT - CAST( NULL AS SIGNED ) ) * 52
----
-61

skipif mysql # not compatible
query I rowsort label-4633
SELECT - 61 + - COUNT ( DISTINCT - CAST ( NULL AS INTEGER ) ) * 52
----
-61

query I rowsort
SELECT - 73 + - 44
----
-117

query I rowsort
SELECT - 31 * + 21 AS col1
----
-651

onlyif mysql # aggregate syntax: 
query I rowsort label-4636
SELECT - COUNT( * ) * + + 71 * + - 48 AS col0
----
3408

skipif mysql # not compatible
query I rowsort label-4636
SELECT - COUNT ( * ) * + + 71 * + - 48 AS col0
----
3408

query I rowsort
SELECT - 49 + 82 AS col0
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-4638
SELECT - SUM( - 28 ) - - + 64 * - 57
----
-3620

skipif mysql # not compatible
query I rowsort label-4638
SELECT - SUM ( - 28 ) - - + 64 * - 57
----
-3620

query I rowsort
SELECT - 25 + - 49 col2
----
-74

query I rowsort
SELECT ALL COALESCE ( + 91, + 5 )
----
91

onlyif mysql # DIV for integer division: 
query I rowsort label-4641
SELECT DISTINCT + ( - 42 ) * 0 DIV - 9
----
0

skipif mysql # not compatible
query I rowsort label-4641
SELECT DISTINCT + ( - 42 ) * 0 / - 9
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4642
SELECT - COUNT( * ) + 42 + - + 7
----
34

skipif mysql # not compatible
query I rowsort label-4642
SELECT - COUNT ( * ) + 42 + - + 7
----
34

onlyif mysql # DIV for integer division: 
query I rowsort label-4643
SELECT ALL + 11 DIV - - 76 * + 64
----
0

skipif mysql # not compatible
query I rowsort label-4643
SELECT ALL + 11 / - - 76 * + 64
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4644
SELECT - MIN( - 34 ) AS col1
----
34

skipif mysql # not compatible
query I rowsort label-4644
SELECT - MIN ( - 34 ) AS col1
----
34

query I rowsort
SELECT ALL ( + - 86 )
----
-86

query I rowsort
SELECT - 95 + + 56
----
-39

onlyif mysql # DIV for integer division: 
query I rowsort label-4647
SELECT ALL + 11 DIV + + 9
----
1

skipif mysql # not compatible
query I rowsort label-4647
SELECT ALL + 11 / + + 9
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4648
SELECT 41 DIV - 93 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4648
SELECT 41 / - 93 AS col0
----
0

query I rowsort
SELECT + CASE 71 WHEN - 79 THEN + - 77 END + + ( - 78 ) * 3
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4650
SELECT ALL - 31 + - 66 + - CAST( NULL AS SIGNED ) * - 87 + + 17 * 45
----
NULL

skipif mysql # not compatible
query I rowsort label-4650
SELECT ALL - 31 + - 66 + - CAST ( NULL AS INTEGER ) * - 87 + + 17 * 45
----
NULL

query II rowsort
SELECT + - 82 AS col2, - 51 * + 32
----
-82
-1632

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4652
SELECT ALL + COUNT( * ) + + - SUM( - CAST( - + 90 AS SIGNED ) ) AS col0
----
-89

skipif mysql # not compatible
query I rowsort label-4652
SELECT ALL + COUNT ( * ) + + - SUM ( - CAST ( - + 90 AS INTEGER ) ) AS col0
----
-89

onlyif mysql # aggregate syntax: 
query II rowsort label-4653
SELECT ALL - + COUNT( * ), 32 + COUNT( * ) AS col1
----
-1
33

skipif mysql # not compatible
query II rowsort label-4653
SELECT ALL - + COUNT ( * ), 32 + COUNT ( * ) AS col1
----
-1
33

onlyif mysql # aggregate syntax: 
query I rowsort label-4654
SELECT - - 35 * COUNT( * ) + COUNT( - ( + 34 ) ) AS col2
----
36

skipif mysql # not compatible
query I rowsort label-4654
SELECT - - 35 * COUNT ( * ) + COUNT ( - ( + 34 ) ) AS col2
----
36

query II rowsort
SELECT DISTINCT 76 + - ( + - 9 ) AS col0, ( - - ( 98 ) ) + - 37
----
85
61

onlyif mysql # aggregate syntax: 
query I rowsort label-4656
SELECT - 20 + COUNT( * )
----
-19

skipif mysql # not compatible
query I rowsort label-4656
SELECT - 20 + COUNT ( * )
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-4657
SELECT CASE - + NULLIF ( + ( - 20 ), - 93 * - COALESCE ( 25, - 14 + 29 ) - 47 ) WHEN - 73 THEN 47 * COUNT( * ) + 59 END / + 38 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4657
SELECT CASE - + NULLIF ( + ( - 20 ), - 93 * - COALESCE ( 25, - 14 + 29 ) - 47 ) WHEN - 73 THEN 47 * COUNT ( * ) + 59 END / + 38 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4658
SELECT - SUM( + ( - + 44 ) ) * + - COUNT( * ) AS col2
----
-44

skipif mysql # not compatible
query I rowsort label-4658
SELECT - SUM ( + ( - + 44 ) ) * + - COUNT ( * ) AS col2
----
-44

query II rowsort
SELECT ALL - - 3 col0, + 38
----
3
38

onlyif mysql # DIV for integer division: 
query I rowsort label-4660
SELECT - 78 - - + CASE + - 96 WHEN - + 47 * + + 91 THEN - 69 - 74 WHEN + 85 THEN 31 DIV 8 ELSE 30 + + 72 END
----
24

skipif mysql # not compatible
query I rowsort label-4660
SELECT - 78 - - + CASE + - 96 WHEN - + 47 * + + 91 THEN - 69 - 74 WHEN + 85 THEN 31 / 8 ELSE 30 + + 72 END
----
24

query I rowsort
SELECT DISTINCT + 64 - - 83 * 6
----
562

query I rowsort
SELECT 61 * + NULLIF ( - 1, + 99 - - 88 / + 73 ) col1
----
-61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4663
SELECT ALL COUNT( DISTINCT CAST( NULL AS SIGNED ) ) * + ( + 3 ) + 89 * - 99 + + 93 AS col1
----
-8718

skipif mysql # not compatible
query I rowsort label-4663
SELECT ALL COUNT ( DISTINCT CAST ( NULL AS INTEGER ) ) * + ( + 3 ) + 89 * - 99 + + 93 AS col1
----
-8718

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4664
SELECT ALL - 56 AS col2, CAST( NULL AS SIGNED )
----
-56
NULL

skipif mysql # not compatible
query II rowsort label-4664
SELECT ALL - 56 AS col2, CAST ( NULL AS INTEGER )
----
-56
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4665
SELECT DISTINCT CASE - + 63 WHEN - 72 * + 78 + + - 32 THEN + COUNT( * ) * 45 - 56 WHEN - NULLIF ( + 52, 3 ) THEN 24 * + COUNT( 75 ) END * 61 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4665
SELECT DISTINCT CASE - + 63 WHEN - 72 * + 78 + + - 32 THEN + COUNT ( * ) * 45 - 56 WHEN - NULLIF ( + 52, 3 ) THEN 24 * + COUNT ( 75 ) END * 61 AS col0
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4666
SELECT CAST( NULL AS DECIMAL ) / - - AVG ( + + 26 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4666
SELECT CAST ( NULL AS REAL ) / - - AVG ( + + 26 )
----
NULL

query I rowsort
SELECT ALL ( ( - 54 ) ) * + 12 + - ( + + 24 )
----
-672

query II rowsort
SELECT - 5, 82 col2
----
-5
82

query II rowsort
SELECT - 8, + 99 AS col0
----
-8
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4670
SELECT 62 + + COUNT( * )
----
63

skipif mysql # not compatible
query I rowsort label-4670
SELECT 62 + + COUNT ( * )
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-4671
SELECT 65 * - SUM( DISTINCT - 91 ) AS col1
----
5915

skipif mysql # not compatible
query I rowsort label-4671
SELECT 65 * - SUM ( DISTINCT - 91 ) AS col1
----
5915

onlyif mysql # aggregate syntax: 
query II rowsort label-4672
SELECT DISTINCT 13, 62 + - SUM( - 99 ) AS col2
----
13
161

skipif mysql # not compatible
query II rowsort label-4672
SELECT DISTINCT 13, 62 + - SUM ( - 99 ) AS col2
----
13
161

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4673
SELECT DISTINCT 66 AS col0, 9 * - 9 + - 54 + - 68 * - 7 / + 62 - - MIN( ALL CAST( NULL AS SIGNED ) + 26 ) * 58
----
66
NULL

skipif mysql # not compatible
query II rowsort label-4673
SELECT DISTINCT 66 AS col0, 9 * - 9 + - 54 + - 68 * - 7 / + 62 - - MIN ( ALL CAST ( NULL AS INTEGER ) + 26 ) * 58
----
66
NULL

query I rowsort
SELECT 55 * + 59
----
3245

onlyif mysql # aggregate syntax: 
query I rowsort label-4675
SELECT ALL ( + 69 ) + COUNT( * )
----
70

skipif mysql # not compatible
query I rowsort label-4675
SELECT ALL ( + 69 ) + COUNT ( * )
----
70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-4676
SELECT ALL - 52 + - COUNT( * ) DIV + - NULLIF ( 2, - AVG ( DISTINCT - NULLIF ( CAST( 34 AS DECIMAL ), 42 + + CAST( NULL AS SIGNED ) ) ) * + MIN( ALL + NULLIF ( - ( CASE - 6 WHEN 29 * - 76 THEN NULL WHEN + 12 THEN - ( - 81 ) * ( + 46 ) ELSE NULL END ), + 42 ) * - 68 - 20 ) + - 5 * COUNT( * ) ) AS col1
----
-52

skipif mysql # not compatible
query I rowsort label-4676
SELECT ALL - 52 + - COUNT ( * ) / + - NULLIF ( 2, - AVG ( DISTINCT - NULLIF ( CAST ( 34 AS REAL ), 42 + + CAST ( NULL AS INTEGER ) ) ) * + MIN ( ALL + NULLIF ( - ( CASE - 6 WHEN 29 * - 76 THEN NULL WHEN + 12 THEN - ( - 81 ) * ( + 46 ) ELSE NULL END ), + 42 ) * - 68 - 20 ) + - 5 * COUNT ( * ) ) AS col1
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-4677
SELECT ALL - 80 + COUNT( * ) AS col1
----
-79

skipif mysql # not compatible
query I rowsort label-4677
SELECT ALL - 80 + COUNT ( * ) AS col1
----
-79

query II rowsort
SELECT 89, 55 AS col0
----
89
55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4679
SELECT CAST( NULL AS SIGNED ) / - 58 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4679
SELECT CAST ( NULL AS INTEGER ) / - 58 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4680
SELECT CAST( - 86 AS SIGNED ) - + 94 + + 25 DIV + + 39 AS col1
----
-180

skipif mysql # not compatible
query I rowsort label-4680
SELECT CAST ( - 86 AS INTEGER ) - + 94 + + 25 / + + 39 AS col1
----
-180

query II rowsort
SELECT - 86 AS col1, + 67 AS col1
----
-86
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4682
SELECT DISTINCT + 7 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4682
SELECT DISTINCT + 7 * - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL - 2 + 14
----
12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4684
SELECT - NULLIF ( CASE + - 14 WHEN + 68 THEN 52 + - - 46 WHEN COALESCE ( 83, 43, - CAST( 24 AS SIGNED ) * + 97 ) THEN NULL WHEN - 59 * - 44 THEN NULL ELSE NULL END, + 92 * - 98 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4684
SELECT - NULLIF ( CASE + - 14 WHEN + 68 THEN 52 + - - 46 WHEN COALESCE ( 83, 43, - CAST ( 24 AS INTEGER ) * + 97 ) THEN NULL WHEN - 59 * - 44 THEN NULL ELSE NULL END, + 92 * - 98 )
----
NULL

query I rowsort
SELECT + 46 + - 81
----
-35

query II rowsort
SELECT DISTINCT + 63, 94 col0
----
63
94

query I rowsort
SELECT DISTINCT + 0 * - 25
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4688
SELECT - CAST( + + 28 AS SIGNED ) col1, + COALESCE ( + - NULLIF ( + 24, + - 0 - + 27 / + ( - 90 ) ), 73 * 63 - 34 ) - + 0
----
-28
-24

skipif mysql # not compatible
query II rowsort label-4688
SELECT - CAST ( + + 28 AS INTEGER ) col1, + COALESCE ( + - NULLIF ( + 24, + - 0 - + 27 / + ( - 90 ) ), 73 * 63 - 34 ) - + 0
----
-28
-24

query II rowsort
SELECT DISTINCT + 8 + 59, - 54 AS col2
----
67
-54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4690
SELECT ALL + - CASE WHEN 98 >= 19 * 23 THEN - + COALESCE ( CASE 26 WHEN 33 THEN ( + COALESCE ( CAST( 52 AS SIGNED ), 4, - 77 + 64 ) ) + + 7 * 34 WHEN ( + CASE + CAST( 31 AS SIGNED ) WHEN 1 THEN - 83 WHEN 65 THEN NULL END ) + 82 THEN NULL ELSE NULL END, 1 ) WHEN NOT NULL IS NOT NULL THEN NULL ELSE 85 END + 42
----
NULL

skipif mysql # not compatible
query I rowsort label-4690
SELECT ALL + - CASE WHEN 98 >= 19 * 23 THEN - + COALESCE ( CASE 26 WHEN 33 THEN ( + COALESCE ( CAST ( 52 AS INTEGER ), 4, - 77 + 64 ) ) + + 7 * 34 WHEN ( + CASE + CAST ( 31 AS INTEGER ) WHEN 1 THEN - 83 WHEN 65 THEN NULL END ) + 82 THEN NULL ELSE NULL END, 1 ) WHEN NOT NULL IS NOT NULL THEN NULL ELSE 85 END + 42
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4691
SELECT - 9 + - 89 - + COUNT( * ) AS col1
----
-99

skipif mysql # not compatible
query I rowsort label-4691
SELECT - 9 + - 89 - + COUNT ( * ) AS col1
----
-99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4692
SELECT 7 DIV + 76 + + ( - 14 ) - - 9 + - ( COUNT( * ) ) DIV 40
----
-5

skipif mysql # not compatible
query I rowsort label-4692
SELECT 7 / + 76 + + ( - 14 ) - - 9 + - ( COUNT ( * ) ) / 40
----
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-4693
SELECT + + 16 * - 59 + 59 + + 9 + + - 92 DIV + - 26 AS col1
----
-873

skipif mysql # not compatible
query I rowsort label-4693
SELECT + + 16 * - 59 + 59 + + 9 + + - 92 / + - 26 AS col1
----
-873

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4694
SELECT + CAST( + 99 AS SIGNED )
----
99

skipif mysql # not compatible
query I rowsort label-4694
SELECT + CAST ( + 99 AS INTEGER )
----
99

query I rowsort
SELECT 76 * + - 37
----
-2812

onlyif mysql # DIV for integer division: 
query II rowsort label-4696
SELECT 32 AS col1, + 28 DIV + - 27 col0
----
32
-1

skipif mysql # not compatible
query II rowsort label-4696
SELECT 32 AS col1, + 28 / + - 27 col0
----
32
-1

query I rowsort
SELECT DISTINCT + 73 * 2 AS col0
----
146

onlyif mysql # aggregate syntax: 
query I rowsort label-4698
SELECT - COUNT( * ) * 27 + + 22
----
-5

skipif mysql # not compatible
query I rowsort label-4698
SELECT - COUNT ( * ) * 27 + + 22
----
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4699
SELECT COUNT( * ) * - 87 * - ( + CASE - 5 WHEN - 30 + + - ( 89 ) * + CAST( + 16 AS SIGNED ) THEN + MAX( + 31 ) ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-4699
SELECT COUNT ( * ) * - 87 * - ( + CASE - 5 WHEN - 30 + + - ( 89 ) * + CAST ( + 16 AS INTEGER ) THEN + MAX ( + 31 ) ELSE NULL END )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4700
SELECT - 69 * + + COUNT( * ) + - 46 * CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4700
SELECT - 69 * + + COUNT ( * ) + - 46 * CAST ( NULL AS REAL ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4701
SELECT + MIN( 74 )
----
74

skipif mysql # not compatible
query I rowsort label-4701
SELECT + MIN ( 74 )
----
74

query I rowsort
SELECT 26 + - ( - + 10 )
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-4703
SELECT + SUM( ALL + - 98 ) AS col1
----
-98

skipif mysql # not compatible
query I rowsort label-4703
SELECT + SUM ( ALL + - 98 ) AS col1
----
-98

onlyif mysql # DIV for integer division: 
query I rowsort label-4704
SELECT 65 DIV - 87 * + ( + - 27 ) col2
----
0

skipif mysql # not compatible
query I rowsort label-4704
SELECT 65 / - 87 * + ( + - 27 ) col2
----
0

query I rowsort
SELECT 36 + + ( + - 75 )
----
-39

query I rowsort
SELECT ALL 37 * 57
----
2109

onlyif mysql # aggregate syntax: 
query I rowsort label-4707
SELECT DISTINCT COALESCE ( - + COUNT( * ), + 99, - 61 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-4707
SELECT DISTINCT COALESCE ( - + COUNT ( * ), + 99, - 61 ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4708
SELECT ALL COALESCE ( + SUM( DISTINCT - + ( - 65 ) ), - + MAX( DISTINCT - - 30 ), + - ( - 87 ) * 78 ) + ( 45 ) col0
----
110

skipif mysql # not compatible
query I rowsort label-4708
SELECT ALL COALESCE ( + SUM ( DISTINCT - + ( - 65 ) ), - + MAX ( DISTINCT - - 30 ), + - ( - 87 ) * 78 ) + ( 45 ) col0
----
110

query I rowsort
SELECT DISTINCT 31 * 26
----
806

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4710
SELECT ALL 90 + + + COUNT( ( + 58 ) ) + + 39 + + 18 * ( + 46 ) DIV 66
----
142

skipif mysql # not compatible
query I rowsort label-4710
SELECT ALL 90 + + + COUNT ( ( + 58 ) ) + + 39 + + 18 * ( + 46 ) / 66
----
142

query II rowsort
SELECT ALL 1 * + 62, 17 * - 96 AS col2
----
62
-1632

query I rowsort
SELECT + 66 * - COALESCE ( - 77, + 95 ) AS col1
----
5082

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4713
SELECT - MIN( ALL - CAST( + 97 AS SIGNED ) ) AS col0
----
97

skipif mysql # not compatible
query I rowsort label-4713
SELECT - MIN ( ALL - CAST ( + 97 AS INTEGER ) ) AS col0
----
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4714
SELECT DISTINCT 95 + 34 + - CAST( NULL AS SIGNED ) * - + 62
----
NULL

skipif mysql # not compatible
query I rowsort label-4714
SELECT DISTINCT 95 + 34 + - CAST ( NULL AS INTEGER ) * - + 62
----
NULL

query I rowsort
SELECT + 60 + 39 AS col2
----
99

onlyif mysql # aggregate syntax: 
query II rowsort label-4716
SELECT ALL 30 + + ( + COUNT( * ) ), 81 * + 29 col0
----
31
2349

skipif mysql # not compatible
query II rowsort label-4716
SELECT ALL 30 + + ( + COUNT ( * ) ), 81 * + 29 col0
----
31
2349

onlyif mysql # aggregate syntax: 
query I rowsort label-4717
SELECT DISTINCT 95 * 36 + + 72 + CASE + + CASE 73 WHEN - 6 * + 53 THEN NULL WHEN 2 THEN NULL WHEN - 31 * + 75 THEN 56 * 5 ELSE NULL END WHEN - 33 THEN NULL WHEN - 6 * + 53 THEN NULL WHEN 51 + - CASE WHEN NOT 90 IS NULL THEN NULL WHEN 60 * + SUM( 43 * + 61 ) > ( 42 + - 49 ) THEN + 42 ELSE - COUNT( * ) END THEN NULL ELSE - 1 * 94 - 38 END * + 45 AS col0
----
-2448

skipif mysql # not compatible
query I rowsort label-4717
SELECT DISTINCT 95 * 36 + + 72 + CASE + + CASE 73 WHEN - 6 * + 53 THEN NULL WHEN 2 THEN NULL WHEN - 31 * + 75 THEN 56 * 5 ELSE NULL END WHEN - 33 THEN NULL WHEN - 6 * + 53 THEN NULL WHEN 51 + - CASE WHEN NOT 90 IS NULL THEN NULL WHEN 60 * + SUM ( 43 * + 61 ) > ( 42 + - 49 ) THEN + 42 ELSE - COUNT ( * ) END THEN NULL ELSE - 1 * 94 - 38 END * + 45 AS col0
----
-2448

onlyif mysql # aggregate syntax: 
query I rowsort label-4718
SELECT ALL - + 97 + + + 0 + + - COUNT( * ) * 7 AS col0
----
-104

skipif mysql # not compatible
query I rowsort label-4718
SELECT ALL - + 97 + + + 0 + + - COUNT ( * ) * 7 AS col0
----
-104

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4719
SELECT DISTINCT + CASE WHEN CAST( NULL AS SIGNED ) IS NULL THEN + + 34 * + COUNT( * ) ELSE NULL END col1
----
34

skipif mysql # not compatible
query I rowsort label-4719
SELECT DISTINCT + CASE WHEN CAST ( NULL AS INTEGER ) IS NULL THEN + + 34 * + COUNT ( * ) ELSE NULL END col1
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-4720
SELECT DISTINCT + COUNT( * ) * + 30 - - COUNT( * )
----
31

skipif mysql # not compatible
query I rowsort label-4720
SELECT DISTINCT + COUNT ( * ) * + 30 - - COUNT ( * )
----
31

query I rowsort
SELECT - ( + 42 ) + 71 AS col2
----
29

query I rowsort
SELECT - 80 + - 20
----
-100

query I rowsort
SELECT ALL - ( - + 13 ) * 62
----
806

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4724
SELECT DISTINCT CAST( NULL AS SIGNED ) * + 95 AS col2, - 73
----
NULL
-73

skipif mysql # not compatible
query II rowsort label-4724
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + 95 AS col2, - 73
----
NULL
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-4725
SELECT ALL - + COUNT( DISTINCT + 31 ) * - 75 col2
----
75

skipif mysql # not compatible
query I rowsort label-4725
SELECT ALL - + COUNT ( DISTINCT + 31 ) * - 75 col2
----
75

onlyif mysql # aggregate syntax: 
query III rowsort label-4726
SELECT MIN( ALL + 46 ) col0, 84 + - 16 * - + 86 AS col0, - ( 41 ) * + 40
----
46
1460
-1640

skipif mysql # not compatible
query III rowsort label-4726
SELECT MIN ( ALL + 46 ) col0, 84 + - 16 * - + 86 AS col0, - ( 41 ) * + 40
----
46
1460
-1640

onlyif mysql # DIV for integer division: 
query I rowsort label-4727
SELECT - 21 DIV - 13 + 70 + - 44 DIV + - 13 - - + 26
----
100

skipif mysql # not compatible
query I rowsort label-4727
SELECT - 21 / - 13 + 70 + - 44 / + - 13 - - + 26
----
100

onlyif mysql # DIV for integer division: 
query I rowsort label-4728
SELECT - 56 DIV + 53 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-4728
SELECT - 56 / + 53 AS col1
----
-1

query I rowsort
SELECT - 62 + 88 * + 61 + 8
----
5314

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4730
SELECT ALL - COALESCE ( 73, 98 * NULLIF ( 68, - + 66 - - + SUM( - 46 ) ) + + 81 + 1, 97 ) DIV 53 col1
----
-1

skipif mysql # not compatible
query I rowsort label-4730
SELECT ALL - COALESCE ( 73, 98 * NULLIF ( 68, - + 66 - - + SUM ( - 46 ) ) + + 81 + 1, 97 ) / 53 col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4731
SELECT + COALESCE ( 70, + COUNT( * ), 54 + 12 * + 44 ) * - 93
----
-6510

skipif mysql # not compatible
query I rowsort label-4731
SELECT + COALESCE ( 70, + COUNT ( * ), 54 + 12 * + 44 ) * - 93
----
-6510

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4732
SELECT DISTINCT - ( - 91 ) * 60 + - ( - 69 ) - - + 83 * - 13 - - 0 / - 80 + CASE 24 WHEN 49 THEN NULL ELSE 5 END * CASE NULLIF ( 78, 21 + + 37 ) WHEN 43 THEN NULL WHEN 96 * + CAST( NULL AS SIGNED ) THEN + 51 + 60 * 15 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4732
SELECT DISTINCT - ( - 91 ) * 60 + - ( - 69 ) - - + 83 * - 13 - - 0 / - 80 + CASE 24 WHEN 49 THEN NULL ELSE 5 END * CASE NULLIF ( 78, 21 + + 37 ) WHEN 43 THEN NULL WHEN 96 * + CAST ( NULL AS INTEGER ) THEN + 51 + 60 * 15 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4733
SELECT - 9 - + CASE 55 WHEN + 25 THEN NULL ELSE 15 END * CASE - - 77 WHEN 53 * COUNT( * ) THEN NULL WHEN + 14 - COUNT( * ) THEN + ( CASE WHEN NULL = - 55 THEN 64 * 91 WHEN NOT NULL IS NOT NULL THEN NULL ELSE NULL END ) WHEN + 4 * COUNT( * ) + 54 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4733
SELECT - 9 - + CASE 55 WHEN + 25 THEN NULL ELSE 15 END * CASE - - 77 WHEN 53 * COUNT ( * ) THEN NULL WHEN + 14 - COUNT ( * ) THEN + ( CASE WHEN NULL = - 55 THEN 64 * 91 WHEN NOT NULL IS NOT NULL THEN NULL ELSE NULL END ) WHEN + 4 * COUNT ( * ) + 54 THEN NULL END
----
NULL

query I rowsort
SELECT DISTINCT + ( + 29 ) col2
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-4735
SELECT ALL - 43 * + COUNT( * ) + - ( + + COUNT( * ) ) col2
----
-44

skipif mysql # not compatible
query I rowsort label-4735
SELECT ALL - 43 * + COUNT ( * ) + - ( + + COUNT ( * ) ) col2
----
-44

query I rowsort
SELECT ALL 96 * + 99 AS col2
----
9504

onlyif mysql # DIV for integer division: 
query I rowsort label-4737
SELECT - 2 * - 10 DIV + 27 col0
----
0

skipif mysql # not compatible
query I rowsort label-4737
SELECT - 2 * - 10 / + 27 col0
----
0

query I rowsort
SELECT ALL - 94 * - 90 * + 77 + - 56 AS col1
----
651364

query I rowsort
SELECT DISTINCT - 43 * - 43
----
1849

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4740
SELECT ALL COALESCE ( - + CASE COALESCE ( 72, + 81 * - COUNT( * ) + + 8 ) WHEN - 70 + 4 THEN NULL WHEN 47 DIV COALESCE ( COALESCE ( + 84, - 38 ), + 45 * + MIN( + 37 ), 23 ) THEN 50 + - 4 DIV + 97 END, 63 + 45, - SUM( ALL - 75 ) * + 7 ) * 83 + 11
----
8975

skipif mysql # not compatible
query I rowsort label-4740
SELECT ALL COALESCE ( - + CASE COALESCE ( 72, + 81 * - COUNT ( * ) + + 8 ) WHEN - 70 + 4 THEN NULL WHEN 47 / COALESCE ( COALESCE ( + 84, - 38 ), + 45 * + MIN ( + 37 ), 23 ) THEN 50 + - 4 / + 97 END, 63 + 45, - SUM ( ALL - 75 ) * + 7 ) * 83 + 11
----
8975

onlyif mysql # aggregate syntax: 
query I rowsort label-4741
SELECT ALL - 25 * + COUNT( * )
----
-25

skipif mysql # not compatible
query I rowsort label-4741
SELECT ALL - 25 * + COUNT ( * )
----
-25

query I rowsort
SELECT - 66 * + - 54
----
3564

onlyif mysql # aggregate syntax: 
query I rowsort label-4743
SELECT SUM( ALL + 74 ) AS col2
----
74

skipif mysql # not compatible
query I rowsort label-4743
SELECT SUM ( ALL + 74 ) AS col2
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-4744
SELECT ALL SUM( - 87 ) * 26 + + 95 + 90
----
-2077

skipif mysql # not compatible
query I rowsort label-4744
SELECT ALL SUM ( - 87 ) * 26 + + 95 + 90
----
-2077

onlyif mysql # aggregate syntax: 
query II rowsort label-4745
SELECT COUNT( * ) AS col0, 62
----
1
62

skipif mysql # not compatible
query II rowsort label-4745
SELECT COUNT ( * ) AS col0, 62
----
1
62

onlyif mysql # aggregate syntax: 
query I rowsort label-4746
SELECT SUM( DISTINCT + 29 ) AS col0
----
29

skipif mysql # not compatible
query I rowsort label-4746
SELECT SUM ( DISTINCT + 29 ) AS col0
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-4747
SELECT MAX( ALL + 56 ) col1
----
56

skipif mysql # not compatible
query I rowsort label-4747
SELECT MAX ( ALL + 56 ) col1
----
56

query I rowsort
SELECT - 36 * - - 15
----
-540

onlyif mysql # DIV for integer division: 
query I rowsort label-4749
SELECT ALL 48 DIV - 54 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4749
SELECT ALL 48 / - 54 AS col0
----
0

query I rowsort
SELECT ALL + 53 + + + NULLIF ( - + 64, + ( 56 ) ) + - ( - - 52 ) - + + 93 + 21 AS col1
----
-135

onlyif mysql # aggregate syntax: 
query I rowsort label-4751
SELECT - CASE - + AVG ( - + 65 ) WHEN - COALESCE ( - 80, - ( + 80 ) + ( - 14 ) + COUNT( * ) ) THEN ( + 79 ) * COALESCE ( - ( 62 ), CASE ( 36 ) WHEN 11 THEN - 17 + - 64 WHEN NULLIF ( CASE + CASE 44 WHEN + 42 THEN - 0 - 66 * 35 WHEN ( - ( + 71 ) ) * - CASE MIN( ALL 54 ) WHEN - NULLIF ( AVG ( ALL 32 ), - 35 ) THEN + 69 WHEN 65 THEN 83 END THEN NULL WHEN - 20 + + COUNT( * ) * - 75 THEN NULL END WHEN - 99 THEN + 20 WHEN + 46 - COUNT( * ) THEN NULL END, - 55 ) THEN NULL ELSE COUNT( * ) END * + 8 ) ELSE - 14 END
----
14

skipif mysql # not compatible
query I rowsort label-4751
SELECT - CASE - + AVG ( - + 65 ) WHEN - COALESCE ( - 80, - ( + 80 ) + ( - 14 ) + COUNT ( * ) ) THEN ( + 79 ) * COALESCE ( - ( 62 ), CASE ( 36 ) WHEN 11 THEN - 17 + - 64 WHEN NULLIF ( CASE + CASE 44 WHEN + 42 THEN - 0 - 66 * 35 WHEN ( - ( + 71 ) ) * - CASE MIN ( ALL 54 ) WHEN - NULLIF ( AVG ( ALL 32 ), - 35 ) THEN + 69 WHEN 65 THEN 83 END THEN NULL WHEN - 20 + + COUNT ( * ) * - 75 THEN NULL END WHEN - 99 THEN + 20 WHEN + 46 - COUNT ( * ) THEN NULL END, - 55 ) THEN NULL ELSE COUNT ( * ) END * + 8 ) ELSE - 14 END
----
14

onlyif mysql # DIV for integer division: 
query I rowsort label-4752
SELECT ALL - - 78 DIV - 19
----
-4

skipif mysql # not compatible
query I rowsort label-4752
SELECT ALL - - 78 / - 19
----
-4

query I rowsort
SELECT DISTINCT + - 16 - - - 97 AS col2
----
-113

onlyif mysql # DIV for integer division: 
query I rowsort label-4754
SELECT ALL + 83 DIV + 88 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4754
SELECT ALL + 83 / + 88 AS col2
----
0

query I rowsort
SELECT ALL 81 * ( + + 40 ) AS col0
----
3240

onlyif mysql # aggregate syntax: 
query I rowsort label-4756
SELECT + - COUNT( * ) * - - MIN( + 18 ) * 66 + ( - 56 )
----
-1244

skipif mysql # not compatible
query I rowsort label-4756
SELECT + - COUNT ( * ) * - - MIN ( + 18 ) * 66 + ( - 56 )
----
-1244

query I rowsort
SELECT ALL 25 * - 41 AS col1
----
-1025

query I rowsort
SELECT - + ( + 29 ) + - - 94 AS col2
----
65

onlyif mysql # aggregate syntax: 
query II rowsort label-4759
SELECT - + COALESCE ( MAX( ALL 69 ), 12 ), CASE + 74 WHEN - 48 THEN + 56 WHEN + 85 + - COUNT( * ) THEN NULL END AS col1
----
-69
NULL

skipif mysql # not compatible
query II rowsort label-4759
SELECT - + COALESCE ( MAX ( ALL 69 ), 12 ), CASE + 74 WHEN - 48 THEN + 56 WHEN + 85 + - COUNT ( * ) THEN NULL END AS col1
----
-69
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4760
SELECT + + 28 DIV - 78
----
0

skipif mysql # not compatible
query I rowsort label-4760
SELECT + + 28 / - 78
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4761
SELECT + 73 * 7 + + CASE + CASE - 67 WHEN - - 85 / 67 THEN - 35 ELSE - 66 END WHEN CAST( NULL AS SIGNED ) - + COUNT( * ) * - SUM( 39 ) THEN - 39 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4761
SELECT + 73 * 7 + + CASE + CASE - 67 WHEN - - 85 / 67 THEN - 35 ELSE - 66 END WHEN CAST ( NULL AS INTEGER ) - + COUNT ( * ) * - SUM ( 39 ) THEN - 39 END
----
NULL

query I rowsort
SELECT ALL - 59 * + - 50 * - 5
----
-14750

query I rowsort
SELECT + - 53 - - CASE 99 WHEN + 43 THEN + 72 END - - 23 + - 3 * - 59
----
NULL

query I rowsort
SELECT + CASE - + 20 WHEN + 22 THEN - 12 + + + ( - 18 ) ELSE NULL END * 27 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4765
SELECT + + 89 * ( CAST( NULL AS SIGNED ) ) AS col1, - 75
----
NULL
-75

skipif mysql # not compatible
query II rowsort label-4765
SELECT + + 89 * ( CAST ( NULL AS INTEGER ) ) AS col1, - 75
----
NULL
-75

query II rowsort
SELECT ALL 19 AS col2, + 15
----
19
15

query II rowsort
SELECT DISTINCT 42 AS col1, - 99 AS col0
----
42
-99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4768
SELECT ALL COALESCE ( - - ( - 92 ), + 19 * - - CAST( - COUNT( * ) AS SIGNED ) * + COUNT( * ) + + + MAX( - 46 ) + 3 * - 80 + + 14 * - 64, - 85 ) * - 63
----
5796

skipif mysql # not compatible
query I rowsort label-4768
SELECT ALL COALESCE ( - - ( - 92 ), + 19 * - - CAST ( - COUNT ( * ) AS INTEGER ) * + COUNT ( * ) + + + MAX ( - 46 ) + 3 * - 80 + + 14 * - 64, - 85 ) * - 63
----
5796

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4769
SELECT + CAST( 19 AS SIGNED ) + + COUNT( * ) * + + MAX( DISTINCT + + 87 ) + - + 96 AS col0, + 50 DIV + 51 col2
----
10
0

skipif mysql # not compatible
query II rowsort label-4769
SELECT + CAST ( 19 AS INTEGER ) + + COUNT ( * ) * + + MAX ( DISTINCT + + 87 ) + - + 96 AS col0, + 50 / + 51 col2
----
10
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4770
SELECT + COUNT( * ) * + COUNT( * ) DIV + - 13 * 19 * - 72 DIV - COUNT( * ) - ( 58 ) - - 47 * - 89 AS col0
----
-4241

skipif mysql # not compatible
query I rowsort label-4770
SELECT + COUNT ( * ) * + COUNT ( * ) / + - 13 * 19 * - 72 / - COUNT ( * ) - ( 58 ) - - 47 * - 89 AS col0
----
-4241

query I rowsort
SELECT + - 26 * - 26 AS col2
----
676

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4772
SELECT - - CAST( NULL AS SIGNED ) * - 51 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4772
SELECT - - CAST ( NULL AS INTEGER ) * - 51 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4773
SELECT MIN( ALL + 46 )
----
46

skipif mysql # not compatible
query I rowsort label-4773
SELECT MIN ( ALL + 46 )
----
46

query I rowsort
SELECT + - ( 31 ) AS col0
----
-31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4775
SELECT ALL + - ( - 16 ) / + + 84 + - CAST( NULL AS SIGNED ) * + - 25 * - + 2 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4775
SELECT ALL + - ( - 16 ) / + + 84 + - CAST ( NULL AS INTEGER ) * + - 25 * - + 2 AS col0
----
NULL

query I rowsort
SELECT - 98 * + - 40 + - - 98
----
4018

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4777
SELECT ALL - MIN( + - 63 ) DIV 84 + + - 52 + - 96 + - 96 AS col0
----
-244

skipif mysql # not compatible
query I rowsort label-4777
SELECT ALL - MIN ( + - 63 ) / 84 + + - 52 + - 96 + - 96 AS col0
----
-244

onlyif mysql # DIV for integer division: 
query I rowsort label-4778
SELECT ALL + 16 DIV - 75 + + + 66
----
66

skipif mysql # not compatible
query I rowsort label-4778
SELECT ALL + 16 / - 75 + + + 66
----
66

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4779
SELECT ALL + 83 + 93 - + 37 * + 91, CAST( + - 20 AS SIGNED ) AS col0
----
-3191
-20

skipif mysql # not compatible
query II rowsort label-4779
SELECT ALL + 83 + 93 - + 37 * + 91, CAST ( + - 20 AS INTEGER ) AS col0
----
-3191
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-4780
SELECT - SUM( - + 23 ) * COUNT( * ) * + 64 + + 26 * 6 AS col0
----
1628

skipif mysql # not compatible
query I rowsort label-4780
SELECT - SUM ( - + 23 ) * COUNT ( * ) * + 64 + + 26 * 6 AS col0
----
1628

onlyif mysql # DIV for integer division: 
query I rowsort label-4781
SELECT 71 DIV - 95 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4781
SELECT 71 / - 95 AS col0
----
0

query I rowsort
SELECT ALL - 21 + - ( 81 )
----
-102

onlyif mysql # aggregate syntax: 
query I rowsort label-4783
SELECT MAX( + 95 ) * - 90 + + - ( 82 )
----
-8632

skipif mysql # not compatible
query I rowsort label-4783
SELECT MAX ( + 95 ) * - 90 + + - ( 82 )
----
-8632

query I rowsort
SELECT 55 * - 8 AS col0
----
-440

query I rowsort
SELECT DISTINCT - ( - 22 ) AS col2
----
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4786
SELECT ALL - 94 * COUNT( * ) AS col1, - CAST( NULL AS SIGNED ) - - 46
----
-94
NULL

skipif mysql # not compatible
query II rowsort label-4786
SELECT ALL - 94 * COUNT ( * ) AS col1, - CAST ( NULL AS INTEGER ) - - 46
----
-94
NULL

query I rowsort
SELECT 71 + ( + 95 ) AS col2
----
166

onlyif mysql # aggregate syntax: 
query I rowsort label-4788
SELECT ALL - 21 - + - COUNT( * )
----
-20

skipif mysql # not compatible
query I rowsort label-4788
SELECT ALL - 21 - + - COUNT ( * )
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-4789
SELECT ALL COUNT( * ) - + 32 AS col0
----
-31

skipif mysql # not compatible
query I rowsort label-4789
SELECT ALL COUNT ( * ) - + 32 AS col0
----
-31

onlyif mysql # DIV for integer division: 
query II rowsort label-4790
SELECT ( - 91 ) + - 93 DIV - 20, 48 AS col2
----
-87
48

skipif mysql # not compatible
query II rowsort label-4790
SELECT ( - 91 ) + - 93 / - 20, 48 AS col2
----
-87
48

query I rowsort
SELECT DISTINCT - 21 * + 19 * + 89 AS col0
----
-35511

onlyif mysql # aggregate syntax: 
query I rowsort label-4792
SELECT ( + + MAX( + - 98 ) ) * + 2
----
-196

skipif mysql # not compatible
query I rowsort label-4792
SELECT ( + + MAX ( + - 98 ) ) * + 2
----
-196

query I rowsort
SELECT 12 + + 50
----
62

onlyif mysql # aggregate syntax: 
query II rowsort label-4794
SELECT - COUNT( * ) + - 72 + 79 * 96 AS col1, 7
----
7511
7

skipif mysql # not compatible
query II rowsort label-4794
SELECT - COUNT ( * ) + - 72 + 79 * 96 AS col1, 7
----
7511
7

query I rowsort
SELECT 2 - 28 AS col2
----
-26

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4796
SELECT DISTINCT + 5 * + 15 + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-4796
SELECT DISTINCT + 5 * + 15 + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-4797
SELECT ALL + COALESCE ( + + NULLIF ( + + 11, + + 67 ), + - 50 + + + 21 DIV 56 ) AS col0, + 35 AS col2
----
11
35

skipif mysql # not compatible
query II rowsort label-4797
SELECT ALL + COALESCE ( + + NULLIF ( + + 11, + + 67 ), + - 50 + + + 21 / 56 ) AS col0, + 35 AS col2
----
11
35

onlyif mysql # aggregate syntax: 
query II rowsort label-4798
SELECT - - ( + COUNT( * ) ) AS col0, 7 + - 4
----
1
3

skipif mysql # not compatible
query II rowsort label-4798
SELECT - - ( + COUNT ( * ) ) AS col0, 7 + - 4
----
1
3

onlyif mysql # DIV for integer division: 
query I rowsort label-4799
SELECT ALL + 78 DIV + 1 AS col1
----
78

skipif mysql # not compatible
query I rowsort label-4799
SELECT ALL + 78 / + 1 AS col1
----
78

query I rowsort
SELECT + 64 + - - 34 * - 97
----
-3234

onlyif mysql # aggregate syntax: 
query II rowsort label-4801
SELECT - 87 * + + 92 + + 51 * + - 18 + + COUNT( + 60 ) * 21 col2, + 85
----
-8901
85

skipif mysql # not compatible
query II rowsort label-4801
SELECT - 87 * + + 92 + + 51 * + - 18 + + COUNT ( + 60 ) * 21 col2, + 85
----
-8901
85

onlyif mysql # aggregate syntax: 
query I rowsort label-4802
SELECT COUNT( * ) + - ( - 22 ) AS col2
----
23

skipif mysql # not compatible
query I rowsort label-4802
SELECT COUNT ( * ) + - ( - 22 ) AS col2
----
23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4803
SELECT - SUM( + + 71 ) DIV + 26 - - 2 + + 92 AS col0
----
92

skipif mysql # not compatible
query I rowsort label-4803
SELECT - SUM ( + + 71 ) / + 26 - - 2 + + 92 AS col0
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-4804
SELECT ALL 32 + - SUM( DISTINCT + 38 ) * - 57 + - 10 AS col1
----
2188

skipif mysql # not compatible
query I rowsort label-4804
SELECT ALL 32 + - SUM ( DISTINCT + 38 ) * - 57 + - 10 AS col1
----
2188

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4805
SELECT DISTINCT MIN( 62 ) * + 10 * 83 + - CAST( + + 7 AS SIGNED ) AS col0, 56 + - 89 + + 93 AS col1
----
51453
60

skipif mysql # not compatible
query II rowsort label-4805
SELECT DISTINCT MIN ( 62 ) * + 10 * 83 + - CAST ( + + 7 AS INTEGER ) AS col0, 56 + - 89 + + 93 AS col1
----
51453
60

query I rowsort
SELECT ALL 15 + + 64 * + 97
----
6223

onlyif mysql # aggregate syntax: 
query I rowsort label-4807
SELECT 81 + 75 - - COUNT( * ) * - + 98 AS col1
----
58

skipif mysql # not compatible
query I rowsort label-4807
SELECT 81 + 75 - - COUNT ( * ) * - + 98 AS col1
----
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4808
SELECT DISTINCT 72 * + - COALESCE ( + + 70, + 56 DIV - - CAST( + - 87 AS SIGNED ) ) DIV NULLIF ( + COUNT( * ), - 52 * - 19 )
----
-5040

skipif mysql # not compatible
query I rowsort label-4808
SELECT DISTINCT 72 * + - COALESCE ( + + 70, + 56 / - - CAST ( + - 87 AS INTEGER ) ) / NULLIF ( + COUNT ( * ), - 52 * - 19 )
----
-5040

query I rowsort
SELECT ALL + 62 * 12 col0
----
744

onlyif mysql # aggregate syntax: 
query I rowsort label-4810
SELECT ALL 19 * + + COUNT( * ) col1
----
19

skipif mysql # not compatible
query I rowsort label-4810
SELECT ALL 19 * + + COUNT ( * ) col1
----
19

query I rowsort
SELECT ALL 78 - 6
----
72

query I rowsort
SELECT DISTINCT 36 * - + 1 AS col0
----
-36

query I rowsort
SELECT 90 * + - 87 col1
----
-7830

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4814
SELECT - 72 - - 70 + 36 - + 35 + 4 DIV - 96 + - COUNT( * )
----
-2

skipif mysql # not compatible
query I rowsort label-4814
SELECT - 72 - - 70 + 36 - + 35 + 4 / - 96 + - COUNT ( * )
----
-2

query I rowsort
SELECT - 76 * + 3 AS col2
----
-228

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4816
SELECT + 55 DIV 70 + COUNT( * ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4816
SELECT + 55 / 70 + COUNT ( * ) AS col1
----
1

query I rowsort
SELECT ALL + 67 * - 73 AS col2
----
-4891

onlyif mysql # aggregate syntax: 
query I rowsort label-4818
SELECT DISTINCT + - 73 * ( 89 ) - - COUNT( * ) * 19
----
-6478

skipif mysql # not compatible
query I rowsort label-4818
SELECT DISTINCT + - 73 * ( 89 ) - - COUNT ( * ) * 19
----
-6478

query I rowsort
SELECT - CASE + 43 WHEN - 10 * + - 24 THEN - 87 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4820
SELECT 19 * + 83 + - - 60 + COUNT( * ) DIV + MIN( DISTINCT + + 20 ) AS col0
----
1637

skipif mysql # not compatible
query I rowsort label-4820
SELECT 19 * + 83 + - - 60 + COUNT ( * ) / + MIN ( DISTINCT + + 20 ) AS col0
----
1637

onlyif mysql # DIV for integer division: 
query I rowsort label-4821
SELECT ALL + 76 * 96 DIV + COALESCE ( + 55, + 87 )
----
132

skipif mysql # not compatible
query I rowsort label-4821
SELECT ALL + 76 * 96 / + COALESCE ( + 55, + 87 )
----
132

onlyif mysql # aggregate syntax: 
query I rowsort label-4822
SELECT DISTINCT NULLIF ( + 51, - MIN( ALL - 81 ) )
----
51

skipif mysql # not compatible
query I rowsort label-4822
SELECT DISTINCT NULLIF ( + 51, - MIN ( ALL - 81 ) )
----
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4823
SELECT DISTINCT + - 81 + + - ( + COUNT( * ) ) * - CAST( NULL AS SIGNED ) + + 74 * + + 76 + - - 32
----
NULL

skipif mysql # not compatible
query I rowsort label-4823
SELECT DISTINCT + - 81 + + - ( + COUNT ( * ) ) * - CAST ( NULL AS INTEGER ) + + 74 * + + 76 + - - 32
----
NULL

query II rowsort
SELECT - + 83 AS col2, 54
----
-83
54

query I rowsort
SELECT 99 + - 2 col1
----
97

query I rowsort
SELECT ALL + + 31 + 12 AS col1
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-4827
SELECT - + SUM( + 84 )
----
-84

skipif mysql # not compatible
query I rowsort label-4827
SELECT - + SUM ( + 84 )
----
-84

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4828
SELECT 76 + CAST( NULL AS DECIMAL ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4828
SELECT 76 + CAST ( NULL AS REAL ) col0
----
NULL

query I rowsort
SELECT - NULLIF ( + + 73, - 34 - - 60 + ( + 21 ) * - 11 ) AS col2
----
-73

onlyif mysql # aggregate syntax: 
query II rowsort label-4830
SELECT ALL COUNT( * ) AS col0, ( + 80 )
----
1
80

skipif mysql # not compatible
query II rowsort label-4830
SELECT ALL COUNT ( * ) AS col0, ( + 80 )
----
1
80

query I rowsort
SELECT + 29 + - 81 AS col2
----
-52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4832
SELECT - COALESCE ( - 86, - 35 + ( + CAST( - - COUNT( * ) AS SIGNED ) ) + - - CAST( NULL AS SIGNED ) DIV + 51 + 1 + + 1 ) AS col0
----
86

skipif mysql # not compatible
query I rowsort label-4832
SELECT - COALESCE ( - 86, - 35 + ( + CAST ( - - COUNT ( * ) AS INTEGER ) ) + - - CAST ( NULL AS INTEGER ) / + 51 + 1 + + 1 ) AS col0
----
86

query I rowsort
SELECT 68 + 64 * - ( + 13 )
----
-764

onlyif mysql # aggregate syntax: 
query I rowsort label-4834
SELECT ALL - 80 + + COUNT( * ) AS col1
----
-79

skipif mysql # not compatible
query I rowsort label-4834
SELECT ALL - 80 + + COUNT ( * ) AS col1
----
-79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4835
SELECT ALL CASE 9 WHEN - 89 THEN - MAX( - + 83 ) + 74 - - 31 / + 48 WHEN - + 48 THEN + ( - 15 ) + 12 WHEN + 55 THEN + CAST( - 84 AS SIGNED ) ELSE NULL END * - 77 + 26 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4835
SELECT ALL CASE 9 WHEN - 89 THEN - MAX ( - + 83 ) + 74 - - 31 / + 48 WHEN - + 48 THEN + ( - 15 ) + 12 WHEN + 55 THEN + CAST ( - 84 AS INTEGER ) ELSE NULL END * - 77 + 26 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4836
SELECT DISTINCT + MIN( + - 14 ) AS col1, - 82 AS col2
----
-14
-82

skipif mysql # not compatible
query II rowsort label-4836
SELECT DISTINCT + MIN ( + - 14 ) AS col1, - 82 AS col2
----
-14
-82

query II rowsort
SELECT + 46, + 25 AS col1
----
46
25

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4838
SELECT CASE - - SUM( + 27 ) WHEN - 71 + COUNT( * ) + + 2 + + 90 * - CASE 33 WHEN - + 33 THEN + - MIN( ALL 63 ) END THEN + ( + COUNT( * ) ) ELSE + 47 DIV + 15 END AS col2
----
3

skipif mysql # not compatible
query I rowsort label-4838
SELECT CASE - - SUM ( + 27 ) WHEN - 71 + COUNT ( * ) + + 2 + + 90 * - CASE 33 WHEN - + 33 THEN + - MIN ( ALL 63 ) END THEN + ( + COUNT ( * ) ) ELSE + 47 / + 15 END AS col2
----
3

query I rowsort
SELECT DISTINCT 58 * + ( + 49 ) + 19 AS col1
----
2861

onlyif mysql # aggregate syntax: 
query I rowsort label-4840
SELECT + 46 * + + COUNT( * ) + - - 62 + + 74 + 46
----
228

skipif mysql # not compatible
query I rowsort label-4840
SELECT + 46 * + + COUNT ( * ) + - - 62 + + 74 + 46
----
228

onlyif mysql # aggregate syntax: 
query I rowsort label-4841
SELECT CASE - - 86 WHEN 44 + + 64 THEN NULL WHEN - COUNT( * ) THEN - 42 ELSE - 18 * 39 END
----
-702

skipif mysql # not compatible
query I rowsort label-4841
SELECT CASE - - 86 WHEN 44 + + 64 THEN NULL WHEN - COUNT ( * ) THEN - 42 ELSE - 18 * 39 END
----
-702

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4842
SELECT ( + - 78 ) * 17 / CAST( NULL AS SIGNED ) + 12
----
NULL

skipif mysql # not compatible
query I rowsort label-4842
SELECT ( + - 78 ) * 17 / CAST ( NULL AS INTEGER ) + 12
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4843
SELECT ALL - 66 * - 80 * - 18 * + 95, + COUNT( * ) + COUNT( * ) AS col0
----
-9028800
2

skipif mysql # not compatible
query II rowsort label-4843
SELECT ALL - 66 * - 80 * - 18 * + 95, + COUNT ( * ) + COUNT ( * ) AS col0
----
-9028800
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4844
SELECT + COUNT( ALL + + 40 ) AS col2, + NULLIF ( CAST( NULL AS SIGNED ), - + COALESCE ( + 37, - + 52, + - 78 * 59 ) )
----
1
NULL

skipif mysql # not compatible
query II rowsort label-4844
SELECT + COUNT ( ALL + + 40 ) AS col2, + NULLIF ( CAST ( NULL AS INTEGER ), - + COALESCE ( + 37, - + 52, + - 78 * 59 ) )
----
1
NULL

query II rowsort
SELECT ALL + 25 AS col2, - 56
----
25
-56

query I rowsort
SELECT + 7 * - 75 * + 52 + - ( 60 ) AS col2
----
-27360

onlyif mysql # aggregate syntax: 
query I rowsort label-4847
SELECT SUM( - 48 ) col1
----
-48

skipif mysql # not compatible
query I rowsort label-4847
SELECT SUM ( - 48 ) col1
----
-48

onlyif mysql # aggregate syntax: 
query II rowsort label-4848
SELECT ALL + 41 AS col1, CASE + - 20 WHEN - 69 * 34 - 10 - - 70 THEN + 32 + - + 36 ELSE - COUNT( * ) END
----
41
-1

skipif mysql # not compatible
query II rowsort label-4848
SELECT ALL + 41 AS col1, CASE + - 20 WHEN - 69 * 34 - 10 - - 70 THEN + 32 + - + 36 ELSE - COUNT ( * ) END
----
41
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4849
SELECT + 69 * - - COUNT( * ) + - 23 + 69
----
115

skipif mysql # not compatible
query I rowsort label-4849
SELECT + 69 * - - COUNT ( * ) + - 23 + 69
----
115

query I rowsort
SELECT + ( + + 83 )
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-4851
SELECT COUNT( * ) * + - COUNT( * ) * 75 + 14 - - 25 * + - 50 + 9 + + 94
----
-1208

skipif mysql # not compatible
query I rowsort label-4851
SELECT COUNT ( * ) * + - COUNT ( * ) * 75 + 14 - - 25 * + - 50 + 9 + + 94
----
-1208

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4852
SELECT - - 77 * + 56 * + 29 - CAST( + CAST( + 79 AS SIGNED ) AS SIGNED ) * 56 * CAST( - 68 AS SIGNED ) - + - COUNT( * ) AS col2
----
425881

skipif mysql # not compatible
query I rowsort label-4852
SELECT - - 77 * + 56 * + 29 - CAST ( + CAST ( + 79 AS INTEGER ) AS INTEGER ) * 56 * CAST ( - 68 AS INTEGER ) - + - COUNT ( * ) AS col2
----
425881

query I rowsort
SELECT ALL + 71 * - + 16 + - 71
----
-1207

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4854
SELECT + + CAST( + 68 AS SIGNED ) + + + 6
----
74

skipif mysql # not compatible
query I rowsort label-4854
SELECT + + CAST ( + 68 AS INTEGER ) + + + 6
----
74

query I rowsort
SELECT ALL + ( + 85 ) AS col0
----
85

onlyif mysql # aggregate syntax: 
query II rowsort label-4856
SELECT ALL 37, - NULLIF ( - 2, - 9 * COUNT( * ) ) AS col2
----
37
2

skipif mysql # not compatible
query II rowsort label-4856
SELECT ALL 37, - NULLIF ( - 2, - 9 * COUNT ( * ) ) AS col2
----
37
2

query II rowsort
SELECT - 49 AS col1, - 79 AS col1
----
-49
-79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4858
SELECT - 75 * - COALESCE ( - - ( - SUM( + - CAST( NULL AS SIGNED ) ) ), - - 91, + MAX( + - 77 ) DIV 14 * CASE - 53 WHEN 21 THEN + 39 - + 36 WHEN + 49 THEN NULL END ) + COUNT( * )
----
6826

skipif mysql # not compatible
query I rowsort label-4858
SELECT - 75 * - COALESCE ( - - ( - SUM ( + - CAST ( NULL AS INTEGER ) ) ), - - 91, + MAX ( + - 77 ) / 14 * CASE - 53 WHEN 21 THEN + 39 - + 36 WHEN + 49 THEN NULL END ) + COUNT ( * )
----
6826

query II rowsort
SELECT 62 AS col0, 97
----
62
97

query I rowsort
SELECT - 46 + - 81 col0
----
-127

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4861
SELECT DISTINCT 27 AS col0, CAST( - 31 AS SIGNED ) col0
----
27
-31

skipif mysql # not compatible
query II rowsort label-4861
SELECT DISTINCT 27 AS col0, CAST ( - 31 AS INTEGER ) col0
----
27
-31

query I rowsort
SELECT DISTINCT - 28 + 21
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-4863
SELECT SUM( - - 18 )
----
18

skipif mysql # not compatible
query I rowsort label-4863
SELECT SUM ( - - 18 )
----
18

query II rowsort
SELECT - - 0 + 46, - 68 + + - 35 AS col0
----
46
-103

query I rowsort
SELECT ALL - 95 + - 59 col2
----
-154

onlyif mysql # DIV for integer division: 
query I rowsort label-4866
SELECT - - 89 DIV - ( + + 61 )
----
-1

skipif mysql # not compatible
query I rowsort label-4866
SELECT - - 89 / - ( + + 61 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4867
SELECT ALL - 84 + COALESCE ( 73, - COUNT( * ) )
----
-11

skipif mysql # not compatible
query I rowsort label-4867
SELECT ALL - 84 + COALESCE ( 73, - COUNT ( * ) )
----
-11

query II rowsort
SELECT 18 AS col2, 87
----
18
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4869
SELECT - + 15 * - 23 / - + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4869
SELECT - + 15 * - 23 / - + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT ALL + - 4 + + 91
----
87

query I rowsort
SELECT ALL - 34 + 67 AS col2
----
33

onlyif mysql # aggregate syntax: 
query II rowsort label-4872
SELECT DISTINCT + + ( + COUNT( * ) ) * - 97 + ( + 24 ) + 50 AS col0, + 73
----
-23
73

skipif mysql # not compatible
query II rowsort label-4872
SELECT DISTINCT + + ( + COUNT ( * ) ) * - 97 + ( + 24 ) + 50 AS col0, + 73
----
-23
73

onlyif mysql # aggregate syntax: 
query I rowsort label-4873
SELECT ALL + COUNT( * ) * 53 AS col0
----
53

skipif mysql # not compatible
query I rowsort label-4873
SELECT ALL + COUNT ( * ) * 53 AS col0
----
53

query I rowsort
SELECT DISTINCT - 52 - - + 89 AS col0
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-4875
SELECT - COUNT( * ) + - 11 + 0 AS col1
----
-12

skipif mysql # not compatible
query I rowsort label-4875
SELECT - COUNT ( * ) + - 11 + 0 AS col1
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-4876
SELECT ALL ( + MIN( + + 96 ) )
----
96

skipif mysql # not compatible
query I rowsort label-4876
SELECT ALL ( + MIN ( + + 96 ) )
----
96

onlyif mysql # DIV for integer division: 
query I rowsort label-4877
SELECT 25 DIV 33 + + - 87 AS col2
----
-87

skipif mysql # not compatible
query I rowsort label-4877
SELECT 25 / 33 + + - 87 AS col2
----
-87

onlyif mysql # DIV for integer division: 
query I rowsort label-4878
SELECT ALL 91 DIV - - 44 - - 24 + 64 AS col1
----
90

skipif mysql # not compatible
query I rowsort label-4878
SELECT ALL 91 / - - 44 - - 24 + 64 AS col1
----
90

onlyif mysql # DIV for integer division: 
query II rowsort label-4879
SELECT ALL 84 DIV 57 AS col2, 28 * + 16
----
1
448

skipif mysql # not compatible
query II rowsort label-4879
SELECT ALL 84 / 57 AS col2, 28 * + 16
----
1
448

query I rowsort
SELECT - 90 * - 41
----
3690

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4881
SELECT DISTINCT + COALESCE ( + + 60, 88 + - - 79, - CAST( 70 AS SIGNED ) * 18 + - - 12 )
----
60

skipif mysql # not compatible
query I rowsort label-4881
SELECT DISTINCT + COALESCE ( + + 60, 88 + - - 79, - CAST ( 70 AS INTEGER ) * 18 + - - 12 )
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-4882
SELECT + COUNT( ALL - COALESCE ( - + 72, - 15, - 26 ) )
----
1

skipif mysql # not compatible
query I rowsort label-4882
SELECT + COUNT ( ALL - COALESCE ( - + 72, - 15, - 26 ) )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4883
SELECT DISTINCT - 44 DIV - 67 * - 35
----
0

skipif mysql # not compatible
query I rowsort label-4883
SELECT DISTINCT - 44 / - 67 * - 35
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4884
SELECT ALL - 35 * 45 * + CAST( - 84 AS SIGNED )
----
132300

skipif mysql # not compatible
query I rowsort label-4884
SELECT ALL - 35 * 45 * + CAST ( - 84 AS INTEGER )
----
132300

onlyif mysql # aggregate syntax: 
query II rowsort label-4885
SELECT - 54 * + 83 AS col2, - NULLIF ( 85, - COUNT( * ) * - - COUNT( * ) * 14 + + COUNT( * ) ) + - 58 AS col2
----
-4482
-143

skipif mysql # not compatible
query II rowsort label-4885
SELECT - 54 * + 83 AS col2, - NULLIF ( 85, - COUNT ( * ) * - - COUNT ( * ) * 14 + + COUNT ( * ) ) + - 58 AS col2
----
-4482
-143

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4886
SELECT - ( + CAST( NULL AS SIGNED ) ) * + COUNT( * ) * + - CAST( NULL AS DECIMAL ) * - - COUNT( * ) / - 89 * - + ( + 47 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4886
SELECT - ( + CAST ( NULL AS INTEGER ) ) * + COUNT ( * ) * + - CAST ( NULL AS REAL ) * - - COUNT ( * ) / - 89 * - + ( + 47 )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4887
SELECT ( - 93 ) AS col2, - COALESCE ( - 64, - + 96, ( - COUNT( * ) ) * - 48 )
----
-93
64

skipif mysql # not compatible
query II rowsort label-4887
SELECT ( - 93 ) AS col2, - COALESCE ( - 64, - + 96, ( - COUNT ( * ) ) * - 48 )
----
-93
64

onlyif mysql # DIV for integer division: 
query I rowsort label-4888
SELECT + 12 DIV 18 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4888
SELECT + 12 / 18 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4889
SELECT - COUNT( * ) * - + 43 * - + ( NULLIF ( 5, - ( - + NULLIF ( 45, 87 * 61 ) ) ) ) AS col0
----
-215

skipif mysql # not compatible
query I rowsort label-4889
SELECT - COUNT ( * ) * - + 43 * - + ( NULLIF ( 5, - ( - + NULLIF ( 45, 87 * 61 ) ) ) ) AS col0
----
-215

query I rowsort
SELECT ALL - 89 * - 84 * + + 29 AS col1
----
216804

query I rowsort
SELECT ALL + 31 * + + 43
----
1333

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4892
SELECT DISTINCT - - COUNT( * ) * + + 18 * + + 11 + + COUNT( ALL + 10 ) + + + 25 + + + 53 + - 55 DIV + - COUNT( * ) + + + 24 + + NULLIF ( 42, 18 ) - COALESCE ( 82, + 33 ) * 21 * - 91
----
157100

skipif mysql # not compatible
query I rowsort label-4892
SELECT DISTINCT - - COUNT ( * ) * + + 18 * + + 11 + + COUNT ( ALL + 10 ) + + + 25 + + + 53 + - 55 / + - COUNT ( * ) + + + 24 + + NULLIF ( 42, 18 ) - COALESCE ( 82, + 33 ) * 21 * - 91
----
157100

query I rowsort
SELECT ALL - 70 * - - 35 * ( - 97 ) + + + 44 AS col0
----
237694

query I rowsort
SELECT ALL + - 25 AS col0
----
-25

query I rowsort
SELECT DISTINCT + + ( - 66 ) AS col2
----
-66

onlyif mysql # aggregate syntax: 
query II rowsort label-4896
SELECT ALL + - COUNT( ALL 71 ), - 87 col2
----
-1
-87

skipif mysql # not compatible
query II rowsort label-4896
SELECT ALL + - COUNT ( ALL 71 ), - 87 col2
----
-1
-87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4897
SELECT + + CASE COUNT( * ) WHEN - 79 THEN NULL WHEN - CAST( 13 AS SIGNED ) THEN COALESCE ( 53, - ( COALESCE ( - - MIN( ALL - 67 ), - - MIN( ALL - 81 ) * + 73, + COUNT( 85 ) * - 31 ) ) ) * - 15 ELSE NULL END - 15 * COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4897
SELECT + + CASE COUNT ( * ) WHEN - 79 THEN NULL WHEN - CAST ( 13 AS INTEGER ) THEN COALESCE ( 53, - ( COALESCE ( - - MIN ( ALL - 67 ), - - MIN ( ALL - 81 ) * + 73, + COUNT ( 85 ) * - 31 ) ) ) * - 15 ELSE NULL END - 15 * COUNT ( * ) AS col1
----
NULL

query I rowsort
SELECT - CASE WHEN NOT + 32 IS NOT NULL THEN - 40 END AS col0
----
NULL

query II rowsort
SELECT + 84 * + 6 AS col0, + ( 53 )
----
504
53

query I rowsort
SELECT DISTINCT + 83 * + + 68 + + + ( 54 ) AS col2
----
5698

query II rowsort
SELECT DISTINCT - 55 * + 55 AS col2, - ( + 89 ) AS col0
----
-3025
-89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4902
SELECT DISTINCT + CAST( NULL AS SIGNED ) * 74 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4902
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * 74 AS col1
----
NULL

query II rowsort
SELECT DISTINCT 98 - + + 56 AS col0, + 13
----
42
13

query I rowsort
SELECT 85 + + 84 * + + 78
----
6637

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4905
SELECT CAST( NULL AS DECIMAL ) * + 19
----
NULL

skipif mysql # not compatible
query I rowsort label-4905
SELECT CAST ( NULL AS REAL ) * + 19
----
NULL

query II rowsort
SELECT 77 AS col1, + 0 - - 79
----
77
79

onlyif mysql # DIV for integer division: 
query I rowsort label-4907
SELECT ALL - 39 DIV + - 35
----
1

skipif mysql # not compatible
query I rowsort label-4907
SELECT ALL - 39 / + - 35
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4908
SELECT ALL 2 - + 62 - + + 90 DIV + ( - + 91 )
----
-60

skipif mysql # not compatible
query I rowsort label-4908
SELECT ALL 2 - + 62 - + + 90 / + ( - + 91 )
----
-60

onlyif mysql # DIV for integer division: 
query I rowsort label-4909
SELECT DISTINCT 61 DIV - 82 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4909
SELECT DISTINCT 61 / - 82 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4910
SELECT ALL + COUNT( * ) - + 94 + + 15 AS col1
----
-78

skipif mysql # not compatible
query I rowsort label-4910
SELECT ALL + COUNT ( * ) - + 94 + + 15 AS col1
----
-78

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4911
SELECT 80 DIV + + COUNT( * )
----
80

skipif mysql # not compatible
query I rowsort label-4911
SELECT 80 / + + COUNT ( * )
----
80

onlyif mysql # aggregate syntax: 
query II rowsort label-4912
SELECT ALL 6, + CASE + 25 WHEN + 64 * + ( + - COUNT( * ) ) THEN NULL ELSE - 96 * 14 + + COUNT( * ) END AS col2
----
6
-1343

skipif mysql # not compatible
query II rowsort label-4912
SELECT ALL 6, + CASE + 25 WHEN + 64 * + ( + - COUNT ( * ) ) THEN NULL ELSE - 96 * 14 + + COUNT ( * ) END AS col2
----
6
-1343

query II rowsort
SELECT 20, 97 * - 81 col0
----
20
-7857

onlyif mysql # DIV for integer division: 
query I rowsort label-4914
SELECT 76 DIV + 93 + + + 41 + - - 87 * 24 AS col0
----
2129

skipif mysql # not compatible
query I rowsort label-4914
SELECT 76 / + 93 + + + 41 + - - 87 * 24 AS col0
----
2129

query I rowsort
SELECT ALL - 31 + 2 AS col2
----
-29

query I rowsort
SELECT 86 - - 51 - + + 7 + - 11 * + + 55 AS col1
----
-475

onlyif mysql # aggregate syntax: 
query I rowsort label-4917
SELECT + 99 * COUNT( * ) + + 39 AS col0
----
138

skipif mysql # not compatible
query I rowsort label-4917
SELECT + 99 * COUNT ( * ) + + 39 AS col0
----
138

onlyif mysql # aggregate syntax: 
query I rowsort label-4918
SELECT ALL - COUNT( * ) * 40 AS col1
----
-40

skipif mysql # not compatible
query I rowsort label-4918
SELECT ALL - COUNT ( * ) * 40 AS col1
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-4919
SELECT DISTINCT - NULLIF ( COUNT( * ), + COUNT( * ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4919
SELECT DISTINCT - NULLIF ( COUNT ( * ), + COUNT ( * ) ) AS col1
----
NULL

query I rowsort
SELECT ALL - 32 + 8
----
-24

query I rowsort
SELECT DISTINCT - + 66 * - 74 AS col1
----
4884

query I rowsort
SELECT DISTINCT - COALESCE ( - 36, + + ( + ( + 30 ) ), 85 ) + - + 83 AS col1
----
-47

query I rowsort
SELECT DISTINCT - + 57 col2
----
-57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4924
SELECT ALL + 89 + - CAST( - - ( + 26 ) AS SIGNED ) AS col0
----
63

skipif mysql # not compatible
query I rowsort label-4924
SELECT ALL + 89 + - CAST ( - - ( + 26 ) AS INTEGER ) AS col0
----
63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4925
SELECT ALL - - COALESCE ( + 12, - ( + SUM( ALL + - 70 ) ) DIV - 81 ) + - - 9 + + + 65 + + 86 + + 27
----
199

skipif mysql # not compatible
query I rowsort label-4925
SELECT ALL - - COALESCE ( + 12, - ( + SUM ( ALL + - 70 ) ) / - 81 ) + - - 9 + + + 65 + + 86 + + 27
----
199

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4926
SELECT DISTINCT - ( - CAST( NULL AS DECIMAL ) ) * + 64
----
NULL

skipif mysql # not compatible
query I rowsort label-4926
SELECT DISTINCT - ( - CAST ( NULL AS REAL ) ) * + 64
----
NULL

query II rowsort
SELECT 92 AS col1, + 29
----
92
29

query I rowsort
SELECT 81 + NULLIF ( + - ( + + 58 ), + 18 )
----
23

query I rowsort
SELECT - 81 + - 87 AS col1
----
-168

onlyif mysql # aggregate syntax: 
query I rowsort label-4930
SELECT ALL + + CASE - + COUNT( * ) WHEN - 75 * - 50 * 68 * + COALESCE ( - ( - - 73 ), - 21 ) THEN 4 END * + 42 * - - 41 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4930
SELECT ALL + + CASE - + COUNT ( * ) WHEN - 75 * - 50 * 68 * + COALESCE ( - ( - - 73 ), - 21 ) THEN 4 END * + 42 * - - 41 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4931
SELECT DISTINCT - - 95 * - COUNT( * )
----
-95

skipif mysql # not compatible
query I rowsort label-4931
SELECT DISTINCT - - 95 * - COUNT ( * )
----
-95

query I rowsort
SELECT ALL + - NULLIF ( - 71, - + 84 ) - - 9 AS col1
----
80

query I rowsort
SELECT + 4 * - 57 AS col1
----
-228

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4934
SELECT ALL + CAST( - 47 AS SIGNED )
----
-47

skipif mysql # not compatible
query I rowsort label-4934
SELECT ALL + CAST ( - 47 AS INTEGER )
----
-47

query II rowsort
SELECT - - 53 AS col2, 28
----
53
28

query I rowsort
SELECT + 31 + + 90 AS col1
----
121

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4937
SELECT ALL 1 - - - ( CASE - - 35 WHEN 90 + + 86 THEN NULL WHEN + CAST( NULL AS SIGNED ) * - ( 7 ) THEN - ( - COALESCE ( + 46, - + 8 + - SUM( 12 ) ) ) ELSE - COUNT( * ) END )
----
2

skipif mysql # not compatible
query I rowsort label-4937
SELECT ALL 1 - - - ( CASE - - 35 WHEN 90 + + 86 THEN NULL WHEN + CAST ( NULL AS INTEGER ) * - ( 7 ) THEN - ( - COALESCE ( + 46, - + 8 + - SUM ( 12 ) ) ) ELSE - COUNT ( * ) END )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-4938
SELECT - COUNT( ALL + 92 )
----
-1

skipif mysql # not compatible
query I rowsort label-4938
SELECT - COUNT ( ALL + 92 )
----
-1

query I rowsort
SELECT ( 72 ) + - 79
----
-7

query I rowsort
SELECT - 54 * 0 AS col1
----
0

query I rowsort
SELECT ( + - 86 ) + + 66 AS col2
----
-20

query I rowsort
SELECT ALL 8 * - 26
----
-208

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4943
SELECT DISTINCT 20 * + + ( ( + 39 ) ) * - NULLIF ( + COALESCE ( - 65, SUM( + 6 ) * + 80 ), - 11 + + 82 + 39 ) * COUNT( * ) + - MAX( DISTINCT + 46 ) DIV MAX( ALL + 12 + 87 * + 36 )
----
50700

skipif mysql # not compatible
query I rowsort label-4943
SELECT DISTINCT 20 * + + ( ( + 39 ) ) * - NULLIF ( + COALESCE ( - 65, SUM ( + 6 ) * + 80 ), - 11 + + 82 + 39 ) * COUNT ( * ) + - MAX ( DISTINCT + 46 ) / MAX ( ALL + 12 + 87 * + 36 )
----
50700

onlyif mysql # aggregate syntax: 
query I rowsort label-4944
SELECT - COUNT( DISTINCT + 0 )
----
-1

skipif mysql # not compatible
query I rowsort label-4944
SELECT - COUNT ( DISTINCT + 0 )
----
-1

query I rowsort
SELECT ALL 72 * 82 AS col0
----
5904

query I rowsort
SELECT DISTINCT 66 + + 52 AS col2
----
118

onlyif mysql # DIV for integer division: 
query I rowsort label-4947
SELECT 15 DIV - 73 * 1
----
0

skipif mysql # not compatible
query I rowsort label-4947
SELECT 15 / - 73 * 1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4948
SELECT ALL COUNT( * ) + - 5 * + - 61
----
306

skipif mysql # not compatible
query I rowsort label-4948
SELECT ALL COUNT ( * ) + - 5 * + - 61
----
306

query I rowsort
SELECT DISTINCT 7 * + 8 + - 16
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-4950
SELECT ( + 62 ) * + COUNT( * )
----
62

skipif mysql # not compatible
query I rowsort label-4950
SELECT ( + 62 ) * + COUNT ( * )
----
62

query I rowsort
SELECT DISTINCT + 54 * + 50 * - - 67 AS col2
----
180900

onlyif mysql # aggregate syntax: 
query I rowsort label-4952
SELECT ALL + 55 * - - 58 + + COUNT( * ) AS col0
----
3191

skipif mysql # not compatible
query I rowsort label-4952
SELECT ALL + 55 * - - 58 + + COUNT ( * ) AS col0
----
3191

onlyif mysql # aggregate syntax: 
query I rowsort label-4953
SELECT DISTINCT - COUNT( * ) * - 43 * + 24 + 97 * - ( - - 49 )
----
-3721

skipif mysql # not compatible
query I rowsort label-4953
SELECT DISTINCT - COUNT ( * ) * - 43 * + 24 + 97 * - ( - - 49 )
----
-3721

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4954
SELECT ALL - 49 * + 78 * + 41 / + + CASE - + 80 WHEN + CAST( + + COALESCE ( - - 76, - - 6 + + 7 ) AS SIGNED ) + + 57 THEN - + 88 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4954
SELECT ALL - 49 * + 78 * + 41 / + + CASE - + 80 WHEN + CAST ( + + COALESCE ( - - 76, - - 6 + + 7 ) AS INTEGER ) + + 57 THEN - + 88 ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT DISTINCT + - 44 AS col1
----
-44

query I rowsort
SELECT DISTINCT + - 30 - + 15 + - + 21 AS col0
----
-66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4957
SELECT - + CAST( NULL AS SIGNED ) * - - 40 + - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4957
SELECT - + CAST ( NULL AS INTEGER ) * - - 40 + - COUNT ( * ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4958
SELECT ALL + 16 * - - 65 * + 27 + + 23 * - 68 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4958
SELECT ALL + 16 * - - 65 * + 27 + + 23 * - 68 + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-4959
SELECT - 2 DIV + 65 * + 13 + - 30 AS col1, ( + 85 )
----
-30
85

skipif mysql # not compatible
query II rowsort label-4959
SELECT - 2 / + 65 * + 13 + - 30 AS col1, ( + 85 )
----
-30
85

onlyif mysql # aggregate syntax: 
query I rowsort label-4960
SELECT - 59 * - - 59 * NULLIF ( - MAX( ALL + 55 ), 23 + + 26 )
----
191455

skipif mysql # not compatible
query I rowsort label-4960
SELECT - 59 * - - 59 * NULLIF ( - MAX ( ALL + 55 ), 23 + + 26 )
----
191455

onlyif mysql # aggregate syntax: 
query I rowsort label-4961
SELECT - CASE 15 WHEN - COUNT( * ) * - + 0 + + COUNT( - - 16 ) + COUNT( * ) * - - 68 + - MAX( DISTINCT + 12 ) * - 28 THEN - 17 * - - 77 END - - 36 * + 4 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4961
SELECT - CASE 15 WHEN - COUNT ( * ) * - + 0 + + COUNT ( - - 16 ) + COUNT ( * ) * - - 68 + - MAX ( DISTINCT + 12 ) * - 28 THEN - 17 * - - 77 END - - 36 * + 4 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4962
SELECT + + 45 DIV + + 63 col0
----
0

skipif mysql # not compatible
query I rowsort label-4962
SELECT + + 45 / + + 63 col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4963
SELECT ALL - 64 * - COUNT( * )
----
64

skipif mysql # not compatible
query I rowsort label-4963
SELECT ALL - 64 * - COUNT ( * )
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-4964
SELECT DISTINCT + 30 * 96 * + COUNT( - 2 ) * + 38
----
109440

skipif mysql # not compatible
query I rowsort label-4964
SELECT DISTINCT + 30 * 96 * + COUNT ( - 2 ) * + 38
----
109440

query I rowsort
SELECT ALL - 75 * - - 47
----
-3525

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4966
SELECT - CAST( NULL AS SIGNED ) / COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4966
SELECT - CAST ( NULL AS INTEGER ) / COUNT ( * ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4967
SELECT ALL CASE 70 WHEN - 35 THEN - MAX( - 41 ) WHEN + 75 + 52 + + 7 THEN 18 WHEN + 98 * + 90 / 52 + + 42 + + NULLIF ( - 95, - CASE + 9 WHEN NULLIF ( 38, + 38 / SUM( - 66 * + 21 ) + - 36 ) + - 90 THEN 25 WHEN 46 THEN + 91 - 10 ELSE - 4 * 56 + + 41 END + + MIN( + 94 ) * - 84 ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4967
SELECT ALL CASE 70 WHEN - 35 THEN - MAX ( - 41 ) WHEN + 75 + 52 + + 7 THEN 18 WHEN + 98 * + 90 / 52 + + 42 + + NULLIF ( - 95, - CASE + 9 WHEN NULLIF ( 38, + 38 / SUM ( - 66 * + 21 ) + - 36 ) + - 90 THEN 25 WHEN 46 THEN + 91 - 10 ELSE - 4 * 56 + + 41 END + + MIN ( + 94 ) * - 84 ) THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4968
SELECT - COUNT( * ) + - 53
----
-54

skipif mysql # not compatible
query I rowsort label-4968
SELECT - COUNT ( * ) + - 53
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-4969
SELECT - COUNT( - + 72 )
----
-1

skipif mysql # not compatible
query I rowsort label-4969
SELECT - COUNT ( - + 72 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4970
SELECT + 61 * + CASE - 37 WHEN + 60 * + ( - 82 ) + + + MAX( DISTINCT - 94 ) + - ( - AVG ( ALL + - 95 ) ) * 82 THEN ( - + 62 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4970
SELECT + 61 * + CASE - 37 WHEN + 60 * + ( - 82 ) + + + MAX ( DISTINCT - 94 ) + - ( - AVG ( ALL + - 95 ) ) * 82 THEN ( - + 62 ) ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT 66 + - + 25
----
41

query I rowsort
SELECT ALL 25 + + 6
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-4973
SELECT - NULLIF ( + - 76, - COUNT( * ) )
----
76

skipif mysql # not compatible
query I rowsort label-4973
SELECT - NULLIF ( + - 76, - COUNT ( * ) )
----
76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4974
SELECT ALL COUNT( * ) * - ( - + CAST( - 26 AS SIGNED ) ) AS col0
----
-26

skipif mysql # not compatible
query I rowsort label-4974
SELECT ALL COUNT ( * ) * - ( - + CAST ( - 26 AS INTEGER ) ) AS col0
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-4975
SELECT + ( 34 ) * 50 - + COUNT( * ) AS col1
----
1699

skipif mysql # not compatible
query I rowsort label-4975
SELECT + ( 34 ) * 50 - + COUNT ( * ) AS col1
----
1699

query I rowsort
SELECT DISTINCT CASE ( + 19 ) WHEN - 93 / + - 1 THEN NULL ELSE 54 END * - 24 + + 25 + - - 48 AS col2
----
-1223

onlyif mysql # aggregate syntax: 
query I rowsort label-4977
SELECT ALL + COUNT( * ) + COUNT( * ) * COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-4977
SELECT ALL + COUNT ( * ) + COUNT ( * ) * COUNT ( * )
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4978
SELECT ALL ( - 16 ) + + ( - - 85 ) + - 43 DIV + 84 + 90 * + COUNT( * )
----
159

skipif mysql # not compatible
query I rowsort label-4978
SELECT ALL ( - 16 ) + + ( - - 85 ) + - 43 / + 84 + 90 * + COUNT ( * )
----
159

onlyif mysql # aggregate syntax: 
query II rowsort label-4979
SELECT + COUNT( * ) AS col1, + ( - 25 ) + + 16 + - + 85
----
1
-94

skipif mysql # not compatible
query II rowsort label-4979
SELECT + COUNT ( * ) AS col1, + ( - 25 ) + + 16 + - + 85
----
1
-94

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4980
SELECT - 15 DIV + - COUNT( * ) + 16 + + 57 AS col0
----
88

skipif mysql # not compatible
query I rowsort label-4980
SELECT - 15 / + - COUNT ( * ) + 16 + + 57 AS col0
----
88

query I rowsort
SELECT ALL - - 59 * 94 * + 22 - 1
----
122011

onlyif mysql # aggregate syntax: 
query II rowsort label-4982
SELECT + 73, - NULLIF ( - 98, - - 84 + 47 - COUNT( ALL - + 68 ) ) AS col1
----
73
98

skipif mysql # not compatible
query II rowsort label-4982
SELECT + 73, - NULLIF ( - 98, - - 84 + 47 - COUNT ( ALL - + 68 ) ) AS col1
----
73
98

query I rowsort
SELECT - - 17 * - + 87
----
-1479

onlyif mysql # DIV for integer division: 
query I rowsort label-4984
SELECT ALL - 11 DIV + 78 col1
----
0

skipif mysql # not compatible
query I rowsort label-4984
SELECT ALL - 11 / + 78 col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4985
SELECT ALL + + ( COUNT( * ) ) col0
----
1

skipif mysql # not compatible
query I rowsort label-4985
SELECT ALL + + ( COUNT ( * ) ) col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4986
SELECT + 77 * + COUNT( * ) * + - 21 * - + 16 AS col2
----
25872

skipif mysql # not compatible
query I rowsort label-4986
SELECT + 77 * + COUNT ( * ) * + - 21 * - + 16 AS col2
----
25872

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4987
SELECT DISTINCT + COALESCE ( + + 76, + - NULLIF ( COALESCE ( - 45, - - 69 * - 62 ), - + 0 * COUNT( * ) ) * - CASE - 7 WHEN + MIN( ALL + 68 ) THEN - + 10 + 9 DIV - CAST( 74 + - 49 AS SIGNED ) END DIV - 61 ) AS col0
----
76

skipif mysql # not compatible
query I rowsort label-4987
SELECT DISTINCT + COALESCE ( + + 76, + - NULLIF ( COALESCE ( - 45, - - 69 * - 62 ), - + 0 * COUNT ( * ) ) * - CASE - 7 WHEN + MIN ( ALL + 68 ) THEN - + 10 + 9 / - CAST ( 74 + - 49 AS INTEGER ) END / - 61 ) AS col0
----
76

query I rowsort
SELECT - 99 + - 79 * - + 92
----
7169

query I rowsort
SELECT ALL + ( + - 74 )
----
-74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4990
SELECT + 57 * + 40 + + 10 + - 63 * CASE - 75 WHEN + 24 THEN - + COALESCE ( - 23, + 74, + + 43 ) ELSE + CAST( + 0 AS SIGNED ) + + 7 END * - 49 * - MIN( + 27 ) + - 8 * 49 + + 35 AS col0
----
-581510

skipif mysql # not compatible
query I rowsort label-4990
SELECT + 57 * + 40 + + 10 + - 63 * CASE - 75 WHEN + 24 THEN - + COALESCE ( - 23, + 74, + + 43 ) ELSE + CAST ( + 0 AS INTEGER ) + + 7 END * - 49 * - MIN ( + 27 ) + - 8 * 49 + + 35 AS col0
----
-581510

onlyif mysql # aggregate syntax: 
query II rowsort label-4991
SELECT - - 15 * + 56 * - + 35, COUNT( * ) AS col1
----
-29400
1

skipif mysql # not compatible
query II rowsort label-4991
SELECT - - 15 * + 56 * - + 35, COUNT ( * ) AS col1
----
-29400
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4992
SELECT + + 4 + + COALESCE ( + + 74, - 87, + 37 ) * - NULLIF ( CASE + 44 WHEN + + 93 THEN NULL WHEN + 50 THEN ( - 95 ) + COUNT( * ) * + + ( + 64 ) END, 10 - 25 ) + 87 * - 74
----
NULL

skipif mysql # not compatible
query I rowsort label-4992
SELECT + + 4 + + COALESCE ( + + 74, - 87, + 37 ) * - NULLIF ( CASE + 44 WHEN + + 93 THEN NULL WHEN + 50 THEN ( - 95 ) + COUNT ( * ) * + + ( + 64 ) END, 10 - 25 ) + 87 * - 74
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4993
SELECT ALL + MAX( ALL - 94 ) AS col0
----
-94

skipif mysql # not compatible
query I rowsort label-4993
SELECT ALL + MAX ( ALL - 94 ) AS col0
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-4994
SELECT ALL COUNT( * ) * - - 73 + 39 * - + 15 * - 83
----
48628

skipif mysql # not compatible
query I rowsort label-4994
SELECT ALL COUNT ( * ) * - - 73 + 39 * - + 15 * - 83
----
48628

query I rowsort
SELECT ALL ( + ( 98 ) )
----
98

query II rowsort
SELECT - 85 col0, - 16 + + 26 * - - 76 * - - 33 col1
----
-85
65192

query II rowsort
SELECT ( + 87 ) * + 83 + - 43 + + + 73 * + 91 AS col1, + 27 * + 69
----
13821
1863

query I rowsort
SELECT ALL NULLIF ( + 28, + 78 )
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-4999
SELECT + ( + COALESCE ( + CASE + + ( - 99 ) WHEN 48 + - 33 THEN NULL WHEN - 59 THEN 52 WHEN - - 39 + 87 + + 55 + + COALESCE ( - 77, + 47 - - 75 - 33 / + MAX( DISTINCT 96 * + 24 ) ) + 48 * + ( - 72 * + 36 + COALESCE ( - 84, + 37, 92 * 47 ) ) THEN NULL END, 1 ) ) * + 22 col2
----
22

skipif mysql # not compatible
query I rowsort label-4999
SELECT + ( + COALESCE ( + CASE + + ( - 99 ) WHEN 48 + - 33 THEN NULL WHEN - 59 THEN 52 WHEN - - 39 + 87 + + 55 + + COALESCE ( - 77, + 47 - - 75 - 33 / + MAX ( DISTINCT 96 * + 24 ) ) + 48 * + ( - 72 * + 36 + COALESCE ( - 84, + 37, 92 * 47 ) ) THEN NULL END, 1 ) ) * + 22 col2
----
22

query I rowsort
SELECT DISTINCT + 99 + - ( + 44 ) AS col1
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-5001
SELECT ALL - 44 + COUNT( * ) AS col2
----
-43

skipif mysql # not compatible
query I rowsort label-5001
SELECT ALL - 44 + COUNT ( * ) AS col2
----
-43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5002
SELECT - 50 AS col2, ( COALESCE ( 27, 5, - 21 * - 63 * 25 / - 79 * + - 36 * - SUM( + 37 ) ) ) + CAST( NULL AS SIGNED )
----
-50
NULL

skipif mysql # not compatible
query II rowsort label-5002
SELECT - 50 AS col2, ( COALESCE ( 27, 5, - 21 * - 63 * 25 / - 79 * + - 36 * - SUM ( + 37 ) ) ) + CAST ( NULL AS INTEGER )
----
-50
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5003
SELECT - 96 + - COUNT( ALL 16 )
----
-97

skipif mysql # not compatible
query I rowsort label-5003
SELECT - 96 + - COUNT ( ALL 16 )
----
-97

query I rowsort
SELECT - 8 * 20
----
-160

onlyif mysql # aggregate syntax: 
query I rowsort label-5005
SELECT ALL - 72 * - SUM( 14 )
----
1008

skipif mysql # not compatible
query I rowsort label-5005
SELECT ALL - 72 * - SUM ( 14 )
----
1008

query I rowsort
SELECT ALL + COALESCE ( - - 43, - + 5 + 58 ) + 14 + - 73
----
-16

query II rowsort
SELECT 25 col2, 90 AS col2
----
25
90

onlyif mysql # DIV for integer division: 
query I rowsort label-5008
SELECT - 60 DIV - 12 AS col1
----
5

skipif mysql # not compatible
query I rowsort label-5008
SELECT - 60 / - 12 AS col1
----
5

query I rowsort
SELECT ALL 72 + 86 + - ( - 39 ) AS col2
----
197

query I rowsort
SELECT - 77 * - COALESCE ( COALESCE ( 97, - 79 * - 18 + + ( + 21 ) ), + NULLIF ( - - NULLIF ( - 44, NULLIF ( 31, + 16 * - 71 + - 95 + 71 + 3 ) ), + 79 + 59 * - 63 ) + + 38 ) AS col1
----
7469

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5011
SELECT ALL ( + 60 ) + 70 * - ( + CAST( 18 AS SIGNED ) ) AS col1
----
-1200

skipif mysql # not compatible
query I rowsort label-5011
SELECT ALL ( + 60 ) + 70 * - ( + CAST ( 18 AS INTEGER ) ) AS col1
----
-1200

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5012
SELECT ALL CAST( + 83 AS SIGNED )
----
83

skipif mysql # not compatible
query I rowsort label-5012
SELECT ALL CAST ( + 83 AS INTEGER )
----
83

query I rowsort
SELECT + 71 + + 23
----
94

query I rowsort
SELECT DISTINCT + COALESCE ( + 59, - - 9 ) - + 8 + 38 AS col1
----
89

query I rowsort
SELECT ALL + 82 - + 32
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-5016
SELECT - NULLIF ( 98, + + 35 ) + - ( + COUNT( * ) ) + MIN( ALL 39 ) * + 62
----
2319

skipif mysql # not compatible
query I rowsort label-5016
SELECT - NULLIF ( 98, + + 35 ) + - ( + COUNT ( * ) ) + MIN ( ALL 39 ) * + 62
----
2319

query I rowsort
SELECT - 34 + + 92 AS col2
----
58

query I rowsort
SELECT ALL + 71 - - - 90
----
-19

query I rowsort
SELECT 80 * - 47 col2
----
-3760

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5020
SELECT ALL - - CAST( COUNT( DISTINCT + + 46 ) AS SIGNED ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5020
SELECT ALL - - CAST ( COUNT ( DISTINCT + + 46 ) AS INTEGER ) AS col2
----
1

query II rowsort
SELECT + - 26 AS col0, + 92 * 46 AS col2
----
-26
4232

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5022
SELECT + + 59 * 18 / - + 18 * - + 32 + + - ( - CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5022
SELECT + + 59 * 18 / - + 18 * - + 32 + + - ( - CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

query I rowsort
SELECT ALL 44 * 91 AS col1
----
4004

onlyif mysql # aggregate syntax: 
query I rowsort label-5024
SELECT CASE 36 WHEN - 38 THEN NULL WHEN - 4 + - ( 22 ) * - - 92 THEN 80 - - 0 + - COUNT( ALL + 50 ) + - 52 WHEN + + 76 + - 88 + - 88 THEN NULL END * + 89 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5024
SELECT CASE 36 WHEN - 38 THEN NULL WHEN - 4 + - ( 22 ) * - - 92 THEN 80 - - 0 + - COUNT ( ALL + 50 ) + - 52 WHEN + + 76 + - 88 + - 88 THEN NULL END * + 89 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5025
SELECT - CAST( NULL AS SIGNED ) / - CAST( NULL AS SIGNED ) + - 25 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5025
SELECT - CAST ( NULL AS INTEGER ) / - CAST ( NULL AS INTEGER ) + - 25 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5026
SELECT ALL + 89 * - NULLIF ( 51, + MAX( ALL + + 15 ) * + 6 * 33 ) - 94 + - + 33 AS col1
----
-4666

skipif mysql # not compatible
query I rowsort label-5026
SELECT ALL + 89 * - NULLIF ( 51, + MAX ( ALL + + 15 ) * + 6 * 33 ) - 94 + - + 33 AS col1
----
-4666

onlyif mysql # aggregate syntax: 
query I rowsort label-5027
SELECT COUNT( * ) + - 7 col2
----
-6

skipif mysql # not compatible
query I rowsort label-5027
SELECT COUNT ( * ) + - 7 col2
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-5028
SELECT ALL - + CASE - ( - 50 ) WHEN + 6 * + SUM( + 69 ) + + 42 - - + 8 + + ( 7 ) THEN + + CASE + + 15 WHEN + 60 + + + 68 THEN 36 * + 31 END * - COUNT( * ) WHEN + MIN( 8 ) THEN + COUNT( * ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5028
SELECT ALL - + CASE - ( - 50 ) WHEN + 6 * + SUM ( + 69 ) + + 42 - - + 8 + + ( 7 ) THEN + + CASE + + 15 WHEN + 60 + + + 68 THEN 36 * + 31 END * - COUNT ( * ) WHEN + MIN ( 8 ) THEN + COUNT ( * ) END AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5029
SELECT + COUNT( * ) DIV + 61 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5029
SELECT + COUNT ( * ) / + 61 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5030
SELECT CAST( + + CAST( - + 13 AS SIGNED ) AS SIGNED ) * - + 73, + 12 + 1 + - CASE 74 WHEN + 50 * - - 71 * + COUNT( * ) * MAX( + 7 ) + + + COUNT( * ) - + 76 - - 20 - 50 / 94 / - 77 THEN + 42 / 93 END AS col1
----
949
NULL

skipif mysql # not compatible
query II rowsort label-5030
SELECT CAST ( + + CAST ( - + 13 AS INTEGER ) AS INTEGER ) * - + 73, + 12 + 1 + - CASE 74 WHEN + 50 * - - 71 * + COUNT ( * ) * MAX ( + 7 ) + + + COUNT ( * ) - + 76 - - 20 - 50 / 94 / - 77 THEN + 42 / 93 END AS col1
----
949
NULL

query I rowsort
SELECT - 50 * 8
----
-400

query I rowsort
SELECT 26 + 16 + + 49
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-5033
SELECT DISTINCT - MAX( - 94 ) AS col1
----
94

skipif mysql # not compatible
query I rowsort label-5033
SELECT DISTINCT - MAX ( - 94 ) AS col1
----
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5034
SELECT ALL - CAST( - 53 AS SIGNED )
----
53

skipif mysql # not compatible
query I rowsort label-5034
SELECT ALL - CAST ( - 53 AS INTEGER )
----
53

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5035
SELECT 74 DIV + COUNT( * ) AS col0
----
74

skipif mysql # not compatible
query I rowsort label-5035
SELECT 74 / + COUNT ( * ) AS col0
----
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5036
SELECT ALL 17 + + + 51 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5036
SELECT ALL 17 + + + 51 + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5037
SELECT + 43, CASE 34 WHEN 14 * 55 THEN - + COALESCE ( 30, + AVG ( ALL - 38 ) * - 23 - + COUNT( * ), 68 * + - 76 ) + - COUNT( * ) ELSE NULL END * - ( - 50 ) * 77 - + 8 * - 62 AS col0
----
43
NULL

skipif mysql # not compatible
query II rowsort label-5037
SELECT + 43, CASE 34 WHEN 14 * 55 THEN - + COALESCE ( 30, + AVG ( ALL - 38 ) * - 23 - + COUNT ( * ), 68 * + - 76 ) + - COUNT ( * ) ELSE NULL END * - ( - 50 ) * 77 - + 8 * - 62 AS col0
----
43
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5038
SELECT DISTINCT + 62 DIV 36 + 25
----
26

skipif mysql # not compatible
query I rowsort label-5038
SELECT DISTINCT + 62 / 36 + 25
----
26

onlyif mysql # DIV for integer division: 
query I rowsort label-5039
SELECT ALL CASE + 28 WHEN - 86 THEN + - 70 + 83 ELSE + + 49 END + - 13 DIV + 23 AS col2
----
49

skipif mysql # not compatible
query I rowsort label-5039
SELECT ALL CASE + 28 WHEN - 86 THEN + - 70 + 83 ELSE + + 49 END + - 13 / + 23 AS col2
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-5040
SELECT DISTINCT - 58 + SUM( - 89 ) AS col1
----
-147

skipif mysql # not compatible
query I rowsort label-5040
SELECT DISTINCT - 58 + SUM ( - 89 ) AS col1
----
-147

query II rowsort
SELECT DISTINCT 91 + 4, 65 AS col2
----
95
65

query I rowsort
SELECT 9 * - 54 * - 63
----
30618

query I rowsort
SELECT DISTINCT NULLIF ( 56, 27 ) * - - 88 AS col1
----
4928

query I rowsort
SELECT DISTINCT 31 + - 87 * + 92 + - 67
----
-8040

onlyif mysql # DIV for integer division: 
query I rowsort label-5045
SELECT 24 - + - COALESCE ( 77, - + 32 + 0, - 8 DIV 92 * - 24 - - + ( ( 64 ) ) ) AS col2
----
101

skipif mysql # not compatible
query I rowsort label-5045
SELECT 24 - + - COALESCE ( 77, - + 32 + 0, - 8 / 92 * - 24 - - + ( ( 64 ) ) ) AS col2
----
101

onlyif mysql # aggregate syntax: 
query I rowsort label-5046
SELECT 34 - - 60 + - NULLIF ( SUM( DISTINCT - - 90 ), 58 )
----
4

skipif mysql # not compatible
query I rowsort label-5046
SELECT 34 - - 60 + - NULLIF ( SUM ( DISTINCT - - 90 ), 58 )
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5047
SELECT ALL - 50 - + CAST( - + COUNT( * ) AS SIGNED ) * 69
----
19

skipif mysql # not compatible
query I rowsort label-5047
SELECT ALL - 50 - + CAST ( - + COUNT ( * ) AS INTEGER ) * 69
----
19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5048
SELECT 14 * + ( CASE + - 10 WHEN - MIN( + 63 ) + - CAST( NULL AS SIGNED ) + + 50 THEN NULL ELSE - 43 * + - 11 END )
----
6622

skipif mysql # not compatible
query I rowsort label-5048
SELECT 14 * + ( CASE + - 10 WHEN - MIN ( + 63 ) + - CAST ( NULL AS INTEGER ) + + 50 THEN NULL ELSE - 43 * + - 11 END )
----
6622

query I rowsort
SELECT 50 * - 6 * - 2 AS col2
----
600

query I rowsort
SELECT ALL - 41 * + NULLIF ( + 23, + 16 ) AS col1
----
-943

query II rowsort
SELECT DISTINCT - + 15 * 54 AS col2, + 31 col0
----
-810
31

query I rowsort
SELECT - 23 + + ( - 26 )
----
-49

onlyif mysql # DIV for integer division: 
query II rowsort label-5053
SELECT ALL - + 99 - 21 + - + 77 * 12 DIV - 86 AS col0, + 57
----
-110
57

skipif mysql # not compatible
query II rowsort label-5053
SELECT ALL - + 99 - 21 + - + 77 * 12 / - 86 AS col0, + 57
----
-110
57

onlyif mysql # aggregate syntax: 
query I rowsort label-5054
SELECT + 32 * + - 61 * - COUNT( ALL + + 41 ) + 4
----
1956

skipif mysql # not compatible
query I rowsort label-5054
SELECT + 32 * + - 61 * - COUNT ( ALL + + 41 ) + 4
----
1956

query I rowsort
SELECT ALL + - 86 * ( + + 30 ) * - 58 AS col0
----
149640

onlyif mysql # DIV for integer division: 
query I rowsort label-5056
SELECT + 98 DIV + 45 + + - 25 AS col1
----
-23

skipif mysql # not compatible
query I rowsort label-5056
SELECT + 98 / + 45 + + - 25 AS col1
----
-23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-5057
SELECT + COALESCE ( + - 18, - 59, + CASE + ( - CAST( NULL AS SIGNED ) ) WHEN + - 59 THEN 73 ELSE NULL END DIV - + 90 * - - 25 DIV NULLIF ( ( - 99 ), 85 ) * - 87 * + - COUNT( * ) * - + CAST( - CAST( NULL AS DECIMAL ) AS SIGNED ) ) DIV 42 + - 12 AS col1
----
-12

skipif mysql # not compatible
query I rowsort label-5057
SELECT + COALESCE ( + - 18, - 59, + CASE + ( - CAST ( NULL AS INTEGER ) ) WHEN + - 59 THEN 73 ELSE NULL END / - + 90 * - - 25 / NULLIF ( ( - 99 ), 85 ) * - 87 * + - COUNT ( * ) * - + CAST ( - CAST ( NULL AS REAL ) AS INTEGER ) ) / 42 + - 12 AS col1
----
-12

query I rowsort
SELECT ALL - + 42 AS col1
----
-42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5059
SELECT CAST( + - 36 AS SIGNED ) * SUM( DISTINCT 98 )
----
-3528

skipif mysql # not compatible
query I rowsort label-5059
SELECT CAST ( + - 36 AS INTEGER ) * SUM ( DISTINCT 98 )
----
-3528

query I rowsort
SELECT ALL + - CASE - 87 WHEN - + 17 + - - 42 * - 18 * + + 97 THEN + 44 WHEN - - 31 + - + ( + - 68 ) + + 54 * - 9 THEN NULL END + - 69
----
NULL

query I rowsort
SELECT 51 + + + 66
----
117

query II rowsort
SELECT ALL 78 * - 11 col0, - 8 AS col1
----
-858
-8

query I rowsort
SELECT - 48 * - 29
----
1392

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5064
SELECT ALL - CAST( 23 AS SIGNED ) * 7 col1
----
-161

skipif mysql # not compatible
query I rowsort label-5064
SELECT ALL - CAST ( 23 AS INTEGER ) * 7 col1
----
-161

query I rowsort
SELECT ALL + 2 + + 87 * - + ( + 22 ) col0
----
-1912

query I rowsort
SELECT ALL - 33 + - 15 AS col0
----
-48

query I rowsort
SELECT DISTINCT + 74 + - 51 AS col1
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-5068
SELECT ALL MIN( 75 ) + NULLIF ( + 65, + COUNT( * ) * 22 ) * + 69 AS col0
----
4560

skipif mysql # not compatible
query I rowsort label-5068
SELECT ALL MIN ( 75 ) + NULLIF ( + 65, + COUNT ( * ) * 22 ) * + 69 AS col0
----
4560

onlyif mysql # DIV for integer division: 
query I rowsort label-5069
SELECT 9 DIV 60 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5069
SELECT 9 / 60 AS col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5070
SELECT DISTINCT - 51, - SUM( - ( + 65 ) ) * - 15 * 59 + + 78 AS col1
----
-51
-57447

skipif mysql # not compatible
query II rowsort label-5070
SELECT DISTINCT - 51, - SUM ( - ( + 65 ) ) * - 15 * 59 + + 78 AS col1
----
-51
-57447

query I rowsort
SELECT ALL NULLIF ( + 36, - + 80 ) + 26 * - 79
----
-2018

onlyif mysql # aggregate syntax: 
query I rowsort label-5072
SELECT CASE - 65 WHEN - 37 * 94 THEN + NULLIF ( + - COUNT( * ), + + 77 * + - 82 * - 75 ) / + 15 + 79 + + 75 * + 40 - ( - 76 ) * + 39 * + 89 + - - 12 WHEN + COUNT( * ) THEN NULL END + 71
----
NULL

skipif mysql # not compatible
query I rowsort label-5072
SELECT CASE - 65 WHEN - 37 * 94 THEN + NULLIF ( + - COUNT ( * ), + + 77 * + - 82 * - 75 ) / + 15 + 79 + + 75 * + 40 - ( - 76 ) * + 39 * + 89 + - - 12 WHEN + COUNT ( * ) THEN NULL END + 71
----
NULL

query I rowsort
SELECT ALL + 45 + - 4 AS col2
----
41

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5074
SELECT ALL MIN( + + 12 ) DIV + 9 + 69 AS col1
----
70

skipif mysql # not compatible
query I rowsort label-5074
SELECT ALL MIN ( + + 12 ) / + 9 + 69 AS col1
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-5075
SELECT ALL MIN( DISTINCT + 83 ) + 79 * + 3
----
320

skipif mysql # not compatible
query I rowsort label-5075
SELECT ALL MIN ( DISTINCT + 83 ) + 79 * + 3
----
320

onlyif mysql # aggregate syntax: 
query I rowsort label-5076
SELECT COUNT( * ) * + 34 AS col0
----
34

skipif mysql # not compatible
query I rowsort label-5076
SELECT COUNT ( * ) * + 34 AS col0
----
34

query II rowsort
SELECT DISTINCT - 41, - 89 + - + 93 AS col0
----
-41
-182

query I rowsort
SELECT ALL 72 - 14 * - ( - 37 ) AS col0
----
-446

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5079
SELECT ALL COUNT( * ) DIV + - 27 * + 50, 77 AS col0
----
0
77

skipif mysql # not compatible
query II rowsort label-5079
SELECT ALL COUNT ( * ) / + - 27 * + 50, 77 AS col0
----
0
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5080
SELECT DISTINCT 1 - NULLIF ( - + 95, 48 * + + COUNT( * ) + NULLIF ( + - 84, - 9 - + COUNT( * ) ) + - 66 ) + - CAST( NULL AS SIGNED ) * SUM( - + CAST( - 99 AS SIGNED ) ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5080
SELECT DISTINCT 1 - NULLIF ( - + 95, 48 * + + COUNT ( * ) + NULLIF ( + - 84, - 9 - + COUNT ( * ) ) + - 66 ) + - CAST ( NULL AS INTEGER ) * SUM ( - + CAST ( - 99 AS INTEGER ) ) col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5081
SELECT ALL 36 - - + CAST( NULL AS SIGNED ) + 19
----
NULL

skipif mysql # not compatible
query I rowsort label-5081
SELECT ALL 36 - - + CAST ( NULL AS INTEGER ) + 19
----
NULL

query II rowsort
SELECT 5 * 14 * + NULLIF ( + + NULLIF ( + 11, - - 40 ), + + 7 * + 35 ) AS col2, 98
----
770
98

onlyif mysql # aggregate syntax: 
query II rowsort label-5083
SELECT 66 AS col2, MAX( ALL - - 82 ) * 1 * + - 54 AS col0
----
66
-4428

skipif mysql # not compatible
query II rowsort label-5083
SELECT 66 AS col2, MAX ( ALL - - 82 ) * 1 * + - 54 AS col0
----
66
-4428

onlyif mysql # aggregat