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 # aggregate syntax: 
query I rowsort label-5084
SELECT 43 + - COUNT( * )
----
42

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

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5085
SELECT ALL 71 AS col1, 71 * + - CAST( NULL AS DECIMAL ) AS col2
----
71
NULL

skipif mysql # not compatible
query II rowsort label-5085
SELECT ALL 71 AS col1, 71 * + - CAST ( NULL AS REAL ) AS col2
----
71
NULL

query I rowsort
SELECT ALL 89 * - + 22 AS col0
----
-1958

query I rowsort
SELECT ALL 0 * - 89 AS col1
----
0

query I rowsort
SELECT + 12 + 42 AS col2
----
54

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

query I rowsort
SELECT - - 44 * - 42
----
-1848

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5091
SELECT ALL - 6 AS col1, + COUNT( * ) + - COUNT( - - 27 ) + 41 - 61 - - + COALESCE ( - 90, - + 4 ) + - CAST( NULL AS SIGNED ) + 54 * 53 + 14 * + 23
----
-6
NULL

skipif mysql # not compatible
query II rowsort label-5091
SELECT ALL - 6 AS col1, + COUNT ( * ) + - COUNT ( - - 27 ) + 41 - 61 - - + COALESCE ( - 90, - + 4 ) + - CAST ( NULL AS INTEGER ) + 54 * 53 + 14 * + 23
----
-6
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5092
SELECT ALL - 89 DIV + 32 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-5092
SELECT ALL - 89 / + 32 AS col2
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-5093
SELECT - SUM( ALL 56 ) * 42 + 75
----
-2277

skipif mysql # not compatible
query I rowsort label-5093
SELECT - SUM ( ALL 56 ) * 42 + 75
----
-2277

onlyif mysql # DIV for integer division: 
query II rowsort label-5094
SELECT - 88 AS col2, 77 + - 44 - 44 DIV - 30 col0
----
-88
34

skipif mysql # not compatible
query II rowsort label-5094
SELECT - 88 AS col2, 77 + - 44 - 44 / - 30 col0
----
-88
34

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

skipif mysql # not compatible
query I rowsort label-5095
SELECT - MAX ( ALL - - 32 )
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-5096
SELECT ALL - MIN( ALL + 93 ) + - CASE + COUNT( * ) WHEN - - COUNT( * ) / - - 51 THEN + 25 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5096
SELECT ALL - MIN ( ALL + 93 ) + - CASE + COUNT ( * ) WHEN - - COUNT ( * ) / - - 51 THEN + 25 END
----
NULL

query I rowsort
SELECT - - 92 + 1 AS col0
----
93

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5098
SELECT - + 17 DIV - COALESCE ( SUM( 38 ), + 55 * 0 )
----
0

skipif mysql # not compatible
query I rowsort label-5098
SELECT - + 17 / - COALESCE ( SUM ( 38 ), + 55 * 0 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5099
SELECT DISTINCT + 93 * ( + 97 ) + + 40 DIV + 98 + + + 63 AS col0
----
9084

skipif mysql # not compatible
query I rowsort label-5099
SELECT DISTINCT + 93 * ( + 97 ) + + 40 / + 98 + + + 63 AS col0
----
9084

query II rowsort
SELECT ALL ( - 72 ) * 25 * 96 + - 71 + - 46 AS col1, 11 AS col1
----
-172917
11

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5102
SELECT DISTINCT 54 * + + 70 + - + 71 + - + COALESCE ( + 88, + SUM( DISTINCT + 81 ) * - MAX( CAST( 30 AS SIGNED ) ) )
----
3621

skipif mysql # not compatible
query I rowsort label-5102
SELECT DISTINCT 54 * + + 70 + - + 71 + - + COALESCE ( + 88, + SUM ( DISTINCT + 81 ) * - MAX ( CAST ( 30 AS INTEGER ) ) )
----
3621

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5103
SELECT - ( - - SUM( - 95 ) ) DIV + MAX( DISTINCT - + 96 ) + + + 11 AS col2
----
11

skipif mysql # not compatible
query I rowsort label-5103
SELECT - ( - - SUM ( - 95 ) ) / + MAX ( DISTINCT - + 96 ) + + + 11 AS col2
----
11

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5105
SELECT DISTINCT + 9 AS col2, NULLIF ( 7, + 95 + - COUNT( * ) + + COUNT( + - 44 ) / + + 96 + + 25 ) AS col2
----
9
7

skipif mysql # not compatible
query II rowsort label-5105
SELECT DISTINCT + 9 AS col2, NULLIF ( 7, + 95 + - COUNT ( * ) + + COUNT ( + - 44 ) / + + 96 + + 25 ) AS col2
----
9
7

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5107
SELECT ALL 75 * + - 67 + - - COUNT( * ) AS col2
----
-5024

skipif mysql # not compatible
query I rowsort label-5107
SELECT ALL 75 * + - 67 + - - COUNT ( * ) AS col2
----
-5024

onlyif mysql # aggregate syntax: 
query I rowsort label-5108
SELECT ALL + 51 * 14 * + - COALESCE ( 51, 0 ) - SUM( ALL 55 ) * - + 69
----
-32619

skipif mysql # not compatible
query I rowsort label-5108
SELECT ALL + 51 * 14 * + - COALESCE ( 51, 0 ) - SUM ( ALL 55 ) * - + 69
----
-32619

onlyif mysql # aggregate syntax: 
query I rowsort label-5109
SELECT ALL MIN( DISTINCT 2 ) * + - COUNT( * ) col2
----
-2

skipif mysql # not compatible
query I rowsort label-5109
SELECT ALL MIN ( DISTINCT 2 ) * + - COUNT ( * ) col2
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5110
SELECT - 78 * CAST( - + 96 AS SIGNED )
----
7488

skipif mysql # not compatible
query I rowsort label-5110
SELECT - 78 * CAST ( - + 96 AS INTEGER )
----
7488

query I rowsort
SELECT DISTINCT + 68 * + - 80 col0
----
-5440

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5112
SELECT + CASE CAST( NULL AS SIGNED ) WHEN - ( 71 ) * + - 65 - - - 66 + + CAST( - + 94 AS SIGNED ) THEN + 12 / - - 85 + COUNT( * ) - 51 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5112
SELECT + CASE CAST ( NULL AS INTEGER ) WHEN - ( 71 ) * + - 65 - - - 66 + + CAST ( - + 94 AS INTEGER ) THEN + 12 / - - 85 + COUNT ( * ) - 51 ELSE NULL END
----
NULL

query I rowsort
SELECT - 42 * + 93 AS col2
----
-3906

onlyif mysql # aggregate syntax: 
query I rowsort label-5114
SELECT - 19 - + COALESCE ( - COUNT( * ), - 70, - + 29 )
----
-18

skipif mysql # not compatible
query I rowsort label-5114
SELECT - 19 - + COALESCE ( - COUNT ( * ), - 70, - + 29 )
----
-18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5115
SELECT + SUM( + 73 ) * 6 DIV + 24 * COUNT( * ) AS col2
----
18

skipif mysql # not compatible
query I rowsort label-5115
SELECT + SUM ( + 73 ) * 6 / + 24 * COUNT ( * ) AS col2
----
18

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

query I rowsort
SELECT + 71 + + 47 + 72 AS col1
----
190

onlyif mysql # aggregate syntax: 
query I rowsort label-5118
SELECT - NULLIF ( 16, + 29 + + - ( - COUNT( * ) ) * - 85 ) AS col2
----
-16

skipif mysql # not compatible
query I rowsort label-5118
SELECT - NULLIF ( 16, + 29 + + - ( - COUNT ( * ) ) * - 85 ) AS col2
----
-16

query I rowsort
SELECT ALL 53 * + 33 + + - 97 AS col1
----
1652

query I rowsort
SELECT - 58 + 85 AS col2
----
27

onlyif mysql # aggregate syntax: 
query II rowsort label-5121
SELECT + 27 - - 46, 13 + + + COUNT( * ) AS col0
----
73
14

skipif mysql # not compatible
query II rowsort label-5121
SELECT + 27 - - 46, 13 + + + COUNT ( * ) AS col0
----
73
14

onlyif mysql # aggregate syntax: 
query I rowsort label-5122
SELECT - 67 * - - 45 * + + MAX( DISTINCT + 62 ) + + SUM( COALESCE ( + 2, + 45 ) )
----
-186928

skipif mysql # not compatible
query I rowsort label-5122
SELECT - 67 * - - 45 * + + MAX ( DISTINCT + 62 ) + + SUM ( COALESCE ( + 2, + 45 ) )
----
-186928

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5123
SELECT + + 82 * 1 - - + CAST( NULL AS SIGNED ) + 54 / - 65 col1, + COUNT( * ) AS col2
----
NULL
1

skipif mysql # not compatible
query II rowsort label-5123
SELECT + + 82 * 1 - - + CAST ( NULL AS INTEGER ) + 54 / - 65 col1, + COUNT ( * ) AS col2
----
NULL
1

query I rowsort
SELECT + 41 - - - 16
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-5125
SELECT ALL NULLIF ( COUNT( * ), - 68 * 53 / + 46 + - 78 - + 97 ) * + 15
----
15

skipif mysql # not compatible
query I rowsort label-5125
SELECT ALL NULLIF ( COUNT ( * ), - 68 * 53 / + 46 + - 78 - + 97 ) * + 15
----
15

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

skipif mysql # not compatible
query I rowsort label-5126
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - 17 - - 45
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5127
SELECT ALL - 1 + + 44 AS col0, + CAST( NULL AS SIGNED )
----
43
NULL

skipif mysql # not compatible
query II rowsort label-5127
SELECT ALL - 1 + + 44 AS col0, + CAST ( NULL AS INTEGER )
----
43
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5128
SELECT + - NULLIF ( MIN( + + 22 ), - - 8 ) + - - CASE + MAX( + 42 ) WHEN 51 - + 58 + + - 7 * + 76 + + 64 + 3 * + + COUNT( 78 ) * 66 * 39 / - 11 THEN + 18 / 61 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5128
SELECT + - NULLIF ( MIN ( + + 22 ), - - 8 ) + - - CASE + MAX ( + 42 ) WHEN 51 - + 58 + + - 7 * + 76 + + 64 + 3 * + + COUNT ( 78 ) * 66 * 39 / - 11 THEN + 18 / 61 END AS col1
----
NULL

query I rowsort
SELECT + + 63 + + 43
----
106

query I rowsort
SELECT DISTINCT 82 * + + ( - + 42 )
----
-3444

query I rowsort
SELECT ALL + ( + + 40 ) AS col1
----
40

query I rowsort
SELECT ALL 0 + + 86 AS col0
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-5133
SELECT ALL - 8 + 19 * - CASE + 37 WHEN - + 54 * - 36 + - + 38 * + + 49 THEN - 24 + + 37 - - 52 WHEN + 56 THEN - MAX( DISTINCT - ( 14 ) ) + + + 9 + 87 END / + 46
----
NULL

skipif mysql # not compatible
query I rowsort label-5133
SELECT ALL - 8 + 19 * - CASE + 37 WHEN - + 54 * - 36 + - + 38 * + + 49 THEN - 24 + + 37 - - 52 WHEN + 56 THEN - MAX ( DISTINCT - ( 14 ) ) + + + 9 + 87 END / + 46
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5134
SELECT DISTINCT COALESCE ( - 90, - + COUNT( * ), + 25 DIV - 28 * COUNT( * ) - 58 + 34 * + 22 + - 67 DIV - + COUNT( * ) * - 32 ) AS col0, + 60 AS col2
----
-90
60

skipif mysql # not compatible
query II rowsort label-5134
SELECT DISTINCT COALESCE ( - 90, - + COUNT ( * ), + 25 / - 28 * COUNT ( * ) - 58 + 34 * + 22 + - 67 / - + COUNT ( * ) * - 32 ) AS col0, + 60 AS col2
----
-90
60

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5136
SELECT + MIN( DISTINCT ( + + 12 ) ) AS col0
----
12

skipif mysql # not compatible
query I rowsort label-5136
SELECT + MIN ( DISTINCT ( + + 12 ) ) AS col0
----
12

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5138
SELECT ALL + CASE + 33 WHEN - ( + COUNT( * ) ) THEN - + 79 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5138
SELECT ALL + CASE + 33 WHEN - ( + COUNT ( * ) ) THEN - + 79 END AS col1
----
NULL

query I rowsort
SELECT + + 19 + 74
----
93

query I rowsort
SELECT + - 45 + + 31
----
-14

query I rowsort
SELECT DISTINCT + 45 * 54
----
2430

onlyif mysql # DIV for integer division: 
query I rowsort label-5142
SELECT DISTINCT 32 DIV - 89 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5142
SELECT DISTINCT 32 / - 89 AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5143
SELECT ALL + 7 DIV + 67 - - 46 AS col2
----
46

skipif mysql # not compatible
query I rowsort label-5143
SELECT ALL + 7 / + 67 - - 46 AS col2
----
46

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

query I rowsort
SELECT - 61 * - 79 * 15
----
72285

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5146
SELECT DISTINCT 84 DIV - ( 21 ) - - COALESCE ( + COUNT( * ), + 70 + + + 82, + COUNT( DISTINCT 36 ) )
----
-3

skipif mysql # not compatible
query I rowsort label-5146
SELECT DISTINCT 84 / - ( 21 ) - - COALESCE ( + COUNT ( * ), + 70 + + + 82, + COUNT ( DISTINCT 36 ) )
----
-3

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5148
SELECT CASE + - COALESCE ( - ( ( + 20 ) ), COALESCE ( ( + + NULLIF ( 92, 66 ) ), + 44 ) * + - 34 ) WHEN + CASE + 93 WHEN 23 * + + 65 THEN + ( CAST( NULL AS SIGNED ) ) END THEN 31 - + 6 END * - 42 + ( + 78 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5148
SELECT CASE + - COALESCE ( - ( ( + 20 ) ), COALESCE ( ( + + NULLIF ( 92, 66 ) ), + 44 ) * + - 34 ) WHEN + CASE + 93 WHEN 23 * + + 65 THEN + ( CAST ( NULL AS INTEGER ) ) END THEN 31 - + 6 END * - 42 + ( + 78 ) AS col2
----
NULL

query I rowsort
SELECT - 55 + 77 + + 95 AS col0
----
117

onlyif mysql # DIV for integer division: 
query I rowsort label-5150
SELECT ALL + COALESCE ( 78, 14 DIV + 58 ) DIV 3 - - ( 36 ) * + + ( + ( 40 ) )
----
1466

skipif mysql # not compatible
query I rowsort label-5150
SELECT ALL + COALESCE ( 78, 14 / + 58 ) / 3 - - ( 36 ) * + + ( + ( 40 ) )
----
1466

query I rowsort
SELECT - 31 + + - 51 AS col1
----
-82

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

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

skipif mysql # not compatible
query I rowsort label-5153
SELECT + MIN ( + 62 )
----
62

query I rowsort
SELECT 14 + - NULLIF ( - 49, - - 68 ) AS col0
----
63

query I rowsort
SELECT 50 * + 77 * - 60
----
-231000

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5157
SELECT - ( + - SUM( DISTINCT - 99 ) ) * + 80 + 24 * 26 - + - COUNT( * )
----
-7295

skipif mysql # not compatible
query I rowsort label-5157
SELECT - ( + - SUM ( DISTINCT - 99 ) ) * + 80 + 24 * 26 - + - COUNT ( * )
----
-7295

query I rowsort
SELECT ALL + 19 * + 78
----
1482

query II rowsort
SELECT 40 * + 8 * 70 AS col2, 78 AS col2
----
22400
78

query I rowsort
SELECT DISTINCT 0 + - 47
----
-47

query I rowsort
SELECT DISTINCT + 37 * - + 48
----
-1776

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5162
SELECT 23 * MIN( + 38 ) AS col2, - 9 DIV + 56
----
874
0

skipif mysql # not compatible
query II rowsort label-5162
SELECT 23 * MIN ( + 38 ) AS col2, - 9 / + 56
----
874
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5163
SELECT MIN( ALL CAST( NULL AS SIGNED ) ) + + 17 / 20 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5163
SELECT MIN ( ALL CAST ( NULL AS INTEGER ) ) + + 17 / 20 col1
----
NULL

query II rowsort
SELECT 18 AS col2, 50
----
18
50

onlyif mysql # DIV for integer division: 
query II rowsort label-5165
SELECT ALL - 97 + - 80 + + - 97 + ( - 95 ) AS col0, 22 DIV - 5 AS col1
----
-369
-4

skipif mysql # not compatible
query II rowsort label-5165
SELECT ALL - 97 + - 80 + + - 97 + ( - 95 ) AS col0, 22 / - 5 AS col1
----
-369
-4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5166
SELECT + CAST( 99 AS SIGNED ) AS col0
----
99

skipif mysql # not compatible
query I rowsort label-5166
SELECT + CAST ( 99 AS INTEGER ) AS col0
----
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5167
SELECT - 1 + COALESCE ( - ( 73 ), + ( + - 27 ) ) * - SUM( DISTINCT + 97 ) * + CAST( NULL AS SIGNED ) + - 1 AS col2, 35 + 35
----
NULL
70

skipif mysql # not compatible
query II rowsort label-5167
SELECT - 1 + COALESCE ( - ( 73 ), + ( + - 27 ) ) * - SUM ( DISTINCT + 97 ) * + CAST ( NULL AS INTEGER ) + - 1 AS col2, 35 + 35
----
NULL
70

query I rowsort
SELECT DISTINCT - - CASE 27 WHEN + 59 * + - 0 + + 86 * - 19 * + - ( - 95 ) THEN 61 ELSE NULL END + - - 20 + - - 85
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5169
SELECT DISTINCT + 89 + + 0 + - 46 - - + 68 * + + COUNT( * ) * + 92 + - 33
----
6266

skipif mysql # not compatible
query I rowsort label-5169
SELECT DISTINCT + 89 + + 0 + - 46 - - + 68 * + + COUNT ( * ) * + 92 + - 33
----
6266

query I rowsort
SELECT + COALESCE ( - ( - 68 ), + 74 + ( 99 ) * + + 52 + - - 87 * 37 * - - 29 ) col2
----
68

onlyif mysql # DIV for integer division: 
query I rowsort label-5171
SELECT ALL - 45 DIV - 62 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5171
SELECT ALL - 45 / - 62 AS col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5172
SELECT MIN( ALL - 60 ) * + 4 AS col2, + 41 col1
----
-240
41

skipif mysql # not compatible
query II rowsort label-5172
SELECT MIN ( ALL - 60 ) * + 4 AS col2, + 41 col1
----
-240
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5173
SELECT 18 + + 45 * + + 16 * - SUM( ALL - - CAST( NULL AS SIGNED ) ) AS col2
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5175
SELECT ALL - MAX( 19 ) - + 10
----
-29

skipif mysql # not compatible
query I rowsort label-5175
SELECT ALL - MAX ( 19 ) - + 10
----
-29

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

query I rowsort
SELECT DISTINCT + 21 * - 44 - + 76 + + + 81
----
-919

query I rowsort
SELECT 66 - 53
----
13

query I rowsort
SELECT ALL 0 * - 60 * 13
----
0

query II rowsort
SELECT ALL - 80 AS col0, - 92 * - 21 AS col2
----
-80
1932

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5181
SELECT CAST( NULL AS SIGNED ) * 8
----
NULL

skipif mysql # not compatible
query I rowsort label-5181
SELECT CAST ( NULL AS INTEGER ) * 8
----
NULL

query II rowsort
SELECT 58 AS col0, 79
----
58
79

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5183
SELECT ALL - 63, CAST( - 76 AS SIGNED ) * - ( 26 ) + - CASE + + 42 WHEN 75 THEN 97 ELSE NULL END AS col2
----
-63
NULL

skipif mysql # not compatible
query II rowsort label-5183
SELECT ALL - 63, CAST ( - 76 AS INTEGER ) * - ( 26 ) + - CASE + + 42 WHEN 75 THEN 97 ELSE NULL END AS col2
----
-63
NULL

query II rowsort
SELECT 66, 47 AS col0
----
66
47

query I rowsort
SELECT 44 * + 6
----
264

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

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

query II rowsort
SELECT DISTINCT - 82 AS col0, - 51 col2
----
-82
-51

query II rowsort
SELECT + 51, 33 AS col1
----
51
33

query I rowsort
SELECT ALL 77 + + 48
----
125

onlyif mysql # aggregate syntax: 
query II rowsort label-5190
SELECT 1, COUNT( - 63 ) AS col1
----
1
1

skipif mysql # not compatible
query II rowsort label-5190
SELECT 1, COUNT ( - 63 ) AS col1
----
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5191
SELECT DISTINCT - 78 + - + CAST( 69 AS SIGNED ) * + - 29 + 80
----
2003

skipif mysql # not compatible
query I rowsort label-5191
SELECT DISTINCT - 78 + - + CAST ( 69 AS INTEGER ) * + - 29 + 80
----
2003

onlyif mysql # aggregate syntax: 
query I rowsort label-5192
SELECT ALL + 24 + - COUNT( * ) * - ( 66 )
----
90

skipif mysql # not compatible
query I rowsort label-5192
SELECT ALL + 24 + - COUNT ( * ) * - ( 66 )
----
90

query II rowsort
SELECT 9 AS col2, 32 * 49 AS col0
----
9
1568

query I rowsort
SELECT ALL ( - 20 ) * - - 73 AS col2
----
-1460

query I rowsort
SELECT 23 + - 39 AS col2
----
-16

query I rowsort
SELECT 59 * + 56 AS col2
----
3304

query II rowsort
SELECT + 23, 29 AS col1
----
23
29

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5199
SELECT DISTINCT + MAX( 13 ) + - 75 * - 79
----
5938

skipif mysql # not compatible
query I rowsort label-5199
SELECT DISTINCT + MAX ( 13 ) + - 75 * - 79
----
5938

query I rowsort
SELECT 94 - 51 * 94
----
-4700

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5201
SELECT + CASE + + 85 WHEN 34 THEN NULL WHEN + 61 + 24 + - + CAST( 69 AS SIGNED ) THEN COUNT( * ) - + ( + 83 ) - 34 * + 31 - + + 24 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5201
SELECT + CASE + + 85 WHEN 34 THEN NULL WHEN + 61 + 24 + - + CAST ( 69 AS INTEGER ) THEN COUNT ( * ) - + ( + 83 ) - 34 * + 31 - + + 24 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5202
SELECT ALL + 60 + 80 DIV 14 * - + 7 * 11 col1
----
-325

skipif mysql # not compatible
query I rowsort label-5202
SELECT ALL + 60 + 80 / 14 * - + 7 * 11 col1
----
-325

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5203
SELECT 63 * NULLIF ( + 91, + + CAST( - 28 AS SIGNED ) * 75 * - 55 ) + - 74
----
5659

skipif mysql # not compatible
query I rowsort label-5203
SELECT 63 * NULLIF ( + 91, + + CAST ( - 28 AS INTEGER ) * 75 * - 55 ) + - 74
----
5659

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5205
SELECT ALL 1 col2, - CASE + + 90 WHEN + SUM( - + 51 ) THEN + + 74 + + + 14 - - + COUNT( * ) / COUNT( * ) WHEN CAST( + + 33 AS SIGNED ) * - + 4 THEN NULL END
----
1
NULL

skipif mysql # not compatible
query II rowsort label-5205
SELECT ALL 1 col2, - CASE + + 90 WHEN + SUM ( - + 51 ) THEN + + 74 + + + 14 - - + COUNT ( * ) / COUNT ( * ) WHEN CAST ( + + 33 AS INTEGER ) * - + 4 THEN NULL END
----
1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5206
SELECT 12 + SUM( + 50 )
----
62

skipif mysql # not compatible
query I rowsort label-5206
SELECT 12 + SUM ( + 50 )
----
62

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

skipif mysql # not compatible
query I rowsort label-5207
SELECT + 39 - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT 43 * + 63 * - - 62 AS col2
----
167958

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5209
SELECT - 74 AS col2, + ( - CASE - - CAST( NULL AS SIGNED ) WHEN 95 THEN - 93 ELSE MIN( DISTINCT - - 73 ) END )
----
-74
-73

skipif mysql # not compatible
query II rowsort label-5209
SELECT - 74 AS col2, + ( - CASE - - CAST ( NULL AS INTEGER ) WHEN 95 THEN - 93 ELSE MIN ( DISTINCT - - 73 ) END )
----
-74
-73

query I rowsort
SELECT ALL - - 59 * + + 36 AS col2
----
2124

query I rowsort
SELECT - 92 + + 66 + - 68 col1
----
-94

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5212
SELECT - 6 + + 53 + COUNT( * ) * + + 69 DIV 4 * + ( - 94 )
----
-1551

skipif mysql # not compatible
query I rowsort label-5212
SELECT - 6 + + 53 + COUNT ( * ) * + + 69 / 4 * + ( - 94 )
----
-1551

query I rowsort
SELECT + ( - 77 ) * + 78 AS col1
----
-6006

onlyif mysql # aggregate syntax: 
query II rowsort label-5214
SELECT ALL + 25 AS col0, COALESCE ( + 97, - - 59 + - - MAX( - 49 ) )
----
25
97

skipif mysql # not compatible
query II rowsort label-5214
SELECT ALL + 25 AS col0, COALESCE ( + 97, - - 59 + - - MAX ( - 49 ) )
----
25
97

onlyif mysql # aggregate syntax: 
query II rowsort label-5215
SELECT ALL 32 * - COUNT( * ) AS col1, - 41
----
-32
-41

skipif mysql # not compatible
query II rowsort label-5215
SELECT ALL 32 * - COUNT ( * ) AS col1, - 41
----
-32
-41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5216
SELECT ALL - 27 / - - MAX( - - 79 ) / 36 + - 26 + + CAST( NULL AS SIGNED ) + 70 - - 26 * 39
----
NULL

skipif mysql # not compatible
query I rowsort label-5216
SELECT ALL - 27 / - - MAX ( - - 79 ) / 36 + - 26 + + CAST ( NULL AS INTEGER ) + 70 - - 26 * 39
----
NULL

query I rowsort
SELECT NULLIF ( + 86, - 70 ) + 74 * 82
----
6154

onlyif mysql # DIV for integer division: 
query I rowsort label-5218
SELECT + 8 DIV 68 * - 93 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5218
SELECT + 8 / 68 * - 93 AS col2
----
0

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

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

query I rowsort
SELECT - 19 + + 45 AS col2
----
26

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

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

query I rowsort
SELECT DISTINCT 7 * ( + 59 )
----
413

onlyif mysql # aggregate syntax: 
query I rowsort label-5223
SELECT ALL + ( - COUNT( * ) ) * - - 76 * + + 73 * - 50 + COUNT( * ) + + + 23 AS col2
----
277424

skipif mysql # not compatible
query I rowsort label-5223
SELECT ALL + ( - COUNT ( * ) ) * - - 76 * + + 73 * - 50 + COUNT ( * ) + + + 23 AS col2
----
277424

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5225
SELECT + 48 * + COUNT( * ) * + 68 AS col1, - CAST( NULL AS SIGNED ) + + MIN( 84 )
----
3264
NULL

skipif mysql # not compatible
query II rowsort label-5225
SELECT + 48 * + COUNT ( * ) * + 68 AS col1, - CAST ( NULL AS INTEGER ) + + MIN ( 84 )
----
3264
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5226
SELECT ALL CASE - + 14 WHEN 10 THEN NULL WHEN - + 62 THEN 8 ELSE NULL END * 11 + + ( + - 49 ) - - + MIN( + 14 ) * - - 89 + - + 1 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5226
SELECT ALL CASE - + 14 WHEN 10 THEN NULL WHEN - + 62 THEN 8 ELSE NULL END * 11 + + ( + - 49 ) - - + MIN ( + 14 ) * - - 89 + - + 1 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5227
SELECT COUNT( - - 52 ) DIV + 21 - - 73 + + - 61 + - 22 * - 60 AS col0
----
1332

skipif mysql # not compatible
query I rowsort label-5227
SELECT COUNT ( - - 52 ) / + 21 - - 73 + + - 61 + - 22 * - 60 AS col0
----
1332

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5228
SELECT ALL - CASE + + 57 WHEN - + 5 / + COUNT( * ) - - ( + + 75 ) THEN - + 77 END * + + CASE - - 86 WHEN 98 * - ( COUNT( * ) ) + - - 70 + + COUNT( * ) * 7 + - COUNT( * ) THEN NULL ELSE 64 * - - ( - AVG ( ALL - - 55 ) ) * + CAST( - NULLIF ( 52, 66 ) AS SIGNED ) - 0 END + CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5228
SELECT ALL - CASE + + 57 WHEN - + 5 / + COUNT ( * ) - - ( + + 75 ) THEN - + 77 END * + + CASE - - 86 WHEN 98 * - ( COUNT ( * ) ) + - - 70 + + COUNT ( * ) * 7 + - COUNT ( * ) THEN NULL ELSE 64 * - - ( - AVG ( ALL - - 55 ) ) * + CAST ( - NULLIF ( 52, 66 ) AS INTEGER ) - 0 END + CAST ( NULL AS REAL ) AS col1
----
NULL

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5230
SELECT + COUNT( * ) + + + 45 DIV + 22 * + COUNT( * )
----
3

skipif mysql # not compatible
query I rowsort label-5230
SELECT + COUNT ( * ) + + + 45 / + 22 * + COUNT ( * )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5231
SELECT SUM( - 8 ) AS col2
----
-8

skipif mysql # not compatible
query I rowsort label-5231
SELECT SUM ( - 8 ) AS col2
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-5232
SELECT ALL 24 * 60 + - 26 * - + COUNT( * ) AS col0
----
1466

skipif mysql # not compatible
query I rowsort label-5232
SELECT ALL 24 * 60 + - 26 * - + COUNT ( * ) AS col0
----
1466

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5234
SELECT + + SUM( DISTINCT + 91 ) * - 36 + - + ( COUNT( * ) ) AS col2
----
-3277

skipif mysql # not compatible
query I rowsort label-5234
SELECT + + SUM ( DISTINCT + 91 ) * - 36 + - + ( COUNT ( * ) ) AS col2
----
-3277

onlyif mysql # aggregate syntax: 
query I rowsort label-5235
SELECT ALL - 98 * + 99 + + - 78 - - 35 + - NULLIF ( 49, + - 88 ) + + 87 + - + 84 + - - 82 - - - 3 + - - MAX( 43 ) - + + 81 + 55
----
-9695

skipif mysql # not compatible
query I rowsort label-5235
SELECT ALL - 98 * + 99 + + - 78 - - 35 + - NULLIF ( 49, + - 88 ) + + 87 + - + 84 + - - 82 - - - 3 + - - MAX ( 43 ) - + + 81 + 55
----
-9695

query I rowsort
SELECT DISTINCT 48 * 90 + + 21 + + 65
----
4406

onlyif mysql # aggregate syntax: 
query I rowsort label-5237
SELECT DISTINCT + - NULLIF ( + COUNT( DISTINCT - - 39 ), - + SUM( DISTINCT + 17 ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-5237
SELECT DISTINCT + - NULLIF ( + COUNT ( DISTINCT - - 39 ), - + SUM ( DISTINCT + 17 ) ) AS col0
----
-1

query I rowsort
SELECT ALL - + 37 - 73
----
-110

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5239
SELECT - CAST( NULL AS SIGNED ) * COUNT( * ) + - 35 col1, + 47
----
NULL
47

skipif mysql # not compatible
query II rowsort label-5239
SELECT - CAST ( NULL AS INTEGER ) * COUNT ( * ) + - 35 col1, + 47
----
NULL
47

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

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

query I rowsort
SELECT - - 9 + - 36
----
-27

query I rowsort
SELECT - 23 + - - COALESCE ( + 88, + + 47 ) AS col1
----
65

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-5243
SELECT - 32 * - 68 AS col0, + 27 * CAST( NULL AS SIGNED ) * + + CAST( NULL AS DECIMAL ) + - 31 col2
----
2176
NULL

skipif mysql # not compatible
query II rowsort label-5243
SELECT - 32 * - 68 AS col0, + 27 * CAST ( NULL AS INTEGER ) * + + CAST ( NULL AS REAL ) + - 31 col2
----
2176
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5245
SELECT - - CAST( NULL AS SIGNED ) + - ( - + 52 ) * 9 + + 58 + - 84 / 54 * 18 - 70 * COUNT( * ) * - 93
----
NULL

skipif mysql # not compatible
query I rowsort label-5245
SELECT - - CAST ( NULL AS INTEGER ) + - ( - + 52 ) * 9 + + 58 + - 84 / 54 * 18 - 70 * COUNT ( * ) * - 93
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5246
SELECT - - 82 * + 47 + + - SUM( + 50 ) AS col0
----
3804

skipif mysql # not compatible
query I rowsort label-5246
SELECT - - 82 * + 47 + + - SUM ( + 50 ) AS col0
----
3804

onlyif mysql # aggregate syntax: 
query I rowsort label-5247
SELECT ALL - MAX( 54 ) * - + 87
----
4698

skipif mysql # not compatible
query I rowsort label-5247
SELECT ALL - MAX ( 54 ) * - + 87
----
4698

onlyif mysql # aggregate syntax: 
query II rowsort label-5248
SELECT ALL COALESCE ( + 69, - - 32 * + - 7 * 12 ) AS col1, + ( + - ( + + 62 ) ) * + ( + 77 ) * - 63 * - 79 * 70 - + CASE 21 WHEN - - ( ( - 77 ) ) THEN NULL WHEN 97 * - 56 * + 14 * + 41 THEN + ( - MAX( 86 ) ) END / 98 AS col0
----
69
NULL

skipif mysql # not compatible
query II rowsort label-5248
SELECT ALL COALESCE ( + 69, - - 32 * + - 7 * 12 ) AS col1, + ( + - ( + + 62 ) ) * + ( + 77 ) * - 63 * - 79 * 70 - + CASE 21 WHEN - - ( ( - 77 ) ) THEN NULL WHEN 97 * - 56 * + 14 * + 41 THEN + ( - MAX ( 86 ) ) END / 98 AS col0
----
69
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5249
SELECT DISTINCT - + 90 * - - 68 * + + ( - - MIN( DISTINCT + + 62 ) )
----
-379440

skipif mysql # not compatible
query I rowsort label-5249
SELECT DISTINCT - + 90 * - - 68 * + + ( - - MIN ( DISTINCT + + 62 ) )
----
-379440

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5250
SELECT + + 38 - + + COUNT( * ) + + 13 - + ( + + ( + 7 ) ) + + - 31 * + CAST( NULL AS SIGNED ) * - 50 / + 23 + - NULLIF ( - MAX( DISTINCT - 36 ), + ( - 24 ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5250
SELECT + + 38 - + + COUNT ( * ) + + 13 - + ( + + ( + 7 ) ) + + - 31 * + CAST ( NULL AS INTEGER ) * - 50 / + 23 + - NULLIF ( - MAX ( DISTINCT - 36 ), + ( - 24 ) ) AS col1
----
NULL

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

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

query I rowsort
SELECT ALL - 23 * 39
----
-897

query II rowsort
SELECT 48 AS col2, + 9 AS col1
----
48
9

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5255
SELECT ALL - CAST( + + 98 AS SIGNED ) + + 66
----
-32

skipif mysql # not compatible
query I rowsort label-5255
SELECT ALL - CAST ( + + 98 AS INTEGER ) + + 66
----
-32

query I rowsort
SELECT - 96 * + - 4
----
384

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5258
SELECT DISTINCT 33 DIV + 3 + + 77 AS col1, 6 * - CAST( NULL AS SIGNED ) + - 65
----
88
NULL

skipif mysql # not compatible
query II rowsort label-5258
SELECT DISTINCT 33 / + 3 + + 77 AS col1, 6 * - CAST ( NULL AS INTEGER ) + - 65
----
88
NULL

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

skipif mysql # not compatible
query I rowsort label-5259
SELECT + MIN ( - 38 )
----
-38

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

skipif mysql # not compatible
query I rowsort label-5260
SELECT ALL COUNT ( * ) / + 6 + 6 + + - 12 / 51 AS col2
----
6

query I rowsort
SELECT - 66 * + 24 AS col0
----
-1584

query I rowsort
SELECT - 36 * - - 20 AS col1
----
-720

query I rowsort
SELECT + COALESCE ( - + 76, + - 16 * - 9 * + 15 )
----
-76

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5264
SELECT + COALESCE ( - - MIN( DISTINCT + + 88 ), 9 - - COUNT( * ) + - - NULLIF ( - 77, + + 35 ), + 17 ) DIV + MIN( ALL + NULLIF ( - 27, + 2 ) ), - 10 + 0 AS col2
----
-3
-10

skipif mysql # not compatible
query II rowsort label-5264
SELECT + COALESCE ( - - MIN ( DISTINCT + + 88 ), 9 - - COUNT ( * ) + - - NULLIF ( - 77, + + 35 ), + 17 ) / + MIN ( ALL + NULLIF ( - 27, + 2 ) ), - 10 + 0 AS col2
----
-3
-10

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5265
SELECT ALL 45 DIV + ( - - COUNT( * ) ) + + + 93 AS col2, COALESCE ( + 71, - + 72 + - 44, + 35 * - - 19 * 85 ) AS col1
----
138
71

skipif mysql # not compatible
query II rowsort label-5265
SELECT ALL 45 / + ( - - COUNT ( * ) ) + + + 93 AS col2, COALESCE ( + 71, - + 72 + - 44, + 35 * - - 19 * 85 ) AS col1
----
138
71

query I rowsort
SELECT - 30 * 81 AS col0
----
-2430

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

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

query I rowsort
SELECT ( - 20 ) col1
----
-20

query I rowsort
SELECT - 6 * + - ( - 43 )
----
-258

query I rowsort
SELECT + 12 + + - 52 AS col0
----
-40

query I rowsort
SELECT DISTINCT 18 * + - 41 AS col0
----
-738

query II rowsort
SELECT ALL - 79 * - + 33 - - 63 + + 22 AS col2, 89
----
2692
89

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5274
SELECT + 2, 47 * + - COUNT( + + 45 ) * - - 44 + + ( - - 5 ) AS col0
----
2
-2063

skipif mysql # not compatible
query II rowsort label-5274
SELECT + 2, 47 * + - COUNT ( + + 45 ) * - - 44 + + ( - - 5 ) AS col0
----
2
-2063

query I rowsort
SELECT + 38 + + - 20
----
18

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

query I rowsort
SELECT + - 78 - 43 AS col0
----
-121

query I rowsort
SELECT ALL - 67 * + + 13
----
-871

query I rowsort
SELECT + 22 * - - 4 + + 9
----
97

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

query I rowsort
SELECT + - 28 + 8
----
-20

query II rowsort
SELECT - - 82 AS col2, 8
----
82
8

query I rowsort
SELECT - 24 - - 91 + - 95 * - ( - 93 )
----
-8768

onlyif mysql # DIV for integer division: 
query I rowsort label-5284
SELECT - 63 DIV - + 72 * + - 59 + - 49 AS col0
----
-49

skipif mysql # not compatible
query I rowsort label-5284
SELECT - 63 / - + 72 * + - 59 + - 49 AS col0
----
-49

onlyif mysql # DIV for integer division: 
query I rowsort label-5285
SELECT ( + 65 ) DIV 14 * 93 AS col1
----
372

skipif mysql # not compatible
query I rowsort label-5285
SELECT ( + 65 ) / 14 * 93 AS col1
----
372

onlyif mysql # aggregate syntax: 
query I rowsort label-5286
SELECT - 37 + + COUNT( * ) + + - 14 * - 7 * CASE - + 98 WHEN + - 66 THEN NULL WHEN + 35 THEN NULL ELSE COUNT( * ) END
----
62

skipif mysql # not compatible
query I rowsort label-5286
SELECT - 37 + + COUNT ( * ) + + - 14 * - 7 * CASE - + 98 WHEN + - 66 THEN NULL WHEN + 35 THEN NULL ELSE COUNT ( * ) END
----
62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5287
SELECT CAST( NULL AS SIGNED ) + 2 * + 41 / 18
----
NULL

skipif mysql # not compatible
query I rowsort label-5287
SELECT CAST ( NULL AS INTEGER ) + 2 * + 41 / 18
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5288
SELECT ALL + CAST( 86 AS SIGNED ) + + 56 * + 87 AS col0, 67 * - - COUNT( * ) * + - ( - - 77 ) * 16 * + - 5 + 34 + - 48 + - 18 + - 43 AS col0
----
4958
412645

skipif mysql # not compatible
query II rowsort label-5288
SELECT ALL + CAST ( 86 AS INTEGER ) + + 56 * + 87 AS col0, 67 * - - COUNT ( * ) * + - ( - - 77 ) * 16 * + - 5 + 34 + - 48 + - 18 + - 43 AS col0
----
4958
412645

onlyif mysql # aggregate syntax: 
query I rowsort label-5289
SELECT DISTINCT COALESCE ( 23, + - CASE - 32 WHEN + 50 THEN + 94 - - 35 * 39 + ( + 20 ) END * COUNT( 36 ) * + + 97, - - 26 ) + + 52 AS col2
----
75

skipif mysql # not compatible
query I rowsort label-5289
SELECT DISTINCT COALESCE ( 23, + - CASE - 32 WHEN + 50 THEN + 94 - - 35 * 39 + ( + 20 ) END * COUNT ( 36 ) * + + 97, - - 26 ) + + 52 AS col2
----
75

query I rowsort
SELECT 34 * + 55 AS col1
----
1870

query I rowsort
SELECT DISTINCT - 92 + + 74 AS col2
----
-18

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

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

query I rowsort
SELECT 59 * 91
----
5369

onlyif mysql # aggregate syntax: 
query I rowsort label-5294
SELECT ALL + CASE - 38 WHEN + 67 + + + 27 - - + 71 THEN NULL WHEN COUNT( * ) + - 68 THEN - 72 ELSE NULL END + 34 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5294
SELECT ALL + CASE - 38 WHEN + 67 + + + 27 - - + 71 THEN NULL WHEN COUNT ( * ) + - 68 THEN - 72 ELSE NULL END + 34 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5295
SELECT 92 DIV + - COUNT( * ) + - 75 AS col0
----
-167

skipif mysql # not compatible
query I rowsort label-5295
SELECT 92 / + - COUNT ( * ) + - 75 AS col0
----
-167

onlyif mysql # aggregate syntax: 
query I rowsort label-5296
SELECT 49 + - - MIN( ALL + 73 ) AS col0
----
122

skipif mysql # not compatible
query I rowsort label-5296
SELECT 49 + - - MIN ( ALL + 73 ) AS col0
----
122

query I rowsort
SELECT DISTINCT - NULLIF ( - + 47, - + 73 ) col2
----
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5298
SELECT ALL - CAST( NULL AS SIGNED ) - + - 72 / - COALESCE ( + + 99, - MIN( - 83 ), + - 77 / CASE - 45 WHEN + 11 + 58 * - MAX( - - 40 ) THEN + 42 * COUNT( * ) WHEN + + 42 THEN + 54 + - - 0 + + 15 - - 84 END ) + - COUNT( - 33 ) + - 12 * NULLIF ( 75, 4 ) * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-5298
SELECT ALL - CAST ( NULL AS INTEGER ) - + - 72 / - COALESCE ( + + 99, - MIN ( - 83 ), + - 77 / CASE - 45 WHEN + 11 + 58 * - MAX ( - - 40 ) THEN + 42 * COUNT ( * ) WHEN + + 42 THEN + 54 + - - 0 + + 15 - - 84 END ) + - COUNT ( - 33 ) + - 12 * NULLIF ( 75, 4 ) * COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5299
SELECT + 3 * 41 + 19 + - 74 - - 83 + CAST( NULL AS SIGNED ) * + 73
----
NULL

skipif mysql # not compatible
query I rowsort label-5299
SELECT + 3 * 41 + 19 + - 74 - - 83 + CAST ( NULL AS INTEGER ) * + 73
----
NULL

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

query I rowsort
SELECT 74 * + 74 AS col2
----
5476

query I rowsort
SELECT DISTINCT - COALESCE ( + 46, - - 76 + 19, - 86 + 94 ) AS col1
----
-46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5303
SELECT NULLIF ( + - CAST( NULL AS SIGNED ), - + 97 ) / + 43 + - - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5303
SELECT NULLIF ( + - CAST ( NULL AS INTEGER ), - + 97 ) / + 43 + - - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT - 69 * + + 11 AS col0
----
-759

onlyif mysql # DIV for integer division: 
query I rowsort label-5305
SELECT + 18 DIV - + 56
----
0

skipif mysql # not compatible
query I rowsort label-5305
SELECT + 18 / - + 56
----
0

query I rowsort
SELECT + - NULLIF ( - 54, 86 )
----
54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5307
SELECT ( - 46 ) * ( - NULLIF ( - COALESCE ( - + NULLIF ( - - 38, 92 * + 38 + - COUNT( * ) + + 27 * 31 * + - 27 ), - 78 + - 1 ), - - ( + CAST( + - 31 AS SIGNED ) ) ) ) + 9
----
1757

skipif mysql # not compatible
query I rowsort label-5307
SELECT ( - 46 ) * ( - NULLIF ( - COALESCE ( - + NULLIF ( - - 38, 92 * + 38 + - COUNT ( * ) + + 27 * 31 * + - 27 ), - 78 + - 1 ), - - ( + CAST ( + - 31 AS INTEGER ) ) ) ) + 9
----
1757

query I rowsort
SELECT 49 * 12 + 1 + 55 * + 16 AS col1
----
1469

onlyif mysql # aggregate syntax: 
query I rowsort label-5309
SELECT + COUNT( * ) * - 80 + + 75 * - COUNT( * ) * + 27
----
-2105

skipif mysql # not compatible
query I rowsort label-5309
SELECT + COUNT ( * ) * - 80 + + 75 * - COUNT ( * ) * + 27
----
-2105

query I rowsort
SELECT DISTINCT - - 71 AS col1
----
71

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

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

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

skipif mysql # not compatible
query I rowsort label-5312
SELECT COUNT ( * ) + - - CAST ( - 46 AS INTEGER )
----
-45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5313
SELECT DISTINCT - NULLIF ( 2, + 84 + - CAST( NULL AS SIGNED ) * 75 - + + 88 + + - 58 ) AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-5313
SELECT DISTINCT - NULLIF ( 2, + 84 + - CAST ( NULL AS INTEGER ) * 75 - + + 88 + + - 58 ) AS col0
----
-2

onlyif mysql # aggregate syntax: 
query II rowsort label-5314
SELECT - 85 * - 42 AS col0, + CASE - COUNT( * ) WHEN + 43 THEN COUNT( * ) WHEN + NULLIF ( 31, - + 20 * + 96 + + 9 ) * - + 55 THEN NULL ELSE NULL END * + + 51 + 38 + + 43
----
3570
NULL

skipif mysql # not compatible
query II rowsort label-5314
SELECT - 85 * - 42 AS col0, + CASE - COUNT ( * ) WHEN + 43 THEN COUNT ( * ) WHEN + NULLIF ( 31, - + 20 * + 96 + + 9 ) * - + 55 THEN NULL ELSE NULL END * + + 51 + 38 + + 43
----
3570
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5315
SELECT + COALESCE ( - 25, - + 49 * - MIN( + 67 ) * + + NULLIF ( + 77, + + 78 - - ( - 90 ) ), 53 DIV + 94 * 91 * + ( + 21 ) * COUNT( * ) ) * NULLIF ( + + 43, - 56 ) col0
----
-1075

skipif mysql # not compatible
query I rowsort label-5315
SELECT + COALESCE ( - 25, - + 49 * - MIN ( + 67 ) * + + NULLIF ( + 77, + + 78 - - ( - 90 ) ), 53 / + 94 * 91 * + ( + 21 ) * COUNT ( * ) ) * NULLIF ( + + 43, - 56 ) col0
----
-1075

onlyif mysql # aggregate syntax: 
query I rowsort label-5316
SELECT DISTINCT - 44 + + COUNT( * ) + - COUNT( * ) * - + 40 + + 35 AS col0
----
32

skipif mysql # not compatible
query I rowsort label-5316
SELECT DISTINCT - 44 + + COUNT ( * ) + - COUNT ( * ) * - + 40 + + 35 AS col0
----
32

query I rowsort
SELECT ALL COALESCE ( + - 16, - 40 - - 41 )
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-5318
SELECT MIN( 99 )
----
99

skipif mysql # not compatible
query I rowsort label-5318
SELECT MIN ( 99 )
----
99

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5319
SELECT MAX( + 13 ) + - COUNT( * ) * + 96 + - 2 * CAST( NULL AS DECIMAL ) - - 84 / - MIN( 96 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5319
SELECT MAX ( + 13 ) + - COUNT ( * ) * + 96 + - 2 * CAST ( NULL AS REAL ) - - 84 / - MIN ( 96 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5320
SELECT ALL 0 + + 63 + ( - + 80 ) DIV + 35 * + COUNT( - 63 )
----
61

skipif mysql # not compatible
query I rowsort label-5320
SELECT ALL 0 + + 63 + ( - + 80 ) / + 35 * + COUNT ( - 63 )
----
61

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5322
SELECT 24 + + 41 DIV 90
----
24

skipif mysql # not compatible
query I rowsort label-5322
SELECT 24 + + 41 / 90
----
24

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5323
SELECT COALESCE ( - - 26, - + 67 + - NULLIF ( + COALESCE ( COALESCE ( + 86, CAST( NULL AS SIGNED ) * + 36 * + 29 + 46, - 75 + + 71 - - + 18 + + - COALESCE ( ( + 7 ), + 37, + 31 DIV 76 ) ), 45 ), CASE WHEN + 70 IS NOT NULL THEN NULL WHEN ( - 75 ) NOT BETWEEN NULL AND + 4 * 23 THEN 80 END DIV CAST( NULL AS SIGNED ) ) ) * + 9
----
234

skipif mysql # not compatible
query I rowsort label-5323
SELECT COALESCE ( - - 26, - + 67 + - NULLIF ( + COALESCE ( COALESCE ( + 86, CAST ( NULL AS INTEGER ) * + 36 * + 29 + 46, - 75 + + 71 - - + 18 + + - COALESCE ( ( + 7 ), + 37, + 31 / 76 ) ), 45 ), CASE WHEN + 70 IS NOT NULL THEN NULL WHEN ( - 75 ) NOT BETWEEN NULL AND + 4 * 23 THEN 80 END / CAST ( NULL AS INTEGER ) ) ) * + 9
----
234

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5324
SELECT DISTINCT 84 + 37 * 73 + - + 43 + + 80 DIV CAST( - 61 AS SIGNED )
----
2741

skipif mysql # not compatible
query I rowsort label-5324
SELECT DISTINCT 84 + 37 * 73 + - + 43 + + 80 / CAST ( - 61 AS INTEGER )
----
2741

query I rowsort
SELECT DISTINCT 2 * + 12
----
24

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

skipif mysql # not compatible
query I rowsort label-5326
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - + 46
----
NULL

query I rowsort
SELECT NULLIF ( - - ( - ( 51 ) ), + + 48 * 50 + 30 + - + 42 ) - 50
----
-101

onlyif mysql # aggregate syntax: 
query I rowsort label-5328
SELECT ALL NULLIF ( 83, + 76 * + - COUNT( ALL ( - - 60 ) ) * + 25 * - - COUNT( * ) + + COUNT( * ) ) * + 73 AS col0
----
6059

skipif mysql # not compatible
query I rowsort label-5328
SELECT ALL NULLIF ( 83, + 76 * + - COUNT ( ALL ( - - 60 ) ) * + 25 * - - COUNT ( * ) + + COUNT ( * ) ) * + 73 AS col0
----
6059

query I rowsort
SELECT 69 + - NULLIF ( 88, - - 23 ) AS col1
----
-19

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5330
SELECT 49 / - 61 * - + CAST( NULL AS DECIMAL ) / - + 65 * 31 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5330
SELECT 49 / - 61 * - + CAST ( NULL AS REAL ) / - + 65 * 31 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5331
SELECT - MIN( ALL 22 ) AS col2
----
-22

skipif mysql # not compatible
query I rowsort label-5331
SELECT - MIN ( ALL 22 ) AS col2
----
-22

query I rowsort
SELECT DISTINCT + 61 - 25
----
36

query I rowsort
SELECT ALL + 43 * ( - 52 ) * + 89 + + 31 AS col0
----
-198973

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5334
SELECT DISTINCT - 45 col1, + CAST( NULL AS SIGNED ) * + + 5 AS col0
----
-45
NULL

skipif mysql # not compatible
query II rowsort label-5334
SELECT DISTINCT - 45 col1, + CAST ( NULL AS INTEGER ) * + + 5 AS col0
----
-45
NULL

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

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

query I rowsort
SELECT ALL - + 32 AS col2
----
-32

query I rowsort
SELECT ALL + 33 * - + 90
----
-2970

query I rowsort
SELECT - 16 - + - 59 AS col2
----
43

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5339
SELECT DISTINCT + 0 * ( - - 49 ) + CAST( + CAST( NULL AS SIGNED ) AS DECIMAL ) - - 51 + + 85 * - + COALESCE ( 43, + + 94 ) + + CASE 86 WHEN + - 57 THEN + 0 * + - 14 - + ( + 63 ) END / 32 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5339
SELECT DISTINCT + 0 * ( - - 49 ) + CAST ( + CAST ( NULL AS INTEGER ) AS REAL ) - - 51 + + 85 * - + COALESCE ( 43, + + 94 ) + + CASE 86 WHEN + - 57 THEN + 0 * + - 14 - + ( + 63 ) END / 32 AS col2
----
NULL

query I rowsort
SELECT DISTINCT - - 17 col0
----
17

onlyif mysql # DIV for integer division: 
query I rowsort label-5341
SELECT DISTINCT - + 75 DIV COALESCE ( 51, + + 52 )
----
-1

skipif mysql # not compatible
query I rowsort label-5341
SELECT DISTINCT - + 75 / COALESCE ( 51, + + 52 )
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5342
SELECT COUNT( * ) DIV - + NULLIF ( + + ( - 2 ), + 77 ) * - + 91 DIV 36 + COALESCE ( - 56, + 54 ) + + 76 + + 35
----
55

skipif mysql # not compatible
query I rowsort label-5342
SELECT COUNT ( * ) / - + NULLIF ( + + ( - 2 ), + 77 ) * - + 91 / 36 + COALESCE ( - 56, + 54 ) + + 76 + + 35
----
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5343
SELECT ALL - - 59 + 13 DIV + - 74 * + + COUNT( * ) * - + 56 - + CAST( + COUNT( * ) AS SIGNED ) AS col2
----
58

skipif mysql # not compatible
query I rowsort label-5343
SELECT ALL - - 59 + 13 / + - 74 * + + COUNT ( * ) * - + 56 - + CAST ( + COUNT ( * ) AS INTEGER ) AS col2
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-5344
SELECT 0 * - 8 + MAX( DISTINCT + + 79 ) AS col2
----
79

skipif mysql # not compatible
query I rowsort label-5344
SELECT 0 * - 8 + MAX ( DISTINCT + + 79 ) AS col2
----
79

query I rowsort
SELECT - + 26 + - + 36 AS col1
----
-62

query I rowsort
SELECT ALL + - 46 + + 52 col0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-5347
SELECT - - SUM( + 74 ) + + + 81 AS col1
----
155

skipif mysql # not compatible
query I rowsort label-5347
SELECT - - SUM ( + 74 ) + + + 81 AS col1
----
155

query I rowsort
SELECT + - 45 * + 98 AS col0
----
-4410

query I rowsort
SELECT ALL + - ( 79 ) + - + 79 + - 40 - + CASE AVG ( + 5 ) WHEN + - ( + + 10 ) THEN NULL WHEN 35 THEN - 4 END AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5350
SELECT ALL 3 + - - 43 DIV MAX( ALL + 74 )
----
3

skipif mysql # not compatible
query I rowsort label-5350
SELECT ALL 3 + - - 43 / MAX ( ALL + 74 )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5351
SELECT 85 * - - 21 * COUNT( * ) + + + 73 AS col1
----
1858

skipif mysql # not compatible
query I rowsort label-5351
SELECT 85 * - - 21 * COUNT ( * ) + + + 73 AS col1
----
1858

query II rowsort
SELECT ALL 26 AS col1, 26
----
26
26

query I rowsort
SELECT - 20 + + 66 AS col1
----
46

query II rowsort
SELECT 64, ( + 30 ) col1
----
64
30

onlyif mysql # aggregate syntax: 
query I rowsort label-5355
SELECT + NULLIF ( - COUNT( * ), + + 22 ) + + 51 AS col0
----
50

skipif mysql # not compatible
query I rowsort label-5355
SELECT + NULLIF ( - COUNT ( * ), + + 22 ) + + 51 AS col0
----
50

query I rowsort
SELECT - CASE 4 WHEN - 61 * - - 13 THEN - 82 WHEN 68 * + 79 THEN + 16 * - ( - 53 ) * + + 71 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5357
SELECT + MIN( DISTINCT + 92 ) + + CASE - 84 WHEN 6 * 66 * - 26 * - 68 THEN + + 85 ELSE NULL END * + - 32
----
NULL

skipif mysql # not compatible
query I rowsort label-5357
SELECT + MIN ( DISTINCT + 92 ) + + CASE - 84 WHEN 6 * 66 * - 26 * - 68 THEN + + 85 ELSE NULL END * + - 32
----
NULL

query II rowsort
SELECT 45, - CASE 35 WHEN + 97 THEN + + 57 ELSE + + 63 + 25 END * + 69 * + ( + - 15 ) AS col2
----
45
91080

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5361
SELECT - SUM( ALL - 33 ) AS col1
----
33

skipif mysql # not compatible
query I rowsort label-5361
SELECT - SUM ( ALL - 33 ) AS col1
----
33

query I rowsort
SELECT ALL 30 * 64
----
1920

query I rowsort
SELECT + 36 * + - 7
----
-252

query I rowsort
SELECT + 53 - - 34 AS col0
----
87

query I rowsort
SELECT DISTINCT 59 - 28
----
31

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5367
SELECT + 88 + + - 82 * - + CAST( - + 57 AS SIGNED )
----
-4586

skipif mysql # not compatible
query I rowsort label-5367
SELECT + 88 + + - 82 * - + CAST ( - + 57 AS INTEGER )
----
-4586

query I rowsort
SELECT ALL 94 * - 92
----
-8648

query I rowsort
SELECT + 0 * - 38 * + - 21 AS col1
----
0

query I rowsort
SELECT + 6 * 68 * + 83
----
33864

onlyif mysql # DIV for integer division: 
query I rowsort label-5371
SELECT 40 DIV - - 66 + + 43
----
43

skipif mysql # not compatible
query I rowsort label-5371
SELECT 40 / - - 66 + + 43
----
43

query II rowsort
SELECT + 4 * - 73 * - 15 + + 59 + + + 40 * 82 * - 88 AS col0, 53 AS col2
----
-284201
53

onlyif mysql # aggregate syntax: 
query I rowsort label-5373
SELECT + COUNT( * ) + - 98 * + ( - 79 ) * + COUNT( * ) AS col0
----
7743

skipif mysql # not compatible
query I rowsort label-5373
SELECT + COUNT ( * ) + - 98 * + ( - 79 ) * + COUNT ( * ) AS col0
----
7743

query I rowsort
SELECT ALL - ( 6 ) * + 76
----
-456

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5376
SELECT - 15 DIV 13 DIV + - 78 DIV 30 + 34 * 46 AS col2
----
1564

skipif mysql # not compatible
query I rowsort label-5376
SELECT - 15 / 13 / + - 78 / 30 + 34 * 46 AS col2
----
1564

onlyif mysql # DIV for integer division: 
query II rowsort label-5377
SELECT + + 55, + 51 DIV + 81 + - COALESCE ( 72, + 90 * 58 - - 86 ) AS col0
----
55
-72

skipif mysql # not compatible
query II rowsort label-5377
SELECT + + 55, + 51 / + 81 + - COALESCE ( 72, + 90 * 58 - - 86 ) AS col0
----
55
-72

onlyif mysql # aggregate syntax: 
query II rowsort label-5378
SELECT 63, - COUNT( * ) * + - 13 AS col0
----
63
13

skipif mysql # not compatible
query II rowsort label-5378
SELECT 63, - COUNT ( * ) * + - 13 AS col0
----
63
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5379
SELECT ALL + - COUNT( * ), - 20 * + - 41 * - COUNT( * ) + - CAST( + 17 AS SIGNED ) * - + COUNT( * ) AS col2
----
-1
-803

skipif mysql # not compatible
query II rowsort label-5379
SELECT ALL + - COUNT ( * ), - 20 * + - 41 * - COUNT ( * ) + - CAST ( + 17 AS INTEGER ) * - + COUNT ( * ) AS col2
----
-1
-803

onlyif mysql # aggregate syntax: 
query I rowsort label-5380
SELECT + - 55 * - COUNT( * ) - MIN( ALL - ( + 32 ) ) AS col0
----
87

skipif mysql # not compatible
query I rowsort label-5380
SELECT + - 55 * - COUNT ( * ) - MIN ( ALL - ( + 32 ) ) AS col0
----
87

query II rowsort
SELECT 0 AS col2, 46
----
0
46

onlyif mysql # aggregate syntax: 
query I rowsort label-5382
SELECT - + 15 * + 60 * + + 73 + - COUNT( 44 ) + + 41 + - 54
----
-65714

skipif mysql # not compatible
query I rowsort label-5382
SELECT - + 15 * + 60 * + + 73 + - COUNT ( 44 ) + + 41 + - 54
----
-65714

onlyif mysql # DIV for integer division: 
query II rowsort label-5383
SELECT 0 * 6 + - 11 DIV + 9 AS col0, + 97
----
-1
97

skipif mysql # not compatible
query II rowsort label-5383
SELECT 0 * 6 + - 11 / + 9 AS col0, + 97
----
-1
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5384
SELECT + 43 * - - 23 + - + MAX( DISTINCT + 87 ) AS col1
----
902

skipif mysql # not compatible
query I rowsort label-5384
SELECT + 43 * - - 23 + - + MAX ( DISTINCT + 87 ) AS col1
----
902

query III rowsort
SELECT DISTINCT + - ( - + 87 ) AS col0, - CASE 61 WHEN + 45 THEN 93 + 68 WHEN - 1 THEN NULL ELSE + 77 END AS col1, + - 42 + 76 AS col2
----
87
-77
34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5386
SELECT DISTINCT + NULLIF ( + + MAX( ALL - - 63 ), + 19 * + + 0 / + - CAST( + - 16 AS SIGNED ) + 31 ) AS col2
----
63

skipif mysql # not compatible
query I rowsort label-5386
SELECT DISTINCT + NULLIF ( + + MAX ( ALL - - 63 ), + 19 * + + 0 / + - CAST ( + - 16 AS INTEGER ) + 31 ) AS col2
----
63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5387
SELECT ALL - 22 * 19 + - 68 * - ( + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5387
SELECT ALL - 22 * 19 + - 68 * - ( + CAST ( NULL AS INTEGER ) )
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5389
SELECT SUM( + 4 )
----
4

skipif mysql # not compatible
query I rowsort label-5389
SELECT SUM ( + 4 )
----
4

query I rowsort
SELECT ALL CASE + 63 WHEN - 74 + - 26 * - 44 THEN 69 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5391
SELECT COUNT( + 77 ) AS col0, + 91 + + + COUNT( * )
----
1
92

skipif mysql # not compatible
query II rowsort label-5391
SELECT COUNT ( + 77 ) AS col0, + 91 + + + COUNT ( * )
----
1
92

query I rowsort
SELECT - 2 + - 22 AS col1
----
-24

query II rowsort
SELECT - 14 * - 78 AS col1, - 27
----
1092
-27

query I rowsort
SELECT - 19 * - 45 AS col1
----
855

onlyif mysql # DIV for integer division: 
query I rowsort label-5395
SELECT DISTINCT - 33 DIV - + 24
----
1

skipif mysql # not compatible
query I rowsort label-5395
SELECT DISTINCT - 33 / - + 24
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-5396
SELECT - 66 DIV - + 37
----
1

skipif mysql # not compatible
query I rowsort label-5396
SELECT - 66 / - + 37
----
1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5397
SELECT ALL - ( - CAST( NULL AS DECIMAL ) ) / 70 * 92
----
NULL

skipif mysql # not compatible
query I rowsort label-5397
SELECT ALL - ( - CAST ( NULL AS REAL ) ) / 70 * 92
----
NULL

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

query I rowsort
SELECT - 24 * + 88 * + 38
----
-80256

query II rowsort
SELECT + 30 + - 89, 23 col1
----
-59
23

query I rowsort
SELECT + 6 + + - 68 + - 52
----
-114

onlyif mysql # aggregate syntax: 
query I rowsort label-5402
SELECT + 82 * NULLIF ( 96, + - MAX( - 48 ) + 55 ) AS col1
----
7872

skipif mysql # not compatible
query I rowsort label-5402
SELECT + 82 * NULLIF ( 96, + - MAX ( - 48 ) + 55 ) AS col1
----
7872

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5403
SELECT - - 94 * + + CAST( - 98 AS SIGNED ) AS col2, 48
----
-9212
48

skipif mysql # not compatible
query II rowsort label-5403
SELECT - - 94 * + + CAST ( - 98 AS INTEGER ) AS col2, 48
----
-9212
48

query I rowsort
SELECT - 2 - - 11 col2
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-5405
SELECT DISTINCT - + NULLIF ( + 83, - + COUNT( - 26 ) ) + - 35 * + 93 AS col2
----
-3338

skipif mysql # not compatible
query I rowsort label-5405
SELECT DISTINCT - + NULLIF ( + 83, - + COUNT ( - 26 ) ) + - 35 * + 93 AS col2
----
-3338

query I rowsort
SELECT ALL - 50 * - - 64 AS col1
----
-3200

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5407
SELECT + - 45 DIV + MIN( - 79 )
----
0

skipif mysql # not compatible
query I rowsort label-5407
SELECT + - 45 / + MIN ( - 79 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5408
SELECT + CAST( 31 AS SIGNED ) AS col1, - 69
----
31
-69

skipif mysql # not compatible
query II rowsort label-5408
SELECT + CAST ( 31 AS INTEGER ) AS col1, - 69
----
31
-69

query I rowsort
SELECT 16 * + + 69 + + 45 col2
----
1149

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5410
SELECT 62 * - - CASE COUNT( + - 46 ) WHEN - 40 THEN - 72 WHEN + 65 THEN CAST( - - 65 AS DECIMAL ) END + + 7 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5410
SELECT 62 * - - CASE COUNT ( + - 46 ) WHEN - 40 THEN - 72 WHEN + 65 THEN CAST ( - - 65 AS REAL ) END + + 7 AS col0
----
NULL

query I rowsort
SELECT - 70 * - 0 * + 93 - + - 3 * + + 94 * - 8 AS col1
----
-2256

onlyif mysql # DIV for integer division: 
query I rowsort label-5412
SELECT 95 DIV 49
----
1

skipif mysql # not compatible
query I rowsort label-5412
SELECT 95 / 49
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5413
SELECT NULLIF ( + + 8, 3 * - + CAST( 12 AS SIGNED ) * - COALESCE ( - - 89, + 84, ( - COUNT( * ) ) ) * + 12 * + NULLIF ( - 95, - 75 ) * 23 ) * - CAST( NULL AS DECIMAL ) * + 71
----
NULL

skipif mysql # not compatible
query I rowsort label-5413
SELECT NULLIF ( + + 8, 3 * - + CAST ( 12 AS INTEGER ) * - COALESCE ( - - 89, + 84, ( - COUNT ( * ) ) ) * + 12 * + NULLIF ( - 95, - 75 ) * 23 ) * - CAST ( NULL AS REAL ) * + 71
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5414
SELECT ALL + AVG ( DISTINCT + CAST( NULL AS SIGNED ) ) / + 84
----
NULL

skipif mysql # not compatible
query I rowsort label-5414
SELECT ALL + AVG ( DISTINCT + CAST ( NULL AS INTEGER ) ) / + 84
----
NULL

query I rowsort
SELECT - 3 * - 64 * 19 + - + 72
----
3576

query I rowsort
SELECT ALL - - 46 col1
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-5417
SELECT COALESCE ( - 39, - 37 + 17 ) + - 97 * + - 94 * + COUNT( * ) + - 85 col2
----
8994

skipif mysql # not compatible
query I rowsort label-5417
SELECT COALESCE ( - 39, - 37 + 17 ) + - 97 * + - 94 * + COUNT ( * ) + - 85 col2
----
8994

query I rowsort
SELECT ALL 84 * 39 AS col1
----
3276

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5420
SELECT 78 * + NULLIF ( - + 53, - COUNT( + - 33 ) * + + COUNT( * ) + + 2 )
----
-4134

skipif mysql # not compatible
query I rowsort label-5420
SELECT 78 * + NULLIF ( - + 53, - COUNT ( + - 33 ) * + + COUNT ( * ) + + 2 )
----
-4134

onlyif mysql # aggregate syntax: 
query II rowsort label-5421
SELECT ALL 91, + 63 - + 25 + + COUNT( * ) + MAX( + 9 ) * + + 86 AS col0
----
91
813

skipif mysql # not compatible
query II rowsort label-5421
SELECT ALL 91, + 63 - + 25 + + COUNT ( * ) + MAX ( + 9 ) * + + 86 AS col0
----
91
813

onlyif mysql # aggregate syntax: 
query I rowsort label-5422
SELECT 68 * + ( 45 ) * + ( + + COUNT( * ) )
----
3060

skipif mysql # not compatible
query I rowsort label-5422
SELECT 68 * + ( 45 ) * + ( + + COUNT ( * ) )
----
3060

query I rowsort
SELECT 87 + 78 AS col2
----
165

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5424
SELECT 94 * SUM( DISTINCT - 54 ) DIV 79 * + - 9
----
576

skipif mysql # not compatible
query I rowsort label-5424
SELECT 94 * SUM ( DISTINCT - 54 ) / 79 * + - 9
----
576

query I rowsort
SELECT 68 * - 79
----
-5372

query I rowsort
SELECT ALL - 39 + - 17 * + 59 * + - 19 * + - 17 col1
----
-324008

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5427
SELECT ALL + MIN( DISTINCT + + 71 ) DIV + + 25 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-5427
SELECT ALL + MIN ( DISTINCT + + 71 ) / + + 25 AS col1
----
2

query I rowsort
SELECT 84 * - 94 * + + 32
----
-252672

onlyif mysql # aggregate syntax: 
query IIII rowsort label-5429
SELECT ALL - COUNT( * ) * - + SUM( - 1 ) AS col0, COALESCE ( 18, + SUM( ALL + - 72 ) * + COALESCE ( + 27, - 44 ) ) * - 79 AS col0, + - COUNT( * ) * + COALESCE ( - 8, - + 26 * - 63 + + + MAX( - 24 ) * - + 62, - + 71 ) + + 13, + + COUNT( * ) + - 58 AS col2
----
-1
-1422
21
-57

skipif mysql # not compatible
query IIII rowsort label-5429
SELECT ALL - COUNT ( * ) * - + SUM ( - 1 ) AS col0, COALESCE ( 18, + SUM ( ALL + - 72 ) * + COALESCE ( + 27, - 44 ) ) * - 79 AS col0, + - COUNT ( * ) * + COALESCE ( - 8, - + 26 * - 63 + + + MAX ( - 24 ) * - + 62, - + 71 ) + + 13, + + COUNT ( * ) + - 58 AS col2
----
-1
-1422
21
-57

query I rowsort
SELECT 93 * + 49
----
4557

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

query I rowsort
SELECT ALL + 63 + - 96
----
-33

onlyif mysql # DIV for integer division: 
query II rowsort label-5433
SELECT 17 AS col2, + 5 DIV + 38 AS col2
----
17
0

skipif mysql # not compatible
query II rowsort label-5433
SELECT 17 AS col2, + 5 / + 38 AS col2
----
17
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5434
SELECT - CAST( - 13 AS SIGNED ) + - 32 + + COUNT( * ) AS col1
----
-18

skipif mysql # not compatible
query I rowsort label-5434
SELECT - CAST ( - 13 AS INTEGER ) + - 32 + + COUNT ( * ) AS col1
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-5435
SELECT NULLIF ( 36, SUM( ALL 51 ) ) - 84 + + + 94 + + 44 AS col2
----
90

skipif mysql # not compatible
query I rowsort label-5435
SELECT NULLIF ( 36, SUM ( ALL 51 ) ) - 84 + + + 94 + + 44 AS col2
----
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5436
SELECT 41 + CAST( - 90 AS SIGNED ) AS col2
----
-49

skipif mysql # not compatible
query I rowsort label-5436
SELECT 41 + CAST ( - 90 AS INTEGER ) AS col2
----
-49

query II rowsort
SELECT 61, 3 AS col0
----
61
3

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

query I rowsort
SELECT ALL - 27 + 72
----
45

onlyif mysql # DIV for integer division: 
query I rowsort label-5440
SELECT 22 DIV 57 - - ( - - 41 ) + - 54 AS col1
----
-13

skipif mysql # not compatible
query I rowsort label-5440
SELECT 22 / 57 - - ( - - 41 ) + - 54 AS col1
----
-13

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5443
SELECT ALL + CASE - 61 WHEN - + COUNT( * ) THEN + 42 END - 53 / - 4 + - 78 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5443
SELECT ALL + CASE - 61 WHEN - + COUNT ( * ) THEN + 42 END - 53 / - 4 + - 78 col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5444
SELECT ALL COUNT( DISTINCT - + 82 ) - + - MIN( + 27 )
----
28

skipif mysql # not compatible
query I rowsort label-5444
SELECT ALL COUNT ( DISTINCT - + 82 ) - + - MIN ( + 27 )
----
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5445
SELECT + - CASE + 88 WHEN + 62 THEN NULL WHEN + - ( - 86 ) + - MIN( - + 5 ) * 44 * - CAST( NULL AS SIGNED ) - - 51 THEN - 65 / + - NULLIF ( + 69, CAST( NULL AS SIGNED ) ) + + CAST( NULL AS SIGNED ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5445
SELECT + - CASE + 88 WHEN + 62 THEN NULL WHEN + - ( - 86 ) + - MIN ( - + 5 ) * 44 * - CAST ( NULL AS INTEGER ) - - 51 THEN - 65 / + - NULLIF ( + 69, CAST ( NULL AS INTEGER ) ) + + CAST ( NULL AS INTEGER ) END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5446
SELECT - 52 * COUNT( 3 ) + - ( + 82 )
----
-134

skipif mysql # not compatible
query I rowsort label-5446
SELECT - 52 * COUNT ( 3 ) + - ( + 82 )
----
-134

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5447
SELECT 41, 91 * - + ( + - CAST( NULL AS SIGNED ) ) + + 56 AS col1
----
41
NULL

skipif mysql # not compatible
query II rowsort label-5447
SELECT 41, 91 * - + ( + - CAST ( NULL AS INTEGER ) ) + + 56 AS col1
----
41
NULL

query I rowsort
SELECT + 61 + + 42 AS col1
----
103

query I rowsort
SELECT ALL - - ( - + COALESCE ( 71, + 54 ) ) AS col1
----
-71

onlyif mysql # aggregate syntax: 
query II rowsort label-5450
SELECT DISTINCT 40 * - + COUNT( 3 ) AS col1, + 2 - 63 + - + 95
----
-40
-156

skipif mysql # not compatible
query II rowsort label-5450
SELECT DISTINCT 40 * - + COUNT ( 3 ) AS col1, + 2 - 63 + - + 95
----
-40
-156

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5453
SELECT COUNT( * ) DIV + MAX( - + 88 )
----
0

skipif mysql # not compatible
query I rowsort label-5453
SELECT COUNT ( * ) / + MAX ( - + 88 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5454
SELECT ( + CASE + CASE - 52 WHEN 81 THEN + ( + 94 ) + - + ( + CAST( NULL AS SIGNED ) ) + - - CAST( NULL AS SIGNED ) + + NULLIF ( + COALESCE ( + 14, + + 28 * 30 * 26 + + - 67, - + 86 + 55 + + 65 * - 46 + 74 * - CAST( 38 AS SIGNED ) / + 86 ), + - 24 * 40 ) * + 78 WHEN + 18 * 1 THEN 25 + 86 / CASE 89 WHEN 33 * COALESCE ( - 20 * CASE - CAST( NULL AS SIGNED ) WHEN + 24 THEN 31 / 24 + SUM( 79 ) WHEN 58 * 24 + 14 * 81 THEN NULL ELSE NULL END, CASE + CASE + 59 WHEN 6 + - COUNT( * ) THEN + COUNT( * ) ELSE NULL END WHEN + COUNT( * ) THEN NULL WHEN + 57 THEN - 67 * 27 ELSE NULL END ) THEN 26 END ELSE NULL END WHEN + 2 THEN - 31 ELSE CAST( NULL AS SIGNED ) END ) / ( - COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5454
SELECT ( + CASE + CASE - 52 WHEN 81 THEN + ( + 94 ) + - + ( + CAST ( NULL AS INTEGER ) ) + - - CAST ( NULL AS INTEGER ) + + NULLIF ( + COALESCE ( + 14, + + 28 * 30 * 26 + + - 67, - + 86 + 55 + + 65 * - 46 + 74 * - CAST ( 38 AS INTEGER ) / + 86 ), + - 24 * 40 ) * + 78 WHEN + 18 * 1 THEN 25 + 86 / CASE 89 WHEN 33 * COALESCE ( - 20 * CASE - CAST ( NULL AS INTEGER ) WHEN + 24 THEN 31 / 24 + SUM ( 79 ) WHEN 58 * 24 + 14 * 81 THEN NULL ELSE NULL END, CASE + CASE + 59 WHEN 6 + - COUNT ( * ) THEN + COUNT ( * ) ELSE NULL END WHEN + COUNT ( * ) THEN NULL WHEN + 57 THEN - 67 * 27 ELSE NULL END ) THEN 26 END ELSE NULL END WHEN + 2 THEN - 31 ELSE CAST ( NULL AS INTEGER ) END ) / ( - COUNT ( * ) )
----
NULL

query II rowsort
SELECT ( - 39 ) * + COALESCE ( - - 66, + + 81 ), - 27 AS col0
----
-2574
-27

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

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

query I rowsort
SELECT 49 * + 39 * - 15
----
-28665

onlyif mysql # aggregate syntax: 
query I rowsort label-5458
SELECT COUNT( ALL + 61 ) * - SUM( ALL + + 35 ) + + + COUNT( * ) * + - 38
----
-73

skipif mysql # not compatible
query I rowsort label-5458
SELECT COUNT ( ALL + 61 ) * - SUM ( ALL + + 35 ) + + + COUNT ( * ) * + - 38
----
-73

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

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

query I rowsort
SELECT DISTINCT 30 * - 32 AS col1
----
-960

query I rowsort
SELECT DISTINCT 41 + + 51 AS col0
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-5462
SELECT ALL + MAX( ALL 53 ) * - + 70
----
-3710

skipif mysql # not compatible
query I rowsort label-5462
SELECT ALL + MAX ( ALL 53 ) * - + 70
----
-3710

onlyif mysql # aggregate syntax: 
query I rowsort label-5463
SELECT ( + MAX( + 14 ) ) + + 73 * - - 75 AS col0
----
5489

skipif mysql # not compatible
query I rowsort label-5463
SELECT ( + MAX ( + 14 ) ) + + 73 * - - 75 AS col0
----
5489

query I rowsort
SELECT ALL 35 + + ( 75 ) AS col2
----
110

query I rowsort
SELECT ALL + 33 + - + 29 col0
----
4

query I rowsort
SELECT ALL NULLIF ( + ( 34 ), 34 ) AS col0
----
NULL

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

skipif mysql # not compatible
query I rowsort label-5467
SELECT + - COUNT ( * ) / - + 72
----
0

query II rowsort
SELECT - ( 54 ) AS col0, - 16 AS col1
----
-54
-16

query I rowsort
SELECT - + 37 + - 5 * + COALESCE ( + 94, - 78 ) AS col1
----
-507

onlyif mysql # DIV for integer division: 
query I rowsort label-5470
SELECT + ( + 53 ) DIV + + 79 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5470
SELECT + ( + 53 ) / + + 79 AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5471
SELECT DISTINCT + + 74 DIV SUM( + 15 ) AS col1
----
4

skipif mysql # not compatible
query I rowsort label-5471
SELECT DISTINCT + + 74 / SUM ( + 15 ) AS col1
----
4

query I rowsort
SELECT - - 18 + - 20 + - 24 * + 47 * - 51
----
57526

onlyif mysql # aggregate syntax: 
query I rowsort label-5473
SELECT ALL + - 24 * - + 87 * + COUNT( * )
----
2088

skipif mysql # not compatible
query I rowsort label-5473
SELECT ALL + - 24 * - + 87 * + COUNT ( * )
----
2088

onlyif mysql # DIV for integer division: 
query I rowsort label-5474
SELECT ALL 79 DIV - - 12
----
6

skipif mysql # not compatible
query I rowsort label-5474
SELECT ALL 79 / - - 12
----
6

query I rowsort
SELECT ALL + 15 * 36
----
540

query I rowsort
SELECT - + 10 * 95 + - 73 - - + 16 AS col2
----
-1007

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5477
SELECT ALL + NULLIF ( - 98, - 61 * - - 42 * + 45 * + - SUM( - 91 ) / + - ( CAST( + 4 AS SIGNED ) ) ) AS col0
----
-98

skipif mysql # not compatible
query I rowsort label-5477
SELECT ALL + NULLIF ( - 98, - 61 * - - 42 * + 45 * + - SUM ( - 91 ) / + - ( CAST ( + 4 AS INTEGER ) ) ) AS col0
----
-98

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

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

query I rowsort
SELECT - 98 * 10 AS col1
----
-980

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5480
SELECT + + CAST( + AVG ( 7 ) AS SIGNED )
----
7

skipif mysql # not compatible
query I rowsort label-5480
SELECT + + CAST ( + AVG ( 7 ) AS INTEGER )
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-5481
SELECT 74 * + 50 - + 70 + + CASE - 78 WHEN - NULLIF ( ( - ( - + 77 ) ), - 33 ) THEN - - 91 + + MIN( ALL - 0 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5481
SELECT 74 * + 50 - + 70 + + CASE - 78 WHEN - NULLIF ( ( - ( - + 77 ) ), - 33 ) THEN - - 91 + + MIN ( ALL - 0 ) ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5482
SELECT DISTINCT + - SUM( - CAST( + 27 AS SIGNED ) )
----
27

skipif mysql # not compatible
query I rowsort label-5482
SELECT DISTINCT + - SUM ( - CAST ( + 27 AS INTEGER ) )
----
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5483
SELECT NULLIF ( - CAST( NULL AS SIGNED ), - 46 * 27 + + 78 / + 85 + - 94 + 30 + - COUNT( * ) - - 94 * + COALESCE ( - ( + 15 ), + COALESCE ( - 34, + CAST( + + COUNT( * ) AS SIGNED ) / + - 38, - COUNT( * ) * - 13 + + + 13 ), + - 82 + 54 ) * - - 2 + + 86 + 78 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5483
SELECT NULLIF ( - CAST ( NULL AS INTEGER ), - 46 * 27 + + 78 / + 85 + - 94 + 30 + - COUNT ( * ) - - 94 * + COALESCE ( - ( + 15 ), + COALESCE ( - 34, + CAST ( + + COUNT ( * ) AS INTEGER ) / + - 38, - COUNT ( * ) * - 13 + + + 13 ), + - 82 + 54 ) * - - 2 + + 86 + 78 ) AS col0
----
NULL

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5485
SELECT ALL COUNT( * ) * + + 99 * - + 84 DIV + - 7
----
1188

skipif mysql # not compatible
query I rowsort label-5485
SELECT ALL COUNT ( * ) * + + 99 * - + 84 / + - 7
----
1188

query I rowsort
SELECT - 7 + + 95 AS col0
----
88

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5487
SELECT + 44 AS col0, COALESCE ( - 35, + 78 DIV + 21 + + 81 * - 52 * 55, - 34 + - - COUNT( * ) * - 10 )
----
44
-35

skipif mysql # not compatible
query II rowsort label-5487
SELECT + 44 AS col0, COALESCE ( - 35, + 78 / + 21 + + 81 * - 52 * 55, - 34 + - - COUNT ( * ) * - 10 )
----
44
-35

onlyif mysql # DIV for integer division: 
query II rowsort label-5488
SELECT - ( - 18 ) + + - 29 + - - 3 DIV 37 AS col2, + 69 + 23 col0
----
-11
92

skipif mysql # not compatible
query II rowsort label-5488
SELECT - ( - 18 ) + + - 29 + - - 3 / 37 AS col2, + 69 + 23 col0
----
-11
92

onlyif mysql # aggregate syntax: 
query I rowsort label-5489
SELECT + NULLIF ( + COALESCE ( 89, 61 ), + MIN( 18 ) * - COUNT( * ) * - NULLIF ( - + AVG ( DISTINCT + ( - 6 ) ), - + 92 ) ) AS col0
----
89

skipif mysql # not compatible
query I rowsort label-5489
SELECT + NULLIF ( + COALESCE ( 89, 61 ), + MIN ( 18 ) * - COUNT ( * ) * - NULLIF ( - + AVG ( DISTINCT + ( - 6 ) ), - + 92 ) ) AS col0
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-5490
SELECT MIN( 84 )
----
84

skipif mysql # not compatible
query I rowsort label-5490
SELECT MIN ( 84 )
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-5491
SELECT - COUNT( - - 66 ) + + - NULLIF ( + 23, + + ( ( + NULLIF ( + - 92, + + 17 ) ) ) ) AS col1
----
-24

skipif mysql # not compatible
query I rowsort label-5491
SELECT - COUNT ( - - 66 ) + + - NULLIF ( + 23, + + ( ( + NULLIF ( + - 92, + + 17 ) ) ) ) AS col1
----
-24

query II rowsort
SELECT ALL + 48 AS col0, 61
----
48
61

query I rowsort
SELECT ALL - 85 * - 0 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5494
SELECT - COALESCE ( - + CASE + 65 WHEN + 83 THEN + COUNT( * ) * - 81 * - SUM( ALL + 22 ) END, + - 65, + 51 - - 32 + - 84 ) col0
----
65

skipif mysql # not compatible
query I rowsort label-5494
SELECT - COALESCE ( - + CASE + 65 WHEN + 83 THEN + COUNT ( * ) * - 81 * - SUM ( ALL + 22 ) END, + - 65, + 51 - - 32 + - 84 ) col0
----
65

query I rowsort
SELECT ALL 41 * - NULLIF ( + - ( - 24 ), - - 14 ) + + - 66
----
-1050

query I rowsort
SELECT ALL 17 + - 61 AS col2
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-5497
SELECT + 23 * + + 12 * - SUM( DISTINCT - - NULLIF ( - 24, - 38 ) ) AS col2
----
6624

skipif mysql # not compatible
query I rowsort label-5497
SELECT + 23 * + + 12 * - SUM ( DISTINCT - - NULLIF ( - 24, - 38 ) ) AS col2
----
6624

query I rowsort
SELECT - ( 26 ) * 62 + - + 48 AS col0
----
-1660

onlyif mysql # aggregate syntax: 
query I rowsort label-5499
SELECT + - 82 + - MAX( - 72 ) * + 23 - - 84 + + 11 * ( + 34 ) + 5 * + COUNT( * ) + + 68
----
2105

skipif mysql # not compatible
query I rowsort label-5499
SELECT + - 82 + - MAX ( - 72 ) * + 23 - - 84 + + 11 * ( + 34 ) + 5 * + COUNT ( * ) + + 68
----
2105

onlyif mysql # aggregate syntax: 
query I rowsort label-5500
SELECT DISTINCT SUM( + 51 ) - + COUNT( * ) + + 14 * CASE COUNT( * ) WHEN - 17 + 94 THEN + - COUNT( * ) WHEN + 8 THEN + 44 * 74 END + - - NULLIF ( - 15, + 80 * - 67 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5500
SELECT DISTINCT SUM ( + 51 ) - + COUNT ( * ) + + 14 * CASE COUNT ( * ) WHEN - 17 + 94 THEN + - COUNT ( * ) WHEN + 8 THEN + 44 * 74 END + - - NULLIF ( - 15, + 80 * - 67 ) AS col0
----
NULL

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5505
SELECT ALL 2 AS col2, - 95 - + + COUNT( * ) + SUM( ALL - ( - + 73 ) ) AS col1
----
2
-23

skipif mysql # not compatible
query II rowsort label-5505
SELECT ALL 2 AS col2, - 95 - + + COUNT ( * ) + SUM ( ALL - ( - + 73 ) ) AS col1
----
2
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-5506
SELECT ALL - 19 - + + ( + 74 ) * - CASE 0 WHEN + + ( + 9 ) THEN MIN( + 61 ) + - 25 WHEN + COUNT( * ) THEN + 29 + - 39 * - 73 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5506
SELECT ALL - 19 - + + ( + 74 ) * - CASE 0 WHEN + + ( + 9 ) THEN MIN ( + 61 ) + - 25 WHEN + COUNT ( * ) THEN + 29 + - 39 * - 73 END
----
NULL

query I rowsort
SELECT + + 56 * + - 75 AS col0
----
-4200

query I rowsort
SELECT + 16 - - 65 + - + ( 40 )
----
41

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5510
SELECT + - 70 + + COUNT( * ) * - 24 * - 69 AS col2
----
1586

skipif mysql # not compatible
query I rowsort label-5510
SELECT + - 70 + + COUNT ( * ) * - 24 * - 69 AS col2
----
1586

onlyif mysql # aggregate syntax: 
query I rowsort label-5511
SELECT - COUNT( * ) - + + 64 + - 47 * + COUNT( * ) * 60
----
-2885

skipif mysql # not compatible
query I rowsort label-5511
SELECT - COUNT ( * ) - + + 64 + - 47 * + COUNT ( * ) * 60
----
-2885

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5512
SELECT - + COUNT( * ) DIV 40 * - + COUNT( * ) DIV + + 79
----
0

skipif mysql # not compatible
query I rowsort label-5512
SELECT - + COUNT ( * ) / 40 * - + COUNT ( * ) / + + 79
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5513
SELECT + CAST( - 90 AS SIGNED ) * 79 + + 90 + + 10 * - 15
----
-7170

skipif mysql # not compatible
query I rowsort label-5513
SELECT + CAST ( - 90 AS INTEGER ) * 79 + + 90 + + 10 * - 15
----
-7170

onlyif mysql # DIV for integer division: 
query I rowsort label-5514
SELECT + ( - 4 ) DIV 83 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5514
SELECT + ( - 4 ) / 83 AS col2
----
0

query I rowsort
SELECT ALL - 34 * 34 AS col0
----
-1156

query I rowsort
SELECT 29 * - - 29 * - 98 + + 71
----
-82347

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

skipif mysql # not compatible
query I rowsort label-5517
SELECT ALL - COUNT ( * ) / + + 37 + + 38
----
38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5518
SELECT ALL + 15 * - COUNT( DISTINCT - 36 ) * CAST( + 52 AS SIGNED ) AS col2
----
-780

skipif mysql # not compatible
query I rowsort label-5518
SELECT ALL + 15 * - COUNT ( DISTINCT - 36 ) * CAST ( + 52 AS INTEGER ) AS col2
----
-780

onlyif mysql # DIV for integer division: 
query I rowsort label-5519
SELECT 25 DIV - 69 + 9
----
9

skipif mysql # not compatible
query I rowsort label-5519
SELECT 25 / - 69 + 9
----
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5520
SELECT COUNT( * ) DIV + 59 + + - 54 + + + 49
----
-5

skipif mysql # not compatible
query I rowsort label-5520
SELECT COUNT ( * ) / + 59 + + - 54 + + + 49
----
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5521
SELECT CAST( 5 AS SIGNED ) AS col0
----
5

skipif mysql # not compatible
query I rowsort label-5521
SELECT CAST ( 5 AS INTEGER ) AS col0
----
5

query II rowsort
SELECT + 39 AS col0, 2 * 7 AS col2
----
39
14

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5524
SELECT - 19 * 15 + - - CAST( + 90 AS SIGNED )
----
-195

skipif mysql # not compatible
query I rowsort label-5524
SELECT - 19 * 15 + - - CAST ( + 90 AS INTEGER )
----
-195

onlyif mysql # aggregate syntax: 
query I rowsort label-5525
SELECT ( + MIN( - 41 ) ) AS col2
----
-41

skipif mysql # not compatible
query I rowsort label-5525
SELECT ( + MIN ( - 41 ) ) AS col2
----
-41

query II rowsort
SELECT DISTINCT + 26, - 96 col1
----
26
-96

query I rowsort
SELECT - 30 * - 63
----
1890

query I rowsort
SELECT 77 - - - 64
----
13

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

skipif mysql # not compatible
query I rowsort label-5529
SELECT 86 / - COUNT ( * )
----
-86

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

skipif mysql # not compatible
query I rowsort label-5530
SELECT 22 * 73 * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5531
SELECT 28 + CASE - - 23 WHEN - + CAST( NULL AS SIGNED ) * + 60 THEN - MAX( ALL - 85 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-5531
SELECT 28 + CASE - - 23 WHEN - + CAST ( NULL AS INTEGER ) * + 60 THEN - MAX ( ALL - 85 ) END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5532
SELECT ALL + COUNT( * ) - COUNT( * ) AS col2, - ( + COUNT( * ) ) - - + 45
----
0
44

skipif mysql # not compatible
query II rowsort label-5532
SELECT ALL + COUNT ( * ) - COUNT ( * ) AS col2, - ( + COUNT ( * ) ) - - + 45
----
0
44

query I rowsort
SELECT DISTINCT + + 3 - + 51 * - + 41
----
2094

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5534
SELECT ALL - 26 AS col2, + CAST( NULL AS SIGNED ) * - + 20
----
-26
NULL

skipif mysql # not compatible
query II rowsort label-5534
SELECT ALL - 26 AS col2, + CAST ( NULL AS INTEGER ) * - + 20
----
-26
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5535
SELECT NULLIF ( + CAST( + + 64 AS SIGNED ), 94 ) * 41 + - 10 + + 9 + - + 67
----
2556

skipif mysql # not compatible
query I rowsort label-5535
SELECT NULLIF ( + CAST ( + + 64 AS INTEGER ), 94 ) * 41 + - 10 + + 9 + - + 67
----
2556

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5536
SELECT DISTINCT - 29 * - 52 + 56 + - 46 - + 14 * NULLIF ( - 89, + + 32 - CAST( + ( + 14 ) AS SIGNED ) * - CASE + CASE + 30 WHEN - 96 THEN NULL WHEN 60 THEN NULL ELSE - + 92 END WHEN + - 39 THEN + 65 * - 74 ELSE NULL END ) * + ( - 57 )
----
-69504

skipif mysql # not compatible
query I rowsort label-5536
SELECT DISTINCT - 29 * - 52 + 56 + - 46 - + 14 * NULLIF ( - 89, + + 32 - CAST ( + ( + 14 ) AS INTEGER ) * - CASE + CASE + 30 WHEN - 96 THEN NULL WHEN 60 THEN NULL ELSE - + 92 END WHEN + - 39 THEN + 65 * - 74 ELSE NULL END ) * + ( - 57 )
----
-69504

onlyif mysql # aggregate syntax: 
query II rowsort label-5537
SELECT DISTINCT - - 91 * - 45 * 70 * - 68 + + - 31 + COUNT( * ) AS col0, + 26
----
19492170
26

skipif mysql # not compatible
query II rowsort label-5537
SELECT DISTINCT - - 91 * - 45 * 70 * - 68 + + - 31 + COUNT ( * ) AS col0, + 26
----
19492170
26

query II rowsort
SELECT ALL 42, + ( 13 ) + - + 8 AS col2
----
42
5

onlyif mysql # aggregate syntax: 
query I rowsort label-5539
SELECT ( + 57 ) + + MIN( DISTINCT - 12 ) * + CASE - CASE 84 WHEN 93 + ( - COUNT( * ) ) THEN 79 ELSE NULL END WHEN + + 94 THEN 65 + - 75 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5539
SELECT ( + 57 ) + + MIN ( DISTINCT - 12 ) * + CASE - CASE 84 WHEN 93 + ( - COUNT ( * ) ) THEN 79 ELSE NULL END WHEN + + 94 THEN 65 + - 75 END
----
NULL

query I rowsort
SELECT + 5 * + 44
----
220

query II rowsort
SELECT + 31 AS col2, 40
----
31
40

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

query I rowsort
SELECT - 71 * - 28 + - 4 AS col2
----
1984

onlyif mysql # DIV for integer division: 
query I rowsort label-5544
SELECT ALL + 63 + CASE + 24 WHEN + 53 THEN NULL WHEN - 7 + - 65 THEN + - 89 DIV + - 10 ELSE + 79 - - - 97 * 96 - 91 END
----
-9261

skipif mysql # not compatible
query I rowsort label-5544
SELECT ALL + 63 + CASE + 24 WHEN + 53 THEN NULL WHEN - 7 + - 65 THEN + - 89 / + - 10 ELSE + 79 - - - 97 * 96 - 91 END
----
-9261

query I rowsort
SELECT - - ( 66 )
----
66

query I rowsort
SELECT ALL - 94 * - 36 AS col0
----
3384

query II rowsort
SELECT DISTINCT 72 + + 6, 79 AS col0
----
78
79

query I rowsort
SELECT ALL ( 39 ) + - 42 * - 1 * + ( - 74 ) AS col2
----
-3069

onlyif mysql # aggregate syntax: 
query I rowsort label-5549
SELECT DISTINCT ( + CASE - - 9 WHEN + - COUNT( * ) THEN - 33 ELSE 5 END ) * + 56 AS col0
----
280

skipif mysql # not compatible
query I rowsort label-5549
SELECT DISTINCT ( + CASE - - 9 WHEN + - COUNT ( * ) THEN - 33 ELSE 5 END ) * + 56 AS col0
----
280

query I rowsort
SELECT 52 * + 5 * + 91
----
23660

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5551
SELECT 7 DIV + + CAST( AVG ( 14 ) AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-5551
SELECT 7 / + + CAST ( AVG ( 14 ) AS INTEGER )
----
0

query I rowsort
SELECT DISTINCT 25 + - 58
----
-33

query I rowsort
SELECT ALL - 13 col0
----
-13

onlyif mysql # DIV for integer division: 
query I rowsort label-5554
SELECT DISTINCT 18 DIV + ( - 59 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5554
SELECT DISTINCT 18 / + ( - 59 ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5555
SELECT ALL + COUNT( * ) + + 88 - - - COUNT( * ) AS col2, 91 AS col2
----
88
91

skipif mysql # not compatible
query II rowsort label-5555
SELECT ALL + COUNT ( * ) + + 88 - - - COUNT ( * ) AS col2, 91 AS col2
----
88
91

query I rowsort
SELECT 3 * ( + 47 )
----
141

query I rowsort
SELECT ALL 53 * + 12 AS col2
----
636

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5558
SELECT - 33 * - NULLIF ( CAST( ( + SUM( ALL + + 55 ) ) AS SIGNED ), 25 / 85 * CAST( 89 AS SIGNED ) * SUM( DISTINCT 56 ) ) - - MAX( - 10 ) AS col2
----
1805

skipif mysql # not compatible
query I rowsort label-5558
SELECT - 33 * - NULLIF ( CAST ( ( + SUM ( ALL + + 55 ) ) AS INTEGER ), 25 / 85 * CAST ( 89 AS INTEGER ) * SUM ( DISTINCT 56 ) ) - - MAX ( - 10 ) AS col2
----
1805

query I rowsort
SELECT 96 + 88 AS col0
----
184

onlyif mysql # DIV for integer division: 
query I rowsort label-5560
SELECT 31 - + + ( - + 63 ) DIV + 51
----
32

skipif mysql # not compatible
query I rowsort label-5560
SELECT 31 - + + ( - + 63 ) / + 51
----
32

query I rowsort
SELECT 2 * - + 90
----
-180

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-5562
SELECT ALL - ( - 8 ) AS col0, COALESCE ( 88, + + MAX( DISTINCT + 62 ) * + COUNT( * ) + + 57 DIV + MAX( - 44 ) * - 30, + - COALESCE ( + + 57, + 9 + 44 ) ), - 11 AS col1
----
8
88
-11

skipif mysql # not compatible
query III rowsort label-5562
SELECT ALL - ( - 8 ) AS col0, COALESCE ( 88, + + MAX ( DISTINCT + 62 ) * + COUNT ( * ) + + 57 / + MAX ( - 44 ) * - 30, + - COALESCE ( + + 57, + 9 + 44 ) ), - 11 AS col1
----
8
88
-11

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5564
SELECT DISTINCT - + 88 * + 0 * + ( 8 ) + 18 + CAST( NULL AS SIGNED ) + + - ( + 67 ) + - - 0
----
NULL

skipif mysql # not compatible
query I rowsort label-5564
SELECT DISTINCT - + 88 * + 0 * + ( 8 ) + 18 + CAST ( NULL AS INTEGER ) + + - ( + 67 ) + - - 0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5565
SELECT + SUM( + - 56 ) DIV + NULLIF ( - 37, + - 86 + 57 * + AVG ( DISTINCT - 6 ) + - 45 + + - 94 DIV 6 ) + ( - CAST( + 9 AS SIGNED ) ) * 45 * - - COUNT( * ) AS col0
----
-404

skipif mysql # not compatible
query I rowsort label-5565
SELECT + SUM ( + - 56 ) / + NULLIF ( - 37, + - 86 + 57 * + AVG ( DISTINCT - 6 ) + - 45 + + - 94 / 6 ) + ( - CAST ( + 9 AS INTEGER ) ) * 45 * - - COUNT ( * ) AS col0
----
-404

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5567
SELECT - CAST( + NULLIF ( COALESCE ( - 57, - ( - 66 ), + - 53 ), - 1 ) AS SIGNED ) + 21
----
78

skipif mysql # not compatible
query I rowsort label-5567
SELECT - CAST ( + NULLIF ( COALESCE ( - 57, - ( - 66 ), + - 53 ), - 1 ) AS INTEGER ) + 21
----
78

query II rowsort
SELECT - 78 + 4, - 74 * 12 AS col1
----
-74
-888

query I rowsort
SELECT ALL + + 46 * - 14
----
-644

query I rowsort
SELECT ALL + 7 + - 16 AS col2
----
-9

query II rowsort
SELECT - 44 + + 36 col0, 31 AS col2
----
-8
31

onlyif mysql # aggregate syntax: 
query I rowsort label-5572
SELECT + NULLIF ( + NULLIF ( - 1, 17 * + COUNT( * ) ), + ( 89 ) ) - - 75 + + COUNT( * ) AS col2
----
75

skipif mysql # not compatible
query I rowsort label-5572
SELECT + NULLIF ( + NULLIF ( - 1, 17 * + COUNT ( * ) ), + ( 89 ) ) - - 75 + + COUNT ( * ) AS col2
----
75

query I rowsort
SELECT 52 + 3 AS col0
----
55

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5574
SELECT ALL 25, SUM( DISTINCT - 39 ) * - + ( COALESCE ( - 48, - COUNT( - 0 ) DIV + + ( + NULLIF ( - AVG ( DISTINCT + 57 ), 79 * - 92 * 77 + + 41 ) ), + 47 ) ) * - - 16 AS col2
----
25
-29952

skipif mysql # not compatible
query II rowsort label-5574
SELECT ALL 25, SUM ( DISTINCT - 39 ) * - + ( COALESCE ( - 48, - COUNT ( - 0 ) / + + ( + NULLIF ( - AVG ( DISTINCT + 57 ), 79 * - 92 * 77 + + 41 ) ), + 47 ) ) * - - 16 AS col2
----
25
-29952

query I rowsort
SELECT 97 + + 11 AS col2
----
108

query I rowsort
SELECT 68 + - 71 AS col1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5577
SELECT ALL MAX( ALL 54 ) + - - ( 34 ) AS col1
----
88

skipif mysql # not compatible
query I rowsort label-5577
SELECT ALL MAX ( ALL 54 ) + - - ( 34 ) AS col1
----
88

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5579
SELECT NULLIF ( + 22, - COALESCE ( + 96, 73 ) ) * + 92 + + 84 + + - COUNT( * ) / - - 38 * + COALESCE ( + 89, 93, - - 44 + - 73 + + 88 / + + 98 ) * - 60 / + CAST( NULL AS SIGNED ) - - 24 + - 25 * + 78 * - ( - MIN( + - 79 ) ) + + 21 + - - 40 + - - 8 * 18
----
NULL

skipif mysql # not compatible
query I rowsort label-5579
SELECT NULLIF ( + 22, - COALESCE ( + 96, 73 ) ) * + 92 + + 84 + + - COUNT ( * ) / - - 38 * + COALESCE ( + 89, 93, - - 44 + - 73 + + 88 / + + 98 ) * - 60 / + CAST ( NULL AS INTEGER ) - - 24 + - 25 * + 78 * - ( - MIN ( + - 79 ) ) + + 21 + - - 40 + - - 8 * 18
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5580
SELECT DISTINCT 78 * + + COUNT( * ) DIV + - COUNT( * ) AS col0, COALESCE ( + + COUNT( * ), + SUM( ALL - 3 ), - CAST( NULL AS SIGNED ) + - 28 + + - 22 ) * - + NULLIF ( + 10, - 27 ) DIV - 66 * - 40 + + 89 * 86 - ( + - 11 ) * - - 36 * CAST( - 97 AS SIGNED ) + - 54 AS col2
----
-78
-30812

skipif mysql # not compatible
query II rowsort label-5580
SELECT DISTINCT 78 * + + COUNT ( * ) / + - COUNT ( * ) AS col0, COALESCE ( + + COUNT ( * ), + SUM ( ALL - 3 ), - CAST ( NULL AS INTEGER ) + - 28 + + - 22 ) * - + NULLIF ( + 10, - 27 ) / - 66 * - 40 + + 89 * 86 - ( + - 11 ) * - - 36 * CAST ( - 97 AS INTEGER ) + - 54 AS col2
----
-78
-30812

query I rowsort
SELECT ALL 23 * - + 7 - 22 + 74
----
-109

query I rowsort
SELECT CASE 20 WHEN 16 * - 64 - 0 * + 79 + 54 THEN NULL ELSE + 14 + + 24 END
----
38

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

skipif mysql # not compatible
query I rowsort label-5583
SELECT ALL 12 * - - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5584
SELECT + COUNT( * ) col1, 32 + - CAST( - 0 AS SIGNED ) + + COUNT( * ) * + COUNT( * ) * - 15
----
1
17

skipif mysql # not compatible
query II rowsort label-5584
SELECT + COUNT ( * ) col1, 32 + - CAST ( - 0 AS INTEGER ) + + COUNT ( * ) * + COUNT ( * ) * - 15
----
1
17

onlyif mysql # aggregate syntax: 
query I rowsort label-5585
SELECT + 0 + + - COUNT( * ) + - - 73 - + + 17
----
55

skipif mysql # not compatible
query I rowsort label-5585
SELECT + 0 + + - COUNT ( * ) + - - 73 - + + 17
----
55

query II rowsort
SELECT ALL + 57, + 39 AS col0
----
57
39

onlyif mysql # aggregate syntax: 
query I rowsort label-5587
SELECT + COUNT( DISTINCT + + 22 )
----
1

skipif mysql # not compatible
query I rowsort label-5587
SELECT + COUNT ( DISTINCT + + 22 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5588
SELECT - CASE - 17 WHEN - 56 + + ( - 20 ) THEN - MIN( - 4 ) END * - 91 * 97 + - 6 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5588
SELECT - CASE - 17 WHEN - 56 + + ( - 20 ) THEN - MIN ( - 4 ) END * - 91 * 97 + - 6 AS col0
----
NULL

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

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

query I rowsort
SELECT - 94 * - 77 * 84
----
607992

query II rowsort
SELECT 0 * + 58 + + 73, 85 + + 29 AS col0
----
73
114

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5593
SELECT DISTINCT - 12 DIV + COUNT( + 23 )
----
-12

skipif mysql # not compatible
query I rowsort label-5593
SELECT DISTINCT - 12 / + COUNT ( + 23 )
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-5594
SELECT + MIN( ALL - + 5 ) * - + 52 AS col1
----
260

skipif mysql # not compatible
query I rowsort label-5594
SELECT + MIN ( ALL - + 5 ) * - + 52 AS col1
----
260

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

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

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

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

query I rowsort
SELECT + + 82 * + + 16
----
1312

query I rowsort
SELECT - + 77 + + 60
----
-17

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

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

skipif mysql # not compatible
query I rowsort label-5600
SELECT - + COUNT ( * ) - - - 30 + + 89 AS col2
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-5601
SELECT DISTINCT + 69 + - COUNT( * ) AS col2
----
68

skipif mysql # not compatible
query I rowsort label-5601
SELECT DISTINCT + 69 + - COUNT ( * ) AS col2
----
68

query I rowsort
SELECT ALL - + 81 + 50
----
-31

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5603
SELECT ALL + - COUNT( * ) + - + 16 DIV - 78 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-5603
SELECT ALL + - COUNT ( * ) + - + 16 / - 78 AS col1
----
-1

query II rowsort
SELECT - 0 col0, - 29 AS col2
----
0
-29

query I rowsort
SELECT + - 56 * + 14 + - ( - - ( + - 82 ) )
----
-702

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5606
SELECT - - 50 + COUNT( * ) DIV 59 AS col1, + 71 AS col2
----
50
71

skipif mysql # not compatible
query II rowsort label-5606
SELECT - - 50 + COUNT ( * ) / 59 AS col1, + 71 AS col2
----
50
71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5607
SELECT - CAST( - COALESCE ( - + 62, + COALESCE ( - 84, - 46 * + 31 ) ) AS SIGNED ) AS col1
----
-62

skipif mysql # not compatible
query I rowsort label-5607
SELECT - CAST ( - COALESCE ( - + 62, + COALESCE ( - 84, - 46 * + 31 ) ) AS INTEGER ) AS col1
----
-62

query I rowsort
SELECT - - 17 - + - 56 AS col0
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-5609
SELECT ALL + 11 * CASE + COUNT( * ) WHEN - + 14 THEN 61 + - - CASE + - 49 WHEN + + 64 THEN 35 + - + MIN( DISTINCT - 81 ) + + 3 ELSE NULL END ELSE NULL END + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-5609
SELECT ALL + 11 * CASE + COUNT ( * ) WHEN - + 14 THEN 61 + - - CASE + - 49 WHEN + + 64 THEN 35 + - + MIN ( DISTINCT - 81 ) + + 3 ELSE NULL END ELSE NULL END + COUNT ( * )
----
NULL

query II rowsort
SELECT DISTINCT 28, 40 AS col1
----
28
40

query I rowsort
SELECT DISTINCT + 39 - - 91
----
130

onlyif mysql # aggregate syntax: 
query I rowsort label-5612
SELECT - ( + SUM( - - 35 ) ) * 52 + 53 AS col0
----
-1767

skipif mysql # not compatible
query I rowsort label-5612
SELECT - ( + SUM ( - - 35 ) ) * 52 + 53 AS col0
----
-1767

query II rowsort
SELECT ALL + 66 * 60 AS col2, 14 AS col2
----
3960
14

query I rowsort
SELECT DISTINCT NULLIF ( + - 22, + 42 ) AS col1
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-5615
SELECT ALL - 94 * - - COUNT( * ) AS col1
----
-94

skipif mysql # not compatible
query I rowsort label-5615
SELECT ALL - 94 * - - COUNT ( * ) AS col1
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-5616
SELECT DISTINCT + COUNT( * ) - SUM( + 91 )
----
-90

skipif mysql # not compatible
query I rowsort label-5616
SELECT DISTINCT + COUNT ( * ) - SUM ( + 91 )
----
-90

onlyif mysql # aggregate syntax: 
query II rowsort label-5617
SELECT - 7 * - 2, + COUNT( * ) AS col1
----
14
1

skipif mysql # not compatible
query II rowsort label-5617
SELECT - 7 * - 2, + COUNT ( * ) AS col1
----
14
1

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5619
SELECT + 24 DIV + ( + 96 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5619
SELECT + 24 / + ( + 96 ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5620
SELECT - MAX( ALL - 43 ) + + MAX( DISTINCT + 92 ) AS col0
----
135

skipif mysql # not compatible
query I rowsort label-5620
SELECT - MAX ( ALL - 43 ) + + MAX ( DISTINCT + 92 ) AS col0
----
135

query I rowsort
SELECT + NULLIF ( 42, - 32 ) col1
----
42

query II rowsort
SELECT - 71 * + 45, - NULLIF ( - 6, - 40 * + NULLIF ( NULLIF ( AVG ( ALL 97 ), + 65 ), + 91 ) * + - 4 - + 35 + + 45 + - 17 / - 98 ) AS col0
----
-3195
6

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5624
SELECT + ( + 80 ) AS col0, - SUM( - COALESCE ( + 18, - ( + 82 ) ) ) * - - 4
----
80
72

skipif mysql # not compatible
query II rowsort label-5624
SELECT + ( + 80 ) AS col0, - SUM ( - COALESCE ( + 18, - ( + 82 ) ) ) * - - 4
----
80
72

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5625
SELECT ALL + COALESCE ( 88, + 84 DIV + CAST( - 3 AS SIGNED ) + - 51 ) AS col2
----
88

skipif mysql # not compatible
query I rowsort label-5625
SELECT ALL + COALESCE ( 88, + 84 / + CAST ( - 3 AS INTEGER ) + - 51 ) AS col2
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-5626
SELECT DISTINCT + CASE - + 35 WHEN COUNT( * ) * + + COALESCE ( - MIN( - 85 ), + 28 + - 21 / + 40 + + COUNT( * ) ) * + - 27 + 48 THEN - + 82 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5626
SELECT DISTINCT + CASE - + 35 WHEN COUNT ( * ) * + + COALESCE ( - MIN ( - 85 ), + 28 + - 21 / + 40 + + COUNT ( * ) ) * + - 27 + 48 THEN - + 82 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-5627
SELECT + NULLIF ( + ( + COUNT( * ) ), - CASE + + 41 WHEN - 18 * - 41 THEN + COUNT( * ) + + 21 + + 67 + + MIN( DISTINCT + CAST( NULL AS DECIMAL ) ) + SUM( DISTINCT + 88 ) / - 10 WHEN - 60 * 10 - - CAST( NULL AS SIGNED ) + - 21 - - + 40 + + 82 + + 27 * - MAX( DISTINCT 1 ) * + - 80 THEN NULL END - + 50 + + + 79 ), 2 * - 23 AS col2
----
1
-46

skipif mysql # not compatible
query II rowsort label-5627
SELECT + NULLIF ( + ( + COUNT ( * ) ), - CASE + + 41 WHEN - 18 * - 41 THEN + COUNT ( * ) + + 21 + + 67 + + MIN ( DISTINCT + CAST ( NULL AS REAL ) ) + SUM ( DISTINCT + 88 ) / - 10 WHEN - 60 * 10 - - CAST ( NULL AS INTEGER ) + - 21 - - + 40 + + 82 + + 27 * - MAX ( DISTINCT 1 ) * + - 80 THEN NULL END - + 50 + + + 79 ), 2 * - 23 AS col2
----
1
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-5628
SELECT ( - MAX( DISTINCT 52 ) ) AS col2
----
-52

skipif mysql # not compatible
query I rowsort label-5628
SELECT ( - MAX ( DISTINCT 52 ) ) AS col2
----
-52

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5630
SELECT ( - 95 ) * - 15 + MIN( + 24 )
----
1449

skipif mysql # not compatible
query I rowsort label-5630
SELECT ( - 95 ) * - 15 + MIN ( + 24 )
----
1449

query I rowsort
SELECT DISTINCT - - 97 * + 52 + + - 9
----
5035

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5632
SELECT ALL + CASE - - 66 WHEN - - CAST( NULL AS DECIMAL ) * - + CAST( + + 73 AS SIGNED ) + + 37 THEN - ( - 78 ) END * 31 + 69 * - 96 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5632
SELECT ALL + CASE - - 66 WHEN - - CAST ( NULL AS REAL ) * - + CAST ( + + 73 AS INTEGER ) + + 37 THEN - ( - 78 ) END * 31 + 69 * - 96 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5633
SELECT - 63 * 50 * - COUNT( * ) * - 98 + + COUNT( * )
----
-308699

skipif mysql # not compatible
query I rowsort label-5633
SELECT - 63 * 50 * - COUNT ( * ) * - 98 + + COUNT ( * )
----
-308699

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5634
SELECT DISTINCT + 73 * + + 66 + - 12 - - CAST( NULL AS SIGNED ) + - + 32 / - + 13 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5634
SELECT DISTINCT + 73 * + + 66 + - 12 - - CAST ( NULL AS INTEGER ) + - + 32 / - + 13 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5635
SELECT DISTINCT + 45 * 96 + - 68 + 83 + COUNT( * ) AS col2
----
4336

skipif mysql # not compatible
query I rowsort label-5635
SELECT DISTINCT + 45 * 96 + - 68 + 83 + COUNT ( * ) AS col2
----
4336

query I rowsort
SELECT + + 85 + + 49 + + 31 * 17
----
661

query II rowsort
SELECT - + ( - 83 ) AS col1, ( - - ( - 48 ) )
----
83
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-5638
SELECT + 27 + + + 12 + - - COUNT( * ) col1
----
40

skipif mysql # not compatible
query I rowsort label-5638
SELECT + 27 + + + 12 + - - COUNT ( * ) col1
----
40

query I rowsort
SELECT - 96 * 72 AS col0
----
-6912

onlyif mysql # aggregate syntax: 
query II rowsort label-5640
SELECT - + 46 + - 47 col0, + 61 + + MAX( - - 8 ) AS col0
----
-93
69

skipif mysql # not compatible
query II rowsort label-5640
SELECT - + 46 + - 47 col0, + 61 + + MAX ( - - 8 ) AS col0
----
-93
69

query I rowsort
SELECT DISTINCT + 82 * ( - + 28 )
----
-2296

query I rowsort
SELECT ALL 79 + - + 75
----
4

query I rowsort
SELECT ALL 23 * + 43 AS col2
----
989

onlyif mysql # aggregate syntax: 
query I rowsort label-5644
SELECT + CASE COUNT( * ) WHEN + AVG ( 50 ) THEN 94 END + 9 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5644
SELECT + CASE COUNT ( * ) WHEN + AVG ( 50 ) THEN 94 END + 9 AS col1
----
NULL

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

skipif mysql # not compatible
query I rowsort label-5645
SELECT DISTINCT 2 * - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT ALL 61 - 52 AS col2
----
9

query I rowsort
SELECT 97 + + - 21 AS col2
----
76

query I rowsort
SELECT DISTINCT 96 - + - 26 AS col2
----
122

query I rowsort
SELECT 12 - ( + 27 ) + - COALESCE ( + 34, + ( + 75 ), + + 92 + - 89 ) col2
----
-49

query I rowsort
SELECT 16 * + 44 AS col0
----
704

query I rowsort
SELECT 22 + ( - 92 ) + - 35
----
-105

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5652
SELECT 3, 80 * 1 DIV COUNT( DISTINCT 36 ) * - + CAST( COUNT( * ) AS SIGNED ) AS col0
----
3
-80

skipif mysql # not compatible
query II rowsort label-5652
SELECT 3, 80 * 1 / COUNT ( DISTINCT 36 ) * - + CAST ( COUNT ( * ) AS INTEGER ) AS col0
----
3
-80

onlyif mysql # DIV for integer division: 
query I rowsort label-5653
SELECT 32 + - + 24 + - 53 DIV + + 22
----
6

skipif mysql # not compatible
query I rowsort label-5653
SELECT 32 + - + 24 + - 53 / + + 22
----
6

query I rowsort
SELECT ALL 47 col1
----
47

query I rowsort
SELECT 2 + - 2 + + - 76 + + 8 * - - ( - + 12 ) * + + 11
----
-1132

onlyif mysql # DIV for integer division: 
query I rowsort label-5656
SELECT ALL 53 DIV - 95
----
0

skipif mysql # not compatible
query I rowsort label-5656
SELECT ALL 53 / - 95
----
0

query I rowsort
SELECT 12 + - 65 + + + 47 * 24
----
1075

onlyif mysql # aggregate syntax: 
query I rowsort label-5658
SELECT ALL - MIN( DISTINCT 72 ) AS col0
----
-72

skipif mysql # not compatible
query I rowsort label-5658
SELECT ALL - MIN ( DISTINCT 72 ) AS col0
----
-72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5659
SELECT ALL - 0 + - SUM( - 67 ), 80 + + 68 + + + CAST( NULL AS SIGNED ) - 2 + COUNT( * ) AS col1
----
67
NULL

skipif mysql # not compatible
query II rowsort label-5659
SELECT ALL - 0 + - SUM ( - 67 ), 80 + + 68 + + + CAST ( NULL AS INTEGER ) - 2 + COUNT ( * ) AS col1
----
67
NULL

query II rowsort
SELECT 41 AS col2, - 5 * + - 82 AS col2
----
41
410

query II rowsort
SELECT 11 AS col0, - 50
----
11
-50

onlyif mysql # DIV for integer division: 
query I rowsort label-5662
SELECT - 7 DIV + 94 + + 34 * ( + 25 )
----
850

skipif mysql # not compatible
query I rowsort label-5662
SELECT - 7 / + 94 + + 34 * ( + 25 )
----
850

onlyif mysql # aggregate syntax: 
query II rowsort label-5663
SELECT ALL - ( - ( 38 ) ) AS col1, + MIN( 85 )
----
38
85

skipif mysql # not compatible
query II rowsort label-5663
SELECT ALL - ( - ( 38 ) ) AS col1, + MIN ( 85 )
----
38
85

onlyif mysql # aggregate syntax: 
query I rowsort label-5664
SELECT 29 + COUNT( * ) + + COUNT( * ) + - - 68 - - + 89 + 14 * - 50 AS col2
----
-512

skipif mysql # not compatible
query I rowsort label-5664
SELECT 29 + COUNT ( * ) + + COUNT ( * ) + - - 68 - - + 89 + 14 * - 50 AS col2
----
-512

onlyif mysql # aggregate syntax: 
query II rowsort label-5665
SELECT ALL - - 40 + - - 96 * 79 AS col2, 35 * - + NULLIF ( + COUNT( * ), - 84 - - 7 + + - 16 * - + COUNT( * ) * - 93 * + 21 ) - + ( ( 16 ) ) * + COUNT( * ) AS col0
----
7624
-51

skipif mysql # not compatible
query II rowsort label-5665
SELECT ALL - - 40 + - - 96 * 79 AS col2, 35 * - + NULLIF ( + COUNT ( * ), - 84 - - 7 + + - 16 * - + COUNT ( * ) * - 93 * + 21 ) - + ( ( 16 ) ) * + COUNT ( * ) AS col0
----
7624
-51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5666
SELECT + 31 + + - MAX( 5 ) DIV - + NULLIF ( - 7, + + 92 )
----
31

skipif mysql # not compatible
query I rowsort label-5666
SELECT + 31 + + - MAX ( 5 ) / - + NULLIF ( - 7, + + 92 )
----
31

onlyif mysql # DIV for integer division: 
query I rowsort label-5667
SELECT ALL + 11 + 32 + 27 * 44 DIV + 72
----
59

skipif mysql # not compatible
query I rowsort label-5667
SELECT ALL + 11 + 32 + 27 * 44 / + 72
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-5668
SELECT DISTINCT - SUM( - 2 )
----
2

skipif mysql # not compatible
query I rowsort label-5668
SELECT DISTINCT - SUM ( - 2 )
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5669
SELECT + CASE - 25 WHEN - + 45 THEN - ( - CAST( - 61 AS SIGNED ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-5669
SELECT + CASE - 25 WHEN - + 45 THEN - ( - CAST ( - 61 AS INTEGER ) ) END
----
NULL

query I rowsort
SELECT ALL - - 39 + + - 17
----
22

query I rowsort
SELECT DISTINCT + 78 * - + 81 + + 21 AS col2
----
-6297

query I rowsort
SELECT NULLIF ( - - 96, + 71 ) - - 88 AS col1
----
184

query I rowsort
SELECT 77 * + 56 AS col2
----
4312

query I rowsort
SELECT ALL 41 * 81 AS col0
----
3321

query I rowsort
SELECT - 10 * + 9 + 35 + - - 97
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-5676
SELECT DISTINCT - 28 - + COUNT( * ) AS col2
----
-29

skipif mysql # not compatible
query I rowsort label-5676
SELECT DISTINCT - 28 - + COUNT ( * ) AS col2
----
-29

onlyif mysql # DIV for integer division: 
query I rowsort label-5677
SELECT 54 + - + 2 + NULLIF ( 75, - 30 ) * 55 * 43 * 99 DIV - 12 AS col1
----
-1463291

skipif mysql # not compatible
query I rowsort label-5677
SELECT 54 + - + 2 + NULLIF ( 75, - 30 ) * 55 * 43 * 99 / - 12 AS col1
----
-1463291

onlyif mysql # aggregate syntax: 
query I rowsort label-5678
SELECT ALL 68 - - 4 * - - COALESCE ( + + 49, + 96 ) + + COUNT( * ) col2
----
265

skipif mysql # not compatible
query I rowsort label-5678
SELECT ALL 68 - - 4 * - - COALESCE ( + + 49, + 96 ) + + COUNT ( * ) col2
----
265

onlyif mysql # aggregate syntax: 
query I rowsort label-5679
SELECT MAX( ALL 46 ) * + - 9 * - 20
----
8280

skipif mysql # not compatible
query I rowsort label-5679
SELECT MAX ( ALL 46 ) * + - 9 * - 20
----
8280

query I rowsort
SELECT + 47 + + - 72
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-5681
SELECT 3 - - 8 + MAX( + 6 ) + - 24 + 71 + + COUNT( * ) * + 18 * + COUNT( * ) AS col0
----
82

skipif mysql # not compatible
query I rowsort label-5681
SELECT 3 - - 8 + MAX ( + 6 ) + - 24 + 71 + + COUNT ( * ) * + 18 * + COUNT ( * ) AS col0
----
82

query II rowsort
SELECT + 69, 15 * + 29 + - + 81 col2
----
69
354

query I rowsort
SELECT 97 * - 64 AS col1
----
-6208

query I rowsort
SELECT ALL 43 * - 91 AS col2
----
-3913

onlyif mysql # DIV for integer division: 
query I rowsort label-5685
SELECT DISTINCT 55 DIV 21
----
2

skipif mysql # not compatible
query I rowsort label-5685
SELECT DISTINCT 55 / 21
----
2

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

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

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

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

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

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

query I rowsort
SELECT 87 * + + 98
----
8526

query I rowsort
SELECT 22 + 66 AS col0
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-5691
SELECT ALL 7 * + COUNT( * ) * 60
----
420

skipif mysql # not compatible
query I rowsort label-5691
SELECT ALL 7 * + COUNT ( * ) * 60
----
420

query I rowsort
SELECT ALL ( + + 95 ) * 60
----
5700

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

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

query II rowsort
SELECT DISTINCT 48 AS col0, - 36 * 2 AS col1
----
48
-72

query I rowsort
SELECT DISTINCT 89 + + 39 col2
----
128

query I rowsort
SELECT ALL 47 * - 90 * + - 6 col0
----
25380

onlyif mysql # aggregate syntax: 
query II rowsort label-5697
SELECT DISTINCT 53 AS col2, - COUNT( * ) col1
----
53
-1

skipif mysql # not compatible
query II rowsort label-5697
SELECT DISTINCT 53 AS col2, - COUNT ( * ) col1
----
53
-1

query I rowsort
SELECT ALL + 32 + - - 48 AS col0
----
80

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5700
SELECT 11 + + COALESCE ( - COUNT( * ), 99 * + 32 * + ( + COUNT( * ) ) ) AS col2
----
10

skipif mysql # not compatible
query I rowsort label-5700
SELECT 11 + + COALESCE ( - COUNT ( * ), 99 * + 32 * + ( + COUNT ( * ) ) ) AS col2
----
10

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5702
SELECT COUNT( * ) * - 52 AS col2, - 33 * + - 3 + - 10 AS col2
----
-52
89

skipif mysql # not compatible
query II rowsort label-5702
SELECT COUNT ( * ) * - 52 AS col2, - 33 * + - 3 + - 10 AS col2
----
-52
89

query I rowsort
SELECT ALL - + ( 70 ) AS col1
----
-70

query II rowsort
SELECT ALL - 90 AS col0, 50 col0
----
-90
50

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5705
SELECT DISTINCT + + 22 * 38 * - 96 + - + 42 DIV + + MAX( + 15 ) AS col0
----
-80258

skipif mysql # not compatible
query I rowsort label-5705
SELECT DISTINCT + + 22 * 38 * - 96 + - + 42 / + + MAX ( + 15 ) AS col0
----
-80258

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

skipif mysql # not compatible
query II rowsort label-5706
SELECT ALL - - COUNT ( * ), 33 AS col0
----
1
33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5707
SELECT ALL - CASE + 31 WHEN - CAST( NULL AS SIGNED ) THEN - 95 * + 96 + + 19 * COUNT( * ) WHEN + AVG ( ALL - CAST( NULL AS SIGNED ) ) * - - 94 THEN 44 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5707
SELECT ALL - CASE + 31 WHEN - CAST ( NULL AS INTEGER ) THEN - 95 * + 96 + + 19 * COUNT ( * ) WHEN + AVG ( ALL - CAST ( NULL AS INTEGER ) ) * - - 94 THEN 44 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5708
SELECT ( + + 50 ) + - ( 58 ) * MIN( DISTINCT - - 43 ) + + 28 * - 57 * + 91
----
-147680

skipif mysql # not compatible
query I rowsort label-5708
SELECT ( + + 50 ) + - ( 58 ) * MIN ( DISTINCT - - 43 ) + + 28 * - 57 * + 91
----
-147680

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5710
SELECT 85 * COUNT( + - 18 ) + + 86
----
171

skipif mysql # not compatible
query I rowsort label-5710
SELECT 85 * COUNT ( + - 18 ) + + 86
----
171

query I rowsort
SELECT 79 * - - 90 - - 65
----
7175

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

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

query I rowsort
SELECT 48 + - 63 AS col2
----
-15

query I rowsort
SELECT + + 23 col0
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-5715
SELECT 38 + MAX( + ( + 60 ) ) + + 97 * + 91
----
8925

skipif mysql # not compatible
query I rowsort label-5715
SELECT 38 + MAX ( + ( + 60 ) ) + + 97 * + 91
----
8925

onlyif mysql # DIV for integer division: 
query I rowsort label-5716
SELECT + 22 DIV 83 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5716
SELECT + 22 / 83 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5717
SELECT ALL - CASE NULLIF ( - + 8, + COUNT( * ) ) WHEN 24 THEN NULL WHEN + COUNT( * ) + 34 THEN - 15 + + CAST( NULL AS SIGNED ) + 40 * + 37 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5717
SELECT ALL - CASE NULLIF ( - + 8, + COUNT ( * ) ) WHEN 24 THEN NULL WHEN + COUNT ( * ) + 34 THEN - 15 + + CAST ( NULL AS INTEGER ) + 40 * + 37 END AS col0
----
NULL

query I rowsort
SELECT DISTINCT - + ( + - 91 ) col2
----
91

query I rowsort
SELECT ALL + + 20 - - 21
----
41

query I rowsort
SELECT DISTINCT + + NULLIF ( + 76, - - 14 ) AS col0
----
76

query I rowsort
SELECT + 8 * - - ( + 53 ) * 50
----
21200

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5722
SELECT - 19 + + 17 + + + NULLIF ( + + 52, - COUNT( * ) ) * - - 83 * - CAST( + + 32 AS SIGNED ) - - 58 AS col1
----
-138056

skipif mysql # not compatible
query I rowsort label-5722
SELECT - 19 + + 17 + + + NULLIF ( + + 52, - COUNT ( * ) ) * - - 83 * - CAST ( + + 32 AS INTEGER ) - - 58 AS col1
----
-138056

query I rowsort
SELECT - ( - 44 ) + - - 76 AS col0
----
120

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query II rowsort label-5724
SELECT + 60 + COUNT( * ) - MAX( DISTINCT + CAST( - CAST( 77 AS DECIMAL ) AS SIGNED ) ) + - 31 * + 76 + + COALESCE ( 2, + COUNT( * ) ) * - + COUNT( * ) + 49 + - COUNT( DISTINCT - - 56 ) + + 73 - COALESCE ( - 73, - 45, + 90 DIV 57 * - 71 * + 59 * - 14 ) DIV - + 10 AS col0, 72 AS col2
----
-2106
72

skipif mysql # not compatible
query II rowsort label-5724
SELECT + 60 + COUNT ( * ) - MAX ( DISTINCT + CAST ( - CAST ( 77 AS REAL ) AS INTEGER ) ) + - 31 * + 76 + + COALESCE ( 2, + COUNT ( * ) ) * - + COUNT ( * ) + 49 + - COUNT ( DISTINCT - - 56 ) + + 73 - COALESCE ( - 73, - 45, + 90 / 57 * - 71 * + 59 * - 14 ) / - + 10 AS col0, 72 AS col2
----
-2106
72

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5725
SELECT + 78 * 58, CAST( NULL AS SIGNED ) col0
----
4524
NULL

skipif mysql # not compatible
query II rowsort label-5725
SELECT + 78 * 58, CAST ( NULL AS INTEGER ) col0
----
4524
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5726
SELECT - 89 + - CAST( - ( - 83 ) AS SIGNED )
----
-172

skipif mysql # not compatible
query I rowsort label-5726
SELECT - 89 + - CAST ( - ( - 83 ) AS INTEGER )
----
-172

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5727
SELECT DISTINCT - 18 + - + 81 + - 67 AS col1, + 82 + - CAST( NULL AS SIGNED ) + ( 37 ) AS col0
----
-166
NULL

skipif mysql # not compatible
query II rowsort label-5727
SELECT DISTINCT - 18 + - + 81 + - 67 AS col1, + 82 + - CAST ( NULL AS INTEGER ) + ( 37 ) AS col0
----
-166
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5728
SELECT + 42 + + + CAST( NULL AS SIGNED ) + - MAX( + 23 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5728
SELECT + 42 + + + CAST ( NULL AS INTEGER ) + - MAX ( + 23 )
----
NULL

query I rowsort
SELECT DISTINCT 49 col1
----
49

query I rowsort
SELECT ALL 30 + - 46 AS col1
----
-16

query I rowsort
SELECT - NULLIF ( + 30, - 36 )
----
-30

query I rowsort
SELECT + 6 + 95 AS col0
----
101

onlyif mysql # DIV for integer division: 
query II rowsort label-5733
SELECT + 12 + - 99, + 59 DIV + + ( - 85 ) AS col1
----
-87
0

skipif mysql # not compatible
query II rowsort label-5733
SELECT + 12 + - 99, + 59 / + + ( - 85 ) AS col1
----
-87
0

query I rowsort
SELECT - COALESCE ( 2, + 18 * + 77 * - 96 * - 81 )
----
-2

query I rowsort
SELECT + 82 * + 37 AS col0
----
3034

query I rowsort
SELECT + 88 + + 52 AS col1
----
140

query I rowsort
SELECT ALL 94 + - + 46 AS col2
----
48

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5739
SELECT + 76 + 81 - - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5739
SELECT + 76 + 81 - - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5740
SELECT ALL + - AVG ( DISTINCT ( - 99 ) ) * + 34 + + + CAST( NULL AS SIGNED ) + + + 77
----
NULL

skipif mysql # not compatible
query I rowsort label-5740
SELECT ALL + - AVG ( DISTINCT ( - 99 ) ) * + 34 + + + CAST ( NULL AS INTEGER ) + + + 77
----
NULL

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

skipif mysql # not compatible
query I rowsort label-5741
SELECT + - COUNT ( * ) * + + 76 + + 75 AS col2
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-5742
SELECT DISTINCT + COUNT( * ) * - + COUNT( * ) AS col1, 45 + COUNT( * ) + - COUNT( * )
----
-1
45

skipif mysql # not compatible
query II rowsort label-5742
SELECT DISTINCT + COUNT ( * ) * - + COUNT ( * ) AS col1, 45 + COUNT ( * ) + - COUNT ( * )
----
-1
45

query II rowsort
SELECT - - 83 * + 22, 17 AS col0
----
1826
17

query I rowsort
SELECT ( - CASE + + 92 WHEN - 55 THEN NULL WHEN + 46 THEN - 41 + + ( - 54 ) END )
----
NULL

query I rowsort
SELECT - + 8 + + 43 AS col0
----
35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5746
SELECT - CASE + NULLIF ( - 9, MAX( 93 ) + + CAST( 27 AS SIGNED ) + + + 32 ) WHEN + 47 THEN NULL ELSE 86 * + 67 END AS col2
----
-5762

skipif mysql # not compatible
query I rowsort label-5746
SELECT - CASE + NULLIF ( - 9, MAX ( 93 ) + + CAST ( 27 AS INTEGER ) + + + 32 ) WHEN + 47 THEN NULL ELSE 86 * + 67 END AS col2
----
-5762

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5748
SELECT - MAX( DISTINCT + - 4 ) * + - CAST( NULL AS SIGNED ) + 37 * - - 54 + 81 * - NULLIF ( + 5, 44 ) * + MIN( CAST( NULL AS SIGNED ) ) + + COUNT( ALL - 86 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5748
SELECT - MAX ( DISTINCT + - 4 ) * + - CAST ( NULL AS INTEGER ) + 37 * - - 54 + 81 * - NULLIF ( + 5, 44 ) * + MIN ( CAST ( NULL AS INTEGER ) ) + + COUNT ( ALL - 86 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5749
SELECT DISTINCT + 95 * - 44 * - COUNT( * ) + - ( - 11 )
----
4191

skipif mysql # not compatible
query I rowsort label-5749
SELECT DISTINCT + 95 * - 44 * - COUNT ( * ) + - ( - 11 )
----
4191

query I rowsort
SELECT DISTINCT + 53 col0
----
53

onlyif mysql # aggregate syntax: 
query II rowsort label-5751
SELECT - ( + CASE + 31 WHEN - + 63 * - 35 * 57 THEN + 14 * 5 * + 98 + + - 29 END ) + + MIN( DISTINCT - + 75 ) AS col1, ( + 1 )
----
NULL
1

skipif mysql # not compatible
query II rowsort label-5751
SELECT - ( + CASE + 31 WHEN - + 63 * - 35 * 57 THEN + 14 * 5 * + 98 + + - 29 END ) + + MIN ( DISTINCT - + 75 ) AS col1, ( + 1 )
----
NULL
1

query I rowsort
SELECT DISTINCT - 34 * - 5
----
170

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5754
SELECT - + COUNT( * ) DIV - MIN( - 91 ) * 78 + - 67 + - 1 * 74 * - 16
----
1117

skipif mysql # not compatible
query I rowsort label-5754
SELECT - + COUNT ( * ) / - MIN ( - 91 ) * 78 + - 67 + - 1 * 74 * - 16
----
1117

query I rowsort
SELECT + 79 - - 35 AS col0
----
114

query I rowsort
SELECT NULLIF ( 35, - 26 )
----
35

onlyif mysql # DIV for integer division: 
query I rowsort label-5757
SELECT 67 * + 39 + 71 * + 54 - + 23 + - 28 DIV - 32 AS col1
----
6424

skipif mysql # not compatible
query I rowsort label-5757
SELECT 67 * + 39 + 71 * + 54 - + 23 + - 28 / - 32 AS col1
----
6424

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5758
SELECT ALL + SUM( DISTINCT + 33 ) DIV 39
----
0

skipif mysql # not compatible
query I rowsort label-5758
SELECT ALL + SUM ( DISTINCT + 33 ) / 39
----
0

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

skipif mysql # not compatible
query II rowsort label-5759
SELECT - 31, + COUNT ( * ) / - 11 AS col1
----
-31
0

query I rowsort
SELECT ALL + 77 * + 40 * 22 + - 47 AS col1
----
67713

onlyif mysql # aggregate syntax: 
query II rowsort label-5761
SELECT - 34, + MIN( - - 92 ) * + 45 * + 57 AS col1
----
-34
235980

skipif mysql # not compatible
query II rowsort label-5761
SELECT - 34, + MIN ( - - 92 ) * + 45 * + 57 AS col1
----
-34
235980

onlyif mysql # aggregate syntax: 
query I rowsort label-5762
SELECT DISTINCT ( - COUNT( ALL + - 64 ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-5762
SELECT DISTINCT ( - COUNT ( ALL + - 64 ) ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5763
SELECT ALL - 5 + - 86 + + + COUNT( * ) * + 27 AS col0
----
-64

skipif mysql # not compatible
query I rowsort label-5763
SELECT ALL - 5 + - 86 + + + COUNT ( * ) * + 27 AS col0
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-5764
SELECT - MIN( DISTINCT ( - 78 ) ) AS col2
----
78

skipif mysql # not compatible
query I rowsort label-5764
SELECT - MIN ( DISTINCT ( - 78 ) ) AS col2
----
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5765
SELECT ALL CAST( - 52 AS SIGNED )
----
-52

skipif mysql # not compatible
query I rowsort label-5765
SELECT ALL CAST ( - 52 AS INTEGER )
----
-52

query I rowsort
SELECT DISTINCT - 32 + 3
----
-29

query II rowsort
SELECT ALL 7 AS col2, 19 AS col1
----
7
19

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5769
SELECT 70, CAST( NULL AS SIGNED ) + - 64 AS col0
----
70
NULL

skipif mysql # not compatible
query II rowsort label-5769
SELECT 70, CAST ( NULL AS INTEGER ) + - 64 AS col0
----
70
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5770
SELECT - MIN( - - 78 )
----
-78

skipif mysql # not compatible
query I rowsort label-5770
SELECT - MIN ( - - 78 )
----
-78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5771
SELECT DISTINCT - CAST( NULL AS SIGNED ) + - 14 + + 75 + - - 95 + + 27 * - 41 / + 9 * + - 87 / + 53
----
NULL

skipif mysql # not compatible
query I rowsort label-5771
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + - 14 + + 75 + - - 95 + + 27 * - 41 / + 9 * + - 87 / + 53
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5772
SELECT DISTINCT 5 - + 39 DIV - + 63 * + 57 + + - 36 DIV 8 * + NULLIF ( + COUNT( ALL - - CAST( - 9 AS SIGNED ) ), - + ( - 72 ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5772
SELECT DISTINCT 5 - + 39 / - + 63 * + 57 + + - 36 / 8 * + NULLIF ( + COUNT ( ALL - - CAST ( - 9 AS INTEGER ) ), - + ( - 72 ) ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5773
SELECT DISTINCT - 51 - + + COUNT( * ) + + + MAX( 78 ) - 89 * - 45 * + 98
----
392516

skipif mysql # not compatible
query I rowsort label-5773
SELECT DISTINCT - 51 - + + COUNT ( * ) + + + MAX ( 78 ) - 89 * - 45 * + 98
----
392516

query I rowsort
SELECT ALL - 93 - - 54 * 0 * - + 20 AS col0
----
-93

onlyif mysql # aggregate syntax: 
query II rowsort label-5775
SELECT DISTINCT + COUNT( * ) col1, - 65
----
1
-65

skipif mysql # not compatible
query II rowsort label-5775
SELECT DISTINCT + COUNT ( * ) col1, - 65
----
1
-65

onlyif mysql # aggregate syntax: 
query II rowsort label-5776
SELECT - + COUNT( * ) + + - 96 + - COUNT( * ) AS col1, 53 - + COALESCE ( + COUNT( * ), + 12 + - 98 - + - 40 * + 55 + - 28 )
----
-98
52

skipif mysql # not compatible
query II rowsort label-5776
SELECT - + COUNT ( * ) + + - 96 + - COUNT ( * ) AS col1, 53 - + COALESCE ( + COUNT ( * ), + 12 + - 98 - + - 40 * + 55 + - 28 )
----
-98
52

query I rowsort
SELECT + + 12 * + COALESCE ( - - 26, + 22 * + 75 + - CASE + + 94 WHEN - 97 / - AVG ( + 21 ) THEN NULL WHEN 79 / 99 THEN - 44 * 3 ELSE - 67 * - 19 END )
----
312

onlyif mysql # aggregate syntax: 
query I rowsort label-5778
SELECT - - CASE 97 WHEN COUNT( * ) THEN - - 87 WHEN - 93 THEN + 94 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5778
SELECT - - CASE 97 WHEN COUNT ( * ) THEN - - 87 WHEN - 93 THEN + 94 ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT - - 43 + + COALESCE ( + 10, + - 18 )
----
53

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5781
SELECT + 77 DIV - 13 + - 51, + CAST( NULL AS SIGNED ) AS col1
----
-56
NULL

skipif mysql # not compatible
query II rowsort label-5781
SELECT + 77 / - 13 + - 51, + CAST ( NULL AS INTEGER ) AS col1
----
-56
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5782
SELECT DISTINCT 16 * CAST( NULL AS SIGNED ) * - - COALESCE ( 63, 83 ) + - - COUNT( * ) + + CAST( + 49 AS DECIMAL ) * - 30 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5782
SELECT DISTINCT 16 * CAST ( NULL AS INTEGER ) * - - COALESCE ( 63, 83 ) + - - COUNT ( * ) + + CAST ( + 49 AS REAL ) * - 30 AS col2
----
NULL

query I rowsort
SELECT ALL + 66 * 84 AS col0
----
5544

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5785
SELECT + 36 DIV + + 48 - ( - 95 ) + + + 9 DIV 90 AS col1
----
95

skipif mysql # not compatible
query I rowsort label-5785
SELECT + 36 / + + 48 - ( - 95 ) + + + 9 / 90 AS col1
----
95

query I rowsort
SELECT ALL - COALESCE ( 82, COALESCE ( + 85, + + 25 ) ) col0
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-5787
SELECT - + MAX( ALL - - 14 ) * 98 + + 9 * + COUNT( * ) - + + COUNT( * ) + - 9 AS col1
----
-1373

skipif mysql # not compatible
query I rowsort label-5787
SELECT - + MAX ( ALL - - 14 ) * 98 + + 9 * + COUNT ( * ) - + + COUNT ( * ) + - 9 AS col1
----
-1373

query I rowsort
SELECT 8 * - 84 AS col2
----
-672

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

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

query I rowsort
SELECT ALL - ( - + ( + - 3 ) ) + 3 + + 95 AS col0
----
95

query I rowsort
SELECT DISTINCT + ( - 26 ) * - + 16 * + 78 col0
----
32448

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5792
SELECT ALL ( COUNT( * ) ) + + 68 DIV 18 * + 25 AS col1
----
76

skipif mysql # not compatible
query I rowsort label-5792
SELECT ALL ( COUNT ( * ) ) + + 68 / 18 * + 25 AS col1
----
76

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5795
SELECT - 10 * + + MIN( ALL + ( - 75 ) ) + + 43 + + 23 + + CASE 99 WHEN + 69 THEN NULL ELSE + 18 END, - 86 AS col2
----
834
-86

skipif mysql # not compatible
query II rowsort label-5795
SELECT - 10 * + + MIN ( ALL + ( - 75 ) ) + + 43 + + 23 + + CASE 99 WHEN + 69 THEN NULL ELSE + 18 END, - 86 AS col2
----
834
-86

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5796
SELECT COUNT( ALL + + 95 ) DIV - + COALESCE ( + 15, - - COUNT( * ) + - CASE AVG ( ALL - 81 ) WHEN - 52 THEN + 34 WHEN - 5 - - - 13 THEN NULL END - 6 DIV + 10 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5796
SELECT COUNT ( ALL + + 95 ) / - + COALESCE ( + 15, - - COUNT ( * ) + - CASE AVG ( ALL - 81 ) WHEN - 52 THEN + 34 WHEN - 5 - - - 13 THEN NULL END - 6 / + 10 ) AS col2
----
0

query I rowsort
SELECT + 91 * - + 4 + 23 AS col2
----
-341

query I rowsort
SELECT 37 + + 37
----
74

query I rowsort
SELECT 40 * - 32 * - - 77 AS col2
----
-98560

onlyif mysql # DIV for integer division: 
query I rowsort label-5800
SELECT ALL - 10 DIV + 92 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5800
SELECT ALL - 10 / + 92 AS col1
----
0

query I rowsort
SELECT DISTINCT - 1 * - COALESCE ( 47, 33 * - - 70 + + ( - 37 ) + + 61 * - 5, + NULLIF ( + + 74, 22 / + 10 + 71 / - 42 ) ) * + NULLIF ( 28, - + 65 ) AS col0
----
1316

query II rowsort
SELECT 56 + + 7, 94 AS col1
----
63
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5803
SELECT ALL + 38 - - COUNT( - ( 68 ) ) / - 98 + + CAST( NULL AS SIGNED ) * - 96 - COALESCE ( - 36, COUNT( * ), + 39 - COUNT( ALL + + 90 ) + - 72 ) AS col0, + 71 + - 51 AS col0
----
NULL
20

skipif mysql # not compatible
query II rowsort label-5803
SELECT ALL + 38 - - COUNT ( - ( 68 ) ) / - 98 + + CAST ( NULL AS INTEGER ) * - 96 - COALESCE ( - 36, COUNT ( * ), + 39 - COUNT ( ALL + + 90 ) + - 72 ) AS col0, + 71 + - 51 AS col0
----
NULL
20

onlyif mysql # aggregate syntax: 
query I rowsort label-5804
SELECT 66 + - ( COUNT( * ) ) + + 54 * 41
----
2279

skipif mysql # not compatible
query I rowsort label-5804
SELECT 66 + - ( COUNT ( * ) ) + + 54 * 41
----
2279

query I rowsort
SELECT + 99 * - 22 AS col0
----
-2178

query I rowsort
SELECT - - 85 col0
----
85

query I rowsort
SELECT - 66 * 83
----
-5478

query I rowsort
SELECT 44 + 42
----
86

onlyif mysql # aggregate syntax: 
query III rowsort label-5809
SELECT COUNT( - 46 ) + COUNT( * ) * 54 AS col1, - 68, + 2 AS col0
----
55
-68
2

skipif mysql # not compatible
query III rowsort label-5809
SELECT COUNT ( - 46 ) + COUNT ( * ) * 54 AS col1, - 68, + 2 AS col0
----
55
-68
2

onlyif mysql # DIV for integer division: 
query I rowsort label-5810
SELECT 23 * 44 DIV + + 74 col1
----
13

skipif mysql # not compatible
query I rowsort label-5810
SELECT 23 * 44 / + + 74 col1
----
13

onlyif mysql # DIV for integer division: 
query I rowsort label-5811
SELECT ALL - 45 DIV + 23 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-5811
SELECT ALL - 45 / + 23 AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5812
SELECT ALL + - ( - 71 ) + - COUNT( * ) + 14 + 46
----
130

skipif mysql # not compatible
query I rowsort label-5812
SELECT ALL + - ( - 71 ) + - COUNT ( * ) + 14 + 46
----
130

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

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

query I rowsort
SELECT 46 + + - 90 * + 53 AS col1
----
-4724

query I rowsort
SELECT DISTINCT 26 * + 92
----
2392

onlyif mysql # aggregate syntax: 
query I rowsort label-5816
SELECT ALL NULLIF ( - CASE - 77 WHEN + - 94 * + - 17 * + 53 - COALESCE ( - 80, + + 44 ) * + 11 / + 12 * + 29 * + 87 THEN + MAX( ALL - ( 72 ) ) * + 75 * + NULLIF ( MAX( - 60 ), - ( + COALESCE ( + + 89, + AVG ( DISTINCT 7 ), - 47 + - - 99 + 14 ) ) - 54 ) + + 35 + + 97 END, - 16 ) + 83
----
NULL

skipif mysql # not compatible
query I rowsort label-5816
SELECT ALL NULLIF ( - CASE - 77 WHEN + - 94 * + - 17 * + 53 - COALESCE ( - 80, + + 44 ) * + 11 / + 12 * + 29 * + 87 THEN + MAX ( ALL - ( 72 ) ) * + 75 * + NULLIF ( MAX ( - 60 ), - ( + COALESCE ( + + 89, + AVG ( DISTINCT 7 ), - 47 + - - 99 + 14 ) ) - 54 ) + + 35 + + 97 END, - 16 ) + 83
----
NULL

query I rowsort
SELECT 6 * 79
----
474

query I rowsort
SELECT ALL - 77 * + 90
----
-6930

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

query I rowsort
SELECT DISTINCT 78 + + 50
----
128

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5821
SELECT NULLIF ( 70, + CAST( + 14 AS SIGNED ) * - 76 ) + - 7
----
63

skipif mysql # not compatible
query I rowsort label-5821
SELECT NULLIF ( 70, + CAST ( + 14 AS INTEGER ) * - 76 ) + - 7
----
63

onlyif mysql # aggregate syntax: 
query II rowsort label-5822
SELECT DISTINCT - SUM( DISTINCT + NULLIF ( - 22, + 73 * 90 * 57 * - 91 + - 19 ) ) AS col0, - 26 * 90 AS col1
----
22
-2340

skipif mysql # not compatible
query II rowsort label-5822
SELECT DISTINCT - SUM ( DISTINCT + NULLIF ( - 22, + 73 * 90 * 57 * - 91 + - 19 ) ) AS col0, - 26 * 90 AS col1
----
22
-2340

query II rowsort
SELECT ALL ( - 41 ) + - 50 AS col0, + 31 + + - 50
----
-91
-19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5824
SELECT COALESCE ( - COUNT( * ), 0 DIV + 71 + - + CAST( NULL AS SIGNED ) + + 49 ) - - CASE - 31 WHEN - 86 THEN - + 20 ELSE + 0 * + 36 * - 56 * - 44 * 67 * ( + - 35 ) - - 42 END
----
41

skipif mysql # not compatible
query I rowsort label-5824
SELECT COALESCE ( - COUNT ( * ), 0 / + 71 + - + CAST ( NULL AS INTEGER ) + + 49 ) - - CASE - 31 WHEN - 86 THEN - + 20 ELSE + 0 * + 36 * - 56 * - 44 * 67 * ( + - 35 ) - - 42 END
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-5825
SELECT + MIN( ALL 67 ) AS col2
----
67

skipif mysql # not compatible
query I rowsort label-5825
SELECT + MIN ( ALL 67 ) AS col2
----
67

query I rowsort
SELECT 15 + + + 26 * 91
----
2381

query I rowsort
SELECT 60 * + 77 * 55
----
254100

onlyif mysql # aggregate syntax: 
query II rowsort label-5828
SELECT 66 + - 50 * + COUNT( * ) col1, COUNT( * )
----
16
1

skipif mysql # not compatible
query II rowsort label-5828
SELECT 66 + - 50 * + COUNT ( * ) col1, COUNT ( * )
----
16
1

query I rowsort
SELECT ALL 71 * 97 * + 61 AS col2
----
420107

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5831
SELECT DISTINCT CAST( - 42 AS SIGNED ) - - 41 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-5831
SELECT DISTINCT CAST ( - 42 AS INTEGER ) - - 41 AS col0
----
-1

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

skipif mysql # not compatible
query I rowsort label-5832
SELECT - MIN ( ALL - 48 )
----
48

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

skipif mysql # not compatible
query I rowsort label-5833
SELECT 50 - + CAST ( NULL AS INTEGER ) AS col1
----
NULL

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

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

query I rowsort
SELECT ALL - 15 * + 68
----
-1020

query I rowsort
SELECT ALL 35 * - 53
----
-1855

onlyif mysql # aggregate syntax: 
query I rowsort label-5837
SELECT ALL MAX( DISTINCT - CASE + 70 WHEN - 66 + - + 80 / - 30 THEN + 45 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-5837
SELECT ALL MAX ( DISTINCT - CASE + 70 WHEN - 66 + - + 80 / - 30 THEN + 45 END )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5838
SELECT - MAX( - - 67 ) AS col2
----
-67

skipif mysql # not compatible
query I rowsort label-5838
SELECT - MAX ( - - 67 ) AS col2
----
-67

onlyif mysql # DIV for integer division: 
query I rowsort label-5839
SELECT 40 DIV + 72
----
0

skipif mysql # not compatible
query I rowsort label-5839
SELECT 40 / + 72
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5840
SELECT 75 * + + ( + + NULLIF ( + - COUNT( 93 ), + + 65 * 21 ) ) DIV + COALESCE ( 77, + 31 + - COALESCE ( CAST( - COUNT( * ) AS SIGNED ), - 53 * - 36 + 23 ) + - + 88 * + 63 * - 17 + - - ( + 85 ) ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5840
SELECT 75 * + + ( + + NULLIF ( + - COUNT ( 93 ), + + 65 * 21 ) ) / + COALESCE ( 77, + 31 + - COALESCE ( CAST ( - COUNT ( * ) AS INTEGER ), - 53 * - 36 + 23 ) + - + 88 * + 63 * - 17 + - - ( + 85 ) ) AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5841
SELECT ALL - + NULLIF ( - COUNT( * ), - + 57 + ( 91 ) + - 18 ) - - 16 + + CAST( + - CASE + - ( 86 ) WHEN - 92 * + + ( AVG ( + + 68 ) ) THEN 43 / - 83 - - 90 - + - 81 + - 20 WHEN - 24 THEN NULL END AS DECIMAL ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5841
SELECT ALL - + NULLIF ( - COUNT ( * ), - + 57 + ( 91 ) + - 18 ) - - 16 + + CAST ( + - CASE + - ( 86 ) WHEN - 92 * + + ( AVG ( + + 68 ) ) THEN 43 / - 83 - - 90 - + - 81 + - 20 WHEN - 24 THEN NULL END AS REAL ) col1
----
NULL

query I rowsort
SELECT - - COALESCE ( - + 75, - 88 * - 96 )
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-5843
SELECT ALL MIN( NULLIF ( - 65, - + 33 ) )
----
-65

skipif mysql # not compatible
query I rowsort label-5843
SELECT ALL MIN ( NULLIF ( - 65, - + 33 ) )
----
-65

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5846
SELECT - 99, MIN( ALL - 38 ) + - 86 + - 73 - 85 - + + 8 AS col2
----
-99
-290

skipif mysql # not compatible
query II rowsort label-5846
SELECT - 99, MIN ( ALL - 38 ) + - 86 + - 73 - 85 - + + 8 AS col2
----
-99
-290

query I rowsort
SELECT - - 11 * - - 5 * 89 AS col2
----
4895

query I rowsort
SELECT ALL + ( + - 57 ) + - 61 AS col0
----
-118

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

skipif mysql # not compatible
query I rowsort label-5849
SELECT + 39 + + 22 - - COUNT ( * ) AS col2
----
62

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

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

query II rowsort
SELECT + - 2 AS col1, 70 AS col1
----
-2
70

onlyif mysql # aggregate syntax: 
query I rowsort label-5852
SELECT 50 * - + 96 - ( - - 40 ) * - + 54 + + 30 + + 79 / - 21 + CASE + 67 WHEN + + SUM( - - 37 ) THEN + ( 52 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5852
SELECT 50 * - + 96 - ( - - 40 ) * - + 54 + + 30 + + 79 / - 21 + CASE + 67 WHEN + + SUM ( - - 37 ) THEN + ( 52 ) ELSE NULL END
----
NULL

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

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

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

query I rowsort
SELECT DISTINCT + 18 * + 4 + + 79 AS col1
----
151

onlyif mysql # aggregate syntax: 
query I rowsort label-5856
SELECT ALL - CASE - COUNT( * ) WHEN + 94 THEN - 41 ELSE NULL END * + - 97 + 76 + + 88 * - - COUNT( 84 ) * + + 95 + - ( - MIN( ALL - + 98 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5856
SELECT ALL - CASE - COUNT ( * ) WHEN + 94 THEN - 41 ELSE NULL END * + - 97 + 76 + + 88 * - - COUNT ( 84 ) * + + 95 + - ( - MIN ( ALL - + 98 ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5857
SELECT - + COALESCE ( - + 39, - - 17, - + 44 ) * + ( + ( - COUNT( * ) ) ) + - 85
----
-124

skipif mysql # not compatible
query I rowsort label-5857
SELECT - + COALESCE ( - + 39, - - 17, - + 44 ) * + ( + ( - COUNT ( * ) ) ) + - 85
----
-124

onlyif mysql # aggregate syntax: 
query I rowsort label-5858
SELECT COALESCE ( 57, + 68, - 74 + - COUNT( * ) + - + 12 ) AS col0
----
57

skipif mysql # not compatible
query I rowsort label-5858
SELECT COALESCE ( 57, + 68, - 74 + - COUNT ( * ) + - + 12 ) AS col0
----
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5859
SELECT ALL + 84 * + - 99 + + + 87 + + MAX( - + 53 ) * - COALESCE ( - CAST( - 28 AS SIGNED ), + 24 * + COUNT( * ), - COUNT( + 14 ) * - COUNT( * ) ) * 17 * - ( + 76 )
----
-1925557

skipif mysql # not compatible
query I rowsort label-5859
SELECT ALL + 84 * + - 99 + + + 87 + + MAX ( - + 53 ) * - COALESCE ( - CAST ( - 28 AS INTEGER ), + 24 * + COUNT ( * ), - COUNT ( + 14 ) * - COUNT ( * ) ) * 17 * - ( + 76 )
----
-1925557

onlyif mysql # aggregate syntax: 
query I rowsort label-5860
SELECT 18 * + 67 + + ( + NULLIF ( 31, - 10 * + + COUNT( * ) ) )
----
1237

skipif mysql # not compatible
query I rowsort label-5860
SELECT 18 * + 67 + + ( + NULLIF ( 31, - 10 * + + COUNT ( * ) ) )
----
1237

query I rowsort
SELECT + 95 * - - 97
----
9215

onlyif mysql # DIV for integer division: 
query I rowsort label-5862
SELECT ALL - 46 DIV + 27
----
-1

skipif mysql # not compatible
query I rowsort label-5862
SELECT ALL - 46 / + 27
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5863
SELECT + 40 * - 62 - - + COUNT( + - 91 ) - 32
----
-2511

skipif mysql # not compatible
query I rowsort label-5863
SELECT + 40 * - 62 - - + COUNT ( + - 91 ) - 32
----
-2511

query II rowsort
SELECT DISTINCT + 92 col0, 12 - + + 60 + 62 AS col0
----
92
14

query I rowsort
SELECT - 59 * + - 27
----
1593

onlyif mysql # aggregate syntax: 
query I rowsort label-5866
SELECT + 65 * 57 * ( + COUNT( * ) )
----
3705

skipif mysql # not compatible
query I rowsort label-5866
SELECT + 65 * 57 * ( + COUNT ( * ) )
----
3705

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

skipif mysql # not compatible
query I rowsort label-5867
SELECT + MIN ( - - ( + 26 ) )
----
26

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

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

query II rowsort
SELECT DISTINCT - 28 * - 38, 32 AS col0
----
1064
32

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5871
SELECT DISTINCT + 24 AS col2, - CAST( - 16 AS SIGNED ) * + ( + 99 ) AS col1
----
24
1584

skipif mysql # not compatible
query II rowsort label-5871
SELECT DISTINCT + 24 AS col2, - CAST ( - 16 AS INTEGER ) * + ( + 99 ) AS col1
----
24
1584

onlyif mysql # aggregate syntax: 
query I rowsort label-5872
SELECT - 17 + 82 - + COUNT( * ) col2
----
64

skipif mysql # not compatible
query I rowsort label-5872
SELECT - 17 + 82 - + COUNT ( * ) col2
----
64

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5874
SELECT SUM( DISTINCT - 84 ) AS col1
----
-84

skipif mysql # not compatible
query I rowsort label-5874
SELECT SUM ( DISTINCT - 84 ) AS col1
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-5875
SELECT SUM( DISTINCT 3 )
----
3

skipif mysql # not compatible
query I rowsort label-5875
SELECT SUM ( DISTINCT 3 )
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5876
SELECT - - COUNT( * ) AS col0, + 55 * 22 + + CAST( NULL AS SIGNED )
----
1
NULL

skipif mysql # not compatible
query II rowsort label-5876
SELECT - - COUNT ( * ) AS col0, + 55 * 22 + + CAST ( NULL AS INTEGER )
----
1
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5877
SELECT + 43 + + COUNT( * ), - NULLIF ( 84, + 20 ) AS col0
----
44
-84

skipif mysql # not compatible
query II rowsort label-5877
SELECT + 43 + + COUNT ( * ), - NULLIF ( 84, + 20 ) AS col0
----
44
-84

query I rowsort
SELECT DISTINCT + 42 + 3 * - + 74
----
-180

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5879
SELECT DISTINCT - - CAST( NULL AS SIGNED ) * - COUNT( * ) - + 37 + 31 * 7 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5879
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) * - COUNT ( * ) - + 37 + 31 * 7 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5880
SELECT DISTINCT - COUNT( DISTINCT + - 79 ) + + - COUNT( * ) + MAX( 51 )
----
49

skipif mysql # not compatible
query I rowsort label-5880
SELECT DISTINCT - COUNT ( DISTINCT + - 79 ) + + - COUNT ( * ) + MAX ( 51 )
----
49

onlyif mysql # aggregate syntax: 
query II rowsort label-5881
SELECT DISTINCT - 62 + + 99 AS col2, - COUNT( * ) + COUNT( * ) + + 1 - + - 94 - + CASE WHEN + 70 NOT IN ( - 19, + ( + 49 ) / - ( - - ( - 85 ) ), - 88, + 22 * + - 41, - 52 ) THEN NULL ELSE - - COALESCE ( + + 42, MAX( + 96 ) + + NULLIF ( + 84, - 50 ) + + 56, + 43 * + COUNT( - 48 ) ) END - + - 6 * + NULLIF ( + 81, + COALESCE ( 26, - - 50 ) ) + 79 * SUM( ALL - 71 ) / + 39 - - ( + 82 ) * - 89 / AVG ( 50 * 9 ) * - 47 col0
----
37
NULL

skipif mysql # not compatible
query II rowsort label-5881
SELECT DISTINCT - 62 + + 99 AS col2, - COUNT ( * ) + COUNT ( * ) + + 1 - + - 94 - + CASE WHEN + 70 NOT IN ( - 19, + ( + 49 ) / - ( - - ( - 85 ) ), - 88, + 22 * + - 41, - 52 ) THEN NULL ELSE - - COALESCE ( + + 42, MAX ( + 96 ) + + NULLIF ( + 84, - 50 ) + + 56, + 43 * + COUNT ( - 48 ) ) END - + - 6 * + NULLIF ( + 81, + COALESCE ( 26, - - 50 ) ) + 79 * SUM ( ALL - 71 ) / + 39 - - ( + 82 ) * - 89 / AVG ( 50 * 9 ) * - 47 col0
----
37
NULL

query I rowsort
SELECT + 84 + - + 27
----
57

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

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

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

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

query I rowsort
SELECT - - 74 + + - 81 * + 1 AS col0
----
-7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5886
SELECT ALL + ( COUNT( * ) ) + 20 DIV + 54 * COUNT( * ) AS col2
----
1

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

query I rowsort
SELECT + 59 * - - 24 + 39 AS col0
----
1455

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5889
SELECT ALL - - 46 + MAX( + + 19 )
----
65

skipif mysql # not compatible
query I rowsort label-5889
SELECT ALL - - 46 + MAX ( + + 19 )
----
65

query II rowsort
SELECT 6 AS col2, 31
----
6
31

query I rowsort
SELECT ALL NULLIF ( - 4, - ( - CASE + - 59 WHEN - - 50 THEN 65 WHEN 22 THEN - - 2 END ) - + - 14 ) AS col1
----
-4

query I rowsort
SELECT DISTINCT - 66 + - 59 AS col0
----
-125

onlyif mysql # aggregate syntax: 
query I rowsort label-5893
SELECT ALL + + 33 * SUM( ALL 14 )
----
462

skipif mysql # not compatible
query I rowsort label-5893
SELECT ALL + + 33 * SUM ( ALL 14 )
----
462

onlyif mysql # DIV for integer division: 
query I rowsort label-5894
SELECT DISTINCT + 78 DIV 29 + + - 77 + - 62
----
-137

skipif mysql # not compatible
query I rowsort label-5894
SELECT DISTINCT + 78 / 29 + + - 77 + - 62
----
-137

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query II rowsort label-5895
SELECT CAST( + - 85 AS SIGNED ), NULLIF ( - + 91, - 77 * + + 50 * + CAST( NULL AS DECIMAL ) ) DIV + - COUNT( DISTINCT 90 ) + - COALESCE ( - 24, + 85 * COUNT( * ), + + 70 + + 24 ) + 52 AS col1
----
-85
167

skipif mysql # not compatible
query II rowsort label-5895
SELECT CAST ( + - 85 AS INTEGER ), NULLIF ( - + 91, - 77 * + + 50 * + CAST ( NULL AS REAL ) ) / + - COUNT ( DISTINCT 90 ) + - COALESCE ( - 24, + 85 * COUNT ( * ), + + 70 + + 24 ) + 52 AS col1
----
-85
167

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

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

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

query I rowsort
SELECT - 36 - 3 AS col0
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-5899
SELECT DISTINCT + CASE - 66 WHEN - + 56 * + 22 - COUNT( 12 ) + + 99 + CASE - 54 WHEN - + 80 THEN 83 END / 36 * - + 21 * - - 37 + - + 29 * + + 97 - 87 THEN 76 WHEN + 66 THEN + 8 + - 38 ELSE + ( 39 ) END AS col1
----
39

skipif mysql # not compatible
query I rowsort label-5899
SELECT DISTINCT + CASE - 66 WHEN - + 56 * + 22 - COUNT ( 12 ) + + 99 + CASE - 54 WHEN - + 80 THEN 83 END / 36 * - + 21 * - - 37 + - + 29 * + + 97 - 87 THEN 76 WHEN + 66 THEN + 8 + - 38 ELSE + ( 39 ) END AS col1
----
39

onlyif mysql # DIV for integer division: 
query I rowsort label-5900
SELECT DISTINCT - COALESCE ( 59, + COALESCE ( + - 21, + 5 ) ) * 4 DIV - 24 + + - 37 + 17 + - - 38 col2
----
27

skipif mysql # not compatible
query I rowsort label-5900
SELECT DISTINCT - COALESCE ( 59, + COALESCE ( + - 21, + 5 ) ) * 4 / - 24 + + - 37 + 17 + - - 38 col2
----
27

query II rowsort
SELECT ( + 78 ), + 60 AS col0
----
78
60

query I rowsort
SELECT ALL + ( + 10 ) AS col1
----
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5903
SELECT ALL + COUNT( + CAST( NULL AS SIGNED ) ) col2, - 73 + + 35
----
0
-38

skipif mysql # not compatible
query II rowsort label-5903
SELECT ALL + COUNT ( + CAST ( NULL AS INTEGER ) ) col2, - 73 + + 35
----
0
-38

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-5905
SELECT DISTINCT + 97 DIV 19 AS col2, 55 AS col2
----
5
55

skipif mysql # not compatible
query II rowsort label-5905
SELECT DISTINCT + 97 / 19 AS col2, 55 AS col2
----
5
55

onlyif mysql # aggregate syntax: 
query I rowsort label-5906
SELECT - MIN( DISTINCT + 64 ) * + - 34 * 28 * + 39 * + 60 + + 65
----
142571585

skipif mysql # not compatible
query I rowsort label-5906
SELECT - MIN ( DISTINCT + 64 ) * + - 34 * 28 * + 39 * + 60 + + 65
----
142571585

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5907
SELECT ALL + 79 * - 54 AS col2, 36 * + CAST( NULL AS SIGNED ) * - 63 + + + ( - 80 ) * - 75 col2, + + 38 AS col0
----
-4266
NULL
38

skipif mysql # not compatible
query III rowsort label-5907
SELECT ALL + 79 * - 54 AS col2, 36 * + CAST ( NULL AS INTEGER ) * - 63 + + + ( - 80 ) * - 75 col2, + + 38 AS col0
----
-4266
NULL
38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5908
SELECT - 46 * + - CAST( + - 11 AS SIGNED ) AS col0
----
-506

skipif mysql # not compatible
query I rowsort label-5908
SELECT - 46 * + - CAST ( + - 11 AS INTEGER ) AS col0
----
-506

query I rowsort
SELECT DISTINCT + 82 * ( 73 ) col0
----
5986

query II rowsort
SELECT ALL 72 + + - 91 AS col2, - 44 AS col0
----
-19
-44

query III rowsort
SELECT 83 * + 89 AS col1, + 15 AS col1, + 59
----
7387
15
59

onlyif mysql # aggregate syntax: 
query I rowsort label-5912
SELECT ALL + 13 + + 84 * MIN( - 9 )
----
-743

skipif mysql # not compatible
query I rowsort label-5912
SELECT ALL + 13 + + 84 * MIN ( - 9 )
----
-743

query I rowsort
SELECT - 55 * 49
----
-2695

query I rowsort
SELECT ALL + 33 + + ( + 37 ) AS col0
----
70

query I rowsort
SELECT DISTINCT - 22 * - 55
----
1210

onlyif mysql # aggregate syntax: 
query I rowsort label-5916
SELECT - - COALESCE ( COALESCE ( - 30, + 52 * + MIN( 87 ) ), COUNT( * ) )
----
-30

skipif mysql # not compatible
query I rowsort label-5916
SELECT - - COALESCE ( COALESCE ( - 30, + 52 * + MIN ( 87 ) ), COUNT ( * ) )
----
-30

query II rowsort
SELECT + 21 * + 38 AS col1, COALESCE ( - 54, - ( - 79 ) ) + 7
----
798
-47

query I rowsort
SELECT 52 * + 87 + + 17 AS col0
----
4541

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5919
SELECT + CAST( - 88 AS SIGNED ) AS col0
----
-88

skipif mysql # not compatible
query I rowsort label-5919
SELECT + CAST ( - 88 AS INTEGER ) AS col0
----
-88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-5920
SELECT ALL COUNT( DISTINCT - 2 ) + + 59 AS col2, 94 + - 94, - - 46 * + + COUNT( * ) * CAST( NULL AS SIGNED ) + - - 45 AS col0
----
60
0
NULL

skipif mysql # not compatible
query III rowsort label-5920
SELECT ALL COUNT ( DISTINCT - 2 ) + + 59 AS col2, 94 + - 94, - - 46 * + + COUNT ( * ) * CAST ( NULL AS INTEGER ) + - - 45 AS col0
----
60
0
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5921
SELECT DISTINCT + 6 * - + 76 - + - COUNT( * ) * + - 0 * - 52 AS col1
----
-456

skipif mysql # not compatible
query I rowsort label-5921
SELECT DISTINCT + 6 * - + 76 - + - COUNT ( * ) * + - 0 * - 52 AS col1
----
-456

query I rowsort
SELECT ALL + 37 - - - 55
----
-18

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

skipif mysql # not compatible
query I rowsort label-5923
SELECT ALL 15 * - 37 / + COUNT ( * ) AS col1
----
-555

query I rowsort
SELECT DISTINCT + ( + 65 ) * - 8
----
-520

query II rowsort
SELECT + 37 + + 75 AS col1, + 28 * 9 + + 46 AS col1
----
112
298

onlyif mysql # DIV for integer division: 
query I rowsort label-5926
SELECT 50 DIV + 78 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5926
SELECT 50 / + 78 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5927
SELECT 28 * - + 19 + COUNT( - 53 ) * - CAST( - - COUNT( * ) AS SIGNED ) + + CAST( - - 90 AS SIGNED ) * - - ( 42 )
----
3247

skipif mysql # not compatible
query I rowsort label-5927
SELECT 28 * - + 19 + COUNT ( - 53 ) * - CAST ( - - COUNT ( * ) AS INTEGER ) + + CAST ( - - 90 AS INTEGER ) * - - ( 42 )
----
3247

onlyif mysql # aggregate syntax: 
query I rowsort label-5928
SELECT ALL 54 - + COUNT( * )
----
53

skipif mysql # not compatible
query I rowsort label-5928
SELECT ALL 54 - + COUNT ( * )
----
53

onlyif mysql # DIV for integer division: 
query I rowsort label-5929
SELECT ALL + 83 DIV - - 75 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5929
SELECT ALL + 83 / - - 75 AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5930
SELECT 92 DIV COALESCE ( + + 64, - - CASE + 94 WHEN COUNT( * ) THEN NULL WHEN + 19 + - COUNT( * ) + + ( + COUNT( * ) ) THEN - CAST( NULL AS SIGNED ) * - ( - MIN( 0 ) ) ELSE NULL END, - 38 * + - SUM( ALL + 73 ) + - 80 * 42 + 8 ) + - 84 * 23 + NULLIF ( + 5, 37 ) AS col1
----
-1926

skipif mysql # not compatible
query I rowsort label-5930
SELECT 92 / COALESCE ( + + 64, - - CASE + 94 WHEN COUNT ( * ) THEN NULL WHEN + 19 + - COUNT ( * ) + + ( + COUNT ( * ) ) THEN - CAST ( NULL AS INTEGER ) * - ( - MIN ( 0 ) ) ELSE NULL END, - 38 * + - SUM ( ALL + 73 ) + - 80 * 42 + 8 ) + - 84 * 23 + NULLIF ( + 5, 37 ) AS col1
----
-1926

query I rowsort
SELECT 59 + + 64 AS col0
----
123

query I rowsort
SELECT ALL + 56 * - - 80
----
4480

onlyif mysql # DIV for integer division: 
query I rowsort label-5933
SELECT 66 DIV 1
----
66

skipif mysql # not compatible
query I rowsort label-5933
SELECT 66 / 1
----
66

query II rowsort
SELECT + 46, - 20 + - + 72 AS col1
----
46
-92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5935
SELECT + 4 col0, ( - 29 ) * 97 * + - 45 + - ( - 68 ) + - + 17 + 99 / - 74 + 16 + - - CAST( NULL AS SIGNED ) * - 35 * COUNT( * ) * - 91 * - + COUNT( * ) AS col1
----
4
NULL

skipif mysql # not compatible
query II rowsort label-5935
SELECT + 4 col0, ( - 29 ) * 97 * + - 45 + - ( - 68 ) + - + 17 + 99 / - 74 + 16 + - - CAST ( NULL AS INTEGER ) * - 35 * COUNT ( * ) * - 91 * - + COUNT ( * ) AS col1
----
4
NULL

query I rowsort
SELECT ALL + 93 * - 40
----
-3720

query I rowsort
SELECT ALL 52 * 99
----
5148

query I rowsort
SELECT 72 - - + NULLIF ( + 1, + + NULLIF ( + + 62, - CASE 64 WHEN + + 8 + 85 * + 44 THEN 21 ELSE NULL END ) )
----
73

query I rowsort
SELECT DISTINCT - COALESCE ( 36, + 57 + + 85, 11 )
----
-36

query I rowsort
SELECT ALL - 21 + - 69 + 58 + - 3 * + 83 AS col1
----
-281

query II rowsort
SELECT DISTINCT + - ( + 95 ) + - 36, + 5 AS col0
----
-131
5

onlyif mysql # aggregate syntax: 
query I rowsort label-5942
SELECT + - ( - - 70 ) * MIN( ALL + 95 ) * + + 11 + + 33 col1
----
-73117

skipif mysql # not compatible
query I rowsort label-5942
SELECT + - ( - - 70 ) * MIN ( ALL + 95 ) * + + 11 + + 33 col1
----
-73117

query I rowsort
SELECT ALL + 84 * + 72 col0
----
6048

onlyif mysql # DIV for integer division: 
query I rowsort label-5944
SELECT 98 DIV 67 + + 49 + - 81 + + 6 + - - 42
----
17

skipif mysql # not compatible
query I rowsort label-5944
SELECT 98 / 67 + + 49 + - 81 + + 6 + - - 42
----
17

onlyif mysql # DIV for integer division: 
query II rowsort label-5945
SELECT ALL + + COALESCE ( - + 94, 63 ) + 7 DIV - 86 + 92, 74 AS col2
----
-2
74

skipif mysql # not compatible
query II rowsort label-5945
SELECT ALL + + COALESCE ( - + 94, 63 ) + 7 / - 86 + 92, 74 AS col2
----
-2
74

query I rowsort
SELECT ALL - + 54 + - 93
----
-147

onlyif mysql # DIV for integer division: 
query I rowsort label-5947
SELECT - 75 - - + ( + 46 ) - - 50 DIV - 90
----
-29

skipif mysql # not compatible
query I rowsort label-5947
SELECT - 75 - - + ( + 46 ) - - 50 / - 90
----
-29

query I rowsort
SELECT ALL + + 41 + - 4 AS col0
----
37

query I rowsort
SELECT ALL - 26 + + 36 AS col0
----
10

query I rowsort
SELECT 54 + 6
----
60

query I rowsort
SELECT DISTINCT + COALESCE ( - - 2, 51 )
----
2

onlyif mysql # aggregate syntax: 
query II rowsort label-5952
SELECT DISTINCT - - 12 - 10 * + COUNT( * ) AS col2, 44
----
2
44

skipif mysql # not compatible
query II rowsort label-5952
SELECT DISTINCT - - 12 - 10 * + COUNT ( * ) AS col2, 44
----
2
44

query I rowsort
SELECT ALL - 77 * - - 90
----
-6930

query II rowsort
SELECT ALL - 85 - 77 + - + 70, 33 AS col0
----
-232
33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5955
SELECT CAST( - 40 AS SIGNED ) AS col2
----
-40

skipif mysql # not compatible
query I rowsort label-5955
SELECT CAST ( - 40 AS INTEGER ) AS col2
----
-40

query I rowsort
SELECT ALL + + 87 * - + 75 AS col2
----
-6525

query I rowsort
SELECT ALL 74 - 36 AS col0
----
38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5958
SELECT DISTINCT SUM( ALL CAST( + 27 AS SIGNED ) )
----
27

skipif mysql # not compatible
query I rowsort label-5958
SELECT DISTINCT SUM ( ALL CAST ( + 27 AS INTEGER ) )
----
27

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5959
SELECT ALL 7 * + CAST( NULL AS SIGNED ), 24 AS col2
----
NULL
24

skipif mysql # not compatible
query II rowsort label-5959
SELECT ALL 7 * + CAST ( NULL AS INTEGER ), 24 AS col2
----
NULL
24

query II rowsort
SELECT ( + 76 ) * - - 99 + 76 AS col0, 30
----
7600
30

query I rowsort
SELECT DISTINCT 42 * - - 19
----
798

query I rowsort
SELECT 30 - + 14 AS col2
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-5963
SELECT CASE - 78 WHEN - COUNT( * ) THEN - + 79 * - - 2 * - 11 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5963
SELECT CASE - 78 WHEN - COUNT ( * ) THEN - + 79 * - - 2 * - 11 ELSE NULL END AS col2
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5965
SELECT COALESCE ( - 13, + 18 + 71, - 25 * 57 + 76 + - 14 * + COUNT( COALESCE ( - - 92, 97, + 23 ) ) ) * + 67
----
-871

skipif mysql # not compatible
query I rowsort label-5965
SELECT COALESCE ( - 13, + 18 + 71, - 25 * 57 + 76 + - 14 * + COUNT ( COALESCE ( - - 92, 97, + 23 ) ) ) * + 67
----
-871

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

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

query I rowsort
SELECT 94 * 24 AS col1
----
2256

onlyif mysql # aggregate syntax: 
query II rowsort label-5968
SELECT ALL 39 * - 41 + - 63 + MIN( 84 ) * + COALESCE ( + 62, - 68 ) + 89 AS col1, - 47
----
3635
-47

skipif mysql # not compatible
query II rowsort label-5968
SELECT ALL 39 * - 41 + - 63 + MIN ( 84 ) * + COALESCE ( + 62, - 68 ) + 89 AS col1, - 47
----
3635
-47

query I rowsort
SELECT DISTINCT - + 80 * + - 12 + 18 * - 95 * 93
----
-158070

onlyif mysql # DIV for integer division: 
query I rowsort label-5970
SELECT + 76 * 60 DIV + 78
----
58

skipif mysql # not compatible
query I rowsort label-5970
SELECT + 76 * 60 / + 78
----
58

query I rowsort
SELECT + 81 + - - 79 AS col2
----
160

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

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

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

query I rowsort
SELECT ALL + - 39 * + 93 + + 34 AS col0
----
-3593

onlyif mysql # aggregate syntax: 
query II rowsort label-5975
SELECT - + 61 + + COUNT( * ), 70 AS col0
----
-60
70

skipif mysql # not compatible
query II rowsort label-5975
SELECT - + 61 + + COUNT ( * ), 70 AS col0
----
-60
70

onlyif mysql # aggregate syntax: 
query I rowsort label-5976
SELECT DISTINCT MAX( DISTINCT - 24 ) * COUNT( * )
----
-24

skipif mysql # not compatible
query I rowsort label-5976
SELECT DISTINCT MAX ( DISTINCT - 24 ) * COUNT ( * )
----
-24

query I rowsort
SELECT DISTINCT 95 - - 21 + + 4
----
120

query I rowsort
SELECT DISTINCT + 78 * + ( - 80 )
----
-6240

onlyif mysql # aggregate syntax: 
query II rowsort label-5979
SELECT ALL - - 26 - - COUNT( * ) AS col1, + COUNT( * ) AS col2
----
27
1

skipif mysql # not compatible
query II rowsort label-5979
SELECT ALL - - 26 - - COUNT ( * ) AS col1, + COUNT ( * ) AS col2
----
27
1

query I rowsort
SELECT - 66 * + 75 + - 28 * - 17
----
-4474

onlyif mysql # aggregate syntax: 
query I rowsort label-5981
SELECT + 6 - - - COUNT( - 26 ) AS col0
----
5

skipif mysql # not compatible
query I rowsort label-5981
SELECT + 6 - - - COUNT ( - 26 ) AS col0
----
5

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

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

query II rowsort
SELECT ALL + ( - 87 ) col2, 26 + 76 * 28
----
-87
2154

query I rowsort
SELECT - 33 * + + 80 * - 72 AS col1
----
190080

query I rowsort
SELECT - + 74 - - + 64 * - 78
----
-5066

query I rowsort
SELECT DISTINCT - 82 * - 30 * + 62 AS col0
----
152520

onlyif mysql # DIV for integer division: 
query I rowsort label-5987
SELECT DISTINCT - ( - 96 ) DIV - - ( 97 )
----
0

skipif mysql # not compatible
query I rowsort label-5987
SELECT DISTINCT - ( - 96 ) / - - ( 97 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5988
SELECT ALL CASE - - 46 WHEN + + 25 THEN NULL ELSE - 59 * - 89 * + 20 + - COUNT( * ) + - 34 / COUNT( * ) + 27 * ( - CAST( NULL AS SIGNED ) ) * - 35 * CAST( NULL AS SIGNED ) + - - 4 + + 7 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5988
SELECT ALL CASE - - 46 WHEN + + 25 THEN NULL ELSE - 59 * - 89 * + 20 + - COUNT ( * ) + - 34 / COUNT ( * ) + 27 * ( - CAST ( NULL AS INTEGER ) ) * - 35 * CAST ( NULL AS INTEGER ) + - - 4 + + 7 END
----
NULL

query I rowsort
SELECT ALL 7 * + - 29
----
-203

query I rowsort
SELECT - 13 * COALESCE ( - + 56, + 65 )
----
728

query I rowsort
SELECT - 1 + + 86 AS col1
----
85

onlyif mysql # DIV for integer division: 
query I rowsort label-5992
SELECT + 65 DIV + 83
----
0

skipif mysql # not compatible
query I rowsort label-5992
SELECT + 65 / + 83
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5993
SELECT ALL - 65 + - 71 + - - 87 DIV - CAST( - 6 AS SIGNED ), 4 AS col1
----
-122
4

skipif mysql # not compatible
query II rowsort label-5993
SELECT ALL - 65 + - 71 + - - 87 / - CAST ( - 6 AS INTEGER ), 4 AS col1
----
-122
4

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5996
SELECT ALL 90, - 45 * ( - COUNT( * ) ) AS col0
----
90
45

skipif mysql # not compatible
query II rowsort label-5996
SELECT ALL 90, - 45 * ( - COUNT ( * ) ) AS col0
----
90
45

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5997
SELECT CAST( NULL AS SIGNED ), - 9 - + 7 * 56 * + CAST( - 76 AS SIGNED ) AS col1
----
NULL
29783

skipif mysql # not compatible
query II rowsort label-5997
SELECT CAST ( NULL AS INTEGER ), - 9 - + 7 * 56 * + CAST ( - 76 AS INTEGER ) AS col1
----
NULL
29783

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5998
SELECT ALL 4 DIV - MIN( + - 60 ) * 61 + 84
----
84

skipif mysql # not compatible
query I rowsort label-5998
SELECT ALL 4 / - MIN ( + - 60 ) * 61 + 84
----
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5999
SELECT ALL 73 DIV - + 73 + - 41 * - - COALESCE ( - 4, + CAST( NULL AS SIGNED ) ) AS col1, - COUNT( ALL + + 2 ) AS col2
----
163
-1

skipif mysql # not compatible
query II rowsort label-5999
SELECT ALL 73 / - + 73 + - 41 * - - COALESCE ( - 4, + CAST ( NULL AS INTEGER ) ) AS col1, - COUNT ( ALL + + 2 ) AS col2
----
163
-1

query I rowsort
SELECT 29 * + 36 + 98 + + 89 * - 82 * + 17 + + 41 AS col0
----
-122883

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6001
SELECT ALL + 10, + 10 DIV + + COUNT( * ) AS col2
----
10
10

skipif mysql # not compatible
query II rowsort label-6001
SELECT ALL + 10, + 10 / + + COUNT ( * ) AS col2
----
10
10

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6002
SELECT + ( - COUNT( * ) ) DIV + + 42 * - 14 + 78 AS col0, 29 AS col0
----
78
29

skipif mysql # not compatible
query II rowsort label-6002
SELECT + ( - COUNT ( * ) ) / + + 42 * - 14 + 78 AS col0, 29 AS col0
----
78
29

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

query I rowsort
SELECT - 87 * + 75 AS col1
----
-6525

query I rowsort
SELECT 21 * - 57 + - ( 25 )
----
-1222

query I rowsort
SELECT DISTINCT - 34 * - - 70 + - 62 + + 55 col0
----
-2387

onlyif mysql # aggregate syntax: 
query I rowsort label-6007
SELECT + + COALESCE ( COUNT( * ), + 76 )
----
1

skipif mysql # not compatible
query I rowsort label-6007
SELECT + + COALESCE ( COUNT ( * ), + 76 )
----
1

query II rowsort
SELECT 78 AS col1, 67 + + + 4 AS col0
----
78
71

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

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

query II rowsort
SELECT + + 4 col2, 99 - + + 55
----
4
44

query I rowsort
SELECT DISTINCT + ( - 26 ) * - 4 - - 36 + + + 73 + + 98
----
311

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

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

query I rowsort
SELECT + 91 * 74 - - 86 + - ( 15 ) + 56 * - + 84
----
2101

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

query I rowsort
SELECT + + ( + 53 ) + - 33
----
20

onlyif mysql # DIV for integer division: 
query I rowsort label-6016
SELECT DISTINCT + 58 DIV - + 50
----
-1

skipif mysql # not compatible
query I rowsort label-6016
SELECT DISTINCT + 58 / - + 50
----
-1

query I rowsort
SELECT 94 * - 60 + - 9
----
-5649

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6018
SELECT ALL - COUNT( ALL - + CAST( NULL AS SIGNED ) ) * + 39 + - 35 * - 34 AS col1
----
1190

skipif mysql # not compatible
query I rowsort label-6018
SELECT ALL - COUNT ( ALL - + CAST ( NULL AS INTEGER ) ) * + 39 + - 35 * - 34 AS col1
----
1190

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

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

query II rowsort
SELECT DISTINCT 3, 63 AS col1
----
3
63

onlyif mysql # aggregate syntax: 
query I rowsort label-6021
SELECT + - 44 * 77 * + 94 * - 97 + COUNT( * )
----
30891785

skipif mysql # not compatible
query I rowsort label-6021
SELECT + - 44 * 77 * + 94 * - 97 + COUNT ( * )
----
30891785

onlyif mysql # aggregate syntax: 
query I rowsort label-6022
SELECT ALL - ( + COUNT( * ) ) * - - 4 + - - 93 * - 8 - + + 95
----
-843

skipif mysql # not compatible
query I rowsort label-6022
SELECT ALL - ( + COUNT ( * ) ) * - - 4 + - - 93 * - 8 - + + 95
----
-843

query I rowsort
SELECT + 40 + 8 AS col0
----
48

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6024
SELECT ALL NULLIF ( - 19, ( 93 ) * + - COUNT( * ) + + 0 ) * COUNT( * ) DIV COUNT( * ), 36 + + + 19 AS col2
----
-19
55

skipif mysql # not compatible
query II rowsort label-6024
SELECT ALL NULLIF ( - 19, ( 93 ) * + - COUNT ( * ) + + 0 ) * COUNT ( * ) / COUNT ( * ), 36 + + + 19 AS col2
----
-19
55

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6026
SELECT - COUNT( * ) + + 25 + + - 31 - 84, + 22 AS col2
----
-91
22

skipif mysql # not compatible
query II rowsort label-6026
SELECT - COUNT ( * ) + + 25 + + - 31 - 84, + 22 AS col2
----
-91
22

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6028
SELECT ALL CAST( NULL AS SIGNED ) AS col2, - MIN( - 18 ) + - + 7
----
NULL
11

skipif mysql # not compatible
query II rowsort label-6028
SELECT ALL CAST ( NULL AS INTEGER ) AS col2, - MIN ( - 18 ) + - + 7
----
NULL
11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6029
SELECT - 90 + - CAST( 5 AS SIGNED ) + - 51 AS col0
----
-146

skipif mysql # not compatible
query I rowsort label-6029
SELECT - 90 + - CAST ( 5 AS INTEGER ) + - 51 AS col0
----
-146

onlyif mysql # aggregate syntax: 
query II rowsort label-6030
SELECT - 23 AS col1, + COUNT( * ) * - - ( + 98 ) AS col0
----
-23
98

skipif mysql # not compatible
query II rowsort label-6030
SELECT - 23 AS col1, + COUNT ( * ) * - - ( + 98 ) AS col0
----
-23
98

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

skipif mysql # not compatible
query I rowsort label-6031
SELECT DISTINCT - 79 + - COUNT ( * ) AS col1
----
-80

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6033
SELECT - 54 * COUNT( * ), + NULLIF ( - - 98, + - 81 ) AS col0
----
-54
98

skipif mysql # not compatible
query II rowsort label-6033
SELECT - 54 * COUNT ( * ), + NULLIF ( - - 98, + - 81 ) AS col0
----
-54
98

query I rowsort
SELECT ALL - 61 + + 88
----
27

query I rowsort
SELECT DISTINCT - 52 + ( 16 ) - + 10
----
-46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6036
SELECT DISTINCT 91, 77 * + 1 / - - COUNT( ALL - 71 ) * + 19 * ( CAST( NULL AS SIGNED ) ) + - 67 + 44 - + 87 * COALESCE ( COUNT( * ), + 72 - - - 22 ) AS col0
----
91
NULL

skipif mysql # not compatible
query II rowsort label-6036
SELECT DISTINCT 91, 77 * + 1 / - - COUNT ( ALL - 71 ) * + 19 * ( CAST ( NULL AS INTEGER ) ) + - 67 + 44 - + 87 * COALESCE ( COUNT ( * ), + 72 - - - 22 ) AS col0
----
91
NULL

query I rowsort
SELECT ALL - 34 + - 37
----
-71

onlyif mysql # DIV for integer division: 
query I rowsort label-6038
SELECT ALL - 61 DIV 78 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6038
SELECT ALL - 61 / 78 AS col2
----
0

query II rowsort
SELECT - 98 AS col0, - 87 + 67 + - 82
----
-98
-102

onlyif mysql # aggregate syntax: 
query II rowsort label-6040
SELECT ALL 0 AS col1, + COALESCE ( - COUNT( * ), - 60 - + - 80 + - + 61 )
----
0
-1

skipif mysql # not compatible
query II rowsort label-6040
SELECT ALL 0 AS col1, + COALESCE ( - COUNT ( * ), - 60 - + - 80 + - + 61 )
----
0
-1

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

skipif mysql # not compatible
query I rowsort label-6041
SELECT ALL + 34 + + 6 + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6042
SELECT 65 - + 69 DIV + 75 AS col1
----
65

skipif mysql # not compatible
query I rowsort label-6042
SELECT 65 - + 69 / + 75 AS col1
----
65

query I rowsort
SELECT 0 * + - 21 AS col1
----
0

query II rowsort
SELECT ALL - 45 col0, + 94 AS col0
----
-45
94

onlyif mysql # aggregate syntax: 
query II rowsort label-6045
SELECT + 63 AS col1, COUNT( * ) + 94 + + 4 * - 7
----
63
67

skipif mysql # not compatible
query II rowsort label-6045
SELECT + 63 AS col1, COUNT ( * ) + 94 + + 4 * - 7
----
63
67

onlyif mysql # aggregate syntax: 
query II rowsort label-6046
SELECT 74 AS col1, - MIN( ALL + 66 ) * 81 * 58 * + 50
----
74
-15503400

skipif mysql # not compatible
query II rowsort label-6046
SELECT 74 AS col1, - MIN ( ALL + 66 ) * 81 * 58 * + 50
----
74
-15503400

onlyif mysql # aggregate syntax: 
query I rowsort label-6047
SELECT ALL - + NULLIF ( + MAX( ALL - 40 ), 74 ) AS col2
----
40

skipif mysql # not compatible
query I rowsort label-6047
SELECT ALL - + NULLIF ( + MAX ( ALL - 40 ), 74 ) AS col2
----
40

query I rowsort
SELECT DISTINCT - NULLIF ( + 71, + - 8 ) AS col1
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-6049
SELECT ALL - COUNT( DISTINCT - 96 ) * - + 54 AS col1
----
54

skipif mysql # not compatible
query I rowsort label-6049
SELECT ALL - COUNT ( DISTINCT - 96 ) * - + 54 AS col1
----
54

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6050
SELECT ALL - + COALESCE ( 10, + CAST( NULL AS SIGNED ) + - 57 DIV - - 23 ) col2
----
-10

skipif mysql # not compatible
query I rowsort label-6050
SELECT ALL - + COALESCE ( 10, + CAST ( NULL AS INTEGER ) + - 57 / - - 23 ) col2
----
-10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6051
SELECT 52 + + + 52 - 35 + - - 21 + + 29 / + - MIN( + + 79 ) * + COUNT( 38 ) * - + NULLIF ( 48, - + 63 ) * - NULLIF ( + CAST( + - 55 AS SIGNED ), + 80 - + 99 ) + + ( - 19 ) * 61 * CAST( NULL AS SIGNED ) + 20 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6051
SELECT 52 + + + 52 - 35 + - - 21 + + 29 / + - MIN ( + + 79 ) * + COUNT ( 38 ) * - + NULLIF ( 48, - + 63 ) * - NULLIF ( + CAST ( + - 55 AS INTEGER ), + 80 - + 99 ) + + ( - 19 ) * 61 * CAST ( NULL AS INTEGER ) + 20 AS col0
----
NULL

query II rowsort
SELECT DISTINCT - + 47, 23 AS col2
----
-47
23

query I rowsort
SELECT ALL 52 * + - 4 AS col1
----
-208

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6054
SELECT + CAST( - + 56 AS SIGNED ) AS col0
----
-56

skipif mysql # not compatible
query I rowsort label-6054
SELECT + CAST ( - + 56 AS INTEGER ) AS col0
----
-56

query II rowsort
SELECT DISTINCT - - 14 AS col1, COALESCE ( - 9, 42 + + 6 + + 18 + + 33 * 42 * 26 + 23 ) AS col0
----
14
-9

query I rowsort
SELECT ALL + 29 * - 85 + + 95
----
-2370

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6058
SELECT ALL - 11, ( MAX( DISTINCT 60 ) ) AS col2
----
-11
60

skipif mysql # not compatible
query II rowsort label-6058
SELECT ALL - 11, ( MAX ( DISTINCT 60 ) ) AS col2
----
-11
60

query I rowsort
SELECT COALESCE ( + 19, - 8 ) AS col1
----
19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6060
SELECT DISTINCT - - CAST( 50 AS SIGNED )
----
50

skipif mysql # not compatible
query I rowsort label-6060
SELECT DISTINCT - - CAST ( 50 AS INTEGER )
----
50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6061
SELECT ALL 54 + - - COALESCE ( - + ( - SUM( + 9 ) ), 22 * - 83 + - ( - SUM( ALL 34 ) ) / - 63 - + - AVG ( DISTINCT + + ( + 34 ) ), COALESCE ( - 94, + 7 ) + - CASE 23 WHEN + - NULLIF ( + + COUNT( * ), + 28 ) THEN NULL ELSE + AVG ( - - 4 ) END * - - 8 + - 31 ) + + COUNT( * ) * + 48 * - CAST( NULL AS SIGNED ) * - 90 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6061
SELECT ALL 54 + - - COALESCE ( - + ( - SUM ( + 9 ) ), 22 * - 83 + - ( - SUM ( ALL 34 ) ) / - 63 - + - AVG ( DISTINCT + + ( + 34 ) ), COALESCE ( - 94, + 7 ) + - CASE 23 WHEN + - NULLIF ( + + COUNT ( * ), + 28 ) THEN NULL ELSE + AVG ( - - 4 ) END * - - 8 + - 31 ) + + COUNT ( * ) * + 48 * - CAST ( NULL AS INTEGER ) * - 90 col0
----
NULL

query I rowsort
SELECT 1 * - 0 + 82 + + + 90
----
172

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

query II rowsort
SELECT ALL 43 col0, 99
----
43
99

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

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

skipif mysql # not compatible
query I rowsort label-6066
SELECT ALL 81 / - 99 * + + COUNT ( * )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6067
SELECT CASE + - 84 WHEN + + ( - 54 ) THEN + - MIN( DISTINCT - - 42 ) END / + 95 + + 76
----
NULL

skipif mysql # not compatible
query I rowsort label-6067
SELECT CASE + - 84 WHEN + + ( - 54 ) THEN + - MIN ( DISTINCT - - 42 ) END / + 95 + + 76
----
NULL

query II rowsort
SELECT ALL ( COALESCE ( - - 60, 69 * 44 ) ) + NULLIF ( - 46, + 37 + - 68 * 88 + - + 68 + 71 ) AS col0, - 68 * + 37 AS col2
----
14
-2516

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6070
SELECT CASE - 80 WHEN - ( - - 27 ) + + - AVG ( ALL - 17 ) * - + CAST( + ( - 68 ) AS SIGNED ) THEN NULL WHEN 81 * + + 69 * + 68 - + 67 THEN NULL ELSE - - 37 * 90 / - 58 END / - + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6070
SELECT CASE - 80 WHEN - ( - - 27 ) + + - AVG ( ALL - 17 ) * - + CAST ( + ( - 68 ) AS INTEGER ) THEN NULL WHEN 81 * + + 69 * + 68 - + 67 THEN NULL ELSE - - 37 * 90 / - 58 END / - + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT ALL 42 + 1 AS col1
----
43

onlyif mysql # aggregate syntax: 
query II rowsort label-6072
SELECT ALL + 2 + + 1 AS col1, - 53 - - 32 * 7 * + 57 + - COUNT( * ) + - 67
----
3
12647

skipif mysql # not compatible
query II rowsort label-6072
SELECT ALL + 2 + + 1 AS col1, - 53 - - 32 * 7 * + 57 + - COUNT ( * ) + - 67
----
3
12647

query I rowsort
SELECT ALL 88 * - 58
----
-5104

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6075
SELECT CASE - 28 WHEN ( 34 ) * - 17 * + - 99 + - 91 THEN + + COUNT( * ) WHEN + COUNT( * ) + + + 24 THEN + COALESCE ( + - ( + - 56 ), + 40 * - - 23 / + 17 * - 85 ) + 89 + - ( + COUNT( * ) ) - + SUM( - NULLIF ( + 7, 83 ) ) * ( - COUNT( * ) ) / + 95 END + - COUNT( * ) * COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6075
SELECT CASE - 28 WHEN ( 34 ) * - 17 * + - 99 + - 91 THEN + + COUNT ( * ) WHEN + COUNT ( * ) + + + 24 THEN + COALESCE ( + - ( + - 56 ), + 40 * - - 23 / + 17 * - 85 ) + 89 + - ( + COUNT ( * ) ) - + SUM ( - NULLIF ( + 7, 83 ) ) * ( - COUNT ( * ) ) / + 95 END + - COUNT ( * ) * COUNT ( * ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6076
SELECT 10 - - MIN( DISTINCT + + 53 ) * - + 21 * ( + - 35 )
----
38965

skipif mysql # not compatible
query I rowsort label-6076
SELECT 10 - - MIN ( DISTINCT + + 53 ) * - + 21 * ( + - 35 )
----
38965

onlyif mysql # aggregate syntax: 
query I rowsort label-6077
SELECT - COUNT( DISTINCT - - 12 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-6077
SELECT - COUNT ( DISTINCT - - 12 ) AS col0
----
-1

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6079
SELECT DISTINCT + 12 DIV - CAST( ( + 90 ) AS SIGNED ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6079
SELECT DISTINCT + 12 / - CAST ( ( + 90 ) AS INTEGER ) AS col0
----
0

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6082
SELECT 67 * + COALESCE ( + - 16, + COUNT( * ) ) AS col0
----
-1072

skipif mysql # not compatible
query I rowsort label-6082
SELECT 67 * + COALESCE ( + - 16, + COUNT ( * ) ) AS col0
----
-1072

query I rowsort
SELECT + 19 * 79 AS col1
----
1501

query I rowsort
SELECT - 19 * - ( 52 ) + + - 37
----
951

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6085
SELECT 46 DIV + + MIN( + 97 ) AS col0, - 70
----
0
-70

skipif mysql # not compatible
query II rowsort label-6085
SELECT 46 / + + MIN ( + 97 ) AS col0, - 70
----
0
-70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6086
SELECT - NULLIF ( - COALESCE ( - COUNT( * ), - 95 DIV - + ( - 18 ) ), + + NULLIF ( - 7, + 20 ) ) * + 51
----
-51

skipif mysql # not compatible
query I rowsort label-6086
SELECT - NULLIF ( - COALESCE ( - COUNT ( * ), - 95 / - + ( - 18 ) ), + + NULLIF ( - 7, + 20 ) ) * + 51
----
-51

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6088
SELECT ALL - 66 + - + CAST( - ( + 26 ) AS SIGNED )
----
-40

skipif mysql # not compatible
query I rowsort label-6088
SELECT ALL - 66 + - + CAST ( - ( + 26 ) AS INTEGER )
----
-40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6089
SELECT DISTINCT - CASE - 58 WHEN - 15 * COUNT( * ) + + + 5 THEN + 77 / + + 62 * + + 1 END * - ( - 88 ) * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6089
SELECT DISTINCT - CASE - 58 WHEN - 15 * COUNT ( * ) + + + 5 THEN + 77 / + + 62 * + + 1 END * - ( - 88 ) * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6090
SELECT ALL - - COUNT( - 29 )
----
1

skipif mysql # not compatible
query I rowsort label-6090
SELECT ALL - - COUNT ( - 29 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6091
SELECT + 44 * MAX( ALL 47 ) + - 1
----
2067

skipif mysql # not compatible
query I rowsort label-6091
SELECT + 44 * MAX ( ALL 47 ) + - 1
----
2067

onlyif mysql # aggregate syntax: 
query I rowsort label-6092
SELECT ALL + NULLIF ( 47, + COUNT( * ) ) + - ( + 34 ) + - ( + SUM( + 98 ) )
----
-85

skipif mysql # not compatible
query I rowsort label-6092
SELECT ALL + NULLIF ( 47, + COUNT ( * ) ) + - ( + 34 ) + - ( + SUM ( + 98 ) )
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-6093
SELECT 40 + + COUNT( * ) + + + CASE - - 98 WHEN ( + COUNT( * ) ) * - - 97 THEN NULL ELSE COUNT( * ) * 42 END AS col1
----
83

skipif mysql # not compatible
query I rowsort label-6093
SELECT 40 + + COUNT ( * ) + + + CASE - - 98 WHEN ( + COUNT ( * ) ) * - - 97 THEN NULL ELSE COUNT ( * ) * 42 END AS col1
----
83

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6094
SELECT 70 * + COUNT( * ) + + - 57 DIV + 59 AS col2
----
70

skipif mysql # not compatible
query I rowsort label-6094
SELECT 70 * + COUNT ( * ) + + - 57 / + 59 AS col2
----
70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6095
SELECT + 60 + 55 + - - 75 DIV - COUNT( - COALESCE ( 52, - 4 ) ) AS col1
----
40

skipif mysql # not compatible
query I rowsort label-6095
SELECT + 60 + 55 + - - 75 / - COUNT ( - COALESCE ( 52, - 4 ) ) AS col1
----
40

query I rowsort
SELECT ALL 42 + + + ( - 99 ) + - 89 AS col2
----
-146

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6097
SELECT DISTINCT AVG ( - CAST( NULL AS SIGNED ) ) - CASE + 28 WHEN - + 81 THEN + 86 / - + 13 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6097
SELECT DISTINCT AVG ( - CAST ( NULL AS INTEGER ) ) - CASE + 28 WHEN - + 81 THEN + 86 / - + 13 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-6098
SELECT + CAST( NULL AS DECIMAL ) + - 0 + + 70 + NULLIF ( + + ( + + ( - - COUNT( * ) ) ), - - MIN( 68 ) * - 13 + + - 40 + + 73 - - 93 * COUNT( * ) ) + + COUNT( ALL - 33 ) * + 62 / - - 71 + + 68 * + CAST( NULL AS SIGNED ) * + - COUNT( * ) * + 16 * + + 31, - 40 * + 46 AS col1
----
NULL
-1840

skipif mysql # not compatible
query II rowsort label-6098
SELECT + CAST ( NULL AS REAL ) + - 0 + + 70 + NULLIF ( + + ( + + ( - - COUNT ( * ) ) ), - - MIN ( 68 ) * - 13 + + - 40 + + 73 - - 93 * COUNT ( * ) ) + + COUNT ( ALL - 33 ) * + 62 / - - 71 + + 68 * + CAST ( NULL AS INTEGER ) * + - COUNT ( * ) * + 16 * + + 31, - 40 * + 46 AS col1
----
NULL
-1840

query I rowsort
SELECT ALL 6 - + 59 AS col0
----
-53

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

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

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

skipif mysql # not compatible
query I rowsort label-6101
SELECT - 88 * COUNT ( * )
----
-88

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

skipif mysql # not compatible
query I rowsort label-6102
SELECT - NULLIF ( - - COUNT ( * ), + 99 + - 83 )
----
-1

query I rowsort
SELECT + 53 * - 79 AS col1
----
-4187

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

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

query I rowsort
SELECT + 46 + + + 7 AS col1
----
53

query II rowsort
SELECT ALL 60, + 23 AS col2
----
60
23

query I rowsort
SELECT + 76 + - 50 AS col0
----
26

query I rowsort
SELECT DISTINCT 46 * - 44 AS col0
----
-2024

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6110
SELECT 9 AS col1, CAST( NULL AS DECIMAL ) + - COALESCE ( + + 98, + 11 ) * 20 col0
----
9
NULL

skipif mysql # not compatible
query II rowsort label-6110
SELECT 9 AS col1, CAST ( NULL AS REAL ) + - COALESCE ( + + 98, + 11 ) * 20 col0
----
9
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6111
SELECT + 34 - + 71 + + + MAX( ALL - 4 ) + + 43 * - 47
----
-2062

skipif mysql # not compatible
query I rowsort label-6111
SELECT + 34 - + 71 + + + MAX ( ALL - 4 ) + + 43 * - 47
----
-2062

onlyif mysql # DIV for integer division: 
query I rowsort label-6112
SELECT 76 DIV + + 53 + + 21 * - - 26 * + 48
----
26209

skipif mysql # not compatible
query I rowsort label-6112
SELECT 76 / + + 53 + + 21 * - - 26 * + 48
----
26209

onlyif mysql # aggregate syntax: 
query I rowsort label-6113
SELECT DISTINCT + + 3 * COUNT( * ) + 70
----
73

skipif mysql # not compatible
query I rowsort label-6113
SELECT DISTINCT + + 3 * COUNT ( * ) + 70
----
73

onlyif mysql # aggregate syntax: 
query II rowsort label-6114
SELECT DISTINCT + + 50 * + 27 + - 8 AS col0, SUM( + + 91 )
----
1342
91

skipif mysql # not compatible
query II rowsort label-6114
SELECT DISTINCT + + 50 * + 27 + - 8 AS col0, SUM ( + + 91 )
----
1342
91

query I rowsort
SELECT + 63 * - 58 AS col1
----
-3654

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6116
SELECT ALL - - 21 * + COALESCE ( + 34, + COUNT( * ), - 52 * + - 13 DIV + 21 ) AS col2
----
714

skipif mysql # not compatible
query I rowsort label-6116
SELECT ALL - - 21 * + COALESCE ( + 34, + COUNT ( * ), - 52 * + - 13 / + 21 ) AS col2
----
714

onlyif mysql # DIV for integer division: 
query I rowsort label-6117
SELECT - 72 DIV - + 82
----
0

skipif mysql # not compatible
query I rowsort label-6117
SELECT - 72 / - + 82
----
0

query I rowsort
SELECT DISTINCT 45 * + 22 * 79 - - 10 + + 32
----
78252

onlyif mysql # aggregate syntax: 
query I rowsort label-6119
SELECT DISTINCT MAX( ALL + 2 ) * - + 76 AS col2
----
-152

skipif mysql # not compatible
query I rowsort label-6119
SELECT DISTINCT MAX ( ALL + 2 ) * - + 76 AS col2
----
-152

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

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

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

query I rowsort
SELECT DISTINCT + 30 * - - 16 AS col2
----
480

onlyif mysql # aggregate syntax: 
query I rowsort label-6123
SELECT - MAX( - 28 ) + 67 AS col0
----
95

skipif mysql # not compatible
query I rowsort label-6123
SELECT - MAX ( - 28 ) + 67 AS col0
----
95

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6125
SELECT - 35 - + - CASE 64 WHEN + CASE COUNT( * ) WHEN + 22 * 66 THEN NULL WHEN - + SUM( - 56 ) + + 92 THEN NULL ELSE + 70 END THEN + + 88 WHEN 85 + + 48 + 18 * COUNT( * ) + 21 + + 99 THEN + 42 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6125
SELECT - 35 - + - CASE 64 WHEN + CASE COUNT ( * ) WHEN + 22 * 66 THEN NULL WHEN - + SUM ( - 56 ) + + 92 THEN NULL ELSE + 70 END THEN + + 88 WHEN 85 + + 48 + 18 * COUNT ( * ) + 21 + + 99 THEN + 42 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6126
SELECT ALL - COUNT( * ) * - + 52 * + 63
----
3276

skipif mysql # not compatible
query I rowsort label-6126
SELECT ALL - COUNT ( * ) * - + 52 * + 63
----
3276

query I rowsort
SELECT - 18 + + + ( - + ( - 3 ) ) + + 16 AS col1
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-6128
SELECT ALL + CASE 17 WHEN + 0 THEN NULL WHEN 93 THEN 8 ELSE NULL END / + 61 / + + 33 AS col2, - MIN( + + 60 ) AS col1
----
NULL
-60

skipif mysql # not compatible
query II rowsort label-6128
SELECT ALL + CASE 17 WHEN + 0 THEN NULL WHEN 93 THEN 8 ELSE NULL END / + 61 / + + 33 AS col2, - MIN ( + + 60 ) AS col1
----
NULL
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-6129
SELECT - 32 + + COUNT( ALL + 17 ) + 43 + + + 34 * + 5 + 42 AS col2
----
224

skipif mysql # not compatible
query I rowsort label-6129
SELECT - 32 + + COUNT ( ALL + 17 ) + 43 + + + 34 * + 5 + 42 AS col2
----
224

query I rowsort
SELECT + 1 - 68
----
-67

query I rowsort
SELECT + ( + 71 ) + - 4 + + - 35
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-6132
SELECT + + 47 - - COUNT( * ) + - - 30 AS col0
----
78

skipif mysql # not compatible
query I rowsort label-6132
SELECT + + 47 - - COUNT ( * ) + - - 30 AS col0
----
78

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6134
SELECT DISTINCT - 51 DIV 16 * + 5 + 50 AS col0
----
35

skipif mysql # not compatible
query I rowsort label-6134
SELECT DISTINCT - 51 / 16 * + 5 + 50 AS col0
----
35

query I rowsort
SELECT + + ( 57 ) + - 86 + - 29 - 89 AS col2
----
-147

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6136
SELECT ALL + - 41 DIV - 33 DIV - COUNT( * ) + + 47 + + ( - + 22 ) col0
----
24

skipif mysql # not compatible
query I rowsort label-6136
SELECT ALL + - 41 / - 33 / - COUNT ( * ) + + 47 + + ( - + 22 ) col0
----
24

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6138
SELECT + - SUM( DISTINCT + + 16 ) + + - 87
----
-103

skipif mysql # not compatible
query I rowsort label-6138
SELECT + - SUM ( DISTINCT + + 16 ) + + - 87
----
-103

onlyif mysql # aggregate syntax: 
query I rowsort label-6139
SELECT - 73 * + COUNT( * ) + + ( - - MIN( ALL - 76 ) ) * - 97
----
7299

skipif mysql # not compatible
query I rowsort label-6139
SELECT - 73 * + COUNT ( * ) + + ( - - MIN ( ALL - 76 ) ) * - 97
----
7299

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6140
SELECT + MIN( - 98 ) * 74 - + COUNT( * ) - - CAST( NULL AS SIGNED ) * - 68 * + 57 * 44 * - CAST( ( + COUNT( * ) ) AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6140
SELECT + MIN ( - 98 ) * 74 - + COUNT ( * ) - - CAST ( NULL AS INTEGER ) * - 68 * + 57 * 44 * - CAST ( ( + COUNT ( * ) ) AS INTEGER ) AS col1
----
NULL

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

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

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

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

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

query I rowsort
SELECT ( + 79 ) + + 33 AS col1
----
112

query I rowsort
SELECT 69 * + 2
----
138

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6146
SELECT ALL 31 - - 2 + NULLIF ( + + CAST( NULL AS SIGNED ), COUNT( * ) + 24 * 77 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6146
SELECT ALL 31 - - 2 + NULLIF ( + + CAST ( NULL AS INTEGER ), COUNT ( * ) + 24 * 77 )
----
NULL

query I rowsort
SELECT ALL - COALESCE ( - + 53, + 87 - + 76 )
----
53

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6148
SELECT + 28 * - + 28 DIV - COUNT( ALL - 55 ) + - 95 AS col2
----
689

skipif mysql # not compatible
query I rowsort label-6148
SELECT + 28 * - + 28 / - COUNT ( ALL - 55 ) + - 95 AS col2
----
689

query I rowsort
SELECT 59 * + 83 AS col1
----
4897

query I rowsort
SELECT 94 * - 72
----
-6768

query I rowsort
SELECT 65 + + - 46 * - 67 * 8 AS col2
----
24721

onlyif mysql # aggregate syntax: 
query I rowsort label-6152
SELECT 34 * + - 18 - - + COUNT( * ) * + 57 AS col1
----
-555

skipif mysql # not compatible
query I rowsort label-6152
SELECT 34 * + - 18 - - + COUNT ( * ) * + 57 AS col1
----
-555

query I rowsort
SELECT ALL + 44 * - + 70
----
-3080

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

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

query I rowsort
SELECT 10 + + 60 * + 93
----
5590

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6156
SELECT 13 DIV COUNT( * ) * ( 49 )
----
637

skipif mysql # not compatible
query I rowsort label-6156
SELECT 13 / COUNT ( * ) * ( 49 )
----
637

onlyif mysql # aggregate syntax: 
query I rowsort label-6157
SELECT 84 * 75 * - COUNT( * )
----
-6300

skipif mysql # not compatible
query I rowsort label-6157
SELECT 84 * 75 * - COUNT ( * )
----
-6300

query I rowsort
SELECT 20 + + - 23
----
-3

query II rowsort
SELECT ALL 39 AS col2, 15
----
39
15

query I rowsort
SELECT DISTINCT 64 * - - 9
----
576

query I rowsort
SELECT ALL 23 * - 76 * - ( - + 37 ) AS col1
----
-64676

query I rowsort
SELECT 0 + 81 AS col2
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-6163
SELECT 9 + COUNT( * ) - 26 AS col0
----
-16

skipif mysql # not compatible
query I rowsort label-6163
SELECT 9 + COUNT ( * ) - 26 AS col0
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-6164
SELECT 19 + SUM( 41 ) * - - 16
----
675

skipif mysql # not compatible
query I rowsort label-6164
SELECT 19 + SUM ( 41 ) * - - 16
----
675

query I rowsort
SELECT ALL 99 * + 23 AS col2
----
2277

query I rowsort
SELECT 38 * 49
----
1862

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6167
SELECT ALL + COUNT( * ) + - CAST( - 68 AS SIGNED ) * COUNT( * )
----
69

skipif mysql # not compatible
query I rowsort label-6167
SELECT ALL + COUNT ( * ) + - CAST ( - 68 AS INTEGER ) * COUNT ( * )
----
69

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6168
SELECT ALL - 82 + 95 DIV ( + MAX( ALL 7 ) ) AS col0
----
-69

skipif mysql # not compatible
query I rowsort label-6168
SELECT ALL - 82 + 95 / ( + MAX ( ALL 7 ) ) AS col0
----
-69

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6169
SELECT ALL 92 + COALESCE ( 41 + + MIN( - 13 ) DIV 52, 48, - 79 DIV COUNT( * ) ) AS col2
----
133

skipif mysql # not compatible
query I rowsort label-6169
SELECT ALL 92 + COALESCE ( 41 + + MIN ( - 13 ) / 52, 48, - 79 / COUNT ( * ) ) AS col2
----
133

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6170
SELECT CASE 47 WHEN - ( + CASE 80 WHEN 57 THEN + 8 WHEN 93 - + CASE 37 + + 33 * - 52 WHEN ( COUNT( * ) ) THEN - 88 ELSE NULL END / CAST( NULL AS SIGNED ) THEN + 27 + 60 ELSE NULL END ) THEN NULL ELSE + 41 + + 82 END + + 91
----
214

skipif mysql # not compatible
query I rowsort label-6170
SELECT CASE 47 WHEN - ( + CASE 80 WHEN 57 THEN + 8 WHEN 93 - + CASE 37 + + 33 * - 52 WHEN ( COUNT ( * ) ) THEN - 88 ELSE NULL END / CAST ( NULL AS INTEGER ) THEN + 27 + 60 ELSE NULL END ) THEN NULL ELSE + 41 + + 82 END + + 91
----
214

onlyif mysql # DIV for integer division: 
query I rowsort label-6171
SELECT 53 DIV + 37 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6171
SELECT 53 / + 37 AS col0
----
1

query I rowsort
SELECT 24 * - 24
----
-576

onlyif mysql # aggregate syntax: 
query I rowsort label-6173
SELECT COUNT( * ) - + 55 AS col2
----
-54

skipif mysql # not compatible
query I rowsort label-6173
SELECT COUNT ( * ) - + 55 AS col2
----
-54

onlyif mysql # DIV for integer division: 
query I rowsort label-6174
SELECT DISTINCT 32 DIV 72 col1
----
0

skipif mysql # not compatible
query I rowsort label-6174
SELECT DISTINCT 32 / 72 col1
----
0

query I rowsort
SELECT 83 * - 80 - 69 * 31 AS col2
----
-8779

onlyif mysql # aggregate syntax: 
query I rowsort label-6176
SELECT MIN( - 58 ) * ( - 84 * 22 - 13 )
----
107938

skipif mysql # not compatible
query I rowsort label-6176
SELECT MIN ( - 58 ) * ( - 84 * 22 - 13 )
----
107938

query I rowsort
SELECT 50 * + 47 AS col0
----
2350

onlyif mysql # aggregate syntax: 
query I rowsort label-6178
SELECT SUM( 61 ) + CASE CASE 66 WHEN 1 * 31 THEN + NULLIF ( 19, + 70 ) WHEN - ( - 56 ) THEN NULL WHEN 64 + - 83 THEN NULL ELSE 8 * 30 + - COUNT( * ) * - 75 END WHEN - COUNT( * ) THEN - 51 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6178
SELECT SUM ( 61 ) + CASE CASE 66 WHEN 1 * 31 THEN + NULLIF ( 19, + 70 ) WHEN - ( - 56 ) THEN NULL WHEN 64 + - 83 THEN NULL ELSE 8 * 30 + - COUNT ( * ) * - 75 END WHEN - COUNT ( * ) THEN - 51 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6179
SELECT 88 * ( COUNT( * ) ) AS col0
----
88

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

query I rowsort
SELECT DISTINCT 84 * + 3
----
252

query I rowsort
SELECT DISTINCT 78 * 42
----
3276

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6182
SELECT 78 - + MAX( - 29 ) DIV + 24 AS col0
----
79

skipif mysql # not compatible
query I rowsort label-6182
SELECT 78 - + MAX ( - 29 ) / + 24 AS col0
----
79

query I rowsort
SELECT ALL 90 * 29 AS col0
----
2610

onlyif mysql # aggregate syntax: 
query I rowsort label-6184
SELECT DISTINCT - MIN( ALL 29 )
----
-29

skipif mysql # not compatible
query I rowsort label-6184
SELECT DISTINCT - MIN ( ALL 29 )
----
-29

query I rowsort
SELECT DISTINCT 25 * 90 AS col2
----
2250

query I rowsort
SELECT 68 * COALESCE ( 79, + 68 ) col2
----
5372

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

skipif mysql # not compatible
query I rowsort label-6187
SELECT 4 * - COUNT ( * )
----
-4

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

skipif mysql # not compatible
query I rowsort label-6188
SELECT 39 * COUNT ( * ) + 24 AS col2
----
63

query I rowsort
SELECT 20 + + ( - 66 ) * + 95 AS col2
----
-6250

query I rowsort
SELECT ALL + 12 + 86 col0
----
98

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6192
SELECT ALL 76 DIV - 94 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6192
SELECT ALL 76 / - 94 AS col2
----
0

query I rowsort
SELECT 19 * - 11
----
-209

onlyif mysql # aggregate syntax: 
query I rowsort label-6194
SELECT COUNT( + 86 ) - + 30 * 45
----
-1349

skipif mysql # not compatible
query I rowsort label-6194
SELECT COUNT ( + 86 ) - + 30 * 45
----
-1349

query I rowsort
SELECT ALL 70 + - 94
----
-24

query I rowsort
SELECT COALESCE ( + 9, 33 ) + - 39 * - 30
----
1179

query I rowsort
SELECT 44 * + 34 col0
----
1496

query I rowsort
SELECT + 14 + - 44 AS col0
----
-30

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

query I rowsort
SELECT DISTINCT + 72 + + 16 AS col2
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-6201
SELECT ALL - 50 + SUM( ALL 95 )
----
45

skipif mysql # not compatible
query I rowsort label-6201
SELECT ALL - 50 + SUM ( ALL 95 )
----
45

query I rowsort
SELECT 59 - ( 33 )
----
26

query I rowsort
SELECT ALL - 39 + + 82
----
43

query I rowsort
SELECT + 63 + + 3 AS col0
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-6205
SELECT ( MIN( - 29 ) )
----
-29

skipif mysql # not compatible
query I rowsort label-6205
SELECT ( MIN ( - 29 ) )
----
-29

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

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

query I rowsort
SELECT ALL - CASE 72 WHEN - ( - 53 ) THEN NULL ELSE ( - 78 ) END - 53 * + NULLIF ( + ( + 67 ), 61 + - 67 ) AS col2
----
-3473

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6209
SELECT + SUM( + ( + 51 ) ) * 8
----
408

skipif mysql # not compatible
query I rowsort label-6209
SELECT + SUM ( + ( + 51 ) ) * 8
----
408

query I rowsort
SELECT - + 9 + + 66
----
57

query I rowsort
SELECT - 99 - + 10
----
-109

query I rowsort
SELECT - - 34 + + 40 AS col0
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-6213
SELECT + COUNT( * ) - + 62
----
-61

skipif mysql # not compatible
query I rowsort label-6213
SELECT + COUNT ( * ) - + 62
----
-61

query I rowsort
SELECT ALL + - 1 * 53 AS col0
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-6215
SELECT DISTINCT MAX( 71 ) * 41 - - 6 AS col2
----
2917

skipif mysql # not compatible
query I rowsort label-6215
SELECT DISTINCT MAX ( 71 ) * 41 - - 6 AS col2
----
2917

query I rowsort
SELECT - 60 + + 40 * 62 AS col1
----
2420

query I rowsort
SELECT NULLIF ( - 69, 71 / 35 )
----
-69

query I rowsort
SELECT - 89 + - - 52 AS col1
----
-37

onlyif mysql # DIV for integer division: 
query I rowsort label-6219
SELECT + 54 DIV 18 AS col0
----
3

skipif mysql # not compatible
query I rowsort label-6219
SELECT + 54 / 18 AS col0
----
3

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

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

query I rowsort
SELECT + 71 * - ( 11 )
----
-781

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6222
SELECT DISTINCT SUM( 42 ) DIV 36
----
1

skipif mysql # not compatible
query I rowsort label-6222
SELECT DISTINCT SUM ( 42 ) / 36
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6223
SELECT MAX( ALL + 88 ) DIV 73 + 9 AS col1
----
10

skipif mysql # not compatible
query I rowsort label-6223
SELECT MAX ( ALL + 88 ) / 73 + 9 AS col1
----
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6224
SELECT + NULLIF ( - 6, CAST( NULL AS SIGNED ) )
----
-6

skipif mysql # not compatible
query I rowsort label-6224
SELECT + NULLIF ( - 6, CAST ( NULL AS INTEGER ) )
----
-6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6225
SELECT - CAST( NULL AS SIGNED ) / COUNT( ALL - CAST( 7 AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6225
SELECT - CAST ( NULL AS INTEGER ) / COUNT ( ALL - CAST ( 7 AS REAL ) )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6226
SELECT ALL - 48 * + 97 + + COUNT( * ) DIV + 77
----
-4656

skipif mysql # not compatible
query I rowsort label-6226
SELECT ALL - 48 * + 97 + + COUNT ( * ) / + 77
----
-4656

onlyif mysql # DIV for integer division: 
query I rowsort label-6227
SELECT DISTINCT + 71 DIV + + 83
----
0

skipif mysql # not compatible
query I rowsort label-6227
SELECT DISTINCT + 71 / + + 83
----
0

query I rowsort
SELECT + 12 + 33 * + 44 AS col0
----
1464

onlyif mysql # aggregate syntax: 
query I rowsort label-6229
SELECT DISTINCT COUNT( * ) * - 77 AS col0
----
-77

skipif mysql # not compatible
query I rowsort label-6229
SELECT DISTINCT COUNT ( * ) * - 77 AS col0
----
-77

query I rowsort
SELECT DISTINCT - 55 * 38 + + 74 * 71 AS col1
----
3164

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6232
SELECT + 64 + COUNT( * )
----
65

skipif mysql # not compatible
query I rowsort label-6232
SELECT + 64 + COUNT ( * )
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-6233
SELECT ALL + 22 * - 77 * 68 + COUNT( * )
----
-115191

skipif mysql # not compatible
query I rowsort label-6233
SELECT ALL + 22 * - 77 * 68 + COUNT ( * )
----
-115191

onlyif mysql # aggregate syntax: 
query I rowsort label-6234
SELECT - 76 + MIN( - 16 )
----
-92

skipif mysql # not compatible
query I rowsort label-6234
SELECT - 76 + MIN ( - 16 )
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-6235
SELECT COUNT( * ) * COALESCE ( - 44, COUNT( DISTINCT - 39 ) ) * 3 + + 81
----
-51

skipif mysql # not compatible
query I rowsort label-6235
SELECT COUNT ( * ) * COALESCE ( - 44, COUNT ( DISTINCT - 39 ) ) * 3 + + 81
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-6236
SELECT + 58 + - CASE - ( + 36 ) WHEN + 48 THEN ( - SUM( + 2 ) ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6236
SELECT + 58 + - CASE - ( + 36 ) WHEN + 48 THEN ( - SUM ( + 2 ) ) END AS col0
----
NULL

query I rowsort
SELECT ALL + 5 * 52 * 91 + + 12 * - 56 AS col1
----
22988

query I rowsort
SELECT DISTINCT 93 + + + 6 + - 84
----
15

query I rowsort
SELECT ALL - 54 + - - 49 + ( + 36 ) * 7
----
247

query I rowsort
SELECT + + 74 + + 67
----
141

onlyif mysql # aggregate syntax: 
query I rowsort label-6241
SELECT ALL + - CASE WHEN COUNT( * ) IS NULL THEN 3 * 90 ELSE NULL END * + 1 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6241
SELECT ALL + - CASE WHEN COUNT ( * ) IS NULL THEN 3 * 90 ELSE NULL END * + 1 col0
----
NULL

query I rowsort
SELECT ALL + 18 * - - 31 * + 8 AS col1
----
4464

query I rowsort
SELECT - 70 * + 0 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6244
SELECT - CASE - 55 WHEN 93 / 78 - SUM( - 14 ) THEN NULL WHEN - ( 11 ) * COALESCE ( - 92, COUNT( * ) ) THEN + 67 + 56 * - 4 END + + 1
----
NULL

skipif mysql # not compatible
query I rowsort label-6244
SELECT - CASE - 55 WHEN 93 / 78 - SUM ( - 14 ) THEN NULL WHEN - ( 11 ) * COALESCE ( - 92, COUNT ( * ) ) THEN + 67 + 56 * - 4 END + + 1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6245
SELECT ALL - - 74 * + - 18 + - COUNT( * )
----
-1333

skipif mysql # not compatible
query I rowsort label-6245
SELECT ALL - - 74 * + - 18 + - COUNT ( * )
----
-1333

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6246
SELECT ALL 97 * + + CASE 84 WHEN 22 * ( 6 * - 71 ) - 76 * + CAST( NULL AS SIGNED ) THEN 87 * + 65 + - 10 WHEN + 5 THEN NULL ELSE NULL END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6246
SELECT ALL 97 * + + CASE 84 WHEN 22 * ( 6 * - 71 ) - 76 * + CAST ( NULL AS INTEGER ) THEN 87 * + 65 + - 10 WHEN + 5 THEN NULL ELSE NULL END col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6247
SELECT + - 47 DIV + 77 + NULLIF ( 6, - COUNT( DISTINCT 4 ) * - 12 ) AS col1
----
6

skipif mysql # not compatible
query I rowsort label-6247
SELECT + - 47 / + 77 + NULLIF ( 6, - COUNT ( DISTINCT 4 ) * - 12 ) AS col1
----
6

query I rowsort
SELECT ALL + 66 * - 18 AS col0
----
-1188

query I rowsort
SELECT ALL - NULLIF ( 28, + 80 ) AS col2
----
-28

query I rowsort
SELECT - 86 * 71
----
-6106

query I rowsort
SELECT + 48 - + 77
----
-29

query II rowsort
SELECT + 12, - 78 AS col0
----
12
-78

query I rowsort
SELECT ALL + 85 * 31 * 46
----
121210

onlyif mysql # aggregate syntax: 
query I rowsort label-6254
SELECT - ( - - 5 ) * + - MIN( + 16 )
----
80

skipif mysql # not compatible
query I rowsort label-6254
SELECT - ( - - 5 ) * + - MIN ( + 16 )
----
80

query I rowsort
SELECT - 48 + 90
----
42

onlyif mysql # DIV for integer division: 
query I rowsort label-6256
SELECT DISTINCT + 3 DIV - ( + 53 )
----
0

skipif mysql # not compatible
query I rowsort label-6256
SELECT DISTINCT + 3 / - ( + 53 )
----
0

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6258
SELECT CAST( NULL AS SIGNED ) AS col0, 70
----
NULL
70

skipif mysql # not compatible
query II rowsort label-6258
SELECT CAST ( NULL AS INTEGER ) AS col0, 70
----
NULL
70

query I rowsort
SELECT ALL + 85 * - 61
----
-5185

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

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

query I rowsort
SELECT 58 * + - 89 - + 83
----
-5245

query I rowsort
SELECT DISTINCT + 67 * - - 30 * - - 92 AS col0
----
184920

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

skipif mysql # not compatible
query I rowsort label-6263
SELECT ALL + 27 / + - COUNT ( * ) + - 5 col2
----
-32

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6265
SELECT + SUM( ALL - CASE + 21 WHEN + 83 - 11 THEN 91 END ) * CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6265
SELECT + SUM ( ALL - CASE + 21 WHEN + 83 - 11 THEN 91 END ) * CAST ( NULL AS INTEGER ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6266
SELECT - 52 * - MAX( ALL - 14 )
----
-728

skipif mysql # not compatible
query I rowsort label-6266
SELECT - 52 * - MAX ( ALL - 14 )
----
-728

query I rowsort
SELECT + NULLIF ( ( + 81 ), - 68 ) AS col0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-6268
SELECT + COALESCE ( ( 4 ), 70 + - 54 ) * + COUNT( * ) AS col2
----
4

skipif mysql # not compatible
query I rowsort label-6268
SELECT + COALESCE ( ( 4 ), 70 + - 54 ) * + COUNT ( * ) AS col2
----
4

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6270
SELECT ALL - COUNT( * ) * - 77 + 7 + + ( + 0 )
----
84

skipif mysql # not compatible
query I rowsort label-6270
SELECT ALL - COUNT ( * ) * - 77 + 7 + + ( + 0 )
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-6271
SELECT DISTINCT + COUNT( * ) * - 69 + + SUM( ALL COALESCE ( - 75, 60 * 81 ) )
----
-144

skipif mysql # not compatible
query I rowsort label-6271
SELECT DISTINCT + COUNT ( * ) * - 69 + + SUM ( ALL COALESCE ( - 75, 60 * 81 ) )
----
-144

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

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

query I rowsort
SELECT - 22 * - 76 AS col1
----
1672

onlyif mysql # DIV for integer division: 
query I rowsort label-6274
SELECT ALL - 14 DIV + 87 + - 74 + 30 * 28 AS col0
----
766

skipif mysql # not compatible
query I rowsort label-6274
SELECT ALL - 14 / + 87 + - 74 + 30 * 28 AS col0
----
766

query I rowsort
SELECT ALL + ( + 68 ) * + 69 col1
----
4692

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6276
SELECT ALL + + 35 * - MIN( ALL + 81 ) + - MIN( - CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6276
SELECT ALL + + 35 * - MIN ( ALL + 81 ) + - MIN ( - CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

query I rowsort
SELECT + 41 * - 48
----
-1968

query I rowsort
SELECT - 98 + - 53 * - 70 + 46 * - 54
----
1128

query I rowsort
SELECT + 7 * - 65 + + 66
----
-389

query I rowsort
SELECT 68 + - - 93
----
161

query I rowsort
SELECT DISTINCT + - 93 - - 10
----
-83

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6282
SELECT ALL CAST( NULL AS SIGNED ), + 43 AS col2
----
NULL
43

skipif mysql # not compatible
query II rowsort label-6282
SELECT ALL CAST ( NULL AS INTEGER ), + 43 AS col2
----
NULL
43

onlyif mysql # aggregate syntax: 
query I rowsort label-6283
SELECT + 34 - 18 + - COUNT( 37 ) * 32
----
-16

skipif mysql # not compatible
query I rowsort label-6283
SELECT + 34 - 18 + - COUNT ( 37 ) * 32
----
-16

query II rowsort
SELECT ALL 42 AS col1, 60 AS col1
----
42
60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6285
SELECT DISTINCT + NULLIF ( + 53, CAST( NULL AS SIGNED ) + 77 * + CASE 12 - + 44 WHEN 26 THEN 42 END )
----
53

skipif mysql # not compatible
query I rowsort label-6285
SELECT DISTINCT + NULLIF ( + 53, CAST ( NULL AS INTEGER ) + 77 * + CASE 12 - + 44 WHEN 26 THEN 42 END )
----
53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6286
SELECT - CAST( NULL AS SIGNED ) + 37 + - ( - 58 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6286
SELECT - CAST ( NULL AS INTEGER ) + 37 + - ( - 58 ) AS col1
----
NULL

query II rowsort
SELECT ALL - 78 AS col0, - 38
----
-78
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-6288
SELECT 37 + - - COUNT( * ) + 76 + COUNT( ( - 29 ) ) AS col2
----
115

skipif mysql # not compatible
query I rowsort label-6288
SELECT 37 + - - COUNT ( * ) + 76 + COUNT ( ( - 29 ) ) AS col2
----
115

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6289
SELECT ALL COUNT( * ) DIV CAST( + MAX( - 75 ) AS SIGNED ) + + COUNT( * ) col2
----
1

skipif mysql # not compatible
query I rowsort label-6289
SELECT ALL COUNT ( * ) / CAST ( + MAX ( - 75 ) AS INTEGER ) + + COUNT ( * ) col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6290
SELECT - 14 + + - 59 + COUNT( * ) - 16 * 97 AS col2
----
-1624

skipif mysql # not compatible
query I rowsort label-6290
SELECT - 14 + + - 59 + COUNT ( * ) - 16 * 97 AS col2
----
-1624

onlyif mysql # aggregate syntax: 
query I rowsort label-6291
SELECT 17 + + + 16 + COUNT( * ) + 68 AS col0
----
102

skipif mysql # not compatible
query I rowsort label-6291
SELECT 17 + + + 16 + COUNT ( * ) + 68 AS col0
----
102

onlyif mysql # DIV for integer division: 
query I rowsort label-6292
SELECT 13 - + + 48 + 92 DIV - 69 + 68
----
32

skipif mysql # not compatible
query I rowsort label-6292
SELECT 13 - + + 48 + 92 / - 69 + 68
----
32

query I rowsort
SELECT DISTINCT 54 + 11
----
65

query I rowsort
SELECT DISTINCT 66 * - 59 AS col2
----
-3894

query I rowsort
SELECT ALL 24 * + 60 col2
----
1440

query I rowsort
SELECT 3 * + 45 AS col2
----
135

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6297
SELECT DISTINCT COUNT( ALL + 34 ) + + + 40 DIV + NULLIF ( COALESCE ( 63, 98 + + 50 * 8 ), 99 * + 63 - 13 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6297
SELECT DISTINCT COUNT ( ALL + 34 ) + + + 40 / + NULLIF ( COALESCE ( 63, 98 + + 50 * 8 ), 99 * + 63 - 13 ) AS col1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-6298
SELECT - 99 DIV 52 * + - 89 + - + 59
----
30

skipif mysql # not compatible
query I rowsort label-6298
SELECT - 99 / 52 * + - 89 + - + 59
----
30

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6300
SELECT ALL 53 + - COUNT( ALL + 63 ) + - ( 11 ) AS col1
----
41

skipif mysql # not compatible
query I rowsort label-6300
SELECT ALL 53 + - COUNT ( ALL + 63 ) + - ( 11 ) AS col1
----
41

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6302
SELECT CAST( NULL AS SIGNED ) * 98 * + NULLIF ( - 99, 59 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6302
SELECT CAST ( NULL AS INTEGER ) * 98 * + NULLIF ( - 99, 59 ) AS col1
----
NULL

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

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

query I rowsort
SELECT 27 * - 52 + - 94 AS col2
----
-1498

query I rowsort
SELECT 19 + - + 52 AS col2
----
-33

query I rowsort
SELECT ALL ( - 63 ) * 5 + + 21 + - 47 AS col1
----
-341

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6307
SELECT ALL - COUNT( ALL - 57 ), CAST( NULL AS SIGNED ) AS col2
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-6307
SELECT ALL - COUNT ( ALL - 57 ), CAST ( NULL AS INTEGER ) AS col2
----
-1
NULL

query I rowsort
SELECT 57 * 10 + 89 * - 76 + 2 AS col0
----
-6192

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6309
SELECT ALL - CASE - + 73 WHEN COALESCE ( + 63, + COUNT( * ), + CAST( - 6 AS SIGNED ) * + 76 ) / 80 THEN NULL WHEN + SUM( ALL 97 ) THEN + 64 ELSE NULL END * 9 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6309
SELECT ALL - CASE - + 73 WHEN COALESCE ( + 63, + COUNT ( * ), + CAST ( - 6 AS INTEGER ) * + 76 ) / 80 THEN NULL WHEN + SUM ( ALL 97 ) THEN + 64 ELSE NULL END * 9 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6310
SELECT + CASE - ( - + CASE - ( - 97 ) WHEN 27 * 27 THEN + ( - 65 ) END ) WHEN + 31 + - 48 THEN - 33 + 3 * 28 ELSE SUM( 19 ) END DIV + 6
----
3

skipif mysql # not compatible
query I rowsort label-6310
SELECT + CASE - ( - + CASE - ( - 97 ) WHEN 27 * 27 THEN + ( - 65 ) END ) WHEN + 31 + - 48 THEN - 33 + 3 * 28 ELSE SUM ( 19 ) END / + 6
----
3

query I rowsort
SELECT 3 * 89 * + + 6
----
1602

query I rowsort
SELECT COALESCE ( - 99, 29 - - 1 ) + - 24 col0
----
-123

onlyif mysql # DIV for integer division: 
query I rowsort label-6313
SELECT 21 DIV + ( 36 ) - + + ( - 3 ) col1
----
3

skipif mysql # not compatible
query I rowsort label-6313
SELECT 21 / + ( 36 ) - + + ( - 3 ) col1
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6314
SELECT DISTINCT - CAST( - 32 AS SIGNED ) AS col0
----
32

skipif mysql # not compatible
query I rowsort label-6314
SELECT DISTINCT - CAST ( - 32 AS INTEGER ) AS col0
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-6315
SELECT ALL 58 * COUNT( * ) + + 88
----
146

skipif mysql # not compatible
query I rowsort label-6315
SELECT ALL 58 * COUNT ( * ) + + 88
----
146

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

skipif mysql # not compatible
query I rowsort label-6316
SELECT ALL + NULLIF ( - 29, + COUNT ( * ) )
----
-29

query I rowsort
SELECT DISTINCT + 17 * + + 22 + 37 AS col1
----
411

query I rowsort
SELECT 52 * - 73 AS col2
----
-3796

onlyif mysql # aggregate syntax: 
query I rowsort label-6319
SELECT ALL + 84 * + COALESCE ( + CASE + + MAX( - 35 ) WHEN ( 54 ) * - 70 THEN 94 ELSE NULL END, + 27 * 44, COUNT( * ) * ( - COUNT( * ) ), - COALESCE ( + 90, - COUNT( * ) + 48 ) ) AS col0
----
99792

skipif mysql # not compatible
query I rowsort label-6319
SELECT ALL + 84 * + COALESCE ( + CASE + + MAX ( - 35 ) WHEN ( 54 ) * - 70 THEN 94 ELSE NULL END, + 27 * 44, COUNT ( * ) * ( - COUNT ( * ) ), - COALESCE ( + 90, - COUNT ( * ) + 48 ) ) AS col0
----
99792

query I rowsort
SELECT - ( 52 ) AS col1
----
-52

query I rowsort
SELECT + 82 + + 51
----
133

query I rowsort
SELECT ALL + 30 + - 19
----
11

query II rowsort
SELECT ALL 67 AS col1, - 68 col1
----
67
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-6324
SELECT DISTINCT COUNT( * ) + + 45 AS col0
----
46

skipif mysql # not compatible
query I rowsort label-6324
SELECT DISTINCT COUNT ( * ) + + 45 AS col0
----
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6325
SELECT - MAX( - CAST( + + ( - 20 ) AS SIGNED ) ) AS col1
----
-20

skipif mysql # not compatible
query I rowsort label-6325
SELECT - MAX ( - CAST ( + + ( - 20 ) AS INTEGER ) ) AS col1
----
-20

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6326
SELECT DISTINCT 12 DIV MIN( + + 6 )
----
2

skipif mysql # not compatible
query I rowsort label-6326
SELECT DISTINCT 12 / MIN ( + + 6 )
----
2

onlyif mysql # aggregate syntax: 
query II rowsort label-6327
SELECT 95 * - 27 - 22 AS col1, COUNT( * ) AS col0
----
-2587
1

skipif mysql # not compatible
query II rowsort label-6327
SELECT 95 * - 27 - 22 AS col1, COUNT ( * ) AS col0
----
-2587
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6328
SELECT ALL 47 * COALESCE ( + - 68, + COALESCE ( 47, 10 * COALESCE ( 27, - ( COUNT( * ) ) ) ) * ( 84 * CAST( NULL AS SIGNED ) + - 39 ) )
----
-3196

skipif mysql # not compatible
query I rowsort label-6328
SELECT ALL 47 * COALESCE ( + - 68, + COALESCE ( 47, 10 * COALESCE ( 27, - ( COUNT ( * ) ) ) ) * ( 84 * CAST ( NULL AS INTEGER ) + - 39 ) )
----
-3196

onlyif mysql # aggregate syntax: 
query I rowsort label-6329
SELECT MAX( 69 ) col1
----
69

skipif mysql # not compatible
query I rowsort label-6329
SELECT MAX ( 69 ) col1
----
69

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6332
SELECT ALL 11 * COUNT( * ) AS col2
----
11

skipif mysql # not compatible
query I rowsort label-6332
SELECT ALL 11 * COUNT ( * ) AS col2
----
11

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

skipif mysql # not compatible
query I rowsort label-6333
SELECT CAST ( NULL AS REAL ) * 60 * + COUNT ( * )
----
NULL

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6336
SELECT COUNT( * ) AS col0, CASE - - 33 WHEN - COUNT( * ) THEN + 71 * COUNT( * ) + 54 * 87 WHEN - 77 THEN NULL WHEN 18 + COALESCE ( + 55 + + 74, + 5 / 23 ) THEN + 38 - - 10 / - 45 ELSE NULL END + 75 AS col1
----
1
NULL

skipif mysql # not compatible
query II rowsort label-6336
SELECT COUNT ( * ) AS col0, CASE - - 33 WHEN - COUNT ( * ) THEN + 71 * COUNT ( * ) + 54 * 87 WHEN - 77 THEN NULL WHEN 18 + COALESCE ( + 55 + + 74, + 5 / 23 ) THEN + 38 - - 10 / - 45 ELSE NULL END + 75 AS col1
----
1
NULL

query I rowsort
SELECT + 46 * + + 4 AS col0
----
184

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6339
SELECT + + COALESCE ( + + 21, - + 61 * 90, - ( - 51 ) DIV 56 ) AS col2
----
21

skipif mysql # not compatible
query I rowsort label-6339
SELECT + + COALESCE ( + + 21, - + 61 * 90, - ( - 51 ) / 56 ) AS col2
----
21

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6340
SELECT ALL + + 97, CAST( NULL AS DECIMAL ) AS col2
----
97
NULL

skipif mysql # not compatible
query II rowsort label-6340
SELECT ALL + + 97, CAST ( NULL AS REAL ) AS col2
----
97
NULL

query I rowsort
SELECT ALL - + 67 * - + 23
----
1541

onlyif mysql # aggregate syntax: 
query I rowsort label-6342
SELECT - MAX( ALL + + COALESCE ( - + 97, + 1 + + 5 ) ) - - 70 AS col1
----
167

skipif mysql # not compatible
query I rowsort label-6342
SELECT - MAX ( ALL + + COALESCE ( - + 97, + 1 + + 5 ) ) - - 70 AS col1
----
167

onlyif mysql # aggregate syntax: 
query I rowsort label-6343
SELECT DISTINCT - 12 * + ( + - 73 ) * 31 * + + NULLIF ( + 57, + SUM( ( 2 ) ) ) AS col2
----
1547892

skipif mysql # not compatible
query I rowsort label-6343
SELECT DISTINCT - 12 * + ( + - 73 ) * 31 * + + NULLIF ( + 57, + SUM ( ( 2 ) ) ) AS col2
----
1547892

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6344
SELECT ALL - + SUM( ALL - CAST( NULL AS SIGNED ) ) + + - 80 + - + SUM( - 50 ) + 48 * - 50
----
NULL

skipif mysql # not compatible
query I rowsort label-6344
SELECT ALL - + SUM ( ALL - CAST ( NULL AS INTEGER ) ) + + - 80 + - + SUM ( - 50 ) + 48 * - 50
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6345
SELECT - + 85 * - - CAST( 3 AS SIGNED ) + + 58 DIV - - 89 * 46 AS col1
----
-255

skipif mysql # not compatible
query I rowsort label-6345
SELECT - + 85 * - - CAST ( 3 AS INTEGER ) + + 58 / - - 89 * 46 AS col1
----
-255

query I rowsort
SELECT ALL - ( + + 97 ) * - NULLIF ( + - 4, - ( ( 16 ) ) ) + + 3
----
-385

query I rowsort
SELECT - + 31 AS col2
----
-31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6348
SELECT + CASE 3 WHEN 24 * - 20 THEN NULL WHEN CAST( 20 AS SIGNED ) * 30 THEN 45 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6348
SELECT + CASE 3 WHEN 24 * - 20 THEN NULL WHEN CAST ( 20 AS INTEGER ) * 30 THEN 45 END AS col2
----
NULL

query I rowsort
SELECT 24 * + + 82 * - ( + 88 ) + - - 55 AS col0
----
-173129

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6350
SELECT - 52 - - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-6350
SELECT - 52 - - CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT ALL + - 13 + - 60 AS col0
----
-73

query I rowsort
SELECT - 10 + - - 33 AS col2
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-6353
SELECT ALL + CASE - COUNT( * ) WHEN - 78 / + + NULLIF ( + 45, + ( - 71 ) * - NULLIF ( + 81, 39 ) ) THEN NULL WHEN + 87 * COUNT( * ) + - 15 THEN 40 / 16 ELSE NULL END + + 84
----
NULL

skipif mysql # not compatible
query I rowsort label-6353
SELECT ALL + CASE - COUNT ( * ) WHEN - 78 / + + NULLIF ( + 45, + ( - 71 ) * - NULLIF ( + 81, 39 ) ) THEN NULL WHEN + 87 * COUNT ( * ) + - 15 THEN 40 / 16 ELSE NULL END + + 84
----
NULL

query I rowsort
SELECT - 19 * + - ( - - 55 )
----
1045

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6356
SELECT DISTINCT + - SUM( - ( - 27 ) ) + 99 * 3 * + 74
----
21951

skipif mysql # not compatible
query I rowsort label-6356
SELECT DISTINCT + - SUM ( - ( - 27 ) ) + 99 * 3 * + 74
----
21951

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

skipif mysql # not compatible
query I rowsort label-6357
SELECT ALL 7 * + + COUNT ( * ) * + + COUNT ( - 50 ) AS col2
----
7

query I rowsort
SELECT DISTINCT COALESCE ( 32, - 82, ( - + 88 ), + 66 ) AS col0
----
32

query I rowsort
SELECT - 48 + - + 27 * + - 56
----
1464

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6360
SELECT - 59 * + SUM( + + ( + - 49 ) ) * CAST( 91 AS SIGNED ) AS col2
----
263081

skipif mysql # not compatible
query I rowsort label-6360
SELECT - 59 * + SUM ( + + ( + - 49 ) ) * CAST ( 91 AS INTEGER ) AS col2
----
263081

query I rowsort
SELECT - 36 + - 61 * 14 + 31
----
-859

query I rowsort
SELECT - 12 + + 56
----
44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6363
SELECT + 18 + - NULLIF ( + - 11, + 34 * COUNT( * ) * + 34 * - CAST( NULL AS SIGNED ) - - 11 ) - + 8 * MAX( 11 * 77 )
----
-6747

skipif mysql # not compatible
query I rowsort label-6363
SELECT + 18 + - NULLIF ( + - 11, + 34 * COUNT ( * ) * + 34 * - CAST ( NULL AS INTEGER ) - - 11 ) - + 8 * MAX ( 11 * 77 )
----
-6747

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6365
SELECT ALL CAST( NULL AS SIGNED ) - 48 / 65 + 54 * - + 24 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6365
SELECT ALL CAST ( NULL AS INTEGER ) - 48 / 65 + 54 * - + 24 col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6366
SELECT ALL 93 DIV + 48, COUNT( * )
----
1
1

skipif mysql # not compatible
query II rowsort label-6366
SELECT ALL 93 / + 48, COUNT ( * )
----
1
1

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

skipif mysql # not compatible
query I rowsort label-6367
SELECT + NULLIF ( + + COUNT ( * ), - 61 ) col0
----
1

onlyif mysql # DIV for integer division: 
query II rowsort label-6368
SELECT ALL + 83 AS col0, - 97 DIV 85 AS col0
----
83
-1

skipif mysql # not compatible
query II rowsort label-6368
SELECT ALL + 83 AS col0, - 97 / 85 AS col0
----
83
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6369
SELECT + CASE 47 WHEN COUNT( * ) THEN NULL WHEN CASE 87 WHEN + + COALESCE ( 83, COUNT( * ) + - MAX( - 22 ) ) + + 20 THEN - 91 ELSE 82 * - ( + MAX( - 82 ) / + 41 ) END THEN 66 ELSE + 8 END AS col0
----
8

skipif mysql # not compatible
query I rowsort label-6369
SELECT + CASE 47 WHEN COUNT ( * ) THEN NULL WHEN CASE 87 WHEN + + COALESCE ( 83, COUNT ( * ) + - MAX ( - 22 ) ) + + 20 THEN - 91 ELSE 82 * - ( + MAX ( - 82 ) / + 41 ) END THEN 66 ELSE + 8 END AS col0
----
8

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6371
SELECT - 46 DIV + 55 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6371
SELECT - 46 / + 55 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6372
SELECT ALL + COALESCE ( + 63, + 64 * - 26, + + COUNT( * ) + - - ( - COUNT( * ) ) )
----
63

skipif mysql # not compatible
query I rowsort label-6372
SELECT ALL + COALESCE ( + 63, + 64 * - 26, + + COUNT ( * ) + - - ( - COUNT ( * ) ) )
----
63

query II rowsort
SELECT DISTINCT + 2, 56 AS col0
----
2
56

query I rowsort
SELECT ALL 34 * - 83 - 1 AS col2
----
-2823

onlyif mysql # aggregate syntax: 
query I rowsort label-6375
SELECT ALL + MIN( - 88 ) col2
----
-88

skipif mysql # not compatible
query I rowsort label-6375
SELECT ALL + MIN ( - 88 ) col2
----
-88

query I rowsort
SELECT ALL - 21 * - 54 - 2 + - + 0 + + + 40
----
1172

query I rowsort
SELECT + - 64 * + 46 * - 52 + + 13
----
153101

query I rowsort
SELECT - 57 * + 1 + 78
----
21

query I rowsort
SELECT - 37 + - - 49 + - 71 - + 96 + - + 7 * + 96
----
-827

onlyif mysql # aggregate syntax: 
query I rowsort label-6380
SELECT + 81 * + MAX( - 14 ) AS col0
----
-1134

skipif mysql # not compatible
query I rowsort label-6380
SELECT + 81 * + MAX ( - 14 ) AS col0
----
-1134

onlyif mysql # aggregate syntax: 
query I rowsort label-6381
SELECT - 50 + + 77 + + 10 * - + 15 * + 40 * - COUNT( * )
----
6027

skipif mysql # not compatible
query I rowsort label-6381
SELECT - 50 + + 77 + + 10 * - + 15 * + 40 * - COUNT ( * )
----
6027

query I rowsort
SELECT ALL 48 * 75 * + 51 * - 4 + 63 AS col2
----
-734337

onlyif mysql # aggregate syntax: 
query I rowsort label-6383
SELECT DISTINCT ( - - MAX( ALL 46 ) ) AS col1
----
46

skipif mysql # not compatible
query I rowsort label-6383
SELECT DISTINCT ( - - MAX ( ALL 46 ) ) AS col1
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-6384
SELECT ALL ( + ( 11 ) ) * 60 + NULLIF ( + COALESCE ( - 75, COUNT( * ) * - 25, + 89 * COUNT( * ) ), 87 ) + + COUNT( * )
----
586

skipif mysql # not compatible
query I rowsort label-6384
SELECT ALL ( + ( 11 ) ) * 60 + NULLIF ( + COALESCE ( - 75, COUNT ( * ) * - 25, + 89 * COUNT ( * ) ), 87 ) + + COUNT ( * )
----
586

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6385
SELECT DISTINCT - 34 * + 16 + 54 * + 44 + COUNT( + 61 ) * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6385
SELECT DISTINCT - 34 * + 16 + 54 * + 44 + COUNT ( + 61 ) * CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT + 20 * + - 39 + - - 72
----
-708

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

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

query I rowsort
SELECT ALL + ( 54 ) col1
----
54

query II rowsort
SELECT - - 91, + 51 col2
----
91
51

onlyif mysql # DIV for integer division: 
query I rowsort label-6390
SELECT ALL 68 * - + 8 - + 64 + - 97 DIV 35 AS col0
----
-610

skipif mysql # not compatible
query I rowsort label-6390
SELECT ALL 68 * - + 8 - + 64 + - 97 / 35 AS col0
----
-610

onlyif mysql # aggregate syntax: 
query I rowsort label-6391
SELECT + ( + 59 ) - + COUNT( * ) AS col0
----
58

skipif mysql # not compatible
query I rowsort label-6391
SELECT + ( + 59 ) - + COUNT ( * ) AS col0
----
58

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

query II rowsort
SELECT DISTINCT ( + 10 ), - 83 * - 30 * + NULLIF ( - 83, + 97 ) AS col2
----
10
-206670

query I rowsort
SELECT ALL COALESCE ( - 63, 2, + 71 )
----
-63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6395
SELECT DISTINCT + ( - + 94 ) DIV ( + 98 ) * + 68 DIV 25 + + + COUNT( * ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6395
SELECT DISTINCT + ( - + 94 ) / ( + 98 ) * + 68 / 25 + + + COUNT ( * ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6396
SELECT DISTINCT CASE + 43 WHEN - COUNT( * ) THEN - - 38 ELSE - - 37 END AS col0
----
37

skipif mysql # not compatible
query I rowsort label-6396
SELECT DISTINCT CASE + 43 WHEN - COUNT ( * ) THEN - - 38 ELSE - - 37 END AS col0
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-6397
SELECT DISTINCT ( - COALESCE ( + COUNT( * ), 47, COUNT( * ), - - 84 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-6397
SELECT DISTINCT ( - COALESCE ( + COUNT ( * ), 47, COUNT ( * ), - - 84 ) )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6398
SELECT - COUNT( * ) + - 45 + - 85 * 19 + - ( + - 22 )
----
-1639

skipif mysql # not compatible
query I rowsort label-6398
SELECT - COUNT ( * ) + - 45 + - 85 * 19 + - ( + - 22 )
----
-1639

query I rowsort
SELECT DISTINCT 11 * - - 4 AS col2
----
44

query I rowsort
SELECT - 70 * - 20 * + 25
----
35000

query I rowsort
SELECT DISTINCT - 5 * 70
----
-350

onlyif mysql # aggregate syntax: 
query I rowsort label-6402
SELECT 69 * COUNT( * ) + - 76 col0
----
-7

skipif mysql # not compatible
query I rowsort label-6402
SELECT 69 * COUNT ( * ) + - 76 col0
----
-7

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6404
SELECT + 66 DIV 9 * - 70 + - 76 * MAX( DISTINCT - + 67 ) DIV + + 41 + 43 + - 57 * + 51 col1
----
-3230

skipif mysql # not compatible
query I rowsort label-6404
SELECT + 66 / 9 * - 70 + - 76 * MAX ( DISTINCT - + 67 ) / + + 41 + 43 + - 57 * + 51 col1
----
-3230

onlyif mysql # DIV for integer division: 
query I rowsort label-6405
SELECT DISTINCT + 87 * - - 22 * + + 57 DIV 19
----
5742

skipif mysql # not compatible
query I rowsort label-6405
SELECT DISTINCT + 87 * - - 22 * + + 57 / 19
----
5742

query I rowsort
SELECT DISTINCT + - 34 + 71
----
37

query I rowsort
SELECT ALL - 23 + + 98
----
75

query I rowsort
SELECT 19 * - + 71 * + COALESCE ( - 72, - 2 ) col0
----
97128

query I rowsort
SELECT ALL - ( + ( + NULLIF ( + 60, + + 61 ) ) )
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-6410
SELECT DISTINCT - 90 + + SUM( + 67 ) + - + MAX( + 39 )
----
-62

skipif mysql # not compatible
query I rowsort label-6410
SELECT DISTINCT - 90 + + SUM ( + 67 ) + - + MAX ( + 39 )
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-6411
SELECT ALL + + NULLIF ( 64, COALESCE ( + 68, + - 42 ) ) + - 67 * - SUM( DISTINCT 9 ) + + 79
----
746

skipif mysql # not compatible
query I rowsort label-6411
SELECT ALL + + NULLIF ( 64, COALESCE ( + 68, + - 42 ) ) + - 67 * - SUM ( DISTINCT 9 ) + + 79
----
746

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6412
SELECT + - 88 * + 82 - 40 + + 59 + + - 34 + - 98 - - MAX( + 89 ) DIV - 47 AS col1
----
-7330

skipif mysql # not compatible
query I rowsort label-6412
SELECT + - 88 * + 82 - 40 + + 59 + + - 34 + - 98 - - MAX ( + 89 ) / - 47 AS col1
----
-7330

query I rowsort
SELECT ALL 82 + + 4
----
86

query I rowsort
SELECT DISTINCT 86 + + 32 col0
----
118

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6415
SELECT + CAST( ( + 9 ) AS SIGNED ) DIV - - 39 + 8 * + 64
----
512

skipif mysql # not compatible
query I rowsort label-6415
SELECT + CAST ( ( + 9 ) AS INTEGER ) / - - 39 + 8 * + 64
----
512

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6416
SELECT DISTINCT + COUNT( + 48 ) DIV NULLIF ( - - 71, - 99 DIV - + 89 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6416
SELECT DISTINCT + COUNT ( + 48 ) / NULLIF ( - - 71, - 99 / - + 89 ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6417
SELECT DISTINCT + + SUM( DISTINCT 92 ) + - 6 - 79 AS col0
----
7

skipif mysql # not compatible
query I rowsort label-6417
SELECT DISTINCT + + SUM ( DISTINCT 92 ) + - 6 - 79 AS col0
----
7

onlyif mysql # DIV for integer division: 
query I rowsort label-6418
SELECT + ( + 95 ) * + + 11 * - 77 + 13 + - 7 - + + 14 DIV 86 * - 60 col1
----
-80459

skipif mysql # not compatible
query I rowsort label-6418
SELECT + ( + 95 ) * + + 11 * - 77 + 13 + - 7 - + + 14 / 86 * - 60 col1
----
-80459

query I rowsort
SELECT DISTINCT + 14 - - 64 AS col0
----
78

query II rowsort
SELECT ALL 60 AS col0, - 90
----
60
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-6421
SELECT 38 - + 38 + SUM( DISTINCT + + 16 ) + 13 * - + COUNT( * ) + COUNT( * )
----
4

skipif mysql # not compatible
query I rowsort label-6421
SELECT 38 - + 38 + SUM ( DISTINCT + + 16 ) + 13 * - + COUNT ( * ) + COUNT ( * )
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-6422
SELECT 13 + - + COUNT( * ) - + 54 + COUNT( 92 ) * - 87 * + 48 * + - 59 * + 44 col2
----
10840854

skipif mysql # not compatible
query I rowsort label-6422
SELECT 13 + - + COUNT ( * ) - + 54 + COUNT ( 92 ) * - 87 * + 48 * + - 59 * + 44 col2
----
10840854

query I rowsort
SELECT ( NULLIF ( + 66, + 61 ) ) + 71 AS col0
----
137

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6424
SELECT ( - + 69 ) * - CAST( NULL AS DECIMAL ) / - 79 / 42 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6424
SELECT ( - + 69 ) * - CAST ( NULL AS REAL ) / - 79 / 42 AS col1
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6426
SELECT DISTINCT NULLIF ( COUNT( * ), - CAST( NULL AS SIGNED ) ) * + 84 * ( - - 52 ) AS col2
----
4368

skipif mysql # not compatible
query I rowsort label-6426
SELECT DISTINCT NULLIF ( COUNT ( * ), - CAST ( NULL AS INTEGER ) ) * + 84 * ( - - 52 ) AS col2
----
4368

query II rowsort
SELECT ALL 28 col0, + 29
----
28
29

query I rowsort
SELECT DISTINCT ( 36 ) * + 36 AS col0
----
1296

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

skipif mysql # not compatible
query I rowsort label-6429
SELECT 47 + + ( + CAST ( + + COUNT ( * ) AS INTEGER ) )
----
48

onlyif mysql # DIV for integer division: 
query II rowsort label-6430
SELECT ( - 80 ) DIV - 47 AS col2, - 61 AS col2
----
1
-61

skipif mysql # not compatible
query II rowsort label-6430
SELECT ( - 80 ) / - 47 AS col2, - 61 AS col2
----
1
-61

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6432
SELECT ALL 37 AS col0, + CASE 49 WHEN - - ( - - 24 ) THEN COUNT( * ) WHEN - - SUM( - 63 ) * + 30 THEN 12 ELSE - 94 + 20 END * 62 + - 82
----
37
-4670

skipif mysql # not compatible
query II rowsort label-6432
SELECT ALL 37 AS col0, + CASE 49 WHEN - - ( - - 24 ) THEN COUNT ( * ) WHEN - - SUM ( - 63 ) * + 30 THEN 12 ELSE - 94 + 20 END * 62 + - 82
----
37
-4670

onlyif mysql # aggregate syntax: 
query II rowsort label-6433
SELECT 17, + 16 * - COUNT( * ) AS col2
----
17
-16

skipif mysql # not compatible
query II rowsort label-6433
SELECT 17, + 16 * - COUNT ( * ) AS col2
----
17
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-6434
SELECT MIN( DISTINCT - + 63 ) * - + 82 AS col0
----
5166

skipif mysql # not compatible
query I rowsort label-6434
SELECT MIN ( DISTINCT - + 63 ) * - + 82 AS col0
----
5166

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6435
SELECT DISTINCT 54 AS col1, 85 / 68 * - 72 * + 98 * + 88 * - - CASE + 0 WHEN 8 + CAST( - 5 AS SIGNED ) THEN 85 END * - 61 AS col1
----
54
NULL

skipif mysql # not compatible
query II rowsort label-6435
SELECT DISTINCT 54 AS col1, 85 / 68 * - 72 * + 98 * + 88 * - - CASE + 0 WHEN 8 + CAST ( - 5 AS INTEGER ) THEN 85 END * - 61 AS col1
----
54
NULL

query I rowsort
SELECT - 56 - - 6 AS col2
----
-50

query I rowsort
SELECT DISTINCT - + 19 + - 35 + 6
----
-48

query I rowsort
SELECT + + 80 col1
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-6439
SELECT ALL - 92 + SUM( 85 ) * - - SUM( 60 )
----
5008

skipif mysql # not compatible
query I rowsort label-6439
SELECT ALL - 92 + SUM ( 85 ) * - - SUM ( 60 )
----
5008

query I rowsort
SELECT + 22 + - - 65 * - 55
----
-3553

onlyif mysql # aggregate syntax: 
query I rowsort label-6441
SELECT + 73 * 29 * - 18 - + + 89 + - COUNT( * ) AS col0
----
-38196

skipif mysql # not compatible
query I rowsort label-6441
SELECT + 73 * 29 * - 18 - + + 89 + - COUNT ( * ) AS col0
----
-38196

onlyif mysql # aggregate syntax: 
query I rowsort label-6442
SELECT + NULLIF ( + + 98, - 54 ) - + NULLIF ( 88, + COUNT( * ) )
----
10

skipif mysql # not compatible
query I rowsort label-6442
SELECT + NULLIF ( + + 98, - 54 ) - + NULLIF ( 88, + COUNT ( * ) )
----
10

query I rowsort
SELECT ALL + - 89 * + - 93
----
8277

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

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

skipif mysql # not compatible
query I rowsort label-6445
SELECT DISTINCT + COUNT ( * ) * + + 30 AS col1
----
30

query I rowsort
SELECT ALL - - 16 col2
----
16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6447
SELECT 83 + + 96 + - COUNT( ALL + - 85 ) + - COUNT( * ) + 82 + + 34 DIV 17 - 3 * 22 DIV 25 * + 97 col0
----
67

skipif mysql # not compatible
query I rowsort label-6447
SELECT 83 + + 96 + - COUNT ( ALL + - 85 ) + - COUNT ( * ) + 82 + + 34 / 17 - 3 * 22 / 25 * + 97 col0
----
67

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6449
SELECT DISTINCT - - NULLIF ( - 34, 24 * - - 92 - 58 - COALESCE ( - 55, + + ( + COUNT( * ) ) ) / COALESCE ( - 84, 28 / - 5 ) ) - - ( - 29 - - 43 * - 49 ) AS col0
----
-2170

skipif mysql # not compatible
query I rowsort label-6449
SELECT DISTINCT - - NULLIF ( - 34, 24 * - - 92 - 58 - COALESCE ( - 55, + + ( + COUNT ( * ) ) ) / COALESCE ( - 84, 28 / - 5 ) ) - - ( - 29 - - 43 * - 49 ) AS col0
----
-2170

query I rowsort
SELECT 21 * 19 AS col2
----
399

onlyif mysql # aggregate syntax: 
query I rowsort label-6451
SELECT + NULLIF ( COUNT( * ), + 86 + 13 ) col0
----
1

skipif mysql # not compatible
query I rowsort label-6451
SELECT + NULLIF ( COUNT ( * ), + 86 + 13 ) col0
----
1

query I rowsort
SELECT ALL + 24 * + + 15 AS col0
----
360

query I rowsort
SELECT DISTINCT 83 * + 75
----
6225

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6455
SELECT ALL - COALESCE ( + 95, MIN( DISTINCT 44 ) ) * - - 10 + - 19 * 48 + + 25
----
-1837

skipif mysql # not compatible
query I rowsort label-6455
SELECT ALL - COALESCE ( + 95, MIN ( DISTINCT 44 ) ) * - - 10 + - 19 * 48 + + 25
----
-1837

query I rowsort
SELECT ALL - 95 * - 34 * + - 45
----
-145350

query I rowsort
SELECT DISTINCT 47 * - 17 AS col2
----
-799

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6459
SELECT + 76 DIV + 55
----
1

skipif mysql # not compatible
query I rowsort label-6459
SELECT + 76 / + 55
----
1

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

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

query I rowsort
SELECT + 47 - - + 43 * 70 + - CASE 29 WHEN 40 - - 46 THEN - + 98 + + 67 WHEN + 83 * + 62 + 56 * 64 THEN NULL END + - 80
----
NULL

query I rowsort
SELECT DISTINCT 76 + - 81
----
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6463
SELECT ALL CAST( NULL AS SIGNED ) + - 2 * + 10 * CAST( + + 50 AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6463
SELECT ALL CAST ( NULL AS INTEGER ) + - 2 * + 10 * CAST ( + + 50 AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6464
SELECT + COUNT( * ) + 8 * - + 18
----
-143

skipif mysql # not compatible
query I rowsort label-6464
SELECT + COUNT ( * ) + 8 * - + 18
----
-143

query I rowsort
SELECT ALL - 96 + - 87
----
-183

onlyif mysql # aggregate syntax: 
query I rowsort label-6466
SELECT - - COALESCE ( - COUNT( * ), + 78, - ( 87 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-6466
SELECT - - COALESCE ( - COUNT ( * ), + 78, - ( 87 ) )
----
-1

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

query I rowsort
SELECT + - 57 * - - 4 col0
----
-228

onlyif mysql # aggregate syntax: 
query I rowsort label-6469
SELECT - COALESCE ( ( + 53 ), 63, 17 * 17 * - COUNT( * ) + - + 78 )
----
-53

skipif mysql # not compatible
query I rowsort label-6469
SELECT - COALESCE ( ( + 53 ), 63, 17 * 17 * - COUNT ( * ) + - + 78 )
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-6470
SELECT DISTINCT + 58 * + 49 - + MIN( ALL + 84 ) * + MAX( DISTINCT + 59 ) + + + 9 col2
----
-2105

skipif mysql # not compatible
query I rowsort label-6470
SELECT DISTINCT + 58 * + 49 - + MIN ( ALL + 84 ) * + MAX ( DISTINCT + 59 ) + + + 9 col2
----
-2105

onlyif mysql # aggregate syntax: 
query I rowsort label-6471
SELECT - 3 + + COUNT( * )
----
-2

skipif mysql # not compatible
query I rowsort label-6471
SELECT - 3 + + COUNT ( * )
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6472
SELECT ALL - 72 * - 56 - + 67 + + + 85 * 44, + 35 * + 7 - - CAST( COALESCE ( - ( + 37 ), - 41 / + ( - COUNT( * ) * 9 ) ) AS SIGNED ) * 84 col1
----
7705
-2863

skipif mysql # not compatible
query II rowsort label-6472
SELECT ALL - 72 * - 56 - + 67 + + + 85 * 44, + 35 * + 7 - - CAST ( COALESCE ( - ( + 37 ), - 41 / + ( - COUNT ( * ) * 9 ) ) AS INTEGER ) * 84 col1
----
7705
-2863

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6473
SELECT ALL - + ( + ( + 24 ) ) DIV + 69 + + MAX( + 85 )
----
85

skipif mysql # not compatible
query I rowsort label-6473
SELECT ALL - + ( + ( + 24 ) ) / + 69 + + MAX ( + 85 )
----
85

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6474
SELECT - + 74 DIV 80 - 70 * + COUNT( * ) AS col0, + 11 * - ( - 66 ) + - ( - 86 ) * 35
----
-70
3736

skipif mysql # not compatible
query II rowsort label-6474
SELECT - + 74 / 80 - 70 * + COUNT ( * ) AS col0, + 11 * - ( - 66 ) + - ( - 86 ) * 35
----
-70
3736

query I rowsort
SELECT DISTINCT + NULLIF ( ( + - 78 ), 31 )
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-6476
SELECT DISTINCT + NULLIF ( - - 77, - CASE - + 1 WHEN 89 THEN - 18 WHEN - 96 THEN ( + 3 ) / + COUNT( - 33 ) ELSE NULL END * 91 ) * + 12 - + 29 AS col0
----
895

skipif mysql # not compatible
query I rowsort label-6476
SELECT DISTINCT + NULLIF ( - - 77, - CASE - + 1 WHEN 89 THEN - 18 WHEN - 96 THEN ( + 3 ) / + COUNT ( - 33 ) ELSE NULL END * 91 ) * + 12 - + 29 AS col0
----
895

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6477
SELECT ALL 44 DIV 79 + MIN( DISTINCT 31 ) AS col1
----
31

skipif mysql # not compatible
query I rowsort label-6477
SELECT ALL 44 / 79 + MIN ( DISTINCT 31 ) AS col1
----
31

onlyif mysql # DIV for integer division: 
query I rowsort label-6478
SELECT ALL - - 49 DIV - ( 98 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6478
SELECT ALL - - 49 / - ( 98 ) AS col0
----
0

query I rowsort
SELECT + 41 * + - 68 - - 82 * + 85 AS col0
----
4182

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6482
SELECT + 53 * + ( ( - MIN( 63 ) ) ) - - - 59 * - + 48, - 63 AS col1
----
-507
-63

skipif mysql # not compatible
query II rowsort label-6482
SELECT + 53 * + ( ( - MIN ( 63 ) ) ) - - - 59 * - + 48, - 63 AS col1
----
-507
-63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6483
SELECT - NULLIF ( + 23, 1 * - 40 * + COUNT( * ) + + 38 + - + 38 * - 84 ) * - + COUNT( * ) + + 89 DIV - 77
----
22

skipif mysql # not compatible
query I rowsort label-6483
SELECT - NULLIF ( + 23, 1 * - 40 * + COUNT ( * ) + + 38 + - + 38 * - 84 ) * - + COUNT ( * ) + + 89 / - 77
----
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6484
SELECT - + 75 * + 22 * + NULLIF ( - CAST( NULL AS SIGNED ), + + 91 ) - - MAX( ALL + 33 ) / - + 71 * - + 72 + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-6484
SELECT - + 75 * + 22 * + NULLIF ( - CAST ( NULL AS INTEGER ), + + 91 ) - - MAX ( ALL + 33 ) / - + 71 * - + 72 + COUNT ( * )
----
NULL

query I rowsort
SELECT DISTINCT + + ( + + 50 ) col0
----
50

query II rowsort
SELECT DISTINCT + 90, 71 AS col2
----
90
71

onlyif mysql # aggregate syntax: 
query I rowsort label-6487
SELECT ALL + CASE - + NULLIF ( COUNT( * ), 65 ) WHEN + 92 * + 2 * + 63 - 41 THEN NULL WHEN - AVG ( 2 ) * 13 + - 55 THEN NULL ELSE + 65 END
----
65

skipif mysql # not compatible
query I rowsort label-6487
SELECT ALL + CASE - + NULLIF ( COUNT ( * ), 65 ) WHEN + 92 * + 2 * + 63 - 41 THEN NULL WHEN - AVG ( 2 ) * 13 + - 55 THEN NULL ELSE + 65 END
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-6488
SELECT DISTINCT - 26 * + MIN( 37 ) + - 84
----
-1046

skipif mysql # not compatible
query I rowsort label-6488
SELECT DISTINCT - 26 * + MIN ( 37 ) + - 84
----
-1046

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

skipif mysql # not compatible
query II rowsort label-6489
SELECT COUNT ( * ) AS col1, 69 AS col0
----
1
69

query I rowsort
SELECT + 35 * - 35 AS col1
----
-1225

onlyif mysql # aggregate syntax: 
query I rowsort label-6491
SELECT 37 * - + ( + 30 ) * + MAX( DISTINCT + - 81 ) + + 85 + + - ( - + 2 ) + - 9 AS col2
----
89988

skipif mysql # not compatible
query I rowsort label-6491
SELECT 37 * - + ( + 30 ) * + MAX ( DISTINCT + - 81 ) + + 85 + + - ( - + 2 ) + - 9 AS col2
----
89988

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6493
SELECT + ( 18 ) - - - 48 DIV - - 8 + 9 - - SUM( DISTINCT - - 51 ) * - - 7 * - 73 AS col2
----
-26040

skipif mysql # not compatible
query I rowsort label-6493
SELECT + ( 18 ) - - - 48 / - - 8 + 9 - - SUM ( DISTINCT - - 51 ) * - - 7 * - 73 AS col2
----
-26040

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6494
SELECT ALL CAST( - 79 AS SIGNED )
----
-79

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6495
SELECT DISTINCT 94 + CAST( - ( + 82 ) AS SIGNED ) * 65 AS col1
----
-5236

skipif mysql # not compatible
query I rowsort label-6495
SELECT DISTINCT 94 + CAST ( - ( + 82 ) AS INTEGER ) * 65 AS col1
----
-5236

query I rowsort
SELECT - 99 + 27 AS col1
----
-72

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

query I rowsort
SELECT DISTINCT 29 + - + 30 + - - CASE - + ( + + 77 ) WHEN + 66 THEN + 62 WHEN + 69 THEN + 84 ELSE NULL END + - 27 AS col0
----
NULL

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6502
SELECT DISTINCT - 47 + + - MAX( ALL + 55 ) AS col2, + 98 AS col2
----
-102
98

skipif mysql # not compatible
query II rowsort label-6502
SELECT DISTINCT - 47 + + - MAX ( ALL + 55 ) AS col2, + 98 AS col2
----
-102
98

query I rowsort
SELECT DISTINCT + 83 * 56
----
4648

query I rowsort
SELECT DISTINCT + 29 + 95
----
124

onlyif mysql # aggregate syntax: 
query II rowsort label-6505
SELECT 72, - CASE 80 WHEN 23 - + + COUNT( * ) + MAX( 9 ) * 34 THEN 42 END AS col1
----
72
NULL

skipif mysql # not compatible
query II rowsort label-6505
SELECT 72, - CASE 80 WHEN 23 - + + COUNT ( * ) + MAX ( 9 ) * 34 THEN 42 END AS col1
----
72
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6506
SELECT - + 86 * 89 * 61 + 25 + - + ( - 4 ) * + ( CASE SUM( - 30 ) WHEN CAST( NULL AS SIGNED ) * + 76 THEN NULL ELSE + 13 END ) - 24
----
-466841

skipif mysql # not compatible
query I rowsort label-6506
SELECT - + 86 * 89 * 61 + 25 + - + ( - 4 ) * + ( CASE SUM ( - 30 ) WHEN CAST ( NULL AS INTEGER ) * + 76 THEN NULL ELSE + 13 END ) - 24
----
-466841

onlyif mysql # aggregate syntax: 
query I rowsort label-6507
SELECT + COALESCE ( + 51, - COUNT( * ) * - - 40 * + 63 + ( + 73 ) + + 38 * + 35 ) + - ( - 93 ) AS col0
----
144

skipif mysql # not compatible
query I rowsort label-6507
SELECT + COALESCE ( + 51, - COUNT ( * ) * - - 40 * + 63 + ( + 73 ) + + 38 * + 35 ) + - ( - 93 ) AS col0
----
144

onlyif mysql # DIV for integer division: 
query I rowsort label-6508
SELECT + - 11 * - 27 + + 56 DIV 26
----
299

skipif mysql # not compatible
query I rowsort label-6508
SELECT + - 11 * - 27 + + 56 / 26
----
299

onlyif mysql # aggregate syntax: 
query I rowsort label-6509
SELECT + 78 * SUM( + 34 )
----
2652

skipif mysql # not compatible
query I rowsort label-6509
SELECT + 78 * SUM ( + 34 )
----
2652

onlyif mysql # aggregate syntax: 
query I rowsort label-6510
SELECT ALL NULLIF ( - 4, - 81 * 78 * + COALESCE ( - 51, 91 / 23, + SUM( - + 70 ) + 71 * - 39 ) + 83 ) col0
----
-4

skipif mysql # not compatible
query I rowsort label-6510
SELECT ALL NULLIF ( - 4, - 81 * 78 * + COALESCE ( - 51, 91 / 23, + SUM ( - + 70 ) + 71 * - 39 ) + 83 ) col0
----
-4

query I rowsort
SELECT ALL 75 - - 57 AS col0
----
132

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

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

query I rowsort
SELECT + + 29 + 98 col1
----
127

onlyif mysql # aggregate syntax: 
query I rowsort label-6514
SELECT + - COALESCE ( 61, + 6, + - 67 * MIN( - 96 ) + - 33 ) AS col1
----
-61

skipif mysql # not compatible
query I rowsort label-6514
SELECT + - COALESCE ( 61, + 6, + - 67 * MIN ( - 96 ) + - 33 ) AS col1
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-6515
SELECT DISTINCT 32 * + 32 * + COUNT( * ) - 99 - + 26 * COUNT( * ) AS col0
----
899

skipif mysql # not compatible
query I rowsort label-6515
SELECT DISTINCT 32 * + 32 * + COUNT ( * ) - 99 - + 26 * COUNT ( * ) AS col0
----
899

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6516
SELECT ALL - NULLIF ( 90, - 73 * + 93 + - 26 ) DIV + - COUNT( ALL 45 ) - 23 AS col0, MAX( DISTINCT + 96 )
----
67
96

skipif mysql # not compatible
query II rowsort label-6516
SELECT ALL - NULLIF ( 90, - 73 * + 93 + - 26 ) / + - COUNT ( ALL 45 ) - 23 AS col0, MAX ( DISTINCT + 96 )
----
67
96

onlyif mysql # aggregate syntax: 
query I rowsort label-6517
SELECT + + 79 * + COUNT( * ) col2
----
79

skipif mysql # not compatible
query I rowsort label-6517
SELECT + + 79 * + COUNT ( * ) col2
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-6518
SELECT - COUNT( * ) * + 76 + - 62 + + 78
----
-60

skipif mysql # not compatible
query I rowsort label-6518
SELECT - COUNT ( * ) * + 76 + - 62 + + 78
----
-60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6519
SELECT - 8 DIV 7 DIV 36 DIV 3 * COUNT( * ) + + + COUNT( ALL - - 75 ) * + 93 AS col2
----
93

skipif mysql # not compatible
query I rowsort label-6519
SELECT - 8 / 7 / 36 / 3 * COUNT ( * ) + + + COUNT ( ALL - - 75 ) * + 93 AS col2
----
93

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6520
SELECT ALL + - CASE + - ( + - 38 ) WHEN - COALESCE ( - - 24, - + 52 ) THEN + MIN( ALL 25 ) WHEN - 15 THEN + 35 ELSE COUNT( * ) + 45 DIV COUNT( * ) END col2
----
-46

skipif mysql # not compatible
query I rowsort label-6520
SELECT ALL + - CASE + - ( + - 38 ) WHEN - COALESCE ( - - 24, - + 52 ) THEN + MIN ( ALL 25 ) WHEN - 15 THEN + 35 ELSE COUNT ( * ) + 45 / COUNT ( * ) END col2
----
-46

query I rowsort
SELECT ALL 17 * 57 * + - 13
----
-12597

query I rowsort
SELECT ALL + NULLIF ( + 54, - 59 )
----
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6523
SELECT + + NULLIF ( + 70, + 17 ) + + + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6523
SELECT + + NULLIF ( + 70, + 17 ) + + + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT ALL + 32 * 41 col1
----
1312

onlyif mysql # aggregate syntax: 
query I rowsort label-6525
SELECT ALL - 77 + + MAX( - 44 ) * + - 54
----
2299

skipif mysql # not compatible
query I rowsort label-6525
SELECT ALL - 77 + + MAX ( - 44 ) * + - 54
----
2299

query I rowsort
SELECT ALL 65 + - 87 + + 91 + + - 71 AS col0
----
-2

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

query I rowsort
SELECT 57 + - + 83
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-6529
SELECT ( + COUNT( * ) ) * - + NULLIF ( + NULLIF ( + - COUNT( * ), + ( - - 19 ) * MAX( + - NULLIF ( - - 2, COALESCE ( 64, 17 ) ) ) ), 49 ) + + 30 AS col1
----
31

skipif mysql # not compatible
query I rowsort label-6529
SELECT ( + COUNT ( * ) ) * - + NULLIF ( + NULLIF ( + - COUNT ( * ), + ( - - 19 ) * MAX ( + - NULLIF ( - - 2, COALESCE ( 64, 17 ) ) ) ), 49 ) + + 30 AS col1
----
31

query II rowsort
SELECT + 70 AS col0, + 23
----
70
23

query I rowsort
SELECT ALL - 78 + + - 7 AS col2
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-6532
SELECT 38 * - COUNT( * ) AS col0
----
-38

skipif mysql # not compatible
query I rowsort label-6532
SELECT 38 * - COUNT ( * ) AS col0
----
-38

query I rowsort
SELECT 73 + - 62
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-6534
SELECT ALL - COALESCE ( + 51, MAX( - - 10 ), 81 ) AS col1
----
-51

skipif mysql # not compatible
query I rowsort label-6534
SELECT ALL - COALESCE ( + 51, MAX ( - - 10 ), 81 ) AS col1
----
-51

query I rowsort
SELECT DISTINCT - 60 + - + 23 + + 16 * - 85 * - 40 AS col1
----
54317

query I rowsort
SELECT ALL + 5 + + 6 * 40 + - - 76 AS col2
----
321

query I rowsort
SELECT ALL - 42 + ( + 5 )
----
-37

query II rowsort
SELECT 20, ( - + 41 ) * - - 95 * 83 + - 26 AS col1
----
20
-323311

query I rowsort
SELECT DISTINCT - 60 + - 96
----
-156

onlyif mysql # aggregate syntax: 
query I rowsort label-6540
SELECT ALL - 43 - + CASE ( - + 48 ) WHEN + 14 / + 52 * + 9 / - - COUNT( * ) THEN NULL WHEN - 28 / + COUNT( * ) + 99 * COALESCE ( + 78 + 0, + CASE + 77 WHEN 62 THEN NULL ELSE 15 END ) THEN - 31 END - - 87
----
NULL

skipif mysql # not compatible
query I rowsort label-6540
SELECT ALL - 43 - + CASE ( - + 48 ) WHEN + 14 / + 52 * + 9 / - - COUNT ( * ) THEN NULL WHEN - 28 / + COUNT ( * ) + 99 * COALESCE ( + 78 + 0, + CASE + 77 WHEN 62 THEN NULL ELSE 15 END ) THEN - 31 END - - 87
----
NULL

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

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

query III rowsort
SELECT 44 AS col0, - 4 AS col1, + 38 col0
----
44
-4
38

onlyif mysql # DIV for integer division: 
query II rowsort label-6543
SELECT 20, - 81 DIV 87 AS col0
----
20
0

skipif mysql # not compatible
query II rowsort label-6543
SELECT 20, - 81 / 87 AS col0
----
20
0

query I rowsort
SELECT 72 - - 93 AS col2
----
165

onlyif mysql # aggregate syntax: 
query I rowsort label-6545
SELECT SUM( - 68 ) * - - 16 AS col1
----
-1088

skipif mysql # not compatible
query I rowsort label-6545
SELECT SUM ( - 68 ) * - - 16 AS col1
----
-1088

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6546
SELECT + 2 * 32 * CAST( - ( - - 72 ) AS SIGNED ) + - + ( SUM( ALL + - 7 ) ) * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6546
SELECT + 2 * 32 * CAST ( - ( - - 72 ) AS INTEGER ) + - + ( SUM ( ALL + - 7 ) ) * + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT + 13 * + 49 AS col2
----
637

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6550
SELECT ALL + 80 * + + MAX( + + 7 ) * 82 + 90 * - 18 + 97 * + 95
----
53515

skipif mysql # not compatible
query I rowsort label-6550
SELECT ALL + 80 * + + MAX ( + + 7 ) * 82 + 90 * - 18 + 97 * + 95
----
53515

query I rowsort
SELECT 88 + + + 33
----
121

query I rowsort
SELECT DISTINCT + 52 * - + 34 * + 50 col1
----
-88400

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

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

query I rowsort
SELECT 81 * - 0 + - + 70 AS col1
----
-70

query II rowsort
SELECT 27 * - 58 col1, - COALESCE ( - + 61, 15 ) AS col1
----
-1566
61

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

skipif mysql # not compatible
query I rowsort label-6556
SELECT DISTINCT 53 / - + COUNT ( * ) AS col2
----
-53

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

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

query I rowsort
SELECT 6 * - 27 AS col1
----
-162

query I rowsort
SELECT ALL - 67 + - 19 col2
----
-86

query I rowsort
SELECT DISTINCT + 34 + - 61
----
-27

query I rowsort
SELECT 12 * - 91
----
-1092

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6563
SELECT COALESCE ( - 16, - 4 ) * - 81 - CAST( NULL AS SIGNED ) * + 60 * + 4 * + ( 63 ) * 6 + - 38 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6563
SELECT COALESCE ( - 16, - 4 ) * - 81 - CAST ( NULL AS INTEGER ) * + 60 * + 4 * + ( 63 ) * 6 + - 38 col1
----
NULL

query I rowsort
SELECT - 41 * - - 35 - + 32 * - 43
----
-59

query I rowsort
SELECT ALL 18 * + ( - COALESCE ( - - ( + ( + 26 ) ), - 28 ) ) * - 62 AS col2
----
29016

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6566
SELECT NULLIF ( AVG ( DISTINCT - + 15 ), + - 80 - + AVG ( 96 ) ) + + - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-6566
SELECT NULLIF ( AVG ( DISTINCT - + 15 ), + - 80 - + AVG ( 96 ) ) + + - CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT DISTINCT 53 + 72
----
125

query I rowsort
SELECT + ( 38 ) * + 29 + - + 7 - + - 39
----
1134

onlyif mysql # DIV for integer division: 
query I rowsort label-6569
SELECT DISTINCT + 1 DIV 75
----
0

skipif mysql # not compatible
query I rowsort label-6569
SELECT DISTINCT + 1 / 75
----
0

query II rowsort
SELECT DISTINCT 17 + + 48 AS col0, 45
----
65
45

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

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

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

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

query I rowsort
SELECT ( 52 ) * + - 6 AS col1
----
-312

query II rowsort
SELECT 88 * - 0 AS col1, 61
----
0
61

query I rowsort
SELECT DISTINCT 69 / + 53 / 62 / + CASE 84 WHEN 84 * - + ( - ( - 16 ) ) THEN - 41 END
----
NULL

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

skipif mysql # not compatible
query I rowsort label-6576
SELECT 11 * 86 + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL + 84 * - 54 AS col2
----
-4536

query I rowsort
SELECT 7 - - 14 col0
----
21

query II rowsort
SELECT 78 * + 80 AS col0, 64 + - 10 AS col0
----
6240
54

query I rowsort
SELECT ALL + - 47 - 9 * 26
----
-281

query I rowsort
SELECT + 0 * - 30 - - 41
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-6582
SELECT DISTINCT + + COUNT( + 74 ) * + MIN( ALL + 69 ) + 61
----
130

skipif mysql # not compatible
query I rowsort label-6582
SELECT DISTINCT + + COUNT ( + 74 ) * + MIN ( ALL + 69 ) + 61
----
130

onlyif mysql # DIV for integer division: 
query III rowsort label-6583
SELECT 72 + + 24 AS col0, - 35, - - 59 * - + 55 * - 18 + - 77 DIV + - 9 + + 14 + + 48 AS col2
----
96
-35
58480

skipif mysql # not compatible
query III rowsort label-6583
SELECT 72 + + 24 AS col0, - 35, - - 59 * - + 55 * - 18 + - 77 / + - 9 + + 14 + + 48 AS col2
----
96
-35
58480

query I rowsort
SELECT - 66 * - COALESCE ( + 26, + 42, + 93 + 57 )
----
1716

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

skipif mysql # not compatible
query I rowsort label-6585
SELECT - 40 + - CAST ( NULL AS INTEGER ) * - + 63
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6586
SELECT DISTINCT + CAST( - CAST( - 86 AS SIGNED ) AS SIGNED ) AS col1
----
86

skipif mysql # not compatible
query I rowsort label-6586
SELECT DISTINCT + CAST ( - CAST ( - 86 AS INTEGER ) AS INTEGER ) AS col1
----
86

query I rowsort
SELECT ALL CASE 21 WHEN + 17 * + 56 * + 86 * + - 41 THEN NULL WHEN 63 THEN - 80 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6588
SELECT CASE + 24 WHEN ( CASE + CASE + - COUNT( * ) WHEN - + 26 THEN - 73 + + - 8 ELSE NULL END WHEN 79 * + CAST( 73 AS SIGNED ) + 55 THEN NULL ELSE + COUNT( 17 ) END ) / 70 + - COUNT( * ) THEN NULL WHEN + ( ( 83 ) ) THEN NULL WHEN + ( COUNT( * ) ) THEN 55 END + COALESCE ( 4 + - 79 * 60, COUNT( * ) * + 80 - - NULLIF ( ( + 52 ) + + 38, ( COUNT( * ) ) * - 7 ) * 67 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6588
SELECT CASE + 24 WHEN ( CASE + CASE + - COUNT ( * ) WHEN - + 26 THEN - 73 + + - 8 ELSE NULL END WHEN 79 * + CAST ( 73 AS INTEGER ) + 55 THEN NULL ELSE + COUNT ( 17 ) END ) / 70 + - COUNT ( * ) THEN NULL WHEN + ( ( 83 ) ) THEN NULL WHEN + ( COUNT ( * ) ) THEN 55 END + COALESCE ( 4 + - 79 * 60, COUNT ( * ) * + 80 - - NULLIF ( ( + 52 ) + + 38, ( COUNT ( * ) ) * - 7 ) * 67 ) AS col0
----
NULL

query I rowsort
SELECT ALL - 66 + - 62 - - 78
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-6590
SELECT DISTINCT CASE + + 43 WHEN + - 27 THEN + - 1 WHEN - NULLIF ( - 57, 26 ) THEN - 74 ELSE + 80 * - COUNT( * ) END AS col2
----
-80

skipif mysql # not compatible
query I rowsort label-6590
SELECT DISTINCT CASE + + 43 WHEN + - 27 THEN + - 1 WHEN - NULLIF ( - 57, 26 ) THEN - 74 ELSE + 80 * - COUNT ( * ) END AS col2
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-6591
SELECT DISTINCT - - 0 + + 31 - - + COUNT( * ) * + 48 + + 81 AS col2
----
160

skipif mysql # not compatible
query I rowsort label-6591
SELECT DISTINCT - - 0 + + 31 - - + COUNT ( * ) * + 48 + + 81 AS col2
----
160

query I rowsort
SELECT ALL 82 + NULLIF ( + 93, + - COALESCE ( + 67, + 22 + 81, - + ( - 84 ) ) * 93 ) AS col2
----
175

onlyif mysql # aggregate syntax: 
query I rowsort label-6593
SELECT - 52 + - + 81 + + COUNT( * ) - + - 86 AS col0
----
-46

skipif mysql # not compatible
query I rowsort label-6593
SELECT - 52 + - + 81 + + COUNT ( * ) - + - 86 AS col0
----
-46

query I rowsort
SELECT ALL - + 50 + + 23 AS col2
----
-27

query I rowsort
SELECT ALL + - 88 * - 1 col1
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-6596
SELECT - - 25 + - 71 + + - 41 * + - COUNT( * ) * - - COUNT( * ) * COALESCE ( - 84, - 0 )
----
-3490

skipif mysql # not compatible
query I rowsort label-6596
SELECT - - 25 + - 71 + + - 41 * + - COUNT ( * ) * - - COUNT ( * ) * COALESCE ( - 84, - 0 )
----
-3490

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6598
SELECT + 87 DIV + + NULLIF ( + 65, + 70 DIV + 73 * 99 * 95 ) - 79
----
-78

skipif mysql # not compatible
query I rowsort label-6598
SELECT + 87 / + + NULLIF ( + 65, + 70 / + 73 * 99 * 95 ) - 79
----
-78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6599
SELECT CASE + - 12 WHEN + 83 + + + 96 THEN NULL WHEN + + 10 * + - ( - - 16 ) * 29 + 89 + - 73 * - NULLIF ( NULLIF ( 12, 6 ), CAST( + ( + 91 ) AS SIGNED ) * 76 ) * 60 + - 83 * - 19 + + COUNT( * ) THEN - ( + COUNT( * ) ) ELSE - 64 END
----
-64

skipif mysql # not compatible
query I rowsort label-6599
SELECT CASE + - 12 WHEN + 83 + + + 96 THEN NULL WHEN + + 10 * + - ( - - 16 ) * 29 + 89 + - 73 * - NULLIF ( NULLIF ( 12, 6 ), CAST ( + ( + 91 ) AS INTEGER ) * 76 ) * 60 + - 83 * - 19 + + COUNT ( * ) THEN - ( + COUNT ( * ) ) ELSE - 64 END
----
-64

query I rowsort
SELECT 78 * - 48 * + 4 + 58
----
-14918

onlyif mysql # aggregate syntax: 
query II rowsort label-6601
SELECT + MIN( + - ( - 41 ) ), - 20 AS col2
----
41
-20

skipif mysql # not compatible
query II rowsort label-6601
SELECT + MIN ( + - ( - 41 ) ), - 20 AS col2
----
41
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-6602
SELECT DISTINCT + ( - - ( + MIN( + 95 ) ) ) col0
----
95

skipif mysql # not compatible
query I rowsort label-6602
SELECT DISTINCT + ( - - ( + MIN ( + 95 ) ) ) col0
----
95

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

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

query I rowsort
SELECT DISTINCT 11 * + ( + 29 ) * + 56 - - - 63 AS col2
----
17801

onlyif mysql # aggregate syntax: 
query I rowsort label-6605
SELECT COUNT( ALL - 16 )
----
1

skipif mysql # not compatible
query I rowsort label-6605
SELECT COUNT ( ALL - 16 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6606
SELECT ALL 28 * - ( + COALESCE ( - 82, COUNT( * ) * - + 36 ) ) * 74 * - 59 + 3 + 68 AS col0
----
-10024265

skipif mysql # not compatible
query I rowsort label-6606
SELECT ALL 28 * - ( + COALESCE ( - 82, COUNT ( * ) * - + 36 ) ) * 74 * - 59 + 3 + 68 AS col0
----
-10024265

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6608
SELECT MIN( 78 ) AS col1
----
78

skipif mysql # not compatible
query I rowsort label-6608
SELECT MIN ( 78 ) AS col1
----
78

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

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

query I rowsort
SELECT DISTINCT + 25 * - 99
----
-2475

onlyif mysql # DIV for integer division: 
query I rowsort label-6611
SELECT + 4 DIV 50 * - 8 * - 24 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6611
SELECT + 4 / 50 * - 8 * - 24 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6612
SELECT ALL 10 * + COUNT( * ) * 36 * + 50
----
18000

skipif mysql # not compatible
query I rowsort label-6612
SELECT ALL 10 * + COUNT ( * ) * 36 * + 50
----
18000

query II rowsort
SELECT ALL 52, 75 AS col0
----
52
75

onlyif mysql # DIV for integer division: 
query I rowsort label-6614
SELECT + + 47 DIV 74 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6614
SELECT + + 47 / 74 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6615
SELECT + + 41 + CAST( - MIN( + - 54 ) AS SIGNED ) * 81
----
4415

skipif mysql # not compatible
query I rowsort label-6615
SELECT + + 41 + CAST ( - MIN ( + - 54 ) AS INTEGER ) * 81
----
4415

onlyif mysql # aggregate syntax: 
query I rowsort label-6616
SELECT - COALESCE ( + COUNT( * ), + 91, - 8 )
----
-1

skipif mysql # not compatible
query I rowsort label-6616
SELECT - COALESCE ( + COUNT ( * ), + 91, - 8 )
----
-1

query I rowsort
SELECT ALL + 3 + + 90
----
93

query I rowsort
SELECT + + 97 - - 47
----
144

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

skipif mysql # not compatible
query I rowsort label-6619
SELECT - ( MIN ( + + CAST ( + 33 AS INTEGER ) ) )
----
-33

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

skipif mysql # not compatible
query I rowsort label-6620
SELECT + 86 / - 94
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6621
SELECT + - ( 18 ) - + + 74 + - COUNT( + 40 )
----
-93

skipif mysql # not compatible
query I rowsort label-6621
SELECT + - ( 18 ) - + + 74 + - COUNT ( + 40 )
----
-93

query II rowsort
SELECT + ( - 43 ) * - ( + 71 ), 87 AS col1
----
3053
87

query I rowsort
SELECT ALL - 36 + + 74
----
38

query I rowsort
SELECT DISTINCT + 78 * - - 84 * - - 53 * - 94
----
-32642064

query II rowsort
SELECT ALL - 20 + 46 + + - 39, - 73 * - 86 AS col0
----
-13
6278

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6626
SELECT DISTINCT + 9 + - COUNT( * ) DIV - 33 AS col1, - 54 AS col0
----
9
-54

skipif mysql # not compatible
query II rowsort label-6626
SELECT DISTINCT + 9 + - COUNT ( * ) / - 33 AS col1, - 54 AS col0
----
9
-54

query I rowsort
SELECT DISTINCT - 34 + 9 AS col0
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-6628
SELECT DISTINCT + 29 + 58 + + + COUNT( * ) - - 45 AS col1
----
133

skipif mysql # not compatible
query I rowsort label-6628
SELECT DISTINCT + 29 + 58 + + + COUNT ( * ) - - 45 AS col1
----
133

query II rowsort
SELECT 64 col2, 53 * - 16 AS col1
----
64
-848

query I rowsort
SELECT DISTINCT - 28 + + - ( 94 ) * 57
----
-5386

onlyif mysql # DIV for integer division: 
query I rowsort label-6631
SELECT DISTINCT 33 DIV + 46 + - 35
----
-35

skipif mysql # not compatible
query I rowsort label-6631
SELECT DISTINCT 33 / + 46 + - 35
----
-35

query I rowsort
SELECT ALL - 19 * - 58 AS col1
----
1102

query II rowsort
SELECT DISTINCT - 1 * + 38, 48 AS col0
----
-38
48

query I rowsort
SELECT ALL + ( - 83 ) col2
----
-83

onlyif mysql # DIV for integer division: 
query I rowsort label-6635
SELECT ALL 76 DIV + + 79 - 89
----
-89

skipif mysql # not compatible
query I rowsort label-6635
SELECT ALL 76 / + + 79 - 89
----
-89

query I rowsort
SELECT ALL + NULLIF ( + + 0, 41 )
----
0

query II rowsort
SELECT DISTINCT - 1 * 71 AS col1, 86 AS col2
----
-71
86

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6638
SELECT + 94 * COALESCE ( 35, 71 + - 82 - - + 60, - + 43 ) * - - 89 - + + 74 - COUNT( * ) + - 27 DIV + - 70 - + 44 AS col1
----
292691

skipif mysql # not compatible
query I rowsort label-6638
SELECT + 94 * COALESCE ( 35, 71 + - 82 - - + 60, - + 43 ) * - - 89 - + + 74 - COUNT ( * ) + - 27 / + - 70 - + 44 AS col1
----
292691

onlyif mysql # aggregate syntax: 
query I rowsort label-6639
SELECT DISTINCT + ( MAX( - + 58 ) ) AS col0
----
-58

skipif mysql # not compatible
query I rowsort label-6639
SELECT DISTINCT + ( MAX ( - + 58 ) ) AS col0
----
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-6640
SELECT 47 DIV + 79 + - 87 - + + ( - ( - - 20 ) )
----
-67

skipif mysql # not compatible
query I rowsort label-6640
SELECT 47 / + 79 + - 87 - + + ( - ( - - 20 ) )
----
-67

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

skipif mysql # not compatible
query I rowsort label-6641
SELECT + COUNT ( * ) / + 11
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-6642
SELECT - ( COUNT( DISTINCT - 75 ) ) + + - 93, COUNT( * ) + + SUM( ALL - - 6 ) * + + 7 AS col0
----
-94
43

skipif mysql # not compatible
query II rowsort label-6642
SELECT - ( COUNT ( DISTINCT - 75 ) ) + + - 93, COUNT ( * ) + + SUM ( ALL - - 6 ) * + + 7 AS col0
----
-94
43

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

query I rowsort
SELECT - ( - + 21 ) * - 49 AS col1
----
-1029

query I rowsort
SELECT DISTINCT + 39 * + 85 AS col1
----
3315

query I rowsort
SELECT ( - - 17 )
----
17

query I rowsort
SELECT + 57 - + - 66 + - + 57 - 50 * 0 * + + 92 * + 58 * + - 93
----
66

query I rowsort
SELECT ALL + COALESCE ( + 86, + + 74 - 76, + + 72 ) AS col2
----
86

onlyif mysql # aggregate syntax: 
query II rowsort label-6649
SELECT - + 18 * - COUNT( * ) * 17 * 9, 79 AS col2
----
2754
79

skipif mysql # not compatible
query II rowsort label-6649
SELECT - + 18 * - COUNT ( * ) * 17 * 9, 79 AS col2
----
2754
79

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

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

query I rowsort
SELECT ALL 88 * + + 3 col0
----
264

onlyif mysql # DIV for integer division: 
query I rowsort label-6652
SELECT ALL - - 20 * 19 DIV 65 + - + 62 AS col1
----
-57

skipif mysql # not compatible
query I rowsort label-6652
SELECT ALL - - 20 * 19 / 65 + - + 62 AS col1
----
-57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6653
SELECT + + 43 * 1 + - 67 * COUNT( DISTINCT + + 80 ) DIV - - COUNT( * ) + + COUNT( - 58 ) * - 75 AS col2
----
-99

skipif mysql # not compatible
query I rowsort label-6653
SELECT + + 43 * 1 + - 67 * COUNT ( DISTINCT + + 80 ) / - - COUNT ( * ) + + COUNT ( - 58 ) * - 75 AS col2
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-6654
SELECT + SUM( - 34 ) + + 31 * - MAX( DISTINCT 34 ) AS col2
----
-1088

skipif mysql # not compatible
query I rowsort label-6654
SELECT + SUM ( - 34 ) + + 31 * - MAX ( DISTINCT 34 ) AS col2
----
-1088

query I rowsort
SELECT ALL + + 1 * - 40 + 13 + - - CASE - 66 WHEN - 37 THEN NULL WHEN - - 15 THEN + 33 END AS col2
----
NULL

query I rowsort
SELECT COALESCE ( - + 56, - + 21 * ( + 31 ) * + 63 * + ( + 43 ) ) AS col2
----
-56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6657
SELECT ALL - COUNT( * ) * - + CAST( NULL AS SIGNED ) * + 98 * - 79 * - - 33 + + - 22 + + 50 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6657
SELECT ALL - COUNT ( * ) * - + CAST ( NULL AS INTEGER ) * + 98 * - 79 * - - 33 + + - 22 + + 50 AS col2
----
NULL

query I rowsort
SELECT ALL 42 + - 35 + - - 8 * + - 66
----
-521

query II rowsort
SELECT + 11 + + + 71, + 85 AS col1
----
82
85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6660
SELECT + COALESCE ( - COUNT( * ), 22 * + 59 + + + COUNT( * ) + + + MIN( + + 49 ) + + 41 * - 94 + ( - 82 ) * - 32 + - + 59 - + - 55 DIV + MIN( 41 ), 70 * - 50, + COUNT( * ) ) DIV 79 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6660
SELECT + COALESCE ( - COUNT ( * ), 22 * + 59 + + + COUNT ( * ) + + + MIN ( + + 49 ) + + 41 * - 94 + ( - 82 ) * - 32 + - + 59 - + - 55 / + MIN ( 41 ), 70 * - 50, + COUNT ( * ) ) / 79 AS col2
----
0

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

skipif mysql # not compatible
query I rowsort label-6661
SELECT ALL 4 + + - 9 / + - COUNT ( * ) AS col0
----
13

query I rowsort
SELECT + 78 * 73 * + 59
----
335946

onlyif mysql # DIV for integer division: 
query I rowsort label-6663
SELECT ALL 17 DIV 31 * 75 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6663
SELECT ALL 17 / 31 * 75 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6664
SELECT - ( - + MIN( 0 ) ) + 64 * - 19 * 23 * NULLIF ( - COUNT( * ), + + ( AVG ( DISTINCT + 11 ) ) + - 11 )
----
27968

skipif mysql # not compatible
query I rowsort label-6664
SELECT - ( - + MIN ( 0 ) ) + 64 * - 19 * 23 * NULLIF ( - COUNT ( * ), + + ( AVG ( DISTINCT + 11 ) ) + - 11 )
----
27968

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6665
SELECT DISTINCT - 97 * - - CASE COUNT( * ) WHEN MAX( + 77 ) - - 47 THEN NULL WHEN + COUNT( * ) * - 98 - + 50 - - - 9 + + ( - - 5 ) * - - CAST( - 20 AS SIGNED ) THEN NULL ELSE CAST( 73 AS SIGNED ) END * - 61 AS col0
----
431941

skipif mysql # not compatible
query I rowsort label-6665
SELECT DISTINCT - 97 * - - CASE COUNT ( * ) WHEN MAX ( + 77 ) - - 47 THEN NULL WHEN + COUNT ( * ) * - 98 - + 50 - - - 9 + + ( - - 5 ) * - - CAST ( - 20 AS INTEGER ) THEN NULL ELSE CAST ( 73 AS INTEGER ) END * - 61 AS col0
----
431941

onlyif mysql # aggregate syntax: 
query I rowsort label-6666
SELECT - 70 * 70 - - COUNT( * )
----
-4899

skipif mysql # not compatible
query I rowsort label-6666
SELECT - 70 * 70 - - COUNT ( * )
----
-4899

query I rowsort
SELECT DISTINCT + 22 - COALESCE ( 57, + 16 ) AS col0
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-6668
SELECT ALL 44 * - + ( - COUNT( * ) ) + - + COUNT( ALL - 28 ) AS col2
----
43

skipif mysql # not compatible
query I rowsort label-6668
SELECT ALL 44 * - + ( - COUNT ( * ) ) + - + COUNT ( ALL - 28 ) AS col2
----
43

onlyif mysql # aggregate syntax: 
query II rowsort label-6669
SELECT - COALESCE ( + COUNT( 92 ), + 65 + - + 40 * + CASE - + 80 WHEN 56 THEN NULL WHEN - - 2 THEN + 74 ELSE + COUNT( * ) END ) + + + COUNT( * ), COUNT( * ) * - - 49 AS col0
----
0
49

skipif mysql # not compatible
query II rowsort label-6669
SELECT - COALESCE ( + COUNT ( 92 ), + 65 + - + 40 * + CASE - + 80 WHEN 56 THEN NULL WHEN - - 2 THEN + 74 ELSE + COUNT ( * ) END ) + + + COUNT ( * ), COUNT ( * ) * - - 49 AS col0
----
0
49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6670
SELECT ALL NULLIF ( 11, - ( 70 ) * - 10 DIV SUM( DISTINCT 23 ) * 65 - + 57 * - - 63 ) DIV + MAX( 93 ) col1
----
0

skipif mysql # not compatible
query I rowsort label-6670
SELECT ALL NULLIF ( 11, - ( 70 ) * - 10 / SUM ( DISTINCT 23 ) * 65 - + 57 * - - 63 ) / + MAX ( 93 ) col1
----
0

query I rowsort
SELECT DISTINCT 66 - 4 AS col1
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-6672
SELECT DISTINCT 0 - + COUNT( * ) + - 41 + 47 * + ( 54 ) AS col2
----
2496

skipif mysql # not compatible
query I rowsort label-6672
SELECT DISTINCT 0 - + COUNT ( * ) + - 41 + 47 * + ( 54 ) AS col2
----
2496

onlyif mysql # aggregate syntax: 
query II rowsort label-6673
SELECT ALL 62, - COUNT( * ) col0
----
62
-1

skipif mysql # not compatible
query II rowsort label-6673
SELECT ALL 62, - COUNT ( * ) col0
----
62
-1

query I rowsort
SELECT ALL 35 * 23
----
805

query I rowsort
SELECT 47 * 16 * + - 48 AS col1
----
-36096

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6676
SELECT COUNT( ALL - + 58 ) DIV + - MAX( + 56 ) * + 12 + + 3 + + - COUNT( * ) + - - 60 AS col2
----
62

skipif mysql # not compatible
query I rowsort label-6676
SELECT COUNT ( ALL - + 58 ) / + - MAX ( + 56 ) * + 12 + + 3 + + - COUNT ( * ) + - - 60 AS col2
----
62

query I rowsort
SELECT + 28 * 70 + - 55
----
1905

onlyif mysql # aggregate syntax: 
query I rowsort label-6678
SELECT 98 - CASE - 5 WHEN 17 THEN NULL WHEN + 89 THEN - + COUNT( * ) * 70 * - - COALESCE ( - 48, + - NULLIF ( - 20, 32 ) + + COALESCE ( - - 1, 37 - - 46 * + 47, - 36 / - 79 ) ) + + 88 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6678
SELECT 98 - CASE - 5 WHEN 17 THEN NULL WHEN + 89 THEN - + COUNT ( * ) * 70 * - - COALESCE ( - 48, + - NULLIF ( - 20, 32 ) + + COALESCE ( - - 1, 37 - - 46 * + 47, - 36 / - 79 ) ) + + 88 END AS col0
----
NULL

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

query I rowsort
SELECT DISTINCT - 70 * - 5 AS col2
----
350

query II rowsort
SELECT + 87 AS col2, 77
----
87
77

query I rowsort
SELECT 98 + - 16 AS col0
----
82

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6683
SELECT ALL - COUNT( - 39 ) DIV - ( 55 ) + + - 83
----
-83

skipif mysql # not compatible
query I rowsort label-6683
SELECT ALL - COUNT ( - 39 ) / - ( 55 ) + + - 83
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-6684
SELECT ALL - NULLIF ( 47, + NULLIF ( + - 4, - - CASE - 43 WHEN + 63 + ( - - 94 ) + + 47 * - NULLIF ( - 22, - COUNT( * ) * COALESCE ( 46, - 93 ) * NULLIF ( 12 * - 96 + 66, + COALESCE ( - 10, - 46 ) ) ) THEN NULL ELSE + 48 + - COUNT( * ) END ) * 40 )
----
-47

skipif mysql # not compatible
query I rowsort label-6684
SELECT ALL - NULLIF ( 47, + NULLIF ( + - 4, - - CASE - 43 WHEN + 63 + ( - - 94 ) + + 47 * - NULLIF ( - 22, - COUNT ( * ) * COALESCE ( 46, - 93 ) * NULLIF ( 12 * - 96 + 66, + COALESCE ( - 10, - 46 ) ) ) THEN NULL ELSE + 48 + - COUNT ( * ) END ) * 40 )
----
-47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6685
SELECT - SUM( DISTINCT - CAST( NULL AS SIGNED ) ) * + 75 * - + ( + 3 ) + 49 * COUNT( + + 32 ) + COUNT( * ) / + 83 / 25, 82 col0
----
NULL
82

skipif mysql # not compatible
query II rowsort label-6685
SELECT - SUM ( DISTINCT - CAST ( NULL AS INTEGER ) ) * + 75 * - + ( + 3 ) + 49 * COUNT ( + + 32 ) + COUNT ( * ) / + 83 / 25, 82 col0
----
NULL
82

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

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

skipif mysql # not compatible
query I rowsort label-6687
SELECT 81 / SUM ( DISTINCT - CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

query I rowsort
SELECT ALL + 53 + + 69 AS col2
----
122

onlyif mysql # aggregate syntax: 
query I rowsort label-6689
SELECT DISTINCT + 3 + - + 49 - CASE - - COUNT( * ) WHEN - 27 THEN - 92 - + 64 + - - 60 / - 70 WHEN - COUNT( * ) THEN + + COUNT( * ) + 64 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6689
SELECT DISTINCT + 3 + - + 49 - CASE - - COUNT ( * ) WHEN - 27 THEN - 92 - + 64 + - - 60 / - 70 WHEN - COUNT ( * ) THEN + + COUNT ( * ) + 64 END AS col2
----
NULL

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

skipif mysql # not compatible
query I rowsort label-6690
SELECT - 59 / + + 97
----
0

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6691
SELECT ALL + + ( - CAST( NULL AS SIGNED ) ) / - 13 / + CAST( 76 AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-6691
SELECT ALL + + ( - CAST ( NULL AS INTEGER ) ) / - 13 / + CAST ( 76 AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6692
SELECT + ( + COUNT( DISTINCT - - 32 ) ) AS col0, - 10 - - 26 + + 36 - 27 + 80 AS col0
----
1
105

skipif mysql # not compatible
query II rowsort label-6692
SELECT + ( + COUNT ( DISTINCT - - 32 ) ) AS col0, - 10 - - 26 + + 36 - 27 + 80 AS col0
----
1
105

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6693
SELECT 50 * - + NULLIF ( - 33, - CAST( NULL AS SIGNED ) ) + - ( + - 51 ) AS col0, COUNT( - 74 ) + + + 58 AS col2
----
1701
59

skipif mysql # not compatible
query II rowsort label-6693
SELECT 50 * - + NULLIF ( - 33, - CAST ( NULL AS INTEGER ) ) + - ( + - 51 ) AS col0, COUNT ( - 74 ) + + + 58 AS col2
----
1701
59

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

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

query I rowsort
SELECT DISTINCT + 42 + + 21
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-6696
SELECT ALL + 20 + 38 + + 97 * - NULLIF ( + MIN( DISTINCT + + NULLIF ( - 42, - 70 ) ), + 3 ) * 26 AS col2
----
105982

skipif mysql # not compatible
query I rowsort label-6696
SELECT ALL + 20 + 38 + + 97 * - NULLIF ( + MIN ( DISTINCT + + NULLIF ( - 42, - 70 ) ), + 3 ) * 26 AS col2
----
105982

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6698
SELECT ALL 6 * + 72 * - CAST( 42 AS SIGNED )
----
-18144

skipif mysql # not compatible
query I rowsort label-6698
SELECT ALL 6 * + 72 * - CAST ( 42 AS INTEGER )
----
-18144

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6699
SELECT 62 col1, 64 + - - 30 DIV - NULLIF ( + COALESCE ( 84, - 4 + + + COUNT( - 17 ), - + 58 ), 83 * - 92 )
----
62
64

skipif mysql # not compatible
query II rowsort label-6699
SELECT 62 col1, 64 + - - 30 / - NULLIF ( + COALESCE ( 84, - 4 + + + COUNT ( - 17 ), - + 58 ), 83 * - 92 )
----
62
64

query I rowsort
SELECT 27 + - 61 col1
----
-34

query II rowsort
SELECT ALL + 86, - 59 AS col2
----
86
-59

query II rowsort
SELECT - 40, 12 AS col0
----
-40
12

onlyif mysql # aggregate syntax: 
query I rowsort label-6703
SELECT DISTINCT NULLIF ( - COUNT( * ), COALESCE ( - + 75, - + COUNT( * ) ) / + 12 + SUM( DISTINCT 0 ) - - SUM( - 60 ) ) - - SUM( DISTINCT - 30 ) AS col1
----
-31

skipif mysql # not compatible
query I rowsort label-6703
SELECT DISTINCT NULLIF ( - COUNT ( * ), COALESCE ( - + 75, - + COUNT ( * ) ) / + 12 + SUM ( DISTINCT 0 ) - - SUM ( - 60 ) ) - - SUM ( DISTINCT - 30 ) AS col1
----
-31

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

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

query II rowsort
SELECT ALL 63, 45 AS col1
----
63
45

query II rowsort
SELECT - 64 AS col1, + 60 * + + 87 + - ( + 0 ) + 31 * - 57 AS col0
----
-64
3453

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6708
SELECT - 19 AS col1, 80 + - COUNT( * )
----
-19
79

skipif mysql # not compatible
query II rowsort label-6708
SELECT - 19 AS col1, 80 + - COUNT ( * )
----
-19
79

query I rowsort
SELECT 98 + - + 66 + 93 + + 44
----
169

query I rowsort
SELECT ALL 6 * - 68 * - 84 AS col0
----
34272

onlyif mysql # aggregate syntax: 
query I rowsort label-6711
SELECT CASE + - 33 WHEN + - 70 + - 37 + - 5 * COUNT( * ) * - 35 * + + 61 THEN - COUNT( * ) ELSE - 15 END * - - 28 * + 87
----
-36540

skipif mysql # not compatible
query I rowsort label-6711
SELECT CASE + - 33 WHEN + - 70 + - 37 + - 5 * COUNT ( * ) * - 35 * + + 61 THEN - COUNT ( * ) ELSE - 15 END * - - 28 * + 87
----
-36540

query I rowsort
SELECT ALL 82 * + 40
----
3280

query I rowsort
SELECT 82 * + 5
----
410

onlyif mysql # aggregate syntax: 
query I rowsort label-6714
SELECT ALL 99 * + - MAX( ALL + + 81 ) AS col0
----
-8019

skipif mysql # not compatible
query I rowsort label-6714
SELECT ALL 99 * + - MAX ( ALL + + 81 ) AS col0
----
-8019

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6716
SELECT ALL + 71 * + ( - 67 ) + MIN( - 54 ) AS col1
----
-4811

skipif mysql # not compatible
query I rowsort label-6716
SELECT ALL + 71 * + ( - 67 ) + MIN ( - 54 ) AS col1
----
-4811

onlyif mysql # aggregate syntax: 
query II rowsort label-6717
SELECT MAX( + 81 ) AS col1, 48 + + 26 + 91 * COUNT( * ) * - COUNT( + 31 ) col1
----
81
-17

skipif mysql # not compatible
query II rowsort label-6717
SELECT MAX ( + 81 ) AS col1, 48 + + 26 + 91 * COUNT ( * ) * - COUNT ( + 31 ) col1
----
81
-17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6718
SELECT ALL 46 * + CAST( + 34 AS SIGNED ) AS col0
----
1564

skipif mysql # not compatible
query I rowsort label-6718
SELECT ALL 46 * + CAST ( + 34 AS INTEGER ) AS col0
----
1564

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6719
SELECT DISTINCT 60 * - CASE + COALESCE ( + CASE + 28 WHEN 37 + - 88 THEN - CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) + - + 63 ELSE NULL END, CAST( - - CAST( - COUNT( * ) AS SIGNED ) AS SIGNED ), - 64 ) WHEN - - 8 THEN - 32 END * - 40 + 2
----
NULL

skipif mysql # not compatible
query I rowsort label-6719
SELECT DISTINCT 60 * - CASE + COALESCE ( + CASE + 28 WHEN 37 + - 88 THEN - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) + - + 63 ELSE NULL END, CAST ( - - CAST ( - COUNT ( * ) AS INTEGER ) AS INTEGER ), - 64 ) WHEN - - 8 THEN - 32 END * - 40 + 2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6720
SELECT MIN( DISTINCT - 66 )
----
-66

skipif mysql # not compatible
query I rowsort label-6720
SELECT MIN ( DISTINCT - 66 )
----
-66

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

skipif mysql # not compatible
query I rowsort label-6721
SELECT + COUNT ( - - CAST ( NULL AS INTEGER ) ) AS col1
----
0

query I rowsort
SELECT ALL - 93 * + 33 + - 96 AS col2
----
-3165

onlyif mysql # aggregate syntax: 
query I rowsort label-6723
SELECT MIN( ALL 49 ) AS col2
----
49

skipif mysql # not compatible
query I rowsort label-6723
SELECT MIN ( ALL 49 ) AS col2
----
49

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6725
SELECT + 44 + CASE 28 WHEN - - 42 * - COUNT( * ) THEN - 51 / - 50 + + CAST( NULL AS SIGNED ) WHEN - MAX( DISTINCT - + 56 ) * - - ( - + 8 ) * + COUNT( * ) + - COUNT( * ) * + MAX( - - 36 ) + - CASE 28 WHEN CAST( 85 AS SIGNED ) THEN COUNT( * ) + - 61 ELSE NULL END THEN AVG ( DISTINCT 55 ) ELSE NULL END + 29
----
NULL

skipif mysql # not compatible
query I rowsort label-6725
SELECT + 44 + CASE 28 WHEN - - 42 * - COUNT ( * ) THEN - 51 / - 50 + + CAST ( NULL AS INTEGER ) WHEN - MAX ( DISTINCT - + 56 ) * - - ( - + 8 ) * + COUNT ( * ) + - COUNT ( * ) * + MAX ( - - 36 ) + - CASE 28 WHEN CAST ( 85 AS INTEGER ) THEN COUNT ( * ) + - 61 ELSE NULL END THEN AVG ( DISTINCT 55 ) ELSE NULL END + 29
----
NULL

query I rowsort
SELECT ALL 17 * - 39 + 84 AS col1
----
-579

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6728
SELECT - 38 * + 84 + + COUNT( * ) + 49 * + + ( + 76 ), - 17 AS col2
----
533
-17

skipif mysql # not compatible
query II rowsort label-6728
SELECT - 38 * + 84 + + COUNT ( * ) + 49 * + + ( + 76 ), - 17 AS col2
----
533
-17

query I rowsort
SELECT ALL + - 35 * 94 * + - ( + 31 ) + NULLIF ( - 18, 50 + - - 49 )
----
101972

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6730
SELECT ALL - 49 + CAST( + 44 AS SIGNED ) * - 42 AS col0
----
-1897

skipif mysql # not compatible
query I rowsort label-6730
SELECT ALL - 49 + CAST ( + 44 AS INTEGER ) * - 42 AS col0
----
-1897

query I rowsort
SELECT + 33 * - ( - 63 )
----
2079

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6732
SELECT DISTINCT + 47 * SUM( CAST( - + 37 AS DECIMAL ) ) * + CASE + + 80 WHEN 91 + + 63 THEN + 68 * - - 28 + - 60 WHEN 31 * + - ( - - 86 ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6732
SELECT DISTINCT + 47 * SUM ( CAST ( - + 37 AS REAL ) ) * + CASE + + 80 WHEN 91 + + 63 THEN + 68 * - - 28 + - 60 WHEN 31 * + - ( - - 86 ) THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6733
SELECT + COUNT( * ) * 67 DIV + 56 + + + 48 * - 25
----
-1199

skipif mysql # not compatible
query I rowsort label-6733
SELECT + COUNT ( * ) * 67 / + 56 + + + 48 * - 25
----
-1199

query I rowsort
SELECT - CASE + 53 WHEN 91 THEN NULL WHEN + - 21 THEN - 89 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6735
SELECT - 45 * SUM( + + 54 ) * + - COUNT( * ) + - - CAST( - 35 AS SIGNED ) + - ( - - 93 ) * ( 89 ) - - 92 + + COALESCE ( - 20, - + 10, - COALESCE ( 96, + 63 DIV - COUNT( * ) ) ) + + ( ( + 85 ) - 88 )
----
-5813

skipif mysql # not compatible
query I rowsort label-6735
SELECT - 45 * SUM ( + + 54 ) * + - COUNT ( * ) + - - CAST ( - 35 AS INTEGER ) + - ( - - 93 ) * ( 89 ) - - 92 + + COALESCE ( - 20, - + 10, - COALESCE ( 96, + 63 / - COUNT ( * ) ) ) + + ( ( + 85 ) - 88 )
----
-5813

onlyif mysql # DIV for integer division: 
query I rowsort label-6736
SELECT - - 3 DIV + 17 * - 34 + + 55 AS col1
----
55

skipif mysql # not compatible
query I rowsort label-6736
SELECT - - 3 / + 17 * - 34 + + 55 AS col1
----
55

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6738
SELECT - - MAX( + ( 21 ) ) * - 21
----
-441

skipif mysql # not compatible
query I rowsort label-6738
SELECT - - MAX ( + ( 21 ) ) * - 21
----
-441

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6739
SELECT - + COALESCE ( + + 11, - NULLIF ( + - ( - CAST( - 50 AS SIGNED ) ), + 43 * - COUNT( * ) * + + ( + + 81 ) - + 64 + + CAST( - 55 AS SIGNED ) * + + 12 + COUNT( * ) ) ) + + ( - 68 )
----
-79

skipif mysql # not compatible
query I rowsort label-6739
SELECT - + COALESCE ( + + 11, - NULLIF ( + - ( - CAST ( - 50 AS INTEGER ) ), + 43 * - COUNT ( * ) * + + ( + + 81 ) - + 64 + + CAST ( - 55 AS INTEGER ) * + + 12 + COUNT ( * ) ) ) + + ( - 68 )
----
-79

onlyif mysql # DIV for integer division: 
query I rowsort label-6740
SELECT DISTINCT + 64 DIV - ( - 54 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6740
SELECT DISTINCT + 64 / - ( - 54 ) AS col0
----
1

query II rowsort
SELECT ALL + 87 AS col1, - 93
----
87
-93

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6743
SELECT ALL CASE 1 WHEN - 92 THEN + 68 * - 56 + + ( + CAST( - + 46 AS SIGNED ) ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6743
SELECT ALL CASE 1 WHEN - 92 THEN + 68 * - 56 + + ( + CAST ( - + 46 AS INTEGER ) ) END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6744
SELECT - COUNT( * ) + + - CAST( 7 AS SIGNED ) * - 69
----
482

skipif mysql # not compatible
query I rowsort label-6744
SELECT - COUNT ( * ) + + - CAST ( 7 AS INTEGER ) * - 69
----
482

query I rowsort
SELECT DISTINCT 47 * - 14
----
-658

query I rowsort
SELECT ALL - 52 + + + 83 AS col0
----
31

query I rowsort
SELECT ALL + 97 * - + 70 * 33
----
-224070

query I rowsort
SELECT - ( - 19 ) * NULLIF ( + 71, - + 58 ) * - 16 AS col1
----
-21584

onlyif mysql # aggregate syntax: 
query I rowsort label-6749
SELECT ALL COUNT( * ) + + 25 col2
----
26

skipif mysql # not compatible
query I rowsort label-6749
SELECT ALL COUNT ( * ) + + 25 col2
----
26

query I rowsort
SELECT DISTINCT + 80 * ( + 76 ) AS col0
----
6080

query I rowsort
SELECT ALL - 25 + + + 41 + 74 + - 50
----
40

query I rowsort
SELECT ALL ( + - 42 ) + 24 + - 56 + - 63 * 40 * - 76
----
191446

onlyif mysql # aggregate syntax: 
query I rowsort label-6753
SELECT + 58 + 61 + NULLIF ( - 43, 96 ) * 15 * 35 - + MIN( ALL + 93 ) + + + 41 * + 36
----
-21073

skipif mysql # not compatible
query I rowsort label-6753
SELECT + 58 + 61 + NULLIF ( - 43, 96 ) * 15 * 35 - + MIN ( ALL + 93 ) + + + 41 * + 36
----
-21073

onlyif mysql # aggregate syntax: 
query I rowsort label-6754
SELECT ALL MIN( DISTINCT + - 54 ) + 80 + - 67 * + + 68 + - 28
----
-4558

skipif mysql # not compatible
query I rowsort label-6754
SELECT ALL MIN ( DISTINCT + - 54 ) + 80 + - 67 * + + 68 + - 28
----
-4558

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6755
SELECT ALL - NULLIF ( + - 64, + MIN( ALL - 50 ) - 5 * 26 * + 94 + + + COUNT( * ) ) DIV 44 + 25 + COALESCE ( 5, 89 * 24 + - 2 - - 78 ) AS col2
----
31

skipif mysql # not compatible
query I rowsort label-6755
SELECT ALL - NULLIF ( + - 64, + MIN ( ALL - 50 ) - 5 * 26 * + 94 + + + COUNT ( * ) ) / 44 + 25 + COALESCE ( 5, 89 * 24 + - 2 - - 78 ) AS col2
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-6756
SELECT - COUNT( * ) + + 19 + + - ( - 6 ) + + 24 * + 1 AS col0
----
48

skipif mysql # not compatible
query I rowsort label-6756
SELECT - COUNT ( * ) + + 19 + + - ( - 6 ) + + 24 * + 1 AS col0
----
48

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6758
SELECT + 81 * + 37 + + 23 AS col1, COUNT( * ) * - + 13 AS col0
----
3020
-13

skipif mysql # not compatible
query II rowsort label-6758
SELECT + 81 * + 37 + + 23 AS col1, COUNT ( * ) * - + 13 AS col0
----
3020
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-6759
SELECT + COUNT( * ) + - COUNT( * ) * - + 86 + + + 55
----
142

skipif mysql # not compatible
query I rowsort label-6759
SELECT + COUNT ( * ) + - COUNT ( * ) * - + 86 + + + 55
----
142

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6761
SELECT DISTINCT 63 DIV - 11
----
-5

skipif mysql # not compatible
query I rowsort label-6761
SELECT DISTINCT 63 / - 11
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-6762
SELECT ALL + + COUNT( - 53 ) * + + 19 + - 31 + + 19 + + 84
----
91

skipif mysql # not compatible
query I rowsort label-6762
SELECT ALL + + COUNT ( - 53 ) * + + 19 + - 31 + + 19 + + 84
----
91

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6763
SELECT + ( + 22 ) + + COALESCE ( - COUNT( * ), - - 73 + + - 12 + ( + CASE + - CAST( NULL AS DECIMAL ) WHEN + 44 * + 72 * + 97 THEN + 47 END ) ) AS col1
----
21

skipif mysql # not compatible
query I rowsort label-6763
SELECT + ( + 22 ) + + COALESCE ( - COUNT ( * ), - - 73 + + - 12 + ( + CASE + - CAST ( NULL AS REAL ) WHEN + 44 * + 72 * + 97 THEN + 47 END ) ) AS col1
----
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6764
SELECT ALL + CAST( NULL AS SIGNED ) * - - 91 - + 78 * NULLIF ( + + 18, - + NULLIF ( ( + ( + 59 ) ), - - COALESCE ( - 72, - + 39 + - - 78 + - + CASE - 52 WHEN 69 * + + CAST( NULL AS SIGNED ) + ( 30 ) + + SUM( + NULLIF ( 20, 50 ) ) THEN 20 ELSE + CASE + AVG ( ALL 74 ) WHEN COALESCE ( - CAST( - 15 AS SIGNED ), - COUNT( * ) ) + 69 * 64 THEN NULL WHEN CAST( NULL AS SIGNED ) THEN CASE + 61 WHEN 85 THEN 47 END WHEN + COUNT( ALL ( 14 ) ) * 50 THEN NULL ELSE COUNT( * ) END / 21 END / 0 * 44 ) ) ) * 24 - 80
----
NULL

skipif mysql # not compatible
query I rowsort label-6764
SELECT ALL + CAST ( NULL AS INTEGER ) * - - 91 - + 78 * NULLIF ( + + 18, - + NULLIF ( ( + ( + 59 ) ), - - COALESCE ( - 72, - + 39 + - - 78 + - + CASE - 52 WHEN 69 * + + CAST ( NULL AS INTEGER ) + ( 30 ) + + SUM ( + NULLIF ( 20, 50 ) ) THEN 20 ELSE + CASE + AVG ( ALL 74 ) WHEN COALESCE ( - CAST ( - 15 AS INTEGER ), - COUNT ( * ) ) + 69 * 64 THEN NULL WHEN CAST ( NULL AS INTEGER ) THEN CASE + 61 WHEN 85 THEN 47 END WHEN + COUNT ( ALL ( 14 ) ) * 50 THEN NULL ELSE COUNT ( * ) END / 21 END / 0 * 44 ) ) ) * 24 - 80
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6765
SELECT + MIN( ALL + 35 ) AS col1, 34 - 56
----
35
-22

skipif mysql # not compatible
query II rowsort label-6765
SELECT + MIN ( ALL + 35 ) AS col1, 34 - 56
----
35
-22

query I rowsort
SELECT + - 12 * + 47
----
-564

query I rowsort
SELECT - - 7 * - - ( 89 )
----
623

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6768
SELECT ALL + MAX( ALL + 87 ) AS col2, 25 / + 64 / + 67 * + - SUM( - CAST( NULL AS SIGNED ) ) * - 36 + + 72 + - 74 * + 83 * + 57 AS col2
----
87
NULL

skipif mysql # not compatible
query II rowsort label-6768
SELECT ALL + MAX ( ALL + 87 ) AS col2, 25 / + 64 / + 67 * + - SUM ( - CAST ( NULL AS INTEGER ) ) * - 36 + + 72 + - 74 * + 83 * + 57 AS col2
----
87
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6769
SELECT + MIN( DISTINCT + 36 ) * + 31 col1
----
1116

skipif mysql # not compatible
query I rowsort label-6769
SELECT + MIN ( DISTINCT + 36 ) * + 31 col1
----
1116

query I rowsort
SELECT DISTINCT + + 76 * + 35 AS col1
----
2660

query II rowsort
SELECT DISTINCT + 18 * + 40 AS col1, 96 AS col0
----
720
96

onlyif mysql # aggregate syntax: 
query II rowsort label-6772
SELECT ALL + - COUNT( * ) * - 1 + - + 39, 17 AS col2
----
-38
17

skipif mysql # not compatible
query II rowsort label-6772
SELECT ALL + - COUNT ( * ) * - 1 + - + 39, 17 AS col2
----
-38
17

query I rowsort
SELECT - 21 * - 15
----
315

query I rowsort
SELECT ALL - 65 * + + 20
----
-1300

query I rowsort
SELECT ALL - 56 * + NULLIF ( - NULLIF ( + 11, - 82 ), - NULLIF ( 69, - 51 * 56 * - 88 + 30 ) * + 45 )
----
616

query II rowsort
SELECT + 36 * - 22 * - 74 AS col2, 46 AS col2
----
58608
46

onlyif mysql # aggregate syntax: 
query I rowsort label-6777
SELECT - SUM( ALL + 31 ) - 48
----
-79

skipif mysql # not compatible
query I rowsort label-6777
SELECT - SUM ( ALL + 31 ) - 48
----
-79

query I rowsort
SELECT ALL ( ( CASE + 12 WHEN - - 94 THEN 17 ELSE NULL END ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6779
SELECT DISTINCT - 38 + + + 80 - + MIN( 16 ) * 98
----
-1526

skipif mysql # not compatible
query I rowsort label-6779
SELECT DISTINCT - 38 + + + 80 - + MIN ( 16 ) * 98
----
-1526

onlyif mysql # aggregate syntax: 
query I rowsort label-6780
SELECT - 71 + - 3 - - SUM( DISTINCT - + ( - - 79 ) ) AS col0
----
-153

skipif mysql # not compatible
query I rowsort label-6780
SELECT - 71 + - 3 - - SUM ( DISTINCT - + ( - - 79 ) ) AS col0
----
-153

query I rowsort
SELECT DISTINCT 35 * 46 * + 5 AS col0
----
8050

query I rowsort
SELECT ALL - 20 + 28
----
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6783
SELECT DISTINCT - 11 / + 98 * + MAX( + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6783
SELECT DISTINCT - 11 / + 98 * + MAX ( + CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT DISTINCT - 39 + + 20
----
-19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6785
SELECT ALL - 21 + - CAST( NULL AS SIGNED ) * + SUM( - 68 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6785
SELECT ALL - 21 + - CAST ( NULL AS INTEGER ) * + SUM ( - 68 ) AS col2
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6787
SELECT - CAST( NULL AS SIGNED ) * 18 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6787
SELECT - CAST ( NULL AS INTEGER ) * 18 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6788
SELECT - NULLIF ( + MIN( - - ( + + 11 ) ), + ( + 3 ) ) AS col1
----
-11

skipif mysql # not compatible
query I rowsort label-6788
SELECT - NULLIF ( + MIN ( - - ( + + 11 ) ), + ( + 3 ) ) AS col1
----
-11

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

query II rowsort
SELECT 61 AS col2, - 13 + + 15
----
61
2

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6792
SELECT DISTINCT - SUM( + 3 ) + + - COUNT( * )
----
-4

skipif mysql # not compatible
query I rowsort label-6792
SELECT DISTINCT - SUM ( + 3 ) + + - COUNT ( * )
----
-4

query I rowsort
SELECT DISTINCT + 49 * + + 94
----
4606

query I rowsort
SELECT - 39 * + 40
----
-1560

onlyif mysql # aggregate syntax: 
query I rowsort label-6795
SELECT ALL - 13 * - + 82 * + 85 - COUNT( * )
----
90609

skipif mysql # not compatible
query I rowsort label-6795
SELECT ALL - 13 * - + 82 * + 85 - COUNT ( * )
----
90609

query II rowsort
SELECT DISTINCT - - 14 AS col0, 1 AS col0
----
14
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6797
SELECT - COUNT( DISTINCT - 10 ) * + 94 + - 44 * + 17 * - SUM( ALL + 99 ) AS col2
----
73958

skipif mysql # not compatible
query I rowsort label-6797
SELECT - COUNT ( DISTINCT - 10 ) * + 94 + - 44 * + 17 * - SUM ( ALL + 99 ) AS col2
----
73958

onlyif mysql # aggregate syntax: 
query I rowsort label-6798
SELECT ALL + 22 - + SUM( DISTINCT - 91 ) * + 42 AS col1
----
3844

skipif mysql # not compatible
query I rowsort label-6798
SELECT ALL + 22 - + SUM ( DISTINCT - 91 ) * + 42 AS col1
----
3844

onlyif mysql # aggregate syntax: 
query I rowsort label-6799
SELECT + COUNT( * ) * + - 64 + + ( + + 45 ) + - ( + - ( + COUNT( 40 ) ) )
----
-18

skipif mysql # not compatible
query I rowsort label-6799
SELECT + COUNT ( * ) * + - 64 + + ( + + 45 ) + - ( + - ( + COUNT ( 40 ) ) )
----
-18

onlyif mysql # aggregate syntax: 
query II rowsort label-6800
SELECT - 54 * - 45 * - 17 + - 16 + + 76 + + 71 + - COUNT( ALL 28 ) * + 50, + 76 AS col0
----
-41229
76

skipif mysql # not compatible
query II rowsort label-6800
SELECT - 54 * - 45 * - 17 + - 16 + + 76 + + 71 + - COUNT ( ALL 28 ) * + 50, + 76 AS col0
----
-41229
76

query I rowsort
SELECT 56 * - 84
----
-4704

query I rowsort
SELECT - 28 + + 26 * - - ( + 18 ) * 59 * - 35 - + 9 AS col0
----
-966457

onlyif mysql # aggregate syntax: 
query I rowsort label-6803
SELECT - 98 * + COALESCE ( + 35, - + COUNT( * ), + - COUNT( * ) - COUNT( * ) + + 90 ) * COUNT( DISTINCT 58 ) * - + ( COUNT( * ) ) * 40 * 20 + - 62 - + 47 + - 6 * - ( + COUNT( * ) )
----
2743897

skipif mysql # not compatible
query I rowsort label-6803
SELECT - 98 * + COALESCE ( + 35, - + COUNT ( * ), + - COUNT ( * ) - COUNT ( * ) + + 90 ) * COUNT ( DISTINCT 58 ) * - + ( COUNT ( * ) ) * 40 * 20 + - 62 - + 47 + - 6 * - ( + COUNT ( * ) )
----
2743897

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6804
SELECT ALL COUNT( ALL - - 86 ) * CASE - 98 WHEN + COALESCE ( 73, CAST( NULL AS SIGNED ) - - + 53 * + - COALESCE ( - 1, COUNT( * ) + - 73, + 87 + 42 * ( + - ( - 14 ) ) ) ) - SUM( ALL - 31 ) + - 38 * MAX( ALL ( 20 ) ) THEN + NULLIF ( + 25, 5 / - 42 ) * 31 - - COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-6804
SELECT ALL COUNT ( ALL - - 86 ) * CASE - 98 WHEN + COALESCE ( 73, CAST ( NULL AS INTEGER ) - - + 53 * + - COALESCE ( - 1, COUNT ( * ) + - 73, + 87 + 42 * ( + - ( - 14 ) ) ) ) - SUM ( ALL - 31 ) + - 38 * MAX ( ALL ( 20 ) ) THEN + NULLIF ( + 25, 5 / - 42 ) * 31 - - COUNT ( * ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6805
SELECT 4 + + + 13 * + + 42 - - 13 * - - COALESCE ( - + CASE + + 26 WHEN - 28 THEN NULL ELSE - - 82 END, + MIN( 47 ) ) * + 33 AS col2
----
-34628

skipif mysql # not compatible
query I rowsort label-6805
SELECT 4 + + + 13 * + + 42 - - 13 * - - COALESCE ( - + CASE + + 26 WHEN - 28 THEN NULL ELSE - - 82 END, + MIN ( 47 ) ) * + 33 AS col2
----
-34628

onlyif mysql # DIV for integer division: 
query I rowsort label-6806
SELECT 35 DIV + 53
----
0

skipif mysql # not compatible
query I rowsort label-6806
SELECT 35 / + 53
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6807
SELECT DISTINCT - 70 DIV - 76 * - 2
----
0

skipif mysql # not compatible
query I rowsort label-6807
SELECT DISTINCT - 70 / - 76 * - 2
----
0

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

skipif mysql # not compatible
query I rowsort label-6808
SELECT + + SUM ( + 52 )
----
52

query I rowsort
SELECT DISTINCT + 89 * - 25 AS col2
----
-2225

onlyif mysql # aggregate syntax: 
query I rowsort label-6810
SELECT 25 * - + MAX( + - 11 ) + ( + 9 ) AS col1
----
284

skipif mysql # not compatible
query I rowsort label-6810
SELECT 25 * - + MAX ( + - 11 ) + ( + 9 ) AS col1
----
284

onlyif mysql # aggregate syntax: 
query I rowsort label-6811
SELECT COUNT( DISTINCT 65 ) + + + 98 * - 82 + - 93 AS col1
----
-8128

skipif mysql # not compatible
query I rowsort label-6811
SELECT COUNT ( DISTINCT 65 ) + + + 98 * - 82 + - 93 AS col1
----
-8128

query I rowsort
SELECT 4 * + 6
----
24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6813
SELECT + 5 + - 85 - + 27 - + - CAST( NULL AS SIGNED ) * + 41 + 34 * + 25 - + 47 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6813
SELECT + 5 + - 85 - + 27 - + - CAST ( NULL AS INTEGER ) * + 41 + 34 * + 25 - + 47 col1
----
NULL

query II rowsort
SELECT ALL - 94 AS col1, + 0 * 17 + - 19 AS col1
----
-94
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-6815
SELECT ALL + 96 + 81 - + 97 - 40 - - + 27 * + - 37 * COUNT( + - 75 ) - + SUM( DISTINCT - - 1 ) AS col1
----
-960

skipif mysql # not compatible
query I rowsort label-6815
SELECT ALL + 96 + 81 - + 97 - 40 - - + 27 * + - 37 * COUNT ( + - 75 ) - + SUM ( DISTINCT - - 1 ) AS col1
----
-960

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6816
SELECT 66 + 76 + - + CAST( 77 AS SIGNED ) + - - 85 AS col1
----
150

skipif mysql # not compatible
query I rowsort label-6816
SELECT 66 + 76 + - + CAST ( 77 AS INTEGER ) + - - 85 AS col1
----
150

query I rowsort
SELECT 72 * + ( - 45 )
----
-3240

query I rowsort
SELECT ALL 94 + + 59 + 44 AS col2
----
197

onlyif mysql # aggregate syntax: 
query I rowsort label-6819
SELECT ALL - COUNT( * ) + + CASE 82 WHEN - 4 THEN + - 99 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6819
SELECT ALL - COUNT ( * ) + + CASE 82 WHEN - 4 THEN + - 99 END
----
NULL

query I rowsort
SELECT ALL - COALESCE ( + 74, 37 + - 97, + - 33 ) + - + COALESCE ( + 72, + 24 * + + ( - 88 ), + 46 ) col1
----
-146

query I rowsort
SELECT 98 * + 42 col0
----
4116

onlyif mysql # aggregate syntax: 
query II rowsort label-6822
SELECT DISTINCT 88 + + 84 col0, COUNT( * ) AS col0
----
172
1

skipif mysql # not compatible
query II rowsort label-6822
SELECT DISTINCT 88 + + 84 col0, COUNT ( * ) AS col0
----
172
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6823
SELECT 10 + - + COUNT( + + 16 )
----
9

skipif mysql # not compatible
query I rowsort label-6823
SELECT 10 + - + COUNT ( + + 16 )
----
9

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6824
SELECT CAST( + - ( + 25 ) AS SIGNED ) + + - 83 * + 57 AS col1, + 23 DIV 9
----
-4756
2

skipif mysql # not compatible
query II rowsort label-6824
SELECT CAST ( + - ( + 25 ) AS INTEGER ) + + - 83 * + 57 AS col1, + 23 / 9
----
-4756
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6825
SELECT COUNT( * ) * + CASE + 18 WHEN + SUM( 25 ) + + + 26 * + 31 + 11 + - 73 - - - COUNT( * ) * - MAX( - ( - - 8 ) ) THEN NULL ELSE COUNT( * ) * + CAST( NULL AS SIGNED ) - - 68 + 60 END * COALESCE ( - - 92, + 19 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6825
SELECT COUNT ( * ) * + CASE + 18 WHEN + SUM ( 25 ) + + + 26 * + 31 + 11 + - 73 - - - COUNT ( * ) * - MAX ( - ( - - 8 ) ) THEN NULL ELSE COUNT ( * ) * + CAST ( NULL AS INTEGER ) - - 68 + 60 END * COALESCE ( - - 92, + 19 )
----
NULL

query I rowsort
SELECT 36 * - - 94 * NULLIF ( - 73, - 86 ) AS col0
----
-247032

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6827
SELECT 7 + + CAST( NULL AS SIGNED ) * + - 46 + - + 12 + - + COUNT( * ) * - 93
----
NULL

skipif mysql # not compatible
query I rowsort label-6827
SELECT 7 + + CAST ( NULL AS INTEGER ) * + - 46 + - + 12 + - + COUNT ( * ) * - 93
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6828
SELECT 23 + - 92 DIV - - 97 col0
----
23

skipif mysql # not compatible
query I rowsort label-6828
SELECT 23 + - 92 / - - 97 col0
----
23

query I rowsort
SELECT 26 * - 26
----
-676

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6830
SELECT ALL - ( 24 ) / + 82 * - CAST( NULL AS SIGNED ) - 18 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6830
SELECT ALL - ( 24 ) / + 82 * - CAST ( NULL AS INTEGER ) - 18 AS col1
----
NULL

query II rowsort
SELECT 32 + - + 2 AS col0, + 10 * + 57 * + 54
----
30
30780

query I rowsort
SELECT + 46 + + 63
----
109

query I rowsort
SELECT 93 + - + 49 * - - 15 AS col2
----
-642

onlyif mysql # aggregate syntax: 
query I rowsort label-6834
SELECT + NULLIF ( - 50, + COUNT( * ) * 48 + 42 + - - CASE - 20 WHEN 48 * + 93 THEN + COUNT( * ) WHEN - COUNT( - 30 ) THEN NULLIF ( + 78, + 61 - - + NULLIF ( + 45, + COUNT( * ) ) ) + 14 END + 89 ) * 3
----
-150

skipif mysql # not compatible
query I rowsort label-6834
SELECT + NULLIF ( - 50, + COUNT ( * ) * 48 + 42 + - - CASE - 20 WHEN 48 * + 93 THEN + COUNT ( * ) WHEN - COUNT ( - 30 ) THEN NULLIF ( + 78, + 61 - - + NULLIF ( + 45, + COUNT ( * ) ) ) + 14 END + 89 ) * 3
----
-150

query I rowsort
SELECT 40 * - + 73 AS col1
----
-2920

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6836
SELECT DISTINCT - CAST( - - 29 AS SIGNED )
----
-29

skipif mysql # not compatible
query I rowsort label-6836
SELECT DISTINCT - CAST ( - - 29 AS INTEGER )
----
-29

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6837
SELECT DISTINCT - 68 * + 55, CAST( + 76 AS SIGNED ) * 90 AS col1
----
-3740
6840

skipif mysql # not compatible
query II rowsort label-6837
SELECT DISTINCT - 68 * + 55, CAST ( + 76 AS INTEGER ) * 90 AS col1
----
-3740
6840

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6839
SELECT COUNT( * ) * - SUM( DISTINCT + 2 ) AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-6839
SELECT COUNT ( * ) * - SUM ( DISTINCT + 2 ) AS col0
----
-2

query I rowsort
SELECT ALL - + 43 * + 48
----
-2064

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6842
SELECT DISTINCT - - COUNT( * ) + - 58
----
-57

skipif mysql # not compatible
query I rowsort label-6842
SELECT DISTINCT - - COUNT ( * ) + - 58
----
-57

query I rowsort
SELECT 21 * 63 AS col0
----
1323

onlyif mysql # aggregate syntax: 
query I rowsort label-6844
SELECT - COUNT( * ) + - - 66 + 78 AS col1
----
143

skipif mysql # not compatible
query I rowsort label-6844
SELECT - COUNT ( * ) + - - 66 + 78 AS col1
----
143

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

skipif mysql # not compatible
query I rowsort label-6845
SELECT + - MIN ( 38 )
----
-38

query I rowsort
SELECT DISTINCT 42 * + 56 AS col1
----
2352

query I rowsort
SELECT ALL + 38 + - + 28 + - 3 * + 90 AS col0
----
-260

onlyif mysql # aggregate syntax: 
query I rowsort label-6848
SELECT SUM( DISTINCT + 39 ) * - 81 AS col2
----
-3159

skipif mysql # not compatible
query I rowsort label-6848
SELECT SUM ( DISTINCT + 39 ) * - 81 AS col2
----
-3159

query I rowsort
SELECT ALL 35 + - 37
----
-2

query I rowsort
SELECT 91 - + ( + + COALESCE ( + 10, 13 + - 18 ) )
----
81

query I rowsort
SELECT - NULLIF ( 1, - - AVG ( ALL - 45 ) ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-6852
SELECT DISTINCT 75 col0, COALESCE ( + 62, + + MIN( DISTINCT - - 98 ) ) AS col2
----
75
62

skipif mysql # not compatible
query II rowsort label-6852
SELECT DISTINCT 75 col0, COALESCE ( + 62, + + MIN ( DISTINCT - - 98 ) ) AS col2
----
75
62

onlyif mysql # aggregate syntax: 
query I rowsort label-6853
SELECT COALESCE ( + 82, - 87 * + MIN( - + 30 ) * + 67 ) + - ( + 22 ) * + 33 col1
----
-644

skipif mysql # not compatible
query I rowsort label-6853
SELECT COALESCE ( + 82, - 87 * + MIN ( - + 30 ) * + 67 ) + - ( + 22 ) * + 33 col1
----
-644

query I rowsort
SELECT DISTINCT 46 * - 48 * + 63 AS col0
----
-139104

onlyif mysql # aggregate syntax: 
query II rowsort label-6855
SELECT - COUNT( * ), + MAX( - - 76 ) - - MIN( ALL ( 98 ) ) col2
----
-1
174

skipif mysql # not compatible
query II rowsort label-6855
SELECT - COUNT ( * ), + MAX ( - - 76 ) - - MIN ( ALL ( 98 ) ) col2
----
-1
174

query I rowsort
SELECT DISTINCT - 86 * 19
----
-1634

query I rowsort
SELECT - CASE + 57 WHEN 0 THEN NULL ELSE + 37 * - 32 END
----
1184

onlyif mysql # aggregate syntax: 
query I rowsort label-6858
SELECT - CASE - - 17 WHEN - 45 * 74 - 36 * 50 * + COUNT( * ) * + 40 THEN - SUM( ALL + + 36 ) WHEN - 34 * - + COUNT( * ) THEN - 8 WHEN - 29 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6858
SELECT - CASE - - 17 WHEN - 45 * 74 - 36 * 50 * + COUNT ( * ) * + 40 THEN - SUM ( ALL + + 36 ) WHEN - 34 * - + COUNT ( * ) THEN - 8 WHEN - 29 THEN NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6859
SELECT + 88 DIV + ( - ( - + 42 ) )
----
2

skipif mysql # not compatible
query I rowsort label-6859
SELECT + 88 / + ( - ( - + 42 ) )
----
2

query I rowsort
SELECT ALL + 30 * - 72
----
-2160

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6861
SELECT DISTINCT CASE - 53 WHEN - + COUNT( * ) THEN - + CASE 8 WHEN - 84 + - 91 THEN - 34 * CAST( NULL AS SIGNED ) END * - COUNT( * ) - - 16 - + 75 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6861
SELECT DISTINCT CASE - 53 WHEN - + COUNT ( * ) THEN - + CASE 8 WHEN - 84 + - 91 THEN - 34 * CAST ( NULL AS INTEGER ) END * - COUNT ( * ) - - 16 - + 75 ELSE NULL END
----
NULL

query II rowsort
SELECT ALL + 29 AS col2, - 55
----
29
-55

onlyif mysql # DIV for integer division: 
query I rowsort label-6863
SELECT - - 75 DIV - 62 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-6863
SELECT - - 75 / - 62 AS col2
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6864
SELECT DISTINCT + NULLIF ( + 61, + - 25 ) * 35 + 21 / - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6864
SELECT DISTINCT + NULLIF ( + 61, + - 25 ) * 35 + 21 / - + CAST ( NULL AS INTEGER )
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6866
SELECT - + 45 * + 7 + NULLIF ( - MAX( 62 ), + 3 ) + - - 56 + - + 94 * - 88
----
7951

skipif mysql # not compatible
query I rowsort label-6866
SELECT - + 45 * + 7 + NULLIF ( - MAX ( 62 ), + 3 ) + - - 56 + - + 94 * - 88
----
7951

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6867
SELECT - 60 * - 19 * CASE + NULLIF ( + - 10, + + NULLIF ( + ( - 52 ), + - 5 * - - 21 / - 56 * + - COUNT( * ) * - 1 * - 51 * + + COUNT( * ) / + COUNT( * ) ) / + COUNT( * ) ) WHEN - CAST( + + 62 AS SIGNED ) THEN - + CASE - 93 WHEN 44 THEN CASE 63 WHEN - 65 THEN NULL ELSE - COUNT( * ) END - - 52 WHEN 46 * 83 + 74 THEN + 71 END * 63 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6867
SELECT - 60 * - 19 * CASE + NULLIF ( + - 10, + + NULLIF ( + ( - 52 ), + - 5 * - - 21 / - 56 * + - COUNT ( * ) * - 1 * - 51 * + + COUNT ( * ) / + COUNT ( * ) ) / + COUNT ( * ) ) WHEN - CAST ( + + 62 AS INTEGER ) THEN - + CASE - 93 WHEN 44 THEN CASE 63 WHEN - 65 THEN NULL ELSE - COUNT ( * ) END - - 52 WHEN 46 * 83 + 74 THEN + 71 END * 63 ELSE NULL END
----
NULL

query I rowsort
SELECT ALL 15 * - 86 + - - 26 AS col1
----
-1264

query I rowsort
SELECT - + 48 + + 34
----
-14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6870
SELECT ALL NULLIF ( COUNT( * ), CAST( + 60 AS SIGNED ) ) * - 57 + - COUNT( * )
----
-58

skipif mysql # not compatible
query I rowsort label-6870
SELECT ALL NULLIF ( COUNT ( * ), CAST ( + 60 AS INTEGER ) ) * - 57 + - COUNT ( * )
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-6871
SELECT + + COALESCE ( + - ( + 44 ), - 23 + - COUNT( * ) - + 11 * 27 ) * - 53 + + 11 col2
----
2343

skipif mysql # not compatible
query I rowsort label-6871
SELECT + + COALESCE ( + - ( + 44 ), - 23 + - COUNT ( * ) - + 11 * 27 ) * - 53 + + 11 col2
----
2343

query II rowsort
SELECT ALL 36 * - - 3 + - 20, + 65 AS col0
----
88
65

query I rowsort
SELECT DISTINCT 54 * + 38 + 65
----
2117

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6874
SELECT ALL - 67 * 40 + + COALESCE ( - COUNT( * ), - 10 DIV + 63, + 60 ), 81 + - - COUNT( * ) AS col0
----
-2681
82

skipif mysql # not compatible
query II rowsort label-6874
SELECT ALL - 67 * 40 + + COALESCE ( - COUNT ( * ), - 10 / + 63, + 60 ), 81 + - - COUNT ( * ) AS col0
----
-2681
82

query I rowsort
SELECT ALL + 34 * 75 AS col2
----
2550

query I rowsort
SELECT - 18 + - 93
----
-111

onlyif mysql # aggregate syntax: 
query II rowsort label-6877
SELECT ALL + 52, + CASE + 63 WHEN + - 19 / COUNT( * ) - 11 THEN + 83 * 26 WHEN - - 6 THEN NULL ELSE - 49 END AS col2
----
52
-49

skipif mysql # not compatible
query II rowsort label-6877
SELECT ALL + 52, + CASE + 63 WHEN + - 19 / COUNT ( * ) - 11 THEN + 83 * 26 WHEN - - 6 THEN NULL ELSE - 49 END AS col2
----
52
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-6878
SELECT ALL - 90 * + + 14 - + MIN( ALL + COALESCE ( - 75, + + 66 + - 57 ) )
----
-1185

skipif mysql # not compatible
query I rowsort label-6878
SELECT ALL - 90 * + + 14 - + MIN ( ALL + COALESCE ( - 75, + + 66 + - 57 ) )
----
-1185

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6879
SELECT - ( + 38 ) * - CAST( + + 90 AS SIGNED ) - 51 col2
----
3369

skipif mysql # not compatible
query I rowsort label-6879
SELECT - ( + 38 ) * - CAST ( + + 90 AS INTEGER ) - 51 col2
----
3369

query I rowsort
SELECT + 11 * 90
----
990

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6882
SELECT ALL 22 AS col2, 16 DIV MIN( ALL + + 57 )
----
22
0

skipif mysql # not compatible
query II rowsort label-6882
SELECT ALL 22 AS col2, 16 / MIN ( ALL + + 57 )
----
22
0

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6884
SELECT ALL NULLIF ( 23, - CAST( + 1 AS SIGNED ) + - CASE + COALESCE ( 26, ( + CAST( 17 AS SIGNED ) ) * - COUNT( * ) * + - COUNT( * ) * - 76 ) WHEN - COUNT( * ) * 29 * 92 * - 66 THEN NULL ELSE + MAX( - 16 ) END ) AS col0, 66
----
23
66

skipif mysql # not compatible
query II rowsort label-6884
SELECT ALL NULLIF ( 23, - CAST ( + 1 AS INTEGER ) + - CASE + COALESCE ( 26, ( + CAST ( 17 AS INTEGER ) ) * - COUNT ( * ) * + - COUNT ( * ) * - 76 ) WHEN - COUNT ( * ) * 29 * 92 * - 66 THEN NULL ELSE + MAX ( - 16 ) END ) AS col0, 66
----
23
66

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

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

query I rowsort
SELECT - 75 * + 53 * 70 AS col0
----
-278250

query I rowsort
SELECT DISTINCT + ( - + 41 ) - - 50 AS col0
----
9

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

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

query I rowsort
SELECT ALL + 72 * + 45 AS col1
----
3240

query I rowsort
SELECT - 40 * 51
----
-2040

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

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

query I rowsort
SELECT - 16 * - - 60
----
-960

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6894
SELECT ALL COUNT( * ) * - 13 DIV - NULLIF ( 72, - COALESCE ( - 1, - - 88, + - 48 ) * ( COUNT( DISTINCT - 45 ) ) DIV - 54 )
----
0

skipif mysql # not compatible
query I rowsort label-6894
SELECT ALL COUNT ( * ) * - 13 / - NULLIF ( 72, - COALESCE ( - 1, - - 88, + - 48 ) * ( COUNT ( DISTINCT - 45 ) ) / - 54 )
----
0

query I rowsort
SELECT - 33 + - - 89 * + 39 + + NULLIF ( + 36, + 69 * - 81 )
----
3474

onlyif mysql # aggregate syntax: 
query I rowsort label-6896
SELECT - MAX( ALL - - 13 ) AS col0
----
-13

skipif mysql # not compatible
query I rowsort label-6896
SELECT - MAX ( ALL - - 13 ) AS col0
----
-13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6897
SELECT 85 col2, 98 * 82 + 76 * + CASE + ( - CAST( NULL AS SIGNED ) ) WHEN - + MAX( DISTINCT + - 95 ) THEN NULL WHEN + + 62 THEN - 64 * + ( + - 4 ) * + ( + CAST( NULL AS SIGNED ) ) END
----
85
NULL

skipif mysql # not compatible
query II rowsort label-6897
SELECT 85 col2, 98 * 82 + 76 * + CASE + ( - CAST ( NULL AS INTEGER ) ) WHEN - + MAX ( DISTINCT + - 95 ) THEN NULL WHEN + + 62 THEN - 64 * + ( + - 4 ) * + ( + CAST ( NULL AS INTEGER ) ) END
----
85
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6898
SELECT + - 79 + + COUNT( ALL + 30 )
----
-78

skipif mysql # not compatible
query I rowsort label-6898
SELECT + - 79 + + COUNT ( ALL + 30 )
----
-78

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6900
SELECT DISTINCT MAX( - - 78 ) AS col1
----
78

skipif mysql # not compatible
query I rowsort label-6900
SELECT DISTINCT MAX ( - - 78 ) AS col1
----
78

query I rowsort
SELECT ALL 48 + + 95 * - 9 AS col2
----
-807

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6902
SELECT + 17 + - 10 - + + CAST( + + 76 AS SIGNED ) * 25 AS col1
----
-1893

skipif mysql # not compatible
query I rowsort label-6902
SELECT + 17 + - 10 - + + CAST ( + + 76 AS INTEGER ) * 25 AS col1
----
-1893

query II rowsort
SELECT DISTINCT - 31 AS col2, + 22 AS col1
----
-31
22

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6905
SELECT + 31 + COUNT( * ) AS col2
----
32

skipif mysql # not compatible
query I rowsort label-6905
SELECT + 31 + COUNT ( * ) AS col2
----
32

onlyif mysql # aggregate syntax: 
query II rowsort label-6906
SELECT 38, + SUM( DISTINCT - 62 ) AS col0
----
38
-62

skipif mysql # not compatible
query II rowsort label-6906
SELECT 38, + SUM ( DISTINCT - 62 ) AS col0
----
38
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-6907
SELECT + - COUNT( * ) + - - 22 + - 69 + CASE + 3 WHEN 89 THEN - 31 * - + 19 WHEN 23 THEN NULL END + + + 61 * + 20 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6907
SELECT + - COUNT ( * ) + - - 22 + - 69 + CASE + 3 WHEN 89 THEN - 31 * - + 19 WHEN 23 THEN NULL END + + + 61 * + 20 AS col1
----
NULL

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

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

query I rowsort
SELECT + + 52 * - - 81 + + - 66 AS col2
----
4146

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6911
SELECT + - CASE + + COUNT( DISTINCT 74 ) WHEN + 12 THEN + + ( - COALESCE ( + + 26, MAX( - + 21 ) ) ) WHEN + + 95 THEN NULL ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6911
SELECT + - CASE + + COUNT ( DISTINCT 74 ) WHEN + 12 THEN + + ( - COALESCE ( + + 26, MAX ( - + 21 ) ) ) WHEN + + 95 THEN NULL ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6912
SELECT ALL + - SUM( DISTINCT - 41 ) AS col2
----
41

skipif mysql # not compatible
query I rowsort label-6912
SELECT ALL + - SUM ( DISTINCT - 41 ) AS col2
----
41

onlyif mysql # DIV for integer division: 
query I rowsort label-6913
SELECT + - 3 DIV + 74 + - 72
----
-72

skipif mysql # not compatible
query I rowsort label-6913
SELECT + - 3 / + 74 + - 72
----
-72

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6914
SELECT + 33 * + CAST( NULL AS SIGNED ) * + + CAST( + + COALESCE ( - 6, + 55 - + 20 ) AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-6914
SELECT + 33 * + CAST ( NULL AS INTEGER ) * + + CAST ( + + COALESCE ( - 6, + 55 - + 20 ) AS REAL )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6915
SELECT - 50 AS col0, + 72 * 56 + - 44 * + SUM( + CAST( 97 AS SIGNED ) ) AS col2
----
-50
-236

skipif mysql # not compatible
query II rowsort label-6915
SELECT - 50 AS col0, + 72 * 56 + - 44 * + SUM ( + CAST ( 97 AS INTEGER ) ) AS col2
----
-50
-236

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

skipif mysql # not compatible
query I rowsort label-6916
SELECT ALL + CAST ( NULL AS INTEGER ) / - 1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6917
SELECT - 60 DIV - MIN( ALL 88 ) * + 23 + - + 21 AS col0
----
-21

skipif mysql # not compatible
query I rowsort label-6917
SELECT - 60 / - MIN ( ALL 88 ) * + 23 + - + 21 AS col0
----
-21

query I rowsort
SELECT + 53 * + + 4
----
212

onlyif mysql # aggregate syntax: 
query I rowsort label-6919
SELECT + NULLIF ( + - ( - + COUNT( * ) ), - - 72 / - - 23 / - COUNT( * ) ) * + 26 AS col2
----
26

skipif mysql # not compatible
query I rowsort label-6919
SELECT + NULLIF ( + - ( - + COUNT ( * ) ), - - 72 / - - 23 / - COUNT ( * ) ) * + 26 AS col2
----
26

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

query I rowsort
SELECT DISTINCT + 85 * + 0
----
0

query I rowsort
SELECT 26 * - + 9 * - 38
----
8892

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

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

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

query I rowsort
SELECT DISTINCT + ( + 92 ) * 86 col2
----
7912

onlyif mysql # aggregate syntax: 
query I rowsort label-6926
SELECT MAX( 84 ) * - COUNT( DISTINCT - 43 )
----
-84

skipif mysql # not compatible
query I rowsort label-6926
SELECT MAX ( 84 ) * - COUNT ( DISTINCT - 43 )
----
-84

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6927
SELECT 22 * + COUNT( * ) DIV COUNT( 11 ) AS col1
----
22

skipif mysql # not compatible
query I rowsort label-6927
SELECT 22 * + COUNT ( * ) / COUNT ( 11 ) AS col1
----
22

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6928
SELECT 25 + 77 + + 45 * - COUNT( * ) DIV + 80 AS col0
----
102

skipif mysql # not compatible
query I rowsort label-6928
SELECT 25 + 77 + + 45 * - COUNT ( * ) / + 80 AS col0
----
102

onlyif mysql # DIV for integer division: 
query I rowsort label-6929
SELECT ALL + 41 DIV 28 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6929
SELECT ALL + 41 / 28 AS col2
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-6930
SELECT ALL + 3 + 71, COUNT( * ) AS col2
----
74
1

skipif mysql # not compatible
query II rowsort label-6930
SELECT ALL + 3 + 71, COUNT ( * ) AS col2
----
74
1

query II rowsort
SELECT DISTINCT + 81 * + - 11 AS col1, 85 + 62 + - ( - 30 ) + + 40 * 38
----
-891
1697

query I rowsort
SELECT ALL + 22 + 39
----
61

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6933
SELECT DISTINCT + CAST( - - 36 AS SIGNED ) AS col2, 70 + + 53 AS col2
----
36
123

skipif mysql # not compatible
query II rowsort label-6933
SELECT DISTINCT + CAST ( - - 36 AS INTEGER ) AS col2, 70 + + 53 AS col2
----
36
123

query I rowsort
SELECT + 15 * - 5
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-6935
SELECT 17 - + COUNT( * )
----
16

skipif mysql # not compatible
query I rowsort label-6935
SELECT 17 - + COUNT ( * )
----
16

query I rowsort
SELECT - COALESCE ( - 83, - - 61, - 17 )
----
83

onlyif mysql # aggregate syntax: 
query II rowsort label-6937
SELECT DISTINCT SUM( - 3 ), + 89 AS col1
----
-3
89

skipif mysql # not compatible
query II rowsort label-6937
SELECT DISTINCT SUM ( - 3 ), + 89 AS col1
----
-3
89

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6938
SELECT ALL - - 44 + + COUNT( * ) DIV 42 - + 65 * 57 AS col1
----
-3661

skipif mysql # not compatible
query I rowsort label-6938
SELECT ALL - - 44 + + COUNT ( * ) / 42 - + 65 * 57 AS col1
----
-3661

query I rowsort
SELECT ALL - 46 - + - 85 col1
----
39

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6940
SELECT + CAST( NULL AS SIGNED ) * - CAST( NULL AS DECIMAL ) * + - 1 + + 89 + - 8 * + 3
----
NULL

skipif mysql # not compatible
query I rowsort label-6940
SELECT + CAST ( NULL AS INTEGER ) * - CAST ( NULL AS REAL ) * + - 1 + + 89 + - 8 * + 3
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-6941
SELECT + 8 DIV 65 + + + COUNT( * ) + 34 * + 53 * + + NULLIF ( + MAX( DISTINCT 60 ), CAST( 57 AS DECIMAL ) ) AS col2
----
108121

skipif mysql # not compatible
query I rowsort label-6941
SELECT + 8 / 65 + + + COUNT ( * ) + 34 * + 53 * + + NULLIF ( + MAX ( DISTINCT 60 ), CAST ( 57 AS REAL ) ) AS col2
----
108121

query I rowsort
SELECT 1 + 5 * 48
----
241

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6943
SELECT - NULLIF ( + 32, + + 61 ) * + ( + + 88 ) + ( - ( + CASE + 62 WHEN 56 THEN NULL WHEN 55 THEN COALESCE ( + 14, - + ( + CAST( + ( + 52 ) AS SIGNED ) ) * - - 60 + - 32 ) WHEN - + 6 THEN NULL ELSE NULL END ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6943
SELECT - NULLIF ( + 32, + + 61 ) * + ( + + 88 ) + ( - ( + CASE + 62 WHEN 56 THEN NULL WHEN 55 THEN COALESCE ( + 14, - + ( + CAST ( + ( + 52 ) AS INTEGER ) ) * - - 60 + - 32 ) WHEN - + 6 THEN NULL ELSE NULL END ) ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT 23 * - 84 AS col2
----
-1932

onlyif mysql # DIV for integer division: 
query I rowsort label-6945
SELECT - 69 * ( + 35 ) DIV + NULLIF ( - + 91, - 52 ) + 24 AS col2
----
50

skipif mysql # not compatible
query I rowsort label-6945
SELECT - 69 * ( + 35 ) / + NULLIF ( - + 91, - 52 ) + 24 AS col2
----
50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6946
SELECT DISTINCT - MIN( ALL + + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6946
SELECT DISTINCT - MIN ( ALL + + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6947
SELECT ALL 10 DIV - 17 * - 64
----
0

skipif mysql # not compatible
query I rowsort label-6947
SELECT ALL 10 / - 17 * - 64
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-6948
SELECT + MAX( ALL + - ( 46 ) ) AS col0, - 59 + - NULLIF ( + - 4, 25 ) AS col2
----
-46
-55

skipif mysql # not compatible
query II rowsort label-6948
SELECT + MAX ( ALL + - ( 46 ) ) AS col0, - 59 + - NULLIF ( + - 4, 25 ) AS col2
----
-46
-55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6949
SELECT CAST( NULL AS SIGNED ) * - COALESCE ( - 0, - + 12 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6949
SELECT CAST ( NULL AS INTEGER ) * - COALESCE ( - 0, - + 12 )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6950
SELECT DISTINCT ( COUNT( * ) ) + 81 AS col0, + 30 + - ( - + COUNT( * ) ) AS col2
----
82
31

skipif mysql # not compatible
query II rowsort label-6950
SELECT DISTINCT ( COUNT ( * ) ) + 81 AS col0, + 30 + - ( - + COUNT ( * ) ) AS col2
----
82
31

query I rowsort
SELECT DISTINCT - 0 + - 53 * 84
----
-4452

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6952
SELECT ALL + 51 + + 88 DIV + MIN( - + 70 )
----
50

skipif mysql # not compatible
query I rowsort label-6952
SELECT ALL + 51 + + 88 / + MIN ( - + 70 )
----
50

query I rowsort
SELECT ALL + 93 + - + 11 AS col0
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-6954
SELECT - MIN( DISTINCT - 0 )
----
0

skipif mysql # not compatible
query I rowsort label-6954
SELECT - MIN ( DISTINCT - 0 )
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6955
SELECT DISTINCT - + 34 + + NULLIF ( - 60, - + 5 - + 77 + - 77 / + 41 ) + CASE - 41 WHEN + - 7 + + 7 * + 95 * + CAST( NULL AS DECIMAL ) THEN - + 91 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6955
SELECT DISTINCT - + 34 + + NULLIF ( - 60, - + 5 - + 77 + - 77 / + 41 ) + CASE - 41 WHEN + - 7 + + 7 * + 95 * + CAST ( NULL AS REAL ) THEN - + 91 END AS col1
----
NULL

query I rowsort
SELECT + 4 * - ( + 68 ) * 5 AS col2
----
-1360

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6957
SELECT ALL - + CAST( - 11 AS SIGNED ) + + 70 * 27
----
1901

skipif mysql # not compatible
query I rowsort label-6957
SELECT ALL - + CAST ( - 11 AS INTEGER ) + + 70 * 27
----
1901

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

skipif mysql # not compatible
query I rowsort label-6958
SELECT ALL + + COUNT ( * ) + + 1 AS col0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-6959
SELECT - CASE 9 WHEN COALESCE ( - + 92, - + 2 * + MIN( - + 6 ) + + COUNT( - 74 ), - SUM( 20 ) * + 3 + COUNT( * ) + - + 75 + + COUNT( * ) - - + COUNT( * ) ) + - SUM( NULLIF ( + - 55, - 19 ) ) + 83 / - 85 + + 9 * - 1 THEN + 76 + 18 * + 48 WHEN + 46 THEN + 46 - 30 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6959
SELECT - CASE 9 WHEN COALESCE ( - + 92, - + 2 * + MIN ( - + 6 ) + + COUNT ( - 74 ), - SUM ( 20 ) * + 3 + COUNT ( * ) + - + 75 + + COUNT ( * ) - - + COUNT ( * ) ) + - SUM ( NULLIF ( + - 55, - 19 ) ) + 83 / - 85 + + 9 * - 1 THEN + 76 + 18 * + 48 WHEN + 46 THEN + 46 - 30 ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT 50 + - 23 AS col1
----
27

query I rowsort
SELECT - ( 37 ) + 63
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-6962
SELECT ALL - - 92 + - - 30 - + ( + + 29 ) + + 50 / + - 49 * + SUM( DISTINCT - - 75 ) / - MIN( DISTINCT + CASE WHEN NOT - 44 NOT IN ( - 53 ) THEN NULL WHEN 81 BETWEEN - 80 AND - + 53 THEN 88 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-6962
SELECT ALL - - 92 + - - 30 - + ( + + 29 ) + + 50 / + - 49 * + SUM ( DISTINCT - - 75 ) / - MIN ( DISTINCT + CASE WHEN NOT - 44 NOT IN ( - 53 ) THEN NULL WHEN 81 BETWEEN - 80 AND - + 53 THEN 88 END )
----
NULL

query II rowsort
SELECT DISTINCT + COALESCE ( - + 39, 8 ) AS col0, + 80 col0
----
-39
80

query II rowsort
SELECT - - 52 col2, CASE 19 WHEN + 59 + + 33 * - 69 THEN - - 41 END + + 6 AS col0
----
52
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6965
SELECT CAST( + + ( + + 68 ) AS SIGNED ) * - 60 AS col0
----
-4080

skipif mysql # not compatible
query I rowsort label-6965
SELECT CAST ( + + ( + + 68 ) AS INTEGER ) * - 60 AS col0
----
-4080

query I rowsort
SELECT ALL - 14 * 23
----
-322

onlyif mysql # DIV for integer division: 
query I rowsort label-6967
SELECT 42 DIV - 76 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6967
SELECT 42 / - 76 AS col0
----
0

query I rowsort
SELECT 57 + + 39 - + + ( 7 ) - - + 31 AS col2
----
120

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6969
SELECT SUM( + 90 ) + + + CAST( CAST( NULL AS SIGNED ) AS SIGNED ) + - 95 - - 57 + CAST( MIN( + 2 ) AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6969
SELECT SUM ( + 90 ) + + + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) + - 95 - - 57 + CAST ( MIN ( + 2 ) AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT ALL ( 18 ) * + - 14
----
-252

query I rowsort
SELECT DISTINCT - 30 * - 75 AS col2
----
2250

onlyif mysql # aggregate syntax: 
query I rowsort label-6972
SELECT DISTINCT + NULLIF ( - COUNT( * ), - 60 + - 5 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-6972
SELECT DISTINCT + NULLIF ( - COUNT ( * ), - 60 + - 5 ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6973
SELECT CASE - 91 WHEN + COUNT( * ) + + - MIN( DISTINCT - + 44 ) * 87 - + - 75 THEN NULL WHEN - 3 THEN + 42 + 53 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6973
SELECT CASE - 91 WHEN + COUNT ( * ) + + - MIN ( DISTINCT - + 44 ) * 87 - + - 75 THEN NULL WHEN - 3 THEN + 42 + 53 END AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6974
SELECT CASE 2 WHEN - 46 * COUNT( * ) THEN + - 87 * - + 69 ELSE - - 47 DIV ( - ( - - COALESCE ( + + 69, 42 + 81, - 29 ) ) ) + 12 + 15 END AS col1
----
27

skipif mysql # not compatible
query I rowsort label-6974
SELECT CASE 2 WHEN - 46 * COUNT ( * ) THEN + - 87 * - + 69 ELSE - - 47 / ( - ( - - COALESCE ( + + 69, 42 + 81, - 29 ) ) ) + 12 + 15 END AS col1
----
27

onlyif mysql # DIV for integer division: 
query II rowsort label-6975
SELECT - 23 * 52, 6 DIV - - ( - COALESCE ( 10, 48 ) ) col0
----
-1196
0

skipif mysql # not compatible
query II rowsort label-6975
SELECT - 23 * 52, 6 / - - ( - COALESCE ( 10, 48 ) ) col0
----
-1196
0

query I rowsort
SELECT + 46 * 76 * + 78
----
272688

query I rowsort
SELECT DISTINCT 70 * + + ( 65 ) * + + 56 AS col1
----
254800

onlyif mysql # aggregate syntax: 
query I rowsort label-6978
SELECT + 81 * - 72 * - COUNT( * ) AS col2
----
5832

skipif mysql # not compatible
query I rowsort label-6978
SELECT + 81 * - 72 * - COUNT ( * ) AS col2
----
5832

query I rowsort
SELECT + 93 - 17 AS col0
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-6980
SELECT MAX( DISTINCT - - 8 )
----
8

skipif mysql # not compatible
query I rowsort label-6980
SELECT MAX ( DISTINCT - - 8 )
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-6981
SELECT ALL COUNT( * ) * 0 col2
----
0

skipif mysql # not compatible
query I rowsort label-6981
SELECT ALL COUNT ( * ) * 0 col2
----
0

query I rowsort
SELECT + 10 * 89
----
890

onlyif mysql # aggregate syntax: 
query I rowsort label-6983
SELECT ALL + 88 * 77 * - ( 37 ) + - COUNT( * ) AS col2
----
-250713

skipif mysql # not compatible
query I rowsort label-6983
SELECT ALL + 88 * 77 * - ( 37 ) + - COUNT ( * ) AS col2
----
-250713

query III rowsort
SELECT + 45 * - - 87 AS col2, 41 + + - 93 + + 99 * + 83 * + - 98, + 65 * - 82 AS col0
----
3915
-805318
-5330

onlyif mysql # aggregate syntax: 
query I rowsort label-6985
SELECT ALL 71 * - 61 * 37 + + MIN( - 11 )
----
-160258

skipif mysql # not compatible
query I rowsort label-6985
SELECT ALL 71 * - 61 * 37 + + MIN ( - 11 )
----
-160258

query I rowsort
SELECT + COALESCE ( + + ( 15 ), 38 ) col0
----
15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6987
SELECT ALL MIN( DISTINCT - 17 ) * - + 15 DIV - - COUNT( * )
----
255

skipif mysql # not compatible
query I rowsort label-6987
SELECT ALL MIN ( DISTINCT - 17 ) * - + 15 / - - COUNT ( * )
----
255

onlyif mysql # aggregate syntax: 
query I rowsort label-6988
SELECT COUNT( ALL - 12 )
----
1

skipif mysql # not compatible
query I rowsort label-6988
SELECT COUNT ( ALL - 12 )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6989
SELECT + ( - - 67 ) + - - MAX( ( 6 ) ) DIV + + 73
----
67

skipif mysql # not compatible
query I rowsort label-6989
SELECT + ( - - 67 ) + - - MAX ( ( 6 ) ) / + + 73
----
67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6990
SELECT - 2 * + + ( COUNT( * ) ) + - 15 DIV + COUNT( * )
----
-17

skipif mysql # not compatible
query I rowsort label-6990
SELECT - 2 * + + ( COUNT ( * ) ) + - 15 / + COUNT ( * )
----
-17

query I rowsort
SELECT ALL 71 + + 27 * - 54 AS col0
----
-1387

onlyif mysql # CAST syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-6992
SELECT DISTINCT - NULLIF ( + - 12, - 54 + - 60 * CAST( 44 AS DECIMAL ) - 63 ) DIV - 95 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6992
SELECT DISTINCT - NULLIF ( + - 12, - 54 + - 60 * CAST ( 44 AS REAL ) - 63 ) / - 95 AS col1
----
0

query I rowsort
SELECT + + 40 * 68
----
2720

query I rowsort
SELECT ALL - 59 - + - 30 * 65
----
1891

query II rowsort
SELECT ALL - + 56 - - CASE 27 WHEN + + ( - 65 ) + - AVG ( DISTINCT + 66 ) + + - 44 * 44 THEN NULL ELSE - 99 END AS col1, 44 * - 57 col0
----
-155
-2508

query I rowsort
SELECT - + 40 * - 36
----
1440

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6998
SELECT ALL - ( + 13 ) * - 34 - 23 AS col2, + COUNT( * )
----
419
1

skipif mysql # not compatible
query II rowsort label-6998
SELECT ALL - ( + 13 ) * - 34 - 23 AS col2, + COUNT ( * )
----
419
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6999
SELECT + + COALESCE ( - 58, MAX( DISTINCT - ( - + 39 ) ), - COUNT( * ) ) - + 54
----
-112

skipif mysql # not compatible
query I rowsort label-6999
SELECT + + COALESCE ( - 58, MAX ( DISTINCT - ( - + 39 ) ), - COUNT ( * ) ) - + 54
----
-112

query I rowsort
SELECT - 40 * + - 84 AS col1
----
3360

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7003
SELECT DISTINCT NULLIF ( - 81, 89 / 50 ) AS col1, CASE + 29 WHEN - + 19 THEN + SUM( ALL 45 ) WHEN + 9 THEN 66 / 44 END AS col2
----
-81
NULL

skipif mysql # not compatible
query II rowsort label-7003
SELECT DISTINCT NULLIF ( - 81, 89 / 50 ) AS col1, CASE + 29 WHEN - + 19 THEN + SUM ( ALL 45 ) WHEN + 9 THEN 66 / 44 END AS col2
----
-81
NULL

query I rowsort
SELECT - 59 * 94 AS col0
----
-5546

onlyif mysql # DIV for integer division: 
query II rowsort label-7005
SELECT ALL + ( + 56 ) DIV + + 74, + 90 AS col2
----
0
90

skipif mysql # not compatible
query II rowsort label-7005
SELECT ALL + ( + 56 ) / + + 74, + 90 AS col2
----
0
90

onlyif mysql # aggregate syntax: 
query II rowsort label-7006
SELECT - 29 - - + COALESCE ( - 10, ( + 65 ) ) col2, 18 + + - COALESCE ( - + 20, + MIN( + 31 ), + - 4 ) AS col0
----
-39
38

skipif mysql # not compatible
query II rowsort label-7006
SELECT - 29 - - + COALESCE ( - 10, ( + 65 ) ) col2, 18 + + - COALESCE ( - + 20, + MIN ( + 31 ), + - 4 ) AS col0
----
-39
38

query I rowsort
SELECT ALL + 45 * + 7 AS col1
----
315

query I rowsort
SELECT 45 * - - 24 + - 80 * - 98 AS col0
----
8920

onlyif mysql # aggregate syntax: 
query I rowsort label-7009
SELECT + CASE + 39 WHEN - 39 - COUNT( + - 78 ) + + 78 * - 63 THEN + 24 WHEN - 18 THEN - ( 30 ) WHEN - - 85 + + 67 THEN NULL ELSE NULL END * + + 14
----
NULL

skipif mysql # not compatible
query I rowsort label-7009
SELECT + CASE + 39 WHEN - 39 - COUNT ( + - 78 ) + + 78 * - 63 THEN + 24 WHEN - 18 THEN - ( 30 ) WHEN - - 85 + + 67 THEN NULL ELSE NULL END * + + 14
----
NULL

query I rowsort
SELECT - 69 + - 29 AS col1
----
-98

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

query I rowsort
SELECT ( 34 ) AS col1
----
34

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7014
SELECT + COALESCE ( - 77, 51 - 22 * - 61 + + CASE - 91 WHEN + 68 THEN + + SUM( - 53 ) DIV - COUNT( * ) + - - COUNT( * ) WHEN - ( - ( + 83 ) ) + - 63 THEN + ( - 45 ) + COUNT( * ) + - + 43 END + + COUNT( ALL 13 ) * - 78 ) AS col0
----
-77

skipif mysql # not compatible
query I rowsort label-7014
SELECT + COALESCE ( - 77, 51 - 22 * - 61 + + CASE - 91 WHEN + 68 THEN + + SUM ( - 53 ) / - COUNT ( * ) + - - COUNT ( * ) WHEN - ( - ( + 83 ) ) + - 63 THEN + ( - 45 ) + COUNT ( * ) + - + 43 END + + COUNT ( ALL 13 ) * - 78 ) AS col0
----
-77

query I rowsort
SELECT DISTINCT 66 * + 38 + 44
----
2552

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7018
SELECT + - CAST( NULL AS SIGNED ), ( + 51 ) + - 50 * + 23 AS col0
----
NULL
-1099

skipif mysql # not compatible
query II rowsort label-7018
SELECT + - CAST ( NULL AS INTEGER ), ( + 51 ) + - 50 * + 23 AS col0
----
NULL
-1099

onlyif mysql # aggregate syntax: 
query I rowsort label-7019
SELECT DISTINCT - SUM( DISTINCT + ( - NULLIF ( 70, + + 35 + 26 ) ) ) * - 78 AS col2
----
-5460

skipif mysql # not compatible
query I rowsort label-7019
SELECT DISTINCT - SUM ( DISTINCT + ( - NULLIF ( 70, + + 35 + 26 ) ) ) * - 78 AS col2
----
-5460

query I rowsort
SELECT + 28 * - + 86
----
-2408

query I rowsort
SELECT + + 53 + + 95 AS col0
----
148

query I rowsort
SELECT + - 67 + - COALESCE ( 22, - 41 )
----
-89

onlyif mysql # DIV for integer division: 
query I rowsort label-7023
SELECT + - 9 DIV - 47
----
0

skipif mysql # not compatible
query I rowsort label-7023
SELECT + - 9 / - 47
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7024
SELECT - + 3 / + CAST( NULL AS SIGNED ) * + 2 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7024
SELECT - + 3 / + CAST ( NULL AS INTEGER ) * + 2 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7025
SELECT CAST( - 49 AS SIGNED ) + - 89 AS col2
----
-138

skipif mysql # not compatible
query I rowsort label-7025
SELECT CAST ( - 49 AS INTEGER ) + - 89 AS col2
----
-138

query I rowsort
SELECT - 33 - + 53 AS col1
----
-86

query I rowsort
SELECT 41 * 76
----
3116

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

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

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

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

query I rowsort
SELECT - 0 + + + 72 + + 95
----
167

query I rowsort
SELECT NULLIF ( + 33, + 96 ) * - 0 - - 99 * - 83 AS col0
----
-8217

query I rowsort
SELECT ALL 42 + 7 + 16
----
65

query I rowsort
SELECT DISTINCT 0 + + 70 AS col2
----
70

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

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

query II rowsort
SELECT 88 AS col0, 89 + - 22
----
88
67

onlyif mysql # aggregate syntax: 
query II rowsort label-7036
SELECT - 62 AS col2, + 91 + + COUNT( * )
----
-62
92

skipif mysql # not compatible
query II rowsort label-7036
SELECT - 62 AS col2, + 91 + + COUNT ( * )
----
-62
92

onlyif mysql # aggregate syntax: 
query II rowsort label-7037
SELECT 61 + + COUNT( * ) AS col2, 26
----
62
26

skipif mysql # not compatible
query II rowsort label-7037
SELECT 61 + + COUNT ( * ) AS col2, 26
----
62
26

query I rowsort
SELECT 35 * + 68
----
2380

onlyif mysql # aggregate syntax: 
query I rowsort label-7039
SELECT DISTINCT - COUNT( - + 12 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-7039
SELECT DISTINCT - COUNT ( - + 12 ) AS col1
----
-1

query II rowsort
SELECT + 27 AS col1, - 11 * + 25 + + 47 AS col0
----
27
-228

query II rowsort
SELECT DISTINCT - 22 AS col2, - 68 AS col2
----
-22
-68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7042
SELECT DISTINCT - CAST( + ( - ( + SUM( - 54 ) ) ) AS SIGNED ) + - - 44 * + - 70 AS col0
----
-3134

skipif mysql # not compatible
query I rowsort label-7042
SELECT DISTINCT - CAST ( + ( - ( + SUM ( - 54 ) ) ) AS INTEGER ) + - - 44 * + - 70 AS col0
----
-3134

onlyif mysql # aggregate syntax: 
query I rowsort label-7043
SELECT ALL - 51 - + - COUNT( * ) * + 85
----
34

skipif mysql # not compatible
query I rowsort label-7043
SELECT ALL - 51 - + - COUNT ( * ) * + 85
----
34

query I rowsort
SELECT DISTINCT + 96 * 89 AS col0
----
8544

onlyif mysql # DIV for integer division: 
query I rowsort label-7045
SELECT 50 DIV 13
----
3

skipif mysql # not compatible
query I rowsort label-7045
SELECT 50 / 13
----
3

query I rowsort
SELECT CASE + NULLIF ( 71, COALESCE ( + 90, - + 96 ) ) WHEN + 43 + + 8 THEN + 61 ELSE NULL END * 55 + AVG ( 25 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7047
SELECT ALL - 24 * + - SUM( ALL 10 ) AS col1
----
240

skipif mysql # not compatible
query I rowsort label-7047
SELECT ALL - 24 * + - SUM ( ALL 10 ) AS col1
----
240

onlyif mysql # aggregate syntax: 
query I rowsort label-7048
SELECT DISTINCT - MAX( 78 ) * + - COUNT( * ) + + + COUNT( * ) * + + 39 AS col0
----
117

skipif mysql # not compatible
query I rowsort label-7048
SELECT DISTINCT - MAX ( 78 ) * + - COUNT ( * ) + + + COUNT ( * ) * + + 39 AS col0
----
117

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7050
SELECT - SUM( + + 42 ) * 55 AS col1
----
-2310

skipif mysql # not compatible
query I rowsort label-7050
SELECT - SUM ( + + 42 ) * 55 AS col1
----
-2310

query I rowsort
SELECT 86 - 42 col1
----
44

query I rowsort
SELECT ALL NULLIF ( - 56, + 22 ) AS col2
----
-56

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7054
SELECT COALESCE ( - - SUM( DISTINCT + 68 ), - 15 ) * + 9 * + 63 * 29
----
1118124

skipif mysql # not compatible
query I rowsort label-7054
SELECT COALESCE ( - - SUM ( DISTINCT + 68 ), - 15 ) * + 9 * + 63 * 29
----
1118124

query I rowsort
SELECT DISTINCT - 69 * 46 * + 99
----
-314226

onlyif mysql # aggregate syntax: 
query II rowsort label-7056
SELECT CASE MIN( 47 ) WHEN - - COUNT( * ) * + 52 THEN + + 74 * 77 + - + 90 WHEN - - SUM( DISTINCT + - 19 ) THEN NULL END + + - 5 + 20, - 53 * + - 79 AS col2
----
NULL
4187

skipif mysql # not compatible
query II rowsort label-7056
SELECT CASE MIN ( 47 ) WHEN - - COUNT ( * ) * + 52 THEN + + 74 * 77 + - + 90 WHEN - - SUM ( DISTINCT + - 19 ) THEN NULL END + + - 5 + 20, - 53 * + - 79 AS col2
----
NULL
4187

onlyif mysql # aggregate syntax: 
query II rowsort label-7057
SELECT DISTINCT 81, - COUNT( * ) - - 19 * - 43 col0
----
81
-818

skipif mysql # not compatible
query II rowsort label-7057
SELECT DISTINCT 81, - COUNT ( * ) - - 19 * - 43 col0
----
81
-818

query I rowsort
SELECT ALL - 86 + 21 AS col0
----
-65

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7060
SELECT 45 DIV 3
----
15

skipif mysql # not compatible
query I rowsort label-7060
SELECT 45 / 3
----
15

onlyif mysql # DIV for integer division: 
query I rowsort label-7061
SELECT 16 - + 64 + - 10 + + 31 DIV + ( 55 ) * - 31 * - 56 AS col1
----
-58

skipif mysql # not compatible
query I rowsort label-7061
SELECT 16 - + 64 + - 10 + + 31 / + ( 55 ) * - 31 * - 56 AS col1
----
-58

query I rowsort
SELECT 52 * 32 AS col0
----
1664

onlyif mysql # aggregate syntax: 
query I rowsort label-7063
SELECT - MIN( DISTINCT + 95 ) AS col1
----
-95

skipif mysql # not compatible
query I rowsort label-7063
SELECT - MIN ( DISTINCT + 95 ) AS col1
----
-95

query I rowsort
SELECT ALL CASE - 39 WHEN + 64 THEN + 61 WHEN + 2 + - ( 31 ) THEN 12 END + - - 45 AS col1
----
NULL

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

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

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

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

query I rowsort
SELECT ALL CASE 43 WHEN 79 + - + 30 THEN - - AVG ( ALL - 15 ) / + 0 / - - 11 END + 89
----
NULL

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

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

query I rowsort
SELECT DISTINCT + 9 * + - 90 AS col1
----
-810

onlyif mysql # DIV for integer division: 
query I rowsort label-7070
SELECT ALL 59 * + - 84 - - ( + 91 ) DIV + 27 AS col0
----
-4953

skipif mysql # not compatible
query I rowsort label-7070
SELECT ALL 59 * + - 84 - - ( + 91 ) / + 27 AS col0
----
-4953

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7071
SELECT 19 DIV + + COUNT( * ) - 14 col0
----
5

skipif mysql # not compatible
query I rowsort label-7071
SELECT 19 / + + COUNT ( * ) - 14 col0
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-7072
SELECT MAX( + - NULLIF ( 18, ( - - 15 ) ) )
----
-18

skipif mysql # not compatible
query I rowsort label-7072
SELECT MAX ( + - NULLIF ( 18, ( - - 15 ) ) )
----
-18

query I rowsort
SELECT - 65 * 89 + + 58 * + 12 + + 61
----
-5028

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7074
SELECT 70 - - + 94, 93 DIV CAST( + 13 AS SIGNED ) AS col2
----
164
7

skipif mysql # not compatible
query II rowsort label-7074
SELECT 70 - - + 94, 93 / CAST ( + 13 AS INTEGER ) AS col2
----
164
7

query I rowsort
SELECT ( 95 ) * - 8 AS col1
----
-760

query III rowsort
SELECT DISTINCT 39 * 18 AS col1, + 61 AS col2, - - 9
----
702
61
9

query I rowsort
SELECT 19 * 47 * - 84 + 22 AS col1
----
-74990

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7078
SELECT ALL - COALESCE ( + - 53, - 64, - CAST( - 72 AS SIGNED ) - + + COUNT( * ) ) AS col1
----
53

skipif mysql # not compatible
query I rowsort label-7078
SELECT ALL - COALESCE ( + - 53, - 64, - CAST ( - 72 AS INTEGER ) - + + COUNT ( * ) ) AS col1
----
53

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

skipif mysql # not compatible
query I rowsort label-7079
SELECT 95 * - - 0 * + COUNT ( * ) AS col2
----
0

query I rowsort
SELECT DISTINCT 3 * 99
----
297

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

skipif mysql # not compatible
query II rowsort label-7081
SELECT ALL - COUNT ( ALL 44 ) AS col1, + 40 + - + CAST ( NULL AS INTEGER )
----
-1
NULL

query I rowsort
SELECT ALL - - NULLIF ( + 63, - + ( 56 ) ) AS col0
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-7083
SELECT ALL - MIN( DISTINCT - 22 ) * CASE + 86 WHEN + 95 THEN 93 ELSE 49 * + 88 END
----
94864

skipif mysql # not compatible
query I rowsort label-7083
SELECT ALL - MIN ( DISTINCT - 22 ) * CASE + 86 WHEN + 95 THEN 93 ELSE 49 * + 88 END
----
94864

query I rowsort
SELECT DISTINCT - - 22 AS col2
----
22

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7086
SELECT - CAST( + 7 AS SIGNED ) AS col2
----
-7

skipif mysql # not compatible
query I rowsort label-7086
SELECT - CAST ( + 7 AS INTEGER ) AS col2
----
-7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7087
SELECT NULLIF ( - COUNT( * ), + + ( CAST( NULL AS SIGNED ) ) * + NULLIF ( COUNT( * ), - 78 * + 3 ) * 70 / + 70 + - + 59 * - - COALESCE ( 61, - + ( 64 ) + + - 3 + - + 42 + + COUNT( * ) * + COUNT( + 85 ) * + + 34 * 91 ) * + NULLIF ( COUNT( * ), - COALESCE ( + 16, 42 + + 93 * 65 ) ) ) * 62 AS col2
----
-62

skipif mysql # not compatible
query I rowsort label-7087
SELECT NULLIF ( - COUNT ( * ), + + ( CAST ( NULL AS INTEGER ) ) * + NULLIF ( COUNT ( * ), - 78 * + 3 ) * 70 / + 70 + - + 59 * - - COALESCE ( 61, - + ( 64 ) + + - 3 + - + 42 + + COUNT ( * ) * + COUNT ( + 85 ) * + + 34 * 91 ) * + NULLIF ( COUNT ( * ), - COALESCE ( + 16, 42 + + 93 * 65 ) ) ) * 62 AS col2
----
-62

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7088
SELECT 42 / 10 * CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-7088
SELECT 42 / 10 * CAST ( NULL AS REAL )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7089
SELECT - 79 * - 86 + - + 16 + - + 0 DIV + 86
----
6778

skipif mysql # not compatible
query I rowsort label-7089
SELECT - 79 * - 86 + - + 16 + - + 0 / + 86
----
6778

query I rowsort
SELECT ALL - 31 * - 7 AS col2
----
217

query I rowsort
SELECT - 32 + + 38 AS col0
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7092
SELECT DISTINCT + 40 * + CAST( + 5 AS SIGNED ) AS col1
----
200

skipif mysql # not compatible
query I rowsort label-7092
SELECT DISTINCT + 40 * + CAST ( + 5 AS INTEGER ) AS col1
----
200

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7093
SELECT ALL - - 65 + CASE WHEN NOT 17 NOT BETWEEN + 42 * 17 AND NULL THEN - 80 WHEN NOT + 42 IS NULL THEN NULL WHEN NOT 10 NOT IN ( - + CAST( - 44 AS SIGNED ) * - - 92 / - 14 * 22, - 90 * + MIN( DISTINCT 55 ), 3 ) THEN NULL ELSE - 21 END * - 76 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7093
SELECT ALL - - 65 + CASE WHEN NOT 17 NOT BETWEEN + 42 * 17 AND NULL THEN - 80 WHEN NOT + 42 IS NULL THEN NULL WHEN NOT 10 NOT IN ( - + CAST ( - 44 AS INTEGER ) * - - 92 / - 14 * 22, - 90 * + MIN ( DISTINCT 55 ), 3 ) THEN NULL ELSE - 21 END * - 76 AS col1
----
NULL

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

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

query II rowsort
SELECT ALL + 15 + - 24 AS col0, - 27 + 66 AS col1
----
-9
39

onlyif mysql # aggregate syntax: 
query I rowsort label-7096
SELECT DISTINCT - - 65 + + - MAX( DISTINCT 76 )
----
-11

skipif mysql # not compatible
query I rowsort label-7096
SELECT DISTINCT - - 65 + + - MAX ( DISTINCT 76 )
----
-11

onlyif mysql # aggregate syntax: 
query II rowsort label-7097
SELECT - 95 + - - 87 col1, - 12 + + + COUNT( * ) - - - 0
----
-8
-11

skipif mysql # not compatible
query II rowsort label-7097
SELECT - 95 + - - 87 col1, - 12 + + + COUNT ( * ) - - - 0
----
-8
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-7098
SELECT DISTINCT CASE + COUNT( * ) WHEN - - 93 THEN - + 83 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7098
SELECT DISTINCT CASE + COUNT ( * ) WHEN - - 93 THEN - + 83 ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT - 18 + 93
----
75

query I rowsort
SELECT + 0 - + 85 AS col2
----
-85

query I rowsort
SELECT DISTINCT 6 * + 95
----
570

query I rowsort
SELECT ALL 41 * - 0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7103
SELECT DISTINCT + 68 - + COUNT( * ) AS col1
----
67

skipif mysql # not compatible
query I rowsort label-7103
SELECT DISTINCT + 68 - + COUNT ( * ) AS col1
----
67

query I rowsort
SELECT + 16 + - + 83
----
-67

query I rowsort
SELECT - 28 * - 12 AS col2
----
336

onlyif mysql # aggregate syntax: 
query I rowsort label-7106
SELECT + COUNT( * ) * - - 80 * SUM( - 6 )
----
-480

skipif mysql # not compatible
query I rowsort label-7106
SELECT + COUNT ( * ) * - - 80 * SUM ( - 6 )
----
-480

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7107
SELECT + COUNT( NULLIF ( - 61, - - 76 ) ) * - 64 * + 74 + 17 DIV 70 DIV - + CAST( + + 95 AS SIGNED ) - 95
----
-4831

skipif mysql # not compatible
query I rowsort label-7107
SELECT + COUNT ( NULLIF ( - 61, - - 76 ) ) * - 64 * + 74 + 17 / 70 / - + CAST ( + + 95 AS INTEGER ) - 95
----
-4831

onlyif mysql # aggregate syntax: 
query II rowsort label-7108
SELECT DISTINCT + 2, - 93 + + + 35 - 20 + - ( - SUM( ALL 5 ) ) + + 60 * 39 + + ( + 28 ) * - 18 * + - SUM( 46 ) * 70 AS col0
----
2
1625147

skipif mysql # not compatible
query II rowsort label-7108
SELECT DISTINCT + 2, - 93 + + + 35 - 20 + - ( - SUM ( ALL 5 ) ) + + 60 * 39 + + ( + 28 ) * - 18 * + - SUM ( 46 ) * 70 AS col0
----
2
1625147

onlyif mysql # aggregate syntax: 
query II rowsort label-7109
SELECT ALL + 5 AS col2, - COUNT( * ) * + 68 AS col2
----
5
-68

skipif mysql # not compatible
query II rowsort label-7109
SELECT ALL + 5 AS col2, - COUNT ( * ) * + 68 AS col2
----
5
-68

query I rowsort
SELECT + ( 12 ) * 77 col0
----
924

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

query II rowsort
SELECT DISTINCT + 59 col2, - 67
----
59
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-7113
SELECT ALL + - MAX( - 37 ) AS col2
----
37

skipif mysql # not compatible
query I rowsort label-7113
SELECT ALL + - MAX ( - 37 ) AS col2
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-7114
SELECT ALL 11 * - - COUNT( * ) AS col2
----
11

skipif mysql # not compatible
query I rowsort label-7114
SELECT ALL 11 * - - COUNT ( * ) AS col2
----
11

query II rowsort
SELECT + 80 * COALESCE ( + NULLIF ( + - 26, + + 49 ), 65 ) AS col2, + 4 AS col0
----
-2080
4

query II rowsort
SELECT + 42, 82 AS col1
----
42
82

query I rowsort
SELECT ALL 38 * + 5 AS col2
----
190

query I rowsort
SELECT + 8 - - 4 * 52 * + 78
----
16232

query I rowsort
SELECT + - 80 * - 8 AS col2
----
640

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7120
SELECT + 59 * - - 61 - - - 27 + - 35 * + CAST( NULL AS SIGNED ) * 0 * + 79 / 50 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7120
SELECT + 59 * - - 61 - - - 27 + - 35 * + CAST ( NULL AS INTEGER ) * 0 * + 79 / 50 AS col1
----
NULL

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

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

query I rowsort
SELECT ALL - 39 * + 32 * + + 57 + + 41 col0
----
-71095

query I rowsort
SELECT ALL - 3 * - 24 + + + ( - 76 ) AS col2
----
-4

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

skipif mysql # not compatible
query I rowsort label-7124
SELECT + + MIN ( + 19 )
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-7125
SELECT DISTINCT + MAX( - - CASE + + 97 WHEN - 83 THEN + 0 + - 10 ELSE - 85 END ) AS col0
----
-85

skipif mysql # not compatible
query I rowsort label-7125
SELECT DISTINCT + MAX ( - - CASE + + 97 WHEN - 83 THEN + 0 + - 10 ELSE - 85 END ) AS col0
----
-85

query II rowsort
SELECT ALL + - 27 AS col2, ( NULLIF ( + + 62, + 29 ) ) col0
----
-27
62

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7127
SELECT - + 10 * + - 14 + - + COUNT( * ) + 2 * - - 79 DIV - 26 + 95
----
228

skipif mysql # not compatible
query I rowsort label-7127
SELECT - + 10 * + - 14 + - + COUNT ( * ) + 2 * - - 79 / - 26 + 95
----
228

query II rowsort
SELECT + 72 AS col1, + 68 * + 63 AS col0
----
72
4284

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

skipif mysql # not compatible
query I rowsort label-7129
SELECT + COUNT ( * ) * 77 / - 71 + + - 39 AS col1
----
-40

onlyif mysql # DIV for integer division: 
query II rowsort label-7130
SELECT - 94 DIV + + 69 col1, 71 AS col0
----
-1
71

skipif mysql # not compatible
query II rowsort label-7130
SELECT - 94 / + + 69 col1, 71 AS col0
----
-1
71

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

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

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

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

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

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

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

query II rowsort
SELECT - 87 * - - 55 AS col0, + 60 AS col1
----
-4785
60

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7136
SELECT - COALESCE ( + 54, - ( 2 ), - 64 * 49 - CAST( - - CAST( + - AVG ( 73 ) AS SIGNED ) AS SIGNED ) - + + COALESCE ( - 96, + 18 * + NULLIF ( + 45, - 35 * - - 4 + + 14 ) + 58 * + 71 DIV + 16 ) )
----
-54

skipif mysql # not compatible
query I rowsort label-7136
SELECT - COALESCE ( + 54, - ( 2 ), - 64 * 49 - CAST ( - - CAST ( + - AVG ( 73 ) AS INTEGER ) AS INTEGER ) - + + COALESCE ( - 96, + 18 * + NULLIF ( + 45, - 35 * - - 4 + + 14 ) + 58 * + 71 / + 16 ) )
----
-54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7137
SELECT + 10 * + CAST( + 58 AS SIGNED ) AS col1
----
580

skipif mysql # not compatible
query I rowsort label-7137
SELECT + 10 * + CAST ( + 58 AS INTEGER ) AS col1
----
580

query II rowsort
SELECT - 57 + 16 AS col0, 62 AS col2
----
-41
62

onlyif mysql # aggregate syntax: 
query II rowsort label-7139
SELECT ALL ( + MIN( ( - 17 ) ) ) AS col1, 42 col2
----
-17
42

skipif mysql # not compatible
query II rowsort label-7139
SELECT ALL ( + MIN ( ( - 17 ) ) ) AS col1, 42 col2
----
-17
42

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7140
SELECT ALL CAST( 13 AS SIGNED ) AS col0, 22 - - - 89
----
13
-67

skipif mysql # not compatible
query II rowsort label-7140
SELECT ALL CAST ( 13 AS INTEGER ) AS col0, 22 - - - 89
----
13
-67

onlyif mysql # DIV for integer division: 
query I rowsort label-7141
SELECT 93 DIV + 77 - 73 + + 69 AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-7141
SELECT 93 / + 77 - 73 + + 69 AS col2
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-7142
SELECT - + 75 DIV - ( 60 )
----
1

skipif mysql # not compatible
query I rowsort label-7142
SELECT - + 75 / - ( 60 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7143
SELECT + 20 * 11 + - ( 70 ) + - CAST( NULL AS DECIMAL ) + + MIN( ALL - ( - 47 ) ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7143
SELECT + 20 * 11 + - ( 70 ) + - CAST ( NULL AS REAL ) + + MIN ( ALL - ( - 47 ) ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7144
SELECT 23 * SUM( ALL - 68 ) - 94 * + 42
----
-5512

skipif mysql # not compatible
query I rowsort label-7144
SELECT 23 * SUM ( ALL - 68 ) - 94 * + 42
----
-5512

onlyif mysql # aggregate syntax: 
query I rowsort label-7145
SELECT ALL NULLIF ( - 41, - + COUNT( * ) ) + + 96 col0
----
55

skipif mysql # not compatible
query I rowsort label-7145
SELECT ALL NULLIF ( - 41, - + COUNT ( * ) ) + + 96 col0
----
55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7146
SELECT DISTINCT + MIN( DISTINCT + 19 ) + - COUNT( * ) + - 22 DIV + 43 * - - 44 * + COUNT( * ) * + SUM( ALL 52 ) * 44 + + - 17 * + - 35
----
613

skipif mysql # not compatible
query I rowsort label-7146
SELECT DISTINCT + MIN ( DISTINCT + 19 ) + - COUNT ( * ) + - 22 / + 43 * - - 44 * + COUNT ( * ) * + SUM ( ALL 52 ) * 44 + + - 17 * + - 35
----
613

query I rowsort
SELECT + 19 + 73
----
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7148
SELECT DISTINCT - + CAST( - ( - 18 ) AS SIGNED ) AS col1
----
-18

skipif mysql # not compatible
query I rowsort label-7148
SELECT DISTINCT - + CAST ( - ( - 18 ) AS INTEGER ) AS col1
----
-18

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

query I rowsort
SELECT DISTINCT + 21 + 69 col2
----
90

query I rowsort
SELECT - 31 * + 39 + - 70 - - 97 AS col0
----
-1182

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7152
SELECT DISTINCT + 88 + + - 67 DIV - SUM( - 21 ) + - - NULLIF ( - - 62, + + 5 + COUNT( * ) * - 68 ) AS col2
----
147

skipif mysql # not compatible
query I rowsort label-7152
SELECT DISTINCT + 88 + + - 67 / - SUM ( - 21 ) + - - NULLIF ( - - 62, + + 5 + COUNT ( * ) * - 68 ) AS col2
----
147

query I rowsort
SELECT ALL 52 - - 90 col1
----
142

query I rowsort
SELECT DISTINCT ( + - 46 ) - - 9 AS col1
----
-37

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7155
SELECT ALL CAST( NULL AS DECIMAL ) - + 30 + + - 46 + 26 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7155
SELECT ALL CAST ( NULL AS REAL ) - + 30 + + - 46 + 26 + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7156
SELECT CASE + - AVG ( ALL - 74 ) WHEN - 68 THEN NULL WHEN + ( - + COUNT( * ) ) * - 58 + - 6 + + - 15 THEN + - 76 * + - 14 WHEN - 44 - 66 THEN SUM( + 49 ) * - - 88 + - 3 + ( - NULLIF ( - CASE - COALESCE ( - ( - - 96 ), CASE - 77 WHEN - 91 * + 71 THEN NULL ELSE - CAST( NULL AS SIGNED ) END + + 93 ) WHEN + 49 * CAST( NULL AS SIGNED ) THEN NULL ELSE 15 * + 30 + 98 END, - 13 ) ) END * CASE COUNT( * ) + - CAST( - 40 AS SIGNED ) WHEN - 90 - + 94 THEN NULL WHEN ( - COUNT( + CAST( NULL AS SIGNED ) ) ) THEN - 93 WHEN + 48 THEN - 72 * + 25 ELSE + 37 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7156
SELECT CASE + - AVG ( ALL - 74 ) WHEN - 68 THEN NULL WHEN + ( - + COUNT ( * ) ) * - 58 + - 6 + + - 15 THEN + - 76 * + - 14 WHEN - 44 - 66 THEN SUM ( + 49 ) * - - 88 + - 3 + ( - NULLIF ( - CASE - COALESCE ( - ( - - 96 ), CASE - 77 WHEN - 91 * + 71 THEN NULL ELSE - CAST ( NULL AS INTEGER ) END + + 93 ) WHEN + 49 * CAST ( NULL AS INTEGER ) THEN NULL ELSE 15 * + 30 + 98 END, - 13 ) ) END * CASE COUNT ( * ) + - CAST ( - 40 AS INTEGER ) WHEN - 90 - + 94 THEN NULL WHEN ( - COUNT ( + CAST ( NULL AS INTEGER ) ) ) THEN - 93 WHEN + 48 THEN - 72 * + 25 ELSE + 37 END AS col1
----
NULL

query I rowsort
SELECT 61 + - 5 AS col2
----
56

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7158
SELECT 80 + COUNT( - 54 ) DIV + - 9 * - - 30
----
80

skipif mysql # not compatible
query I rowsort label-7158
SELECT 80 + COUNT ( - 54 ) / + - 9 * - - 30
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-7159
SELECT ( - - 61 ) + - - CASE 84 WHEN - + 12 THEN 47 WHEN - MIN( 83 ) THEN NULL END / 92 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7159
SELECT ( - - 61 ) + - - CASE 84 WHEN - + 12 THEN 47 WHEN - MIN ( 83 ) THEN NULL END / 92 AS col1
----
NULL

query I rowsort
SELECT 54 * + + 74
----
3996

onlyif mysql # aggregate syntax: 
query I rowsort label-7161
SELECT ALL 63 * - 61 * + MAX( ALL + + 68 ) AS col2
----
-261324

skipif mysql # not compatible
query I rowsort label-7161
SELECT ALL 63 * - 61 * + MAX ( ALL + + 68 ) AS col2
----
-261324

onlyif mysql # aggregate syntax: 
query I rowsort label-7162
SELECT DISTINCT 80 * + MAX( ALL 25 ) AS col1
----
2000

skipif mysql # not compatible
query I rowsort label-7162
SELECT DISTINCT 80 * + MAX ( ALL 25 ) AS col1
----
2000

query I rowsort
SELECT 86 + + 14 + 25 + + 31
----
156

query I rowsort
SELECT ALL + 34 + 67 AS col0
----
101

query I rowsort
SELECT 95 + - + ( + ( - 93 ) )
----
188

onlyif mysql # aggregate syntax: 
query I rowsort label-7166
SELECT 69 * - MAX( - CASE 24 WHEN + 43 THEN 46 WHEN - + 45 THEN NULL END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7166
SELECT 69 * - MAX ( - CASE 24 WHEN + 43 THEN 46 WHEN - + 45 THEN NULL END ) AS col2
----
NULL

query I rowsort
SELECT ALL - 61 + - 84 * - + 21 * - 34 + - + ( + + 67 ) col1
----
-60104

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7168
SELECT + COALESCE ( - 57, + + 84 DIV 57 * - + COUNT( * ) + 57 * + COUNT( * ) * 85 + + 90 * 1 * - - 81 ) AS col2
----
-57

skipif mysql # not compatible
query I rowsort label-7168
SELECT + COALESCE ( - 57, + + 84 / 57 * - + COUNT ( * ) + 57 * + COUNT ( * ) * 85 + + 90 * 1 * - - 81 ) AS col2
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-7169
SELECT MIN( DISTINCT 27 ) AS col0
----
27

skipif mysql # not compatible
query I rowsort label-7169
SELECT MIN ( DISTINCT 27 ) AS col0
----
27

query I rowsort
SELECT DISTINCT - + 34 + - 90
----
-124

query I rowsort
SELECT DISTINCT + 52 + 97
----
149

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

skipif mysql # not compatible
query I rowsort label-7172
SELECT DISTINCT + - COUNT ( * ) / + + ( - + 85 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7173
SELECT ALL - + CASE + + 3 WHEN - CAST( - + 18 AS SIGNED ) THEN 9 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7173
SELECT ALL - + CASE + + 3 WHEN - CAST ( - + 18 AS INTEGER ) THEN 9 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7174
SELECT ALL 56 + - 34 + + MIN( DISTINCT - 22 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7174
SELECT ALL 56 + - 34 + + MIN ( DISTINCT - 22 ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7175
SELECT - 26 * + 92 + SUM( DISTINCT 83 )
----
-2309

skipif mysql # not compatible
query I rowsort label-7175
SELECT - 26 * + 92 + SUM ( DISTINCT 83 )
----
-2309

query I rowsort
SELECT ALL + 8 * - 61 AS col0
----
-488

query I rowsort
SELECT ALL - - 0 AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7178
SELECT + COUNT( * ) DIV + NULLIF ( + + 20, + - ( - - 26 ) ) + - + 52 - + + 18 + - 56 + - 72
----
-198

skipif mysql # not compatible
query I rowsort label-7178
SELECT + COUNT ( * ) / + NULLIF ( + + 20, + - ( - - 26 ) ) + - + 52 - + + 18 + - 56 + - 72
----
-198

query II rowsort
SELECT 51 AS col1, - 29
----
51
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-7180
SELECT + COUNT( * ) + - 30 AS col1
----
-29

skipif mysql # not compatible
query I rowsort label-7180
SELECT + COUNT ( * ) + - 30 AS col1
----
-29

onlyif mysql # DIV for integer division: 
query I rowsort label-7181
SELECT 55 DIV + 15 col0
----
3

skipif mysql # not compatible
query I rowsort label-7181
SELECT 55 / + 15 col0
----
3

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7183
SELECT CASE + - 31 WHEN - + 77 THEN NULL WHEN + 17 THEN + 73 ELSE COUNT( * ) END
----
1

skipif mysql # not compatible
query I rowsort label-7183
SELECT CASE + - 31 WHEN - + 77 THEN NULL WHEN + 17 THEN + 73 ELSE COUNT ( * ) END
----
1

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

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

query I rowsort
SELECT + + 32 col2
----
32

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7186
SELECT DISTINCT - - 84 AS col2, + CAST( NULL AS SIGNED )
----
84
NULL

skipif mysql # not compatible
query II rowsort label-7186
SELECT DISTINCT - - 84 AS col2, + CAST ( NULL AS INTEGER )
----
84
NULL

query I rowsort
SELECT 65 * - NULLIF ( 18, + COALESCE ( 58, - 59 - + - 98 * 22 + + 3 / + 25, - 78 ) ) * + 25 - + 75 AS col1
----
-29325

onlyif mysql # aggregate syntax: 
query I rowsort label-7188
SELECT + 25 * - MIN( ALL + - 95 ) + + CASE - - 59 WHEN - AVG ( ALL 1 ) THEN NULL WHEN - 87 + + 11 THEN - 49 + - 9 WHEN - ( + 56 ) THEN NULL ELSE NULL END / + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7188
SELECT + 25 * - MIN ( ALL + - 95 ) + + CASE - - 59 WHEN - AVG ( ALL 1 ) THEN NULL WHEN - 87 + + 11 THEN - 49 + - 9 WHEN - ( + 56 ) THEN NULL ELSE NULL END / + COUNT ( * ) AS col1
----
NULL

query I rowsort
SELECT ALL - - 16 - + 2
----
14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7190
SELECT DISTINCT + 65 DIV - COALESCE ( + + 23, + + MAX( + 64 ) DIV - 43 * AVG ( ALL + ( + 5 ) ) + 41 + 92 * + COUNT( + 41 ) * + ( + + 21 ) )
----
-2

skipif mysql # not compatible
query I rowsort label-7190
SELECT DISTINCT + 65 / - COALESCE ( + + 23, + + MAX ( + 64 ) / - 43 * AVG ( ALL + ( + 5 ) ) + 41 + 92 * + COUNT ( + 41 ) * + ( + + 21 ) )
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-7191
SELECT ALL 18 - - + MAX( - 70 ) + COUNT( * )
----
-51

skipif mysql # not compatible
query I rowsort label-7191
SELECT ALL 18 - - + MAX ( - 70 ) + COUNT ( * )
----
-51

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7192
SELECT 67 AS col0, - CASE + + 33 WHEN + 22 THEN + ( + 10 ) * - 4 + + 30 * - 18 + 3 WHEN + 95 THEN - - AVG ( 50 ) / ( CAST( 63 AS SIGNED ) ) END * + - 96
----
67
NULL

skipif mysql # not compatible
query II rowsort label-7192
SELECT 67 AS col0, - CASE + + 33 WHEN + 22 THEN + ( + 10 ) * - 4 + + 30 * - 18 + 3 WHEN + 95 THEN - - AVG ( 50 ) / ( CAST ( 63 AS INTEGER ) ) END * + - 96
----
67
NULL

query II rowsort
SELECT DISTINCT - 96, 53 AS col2
----
-96
53

query II rowsort
SELECT 81 AS col0, 10 + 14
----
81
24

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

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

query II rowsort
SELECT 62 AS col1, - 5 AS col2
----
62
-5

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

query II rowsort
SELECT ALL 22, + 87 + + 23 AS col1
----
22
110

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7199
SELECT ( COALESCE ( + 72, COUNT( * ) ) ) * CAST( NULL AS SIGNED ) * + NULLIF ( + + COUNT( * ), - 79 - + 91 + - - 61 / - AVG ( ALL CAST( + 57 AS SIGNED ) ) - 53 + - 67 ) * - + CASE + COUNT( * ) WHEN - COALESCE ( + 93, 58 + - 47 ) THEN - - ( - 77 ) / - 35 * - 46 * - CAST( 3 AS SIGNED ) * + + 58 - - - 95 WHEN + - 55 * 8 THEN NULL END * + 29 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7199
SELECT ( COALESCE ( + 72, COUNT ( * ) ) ) * CAST ( NULL AS INTEGER ) * + NULLIF ( + + COUNT ( * ), - 79 - + 91 + - - 61 / - AVG ( ALL CAST ( + 57 AS INTEGER ) ) - 53 + - 67 ) * - + CASE + COUNT ( * ) WHEN - COALESCE ( + 93, 58 + - 47 ) THEN - - ( - 77 ) / - 35 * - 46 * - CAST ( 3 AS INTEGER ) * + + 58 - - - 95 WHEN + - 55 * 8 THEN NULL END * + 29 AS col0
----
NULL

query I rowsort
SELECT ALL 40 + + 17 AS col1
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-7201
SELECT - COUNT( DISTINCT COALESCE ( - 97, 42 + - - 4 / 3, + - 18 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-7201
SELECT - COUNT ( DISTINCT COALESCE ( - 97, 42 + - - 4 / 3, + - 18 ) )
----
-1

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

skipif mysql # not compatible
query I rowsort label-7202
SELECT DISTINCT + COUNT ( * ) / - 32
----
0

query I rowsort
SELECT 60 + - - 70 AS col1
----
130

query I rowsort
SELECT ( - 65 ) + + + 7 * - 75
----
-590

query I rowsort
SELECT - 4 * + 73
----
-292

query I rowsort
SELECT + ( 48 ) - - 68
----
116

onlyif mysql # aggregate syntax: 
query I rowsort label-7207
SELECT + MAX( 95 ) + - ( + 21 )
----
74

skipif mysql # not compatible
query I rowsort label-7207
SELECT + MAX ( 95 ) + - ( + 21 )
----
74

onlyif mysql # aggregate syntax: 
query II rowsort label-7208
SELECT DISTINCT 5 AS col0, + COUNT( * ) * 11 + - 9 - 19 * MIN( + - 39 ) AS col1
----
5
743

skipif mysql # not compatible
query II rowsort label-7208
SELECT DISTINCT 5 AS col0, + COUNT ( * ) * 11 + - 9 - 19 * MIN ( + - 39 ) AS col1
----
5
743

query I rowsort
SELECT ALL + 14 + - - 62 AS col2
----
76

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7211
SELECT ALL + 23 + + 84 AS col1, COUNT( * ) * + 39 * - + 26 AS col1
----
107
-1014

skipif mysql # not compatible
query II rowsort label-7211
SELECT ALL + 23 + + 84 AS col1, COUNT ( * ) * + 39 * - + 26 AS col1
----
107
-1014

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

skipif mysql # not compatible
query I rowsort label-7212
SELECT DISTINCT - 12 * COUNT ( * ) / + COUNT ( * ) AS col0
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-7213
SELECT ALL 71 + + 52 - COUNT( ALL - 64 ) - - 57 * - 6 + - - 9
----
-211

skipif mysql # not compatible
query I rowsort label-7213
SELECT ALL 71 + + 52 - COUNT ( ALL - 64 ) - - 57 * - 6 + - - 9
----
-211

query I rowsort
SELECT - + 43 - - 47 AS col2
----
4

query II rowsort
SELECT ALL + 21 AS col1, - 1 AS col1
----
21
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7216
SELECT + - SUM( DISTINCT 32 ) AS col0
----
-32

skipif mysql # not compatible
query I rowsort label-7216
SELECT + - SUM ( DISTINCT 32 ) AS col0
----
-32

query I rowsort
SELECT - + 93 + - + NULLIF ( 83, - 96 )
----
-176

query II rowsort
SELECT + 90, 42 AS col2
----
90
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7219
SELECT - + 83 DIV COUNT( * ) + + - CAST( COUNT( * ) AS SIGNED ) + 58 + NULLIF ( - + 88, + 61 * + + 7 * - 81 ) + - 17 col0
----
-131

skipif mysql # not compatible
query I rowsort label-7219
SELECT - + 83 / COUNT ( * ) + + - CAST ( COUNT ( * ) AS INTEGER ) + 58 + NULLIF ( - + 88, + 61 * + + 7 * - 81 ) + - 17 col0
----
-131

query I rowsort
SELECT - 60 * + 20 AS col1
----
-1200

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

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

query I rowsort
SELECT DISTINCT + COALESCE ( + - 77, - - 71 ) col1
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-7223
SELECT ALL + - 26 * 44 - + - COUNT( * )
----
-1143

skipif mysql # not compatible
query I rowsort label-7223
SELECT ALL + - 26 * 44 - + - COUNT ( * )
----
-1143

query II rowsort
SELECT DISTINCT + 62 AS col2, 94
----
62
94

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7226
SELECT ALL + - MAX( ALL + 17 ) DIV - 61
----
0

skipif mysql # not compatible
query I rowsort label-7226
SELECT ALL + - MAX ( ALL + 17 ) / - 61
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7227
SELECT 55 * + COUNT( * ) + + 14
----
69

skipif mysql # not compatible
query I rowsort label-7227
SELECT 55 * + COUNT ( * ) + + 14
----
69

query I rowsort
SELECT COALESCE ( 6, + + 52 )
----
6

query I rowsort
SELECT ALL + 69 * + - 19 * - 67 col2
----
87837

onlyif mysql # aggregate syntax: 
query I rowsort label-7230
SELECT - COUNT( * ) * + 7 * - 13
----
91

skipif mysql # not compatible
query I rowsort label-7230
SELECT - COUNT ( * ) * + 7 * - 13
----
91

onlyif mysql # aggregate syntax: 
query II rowsort label-7231
SELECT + ( + - 41 ) * CASE + + COALESCE ( + 23, + 27 / - 1 + - 42 * - 98 * - 3 - + 2 ) WHEN - - COUNT( * ) THEN + COALESCE ( - 95, ( + + 39 ) ) + - 78 WHEN - 22 THEN NULL WHEN + - COUNT( * ) + - 11 THEN + + 80 ELSE NULL END + + - 11, SUM( ALL + 16 ) AS col1
----
NULL
16

skipif mysql # not compatible
query II rowsort label-7231
SELECT + ( + - 41 ) * CASE + + COALESCE ( + 23, + 27 / - 1 + - 42 * - 98 * - 3 - + 2 ) WHEN - - COUNT ( * ) THEN + COALESCE ( - 95, ( + + 39 ) ) + - 78 WHEN - 22 THEN NULL WHEN + - COUNT ( * ) + - 11 THEN + + 80 ELSE NULL END + + - 11, SUM ( ALL + 16 ) AS col1
----
NULL
16

onlyif mysql # aggregate syntax: 
query I rowsort label-7232
SELECT + MIN( ALL + 83 ) + 47
----
130

skipif mysql # not compatible
query I rowsort label-7232
SELECT + MIN ( ALL + 83 ) + 47
----
130

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

query II rowsort
SELECT - 5 + - - 35 AS col1, + 31 AS col2
----
30
31

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

skipif mysql # not compatible
query I rowsort label-7235
SELECT + 70 / - + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7236
SELECT ALL + COUNT( * ) * 15 + + 21 * - + 21 + + + 94 + + COUNT( * ) * 24, COUNT( * ) + + - 90 AS col0
----
-308
-89

skipif mysql # not compatible
query II rowsort label-7236
SELECT ALL + COUNT ( * ) * 15 + + 21 * - + 21 + + + 94 + + COUNT ( * ) * 24, COUNT ( * ) + + - 90 AS col0
----
-308
-89

onlyif mysql # DIV for integer division: 
query I rowsort label-7237
SELECT ALL 28 DIV - 74
----
0

skipif mysql # not compatible
query I rowsort label-7237
SELECT ALL 28 / - 74
----
0

query I rowsort
SELECT ALL 76 * 19 * - + 34 + + CASE - 71 WHEN - - 61 * + 37 THEN NULL WHEN - 21 THEN + + 15 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7239
SELECT DISTINCT CAST( NULL AS SIGNED ) * - COUNT( * ) * + - 58 + + - SUM( ALL - + 80 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7239
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - COUNT ( * ) * + - 58 + + - SUM ( ALL - + 80 )
----
NULL

query I rowsort
SELECT - CASE - - 80 WHEN + 16 THEN - - 55 + + - 29 - - 44 + - 22 + + 27 + + - 26 END AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7241
SELECT ALL 34 + ( 26 ) + + + CAST( NULL AS SIGNED ) / 93 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7241
SELECT ALL 34 + ( 26 ) + + + CAST ( NULL AS INTEGER ) / 93 col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7242
SELECT + 4 + + 49 - - MAX( DISTINCT + + 55 ) AS col1
----
108

skipif mysql # not compatible
query I rowsort label-7242
SELECT + 4 + + 49 - - MAX ( DISTINCT + + 55 ) AS col1
----
108

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7243
SELECT - SUM( ALL - CAST( - 10 AS SIGNED ) ) AS col1
----
-10

skipif mysql # not compatible
query I rowsort label-7243
SELECT - SUM ( ALL - CAST ( - 10 AS INTEGER ) ) AS col1
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-7244
SELECT ALL CASE 57 WHEN - AVG ( ALL - COALESCE ( + 26, - - 78 ) ) + + + COUNT( DISTINCT + 3 ) + 18 * + 74 - + + 5 + 62 - - - 10 * + - 7 * - 94 THEN - COUNT( * ) * + CASE - 14 WHEN + 90 THEN NULL WHEN + 54 THEN - - 6 ELSE NULL END * + + 72 - + NULLIF ( + 13, CASE 45 WHEN 98 + + - COALESCE ( 56, + 88 ) / + - 67 + 43 + - 11 * 56 THEN 95 WHEN 37 THEN + 8 END + 53 ) + COUNT( * ) WHEN 72 - + 89 THEN 40 END + 36 * - 69
----
NULL

skipif mysql # not compatible
query I rowsort label-7244
SELECT ALL CASE 57 WHEN - AVG ( ALL - COALESCE ( + 26, - - 78 ) ) + + + COUNT ( DISTINCT + 3 ) + 18 * + 74 - + + 5 + 62 - - - 10 * + - 7 * - 94 THEN - COUNT ( * ) * + CASE - 14 WHEN + 90 THEN NULL WHEN + 54 THEN - - 6 ELSE NULL END * + + 72 - + NULLIF ( + 13, CASE 45 WHEN 98 + + - COALESCE ( 56, + 88 ) / + - 67 + 43 + - 11 * 56 THEN 95 WHEN 37 THEN + 8 END + 53 ) + COUNT ( * ) WHEN 72 - + 89 THEN 40 END + 36 * - 69
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7245
SELECT - COALESCE ( - - 29, - 8 * + + COUNT( * ) + + + 68 )
----
-29

skipif mysql # not compatible
query I rowsort label-7245
SELECT - COALESCE ( - - 29, - 8 * + + COUNT ( * ) + + + 68 )
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-7246
SELECT MAX( - 84 ) AS col2
----
-84

skipif mysql # not compatible
query I rowsort label-7246
SELECT MAX ( - 84 ) AS col2
----
-84

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7247
SELECT + + COALESCE ( - COUNT( * ), ( + 95 ) * + 40 ) * + 89 DIV + COUNT( * ) AS col0, - COALESCE ( + - 70, + + 75 )
----
-89
70

skipif mysql # not compatible
query II rowsort label-7247
SELECT + + COALESCE ( - COUNT ( * ), ( + 95 ) * + 40 ) * + 89 / + COUNT ( * ) AS col0, - COALESCE ( + - 70, + + 75 )
----
-89
70

query I rowsort
SELECT DISTINCT 59 - - 20
----
79

query II rowsort
SELECT - ( 66 ) AS col2, 4
----
-66
4

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

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

query I rowsort
SELECT + 21 + + 27 AS col0
----
48

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7253
SELECT - - COUNT( * ) / CASE + AVG ( + 84 ) WHEN - 3 THEN 36 WHEN 45 THEN NULL END / 79 * SUM( ALL - - 79 ) + + COUNT( + 21 ) * COALESCE ( - 0, - - COALESCE ( - 88, + ( + + 76 ) ) ) + + - 89 + COUNT( * ) col2, + 14
----
NULL
14

skipif mysql # not compatible
query II rowsort label-7253
SELECT - - COUNT ( * ) / CASE + AVG ( + 84 ) WHEN - 3 THEN 36 WHEN 45 THEN NULL END / 79 * SUM ( ALL - - 79 ) + + COUNT ( + 21 ) * COALESCE ( - 0, - - COALESCE ( - 88, + ( + + 76 ) ) ) + + - 89 + COUNT ( * ) col2, + 14
----
NULL
14

query I rowsort
SELECT DISTINCT - - 79 * 59
----
4661

onlyif mysql # DIV for integer division: 
query I rowsort label-7255
SELECT DISTINCT 62 DIV + 61
----
1

skipif mysql # not compatible
query I rowsort label-7255
SELECT DISTINCT 62 / + 61
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7256
SELECT + + 87 * CASE + COUNT( * ) WHEN - - 92 THEN + 39 WHEN + + ( - - 81 ) + - 96 + - ( 83 ) THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7256
SELECT + + 87 * CASE + COUNT ( * ) WHEN - - 92 THEN + 39 WHEN + + ( - - 81 ) + - 96 + - ( 83 ) THEN NULL END AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-7257
SELECT + - 70 DIV 52 AS col2, + 76
----
-1
76

skipif mysql # not compatible
query II rowsort label-7257
SELECT + - 70 / 52 AS col2, + 76
----
-1
76

query II rowsort
SELECT + 93 AS col0, + 0
----
93
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7259
SELECT CAST( 17 AS SIGNED ) AS col0
----
17

skipif mysql # not compatible
query I rowsort label-7259
SELECT CAST ( 17 AS INTEGER ) AS col0
----
17

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7260
SELECT ALL 60 DIV + MAX( - 76 ) + - + 64
----
-64

skipif mysql # not compatible
query I rowsort label-7260
SELECT ALL 60 / + MAX ( - 76 ) + - + 64
----
-64

query I rowsort
SELECT - 64 - - 15 AS col1
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-7262
SELECT + COUNT( ALL 37 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-7262
SELECT + COUNT ( ALL 37 ) col1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-7263
SELECT DISTINCT 35 DIV - + 83 * + 25 + + - 69 + + - 61 col1
----
-130

skipif mysql # not compatible
query I rowsort label-7263
SELECT DISTINCT 35 / - + 83 * + 25 + + - 69 + + - 61 col1
----
-130

onlyif mysql # aggregate syntax: 
query I rowsort label-7264
SELECT 10 * + 87 - 39 + + 76 * 9 * ( - SUM( + 9 ) ) * + COALESCE ( 10, - MIN( ALL 44 ) ) AS col2
----
-60729

skipif mysql # not compatible
query I rowsort label-7264
SELECT 10 * + 87 - 39 + + 76 * 9 * ( - SUM ( + 9 ) ) * + COALESCE ( 10, - MIN ( ALL 44 ) ) AS col2
----
-60729

query I rowsort
SELECT - 58 * - 16 AS col1
----
928

query II rowsort
SELECT + 61 AS col2, - 39 AS col1
----
61
-39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7267
SELECT - 22 DIV + 76 DIV COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-7267
SELECT - 22 / + 76 / COUNT ( * )
----
0

query I rowsort
SELECT - 28 * - 26
----
728

onlyif mysql # aggregate syntax: 
query I rowsort label-7269
SELECT DISTINCT - 29 + - - ( + + 75 ) * - + ( + + COALESCE ( - 52, - 84 + + - COUNT( * ) * + + 36 ) ) col2
----
3871

skipif mysql # not compatible
query I rowsort label-7269
SELECT DISTINCT - 29 + - - ( + + 75 ) * - + ( + + COALESCE ( - 52, - 84 + + - COUNT ( * ) * + + 36 ) ) col2
----
3871

query I rowsort
SELECT DISTINCT - 20 * - 58 AS col1
----
1160

onlyif mysql # aggregate syntax: 
query II rowsort label-7271
SELECT 16, + COUNT( * ) * - + 16 + + 11 AS col1
----
16
-5

skipif mysql # not compatible
query II rowsort label-7271
SELECT 16, + COUNT ( * ) * - + 16 + + 11 AS col1
----
16
-5

query I rowsort
SELECT ALL - COALESCE ( - + 69, + - 46 * 7 + - 16 * - 21 + - + 14 ) + - 15 + 22
----
76

onlyif mysql # DIV for integer division: 
query I rowsort label-7273
SELECT 85 DIV + 29 col1
----
2

skipif mysql # not compatible
query I rowsort label-7273
SELECT 85 / + 29 col1
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7274
SELECT 30 col0, + NULLIF ( + 26, + + COALESCE ( - + 27, COUNT( * ), - + 99 ) / + 48 ) * - 41 + + 37 * + CAST( - ( + 22 ) AS SIGNED ) AS col1
----
30
-1880

skipif mysql # not compatible
query II rowsort label-7274
SELECT 30 col0, + NULLIF ( + 26, + + COALESCE ( - + 27, COUNT ( * ), - + 99 ) / + 48 ) * - 41 + + 37 * + CAST ( - ( + 22 ) AS INTEGER ) AS col1
----
30
-1880

query I rowsort
SELECT ALL ( + 24 ) + 55 AS col0
----
79

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

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

query I rowsort
SELECT 11 * - - 79
----
869

query I rowsort
SELECT - ( - - 45 ) AS col0
----
-45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7279
SELECT DISTINCT - + 14 - - MAX( 57 ) * + 90 - 43 DIV - - ( + 47 ) + - 89
----
5027

skipif mysql # not compatible
query I rowsort label-7279
SELECT DISTINCT - + 14 - - MAX ( 57 ) * + 90 - 43 / - - ( + 47 ) + - 89
----
5027

query I rowsort
SELECT 71 + + - 95 AS col1
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-7281
SELECT ALL + COUNT( * ) - + - NULLIF ( 37, + 8 ) AS col1
----
38

skipif mysql # not compatible
query I rowsort label-7281
SELECT ALL + COUNT ( * ) - + - NULLIF ( 37, + 8 ) AS col1
----
38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7282
SELECT 58 AS col0, CAST( NULL AS SIGNED ) * - + 25 + + COUNT( * )
----
58
NULL

skipif mysql # not compatible
query II rowsort label-7282
SELECT 58 AS col0, CAST ( NULL AS INTEGER ) * - + 25 + + COUNT ( * )
----
58
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7283
SELECT - 36 + COUNT( ALL + CAST( NULL AS SIGNED ) ) * - + 94 * + 20 DIV - - 22 * - - ( - 26 )
----
-36

skipif mysql # not compatible
query I rowsort label-7283
SELECT - 36 + COUNT ( ALL + CAST ( NULL AS INTEGER ) ) * - + 94 * + 20 / - - 22 * - - ( - 26 )
----
-36

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

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

query I rowsort
SELECT + 45 + + 33
----
78

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7286
SELECT ALL - 51 col0, - CAST( NULL AS SIGNED ) * 76
----
-51
NULL

skipif mysql # not compatible
query II rowsort label-7286
SELECT ALL - 51 col0, - CAST ( NULL AS INTEGER ) * 76
----
-51
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7287
SELECT MIN( DISTINCT 98 ) + 46 + - + 94 + 7 * - 35 * - - 70 * + 48
----
-823150

skipif mysql # not compatible
query I rowsort label-7287
SELECT MIN ( DISTINCT 98 ) + 46 + - + 94 + 7 * - 35 * - - 70 * + 48
----
-823150

onlyif mysql # aggregate syntax: 
query II rowsort label-7288
SELECT - + NULLIF ( - 15, + 72 + 91 ) AS col0, - COUNT( * ) + - 26 * - 73 * + - 1 * + - 60 * - - 18
----
15
2049839

skipif mysql # not compatible
query II rowsort label-7288
SELECT - + NULLIF ( - 15, + 72 + 91 ) AS col0, - COUNT ( * ) + - 26 * - 73 * + - 1 * + - 60 * - - 18
----
15
2049839

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7289
SELECT 41 + - CAST( + 14 AS SIGNED ) * - - MIN( + 92 )
----
-1247

skipif mysql # not compatible
query I rowsort label-7289
SELECT 41 + - CAST ( + 14 AS INTEGER ) * - - MIN ( + 92 )
----
-1247

onlyif mysql # aggregate syntax: 
query I rowsort label-7290
SELECT 71 * + - 53 + + COUNT( * )
----
-3762

skipif mysql # not compatible
query I rowsort label-7290
SELECT 71 * + - 53 + + COUNT ( * )
----
-3762

query I rowsort
SELECT DISTINCT - 69 * - 2
----
138

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7293
SELECT 33 + - + 67 + 65 * COUNT( * ) + 46 DIV 18 AS col1
----
33

skipif mysql # not compatible
query I rowsort label-7293
SELECT 33 + - + 67 + 65 * COUNT ( * ) + 46 / 18 AS col1
----
33

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7295
SELECT 10 + 1 + + COUNT( + - 69 ) col1
----
12

skipif mysql # not compatible
query I rowsort label-7295
SELECT 10 + 1 + + COUNT ( + - 69 ) col1
----
12

query II rowsort
SELECT 56, 85 AS col2
----
56
85

query II rowsort
SELECT 12 * + - 98 * + 17, 66 + + 57 * + 98 AS col0
----
-19992
5652

query I rowsort
SELECT ALL + 53 + - 80 col1
----
-27

query I rowsort
SELECT ALL 59 + 93 * - + 76 AS col0
----
-7009

onlyif mysql # aggregate syntax: 
query I rowsort label-7300
SELECT MIN( DISTINCT 14 ) + - 39 col2
----
-25

skipif mysql # not compatible
query I rowsort label-7300
SELECT MIN ( DISTINCT 14 ) + - 39 col2
----
-25

query I rowsort
SELECT ALL 53 * 13
----
689

query I rowsort
SELECT ALL 64 + ( NULLIF ( - + 50, + 91 ) ) AS col2
----
14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7303
SELECT ALL 23 + - - 33 DIV 74 + - + 17 - + 71 + + 61 * - 70 * - + 8 * - COUNT( * ) * NULLIF ( - - NULLIF ( + 22, - 49 + 30 ), + 44 )
----
-751585

skipif mysql # not compatible
query I rowsort label-7303
SELECT ALL 23 + - - 33 / 74 + - + 17 - + 71 + + 61 * - 70 * - + 8 * - COUNT ( * ) * NULLIF ( - - NULLIF ( + 22, - 49 + 30 ), + 44 )
----
-751585

query I rowsort
SELECT ALL - 33 + + 8
----
-25

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7305
SELECT + 49 DIV SUM( DISTINCT + 61 ) + - - 73 AS col1
----
73

skipif mysql # not compatible
query I rowsort label-7305
SELECT + 49 / SUM ( DISTINCT + 61 ) + - - 73 AS col1
----
73

onlyif mysql # DIV for integer division: 
query I rowsort label-7306
SELECT 95 DIV 79 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7306
SELECT 95 / 79 AS col2
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-7307
SELECT ALL 10 + + + 78 AS col1, COUNT( * ) AS col1
----
88
1

skipif mysql # not compatible
query II rowsort label-7307
SELECT ALL 10 + + + 78 AS col1, COUNT ( * ) AS col1
----
88
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7308
SELECT ( - COALESCE ( COUNT( * ), - - COUNT( * ), - 2 + + 44 ) ) + + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-7308
SELECT ( - COALESCE ( COUNT ( * ), - - COUNT ( * ), - 2 + + 44 ) ) + + COUNT ( * )
----
0

query I rowsort
SELECT 88 * + 86
----
7568

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

query I rowsort
SELECT DISTINCT 9 - - - 15
----
-6

query I rowsort
SELECT 14 * - 55 AS col1
----
-770

query I rowsort
SELECT ALL - 71 * ( - 94 ) * + 8 col2
----
53392

query I rowsort
SELECT 20 + - - 45
----
65

query I rowsort
SELECT DISTINCT - 98 * - - 45 AS col0
----
-4410

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7316
SELECT + CAST( + 48 AS SIGNED ) + + 49 * + 19 AS col2, 6
----
979
6

skipif mysql # not compatible
query II rowsort label-7316
SELECT + CAST ( + 48 AS INTEGER ) + + 49 * + 19 AS col2, 6
----
979
6

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

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

query I rowsort
SELECT 86 * 57 + + 0 AS col2
----
4902

query I rowsort
SELECT - + NULLIF ( 1, + - 16 ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7320
SELECT ( COUNT( DISTINCT - 70 ) )
----
1

skipif mysql # not compatible
query I rowsort label-7320
SELECT ( COUNT ( DISTINCT - 70 ) )
----
1

query I rowsort
SELECT ALL + 31 * - 19 col1
----
-589

query I rowsort
SELECT DISTINCT - - 8 * + + 11 AS col0
----
88

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7323
SELECT - 83 DIV + + 38 AS col1, + ( MAX( + + 25 ) ) - - 48
----
-2
73

skipif mysql # not compatible
query II rowsort label-7323
SELECT - 83 / + + 38 AS col1, + ( MAX ( + + 25 ) ) - - 48
----
-2
73

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7325
SELECT - SUM( - 73 ) AS col1
----
73

skipif mysql # not compatible
query I rowsort label-7325
SELECT - SUM ( - 73 ) AS col1
----
73

query II rowsort
SELECT ( + - 34 ), 67 col0
----
-34
67

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7328
SELECT ALL + 24 + - + 73 * + CASE - 41 WHEN + COUNT( * ) / 49 * ( 15 ) + + 88 * + 49 + - 31 THEN NULL WHEN + NULLIF ( - 12, + 76 * - 64 * - 88 * + 43 * - SUM( 78 ) ) * + ( 26 ) THEN + 65 WHEN 12 THEN - 90 + - 55 + - CASE 91 WHEN COALESCE ( + + 39, - + COUNT( ALL ( + ( + 39 ) ) ) + + + 6 ) / + 90 + 87 / 14 THEN + 23 ELSE 96 END * - 65 END - + 27 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7328
SELECT ALL + 24 + - + 73 * + CASE - 41 WHEN + COUNT ( * ) / 49 * ( 15 ) + + 88 * + 49 + - 31 THEN NULL WHEN + NULLIF ( - 12, + 76 * - 64 * - 88 * + 43 * - SUM ( 78 ) ) * + ( 26 ) THEN + 65 WHEN 12 THEN - 90 + - 55 + - CASE 91 WHEN COALESCE ( + + 39, - + COUNT ( ALL ( + ( + 39 ) ) ) + + + 6 ) / + 90 + 87 / 14 THEN + 23 ELSE 96 END * - 65 END - + 27 col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7329
SELECT DISTINCT + 66 + + 85, + COUNT( * ) + - 39 + + COUNT( * ) + + 90 DIV COALESCE ( + + 85, - 45 * + 86 + + 29, + 40 + 87 + + CAST( 73 AS SIGNED ) * - ( + - COALESCE ( 14, - + 12 + + + COUNT( * ) - - COUNT( DISTINCT + 55 ) + + 43 DIV - 7 ) ) * + - NULLIF ( + 40, 3 ) ) AS col2
----
151
-36

skipif mysql # not compatible
query II rowsort label-7329
SELECT DISTINCT + 66 + + 85, + COUNT ( * ) + - 39 + + COUNT ( * ) + + 90 / COALESCE ( + + 85, - 45 * + 86 + + 29, + 40 + 87 + + CAST ( 73 AS INTEGER ) * - ( + - COALESCE ( 14, - + 12 + + + COUNT ( * ) - - COUNT ( DISTINCT + 55 ) + + 43 / - 7 ) ) * + - NULLIF ( + 40, 3 ) ) AS col2
----
151
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-7330
SELECT ALL COUNT( * ) * 83 + 85
----
168

skipif mysql # not compatible
query I rowsort label-7330
SELECT ALL COUNT ( * ) * 83 + 85
----
168

query I rowsort
SELECT DISTINCT - 96 + 11
----
-85

query I rowsort
SELECT ALL - 22 * - 71 + - 15 AS col0
----
1547

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7333
SELECT ALL - 39 * + CAST( + 54 AS SIGNED ) + + + 63 AS col2
----
-2043

skipif mysql # not compatible
query I rowsort label-7333
SELECT ALL - 39 * + CAST ( + 54 AS INTEGER ) + + + 63 AS col2
----
-2043

query II rowsort
SELECT DISTINCT + 28 AS col2, 29 col1
----
28
29

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7335
SELECT + ( 47 ) DIV - ( - ( - 42 ) ) + 36 + NULLIF ( 20, - 61 ) + + SUM( ALL - 69 )
----
-14

skipif mysql # not compatible
query I rowsort label-7335
SELECT + ( 47 ) / - ( - ( - 42 ) ) + 36 + NULLIF ( 20, - 61 ) + + SUM ( ALL - 69 )
----
-14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7336
SELECT - 95 * - COUNT( * ) * COUNT( 30 ) * CASE + + 50 WHEN 59 * 5 - - - COUNT( * ) THEN NULL WHEN - 32 + - - 40 THEN - + COALESCE ( + - 71, - + 39 ) ELSE NULL END + COALESCE ( + CAST( NULL AS SIGNED ), + - 42, - - 76 + 57 + - - 19 - 76 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7336
SELECT - 95 * - COUNT ( * ) * COUNT ( 30 ) * CASE + + 50 WHEN 59 * 5 - - - COUNT ( * ) THEN NULL WHEN - 32 + - - 40 THEN - + COALESCE ( + - 71, - + 39 ) ELSE NULL END + COALESCE ( + CAST ( NULL AS INTEGER ), + - 42, - - 76 + 57 + - - 19 - 76 )
----
NULL

query I rowsort
SELECT + 94 * - 39 - + - 24
----
-3642

query I rowsort
SELECT ALL + ( + + 42 ) col2
----
42

onlyif mysql # aggregate syntax: 
query II rowsort label-7339
SELECT ALL SUM( + 62 ) * 21 AS col1, + 8 AS col1
----
1302
8

skipif mysql # not compatible
query II rowsort label-7339
SELECT ALL SUM ( + 62 ) * 21 AS col1, + 8 AS col1
----
1302
8

onlyif mysql # aggregate syntax: 
query I rowsort label-7340
SELECT SUM( DISTINCT 91 )
----
91

skipif mysql # not compatible
query I rowsort label-7340
SELECT SUM ( DISTINCT 91 )
----
91

onlyif mysql # DIV for integer division: 
query I rowsort label-7341
SELECT ALL 75 DIV 65 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7341
SELECT ALL 75 / 65 AS col0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7342
SELECT + NULLIF ( 27, + + CAST( NULL AS SIGNED ) ) col1, 58 * 37
----
27
2146

skipif mysql # not compatible
query II rowsort label-7342
SELECT + NULLIF ( 27, + + CAST ( NULL AS INTEGER ) ) col1, 58 * 37
----
27
2146

query II rowsort
SELECT ALL + 40 AS col0, + 50
----
40
50

query II rowsort
SELECT + 21 * - ( - 62 ) AS col0, + 90 AS col0
----
1302
90

query I rowsort
SELECT ALL + CASE + 59 WHEN - - ( + 66 ) * - 17 * + - 19 + - 53 THEN - 82 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7346
SELECT DISTINCT - ( 17 ) * - COUNT( * ) * + 93 * - COUNT( * ) - 56 AS col0
----
-1637

skipif mysql # not compatible
query I rowsort label-7346
SELECT DISTINCT - ( 17 ) * - COUNT ( * ) * + 93 * - COUNT ( * ) - 56 AS col0
----
-1637

query I rowsort
SELECT ALL 3 * - 8
----
-24

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

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

query I rowsort
SELECT + + 15 * + ( - + 71 ) AS col1
----
-1065

query I rowsort
SELECT + - 40 * 70
----
-2800

onlyif mysql # aggregate syntax: 
query I rowsort label-7351
SELECT - - COUNT( * ) * + 4 + + MIN( DISTINCT 20 ) - CASE COUNT( * ) WHEN - - 73 / - 33 * - 20 + - COALESCE ( - + 91, - SUM( - 22 ) ) + + COUNT( * ) + COUNT( * ) THEN + 51 ELSE NULL END - - 75
----
NULL

skipif mysql # not compatible
query I rowsort label-7351
SELECT - - COUNT ( * ) * + 4 + + MIN ( DISTINCT 20 ) - CASE COUNT ( * ) WHEN - - 73 / - 33 * - 20 + - COALESCE ( - + 91, - SUM ( - 22 ) ) + + COUNT ( * ) + COUNT ( * ) THEN + 51 ELSE NULL END - - 75
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7352
SELECT COUNT( - - 83 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-7352
SELECT COUNT ( - - 83 ) col1
----
1

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

query I rowsort
SELECT ALL + + ( + 70 ) * - 48 AS col1
----
-3360

onlyif mysql # aggregate syntax: 
query I rowsort label-7355
SELECT ALL COALESCE ( COUNT( * ), - 5 ) + + - NULLIF ( - 68, - 19 ) * - - 94
----
6393

skipif mysql # not compatible
query I rowsort label-7355
SELECT ALL COALESCE ( COUNT ( * ), - 5 ) + + - NULLIF ( - 68, - 19 ) * - - 94
----
6393

query I rowsort
SELECT ALL - 88 + 4 AS col1
----
-84

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

skipif mysql # not compatible
query I rowsort label-7357
SELECT - - 83 - + - 77 + + - COUNT ( * ) AS col2
----
159

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

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

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

skipif mysql # not compatible
query I rowsort label-7359
SELECT ALL - - 30 + + COUNT ( * ) AS col2
----
31

onlyif mysql # aggregate syntax: 
query II rowsort label-7360
SELECT - ( 35 ) + 53 col1, - COUNT( * )
----
18
-1

skipif mysql # not compatible
query II rowsort label-7360
SELECT - ( 35 ) + 53 col1, - COUNT ( * )
----
18
-1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7361
SELECT - + 58 DIV + - NULLIF ( 15, 76 + 82 ), - CAST( NULL AS SIGNED ) col1
----
3
NULL

skipif mysql # not compatible
query II rowsort label-7361
SELECT - + 58 / + - NULLIF ( 15, 76 + 82 ), - CAST ( NULL AS INTEGER ) col1
----
3
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7362
SELECT - 57 + 41 + - SUM( + + 85 ) col0
----
-101

skipif mysql # not compatible
query I rowsort label-7362
SELECT - 57 + 41 + - SUM ( + + 85 ) col0
----
-101

onlyif mysql # aggregate syntax: 
query I rowsort label-7363
SELECT ALL - - 38 + - 40 * + COUNT( * ) + - MAX( + - 24 ) AS col0
----
22

skipif mysql # not compatible
query I rowsort label-7363
SELECT ALL - - 38 + - 40 * + COUNT ( * ) + - MAX ( + - 24 ) AS col0
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-7364
SELECT ALL + MIN( DISTINCT - + 57 ) + - CASE - COUNT( * ) WHEN - + 55 + + 60 THEN + - 35 * 53 ELSE - 18 END
----
-39

skipif mysql # not compatible
query I rowsort label-7364
SELECT ALL + MIN ( DISTINCT - + 57 ) + - CASE - COUNT ( * ) WHEN - + 55 + + 60 THEN + - 35 * 53 ELSE - 18 END
----
-39

query I rowsort
SELECT ALL + 78 + + 52 AS col1
----
130

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7366
SELECT - CAST( NULL AS SIGNED ) * - 31
----
NULL

skipif mysql # not compatible
query I rowsort label-7366
SELECT - CAST ( NULL AS INTEGER ) * - 31
----
NULL

query I rowsort
SELECT - 6 * 61 col0
----
-366

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7368
SELECT - COUNT( * ) + - CAST( NULL AS SIGNED ) * COALESCE ( - COUNT( * ), COUNT( * ) - + - COUNT( + 12 ) * 91 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7368
SELECT - COUNT ( * ) + - CAST ( NULL AS INTEGER ) * COALESCE ( - COUNT ( * ), COUNT ( * ) - + - COUNT ( + 12 ) * 91 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7369
SELECT ALL NULLIF ( - MAX( DISTINCT + NULLIF ( - 64, + 96 ) ), - - 86 + - 55 )
----
64

skipif mysql # not compatible
query I rowsort label-7369
SELECT ALL NULLIF ( - MAX ( DISTINCT + NULLIF ( - 64, + 96 ) ), - - 86 + - 55 )
----
64

onlyif mysql # DIV for integer division: 
query I rowsort label-7370
SELECT DISTINCT + 88 DIV - + 35
----
-2

skipif mysql # not compatible
query I rowsort label-7370
SELECT DISTINCT + 88 / - + 35
----
-2

query II rowsort
SELECT 11, - 78 * - + 40 + - + 58 AS col2
----
11
3062

query I rowsort
SELECT - 88 + - + 62
----
-150

query I rowsort
SELECT - 99 * 29 AS col2
----
-2871

query I rowsort
SELECT DISTINCT - 70 * 33
----
-2310

onlyif mysql # aggregate syntax: 
query I rowsort label-7375
SELECT - CASE - 45 WHEN - - 86 THEN - 93 ELSE + 81 END * - + 21 + - + 43 + + - COUNT( * ) AS col2
----
1657

skipif mysql # not compatible
query I rowsort label-7375
SELECT - CASE - 45 WHEN - - 86 THEN - 93 ELSE + 81 END * - + 21 + - + 43 + + - COUNT ( * ) AS col2
----
1657

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7376
SELECT DISTINCT + NULLIF ( + CAST( NULL AS SIGNED ), - 2 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7376
SELECT DISTINCT + NULLIF ( + CAST ( NULL AS INTEGER ), - 2 ) AS col0
----
NULL

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

skipif mysql # not compatible
query I rowsort label-7377
SELECT DISTINCT COUNT ( * ) * - + 90 AS col1
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-7378
SELECT - ( 7 ) + MAX( + 75 )
----
68

skipif mysql # not compatible
query I rowsort label-7378
SELECT - ( 7 ) + MAX ( + 75 )
----
68

query II rowsort
SELECT - 45 * + 12, 7 * + - 48 AS col0
----
-540
-336

query I rowsort
SELECT ALL - 2 * - 99 * + 90 - + 91
----
17729

query I rowsort
SELECT + 98 * 2
----
196

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7383
SELECT - CAST( NULL AS SIGNED ) * + 77 * 52 * + 25 * + NULLIF ( - 94, + 23 + + - NULLIF ( 79, COUNT( * ) ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7383
SELECT - CAST ( NULL AS INTEGER ) * + 77 * 52 * + 25 * + NULLIF ( - 94, + 23 + + - NULLIF ( 79, COUNT ( * ) ) ) AS col0
----
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7385
SELECT + 74 + - CAST( - + 60 AS SIGNED ) + + 11 * - 86
----
-812

skipif mysql # not compatible
query I rowsort label-7385
SELECT + 74 + - CAST ( - + 60 AS INTEGER ) + + 11 * - 86
----
-812

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7387
SELECT + CASE - 51 WHEN + ( + - 98 ) THEN NULL ELSE 23 + + + 86 END * + 11 + 58 DIV - 92 AS col1
----
1199

skipif mysql # not compatible
query I rowsort label-7387
SELECT + CASE - 51 WHEN + ( + - 98 ) THEN NULL ELSE 23 + + + 86 END * + 11 + 58 / - 92 AS col1
----
1199

onlyif mysql # aggregate syntax: 
query I rowsort label-7388
SELECT - 62 * + COALESCE ( + + 68, + 25 ) + - ( - - COUNT( * ) ) - + 96 col1
----
-4313

skipif mysql # not compatible
query I rowsort label-7388
SELECT - 62 * + COALESCE ( + + 68, + 25 ) + - ( - - COUNT ( * ) ) - + 96 col1
----
-4313

onlyif mysql # aggregate syntax: 
query I rowsort label-7389
SELECT DISTINCT - NULLIF ( + 15, + 59 * - + 77 - - + 26 ) * - COUNT( * ) AS col1
----
15

skipif mysql # not compatible
query I rowsort label-7389
SELECT DISTINCT - NULLIF ( + 15, + 59 * - + 77 - - + 26 ) * - COUNT ( * ) AS col1
----
15

query I rowsort
SELECT ALL + - 55 col1
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-7391
SELECT ALL + + COUNT( * ) * + 73 + 48 AS col0
----
121

skipif mysql # not compatible
query I rowsort label-7391
SELECT ALL + + COUNT ( * ) * + 73 + 48 AS col0
----
121

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

query I rowsort
SELECT + 61 + 8
----
69

query II rowsort
SELECT - + 85 AS col2, + 81 col0
----
-85
81

onlyif mysql # aggregate syntax: 
query I rowsort label-7395
SELECT ALL - 48 * 36 * SUM( + 47 ) AS col0
----
-81216

skipif mysql # not compatible
query I rowsort label-7395
SELECT ALL - 48 * 36 * SUM ( + 47 ) AS col0
----
-81216

onlyif mysql # aggregate syntax: 
query I rowsort label-7396
SELECT + 74 + + COUNT( * )
----
75

skipif mysql # not compatible
query I rowsort label-7396
SELECT + 74 + + COUNT ( * )
----
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7397
SELECT + + ( - 77 ) * + + COUNT( * ) + 82 + 20 + + 28 + + CAST( NULL AS SIGNED ) * 54 + CAST( - + 72 AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7397
SELECT + + ( - 77 ) * + + COUNT ( * ) + 82 + 20 + + 28 + + CAST ( NULL AS INTEGER ) * 54 + CAST ( - + 72 AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7398
SELECT ALL MIN( NULLIF ( 49, + 40 ) ) * + COALESCE ( + 0, + 96 ) + + COUNT( DISTINCT 48 ) * - 23
----
-23

skipif mysql # not compatible
query I rowsort label-7398
SELECT ALL MIN ( NULLIF ( 49, + 40 ) ) * + COALESCE ( + 0, + 96 ) + + COUNT ( DISTINCT 48 ) * - 23
----
-23

onlyif mysql # aggregate syntax: 
query II rowsort label-7399
SELECT DISTINCT 50, ( 42 ) * + CASE + 25 WHEN - 94 * + 72 + SUM( DISTINCT + + 80 ) THEN NULL WHEN - 48 THEN 62 / 7 ELSE NULL END + - + 64 / + 1 + 46 - COUNT( * ) + + 74 AS col0
----
50
NULL

skipif mysql # not compatible
query II rowsort label-7399
SELECT DISTINCT 50, ( 42 ) * + CASE + 25 WHEN - 94 * + 72 + SUM ( DISTINCT + + 80 ) THEN NULL WHEN - 48 THEN 62 / 7 ELSE NULL END + - + 64 / + 1 + 46 - COUNT ( * ) + + 74 AS col0
----
50
NULL

query I rowsort
SELECT DISTINCT + 29 + + + ( - 59 ) - + 67
----
-97

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7401
SELECT ALL + 82 col2, + CAST( NULL AS SIGNED ) * 36 * + 64 AS col2
----
82
NULL

skipif mysql # not compatible
query II rowsort label-7401
SELECT ALL + 82 col2, + CAST ( NULL AS INTEGER ) * 36 * + 64 AS col2
----
82
NULL

query II rowsort
SELECT DISTINCT - 69, 74 - + 39 AS col1
----
-69
35

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7403
SELECT DISTINCT - 49 + + NULLIF ( ( + - 70 ), - + COUNT( * ) ) * + COUNT( * ) + + + 85 + + 47 + + 24 * + 7 DIV + - COUNT( * ) AS col1
----
-155

skipif mysql # not compatible
query I rowsort label-7403
SELECT DISTINCT - 49 + + NULLIF ( ( + - 70 ), - + COUNT ( * ) ) * + COUNT ( * ) + + + 85 + + 47 + + 24 * + 7 / + - COUNT ( * ) AS col1
----
-155

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7404
SELECT DISTINCT AVG ( - CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7404
SELECT DISTINCT AVG ( - CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT + 58 * 5 * 32 col1
----
9280

query I rowsort
SELECT + 21 * + 60 * 42
----
52920

onlyif mysql # aggregate syntax: 
query I rowsort label-7407
SELECT 89 * ( ( - 51 ) ) * - COUNT( - 44 ) AS col0
----
4539

skipif mysql # not compatible
query I rowsort label-7407
SELECT 89 * ( ( - 51 ) ) * - COUNT ( - 44 ) AS col0
----
4539

onlyif mysql # aggregate syntax: 
query I rowsort label-7408
SELECT DISTINCT COUNT( * ) * NULLIF ( + COUNT( * ), COUNT( * ) / - 9 - + - 30 * - 98 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-7408
SELECT DISTINCT COUNT ( * ) * NULLIF ( + COUNT ( * ), COUNT ( * ) / - 9 - + - 30 * - 98 ) AS col1
----
1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7410
SELECT 79 - 73 + + ( - 38 ) * + - MAX( DISTINCT + 99 ) AS col2
----
3768

skipif mysql # not compatible
query I rowsort label-7410
SELECT 79 - 73 + + ( - 38 ) * + - MAX ( DISTINCT + 99 ) AS col2
----
3768

query I rowsort
SELECT DISTINCT 99 * + 50 col2
----
4950

onlyif mysql # aggregate syntax: 
query I rowsort label-7412
SELECT ALL 34 * + MIN( ALL + 84 ) AS col2
----
2856

skipif mysql # not compatible
query I rowsort label-7412
SELECT ALL 34 * + MIN ( ALL + 84 ) AS col2
----
2856

query II rowsort
SELECT 4 * - 23 AS col1, 29
----
-92
29

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7414
SELECT DISTINCT - NULLIF ( - 70, 94 DIV + - 87 * + + NULLIF ( + 15, - - ( - 5 ) - - + COUNT( ALL - - 11 ) ) ) DIV 3
----
23

skipif mysql # not compatible
query I rowsort label-7414
SELECT DISTINCT - NULLIF ( - 70, 94 / + - 87 * + + NULLIF ( + 15, - - ( - 5 ) - - + COUNT ( ALL - - 11 ) ) ) / 3
----
23

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

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

query I rowsort
SELECT 94 * - 3
----
-282

query I rowsort
SELECT 30 + - 86 + - + ( + 29 ) * + 69 AS col2
----
-2057

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

query I rowsort
SELECT ALL - NULLIF ( - 16, + 78 ) * - 39
----
-624

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7420
SELECT DISTINCT - CAST( + 17 AS SIGNED ), NULLIF ( + 43, ( - ( 10 ) ) ) AS col2
----
-17
43

skipif mysql # not compatible
query II rowsort label-7420
SELECT DISTINCT - CAST ( + 17 AS INTEGER ), NULLIF ( + 43, ( - ( 10 ) ) ) AS col2
----
-17
43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7421
SELECT ALL - ( - 69 ) + CAST( NULL AS SIGNED ) - - COUNT( * ) + - + COALESCE ( COUNT( * ), 79 ) * - - CAST( 60 AS SIGNED ) + 35 * - COUNT( * ) + - 91 + - + CASE + MAX( ( - ( 8 ) ) ) WHEN + + 94 * - 90 THEN NULL WHEN NULLIF ( - COUNT( * ), + 90 + - ( + SUM( DISTINCT + 10 ) ) ) + NULLIF ( - + 7, 56 ) THEN + 47 END + + 15 * 65 * - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7421
SELECT ALL - ( - 69 ) + CAST ( NULL AS INTEGER ) - - COUNT ( * ) + - + COALESCE ( COUNT ( * ), 79 ) * - - CAST ( 60 AS INTEGER ) + 35 * - COUNT ( * ) + - 91 + - + CASE + MAX ( ( - ( 8 ) ) ) WHEN + + 94 * - 90 THEN NULL WHEN NULLIF ( - COUNT ( * ), + 90 + - ( + SUM ( DISTINCT + 10 ) ) ) + NULLIF ( - + 7, 56 ) THEN + 47 END + + 15 * 65 * - COUNT ( * ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7422
SELECT - 48 * + MIN( + - 55 ) + 90
----
2730

skipif mysql # not compatible
query I rowsort label-7422
SELECT - 48 * + MIN ( + - 55 ) + 90
----
2730

query I rowsort
SELECT ALL + COALESCE ( + 54, + 68 ) * + NULLIF ( 45, + 28 - - 75 + + 49 + - 8 / - 22 * + - ( - - 35 ) ) AS col1
----
2430

query I rowsort
SELECT DISTINCT 48 + 7 + - ( - - 4 )
----
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7425
SELECT ALL CASE CAST( 52 AS SIGNED ) WHEN 99 + - ( - 19 ) THEN NULL ELSE COUNT( * ) DIV + 55 + 91 END + - 56 * - 33 * + 0
----
91

skipif mysql # not compatible
query I rowsort label-7425
SELECT ALL CASE CAST ( 52 AS INTEGER ) WHEN 99 + - ( - 19 ) THEN NULL ELSE COUNT ( * ) / + 55 + 91 END + - 56 * - 33 * + 0
----
91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7426
SELECT ALL - 52 + + + COUNT( * ) * - ( 59 ) DIV COUNT( * ) + + 94
----
-17

skipif mysql # not compatible
query I rowsort label-7426
SELECT ALL - 52 + + + COUNT ( * ) * - ( 59 ) / COUNT ( * ) + + 94
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-7427
SELECT 94 * - SUM( ( 66 ) ) * 11 + - - 7 AS col1
----
-68237

skipif mysql # not compatible
query I rowsort label-7427
SELECT 94 * - SUM ( ( 66 ) ) * 11 + - - 7 AS col1
----
-68237

query I rowsort
SELECT DISTINCT - 19 + + 4
----
-15

query I rowsort
SELECT ALL + 61 + + 40 AS col2
----
101

query I rowsort
SELECT ALL + COALESCE ( - ( + 5 ), + 73, + ( + 89 ) + + 80 ) * - - 33 col1
----
-165

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7431
SELECT - CASE + 72 WHEN - - 66 / CAST( - - 80 AS SIGNED ) / - + 60 + - - MAX( - + 83 ) THEN 80 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7431
SELECT - CASE + 72 WHEN - - 66 / CAST ( - - 80 AS INTEGER ) / - + 60 + - - MAX ( - + 83 ) THEN 80 END AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7432
SELECT ALL - + 58 + + + 71 + + 83 * 60 DIV - 19
----
-249

skipif mysql # not compatible
query I rowsort label-7432
SELECT ALL - + 58 + + + 71 + + 83 * 60 / - 19
----
-249

query I rowsort
SELECT ALL 78 + 37
----
115

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7434
SELECT DISTINCT - 9 DIV - 44 - - + 55 * + CAST( 76 AS SIGNED ) * - 31
----
-129580

skipif mysql # not compatible
query I rowsort label-7434
SELECT DISTINCT - 9 / - 44 - - + 55 * + CAST ( 76 AS INTEGER ) * - 31
----
-129580

onlyif mysql # aggregate syntax: 
query I rowsort label-7435
SELECT ALL 92 - - 58 + COUNT( * ) AS col0
----
151

skipif mysql # not compatible
query I rowsort label-7435
SELECT ALL 92 - - 58 + COUNT ( * ) AS col0
----
151

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

query I rowsort
SELECT ALL COALESCE ( + - 22, - + 40 ) * 61
----
-1342

onlyif mysql # aggregate syntax: 
query I rowsort label-7438
SELECT - 5 + - COUNT( * ) + + 38 * - ( + - 90 ) + + 17 + ( + 47 ) + 76 AS col1
----
3554

skipif mysql # not compatible
query I rowsort label-7438
SELECT - 5 + - COUNT ( * ) + + 38 * - ( + - 90 ) + + 17 + ( + 47 ) + 76 AS col1
----
3554

onlyif mysql # DIV for integer division: 
query I rowsort label-7439
SELECT - 19 + + + 47 DIV + 80 + + 87 AS col0
----
68

skipif mysql # not compatible
query I rowsort label-7439
SELECT - 19 + + + 47 / + 80 + + 87 AS col0
----
68

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7441
SELECT 55 AS col2, 95 + - COUNT( * ) AS col2
----
55
94

skipif mysql # not compatible
query II rowsort label-7441
SELECT 55 AS col2, 95 + - COUNT ( * ) AS col2
----
55
94

query I rowsort
SELECT 73 * - 8 AS col0
----
-584

query I rowsort
SELECT ALL 58 - 46
----
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7444
SELECT CASE + 8 WHEN + 88 THEN NULL WHEN + COALESCE ( - MAX( ALL + 12 ), 40, 70 ) THEN - + COUNT( * ) END + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7444
SELECT CASE + 8 WHEN + 88 THEN NULL WHEN + COALESCE ( - MAX ( ALL + 12 ), 40, 70 ) THEN - + COUNT ( * ) END + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT 8 + + + 11 + - - 87
----
106

query I rowsort
SELECT ALL - 53 * + 46 AS col1
----
-2438

query I rowsort
SELECT 14 * + 46 AS col2
----
644

query II rowsort
SELECT DISTINCT 15 AS col2, + 62 * 61 + 96 AS col1
----
15
3878

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7449
SELECT 71 AS col2, CAST( - + 60 AS SIGNED ) + 74 * + - 97
----
71
-7238

skipif mysql # not compatible
query II rowsort label-7449
SELECT 71 AS col2, CAST ( - + 60 AS INTEGER ) + 74 * + - 97
----
71
-7238

query I rowsort
SELECT 98 * - 59
----
-5782

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7451
SELECT 33 + - - 4 DIV - COUNT( ALL + - 31 ) AS col2
----
29

skipif mysql # not compatible
query I rowsort label-7451
SELECT 33 + - - 4 / - COUNT ( ALL + - 31 ) AS col2
----
29

query I rowsort
SELECT ALL 80 * + 47 AS col0
----
3760

query I rowsort
SELECT 39 * + + 82
----
3198

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7455
SELECT - COUNT( * ) * 82 + - 34 + + 10 * - 79 - + 0 DIV - 46 col0
----
-906

skipif mysql # not compatible
query I rowsort label-7455
SELECT - COUNT ( * ) * 82 + - 34 + + 10 * - 79 - + 0 / - 46 col0
----
-906

query I rowsort
SELECT ALL 44 * + 90
----
3960

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7458
SELECT ALL - + COUNT( ALL - + CAST( NULL AS SIGNED ) ) * + 38 * + 35 + - 65 AS col1
----
-65

skipif mysql # not compatible
query I rowsort label-7458
SELECT ALL - + COUNT ( ALL - + CAST ( NULL AS INTEGER ) ) * + 38 * + 35 + - 65 AS col1
----
-65

query I rowsort
SELECT ALL NULLIF ( - ( 37 ), + - 23 * + 45 ) * 37 + - 69
----
-1438

query I rowsort
SELECT 7 - - 91 AS col2
----
98

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

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

query I rowsort
SELECT ALL - + 98 + 74
----
-24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7463
SELECT ALL + - 36 DIV - CASE NULLIF ( - - 17, + 77 + - COUNT( * ) + - + 99 + + COUNT( + ( ( - + 48 ) ) ) + + 10 * + 13 + - + COUNT( ALL + ( 21 ) ) + + 9 ) WHEN + SUM( DISTINCT - + 48 ) * - 60 THEN - 78 + + + MAX( DISTINCT - 22 ) ELSE + - 87 DIV - 94 * + ( + 44 ) + + 10 END AS col1
----
3

skipif mysql # not compatible
query I rowsort label-7463
SELECT ALL + - 36 / - CASE NULLIF ( - - 17, + 77 + - COUNT ( * ) + - + 99 + + COUNT ( + ( ( - + 48 ) ) ) + + 10 * + 13 + - + COUNT ( ALL + ( 21 ) ) + + 9 ) WHEN + SUM ( DISTINCT - + 48 ) * - 60 THEN - 78 + + + MAX ( DISTINCT - 22 ) ELSE + - 87 / - 94 * + ( + 44 ) + + 10 END AS col1
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7464
SELECT COUNT( + 72 ) + - COALESCE ( - - 47, + ( - - ( + 49 ) ) DIV + ( - 18 ) - - + ( COUNT( * ) ) DIV 0 + - + 79 * - 9 + + + 9 * 98, - + 30 ) AS col2
----
-46

skipif mysql # not compatible
query I rowsort label-7464
SELECT COUNT ( + 72 ) + - COALESCE ( - - 47, + ( - - ( + 49 ) ) / + ( - 18 ) - - + ( COUNT ( * ) ) / 0 + - + 79 * - 9 + + + 9 * 98, - + 30 ) AS col2
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-7465
SELECT DISTINCT + + SUM( + + 85 ) * + 1 * + COUNT( * ) * 81
----
6885

skipif mysql # not compatible
query I rowsort label-7465
SELECT DISTINCT + + SUM ( + + 85 ) * + 1 * + COUNT ( * ) * 81
----
6885

onlyif mysql # aggregate syntax: 
query I rowsort label-7466
SELECT ALL - + 23 * MAX( DISTINCT + ( - + 50 ) )
----
1150

skipif mysql # not compatible
query I rowsort label-7466
SELECT ALL - + 23 * MAX ( DISTINCT + ( - + 50 ) )
----
1150

onlyif mysql # aggregate syntax: 
query I rowsort label-7467
SELECT - 15 * - - COUNT( * ) + + 12 + - 93 + + - COUNT( * ) + - 45 * 30 AS col2
----
-1447

skipif mysql # not compatible
query I rowsort label-7467
SELECT - 15 * - - COUNT ( * ) + + 12 + - 93 + + - COUNT ( * ) + - 45 * 30 AS col2
----
-1447

onlyif mysql # aggregate syntax: 
query II rowsort label-7468
SELECT ALL - + 84 AS col2, 27 + COUNT( * ) + - - 94 AS col2
----
-84
122

skipif mysql # not compatible
query II rowsort label-7468
SELECT ALL - + 84 AS col2, 27 + COUNT ( * ) + - - 94 AS col2
----
-84
122

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7469
SELECT + - 67 * + COUNT( * ) * + - ( + - CASE CAST( + - COALESCE ( 11, - NULLIF ( 43, - 33 / CAST( NULL AS DECIMAL ) ) * + 16 ) AS SIGNED ) WHEN 69 THEN NULL ELSE 28 END ) + - CASE + 96 WHEN COUNT( * ) * + - SUM( DISTINCT - 47 ) THEN 92 WHEN + 24 THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7469
SELECT + - 67 * + COUNT ( * ) * + - ( + - CASE CAST ( + - COALESCE ( 11, - NULLIF ( 43, - 33 / CAST ( NULL AS REAL ) ) * + 16 ) AS INTEGER ) WHEN 69 THEN NULL ELSE 28 END ) + - CASE + 96 WHEN COUNT ( * ) * + - SUM ( DISTINCT - 47 ) THEN 92 WHEN + 24 THEN NULL END AS col1
----
NULL

query I rowsort
SELECT ALL - 80 * 87 AS col2
----
-6960

query I rowsort
SELECT - - 69 + - 28 AS col0
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-7472
SELECT DISTINCT - - 81 * + + MAX( 17 )
----
1377

skipif mysql # not compatible
query I rowsort label-7472
SELECT DISTINCT - - 81 * + + MAX ( 17 )
----
1377

onlyif mysql # aggregate syntax: 
query II rowsort label-7473
SELECT ALL + - 18 - - + 64 + + - 97, - COUNT( * ) AS col0
----
-51
-1

skipif mysql # not compatible
query II rowsort label-7473
SELECT ALL + - 18 - - + 64 + + - 97, - COUNT ( * ) AS col0
----
-51
-1

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7475
SELECT + CAST( - 61 AS SIGNED ) AS col2
----
-61

skipif mysql # not compatible
query I rowsort label-7475
SELECT + CAST ( - 61 AS INTEGER ) AS col2
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-7476
SELECT ALL 47 / + CASE - + 96 WHEN + + 49 + + + ( - 91 ) THEN 99 / SUM( + 72 ) * - + 17 + ( - 65 ) WHEN + 46 THEN NULL ELSE NULL END * MIN( DISTINCT - 59 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7476
SELECT ALL 47 / + CASE - + 96 WHEN + + 49 + + + ( - 91 ) THEN 99 / SUM ( + 72 ) * - + 17 + ( - 65 ) WHEN + 46 THEN NULL ELSE NULL END * MIN ( DISTINCT - 59 )
----
NULL

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

skipif mysql # not compatible
query I rowsort label-7477
SELECT DISTINCT + COUNT ( 28 ) / - 37 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7478
SELECT DISTINCT MAX( - 13 ) * + 56
----
-728

skipif mysql # not compatible
query I rowsort label-7478
SELECT DISTINCT MAX ( - 13 ) * + 56
----
-728

query II rowsort
SELECT + 5 * - - 77 col1, 75
----
385
75

onlyif mysql # DIV for integer division: 
query I rowsort label-7480
SELECT ALL + 57 DIV + 7 AS col2
----
8

skipif mysql # not compatible
query I rowsort label-7480
SELECT ALL + 57 / + 7 AS col2
----
8

query I rowsort
SELECT ALL 7 col1
----
7

query I rowsort
SELECT - 10 * 48 AS col1
----
-480

query I rowsort
SELECT - ( - 37 ) * + - 9
----
-333

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

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

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

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

query I rowsort
SELECT + 63 - + + 2 col2
----
61

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

query I rowsort
SELECT ALL ( + 6 ) + - 84 AS col2
----
-78

query I rowsort
SELECT + 39 - 68 AS col2
----
-29

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

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

query I rowsort
SELECT DISTINCT 3 * + 70 AS col1
----
210

query I rowsort
SELECT + NULLIF ( + 63, - + 61 )
----
63

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7494
SELECT - 0 DIV - 26 * ( 73 ) * - 45 * + COUNT( * ) * - 7 + + 79 * - + ( + COALESCE ( - 97, - - 18, - + 4 ) ) + + + COUNT( * ) * - ( - COUNT( * ) ) * - - 94
----
7757

skipif mysql # not compatible
query I rowsort label-7494
SELECT - 0 / - 26 * ( 73 ) * - 45 * + COUNT ( * ) * - 7 + + 79 * - + ( + COALESCE ( - 97, - - 18, - + 4 ) ) + + + COUNT ( * ) * - ( - COUNT ( * ) ) * - - 94
----
7757

query I rowsort
SELECT + - ( + 5 ) * - 18 AS col0
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-7496
SELECT ALL + 69 * + COUNT( * ) - ( - MAX( - 66 ) )
----
3

skipif mysql # not compatible
query I rowsort label-7496
SELECT ALL + 69 * + COUNT ( * ) - ( - MAX ( - 66 ) )
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7497
SELECT DISTINCT COUNT( DISTINCT - 61 ) * - 77 DIV + + COUNT( * ) - - - 66 + + - MAX( DISTINCT + 85 ) + + 22 AS col2
----
-206

skipif mysql # not compatible
query I rowsort label-7497
SELECT DISTINCT COUNT ( DISTINCT - 61 ) * - 77 / + + COUNT ( * ) - - - 66 + + - MAX ( DISTINCT + 85 ) + + 22 AS col2
----
-206

query II rowsort
SELECT - ( + - COALESCE ( 87, 76 ) ) AS col2, 48 col0
----
87
48

onlyif mysql # aggregate syntax: 
query I rowsort label-7499
SELECT + COALESCE ( + COUNT( * ), 22 + + + COUNT( * ) )
----
1

skipif mysql # not compatible
query I rowsort label-7499
SELECT + COALESCE ( + COUNT ( * ), 22 + + + COUNT ( * ) )
----
1

query I rowsort
SELECT ALL 79 * - 35 - 2 AS col1
----
-2767

query I rowsort
SELECT + + ( - 19 ) * + + COALESCE ( - + 78, + + ( + 68 ) + 0 ) * + 27 * + 59 + 27 AS col1
----
2360853

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7502
SELECT + 96 - NULLIF ( CAST( NULL AS SIGNED ), 88 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7502
SELECT + 96 - NULLIF ( CAST ( NULL AS INTEGER ), 88 ) AS col0
----
NULL

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

skipif mysql # not compatible
query I rowsort label-7503
SELECT DISTINCT + COUNT ( * ) / + - 26 + + + ( - + 37 ) + + 89 AS col1
----
52

query I rowsort
SELECT ALL + + NULLIF ( - 64, 25 ) * - + 66 + - 33 AS col0
----
4191

query I rowsort
SELECT - 23 - - 68
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-7506
SELECT DISTINCT MAX( ALL + 26 )
----
26

skipif mysql # not compatible
query I rowsort label-7506
SELECT DISTINCT MAX ( ALL + 26 )
----
26

query I rowsort
SELECT - 82 * - 11 * 85 col1
----
76670

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7508
SELECT - CASE - 86 WHEN - + 13 THEN NULL WHEN - - 29 THEN CAST( NULL AS SIGNED ) * - + 46 ELSE - + 66 * + - NULLIF ( + ( - + 54 ), + COUNT( * ) ) END + + 96 col0
----
3660

skipif mysql # not compatible
query I rowsort label-7508
SELECT - CASE - 86 WHEN - + 13 THEN NULL WHEN - - 29 THEN CAST ( NULL AS INTEGER ) * - + 46 ELSE - + 66 * + - NULLIF ( + ( - + 54 ), + COUNT ( * ) ) END + + 96 col0
----
3660

onlyif mysql # DIV for integer division: 
query I rowsort label-7509
SELECT - 99 - - 59 DIV 49 * - 23 AS col1
----
-122

skipif mysql # not compatible
query I rowsort label-7509
SELECT - 99 - - 59 / 49 * - 23 AS col1
----
-122

query I rowsort
SELECT ALL + 53 * + 73
----
3869

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

query I rowsort
SELECT - 69 + + 95 * + - 31
----
-3014

query I rowsort
SELECT - 75 - + 65 AS col0
----
-140

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7515
SELECT - 46 DIV + - 83
----
0

skipif mysql # not compatible
query I rowsort label-7515
SELECT - 46 / + - 83
----
0

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

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

query I rowsort
SELECT - 63 + + COALESCE ( - + 91, + - 33 )
----
-154

onlyif mysql # aggregate syntax: 
query I rowsort label-7518
SELECT - 39 + + + COUNT( * ) AS col2
----
-38

skipif mysql # not compatible
query I rowsort label-7518
SELECT - 39 + + + COUNT ( * ) AS col2
----
-38

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7521
SELECT DISTINCT + NULLIF ( + 67, + COUNT( * ) + + + 52 + - + COUNT( * ) + - 79 + - 63 ) + 51 AS col0
----
118

skipif mysql # not compatible
query I rowsort label-7521
SELECT DISTINCT + NULLIF ( + 67, + COUNT ( * ) + + + 52 + - + COUNT ( * ) + - 79 + - 63 ) + 51 AS col0
----
118

query I rowsort
SELECT - 21 + - 79 AS col1
----
-100

onlyif mysql # DIV for integer division: 
query I rowsort label-7523
SELECT - 80 DIV + - 74
----
1

skipif mysql # not compatible
query I rowsort label-7523
SELECT - 80 / + - 74
----
1

query I rowsort
SELECT + CASE - 92 WHEN + - 22 THEN NULL WHEN 93 THEN - 17 * + - 17 * - 63 - 22 ELSE NULL END + COALESCE ( + 47, + - 46 + 94 + - 50 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7525
SELECT + + 95 + + - 80 * + + 40 + SUM( + 86 ) - + - 91 AS col0, 67 * - - COUNT( * ) + + 69 + + + 32 + 75 + + 28 * - 57
----
-2928
-1353

skipif mysql # not compatible
query II rowsort label-7525
SELECT + + 95 + + - 80 * + + 40 + SUM ( + 86 ) - + - 91 AS col0, 67 * - - COUNT ( * ) + + 69 + + + 32 + 75 + + 28 * - 57
----
-2928
-1353

onlyif mysql # aggregate syntax: 
query II rowsort label-7526
SELECT + - 52 * 5 * - + COUNT( * ) + ( 85 ), + COALESCE ( ( - 78 ), + + 69 + + - COUNT( * ), + 55 ) * - 16 col2
----
345
1248

skipif mysql # not compatible
query II rowsort label-7526
SELECT + - 52 * 5 * - + COUNT ( * ) + ( 85 ), + COALESCE ( ( - 78 ), + + 69 + + - COUNT ( * ), + 55 ) * - 16 col2
----
345
1248

onlyif mysql # DIV for integer division: 
query I rowsort label-7527
SELECT ALL + 94 DIV + 85 - + 32 AS col2
----
-31

skipif mysql # not compatible
query I rowsort label-7527
SELECT ALL + 94 / + 85 - + 32 AS col2
----
-31

query I rowsort
SELECT ALL + + 52 * - 12 AS col2
----
-624

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7530
SELECT ALL + CASE - - COALESCE ( 10, - COUNT( * ), + 84 + COUNT( * ) + 73 / + 7 / - 79 * - + 38 + + ( - - 2 ) ) WHEN 88 + - 17 THEN NULL ELSE - - 84 END
----
84

skipif mysql # not compatible
query I rowsort label-7530
SELECT ALL + CASE - - COALESCE ( 10, - COUNT ( * ), + 84 + COUNT ( * ) + 73 / + 7 / - 79 * - + 38 + + ( - - 2 ) ) WHEN 88 + - 17 THEN NULL ELSE - - 84 END
----
84

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

skipif mysql # not compatible
query I rowsort label-7531
SELECT ALL + NULLIF ( - + 0, COUNT ( * ) )
----
0

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

query I rowsort
SELECT DISTINCT - 21 col1
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-7534
SELECT + 47 * + 32 + - 21 + MIN( ALL + 92 ) + - 95 * - COUNT( * ) * - 6 AS col2
----
1005

skipif mysql # not compatible
query I rowsort label-7534
SELECT + 47 * + 32 + - 21 + MIN ( ALL + 92 ) + - 95 * - COUNT ( * ) * - 6 AS col2
----
1005

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

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

query II rowsort
SELECT ALL - 97, 98 AS col1
----
-97
98

onlyif mysql # aggregate syntax: 
query I rowsort label-7537
SELECT SUM( DISTINCT + - 9 ) * + 50 + + + 13
----
-437

skipif mysql # not compatible
query I rowsort label-7537
SELECT SUM ( DISTINCT + - 9 ) * + 50 + + + 13
----
-437

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7538
SELECT 87 * - - 66 DIV + COUNT( * )
----
5742

skipif mysql # not compatible
query I rowsort label-7538
SELECT 87 * - - 66 / + COUNT ( * )
----
5742

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7539
SELECT ALL CAST( NULL AS DECIMAL ) * MAX( ALL - 99 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7539
SELECT ALL CAST ( NULL AS REAL ) * MAX ( ALL - 99 ) AS col0
----
NULL

query I rowsort
SELECT + 68 * 58 * ( + + 45 ) + + - 24 + + 83 * - 42
----
173970

query I rowsort
SELECT ALL - COALESCE ( - 16, + 56 - 34 + 63, + COALESCE ( 68, - 23 * 98 ) ) + 99 * + 61
----
6055

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7542
SELECT DISTINCT + NULLIF ( 27, + 68 ) + + + MAX( + + 87 ) + + + CAST( 90 AS SIGNED )
----
204

skipif mysql # not compatible
query I rowsort label-7542
SELECT DISTINCT + NULLIF ( 27, + 68 ) + + + MAX ( + + 87 ) + + + CAST ( 90 AS INTEGER )
----
204

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7543
SELECT ALL - 57 + + - 20 / - CASE + 95 WHEN COUNT( * ) * + + 81 * - CAST( NULL AS DECIMAL ) + - - 1 / - COUNT( DISTINCT 83 ) THEN + 69 WHEN + - 34 / COALESCE ( + 68, + 78 / - 51, - 9, - 77 + + 1 * + + 45 ) / + - 20 + - 85 / + - 31 THEN 52 / 13 + 71 - 73 * - - COUNT( * ) + - + 86 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7543
SELECT ALL - 57 + + - 20 / - CASE + 95 WHEN COUNT ( * ) * + + 81 * - CAST ( NULL AS REAL ) + - - 1 / - COUNT ( DISTINCT 83 ) THEN + 69 WHEN + - 34 / COALESCE ( + 68, + 78 / - 51, - 9, - 77 + + 1 * + + 45 ) / + - 20 + - 85 / + - 31 THEN 52 / 13 + 71 - 73 * - - COUNT ( * ) + - + 86 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7544
SELECT ( + 97 ) * - + CAST( NULL AS SIGNED ) * - CAST( - + 76 AS SIGNED ) * 79 * + - 30 * + + 31
----
NULL

skipif mysql # not compatible
query I rowsort label-7544
SELECT ( + 97 ) * - + CAST ( NULL AS INTEGER ) * - CAST ( - + 76 AS INTEGER ) * 79 * + - 30 * + + 31
----
NULL

query II rowsort
SELECT ALL 49 AS col2, + 0 AS col1
----
49
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7546
SELECT - CAST( NULL AS DECIMAL ) * - 77 + - ( 15 ) - + + 31 - + 47 * + + 28 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7546
SELECT - CAST ( NULL AS REAL ) * - 77 + - ( 15 ) - + + 31 - + 47 * + + 28 AS col0
----
NULL

query I rowsort
SELECT 43 + 19
----
62

query I rowsort
SELECT 14 * + 96 AS col0
----
1344

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7549
SELECT ALL 60 AS col0, + CAST( NULL AS SIGNED )
----
60
NULL

skipif mysql # not compatible
query II rowsort label-7549
SELECT ALL 60 AS col0, + CAST ( NULL AS INTEGER )
----
60
NULL

query I rowsort
SELECT 23 * 6 AS col2
----
138

query II rowsort
SELECT ALL 15 AS col1, 81
----
15
81

onlyif mysql # DIV for integer division: 
query I rowsort label-7552
SELECT ALL 22 + 39 DIV + ( 50 ) col1
----
22

skipif mysql # not compatible
query I rowsort label-7552
SELECT ALL 22 + 39 / + ( 50 ) col1
----
22

query I rowsort
SELECT DISTINCT + 4 * - 89 AS col2
----
-356

onlyif mysql # aggregate syntax: 
query I rowsort label-7554
SELECT ALL + 95 + - 59 + - 67 * + 16 * - COUNT( * ) * + - 6 * + - 83 + + + 70
----
533962

skipif mysql # not compatible
query I rowsort label-7554
SELECT ALL + 95 + - 59 + - 67 * + 16 * - COUNT ( * ) * + - 6 * + - 83 + + + 70
----
533962

onlyif mysql # aggregate syntax: 
query I rowsort label-7555
SELECT 48 * 68 * - COUNT( * ) AS col1
----
-3264

skipif mysql # not compatible
query I rowsort label-7555
SELECT 48 * 68 * - COUNT ( * ) AS col1
----
-3264

query I rowsort
SELECT ALL + 22 * + 39 col2
----
858

onlyif mysql # DIV for integer division: 
query I rowsort label-7557
SELECT 23 - - 49 - + 79 + + - 87 * 60 + + 13 DIV + + 28
----
-5227

skipif mysql # not compatible
query I rowsort label-7557
SELECT 23 - - 49 - + 79 + + - 87 * 60 + + 13 / + + 28
----
-5227

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7558
SELECT - 83 AS col0, + 10 * - + CAST( NULL AS DECIMAL )
----
-83
NULL

skipif mysql # not compatible
query II rowsort label-7558
SELECT - 83 AS col0, + 10 * - + CAST ( NULL AS REAL )
----
-83
NULL

query I rowsort
SELECT 38 * + 47
----
1786

query II rowsort
SELECT ALL 87, 28 + + + 13 * + - ( + 52 ) AS col0
----
87
-648

onlyif mysql # aggregate syntax: 
query I rowsort label-7561
SELECT SUM( ALL - 1 ) - 70 AS col2
----
-71

skipif mysql # not compatible
query I rowsort label-7561
SELECT SUM ( ALL - 1 ) - 70 AS col2
----
-71

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7562
SELECT ALL + - 16 DIV - + 68 * + - COUNT( * ) + + SUM( DISTINCT 2 ) * - ( + 82 ) + + 73
----
-91

skipif mysql # not compatible
query I rowsort label-7562
SELECT ALL + - 16 / - + 68 * + - COUNT ( * ) + + SUM ( DISTINCT 2 ) * - ( + 82 ) + + 73
----
-91

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7564
SELECT ALL 35, 46 + + + 64 + COUNT( * ) AS col2
----
35
111

skipif mysql # not compatible
query II rowsort label-7564
SELECT ALL 35, 46 + + + 64 + COUNT ( * ) AS col2
----
35
111

query I rowsort
SELECT ALL + 3 * - 77 AS col1
----
-231

onlyif mysql # DIV for integer division: 
query I rowsort label-7566
SELECT - 3 DIV - + 6 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7566
SELECT - 3 / - + 6 AS col1
----
0

query III rowsort
SELECT ALL - 92 * - 35 AS col1, + 74 + 2 AS col0, - 63 + + 60
----
3220
76
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-7568
SELECT 64 * 81 DIV - - 74 AS col1
----
70

skipif mysql # not compatible
query I rowsort label-7568
SELECT 64 * 81 / - - 74 AS col1
----
70

query I rowsort
SELECT ALL - - CASE 24 WHEN - + 27 THEN - + 42 ELSE NULL END AS col1
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7571
SELECT + CASE - 72 WHEN - - 27 THEN + + COUNT( * ) * - - 7 * + - 2 * - - COUNT( * ) - + + 43 * - COUNT( * ) + - - ( - 6 ) END * 64 / + 73 * - 58
----
NULL

skipif mysql # not compatible
query I rowsort label-7571
SELECT + CASE - 72 WHEN - - 27 THEN + + COUNT ( * ) * - - 7 * + - 2 * - - COUNT ( * ) - + + 43 * - COUNT ( * ) + - - ( - 6 ) END * 64 / + 73 * - 58
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7573
SELECT DISTINCT - COUNT( ALL - - 78 ) + - 1
----
-2

skipif mysql # not compatible
query I rowsort label-7573
SELECT DISTINCT - COUNT ( ALL - - 78 ) + - 1
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7574
SELECT CASE + 16 WHEN - COALESCE ( - CAST( NULL AS DECIMAL ), + 69 + + CASE - 31 WHEN + 0 THEN + 30 - + COALESCE ( - - 5, - - NULLIF ( - ( - - 60 ), MIN( ALL + - 30 ) ) ) WHEN CASE 52 WHEN 22 * + 77 THEN - + MAX( - - 29 ) + + 43 + - 42 + + + 29 + - 97 * 7 ELSE - 36 + + 41 END + 16 / CAST( 77 AS SIGNED ) THEN NULL WHEN + - 84 THEN 31 ELSE NULL END ) - + + MIN( + 27 ) + - 18 * 31 + - COALESCE ( + COUNT( * ), - 40 + - 23 / 51 ) THEN NULL WHEN + COUNT( * ) * 43 THEN 23 END * + 81 + 88 * + 97
----
NULL

skipif mysql # not compatible
query I rowsort label-7574
SELECT CASE + 16 WHEN - COALESCE ( - CAST ( NULL AS REAL ), + 69 + + CASE - 31 WHEN + 0 THEN + 30 - + COALESCE ( - - 5, - - NULLIF ( - ( - - 60 ), MIN ( ALL + - 30 ) ) ) WHEN CASE 52 WHEN 22 * + 77 THEN - + MAX ( - - 29 ) + + 43 + - 42 + + + 29 + - 97 * 7 ELSE - 36 + + 41 END + 16 / CAST ( 77 AS INTEGER ) THEN NULL WHEN + - 84 THEN 31 ELSE NULL END ) - + + MIN ( + 27 ) + - 18 * 31 + - COALESCE ( + COUNT ( * ), - 40 + - 23 / 51 ) THEN NULL WHEN + COUNT ( * ) * 43 THEN 23 END * + 81 + 88 * + 97
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7575
SELECT ALL + 77 DIV 47
----
1

skipif mysql # not compatible
query I rowsort label-7575
SELECT ALL + 77 / 47
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7576
SELECT ALL - - NULLIF ( 7, + 36 * 62 * NULLIF ( 13, + - 10 * - COUNT( DISTINCT - 59 ) + + CASE - AVG ( 41 ) WHEN + CASE + 17 WHEN + 95 THEN NULL ELSE + 87 END THEN NULL ELSE ( + 50 ) * + - AVG ( + - 90 ) + - 20 * 73 END * COALESCE ( - ( + 7 ), + + 95 / - 21, - CAST( NULL AS SIGNED ) ) * - 91 + - 63 + - 70 ) ) + CASE + MAX( DISTINCT + ( 58 ) ) WHEN + 6 + 90 + - COUNT( * ) / + SUM( + 90 ) * - COUNT( * ) - - 82 * 59 THEN + 23 END + MIN( + 96 ) * 70 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7576
SELECT ALL - - NULLIF ( 7, + 36 * 62 * NULLIF ( 13, + - 10 * - COUNT ( DISTINCT - 59 ) + + CASE - AVG ( 41 ) WHEN + CASE + 17 WHEN + 95 THEN NULL ELSE + 87 END THEN NULL ELSE ( + 50 ) * + - AVG ( + - 90 ) + - 20 * 73 END * COALESCE ( - ( + 7 ), + + 95 / - 21, - CAST ( NULL AS INTEGER ) ) * - 91 + - 63 + - 70 ) ) + CASE + MAX ( DISTINCT + ( 58 ) ) WHEN + 6 + 90 + - COUNT ( * ) / + SUM ( + 90 ) * - COUNT ( * ) - - 82 * 59 THEN + 23 END + MIN ( + 96 ) * 70 AS col1
----
NULL

query I rowsort
SELECT + 19 * + - 22 * 1 + 64 * 95
----
5662

query I rowsort
SELECT ALL 58 + - + 97
----
-39

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7582
SELECT ALL SUM( ALL 92 ) + - COALESCE ( + 73, - + 79 )
----
19

skipif mysql # not compatible
query I rowsort label-7582
SELECT ALL SUM ( ALL 92 ) + - COALESCE ( + 73, - + 79 )
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-7583
SELECT DISTINCT COUNT( 56 ) + - 55 AS col2
----
-54

skipif mysql # not compatible
query I rowsort label-7583
SELECT DISTINCT COUNT ( 56 ) + - 55 AS col2
----
-54

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

skipif mysql # not compatible
query I rowsort label-7584
SELECT - MAX ( + 51 )
----
-51

query II rowsort
SELECT DISTINCT 81 * 44, - ( + 46 ) * 65 col2
----
3564
-2990

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7586
SELECT ALL - 63 - CASE - 12 WHEN 19 + 9 * - - ( 50 ) THEN - ( - ( - 49 ) ) * + + ( + + 19 ) + + CAST( - 54 AS SIGNED ) ELSE - 95 END
----
32

skipif mysql # not compatible
query I rowsort label-7586
SELECT ALL - 63 - CASE - 12 WHEN 19 + 9 * - - ( 50 ) THEN - ( - ( - 49 ) ) * + + ( + + 19 ) + + CAST ( - 54 AS INTEGER ) ELSE - 95 END
----
32

onlyif mysql # aggregate syntax: 
query II rowsort label-7587
SELECT 49 - + COUNT( * ) col2, + 4
----
48
4

skipif mysql # not compatible
query II rowsort label-7587
SELECT 49 - + COUNT ( * ) col2, + 4
----
48
4

query I rowsort
SELECT COALESCE ( - 53, - 95 ) + + 97 AS col0
----
44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7589
SELECT 58 - + + 56 * - CAST( NULL AS SIGNED ) / + + 30 + 51 / - + 44 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7589
SELECT 58 - + + 56 * - CAST ( NULL AS INTEGER ) / + + 30 + 51 / - + 44 col2
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-7590
SELECT 38 DIV - 70 AS col2, + 40 * - 38
----
0
-1520

skipif mysql # not compatible
query II rowsort label-7590
SELECT 38 / - 70 AS col2, + 40 * - 38
----
0
-1520

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7591
SELECT ALL - - CAST( COALESCE ( + - 31, + NULLIF ( + - 11, 94 ) + + + COUNT( * ) * + 91 + - 14 ) AS SIGNED ) * + - 6 + + CASE COUNT( * ) WHEN - NULLIF ( - 3, + + 0 DIV ( 47 ) * - 1 ) THEN NULL ELSE + - ( - 59 ) - - 93 DIV COUNT( * ) * + 67 END + - - 84
----
6560

skipif mysql # not compatible
query I rowsort label-7591
SELECT ALL - - CAST ( COALESCE ( + - 31, + NULLIF ( + - 11, 94 ) + + + COUNT ( * ) * + 91 + - 14 ) AS INTEGER ) * + - 6 + + CASE COUNT ( * ) WHEN - NULLIF ( - 3, + + 0 / ( 47 ) * - 1 ) THEN NULL ELSE + - ( - 59 ) - - 93 / COUNT ( * ) * + 67 END + - - 84
----
6560

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

skipif mysql # not compatible
query I rowsort label-7592
SELECT - SUM ( DISTINCT - - 39 ) * 15 * COUNT ( * ) AS col2
----
-585

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7593
SELECT - 73 * - 73 * CAST( NULL AS SIGNED ) * - 15 * + - 40 + + + 93 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7593
SELECT - 73 * - 73 * CAST ( NULL AS INTEGER ) * - 15 * + - 40 + + + 93 AS col2
----
NULL

query I rowsort
SELECT DISTINCT + 91 * - + 88
----
-8008

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7595
SELECT - 1 + 78 AS col1, ( - 53 ) - - + 22 + - 10 + + + 33 + - 6 + + COUNT( * ) DIV - ( + 74 ) AS col1
----
77
-14

skipif mysql # not compatible
query II rowsort label-7595
SELECT - 1 + 78 AS col1, ( - 53 ) - - + 22 + - 10 + + + 33 + - 6 + + COUNT ( * ) / - ( + 74 ) AS col1
----
77
-14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7596
SELECT + - COUNT( * ) * - CAST( NULL AS SIGNED ) AS col1, + 11 AS col2
----
NULL
11

skipif mysql # not compatible
query II rowsort label-7596
SELECT + - COUNT ( * ) * - CAST ( NULL AS INTEGER ) AS col1, + 11 AS col2
----
NULL
11

query I rowsort
SELECT DISTINCT 43 * 19 + 47
----
864

onlyif mysql # aggregate syntax: 
query I rowsort label-7598
SELECT DISTINCT SUM( ALL - 92 ) * - 44 * - 1 + - - 19
----
-4029

skipif mysql # not compatible
query I rowsort label-7598
SELECT DISTINCT SUM ( ALL - 92 ) * - 44 * - 1 + - - 19
----
-4029

onlyif mysql # DIV for integer division: 
query II rowsort label-7599
SELECT - 90 + + 49 + COALESCE ( - - 0, + 97 DIV - + 2 + 89 ), ( + 44 ) AS col1
----
-41
44

skipif mysql # not compatible
query II rowsort label-7599
SELECT - 90 + + 49 + COALESCE ( - - 0, + 97 / - + 2 + 89 ), ( + 44 ) AS col1
----
-41
44

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7600
SELECT DISTINCT - CAST( NULL AS DECIMAL ) * 66 + - CASE - 12 WHEN - + 54 THEN NULL WHEN + 67 THEN - COUNT( * ) + - AVG ( ALL - 70 ) + COUNT( * ) END * - + 81 / + - 59
----
NULL

skipif mysql # not compatible
query I rowsort label-7600
SELECT DISTINCT - CAST ( NULL AS REAL ) * 66 + - CASE - 12 WHEN - + 54 THEN NULL WHEN + 67 THEN - COUNT ( * ) + - AVG ( ALL - 70 ) + COUNT ( * ) END * - + 81 / + - 59
----
NULL

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

query I rowsort
SELECT ALL - 98 * + 42 - - 11 + ( - 4 ) col1
----
-4109

query I rowsort
SELECT + ( - 10 ) * + 5
----
-50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7604
SELECT ALL + CAST( NULL AS SIGNED ) * - - 22 + + 12 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7604
SELECT ALL + CAST ( NULL AS INTEGER ) * - - 22 + + 12 AS col1
----
NULL

query I rowsort
SELECT - 88 + 59 AS col1
----
-29

query I rowsort
SELECT - 64 + + 1 - ( + 42 ) AS col0
----
-105

onlyif mysql # aggregate syntax: 
query I rowsort label-7607
SELECT - 23 * + 78 * - MAX( DISTINCT - 73 ) AS col1
----
-130962

skipif mysql # not compatible
query I rowsort label-7607
SELECT - 23 * + 78 * - MAX ( DISTINCT - 73 ) AS col1
----
-130962

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7609
SELECT ALL 43 * - COUNT( * ) - SUM( + 43 ) AS col2
----
-86

skipif mysql # not compatible
query I rowsort label-7609
SELECT ALL 43 * - COUNT ( * ) - SUM ( + 43 ) AS col2
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-7610
SELECT MIN( 80 ) AS col1
----
80

skipif mysql # not compatible
query I rowsort label-7610
SELECT MIN ( 80 ) AS col1
----
80

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

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

query II rowsort
SELECT - 15, - 39 col0
----
-15
-39

onlyif mysql # aggregate syntax: 
query II rowsort label-7613
SELECT + 86 + COUNT( * ) + + 52 AS col0, + 62
----
139
62

skipif mysql # not compatible
query II rowsort label-7613
SELECT + 86 + COUNT ( * ) + + 52 AS col0, + 62
----
139
62

onlyif mysql # aggregate syntax: 
query II rowsort label-7614
SELECT - 98 * + + 59 * - 27, 13 * + COUNT( * ) * - ( + 13 ) AS col1
----
156114
-169

skipif mysql # not compatible
query II rowsort label-7614
SELECT - 98 * + + 59 * - 27, 13 * + COUNT ( * ) * - ( + 13 ) AS col1
----
156114
-169

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7615
SELECT COUNT( * ) AS col2, - 79 DIV - + 97
----
1
0

skipif mysql # not compatible
query II rowsort label-7615
SELECT COUNT ( * ) AS col2, - 79 / - + 97
----
1
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7616
SELECT - ( - - CASE - CAST( NULL AS DECIMAL ) WHEN + + ( + - ( + COUNT( * ) ) ) * + 95 + + + CASE WHEN NOT - 75 < NULL THEN NULL ELSE COUNT( * ) END + - 98 / + + 62 - 66 * - + COUNT( * ) * + 46 + - 67 / + 34 - 70 THEN - - 65 * + - 16 / + 57 END ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7616
SELECT - ( - - CASE - CAST ( NULL AS REAL ) WHEN + + ( + - ( + COUNT ( * ) ) ) * + 95 + + + CASE WHEN NOT - 75 < NULL THEN NULL ELSE COUNT ( * ) END + - 98 / + + 62 - 66 * - + COUNT ( * ) * + 46 + - 67 / + 34 - 70 THEN - - 65 * + - 16 / + 57 END ) col1
----
NULL

query I rowsort
SELECT + 39 + 86 + - 6 AS col1
----
119

onlyif mysql # aggregate syntax: 
query I rowsort label-7618
SELECT MAX( - 83 )
----
-83

skipif mysql # not compatible
query I rowsort label-7618
SELECT MAX ( - 83 )
----
-83

query II rowsort
SELECT ALL 82 AS col0, 69 * - 63 AS col1
----
82
-4347

onlyif mysql # aggregate syntax: 
query I rowsort label-7620
SELECT + 3 * SUM( DISTINCT + 52 )
----
156

skipif mysql # not compatible
query I rowsort label-7620
SELECT + 3 * SUM ( DISTINCT + 52 )
----
156

query I rowsort
SELECT DISTINCT - ( 11 ) AS col1
----
-11

query I rowsort
SELECT ALL + 25 * 38 * - 74 * CASE 79 WHEN + - 58 THEN - - 54 END / 52 * + 59 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7623
SELECT + 2 - + MAX( - 17 ) * + 54 * + COUNT( * )
----
920

skipif mysql # not compatible
query I rowsort label-7623
SELECT + 2 - + MAX ( - 17 ) * + 54 * + COUNT ( * )
----
920

onlyif mysql # DIV for integer division: 
query I rowsort label-7624
SELECT + + 70 DIV - 27 col1
----
-2

skipif mysql # not compatible
query I rowsort label-7624
SELECT + + 70 / - 27 col1
----
-2

query I rowsort
SELECT - 94 + + 73
----
-21

onlyif mysql # DIV for integer division: 
query II rowsort label-7626
SELECT ALL + 49 AS col0, - 19 DIV + 95
----
49
0

skipif mysql # not compatible
query II rowsort label-7626
SELECT ALL + 49 AS col0, - 19 / + 95
----
49
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7627
SELECT + MAX( ALL + - ( + 31 ) ) - 26 AS col2
----
-57

skipif mysql # not compatible
query I rowsort label-7627
SELECT + MAX ( ALL + - ( + 31 ) ) - 26 AS col2
----
-57

query I rowsort
SELECT ALL + 10 * - - 24 col1
----
240

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7629
SELECT + 60 DIV 39 * + 87 * + + COUNT( * ) + + + 30
----
117

skipif mysql # not compatible
query I rowsort label-7629
SELECT + 60 / 39 * + 87 * + + COUNT ( * ) + + + 30
----
117

query I rowsort
SELECT DISTINCT - 99 + + 96 AS col0
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7631
SELECT DISTINCT - - 44 + + 40 * - + COALESCE ( + ( + ( COALESCE ( + ( + + 66 ), 41 DIV - 44 * + 87 ) ) ), 25 + 40 * - 61 + 18 + + MIN( DISTINCT + 76 ) - - + 85 ) * + 0 AS col2
----
44

skipif mysql # not compatible
query I rowsort label-7631
SELECT DISTINCT - - 44 + + 40 * - + COALESCE ( + ( + ( COALESCE ( + ( + + 66 ), 41 / - 44 * + 87 ) ) ), 25 + 40 * - 61 + 18 + + MIN ( DISTINCT + 76 ) - - + 85 ) * + 0 AS col2
----
44

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7633
SELECT + CAST( NULL AS SIGNED ) AS col2, + 24 AS col0
----
NULL
24

skipif mysql # not compatible
query II rowsort label-7633
SELECT + CAST ( NULL AS INTEGER ) AS col2, + 24 AS col0
----
NULL
24

query I rowsort
SELECT - - 63 * + 33 * - + 62 + + + 95 AS col0
----
-128803

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7635
SELECT DISTINCT - + 73 DIV - CAST( + ( + 21 ) AS SIGNED ) + + 50 col0
----
53

skipif mysql # not compatible
query I rowsort label-7635
SELECT DISTINCT - + 73 / - CAST ( + ( + 21 ) AS INTEGER ) + + 50 col0
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-7636
SELECT + - COALESCE ( + COUNT( * ), + MAX( + 71 ), - 88, + - 34 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-7636
SELECT + - COALESCE ( + COUNT ( * ), + MAX ( + 71 ), - 88, + - 34 ) AS col1
----
-1

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7637
SELECT CAST( NULL AS DECIMAL ), + 97 + 43 AS col1
----
NULL
140

skipif mysql # not compatible
query II rowsort label-7637
SELECT CAST ( NULL AS REAL ), + 97 + 43 AS col1
----
NULL
140

onlyif mysql # DIV for integer division: 
query I rowsort label-7638
SELECT ALL - - 8 DIV 77 * + - 87 + 50
----
50

skipif mysql # not compatible
query I rowsort label-7638
SELECT ALL - - 8 / 77 * + - 87 + 50
----
50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7639
SELECT AVG ( DISTINCT CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7639
SELECT AVG ( DISTINCT CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7640
SELECT DISTINCT 77 DIV 70 + - - COUNT( * ) DIV + - 36 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-7640
SELECT DISTINCT 77 / 70 + - - COUNT ( * ) / + - 36 AS col1
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7641
SELECT DISTINCT + SUM( DISTINCT 81 ), + 72 - 44 + - COUNT( * ) DIV - 14 DIV + COUNT( * ) - + 41 AS col0
----
81
-13

skipif mysql # not compatible
query II rowsort label-7641
SELECT DISTINCT + SUM ( DISTINCT 81 ), + 72 - 44 + - COUNT ( * ) / - 14 / + COUNT ( * ) - + 41 AS col0
----
81
-13

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7643
SELECT ALL 70 DIV + 37 - - 91 - ( - 95 )
----
187

skipif mysql # not compatible
query I rowsort label-7643
SELECT ALL 70 / + 37 - - 91 - ( - 95 )
----
187

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

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

query I rowsort
SELECT - 81 + + 47 + + ( + 7 ) AS col2
----
-27

query I rowsort
SELECT ALL + 80 * - + 96 - - ( - 22 )
----
-7702

query I rowsort
SELECT ( 11 ) col0
----
11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7648
SELECT - COUNT( * ) * - 47 DIV + 48
----
0

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

query II rowsort
SELECT DISTINCT + ( + 94 ) AS col1, + 2 + - - 76
----
94
78

query I rowsort
SELECT - 27 + 82
----
55

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7653
SELECT ALL - 74 + - 0 * 60 DIV 83 DIV + + ( 16 ) * - - COALESCE ( - - NULLIF ( + 10, + 56 ), - + 25 )
----
-74

skipif mysql # not compatible
query I rowsort label-7653
SELECT ALL - 74 + - 0 * 60 / 83 / + + ( 16 ) * - - COALESCE ( - - NULLIF ( + 10, + 56 ), - + 25 )
----
-74

query II rowsort
SELECT 48 + 69 - - + 63 * 2, + 97 * + 57 AS col1
----
243
5529

onlyif mysql # aggregate syntax: 
query I rowsort label-7655
SELECT + 99 + + 92 - + - NULLIF ( - 1, - - 24 / - 6 + + COUNT( ALL + + ( 69 ) ) * 67 + + - CASE + ( - 35 ) WHEN + 11 THEN - + 96 * + + 10 + + - 72 WHEN + - ( - COUNT( * ) ) - - 20 THEN - COUNT( * ) / - 8 END - + 24 ) AS col2
----
190

skipif mysql # not compatible
query I rowsort label-7655
SELECT + 99 + + 92 - + - NULLIF ( - 1, - - 24 / - 6 + + COUNT ( ALL + + ( 69 ) ) * 67 + + - CASE + ( - 35 ) WHEN + 11 THEN - + 96 * + + 10 + + - 72 WHEN + - ( - COUNT ( * ) ) - - 20 THEN - COUNT ( * ) / - 8 END - + 24 ) AS col2
----
190

query II rowsort
SELECT 28 - + 60 AS col0, + 26
----
-32
26

query I rowsort
SELECT ( + 25 ) * + + 66
----
1650

onlyif mysql # aggregate syntax: 
query I rowsort label-7658
SELECT ALL 61 + - CASE - + ( 44 ) WHEN + + 18 + - - CASE 52 WHEN + - ( + + ( - + 63 ) ) THEN - - 90 WHEN - COALESCE ( - 28, - ( + 3 ) / + 51 + - 53 * - ( - 17 ) ) - + - 75 / - + 4 THEN NULL END + - 72 - - COUNT( * ) * + - ( + 37 ) THEN - 62 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7658
SELECT ALL 61 + - CASE - + ( 44 ) WHEN + + 18 + - - CASE 52 WHEN + - ( + + ( - + 63 ) ) THEN - - 90 WHEN - COALESCE ( - 28, - ( + 3 ) / + 51 + - 53 * - ( - 17 ) ) - + - 75 / - + 4 THEN NULL END + - 72 - - COUNT ( * ) * + - ( + 37 ) THEN - 62 END
----
NULL

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

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

query I rowsort
SELECT - - NULLIF ( - 3, - + 93 )
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7661
SELECT - COALESCE ( - ( + SUM( - 73 ) ), + 91 * - - COUNT( * ) + - 44, ( - COUNT( - + ( + + 0 ) ) ) + 8 ) + - 91 + + - 7 * 37 + + 96
----
-327

skipif mysql # not compatible
query I rowsort label-7661
SELECT - COALESCE ( - ( + SUM ( - 73 ) ), + 91 * - - COUNT ( * ) + - 44, ( - COUNT ( - + ( + + 0 ) ) ) + 8 ) + - 91 + + - 7 * 37 + + 96
----
-327

onlyif mysql # aggregate syntax: 
query I rowsort label-7662
SELECT ALL + 69 + + CASE WHEN - 12 IS NOT NULL THEN - MIN( + 15 ) END col1
----
54

skipif mysql # not compatible
query I rowsort label-7662
SELECT ALL + 69 + + CASE WHEN - 12 IS NOT NULL THEN - MIN ( + 15 ) END col1
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-7663
SELECT - COALESCE ( - 2, MIN( ALL - - 46 ) ) AS col0
----
2

skipif mysql # not compatible
query I rowsort label-7663
SELECT - COALESCE ( - 2, MIN ( ALL - - 46 ) ) AS col0
----
2

query I rowsort
SELECT ALL + 89 + - 38 + 2 * 87 AS col1
----
225

query II rowsort
SELECT ALL ( 56 ) AS col0, 61 AS col2
----
56
61

query II rowsort
SELECT 0 * 62 AS col0, 6
----
0
6

onlyif mysql # aggregate syntax: 
query I rowsort label-7667
SELECT DISTINCT - 26 - - - SUM( + + 79 )
----
-105

skipif mysql # not compatible
query I rowsort label-7667
SELECT DISTINCT - 26 - - - SUM ( + + 79 )
----
-105

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7668
SELECT CAST( NULL AS SIGNED ) / 37 / + 18
----
NULL

skipif mysql # not compatible
query I rowsort label-7668
SELECT CAST ( NULL AS INTEGER ) / 37 / + 18
----
NULL

query I rowsort
SELECT ALL + 31 * - + 39 col1
----
-1209

query I rowsort
SELECT ALL - 76 * - 51 AS col0
----
3876

query I rowsort
SELECT DISTINCT - ( - 38 ) AS col2
----
38

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7673
SELECT ( 43 ) - - 19, ( + 39 ) * - MAX( ALL + 31 ) DIV COUNT( * ) + + 94 AS col0
----
62
-1115

skipif mysql # not compatible
query II rowsort label-7673
SELECT ( 43 ) - - 19, ( + 39 ) * - MAX ( ALL + 31 ) / COUNT ( * ) + + 94 AS col0
----
62
-1115

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7674
SELECT + 0 col2, + 13 + CAST( + + 61 AS SIGNED )
----
0
74

skipif mysql # not compatible
query II rowsort label-7674
SELECT + 0 col2, + 13 + CAST ( + + 61 AS INTEGER )
----
0
74

onlyif mysql # aggregate syntax: 
query I rowsort label-7675
SELECT CASE + - ( + 12 ) WHEN - - 73 + + COUNT( * ) + - 76 * - 52 * + 60 / - MIN( DISTINCT 16 ) THEN NULL WHEN - + CASE - - 67 WHEN MIN( - 69 ) THEN + 24 WHEN - - 44 THEN NULL ELSE + + 83 END THEN - 26 END * - + COUNT( * ) - - 23 * + + 7 + 1
----
NULL

skipif mysql # not compatible
query I rowsort label-7675
SELECT CASE + - ( + 12 ) WHEN - - 73 + + COUNT ( * ) + - 76 * - 52 * + 60 / - MIN ( DISTINCT 16 ) THEN NULL WHEN - + CASE - - 67 WHEN MIN ( - 69 ) THEN + 24 WHEN - - 44 THEN NULL ELSE + + 83 END THEN - 26 END * - + COUNT ( * ) - - 23 * + + 7 + 1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7676
SELECT + 28 DIV - MIN( 54 ) * 46 + 28 * 33
----
924

skipif mysql # not compatible
query I rowsort label-7676
SELECT + 28 / - MIN ( 54 ) * 46 + 28 * 33
----
924

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7678
SELECT DISTINCT CASE 78 WHEN + 37 THEN 35 * - 42 + 29 + 94 WHEN + 84 THEN NULL ELSE - + CAST( + - MIN( + 79 ) AS SIGNED ) * + ( - + COUNT( * ) ) END * - 63 * - 67 + NULLIF ( CAST( - ( 82 ) AS SIGNED ), + 86 * - 7 / CAST( 17 AS SIGNED ) ) AS col1
----
-333541

skipif mysql # not compatible
query I rowsort label-7678
SELECT DISTINCT CASE 78 WHEN + 37 THEN 35 * - 42 + 29 + 94 WHEN + 84 THEN NULL ELSE - + CAST ( + - MIN ( + 79 ) AS INTEGER ) * + ( - + COUNT ( * ) ) END * - 63 * - 67 + NULLIF ( CAST ( - ( 82 ) AS INTEGER ), + 86 * - 7 / CAST ( 17 AS INTEGER ) ) AS col1
----
-333541

query II rowsort
SELECT + 65 AS col0, - 93
----
65
-93

query I rowsort
SELECT ALL - NULLIF ( + 30, - 83 ) AS col0
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-7681
SELECT + 65 * - - 48 * + 43 * - 54 * COUNT( DISTINCT 46 ) * + 89 + - 61 + + COUNT( * ) AS col2
----
-644773020

skipif mysql # not compatible
query I rowsort label-7681
SELECT + 65 * - - 48 * + 43 * - 54 * COUNT ( DISTINCT 46 ) * + 89 + - 61 + + COUNT ( * ) AS col2
----
-644773020

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7684
SELECT CAST( NULL AS SIGNED ) * - 3
----
NULL

skipif mysql # not compatible
query I rowsort label-7684
SELECT CAST ( NULL AS INTEGER ) * - 3
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7685
SELECT 83 + - 42 DIV + + 55 AS col2
----
83

skipif mysql # not compatible
query I rowsort label-7685
SELECT 83 + - 42 / + + 55 AS col2
----
83

query II rowsort
SELECT 93 + 63 - + - 33 AS col0, 87
----
189
87

query II rowsort
SELECT - - 84 AS col1, - 79
----
84
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-7688
SELECT + 6 * + ( - COUNT( * ) ) + + 99 * 77
----
7617

skipif mysql # not compatible
query I rowsort label-7688
SELECT + 6 * + ( - COUNT ( * ) ) + + 99 * 77
----
7617

query I rowsort
SELECT DISTINCT + - 65 * 48
----
-3120

onlyif mysql # aggregate syntax: 
query I rowsort label-7690
SELECT ALL + NULLIF ( + 54, - ( - - ( + + ( - - ( - 65 ) ) ) ) ) + + CASE + - 5 WHEN - + COUNT( * ) + + SUM( DISTINCT 63 ) THEN - 95 + + + 64 WHEN - 72 THEN 73 + + + MIN( ALL 23 ) * - - 17 * - NULLIF ( AVG ( DISTINCT + - 14 ), COUNT( * ) ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7690
SELECT ALL + NULLIF ( + 54, - ( - - ( + + ( - - ( - 65 ) ) ) ) ) + + CASE + - 5 WHEN - + COUNT ( * ) + + SUM ( DISTINCT 63 ) THEN - 95 + + + 64 WHEN - 72 THEN 73 + + + MIN ( ALL 23 ) * - - 17 * - NULLIF ( AVG ( DISTINCT + - 14 ), COUNT ( * ) ) END AS col0
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7692
SELECT + 47 * 32 DIV - 65
----
-23

skipif mysql # not compatible
query I rowsort label-7692
SELECT + 47 * 32 / - 65
----
-23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7693
SELECT DISTINCT - ( - + NULLIF ( SUM( + + 56 ), - - 84 ) ) DIV NULLIF ( + - 81, + - 39 ) col1
----
0

skipif mysql # not compatible
query I rowsort label-7693
SELECT DISTINCT - ( - + NULLIF ( SUM ( + + 56 ), - - 84 ) ) / NULLIF ( + - 81, + - 39 ) col1
----
0

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

query I rowsort
SELECT 2 - 35 AS col2
----
-33

query I rowsort
SELECT - 13 + + - 76 AS col0
----
-89

query I rowsort
SELECT 92 * + + ( + 13 ) AS col2
----
1196

query II rowsort
SELECT - 90, 60 AS col1
----
-90
60

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

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

query I rowsort
SELECT 81 * 94 + + + 82
----
7696

query I rowsort
SELECT CASE + - 40 WHEN ( + 15 ) + - 43 - + 34 THEN 2 + - NULLIF ( 41, ( - NULLIF ( + 10, - - 85 ) ) * 59 ) WHEN 43 * + - 98 / 56 + - + 86 THEN - 23 WHEN ( - 54 ) THEN + 12 ELSE + 21 END AS col0
----
21

query II rowsort
SELECT + 46, + 47 AS col2
----
46
47

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

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

query I rowsort
SELECT 32 * - + 0 * + 54 AS col0
----
0

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

skipif mysql # not compatible
query I rowsort label-7705
SELECT MIN ( + + 96 )
----
96

query II rowsort
SELECT ALL - 84 AS col0, + 63
----
-84
63

query II rowsort
SELECT ALL + 87, + 52 AS col1
----
87
52

query I rowsort
SELECT + 27 * + 10 AS col0
----
270

onlyif mysql # aggregate syntax: 
query I rowsort label-7709
SELECT + NULLIF ( - CASE COALESCE ( AVG ( DISTINCT - 25 ), - 48, 57 + - AVG ( ALL - 63 ), - - 34 ) WHEN - + NULLIF ( + - MAX( DISTINCT + 35 ), + 98 - - 96 + - + COUNT( ALL - 75 ) ) THEN COUNT( * ) + - 21 WHEN - 21 * - - COUNT( + 60 ) * + 29 + + NULLIF ( - - 31, + + 99 ) + - ( 87 ) * - 71 * - - 83 * - COUNT( * ) THEN NULL END, ( - + COUNT( * ) ) ) * - 89 * + + 24
----
NULL

skipif mysql # not compatible
query I rowsort label-7709
SELECT + NULLIF ( - CASE COALESCE ( AVG ( DISTINCT - 25 ), - 48, 57 + - AVG ( ALL - 63 ), - - 34 ) WHEN - + NULLIF ( + - MAX ( DISTINCT + 35 ), + 98 - - 96 + - + COUNT ( ALL - 75 ) ) THEN COUNT ( * ) + - 21 WHEN - 21 * - - COUNT ( + 60 ) * + 29 + + NULLIF ( - - 31, + + 99 ) + - ( 87 ) * - 71 * - - 83 * - COUNT ( * ) THEN NULL END, ( - + COUNT ( * ) ) ) * - 89 * + + 24
----
NULL

query I rowsort
SELECT + 36 * 38 - + 37
----
1331

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7711
SELECT + COALESCE ( 23, + 66 + + CAST( NULLIF ( + - 26, 1 * - 53 + 62 * - - 47 ) AS SIGNED ) - + 8 )
----
23

skipif mysql # not compatible
query I rowsort label-7711
SELECT + COALESCE ( 23, + 66 + + CAST ( NULLIF ( + - 26, 1 * - 53 + 62 * - - 47 ) AS INTEGER ) - + 8 )
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-7712
SELECT + 91 + + NULLIF ( - + MAX( DISTINCT COALESCE ( - - 23, - 38 ) ), MIN( ALL + 33 ) )
----
68

skipif mysql # not compatible
query I rowsort label-7712
SELECT + 91 + + NULLIF ( - + MAX ( DISTINCT COALESCE ( - - 23, - 38 ) ), MIN ( ALL + 33 ) )
----
68

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7714
SELECT SUM( DISTINCT + + 56 ) AS col0
----
56

skipif mysql # not compatible
query I rowsort label-7714
SELECT SUM ( DISTINCT + + 56 ) AS col0
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-7715
SELECT + 36 * + 44 * - + COUNT( * ) * 24 + + 55
----
-37961

skipif mysql # not compatible
query I rowsort label-7715
SELECT + 36 * + 44 * - + COUNT ( * ) * 24 + + 55
----
-37961

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7717
SELECT COUNT( * ) * COUNT( * ) / - COALESCE ( 41, 56 * - 17 - - - 55, + - 35 * AVG ( 30 ) + - - 75 ) + + CAST( NULL AS SIGNED ) - 45 / + 42 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7717
SELECT COUNT ( * ) * COUNT ( * ) / - COALESCE ( 41, 56 * - 17 - - - 55, + - 35 * AVG ( 30 ) + - - 75 ) + + CAST ( NULL AS INTEGER ) - 45 / + 42 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7718
SELECT COALESCE ( - - ( + 67 ), + 46 ) * + - 59 * + - 45 - + - 63 + + 15 + + 94 * + + 67 + + COUNT( ALL 62 )
----
184262

skipif mysql # not compatible
query I rowsort label-7718
SELECT COALESCE ( - - ( + 67 ), + 46 ) * + - 59 * + - 45 - + - 63 + + 15 + + 94 * + + 67 + + COUNT ( ALL 62 )
----
184262

query I rowsort
SELECT ALL + - 63 + - 65 + - - 6 * + 72
----
304

onlyif mysql # aggregate syntax: 
query I rowsort label-7720
SELECT ALL + ( + 91 ) + 89 - + - 13 * - ( COALESCE ( 44, + COUNT( * ) ) )
----
-392

skipif mysql # not compatible
query I rowsort label-7720
SELECT ALL + ( + 91 ) + 89 - + - 13 * - ( COALESCE ( 44, + COUNT ( * ) ) )
----
-392

query II rowsort
SELECT ALL + + 78, ( + + 79 ) AS col2
----
78
79

onlyif mysql # aggregate syntax: 
query I rowsort label-7722
SELECT + - 33 + COUNT( * ) * - + ( 9 ) * + - 25
----
192

skipif mysql # not compatible
query I rowsort label-7722
SELECT + - 33 + COUNT ( * ) * - + ( 9 ) * + - 25
----
192

query II rowsort
SELECT ALL 33 AS col1, 47
----
33
47

query I rowsort
SELECT ALL + CASE - 78 WHEN + 83 THEN NULL WHEN - 51 THEN + + 29 END
----
NULL

query I rowsort
SELECT - + 58 + 17 * - 2 AS col2
----
-92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7726
SELECT - ( - NULLIF ( - 47, + - CAST( NULL AS SIGNED ) + 17 ) ) * - - ( + - 46 ), + CASE + 52 WHEN + 61 + + - 38 THEN NULL WHEN - 92 THEN SUM( DISTINCT - CASE + 70 WHEN - 76 THEN - 33 WHEN 75 THEN NULL END ) * - 57 ELSE ( + - MIN( 71 ) ) + - 2 END AS col0
----
2162
-73

skipif mysql # not compatible
query II rowsort label-7726
SELECT - ( - NULLIF ( - 47, + - CAST ( NULL AS INTEGER ) + 17 ) ) * - - ( + - 46 ), + CASE + 52 WHEN + 61 + + - 38 THEN NULL WHEN - 92 THEN SUM ( DISTINCT - CASE + 70 WHEN - 76 THEN - 33 WHEN 75 THEN NULL END ) * - 57 ELSE ( + - MIN ( 71 ) ) + - 2 END AS col0
----
2162
-73

query I rowsort
SELECT + 84 + + 21 * + 49
----
1113

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7728
SELECT ALL - MAX( DISTINCT 97 ), + 51 + + MIN( - - CAST( NULL AS SIGNED ) ) * - 42 + + 89 + + ( 92 ) AS col1
----
-97
NULL

skipif mysql # not compatible
query II rowsort label-7728
SELECT ALL - MAX ( DISTINCT 97 ), + 51 + + MIN ( - - CAST ( NULL AS INTEGER ) ) * - 42 + + 89 + + ( 92 ) AS col1
----
-97
NULL

query II rowsort
SELECT + 67, - 32 AS col0
----
67
-32

query I rowsort
SELECT + 97 + - 29 + ( + - 51 ) - - + 97 + - 12 / CASE + + NULLIF ( - 5, - 35 ) WHEN + + 9 THEN + + 38 + + ( - 33 ) END AS col1
----
NULL

query I rowsort
SELECT + - 81 * + + 15 AS col2
----
-1215

query I rowsort
SELECT - - ( + 5 ) * + 96 * + 0 * 44 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7733
SELECT ALL - 26 * + - COUNT( * ) + - 73
----
-47

skipif mysql # not compatible
query I rowsort label-7733
SELECT ALL - 26 * + - COUNT ( * ) + - 73
----
-47

onlyif mysql # aggregate syntax: 
query II rowsort label-7734
SELECT DISTINCT - 88 AS col2, + CASE - COUNT( * ) WHEN - - 5 / 73 THEN NULL WHEN + 39 * - 97 THEN + 59 * + 40 + - 78 + + - COUNT( * ) + + ( - + COUNT( * ) ) + - 75 + - NULLIF ( 37, 2 ) * + - 9 ELSE NULL END
----
-88
NULL

skipif mysql # not compatible
query II rowsort label-7734
SELECT DISTINCT - 88 AS col2, + CASE - COUNT ( * ) WHEN - - 5 / 73 THEN NULL WHEN + 39 * - 97 THEN + 59 * + 40 + - 78 + + - COUNT ( * ) + + ( - + COUNT ( * ) ) + - 75 + - NULLIF ( 37, 2 ) * + - 9 ELSE NULL END
----
-88
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7735
SELECT - - 82 + - 68 - - 99 DIV COUNT( * ) + - - COUNT( * ) + - - 48 - + + 13 + 61 AS col0
----
210

skipif mysql # not compatible
query I rowsort label-7735
SELECT - - 82 + - 68 - - 99 / COUNT ( * ) + - - COUNT ( * ) + - - 48 - + + 13 + 61 AS col0
----
210

query II rowsort
SELECT - 5 + + 98 AS col2, + 68 * + - 87 * - + 49 + + 67 AS col1
----
93
289951

query II rowsort
SELECT - 82 + 7 AS col0, - 66 AS col0
----
-75
-66

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

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

query II rowsort
SELECT + 46 + + 2 AS col2, + COALESCE ( - 52, + - 96, - - 79 + + - 81 ) + 35 AS col2
----
48
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-7740
SELECT DISTINCT 63 * MAX( ( - 1 ) )
----
-63

skipif mysql # not compatible
query I rowsort label-7740
SELECT DISTINCT 63 * MAX ( ( - 1 ) )
----
-63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7741
SELECT + 4 + - 33 + - 61 DIV + - COUNT( * ) col1
----
32

skipif mysql # not compatible
query I rowsort label-7741
SELECT + 4 + - 33 + - 61 / + - COUNT ( * ) col1
----
32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7742
SELECT DISTINCT ( COUNT( * ) ) DIV + 51 + - COUNT( * ) * 32 * 21 + 76
----
-596

skipif mysql # not compatible
query I rowsort label-7742
SELECT DISTINCT ( COUNT ( * ) ) / + 51 + - COUNT ( * ) * 32 * 21 + 76
----
-596

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7743
SELECT DISTINCT 82 * - COUNT( * ) + 94 + - 5 + + 85 + + 9 + 22 + + 73 * 9 DIV 49 * + 98 * + - COUNT( * ) * COUNT( ALL + 60 ) col1
----
-1151

skipif mysql # not compatible
query I rowsort label-7743
SELECT DISTINCT 82 * - COUNT ( * ) + 94 + - 5 + + 85 + + 9 + 22 + + 73 * 9 / 49 * + 98 * + - COUNT ( * ) * COUNT ( ALL + 60 ) col1
----
-1151

onlyif mysql # DIV for integer division: 
query I rowsort label-7744
SELECT - 68 DIV + 35 col0
----
-1

skipif mysql # not compatible
query I rowsort label-7744
SELECT - 68 / + 35 col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7745
SELECT + 50 + 19 * + COUNT( + + 78 ) * - + 52
----
-938

skipif mysql # not compatible
query I rowsort label-7745
SELECT + 50 + 19 * + COUNT ( + + 78 ) * - + 52
----
-938

query I rowsort
SELECT ALL 94 * - 22 + + ( 46 )
----
-2022

onlyif mysql # DIV for integer division: 
query I rowsort label-7747
SELECT + 38 DIV 37
----
1

skipif mysql # not compatible
query I rowsort label-7747
SELECT + 38 / 37
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-7748
SELECT DISTINCT 28 DIV + 50
----
0

skipif mysql # not compatible
query I rowsort label-7748
SELECT DISTINCT 28 / + 50
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7749
SELECT DISTINCT + + CASE + 78 WHEN - 98 THEN - 40 / 34 * + 84 WHEN - ( - NULLIF ( 62, 0 * + 68 + + MIN( - CAST( + - 35 AS SIGNED ) ) / - ( + 88 ) / + + 32 - + - 65 + - 7 * - 21 * + - ( COUNT( * ) ) ) ) THEN - - 98 * 48 * - 5 / + - CAST( - CAST( 0 AS SIGNED ) AS SIGNED ) - + 40 + + 65 WHEN - + MIN( DISTINCT - - 34 ) THEN - 65 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7749
SELECT DISTINCT + + CASE + 78 WHEN - 98 THEN - 40 / 34 * + 84 WHEN - ( - NULLIF ( 62, 0 * + 68 + + MIN ( - CAST ( + - 35 AS INTEGER ) ) / - ( + 88 ) / + + 32 - + - 65 + - 7 * - 21 * + - ( COUNT ( * ) ) ) ) THEN - - 98 * 48 * - 5 / + - CAST ( - CAST ( 0 AS INTEGER ) AS INTEGER ) - + 40 + + 65 WHEN - + MIN ( DISTINCT - - 34 ) THEN - 65 END AS col2
----
NULL

query I rowsort
SELECT DISTINCT + 21 * - 10 - + COALESCE ( + 22, 40 ) AS col2
----
-232

onlyif mysql # aggregate syntax: 
query I rowsort label-7751
SELECT + - MAX( - 98 ) + + + COUNT( * ) col1
----
99

skipif mysql # not compatible
query I rowsort label-7751
SELECT + - MAX ( - 98 ) + + + COUNT ( * ) col1
----
99

query I rowsort
SELECT - 39 * + 42 * - 51 + 81
----
83619

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7753
SELECT DISTINCT + CASE - ( + COUNT( * ) ) WHEN + 47 * 31 + - 18 * + + 92 + 63 THEN CAST( NULL AS SIGNED ) * - + 14 ELSE + - COUNT( * ) + + COUNT( * ) * 22 END
----
21

skipif mysql # not compatible
query I rowsort label-7753
SELECT DISTINCT + CASE - ( + COUNT ( * ) ) WHEN + 47 * 31 + - 18 * + + 92 + 63 THEN CAST ( NULL AS INTEGER ) * - + 14 ELSE + - COUNT ( * ) + + COUNT ( * ) * 22 END
----
21

query I rowsort
SELECT DISTINCT - ( 3 ) * + 4 AS col1
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-7755
SELECT DISTINCT SUM( DISTINCT 0 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7755
SELECT DISTINCT SUM ( DISTINCT 0 ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7756
SELECT + - COUNT( * ) + - 51 * - - 82 * COUNT( DISTINCT 7 ) AS col2
----
-4183

skipif mysql # not compatible
query I rowsort label-7756
SELECT + - COUNT ( * ) + - 51 * - - 82 * COUNT ( DISTINCT 7 ) AS col2
----
-4183

onlyif mysql # aggregate syntax: 
query I rowsort label-7757
SELECT + + 9 * + 27 * + COUNT( * ) * - + COUNT( * ) + + 21 + - 55 AS col1
----
-277

skipif mysql # not compatible
query I rowsort label-7757
SELECT + + 9 * + 27 * + COUNT ( * ) * - + COUNT ( * ) + + 21 + - 55 AS col1
----
-277

query I rowsort
SELECT - 76 + - CASE + + NULLIF ( + - NULLIF ( + 5, - + 17 ), + - 32 ) WHEN + + ( 37 ) THEN - 66 END
----
NULL

query I rowsort
SELECT ALL + 72 + + - 87 AS col1
----
-15

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

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

query I rowsort
SELECT 48 * + 58 * - 48 col0
----
-133632

query I rowsort
SELECT 51 - + 53
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-7763
SELECT DISTINCT CASE + - 44 WHEN + - 17 * - 49 - - ( - 88 ) * - - 67 * COUNT( * ) THEN + 17 WHEN + - SUM( DISTINCT - 67 ) THEN NULL END + 36 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7763
SELECT DISTINCT CASE + - 44 WHEN + - 17 * - 49 - - ( - 88 ) * - - 67 * COUNT ( * ) THEN + 17 WHEN + - SUM ( DISTINCT - 67 ) THEN NULL END + 36 AS col0
----
NULL

query I rowsort
SELECT ALL 34 + 63 * + - 69 AS col2
----
-4313

query I rowsort
SELECT DISTINCT - 28 + - 7 AS col0
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-7766
SELECT 41 + 17 + - 19 + + + COUNT( * ) AS col0
----
40

skipif mysql # not compatible
query I rowsort label-7766
SELECT 41 + 17 + - 19 + + + COUNT ( * ) AS col0
----
40

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7768
SELECT ALL - 10 + + COUNT( * ) + - COALESCE ( 48, - - 3 + - 35 * + 71 + 31, 81 ) AS col2
----
-57

skipif mysql # not compatible
query I rowsort label-7768
SELECT ALL - 10 + + COUNT ( * ) + - COALESCE ( 48, - - 3 + - 35 * + 71 + 31, 81 ) AS col2
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-7769
SELECT 73 * + CASE + CASE - - 90 WHEN - 29 * + COUNT( * ) - - + ( + + 20 ) THEN - 48 WHEN + 32 THEN + ( 41 ) ELSE + 41 END WHEN - 25 THEN NULL WHEN - 2 THEN + 69 ELSE - - 26 END AS col1
----
1898

skipif mysql # not compatible
query I rowsort label-7769
SELECT 73 * + CASE + CASE - - 90 WHEN - 29 * + COUNT ( * ) - - + ( + + 20 ) THEN - 48 WHEN + 32 THEN + ( 41 ) ELSE + 41 END WHEN - 25 THEN NULL WHEN - 2 THEN + 69 ELSE - - 26 END AS col1
----
1898

query I rowsort
SELECT ALL - 11 - + 45 - 6 * 71 AS col2
----
-482

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7771
SELECT ALL + 6 - + + CAST( - 46 AS SIGNED ) * 1
----
52

skipif mysql # not compatible
query I rowsort label-7771
SELECT ALL + 6 - + + CAST ( - 46 AS INTEGER ) * 1
----
52

query I rowsort
SELECT - 75 * - ( + 77 ) - - 57
----
5832

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7773
SELECT 21 * 91 * + + COALESCE ( 10, + - 36 + + + CASE - + COUNT( * ) WHEN + 12 * - + MAX( DISTINCT + 28 ) THEN - CAST( + + 30 AS SIGNED ) + + - SUM( + + ( + 2 ) ) ELSE - + 90 END ) col0
----
19110

skipif mysql # not compatible
query I rowsort label-7773
SELECT 21 * 91 * + + COALESCE ( 10, + - 36 + + + CASE - + COUNT ( * ) WHEN + 12 * - + MAX ( DISTINCT + 28 ) THEN - CAST ( + + 30 AS INTEGER ) + + - SUM ( + + ( + 2 ) ) ELSE - + 90 END ) col0
----
19110

query I rowsort
SELECT CASE 38 WHEN + 40 THEN - + 19 * - - 62 END / 13 + + - 24 col2
----
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7776
SELECT + + 31 * 60 DIV 7 + + 72 AS col0
----
337

skipif mysql # not compatible
query I rowsort label-7776
SELECT + + 31 * 60 / 7 + + 72 AS col0
----
337

onlyif mysql # aggregate syntax: 
query I rowsort label-7777
SELECT - ( MIN( DISTINCT + 29 ) ) * 11 + - 83 col1
----
-402

skipif mysql # not compatible
query I rowsort label-7777
SELECT - ( MIN ( DISTINCT + 29 ) ) * 11 + - 83 col1
----
-402

query II rowsort
SELECT + 58, 34 AS col1
----
58
34

query I rowsort
SELECT 77 + - 73 AS col0
----
4

query I rowsort
SELECT - 16 + 53
----
37

query I rowsort
SELECT 40 * + 75 * - 2 + + + 5 AS col0
----
-5995

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7782
SELECT + 16 * 92 + - + 38 - - 3 DIV + + ( 87 ) col1, + MIN( ALL + 52 )
----
1434
52

skipif mysql # not compatible
query II rowsort label-7782
SELECT + 16 * 92 + - + 38 - - 3 / + + ( 87 ) col1, + MIN ( ALL + 52 )
----
1434
52

query I rowsort
SELECT + 82 + + 68 AS col1
----
150

query I rowsort
SELECT + 20 * + - 53 + + 4 * 40 AS col2
----
-900

onlyif mysql # DIV for integer division: 
query I rowsort label-7785
SELECT - 91 DIV + 69 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-7785
SELECT - 91 / + 69 AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7786
SELECT - ( MAX( 89 ) ) + + - 87
----
-176

skipif mysql # not compatible
query I rowsort label-7786
SELECT - ( MAX ( 89 ) ) + + - 87
----
-176

onlyif mysql # aggregate syntax: 
query I rowsort label-7787
SELECT - 74 * - CASE - - 29 WHEN 27 THEN - - SUM( ALL - 32 ) * - 10 ELSE NULL END + - + 45 + 6 * - 88
----
NULL

skipif mysql # not compatible
query I rowsort label-7787
SELECT - 74 * - CASE - - 29 WHEN 27 THEN - - SUM ( ALL - 32 ) * - 10 ELSE NULL END + - + 45 + 6 * - 88
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7788
SELECT CAST( + + 97 AS SIGNED ) + + 18 AS col2
----
115

skipif mysql # not compatible
query I rowsort label-7788
SELECT CAST ( + + 97 AS INTEGER ) + + 18 AS col2
----
115

onlyif mysql # aggregate syntax: 
query I rowsort label-7789
SELECT ALL 29 + - COUNT( * ) + 46 AS col1
----
74

skipif mysql # not compatible
query I rowsort label-7789
SELECT ALL 29 + - COUNT ( * ) + 46 AS col1
----
74

query I rowsort
SELECT DISTINCT 88 * 23 * + 55 * 61 AS col0
----
6790520

onlyif mysql # aggregate syntax: 
query II rowsort label-7791
SELECT MAX( DISTINCT + ( + 60 ) ) * + 32 AS col2, - 55
----
1920
-55

skipif mysql # not compatible
query II rowsort label-7791
SELECT MAX ( DISTINCT + ( + 60 ) ) * + 32 AS col2, - 55
----
1920
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-7792
SELECT DISTINCT COUNT( * ) + 26 * - 79 col0
----
-2053

skipif mysql # not compatible
query I rowsort label-7792
SELECT DISTINCT COUNT ( * ) + 26 * - 79 col0
----
-2053

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7794
SELECT COUNT( * ) + - + 58 DIV - - NULLIF ( 56, 94 ) + - + SUM( DISTINCT ( + ( + 95 ) ) ) * - 53 + + + CAST( 77 AS SIGNED ), - 99 - + 71 DIV 13 * - COUNT( * ) AS col0
----
5112
-94

skipif mysql # not compatible
query II rowsort label-7794
SELECT COUNT ( * ) + - + 58 / - - NULLIF ( 56, 94 ) + - + SUM ( DISTINCT ( + ( + 95 ) ) ) * - 53 + + + CAST ( 77 AS INTEGER ), - 99 - + 71 / 13 * - COUNT ( * ) AS col0
----
5112
-94

query I rowsort
SELECT 86 + + ( 3 ) + 57 * - 39 + - - 84
----
-2050

query I rowsort
SELECT ALL - 24 - + ( 88 )
----
-112

onlyif mysql # aggregate syntax: 
query II rowsort label-7797
SELECT DISTINCT + COUNT( - 81 ) * - + 7 * - + 75 AS col1, 52 * - 43
----
525
-2236

skipif mysql # not compatible
query II rowsort label-7797
SELECT DISTINCT + COUNT ( - 81 ) * - + 7 * - + 75 AS col1, 52 * - 43
----
525
-2236

onlyif mysql # DIV for integer division: 
query I rowsort label-7798
SELECT DISTINCT 86 DIV - + 45
----
-1

skipif mysql # not compatible
query I rowsort label-7798
SELECT DISTINCT 86 / - + 45
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7799
SELECT 86 * - - 31 * CAST( 3 AS SIGNED )
----
7998

skipif mysql # not compatible
query I rowsort label-7799
SELECT 86 * - - 31 * CAST ( 3 AS INTEGER )
----
7998

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7800
SELECT + 73 DIV + - COUNT( * ) + - - 46 + + 85 * - 60 * 1 AS col1
----
-5127

skipif mysql # not compatible
query I rowsort label-7800
SELECT + 73 / + - COUNT ( * ) + - - 46 + + 85 * - 60 * 1 AS col1
----
-5127

onlyif mysql # aggregate syntax: 
query I rowsort label-7801
SELECT ALL 20 * + MAX( - 19 ) AS col1
----
-380

skipif mysql # not compatible
query I rowsort label-7801
SELECT ALL 20 * + MAX ( - 19 ) AS col1
----
-380

query I rowsort
SELECT ALL 79 - 21 col0
----
58

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7804
SELECT 35 * - 58 - - - 74 DIV - - 89 * + ( + + 42 )
----
-2030

skipif mysql # not compatible
query I rowsort label-7804
SELECT 35 * - 58 - - - 74 / - - 89 * + ( + + 42 )
----
-2030

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7805
SELECT DISTINCT + + 14 DIV - - COUNT( * ) + - 29 * - - 94 + - 31 - 9
----
-2752

skipif mysql # not compatible
query I rowsort label-7805
SELECT DISTINCT + + 14 / - - COUNT ( * ) + - 29 * - - 94 + - 31 - 9
----
-2752

query I rowsort
SELECT - 33 + + 33 AS col1
----
0

query I rowsort
SELECT DISTINCT + 91 * 53
----
4823

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

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

query I rowsort
SELECT ALL - 89 + - 73 AS col0
----
-162

query I rowsort
SELECT - 80 * - 28
----
2240

onlyif mysql # aggregate syntax: 
query II rowsort label-7811
SELECT - 50 * - COUNT( DISTINCT - - 80 ) - - - 81 AS col0, + 76 col1
----
-31
76

skipif mysql # not compatible
query II rowsort label-7811
SELECT - 50 * - COUNT ( DISTINCT - - 80 ) - - - 81 AS col0, + 76 col1
----
-31
76

onlyif mysql # aggregate syntax: 
query I rowsort label-7812
SELECT ALL + 98 + - - SUM( 45 ) AS col1
----
143

skipif mysql # not compatible
query I rowsort label-7812
SELECT ALL + 98 + - - SUM ( 45 ) AS col1
----
143

onlyif mysql # aggregate syntax: 
query II rowsort label-7813
SELECT - 86 AS col0, 79 - - + ( + COUNT( * ) ) * - 77 + + 80 AS col0
----
-86
82

skipif mysql # not compatible
query II rowsort label-7813
SELECT - 86 AS col0, 79 - - + ( + COUNT ( * ) ) * - 77 + + 80 AS col0
----
-86
82

query II rowsort
SELECT - 38 col2, 33
----
-38
33

query II rowsort
SELECT DISTINCT CASE 44 WHEN - - 93 THEN - 79 / - 91 * + 64 ELSE + - ( 64 ) END AS col1, - 3 AS col2
----
-64
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7816
SELECT ALL 87 / - - NULLIF ( + + COUNT( * ), COUNT( * ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7816
SELECT ALL 87 / - - NULLIF ( + + COUNT ( * ), COUNT ( * ) ) AS col2
----
NULL

query I rowsort
SELECT ALL 39 - + 29 AS col0
----
10

query I rowsort
SELECT - NULLIF ( - - 87, + - 41 + + 42 - 23 ) AS col2
----
-87

query I rowsort
SELECT DISTINCT CASE - - 82 WHEN - - 88 + - + 76 * 20 THEN 91 + + 27 END
----
NULL

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

query I rowsort
SELECT DISTINCT 45 - + - 67 AS col2
----
112

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7822
SELECT - COALESCE ( + - 88, - 43 DIV + + 24 + + + CASE + MIN( - + 20 ) WHEN 54 THEN + ( 73 ) END, + 55 * + 31 * - 61, + 46 ) AS col2
----
88

skipif mysql # not compatible
query I rowsort label-7822
SELECT - COALESCE ( + - 88, - 43 / + + 24 + + + CASE + MIN ( - + 20 ) WHEN 54 THEN + ( 73 ) END, + 55 * + 31 * - 61, + 46 ) AS col2
----
88

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7823
SELECT ALL 80 - - COUNT( * ) DIV - 28 AS col2
----
80

skipif mysql # not compatible
query I rowsort label-7823
SELECT ALL 80 - - COUNT ( * ) / - 28 AS col2
----
80

query I rowsort
SELECT + 91 * - 88 AS col2
----
-8008

query I rowsort
SELECT + 62 + 26
----
88

onlyif mysql # aggregate syntax: 
query II rowsort label-7826
SELECT DISTINCT + 50, CASE 61 WHEN 88 * - - COUNT( * ) + - 27 + NULLIF ( - - 26, 26 + - + 25 * - 50 ) THEN NULL WHEN - - 9 THEN + COUNT( * ) ELSE NULL END AS col2
----
50
NULL

skipif mysql # not compatible
query II rowsort label-7826
SELECT DISTINCT + 50, CASE 61 WHEN 88 * - - COUNT ( * ) + - 27 + NULLIF ( - - 26, 26 + - + 25 * - 50 ) THEN NULL WHEN - - 9 THEN + COUNT ( * ) ELSE NULL END AS col2
----
50
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7827
SELECT + 44 DIV - 95
----
0

skipif mysql # not compatible
query I rowsort label-7827
SELECT + 44 / - 95
----
0

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7829
SELECT 48 DIV + COUNT( * ) - - COUNT( - 46 )
----
49

skipif mysql # not compatible
query I rowsort label-7829
SELECT 48 / + COUNT ( * ) - - COUNT ( - 46 )
----
49

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

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

query I rowsort
SELECT ALL + 21 * - 54
----
-1134

query I rowsort
SELECT + 25 * + 71
----
1775

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7833
SELECT ALL NULLIF ( COUNT( * ), - 77 ) DIV ( COUNT( * ) )
----
1

skipif mysql # not compatible
query I rowsort label-7833
SELECT ALL NULLIF ( COUNT ( * ), - 77 ) / ( COUNT ( * ) )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7834
SELECT CASE + 58 WHEN COUNT( * ) THEN COALESCE ( COUNT( 16 ), 85 * 80, + AVG ( ALL - 90 ) + - 96 ) + 57 WHEN CASE ( + 3 ) WHEN - NULLIF ( + AVG ( ALL + CASE 24 WHEN 83 THEN NULL WHEN 88 / + 19 THEN - 2 - 16 ELSE + 45 + 1 * - 77 END ), 75 * + CASE - 0 WHEN + CAST( CAST( 18 AS SIGNED ) AS SIGNED ) * - 60 THEN 49 WHEN + COUNT( * ) THEN NULL ELSE 97 END ) * + COUNT( * ) + MIN( ALL + CAST( 74 AS SIGNED ) + + 19 ) THEN - COUNT( * ) - - 67 ELSE NULL END - 43 THEN 91 + - SUM( 40 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-7834
SELECT CASE + 58 WHEN COUNT ( * ) THEN COALESCE ( COUNT ( 16 ), 85 * 80, + AVG ( ALL - 90 ) + - 96 ) + 57 WHEN CASE ( + 3 ) WHEN - NULLIF ( + AVG ( ALL + CASE 24 WHEN 83 THEN NULL WHEN 88 / + 19 THEN - 2 - 16 ELSE + 45 + 1 * - 77 END ), 75 * + CASE - 0 WHEN + CAST ( CAST ( 18 AS INTEGER ) AS INTEGER ) * - 60 THEN 49 WHEN + COUNT ( * ) THEN NULL ELSE 97 END ) * + COUNT ( * ) + MIN ( ALL + CAST ( 74 AS INTEGER ) + + 19 ) THEN - COUNT ( * ) - - 67 ELSE NULL END - 43 THEN 91 + - SUM ( 40 ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7835
SELECT DISTINCT COUNT( * ) * - 63 AS col0
----
-63

skipif mysql # not compatible
query I rowsort label-7835
SELECT DISTINCT COUNT ( * ) * - 63 AS col0
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-7836
SELECT COUNT( * ) * COUNT( * ) - - 8 AS col0
----
9

skipif mysql # not compatible
query I rowsort label-7836
SELECT COUNT ( * ) * COUNT ( * ) - - 8 AS col0
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-7837
SELECT COALESCE ( - 14, + 49 DIV + 76 + + 5 * + 76 )
----
-14

skipif mysql # not compatible
query I rowsort label-7837
SELECT COALESCE ( - 14, + 49 / + 76 + + 5 * + 76 )
----
-14

query I rowsort
SELECT ALL + 4 * + 57 + 54 AS col0
----
282

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

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

skipif mysql # not compatible
query I rowsort label-7840
SELECT - 47 / COUNT ( * )
----
-47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7841
SELECT ALL + ( - 14 ) * CAST( 24 - - 62 AS SIGNED ) + 40 AS col1
----
-1164

skipif mysql # not compatible
query I rowsort label-7841
SELECT ALL + ( - 14 ) * CAST ( 24 - - 62 AS INTEGER ) + 40 AS col1
----
-1164

query I rowsort
SELECT + 59 * + 73
----
4307

query I rowsort
SELECT - COALESCE ( - 79, + 67 ) * 56
----
4424

query I rowsort
SELECT DISTINCT + 44 * + 92 + 38 * 67 AS col2
----
6594

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

query I rowsort
SELECT ALL 79 * + 69 + 49
----
5500

query I rowsort
SELECT - 11 + 72 AS col0
----
61

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7849
SELECT DISTINCT + SUM( - 49 ) AS col0
----
-49

skipif mysql # not compatible
query I rowsort label-7849
SELECT DISTINCT + SUM ( - 49 ) AS col0
----
-49

query I rowsort
SELECT ALL + 14 * 92 AS col2
----
1288

query I rowsort
SELECT ALL + 96 * NULLIF ( + 54, + ( 37 ) ) col2
----
5184

onlyif mysql # aggregate syntax: 
query I rowsort label-7852
SELECT - COUNT( ALL 16 ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-7852
SELECT - COUNT ( ALL 16 ) col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7853
SELECT ALL - 24 - - COUNT( * ) col0
----
-23

skipif mysql # not compatible
query I rowsort label-7853
SELECT ALL - 24 - - COUNT ( * ) col0
----
-23

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

query I rowsort
SELECT DISTINCT ( - COALESCE ( + 99, 27 ) ) AS col0
----
-99

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

query I rowsort
SELECT ALL 86 * 37 AS col1
----
3182

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

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

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

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

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

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

query I rowsort
SELECT + 61 * + 88
----
5368

query I rowsort
SELECT + 20 + + 33 * - 25
----
-805

query I rowsort
SELECT - 32 * 6
----
-192

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7866
SELECT + 41 + COUNT( * ) * 73 AS col1
----
114

skipif mysql # not compatible
query I rowsort label-7866
SELECT + 41 + COUNT ( * ) * 73 AS col1
----
114

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7867
SELECT ALL - + MIN( - 95 ) DIV + COUNT( * ) + - 99 * - 47 AS col2
----
4748

skipif mysql # not compatible
query I rowsort label-7867
SELECT ALL - + MIN ( - 95 ) / + COUNT ( * ) + - 99 * - 47 AS col2
----
4748

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7868
SELECT CAST( 48 AS SIGNED ) AS col2
----
48

skipif mysql # not compatible
query I rowsort label-7868
SELECT CAST ( 48 AS INTEGER ) AS col2
----
48

query I rowsort
SELECT ALL + 13 * 88 AS col0
----
1144

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7870
SELECT ALL - CAST( COUNT( * ) AS SIGNED ) DIV + 70 + 78
----
78

skipif mysql # not compatible
query I rowsort label-7870
SELECT ALL - CAST ( COUNT ( * ) AS INTEGER ) / + 70 + 78
----
78

onlyif mysql # DIV for integer division: 
query I rowsort label-7871
SELECT ALL + - 71 DIV + 52 + 40
----
39

skipif mysql # not compatible
query I rowsort label-7871
SELECT ALL + - 71 / + 52 + 40
----
39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7872
SELECT + - 11 + 1 / CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7872
SELECT + - 11 + 1 / CAST ( NULL AS INTEGER ) AS col2
----
NULL

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

skipif mysql # not compatible
query I rowsort label-7873
SELECT ALL + - COUNT ( * ) / 89 + 27 * ( 32 ) AS col0
----
864

onlyif mysql # DIV for integer division: 
query I rowsort label-7874
SELECT + - 81 DIV - 3 + - 51 AS col2
----
-24

skipif mysql # not compatible
query I rowsort label-7874
SELECT + - 81 / - 3 + - 51 AS col2
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-7875
SELECT + CASE 56 WHEN COALESCE ( - 12, 87, - COUNT( * ) ) THEN 14 - 52 ELSE + 95 END AS col0
----
95

skipif mysql # not compatible
query I rowsort label-7875
SELECT + CASE 56 WHEN COALESCE ( - 12, 87, - COUNT ( * ) ) THEN 14 - 52 ELSE + 95 END AS col0
----
95

query I rowsort
SELECT DISTINCT - 28 + - 69 AS col1
----
-97

query I rowsort
SELECT ALL - 15 + 76 AS col0
----
61

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7880
SELECT ALL 81 * COUNT( * ) AS col2
----
81

skipif mysql # not compatible
query I rowsort label-7880
SELECT ALL 81 * COUNT ( * ) AS col2
----
81

query I rowsort
SELECT DISTINCT 5 - + 80 - 33
----
-108

query I rowsort
SELECT 77 - 35 AS col0
----
42

query I rowsort
SELECT ALL 4 - + 41 AS col0
----
-37

query I rowsort
SELECT 92 * 51 AS col1
----
4692

onlyif mysql # aggregate syntax: 
query I rowsort label-7885
SELECT DISTINCT - COUNT( * ) * + 13 * - 68
----
884

skipif mysql # not compatible
query I rowsort label-7885
SELECT DISTINCT - COUNT ( * ) * + 13 * - 68
----
884

query I rowsort
SELECT ALL - 66 * + 77
----
-5082

onlyif mysql # aggregate syntax: 
query I rowsort label-7887
SELECT 76 + - - COALESCE ( COUNT( * ), + 70 ) + COUNT( * )
----
78

skipif mysql # not compatible
query I rowsort label-7887
SELECT 76 + - - COALESCE ( COUNT ( * ), + 70 ) + COUNT ( * )
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-7888
SELECT 11 * + 37 * COUNT( * ) AS col1
----
407

skipif mysql # not compatible
query I rowsort label-7888
SELECT 11 * + 37 * COUNT ( * ) AS col1
----
407

query I rowsort
SELECT 86 + + + ( 19 ) - 96
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-7890
SELECT 21 - + COUNT( * ) AS col2
----
20

skipif mysql # not compatible
query I rowsort label-7890
SELECT 21 - + COUNT ( * ) AS col2
----
20

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7892
SELECT DISTINCT - - MIN( - 46 ) + 2 * MIN( DISTINCT 32 + 89 )
----
196

skipif mysql # not compatible
query I rowsort label-7892
SELECT DISTINCT - - MIN ( - 46 ) + 2 * MIN ( DISTINCT 32 + 89 )
----
196

onlyif mysql # aggregate syntax: 
query I rowsort label-7893
SELECT - NULLIF ( + 12, 59 * 44 ) + + MIN( ALL - 54 ) AS col2
----
-66

skipif mysql # not compatible
query I rowsort label-7893
SELECT - NULLIF ( + 12, 59 * 44 ) + + MIN ( ALL - 54 ) AS col2
----
-66

query I rowsort
SELECT DISTINCT + - 15 + 25 * 39
----
960

query I rowsort
SELECT ALL - 26 + + + 63 * 39 AS col2
----
2431

query I rowsort
SELECT ( - + 55 ) - - 44 AS col1
----
-11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7897
SELECT + COALESCE ( - - COUNT( * ), - 26 DIV + COUNT( * ), 82 ) * + 15 AS col1
----
15

skipif mysql # not compatible
query I rowsort label-7897
SELECT + COALESCE ( - - COUNT ( * ), - 26 / + COUNT ( * ), 82 ) * + 15 AS col1
----
15

onlyif mysql # DIV for integer division: 
query I rowsort label-7898
SELECT 20 DIV + + 56 col1
----
0

skipif mysql # not compatible
query I rowsort label-7898
SELECT 20 / + + 56 col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7899
SELECT ALL + MIN( DISTINCT + 82 ) + NULLIF ( 29 + 92, + 40 + CASE - 90 WHEN + 14 * COUNT( * ) THEN + 45 WHEN 89 THEN - ( + 32 ) + - 58 ELSE + 73 END )
----
203

skipif mysql # not compatible
query I rowsort label-7899
SELECT ALL + MIN ( DISTINCT + 82 ) + NULLIF ( 29 + 92, + 40 + CASE - 90 WHEN + 14 * COUNT ( * ) THEN + 45 WHEN 89 THEN - ( + 32 ) + - 58 ELSE + 73 END )
----
203

onlyif mysql # aggregate syntax: 
query I rowsort label-7900
SELECT - ( MAX( DISTINCT - ( 49 ) ) ) * 97 col1
----
4753

skipif mysql # not compatible
query I rowsort label-7900
SELECT - ( MAX ( DISTINCT - ( 49 ) ) ) * 97 col1
----
4753

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7901
SELECT 80 * - - 47 - + CAST( - COALESCE ( - 78, 44, - ( ( COUNT( * ) ) ) * CAST( + 1 AS SIGNED ) ) AS SIGNED )
----
3682

skipif mysql # not compatible
query I rowsort label-7901
SELECT 80 * - - 47 - + CAST ( - COALESCE ( - 78, 44, - ( ( COUNT ( * ) ) ) * CAST ( + 1 AS INTEGER ) ) AS INTEGER )
----
3682

onlyif mysql # aggregate syntax: 
query I rowsort label-7902
SELECT DISTINCT - MIN( ALL - 96 ) * NULLIF ( + 43, - 93 ) AS col2
----
4128

skipif mysql # not compatible
query I rowsort label-7902
SELECT DISTINCT - MIN ( ALL - 96 ) * NULLIF ( + 43, - 93 ) AS col2
----
4128

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7903
SELECT - 69 DIV + NULLIF ( 4, + 76 * + CAST( NULL AS SIGNED ) ) - - 0 AS col1
----
-17

skipif mysql # not compatible
query I rowsort label-7903
SELECT - 69 / + NULLIF ( 4, + 76 * + CAST ( NULL AS INTEGER ) ) - - 0 AS col1
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-7904
SELECT ( SUM( DISTINCT 33 ) )
----
33

skipif mysql # not compatible
query I rowsort label-7904
SELECT ( SUM ( DISTINCT 33 ) )
----
33

query I rowsort
SELECT DISTINCT - - 48 * - 52 AS col1
----
-2496

query I rowsort
SELECT ALL + - 86 - ( + ( 45 ) ) AS col0
----
-131

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7907
SELECT - CAST( + 1 AS SIGNED ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-7907
SELECT - CAST ( + 1 AS INTEGER ) AS col2
----
-1

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

query I rowsort
SELECT 64 * - - 32 - 67
----
1981

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7911
SELECT - 18 - + 2 + - 20 DIV 46 AS col1
----
-20

skipif mysql # not compatible
query I rowsort label-7911
SELECT - 18 - + 2 + - 20 / 46 AS col1
----
-20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7912
SELECT ALL 64 - ( - 20 ) + CAST( - SUM( 57 ) AS SIGNED ) * - 48
----
2820

skipif mysql # not compatible
query I rowsort label-7912
SELECT ALL 64 - ( - 20 ) + CAST ( - SUM ( 57 ) AS INTEGER ) * - 48
----
2820

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

skipif mysql # not compatible
query II rowsort label-7913
SELECT ALL - 25, COUNT ( * ) AS col0
----
-25
1

query I rowsort
SELECT 33 * - - 36 + 90 AS col2
----
1278

query I rowsort
SELECT 67 * + 96 * - 84 AS col2
----
-540288

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7917
SELECT DISTINCT 58 * + + MAX( DISTINCT - + 88 )
----
-5104

skipif mysql # not compatible
query I rowsort label-7917
SELECT DISTINCT 58 * + + MAX ( DISTINCT - + 88 )
----
-5104

query I rowsort
SELECT DISTINCT - 9 col0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-7919
SELECT COUNT( ALL - 33 ) + + 37 * 43 AS col0
----
1592

skipif mysql # not compatible
query I rowsort label-7919
SELECT COUNT ( ALL - 33 ) + + 37 * 43 AS col0
----
1592

query I rowsort
SELECT DISTINCT 22 * + - CASE - 1 WHEN 1 THEN ( - 57 ) * + 74 END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7921
SELECT 64 AS col2, ( - - COUNT( * ) ) * 99
----
64
99

skipif mysql # not compatible
query II rowsort label-7921
SELECT 64 AS col2, ( - - COUNT ( * ) ) * 99
----
64
99

query I rowsort
SELECT 21 + - 96 * - 87 AS col0
----
8373

query II rowsort
SELECT ALL 13 AS col0, - 21 * + 26
----
13
-546

onlyif mysql # DIV for integer division: 
query I rowsort label-7924
SELECT 92 * - + NULLIF ( + 3, + 61 * - 19 ) DIV ( - 27 * 19 - + 67 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7924
SELECT 92 * - + NULLIF ( + 3, + 61 * - 19 ) / ( - 27 * 19 - + 67 ) AS col2
----
0

query I rowsort
SELECT 27 * + - 33
----
-891

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

skipif mysql # not compatible
query I rowsort label-7926
SELECT - AVG ( + CAST ( NULL AS REAL ) ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7927
SELECT ALL + MIN( 59 ) + + CAST( + 26 AS SIGNED ) / - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7927
SELECT ALL + MIN ( 59 ) + + CAST ( + 26 AS INTEGER ) / - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT ALL - 34 + - 6
----
-40

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

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

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

query I rowsort
SELECT ALL + 97 + 48 * + 36 AS col1
----
1825

onlyif mysql # aggregate syntax: 
query I rowsort label-7932
SELECT - SUM( + 81 ) + + 1 AS col0
----
-80

skipif mysql # not compatible
query I rowsort label-7932
SELECT - SUM ( + 81 ) + + 1 AS col0
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-7933
SELECT COUNT( * ) - - 42 AS col2
----
43

skipif mysql # not compatible
query I rowsort label-7933
SELECT COUNT ( * ) - - 42 AS col2
----
43

query I rowsort
SELECT - + ( 74 ) AS col1
----
-74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7935
SELECT - CAST( + 60 AS SIGNED ) + SUM( 97 ) - + 64 AS col2
----
-27

skipif mysql # not compatible
query I rowsort label-7935
SELECT - CAST ( + 60 AS INTEGER ) + SUM ( 97 ) - + 64 AS col2
----
-27

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7937
SELECT ALL - 31 * + MIN( + - COALESCE ( - 65, + 39 ) ) AS col2
----
-2015

skipif mysql # not compatible
query I rowsort label-7937
SELECT ALL - 31 * + MIN ( + - COALESCE ( - 65, + 39 ) ) AS col2
----
-2015

onlyif mysql # aggregate syntax: 
query I rowsort label-7938
SELECT DISTINCT - MIN( DISTINCT - 74 ) AS col2
----
74

skipif mysql # not compatible
query I rowsort label-7938
SELECT DISTINCT - MIN ( DISTINCT - 74 ) AS col2
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-7939
SELECT - - 34 + - + SUM( - ( 56 ) ) AS col1
----
90

skipif mysql # not compatible
query I rowsort label-7939
SELECT - - 34 + - + SUM ( - ( 56 ) ) AS col1
----
90

query I rowsort
SELECT DISTINCT - 28 - - 8 AS col1
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-7941
SELECT ALL + 70 * + + MIN( 59 )
----
4130

skipif mysql # not compatible
query I rowsort label-7941
SELECT ALL + 70 * + + MIN ( 59 )
----
4130

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

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

query II rowsort
SELECT ALL + 17 col2, 6
----
17
6

query I rowsort
SELECT - + 15 * + 13 - - 58 AS col2
----
-137

query I rowsort
SELECT - + 10 * - 70 + + 61
----
761

query I rowsort
SELECT - 89 + - 52 * - 91 col0
----
4643

query I rowsort
SELECT + 54 * - + NULLIF ( 93, 94 ) + 7 * 74
----
-4504

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7949
SELECT + 66 DIV - COUNT( * ) + - 30 + + COUNT( - 97 + + ( - CASE - 24 WHEN - 42 * 78 THEN - 69 + 84 ELSE NULL END ) ) AS col0
----
-96

skipif mysql # not compatible
query I rowsort label-7949
SELECT + 66 / - COUNT ( * ) + - 30 + + COUNT ( - 97 + + ( - CASE - 24 WHEN - 42 * 78 THEN - 69 + 84 ELSE NULL END ) ) AS col0
----
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-7950
SELECT - COALESCE ( - ( + COALESCE ( + + 39, 63 DIV + 45 ) ), 87 ) DIV + 5 AS col1
----
7

skipif mysql # not compatible
query I rowsort label-7950
SELECT - COALESCE ( - ( + COALESCE ( + + 39, 63 / + 45 ) ), 87 ) / + 5 AS col1
----
7

onlyif mysql # DIV for integer division: 
query I rowsort label-7951
SELECT DISTINCT + 56 DIV - - 41 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-7951
SELECT DISTINCT + 56 / - - 41 AS col1
----
1

query I rowsort
SELECT ALL 17 * + 93 * 13
----
20553

query I rowsort
SELECT ALL + ( + NULLIF ( + - 20, + 93 ) )
----
-20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7954
SELECT DISTINCT - 83 * CAST( + 67 AS SIGNED )
----
-5561

skipif mysql # not compatible
query I rowsort label-7954
SELECT DISTINCT - 83 * CAST ( + 67 AS INTEGER )
----
-5561

onlyif mysql # aggregate syntax: 
query I rowsort label-7955
SELECT COUNT( 2 )
----
1

skipif mysql # not compatible
query I rowsort label-7955
SELECT COUNT ( 2 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7956
SELECT + CASE 39 WHEN + 31 * + + ( 59 ) + 71 THEN MIN( ALL + 16 ) WHEN 77 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7956
SELECT + CASE 39 WHEN + 31 * + + ( 59 ) + 71 THEN MIN ( ALL + 16 ) WHEN 77 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7957
SELECT + COUNT( DISTINCT - + ( + - 94 ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-7957
SELECT + COUNT ( DISTINCT - + ( + - 94 ) ) AS col1
----
1

query I rowsort
SELECT + 62 * + - 93
----
-5766

query I rowsort
SELECT DISTINCT + 54 * - 33 * 81 + - 38 AS col2
----
-144380

query I rowsort
SELECT ALL ( + - COALESCE ( + - 94, + 85 ) )
----
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7961
SELECT ALL NULLIF ( ( - CAST( NULL AS SIGNED ) ), - + 29 + - 16 ) + 58
----
NULL

skipif mysql # not compatible
query I rowsort label-7961
SELECT ALL NULLIF ( ( - CAST ( NULL AS INTEGER ) ), - + 29 + - 16 ) + 58
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7962
SELECT + 9 - + 33 - + 66 * + + MAX( DISTINCT + 53 )
----
-3522

skipif mysql # not compatible
query I rowsort label-7962
SELECT + 9 - + 33 - + 66 * + + MAX ( DISTINCT + 53 )
----
-3522

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7964
SELECT + 26 DIV - - 24
----
1

skipif mysql # not compatible
query I rowsort label-7964
SELECT + 26 / - - 24
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7965
SELECT DISTINCT COUNT( * ) + - - 34 + 44 AS col1
----
79

skipif mysql # not compatible
query I rowsort label-7965
SELECT DISTINCT COUNT ( * ) + - - 34 + 44 AS col1
----
79

query I rowsort
SELECT - NULLIF ( - ( + 35 ), + 27 ) AS col2
----
35

query I rowsort
SELECT ALL 8 + 49 - 35 AS col0
----
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7968
SELECT ALL CASE 24 WHEN + + CASE - CAST( ( - 19 ) AS SIGNED ) WHEN 34 * COUNT( * ) THEN NULL WHEN + 49 THEN + 29 * + COUNT( * ) ELSE - 27 END + 46 THEN 90 * 85 ELSE NULL END + - 96 * + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7968
SELECT ALL CASE 24 WHEN + + CASE - CAST ( ( - 19 ) AS INTEGER ) WHEN 34 * COUNT ( * ) THEN NULL WHEN + 49 THEN + 29 * + COUNT ( * ) ELSE - 27 END + 46 THEN 90 * 85 ELSE NULL END + - 96 * + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query II rowsort
SELECT - ( + + 62 ), + 35 + - 19 + 34 col0
----
-62
50

query I rowsort
SELECT + 79 + + 70 + + 96 AS col2
----
245

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7971
SELECT ALL 18 * + CAST( + 9 AS SIGNED ) + + 32 DIV 33 AS col0
----
162

skipif mysql # not compatible
query I rowsort label-7971
SELECT ALL 18 * + CAST ( + 9 AS INTEGER ) + + 32 / 33 AS col0
----
162

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7972
SELECT + + COUNT( * ) + COUNT( * ) + + 80 DIV - + 94 * 86 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-7972
SELECT + + COUNT ( * ) + COUNT ( * ) + + 80 / - + 94 * 86 AS col1
----
2

query I rowsort
SELECT - ( + 47 ) col0
----
-47

query I rowsort
SELECT ALL - 43 + - 52 * - 38 * - 59
----
-116627

query I rowsort
SELECT ALL + - 35 - 64
----
-99

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

skipif mysql # not compatible
query II rowsort label-7976
SELECT + + 5 / CAST ( NULL AS INTEGER ), COUNT ( * ) AS col2
----
NULL
1

query I rowsort
SELECT ALL COALESCE ( - - CASE + 41 WHEN + 41 * - 15 + 23 / + 12 THEN - 80 WHEN - 52 THEN NULL ELSE 67 END, 84 + + 12 )
----
67

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

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7981
SELECT + COUNT( * ) + + 18, COUNT( * ) DIV + COUNT( * ) * + COUNT( * ) AS col1
----
19
1

skipif mysql # not compatible
query II rowsort label-7981
SELECT + COUNT ( * ) + + 18, COUNT ( * ) / + COUNT ( * ) * + COUNT ( * ) AS col1
----
19
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7982
SELECT + COALESCE ( - - 69, + COUNT( * ), COALESCE ( MAX( ALL - NULLIF ( 99, + ( 96 ) ) ), 25 ) + 68 ) * MAX( 62 + - 77 ) AS col2
----
-1035

skipif mysql # not compatible
query I rowsort label-7982
SELECT + COALESCE ( - - 69, + COUNT ( * ), COALESCE ( MAX ( ALL - NULLIF ( 99, + ( 96 ) ) ), 25 ) + 68 ) * MAX ( 62 + - 77 ) AS col2
----
-1035

query I rowsort
SELECT - 78 * - + 90
----
7020

query I rowsort
SELECT ALL + + 31 * - 49 - 44
----
-1563

query I rowsort
SELECT + COALESCE ( ( - - 18 ), + + 2 )
----
18

query I rowsort
SELECT DISTINCT + - 81 * - - 5 + - 82
----
-487

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7988
SELECT + 10 * + 69 + - 38 * - - CAST( + MIN( 50 ) AS SIGNED ) - + 33 col1
----
-1243

skipif mysql # not compatible
query I rowsort label-7988
SELECT + 10 * + 69 + - 38 * - - CAST ( + MIN ( 50 ) AS INTEGER ) - + 33 col1
----
-1243

query I rowsort
SELECT - + 3 * 66 * 86 * + - 87 col0
----
1481436

query I rowsort
SELECT ALL - 98 * 51 + - - 68 * - - 11 * 10
----
2482

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

query I rowsort
SELECT DISTINCT 46 * - - 83 col2
----
3818

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7994
SELECT - CAST( 4 AS SIGNED ) * - 20 col0, + 70 AS col0
----
80
70

skipif mysql # not compatible
query II rowsort label-7994
SELECT - CAST ( 4 AS INTEGER ) * - 20 col0, + 70 AS col0
----
80
70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7995
SELECT ALL 18 DIV - COUNT( * ) + + + 75 + + 96 DIV + 41 col0
----
59

skipif mysql # not compatible
query I rowsort label-7995
SELECT ALL 18 / - COUNT ( * ) + + + 75 + + 96 / + 41 col0
----
59

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

query I rowsort
SELECT 97 * 84 - - 0
----
8148

query I rowsort
SELECT + 43 * - 7 + - 57 * - 76 col1
----
4031

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-8001
SELECT + 49 * 49 + 68 col0, - MAX( ALL 54 ) + 24 AS col2
----
2469
-30

skipif mysql # not compatible
query II rowsort label-8001
SELECT + 49 * 49 + 68 col0, - MAX ( ALL 54 ) + 24 AS col2
----
2469
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-8002
SELECT ALL - 27 * 61 + + COALESCE ( + 61, - 80 * COUNT( * ) ) * 62
----
2135

skipif mysql # not compatible
query I rowsort label-8002
SELECT ALL - 27 * 61 + + COALESCE ( + 61, - 80 * COUNT ( * ) ) * 62
----
2135

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8003
SELECT ALL 68 * - - 55 * + 57 + + - 16 - - 61 / 97 * CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8003
SELECT ALL 68 * - - 55 * + 57 + + - 16 - - 61 / 97 * CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT - 9 + - 14 col0
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-8005
SELECT DISTINCT + CASE - COUNT( * ) WHEN 55 THEN - MIN( DISTINCT + 10 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-8005
SELECT DISTINCT + CASE - COUNT ( * ) WHEN 55 THEN - MIN ( DISTINCT + 10 ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8006
SELECT DISTINCT - COUNT( * ) * - 38 + + COUNT( ALL + 35 ) + - - ( 91 ) * + 90 * 14 AS col0
----
114699

skipif mysql # not compatible
query I rowsort label-8006
SELECT DISTINCT - COUNT ( * ) * - 38 + + COUNT ( ALL + 35 ) + - - ( 91 ) * + 90 * 14 AS col0
----
114699

onlyif mysql # aggregate syntax: 
query I rowsort label-8007
SELECT ALL + 50 * 49 * - + 19 + ( + - 61 ) * COUNT( * ) AS col0
----
-46611

skipif mysql # not compatible
query I rowsort label-8007
SELECT ALL + 50 * 49 * - + 19 + ( + - 61 ) * COUNT ( * ) AS col0
----
-46611

query I rowsort
SELECT COALESCE ( - 51, - 42 ) AS col2
----
-51

query I rowsort
SELECT DISTINCT + 17 * - 20 col0
----
-340

onlyif mysql # aggregate syntax: 
query I rowsort label-8010
SELECT COALESCE ( + - 67, 73, - - SUM( - 3 ) * MIN( DISTINCT 4 ) )
----
-67

skipif mysql # not compatible
query I rowsort label-8010
SELECT COALESCE ( + - 67, 73, - - SUM ( - 3 ) * MIN ( DISTINCT 4 ) )
----
-67

query I rowsort
SELECT - ( - - 99 )
----
-99

query I rowsort
SELECT ALL + 14 - + + ( - COALESCE ( + 13, - 42 * + 97, 28 * - 40 ) ) * + 8 AS col0
----
118

query I rowsort
SELECT DISTINCT COALESCE ( + 21, + 63 + COALESCE ( - 37, 78 ) * 16 ) * 5 AS col2
----
105

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8014
SELECT ALL + 54 - ( - + 45 ) - - - CAST( - NULLIF ( 87, + 92 ) AS SIGNED ) * + 64 * 32
----
178275

skipif mysql # not compatible
query I rowsort label-8014
SELECT ALL + 54 - ( - + 45 ) - - - CAST ( - NULLIF ( 87, + 92 ) AS INTEGER ) * + 64 * 32
----
178275

query I rowsort
SELECT 98 * + 80
----
7840

query I rowsort
SELECT - + 0 col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8017
SELECT ALL - CASE + 78 WHEN + ( - ( - 66 ) ) THEN CAST( 36 AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-8017
SELECT ALL - CASE + 78 WHEN + ( - ( - 66 ) ) THEN CAST ( 36 AS INTEGER ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8018
SELECT + 88 + COUNT( + 51 ) * - - ( + ( + 11 ) ) * + 16 + 72
----
336

skipif mysql # not compatible
query I rowsort label-8018
SELECT + 88 + COUNT ( + 51 ) * - - ( + ( + 11 ) ) * + 16 + 72
----
336

onlyif mysql # DIV for integer division: 
query I rowsort label-8019
SELECT - 62 DIV - + 82 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8019
SELECT - 62 / - + 82 AS col2
----
0

query I rowsort
SELECT ALL - 87 * + - 76 * - 17 AS col2
----
-112404

onlyif mysql # aggregate syntax: 
query I rowsort label-8021
SELECT + 71 + 16 * + + COUNT( * ) + + 97 + - 85 AS col1
----
99

skipif mysql # not compatible
query I rowsort label-8021
SELECT + 71 + 16 * + + COUNT ( * ) + + 97 + - 85 AS col1
----
99

query I rowsort
SELECT 67 + - 49
----
18

query I rowsort
SELECT 54 + - - 96 + - 63 - 82 * - - 43 * - 45 AS col1
----
158757

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8025
SELECT + 95 DIV 49 + 7 * - COUNT( * ) + - 45 + 3 + 36
----
-12

skipif mysql # not compatible
query I rowsort label-8025
SELECT + 95 / 49 + 7 * - COUNT ( * ) + - 45 + 3 + 36
----
-12

onlyif mysql # aggregate syntax: 
query II rowsort label-8026
SELECT 93, + 55 - COALESCE ( - + COUNT( * ), + - 93 ) AS col2
----
93
56

skipif mysql # not compatible
query II rowsort label-8026
SELECT 93, + 55 - COALESCE ( - + COUNT ( * ), + - 93 ) AS col2
----
93
56

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8027
SELECT + 85 AS col0, + 19 DIV - COUNT( * )
----
85
-19

skipif mysql # not compatible
query II rowsort label-8027
SELECT + 85 AS col0, + 19 / - COUNT ( * )
----
85
-19

query I rowsort
SELECT 5 * + - ( - - 62 ) AS col1
----
-310

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8029
SELECT ALL MAX( ALL - COALESCE ( + - 42, 98 ) ) + ( - 36 ) DIV 74 AS col2
----
42

skipif mysql # not compatible
query I rowsort label-8029
SELECT ALL MAX ( ALL - COALESCE ( + - 42, 98 ) ) + ( - 36 ) / 74 AS col2
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-8030
SELECT 12 + + - COUNT( * ) - + NULLIF ( + + MIN( ALL + 76 ), + MIN( + 50 ) ) * + 27
----
-2041

skipif mysql # not compatible
query I rowsort label-8030
SELECT 12 + + - COUNT ( * ) - + NULLIF ( + + MIN ( ALL + 76 ), + MIN ( + 50 ) ) * + 27
----
-2041

onlyif mysql # aggregate syntax: 
query I rowsort label-8031
SELECT ALL - COUNT( - 97 ) + + + 19
----
18

skipif mysql # not compatible
query I rowsort label-8031
SELECT ALL - COUNT ( - 97 ) + + + 19
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-8032
SELECT ALL + 2 + MAX( - + 23 )
----
-21

skipif mysql # not compatible
query I rowsort label-8032
SELECT ALL + 2 + MAX ( - + 23 )
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-8033
SELECT DISTINCT - COUNT( 49 )
----
-1

skipif mysql # not compatible
query I rowsort label-8033
SELECT DISTINCT - COUNT ( 49 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8034
SELECT DISTINCT 57 + + MAX( ALL - + 89 ) AS col0
----
-32

skipif mysql # not compatible
query I rowsort label-8034
SELECT DISTINCT 57 + + MAX ( ALL - + 89 ) AS col0
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-8035
SELECT ALL - MAX( + + COALESCE ( + - 2, - 78 ) )
----
2

skipif mysql # not compatible
query I rowsort label-8035
SELECT ALL - MAX ( + + COALESCE ( + - 2, - 78 ) )
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8036
SELECT DISTINCT COUNT( * ) + - 21 * - 77 / - + CAST( NULL AS SIGNED ) AS col1, COUNT( * ) * + ( - CAST( NULL AS SIGNED ) ) * - 23
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-8036
SELECT DISTINCT COUNT ( * ) + - 21 * - 77 / - + CAST ( NULL AS INTEGER ) AS col1, COUNT ( * ) * + ( - CAST ( NULL AS INTEGER ) ) * - 23
----
NULL
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8038
SELECT ( - - 92 ) - - 60 + - COALESCE ( - 10, - 73, COUNT( * ) ) AS col2
----
162

skipif mysql # not compatible
query I rowsort label-8038
SELECT ( - - 92 ) - - 60 + - COALESCE ( - 10, - 73, COUNT ( * ) ) AS col2
----
162

onlyif mysql # DIV for integer division: 
query II rowsort label-8039
SELECT 23 AS col2, 42 DIV + + 4
----
23
10

skipif mysql # not compatible
query II rowsort label-8039
SELECT 23 AS col2, 42 / + + 4
----
23
10

onlyif mysql # aggregate syntax: 
query I rowsort label-8040
SELECT ALL - COUNT( 61 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-8040
SELECT ALL - COUNT ( 61 ) AS col1
----
-1

query II rowsort
SELECT 4 AS col2, - 11 col0
----
4
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-8042
SELECT MIN( 62 ) + - 33
----
29

skipif mysql # not compatible
query I rowsort label-8042
SELECT MIN ( 62 ) + - 33
----
29

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

query I rowsort
SELECT ALL - 43 - + 12 + - 30
----
-85

onlyif mysql # DIV for integer division: 
query I rowsort label-8045
SELECT 44 DIV - 64 * + 5 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8045
SELECT 44 / - 64 * + 5 AS col0
----
0

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8047
SELECT DISTINCT - - 2 DIV - CAST( - 16 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-8047
SELECT DISTINCT - - 2 / - CAST ( - 16 AS INTEGER )
----
0

query I rowsort
SELECT ALL + 52 * 45
----
2340

query I rowsort
SELECT ALL - + ( - - 16 ) - - NULLIF ( + 5, + ( - + 81 ) * - 96 + 5 ) + + 15 AS col1
----
4

query II rowsort
SELECT 69 + - + 33, + 67 AS col1
----
36
67

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8052
SELECT - MIN( - CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8052
SELECT - MIN ( - CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

query I rowsort
SELECT 90 + + 60 AS col0
----
150

onlyif mysql # aggregate syntax: 
query I rowsort label-8054
SELECT + 60 - - + ( + - COUNT( * ) ) + - 16 + - - 48 * + + NULLIF ( COUNT( * ), 78 ) AS col0
----
91

skipif mysql # not compatible
query I rowsort label-8054
SELECT + 60 - - + ( + - COUNT ( * ) ) + - 16 + - - 48 * + + NULLIF ( COUNT ( * ), 78 ) AS col0
----
91

query I rowsort
SELECT 92 * - - 30
----
2760

onlyif mysql # aggregate syntax: 
query I rowsort label-8056
SELECT - 69 * 57 * - 47 * 61 + + 56 + COALESCE ( - 32, MIN( - 35 ) ) + + 95 * 11 AS col2
----
11276980

skipif mysql # not compatible
query I rowsort label-8056
SELECT - 69 * 57 * - 47 * 61 + + 56 + COALESCE ( - 32, MIN ( - 35 ) ) + + 95 * 11 AS col2
----
11276980

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

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

query I rowsort
SELECT ALL ( + 88 ) * - ( + ( - - 10 ) ) + 53 AS col1
----
-827

onlyif mysql # DIV for integer division: 
query I rowsort label-8059
SELECT DISTINCT - 48 DIV + 76
----
0

skipif mysql # not compatible
query I rowsort label-8059
SELECT DISTINCT - 48 / + 76
----
0

query I rowsort
SELECT ALL 58 + + 60 AS col1
----
118

onlyif mysql # aggregate syntax: 
query I rowsort label-8061
SELECT 12 * - MIN( DISTINCT + 73 )
----
-876

skipif mysql # not compatible
query I rowsort label-8061
SELECT 12 * - MIN ( DISTINCT + 73 )
----
-876

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8062
SELECT MIN( - + 92 ) + - - CAST( 1 AS SIGNED )
----
-91

skipif mysql # not compatible
query I rowsort label-8062
SELECT MIN ( - + 92 ) + - - CAST ( 1 AS INTEGER )
----
-91

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

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

query I rowsort
SELECT ALL + 88 * - 12 + - 41 AS col0
----
-1097

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8065
SELECT COUNT( * ) DIV + MIN( DISTINCT + 44 )
----
0

skipif mysql # not compatible
query I rowsort label-8065
SELECT COUNT ( * ) / + MIN ( DISTINCT + 44 )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8066
SELECT 34 DIV - COUNT( * ) - + 33
----
-67

skipif mysql # not compatible
query I rowsort label-8066
SELECT 34 / - COUNT ( * ) - + 33
----
-67

onlyif mysql # aggregate syntax: 
query II rowsort label-8067
SELECT COUNT( - 7 ) AS col0, 98
----
1
98

skipif mysql # not compatible
query II rowsort label-8067
SELECT COUNT ( - 7 ) AS col0, 98
----
1
98

onlyif mysql # aggregate syntax: 
query I rowsort label-8068
SELECT ALL MIN( 49 ) * - 51 + - + 97 AS col2
----
-2596

skipif mysql # not compatible
query I rowsort label-8068
SELECT ALL MIN ( 49 ) * - 51 + - + 97 AS col2
----
-2596

onlyif mysql # aggregate syntax: 
query I rowsort label-8069
SELECT ALL 60 * - 5 * - - SUM( ALL 34 ) * - 28 + - COUNT( * )
----
285599

skipif mysql # not compatible
query I rowsort label-8069
SELECT ALL 60 * - 5 * - - SUM ( ALL 34 ) * - 28 + - COUNT ( * )
----
285599

onlyif mysql # DIV for integer division: 
query I rowsort label-8070
SELECT 71 DIV - 36 + + 66 AS col2
----
65

skipif mysql # not compatible
query I rowsort label-8070
SELECT 71 / - 36 + + 66 AS col2
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-8071
SELECT SUM( - + 1 )
----
-1

skipif mysql # not compatible
query I rowsort label-8071
SELECT SUM ( - + 1 )
----
-1

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

skipif mysql # not compatible
query I rowsort label-8072
SELECT COUNT ( * ) + + - 79 AS col0
----
-78

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

skipif mysql # not compatible
query I rowsort label-8073
SELECT - COUNT ( * ) / - 79 - - + 7
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-8074
SELECT SUM( 50 ) col2
----
50

skipif mysql # not compatible
query I rowsort label-8074
SELECT SUM ( 50 ) col2
----
50

query I rowsort
SELECT 44 * - - 31 + 18 col1
----
1382

query I rowsort
SELECT - 32 - 36
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-8077
SELECT ALL - 46 * - 56 * + 83 * + - CASE 30 WHEN 11 THEN - 23 + 67 WHEN 15 * 82 THEN NULL ELSE NULL END * + 44 - COALESCE ( 5 + COUNT( * ), + 13 + + 60, 90 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8077
SELECT ALL - 46 * - 56 * + 83 * + - CASE 30 WHEN 11 THEN - 23 + 67 WHEN 15 * 82 THEN NULL ELSE NULL END * + 44 - COALESCE ( 5 + COUNT ( * ), + 13 + + 60, 90 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8078
SELECT + 44 * MAX( + - 7 ) * + + 89
----
-27412

skipif mysql # not compatible
query I rowsort label-8078
SELECT + 44 * MAX ( + - 7 ) * + + 89
----
-27412

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

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

query I rowsort
SELECT + CASE + + 55 WHEN 90 THEN 90 WHEN - 19 * + CASE - 52 WHEN 5 THEN 49 END * + 42 + 84 THEN 45 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8081
SELECT ALL + NULLIF ( + - NULLIF ( - - 16, 85 * + 68 ), - + COUNT( * ) * - + 10 * - 37 + - COUNT( ALL + 2 ) ) AS col1
----
-16

skipif mysql # not compatible
query I rowsort label-8081
SELECT ALL + NULLIF ( + - NULLIF ( - - 16, 85 * + 68 ), - + COUNT ( * ) * - + 10 * - 37 + - COUNT ( ALL + 2 ) ) AS col1
----
-16

query II rowsort
SELECT ALL + 87 * + 81 + - - 57 * + 0 * - 12, 76 * + - 48 AS col1
----
7047
-3648

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8083
SELECT - + CAST( + COALESCE ( + - 6, + + ( + ( - - 10 ) ) / - - 44, + AVG ( 74 ) ) AS SIGNED ) * - ( + COUNT( * ) ) AS col2
----
-6

skipif mysql # not compatible
query I rowsort label-8083
SELECT - + CAST ( + COALESCE ( + - 6, + + ( + ( - - 10 ) ) / - - 44, + AVG ( 74 ) ) AS INTEGER ) * - ( + COUNT ( * ) ) AS col2
----
-6

query I rowsort
SELECT - - 17 + 15
----
32

query I rowsort
SELECT DISTINCT 69 * - 68
----
-4692

query I rowsort
SELECT ALL + 79 col1
----
79

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

skipif mysql # not compatible
query I rowsort label-8087
SELECT + - ( + MAX ( + - ( - 51 ) ) )
----
-51

onlyif mysql # DIV for integer division: 
query I rowsort label-8088
SELECT - + 26 DIV 59 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8088
SELECT - + 26 / 59 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8089
SELECT + 20 * 14 + - + COUNT( + - COALESCE ( - 93, - + 1 ) ) + + + COUNT( * ) AS col2
----
280

skipif mysql # not compatible
query I rowsort label-8089
SELECT + 20 * 14 + - + COUNT ( + - COALESCE ( - 93, - + 1 ) ) + + + COUNT ( * ) AS col2
----
280

query I rowsort
SELECT + 70 + + 37 - + ( + - 84 )
----
191

onlyif mysql # aggregate syntax: 
query I rowsort label-8091
SELECT - - MIN( + - 76 ) AS col1
----
-76

skipif mysql # not compatible
query I rowsort label-8091
SELECT - - MIN ( + - 76 ) AS col1
----
-76

query I rowsort
SELECT DISTINCT + NULLIF ( + 38, + 32 ) AS col1
----
38

query I rowsort
SELECT ALL + 71 / - CASE - + 83 WHEN + + 91 THEN 9 ELSE NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-8094
SELECT - 53 DIV - 74 * - - 57, + 84 AS col0
----
0
84

skipif mysql # not compatible
query II rowsort label-8094
SELECT - 53 / - 74 * - - 57, + 84 AS col0
----
0
84

onlyif mysql # aggregate syntax: 
query II rowsort label-8095
SELECT ALL - + COUNT( * ) + - 27 AS col2, 16 AS col0
----
-28
16

skipif mysql # not compatible
query II rowsort label-8095
SELECT ALL - + COUNT ( * ) + - 27 AS col2, 16 AS col0
----
-28
16

onlyif mysql # aggregate syntax: 
query I rowsort label-8096
SELECT DISTINCT - ( - COUNT( * ) ) + + 92 * + 82 AS col0
----
7545

skipif mysql # not compatible
query I rowsort label-8096
SELECT DISTINCT - ( - COUNT ( * ) ) + + 92 * + 82 AS col0
----
7545

onlyif mysql # aggregate syntax: 
query I rowsort label-8097
SELECT - - 99 + COUNT( * )
----
100

skipif mysql # not compatible
query I rowsort label-8097
SELECT - - 99 + COUNT ( * )
----
100

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8099
SELECT DISTINCT + + CAST( - + 43 AS SIGNED ) * - + 55
----
2365

skipif mysql # not compatible
query I rowsort label-8099
SELECT DISTINCT + + CAST ( - + 43 AS INTEGER ) * - + 55
----
2365

query I rowsort
SELECT - 73 + - 62
----
-135

onlyif mysql # aggregate syntax: 
query I rowsort label-8101
SELECT - CASE + 89 WHEN - + COUNT( * ) + + 30 THEN - 78 WHEN + - 69 THEN - 80 * 73 + - ( 14 ) END + 66 * 48 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8101
SELECT - CASE + 89 WHEN - + COUNT ( * ) + + 30 THEN - 78 WHEN + - 69 THEN - 80 * 73 + - ( 14 ) END + 66 * 48 AS col1
----
NULL

query I rowsort
SELECT - 56 + 99
----
43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8103
SELECT DISTINCT + + 7 + - - 56 * + CAST( + ( - 83 ) AS SIGNED ) - + - COUNT( * ) + 63
----
-4577

skipif mysql # not compatible
query I rowsort label-8103
SELECT DISTINCT + + 7 + - - 56 * + CAST ( + ( - 83 ) AS INTEGER ) - + - COUNT ( * ) + 63
----
-4577

onlyif mysql # aggregate syntax: 
query I rowsort label-8104
SELECT + 46 + 14 + + COUNT( * ) * 5 + 44
----
109

skipif mysql # not compatible
query I rowsort label-8104
SELECT + 46 + 14 + + COUNT ( * ) * 5 + 44
----
109

onlyif mysql # aggregate syntax: 
query I rowsort label-8105
SELECT ALL - COUNT( * ) + - + 94
----
-95

skipif mysql # not compatible
query I rowsort label-8105
SELECT ALL - COUNT ( * ) + - + 94
----
-95

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8106
SELECT ALL ( - CAST( - 94 AS SIGNED ) ) AS col1, 98 + CASE - + 99 WHEN - + CAST( NULL AS SIGNED ) * + 81 + 68 THEN + 65 ELSE - 59 END AS col0
----
94
39

skipif mysql # not compatible
query II rowsort label-8106
SELECT ALL ( - CAST ( - 94 AS INTEGER ) ) AS col1, 98 + CASE - + 99 WHEN - + CAST ( NULL AS INTEGER ) * + 81 + 68 THEN + 65 ELSE - 59 END AS col0
----
94
39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8107
SELECT DISTINCT ( - CAST( NULL AS SIGNED ) ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8107
SELECT DISTINCT ( - CAST ( NULL AS INTEGER ) ) col1
----
NULL

query I rowsort
SELECT DISTINCT - 20 + 20 AS col1
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8110
SELECT - 10 + - - COUNT( - 21 ) + ( - 54 )
----
-63

skipif mysql # not compatible
query I rowsort label-8110
SELECT - 10 + - - COUNT ( - 21 ) + ( - 54 )
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-8111
SELECT ALL CASE COUNT( * ) WHEN + - 64 THEN NULL ELSE - - 58 END AS col0
----
58

skipif mysql # not compatible
query I rowsort label-8111
SELECT ALL CASE COUNT ( * ) WHEN + - 64 THEN NULL ELSE - - 58 END AS col0
----
58

query I rowsort
SELECT ( + + NULLIF ( - - 66, + 69 ) ) col0
----
66

onlyif mysql # DIV for integer division: 
query I rowsort label-8113
SELECT - 74 DIV 52
----
-1

skipif mysql # not compatible
query I rowsort label-8113
SELECT - 74 / 52
----
-1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8114
SELECT + 80 * - NULLIF ( - - CAST( NULL AS DECIMAL ), - - 6 ) * + 75
----
NULL

skipif mysql # not compatible
query I rowsort label-8114
SELECT + 80 * - NULLIF ( - - CAST ( NULL AS REAL ), - - 6 ) * + 75
----
NULL

query I rowsort
SELECT + NULLIF ( + + 32, 21 * + COALESCE ( + 14, + - 40 * - + 24 * 28 / NULLIF ( + 40, - 3 * + 63 ) + 10 ) * + 55 + - NULLIF ( 83, 82 + + 53 ) ) AS col0
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-8116
SELECT 40 * COUNT( DISTINCT - - 73 ) * - COUNT( * ) + + 26
----
-14

skipif mysql # not compatible
query I rowsort label-8116
SELECT 40 * COUNT ( DISTINCT - - 73 ) * - COUNT ( * ) + + 26
----
-14

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8117
SELECT ALL - 2 * + + 76 - 71 - + - CAST( NULL AS SIGNED ) * + ( 87 ) col2, 75 col2
----
NULL
75

skipif mysql # not compatible
query II rowsort label-8117
SELECT ALL - 2 * + + 76 - 71 - + - CAST ( NULL AS INTEGER ) * + ( 87 ) col2, 75 col2
----
NULL
75

onlyif mysql # DIV for integer division: 
query I rowsort label-8118
SELECT - 44 DIV - 18 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-8118
SELECT - 44 / - 18 AS col0
----
2

query I rowsort
SELECT ( - 82 ) col1
----
-82

query I rowsort
SELECT + CASE - 70 WHEN + 51 THEN + 4 END
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-8121
SELECT DISTINCT + 84 AS col1, 81 DIV - - 3 col2
----
84
27

skipif mysql # not compatible
query II rowsort label-8121
SELECT DISTINCT + 84 AS col1, 81 / - - 3 col2
----
84
27

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8124
SELECT + 32 - + 51 * - COUNT( * ) * - + 60
----
-3028

skipif mysql # not compatible
query I rowsort label-8124
SELECT + 32 - + 51 * - COUNT ( * ) * - + 60
----
-3028

query II rowsort
SELECT + 48 AS col2, + 42
----
48
42

query I rowsort
SELECT ALL ( - 54 ) * + 86 + - 41 + - 35
----
-4720

query II rowsort
SELECT - 98 AS col2, 79 * + 45 AS col0
----
-98
3555

query I rowsort
SELECT + - CASE + 11 WHEN - 90 THEN - ( 85 ) / + 68 + - + 91 END * + ( ( - 98 ) ) col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8129
SELECT + AVG ( - 9 ) + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8129
SELECT + AVG ( - 9 ) + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8130
SELECT - + 89 + + 45 * - + 84 + - + 13 * ( - NULLIF ( - 13, + 29 * 45 ) ) DIV - 10 - - 75
----
-3778

skipif mysql # not compatible
query I rowsort label-8130
SELECT - + 89 + + 45 * - + 84 + - + 13 * ( - NULLIF ( - 13, + 29 * 45 ) ) / - 10 - - 75
----
-3778

onlyif mysql # aggregate syntax: 
query I rowsort label-8131
SELECT DISTINCT 59 * - 94 + 85 * + 80 * + - COUNT( * ) AS col1
----
-12346

skipif mysql # not compatible
query I rowsort label-8131
SELECT DISTINCT 59 * - 94 + 85 * + 80 * + - COUNT ( * ) AS col1
----
-12346

query I rowsort
SELECT ALL - 8 * - + 42 * 48 + - + 66
----
16062

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8133
SELECT ALL - 72 * - 89 + + - 68 + + CAST( + 38 AS SIGNED ) col2
----
6378

skipif mysql # not compatible
query I rowsort label-8133
SELECT ALL - 72 * - 89 + + - 68 + + CAST ( + 38 AS INTEGER ) col2
----
6378

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

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

query II rowsort
SELECT - - 98, 36 - 76 AS col0
----
98
-40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8136
SELECT ALL SUM( 26 ) * - + 23 * - - CAST( + 25 AS SIGNED ) + + + MAX( - 31 ) + 9
----
-14972

skipif mysql # not compatible
query I rowsort label-8136
SELECT ALL SUM ( 26 ) * - + 23 * - - CAST ( + 25 AS INTEGER ) + + + MAX ( - 31 ) + 9
----
-14972

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

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

query I rowsort
SELECT + 61 + + + 8
----
69

query II rowsort
SELECT + 27, 61 AS col2
----
27
61

query I rowsort
SELECT + 75 + + 7
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-8141
SELECT ALL MAX( - - 93 ) col2
----
93

skipif mysql # not compatible
query I rowsort label-8141
SELECT ALL MAX ( - - 93 ) col2
----
93

onlyif mysql # DIV for integer division: 
query I rowsort label-8142
SELECT - + 87 DIV + - 47
----
1

skipif mysql # not compatible
query I rowsort label-8142
SELECT - + 87 / + - 47
----
1

query I rowsort
SELECT - 58 - - 75 AS col1
----
17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8144
SELECT DISTINCT + CASE + + ( - 59 ) WHEN - COUNT( * ) + + 12 * + + 15 + ( 9 ) THEN 42 WHEN 99 THEN NULL WHEN - CAST( NULL AS SIGNED ) THEN NULL ELSE NULL END / 92 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8144
SELECT DISTINCT + CASE + + ( - 59 ) WHEN - COUNT ( * ) + + 12 * + + 15 + ( 9 ) THEN 42 WHEN 99 THEN NULL WHEN - CAST ( NULL AS INTEGER ) THEN NULL ELSE NULL END / 92 AS col2
----
NULL

query I rowsort
SELECT - 93 * 27
----
-2511

onlyif mysql # aggregate syntax: 
query I rowsort label-8146
SELECT ALL + 43 * - - COALESCE ( 24, 49 * - + COUNT( * ) + 11 + - 50, - 72 ) AS col1
----
1032

skipif mysql # not compatible
query I rowsort label-8146
SELECT ALL + 43 * - - COALESCE ( 24, 49 * - + COUNT ( * ) + 11 + - 50, - 72 ) AS col1
----
1032

onlyif mysql # aggregate syntax: 
query I rowsort label-8147
SELECT - 69 + ( + 71 ) * + - ( + - COUNT( * ) ) - - + 87 AS col1
----
89

skipif mysql # not compatible
query I rowsort label-8147
SELECT - 69 + ( + 71 ) * + - ( + - COUNT ( * ) ) - - + 87 AS col1
----
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8148
SELECT ALL COALESCE ( + 7, + 58 + - 48 + - 62 * - ( - COUNT( + 73 ) ) * 40 * 35 + 16 * CAST( NULL AS SIGNED ), CAST( NULL AS SIGNED ) + - 79 )
----
7

skipif mysql # not compatible
query I rowsort label-8148
SELECT ALL COALESCE ( + 7, + 58 + - 48 + - 62 * - ( - COUNT ( + 73 ) ) * 40 * 35 + 16 * CAST ( NULL AS INTEGER ), CAST ( NULL AS INTEGER ) + - 79 )
----
7

query I rowsort
SELECT DISTINCT COALESCE ( + + 22, - 31, 20 ) * - - NULLIF ( - 79, 48 * - 75 ) + + 39
----
-1699

query I rowsort
SELECT DISTINCT - 98 * - + 80 AS col2
----
7840

query I rowsort
SELECT + 74 + - 65 - - 0 col2
----
9

onlyif mysql # aggregate syntax: 
query II rowsort label-8152
SELECT - MAX( DISTINCT - + 3 ) AS col0, 73 * - + SUM( ( - 52 ) ) AS col0
----
3
3796

skipif mysql # not compatible
query II rowsort label-8152
SELECT - MAX ( DISTINCT - + 3 ) AS col0, 73 * - + SUM ( ( - 52 ) ) AS col0
----
3
3796

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8153
SELECT 11 + ( + + SUM( - 10 ) ), + 42 + - 95 DIV + COUNT( * ) * COUNT( ALL + 32 ) col2
----
1
-53

skipif mysql # not compatible
query II rowsort label-8153
SELECT 11 + ( + + SUM ( - 10 ) ), + 42 + - 95 / + COUNT ( * ) * COUNT ( ALL + 32 ) col2
----
1
-53

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8154
SELECT 20 + - + CAST( NULL AS DECIMAL ) col0, 98
----
NULL
98

skipif mysql # not compatible
query II rowsort label-8154
SELECT 20 + - + CAST ( NULL AS REAL ) col0, 98
----
NULL
98

query I rowsort
SELECT 30 * 70 col2
----
2100

onlyif mysql # aggregate syntax: 
query I rowsort label-8156
SELECT ALL - NULLIF ( ( - - COUNT( * ) ), - 32 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-8156
SELECT ALL - NULLIF ( ( - - COUNT ( * ) ), - 32 ) AS col0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-8157
SELECT - 95 DIV - 91 - 9
----
-8

skipif mysql # not compatible
query I rowsort label-8157
SELECT - 95 / - 91 - 9
----
-8

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

skipif mysql # not compatible
query I rowsort label-8158
SELECT ALL - MAX ( ALL - 6 )
----
6

onlyif mysql # DIV for integer division: 
query I rowsort label-8159
SELECT 46 + + 1 * - 72 DIV - + NULLIF ( - 13, 66 )
----
41

skipif mysql # not compatible
query I rowsort label-8159
SELECT 46 + + 1 * - 72 / - + NULLIF ( - 13, 66 )
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-8160
SELECT ALL - CASE + + 16 WHEN + - 11 + - - SUM( + + 72 ) THEN + COALESCE ( COUNT( * ), + 9 * + 92, - 83, + 44 ) - COALESCE ( 27, + 23, - 0 ) WHEN 19 + 12 THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8160
SELECT ALL - CASE + + 16 WHEN + - 11 + - - SUM ( + + 72 ) THEN + COALESCE ( COUNT ( * ), + 9 * + 92, - 83, + 44 ) - COALESCE ( 27, + 23, - 0 ) WHEN 19 + 12 THEN NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8161
SELECT + ( + COUNT( DISTINCT - 8 ) ) * + - COUNT( * ) * + 67 + - - 1 - + 90 + + - 18 + - COUNT( * ) AS col2
----
-175

skipif mysql # not compatible
query I rowsort label-8161
SELECT + ( + COUNT ( DISTINCT - 8 ) ) * + - COUNT ( * ) * + 67 + - - 1 - + 90 + + - 18 + - COUNT ( * ) AS col2
----
-175

query I rowsort
SELECT ALL 85 * - 43 col2
----
-3655

query I rowsort
SELECT ALL - 82 + 22 + + 52 - 4
----
-12

onlyif mysql # DIV for integer division: 
query I rowsort label-8164
SELECT - 90 DIV 60 + 3
----
2

skipif mysql # not compatible
query I rowsort label-8164
SELECT - 90 / 60 + 3
----
2

query I rowsort
SELECT - 29 + - 21
----
-50

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8166
SELECT + + 97 DIV 6 - - SUM( DISTINCT 14 ) - + 31 + - 32 + MIN( + + NULLIF ( + 74, 76 ) ) DIV COUNT( * ) * + ( - CASE 64 WHEN 55 THEN NULL ELSE - 0 DIV + 98 + + 42 END )
----
-3141

skipif mysql # not compatible
query I rowsort label-8166
SELECT + + 97 / 6 - - SUM ( DISTINCT 14 ) - + 31 + - 32 + MIN ( + + NULLIF ( + 74, 76 ) ) / COUNT ( * ) * + ( - CASE 64 WHEN 55 THEN NULL ELSE - 0 / + 98 + + 42 END )
----
-3141

query I rowsort
SELECT ALL + - 32 * + 91
----
-2912

onlyif mysql # aggregate syntax: 
query I rowsort label-8168
SELECT + 61 * CASE + + 44 WHEN + - 17 * + - 66 THEN NULL ELSE - COUNT( * ) * + COALESCE ( + 65, - - 33 ) - + 37 END + + 16
----
-6206

skipif mysql # not compatible
query I rowsort label-8168
SELECT + 61 * CASE + + 44 WHEN + - 17 * + - 66 THEN NULL ELSE - COUNT ( * ) * + COALESCE ( + 65, - - 33 ) - + 37 END + + 16
----
-6206

query I rowsort
SELECT + 13 + - + 89 AS col2
----
-76

query I rowsort
SELECT DISTINCT - - 87 col1
----
87

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8171
SELECT + 57 DIV + 50 AS col1, + SUM( ALL + - 20 ) AS col0
----
1
-20

skipif mysql # not compatible
query II rowsort label-8171
SELECT + 57 / + 50 AS col1, + SUM ( ALL + - 20 ) AS col0
----
1
-20

query I rowsort
SELECT ALL + + 65 + - ( - + 1 )
----
66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8173
SELECT ALL + 54 + SUM( ALL 59 ) - 59 DIV - 90
----
113

skipif mysql # not compatible
query I rowsort label-8173
SELECT ALL + 54 + SUM ( ALL 59 ) - 59 / - 90
----
113

query I rowsort
SELECT ALL - 80 + 42 - 20 AS col1
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-8175
SELECT + 79 + - 50 * COUNT( * ) AS col2
----
29

skipif mysql # not compatible
query I rowsort label-8175
SELECT + 79 + - 50 * COUNT ( * ) AS col2
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-8176
SELECT DISTINCT + + COUNT( * ) + + COUNT( 97 ) col0
----
2

skipif mysql # not compatible
query I rowsort label-8176
SELECT DISTINCT + + COUNT ( * ) + + COUNT ( 97 ) col0
----
2

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-8178
SELECT ALL - 77 DIV 43
----
-1

skipif mysql # not compatible
query I rowsort label-8178
SELECT ALL - 77 / 43
----
-1

query I rowsort
SELECT ALL 76 + + 74 AS col2
----
150

onlyif mysql # aggregate syntax: 
query I rowsort label-8180
SELECT - SUM( + 28 ) AS col0
----
-28

skipif mysql # not compatible
query I rowsort label-8180
SELECT - SUM ( + 28 ) AS col0
----
-28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8181
SELECT + COALESCE ( - 21, - CAST( ( 99 ) AS SIGNED ) * - + 58 + + 13, ( + 10 ) DIV + NULLIF ( - COALESCE ( + 24, COUNT( * ) + + 53 DIV NULLIF ( COUNT( * ), 7 ) ) - - ( + NULLIF ( 32, - COUNT( * ) * 41 + 80 ) - 71 ), - COUNT( * ) * 7 + - 1 ) ) * + 11 + - COUNT( * ) DIV - 44
----
-231

skipif mysql # not compatible
query I rowsort label-8181
SELECT + COALESCE ( - 21, - CAST ( ( 99 ) AS INTEGER ) * - + 58 + + 13, ( + 10 ) / + NULLIF ( - COALESCE ( + 24, COUNT ( * ) + + 53 / NULLIF ( COUNT ( * ), 7 ) ) - - ( + NULLIF ( 32, - COUNT ( * ) * 41 + 80 ) - 71 ), - COUNT ( * ) * 7 + - 1 ) ) * + 11 + - COUNT ( * ) / - 44
----
-231

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8182
SELECT DISTINCT - CAST( - CAST( - 28 AS SIGNED ) AS SIGNED ) + - 54 - - - 25 * 84 AS col2
----
-2182

skipif mysql # not compatible
query I rowsort label-8182
SELECT DISTINCT - CAST ( - CAST ( - 28 AS INTEGER ) AS INTEGER ) + - 54 - - - 25 * 84 AS col2
----
-2182

onlyif mysql # aggregate syntax: 
query II rowsort label-8183
SELECT COUNT( * ) + + + 23 + - ( + - 41 ) AS col1, - 81
----
65
-81

skipif mysql # not compatible
query II rowsort label-8183
SELECT COUNT ( * ) + + + 23 + - ( + - 41 ) AS col1, - 81
----
65
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-8184
SELECT ALL - 78 - - 15 + - - 78 * - COUNT( * ) / + - CASE - - 67 WHEN - 72 THEN - - 80 * + - ( + 32 ) * 65 WHEN + 66 * 19 + 91 THEN NULL ELSE NULL END + - 45 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8184
SELECT ALL - 78 - - 15 + - - 78 * - COUNT ( * ) / + - CASE - - 67 WHEN - 72 THEN - - 80 * + - ( + 32 ) * 65 WHEN + 66 * 19 + 91 THEN NULL ELSE NULL END + - 45 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8185
SELECT 11 + 29 + - COUNT( * ) AS col1, 47 - - 35 * - ( - 31 ) - - + 28 AS col0
----
39
1160

skipif mysql # not compatible
query II rowsort label-8185
SELECT 11 + 29 + - COUNT ( * ) AS col1, 47 - - 35 * - ( - 31 ) - - + 28 AS col0
----
39
1160

onlyif mysql # aggregate syntax: 
query I rowsort label-8186
SELECT ALL COUNT( - + 96 ) * + 16 + - 86 col0
----
-70

skipif mysql # not compatible
query I rowsort label-8186
SELECT ALL COUNT ( - + 96 ) * + 16 + - 86 col0
----
-70

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8188
SELECT COUNT( * ) + 34 + - 59 * 79 col2
----
-4626

skipif mysql # not compatible
query I rowsort label-8188
SELECT COUNT ( * ) + 34 + - 59 * 79 col2
----
-4626

onlyif mysql # aggregate syntax: 
query II rowsort label-8189
SELECT - 40, 48 * - 39 * - COALESCE ( COUNT( * ), 33 ) + 78 AS col2
----
-40
1950

skipif mysql # not compatible
query II rowsort label-8189
SELECT - 40, 48 * - 39 * - COALESCE ( COUNT ( * ), 33 ) + 78 AS col2
----
-40
1950

onlyif mysql # aggregate syntax: 
query I rowsort label-8190
SELECT ( + - ( + 90 ) ) / 78 + 55 + CASE + COUNT( * ) WHEN - + 96 THEN + 50 WHEN - - 34 THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8190
SELECT ( + - ( + 90 ) ) / 78 + 55 + CASE + COUNT ( * ) WHEN - + 96 THEN + 50 WHEN - - 34 THEN NULL END AS col0
----
NULL

query I rowsort
SELECT 46 + - 19 * 27
----
-467

query II rowsort
SELECT DISTINCT 96 AS col2, + 67
----
96
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8193
SELECT ALL 47 AS col1, - COUNT( * ) - + CAST( + - 82 AS SIGNED ) AS col2
----
47
81

skipif mysql # not compatible
query II rowsort label-8193
SELECT ALL 47 AS col1, - COUNT ( * ) - + CAST ( + - 82 AS INTEGER ) AS col2
----
47
81

onlyif mysql # aggregate syntax: 
query I rowsort label-8194
SELECT 56 + - 94 + - NULLIF ( + SUM( - 54 ), COUNT( * ) )
----
16

skipif mysql # not compatible
query I rowsort label-8194
SELECT 56 + - 94 + - NULLIF ( + SUM ( - 54 ), COUNT ( * ) )
----
16

query I rowsort
SELECT ALL - 13 * - 23 AS col0
----
299

onlyif mysql # aggregate syntax: 
query II rowsort label-8196
SELECT DISTINCT 7 AS col1, + COUNT( * ) / - CASE - COUNT( * ) WHEN + - 54 * - 18 THEN + 40 END * + 93 / - ( + 72 ) * NULLIF ( - 60 + 37, - 0 * - 87 ) + - 76 AS col0
----
7
NULL

skipif mysql # not compatible
query II rowsort label-8196
SELECT DISTINCT 7 AS col1, + COUNT ( * ) / - CASE - COUNT ( * ) WHEN + - 54 * - 18 THEN + 40 END * + 93 / - ( + 72 ) * NULLIF ( - 60 + 37, - 0 * - 87 ) + - 76 AS col0
----
7
NULL

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

query I rowsort
SELECT 55 * + 70 AS col1
----
3850

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

query I rowsort
SELECT 65 * - 71 AS col0
----
-4615

query I rowsort
SELECT ALL + 50 + + 75 AS col2
----
125

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8203
SELECT 71 + + + COALESCE ( - + 44, 28 * + 38 / - 52 ) * - CAST( NULL AS SIGNED ) * + - 73 + COUNT( * ) / - 71 + - 4 * + 99 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8203
SELECT 71 + + + COALESCE ( - + 44, 28 * + 38 / - 52 ) * - CAST ( NULL AS INTEGER ) * + - 73 + COUNT ( * ) / - 71 + - 4 * + 99 col0
----
NULL

query I rowsort
SELECT DISTINCT + 41 * + - 54 AS col2
----
-2214

query II rowsort
SELECT ALL - + 53, + 8 col1
----
-53
8

onlyif mysql # DIV for integer division: 
query I rowsort label-8206
SELECT + + 36 DIV 24 + - 65
----
-64

skipif mysql # not compatible
query I rowsort label-8206
SELECT + + 36 / 24 + - 65
----
-64

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8208
SELECT DISTINCT - + MAX( ALL CAST( + + 56 AS SIGNED ) ) AS col2
----
-56

skipif mysql # not compatible
query I rowsort label-8208
SELECT DISTINCT - + MAX ( ALL CAST ( + + 56 AS INTEGER ) ) AS col2
----
-56

query II rowsort
SELECT DISTINCT - 33, + 21 * - 51 AS col1
----
-33
-1071

query I rowsort
SELECT ALL - 23 + 27
----
4

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-8212
SELECT ALL - 32 * 65 + - - 31 DIV - + 18 AS col1
----
-2081

skipif mysql # not compatible
query I rowsort label-8212
SELECT ALL - 32 * 65 + - - 31 / - + 18 AS col1
----
-2081

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8213
SELECT 30 + 60 * - 31 - + COUNT( ALL 79 ) * AVG ( ALL - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8213
SELECT 30 + 60 * - 31 - + COUNT ( ALL 79 ) * AVG ( ALL - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8214
SELECT + 27 DIV - + 47
----
0

skipif mysql # not compatible
query I rowsort label-8214
SELECT + 27 / - + 47
----
0

query I rowsort
SELECT ALL NULLIF ( 39, + 35 / - 70 ) - - + 55
----
94

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-8217
SELECT ALL + 16 DIV + 24 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8217
SELECT ALL + 16 / + 24 AS col2
----
0

query I rowsort
SELECT 21 * + 41
----
861

onlyif mysql # aggregate syntax: 
query I rowsort label-8219
SELECT ALL COALESCE ( - + 78, 86 + - COUNT( * ) ) AS col1
----
-78

skipif mysql # not compatible
query I rowsort label-8219
SELECT ALL COALESCE ( - + 78, 86 + - COUNT ( * ) ) AS col1
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-8220
SELECT ALL CASE - 5 WHEN - ( 48 ) THEN NULL WHEN - SUM( 71 ) * 67 * 86 + SUM( - 69 ) + + 53 THEN + COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-8220
SELECT ALL CASE - 5 WHEN - ( 48 ) THEN NULL WHEN - SUM ( 71 ) * 67 * 86 + SUM ( - 69 ) + + 53 THEN + COUNT ( * ) END
----
NULL

query I rowsort
SELECT 95 * + + 36 * - 8
----
-27360

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

skipif mysql # not compatible
query I rowsort label-8222
SELECT - MAX ( ALL 42 )
----
-42

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

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

query I rowsort
SELECT - 34 + + + 6 * - + 88 col1
----
-562

onlyif mysql # DIV for integer division: 
query I rowsort label-8225
SELECT + 40 DIV + + 22 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8225
SELECT + 40 / + + 22 AS col0
----
1

query I rowsort
SELECT + 27 * - 51 AS col0
----
-1377

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8228
SELECT ALL 74 * 36 AS col2, - COALESCE ( + 37, - 73 + + + MIN( DISTINCT - 17 ), CAST( NULL AS SIGNED ) - ( + 95 ) + - 89 - COUNT( * ) * ( CAST( 9 AS SIGNED ) * 89 - + COUNT( * ) * 52 ) * + 46 ) * 74
----
2664
-2738

skipif mysql # not compatible
query II rowsort label-8228
SELECT ALL 74 * 36 AS col2, - COALESCE ( + 37, - 73 + + + MIN ( DISTINCT - 17 ), CAST ( NULL AS INTEGER ) - ( + 95 ) + - 89 - COUNT ( * ) * ( CAST ( 9 AS INTEGER ) * 89 - + COUNT ( * ) * 52 ) * + 46 ) * 74
----
2664
-2738

query I rowsort
SELECT ALL 86 * - + 68
----
-5848

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8230
SELECT DISTINCT COUNT( * ) + + + MAX( 10 ) DIV - 54 + - ( 66 ) * 25 AS col2
----
-1649

skipif mysql # not compatible
query I rowsort label-8230
SELECT DISTINCT COUNT ( * ) + + + MAX ( 10 ) / - 54 + - ( 66 ) * 25 AS col2
----
-1649

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-8232
SELECT - CASE 53 WHEN - - COUNT( * ) THEN 83 / - + 53 * - 27 * - 99 ELSE NULL END, 63 - + 1 * - MIN( ALL - 27 ) + - ( 76 + ( - 47 + 35 * - 37 ) ) col0
----
NULL
1302

skipif mysql # not compatible
query II rowsort label-8232
SELECT - CASE 53 WHEN - - COUNT ( * ) THEN 83 / - + 53 * - 27 * - 99 ELSE NULL END, 63 - + 1 * - MIN ( ALL - 27 ) + - ( 76 + ( - 47 + 35 * - 37 ) ) col0
----
NULL
1302

query I rowsort
SELECT ALL 38 * + 34
----
1292

onlyif mysql # aggregate syntax: 
query II rowsort label-8234
SELECT + 50 * + + ( - + COALESCE ( + 69, - + 93, COUNT( * ) ) ), 6 col1
----
-3450
6

skipif mysql # not compatible
query II rowsort label-8234
SELECT + 50 * + + ( - + COALESCE ( + 69, - + 93, COUNT ( * ) ) ), 6 col1
----
-3450
6

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8235
SELECT + 61 + - + ( + 84 ) DIV - + COUNT( * ) AS col1, + 87 AS col1
----
145
87

skipif mysql # not compatible
query II rowsort label-8235
SELECT + 61 + - + ( + 84 ) / - + COUNT ( * ) AS col1, + 87 AS col1
----
145
87

onlyif mysql # aggregate syntax: 
query I rowsort label-8236
SELECT ALL 32 + 29 + COUNT( * ) * + 73 + + 38 + + 30 * 37
----
1282

skipif mysql # not compatible
query I rowsort label-8236
SELECT ALL 32 + 29 + COUNT ( * ) * + 73 + + 38 + + 30 * 37
----
1282

onlyif mysql # aggregate syntax: 
query I rowsort label-8237
SELECT + COUNT( * ) + + 22 - + - 17
----
40

skipif mysql # not compatible
query I rowsort label-8237
SELECT + COUNT ( * ) + + 22 - + - 17
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-8238
SELECT - 20 * + CASE + - 26 WHEN - 21 THEN - 90 WHEN + 48 THEN + + 29 * 95 + + ( - 92 ) * + 18 END * + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8238
SELECT - 20 * + CASE + - 26 WHEN - 21 THEN - 90 WHEN + 48 THEN + + 29 * 95 + + ( - 92 ) * + 18 END * + COUNT ( * ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8239
SELECT ALL 29 * CASE - 29 WHEN AVG ( ALL + 63 ) * + 25 THEN NULL ELSE + 16 + CAST( + 71 AS SIGNED ) END * 98 * + + CASE 97 WHEN 46 THEN NULL WHEN - 37 + - 19 THEN + CASE 80 WHEN 89 * - 50 THEN + CAST( NULL AS SIGNED ) ELSE 42 END END + - 40 * - 81
----
NULL

skipif mysql # not compatible
query I rowsort label-8239
SELECT ALL 29 * CASE - 29 WHEN AVG ( ALL + 63 ) * + 25 THEN NULL ELSE + 16 + CAST ( + 71 AS INTEGER ) END * 98 * + + CASE 97 WHEN 46 THEN NULL WHEN - 37 + - 19 THEN + CASE 80 WHEN 89 * - 50 THEN + CAST ( NULL AS INTEGER ) ELSE 42 END END + - 40 * - 81
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8240
SELECT DISTINCT + 79 AS col0, 17 - + - COUNT( 68 ) / 94 + - 86 + - 51 * - 48 * + 74 * CAST( NULL AS SIGNED )
----
79
NULL

skipif mysql # not compatible
query II rowsort label-8240
SELECT DISTINCT + 79 AS col0, 17 - + - COUNT ( 68 ) / 94 + - 86 + - 51 * - 48 * + 74 * CAST ( NULL AS INTEGER )
----
79
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8241
SELECT ALL 78 * NULLIF ( - + CAST( + 4 AS SIGNED ), ( + - 7 ) / - NULLIF ( + COUNT( * ), - 29 + COUNT( ALL - 80 ) + - 72 ) ) + 62
----
-250

skipif mysql # not compatible
query I rowsort label-8241
SELECT ALL 78 * NULLIF ( - + CAST ( + 4 AS INTEGER ), ( + - 7 ) / - NULLIF ( + COUNT ( * ), - 29 + COUNT ( ALL - 80 ) + - 72 ) ) + 62
----
-250

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8242
SELECT + - 60 DIV COUNT( * ) + - 82 AS col0
----
-142

skipif mysql # not compatible
query I rowsort label-8242
SELECT + - 60 / COUNT ( * ) + - 82 AS col0
----
-142

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8244
SELECT DISTINCT - COUNT( * ) * 52 + - 82 + + - 32 AS col0
----
-166

skipif mysql # not compatible
query I rowsort label-8244
SELECT DISTINCT - COUNT ( * ) * 52 + - 82 + + - 32 AS col0
----
-166

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8246
SELECT ALL + - ( - CASE 30 WHEN - 8 + + - 91 - - ( 69 ) * + 96 * 58 THEN + 48 WHEN - 21 * - 45 THEN NULL WHEN NULLIF ( - 61, + COUNT( * ) ) + CAST( CAST( NULL AS SIGNED ) AS SIGNED ) THEN - 67 DIV - 34 + 65 ELSE - COUNT( * ) END ) * 46
----
-46

skipif mysql # not compatible
query I rowsort label-8246
SELECT ALL + - ( - CASE 30 WHEN - 8 + + - 91 - - ( 69 ) * + 96 * 58 THEN + 48 WHEN - 21 * - 45 THEN NULL WHEN NULLIF ( - 61, + COUNT ( * ) ) + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) THEN - 67 / - 34 + 65 ELSE - COUNT ( * ) END ) * 46
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-8247
SELECT ALL 86 * - + 48 - - 5 * + 55 * + COUNT( * ) * 92 AS col2
----
21172

skipif mysql # not compatible
query I rowsort label-8247
SELECT ALL 86 * - + 48 - - 5 * + 55 * + COUNT ( * ) * 92 AS col2
----
21172

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

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

query I rowsort
SELECT + NULLIF ( + 15, 14 ) AS col0
----
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8250
SELECT 83 DIV - 90 + 35 * + - CASE - + 35 WHEN + 16 + + COUNT( * ) THEN - 7 + - + 84 DIV - + COUNT( * ) * 97 ELSE - CAST( ( 17 ) AS SIGNED ) END AS col1
----
595

skipif mysql # not compatible
query I rowsort label-8250
SELECT 83 / - 90 + 35 * + - CASE - + 35 WHEN + 16 + + COUNT ( * ) THEN - 7 + - + 84 / - + COUNT ( * ) * 97 ELSE - CAST ( ( 17 ) AS INTEGER ) END AS col1
----
595

query I rowsort
SELECT + + 72 + 30
----
102

onlyif mysql # DIV for integer division: 
query II rowsort label-8252
SELECT - 46 AS col2, - 29 DIV - 48
----
-46
0

skipif mysql # not compatible
query II rowsort label-8252
SELECT - 46 AS col2, - 29 / - 48
----
-46
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8253
SELECT + MAX( ALL + + 5 ) AS col2
----
5

skipif mysql # not compatible
query I rowsort label-8253
SELECT + MAX ( ALL + + 5 ) AS col2
----
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8254
SELECT NULLIF ( + + ( + 16 ), 76 * - 89 + + ( CAST( + 42 AS SIGNED ) ) + - 29 ) * 43 + + 74 * COUNT( * ) + - 0 AS col1
----
762

skipif mysql # not compatible
query I rowsort label-8254
SELECT NULLIF ( + + ( + 16 ), 76 * - 89 + + ( CAST ( + 42 AS INTEGER ) ) + - 29 ) * 43 + + 74 * COUNT ( * ) + - 0 AS col1
----
762

query I rowsort
SELECT DISTINCT + + NULLIF ( - 26, + 31 - ( + ( - + 70 ) ) )
----
-26

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8256
SELECT DISTINCT + 96 AS col2, + CAST( NULL AS SIGNED ) + ( ( CAST( - 35 AS SIGNED ) ) )
----
96
NULL

skipif mysql # not compatible
query II rowsort label-8256
SELECT DISTINCT + 96 AS col2, + CAST ( NULL AS INTEGER ) + ( ( CAST ( - 35 AS INTEGER ) ) )
----
96
NULL

query I rowsort
SELECT + + 70 * 54 AS col2
----
3780

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

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

query I rowsort
SELECT DISTINCT - ( 87 ) * 33 + - 7
----
-2878

query I rowsort
SELECT ALL + ( + - 73 ) AS col1
----
-73

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8262
SELECT - 16 + + + NULLIF ( - MIN( DISTINCT 71 ), + 64 + - ( 52 ) - + + 69 * + - 15 )
----
-87

skipif mysql # not compatible
query I rowsort label-8262
SELECT - 16 + + + NULLIF ( - MIN ( DISTINCT 71 ), + 64 + - ( 52 ) - + + 69 * + - 15 )
----
-87

onlyif mysql # aggregate syntax: 
query II rowsort label-8263
SELECT + 34 * - 97 AS col2, 53 * 33 + + COUNT( * ) * - MIN( - 38 ) AS col2
----
-3298
1787

skipif mysql # not compatible
query II rowsort label-8263
SELECT + 34 * - 97 AS col2, 53 * 33 + + COUNT ( * ) * - MIN ( - 38 ) AS col2
----
-3298
1787

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8264
SELECT DISTINCT - COUNT( * ) * - - COUNT( * ) DIV + COALESCE ( 6, + 76 )
----
0

skipif mysql # not compatible
query I rowsort label-8264
SELECT DISTINCT - COUNT ( * ) * - - COUNT ( * ) / + COALESCE ( 6, + 76 )
----
0

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

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

query I rowsort
SELECT ALL 92 + + 26 * + 66 * + 9
----
15536

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8267
SELECT - 98 + 92 * + COALESCE ( + - 7, - CAST( 19 AS SIGNED ) ) * - 56
----
35966

skipif mysql # not compatible
query I rowsort label-8267
SELECT - 98 + 92 * + COALESCE ( + - 7, - CAST ( 19 AS INTEGER ) ) * - 56
----
35966

query I rowsort
SELECT ALL - 13 + 75 * + 73 * ( - + 13 )
----
-71188

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8270
SELECT ALL 85 + CAST( - 41 AS SIGNED )
----
44

skipif mysql # not compatible
query I rowsort label-8270
SELECT ALL 85 + CAST ( - 41 AS INTEGER )
----
44

onlyif mysql # DIV for integer division: 
query I rowsort label-8271
SELECT DISTINCT + 77 DIV ( + 99 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8271
SELECT DISTINCT + 77 / ( + 99 ) AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8272
SELECT + 44 + + 4 + + 83 + 89 DIV - + ( - 8 ) AS col2
----
142

skipif mysql # not compatible
query I rowsort label-8272
SELECT + 44 + + 4 + + 83 + 89 / - + ( - 8 ) AS col2
----
142

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8273
SELECT ALL 26 + + - COALESCE ( 1, + 60 * 39 - 27, CASE + + 94 WHEN + + 28 * - + 0 + - 77 - 60 + 43 THEN NULL ELSE - ( - 97 ) END DIV + 68 + + 13, 60 - - COUNT( * ) )
----
25

skipif mysql # not compatible
query I rowsort label-8273
SELECT ALL 26 + + - COALESCE ( 1, + 60 * 39 - 27, CASE + + 94 WHEN + + 28 * - + 0 + - 77 - 60 + 43 THEN NULL ELSE - ( - 97 ) END / + 68 + + 13, 60 - - COUNT ( * ) )
----
25

query I rowsort
SELECT ALL 84 * - - 75
----
6300

query II rowsort
SELECT DISTINCT 58 * - 34 AS col1, + 51 AS col2
----
-1972
51

onlyif mysql # aggregate syntax: 
query I rowsort label-8276
SELECT DISTINCT - - 96 * - + COALESCE ( - + 10, - COALESCE ( + ( - 52 ), - 80, - COUNT( * ) * MIN( + 42 ) ) ) AS col0
----
960

skipif mysql # not compatible
query I rowsort label-8276
SELECT DISTINCT - - 96 * - + COALESCE ( - + 10, - COALESCE ( + ( - 52 ), - 80, - COUNT ( * ) * MIN ( + 42 ) ) ) AS col0
----
960

query I rowsort
SELECT ALL - 56 - + - 38
----
-18

query I rowsort
SELECT + - 37 * + - 77
----
2849

query I rowsort
SELECT ALL + - NULLIF ( + 98, + 98 ) AS col2
----
NULL

query II rowsort
SELECT DISTINCT + ( + + 61 ) AS col0, 14 AS col2
----
61
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8281
SELECT + - 10 * 3 * + CAST( 40 AS SIGNED )
----
-1200

skipif mysql # not compatible
query I rowsort label-8281
SELECT + - 10 * 3 * + CAST ( 40 AS INTEGER )
----
-1200

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8282
SELECT 46 DIV + COUNT( * ) + 84 + - 85
----
45

skipif mysql # not compatible
query I rowsort label-8282
SELECT 46 / + COUNT ( * ) + 84 + - 85
----
45

onlyif mysql # aggregate syntax: 
query II rowsort label-8283
SELECT - COUNT( + - 5 ) AS col1, 80 + - + 36
----
-1
44

skipif mysql # not compatible
query II rowsort label-8283
SELECT - COUNT ( + - 5 ) AS col1, 80 + - + 36
----
-1
44

onlyif mysql # aggregate syntax: 
query I rowsort label-8284
SELECT ALL + NULLIF ( ( + 21 ), COALESCE ( + 31, COUNT( * ) ) - AVG ( ALL + - 45 ) )
----
21

skipif mysql # not compatible
query I rowsort label-8284
SELECT ALL + NULLIF ( ( + 21 ), COALESCE ( + 31, COUNT ( * ) ) - AVG ( ALL + - 45 ) )
----
21

query I rowsort
SELECT ALL + - COALESCE ( - 36, + 30 ) AS col1
----
36

query I rowsort
SELECT ALL + 49 * 38 + + 61
----
1923

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8287
SELECT DISTINCT 27 DIV - COUNT( + 95 ) AS col0
----
-27

skipif mysql # not compatible
query I rowsort label-8287
SELECT DISTINCT 27 / - COUNT ( + 95 ) AS col0
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-8288
SELECT ALL + + 95 * 91 * - - CASE - 49 WHEN - 38 / + - NULLIF ( + 24, + COUNT( * ) * - COUNT( * ) + - 61 + - + ( + 97 ) / - COALESCE ( 48, 3 ) ) * + 63 THEN NULLIF ( 27, - 1 ) * 34 WHEN - 58 THEN 70 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8288
SELECT ALL + + 95 * 91 * - - CASE - 49 WHEN - 38 / + - NULLIF ( + 24, + COUNT ( * ) * - COUNT ( * ) + - 61 + - + ( + 97 ) / - COALESCE ( 48, 3 ) ) * + 63 THEN NULLIF ( 27, - 1 ) * 34 WHEN - 58 THEN 70 END
----
NULL

query I rowsort
SELECT + - 10 * + + 33
----
-330

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8291
SELECT - 84 DIV + 88 - + COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-8291
SELECT - 84 / + 88 - + COUNT ( * )
----
-1

query I rowsort
SELECT + 83 * + ( CASE - 68 WHEN 73 THEN - 30 END ) / - 33 * - + ( + - 55 ) * - + 11 + - 93
----
NULL

query II rowsort
SELECT ALL - 94 AS col2, 69 AS col2
----
-94
69

query I rowsort
SELECT DISTINCT ( + 86 ) + + 19
----
105

query II rowsort
SELECT 5 AS col0, + 96 - - 94 * 38 * - 96
----
5
-342816

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8296
SELECT ALL + 54 + + + 54 DIV + - 81, - ( COUNT( DISTINCT - 16 ) ) DIV + 55 AS col2
----
54
0

skipif mysql # not compatible
query II rowsort label-8296
SELECT ALL + 54 + + + 54 / + - 81, - ( COUNT ( DISTINCT - 16 ) ) / + 55 AS col2
----
54
0

query I rowsort
SELECT 55 * + + 22 AS col2
----
1210

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8298
SELECT ALL + COUNT( DISTINCT - - 63 ) + 62 DIV 97 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8298
SELECT ALL + COUNT ( DISTINCT - - 63 ) + 62 / 97 AS col1
----
1

query I rowsort
SELECT ALL - 54 + 61 AS col2
----
7

query II rowsort
SELECT 5 AS col1, - 37
----
5
-37

query I rowsort
SELECT 81 * 81
----
6561

query I rowsort
SELECT ALL + 64 * + - 18 AS col0
----
-1152

query II rowsort
SELECT 21 col0, + 57 AS col2
----
21
57

query I rowsort
SELECT ALL + 91 * + - 19
----
-1729

onlyif mysql # aggregate syntax: 
query II rowsort label-8305
SELECT DISTINCT - 37 - 68 * 54 AS col0, - COUNT( * ) * - + 26 * - + 78
----
-3709
-2028

skipif mysql # not compatible
query II rowsort label-8305
SELECT DISTINCT - 37 - 68 * 54 AS col0, - COUNT ( * ) * - + 26 * - + 78
----
-3709
-2028

query II rowsort
SELECT 29, 76 AS col0
----
29
76

query II rowsort
SELECT ALL 22, 41 AS col2
----
22
41

onlyif mysql # aggregate syntax: 
query II rowsort label-8308
SELECT 34, SUM( ALL + - 38 ) col0
----
34
-38

skipif mysql # not compatible
query II rowsort label-8308
SELECT 34, SUM ( ALL + - 38 ) col0
----
34
-38

query I rowsort
SELECT ALL - 19 - NULLIF ( 53, 75 + - 20 ) - 20 AS col1
----
-92

query I rowsort
SELECT - 57 * - 58 AS col0
----
3306

query I rowsort
SELECT + 96 + - 83 AS col2
----
13

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

skipif mysql # not compatible
query I rowsort label-8312
SELECT ALL + 44 - - COUNT ( * ) AS col0
----
45

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8314
SELECT - 46 + + SUM( - 77 ) col2
----
-123

skipif mysql # not compatible
query I rowsort label-8314
SELECT - 46 + + SUM ( - 77 ) col2
----
-123

query I rowsort
SELECT ALL + 9 * - 69 AS col2
----
-621

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8317
SELECT - + COUNT( * ) DIV + 89 + + 41 + + - 83 AS col0
----
-42

skipif mysql # not compatible
query I rowsort label-8317
SELECT - + COUNT ( * ) / + 89 + + 41 + + - 83 AS col0
----
-42

query I rowsort
SELECT ALL 43 + - 36
----
7

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8319
SELECT + NULLIF ( - - CAST( NULL AS DECIMAL ), 19 - + - 37 ) * + - 45 * 88 - + SUM( + + 88 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8319
SELECT + NULLIF ( - - CAST ( NULL AS REAL ), 19 - + - 37 ) * + - 45 * 88 - + SUM ( + + 88 ) AS col1
----
NULL

query II rowsort
SELECT 50 AS col2, - 96 AS col0
----
50
-96

onlyif mysql # aggregate syntax: 
query II rowsort label-8321
SELECT + 26 AS col0, 48 * - + 63 * - COUNT( * ) AS col0
----
26
3024

skipif mysql # not compatible
query II rowsort label-8321
SELECT + 26 AS col0, 48 * - + 63 * - COUNT ( * ) AS col0
----
26
3024

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8322
SELECT ALL CAST( + 0 AS SIGNED ) + 46 + - ( - 91 )
----
137

skipif mysql # not compatible
query I rowsort label-8322
SELECT ALL CAST ( + 0 AS INTEGER ) + 46 + - ( - 91 )
----
137

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8323
SELECT ALL 16 + - - ( COUNT( DISTINCT + 89 ) ) - + 21 * - 90 * + - CAST( - COALESCE ( - 51, 40 ) AS SIGNED ) + CASE WHEN NOT ( NULL ) NOT BETWEEN ( - 95 ) AND + CAST( NULL AS DECIMAL ) THEN - CASE + 88 WHEN 71 + + 48 THEN - CASE - 96 WHEN 65 * 65 THEN 95 ELSE NULL END END ELSE 32 + - 18 * + 26 END * + 19
----
-104657

skipif mysql # not compatible
query I rowsort label-8323
SELECT ALL 16 + - - ( COUNT ( DISTINCT + 89 ) ) - + 21 * - 90 * + - CAST ( - COALESCE ( - 51, 40 ) AS INTEGER ) + CASE WHEN NOT ( NULL ) NOT BETWEEN ( - 95 ) AND + CAST ( NULL AS REAL ) THEN - CASE + 88 WHEN 71 + + 48 THEN - CASE - 96 WHEN 65 * 65 THEN 95 ELSE NULL END END ELSE 32 + - 18 * + 26 END * + 19
----
-104657

onlyif mysql # aggregate syntax: 
query I rowsort label-8324
SELECT DISTINCT ( - 31 ) + - - 24 + + 93 + - - COUNT( * ) col0
----
87

skipif mysql # not compatible
query I rowsort label-8324
SELECT DISTINCT ( - 31 ) + - - 24 + + 93 + - - COUNT ( * ) col0
----
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8325
SELECT ALL CAST( 77 AS SIGNED ) + - 77 * CAST( NULLIF ( - 83, - + 54 * + 61 ) AS SIGNED )
----
6468

skipif mysql # not compatible
query I rowsort label-8325
SELECT ALL CAST ( 77 AS INTEGER ) + - 77 * CAST ( NULLIF ( - 83, - + 54 * + 61 ) AS INTEGER )
----
6468

query I rowsort
SELECT 86 * + - 64 + + 2
----
-5502

query I rowsort
SELECT ( - 82 ) * + 24 * - 39 - + - 88 + - - 13 + 65 * + 74
----
81663

query I rowsort
SELECT 74 * CASE - 12 WHEN + AVG ( DISTINCT 42 ) THEN + - 65 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8329
SELECT 81 DIV 27
----
3

skipif mysql # not compatible
query I rowsort label-8329
SELECT 81 / 27
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8330
SELECT DISTINCT 50 + + 44 + - NULLIF ( COUNT( * ), 52 ) AS col1
----
93

skipif mysql # not compatible
query I rowsort label-8330
SELECT DISTINCT 50 + + 44 + - NULLIF ( COUNT ( * ), 52 ) AS col1
----
93

query II rowsort
SELECT ALL - 32 - + 53 AS col2, - 14 + 46
----
-85
32

query I rowsort
SELECT DISTINCT 55 * 67
----
3685

query I rowsort
SELECT DISTINCT 14 - - 12 + - 53 * - 52 + - ( + 70 ) - + + 6 AS col1
----
2706

query I rowsort
SELECT 80 + + 61 AS col1
----
141

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8335
SELECT 90 + - 24 + - + 73 / - COUNT( * ) * - CASE + - 39 WHEN + - 60 + - - COUNT( * ) THEN - - 74 - - 78 + 14 END + - CAST( 79 AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8335
SELECT 90 + - 24 + - + 73 / - COUNT ( * ) * - CASE + - 39 WHEN + - 60 + - - COUNT ( * ) THEN - - 74 - - 78 + 14 END + - CAST ( 79 AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT - 27 * + - 64 AS col0
----
1728

query II rowsort
SELECT + 37 + - - ( + + 47 ) * + + 35 AS col1, 15 * + 16 AS col1
----
1682
240

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8338
SELECT - CASE - 72 WHEN + 93 THEN + + COUNT( * ) + + AVG ( DISTINCT + 39 ) * 77 WHEN + - 26 * + CAST( 29 AS SIGNED ) THEN + 25 WHEN - 21 * + 81 * + + 53 THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8338
SELECT - CASE - 72 WHEN + 93 THEN + + COUNT ( * ) + + AVG ( DISTINCT + 39 ) * 77 WHEN + - 26 * + CAST ( 29 AS INTEGER ) THEN + 25 WHEN - 21 * + 81 * + + 53 THEN NULL END AS col0
----
NULL

query I rowsort
SELECT ALL + 15 * - 54
----
-810

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

skipif mysql # not compatible
query I rowsort label-8340
SELECT ALL - COUNT ( * ) / + 84 + - - 36
----
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8341
SELECT DISTINCT + NULLIF ( CAST( NULL AS SIGNED ), 89 + + - 67 ), + 88 DIV COUNT( * ) AS col1
----
NULL
88

skipif mysql # not compatible
query II rowsort label-8341
SELECT DISTINCT + NULLIF ( CAST ( NULL AS INTEGER ), 89 + + - 67 ), + 88 / COUNT ( * ) AS col1
----
NULL
88

onlyif mysql # aggregate syntax: 
query I rowsort label-8342
SELECT DISTINCT + 71 * MAX( - 6 ) * - COUNT( * ) * - SUM( DISTINCT + + 51 )
----
-21726

skipif mysql # not compatible
query I rowsort label-8342
SELECT DISTINCT + 71 * MAX ( - 6 ) * - COUNT ( * ) * - SUM ( DISTINCT + + 51 )
----
-21726

onlyif mysql # aggregate syntax: 
query I rowsort label-8343
SELECT NULLIF ( - 17, - - COUNT( * ) )
----
-17

skipif mysql # not compatible
query I rowsort label-8343
SELECT NULLIF ( - 17, - - COUNT ( * ) )
----
-17

query I rowsort
SELECT - - CASE ( 45 ) WHEN - 28 THEN - + 13 - - 86 * - + 15 / 63 END - - 62 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8345
SELECT ( + + ( - MIN( 63 ) ) ) col0
----
-63

skipif mysql # not compatible
query I rowsort label-8345
SELECT ( + + ( - MIN ( 63 ) ) ) col0
----
-63

query I rowsort
SELECT ALL - 89 * + 80 + + 29
----
-7091

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8347
SELECT DISTINCT + COUNT( * ) * + CAST( NULL AS SIGNED ) + + CASE 12 WHEN COUNT( * ) THEN 77 WHEN - ( + 6 ) + + 47 THEN NULL END * + COALESCE ( 49, - CAST( NULL AS SIGNED ) + COUNT( 61 ) / 12, 52 ) + + 75 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8347
SELECT DISTINCT + COUNT ( * ) * + CAST ( NULL AS INTEGER ) + + CASE 12 WHEN COUNT ( * ) THEN 77 WHEN - ( + 6 ) + + 47 THEN NULL END * + COALESCE ( 49, - CAST ( NULL AS INTEGER ) + COUNT ( 61 ) / 12, 52 ) + + 75 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8348
SELECT - + 33 DIV 94
----
0

skipif mysql # not compatible
query I rowsort label-8348
SELECT - + 33 / 94
----
0

query I rowsort
SELECT ALL + - 36 * 7 + + - 8
----
-260

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8350
SELECT DISTINCT 86 * MIN( - + 39 ) + - + AVG ( DISTINCT - 44 ) + CAST( NULL AS SIGNED ) * - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8350
SELECT DISTINCT 86 * MIN ( - + 39 ) + - + AVG ( DISTINCT - 44 ) + CAST ( NULL AS INTEGER ) * - COUNT ( * ) AS col0
----
NULL

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

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

query I rowsort
SELECT ALL 21 * - 11 + - - 85 + + 99
----
-47

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8354
SELECT DISTINCT + COUNT( DISTINCT 76 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8354
SELECT DISTINCT + COUNT ( DISTINCT 76 ) AS col1
----
1

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

skipif mysql # not compatible
query I rowsort label-8355
SELECT - 45 + 71 * - 61 * - COUNT ( * ) AS col0
----
4286

onlyif mysql # aggregate syntax: 
query I rowsort label-8356
SELECT COUNT( DISTINCT - - 27 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8356
SELECT COUNT ( DISTINCT - - 27 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8357
SELECT ALL 58 * - COALESCE ( + NULLIF ( 34, + + 86 ), + 2 ) + + COUNT( * ) * + + 58
----
-1914

skipif mysql # not compatible
query I rowsort label-8357
SELECT ALL 58 * - COALESCE ( + NULLIF ( 34, + + 86 ), + 2 ) + + COUNT ( * ) * + + 58
----
-1914

onlyif mysql # aggregate syntax: 
query I rowsort label-8358
SELECT 0 * - 16 + - COUNT( * ) + 18 AS col0
----
17

skipif mysql # not compatible
query I rowsort label-8358
SELECT 0 * - 16 + - COUNT ( * ) + 18 AS col0
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-8359
SELECT - CASE + ( + + ( + - 6 ) ) WHEN + + 28 - COALESCE ( + + COUNT( * ), + 48 / + 6 * + COUNT( * ) * + 94, 73 ) + - - 3 THEN 58 + - - SUM( ALL + 44 ) END + + ( - 80 + - 69 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8359
SELECT - CASE + ( + + ( + - 6 ) ) WHEN + + 28 - COALESCE ( + + COUNT ( * ), + 48 / + 6 * + COUNT ( * ) * + 94, 73 ) + - - 3 THEN 58 + - - SUM ( ALL + 44 ) END + + ( - 80 + - 69 )
----
NULL

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

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

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

skipif mysql # not compatible
query I rowsort label-8361
SELECT + MIN ( + 53 )
----
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8362
SELECT MIN( DISTINCT - NULLIF ( 57, + + COALESCE ( - 98, ( - 57 ) * - + ( 7 ), + 92, - 74 * CAST( NULL AS SIGNED ) ) * - 81 ) ) col2
----
-57

skipif mysql # not compatible
query I rowsort label-8362
SELECT MIN ( DISTINCT - NULLIF ( 57, + + COALESCE ( - 98, ( - 57 ) * - + ( 7 ), + 92, - 74 * CAST ( NULL AS INTEGER ) ) * - 81 ) ) col2
----
-57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8363
SELECT + 67 - CASE - 19 WHEN - CAST( + 19 AS SIGNED ) * - COUNT( * ) + 8 / + 41 THEN NULL WHEN + - 8 THEN - ( - - 48 ) + COUNT( * ) + 96 END + - 99
----
NULL

skipif mysql # not compatible
query I rowsort label-8363
SELECT + 67 - CASE - 19 WHEN - CAST ( + 19 AS INTEGER ) * - COUNT ( * ) + 8 / + 41 THEN NULL WHEN + - 8 THEN - ( - - 48 ) + COUNT ( * ) + 96 END + - 99
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8364
SELECT + 32 * - - 27 + + 9 + + 76 + - - CAST( COALESCE ( 8, + + 24 * - 75 - - 16 - - ( - 62 ) - - 50 + - 78, NULLIF ( + 87, + NULLIF ( 82, - CAST( NULL AS SIGNED ) ) ) + - 34 ) AS SIGNED ) AS col2
----
957

skipif mysql # not compatible
query I rowsort label-8364
SELECT + 32 * - - 27 + + 9 + + 76 + - - CAST ( COALESCE ( 8, + + 24 * - 75 - - 16 - - ( - 62 ) - - 50 + - 78, NULLIF ( + 87, + NULLIF ( 82, - CAST ( NULL AS INTEGER ) ) ) + - 34 ) AS INTEGER ) AS col2
----
957

onlyif mysql # aggregate syntax: 
query I rowsort label-8365
SELECT ALL MIN( DISTINCT 37 )
----
37

skipif mysql # not compatible
query I rowsort label-8365
SELECT ALL MIN ( DISTINCT 37 )
----
37

onlyif mysql # DIV for integer division: 
query I rowsort label-8366
SELECT + 31 DIV COALESCE ( - 99, 17 + 7, 46 + - 65 )
----
0

skipif mysql # not compatible
query I rowsort label-8366
SELECT + 31 / COALESCE ( - 99, 17 + 7, 46 + - 65 )
----
0

query I rowsort
SELECT + 37 * + 43
----
1591

query I rowsort
SELECT ALL 43 * - 10 AS col1
----
-430

query I rowsort
SELECT + NULLIF ( + + 98, 73 ) + 44
----
142

query I rowsort
SELECT + 13 * 38
----
494

query I rowsort
SELECT ALL 4 * 83 AS col2
----
332

query I rowsort
SELECT ALL 48 * + 57
----
2736

query I rowsort
SELECT DISTINCT - 75 * - 97
----
7275

onlyif mysql # aggregate syntax: 
query II rowsort label-8374
SELECT + 92 * + - 68 * - 60 AS col0, - COUNT( ALL - - 74 ) AS col0
----
375360
-1

skipif mysql # not compatible
query II rowsort label-8374
SELECT + 92 * + - 68 * - 60 AS col0, - COUNT ( ALL - - 74 ) AS col0
----
375360
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8375
SELECT + + 47 - + - AVG ( - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8375
SELECT + + 47 - + - AVG ( - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8376
SELECT ALL + ( - + 31 ) * SUM( - 48 ) AS col0
----
1488

skipif mysql # not compatible
query I rowsort label-8376
SELECT ALL + ( - + 31 ) * SUM ( - 48 ) AS col0
----
1488

query I rowsort
SELECT - + 98 * + 51 - + 91 - - 7
----
-5082

onlyif mysql # aggregate syntax: 
query I rowsort label-8378
SELECT + + 87 + + - COUNT( - 60 ) - ( - 7 ) * - 29 AS col2
----
-117

skipif mysql # not compatible
query I rowsort label-8378
SELECT + + 87 + + - COUNT ( - 60 ) - ( - 7 ) * - 29 AS col2
----
-117

query II rowsort
SELECT - 21 AS col2, - 2 AS col0
----
-21
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-8380
SELECT + - ( ( 62 ) ) + - NULLIF ( + 52, - + 26 + 66 ) - 20 - - 62 * - - COUNT( * ) + - 40 + 68 AS col0
----
-44

skipif mysql # not compatible
query I rowsort label-8380
SELECT + - ( ( 62 ) ) + - NULLIF ( + 52, - + 26 + 66 ) - 20 - - 62 * - - COUNT ( * ) + - 40 + 68 AS col0
----
-44

onlyif mysql # aggregate syntax: 
query II rowsort label-8381
SELECT - 50 - ( 36 ) AS col0, COUNT( * ) AS col2
----
-86
1

skipif mysql # not compatible
query II rowsort label-8381
SELECT - 50 - ( 36 ) AS col0, COUNT ( * ) AS col2
----
-86
1

query II rowsort
SELECT 80 AS col1, 66 + - 5
----
80
61

query I rowsort
SELECT + 94 + + 74 AS col2
----
168

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8384
SELECT ALL - 26 + + - CAST( - + NULLIF ( - ( + + ( - - 37 ) ), - 9 + - 21 + COUNT( DISTINCT 51 ) * + 82 * - SUM( ALL + + 71 ) ) AS SIGNED ) + + - COALESCE ( - 30, - 79, + COUNT( * ) ) * 57
----
1647

skipif mysql # not compatible
query I rowsort label-8384
SELECT ALL - 26 + + - CAST ( - + NULLIF ( - ( + + ( - - 37 ) ), - 9 + - 21 + COUNT ( DISTINCT 51 ) * + 82 * - SUM ( ALL + + 71 ) ) AS INTEGER ) + + - COALESCE ( - 30, - 79, + COUNT ( * ) ) * 57
----
1647

onlyif mysql # aggregate syntax: 
query I rowsort label-8385
SELECT + COUNT( * ) + 85 * MIN( DISTINCT + + 22 ) AS col1
----
1871

skipif mysql # not compatible
query I rowsort label-8385
SELECT + COUNT ( * ) + 85 * MIN ( DISTINCT + + 22 ) AS col1
----
1871

onlyif mysql # aggregate syntax: 
query II rowsort label-8386
SELECT ALL 77 + 42 * + 78 * - MIN( ALL + - 73 ) AS col0, 84 - + 10 + MIN( + - 4 ) + + + COALESCE ( - 26, + - COUNT( * ) ) * + + 93 * + 32
----
239225
-77306

skipif mysql # not compatible
query II rowsort label-8386
SELECT ALL 77 + 42 * + 78 * - MIN ( ALL + - 73 ) AS col0, 84 - + 10 + MIN ( + - 4 ) + + + COALESCE ( - 26, + - COUNT ( * ) ) * + + 93 * + 32
----
239225
-77306

query I rowsort
SELECT DISTINCT + 98 + - - COALESCE ( 13, + 95 )
----
111

query I rowsort
SELECT ALL CASE - 88 WHEN + 84 * - 45 THEN + 8 END / 75 * - - ( + 65 ) * - 75 + - - 99 + - 12 + - 88
----
NULL

query I rowsort
SELECT - - 71 + + + 20 * 46
----
991

query I rowsort
SELECT ALL - 65 * - 99 AS col1
----
6435

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8392
SELECT CAST( COALESCE ( + CASE + 9 WHEN + + 9 THEN NULL WHEN 75 THEN - ( 10 ) ELSE - 70 + + 99 / + - 17 END, - - MIN( DISTINCT 79 ) * - 75, + 14 ) AS SIGNED ) AS col2
----
-5925

skipif mysql # not compatible
query I rowsort label-8392
SELECT CAST ( COALESCE ( + CASE + 9 WHEN + + 9 THEN NULL WHEN 75 THEN - ( 10 ) ELSE - 70 + + 99 / + - 17 END, - - MIN ( DISTINCT 79 ) * - 75, + 14 ) AS INTEGER ) AS col2
----
-5925

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8393
SELECT ALL - COALESCE ( 32, + + NULLIF ( - - 95, - + MAX( DISTINCT ( + 26 ) ) DIV - 30 ) DIV 24 ) DIV - 67 + - 56 + - 38 + - 83 * - 45 AS col0
----
3641

skipif mysql # not compatible
query I rowsort label-8393
SELECT ALL - COALESCE ( 32, + + NULLIF ( - - 95, - + MAX ( DISTINCT ( + 26 ) ) / - 30 ) / 24 ) / - 67 + - 56 + - 38 + - 83 * - 45 AS col0
----
3641

query I rowsort
SELECT + 45 * COALESCE ( - 83, + + 15 + - + 79, - 28 )
----
-3735

query I rowsort
SELECT - 51 * - + 51 AS col2
----
2601

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8397
SELECT + 10 DIV - 21 + + COUNT( * ) * COUNT( DISTINCT + CAST( NULL AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-8397
SELECT + 10 / - 21 + + COUNT ( * ) * COUNT ( DISTINCT + CAST ( NULL AS INTEGER ) )
----
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8399
SELECT + COUNT( * ) + + COUNT( * ) + - 6 - - 42 - + ( 94 ) * 15 col2
----
-1372

skipif mysql # not compatible
query I rowsort label-8399
SELECT + COUNT ( * ) + + COUNT ( * ) + - 6 - - 42 - + ( 94 ) * 15 col2
----
-1372

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8400
SELECT ALL - 32 DIV - SUM( - 90 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8400
SELECT ALL - 32 / - SUM ( - 90 ) AS col1
----
0

query I rowsort
SELECT - 15 * - + 82 AS col2
----
1230

query I rowsort
SELECT DISTINCT - 23 * - + 76 AS col2
----
1748

query II rowsort
SELECT ALL + 39 AS col2, + 70
----
39
70

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

query II rowsort
SELECT ALL 56 * 70 AS col0, 44
----
3920
44

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8407
SELECT ALL - 60 * NULLIF ( - 95, - 66 ) * 14 + + CAST( NULL AS SIGNED ) + - SUM( + + ( - + 80 ) ) + 31 / + 75 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8407
SELECT ALL - 60 * NULLIF ( - 95, - 66 ) * 14 + + CAST ( NULL AS INTEGER ) + - SUM ( + + ( - + 80 ) ) + 31 / + 75 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8408
SELECT + COUNT( * ) * - SUM( + + 76 ) + - + 12
----
-88

skipif mysql # not compatible
query I rowsort label-8408
SELECT + COUNT ( * ) * - SUM ( + + 76 ) + - + 12
----
-88

query I rowsort
SELECT NULLIF ( - + 19, - 83 )
----
-19

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8411
SELECT - 25 + + 92 * + - MIN( - + 52 ) - - 43 DIV + COALESCE ( + 97, NULLIF ( - 37, - 84 ) ) AS col2
----
4759

skipif mysql # not compatible
query I rowsort label-8411
SELECT - 25 + + 92 * + - MIN ( - + 52 ) - - 43 / + COALESCE ( + 97, NULLIF ( - 37, - 84 ) ) AS col2
----
4759

query I rowsort
SELECT + 90 + + 92 AS col0
----
182

query II rowsort
SELECT ALL 73 col0, - 86 * 6
----
73
-516

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8414
SELECT - 42, + ( + COALESCE ( + MAX( ALL 11 ), 77 + + 79, + 73 ) ) * - CAST( NULL AS SIGNED ) col1
----
-42
NULL

skipif mysql # not compatible
query II rowsort label-8414
SELECT - 42, + ( + COALESCE ( + MAX ( ALL 11 ), 77 + + 79, + 73 ) ) * - CAST ( NULL AS INTEGER ) col1
----
-42
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8415
SELECT ALL MAX( 16 ) AS col0
----
16

skipif mysql # not compatible
query I rowsort label-8415
SELECT ALL MAX ( 16 ) AS col0
----
16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8416
SELECT DISTINCT CAST( - 24 AS SIGNED ) AS col2
----
-24

skipif mysql # not compatible
query I rowsort label-8416
SELECT DISTINCT CAST ( - 24 AS INTEGER ) AS col2
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-8417
SELECT ALL + 17 * + 16 + + + ( COUNT( + 42 ) )
----
273

skipif mysql # not compatible
query I rowsort label-8417
SELECT ALL + 17 * + 16 + + + ( COUNT ( + 42 ) )
----
273

query I rowsort
SELECT + - 76 + - 73
----
-149

onlyif mysql # aggregate syntax: 
query I rowsort label-8419
SELECT ALL + MIN( - + 45 ) AS col1
----
-45

skipif mysql # not compatible
query I rowsort label-8419
SELECT ALL + MIN ( - + 45 ) AS col1
----
-45

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

skipif mysql # not compatible
query I rowsort label-8420
SELECT DISTINCT + COUNT ( * ) * - - 44 + + + 8 AS col1
----
52

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

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

query I rowsort
SELECT 11 + - 94 col2
----
-83

query II rowsort
SELECT ALL 82 + - 59, - 10 AS col0
----
23
-10

query II rowsort
SELECT - 65, 46 AS col1
----
-65
46

onlyif mysql # aggregate syntax: 
query I rowsort label-8425
SELECT - 35 + + - ( - 84 ) + - MIN( + 11 ) - 21 AS col1
----
17

skipif mysql # not compatible
query I rowsort label-8425
SELECT - 35 + + - ( - 84 ) + - MIN ( + 11 ) - 21 AS col1
----
17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8426
SELECT 91 DIV + CASE + 89 WHEN + + CAST( NULL AS SIGNED ) - + 75 THEN NULL WHEN - 28 THEN NULL ELSE + 65 + - 10 + - + 92 + + + 55 + - + 37 + + 96 - - COUNT( - 37 ) - - 24 END
----
0

skipif mysql # not compatible
query I rowsort label-8426
SELECT 91 / + CASE + 89 WHEN + + CAST ( NULL AS INTEGER ) - + 75 THEN NULL WHEN - 28 THEN NULL ELSE + 65 + - 10 + - + 92 + + + 55 + - + 37 + + 96 - - COUNT ( - 37 ) - - 24 END
----
0

query I rowsort
SELECT ( 56 ) AS col1
----
56

query I rowsort
SELECT ALL - 80 + + + 79
----
-1

query I rowsort
SELECT DISTINCT - 69 * 32 + - 57 + - 30 * 59 AS col0
----
-4035

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8430
SELECT ALL + COUNT( * ) + + 97 * - + CASE - 37 WHEN - 5 THEN NULL WHEN - - 66 THEN ( + COUNT( * ) ) ELSE - 43 + + CAST( - 46 AS SIGNED ) - 87 + - 95 END + + MAX( - 10 ) AS col2
----
26278

skipif mysql # not compatible
query I rowsort label-8430
SELECT ALL + COUNT ( * ) + + 97 * - + CASE - 37 WHEN - 5 THEN NULL WHEN - - 66 THEN ( + COUNT ( * ) ) ELSE - 43 + + CAST ( - 46 AS INTEGER ) - 87 + - 95 END + + MAX ( - 10 ) AS col2
----
26278

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

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

query II rowsort
SELECT DISTINCT - 1 AS col0, 72
----
-1
72

onlyif mysql # aggregate syntax: 
query I rowsort label-8433
SELECT MAX( 52 ) * + - 84 AS col0
----
-4368

skipif mysql # not compatible
query I rowsort label-8433
SELECT MAX ( 52 ) * + - 84 AS col0
----
-4368

query II rowsort
SELECT ALL + 47 AS col0, - 87 AS col0
----
47
-87

query II rowsort
SELECT - 73 AS col2, - 24
----
-73
-24

query II rowsort
SELECT ALL NULLIF ( - + 43, - - 16 ) - 23 AS col1, + 93 + 33
----
-66
126

query I rowsort
SELECT NULLIF ( ( - 33 ), - 63 * - + NULLIF ( - 45, + 93 ) - + 86 ) - + - 2 AS col1
----
-31

onlyif mysql # DIV for integer division: 
query I rowsort label-8438
SELECT ALL 98 DIV + 54 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8438
SELECT ALL 98 / + 54 AS col0
----
1

onlyif mysql # DIV for integer division: 
query II rowsort label-8439
SELECT + 81 * 42 - + + 99 DIV 62 * - 93 AS col0, 68 * 92 AS col1
----
3495
6256

skipif mysql # not compatible
query II rowsort label-8439
SELECT + 81 * 42 - + + 99 / 62 * - 93 AS col0, 68 * 92 AS col1
----
3495
6256

query I rowsort
SELECT DISTINCT 33 * + 59 AS col1
----
1947

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8441
SELECT DISTINCT - COALESCE ( + 53, - MIN( DISTINCT - 30 ) - - ( - CAST( NULL AS SIGNED ) ) ) col0
----
-53

skipif mysql # not compatible
query I rowsort label-8441
SELECT DISTINCT - COALESCE ( + 53, - MIN ( DISTINCT - 30 ) - - ( - CAST ( NULL AS INTEGER ) ) ) col0
----
-53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8442
SELECT 90 * + CAST( NULL AS SIGNED ) * - 60 * - + 30 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8442
SELECT 90 * + CAST ( NULL AS INTEGER ) * - 60 * - + 30 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8443
SELECT 64 + - ( - 8 ) + + - COUNT( * ) AS col2
----
71

skipif mysql # not compatible
query I rowsort label-8443
SELECT 64 + - ( - 8 ) + + - COUNT ( * ) AS col2
----
71

query I rowsort
SELECT 99 * + 83
----
8217

onlyif mysql # DIV for integer division: 
query I rowsort label-8445
SELECT + 24 * 25 DIV + 8 + - ( + - 62 ) AS col2
----
137

skipif mysql # not compatible
query I rowsort label-8445
SELECT + 24 * 25 / + 8 + - ( + - 62 ) AS col2
----
137

query I rowsort
SELECT ALL - NULLIF ( + 0, 82 ) AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-8447
SELECT 80 DIV CASE - COUNT( * ) WHEN + 89 * + - 98 * - 51 * - CAST( NULL AS DECIMAL ) + 51 THEN NULL WHEN - 2 * - 90 * + + 24 * + + 61 THEN NULL WHEN - - ( - 25 ) + - 97 THEN + + 63 * + 93 DIV - ( MAX( 24 ) ) ELSE 24 END col0
----
3

skipif mysql # not compatible
query I rowsort label-8447
SELECT 80 / CASE - COUNT ( * ) WHEN + 89 * + - 98 * - 51 * - CAST ( NULL AS REAL ) + 51 THEN NULL WHEN - 2 * - 90 * + + 24 * + + 61 THEN NULL WHEN - - ( - 25 ) + - 97 THEN + + 63 * + 93 / - ( MAX ( 24 ) ) ELSE 24 END col0
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8448
SELECT 89 * CAST( COUNT( * ) AS SIGNED ) AS col2
----
89

skipif mysql # not compatible
query I rowsort label-8448
SELECT 89 * CAST ( COUNT ( * ) AS INTEGER ) AS col2
----
89

query I rowsort
SELECT ALL + CASE + - 5 WHEN + 26 THEN - - 90 WHEN - - 57 THEN NULL WHEN + 47 THEN - + 26 END * - + ( - - 53 )
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-8450
SELECT ALL + - 80 DIV 67 AS col2, + 28 * - 69 * - 52
----
-1
100464

skipif mysql # not compatible
query II rowsort label-8450
SELECT ALL + - 80 / 67 AS col2, + 28 * - 69 * - 52
----
-1
100464

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

skipif mysql # not compatible
query I rowsort label-8451
SELECT ALL - + 9 + + + CAST ( 98 AS INTEGER )
----
89

query I rowsort
SELECT + 74 + + 71
----
145

query I rowsort
SELECT - 83 * 5 - 62 col0
----
-477

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8454
SELECT ALL - COUNT( * ) + 11 AS col1, - CAST( - 60 AS SIGNED )
----
10
60

skipif mysql # not compatible
query II rowsort label-8454
SELECT ALL - COUNT ( * ) + 11 AS col1, - CAST ( - 60 AS INTEGER )
----
10
60

query I rowsort
SELECT 67 - + 44 AS col2
----
23

query I rowsort
SELECT + 49 * + ( + + 85 ) AS col1
----
4165

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8457
SELECT CASE 50 WHEN - 75 * + - 66 * + 72 THEN - 13 DIV 47 * - ( 23 ) WHEN + 37 DIV - CAST( NULL AS SIGNED ) THEN + 12 ELSE 25 END * + ( + 27 )
----
675

skipif mysql # not compatible
query I rowsort label-8457
SELECT CASE 50 WHEN - 75 * + - 66 * + 72 THEN - 13 / 47 * - ( 23 ) WHEN + 37 / - CAST ( NULL AS INTEGER ) THEN + 12 ELSE 25 END * + ( + 27 )
----
675

query I rowsort
SELECT 18 + 50
----
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8459
SELECT ALL + 9 + - + 22 * + 45 * + CAST( NULL AS SIGNED ) * + 38 + + + 49 * - 75 * + COALESCE ( 81, + 58, - - 18 ) + - - 31 + SUM( + ( 6 ) ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8459
SELECT ALL + 9 + - + 22 * + 45 * + CAST ( NULL AS INTEGER ) * + 38 + + + 49 * - 75 * + COALESCE ( 81, + 58, - - 18 ) + - - 31 + SUM ( + ( 6 ) ) col0
----
NULL

query I rowsort
SELECT 36 - + 72 AS col1
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-8461
SELECT - SUM( + - 29 ) + + 49
----
78

skipif mysql # not compatible
query I rowsort label-8461
SELECT - SUM ( + - 29 ) + + 49
----
78

query I rowsort
SELECT - - NULLIF ( 99, 38 ) AS col0
----
99

query II rowsort
SELECT DISTINCT + ( 70 ) AS col1, + 0 * + 27
----
70
0

query I rowsort
SELECT ( - 98 ) - + + ( + + 78 ) AS col2
----
-176

query I rowsort
SELECT 49 + + + 12 * - + 61 + - - 53 * - - 46 * - 41 * + - 55 + - 99 + 55
----
5496963

query I rowsort
SELECT 84 - + 73 + + - 29 col1
----
-18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8467
SELECT ALL 98 * - 34 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8467
SELECT ALL 98 * - 34 * CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL 57 * + - ( - 50 ) * - - 70 AS col0
----
199500

onlyif mysql # aggregate syntax: 
query I rowsort label-8469
SELECT SUM( - 81 ) + + - 65 * 41 * 94 AS col2
----
-250591

skipif mysql # not compatible
query I rowsort label-8469
SELECT SUM ( - 81 ) + + - 65 * 41 * 94 AS col2
----
-250591

query II rowsort
SELECT ALL - 45 AS col0, + 39 col1
----
-45
39

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

skipif mysql # not compatible
query I rowsort label-8471
SELECT ALL - NULLIF ( + 75, COUNT ( * ) )
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-8472
SELECT + 14 * 18 + + 97 + + - COUNT( * ) AS col0
----
348

skipif mysql # not compatible
query I rowsort label-8472
SELECT + 14 * 18 + + 97 + + - COUNT ( * ) AS col0
----
348

onlyif mysql # aggregate syntax: 
query I rowsort label-8473
SELECT COUNT( DISTINCT - 48 )
----
1

skipif mysql # not compatible
query I rowsort label-8473
SELECT COUNT ( DISTINCT - 48 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8474
SELECT 78 * - COUNT( * ) + - CAST( + - COUNT( * ) AS SIGNED ) + 33 DIV - COUNT( * )
----
-110

skipif mysql # not compatible
query I rowsort label-8474
SELECT 78 * - COUNT ( * ) + - CAST ( + - COUNT ( * ) AS INTEGER ) + 33 / - COUNT ( * )
----
-110

onlyif mysql # aggregate syntax: 
query I rowsort label-8475
SELECT DISTINCT 45 * - 69 * - 67 + COUNT( * ) AS col0
----
208036

skipif mysql # not compatible
query I rowsort label-8475
SELECT DISTINCT 45 * - 69 * - 67 + COUNT ( * ) AS col0
----
208036

query I rowsort
SELECT 19 + + + 18 * + 36 + - 72 AS col2
----
595

onlyif mysql # aggregate syntax: 
query I rowsort label-8477
SELECT DISTINCT - 76 * + + 16 + + COUNT( * ) + 49
----
-1166

skipif mysql # not compatible
query I rowsort label-8477
SELECT DISTINCT - 76 * + + 16 + + COUNT ( * ) + 49
----
-1166

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8478
SELECT ALL + COUNT( DISTINCT + 25 ) * + - 96 - - ( + CAST( NULL AS SIGNED ) ) + - 67 - 24 + - 97 * + 29 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8478
SELECT ALL + COUNT ( DISTINCT + 25 ) * + - 96 - - ( + CAST ( NULL AS INTEGER ) ) + - 67 - 24 + - 97 * + 29 col1
----
NULL

query I rowsort
SELECT + COALESCE ( 21, 1 )
----
21

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

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

query I rowsort
SELECT DISTINCT + 54 + + 5 AS col2
----
59

query I rowsort
SELECT + + 74 + + 68 AS col1
----
142

onlyif mysql # aggregate syntax: 
query II rowsort label-8483
SELECT + COUNT( * ) * + COUNT( * ) + 74 AS col0, 26 + 8 AS col2
----
75
34

skipif mysql # not compatible
query II rowsort label-8483
SELECT + COUNT ( * ) * + COUNT ( * ) + 74 AS col0, 26 + 8 AS col2
----
75
34

query I rowsort
SELECT - - NULLIF ( - - 87, + 87 ) * 34 + + + 98
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8485
SELECT - - 94 - + COUNT( * )
----
93

skipif mysql # not compatible
query I rowsort label-8485
SELECT - - 94 - + COUNT ( * )
----
93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8486
SELECT 93, 62 DIV - - NULLIF ( + + 70, + - 89 ) * - COUNT( * ) + CAST( + - COUNT( * ) AS SIGNED ) AS col0
----
93
-1

skipif mysql # not compatible
query II rowsort label-8486
SELECT 93, 62 / - - NULLIF ( + + 70, + - 89 ) * - COUNT ( * ) + CAST ( + - COUNT ( * ) AS INTEGER ) AS col0
----
93
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-8487
SELECT ALL + 39 + 32 * COUNT( * ) AS col0, - COUNT( * ) AS col0
----
71
-1

skipif mysql # not compatible
query II rowsort label-8487
SELECT ALL + 39 + 32 * COUNT ( * ) AS col0, - COUNT ( * ) AS col0
----
71
-1

query I rowsort
SELECT - - ( 45 ) AS col1
----
45

query II rowsort
SELECT ALL - 64, 30 AS col1
----
-64
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8490
SELECT DISTINCT + + 11 / CASE + + 30 WHEN - 34 THEN + 4 WHEN + - MIN( - + 47 ) * 51 * AVG ( ALL - + NULLIF ( 43, - 50 * 60 + + CAST( + 17 AS SIGNED ) / - + 13 + - 50 ) ) - + ( - 63 ) * - ( 11 ) THEN - 34 * COUNT( * ) WHEN + COALESCE ( COALESCE ( + 46, - 50 + 41 * 96 ), COALESCE ( + 93, 30 ) ) / + 38 THEN + COUNT( * ) + - COUNT( * ) ELSE NULL END + - 86 * 25
----
NULL

skipif mysql # not compatible
query I rowsort label-8490
SELECT DISTINCT + + 11 / CASE + + 30 WHEN - 34 THEN + 4 WHEN + - MIN ( - + 47 ) * 51 * AVG ( ALL - + NULLIF ( 43, - 50 * 60 + + CAST ( + 17 AS INTEGER ) / - + 13 + - 50 ) ) - + ( - 63 ) * - ( 11 ) THEN - 34 * COUNT ( * ) WHEN + COALESCE ( COALESCE ( + 46, - 50 + 41 * 96 ), COALESCE ( + 93, 30 ) ) / + 38 THEN + COUNT ( * ) + - COUNT ( * ) ELSE NULL END + - 86 * 25
----
NULL

query I rowsort
SELECT - 88 - - 89 + 62 - - + 10 * + 44 col1
----
503

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8492
SELECT ALL - COUNT( * ) AS col1, 50 + + 65 + 65 DIV 55
----
-1
116

skipif mysql # not compatible
query II rowsort label-8492
SELECT ALL - COUNT ( * ) AS col1, 50 + + 65 + 65 / 55
----
-1
116

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8493
SELECT - 18, + COUNT( * ) DIV - + 44 * COALESCE ( - 94, - 71 ) AS col0
----
-18
0

skipif mysql # not compatible
query II rowsort label-8493
SELECT - 18, + COUNT ( * ) / - + 44 * COALESCE ( - 94, - 71 ) AS col0
----
-18
0

query I rowsort
SELECT - - 92 + + + 25 AS col2
----
117

query I rowsort
SELECT DISTINCT + 87 * 34 * - - 36 + - 23
----
106465

query I rowsort
SELECT + + 17 + - + 12
----
5

query I rowsort
SELECT + + 59 * + 66
----
3894

query II rowsort
SELECT DISTINCT + 94, 43 AS col1
----
94
43

query I rowsort
SELECT DISTINCT + 64 * - 83 AS col2
----
-5312

onlyif mysql # aggregate syntax: 
query I rowsort label-8500
SELECT ALL CASE - + 14 WHEN + 34 THEN + CASE + MIN( DISTINCT + - 33 ) WHEN - 57 THEN + + 9 ELSE - + COUNT( * ) END * 74 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8500
SELECT ALL CASE - + 14 WHEN + 34 THEN + CASE + MIN ( DISTINCT + - 33 ) WHEN - 57 THEN + + 9 ELSE - + COUNT ( * ) END * 74 END AS col2
----
NULL

query I rowsort
SELECT DISTINCT NULLIF ( - - 32, - - 46 )
----
32

query I rowsort
SELECT DISTINCT ( + 93 )
----
93

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8503
SELECT - COALESCE ( + NULLIF ( + 3, + 24 * - - CAST( NULL AS SIGNED ) * - CAST( NULL AS SIGNED ) + + 54 ), - 92 ) DIV - 75 + + 52 * 79 col1
----
4108

skipif mysql # not compatible
query I rowsort label-8503
SELECT - COALESCE ( + NULLIF ( + 3, + 24 * - - CAST ( NULL AS INTEGER ) * - CAST ( NULL AS INTEGER ) + + 54 ), - 92 ) / - 75 + + 52 * 79 col1
----
4108

onlyif mysql # aggregate syntax: 
query I rowsort label-8504
SELECT - ( - + 43 ) - + 72 * 93 * + - 62 + + + 82 + COUNT( * ) col0
----
415278

skipif mysql # not compatible
query I rowsort label-8504
SELECT - ( - + 43 ) - + 72 * 93 * + - 62 + + + 82 + COUNT ( * ) col0
----
415278

onlyif mysql # aggregate syntax: 
query I rowsort label-8505
SELECT + NULLIF ( + - 89, CASE + 90 WHEN 51 * NULLIF ( - NULLIF ( + 4, + - COUNT( * ) ), + 97 ) / - 36 * + - 97 THEN NULL ELSE + 19 * - - 68 END * - 89 / 85 * + ( - 82 ) )
----
-89

skipif mysql # not compatible
query I rowsort label-8505
SELECT + NULLIF ( + - 89, CASE + 90 WHEN 51 * NULLIF ( - NULLIF ( + 4, + - COUNT ( * ) ), + 97 ) / - 36 * + - 97 THEN NULL ELSE + 19 * - - 68 END * - 89 / 85 * + ( - 82 ) )
----
-89

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8506
SELECT 10 DIV - - COUNT( * ) - + COALESCE ( COALESCE ( + COUNT( + 29 ), + 75 ), + 61 ) * + 52
----
-42

skipif mysql # not compatible
query I rowsort label-8506
SELECT 10 / - - COUNT ( * ) - + COALESCE ( COALESCE ( + COUNT ( + 29 ), + 75 ), + 61 ) * + 52
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-8507
SELECT - COUNT( * ) * ( + - 46 )
----
46

skipif mysql # not compatible
query I rowsort label-8507
SELECT - COUNT ( * ) * ( + - 46 )
----
46

query I rowsort
SELECT - 85 * - 97
----
8245

onlyif mysql # aggregate syntax: 
query I rowsort label-8509
SELECT + 91 * - COUNT( * ) * + - 43 AS col2
----
3913

skipif mysql # not compatible
query I rowsort label-8509
SELECT + 91 * - COUNT ( * ) * + - 43 AS col2
----
3913

query I rowsort
SELECT ALL + 99 * 1 + 71
----
170

query I rowsort
SELECT ALL - 2 * + 71 * + 20 * 23 * - - 33
----
-2155560

query I rowsort
SELECT DISTINCT 78 * - 82 * ( - 94 ) + + 2
----
601226

onlyif mysql # aggregate syntax: 
query I rowsort label-8513
SELECT + NULLIF ( + - 82, MIN( - 87 ) - + MIN( ALL - 98 ) * COALESCE ( 33, - + 65 ) / 39 )
----
-82

skipif mysql # not compatible
query I rowsort label-8513
SELECT + NULLIF ( + - 82, MIN ( - 87 ) - + MIN ( ALL - 98 ) * COALESCE ( 33, - + 65 ) / 39 )
----
-82

query I rowsort
SELECT + 31 * - 59 * 37
----
-67673

query I rowsort
SELECT ALL - 72 * 60 + - 93 AS col1
----
-4413

onlyif mysql # aggregate syntax: 
query II rowsort label-8516
SELECT ( + COUNT( * ) ) AS col1, 35 + - 10
----
1
25

skipif mysql # not compatible
query II rowsort label-8516
SELECT ( + COUNT ( * ) ) AS col1, 35 + - 10
----
1
25

query I rowsort
SELECT 45 * 29 + + 89 AS col0
----
1394

onlyif mysql # aggregate syntax: 
query I rowsort label-8518
SELECT ALL + NULLIF ( - COUNT( * ), - COUNT( * ) ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8518
SELECT ALL + NULLIF ( - COUNT ( * ), - COUNT ( * ) ) col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8519
SELECT DISTINCT + + COUNT( * ) * + - 46 * + + 54 + + - CAST( NULL AS SIGNED ) * 27 * - 15
----
NULL

skipif mysql # not compatible
query I rowsort label-8519
SELECT DISTINCT + + COUNT ( * ) * + - 46 * + + 54 + + - CAST ( NULL AS INTEGER ) * 27 * - 15
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8520
SELECT - - COUNT( * ) * + 45 + - + 80 + + + 43 + COUNT( * )
----
9

skipif mysql # not compatible
query I rowsort label-8520
SELECT - - COUNT ( * ) * + 45 + - + 80 + + + 43 + COUNT ( * )
----
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8521
SELECT - 1 + - + 72 AS col1, 60 DIV 38 + - 1 * - + 39 * COUNT( * ) * - 47 * + 30
----
-73
-54989

skipif mysql # not compatible
query II rowsort label-8521
SELECT - 1 + - + 72 AS col1, 60 / 38 + - 1 * - + 39 * COUNT ( * ) * - 47 * + 30
----
-73
-54989

onlyif mysql # aggregate syntax: 
query I rowsort label-8522
SELECT DISTINCT - - 38 * + 71 - + MIN( + 66 ) col0
----
2632

skipif mysql # not compatible
query I rowsort label-8522
SELECT DISTINCT - - 38 * + 71 - + MIN ( + 66 ) col0
----
2632

query I rowsort
SELECT + 58 * 48 * - 81
----
-225504

onlyif mysql # aggregate syntax: 
query I rowsort label-8524
SELECT DISTINCT + 10 * - SUM( ALL 75 ) * - 91 - - + 59 AS col1
----
68309

skipif mysql # not compatible
query I rowsort label-8524
SELECT DISTINCT + 10 * - SUM ( ALL 75 ) * - 91 - - + 59 AS col1
----
68309

query I rowsort
SELECT + 47 + + 53
----
100

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8526
SELECT - COUNT( * ) * - + 96 DIV 56
----
1

skipif mysql # not compatible
query I rowsort label-8526
SELECT - COUNT ( * ) * - + 96 / 56
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8527
SELECT ALL - + 33 DIV 19 * + 79 + NULLIF ( CAST( - 5 AS SIGNED ), - - 52 * + ( + ( - 33 ) ) + + 2 ) + COUNT( * ) + - + 86 * - - 50 + + 64 + ( - - 43 ) * + CAST( + 63 AS SIGNED ) AS col0
----
-1610

skipif mysql # not compatible
query I rowsort label-8527
SELECT ALL - + 33 / 19 * + 79 + NULLIF ( CAST ( - 5 AS INTEGER ), - - 52 * + ( + ( - 33 ) ) + + 2 ) + COUNT ( * ) + - + 86 * - - 50 + + 64 + ( - - 43 ) * + CAST ( + 63 AS INTEGER ) AS col0
----
-1610

onlyif mysql # DIV for integer division: 
query I rowsort label-8528
SELECT - 51 DIV - - 23 AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-8528
SELECT - 51 / - - 23 AS col0
----
-2

query I rowsort
SELECT - 69 - 14 AS col2
----
-83

onlyif mysql # aggregate syntax: 
query II rowsort label-8530
SELECT - 98 * + - MIN( ALL + 29 ) AS col0, 4 + - 84 AS col1
----
2842
-80

skipif mysql # not compatible
query II rowsort label-8530
SELECT - 98 * + - MIN ( ALL + 29 ) AS col0, 4 + - 84 AS col1
----
2842
-80

onlyif mysql # aggregate syntax: 
query II rowsort label-8531
SELECT - 15 - + - SUM( DISTINCT - 40 ) col0, + 30
----
-55
30

skipif mysql # not compatible
query II rowsort label-8531
SELECT - 15 - + - SUM ( DISTINCT - 40 ) col0, + 30
----
-55
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8532
SELECT ALL NULLIF ( + 7, + - NULLIF ( - 64, + 70 ) + + COUNT( * ) + - CASE + 83 WHEN - NULLIF ( + 13, CASE - CASE 7 WHEN 70 * + 25 / + 50 + - 93 * - MAX( + NULLIF ( - 67, + ( + 11 ) ) ) THEN - 32 ELSE 63 END WHEN SUM( DISTINCT - 40 ) + - 91 * + 31 THEN NULL ELSE + 61 END ) THEN NULL WHEN CAST( NULL AS SIGNED ) THEN NULL WHEN - 56 - - 19 THEN 41 ELSE - 89 + COUNT( * ) * COUNT( * ) END )
----
7

skipif mysql # not compatible
query I rowsort label-8532
SELECT ALL NULLIF ( + 7, + - NULLIF ( - 64, + 70 ) + + COUNT ( * ) + - CASE + 83 WHEN - NULLIF ( + 13, CASE - CASE 7 WHEN 70 * + 25 / + 50 + - 93 * - MAX ( + NULLIF ( - 67, + ( + 11 ) ) ) THEN - 32 ELSE 63 END WHEN SUM ( DISTINCT - 40 ) + - 91 * + 31 THEN NULL ELSE + 61 END ) THEN NULL WHEN CAST ( NULL AS INTEGER ) THEN NULL WHEN - 56 - - 19 THEN 41 ELSE - 89 + COUNT ( * ) * COUNT ( * ) END )
----
7

query I rowsort
SELECT ALL - 15 + + 26 AS col0
----
11

query I rowsort
SELECT - 79 + 90 AS col2
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-8535
SELECT ALL COUNT( * ) + + 9 AS col1
----
10

skipif mysql # not compatible
query I rowsort label-8535
SELECT ALL COUNT ( * ) + + 9 AS col1
----
10

onlyif mysql # DIV for integer division: 
query I rowsort label-8536
SELECT ALL 26 DIV + 61 * + 18 col2
----
0

skipif mysql # not compatible
query I rowsort label-8536
SELECT ALL 26 / + 61 * + 18 col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8537
SELECT 89 * - ( - MIN( DISTINCT + 30 ) )
----
2670

skipif mysql # not compatible
query I rowsort label-8537
SELECT 89 * - ( - MIN ( DISTINCT + 30 ) )
----
2670

onlyif mysql # aggregate syntax: 
query II rowsort label-8538
SELECT 24 AS col2, ( - 22 ) - + COUNT( * ) AS col2
----
24
-23

skipif mysql # not compatible
query II rowsort label-8538
SELECT 24 AS col2, ( - 22 ) - + COUNT ( * ) AS col2
----
24
-23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8539
SELECT - 65 / - 67 + + + 79 * + 60 * + 43 * - MIN( 59 ) * 35 * - CAST( NULL AS SIGNED ) / 27 * + MAX( + 87 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8539
SELECT - 65 / - 67 + + + 79 * + 60 * + 43 * - MIN ( 59 ) * 35 * - CAST ( NULL AS INTEGER ) / 27 * + MAX ( + 87 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8540
SELECT 34 DIV ( + - 75 ), - COUNT( * ) AS col0
----
0
-1

skipif mysql # not compatible
query II rowsort label-8540
SELECT 34 / ( + - 75 ), - COUNT ( * ) AS col0
----
0
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8541
SELECT ALL 59 * - 47 + - + 36 * MIN( + 52 ) * + 1 AS col2
----
-4645

skipif mysql # not compatible
query I rowsort label-8541
SELECT ALL 59 * - 47 + - + 36 * MIN ( + 52 ) * + 1 AS col2
----
-4645

query I rowsort
SELECT DISTINCT 64 * - + 24 AS col2
----
-1536

query I rowsort
SELECT ALL - + 19 * - - 73 * + - 73
----
101251

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8544
SELECT DISTINCT - 11 * + COUNT( + - 84 ) * + COALESCE ( 70, + - CAST( + MAX( + 47 ) AS SIGNED ) * - + COUNT( * ) ) AS col1
----
-770

skipif mysql # not compatible
query I rowsort label-8544
SELECT DISTINCT - 11 * + COUNT ( + - 84 ) * + COALESCE ( 70, + - CAST ( + MAX ( + 47 ) AS INTEGER ) * - + COUNT ( * ) ) AS col1
----
-770

query I rowsort
SELECT ALL + 53 * 63
----
3339

onlyif mysql # aggregate syntax: 
query I rowsort label-8546
SELECT - MIN( DISTINCT - - 74 )
----
-74

skipif mysql # not compatible
query I rowsort label-8546
SELECT - MIN ( DISTINCT - - 74 )
----
-74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8547
SELECT + CAST( + + COALESCE ( + - 8, - + 10 ) AS SIGNED ) col1
----
-8

skipif mysql # not compatible
query I rowsort label-8547
SELECT + CAST ( + + COALESCE ( + - 8, - + 10 ) AS INTEGER ) col1
----
-8

query II rowsort
SELECT - 8 col0, - 60 AS col2
----
-8
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-8549
SELECT 56 * + 60 * - + 59 * + + CASE + 18 WHEN - + 37 THEN NULL ELSE 42 END * + 97 + 19 * + COUNT( * ) * 45 + + + 36 AS col2
----
-807628869

skipif mysql # not compatible
query I rowsort label-8549
SELECT 56 * + 60 * - + 59 * + + CASE + 18 WHEN - + 37 THEN NULL ELSE 42 END * + 97 + 19 * + COUNT ( * ) * 45 + + + 36 AS col2
----
-807628869

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8550
SELECT CASE COUNT( * ) WHEN COUNT( * ) + - 95 THEN NULL ELSE - 82 END - - + 24 + + + CAST( NULL AS DECIMAL ) * COUNT( * ) + + 2 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8550
SELECT CASE COUNT ( * ) WHEN COUNT ( * ) + - 95 THEN NULL ELSE - 82 END - - + 24 + + + CAST ( NULL AS REAL ) * COUNT ( * ) + + 2 AS col2
----
NULL

query I rowsort
SELECT - 92 * - + 53 + - 22
----
4854

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8552
SELECT - 98 * - ( 8 ) + 90 + 11 * COUNT( * ) * + + CAST( - 85 AS DECIMAL ) * + COUNT( * ) * - CASE - 37 WHEN - 88 + - 44 THEN - ( - 66 ) + ( + 96 ) WHEN + 87 * - 27 + - 6 - + 74 THEN 94 WHEN ( ( 12 ) ) * - 28 THEN NULL END / + 27 + - 98 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8552
SELECT - 98 * - ( 8 ) + 90 + 11 * COUNT ( * ) * + + CAST ( - 85 AS REAL ) * + COUNT ( * ) * - CASE - 37 WHEN - 88 + - 44 THEN - ( - 66 ) + ( + 96 ) WHEN + 87 * - 27 + - 6 - + 74 THEN 94 WHEN ( ( 12 ) ) * - 28 THEN NULL END / + 27 + - 98 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8553
SELECT - COALESCE ( - 56, + + 39 + - COUNT( * ) ) + - 85 DIV + - NULLIF ( + 70, + 46 DIV + - 34 )
----
57

skipif mysql # not compatible
query I rowsort label-8553
SELECT - COALESCE ( - 56, + + 39 + - COUNT ( * ) ) + - 85 / + - NULLIF ( + 70, + 46 / + - 34 )
----
57

query I rowsort
SELECT DISTINCT - 1 col1
----
-1

query I rowsort
SELECT ALL CASE 43 WHEN + 78 / - AVG ( - 36 ) THEN NULL WHEN 65 THEN NULL WHEN - - 53 THEN NULL ELSE + 92 END * - 5
----
-460

query I rowsort
SELECT ALL - NULLIF ( - 27, - - 20 ) AS col2
----
27

query I rowsort
SELECT + 68 + - 8 AS col2
----
60

query I rowsort
SELECT ALL + 46 + + 0
----
46

query I rowsort
SELECT ALL 34 * - 73
----
-2482

query I rowsort
SELECT 84 + - - 47
----
131

onlyif mysql # aggregate syntax: 
query I rowsort label-8561
SELECT DISTINCT 69 * SUM( + 43 )
----
2967

skipif mysql # not compatible
query I rowsort label-8561
SELECT DISTINCT 69 * SUM ( + 43 )
----
2967

query I rowsort
SELECT ALL 27 + - 23 - - 53 - + 37 * + - 43 AS col1
----
1648

onlyif mysql # DIV for integer division: 
query II rowsort label-8563
SELECT - 80 AS col0, 74 * 60 DIV - 57
----
-80
-77

skipif mysql # not compatible
query II rowsort label-8563
SELECT - 80 AS col0, 74 * 60 / - 57
----
-80
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8564
SELECT 0 + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8564
SELECT 0 + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT 74 * - 86 AS col2
----
-6364

query I rowsort
SELECT 9 + ( 0 )
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8567
SELECT CAST( - 67 AS SIGNED ) * + - 30 AS col2
----
2010

skipif mysql # not compatible
query I rowsort label-8567
SELECT CAST ( - 67 AS INTEGER ) * + - 30 AS col2
----
2010

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8568
SELECT DISTINCT - MAX( + CAST( NULL AS DECIMAL ) ) / + 41 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8568
SELECT DISTINCT - MAX ( + CAST ( NULL AS REAL ) ) / + 41 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8569
SELECT DISTINCT COUNT( * ) + + 38 + + + 17 - - 81 + - 90 * + MIN( ALL 36 ) * 0 * ( - + 12 ) AS col1
----
137

skipif mysql # not compatible
query I rowsort label-8569
SELECT DISTINCT COUNT ( * ) + + 38 + + + 17 - - 81 + - 90 * + MIN ( ALL 36 ) * 0 * ( - + 12 ) AS col1
----
137

onlyif mysql # aggregate syntax: 
query I rowsort label-8570
SELECT ALL - SUM( + + 97 ) + 12 AS col2
----
-85

skipif mysql # not compatible
query I rowsort label-8570
SELECT ALL - SUM ( + + 97 ) + 12 AS col2
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-8571
SELECT 9 * - - SUM( - 57 ) AS col0
----
-513

skipif mysql # not compatible
query I rowsort label-8571
SELECT 9 * - - SUM ( - 57 ) AS col0
----
-513

onlyif mysql # aggregate syntax: 
query I rowsort label-8572
SELECT ALL 61 + - COUNT( * )
----
60

skipif mysql # not compatible
query I rowsort label-8572
SELECT ALL 61 + - COUNT ( * )
----
60

onlyif mysql # DIV for integer division: 
query I rowsort label-8573
SELECT DISTINCT 20 DIV + + 91 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8573
SELECT DISTINCT 20 / + + 91 AS col1
----
0

query I rowsort
SELECT ALL - 84 * + 66
----
-5544

query I rowsort
SELECT 99 - - 96
----
195

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8576
SELECT - CAST( NULL AS SIGNED ) / - + COUNT( + 68 ) - 59 + + 30 + - 34 + 98 * - CAST( - COALESCE ( - ( 53 ), + CAST( NULL AS SIGNED ) ) AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-8576
SELECT - CAST ( NULL AS INTEGER ) / - + COUNT ( + 68 ) - 59 + + 30 + - 34 + 98 * - CAST ( - COALESCE ( - ( 53 ), + CAST ( NULL AS INTEGER ) ) AS REAL )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8577
SELECT ( 68 ) * + - COALESCE ( + - CAST( NULL AS SIGNED ), - 75 DIV - 89 + - 3 * + - 98, - - 75 )
----
-19992

skipif mysql # not compatible
query I rowsort label-8577
SELECT ( 68 ) * + - COALESCE ( + - CAST ( NULL AS INTEGER ), - 75 / - 89 + - 3 * + - 98, - - 75 )
----
-19992

query II rowsort
SELECT DISTINCT - 67 AS col0, 14 AS col2
----
-67
14

onlyif mysql # aggregate syntax: 
query II rowsort label-8579
SELECT + MAX( - + 61 ) * + 50 - + ( - MIN( ALL - ( 93 ) ) ) AS col1, - 17 * 48 AS col1
----
-3143
-816

skipif mysql # not compatible
query II rowsort label-8579
SELECT + MAX ( - + 61 ) * + 50 - + ( - MIN ( ALL - ( 93 ) ) ) AS col1, - 17 * 48 AS col1
----
-3143
-816

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8580
SELECT - 49 * + SUM( ALL - + 31 ) + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8580
SELECT - 49 * + SUM ( ALL - + 31 ) + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8581
SELECT COUNT( * ) - - 92
----
93

skipif mysql # not compatible
query I rowsort label-8581
SELECT COUNT ( * ) - - 92
----
93

query II rowsort
SELECT + 63, + 71 col1
----
63
71

query I rowsort
SELECT ALL - - ( - 88 ) col1
----
-88

onlyif mysql # DIV for integer division: 
query I rowsort label-8584
SELECT ALL - - 91 DIV - + 73 col0
----
-1

skipif mysql # not compatible
query I rowsort label-8584
SELECT ALL - - 91 / - + 73 col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8585
SELECT 27 * + - 59 + - MAX( ALL + 23 ) * + + 4 + - + CASE + 21 WHEN + 76 * 49 THEN + 10 + - ( + 41 ) * 85 ELSE NULL END * 80 * + NULLIF ( COUNT( * ), + - 55 ) - + - 72
----
NULL

skipif mysql # not compatible
query I rowsort label-8585
SELECT 27 * + - 59 + - MAX ( ALL + 23 ) * + + 4 + - + CASE + 21 WHEN + 76 * 49 THEN + 10 + - ( + 41 ) * 85 ELSE NULL END * 80 * + NULLIF ( COUNT ( * ), + - 55 ) - + - 72
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8586
SELECT 95 DIV - - 95 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8586
SELECT 95 / - - 95 AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8587
SELECT + COUNT( * ) * + 23 * COUNT( * )
----
23

skipif mysql # not compatible
query I rowsort label-8587
SELECT + COUNT ( * ) * + 23 * COUNT ( * )
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-8588
SELECT + MAX( ALL + ( + 47 ) ) * + 68 - - 13
----
3209

skipif mysql # not compatible
query I rowsort label-8588
SELECT + MAX ( ALL + ( + 47 ) ) * + 68 - - 13
----
3209

query I rowsort
SELECT ALL - + ( + 62 )
----
-62

onlyif mysql # DIV for integer division: 
query I rowsort label-8590
SELECT + 43 DIV + 97 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8590
SELECT + 43 / + 97 AS col1
----
0

query I rowsort
SELECT 5 * - 77 AS col2
----
-385

onlyif mysql # aggregate syntax: 
query I rowsort label-8592
SELECT DISTINCT + - 49 * - - COUNT( * ) * - + 62 AS col0
----
3038

skipif mysql # not compatible
query I rowsort label-8592
SELECT DISTINCT + - 49 * - - COUNT ( * ) * - + 62 AS col0
----
3038

query I rowsort
SELECT DISTINCT - 17 + - 70
----
-87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8594
SELECT ALL + 6 * - - COALESCE ( + + CAST( + + 27 AS SIGNED ), 25 + 85 ) AS col1
----
162

skipif mysql # not compatible
query I rowsort label-8594
SELECT ALL + 6 * - - COALESCE ( + + CAST ( + + 27 AS INTEGER ), 25 + 85 ) AS col1
----
162

onlyif mysql # aggregate syntax: 
query I rowsort label-8595
SELECT ALL 28 + + 81 + + + COUNT( * ) AS col0
----
110

skipif mysql # not compatible
query I rowsort label-8595
SELECT ALL 28 + + 81 + + + COUNT ( * ) AS col0
----
110

query I rowsort
SELECT 64 + - 25
----
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8597
SELECT ALL COUNT( * ) + - - 14 + + - 56 - - 51 * 10 * - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8597
SELECT ALL COUNT ( * ) + - - 14 + + - 56 - - 51 * 10 * - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8598
SELECT ALL - 15 + + COUNT( * ) * - 30 * - COALESCE ( 1, 89 ) + + ( 53 ) - + 18 * - CASE - 70 WHEN - 34 * - 9 + - COUNT( * ) THEN NULL WHEN 44 THEN 41 * + COUNT( * ) WHEN + 1 * + 49 + + 37 THEN + - 93 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8598
SELECT ALL - 15 + + COUNT ( * ) * - 30 * - COALESCE ( 1, 89 ) + + ( 53 ) - + 18 * - CASE - 70 WHEN - 34 * - 9 + - COUNT ( * ) THEN NULL WHEN 44 THEN 41 * + COUNT ( * ) WHEN + 1 * + 49 + + 37 THEN + - 93 END AS col0
----
NULL

query I rowsort
SELECT 90 * - 86 * - 24 AS col2
----
185760

onlyif mysql # aggregate syntax: 
query I rowsort label-8600
SELECT DISTINCT 15 * - + COUNT( * )
----
-15

skipif mysql # not compatible
query I rowsort label-8600
SELECT DISTINCT 15 * - + COUNT ( * )
----
-15

onlyif mysql # DIV for integer division: 
query I rowsort label-8601
SELECT ALL ( - 34 ) + + + 62 + + 37 DIV - 2
----
10

skipif mysql # not compatible
query I rowsort label-8601
SELECT ALL ( - 34 ) + + + 62 + + 37 / - 2
----
10

onlyif mysql # DIV for integer division: 
query II rowsort label-8602
SELECT + 56 + - - 20 - - 95 * 61 DIV - - 61 - - 42 * - - 79, 13 col0
----
3489
13

skipif mysql # not compatible
query II rowsort label-8602
SELECT + 56 + - - 20 - - 95 * 61 / - - 61 - - 42 * - - 79, 13 col0
----
3489
13

onlyif mysql # aggregate syntax: 
query I rowsort label-8603
SELECT ALL MIN( + + 28 ) * 83
----
2324

skipif mysql # not compatible
query I rowsort label-8603
SELECT ALL MIN ( + + 28 ) * 83
----
2324

query I rowsort
SELECT DISTINCT 79 * + 17 * - - 24 * - 23
----
-741336

query I rowsort
SELECT + NULLIF ( 67, + 42 / 38 ) * - - ( - - 41 )
----
2747

onlyif mysql # aggregate syntax: 
query I rowsort label-8606
SELECT ALL COUNT( * ) * - - 60 * - + 61 AS col0
----
-3660

skipif mysql # not compatible
query I rowsort label-8606
SELECT ALL COUNT ( * ) * - - 60 * - + 61 AS col0
----
-3660

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8607
SELECT + NULLIF ( 22, - + 86 + - 36 + - MIN( ALL + 82 ) + 22 + - - 85 + + CASE + COUNT( * ) WHEN 11 THEN 87 WHEN - 19 THEN 56 WHEN NULLIF ( + - 83, + CAST( + - 92 AS SIGNED ) ) + - 51 * - + 59 * + - 63 THEN + 38 * 40 WHEN ( + CAST( NULL AS SIGNED ) ) THEN NULL END / + 91 / - COUNT( * ) * - 97 ) + 43 * - NULLIF ( 50 * 77, 93 * + 75 )
----
-165528

skipif mysql # not compatible
query I rowsort label-8607
SELECT + NULLIF ( 22, - + 86 + - 36 + - MIN ( ALL + 82 ) + 22 + - - 85 + + CASE + COUNT ( * ) WHEN 11 THEN 87 WHEN - 19 THEN 56 WHEN NULLIF ( + - 83, + CAST ( + - 92 AS INTEGER ) ) + - 51 * - + 59 * + - 63 THEN + 38 * 40 WHEN ( + CAST ( NULL AS INTEGER ) ) THEN NULL END / + 91 / - COUNT ( * ) * - 97 ) + 43 * - NULLIF ( 50 * 77, 93 * + 75 )
----
-165528

query I rowsort
SELECT + 26 * + 52
----
1352

query I rowsort
SELECT - 2 - - + 57 AS col1
----
55

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8610
SELECT DISTINCT 19 * COUNT( * ) col1, - 37 DIV 53 AS col2
----
19
0

skipif mysql # not compatible
query II rowsort label-8610
SELECT DISTINCT 19 * COUNT ( * ) col1, - 37 / 53 AS col2
----
19
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8611
SELECT DISTINCT + 8 DIV + 8
----
1

skipif mysql # not compatible
query I rowsort label-8611
SELECT DISTINCT + 8 / + 8
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8612
SELECT ALL + CAST( 74 AS SIGNED ) AS col2
----
74

skipif mysql # not compatible
query I rowsort label-8612
SELECT ALL + CAST ( 74 AS INTEGER ) AS col2
----
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8613
SELECT + CAST( NULL AS SIGNED ) + - 8
----
NULL

skipif mysql # not compatible
query I rowsort label-8613
SELECT + CAST ( NULL AS INTEGER ) + - 8
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8614
SELECT - 25 + - - 38 AS col2, COUNT( * ) + - CAST( 3 AS SIGNED )
----
13
-2

skipif mysql # not compatible
query II rowsort label-8614
SELECT - 25 + - - 38 AS col2, COUNT ( * ) + - CAST ( 3 AS INTEGER )
----
13
-2

query I rowsort
SELECT ALL + - 18 * - 38 AS col1
----
684

query I rowsort
SELECT - + 0 * + 9 - - 32
----
32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8617
SELECT DISTINCT + 95 DIV + 65 + - 43 - 81 * + ( COUNT( * ) )
----
-123

skipif mysql # not compatible
query I rowsort label-8617
SELECT DISTINCT + 95 / + 65 + - 43 - 81 * + ( COUNT ( * ) )
----
-123

query I rowsort
SELECT - - 25 * + 70
----
1750

query I rowsort
SELECT DISTINCT - + 89 * + 46
----
-4094

query I rowsort
SELECT + + 39 + - - 10 AS col1
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-8621
SELECT ALL - + 69 * 35 + 97 + + 54 + + + COUNT( ALL + 8 ) AS col1
----
-2263

skipif mysql # not compatible
query I rowsort label-8621
SELECT ALL - + 69 * 35 + 97 + + 54 + + + COUNT ( ALL + 8 ) AS col1
----
-2263

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8622
SELECT ALL + - COUNT( * ) * - 67 + CAST( COUNT( * ) AS SIGNED ) col1
----
68

skipif mysql # not compatible
query I rowsort label-8622
SELECT ALL + - COUNT ( * ) * - 67 + CAST ( COUNT ( * ) AS INTEGER ) col1
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-8623
SELECT ALL + - 47 * + + 63 * + + COUNT( * ) * - 87 AS col1
----
257607

skipif mysql # not compatible
query I rowsort label-8623
SELECT ALL + - 47 * + + 63 * + + COUNT ( * ) * - 87 AS col1
----
257607

onlyif mysql # aggregate syntax: 
query I rowsort label-8624
SELECT - - COUNT( * ) + + 10 + 94
----
105

skipif mysql # not compatible
query I rowsort label-8624
SELECT - - COUNT ( * ) + + 10 + 94
----
105

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8625
SELECT ALL 34 * + COUNT( * ) + + 12 DIV + - 42 * + - 31 col0
----
34

skipif mysql # not compatible
query I rowsort label-8625
SELECT ALL 34 * + COUNT ( * ) + + 12 / + - 42 * + - 31 col0
----
34

query I rowsort
SELECT 47 * 59 * - - 82 + 9
----
227395

onlyif mysql # aggregate syntax: 
query I rowsort label-8627
SELECT + 75 * + - COUNT( * )
----
-75

skipif mysql # not compatible
query I rowsort label-8627
SELECT + 75 * + - COUNT ( * )
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-8628
SELECT ALL + COUNT( ALL ( - - 82 ) ) * + 59 * 2
----
118

skipif mysql # not compatible
query I rowsort label-8628
SELECT ALL + COUNT ( ALL ( - - 82 ) ) * + 59 * 2
----
118

onlyif mysql # DIV for integer division: 
query I rowsort label-8629
SELECT ALL + 83 DIV + 16
----
5

skipif mysql # not compatible
query I rowsort label-8629
SELECT ALL + 83 / + 16
----
5

onlyif mysql # DIV for integer division: 
query I rowsort label-8630
SELECT DISTINCT + 74 DIV 81
----
0

skipif mysql # not compatible
query I rowsort label-8630
SELECT DISTINCT + 74 / 81
----
0

query I rowsort
SELECT ALL 74 * - - 31 col1
----
2294

query I rowsort
SELECT ALL + 56 * + 87
----
4872

onlyif mysql # DIV for integer division: 
query II rowsort label-8633
SELECT - 56 + - 76 * + 5 + + + 35 - + 90 + + 13 * 41 DIV - 94 AS col2, 63 AS col0
----
-496
63

skipif mysql # not compatible
query II rowsort label-8633
SELECT - 56 + - 76 * + 5 + + + 35 - + 90 + + 13 * 41 / - 94 AS col2, 63 AS col0
----
-496
63

query I rowsort
SELECT DISTINCT ( + + 58 ) AS col0
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-8635
SELECT ALL - 84 * + + ( - - COUNT( * ) ) AS col2
----
-84

skipif mysql # not compatible
query I rowsort label-8635
SELECT ALL - 84 * + + ( - - COUNT ( * ) ) AS col2
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-8636
SELECT - COUNT( * ) * 81 col0
----
-81

skipif mysql # not compatible
query I rowsort label-8636
SELECT - COUNT ( * ) * 81 col0
----
-81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8637
SELECT + 26 + AVG ( + 74 ) + + - 83 + - - CAST( NULL AS DECIMAL ) + + 15 * + 37 + + - CAST( NULL AS SIGNED ) + 21 * - 46 * - 46 * COUNT( * ) * 93 * - 94 - - 58
----
NULL

skipif mysql # not compatible
query I rowsort label-8637
SELECT + 26 + AVG ( + 74 ) + + - 83 + - - CAST ( NULL AS REAL ) + + 15 * + 37 + + - CAST ( NULL AS INTEGER ) + 21 * - 46 * - 46 * COUNT ( * ) * 93 * - 94 - - 58
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-8638
SELECT DISTINCT 1 AS col0, CAST( NULL AS DECIMAL ) * + COUNT( * ) AS col0
----
1
NULL

skipif mysql # not compatible
query II rowsort label-8638
SELECT DISTINCT 1 AS col0, CAST ( NULL AS REAL ) * + COUNT ( * ) AS col0
----
1
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8639
SELECT + 49 * + CAST( 66 AS SIGNED ) col2
----
3234

skipif mysql # not compatible
query I rowsort label-8639
SELECT + 49 * + CAST ( 66 AS INTEGER ) col2
----
3234

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8640
SELECT ALL CAST( 84 AS SIGNED ) AS col0
----
84

skipif mysql # not compatible
query I rowsort label-8640
SELECT ALL CAST ( 84 AS INTEGER ) AS col0
----
84

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8641
SELECT - 53 * - 0 DIV + 47 + COUNT( * ) col1
----
1

skipif mysql # not compatible
query I rowsort label-8641
SELECT - 53 * - 0 / + 47 + COUNT ( * ) col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8642
SELECT + CASE - + NULLIF ( + 84, - COALESCE ( + COUNT( * ), - - 5 * - COUNT( * ) + + COUNT( DISTINCT 30 ) ) ) WHEN CAST( NULL AS SIGNED ) * + 11 * + NULLIF ( - + 63, - 36 + 22 ) THEN NULL ELSE - - ( 97 ) END
----
97

skipif mysql # not compatible
query I rowsort label-8642
SELECT + CASE - + NULLIF ( + 84, - COALESCE ( + COUNT ( * ), - - 5 * - COUNT ( * ) + + COUNT ( DISTINCT 30 ) ) ) WHEN CAST ( NULL AS INTEGER ) * + 11 * + NULLIF ( - + 63, - 36 + 22 ) THEN NULL ELSE - - ( 97 ) END
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-8643
SELECT + - ( COUNT( * ) ) - - + 67 + 10
----
76

skipif mysql # not compatible
query I rowsort label-8643
SELECT + - ( COUNT ( * ) ) - - + 67 + 10
----
76

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8644
SELECT - CAST( NULL AS SIGNED ) AS col0, - 73
----
NULL
-73

skipif mysql # not compatible
query II rowsort label-8644
SELECT - CAST ( NULL AS INTEGER ) AS col0, - 73
----
NULL
-73

onlyif mysql # DIV for integer division: 
query I rowsort label-8645
SELECT - 16 DIV - - 5 + 27
----
24

skipif mysql # not compatible
query I rowsort label-8645
SELECT - 16 / - - 5 + 27
----
24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8646
SELECT + - CAST( + 7 AS SIGNED )
----
-7

skipif mysql # not compatible
query I rowsort label-8646
SELECT + - CAST ( + 7 AS INTEGER )
----
-7

onlyif mysql # DIV for integer division: 
query I rowsort label-8647
SELECT DISTINCT 37 DIV - 77 * + + 95 + + + 60 AS col2
----
60

skipif mysql # not compatible
query I rowsort label-8647
SELECT DISTINCT 37 / - 77 * + + 95 + + + 60 AS col2
----
60

onlyif mysql # aggregate syntax: 
query II rowsort label-8648
SELECT DISTINCT + COUNT( * ) AS col2, - 38 * - 80 * + + 64 AS col2
----
1
194560

skipif mysql # not compatible
query II rowsort label-8648
SELECT DISTINCT + COUNT ( * ) AS col2, - 38 * - 80 * + + 64 AS col2
----
1
194560

onlyif mysql # DIV for integer division: 
query I rowsort label-8649
SELECT ALL 24 DIV - 89 + + + 33 + 14 col2
----
47

skipif mysql # not compatible
query I rowsort label-8649
SELECT ALL 24 / - 89 + + + 33 + 14 col2
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-8650
SELECT + - 92 * - 89 - + MAX( 48 ) - 87 col2
----
8053

skipif mysql # not compatible
query I rowsort label-8650
SELECT + - 92 * - 89 - + MAX ( 48 ) - 87 col2
----
8053

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8651
SELECT DISTINCT CAST( NULL AS SIGNED ) / + ( - COUNT( * ) ) / + SUM( DISTINCT - 94 ) - - 92 + ( - 60 ) + - MAX( ALL 3 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8651
SELECT DISTINCT CAST ( NULL AS INTEGER ) / + ( - COUNT ( * ) ) / + SUM ( DISTINCT - 94 ) - - 92 + ( - 60 ) + - MAX ( ALL 3 ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8652
SELECT + 28 * - 24 - 31 DIV 59 * 54 + - NULLIF ( + - 64, - + 16 * - 40 * + + 8 ) AS col2
----
-608

skipif mysql # not compatible
query I rowsort label-8652
SELECT + 28 * - 24 - 31 / 59 * 54 + - NULLIF ( + - 64, - + 16 * - 40 * + + 8 ) AS col2
----
-608

onlyif mysql # aggregate syntax: 
query I rowsort label-8653
SELECT SUM( DISTINCT + 54 ) AS col1
----
54

skipif mysql # not compatible
query I rowsort label-8653
SELECT SUM ( DISTINCT + 54 ) AS col1
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-8654
SELECT + MAX( + + 64 ) AS col0
----
64

skipif mysql # not compatible
query I rowsort label-8654
SELECT + MAX ( + + 64 ) AS col0
----
64

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8655
SELECT ALL - COUNT( * ) DIV - SUM( - + 30 ) + + COUNT( ALL 30 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8655
SELECT ALL - COUNT ( * ) / - SUM ( - + 30 ) + + COUNT ( ALL 30 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8656
SELECT + - MAX( DISTINCT 86 ) * 56 * + 98 AS col2
----
-471968

skipif mysql # not compatible
query I rowsort label-8656
SELECT + - MAX ( DISTINCT 86 ) * 56 * + 98 AS col2
----
-471968

query II rowsort
SELECT - 55 AS col2, 12 AS col2
----
-55
12

query I rowsort
SELECT + - 56 * + 22 + - ( + 18 ) + + 30 * + - 77 * - 93 AS col1
----
213580

onlyif mysql # aggregate syntax: 
query I rowsort label-8659
SELECT ALL + + NULLIF ( + + 59, - 59 * + - COUNT( * ) + + 67 + + 2 ) * - COUNT( * ) * + 26 * - 21
----
32214

skipif mysql # not compatible
query I rowsort label-8659
SELECT ALL + + NULLIF ( + + 59, - 59 * + - COUNT ( * ) + + 67 + + 2 ) * - COUNT ( * ) * + 26 * - 21
----
32214

query I rowsort
SELECT - 84 * - - 58
----
-4872

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8661
SELECT ( - ( - CAST( NULL AS SIGNED ) ) ) * - 14 / - - 4 * - + 37 + - COUNT( + NULLIF ( 70, - - 68 ) ) + - 78 - - 91 / COUNT( DISTINCT + 82 ) + + 50 * 43, + 99 AS col0
----
NULL
99

skipif mysql # not compatible
query II rowsort label-8661
SELECT ( - ( - CAST ( NULL AS INTEGER ) ) ) * - 14 / - - 4 * - + 37 + - COUNT ( + NULLIF ( 70, - - 68 ) ) + - 78 - - 91 / COUNT ( DISTINCT + 82 ) + + 50 * 43, + 99 AS col0
----
NULL
99

query I rowsort
SELECT DISTINCT + 69 * + 76 * 30
----
157320

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8663
SELECT ALL + 78 * 15 - - + 32 * + ( CAST( NULL AS SIGNED ) ) * - - 42 + - 92
----
NULL

skipif mysql # not compatible
query I rowsort label-8663
SELECT ALL + 78 * 15 - - + 32 * + ( CAST ( NULL AS INTEGER ) ) * - - 42 + - 92
----
NULL

query I rowsort
SELECT ALL 69 * - 61 col0
----
-4209

query I rowsort
SELECT 99 * - 23 AS col0
----
-2277

query I rowsort
SELECT DISTINCT - ( 70 )
----
-70

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8667
SELECT CAST( ( - 87 ) AS SIGNED ) * - 79 + 63 DIV - + 44
----
6872

skipif mysql # not compatible
query I rowsort label-8667
SELECT CAST ( ( - 87 ) AS INTEGER ) * - 79 + 63 / - + 44
----
6872

query I rowsort
SELECT ALL - CASE - 67 WHEN - 57 + + 79 THEN NULL ELSE - + 69 END
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-8669
SELECT + 2 * - SUM( + 81 ) + + 41 + - 84 * - COUNT( * ) + 12 AS col1
----
-25

skipif mysql # not compatible
query I rowsort label-8669
SELECT + 2 * - SUM ( + 81 ) + + 41 + - 84 * - COUNT ( * ) + 12 AS col1
----
-25

query II rowsort
SELECT 99 + 42 AS col0, - 29
----
141
-29

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8671
SELECT 8 + 80 DIV - CAST( + + 85 AS SIGNED ) + 19
----
27

skipif mysql # not compatible
query I rowsort label-8671
SELECT 8 + 80 / - CAST ( + + 85 AS INTEGER ) + 19
----
27

query I rowsort
SELECT 18 + - 38
----
-20

onlyif mysql # DIV for integer division: 
query I rowsort label-8673
SELECT DISTINCT - 35 DIV + 63 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8673
SELECT DISTINCT - 35 / + 63 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8674
SELECT 27 DIV + 8 AS col2
----
3

skipif mysql # not compatible
query I rowsort label-8674
SELECT 27 / + 8 AS col2
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8675
SELECT ALL - COUNT( * ) DIV + 53 AS col1, 3 col0
----
0
3

skipif mysql # not compatible
query II rowsort label-8675
SELECT ALL - COUNT ( * ) / + 53 AS col1, 3 col0
----
0
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8676
SELECT 17 / - CAST( - 40 AS SIGNED ) / - CASE - SUM( DISTINCT 91 ) WHEN - - COUNT( * ) + + - MIN( ALL - - 71 ) + 25 THEN + 26 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8676
SELECT 17 / - CAST ( - 40 AS INTEGER ) / - CASE - SUM ( DISTINCT 91 ) WHEN - - COUNT ( * ) + + - MIN ( ALL - - 71 ) + 25 THEN + 26 END
----
NULL

query I rowsort
SELECT - 46 + - 51 * + 61
----
-3157

onlyif mysql # aggregate syntax: 
query I rowsort label-8678
SELECT + COUNT( * ) * - 4 + - 49 AS col0
----
-53

skipif mysql # not compatible
query I rowsort label-8678
SELECT + COUNT ( * ) * - 4 + - 49 AS col0
----
-53

query I rowsort
SELECT - 43 - - + 96
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-8680
SELECT - SUM( ALL 32 ) * - 64
----
2048

skipif mysql # not compatible
query I rowsort label-8680
SELECT - SUM ( ALL 32 ) * - 64
----
2048

onlyif mysql # aggregate syntax: 
query I rowsort label-8681
SELECT ALL COUNT( * ) + - 28 * + 41 + + + 94 * + 65
----
4963

skipif mysql # not compatible
query I rowsort label-8681
SELECT ALL COUNT ( * ) + - 28 * + 41 + + + 94 * + 65
----
4963

query I rowsort
SELECT ALL - 84 + - 59 * - 79 + 91 + - + 58 * + - 19 AS col1
----
5770

query I rowsort
SELECT + 9 + - 23 * - 77 AS col1
----
1780

query I rowsort
SELECT ALL - ( - NULLIF ( - - 81, + 15 ) )
----
81

query I rowsort
SELECT + COALESCE ( - - 90, + + 58 * 7 * - 34 )
----
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8686
SELECT - 1 * + COUNT( * ) + 8 - - 16 - - 31 * 64 / + CAST( NULL AS SIGNED ) * - - 47 * - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8686
SELECT - 1 * + COUNT ( * ) + 8 - - 16 - - 31 * 64 / + CAST ( NULL AS INTEGER ) * - - 47 * - COUNT ( * ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT + 60 * + 28 * + 8 AS col1
----
13440

onlyif mysql # aggregate syntax: 
query I rowsort label-8688
SELECT 52 * - + MAX( DISTINCT - - 94 ) AS col0
----
-4888

skipif mysql # not compatible
query I rowsort label-8688
SELECT 52 * - + MAX ( DISTINCT - - 94 ) AS col0
----
-4888

onlyif mysql # aggregate syntax: 
query I rowsort label-8689
SELECT - MAX( ALL + 80 ) * 31 * - - 85
----
-210800

skipif mysql # not compatible
query I rowsort label-8689
SELECT - MAX ( ALL + 80 ) * 31 * - - 85
----
-210800

query I rowsort
SELECT 83 + - 27 + - - 71 AS col2
----
127

onlyif mysql # aggregate syntax: 
query I rowsort label-8691
SELECT 42 + - - 96 * - COUNT( * ) * - + 7 * 40 AS col1
----
26922

skipif mysql # not compatible
query I rowsort label-8691
SELECT 42 + - - 96 * - COUNT ( * ) * - + 7 * 40 AS col1
----
26922

onlyif mysql # aggregate syntax: 
query I rowsort label-8692
SELECT DISTINCT - CASE + 48 WHEN - 76 THEN + - NULLIF ( + COUNT( * ), - 86 ) WHEN 25 - 84 + - + AVG ( + 34 ) THEN 86 * COUNT( * ) + MAX( ALL 86 ) - + MAX( ALL - 18 ) + - 50 ELSE + 60 * + 58 + + 18 END * - 86
----
300828

skipif mysql # not compatible
query I rowsort label-8692
SELECT DISTINCT - CASE + 48 WHEN - 76 THEN + - NULLIF ( + COUNT ( * ), - 86 ) WHEN 25 - 84 + - + AVG ( + 34 ) THEN 86 * COUNT ( * ) + MAX ( ALL 86 ) - + MAX ( ALL - 18 ) + - 50 ELSE + 60 * + 58 + + 18 END * - 86
----
300828

onlyif mysql # aggregate syntax: 
query II rowsort label-8693
SELECT ALL 56 - + COUNT( * ) AS col2, 99
----
55
99

skipif mysql # not compatible
query II rowsort label-8693
SELECT ALL 56 - + COUNT ( * ) AS col2, 99
----
55
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8694
SELECT + COALESCE ( + 0, 64 ) * CAST( + - AVG ( + 77 ) AS SIGNED ) + + 28 + + CAST( NULL AS SIGNED ) + + - 6
----
NULL

skipif mysql # not compatible
query I rowsort label-8694
SELECT + COALESCE ( + 0, 64 ) * CAST ( + - AVG ( + 77 ) AS INTEGER ) + + 28 + + CAST ( NULL AS INTEGER ) + + - 6
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8695
SELECT DISTINCT 92 DIV 2 DIV + SUM( 86 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8695
SELECT DISTINCT 92 / 2 / + SUM ( 86 ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8696
SELECT ALL - MIN( DISTINCT + + 60 )
----
-60

skipif mysql # not compatible
query I rowsort label-8696
SELECT ALL - MIN ( DISTINCT + + 60 )
----
-60

query I rowsort
SELECT 18 + 76 - - + 87
----
181

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8698
SELECT CASE 59 WHEN + CASE + 99 WHEN - + 13 * - - 25 + 45 / COALESCE ( 23, 80 + 11 - + COUNT( * ) / 70 + + 36 + + 24 ) THEN + 34 WHEN + 43 THEN NULL ELSE NULL END - + - CASE - 20 WHEN + 65 + + 94 + - 77 * CASE 2 WHEN 58 / - 39 THEN 28 END * - 43 THEN - 72 * + 93 WHEN MIN( ( ( - COALESCE ( + 96, + NULLIF ( + 41, - 49 * 33 ) ) ) ) ) THEN - 83 END THEN NULL WHEN - CASE ( 89 ) WHEN 53 * 28 THEN - 11 + 19 END THEN + 7 WHEN COUNT( * ) - CAST( - 97 AS SIGNED ) * + 55 THEN 40 * + 71 - 8 * 53 END * + ( 39 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8698
SELECT CASE 59 WHEN + CASE + 99 WHEN - + 13 * - - 25 + 45 / COALESCE ( 23, 80 + 11 - + COUNT ( * ) / 70 + + 36 + + 24 ) THEN + 34 WHEN + 43 THEN NULL ELSE NULL END - + - CASE - 20 WHEN + 65 + + 94 + - 77 * CASE 2 WHEN 58 / - 39 THEN 28 END * - 43 THEN - 72 * + 93 WHEN MIN ( ( ( - COALESCE ( + 96, + NULLIF ( + 41, - 49 * 33 ) ) ) ) ) THEN - 83 END THEN NULL WHEN - CASE ( 89 ) WHEN 53 * 28 THEN - 11 + 19 END THEN + 7 WHEN COUNT ( * ) - CAST ( - 97 AS INTEGER ) * + 55 THEN 40 * + 71 - 8 * 53 END * + ( 39 ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT ( + 82 ) * 45
----
3690

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8700
SELECT CAST( NULL AS DECIMAL ) * 28
----
NULL

skipif mysql # not compatible
query I rowsort label-8700
SELECT CAST ( NULL AS REAL ) * 28
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8701
SELECT ALL + CAST( NULL AS DECIMAL ) * COALESCE ( + - 33, SUM( ALL + 37 ), 66 * 50 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8701
SELECT ALL + CAST ( NULL AS REAL ) * COALESCE ( + - 33, SUM ( ALL + 37 ), 66 * 50 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8702
SELECT DISTINCT 14 * CASE 73 WHEN + + 36 THEN - 87 * 74 * - - 99 WHEN 23 THEN NULL ELSE - COUNT( * ) * 73 + - - 20 * 54 END AS col1
----
14098

skipif mysql # not compatible
query I rowsort label-8702
SELECT DISTINCT 14 * CASE 73 WHEN + + 36 THEN - 87 * 74 * - - 99 WHEN 23 THEN NULL ELSE - COUNT ( * ) * 73 + - - 20 * 54 END AS col1
----
14098

onlyif mysql # aggregate syntax: 
query I rowsort label-8703
SELECT ALL 49 * + 42 * + 48 * + COUNT( * ) AS col2
----
98784

skipif mysql # not compatible
query I rowsort label-8703
SELECT ALL 49 * + 42 * + 48 * + COUNT ( * ) AS col2
----
98784

onlyif mysql # aggregate syntax: 
query II rowsort label-8704
SELECT - COUNT( * ), - MIN( - 81 ) + + + 14 AS col0
----
-1
95

skipif mysql # not compatible
query II rowsort label-8704
SELECT - COUNT ( * ), - MIN ( - 81 ) + + + 14 AS col0
----
-1
95

onlyif mysql # DIV for integer division: 
query I rowsort label-8705
SELECT 62 DIV - - 45 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8705
SELECT 62 / - - 45 AS col2
----
1

query I rowsort
SELECT 33 * 78 AS col1
----
2574

query I rowsort
SELECT 69 + 19
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-8708
SELECT ALL + - ( 84 ) + - + MIN( DISTINCT + 87 ) * + + 85 - 6 AS col2
----
-7485

skipif mysql # not compatible
query I rowsort label-8708
SELECT ALL + - ( 84 ) + - + MIN ( DISTINCT + 87 ) * + + 85 - 6 AS col2
----
-7485

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-8709
SELECT CAST( NULL AS DECIMAL ) AS col2, + NULLIF ( - 35, CASE 34 WHEN - 92 + + CAST( NULL AS DECIMAL ) THEN 42 ELSE - - MIN( 42 ) END * + 62 * - - CAST( NULL AS SIGNED ) / - MAX( 42 ) ) * + 9 * 25 AS col2
----
NULL
-7875

skipif mysql # not compatible
query II rowsort label-8709
SELECT CAST ( NULL AS REAL ) AS col2, + NULLIF ( - 35, CASE 34 WHEN - 92 + + CAST ( NULL AS REAL ) THEN 42 ELSE - - MIN ( 42 ) END * + 62 * - - CAST ( NULL AS INTEGER ) / - MAX ( 42 ) ) * + 9 * 25 AS col2
----
NULL
-7875

query I rowsort
SELECT + 27 + 31 + - + 92 * + 43 col0
----
-3898

query I rowsort
SELECT ALL - 83 + - 94 AS col2
----
-177

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8712
SELECT COALESCE ( + COUNT( * ), - - 55, CAST( + AVG ( + COALESCE ( + - 79, + - 29 * + + 32 * - 61 + 79 ) ) AS SIGNED ), - 86 ) * 88 col2
----
88

skipif mysql # not compatible
query I rowsort label-8712
SELECT COALESCE ( + COUNT ( * ), - - 55, CAST ( + AVG ( + COALESCE ( + - 79, + - 29 * + + 32 * - 61 + 79 ) ) AS INTEGER ), - 86 ) * 88 col2
----
88

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8713
SELECT ALL - + COUNT( * ) DIV + COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-8713
SELECT ALL - + COUNT ( * ) / + COUNT ( * )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8714
SELECT DISTINCT + + ( + COUNT( ALL ( + 93 ) ) ) + + 95
----
96

skipif mysql # not compatible
query I rowsort label-8714
SELECT DISTINCT + + ( + COUNT ( ALL ( + 93 ) ) ) + + 95
----
96

query I rowsort
SELECT ALL - + 40 + + 45
----
5

query I rowsort
SELECT 28 * 67
----
1876

onlyif mysql # aggregate syntax: 
query I rowsort label-8717
SELECT - SUM( + 18 )
----
-18

skipif mysql # not compatible
query I rowsort label-8717
SELECT - SUM ( + 18 )
----
-18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8718
SELECT - 60 - - COUNT( * ) + 26 DIV + 72 * + + ( - - 41 )
----
-59

skipif mysql # not compatible
query I rowsort label-8718
SELECT - 60 - - COUNT ( * ) + 26 / + 72 * + + ( - - 41 )
----
-59

query I rowsort
SELECT - 73 - 54 + + 83 * 26 AS col2
----
2031

query I rowsort
SELECT ( + 53 )
----
53

query I rowsort
SELECT + ( + - 61 ) AS col2
----
-61

onlyif mysql # DIV for integer division: 
query I rowsort label-8722
SELECT 67 + + 97 DIV 13
----
74

skipif mysql # not compatible
query I rowsort label-8722
SELECT 67 + + 97 / 13
----
74

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8723
SELECT ALL + 19 * 18 * + 3 * + 84 - + 82 AS col2, + 10 - - CAST( - 56 AS SIGNED ) DIV + 56 + 13 * + 74
----
86102
971

skipif mysql # not compatible
query II rowsort label-8723
SELECT ALL + 19 * 18 * + 3 * + 84 - + 82 AS col2, + 10 - - CAST ( - 56 AS INTEGER ) / + 56 + 13 * + 74
----
86102
971

query I rowsort
SELECT + NULLIF ( - + 57, AVG ( + 24 ) ) AS col2
----
-57

onlyif mysql # aggregate syntax: 
query II rowsort label-8725
SELECT DISTINCT + + 84, + MAX( 78 ) AS col0
----
84
78

skipif mysql # not compatible
query II rowsort label-8725
SELECT DISTINCT + + 84, + MAX ( 78 ) AS col0
----
84
78

query I rowsort
SELECT + 69 * - + 81 - - 94
----
-5495

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8727
SELECT - 94 / - CAST( NULL AS SIGNED ) * 25 / - COUNT( * ) / + + 41 * + 28 * ( + 30 ) - + 0 - - COALESCE ( + + 36, + - 34 + 39 + - + 54, 20 + + ( 63 ) * COUNT( 3 ) + - - 23 + - - ( - CAST( NULL AS SIGNED ) ) * + 54 + - 66 ) + 32
----
NULL

skipif mysql # not compatible
query I rowsort label-8727
SELECT - 94 / - CAST ( NULL AS INTEGER ) * 25 / - COUNT ( * ) / + + 41 * + 28 * ( + 30 ) - + 0 - - COALESCE ( + + 36, + - 34 + 39 + - + 54, 20 + + ( 63 ) * COUNT ( 3 ) + - - 23 + - - ( - CAST ( NULL AS INTEGER ) ) * + 54 + - 66 ) + 32
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8728
SELECT ALL + ( - SUM( DISTINCT - + 41 ) )
----
41

skipif mysql # not compatible
query I rowsort label-8728
SELECT ALL + ( - SUM ( DISTINCT - + 41 ) )
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-8729
SELECT COALESCE ( + ( 66 ), + COUNT( * ) * - 7 + - - 26 ) col1
----
66

skipif mysql # not compatible
query I rowsort label-8729
SELECT COALESCE ( + ( 66 ), + COUNT ( * ) * - 7 + - - 26 ) col1
----
66

onlyif mysql # DIV for integer division: 
query I rowsort label-8730
SELECT - 4 DIV - + 93 * 40 col0
----
0

skipif mysql # not compatible
query I rowsort label-8730
SELECT - 4 / - + 93 * 40 col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8731
SELECT + 9 * - + SUM( - + 16 ) * + 99
----
14256

skipif mysql # not compatible
query I rowsort label-8731
SELECT + 9 * - + SUM ( - + 16 ) * + 99
----
14256

query I rowsort
SELECT ALL 15 * + 31
----
465

onlyif mysql # aggregate syntax: 
query I rowsort label-8733
SELECT COUNT( + + 91 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8733
SELECT COUNT ( + + 91 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-8734
SELECT COUNT( + + 46 ) AS col0, 50
----
1
50

skipif mysql # not compatible
query II rowsort label-8734
SELECT COUNT ( + + 46 ) AS col0, 50
----
1
50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8735
SELECT DISTINCT + CAST( + + CAST( NULL AS SIGNED ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8735
SELECT DISTINCT + CAST ( + + CAST ( NULL AS INTEGER ) AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8736
SELECT COUNT( 0 ) AS col2, 89
----
1
89

skipif mysql # not compatible
query II rowsort label-8736
SELECT COUNT ( 0 ) AS col2, 89
----
1
89

onlyif mysql # aggregate syntax: 
query I rowsort label-8737
SELECT + 43 * COUNT( * )
----
43

skipif mysql # not compatible
query I rowsort label-8737
SELECT + 43 * COUNT ( * )
----
43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8738
SELECT AVG ( - ( - + CASE + + 46 WHEN + - 97 * CAST( NULL AS SIGNED ) THEN NULL WHEN - 89 - + 95 / 55 + + 20 THEN - 17 WHEN + 9 * - + 37 THEN - 77 * + - 94 END ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8738
SELECT AVG ( - ( - + CASE + + 46 WHEN + - 97 * CAST ( NULL AS INTEGER ) THEN NULL WHEN - 89 - + 95 / 55 + + 20 THEN - 17 WHEN + 9 * - + 37 THEN - 77 * + - 94 END ) ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8739
SELECT + 20 * - 97 * 59 * 26 * NULLIF ( + 72, - CAST( + 39 AS SIGNED ) ) AS col2
----
-214269120

skipif mysql # not compatible
query I rowsort label-8739
SELECT + 20 * - 97 * 59 * 26 * NULLIF ( + 72, - CAST ( + 39 AS INTEGER ) ) AS col2
----
-214269120

onlyif mysql # aggregate syntax: 
query I rowsort label-8740
SELECT MIN( - 26 ) AS col0
----
-26

skipif mysql # not compatible
query I rowsort label-8740
SELECT MIN ( - 26 ) AS col0
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-8741
SELECT ALL ( + + COALESCE ( - - 99, 66 * - - 8 + + 34 - + + 55 + 63 + + SUM( + 50 ) * - + 99 ) ) + - + 98 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8741
SELECT ALL ( + + COALESCE ( - - 99, 66 * - - 8 + + 34 - + + 55 + 63 + + SUM ( + 50 ) * - + 99 ) ) + - + 98 AS col2
----
1

query I rowsort
SELECT + 7 + + 51
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-8743
SELECT + COALESCE ( + - 29, COUNT( * ) * - + 66 ) * + COUNT( * ) AS col2
----
-29

skipif mysql # not compatible
query I rowsort label-8743
SELECT + COALESCE ( + - 29, COUNT ( * ) * - + 66 ) * + COUNT ( * ) AS col2
----
-29

query I rowsort
SELECT + 84 + 14 - + 95 * - 63 AS col1
----
6083

onlyif mysql # aggregate syntax: 
query II rowsort label-8745
SELECT ALL + 87 + + - 94 AS col0, 12 * CASE - COUNT( * ) WHEN + - 86 * COUNT( * ) THEN 89 WHEN COUNT( * ) THEN NULL END
----
-7
NULL

skipif mysql # not compatible
query II rowsort label-8745
SELECT ALL + 87 + + - 94 AS col0, 12 * CASE - COUNT ( * ) WHEN + - 86 * COUNT ( * ) THEN 89 WHEN COUNT ( * ) THEN NULL END
----
-7
NULL

query I rowsort
SELECT + + 9 * 65 + - 85 + - - 24 * + 54
----
1796

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8747
SELECT ALL + 17 + - CAST( + - 99 AS SIGNED )
----
116

skipif mysql # not compatible
query I rowsort label-8747
SELECT ALL + 17 + - CAST ( + - 99 AS INTEGER )
----
116

onlyif mysql # aggregate syntax: 
query I rowsort label-8748
SELECT DISTINCT + MIN( - 87 ) + COUNT( * ) col0
----
-86

skipif mysql # not compatible
query I rowsort label-8748
SELECT DISTINCT + MIN ( - 87 ) + COUNT ( * ) col0
----
-86

query I rowsort
SELECT ALL 47 * + 32 + 24 * + 13 AS col1
----
1816

onlyif mysql # aggregate syntax: 
query I rowsort label-8750
SELECT - 91 + SUM( DISTINCT + 44 ) + - 81 - 26
----
-154

skipif mysql # not compatible
query I rowsort label-8750
SELECT - 91 + SUM ( DISTINCT + 44 ) + - 81 - 26
----
-154

query I rowsort
SELECT ALL 61 - + 15 col2
----
46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8752
SELECT - COALESCE ( + 80, COUNT( * ) * - + COALESCE ( - - ( + 64 ), 88 ) + - 87 - - COUNT( * ) DIV 62 * + 53, + + 69 ) AS col2
----
-80

skipif mysql # not compatible
query I rowsort label-8752
SELECT - COALESCE ( + 80, COUNT ( * ) * - + COALESCE ( - - ( + 64 ), 88 ) + - 87 - - COUNT ( * ) / 62 * + 53, + + 69 ) AS col2
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-8753
SELECT - MIN( + ( - - 52 ) )
----
-52

skipif mysql # not compatible
query I rowsort label-8753
SELECT - MIN ( + ( - - 52 ) )
----
-52

query I rowsort
SELECT DISTINCT - CASE + COALESCE ( + 13, + 88 / ( - 73 ), 73 * - + 18 ) WHEN 82 + - 85 THEN + 63 WHEN - 51 THEN - 62 + + + 1 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8755
SELECT + + 71 + - COUNT( * ) AS col1
----
70

skipif mysql # not compatible
query I rowsort label-8755
SELECT + + 71 + - COUNT ( * ) AS col1
----
70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8756
SELECT ALL NULLIF ( - + 10, + MIN( ALL + 38 ) ), + CASE - - 33 WHEN - CASE + 0 WHEN 43 + CASE + COUNT( * ) WHEN - - CAST( + ( - 95 ) AS SIGNED ) THEN - + CAST( 2 AS SIGNED ) * - 71 + 3 ELSE - - MIN( - + 13 ) END + + - 41 THEN - 61 ELSE COUNT( * ) * + - COUNT( * ) END - + 57 + - - 49 * 51 THEN 52 WHEN 48 * CAST( NULL AS SIGNED ) THEN NULL END AS col2
----
-10
NULL

skipif mysql # not compatible
query II rowsort label-8756
SELECT ALL NULLIF ( - + 10, + MIN ( ALL + 38 ) ), + CASE - - 33 WHEN - CASE + 0 WHEN 43 + CASE + COUNT ( * ) WHEN - - CAST ( + ( - 95 ) AS INTEGER ) THEN - + CAST ( 2 AS INTEGER ) * - 71 + 3 ELSE - - MIN ( - + 13 ) END + + - 41 THEN - 61 ELSE COUNT ( * ) * + - COUNT ( * ) END - + 57 + - - 49 * 51 THEN 52 WHEN 48 * CAST ( NULL AS INTEGER ) THEN NULL END AS col2
----
-10
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-8757
SELECT ALL - 46 AS col1, 52 DIV 34 * - 98
----
-46
-98

skipif mysql # not compatible
query II rowsort label-8757
SELECT ALL - 46 AS col1, 52 / 34 * - 98
----
-46
-98

query I rowsort
SELECT - + 91 - 50 col1
----
-141

query I rowsort
SELECT + + 21 + - NULLIF ( + 49, - 1 + + ( - - 77 ) )
----
-28

query I rowsort
SELECT ALL + 10 * ( 63 )
----
630

query I rowsort
SELECT - 80 * 14 AS col0
----
-1120

onlyif mysql # aggregate syntax: 
query I rowsort label-8762
SELECT ALL - COALESCE ( + COUNT( * ), 18 )
----
-1

skipif mysql # not compatible
query I rowsort label-8762
SELECT ALL - COALESCE ( + COUNT ( * ), 18 )
----
-1

query I rowsort
SELECT ALL + 50 * 38 AS col1
----
1900

query I rowsort
SELECT - + 39 * 75
----
-2925

onlyif mysql # aggregate syntax: 
query I rowsort label-8765
SELECT ALL + - SUM( - 72 )
----
72

skipif mysql # not compatible
query I rowsort label-8765
SELECT ALL + - SUM ( - 72 )
----
72

onlyif mysql # DIV for integer division: 
query I rowsort label-8766
SELECT + 90 DIV + + 40 + - 93 * - ( 78 ) AS col2
----
7256

skipif mysql # not compatible
query I rowsort label-8766
SELECT + 90 / + + 40 + - 93 * - ( 78 ) AS col2
----
7256

onlyif mysql # DIV for integer division: 
query I rowsort label-8767
SELECT - 98 + - 35 DIV - + 74 AS col0
----
-98

skipif mysql # not compatible
query I rowsort label-8767
SELECT - 98 + - 35 / - + 74 AS col0
----
-98

query I rowsort
SELECT DISTINCT - 48 * 90 * - 17 * + - 92
----
-6756480

onlyif mysql # DIV for integer division: 
query I rowsort label-8769
SELECT ALL + 92 DIV + 50 + 0
----
1

skipif mysql # not compatible
query I rowsort label-8769
SELECT ALL + 92 / + 50 + 0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8770
SELECT ALL + COUNT( ALL + 98 ) * - + 16 + - 49 * - + 44 AS col2
----
2140

skipif mysql # not compatible
query I rowsort label-8770
SELECT ALL + COUNT ( ALL + 98 ) * - + 16 + - 49 * - + 44 AS col2
----
2140

query I rowsort
SELECT DISTINCT + 76 * - - 53 + 8
----
4036

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8772
SELECT ALL + CAST( - NULLIF ( + 5, - 80 ) AS SIGNED )
----
-5

skipif mysql # not compatible
query I rowsort label-8772
SELECT ALL + CAST ( - NULLIF ( + 5, - 80 ) AS INTEGER )
----
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8773
SELECT - AVG ( ALL - 74 ) / - 31 / - CASE 26 WHEN - 73 - - - COUNT( * ) THEN + 56 WHEN + MIN( DISTINCT + CAST( 83 AS SIGNED ) ) * ( + 91 ) * - + 40 * - - 19 - 96 + - 97 THEN - ( - COALESCE ( - COALESCE ( + 61, - NULLIF ( 34, + 47 ) * 39 ), - + 85 - + - 22 + - 14 * - 78 * - 46, + 73 * 48 ) ) END * - NULLIF ( 27 * 50, 74 * 18 + 9 * 43 ) + 42 * - 51
----
NULL

skipif mysql # not compatible
query I rowsort label-8773
SELECT - AVG ( ALL - 74 ) / - 31 / - CASE 26 WHEN - 73 - - - COUNT ( * ) THEN + 56 WHEN + MIN ( DISTINCT + CAST ( 83 AS INTEGER ) ) * ( + 91 ) * - + 40 * - - 19 - 96 + - 97 THEN - ( - COALESCE ( - COALESCE ( + 61, - NULLIF ( 34, + 47 ) * 39 ), - + 85 - + - 22 + - 14 * - 78 * - 46, + 73 * 48 ) ) END * - NULLIF ( 27 * 50, 74 * 18 + 9 * 43 ) + 42 * - 51
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8774
SELECT - 32 * + 1 DIV SUM( DISTINCT 49 ) DIV + 61 + - 48 + + 95 AS col2
----
47

skipif mysql # not compatible
query I rowsort label-8774
SELECT - 32 * + 1 / SUM ( DISTINCT 49 ) / + 61 + - 48 + + 95 AS col2
----
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8775
SELECT DISTINCT NULLIF ( + - 71, - 49 * + CAST( - + 84 AS SIGNED ) * - COUNT( * ) ) * + - 60 + - + 11
----
4249

skipif mysql # not compatible
query I rowsort label-8775
SELECT DISTINCT NULLIF ( + - 71, - 49 * + CAST ( - + 84 AS INTEGER ) * - COUNT ( * ) ) * + - 60 + - + 11
----
4249

query I rowsort
SELECT + ( - 5 )
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-8777
SELECT COALESCE ( COUNT( * ), + 94 + + 57 )
----
1

skipif mysql # not compatible
query I rowsort label-8777
SELECT COALESCE ( COUNT ( * ), + 94 + + 57 )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-8778
SELECT ALL NULLIF ( + 56, - 73 * + 14 ) * - - 56 * + + 27 + - 9 * + 8 DIV + 94 + + + 46
----
84718

skipif mysql # not compatible
query I rowsort label-8778
SELECT ALL NULLIF ( + 56, - 73 * + 14 ) * - - 56 * + + 27 + - 9 * + 8 / + 94 + + + 46
----
84718

query I rowsort
SELECT DISTINCT + 86 * 11
----
946

onlyif mysql # aggregate syntax: 
query I rowsort label-8780
SELECT DISTINCT - ( + + COUNT( * ) ) * + - 9 + - 18
----
-9

skipif mysql # not compatible
query I rowsort label-8780
SELECT DISTINCT - ( + + COUNT ( * ) ) * + - 9 + - 18
----
-9

query I rowsort
SELECT + 53 * + 10
----
530

onlyif mysql # aggregate syntax: 
query II rowsort label-8782
SELECT - 19 * - 11, + 52 * - NULLIF ( + + MIN( DISTINCT + 42 ), + + 30 ) AS col0
----
209
-2184

skipif mysql # not compatible
query II rowsort label-8782
SELECT - 19 * - 11, + 52 * - NULLIF ( + + MIN ( DISTINCT + 42 ), + + 30 ) AS col0
----
209
-2184

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8783
SELECT ALL - COUNT( * ) DIV - 97, - 67 col2
----
0
-67

skipif mysql # not compatible
query II rowsort label-8783
SELECT ALL - COUNT ( * ) / - 97, - 67 col2
----
0
-67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8784
SELECT - - 0 DIV - CASE 59 WHEN - + 59 + - - 33 * - - 22 * 91 DIV - 40 * + 33 THEN - ( + 95 ) * COUNT( * ) + - 35 + 79 * - 58 DIV - 17 ELSE - - MIN( + 61 ) + - - 44 END * MAX( DISTINCT COALESCE ( - + 23, + + 79 ) ) * + ( + + COALESCE ( COUNT( ALL 36 ), - 24 * - 74, COALESCE ( COUNT( + 13 ), - ( - 60 ) ) * 36, + 5 ) ) * COUNT( * ) - COUNT( * ) * 87 AS col1
----
-87

skipif mysql # not compatible
query I rowsort label-8784
SELECT - - 0 / - CASE 59 WHEN - + 59 + - - 33 * - - 22 * 91 / - 40 * + 33 THEN - ( + 95 ) * COUNT ( * ) + - 35 + 79 * - 58 / - 17 ELSE - - MIN ( + 61 ) + - - 44 END * MAX ( DISTINCT COALESCE ( - + 23, + + 79 ) ) * + ( + + COALESCE ( COUNT ( ALL 36 ), - 24 * - 74, COALESCE ( COUNT ( + 13 ), - ( - 60 ) ) * 36, + 5 ) ) * COUNT ( * ) - COUNT ( * ) * 87 AS col1
----
-87

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8785
SELECT - - CASE - 82 WHEN + + 11 * CAST( + 78 AS DECIMAL ) + + + 78 * + 72 + + 11 * + - COUNT( * ) THEN - 3 ELSE 15 END AS col1
----
15

skipif mysql # not compatible
query I rowsort label-8785
SELECT - - CASE - 82 WHEN + + 11 * CAST ( + 78 AS REAL ) + + + 78 * + 72 + + 11 * + - COUNT ( * ) THEN - 3 ELSE 15 END AS col1
----
15

query I rowsort
SELECT ALL + ( - 2 ) AS col1
----
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-8787
SELECT + 12 * - 88 DIV - 82 + - 45 AS col0
----
-33

skipif mysql # not compatible
query I rowsort label-8787
SELECT + 12 * - 88 / - 82 + - 45 AS col0
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-8788
SELECT DISTINCT + COUNT( * ) * SUM( + - 12 ) * COUNT( * )
----
-12

skipif mysql # not compatible
query I rowsort label-8788
SELECT DISTINCT + COUNT ( * ) * SUM ( + - 12 ) * COUNT ( * )
----
-12

onlyif mysql # aggregate syntax: 
query II rowsort label-8789
SELECT DISTINCT 66 * 58 * ( + NULLIF ( 78, - COUNT( * ) ) ) * - 48 AS col1, - 74
----
-14332032
-74

skipif mysql # not compatible
query II rowsort label-8789
SELECT DISTINCT 66 * 58 * ( + NULLIF ( 78, - COUNT ( * ) ) ) * - 48 AS col1, - 74
----
-14332032
-74

onlyif mysql # aggregate syntax: 
query II rowsort label-8790
SELECT + COUNT( * ) * + - 74 AS col1, - 78 + 29 - + 87
----
-74
-136

skipif mysql # not compatible
query II rowsort label-8790
SELECT + COUNT ( * ) * + - 74 AS col1, - 78 + 29 - + 87
----
-74
-136

query I rowsort
SELECT + 14 * + - 3
----
-42

onlyif mysql # aggregate syntax: 
query II rowsort label-8792
SELECT 17 AS col1, CASE 62 WHEN 76 * + 3 + - 26 + + 38 + - SUM( DISTINCT 37 ) * - 4 * + + COUNT( * ) * + 51 + + 74 THEN - + AVG ( 70 ) END AS col1
----
17
NULL

skipif mysql # not compatible
query II rowsort label-8792
SELECT 17 AS col1, CASE 62 WHEN 76 * + 3 + - 26 + + 38 + - SUM ( DISTINCT 37 ) * - 4 * + + COUNT ( * ) * + 51 + + 74 THEN - + AVG ( 70 ) END AS col1
----
17
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8793
SELECT DISTINCT COUNT( * ) + - - COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-8793
SELECT DISTINCT COUNT ( * ) + - - COUNT ( * )
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8794
SELECT DISTINCT 97 + - CASE + + 77 WHEN - 7 THEN NULL ELSE + 66 * - 53 * 99 - + 94 END * - MIN( DISTINCT COALESCE ( - 23, + 46 DIV + 26 + + + 35, - 99 * - 23 + + 60 + - 40 ) ), + 71 AS col1
----
7967205
71

skipif mysql # not compatible
query II rowsort label-8794
SELECT DISTINCT 97 + - CASE + + 77 WHEN - 7 THEN NULL ELSE + 66 * - 53 * 99 - + 94 END * - MIN ( DISTINCT COALESCE ( - 23, + 46 / + 26 + + + 35, - 99 * - 23 + + 60 + - 40 ) ), + 71 AS col1
----
7967205
71

onlyif mysql # aggregate syntax: 
query I rowsort label-8795
SELECT ALL + ( + - NULLIF ( - + 90, + 33 ) ) + + 71 * - COUNT( * )
----
19

skipif mysql # not compatible
query I rowsort label-8795
SELECT ALL + ( + - NULLIF ( - + 90, + 33 ) ) + + 71 * - COUNT ( * )
----
19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8796
SELECT 34 * - + SUM( ALL - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8796
SELECT 34 * - + SUM ( ALL - CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT DISTINCT ( + ( - 95 ) ) + - 86 * - 38 * - 70
----
-228855

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8798
SELECT DISTINCT - ( + - AVG ( DISTINCT + + CAST( NULL AS SIGNED ) ) ) * COALESCE ( - + ( 90 ), - - 70 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8798
SELECT DISTINCT - ( + - AVG ( DISTINCT + + CAST ( NULL AS INTEGER ) ) ) * COALESCE ( - + ( 90 ), - - 70 ) AS col1
----
NULL

query I rowsort
SELECT ALL + 62 + - 20
----
42

query I rowsort
SELECT 33 * - 48
----
-1584

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8801
SELECT 69 * - COALESCE ( + COUNT( + + 52 ), SUM( ALL - 83 ) * SUM( DISTINCT CAST( - 31 AS SIGNED ) ) * - 25 ) AS col0
----
-69

skipif mysql # not compatible
query I rowsort label-8801
SELECT 69 * - COALESCE ( + COUNT ( + + 52 ), SUM ( ALL - 83 ) * SUM ( DISTINCT CAST ( - 31 AS INTEGER ) ) * - 25 ) AS col0
----
-69

query I rowsort
SELECT DISTINCT + 90 + 58 AS col0
----
148

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8803
SELECT ALL 90 + - 99 + + 25 + - + COUNT( * ) - COUNT( * ) DIV + 89, 82 * + 10 AS col2
----
15
820

skipif mysql # not compatible
query II rowsort label-8803
SELECT ALL 90 + - 99 + + 25 + - + COUNT ( * ) - COUNT ( * ) / + 89, 82 * + 10 AS col2
----
15
820

query I rowsort
SELECT ALL - COALESCE ( - - 2, 59 + + 43 * + 12 ) AS col2
----
-2

query I rowsort
SELECT DISTINCT - 45 - + + 45
----
-90

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8806
SELECT ALL - 27 - - 14 DIV 83 AS col0, - 90 + 21 + CAST( NULL AS SIGNED )
----
-27
NULL

skipif mysql # not compatible
query II rowsort label-8806
SELECT ALL - 27 - - 14 / 83 AS col0, - 90 + 21 + CAST ( NULL AS INTEGER )
----
-27
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8807
SELECT DISTINCT - 75, + 57 * - - NULLIF ( - 49, + 21 + - 41 * 51 * 64 * - 46 * - - COUNT( * ) ) * - 26 + + + 72 AS col2
----
-75
72690

skipif mysql # not compatible
query II rowsort label-8807
SELECT DISTINCT - 75, + 57 * - - NULLIF ( - 49, + 21 + - 41 * 51 * 64 * - 46 * - - COUNT ( * ) ) * - 26 + + + 72 AS col2
----
-75
72690

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8808
SELECT - 13 * + 80 * + 15 - + - ( - 61 ) * + 35 + - CASE 86 WHEN - 9 THEN + CAST( NULL AS SIGNED ) WHEN - - COALESCE ( - 42, 67, SUM( - + 11 ) * - + COUNT( * ) ) THEN + 70 ELSE NULL END + + 54 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8808
SELECT - 13 * + 80 * + 15 - + - ( - 61 ) * + 35 + - CASE 86 WHEN - 9 THEN + CAST ( NULL AS INTEGER ) WHEN - - COALESCE ( - 42, 67, SUM ( - + 11 ) * - + COUNT ( * ) ) THEN + 70 ELSE NULL END + + 54 AS col0
----
NULL

query I rowsort
SELECT - CASE - - 98 WHEN + + 75 THEN + - 56 * - 46 + 79 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8810
SELECT + COUNT( ALL + 11 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8810
SELECT + COUNT ( ALL + 11 ) AS col0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8811
SELECT + 87 * + 65 * + - CASE 2 WHEN - - 29 THEN - CAST( + 22 AS SIGNED ) WHEN 77 * NULLIF ( - 35, + + 46 ) THEN NULL ELSE 85 * COALESCE ( 32, - 61 ) + 0 - - - 62 END col2
----
-15030990

skipif mysql # not compatible
query I rowsort label-8811
SELECT + 87 * + 65 * + - CASE 2 WHEN - - 29 THEN - CAST ( + 22 AS INTEGER ) WHEN 77 * NULLIF ( - 35, + + 46 ) THEN NULL ELSE 85 * COALESCE ( 32, - 61 ) + 0 - - - 62 END col2
----
-15030990

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8812
SELECT 26 + - CAST( - 76 AS SIGNED ) col2
----
102

skipif mysql # not compatible
query I rowsort label-8812
SELECT 26 + - CAST ( - 76 AS INTEGER ) col2
----
102

onlyif mysql # aggregate syntax: 
query I rowsort label-8813
SELECT ALL + - COUNT( * ) * + 5
----
-5

skipif mysql # not compatible
query I rowsort label-8813
SELECT ALL + - COUNT ( * ) * + 5
----
-5

query I rowsort
SELECT DISTINCT + - 4 * + 43 * - ( + - 88 ) + - 7
----
-15143

onlyif mysql # aggregate syntax: 
query I rowsort label-8815
SELECT ALL + + 29 * COUNT( * ) * - 16
----
-464

skipif mysql # not compatible
query I rowsort label-8815
SELECT ALL + + 29 * COUNT ( * ) * - 16
----
-464

query II rowsort
SELECT ALL 25 AS col1, + 37 AS col1
----
25
37

query I rowsort
SELECT ALL NULLIF ( - - 21, - - 8 ) AS col1
----
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8818
SELECT ALL 64 AS col2, + 4 + + ( - - ( - 97 ) ) + - ( + + NULLIF ( 20, - - CAST( NULL AS SIGNED ) ) ) - + COUNT( * ) + - 32
----
64
-146

skipif mysql # not compatible
query II rowsort label-8818
SELECT ALL 64 AS col2, + 4 + + ( - - ( - 97 ) ) + - ( + + NULLIF ( 20, - - CAST ( NULL AS INTEGER ) ) ) - + COUNT ( * ) + - 32
----
64
-146

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8819
SELECT + CAST( NULL AS SIGNED ) * COUNT( * ) * - - 33 * COUNT( * ) / - 29 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8819
SELECT + CAST ( NULL AS INTEGER ) * COUNT ( * ) * - - 33 * COUNT ( * ) / - 29 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8820
SELECT 72 DIV - + 76 * - COALESCE ( - + 69, - + COUNT( * ), - COUNT( * ) ) AS col0, 69 DIV + 61 AS col1
----
0
1

skipif mysql # not compatible
query II rowsort label-8820
SELECT 72 / - + 76 * - COALESCE ( - + 69, - + COUNT ( * ), - COUNT ( * ) ) AS col0, 69 / + 61 AS col1
----
0
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8821
SELECT DISTINCT 68 DIV COUNT( * )
----
68

skipif mysql # not compatible
query I rowsort label-8821
SELECT DISTINCT 68 / COUNT ( * )
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-8822
SELECT ALL - 58 + + + COUNT( * ) + + 54
----
-3

skipif mysql # not compatible
query I rowsort label-8822
SELECT ALL - 58 + + + COUNT ( * ) + + 54
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8823
SELECT DISTINCT + COUNT( * ) DIV + 89 - + 94 + + + 62 AS col0, CAST( COUNT( * ) AS SIGNED ) * NULLIF ( 23, + 6 * 61 - - 38 * 59 ) + + 93 + - - 32 AS col1
----
-32
148

skipif mysql # not compatible
query II rowsort label-8823
SELECT DISTINCT + COUNT ( * ) / + 89 - + 94 + + + 62 AS col0, CAST ( COUNT ( * ) AS INTEGER ) * NULLIF ( 23, + 6 * 61 - - 38 * 59 ) + + 93 + - - 32 AS col1
----
-32
148

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8824
SELECT CAST( NULL AS SIGNED ) + + - 69 * - 95 * + - COUNT( * ) * + CAST( NULL AS SIGNED ) * - 98
----
NULL

skipif mysql # not compatible
query I rowsort label-8824
SELECT CAST ( NULL AS INTEGER ) + + - 69 * - 95 * + - COUNT ( * ) * + CAST ( NULL AS INTEGER ) * - 98
----
NULL

query I rowsort
SELECT 21 * + + 56 + + 48 - + 23 + + 14
----
1215

query I rowsort
SELECT 65 + + 55
----
120

query I rowsort
SELECT ALL 95 * + 26 * + 35
----
86450

onlyif mysql # DIV for integer division: 
query I rowsort label-8828
SELECT 52 DIV + 13 + + 87 AS col2
----
91

skipif mysql # not compatible
query I rowsort label-8828
SELECT 52 / + 13 + + 87 AS col2
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-8829
SELECT DISTINCT - 93 + - - COUNT( * ) * - 9 AS col1
----
-102

skipif mysql # not compatible
query I rowsort label-8829
SELECT DISTINCT - 93 + - - COUNT ( * ) * - 9 AS col1
----
-102

onlyif mysql # aggregate syntax: 
query I rowsort label-8830
SELECT ALL + COUNT( * ) + CASE COUNT( * ) WHEN + 67 * + ( - 31 ) THEN NULL WHEN + 61 * - + 41 * COUNT( * ) THEN 30 END + + 2 / - - 76 * - 52 + - 65 / 75 + + - 86 * - - CASE 90 WHEN + - COUNT( * ) THEN - 80 + - + 55 * - 14 ELSE COUNT( * ) + 67 + + - ( + NULLIF ( - + MAX( DISTINCT - 4 ), + CASE 19 WHEN - SUM( DISTINCT 96 ) * - 31 THEN - MIN( - 41 ) ELSE NULL END + - COUNT( * ) ) ) * + 32 * 84 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8830
SELECT ALL + COUNT ( * ) + CASE COUNT ( * ) WHEN + 67 * + ( - 31 ) THEN NULL WHEN + 61 * - + 41 * COUNT ( * ) THEN 30 END + + 2 / - - 76 * - 52 + - 65 / 75 + + - 86 * - - CASE 90 WHEN + - COUNT ( * ) THEN - 80 + - + 55 * - 14 ELSE COUNT ( * ) + 67 + + - ( + NULLIF ( - + MAX ( DISTINCT - 4 ), + CASE 19 WHEN - SUM ( DISTINCT 96 ) * - 31 THEN - MIN ( - 41 ) ELSE NULL END + - COUNT ( * ) ) ) * + 32 * 84 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8831
SELECT DISTINCT ( + 59 ) + - + ( - + 64 ), CAST( - ( - 4 ) AS SIGNED ) AS col0
----
123
4

skipif mysql # not compatible
query II rowsort label-8831
SELECT DISTINCT ( + 59 ) + - + ( - + 64 ), CAST ( - ( - 4 ) AS INTEGER ) AS col0
----
123
4

onlyif mysql # aggregate syntax: 
query I rowsort label-8832
SELECT DISTINCT CASE - 34 WHEN + + ( 48 ) THEN - COUNT( * ) ELSE NULL END + + 72
----
NULL

skipif mysql # not compatible
query I rowsort label-8832
SELECT DISTINCT CASE - 34 WHEN + + ( 48 ) THEN - COUNT ( * ) ELSE NULL END + + 72
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8833
SELECT ALL ( - + 86 ) * - 28 + COUNT( * ) col2, - COUNT( * ) AS col2
----
2409
-1

skipif mysql # not compatible
query II rowsort label-8833
SELECT ALL ( - + 86 ) * - 28 + COUNT ( * ) col2, - COUNT ( * ) AS col2
----
2409
-1

query I rowsort
SELECT DISTINCT + 38 * + NULLIF ( 16, - 94 ) + - + 55 * 32
----
-1152

onlyif mysql # aggregate syntax: 
query I rowsort label-8835
SELECT MAX( ALL 63 )
----
63

skipif mysql # not compatible
query I rowsort label-8835
SELECT MAX ( ALL 63 )
----
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8836
SELECT ALL + CAST( NULL AS SIGNED ) * + + COUNT( * ) + SUM( DISTINCT + 38 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8836
SELECT ALL + CAST ( NULL AS INTEGER ) * + + COUNT ( * ) + SUM ( DISTINCT + 38 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8837
SELECT ( + + 99 ) * + + COUNT( * ) * 8 * + 54 * 32
----
1368576

skipif mysql # not compatible
query I rowsort label-8837
SELECT ( + + 99 ) * + + COUNT ( * ) * 8 * + 54 * 32
----
1368576

onlyif mysql # aggregate syntax: 
query II rowsort label-8838
SELECT MIN( - - 52 ) AS col0, + 52 col0
----
52
52

skipif mysql # not compatible
query II rowsort label-8838
SELECT MIN ( - - 52 ) AS col0, + 52 col0
----
52
52

onlyif mysql # aggregate syntax: 
query I rowsort label-8839
SELECT COUNT( * ) + - COUNT( * ) - + 59 * + 33 AS col0
----
-1947

skipif mysql # not compatible
query I rowsort label-8839
SELECT COUNT ( * ) + - COUNT ( * ) - + 59 * + 33 AS col0
----
-1947

onlyif mysql # aggregate syntax: 
query II rowsort label-8840
SELECT ALL - 28 * + ( - COUNT( * ) ) - - - 3 + + - 60 AS col2, - 5 AS col0
----
-35
-5

skipif mysql # not compatible
query II rowsort label-8840
SELECT ALL - 28 * + ( - COUNT ( * ) ) - - - 3 + + - 60 AS col2, - 5 AS col0
----
-35
-5

query I rowsort
SELECT + 99 * - 19 + 95 + + 78 * - 0 * 43
----
-1786

onlyif mysql # DIV for integer division: 
query I rowsort label-8842
SELECT 71 DIV 9 * + 11
----
77

skipif mysql # not compatible
query I rowsort label-8842
SELECT 71 / 9 * + 11
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-8843
SELECT 42 * - 83 * - COUNT( * )
----
3486

skipif mysql # not compatible
query I rowsort label-8843
SELECT 42 * - 83 * - COUNT ( * )
----
3486

query I rowsort
SELECT 78 + + 13 AS col0
----
91

query I rowsort
SELECT ALL 36 * 32 AS col1
----
1152

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8846
SELECT 62 + NULLIF ( - 14, CAST( + 75 AS SIGNED ) ) * 93
----
-1240

skipif mysql # not compatible
query I rowsort label-8846
SELECT 62 + NULLIF ( - 14, CAST ( + 75 AS INTEGER ) ) * 93
----
-1240

query I rowsort
SELECT ALL + 64 * + 80
----
5120

query I rowsort
SELECT DISTINCT - - 31 * + - 0
----
0

query I rowsort
SELECT 8 * + + 74
----
592

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8850
SELECT 39 + - 85 * + 71 - 25 + - 34 / - 82 * - CAST( NULL AS SIGNED ) - + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8850
SELECT 39 + - 85 * + 71 - 25 + - 34 / - 82 * - CAST ( NULL AS INTEGER ) - + + COUNT ( * )
----
NULL

query I rowsort
SELECT - 85 * - 56
----
4760

onlyif mysql # aggregate syntax: 
query I rowsort label-8852
SELECT DISTINCT + ( + MAX( 38 ) ) * + + COUNT( + 76 )
----
38

skipif mysql # not compatible
query I rowsort label-8852
SELECT DISTINCT + ( + MAX ( 38 ) ) * + + COUNT ( + 76 )
----
38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8853
SELECT ALL + CAST( NULL AS SIGNED ) * 38 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8853
SELECT ALL + CAST ( NULL AS INTEGER ) * 38 AS col1
----
NULL

query I rowsort
SELECT - + 59 * 18 * 50
----
-53100

onlyif mysql # aggregate syntax: 
query I rowsort label-8855
SELECT ALL SUM( - 81 ) AS col2
----
-81

skipif mysql # not compatible
query I rowsort label-8855
SELECT ALL SUM ( - 81 ) AS col2
----
-81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8856
SELECT ALL + COALESCE ( + 53, + + CAST( AVG ( DISTINCT + + 57 ) AS SIGNED ) ) * SUM( - 75 ) * + SUM( DISTINCT + + 8 )
----
-31800

skipif mysql # not compatible
query I rowsort label-8856
SELECT ALL + COALESCE ( + 53, + + CAST ( AVG ( DISTINCT + + 57 ) AS INTEGER ) ) * SUM ( - 75 ) * + SUM ( DISTINCT + + 8 )
----
-31800

query I rowsort
SELECT DISTINCT + 20 + - - 51
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-8858
SELECT - MIN( DISTINCT - - 12 )
----
-12

skipif mysql # not compatible
query I rowsort label-8858
SELECT - MIN ( DISTINCT - - 12 )
----
-12

onlyif mysql # aggregate syntax: 
query II rowsort label-8859
SELECT ALL - 87 + - 84 + - 34 - - 61, + COUNT( * ) * + 28 AS col2
----
-144
28

skipif mysql # not compatible
query II rowsort label-8859
SELECT ALL - 87 + - 84 + - 34 - - 61, + COUNT ( * ) * + 28 AS col2
----
-144
28

query I rowsort
SELECT - 27 - 37
----
-64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8861
SELECT ALL - CAST( NULL AS SIGNED ) + 50 + 74 * - 51 - - 59 + + - COUNT( * ) + + + 71 + 47 + + CAST( - COUNT( * ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8861
SELECT ALL - CAST ( NULL AS INTEGER ) + 50 + 74 * - 51 - - 59 + + - COUNT ( * ) + + + 71 + 47 + + CAST ( - COUNT ( * ) AS INTEGER )
----
NULL

query I rowsort
SELECT ALL - 27 + + - 91 AS col0
----
-118

query I rowsort
SELECT ALL ( - 4 ) + + + ( 68 ) * + CASE + 54 WHEN - + 89 + - 42 * - 81 * - 71 THEN 81 WHEN + - 60 THEN - 53 + - - 14 END * + 57 * 34
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8864
SELECT - MIN( - 36 )
----
36

skipif mysql # not compatible
query I rowsort label-8864
SELECT - MIN ( - 36 )
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-8865
SELECT ALL MIN( 36 ) - - 51
----
87

skipif mysql # not compatible
query I rowsort label-8865
SELECT ALL MIN ( 36 ) - - 51
----
87

query I rowsort
SELECT - 91 + - ( - 4 )
----
-87

query II rowsort
SELECT ALL 89, - 14 AS col0
----
89
-14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8868
SELECT ALL + CAST( 19 AS SIGNED ) AS col2
----
19

skipif mysql # not compatible
query I rowsort label-8868
SELECT ALL + CAST ( 19 AS INTEGER ) AS col2
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-8869
SELECT + 61 * + + COUNT( * ) * - + 44 * + 12 AS col1
----
-32208

skipif mysql # not compatible
query I rowsort label-8869
SELECT + 61 * + + COUNT ( * ) * - + 44 * + 12 AS col1
----
-32208

onlyif mysql # aggregate syntax: 
query I rowsort label-8870
SELECT ALL 76 * 45 * + - COUNT( * ) - - - 85
----
-3505

skipif mysql # not compatible
query I rowsort label-8870
SELECT ALL 76 * 45 * + - COUNT ( * ) - - - 85
----
-3505

query I rowsort
SELECT + ( - 10 ) * + 9 * 44 AS col1
----
-3960

onlyif mysql # aggregate syntax: 
query I rowsort label-8872
SELECT + MIN( + - 33 ) AS col0
----
-33

skipif mysql # not compatible
query I rowsort label-8872
SELECT + MIN ( + - 33 ) AS col0
----
-33

query I rowsort
SELECT + 90 + - + 55
----
35

query I rowsort
SELECT + 19 - - 28 AS col0
----
47

query II rowsort
SELECT + 41 AS col2, 43 AS col1
----
41
43

query I rowsort
SELECT + - COALESCE ( - 14, + 22 )
----
14

query I rowsort
SELECT + - 38 * + 61 AS col2
----
-2318

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8878
SELECT ALL 5 DIV + 39 + - COUNT( * ) AS col2, 66 AS col0
----
-1
66

skipif mysql # not compatible
query II rowsort label-8878
SELECT ALL 5 / + 39 + - COUNT ( * ) AS col2, 66 AS col0
----
-1
66

onlyif mysql # DIV for integer division: 
query I rowsort label-8879
SELECT ALL 74 * 16 DIV 84 + - 73 AS col2
----
-59

skipif mysql # not compatible
query I rowsort label-8879
SELECT ALL 74 * 16 / 84 + - 73 AS col2
----
-59

query I rowsort
SELECT + + ( - 20 ) * 66 + + - 56 AS col0
----
-1376

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8881
SELECT - 71 DIV + 74 + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-8881
SELECT - 71 / + 74 + COUNT ( * )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8882
SELECT + + 11 + COUNT( * ) * + ( + 16 )
----
27

skipif mysql # not compatible
query I rowsort label-8882
SELECT + + 11 + COUNT ( * ) * + ( + 16 )
----
27

onlyif mysql # DIV for integer division: 
query II rowsort label-8883
SELECT + 82 AS col2, 22 + - 84 DIV + 29
----
82
20

skipif mysql # not compatible
query II rowsort label-8883
SELECT + 82 AS col2, 22 + - 84 / + 29
----
82
20

query II rowsort
SELECT DISTINCT - + 61 * + 52 * - - 19 col1, 55
----
-60268
55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8885
SELECT - - 31 - 78 + + COUNT( * ) DIV + 62
----
-47

skipif mysql # not compatible
query I rowsort label-8885
SELECT - - 31 - 78 + + COUNT ( * ) / + 62
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-8886
SELECT ALL - SUM( ALL 9 ) AS col1
----
-9

skipif mysql # not compatible
query I rowsort label-8886
SELECT ALL - SUM ( ALL 9 ) AS col1
----
-9

query I rowsort
SELECT + + 61 + + 39 + + 86 AS col2
----
186

onlyif mysql # aggregate syntax: 
query I rowsort label-8888
SELECT ALL + + 77 * COUNT( * ) + 2
----
79

skipif mysql # not compatible
query I rowsort label-8888
SELECT ALL + + 77 * COUNT ( * ) + 2
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-8889
SELECT - 47 * + COUNT( * ) * 87 + + 4 col2
----
-4085

skipif mysql # not compatible
query I rowsort label-8889
SELECT - 47 * + COUNT ( * ) * 87 + + 4 col2
----
-4085

query I rowsort
SELECT - - 87 + ( 2 ) AS col1
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-8891
SELECT ALL - COUNT( - - 64 ) + + - 61 AS col2
----
-62

skipif mysql # not compatible
query I rowsort label-8891
SELECT ALL - COUNT ( - - 64 ) + + - 61 AS col2
----
-62

query I rowsort
SELECT ALL CASE + + COALESCE ( 66, ( 3 ) ) WHEN + 98 THEN NULL ELSE + 78 + + - 71 END
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-8893
SELECT DISTINCT - CASE - ( 13 ) WHEN - - COUNT( * ) * + 24 THEN ( - 55 ) WHEN SUM( ALL 91 ) THEN 93 / + 73 / + 43 ELSE NULL END + - + 56 * - MAX( + 74 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8893
SELECT DISTINCT - CASE - ( 13 ) WHEN - - COUNT ( * ) * + 24 THEN ( - 55 ) WHEN SUM ( ALL 91 ) THEN 93 / + 73 / + 43 ELSE NULL END + - + 56 * - MAX ( + 74 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8894
SELECT DISTINCT CASE + - 54 WHEN - COUNT( * ) * + 66 / - - 56 + - 1 + - 0 * ( - 21 ) THEN - ( - 93 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-8894
SELECT DISTINCT CASE + - 54 WHEN - COUNT ( * ) * + 66 / - - 56 + - 1 + - 0 * ( - 21 ) THEN - ( - 93 ) END
----
NULL

query I rowsort
SELECT ALL - 76 - + 28
----
-104

onlyif mysql # aggregate syntax: 
query I rowsort label-8896
SELECT + 15 * COUNT( * )
----
15

skipif mysql # not compatible
query I rowsort label-8896
SELECT + 15 * COUNT ( * )
----
15

query I rowsort
SELECT ALL ( + 65 ) AS col0
----
65

query I rowsort
SELECT ALL - 49 * + + 15 AS col0
----
-735

query I rowsort
SELECT - 85 * 47 * 93
----
-371535

query II rowsort
SELECT ALL + 77 - - - 76 * + ( 85 ), 81 AS col1
----
-6383
81

onlyif mysql # aggregate syntax: 
query I rowsort label-8901
SELECT ALL - NULLIF ( - + 49, 2 ) * - 64 + + 57 + - - 43 - - - 0 * + 3 - - COUNT( * ) AS col0
----
-3035

skipif mysql # not compatible
query I rowsort label-8901
SELECT ALL - NULLIF ( - + 49, 2 ) * - 64 + + 57 + - - 43 - - - 0 * + 3 - - COUNT ( * ) AS col0
----
-3035

query I rowsort
SELECT DISTINCT ( 43 ) AS col2
----
43

query I rowsort
SELECT DISTINCT - 32 * + 14 * - + 3
----
1344

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8904
SELECT ALL + 13, ( - COUNT( * ) ) - - 97 DIV - - 24 AS col1
----
13
3

skipif mysql # not compatible
query II rowsort label-8904
SELECT ALL + 13, ( - COUNT ( * ) ) - - 97 / - - 24 AS col1
----
13
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8905
SELECT ALL + COALESCE ( 12, - 11 + - CAST( 24 AS SIGNED ) + MIN( DISTINCT + + 5 ) * - 4 - - 84 * 63 + 57 ) AS col2
----
12

skipif mysql # not compatible
query I rowsort label-8905
SELECT ALL + COALESCE ( 12, - 11 + - CAST ( 24 AS INTEGER ) + MIN ( DISTINCT + + 5 ) * - 4 - - 84 * 63 + 57 ) AS col2
----
12

onlyif mysql # DIV for integer division: 
query I rowsort label-8906
SELECT - 2 DIV + 5
----
0

skipif mysql # not compatible
query I rowsort label-8906
SELECT - 2 / + 5
----
0

query I rowsort
SELECT + 90 * + - 24 + + + 24 - - 77
----
-2059

onlyif mysql # aggregate syntax: 
query I rowsort label-8908
SELECT + 84 * + SUM( DISTINCT + + 13 ) AS col0
----
1092

skipif mysql # not compatible
query I rowsort label-8908
SELECT + 84 * + SUM ( DISTINCT + + 13 ) AS col0
----
1092

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8909
SELECT ( CAST( + + COUNT( * ) AS SIGNED ) ) DIV - 54 + + 60 AS col2
----
60

skipif mysql # not compatible
query I rowsort label-8909
SELECT ( CAST ( + + COUNT ( * ) AS INTEGER ) ) / - 54 + + 60 AS col2
----
60

onlyif mysql # DIV for integer division: 
query I rowsort label-8910
SELECT 78 DIV + 29 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-8910
SELECT 78 / + 29 AS col0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-8911
SELECT - 6 * - - COUNT( * )
----
-6

skipif mysql # not compatible
query I rowsort label-8911
SELECT - 6 * - - COUNT ( * )
----
-6

query I rowsort
SELECT DISTINCT + 65 * + 78
----
5070

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8913
SELECT DISTINCT - - CASE - - CAST( + 28 AS SIGNED ) WHEN + COUNT( * ) + - NULLIF ( - 51, - 63 * 19 ) * SUM( ALL 61 ) * ( + + MIN( DISTINCT - 75 ) ) + - COUNT( * ) + - 62 THEN + 70 * 59 + MIN( - - 97 ) - - + 43 ELSE 0 END + - - CASE + 58 WHEN + 14 + + SUM( DISTINCT + + 95 ) + 24 + 14 - 83 THEN NULL ELSE + 54 * - MAX( NULLIF ( 95, - 33 ) ) END + - 72
----
-5202

skipif mysql # not compatible
query I rowsort label-8913
SELECT DISTINCT - - CASE - - CAST ( + 28 AS INTEGER ) WHEN + COUNT ( * ) + - NULLIF ( - 51, - 63 * 19 ) * SUM ( ALL 61 ) * ( + + MIN ( DISTINCT - 75 ) ) + - COUNT ( * ) + - 62 THEN + 70 * 59 + MIN ( - - 97 ) - - + 43 ELSE 0 END + - - CASE + 58 WHEN + 14 + + SUM ( DISTINCT + + 95 ) + 24 + 14 - 83 THEN NULL ELSE + 54 * - MAX ( NULLIF ( 95, - 33 ) ) END + - 72
----
-5202

onlyif mysql # aggregate syntax: 
query I rowsort label-8914
SELECT - 73 * 52 + - + COUNT( * ) AS col0
----
-3797

skipif mysql # not compatible
query I rowsort label-8914
SELECT - 73 * 52 + - + COUNT ( * ) AS col0
----
-3797

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8915
SELECT ALL + 20 + 66 - - COALESCE ( 60, - 66 DIV + 43 * + ( + COUNT( * ) ) ) AS col0
----
146

skipif mysql # not compatible
query I rowsort label-8915
SELECT ALL + 20 + 66 - - COALESCE ( 60, - 66 / + 43 * + ( + COUNT ( * ) ) ) AS col0
----
146

onlyif mysql # aggregate syntax: 
query II rowsort label-8916
SELECT ALL - - 16 AS col1, - COUNT( ALL - + 32 )
----
16
-1

skipif mysql # not compatible
query II rowsort label-8916
SELECT ALL - - 16 AS col1, - COUNT ( ALL - + 32 )
----
16
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8917
SELECT + - CASE 72 WHEN + CAST( NULL AS SIGNED ) THEN COUNT( - - 92 ) + - - ( 91 ) END, 67 + + - ( - COALESCE ( - 77, - + 93, - COUNT( * ) * - 29 * + 66 + 48 ) ) AS col2
----
NULL
-10

skipif mysql # not compatible
query II rowsort label-8917
SELECT + - CASE 72 WHEN + CAST ( NULL AS INTEGER ) THEN COUNT ( - - 92 ) + - - ( 91 ) END, 67 + + - ( - COALESCE ( - 77, - + 93, - COUNT ( * ) * - 29 * + 66 + 48 ) ) AS col2
----
NULL
-10

query I rowsort
SELECT - 65 + 49 AS col1
----
-16

query I rowsort
SELECT ALL - + COALESCE ( + 39, + 71 ) AS col2
----
-39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8920
SELECT CAST( NULL AS SIGNED ) * + + 62
----
NULL

skipif mysql # not compatible
query I rowsort label-8920
SELECT CAST ( NULL AS INTEGER ) * + + 62
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8921
SELECT NULLIF ( COUNT( * ), - CASE - + COUNT( ALL 57 ) WHEN + + 73 THEN 45 END ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8921
SELECT NULLIF ( COUNT ( * ), - CASE - + COUNT ( ALL 57 ) WHEN + + 73 THEN 45 END ) AS col2
----
1

query I rowsort
SELECT ALL - - NULLIF ( 31, - 95 ) col0
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-8923
SELECT DISTINCT + MAX( DISTINCT - 36 ) * 88 AS col2
----
-3168

skipif mysql # not compatible
query I rowsort label-8923
SELECT DISTINCT + MAX ( DISTINCT - 36 ) * 88 AS col2
----
-3168

query I rowsort
SELECT DISTINCT + 77 + - 82 + 40 * + 3 AS col1
----
115

onlyif mysql # aggregate syntax: 
query I rowsort label-8925
SELECT ALL + 19 - + + MAX( 26 ) + + - 81 col0
----
-88

skipif mysql # not compatible
query I rowsort label-8925
SELECT ALL + 19 - + + MAX ( 26 ) + + - 81 col0
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-8926
SELECT COUNT( DISTINCT + 62 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8926
SELECT COUNT ( DISTINCT + 62 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query III rowsort label-8927
SELECT 57, - 16 - + COUNT( - 7 ) AS col1, ( - 57 ) AS col1
----
57
-17
-57

skipif mysql # not compatible
query III rowsort label-8927
SELECT 57, - 16 - + COUNT ( - 7 ) AS col1, ( - 57 ) AS col1
----
57
-17
-57

onlyif mysql # aggregate syntax: 
query II rowsort label-8928
SELECT NULLIF ( - 79, + MAX( + + 80 ) ) - + - 19 AS col1, + SUM( - 11 ) AS col2
----
-60
-11

skipif mysql # not compatible
query II rowsort label-8928
SELECT NULLIF ( - 79, + MAX ( + + 80 ) ) - + - 19 AS col1, + SUM ( - 11 ) AS col2
----
-60
-11

query I rowsort
SELECT ALL 3 * - + 50 * 90 * 44 AS col0
----
-594000

onlyif mysql # DIV for integer division: 
query II rowsort label-8930
SELECT 72 DIV - + 99 AS col1, + 85
----
0
85

skipif mysql # not compatible
query II rowsort label-8930
SELECT 72 / - + 99 AS col1, + 85
----
0
85

query I rowsort
SELECT ( - 85 ) * 85
----
-7225

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8932
SELECT ALL - 45 - + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8932
SELECT ALL - 45 - + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 62 - + 8
----
54

query II rowsort
SELECT 72 - + 94 AS col1, 78 AS col2
----
-22
78

onlyif mysql # aggregate syntax: 
query I rowsort label-8935
SELECT COUNT( * ) * MAX( DISTINCT - 14 )
----
-14

skipif mysql # not compatible
query I rowsort label-8935
SELECT COUNT ( * ) * MAX ( DISTINCT - 14 )
----
-14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8936
SELECT 78 * - ( - + NULLIF ( + 27, CAST( - 83 AS SIGNED ) + + 26 ) ) AS col1
----
2106

skipif mysql # not compatible
query I rowsort label-8936
SELECT 78 * - ( - + NULLIF ( + 27, CAST ( - 83 AS INTEGER ) + + 26 ) ) AS col1
----
2106

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8937
SELECT ALL + COUNT( * ) * 85 DIV - 98 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8937
SELECT ALL + COUNT ( * ) * 85 / - 98 AS col1
----
0

query I rowsort
SELECT 71 + + 10
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-8939
SELECT DISTINCT - COUNT( * ) + - 59
----
-60

skipif mysql # not compatible
query I rowsort label-8939
SELECT DISTINCT - COUNT ( * ) + - 59
----
-60

query II rowsort
SELECT ALL + 83 * 30 AS col0, 81 AS col1
----
2490
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8941
SELECT DISTINCT - CAST( + 40 AS SIGNED ) AS col1
----
-40

skipif mysql # not compatible
query I rowsort label-8941
SELECT DISTINCT - CAST ( + 40 AS INTEGER ) AS col1
----
-40

query I rowsort
SELECT ALL - 35 + - + ( - 64 ) AS col1
----
29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-8943
SELECT SUM( ALL - - CAST( NULL AS SIGNED ) ), - 77 AS col0, 34 AS col1
----
NULL
-77
34

skipif mysql # not compatible
query III rowsort label-8943
SELECT SUM ( ALL - - CAST ( NULL AS INTEGER ) ), - 77 AS col0, 34 AS col1
----
NULL
-77
34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8944
SELECT DISTINCT - - 82 + + COALESCE ( + 51, CASE + 2 WHEN + - 49 THEN + 56 + - + 57 + ( COUNT( * ) ) + - 27 * + + 28 ELSE 56 * 50 + - 71 * - 16 - + CAST( NULL AS SIGNED ) + + 16 END )
----
133

skipif mysql # not compatible
query I rowsort label-8944
SELECT DISTINCT - - 82 + + COALESCE ( + 51, CASE + 2 WHEN + - 49 THEN + 56 + - + 57 + ( COUNT ( * ) ) + - 27 * + + 28 ELSE 56 * 50 + - 71 * - 16 - + CAST ( NULL AS INTEGER ) + + 16 END )
----
133

query I rowsort
SELECT + ( + 59 ) AS col1
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-8946
SELECT - SUM( ALL + ( - 46 ) ) - ( - CASE - - 59 WHEN + 92 THEN NULL ELSE + 50 END ) + + 57 AS col2
----
153

skipif mysql # not compatible
query I rowsort label-8946
SELECT - SUM ( ALL + ( - 46 ) ) - ( - CASE - - 59 WHEN + 92 THEN NULL ELSE + 50 END ) + + 57 AS col2
----
153

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8947
SELECT CAST( 83 AS SIGNED ) * - - 53 AS col0
----
4399

skipif mysql # not compatible
query I rowsort label-8947
SELECT CAST ( 83 AS INTEGER ) * - - 53 AS col0
----
4399

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8948
SELECT ALL + 0 DIV + 97 + 89 * - - COUNT( * )
----
89

skipif mysql # not compatible
query I rowsort label-8948
SELECT ALL + 0 / + 97 + 89 * - - COUNT ( * )
----
89

onlyif mysql # DIV for integer division: 
query I rowsort label-8949
SELECT 96 DIV + - 89 col2
----
-1

skipif mysql # not compatible
query I rowsort label-8949
SELECT 96 / + - 89 col2
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-8950
SELECT - 63 DIV - 7
----
9

skipif mysql # not compatible
query I rowsort label-8950
SELECT - 63 / - 7
----
9

query II rowsort
SELECT ALL - 9 + 50 col0, - 41
----
41
-41

query I rowsort
SELECT ALL 50 * - 77 + - - 34 col1
----
-3816

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8953
SELECT - COUNT( * ) * 28 AS col2, 50 DIV + 76 AS col2
----
-28
0

skipif mysql # not compatible
query II rowsort label-8953
SELECT - COUNT ( * ) * 28 AS col2, 50 / + 76 AS col2
----
-28
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8954
SELECT ALL + COUNT( * ) DIV 72 AS col1, 8 * 87 * - 10 * + - 43 AS col2
----
0
299280

skipif mysql # not compatible
query II rowsort label-8954
SELECT ALL + COUNT ( * ) / 72 AS col1, 8 * 87 * - 10 * + - 43 AS col2
----
0
299280

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8955
SELECT DISTINCT - - CAST( - COALESCE ( ( NULLIF ( + CASE - + COALESCE ( 93, + ( + - 94 ) ) WHEN - - CAST( - 64 AS SIGNED ) + + + 82 THEN NULL ELSE - - 78 + - - NULLIF ( + - 86, 59 ) END, 48 ) ), + + 45, 50 + + 31 ) AS SIGNED ) - + COUNT( DISTINCT + 60 ) AS col0
----
7

skipif mysql # not compatible
query I rowsort label-8955
SELECT DISTINCT - - CAST ( - COALESCE ( ( NULLIF ( + CASE - + COALESCE ( 93, + ( + - 94 ) ) WHEN - - CAST ( - 64 AS INTEGER ) + + + 82 THEN NULL ELSE - - 78 + - - NULLIF ( + - 86, 59 ) END, 48 ) ), + + 45, 50 + + 31 ) AS INTEGER ) - + COUNT ( DISTINCT + 60 ) AS col0
----
7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8956
SELECT ALL - 59 * ( COUNT( * ) ) DIV - 59
----
1

skipif mysql # not compatible
query I rowsort label-8956
SELECT ALL - 59 * ( COUNT ( * ) ) / - 59
----
1

query I rowsort
SELECT 65 - - NULLIF ( 2, - 61 )
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-8958
SELECT ALL + 48 - - COUNT( * ) AS col0
----
49

skipif mysql # not compatible
query I rowsort label-8958
SELECT ALL + 48 - - COUNT ( * ) AS col0
----
49

query I rowsort
SELECT 13 * COALESCE ( - - 31, - + 14 )
----
403

onlyif mysql # aggregate syntax: 
query I rowsort label-8960
SELECT COUNT( * ) + 6 col0
----
7

skipif mysql # not compatible
query I rowsort label-8960
SELECT COUNT ( * ) + 6 col0
----
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8961
SELECT + CAST( NULL AS SIGNED ) * + + 20 * - 88 - + 31 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8961
SELECT + CAST ( NULL AS INTEGER ) * + + 20 * - 88 - + 31 AS col1
----
NULL

query I rowsort
SELECT 37 + - 66 * + - 34 AS col0
----
2281

onlyif mysql # aggregate syntax: 
query I rowsort label-8963
SELECT - COUNT( * ) * 23 + + + 82
----
59

skipif mysql # not compatible
query I rowsort label-8963
SELECT - COUNT ( * ) * 23 + + + 82
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-8964
SELECT CASE - 87 WHEN MIN( ALL + 47 ) * - 96 THEN + 4 ELSE NULL END * - 12 + COUNT( * ) * + 43 * + ( + + 32 ) - - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8964
SELECT CASE - 87 WHEN MIN ( ALL + 47 ) * - 96 THEN + 4 ELSE NULL END * - 12 + COUNT ( * ) * + 43 * + ( + + 32 ) - - COUNT ( * )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8965
SELECT DISTINCT 74 DIV 74 * - + 19
----
-19

skipif mysql # not compatible
query I rowsort label-8965
SELECT DISTINCT 74 / 74 * - + 19
----
-19

query I rowsort
SELECT 62 + - 99
----
-37

onlyif mysql # DIV for integer division: 
query I rowsort label-8967
SELECT NULLIF ( - + 6, + 10 ) DIV - 54
----
0

skipif mysql # not compatible
query I rowsort label-8967
SELECT NULLIF ( - + 6, + 10 ) / - 54
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8968
SELECT CAST( + + 32 AS SIGNED ) * + 16 * - 20
----
-10240

skipif mysql # not compatible
query I rowsort label-8968
SELECT CAST ( + + 32 AS INTEGER ) * + 16 * - 20
----
-10240

onlyif mysql # aggregate syntax: 
query I rowsort label-8969
SELECT COUNT( DISTINCT 29 ) + + 2 AS col1
----
3

skipif mysql # not compatible
query I rowsort label-8969
SELECT COUNT ( DISTINCT 29 ) + + 2 AS col1
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8970
SELECT - COUNT( * ) AS col0, + CAST( - ( - 53 ) AS SIGNED ) + + COUNT( * ) AS col1
----
-1
54

skipif mysql # not compatible
query II rowsort label-8970
SELECT - COUNT ( * ) AS col0, + CAST ( - ( - 53 ) AS INTEGER ) + + COUNT ( * ) AS col1
----
-1
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8971
SELECT ALL 73 + + + CAST( - 20 AS SIGNED ) AS col0
----
53

skipif mysql # not compatible
query I rowsort label-8971
SELECT ALL 73 + + + CAST ( - 20 AS INTEGER ) AS col0
----
53

onlyif mysql # DIV for integer division: 
query I rowsort label-8972
SELECT + ( - 85 ) DIV 22
----
-3

skipif mysql # not compatible
query I rowsort label-8972
SELECT + ( - 85 ) / 22
----
-3

query I rowsort
SELECT DISTINCT 8 + + + 70 * - 69 + + 75
----
-4747

query I rowsort
SELECT ALL 78 + + 42 AS col1
----
120

query I rowsort
SELECT ALL - 51 + 93
----
42

query II rowsort
SELECT ALL 8, 5 AS col0
----
8
5

onlyif mysql # aggregate syntax: 
query I rowsort label-8977
SELECT ALL - COUNT( * ) + + 46 + + - 69 * COUNT( * ) * + 41 * + + 7 col2
----
-19758

skipif mysql # not compatible
query I rowsort label-8977
SELECT ALL - COUNT ( * ) + + 46 + + - 69 * COUNT ( * ) * + 41 * + + 7 col2
----
-19758

query I rowsort
SELECT - 97 + 55 - + 52 + - 2 AS col1
----
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8979
SELECT ALL COALESCE ( + 94, + 46 * - CASE WHEN + 55 IS NULL THEN - 91 + CAST( NULL AS SIGNED ) + + 50 + + 22 ELSE + + 88 END + + + CAST( + 86 AS SIGNED ) ) AS col1
----
94

skipif mysql # not compatible
query I rowsort label-8979
SELECT ALL COALESCE ( + 94, + 46 * - CASE WHEN + 55 IS NULL THEN - 91 + CAST ( NULL AS INTEGER ) + + 50 + + 22 ELSE + + 88 END + + + CAST ( + 86 AS INTEGER ) ) AS col1
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-8980
SELECT - + 26 * + MAX( DISTINCT - ( 23 ) ) AS col1
----
598

skipif mysql # not compatible
query I rowsort label-8980
SELECT - + 26 * + MAX ( DISTINCT - ( 23 ) ) AS col1
----
598

onlyif mysql # aggregate syntax: 
query I rowsort label-8981
SELECT + 68 - + 77 * - 43 - MAX( 78 ) + COUNT( * ) * + - 23 AS col1
----
3278

skipif mysql # not compatible
query I rowsort label-8981
SELECT + 68 - + 77 * - 43 - MAX ( 78 ) + COUNT ( * ) * + - 23 AS col1
----
3278

query I rowsort
SELECT - 82 * - + 76 AS col2
----
6232

onlyif mysql # aggregate syntax: 
query I rowsort label-8983
SELECT + MIN( 75 )
----
75

skipif mysql # not compatible
query I rowsort label-8983
SELECT + MIN ( 75 )
----
75

query I rowsort
SELECT 57 * + 31 + - + 11 * - 55 * - + 39 AS col0
----
-21828

onlyif mysql # aggregate syntax: 
query I rowsort label-8985
SELECT - 84 * - 87 * - 91 * + 23 + + + COUNT( * ) * - - 69 + - + 64 + + - 97 AS col2
----
-15295736

skipif mysql # not compatible
query I rowsort label-8985
SELECT - 84 * - 87 * - 91 * + 23 + + + COUNT ( * ) * - - 69 + - + 64 + + - 97 AS col2
----
-15295736

query I rowsort
SELECT ALL - + 26 * 35 - + 39 * + 79 - + 4
----
-3995

onlyif mysql # aggregate syntax: 
query II rowsort label-8987
SELECT + + 36 AS col1, - 76 + - MIN( - NULLIF ( 65, 40 * 35 ) ) + + + 42 AS col1
----
36
31

skipif mysql # not compatible
query II rowsort label-8987
SELECT + + 36 AS col1, - 76 + - MIN ( - NULLIF ( 65, 40 * 35 ) ) + + + 42 AS col1
----
36
31

query I rowsort
SELECT - 40 + - - ( + 57 ) + - 24 * 71 AS col0
----
-1687

query I rowsort
SELECT - 54 * + 87 AS col1
----
-4698

query I rowsort
SELECT DISTINCT + + 28 AS col1
----
28

query I rowsort
SELECT - 45 * + 92
----
-4140

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8992
SELECT ALL - COUNT( * ) DIV - - 78 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8992
SELECT ALL - COUNT ( * ) / - - 78 AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8993
SELECT DISTINCT - CAST( - 95 AS SIGNED ) DIV - 59 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-8993
SELECT DISTINCT - CAST ( - 95 AS INTEGER ) / - 59 AS col0
----
-1

query II rowsort
SELECT ALL + ( + 22 ) AS col1, + 56
----
22
56

onlyif mysql # aggregate syntax: 
query I rowsort label-8995
SELECT - COALESCE ( 27, - + ( - SUM( - + 48 ) ), - - 64 ) - + + MIN( COALESCE ( + + 87, - + 10 ) ) + + ( 65 ) + 4
----
-45

skipif mysql # not compatible
query I rowsort label-8995
SELECT - COALESCE ( 27, - + ( - SUM ( - + 48 ) ), - - 64 ) - + + MIN ( COALESCE ( + + 87, - + 10 ) ) + + ( 65 ) + 4
----
-45

query II rowsort
SELECT DISTINCT 14 * 46 AS col1, 52
----
644
52

onlyif mysql # aggregate syntax: 
query I rowsort label-8997
SELECT ALL 73 + + COUNT( * ) + 45 AS col2
----
119

skipif mysql # not compatible
query I rowsort label-8997
SELECT ALL 73 + + COUNT ( * ) + 45 AS col2
----
119

query I rowsort
SELECT - 79 - - - 7 AS col2
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-8999
SELECT - ( MAX( ALL - 41 ) ) * - 53 + - 16
----
-2189

skipif mysql # not compatible
query I rowsort label-8999
SELECT - ( MAX ( ALL - 41 ) ) * - 53 + - 16
----
-2189

onlyif mysql # aggregate syntax: 
query I rowsort label-9000
SELECT - SUM( ALL 47 )
----
-47

skipif mysql # not compatible
query I rowsort label-9000
SELECT - SUM ( ALL 47 )
----
-47

query I rowsort
SELECT DISTINCT + 10 + 27 * + - 97 AS col2
----
-2609

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9002
SELECT ALL - 55 + - COALESCE ( + 41, - 4, - 59 + 6 ) + - 14 + CASE + 97 WHEN + + CASE - 86 WHEN + CAST( - + COUNT( * ) AS SIGNED ) THEN NULL WHEN + CAST( + 19 AS SIGNED ) THEN NULL ELSE + 50 + + + 15 END THEN NULL WHEN + + COUNT( * ) + - 22 + COUNT( * ) * - - 34 THEN NULL ELSE 61 END + ( - - COUNT( * ) ) + + ( - - 69 ) * MIN( DISTINCT - CASE + 29 WHEN - 19 THEN NULL WHEN 37 THEN + 47 END ) * - 20 * - - COUNT( ALL 52 ) * COALESCE ( + 48, 53 + - ( - 97 + CASE - 65 WHEN + 34 THEN NULL WHEN - COUNT( * ) THEN + CASE - 2 WHEN 85 - 43 THEN SUM( 50 ) END END ) * - ( 32 * - 82 ) ) * 71
----
NULL

skipif mysql # not compatible
query I rowsort label-9002
SELECT ALL - 55 + - COALESCE ( + 41, - 4, - 59 + 6 ) + - 14 + CASE + 97 WHEN + + CASE - 86 WHEN + CAST ( - + COUNT ( * ) AS INTEGER ) THEN NULL WHEN + CAST ( + 19 AS INTEGER ) THEN NULL ELSE + 50 + + + 15 END THEN NULL WHEN + + COUNT ( * ) + - 22 + COUNT ( * ) * - - 34 THEN NULL ELSE 61 END + ( - - COUNT ( * ) ) + + ( - - 69 ) * MIN ( DISTINCT - CASE + 29 WHEN - 19 THEN NULL WHEN 37 THEN + 47 END ) * - 20 * - - COUNT ( ALL 52 ) * COALESCE ( + 48, 53 + - ( - 97 + CASE - 65 WHEN + 34 THEN NULL WHEN - COUNT ( * ) THEN + CASE - 2 WHEN 85 - 43 THEN SUM ( 50 ) END END ) * - ( 32 * - 82 ) ) * 71
----
NULL

query I rowsort
SELECT ALL 19 + - 98 * + - 61 AS col2
----
5997

onlyif mysql # aggregate syntax: 
query II rowsort label-9004
SELECT + 25 - + 22 + - SUM( - 98 ) AS col1, - 31
----
101
-31

skipif mysql # not compatible
query II rowsort label-9004
SELECT + 25 - + 22 + - SUM ( - 98 ) AS col1, - 31
----
101
-31

onlyif mysql # aggregate syntax: 
query II rowsort label-9005
SELECT - COUNT( DISTINCT + - ( - 2 ) ) + 83, + 98 AS col1
----
82
98

skipif mysql # not compatible
query II rowsort label-9005
SELECT - COUNT ( DISTINCT + - ( - 2 ) ) + 83, + 98 AS col1
----
82
98

query I rowsort
SELECT + 1 - - 2 col2
----
3

query I rowsort
SELECT DISTINCT - ( - 1 ) + - - 33
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-9008
SELECT ALL + COUNT( * ) * COUNT( * ) - - 98 AS col0
----
99

skipif mysql # not compatible
query I rowsort label-9008
SELECT ALL + COUNT ( * ) * COUNT ( * ) - - 98 AS col0
----
99

query I rowsort
SELECT ALL 83 + + 95 * + 15 * 11 AS col1
----
15758

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9010
SELECT + COUNT( DISTINCT - 0 ) + + COUNT( * ) * - + COUNT( * ) + - 29, 39 * + + CASE CAST( NULL AS SIGNED ) WHEN - + 20 THEN NULL WHEN - - 6 THEN NULL WHEN 10 THEN - 31 END AS col2
----
-29
NULL

skipif mysql # not compatible
query II rowsort label-9010
SELECT + COUNT ( DISTINCT - 0 ) + + COUNT ( * ) * - + COUNT ( * ) + - 29, 39 * + + CASE CAST ( NULL AS INTEGER ) WHEN - + 20 THEN NULL WHEN - - 6 THEN NULL WHEN 10 THEN - 31 END AS col2
----
-29
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9011
SELECT + + ( + 84 ) * - COUNT( * ) col0
----
-84

skipif mysql # not compatible
query I rowsort label-9011
SELECT + + ( + 84 ) * - COUNT ( * ) col0
----
-84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9012
SELECT ALL - 72 * - 76 * + COUNT( * ) + + CAST( 50 AS SIGNED ) * + 38
----
7372

skipif mysql # not compatible
query I rowsort label-9012
SELECT ALL - 72 * - 76 * + COUNT ( * ) + + CAST ( 50 AS INTEGER ) * + 38
----
7372

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9013
SELECT ALL - 31 / CASE ( COUNT( * ) ) WHEN + 76 + + ( + 15 ) + + 13 THEN - + CAST( NULL AS SIGNED ) END / + 89 + CAST( NULL AS SIGNED ) + + COUNT( * ) * 67 * ( + ( 14 ) ) * - - 53 - - 91
----
NULL

skipif mysql # not compatible
query I rowsort label-9013
SELECT ALL - 31 / CASE ( COUNT ( * ) ) WHEN + 76 + + ( + 15 ) + + 13 THEN - + CAST ( NULL AS INTEGER ) END / + 89 + CAST ( NULL AS INTEGER ) + + COUNT ( * ) * 67 * ( + ( 14 ) ) * - - 53 - - 91
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9014
SELECT + + 28 DIV - - 15
----
1

skipif mysql # not compatible
query I rowsort label-9014
SELECT + + 28 / - - 15
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9015
SELECT ALL + - MIN( ALL + - 31 ) AS col2
----
31

skipif mysql # not compatible
query I rowsort label-9015
SELECT ALL + - MIN ( ALL + - 31 ) AS col2
----
31

onlyif mysql # aggregate syntax: 
query II rowsort label-9016
SELECT DISTINCT + ( - 41 ), + COUNT( * ) AS col1
----
-41
1

skipif mysql # not compatible
query II rowsort label-9016
SELECT DISTINCT + ( - 41 ), + COUNT ( * ) AS col1
----
-41
1

query II rowsort
SELECT + + ( 4 ) + + 65 * - 73 AS col0, + 65 AS col2
----
-4741
65

query I rowsort
SELECT + - NULLIF ( + + 66, + - 65 ) AS col2
----
-66

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9019
SELECT DISTINCT + + NULLIF ( - - ( + 44 ), + - 88 * + 59 * - 26 + 85 - + - 16 * + COUNT( * ) + - 25 - - - 30 * 34 + + - ( + - CAST( NULL AS DECIMAL ) ) )
----
44

skipif mysql # not compatible
query I rowsort label-9019
SELECT DISTINCT + + NULLIF ( - - ( + 44 ), + - 88 * + 59 * - 26 + 85 - + - 16 * + COUNT ( * ) + - 25 - - - 30 * 34 + + - ( + - CAST ( NULL AS REAL ) ) )
----
44

query I rowsort
SELECT ALL - 65 * 73 AS col0
----
-4745

query I rowsort
SELECT DISTINCT - - 23 * - 13
----
-299

query I rowsort
SELECT DISTINCT 10 * 65
----
650

onlyif mysql # aggregate syntax: 
query I rowsort label-9023
SELECT - 21 * + + MAX( + - 46 ) AS col2
----
966

skipif mysql # not compatible
query I rowsort label-9023
SELECT - 21 * + + MAX ( + - 46 ) AS col2
----
966

query I rowsort
SELECT - 39 - 80
----
-119

onlyif mysql # aggregate syntax: 
query I rowsort label-9025
SELECT - 19 * + COUNT( * ) * 22 * NULLIF ( - COUNT( * ), + 99 * + 36 * - + 72 ) + 32 AS col0
----
450

skipif mysql # not compatible
query I rowsort label-9025
SELECT - 19 * + COUNT ( * ) * 22 * NULLIF ( - COUNT ( * ), + 99 * + 36 * - + 72 ) + 32 AS col0
----
450

query I rowsort
SELECT - COALESCE ( - 31, - 15 ) + 75 - 29 AS col1
----
77

query I rowsort
SELECT ALL - 95 * 49 AS col2
----
-4655

query I rowsort
SELECT - 91 * + 84 AS col0
----
-7644

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9029
SELECT + 29 AS col2, + CAST( NULL AS SIGNED ) / - + 44 * + + SUM( ALL 69 ) / + 21 + - 99 - - - 52 + 56 + - 51 * COUNT( + NULLIF ( 77, + - CAST( CAST( NULL AS SIGNED ) AS SIGNED ) ) ) col2
----
29
NULL

skipif mysql # not compatible
query II rowsort label-9029
SELECT + 29 AS col2, + CAST ( NULL AS INTEGER ) / - + 44 * + + SUM ( ALL 69 ) / + 21 + - 99 - - - 52 + 56 + - 51 * COUNT ( + NULLIF ( 77, + - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) ) ) col2
----
29
NULL

query I rowsort
SELECT ALL + 23 + + - 21 * 67
----
-1384

onlyif mysql # DIV for integer division: 
query I rowsort label-9031
SELECT 62 + - + 50 + - - 74 DIV + 89 AS col2
----
12

skipif mysql # not compatible
query I rowsort label-9031
SELECT 62 + - + 50 + - - 74 / + 89 AS col2
----
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9032
SELECT + CASE - - 31 WHEN 11 THEN NULL ELSE - COUNT( * ) / - - ( - + 1 ) END * 4 + 12 - - CAST( NULL AS SIGNED ) + - 97 * + + 75 / SUM( - 50 ) AS col1, MIN( + - 21 ) AS col2
----
NULL
-21

skipif mysql # not compatible
query II rowsort label-9032
SELECT + CASE - - 31 WHEN 11 THEN NULL ELSE - COUNT ( * ) / - - ( - + 1 ) END * 4 + 12 - - CAST ( NULL AS INTEGER ) + - 97 * + + 75 / SUM ( - 50 ) AS col1, MIN ( + - 21 ) AS col2
----
NULL
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-9033
SELECT DISTINCT 2 + + 25 + + MAX( ALL + 26 )
----
53

skipif mysql # not compatible
query I rowsort label-9033
SELECT DISTINCT 2 + + 25 + + MAX ( ALL + 26 )
----
53

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9034
SELECT ALL - COUNT( ALL - + ( 24 ) ) DIV - 94
----
0

skipif mysql # not compatible
query I rowsort label-9034
SELECT ALL - COUNT ( ALL - + ( 24 ) ) / - 94
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9035
SELECT DISTINCT 97 AS col1, ( - 4 ) + - CAST( NULL AS SIGNED )
----
97
NULL

skipif mysql # not compatible
query II rowsort label-9035
SELECT DISTINCT 97 AS col1, ( - 4 ) + - CAST ( NULL AS INTEGER )
----
97
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9036
SELECT ALL COUNT( * ) + - 55 + COUNT( * ) + - + 94 col0
----
-147

skipif mysql # not compatible
query I rowsort label-9036
SELECT ALL COUNT ( * ) + - 55 + COUNT ( * ) + - + 94 col0
----
-147

onlyif mysql # aggregate syntax: 
query I rowsort label-9037
SELECT 97 + - 77 + + + COUNT( * ) * + - 34 + NULLIF ( + 45, + - ( - 42 ) )
----
31

skipif mysql # not compatible
query I rowsort label-9037
SELECT 97 + - 77 + + + COUNT ( * ) * + - 34 + NULLIF ( + 45, + - ( - 42 ) )
----
31

onlyif mysql # DIV for integer division: 
query I rowsort label-9038
SELECT ALL + 51 DIV - 71 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9038
SELECT ALL + 51 / - 71 AS col1
----
0

query I rowsort
SELECT 71 * + - 73 AS col0
----
-5183

query II rowsort
SELECT - 6 AS col1, + 82 + - 61 * - + 82 * + - 42 * - 19
----
-6
3991678

query I rowsort
SELECT DISTINCT - 79 * + 47
----
-3713

onlyif mysql # aggregate syntax: 
query I rowsort label-9042
SELECT ALL + NULLIF ( - 80, - 59 ) - - SUM( - 45 ) AS col0
----
-125

skipif mysql # not compatible
query I rowsort label-9042
SELECT ALL + NULLIF ( - 80, - 59 ) - - SUM ( - 45 ) AS col0
----
-125

query I rowsort
SELECT ALL - - 25 * + 62
----
1550

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-9044
SELECT 1 + - COUNT( 46 ) + - + ( - SUM( ALL - 73 ) ) * - 30 + 27 + - + COUNT( * ) + CAST( NULL AS DECIMAL ) * - 88 + - - NULLIF ( - 63, - 25 ) - + - 37, 17 AS col0
----
NULL
17

skipif mysql # not compatible
query II rowsort label-9044
SELECT 1 + - COUNT ( 46 ) + - + ( - SUM ( ALL - 73 ) ) * - 30 + 27 + - + COUNT ( * ) + CAST ( NULL AS REAL ) * - 88 + - - NULLIF ( - 63, - 25 ) - + - 37, 17 AS col0
----
NULL
17

query I rowsort
SELECT DISTINCT - 76 * - - 87
----
-6612

query I rowsort
SELECT DISTINCT + 35 col1
----
35

query I rowsort
SELECT DISTINCT - ( + 91 ) AS col1
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-9048
SELECT DISTINCT - COUNT( * ) - + 98 AS col0
----
-99

skipif mysql # not compatible
query I rowsort label-9048
SELECT DISTINCT - COUNT ( * ) - + 98 AS col0
----
-99

query I rowsort
SELECT DISTINCT + 5 * + - 93 AS col2
----
-465

query I rowsort
SELECT NULLIF ( 33, + 74 ) AS col1
----
33

query I rowsort
SELECT + 39 * - 48
----
-1872

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9052
SELECT + 9 * - + ( - 46 ) + + 47 * + CASE - 25 WHEN 77 * - + CAST( - 72 AS SIGNED ) + - - 47 * COUNT( * ) THEN - ( - MIN( ALL - 22 ) ) + + + COALESCE ( - + 83, 95 + - COUNT( DISTINCT - - 80 ), - 35 / ( 6 ), + 1 ) END * + + 61 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9052
SELECT + 9 * - + ( - 46 ) + + 47 * + CASE - 25 WHEN 77 * - + CAST ( - 72 AS INTEGER ) + - - 47 * COUNT ( * ) THEN - ( - MIN ( ALL - 22 ) ) + + + COALESCE ( - + 83, 95 + - COUNT ( DISTINCT - - 80 ), - 35 / ( 6 ), + 1 ) END * + + 61 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9053
SELECT ALL - - CASE ( + + 94 ) WHEN - - 10 * - + 20 + + CAST( NULL AS SIGNED ) + - MIN( 74 ) * + 96 THEN 1 + - 11 + 18 ELSE - 18 * + COALESCE ( + + COUNT( * ), 72, CASE 87 WHEN 37 THEN + 76 DIV - 27 ELSE NULL END + - 14 ) + 54 + - ( - - 47 ) * - 13 END AS col1
----
647

skipif mysql # not compatible
query I rowsort label-9053
SELECT ALL - - CASE ( + + 94 ) WHEN - - 10 * - + 20 + + CAST ( NULL AS INTEGER ) + - MIN ( 74 ) * + 96 THEN 1 + - 11 + 18 ELSE - 18 * + COALESCE ( + + COUNT ( * ), 72, CASE 87 WHEN 37 THEN + 76 / - 27 ELSE NULL END + - 14 ) + 54 + - ( - - 47 ) * - 13 END AS col1
----
647

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9054
SELECT - + 54 DIV - - COUNT( * ) + 92 AS col2
----
38

skipif mysql # not compatible
query I rowsort label-9054
SELECT - + 54 / - - COUNT ( * ) + 92 AS col2
----
38

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9055
SELECT COUNT( * ) DIV 31 * - 32 col1
----
0

skipif mysql # not compatible
query I rowsort label-9055
SELECT COUNT ( * ) / 31 * - 32 col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9056
SELECT ALL - 11 * COUNT( * ) * + 99 AS col0
----
-1089

skipif mysql # not compatible
query I rowsort label-9056
SELECT ALL - 11 * COUNT ( * ) * + 99 AS col0
----
-1089

query I rowsort
SELECT ALL + - 16 * + + 37
----
-592

query I rowsort
SELECT DISTINCT - + 24 col0
----
-24

query I rowsort
SELECT DISTINCT + 9 * + 90
----
810

onlyif mysql # aggregate syntax: 
query I rowsort label-9060
SELECT ALL ( - 7 ) + MIN( - + 77 )
----
-84

skipif mysql # not compatible
query I rowsort label-9060
SELECT ALL ( - 7 ) + MIN ( - + 77 )
----
-84

query II rowsort
SELECT DISTINCT - 98, 38 AS col2
----
-98
38

onlyif mysql # DIV for integer division: 
query I rowsort label-9062
SELECT DISTINCT + 45 DIV - 30
----
-1

skipif mysql # not compatible
query I rowsort label-9062
SELECT DISTINCT + 45 / - 30
----
-1

query I rowsort
SELECT 36 * + 45 AS col0
----
1620

query I rowsort
SELECT DISTINCT 39 + - - ( - - 1 )
----
40

query I rowsort
SELECT ALL 97 + 71 + 42 * 47 AS col0
----
2142

query I rowsort
SELECT DISTINCT 56 + + 94 col0
----
150

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9067
SELECT 62 * + 86 * - + SUM( DISTINCT CAST( 20 AS SIGNED ) )
----
-106640

skipif mysql # not compatible
query I rowsort label-9067
SELECT 62 * + 86 * - + SUM ( DISTINCT CAST ( 20 AS INTEGER ) )
----
-106640

query I rowsort
SELECT 97 + 96 - + + 78
----
115

query I rowsort
SELECT DISTINCT 3 + + 98 AS col1
----
101

query I rowsort
SELECT ALL 61 + - 49 col1
----
12

query I rowsort
SELECT ALL - 64 * + 22 * - 85
----
119680

query I rowsort
SELECT ALL - 55 + - 5 AS col2
----
-60

query I rowsort
SELECT ALL 55 * + ( - 86 )
----
-4730

query I rowsort
SELECT ALL + 92 + + + 41 + + 11
----
144

onlyif mysql # aggregate syntax: 
query II rowsort label-9075
SELECT DISTINCT - NULLIF ( - COUNT( * ), COUNT( * ) ) + 72, - MIN( 32 ) * - 4 AS col0
----
73
128

skipif mysql # not compatible
query II rowsort label-9075
SELECT DISTINCT - NULLIF ( - COUNT ( * ), COUNT ( * ) ) + 72, - MIN ( 32 ) * - 4 AS col0
----
73
128

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9076
SELECT ALL - CAST( + + NULLIF ( - ( ( + - CAST( NULL AS SIGNED ) ) ), - - 38 + + 30 ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9076
SELECT ALL - CAST ( + + NULLIF ( - ( ( + - CAST ( NULL AS INTEGER ) ) ), - - 38 + + 30 ) AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9077
SELECT 6 DIV + 86
----
0

skipif mysql # not compatible
query I rowsort label-9077
SELECT 6 / + 86
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9078
SELECT - COUNT( * ) AS col1, 43 * 2 - 59 * + + COUNT( * ) * + ( 1 ) + MIN( + - 80 ) + SUM( - 87 )
----
-1
-140

skipif mysql # not compatible
query II rowsort label-9078
SELECT - COUNT ( * ) AS col1, 43 * 2 - 59 * + + COUNT ( * ) * + ( 1 ) + MIN ( + - 80 ) + SUM ( - 87 )
----
-1
-140

onlyif mysql # aggregate syntax: 
query II rowsort label-9079
SELECT 87 - - + 6 * + MIN( + - 12 ) * + 15 + 30 col1, - 12 + ( 96 ) AS col0
----
-963
84

skipif mysql # not compatible
query II rowsort label-9079
SELECT 87 - - + 6 * + MIN ( + - 12 ) * + 15 + 30 col1, - 12 + ( 96 ) AS col0
----
-963
84

query I rowsort
SELECT 2 * + 34 AS col2
----
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9081
SELECT 85 + + COUNT( * ) + + - 40 - - - 16 * - 76 * - CASE + COUNT( * ) WHEN 22 / + 91 THEN - + COALESCE ( - + CASE WHEN NULL IS NOT NULL THEN COUNT( * ) WHEN NOT CAST( NULL AS SIGNED ) + + 94 + + 65 / - 23 > ( NULL ) THEN NULL END, 60 + 72, + - 51 * + ( COUNT( * ) ) + COUNT( * ) + - + COUNT( * ) ) * - 58 END * - 97 * COUNT( * ) / + 41 * + COALESCE ( + - ( + 83 ), + - CAST( - + NULLIF ( + 67, - 1 - - 59 ) AS SIGNED ) + 89 * + 80 ) * + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-9081
SELECT 85 + + COUNT ( * ) + + - 40 - - - 16 * - 76 * - CASE + COUNT ( * ) WHEN 22 / + 91 THEN - + COALESCE ( - + CASE WHEN NULL IS NOT NULL THEN COUNT ( * ) WHEN NOT CAST ( NULL AS INTEGER ) + + 94 + + 65 / - 23 > ( NULL ) THEN NULL END, 60 + 72, + - 51 * + ( COUNT ( * ) ) + COUNT ( * ) + - + COUNT ( * ) ) * - 58 END * - 97 * COUNT ( * ) / + 41 * + COALESCE ( + - ( + 83 ), + - CAST ( - + NULLIF ( + 67, - 1 - - 59 ) AS INTEGER ) + 89 * + 80 ) * + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9082
SELECT ALL 4 - + COUNT( * ) + CASE + ( + - 17 ) WHEN - 22 THEN - 70 * - 79 - 47 WHEN - COALESCE ( + 20, - - 73 ) THEN 85 END - + 41 * - 2 - - - 37
----
NULL

skipif mysql # not compatible
query I rowsort label-9082
SELECT ALL 4 - + COUNT ( * ) + CASE + ( + - 17 ) WHEN - 22 THEN - 70 * - 79 - 47 WHEN - COALESCE ( + 20, - - 73 ) THEN 85 END - + 41 * - 2 - - - 37
----
NULL

query I rowsort
SELECT ALL + 67 * + - NULLIF ( - 54, - 46 ) AS col1
----
3618

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9084
SELECT ALL + - 69 DIV - + SUM( + 70 )
----
0

skipif mysql # not compatible
query I rowsort label-9084
SELECT ALL + - 69 / - + SUM ( + 70 )
----
0

query I rowsort
SELECT ALL - + 98 * - - 54
----
-5292

onlyif mysql # aggregate syntax: 
query I rowsort label-9086
SELECT DISTINCT + COUNT( * ) * 6
----
6

skipif mysql # not compatible
query I rowsort label-9086
SELECT DISTINCT + COUNT ( * ) * 6
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-9087
SELECT - 14 + - - MAX( DISTINCT NULLIF ( + 17, + 5 * - + 11 * - + 70 + + - 65 ) ) AS col1
----
3

skipif mysql # not compatible
query I rowsort label-9087
SELECT - 14 + - - MAX ( DISTINCT NULLIF ( + 17, + 5 * - + 11 * - + 70 + + - 65 ) ) AS col1
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9088
SELECT + COUNT( * ) / - COUNT( * ) - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9088
SELECT + COUNT ( * ) / - COUNT ( * ) - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9089
SELECT ALL - COUNT( * ) * - MAX( - - 79 ) * + 75 AS col1
----
5925

skipif mysql # not compatible
query I rowsort label-9089
SELECT ALL - COUNT ( * ) * - MAX ( - - 79 ) * + 75 AS col1
----
5925

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9090
SELECT CAST( - + 37 AS SIGNED ) AS col1
----
-37

skipif mysql # not compatible
query I rowsort label-9090
SELECT CAST ( - + 37 AS INTEGER ) AS col1
----
-37

query I rowsort
SELECT - 7 * + 80
----
-560

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9092
SELECT CAST( NULL AS SIGNED ) + NULLIF ( + + 13, - 23 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9092
SELECT CAST ( NULL AS INTEGER ) + NULLIF ( + + 13, - 23 ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9093
SELECT ALL + 21 AS col1, - 49 * 88 + + AVG ( ALL + 25 ) + 41 + COUNT( * ) + 62 * + - 88 + - CAST( NULL AS SIGNED ) * + 82 col0
----
21
NULL

skipif mysql # not compatible
query II rowsort label-9093
SELECT ALL + 21 AS col1, - 49 * 88 + + AVG ( ALL + 25 ) + 41 + COUNT ( * ) + 62 * + - 88 + - CAST ( NULL AS INTEGER ) * + 82 col0
----
21
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9094
SELECT DISTINCT - MAX( - 48 ) + - - ( + COUNT( * ) ) * + NULLIF ( - COUNT( * ), + 15 )
----
47

skipif mysql # not compatible
query I rowsort label-9094
SELECT DISTINCT - MAX ( - 48 ) + - - ( + COUNT ( * ) ) * + NULLIF ( - COUNT ( * ), + 15 )
----
47

query I rowsort
SELECT + 64 + - 86 AS col0
----
-22

query I rowsort
SELECT ALL - 71 * + 7 AS col0
----
-497

query I rowsort
SELECT ALL + 49 + 47 * + 97
----
4608

query II rowsort
SELECT DISTINCT - 85 AS col1, + 72 * + COALESCE ( - - 95, 19 ) * - 76
----
-85
-519840

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9099
SELECT ALL - + 78 * - - 25 * 44 * 12 + - 15 + - CAST( + 89 AS SIGNED ) + + - 22 - - - COUNT( DISTINCT - 39 ) AS col1
----
-1029727

skipif mysql # not compatible
query I rowsort label-9099
SELECT ALL - + 78 * - - 25 * 44 * 12 + - 15 + - CAST ( + 89 AS INTEGER ) + + - 22 - - - COUNT ( DISTINCT - 39 ) AS col1
----
-1029727

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9100
SELECT + CAST( NULL AS SIGNED ) / + + 8 * + - 15 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9100
SELECT + CAST ( NULL AS INTEGER ) / + + 8 * + - 15 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9101
SELECT ALL 5 * - 46 + COUNT( * ) * 57 AS col1
----
-173

skipif mysql # not compatible
query I rowsort label-9101
SELECT ALL 5 * - 46 + COUNT ( * ) * 57 AS col1
----
-173

query I rowsort
SELECT - 3 + + ( 28 )
----
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9103
SELECT COALESCE ( + + 69, + ( 39 ) + - COALESCE ( - - CASE + + SUM( DISTINCT - 42 ) WHEN + - ( + - 5 ) THEN + - 66 DIV - COUNT( * ) * COUNT( * ) * + CASE - + 53 WHEN + 92 + - 8 THEN + CAST( NULL AS SIGNED ) WHEN - 57 THEN NULL ELSE + + 52 END END, + 8 + - 30 * + - COUNT( * ) ) ) AS col1
----
69

skipif mysql # not compatible
query I rowsort label-9103
SELECT COALESCE ( + + 69, + ( 39 ) + - COALESCE ( - - CASE + + SUM ( DISTINCT - 42 ) WHEN + - ( + - 5 ) THEN + - 66 / - COUNT ( * ) * COUNT ( * ) * + CASE - + 53 WHEN + 92 + - 8 THEN + CAST ( NULL AS INTEGER ) WHEN - 57 THEN NULL ELSE + + 52 END END, + 8 + - 30 * + - COUNT ( * ) ) ) AS col1
----
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9104
SELECT + ( 59 ) * - - 80 + + 83 * - COUNT( + - ( - ( + CAST( 41 AS SIGNED ) ) ) ) * - + 14 * + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9104
SELECT + ( 59 ) * - - 80 + + 83 * - COUNT ( + - ( - ( + CAST ( 41 AS INTEGER ) ) ) ) * - + 14 * + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT 91 * - + 36
----
-3276

query I rowsort
SELECT DISTINCT + 69 * + 25 * + 98 AS col1
----
169050

query I rowsort
SELECT ALL - 44 * - 69 + - 49
----
2987

query I rowsort
SELECT DISTINCT 55 * + + 91 * - ( - 52 )
----
260260

query I rowsort
SELECT ALL 14 * + 58 AS col1
----
812

onlyif mysql # aggregate syntax: 
query I rowsort label-9110
SELECT + COUNT( * ) - - 58
----
59

skipif mysql # not compatible
query I rowsort label-9110
SELECT + COUNT ( * ) - - 58
----
59

query I rowsort
SELECT ALL 97 * + + 40 - + 93 AS col1
----
3787

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9112
SELECT + CAST( NULL AS SIGNED ) / - - 1
----
NULL

skipif mysql # not compatible
query I rowsort label-9112
SELECT + CAST ( NULL AS INTEGER ) / - - 1
----
NULL

query I rowsort
SELECT 97 * - - 63 + - 81 AS col1
----
6030

query I rowsort
SELECT 24 * - 11 * - 25 - NULLIF ( 68, - + 16 ) * + - 80 * - + 80
----
-428600

onlyif mysql # aggregate syntax: 
query I rowsort label-9115
SELECT + 42 + COUNT( * ) AS col2
----
43

skipif mysql # not compatible
query I rowsort label-9115
SELECT + 42 + COUNT ( * ) AS col2
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-9116
SELECT + 60 * + COUNT( * )
----
60

skipif mysql # not compatible
query I rowsort label-9116
SELECT + 60 * + COUNT ( * )
----
60

onlyif mysql # DIV for integer division: 
query I rowsort label-9117
SELECT 34 * - NULLIF ( + 2, + 26 * + 17 ) + + 19 DIV - 31
----
-68

skipif mysql # not compatible
query I rowsort label-9117
SELECT 34 * - NULLIF ( + 2, + 26 * + 17 ) + + 19 / - 31
----
-68

query I rowsort
SELECT ALL - 27 * + 32 AS col1
----
-864

onlyif mysql # aggregate syntax: 
query I rowsort label-9119
SELECT + + COUNT( * ) + + COUNT( * ) + - - ( 97 ) + - 91
----
8

skipif mysql # not compatible
query I rowsort label-9119
SELECT + + COUNT ( * ) + + COUNT ( * ) + - - ( 97 ) + - 91
----
8

query I rowsort
SELECT - + ( + + 48 ) + 38
----
-10

onlyif mysql # DIV for integer division: 
query I rowsort label-9121
SELECT - 91 DIV + + 38
----
-2

skipif mysql # not compatible
query I rowsort label-9121
SELECT - 91 / + + 38
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9122
SELECT + + 64 + - CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9122
SELECT + + 64 + - CAST ( NULL AS INTEGER ) col2
----
NULL

query I rowsort
SELECT - NULLIF ( + - NULLIF ( - + 51, + + 29 ), 29 - - 67 ) * + 79
----
-4029

query I rowsort
SELECT DISTINCT + + 99 + + - 41 - - 28 AS col0
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-9125
SELECT - - ( COUNT( * ) ) * - - 78 AS col0
----
78

skipif mysql # not compatible
query I rowsort label-9125
SELECT - - ( COUNT ( * ) ) * - - 78 AS col0
----
78

query I rowsort
SELECT - 93 + - 97
----
-190

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9127
SELECT ALL - CAST( + 26 AS SIGNED ) AS col2, + 5 AS col0
----
-26
5

skipif mysql # not compatible
query II rowsort label-9127
SELECT ALL - CAST ( + 26 AS INTEGER ) AS col2, + 5 AS col0
----
-26
5

query I rowsort
SELECT - 46 + - 49 AS col1
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-9129
SELECT DISTINCT + 82 * - COUNT( * ) AS col2
----
-82

skipif mysql # not compatible
query I rowsort label-9129
SELECT DISTINCT + 82 * - COUNT ( * ) AS col2
----
-82

onlyif mysql # aggregate syntax: 
query II rowsort label-9130
SELECT ALL + 26 AS col2, - NULLIF ( 51, + 16 * + COUNT( * ) ) + - COUNT( * ) AS col1
----
26
-52

skipif mysql # not compatible
query II rowsort label-9130
SELECT ALL + 26 AS col2, - NULLIF ( 51, + 16 * + COUNT ( * ) ) + - COUNT ( * ) AS col1
----
26
-52

query I rowsort
SELECT CASE + 66 WHEN + 92 + + 26 + + + 75 / - 27 THEN 59 END / 57 + - + 35
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9132
SELECT CAST( + 53 AS SIGNED ) * - 67 + - 81
----
-3632

skipif mysql # not compatible
query I rowsort label-9132
SELECT CAST ( + 53 AS INTEGER ) * - 67 + - 81
----
-3632

onlyif mysql # aggregate syntax: 
query I rowsort label-9133
SELECT ALL + ( - - COUNT( * ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9133
SELECT ALL + ( - - COUNT ( * ) ) AS col0
----
1

query I rowsort
SELECT DISTINCT + 82 * 56 * + + 81 AS col2
----
371952

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9135
SELECT ALL - CAST( NULL AS SIGNED ) / - 35 - - + 27
----
NULL

skipif mysql # not compatible
query I rowsort label-9135
SELECT ALL - CAST ( NULL AS INTEGER ) / - 35 - - + 27
----
NULL

query I rowsort
SELECT - 50 + 27
----
-23

onlyif mysql # aggregate syntax: 
query II rowsort label-9137
SELECT DISTINCT + 29 AS col1, COUNT( * ) col2
----
29
1

skipif mysql # not compatible
query II rowsort label-9137
SELECT DISTINCT + 29 AS col1, COUNT ( * ) col2
----
29
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9138
SELECT 28 DIV - 98 + ( - 51 )
----
-51

skipif mysql # not compatible
query I rowsort label-9138
SELECT 28 / - 98 + ( - 51 )
----
-51

query I rowsort
SELECT ( 79 ) AS col2
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-9140
SELECT DISTINCT NULLIF ( + + 40, + 96 * 34 + + 46 + + + 77 + ( - 42 ) ) * + ( - ( COUNT( * ) ) ) AS col0
----
-40

skipif mysql # not compatible
query I rowsort label-9140
SELECT DISTINCT NULLIF ( + + 40, + 96 * 34 + + 46 + + + 77 + ( - 42 ) ) * + ( - ( COUNT ( * ) ) ) AS col0
----
-40

query I rowsort
SELECT + 72 + + - 38 * - 59 AS col2
----
2314

query I rowsort
SELECT ALL ( + 17 ) * - 12 * + 75 * + 65 AS col2
----
-994500

query II rowsort
SELECT NULLIF ( 72, + - 64 ) col1, 59 * - 15 AS col2
----
72
-885

onlyif mysql # DIV for integer division: 
query I rowsort label-9144
SELECT + 60 DIV + - 4 AS col1
----
-15

skipif mysql # not compatible
query I rowsort label-9144
SELECT + 60 / + - 4 AS col1
----
-15

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9145
SELECT DISTINCT - COUNT( * ) * + 32 DIV 59 AS col0, 63 AS col0
----
0
63

skipif mysql # not compatible
query II rowsort label-9145
SELECT DISTINCT - COUNT ( * ) * + 32 / 59 AS col0, 63 AS col0
----
0
63

onlyif mysql # DIV for integer division: 
query I rowsort label-9146
SELECT + 95 DIV - 29 AS col1
----
-3

skipif mysql # not compatible
query I rowsort label-9146
SELECT + 95 / - 29 AS col1
----
-3

query I rowsort
SELECT ALL - 2 * + 14 col2
----
-28

onlyif mysql # aggregate syntax: 
query II rowsort label-9148
SELECT DISTINCT 4 * + ( - 2 ) col1, - 22 + + COUNT( + 71 ) + + COALESCE ( - 19, 16 + + COUNT( * ) * - - 59 ) AS col0
----
-8
-40

skipif mysql # not compatible
query II rowsort label-9148
SELECT DISTINCT 4 * + ( - 2 ) col1, - 22 + + COUNT ( + 71 ) + + COALESCE ( - 19, 16 + + COUNT ( * ) * - - 59 ) AS col0
----
-8
-40

onlyif mysql # DIV for integer division: 
query I rowsort label-9149
SELECT - 78 DIV NULLIF ( + - 50, + 33 ) - 54 + + - 24
----
-77

skipif mysql # not compatible
query I rowsort label-9149
SELECT - 78 / NULLIF ( + - 50, + 33 ) - 54 + + - 24
----
-77

query I rowsort
SELECT + 66 * - 68 * - - ( + 1 ) - + 72 AS col0
----
-4560

query I rowsort
SELECT + 5 - + 91
----
-86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9152
SELECT + CASE WHEN NULL NOT IN ( + 1, - 0, 2 + - 75, - + 31 ) THEN - - ( + + 43 ) ELSE + - CAST( - 25 AS SIGNED ) END
----
25

skipif mysql # not compatible
query I rowsort label-9152
SELECT + CASE WHEN NULL NOT IN ( + 1, - 0, 2 + - 75, - + 31 ) THEN - - ( + + 43 ) ELSE + - CAST ( - 25 AS INTEGER ) END
----
25

query I rowsort
SELECT ALL + NULLIF ( + - 84, 27 * 83 + + + 77 ) AS col1
----
-84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9154
SELECT + ( + + 30 ) - - ( - CASE + + 6 WHEN + 18 + - CAST( NULL AS SIGNED ) THEN - 38 * - 76 END ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9154
SELECT + ( + + 30 ) - - ( - CASE + + 6 WHEN + 18 + - CAST ( NULL AS INTEGER ) THEN - 38 * - 76 END ) col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9155
SELECT + - 93 * COUNT( * ) * + + CASE - 91 WHEN + 41 * - + 73 THEN NULL WHEN 34 THEN 38 * CASE - 53 WHEN 17 THEN NULL ELSE CASE - 67 WHEN + 28 * + - 43 * - - CASE - NULLIF ( 6, + + COALESCE ( 11, + NULLIF ( - MIN( DISTINCT - - 64 ), + + COUNT( * ) / - 36 ), + 70 ) ) WHEN CAST( NULL AS SIGNED ) - + 68 THEN NULL WHEN 90 THEN CASE - 49 WHEN + + COALESCE ( + CAST( + + COUNT( * ) AS SIGNED ), + 88 ) + + COUNT( * ) THEN NULL ELSE + 47 END ELSE + - 79 + + 41 END THEN NULL WHEN SUM( + 72 ) * + 8 THEN NULL WHEN 87 * 44 THEN 7 + + ( CASE + 33 WHEN + 4 / - COUNT( * ) THEN + CASE 70 WHEN COALESCE ( - 15, 58 ) + ( + 11 ) THEN 70 * CASE + 44 WHEN 12 * 52 THEN 87 * + 65 - - 26 ELSE + 19 * + COALESCE ( 8, + 70 ) END + 22 / 64 WHEN 34 * + 49 THEN 56 * 13 + - 41 END WHEN + 52 * 14 THEN 1 END + 98 ) / - 45 END END END
----
NULL

skipif mysql # not compatible
query I rowsort label-9155
SELECT + - 93 * COUNT ( * ) * + + CASE - 91 WHEN + 41 * - + 73 THEN NULL WHEN 34 THEN 38 * CASE - 53 WHEN 17 THEN NULL ELSE CASE - 67 WHEN + 28 * + - 43 * - - CASE - NULLIF ( 6, + + COALESCE ( 11, + NULLIF ( - MIN ( DISTINCT - - 64 ), + + COUNT ( * ) / - 36 ), + 70 ) ) WHEN CAST ( NULL AS INTEGER ) - + 68 THEN NULL WHEN 90 THEN CASE - 49 WHEN + + COALESCE ( + CAST ( + + COUNT ( * ) AS INTEGER ), + 88 ) + + COUNT ( * ) THEN NULL ELSE + 47 END ELSE + - 79 + + 41 END THEN NULL WHEN SUM ( + 72 ) * + 8 THEN NULL WHEN 87 * 44 THEN 7 + + ( CASE + 33 WHEN + 4 / - COUNT ( * ) THEN + CASE 70 WHEN COALESCE ( - 15, 58 ) + ( + 11 ) THEN 70 * CASE + 44 WHEN 12 * 52 THEN 87 * + 65 - - 26 ELSE + 19 * + COALESCE ( 8, + 70 ) END + 22 / 64 WHEN 34 * + 49 THEN 56 * 13 + - 41 END WHEN + 52 * 14 THEN 1 END + 98 ) / - 45 END END END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9156
SELECT DISTINCT - 76, + 73 * - 13 * CAST( - 45 AS SIGNED ) col0
----
-76
42705

skipif mysql # not compatible
query II rowsort label-9156
SELECT DISTINCT - 76, + 73 * - 13 * CAST ( - 45 AS INTEGER ) col0
----
-76
42705

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9157
SELECT ALL CAST( NULL AS SIGNED ) + + NULLIF ( - NULLIF ( + 32, + MIN( ALL - - 26 ) ), + + 39 * - 35 + + 6 + - 13 ) - - 87
----
NULL

skipif mysql # not compatible
query I rowsort label-9157
SELECT ALL CAST ( NULL AS INTEGER ) + + NULLIF ( - NULLIF ( + 32, + MIN ( ALL - - 26 ) ), + + 39 * - 35 + + 6 + - 13 ) - - 87
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9158
SELECT ALL - NULLIF ( 53, - 17 * - 44 ) + AVG ( CAST( NULL AS SIGNED ) ) * + - 49
----
NULL

skipif mysql # not compatible
query I rowsort label-9158
SELECT ALL - NULLIF ( 53, - 17 * - 44 ) + AVG ( CAST ( NULL AS INTEGER ) ) * + - 49
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9159
SELECT ALL + CAST( NULL AS SIGNED ) + + 17 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9159
SELECT ALL + CAST ( NULL AS INTEGER ) + + 17 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9160
SELECT DISTINCT NULLIF ( 1, + + 4 + - - COUNT( ALL 43 ) + - - 65 ) + + 44 AS col1
----
45

skipif mysql # not compatible
query I rowsort label-9160
SELECT DISTINCT NULLIF ( 1, + + 4 + - - COUNT ( ALL 43 ) + - - 65 ) + + 44 AS col1
----
45

onlyif mysql # DIV for integer division: 
query I rowsort label-9161
SELECT 86 - + NULLIF ( - 42, + - 80 + + 53 ) DIV + ( ( 57 ) ) * 68 DIV - 90 col2
----
86

skipif mysql # not compatible
query I rowsort label-9161
SELECT 86 - + NULLIF ( - 42, + - 80 + + 53 ) / + ( ( 57 ) ) * 68 / - 90 col2
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-9162
SELECT ALL 52 + + MIN( DISTINCT 53 ) * - NULLIF ( - - 44, 29 * 89 * + COUNT( * ) )
----
-2280

skipif mysql # not compatible
query I rowsort label-9162
SELECT ALL 52 + + MIN ( DISTINCT 53 ) * - NULLIF ( - - 44, 29 * 89 * + COUNT ( * ) )
----
-2280

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9163
SELECT DISTINCT COALESCE ( - + 4, + CAST( NULL AS SIGNED ) )
----
-4

skipif mysql # not compatible
query I rowsort label-9163
SELECT DISTINCT COALESCE ( - + 4, + CAST ( NULL AS INTEGER ) )
----
-4

query I rowsort
SELECT + COALESCE ( - 72, - + 51 - 83 * + + 12 )
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-9165
SELECT 66 + - COUNT( * ) AS col2
----
65

skipif mysql # not compatible
query I rowsort label-9165
SELECT 66 + - COUNT ( * ) AS col2
----
65

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-9166
SELECT ALL + 28 * + MIN( ALL 27 ) * CASE + - 94 WHEN - 46 THEN + 76 * + CAST( NULL AS DECIMAL ) * COUNT( * ) * 96 WHEN + 28 * + + NULLIF ( ( - + 76 ), - - 20 ) THEN NULL ELSE NULL END / + 77 AS col0, COUNT( * ) AS col0
----
NULL
1

skipif mysql # not compatible
query II rowsort label-9166
SELECT ALL + 28 * + MIN ( ALL 27 ) * CASE + - 94 WHEN - 46 THEN + 76 * + CAST ( NULL AS REAL ) * COUNT ( * ) * 96 WHEN + 28 * + + NULLIF ( ( - + 76 ), - - 20 ) THEN NULL ELSE NULL END / + 77 AS col0, COUNT ( * ) AS col0
----
NULL
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9167
SELECT DISTINCT - COUNT( * ) - + - 67 AS col0
----
66

skipif mysql # not compatible
query I rowsort label-9167
SELECT DISTINCT - COUNT ( * ) - + - 67 AS col0
----
66

query I rowsort
SELECT ALL - 5 - + 30 - + 88 * 64 * - ( + - 80 ) AS col1
----
-450595

query I rowsort
SELECT ALL - 96 * 83 AS col2
----
-7968

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9170
SELECT + COUNT( * ) DIV - + 46 + + COUNT( * ) col1
----
1

skipif mysql # not compatible
query I rowsort label-9170
SELECT + COUNT ( * ) / - + 46 + + COUNT ( * ) col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9171
SELECT ALL - COUNT( * ) * + 13 AS col2
----
-13

skipif mysql # not compatible
query I rowsort label-9171
SELECT ALL - COUNT ( * ) * + 13 AS col2
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-9172
SELECT SUM( ALL 76 ) * - - 65
----
4940

skipif mysql # not compatible
query I rowsort label-9172
SELECT SUM ( ALL 76 ) * - - 65
----
4940

onlyif mysql # aggregate syntax: 
query I rowsort label-9173
SELECT 16 * - MIN( DISTINCT + 84 )
----
-1344

skipif mysql # not compatible
query I rowsort label-9173
SELECT 16 * - MIN ( DISTINCT + 84 )
----
-1344

query II rowsort
SELECT 90 * - 68 AS col2, + 7 col0
----
-6120
7

onlyif mysql # aggregate syntax: 
query I rowsort label-9175
SELECT ALL + COUNT( * ) * + - 22
----
-22

skipif mysql # not compatible
query I rowsort label-9175
SELECT ALL + COUNT ( * ) * + - 22
----
-22

query I rowsort
SELECT + ( - - 88 ) * - 31 * - 1 + 5
----
2733

query I rowsort
SELECT 15 * - 89 * - 12 AS col1
----
16020

query I rowsort
SELECT 61 * - 80 - - 25 + - ( - ( 32 ) )
----
-4823

query II rowsort
SELECT 31 + - 65 col1, - 55
----
-34
-55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9180
SELECT 5 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9180
SELECT 5 * + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT - - 49 + + - 23
----
26

onlyif mysql # DIV for integer division: 
query I rowsort label-9182
SELECT 53 DIV + 72
----
0

skipif mysql # not compatible
query I rowsort label-9182
SELECT 53 / + 72
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9183
SELECT COUNT( * ) + - 47 + - 16 * + - 18 + COUNT( * )
----
243

skipif mysql # not compatible
query I rowsort label-9183
SELECT COUNT ( * ) + - 47 + - 16 * + - 18 + COUNT ( * )
----
243

query I rowsort
SELECT ALL - + 82 + 96 + NULLIF ( - 26, + 95 * - - 57 * - 2 + + 18 ) * + - ( 97 )
----
2536

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9185
SELECT ALL 56 + - COUNT( * ) * + ( + - 50 ) DIV + 59 + + 77 + + 37
----
170

skipif mysql # not compatible
query I rowsort label-9185
SELECT ALL 56 + - COUNT ( * ) * + ( + - 50 ) / + 59 + + 77 + + 37
----
170

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9186
SELECT NULLIF ( - + ( + 37 ), + + MIN( DISTINCT + 79 ) ) DIV + COUNT( * ) + - SUM( - - ( + 47 ) ) * - 91 - + 90 * 95
----
-4310

skipif mysql # not compatible
query I rowsort label-9186
SELECT NULLIF ( - + ( + 37 ), + + MIN ( DISTINCT + 79 ) ) / + COUNT ( * ) + - SUM ( - - ( + 47 ) ) * - 91 - + 90 * 95
----
-4310

query I rowsort
SELECT ALL - + 7 + - ( - - 67 ) + - 66 col1
----
-140

query I rowsort
SELECT ALL 83 + + 27 AS col2
----
110

query I rowsort
SELECT 9 + + 37 * - 86
----
-3173

query II rowsort
SELECT ALL + 92 * + + 97 AS col0, 86 col2
----
8924
86

onlyif mysql # aggregate syntax: 
query II rowsort label-9191
SELECT 42 * COUNT( * ) AS col1, COUNT( ALL 35 )
----
42
1

skipif mysql # not compatible
query II rowsort label-9191
SELECT 42 * COUNT ( * ) AS col1, COUNT ( ALL 35 )
----
42
1

query I rowsort
SELECT + COALESCE ( - + 72, + + 48 )
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-9193
SELECT 1 + + CASE + + COUNT( * ) WHEN + - 50 * + 11 THEN - - COUNT( * ) WHEN - + AVG ( + 89 ) THEN 65 + 41 + - 91 / 72 END * - 5 * + + AVG ( DISTINCT - 64 ) * 40 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9193
SELECT 1 + + CASE + + COUNT ( * ) WHEN + - 50 * + 11 THEN - - COUNT ( * ) WHEN - + AVG ( + 89 ) THEN 65 + 41 + - 91 / 72 END * - 5 * + + AVG ( DISTINCT - 64 ) * 40 AS col2
----
NULL

query I rowsort
SELECT 19 + - - 2
----
21

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9195
SELECT DISTINCT MAX( DISTINCT NULLIF ( - + 68, 92 ) ) - - ( + COUNT( ALL - ( 31 ) ) ) DIV 12, 50 AS col1
----
-68
50

skipif mysql # not compatible
query II rowsort label-9195
SELECT DISTINCT MAX ( DISTINCT NULLIF ( - + 68, 92 ) ) - - ( + COUNT ( ALL - ( 31 ) ) ) / 12, 50 AS col1
----
-68
50

query I rowsort
SELECT DISTINCT 62 * 53 AS col1
----
3286

query I rowsort
SELECT 0 * + 10
----
0

query I rowsort
SELECT ALL 91 * 99 AS col1
----
9009

query I rowsort
SELECT 71 * - 88 AS col0
----
-6248

query I rowsort
SELECT 6 + - 79
----
-73

query I rowsort
SELECT DISTINCT 26 * + 3 AS col0
----
78

onlyif mysql # aggregate syntax: 
query II rowsort label-9202
SELECT - 78 AS col2, - COALESCE ( + MIN( DISTINCT + + 99 ), 20 + - 58 ) * 72
----
-78
-7128

skipif mysql # not compatible
query II rowsort label-9202
SELECT - 78 AS col2, - COALESCE ( + MIN ( DISTINCT + + 99 ), 20 + - 58 ) * 72
----
-78
-7128

onlyif mysql # DIV for integer division: 
query I rowsort label-9203
SELECT 90 DIV 49 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9203
SELECT 90 / 49 AS col0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9204
SELECT 25 * - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9204
SELECT 25 * - - CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT ALL - 61 AS col1, ( + + 40 ) AS col1
----
-61
40

onlyif mysql # aggregate syntax: 
query I rowsort label-9206
SELECT DISTINCT 90 * COUNT( * )
----
90

skipif mysql # not compatible
query I rowsort label-9206
SELECT DISTINCT 90 * COUNT ( * )
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-9207
SELECT ALL - CASE - 73 WHEN 62 THEN - 83 * - - ( + COUNT( * ) ) + 11 WHEN + AVG ( + 74 ) * COUNT( * ) + + + COUNT( * ) THEN 43 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9207
SELECT ALL - CASE - 73 WHEN 62 THEN - 83 * - - ( + COUNT ( * ) ) + 11 WHEN + AVG ( + 74 ) * COUNT ( * ) + + + COUNT ( * ) THEN 43 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9208
SELECT ALL - 75 DIV - 50
----
1

skipif mysql # not compatible
query I rowsort label-9208
SELECT ALL - 75 / - 50
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9209
SELECT COUNT( * ) DIV + 60 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9209
SELECT COUNT ( * ) / + 60 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9210
SELECT DISTINCT - COUNT( + 18 )
----
-1

skipif mysql # not compatible
query I rowsort label-9210
SELECT DISTINCT - COUNT ( + 18 )
----
-1

query I rowsort
SELECT ALL - 20 * 84 + - - 88 + - + 69 * - 57 * + 86
----
336646

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9212
SELECT COUNT( * ) DIV - 10 * 99
----
0

skipif mysql # not compatible
query I rowsort label-9212
SELECT COUNT ( * ) / - 10 * 99
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9213
SELECT 41 * - COUNT( * ) AS col0
----
-41

skipif mysql # not compatible
query I rowsort label-9213
SELECT 41 * - COUNT ( * ) AS col0
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-9214
SELECT MIN( - 59 )
----
-59

skipif mysql # not compatible
query I rowsort label-9214
SELECT MIN ( - 59 )
----
-59

query I rowsort
SELECT DISTINCT + 57 + + 66
----
123

onlyif mysql # aggregate syntax: 
query I rowsort label-9216
SELECT ALL - ( + CASE - COUNT( * ) WHEN 32 / + 31 THEN 19 ELSE - + 14 END ) + + 53
----
67

skipif mysql # not compatible
query I rowsort label-9216
SELECT ALL - ( + CASE - COUNT ( * ) WHEN 32 / + 31 THEN 19 ELSE - + 14 END ) + + 53
----
67

query I rowsort
SELECT ALL + + 59 + - 16
----
43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9218
SELECT ALL - - COUNT( * ) + - 68 - - - CAST( + 98 AS SIGNED ) * + + 56, + 51 AS col1
----
-5555
51

skipif mysql # not compatible
query II rowsort label-9218
SELECT ALL - - COUNT ( * ) + - 68 - - - CAST ( + 98 AS INTEGER ) * + + 56, + 51 AS col1
----
-5555
51

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9219
SELECT ALL + COUNT( * ) + - + 12 * ( - - CAST( NULL AS DECIMAL ) ) * AVG ( - + 87 ) * 9 + 50 + + - ( - + COALESCE ( - 23, - - 99 * + SUM( - COALESCE ( + - 18, - + 82 ) ), 3 + - 21 ) ) - - 93
----
NULL

skipif mysql # not compatible
query I rowsort label-9219
SELECT ALL + COUNT ( * ) + - + 12 * ( - - CAST ( NULL AS REAL ) ) * AVG ( - + 87 ) * 9 + 50 + + - ( - + COALESCE ( - 23, - - 99 * + SUM ( - COALESCE ( + - 18, - + 82 ) ), 3 + - 21 ) ) - - 93
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9220
SELECT DISTINCT - CASE - 36 WHEN CAST( NULL AS SIGNED ) THEN NULL WHEN - 66 * 62 THEN + + COUNT( * ) + + + 24 END + + 58 - - 9 + 93 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9220
SELECT DISTINCT - CASE - 36 WHEN CAST ( NULL AS INTEGER ) THEN NULL WHEN - 66 * 62 THEN + + COUNT ( * ) + + + 24 END + + 58 - - 9 + 93 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9221
SELECT COUNT( * ) + - + 2 - + 83 - + 58 + - COUNT( 65 ) DIV - + COALESCE ( + 72, - 64 ) - + 51 * 0 * - 49 DIV + 95 * + 55 DIV ( + 51 ) + - + 73 + - 64
----
-279

skipif mysql # not compatible
query I rowsort label-9221
SELECT COUNT ( * ) + - + 2 - + 83 - + 58 + - COUNT ( 65 ) / - + COALESCE ( + 72, - 64 ) - + 51 * 0 * - 49 / + 95 * + 55 / ( + 51 ) + - + 73 + - 64
----
-279

query II rowsort
SELECT DISTINCT + 36, 60 AS col0
----
36
60

query I rowsort
SELECT ( - - 0 ) AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9224
SELECT - - 66 - + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9224
SELECT - - 66 - + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9225
SELECT DISTINCT - + 13 DIV + 19 DIV + COUNT( ALL - + 31 ) + + + COUNT( * ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9225
SELECT DISTINCT - + 13 / + 19 / + COUNT ( ALL - + 31 ) + + + COUNT ( * ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9226
SELECT - 31 + COUNT( * ) + + ( + + 84 )
----
54

skipif mysql # not compatible
query I rowsort label-9226
SELECT - 31 + COUNT ( * ) + + ( + + 84 )
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-9227
SELECT ALL 70 * NULLIF ( - COUNT( * ), + 14 - 72 ) - 20
----
-90

skipif mysql # not compatible
query I rowsort label-9227
SELECT ALL 70 * NULLIF ( - COUNT ( * ), + 14 - 72 ) - 20
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-9228
SELECT - COUNT( * ) * 93 AS col2
----
-93

skipif mysql # not compatible
query I rowsort label-9228
SELECT - COUNT ( * ) * 93 AS col2
----
-93

query I rowsort
SELECT ALL ( 17 ) AS col2
----
17

query I rowsort
SELECT DISTINCT + + 38 - - - 51
----
-13

query II rowsort
SELECT 52, + 84 AS col0
----
52
84

query I rowsort
SELECT + 62 + + + 38 * - NULLIF ( + 57, + + 71 - + 20 ) * 30 * + 20 AS col1
----
-1299538

query I rowsort
SELECT - 74 * + 47
----
-3478

onlyif mysql # aggregate syntax: 
query II rowsort label-9234
SELECT - COUNT( * ), COUNT( * ) + + + 92 + + + 18 * ( + + 52 ) AS col1
----
-1
1029

skipif mysql # not compatible
query II rowsort label-9234
SELECT - COUNT ( * ), COUNT ( * ) + + + 92 + + + 18 * ( + + 52 ) AS col1
----
-1
1029

onlyif mysql # aggregate syntax: 
query II rowsort label-9235
SELECT ALL 21 AS col0, 29 * - + COUNT( * ) - 20 * - 6
----
21
91

skipif mysql # not compatible
query II rowsort label-9235
SELECT ALL 21 AS col0, 29 * - + COUNT ( * ) - 20 * - 6
----
21
91

onlyif mysql # aggregate syntax: 
query II rowsort label-9236
SELECT 38, - COUNT( * ) AS col0
----
38
-1

skipif mysql # not compatible
query II rowsort label-9236
SELECT 38, - COUNT ( * ) AS col0
----
38
-1

query II rowsort
SELECT - 73 AS col2, 82 AS col0
----
-73
82

onlyif mysql # DIV for integer division: 
query I rowsort label-9238
SELECT + 56 DIV + 19
----
2

skipif mysql # not compatible
query I rowsort label-9238
SELECT + 56 / + 19
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9239
SELECT - 26 + + CAST( NULL AS SIGNED ) + + COUNT( * ) + + - 39 / - - 48
----
NULL

skipif mysql # not compatible
query I rowsort label-9239
SELECT - 26 + + CAST ( NULL AS INTEGER ) + + COUNT ( * ) + + - 39 / - - 48
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9240
SELECT ALL 30 AS col0, ( 72 ) DIV COUNT( ( 0 ) )
----
30
72

skipif mysql # not compatible
query II rowsort label-9240
SELECT ALL 30 AS col0, ( 72 ) / COUNT ( ( 0 ) )
----
30
72

query I rowsort
SELECT + 43 * - + ( + 68 ) * - 3
----
8772

query I rowsort
SELECT ALL - 34 + - - 36 - + 78
----
-76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9243
SELECT ALL CAST( NULL AS SIGNED ) + - 23
----
NULL

skipif mysql # not compatible
query I rowsort label-9243
SELECT ALL CAST ( NULL AS INTEGER ) + - 23
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9244
SELECT - CASE - 32 WHEN - + ( + 25 ) THEN - COUNT( * ) WHEN + - ( - 40 ) THEN + CAST( NULL AS DECIMAL ) / 11 * + 81 + - - 66 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9244
SELECT - CASE - 32 WHEN - + ( + 25 ) THEN - COUNT ( * ) WHEN + - ( - 40 ) THEN + CAST ( NULL AS REAL ) / 11 * + 81 + - - 66 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9245
SELECT ALL - CASE 65 WHEN - 21 THEN - CAST( NULL AS SIGNED ) * 21 ELSE - + 41 * + 10 END * - 53 + - 76 * - COUNT( * )
----
-21654

skipif mysql # not compatible
query I rowsort label-9245
SELECT ALL - CASE 65 WHEN - 21 THEN - CAST ( NULL AS INTEGER ) * 21 ELSE - + 41 * + 10 END * - 53 + - 76 * - COUNT ( * )
----
-21654

onlyif mysql # aggregate syntax: 
query I rowsort label-9246
SELECT + 13 * COUNT( * ) * - + 75 * + 67
----
-65325

skipif mysql # not compatible
query I rowsort label-9246
SELECT + 13 * COUNT ( * ) * - + 75 * + 67
----
-65325

onlyif mysql # DIV for integer division: 
query I rowsort label-9247
SELECT - 80 DIV + 39 + - 68
----
-70

skipif mysql # not compatible
query I rowsort label-9247
SELECT - 80 / + 39 + - 68
----
-70

onlyif mysql # aggregate syntax: 
query II rowsort label-9248
SELECT + ( COUNT( * ) ), 20 + 54 + 47 * + 47 AS col0
----
1
2283

skipif mysql # not compatible
query II rowsort label-9248
SELECT + ( COUNT ( * ) ), 20 + 54 + 47 * + 47 AS col0
----
1
2283

onlyif mysql # DIV for integer division: 
query I rowsort label-9249
SELECT - 18 DIV + 41 + 4
----
4

skipif mysql # not compatible
query I rowsort label-9249
SELECT - 18 / + 41 + 4
----
4

query I rowsort
SELECT ( + + 92 ) AS col2
----
92

query I rowsort
SELECT ALL + 99 * + COALESCE ( - + 86, + 6 ) + - - 45 + - 41 - 25 * - + 10
----
-8260

query II rowsort
SELECT + 77 + 76 col0, + 49
----
153
49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9253
SELECT + CAST( NULL AS SIGNED ) / - COUNT( * ) - + + 47 + 53 * + 81 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9253
SELECT + CAST ( NULL AS INTEGER ) / - COUNT ( * ) - + + 47 + 53 * + 81 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9254
SELECT ALL + + COALESCE ( 22, + 73, + - COUNT( * ) )
----
22

skipif mysql # not compatible
query I rowsort label-9254
SELECT ALL + + COALESCE ( 22, + 73, + - COUNT ( * ) )
----
22

onlyif mysql # aggregate syntax: 
query II rowsort label-9255
SELECT DISTINCT + 51 col1, - 68 * 54 * - COUNT( * ) AS col2
----
51
3672

skipif mysql # not compatible
query II rowsort label-9255
SELECT DISTINCT + 51 col1, - 68 * 54 * - COUNT ( * ) AS col2
----
51
3672

query I rowsort
SELECT + - COALESCE ( + COALESCE ( 57, + - 71 ), + + 63 ) * - 43 AS col0
----
2451

onlyif mysql # aggregate syntax: 
query I rowsort label-9257
SELECT + MIN( 85 ) + + MIN( + 70 )
----
155

skipif mysql # not compatible
query I rowsort label-9257
SELECT + MIN ( 85 ) + + MIN ( + 70 )
----
155

query I rowsort
SELECT + 12 * - 45 AS col0
----
-540

query I rowsort
SELECT - - 56 + - ( 28 ) AS col0
----
28

query I rowsort
SELECT + - ( 80 ) AS col0
----
-80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9261
SELECT + - 79 AS col2, COUNT( * ) + - CAST( NULL AS SIGNED ) + + 22 / - CAST( NULL AS SIGNED )
----
-79
NULL

skipif mysql # not compatible
query II rowsort label-9261
SELECT + - 79 AS col2, COUNT ( * ) + - CAST ( NULL AS INTEGER ) + + 22 / - CAST ( NULL AS INTEGER )
----
-79
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9262
SELECT + 48 * - COUNT( * ) + ( 50 )
----
2

skipif mysql # not compatible
query I rowsort label-9262
SELECT + 48 * - COUNT ( * ) + ( 50 )
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9263
SELECT ALL + + 40 * - ( - CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9263
SELECT ALL + + 40 * - ( - CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

query I rowsort
SELECT + 88 + + - 32
----
56

query I rowsort
SELECT + 1 + + ( + 5 ) AS col0
----
6

query I rowsort
SELECT ALL - 9 * - 41 AS col1
----
369

onlyif mysql # aggregate syntax: 
query I rowsort label-9267
SELECT DISTINCT + - COALESCE ( + COALESCE ( - - 7, COUNT( * ) + COALESCE ( + ( - 13 ), - + 53 + 57, - 53 ) * - MIN( DISTINCT + + 34 ) ), 42 )
----
-7

skipif mysql # not compatible
query I rowsort label-9267
SELECT DISTINCT + - COALESCE ( + COALESCE ( - - 7, COUNT ( * ) + COALESCE ( + ( - 13 ), - + 53 + 57, - 53 ) * - MIN ( DISTINCT + + 34 ) ), 42 )
----
-7

query II rowsort
SELECT ALL 79 AS col1, + 35
----
79
35

onlyif mysql # aggregate syntax: 
query I rowsort label-9269
SELECT - + MIN( DISTINCT - ( - ( + 97 ) ) ) * + 98 AS col0
----
-9506

skipif mysql # not compatible
query I rowsort label-9269
SELECT - + MIN ( DISTINCT - ( - ( + 97 ) ) ) * + 98 AS col0
----
-9506

query I rowsort
SELECT ALL + - 35 * 60
----
-2100

query I rowsort
SELECT - - ( - + 91 ) AS col2
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-9272
SELECT - - 79 + - COUNT( * ) * - 39
----
118

skipif mysql # not compatible
query I rowsort label-9272
SELECT - - 79 + - COUNT ( * ) * - 39
----
118

onlyif mysql # aggregate syntax: 
query I rowsort label-9273
SELECT DISTINCT CASE + NULLIF ( + - COALESCE ( - - 62, - COUNT( * ) ), - 47 * + COUNT( 57 ) * + 40 * 73 - 93 ) WHEN + - 33 THEN NULL WHEN + - 18 THEN NULL WHEN 54 THEN NULL ELSE - 85 * 99 END
----
-8415

skipif mysql # not compatible
query I rowsort label-9273
SELECT DISTINCT CASE + NULLIF ( + - COALESCE ( - - 62, - COUNT ( * ) ), - 47 * + COUNT ( 57 ) * + 40 * 73 - 93 ) WHEN + - 33 THEN NULL WHEN + - 18 THEN NULL WHEN 54 THEN NULL ELSE - 85 * 99 END
----
-8415

query I rowsort
SELECT DISTINCT NULLIF ( + 68, ( - 30 ) )
----
68

query II rowsort
SELECT - 80 * - 93, + 14 AS col1
----
7440
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9276
SELECT ALL ( - NULLIF ( + - SUM( DISTINCT 23 ), CAST( CASE - + 80 WHEN - 78 THEN + + 50 * - 58 WHEN + + 30 THEN 96 END AS SIGNED ) ) ), 73 AS col2
----
23
73

skipif mysql # not compatible
query II rowsort label-9276
SELECT ALL ( - NULLIF ( + - SUM ( DISTINCT 23 ), CAST ( CASE - + 80 WHEN - 78 THEN + + 50 * - 58 WHEN + + 30 THEN 96 END AS INTEGER ) ) ), 73 AS col2
----
23
73

onlyif mysql # aggregate syntax: 
query II rowsort label-9277
SELECT - 68 + + COUNT( * ) AS col0, - 38 AS col0
----
-67
-38

skipif mysql # not compatible
query II rowsort label-9277
SELECT - 68 + + COUNT ( * ) AS col0, - 38 AS col0
----
-67
-38

onlyif mysql # aggregate syntax: 
query II rowsort label-9278
SELECT ALL + 74 * + 45 AS col0, - COUNT( * )
----
3330
-1

skipif mysql # not compatible
query II rowsort label-9278
SELECT ALL + 74 * + 45 AS col0, - COUNT ( * )
----
3330
-1

query I rowsort
SELECT ALL + 2 + - 4 AS col1
----
-2

query I rowsort
SELECT ALL 32 + - 81 + 95 col0
----
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9281
SELECT ALL CAST( + - COALESCE ( + + 91, - 19 * + 74 * + + 72 * + 80, - 14 ) AS SIGNED ) + + 10 + - COUNT( * ) AS col1
----
-82

skipif mysql # not compatible
query I rowsort label-9281
SELECT ALL CAST ( + - COALESCE ( + + 91, - 19 * + 74 * + + 72 * + 80, - 14 ) AS INTEGER ) + + 10 + - COUNT ( * ) AS col1
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-9282
SELECT ALL + 75 * - ( NULLIF ( + 13, - SUM( 9 ) ) ) * - 79 + + 71 + - + ( 67 ) AS col1
----
77029

skipif mysql # not compatible
query I rowsort label-9282
SELECT ALL + 75 * - ( NULLIF ( + 13, - SUM ( 9 ) ) ) * - 79 + + 71 + - + ( 67 ) AS col1
----
77029

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9283
SELECT - CAST( NULL AS SIGNED ) / - 41 * 73 * ( - - 41 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9283
SELECT - CAST ( NULL AS INTEGER ) / - 41 * 73 * ( - - 41 )
----
NULL

query I rowsort
SELECT - 14 + + 90 AS col1
----
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9285
SELECT ALL - CAST( NULL AS SIGNED ) + + 46 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9285
SELECT ALL - CAST ( NULL AS INTEGER ) + + 46 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9286
SELECT - 54 * COUNT( ALL + 76 ) AS col0
----
-54

skipif mysql # not compatible
query I rowsort label-9286
SELECT - 54 * COUNT ( ALL + 76 ) AS col0
----
-54

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9287
SELECT ALL - MAX( - - 27 ) DIV - 46 * + - COUNT( * ) * - 84 + + 1 + 65 - + - 55 * 68 AS col2
----
3806

skipif mysql # not compatible
query I rowsort label-9287
SELECT ALL - MAX ( - - 27 ) / - 46 * + - COUNT ( * ) * - 84 + + 1 + 65 - + - 55 * 68 AS col2
----
3806

query I rowsort
SELECT ALL + - 62 col0
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-9289
SELECT DISTINCT - + SUM( ALL - 70 ) AS col1
----
70

skipif mysql # not compatible
query I rowsort label-9289
SELECT DISTINCT - + SUM ( ALL - 70 ) AS col1
----
70

query I rowsort
SELECT ALL 89 * - 85 - - + 31
----
-7534

onlyif mysql # aggregate syntax: 
query I rowsort label-9291
SELECT COUNT( * ) - + 60 * + - 64
----
3841

skipif mysql # not compatible
query I rowsort label-9291
SELECT COUNT ( * ) - + 60 * + - 64
----
3841

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9292
SELECT + CAST( NULL AS DECIMAL ) * + 74 * + + 99 * - COUNT( * ) * - CASE + - 67 WHEN - 60 THEN + 50 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9292
SELECT + CAST ( NULL AS REAL ) * + 74 * + + 99 * - COUNT ( * ) * - CASE + - 67 WHEN - 60 THEN + 50 END AS col2
----
NULL

query II rowsort
SELECT - 46 * - + 16 AS col0, + 37 AS col0
----
736
37

query I rowsort
SELECT + 13 * + 80
----
1040

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9295
SELECT - 61 * + ( 99 ) * 20 * - CAST( + CASE + - 53 WHEN - 7 THEN NULL WHEN 7 THEN 9 END AS DECIMAL ), 58 col2
----
NULL
58

skipif mysql # not compatible
query II rowsort label-9295
SELECT - 61 * + ( 99 ) * 20 * - CAST ( + CASE + - 53 WHEN - 7 THEN NULL WHEN 7 THEN 9 END AS REAL ), 58 col2
----
NULL
58

onlyif mysql # aggregate syntax: 
query I rowsort label-9296
SELECT SUM( ALL - ( 80 ) ) * + 54 + - - 45
----
-4275

skipif mysql # not compatible
query I rowsort label-9296
SELECT SUM ( ALL - ( 80 ) ) * + 54 + - - 45
----
-4275

onlyif mysql # DIV for integer division: 
query I rowsort label-9297
SELECT ALL 18 DIV + 18
----
1

skipif mysql # not compatible
query I rowsort label-9297
SELECT ALL 18 / + 18
----
1

query II rowsort
SELECT 15 AS col1, - 21
----
15
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-9299
SELECT ALL + COUNT( * ) * - - 33 AS col2
----
33

skipif mysql # not compatible
query I rowsort label-9299
SELECT ALL + COUNT ( * ) * - - 33 AS col2
----
33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9300
SELECT DISTINCT + CAST( - ( + CAST( NULL AS SIGNED ) ) AS SIGNED ) + + - 62
----
NULL

skipif mysql # not compatible
query I rowsort label-9300
SELECT DISTINCT + CAST ( - ( + CAST ( NULL AS INTEGER ) ) AS INTEGER ) + + - 62
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9301
SELECT ALL COUNT( * ) + - - 2 - + - 50
----
53

skipif mysql # not compatible
query I rowsort label-9301
SELECT ALL COUNT ( * ) + - - 2 - + - 50
----
53

query I rowsort
SELECT ALL + 70 + + - 39 AS col2
----
31

query II rowsort
SELECT - 27, - 91 AS col1
----
-27
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-9304
SELECT ( + + COUNT( - 44 ) ) + + 8 * - + 68
----
-543

skipif mysql # not compatible
query I rowsort label-9304
SELECT ( + + COUNT ( - 44 ) ) + + 8 * - + 68
----
-543

query I rowsort
SELECT 35 - 26
----
9

query I rowsort
SELECT 25 + + 52 AS col0
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-9307
SELECT ALL ( COUNT( * ) ) + + 83 * 3 col1
----
250

skipif mysql # not compatible
query I rowsort label-9307
SELECT ALL ( COUNT ( * ) ) + + 83 * 3 col1
----
250

query I rowsort
SELECT DISTINCT - 26 * - 93 col1
----
2418

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9309
SELECT ALL + 71 - - CASE 28 WHEN 93 THEN + - 43 WHEN 36 THEN NULL ELSE + 87 END + 58 + - 46 * CAST( + - 47 AS SIGNED ) AS col2
----
2378

skipif mysql # not compatible
query I rowsort label-9309
SELECT ALL + 71 - - CASE 28 WHEN 93 THEN + - 43 WHEN 36 THEN NULL ELSE + 87 END + 58 + - 46 * CAST ( + - 47 AS INTEGER ) AS col2
----
2378

onlyif mysql # aggregate syntax: 
query I rowsort label-9310
SELECT ALL - 8 * COUNT( * ) AS col0
----
-8

skipif mysql # not compatible
query I rowsort label-9310
SELECT ALL - 8 * COUNT ( * ) AS col0
----
-8

query I rowsort
SELECT 56 - CASE - 91 WHEN + 68 / - 13 THEN - 10 WHEN - 27 THEN - 4 END
----
NULL

query II rowsort
SELECT + 23 AS col2, + 1
----
23
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9313
SELECT - 52 DIV COUNT( * ) + + COALESCE ( - 6, - COUNT( * ) + - + 42 ) AS col1
----
-58

skipif mysql # not compatible
query I rowsort label-9313
SELECT - 52 / COUNT ( * ) + + COALESCE ( - 6, - COUNT ( * ) + - + 42 ) AS col1
----
-58

query II rowsort
SELECT - 57 AS col1, + ( - COALESCE ( - 99, + 18, + 25 ) ) AS col1
----
-57
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9315
SELECT - CAST( NULL AS SIGNED ) * 17 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9315
SELECT - CAST ( NULL AS INTEGER ) * 17 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9316
SELECT 28 DIV + 4 + - + 34 AS col2
----
-27

skipif mysql # not compatible
query I rowsort label-9316
SELECT 28 / + 4 + - + 34 AS col2
----
-27

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9317
SELECT ( + CAST( NULL AS DECIMAL ) ) + - 27 * - COUNT( * ) * + - 69 * + - AVG ( DISTINCT - 80 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9317
SELECT ( + CAST ( NULL AS REAL ) ) + - 27 * - COUNT ( * ) * + - 69 * + - AVG ( DISTINCT - 80 ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9318
SELECT + 44 / CAST( NULL AS SIGNED ) - 22 / + + 13 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9318
SELECT + 44 / CAST ( NULL AS INTEGER ) - 22 / + + 13 AS col1
----
NULL

query I rowsort
SELECT 79 * + 65 + + ( COALESCE ( + + 94, + 86 ) ) AS col1
----
5229

onlyif mysql # aggregate syntax: 
query I rowsort label-9320
SELECT ALL - MIN( DISTINCT + - 60 ) AS col2
----
60

skipif mysql # not compatible
query I rowsort label-9320
SELECT ALL - MIN ( DISTINCT + - 60 ) AS col2
----
60

onlyif mysql # DIV for integer division: 
query I rowsort label-9321
SELECT + + 48 DIV - 14 + + 40 AS col2
----
37

skipif mysql # not compatible
query I rowsort label-9321
SELECT + + 48 / - 14 + + 40 AS col2
----
37

query I rowsort
SELECT 32 + + - 91 AS col2
----
-59

query I rowsort
SELECT - 50 * 62
----
-3100

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9324
SELECT + + 65 AS col1, - CAST( NULL AS SIGNED ) * 71 / + CASE 43 WHEN 71 * + - CAST( NULL AS SIGNED ) THEN COUNT( * ) END col0
----
65
NULL

skipif mysql # not compatible
query II rowsort label-9324
SELECT + + 65 AS col1, - CAST ( NULL AS INTEGER ) * 71 / + CASE 43 WHEN 71 * + - CAST ( NULL AS INTEGER ) THEN COUNT ( * ) END col0
----
65
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9325
SELECT - 89 * - 56 + - + ( - + COALESCE ( - CAST( + + 44 AS SIGNED ), - COUNT( * ), - 55 ) ) col0
----
4940

skipif mysql # not compatible
query I rowsort label-9325
SELECT - 89 * - 56 + - + ( - + COALESCE ( - CAST ( + + 44 AS INTEGER ), - COUNT ( * ), - 55 ) ) col0
----
4940

query I rowsort
SELECT + - ( + - 55 ) AS col2
----
55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9327
SELECT + - COALESCE ( CAST( CAST( NULL AS SIGNED ) AS SIGNED ), + + ( - - 96 ) ) AS col2
----
-96

skipif mysql # not compatible
query I rowsort label-9327
SELECT + - COALESCE ( CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ), + + ( - - 96 ) ) AS col2
----
-96

query I rowsort
SELECT ALL 25 * + 86 AS col1
----
2150

onlyif mysql # aggregate syntax: 
query I rowsort label-9329
SELECT ALL COUNT( * ) + + - COUNT( * ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9329
SELECT ALL COUNT ( * ) + + - COUNT ( * ) AS col0
----
0

query I rowsort
SELECT ALL 15 + - - 84
----
99

query I rowsort
SELECT ALL ( - + NULLIF ( - 53, + 99 ) ) + - + ( + - 16 )
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-9332
SELECT - MAX( 81 )
----
-81

skipif mysql # not compatible
query I rowsort label-9332
SELECT - MAX ( 81 )
----
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9333
SELECT CAST( NULL AS SIGNED ) + + 17 + 75 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9333
SELECT CAST ( NULL AS INTEGER ) + + 17 + 75 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9334
SELECT ALL ( - 52 ) + + ( - 71 ) AS col1, MIN( CAST( + - NULLIF ( 63, 88 ) AS SIGNED ) ) AS col1
----
-123
-63

skipif mysql # not compatible
query II rowsort label-9334
SELECT ALL ( - 52 ) + + ( - 71 ) AS col1, MIN ( CAST ( + - NULLIF ( 63, 88 ) AS INTEGER ) ) AS col1
----
-123
-63

query I rowsort
SELECT ( 2 ) + + 91 * + 47
----
4279

onlyif mysql # DIV for integer division: 
query I rowsort label-9336
SELECT 25 DIV 47 * 5 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9336
SELECT 25 / 47 * 5 AS col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9337
SELECT ALL COUNT( * ) * - 82, - CASE + 95 WHEN + 48 * + 38 THEN + + 79 END AS col1
----
-82
NULL

skipif mysql # not compatible
query II rowsort label-9337
SELECT ALL COUNT ( * ) * - 82, - CASE + 95 WHEN + 48 * + 38 THEN + + 79 END AS col1
----
-82
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9338
SELECT COUNT( * ) + - - 28 - 52 * 99 AS col1, 43 + - SUM( ALL + 30 ) - - - 41 + + 13 * + - 4
----
-5119
-80

skipif mysql # not compatible
query II rowsort label-9338
SELECT COUNT ( * ) + - - 28 - 52 * 99 AS col1, 43 + - SUM ( ALL + 30 ) - - - 41 + + 13 * + - 4
----
-5119
-80

onlyif mysql # DIV for integer division: 
query I rowsort label-9339
SELECT ALL 60 DIV + ( 7 )
----
8

skipif mysql # not compatible
query I rowsort label-9339
SELECT ALL 60 / + ( 7 )
----
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9340
SELECT ALL ( - - 37 ) - 61 + - 10 * + 10 * - + CAST( NULL AS SIGNED ) + + 83 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9340
SELECT ALL ( - - 37 ) - 61 + - 10 * + 10 * - + CAST ( NULL AS INTEGER ) + + 83 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9341
SELECT ALL + 40 * + 44 DIV 11 AS col0
----
160

skipif mysql # not compatible
query I rowsort label-9341
SELECT ALL + 40 * + 44 / 11 AS col0
----
160

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9342
SELECT DISTINCT CAST( + NULLIF ( - - COUNT( * ), 2 ) AS SIGNED ) * COALESCE ( 35, - + 2 * - ( - 6 ), - 41 + 93 - - MAX( 54 ) + + + 35 ) col2
----
35

skipif mysql # not compatible
query I rowsort label-9342
SELECT DISTINCT CAST ( + NULLIF ( - - COUNT ( * ), 2 ) AS INTEGER ) * COALESCE ( 35, - + 2 * - ( - 6 ), - 41 + 93 - - MAX ( 54 ) + + + 35 ) col2
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-9343
SELECT - COUNT( * ) + - + ( 97 ) AS col1
----
-98

skipif mysql # not compatible
query I rowsort label-9343
SELECT - COUNT ( * ) + - + ( 97 ) AS col1
----
-98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9344
SELECT - 1 + - - MIN( ALL - CAST( + + 93 AS SIGNED ) ) * + 23
----
-2140

skipif mysql # not compatible
query I rowsort label-9344
SELECT - 1 + - - MIN ( ALL - CAST ( + + 93 AS INTEGER ) ) * + 23
----
-2140

onlyif mysql # aggregate syntax: 
query I rowsort label-9345
SELECT COUNT( ALL - 61 )
----
1

skipif mysql # not compatible
query I rowsort label-9345
SELECT COUNT ( ALL - 61 )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-9346
SELECT + - 99 * - ( + - 92 ) - 28 AS col1, + COUNT( * )
----
-9136
1

skipif mysql # not compatible
query II rowsort label-9346
SELECT + - 99 * - ( + - 92 ) - 28 AS col1, + COUNT ( * )
----
-9136
1

query I rowsort
SELECT - - 94 * + 21 * - ( 62 ) * 5
----
-611940

onlyif mysql # aggregate syntax: 
query I rowsort label-9348
SELECT - COUNT( * ) + - - 92
----
91

skipif mysql # not compatible
query I rowsort label-9348
SELECT - COUNT ( * ) + - - 92
----
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9349
SELECT - 68 * + 88 + + 7 + - AVG ( ALL - 52 ) * + - 25 / + SUM( + + CAST( NULL AS SIGNED ) ) + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-9349
SELECT - 68 * + 88 + + 7 + - AVG ( ALL - 52 ) * + - 25 / + SUM ( + + CAST ( NULL AS INTEGER ) ) + COUNT ( * )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9350
SELECT DISTINCT - + 4 DIV - 28 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9350
SELECT DISTINCT - + 4 / - 28 AS col1
----
0

query I rowsort
SELECT ALL + - 51 AS col1
----
-51

query I rowsort
SELECT + + 72 * 61 AS col2
----
4392

query I rowsort
SELECT - + 67 * 79 AS col2
----
-5293

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9354
SELECT ALL - + COALESCE ( + 63, + 7 * - 46 DIV 62 * - 24 - - COALESCE ( - 10, - CAST( NULL AS SIGNED ) ), 0 ) * 87
----
-5481

skipif mysql # not compatible
query I rowsort label-9354
SELECT ALL - + COALESCE ( + 63, + 7 * - 46 / 62 * - 24 - - COALESCE ( - 10, - CAST ( NULL AS INTEGER ) ), 0 ) * 87
----
-5481

onlyif mysql # aggregate syntax: 
query I rowsort label-9355
SELECT MAX( ALL + 18 ) col2
----
18

skipif mysql # not compatible
query I rowsort label-9355
SELECT MAX ( ALL + 18 ) col2
----
18

query I rowsort
SELECT - 70 * - 44 + - 66 * - 64 col0
----
7304

query I rowsort
SELECT DISTINCT + + 58 col0
----
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9358
SELECT 16 * + - CAST( 2 AS SIGNED ) * + + CAST( NULL AS SIGNED ) - + COUNT( * ) + + 4 + 13 + - - 77 * + + 33 + + - 39 + 81 + 1 * 55 / - - 93
----
NULL

skipif mysql # not compatible
query I rowsort label-9358
SELECT 16 * + - CAST ( 2 AS INTEGER ) * + + CAST ( NULL AS INTEGER ) - + COUNT ( * ) + + 4 + 13 + - - 77 * + + 33 + + - 39 + 81 + 1 * 55 / - - 93
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9359
SELECT + MAX( DISTINCT + - 30 ) AS col1
----
-30

skipif mysql # not compatible
query I rowsort label-9359
SELECT + MAX ( DISTINCT + - 30 ) AS col1
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-9360
SELECT + MIN( ALL - 1 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-9360
SELECT + MIN ( ALL - 1 ) AS col2
----
-1

query I rowsort
SELECT + 49 * + + ( - + 41 ) AS col1
----
-2009

onlyif mysql # aggregate syntax: 
query I rowsort label-9362
SELECT - 61 * + 3 * - 42 * - - COUNT( * ) AS col2
----
7686

skipif mysql # not compatible
query I rowsort label-9362
SELECT - 61 * + 3 * - 42 * - - COUNT ( * ) AS col2
----
7686

onlyif mysql # aggregate syntax: 
query I rowsort label-9363
SELECT MAX( DISTINCT + 3 ) AS col1
----
3

skipif mysql # not compatible
query I rowsort label-9363
SELECT MAX ( DISTINCT + 3 ) AS col1
----
3

query I rowsort
SELECT ALL 73 * - 56
----
-4088

onlyif mysql # aggregate syntax: 
query I rowsort label-9365
SELECT - MAX( ALL + 20 )
----
-20

skipif mysql # not compatible
query I rowsort label-9365
SELECT - MAX ( ALL + 20 )
----
-20

query I rowsort
SELECT + 14 + 18
----
32

query I rowsort
SELECT + 31 * - + 8
----
-248

query I rowsort
SELECT ALL 1 - - + 68 + 50 AS col1
----
119

onlyif mysql # aggregate syntax: 
query I rowsort label-9369
SELECT + 60 + - + 51 * COUNT( DISTINCT + 99 ) + + 19
----
28

skipif mysql # not compatible
query I rowsort label-9369
SELECT + 60 + - + 51 * COUNT ( DISTINCT + 99 ) + + 19
----
28

query I rowsort
SELECT - ( + 69 ) AS col0
----
-69

onlyif mysql # DIV for integer division: 
query I rowsort label-9371
SELECT + + 28 DIV - 80
----
0

skipif mysql # not compatible
query I rowsort label-9371
SELECT + + 28 / - 80
----
0

query II rowsort
SELECT + 86 * - 88 + - - 44, 96 AS col2
----
-7524
96

query II rowsort
SELECT ALL 19 AS col0, + 40 AS col0
----
19
40

query I rowsort
SELECT DISTINCT - 84 * 17
----
-1428

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9375
SELECT DISTINCT + 26 * - 90 * CAST( NULL AS SIGNED ) / - CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9375
SELECT DISTINCT + 26 * - 90 * CAST ( NULL AS INTEGER ) / - CAST ( NULL AS INTEGER ) col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9376
SELECT + CAST( - 88 AS SIGNED ) DIV - 3 + 60 * 14 + - - 78 * - - COUNT( * ) * 93
----
8123

skipif mysql # not compatible
query I rowsort label-9376
SELECT + CAST ( - 88 AS INTEGER ) / - 3 + 60 * 14 + - - 78 * - - COUNT ( * ) * 93
----
8123

query I rowsort
SELECT + - 87 * + 89 * + 22
----
-170346

query I rowsort
SELECT DISTINCT ( + 64 ) + - 69
----
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9379
SELECT + - 11 / - - 96 + - 19 + + + CASE - 68 WHEN + + CAST( + - 27 AS DECIMAL ) THEN + - 24 * + + 40 + COALESCE ( CASE + 82 WHEN 18 THEN COUNT( * ) + 95 ELSE - + COUNT( * ) END, 27 ) WHEN - NULLIF ( + COALESCE ( + + 86, + COUNT( DISTINCT + 61 ) / - 20 / - 49 + - - ( + 93 ), ( - + ( + - COUNT( * ) ) ), 81 + 93 * CAST( NULL AS SIGNED ) ), 39 ) THEN - COALESCE ( - - 47, - + ( - CAST( - - COUNT( * ) AS SIGNED ) ), + - 46 + + 26 + + - 11 + - 91 - - - 17 * + + 87 / - 57 * 50 ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9379
SELECT + - 11 / - - 96 + - 19 + + + CASE - 68 WHEN + + CAST ( + - 27 AS REAL ) THEN + - 24 * + + 40 + COALESCE ( CASE + 82 WHEN 18 THEN COUNT ( * ) + 95 ELSE - + COUNT ( * ) END, 27 ) WHEN - NULLIF ( + COALESCE ( + + 86, + COUNT ( DISTINCT + 61 ) / - 20 / - 49 + - - ( + 93 ), ( - + ( + - COUNT ( * ) ) ), 81 + 93 * CAST ( NULL AS INTEGER ) ), 39 ) THEN - COALESCE ( - - 47, - + ( - CAST ( - - COUNT ( * ) AS INTEGER ) ), + - 46 + + 26 + + - 11 + - 91 - - - 17 * + + 87 / - 57 * 50 ) END AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9380
SELECT CAST( - 44 AS SIGNED ) AS col2
----
-44

skipif mysql # not compatible
query I rowsort label-9380
SELECT CAST ( - 44 AS INTEGER ) AS col2
----
-44

query I rowsort
SELECT + CASE + 62 WHEN - 20 THEN + 38 WHEN + 29 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9382
SELECT - 93 DIV 86 DIV + 86 + + + 18 - - 48 * - - COALESCE ( 25, + 61 )
----
1218

skipif mysql # not compatible
query I rowsort label-9382
SELECT - 93 / 86 / + 86 + + + 18 - - 48 * - - COALESCE ( 25, + 61 )
----
1218

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9383
SELECT ALL - - 38 DIV - 49 * - COUNT( * ) * 43 + - ( + 71 ) AS col0
----
-71

skipif mysql # not compatible
query I rowsort label-9383
SELECT ALL - - 38 / - 49 * - COUNT ( * ) * 43 + - ( + 71 ) AS col0
----
-71

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9384
SELECT ALL 97 DIV - - 50 + - - COUNT( ALL + + 61 )
----
2

skipif mysql # not compatible
query I rowsort label-9384
SELECT ALL 97 / - - 50 + - - COUNT ( ALL + + 61 )
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9385
SELECT - COUNT( * ) * + ( - COUNT( * ) ) * + 80 / 88 + 74 + - 70 / - AVG ( DISTINCT - CAST( NULL AS SIGNED ) ) - 27 / + ( - - 5 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9385
SELECT - COUNT ( * ) * + ( - COUNT ( * ) ) * + 80 / 88 + 74 + - 70 / - AVG ( DISTINCT - CAST ( NULL AS INTEGER ) ) - 27 / + ( - - 5 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9386
SELECT 74, - 41 DIV + COUNT( * ) + + ( - ( - 2 ) ) * - COUNT( * ) + + - 87 + - - 92 AS col1
----
74
-38

skipif mysql # not compatible
query II rowsort label-9386
SELECT 74, - 41 / + COUNT ( * ) + + ( - ( - 2 ) ) * - COUNT ( * ) + + - 87 + - - 92 AS col1
----
74
-38

query II rowsort
SELECT DISTINCT + + 47, 37 * - 24 + + + 40 AS col1
----
47
-848

onlyif mysql # DIV for integer division: 
query I rowsort label-9388
SELECT DISTINCT - 28 DIV + 17 + - - 26 AS col2
----
25

skipif mysql # not compatible
query I rowsort label-9388
SELECT DISTINCT - 28 / + 17 + - - 26 AS col2
----
25

query I rowsort
SELECT ALL + 95 * + + 34 * - - 82 - - 0 + - 98 AS col1
----
264762

query I rowsort
SELECT DISTINCT + 30 * - 74 * - NULLIF ( + + 45, - - 21 ) col0
----
99900

query I rowsort
SELECT - 61 * - 0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9392
SELECT - MIN( - 2 ) * + 5 AS col1
----
10

skipif mysql # not compatible
query I rowsort label-9392
SELECT - MIN ( - 2 ) * + 5 AS col1
----
10

query I rowsort
SELECT ALL 43 * - 71 AS col2
----
-3053

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9394
SELECT ALL + 85 DIV + + COUNT( * ) AS col1
----
85

skipif mysql # not compatible
query I rowsort label-9394
SELECT ALL + 85 / + + COUNT ( * ) AS col1
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-9395
SELECT - COUNT( * ) * - 10 AS col2
----
10

skipif mysql # not compatible
query I rowsort label-9395
SELECT - COUNT ( * ) * - 10 AS col2
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-9396
SELECT ALL + CASE 53 WHEN COALESCE ( + - 94, 95 ) + + COUNT( * ) THEN NULL ELSE - 13 END
----
-13

skipif mysql # not compatible
query I rowsort label-9396
SELECT ALL + CASE 53 WHEN COALESCE ( + - 94, 95 ) + + COUNT ( * ) THEN NULL ELSE - 13 END
----
-13

query III rowsort
SELECT ALL 87 col1, + ( 22 ) * + 14 col2, - 3 AS col1
----
87
308
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-9398
SELECT DISTINCT 39 AS col0, COALESCE ( - + ( 0 ), 37 * NULLIF ( - 29, COUNT( * ) ) + 33 )
----
39
0

skipif mysql # not compatible
query II rowsort label-9398
SELECT DISTINCT 39 AS col0, COALESCE ( - + ( 0 ), 37 * NULLIF ( - 29, COUNT ( * ) ) + 33 )
----
39
0

query II rowsort
SELECT 49, + 54 AS col2
----
49
54

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9400
SELECT 40 * + - 72 DIV - COUNT( * )
----
2880

skipif mysql # not compatible
query I rowsort label-9400
SELECT 40 * + - 72 / - COUNT ( * )
----
2880

query I rowsort
SELECT 75 * - 18
----
-1350

query II rowsort
SELECT - 98 AS col2, 14 + 54 AS col2
----
-98
68

query I rowsort
SELECT 56 + - ( + 37 )
----
19

onlyif mysql # aggregate syntax: 
query II rowsort label-9404
SELECT ALL + - ( - - ( + 46 ) ) * + 43 - - + 64 * + COUNT( * ) AS col0, + 15 + - COUNT( * ) AS col1
----
-1914
14

skipif mysql # not compatible
query II rowsort label-9404
SELECT ALL + - ( - - ( + 46 ) ) * + 43 - - + 64 * + COUNT ( * ) AS col0, + 15 + - COUNT ( * ) AS col1
----
-1914
14

query I rowsort
SELECT + 23 + + 46 + 30 col0
----
99

query II rowsort
SELECT ALL 37, 91 AS col0
----
37
91

query I rowsort
SELECT - ( - - 17 )
----
-17

query I rowsort
SELECT ALL - - 49 + 74
----
123

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9409
SELECT - - CAST( NULL AS SIGNED ) AS col2, 74
----
NULL
74

skipif mysql # not compatible
query II rowsort label-9409
SELECT - - CAST ( NULL AS INTEGER ) AS col2, 74
----
NULL
74

query I rowsort
SELECT ALL 89 + + - 37
----
52

query I rowsort
SELECT - ( - + 27 ) + + 12 AS col1
----
39

query I rowsort
SELECT - 86 + - 18 * + - 89
----
1516

query II rowsort
SELECT - 82 col2, 22 + 14 * + 79
----
-82
1128

query I rowsort
SELECT ALL 69 + - - 46 * 27 + + 57 + + 52
----
1420

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9415
SELECT ALL - 59 + CAST( NULL AS SIGNED ) - + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9415
SELECT ALL - 59 + CAST ( NULL AS INTEGER ) - + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9416
SELECT + 52 DIV + + 67 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9416
SELECT + 52 / + + 67 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9417
SELECT ALL + 20 * - - CAST( + ( - COUNT( * ) ) AS SIGNED ) + + 76
----
56

skipif mysql # not compatible
query I rowsort label-9417
SELECT ALL + 20 * - - CAST ( + ( - COUNT ( * ) ) AS INTEGER ) + + 76
----
56

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9418
SELECT ALL - COUNT( * ) + - + 73 DIV - + 13
----
4

skipif mysql # not compatible
query I rowsort label-9418
SELECT ALL - COUNT ( * ) + - + 73 / - + 13
----
4

query I rowsort
SELECT + 79 * 8 AS col1
----
632

query I rowsort
SELECT ALL - - ( + - ( - 24 ) ) AS col2
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-9421
SELECT COUNT( * ) * - SUM( - - 89 ) AS col1
----
-89

skipif mysql # not compatible
query I rowsort label-9421
SELECT COUNT ( * ) * - SUM ( - - 89 ) AS col1
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-9422
SELECT ALL - MAX( + 86 ) col2
----
-86

skipif mysql # not compatible
query I rowsort label-9422
SELECT ALL - MAX ( + 86 ) col2
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-9423
SELECT - SUM( DISTINCT 84 ) * - 19 - + 1
----
1595

skipif mysql # not compatible
query I rowsort label-9423
SELECT - SUM ( DISTINCT 84 ) * - 19 - + 1
----
1595

onlyif mysql # aggregate syntax: 
query II rowsort label-9424
SELECT ALL COUNT( * ) - - 44 - + - 35 + 55 * 32 col2, 30 AS col0
----
1840
30

skipif mysql # not compatible
query II rowsort label-9424
SELECT ALL COUNT ( * ) - - 44 - + - 35 + 55 * 32 col2, 30 AS col0
----
1840
30

query I rowsort
SELECT DISTINCT + 98 * + - 66
----
-6468

query I rowsort
SELECT DISTINCT + 81 * - 34 AS col2
----
-2754

query I rowsort
SELECT 24 + 28
----
52

query I rowsort
SELECT 75 * - + 2
----
-150

query I rowsort
SELECT ALL + 81 * - + ( + - 95 ) * 45 AS col0
----
346275

onlyif mysql # aggregate syntax: 
query I rowsort label-9430
SELECT ALL + 63 + + COUNT( * ) AS col2
----
64

skipif mysql # not compatible
query I rowsort label-9430
SELECT ALL + 63 + + COUNT ( * ) AS col2
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-9431
SELECT + 55 * 75 + - COUNT( * ) AS col1
----
4124

skipif mysql # not compatible
query I rowsort label-9431
SELECT + 55 * 75 + - COUNT ( * ) AS col1
----
4124

onlyif mysql # aggregate syntax: 
query I rowsort label-9432
SELECT DISTINCT CASE - SUM( - 50 ) WHEN + + 85 THEN - 61 ELSE NULL END * - 72
----
NULL

skipif mysql # not compatible
query I rowsort label-9432
SELECT DISTINCT CASE - SUM ( - 50 ) WHEN + + 85 THEN - 61 ELSE NULL END * - 72
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9433
SELECT ALL + ( - - SUM( ALL 66 ) ) + 88 AS col2
----
154

skipif mysql # not compatible
query I rowsort label-9433
SELECT ALL + ( - - SUM ( ALL 66 ) ) + 88 AS col2
----
154

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9434
SELECT ALL - CAST( - 76 AS DECIMAL ) + + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9434
SELECT ALL - CAST ( - 76 AS REAL ) + + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL - + 14 + + + 32 + - 34
----
-16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-9436
SELECT DISTINCT - + 97 + + + CASE + + MIN( DISTINCT - CAST( + 26 AS SIGNED ) ) WHEN - + 37 THEN 39 WHEN + 97 THEN NULL WHEN - 83 / - + 43 * - COUNT( * ) * - CAST( NULL AS DECIMAL ) + - CAST( NULL AS SIGNED ) * 54 THEN - 29 + 23 END / - 84 + - 95 * 2 / + + 57, - CASE 41 WHEN + + 71 + ( + 85 ) THEN + - AVG ( + 27 ) * 56 + - 3 WHEN - + MAX( 26 ) THEN NULL END * + AVG ( - ( 74 ) ) + 20 col1
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-9436
SELECT DISTINCT - + 97 + + + CASE + + MIN ( DISTINCT - CAST ( + 26 AS INTEGER ) ) WHEN - + 37 THEN 39 WHEN + 97 THEN NULL WHEN - 83 / - + 43 * - COUNT ( * ) * - CAST ( NULL AS REAL ) + - CAST ( NULL AS INTEGER ) * 54 THEN - 29 + 23 END / - 84 + - 95 * 2 / + + 57, - CASE 41 WHEN + + 71 + ( + 85 ) THEN + - AVG ( + 27 ) * 56 + - 3 WHEN - + MAX ( 26 ) THEN NULL END * + AVG ( - ( 74 ) ) + 20 col1
----
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9437
SELECT 52 * + - NULLIF ( 16, COUNT( * ) * 56 + + + CAST( + 95 AS SIGNED ) ) * 71 * - SUM( DISTINCT - 4 ) * + - 33 AS col2
----
7797504

skipif mysql # not compatible
query I rowsort label-9437
SELECT 52 * + - NULLIF ( 16, COUNT ( * ) * 56 + + + CAST ( + 95 AS INTEGER ) ) * 71 * - SUM ( DISTINCT - 4 ) * + - 33 AS col2
----
7797504

onlyif mysql # aggregate syntax: 
query I rowsort label-9438
SELECT - COUNT( ALL 17 ) + + 99
----
98

skipif mysql # not compatible
query I rowsort label-9438
SELECT - COUNT ( ALL 17 ) + + 99
----
98

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9439
SELECT ALL - - COUNT( * ) + - + 51 DIV + 30 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9439
SELECT ALL - - COUNT ( * ) + - + 51 / + 30 AS col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9440
SELECT - MIN( + 62 ) AS col0, - 54
----
-62
-54

skipif mysql # not compatible
query II rowsort label-9440
SELECT - MIN ( + 62 ) AS col0, - 54
----
-62
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-9441
SELECT DISTINCT + 72 * + COUNT( DISTINCT - ( + 21 ) ) AS col2
----
72

skipif mysql # not compatible
query I rowsort label-9441
SELECT DISTINCT + 72 * + COUNT ( DISTINCT - ( + 21 ) ) AS col2
----
72

query I rowsort
SELECT ALL - 13 + + + 43
----
30

query I rowsort
SELECT ALL - CASE + 34 WHEN - + 49 / - 95 * + + 9 THEN 16 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9444
SELECT DISTINCT + COUNT( DISTINCT + NULLIF ( 49, - - 20 ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9444
SELECT DISTINCT + COUNT ( DISTINCT + NULLIF ( 49, - - 20 ) ) AS col1
----
1

query I rowsort
SELECT DISTINCT - + 80 - - - ( - 91 ) col0
----
11

query I rowsort
SELECT 1 - 52 * - - 40
----
-2079

onlyif mysql # aggregate syntax: 
query II rowsort label-9447
SELECT ALL - - 30 - - 42, COUNT( * ) AS col0
----
72
1

skipif mysql # not compatible
query II rowsort label-9447
SELECT ALL - - 30 - - 42, COUNT ( * ) AS col0
----
72
1

query I rowsort
SELECT - ( - - 63 ) * - 0 - - 15 + - 30
----
-15

query I rowsort
SELECT 15 + + - 12
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9450
SELECT + MIN( DISTINCT 95 ) AS col0
----
95

skipif mysql # not compatible
query I rowsort label-9450
SELECT + MIN ( DISTINCT 95 ) AS col0
----
95

query I rowsort
SELECT 54 * - 44 * + + 15
----
-35640

query I rowsort
SELECT 57 * - - 65 + - - 47 + - - 3
----
3755

query I rowsort
SELECT ALL 50 * - 96 AS col0
----
-4800

query I rowsort
SELECT ALL - ( 18 ) AS col0
----
-18

query I rowsort
SELECT ALL 96 * - - 5 AS col1
----
480

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9456
SELECT + 76, 65 * - - CAST( + 33 AS SIGNED ) AS col0
----
76
2145

skipif mysql # not compatible
query II rowsort label-9456
SELECT + 76, 65 * - - CAST ( + 33 AS INTEGER ) AS col0
----
76
2145

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9457
SELECT ALL CAST( + SUM( ALL - - 26 ) AS SIGNED ) * CAST( + 69 AS SIGNED ) + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9457
SELECT ALL CAST ( + SUM ( ALL - - 26 ) AS INTEGER ) * CAST ( + 69 AS INTEGER ) + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT + 96 * + + 10
----
960

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9459
SELECT MAX( DISTINCT + + NULLIF ( 36, - ( + CAST( NULL AS SIGNED ) ) ) )
----
36

skipif mysql # not compatible
query I rowsort label-9459
SELECT MAX ( DISTINCT + + NULLIF ( 36, - ( + CAST ( NULL AS INTEGER ) ) ) )
----
36

query I rowsort
SELECT DISTINCT 77 + + 33
----
110

query II rowsort
SELECT DISTINCT + 98 AS col0, + 0 + + 13
----
98
13

query I rowsort
SELECT DISTINCT 48 + + 46 + + NULLIF ( + + 50, + 68 )
----
144

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9463
SELECT ALL 7 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9463
SELECT ALL 7 + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT - 50 + - 99 + + 62 * - 42
----
-2753

query I rowsort
SELECT - NULLIF ( + 89, - 52 ) col0
----
-89

query I rowsort
SELECT + 62 * 34 * 94
----
198152

onlyif mysql # aggregate syntax: 
query I rowsort label-9467
SELECT - NULLIF ( + 43, - COUNT( 60 ) ) * 77 AS col2
----
-3311

skipif mysql # not compatible
query I rowsort label-9467
SELECT - NULLIF ( + 43, - COUNT ( 60 ) ) * 77 AS col2
----
-3311

query I rowsort
SELECT ALL + 94 * - 92 AS col0
----
-8648

query I rowsort
SELECT + 83 col2
----
83

query I rowsort
SELECT ALL + - 82 + 32 AS col1
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-9471
SELECT ALL - - 20 + COUNT( + 91 ) + 51 * + 78
----
3999

skipif mysql # not compatible
query I rowsort label-9471
SELECT ALL - - 20 + COUNT ( + 91 ) + 51 * + 78
----
3999

query I rowsort
SELECT + + ( - 34 ) * + - 71 AS col1
----
2414

query I rowsort
SELECT + 7 + + 85 AS col0
----
92

query I rowsort
SELECT + - 64 - 12
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-9475
SELECT ALL ( - + COUNT( DISTINCT + 1 ) ) * - COALESCE ( COUNT( * ), COUNT( * ) ) * - 43
----
-43

skipif mysql # not compatible
query I rowsort label-9475
SELECT ALL ( - + COUNT ( DISTINCT + 1 ) ) * - COALESCE ( COUNT ( * ), COUNT ( * ) ) * - 43
----
-43

query I rowsort
SELECT ALL 95 - - 80 AS col0
----
175

query I rowsort
SELECT - 34 * - 48 * - 12 + - 10 + 54
----
-19540

onlyif mysql # aggregate syntax: 
query I rowsort label-9478
SELECT - + 7 + + + 82 + 18 * + - COUNT( * )
----
57

skipif mysql # not compatible
query I rowsort label-9478
SELECT - + 7 + + + 82 + 18 * + - COUNT ( * )
----
57

query I rowsort
SELECT - + 38 * 53
----
-2014

query I rowsort
SELECT - - NULLIF ( - 30, - COALESCE ( - 80, - - 81, - 0 ) + - 9 * 33 ) + - - 30
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9481
SELECT ALL + 27 * CAST( NULL AS SIGNED ) + 63 * + + 2
----
NULL

skipif mysql # not compatible
query I rowsort label-9481
SELECT ALL + 27 * CAST ( NULL AS INTEGER ) + 63 * + + 2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9482
SELECT DISTINCT - COUNT( * ), + 40 AS col0
----
-1
40

skipif mysql # not compatible
query II rowsort label-9482
SELECT DISTINCT - COUNT ( * ), + 40 AS col0
----
-1
40

query I rowsort
SELECT ALL ( + AVG ( ALL + CASE + + 83 WHEN + NULLIF ( + 36, + + 25 * - 90 * + 50 ) THEN 0 WHEN - 27 * ( 92 ) THEN NULL END ) )
----
NULL

query I rowsort
SELECT ALL - 26 * 10
----
-260

onlyif mysql # aggregate syntax: 
query I rowsort label-9485
SELECT DISTINCT + SUM( DISTINCT 1 )
----
1

skipif mysql # not compatible
query I rowsort label-9485
SELECT DISTINCT + SUM ( DISTINCT 1 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9486
SELECT DISTINCT - NULLIF ( + 83, + COUNT( * ) + - 87 ) * 47
----
-3901

skipif mysql # not compatible
query I rowsort label-9486
SELECT DISTINCT - NULLIF ( + 83, + COUNT ( * ) + - 87 ) * 47
----
-3901

query I rowsort
SELECT ALL - ( - 56 ) * - - 77
----
4312

query I rowsort
SELECT - 79 + - 53 * + 70 AS col2
----
-3789

onlyif mysql # DIV for integer division: 
query I rowsort label-9489
SELECT - 96 DIV + 88
----
-1

skipif mysql # not compatible
query I rowsort label-9489
SELECT - 96 / + 88
----
-1

query II rowsort
SELECT ALL 91 * - 32 + - 17 + + 29, + 90 AS col0
----
-2900
90

onlyif mysql # aggregate syntax: 
query I rowsort label-9491
SELECT ( CASE - - 61 WHEN + 47 * + 86 THEN COUNT( * ) END )
----
NULL

skipif mysql # not compatible
query I rowsort label-9491
SELECT ( CASE - - 61 WHEN + 47 * + 86 THEN COUNT ( * ) END )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9492
SELECT ALL - COUNT( * ) * ( - 79 ) + + 40
----
119

skipif mysql # not compatible
query I rowsort label-9492
SELECT ALL - COUNT ( * ) * ( - 79 ) + + 40
----
119

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9493
SELECT + SUM( - - 13 ) AS col2, + 59 DIV + 60 * - - COUNT( * ) - + + COUNT( * )
----
13
-1

skipif mysql # not compatible
query II rowsort label-9493
SELECT + SUM ( - - 13 ) AS col2, + 59 / + 60 * - - COUNT ( * ) - + + COUNT ( * )
----
13
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9494
SELECT DISTINCT 60 * + + ( - CAST( NULL AS SIGNED ) ) + - + 27 + - 15 * + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9494
SELECT DISTINCT 60 * + + ( - CAST ( NULL AS INTEGER ) ) + - + 27 + - 15 * + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9495
SELECT + CAST( CAST( NULL AS SIGNED ) AS DECIMAL ) * - 99 + 53 + + 41 + - 39 + - 68 + 43 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9495
SELECT + CAST ( CAST ( NULL AS INTEGER ) AS REAL ) * - 99 + 53 + + 41 + - 39 + - 68 + 43 AS col2
----
NULL

query I rowsort
SELECT ALL 41 * + + 20 + + - 84
----
736

query I rowsort
SELECT DISTINCT 90 * + + 77
----
6930

onlyif mysql # aggregate syntax: 
query I rowsort label-9498
SELECT - + COUNT( DISTINCT 54 ) + ( - - 24 ) / - ( + CASE - 66 WHEN COUNT( * ) THEN - - 82 * - COUNT( * ) END )
----
NULL

skipif mysql # not compatible
query I rowsort label-9498
SELECT - + COUNT ( DISTINCT 54 ) + ( - - 24 ) / - ( + CASE - 66 WHEN COUNT ( * ) THEN - - 82 * - COUNT ( * ) END )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9499
SELECT + + 54 - - COUNT( * ) - + 35 DIV + - 38 + 80
----
135

skipif mysql # not compatible
query I rowsort label-9499
SELECT + + 54 - - COUNT ( * ) - + 35 / + - 38 + 80
----
135

query I rowsort
SELECT DISTINCT - + 1 * + 77 AS col2
----
-77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9501
SELECT DISTINCT COUNT( * ) * - COALESCE ( - 58, - 19 * - + SUM( ALL - + 64 ) * - 87 ) - - 48 DIV MAX( DISTINCT + + 72 ) AS col1
----
58

skipif mysql # not compatible
query I rowsort label-9501
SELECT DISTINCT COUNT ( * ) * - COALESCE ( - 58, - 19 * - + SUM ( ALL - + 64 ) * - 87 ) - - 48 / MAX ( DISTINCT + + 72 ) AS col1
----
58

query I rowsort
SELECT - NULLIF ( - 88, 1 + + 88 + 44 + 6 + + 59 * - COALESCE ( - 74, - 25 ) * - 49 + 47 * - - 17 )
----
88

query I rowsort
SELECT + 10 + + 30 AS col2
----
40

query I rowsort
SELECT ALL + 8 * + 29 - + 52 * + 87
----
-4292

query I rowsort
SELECT DISTINCT - ( - + 20 ) AS col2
----
20

query I rowsort
SELECT + - ( - COALESCE ( ( - - 52 ), - - 23 ) ) + 24
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-9507
SELECT - 68 * + COUNT( * ) AS col1
----
-68

skipif mysql # not compatible
query I rowsort label-9507
SELECT - 68 * + COUNT ( * ) AS col1
----
-68

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9508
SELECT + 8 - 47 * - 38 + - COUNT( * ) col2, - 53 + - + 22 + - COUNT( * ) + - 29 DIV - ( + ( + 93 ) ) * + 84
----
1793
-76

skipif mysql # not compatible
query II rowsort label-9508
SELECT + 8 - 47 * - 38 + - COUNT ( * ) col2, - 53 + - + 22 + - COUNT ( * ) + - 29 / - ( + ( + 93 ) ) * + 84
----
1793
-76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9509
SELECT DISTINCT - CAST( NULL AS SIGNED ) * 98 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9509
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * 98 AS col0
----
NULL

query I rowsort
SELECT + 35 * 70 + + - 44 AS col1
----
2406

query I rowsort
SELECT DISTINCT 80 * 94 col2
----
7520

query I rowsort
SELECT 44 * + 72
----
3168

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9513
SELECT 53 DIV - - COUNT( * )
----
53

skipif mysql # not compatible
query I rowsort label-9513
SELECT 53 / - - COUNT ( * )
----
53

query I rowsort
SELECT COALESCE ( 11, + 4 * + 1 + + 61 ) + 58
----
69

onlyif mysql # DIV for integer division: 
query I rowsort label-9515
SELECT 60 - 29 DIV - 42
----
60

skipif mysql # not compatible
query I rowsort label-9515
SELECT 60 - 29 / - 42
----
60

query I rowsort
SELECT 34 * + - 68 col2
----
-2312

onlyif mysql # aggregate syntax: 
query I rowsort label-9517
SELECT NULLIF ( - - 50, + + 44 ) * 72 * - 20 + - + COUNT( * ) AS col2
----
-72001

skipif mysql # not compatible
query I rowsort label-9517
SELECT NULLIF ( - - 50, + + 44 ) * 72 * - 20 + - + COUNT ( * ) AS col2
----
-72001

query I rowsort
SELECT ALL - 94 + 83 AS col0
----
-11

query I rowsort
SELECT DISTINCT - ( + 47 ) col1
----
-47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9520
SELECT DISTINCT CAST( + 98 AS SIGNED ) + - + 82 DIV NULLIF ( - 9, - - 4 * - 19 DIV + CAST( - - 90 AS SIGNED ) + MIN( ALL - + 30 ) ) + 59 * 73
----
4414

skipif mysql # not compatible
query I rowsort label-9520
SELECT DISTINCT CAST ( + 98 AS INTEGER ) + - + 82 / NULLIF ( - 9, - - 4 * - 19 / + CAST ( - - 90 AS INTEGER ) + MIN ( ALL - + 30 ) ) + 59 * 73
----
4414

query I rowsort
SELECT + 43 * 32 + - 93 - + 2
----
1281

query I rowsort
SELECT DISTINCT - 77 * - 57 AS col1
----
4389

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9523
SELECT DISTINCT - NULLIF ( - 63, CASE 5 WHEN - 42 * 73 DIV ( - - 22 ) * + 86 DIV + COALESCE ( - 32, - 51 ) THEN NULL WHEN + + COUNT( * ) THEN 55 ELSE 8 END ) AS col1, CAST( + - 94 AS SIGNED ) DIV - + 95
----
63
0

skipif mysql # not compatible
query II rowsort label-9523
SELECT DISTINCT - NULLIF ( - 63, CASE 5 WHEN - 42 * 73 / ( - - 22 ) * + 86 / + COALESCE ( - 32, - 51 ) THEN NULL WHEN + + COUNT ( * ) THEN 55 ELSE 8 END ) AS col1, CAST ( + - 94 AS INTEGER ) / - + 95
----
63
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9524
SELECT 85 * + + 95 / 72 * - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9524
SELECT 85 * + + 95 / 72 * - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9525
SELECT ALL - 59 * - COALESCE ( 96, - ( COUNT( * ) ) ) AS col2
----
5664

skipif mysql # not compatible
query I rowsort label-9525
SELECT ALL - 59 * - COALESCE ( 96, - ( COUNT ( * ) ) ) AS col2
----
5664

query I rowsort
SELECT ALL - ( 46 ) col2
----
-46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9527
SELECT - MAX( ALL - CAST( 53 AS SIGNED ) ) * - CASE 74 WHEN + 21 THEN NULL WHEN CAST( ( + - 72 ) AS SIGNED ) THEN 24 / 4 - + 14 + 93 END + - 64 + + 40 * - 35 * 85 / + 64
----
NULL

skipif mysql # not compatible
query I rowsort label-9527
SELECT - MAX ( ALL - CAST ( 53 AS INTEGER ) ) * - CASE 74 WHEN + 21 THEN NULL WHEN CAST ( ( + - 72 ) AS INTEGER ) THEN 24 / 4 - + 14 + 93 END + - 64 + + 40 * - 35 * 85 / + 64
----
NULL

query I rowsort
SELECT ALL + 32 - 1 + + 26
----
57

query I rowsort
SELECT 75 * + - 30
----
-2250

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9530
SELECT DISTINCT + COALESCE ( 88, - NULLIF ( + 17, 9 ), + CAST( NULL AS SIGNED ) DIV + COUNT( * ) ) DIV + COUNT( * )
----
88

skipif mysql # not compatible
query I rowsort label-9530
SELECT DISTINCT + COALESCE ( 88, - NULLIF ( + 17, 9 ), + CAST ( NULL AS INTEGER ) / + COUNT ( * ) ) / + COUNT ( * )
----
88

onlyif mysql # DIV for integer division: 
query I rowsort label-9531
SELECT 94 DIV 45 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-9531
SELECT 94 / 45 AS col1
----
2

query I rowsort
SELECT ALL + 33 - + 61 AS col0
----
-28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9533
SELECT 0 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9533
SELECT 0 + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9534
SELECT DISTINCT COALESCE ( 75, 70 + - 96 ) * + NULLIF ( - 77 * 36, 55 * MIN( DISTINCT - 29 * 10 ) ) AS col2
----
-207900

skipif mysql # not compatible
query I rowsort label-9534
SELECT DISTINCT COALESCE ( 75, 70 + - 96 ) * + NULLIF ( - 77 * 36, 55 * MIN ( DISTINCT - 29 * 10 ) ) AS col2
----
-207900

onlyif mysql # DIV for integer division: 
query I rowsort label-9535
SELECT DISTINCT + 15 DIV 68 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9535
SELECT DISTINCT + 15 / 68 AS col2
----
0

query I rowsort
SELECT 90 * + 63 AS col0
----
5670

onlyif mysql # aggregate syntax: 
query I rowsort label-9537
SELECT - 23 * 40 + COUNT( * ) AS col2
----
-919

skipif mysql # not compatible
query I rowsort label-9537
SELECT - 23 * 40 + COUNT ( * ) AS col2
----
-919

query I rowsort
SELECT DISTINCT + 88 * 95
----
8360

query I rowsort
SELECT 35 + - 53 * 67
----
-3516

query I rowsort
SELECT 25 + + 5
----
30

query I rowsort
SELECT ALL - 25 * + ( + 61 * 4 )
----
-6100

query I rowsort
SELECT DISTINCT 68 + 77 AS col1
----
145

onlyif mysql # aggregate syntax: 
query I rowsort label-9543
SELECT COUNT( * ) * - ( - SUM( 26 ) ) AS col1
----
26

skipif mysql # not compatible
query I rowsort label-9543
SELECT COUNT ( * ) * - ( - SUM ( 26 ) ) AS col1
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-9544
SELECT ALL COUNT( DISTINCT + ( + 90 ) ) + 47 * + 37
----
1740

skipif mysql # not compatible
query I rowsort label-9544
SELECT ALL COUNT ( DISTINCT + ( + 90 ) ) + 47 * + 37
----
1740

query I rowsort
SELECT ALL 74 + COALESCE ( 64, + 13 + 27 ) * + 9 col2
----
650

query I rowsort
SELECT ALL 91 + - 43 AS col1
----
48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9547
SELECT COUNT( * ) DIV - 4 col2
----
0

skipif mysql # not compatible
query I rowsort label-9547
SELECT COUNT ( * ) / - 4 col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9548
SELECT ( ( + 90 ) ) + - ( + MIN( - 37 ) ) * - 73
----
-2611

skipif mysql # not compatible
query I rowsort label-9548
SELECT ( ( + 90 ) ) + - ( + MIN ( - 37 ) ) * - 73
----
-2611

onlyif mysql # aggregate syntax: 
query I rowsort label-9549
SELECT ALL 67 + MIN( DISTINCT - 71 )
----
-4

skipif mysql # not compatible
query I rowsort label-9549
SELECT ALL 67 + MIN ( DISTINCT - 71 )
----
-4

query I rowsort
SELECT ALL 20 + COALESCE ( 54 + - 42, 92, - 61 * 4 ) AS col1
----
32

onlyif mysql # DIV for integer division: 
query I rowsort label-9551
SELECT ( 72 ) DIV - 91 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9551
SELECT ( 72 ) / - 91 AS col0
----
0

query I rowsort
SELECT ALL ( 37 ) + + 57
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-9553
SELECT ALL - 63 + + MAX( DISTINCT - 75 ) AS col0
----
-138

skipif mysql # not compatible
query I rowsort label-9553
SELECT ALL - 63 + + MAX ( DISTINCT - 75 ) AS col0
----
-138

onlyif mysql # aggregate syntax: 
query I rowsort label-9554
SELECT MAX( ALL 13 ) AS col0
----
13

skipif mysql # not compatible
query I rowsort label-9554
SELECT MAX ( ALL 13 ) AS col0
----
13

query I rowsort
SELECT 85 * + 50 AS col0
----
4250

onlyif mysql # aggregate syntax: 
query I rowsort label-9556
SELECT SUM( + 53 ) + - 44
----
9

skipif mysql # not compatible
query I rowsort label-9556
SELECT SUM ( + 53 ) + - 44
----
9

query I rowsort
SELECT 94 * - 96 col0
----
-9024

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9558
SELECT MIN( DISTINCT + CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9558
SELECT MIN ( DISTINCT + CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9559
SELECT COUNT( ALL 27 )
----
1

skipif mysql # not compatible
query I rowsort label-9559
SELECT COUNT ( ALL 27 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9560
SELECT ALL + 1 - COUNT( * ) * 5 AS col2
----
-4

skipif mysql # not compatible
query I rowsort label-9560
SELECT ALL + 1 - COUNT ( * ) * 5 AS col2
----
-4

onlyif mysql # DIV for integer division: 
query I rowsort label-9561
SELECT + 57 * + 92 - - 56 DIV 43
----
5245

skipif mysql # not compatible
query I rowsort label-9561
SELECT + 57 * + 92 - - 56 / 43
----
5245

query I rowsort
SELECT ALL + 28 * + ( + 5 * 64 ) AS col2
----
8960

query I rowsort
SELECT ALL - + ( 54 ) AS col0
----
-54

query I rowsort
SELECT ALL - 46 - + 76
----
-122

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9565
SELECT + SUM( + 0 ) + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9565
SELECT + SUM ( + 0 ) + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL + + 0 - - 12
----
12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9567
SELECT - CAST( + 62 AS SIGNED ) * 89
----
-5518

skipif mysql # not compatible
query I rowsort label-9567
SELECT - CAST ( + 62 AS INTEGER ) * 89
----
-5518

onlyif mysql # aggregate syntax: 
query I rowsort label-9568
SELECT ALL + - MAX( DISTINCT 36 ) * 9
----
-324

skipif mysql # not compatible
query I rowsort label-9568
SELECT ALL + - MAX ( DISTINCT 36 ) * 9
----
-324

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9569
SELECT DISTINCT + - 33 * + CAST( CAST( - 80 AS SIGNED ) AS SIGNED ) AS col0
----
2640

skipif mysql # not compatible
query I rowsort label-9569
SELECT DISTINCT + - 33 * + CAST ( CAST ( - 80 AS INTEGER ) AS INTEGER ) AS col0
----
2640

onlyif mysql # aggregate syntax: 
query I rowsort label-9570
SELECT - - 71 * - COUNT( * ) - - 73
----
2

skipif mysql # not compatible
query I rowsort label-9570
SELECT - - 71 * - COUNT ( * ) - - 73
----
2

query I rowsort
SELECT - 54 * 46 AS col1
----
-2484

query I rowsort
SELECT - 28 - + 21 AS col1
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-9573
SELECT DISTINCT - - ( COUNT( * ) )
----
1

skipif mysql # not compatible
query I rowsort label-9573
SELECT DISTINCT - - ( COUNT ( * ) )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9574
SELECT ALL + 39 DIV 7
----
5

skipif mysql # not compatible
query I rowsort label-9574
SELECT ALL + 39 / 7
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-9575
SELECT COUNT( * ) * - 15 col2
----
-15

skipif mysql # not compatible
query I rowsort label-9575
SELECT COUNT ( * ) * - 15 col2
----
-15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9576
SELECT DISTINCT + - 91 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9576
SELECT DISTINCT + - 91 + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9577
SELECT ALL SUM( DISTINCT 29 ) AS col2
----
29

skipif mysql # not compatible
query I rowsort label-9577
SELECT ALL SUM ( DISTINCT 29 ) AS col2
----
29

query I rowsort
SELECT DISTINCT 43 + 72 * 64
----
4651

query I rowsort
SELECT ALL - 90 * 15
----
-1350

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9580
SELECT ALL + - ( + SUM( DISTINCT - CAST( NULL AS SIGNED ) ) ) + 41 * + CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9580
SELECT ALL + - ( + SUM ( DISTINCT - CAST ( NULL AS INTEGER ) ) ) + 41 * + CAST ( NULL AS INTEGER ) col2
----
NULL

query I rowsort
SELECT DISTINCT - + 54 + + 29 AS col0
----
-25

query I rowsort
SELECT - 70 + 81
----
11

query I rowsort
SELECT DISTINCT + 87 + + 42 AS col2
----
129

query I rowsort
SELECT ALL - NULLIF ( - - 4, - 77 ) * + 17
----
-68

onlyif mysql # DIV for integer division: 
query I rowsort label-9585
SELECT + 62 DIV + ( + 89 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9585
SELECT + 62 / + ( + 89 ) AS col0
----
0

query I rowsort
SELECT ALL 26 * - + 22
----
-572

onlyif mysql # aggregate syntax: 
query I rowsort label-9587
SELECT - SUM( - 50 ) AS col2
----
50

skipif mysql # not compatible
query I rowsort label-9587
SELECT - SUM ( - 50 ) AS col2
----
50

query I rowsort
SELECT + 26 + 27 * + 45 AS col0
----
1241

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9589
SELECT ALL - COUNT( * ) + + 87 + CAST( 29 AS SIGNED ) AS col1
----
115

skipif mysql # not compatible
query I rowsort label-9589
SELECT ALL - COUNT ( * ) + + 87 + CAST ( 29 AS INTEGER ) AS col1
----
115

query I rowsort
SELECT DISTINCT NULLIF ( - ( 52 ), 62 / 54 ) AS col0
----
-52

query I rowsort
SELECT + COALESCE ( 7, 34 + - 98, + 7 + - 78 ) * + CASE + 54 WHEN - 63 * 76 THEN 7 * 59 + COALESCE ( - 94, 34, - 53 ) END
----
NULL

query I rowsort
SELECT DISTINCT 43 - - 84 + 79 * 74
----
5973

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9593
SELECT + ( - + COUNT( * ) ) * COALESCE ( CAST( - 46 AS SIGNED ) * + 99 + 78 * + 26, 63 ) AS col1
----
2526

skipif mysql # not compatible
query I rowsort label-9593
SELECT + ( - + COUNT ( * ) ) * COALESCE ( CAST ( - 46 AS INTEGER ) * + 99 + 78 * + 26, 63 ) AS col1
----
2526

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9594
SELECT + CAST( + 71 AS SIGNED ) + + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-9594
SELECT + CAST ( + 71 AS INTEGER ) + + CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT ALL 78 - - 54 col1
----
132

query I rowsort
SELECT ( + NULLIF ( - 88, + CASE - 34 WHEN + NULLIF ( 93, 75 / + 89 ) + 69 THEN 90 WHEN - ( + 45 ) + 9 / 96 THEN NULL ELSE 85 END * + 36 ) )
----
-88

query I rowsort
SELECT 5 * - 59 + + 42 AS col2
----
-253

onlyif mysql # aggregate syntax: 
query I rowsort label-9598
SELECT DISTINCT COUNT( * ) * 84 * + 32
----
2688

skipif mysql # not compatible
query I rowsort label-9598
SELECT DISTINCT COUNT ( * ) * 84 * + 32
----
2688

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9599
SELECT + CAST( NULL AS SIGNED ) * - 28 / 91
----
NULL

skipif mysql # not compatible
query I rowsort label-9599
SELECT + CAST ( NULL AS INTEGER ) * - 28 / 91
----
NULL

query I rowsort
SELECT + ( + 58 ) AS col2
----
58

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9601
SELECT + CAST( NULL AS DECIMAL ) + - 1 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9601
SELECT + CAST ( NULL AS REAL ) + - 1 AS col1
----
NULL

query I rowsort
SELECT ALL 42 * - 58
----
-2436

onlyif mysql # aggregate syntax: 
query I rowsort label-9603
SELECT 5 * + + 61 * - COUNT( * ) + + 96 * 47 AS col0
----
4207

skipif mysql # not compatible
query I rowsort label-9603
SELECT 5 * + + 61 * - COUNT ( * ) + + 96 * 47 AS col0
----
4207

query I rowsort
SELECT DISTINCT 77 * 42 AS col0
----
3234

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9605
SELECT 6 DIV - 75 * 66 + + COUNT( * ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9605
SELECT 6 / - 75 * 66 + + COUNT ( * ) AS col1
----
1

query I rowsort
SELECT ALL + - 2 col2
----
-2

query I rowsort
SELECT COALESCE ( - 81, ( 57 ) )
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-9608
SELECT DISTINCT + + SUM( + - 34 ) AS col0
----
-34

skipif mysql # not compatible
query I rowsort label-9608
SELECT DISTINCT + + SUM ( + - 34 ) AS col0
----
-34

query I rowsort
SELECT + - 4 + - 66 AS col1
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-9610
SELECT + 29 * COUNT( * ) + 85
----
114

skipif mysql # not compatible
query I rowsort label-9610
SELECT + 29 * COUNT ( * ) + 85
----
114

onlyif mysql # aggregate syntax: 
query I rowsort label-9611
SELECT - 98 + - MIN( 49 )
----
-147

skipif mysql # not compatible
query I rowsort label-9611
SELECT - 98 + - MIN ( 49 )
----
-147

onlyif mysql # DIV for integer division: 
query I rowsort label-9612
SELECT ALL + 35 DIV + + 36 + - 1
----
-1

skipif mysql # not compatible
query I rowsort label-9612
SELECT ALL + 35 / + + 36 + - 1
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-9613
SELECT - + 24 DIV - + 11
----
2

skipif mysql # not compatible
query I rowsort label-9613
SELECT - + 24 / - + 11
----
2

query I rowsort
SELECT - 89 * + 38 + - 20 AS col2
----
-3402

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9615
SELECT + COALESCE ( + 31, + 97 * + CAST( NULL AS SIGNED ) )
----
31

skipif mysql # not compatible
query I rowsort label-9615
SELECT + COALESCE ( + 31, + 97 * + CAST ( NULL AS INTEGER ) )
----
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9616
SELECT - - 49 * - COALESCE ( + CASE 67 WHEN - COUNT( * ) THEN NULLIF ( 75, + CAST( + 32 AS SIGNED ) + - 1 * - 69 ) WHEN + ( 95 ) THEN NULL WHEN 19 + + COUNT( * ) / + 47 THEN NULL END, - 87 * MAX( 57 ), + 59, - 25 + + ( CAST( NULL AS SIGNED ) + CAST( CAST( + 41 AS SIGNED ) + COUNT( * ) AS SIGNED ) ) ) col2
----
242991

skipif mysql # not compatible
query I rowsort label-9616
SELECT - - 49 * - COALESCE ( + CASE 67 WHEN - COUNT ( * ) THEN NULLIF ( 75, + CAST ( + 32 AS INTEGER ) + - 1 * - 69 ) WHEN + ( 95 ) THEN NULL WHEN 19 + + COUNT ( * ) / + 47 THEN NULL END, - 87 * MAX ( 57 ), + 59, - 25 + + ( CAST ( NULL AS INTEGER ) + CAST ( CAST ( + 41 AS INTEGER ) + COUNT ( * ) AS INTEGER ) ) ) col2
----
242991

onlyif mysql # aggregate syntax: 
query I rowsort label-9617
SELECT ALL - + COUNT( 63 ) * 74 + + 61 * 56 AS col0
----
3342

skipif mysql # not compatible
query I rowsort label-9617
SELECT ALL - + COUNT ( 63 ) * 74 + + 61 * 56 AS col0
----
3342

query I rowsort
SELECT + ( + - 96 ) + - 87
----
-183

onlyif mysql # aggregate syntax: 
query I rowsort label-9619
SELECT DISTINCT + 2 * 59 * + 53 + COUNT( - 50 ) AS col0
----
6255

skipif mysql # not compatible
query I rowsort label-9619
SELECT DISTINCT + 2 * 59 * + 53 + COUNT ( - 50 ) AS col0
----
6255

query I rowsort
SELECT - 87 + - 30 * - 91
----
2643

onlyif mysql # aggregate syntax: 
query I rowsort label-9621
SELECT ALL - + COUNT( * ) * 20 + 46
----
26

skipif mysql # not compatible
query I rowsort label-9621
SELECT ALL - + COUNT ( * ) * 20 + 46
----
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9622
SELECT ALL + - 63 * NULLIF ( COALESCE ( + CAST( 12 AS SIGNED ), + COUNT( * ) + 61 * + COUNT( * ), 18 ), 51 ) * + 83 + CAST( - 78 AS SIGNED ) AS col0
----
-62826

skipif mysql # not compatible
query I rowsort label-9622
SELECT ALL + - 63 * NULLIF ( COALESCE ( + CAST ( 12 AS INTEGER ), + COUNT ( * ) + 61 * + COUNT ( * ), 18 ), 51 ) * + 83 + CAST ( - 78 AS INTEGER ) AS col0
----
-62826

query I rowsort
SELECT + 45 - + - 95 - 36
----
104

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9624
SELECT + + COALESCE ( + COUNT( * ), - 29 + - CASE COUNT( * ) + - MAX( 51 + 7 ) WHEN + 35 + 58 THEN 90 WHEN 23 * - 52 THEN NULL WHEN 54 * - CAST( NULL AS SIGNED ) - + 61 THEN NULL ELSE NULL END ) DIV - 45 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9624
SELECT + + COALESCE ( + COUNT ( * ), - 29 + - CASE COUNT ( * ) + - MAX ( 51 + 7 ) WHEN + 35 + 58 THEN 90 WHEN 23 * - 52 THEN NULL WHEN 54 * - CAST ( NULL AS INTEGER ) - + 61 THEN NULL ELSE NULL END ) / - 45 AS col1
----
0

query I rowsort
SELECT + 72 * 92 + NULLIF ( 34, + 77 )
----
6658

onlyif mysql # aggregate syntax: 
query I rowsort label-9626
SELECT DISTINCT + - MAX( + 53 ) * 53 + 87 * 92 AS col2
----
5195

skipif mysql # not compatible
query I rowsort label-9626
SELECT DISTINCT + - MAX ( + 53 ) * 53 + 87 * 92 AS col2
----
5195

onlyif mysql # aggregate syntax: 
query I rowsort label-9627
SELECT - - COUNT( * ) + - 26 + - 84
----
-109

skipif mysql # not compatible
query I rowsort label-9627
SELECT - - COUNT ( * ) + - 26 + - 84
----
-109

query I rowsort
SELECT DISTINCT ( + - 64 ) col2
----
-64

query I rowsort
SELECT ALL ( + 44 ) col2
----
44

query I rowsort
SELECT - 50 + + 44
----
-6

query I rowsort
SELECT DISTINCT - 18 + - 9 * - 72 * - 83 + + 9
----
-53793

onlyif mysql # aggregate syntax: 
query I rowsort label-9632
SELECT - SUM( ALL 65 ) AS col2
----
-65

skipif mysql # not compatible
query I rowsort label-9632
SELECT - SUM ( ALL 65 ) AS col2
----
-65

query I rowsort
SELECT ALL ( - + 1 ) col0
----
-1

query I rowsort
SELECT DISTINCT - 18 - 53 AS col2
----
-71

query I rowsort
SELECT DISTINCT ( NULLIF ( 95, 30 * 34 ) )
----
95

query II rowsort
SELECT 15, + 36 * + 93 AS col2
----
15
3348

query I rowsort
SELECT + 72 + + 56 AS col0
----
128

query I rowsort
SELECT ALL - 0 - - 55 + + - 21 + ( 4 + 34 * + 6 ) * 18
----
3778

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9639
SELECT ALL + 46 * + CAST( + + 52 AS SIGNED ) AS col2
----
2392

skipif mysql # not compatible
query I rowsort label-9639
SELECT ALL + 46 * + CAST ( + + 52 AS INTEGER ) AS col2
----
2392

onlyif mysql # aggregate syntax: 
query I rowsort label-9640
SELECT DISTINCT - MAX( ALL + 24 ) * - + 52 col1
----
1248

skipif mysql # not compatible
query I rowsort label-9640
SELECT DISTINCT - MAX ( ALL + 24 ) * - + 52 col1
----
1248

onlyif mysql # DIV for integer division: 
query I rowsort label-9641
SELECT - ( - 99 ) * 64 DIV 60
----
105

skipif mysql # not compatible
query I rowsort label-9641
SELECT - ( - 99 ) * 64 / 60
----
105

query I rowsort
SELECT - 19 * 74 AS col2
----
-1406

query II rowsort
SELECT DISTINCT 88 AS col2, - 48 + 71
----
88
23

query I rowsort
SELECT ALL + 46 * + + 14
----
644

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9645
SELECT DISTINCT CAST( - 86 AS SIGNED )
----
-86

skipif mysql # not compatible
query I rowsort label-9645
SELECT DISTINCT CAST ( - 86 AS INTEGER )
----
-86

query I rowsort
SELECT + 65 * + 81 AS col1
----
5265

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9647
SELECT COUNT( * ) DIV 88 + + 60 + 62 * 73 AS col2
----
4586

skipif mysql # not compatible
query I rowsort label-9647
SELECT COUNT ( * ) / 88 + + 60 + 62 * 73 AS col2
----
4586

onlyif mysql # aggregate syntax: 
query I rowsort label-9648
SELECT + - SUM( ( + 75 ) )
----
-75

skipif mysql # not compatible
query I rowsort label-9648
SELECT + - SUM ( ( + 75 ) )
----
-75

query I rowsort
SELECT - + 75 + 6
----
-69

query I rowsort
SELECT - - 0 * - - 89
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9651
SELECT DISTINCT + + 71 DIV - 74 + ( COUNT( * ) ) + 82 * ( + 54 * 63 ) AS col1
----
278965

skipif mysql # not compatible
query I rowsort label-9651
SELECT DISTINCT + + 71 / - 74 + ( COUNT ( * ) ) + 82 * ( + 54 * 63 ) AS col1
----
278965

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9652
SELECT ALL - - COALESCE ( + 84, - 56 * - 34, + 58 DIV + COUNT( * ) + COUNT( * ) ) DIV + 93 + 54
----
54

skipif mysql # not compatible
query I rowsort label-9652
SELECT ALL - - COALESCE ( + 84, - 56 * - 34, + 58 / + COUNT ( * ) + COUNT ( * ) ) / + 93 + 54
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-9653
SELECT 54 + - - COUNT( * )
----
55

skipif mysql # not compatible
query I rowsort label-9653
SELECT 54 + - - COUNT ( * )
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-9654
SELECT ALL - 12 + - SUM( ALL - + 73 ) AS col0
----
61

skipif mysql # not compatible
query I rowsort label-9654
SELECT ALL - 12 + - SUM ( ALL - + 73 ) AS col0
----
61

query I rowsort
SELECT ALL 46 + + 37 + ( + 90 ) * 2 AS col0
----
263

onlyif mysql # aggregate syntax: 
query I rowsort label-9656
SELECT MIN( 3 )
----
3

skipif mysql # not compatible
query I rowsort label-9656
SELECT MIN ( 3 )
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-9657
SELECT ALL + - 28 + + 87 + - 51 + - 64 * - CASE ( COUNT( * ) ) WHEN 91 THEN - 81 + - 68 DIV 44 WHEN 40 * ( - 16 ) + - MAX( - 62 - + 42 * + COALESCE ( 32, + CAST( NULL AS DECIMAL ) ) ) THEN - SUM( 54 ) + - 19 * - CAST( NULL AS SIGNED ) WHEN + COUNT( DISTINCT + 6 ) THEN 71 END
----
4552

skipif mysql # not compatible
query I rowsort label-9657
SELECT ALL + - 28 + + 87 + - 51 + - 64 * - CASE ( COUNT ( * ) ) WHEN 91 THEN - 81 + - 68 / 44 WHEN 40 * ( - 16 ) + - MAX ( - 62 - + 42 * + COALESCE ( 32, + CAST ( NULL AS REAL ) ) ) THEN - SUM ( 54 ) + - 19 * - CAST ( NULL AS INTEGER ) WHEN + COUNT ( DISTINCT + 6 ) THEN 71 END
----
4552

onlyif mysql # aggregate syntax: 
query I rowsort label-9658
SELECT - 66 * + - 72 * - COUNT( * ) + 3 + ( + 25 ) * - ( 78 * - 5 )
----
5001

skipif mysql # not compatible
query I rowsort label-9658
SELECT - 66 * + - 72 * - COUNT ( * ) + 3 + ( + 25 ) * - ( 78 * - 5 )
----
5001

query I rowsort
SELECT + 99 * + 92 AS col0
----
9108

onlyif mysql # DIV for integer division: 
query I rowsort label-9660
SELECT - 8 DIV - - ( + 37 ) * + 41 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9660
SELECT - 8 / - - ( + 37 ) * + 41 AS col2
----
0

query I rowsort
SELECT ALL 91 + 92 AS col1
----
183

onlyif mysql # DIV for integer division: 
query I rowsort label-9662
SELECT ALL 5 DIV - 30 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9662
SELECT ALL 5 / - 30 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9663
SELECT - 78 * + 7 + - - MAX( 76 ) + + 48 AS col1
----
-422

skipif mysql # not compatible
query I rowsort label-9663
SELECT - 78 * + 7 + - - MAX ( 76 ) + + 48 AS col1
----
-422

query I rowsort
SELECT ALL 67 - - 66 + - - 89 * - - 79 AS col0
----
7164

query II rowsort
SELECT 78 * + + 99 AS col0, - 19 * + CASE ( ( - COALESCE ( + 73, + 63 ) ) ) WHEN 62 THEN - 8 END
----
7722
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9666
SELECT DISTINCT 2 * + ( + 62 ) DIV ( 29 ) * 45 AS col1
----
180

skipif mysql # not compatible
query I rowsort label-9666
SELECT DISTINCT 2 * + ( + 62 ) / ( 29 ) * 45 AS col1
----
180

query I rowsort
SELECT ( + 0 ) + - - 20 AS col1
----
20

query I rowsort
SELECT 98 + - 49
----
49

query I rowsort
SELECT 68 + - 74 * + + 85 * - 45 * 13
----
3679718

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9670
SELECT 75 + 57 - - ( - 97 ) * CASE + 98 WHEN + SUM( ALL 31 ) + - CAST( NULL AS SIGNED ) THEN + 48 ELSE 95 * + 40 END
----
-368468

skipif mysql # not compatible
query I rowsort label-9670
SELECT 75 + 57 - - ( - 97 ) * CASE + 98 WHEN + SUM ( ALL 31 ) + - CAST ( NULL AS INTEGER ) THEN + 48 ELSE 95 * + 40 END
----
-368468

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9671
SELECT 87 / + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9671
SELECT 87 / + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9672
SELECT ALL - 69 DIV + - 19
----
3

skipif mysql # not compatible
query I rowsort label-9672
SELECT ALL - 69 / + - 19
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-9673
SELECT DISTINCT - 88 DIV 24 AS col1
----
-3

skipif mysql # not compatible
query I rowsort label-9673
SELECT DISTINCT - 88 / 24 AS col1
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9674
SELECT 13 DIV - - ( + - MIN( ALL - 43 ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9674
SELECT 13 / - - ( + - MIN ( ALL - 43 ) ) AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9675
SELECT 84 + + - 24 AS col0, CAST( - 38 AS SIGNED ) * COUNT( * ) - + COUNT( DISTINCT 65 + 38 )
----
60
-39

skipif mysql # not compatible
query II rowsort label-9675
SELECT 84 + + - 24 AS col0, CAST ( - 38 AS INTEGER ) * COUNT ( * ) - + COUNT ( DISTINCT 65 + 38 )
----
60
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-9676
SELECT ALL - CASE + 78 WHEN - COUNT( 14 ) + 59 THEN - 91 WHEN 99 + + 12 * COUNT( * ) THEN - SUM( + ( + 48 ) ) END * 66
----
NULL

skipif mysql # not compatible
query I rowsort label-9676
SELECT ALL - CASE + 78 WHEN - COUNT ( 14 ) + 59 THEN - 91 WHEN 99 + + 12 * COUNT ( * ) THEN - SUM ( + ( + 48 ) ) END * 66
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9677
SELECT 97 + 26 * - COUNT( 79 ) * - COUNT( * ) + - 53 col0
----
70

skipif mysql # not compatible
query I rowsort label-9677
SELECT 97 + 26 * - COUNT ( 79 ) * - COUNT ( * ) + - 53 col0
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-9678
SELECT ALL + + 27 * - COUNT( * )
----
-27

skipif mysql # not compatible
query I rowsort label-9678
SELECT ALL + + 27 * - COUNT ( * )
----
-27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9679
SELECT - 10 / + 9 + CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9679
SELECT - 10 / + 9 + CAST ( NULL AS INTEGER ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9680
SELECT ALL + NULLIF ( + 10, COUNT( + 65 ) ) + 59
----
69

skipif mysql # not compatible
query I rowsort label-9680
SELECT ALL + NULLIF ( + 10, COUNT ( + 65 ) ) + 59
----
69

query I rowsort
SELECT ALL - - 14 + 97 AS col2
----
111

onlyif mysql # aggregate syntax: 
query I rowsort label-9682
SELECT ALL - - 97 * COUNT( * ) * + 83 * + 47 * ( 31 )
----
11730307

skipif mysql # not compatible
query I rowsort label-9682
SELECT ALL - - 97 * COUNT ( * ) * + 83 * + 47 * ( 31 )
----
11730307

query I rowsort
SELECT ALL - + ( - 87 ) AS col0
----
87

query I rowsort
SELECT DISTINCT - - 91 AS col0
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-9685
SELECT ALL - - 22 + - 23 - - ( + + CASE 21 WHEN - 27 * 39 THEN COALESCE ( - 25, COUNT( * ) ) WHEN + 28 THEN + COUNT( * ) END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9685
SELECT ALL - - 22 + - 23 - - ( + + CASE 21 WHEN - 27 * 39 THEN COALESCE ( - 25, COUNT ( * ) ) WHEN + 28 THEN + COUNT ( * ) END ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9686
SELECT CASE + + COUNT( DISTINCT + 7 ) WHEN + 76 + + CAST( NULL AS DECIMAL ) THEN + COUNT( * ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9686
SELECT CASE + + COUNT ( DISTINCT + 7 ) WHEN + 76 + + CAST ( NULL AS REAL ) THEN + COUNT ( * ) END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9687
SELECT ( - COALESCE ( + ( 84 ), 67, 27 ) ) + + ( 38 ) * - COUNT( * ) AS col2
----
-122

skipif mysql # not compatible
query I rowsort label-9687
SELECT ( - COALESCE ( + ( 84 ), 67, 27 ) ) + + ( 38 ) * - COUNT ( * ) AS col2
----
-122

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9688
SELECT 48 * - CAST( NULL AS DECIMAL ) * - MAX( + 52 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9688
SELECT 48 * - CAST ( NULL AS REAL ) * - MAX ( + 52 ) AS col2
----
NULL

query I rowsort
SELECT - 97 + + 47 AS col1
----
-50

query I rowsort
SELECT DISTINCT - + 71 col0
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-9691
SELECT ALL ( + - 78 ) - 58 + + COUNT( * ) + - 71 * 15
----
-1200

skipif mysql # not compatible
query I rowsort label-9691
SELECT ALL ( + - 78 ) - 58 + + COUNT ( * ) + - 71 * 15
----
-1200

onlyif mysql # DIV for integer division: 
query I rowsort label-9692
SELECT ALL - 56 DIV 67 + 50
----
50

skipif mysql # not compatible
query I rowsort label-9692
SELECT ALL - 56 / 67 + 50
----
50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9693
SELECT + 72 + - - COUNT( * ) - 83 + - COALESCE ( - 41, 17 ) * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9693
SELECT + 72 + - - COUNT ( * ) - 83 + - COALESCE ( - 41, 17 ) * CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT - - 5 * + 23
----
115

onlyif mysql # aggregate syntax: 
query II rowsort label-9695
SELECT ALL - 4, COUNT( * ) + + + 85 * + 82 AS col0
----
-4
6971

skipif mysql # not compatible
query II rowsort label-9695
SELECT ALL - 4, COUNT ( * ) + + + 85 * + 82 AS col0
----
-4
6971

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9696
SELECT CASE NULLIF ( CAST( NULL AS SIGNED ), - 14 * + - 8 + 24 + + 25 ) WHEN + COUNT( * ) * + 55 + + 69 / CASE 9 WHEN 47 THEN CASE 63 WHEN + 69 * NULLIF ( 55 * + 65, ( 89 ) ) THEN - 76 * + 58 END WHEN 65 THEN - 21 * 81 + 27 ELSE NULL END THEN 20 WHEN - 95 * 1 THEN NULL END * - 68
----
NULL

skipif mysql # not compatible
query I rowsort label-9696
SELECT CASE NULLIF ( CAST ( NULL AS INTEGER ), - 14 * + - 8 + 24 + + 25 ) WHEN + COUNT ( * ) * + 55 + + 69 / CASE 9 WHEN 47 THEN CASE 63 WHEN + 69 * NULLIF ( 55 * + 65, ( 89 ) ) THEN - 76 * + 58 END WHEN 65 THEN - 21 * 81 + 27 ELSE NULL END THEN 20 WHEN - 95 * 1 THEN NULL END * - 68
----
NULL

query I rowsort
SELECT 53 - - 81 + - 61 AS col2
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-9698
SELECT ( 6 ) * - 90 * + 44 + - + COUNT( * ) + + COUNT( * )
----
-23760

skipif mysql # not compatible
query I rowsort label-9698
SELECT ( 6 ) * - 90 * + 44 + - + COUNT ( * ) + + COUNT ( * )
----
-23760

query II rowsort
SELECT 92 AS col0, - 92 col2
----
92
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-9700
SELECT MIN( 28 ) * - 46 * - 97 * - - 91 * 14 AS col0
----
159168464

skipif mysql # not compatible
query I rowsort label-9700
SELECT MIN ( 28 ) * - 46 * - 97 * - - 91 * 14 AS col0
----
159168464

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9701
SELECT ( 14 ) + 18 * + CAST( NULL AS SIGNED ) - + CAST( - 73 AS SIGNED ) / 91 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9701
SELECT ( 14 ) + 18 * + CAST ( NULL AS INTEGER ) - + CAST ( - 73 AS INTEGER ) / 91 col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9702
SELECT ALL 55 DIV - 55 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-9702
SELECT ALL 55 / - 55 AS col2
----
-1

query I rowsort
SELECT 78 * + 19
----
1482

query I rowsort
SELECT 13 * + 15 * + - 21 AS col0
----
-4095

query I rowsort
SELECT ALL - ( + + 54 ) * - 99 * 43 col2
----
229878

onlyif mysql # aggregate syntax: 
query I rowsort label-9706
SELECT COUNT( * ) * - + COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-9706
SELECT COUNT ( * ) * - + COUNT ( * )
----
-1

query II rowsort
SELECT ALL 95 + + + 49 - + 78 AS col2, 38
----
66
38

query I rowsort
SELECT DISTINCT 13 * - 4 col2
----
-52

query I rowsort
SELECT ALL 47 * - + 46 AS col0
----
-2162

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9710
SELECT 29 * - + 80 * + SUM( DISTINCT - CAST( NULL AS SIGNED ) ) * + + COUNT( * ) + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-9710
SELECT 29 * - + 80 * + SUM ( DISTINCT - CAST ( NULL AS INTEGER ) ) * + + COUNT ( * ) + COUNT ( * )
----
NULL

query I rowsort
SELECT ALL - + 62 + 73 * 73 * - 76 * - 47 AS col0
----
19035126

onlyif mysql # aggregate syntax: 
query I rowsort label-9712
SELECT ALL MAX( DISTINCT + 8 )
----
8

skipif mysql # not compatible
query I rowsort label-9712
SELECT ALL MAX ( DISTINCT + 8 )
----
8

query I rowsort
SELECT DISTINCT 96 + + - 16
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-9714
SELECT ALL + ( + - MAX( ( + 52 ) ) ) * 40 AS col1
----
-2080

skipif mysql # not compatible
query I rowsort label-9714
SELECT ALL + ( + - MAX ( ( + 52 ) ) ) * 40 AS col1
----
-2080

query I rowsort
SELECT ( - + 62 )
----
-62

onlyif mysql # DIV for integer division: 
query I rowsort label-9716
SELECT DISTINCT - 18 * + + 27 * 80 + + 69 + 59 DIV 6 DIV 59 AS col1
----
-38811

skipif mysql # not compatible
query I rowsort label-9716
SELECT DISTINCT - 18 * + + 27 * 80 + + 69 + 59 / 6 / 59 AS col1
----
-38811

query I rowsort
SELECT + 98 + - - 21 AS col1
----
119

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9718
SELECT - 11 + - COUNT( * ) + + 63 * 62 + - + 32 + - 10 DIV 85 AS col1
----
3862

skipif mysql # not compatible
query I rowsort label-9718
SELECT - 11 + - COUNT ( * ) + + 63 * 62 + - + 32 + - 10 / 85 AS col1
----
3862

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9719
SELECT - MIN( ALL - - 55 ) DIV - 39 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9719
SELECT - MIN ( ALL - - 55 ) / - 39 AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9720
SELECT 82 * - 11 + ( + COALESCE ( + MAX( DISTINCT - 28 ), 18 + 29 ) ) AS col1
----
-930

skipif mysql # not compatible
query I rowsort label-9720
SELECT 82 * - 11 + ( + COALESCE ( + MAX ( DISTINCT - 28 ), 18 + 29 ) ) AS col1
----
-930

onlyif mysql # aggregate syntax: 
query II rowsort label-9721
SELECT - COUNT( * ), 40 col0
----
-1
40

skipif mysql # not compatible
query II rowsort label-9721
SELECT - COUNT ( * ), 40 col0
----
-1
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9722
SELECT ALL + ( + - 45 ) * + CAST( - + 25 AS SIGNED ) - + + 89 - 69 * 10
----
346

skipif mysql # not compatible
query I rowsort label-9722
SELECT ALL + ( + - 45 ) * + CAST ( - + 25 AS INTEGER ) - + + 89 - 69 * 10
----
346

query I rowsort
SELECT ALL + + 15 * + 48 AS col1
----
720

query I rowsort
SELECT ALL + + 87 col2
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-9725
SELECT - + 41 + + COUNT( * )
----
-40

skipif mysql # not compatible
query I rowsort label-9725
SELECT - + 41 + + COUNT ( * )
----
-40

query II rowsort
SELECT + 2, - 12 col2
----
2
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-9727
SELECT ALL + COALESCE ( + 58, - + SUM( + + 78 ) ) col1
----
58

skipif mysql # not compatible
query I rowsort label-9727
SELECT ALL + COALESCE ( + 58, - + SUM ( + + 78 ) ) col1
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-9728
SELECT - SUM( - CASE + - 13 WHEN - - 18 THEN + + 43 WHEN + - 62 THEN ( 64 ) + - COALESCE ( 66, 2 ) END ) * + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9728
SELECT - SUM ( - CASE + - 13 WHEN - - 18 THEN + + 43 WHEN + - 62 THEN ( 64 ) + - COALESCE ( 66, 2 ) END ) * + COUNT ( * ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9729
SELECT MIN( DISTINCT ( - + 20 ) ) col1
----
-20

skipif mysql # not compatible
query I rowsort label-9729
SELECT MIN ( DISTINCT ( - + 20 ) ) col1
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-9730
SELECT DISTINCT + COALESCE ( + NULLIF ( - COUNT( * ), - 98 * + 88 + 48 + - 0 ), 46 * - NULLIF ( MAX( 13 ), - 19 ), 44 * COUNT( * ) + 72 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-9730
SELECT DISTINCT + COALESCE ( + NULLIF ( - COUNT ( * ), - 98 * + 88 + 48 + - 0 ), 46 * - NULLIF ( MAX ( 13 ), - 19 ), 44 * COUNT ( * ) + 72 ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-9731
SELECT COUNT( * ), COUNT( 18 )
----
1
1

skipif mysql # not compatible
query II rowsort label-9731
SELECT COUNT ( * ), COUNT ( 18 )
----
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9732
SELECT + NULLIF ( - 23, - + 61 * - 54 - + 66 + + COUNT( * ) * + 64 + 91 ) AS col2
----
-23

skipif mysql # not compatible
query I rowsort label-9732
SELECT + NULLIF ( - 23, - + 61 * - 54 - + 66 + + COUNT ( * ) * + 64 + 91 ) AS col2
----
-23

query II rowsort
SELECT ALL + 39 AS col2, 96
----
39
96

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9734
SELECT ALL 14 * - - COUNT( * ) DIV 21 * 21, + 31 - - 41 + + 18 * 61 AS col2
----
0
1170

skipif mysql # not compatible
query II rowsort label-9734
SELECT ALL 14 * - - COUNT ( * ) / 21 * 21, + 31 - - 41 + + 18 * 61 AS col2
----
0
1170

onlyif mysql # aggregate syntax: 
query II rowsort label-9735
SELECT COUNT( * ) AS col1, CASE - 16 WHEN 25 * - 47 + + + 0 + - 38 THEN NULL WHEN - MIN( + 60 ) + + 45 THEN NULL ELSE + 17 END AS col0
----
1
17

skipif mysql # not compatible
query II rowsort label-9735
SELECT COUNT ( * ) AS col1, CASE - 16 WHEN 25 * - 47 + + + 0 + - 38 THEN NULL WHEN - MIN ( + 60 ) + + 45 THEN NULL ELSE + 17 END AS col0
----
1
17

query I rowsort
SELECT + 25 * - 70
----
-1750

query I rowsort
SELECT - ( + + 96 ) * + 6 col2
----
-576

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9738
SELECT DISTINCT CASE + COALESCE ( - ( 75 ), 97 - + 67 ) WHEN - CAST( - 87 AS SIGNED ) THEN 84 ELSE + 51 END + COUNT( * ) AS col0
----
52

skipif mysql # not compatible
query I rowsort label-9738
SELECT DISTINCT CASE + COALESCE ( - ( 75 ), 97 - + 67 ) WHEN - CAST ( - 87 AS INTEGER ) THEN 84 ELSE + 51 END + COUNT ( * ) AS col0
----
52

query I rowsort
SELECT ALL + 87 * - 76 AS col0
----
-6612

onlyif mysql # DIV for integer division: 
query I rowsort label-9740
SELECT + 90 DIV 12
----
7

skipif mysql # not compatible
query I rowsort label-9740
SELECT + 90 / 12
----
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9741
SELECT ALL ( CAST( NULL AS SIGNED ) ) + - 84
----
NULL

skipif mysql # not compatible
query I rowsort label-9741
SELECT ALL ( CAST ( NULL AS INTEGER ) ) + - 84
----
NULL

query I rowsort
SELECT ALL 72 + - - 62 + + 48 + - 64 * 42
----
-2506

onlyif mysql # aggregate syntax: 
query I rowsort label-9743
SELECT - SUM( + + 32 ) + + - ( + 72 ) * + 15 col0
----
-1112

skipif mysql # not compatible
query I rowsort label-9743
SELECT - SUM ( + + 32 ) + + - ( + 72 ) * + 15 col0
----
-1112

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9744
SELECT - CAST( - + 93 AS SIGNED ) + + CAST( + 62 AS SIGNED )
----
155

skipif mysql # not compatible
query I rowsort label-9744
SELECT - CAST ( - + 93 AS INTEGER ) + + CAST ( + 62 AS INTEGER )
----
155

query I rowsort
SELECT + 59 * + 22 AS col1
----
1298

query I rowsort
SELECT ALL ( - 69 ) + + ( 92 ) * - 10 AS col1
----
-989

query I rowsort
SELECT + 36 * + 35 * 87
----
109620

onlyif mysql # aggregate syntax: 
query I rowsort label-9748
SELECT ALL COUNT( * ) + - 29 * - - 78 + 48 AS col0
----
-2213

skipif mysql # not compatible
query I rowsort label-9748
SELECT ALL COUNT ( * ) + - 29 * - - 78 + 48 AS col0
----
-2213

query I rowsort
SELECT + 47 + + 54 * 20 AS col2
----
1127

query II rowsort
SELECT 63 AS col2, - 54 * + - COALESCE ( + 94, 20 * - - 85 * - 75 + 52 ) col1
----
63
5076

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9751
SELECT ALL CAST( - ( + NULLIF ( - 48, + 97 / + - 11 + - 49 ) ) AS SIGNED ) AS col1
----
48

skipif mysql # not compatible
query I rowsort label-9751
SELECT ALL CAST ( - ( + NULLIF ( - 48, + 97 / + - 11 + - 49 ) ) AS INTEGER ) AS col1
----
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9752
SELECT DISTINCT 71 + - + CASE + 95 WHEN 80 * - 32 THEN 11 * - 38 - 33 WHEN + ( 6 ) THEN 52 + 12 / 56 WHEN + 38 THEN NULLIF ( + 64, ( + COALESCE ( 94, - 84 + 1, 92 ) ) * 77 + + ( - 49 ) ) + 56 / ( - 71 * - 54 ) ELSE NULL END + 87 * COUNT( * ) * - CASE CASE 79 WHEN CAST( NULL AS SIGNED ) * - 7 - 34 * + 38 THEN + 22 + ( 42 ) END * 82 WHEN ( + 17 ) + - AVG ( ALL 0 ) THEN NULL WHEN + ( + 5 ) THEN 20 WHEN 11 + + 52 * + 49 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9752
SELECT DISTINCT 71 + - + CASE + 95 WHEN 80 * - 32 THEN 11 * - 38 - 33 WHEN + ( 6 ) THEN 52 + 12 / 56 WHEN + 38 THEN NULLIF ( + 64, ( + COALESCE ( 94, - 84 + 1, 92 ) ) * 77 + + ( - 49 ) ) + 56 / ( - 71 * - 54 ) ELSE NULL END + 87 * COUNT ( * ) * - CASE CASE 79 WHEN CAST ( NULL AS INTEGER ) * - 7 - 34 * + 38 THEN + 22 + ( 42 ) END * 82 WHEN ( + 17 ) + - AVG ( ALL 0 ) THEN NULL WHEN + ( + 5 ) THEN 20 WHEN 11 + + 52 * + 49 THEN NULL END
----
NULL

query I rowsort
SELECT DISTINCT 41 * - - 99
----
4059

query I rowsort
SELECT DISTINCT 33 col2
----
33

onlyif mysql # DIV for integer division: 
query I rowsort label-9755
SELECT DISTINCT - 68 + + - 31 DIV + - 18 AS col0
----
-67

skipif mysql # not compatible
query I rowsort label-9755
SELECT DISTINCT - 68 + + - 31 / + - 18 AS col0
----
-67

query I rowsort
SELECT DISTINCT - COALESCE ( 81, - + 52 + - 23 )
----
-81

onlyif mysql # aggregate syntax: 
query II rowsort label-9757
SELECT DISTINCT + 77 * - + 95 AS col0, COUNT( * ) AS col1
----
-7315
1

skipif mysql # not compatible
query II rowsort label-9757
SELECT DISTINCT + 77 * - + 95 AS col0, COUNT ( * ) AS col1
----
-7315
1

query I rowsort
SELECT NULLIF ( + ( 2 ), + 31 )
----
2

query I rowsort
SELECT ALL COALESCE ( + CASE - 98 WHEN + 42 THEN NULL WHEN + - 65 + - 12 THEN 98 END, - 33 * + 64 + 83 ) * 68
----
-137972

query I rowsort
SELECT + 82 * - 66
----
-5412

query I rowsort
SELECT + ( + - 31 ) + + 76
----
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9762
SELECT DISTINCT - 33 * + ( - 4 ) + 18 * - 15 * + 39 + - CAST( + 58 AS SIGNED )
----
-10456

skipif mysql # not compatible
query I rowsort label-9762
SELECT DISTINCT - 33 * + ( - 4 ) + 18 * - 15 * + 39 + - CAST ( + 58 AS INTEGER )
----
-10456

onlyif mysql # aggregate syntax: 
query I rowsort label-9763
SELECT ALL - 75 - - 87 + - COUNT( * ) - - SUM( ALL 88 ) * - - 71 AS col1
----
6259

skipif mysql # not compatible
query I rowsort label-9763
SELECT ALL - 75 - - 87 + - COUNT ( * ) - - SUM ( ALL 88 ) * - - 71 AS col1
----
6259

onlyif mysql # aggregate syntax: 
query I rowsort label-9764
SELECT ALL + ( COUNT( DISTINCT 15 ) )
----
1

skipif mysql # not compatible
query I rowsort label-9764
SELECT ALL + ( COUNT ( DISTINCT 15 ) )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9765
SELECT + + 94 + CAST( - 5 AS SIGNED )
----
89

skipif mysql # not compatible
query I rowsort label-9765
SELECT + + 94 + CAST ( - 5 AS INTEGER )
----
89

query I rowsort
SELECT - - 89 * - 18 AS col1
----
-1602

query II rowsort
SELECT DISTINCT + 49 AS col1, 26
----
49
26

query I rowsort
SELECT DISTINCT 97 * - - 5
----
485

query II rowsort
SELECT ALL + + 75 col0, + 16
----
75
16

query I rowsort
SELECT - 54 * + 6
----
-324

onlyif mysql # DIV for integer division: 
query I rowsort label-9771
SELECT DISTINCT + + 29 * ( - 5 ) + - COALESCE ( + + ( - 22 ), + 51 ) + + ( ( - 5 ) ) DIV - 63 AS col0
----
-123

skipif mysql # not compatible
query I rowsort label-9771
SELECT DISTINCT + + 29 * ( - 5 ) + - COALESCE ( + + ( - 22 ), + 51 ) + + ( ( - 5 ) ) / - 63 AS col0
----
-123

query II rowsort
SELECT ALL + 87 AS col0, - 47 * - 90 AS col1
----
87
4230

onlyif mysql # aggregate syntax: 
query II rowsort label-9773
SELECT + + COUNT( * ) AS col1, - 75 - 25
----
1
-100

skipif mysql # not compatible
query II rowsort label-9773
SELECT + + COUNT ( * ) AS col1, - 75 - 25
----
1
-100

query I rowsort
SELECT ALL + CASE + 33 WHEN - ( + - 42 ) THEN NULL WHEN - 30 THEN NULLIF ( - NULLIF ( - 51, 3 * - 89 ), 95 + - 54 ) + 13 ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9775
SELECT + - 42 + + COUNT( * )
----
-41

skipif mysql # not compatible
query I rowsort label-9775
SELECT + - 42 + + COUNT ( * )
----
-41

query I rowsort
SELECT + 68 * + 73 col2
----
4964

query I rowsort
SELECT DISTINCT - 73 * + 55 AS col1
----
-4015

query I rowsort
SELECT ( - + 20 )
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-9779
SELECT 91 * - COUNT( * ) + - CASE - 87 WHEN - CASE + 4 WHEN COUNT( * ) THEN - 92 * 94 END THEN NULL WHEN ( 25 ) THEN 48 * 18 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9779
SELECT 91 * - COUNT ( * ) + - CASE - 87 WHEN - CASE + 4 WHEN COUNT ( * ) THEN - 92 * 94 END THEN NULL WHEN ( 25 ) THEN 48 * 18 END AS col2
----
NULL

query I rowsort
SELECT ALL - 55 * - + 71 col2
----
3905

query I rowsort
SELECT ( + CASE + 22 WHEN - 86 THEN NULL WHEN - 12 THEN - + 94 WHEN - 59 THEN NULL END )
----
NULL

query I rowsort
SELECT DISTINCT 65 * - + 92 + 20
----
-5960

query I rowsort
SELECT - ( - 50 ) + 5
----
55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9784
SELECT ALL 40 * - COUNT( * ) + - 67 - - 65 * + CASE - 63 WHEN + 21 THEN NULL ELSE - ( - 19 ) DIV COUNT( * ) END
----
1128

skipif mysql # not compatible
query I rowsort label-9784
SELECT ALL 40 * - COUNT ( * ) + - 67 - - 65 * + CASE - 63 WHEN + 21 THEN NULL ELSE - ( - 19 ) / COUNT ( * ) END
----
1128

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9785
SELECT DISTINCT + 1 * + CASE COUNT( * ) WHEN - 45 THEN 73 + - ( 25 ) + + ( + 24 - + 31 ) * 73 WHEN + CAST( + 88 AS DECIMAL ) THEN 1 * 70 WHEN 7 * + COALESCE ( - MIN( DISTINCT 58 ), + MAX( 27 ), 41 * + 29, 9 ) + ( + 66 ) THEN - 81 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9785
SELECT DISTINCT + 1 * + CASE COUNT ( * ) WHEN - 45 THEN 73 + - ( 25 ) + + ( + 24 - + 31 ) * 73 WHEN + CAST ( + 88 AS REAL ) THEN 1 * 70 WHEN 7 * + COALESCE ( - MIN ( DISTINCT 58 ), + MAX ( 27 ), 41 * + 29, 9 ) + ( + 66 ) THEN - 81 END
----
NULL

query I rowsort
SELECT ALL - 9 * - ( + + ( 55 ) ) + - 49 + + + 32 + + 38 AS col1
----
516

onlyif mysql # aggregate syntax: 
query I rowsort label-9787
SELECT ALL + COALESCE ( + 93, - 35, + ( - - 71 ) * COUNT( ALL + 27 ) * + 86 ) AS col2
----
93

skipif mysql # not compatible
query I rowsort label-9787
SELECT ALL + COALESCE ( + 93, - 35, + ( - - 71 ) * COUNT ( ALL + 27 ) * + 86 ) AS col2
----
93

query I rowsort
SELECT - ( 68 ) * 2 * + + 55
----
-7480

query I rowsort
SELECT NULLIF ( - + 29, 17 )
----
-29

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9790
SELECT NULLIF ( + COALESCE ( - COUNT( - 55 ), 35 + 75 DIV + 24 + + COUNT( * ) ), 96 )
----
-1

skipif mysql # not compatible
query I rowsort label-9790
SELECT NULLIF ( + COALESCE ( - COUNT ( - 55 ), 35 + 75 / + 24 + + COUNT ( * ) ), 96 )
----
-1

query I rowsort
SELECT + 60 + - 13 - + 45 * - + 21 AS col2
----
992

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9792
SELECT ALL + 32 * NULLIF ( 84, + - COUNT( * ) * + 83 * - + 61 + + CAST( NULL AS SIGNED ) + - COUNT( * ) ) * 93 + 24 * - 15 AS col0
----
249624

skipif mysql # not compatible
query I rowsort label-9792
SELECT ALL + 32 * NULLIF ( 84, + - COUNT ( * ) * + 83 * - + 61 + + CAST ( NULL AS INTEGER ) + - COUNT ( * ) ) * 93 + 24 * - 15 AS col0
----
249624

query I rowsort
SELECT - 48 * 83
----
-3984

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9794
SELECT DISTINCT CAST( + 68 AS SIGNED ) * + + 91
----
6188

skipif mysql # not compatible
query I rowsort label-9794
SELECT DISTINCT CAST ( + 68 AS INTEGER ) * + + 91
----
6188

query I rowsort
SELECT ALL - 11 + - COALESCE ( + + 35, 75 ) AS col2
----
-46

query I rowsort
SELECT DISTINCT - 28 * + - 90 AS col1
----
2520

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9797
SELECT ALL + COUNT( DISTINCT CASE 36 WHEN - + 41 + - 28 THEN ( - CAST( NULL AS SIGNED ) ) END ) - + 69 * 84
----
-5796

skipif mysql # not compatible
query I rowsort label-9797
SELECT ALL + COUNT ( DISTINCT CASE 36 WHEN - + 41 + - 28 THEN ( - CAST ( NULL AS INTEGER ) ) END ) - + 69 * 84
----
-5796

onlyif mysql # aggregate syntax: 
query I rowsort label-9798
SELECT ALL - ( 19 ) * - - 65 + - 60 + COUNT( * ) - ( - SUM( DISTINCT - 12 ) ) + + 92
----
-1214

skipif mysql # not compatible
query I rowsort label-9798
SELECT ALL - ( 19 ) * - - 65 + - 60 + COUNT ( * ) - ( - SUM ( DISTINCT - 12 ) ) + + 92
----
-1214

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9799
SELECT 51 / 70 * 72 - + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-9799
SELECT 51 / 70 * 72 - + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9800
SELECT - ( + MIN( - 75 ) ) AS col1
----
75

skipif mysql # not compatible
query I rowsort label-9800
SELECT - ( + MIN ( - 75 ) ) AS col1
----
75

query I rowsort
SELECT ALL + 4 - 38
----
-34

query I rowsort
SELECT 30 - - 74 + - + ( + 48 ) AS col0
----
56

onlyif mysql # DIV for integer division: 
query I rowsort label-9803
SELECT 74 DIV - 9 + - 46
----
-54

skipif mysql # not compatible
query I rowsort label-9803
SELECT 74 / - 9 + - 46
----
-54

query I rowsort
SELECT ALL + 43 - - ( - 22 ) AS col2
----
21

onlyif mysql # aggregate syntax: 
query II rowsort label-9805
SELECT 23 * COUNT( * ), 39 AS col2
----
23
39

skipif mysql # not compatible
query II rowsort label-9805
SELECT 23 * COUNT ( * ), 39 AS col2
----
23
39

query II rowsort
SELECT + 52 * 41 + + 31, 48 AS col2
----
2163
48

query I rowsort
SELECT ALL - 27 * - ( + 23 ) * - 0 * + ( 89 ) AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9808
SELECT 8 AS col1, CAST( - - COUNT( * ) AS SIGNED )
----
8
1

skipif mysql # not compatible
query II rowsort label-9808
SELECT 8 AS col1, CAST ( - - COUNT ( * ) AS INTEGER )
----
8
1

query II rowsort
SELECT DISTINCT - 46 AS col0, 12 col1
----
-46
12

query I rowsort
SELECT ALL 32 + + 76
----
108

query I rowsort
SELECT ALL 2 * - 31 AS col1
----
-62

query I rowsort
SELECT 94 * + 56 AS col1
----
5264

onlyif mysql # aggregate syntax: 
query I rowsort label-9813
SELECT ( + 53 ) + 46 * + - COUNT( * ) * + CASE 75 WHEN 13 / + + 51 * 53 THEN 81 WHEN 28 - ( 9 + - COALESCE ( + 36, - 5 * 51 + - 40 ) ) THEN NULL WHEN SUM( 62 ) * + 60 THEN 22 ELSE NULL END * + SUM( 10 * 30 + - 27 ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9813
SELECT ( + 53 ) + 46 * + - COUNT ( * ) * + CASE 75 WHEN 13 / + + 51 * 53 THEN 81 WHEN 28 - ( 9 + - COALESCE ( + 36, - 5 * 51 + - 40 ) ) THEN NULL WHEN SUM ( 62 ) * + 60 THEN 22 ELSE NULL END * + SUM ( 10 * 30 + - 27 ) col0
----
NULL

query I rowsort
SELECT ALL 79 + + 81
----
160

onlyif mysql # aggregate syntax: 
query I rowsort label-9815
SELECT ALL - COUNT( ALL - 62 )
----
-1

skipif mysql # not compatible
query I rowsort label-9815
SELECT ALL - COUNT ( ALL - 62 )
----
-1

query I rowsort
SELECT ALL 96 + + 82 AS col2
----
178

onlyif mysql # DIV for integer division: 
query I rowsort label-9817
SELECT 84 DIV - - 8 AS col2
----
10

skipif mysql # not compatible
query I rowsort label-9817
SELECT 84 / - - 8 AS col2
----
10

onlyif mysql # DIV for integer division: 
query I rowsort label-9818
SELECT ( - COALESCE ( + + 8, 56, + 82 ) ) + 38 DIV 4 col1
----
1

skipif mysql # not compatible
query I rowsort label-9818
SELECT ( - COALESCE ( + + 8, 56, + 82 ) ) + 38 / 4 col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9819
SELECT 29 * - COUNT( * ) col2
----
-29

skipif mysql # not compatible
query I rowsort label-9819
SELECT 29 * - COUNT ( * ) col2
----
-29

query I rowsort
SELECT ALL - 24 * - 20 * + 90
----
43200

onlyif mysql # aggregate syntax: 
query I rowsort label-9821
SELECT DISTINCT - COALESCE ( + 90, + 64 * - - 18 + + - MIN( 67 ) * - NULLIF ( 60, - ( 62 ) ) * - 9 ) * COUNT( * )
----
-90

skipif mysql # not compatible
query I rowsort label-9821
SELECT DISTINCT - COALESCE ( + 90, + 64 * - - 18 + + - MIN ( 67 ) * - NULLIF ( 60, - ( 62 ) ) * - 9 ) * COUNT ( * )
----
-90

query I rowsort
SELECT ALL + 52 * - 78 AS col0
----
-4056

onlyif mysql # aggregate syntax: 
query I rowsort label-9823
SELECT 19 * + COUNT( * )
----
19

skipif mysql # not compatible
query I rowsort label-9823
SELECT 19 * + COUNT ( * )
----
19

query I rowsort
SELECT ALL 89 * + 91
----
8099

query II rowsort
SELECT DISTINCT 92 AS col0, + 36 AS col0
----
92
36

query II rowsort
SELECT DISTINCT 46 AS col0, + 25 * + 18
----
46
450

onlyif mysql # aggregate syntax: 
query I rowsort label-9827
SELECT ALL + ( + COUNT( * ) ) * + 37 AS col1
----
37

skipif mysql # not compatible
query I rowsort label-9827
SELECT ALL + ( + COUNT ( * ) ) * + 37 AS col1
----
37

onlyif mysql # aggregate syntax: 
query II rowsort label-9828
SELECT 65 AS col0, 61 * + COUNT( * ) + + - 39 - + COUNT( * ) + 33
----
65
54

skipif mysql # not compatible
query II rowsort label-9828
SELECT 65 AS col0, 61 * + COUNT ( * ) + + - 39 - + COUNT ( * ) + 33
----
65
54

onlyif mysql # aggregate syntax: 
query II rowsort label-9829
SELECT ALL + COALESCE ( + COUNT( * ), + + 6 ) AS col2, + 63 col2
----
1
63

skipif mysql # not compatible
query II rowsort label-9829
SELECT ALL + COALESCE ( + COUNT ( * ), + + 6 ) AS col2, + 63 col2
----
1
63

onlyif mysql # aggregate syntax: 
query I rowsort label-9830
SELECT ALL + + 50 - - ( - 9 ) + - - 14 * + + NULLIF ( - 89, COUNT( * ) * - - COUNT( * ) * 84 - COUNT( * ) )
----
-1205

skipif mysql # not compatible
query I rowsort label-9830
SELECT ALL + + 50 - - ( - 9 ) + - - 14 * + + NULLIF ( - 89, COUNT ( * ) * - - COUNT ( * ) * 84 - COUNT ( * ) )
----
-1205

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9831
SELECT - 35 AS col2, CAST( NULL AS SIGNED ) AS col2
----
-35
NULL

skipif mysql # not compatible
query II rowsort label-9831
SELECT - 35 AS col2, CAST ( NULL AS INTEGER ) AS col2
----
-35
NULL

query I rowsort
SELECT DISTINCT - NULLIF ( - 35, + 9 * - 7 )
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-9833
SELECT 99 + + 14 + - 88 + + 76 * COUNT( * ) AS col0
----
101

skipif mysql # not compatible
query I rowsort label-9833
SELECT 99 + + 14 + - 88 + + 76 * COUNT ( * ) AS col0
----
101

query I rowsort
SELECT ALL - 83 * + 23
----
-1909

query I rowsort
SELECT - 0 + + - 78 * ( + 44 )
----
-3432

onlyif mysql # aggregate syntax: 
query II rowsort label-9836
SELECT ALL 69 col2, - MIN( DISTINCT - 79 )
----
69
79

skipif mysql # not compatible
query II rowsort label-9836
SELECT ALL 69 col2, - MIN ( DISTINCT - 79 )
----
69
79

onlyif mysql # aggregate syntax: 
query II rowsort label-9837
SELECT ALL + 4 AS col1, COUNT( * ) * - + 66 AS col2
----
4
-66

skipif mysql # not compatible
query II rowsort label-9837
SELECT ALL + 4 AS col1, COUNT ( * ) * - + 66 AS col2
----
4
-66

query II rowsort
SELECT + 14 + 21 + + 3 AS col0, 66 AS col0
----
38
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9839
SELECT ALL - + 96 * + ( ( CAST( NULL AS SIGNED ) ) ) + - 20 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9839
SELECT ALL - + 96 * + ( ( CAST ( NULL AS INTEGER ) ) ) + - 20 AS col0
----
NULL

query I rowsort
SELECT DISTINCT - 90 * 23
----
-2070

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-9841
SELECT CAST( NULL AS DECIMAL ) * + 54 + + + 75 - 16 * + 94 * + 74 AS col2, 66 DIV + MAX( 2 ) AS col2
----
NULL
33

skipif mysql # not compatible
query II rowsort label-9841
SELECT CAST ( NULL AS REAL ) * + 54 + + + 75 - 16 * + 94 * + 74 AS col2, 66 / + MAX ( 2 ) AS col2
----
NULL
33

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9842
SELECT - 72 DIV + COUNT( 79 ) + 45 + - 50 AS col0
----
-77

skipif mysql # not compatible
query I rowsort label-9842
SELECT - 72 / + COUNT ( 79 ) + 45 + - 50 AS col0
----
-77

query I rowsort
SELECT DISTINCT - 40 + + + 45 col0
----
5

query I rowsort
SELECT ALL - + ( - - 40 )
----
-40

query I rowsort
SELECT ALL + 4 * + - 68 + - - 50 * 24 * - 41
----
-49472

query I rowsort
SELECT 88 * + 11
----
968

query I rowsort
SELECT ALL 57 * 62 + 61
----
3595

onlyif mysql # aggregate syntax: 
query II rowsort label-9848
SELECT MIN( ALL + 71 ) AS col0, - 70 AS col0
----
71
-70

skipif mysql # not compatible
query II rowsort label-9848
SELECT MIN ( ALL + 71 ) AS col0, - 70 AS col0
----
71
-70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9849
SELECT 97 * - - 83 * CAST( + - 21 AS SIGNED ) AS col1
----
-169071

skipif mysql # not compatible
query I rowsort label-9849
SELECT 97 * - - 83 * CAST ( + - 21 AS INTEGER ) AS col1
----
-169071

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9850
SELECT ALL 85 * + CAST( 2 AS SIGNED ) AS col0
----
170

skipif mysql # not compatible
query I rowsort label-9850
SELECT ALL 85 * + CAST ( 2 AS INTEGER ) AS col0
----
170

query I rowsort
SELECT ALL 69 * 32 + - 96 AS col1
----
2112

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9852
SELECT + AVG ( DISTINCT ( CAST( NULL AS SIGNED ) ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9852
SELECT + AVG ( DISTINCT ( CAST ( NULL AS INTEGER ) ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9853
SELECT SUM( ALL - ( ( ( - 7 ) ) ) ) + - + 72 AS col0
----
-65

skipif mysql # not compatible
query I rowsort label-9853
SELECT SUM ( ALL - ( ( ( - 7 ) ) ) ) + - + 72 AS col0
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-9854
SELECT 87 * ( - COUNT( DISTINCT 64 ) ) * + 85 + - 35
----
-7430

skipif mysql # not compatible
query I rowsort label-9854
SELECT 87 * ( - COUNT ( DISTINCT 64 ) ) * + 85 + - 35
----
-7430

query I rowsort
SELECT 23 * + 82 col1
----
1886

onlyif mysql # aggregate syntax: 
query I rowsort label-9856
SELECT ALL 49 * - COUNT( * )
----
-49

skipif mysql # not compatible
query I rowsort label-9856
SELECT ALL 49 * - COUNT ( * )
----
-49

onlyif mysql # aggregate syntax: 
query II rowsort label-9857
SELECT MAX( - + 74 ) AS col0, 33
----
-74
33

skipif mysql # not compatible
query II rowsort label-9857
SELECT MAX ( - + 74 ) AS col0, 33
----
-74
33

query I rowsort
SELECT - 6 * + + 23 + - 57
----
-195

onlyif mysql # aggregate syntax: 
query I rowsort label-9859
SELECT SUM( + 78 ) col0
----
78

skipif mysql # not compatible
query I rowsort label-9859
SELECT SUM ( + 78 ) col0
----
78

query I rowsort
SELECT 84 * + 99 + + - 24
----
8292

onlyif mysql # aggregate syntax: 
query I rowsort label-9861
SELECT COUNT( - - ( - + 22 ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9861
SELECT COUNT ( - - ( - + 22 ) ) AS col0
----
1

query I rowsort
SELECT DISTINCT 48 * + ( CASE + 86 WHEN + 62 * + 85 * - 92 + 14 + - 83 + - 38 / 64 THEN NULL ELSE 39 END )
----
1872

query I rowsort
SELECT DISTINCT + 48 - - 99 col2
----
147

onlyif mysql # DIV for integer division: 
query I rowsort label-9864
SELECT ALL - 93 DIV - - 2 AS col1
----
-46

skipif mysql # not compatible
query I rowsort label-9864
SELECT ALL - 93 / - - 2 AS col1
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-9865
SELECT + 77 * + COUNT( * ) AS col0
----
77

skipif mysql # not compatible
query I rowsort label-9865
SELECT + 77 * + COUNT ( * ) AS col0
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-9866
SELECT DISTINCT + MIN( DISTINCT 99 )
----
99

skipif mysql # not compatible
query I rowsort label-9866
SELECT DISTINCT + MIN ( DISTINCT 99 )
----
99

query I rowsort
SELECT + 47 - - 54 AS col0
----
101

onlyif mysql # aggregate syntax: 
query I rowsort label-9868
SELECT COUNT( 48 )
----
1

skipif mysql # not compatible
query I rowsort label-9868
SELECT COUNT ( 48 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9869
SELECT + ( - COUNT( * ) ) * 26 + + - 45 col2
----
-71

skipif mysql # not compatible
query I rowsort label-9869
SELECT + ( - COUNT ( * ) ) * 26 + + - 45 col2
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-9870
SELECT DISTINCT 74 - + - ( - 29 ) + COALESCE ( + 82, MIN( DISTINCT + 80 ), 44 * 71 )
----
127

skipif mysql # not compatible
query I rowsort label-9870
SELECT DISTINCT 74 - + - ( - 29 ) + COALESCE ( + 82, MIN ( DISTINCT + 80 ), 44 * 71 )
----
127

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9871
SELECT ALL SUM( + - 0 ) DIV - 8 * 24 AS col1, COALESCE ( + 82, - 64 * 70 ) AS col2
----
0
82

skipif mysql # not compatible
query II rowsort label-9871
SELECT ALL SUM ( + - 0 ) / - 8 * 24 AS col1, COALESCE ( + 82, - 64 * 70 ) AS col2
----
0
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9872
SELECT + CAST( NULL AS SIGNED ) * - - SUM( - + 7 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9872
SELECT + CAST ( NULL AS INTEGER ) * - - SUM ( - + 7 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9873
SELECT - COUNT( * ) + - 23
----
-24

skipif mysql # not compatible
query I rowsort label-9873
SELECT - COUNT ( * ) + - 23
----
-24

query I rowsort
SELECT DISTINCT + 46 * + 50 + - 38 col1
----
2262

query I rowsort
SELECT DISTINCT NULLIF ( - 82, - 56 + 14 )
----
-82

onlyif mysql # DIV for integer division: 
query I rowsort label-9876
SELECT ALL + 63 DIV - 75
----
0

skipif mysql # not compatible
query I rowsort label-9876
SELECT ALL + 63 / - 75
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9877
SELECT DISTINCT - COUNT( * ) + - COALESCE ( + - 68, 33 ) AS col2, 52 AS col2
----
67
52

skipif mysql # not compatible
query II rowsort label-9877
SELECT DISTINCT - COUNT ( * ) + - COALESCE ( + - 68, 33 ) AS col2, 52 AS col2
----
67
52

onlyif mysql # aggregate syntax: 
query II rowsort label-9878
SELECT - + 83 * + 5 * - 47 + + COUNT( * ) AS col1, - 70
----
19506
-70

skipif mysql # not compatible
query II rowsort label-9878
SELECT - + 83 * + 5 * - 47 + + COUNT ( * ) AS col1, - 70
----
19506
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-9879
SELECT - - MAX( DISTINCT - + 24 ) AS col1
----
-24

skipif mysql # not compatible
query I rowsort label-9879
SELECT - - MAX ( DISTINCT - + 24 ) AS col1
----
-24

query I rowsort
SELECT DISTINCT + - 31 + ( + 1 )
----
-30

query I rowsort
SELECT ALL - 11 + - 9
----
-20

query I rowsort
SELECT - - 5 - + 92 * + + 94
----
-8643

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9883
SELECT ALL + + 80 + + 20 AS col0, CAST( NULL AS SIGNED )
----
100
NULL

skipif mysql # not compatible
query II rowsort label-9883
SELECT ALL + + 80 + + 20 AS col0, CAST ( NULL AS INTEGER )
----
100
NULL

query I rowsort
SELECT - + NULLIF ( + 55, 34 + 46 )
----
-55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9885
SELECT ALL CAST( + 86 AS SIGNED ) AS col1
----
86

skipif mysql # not compatible
query I rowsort label-9885
SELECT ALL CAST ( + 86 AS INTEGER ) AS col1
----
86

query I rowsort
SELECT DISTINCT + 14 + + - 47
----
-33

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9887
SELECT DISTINCT + MAX( ALL - - 87 ) * 26 - 88 DIV - 79 col2, NULLIF ( 38, - MIN( ALL 53 ) ) AS col2
----
2263
38

skipif mysql # not compatible
query II rowsort label-9887
SELECT DISTINCT + MAX ( ALL - - 87 ) * 26 - 88 / - 79 col2, NULLIF ( 38, - MIN ( ALL 53 ) ) AS col2
----
2263
38

onlyif mysql # DIV for integer division: 
query I rowsort label-9888
SELECT - 28 DIV + + 50 * 59 - + - 71 AS col1
----
71

skipif mysql # not compatible
query I rowsort label-9888
SELECT - 28 / + + 50 * 59 - + - 71 AS col1
----
71

query I rowsort
SELECT ( - ( 18 ) ) col1
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-9890
SELECT + NULLIF ( + COUNT( * ), - - 17 )
----
1

skipif mysql # not compatible
query I rowsort label-9890
SELECT + NULLIF ( + COUNT ( * ), - - 17 )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9891
SELECT 97 DIV - ( 13 ) + - - 99 AS col0
----
92

skipif mysql # not compatible
query I rowsort label-9891
SELECT 97 / - ( 13 ) + - - 99 AS col0
----
92

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9892
SELECT + 60 + - - COUNT( * ) + + - 2 DIV 40 AS col0
----
61

skipif mysql # not compatible
query I rowsort label-9892
SELECT + 60 + - - COUNT ( * ) + + - 2 / 40 AS col0
----
61

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9893
SELECT + COUNT( * ), 11 DIV + - 85 AS col2
----
1
0

skipif mysql # not compatible
query II rowsort label-9893
SELECT + COUNT ( * ), 11 / + - 85 AS col2
----
1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9894
SELECT + COUNT( * ) + - + 38
----
-37

skipif mysql # not compatible
query I rowsort label-9894
SELECT + COUNT ( * ) + - + 38
----
-37

query I rowsort
SELECT + + 22 * - 96
----
-2112

query I rowsort
SELECT + - 11 - - 77
----
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9897
SELECT DISTINCT + 5 * + CAST( NULL AS SIGNED ) * + + 29 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9897
SELECT DISTINCT + 5 * + CAST ( NULL AS INTEGER ) * + + 29 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9898
SELECT ALL + + NULLIF ( CASE + - COUNT( * ) WHEN - 2 THEN 91 * + 9 * + COUNT( * ) * + 40 - - CAST( NULL AS SIGNED ) ELSE NULL END, + 22 * 80 + + 43 * - 18 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9898
SELECT ALL + + NULLIF ( CASE + - COUNT ( * ) WHEN - 2 THEN 91 * + 9 * + COUNT ( * ) * + 40 - - CAST ( NULL AS INTEGER ) ELSE NULL END, + 22 * 80 + + 43 * - 18 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9899
SELECT + + MAX( 76 ) * - + 80 + ( 50 ) + 30
----
-6000

skipif mysql # not compatible
query I rowsort label-9899
SELECT + + MAX ( 76 ) * - + 80 + ( 50 ) + 30
----
-6000

query II rowsort
SELECT DISTINCT 14 AS col2, - 18 AS col0
----
14
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-9901
SELECT ALL + + 95 * - COUNT( + - 29 ) * + + 7 - + + COUNT( ALL - ( 20 ) ) + - 64 + - + 50 AS col1
----
-780

skipif mysql # not compatible
query I rowsort label-9901
SELECT ALL + + 95 * - COUNT ( + - 29 ) * + + 7 - + + COUNT ( ALL - ( 20 ) ) + - 64 + - + 50 AS col1
----
-780

query II rowsort
SELECT + ( + - 61 ) + + 4 AS col1, - 40
----
-57
-40

query I rowsort
SELECT + - 70 - - 67 AS col2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9904
SELECT + 48 + + 69 + - + SUM( ALL - - 80 ) + - 68
----
-31

skipif mysql # not compatible
query I rowsort label-9904
SELECT + 48 + + 69 + - + SUM ( ALL - - 80 ) + - 68
----
-31

query I rowsort
SELECT - + 95 - + + 20 - + 69 * - + 47 AS col1
----
3128

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9906
SELECT ALL + 74 * - CAST( NULL AS SIGNED ) + + 55 - - 87 + - + 75 + + NULLIF ( - 98, 15 * ( 10 ) * - 41 ) * + 73 * + 80
----
NULL

skipif mysql # not compatible
query I rowsort label-9906
SELECT ALL + 74 * - CAST ( NULL AS INTEGER ) + + 55 - - 87 + - + 75 + + NULLIF ( - 98, 15 * ( 10 ) * - 41 ) * + 73 * + 80
----
NULL

query I rowsort
SELECT + 33 * + 56 + + 24 * 24 + - - ( + 11 ) * + 23 AS col0
----
2677

query I rowsort
SELECT + + 35 + + + 68
----
103

onlyif mysql # DIV for integer division: 
query I rowsort label-9909
SELECT ALL ( + 76 ) DIV - 1 + + 95 AS col0
----
19

skipif mysql # not compatible
query I rowsort label-9909
SELECT ALL ( + 76 ) / - 1 + + 95 AS col0
----
19

onlyif mysql # aggregate syntax: 
query II rowsort label-9910
SELECT ALL - 90 AS col0, COUNT( * ) AS col1
----
-90
1

skipif mysql # not compatible
query II rowsort label-9910
SELECT ALL - 90 AS col0, COUNT ( * ) AS col1
----
-90
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9911
SELECT + - CAST( 92 AS SIGNED ) + 64 * 84
----
5284

skipif mysql # not compatible
query I rowsort label-9911
SELECT + - CAST ( 92 AS INTEGER ) + 64 * 84
----
5284

query I rowsort
SELECT - 21 * - - 30 col0
----
-630

query I rowsort
SELECT - 25 + + 80
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-9914
SELECT - 67 + COUNT( * ) * + COUNT( * )
----
-66

skipif mysql # not compatible
query I rowsort label-9914
SELECT - 67 + COUNT ( * ) * + COUNT ( * )
----
-66

query I rowsort
SELECT ALL CASE - 16 WHEN + - ( 30 ) * + 69 * - 57 + + - 31 * 82 * - CASE - - 34 WHEN - 57 THEN NULL WHEN - 39 THEN + 0 ELSE NULL END + 36 THEN NULL ELSE + 8 END col1
----
8

query I rowsort
SELECT - 43 + 59 AS col2
----
16

query I rowsort
SELECT ALL ( 89 ) AS col2
----
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9918
SELECT - 20 + - - NULLIF ( 6, + - MIN( ALL - 63 ) / ( - 77 ) * - CAST( NULL AS SIGNED ) - + 53 ) + + 61 * 63 + - 0 col2
----
3829

skipif mysql # not compatible
query I rowsort label-9918
SELECT - 20 + - - NULLIF ( 6, + - MIN ( ALL - 63 ) / ( - 77 ) * - CAST ( NULL AS INTEGER ) - + 53 ) + + 61 * 63 + - 0 col2
----
3829

onlyif mysql # DIV for integer division: 
query I rowsort label-9919
SELECT 3 * 51 DIV 44
----
3

skipif mysql # not compatible
query I rowsort label-9919
SELECT 3 * 51 / 44
----
3

query I rowsort
SELECT 42 + - - 0
----
42

query II rowsort
SELECT ALL - 77, COALESCE ( 46, - - 24 ) AS col1
----
-77
46

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9922
SELECT DISTINCT + NULLIF ( + + CAST( NULL AS DECIMAL ), 20 * - 96 - + + 28 ) * 32 + - 26 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9922
SELECT DISTINCT + NULLIF ( + + CAST ( NULL AS REAL ), 20 * - 96 - + + 28 ) * 32 + - 26 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9923
SELECT DISTINCT - SUM( + - 65 )
----
65

skipif mysql # not compatible
query I rowsort label-9923
SELECT DISTINCT - SUM ( + - 65 )
----
65

query I rowsort
SELECT 29 * 93 AS col1
----
2697

onlyif mysql # DIV for integer division: 
query I rowsort label-9925
SELECT DISTINCT + 20 DIV 29 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9925
SELECT DISTINCT + 20 / 29 AS col2
----
0

query I rowsort
SELECT 12 - - 5 col1
----
17

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9927
SELECT COUNT( * ) DIV - + 61 * + 34
----
0

skipif mysql # not compatible
query I rowsort label-9927
SELECT COUNT ( * ) / - + 61 * + 34
----
0

query II rowsort
SELECT + 38, + 14 AS col2
----
38
14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9929
SELECT 38 DIV MIN( + - 65 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9929
SELECT 38 / MIN ( + - 65 ) AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9930
SELECT ( CAST( - 4 AS SIGNED ) ) DIV - 13
----
0

skipif mysql # not compatible
query I rowsort label-9930
SELECT ( CAST ( - 4 AS INTEGER ) ) / - 13
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9931
SELECT DISTINCT + 18 + + - ( - + COUNT( - 28 ) ) + - MIN( - + 61 ) col0
----
80

skipif mysql # not compatible
query I rowsort label-9931
SELECT DISTINCT + 18 + + - ( - + COUNT ( - 28 ) ) + - MIN ( - + 61 ) col0
----
80

query II rowsort
SELECT ALL + 27 + + - 76, 27 + - + 39 * 79 * + 95 col1
----
-49
-292668

onlyif mysql # aggregate syntax: 
query I rowsort label-9933
SELECT DISTINCT - 63 + + 10 + + COUNT( * )
----
-52

skipif mysql # not compatible
query I rowsort label-9933
SELECT DISTINCT - 63 + + 10 + + COUNT ( * )
----
-52

query I rowsort
SELECT 46 + - 38 col2
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-9935
SELECT + COUNT( ALL - ( 22 ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9935
SELECT + COUNT ( ALL - ( 22 ) ) AS col1
----
1

query I rowsort
SELECT ALL - ( - 33 ) * + 65 + - + ( 96 ) AS col1
----
2049

onlyif mysql # aggregate syntax: 
query I rowsort label-9937
SELECT + COUNT( * ) + 14 * - - 7 AS col2
----
99

skipif mysql # not compatible
query I rowsort label-9937
SELECT + COUNT ( * ) + 14 * - - 7 AS col2
----
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9938
SELECT ALL 86 + ( - COUNT( * ) ) * + NULLIF ( - - 52, + + 98 ) col1, 70 * - CAST( NULL AS SIGNED )
----
34
NULL

skipif mysql # not compatible
query II rowsort label-9938
SELECT ALL 86 + ( - COUNT ( * ) ) * + NULLIF ( - - 52, + + 98 ) col1, 70 * - CAST ( NULL AS INTEGER )
----
34
NULL

query II rowsort
SELECT - 82 AS col2, + 0 col2
----
-82
0

query I rowsort
SELECT - ( - ( + 19 ) ) AS col2
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-9941
SELECT 12 + + COALESCE ( - 36, + - ( - + COUNT( * ) ) * 20, + 78 + - COUNT( * ) )
----
-24

skipif mysql # not compatible
query I rowsort label-9941
SELECT 12 + + COALESCE ( - 36, + - ( - + COUNT ( * ) ) * 20, + 78 + - COUNT ( * ) )
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-9942
SELECT DISTINCT COUNT( + 48 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9942
SELECT DISTINCT COUNT ( + 48 ) AS col0
----
1

query I rowsort
SELECT DISTINCT - + 47 + 32 + 45 AS col1
----
30

query II rowsort
SELECT + 33 AS col0, 68 AS col1
----
33
68

query II rowsort
SELECT ALL 66 + + - 4 col0, - 1
----
62
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9946
SELECT DISTINCT MIN( - ( + 29 ) ) + 78, CAST( 85 AS SIGNED ) AS col2
----
49
85

skipif mysql # not compatible
query II rowsort label-9946
SELECT DISTINCT MIN ( - ( + 29 ) ) + 78, CAST ( 85 AS INTEGER ) AS col2
----
49
85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9947
SELECT DISTINCT CASE + 51 WHEN + - NULLIF ( MAX( 94 ), + - 61 - + COUNT( * ) * - + 17 ) * + 87 - + COUNT( * ) THEN + + 43 WHEN 62 * 12 THEN 50 + 55 ELSE 13 + + SUM( DISTINCT + 76 ) * NULLIF ( 16 DIV 50, SUM( DISTINCT 57 ) ) END
----
13

skipif mysql # not compatible
query I rowsort label-9947
SELECT DISTINCT CASE + 51 WHEN + - NULLIF ( MAX ( 94 ), + - 61 - + COUNT ( * ) * - + 17 ) * + 87 - + COUNT ( * ) THEN + + 43 WHEN 62 * 12 THEN 50 + 55 ELSE 13 + + SUM ( DISTINCT + 76 ) * NULLIF ( 16 / 50, SUM ( DISTINCT 57 ) ) END
----
13

query I rowsort
SELECT + 49 - 73 AS col1
----
-24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9949
SELECT ALL 8 DIV - SUM( DISTINCT 92 )
----
0

skipif mysql # not compatible
query I rowsort label-9949
SELECT ALL 8 / - SUM ( DISTINCT 92 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9950
SELECT ALL 26 - - SUM( + 2 )
----
28

skipif mysql # not compatible
query I rowsort label-9950
SELECT ALL 26 - - SUM ( + 2 )
----
28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9951
SELECT 39 * + 24 * + 11 * - + CAST( ( 99 ) AS SIGNED ) AS col0
----
-1019304

skipif mysql # not compatible
query I rowsort label-9951
SELECT 39 * + 24 * + 11 * - + CAST ( ( 99 ) AS INTEGER ) AS col0
----
-1019304

query I rowsort
SELECT NULLIF ( - 13, 45 + - 96 ) - 82
----
-95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9953
SELECT ALL NULLIF ( - 60, + CAST( + 29 AS SIGNED ) + - 75 + - 47 ) * - - COUNT( * ) * - + ( + - 14 ) AS col0
----
-840

skipif mysql # not compatible
query I rowsort label-9953
SELECT ALL NULLIF ( - 60, + CAST ( + 29 AS INTEGER ) + - 75 + - 47 ) * - - COUNT ( * ) * - + ( + - 14 ) AS col0
----
-840

onlyif mysql # aggregate syntax: 
query I rowsort label-9954
SELECT 29 * COUNT( * ) * + - COUNT( * ) * + + 92
----
-2668

skipif mysql # not compatible
query I rowsort label-9954
SELECT 29 * COUNT ( * ) * + - COUNT ( * ) * + + 92
----
-2668

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9955
SELECT ALL CASE MAX( - 95 ) WHEN + CAST( + 42 AS DECIMAL ) + COUNT( * ) + + 0 + - 40 / + - 59 * - 38 THEN + 97 + - 53 END * NULLIF ( + SUM( ALL + 5 ), + COUNT( * ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9955
SELECT ALL CASE MAX ( - 95 ) WHEN + CAST ( + 42 AS REAL ) + COUNT ( * ) + + 0 + - 40 / + - 59 * - 38 THEN + 97 + - 53 END * NULLIF ( + SUM ( ALL + 5 ), + COUNT ( * ) ) AS col0
----
NULL

query II rowsort
SELECT DISTINCT 25 * - - 75 AS col0, 70
----
1875
70

onlyif mysql # aggregate syntax: 
query I rowsort label-9957
SELECT 41 * MAX( ( - + 2 ) )
----
-82

skipif mysql # not compatible
query I rowsort label-9957
SELECT 41 * MAX ( ( - + 2 ) )
----
-82

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9958
SELECT 34 DIV + - CAST( - 46 AS SIGNED ) + + - 65 col2
----
-65

skipif mysql # not compatible
query I rowsort label-9958
SELECT 34 / + - CAST ( - 46 AS INTEGER ) + + - 65 col2
----
-65

onlyif mysql # DIV for integer division: 
query I rowsort label-9959
SELECT + 81 DIV 11 - 1 AS col1
----
6

skipif mysql # not compatible
query I rowsort label-9959
SELECT + 81 / 11 - 1 AS col1
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9960
SELECT CAST( NULL AS SIGNED ) * 86 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9960
SELECT CAST ( NULL AS INTEGER ) * 86 AS col1
----
NULL

query III rowsort
SELECT 64 * + 70 AS col2, + 70, - + 4 AS col1
----
4480
70
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-9962
SELECT MAX( + ( + 38 ) ) AS col1
----
38

skipif mysql # not compatible
query I rowsort label-9962
SELECT MAX ( + ( + 38 ) ) AS col1
----
38

query I rowsort
SELECT ALL + 71 + - 1
----
70

query I rowsort
SELECT ALL + 62 * NULLIF ( + + 96, + 55 )
----
5952

query I rowsort
SELECT 53 * 17 AS col0
----
901

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9966
SELECT DISTINCT CAST( NULL AS DECIMAL ) + 72 * + 7
----
NULL

skipif mysql # not compatible
query I rowsort label-9966
SELECT DISTINCT CAST ( NULL AS REAL ) + 72 * + 7
----
NULL

query I rowsort
SELECT 81 + - + ( - 7 ) * + 60 + + 29 + + 22 * + - NULLIF ( - 37, + 48 ) * 63
----
51812

onlyif mysql # aggregate syntax: 
query II rowsort label-9968
SELECT ALL - - 62 + - COUNT( * ) AS col2, - 57 AS col1
----
61
-57

skipif mysql # not compatible
query II rowsort label-9968
SELECT ALL - - 62 + - COUNT ( * ) AS col2, - 57 AS col1
----
61
-57

query I rowsort
SELECT + ( + 29 ) AS col2
----
29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9970
SELECT + NULLIF ( - 98, + 98 * - - 0 - + 25 * - 36 + + COALESCE ( - ( - 56 ), - MAX( ALL CAST( NULL AS SIGNED ) ) * - 4 * 49 - - 19, + 55 ) ) AS col1
----
-98

skipif mysql # not compatible
query I rowsort label-9970
SELECT + NULLIF ( - 98, + 98 * - - 0 - + 25 * - 36 + + COALESCE ( - ( - 56 ), - MAX ( ALL CAST ( NULL AS INTEGER ) ) * - 4 * 49 - - 19, + 55 ) ) AS col1
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-9971
SELECT + + NULLIF ( ( - COUNT( * ) ), - 57 * - 16 + + - 21 * + COUNT( * ) + + 91 + + 57 )
----
-1

skipif mysql # not compatible
query I rowsort label-9971
SELECT + + NULLIF ( ( - COUNT ( * ) ), - 57 * - 16 + + - 21 * + COUNT ( * ) + + 91 + + 57 )
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-9972
SELECT - 0 DIV - 39
----
0

skipif mysql # not compatible
query I rowsort label-9972
SELECT - 0 / - 39
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9973
SELECT ALL - ( - 72 ) DIV + 99
----
0

skipif mysql # not compatible
query I rowsort label-9973
SELECT ALL - ( - 72 ) / + 99
----
0

query I rowsort
SELECT + 67 + - ( + 87 ) + + - 91
----
-111

query I rowsort
SELECT ALL - + 45 - + 16 AS col0
----
-61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9976
SELECT - - CASE + + 18 WHEN + + COALESCE ( - 77, + 24 + - 36, - - 31, - 76 ) * + CAST( COUNT( * ) AS SIGNED ) * 22 + - - COUNT( * ) / + 47 THEN ( 20 ) WHEN ( - 29 ) THEN 55 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9976
SELECT - - CASE + + 18 WHEN + + COALESCE ( - 77, + 24 + - 36, - - 31, - 76 ) * + CAST ( COUNT ( * ) AS INTEGER ) * 22 + - - COUNT ( * ) / + 47 THEN ( 20 ) WHEN ( - 29 ) THEN 55 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9977
SELECT ALL - 32 - + 11 + - COUNT( * ) + 60 * - 50 AS col1
----
-3044

skipif mysql # not compatible
query I rowsort label-9977
SELECT ALL - 32 - + 11 + - COUNT ( * ) + 60 * - 50 AS col1
----
-3044

onlyif mysql # aggregate syntax: 
query I rowsort label-9978
SELECT 6 * + 7 + + - 4 * COUNT( + - 3 ) AS col2
----
38

skipif mysql # not compatible
query I rowsort label-9978
SELECT 6 * + 7 + + - 4 * COUNT ( + - 3 ) AS col2
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-9979
SELECT + ( - - 75 ) + + COUNT( * ) + - - 29 AS col1
----
105

skipif mysql # not compatible
query I rowsort label-9979
SELECT + ( - - 75 ) + + COUNT ( * ) + - - 29 AS col1
----
105

query I rowsort
SELECT 37 - - + 6 + 36 AS col1
----
79

query I rowsort
SELECT 40 + - 8 * - - 24 AS col1
----
-152

query II rowsort
SELECT ALL 47 AS col0, + 43 AS col2
----
47
43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9983
SELECT - 32 + - + 61 + + + CAST( - 30 AS SIGNED ) + - + 64 AS col0
----
-187

skipif mysql # not compatible
query I rowsort label-9983
SELECT - 32 + - + 61 + + + CAST ( - 30 AS INTEGER ) + - + 64 AS col0
----
-187

query I rowsort
SELECT - 91 * - - 80
----
-7280

query I rowsort
SELECT - 8 + 74 + - - 27 - + 3 + - - 12
----
102

query II rowsort
SELECT DISTINCT 4 AS col2, 93 AS col0
----
4
93

query I rowsort
SELECT + 84 + - + 26 + + 26 AS col0
----
84

query I rowsort
SELECT + 61 + 40
----
101

onlyif mysql # DIV for integer division: 
query I rowsort label-9989
SELECT + 78 DIV + 22
----
3

skipif mysql # not compatible
query I rowsort label-9989
SELECT + 78 / + 22
----
3

query II rowsort
SELECT 73 AS col2, 98
----
73
98

onlyif mysql # aggregate syntax: 
query I rowsort label-9991
SELECT + SUM( - - 82 ) + + 26
----
108

skipif mysql # not compatible
query I rowsort label-9991
SELECT + SUM ( - - 82 ) + + 26
----
108

onlyif mysql # aggregate syntax: 
query II rowsort label-9992
SELECT ALL 21 AS col2, 44 * 0 * + + 66 * - COUNT( * )
----
21
0

skipif mysql # not compatible
query II rowsort label-9992
SELECT ALL 21 AS col2, 44 * 0 * + + 66 * - COUNT ( * )
----
21
0

query I rowsort
SELECT + 25 * 36 AS col2
----
900

query I rowsort
SELECT + 30 + + 19 AS col0
----
49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9995
SELECT ALL 83 + + - 93 + - 71 + - + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) + - MAX( 36 ) + - 32 * - - 7 * + - NULLIF ( + COUNT( * ), - + ( + 72 ) ) * + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-9995
SELECT ALL 83 + + - 93 + - 71 + - + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) + - MAX ( 36 ) + - 32 * - - 7 * + - NULLIF ( + COUNT ( * ), - + ( + 72 ) ) * + COUNT ( * )
----
NULL

query I rowsort
SELECT ALL 6 * 84
----
504

query I rowsort
SELECT ( + + 79 ) AS col2
----
79

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9998
SELECT + COUNT( * ) DIV + 30 * - 62 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9998
SELECT + COUNT ( * ) / + 30 * - 62 AS col2
----
0

query I rowsort
SELECT DISTINCT 11 * - - 27 AS col1
----
297

